gridx-rails 1.2.1 → 1.3.0.pre.alpha

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 (327) hide show
  1. checksums.yaml +9 -9
  2. data/app/assets/images/gridx/resources/images/headershadow.png +0 -0
  3. data/app/assets/images/gridx/resources/images/rowback.png +0 -0
  4. data/app/assets/images/gridx/resources/images/sprite.png +0 -0
  5. data/app/assets/javascripts/gridx/Grid.js +20 -3
  6. data/app/assets/javascripts/gridx/allModules.js +18 -4
  7. data/app/assets/javascripts/gridx/core/Core.js +36 -6
  8. data/app/assets/javascripts/gridx/core/model/Model.js +6 -5
  9. data/app/assets/javascripts/gridx/core/model/cache/Async.js +9 -7
  10. data/app/assets/javascripts/gridx/core/model/cache/Sync.js +414 -12
  11. data/app/assets/javascripts/gridx/core/model/extensions/Mark.js +14 -20
  12. data/app/assets/javascripts/gridx/core/model/extensions/Modify.js +3 -10
  13. data/app/assets/javascripts/gridx/modules/AutoPagedBody.js +100 -0
  14. data/app/assets/javascripts/gridx/modules/AutoScroll.js +92 -23
  15. data/app/assets/javascripts/gridx/modules/Bar.js +14 -1
  16. data/app/assets/javascripts/gridx/modules/Body.js +64 -29
  17. data/app/assets/javascripts/gridx/modules/CellWidget.js +5 -2
  18. data/app/assets/javascripts/gridx/modules/ColumnLock.js +1 -2
  19. data/app/assets/javascripts/gridx/modules/ColumnWidth.js +4 -1
  20. data/app/assets/javascripts/gridx/modules/Dod.js +216 -12
  21. data/app/assets/javascripts/gridx/modules/Edit.js +143 -68
  22. data/app/assets/javascripts/gridx/modules/ExpandableColumn.js +292 -0
  23. data/app/assets/javascripts/gridx/modules/Filter.js +14 -0
  24. data/app/assets/javascripts/gridx/modules/Focus.js +9 -3
  25. data/app/assets/javascripts/gridx/modules/Header.js +22 -12
  26. data/app/assets/javascripts/gridx/modules/HeaderRegions.js +23 -8
  27. data/app/assets/javascripts/gridx/modules/IndirectSelect.js +6 -7
  28. data/app/assets/javascripts/gridx/modules/IndirectSelectColumn.js +1 -1
  29. data/app/assets/javascripts/gridx/modules/Layer.js +358 -0
  30. data/app/assets/javascripts/gridx/modules/NestedSort.js +8 -10
  31. data/app/assets/javascripts/gridx/modules/PagedBody.js +22 -323
  32. data/app/assets/javascripts/gridx/modules/Puller.js +113 -0
  33. data/app/assets/javascripts/gridx/modules/RowHeader.js +7 -6
  34. data/app/assets/javascripts/gridx/modules/RowLock.js +49 -19
  35. data/app/assets/javascripts/gridx/modules/SlantedHeader.js +46 -0
  36. data/app/assets/javascripts/gridx/modules/Sort.js +417 -0
  37. data/app/assets/javascripts/gridx/modules/StructureSwitch.js +143 -0
  38. data/app/assets/javascripts/gridx/modules/SummaryBar.js +6 -1
  39. data/app/assets/javascripts/gridx/modules/TouchVScroller.js +36 -13
  40. data/app/assets/javascripts/gridx/modules/Tree.js +6 -8
  41. data/app/assets/javascripts/gridx/modules/VScroller.js +1 -1
  42. data/app/assets/javascripts/gridx/modules/View.js +25 -18
  43. data/app/assets/javascripts/gridx/modules/VirtualVScroller.js +23 -11
  44. data/app/assets/javascripts/gridx/modules/_PagedBodyMixin.js +351 -0
  45. data/app/assets/javascripts/gridx/modules/dnd/Avatar.js +1 -1
  46. data/app/assets/javascripts/gridx/modules/dnd/_Dnd.js +1 -0
  47. data/app/assets/javascripts/gridx/modules/extendedSelect/Row.js +8 -5
  48. data/app/assets/javascripts/gridx/modules/filter/FilterBar.js +24 -17
  49. data/app/assets/javascripts/gridx/modules/filter/FilterConfirmDialog.js +3 -1
  50. data/app/assets/javascripts/gridx/modules/filter/FilterDialog.js +2 -2
  51. data/app/assets/javascripts/gridx/modules/filter/FilterPane.js +4 -5
  52. data/app/assets/javascripts/gridx/modules/filter/FilterTooltip.js +1 -1
  53. data/app/assets/javascripts/gridx/modules/filter/QuickFilter.js +32 -9
  54. data/app/assets/javascripts/gridx/modules/pagination/_PaginationBarBase.js +4 -1
  55. data/app/assets/javascripts/gridx/modules/select/Row.js +8 -4
  56. data/app/assets/javascripts/gridx/nls/ar/{FilterBar.js → gridx.js} +77 -5
  57. data/app/assets/javascripts/gridx/nls/bg/{FilterBar.js → gridx.js} +71 -5
  58. data/app/assets/javascripts/gridx/nls/ca/{FilterBar.js → gridx.js} +71 -5
  59. data/app/assets/javascripts/gridx/nls/cs/{FilterBar.js → gridx.js} +77 -5
  60. data/app/assets/javascripts/gridx/nls/da/{FilterBar.js → gridx.js} +77 -5
  61. data/app/assets/javascripts/gridx/nls/de/{FilterBar.js → gridx.js} +77 -5
  62. data/app/assets/javascripts/gridx/nls/el/{FilterBar.js → gridx.js} +77 -5
  63. data/app/assets/javascripts/gridx/nls/es/{FilterBar.js → gridx.js} +71 -5
  64. data/app/assets/javascripts/gridx/nls/fi/{FilterBar.js → gridx.js} +77 -5
  65. data/app/assets/javascripts/gridx/nls/fr/{FilterBar.js → gridx.js} +77 -5
  66. data/app/assets/javascripts/gridx/nls/{FilterBar.js → gridx.js} +80 -4
  67. data/app/assets/javascripts/gridx/nls/he/{FilterBar.js → gridx.js} +77 -5
  68. data/app/assets/javascripts/gridx/nls/hr/{FilterBar.js → gridx.js} +77 -5
  69. data/app/assets/javascripts/gridx/nls/hu/{FilterBar.js → gridx.js} +77 -5
  70. data/app/assets/javascripts/gridx/nls/it/{FilterBar.js → gridx.js} +77 -5
  71. data/app/assets/javascripts/gridx/nls/ja/{FilterBar.js → gridx.js} +77 -5
  72. data/app/assets/javascripts/gridx/nls/kk/{FilterBar.js → gridx.js} +76 -5
  73. data/app/assets/javascripts/gridx/nls/ko/{FilterBar.js → gridx.js} +81 -5
  74. data/app/assets/javascripts/gridx/nls/nb/{FilterBar.js → gridx.js} +77 -5
  75. data/app/assets/javascripts/gridx/nls/nl/{FilterBar.js → gridx.js} +77 -5
  76. data/app/assets/javascripts/gridx/nls/pl/{FilterBar.js → gridx.js} +77 -5
  77. data/app/assets/javascripts/gridx/nls/pt/{FilterBar.js → gridx.js} +71 -5
  78. data/app/assets/javascripts/gridx/nls/pt-pt/{FilterBar.js → gridx.js} +71 -5
  79. data/app/assets/javascripts/gridx/nls/ro/{FilterBar.js → gridx.js} +71 -5
  80. data/app/assets/javascripts/gridx/nls/ru/{FilterBar.js → gridx.js} +77 -5
  81. data/app/assets/javascripts/gridx/nls/sk/{FilterBar.js → gridx.js} +71 -5
  82. data/app/assets/javascripts/gridx/nls/sl/{FilterBar.js → gridx.js} +77 -5
  83. data/app/assets/javascripts/gridx/nls/sv/{FilterBar.js → gridx.js} +77 -5
  84. data/app/assets/javascripts/gridx/nls/th/{FilterBar.js → gridx.js} +77 -5
  85. data/app/assets/javascripts/gridx/nls/tr/{FilterBar.js → gridx.js} +77 -5
  86. data/app/assets/javascripts/gridx/nls/uk/{FilterBar.js → gridx.js} +71 -5
  87. data/app/assets/javascripts/gridx/nls/zh/{FilterBar.js → gridx.js} +77 -5
  88. data/app/assets/javascripts/gridx/nls/zh-tw/{FilterBar.js → gridx.js} +77 -5
  89. data/app/assets/javascripts/gridx/nls/zz-ZZ/gridx.js +173 -0
  90. data/app/assets/javascripts/gridx/support/DropDownPager.js +3 -5
  91. data/app/assets/javascripts/gridx/support/DropDownSizer.js +3 -5
  92. data/app/assets/javascripts/gridx/support/GotoPagePane.js +3 -5
  93. data/app/assets/javascripts/gridx/support/QuickFilter.js +3 -5
  94. data/app/assets/javascripts/gridx/support/Summary.js +32 -10
  95. data/app/assets/javascripts/gridx/support/_LinkPageBase.js +3 -5
  96. data/app/assets/javascripts/gridx/support/query.js +47 -0
  97. data/app/assets/javascripts/gridx/templates/FilterBar.html +1 -1
  98. data/app/assets/javascripts/gridx/templates/QuickFilter.html +3 -3
  99. data/app/assets/stylesheets/gridx/resources/Gridx.css +1 -10
  100. data/app/assets/stylesheets/gridx/resources/claro/Gridx.css +1 -16
  101. data/app/assets/stylesheets/gridx/resources/slantedHeader.css +90 -0
  102. data/lib/gridx-rails/version.rb +1 -1
  103. data/lib/tasks/gridx-rails_tasks.rake +1 -1
  104. data/test/dummy/log/test.log +5 -0
  105. metadata +52 -260
  106. data/app/assets/images/gridx/resources/images/checkboxpartial.png +0 -0
  107. data/app/assets/images/gridx/resources/images/checkboxpartialdisabled.png +0 -0
  108. data/app/assets/images/gridx/resources/images/dndCopy.png +0 -0
  109. data/app/assets/images/gridx/resources/images/dndMove.png +0 -0
  110. data/app/assets/images/gridx/resources/images/dndNoCopy.png +0 -0
  111. data/app/assets/images/gridx/resources/images/dndNoMove.png +0 -0
  112. data/app/assets/images/gridx/resources/images/gridxCellChanged.png +0 -0
  113. data/app/assets/images/gridx/resources/images/header.png +0 -0
  114. data/app/assets/images/gridx/resources/images/header_shadow.png +0 -0
  115. data/app/assets/images/gridx/resources/images/row_back.png +0 -0
  116. data/app/assets/images/gridx/resources/images/row_back_changed.png +0 -0
  117. data/app/assets/images/gridx/resources/images/sprite_icons.png +0 -0
  118. data/app/assets/images/gridx/resources/images/treeExpandImages.png +0 -0
  119. data/app/assets/javascripts/gridx/core/model/cache/_Cache.js +0 -403
  120. data/app/assets/javascripts/gridx/core/util.js +0 -13
  121. data/app/assets/javascripts/gridx/modules/Printer.js +0 -49
  122. data/app/assets/javascripts/gridx/modules/TitleBar.js +0 -51
  123. data/app/assets/javascripts/gridx/modules/barPlugins/DropDownPager.js +0 -16
  124. data/app/assets/javascripts/gridx/modules/barPlugins/DropDownSizer.js +0 -16
  125. data/app/assets/javascripts/gridx/modules/barPlugins/GotoPageButton.js +0 -16
  126. data/app/assets/javascripts/gridx/modules/barPlugins/LinkPager.js +0 -16
  127. data/app/assets/javascripts/gridx/modules/barPlugins/LinkSizer.js +0 -16
  128. data/app/assets/javascripts/gridx/modules/barPlugins/Summary.js +0 -16
  129. data/app/assets/javascripts/gridx/modules/exporter/CSV.js +0 -43
  130. data/app/assets/javascripts/gridx/modules/exporter/Exporter.js +0 -34
  131. data/app/assets/javascripts/gridx/modules/exporter/Table.js +0 -42
  132. data/app/assets/javascripts/gridx/modules/filter/Filter.js +0 -16
  133. data/app/assets/javascripts/gridx/modules/pagination/Pagination.js +0 -16
  134. data/app/assets/javascripts/gridx/nls/Body.js +0 -47
  135. data/app/assets/javascripts/gridx/nls/NestedSort.js +0 -45
  136. data/app/assets/javascripts/gridx/nls/PaginationBar.js +0 -68
  137. data/app/assets/javascripts/gridx/nls/QuickFilter.js +0 -40
  138. data/app/assets/javascripts/gridx/nls/SummaryBar.js +0 -38
  139. data/app/assets/javascripts/gridx/nls/ar/Body.js +0 -11
  140. data/app/assets/javascripts/gridx/nls/ar/NestedSort.js +0 -11
  141. data/app/assets/javascripts/gridx/nls/ar/PaginationBar.js +0 -34
  142. data/app/assets/javascripts/gridx/nls/ar/QuickFilter.js +0 -7
  143. data/app/assets/javascripts/gridx/nls/ar/SummaryBar.js +0 -5
  144. data/app/assets/javascripts/gridx/nls/bg/Body.js +0 -11
  145. data/app/assets/javascripts/gridx/nls/bg/NestedSort.js +0 -12
  146. data/app/assets/javascripts/gridx/nls/bg/PaginationBar.js +0 -28
  147. data/app/assets/javascripts/gridx/nls/bg/QuickFilter.js +0 -8
  148. data/app/assets/javascripts/gridx/nls/bg/SummaryBar.js +0 -6
  149. data/app/assets/javascripts/gridx/nls/ca/Body.js +0 -11
  150. data/app/assets/javascripts/gridx/nls/ca/NestedSort.js +0 -13
  151. data/app/assets/javascripts/gridx/nls/ca/PaginationBar.js +0 -30
  152. data/app/assets/javascripts/gridx/nls/ca/QuickFilter.js +0 -9
  153. data/app/assets/javascripts/gridx/nls/ca/SummaryBar.js +0 -7
  154. data/app/assets/javascripts/gridx/nls/cs/Body.js +0 -11
  155. data/app/assets/javascripts/gridx/nls/cs/NestedSort.js +0 -11
  156. data/app/assets/javascripts/gridx/nls/cs/PaginationBar.js +0 -34
  157. data/app/assets/javascripts/gridx/nls/cs/QuickFilter.js +0 -7
  158. data/app/assets/javascripts/gridx/nls/cs/SummaryBar.js +0 -5
  159. data/app/assets/javascripts/gridx/nls/da/Body.js +0 -11
  160. data/app/assets/javascripts/gridx/nls/da/NestedSort.js +0 -11
  161. data/app/assets/javascripts/gridx/nls/da/PaginationBar.js +0 -34
  162. data/app/assets/javascripts/gridx/nls/da/QuickFilter.js +0 -7
  163. data/app/assets/javascripts/gridx/nls/da/SummaryBar.js +0 -5
  164. data/app/assets/javascripts/gridx/nls/de/Body.js +0 -11
  165. data/app/assets/javascripts/gridx/nls/de/NestedSort.js +0 -11
  166. data/app/assets/javascripts/gridx/nls/de/PaginationBar.js +0 -34
  167. data/app/assets/javascripts/gridx/nls/de/QuickFilter.js +0 -7
  168. data/app/assets/javascripts/gridx/nls/de/SummaryBar.js +0 -5
  169. data/app/assets/javascripts/gridx/nls/el/Body.js +0 -11
  170. data/app/assets/javascripts/gridx/nls/el/NestedSort.js +0 -11
  171. data/app/assets/javascripts/gridx/nls/el/PaginationBar.js +0 -34
  172. data/app/assets/javascripts/gridx/nls/el/QuickFilter.js +0 -7
  173. data/app/assets/javascripts/gridx/nls/el/SummaryBar.js +0 -5
  174. data/app/assets/javascripts/gridx/nls/es/Body.js +0 -11
  175. data/app/assets/javascripts/gridx/nls/es/NestedSort.js +0 -13
  176. data/app/assets/javascripts/gridx/nls/es/PaginationBar.js +0 -30
  177. data/app/assets/javascripts/gridx/nls/es/QuickFilter.js +0 -9
  178. data/app/assets/javascripts/gridx/nls/es/SummaryBar.js +0 -7
  179. data/app/assets/javascripts/gridx/nls/fi/Body.js +0 -11
  180. data/app/assets/javascripts/gridx/nls/fi/NestedSort.js +0 -11
  181. data/app/assets/javascripts/gridx/nls/fi/PaginationBar.js +0 -34
  182. data/app/assets/javascripts/gridx/nls/fi/QuickFilter.js +0 -7
  183. data/app/assets/javascripts/gridx/nls/fi/SummaryBar.js +0 -5
  184. data/app/assets/javascripts/gridx/nls/fr/Body.js +0 -11
  185. data/app/assets/javascripts/gridx/nls/fr/NestedSort.js +0 -11
  186. data/app/assets/javascripts/gridx/nls/fr/PaginationBar.js +0 -34
  187. data/app/assets/javascripts/gridx/nls/fr/QuickFilter.js +0 -7
  188. data/app/assets/javascripts/gridx/nls/fr/SummaryBar.js +0 -5
  189. data/app/assets/javascripts/gridx/nls/he/Body.js +0 -11
  190. data/app/assets/javascripts/gridx/nls/he/NestedSort.js +0 -11
  191. data/app/assets/javascripts/gridx/nls/he/PaginationBar.js +0 -34
  192. data/app/assets/javascripts/gridx/nls/he/QuickFilter.js +0 -6
  193. data/app/assets/javascripts/gridx/nls/he/SummaryBar.js +0 -5
  194. data/app/assets/javascripts/gridx/nls/hr/Body.js +0 -11
  195. data/app/assets/javascripts/gridx/nls/hr/NestedSort.js +0 -11
  196. data/app/assets/javascripts/gridx/nls/hr/PaginationBar.js +0 -34
  197. data/app/assets/javascripts/gridx/nls/hr/QuickFilter.js +0 -7
  198. data/app/assets/javascripts/gridx/nls/hr/SummaryBar.js +0 -5
  199. data/app/assets/javascripts/gridx/nls/hu/Body.js +0 -11
  200. data/app/assets/javascripts/gridx/nls/hu/NestedSort.js +0 -11
  201. data/app/assets/javascripts/gridx/nls/hu/PaginationBar.js +0 -33
  202. data/app/assets/javascripts/gridx/nls/hu/QuickFilter.js +0 -7
  203. data/app/assets/javascripts/gridx/nls/hu/SummaryBar.js +0 -5
  204. data/app/assets/javascripts/gridx/nls/it/Body.js +0 -11
  205. data/app/assets/javascripts/gridx/nls/it/NestedSort.js +0 -11
  206. data/app/assets/javascripts/gridx/nls/it/PaginationBar.js +0 -34
  207. data/app/assets/javascripts/gridx/nls/it/QuickFilter.js +0 -7
  208. data/app/assets/javascripts/gridx/nls/it/SummaryBar.js +0 -5
  209. data/app/assets/javascripts/gridx/nls/ja/Body.js +0 -11
  210. data/app/assets/javascripts/gridx/nls/ja/NestedSort.js +0 -11
  211. data/app/assets/javascripts/gridx/nls/ja/PaginationBar.js +0 -34
  212. data/app/assets/javascripts/gridx/nls/ja/QuickFilter.js +0 -7
  213. data/app/assets/javascripts/gridx/nls/ja/SummaryBar.js +0 -5
  214. data/app/assets/javascripts/gridx/nls/kk/Body.js +0 -11
  215. data/app/assets/javascripts/gridx/nls/kk/NestedSort.js +0 -13
  216. data/app/assets/javascripts/gridx/nls/kk/PaginationBar.js +0 -30
  217. data/app/assets/javascripts/gridx/nls/kk/QuickFilter.js +0 -9
  218. data/app/assets/javascripts/gridx/nls/kk/SummaryBar.js +0 -7
  219. data/app/assets/javascripts/gridx/nls/ko/Body.js +0 -11
  220. data/app/assets/javascripts/gridx/nls/ko/NestedSort.js +0 -11
  221. data/app/assets/javascripts/gridx/nls/ko/PaginationBar.js +0 -34
  222. data/app/assets/javascripts/gridx/nls/ko/QuickFilter.js +0 -7
  223. data/app/assets/javascripts/gridx/nls/ko/SummaryBar.js +0 -5
  224. data/app/assets/javascripts/gridx/nls/nb/Body.js +0 -11
  225. data/app/assets/javascripts/gridx/nls/nb/NestedSort.js +0 -11
  226. data/app/assets/javascripts/gridx/nls/nb/PaginationBar.js +0 -34
  227. data/app/assets/javascripts/gridx/nls/nb/QuickFilter.js +0 -7
  228. data/app/assets/javascripts/gridx/nls/nb/SummaryBar.js +0 -5
  229. data/app/assets/javascripts/gridx/nls/nl/Body.js +0 -11
  230. data/app/assets/javascripts/gridx/nls/nl/NestedSort.js +0 -11
  231. data/app/assets/javascripts/gridx/nls/nl/PaginationBar.js +0 -34
  232. data/app/assets/javascripts/gridx/nls/nl/QuickFilter.js +0 -7
  233. data/app/assets/javascripts/gridx/nls/nl/SummaryBar.js +0 -5
  234. data/app/assets/javascripts/gridx/nls/pl/Body.js +0 -11
  235. data/app/assets/javascripts/gridx/nls/pl/NestedSort.js +0 -11
  236. data/app/assets/javascripts/gridx/nls/pl/PaginationBar.js +0 -34
  237. data/app/assets/javascripts/gridx/nls/pl/QuickFilter.js +0 -7
  238. data/app/assets/javascripts/gridx/nls/pl/SummaryBar.js +0 -5
  239. data/app/assets/javascripts/gridx/nls/pt/Body.js +0 -11
  240. data/app/assets/javascripts/gridx/nls/pt/NestedSort.js +0 -13
  241. data/app/assets/javascripts/gridx/nls/pt/PaginationBar.js +0 -30
  242. data/app/assets/javascripts/gridx/nls/pt/QuickFilter.js +0 -9
  243. data/app/assets/javascripts/gridx/nls/pt/SummaryBar.js +0 -7
  244. data/app/assets/javascripts/gridx/nls/pt-br/Body.js +0 -6
  245. data/app/assets/javascripts/gridx/nls/pt-br/FilterBar.js +0 -89
  246. data/app/assets/javascripts/gridx/nls/pt-br/NestedSort.js +0 -11
  247. data/app/assets/javascripts/gridx/nls/pt-br/PaginationBar.js +0 -34
  248. data/app/assets/javascripts/gridx/nls/pt-br/QuickFilter.js +0 -7
  249. data/app/assets/javascripts/gridx/nls/pt-br/SummaryBar.js +0 -5
  250. data/app/assets/javascripts/gridx/nls/pt-pt/Body.js +0 -11
  251. data/app/assets/javascripts/gridx/nls/pt-pt/NestedSort.js +0 -13
  252. data/app/assets/javascripts/gridx/nls/pt-pt/PaginationBar.js +0 -30
  253. data/app/assets/javascripts/gridx/nls/pt-pt/QuickFilter.js +0 -9
  254. data/app/assets/javascripts/gridx/nls/pt-pt/SummaryBar.js +0 -7
  255. data/app/assets/javascripts/gridx/nls/ro/Body.js +0 -11
  256. data/app/assets/javascripts/gridx/nls/ro/NestedSort.js +0 -13
  257. data/app/assets/javascripts/gridx/nls/ro/PaginationBar.js +0 -30
  258. data/app/assets/javascripts/gridx/nls/ro/QuickFilter.js +0 -9
  259. data/app/assets/javascripts/gridx/nls/ro/SummaryBar.js +0 -7
  260. data/app/assets/javascripts/gridx/nls/ru/Body.js +0 -11
  261. data/app/assets/javascripts/gridx/nls/ru/NestedSort.js +0 -11
  262. data/app/assets/javascripts/gridx/nls/ru/PaginationBar.js +0 -34
  263. data/app/assets/javascripts/gridx/nls/ru/QuickFilter.js +0 -7
  264. data/app/assets/javascripts/gridx/nls/ru/SummaryBar.js +0 -5
  265. data/app/assets/javascripts/gridx/nls/sk/Body.js +0 -11
  266. data/app/assets/javascripts/gridx/nls/sk/NestedSort.js +0 -13
  267. data/app/assets/javascripts/gridx/nls/sk/PaginationBar.js +0 -30
  268. data/app/assets/javascripts/gridx/nls/sk/QuickFilter.js +0 -9
  269. data/app/assets/javascripts/gridx/nls/sk/SummaryBar.js +0 -7
  270. data/app/assets/javascripts/gridx/nls/sl/Body.js +0 -11
  271. data/app/assets/javascripts/gridx/nls/sl/NestedSort.js +0 -11
  272. data/app/assets/javascripts/gridx/nls/sl/PaginationBar.js +0 -34
  273. data/app/assets/javascripts/gridx/nls/sl/QuickFilter.js +0 -7
  274. data/app/assets/javascripts/gridx/nls/sl/SummaryBar.js +0 -5
  275. data/app/assets/javascripts/gridx/nls/sv/Body.js +0 -11
  276. data/app/assets/javascripts/gridx/nls/sv/NestedSort.js +0 -11
  277. data/app/assets/javascripts/gridx/nls/sv/PaginationBar.js +0 -34
  278. data/app/assets/javascripts/gridx/nls/sv/QuickFilter.js +0 -7
  279. data/app/assets/javascripts/gridx/nls/sv/SummaryBar.js +0 -5
  280. data/app/assets/javascripts/gridx/nls/th/Body.js +0 -11
  281. data/app/assets/javascripts/gridx/nls/th/NestedSort.js +0 -11
  282. data/app/assets/javascripts/gridx/nls/th/PaginationBar.js +0 -34
  283. data/app/assets/javascripts/gridx/nls/th/QuickFilter.js +0 -7
  284. data/app/assets/javascripts/gridx/nls/th/SummaryBar.js +0 -5
  285. data/app/assets/javascripts/gridx/nls/tr/Body.js +0 -11
  286. data/app/assets/javascripts/gridx/nls/tr/NestedSort.js +0 -11
  287. data/app/assets/javascripts/gridx/nls/tr/PaginationBar.js +0 -34
  288. data/app/assets/javascripts/gridx/nls/tr/QuickFilter.js +0 -7
  289. data/app/assets/javascripts/gridx/nls/tr/SummaryBar.js +0 -5
  290. data/app/assets/javascripts/gridx/nls/uk/Body.js +0 -11
  291. data/app/assets/javascripts/gridx/nls/uk/NestedSort.js +0 -12
  292. data/app/assets/javascripts/gridx/nls/uk/PaginationBar.js +0 -28
  293. data/app/assets/javascripts/gridx/nls/uk/QuickFilter.js +0 -8
  294. data/app/assets/javascripts/gridx/nls/uk/SummaryBar.js +0 -6
  295. data/app/assets/javascripts/gridx/nls/zh/Body.js +0 -11
  296. data/app/assets/javascripts/gridx/nls/zh/NestedSort.js +0 -11
  297. data/app/assets/javascripts/gridx/nls/zh/PaginationBar.js +0 -34
  298. data/app/assets/javascripts/gridx/nls/zh/QuickFilter.js +0 -7
  299. data/app/assets/javascripts/gridx/nls/zh/SummaryBar.js +0 -5
  300. data/app/assets/javascripts/gridx/nls/zh-tw/Body.js +0 -11
  301. data/app/assets/javascripts/gridx/nls/zh-tw/NestedSort.js +0 -11
  302. data/app/assets/javascripts/gridx/nls/zh-tw/PaginationBar.js +0 -34
  303. data/app/assets/javascripts/gridx/nls/zh-tw/QuickFilter.js +0 -7
  304. data/app/assets/javascripts/gridx/nls/zh-tw/SummaryBar.js +0 -5
  305. data/app/assets/stylesheets/gridx/resources/Dod.css +0 -39
  306. data/app/assets/stylesheets/gridx/resources/Gridx_rtl.css +0 -5
  307. data/app/assets/stylesheets/gridx/resources/Tree.css +0 -46
  308. data/app/assets/stylesheets/gridx/resources/Tree_rtl.css +0 -4
  309. data/app/assets/stylesheets/gridx/resources/bar.css +0 -24
  310. data/app/assets/stylesheets/gridx/resources/basic.css +0 -482
  311. data/app/assets/stylesheets/gridx/resources/basic_rtl.css +0 -37
  312. data/app/assets/stylesheets/gridx/resources/claro/Gridx_rtl.css +0 -7
  313. data/app/assets/stylesheets/gridx/resources/claro/basic.css +0 -109
  314. data/app/assets/stylesheets/gridx/resources/claro/basic_rtl.css +0 -21
  315. data/app/assets/stylesheets/gridx/resources/claro/filter.css +0 -47
  316. data/app/assets/stylesheets/gridx/resources/claro/lock.css +0 -19
  317. data/app/assets/stylesheets/gridx/resources/claro/pagination.css +0 -33
  318. data/app/assets/stylesheets/gridx/resources/claro/select.css +0 -20
  319. data/app/assets/stylesheets/gridx/resources/dnd.css +0 -108
  320. data/app/assets/stylesheets/gridx/resources/filter.css +0 -321
  321. data/app/assets/stylesheets/gridx/resources/filter_rtl.css +0 -38
  322. data/app/assets/stylesheets/gridx/resources/lock.css +0 -20
  323. data/app/assets/stylesheets/gridx/resources/pagination.css +0 -142
  324. data/app/assets/stylesheets/gridx/resources/pagination_rtl.css +0 -54
  325. data/app/assets/stylesheets/gridx/resources/select.css +0 -39
  326. data/app/assets/stylesheets/gridx/resources/sort.css +0 -154
  327. data/app/assets/stylesheets/gridx/resources/sort_rtl.css +0 -51
