yui-rails-asset 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (398) hide show
  1. data/LICENSE +21 -0
  2. data/README +17 -0
  3. data/lib/yui/rails.rb +29 -0
  4. data/lib/yui/rails/engine.rb +10 -0
  5. data/lib/yui/rails/version.rb +6 -0
  6. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-debug.js +1396 -0
  7. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-min.js +23 -0
  8. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation.js +1392 -0
  9. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/ajax-loader.gif +0 -0
  10. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/asc.gif +0 -0
  11. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/autocomplete.css +7 -0
  12. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-h.png +0 -0
  13. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-v.png +0 -0
  14. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-h.png +0 -0
  15. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-v.png +0 -0
  16. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-h.gif +0 -0
  17. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-v.gif +0 -0
  18. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/blankimage.png +0 -0
  19. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/button.css +7 -0
  20. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/calendar.css +8 -0
  21. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/carousel.css +7 -0
  22. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check0.gif +0 -0
  23. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check1.gif +0 -0
  24. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check2.gif +0 -0
  25. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/colorpicker.css +7 -0
  26. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/container.css +7 -0
  27. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/datatable.css +8 -0
  28. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/desc.gif +0 -0
  29. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-dn.png +0 -0
  30. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-up.png +0 -0
  31. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-knob.gif +0 -0
  32. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite-active.gif +0 -0
  33. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite.gif +0 -0
  34. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor.css +10 -0
  35. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/header_background.png +0 -0
  36. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/hue_bg.png +0 -0
  37. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/imagecropper.css +7 -0
  38. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout.css +7 -0
  39. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout_sprite.png +0 -0
  40. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/loading.gif +0 -0
  41. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/logger.css +7 -0
  42. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
  43. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow.png +0 -0
  44. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu.css +7 -0
  45. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
  46. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
  47. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox.png +0 -0
  48. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
  49. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator.png +0 -0
  50. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
  51. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/paginator.css +7 -0
  52. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/picker_mask.png +0 -0
  53. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/profilerviewer.css +7 -0
  54. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/progressbar.css +7 -0
  55. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/resize.css +7 -0
  56. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/simpleeditor.css +10 -0
  57. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/skin.css +36 -0
  58. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/slider.css +7 -0
  59. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-active.png +0 -0
  60. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-disabled.png +0 -0
  61. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-focus.png +0 -0
  62. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-hover.png +0 -0
  63. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow.png +0 -0
  64. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.png +0 -0
  65. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.psd +0 -0
  66. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/tabview.css +8 -0
  67. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-loading.gif +0 -0
  68. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-sprite.gif +0 -0
  69. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview.css +7 -0
  70. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/wait.gif +0 -0
  71. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/yuitest.css +7 -0
  72. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/autocomplete-core.css +7 -0
  73. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete-skin.css +57 -0
  74. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete.css +7 -0
  75. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-debug.js +3009 -0
  76. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-min.js +12 -0
  77. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete.js +2966 -0
  78. data/vendor/assets/javascripts/yui-2.8.1/build/base/base-min.css +7 -0
  79. data/vendor/assets/javascripts/yui-2.8.1/build/base/base.css +131 -0
  80. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/button-core.css +44 -0
  81. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button-skin.css +219 -0
  82. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button.css +7 -0
  83. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
  84. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow.png +0 -0
  85. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-active.png +0 -0
  86. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-disabled.png +0 -0
  87. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-focus.png +0 -0
  88. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-hover.png +0 -0
  89. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow.png +0 -0
  90. data/vendor/assets/javascripts/yui-2.8.1/build/button/button-debug.js +4694 -0
  91. data/vendor/assets/javascripts/yui-2.8.1/build/button/button-min.js +11 -0
  92. data/vendor/assets/javascripts/yui-2.8.1/build/button/button.js +4633 -0
  93. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar-core.css +132 -0
  94. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar.css +320 -0
  95. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calgrad.png +0 -0
  96. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/callt.gif +0 -0
  97. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calrt.gif +0 -0
  98. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calx.gif +0 -0
  99. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar-skin.css +361 -0
  100. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar.css +8 -0
  101. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-debug.js +7324 -0
  102. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-min.js +18 -0
  103. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar.js +7294 -0
  104. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/ajax-loader.gif +0 -0
  105. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/carousel-core.css +88 -0
  106. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/ajax-loader.gif +0 -0
  107. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel-skin.css +142 -0
  108. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel.css +7 -0
  109. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-debug.js +4390 -0
  110. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-min.js +12 -0
  111. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel.js +4349 -0
  112. data/vendor/assets/javascripts/yui-2.8.1/build/charts/assets/charts.swf +0 -0
  113. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-debug.js +2061 -0
  114. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-min.js +9 -0
  115. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts.js +2060 -0
  116. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/colorpicker-core.css +6 -0
  117. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/hue_thumb.png +0 -0
  118. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_mask.png +0 -0
  119. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_thumb.png +0 -0
  120. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker-skin.css +105 -0
  121. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker.css +7 -0
  122. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/hue_bg.png +0 -0
  123. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/picker_mask.png +0 -0
  124. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-debug.js +1783 -0
  125. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-min.js +9 -0
  126. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker.js +1763 -0
  127. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-debug.js +1576 -0
  128. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-min.js +9 -0
  129. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.js +1546 -0
  130. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.swf +0 -0
  131. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-debug.js +980 -0
  132. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-min.js +8 -0
  133. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core.js +957 -0
  134. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/alrt16_1.gif +0 -0
  135. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/blck16_1.gif +0 -0
  136. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/close12_1.gif +0 -0
  137. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container-core.css +176 -0
  138. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container.css +324 -0
  139. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/hlp16_1.gif +0 -0
  140. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/info16_1.gif +0 -0
  141. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container-skin.css +242 -0
  142. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container.css +7 -0
  143. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/tip16_1.gif +0 -0
  144. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/warn16_1.gif +0 -0
  145. data/vendor/assets/javascripts/yui-2.8.1/build/container/container-debug.js +9076 -0
  146. data/vendor/assets/javascripts/yui-2.8.1/build/container/container-min.js +19 -0
  147. data/vendor/assets/javascripts/yui-2.8.1/build/container/container.js +9052 -0
  148. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-debug.js +5136 -0
  149. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-min.js +14 -0
  150. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core.js +5126 -0
  151. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-debug.js +482 -0
  152. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-min.js +7 -0
  153. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie.js +482 -0
  154. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-debug.js +3067 -0
  155. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-min.js +12 -0
  156. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource.js +2996 -0
  157. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable-core.css +93 -0
  158. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable.css +49 -0
  159. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable-skin.css +240 -0
  160. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable.css +8 -0
  161. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-dn.png +0 -0
  162. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-up.png +0 -0
  163. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-debug.js +17360 -0
  164. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-min.js +29 -0
  165. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable.js +17122 -0
  166. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-debug.js +408 -0
  167. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-min.js +7 -0
  168. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath.js +408 -0
  169. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-debug.js +1872 -0
  170. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-min.js +9 -0
  171. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom.js +1832 -0
  172. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-debug.js +3710 -0
  173. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-min.js +10 -0
  174. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop.js +3601 -0
  175. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/editor-core.css +602 -0
  176. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/simpleeditor-core.css +602 -0
  177. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/blankimage.png +0 -0
  178. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-knob.gif +0 -0
  179. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-skin.css +711 -0
  180. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite-active.gif +0 -0
  181. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite.gif +0 -0
  182. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor.css +10 -0
  183. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor-skin.css +711 -0
  184. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor.css +10 -0
  185. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-debug.js +9557 -0
  186. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-min.js +30 -0
  187. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor.js +9447 -0
  188. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-debug.js +7493 -0
  189. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-min.js +24 -0
  190. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor.js +7406 -0
  191. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-debug.js +141 -0
  192. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-min.js +7 -0
  193. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate.js +138 -0
  194. data/vendor/assets/javascripts/yui-2.8.1/build/element/element-debug.js +1106 -0
  195. data/vendor/assets/javascripts/yui-2.8.1/build/element/element-min.js +8 -0
  196. data/vendor/assets/javascripts/yui-2.8.1/build/element/element.js +1090 -0
  197. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-debug.js +283 -0
  198. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-min.js +7 -0
  199. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate.js +281 -0
  200. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-debug.js +219 -0
  201. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-min.js +7 -0
  202. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter.js +219 -0
  203. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-debug.js +622 -0
  204. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-min.js +7 -0
  205. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate.js +622 -0
  206. data/vendor/assets/javascripts/yui-2.8.1/build/event/event-debug.js +2524 -0
  207. data/vendor/assets/javascripts/yui-2.8.1/build/event/event-min.js +11 -0
  208. data/vendor/assets/javascripts/yui-2.8.1/build/event/event.js +2500 -0
  209. data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts-min.css +7 -0
  210. data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts.css +56 -0
  211. data/vendor/assets/javascripts/yui-2.8.1/build/get/get-debug.js +773 -0
  212. data/vendor/assets/javascripts/yui-2.8.1/build/get/get-min.js +7 -0
  213. data/vendor/assets/javascripts/yui-2.8.1/build/get/get.js +755 -0
  214. data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids-min.css +7 -0
  215. data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids.css +467 -0
  216. data/vendor/assets/javascripts/yui-2.8.1/build/history/assets/blank.html +1 -0
  217. data/vendor/assets/javascripts/yui-2.8.1/build/history/history-debug.js +808 -0
  218. data/vendor/assets/javascripts/yui-2.8.1/build/history/history-min.js +7 -0
  219. data/vendor/assets/javascripts/yui-2.8.1/build/history/history.js +808 -0
  220. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/imagecropper-core.css +33 -0
  221. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper-skin.css +16 -0
  222. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper.css +7 -0
  223. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-debug.js +907 -0
  224. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-min.js +8 -0
  225. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper.js +889 -0
  226. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-debug.js +487 -0
  227. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-min.js +7 -0
  228. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader.js +481 -0
  229. data/vendor/assets/javascripts/yui-2.8.1/build/json/json-debug.js +538 -0
  230. data/vendor/assets/javascripts/yui-2.8.1/build/json/json-min.js +7 -0
  231. data/vendor/assets/javascripts/yui-2.8.1/build/json/json.js +538 -0
  232. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/layout-core.css +158 -0
  233. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout-skin.css +207 -0
  234. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout.css +7 -0
  235. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout_sprite.png +0 -0
  236. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-debug.js +2305 -0
  237. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-min.js +11 -0
  238. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout.js +2290 -0
  239. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger-core.css +7 -0
  240. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger.css +57 -0
  241. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger-skin.css +55 -0
  242. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger.css +7 -0
  243. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-debug.js +2104 -0
  244. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-min.js +9 -0
  245. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger.js +2104 -0
  246. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu-core.css +242 -0
  247. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu.css +503 -0
  248. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow.png +0 -0
  249. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow_disabled.png +0 -0
  250. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow.png +0 -0
  251. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow_disabled.png +0 -0
  252. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator.png +0 -0
  253. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_disabled.png +0 -0
  254. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_selected.png +0 -0
  255. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox.png +0 -0
  256. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_disabled.png +0 -0
  257. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_selected.png +0 -0
  258. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator.png +0 -0
  259. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_disabled.png +0 -0
  260. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_selected.png +0 -0
  261. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu-skin.css +339 -0
  262. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu.css +7 -0
  263. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
  264. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
  265. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox.png +0 -0
  266. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
  267. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator.png +0 -0
  268. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
  269. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-debug.js +9870 -0
  270. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-min.js +16 -0
  271. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu.js +9823 -0
  272. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/paginator-core.css +6 -0
  273. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator-skin.css +78 -0
  274. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator.css +7 -0
  275. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-debug.js +2393 -0
  276. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-min.js +10 -0
  277. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator.js +2393 -0
  278. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-debug.js +557 -0
  279. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-min.js +7 -0
  280. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler.js +557 -0
  281. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/profilerviewer-core.css +6 -0
  282. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/asc.gif +0 -0
  283. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/desc.gif +0 -0
  284. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/header_background.png +0 -0
  285. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer-skin.css +167 -0
  286. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer.css +7 -0
  287. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/wait.gif +0 -0
  288. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-debug.js +1229 -0
  289. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-min.js +9 -0
  290. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer.js +1192 -0
  291. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/progressbar-core.css +85 -0
  292. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-h.png +0 -0
  293. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-v.png +0 -0
  294. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-h.png +0 -0
  295. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-v.png +0 -0
  296. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar-skin.css +56 -0
  297. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar.css +7 -0
  298. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-debug.js +691 -0
  299. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-min.js +8 -0
  300. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar.js +677 -0
  301. data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts-grids/reset-fonts-grids.css +7 -0
  302. data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts/reset-fonts.css +7 -0
  303. data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset-min.css +7 -0
  304. data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset.css +142 -0
  305. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/resize-core.css +173 -0
  306. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/layout_sprite.png +0 -0
  307. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize-skin.css +142 -0
  308. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize.css +7 -0
  309. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-debug.js +1749 -0
  310. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-min.js +10 -0
  311. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize.js +1689 -0
  312. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-debug.js +651 -0
  313. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-min.js +8 -0
  314. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector.js +644 -0
  315. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-fader.gif +0 -0
  316. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-h.gif +0 -0
  317. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v-e.gif +0 -0
  318. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v.gif +0 -0
  319. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/left-thumb.png +0 -0
  320. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/right-thumb.png +0 -0
  321. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-h.gif +0 -0
  322. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-v.gif +0 -0
  323. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider-skin.css +24 -0
  324. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider.css +7 -0
  325. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-core.css +17 -0
  326. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-skin.css +20 -0
  327. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-bar.gif +0 -0
  328. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-e.gif +0 -0
  329. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-fader.gif +0 -0
  330. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-n.gif +0 -0
  331. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-s.gif +0 -0
  332. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-w.gif +0 -0
  333. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-debug.js +2114 -0
  334. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-min.js +9 -0
  335. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider.js +2068 -0
  336. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-debug.js +1185 -0
  337. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-min.js +8 -0
  338. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage.js +1183 -0
  339. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-debug.js +648 -0
  340. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-min.js +7 -0
  341. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet.js +645 -0
  342. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-debug.js +269 -0
  343. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-min.js +7 -0
  344. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf.js +268 -0
  345. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-debug.js +93 -0
  346. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-min.js +7 -0
  347. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect.js +93 -0
  348. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swf.js +238 -0
  349. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-debug.js +470 -0
  350. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-min.js +7 -0
  351. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.js +453 -0
  352. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.swf +0 -0
  353. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/border_tabs.css +54 -0
  354. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/loading.gif +0 -0
  355. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skin-sam.css +77 -0
  356. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview-skin.css +186 -0
  357. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview.css +8 -0
  358. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview-core.css +133 -0
  359. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview.css +77 -0
  360. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-debug.js +995 -0
  361. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-min.js +8 -0
  362. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview.js +987 -0
  363. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check0.gif +0 -0
  364. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check1.gif +0 -0
  365. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check2.gif +0 -0
  366. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/loading.gif +0 -0
  367. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-loading.gif +0 -0
  368. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-skin.css +249 -0
  369. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-sprite.gif +0 -0
  370. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview.css +7 -0
  371. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/treeview-core.css +6 -0
  372. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-debug.js +4058 -0
  373. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-min.js +12 -0
  374. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview.js +3989 -0
  375. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/assets/uploader.swf +0 -0
  376. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-debug.js +1072 -0
  377. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-min.js +15 -0
  378. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader.js +1069 -0
  379. data/vendor/assets/javascripts/yui-2.8.1/build/utilities/utilities.js +39 -0
  380. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo-dom-event/yahoo-dom-event.js +14 -0
  381. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-debug.js +1075 -0
  382. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-min.js +7 -0
  383. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo.js +1075 -0
  384. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader-dom-event/yuiloader-dom-event.js +17 -0
  385. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-debug.js +3879 -0
  386. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-min.js +10 -0
  387. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader.js +3879 -0
  388. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest-skin.css +7 -0
  389. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest.css +7 -0
  390. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/testlogger.css +7 -0
  391. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/yuitest-core.css +7 -0
  392. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-debug.js +2741 -0
  393. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-min.js +10 -0
  394. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest.js +2741 -0
  395. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-debug.js +1976 -0
  396. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-min.js +9 -0
  397. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core.js +1976 -0
  398. metadata +470 -0
