prime-rails 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (626) hide show
  1. checksums.yaml +15 -0
  2. data/app/assets/images/images/loading.gif +0 -0
  3. data/app/assets/images/images/messages.png +0 -0
  4. data/app/assets/images/images/ornament.png +0 -0
  5. data/app/assets/images/images/password-meter.png +0 -0
  6. data/app/assets/javascripts/js/accordion/accordion.js +134 -0
  7. data/app/assets/javascripts/js/autocomplete/autocomplete.js +439 -0
  8. data/app/assets/javascripts/js/button/button.js +98 -0
  9. data/app/assets/javascripts/js/checkbox/checkbox.js +117 -0
  10. data/app/assets/javascripts/js/core/core.js +60 -0
  11. data/app/assets/javascripts/js/datatable/datatable.js +334 -0
  12. data/app/assets/javascripts/js/dialog/dialog.js +485 -0
  13. data/app/assets/javascripts/js/dropdown/dropdown.js +546 -0
  14. data/app/assets/javascripts/js/fieldset/fieldset.js +68 -0
  15. data/app/assets/javascripts/js/galleria/galleria.js +221 -0
  16. data/app/assets/javascripts/js/growl/growl.js +98 -0
  17. data/app/assets/javascripts/js/inputtext/inputtext.js +40 -0
  18. data/app/assets/javascripts/js/inputtextarea/inputtextarea.js +360 -0
  19. data/app/assets/javascripts/js/lightbox/lightbox.js +343 -0
  20. data/app/assets/javascripts/js/menu/menu.js +689 -0
  21. data/app/assets/javascripts/js/notify/notify.js +79 -0
  22. data/app/assets/javascripts/js/paginator/paginator.js +280 -0
  23. data/app/assets/javascripts/js/panel/panel.js +170 -0
  24. data/app/assets/javascripts/js/password/password.js +157 -0
  25. data/app/assets/javascripts/js/progressbar/progressbar.js +92 -0
  26. data/app/assets/javascripts/js/radiobutton/radiobutton.js +94 -0
  27. data/app/assets/javascripts/js/rating/rating.js +87 -0
  28. data/app/assets/javascripts/js/spinner/spinner.js +227 -0
  29. data/app/assets/javascripts/js/tabview/tabview.js +153 -0
  30. data/app/assets/javascripts/js/terminal/terminal.js +91 -0
  31. data/app/assets/javascripts/js/tooltip/tooltip.js +124 -0
  32. data/app/assets/javascripts/plugins/cursorposition.js +138 -0
  33. data/app/assets/javascripts/plugins/rangyinput.js +239 -0
  34. data/app/assets/javascripts/primefaces-core.js +1253 -0
  35. data/app/assets/javascripts/primefaces-rails.js +152 -0
  36. data/app/assets/javascripts/primeui.js +5577 -0
  37. data/app/assets/stylesheets/css/primeui/css/accordion/accordion.css +39 -0
  38. data/app/assets/stylesheets/css/primeui/css/autocomplete/autocomplete.css +100 -0
  39. data/app/assets/stylesheets/css/primeui/css/button/button.css +75 -0
  40. data/app/assets/stylesheets/css/primeui/css/checkbox/checkbox.css +23 -0
  41. data/app/assets/stylesheets/css/primeui/css/core/core.css +5 -0
  42. data/app/assets/stylesheets/css/primeui/css/datatable/datatable.css +60 -0
  43. data/app/assets/stylesheets/css/primeui/css/dialog/dialog.css +36 -0
  44. data/app/assets/stylesheets/css/primeui/css/dropdown/dropdown.css +96 -0
  45. data/app/assets/stylesheets/css/primeui/css/fieldset/fieldset.css +15 -0
  46. data/app/assets/stylesheets/css/primeui/css/galleria/galleria.css +77 -0
  47. data/app/assets/stylesheets/css/primeui/css/growl/growl.css +78 -0
  48. data/app/assets/stylesheets/css/primeui/css/inputtext/inputtext.css +11 -0
  49. data/app/assets/stylesheets/css/primeui/css/inputtextarea/inputtextarea.css +4 -0
  50. data/app/assets/stylesheets/css/primeui/css/lightbox/lightbox.css +52 -0
  51. data/app/assets/stylesheets/css/primeui/css/menu/menu.css +391 -0
  52. data/app/assets/stylesheets/css/primeui/css/notify/notify.css +27 -0
  53. data/app/assets/stylesheets/css/primeui/css/paginator/paginator.css +61 -0
  54. data/app/assets/stylesheets/css/primeui/css/panel/panel.css +51 -0
  55. data/app/assets/stylesheets/css/primeui/css/password/password.css +20 -0
  56. data/app/assets/stylesheets/css/primeui/css/progressbar/progressbar.css +22 -0
  57. data/app/assets/stylesheets/css/primeui/css/radiobutton/radiobutton.css +20 -0
  58. data/app/assets/stylesheets/css/primeui/css/rating/images/rating.png +0 -0
  59. data/app/assets/stylesheets/css/primeui/css/rating/rating.css +37 -0
  60. data/app/assets/stylesheets/css/primeui/css/spinner/spinner.css +46 -0
  61. data/app/assets/stylesheets/css/primeui/css/tabview/tabview.css +124 -0
  62. data/app/assets/stylesheets/css/primeui/css/terminal/terminal.css +25 -0
  63. data/app/assets/stylesheets/css/primeui/css/tooltip/tooltip.css +5 -0
  64. data/app/assets/stylesheets/css/primeui/primeui.css +1453 -0
  65. data/app/assets/stylesheets/jquery-ui.css +53 -0
  66. data/app/assets/stylesheets/themes/afterdark/images/ui-icons-dark.png +0 -0
  67. data/app/assets/stylesheets/themes/afterdark/images/ui-icons-light.png +0 -0
  68. data/app/assets/stylesheets/themes/afterdark/theme.css +435 -0
  69. data/app/assets/stylesheets/themes/afternoon/images/ui-icons-dark.png +0 -0
  70. data/app/assets/stylesheets/themes/afternoon/images/ui-icons-light.png +0 -0
  71. data/app/assets/stylesheets/themes/afternoon/theme.css +443 -0
  72. data/app/assets/stylesheets/themes/afterwork/images/ui-icons-dark.png +0 -0
  73. data/app/assets/stylesheets/themes/afterwork/images/ui-icons-light.png +0 -0
  74. data/app/assets/stylesheets/themes/afterwork/theme.css +442 -0
  75. data/app/assets/stylesheets/themes/aristo/images/ui-bg_flat_0_2d5972_40x100.png +0 -0
  76. data/app/assets/stylesheets/themes/aristo/images/ui-bg_flat_0_4f4f4f_40x100.png +0 -0
  77. data/app/assets/stylesheets/themes/aristo/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  78. data/app/assets/stylesheets/themes/aristo/images/ui-bg_flat_100_ffffff_40x100.png +0 -0
  79. data/app/assets/stylesheets/themes/aristo/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  80. data/app/assets/stylesheets/themes/aristo/images/ui-bg_highlight-hard_80_85b2cb_1x100.png +0 -0
  81. data/app/assets/stylesheets/themes/aristo/images/ui-bg_highlight-hard_80_c4c4c4_1x100.png +0 -0
  82. data/app/assets/stylesheets/themes/aristo/images/ui-bg_highlight-hard_80_e3e3e3_1x100.png +0 -0
  83. data/app/assets/stylesheets/themes/aristo/images/ui-bg_highlight-soft_100_c4c4c4_1x100.png +0 -0
  84. data/app/assets/stylesheets/themes/aristo/images/ui-bg_highlight-soft_75_85b2cb_1x100.png +0 -0
  85. data/app/assets/stylesheets/themes/aristo/images/ui-bg_inset-hard_65_85b2cb_1x100.png +0 -0
  86. data/app/assets/stylesheets/themes/aristo/images/ui-bg_inset-hard_65_c4c4c4_1x100.png +0 -0
  87. data/app/assets/stylesheets/themes/aristo/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  88. data/app/assets/stylesheets/themes/aristo/images/ui-icons_2d5972_256x240.png +0 -0
  89. data/app/assets/stylesheets/themes/aristo/images/ui-icons_2e83ff_256x240.png +0 -0
  90. data/app/assets/stylesheets/themes/aristo/images/ui-icons_38667f_256x240.png +0 -0
  91. data/app/assets/stylesheets/themes/aristo/images/ui-icons_3a6983_256x240.png +0 -0
  92. data/app/assets/stylesheets/themes/aristo/images/ui-icons_616161_256x240.png +0 -0
  93. data/app/assets/stylesheets/themes/aristo/images/ui-icons_898989_256x240.png +0 -0
  94. data/app/assets/stylesheets/themes/aristo/images/ui-icons_cd0a0a_256x240.png +0 -0
  95. data/app/assets/stylesheets/themes/aristo/images/ui-icons_ffffff_256x240.png +0 -0
  96. data/app/assets/stylesheets/themes/aristo/theme.css +1251 -0
  97. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  98. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
  99. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_glass_40_111111_1x400.png +0 -0
  100. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  101. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  102. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  103. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  104. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  105. data/app/assets/stylesheets/themes/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  106. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_222222_256x240.png +0 -0
  107. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_4ca300_256x240.png +0 -0
  108. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_bbbbbb_256x240.png +0 -0
  109. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_ededed_256x240.png +0 -0
  110. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_ffcf29_256x240.png +0 -0
  111. data/app/assets/stylesheets/themes/black-tie/images/ui-icons_ffffff_256x240.png +0 -0
  112. data/app/assets/stylesheets/themes/black-tie/theme.css +269 -0
  113. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  114. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  115. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_flat_0_333333_40x100.png +0 -0
  116. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
  117. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  118. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  119. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  120. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  121. data/app/assets/stylesheets/themes/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  122. data/app/assets/stylesheets/themes/blitzer/images/ui-icons_004276_256x240.png +0 -0
  123. data/app/assets/stylesheets/themes/blitzer/images/ui-icons_cc0000_256x240.png +0 -0
  124. data/app/assets/stylesheets/themes/blitzer/images/ui-icons_ffffff_256x240.png +0 -0
  125. data/app/assets/stylesheets/themes/blitzer/theme.css +269 -0
  126. data/app/assets/stylesheets/themes/bluesky/images/active.png +0 -0
  127. data/app/assets/stylesheets/themes/bluesky/images/default.png +0 -0
  128. data/app/assets/stylesheets/themes/bluesky/images/header.png +0 -0
  129. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  130. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  131. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  132. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  133. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  134. data/app/assets/stylesheets/themes/bluesky/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  135. data/app/assets/stylesheets/themes/bluesky/images/ui-icons_2e83ff_256x240.png +0 -0
  136. data/app/assets/stylesheets/themes/bluesky/images/ui-icons_3d80b3_256x240.png +0 -0
  137. data/app/assets/stylesheets/themes/bluesky/images/ui-icons_72a7cf_256x240.png +0 -0
  138. data/app/assets/stylesheets/themes/bluesky/images/ui-icons_ffffff_256x240.png +0 -0
  139. data/app/assets/stylesheets/themes/bluesky/theme.css +262 -0
  140. data/app/assets/stylesheets/themes/bootstrap/images/ui-icons_333333_256x240.png +0 -0
  141. data/app/assets/stylesheets/themes/bootstrap/images/ui-icons_ffffff_256x240.png +0 -0
  142. data/app/assets/stylesheets/themes/bootstrap/theme.css +918 -0
  143. data/app/assets/stylesheets/themes/casablanca/images/active.png +0 -0
  144. data/app/assets/stylesheets/themes/casablanca/images/default.png +0 -0
  145. data/app/assets/stylesheets/themes/casablanca/images/header.png +0 -0
  146. data/app/assets/stylesheets/themes/casablanca/images/hover.png +0 -0
  147. data/app/assets/stylesheets/themes/casablanca/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  148. data/app/assets/stylesheets/themes/casablanca/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  149. data/app/assets/stylesheets/themes/casablanca/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  150. data/app/assets/stylesheets/themes/casablanca/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  151. data/app/assets/stylesheets/themes/casablanca/images/ui-icons_222222_256x240.png +0 -0
  152. data/app/assets/stylesheets/themes/casablanca/images/ui-icons_2e83ff_256x240.png +0 -0
  153. data/app/assets/stylesheets/themes/casablanca/images/ui-icons_454545_256x240.png +0 -0
  154. data/app/assets/stylesheets/themes/casablanca/images/ui-icons_888888_256x240.png +0 -0
  155. data/app/assets/stylesheets/themes/casablanca/images/ui-icons_cd0a0a_256x240.png +0 -0
  156. data/app/assets/stylesheets/themes/casablanca/theme.css +262 -0
  157. data/app/assets/stylesheets/themes/cruze/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  158. data/app/assets/stylesheets/themes/cruze/images/ui-bg_flat_50_575757_40x100.png +0 -0
  159. data/app/assets/stylesheets/themes/cruze/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  160. data/app/assets/stylesheets/themes/cruze/images/ui-bg_glass_20_3d3d3d_1x400.png +0 -0
  161. data/app/assets/stylesheets/themes/cruze/images/ui-bg_glass_20_474747_1x400.png +0 -0
  162. data/app/assets/stylesheets/themes/cruze/images/ui-bg_glass_40_0099e0_1x400.png +0 -0
  163. data/app/assets/stylesheets/themes/cruze/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  164. data/app/assets/stylesheets/themes/cruze/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  165. data/app/assets/stylesheets/themes/cruze/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  166. data/app/assets/stylesheets/themes/cruze/images/ui-icons_0099e0_256x240.png +0 -0
  167. data/app/assets/stylesheets/themes/cruze/images/ui-icons_a83300_256x240.png +0 -0
  168. data/app/assets/stylesheets/themes/cruze/images/ui-icons_eeeeee_256x240.png +0 -0
  169. data/app/assets/stylesheets/themes/cruze/images/ui-icons_ffffff_256x240.png +0 -0
  170. data/app/assets/stylesheets/themes/cruze/theme.css +273 -0
  171. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  172. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  173. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  174. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_glass_50_3baae3_1x400.png +0 -0
  175. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  176. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  177. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  178. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  179. data/app/assets/stylesheets/themes/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  180. data/app/assets/stylesheets/themes/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
  181. data/app/assets/stylesheets/themes/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
  182. data/app/assets/stylesheets/themes/cupertino/images/ui-icons_3d80b3_256x240.png +0 -0
  183. data/app/assets/stylesheets/themes/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
  184. data/app/assets/stylesheets/themes/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
  185. data/app/assets/stylesheets/themes/cupertino/theme.css +269 -0
  186. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  187. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  188. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  189. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  190. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  191. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  192. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  193. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  194. data/app/assets/stylesheets/themes/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  195. data/app/assets/stylesheets/themes/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  196. data/app/assets/stylesheets/themes/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  197. data/app/assets/stylesheets/themes/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  198. data/app/assets/stylesheets/themes/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  199. data/app/assets/stylesheets/themes/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  200. data/app/assets/stylesheets/themes/dark-hive/theme.css +269 -0
  201. data/app/assets/stylesheets/themes/delta/images/icons_16.png +0 -0
  202. data/app/assets/stylesheets/themes/delta/images/jGrowl-close.png +0 -0
  203. data/app/assets/stylesheets/themes/delta/images/modalClose.png +0 -0
  204. data/app/assets/stylesheets/themes/delta/images/modalClose@2x.png +0 -0
  205. data/app/assets/stylesheets/themes/delta/images/slider_handles.png +0 -0
  206. data/app/assets/stylesheets/themes/delta/images/slider_handles@2x.png +0 -0
  207. data/app/assets/stylesheets/themes/delta/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  208. data/app/assets/stylesheets/themes/delta/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  209. data/app/assets/stylesheets/themes/delta/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  210. data/app/assets/stylesheets/themes/delta/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  211. data/app/assets/stylesheets/themes/delta/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  212. data/app/assets/stylesheets/themes/delta/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  213. data/app/assets/stylesheets/themes/delta/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  214. data/app/assets/stylesheets/themes/delta/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  215. data/app/assets/stylesheets/themes/delta/images/ui-icons_222222_256x240.png +0 -0
  216. data/app/assets/stylesheets/themes/delta/images/ui-icons_2e83ff_256x240.png +0 -0
  217. data/app/assets/stylesheets/themes/delta/images/ui-icons_454545_256x240.png +0 -0
  218. data/app/assets/stylesheets/themes/delta/images/ui-icons_888888_256x240.png +0 -0
  219. data/app/assets/stylesheets/themes/delta/images/ui-icons_cd0a0a_256x240.png +0 -0
  220. data/app/assets/stylesheets/themes/delta/images/ui-icons_ffffff_256x240.png +0 -0
  221. data/app/assets/stylesheets/themes/delta/theme.css +671 -0
  222. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  223. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  224. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_dots-small_20_333333_2x2.png +0 -0
  225. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  226. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  227. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  228. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_flat_40_292929_40x100.png +0 -0
  229. data/app/assets/stylesheets/themes/dot-luv/images/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  230. data/app/assets/stylesheets/themes/dot-luv/images/ui-icons_00498f_256x240.png +0 -0
  231. data/app/assets/stylesheets/themes/dot-luv/images/ui-icons_98d2fb_256x240.png +0 -0
  232. data/app/assets/stylesheets/themes/dot-luv/images/ui-icons_9ccdfc_256x240.png +0 -0
  233. data/app/assets/stylesheets/themes/dot-luv/images/ui-icons_ffffff_256x240.png +0 -0
  234. data/app/assets/stylesheets/themes/dot-luv/theme.css +269 -0
  235. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  236. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  237. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_flat_55_994d53_40x100.png +0 -0
  238. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_flat_55_fafafa_40x100.png +0 -0
  239. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  240. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  241. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  242. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  243. data/app/assets/stylesheets/themes/eggplant/images/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  244. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_454545_256x240.png +0 -0
  245. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_734d99_256x240.png +0 -0
  246. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_8d78a5_256x240.png +0 -0
  247. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_a8a3ae_256x240.png +0 -0
  248. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_ebccce_256x240.png +0 -0
  249. data/app/assets/stylesheets/themes/eggplant/images/ui-icons_ffffff_256x240.png +0 -0
  250. data/app/assets/stylesheets/themes/eggplant/theme.css +269 -0
  251. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  252. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  253. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  254. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  255. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_flat_0_e69700_40x100.png +0 -0
  256. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png +0 -0
  257. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  258. data/app/assets/stylesheets/themes/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  259. data/app/assets/stylesheets/themes/excite-bike/images/ui-icons_0a82eb_256x240.png +0 -0
  260. data/app/assets/stylesheets/themes/excite-bike/images/ui-icons_0b54d5_256x240.png +0 -0
  261. data/app/assets/stylesheets/themes/excite-bike/images/ui-icons_5fa5e3_256x240.png +0 -0
  262. data/app/assets/stylesheets/themes/excite-bike/images/ui-icons_fcdd4a_256x240.png +0 -0
  263. data/app/assets/stylesheets/themes/excite-bike/images/ui-icons_ffffff_256x240.png +0 -0
  264. data/app/assets/stylesheets/themes/excite-bike/theme.css +270 -0
  265. data/app/assets/stylesheets/themes/flick/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  266. data/app/assets/stylesheets/themes/flick/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  267. data/app/assets/stylesheets/themes/flick/images/ui-bg_flat_55_ffffff_40x100.png +0 -0
  268. data/app/assets/stylesheets/themes/flick/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  269. data/app/assets/stylesheets/themes/flick/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  270. data/app/assets/stylesheets/themes/flick/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  271. data/app/assets/stylesheets/themes/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  272. data/app/assets/stylesheets/themes/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  273. data/app/assets/stylesheets/themes/flick/images/ui-icons_0073ea_256x240.png +0 -0
  274. data/app/assets/stylesheets/themes/flick/images/ui-icons_454545_256x240.png +0 -0
  275. data/app/assets/stylesheets/themes/flick/images/ui-icons_666666_256x240.png +0 -0
  276. data/app/assets/stylesheets/themes/flick/images/ui-icons_ff0084_256x240.png +0 -0
  277. data/app/assets/stylesheets/themes/flick/images/ui-icons_ffffff_256x240.png +0 -0
  278. data/app/assets/stylesheets/themes/flick/theme.css +269 -0
  279. data/app/assets/stylesheets/themes/glass-x/images/active.png +0 -0
  280. data/app/assets/stylesheets/themes/glass-x/images/default.png +0 -0
  281. data/app/assets/stylesheets/themes/glass-x/images/header.png +0 -0
  282. data/app/assets/stylesheets/themes/glass-x/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  283. data/app/assets/stylesheets/themes/glass-x/images/ui-icons_222222_256x240.png +0 -0
  284. data/app/assets/stylesheets/themes/glass-x/theme.css +276 -0
  285. data/app/assets/stylesheets/themes/home/images/active.png +0 -0
  286. data/app/assets/stylesheets/themes/home/images/default.png +0 -0
  287. data/app/assets/stylesheets/themes/home/images/header.png +0 -0
  288. data/app/assets/stylesheets/themes/home/images/hover.png +0 -0
  289. data/app/assets/stylesheets/themes/home/images/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  290. data/app/assets/stylesheets/themes/home/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
  291. data/app/assets/stylesheets/themes/home/images/ui-bg_glass_40_111111_1x400.png +0 -0
  292. data/app/assets/stylesheets/themes/home/images/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  293. data/app/assets/stylesheets/themes/home/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  294. data/app/assets/stylesheets/themes/home/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  295. data/app/assets/stylesheets/themes/home/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  296. data/app/assets/stylesheets/themes/home/images/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  297. data/app/assets/stylesheets/themes/home/images/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  298. data/app/assets/stylesheets/themes/home/images/ui-icons_222222_256x240.png +0 -0
  299. data/app/assets/stylesheets/themes/home/images/ui-icons_4ca300_256x240.png +0 -0
  300. data/app/assets/stylesheets/themes/home/images/ui-icons_bbbbbb_256x240.png +0 -0
  301. data/app/assets/stylesheets/themes/home/images/ui-icons_ededed_256x240.png +0 -0
  302. data/app/assets/stylesheets/themes/home/images/ui-icons_ffcf29_256x240.png +0 -0
  303. data/app/assets/stylesheets/themes/home/images/ui-icons_ffffff_256x240.png +0 -0
  304. data/app/assets/stylesheets/themes/home/theme.css +273 -0
  305. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  306. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  307. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  308. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  309. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  310. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  311. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_flat_75_ba9217_40x100.png +0 -0
  312. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  313. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  314. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_454545_256x240.png +0 -0
  315. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_88a206_256x240.png +0 -0
  316. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_c02669_256x240.png +0 -0
  317. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_e1e463_256x240.png +0 -0
  318. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_ffeb33_256x240.png +0 -0
  319. data/app/assets/stylesheets/themes/hot-sneaks/images/ui-icons_ffffff_256x240.png +0 -0
  320. data/app/assets/stylesheets/themes/hot-sneaks/theme.css +269 -0
  321. data/app/assets/stylesheets/themes/humanity/images/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  322. data/app/assets/stylesheets/themes/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  323. data/app/assets/stylesheets/themes/humanity/images/ui-bg_glass_25_cb842e_1x400.png +0 -0
  324. data/app/assets/stylesheets/themes/humanity/images/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  325. data/app/assets/stylesheets/themes/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  326. data/app/assets/stylesheets/themes/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  327. data/app/assets/stylesheets/themes/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  328. data/app/assets/stylesheets/themes/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  329. data/app/assets/stylesheets/themes/humanity/images/ui-icons_c47a23_256x240.png +0 -0
  330. data/app/assets/stylesheets/themes/humanity/images/ui-icons_cb672b_256x240.png +0 -0
  331. data/app/assets/stylesheets/themes/humanity/images/ui-icons_f08000_256x240.png +0 -0
  332. data/app/assets/stylesheets/themes/humanity/images/ui-icons_f35f07_256x240.png +0 -0
  333. data/app/assets/stylesheets/themes/humanity/images/ui-icons_ff7519_256x240.png +0 -0
  334. data/app/assets/stylesheets/themes/humanity/images/ui-icons_ffffff_256x240.png +0 -0
  335. data/app/assets/stylesheets/themes/humanity/theme.css +269 -0
  336. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  337. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  338. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  339. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  340. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  341. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  342. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  343. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  344. data/app/assets/stylesheets/themes/le-frog/images/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  345. data/app/assets/stylesheets/themes/le-frog/images/ui-icons_4eb305_256x240.png +0 -0
  346. data/app/assets/stylesheets/themes/le-frog/images/ui-icons_72b42d_256x240.png +0 -0
  347. data/app/assets/stylesheets/themes/le-frog/images/ui-icons_cd0a0a_256x240.png +0 -0
  348. data/app/assets/stylesheets/themes/le-frog/images/ui-icons_ffffff_256x240.png +0 -0
  349. data/app/assets/stylesheets/themes/le-frog/theme.css +269 -0
  350. data/app/assets/stylesheets/themes/midnight/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  351. data/app/assets/stylesheets/themes/midnight/images/ui-bg_flat_100_18181f_40x100.png +0 -0
  352. data/app/assets/stylesheets/themes/midnight/images/ui-bg_flat_100_583d3d_40x100.png +0 -0
  353. data/app/assets/stylesheets/themes/midnight/images/ui-bg_flat_10_3d4858_40x100.png +0 -0
  354. data/app/assets/stylesheets/themes/midnight/images/ui-bg_highlight-soft_15_191921_1x100.png +0 -0
  355. data/app/assets/stylesheets/themes/midnight/images/ui-bg_highlight-soft_15_32323d_1x100.png +0 -0
  356. data/app/assets/stylesheets/themes/midnight/images/ui-bg_highlight-soft_35_191921_1x100.png +0 -0
  357. data/app/assets/stylesheets/themes/midnight/images/ui-bg_inset-soft_35_191921_1x100.png +0 -0
  358. data/app/assets/stylesheets/themes/midnight/images/ui-icons_8fddff_256x240.png +0 -0
  359. data/app/assets/stylesheets/themes/midnight/images/ui-icons_a1ddff_256x240.png +0 -0
  360. data/app/assets/stylesheets/themes/midnight/images/ui-icons_f4f4f9_256x240.png +0 -0
  361. data/app/assets/stylesheets/themes/midnight/images/ui-icons_fafafa_256x240.png +0 -0
  362. data/app/assets/stylesheets/themes/midnight/images/ui-icons_ff8f8f_256x240.png +0 -0
  363. data/app/assets/stylesheets/themes/midnight/theme.css +268 -0
  364. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  365. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_glass_15_5f391b_1x400.png +0 -0
  366. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  367. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  368. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  369. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  370. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  371. data/app/assets/stylesheets/themes/mint-choc/images/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  372. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_222222_256x240.png +0 -0
  373. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_9bcc60_256x240.png +0 -0
  374. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_add978_256x240.png +0 -0
  375. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_e3ddc9_256x240.png +0 -0
  376. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_f1fd86_256x240.png +0 -0
  377. data/app/assets/stylesheets/themes/mint-choc/images/ui-icons_ffffff_256x240.png +0 -0
  378. data/app/assets/stylesheets/themes/mint-choc/theme.css +269 -0
  379. data/app/assets/stylesheets/themes/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  380. data/app/assets/stylesheets/themes/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  381. data/app/assets/stylesheets/themes/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
  382. data/app/assets/stylesheets/themes/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  383. data/app/assets/stylesheets/themes/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  384. data/app/assets/stylesheets/themes/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  385. data/app/assets/stylesheets/themes/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  386. data/app/assets/stylesheets/themes/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  387. data/app/assets/stylesheets/themes/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  388. data/app/assets/stylesheets/themes/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  389. data/app/assets/stylesheets/themes/overcast/images/ui-icons_454545_256x240.png +0 -0
  390. data/app/assets/stylesheets/themes/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  391. data/app/assets/stylesheets/themes/overcast/images/ui-icons_999999_256x240.png +0 -0
  392. data/app/assets/stylesheets/themes/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  393. data/app/assets/stylesheets/themes/overcast/theme.css +269 -0
  394. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  395. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  396. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  397. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  398. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  399. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  400. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  401. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  402. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  403. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_222222_256x240.png +0 -0
  404. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_3572ac_256x240.png +0 -0
  405. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_8c291d_256x240.png +0 -0
  406. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_b83400_256x240.png +0 -0
  407. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_fbdb93_256x240.png +0 -0
  408. data/app/assets/stylesheets/themes/pepper-grinder/images/ui-icons_ffffff_256x240.png +0 -0
  409. data/app/assets/stylesheets/themes/pepper-grinder/theme.css +269 -0
  410. data/app/assets/stylesheets/themes/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  411. data/app/assets/stylesheets/themes/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  412. data/app/assets/stylesheets/themes/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  413. data/app/assets/stylesheets/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  414. data/app/assets/stylesheets/themes/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  415. data/app/assets/stylesheets/themes/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  416. data/app/assets/stylesheets/themes/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  417. data/app/assets/stylesheets/themes/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  418. data/app/assets/stylesheets/themes/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  419. data/app/assets/stylesheets/themes/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  420. data/app/assets/stylesheets/themes/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  421. data/app/assets/stylesheets/themes/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  422. data/app/assets/stylesheets/themes/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  423. data/app/assets/stylesheets/themes/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  424. data/app/assets/stylesheets/themes/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  425. data/app/assets/stylesheets/themes/redmond/theme.css +269 -0
  426. data/app/assets/stylesheets/themes/rocket/images/ui-bg_diagonals-thick_50_00a6dd_40x40.png +0 -0
  427. data/app/assets/stylesheets/themes/rocket/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  428. data/app/assets/stylesheets/themes/rocket/images/ui-bg_flat_100_f1f1f1_40x100.png +0 -0
  429. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_15_242122_1x100.png +0 -0
  430. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_15_65358a_1x100.png +0 -0
  431. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_15_8A56B2_1x100.png +0 -0
  432. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_15_9eca38_1x100.png +0 -0
  433. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_15_ca3838_1x100.png +0 -0
  434. data/app/assets/stylesheets/themes/rocket/images/ui-bg_highlight-soft_35_00a6dd_1x100.png +0 -0
  435. data/app/assets/stylesheets/themes/rocket/images/ui-bg_inset-soft_100_e1e1e1_1x100.png +0 -0
  436. data/app/assets/stylesheets/themes/rocket/images/ui-bg_inset-soft_15_242122_1x100 - Copy.png +0 -0
  437. data/app/assets/stylesheets/themes/rocket/images/ui-bg_inset-soft_15_242122_1x100.png +0 -0
  438. data/app/assets/stylesheets/themes/rocket/images/ui-icons_00a6dd_256x240.png +0 -0
  439. data/app/assets/stylesheets/themes/rocket/images/ui-icons_304915_256x240.png +0 -0
  440. data/app/assets/stylesheets/themes/rocket/images/ui-icons_d399ff_256x240.png +0 -0
  441. data/app/assets/stylesheets/themes/rocket/images/ui-icons_eaffb9_256x240.png +0 -0
  442. data/app/assets/stylesheets/themes/rocket/images/ui-icons_f4f4f9_256x240.png +0 -0
  443. data/app/assets/stylesheets/themes/rocket/images/ui-icons_fafafa_256x240.png +0 -0
  444. data/app/assets/stylesheets/themes/rocket/images/ui-icons_ff8f8f_256x240.png +0 -0
  445. data/app/assets/stylesheets/themes/rocket/theme.css +301 -0
  446. data/app/assets/stylesheets/themes/sam/images/sprite.png +0 -0
  447. data/app/assets/stylesheets/themes/sam/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  448. data/app/assets/stylesheets/themes/sam/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  449. data/app/assets/stylesheets/themes/sam/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  450. data/app/assets/stylesheets/themes/sam/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  451. data/app/assets/stylesheets/themes/sam/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  452. data/app/assets/stylesheets/themes/sam/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  453. data/app/assets/stylesheets/themes/sam/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  454. data/app/assets/stylesheets/themes/sam/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  455. data/app/assets/stylesheets/themes/sam/images/ui-default.png +0 -0
  456. data/app/assets/stylesheets/themes/sam/images/ui-icons_222222_256x240.png +0 -0
  457. data/app/assets/stylesheets/themes/sam/images/ui-icons_2e83ff_256x240.png +0 -0
  458. data/app/assets/stylesheets/themes/sam/images/ui-icons_454545_256x240.png +0 -0
  459. data/app/assets/stylesheets/themes/sam/images/ui-icons_888888_256x240.png +0 -0
  460. data/app/assets/stylesheets/themes/sam/images/ui-icons_cd0a0a_256x240.png +0 -0
  461. data/app/assets/stylesheets/themes/sam/theme.css +303 -0
  462. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  463. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  464. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  465. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  466. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  467. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  468. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  469. data/app/assets/stylesheets/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  470. data/app/assets/stylesheets/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  471. data/app/assets/stylesheets/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  472. data/app/assets/stylesheets/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  473. data/app/assets/stylesheets/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  474. data/app/assets/stylesheets/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  475. data/app/assets/stylesheets/themes/smoothness/theme.css +269 -0
  476. data/app/assets/stylesheets/themes/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  477. data/app/assets/stylesheets/themes/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  478. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  479. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  480. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  481. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  482. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  483. data/app/assets/stylesheets/themes/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  484. data/app/assets/stylesheets/themes/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  485. data/app/assets/stylesheets/themes/south-street/images/ui-icons_808080_256x240.png +0 -0
  486. data/app/assets/stylesheets/themes/south-street/images/ui-icons_847e71_256x240.png +0 -0
  487. data/app/assets/stylesheets/themes/south-street/images/ui-icons_8dc262_256x240.png +0 -0
  488. data/app/assets/stylesheets/themes/south-street/images/ui-icons_cd0a0a_256x240.png +0 -0
  489. data/app/assets/stylesheets/themes/south-street/images/ui-icons_eeeeee_256x240.png +0 -0
  490. data/app/assets/stylesheets/themes/south-street/images/ui-icons_ffffff_256x240.png +0 -0
  491. data/app/assets/stylesheets/themes/south-street/theme.css +269 -0
  492. data/app/assets/stylesheets/themes/start/images/ui-bg_flat_55_999999_40x100.png +0 -0
  493. data/app/assets/stylesheets/themes/start/images/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  494. data/app/assets/stylesheets/themes/start/images/ui-bg_glass_45_0078ae_1x400.png +0 -0
  495. data/app/assets/stylesheets/themes/start/images/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  496. data/app/assets/stylesheets/themes/start/images/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  497. data/app/assets/stylesheets/themes/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  498. data/app/assets/stylesheets/themes/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  499. data/app/assets/stylesheets/themes/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  500. data/app/assets/stylesheets/themes/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  501. data/app/assets/stylesheets/themes/start/images/ui-icons_0078ae_256x240.png +0 -0
  502. data/app/assets/stylesheets/themes/start/images/ui-icons_056b93_256x240.png +0 -0
  503. data/app/assets/stylesheets/themes/start/images/ui-icons_d8e7f3_256x240.png +0 -0
  504. data/app/assets/stylesheets/themes/start/images/ui-icons_e0fdff_256x240.png +0 -0
  505. data/app/assets/stylesheets/themes/start/images/ui-icons_f5e175_256x240.png +0 -0
  506. data/app/assets/stylesheets/themes/start/images/ui-icons_f7a50d_256x240.png +0 -0
  507. data/app/assets/stylesheets/themes/start/images/ui-icons_fcd113_256x240.png +0 -0
  508. data/app/assets/stylesheets/themes/start/theme.css +269 -0
  509. data/app/assets/stylesheets/themes/sunny/images/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  510. data/app/assets/stylesheets/themes/sunny/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  511. data/app/assets/stylesheets/themes/sunny/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  512. data/app/assets/stylesheets/themes/sunny/images/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  513. data/app/assets/stylesheets/themes/sunny/images/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  514. data/app/assets/stylesheets/themes/sunny/images/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  515. data/app/assets/stylesheets/themes/sunny/images/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  516. data/app/assets/stylesheets/themes/sunny/images/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  517. data/app/assets/stylesheets/themes/sunny/images/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  518. data/app/assets/stylesheets/themes/sunny/images/ui-icons_3d3d3d_256x240.png +0 -0
  519. data/app/assets/stylesheets/themes/sunny/images/ui-icons_bd7b00_256x240.png +0 -0
  520. data/app/assets/stylesheets/themes/sunny/images/ui-icons_d19405_256x240.png +0 -0
  521. data/app/assets/stylesheets/themes/sunny/images/ui-icons_eb990f_256x240.png +0 -0
  522. data/app/assets/stylesheets/themes/sunny/images/ui-icons_ed9f26_256x240.png +0 -0
  523. data/app/assets/stylesheets/themes/sunny/images/ui-icons_fadc7a_256x240.png +0 -0
  524. data/app/assets/stylesheets/themes/sunny/images/ui-icons_ffe180_256x240.png +0 -0
  525. data/app/assets/stylesheets/themes/sunny/theme.css +269 -0
  526. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  527. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_20_372806_10x8.png +0 -0
  528. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_25_675423_10x8.png +0 -0
  529. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  530. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_8_261803_10x8.png +0 -0
  531. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_diamond_8_443113_10x8.png +0 -0
  532. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
  533. data/app/assets/stylesheets/themes/swanky-purse/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  534. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_070603_256x240.png +0 -0
  535. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_e8e2b5_256x240.png +0 -0
  536. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_e9cd86_256x240.png +0 -0
  537. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_efec9f_256x240.png +0 -0
  538. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_f2ec64_256x240.png +0 -0
  539. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_f9f2bd_256x240.png +0 -0
  540. data/app/assets/stylesheets/themes/swanky-purse/images/ui-icons_ff7519_256x240.png +0 -0
  541. data/app/assets/stylesheets/themes/swanky-purse/theme.css +269 -0
  542. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  543. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_flat_0_303030_40x100.png +0 -0
  544. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
  545. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  546. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  547. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_glass_60_000000_1x400.png +0 -0
  548. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  549. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  550. data/app/assets/stylesheets/themes/trontastic/images/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  551. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_000000_256x240.png +0 -0
  552. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_1f1f1f_256x240.png +0 -0
  553. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_9fda58_256x240.png +0 -0
  554. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_b8ec79_256x240.png +0 -0
  555. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_cd0a0a_256x240.png +0 -0
  556. data/app/assets/stylesheets/themes/trontastic/images/ui-icons_ffffff_256x240.png +0 -0
  557. data/app/assets/stylesheets/themes/trontastic/theme.css +269 -0
  558. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  559. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  560. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_glass_20_555555_1x400.png +0 -0
  561. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
  562. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  563. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  564. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  565. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  566. data/app/assets/stylesheets/themes/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  567. data/app/assets/stylesheets/themes/ui-darkness/images/ui-icons_222222_256x240.png +0 -0
  568. data/app/assets/stylesheets/themes/ui-darkness/images/ui-icons_4b8e0b_256x240.png +0 -0
  569. data/app/assets/stylesheets/themes/ui-darkness/images/ui-icons_a83300_256x240.png +0 -0
  570. data/app/assets/stylesheets/themes/ui-darkness/images/ui-icons_cccccc_256x240.png +0 -0
  571. data/app/assets/stylesheets/themes/ui-darkness/images/ui-icons_ffffff_256x240.png +0 -0
  572. data/app/assets/stylesheets/themes/ui-darkness/theme.css +269 -0
  573. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  574. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  575. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  576. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  577. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  578. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  579. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  580. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  581. data/app/assets/stylesheets/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  582. data/app/assets/stylesheets/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  583. data/app/assets/stylesheets/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  584. data/app/assets/stylesheets/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  585. data/app/assets/stylesheets/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  586. data/app/assets/stylesheets/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  587. data/app/assets/stylesheets/themes/ui-lightness/theme.css +269 -0
  588. data/app/assets/stylesheets/themes/vader/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  589. data/app/assets/stylesheets/themes/vader/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  590. data/app/assets/stylesheets/themes/vader/images/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  591. data/app/assets/stylesheets/themes/vader/images/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  592. data/app/assets/stylesheets/themes/vader/images/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  593. data/app/assets/stylesheets/themes/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  594. data/app/assets/stylesheets/themes/vader/images/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  595. data/app/assets/stylesheets/themes/vader/images/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  596. data/app/assets/stylesheets/themes/vader/images/ui-icons_666666_256x240.png +0 -0
  597. data/app/assets/stylesheets/themes/vader/images/ui-icons_aaaaaa_256x240.png +0 -0
  598. data/app/assets/stylesheets/themes/vader/images/ui-icons_bbbbbb_256x240.png +0 -0
  599. data/app/assets/stylesheets/themes/vader/images/ui-icons_c98000_256x240.png +0 -0
  600. data/app/assets/stylesheets/themes/vader/images/ui-icons_cccccc_256x240.png +0 -0
  601. data/app/assets/stylesheets/themes/vader/images/ui-icons_cd0a0a_256x240.png +0 -0
  602. data/app/assets/stylesheets/themes/vader/images/ui-icons_f29a00_256x240.png +0 -0
  603. data/app/assets/stylesheets/themes/vader/theme.css +269 -0
  604. data/app/helpers/breadcrumb_helper.rb +51 -0
  605. data/app/helpers/dialog_helper.rb +34 -0
  606. data/app/helpers/fieldset_helper.rb +35 -0
  607. data/app/helpers/panel_helper.rb +35 -0
  608. data/app/helpers/progressbar_helper.rb +31 -0
  609. data/app/helpers/tabview_helper.rb +54 -0
  610. data/app/helpers/tooltip_helper.rb +35 -0
  611. data/app/views/prime-rails/_breadcrumbs.html.erb +10 -0
  612. data/lib/generators/primerails/install/install_generator.rb +47 -0
  613. data/lib/generators/primerails/install/templates/application.css +7 -0
  614. data/lib/generators/primerails/install/templates/application.js +11 -0
  615. data/lib/generators/primerails/install/templates/primerails_and_overrides.css +5 -0
  616. data/lib/prime/rails/engine.rb +22 -0
  617. data/lib/prime/rails/form_helper.rb +19 -0
  618. data/lib/prime/rails/form_tag_helper.rb +139 -0
  619. data/lib/prime/rails/prime-rails-breadcrumbs.rb +43 -0
  620. data/lib/prime/rails/primerails.rb +3 -0
  621. data/lib/prime/rails/tags/text_area.rb +32 -0
  622. data/lib/prime/rails/tags/text_field.rb +26 -0
  623. data/lib/prime/rails/utils.rb +28 -0
  624. data/lib/prime/rails/version.rb +5 -0
  625. data/lib/prime-rails.rb +1 -0
  626. metadata +681 -0
