@refinitiv-ui/efx-grid 0.0.0-dev.12023565035.1

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 (864) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +61 -0
  3. package/lib/column-dragging/es6/ColumnDragging.d.ts +51 -0
  4. package/lib/column-dragging/es6/ColumnDragging.js +968 -0
  5. package/lib/column-dragging/es6/index.d.ts +1 -0
  6. package/lib/column-dragging/es6/index.js +1 -0
  7. package/lib/column-format-dialog/index.d.ts +2 -0
  8. package/lib/column-format-dialog/index.js +2 -0
  9. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +77 -0
  10. package/lib/column-format-dialog/lib/column-format-dialog.js +2688 -0
  11. package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
  12. package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
  13. package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
  14. package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
  15. package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
  16. package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
  17. package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  18. package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
  19. package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
  20. package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
  21. package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
  22. package/lib/column-format-dialog/lib/locale/translation.js +18 -0
  23. package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
  24. package/lib/column-format-dialog/lib/preview-table.js +982 -0
  25. package/lib/column-format-dialog/themes/base.less +429 -0
  26. package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
  27. package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
  28. package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  29. package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
  30. package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
  31. package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
  32. package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  33. package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
  34. package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
  35. package/lib/column-format-dialog/themes/elemental/index.less +5 -0
  36. package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
  37. package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
  38. package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
  39. package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
  40. package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
  41. package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  42. package/lib/column-format-dialog/themes/elemental/light.js +16 -0
  43. package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
  44. package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
  45. package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
  46. package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
  47. package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
  48. package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
  49. package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  50. package/lib/column-format-dialog/themes/halo/dark.js +16 -0
  51. package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
  52. package/lib/column-format-dialog/themes/halo/index.less +5 -0
  53. package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
  54. package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
  55. package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
  56. package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
  57. package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
  58. package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
  59. package/lib/column-format-dialog/themes/halo/light.js +16 -0
  60. package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
  61. package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
  62. package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
  63. package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
  64. package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
  65. package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
  66. package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
  67. package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
  68. package/lib/column-format-dialog/themes/luna/index.less +5 -0
  69. package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
  70. package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  71. package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
  72. package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
  73. package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
  74. package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  75. package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
  76. package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
  77. package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
  78. package/lib/column-format-dialog/themes/solar/index.less +5 -0
  79. package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
  80. package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  81. package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
  82. package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
  83. package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
  84. package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  85. package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
  86. package/lib/column-selection-dialog/index.d.ts +2 -0
  87. package/lib/column-selection-dialog/index.js +2 -0
  88. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +66 -0
  89. package/lib/column-selection-dialog/lib/column-selection-dialog.js +2034 -0
  90. package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
  91. package/lib/column-selection-dialog/lib/locale/translation-de.js +20 -0
  92. package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
  93. package/lib/column-selection-dialog/lib/locale/translation-en.js +20 -0
  94. package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
  95. package/lib/column-selection-dialog/lib/locale/translation-ja.js +20 -0
  96. package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  97. package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +20 -0
  98. package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
  99. package/lib/column-selection-dialog/lib/locale/translation-zh.js +20 -0
  100. package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
  101. package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
  102. package/lib/column-selection-dialog/themes/base.less +258 -0
  103. package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
  104. package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
  105. package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  106. package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
  107. package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
  108. package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
  109. package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  110. package/lib/column-selection-dialog/themes/elemental/dark.js +8 -0
  111. package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
  112. package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
  113. package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
  114. package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
  115. package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
  116. package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
  117. package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
  118. package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  119. package/lib/column-selection-dialog/themes/elemental/light.js +8 -0
  120. package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +25 -0
  121. package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
  122. package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
  123. package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
  124. package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
  125. package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
  126. package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  127. package/lib/column-selection-dialog/themes/halo/dark.js +8 -0
  128. package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
  129. package/lib/column-selection-dialog/themes/halo/index.less +6 -0
  130. package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
  131. package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
  132. package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
  133. package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
  134. package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
  135. package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
  136. package/lib/column-selection-dialog/themes/halo/light.js +8 -0
  137. package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
  138. package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  139. package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
  140. package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
  141. package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
  142. package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  143. package/lib/column-selection-dialog/themes/solar/charcoal.js +8 -0
  144. package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +5 -0
  145. package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
  146. package/lib/column-selection-dialog/themes/solar/index.less +6 -0
  147. package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
  148. package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  149. package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
  150. package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
  151. package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
  152. package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  153. package/lib/column-selection-dialog/themes/solar/pearl.js +8 -0
  154. package/lib/core/dist/core.css +1 -0
  155. package/lib/core/dist/core.js +33910 -0
  156. package/lib/core/dist/core.min.js +1 -0
  157. package/lib/core/es6/data/ColumnStats.d.ts +42 -0
  158. package/lib/core/es6/data/ColumnStats.js +428 -0
  159. package/lib/core/es6/data/DataCache.d.ts +43 -0
  160. package/lib/core/es6/data/DataCache.js +597 -0
  161. package/lib/core/es6/data/DataTable.d.ts +156 -0
  162. package/lib/core/es6/data/DataTable.js +2206 -0
  163. package/lib/core/es6/data/DataView.d.ts +332 -0
  164. package/lib/core/es6/data/DataView.js +4144 -0
  165. package/lib/core/es6/data/Segment.d.ts +91 -0
  166. package/lib/core/es6/data/Segment.js +1001 -0
  167. package/lib/core/es6/data/SegmentCollection.d.ts +84 -0
  168. package/lib/core/es6/data/SegmentCollection.js +713 -0
  169. package/lib/core/es6/data/WrappedView.d.ts +290 -0
  170. package/lib/core/es6/data/WrappedView.js +1320 -0
  171. package/lib/core/es6/grid/Core.d.ts +455 -0
  172. package/lib/core/es6/grid/Core.js +6196 -0
  173. package/lib/core/es6/grid/ILayoutGrid.d.ts +212 -0
  174. package/lib/core/es6/grid/ILayoutGrid.js +706 -0
  175. package/lib/core/es6/grid/LayoutGrid.d.ts +37 -0
  176. package/lib/core/es6/grid/LayoutGrid.js +2975 -0
  177. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +28 -0
  178. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +1241 -0
  179. package/lib/core/es6/grid/components/Cell.d.ts +52 -0
  180. package/lib/core/es6/grid/components/Cell.js +826 -0
  181. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +21 -0
  182. package/lib/core/es6/grid/components/CellFloatingPanel.js +130 -0
  183. package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
  184. package/lib/core/es6/grid/components/CellSpan.js +99 -0
  185. package/lib/core/es6/grid/components/CellSpans.d.ts +40 -0
  186. package/lib/core/es6/grid/components/CellSpans.js +368 -0
  187. package/lib/core/es6/grid/components/Column.d.ts +22 -0
  188. package/lib/core/es6/grid/components/Column.js +618 -0
  189. package/lib/core/es6/grid/components/ElementWrapper.d.ts +127 -0
  190. package/lib/core/es6/grid/components/ElementWrapper.js +718 -0
  191. package/lib/core/es6/grid/components/HScrollbar.d.ts +28 -0
  192. package/lib/core/es6/grid/components/HScrollbar.js +241 -0
  193. package/lib/core/es6/grid/components/Scrollbar.d.ts +63 -0
  194. package/lib/core/es6/grid/components/Scrollbar.js +1413 -0
  195. package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
  196. package/lib/core/es6/grid/components/StretchedCells.js +342 -0
  197. package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
  198. package/lib/core/es6/grid/components/VScrollbar.js +139 -0
  199. package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
  200. package/lib/core/es6/grid/components/VirtualItems.js +51 -0
  201. package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
  202. package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
  203. package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
  204. package/lib/core/es6/grid/event/EventListeners.js +166 -0
  205. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +155 -0
  206. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1977 -0
  207. package/lib/core/es6/grid/util/CellBoundPainter.d.ts +16 -0
  208. package/lib/core/es6/grid/util/CellBoundPainter.js +171 -0
  209. package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
  210. package/lib/core/es6/grid/util/Conflator.js +191 -0
  211. package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
  212. package/lib/core/es6/grid/util/Reverter.js +79 -0
  213. package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
  214. package/lib/core/es6/grid/util/SectionSettings.js +679 -0
  215. package/lib/core/es6/grid/util/SelectionList.d.ts +54 -0
  216. package/lib/core/es6/grid/util/SelectionList.js +491 -0
  217. package/lib/core/es6/grid/util/TrackLayout.d.ts +92 -0
  218. package/lib/core/es6/grid/util/TrackLayout.js +902 -0
  219. package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
  220. package/lib/core/es6/grid/util/Virtualizer.js +340 -0
  221. package/lib/core/es6/grid/util/util.d.ts +20 -0
  222. package/lib/core/es6/grid/util/util.js +391 -0
  223. package/lib/core/es6/index.d.ts +79 -0
  224. package/lib/core/es6/index.js +125 -0
  225. package/lib/core/es6/tr-grid-theme.d.ts +5 -0
  226. package/lib/core/es6/tr-grid-theme.js +5 -0
  227. package/lib/filter-dialog/index.d.ts +2 -0
  228. package/lib/filter-dialog/index.js +2 -0
  229. package/lib/filter-dialog/lib/checkbox-list.d.ts +52 -0
  230. package/lib/filter-dialog/lib/checkbox-list.js +444 -0
  231. package/lib/filter-dialog/lib/filter-dialog.d.ts +75 -0
  232. package/lib/filter-dialog/lib/filter-dialog.js +1160 -0
  233. package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
  234. package/lib/filter-dialog/lib/locale/translation-de.js +40 -0
  235. package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
  236. package/lib/filter-dialog/lib/locale/translation-en.js +40 -0
  237. package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
  238. package/lib/filter-dialog/lib/locale/translation-ja.js +40 -0
  239. package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  240. package/lib/filter-dialog/lib/locale/translation-zh-hant.js +40 -0
  241. package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
  242. package/lib/filter-dialog/lib/locale/translation-zh.js +40 -0
  243. package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
  244. package/lib/filter-dialog/lib/locale/translation.js +18 -0
  245. package/lib/filter-dialog/themes/base-checkbox.less +42 -0
  246. package/lib/filter-dialog/themes/base.less +191 -0
  247. package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
  248. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
  249. package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  250. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
  251. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
  252. package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
  253. package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
  254. package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  255. package/lib/filter-dialog/themes/elemental/dark.js +11 -0
  256. package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
  257. package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
  258. package/lib/filter-dialog/themes/elemental/index.less +6 -0
  259. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
  260. package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
  261. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
  262. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
  263. package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
  264. package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
  265. package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  266. package/lib/filter-dialog/themes/elemental/light.js +11 -0
  267. package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
  268. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
  269. package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
  270. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
  271. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
  272. package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
  273. package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
  274. package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  275. package/lib/filter-dialog/themes/halo/dark.js +11 -0
  276. package/lib/filter-dialog/themes/halo/defaults.less +3 -0
  277. package/lib/filter-dialog/themes/halo/filter-dialog.less +15 -0
  278. package/lib/filter-dialog/themes/halo/index.less +6 -0
  279. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
  280. package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
  281. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
  282. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
  283. package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
  284. package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
  285. package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
  286. package/lib/filter-dialog/themes/halo/light.js +11 -0
  287. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
  288. package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  289. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
  290. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
  291. package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
  292. package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
  293. package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  294. package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
  295. package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
  296. package/lib/filter-dialog/themes/solar/defaults.less +3 -0
  297. package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
  298. package/lib/filter-dialog/themes/solar/index.less +6 -0
  299. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
  300. package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  301. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
  302. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
  303. package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
  304. package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
  305. package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  306. package/lib/filter-dialog/themes/solar/pearl.js +11 -0
  307. package/lib/formatters/es6/CoralButtonFormatter.d.ts +20 -0
  308. package/lib/formatters/es6/CoralButtonFormatter.js +45 -0
  309. package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
  310. package/lib/formatters/es6/CoralCheckboxFormatter.js +50 -0
  311. package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
  312. package/lib/formatters/es6/CoralComboBoxFormatter.js +103 -0
  313. package/lib/formatters/es6/CoralIconFormatter.d.ts +21 -0
  314. package/lib/formatters/es6/CoralIconFormatter.js +50 -0
  315. package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
  316. package/lib/formatters/es6/CoralInputFormatter.js +45 -0
  317. package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +20 -0
  318. package/lib/formatters/es6/CoralRadioButtonFormatter.js +85 -0
  319. package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
  320. package/lib/formatters/es6/CoralSelectFormatter.js +71 -0
  321. package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
  322. package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
  323. package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
  324. package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
  325. package/lib/formatters/es6/EFButtonFormatter.d.ts +20 -0
  326. package/lib/formatters/es6/EFButtonFormatter.js +45 -0
  327. package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
  328. package/lib/formatters/es6/EFCheckboxFormatter.js +50 -0
  329. package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
  330. package/lib/formatters/es6/EFComboBoxFormatter.js +78 -0
  331. package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
  332. package/lib/formatters/es6/EFDateTimePickerFormatter.js +60 -0
  333. package/lib/formatters/es6/EFIconFormatter.d.ts +21 -0
  334. package/lib/formatters/es6/EFIconFormatter.js +50 -0
  335. package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
  336. package/lib/formatters/es6/EFNumberFieldFormatter.js +45 -0
  337. package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +20 -0
  338. package/lib/formatters/es6/EFRadioButtonFormatter.js +132 -0
  339. package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
  340. package/lib/formatters/es6/EFSelectFormatter.js +76 -0
  341. package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
  342. package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
  343. package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
  344. package/lib/formatters/es6/EFToggleFormatter.js +47 -0
  345. package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
  346. package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
  347. package/lib/formatters/es6/FormatterBuilder.d.ts +26 -0
  348. package/lib/formatters/es6/FormatterBuilder.js +493 -0
  349. package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
  350. package/lib/formatters/es6/NumericInputFormatter.js +64 -0
  351. package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
  352. package/lib/formatters/es6/PercentBarFormatter.js +62 -0
  353. package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
  354. package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
  355. package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
  356. package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
  357. package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
  358. package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
  359. package/lib/formatters/es6/SimpleTickerFormatter.d.ts +23 -0
  360. package/lib/formatters/es6/SimpleTickerFormatter.js +66 -0
  361. package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
  362. package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
  363. package/lib/formatters/es6/TextFormatter.d.ts +12 -0
  364. package/lib/formatters/es6/TextFormatter.js +35 -0
  365. package/lib/formatters/es6/index.d.ts +64 -0
  366. package/lib/formatters/es6/index.js +88 -0
  367. package/lib/grid/index.d.ts +2 -0
  368. package/lib/grid/index.js +3 -0
  369. package/lib/grid/lib/efx-grid.d.ts +53 -0
  370. package/lib/grid/lib/efx-grid.js +444 -0
  371. package/lib/grid/themes/base.less +137 -0
  372. package/lib/grid/themes/ds/dark/css/native-elements.css +0 -0
  373. package/lib/grid/themes/ds/dark/efx-grid.js +4 -0
  374. package/lib/grid/themes/ds/dark/es5/all-elements.js +2 -0
  375. package/lib/grid/themes/ds/dark/imports/all-elements.js +1 -0
  376. package/lib/grid/themes/ds/dark/imports/custom-elements.js +1 -0
  377. package/lib/grid/themes/ds/dark/imports/native-elements.js +0 -0
  378. package/lib/grid/themes/ds/dark.js +3 -0
  379. package/lib/grid/themes/ds/efx-grid.less +207 -0
  380. package/lib/grid/themes/ds/index.less +3 -0
  381. package/lib/grid/themes/ds/light/css/native-elements.css +0 -0
  382. package/lib/grid/themes/ds/light/efx-grid.js +4 -0
  383. package/lib/grid/themes/ds/light/es5/all-elements.js +2 -0
  384. package/lib/grid/themes/ds/light/imports/all-elements.js +1 -0
  385. package/lib/grid/themes/ds/light/imports/custom-elements.js +1 -0
  386. package/lib/grid/themes/ds/light/imports/native-elements.js +0 -0
  387. package/lib/grid/themes/ds/light.js +3 -0
  388. package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
  389. package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
  390. package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
  391. package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
  392. package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
  393. package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
  394. package/lib/grid/themes/halo/dark.js +3 -0
  395. package/lib/grid/themes/halo/efx-grid.less +127 -0
  396. package/lib/grid/themes/halo/index.less +3 -0
  397. package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
  398. package/lib/grid/themes/halo/light/efx-grid.js +4 -0
  399. package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
  400. package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
  401. package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
  402. package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
  403. package/lib/grid/themes/halo/light.js +3 -0
  404. package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
  405. package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
  406. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
  407. package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
  408. package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
  409. package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
  410. package/lib/grid/themes/solar/charcoal.js +3 -0
  411. package/lib/grid/themes/solar/efx-grid.less +27 -0
  412. package/lib/grid/themes/solar/index.less +3 -0
  413. package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
  414. package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
  415. package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
  416. package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
  417. package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
  418. package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
  419. package/lib/grid/themes/solar/pearl.js +3 -0
  420. package/lib/index.d.ts +100 -0
  421. package/lib/index.js +100 -0
  422. package/lib/row-segmenting/es6/RowSegmenting.d.ts +115 -0
  423. package/lib/row-segmenting/es6/RowSegmenting.js +1182 -0
  424. package/lib/row-segmenting/es6/index.d.ts +1 -0
  425. package/lib/row-segmenting/es6/index.js +1 -0
  426. package/lib/rt-grid/dist/rt-grid.js +54547 -0
  427. package/lib/rt-grid/dist/rt-grid.min.js +1 -0
  428. package/lib/rt-grid/es6/ColumnDefinition.d.ts +174 -0
  429. package/lib/rt-grid/es6/ColumnDefinition.js +1203 -0
  430. package/lib/rt-grid/es6/DataConnector.d.ts +43 -0
  431. package/lib/rt-grid/es6/DataConnector.js +290 -0
  432. package/lib/rt-grid/es6/FieldDefinition.d.ts +40 -0
  433. package/lib/rt-grid/es6/FieldDefinition.js +560 -0
  434. package/lib/rt-grid/es6/Grid.d.ts +376 -0
  435. package/lib/rt-grid/es6/Grid.js +4653 -0
  436. package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
  437. package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
  438. package/lib/rt-grid/es6/ReferenceCounter.d.ts +40 -0
  439. package/lib/rt-grid/es6/ReferenceCounter.js +251 -0
  440. package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
  441. package/lib/rt-grid/es6/RowDefSorter.js +231 -0
  442. package/lib/rt-grid/es6/RowDefinition.d.ts +156 -0
  443. package/lib/rt-grid/es6/RowDefinition.js +1478 -0
  444. package/lib/rt-grid/es6/SnapshotFiller.d.ts +36 -0
  445. package/lib/rt-grid/es6/SnapshotFiller.js +537 -0
  446. package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
  447. package/lib/rt-grid/es6/StyleLoader.js +47 -0
  448. package/lib/rt-grid/es6/index.d.ts +8 -0
  449. package/lib/rt-grid/es6/index.js +43 -0
  450. package/lib/statistics-row/es6/StatisticsRow.d.ts +68 -0
  451. package/lib/statistics-row/es6/StatisticsRow.js +807 -0
  452. package/lib/statistics-row/es6/index.d.ts +1 -0
  453. package/lib/statistics-row/es6/index.js +1 -0
  454. package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +46 -0
  455. package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +617 -0
  456. package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
  457. package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
  458. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +70 -0
  459. package/lib/tr-grid-cell-selection/es6/CellSelection.js +1695 -0
  460. package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
  461. package/lib/tr-grid-cell-selection/es6/index.js +1 -0
  462. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +82 -0
  463. package/lib/tr-grid-checkbox/es6/Checkbox.js +1704 -0
  464. package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
  465. package/lib/tr-grid-checkbox/es6/index.js +1 -0
  466. package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
  467. package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +817 -0
  468. package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
  469. package/lib/tr-grid-column-fitter/es6/index.js +1 -0
  470. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +91 -0
  471. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +617 -0
  472. package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
  473. package/lib/tr-grid-column-formatting/es6/index.js +1 -0
  474. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +110 -0
  475. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2028 -0
  476. package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
  477. package/lib/tr-grid-column-grouping/es6/index.js +1 -0
  478. package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
  479. package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1010 -0
  480. package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
  481. package/lib/tr-grid-column-resizing/es6/index.js +1 -0
  482. package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +77 -0
  483. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +1405 -0
  484. package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
  485. package/lib/tr-grid-column-selection/es6/index.js +1 -0
  486. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +160 -0
  487. package/lib/tr-grid-column-stack/es6/ColumnStack.js +2155 -0
  488. package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
  489. package/lib/tr-grid-column-stack/es6/index.js +1 -0
  490. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +100 -0
  491. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1513 -0
  492. package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
  493. package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
  494. package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
  495. package/lib/tr-grid-content-wrap/es6/ContentWrap.js +519 -0
  496. package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
  497. package/lib/tr-grid-content-wrap/es6/index.js +1 -0
  498. package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
  499. package/lib/tr-grid-contextmenu/es6/ContextMenu.js +453 -0
  500. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
  501. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +138 -0
  502. package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +41 -0
  503. package/lib/tr-grid-contextmenu/es6/MenuItem.js +285 -0
  504. package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +33 -0
  505. package/lib/tr-grid-contextmenu/es6/PopupMenu.js +303 -0
  506. package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
  507. package/lib/tr-grid-contextmenu/es6/index.js +1 -0
  508. package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +64 -0
  509. package/lib/tr-grid-filter-input/es6/FilterInput.js +1027 -0
  510. package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
  511. package/lib/tr-grid-filter-input/es6/index.js +1 -0
  512. package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +45 -0
  513. package/lib/tr-grid-heat-map/es6/HeatMap.js +401 -0
  514. package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
  515. package/lib/tr-grid-heat-map/es6/index.js +1 -0
  516. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +148 -0
  517. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2671 -0
  518. package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
  519. package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
  520. package/lib/tr-grid-pagination/es6/Pagination.d.ts +58 -0
  521. package/lib/tr-grid-pagination/es6/Pagination.js +433 -0
  522. package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
  523. package/lib/tr-grid-pagination/es6/index.js +1 -0
  524. package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
  525. package/lib/tr-grid-percent-bar/es6/PercentBar.js +804 -0
  526. package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
  527. package/lib/tr-grid-percent-bar/es6/index.js +1 -0
  528. package/lib/tr-grid-printer/es6/CellWriter.d.ts +50 -0
  529. package/lib/tr-grid-printer/es6/CellWriter.js +234 -0
  530. package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +13 -0
  531. package/lib/tr-grid-printer/es6/ColumnWriter.js +23 -0
  532. package/lib/tr-grid-printer/es6/GridPrinter.d.ts +33 -0
  533. package/lib/tr-grid-printer/es6/GridPrinter.js +794 -0
  534. package/lib/tr-grid-printer/es6/PrintTrait.d.ts +39 -0
  535. package/lib/tr-grid-printer/es6/PrintTrait.js +494 -0
  536. package/lib/tr-grid-printer/es6/SectionWriter.d.ts +57 -0
  537. package/lib/tr-grid-printer/es6/SectionWriter.js +238 -0
  538. package/lib/tr-grid-printer/es6/index.d.ts +1 -0
  539. package/lib/tr-grid-printer/es6/index.js +1 -0
  540. package/lib/tr-grid-range-bar/es6/LEDGuage.d.ts +39 -0
  541. package/lib/tr-grid-range-bar/es6/LEDGuage.js +261 -0
  542. package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +56 -0
  543. package/lib/tr-grid-range-bar/es6/RangeBar.js +514 -0
  544. package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
  545. package/lib/tr-grid-range-bar/es6/index.js +1 -0
  546. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +81 -0
  547. package/lib/tr-grid-row-dragging/es6/RowDragging.js +1479 -0
  548. package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
  549. package/lib/tr-grid-row-dragging/es6/index.js +1 -0
  550. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +159 -0
  551. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +2568 -0
  552. package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
  553. package/lib/tr-grid-row-filtering/es6/index.js +1 -0
  554. package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +123 -0
  555. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1728 -0
  556. package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
  557. package/lib/tr-grid-row-grouping/es6/index.js +1 -0
  558. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +75 -0
  559. package/lib/tr-grid-row-selection/es6/RowSelection.js +1447 -0
  560. package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
  561. package/lib/tr-grid-row-selection/es6/index.js +1 -0
  562. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +64 -0
  563. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +615 -0
  564. package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
  565. package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
  566. package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +72 -0
  567. package/lib/tr-grid-textformatting/es6/TextFormatting.js +543 -0
  568. package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
  569. package/lib/tr-grid-textformatting/es6/index.js +1 -0
  570. package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +27 -0
  571. package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
  572. package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
  573. package/lib/tr-grid-titlewrap/es6/index.js +1 -0
  574. package/lib/tr-grid-util/es6/CellPainter.d.ts +142 -0
  575. package/lib/tr-grid-util/es6/CellPainter.js +1183 -0
  576. package/lib/tr-grid-util/es6/Color.d.ts +40 -0
  577. package/lib/tr-grid-util/es6/Color.js +210 -0
  578. package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
  579. package/lib/tr-grid-util/es6/Conflator.js +193 -0
  580. package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
  581. package/lib/tr-grid-util/es6/CoralItems.js +42 -0
  582. package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
  583. package/lib/tr-grid-util/es6/DateTime.js +508 -0
  584. package/lib/tr-grid-util/es6/Deferred.d.ts +16 -0
  585. package/lib/tr-grid-util/es6/Deferred.js +108 -0
  586. package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
  587. package/lib/tr-grid-util/es6/Delay.js +96 -0
  588. package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
  589. package/lib/tr-grid-util/es6/Dom.js +350 -0
  590. package/lib/tr-grid-util/es6/DragUI.d.ts +20 -0
  591. package/lib/tr-grid-util/es6/DragUI.js +263 -0
  592. package/lib/tr-grid-util/es6/ElementObserver.d.ts +12 -0
  593. package/lib/tr-grid-util/es6/ElementObserver.js +134 -0
  594. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
  595. package/lib/tr-grid-util/es6/ElementWrapper.js +84 -0
  596. package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
  597. package/lib/tr-grid-util/es6/ElfDate.js +164 -0
  598. package/lib/tr-grid-util/es6/ElfUtil.d.ts +46 -0
  599. package/lib/tr-grid-util/es6/ElfUtil.js +637 -0
  600. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
  601. package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
  602. package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +24 -0
  603. package/lib/tr-grid-util/es6/ExpanderIcon.js +120 -0
  604. package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
  605. package/lib/tr-grid-util/es6/ExpressionParser.js +408 -0
  606. package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
  607. package/lib/tr-grid-util/es6/Ext.js +52 -0
  608. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
  609. package/lib/tr-grid-util/es6/FieldFormatter.js +440 -0
  610. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +54 -0
  611. package/lib/tr-grid-util/es6/FilterBuilder.js +580 -0
  612. package/lib/tr-grid-util/es6/FilterOperators.d.ts +56 -0
  613. package/lib/tr-grid-util/es6/FilterOperators.js +255 -0
  614. package/lib/tr-grid-util/es6/GridPlugin.d.ts +86 -0
  615. package/lib/tr-grid-util/es6/GridPlugin.js +1055 -0
  616. package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +74 -0
  617. package/lib/tr-grid-util/es6/GroupDefinitions.js +642 -0
  618. package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
  619. package/lib/tr-grid-util/es6/Icon.js +62 -0
  620. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
  621. package/lib/tr-grid-util/es6/MouseDownTrait.js +250 -0
  622. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +40 -0
  623. package/lib/tr-grid-util/es6/MultiTableManager.js +611 -0
  624. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +85 -0
  625. package/lib/tr-grid-util/es6/NumberFormatter.js +528 -0
  626. package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
  627. package/lib/tr-grid-util/es6/PercentBar.js +600 -0
  628. package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
  629. package/lib/tr-grid-util/es6/Perf.js +163 -0
  630. package/lib/tr-grid-util/es6/Popup.d.ts +98 -0
  631. package/lib/tr-grid-util/es6/Popup.js +991 -0
  632. package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
  633. package/lib/tr-grid-util/es6/RangeBar.js +260 -0
  634. package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
  635. package/lib/tr-grid-util/es6/RequestQueue.js +228 -0
  636. package/lib/tr-grid-util/es6/RowPainter.d.ts +60 -0
  637. package/lib/tr-grid-util/es6/RowPainter.js +448 -0
  638. package/lib/tr-grid-util/es6/SubTable.d.ts +78 -0
  639. package/lib/tr-grid-util/es6/SubTable.js +642 -0
  640. package/lib/tr-grid-util/es6/Table.d.ts +146 -0
  641. package/lib/tr-grid-util/es6/Table.js +832 -0
  642. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +16 -0
  643. package/lib/tr-grid-util/es6/TextHighlighter.js +268 -0
  644. package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
  645. package/lib/tr-grid-util/es6/TickCodes.js +33 -0
  646. package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
  647. package/lib/tr-grid-util/es6/Timer.js +49 -0
  648. package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
  649. package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
  650. package/lib/tr-grid-util/es6/Util.d.ts +66 -0
  651. package/lib/tr-grid-util/es6/Util.js +508 -0
  652. package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
  653. package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
  654. package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
  655. package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
  656. package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
  657. package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
  658. package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
  659. package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
  660. package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
  661. package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
  662. package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
  663. package/lib/tr-grid-util/es6/formula/Formula.js +890 -0
  664. package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
  665. package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
  666. package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
  667. package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
  668. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
  669. package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
  670. package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
  671. package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
  672. package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
  673. package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
  674. package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
  675. package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
  676. package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
  677. package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
  678. package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
  679. package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
  680. package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
  681. package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
  682. package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
  683. package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
  684. package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
  685. package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
  686. package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
  687. package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
  688. package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
  689. package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
  690. package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
  691. package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
  692. package/lib/tr-grid-util/es6/index.d.ts +65 -0
  693. package/lib/tr-grid-util/es6/index.js +102 -0
  694. package/lib/tr-grid-util/es6/jet/Adc.d.ts +9 -0
  695. package/lib/tr-grid-util/es6/jet/Adc.js +268 -0
  696. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
  697. package/lib/tr-grid-util/es6/jet/CollectionDict.js +151 -0
  698. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +136 -0
  699. package/lib/tr-grid-util/es6/jet/DataGenerator.js +860 -0
  700. package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
  701. package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
  702. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
  703. package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
  704. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
  705. package/lib/tr-grid-util/es6/jet/MockJET.js +71 -0
  706. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
  707. package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
  708. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +82 -0
  709. package/lib/tr-grid-util/es6/jet/MockQuotes2.js +890 -0
  710. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +48 -0
  711. package/lib/tr-grid-util/es6/jet/MockRTK.js +82 -0
  712. package/lib/tr-grid-util/es6/jet/MockUtil.d.ts +7 -0
  713. package/lib/tr-grid-util/es6/jet/MockUtil.js +25 -0
  714. package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
  715. package/lib/tr-grid-util/es6/jet/index.js +18 -0
  716. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
  717. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +111 -0
  718. package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
  719. package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
  720. package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
  721. package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
  722. package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
  723. package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
  724. package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
  725. package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
  726. package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
  727. package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
  728. package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
  729. package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
  730. package/lib/tr-grid-util/es6/locale/translation.js +18 -0
  731. package/lib/types/es6/AutoTooltip.d.ts +46 -0
  732. package/lib/types/es6/CellSelection.d.ts +70 -0
  733. package/lib/types/es6/Checkbox.d.ts +82 -0
  734. package/lib/types/es6/ColumnDragging.d.ts +51 -0
  735. package/lib/types/es6/ColumnFitter.d.ts +56 -0
  736. package/lib/types/es6/ColumnFormatting.d.ts +92 -0
  737. package/lib/types/es6/ColumnGrouping.d.ts +107 -0
  738. package/lib/types/es6/ColumnResizing.d.ts +68 -0
  739. package/lib/types/es6/ColumnSelection.d.ts +77 -0
  740. package/lib/types/es6/ColumnStack.d.ts +160 -0
  741. package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
  742. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +41 -0
  743. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
  744. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +289 -0
  745. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +23 -0
  746. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +41 -0
  747. package/lib/types/es6/CompositeGrid/Plugin.d.ts +30 -0
  748. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +32 -0
  749. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +44 -0
  750. package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
  751. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
  752. package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
  753. package/lib/types/es6/ConditionalColoring.d.ts +100 -0
  754. package/lib/types/es6/ContentWrap.d.ts +43 -0
  755. package/lib/types/es6/ContextMenu.d.ts +83 -0
  756. package/lib/types/es6/CoralButtonFormatter.d.ts +20 -0
  757. package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
  758. package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
  759. package/lib/types/es6/CoralIconFormatter.d.ts +21 -0
  760. package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
  761. package/lib/types/es6/CoralRadioButtonFormatter.d.ts +20 -0
  762. package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
  763. package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
  764. package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
  765. package/lib/types/es6/Core/data/DataCache.d.ts +43 -0
  766. package/lib/types/es6/Core/data/DataTable.d.ts +156 -0
  767. package/lib/types/es6/Core/data/DataView.d.ts +332 -0
  768. package/lib/types/es6/Core/data/Segment.d.ts +91 -0
  769. package/lib/types/es6/Core/data/SegmentCollection.d.ts +84 -0
  770. package/lib/types/es6/Core/data/WrappedView.d.ts +290 -0
  771. package/lib/types/es6/Core/grid/Core.d.ts +455 -0
  772. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +212 -0
  773. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +37 -0
  774. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +28 -0
  775. package/lib/types/es6/Core/grid/components/Cell.d.ts +52 -0
  776. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +21 -0
  777. package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
  778. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +40 -0
  779. package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
  780. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +127 -0
  781. package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +28 -0
  782. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +63 -0
  783. package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
  784. package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
  785. package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
  786. package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
  787. package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
  788. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +155 -0
  789. package/lib/types/es6/Core/grid/util/CellBoundPainter.d.ts +16 -0
  790. package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
  791. package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
  792. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
  793. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +54 -0
  794. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +92 -0
  795. package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
  796. package/lib/types/es6/Core/grid/util/util.d.ts +20 -0
  797. package/lib/types/es6/Core/index.d.ts +79 -0
  798. package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
  799. package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
  800. package/lib/types/es6/EFButtonFormatter.d.ts +20 -0
  801. package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
  802. package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
  803. package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
  804. package/lib/types/es6/EFIconFormatter.d.ts +21 -0
  805. package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
  806. package/lib/types/es6/EFRadioButtonFormatter.d.ts +20 -0
  807. package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
  808. package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
  809. package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
  810. package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
  811. package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
  812. package/lib/types/es6/ExtensionOptions.d.ts +58 -0
  813. package/lib/types/es6/Extensions.d.ts +63 -0
  814. package/lib/types/es6/FilterInput.d.ts +64 -0
  815. package/lib/types/es6/FormatterBuilder.d.ts +26 -0
  816. package/lib/types/es6/GridFormatter.d.ts +63 -0
  817. package/lib/types/es6/HeatMap.d.ts +45 -0
  818. package/lib/types/es6/InCellEditing.d.ts +148 -0
  819. package/lib/types/es6/MenuEventAPI.d.ts +22 -0
  820. package/lib/types/es6/MenuItem.d.ts +41 -0
  821. package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
  822. package/lib/types/es6/Pagination.d.ts +58 -0
  823. package/lib/types/es6/PercentBar.d.ts +60 -0
  824. package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
  825. package/lib/types/es6/PopupMenu.d.ts +33 -0
  826. package/lib/types/es6/RangeBar.d.ts +39 -0
  827. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +176 -0
  828. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +43 -0
  829. package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +40 -0
  830. package/lib/types/es6/RealtimeGrid/Grid.d.ts +413 -0
  831. package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
  832. package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +40 -0
  833. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
  834. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +156 -0
  835. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +36 -0
  836. package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
  837. package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
  838. package/lib/types/es6/RowColoring.d.ts +64 -0
  839. package/lib/types/es6/RowDragging.d.ts +81 -0
  840. package/lib/types/es6/RowFiltering.d.ts +159 -0
  841. package/lib/types/es6/RowGrouping.d.ts +123 -0
  842. package/lib/types/es6/RowSegmenting.d.ts +109 -0
  843. package/lib/types/es6/RowSelection.d.ts +75 -0
  844. package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
  845. package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
  846. package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
  847. package/lib/types/es6/SimpleTickerFormatter.d.ts +23 -0
  848. package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
  849. package/lib/types/es6/StatisticsRow.d.ts +68 -0
  850. package/lib/types/es6/TextFormatter.d.ts +12 -0
  851. package/lib/types/es6/TextFormatting.d.ts +72 -0
  852. package/lib/types/es6/TitleWrap.d.ts +27 -0
  853. package/lib/types/es6/Zoom.d.ts +52 -0
  854. package/lib/types/es6/index.d.ts +80 -0
  855. package/lib/types/index.d.ts +1 -0
  856. package/lib/utils/index.d.ts +7 -0
  857. package/lib/utils/index.js +7 -0
  858. package/lib/versions.json +37 -0
  859. package/lib/window-exporter.js +18 -0
  860. package/lib/zoom/es6/Zoom.d.ts +52 -0
  861. package/lib/zoom/es6/Zoom.js +438 -0
  862. package/lib/zoom/es6/index.d.ts +1 -0
  863. package/lib/zoom/es6/index.js +1 -0
  864. package/package.json +69 -0
