alchemy 1.0.2 → 8.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +24 -17
  3. data/README.md +538 -4
  4. data/lib/alchemy.rb +3 -6
  5. metadata +61 -266
  6. data/Rakefile +0 -21
  7. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.eot +0 -0
  8. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.svg +0 -154
  9. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.ttf +0 -0
  10. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.woff +0 -0
  11. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.eot +0 -0
  12. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.svg +0 -154
  13. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.ttf +0 -0
  14. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.woff +0 -0
  15. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.eot +0 -0
  16. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.svg +0 -154
  17. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.ttf +0 -0
  18. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.woff +0 -0
  19. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.eot +0 -0
  20. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.svg +0 -154
  21. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.ttf +0 -0
  22. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.woff +0 -0
  23. data/app/assets/fonts/alchemy/Red Hat Liberation License.txt +0 -78
  24. data/app/assets/fonts/alchemy/overpass_bold-web.eot +0 -0
  25. data/app/assets/fonts/alchemy/overpass_bold-web.svg +0 -470
  26. data/app/assets/fonts/alchemy/overpass_bold-web.ttf +0 -0
  27. data/app/assets/fonts/alchemy/overpass_bold-web.woff +0 -0
  28. data/app/assets/fonts/alchemy/overpass_regular-web.eot +0 -0
  29. data/app/assets/fonts/alchemy/overpass_regular-web.svg +0 -470
  30. data/app/assets/fonts/alchemy/overpass_regular-web.ttf +0 -0
  31. data/app/assets/fonts/alchemy/overpass_regular-web.woff +0 -0
  32. data/app/assets/images/alchemy/icons/action-icons.png +0 -0
  33. data/app/assets/images/alchemy/icons/arrow_icon.png +0 -0
  34. data/app/assets/images/alchemy/icons/chosen-sprite.png +0 -0
  35. data/app/assets/images/alchemy/icons/error_icon.png +0 -0
  36. data/app/assets/images/alchemy/icons/objects.png +0 -0
  37. data/app/assets/images/alchemy/icons/spinner.gif +0 -0
  38. data/app/assets/images/alchemy/icons/spinner_head.gif +0 -0
  39. data/app/assets/images/alchemy/icons/success_icon.png +0 -0
  40. data/app/assets/images/alchemy/icons/warning_icon.png +0 -0
  41. data/app/assets/javascripts/alchemy/flash_messages.js +0 -12
  42. data/app/assets/javascripts/alchemy/forms.js +0 -25
  43. data/app/assets/javascripts/alchemy/i18n.js +0 -36
  44. data/app/assets/javascripts/alchemy/login.js +0 -130
  45. data/app/assets/javascripts/alchemy/password.js +0 -99
  46. data/app/assets/stylesheets/alchemy/components/_chosen.scss +0 -423
  47. data/app/assets/stylesheets/alchemy/components/_content.scss +0 -58
  48. data/app/assets/stylesheets/alchemy/components/_helpers.scss +0 -38
  49. data/app/assets/stylesheets/alchemy/components/_media.scss +0 -49
  50. data/app/assets/stylesheets/alchemy/components/_media_object.scss +0 -22
  51. data/app/assets/stylesheets/alchemy/components/_normalize.scss +0 -448
  52. data/app/assets/stylesheets/alchemy/components/_shared.scss +0 -18
  53. data/app/assets/stylesheets/alchemy/components/buttons/_buttons.scss +0 -241
  54. data/app/assets/stylesheets/alchemy/components/buttons/_buttons_vars.scss +0 -10
  55. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages.scss +0 -93
  56. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages_vars.scss +0 -3
  57. data/app/assets/stylesheets/alchemy/components/fonts/_liberation.scss +0 -44
  58. data/app/assets/stylesheets/alchemy/components/fonts/_overpass.scss +0 -24
  59. data/app/assets/stylesheets/alchemy/components/footer/_footer.scss +0 -53
  60. data/app/assets/stylesheets/alchemy/components/footer/_footer_vars.scss +0 -4
  61. data/app/assets/stylesheets/alchemy/components/forms/_forms.scss +0 -536
  62. data/app/assets/stylesheets/alchemy/components/forms/_forms_ie.scss +0 -45
  63. data/app/assets/stylesheets/alchemy/components/forms/_forms_mixins.scss +0 -18
  64. data/app/assets/stylesheets/alchemy/components/forms/_forms_responsive.scss +0 -161
  65. data/app/assets/stylesheets/alchemy/components/forms/_forms_vars.scss +0 -25
  66. data/app/assets/stylesheets/alchemy/components/header/_header.scss +0 -214
  67. data/app/assets/stylesheets/alchemy/components/header/_header_vars.scss +0 -11
  68. data/app/assets/stylesheets/alchemy/components/login/_login.scss +0 -169
  69. data/app/assets/stylesheets/alchemy/components/login/_login_mixins.scss +0 -7
  70. data/app/assets/stylesheets/alchemy/components/login/_login_vars.scss +0 -19
  71. data/app/assets/stylesheets/alchemy/components/sprites/_sprites.scss +0 -110
  72. data/app/assets/stylesheets/alchemy/components/sprites/_sprites_mixins.scss +0 -9
  73. data/app/assets/stylesheets/alchemy/components/text/_text.scss +0 -30
  74. data/app/assets/stylesheets/alchemy/components/text/_text_vars.scss +0 -1
  75. data/app/assets/stylesheets/alchemy/composites/content_elements.scss +0 -6
  76. data/app/assets/stylesheets/alchemy/composites/login.scss +0 -9
  77. data/app/assets/stylesheets/alchemy/composites/shell.scss +0 -4
  78. data/app/assets/stylesheets/alchemy/partials/_base.scss +0 -8
  79. data/app/assets/stylesheets/alchemy/partials/_colors.scss +0 -99
  80. data/app/assets/stylesheets/alchemy/partials/_mixins.scss +0 -24
  81. data/app/assets/stylesheets/alchemy/partials/_vars.scss +0 -31
  82. data/app/helpers/alchemy/gettext_translations.rb +0 -28
  83. data/app/helpers/alchemy/layout_helper.rb +0 -19
  84. data/app/helpers/alchemy/rails_translations.rb +0 -21
  85. data/app/helpers/alchemy/translation_helper.rb +0 -19
  86. data/app/views/alchemy/layouts/_change_password_layout.html.haml +0 -20
  87. data/app/views/alchemy/layouts/_common_i18n.haml +0 -4
  88. data/app/views/alchemy/layouts/_header_layout.haml +0 -13
  89. data/app/views/alchemy/layouts/_login_layout.html.haml +0 -58
  90. data/app/views/alchemy/layouts/_user_session_layout.haml +0 -17
  91. data/app/views/alchemy/layouts/base.html.haml +0 -20
  92. data/app/views/alchemy/layouts/shell_layout.haml +0 -10
  93. data/lib/alchemy/version.rb +0 -3
  94. data/test/alchemy_test.rb +0 -7
  95. data/test/test_helper.rb +0 -9
  96. data/vendor/assets/javascripts/alchemy/html5shiv.js +0 -298
  97. data/vendor/assets/javascripts/alchemy/jquery/jquery-1.6.2.js +0 -8981
  98. data/vendor/assets/javascripts/alchemy/jquery/plugins/chosen.jquery.js +0 -1003
  99. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/API.txt +0 -1201
  100. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/FAQ.txt +0 -76
  101. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/LICENSE.txt +0 -22
  102. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/Makefile +0 -9
  103. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/NEWS.txt +0 -508
  104. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/PLUGINS.txt +0 -137
  105. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/README.txt +0 -90
  106. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/ajax.html +0 -143
  107. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/annotating.html +0 -75
  108. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-down.gif +0 -0
  109. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-left.gif +0 -0
  110. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-right.gif +0 -0
  111. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-up.gif +0 -0
  112. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/basic.html +0 -38
  113. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-1.json +0 -4
  114. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-2.json +0 -4
  115. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-3.json +0 -4
  116. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-4.json +0 -4
  117. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-5.json +0 -4
  118. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth.json +0 -4
  119. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-japan-gdp-growth.json +0 -4
  120. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-usa-gdp-growth.json +0 -4
  121. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/graph-types.html +0 -75
  122. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/hs-2004-27-a-large_web.jpg +0 -0
  123. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/image.html +0 -45
  124. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/index.html +0 -44
  125. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting-axes.html +0 -97
  126. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting.html +0 -93
  127. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/layout.css +0 -6
  128. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/multiple-axes.html +0 -60
  129. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/navigate.html +0 -118
  130. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/percentiles.html +0 -57
  131. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/pie.html +0 -756
  132. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/realtime.html +0 -83
  133. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/resize.html +0 -61
  134. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/selection.html +0 -114
  135. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/setting-options.html +0 -61
  136. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/stacking.html +0 -77
  137. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/symbols.html +0 -49
  138. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/thresholding.html +0 -54
  139. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/time.html +0 -71
  140. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/tracking.html +0 -95
  141. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/turning-series.html +0 -98
  142. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/visitors.html +0 -90
  143. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/zooming.html +0 -98
  144. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.js +0 -1427
  145. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.min.js +0 -1
  146. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.js +0 -179
  147. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.min.js +0 -1
  148. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.js +0 -167
  149. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.min.js +0 -1
  150. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.js +0 -183
  151. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.min.js +0 -1
  152. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.js +0 -238
  153. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.min.js +0 -1
  154. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.js +0 -2599
  155. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.min.js +0 -6
  156. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.js +0 -336
  157. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.min.js +0 -1
  158. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.js +0 -750
  159. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.min.js +0 -1
  160. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.js +0 -60
  161. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.min.js +0 -1
  162. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.js +0 -344
  163. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.min.js +0 -1
  164. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.js +0 -184
  165. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.min.js +0 -1
  166. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.js +0 -70
  167. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.min.js +0 -1
  168. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.js +0 -103
  169. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js +0 -1
  170. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/blank.svg +0 -3
  171. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/custom_test.js +0 -67
  172. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.css +0 -9
  173. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.js +0 -1101
  174. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.min.js +0 -7
  175. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.pack.js +0 -7
  176. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.js +0 -396
  177. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.min.js +0 -7
  178. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.pack.js +0 -7
  179. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.js +0 -1337
  180. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.min.js +0 -7
  181. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.pack.js +0 -7
  182. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/lion.svg +0 -161
  183. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/test.js +0 -714
  184. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ajaxfileupload.js +0 -205
  185. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-bbq.js +0 -1137
  186. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-resize.js +0 -246
  187. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.cookie.js +0 -92
  188. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.easing.1.3.js +0 -205
  189. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.fancyqueries.js +0 -106
  190. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.flash.js +0 -288
  191. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.form.js +0 -964
  192. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.hoverIntent.js +0 -106
  193. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.ajaxupload.js +0 -62
  194. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.js +0 -556
  195. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jnotify.js +0 -210
  196. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.js +0 -1390
  197. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.min.js +0 -11
  198. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.linkHover.js +0 -89
  199. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.loadmask.min.js +0 -10
  200. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.mousewheel.js +0 -78
  201. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.filter.js +0 -176
  202. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.js +0 -668
  203. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.pack.js +0 -11
  204. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.periodicalupdater.js +0 -175
  205. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sortElements.js +0 -75
  206. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sparkline.min.js +0 -94
  207. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.text-overflow.js +0 -60
  208. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timepickr.js +0 -214
  209. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timers.js +0 -142
  210. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.tipsy.js +0 -358
  211. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.treeTable.js +0 -226
  212. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.trunk8.js +0 -203
  213. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.multiselect.js +0 -338
  214. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.totop.js +0 -58
  215. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.uitablefilter.js +0 -95
  216. data/vendor/assets/javascripts/alchemy/jquery/plugins/ui.spinner.js +0 -683
  217. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  218. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  219. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
  220. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
  221. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
  222. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
  223. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
  224. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  225. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_8f8f8f_256x240.png +0 -0
  226. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_97baed_256x240.png +0 -0
  227. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  228. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/jquery-ui-1.8.11.custom.css +0 -573
  229. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-1.5.1.min.js +0 -16
  230. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-ui-1.8.11.custom.min.js +0 -783
  231. data/vendor/assets/javascripts/alchemy/rails.js +0 -331
  232. data/vendor/assets/javascripts/alchemy/underscore-1.3.1.js +0 -999