@@ -0,0 +1,1253 @@
1
+ (function(window) {
2
+
3
+ if(window.PrimeFaces) {
4
+ PrimeFaces.debug("PrimeFaces already loaded, ignoring duplicate execution.");
5
+ return;
6
+ }
7
+
8
+ PrimeFaces = {
9
+
10
+ escapeClientId : function(id) {
11
+ return "#" + id.replace(/:/g,"\\:");
12
+ },
13
+
14
+ cleanWatermarks : function(){
15
+ $.watermark.hideAll();
16
+ },
17
+
18
+ showWatermarks : function(){
19
+ $.watermark.showAll();
20
+ },
21
+
22
+ addSubmitParam : function(parent, params) {
23
+ var form = $(this.escapeClientId(parent));
24
+
25
+ for(var key in params) {
26
+ form.append("<input type=\"hidden\" name=\"" + key + "\" value=\"" + params[key] + "\" class=\"ui-submit-param\"/>");
27
+ }
28
+
29
+ return this;
30
+ },
31
+
32
+ /**
33
+ * Submits a form and clears ui-submit-param after that to prevent dom caching issues
34
+ */
35
+ submit : function(formId) {
36
+ $(this.escapeClientId(formId)).submit().children('input.ui-submit-param').remove();
37
+ },
38
+
39
+ attachBehaviors : function(element, behaviors) {
40
+ $.each(behaviors, function(event, fn) {
41
+ element.bind(event, function(e) {
42
+ fn.call(element, e);
43
+ });
44
+ });
45
+ },
46
+
47
+ getCookie : function(name) {
48
+ return $.cookie(name);
49
+ },
50
+
51
+ setCookie : function(name, value) {
52
+ $.cookie(name, value);
53
+ },
54
+
55
+ cookiesEnabled: function() {
56
+ var cookieEnabled = (navigator.cookieEnabled) ? true : false;
57
+
58
+ if(typeof navigator.cookieEnabled === 'undefined' && !cookieEnabled) {
59
+ document.cookie="testcookie";
60
+ cookieEnabled = (document.cookie.indexOf("testcookie") !== -1) ? true : false;
61
+ }
62
+
63
+ return (cookieEnabled);
64
+ },
65
+
66
+ skinInput : function(input) {
67
+ input.hover(
68
+ function() {
69
+ $(this).addClass('ui-state-hover');
70
+ },
71
+ function() {
72
+ $(this).removeClass('ui-state-hover');
73
+ }
74
+ ).focus(function() {
75
+ $(this).addClass('ui-state-focus');
76
+ }).blur(function() {
77
+ $(this).removeClass('ui-state-focus');
78
+ });
79
+
80
+ //aria
81
+ input.attr('role', 'textbox').attr('aria-disabled', input.is(':disabled'))
82
+ .attr('aria-readonly', input.prop('readonly'))
83
+ .attr('aria-multiline', input.is('textarea'));
84
+
85
+
86
+ return this;
87
+ },
88
+
89
+ skinButton : function(button) {
90
+ button.mouseover(function(){
91
+ var el = $(this);
92
+ if(!button.prop('disabled')) {
93
+ el.addClass('ui-state-hover');
94
+ }
95
+ }).mouseout(function() {
96
+ $(this).removeClass('ui-state-active ui-state-hover');
97
+ }).mousedown(function() {
98
+ var el = $(this);
99
+ if(!button.prop('disabled')) {
100
+ el.addClass('ui-state-active').removeClass('ui-state-hover');
101
+ }
102
+ }).mouseup(function() {
103
+ $(this).removeClass('ui-state-active').addClass('ui-state-hover');
104
+ }).focus(function() {
105
+ $(this).addClass('ui-state-focus');
106
+ }).blur(function() {
107
+ $(this).removeClass('ui-state-focus ui-state-active');
108
+ }).keydown(function(e) {
109
+ if(e.keyCode === $.ui.keyCode.SPACE || e.keyCode === $.ui.keyCode.ENTER || e.keyCode === $.ui.keyCode.NUMPAD_ENTER) {
110
+ $(this).addClass('ui-state-active');
111
+ }
112
+ }).keyup(function() {
113
+ $(this).removeClass('ui-state-active');
114
+ });
115
+
116
+ //aria
117
+ button.attr('role', 'button').attr('aria-disabled', button.prop('disabled'));
118
+
119
+ return this;
120
+ },
121
+
122
+ skinSelect : function(select) {
123
+ select.mouseover(function() {
124
+ var el = $(this);
125
+ if(!el.hasClass('ui-state-focus'))
126
+ el.addClass('ui-state-hover');
127
+ }).mouseout(function() {
128
+ $(this).removeClass('ui-state-hover');
129
+ }).focus(function() {
130
+ $(this).addClass('ui-state-focus').removeClass('ui-state-hover');
131
+ }).blur(function() {
132
+ $(this).removeClass('ui-state-focus ui-state-hover');
133
+ });
134
+
135
+ return this;
136
+ },
137
+
138
+ isIE: function(version) {
139
+ return ($.browser.msie && parseInt($.browser.version, 10) == version);
140
+ },
141
+
142
+ //ajax shortcut
143
+ ab: function(cfg, ext) {
144
+ return PrimeFaces.ajax.AjaxRequest(cfg, ext);
145
+ },
146
+
147
+ info: function(log) {
148
+ if(this.logger) {
149
+ this.logger.info(log);
150
+ }
151
+ },
152
+
153
+ debug: function(log) {
154
+ if(this.logger) {
155
+ this.logger.debug(log);
156
+ }
157
+ },
158
+
159
+ warn: function(log) {
160
+ if(this.logger) {
161
+ this.logger.warn(log);
162
+ }
163
+ },
164
+
165
+ error: function(log) {
166
+ if(this.logger) {
167
+ this.logger.error(log);
168
+ }
169
+ },
170
+
171
+ setCaretToEnd: function(element) {
172
+ if(element) {
173
+ element.focus();
174
+ var length = element.value.length;
175
+
176
+ if(length > 0) {
177
+ if(element.setSelectionRange) {
178
+ element.setSelectionRange(0, length);
179
+ }
180
+ else if (element.createTextRange) {
181
+ var range = element.createTextRange();
182
+ range.collapse(true);
183
+ range.moveEnd('character', 1);
184
+ range.moveStart('character', 1);
185
+ range.select();
186
+ }
187
+ }
188
+ }
189
+ },
190
+
191
+ changeTheme: function(newTheme) {
192
+ if(newTheme && newTheme != '') {
193
+ var themeLink = $('link[href*="javax.faces.resource/theme.css"]'),
194
+ themeURL = themeLink.attr('href'),
195
+ plainURL = themeURL.split('&')[0],
196
+ oldTheme = plainURL.split('ln=')[1],
197
+ newThemeURL = themeURL.replace(oldTheme, 'primefaces-' + newTheme);
198
+
199
+ themeLink.attr('href', newThemeURL);
200
+ }
201
+ },
202
+
203
+ escapeRegExp: function(text) {
204
+ return text.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
205
+ },
206
+
207
+ escapeHTML: function(value) {
208
+ return value.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
209
+ },
210
+
211
+ clearSelection: function() {
212
+ if(window.getSelection) {
213
+ if(window.getSelection().empty) {
214
+ window.getSelection().empty();
215
+ } else if(window.getSelection().removeAllRanges) {
216
+ window.getSelection().removeAllRanges();
217
+ }
218
+ } else if(document.selection && document.selection.empty) {
219
+ document.selection.empty();
220
+ }
221
+ },
222
+
223
+ cw : function(widgetConstructor, widgetVar, cfg, resource) {
224
+ PrimeFaces.createWidget(widgetConstructor, widgetVar, cfg, resource);
225
+ },
226
+
227
+ createWidget : function(widgetConstructor, widgetVar, cfg, resource) {
228
+ if(PrimeFaces.widget[widgetConstructor]) {
229
+ if(PrimeFaces.widgets[widgetVar])
230
+ PrimeFaces.widgets[widgetVar].refresh(cfg); //ajax spdate
231
+ else
232
+ PrimeFaces.widgets[widgetVar] = new PrimeFaces.widget[widgetConstructor](cfg); //page init
233
+ }
234
+ else {
235
+ var scriptURI = $('script[src*="/javax.faces.resource/primefaces.js"]').attr('src').replace('primefaces.js', resource + '/' + resource + '.js'),
236
+ cssURI = $('link[href*="/javax.faces.resource/primefaces.css"]').attr('href').replace('primefaces.css', resource + '/' + resource + '.css'),
237
+ cssResource = '<link type="text/css" rel="stylesheet" href="' + cssURI + '" />';
238
+
239
+ //load css
240
+ $('head').append(cssResource);
241
+
242
+ //load script and initialize widget
243
+ PrimeFaces.getScript(location.protocol + '//' + location.host + scriptURI, function() {
244
+ setTimeout(function() {
245
+ PrimeFaces.widgets[widgetVar] = new PrimeFaces.widget[widgetConstructor](cfg);
246
+ }, 100);
247
+ });
248
+ }
249
+ },
250
+
251
+ inArray: function(arr, item) {
252
+ for(var i = 0; i < arr.length; i++) {
253
+ if(arr[i] === item) {
254
+ return true;
255
+ }
256
+ }
257
+
258
+ return false;
259
+ },
260
+
261
+ isNumber: function(value) {
262
+ return typeof value === 'number' && isFinite(value);
263
+ },
264
+
265
+ getScript: function(url, callback) {
266
+ $.ajax({
267
+ type: "GET",
268
+ url: url,
269
+ success: callback,
270
+ dataType: "script",
271
+ cache: true
272
+ });
273
+ },
274
+
275
+ focus : function(id, context) {
276
+ var selector = ':not(:submit):not(:button):input:visible:enabled';
277
+
278
+ setTimeout(function() {
279
+ if(id) {
280
+ var jq = $(PrimeFaces.escapeClientId(id));
281
+
282
+ if(jq.is(selector)) {
283
+ jq.focus();
284
+ }
285
+ else {
286
+ jq.find(selector).eq(0).focus();
287
+ }
288
+ }
289
+ else if(context) {
290
+ $(PrimeFaces.escapeClientId(context)).find(selector).eq(0).focus();
291
+ }
292
+ else {
293
+ $(selector).eq(0).focus();
294
+ }
295
+ }, 250);
296
+ },
297
+
298
+ monitorDownload: function(start, complete) {
299
+ if(this.cookiesEnabled()) {
300
+ if(start) {
301
+ start();
302
+ }
303
+
304
+ window.downloadMonitor = setInterval(function() {
305
+ var downloadComplete = PrimeFaces.getCookie('primefaces.download');
306
+
307
+ if(downloadComplete === 'true') {
308
+ if(complete) {
309
+ complete();
310
+ }
311
+ clearInterval(window.downloadMonitor);
312
+ PrimeFaces.setCookie('primefaces.download', null);
313
+ }
314
+ }, 250);
315
+ }
316
+ },
317
+
318
+ /**
319
+ * Scrolls to a component with given client id
320
+ */
321
+ scrollTo: function(id) {
322
+ var offset = $(PrimeFaces.escapeClientId(id)).offset();
323
+
324
+ $('html,body').animate({
325
+ scrollTop:offset.top
326
+ ,
327
+ scrollLeft:offset.left
328
+ },{
329
+ easing: 'easeInCirc'
330
+ },1000);
331
+
332
+ },
333
+
334
+ /**
335
+ * Aligns container scrollbar to keep item in container viewport, algorithm copied from jquery-ui menu widget
336
+ */
337
+ scrollInView: function(container, item) {
338
+ if(item.length == 0) {
339
+ return;
340
+ }
341
+
342
+ var borderTop = parseFloat(container.css('borderTopWidth')) || 0,
343
+ paddingTop = parseFloat(container.css('paddingTop')) || 0,
344
+ offset = item.offset().top - container.offset().top - borderTop - paddingTop,
345
+ scroll = container.scrollTop(),
346
+ elementHeight = container.height(),
347
+ itemHeight = item.outerHeight(true);
348
+
349
+ if(offset < 0) {
350
+ container.scrollTop(scroll + offset);
351
+ }
352
+ else if((offset + itemHeight) > elementHeight) {
353
+ container.scrollTop(scroll + offset - elementHeight + itemHeight);
354
+ }
355
+ },
356
+
357
+ calculateScrollbarWidth: function() {
358
+ if(!this.scrollbarWidth) {
359
+ if($.browser.msie) {
360
+ var $textarea1 = $('<textarea cols="10" rows="2"></textarea>')
361
+ .css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body'),
362
+ $textarea2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>')
363
+ .css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body');
364
+ this.scrollbarWidth = $textarea1.width() - $textarea2.width();
365
+ $textarea1.add($textarea2).remove();
366
+ }
367
+ else {
368
+ var $div = $('<div />')
369
+ .css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
370
+ .prependTo('body').append('<div />').find('div')
371
+ .css({ width: '100%', height: 200 });
372
+ this.scrollbarWidth = 100 - $div.width();
373
+ $div.parent().remove();
374
+ }
375
+ }
376
+
377
+ return this.scrollbarWidth;
378
+ },
379
+
380
+ openDialog: function(cfg) {
381
+ var dialogId = cfg.sourceComponentId + '_dlg',
382
+ dialogWidgetVar = cfg.sourceComponentId.replace(/:/g, '_') + '_dlgwidget',
383
+ dialogDOM = $('<div id="' + dialogId + '" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow ui-overlay-hidden"' +
384
+ ' data-pfdlgcid="' + cfg.pfdlgcid + '" data-widgetvar="' + dialogWidgetVar + '"/>')
385
+ .append('<div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"><span class="ui-dialog-title"></span>' +
386
+ '<a class="ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all" href="#" role="button"><span class="ui-icon ui-icon-closethick"></span></a></div>' +
387
+ '<div class="ui-dialog-content ui-widget-content" style="height: auto;">' +
388
+ '<iframe style="border:0 none"/>' +
389
+ '</div>')
390
+ .appendTo(document.body),
391
+ dialogFrame = dialogDOM.find('iframe'),
392
+ symbol = cfg.url.indexOf('?') === -1 ? '?' : '&',
393
+ frameURL = cfg.url + symbol + 'pfdlgcid=' + cfg.pfdlgcid,
394
+ frameWidth = cfg.options.contentWidth||640,
395
+ frameHeight = cfg.options.contentHeight||480;
396
+
397
+ dialogFrame.css({
398
+ width: frameWidth + 'px',
399
+ height: frameHeight + 'px'
400
+ });
401
+
402
+ dialogFrame.on('load', function() {
403
+ var $frame = $(this),
404
+ titleElement = $frame.contents().find('title');
405
+
406
+ if(!$frame.data('initialized')) {
407
+ PrimeFaces.cw('Dialog', dialogWidgetVar, {
408
+ id: dialogId,
409
+ position: 'center',
410
+ sourceComponentId: cfg.sourceComponentId,
411
+ sourceWidget: cfg.sourceWidget,
412
+ onHide: function() {
413
+ this.jq.remove();
414
+ window[dialogWidgetVar] = undefined;
415
+ },
416
+ modal: cfg.options.modal,
417
+ resizable: cfg.options.resizable,
418
+ draggable: cfg.options.draggable,
419
+ width: cfg.options.width,
420
+ height: cfg.options.height
421
+ });
422
+ }
423
+
424
+ if(titleElement.length > 0) {
425
+ PF(dialogWidgetVar).titlebar.children('span.ui-dialog-title').html(titleElement.text());
426
+ }
427
+
428
+ PF(dialogWidgetVar).show();
429
+
430
+ dialogFrame.data('initialized', true);
431
+ })
432
+ .attr('src', frameURL);
433
+ },
434
+
435
+ closeDialog: function(cfg) {
436
+ var dlg = $(parent.document.body).children('div.ui-dialog').filter(function() {
437
+ return $(this).data('pfdlgcid') === cfg.pfdlgcid;
438
+ }),
439
+ dlgWidget = parent.PF(dlg.data('widgetvar')),
440
+ sourceWidget = dlgWidget.cfg.sourceWidget;
441
+
442
+ dlgWidget.hide();
443
+ dlgWidget.jq.remove();
444
+
445
+ if(sourceWidget && sourceWidget.cfg.behaviors) {
446
+ var dialogReturnBehavior = sourceWidget.cfg.behaviors['dialogReturn'];
447
+
448
+ if(dialogReturnBehavior) {
449
+ var ext = {
450
+ params: [
451
+ {name: dlgWidget.cfg.sourceComponentId + '_pfdlgcid', value: cfg.pfdlgcid}
452
+ ]
453
+ };
454
+
455
+ dialogReturnBehavior.call(this, null, ext);
456
+ }
457
+ }
458
+ },
459
+
460
+ showMessageInDialog: function(msg) {
461
+ if(!this.messageDialog) {
462
+ var messageDialogDOM = $('<div id="primefacesmessagedlg" class="ui-message-dialog ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow ui-overlay-hidden"/>')
463
+ .append('<div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"><span class="ui-dialog-title"></span>' +
464
+ '<a class="ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all" href="#" role="button"><span class="ui-icon ui-icon-closethick"></span></a></div>' +
465
+ '<div class="ui-dialog-content ui-widget-content" style="height: auto;"></div>')
466
+ .appendTo(document.body);
467
+
468
+ PrimeFaces.cw('Dialog', 'primefacesmessagedialog', {
469
+ id: 'primefacesmessagedlg',
470
+ modal:true,
471
+ draggable: false,
472
+ resizable: false,
473
+ showEffect: 'fade',
474
+ hideEffect: 'fade'
475
+ });
476
+ this.messageDialog = PF('primefacesmessagedialog');
477
+ this.messageDialog.titleContainer = this.messageDialog.titlebar.children('span.ui-dialog-title');
478
+ }
479
+
480
+ this.messageDialog.titleContainer.text(msg.summary);
481
+ this.messageDialog.content.html('').append('<span class="ui-dialog-message ui-messages-' + msg.severity.split(' ')[0].toLowerCase() + '-icon" />').append(msg.detail);
482
+ this.messageDialog.show();
483
+ },
484
+
485
+ confirm: function(msg) {
486
+ if(PrimeFaces.confirmDialog) {
487
+ PrimeFaces.confirmSource = $(PrimeFaces.escapeClientId(msg.source));
488
+ PrimeFaces.confirmDialog.showMessage(msg);
489
+ }
490
+ else {
491
+ PrimeFaces.warn('No global confirmation dialog available.');
492
+ }
493
+ },
494
+
495
+ locales : {},
496
+
497
+ zindex : 1000,
498
+
499
+ PARTIAL_REQUEST_PARAM : "javax.faces.partial.ajax",
500
+
501
+ PARTIAL_UPDATE_PARAM : "javax.faces.partial.render",
502
+
503
+ PARTIAL_PROCESS_PARAM : "javax.faces.partial.execute",
504
+
505
+ PARTIAL_SOURCE_PARAM : "javax.faces.source",
506
+
507
+ BEHAVIOR_EVENT_PARAM : "javax.faces.behavior.event",
508
+
509
+ PARTIAL_EVENT_PARAM : "javax.faces.partial.event",
510
+
511
+ RESET_VALUES_PARAM : "primefaces.resetvalues",
512
+
513
+ IGNORE_AUTO_UPDATE_PARAM : "primefaces.ignoreautoupdate",
514
+
515
+ VIEW_STATE : "javax.faces.ViewState",
516
+
517
+ VIEW_ROOT : "javax.faces.ViewRoot",
518
+
519
+ CLIENT_ID_DATA : "primefaces.clientid"
520
+ };
521
+
522
+ PrimeFaces.Behavior = {
523
+
524
+ chain : function(source, event, ext, behaviorsArray) {
525
+
526
+ for (var i = 0; i < behaviorsArray.length; ++i) {
527
+ var behavior = behaviorsArray[i];
528
+ var success;
529
+
530
+ if (typeof behavior == 'function') {
531
+ success = behavior.call(source, event, ext);
532
+ } else {
533
+ if (!ext) {
534
+ ext = { };
535
+ }
536
+
537
+ //either a function or a string can be passed in case of a string we have to wrap it into another function
538
+ success = new Function("event", behavior).call(source, event, ext);
539
+ }
540
+
541
+ if (success === false) {
542
+ return false;
543
+ }
544
+ }
545
+
546
+ return true;
547
+ }
548
+ };
549
+
550
+ PrimeFaces.Expressions = {
551
+
552
+ resolveComponentsAsSelector: function(expressions) {
553
+
554
+ var splittedExpressions = PrimeFaces.Expressions.splitExpressions(expressions);
555
+ var elements = $();
556
+
557
+ if (splittedExpressions) {
558
+ for (var i = 0; i < splittedExpressions.length; ++i) {
559
+ var expression = $.trim(splittedExpressions[i]);
560
+ if (expression.length > 0) {
561
+
562
+ // skip unresolvable keywords
563
+ if (expression == '@none' || expression == '@all') {
564
+ continue;
565
+ }
566
+
567
+ // just a id
568
+ if (expression.indexOf("@") == -1) {
569
+ elements = elements.add(
570
+ $(document.getElementById(expression)));
571
+ }
572
+ // @widget
573
+ else if (expression.indexOf("@widgetVar(") == 0) {
574
+ var widgetVar = expression.substring(11, expression.length - 1);
575
+ var widget = PrimeFaces.widgets[widgetVar];
576
+
577
+ if (widget) {
578
+ elements = elements.add(
579
+ $(document.getElementById(widget.id)));
580
+ } else {
581
+ PrimeFaces.error("Widget for widgetVar \"" + widgetVar + "\" not avaiable");
582
+ }
583
+ }
584
+ // PFS
585
+ else if (expression.indexOf("@(") == 0) {
586
+ //converts pfs to jq selector e.g. @(div.mystyle :input) to div.mystyle :input
587
+ elements = elements.add(
588
+ $(expression.substring(2, expression.length - 1)));
589
+ }
590
+ }
591
+ }
592
+ }
593
+
594
+ return elements;
595
+ },
596
+
597
+ resolveComponents: function(expressions) {
598
+ var splittedExpressions = PrimeFaces.Expressions.splitExpressions(expressions);
599
+ var ids = [];
600
+
601
+ if (splittedExpressions) {
602
+ for (var i = 0; i < splittedExpressions.length; ++i) {
603
+ var expression = $.trim(splittedExpressions[i]);
604
+ if (expression.length > 0) {
605
+
606
+ // just a id or passtrough keywords
607
+ if (expression.indexOf("@") == -1 || expression == '@none' || expression == '@all') {
608
+ if (!PrimeFaces.inArray(ids, expression)) {
609
+ ids.push(expression);
610
+ }
611
+ }
612
+ // @widget
613
+ else if (expression.indexOf("@widgetVar(") == 0) {
614
+ var widgetVar = expression.substring(11, expression.length - 1);
615
+ var widget = PrimeFaces.widgets[widgetVar];
616
+
617
+ if (widget) {
618
+ if (!PrimeFaces.inArray(ids, widget.id)) {
619
+ ids.push(widget.id);
620
+ }
621
+ } else {
622
+ PrimeFaces.error("Widget for widgetVar \"" + widgetVar + "\" not avaiable");
623
+ }
624
+ }
625
+ // PFS
626
+ else if (expression.indexOf("@(") == 0) {
627
+ //converts pfs to jq selector e.g. @(div.mystyle :input) to div.mystyle :input
628
+ var elements = $(expression.substring(2, expression.length - 1));
629
+
630
+ for (var i = 0; i < elements.length; i++) {
631
+ var element = $(elements[i]);
632
+ var clientId = element.data(PrimeFaces.CLIENT_ID_DATA) || element.attr('id');
633
+
634
+ if (!PrimeFaces.inArray(ids, clientId)) {
635
+ ids.push(clientId);
636
+ }
637
+ }
638
+ }
639
+ }
640
+ }
641
+ }
642
+
643
+ return ids;
644
+ },
645
+
646
+ splitExpressions: function(value) {
647
+
648
+ var expressions = [];
649
+ var buffer = '';
650
+
651
+ var parenthesesCounter = 0;
652
+
653
+ for (var i = 0; i < value.length; i++) {
654
+ var c = value[i];
655
+
656
+ if (c == '(') {
657
+ parenthesesCounter++;
658
+ }
659
+
660
+ if (c == ')') {
661
+ parenthesesCounter--;
662
+ }
663
+
664
+ if ((c == ' ' || c == ',') && parenthesesCounter == 0) {
665
+ // lets add token inside buffer to our tokens
666
+ expressions.push(buffer);
667
+ // now we need to clear buffer
668
+ buffer = '';
669
+ } else {
670
+ buffer += c;
671
+ }
672
+ }
673
+
674
+ // lets not forget about part after the separator
675
+ expressions.push(buffer);
676
+
677
+ return expressions;
678
+ }
679
+ };
680
+
681
+ /**
682
+ * PrimeFaces Namespaces
683
+ */
684
+ PrimeFaces.ajax = {};
685
+ PrimeFaces.widget = {};
686
+ PrimeFaces.settings = {};
687
+ PrimeFaces.util = {};
688
+ PrimeFaces.widgets = {};
689
+
690
+ PF = function(widgetVar) {
691
+ return PrimeFaces.widgets[widgetVar];
692
+ };
693
+
694
+ PrimeFaces.ajax.AjaxUtils = {
695
+
696
+ encodeViewState : function() {
697
+ var viewstateValue = document.getElementById(PrimeFaces.VIEW_STATE).value;
698
+ var re = new RegExp("\\+", "g");
699
+ var encodedViewState = viewstateValue.replace(re, "\%2B");
700
+
701
+ return encodedViewState;
702
+ },
703
+
704
+ updateState: function(value) {
705
+ var viewstateValue = $.trim(value),
706
+ forms = this.portletForms ? $(this.portletForms) : $('form');
707
+
708
+ forms.each(function() {
709
+ var form = $(this),
710
+ formViewStateElement = form.children("input[name='javax.faces.ViewState']").get(0);
711
+
712
+ if(formViewStateElement) {
713
+ $(formViewStateElement).val(viewstateValue);
714
+ }
715
+ else
716
+ {
717
+ form.append('<input type="hidden" name="javax.faces.ViewState" value="' + viewstateValue + '" autocomplete="off" />');
718
+ }
719
+ });
720
+ },
721
+
722
+ updateElement: function(id, content) {
723
+ if(id.indexOf(PrimeFaces.VIEW_STATE) !== -1) {
724
+ PrimeFaces.ajax.AjaxUtils.updateState.call(this, content);
725
+ }
726
+ else if(id === PrimeFaces.VIEW_ROOT) {
727
+ $.ajaxSetup({'cache' : true});
728
+ $('head').html(content.substring(content.indexOf("<head>") + 6, content.lastIndexOf("</head>")));
729
+ $.ajaxSetup({'cache' : false});
730
+
731
+ var bodyStartTag = new RegExp("<body[^>]*>", "gi").exec(content)[0];
732
+ var bodyStartIndex = content.indexOf(bodyStartTag) + bodyStartTag.length;
733
+ $('body').html(content.substring(bodyStartIndex, content.lastIndexOf("</body>")));
734
+ }
735
+ else {
736
+ $(PrimeFaces.escapeClientId(id)).replaceWith(content);
737
+ }
738
+ },
739
+
740
+ /**
741
+ * Handles response handling tasks after updating the dom
742
+ **/
743
+ handleResponse: function(xmlDoc) {
744
+ var redirect = xmlDoc.find('redirect'),
745
+ callbackParams = xmlDoc.find('extension[ln="primefaces"][type="args"]'),
746
+ scripts = xmlDoc.find('eval');
747
+
748
+ if(redirect.length > 0) {
749
+ window.location = redirect.attr('url');
750
+ }
751
+ else {
752
+ //args
753
+ this.args = callbackParams.length > 0 ? $.parseJSON(callbackParams.text()) : {};
754
+
755
+ //scripts to execute
756
+ for(var i=0; i < scripts.length; i++) {
757
+ $.globalEval(scripts.eq(i).text());
758
+ }
759
+ }
760
+ },
761
+
762
+ /**
763
+ * Type: update/process
764
+ */
765
+ resolveComponentsForAjaxCall: function(cfg, type) {
766
+
767
+ var expressions = '';
768
+
769
+ if (cfg[type]) {
770
+ expressions += cfg[type];
771
+ }
772
+
773
+ if (cfg.ext && cfg.ext[type]) {
774
+ expressions += " " + cfg.ext[type];
775
+ }
776
+
777
+ return PrimeFaces.Expressions.resolveComponents(expressions);
778
+ },
779
+
780
+ send: function(cfg) {
781
+ PrimeFaces.debug('Initiating ajax request.');
782
+
783
+ var global = (cfg.global === true || cfg.global === undefined) ? true : false,
784
+ form = null,
785
+ sourceId = null;
786
+
787
+ if(cfg.onstart) {
788
+ var retVal = cfg.onstart.call(this, cfg);
789
+ if(retVal === false) {
790
+ PrimeFaces.debug('Ajax request cancelled by onstart callback.');
791
+
792
+ //remove from queue
793
+ if(!cfg.async) {
794
+ PrimeFaces.ajax.Queue.poll();
795
+ }
796
+
797
+ return false; //cancel request
798
+ }
799
+ }
800
+
801
+ if(global) {
802
+ $(document).trigger('pfAjaxStart');
803
+ }
804
+
805
+ //source can be a client id or an element defined by this keyword
806
+ if(typeof(cfg.source) == 'string') {
807
+ sourceId = cfg.source;
808
+ } else {
809
+ sourceId = $(cfg.source).attr('id');
810
+ }
811
+
812
+ if(cfg.formId) {
813
+ form = $(PrimeFaces.escapeClientId(cfg.formId)); //Explicit form is defined
814
+ }
815
+ else {
816
+ form = $(PrimeFaces.escapeClientId(sourceId)).parents('form:first'); //look for a parent of source
817
+
818
+ //source has no parent form so use first form in document
819
+ if(form.length == 0) {
820
+ form = $('form').eq(0);
821
+ }
822
+ }
823
+
824
+ PrimeFaces.debug('Form to post ' + form.attr('id') + '.');
825
+
826
+ var postURL = form.attr('action'),
827
+ encodedURLfield = form.children("input[name='javax.faces.encodedURL']"),
828
+ postParams = [];
829
+
830
+ //portlet support
831
+ var pFormsSelector = null;
832
+ if(encodedURLfield.length > 0) {
833
+ pFormsSelector = 'form[action="' + postURL + '"]';
834
+ postURL = encodedURLfield.val();
835
+ }
836
+
837
+ PrimeFaces.debug('URL to post ' + postURL + '.');
838
+
839
+ //partial ajax
840
+ postParams.push({
841
+ name:PrimeFaces.PARTIAL_REQUEST_PARAM,
842
+ value:true
843
+ });
844
+
845
+ //source
846
+ postParams.push({
847
+ name:PrimeFaces.PARTIAL_SOURCE_PARAM,
848
+ value:sourceId
849
+ });
850
+
851
+ //resetValues
852
+ if (cfg.resetValues) {
853
+ postParams.push({
854
+ name:PrimeFaces.RESET_VALUES_PARAM,
855
+ value:true
856
+ });
857
+ }
858
+
859
+ //ignoreAutoUpdate
860
+ if (cfg.ignoreAutoUpdate) {
861
+ postParams.push({
862
+ name:PrimeFaces.IGNORE_AUTO_UPDATE_PARAM,
863
+ value:true
864
+ });
865
+ }
866
+
867
+ //process
868
+ var processArray = PrimeFaces.ajax.AjaxUtils.resolveComponentsForAjaxCall(cfg, 'process');
869
+ if(cfg.fragmentId) {
870
+ processArray.push(cfg.fragmentId);
871
+ }
872
+ var processIds = processArray.length > 0 ? processArray.join(' ') : '@all';
873
+ if (processIds != '@none') {
874
+ postParams.push({
875
+ name:PrimeFaces.PARTIAL_PROCESS_PARAM,
876
+ value:processIds
877
+ });
878
+ }
879
+
880
+ //update
881
+ var updateArray = PrimeFaces.ajax.AjaxUtils.resolveComponentsForAjaxCall(cfg, 'update');
882
+ if(cfg.fragmentId && cfg.fragmentUpdate) {
883
+ updateArray.push(cfg.fragmentId);
884
+ }
885
+ if(updateArray.length > 0) {
886
+ postParams.push({
887
+ name:PrimeFaces.PARTIAL_UPDATE_PARAM,
888
+ value:updateArray.join(' ')
889
+ });
890
+ }
891
+
892
+ //behavior event
893
+ if(cfg.event) {
894
+ postParams.push({
895
+ name:PrimeFaces.BEHAVIOR_EVENT_PARAM,
896
+ value:cfg.event
897
+ });
898
+
899
+ var domEvent = cfg.event;
900
+
901
+ if(cfg.event == 'valueChange')
902
+ domEvent = 'change';
903
+ else if(cfg.event == 'action')
904
+ domEvent = 'click';
905
+
906
+ postParams.push({
907
+ name:PrimeFaces.PARTIAL_EVENT_PARAM,
908
+ value:domEvent
909
+ });
910
+ }
911
+ else {
912
+ postParams.push({
913
+ name:sourceId,
914
+ value:sourceId
915
+ });
916
+ }
917
+
918
+ //params
919
+ if(cfg.params) {
920
+ $.merge(postParams, cfg.params);
921
+ }
922
+ if(cfg.ext && cfg.ext.params) {
923
+ $.merge(postParams, cfg.ext.params);
924
+ }
925
+
926
+ /**
927
+ * Only add params of process components and their children
928
+ * if partial submit is enabled and there are components to process partially
929
+ */
930
+ if(cfg.partialSubmit && processIds.indexOf('@all') == -1) {
931
+ var hasViewstate = false;
932
+
933
+ if(processIds.indexOf('@none') == -1) {
934
+ for (var i = 0; i < processArray.length; i++) {
935
+ var jqProcess = $(PrimeFaces.escapeClientId(processArray[i]));
936
+ var componentPostParams = null;
937
+
938
+ if(jqProcess.is('form')) {
939
+ componentPostParams = jqProcess.serializeArray();
940
+ hasViewstate = true;
941
+ }
942
+ else if(jqProcess.is(':input')) {
943
+ componentPostParams = jqProcess.serializeArray();
944
+ }
945
+ else {
946
+ componentPostParams = jqProcess.find(':input').serializeArray();
947
+ }
948
+
949
+ $.merge(postParams, componentPostParams);
950
+ }
951
+ }
952
+
953
+ //add viewstate if necessary
954
+ if(!hasViewstate) {
955
+ postParams.push({
956
+ name:PrimeFaces.VIEW_STATE,
957
+ value:form.children("input[name='javax.faces.ViewState']").val()
958
+ });
959
+ }
960
+
961
+ }
962
+ else {
963
+ $.merge(postParams, form.serializeArray());
964
+ }
965
+
966
+ //serialize
967
+ var postData = $.param(postParams);
968
+
969
+ PrimeFaces.debug('Post Data:' + postData);
970
+
971
+ var xhrOptions = {
972
+ url : postURL,
973
+ type : "POST",
974
+ cache : false,
975
+ dataType : "xml",
976
+ data : postData,
977
+ portletForms: pFormsSelector,
978
+ source: cfg.source,
979
+ global: false,
980
+ beforeSend: function(xhr) {
981
+ xhr.setRequestHeader('Faces-Request', 'partial/ajax');
982
+
983
+ if(global) {
984
+ $(document).trigger('pfAjaxSend', [xhr, this]);
985
+ }
986
+ },
987
+ error: function(xhr, status, errorThrown) {
988
+ if(cfg.onerror) {
989
+ cfg.onerror.call(this, [xhr, status, errorThrown]);
990
+ }
991
+
992
+ if(global) {
993
+ $(document).trigger('pfAjaxError', xhr, this, errorThrown);
994
+ }
995
+
996
+ PrimeFaces.error('Request return with error:' + status + '.');
997
+ },
998
+ success: function(data, status, xhr) {
999
+ PrimeFaces.debug('Response received succesfully.');
1000
+
1001
+ var parsed;
1002
+
1003
+ //call user callback
1004
+ if(cfg.onsuccess) {
1005
+ parsed = cfg.onsuccess.call(this, data, status, xhr);
1006
+ }
1007
+
1008
+ //extension callback that might parse response
1009
+ if(cfg.ext && cfg.ext.onsuccess && !parsed) {
1010
+ parsed = cfg.ext.onsuccess.call(this, data, status, xhr);
1011
+ }
1012
+
1013
+ if(global) {
1014
+ $(document).trigger('pfAjaxSuccess', [xhr, this]);
1015
+ }
1016
+
1017
+ //do not execute default handler as response already has been parsed
1018
+ if(parsed) {
1019
+ return;
1020
+ }
1021
+ else {
1022
+ PrimeFaces.ajax.AjaxResponse.call(this, data, status, xhr);
1023
+ }
1024
+
1025
+ PrimeFaces.debug('DOM is updated.');
1026
+ },
1027
+ complete: function(xhr, status) {
1028
+ if(cfg.oncomplete) {
1029
+ cfg.oncomplete.call(this, xhr, status, this.args);
1030
+ }
1031
+
1032
+ if(cfg.ext && cfg.ext.oncomplete) {
1033
+ cfg.ext.oncomplete.call(this, xhr, status, this.args);
1034
+ }
1035
+
1036
+ if(global) {
1037
+ $(document).trigger('pfAjaxComplete', [xhr, this]);
1038
+ }
1039
+
1040
+ PrimeFaces.debug('Response completed.');
1041
+
1042
+ if(!cfg.async) {
1043
+ PrimeFaces.ajax.Queue.poll();
1044
+ }
1045
+ }
1046
+ };
1047
+
1048
+ $.ajax(xhrOptions);
1049
+ }
1050
+ };
1051
+
1052
+ PrimeFaces.ajax.AjaxRequest = function(cfg, ext) {
1053
+ cfg.ext = ext;
1054
+
1055
+ if(cfg.async) {
1056
+ return PrimeFaces.ajax.AjaxUtils.send(cfg);
1057
+ }
1058
+ else {
1059
+ return PrimeFaces.ajax.Queue.offer(cfg);
1060
+ }
1061
+ }
1062
+
1063
+ PrimeFaces.ajax.AjaxResponse = function(responseXML) {
1064
+ var xmlDoc = $(responseXML.documentElement),
1065
+ updates = xmlDoc.find('update');
1066
+
1067
+ for(var i=0; i < updates.length; i++) {
1068
+ var update = updates.eq(i),
1069
+ id = update.attr('id'),
1070
+ content = update.get(0).childNodes[0].nodeValue;
1071
+
1072
+ PrimeFaces.ajax.AjaxUtils.updateElement.call(this, id, content);
1073
+ }
1074
+
1075
+ PrimeFaces.ajax.AjaxUtils.handleResponse.call(this, xmlDoc);
1076
+ }
1077
+
1078
+ PrimeFaces.ajax.Queue = {
1079
+
1080
+ requests : new Array(),
1081
+
1082
+ offer : function(request) {
1083
+ this.requests.push(request);
1084
+
1085
+ if(this.requests.length == 1) {
1086
+ PrimeFaces.ajax.AjaxUtils.send(request);
1087
+ }
1088
+ },
1089
+
1090
+ poll : function() {
1091
+ if(this.isEmpty()) {
1092
+ return null;
1093
+ }
1094
+
1095
+ var processed = this.requests.shift(),
1096
+ next = this.peek();
1097
+
1098
+ if(next != null) {
1099
+ PrimeFaces.ajax.AjaxUtils.send(next);
1100
+ }
1101
+
1102
+ return processed;
1103
+ },
1104
+
1105
+ peek : function() {
1106
+ if(this.isEmpty()) {
1107
+ return null;
1108
+ }
1109
+
1110
+ return this.requests[0];
1111
+ },
1112
+
1113
+ isEmpty : function() {
1114
+ return this.requests.length == 0;
1115
+ }
1116
+ };
1117
+
1118
+ /* Simple JavaScript Inheritance
1119
+ * By John Resig http://ejohn.org/
1120
+ * MIT Licensed.
1121
+ */
1122
+ // Inspired by base2 and Prototype
1123
+ (function(){
1124
+ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
1125
+ // The base Class implementation (does nothing)
1126
+ this.Class = function(){};
1127
+
1128
+ // Create a new Class that inherits from this class
1129
+ Class.extend = function(prop) {
1130
+ var _super = this.prototype;
1131
+
1132
+ // Instantiate a base class (but only create the instance,
1133
+ // don't run the init constructor)
1134
+ initializing = true;
1135
+ var prototype = new this();
1136
+ initializing = false;
1137
+
1138
+ // Copy the properties over onto the new prototype
1139
+ for (var name in prop) {
1140
+ // Check if we're overwriting an existing function
1141
+ prototype[name] = typeof prop[name] == "function" &&
1142
+ typeof _super[name] == "function" && fnTest.test(prop[name]) ?
1143
+ (function(name, fn){
1144
+ return function() {
1145
+ var tmp = this._super;
1146
+
1147
+ // Add a new ._super() method that is the same method
1148
+ // but on the super-class
1149
+ this._super = _super[name];
1150
+
1151
+ // The method only need to be bound temporarily, so we
1152
+ // remove it when we're done executing
1153
+ var ret = fn.apply(this, arguments);
1154
+ this._super = tmp;
1155
+
1156
+ return ret;
1157
+ };
1158
+ })(name, prop[name]) :
1159
+ prop[name];
1160
+ }
1161
+
1162
+ // The dummy class constructor
1163
+ function Class() {
1164
+ // All construction is actually done in the init method
1165
+ if ( !initializing && this.init )
1166
+ this.init.apply(this, arguments);
1167
+ }
1168
+
1169
+ // Populate our constructed prototype object
1170
+ Class.prototype = prototype;
1171
+
1172
+ // Enforce the constructor to be what we expect
1173
+ Class.prototype.constructor = Class;
1174
+
1175
+ // And make this class extendable
1176
+ Class.extend = arguments.callee;
1177
+
1178
+ return Class;
1179
+ };
1180
+ })();
1181
+
1182
+ /**
1183
+ * BaseWidget for PrimeFaces Widgets
1184
+ */
1185
+ PrimeFaces.widget.BaseWidget = Class.extend({
1186
+
1187
+ init: function(cfg) {
1188
+ this.cfg = cfg;
1189
+ this.id = cfg.id;
1190
+ this.jqId = PrimeFaces.escapeClientId(this.id);
1191
+ this.jq = $(this.jqId);
1192
+
1193
+ //remove script tag
1194
+ $(this.jqId + '_s').remove();
1195
+ },
1196
+
1197
+ //used in ajax updates, reloads the widget configuration
1198
+ refresh: function(cfg) {
1199
+ return this.init(cfg);
1200
+ },
1201
+
1202
+ //returns jquery object representing the main dom element related to the widget
1203
+ getJQ: function(){
1204
+ return this.jq;
1205
+ }
1206
+
1207
+ });
1208
+
1209
+ /**
1210
+ * Widgets that require to be visible to initialize properly for hidden container support
1211
+ */
1212
+ PrimeFaces.widget.DeferredWidget = PrimeFaces.widget.BaseWidget.extend({
1213
+
1214
+ renderDeferred: function() {
1215
+ if(this.jq.is(':visible')) {
1216
+ this._render();
1217
+ }
1218
+ else {
1219
+ var hiddenParent = this.jq.closest('.ui-hidden-container'),
1220
+ hiddenParentWidgetVar = hiddenParent.data('widget'),
1221
+ $this = this;
1222
+
1223
+ if(hiddenParentWidgetVar) {
1224
+ var hiddenParentWidget = PF(hiddenParentWidgetVar);
1225
+
1226
+ if(hiddenParentWidget) {
1227
+ hiddenParentWidget.addOnshowHandler(function() {
1228
+ return $this.render();
1229
+ });
1230
+ }
1231
+ }
1232
+ }
1233
+ },
1234
+
1235
+ render: function() {
1236
+ if(this.jq.is(':visible')) {
1237
+ this._render();
1238
+ return true;
1239
+ }
1240
+ else {
1241
+ return false;
1242
+ }
1243
+ },
1244
+
1245
+ _render: function() {
1246
+ throw 'Unsupported Operation';
1247
+ }
1248
+ });
1249
+
1250
+ //expose globally
1251
+ window.PrimeFaces = PrimeFaces;
1252
+
1253
+ })(window);