@@ -0,0 +1,85 @@
1
+ /*
2
+ Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.com/yui/license.html
5
+ version: 2.8.1
6
+ */
7
+ /* several */
8
+
9
+ .yui-pb-bar,
10
+ .yui-pb-mask {
11
+ width:100%;
12
+ height:100%;
13
+ }
14
+
15
+ /* contentBox */
16
+ .yui-pb {
17
+ position:relative;
18
+ top:0;
19
+ left:0;
20
+
21
+ width:200px;
22
+ height:20px;
23
+
24
+ padding:0;
25
+ border:none;
26
+ margin:0;
27
+
28
+ text-align:left;
29
+ }
30
+
31
+ /* mask */
32
+
33
+ .yui-pb-mask {
34
+ position:absolute;
35
+ top:0;
36
+ left:0;
37
+
38
+ z-index:2;
39
+ }
40
+
41
+ .yui-pb-mask div {
42
+ width:50%;
43
+ height:50%;
44
+ background-repeat:no-repeat;
45
+ padding:0;
46
+ position: absolute;
47
+ }
48
+
49
+ .yui-pb-tl {
50
+ background-position: top left;
51
+ }
52
+ .yui-pb-tr {
53
+ background-position: top right;
54
+ left:50%;
55
+ }
56
+ .yui-pb-bl {
57
+ background-position: bottom left;
58
+ top:50%;
59
+ }
60
+ .yui-pb-br {
61
+ background-position: bottom right;
62
+ left:50%;
63
+ top:50%;
64
+ }
65
+
66
+ /* bar */
67
+ .yui-pb-bar {
68
+ margin:0;
69
+ position:absolute;
70
+ left:0;
71
+ top:0;
72
+ z-index:1;
73
+ }
74
+
75
+ .yui-pb-ltr .yui-pb-bar {
76
+ _position:static
77
+ }
78
+
79
+ .yui-pb-rtl .yui-pb-bar {
80
+ background-position:right;
81
+ }
82
+
83
+ .yui-pb-btt .yui-pb-bar {
84
+ background-position:left bottom;
85
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.com/yui/license.html
5
+ version: 2.8.1
6
+ */
7
+ .yui-pb-bar {
8
+ background-color:blue;
9
+ }
10
+
11
+ .yui-pb {
12
+ border: thin solid #808080
13
+ }
14
+
15
+ .yui-skin-sam .yui-pb {
16
+ background-color: transparent;
17
+ border: solid #808080;
18
+ border-width:1px 0;
19
+ }
20
+
21
+ .yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr {
22
+ background-image: url(back-h.png);
23
+ background-repeat:repeat-x;
24
+ }
25
+
26
+ .yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt {
27
+ background-image: url(back-v.png);
28
+ background-repeat:repeat-y;
29
+ }
30
+ .yui-skin-sam .yui-pb-bar{
31
+ background-color:transparent;
32
+ }
33
+
34
+ .yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar {
35
+ background-image:url(bar-h.png);
36
+ background-repeat:repeat-x;
37
+ }
38
+ .yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar {
39
+ background-image:url(bar-v.png);
40
+ background-repeat:repeat-y;
41
+ }
42
+
43
+ .yui-skin-sam .yui-pb-mask {
44
+ border: solid #808080;
45
+ border-width:0 1px;
46
+ margin: 0 -1px;
47
+ }
48
+
49
+ .yui-skin-sam .yui-pb-caption {
50
+ color:#000;
51
+ text-align:center;
52
+ margin:0 auto;
53
+ }
54
+ .yui-skin-sam .yui-pb-range {
55
+ color:#a6a6a6;
56
+ }
@@ -0,0 +1,7 @@
1
+ /*
2
+ Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.com/yui/license.html
5
+ version: 2.8.1
6
+ */
7
+ .yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
@@ -0,0 +1,691 @@
1
+ /*
2
+ Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.com/yui/license.html
5
+ version: 2.8.1
6
+ */
7
+ /**
8
+ *
9
+ * @module progressbar
10
+ * @requires yahoo, dom, event, element
11
+ * @optional animation
12
+ * @title ProgressBar Widget
13
+ */
14
+
15
+ (function () {
16
+ var Dom = YAHOO.util.Dom,
17
+ Lang = YAHOO.lang,
18
+ // ClassNames
19
+ CLASS_PROGBAR = 'yui-pb',
20
+ CLASS_MASK = CLASS_PROGBAR + '-mask',
21
+ CLASS_BAR = CLASS_PROGBAR + '-bar',
22
+ CLASS_ANIM = CLASS_PROGBAR + '-anim',
23
+ CLASS_TL = CLASS_PROGBAR + '-tl',
24
+ CLASS_TR = CLASS_PROGBAR + '-tr',
25
+ CLASS_BL = CLASS_PROGBAR + '-bl',
26
+ CLASS_BR = CLASS_PROGBAR + '-br',
27
+
28
+ // Configuration attributes
29
+ WIDTH = 'width',
30
+ HEIGHT = 'height',
31
+ MIN_VALUE = 'minValue',
32
+ MAX_VALUE = 'maxValue',
33
+ VALUE = 'value',
34
+ ANIM = 'anim',
35
+ DIRECTION = 'direction',
36
+ DIRECTION_LTR = 'ltr',
37
+ DIRECTION_RTL = 'rtl',
38
+ DIRECTION_TTB = 'ttb',
39
+ DIRECTION_BTT = 'btt',
40
+ BAR_EL = 'barEl',
41
+ MASK_EL = 'maskEl',
42
+ ARIA_TEXT_TEMPLATE = 'ariaTextTemplate',
43
+
44
+ // Events
45
+ START = 'start',
46
+ PROGRESS = 'progress',
47
+ COMPLETE = 'complete';
48
+
49
+ /**
50
+ * The ProgressBar widget provides an easy way to draw a bar depicting progress of an operation,
51
+ * a level meter, rating or any such simple linear measure.
52
+ * It allows for highly customized styles including animation, vertical or horizontal and forward or reverse.
53
+ * @namespace YAHOO.widget
54
+ * @class ProgressBar
55
+ * @extends YAHOO.util.Element
56
+ * @param oConfigs {object} An object containing any configuration attributes to be set
57
+ * @constructor
58
+ */
59
+ var Prog = function(oConfigs) {
60
+ YAHOO.log('Creating ProgressBar instance','info','ProgressBar');
61
+
62
+ Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
63
+ this._init(oConfigs);
64
+
65
+ };
66
+
67
+ YAHOO.widget.ProgressBar = Prog;
68
+
69
+ /**
70
+ * String containing the HTML string which is the basis for the Progress Bar.
71
+ *
72
+ * @property ProgressBar.MARKUP
73
+ * @type String
74
+ * @static
75
+ * @final
76
+ * @default (too long)
77
+ */
78
+ Prog.MARKUP = [
79
+ '<div class="',
80
+ CLASS_BAR,
81
+ '"></div><div class="',
82
+ CLASS_MASK,
83
+ '"><div class="',
84
+ CLASS_TL,
85
+ '"></div><div class="',
86
+ CLASS_TR,
87
+ '"></div><div class="',
88
+ CLASS_BL,
89
+ '"></div><div class="',
90
+ CLASS_BR,
91
+ '"></div></div>'
92
+ ].join('');
93
+
94
+
95
+ Lang.extend(Prog, YAHOO.util.Element, {
96
+ /**
97
+ * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
98
+ * It is called after <a href="#method_initAttributes">initAttributes</a>
99
+ *
100
+ * @method _init
101
+ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
102
+ * @protected
103
+ */
104
+ _init: function (oConfigs) {
105
+ /**
106
+ * Fires when the value is about to change. It reports the starting value
107
+ * @event start
108
+ * @type CustomEvent
109
+ * @param value {Number} the current (initial) value
110
+ */
111
+ // No actual creation required, event will be created when subscribed to
112
+ //this.createEvent(START);
113
+ /**
114
+ * If animation is active, it will trigger several times during the animation providing intermediate values
115
+ * If animation is not active, it will fire only once providing the end value
116
+ * @event progress
117
+ * @type CustomEvent
118
+ * @param value{Number} the current, changing value
119
+ */
120
+ // No actual creation required, event will be created when subscribed to
121
+ //this.createEvent(PROGRESS);
122
+ /**
123
+ * Fires at the end of the animation or immediately upon changing values if animation is not loaded
124
+ * @event complete
125
+ * @type CustomEvent
126
+ * @param value {Number} the current (final) value
127
+ */
128
+ // No actual creation required, event will be created when listened to
129
+ //this.createEvent(COMPLETE);
130
+
131
+
132
+ },
133
+ /**
134
+ * Implementation of Element's abstract method. Sets up config values.
135
+ *
136
+ * @method initAttributes
137
+ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
138
+ * @private
139
+ */
140
+ initAttributes: function (oConfigs) {
141
+ YAHOO.log('Initializing configuration attributes','info','ProgressBar');
142
+
143
+ Prog.superclass.initAttributes.call(this, oConfigs);
144
+ this.set('innerHTML',Prog.MARKUP);
145
+ this.addClass(CLASS_PROGBAR);
146
+
147
+ // I need to apply at least the following styles, if present in oConfigs,
148
+ // to the ProgressBar so when it later reads the width and height,
149
+ // they are already set to the correct values.
150
+ // id is important because it can be used as a CSS selector.
151
+ var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
152
+ while((key = presets.pop())) {
153
+ if (key in oConfigs) {
154
+ this.set(key,oConfigs[key]);
155
+ }
156
+ }
157
+
158
+
159
+ /**
160
+ * @attribute barEl
161
+ * @description Reference to the HTML object that makes the moving bar (read-only)
162
+ * @type HTMLElement (div)
163
+ * @readonly
164
+ */
165
+ this.setAttributeConfig(BAR_EL, {
166
+ readOnly: true,
167
+ value: this.getElementsByClassName(CLASS_BAR)[0]
168
+ });
169
+ /**
170
+ * @attribute maskEl
171
+ * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
172
+ * @type HTMLElement (table)
173
+ * @readonly
174
+ */
175
+ this.setAttributeConfig(MASK_EL, {
176
+ readOnly: true,
177
+ value: this.getElementsByClassName(CLASS_MASK)[0]
178
+ });
179
+
180
+
181
+ /**
182
+ * @attribute direction
183
+ * @description Direction of movement of the bar.
184
+ * It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
185
+ * Can only be set once and only before rendering.
186
+ * @default 'ltr'
187
+ * @type String (any of "ltr", "rtl", "ttb" or "btt")
188
+ */
189
+ this.setAttributeConfig(DIRECTION, {
190
+ value:DIRECTION_LTR,
191
+ validator:function(value) {
192
+ if (this._rendered) { return false; }
193
+ switch (value) {
194
+ case DIRECTION_LTR:
195
+ case DIRECTION_RTL:
196
+ case DIRECTION_TTB:
197
+ case DIRECTION_BTT:
198
+ return true;
199
+ default:
200
+ return false;
201
+ }
202
+ },
203
+ method: function(value) {
204
+ this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
205
+ }
206
+ });
207
+
208
+ /**
209
+ * @attribute maxValue
210
+ * @description Represents the top value for the bar.
211
+ * The bar will be fully extended when reaching this value.
212
+ * Values higher than this will be ignored.
213
+ * @default 100
214
+ * @type Number
215
+ */
216
+ this.setAttributeConfig(MAX_VALUE, {
217
+ value: 100,
218
+ validator: Lang.isNumber,
219
+ method: function (value) {
220
+ this.get('element').setAttribute('aria-valuemax',value);
221
+ if (this.get(VALUE) > value) { this.set(VALUE,value); }
222
+ }
223
+ });
224
+
225
+ /**
226
+ * @attribute minValue
227
+ * @description Represents the lowest value for the bar.
228
+ * The bar will be totally collapsed when reaching this value.
229
+ * Values lower than this will be ignored.
230
+ * @default 0
231
+ * @type Number
232
+ */
233
+
234
+ this.setAttributeConfig(MIN_VALUE, {
235
+ value: 0,
236
+ validator: Lang.isNumber,
237
+ method: function (value) {
238
+ this.get('element').setAttribute('aria-valuemin',value);
239
+ if (this.get(VALUE) < value) { this.set(VALUE,value); }
240
+ }
241
+ });
242
+ /**
243
+ * @attribute width
244
+ * @description Width of the ProgressBar.
245
+ * If a number, it will be assumed to be in pixels.
246
+ * If a string it should be a valid setting for the CSS width attribute.
247
+ * It will always be returned as a string including units.
248
+ * @default "200px"
249
+ * @type Number or String
250
+ */
251
+
252
+ this.setAttributeConfig(WIDTH, {
253
+ getter: function() {
254
+ return this.getStyle(WIDTH);
255
+ },
256
+ method: this._widthChange
257
+ });
258
+
259
+
260
+ /**
261
+ * @attribute height
262
+ * @description Height of the ProgressBar.
263
+ * If a number, it will be assumed to be in pixels.
264
+ * If a string it should be a valid setting for the CSS height attribute.
265
+ * It will always be returned as a string including units.
266
+ * @default "20px"
267
+ * @type Number or String
268
+ */
269
+ this.setAttributeConfig(HEIGHT, {
270
+ getter:function() {
271
+ return this.getStyle(HEIGHT);
272
+ },
273
+ method: this._heightChange
274
+ });
275
+
276
+
277
+
278
+ /**
279
+ * @attribute ariaTextTemplate
280
+ * @description Text to be voiced by screen readers.
281
+ * The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.
282
+ * It can use the placeholders {value}, {minValue} and {maxValue}
283
+ * @default "{value}"
284
+ * @type String
285
+ */
286
+ this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
287
+ value:'{value}'
288
+ });
289
+
290
+ /**
291
+ * @attribute value
292
+ * @description The value for the bar.
293
+ * Valid values are in between the minValue and maxValue attributes.
294
+ * @default 0
295
+ * @type Number
296
+ */
297
+ this.setAttributeConfig(VALUE, {
298
+ value: 0,
299
+ validator: function(value) {
300
+ return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
301
+ },
302
+ method: this._valueChange
303
+ });
304
+
305
+ /**
306
+ * @attribute anim
307
+ * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
308
+ * If a boolean, it will enable/disable animation creating its own instance of the animation utility.
309
+ * If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
310
+ * The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
311
+ * When read, it returns the instance of the animation utility in use or null if none.
312
+ * It can be used to set the animation parameters such as easing methods or duration.
313
+ * @default null
314
+ * @type {boolean} or {instance of YAHOO.util.Anim}
315
+ */
316
+ this.setAttributeConfig(ANIM, {
317
+ validator: function(value) {
318
+ return !!YAHOO.util.Anim;
319
+ },
320
+ setter: this._animSetter
321
+ });
322
+
323
+
324
+ },
325
+ /**
326
+ * Renders the ProgressBar into the given container.
327
+ * If the container has other content, the ProgressBar will be appended to it.
328
+ * If the second argument is provided, the ProgressBar will be inserted before the given child.
329
+ * The method is chainable since it returns a reference to this instance.
330
+ * @method render
331
+ * @param el {HTML Element} HTML element that will contain the ProgressBar
332
+ * @param before {HTML Element} (optional) If present, the ProgressBar will be inserted before this element.
333
+ * @return {YAHOO.widget.ProgressBar}
334
+ * @chainable
335
+ */
336
+ render: function(parent,before) {
337
+
338
+ YAHOO.log('start render','info','ProgressBar');
339
+ if (this._rendered) { return; }
340
+ this._rendered = true;
341
+
342
+ var direction = this.get(DIRECTION);
343
+
344
+ // If the developer set a className attribute on initialization,
345
+ // Element would have wiped out my own classNames
346
+ // So I need to insist on them, plus add the one for direction.
347
+ this.addClass(CLASS_PROGBAR);
348
+ this.addClass(CLASS_PROGBAR + '-' + direction);
349
+
350
+ var container = this.get('element');
351
+ container.tabIndex = 0;
352
+ container.setAttribute('role','progressbar');
353
+ container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
354
+ container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
355
+
356
+ this.appendTo(parent,before);
357
+
358
+
359
+ // I need to use the non-animated bar resizing function for initial redraw
360
+ this._barSizeFunction = this._barSizeFunctions[0][direction];
361
+ this.redraw();
362
+ this._previousValue = this.get(VALUE);
363
+ this._fixEdges();
364
+ // I can now set the correct bar resizer
365
+ if (this.get(ANIM)) {
366
+ this._barSizeFunction = this._barSizeFunctions[1][direction];
367
+ }
368
+
369
+ this.on('minValueChange',this.redraw);
370
+ this.on('maxValueChange',this.redraw);
371
+
372
+ return this;
373
+ },
374
+
375
+ /**
376
+ * Recalculates the bar size and position and redraws it
377
+ * @method redraw
378
+ * @return void
379
+ */
380
+ redraw: function () {
381
+ YAHOO.log('Redraw','info','ProgressBar');
382
+ this._recalculateConstants();
383
+ this._valueChange(this.get(VALUE));
384
+ },
385
+
386
+ /**
387
+ * Destroys the ProgressBar, related objects and unsubscribes from all events
388
+ * @method destroy
389
+ * @return void
390
+ */
391
+ destroy: function() {
392
+ YAHOO.log('destroy','info','ProgressBar');
393
+ this.set(ANIM,false);
394
+ this.unsubscribeAll();
395
+ var el = this.get('element');
396
+ if (el.parentNode) { el.parentNode.removeChild(el); }
397
+ },
398
+ /**
399
+ * The previous value setting for the bar. Used mostly as information to event listeners
400
+ * @property _previousValue
401
+ * @type Number
402
+ * @private
403
+ * @default 0
404
+ */
405
+ _previousValue:0,
406
+ /**
407
+ * The actual space (in pixels) available for the bar within the mask (excludes margins)
408
+ * @property _barSpace
409
+ * @type Number
410
+ * @private
411
+ * @default 100
412
+ */
413
+ _barSpace:100,
414
+ /**
415
+ * The factor to convert the actual value of the bar into pixels
416
+ * @property _barSpace
417
+ * @type Number
418
+ * @private
419
+ * @default 1
420
+ */
421
+ _barFactor:1,
422
+
423
+ /**
424
+ * A flag to signal that rendering has already happened
425
+ * @property _rendered
426
+ * @type boolean
427
+ * @private
428
+ * @default false
429
+ */
430
+ _rendered:false,
431
+
432
+ /**
433
+ * Function to be used to calculate bar size.
434
+ * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
435
+ * depending on direction and whether animation is active.
436
+ * @property _barSizeFunction
437
+ * @type {function}
438
+ * @default null
439
+ * @private
440
+ */
441
+ _barSizeFunction: null,
442
+
443
+ /**
444
+ * Method called when the height attribute is changed
445
+ * @method _heightChange
446
+ * @param {int or string} value New height, in pixels if int or string including units
447
+ * @return void
448
+ * @private
449
+ */
450
+ _heightChange: function(value) {
451
+ if (Lang.isNumber(value)) {
452
+ value += 'px';
453
+ }
454
+ this.setStyle(HEIGHT,value);
455
+ this._fixEdges();
456
+ this.redraw();
457
+ },
458
+
459
+ /**
460
+ * Method called when the height attribute is changed
461
+ * @method _widthChange
462
+ * @param {int or string} value New width, in pixels if int or string including units
463
+ * @return void
464
+ * @private
465
+ */
466
+ _widthChange: function(value) {
467
+ if (Lang.isNumber(value)) {
468
+ value += 'px';
469
+ }
470
+ this.setStyle(WIDTH,value);
471
+ this._fixEdges();
472
+ this.redraw();
473
+ },
474
+
475
+ /**
476
+ * Due to rounding differences, some browsers fail to cover the whole area
477
+ * with the mask quadrants when the width or height is odd. This method
478
+ * stretches the lower and/or right quadrants to make the difference.
479
+ * @method _fixEdges
480
+ * @return void
481
+ * @private
482
+ */
483
+ _fixEdges:function() {
484
+ if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
485
+ var maskEl = this.get(MASK_EL),
486
+ tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
487
+ trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
488
+ blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
489
+ brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
490
+ newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
491
+ parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
492
+
493
+ Dom.setStyle(blEl,HEIGHT,newSize);
494
+ Dom.setStyle(brEl,HEIGHT,newSize);
495
+ newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
496
+ parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
497
+ Dom.setStyle(trEl,WIDTH,newSize);
498
+ Dom.setStyle(brEl,WIDTH,newSize);
499
+ },
500
+
501
+
502
+
503
+ /**
504
+ * Calculates some auxiliary values to make the rendering faster
505
+ * @method _recalculateConstants
506
+ * @return void
507
+ * @private
508
+ */
509
+ _recalculateConstants: function() {
510
+ YAHOO.log('Recalculating auxiliary factors','info','ProgressBar');
511
+ var barEl = this.get(BAR_EL);
512
+
513
+ switch (this.get(DIRECTION)) {
514
+ case DIRECTION_LTR:
515
+ case DIRECTION_RTL:
516
+ this._barSpace = parseInt(this.get(WIDTH),10) -
517
+ (parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
518
+ (parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
519
+ break;
520
+ case DIRECTION_TTB:
521
+ case DIRECTION_BTT:
522
+ this._barSpace = parseInt(this.get(HEIGHT),10) -
523
+ (parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
524
+ (parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0);
525
+ break;
526
+ }
527
+ this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0)) || 1;
528
+ },
529
+
530
+ /**
531
+ * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
532
+ * It creates and sets up or destroys the instance of the animation utility that will move the bar
533
+ * @method _animSetter
534
+ * @return void
535
+ * @private
536
+ */
537
+ _animSetter: function (value) {
538
+ var anim, barEl = this.get(BAR_EL);
539
+ if (value) {
540
+ YAHOO.log('Turning animation on','info','ProgressBar');
541
+ if (value instanceof YAHOO.util.Anim) {
542
+ anim = value;
543
+ } else {
544
+ anim = new YAHOO.util.Anim(barEl);
545
+ }
546
+ anim.onTween.subscribe(this._animOnTween,this,true);
547
+ anim.onComplete.subscribe(this._animComplete,this,true);
548
+
549
+ // Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
550
+ var oldSetAttribute = anim.setAttribute,
551
+ pb = this;
552
+ switch(this.get(DIRECTION)) {
553
+ case DIRECTION_BTT:
554
+ anim.setAttribute = function(attr , val , unit) {
555
+ val = Math.round(val);
556
+ oldSetAttribute.call(this,attr,val,unit);
557
+ Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
558
+ };
559
+ break;
560
+ case DIRECTION_RTL:
561
+ anim.setAttribute = function(attr , val , unit) {
562
+ val = Math.round(val);
563
+ oldSetAttribute.call(this,attr,val,unit);
564
+ Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
565
+ };
566
+ break;
567
+ }
568
+ // up to here
569
+
570
+ } else {
571
+ YAHOO.log('Turning animation off','info','ProgressBar');
572
+ anim = this.get(ANIM);
573
+ if (anim) {
574
+ anim.onTween.unsubscribeAll();
575
+ anim.onComplete.unsubscribeAll();
576
+ }
577
+ anim = null;
578
+ }
579
+ this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
580
+ return anim;
581
+ },
582
+
583
+ _animComplete: function() {
584
+ YAHOO.log('Animation completed','info','ProgressBar');
585
+ var value = this.get(VALUE);
586
+ this._previousValue = value;
587
+ this.fireEvent(PROGRESS,value);
588
+ this.fireEvent(COMPLETE, value);
589
+ Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
590
+ },
591
+ _animOnTween:function (name,oArgs) {
592
+ var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
593
+ // The following fills the logger window too fast
594
+ //YAHOO.log('Animation onTween at: ' + value,'info','ProgressBar');
595
+ this.fireEvent(PROGRESS,value);
596
+ },
597
+
598
+ /**
599
+ * Called in response to a change in the <a href="#config_value">value</a> attribute.
600
+ * Moves the bar to reflect the new value
601
+ * @method _valueChange
602
+ * @return void
603
+ * @private
604
+ */
605
+ _valueChange: function (value) {
606
+ YAHOO.log('set value: ' + value,'info','ProgressBar');
607
+ var anim = this.get(ANIM),
608
+ pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
609
+ barEl = this.get(BAR_EL);
610
+
611
+ this._setAriaText(value);
612
+ if (this._rendered) {
613
+ if (anim) {
614
+ anim.stop();
615
+ if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
616
+ }
617
+ this.fireEvent(START,this._previousValue);
618
+ this._barSizeFunction(value, pixelValue, barEl, anim);
619
+ }
620
+ },
621
+
622
+ /**
623
+ * Utility method to set the ARIA value attributes
624
+ * @method _setAriaText
625
+ * @return void
626
+ * @private
627
+ */
628
+ _setAriaText: function(value) {
629
+ // When animated, this fills the logger window too fast
630
+ //YAHOO.log('Show template','info','ProgressBar');
631
+
632
+ var container = this.get('element'),
633
+ text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
634
+ value:value,
635
+ minValue:this.get(MIN_VALUE),
636
+ maxValue:this.get(MAX_VALUE)
637
+ });
638
+ container.setAttribute('aria-valuenow',value);
639
+ container.setAttribute('aria-valuetext',text);
640
+ }
641
+ });
642
+ /**
643
+ * Collection of functions used by to calculate the size of the bar.
644
+ * One of this will be used depending on direction and whether animation is active.
645
+ * @property _barSizeFunctions
646
+ * @type {collection of functions}
647
+ * @private
648
+ */
649
+ var b = [{},{}];
650
+ Prog.prototype._barSizeFunctions = b;
651
+
652
+ b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
653
+ Dom.setStyle(barEl,WIDTH, pixelValue + 'px');
654
+ this.fireEvent(PROGRESS,value);
655
+ this.fireEvent(COMPLETE,value);
656
+ };
657
+ b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
658
+ Dom.setStyle(barEl,WIDTH, pixelValue + 'px');
659
+ Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
660
+ this.fireEvent(PROGRESS,value);
661
+ this.fireEvent(COMPLETE,value);
662
+ };
663
+ b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
664
+ Dom.setStyle(barEl,HEIGHT, pixelValue + 'px');
665
+ this.fireEvent(PROGRESS,value);
666
+ this.fireEvent(COMPLETE,value);
667
+ };
668
+ b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
669
+ Dom.setStyle(barEl,HEIGHT, pixelValue + 'px');
670
+ Dom.setStyle(barEl,'top', (this._barSpace - pixelValue) + 'px');
671
+ this.fireEvent(PROGRESS,value);
672
+ this.fireEvent(COMPLETE,value);
673
+ };
674
+ b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
675
+ Dom.addClass(barEl,CLASS_ANIM);
676
+ this._tweenFactor = (value - this._previousValue) / anim.totalFrames / anim.duration;
677
+ anim.attributes = {width:{ to: pixelValue }};
678
+ anim.animate();
679
+ };
680
+ b[1][DIRECTION_RTL] = b[1][DIRECTION_LTR];
681
+ b[1][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
682
+ Dom.addClass(barEl,CLASS_ANIM);
683
+ this._tweenFactor = (value - this._previousValue) / anim.totalFrames / anim.duration;
684
+ anim.attributes = {height:{to: pixelValue}};
685
+ anim.animate();
686
+ };
687
+ b[1][DIRECTION_BTT] = b[1][DIRECTION_TTB];
688
+
689
+ })();
690
+
691
+ YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.1", build: "19"});