@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,1320 @@
1
+ import Ext from "../../../tr-grid-util/es6/Ext.js";
2
+ import EventDispatcher from "../grid/event/EventDispatcher.js";
3
+ import DataView from "./DataView.js"; // eslint-disable-line
4
+ import DataTable from "./DataTable.js"; // eslint-disable-line
5
+ import DataCache from "./DataCache.js"; // eslint-disable-line
6
+ import ColumnStats from "./ColumnStats.js"; // eslint-disable-line
7
+
8
+ /** @event WrappedView#dataChanged
9
+ * @description Trigger when data within the data view has been changed. Not only actual change in data, but also position change will trigger this event.
10
+ * @property {boolean} globalChange Indicates a big change. User should expect all data has been change. With active sorting or filtering, this flag will always be true due to multiple changes in row position.
11
+ * @property {string} type Type of changes. Possible values are "inserted", "removed", "updated", and undefined
12
+ * @property {string} rid Row Id
13
+ * @property {Object.<string, *>} rowData Column values of the changed row in JSON object format
14
+ */
15
+
16
+ /** WrappedView doesn't hold the actual data. It is just a transform view (by applying wrap operation) of the data from the {@link DataView}
17
+ * @constructor
18
+ * @extends {EventDispatcher}
19
+ * @param {WrappedView~Options} options
20
+ */
21
+ let WrappedView = function(options) {
22
+ this._onDataChanged = this._onDataChanged.bind(this);
23
+ this._onWrapSizeChanged = this._onWrapSizeChanged.bind(this);
24
+
25
+ this._dv = options["dataView"];
26
+ this._dt = this._dv.getDataTable();
27
+
28
+ this._dv.listen("dataChanged", this._onDataChanged);
29
+ this._dv.listen("wrapSizeChanged", this._onWrapSizeChanged);
30
+
31
+ this._wrapIndex = options["wrapIndex"];
32
+
33
+ this._refreshRids(options["rids"]);
34
+
35
+ this._addEvents("dataChanged");
36
+ };
37
+ Ext.inherits(WrappedView, EventDispatcher);
38
+
39
+ /** The configuration object for WrappedView
40
+ * @typedef {Object} WrappedView~Options
41
+ * @property {DataView} dataView
42
+ * @property {number} wrapIndex
43
+ * @property {Array.<string> rids
44
+ */
45
+ WrappedView.Options;
46
+
47
+ /** @private
48
+ * @type {DataView}
49
+ */
50
+ WrappedView.prototype._dv = null;
51
+ /** @private
52
+ * @type {DataTable}
53
+ */
54
+ WrappedView.prototype._dt = null;
55
+ /** @private
56
+ * @type {number}
57
+ */
58
+ WrappedView.prototype._wrapIndex = 0;
59
+ /** List of row Ids
60
+ * @private
61
+ * @type {!Array.<string>}
62
+ */
63
+ WrappedView.prototype._rids;
64
+ /** @private
65
+ * @type {Conflator}
66
+ */
67
+ WrappedView.prototype._dataConflator = null;
68
+
69
+
70
+ /** @private
71
+ * @param {Object} e
72
+ */
73
+ WrappedView.prototype._onDataChanged = function(e) {
74
+ if(this._dv) {
75
+ let rids = this._dv.getVisibleRowIds(true);
76
+ if(this._refreshRids(rids)) {
77
+ if(!e["globalChange"]) {
78
+ e["globalChange"] = true; // TODO: Optimize how we to dispatch globalChange
79
+ }
80
+ this._dispatch("dataChanged", e);
81
+ }
82
+ }
83
+ };
84
+ /** @private
85
+ * @param {Object} e
86
+ */
87
+ WrappedView.prototype._onWrapSizeChanged = function(e) {
88
+ if(this._refreshRids(e["rids"])) {
89
+ this._dispatch("dataChanged", DataTable._globalChangeArg);
90
+ }
91
+ };
92
+
93
+ /** @private
94
+ * @param {Array.<string>} rids
95
+ * @return {boolean} Returns true if there is any change
96
+ */
97
+ WrappedView.prototype._refreshRids = function(rids) {
98
+ let dirty = false;
99
+ if(this._dv && Array.isArray(rids)) {
100
+ let wrapSize = this.getWrapSize();
101
+ if(wrapSize > 0) {
102
+ let startIndex = wrapSize * this._wrapIndex;
103
+
104
+ if(startIndex < rids.length) {
105
+ dirty = true;
106
+ this._rids = rids.slice(startIndex, startIndex + wrapSize);
107
+ } else if(this._rids.length) {
108
+ dirty = true;
109
+ this._rids.length = 0;
110
+ }
111
+ }
112
+ }
113
+ return dirty;
114
+ };
115
+ /** @public
116
+ */
117
+ WrappedView.prototype.dispose = function() {
118
+ if(this._dv) {
119
+ this.unlistenAll();
120
+ this._dv.unlisten("dataChanged", this._onDataChanged);
121
+ this._dv.unlisten("wrapSizeChanged", this._onWrapSizeChanged);
122
+ this._dt = this._dv = null;
123
+ }
124
+ };
125
+
126
+ /** Get data by row id and column id (field)
127
+ * @public
128
+ * @param {string} rid
129
+ * @param {string} cid
130
+ * @returns {Object.<string, *>}
131
+ */
132
+ WrappedView.prototype.getData = function(rid, cid) {
133
+ return this._dt.getData(rid, cid);
134
+ };
135
+ /** Get entire row data by row id
136
+ * @public
137
+ * @param {string} rid
138
+ * @return {Object.<string, *>}
139
+ */
140
+ WrappedView.prototype.getRowData = function(rid) {
141
+ return this._dt.getRowData(rid);
142
+ };
143
+ /** @public
144
+ * @param {string} cid
145
+ * @param {boolean=} inclNonDataRow=false If enabled, group header rows are included
146
+ * @return {!Array}
147
+ */
148
+ WrappedView.prototype.getColumnData = function(cid, inclNonDataRow) {
149
+ let rids = this.getAllRowIds(true, inclNonDataRow);
150
+
151
+ let rows = [];
152
+ let len = rids.length;
153
+ for(let r = 0; r < len; ++r) {
154
+ let rowData = this._dt.getRowData(rids[r]);
155
+ if(rowData) {
156
+ rows.push(rowData[cid]);
157
+ } else if(inclNonDataRow) {
158
+ rows.push(null);
159
+ }
160
+ }
161
+ return rows;
162
+ };
163
+ /** @public
164
+ * @param {number} rowIndex
165
+ * @return {string}
166
+ * @see {@link WrappedView#getRowIndex}
167
+ */
168
+ WrappedView.prototype.getRowId = function(rowIndex) {
169
+ return this._rids[rowIndex] || "";
170
+ };
171
+ /** @private
172
+ * @param {number|string} rowRef
173
+ * @return {string}
174
+ */
175
+ WrappedView.prototype._toRowId = function(rowRef) {
176
+ if(typeof rowRef === "number") {
177
+ return this._rids[rowRef] || "";
178
+ }
179
+ return /** @type{string} */(rowRef || "");
180
+ };
181
+ /** @private
182
+ * @param {Array.<number|string>} rowRefs
183
+ * @return {!Array.<string>}
184
+ */
185
+ WrappedView.prototype._toRowIds = function(rowRefs) {
186
+ let rowCount = Array.isArray(rowRefs) ? rowRefs.length : 0;
187
+ let ary = new Array(rowCount);
188
+ let rids = this._rids;
189
+ for(let r = 0; r < rowCount; ++r) {
190
+ let rowRef = rowRefs[r];
191
+ if(typeof rowRef === "number") {
192
+ ary[r] = rids[rowRef] || "";
193
+ } else {
194
+ ary[r] = rowRef || "";
195
+ }
196
+ }
197
+ return ary;
198
+ };
199
+ /** Return all row ids with row data, excluding the group header rows (auto generated rows).
200
+ * @public
201
+ * @param {boolean=} shallowCopy=false If enabled, no new copy of Array is created (better for performance).
202
+ * @param {boolean=} inclNonDataRow=false If enabled, group header rows are included. In pagination mode, this flag will always be true.
203
+ * @return {!Array.<string>}
204
+ * @see {@link WrappedView#getAllRowData}
205
+ * @see {@link WrappedView#getMultipleRowData}
206
+ * @see {@link WrappedView#getSortedRowIds}
207
+ * @see {@link WrappedView#getVisibleRowIds}
208
+ */
209
+ WrappedView.prototype.getAllRowIds = function(shallowCopy, inclNonDataRow) {
210
+ return (shallowCopy) ? this._rids : this._rids.slice(0); // Fastest way to clone an array is Array.slice()
211
+ };
212
+ /** This method returns current visible rows (i.e. Rows in other pages or in collapsed groups are excluded). Group header rows may be included in the results.
213
+ * @public
214
+ * @param {boolean=} shallowCopy=false If enabled, no new copy of Array is created (better for performance).
215
+ * @return {!Array.<string>}
216
+ * @see {@link WrappedView#getAllRowData}
217
+ */
218
+ WrappedView.prototype.getVisibleRowIds = function(shallowCopy) {
219
+ return (shallowCopy) ? this._rids : this._rids.slice(0); // Fastest way to clone an array is Array.slice()
220
+ };
221
+ /** Return all data rows that is filtered and sorted, excluding header rows or paging. This method ignores pagination.
222
+ * @public
223
+ * @param {boolean=} shallowCopy=false If enabled, no new copy of Array is created (better for performance).
224
+ * @return {!Array.<string>}
225
+ * @see {@link WrappedView#getAllRowData}
226
+ */
227
+ WrappedView.prototype.getSortedRowIds = function(shallowCopy) {
228
+ return (shallowCopy) ? this._rids : this._rids.slice(0); // Fastest way to clone an array is Array.slice()
229
+ };
230
+ /** This method is quite slow
231
+ * @public
232
+ * @param {string} rid
233
+ * @return {number}
234
+ * @see {@link WrappedView#getRowId}
235
+ */
236
+ WrappedView.prototype.getRowIndex = function(rid) {
237
+ return this._rids.indexOf(rid);
238
+ };
239
+ /** @public
240
+ * @return {number}
241
+ */
242
+ WrappedView.prototype.getRowCount = function() {
243
+ return this._rids.length;
244
+ };
245
+ /** @public
246
+ * @param {number} rowIndex
247
+ * @param {string} cid
248
+ * @returns {Object.<string, *>}
249
+ */
250
+ WrappedView.prototype.getDataAt = function(rowIndex, cid) {
251
+ return this._dt.getData(this.getRowId(rowIndex), cid);
252
+ };
253
+ /** This method is slow. When working with huge amount of rows, use getRowData in combination with getAllRowIds(true) instead of calling getRowDataAt multiple times.
254
+ * @public
255
+ * @param {number} rowIndex
256
+ * @return {Object.<string, *>}
257
+ */
258
+ WrappedView.prototype.getRowDataAt = function(rowIndex) {
259
+ return this._dt.getRowData(this.getRowId(rowIndex));
260
+ };
261
+ /** @public
262
+ * @param {string} rid
263
+ * @param {string} cid
264
+ * @returns {Object.<string, *>}
265
+ */
266
+ WrappedView.prototype.getPreviousData = function(rid, cid) {
267
+ return this._dt.getPreviousData(rid, cid);
268
+ };
269
+ /** @public
270
+ * @param {Array.<string>} rids
271
+ * @param {number=} opt_from
272
+ * @param {number=} opt_to EXCLUSIVE
273
+ * @return {!Array.<Object>}
274
+ */
275
+ WrappedView.prototype.getMultipleRowData = function(rids, opt_from, opt_to) {
276
+ return this._dt.getMultipleRowData(rids, opt_from, opt_to);
277
+ };
278
+ /** Return all rows with row data, excluding the group header rows (auto generated rows)
279
+ * @public
280
+ * @return {!Array.<Object>}
281
+ */
282
+ WrappedView.prototype.getAllRowData = function() {
283
+ return this.getMultipleRowData(this.getAllRowIds(true));
284
+ };
285
+
286
+ /** @public
287
+ * @param {string} rid
288
+ * @param {string} cid
289
+ * @param {*} value
290
+ * @return {boolean} Return true if there is any change, and false otherwise
291
+ */
292
+ WrappedView.prototype.setData = function(rid, cid, value) {
293
+ if(this._dt) {
294
+ return this._dt.setData(rid, cid, value);
295
+ }
296
+ return false;
297
+ };
298
+ /** @public
299
+ * @param {string} rid
300
+ * @param {Object.<string, *>=} values
301
+ * @param {Object=} opt_eventArg
302
+ * @return {boolean} Return true if there is any change, and false otherwise
303
+ */
304
+ WrappedView.prototype.setRowData = function(rid, values, opt_eventArg) {
305
+ return this._dv.setRowData(rid, values, opt_eventArg);
306
+ };
307
+ /** Set data in a column manner. This is faster than repeatedly calling {@link DataTable#setData}
308
+ * @public
309
+ * @param {string} cid
310
+ * @param {Array} valueList
311
+ * @param {Array.<string>=} opt_ridList Specify row id to be set corresponding to the data item
312
+ */
313
+ WrappedView.prototype.setColumnData = function(cid, valueList, opt_ridList) {
314
+ // Note: This function should filter out row expansion before calling dt.setColumnData
315
+ if(this._dt) {
316
+ this._dt.setColumnData(cid, valueList, opt_ridList);
317
+ }
318
+ };
319
+ /** This method is slow. When working with huge amount of rows, use setData in combination with getAllRowIds(true) instead of calling setDataAt multiple times.
320
+ * @public
321
+ * @param {number} rowIndex
322
+ * @param {string} cid
323
+ * @param {*} value
324
+ * @return {boolean} Return true if there is any change, and false otherwise
325
+ */
326
+ WrappedView.prototype.setDataAt = function(rowIndex, cid, value) {
327
+ let rid = this.getRowId(rowIndex);
328
+ if(rid && this._dt) {
329
+ return this._dt.setData(rid, cid, value);
330
+ }
331
+ return false;
332
+ };
333
+ /** This method is slow. When working with huge amount of rows, use setRowData in combination with getAllRowIds(true) instead of calling setRowDataAt multiple times.
334
+ * @public
335
+ * @param {number} rowIndex
336
+ * @param {Object.<string, *>=} values
337
+ * @param {Object=} opt_eventArg
338
+ * @return {boolean} Return true if there is any change, and false otherwise
339
+ */
340
+ WrappedView.prototype.setRowDataAt = function(rowIndex, values, opt_eventArg) {
341
+ let rid = this.getRowId(rowIndex);
342
+ return this.setRowData(rid, values, opt_eventArg);
343
+ };
344
+
345
+ /** @public
346
+ * @param {string|number} rowRef The position of the new row
347
+ * @param {Object.<string, *>=} opt_values
348
+ * @param {string|null=} opt_rid If the given row Id already exists, data is updated and no new row is added. Leave blank or null to let DataTable generate unique row Id
349
+ * @return {string} Return Row id that has been inserted or changed
350
+ */
351
+ WrappedView.prototype.insertRow = function(rowRef, opt_values, opt_rid) { // Data changed event may be dispatched
352
+ let rowId = this._toRowId(rowRef);
353
+ return this._dv.insertRow(rowId, opt_values, opt_rid);
354
+ };
355
+
356
+ /** Permanently remove the specified row by row id or WrappedView's row index. If you want to temporarily remove the row, use {@link WrappedView#hideRows} instead
357
+ * @public
358
+ * @param {number|string} rowRef
359
+ */
360
+ WrappedView.prototype.removeRow = function(rowRef) {
361
+ if(this._dt) {
362
+ this._dt.removeRow(this._toRowId(rowRef)); // Trigger dataChanged
363
+ }
364
+ };
365
+ /** Permanently remove the specified rows by row id or WrappedView's row index. If you want to temporarily remove the rows, use {@link WrappedView#hideRows} instead
366
+ * @public
367
+ * @param {Array.<number|string>} rowRefs
368
+ */
369
+ WrappedView.prototype.removeRows = function(rowRefs) {
370
+ if(this._dt) {
371
+ this._dt.removeRows(this._toRowIds(rowRefs)); // Trigger dataChanged
372
+ }
373
+ };
374
+ /** Move a single row or multiple rows to the position BEFORE the specified target row.
375
+ * @public
376
+ * @param {Array.<number|string>|number|string} fromRef The value could be row index, row id, or array of row indices or row ids.
377
+ * @param {number|string} toRef Destination target could be row index or row id
378
+ * @return {Array.<string>|string} rid rowId or array of the rowId of the moved row(s)
379
+ * @example
380
+ * ary = [0, 1, 2];
381
+ * move(ary, 0, 1); // [0, 1, 2] Move index 0 to the position before index 1 (nothing is changed)
382
+ * move(ary, 1, 0); // [1, 0, 2] Move index 1 to the position before index 0
383
+ */
384
+ WrappedView.prototype.moveRow = function(fromRef, toRef) {
385
+ let toRid = this._toRowId(toRef);
386
+ let fromIndices = /** @type{!Array.<number>} */(Array.isArray(fromRef) ? fromRef : [fromRef]);
387
+ let fromRids = this._toRowIds(fromIndices);
388
+
389
+ // if(this._dt.hasSegmentation()) {
390
+ // this.synchronizeRowOrder();
391
+ // }
392
+
393
+ return this._dv.moveRow(fromRids, toRid);
394
+ };
395
+
396
+ /** Returns the root data source (DataTable) of all data views
397
+ * @public
398
+ * @return {DataTable}
399
+ * @see {@link WrappedView#getDataSource}
400
+ */
401
+ WrappedView.prototype.getDataTable = function() {
402
+ return this._dt;
403
+ };
404
+ /** Return source for this data view which could be another data view or a data table.
405
+ * @public
406
+ * @return {DataView}
407
+ * @see {@link WrappedView#getDataTable}
408
+ */
409
+ WrappedView.prototype.getDataSource = function() {
410
+ return this._dv;
411
+ };
412
+ /** @public
413
+ * @param {DataView=} source
414
+ */
415
+ WrappedView.prototype.setDataSource = function(source) {
416
+
417
+ };
418
+
419
+ /** @public
420
+ * @param {number} milliSecond
421
+ */
422
+ WrappedView.prototype.setConflationRate = function (milliSecond) {
423
+ this._dv.setConflationRate(milliSecond);
424
+ };
425
+
426
+ /** @public
427
+ * @return {number}
428
+ */
429
+ WrappedView.prototype.getConflationRate = function () {
430
+ return this._dv.getConflationRate();
431
+ };
432
+
433
+ /**
434
+ * @public
435
+ * @ignore
436
+ * @return {Object.<string, DataTable.SortLogic>}
437
+ */
438
+ WrappedView.prototype.getSortingLogics = function() {
439
+ return this._dt ? this._dt.getSortingLogics() : null;
440
+ };
441
+ /** @public
442
+ * @param {string|Array.<string>} cid
443
+ * @param {string|number|Array.<string|number>=} opt_sortOrder
444
+ * @param {Function|Array.<Function>=} sortLogics
445
+ * @param {boolean=} noOptimization=false Force to sort without optimization to refresh all rowIds again.
446
+ */
447
+ WrappedView.prototype.sort = function (cid, opt_sortOrder, sortLogics, noOptimization) {
448
+ this._dv.sort(cid, opt_sortOrder, sortLogics, noOptimization);
449
+ };
450
+ /** @public
451
+ * @param {string|Array.<string>} cid
452
+ * @param {string|number|Array.<string|number>=} opt_sortOrder
453
+ */
454
+ WrappedView.prototype.sortOnce = function(cid, opt_sortOrder) {
455
+ this._dv.sortOnce(cid, opt_sortOrder);
456
+ };
457
+ /** @public
458
+ * @param {DataTable.SortLogic} func
459
+ * @example
460
+ * customLogic = function(a, b, sortOrder) {
461
+ * return (a - b) * sortOrder; // for numeric comparison
462
+ * };
463
+ * let dt = new DataTable();
464
+ * let dv = new DataView(dt);
465
+ * dv.setSortingLogic(customLogic);
466
+ * dv.sort("Column id", "ascending");
467
+ */
468
+ WrappedView.prototype.setSortingLogic = function(func) {
469
+ if(this._dt) {
470
+ this._dt.setSortingLogic(func);
471
+ }
472
+ };
473
+ /** Specified sorting logic for the column with the given column id. This will override logic set by {@link WrappedView#setSortingLogic}, when the column is sorted
474
+ * @public
475
+ * @param {string} cid
476
+ * @param {DataTable.SortLogic} func Use null to remove current sorting logic
477
+ */
478
+ WrappedView.prototype.setColumnSortingLogic = function(cid, func) {
479
+ if(this._dt) {
480
+ this._dt.setColumnSortingLogic(cid, func);
481
+ }
482
+ };
483
+ /** Check if this view is in sorting mode
484
+ * @public
485
+ * @return {boolean}
486
+ */
487
+ WrappedView.prototype.isSorting = function() {
488
+ return this._dv.isSorting();
489
+ };
490
+
491
+ /** Hide rows in the data view
492
+ * @param {string|number} rId Row id to hide. If the rId is a number, it will be treated as a row index
493
+ * @param {boolean=} opt_show show if false
494
+ * @public
495
+ */
496
+ WrappedView.prototype.hideRow = function(rId, opt_show) {
497
+ this.showRows([rId], opt_show === false);
498
+ };
499
+ /** Hide rows in the data view
500
+ * @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
501
+ * @param {boolean=} opt_show show if false
502
+ * @public
503
+ */
504
+ WrappedView.prototype.hideRows = function(rowRefs, opt_show) {
505
+ this.showRows(rowRefs, opt_show === false);
506
+ };
507
+ /**
508
+ * Show/hide rows in the data view
509
+ * @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
510
+ * @param {boolean=} opt_show hide instead show if false
511
+ * @public
512
+ */
513
+ WrappedView.prototype.showRows = function(rowRefs, opt_show) {
514
+ let rids = this._toRowIds(rowRefs);
515
+ this._dv.showRows(rids, opt_show);
516
+ };
517
+ /** Unhide all rows
518
+ * @public
519
+ */
520
+ WrappedView.prototype.unhideAllRows = function(){
521
+ this._dv.unhideAllRows();
522
+ };
523
+ /** Check if there is any hidden row
524
+ * @public
525
+ * @return {boolean}
526
+ */
527
+ WrappedView.prototype.hasHiddenRow = function(){
528
+ return this._dv.hasHiddenRow();
529
+ };
530
+
531
+ /** @public
532
+ * @param {string|function(string, Object.<string, *>):boolean} cid Use string to identify column name. Use function for custom filter logic. Function will take rowId and column values as parameters, and return boolean value
533
+ * @param {*=} value
534
+ * @param {boolean=} opt_filteringOut
535
+ * @return {boolean} Return true if there is any change. Otherwise, return false.
536
+ * @example
537
+ * dv.filterIn("FIELD", "Some value");
538
+ * dv.filterIn(function(rowId, rowData)) { // This is equivalent with the above statement
539
+ * return rowData["FIELD"] === "Some value";
540
+ * });
541
+ */
542
+ WrappedView.prototype.filterIn = function(cid, value, opt_filteringOut) {
543
+ return this._dv.filterIn(cid, value, opt_filteringOut);
544
+ };
545
+ /** @public
546
+ * @param {string|function(string, Object.<string, *>):boolean} cid Use string to identify column name. Use function for custom filter logic. Function will take rowId and column values as parameters, and return boolean value
547
+ * @param {*=} value
548
+ * @return {boolean} Return true if there is any change. Otherwise, return false.
549
+ * @example
550
+ * dv.filterIn("FIELD", "Some value");
551
+ * dv.filterOut(function(rowId, rowData)) { // This is equivalent with the above statement
552
+ * return rowData["FIELD"] !== "Some value";
553
+ * });
554
+ */
555
+ WrappedView.prototype.filterOut = function(cid, value) {
556
+ return this.filterIn(cid, value, true);
557
+ };
558
+ /** @public
559
+ * @param {string|Function} cid Use string to identify column name. Use function for custom filter logic. Function will take rowId and column values as parameters, and return boolean value
560
+ * @param {*=} value
561
+ * @param {boolean=} opt_filteringOut
562
+ */
563
+ WrappedView.prototype.filterInOnce = function(cid, value, opt_filteringOut) {
564
+ this._dv.filterInOnce(cid, value, opt_filteringOut);
565
+ };
566
+ /** @public
567
+ * @suppress {checkTypes}
568
+ * @param {string|function(string, Object.<string, *>):boolean} cid Use string to identify column name. Use function for custom filter logic. Function will take rowId and column values as parameters, and return boolean value
569
+ * @param {*=} value
570
+ */
571
+ WrappedView.prototype.filterOutOnce = function(cid, value) {
572
+ this.filterInOnce(cid, value, true);
573
+ };
574
+ /** @public
575
+ */
576
+ WrappedView.prototype.clearFilter = function() {
577
+ this._dv.clearFilter();
578
+ };
579
+
580
+ /** Disable the page index correction
581
+ * @public
582
+ * @param {boolean=} opt_disable
583
+ */
584
+ WrappedView.prototype.disablePageCorrection = function(opt_disable) {
585
+ };
586
+ /** Goes to the specified page
587
+ * @public
588
+ * @param {number} pageIndex
589
+ * @return {boolean} True if there is any change, otherwise false
590
+ */
591
+ WrappedView.prototype.setPage = function (pageIndex) { return false; };
592
+ /** {@link WrappedView#setPage}
593
+ * @public
594
+ * @function
595
+ */
596
+ WrappedView.prototype.gotoPage = WrappedView.prototype.setPage;
597
+ /** Goes to the next page. If current page is already the last page, nothing is performed
598
+ * @public
599
+ * @return {boolean} True if there is any change, otherwise false
600
+ */
601
+ WrappedView.prototype.nextPage = function () {
602
+ return false;
603
+ };
604
+ /** Goes back to the previous page. If current page is already the first page, nothing is performed
605
+ * @public
606
+ * @return {boolean} True if there is any change, otherwise false
607
+ */
608
+ WrappedView.prototype.previousPage = function () {
609
+ return false;
610
+ };
611
+ /** {@link WrappedView#previousPage}
612
+ * @public
613
+ * @function
614
+ */
615
+ WrappedView.prototype.prevPage = WrappedView.prototype.previousPage;
616
+ /** Goes to the last page
617
+ * @public
618
+ * @return {boolean} True if there is any change, otherwise false
619
+ */
620
+ WrappedView.prototype.lastPage = function () {
621
+ return false;
622
+ };
623
+ /** Goes to the first page
624
+ * @public
625
+ * @return {boolean} True if there is any change, otherwise false
626
+ */
627
+ WrappedView.prototype.firstPage = function () {
628
+ return false;
629
+ };
630
+
631
+ /**
632
+ * @public
633
+ * @return {number}
634
+ */
635
+ WrappedView.prototype.getCurrentPage = function () {
636
+ return 1;
637
+ };
638
+ /** {@link WrappedView#getCurrentPage}
639
+ * @public
640
+ * @function
641
+ */
642
+ WrappedView.prototype.getPageIndex = WrappedView.prototype.getCurrentPage;
643
+ /** Verifies that current page is the last page
644
+ * @public
645
+ * @return {boolean}
646
+ */
647
+ WrappedView.prototype.isOnLastPage = function () {
648
+ return true;
649
+ };
650
+ /** Verifies that current page is the first page
651
+ * @public
652
+ * @return {boolean}
653
+ */
654
+ WrappedView.prototype.isOnFirstPage = function () {
655
+ return true;
656
+ };
657
+
658
+ /** Get total number of rows in a single page
659
+ * @public
660
+ * @return {number}
661
+ */
662
+ WrappedView.prototype.getPageSize = function () {
663
+ return 0;
664
+ };
665
+ /** Get total number of pages
666
+ * @public
667
+ * @return {number}
668
+ */
669
+ WrappedView.prototype.getPageCount = function () {
670
+ return 1;
671
+ };
672
+ /** {@link WrappedView#getTotalPages}
673
+ * @public
674
+ * @function
675
+ */
676
+ WrappedView.prototype.getTotalPages = WrappedView.prototype.getPageCount;
677
+ /** Shrink current view to the specified size. Set it 0 to reset to original size
678
+ * @public
679
+ * @param {number} pageSize
680
+ */
681
+ WrappedView.prototype.setPageSize = function (pageSize) {};
682
+
683
+ /** Group all rows by the specified criteria. The criteria can be field name (field value will be used as a group id) or a function that takes row data and returns group id.
684
+ * @public
685
+ * @param {string|Function|Array.<string|Function>} cid Column id or grouper method that take one parameter for row data in JSON format, and returns groupId (string)
686
+ * @param {Array=} opt_predefinedGroups
687
+ */
688
+ WrappedView.prototype.groupBy = function (cid, opt_predefinedGroups) {
689
+ this._dv.groupBy(cid, opt_predefinedGroups);
690
+ };
691
+ /** addGroup is used to add a single predefined group or multiple predefined groups.
692
+ * @public
693
+ * @param {*|Array} value
694
+ */
695
+ WrappedView.prototype.addGroup = function (value) {
696
+ this._dv.addGroup(value);
697
+ };
698
+ /** Sort all of its descendants based on given compare function
699
+ * @public
700
+ * @param {Function=} compare Default is sorting by text. If null or false value is given, no sorting is performed
701
+ */
702
+ WrappedView.prototype.sortGroups = function (compare) {
703
+ this._dv.sortGroups(compare);
704
+ };
705
+ /** Move the specified group within its group
706
+ * @public
707
+ * @param {number|string} groupRef
708
+ * @param {number} destIndex
709
+ */
710
+ WrappedView.prototype.moveGroup = function (groupRef, destIndex) {
711
+ this._dv.moveGroup(groupRef, destIndex);
712
+ };
713
+ /** WARNING: This could be very slow to perform
714
+ * @public
715
+ * @param {Array} predefinedGroups Use two dimensional array to define groups for multi-level grouping. The first item is for the top level groups. The second item is for the second level groups, and so on. If one dimentional array is given, it is treated as the first item in the two-dimentionsal array.
716
+ * @example
717
+ * dv.setPredefinedGroups(["a", "b", "c"]); // Create empty three empty groups
718
+ * dv.setPredefinedGroups([ // Create two empty groups, and each group has 3 sub-groups
719
+ * ["Main Group 1", "Main 2"],
720
+ * ["Sub 1", "Sub 2", "Sub 3"]
721
+ * ]);
722
+ */
723
+ WrappedView.prototype.setPredefinedGroups = function (predefinedGroups) {
724
+ this._dv.setPredefinedGroups(predefinedGroups);
725
+ };
726
+
727
+ /** Add a footer to current group
728
+ * @public
729
+ * @param {number=} opt_num Number of footer to be added. If not specified, the number is one.
730
+ */
731
+ WrappedView.prototype.addFooter = function (opt_num) {
732
+ this._dv.addFooter(opt_num);
733
+ };
734
+ /** Remove all footers in the gurrent view
735
+ * @public
736
+ */
737
+ WrappedView.prototype.removeFooter = function () {
738
+ this._dv.removeFooter();
739
+ };
740
+
741
+ /** Enable/Disable multi-group row mode
742
+ * @public
743
+ * @ignore
744
+ * @param {boolean=} enabled
745
+ */
746
+ WrappedView.prototype.enableMultiGroup = function(enabled) {
747
+ this._dv.enableMultiGroup(enabled);
748
+ };
749
+
750
+ /** Get a group DataView by group row id. If content row id is given, null is returned (unlike getGroup method).<br>
751
+ * Nested groups and other groups outside of this group branch will be searched.
752
+ * @public
753
+ * @param {string} rowId Group Id, row Id or group index (for immediate child groups)
754
+ * @return {DataView}
755
+ * @see {@link WrappedView#getGroup}
756
+ */
757
+ WrappedView.prototype.getGroupByRowId = function (rowId) {
758
+ return this._dv.getGroupByRowId(rowId);
759
+ };
760
+ /** Get a corresponding DataView by the given group Id, row Id or group index. If row Id of content row is given, a parent group will be returned. <br>
761
+ * Nested groups and other groups outside of this group branch will be searched.
762
+ * @public
763
+ * @param {number|string} groupRef Group Id, row Id or group index (for immediate child groups)
764
+ * @return {DataView}
765
+ * @see {@link WrappedView#getGroupByRowId}
766
+ */
767
+ WrappedView.prototype.getGroup = function (groupRef) {
768
+ return this._dv.getGroup(groupRef);
769
+ };
770
+ /** Get all group descendants
771
+ * @public
772
+ * @param {Array=} out_ary
773
+ * @return {!Array.<DataView>}
774
+ */
775
+ WrappedView.prototype.getAllGroups = function (out_ary) {
776
+ return this._dv.getAllGroups(out_ary);
777
+ };
778
+ /** Get immediate group members row ids in array list
779
+ * @public
780
+ * @return {Array.<string>}
781
+ */
782
+ WrappedView.prototype.getGroupList = function () {
783
+ return this._dv.getGroupList();
784
+ };
785
+ /** Get group id (string) of this data view. Only exists if this data view is a child data view
786
+ * @public
787
+ * @return {string}
788
+ */
789
+ WrappedView.prototype.getGroupId = function () {
790
+ return this._dv.getGroupId();
791
+ };
792
+ /** Get group value (any data type) of this data view. Only exists if this data view is a child data view
793
+ * @public
794
+ * @return {*}
795
+ */
796
+ WrappedView.prototype.getGroupValue = function () {
797
+ return this._dv.getGroupValue();
798
+ };
799
+ /** Row id used by parent data view as a header row for referencing
800
+ * @public
801
+ * @return {string}
802
+ */
803
+ WrappedView.prototype.getGroupRowId = function () {
804
+ return this._dv.getGroupRowId();
805
+ };
806
+ /**
807
+ * @public
808
+ * @ignore
809
+ * @param {number} rid
810
+ * @return {number}
811
+ */
812
+ WrappedView.prototype.getFooterRowIndex = function (rid) {
813
+ return this._dv.getFooterRowIndex(rid);
814
+ };
815
+ /** A List of the footer row ids. Footer row is placed at the bottom of all other rows in this view
816
+ * @public
817
+ * @ignore
818
+ * @return {Array.<string>} Null if there is no footer row
819
+ */
820
+ WrappedView.prototype.getFooterRowIds = function () {
821
+ return this._dv.getFooterRowIds();
822
+ };
823
+ /**
824
+ * @public
825
+ * @return {boolean}
826
+ */
827
+ WrappedView.prototype.hasGroup = function () {
828
+ return this._dv.hasGroup();
829
+ };
830
+ /** Deprecated in favor of getGroupByRowId
831
+ * @public
832
+ * @return {null}
833
+ * @see {@link WrappedView#getGroupByRowId}
834
+ */
835
+ WrappedView.prototype.getGroupRows = function () {
836
+ return null;
837
+ };
838
+ /** Get group level of the corresponding row. If the given index is not specified, header row (the view itself) is used instead. Group level 0 means it is the root data view.
839
+ * @public
840
+ * @param {(number|string)=} rowRef
841
+ * @return {number}
842
+ */
843
+ WrappedView.prototype.getGroupLevel = function (rowRef) {
844
+ let rowId = this._toRowId(rowRef);
845
+ return this._dv.getGroupLevel(rowId);
846
+ };
847
+
848
+ /** Statistics (e.g. Sum, Avg, Max, and Min) of the specified column will be collected on every update. WARNING: CPU usage is intensive. Do disable, if the column is no longer used.
849
+ * @public
850
+ * @param {string} cid
851
+ * @param {boolean=} opt_enabled
852
+ * @param {string=} opt_refId
853
+ * @return {ColumnStats} ColumnStats Object
854
+ */
855
+ WrappedView.prototype.enableColumnStats = function(cid, opt_enabled, opt_refId) {
856
+ return this._dv.enableColumnStats(cid, opt_enabled, opt_refId);
857
+ };
858
+ /** @public
859
+ * @param {string} cid
860
+ * @return {ColumnStats} ColumnStats. Return null if the column has not been enabled
861
+ */
862
+ WrappedView.prototype.getColumnStats = function(cid) {
863
+ return this._dv.getColumnStats(cid);
864
+ };
865
+
866
+ /** This method temporarily remove all rows from the view, which can improve performance as further updates and operations will be ignored
867
+ * @public
868
+ * @param {boolean=} opt_hidden
869
+ * @returns {boolean}
870
+ */
871
+ WrappedView.prototype.hide = function(opt_hidden) {
872
+ return this._dv.hide(opt_hidden);
873
+ };
874
+ /** @public
875
+ * @return {boolean}
876
+ */
877
+ WrappedView.prototype.isHidden = function() {
878
+ return this._dv.isHidden();
879
+ };
880
+ /** @public
881
+ * @param {string} rowId
882
+ * @return {boolean} Returns true when this row is hidden
883
+ */
884
+ WrappedView.prototype.isHiddenRow = function(rowId) {
885
+ return this._dv.isHiddenRow(rowId);
886
+ };
887
+
888
+ /** Collapse current view. This works only if the view is generated as a child view
889
+ * @public
890
+ * @param {boolean=} opt_collapsed
891
+ */
892
+ WrappedView.prototype.collapse = function(opt_collapsed) {
893
+ this._dv.collapse(opt_collapsed);
894
+ };
895
+ /** Collapse all children and descendants, excluding itself and its parent
896
+ * @public
897
+ * @param {boolean=} opt_collapsed
898
+ */
899
+ WrappedView.prototype.collapseAllGroups = function(opt_collapsed) {
900
+ this._dv.collapseAllGroups(opt_collapsed);
901
+ };
902
+ /** @public
903
+ */
904
+ WrappedView.prototype.toggleCollapsedState = function() {
905
+ this.collapse(!this.isCollapsed());
906
+ };
907
+ /** @public
908
+ * @return {boolean}
909
+ */
910
+ WrappedView.prototype.isCollapsed = function() {
911
+ return this._dv.isCollapsed();
912
+ };
913
+ /** Content as header mode indicates that the group headers cannot be collapsed and the first row in the group will always be shown.
914
+ * @public
915
+ * @param {boolean=} bool
916
+ */
917
+ WrappedView.prototype.enableContentAsHeader = function(bool) {
918
+ this._dv.enableContentAsHeader(bool);
919
+ };
920
+
921
+ /** This will not include collapsed group and rows
922
+ * @public
923
+ * @return {number}
924
+ */
925
+ WrappedView.prototype.getVisibleRowCount = function() {
926
+ return this._rids.length;
927
+ };
928
+
929
+ /** @public
930
+ * @description check weather row object is in group
931
+ * @param {Object} rowData
932
+ * @param {string=} groupID Default group id is the group id of the DataView that is being called.
933
+ * @return {boolean}
934
+ */
935
+ WrappedView.prototype.isRowDataInGroup = function (rowData, groupID) {
936
+ return this._dv.isRowDataInGroup(rowData, groupID);
937
+ };
938
+
939
+ /** @public
940
+ * @description check weather row ID is in group
941
+ * @param {string} rowId
942
+ * @param {string=} groupID Default group id is the group id of the DataView that is being called.
943
+ * @return {boolean}
944
+ */
945
+ WrappedView.prototype.isRowIdInGroup = function (rowId, groupID) {
946
+ return this._dv.isRowIdInGroup(rowId, groupID);
947
+ };
948
+
949
+ /** The row expansion will be directly below the specified row, even if this data view is sorted.
950
+ * @public
951
+ * @param {string} rid Row Id
952
+ * @param {number=} count=1
953
+ */
954
+ WrappedView.prototype.addRowExpansion = function(rid, count) {
955
+ this._dv.addRowExpansion(rid, count);
956
+ };
957
+ /**
958
+ * @public
959
+ * @param {string} rid Row Id
960
+ */
961
+ WrappedView.prototype.removeRowExpansion = function(rid) {
962
+ this._dv.removeRowExpansion(rid);
963
+ };
964
+ /**
965
+ * @public
966
+ * @param {string|number} rowRef Row Id or index
967
+ * @param {boolean=} force
968
+ * @param {number=} count=1
969
+ */
970
+ WrappedView.prototype.toggleRowExpansion = function(rowRef, force, count) {
971
+ let rid = this._toRowId(rowRef);
972
+ this._dv.toggleRowExpansion(rid, force, count);
973
+ };
974
+ /** @public
975
+ */
976
+ WrappedView.prototype.removeAllRowExpansions = function() {
977
+ this._dv.removeAllRowExpansions();
978
+ };
979
+ /** Deprecated. Use {@link WrappedView#getExpansionParents} instead. Get all rows with expansion (not row expansion itself) will contains row id, otherwise undefined.
980
+ * @public
981
+ * @ignore
982
+ * @param {number=} from
983
+ * @param {number=} to EXCLUSIVE
984
+ * @return {!Array.<string|undefined>}
985
+ */
986
+ WrappedView.prototype.getRowsWithExpansion = function(from, to) {
987
+ return this._dv.getRowsWithExpansion(from, to); // TODO: Convert row index to row id
988
+ };
989
+ /** Get row expansion states from the specified range. The returned value will be row id for row expansion, otherwise empty string for other types of row (e.g. normal row, or group header row)
990
+ * @public
991
+ * @param {number=} from
992
+ * @param {number=} to EXCLUSIVE
993
+ * @return {Array.<string>} object mapping of rowIndex and parentRowId
994
+ */
995
+ WrappedView.prototype.getExpansionParents = function (from, to) {
996
+ return this._dv.getExpansionParents(from, to); // TODO: Convert row index to row id
997
+ };
998
+
999
+ /** Check if the specified row is itself a row expansion.
1000
+ * @public
1001
+ * @param {string} rid rowId
1002
+ * @return {boolean}
1003
+ */
1004
+ WrappedView.prototype.isRowExpansion = function(rid) {
1005
+ return this._dv.isRowExpansion(rid);
1006
+ };
1007
+ /** Check if the specified row has row expansion (not row expansion itself).
1008
+ * @public
1009
+ * @param {string} rid rowId
1010
+ * @return {boolean}
1011
+ */
1012
+ WrappedView.prototype.hasRowExpansion = function(rid) {
1013
+ return this._dv.hasRowExpansion(rid);
1014
+ };
1015
+ /** Get row Id of the row expansion by providing the row Id of the row with row expansion (not row expansion itself). This is NOT recommended for normal usage, since the row expansion contains no data in the DataView
1016
+ * @public
1017
+ * @param {string} rid rowId
1018
+ * @param {number=} idx=0
1019
+ * @return {string} Empty string is returned if the provided row does not contains a row expansion.
1020
+ */
1021
+ WrappedView.prototype.getRowExpansionId = function(rid, idx) {
1022
+ return this._dv.getRowExpansionId(rid, idx);
1023
+ };
1024
+
1025
+ /** Get index from the row expansion id. Any row other than row expansion will yield negative value (-1)
1026
+ * @public
1027
+ * @param {string} rid Row expansion id
1028
+ * @return {number}
1029
+ */
1030
+ WrappedView.prototype.getRowExpansionIndex = function(rid) {
1031
+ return this._dv.getRowExpansionIndex(rid);
1032
+ };
1033
+ /**
1034
+ * @public
1035
+ * @param {function(Object):boolean} searchLogic Function that takes row data object and return boolean value
1036
+ * @param {Array.<string>=} opt_out Array for containing row ids
1037
+ * @return {!Array.<string>} List of row ids
1038
+ */
1039
+ WrappedView.prototype.searchAll = function(searchLogic, opt_out) {
1040
+ return this._dv.searchAll(searchLogic, opt_out);
1041
+ };
1042
+ /**
1043
+ * @public
1044
+ * @param {number|string} rowRef
1045
+ * @param {function(Object):boolean} searchLogic Function that takes row data object and return boolean value
1046
+ * @return {number} Row index
1047
+ */
1048
+ WrappedView.prototype.searchPrev = function(rowRef, searchLogic) {
1049
+ let rid = this._toRowId(rowRef);
1050
+ return this._dv.searchPrev(rid, searchLogic);
1051
+ };
1052
+ /**
1053
+ * @public
1054
+ * @param {number|string} rowRef
1055
+ * @param {function(Object):boolean} searchLogic Function that takes row data object and return boolean value
1056
+ * @return {number} Row index
1057
+ */
1058
+ WrappedView.prototype.searchNext = function(rowRef, searchLogic) {
1059
+ let rid = this._toRowId(rowRef);
1060
+ return this._dv.searchNext(rid, searchLogic);
1061
+ };
1062
+
1063
+ /** Blocks all row insertion and removal, but keep updating the data
1064
+ * @public
1065
+ * @param {boolean=} opt_bool
1066
+ * @return {boolean} True if there is any change
1067
+ */
1068
+ WrappedView.prototype.stall = function(opt_bool) {
1069
+ return this._dv.stall(opt_bool);
1070
+ };
1071
+ /** Automatically and asyncronuosly remove group that has no member or no content. Predefined groups will not be removed in this way.
1072
+ * @public
1073
+ * @param {boolean=} opt_bool
1074
+ * @return {boolean} True if there is any change
1075
+ */
1076
+ WrappedView.prototype.enableAutoGroupRemoval = function(opt_bool) {
1077
+ return this._dv.enableAutoGroupRemoval(opt_bool);
1078
+ };
1079
+ /** Automatically hide null or undefined group header, while keeping the group's items intact.
1080
+ * @public
1081
+ * @param {boolean=} opt_bool
1082
+ * @return {boolean} True if there is any change
1083
+ */
1084
+ WrappedView.prototype.enableAutoGroupHiding = function(opt_bool) {
1085
+ return this._dv.enableAutoGroupHiding(opt_bool);
1086
+ };
1087
+
1088
+ /** Copy row order in data view to its data table
1089
+ * @public
1090
+ */
1091
+ WrappedView.prototype.synchronizeRowOrder = function() {
1092
+ this._dv.synchronizeRowOrder();
1093
+ };
1094
+ /** Set visible row as segment separator (hidden or filtered rows cannot be a segment separator)
1095
+ * @public
1096
+ * @param {string|number} rowRef Row id or row index
1097
+ * @param {boolean=} enabled
1098
+ * @return {boolean} Return true if there is any change
1099
+ */
1100
+ WrappedView.prototype.setSegmentSeparator = function(rowRef, enabled) {
1101
+ let rowId = this._toRowId(rowRef);
1102
+ return this._dv.setSegmentSeparator(rowId, enabled);
1103
+ };
1104
+ /**
1105
+ * @public
1106
+ * @return {boolean} Return true if there is any change
1107
+ */
1108
+ WrappedView.prototype.unsetAllSegmentSeparators = function() {
1109
+ return this._dt.unsetAllSegmentSeparators();
1110
+ };
1111
+ /**
1112
+ * @public
1113
+ * @return {boolean}
1114
+ */
1115
+ WrappedView.prototype.hasSegmentation = function() {
1116
+ return this._dt.hasSegmentation();
1117
+ };
1118
+ /**
1119
+ * @public
1120
+ * @param {string} rid
1121
+ * @return {boolean}
1122
+ */
1123
+ WrappedView.prototype.isSegmentSeparator = function(rid) {
1124
+ return this._dt.isSegmentSeparator(rid);
1125
+ };
1126
+
1127
+ /**
1128
+ * @public
1129
+ * @param {string} rid
1130
+ * @return {string} parent row id of this segmentation. If the parent row id for this segmentation cannot be found, return ""
1131
+ */
1132
+ WrappedView.prototype.getSegmentParentRowId = function(rid) {
1133
+ return this._dt.getSegmentParentRowId(rid);
1134
+ };
1135
+ /** @public
1136
+ * @param {string|number} rowRef Row id or row index
1137
+ * @param {boolean=} collapsed
1138
+ * @return {boolean} Return true if there is any change
1139
+ */
1140
+ WrappedView.prototype.collapseSegment = function(rowRef, collapsed) {
1141
+ let rid = this._toRowId(rowRef);
1142
+ return this._dv.collapseSegment(rid, collapsed);
1143
+ };
1144
+ /** @public
1145
+ * @param {string|number} rowRef Row id or row index
1146
+ * @param {boolean=} expanded
1147
+ * @return {boolean} Return true if there is any change
1148
+ */
1149
+ WrappedView.prototype.expandSegment = function(rowRef, expanded) {
1150
+ return this.collapseSegment(rowRef, expanded === false);
1151
+ };
1152
+ /** @public
1153
+ * @return {boolean} Return true if there is any change
1154
+ */
1155
+ WrappedView.prototype.expandAllSegments = function() {
1156
+ return this._dv.expandAllSegments();
1157
+ };
1158
+ /** Deprecated.
1159
+ * @public
1160
+ * @ignore
1161
+ */
1162
+ WrappedView.prototype.setSegmentCollapsingLogic = function() {};
1163
+ /** @public
1164
+ * @param {string|number} rowRef Row id or row index
1165
+ * @return {boolean} Return true if only the given row is a collapsed segment separator
1166
+ */
1167
+ WrappedView.prototype.isSegmentCollapsed = function(rowRef) {
1168
+ let rid = this._toRowId(rowRef);
1169
+ return this._dv.isSegmentCollapsed(rid);
1170
+ };
1171
+ /** Remove existing segment children and fill the segments with all contnet rows before the next segment separator
1172
+ * @public
1173
+ * @param {string|number} segmentRef Row id or row index
1174
+ */
1175
+ WrappedView.prototype.fillSegment = function(segmentRef) {
1176
+ let rid = this._toRowId(segmentRef);
1177
+ this._dv.fillSegment(rid);
1178
+ };
1179
+ /** Remove all existing segment children in each segment and fill the segments with all contnet rows before the next segment separator
1180
+ * @public
1181
+ */
1182
+ WrappedView.prototype.fillSegments = function() {
1183
+ this._dv.fillSegments();
1184
+ };
1185
+ /** @public
1186
+ * @param {string|number} segmentRef Row id or row index
1187
+ * @param {string|number} rowRef Row id, row index
1188
+ * @return {boolean} Return true if there is any change
1189
+ */
1190
+ WrappedView.prototype.addSegmentChild = function(segmentRef, rowRef) {
1191
+ let segmentId = this._toRowId(segmentRef);
1192
+ let rowId = this._toRowId(rowRef);
1193
+ return this._dv.addSegmentChild(segmentId, rowId);
1194
+ };
1195
+ /** @public
1196
+ * @param {string|number} segmentRef Row id or row index
1197
+ * @param {Array.<string|number>} rowRefs Array of row ids or row indices
1198
+ * @return {boolean} Return true if there is any change
1199
+ */
1200
+ WrappedView.prototype.addSegmentChildren = function(segmentRef, rowRefs) {
1201
+ let segmentId = this._toRowId(segmentRef);
1202
+ let rowIds = this._toRowIds(rowRefs);
1203
+ return this._dv.addSegmentChildren(segmentId, rowIds);
1204
+ };
1205
+ /** @public
1206
+ * @param {string|number} segmentRef Row id or row index
1207
+ * @param {string|number} rowRef Row id, row index
1208
+ * @return {boolean} Return true if there is any change
1209
+ */
1210
+ WrappedView.prototype.removeSegmentChild = function(segmentRef, rowRef) {
1211
+ let segmentId = this._toRowId(segmentRef);
1212
+ let rowId = this._toRowId(rowRef);
1213
+ return this._dv.removeSegmentChild(segmentId, rowId);
1214
+ };
1215
+ /** @public
1216
+ * @param {string|number} segmentRef Row id or row index
1217
+ * @param {Array.<string|number>} rowRefs Array of row ids or row indices. If null is given, no child will be removed.
1218
+ * @return {boolean} Return true if there is any change
1219
+ */
1220
+ WrappedView.prototype.removeSegmentChildren = function(segmentRef, rowRefs) {
1221
+ let segmentId = this._toRowId(segmentRef);
1222
+ let rowIds = this._toRowIds(rowRefs);
1223
+ return this._dv.removeSegmentChildren(segmentId, rowIds);
1224
+ };
1225
+ /** @public
1226
+ * @return {boolean} Return true if there is any change
1227
+ */
1228
+ WrappedView.prototype.removeAllSegmentChildren = function() {
1229
+ return this._dt.removeAllSegmentChildren();
1230
+ };
1231
+ /** Get row ids of all segment separator
1232
+ * @public
1233
+ * @return {Array.<string>} Return null if there is no segment separator
1234
+ */
1235
+ WrappedView.prototype.getSegmentIds = function() {
1236
+ return this._dt.getSegmentIds();
1237
+ };
1238
+ /** Get row ids of all children from the specified segment
1239
+ * @public
1240
+ * @param {string|number} segmentRef Row id or row index
1241
+ * @return {Array.<string>} Returns array of row ids. Returns null if there is no child or no segment separator found
1242
+ */
1243
+ WrappedView.prototype.getSegmentChildIds = function(segmentRef) {
1244
+ return this._dt.getSegmentChildIds(this._toRowId(segmentRef));
1245
+ };
1246
+ /** Sort all of existing segments by given compare function
1247
+ * @public
1248
+ * @param {Function} compare
1249
+ */
1250
+ WrappedView.prototype.sortSegments = function (compare) {
1251
+ this._dt.sortSegments(compare);
1252
+ };
1253
+
1254
+ /** Return 0, if there is no wrapping
1255
+ * @public
1256
+ * @return {number}
1257
+ */
1258
+ WrappedView.prototype.getWrapSize = function () {
1259
+ return this._dv.getWrapSize();
1260
+ };
1261
+ /** Return null, if there is no wrapping
1262
+ * @public
1263
+ * @return {Array.<WrappedView>}
1264
+ */
1265
+ WrappedView.prototype.getWrappedViews = function () {
1266
+ return this._dv.getWrappedViews();
1267
+ };
1268
+ /**
1269
+ * @public
1270
+ * @param {number=} wrapSize
1271
+ * @fires DataView#wrapCountChanged
1272
+ */
1273
+ WrappedView.prototype.wrapView = function (wrapSize) {
1274
+ this._dv.wrapView(wrapSize);
1275
+ };
1276
+
1277
+ /** Construct a JSON object that is compatible with console.table()
1278
+ * @public
1279
+ * @param {Object=} opt_options {@link DataCache#dump}
1280
+ * @return {!Array.<Object>} Return a JSON object that is compatible with console.table()
1281
+ * @see {@link DataCache#dump}
1282
+ */
1283
+ WrappedView.prototype.dump = function(opt_options) {
1284
+ return DataCache.constructTable(this.getMultipleRowData(this._rids), opt_options, this._rids);
1285
+ };
1286
+ /** Print current data and structure to console panel
1287
+ * @public
1288
+ * @param {Object=} opt_options
1289
+ * @example
1290
+ // Options have the following format:
1291
+ // {
1292
+ // "colNames": Array.<string>,
1293
+ // "rowCount": number,
1294
+ // "startIndex": number,
1295
+ // "getter": function(Object, string):*,
1296
+ // "withRowIds": boolean
1297
+ //}
1298
+ dv.log({"rowCount": 10}); // Showing 10 records
1299
+ dv.log({"getter": function(rowData, colName){
1300
+ let complexData = rowData[colName];
1301
+ return complextData.someProperty;
1302
+ }});
1303
+ */
1304
+ WrappedView.prototype.log = function(opt_options) {
1305
+ console.table(this.dump(opt_options));
1306
+ };
1307
+
1308
+
1309
+ /** Check if the row should be filtered out
1310
+ * @public
1311
+ * @param {string} rid
1312
+ * @param {Object} rowData
1313
+ * @return {boolean}
1314
+ */
1315
+ WrappedView.prototype.isRowFiltered = function(rid, rowData) {
1316
+ return this._dv.isRowFiltered(rid, rowData);
1317
+ };
1318
+
1319
+ export default WrappedView;
1320
+ export { WrappedView };