gridx-rails 1.2.1 → 1.3.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
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,5 +1,14 @@
1
- define({
2
- //begin v1.x content
1
+ define({
2
+ //Body
3
+ loadingInfo: "正在加载...",
4
+ emptyInfo: "没有要显示的项",
5
+ loadFailInfo: "加载数据失败!",
6
+ loadMore: "加载更多",
7
+ loadMoreLoading: "正在加载...",
8
+ loadPrevious: "加载上一页",
9
+ loadPreviousLoading: "正在加载...",
10
+
11
+ //FilterBar
3
12
  "clearFilterDialogTitle": "清除过滤器",
4
13
  "filterDefDialogTitle": "过滤器",
5
14
  "defaultRuleTitle": "规则 ",
@@ -83,7 +92,70 @@ define({
83
92
  "endTimeRangeLabel": "时间范围值终点",
84
93
  "beginDateRangeLabel": "日期范围值起点",
85
94
  "endDateRangeLabel": "日期范围值终点",
86
- "startsWithExpr": "${0}*"
87
- //end v1.x content
88
- });
95
+ "startsWithExpr": "${0}*",
96
+
97
+ //NestedSort
98
+ singleSort: "单层排序",
99
+ nestedSort: "嵌套排序",
100
+ ascending: "单击以按“升序”排序",
101
+ descending: "单击以按“降序”排序",
102
+ sortingState: "${0} - ${1}",
103
+ unsorted: "请勿对此列进行排序",
104
+ waiSingleSortLabel: "${0} - 已按 ${1} 排序。请选择按 ${2} 排序",
105
+ waiNestedSortLabel:"${0} - 已按 ${1} 嵌套排序。请选择按 ${2} 嵌套排序",
106
+
107
+ //PaginationBar
108
+ pagerWai: '调页程序',
109
+
110
+ pageIndex: '${0}',
111
+ pageIndexTitle: '第 ${0} 页',
112
+
113
+ firstPageTitle: '第一页',
114
+ prevPageTitle: '上一页',
115
+ nextPageTitle: '下一页',
116
+ lastPageTitle: '最后一页',
117
+
118
+ pageSize: '${0}',
119
+ pageSizeTitle: '每页 ${0} 项',
120
+ pageSizeAll: '所有',
121
+ pageSizeAllTitle: '所有项',
122
+
123
+ description: '第 ${0} - ${2} 项(共 ${1} 项)。',
124
+ descriptionEmpty: '网格为空。',
89
125
 
126
+ summary: '总计:${0}',
127
+ summaryWithSelection: '总计:${0} 已选择:${1}',
128
+
129
+ gotoBtnTitle: '转到特定页面',
130
+
131
+ gotoDialogTitle: '转到页面',
132
+ gotoDialogMainMsg: '指定页码:',
133
+ gotoDialogPageCount: ' (${0} 页)',
134
+ gotoDialogOKBtn: '确定',
135
+ gotoDialogCancelBtn: '取消',
136
+ // for drop down pagination bar
137
+ pageLabel: '页面',
138
+ pageSizeLabel: '行',
139
+
140
+ //QuickFilter
141
+ filterLabel: '过滤器',
142
+ clearButtonTitle: '清除过滤器',
143
+ buildFilterMenuLabel: '构建过滤器…',
144
+ apply: '应用过滤器',
145
+
146
+ //Sort
147
+ helpMsg: '${0} - 单击以排序,或者按 Ctrl 键并单击以添加到排序项',
148
+ singleHelpMsg: '${0} - 单击以排序',
149
+ priorityOrder: '排序优先级 ${0}',
150
+
151
+ //SummaryBar
152
+ summaryTotal: '总计:${0}',
153
+ summarySelected: '已选择:${0}',
154
+ summaryRange: 'Range: ${0}-${1}', //need translation
155
+
156
+ //Other
157
+ indirectSelectAll: "Press SPACE to select all.", //need translation
158
+ indirectDeselectAll: "Press SPACE to deselect all.", //need translation
159
+ treeExpanded: "Control + left arrow key to collapse this row.", //need translation
160
+ treeCollapsed: "Control + right arrow key to expand this row." //need translation
161
+ });
@@ -1,5 +1,14 @@
1
- define({
2
- //begin v1.x content
1
+ define({
2
+ //Body
3
+ loadingInfo: "正在載入...",
4
+ emptyInfo: "無顯示項目",
5
+ loadFailInfo: "無法載入資料!",
6
+ loadMore: "載入其他",
7
+ loadMoreLoading: "正在載入...",
8
+ loadPrevious: "載入前一個",
9
+ loadPreviousLoading: "正在載入...",
10
+
11
+ //FilterBar
3
12
  "clearFilterDialogTitle": "清除過濾器",
4
13
  "filterDefDialogTitle": "過濾器",
5
14
  "defaultRuleTitle": "規則",
@@ -83,7 +92,70 @@ define({
83
92
  "endTimeRangeLabel": "時間範圍值結束",
84
93
  "beginDateRangeLabel": "日期範圍值開始",
85
94
  "endDateRangeLabel": "日期範圍值結束",
86
- "startsWithExpr": "${0}*"
87
- //end v1.x content
88
- });
95
+ "startsWithExpr": "${0}*",
96
+
97
+ //NestedSort
98
+ singleSort: "單一排序",
99
+ nestedSort: "巢狀排序",
100
+ ascending: "按一下以進行遞增排序",
101
+ descending: "按一下以進行遞減排序",
102
+ sortingState: "${0} - ${1}",
103
+ unsorted: "請勿對此欄執行排序",
104
+ waiSingleSortLabel: "${0} - 依 ${1} 排序。選擇以依 ${2} 排序",
105
+ waiNestedSortLabel:"${0} - 依 ${1} 巢狀排序。選擇以依 ${2} 巢狀排序",
106
+
107
+ //PaginationBar
108
+ pagerWai: '分頁器',
109
+
110
+ pageIndex: '${0}',
111
+ pageIndexTitle: '頁面 ${0}',
112
+
113
+ firstPageTitle: '首頁',
114
+ prevPageTitle: '上一頁',
115
+ nextPageTitle: '下一頁',
116
+ lastPageTitle: '末頁',
117
+
118
+ pageSize: '${0}',
119
+ pageSizeTitle: '每頁 ${0} 個項目',
120
+ pageSizeAll: '所有',
121
+ pageSizeAllTitle: '所有項目',
122
+
123
+ description: '${0} - ${1} 個項目(共 ${2} 個項目)。',
124
+ descriptionEmpty: '網格是空的。',
89
125
 
126
+ summary: '總計:${0}',
127
+ summaryWithSelection: '總計:${0} 已選取:${1}',
128
+
129
+ gotoBtnTitle: '跳至特定的頁面',
130
+
131
+ gotoDialogTitle: '跳至頁面',
132
+ gotoDialogMainMsg: '指定頁碼:',
133
+ gotoDialogPageCount: ' (${0} 頁)',
134
+ gotoDialogOKBtn: '執行',
135
+ gotoDialogCancelBtn: '取消',
136
+ // for drop down pagination bar
137
+ pageLabel: '頁面',
138
+ pageSizeLabel: '列',
139
+
140
+ //QuickFilter
141
+ filterLabel: '過濾器',
142
+ clearButtonTitle: '清除過濾器',
143
+ buildFilterMenuLabel: '建置過濾器…',
144
+ apply: '套用過濾器',
145
+
146
+ //Sort
147
+ helpMsg: '${0} - 按一下以進行排序,或按住 Ctrl 同時用滑鼠按一下以新增至排序',
148
+ singleHelpMsg: '${0} - 按一下以進行排序',
149
+ priorityOrder: '排序優先順序 ${0} ',
150
+
151
+ //SummaryBar
152
+ summaryTotal: '總計:${0}',
153
+ summarySelected: '已選取:${0}',
154
+ summaryRange: 'Range: ${0}-${1}', //need translation
155
+
156
+ //Other
157
+ indirectSelectAll: "Press SPACE to select all.", //need translation
158
+ indirectDeselectAll: "Press SPACE to deselect all.", //need translation
159
+ treeExpanded: "Control + left arrow key to collapse this row.", //need translation
160
+ treeCollapsed: "Control + right arrow key to expand this row." //need translation
161
+ });
@@ -0,0 +1,173 @@
1
+ define(
2
+ ({
3
+ //Body
4
+ loadingInfo: "[G'Loading...İı|]",
5
+ emptyInfo: "[G'No items to displayİı|]",
6
+ loadFailInfo: "[G'Failed to load data!İı|]",
7
+ loadMore: "[G'Load Moreİı|]",
8
+ loadMoreLoading: "[G'Loading...İı|]",
9
+ loadPrevious: "[G'Load Previousİı|]",
10
+ loadPreviousLoading: "[G'Loading...İı|]",
11
+ indirectSelectAll: "[G'Press SPACE to select all.İı|]",
12
+ indirectDeselectAll: "[G'Press SPACE to deselect all.İı|]",
13
+ treeExpanded: "[G'Control + left arrow key to collapse this row.İı|]",
14
+ treeCollapsed: "[G'Control + right arrow key to expand this row.İı|]",
15
+
16
+ //FilterBar
17
+ "clearFilterDialogTitle": "[G'Clear Filterİı|]",
18
+ "filterDefDialogTitle": "[G'Filterİı|]",
19
+ "defaultRuleTitle": "[G'Ruleİı|]",
20
+ "ruleTitleTemplate": "[G'Rule [${ruleNumber}]İı|]",
21
+ "noFilterApplied": "[G'No filter applied.İı|]",
22
+ "defineFilter": "[G'Define filterİı|]",
23
+
24
+ "conditionEqual": "[G'equalİı|]",
25
+ "conditionNotEqual": "[G'does not equalİı|]",
26
+ "conditionLess": "[G'is less thanİı|]",
27
+ "conditionLessEqual": "[G'less than or equalİı|]",
28
+ "conditionGreater": "[G'is greater thanİı|]",
29
+ "conditionGreaterEqual": "[G'greater than or equalİı|]",
30
+ "conditionContain": "[G'containsİı|]",
31
+ "conditionIs": "[G'isİı|]",
32
+ "conditionStartWith": "[G'starts withİı|]",
33
+ "conditionEndWith": "[G'ends withİı|]",
34
+ "conditionNotContain": "[G'does not containİı|]",
35
+ "conditionIsNot": "[G'is notİı|]",
36
+ "conditionNotStartWith": "[G'does not start withİı|]",
37
+ "conditionNotEndWith": "[G'does not end withİı|]",
38
+ "conditionBefore": "[G'beforeİı|]",
39
+ "conditionAfter": "[G'afterİı|]",
40
+ "conditionRange": "[G'rangeİı|]",
41
+ "conditionIsEmpty": "[G'is emptyİı|]",
42
+
43
+ "all": "[G'allİı|]",
44
+ "any": "[G'anyİı|]",
45
+ "relationAll": "[G'all rulesİı|]",
46
+ "waiRelAll": "[G'Match all of the following rules:İı|]",
47
+ "relationAny": "[G'any ruleİı|]",
48
+ "waiRelAny": "[G'Match any of the following rules:İı|]",
49
+ "relationMsgFront": "[G'Matchİı|]",
50
+ "relationMsgTail": "",
51
+ "and": "[G'andİı|]",
52
+ "or": "[G'orİı|]",
53
+
54
+ "addRuleButton": "[G'Add Ruleİı|]",
55
+ "waiAddRuleButton": "[G'Add a new ruleİı|]",
56
+ "removeRuleButton": "[G'Remove Ruleİı|]",
57
+ "waiRemoveRuleButtonTemplate": "[G'Remove rule [${0}]İı|]",
58
+
59
+ "addRuleButton": "[G'Add Filter Ruleİı|]",
60
+ "cancelButton": "[G'Cancelİı|]",
61
+ "waiCancelButton": "[G'Cancel this dialogİı|]",
62
+ "clearButton": "[G'Clearİı|]",
63
+ "waiClearButton": "[G'Clear the filterİı|]",
64
+ "filterButton": "[G'Filterİı|]",
65
+ "waiFilterButton": "[G'Submit the filterİı|]",
66
+
67
+ "columnSelectLabel": "[G'Column:İı|]",
68
+ "waiColumnSelectTemplate": "[G'Column for rule [${0}]İı|]",
69
+ "conditionSelectLabel": "[G'Condition:İı|]",
70
+ "waiConditionSelectTemplate": "[G'Condition for rule [${0}]İı|]",
71
+ "valueBoxLabel": "[G'Value:İı|]",
72
+ "waiValueBoxTemplate": "[G'Enter value to filter for rule [${0}]İı|]",
73
+
74
+ "rangeTo": "[G'toİı|]",
75
+ "rangeTemplate": "[G'from [${0}] to [${1}]İı|]",
76
+
77
+ "statusTipHeaderColumn": "[G'Columnİı|]",
78
+ "statusTipHeaderCondition": "[G'Rulesİı|]",
79
+ "statusTipTitle": "[G'Filter Barİı|]",
80
+ "statusTipMsg": "[G'Click the filter bar here to filter on values in [${0}].İı|]",
81
+ "anycolumn": "[G'any columnİı|]",
82
+ "statusTipTitleNoFilter": "[G'Filter Barİı|]",
83
+ "statusTipTitleHasFilter": "[G'Filterİı|]",
84
+ "statusTipRelPre": "[G'Matchİı|]",
85
+ "statusTipRelPost": "[G'rules.İı|]",
86
+ "statusTipHeaderAll": "[G'Match all rules.İı|]",
87
+ "statusTipHeaderAny": "[G'Match any rules.İı|]",
88
+
89
+ "defaultItemsName": "[G'itemsİı|]",
90
+ "filterBarMsgHasFilterTemplate": "[G'[${0}] of [${1}] [${2}] shown.İı|]",
91
+ "filterBarMsgNoFilterTemplate": "[G'No filter appliedİı|]",
92
+
93
+ "filterBarDefButton": "[G'Define filterİı|]",
94
+ "waiFilterBarDefButton": "[G'Filter the tableİı|]",
95
+ "a11yFilterBarDefButton": "[G'Filter...İı|]",
96
+ "filterBarClearButton": "[G'Clear filterİı|]",
97
+ "waiFilterBarClearButton": "[G'Clear the filterİı|]",
98
+ "closeFilterBarBtn": "[G'Close filter barİı|]",
99
+
100
+ "clearFilterMsg": "[G'This will remove the filter and show all available records.İı|]",
101
+ "anyColumnOption": "[G'Any Columnİı|]",
102
+
103
+ "trueLabel": "[G'Trueİı|]",
104
+ "falseLabel": "[G'Falseİı|]",
105
+ "radioTrueLabel": "[G'Value Trueİı|]",
106
+ "radioFalseLabel": "[G'Value Falseİı|]",
107
+ "beginTimeRangeLabel": "[G'Time Range Value Startİı|]",
108
+ "endTimeRangeLabel": "[G'Time Range Value Endİı|]",
109
+ "beginDateRangeLabel": "[G'Date Range Value Startİı|]",
110
+ "endDateRangeLabel": "[G'Date Range Value Endİı|]",
111
+ "startsWithExpr": "[G'[${0}]*İı|]",
112
+
113
+ //NestedSort
114
+ singleSort: "[G'Single Sortİı|]",
115
+ nestedSort: "[G'Nested Sortİı|]",
116
+ ascending: "[G'Click to sort Ascendingİı|]",
117
+ descending: "[G'Click to sort Descendingİı|]",
118
+ sortingState: "[G'[${0}] - [${1}]İı|]",
119
+ unsorted: "[G'Do not sort this columnİı|]",
120
+
121
+ waiSingleSortLabel: "[G'[${0}] - is sorted by [${1}]. Choose to sort by [${2}]İı|]",
122
+ waiNestedSortLabel:"[G'[${0}] - is nested sorted by [${1}]. Choose to nested sort by [${2}]İı|]",
123
+
124
+ //PaginationBar
125
+ pagerWai: '[G\'Pagerİı|]',
126
+
127
+ pageIndex: '[G\'[${0}]İı|]',
128
+ pageIndexTitle: '[G\'Page [${0}]İı|]',
129
+
130
+ firstPageTitle: '[G\'First pageİı|]',
131
+ prevPageTitle: '[G\'Previous pageİı|]',
132
+ nextPageTitle: '[G\'Next pageİı|]',
133
+ lastPageTitle: '[G\'Last pageİı|]',
134
+
135
+ pageSize: '[G\'[${0}]İı|]',
136
+ pageSizeTitle: '[G\'[${0}] items per pageİı|]',
137
+ pageSizeAll: '[G\'Allİı|]',
138
+ pageSizeAllTitle: '[G\'All itemsİı|]',
139
+
140
+ description: '[G\'[${0}] - [${1}] of [${2}] items.İı|]',
141
+ descriptionEmpty: '[G\'Grid is empty.İı|]',
142
+
143
+ summary: '[G\'Total: [${0}]İı|]',
144
+ summaryWithSelection: '[G\'Total: [${0}] Selected: [${1}]İı|]',
145
+
146
+ gotoBtnTitle: '[G\'Go to a specific pageİı|]',
147
+
148
+ gotoDialogTitle: '[G\'Go to Pageİı|]',
149
+ gotoDialogMainMsg: '[G\'Specify the page number:İı|]',
150
+ gotoDialogPageCount: '[G\'([${0}] pages)İı|]',
151
+ gotoDialogOKBtn: '[G\'Goİı|]',
152
+ gotoDialogCancelBtn: '[G\'Cancelİı|]',
153
+
154
+ // for drop down pagination bar
155
+ pageLabel: '[G\'Pageİı|]',
156
+ pageSizeLabel: '[G\'Rowsİı|]',
157
+
158
+ //QuickFilter
159
+ filterLabel: '[G\'Filterİı|]',
160
+ clearButtonTitle: '[G\'Clear Filterİı|]',
161
+ buildFilterMenuLabel: '[G\'Build Filter…İı|]',
162
+ apply: '[G\'Apply Filterİı|]',
163
+
164
+ //SummaryBar
165
+ summary: '[G\'Total: [${0}]İı|]',
166
+ summaryWithSelection: '[G\'Total: [${0}] Selected: [${1}]İı|]',
167
+
168
+ //Sort [NEED TRANSLATION]
169
+ helpMsg: '[G\'[${0}] - Click to sort or control-click to add to sortİı|]',
170
+ singleHelpMsg: '[G\'[${0}] - Click to sortİı|]',
171
+ priorityOrder: '[G\'sort priority [${0}]İı|]'
172
+ })
173
+ );
@@ -5,10 +5,8 @@ define([
5
5
  "dijit/_WidgetBase",
6
6
  "dijit/_FocusMixin",
7
7
  "dijit/_TemplatedMixin",
8
- "dojo/i18n",
9
- "dijit/form/FilteringSelect",
10
- "dojo/i18n!../nls/PaginationBar"
11
- ], function(declare, lang, Store, _WidgetBase, _FocusMixin, _TemplatedMixin, i18n, FilteringSelect){
8
+ "dijit/form/FilteringSelect"
9
+ ], function(declare, lang, Store, _WidgetBase, _FocusMixin, _TemplatedMixin, FilteringSelect){
12
10
 
13
11
  /*=====
14
12
  return declare([_WidgetBase, _FocusMixin, _TemplatedMixin], {
@@ -35,7 +33,7 @@ define([
35
33
  templateString: '<div class="gridxDropDownPager"><label class="gridxPagerLabel">${pageLabel}</label></div>',
36
34
 
37
35
  constructor: function(args){
38
- lang.mixin(this, i18n.getLocalization('gridx', 'PaginationBar', this.lang || args.grid.lang));
36
+ lang.mixin(this, args.grid.nls);
39
37
  },
40
38
 
41
39
  postCreate: function(){
@@ -4,10 +4,8 @@ define([
4
4
  "dijit/_WidgetBase",
5
5
  "dijit/_FocusMixin",
6
6
  "dijit/_TemplatedMixin",
7
- "dojo/i18n",
8
- "dijit/form/Select",
9
- "dojo/i18n!../nls/PaginationBar"
10
- ], function(declare, lang, _WidgetBase, _FocusMixin, _TemplatedMixin, i18n, Select){
7
+ "dijit/form/Select"
8
+ ], function(declare, lang, _WidgetBase, _FocusMixin, _TemplatedMixin, Select){
11
9
 
12
10
  /*=====
13
11
  return declare([_WidgetBase, _FocusMixin, _TemplatedMixin], {
@@ -38,7 +36,7 @@ define([
38
36
  templateString: '<div class="gridxDropDownSizer"><label class="gridxPagerLabel">${pageSizeLabel}</label></div>',
39
37
 
40
38
  constructor: function(args){
41
- lang.mixin(this, i18n.getLocalization('gridx', 'PaginationBar', this.lang || args.grid.lang));
39
+ lang.mixin(this, args.grid.nls);
42
40
  },
43
41
 
44
42
  postCreate: function(){
@@ -6,10 +6,8 @@ define([
6
6
  "dijit/_WidgetBase",
7
7
  "dijit/_TemplatedMixin",
8
8
  "dijit/_WidgetsInTemplateMixin",
9
- "dojo/text!../templates/GotoPagePane.html",
10
- "dojo/i18n",
11
- "dojo/i18n!../nls/PaginationBar"
12
- ], function(declare, lang, event, keys, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, goToTemplate, i18n){
9
+ "dojo/text!../templates/GotoPagePane.html"
10
+ ], function(declare, lang, event, keys, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, goToTemplate){
13
11
 
14
12
  /*=====
15
13
  return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
@@ -27,7 +25,7 @@ define([
27
25
 
28
26
  postMixInProperties: function(){
29
27
  var t = this;
30
- lang.mixin(t, i18n.getLocalization('gridx', 'PaginationBar', t.pagination.grid.lang));
28
+ lang.mixin(t, t.pagination.grid.nls);
31
29
  t.numberTextBoxClass = t.pager.numberTextBoxClass.prototype.declaredClass;
32
30
  t.buttonClass = t.pager.buttonClass.prototype.declaredClass;
33
31
  t.connect(t.domNode, 'onkeydown', '_onKeyDown');
@@ -13,13 +13,11 @@ define([
13
13
  'dijit/Menu',
14
14
  'dijit/MenuItem',
15
15
  '../modules/Filter',
16
- 'dojo/i18n',
17
- 'dojo/text!../templates/QuickFilter.html',
18
- 'dojo/i18n!../nls/QuickFilter'
16
+ 'dojo/text!../templates/QuickFilter.html'
19
17
  ], function(declare, lang, array, domClass, keys,
20
18
  _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin,
21
19
  TextBox, Button, ComboButton, Menu, MenuItem,
22
- F, i18n, template){
20
+ F, template){
23
21
 
24
22
  /*=====
25
23
  return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
@@ -46,7 +44,7 @@ define([
46
44
 
47
45
  constructor: function(args){
48
46
  var t = this;
49
- lang.mixin(t, i18n.getLocalization('gridx', 'QuickFilter', args.grid.lang));
47
+ lang.mixin(t, args.grid.nls);
50
48
  t._hasFilterBar = args.grid.filterBar ? 'gridxQuickFilterHasFilterBar' : 'gridxQuickFilterNoFilterBar';
51
49
  t.connect(args.grid.model, 'setStore', function(){
52
50
  t.textBox.set('value', '');
@@ -2,10 +2,8 @@ define([
2
2
  "dojo/_base/declare",
3
3
  "dojo/string",
4
4
  "dijit/_WidgetBase",
5
- "dijit/_TemplatedMixin",
6
- "dojo/i18n",
7
- "dojo/i18n!../nls/SummaryBar"
8
- ], function(declare, string, _WidgetBase, _TemplatedMixin, i18n){
5
+ "dijit/_TemplatedMixin"
6
+ ], function(declare, string, _WidgetBase, _TemplatedMixin){
9
7
 
10
8
  /*=====
11
9
  return declare([_WidgetBase, _TemplatedMixin], {
@@ -27,23 +25,47 @@ define([
27
25
 
28
26
  grid: null,
29
27
 
28
+ //message: 'Total: ${0} Selected: ${1}',
29
+
30
30
  postCreate: function(){
31
31
  var t = this,
32
- c = 'connect',
33
32
  m = t.grid.model;
34
- t[c](m, 'onSizeChange', 'refresh');
35
- t[c](m, 'onMarkChange', 'refresh');
36
- t._nls = i18n.getLocalization('gridx', 'SummaryBar', t.lang || t.grid.lang);
33
+ t.connect(m, 'onSizeChange', 'refresh');
34
+ t.connect(m, 'onMarkChange', 'refresh');
35
+ if(t.grid.pagination){
36
+ t.connect(t.grid.pagination, 'onSwitchPage', 'refresh');
37
+ t.connect(t.grid.pagination, 'onChangePageSize', 'refresh');
38
+ }
37
39
  t.refresh();
38
40
  },
39
41
 
40
42
  refresh: function(){
41
43
  var g = this.grid,
42
44
  sr = g.select && g.select.row,
45
+ pagination = g.pagination,
43
46
  size = g.model.size(),
44
47
  selected = sr ? sr.getSelected().length : 0,
45
- tpl = sr ? this._nls.summaryWithSelection : this._nls.summary;
46
- this.domNode.innerHTML = string.substitute(tpl, [size, selected]);
48
+ tpl = this.message;
49
+ if(pagination){
50
+ var cp = pagination.currentPage(),
51
+ firstIdx = pagination.firstIndexInPage(cp) + 1,
52
+ lastIdx = pagination.lastIndexInPage(cp) + 1;
53
+ }
54
+ if(g.getSummaryMessage){
55
+ tpl = g.getSummaryMessage();
56
+ }
57
+ if(!tpl){
58
+ tpl = [];
59
+ if(pagination){
60
+ tpl.push(string.substitute(g.nls.summaryRange, [firstIdx, lastIdx]));
61
+ }
62
+ tpl.push(string.substitute(g.nls.summaryTotal, [size >= 0 ? size : 0]));
63
+ if(sr){
64
+ tpl.push(string.substitute(g.nls.summarySelected, [selected]));
65
+ }
66
+ tpl = tpl.join(' ');
67
+ }
68
+ this.domNode.innerHTML = string.substitute(tpl, [size >= 0 ? size : 0, selected, firstIdx, lastIdx]);
47
69
  }
48
70
  });
49
71
  });
@@ -6,10 +6,8 @@ define([
6
6
  "dojo/dom-class",
7
7
  "dijit/_WidgetBase",
8
8
  "dijit/_FocusMixin",
9
- "dijit/_TemplatedMixin",
10
- "dojo/i18n",
11
- "dojo/i18n!../nls/PaginationBar"
12
- ], function(declare, lang, array, has, domClass, _WidgetBase, _FocusMixin, _TemplatedMixin, i18n){
9
+ "dijit/_TemplatedMixin"
10
+ ], function(declare, lang, array, has, domClass, _WidgetBase, _FocusMixin, _TemplatedMixin){
13
11
 
14
12
  /*=====
15
13
  return declare([_WidgetBase, _TemplatedMixin, _FocusMixin], {
@@ -23,7 +21,7 @@ define([
23
21
  return declare([_WidgetBase, _TemplatedMixin, _FocusMixin], {
24
22
  constructor: function(args){
25
23
  var t = this;
26
- lang.mixin(t, i18n.getLocalization('gridx', 'PaginationBar'));
24
+ lang.mixin(t, args.grid.nls);
27
25
  if(has('ie')){
28
26
  //IE does not support inline-block, so have to set tabIndex
29
27
  var gridTabIndex = args.grid.domNode.getAttribute('tabindex');
@@ -0,0 +1,47 @@
1
+ define([
2
+ 'dojo/query',
3
+ 'dojo/_base/array',
4
+ 'dojo/_base/lang'
5
+ ], function(query, array, lang){
6
+
7
+ var _query = function(selector, context){
8
+
9
+ var nlist = query.apply(null, arguments);
10
+ return nlist;
11
+
12
+
13
+ if(!context || typeof selector === 'object'
14
+ ||(typeof selector === 'string' && /^[^>]*>\s*[^>\s]*$/.test(selector))
15
+ ){
16
+ return nlist;
17
+ }
18
+
19
+ var currentGrid = query(context).closest('.gridx')[0];
20
+
21
+ if(currentGrid){
22
+ var id = currentGrid.getAttribute('id');
23
+
24
+ if(!_query.isGridInGrid[id] || !query('.gridx', currentGrid).length
25
+ || !currentGrid.childNodes[2].childNodes[1].contains(context)
26
+ ){
27
+ return nlist;
28
+ }
29
+
30
+ }else{
31
+ return nlist;
32
+ }
33
+
34
+ return nlist.filter(function(n){
35
+ return query(n).closest('.gridx')[0] === currentGrid;
36
+ });
37
+
38
+ //return new query.NodeList(nlist);
39
+ };
40
+
41
+ _query.isGridInGrid = {};
42
+
43
+ lang.mixin(_query, query);
44
+ // gq = _query;
45
+ return _query;
46
+
47
+ });
@@ -1,7 +1,7 @@
1
1
  <input type="button" data-dojo-type="dijit.form.Button" data-dojo-props="
2
2
  iconClass: 'gridxFilterBarBtnIcon',
3
3
  label: '...',
4
- title: '${defineFilter}'" aria-label='${defineFilter}'
4
+ title: &quot;${defineFilter}&quot;" aria-label="${defineFilter}"
5
5
  /><div class="gridxFilterBarStatus"
6
6
  ><span>${noFilterApplied}</span
7
7
  ><span class="gridxFilterBarCloseBtn" tabindex="-1" title="${closeFilterBarBtn}"><span class="gridxFilterBarCloseBtnText">x</span></span
@@ -3,7 +3,7 @@
3
3
  ><input type="text" data-dojo-type="${textBoxClass}"
4
4
  class="gridxQuickFilterInput"
5
5
  data-dojo-attach-point="textBox"
6
- data-dojo-props="placeHolder: '${filterLabel}', 'aria-label': '${filterLabel}'"
6
+ data-dojo-props="placeHolder: &quot;${filterLabel}&quot;, 'aria-label': &quot;${filterLabel}&quot;"
7
7
  /><span class="gridxQuickFilterClear"
8
8
  tabindex='0'
9
9
  data-dojo-attach-event="onclick: _clear, onkeydown: _onKey"
@@ -15,7 +15,7 @@
15
15
  class="gridxQuickFilterButton"
16
16
  data-dojo-props="
17
17
  showLabel: false,
18
- title: '${filterLabel}',
18
+ title: &quot;${filterLabel}&quot;,
19
19
  iconClass: 'gridxQuickFilterIcon'"
20
20
  data-dojo-attach-event="onClick: _filter"
21
21
  ></button
@@ -23,7 +23,7 @@
23
23
  class="gridxQuickFilterComboButton"
24
24
  data-dojo-props="
25
25
  showLabel: false,
26
- title: '${filterLabel}',
26
+ title: &quot;${filterLabel}&quot;,
27
27
  iconClass: 'gridxQuickFilterIcon'"
28
28
  data-dojo-attach-event="onClick: _filter"
29
29
  ><span data-dojo-type="${menuClass}">