@@ -1,403 +0,0 @@
1
- define([
2
- 'dojo/_base/declare',
3
- 'dojo/_base/array',
4
- 'dojo/_base/lang',
5
- 'dojo/_base/Deferred',
6
- '../_Extension'
7
- ], function(declare, array, lang, Deferred, _Extension){
8
-
9
- /*=====
10
- return declare(_Extension, function(){
11
- // summary:
12
- // Abstract base cache class, providing cache data structure and some common cache functions.
13
- });
14
- =====*/
15
-
16
- var hitch = lang.hitch,
17
- mixin = lang.mixin,
18
- indexOf = array.indexOf;
19
-
20
- return declare(_Extension, {
21
- constructor: function(model, args){
22
- var t = this;
23
- t.setStore(args.store);
24
- t.columns = lang.mixin({}, args._columnsById);
25
- t._mixinAPI('byIndex', 'byId', 'indexToId', 'idToIndex', 'size', 'treePath', 'rootId', 'parentId',
26
- 'hasChildren', 'children', 'keep', 'free');
27
- },
28
-
29
- destroy: function(){
30
- this.inherited(arguments);
31
- this.clear();
32
- },
33
-
34
- setStore: function(store){
35
- var t = this,
36
- c = 'aspect',
37
- old = store.fetch;
38
- //Disconnect store events.
39
- t.destroy();
40
- t._cnnts = [];
41
- t.store = store;
42
- if(!old && store.notify){
43
- //The store implements the dojo.store.Observable API
44
- t[c](store, 'notify', function(item, id){
45
- if(item === undefined){
46
- t._onDelete(id);
47
- }else if(id === undefined){
48
- t._onNew(item);
49
- }else{
50
- t._onSet(item);
51
- }
52
- });
53
- }else{
54
- t[c](store, old ? "onSet" : "put", "_onSet");
55
- t[c](store, old ? "onNew" : "add", "_onNew");
56
- t[c](store, old ? "onDelete" : "remove", "_onDelete");
57
- }
58
- },
59
-
60
- //Public----------------------------------------------
61
- clear: function(){
62
- var t = this;
63
- t._filled = 0;
64
- t._priority = [];
65
- t._struct = {};
66
- t._cache = {};
67
- t._size = {};
68
- //virtual root node, with id ''.
69
- t._struct[''] = [];
70
- t._size[''] = -1;
71
- t.totalSize = undefined;
72
- },
73
-
74
- byIndex: function(index, parentId){
75
- this._init('byIndex', arguments);
76
- return this._cache[this.indexToId(index, parentId)];
77
- },
78
-
79
- byId: function(id){
80
- this._init('byId', arguments);
81
- return this._cache[id];
82
- },
83
-
84
- indexToId: function(index, parentId){
85
- this._init('indexToId', arguments);
86
- var items = this._struct[this.model.isId(parentId) ? parentId : ''];
87
- return typeof index == 'number' && index >= 0 ? items && items[index + 1] : undefined;
88
- },
89
-
90
- idToIndex: function(id){
91
- this._init('idToIndex', arguments);
92
- var s = this._struct,
93
- pid = s[id] && s[id][0],
94
- index = indexOf(s[pid] || [], id);
95
- return index > 0 ? index - 1 : -1;
96
- },
97
-
98
- treePath: function(id){
99
- this._init('treePath', arguments);
100
- var s = this._struct,
101
- path = [];
102
- while(id !== undefined){
103
- path.unshift(id);
104
- id = s[id] && s[id][0];
105
- }
106
- if(path[0] !== ''){
107
- path = [];
108
- }else{
109
- path.pop();
110
- }
111
- return path;
112
- },
113
-
114
- rootId: function(id){
115
- var path = this.treePath(id);
116
- if(path.length > 1){
117
- return path[1];
118
- }else if(!path.length){
119
- return null;
120
- }
121
- return id;
122
- },
123
-
124
- parentId: function(id){
125
- return this.treePath(id).pop();
126
- },
127
-
128
- hasChildren: function(id){
129
- var t = this,
130
- s = t.store,
131
- c;
132
- t._init('hasChildren', arguments);
133
- c = t.byId(id);
134
- return s.hasChildren && s.hasChildren(id, c && c.item) && s.getChildren;
135
- },
136
-
137
- children: function(parentId){
138
- this._init('children', arguments);
139
- parentId = this.model.isId(parentId) ? parentId : '';
140
- var size = this._size[parentId],
141
- children = [],
142
- i = 0;
143
- for(; i < size; ++i){
144
- children.push(this.indexToId(i, parentId));
145
- }
146
- return children;
147
- },
148
-
149
- size: function(parentId){
150
- this._init('size', arguments);
151
- var s = this._size[this.model.isId(parentId) ? parentId : ''];
152
- return s >= 0 ? s : -1;
153
- },
154
-
155
- //Events--------------------------------------------
156
- onBeforeFetch: function(){},
157
- onAfterFetch: function(){},
158
- onLoadRow: function(){},
159
-
160
- onSetColumns: function(columns){
161
- var t = this, id, c, colId, col;
162
- t.columns = lang.mixin({}, columns);
163
- for(id in t._cache){
164
- c = t._cache[id];
165
- for(colId in columns){
166
- col = columns[colId];
167
- c.data[colId] = t._formatCell(c.rawData, id, col.id);
168
- }
169
- }
170
- },
171
-
172
- //Protected-----------------------------------------
173
- _itemToObject: function(item){
174
- var s = this.store,
175
- obj = {};
176
- if(s.fetch){
177
- array.forEach(s.getAttributes(item), function(attr){
178
- obj[attr] = s.getValue(item, attr);
179
- });
180
- return obj;
181
- }
182
- return item;
183
- },
184
-
185
- _formatCell: function(rawData, rowId, colId){
186
- var col = this.columns[colId];
187
- return col.formatter ? col.formatter(rawData, rowId) : rawData[col.field || colId];
188
- },
189
-
190
- _formatRow: function(rowData, rowId){
191
- var cols = this.columns, res = {}, colId;
192
- for(colId in cols){
193
- res[colId] = this._formatCell(rowData, rowId, colId);
194
- }
195
- return res;
196
- },
197
-
198
- _addRow: function(id, index, rowData, item, parentId){
199
- var t = this,
200
- st = t._struct,
201
- pr = t._priority,
202
- pid = t.model.isId(parentId) ? parentId : '',
203
- ids = st[pid],
204
- i;
205
- if(!ids){
206
- throw new Error("Fatal error of _Cache._addRow: parent item " + pid + " of " + id + " is not loaded");
207
- }
208
- var oldId = ids[index + 1];
209
- if(t.model.isId(oldId) && oldId !== id){
210
- console.error("Error of _Cache._addRow: different row id " + id + " and " + ids[index + 1] + " for same row index " + index);
211
- }
212
- ids[index + 1] = id;
213
- st[id] = st[id] || [pid];
214
- if(pid === ''){
215
- i = indexOf(pr, id);
216
- if(i >= 0){
217
- pr.splice(i, 1);
218
- }
219
- pr.push(id);
220
- }
221
- t._cache[id] = {
222
- data: t._formatRow(rowData, id),
223
- rawData: rowData,
224
- item: item
225
- };
226
- t.onLoadRow(id);
227
- },
228
-
229
- _storeFetch: function(options, onFetched){
230
- // console.debug("\tFETCH parent: ",
231
- // options.parentId, ", start: ",
232
- // options.start || 0, ", count: ",
233
- // options.count, ", end: ",
234
- // options.count && (options.start || 0) + options.count - 1, ", options:",
235
- // this.options);
236
-
237
- var t = this,
238
- s = t.store,
239
- d = new Deferred(),
240
- parentId = t.model.isId(options.parentId) ? options.parentId : '',
241
- req = mixin({}, t.options || {}, options),
242
- onError = hitch(d, d.errback),
243
- results;
244
- function onBegin(size){
245
- t._size[parentId] = parseInt(size, 10);
246
- }
247
- function onComplete(items){
248
- //FIXME: store does not support getting total size after filter/query, so we must change the protocal a little.
249
- if(items.ioArgs && items.ioArgs.xhr){
250
- var range = results.ioArgs.xhr.getResponseHeader("Content-Range");
251
- if(range && (range = range.match(/(.+)\//))){
252
- t.totalSize = +range[1];
253
- }else{
254
- t.totalSize = undefined;
255
- }
256
- }
257
- try{
258
- var start = options.start || 0,
259
- i = 0,
260
- item;
261
- for(; item = items[i]; ++i){
262
- t._addRow(s.getIdentity(item), start + i, t._itemToObject(item), item, parentId);
263
- }
264
- d.callback();
265
- }catch(e){
266
- d.errback(e);
267
- }
268
- }
269
- t._filled = 1;
270
- t.onBeforeFetch(req);
271
- if(parentId === ''){
272
- if(s.fetch){
273
- s.fetch(mixin(req, {
274
- onBegin: onBegin,
275
- onComplete: onComplete,
276
- onError: onError
277
- }));
278
- }else{
279
- results = s.query(req.query || {}, req);
280
- Deferred.when(results.total, onBegin);
281
- Deferred.when(results, onComplete, onError);
282
- }
283
- }else if(t.hasChildren(parentId)){
284
- results = s.getChildren(t.byId(parentId).item, req);
285
- if('total' in results){
286
- Deferred.when(results.total, onBegin);
287
- }else{
288
- Deferred.when(results, function(results){
289
- onBegin(results.length);
290
- });
291
- }
292
- Deferred.when(results, onComplete, onError);
293
- }else{
294
- d.callback();
295
- }
296
- d.then(function(){
297
- t.onAfterFetch();
298
- });
299
- return d;
300
- },
301
-
302
- //--------------------------------------------------------------------------
303
- _onSet: function(item){
304
- var t = this,
305
- id = t.store.getIdentity(item),
306
- index = t.idToIndex(id),
307
- path = t.treePath(id),
308
- old = t._cache[id];
309
- if(path.length){
310
- t._addRow(id, index, t._itemToObject(item), item, path.pop());
311
- }
312
- t.onSet(id, index, t._cache[id], old);
313
- },
314
-
315
- _onNew: function(item, parentInfo){
316
- var t = this,
317
- s = t.store,
318
- row = t._itemToObject(item),
319
- parentItem = parentInfo && parentInfo[s.fetch ? 'item' : 'parent'],
320
- parentId = parentItem ? s.getIdentity(parentItem) : '',
321
- id = s.getIdentity(item),
322
- size = t._size[''];
323
- t.clear();
324
- t.onNew(id, 0, {
325
- data: t._formatRow(row, id),
326
- rawData: row,
327
- item: item
328
- });
329
- if(!parentItem && size >= 0){
330
- t._size[''] = size + 1;
331
- if(t.totalSize >= 0){
332
- t.totalSize = size + 1;
333
- }
334
- t.model._onSizeChange();
335
- }
336
- },
337
-
338
- _onDelete: function(item){
339
- var t = this,
340
- s = t.store,
341
- st = t._struct,
342
- id = s.fetch ? s.getIdentity(item) : item,
343
- path = t.treePath(id);
344
- if(path.length){
345
- var children, i, j,
346
- ids = [id],
347
- parentId = path[path.length - 1],
348
- sz = t._size,
349
- size = sz[''],
350
- index = indexOf(st[parentId], id);
351
- //This must exist, because we've already have treePath
352
- st[parentId].splice(index, 1);
353
- --sz[parentId];
354
-
355
- for(i = 0; i < ids.length; ++i){
356
- children = st[ids[i]];
357
- if(children){
358
- for(j = children.length - 1; j > 0; --j){
359
- ids.push(children[j]);
360
- }
361
- }
362
- }
363
- for(i = ids.length - 1; i >= 0; --i){
364
- j = ids[i];
365
- delete t._cache[j];
366
- delete st[j];
367
- delete sz[j];
368
- }
369
- i = indexOf(t._priority, id);
370
- if(i >= 0){
371
- t._priority.splice(i, 1);
372
- }
373
- t.onDelete(id, index - 1, path);
374
- if(!parentId && size >= 0){
375
- sz[''] = size - 1;
376
- if(t.totalSize >= 0){
377
- t.totalSize = size - 1;
378
- }
379
- t.model._onSizeChange();
380
- }
381
- }else{
382
- //FIXME: Don't know what to do if the deleted row was not loaded.
383
- t.clear();
384
- t.onDelete(id);
385
- // var onBegin = hitch(t, _onBegin),
386
- // req = mixin({}, t.options || {}, {
387
- // start: 0,
388
- // count: 1
389
- // });
390
- // setTimeout(function(){
391
- // if(s.fetch){
392
- // s.fetch(mixin(req, {
393
- // onBegin: onBegin
394
- // }));
395
- // }else{
396
- // var results = s.query(req.query, req);
397
- // Deferred.when(results.total, onBegin);
398
- // }
399
- // }, 10);
400
- }
401
- }
402
- });
403
- });
@@ -1,13 +0,0 @@
1
- define({
2
- biSearch: function(arr, comp){
3
- var i = 0, j = arr.length, k;
4
- for(k = Math.floor((i + j) / 2); i + 1 < j; k = Math.floor((i + j) / 2)){
5
- if(comp(arr[k]) > 0){
6
- j = k;
7
- }else{
8
- i = k;
9
- }
10
- }
11
- return arr.length && comp(arr[i]) >= 0 ? i : j;
12
- }
13
- });
@@ -1,49 +0,0 @@
1
- define([
2
- "dojo/_base/kernel",
3
- "../core/_Module",
4
- "dojo/_base/declare",
5
- "../support/printer"
6
- ], function(kernel, _Module, declare, printer){
7
- kernel.deprecated('gridx/modules/Printer is deprecated.', 'Please use gridx/support/printer instead.', '1.3');
8
-
9
- /*=====
10
- return declare(_Module, {
11
- // summary:
12
- // This module provides the API to print grid contents or provide print preview
13
- // description:
14
- // Deprecated. Please use gridx/support/printer instead.
15
- // tags:
16
- // deprecated
17
-
18
- print: function(args){
19
- // summary:
20
- // Print grid contents.
21
- // args: __PrinterArgs
22
- // Printer args
23
- // returns:
24
- // A deferred object indicating when the export process is completed.
25
- },
26
-
27
- toHTML: function(args){
28
- // summary
29
- // Export to printable html, used for preview
30
- // args: __PrinterArgs
31
- // Printer args
32
- // returns:
33
- // A deferred object indicating when the export process is completed.
34
- }
35
- });
36
- =====*/
37
-
38
- return declare(_Module, {
39
- name: 'printer',
40
-
41
- print: function(args){
42
- return printer(this.grid, args);
43
- },
44
-
45
- toHTML: function(args){
46
- return printer.toHTML(this.grid, args);
47
- }
48
- });
49
- });
@@ -1,51 +0,0 @@
1
- define([
2
- "dojo/_base/kernel",
3
- "dojo/_base/declare",
4
- "dojo/dom-construct",
5
- "../core/_Module"
6
- ], function(kernel, declare, domConstruct, _Module){
7
- kernel.deprecated('TitleBar is deprecated', 'Use Bar module instead', '1.3');
8
-
9
- /*=====
10
- return declare(_Module, {
11
- // summary:
12
- // Add title bar for grid.
13
- // tags:
14
- // deprecated. Use Bar module instead.
15
-
16
- // label: String
17
- label: '',
18
-
19
- setLabel: function(){
20
- // summary:
21
- // TODOC
22
- }
23
- });
24
- =====*/
25
-
26
- return declare(_Module, {
27
- name: 'titleBar',
28
-
29
- constructor: function(){
30
- this.domNode = domConstruct.create('div', {
31
- 'class': 'gridxTitleBar',
32
- innerHTML: this.arg('label')
33
- });
34
- },
35
-
36
- preload: function(){
37
- this.grid.vLayout.register(this, 'domNode', 'headerNode', -15);
38
- },
39
-
40
- destroy: function(){
41
- this.inherited(arguments);
42
- domConstruct.destroy(this.domNode);
43
- },
44
-
45
- label: '',
46
-
47
- setLabel: function(label){
48
- this.domNode.innerHTML = this.label = label;
49
- }
50
- });
51
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/DropDownPager"
5
- ], function(/*=====declare, =====*/kernel, widget){
6
- kernel.deprecated('DropDownPager is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/DropDownPager. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return widget;
16
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/DropDownSizer"
5
- ], function(/*=====declare, =====*/kernel, Sizer){
6
- kernel.deprecated('DropDownSizer is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/DropDownSizer. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return Sizer;
16
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/GotoPageButton"
5
- ], function(/*=====declare, =====*/kernel, widget){
6
- kernel.deprecated('GotoPageButton is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/GotoPageButton. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return widget;
16
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/LinkPager"
5
- ], function(/*=====declare, =====*/kernel, widget){
6
- kernel.deprecated('LinkPager is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/LinkPager. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return widget;
16
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/LinkSizer"
5
- ], function(/*=====declare, =====*/kernel, widget){
6
- kernel.deprecated('LinkSizer is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/LinkSizer. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return widget;
16
- });
@@ -1,16 +0,0 @@
1
- define([
2
- /*====='dojo/_base/declare',=====*/
3
- "dojo/_base/kernel",
4
- "../../support/Summary"
5
- ], function(/*=====declare, =====*/kernel, widget){
6
- kernel.deprecated('Summary is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
7
-
8
- /*=====
9
- return declare([], {
10
- // summary:
11
- // Moved to gridx/support/Summary. This path is deprecated.
12
- });
13
- =====*/
14
-
15
- return widget;
16
- });
@@ -1,43 +0,0 @@
1
- define([
2
- "dojo/_base/kernel",
3
- "dojo/_base/declare",
4
- "../../core/_Module",
5
- /*====="./Exporter",=====*/
6
- "../../support/exporter/toCSV"
7
- ], function(kernel, declare, _Module, /*=====Exporter,=====*/ exportToCSV){
8
- kernel.deprecated('gridx/modules/exporter/CSV is deprecated.', 'Use gridx/support/exporter/toCSV instead.', '1.3');
9
-
10
- /*=====
11
- Exporter.toCSV = function(args){
12
- // summary:
13
- // Export the grid contents to CSV according to the given args.
14
- // This method should be called through grid.exporter.toCSV();
15
- // args: __CSVExportArgs?
16
- // The args to configure the export result and the export process.
17
- // returns:
18
- // A deferred object indicating when the export process is completed,
19
- // and then pass the exported CSV string to callbacks.
20
- };
21
-
22
- return declare(_Module, {
23
- // summary:
24
- // This module provides the API to export grid contents to CSV format string
25
- // This module is deprecated. Use gridx/support/exporter/toCSV instead.
26
- });
27
- =====*/
28
-
29
- return declare(_Module, {
30
- name: 'exportCsv',
31
-
32
- getAPIPath: function(){
33
- var grid = this.grid;
34
- return {
35
- exporter: {
36
- toCSV: function(args){
37
- return exportToCSV(grid, args || {});
38
- }
39
- }
40
- };
41
- }
42
- });
43
- });
@@ -1,34 +0,0 @@
1
- define([
2
- "dojo/_base/kernel",
3
- "dojo/_base/declare",
4
- "../../core/_Module",
5
- "../../support/exporter/exporter"
6
- ], function(kernel, declare, _Module, exporter){
7
- kernel.deprecated('gridx/modules/exporter/Exporter is deprecated.', 'Use gridx/support/exporter/exporter instead.', '1.3');
8
-
9
- /*=====
10
- return declare(_Module, {
11
- // summary:
12
- // Deprecated. Use gridx/support/exporter/exporter instead.
13
-
14
- _export: function(writer, args){
15
- // summary:
16
- // Go through the grid using the given args and writer implementation.
17
- // Return a dojo.Deferred object. Users can cancel and see progress
18
- // of the exporting process.
19
- // Pass the exported result to the callback function of the Deferred object.
20
- // tags:
21
- // private
22
- }
23
- });
24
- =====*/
25
-
26
- return _Module.register(
27
- declare(_Module, {
28
- name: 'exporter',
29
-
30
- _export: function(writer, /* __ExportArgs */ args){
31
- return exporter(this.grid, writer, args);
32
- }
33
- }));
34
- });