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,8 @@
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
+ (function(){var B=YAHOO.util.Dom,H=YAHOO.lang,X="yui-pb",Z=X+"-mask",W=X+"-bar",V=X+"-anim",M=X+"-tl",K=X+"-tr",J=X+"-bl",F=X+"-br",G="width",S="height",L="minValue",U="maxValue",I="value",A="anim",T="direction",D="ltr",P="rtl",d="ttb",O="btt",E="barEl",C="maskEl",R="ariaTextTemplate",Y="start",c="progress",Q="complete";var N=function(b){N.superclass.constructor.call(this,document.createElement("div"),b);this._init(b);};YAHOO.widget.ProgressBar=N;N.MARKUP=['<div class="',W,'"></div><div class="',Z,'"><div class="',M,'"></div><div class="',K,'"></div><div class="',J,'"></div><div class="',F,'"></div></div>'].join("");H.extend(N,YAHOO.util.Element,{_init:function(b){},initAttributes:function(f){N.superclass.initAttributes.call(this,f);this.set("innerHTML",N.MARKUP);this.addClass(X);var e,b=["id",G,S,"class","style"];while((e=b.pop())){if(e in f){this.set(e,f[e]);}}this.setAttributeConfig(E,{readOnly:true,value:this.getElementsByClassName(W)[0]});this.setAttributeConfig(C,{readOnly:true,value:this.getElementsByClassName(Z)[0]});this.setAttributeConfig(T,{value:D,validator:function(g){if(this._rendered){return false;}switch(g){case D:case P:case d:case O:return true;default:return false;}},method:function(g){this._barSizeFunction=this._barSizeFunctions[this.get(A)?1:0][g];}});this.setAttributeConfig(U,{value:100,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemax",g);if(this.get(I)>g){this.set(I,g);}}});this.setAttributeConfig(L,{value:0,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemin",g);if(this.get(I)<g){this.set(I,g);}}});this.setAttributeConfig(G,{getter:function(){return this.getStyle(G);},method:this._widthChange});this.setAttributeConfig(S,{getter:function(){return this.getStyle(S);},method:this._heightChange});this.setAttributeConfig(R,{value:"{value}"});this.setAttributeConfig(I,{value:0,validator:function(g){return H.isNumber(g)&&g>=this.get(L)&&g<=this.get(U);},method:this._valueChange});this.setAttributeConfig(A,{validator:function(g){return !!YAHOO.util.Anim;},setter:this._animSetter});},render:function(e,f){if(this._rendered){return;}this._rendered=true;var g=this.get(T);this.addClass(X);this.addClass(X+"-"+g);var b=this.get("element");b.tabIndex=0;b.setAttribute("role","progressbar");b.setAttribute("aria-valuemin",this.get(L));b.setAttribute("aria-valuemax",this.get(U));this.appendTo(e,f);this._barSizeFunction=this._barSizeFunctions[0][g];this.redraw();this._previousValue=this.get(I);this._fixEdges();if(this.get(A)){this._barSizeFunction=this._barSizeFunctions[1][g];}this.on("minValueChange",this.redraw);this.on("maxValueChange",this.redraw);return this;},redraw:function(){this._recalculateConstants();this._valueChange(this.get(I));},destroy:function(){this.set(A,false);this.unsubscribeAll();var b=this.get("element");if(b.parentNode){b.parentNode.removeChild(b);}},_previousValue:0,_barSpace:100,_barFactor:1,_rendered:false,_barSizeFunction:null,_heightChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(S,b);this._fixEdges();this.redraw();},_widthChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(G,b);this._fixEdges();this.redraw();},_fixEdges:function(){if(!this._rendered||YAHOO.env.ua.ie||YAHOO.env.ua.gecko){return;}var g=this.get(C),i=B.getElementsByClassName(M,undefined,g)[0],f=B.getElementsByClassName(K,undefined,g)[0],h=B.getElementsByClassName(J,undefined,g)[0],e=B.getElementsByClassName(F,undefined,g)[0],b=(parseInt(B.getStyle(g,S),10)-parseInt(B.getStyle(i,S),10))+"px";B.setStyle(h,S,b);B.setStyle(e,S,b);b=(parseInt(B.getStyle(g,G),10)-parseInt(B.getStyle(i,G),10))+"px";B.setStyle(f,G,b);B.setStyle(e,G,b);},_recalculateConstants:function(){var b=this.get(E);switch(this.get(T)){case D:case P:this._barSpace=parseInt(this.get(G),10)-(parseInt(B.getStyle(b,"marginLeft"),10)||0)-(parseInt(B.getStyle(b,"marginRight"),10)||0);break;case d:case O:this._barSpace=parseInt(this.get(S),10)-(parseInt(B.getStyle(b,"marginTop"),10)||0)-(parseInt(B.getStyle(b,"marginBottom"),10)||0);break;}this._barFactor=this._barSpace/(this.get(U)-(this.get(L)||0))||1;},_animSetter:function(g){var f,b=this.get(E);if(g){if(g instanceof YAHOO.util.Anim){f=g;}else{f=new YAHOO.util.Anim(b);}f.onTween.subscribe(this._animOnTween,this,true);f.onComplete.subscribe(this._animComplete,this,true);var h=f.setAttribute,e=this;switch(this.get(T)){case O:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"top",(e._barSpace-k)+"px");};break;case P:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"left",(e._barSpace-k)+"px");};break;}}else{f=this.get(A);if(f){f.onTween.unsubscribeAll();f.onComplete.unsubscribeAll();}f=null;}this._barSizeFunction=this._barSizeFunctions[f?1:0][this.get(T)];return f;},_animComplete:function(){var b=this.get(I);this._previousValue=b;this.fireEvent(c,b);this.fireEvent(Q,b);B.removeClass(this.get(E),V);},_animOnTween:function(b,e){var f=Math.floor(this._tweenFactor*e[0].currentFrame+this._previousValue);this.fireEvent(c,f);},_valueChange:function(g){var f=this.get(A),b=Math.floor((g-this.get(L))*this._barFactor),e=this.get(E);this._setAriaText(g);if(this._rendered){if(f){f.stop();if(f.isAnimated()){f._onComplete.fire();}}this.fireEvent(Y,this._previousValue);this._barSizeFunction(g,b,e,f);}},_setAriaText:function(e){var b=this.get("element"),f=H.substitute(this.get(R),{value:e,minValue:this.get(L),maxValue:this.get(U)});b.setAttribute("aria-valuenow",e);b.setAttribute("aria-valuetext",f);}});var a=[{},{}];N.prototype._barSizeFunctions=a;a[0][D]=function(g,b,e,f){B.setStyle(e,G,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][P]=function(g,b,e,f){B.setStyle(e,G,b+"px");B.setStyle(e,"left",(this._barSpace-b)+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][d]=function(g,b,e,f){B.setStyle(e,S,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][O]=function(g,b,e,f){B.setStyle(e,S,b+"px");B.setStyle(e,"top",(this._barSpace-b)+"px");
8
+ this.fireEvent(c,g);this.fireEvent(Q,g);};a[1][D]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={width:{to:b}};f.animate();};a[1][P]=a[1][D];a[1][d]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={height:{to:b}};f.animate();};a[1][O]=a[1][d];})();YAHOO.register("progressbar",YAHOO.widget.ProgressBar,{version:"2.8.1",build:"19"});
@@ -0,0 +1,677 @@
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
+
61
+ Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
62
+ this._init(oConfigs);
63
+
64
+ };
65
+
66
+ YAHOO.widget.ProgressBar = Prog;
67
+
68
+ /**
69
+ * String containing the HTML string which is the basis for the Progress Bar.
70
+ *
71
+ * @property ProgressBar.MARKUP
72
+ * @type String
73
+ * @static
74
+ * @final
75
+ * @default (too long)
76
+ */
77
+ Prog.MARKUP = [
78
+ '<div class="',
79
+ CLASS_BAR,
80
+ '"></div><div class="',
81
+ CLASS_MASK,
82
+ '"><div class="',
83
+ CLASS_TL,
84
+ '"></div><div class="',
85
+ CLASS_TR,
86
+ '"></div><div class="',
87
+ CLASS_BL,
88
+ '"></div><div class="',
89
+ CLASS_BR,
90
+ '"></div></div>'
91
+ ].join('');
92
+
93
+
94
+ Lang.extend(Prog, YAHOO.util.Element, {
95
+ /**
96
+ * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
97
+ * It is called after <a href="#method_initAttributes">initAttributes</a>
98
+ *
99
+ * @method _init
100
+ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
101
+ * @protected
102
+ */
103
+ _init: function (oConfigs) {
104
+ /**
105
+ * Fires when the value is about to change. It reports the starting value
106
+ * @event start
107
+ * @type CustomEvent
108
+ * @param value {Number} the current (initial) value
109
+ */
110
+ // No actual creation required, event will be created when subscribed to
111
+ //this.createEvent(START);
112
+ /**
113
+ * If animation is active, it will trigger several times during the animation providing intermediate values
114
+ * If animation is not active, it will fire only once providing the end value
115
+ * @event progress
116
+ * @type CustomEvent
117
+ * @param value{Number} the current, changing value
118
+ */
119
+ // No actual creation required, event will be created when subscribed to
120
+ //this.createEvent(PROGRESS);
121
+ /**
122
+ * Fires at the end of the animation or immediately upon changing values if animation is not loaded
123
+ * @event complete
124
+ * @type CustomEvent
125
+ * @param value {Number} the current (final) value
126
+ */
127
+ // No actual creation required, event will be created when listened to
128
+ //this.createEvent(COMPLETE);
129
+
130
+
131
+ },
132
+ /**
133
+ * Implementation of Element's abstract method. Sets up config values.
134
+ *
135
+ * @method initAttributes
136
+ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
137
+ * @private
138
+ */
139
+ initAttributes: function (oConfigs) {
140
+
141
+ Prog.superclass.initAttributes.call(this, oConfigs);
142
+ this.set('innerHTML',Prog.MARKUP);
143
+ this.addClass(CLASS_PROGBAR);
144
+
145
+ // I need to apply at least the following styles, if present in oConfigs,
146
+ // to the ProgressBar so when it later reads the width and height,
147
+ // they are already set to the correct values.
148
+ // id is important because it can be used as a CSS selector.
149
+ var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
150
+ while((key = presets.pop())) {
151
+ if (key in oConfigs) {
152
+ this.set(key,oConfigs[key]);
153
+ }
154
+ }
155
+
156
+
157
+ /**
158
+ * @attribute barEl
159
+ * @description Reference to the HTML object that makes the moving bar (read-only)
160
+ * @type HTMLElement (div)
161
+ * @readonly
162
+ */
163
+ this.setAttributeConfig(BAR_EL, {
164
+ readOnly: true,
165
+ value: this.getElementsByClassName(CLASS_BAR)[0]
166
+ });
167
+ /**
168
+ * @attribute maskEl
169
+ * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
170
+ * @type HTMLElement (table)
171
+ * @readonly
172
+ */
173
+ this.setAttributeConfig(MASK_EL, {
174
+ readOnly: true,
175
+ value: this.getElementsByClassName(CLASS_MASK)[0]
176
+ });
177
+
178
+
179
+ /**
180
+ * @attribute direction
181
+ * @description Direction of movement of the bar.
182
+ * It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
183
+ * Can only be set once and only before rendering.
184
+ * @default 'ltr'
185
+ * @type String (any of "ltr", "rtl", "ttb" or "btt")
186
+ */
187
+ this.setAttributeConfig(DIRECTION, {
188
+ value:DIRECTION_LTR,
189
+ validator:function(value) {
190
+ if (this._rendered) { return false; }
191
+ switch (value) {
192
+ case DIRECTION_LTR:
193
+ case DIRECTION_RTL:
194
+ case DIRECTION_TTB:
195
+ case DIRECTION_BTT:
196
+ return true;
197
+ default:
198
+ return false;
199
+ }
200
+ },
201
+ method: function(value) {
202
+ this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
203
+ }
204
+ });
205
+
206
+ /**
207
+ * @attribute maxValue
208
+ * @description Represents the top value for the bar.
209
+ * The bar will be fully extended when reaching this value.
210
+ * Values higher than this will be ignored.
211
+ * @default 100
212
+ * @type Number
213
+ */
214
+ this.setAttributeConfig(MAX_VALUE, {
215
+ value: 100,
216
+ validator: Lang.isNumber,
217
+ method: function (value) {
218
+ this.get('element').setAttribute('aria-valuemax',value);
219
+ if (this.get(VALUE) > value) { this.set(VALUE,value); }
220
+ }
221
+ });
222
+
223
+ /**
224
+ * @attribute minValue
225
+ * @description Represents the lowest value for the bar.
226
+ * The bar will be totally collapsed when reaching this value.
227
+ * Values lower than this will be ignored.
228
+ * @default 0
229
+ * @type Number
230
+ */
231
+
232
+ this.setAttributeConfig(MIN_VALUE, {
233
+ value: 0,
234
+ validator: Lang.isNumber,
235
+ method: function (value) {
236
+ this.get('element').setAttribute('aria-valuemin',value);
237
+ if (this.get(VALUE) < value) { this.set(VALUE,value); }
238
+ }
239
+ });
240
+ /**
241
+ * @attribute width
242
+ * @description Width of the ProgressBar.
243
+ * If a number, it will be assumed to be in pixels.
244
+ * If a string it should be a valid setting for the CSS width attribute.
245
+ * It will always be returned as a string including units.
246
+ * @default "200px"
247
+ * @type Number or String
248
+ */
249
+
250
+ this.setAttributeConfig(WIDTH, {
251
+ getter: function() {
252
+ return this.getStyle(WIDTH);
253
+ },
254
+ method: this._widthChange
255
+ });
256
+
257
+
258
+ /**
259
+ * @attribute height
260
+ * @description Height of the ProgressBar.
261
+ * If a number, it will be assumed to be in pixels.
262
+ * If a string it should be a valid setting for the CSS height attribute.
263
+ * It will always be returned as a string including units.
264
+ * @default "20px"
265
+ * @type Number or String
266
+ */
267
+ this.setAttributeConfig(HEIGHT, {
268
+ getter:function() {
269
+ return this.getStyle(HEIGHT);
270
+ },
271
+ method: this._heightChange
272
+ });
273
+
274
+
275
+
276
+ /**
277
+ * @attribute ariaTextTemplate
278
+ * @description Text to be voiced by screen readers.
279
+ * The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.
280
+ * It can use the placeholders {value}, {minValue} and {maxValue}
281
+ * @default "{value}"
282
+ * @type String
283
+ */
284
+ this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
285
+ value:'{value}'
286
+ });
287
+
288
+ /**
289
+ * @attribute value
290
+ * @description The value for the bar.
291
+ * Valid values are in between the minValue and maxValue attributes.
292
+ * @default 0
293
+ * @type Number
294
+ */
295
+ this.setAttributeConfig(VALUE, {
296
+ value: 0,
297
+ validator: function(value) {
298
+ return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
299
+ },
300
+ method: this._valueChange
301
+ });
302
+
303
+ /**
304
+ * @attribute anim
305
+ * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
306
+ * If a boolean, it will enable/disable animation creating its own instance of the animation utility.
307
+ * If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
308
+ * The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
309
+ * When read, it returns the instance of the animation utility in use or null if none.
310
+ * It can be used to set the animation parameters such as easing methods or duration.
311
+ * @default null
312
+ * @type {boolean} or {instance of YAHOO.util.Anim}
313
+ */
314
+ this.setAttributeConfig(ANIM, {
315
+ validator: function(value) {
316
+ return !!YAHOO.util.Anim;
317
+ },
318
+ setter: this._animSetter
319
+ });
320
+
321
+
322
+ },
323
+ /**
324
+ * Renders the ProgressBar into the given container.
325
+ * If the container has other content, the ProgressBar will be appended to it.
326
+ * If the second argument is provided, the ProgressBar will be inserted before the given child.
327
+ * The method is chainable since it returns a reference to this instance.
328
+ * @method render
329
+ * @param el {HTML Element} HTML element that will contain the ProgressBar
330
+ * @param before {HTML Element} (optional) If present, the ProgressBar will be inserted before this element.
331
+ * @return {YAHOO.widget.ProgressBar}
332
+ * @chainable
333
+ */
334
+ render: function(parent,before) {
335
+
336
+ if (this._rendered) { return; }
337
+ this._rendered = true;
338
+
339
+ var direction = this.get(DIRECTION);
340
+
341
+ // If the developer set a className attribute on initialization,
342
+ // Element would have wiped out my own classNames
343
+ // So I need to insist on them, plus add the one for direction.
344
+ this.addClass(CLASS_PROGBAR);
345
+ this.addClass(CLASS_PROGBAR + '-' + direction);
346
+
347
+ var container = this.get('element');
348
+ container.tabIndex = 0;
349
+ container.setAttribute('role','progressbar');
350
+ container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
351
+ container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
352
+
353
+ this.appendTo(parent,before);
354
+
355
+
356
+ // I need to use the non-animated bar resizing function for initial redraw
357
+ this._barSizeFunction = this._barSizeFunctions[0][direction];
358
+ this.redraw();
359
+ this._previousValue = this.get(VALUE);
360
+ this._fixEdges();
361
+ // I can now set the correct bar resizer
362
+ if (this.get(ANIM)) {
363
+ this._barSizeFunction = this._barSizeFunctions[1][direction];
364
+ }
365
+
366
+ this.on('minValueChange',this.redraw);
367
+ this.on('maxValueChange',this.redraw);
368
+
369
+ return this;
370
+ },
371
+
372
+ /**
373
+ * Recalculates the bar size and position and redraws it
374
+ * @method redraw
375
+ * @return void
376
+ */
377
+ redraw: function () {
378
+ this._recalculateConstants();
379
+ this._valueChange(this.get(VALUE));
380
+ },
381
+
382
+ /**
383
+ * Destroys the ProgressBar, related objects and unsubscribes from all events
384
+ * @method destroy
385
+ * @return void
386
+ */
387
+ destroy: function() {
388
+ this.set(ANIM,false);
389
+ this.unsubscribeAll();
390
+ var el = this.get('element');
391
+ if (el.parentNode) { el.parentNode.removeChild(el); }
392
+ },
393
+ /**
394
+ * The previous value setting for the bar. Used mostly as information to event listeners
395
+ * @property _previousValue
396
+ * @type Number
397
+ * @private
398
+ * @default 0
399
+ */
400
+ _previousValue:0,
401
+ /**
402
+ * The actual space (in pixels) available for the bar within the mask (excludes margins)
403
+ * @property _barSpace
404
+ * @type Number
405
+ * @private
406
+ * @default 100
407
+ */
408
+ _barSpace:100,
409
+ /**
410
+ * The factor to convert the actual value of the bar into pixels
411
+ * @property _barSpace
412
+ * @type Number
413
+ * @private
414
+ * @default 1
415
+ */
416
+ _barFactor:1,
417
+
418
+ /**
419
+ * A flag to signal that rendering has already happened
420
+ * @property _rendered
421
+ * @type boolean
422
+ * @private
423
+ * @default false
424
+ */
425
+ _rendered:false,
426
+
427
+ /**
428
+ * Function to be used to calculate bar size.
429
+ * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
430
+ * depending on direction and whether animation is active.
431
+ * @property _barSizeFunction
432
+ * @type {function}
433
+ * @default null
434
+ * @private
435
+ */
436
+ _barSizeFunction: null,
437
+
438
+ /**
439
+ * Method called when the height attribute is changed
440
+ * @method _heightChange
441
+ * @param {int or string} value New height, in pixels if int or string including units
442
+ * @return void
443
+ * @private
444
+ */
445
+ _heightChange: function(value) {
446
+ if (Lang.isNumber(value)) {
447
+ value += 'px';
448
+ }
449
+ this.setStyle(HEIGHT,value);
450
+ this._fixEdges();
451
+ this.redraw();
452
+ },
453
+
454
+ /**
455
+ * Method called when the height attribute is changed
456
+ * @method _widthChange
457
+ * @param {int or string} value New width, in pixels if int or string including units
458
+ * @return void
459
+ * @private
460
+ */
461
+ _widthChange: function(value) {
462
+ if (Lang.isNumber(value)) {
463
+ value += 'px';
464
+ }
465
+ this.setStyle(WIDTH,value);
466
+ this._fixEdges();
467
+ this.redraw();
468
+ },
469
+
470
+ /**
471
+ * Due to rounding differences, some browsers fail to cover the whole area
472
+ * with the mask quadrants when the width or height is odd. This method
473
+ * stretches the lower and/or right quadrants to make the difference.
474
+ * @method _fixEdges
475
+ * @return void
476
+ * @private
477
+ */
478
+ _fixEdges:function() {
479
+ if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
480
+ var maskEl = this.get(MASK_EL),
481
+ tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
482
+ trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
483
+ blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
484
+ brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
485
+ newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
486
+ parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
487
+
488
+ Dom.setStyle(blEl,HEIGHT,newSize);
489
+ Dom.setStyle(brEl,HEIGHT,newSize);
490
+ newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
491
+ parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
492
+ Dom.setStyle(trEl,WIDTH,newSize);
493
+ Dom.setStyle(brEl,WIDTH,newSize);
494
+ },
495
+
496
+
497
+
498
+ /**
499
+ * Calculates some auxiliary values to make the rendering faster
500
+ * @method _recalculateConstants
501
+ * @return void
502
+ * @private
503
+ */
504
+ _recalculateConstants: function() {
505
+ var barEl = this.get(BAR_EL);
506
+
507
+ switch (this.get(DIRECTION)) {
508
+ case DIRECTION_LTR:
509
+ case DIRECTION_RTL:
510
+ this._barSpace = parseInt(this.get(WIDTH),10) -
511
+ (parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
512
+ (parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
513
+ break;
514
+ case DIRECTION_TTB:
515
+ case DIRECTION_BTT:
516
+ this._barSpace = parseInt(this.get(HEIGHT),10) -
517
+ (parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
518
+ (parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0);
519
+ break;
520
+ }
521
+ this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0)) || 1;
522
+ },
523
+
524
+ /**
525
+ * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
526
+ * It creates and sets up or destroys the instance of the animation utility that will move the bar
527
+ * @method _animSetter
528
+ * @return void
529
+ * @private
530
+ */
531
+ _animSetter: function (value) {
532
+ var anim, barEl = this.get(BAR_EL);
533
+ if (value) {
534
+ if (value instanceof YAHOO.util.Anim) {
535
+ anim = value;
536
+ } else {
537
+ anim = new YAHOO.util.Anim(barEl);
538
+ }
539
+ anim.onTween.subscribe(this._animOnTween,this,true);
540
+ anim.onComplete.subscribe(this._animComplete,this,true);
541
+
542
+ // Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
543
+ var oldSetAttribute = anim.setAttribute,
544
+ pb = this;
545
+ switch(this.get(DIRECTION)) {
546
+ case DIRECTION_BTT:
547
+ anim.setAttribute = function(attr , val , unit) {
548
+ val = Math.round(val);
549
+ oldSetAttribute.call(this,attr,val,unit);
550
+ Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
551
+ };
552
+ break;
553
+ case DIRECTION_RTL:
554
+ anim.setAttribute = function(attr , val , unit) {
555
+ val = Math.round(val);
556
+ oldSetAttribute.call(this,attr,val,unit);
557
+ Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
558
+ };
559
+ break;
560
+ }
561
+ // up to here
562
+
563
+ } else {
564
+ anim = this.get(ANIM);
565
+ if (anim) {
566
+ anim.onTween.unsubscribeAll();
567
+ anim.onComplete.unsubscribeAll();
568
+ }
569
+ anim = null;
570
+ }
571
+ this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
572
+ return anim;
573
+ },
574
+
575
+ _animComplete: function() {
576
+ var value = this.get(VALUE);
577
+ this._previousValue = value;
578
+ this.fireEvent(PROGRESS,value);
579
+ this.fireEvent(COMPLETE, value);
580
+ Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
581
+ },
582
+ _animOnTween:function (name,oArgs) {
583
+ var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
584
+ this.fireEvent(PROGRESS,value);
585
+ },
586
+
587
+ /**
588
+ * Called in response to a change in the <a href="#config_value">value</a> attribute.
589
+ * Moves the bar to reflect the new value
590
+ * @method _valueChange
591
+ * @return void
592
+ * @private
593
+ */
594
+ _valueChange: function (value) {
595
+ var anim = this.get(ANIM),
596
+ pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
597
+ barEl = this.get(BAR_EL);
598
+
599
+ this._setAriaText(value);
600
+ if (this._rendered) {
601
+ if (anim) {
602
+ anim.stop();
603
+ if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
604
+ }
605
+ this.fireEvent(START,this._previousValue);
606
+ this._barSizeFunction(value, pixelValue, barEl, anim);
607
+ }
608
+ },
609
+
610
+ /**
611
+ * Utility method to set the ARIA value attributes
612
+ * @method _setAriaText
613
+ * @return void
614
+ * @private
615
+ */
616
+ _setAriaText: function(value) {
617
+
618
+ var container = this.get('element'),
619
+ text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
620
+ value:value,
621
+ minValue:this.get(MIN_VALUE),
622
+ maxValue:this.get(MAX_VALUE)
623
+ });
624
+ container.setAttribute('aria-valuenow',value);
625
+ container.setAttribute('aria-valuetext',text);
626
+ }
627
+ });
628
+ /**
629
+ * Collection of functions used by to calculate the size of the bar.
630
+ * One of this will be used depending on direction and whether animation is active.
631
+ * @property _barSizeFunctions
632
+ * @type {collection of functions}
633
+ * @private
634
+ */
635
+ var b = [{},{}];
636
+ Prog.prototype._barSizeFunctions = b;
637
+
638
+ b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
639
+ Dom.setStyle(barEl,WIDTH, pixelValue + 'px');
640
+ this.fireEvent(PROGRESS,value);
641
+ this.fireEvent(COMPLETE,value);
642
+ };
643
+ b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
644
+ Dom.setStyle(barEl,WIDTH, pixelValue + 'px');
645
+ Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
646
+ this.fireEvent(PROGRESS,value);
647
+ this.fireEvent(COMPLETE,value);
648
+ };
649
+ b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
650
+ Dom.setStyle(barEl,HEIGHT, pixelValue + 'px');
651
+ this.fireEvent(PROGRESS,value);
652
+ this.fireEvent(COMPLETE,value);
653
+ };
654
+ b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
655
+ Dom.setStyle(barEl,HEIGHT, pixelValue + 'px');
656
+ Dom.setStyle(barEl,'top', (this._barSpace - pixelValue) + 'px');
657
+ this.fireEvent(PROGRESS,value);
658
+ this.fireEvent(COMPLETE,value);
659
+ };
660
+ b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
661
+ Dom.addClass(barEl,CLASS_ANIM);
662
+ this._tweenFactor = (value - this._previousValue) / anim.totalFrames / anim.duration;
663
+ anim.attributes = {width:{ to: pixelValue }};
664
+ anim.animate();
665
+ };
666
+ b[1][DIRECTION_RTL] = b[1][DIRECTION_LTR];
667
+ b[1][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
668
+ Dom.addClass(barEl,CLASS_ANIM);
669
+ this._tweenFactor = (value - this._previousValue) / anim.totalFrames / anim.duration;
670
+ anim.attributes = {height:{to: pixelValue}};
671
+ anim.animate();
672
+ };
673
+ b[1][DIRECTION_BTT] = b[1][DIRECTION_TTB];
674
+
675
+ })();
676
+
677
+ YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.1", build: "19"});