jquery-ui-rails 4.2.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -1
  3. data/History.md +45 -2
  4. data/README.md +100 -83
  5. data/Rakefile +82 -49
  6. data/VERSIONS.md +10 -0
  7. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  14. data/app/assets/javascripts/jquery-ui/data.js +39 -0
  15. data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
  16. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  17. data/app/assets/javascripts/jquery-ui/effect.js +954 -0
  18. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
  19. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
  20. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
  21. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
  22. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
  33. data/app/assets/javascripts/jquery-ui/focusable.js +79 -0
  34. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +81 -0
  35. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
  36. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
  37. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +41 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
  110. data/app/assets/javascripts/jquery-ui/jquery-patch.js +58 -0
  111. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  112. data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
  113. data/app/assets/javascripts/jquery-ui/labels.js +70 -0
  114. data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
  115. data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +123 -111
  116. data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
  117. data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
  118. data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
  119. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +691 -0
  120. data/app/assets/javascripts/jquery-ui/version.js +20 -0
  121. data/app/assets/javascripts/jquery-ui/widget.js +761 -0
  122. data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/widgets/accordion.js} +263 -209
  123. data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/widgets/autocomplete.js} +177 -142
  124. data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
  125. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +294 -0
  126. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
  127. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2240 -0
  128. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +957 -0
  129. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1264 -0
  130. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +508 -0
  131. data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/widgets/menu.js} +276 -189
  132. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +226 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +184 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1281 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +675 -0
  137. data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/widgets/slider.js} +256 -176
  138. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1614 -0
  139. data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/widgets/spinner.js} +200 -137
  140. data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/widgets/tabs.js} +322 -277
  141. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +528 -0
  142. data/app/assets/javascripts/jquery-ui.js +52 -0
  143. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  144. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  145. data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
  146. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  147. data/app/assets/stylesheets/jquery-ui/button.css +80 -0
  148. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  149. data/app/assets/stylesheets/jquery-ui/controlgroup.css +65 -0
  150. data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css} +15 -12
  151. data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css} +17 -8
  152. data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css} +43 -15
  153. data/app/assets/stylesheets/jquery-ui/draggable.css +14 -0
  154. data/app/assets/stylesheets/jquery-ui/menu.css +65 -0
  155. data/app/assets/stylesheets/jquery-ui/progressbar.css +30 -0
  156. data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css} +6 -6
  157. data/app/assets/stylesheets/jquery-ui/selectable.css +19 -0
  158. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  159. data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css} +8 -14
  160. data/app/assets/stylesheets/jquery-ui/sortable.css +14 -0
  161. data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css} +12 -27
  162. data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css} +6 -7
  163. data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +121 -102
  164. data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
  165. data/app/assets/stylesheets/jquery-ui.css +1 -0
  166. data/lib/jquery/ui/rails/version.rb +2 -2
  167. metadata +178 -169
  168. data/app/assets/images/jquery-ui/animated-overlay.gif +0 -0
  169. data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  170. data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  171. data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  172. data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  173. data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  174. data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  175. data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  176. data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  177. data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  178. data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  179. data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  180. data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  181. data/app/assets/javascripts/jquery.ui.all.js +0 -34
  182. data/app/assets/javascripts/jquery.ui.button.js +0 -398
  183. data/app/assets/javascripts/jquery.ui.core.js +0 -320
  184. data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  185. data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  186. data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  187. data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  188. data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  189. data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  190. data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  191. data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  192. data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  193. data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  194. data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  195. data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  196. data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  197. data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  198. data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  199. data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  200. data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  201. data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  202. data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  203. data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  204. data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  205. data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  206. data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  207. data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  208. data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  209. data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  210. data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  211. data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  212. data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  213. data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  214. data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  215. data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  216. data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  217. data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  218. data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  219. data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  220. data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  221. data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  222. data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  223. data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  224. data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  225. data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  226. data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  227. data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  228. data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  229. data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  230. data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  231. data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  232. data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  233. data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  234. data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  235. data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  236. data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  237. data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  238. data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  239. data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  240. data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  241. data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  242. data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  243. data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  244. data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  245. data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  246. data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  247. data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  248. data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  249. data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  250. data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  251. data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  252. data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  253. data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  254. data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  255. data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  256. data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  257. data/app/assets/javascripts/jquery.ui.datepicker.js +0 -2040
  258. data/app/assets/javascripts/jquery.ui.dialog.js +0 -830
  259. data/app/assets/javascripts/jquery.ui.draggable.js +0 -962
  260. data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
  261. data/app/assets/javascripts/jquery.ui.effect-blind.js +0 -84
  262. data/app/assets/javascripts/jquery.ui.effect-bounce.js +0 -115
  263. data/app/assets/javascripts/jquery.ui.effect-clip.js +0 -69
  264. data/app/assets/javascripts/jquery.ui.effect-drop.js +0 -67
  265. data/app/assets/javascripts/jquery.ui.effect-explode.js +0 -99
  266. data/app/assets/javascripts/jquery.ui.effect-fade.js +0 -32
  267. data/app/assets/javascripts/jquery.ui.effect-fold.js +0 -78
  268. data/app/assets/javascripts/jquery.ui.effect-highlight.js +0 -52
  269. data/app/assets/javascripts/jquery.ui.effect-pulsate.js +0 -65
  270. data/app/assets/javascripts/jquery.ui.effect-scale.js +0 -320
  271. data/app/assets/javascripts/jquery.ui.effect-shake.js +0 -76
  272. data/app/assets/javascripts/jquery.ui.effect-slide.js +0 -66
  273. data/app/assets/javascripts/jquery.ui.effect-transfer.js +0 -49
  274. data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
  275. data/app/assets/javascripts/jquery.ui.effect.js +0 -1289
  276. data/app/assets/javascripts/jquery.ui.mouse.js +0 -172
  277. data/app/assets/javascripts/jquery.ui.progressbar.js +0 -148
  278. data/app/assets/javascripts/jquery.ui.resizable.js +0 -982
  279. data/app/assets/javascripts/jquery.ui.selectable.js +0 -281
  280. data/app/assets/javascripts/jquery.ui.sortable.js +0 -1293
  281. data/app/assets/javascripts/jquery.ui.tooltip.js +0 -406
  282. data/app/assets/javascripts/jquery.ui.widget.js +0 -521
  283. data/app/assets/stylesheets/jquery.ui.accordion.css.erb +0 -42
  284. data/app/assets/stylesheets/jquery.ui.all.css.erb +0 -14
  285. data/app/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
  286. data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
  287. data/app/assets/stylesheets/jquery.ui.button.css.erb +0 -118
  288. data/app/assets/stylesheets/jquery.ui.menu.css.erb +0 -83
  289. data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -37
  290. data/app/assets/stylesheets/jquery.ui.selectable.css.erb +0 -17
  291. data/app/assets/stylesheets/jquery.ui.tooltip.css.erb +0 -25
