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,683 +0,0 @@
1
- /**
2
- * @license jQuery UI Spinner 1.20
3
- *
4
- * Copyright (c) 2009-2010 Brant Burnett
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- */
7
- (function($, undefined) {
8
-
9
- var
10
- // constants
11
- active = 'ui-state-active',
12
- hover = 'ui-state-hover',
13
- disabled = 'ui-state-disabled',
14
-
15
- keyCode = $.ui.keyCode,
16
- up = keyCode.UP,
17
- down = keyCode.DOWN,
18
- right = keyCode.RIGHT,
19
- left = keyCode.LEFT,
20
- pageUp = keyCode.PAGE_UP,
21
- pageDown = keyCode.PAGE_DOWN,
22
- home = keyCode.HOME,
23
- end = keyCode.END,
24
-
25
- msie = $.browser.msie,
26
- mouseWheelEventName = $.browser.mozilla ? 'DOMMouseScroll' : 'mousewheel',
27
-
28
- // namespace for events on input
29
- eventNamespace = '.uispinner',
30
-
31
- // only these special keys will be accepted, all others will be ignored unless CTRL or ALT are pressed
32
- validKeys = [up, down, right, left, pageUp, pageDown, home, end, keyCode.BACKSPACE, keyCode.DELETE, keyCode.TAB],
33
-
34
- // stores the currently focused spinner
35
- // Note: due to oddities in the focus/blur events, this is part of a two-part system for confirming focus
36
- // this must set to the control, and the focus variable must be true
37
- // this is because hitting up/down arrows with mouse causes focus to change, but blur event for previous control doesn't fire
38
- focusCtrl;
39
-
40
- $.widget('ui.spinner', {
41
- options: {
42
- min: null,
43
- max: null,
44
- allowNull: false,
45
-
46
- group: '',
47
- point: '.',
48
- prefix: '',
49
- suffix: '',
50
- places: null, // null causes it to detect the number of places in step, 'free' will let the user enters decimals as he wants
51
-
52
- defaultStep: 1, // real value is 'step', and should be passed as such. This value is used to detect if passed value should override HTML5 attribute
53
- largeStep: 10,
54
- mouseWheel: true,
55
- increment: 'slow',
56
- className: null,
57
- showOn: 'always',
58
- width: 16,
59
- upIconClass: "ui-icon-triangle-1-n",
60
- downIconClass: "ui-icon-triangle-1-s",
61
-
62
- format: function(num, places) {
63
- var options = this,
64
- regex = /(\d+)(\d{3})/;
65
- var result;
66
- if ('free' == places)
67
- result = (isNaN(num) ? 0 : Math.abs(num)) + '';
68
- else
69
- result = ((isNaN(num) ? 0 : Math.abs(num)).toFixed(places)) + '';
70
-
71
- for (result = result.replace('.', options.point); regex.test(result) && options.group; result=result.replace(regex, '$1'+options.group+'$2')) {};
72
- return (num < 0 ? '-' : '') + options.prefix + result + options.suffix;
73
- },
74
-
75
- parse: function(val) {
76
- var options = this;
77
-
78
- if (options.group == '.')
79
- val = val.replace('.', '');
80
- if (options.point != '.')
81
- val = val.replace(options.point, '.');
82
- return parseFloat(val.replace(/[^0-9\-\.]/g, ''));
83
- }
84
- },
85
-
86
- // * Widget fields *
87
- // curvalue - current value
88
- // places - currently effective number of decimal places
89
- // oWidth - original input width (used for destroy)
90
- // oMargin - original input right margin (used for destroy)
91
- // counter - number of spins at the current spin speed
92
- // incCounter - index within options.increment of the current spin speed
93
- // selfChange - indicates that change event is being fired by the widget, so don't reprocess input value
94
- // inputMaxLength - initial maxLength value on the input
95
- // focused - this spinner currently has the focus
96
-
97
- _create: function() {
98
- // shortcuts
99
- var self = this,
100
- input = self.element,
101
- type = input.attr('type');
102
-
103
- if (!input.is('input') || ((type != 'text') && (type != 'number'))) {
104
- console.error('Invalid target for ui.spinner');
105
- return;
106
- }
107
-
108
- self._procOptions(true);
109
- self._createButtons(input);
110
-
111
- if (!input.is(':enabled'))
112
- self.disable();
113
- },
114
-
115
- _createButtons: function(input) {
116
- function getMargin(margin) {
117
- // IE8 returns auto if no margin specified
118
- return margin == 'auto' ? 0 : parseInt(margin);
119
- }
120
-
121
- var self = this,
122
- options = self.options,
123
- className = options.className,
124
- buttonWidth = options.width,
125
- showOn = options.showOn,
126
- box = $.support.boxModel,
127
- height = input.outerHeight(),
128
- rightMargin = self.oMargin = getMargin(input.css('margin-right')); // store original width and right margin for later destroy
129
- input.css({ textAlign: 'right' });
130
- if (showOn != 'never') {
131
- wrapper = self.wrapper = input.css({ width: (self.oWidth = (box ? input.width() : input.outerWidth())) - buttonWidth,
132
- marginRight: rightMargin + buttonWidth})
133
- .after('<span class="ui-spinner ui-widget"></span>').next(),
134
- btnContainer = self.btnContainer = $(
135
- '<div class="ui-spinner-buttons">' +
136
- '<div class="ui-spinner-up ui-spinner-button ui-state-default ui-corner-tr"><span class="ui-icon '+options.upIconClass+'">&nbsp;</span></div>' +
137
- '<div class="ui-spinner-down ui-spinner-button ui-state-default ui-corner-br"><span class="ui-icon '+options.downIconClass+'">&nbsp;</span></div>' +
138
- '</div>');
139
- }
140
-
141
- // object shortcuts
142
- var upButton, downButton, buttons, icons,
143
-
144
- hoverDelay,
145
- hoverDelayCallback,
146
-
147
- // current state booleans
148
- hovered, inKeyDown, inSpecialKey, inMouseDown,
149
-
150
- // used to reverse left/right key directions
151
- rtl = input[0].dir == 'rtl';
152
-
153
- // apply className before doing any calculations because it could affect them
154
- if (className && typeof(wrapper) != 'undefined') wrapper.addClass(className);
155
-
156
- if (showOn != 'never') {
157
- wrapper.append(btnContainer.css({ height: height, left: -buttonWidth-rightMargin,
158
- // use offset calculation to fix vertical position in Firefox
159
- top: (input.offset().top - wrapper.offset().top) + 'px' }));
160
-
161
- buttons = self.buttons = btnContainer.find('div.ui-spinner-button');
162
- buttons.css({ width: buttonWidth - (box ? buttons.outerWidth() - buttons.width() : 0), height: height/2 - (box ? buttons.outerHeight() - buttons.height() : 0) });
163
- upButton = buttons[0];
164
- downButton = buttons[1];
165
-
166
- // fix icon centering
167
- icons = buttons.find('span.ui-icon');
168
- icons.css({ marginLeft: (buttons.innerWidth() - icons.width()) / 2, marginTop: (buttons.innerHeight() - icons.height()) / 2 });
169
-
170
- // set width of btnContainer to be the same as the buttons
171
- btnContainer.width(buttons.outerWidth());
172
- if (showOn != 'always')
173
- btnContainer.css('opacity', 0);
174
- }
175
-
176
- /* Event Bindings */
177
-
178
- // bind hover events to show/hide buttons
179
- if (showOn == 'hover' || showOn == 'both')
180
- buttons.add(input)
181
- .bind('mouseenter' + eventNamespace, function() {
182
- setHoverDelay(function() {
183
- hovered = true;
184
- if (!self.focused || (showOn == 'hover')) // ignore focus flag if show on hover only
185
- self.showButtons();
186
- });
187
- })
188
-
189
- .bind('mouseleave' + eventNamespace, function hoverOut() {
190
- setHoverDelay(function() {
191
- hovered = false;
192
- if (!self.focused || (showOn == 'hover')) // ignore focus flag if show on hover only
193
- self.hideButtons();
194
- });
195
- });
196
-
197
-
198
- if (buttons != null) {
199
- buttons.hover(function() {
200
- // ensure that both buttons have hover removed, sometimes they get left on
201
- self.buttons.removeClass(hover);
202
-
203
- if (!options.disabled)
204
- $(this).addClass(hover);
205
- }, function() {
206
- $(this).removeClass(hover);
207
- })
208
- .mousedown(mouseDown)
209
- .mouseup(mouseUp)
210
- .mouseout(mouseUp);
211
- }
212
-
213
- if (msie && buttons != null)
214
- // fixes dbl click not firing second mouse down in IE
215
- buttons.dblclick(function() {
216
- if (!options.disabled) {
217
- // make sure any changes are posted
218
- self._change();
219
- self._doSpin((this === upButton ? 1 : -1) * options.step);
220
- }
221
-
222
- return false;
223
- })
224
-
225
- // fixes IE8 dbl click selection highlight
226
- .bind('selectstart', function() {return false;});
227
-
228
- input.bind('keydown' + eventNamespace, function(e) {
229
- var dir, large, limit,
230
- keyCode = e.keyCode; // shortcut for minimization
231
- if (e.ctrl || e.alt) return true; // ignore these events
232
-
233
- if (isSpecialKey(keyCode))
234
- inSpecialKey = true;
235
-
236
- if (inKeyDown) return false; // only one direction at a time, and suppress invalid keys
237
-
238
- switch (keyCode) {
239
- case up:
240
- case pageUp:
241
- dir = 1;
242
- large = keyCode == pageUp;
243
- break;
244
-
245
- case down:
246
- case pageDown:
247
- dir = -1;
248
- large = keyCode == pageDown;
249
- break;
250
-
251
- case right:
252
- case left:
253
- dir = (keyCode == right) ^ rtl ? 1 : -1;
254
- break;
255
-
256
- case home:
257
- limit = self.options.min;
258
- if (limit != null) self._setValue(limit);
259
- return false;
260
-
261
- case end:
262
- limit = self.options.max;
263
- limit = self.options.max;
264
- if (limit != null) self._setValue(limit);
265
- return false;
266
- }
267
-
268
- if (dir) { // only process if dir was set above
269
- if (!inKeyDown && !options.disabled) {
270
- keyDir = dir;
271
- if (buttons != null)
272
- $(dir > 0 ? upButton : downButton).addClass(active);
273
- inKeyDown = true;
274
- self._startSpin(dir, large);
275
- }
276
-
277
- return false;
278
- }
279
- })
280
-
281
- .bind('keyup' + eventNamespace, function(e) {
282
- if (e.ctrl || e.alt) return true; // ignore these events
283
- var keyCode = e.keyCode; // shortcut for minimization
284
-
285
- if (isSpecialKey(keyCode))
286
- inSpecialKey = false;
287
-
288
- switch (keyCode) {
289
- case up:
290
- case right:
291
- case pageUp:
292
- case down:
293
- case left:
294
- case pageDown:
295
- if (buttons != null)
296
- buttons.removeClass(active);
297
- self._stopSpin();
298
- inKeyDown = false;
299
- return false;
300
- }
301
- })
302
-
303
- .bind('keypress' + eventNamespace, function(e) {
304
- if (invalidKey(e.keyCode, e.charCode, e.target)) return false;
305
- })
306
-
307
- .bind('change' + eventNamespace, function() { self._change(); })
308
-
309
- .bind('focus' + eventNamespace, function() {
310
- function selectAll() {
311
- self.element.select();
312
- }
313
-
314
- msie ? selectAll() : setTimeout(selectAll, 0); // add delay for Chrome, but breaks IE8
315
- self.focused = true;
316
- focusCtrl = self;
317
- if (!hovered && (showOn == 'focus' || showOn == 'both')) // hovered will only be set if hover affects show
318
- self.showButtons();
319
- })
320
-
321
- .bind('blur' + eventNamespace, function() {
322
- self.focused = false;
323
- if (!hovered && (showOn == 'focus' || showOn == 'both')) // hovered will only be set if hover affects show
324
- self.hideButtons();
325
- });
326
-
327
- function isSpecialKey(keyCode) {
328
- for (var i=0; i<validKeys.length; i++) // predefined list of special keys
329
- if (validKeys[i] == keyCode) return true;
330
-
331
- return false;
332
- }
333
-
334
- function invalidKey(keyCode, charCode, target) {
335
- if (inSpecialKey) return false;
336
-
337
- var ch = String.fromCharCode(charCode || keyCode),
338
- options = self.options;
339
-
340
- if ((ch >= '0') && (ch <= '9') || (ch == '-')) return false;
341
- // Allow the decimal separator if there's only one and we want decimals
342
- if (((self.places > 0 || self.places == 'free') && (ch == options.point) && ($(target).val() == null || $(target).val().indexOf(options.point) == -1))
343
- || (ch == options.group)) return false;
344
-
345
- return true;
346
- }
347
-
348
- // used to delay start of hover show/hide by 100 milliseconds
349
- function setHoverDelay(callback) {
350
- if (hoverDelay) {
351
- // don't do anything if trying to set the same callback again
352
- if (callback === hoverDelayCallback) return;
353
-
354
- clearTimeout(hoverDelay);
355
- }
356
-
357
- hoverDelayCallback = callback;
358
- hoverDelay = setTimeout(execute, 100);
359
-
360
- function execute() {
361
- hoverDelay = 0;
362
- callback();
363
- }
364
- }
365
-
366
- function mouseDown() {
367
- if (!options.disabled) {
368
- var input = self.element[0],
369
- dir = (this === upButton ? 1 : -1);
370
-
371
- input.focus();
372
- input.select();
373
- $(this).addClass(active);
374
-
375
- inMouseDown = true;
376
- self._startSpin(dir);
377
- }
378
-
379
- return false;
380
- }
381
-
382
- function mouseUp() {
383
- if (inMouseDown) {
384
- $(this).removeClass(active);
385
- self._stopSpin();
386
- inMouseDown = false;
387
- }
388
- return false;
389
- }
390
- },
391
-
392
- _procOptions: function(init) {
393
- var self = this,
394
- input = self.element,
395
- options = self.options,
396
- min = options.min,
397
- max = options.max,
398
- step = options.step,
399
- places = options.places,
400
- maxlength = -1, temp;
401
-
402
- // setup increment based on speed string
403
- if (options.increment == 'slow')
404
- options.increment = [{count: 1, mult: 1, delay: 250},
405
- {count: 3, mult: 1, delay: 100},
406
- {count: 0, mult: 1, delay: 50}];
407
- else if (options.increment == 'fast')
408
- options.increment = [{count: 1, mult: 1, delay: 250},
409
- {count: 19, mult: 1, delay: 100},
410
- {count: 80, mult: 1, delay: 20},
411
- {count: 100, mult: 10, delay: 20},
412
- {count: 0, mult: 100, delay: 20}];
413
-
414
- if ((min == null) && ((temp = input.attr('min')) != null))
415
- min = parseFloat(temp);
416
-
417
- if ((max == null) && ((temp = input.attr('max')) != null))
418
- max = parseFloat(temp);
419
-
420
- if (!step && ((temp = input.attr('step')) != null))
421
- if (temp != 'any') {
422
- step = parseFloat(temp);
423
- options.largeStep *= step;
424
- }
425
- options.step = step = step || options.defaultStep;
426
-
427
- // Process step for decimal places if none are specified
428
- if ((places == null) && ((temp = step + '').indexOf('.') != -1))
429
- places = temp.length - temp.indexOf('.') - 1;
430
- self.places = places;
431
-
432
- if ((max != null) && (min != null)) {
433
- // ensure that min is less than or equal to max
434
- if (min > max) min = max;
435
-
436
- // set maxlength based on min/max
437
- maxlength = Math.max(Math.max(maxlength, options.format(max, places, input).length), options.format(min, places, input).length);
438
- }
439
-
440
- // only lookup input maxLength on init
441
- if (init) self.inputMaxLength = input[0].maxLength;
442
- temp = self.inputMaxLength;
443
-
444
- if (temp > 0) {
445
- maxlength = maxlength > 0 ? Math.min(temp, maxlength) : temp;
446
- temp = Math.pow(10, maxlength) - 1;
447
-
448
- // Infinity is a value assigned by IE in temp when it becomes to big or too small
449
- if (((max == null) || (max > temp)) && temp != 'Infinity')
450
- max = temp;
451
- temp = -(temp + 1) / 10 + 1;
452
- if (((min == null) || (min < temp)) && temp != '-Infinity')
453
- min = temp;
454
- }
455
-
456
- if (maxlength > 0)
457
- input.attr('maxlength', maxlength);
458
-
459
- options.min = min;
460
- options.max = max;
461
-
462
- // ensures that current value meets constraints
463
- self._change();
464
-
465
- input.unbind(mouseWheelEventName + eventNamespace);
466
- if (options.mouseWheel)
467
- input.bind(mouseWheelEventName + eventNamespace, self._mouseWheel);
468
- },
469
-
470
- _mouseWheel: function(e) {
471
- var self = $.data(this, 'spinner');
472
- if (!self.options.disabled && self.focused && (focusCtrl === self)) {
473
- // make sure changes are posted
474
- self._change();
475
- self._doSpin(((e.wheelDelta || -e.detail) > 0 ? 1 : -1) * self.options.step);
476
- return false;
477
- }
478
- },
479
-
480
- // sets an interval to call the _spin function
481
- _setTimer: function(delay, dir, large) {
482
- var self = this;
483
- self._stopSpin();
484
- self.timer = setInterval(fire, delay);
485
-
486
- function fire() {
487
- self._spin(dir, large);
488
- }
489
- },
490
-
491
- // stops the spin timer
492
- _stopSpin: function() {
493
- if (this.timer) {
494
- clearInterval(this.timer);
495
- this.timer = 0;
496
- }
497
- },
498
-
499
- // performs first step, and starts the spin timer if increment is set
500
- _startSpin: function(dir, large) {
501
- // shortcuts
502
- var self = this,
503
- options = self.options,
504
- increment = options.increment;
505
-
506
- // make sure any changes are posted
507
- self._change();
508
- self._doSpin(dir * (large ? self.options.largeStep : self.options.step));
509
-
510
- if (increment && increment.length > 0) {
511
- self.counter = 0;
512
- self.incCounter = 0;
513
- self._setTimer(increment[0].delay, dir, large);
514
- }
515
- },
516
-
517
- // called by timer for each step in the spin
518
- _spin: function(dir, large) {
519
- // shortcuts
520
- var self = this,
521
- increment = self.options.increment,
522
- curIncrement = increment[self.incCounter];
523
-
524
- self._doSpin(dir * curIncrement.mult * (large ? self.options.largeStep : self.options.step));
525
- self.counter++;
526
-
527
- if ((self.counter > curIncrement.count) && (self.incCounter < increment.length-1)) {
528
- self.counter = 0;
529
- curIncrement = increment[++self.incCounter];
530
- self._setTimer(curIncrement.delay, dir, large);
531
- }
532
- },
533
-
534
- // actually spins the timer by a step
535
- _doSpin: function(step) {
536
- // shortcut
537
- var self = this,
538
- value = self.curvalue;
539
-
540
- if (value == null)
541
- value = (step > 0 ? self.options.min : self.options.max) || 0;
542
- if (self.options.places == 'free') {
543
- // We may be in the floating problem! Lets stick with the number of decimals in the original value or in the step (max)
544
- var point = self.options.point,
545
- result = value + step,
546
- strResult = result.toString(),
547
- strValue = value.toString(),
548
- strStep = step.toString(),
549
- numDigitValue = (strValue.indexOf(point) == -1 ? 0 : strValue.length - strValue.indexOf(point) - 1),
550
- numDigitStep = (strStep.indexOf(point) == -1 ? 0 : strStep.length - strStep.indexOf(point) - 1),
551
- desiredNumDigit = Math.max(numDigitValue, numDigitStep),
552
- numDigitResult = (strResult.indexOf(point) == -1 ? 0 : strResult.length - strResult.indexOf(point) - 1);
553
- if (numDigitResult > desiredNumDigit)
554
- self._setValue(result.toFixed(desiredNumDigit));
555
- else
556
- self._setValue(result);
557
-
558
- } else {
559
- self._setValue(value + step);
560
- }
561
- },
562
-
563
- // Parse the value currently in the field
564
- _parseValue: function() {
565
- var value = this.element.val();
566
- return value ? this.options.parse(value, this.element) : null;
567
- },
568
-
569
- _validate: function(value) {
570
- var options = this.options,
571
- min = options.min,
572
- max = options.max;
573
-
574
- if ((value == null) && !options.allowNull)
575
- value = this.curvalue != null ? this.curvalue : min || max || 0; // must confirm not null in case just initializing and had blank value
576
-
577
- if ((max != null) && (value > max))
578
- return max;
579
- else if ((min != null) && (value < min))
580
- return min;
581
- else
582
- return value;
583
- },
584
-
585
- _change: function() {
586
- var self = this, // shortcut
587
- value = self._parseValue(),
588
- min = self.options.min,
589
- max = self.options.max;
590
-
591
- // don't reprocess if change was self triggered
592
- if (!self.selfChange) {
593
- if (isNaN(value))
594
- value = self.curvalue;
595
-
596
- self._setValue(value, true);
597
- }
598
- },
599
-
600
- // overrides _setData to force option parsing
601
- _setOption: function(key, value) {
602
- $.Widget.prototype._setOption.call(this, key, value);
603
- this._procOptions();
604
- },
605
-
606
- increment: function() {
607
- this._doSpin(this.options.step);
608
- },
609
-
610
- decrement: function() {
611
- this._doSpin(-this.options.step);
612
- },
613
-
614
- showButtons: function(immediate) {
615
- var btnContainer = this.btnContainer.stop();
616
- if (immediate)
617
- btnContainer.css('opacity', 1);
618
- else
619
- btnContainer.fadeTo('fast', 1);
620
- },
621
-
622
- hideButtons: function(immediate) {
623
- var btnContainer = this.btnContainer.stop();
624
- if (immediate)
625
- btnContainer.css('opacity', 0);
626
- else
627
- btnContainer.fadeTo('fast', 0);
628
- this.buttons.removeClass(hover);
629
- },
630
-
631
- // Set the value directly
632
- _setValue: function(value, suppressFireEvent) {
633
- var self = this;
634
-
635
- self.curvalue = value = self._validate(value);
636
- self.element.val(value != null ?
637
- self.options.format(value, self.places, self.element) :
638
- '');
639
-
640
- if (!suppressFireEvent) {
641
- self.selfChange = true;
642
- self.element.change();
643
- self.selfChange = false;
644
- }
645
- },
646
-
647
- // Set or retrieve the value
648
- value: function(newValue) {
649
- if (arguments.length) {
650
- this._setValue(newValue);
651
-
652
- // maintains chaining
653
- return this.element;
654
- }
655
-
656
- return this.curvalue;
657
- },
658
-
659
- enable: function() {
660
- this.buttons.removeClass(disabled);
661
- this.element[0].disabled = false;
662
- $.Widget.prototype.enable.call(this);
663
- },
664
-
665
- disable: function() {
666
- this.buttons.addClass(disabled)
667
- // in case hover class got left on
668
- .removeClass(hover);
669
-
670
- this.element[0].disabled = true;
671
- $.Widget.prototype.disable.call(this);
672
- },
673
-
674
- destroy: function(target) {
675
- if (typeof(this.wrapper) != 'undefined')
676
- this.wrapper.remove();
677
- this.element.unbind(eventNamespace).css({ width: this.oWidth, marginRight: this.oMargin });
678
-
679
- $.Widget.prototype.destroy.call(this);
680
- }
681
- });
682
-
683
- })( jQuery );