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,954 @@
1
+ //= require jquery-ui/jquery-var-for-color
2
+ //= require jquery-ui/vendor/jquery-color/jquery.color
3
+ //= require jquery-ui/version
4
+
5
+ /*!
6
+ * jQuery UI Effects 1.14.1
7
+ * https://jqueryui.com
8
+ *
9
+ * Copyright OpenJS Foundation and other contributors
10
+ * Released under the MIT license.
11
+ * https://jquery.org/license
12
+ */
13
+
14
+ //>>label: Effects Core
15
+ //>>group: Effects
16
+ /* eslint-disable max-len */
17
+ //>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
18
+ /* eslint-enable max-len */
19
+ //>>docs: https://api.jqueryui.com/category/effects-core/
20
+ //>>demos: https://jqueryui.com/effect/
21
+
22
+ ( function( factory ) {
23
+ "use strict";
24
+
25
+ if ( typeof define === "function" && define.amd ) {
26
+
27
+ // AMD. Register as an anonymous module.
28
+ define( [
29
+ "jquery",
30
+ "./jquery-var-for-color",
31
+ "./vendor/jquery-color/jquery.color",
32
+ "./version"
33
+ ], factory );
34
+ } else {
35
+
36
+ // Browser globals
37
+ factory( jQuery );
38
+ }
39
+ } )( function( $ ) {
40
+ "use strict";
41
+
42
+ var dataSpace = "ui-effects-",
43
+ dataSpaceStyle = "ui-effects-style",
44
+ dataSpaceAnimated = "ui-effects-animated";
45
+
46
+ $.effects = {
47
+ effect: {}
48
+ };
49
+
50
+ /******************************************************************************/
51
+ /****************************** CLASS ANIMATIONS ******************************/
52
+ /******************************************************************************/
53
+ ( function() {
54
+
55
+ var classAnimationActions = [ "add", "remove", "toggle" ],
56
+ shorthandStyles = {
57
+ border: 1,
58
+ borderBottom: 1,
59
+ borderColor: 1,
60
+ borderLeft: 1,
61
+ borderRight: 1,
62
+ borderTop: 1,
63
+ borderWidth: 1,
64
+ margin: 1,
65
+ padding: 1
66
+ };
67
+
68
+ $.each(
69
+ [ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ],
70
+ function( _, prop ) {
71
+ $.fx.step[ prop ] = function( fx ) {
72
+ if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
73
+ jQuery.style( fx.elem, prop, fx.end );
74
+ fx.setAttr = true;
75
+ }
76
+ };
77
+ }
78
+ );
79
+
80
+ function camelCase( string ) {
81
+ return string.replace( /-([\da-z])/gi, function( all, letter ) {
82
+ return letter.toUpperCase();
83
+ } );
84
+ }
85
+
86
+ function getElementStyles( elem ) {
87
+ var key, len,
88
+ style = elem.ownerDocument.defaultView.getComputedStyle( elem ),
89
+ styles = {};
90
+
91
+ len = style.length;
92
+ while ( len-- ) {
93
+ key = style[ len ];
94
+ if ( typeof style[ key ] === "string" ) {
95
+ styles[ camelCase( key ) ] = style[ key ];
96
+ }
97
+ }
98
+
99
+ return styles;
100
+ }
101
+
102
+ function styleDifference( oldStyle, newStyle ) {
103
+ var diff = {},
104
+ name, value;
105
+
106
+ for ( name in newStyle ) {
107
+ value = newStyle[ name ];
108
+ if ( oldStyle[ name ] !== value ) {
109
+ if ( !shorthandStyles[ name ] ) {
110
+ if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
111
+ diff[ name ] = value;
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ return diff;
118
+ }
119
+
120
+ $.effects.animateClass = function( value, duration, easing, callback ) {
121
+ var o = $.speed( duration, easing, callback );
122
+
123
+ return this.queue( function() {
124
+ var animated = $( this ),
125
+ baseClass = animated.attr( "class" ) || "",
126
+ applyClassChange,
127
+ allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
128
+
129
+ // Map the animated objects to store the original styles.
130
+ allAnimations = allAnimations.map( function() {
131
+ var el = $( this );
132
+ return {
133
+ el: el,
134
+ start: getElementStyles( this )
135
+ };
136
+ } );
137
+
138
+ // Apply class change
139
+ applyClassChange = function() {
140
+ $.each( classAnimationActions, function( i, action ) {
141
+ if ( value[ action ] ) {
142
+ animated[ action + "Class" ]( value[ action ] );
143
+ }
144
+ } );
145
+ };
146
+ applyClassChange();
147
+
148
+ // Map all animated objects again - calculate new styles and diff
149
+ allAnimations = allAnimations.map( function() {
150
+ this.end = getElementStyles( this.el[ 0 ] );
151
+ this.diff = styleDifference( this.start, this.end );
152
+ return this;
153
+ } );
154
+
155
+ // Apply original class
156
+ animated.attr( "class", baseClass );
157
+
158
+ // Map all animated objects again - this time collecting a promise
159
+ allAnimations = allAnimations.map( function() {
160
+ var styleInfo = this,
161
+ dfd = $.Deferred(),
162
+ opts = $.extend( {}, o, {
163
+ queue: false,
164
+ complete: function() {
165
+ dfd.resolve( styleInfo );
166
+ }
167
+ } );
168
+
169
+ this.el.animate( this.diff, opts );
170
+ return dfd.promise();
171
+ } );
172
+
173
+ // Once all animations have completed:
174
+ $.when.apply( $, allAnimations.get() ).done( function() {
175
+
176
+ // Set the final class
177
+ applyClassChange();
178
+
179
+ // For each animated element,
180
+ // clear all css properties that were animated
181
+ $.each( arguments, function() {
182
+ var el = this.el;
183
+ $.each( this.diff, function( key ) {
184
+ el.css( key, "" );
185
+ } );
186
+ } );
187
+
188
+ // This is guarnteed to be there if you use jQuery.speed()
189
+ // it also handles dequeuing the next anim...
190
+ o.complete.call( animated[ 0 ] );
191
+ } );
192
+ } );
193
+ };
194
+
195
+ $.fn.extend( {
196
+ addClass: ( function( orig ) {
197
+ return function( classNames, speed, easing, callback ) {
198
+ return speed ?
199
+ $.effects.animateClass.call( this,
200
+ { add: classNames }, speed, easing, callback ) :
201
+ orig.apply( this, arguments );
202
+ };
203
+ } )( $.fn.addClass ),
204
+
205
+ removeClass: ( function( orig ) {
206
+ return function( classNames, speed, easing, callback ) {
207
+ return arguments.length > 1 ?
208
+ $.effects.animateClass.call( this,
209
+ { remove: classNames }, speed, easing, callback ) :
210
+ orig.apply( this, arguments );
211
+ };
212
+ } )( $.fn.removeClass ),
213
+
214
+ toggleClass: ( function( orig ) {
215
+ return function( classNames, force, speed, easing, callback ) {
216
+ if ( typeof force === "boolean" || force === undefined ) {
217
+ if ( !speed ) {
218
+
219
+ // Without speed parameter
220
+ return orig.apply( this, arguments );
221
+ } else {
222
+ return $.effects.animateClass.call( this,
223
+ ( force ? { add: classNames } : { remove: classNames } ),
224
+ speed, easing, callback );
225
+ }
226
+ } else {
227
+
228
+ // Without force parameter
229
+ return $.effects.animateClass.call( this,
230
+ { toggle: classNames }, force, speed, easing );
231
+ }
232
+ };
233
+ } )( $.fn.toggleClass ),
234
+
235
+ switchClass: function( remove, add, speed, easing, callback ) {
236
+ return $.effects.animateClass.call( this, {
237
+ add: add,
238
+ remove: remove
239
+ }, speed, easing, callback );
240
+ }
241
+ } );
242
+
243
+ } )();
244
+
245
+ /******************************************************************************/
246
+ /*********************************** EFFECTS **********************************/
247
+ /******************************************************************************/
248
+
249
+ ( function() {
250
+
251
+ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
252
+ $.expr.pseudos.animated = ( function( orig ) {
253
+ return function( elem ) {
254
+ return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
255
+ };
256
+ } )( $.expr.pseudos.animated );
257
+ }
258
+
259
+ if ( $.uiBackCompat === true ) {
260
+ $.extend( $.effects, {
261
+
262
+ // Saves a set of properties in a data storage
263
+ save: function( element, set ) {
264
+ var i = 0, length = set.length;
265
+ for ( ; i < length; i++ ) {
266
+ if ( set[ i ] !== null ) {
267
+ element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
268
+ }
269
+ }
270
+ },
271
+
272
+ // Restores a set of previously saved properties from a data storage
273
+ restore: function( element, set ) {
274
+ var val, i = 0, length = set.length;
275
+ for ( ; i < length; i++ ) {
276
+ if ( set[ i ] !== null ) {
277
+ val = element.data( dataSpace + set[ i ] );
278
+ element.css( set[ i ], val );
279
+ }
280
+ }
281
+ },
282
+
283
+ setMode: function( el, mode ) {
284
+ if ( mode === "toggle" ) {
285
+ mode = el.is( ":hidden" ) ? "show" : "hide";
286
+ }
287
+ return mode;
288
+ },
289
+
290
+ // Wraps the element around a wrapper that copies position properties
291
+ createWrapper: function( element ) {
292
+
293
+ // If the element is already wrapped, return it
294
+ if ( element.parent().is( ".ui-effects-wrapper" ) ) {
295
+ return element.parent();
296
+ }
297
+
298
+ // Wrap the element
299
+ var props = {
300
+ width: element.outerWidth( true ),
301
+ height: element.outerHeight( true ),
302
+ "float": element.css( "float" )
303
+ },
304
+ wrapper = $( "<div></div>" )
305
+ .addClass( "ui-effects-wrapper" )
306
+ .css( {
307
+ fontSize: "100%",
308
+ background: "transparent",
309
+ border: "none",
310
+ margin: 0,
311
+ padding: 0
312
+ } ),
313
+
314
+ // Store the size in case width/height are defined in % - Fixes #5245
315
+ size = {
316
+ width: element.width(),
317
+ height: element.height()
318
+ },
319
+ active = document.activeElement;
320
+
321
+ // Support: Firefox
322
+ // Firefox incorrectly exposes anonymous content
323
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
324
+ try {
325
+ // eslint-disable-next-line no-unused-expressions
326
+ active.id;
327
+ } catch ( e ) {
328
+ active = document.body;
329
+ }
330
+
331
+ element.wrap( wrapper );
332
+
333
+ // Fixes #7595 - Elements lose focus when wrapped.
334
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
335
+ $( active ).trigger( "focus" );
336
+ }
337
+
338
+ // Hotfix for jQuery 1.4 since some change in wrap() seems to actually
339
+ // lose the reference to the wrapped element
340
+ wrapper = element.parent();
341
+
342
+ // Transfer positioning properties to the wrapper
343
+ if ( element.css( "position" ) === "static" ) {
344
+ wrapper.css( { position: "relative" } );
345
+ element.css( { position: "relative" } );
346
+ } else {
347
+ $.extend( props, {
348
+ position: element.css( "position" ),
349
+ zIndex: element.css( "z-index" )
350
+ } );
351
+ $.each( [ "top", "left", "bottom", "right" ], function( i, pos ) {
352
+ props[ pos ] = element.css( pos );
353
+ if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
354
+ props[ pos ] = "auto";
355
+ }
356
+ } );
357
+ element.css( {
358
+ position: "relative",
359
+ top: 0,
360
+ left: 0,
361
+ right: "auto",
362
+ bottom: "auto"
363
+ } );
364
+ }
365
+ element.css( size );
366
+
367
+ return wrapper.css( props ).show();
368
+ },
369
+
370
+ removeWrapper: function( element ) {
371
+ var active = document.activeElement;
372
+
373
+ if ( element.parent().is( ".ui-effects-wrapper" ) ) {
374
+ element.parent().replaceWith( element );
375
+
376
+ // Fixes #7595 - Elements lose focus when wrapped.
377
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
378
+ $( active ).trigger( "focus" );
379
+ }
380
+ }
381
+
382
+ return element;
383
+ }
384
+ } );
385
+ }
386
+
387
+ $.extend( $.effects, {
388
+ version: "1.14.1",
389
+
390
+ define: function( name, mode, effect ) {
391
+ if ( !effect ) {
392
+ effect = mode;
393
+ mode = "effect";
394
+ }
395
+
396
+ $.effects.effect[ name ] = effect;
397
+ $.effects.effect[ name ].mode = mode;
398
+
399
+ return effect;
400
+ },
401
+
402
+ scaledDimensions: function( element, percent, direction ) {
403
+ if ( percent === 0 ) {
404
+ return {
405
+ height: 0,
406
+ width: 0,
407
+ outerHeight: 0,
408
+ outerWidth: 0
409
+ };
410
+ }
411
+
412
+ var x = direction !== "horizontal" ? ( ( percent || 100 ) / 100 ) : 1,
413
+ y = direction !== "vertical" ? ( ( percent || 100 ) / 100 ) : 1;
414
+
415
+ return {
416
+ height: element.height() * y,
417
+ width: element.width() * x,
418
+ outerHeight: element.outerHeight() * y,
419
+ outerWidth: element.outerWidth() * x
420
+ };
421
+
422
+ },
423
+
424
+ clipToBox: function( animation ) {
425
+ return {
426
+ width: animation.clip.right - animation.clip.left,
427
+ height: animation.clip.bottom - animation.clip.top,
428
+ left: animation.clip.left,
429
+ top: animation.clip.top
430
+ };
431
+ },
432
+
433
+ // Injects recently queued functions to be first in line (after "inprogress")
434
+ unshift: function( element, queueLength, count ) {
435
+ var queue = element.queue();
436
+
437
+ if ( queueLength > 1 ) {
438
+ queue.splice.apply( queue,
439
+ [ 1, 0 ].concat( queue.splice( queueLength, count ) ) );
440
+ }
441
+ element.dequeue();
442
+ },
443
+
444
+ saveStyle: function( element ) {
445
+ element.data( dataSpaceStyle, element[ 0 ].style.cssText );
446
+ },
447
+
448
+ restoreStyle: function( element ) {
449
+ element[ 0 ].style.cssText = element.data( dataSpaceStyle ) || "";
450
+ element.removeData( dataSpaceStyle );
451
+ },
452
+
453
+ mode: function( element, mode ) {
454
+ var hidden = element.is( ":hidden" );
455
+
456
+ if ( mode === "toggle" ) {
457
+ mode = hidden ? "show" : "hide";
458
+ }
459
+ if ( hidden ? mode === "hide" : mode === "show" ) {
460
+ mode = "none";
461
+ }
462
+ return mode;
463
+ },
464
+
465
+ // Translates a [top,left] array into a baseline value
466
+ getBaseline: function( origin, original ) {
467
+ var y, x;
468
+
469
+ switch ( origin[ 0 ] ) {
470
+ case "top":
471
+ y = 0;
472
+ break;
473
+ case "middle":
474
+ y = 0.5;
475
+ break;
476
+ case "bottom":
477
+ y = 1;
478
+ break;
479
+ default:
480
+ y = origin[ 0 ] / original.height;
481
+ }
482
+
483
+ switch ( origin[ 1 ] ) {
484
+ case "left":
485
+ x = 0;
486
+ break;
487
+ case "center":
488
+ x = 0.5;
489
+ break;
490
+ case "right":
491
+ x = 1;
492
+ break;
493
+ default:
494
+ x = origin[ 1 ] / original.width;
495
+ }
496
+
497
+ return {
498
+ x: x,
499
+ y: y
500
+ };
501
+ },
502
+
503
+ // Creates a placeholder element so that the original element can be made absolute
504
+ createPlaceholder: function( element ) {
505
+ var placeholder,
506
+ cssPosition = element.css( "position" ),
507
+ position = element.position();
508
+
509
+ // Lock in margins first to account for form elements, which
510
+ // will change margin if you explicitly set height
511
+ // see: https://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
512
+ // Support: Safari
513
+ element.css( {
514
+ marginTop: element.css( "marginTop" ),
515
+ marginBottom: element.css( "marginBottom" ),
516
+ marginLeft: element.css( "marginLeft" ),
517
+ marginRight: element.css( "marginRight" )
518
+ } )
519
+ .outerWidth( element.outerWidth() )
520
+ .outerHeight( element.outerHeight() );
521
+
522
+ if ( /^(static|relative)/.test( cssPosition ) ) {
523
+ cssPosition = "absolute";
524
+
525
+ placeholder = $( "<" + element[ 0 ].nodeName + ">" ).insertAfter( element ).css( {
526
+
527
+ // Convert inline to inline block to account for inline elements
528
+ // that turn to inline block based on content (like img)
529
+ display: /^(inline|ruby)/.test( element.css( "display" ) ) ?
530
+ "inline-block" :
531
+ "block",
532
+ visibility: "hidden",
533
+
534
+ // Margins need to be set to account for margin collapse
535
+ marginTop: element.css( "marginTop" ),
536
+ marginBottom: element.css( "marginBottom" ),
537
+ marginLeft: element.css( "marginLeft" ),
538
+ marginRight: element.css( "marginRight" ),
539
+ "float": element.css( "float" )
540
+ } )
541
+ .outerWidth( element.outerWidth() )
542
+ .outerHeight( element.outerHeight() )
543
+ .addClass( "ui-effects-placeholder" );
544
+
545
+ element.data( dataSpace + "placeholder", placeholder );
546
+ }
547
+
548
+ element.css( {
549
+ position: cssPosition,
550
+ left: position.left,
551
+ top: position.top
552
+ } );
553
+
554
+ return placeholder;
555
+ },
556
+
557
+ removePlaceholder: function( element ) {
558
+ var dataKey = dataSpace + "placeholder",
559
+ placeholder = element.data( dataKey );
560
+
561
+ if ( placeholder ) {
562
+ placeholder.remove();
563
+ element.removeData( dataKey );
564
+ }
565
+ },
566
+
567
+ // Removes a placeholder if it exists and restores
568
+ // properties that were modified during placeholder creation
569
+ cleanUp: function( element ) {
570
+ $.effects.restoreStyle( element );
571
+ $.effects.removePlaceholder( element );
572
+ },
573
+
574
+ setTransition: function( element, list, factor, value ) {
575
+ value = value || {};
576
+ $.each( list, function( i, x ) {
577
+ var unit = element.cssUnit( x );
578
+ if ( unit[ 0 ] > 0 ) {
579
+ value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
580
+ }
581
+ } );
582
+ return value;
583
+ }
584
+ } );
585
+
586
+ // Return an effect options object for the given parameters:
587
+ function _normalizeArguments( effect, options, speed, callback ) {
588
+
589
+ // Allow passing all options as the first parameter
590
+ if ( $.isPlainObject( effect ) ) {
591
+ options = effect;
592
+ effect = effect.effect;
593
+ }
594
+
595
+ // Convert to an object
596
+ effect = { effect: effect };
597
+
598
+ // Catch (effect, null, ...)
599
+ if ( options == null ) {
600
+ options = {};
601
+ }
602
+
603
+ // Catch (effect, callback)
604
+ if ( typeof options === "function" ) {
605
+ callback = options;
606
+ speed = null;
607
+ options = {};
608
+ }
609
+
610
+ // Catch (effect, speed, ?)
611
+ if ( typeof options === "number" || $.fx.speeds[ options ] ) {
612
+ callback = speed;
613
+ speed = options;
614
+ options = {};
615
+ }
616
+
617
+ // Catch (effect, options, callback)
618
+ if ( typeof speed === "function" ) {
619
+ callback = speed;
620
+ speed = null;
621
+ }
622
+
623
+ // Add options to effect
624
+ if ( options ) {
625
+ $.extend( effect, options );
626
+ }
627
+
628
+ speed = speed || options.duration;
629
+ effect.duration = $.fx.off ? 0 :
630
+ typeof speed === "number" ? speed :
631
+ speed in $.fx.speeds ? $.fx.speeds[ speed ] :
632
+ $.fx.speeds._default;
633
+
634
+ effect.complete = callback || options.complete;
635
+
636
+ return effect;
637
+ }
638
+
639
+ function standardAnimationOption( option ) {
640
+
641
+ // Valid standard speeds (nothing, number, named speed)
642
+ if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
643
+ return true;
644
+ }
645
+
646
+ // Invalid strings - treat as "normal" speed
647
+ if ( typeof option === "string" && !$.effects.effect[ option ] ) {
648
+ return true;
649
+ }
650
+
651
+ // Complete callback
652
+ if ( typeof option === "function" ) {
653
+ return true;
654
+ }
655
+
656
+ // Options hash (but not naming an effect)
657
+ if ( typeof option === "object" && !option.effect ) {
658
+ return true;
659
+ }
660
+
661
+ // Didn't match any standard API
662
+ return false;
663
+ }
664
+
665
+ $.fn.extend( {
666
+ effect: function( /* effect, options, speed, callback */ ) {
667
+ var args = _normalizeArguments.apply( this, arguments ),
668
+ effectMethod = $.effects.effect[ args.effect ],
669
+ defaultMode = effectMethod.mode,
670
+ queue = args.queue,
671
+ queueName = queue || "fx",
672
+ complete = args.complete,
673
+ mode = args.mode,
674
+ modes = [],
675
+ prefilter = function( next ) {
676
+ var el = $( this ),
677
+ normalizedMode = $.effects.mode( el, mode ) || defaultMode;
678
+
679
+ // Sentinel for duck-punching the :animated pseudo-selector
680
+ el.data( dataSpaceAnimated, true );
681
+
682
+ // Save effect mode for later use,
683
+ // we can't just call $.effects.mode again later,
684
+ // as the .show() below destroys the initial state
685
+ modes.push( normalizedMode );
686
+
687
+ // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
688
+ if ( defaultMode && ( normalizedMode === "show" ||
689
+ ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
690
+ el.show();
691
+ }
692
+
693
+ if ( !defaultMode || normalizedMode !== "none" ) {
694
+ $.effects.saveStyle( el );
695
+ }
696
+
697
+ if ( typeof next === "function" ) {
698
+ next();
699
+ }
700
+ };
701
+
702
+ if ( $.fx.off || !effectMethod ) {
703
+
704
+ // Delegate to the original method (e.g., .show()) if possible
705
+ if ( mode ) {
706
+ return this[ mode ]( args.duration, complete );
707
+ } else {
708
+ return this.each( function() {
709
+ if ( complete ) {
710
+ complete.call( this );
711
+ }
712
+ } );
713
+ }
714
+ }
715
+
716
+ function run( next ) {
717
+ var elem = $( this );
718
+
719
+ function cleanup() {
720
+ elem.removeData( dataSpaceAnimated );
721
+
722
+ $.effects.cleanUp( elem );
723
+
724
+ if ( args.mode === "hide" ) {
725
+ elem.hide();
726
+ }
727
+
728
+ done();
729
+ }
730
+
731
+ function done() {
732
+ if ( typeof complete === "function" ) {
733
+ complete.call( elem[ 0 ] );
734
+ }
735
+
736
+ if ( typeof next === "function" ) {
737
+ next();
738
+ }
739
+ }
740
+
741
+ // Override mode option on a per element basis,
742
+ // as toggle can be either show or hide depending on element state
743
+ args.mode = modes.shift();
744
+
745
+ if ( $.uiBackCompat === true && !defaultMode ) {
746
+ if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
747
+
748
+ // Call the core method to track "olddisplay" properly
749
+ elem[ mode ]();
750
+ done();
751
+ } else {
752
+ effectMethod.call( elem[ 0 ], args, done );
753
+ }
754
+ } else {
755
+ if ( args.mode === "none" ) {
756
+
757
+ // Call the core method to track "olddisplay" properly
758
+ elem[ mode ]();
759
+ done();
760
+ } else {
761
+ effectMethod.call( elem[ 0 ], args, cleanup );
762
+ }
763
+ }
764
+ }
765
+
766
+ // Run prefilter on all elements first to ensure that
767
+ // any showing or hiding happens before placeholder creation,
768
+ // which ensures that any layout changes are correctly captured.
769
+ return queue === false ?
770
+ this.each( prefilter ).each( run ) :
771
+ this.queue( queueName, prefilter ).queue( queueName, run );
772
+ },
773
+
774
+ show: ( function( orig ) {
775
+ return function( option ) {
776
+ if ( standardAnimationOption( option ) ) {
777
+ return orig.apply( this, arguments );
778
+ } else {
779
+ var args = _normalizeArguments.apply( this, arguments );
780
+ args.mode = "show";
781
+ return this.effect.call( this, args );
782
+ }
783
+ };
784
+ } )( $.fn.show ),
785
+
786
+ hide: ( function( orig ) {
787
+ return function( option ) {
788
+ if ( standardAnimationOption( option ) ) {
789
+ return orig.apply( this, arguments );
790
+ } else {
791
+ var args = _normalizeArguments.apply( this, arguments );
792
+ args.mode = "hide";
793
+ return this.effect.call( this, args );
794
+ }
795
+ };
796
+ } )( $.fn.hide ),
797
+
798
+ toggle: ( function( orig ) {
799
+ return function( option ) {
800
+ if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
801
+ return orig.apply( this, arguments );
802
+ } else {
803
+ var args = _normalizeArguments.apply( this, arguments );
804
+ args.mode = "toggle";
805
+ return this.effect.call( this, args );
806
+ }
807
+ };
808
+ } )( $.fn.toggle ),
809
+
810
+ cssUnit: function( key ) {
811
+ var style = this.css( key ),
812
+ val = [];
813
+
814
+ $.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
815
+ if ( style.indexOf( unit ) > 0 ) {
816
+ val = [ parseFloat( style ), unit ];
817
+ }
818
+ } );
819
+ return val;
820
+ },
821
+
822
+ cssClip: function( clipObj ) {
823
+ if ( clipObj ) {
824
+ return this.css( "clip", "rect(" + clipObj.top + "px " + clipObj.right + "px " +
825
+ clipObj.bottom + "px " + clipObj.left + "px)" );
826
+ }
827
+ return parseClip( this.css( "clip" ), this );
828
+ },
829
+
830
+ transfer: function( options, done ) {
831
+ var element = $( this ),
832
+ target = $( options.to ),
833
+ targetFixed = target.css( "position" ) === "fixed",
834
+ body = $( "body" ),
835
+ fixTop = targetFixed ? body.scrollTop() : 0,
836
+ fixLeft = targetFixed ? body.scrollLeft() : 0,
837
+ endPosition = target.offset(),
838
+ animation = {
839
+ top: endPosition.top - fixTop,
840
+ left: endPosition.left - fixLeft,
841
+ height: target.innerHeight(),
842
+ width: target.innerWidth()
843
+ },
844
+ startPosition = element.offset(),
845
+ transfer = $( "<div class='ui-effects-transfer'></div>" );
846
+
847
+ transfer
848
+ .appendTo( "body" )
849
+ .addClass( options.className )
850
+ .css( {
851
+ top: startPosition.top - fixTop,
852
+ left: startPosition.left - fixLeft,
853
+ height: element.innerHeight(),
854
+ width: element.innerWidth(),
855
+ position: targetFixed ? "fixed" : "absolute"
856
+ } )
857
+ .animate( animation, options.duration, options.easing, function() {
858
+ transfer.remove();
859
+ if ( typeof done === "function" ) {
860
+ done();
861
+ }
862
+ } );
863
+ }
864
+ } );
865
+
866
+ function parseClip( str, element ) {
867
+ var outerWidth = element.outerWidth(),
868
+ outerHeight = element.outerHeight(),
869
+ clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,
870
+ values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ];
871
+
872
+ return {
873
+ top: parseFloat( values[ 1 ] ) || 0,
874
+ right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ),
875
+ bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ),
876
+ left: parseFloat( values[ 4 ] ) || 0
877
+ };
878
+ }
879
+
880
+ $.fx.step.clip = function( fx ) {
881
+ if ( !fx.clipInit ) {
882
+ fx.start = $( fx.elem ).cssClip();
883
+ if ( typeof fx.end === "string" ) {
884
+ fx.end = parseClip( fx.end, fx.elem );
885
+ }
886
+ fx.clipInit = true;
887
+ }
888
+
889
+ $( fx.elem ).cssClip( {
890
+ top: fx.pos * ( fx.end.top - fx.start.top ) + fx.start.top,
891
+ right: fx.pos * ( fx.end.right - fx.start.right ) + fx.start.right,
892
+ bottom: fx.pos * ( fx.end.bottom - fx.start.bottom ) + fx.start.bottom,
893
+ left: fx.pos * ( fx.end.left - fx.start.left ) + fx.start.left
894
+ } );
895
+ };
896
+
897
+ } )();
898
+
899
+ /******************************************************************************/
900
+ /*********************************** EASING ***********************************/
901
+ /******************************************************************************/
902
+
903
+ ( function() {
904
+
905
+ // Based on easing equations from Robert Penner (http://robertpenner.com/easing)
906
+
907
+ var baseEasings = {};
908
+
909
+ $.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
910
+ baseEasings[ name ] = function( p ) {
911
+ return Math.pow( p, i + 2 );
912
+ };
913
+ } );
914
+
915
+ $.extend( baseEasings, {
916
+ Sine: function( p ) {
917
+ return 1 - Math.cos( p * Math.PI / 2 );
918
+ },
919
+ Circ: function( p ) {
920
+ return 1 - Math.sqrt( 1 - p * p );
921
+ },
922
+ Elastic: function( p ) {
923
+ return p === 0 || p === 1 ? p :
924
+ -Math.pow( 2, 8 * ( p - 1 ) ) * Math.sin( ( ( p - 1 ) * 80 - 7.5 ) * Math.PI / 15 );
925
+ },
926
+ Back: function( p ) {
927
+ return p * p * ( 3 * p - 2 );
928
+ },
929
+ Bounce: function( p ) {
930
+ var pow2,
931
+ bounce = 4;
932
+
933
+ while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
934
+ return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
935
+ }
936
+ } );
937
+
938
+ $.each( baseEasings, function( name, easeIn ) {
939
+ $.easing[ "easeIn" + name ] = easeIn;
940
+ $.easing[ "easeOut" + name ] = function( p ) {
941
+ return 1 - easeIn( 1 - p );
942
+ };
943
+ $.easing[ "easeInOut" + name ] = function( p ) {
944
+ return p < 0.5 ?
945
+ easeIn( p * 2 ) / 2 :
946
+ 1 - easeIn( p * -2 + 2 ) / 2;
947
+ };
948
+ } );
949
+
950
+ } )();
951
+
952
+ return $.effects;
953
+
954
+ } );