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,219 @@
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
+ * Augments the Event Utility with support for the mouseenter and mouseleave
9
+ * events: A mouseenter event fires the first time the mouse enters an
10
+ * element; a mouseleave event first the first time the mouse leaves an
11
+ * element.
12
+ *
13
+ * @module event-mouseenter
14
+ * @title Event Utility mouseenter and mouseout Module
15
+ * @namespace YAHOO.util
16
+ * @requires event
17
+ */
18
+
19
+ (function () {
20
+
21
+ var Event = YAHOO.util.Event,
22
+ Lang = YAHOO.lang,
23
+
24
+ addListener = Event.addListener,
25
+ removeListener = Event.removeListener,
26
+ getListeners = Event.getListeners,
27
+
28
+ delegates = [],
29
+
30
+ specialTypes = {
31
+ mouseenter: "mouseover",
32
+ mouseleave: "mouseout"
33
+ },
34
+
35
+ remove = function(el, type, fn) {
36
+
37
+ var index = Event._getCacheIndex(delegates, el, type, fn),
38
+ cacheItem,
39
+ returnVal;
40
+
41
+ if (index >= 0) {
42
+ cacheItem = delegates[index];
43
+ }
44
+
45
+ if (el && cacheItem) {
46
+
47
+ // removeListener will translate the value of type
48
+ returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
49
+
50
+ if (returnVal) {
51
+ delete delegates[index][2];
52
+ delete delegates[index][3];
53
+ delegates.splice(index, 1);
54
+ }
55
+
56
+ }
57
+
58
+ return returnVal;
59
+
60
+ };
61
+
62
+
63
+ Lang.augmentObject(Event._specialTypes, specialTypes);
64
+
65
+ Lang.augmentObject(Event, {
66
+
67
+ /**
68
+ * Creates a delegate function used to call mouseover and mouseleave
69
+ * event listeners specified via the
70
+ * <code>YAHOO.util.Event.addListener</code>
71
+ * or <code>YAHOO.util.Event.on</code> method.
72
+ *
73
+ * @method _createMouseDelegate
74
+ *
75
+ * @param {Function} fn The method (event listener) to call
76
+ * @param {Object} obj An arbitrary object that will be
77
+ * passed as a parameter to the listener
78
+ * @param {Boolean|object} overrideContext If true, the value of the
79
+ * obj parameter becomes the execution context
80
+ * of the listener. If an object, this object
81
+ * becomes the execution context.
82
+ * @return {Function} Function that will call the event listener
83
+ * specified by either the <code>YAHOO.util.Event.addListener</code>
84
+ * or <code>YAHOO.util.Event.on</code> method.
85
+ * @private
86
+ * @static
87
+ * @for Event
88
+ */
89
+ _createMouseDelegate: function (fn, obj, overrideContext) {
90
+
91
+ return function (event, container) {
92
+
93
+ var el = this,
94
+ relatedTarget = Event.getRelatedTarget(event),
95
+ context,
96
+ args;
97
+
98
+ if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
99
+
100
+ context = el;
101
+
102
+ if (overrideContext) {
103
+ if (overrideContext === true) {
104
+ context = obj;
105
+ } else {
106
+ context = overrideContext;
107
+ }
108
+ }
109
+
110
+ // The default args passed back to a mouseenter or
111
+ // mouseleave listener are: the event, the element
112
+ // to which the listener is bound, and any object the
113
+ // user passed when subscribing
114
+
115
+ args = [event, el, obj];
116
+
117
+ // Add the delegation container as an argument when
118
+ // delegating mouseenter and mouseleave
119
+
120
+ if (container) {
121
+ args.splice(2, 0, container);
122
+ }
123
+
124
+ return fn.apply(context, args);
125
+
126
+ }
127
+
128
+ };
129
+
130
+ },
131
+
132
+ addListener: function (el, type, fn, obj, overrideContext) {
133
+
134
+ var fnDelegate,
135
+ returnVal;
136
+
137
+ if (specialTypes[type]) {
138
+
139
+ fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
140
+
141
+ fnDelegate.mouseDelegate = true;
142
+
143
+ delegates.push([el, type, fn, fnDelegate]);
144
+
145
+ // addListener will translate the value of type
146
+ returnVal = addListener.call(Event, el, type, fnDelegate);
147
+
148
+ }
149
+ else {
150
+ returnVal = addListener.apply(Event, arguments);
151
+ }
152
+
153
+ return returnVal;
154
+
155
+ },
156
+
157
+ removeListener: function (el, type, fn) {
158
+
159
+ var returnVal;
160
+
161
+ if (specialTypes[type]) {
162
+ returnVal = remove.apply(Event, arguments);
163
+ }
164
+ else {
165
+ returnVal = removeListener.apply(Event, arguments);
166
+ }
167
+
168
+ return returnVal;
169
+
170
+ },
171
+
172
+ getListeners: function (el, type) {
173
+
174
+ // If the user specified the type as mouseover or mouseout,
175
+ // need to filter out those used by mouseenter and mouseleave.
176
+ // If the user specified the type as mouseenter or mouseleave,
177
+ // need to filter out the true mouseover and mouseout listeners.
178
+
179
+ var listeners = [],
180
+ elListeners,
181
+ bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
182
+ bMouseDelegate,
183
+ i,
184
+ l;
185
+
186
+ if (type && (bMouseOverOrOut || specialTypes[type])) {
187
+
188
+ elListeners = getListeners.call(Event, el, this._getType(type));
189
+
190
+ if (elListeners) {
191
+
192
+ for (i=elListeners.length-1; i>-1; i--) {
193
+
194
+ l = elListeners[i];
195
+ bMouseDelegate = l.fn.mouseDelegate;
196
+
197
+ if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
198
+ listeners.push(l);
199
+ }
200
+
201
+ }
202
+
203
+ }
204
+
205
+ }
206
+ else {
207
+ listeners = getListeners.apply(Event, arguments);
208
+ }
209
+
210
+ return (listeners && listeners.length) ? listeners : null;
211
+
212
+ }
213
+
214
+ }, true);
215
+
216
+ Event.on = Event.addListener;
217
+
218
+ }());
219
+ YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.1", build: "19"});
@@ -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
+ (function(){var B=YAHOO.util.Event,G=YAHOO.lang,E=B.addListener,F=B.removeListener,C=B.getListeners,D=[],H={mouseenter:"mouseover",mouseleave:"mouseout"},A=function(N,M,L){var J=B._getCacheIndex(D,N,M,L),I,K;if(J>=0){I=D[J];}if(N&&I){K=F.call(B,I[0],M,I[3]);if(K){delete D[J][2];delete D[J][3];D.splice(J,1);}}return K;};G.augmentObject(B._specialTypes,H);G.augmentObject(B,{_createMouseDelegate:function(I,J,K){return function(Q,M){var P=this,L=B.getRelatedTarget(Q),O,N;if(P!=L&&!YAHOO.util.Dom.isAncestor(P,L)){O=P;if(K){if(K===true){O=J;}else{O=K;}}N=[Q,P,J];if(M){N.splice(2,0,M);}return I.apply(O,N);}};},addListener:function(M,L,K,N,O){var I,J;if(H[L]){I=B._createMouseDelegate(K,N,O);I.mouseDelegate=true;D.push([M,L,K,I]);J=E.call(B,M,L,I);}else{J=E.apply(B,arguments);}return J;},removeListener:function(L,K,J){var I;if(H[K]){I=A.apply(B,arguments);}else{I=F.apply(B,arguments);}return I;},getListeners:function(N,M){var L=[],P,K=(M==="mouseover"||M==="mouseout"),O,J,I;if(M&&(K||H[M])){P=C.call(B,N,this._getType(M));if(P){for(J=P.length-1;J>-1;J--){I=P[J];O=I.fn.mouseDelegate;if((H[M]&&O)||(K&&!O)){L.push(I);}}}}else{L=C.apply(B,arguments);}return(L&&L.length)?L:null;}},true);B.on=B.addListener;}());YAHOO.register("event-mouseenter",YAHOO.util.Event,{version:"2.8.1",build:"19"});
@@ -0,0 +1,219 @@
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
+ * Augments the Event Utility with support for the mouseenter and mouseleave
9
+ * events: A mouseenter event fires the first time the mouse enters an
10
+ * element; a mouseleave event first the first time the mouse leaves an
11
+ * element.
12
+ *
13
+ * @module event-mouseenter
14
+ * @title Event Utility mouseenter and mouseout Module
15
+ * @namespace YAHOO.util
16
+ * @requires event
17
+ */
18
+
19
+ (function () {
20
+
21
+ var Event = YAHOO.util.Event,
22
+ Lang = YAHOO.lang,
23
+
24
+ addListener = Event.addListener,
25
+ removeListener = Event.removeListener,
26
+ getListeners = Event.getListeners,
27
+
28
+ delegates = [],
29
+
30
+ specialTypes = {
31
+ mouseenter: "mouseover",
32
+ mouseleave: "mouseout"
33
+ },
34
+
35
+ remove = function(el, type, fn) {
36
+
37
+ var index = Event._getCacheIndex(delegates, el, type, fn),
38
+ cacheItem,
39
+ returnVal;
40
+
41
+ if (index >= 0) {
42
+ cacheItem = delegates[index];
43
+ }
44
+
45
+ if (el && cacheItem) {
46
+
47
+ // removeListener will translate the value of type
48
+ returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
49
+
50
+ if (returnVal) {
51
+ delete delegates[index][2];
52
+ delete delegates[index][3];
53
+ delegates.splice(index, 1);
54
+ }
55
+
56
+ }
57
+
58
+ return returnVal;
59
+
60
+ };
61
+
62
+
63
+ Lang.augmentObject(Event._specialTypes, specialTypes);
64
+
65
+ Lang.augmentObject(Event, {
66
+
67
+ /**
68
+ * Creates a delegate function used to call mouseover and mouseleave
69
+ * event listeners specified via the
70
+ * <code>YAHOO.util.Event.addListener</code>
71
+ * or <code>YAHOO.util.Event.on</code> method.
72
+ *
73
+ * @method _createMouseDelegate
74
+ *
75
+ * @param {Function} fn The method (event listener) to call
76
+ * @param {Object} obj An arbitrary object that will be
77
+ * passed as a parameter to the listener
78
+ * @param {Boolean|object} overrideContext If true, the value of the
79
+ * obj parameter becomes the execution context
80
+ * of the listener. If an object, this object
81
+ * becomes the execution context.
82
+ * @return {Function} Function that will call the event listener
83
+ * specified by either the <code>YAHOO.util.Event.addListener</code>
84
+ * or <code>YAHOO.util.Event.on</code> method.
85
+ * @private
86
+ * @static
87
+ * @for Event
88
+ */
89
+ _createMouseDelegate: function (fn, obj, overrideContext) {
90
+
91
+ return function (event, container) {
92
+
93
+ var el = this,
94
+ relatedTarget = Event.getRelatedTarget(event),
95
+ context,
96
+ args;
97
+
98
+ if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
99
+
100
+ context = el;
101
+
102
+ if (overrideContext) {
103
+ if (overrideContext === true) {
104
+ context = obj;
105
+ } else {
106
+ context = overrideContext;
107
+ }
108
+ }
109
+
110
+ // The default args passed back to a mouseenter or
111
+ // mouseleave listener are: the event, the element
112
+ // to which the listener is bound, and any object the
113
+ // user passed when subscribing
114
+
115
+ args = [event, el, obj];
116
+
117
+ // Add the delegation container as an argument when
118
+ // delegating mouseenter and mouseleave
119
+
120
+ if (container) {
121
+ args.splice(2, 0, container);
122
+ }
123
+
124
+ return fn.apply(context, args);
125
+
126
+ }
127
+
128
+ };
129
+
130
+ },
131
+
132
+ addListener: function (el, type, fn, obj, overrideContext) {
133
+
134
+ var fnDelegate,
135
+ returnVal;
136
+
137
+ if (specialTypes[type]) {
138
+
139
+ fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
140
+
141
+ fnDelegate.mouseDelegate = true;
142
+
143
+ delegates.push([el, type, fn, fnDelegate]);
144
+
145
+ // addListener will translate the value of type
146
+ returnVal = addListener.call(Event, el, type, fnDelegate);
147
+
148
+ }
149
+ else {
150
+ returnVal = addListener.apply(Event, arguments);
151
+ }
152
+
153
+ return returnVal;
154
+
155
+ },
156
+
157
+ removeListener: function (el, type, fn) {
158
+
159
+ var returnVal;
160
+
161
+ if (specialTypes[type]) {
162
+ returnVal = remove.apply(Event, arguments);
163
+ }
164
+ else {
165
+ returnVal = removeListener.apply(Event, arguments);
166
+ }
167
+
168
+ return returnVal;
169
+
170
+ },
171
+
172
+ getListeners: function (el, type) {
173
+
174
+ // If the user specified the type as mouseover or mouseout,
175
+ // need to filter out those used by mouseenter and mouseleave.
176
+ // If the user specified the type as mouseenter or mouseleave,
177
+ // need to filter out the true mouseover and mouseout listeners.
178
+
179
+ var listeners = [],
180
+ elListeners,
181
+ bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
182
+ bMouseDelegate,
183
+ i,
184
+ l;
185
+
186
+ if (type && (bMouseOverOrOut || specialTypes[type])) {
187
+
188
+ elListeners = getListeners.call(Event, el, this._getType(type));
189
+
190
+ if (elListeners) {
191
+
192
+ for (i=elListeners.length-1; i>-1; i--) {
193
+
194
+ l = elListeners[i];
195
+ bMouseDelegate = l.fn.mouseDelegate;
196
+
197
+ if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
198
+ listeners.push(l);
199
+ }
200
+
201
+ }
202
+
203
+ }
204
+
205
+ }
206
+ else {
207
+ listeners = getListeners.apply(Event, arguments);
208
+ }
209
+
210
+ return (listeners && listeners.length) ? listeners : null;
211
+
212
+ }
213
+
214
+ }, true);
215
+
216
+ Event.on = Event.addListener;
217
+
218
+ }());
219
+ YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.1", build: "19"});
@@ -0,0 +1,622 @@
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
+ * DOM event simulation utility
10
+ * @module event-simulate
11
+ * @namespace YAHOO.util
12
+ * @requires yahoo,dom,event
13
+ */
14
+
15
+ /**
16
+ * The UserAction object provides functions that simulate events occurring in
17
+ * the browser. Since these are simulated events, they do not behave exactly
18
+ * as regular, user-initiated events do, but can be used to test simple
19
+ * user interactions safely.
20
+ *
21
+ * @namespace YAHOO.util
22
+ * @class UserAction
23
+ * @static
24
+ */
25
+ YAHOO.util.UserAction = {
26
+
27
+ //--------------------------------------------------------------------------
28
+ // Generic event methods
29
+ //--------------------------------------------------------------------------
30
+
31
+ /**
32
+ * Simulates a key event using the given event information to populate
33
+ * the generated event object. This method does browser-equalizing
34
+ * calculations to account for differences in the DOM and IE event models
35
+ * as well as different browser quirks. Note: keydown causes Safari 2.x to
36
+ * crash.
37
+ * @method simulateKeyEvent
38
+ * @private
39
+ * @static
40
+ * @param {HTMLElement} target The target of the given event.
41
+ * @param {String} type The type of event to fire. This can be any one of
42
+ * the following: keyup, keydown, and keypress.
43
+ * @param {Boolean} bubbles (Optional) Indicates if the event can be
44
+ * bubbled up. DOM Level 3 specifies that all key events bubble by
45
+ * default. The default is true.
46
+ * @param {Boolean} cancelable (Optional) Indicates if the event can be
47
+ * canceled using preventDefault(). DOM Level 3 specifies that all
48
+ * key events can be cancelled. The default
49
+ * is true.
50
+ * @param {Window} view (Optional) The view containing the target. This is
51
+ * typically the window object. The default is window.
52
+ * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
53
+ * is pressed while the event is firing. The default is false.
54
+ * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
55
+ * is pressed while the event is firing. The default is false.
56
+ * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
57
+ * is pressed while the event is firing. The default is false.
58
+ * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
59
+ * is pressed while the event is firing. The default is false.
60
+ * @param {int} keyCode (Optional) The code for the key that is in use.
61
+ * The default is 0.
62
+ * @param {int} charCode (Optional) The Unicode code for the character
63
+ * associated with the key being used. The default is 0.
64
+ */
65
+ simulateKeyEvent : function (target /*:HTMLElement*/, type /*:String*/,
66
+ bubbles /*:Boolean*/, cancelable /*:Boolean*/,
67
+ view /*:Window*/,
68
+ ctrlKey /*:Boolean*/, altKey /*:Boolean*/,
69
+ shiftKey /*:Boolean*/, metaKey /*:Boolean*/,
70
+ keyCode /*:int*/, charCode /*:int*/) /*:Void*/
71
+ {
72
+ //check target
73
+ target = YAHOO.util.Dom.get(target);
74
+ if (!target){
75
+ throw new Error("simulateKeyEvent(): Invalid target.");
76
+ }
77
+
78
+ //check event type
79
+ if (YAHOO.lang.isString(type)){
80
+ type = type.toLowerCase();
81
+ switch(type){
82
+ case "keyup":
83
+ case "keydown":
84
+ case "keypress":
85
+ break;
86
+ case "textevent": //DOM Level 3
87
+ type = "keypress";
88
+ break;
89
+ // @TODO was the fallthrough intentional, if so throw error
90
+ default:
91
+ throw new Error("simulateKeyEvent(): Event type '" + type + "' not supported.");
92
+ }
93
+ } else {
94
+ throw new Error("simulateKeyEvent(): Event type must be a string.");
95
+ }
96
+
97
+ //setup default values
98
+ if (!YAHOO.lang.isBoolean(bubbles)){
99
+ bubbles = true; //all key events bubble
100
+ }
101
+ if (!YAHOO.lang.isBoolean(cancelable)){
102
+ cancelable = true; //all key events can be cancelled
103
+ }
104
+ if (!YAHOO.lang.isObject(view)){
105
+ view = window; //view is typically window
106
+ }
107
+ if (!YAHOO.lang.isBoolean(ctrlKey)){
108
+ ctrlKey = false;
109
+ }
110
+ if (!YAHOO.lang.isBoolean(altKey)){
111
+ altKey = false;
112
+ }
113
+ if (!YAHOO.lang.isBoolean(shiftKey)){
114
+ shiftKey = false;
115
+ }
116
+ if (!YAHOO.lang.isBoolean(metaKey)){
117
+ metaKey = false;
118
+ }
119
+ if (!YAHOO.lang.isNumber(keyCode)){
120
+ keyCode = 0;
121
+ }
122
+ if (!YAHOO.lang.isNumber(charCode)){
123
+ charCode = 0;
124
+ }
125
+
126
+ //try to create a mouse event
127
+ var customEvent /*:MouseEvent*/ = null;
128
+
129
+ //check for DOM-compliant browsers first
130
+ if (YAHOO.lang.isFunction(document.createEvent)){
131
+
132
+ try {
133
+
134
+ //try to create key event
135
+ customEvent = document.createEvent("KeyEvents");
136
+
137
+ /*
138
+ * Interesting problem: Firefox implemented a non-standard
139
+ * version of initKeyEvent() based on DOM Level 2 specs.
140
+ * Key event was removed from DOM Level 2 and re-introduced
141
+ * in DOM Level 3 with a different interface. Firefox is the
142
+ * only browser with any implementation of Key Events, so for
143
+ * now, assume it's Firefox if the above line doesn't error.
144
+ */
145
+ //TODO: Decipher between Firefox's implementation and a correct one.
146
+ customEvent.initKeyEvent(type, bubbles, cancelable, view, ctrlKey,
147
+ altKey, shiftKey, metaKey, keyCode, charCode);
148
+
149
+ } catch (ex /*:Error*/){
150
+
151
+ /*
152
+ * If it got here, that means key events aren't officially supported.
153
+ * Safari/WebKit is a real problem now. WebKit 522 won't let you
154
+ * set keyCode, charCode, or other properties if you use a
155
+ * UIEvent, so we first must try to create a generic event. The
156
+ * fun part is that this will throw an error on Safari 2.x. The
157
+ * end result is that we need another try...catch statement just to
158
+ * deal with this mess.
159
+ */
160
+ try {
161
+
162
+ //try to create generic event - will fail in Safari 2.x
163
+ customEvent = document.createEvent("Events");
164
+
165
+ } catch (uierror /*:Error*/){
166
+
167
+ //the above failed, so create a UIEvent for Safari 2.x
168
+ customEvent = document.createEvent("UIEvents");
169
+
170
+ } finally {
171
+
172
+ customEvent.initEvent(type, bubbles, cancelable);
173
+
174
+ //initialize
175
+ customEvent.view = view;
176
+ customEvent.altKey = altKey;
177
+ customEvent.ctrlKey = ctrlKey;
178
+ customEvent.shiftKey = shiftKey;
179
+ customEvent.metaKey = metaKey;
180
+ customEvent.keyCode = keyCode;
181
+ customEvent.charCode = charCode;
182
+
183
+ }
184
+
185
+ }
186
+
187
+ //fire the event
188
+ target.dispatchEvent(customEvent);
189
+
190
+ } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
191
+
192
+ //create an IE event object
193
+ customEvent = document.createEventObject();
194
+
195
+ //assign available properties
196
+ customEvent.bubbles = bubbles;
197
+ customEvent.cancelable = cancelable;
198
+ customEvent.view = view;
199
+ customEvent.ctrlKey = ctrlKey;
200
+ customEvent.altKey = altKey;
201
+ customEvent.shiftKey = shiftKey;
202
+ customEvent.metaKey = metaKey;
203
+
204
+ /*
205
+ * IE doesn't support charCode explicitly. CharCode should
206
+ * take precedence over any keyCode value for accurate
207
+ * representation.
208
+ */
209
+ customEvent.keyCode = (charCode > 0) ? charCode : keyCode;
210
+
211
+ //fire the event
212
+ target.fireEvent("on" + type, customEvent);
213
+
214
+ } else {
215
+ throw new Error("simulateKeyEvent(): No event simulation framework present.");
216
+ }
217
+ },
218
+
219
+ /**
220
+ * Simulates a mouse event using the given event information to populate
221
+ * the generated event object. This method does browser-equalizing
222
+ * calculations to account for differences in the DOM and IE event models
223
+ * as well as different browser quirks.
224
+ * @method simulateMouseEvent
225
+ * @private
226
+ * @static
227
+ * @param {HTMLElement} target The target of the given event.
228
+ * @param {String} type The type of event to fire. This can be any one of
229
+ * the following: click, dblclick, mousedown, mouseup, mouseout,
230
+ * mouseover, and mousemove.
231
+ * @param {Boolean} bubbles (Optional) Indicates if the event can be
232
+ * bubbled up. DOM Level 2 specifies that all mouse events bubble by
233
+ * default. The default is true.
234
+ * @param {Boolean} cancelable (Optional) Indicates if the event can be
235
+ * canceled using preventDefault(). DOM Level 2 specifies that all
236
+ * mouse events except mousemove can be cancelled. The default
237
+ * is true for all events except mousemove, for which the default
238
+ * is false.
239
+ * @param {Window} view (Optional) The view containing the target. This is
240
+ * typically the window object. The default is window.
241
+ * @param {int} detail (Optional) The number of times the mouse button has
242
+ * been used. The default value is 1.
243
+ * @param {int} screenX (Optional) The x-coordinate on the screen at which
244
+ * point the event occured. The default is 0.
245
+ * @param {int} screenY (Optional) The y-coordinate on the screen at which
246
+ * point the event occured. The default is 0.
247
+ * @param {int} clientX (Optional) The x-coordinate on the client at which
248
+ * point the event occured. The default is 0.
249
+ * @param {int} clientY (Optional) The y-coordinate on the client at which
250
+ * point the event occured. The default is 0.
251
+ * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
252
+ * is pressed while the event is firing. The default is false.
253
+ * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
254
+ * is pressed while the event is firing. The default is false.
255
+ * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
256
+ * is pressed while the event is firing. The default is false.
257
+ * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
258
+ * is pressed while the event is firing. The default is false.
259
+ * @param {int} button (Optional) The button being pressed while the event
260
+ * is executing. The value should be 0 for the primary mouse button
261
+ * (typically the left button), 1 for the terciary mouse button
262
+ * (typically the middle button), and 2 for the secondary mouse button
263
+ * (typically the right button). The default is 0.
264
+ * @param {HTMLElement} relatedTarget (Optional) For mouseout events,
265
+ * this is the element that the mouse has moved to. For mouseover
266
+ * events, this is the element that the mouse has moved from. This
267
+ * argument is ignored for all other events. The default is null.
268
+ */
269
+ simulateMouseEvent : function (target /*:HTMLElement*/, type /*:String*/,
270
+ bubbles /*:Boolean*/, cancelable /*:Boolean*/,
271
+ view /*:Window*/, detail /*:int*/,
272
+ screenX /*:int*/, screenY /*:int*/,
273
+ clientX /*:int*/, clientY /*:int*/,
274
+ ctrlKey /*:Boolean*/, altKey /*:Boolean*/,
275
+ shiftKey /*:Boolean*/, metaKey /*:Boolean*/,
276
+ button /*:int*/, relatedTarget /*:HTMLElement*/) /*:Void*/
277
+ {
278
+
279
+ //check target
280
+ target = YAHOO.util.Dom.get(target);
281
+ if (!target){
282
+ throw new Error("simulateMouseEvent(): Invalid target.");
283
+ }
284
+
285
+ //check event type
286
+ if (YAHOO.lang.isString(type)){
287
+ type = type.toLowerCase();
288
+ switch(type){
289
+ case "mouseover":
290
+ case "mouseout":
291
+ case "mousedown":
292
+ case "mouseup":
293
+ case "click":
294
+ case "dblclick":
295
+ case "mousemove":
296
+ break;
297
+ default:
298
+ throw new Error("simulateMouseEvent(): Event type '" + type + "' not supported.");
299
+ }
300
+ } else {
301
+ throw new Error("simulateMouseEvent(): Event type must be a string.");
302
+ }
303
+
304
+ //setup default values
305
+ if (!YAHOO.lang.isBoolean(bubbles)){
306
+ bubbles = true; //all mouse events bubble
307
+ }
308
+ if (!YAHOO.lang.isBoolean(cancelable)){
309
+ cancelable = (type != "mousemove"); //mousemove is the only one that can't be cancelled
310
+ }
311
+ if (!YAHOO.lang.isObject(view)){
312
+ view = window; //view is typically window
313
+ }
314
+ if (!YAHOO.lang.isNumber(detail)){
315
+ detail = 1; //number of mouse clicks must be at least one
316
+ }
317
+ if (!YAHOO.lang.isNumber(screenX)){
318
+ screenX = 0;
319
+ }
320
+ if (!YAHOO.lang.isNumber(screenY)){
321
+ screenY = 0;
322
+ }
323
+ if (!YAHOO.lang.isNumber(clientX)){
324
+ clientX = 0;
325
+ }
326
+ if (!YAHOO.lang.isNumber(clientY)){
327
+ clientY = 0;
328
+ }
329
+ if (!YAHOO.lang.isBoolean(ctrlKey)){
330
+ ctrlKey = false;
331
+ }
332
+ if (!YAHOO.lang.isBoolean(altKey)){
333
+ altKey = false;
334
+ }
335
+ if (!YAHOO.lang.isBoolean(shiftKey)){
336
+ shiftKey = false;
337
+ }
338
+ if (!YAHOO.lang.isBoolean(metaKey)){
339
+ metaKey = false;
340
+ }
341
+ if (!YAHOO.lang.isNumber(button)){
342
+ button = 0;
343
+ }
344
+
345
+ //try to create a mouse event
346
+ var customEvent /*:MouseEvent*/ = null;
347
+
348
+ //check for DOM-compliant browsers first
349
+ if (YAHOO.lang.isFunction(document.createEvent)){
350
+
351
+ customEvent = document.createEvent("MouseEvents");
352
+
353
+ //Safari 2.x (WebKit 418) still doesn't implement initMouseEvent()
354
+ if (customEvent.initMouseEvent){
355
+ customEvent.initMouseEvent(type, bubbles, cancelable, view, detail,
356
+ screenX, screenY, clientX, clientY,
357
+ ctrlKey, altKey, shiftKey, metaKey,
358
+ button, relatedTarget);
359
+ } else { //Safari
360
+
361
+ //the closest thing available in Safari 2.x is UIEvents
362
+ customEvent = document.createEvent("UIEvents");
363
+ customEvent.initEvent(type, bubbles, cancelable);
364
+ customEvent.view = view;
365
+ customEvent.detail = detail;
366
+ customEvent.screenX = screenX;
367
+ customEvent.screenY = screenY;
368
+ customEvent.clientX = clientX;
369
+ customEvent.clientY = clientY;
370
+ customEvent.ctrlKey = ctrlKey;
371
+ customEvent.altKey = altKey;
372
+ customEvent.metaKey = metaKey;
373
+ customEvent.shiftKey = shiftKey;
374
+ customEvent.button = button;
375
+ customEvent.relatedTarget = relatedTarget;
376
+ }
377
+
378
+ /*
379
+ * Check to see if relatedTarget has been assigned. Firefox
380
+ * versions less than 2.0 don't allow it to be assigned via
381
+ * initMouseEvent() and the property is readonly after event
382
+ * creation, so in order to keep YAHOO.util.getRelatedTarget()
383
+ * working, assign to the IE proprietary toElement property
384
+ * for mouseout event and fromElement property for mouseover
385
+ * event.
386
+ */
387
+ if (relatedTarget && !customEvent.relatedTarget){
388
+ if (type == "mouseout"){
389
+ customEvent.toElement = relatedTarget;
390
+ } else if (type == "mouseover"){
391
+ customEvent.fromElement = relatedTarget;
392
+ }
393
+ }
394
+
395
+ //fire the event
396
+ target.dispatchEvent(customEvent);
397
+
398
+ } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
399
+
400
+ //create an IE event object
401
+ customEvent = document.createEventObject();
402
+
403
+ //assign available properties
404
+ customEvent.bubbles = bubbles;
405
+ customEvent.cancelable = cancelable;
406
+ customEvent.view = view;
407
+ customEvent.detail = detail;
408
+ customEvent.screenX = screenX;
409
+ customEvent.screenY = screenY;
410
+ customEvent.clientX = clientX;
411
+ customEvent.clientY = clientY;
412
+ customEvent.ctrlKey = ctrlKey;
413
+ customEvent.altKey = altKey;
414
+ customEvent.metaKey = metaKey;
415
+ customEvent.shiftKey = shiftKey;
416
+
417
+ //fix button property for IE's wacky implementation
418
+ switch(button){
419
+ case 0:
420
+ customEvent.button = 1;
421
+ break;
422
+ case 1:
423
+ customEvent.button = 4;
424
+ break;
425
+ case 2:
426
+ //leave as is
427
+ break;
428
+ default:
429
+ customEvent.button = 0;
430
+ }
431
+
432
+ /*
433
+ * Have to use relatedTarget because IE won't allow assignment
434
+ * to toElement or fromElement on generic events. This keeps
435
+ * YAHOO.util.customEvent.getRelatedTarget() functional.
436
+ */
437
+ customEvent.relatedTarget = relatedTarget;
438
+
439
+ //fire the event
440
+ target.fireEvent("on" + type, customEvent);
441
+
442
+ } else {
443
+ throw new Error("simulateMouseEvent(): No event simulation framework present.");
444
+ }
445
+ },
446
+
447
+ //--------------------------------------------------------------------------
448
+ // Mouse events
449
+ //--------------------------------------------------------------------------
450
+
451
+ /**
452
+ * Simulates a mouse event on a particular element.
453
+ * @param {HTMLElement} target The element to click on.
454
+ * @param {String} type The type of event to fire. This can be any one of
455
+ * the following: click, dblclick, mousedown, mouseup, mouseout,
456
+ * mouseover, and mousemove.
457
+ * @param {Object} options Additional event options (use DOM standard names).
458
+ * @method mouseEvent
459
+ * @static
460
+ */
461
+ fireMouseEvent : function (target /*:HTMLElement*/, type /*:String*/,
462
+ options /*:Object*/) /*:Void*/
463
+ {
464
+ options = options || {};
465
+ this.simulateMouseEvent(target, type, options.bubbles,
466
+ options.cancelable, options.view, options.detail, options.screenX,
467
+ options.screenY, options.clientX, options.clientY, options.ctrlKey,
468
+ options.altKey, options.shiftKey, options.metaKey, options.button,
469
+ options.relatedTarget);
470
+ },
471
+
472
+ /**
473
+ * Simulates a click on a particular element.
474
+ * @param {HTMLElement} target The element to click on.
475
+ * @param {Object} options Additional event options (use DOM standard names).
476
+ * @method click
477
+ * @static
478
+ */
479
+ click : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
480
+ this.fireMouseEvent(target, "click", options);
481
+ },
482
+
483
+ /**
484
+ * Simulates a double click on a particular element.
485
+ * @param {HTMLElement} target The element to double click on.
486
+ * @param {Object} options Additional event options (use DOM standard names).
487
+ * @method dblclick
488
+ * @static
489
+ */
490
+ dblclick : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
491
+ this.fireMouseEvent( target, "dblclick", options);
492
+ },
493
+
494
+ /**
495
+ * Simulates a mousedown on a particular element.
496
+ * @param {HTMLElement} target The element to act on.
497
+ * @param {Object} options Additional event options (use DOM standard names).
498
+ * @method mousedown
499
+ * @static
500
+ */
501
+ mousedown : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
502
+ this.fireMouseEvent(target, "mousedown", options);
503
+ },
504
+
505
+ /**
506
+ * Simulates a mousemove on a particular element.
507
+ * @param {HTMLElement} target The element to act on.
508
+ * @param {Object} options Additional event options (use DOM standard names).
509
+ * @method mousemove
510
+ * @static
511
+ */
512
+ mousemove : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
513
+ this.fireMouseEvent(target, "mousemove", options);
514
+ },
515
+
516
+ /**
517
+ * Simulates a mouseout event on a particular element. Use "relatedTarget"
518
+ * on the options object to specify where the mouse moved to.
519
+ * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
520
+ * toElement is assigned in its place. IE doesn't allow toElement to be
521
+ * be assigned, so relatedTarget is assigned in its place. Both of these
522
+ * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
523
+ * in both browsers.
524
+ * @param {HTMLElement} target The element to act on.
525
+ * @param {Object} options Additional event options (use DOM standard names).
526
+ * @method mouseout
527
+ * @static
528
+ */
529
+ mouseout : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
530
+ this.fireMouseEvent(target, "mouseout", options);
531
+ },
532
+
533
+ /**
534
+ * Simulates a mouseover event on a particular element. Use "relatedTarget"
535
+ * on the options object to specify where the mouse moved from.
536
+ * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
537
+ * fromElement is assigned in its place. IE doesn't allow fromElement to be
538
+ * be assigned, so relatedTarget is assigned in its place. Both of these
539
+ * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
540
+ * in both browsers.
541
+ * @param {HTMLElement} target The element to act on.
542
+ * @param {Object} options Additional event options (use DOM standard names).
543
+ * @method mouseover
544
+ * @static
545
+ */
546
+ mouseover : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
547
+ this.fireMouseEvent(target, "mouseover", options);
548
+ },
549
+
550
+ /**
551
+ * Simulates a mouseup on a particular element.
552
+ * @param {HTMLElement} target The element to act on.
553
+ * @param {Object} options Additional event options (use DOM standard names).
554
+ * @method mouseup
555
+ * @static
556
+ */
557
+ mouseup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
558
+ this.fireMouseEvent(target, "mouseup", options);
559
+ },
560
+
561
+ //--------------------------------------------------------------------------
562
+ // Key events
563
+ //--------------------------------------------------------------------------
564
+
565
+ /**
566
+ * Fires an event that normally would be fired by the keyboard (keyup,
567
+ * keydown, keypress). Make sure to specify either keyCode or charCode as
568
+ * an option.
569
+ * @private
570
+ * @param {String} type The type of event ("keyup", "keydown" or "keypress").
571
+ * @param {HTMLElement} target The target of the event.
572
+ * @param {Object} options Options for the event. Either keyCode or charCode
573
+ * are required.
574
+ * @method fireKeyEvent
575
+ * @static
576
+ */
577
+ fireKeyEvent : function (type /*:String*/, target /*:HTMLElement*/,
578
+ options /*:Object*/) /*:Void*/
579
+ {
580
+ options = options || {};
581
+ this.simulateKeyEvent(target, type, options.bubbles,
582
+ options.cancelable, options.view, options.ctrlKey,
583
+ options.altKey, options.shiftKey, options.metaKey,
584
+ options.keyCode, options.charCode);
585
+ },
586
+
587
+ /**
588
+ * Simulates a keydown event on a particular element.
589
+ * @param {HTMLElement} target The element to act on.
590
+ * @param {Object} options Additional event options (use DOM standard names).
591
+ * @method keydown
592
+ * @static
593
+ */
594
+ keydown : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
595
+ this.fireKeyEvent("keydown", target, options);
596
+ },
597
+
598
+ /**
599
+ * Simulates a keypress on a particular element.
600
+ * @param {HTMLElement} target The element to act on.
601
+ * @param {Object} options Additional event options (use DOM standard names).
602
+ * @method keypress
603
+ * @static
604
+ */
605
+ keypress : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
606
+ this.fireKeyEvent("keypress", target, options);
607
+ },
608
+
609
+ /**
610
+ * Simulates a keyup event on a particular element.
611
+ * @param {HTMLElement} target The element to act on.
612
+ * @param {Object} options Additional event options (use DOM standard names).
613
+ * @method keyup
614
+ * @static
615
+ */
616
+ keyup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
617
+ this.fireKeyEvent("keyup", target, options);
618
+ }
619
+
620
+
621
+ };
622
+ YAHOO.register("event-simulate", YAHOO.util.UserAction, {version: "2.8.1", build: "19"});