@@ -0,0 +1,761 @@
1
+ //= require jquery-ui/version
2
+
3
+ /*!
4
+ * jQuery UI Widget 1.14.1
5
+ * https://jqueryui.com
6
+ *
7
+ * Copyright OpenJS Foundation and other contributors
8
+ * Released under the MIT license.
9
+ * https://jquery.org/license
10
+ */
11
+
12
+ //>>label: Widget
13
+ //>>group: Core
14
+ //>>description: Provides a factory for creating stateful widgets with a common API.
15
+ //>>docs: https://api.jqueryui.com/jQuery.widget/
16
+ //>>demos: https://jqueryui.com/widget/
17
+
18
+ ( function( factory ) {
19
+ "use strict";
20
+
21
+ if ( typeof define === "function" && define.amd ) {
22
+
23
+ // AMD. Register as an anonymous module.
24
+ define( [ "jquery", "./version" ], factory );
25
+ } else {
26
+
27
+ // Browser globals
28
+ factory( jQuery );
29
+ }
30
+ } )( function( $ ) {
31
+ "use strict";
32
+
33
+ var widgetUuid = 0;
34
+ var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
35
+ var widgetSlice = Array.prototype.slice;
36
+
37
+ $.cleanData = ( function( orig ) {
38
+ return function( elems ) {
39
+ var events, elem, i;
40
+ for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
41
+
42
+ // Only trigger remove when necessary to save time
43
+ events = $._data( elem, "events" );
44
+ if ( events && events.remove ) {
45
+ $( elem ).triggerHandler( "remove" );
46
+ }
47
+ }
48
+ orig( elems );
49
+ };
50
+ } )( $.cleanData );
51
+
52
+ $.widget = function( name, base, prototype ) {
53
+ var existingConstructor, constructor, basePrototype;
54
+
55
+ // ProxiedPrototype allows the provided prototype to remain unmodified
56
+ // so that it can be used as a mixin for multiple widgets (#8876)
57
+ var proxiedPrototype = {};
58
+
59
+ var namespace = name.split( "." )[ 0 ];
60
+ name = name.split( "." )[ 1 ];
61
+ if ( name === "__proto__" || name === "constructor" ) {
62
+ return $.error( "Invalid widget name: " + name );
63
+ }
64
+ var fullName = namespace + "-" + name;
65
+
66
+ if ( !prototype ) {
67
+ prototype = base;
68
+ base = $.Widget;
69
+ }
70
+
71
+ if ( Array.isArray( prototype ) ) {
72
+ prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
73
+ }
74
+
75
+ // Create selector for plugin
76
+ $.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
77
+ return !!$.data( elem, fullName );
78
+ };
79
+
80
+ $[ namespace ] = $[ namespace ] || {};
81
+ existingConstructor = $[ namespace ][ name ];
82
+ constructor = $[ namespace ][ name ] = function( options, element ) {
83
+
84
+ // Allow instantiation without "new" keyword
85
+ if ( !this || !this._createWidget ) {
86
+ return new constructor( options, element );
87
+ }
88
+
89
+ // Allow instantiation without initializing for simple inheritance
90
+ // must use "new" keyword (the code above always passes args)
91
+ if ( arguments.length ) {
92
+ this._createWidget( options, element );
93
+ }
94
+ };
95
+
96
+ // Extend with the existing constructor to carry over any static properties
97
+ $.extend( constructor, existingConstructor, {
98
+ version: prototype.version,
99
+
100
+ // Copy the object used to create the prototype in case we need to
101
+ // redefine the widget later
102
+ _proto: $.extend( {}, prototype ),
103
+
104
+ // Track widgets that inherit from this widget in case this widget is
105
+ // redefined after a widget inherits from it
106
+ _childConstructors: []
107
+ } );
108
+
109
+ basePrototype = new base();
110
+
111
+ // We need to make the options hash a property directly on the new instance
112
+ // otherwise we'll modify the options hash on the prototype that we're
113
+ // inheriting from
114
+ basePrototype.options = $.widget.extend( {}, basePrototype.options );
115
+ $.each( prototype, function( prop, value ) {
116
+ if ( typeof value !== "function" ) {
117
+ proxiedPrototype[ prop ] = value;
118
+ return;
119
+ }
120
+ proxiedPrototype[ prop ] = ( function() {
121
+ function _super() {
122
+ return base.prototype[ prop ].apply( this, arguments );
123
+ }
124
+
125
+ function _superApply( args ) {
126
+ return base.prototype[ prop ].apply( this, args );
127
+ }
128
+
129
+ return function() {
130
+ var __super = this._super;
131
+ var __superApply = this._superApply;
132
+ var returnValue;
133
+
134
+ this._super = _super;
135
+ this._superApply = _superApply;
136
+
137
+ returnValue = value.apply( this, arguments );
138
+
139
+ this._super = __super;
140
+ this._superApply = __superApply;
141
+
142
+ return returnValue;
143
+ };
144
+ } )();
145
+ } );
146
+ constructor.prototype = $.widget.extend( basePrototype, {
147
+
148
+ // TODO: remove support for widgetEventPrefix
149
+ // always use the name + a colon as the prefix, e.g., draggable:start
150
+ // don't prefix for widgets that aren't DOM-based
151
+ widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
152
+ }, proxiedPrototype, {
153
+ constructor: constructor,
154
+ namespace: namespace,
155
+ widgetName: name,
156
+ widgetFullName: fullName
157
+ } );
158
+
159
+ // If this widget is being redefined then we need to find all widgets that
160
+ // are inheriting from it and redefine all of them so that they inherit from
161
+ // the new version of this widget. We're essentially trying to replace one
162
+ // level in the prototype chain.
163
+ if ( existingConstructor ) {
164
+ $.each( existingConstructor._childConstructors, function( i, child ) {
165
+ var childPrototype = child.prototype;
166
+
167
+ // Redefine the child widget using the same prototype that was
168
+ // originally used, but inherit from the new version of the base
169
+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
170
+ child._proto );
171
+ } );
172
+
173
+ // Remove the list of existing child constructors from the old constructor
174
+ // so the old child constructors can be garbage collected
175
+ delete existingConstructor._childConstructors;
176
+ } else {
177
+ base._childConstructors.push( constructor );
178
+ }
179
+
180
+ $.widget.bridge( name, constructor );
181
+
182
+ return constructor;
183
+ };
184
+
185
+ $.widget.extend = function( target ) {
186
+ var input = widgetSlice.call( arguments, 1 );
187
+ var inputIndex = 0;
188
+ var inputLength = input.length;
189
+ var key;
190
+ var value;
191
+
192
+ for ( ; inputIndex < inputLength; inputIndex++ ) {
193
+ for ( key in input[ inputIndex ] ) {
194
+ value = input[ inputIndex ][ key ];
195
+ if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
196
+
197
+ // Clone objects
198
+ if ( $.isPlainObject( value ) ) {
199
+ target[ key ] = $.isPlainObject( target[ key ] ) ?
200
+ $.widget.extend( {}, target[ key ], value ) :
201
+
202
+ // Don't extend strings, arrays, etc. with objects
203
+ $.widget.extend( {}, value );
204
+
205
+ // Copy everything else by reference
206
+ } else {
207
+ target[ key ] = value;
208
+ }
209
+ }
210
+ }
211
+ }
212
+ return target;
213
+ };
214
+
215
+ $.widget.bridge = function( name, object ) {
216
+ var fullName = object.prototype.widgetFullName || name;
217
+ $.fn[ name ] = function( options ) {
218
+ var isMethodCall = typeof options === "string";
219
+ var args = widgetSlice.call( arguments, 1 );
220
+ var returnValue = this;
221
+
222
+ if ( isMethodCall ) {
223
+
224
+ // If this is an empty collection, we need to have the instance method
225
+ // return undefined instead of the jQuery instance
226
+ if ( !this.length && options === "instance" ) {
227
+ returnValue = undefined;
228
+ } else {
229
+ this.each( function() {
230
+ var methodValue;
231
+ var instance = $.data( this, fullName );
232
+
233
+ if ( options === "instance" ) {
234
+ returnValue = instance;
235
+ return false;
236
+ }
237
+
238
+ if ( !instance ) {
239
+ return $.error( "cannot call methods on " + name +
240
+ " prior to initialization; " +
241
+ "attempted to call method '" + options + "'" );
242
+ }
243
+
244
+ if ( typeof instance[ options ] !== "function" ||
245
+ options.charAt( 0 ) === "_" ) {
246
+ return $.error( "no such method '" + options + "' for " + name +
247
+ " widget instance" );
248
+ }
249
+
250
+ methodValue = instance[ options ].apply( instance, args );
251
+
252
+ if ( methodValue !== instance && methodValue !== undefined ) {
253
+ returnValue = methodValue && methodValue.jquery ?
254
+ returnValue.pushStack( methodValue.get() ) :
255
+ methodValue;
256
+ return false;
257
+ }
258
+ } );
259
+ }
260
+ } else {
261
+
262
+ // Allow multiple hashes to be passed on init
263
+ if ( args.length ) {
264
+ options = $.widget.extend.apply( null, [ options ].concat( args ) );
265
+ }
266
+
267
+ this.each( function() {
268
+ var instance = $.data( this, fullName );
269
+ if ( instance ) {
270
+ instance.option( options || {} );
271
+ if ( instance._init ) {
272
+ instance._init();
273
+ }
274
+ } else {
275
+ $.data( this, fullName, new object( options, this ) );
276
+ }
277
+ } );
278
+ }
279
+
280
+ return returnValue;
281
+ };
282
+ };
283
+
284
+ $.Widget = function( /* options, element */ ) {};
285
+ $.Widget._childConstructors = [];
286
+
287
+ $.Widget.prototype = {
288
+ widgetName: "widget",
289
+ widgetEventPrefix: "",
290
+ defaultElement: "<div>",
291
+
292
+ options: {
293
+ classes: {},
294
+ disabled: false,
295
+
296
+ // Callbacks
297
+ create: null
298
+ },
299
+
300
+ _createWidget: function( options, element ) {
301
+ element = $( element || this.defaultElement || this )[ 0 ];
302
+ this.element = $( element );
303
+ this.uuid = widgetUuid++;
304
+ this.eventNamespace = "." + this.widgetName + this.uuid;
305
+
306
+ this.bindings = $();
307
+ this.hoverable = $();
308
+ this.focusable = $();
309
+ this.classesElementLookup = {};
310
+
311
+ if ( element !== this ) {
312
+ $.data( element, this.widgetFullName, this );
313
+ this._on( true, this.element, {
314
+ remove: function( event ) {
315
+ if ( event.target === element ) {
316
+ this.destroy();
317
+ }
318
+ }
319
+ } );
320
+ this.document = $( element.style ?
321
+
322
+ // Element within the document
323
+ element.ownerDocument :
324
+
325
+ // Element is window or document
326
+ element.document || element );
327
+ this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
328
+ }
329
+
330
+ this.options = $.widget.extend( {},
331
+ this.options,
332
+ this._getCreateOptions(),
333
+ options );
334
+
335
+ this._create();
336
+
337
+ if ( this.options.disabled ) {
338
+ this._setOptionDisabled( this.options.disabled );
339
+ }
340
+
341
+ this._trigger( "create", null, this._getCreateEventData() );
342
+ this._init();
343
+ },
344
+
345
+ _getCreateOptions: function() {
346
+ return {};
347
+ },
348
+
349
+ _getCreateEventData: $.noop,
350
+
351
+ _create: $.noop,
352
+
353
+ _init: $.noop,
354
+
355
+ destroy: function() {
356
+ var that = this;
357
+
358
+ this._destroy();
359
+ $.each( this.classesElementLookup, function( key, value ) {
360
+ that._removeClass( value, key );
361
+ } );
362
+
363
+ // We can probably remove the unbind calls in 2.0
364
+ // all event bindings should go through this._on()
365
+ this.element
366
+ .off( this.eventNamespace )
367
+ .removeData( this.widgetFullName );
368
+ this.widget()
369
+ .off( this.eventNamespace )
370
+ .removeAttr( "aria-disabled" );
371
+
372
+ // Clean up events and states
373
+ this.bindings.off( this.eventNamespace );
374
+ },
375
+
376
+ _destroy: $.noop,
377
+
378
+ widget: function() {
379
+ return this.element;
380
+ },
381
+
382
+ option: function( key, value ) {
383
+ var options = key;
384
+ var parts;
385
+ var curOption;
386
+ var i;
387
+
388
+ if ( arguments.length === 0 ) {
389
+
390
+ // Don't return a reference to the internal hash
391
+ return $.widget.extend( {}, this.options );
392
+ }
393
+
394
+ if ( typeof key === "string" ) {
395
+
396
+ // Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
397
+ options = {};
398
+ parts = key.split( "." );
399
+ key = parts.shift();
400
+ if ( parts.length ) {
401
+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
402
+ for ( i = 0; i < parts.length - 1; i++ ) {
403
+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
404
+ curOption = curOption[ parts[ i ] ];
405
+ }
406
+ key = parts.pop();
407
+ if ( arguments.length === 1 ) {
408
+ return curOption[ key ] === undefined ? null : curOption[ key ];
409
+ }
410
+ curOption[ key ] = value;
411
+ } else {
412
+ if ( arguments.length === 1 ) {
413
+ return this.options[ key ] === undefined ? null : this.options[ key ];
414
+ }
415
+ options[ key ] = value;
416
+ }
417
+ }
418
+
419
+ this._setOptions( options );
420
+
421
+ return this;
422
+ },
423
+
424
+ _setOptions: function( options ) {
425
+ var key;
426
+
427
+ for ( key in options ) {
428
+ this._setOption( key, options[ key ] );
429
+ }
430
+
431
+ return this;
432
+ },
433
+
434
+ _setOption: function( key, value ) {
435
+ if ( key === "classes" ) {
436
+ this._setOptionClasses( value );
437
+ }
438
+
439
+ this.options[ key ] = value;
440
+
441
+ if ( key === "disabled" ) {
442
+ this._setOptionDisabled( value );
443
+ }
444
+
445
+ return this;
446
+ },
447
+
448
+ _setOptionClasses: function( value ) {
449
+ var classKey, elements, currentElements;
450
+
451
+ for ( classKey in value ) {
452
+ currentElements = this.classesElementLookup[ classKey ];
453
+ if ( value[ classKey ] === this.options.classes[ classKey ] ||
454
+ !currentElements ||
455
+ !currentElements.length ) {
456
+ continue;
457
+ }
458
+
459
+ // We are doing this to create a new jQuery object because the _removeClass() call
460
+ // on the next line is going to destroy the reference to the current elements being
461
+ // tracked. We need to save a copy of this collection so that we can add the new classes
462
+ // below.
463
+ elements = $( currentElements.get() );
464
+ this._removeClass( currentElements, classKey );
465
+
466
+ // We don't use _addClass() here, because that uses this.options.classes
467
+ // for generating the string of classes. We want to use the value passed in from
468
+ // _setOption(), this is the new value of the classes option which was passed to
469
+ // _setOption(). We pass this value directly to _classes().
470
+ elements.addClass( this._classes( {
471
+ element: elements,
472
+ keys: classKey,
473
+ classes: value,
474
+ add: true
475
+ } ) );
476
+ }
477
+ },
478
+
479
+ _setOptionDisabled: function( value ) {
480
+ this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value );
481
+
482
+ // If the widget is becoming disabled, then nothing is interactive
483
+ if ( value ) {
484
+ this._removeClass( this.hoverable, null, "ui-state-hover" );
485
+ this._removeClass( this.focusable, null, "ui-state-focus" );
486
+ }
487
+ },
488
+
489
+ enable: function() {
490
+ return this._setOptions( { disabled: false } );
491
+ },
492
+
493
+ disable: function() {
494
+ return this._setOptions( { disabled: true } );
495
+ },
496
+
497
+ _classes: function( options ) {
498
+ var full = [];
499
+ var that = this;
500
+
501
+ options = $.extend( {
502
+ element: this.element,
503
+ classes: this.options.classes || {}
504
+ }, options );
505
+
506
+ function bindRemoveEvent() {
507
+ var nodesToBind = [];
508
+
509
+ options.element.each( function( _, element ) {
510
+ var isTracked = $.map( that.classesElementLookup, function( elements ) {
511
+ return elements;
512
+ } )
513
+ .some( function( elements ) {
514
+ return elements.is( element );
515
+ } );
516
+
517
+ if ( !isTracked ) {
518
+ nodesToBind.push( element );
519
+ }
520
+ } );
521
+
522
+ that._on( $( nodesToBind ), {
523
+ remove: "_untrackClassesElement"
524
+ } );
525
+ }
526
+
527
+ function processClassString( classes, checkOption ) {
528
+ var current, i;
529
+ for ( i = 0; i < classes.length; i++ ) {
530
+ current = that.classesElementLookup[ classes[ i ] ] || $();
531
+ if ( options.add ) {
532
+ bindRemoveEvent();
533
+ current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
534
+ } else {
535
+ current = $( current.not( options.element ).get() );
536
+ }
537
+ that.classesElementLookup[ classes[ i ] ] = current;
538
+ full.push( classes[ i ] );
539
+ if ( checkOption && options.classes[ classes[ i ] ] ) {
540
+ full.push( options.classes[ classes[ i ] ] );
541
+ }
542
+ }
543
+ }
544
+
545
+ if ( options.keys ) {
546
+ processClassString( options.keys.match( /\S+/g ) || [], true );
547
+ }
548
+ if ( options.extra ) {
549
+ processClassString( options.extra.match( /\S+/g ) || [] );
550
+ }
551
+
552
+ return full.join( " " );
553
+ },
554
+
555
+ _untrackClassesElement: function( event ) {
556
+ var that = this;
557
+ $.each( that.classesElementLookup, function( key, value ) {
558
+ if ( $.inArray( event.target, value ) !== -1 ) {
559
+ that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
560
+ }
561
+ } );
562
+
563
+ this._off( $( event.target ) );
564
+ },
565
+
566
+ _removeClass: function( element, keys, extra ) {
567
+ return this._toggleClass( element, keys, extra, false );
568
+ },
569
+
570
+ _addClass: function( element, keys, extra ) {
571
+ return this._toggleClass( element, keys, extra, true );
572
+ },
573
+
574
+ _toggleClass: function( element, keys, extra, add ) {
575
+ add = ( typeof add === "boolean" ) ? add : extra;
576
+ var shift = ( typeof element === "string" || element === null ),
577
+ options = {
578
+ extra: shift ? keys : extra,
579
+ keys: shift ? element : keys,
580
+ element: shift ? this.element : element,
581
+ add: add
582
+ };
583
+ options.element.toggleClass( this._classes( options ), add );
584
+ return this;
585
+ },
586
+
587
+ _on: function( suppressDisabledCheck, element, handlers ) {
588
+ var delegateElement;
589
+ var instance = this;
590
+
591
+ // No suppressDisabledCheck flag, shuffle arguments
592
+ if ( typeof suppressDisabledCheck !== "boolean" ) {
593
+ handlers = element;
594
+ element = suppressDisabledCheck;
595
+ suppressDisabledCheck = false;
596
+ }
597
+
598
+ // No element argument, shuffle and use this.element
599
+ if ( !handlers ) {
600
+ handlers = element;
601
+ element = this.element;
602
+ delegateElement = this.widget();
603
+ } else {
604
+ element = delegateElement = $( element );
605
+ this.bindings = this.bindings.add( element );
606
+ }
607
+
608
+ $.each( handlers, function( event, handler ) {
609
+ function handlerProxy() {
610
+
611
+ // Allow widgets to customize the disabled handling
612
+ // - disabled as an array instead of boolean
613
+ // - disabled class as method for disabling individual parts
614
+ if ( !suppressDisabledCheck &&
615
+ ( instance.options.disabled === true ||
616
+ $( this ).hasClass( "ui-state-disabled" ) ) ) {
617
+ return;
618
+ }
619
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
620
+ .apply( instance, arguments );
621
+ }
622
+
623
+ // Copy the guid so direct unbinding works
624
+ if ( typeof handler !== "string" ) {
625
+ handlerProxy.guid = handler.guid =
626
+ handler.guid || handlerProxy.guid || $.guid++;
627
+ }
628
+
629
+ var match = event.match( /^([\w:-]*)\s*(.*)$/ );
630
+ var eventName = match[ 1 ] + instance.eventNamespace;
631
+ var selector = match[ 2 ];
632
+
633
+ if ( selector ) {
634
+ delegateElement.on( eventName, selector, handlerProxy );
635
+ } else {
636
+ element.on( eventName, handlerProxy );
637
+ }
638
+ } );
639
+ },
640
+
641
+ _off: function( element, eventName ) {
642
+ eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
643
+ this.eventNamespace;
644
+ element.off( eventName );
645
+
646
+ // Clear the stack to avoid memory leaks (#10056)
647
+ this.bindings = $( this.bindings.not( element ).get() );
648
+ this.focusable = $( this.focusable.not( element ).get() );
649
+ this.hoverable = $( this.hoverable.not( element ).get() );
650
+ },
651
+
652
+ _delay: function( handler, delay ) {
653
+ function handlerProxy() {
654
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
655
+ .apply( instance, arguments );
656
+ }
657
+ var instance = this;
658
+ return setTimeout( handlerProxy, delay || 0 );
659
+ },
660
+
661
+ _hoverable: function( element ) {
662
+ this.hoverable = this.hoverable.add( element );
663
+ this._on( element, {
664
+ mouseenter: function( event ) {
665
+ this._addClass( $( event.currentTarget ), null, "ui-state-hover" );
666
+ },
667
+ mouseleave: function( event ) {
668
+ this._removeClass( $( event.currentTarget ), null, "ui-state-hover" );
669
+ }
670
+ } );
671
+ },
672
+
673
+ _focusable: function( element ) {
674
+ this.focusable = this.focusable.add( element );
675
+ this._on( element, {
676
+ focusin: function( event ) {
677
+ this._addClass( $( event.currentTarget ), null, "ui-state-focus" );
678
+ },
679
+ focusout: function( event ) {
680
+ this._removeClass( $( event.currentTarget ), null, "ui-state-focus" );
681
+ }
682
+ } );
683
+ },
684
+
685
+ _trigger: function( type, event, data ) {
686
+ var prop, orig;
687
+ var callback = this.options[ type ];
688
+
689
+ data = data || {};
690
+ event = $.Event( event );
691
+ event.type = ( type === this.widgetEventPrefix ?
692
+ type :
693
+ this.widgetEventPrefix + type ).toLowerCase();
694
+
695
+ // The original event may come from any element
696
+ // so we need to reset the target on the new event
697
+ event.target = this.element[ 0 ];
698
+
699
+ // Copy original event properties over to the new event
700
+ orig = event.originalEvent;
701
+ if ( orig ) {
702
+ for ( prop in orig ) {
703
+ if ( !( prop in event ) ) {
704
+ event[ prop ] = orig[ prop ];
705
+ }
706
+ }
707
+ }
708
+
709
+ this.element.trigger( event, data );
710
+ return !( typeof callback === "function" &&
711
+ callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
712
+ event.isDefaultPrevented() );
713
+ }
714
+ };
715
+
716
+ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
717
+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
718
+ if ( typeof options === "string" ) {
719
+ options = { effect: options };
720
+ }
721
+
722
+ var hasOptions;
723
+ var effectName = !options ?
724
+ method :
725
+ options === true || typeof options === "number" ?
726
+ defaultEffect :
727
+ options.effect || defaultEffect;
728
+
729
+ options = options || {};
730
+ if ( typeof options === "number" ) {
731
+ options = { duration: options };
732
+ } else if ( options === true ) {
733
+ options = {};
734
+ }
735
+
736
+ hasOptions = !$.isEmptyObject( options );
737
+ options.complete = callback;
738
+
739
+ if ( options.delay ) {
740
+ element.delay( options.delay );
741
+ }
742
+
743
+ if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
744
+ element[ method ]( options );
745
+ } else if ( effectName !== method && element[ effectName ] ) {
746
+ element[ effectName ]( options.duration, options.easing, callback );
747
+ } else {
748
+ element.queue( function( next ) {
749
+ $( this )[ method ]();
750
+ if ( callback ) {
751
+ callback.call( element[ 0 ] );
752
+ }
753
+ next();
754
+ } );
755
+ }
756
+ };
757
+ } );
758
+
759
+ return $.widget;
760
+
761
+ } );