@@ -1,556 +0,0 @@
1
- /*
2
- * Jeditable - jQuery in place edit plugin
3
- *
4
- * Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul
5
- *
6
- * Licensed under the MIT license:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- *
9
- * Project home:
10
- * http://www.appelsiini.net/projects/jeditable
11
- *
12
- * Based on editable by Dylan Verheul <dylan_at_dyve.net>:
13
- * http://www.dyve.net/jquery/?editable
14
- *
15
- */
16
-
17
- /**
18
- * Version 1.7.1
19
- *
20
- * ** means there is basic unit tests for this parameter.
21
- *
22
- * @name Jeditable
23
- * @type jQuery
24
- * @param String target (POST) URL or function to send edited content to **
25
- * @param Hash options additional options
26
- * @param String options[method] method to use to send edited content (POST or PUT) **
27
- * @param Function options[callback] Function to run after submitting edited content **
28
- * @param String options[name] POST parameter name of edited content
29
- * @param String options[id] POST parameter name of edited div id
30
- * @param Hash options[submitdata] Extra parameters to send when submitting edited content.
31
- * @param String options[type] text, textarea or select (or any 3rd party input type) **
32
- * @param Integer options[rows] number of rows if using textarea **
33
- * @param Integer options[cols] number of columns if using textarea **
34
- * @param Mixed options[height] 'auto', 'none' or height in pixels **
35
- * @param Mixed options[width] 'auto', 'none' or width in pixels **
36
- * @param String options[loadurl] URL to fetch input content before editing **
37
- * @param String options[loadtype] Request type for load url. Should be GET or POST.
38
- * @param String options[loadtext] Text to display while loading external content.
39
- * @param Mixed options[loaddata] Extra parameters to pass when fetching content before editing.
40
- * @param Mixed options[data] Or content given as paramameter. String or function.**
41
- * @param String options[indicator] indicator html to show when saving
42
- * @param String options[tooltip] optional tooltip text via title attribute **
43
- * @param String options[event] jQuery event such as 'click' of 'dblclick' **
44
- * @param String options[submit] submit button value, empty means no button **
45
- * @param String options[cancel] cancel button value, empty means no button **
46
- * @param String options[cssclass] CSS class to apply to input form. 'inherit' to copy from parent. **
47
- * @param String options[style] Style to apply to input form 'inherit' to copy from parent. **
48
- * @param String options[select] true or false, when true text is highlighted ??
49
- * @param String options[placeholder] Placeholder text or html to insert when element is empty. **
50
- * @param String options[onblur] 'cancel', 'submit', 'ignore' or function ??
51
- *
52
- * @param Function options[onsubmit] function(settings, original) { ... } called before submit
53
- * @param Function options[onreset] function(settings, original) { ... } called before reset
54
- * @param Function options[onsuccess] function(result, status, xhr) { ... } called on success
55
- * @param Function options[onerror] function(settings, original, xhr) { ... } called on error
56
- *
57
- * @param Hash options[ajaxoptions] jQuery Ajax options. See docs.jquery.com.
58
- *
59
- */
60
-
61
- (function($) {
62
-
63
- $.fn.editable = function(target, options) {
64
-
65
- if ('disable' == target) {
66
- $(this).data('disabled.editable', true);
67
- return;
68
- }
69
- if ('enable' == target) {
70
- $(this).data('disabled.editable', false);
71
- return;
72
- }
73
- if ('destroy' == target) {
74
- $(this)
75
- .unbind($(this).data('event.editable'))
76
- .removeData('disabled.editable')
77
- .removeData('event.editable');
78
- return;
79
- }
80
-
81
- var settings = $.extend({}, $.fn.editable.defaults, {target:target}, options);
82
-
83
- /* setup some functions */
84
- var plugin = $.editable.types[settings.type].plugin || function() { };
85
- var submit = $.editable.types[settings.type].submit || function() { };
86
- var buttons = $.editable.types[settings.type].buttons
87
- || $.editable.types['defaults'].buttons;
88
- var content = $.editable.types[settings.type].content
89
- || $.editable.types['defaults'].content;
90
- var element = $.editable.types[settings.type].element
91
- || $.editable.types['defaults'].element;
92
- var reset = $.editable.types[settings.type].reset
93
- || $.editable.types['defaults'].reset;
94
- var callback = settings.callback || function() { };
95
- var onedit = settings.onedit || function() { };
96
- var onsubmit = settings.onsubmit || function() { };
97
- var onreset = settings.onreset || function() { };
98
- var onsuccess = settings.onsuccess || function() { };
99
- var onerror = settings.onerror || reset;
100
- var oneditcomplete = settings.oneditcomplete || function() { };
101
- var onresetcomplete = settings.onresetcomplete || function() { };
102
-
103
- /* show tooltip */
104
- if (settings.tooltip) {
105
- $(this).attr('title', settings.tooltip);
106
- }
107
-
108
- settings.autowidth = 'auto' == settings.width;
109
- settings.autoheight = 'auto' == settings.height;
110
-
111
- return this.each(function() {
112
-
113
- /* save this to self because this changes when scope changes */
114
- var self = this;
115
-
116
- /* inlined block elements lose their width and height after first edit */
117
- /* save them for later use as workaround */
118
- var savedwidth = $(self).width();
119
- var savedheight = $(self).height();
120
-
121
- /* save so it can be later used by $.editable('destroy') */
122
- $(this).data('event.editable', settings.event);
123
-
124
- /* if element is empty add something clickable (if requested) */
125
- if (!$.trim($(this).html())) {
126
- $(this).html(settings.placeholder);
127
- }
128
-
129
- $(this).bind(settings.event, function(e) {
130
-
131
- /* abort if disabled for this element */
132
- if (true === $(this).data('disabled.editable')) {
133
- return;
134
- }
135
-
136
- /* prevent throwing an exeption if edit field is clicked again */
137
- if (self.editing) {
138
- return;
139
- }
140
-
141
- /* abort if onedit hook returns false */
142
- if (false === onedit.apply(this, [settings, self])) {
143
- return;
144
- }
145
-
146
- /* prevent default action and bubbling */
147
- e.preventDefault();
148
- e.stopPropagation();
149
-
150
- /* remove tooltip */
151
- if (settings.tooltip) {
152
- $(self).removeAttr('title');
153
- }
154
-
155
- /* figure out how wide and tall we are, saved width and height */
156
- /* are workaround for http://dev.jquery.com/ticket/2190 */
157
- if (0 == $(self).width()) {
158
- //$(self).css('visibility', 'hidden');
159
- settings.width = savedwidth;
160
- settings.height = savedheight;
161
- } else {
162
- if (settings.width != 'none') {
163
- settings.width =
164
- settings.autowidth ? $(self).width() : settings.width;
165
- }
166
- if (settings.height != 'none') {
167
- settings.height =
168
- settings.autoheight ? $(self).height() : settings.height;
169
- }
170
- }
171
- //$(this).css('visibility', '');
172
-
173
- /* remove placeholder text, replace is here because of IE */
174
- if ($(this).html().toLowerCase().replace(/(;|")/g, '') ==
175
- settings.placeholder.toLowerCase().replace(/(;|")/g, '')) {
176
- $(this).html('');
177
- }
178
-
179
- self.editing = true;
180
- self.revert = $(self).html();
181
- $(self).html('');
182
-
183
- /* create the form object */
184
- var form = $('<form />');
185
-
186
- /* apply css or style or both */
187
- if (settings.cssclass) {
188
- if ('inherit' == settings.cssclass) {
189
- form.attr('class', $(self).attr('class'));
190
- } else {
191
- form.attr('class', settings.cssclass);
192
- }
193
- }
194
-
195
- if (settings.style) {
196
- if ('inherit' == settings.style) {
197
- form.attr('style', $(self).attr('style'));
198
- /* IE needs the second line or display wont be inherited */
199
- form.css('display', $(self).css('display'));
200
- } else {
201
- form.attr('style', settings.style);
202
- }
203
- }
204
-
205
- /* add main input element to form and store it in input */
206
- var input = element.apply(form, [settings, self]);
207
-
208
- /* set input content via POST, GET, given data or existing value */
209
- var input_content;
210
-
211
- if (settings.loadurl) {
212
- var t = setTimeout(function() {
213
- input.disabled = true;
214
- content.apply(form, [settings.loadtext, settings, self]);
215
- }, 100);
216
-
217
- var loaddata = {};
218
- loaddata[settings.id] = self.id;
219
- if ($.isFunction(settings.loaddata)) {
220
- $.extend(loaddata, settings.loaddata.apply(self, [self.revert, settings]));
221
- } else {
222
- $.extend(loaddata, settings.loaddata);
223
- }
224
- $.ajax({
225
- type : settings.loadtype,
226
- url : settings.loadurl,
227
- data : loaddata,
228
- async : false,
229
- success: function(result) {
230
- window.clearTimeout(t);
231
- input_content = result;
232
- input.disabled = false;
233
- }
234
- });
235
- } else if (settings.data) {
236
- input_content = settings.data;
237
- if ($.isFunction(settings.data)) {
238
- input_content = settings.data.apply(self, [self.revert, settings]);
239
- }
240
- } else {
241
- input_content = self.revert;
242
- }
243
- content.apply(form, [input_content, settings, self]);
244
-
245
- input.attr('name', settings.name);
246
-
247
- /* add buttons to the form */
248
- buttons.apply(form, [settings, self]);
249
-
250
- /* add created form to self */
251
- $(self).append(form);
252
-
253
- /* attach 3rd party plugin if requested */
254
- plugin.apply(form, [settings, self]);
255
-
256
- /* focus to first visible form element */
257
- $(':input:visible:enabled:first', form).focus();
258
-
259
- /* highlight input contents when requested */
260
- if (settings.select) {
261
- input.select();
262
- }
263
-
264
- /* discard changes if pressing esc */
265
- input.keydown(function(e) {
266
- if (e.keyCode == 27) {
267
- e.preventDefault();
268
- //self.reset();
269
- reset.apply(form, [settings, self]);
270
- }
271
- });
272
-
273
- /* discard, submit or nothing with changes when clicking outside */
274
- /* do nothing is usable when navigating with tab */
275
- var t;
276
- if ('cancel' == settings.onblur) {
277
- input.blur(function(e) {
278
- /* prevent canceling if submit was clicked */
279
- t = setTimeout(function() {
280
- reset.apply(form, [settings, self]);
281
- }, 500);
282
- });
283
- } else if ('submit' == settings.onblur) {
284
- input.blur(function(e) {
285
- /* prevent double submit if submit was clicked */
286
- t = setTimeout(function() {
287
- form.submit();
288
- }, 200);
289
- });
290
- } else if ($.isFunction(settings.onblur)) {
291
- input.blur(function(e) {
292
- settings.onblur.apply(self, [input.val(), settings]);
293
- });
294
- } else {
295
- input.blur(function(e) {
296
- /* TODO: maybe something here */
297
- });
298
- }
299
-
300
- form.submit(function(e) {
301
-
302
- if (t) {
303
- clearTimeout(t);
304
- }
305
-
306
- /* do no submit */
307
- e.preventDefault();
308
-
309
- /* call before submit hook. */
310
- /* if it returns false abort submitting */
311
- if (false !== onsubmit.apply(form, [settings, self])) {
312
- /* custom inputs call before submit hook. */
313
- /* if it returns false abort submitting */
314
- if (false !== submit.apply(form, [settings, self])) {
315
-
316
- /* check if given target is function */
317
- if ($.isFunction(settings.target)) {
318
- var str = settings.target.apply(self, [input.val(), settings]);
319
- $(self).html(str);
320
- self.editing = false;
321
- callback.apply(self, [self.innerHTML, settings]);
322
- /* TODO: this is not dry */
323
- if (!$.trim($(self).html())) {
324
- $(self).html(settings.placeholder);
325
- }
326
- } else {
327
- /* add edited content and id of edited element to POST */
328
- var submitdata = {};
329
- submitdata[settings.name] = input.val();
330
- submitdata[settings.id] = self.id;
331
- /* add extra data to be POST:ed */
332
- if ($.isFunction(settings.submitdata)) {
333
- $.extend(submitdata, settings.submitdata.apply(self, [self.revert, settings]));
334
- } else {
335
- $.extend(submitdata, settings.submitdata);
336
- }
337
-
338
- /* quick and dirty PUT support */
339
- if ('PUT' == settings.method) {
340
- submitdata['_method'] = 'put';
341
- }
342
-
343
- /* show the saving indicator */
344
- $(self).html(settings.indicator);
345
-
346
- /* defaults for ajaxoptions */
347
- var ajaxoptions = {
348
- type : 'POST',
349
- data : submitdata,
350
- dataType: 'html',
351
- url : settings.target,
352
- success : function(result, status, jqXHR) {
353
- if (ajaxoptions.dataType == 'html') {
354
- $(self).html(result);
355
- }
356
- self.editing = false;
357
- callback.apply(self, [result, settings]);
358
- onsuccess.apply(self, [result, status, jqXHR]);
359
- if (!$.trim($(self).html())) {
360
- $(self).html(settings.placeholder);
361
- }
362
- },
363
- error : function(xhr, status, error) {
364
- onerror.apply(form, [settings, self, xhr]);
365
- }
366
- };
367
-
368
- /* override with what is given in settings.ajaxoptions */
369
- $.extend(ajaxoptions, settings.ajaxoptions);
370
- $.ajax(ajaxoptions);
371
-
372
- }
373
- }
374
- }
375
-
376
- /* show tooltip again */
377
- $(self).attr('title', settings.tooltip);
378
-
379
- return false;
380
- });
381
-
382
- if(oneditcomplete){
383
- oneditcomplete.apply(form, [settings, self])
384
- }
385
- });
386
-
387
- /* privileged methods */
388
- this.reset = function(form) {
389
- /* prevent calling reset twice when blurring */
390
- if (this.editing) {
391
- /* before reset hook, if it returns false abort reseting */
392
- if (false !== onreset.apply(form, [settings, self])) {
393
- $(self).html(self.revert);
394
- self.editing = false;
395
- if (!$.trim($(self).html())) {
396
- $(self).html(settings.placeholder);
397
- }
398
- /* show tooltip again */
399
- if (settings.tooltip) {
400
- $(self).attr('title', settings.tooltip);
401
- }
402
- if(onresetcomplete){
403
- onresetcomplete.apply(form, [settings, self])
404
- }
405
- }
406
- }
407
- };
408
- });
409
-
410
- };
411
-
412
-
413
- $.editable = {
414
- types: {
415
- defaults: {
416
- element : function(settings, original) {
417
- var input = $('<input type="hidden"></input>');
418
- $(this).append(input);
419
- return(input);
420
- },
421
- content : function(string, settings, original) {
422
- $(':input:first', this).val(string);
423
- },
424
- reset : function(settings, original) {
425
- original.reset(this);
426
- },
427
- buttons : function(settings, original) {
428
- var form = this;
429
- if (settings.submit) {
430
- /* if given html string use that */
431
- if (settings.submit.match(/>$/)) {
432
- var submit = $(settings.submit).click(function() {
433
- if (submit.attr("type") != "submit") {
434
- form.submit();
435
- }
436
- });
437
- /* otherwise use button with given string as text */
438
- } else {
439
- var submit = $('<button type="submit" />');
440
- submit.html(settings.submit);
441
- }
442
- $(this).append(submit);
443
- }
444
- if (settings.cancel) {
445
- /* if given html string use that */
446
- if (settings.cancel.match(/>$/)) {
447
- var cancel = $(settings.cancel);
448
- /* otherwise use button with given string as text */
449
- } else {
450
- var cancel = $('<button type="cancel" />');
451
- cancel.html(settings.cancel);
452
- }
453
- $(this).append(cancel);
454
-
455
- $(cancel).click(function(event) {
456
- //original.reset();
457
- if ($.isFunction($.editable.types[settings.type].reset)) {
458
- var reset = $.editable.types[settings.type].reset;
459
- } else {
460
- var reset = $.editable.types['defaults'].reset;
461
- }
462
- reset.apply(form, [settings, original]);
463
- return false;
464
- });
465
- }
466
- }
467
- },
468
- text: {
469
- element : function(settings, original) {
470
- var input = $('<input />');
471
- if (settings.width != 'none') { input.width(settings.width); }
472
- if (settings.height != 'none') { input.height(settings.height); }
473
- /* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */
474
- //input[0].setAttribute('autocomplete','off');
475
- input.attr('autocomplete','off');
476
- $(this).append(input);
477
- return(input);
478
- }
479
- },
480
- textarea: {
481
- element : function(settings, original) {
482
- var textarea = $('<textarea />');
483
- if (settings.rows) {
484
- textarea.attr('rows', settings.rows);
485
- } else if (settings.height != "none") {
486
- textarea.height(settings.height);
487
- }
488
- if (settings.cols) {
489
- textarea.attr('cols', settings.cols);
490
- } else if (settings.width != "none") {
491
- textarea.width(settings.width);
492
- }
493
- $(this).append(textarea);
494
- return(textarea);
495
- }
496
- },
497
- select: {
498
- element : function(settings, original) {
499
- var select = $('<select />');
500
- $(this).append(select);
501
- return(select);
502
- },
503
- content : function(data, settings, original) {
504
- /* If it is string assume it is json. */
505
- if (String == data.constructor) {
506
- eval ('var json = ' + data);
507
- } else {
508
- /* Otherwise assume it is a hash already. */
509
- var json = data;
510
- }
511
- for (var key in json) {
512
- if (!json.hasOwnProperty(key)) {
513
- continue;
514
- }
515
- if ('selected' == key) {
516
- continue;
517
- }
518
- var option = $('<option />').val(key).append(json[key]);
519
- $('select', this).append(option);
520
- }
521
- /* Loop option again to set selected. IE needed this... */
522
- $('select', this).children().each(function() {
523
- if ($(this).val() == json['selected'] ||
524
- $(this).text() == $.trim(original.revert)) {
525
- $(this).attr('selected', 'selected');
526
- }
527
- });
528
- }
529
- }
530
- },
531
-
532
- /* Add new input type */
533
- addInputType: function(name, input) {
534
- $.editable.types[name] = input;
535
- }
536
- };
537
-
538
- // publicly accessible defaults
539
- $.fn.editable.defaults = {
540
- name : 'value',
541
- id : 'id',
542
- type : 'text',
543
- width : 'auto',
544
- height : 'auto',
545
- event : 'click.editable',
546
- onblur : 'cancel',
547
- loadtype : 'GET',
548
- loadtext : 'Loading...',
549
- placeholder: 'Click to edit',
550
- loaddata : {},
551
- submitdata : {},
552
- ajaxoptions: {}
553
- };
554
-
555
- })(jQuery);
556
-