@@ -0,0 +1,1413 @@
1
+ /* eslint-disable */
2
+ import Ext from "../../../../tr-grid-util/es6/Ext.js";
3
+ import Util from "../util/util.js";
4
+ import ElementWrapper from "../components/ElementWrapper.js";
5
+ import Reverter from "../util/Reverter.js";
6
+ /* eslint-enable */
7
+
8
+ /** @constructor
9
+ * @extends {ElementWrapper}
10
+ */
11
+ let Scrollbar = function () {
12
+ let t = this; // Create a shorthand to shorthen file size
13
+ t._addEvents(
14
+ "scroll",
15
+ "activated",
16
+ "deactivated",
17
+ "scrollStart",
18
+ "scrollEnd",
19
+ "thicknessChanged",
20
+ "layoutChanged",
21
+ "enabled",
22
+ "disabled"
23
+ );
24
+
25
+ t._onTrackScroll = t._onTrackScroll.bind(t);
26
+ t._onKeyDown = t._onKeyDown.bind(t);
27
+ t._onStartFading = t._onStartFading.bind(t);
28
+ t._onMouseWheel = t._onMouseWheel.bind(t);
29
+ t._flash = t._flash.bind(t);
30
+
31
+ t._onTouchStart = t._onTouchStart.bind(t);
32
+ t._onTouchMove = t._onTouchMove.bind(t);
33
+ t._onTouchEnd = t._onTouchEnd.bind(t);
34
+ t._smoothScroll = t._smoothScroll.bind(t);
35
+ t._updateEffectiveArea = t._updateEffectiveArea.bind(t);
36
+ t._onRestingPosition = t._onRestingPosition.bind(t);
37
+
38
+ t._element = document.createElement("div");
39
+ t._element.className = "grid-scrollbar";
40
+
41
+ t._trackContent = document.createElement("div");
42
+
43
+ t._panes = [];
44
+ t._paneSliders = [];
45
+ t._startPos = {};
46
+ t._endPos = {};
47
+ t._reverter = new Reverter(t._onRestingPosition, 300); // WORKAROUND: GRID-402
48
+
49
+ t._element.addEventListener("scroll", t._onTrackScroll);
50
+ t._element.addEventListener("mouseover", t._flash); // Allow interaction if scrollbar is fading
51
+ t._element.appendChild(t._trackContent); // WARNING: trackContent is not registered as ElementWrapper's content
52
+
53
+ t.disableKeyboardInput(false); // Enable keyboard input by default
54
+ t._onThicknessChanged = t._dispatch.bind(t, "thicknessChanged");
55
+ Scrollbar._queryNativeTrackThickness(t._onThicknessChanged);
56
+
57
+ if(!t._updateEffectiveArea()) {
58
+ t.listen("thicknessChanged", t._updateEffectiveArea);
59
+ }
60
+ };
61
+ Ext.inherits(Scrollbar, ElementWrapper);
62
+
63
+ /** @type {boolean}
64
+ * @protected
65
+ * @ignore
66
+ */
67
+ Scrollbar.prototype._vertical = true;
68
+ /** @type {number}
69
+ * @protected
70
+ * @ignore
71
+ */
72
+ Scrollbar.prototype._step = 0;
73
+ /** @type {Element}
74
+ * @protected
75
+ * @ignore
76
+ */
77
+ Scrollbar.prototype._parentNode = null;
78
+ /** @type {string}
79
+ * @protected
80
+ * @ignore
81
+ */
82
+ Scrollbar.prototype._hostClassName = "";
83
+
84
+ /** @type {Element}
85
+ * @protected
86
+ * @ignore
87
+ */
88
+ Scrollbar.prototype._trackContent = null;
89
+ /** @type {Array.<ElementWrapper>}
90
+ * @protected
91
+ * @ignore
92
+ */
93
+ Scrollbar.prototype._panes = null;
94
+ /** @type {Array.<ElementWrapper>}
95
+ * @protected
96
+ * @ignore
97
+ */
98
+ Scrollbar.prototype._paneSliders = null;
99
+
100
+ /** @type {boolean}
101
+ * @private
102
+ */
103
+ Scrollbar.prototype._enabled = true;
104
+ /** @type {boolean}
105
+ * @private
106
+ */
107
+ Scrollbar.prototype._active = false;
108
+ /** if freeze, scroll can't be moved. Event will stopPropagation and preventDefault
109
+ * @type {boolean}
110
+ * @private
111
+ */
112
+ Scrollbar.prototype._isFrozen = false;
113
+ /** @type {Scrollbar}
114
+ * @protected
115
+ * @ignore
116
+ */
117
+ Scrollbar.prototype._otherScrollbar = null;
118
+ /** @type {boolean}
119
+ * @private
120
+ */
121
+ Scrollbar.prototype._autoHideScrollbar = true;
122
+
123
+ /** @type {number}
124
+ * @protected
125
+ * @ignore
126
+ */
127
+ Scrollbar.prototype._trackSize = 120;
128
+ /** @type {number}
129
+ * @private
130
+ */
131
+ Scrollbar.prototype._tContentSize = 0;
132
+ /** @type {number}
133
+ * @private
134
+ */
135
+ Scrollbar.prototype._tScrollVal = 0; // Track and pane may have different size and content
136
+ /** @type {number}
137
+ * @private
138
+ */
139
+ Scrollbar.prototype._tPercentVal = 0; // Percentage [0, 1] of track scroll value
140
+
141
+ /** @type {number}
142
+ * @private
143
+ */
144
+ Scrollbar.prototype._paneSize = 0;
145
+ /** @type {number}
146
+ * @private
147
+ */
148
+ Scrollbar.prototype._pContentSize = 0;
149
+ /** @type {number}
150
+ * @private
151
+ */
152
+ Scrollbar.prototype._pScrollVal = 0; // Track and pane may have different size and content
153
+
154
+ /** @type {number}
155
+ * @protected
156
+ * @ignore
157
+ */
158
+ Scrollbar.prototype._footerCount = 0;
159
+
160
+ /** @type {number}
161
+ * @private
162
+ */
163
+ Scrollbar.prototype._fadingId = 0;
164
+ /** @type {boolean}
165
+ * @private
166
+ */
167
+ Scrollbar.prototype._postponeFading = false;
168
+
169
+ /** @type {boolean}
170
+ * @private
171
+ */
172
+ Scrollbar.prototype._layoutChanged = false;
173
+ /** @type {boolean}
174
+ * @private
175
+ */
176
+ Scrollbar.prototype._contentDirty = true;
177
+ /** @type {boolean}
178
+ * @private
179
+ */
180
+ Scrollbar.prototype._layoutDirty = true;
181
+
182
+ /** @type {boolean}
183
+ * @private
184
+ */
185
+ Scrollbar.prototype._touchInput = true;
186
+ /** @type {boolean}
187
+ * @private
188
+ */
189
+ Scrollbar.prototype._swiping = false;
190
+ /** @type {boolean}
191
+ * @private
192
+ */
193
+ Scrollbar.prototype._touchDrag = false;
194
+ /** @type {!Object}
195
+ * @private
196
+ */
197
+ Scrollbar.prototype._startPos;
198
+ /** @type {!Object}
199
+ * @private
200
+ */
201
+ Scrollbar.prototype._endPos;
202
+
203
+ /** @type {boolean}
204
+ * @private
205
+ */
206
+ Scrollbar.prototype._smoothing = true;
207
+ /** @type {number}
208
+ * @private
209
+ */
210
+ Scrollbar.prototype._smoothingId = 0;
211
+ /** @type {number}
212
+ * @private
213
+ */
214
+ Scrollbar.prototype._smoothingSpeed = 0;
215
+
216
+ /** @type {string}
217
+ * @private
218
+ */
219
+ Scrollbar.prototype._wheelScrolling = "";
220
+ /** @type {Function}
221
+ * @private
222
+ * @ignore
223
+ */
224
+ Scrollbar.prototype._mouseWheelLogic = null;
225
+ /** @type {Function}
226
+ * @private
227
+ * @ignore
228
+ */
229
+ Scrollbar.prototype._onThicknessChanged = null;
230
+
231
+
232
+ /** @type {number}
233
+ * @private
234
+ */
235
+ Scrollbar._trackThickness = 0;
236
+ /** @type {number}
237
+ * @private
238
+ */
239
+ Scrollbar._queryTimeout = 0;
240
+ /** @type {boolean}
241
+ * @private
242
+ */
243
+ Scrollbar._queryStarted = false;
244
+ /** @type {Element}
245
+ * @private
246
+ */
247
+ Scrollbar._outerDummy = null;
248
+ /** @type {Element}
249
+ * @private
250
+ */
251
+ Scrollbar._innerDummy = null;
252
+ /** @type {Array.<Function>}
253
+ * @private
254
+ */
255
+ Scrollbar._listeners = null;
256
+
257
+
258
+
259
+ /** @private
260
+ * @return {boolean}
261
+ */
262
+ Scrollbar.prototype._updateEffectiveArea = function() {
263
+ let thickness = this.getTrackThickness();
264
+ if(thickness) {
265
+ let prop = (this._vertical) ? "width" : "height";
266
+ this._element.style[prop] = (thickness + 1) + "px";
267
+ }
268
+ return thickness ? true : false;
269
+ };
270
+ /** @private
271
+ * @function
272
+ * @param {Function=} listener
273
+ */
274
+ Scrollbar._queryNativeTrackThickness = function (listener) {
275
+ if(!Scrollbar._queryStarted) { // We only need one query for all scrollbars
276
+ Scrollbar._repeatQuery();
277
+ }
278
+
279
+ if(listener && Scrollbar._trackThickness <= 0) {
280
+ let listeners = Scrollbar._listeners;
281
+ if(!listeners) {
282
+ listeners = Scrollbar._listeners = [];
283
+ }
284
+ listeners.push(listener);
285
+ }
286
+ };
287
+ /** @private
288
+ * @function
289
+ */
290
+ Scrollbar._repeatQuery = function () {
291
+ Scrollbar._queryStarted = true;
292
+ if(Scrollbar._retrieveNativeTrackThinkness()) {
293
+ return;
294
+ }
295
+ //Re-query if the thickness is not yet available. Add some delay for each query to increase chance of getting the value.
296
+
297
+ // TODO: Use window.addEventListener("load", ); in conjunction with this to speed things up
298
+ Scrollbar._queryTimeout += 100;
299
+ if(Scrollbar._queryTimeout < 3000) { // Prevent infinite loop
300
+ setTimeout(Scrollbar._repeatQuery, Scrollbar._queryTimeout);
301
+ } else {
302
+ Scrollbar._trackThickness = 13; // Set to 13px as a last ditch effort
303
+ Scrollbar._clearStaticResources();
304
+ }
305
+ };
306
+ /** @private
307
+ * @function
308
+ * @return {boolean} Returns true if valid track thickness
309
+ */
310
+ Scrollbar._retrieveNativeTrackThinkness = function () {
311
+ if(Scrollbar._trackThickness > 0) {
312
+ return true;
313
+ }
314
+
315
+ let inner = Scrollbar._innerDummy;
316
+ let outer = Scrollbar._outerDummy;
317
+ if(!inner) {
318
+ inner = Scrollbar._innerDummy = document.createElement('p');
319
+ inner.style.width = "100%";
320
+ inner.style.height = "200px";
321
+
322
+ outer = Scrollbar._outerDummy = document.createElement('div');
323
+ outer.style.position = "absolute";
324
+ outer.style.top = "0px";
325
+ outer.style.left = "0px";
326
+ outer.style.visibility = "hidden";
327
+ outer.style.width = "200px";
328
+ outer.style.height = "150px";
329
+ outer.appendChild(inner);
330
+ }
331
+
332
+ outer.style.overflow = "hidden";
333
+ document.body.appendChild(outer);
334
+ let w1 = inner.offsetWidth;
335
+ outer.style.overflow = 'scroll';
336
+ let w2 = inner.offsetWidth;
337
+
338
+ // Sometimes, w1 may be equal to w2 on certain browsers or devices, such as a Macbook when opened on the built-in screen. In such cases, the outer.style.overflow scroll may not change the offsetWidth, and the outer.clientWidth will be the same as the inner offsetWidth. As a result, the native track thickness may not be found
339
+ if(w1 == w2) {
340
+ w2 = outer.clientWidth;
341
+ }
342
+ document.body.removeChild(outer);
343
+ let scrollbarWidth = Scrollbar._trackThickness = (w1 - w2);
344
+ if(scrollbarWidth > 0) {
345
+ Scrollbar._clearStaticResources();
346
+ return true;
347
+ }
348
+ return false;
349
+ };
350
+ /** @private
351
+ * @function
352
+ */
353
+ Scrollbar._clearStaticResources = function () {
354
+ Scrollbar._innerDummy = Scrollbar._outerDummy = null;
355
+ let listeners = Scrollbar._listeners;
356
+ if(listeners) {
357
+ Scrollbar._listeners = null;
358
+
359
+ let arg = {};
360
+ for(let i = listeners.length; --i >= 0;) {
361
+ listeners[i](arg);
362
+ }
363
+ }
364
+ };
365
+ /** @public
366
+ * @function
367
+ */
368
+ Scrollbar.updateTrackThickness = function () {
369
+ Scrollbar._trackThickness = 0;
370
+ Scrollbar._queryTimeout = 0;
371
+ Scrollbar._queryStarted = false;
372
+ Scrollbar._queryNativeTrackThickness();
373
+ };
374
+
375
+
376
+ /** @override */
377
+ Scrollbar.prototype.dispose = function () {
378
+ let sbListeners = Scrollbar._listeners;
379
+ if(sbListeners) {
380
+ let idx = sbListeners.indexOf(this._onThicknessChanged);
381
+ if(idx >= 0 ) {
382
+ sbListeners.splice(idx, 1);
383
+ this._onThicknessChanged = null;
384
+ }
385
+ }
386
+
387
+ this.unlistenAll();
388
+ if(this._smoothingId) {
389
+ clearInterval(this._smoothingId);
390
+ this._smoothingId = 0;
391
+ }
392
+
393
+ this._active = this._layoutChanged = false;
394
+ this._dispose();
395
+ for(let i = this._panes.length; --i >= 0;) {
396
+ this._panes[i].dispose();
397
+ this._paneSliders[i].dispose();
398
+ }
399
+ this._reverter.dispose();
400
+ };
401
+ /** @override */
402
+ Scrollbar.prototype.getContent = function (opt_allContent) {
403
+ return this._paneSliders[0].getContent(opt_allContent);
404
+ };
405
+ /** @override */
406
+ Scrollbar.prototype.getParent = function () {
407
+ return this._parentNode;
408
+ };
409
+ /** @override */
410
+ Scrollbar.prototype.setParent = function (p, opt_prepend) {
411
+ let elem = Util.getElement(p);
412
+
413
+ let isDifferentParent = this._parentNode !== elem;
414
+ if(isDifferentParent && this._parentNode) {
415
+ this.removeWheelListener(this._parentNode);
416
+ this._parentNode.classList.remove(this._hostClassName);
417
+ }
418
+
419
+ if(this.isActive()) {
420
+ this._setParent(elem, opt_prepend); // This also reorder scrollbar to the top or bottom (z-order) of the view
421
+ this._parentNode = /** @type{Element} */(this._element.parentNode); // TODO:Change to parentElement
422
+ if(this._parentNode) {
423
+ this._parentNode.classList.add(this._hostClassName);
424
+ }
425
+ } else {
426
+ this._parentNode = elem;
427
+ }
428
+ if(isDifferentParent) {
429
+ this.addWheelListener(this._parentNode);
430
+ }
431
+ };
432
+ /** @public
433
+ * @param {Element|Node} host
434
+ */
435
+ Scrollbar.prototype.attachToExternalElement = function (host) {
436
+ this.setParent(host);
437
+ let scrollElem = this.getElement();
438
+ scrollElem.style.right = "0";
439
+ if(this._vertical) {
440
+ scrollElem.style.overflowX = "hidden";
441
+ } else {
442
+ scrollElem.style.overflowY = "hidden";
443
+ }
444
+ scrollElem.style.boxSizing = "border-box";
445
+ scrollElem.style.position = "absolute";
446
+ scrollElem.style.outline = "none";
447
+ };
448
+
449
+ /** @private
450
+ */
451
+ Scrollbar.prototype._onActiveStateChange = function () {
452
+ let t = this; // Minimize file size
453
+ t._scrollTo(0, true); // WARNING: Reset scroll position
454
+ let i;
455
+ if(t._active) {
456
+ // t._element.style.display = "";
457
+ if(t._parentNode) {
458
+ t._layoutDirty = true;
459
+ t._setParent(t._parentNode);
460
+ t._parentNode.classList.add(t._hostClassName);
461
+ }
462
+ t._flash(); // WARNING: Auto flashing
463
+
464
+ // Activate scrollbar on all panes
465
+ for (i = t._panes.length; --i >= 0; ) {
466
+ t._panes[i].removeClass("scroll-disabled");
467
+ }
468
+ t._dispatch("activated", {});
469
+ } else {
470
+ // t._element.style.display = "none";
471
+ t._setParent(null);
472
+ if(t._parentNode) {
473
+ t._parentNode.classList.remove(t._hostClassName);
474
+ }
475
+
476
+ // Remove scrollbar on all panes
477
+ let prop = (t._vertical) ? "height" : "width";
478
+ for (i = t._panes.length; --i >= 0; ) {
479
+ t._panes[i].addClass("scroll-disabled");
480
+ t._panes[i].setStyle(prop, "");
481
+ }
482
+ t._dispatch("deactivated", {});
483
+ }
484
+ if(t._vertical) {
485
+ if(t._otherScrollbar && t._otherScrollbar.isActive()) {
486
+ t._otherScrollbar.invalidate(); // Vertical scrollbar can have an impact on horizontal track size
487
+ }
488
+ }
489
+ };
490
+ /** @private
491
+ */
492
+ Scrollbar.prototype._onEnablingStateChange = function () {
493
+ let t = this; // Minimize file size
494
+ if(t._enabled) {
495
+ t._dispatch("enabled", {});
496
+ } else {
497
+ t._dispatch("disabled", {});
498
+ }
499
+ };
500
+
501
+ /** @public
502
+ * @return {boolean}
503
+ */
504
+ Scrollbar.prototype.isActive = function () {
505
+ return this._active;
506
+ };
507
+ /** @public
508
+ * @return {boolean}
509
+ */
510
+ Scrollbar.prototype.isEnabled = function () {
511
+ return this._enabled;
512
+ };
513
+ /** @public
514
+ * @param {boolean=} opt_enabled
515
+ */
516
+ Scrollbar.prototype.enable = function (opt_enabled) {
517
+ opt_enabled = opt_enabled !== false;
518
+ if(this._enabled != opt_enabled) {
519
+ this._enabled = opt_enabled;
520
+ this._updateLayout();
521
+ this._onEnablingStateChange();
522
+ }
523
+ };
524
+ /** @public
525
+ * @param {boolean=} opt_disabled
526
+ */
527
+ Scrollbar.prototype.disable = function (opt_disabled) {
528
+ this.enable(opt_disabled === false);
529
+ };
530
+
531
+ /** @public
532
+ * @return {number}
533
+ */
534
+ Scrollbar.prototype.getTrackSize = function () { return this._trackSize; };
535
+ /** This is equivalent to clientHeight or clientWidth (i.e. view port).
536
+ * @public
537
+ * @ignore
538
+ * @return {number} Pane size without zoom factor
539
+ */
540
+ Scrollbar.prototype.getPaneSize = function () { return this._paneSize; };
541
+ /** This is equivalent to scrollHeight or scrollWidth
542
+ * @public
543
+ * @return {number} Content size without zoom factor
544
+ */
545
+ Scrollbar.prototype.getContentSize = function () { return this._pContentSize; };
546
+ /** @public
547
+ * @returns {number}
548
+ */
549
+ Scrollbar.prototype.getTrackThickness = function () { return Scrollbar._trackThickness; };
550
+
551
+ /** Get available space for scrolling which is equivalent to content size subtracted by view size
552
+ * @public
553
+ * @return {number}
554
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight|scrollHeight}
555
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth|scrollWidth}
556
+ */
557
+ Scrollbar.prototype.getScrollGap = function () {
558
+ return this._pContentSize - this.getPaneSize();
559
+ };
560
+
561
+ /** @public
562
+ * @param {number} size
563
+ * @param {number} paneSize
564
+ */
565
+ Scrollbar.prototype.setTrackSize = function (size, paneSize) {
566
+ this._trackSize = size > 0 ? size : 0;
567
+ this._paneSize = paneSize > 0 ? paneSize : 0;
568
+
569
+ // Actually it should invoke _updateLayout() immediately for active-state updating here.
570
+ // But grid always invokes _updateLayout() implicitly after invokes setTrackSize(),
571
+ // so _updateLayout() invoking is unneccessory.
572
+ };
573
+ /** Must be implemented by the inheritance
574
+ * @protected
575
+ * @return {number}
576
+ */
577
+ Scrollbar.prototype.calculateContentSize = function () { return 0; };
578
+
579
+ /** @public
580
+ * @return {boolean} Return true if there is any change, otherwise false
581
+ */
582
+ Scrollbar.prototype.update = function () {
583
+ if(this._contentDirty) { // WARNING: Causes page recalculation
584
+ this._contentDirty = false;
585
+ let size = this.calculateContentSize();
586
+ if(!size || size < 0) {
587
+ size = 0;
588
+ }
589
+ if(this._pContentSize !== size) {
590
+ this._pContentSize = size;
591
+ this._layoutDirty = true;
592
+ }
593
+ }
594
+ if(this._layoutDirty) {
595
+ this._layoutDirty = false;
596
+ this._updateLayout();
597
+ return true;
598
+ }
599
+ return false;
600
+ };
601
+ /** @public
602
+ * @param {boolean=} forceUpdate
603
+ * @param {number=} scrollVal
604
+ * @ignore
605
+ */
606
+ Scrollbar.prototype.invalidate = function (forceUpdate, scrollVal) {
607
+ this._contentDirty = true;
608
+ this._layoutDirty = true;
609
+ if(scrollVal != null) {
610
+ this._pScrollVal = scrollVal;
611
+ }
612
+ if(forceUpdate) {
613
+ this.update();
614
+ }
615
+ };
616
+ /** @public
617
+ * @ignore
618
+ */
619
+ Scrollbar.prototype.invalidateContent = function () {
620
+ this._contentDirty = true;
621
+ };
622
+ /** Validates scrollbar-position against real content-size and pane-size
623
+ * @public
624
+ * @ignore
625
+ * @param {number} contentSize
626
+ * @return {boolean}
627
+ */
628
+ Scrollbar.prototype.isScrollPosValid = function(contentSize) {
629
+ let scrollGap = contentSize - this.getPaneSize();
630
+ let pScrollVal = this._pScrollVal;
631
+ return (pScrollVal === 0) || ((pScrollVal > 0) &&
632
+ (scrollGap > 0) && (pScrollVal < scrollGap));
633
+ };
634
+ /** @public
635
+ */
636
+ Scrollbar.prototype.flash = function () {
637
+ this.update();
638
+ this._flash();
639
+ };
640
+
641
+ /** @protected
642
+ * @ignore
643
+ * @param {number} pScrollVal
644
+ */
645
+ Scrollbar.prototype._scroll = function (pScrollVal) {
646
+ this._scrollTo(this._pScrollVal + pScrollVal);
647
+ };
648
+ /** @protected
649
+ * @ignore
650
+ * @param {number} pScrollVal Scroll value of the pane (not the track)
651
+ * @param {boolean=} layoutChanged Force triggering scroll event
652
+ */
653
+ Scrollbar.prototype._scrollTo = function (pScrollVal, layoutChanged) {
654
+ if(!this._active && !layoutChanged) {
655
+ return;
656
+ }
657
+ pScrollVal = this._calcProperScrollValue(pScrollVal);
658
+
659
+ let dirty = false;
660
+ if(this._pScrollVal !== pScrollVal) {
661
+ this._pScrollVal = pScrollVal; // Fix asynchronous of tracking issue
662
+ dirty = true;
663
+ }
664
+
665
+ this._setTrackScrollVal(pScrollVal);
666
+
667
+ if(dirty) {
668
+ if(layoutChanged) {
669
+ this._layoutChanged = true;
670
+ }
671
+ this._dispatchScrollEvent(null); // Event is fire synchronously
672
+ } else if(layoutChanged) {
673
+ this._dispatch("layoutChanged", {});
674
+ }
675
+ };
676
+ /** @private
677
+ * @param {number} scrollVal
678
+ * @return {number}
679
+ */
680
+ Scrollbar.prototype._calcProperScrollValue = function (scrollVal) {
681
+ if(!scrollVal || scrollVal - 0.5 < 0) {
682
+ return 0;
683
+ }
684
+ if(this._tPercentVal >= 1 && Math.abs(this._pScrollVal - scrollVal) <= 2) {
685
+ return this._pScrollVal; // Zooming could cause recalculation errors, so we try to snap the value to the end of the scrollbar
686
+ }
687
+
688
+ let scrollGap = this.getScrollGap();
689
+ if(scrollGap <= 0) { // Scrollbar is disabled or inactive
690
+ return 0;
691
+ } else if(scrollVal + 0.5 >= scrollGap) {
692
+ return scrollGap;
693
+ }
694
+
695
+ let step = this._step;
696
+ if(step) { // Step scrolling
697
+ scrollVal = Math.round(scrollVal / step) * step;
698
+ if(scrollVal - step / 2 <= 0) {
699
+ return 0;
700
+ } else if(scrollVal + step / 2 >= scrollGap) {
701
+ return scrollGap;
702
+ }
703
+ }
704
+ return Math.round(scrollVal); // Scroll value can only be integers
705
+ };
706
+ /** @private
707
+ * @param {number} tScrollVal Track scroll value
708
+ * @return {number}
709
+ */
710
+ Scrollbar.prototype._convertTrackToPane = function (tScrollVal) {
711
+ tScrollVal = Math.round(tScrollVal); // tScrollVal may not be an integer due to zooming
712
+
713
+ // Track scroll could be changed due to browser's zoom. We need to avoid unnecessary changes
714
+ let trackGap = this._getTrackGap();
715
+ if(this._tPercentVal >= 1) {
716
+ if(Math.abs(this._tScrollVal - tScrollVal) <= 5) {
717
+ tScrollVal = trackGap;
718
+ }
719
+ }
720
+
721
+ this._tScrollVal = tScrollVal;
722
+ this._tPercentVal = trackGap ? tScrollVal / trackGap : 0;
723
+
724
+ // Convert track value to pane value
725
+ let paneGap = this.getScrollGap();
726
+ let pScrollVal = (trackGap === paneGap) ? tScrollVal : this._tPercentVal * paneGap;
727
+ return pScrollVal;
728
+ };
729
+ /** @private
730
+ * @param {number} pScrollVal Pane scroll value
731
+ * @return {boolean} Return true, if there is any change to track value
732
+ */
733
+ Scrollbar.prototype._setTrackScrollVal = function(pScrollVal) {
734
+ let trackGap = this._getTrackGap();
735
+ let tScrollVal = 0;
736
+ if(trackGap > 0) {
737
+ if(pScrollVal > 0) {
738
+ let paneGap = this.getScrollGap();
739
+ tScrollVal = (trackGap === paneGap) ? pScrollVal : pScrollVal / paneGap * trackGap;
740
+ tScrollVal = Math.round(tScrollVal); // Avoid calculation error due to fractions from conversion
741
+ }
742
+ if(tScrollVal >= trackGap) {
743
+ tScrollVal = trackGap;
744
+ }
745
+ }
746
+
747
+ if(tScrollVal !== this._tScrollVal) {
748
+ this._tScrollVal = tScrollVal;
749
+ this._tPercentVal = trackGap ? tScrollVal / trackGap : 0;
750
+
751
+ // Scroll event will be fired asynchronously, if there is any change
752
+ let track = this._element;
753
+ if(this._vertical) {
754
+ track.scrollTop = tScrollVal;
755
+ } else {
756
+ track.scrollLeft = tScrollVal;
757
+ }
758
+ return true;
759
+ }
760
+ return false;
761
+ };
762
+ /** Get gap between thumb and its track
763
+ * @private
764
+ * @return {number}
765
+ */
766
+ Scrollbar.prototype._getTrackGap = function () {
767
+ let trackGap = this._tContentSize - this.getTrackSize();
768
+ return trackGap > 0 ? trackGap : 0;
769
+ };
770
+
771
+ /** @protected
772
+ * @ignore
773
+ * @return {number}
774
+ */
775
+ Scrollbar.prototype._getScrollValue = function () {
776
+ return this._pScrollVal;
777
+ };
778
+ /** @protected
779
+ * @ignore
780
+ * @return {boolean}
781
+ */
782
+ Scrollbar.prototype._isEndOfScroll = function () {
783
+ if(!this._active) {
784
+ return true; // TODO: Check if inactive state means end of scrolling
785
+ }
786
+
787
+ return this._pScrollVal >= this.getScrollGap();
788
+ };
789
+ /** @protected
790
+ * @ignore
791
+ * @return {boolean}
792
+ */
793
+ Scrollbar.prototype._isStartOfScroll = function() {
794
+ return !this._pScrollVal;
795
+ };
796
+ /** @protected
797
+ * @ignore
798
+ * @param {number} diff
799
+ * @return {boolean}
800
+ */
801
+ Scrollbar.prototype._isOnEdge = function (diff) {
802
+ return (diff < 0 && this._isStartOfScroll()) || (diff > 0 && this._isEndOfScroll());
803
+ };
804
+ /** @protected
805
+ * @ignore
806
+ */
807
+ Scrollbar.prototype._flash = function () {
808
+ if(!this._active || !this._autoHideScrollbar) { return; }
809
+
810
+ if(this._fadingId) {
811
+ this._postponeFading = true;
812
+ } else {
813
+ if(this._element._fading) { // This can improve performance a lot
814
+ this._element.classList.remove("grid-scroll-fadeout");
815
+ this._element._fading = false;
816
+ }
817
+ this._fadingId = setTimeout(this._onStartFading, 1000);
818
+ }
819
+ };
820
+
821
+ /** @protected
822
+ * @ignore
823
+ */
824
+ Scrollbar.prototype._clearAllPanes = function() {
825
+ for (let i = this._panes.length; --i >= 0; ) {
826
+ this._panes[i].setParent(null);
827
+ let paneSlider = this._paneSliders[i];
828
+ paneSlider._content = paneSlider._columns = null;
829
+ let elem = paneSlider.getElement();
830
+ while (elem.firstChild !== null) {
831
+ elem.removeChild(elem.firstChild);
832
+ }
833
+ }
834
+ };
835
+
836
+ /** @public
837
+ * @param {boolean=} opt_disabled
838
+ */
839
+ Scrollbar.prototype.disableKeyboardInput = function (opt_disabled) {
840
+ if(opt_disabled === false) {
841
+ this._element.setAttribute("tabindex", "-1"); // tabindex makes the element focusable. The negative value exclude it from tab key navigation
842
+ this._element.addEventListener("keydown", this._onKeyDown, false);
843
+ } else {
844
+ this._element.removeAttribute("tabindex");
845
+ this._element.removeEventListener("keydown", this._onKeyDown, false);
846
+ }
847
+ };
848
+ /** @public
849
+ * @param {boolean=} opt_disabled
850
+ */
851
+ Scrollbar.prototype.disableTouchInput = function (opt_disabled) {
852
+ this._touchInput = (opt_disabled === false);
853
+ };
854
+
855
+ /** Set scrollbar autohide status If set to false, scrollbar will always be shown and no fading
856
+ * @public
857
+ * @param {boolean} hide true if autohide, false if not
858
+ */
859
+ Scrollbar.prototype.setAutoHide = function (hide) {
860
+ this._autoHideScrollbar = hide;
861
+ if(!hide) { // Always show scrollbar
862
+ if(this._element._fading) {
863
+ this._element.classList.remove("grid-scroll-fadeout");
864
+ this._element._fading = false;
865
+ }
866
+ if(this._fadingId) {
867
+ clearTimeout(this._fadingId);
868
+ this._fadingId = 0;
869
+ }
870
+ }
871
+ };
872
+
873
+ /** Get scrollbar autohide status
874
+ * @public
875
+ * @return {boolean} true if autohide, false if not
876
+ */
877
+ Scrollbar.prototype.getAutoHide = function () {
878
+ return this._autoHideScrollbar;
879
+ };
880
+
881
+ /** Set reference to other scrollbar. For internal use only
882
+ * @public
883
+ * @ignore
884
+ * @param {Scrollbar} scrollbar Other scrollbar object
885
+ */
886
+ Scrollbar.prototype.setOtherScrollbar = function(scrollbar){
887
+ this._otherScrollbar = scrollbar;
888
+ };
889
+
890
+ /** Set number of expected frozen footer count. For internal use only.
891
+ * @public
892
+ * @ignore
893
+ * @param {number} num
894
+ */
895
+ Scrollbar.prototype.setFooterCount = function(num){
896
+ this._footerCount = num;
897
+ };
898
+
899
+ /** @private
900
+ * @return {boolean}
901
+ */
902
+ Scrollbar.prototype._calcActiveState = function () {
903
+ if(this._enabled) {
904
+ if(this.getTrackSize() > 20) {
905
+ let paneSize = this.getPaneSize();
906
+ if(paneSize > 0) {
907
+ return (this._pContentSize - paneSize > 0);
908
+ }
909
+ }
910
+ }
911
+ return false;
912
+ };
913
+ /** @private
914
+ */
915
+ Scrollbar.prototype._updateLayout = function () {
916
+ let active = this._calcActiveState();
917
+ if(active !== this._active) {
918
+ this._active = active;
919
+ this._onActiveStateChange();
920
+ }
921
+ if(!this._active) {
922
+ return;
923
+ }
924
+
925
+ let trackSize = this.getTrackSize();
926
+ let paneSize = this.getPaneSize();
927
+ this._tContentSize = this._pContentSize / paneSize * trackSize;
928
+ if (this._vertical) {
929
+ this._trackContent.style.height = this._tContentSize + "px";
930
+
931
+ this._element.style.height = trackSize + "px";
932
+ this._panes[0].setHeight(paneSize);
933
+ } else {
934
+ this._trackContent.style.width = this._tContentSize + "px";
935
+
936
+ this._element.style.width = trackSize + "px";
937
+ for (let i = this._panes.length; --i >= 0;) {
938
+ this._panes[i].setWidth(paneSize);
939
+ }
940
+ }
941
+
942
+ // Since track could be smaller, scrollVal needs to be updated. Also UI needs to be always updated too
943
+ this._scrollTo(this._pScrollVal, true); // Scroll event may be fired
944
+ };
945
+
946
+ /** @public
947
+ * @ignore
948
+ */
949
+ Scrollbar.prototype.resetPaneSize = function () {
950
+ let prop = (this._vertical) ? "height" : "width";
951
+ for (let i = this._panes.length; --i >= 0;) {
952
+ this._panes[i].setStyle(prop, "");
953
+ }
954
+ };
955
+
956
+ /** @private
957
+ * @param {MouseEvent} e
958
+ */
959
+ Scrollbar._preventVScrolling = function(e) {
960
+ e.currentTarget.scrollTop = 0;
961
+ };
962
+ /** @private
963
+ * @param {MouseEvent} e
964
+ */
965
+ Scrollbar._preventHScrolling = function(e) {
966
+ e.currentTarget.scrollLeft = 0;
967
+ };
968
+
969
+ /** @protected
970
+ * @ignore
971
+ * @param {number=} opt_at
972
+ * @returns {ElementWrapper}
973
+ */
974
+ Scrollbar.prototype._addPaneAt = function (opt_at) {
975
+ if(opt_at == null) {
976
+ opt_at = this._panes.length;
977
+ }
978
+
979
+ let pane = this._panes[opt_at];
980
+ if(!pane) {
981
+ pane = new ElementWrapper(document.createElement("div"));
982
+ pane.setClass("grid-pane");
983
+ if(this._vertical) {
984
+ pane.addClass("sections"); // The pane will host multiple sections
985
+ pane.listen("scroll", Scrollbar._preventVScrolling);
986
+ } else {
987
+ pane.addClass("columns"); // The pane will host multiple columns
988
+ pane.listen("scroll", Scrollbar._preventHScrolling);
989
+ }
990
+ if(!this._active) {
991
+ pane.addClass("scroll-disabled");
992
+ }
993
+ if(this._paneSize && this._active) {
994
+ let paneSize = this.getPaneSize();
995
+ if(this._vertical) {
996
+ pane.setHeight(paneSize);
997
+ } else {
998
+ pane.setWidth(paneSize);
999
+ }
1000
+ }
1001
+ pane.listen("touchstart", this._onTouchStart);
1002
+ pane.listen("touchmove", this._onTouchMove);
1003
+ pane.listen("touchend", this._onTouchEnd);
1004
+ pane.listen("touchcancel", this._onTouchEnd);
1005
+
1006
+ let paneSlider = new ElementWrapper(document.createElement("div"));
1007
+ paneSlider.setClass("grid-pane-slider");
1008
+ paneSlider.setParent(pane);
1009
+
1010
+ this._panes[opt_at] = pane;
1011
+ this._paneSliders[opt_at] = paneSlider;
1012
+ }
1013
+ return pane;
1014
+ };
1015
+ /** @private
1016
+ * @param {!Event} e
1017
+ */
1018
+ Scrollbar.prototype._onStartFading = function (e) {
1019
+ this._fadingId = 0;
1020
+ if(!this._active) { return; }
1021
+ if(this._postponeFading) {
1022
+ this._postponeFading = false;
1023
+ this._flash();
1024
+ } else {
1025
+ if(!this._element._fading) {
1026
+ this._element.classList.add("grid-scroll-fadeout");
1027
+ this._element._fading = true;
1028
+ }
1029
+ }
1030
+ };
1031
+ /** Scrolling from the UI
1032
+ * @private
1033
+ * @param {Object} e
1034
+ */
1035
+ Scrollbar.prototype._onTrackScroll = function (e) {
1036
+ if(!this._element) {
1037
+ return; // Element has been disposed
1038
+ }
1039
+
1040
+ let tScrollVal = (this._vertical) ? e.target["scrollTop"] : e.target["scrollLeft"];
1041
+ let pScrollVal = this._convertTrackToPane(tScrollVal);
1042
+
1043
+ pScrollVal = this._calcProperScrollValue(pScrollVal);
1044
+
1045
+ if(pScrollVal !== this._pScrollVal) { // Prevent duplicate event firing
1046
+ this._pScrollVal = pScrollVal;
1047
+ this._dispatchScrollEvent(e);
1048
+ }
1049
+ };
1050
+
1051
+ /** @private
1052
+ */
1053
+ Scrollbar.prototype._onRestingPosition = function () {
1054
+ this._setSliderPosition(-this._pScrollVal, true);
1055
+ };
1056
+ /** @private
1057
+ * @param {number} scrollVal
1058
+ * @param {boolean=} resting
1059
+ */
1060
+ Scrollbar.prototype._setSliderPosition = function (scrollVal, resting) {
1061
+ let translateStr = "";
1062
+ let relativeStr = "";
1063
+ let direction = this._vertical ? "top" : "left";
1064
+ if(scrollVal) {
1065
+ if(resting) {
1066
+ relativeStr = scrollVal + "px";
1067
+ } else {
1068
+ translateStr = this._vertical ? "translateY" : "translateX";
1069
+ translateStr += "(" + scrollVal + "px)";
1070
+ this._reverter.start();
1071
+ }
1072
+ }
1073
+ for (let i = this._paneSliders.length; --i >= 0; ) {
1074
+ let paneSlider = this._paneSliders[i];
1075
+ let paneSliderStyle = paneSlider.getElement().style;
1076
+ if(paneSlider._titleSection) {
1077
+ paneSliderStyle[direction] = scrollVal + "px";
1078
+ } else {
1079
+ paneSliderStyle.transform = translateStr;
1080
+ paneSliderStyle[direction] = relativeStr; // WORKAROUND: GRID-402
1081
+ }
1082
+ }
1083
+ if(resting) {
1084
+ this._dispatch("scrollEnd", {});
1085
+ } else {
1086
+ this._dispatch("scrollStart", {});
1087
+ }
1088
+ };
1089
+ /** @private
1090
+ * @param {Object=} e
1091
+ */
1092
+ Scrollbar.prototype._dispatchScrollEvent = function (e) {
1093
+ this._setSliderPosition(-this._pScrollVal, false);
1094
+
1095
+ this._flash(); // Slider has been updated. Flash the track's UI
1096
+
1097
+ // Fire scroll event synchronously
1098
+ if(!this._isEventDispatching("scroll")) { // VScrollbar may change scroll value
1099
+ if(!e) {
1100
+ let target = this._element;
1101
+ e = {
1102
+ "currentTarget": target,
1103
+ "srcElement": target,
1104
+ "target": target
1105
+ };
1106
+ }
1107
+ e["layoutChanged"] = this._layoutChanged; // Do not close the editor - the scroll is due to a layout change - this a not an actual scroll - see QuoteList.js (monitor-grid)
1108
+ if(this._vertical) {
1109
+ e["scrollTop"] = this._pScrollVal; // For backward compatibility
1110
+ } else {
1111
+ e["scrollLeft"] = this._pScrollVal;
1112
+ }
1113
+
1114
+ this._dispatch("scroll", e);
1115
+ }
1116
+ };
1117
+ /** @private
1118
+ * @param {!Event} e
1119
+ */
1120
+ Scrollbar.prototype._onKeyDown = function (e) {
1121
+ if (this._isFrozen) {
1122
+ Util._preventDefault(e);
1123
+ return;
1124
+ }
1125
+ if (!this._active) { return; }
1126
+
1127
+ let isArrow = false;
1128
+ if(this._vertical) {
1129
+ isArrow = (e.keyCode === 38 || e.keyCode === 40);
1130
+ } else {
1131
+ isArrow = (e.keyCode === 37 || e.keyCode === 39);
1132
+ }
1133
+
1134
+ if(isArrow) {
1135
+ let scrollGap = this.getScrollGap();
1136
+ let scrollVal = Math.round(scrollGap * 0.07);
1137
+ if(scrollVal < 10) {
1138
+ scrollVal = 10;
1139
+ } else if(scrollVal > 100) {
1140
+ scrollVal = 100;
1141
+ }
1142
+ if(e.keyCode === 37 || e.keyCode === 38) { // Left or Up
1143
+ scrollVal *= -1;
1144
+ }
1145
+ this._scroll(scrollVal);
1146
+ Util._preventDefault(e);
1147
+ }
1148
+ };
1149
+
1150
+ /** @private
1151
+ * @param {Event} e
1152
+ */
1153
+ Scrollbar.prototype._onTouchStart = function (e) {
1154
+ if (this._isFrozen) {
1155
+ Util._preventDefault(e);
1156
+ return;
1157
+ }
1158
+ if(this._swiping || !this._touchInput) {
1159
+ return;
1160
+ }
1161
+ if(this._vertical) { // Vertical scrollbar is optimized, so that it will not be activated on row change event
1162
+ this.update();
1163
+ }
1164
+ this._flash();
1165
+
1166
+ if(this._smoothingId) {
1167
+ clearInterval(this._smoothingId);
1168
+ this._smoothingId = 0;
1169
+ }
1170
+
1171
+ this._swiping = true;
1172
+ this._getTouchInfo(e, this._startPos);
1173
+ };
1174
+ /** @private
1175
+ * @param {Event} e
1176
+ */
1177
+ Scrollbar.prototype._onTouchMove = function (e) {
1178
+ let t = this;
1179
+
1180
+ if (t._isFrozen) {
1181
+ Util._preventDefault(e);
1182
+ return;
1183
+ }
1184
+ // Stop scrolling when scrollbar becomes inactive
1185
+ if(!t._swiping || !t._active || !t._touchInput) {
1186
+ return;
1187
+ }
1188
+
1189
+ if(e.touches && e.touches.length > 1) {
1190
+ return;
1191
+ }
1192
+
1193
+ let sp = t._startPos;
1194
+ let ep = t._endPos;
1195
+ t._getTouchInfo(e, ep);
1196
+ let diff = (this._vertical) ? sp["y"] - ep["y"] : sp["x"] - ep["x"];
1197
+
1198
+ if(diff > -5 && diff < 5) {
1199
+ return;
1200
+ } else if(t._isOnEdge(diff)) {
1201
+ return;
1202
+ }
1203
+
1204
+ if(t._touchDrag) {
1205
+ t._scrollTo(sp["scrollValue"] + diff);
1206
+ } else {
1207
+ let duration = ep["timeStamp"] - sp["timeStamp"];
1208
+ if(duration > 30) {
1209
+ t._touchDrag = true;
1210
+ }
1211
+ }
1212
+
1213
+ if(e.cancelable) {
1214
+ e.preventDefault();
1215
+ }
1216
+ };
1217
+ /** @private
1218
+ * @param {Event} e
1219
+ */
1220
+ Scrollbar.prototype._onTouchEnd = function (e) {
1221
+ if (this._isFrozen) {
1222
+ Util._preventDefault(e);
1223
+ return;
1224
+ }
1225
+ this._swiping = false;
1226
+ if(this._touchDrag) {
1227
+ this._touchDrag = false;
1228
+
1229
+ if(e.cancelable) {
1230
+ e.preventDefault();
1231
+ }
1232
+
1233
+ if(this._smoothing && !this._smoothingId) {
1234
+ let sp = this._startPos;
1235
+ let ep = this._getTouchInfo(e, this._endPos);
1236
+ let duration = ep["timeStamp"] - sp["timeStamp"];
1237
+ let diff = (this._vertical) ? (sp["y"] - ep["y"]) : (sp["x"] - ep["x"]);
1238
+ this._smoothingSpeed = diff * 30 / duration; // pixel per milliseconds
1239
+ if(this._smoothingSpeed > 10 || this._smoothingSpeed < -10) {
1240
+ this._smoothingId = setInterval(this._smoothScroll, 25);
1241
+ }
1242
+ }
1243
+ }
1244
+ };
1245
+ /** @private
1246
+ * @param {Event} e
1247
+ * @param {Object=} obj
1248
+ * @return {!Object}
1249
+ */
1250
+ Scrollbar.prototype._getTouchInfo = function(e, obj) {
1251
+ let touch = e.changedTouches[0];
1252
+ if(!obj) {
1253
+ obj = {};
1254
+ }
1255
+ obj["x"] = touch.pageX;
1256
+ obj["y"] = touch.pageY;
1257
+ obj["timeStamp"] = e.timeStamp;
1258
+ obj["scrollValue"] = this._getScrollValue();
1259
+ return obj;
1260
+ };
1261
+ /** @private
1262
+ */
1263
+ Scrollbar.prototype._smoothScroll = function() {
1264
+ let ss = this._smoothingSpeed;
1265
+ ss = (ss * 0.9) | 0; // OR operator is not equivalent to Math.floor()
1266
+ this._smoothingSpeed = ss;
1267
+ if(ss > 1 || ss < -1) {
1268
+ this._scroll(ss);
1269
+ } else {
1270
+ clearInterval(this._smoothingId);
1271
+ this._smoothingId = 0;
1272
+ }
1273
+ };
1274
+
1275
+ /** @public
1276
+ * @param {boolean=} opt_disabled
1277
+ */
1278
+ Scrollbar.prototype.disableMouseWheel = function (opt_disabled) {
1279
+ if(opt_disabled === false) {
1280
+ this.setMouseWheelLogic(this._mouseWheelLogic || this._onMouseWheel);
1281
+ } else {
1282
+ this.setMouseWheelLogic(null);
1283
+ }
1284
+ };
1285
+ /** @public
1286
+ * @ignore
1287
+ * @param {Function} handler
1288
+ */
1289
+ Scrollbar.prototype.setMouseWheelLogic = function (handler) {
1290
+ this.removeWheelListener(this._parentNode);
1291
+
1292
+ this._mouseWheelLogic = handler;
1293
+
1294
+ if(this._mouseWheelLogic) {
1295
+ // Wheel listener should be added to parentNode (utilizing event bubbling)
1296
+ this.addWheelListener(this._parentNode);
1297
+ }
1298
+ };
1299
+ /** @public
1300
+ * @param {Element} elem Element that will trigger scrolling by mouse wheel
1301
+ */
1302
+ Scrollbar.prototype.addWheelListener = function (elem) {
1303
+ if(elem && this._mouseWheelLogic) {
1304
+ // Note that this wheel event can not use passive options ({passive: false}) because of the need to prevent default behavior
1305
+ elem.addEventListener("wheel", this._mouseWheelLogic, false);
1306
+ }
1307
+ };
1308
+ /** @public
1309
+ * @param {Element} elem Element that will trigger scrolling by mouse wheel
1310
+ */
1311
+ Scrollbar.prototype.removeWheelListener = function (elem) {
1312
+ if(elem && this._mouseWheelLogic) {
1313
+ elem.removeEventListener("wheel", this._mouseWheelLogic, false);
1314
+ }
1315
+ };
1316
+ /** @public
1317
+ * @param {string} val
1318
+ */
1319
+ Scrollbar.prototype.setMouseWheelSpeed = function (val) {
1320
+ this._wheelScrolling = typeof val == "string" ? val : "";
1321
+ };
1322
+ /** @public
1323
+ * @ignore
1324
+ * @return {string}
1325
+ */
1326
+ Scrollbar.prototype.getMouseWheelSpeed = function () {
1327
+ return this._wheelScrolling;
1328
+ };
1329
+ /** @public
1330
+ * @return {function(Event)} Mouse wheel logic that is attached to this instance
1331
+ */
1332
+ Scrollbar.prototype.getDefaultMouseWheelLogic = function () {
1333
+ return this._onMouseWheel;
1334
+ };
1335
+ /** TODO: Support mouse wheel (currently works only touchpad wheel)
1336
+ * @private
1337
+ * @param {Event} e
1338
+ */
1339
+ Scrollbar.prototype._onMouseWheel = function (e) {
1340
+
1341
+ // Blacklist for prevent triggering the scrollbar when the dialog is opened.
1342
+ if(e.target.opened) { // get attribute method doesn't work in elf element
1343
+ return;
1344
+ }
1345
+
1346
+ if (this._isFrozen) {
1347
+ Util._preventDefault(e);
1348
+ return;
1349
+ }
1350
+ if(e.ctrlKey || e.altKey ) { return; }
1351
+ if (!this.isActive()) { return; }
1352
+
1353
+ let delta = (this._vertical) ? e["deltaY"] : e["deltaX"];
1354
+
1355
+ if(!delta) { return; }
1356
+
1357
+ if(this._isOnEdge(delta)) { return; }
1358
+
1359
+ // We must prevent on a passive event such as "wheel" to prevent default scrolling of the window
1360
+ Util._preventDefault(e);
1361
+
1362
+ // Only Firefox implements deltaMode. All other browsers use DOM_DELTA_PIXEL in most of the cases
1363
+ // See https://github.com/w3c/uievents/issues/181 and https://github.com/svgdotjs/svg.panzoom.js/issues/67
1364
+ // Hence, we need to normalize the delta value, so every browser have similar mousewheel behaviors.
1365
+ if(e.deltaMode) { // https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode
1366
+ delta = (delta > 0) ? 100 : -100; // WARNING: We use estimated value, since there is no simple way to calculate actual pixel value
1367
+ }
1368
+
1369
+ if(this._wheelScrolling != "linear") {
1370
+ let scrollSize = this.getContentSize();
1371
+ if(scrollSize >= 4000) { // Scaling for large content
1372
+ delta *= 1 + scrollSize / 4000 | 0; // If scrollSize == 4000, delta *= 2. If scrollSize == 8000, delta *= 3
1373
+ }
1374
+ }
1375
+
1376
+ this.update();
1377
+ this._scroll(delta);
1378
+ };
1379
+ /** @public
1380
+ * @param {number} px
1381
+ */
1382
+ Scrollbar.prototype.setScrollingStep = function (px) {
1383
+ this._step = (px > 0) ? px : 0;
1384
+ };
1385
+
1386
+ /** prevent all scrollbar action using stopPropagation and preventDefault
1387
+ * @public
1388
+ * @param {boolean=} frozen=true
1389
+ * @return {boolean} return previous frozen status
1390
+ */
1391
+ Scrollbar.prototype.freezeScrolling = function (frozen) {
1392
+ let prev = this._isFrozen;
1393
+ this._isFrozen = frozen !== false;
1394
+ return prev;
1395
+ };
1396
+ /** @public
1397
+ */
1398
+ Scrollbar.prototype.restoreTrackPosition = function () {
1399
+ // Scroll event will be fired asynchronously, if there is any change
1400
+ let track = this._element;
1401
+ if(this._vertical) {
1402
+ track.scrollTop = this._tScrollVal;
1403
+ if(track.scrollTop){
1404
+ this._tScrollVal = track.scrollTop; //Check to ensure that cache equal to element's scroll
1405
+ }
1406
+ }
1407
+ //TODO: handle restore scrollLeft for hscroll
1408
+ };
1409
+
1410
+ Scrollbar._proto = Scrollbar.prototype;
1411
+
1412
+ export default Scrollbar;
1413
+ export { Scrollbar };