jquery-ui-rails 4.2.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +7 -0
  2. data/.gitmodules +1 -1
  3. data/.travis.yml +1 -1
  4. data/History.md +41 -2
  5. data/README.md +100 -83
  6. data/Rakefile +82 -49
  7. data/VERSIONS.md +9 -0
  8. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  15. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  16. data/app/assets/javascripts/jquery-ui/data.js +45 -0
  17. data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
  18. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  19. data/app/assets/javascripts/jquery-ui/effect.js +975 -0
  20. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
  21. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
  22. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
  35. data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
  36. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
  37. data/app/assets/javascripts/jquery-ui/form.js +25 -0
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +40 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
  113. data/app/assets/javascripts/jquery-ui/ie.js +20 -0
  114. data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
  115. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  116. data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
  117. data/app/assets/javascripts/jquery-ui/labels.js +71 -0
  118. data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
  119. data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +120 -108
  120. data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
  121. data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
  122. data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
  123. data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
  124. data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
  125. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
  126. data/app/assets/javascripts/jquery-ui/version.js +20 -0
  127. data/app/assets/javascripts/jquery-ui/widget.js +754 -0
  128. data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/widgets/accordion.js} +257 -203
  129. data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/widgets/autocomplete.js} +202 -133
  130. data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +289 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +968 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1268 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +508 -0
  137. data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/widgets/menu.js} +276 -187
  138. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +184 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +702 -0
  143. data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/widgets/slider.js} +254 -174
  144. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1623 -0
  145. data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/widgets/spinner.js} +206 -119
  146. data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/widgets/tabs.js} +334 -255
  147. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +530 -0
  148. data/app/assets/javascripts/jquery-ui.js +57 -0
  149. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  150. data/app/assets/stylesheets/{jquery.ui.all.css.erb → jquery-ui/all.css} +4 -4
  151. data/app/assets/stylesheets/{jquery.ui.autocomplete.css.erb → jquery-ui/autocomplete.css} +3 -5
  152. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  153. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  154. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  155. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  156. data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css} +16 -9
  157. data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css} +14 -5
  158. data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css} +40 -12
  159. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  160. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  161. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  162. data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css} +5 -4
  163. data/app/assets/stylesheets/{jquery.ui.selectable.css.erb → jquery-ui/selectable.css} +7 -4
  164. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  165. data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css} +7 -6
  166. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  167. data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css} +9 -24
  168. data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css} +3 -4
  169. data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +122 -96
  170. data/app/assets/stylesheets/{jquery.ui.tooltip.css.erb → jquery-ui/tooltip.css} +3 -6
  171. data/app/assets/stylesheets/jquery-ui.css +1 -0
  172. data/lib/jquery/ui/rails/version.rb +2 -2
  173. metadata +180 -166
  174. data/app/assets/images/jquery-ui/animated-overlay.gif +0 -0
  175. data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  176. data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  177. data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  178. data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  179. data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  180. data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  181. data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  182. data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  183. data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  184. data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  185. data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  186. data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  187. data/app/assets/javascripts/jquery.ui.all.js +0 -34
  188. data/app/assets/javascripts/jquery.ui.button.js +0 -398
  189. data/app/assets/javascripts/jquery.ui.core.js +0 -320
  190. data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  191. data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  192. data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  193. data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  194. data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  195. data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  196. data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  197. data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  198. data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  199. data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  200. data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  201. data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  202. data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  203. data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  204. data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  205. data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  206. data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  207. data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  208. data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  209. data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  210. data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  211. data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  212. data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  213. data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  214. data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  215. data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  216. data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  217. data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  218. data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  219. data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  220. data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  221. data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  222. data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  223. data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  224. data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  225. data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  226. data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  227. data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  228. data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  229. data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  230. data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  231. data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  232. data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  233. data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  234. data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  235. data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  236. data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  237. data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  238. data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  239. data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  240. data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  241. data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  242. data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  243. data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  244. data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  245. data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  246. data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  247. data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  248. data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  249. data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  250. data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  251. data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  252. data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  253. data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  254. data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  255. data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  256. data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  257. data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  258. data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  259. data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  260. data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  261. data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  262. data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  263. data/app/assets/javascripts/jquery.ui.datepicker.js +0 -2040
  264. data/app/assets/javascripts/jquery.ui.dialog.js +0 -830
  265. data/app/assets/javascripts/jquery.ui.draggable.js +0 -962
  266. data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
  267. data/app/assets/javascripts/jquery.ui.effect-blind.js +0 -84
  268. data/app/assets/javascripts/jquery.ui.effect-bounce.js +0 -115
  269. data/app/assets/javascripts/jquery.ui.effect-clip.js +0 -69
  270. data/app/assets/javascripts/jquery.ui.effect-drop.js +0 -67
  271. data/app/assets/javascripts/jquery.ui.effect-explode.js +0 -99
  272. data/app/assets/javascripts/jquery.ui.effect-fade.js +0 -32
  273. data/app/assets/javascripts/jquery.ui.effect-fold.js +0 -78
  274. data/app/assets/javascripts/jquery.ui.effect-highlight.js +0 -52
  275. data/app/assets/javascripts/jquery.ui.effect-pulsate.js +0 -65
  276. data/app/assets/javascripts/jquery.ui.effect-scale.js +0 -320
  277. data/app/assets/javascripts/jquery.ui.effect-shake.js +0 -76
  278. data/app/assets/javascripts/jquery.ui.effect-slide.js +0 -66
  279. data/app/assets/javascripts/jquery.ui.effect-transfer.js +0 -49
  280. data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
  281. data/app/assets/javascripts/jquery.ui.effect.js +0 -1289
  282. data/app/assets/javascripts/jquery.ui.mouse.js +0 -172
  283. data/app/assets/javascripts/jquery.ui.progressbar.js +0 -148
  284. data/app/assets/javascripts/jquery.ui.resizable.js +0 -982
  285. data/app/assets/javascripts/jquery.ui.selectable.js +0 -281
  286. data/app/assets/javascripts/jquery.ui.sortable.js +0 -1293
  287. data/app/assets/javascripts/jquery.ui.tooltip.js +0 -406
  288. data/app/assets/javascripts/jquery.ui.widget.js +0 -521
  289. data/app/assets/stylesheets/jquery.ui.accordion.css.erb +0 -42
  290. data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
  291. data/app/assets/stylesheets/jquery.ui.button.css.erb +0 -118
  292. data/app/assets/stylesheets/jquery.ui.menu.css.erb +0 -83
  293. data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -37
@@ -1,34 +1,61 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.mouse
1
+ //= require jquery-ui/widgets/mouse
2
+ //= require jquery-ui/keycode
3
+ //= require jquery-ui/version
4
+ //= require jquery-ui/widget
4
5
 
5
6
  /*!
6
- * jQuery UI Slider 1.10.4
7
+ * jQuery UI Slider 1.13.0
7
8
  * http://jqueryui.com
8
9
  *
9
- * Copyright 2014 jQuery Foundation and other contributors
10
+ * Copyright jQuery Foundation and other contributors
10
11
  * Released under the MIT license.
11
12
  * http://jquery.org/license
12
- *
13
- * http://api.jqueryui.com/slider/
14
- *
15
- * Depends:
16
- * jquery.ui.core.js
17
- * jquery.ui.mouse.js
18
- * jquery.ui.widget.js
19
13
  */
20
- (function( $, undefined ) {
21
14
 
22
- // number of pages in a slider
23
- // (how many times can you page up/down to go through the whole range)
24
- var numPages = 5;
15
+ //>>label: Slider
16
+ //>>group: Widgets
17
+ //>>description: Displays a flexible slider with ranges and accessibility via keyboard.
18
+ //>>docs: http://api.jqueryui.com/slider/
19
+ //>>demos: http://jqueryui.com/slider/
20
+ //>>css.structure: ../../themes/base/core.css
21
+ //>>css.structure: ../../themes/base/slider.css
22
+ //>>css.theme: ../../themes/base/theme.css
23
+
24
+ ( function( factory ) {
25
+ "use strict";
26
+
27
+ if ( typeof define === "function" && define.amd ) {
28
+
29
+ // AMD. Register as an anonymous module.
30
+ define( [
31
+ "jquery",
32
+ "./mouse",
33
+ "../keycode",
34
+ "../version",
35
+ "../widget"
36
+ ], factory );
37
+ } else {
38
+
39
+ // Browser globals
40
+ factory( jQuery );
41
+ }
42
+ } )( function( $ ) {
43
+ "use strict";
25
44
 
26
- $.widget( "ui.slider", $.ui.mouse, {
27
- version: "1.10.4",
45
+ return $.widget( "ui.slider", $.ui.mouse, {
46
+ version: "1.13.0",
28
47
  widgetEventPrefix: "slide",
29
48
 
30
49
  options: {
31
50
  animate: false,
51
+ classes: {
52
+ "ui-slider": "ui-corner-all",
53
+ "ui-slider-handle": "ui-corner-all",
54
+
55
+ // Note: ui-widget-header isn't the most fittingly semantic framework class for this
56
+ // element, but worked best visually with a variety of themes
57
+ "ui-slider-range": "ui-corner-all ui-widget-header"
58
+ },
32
59
  distance: 0,
33
60
  max: 100,
34
61
  min: 0,
@@ -38,13 +65,17 @@ $.widget( "ui.slider", $.ui.mouse, {
38
65
  value: 0,
39
66
  values: null,
40
67
 
41
- // callbacks
68
+ // Callbacks
42
69
  change: null,
43
70
  slide: null,
44
71
  start: null,
45
72
  stop: null
46
73
  },
47
74
 
75
+ // Number of pages in a slider
76
+ // (how many times can you page up/down to go through the whole range)
77
+ numPages: 5,
78
+
48
79
  _create: function() {
49
80
  this._keySliding = false;
50
81
  this._mouseSliding = false;
@@ -52,16 +83,12 @@ $.widget( "ui.slider", $.ui.mouse, {
52
83
  this._handleIndex = null;
53
84
  this._detectOrientation();
54
85
  this._mouseInit();
86
+ this._calculateNewMax();
55
87
 
56
- this.element
57
- .addClass( "ui-slider" +
58
- " ui-slider-" + this.orientation +
59
- " ui-widget" +
60
- " ui-widget-content" +
61
- " ui-corner-all");
88
+ this._addClass( "ui-slider ui-slider-" + this.orientation,
89
+ "ui-widget ui-widget-content" );
62
90
 
63
91
  this._refresh();
64
- this._setOption( "disabled", this.options.disabled );
65
92
 
66
93
  this._animateOff = false;
67
94
  },
@@ -76,8 +103,8 @@ $.widget( "ui.slider", $.ui.mouse, {
76
103
  _createHandles: function() {
77
104
  var i, handleCount,
78
105
  options = this.options,
79
- existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
80
- handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",
106
+ existingHandles = this.element.find( ".ui-slider-handle" ),
107
+ handle = "<span tabindex='0'></span>",
81
108
  handles = [];
82
109
 
83
110
  handleCount = ( options.values && options.values.length ) || 1;
@@ -93,47 +120,48 @@ $.widget( "ui.slider", $.ui.mouse, {
93
120
 
94
121
  this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
95
122
 
123
+ this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
124
+
96
125
  this.handle = this.handles.eq( 0 );
97
126
 
98
- this.handles.each(function( i ) {
99
- $( this ).data( "ui-slider-handle-index", i );
100
- });
127
+ this.handles.each( function( i ) {
128
+ $( this )
129
+ .data( "ui-slider-handle-index", i )
130
+ .attr( "tabIndex", 0 );
131
+ } );
101
132
  },
102
133
 
103
134
  _createRange: function() {
104
- var options = this.options,
105
- classes = "";
135
+ var options = this.options;
106
136
 
107
137
  if ( options.range ) {
108
138
  if ( options.range === true ) {
109
139
  if ( !options.values ) {
110
140
  options.values = [ this._valueMin(), this._valueMin() ];
111
141
  } else if ( options.values.length && options.values.length !== 2 ) {
112
- options.values = [ options.values[0], options.values[0] ];
113
- } else if ( $.isArray( options.values ) ) {
114
- options.values = options.values.slice(0);
142
+ options.values = [ options.values[ 0 ], options.values[ 0 ] ];
143
+ } else if ( Array.isArray( options.values ) ) {
144
+ options.values = options.values.slice( 0 );
115
145
  }
116
146
  }
117
147
 
118
148
  if ( !this.range || !this.range.length ) {
119
- this.range = $( "<div></div>" )
149
+ this.range = $( "<div>" )
120
150
  .appendTo( this.element );
121
151
 
122
- classes = "ui-slider-range" +
123
- // note: this isn't the most fittingly semantic framework class for this element,
124
- // but worked best visually with a variety of themes
125
- " ui-widget-header ui-corner-all";
152
+ this._addClass( this.range, "ui-slider-range" );
126
153
  } else {
127
- this.range.removeClass( "ui-slider-range-min ui-slider-range-max" )
128
- // Handle range switching from true to min/max
129
- .css({
130
- "left": "",
131
- "bottom": ""
132
- });
133
- }
154
+ this._removeClass( this.range, "ui-slider-range-min ui-slider-range-max" );
134
155
 
135
- this.range.addClass( classes +
136
- ( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) );
156
+ // Handle range switching from true to min/max
157
+ this.range.css( {
158
+ "left": "",
159
+ "bottom": ""
160
+ } );
161
+ }
162
+ if ( options.range === "min" || options.range === "max" ) {
163
+ this._addClass( this.range, "ui-slider-range-" + options.range );
164
+ }
137
165
  } else {
138
166
  if ( this.range ) {
139
167
  this.range.remove();
@@ -143,11 +171,10 @@ $.widget( "ui.slider", $.ui.mouse, {
143
171
  },
144
172
 
145
173
  _setupEvents: function() {
146
- var elements = this.handles.add( this.range ).filter( "a" );
147
- this._off( elements );
148
- this._on( elements, this._handleEvents );
149
- this._hoverable( elements );
150
- this._focusable( elements );
174
+ this._off( this.handles );
175
+ this._on( this.handles, this._handleEvents );
176
+ this._hoverable( this.handles );
177
+ this._focusable( this.handles );
151
178
  },
152
179
 
153
180
  _destroy: function() {
@@ -156,14 +183,6 @@ $.widget( "ui.slider", $.ui.mouse, {
156
183
  this.range.remove();
157
184
  }
158
185
 
159
- this.element
160
- .removeClass( "ui-slider" +
161
- " ui-slider-horizontal" +
162
- " ui-slider-vertical" +
163
- " ui-widget" +
164
- " ui-widget-content" +
165
- " ui-corner-all" );
166
-
167
186
  this._mouseDestroy();
168
187
  },
169
188
 
@@ -185,16 +204,16 @@ $.widget( "ui.slider", $.ui.mouse, {
185
204
  position = { x: event.pageX, y: event.pageY };
186
205
  normValue = this._normValueFromMouse( position );
187
206
  distance = this._valueMax() - this._valueMin() + 1;
188
- this.handles.each(function( i ) {
189
- var thisDistance = Math.abs( normValue - that.values(i) );
190
- if (( distance > thisDistance ) ||
207
+ this.handles.each( function( i ) {
208
+ var thisDistance = Math.abs( normValue - that.values( i ) );
209
+ if ( ( distance > thisDistance ) ||
191
210
  ( distance === thisDistance &&
192
- (i === that._lastChangedValue || that.values(i) === o.min ))) {
211
+ ( i === that._lastChangedValue || that.values( i ) === o.min ) ) ) {
193
212
  distance = thisDistance;
194
213
  closestHandle = $( this );
195
214
  index = i;
196
215
  }
197
- });
216
+ } );
198
217
 
199
218
  allowed = this._start( event, index );
200
219
  if ( allowed === false ) {
@@ -204,9 +223,8 @@ $.widget( "ui.slider", $.ui.mouse, {
204
223
 
205
224
  this._handleIndex = index;
206
225
 
207
- closestHandle
208
- .addClass( "ui-state-active" )
209
- .focus();
226
+ this._addClass( closestHandle, null, "ui-state-active" );
227
+ closestHandle.trigger( "focus" );
210
228
 
211
229
  offset = closestHandle.offset();
212
230
  mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
@@ -214,9 +232,9 @@ $.widget( "ui.slider", $.ui.mouse, {
214
232
  left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
215
233
  top: event.pageY - offset.top -
216
234
  ( closestHandle.height() / 2 ) -
217
- ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
218
- ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
219
- ( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
235
+ ( parseInt( closestHandle.css( "borderTopWidth" ), 10 ) || 0 ) -
236
+ ( parseInt( closestHandle.css( "borderBottomWidth" ), 10 ) || 0 ) +
237
+ ( parseInt( closestHandle.css( "marginTop" ), 10 ) || 0 )
220
238
  };
221
239
 
222
240
  if ( !this.handles.hasClass( "ui-state-hover" ) ) {
@@ -240,7 +258,7 @@ $.widget( "ui.slider", $.ui.mouse, {
240
258
  },
241
259
 
242
260
  _mouseStop: function( event ) {
243
- this.handles.removeClass( "ui-state-active" );
261
+ this._removeClass( this.handles, null, "ui-state-active" );
244
262
  this._mouseSliding = false;
245
263
 
246
264
  this._stop( event, this._handleIndex );
@@ -266,10 +284,12 @@ $.widget( "ui.slider", $.ui.mouse, {
266
284
 
267
285
  if ( this.orientation === "horizontal" ) {
268
286
  pixelTotal = this.elementSize.width;
269
- pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
287
+ pixelMouse = position.x - this.elementOffset.left -
288
+ ( this._clickOffset ? this._clickOffset.left : 0 );
270
289
  } else {
271
290
  pixelTotal = this.elementSize.height;
272
- pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
291
+ pixelMouse = position.y - this.elementOffset.top -
292
+ ( this._clickOffset ? this._clickOffset.top : 0 );
273
293
  }
274
294
 
275
295
  percentMouse = ( pixelMouse / pixelTotal );
@@ -289,88 +309,73 @@ $.widget( "ui.slider", $.ui.mouse, {
289
309
  return this._trimAlignValue( valueMouse );
290
310
  },
291
311
 
292
- _start: function( event, index ) {
312
+ _uiHash: function( index, value, values ) {
293
313
  var uiHash = {
294
314
  handle: this.handles[ index ],
295
- value: this.value()
315
+ handleIndex: index,
316
+ value: value !== undefined ? value : this.value()
296
317
  };
297
- if ( this.options.values && this.options.values.length ) {
298
- uiHash.value = this.values( index );
299
- uiHash.values = this.values();
318
+
319
+ if ( this._hasMultipleValues() ) {
320
+ uiHash.value = value !== undefined ? value : this.values( index );
321
+ uiHash.values = values || this.values();
300
322
  }
301
- return this._trigger( "start", event, uiHash );
323
+
324
+ return uiHash;
325
+ },
326
+
327
+ _hasMultipleValues: function() {
328
+ return this.options.values && this.options.values.length;
329
+ },
330
+
331
+ _start: function( event, index ) {
332
+ return this._trigger( "start", event, this._uiHash( index ) );
302
333
  },
303
334
 
304
335
  _slide: function( event, index, newVal ) {
305
- var otherVal,
306
- newValues,
307
- allowed;
336
+ var allowed, otherVal,
337
+ currentValue = this.value(),
338
+ newValues = this.values();
308
339
 
309
- if ( this.options.values && this.options.values.length ) {
340
+ if ( this._hasMultipleValues() ) {
310
341
  otherVal = this.values( index ? 0 : 1 );
342
+ currentValue = this.values( index );
311
343
 
312
- if ( ( this.options.values.length === 2 && this.options.range === true ) &&
313
- ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
314
- ) {
315
- newVal = otherVal;
344
+ if ( this.options.values.length === 2 && this.options.range === true ) {
345
+ newVal = index === 0 ? Math.min( otherVal, newVal ) : Math.max( otherVal, newVal );
316
346
  }
317
347
 
318
- if ( newVal !== this.values( index ) ) {
319
- newValues = this.values();
320
- newValues[ index ] = newVal;
321
- // A slide can be canceled by returning false from the slide callback
322
- allowed = this._trigger( "slide", event, {
323
- handle: this.handles[ index ],
324
- value: newVal,
325
- values: newValues
326
- } );
327
- otherVal = this.values( index ? 0 : 1 );
328
- if ( allowed !== false ) {
329
- this.values( index, newVal );
330
- }
331
- }
348
+ newValues[ index ] = newVal;
349
+ }
350
+
351
+ if ( newVal === currentValue ) {
352
+ return;
353
+ }
354
+
355
+ allowed = this._trigger( "slide", event, this._uiHash( index, newVal, newValues ) );
356
+
357
+ // A slide can be canceled by returning false from the slide callback
358
+ if ( allowed === false ) {
359
+ return;
360
+ }
361
+
362
+ if ( this._hasMultipleValues() ) {
363
+ this.values( index, newVal );
332
364
  } else {
333
- if ( newVal !== this.value() ) {
334
- // A slide can be canceled by returning false from the slide callback
335
- allowed = this._trigger( "slide", event, {
336
- handle: this.handles[ index ],
337
- value: newVal
338
- } );
339
- if ( allowed !== false ) {
340
- this.value( newVal );
341
- }
342
- }
365
+ this.value( newVal );
343
366
  }
344
367
  },
345
368
 
346
369
  _stop: function( event, index ) {
347
- var uiHash = {
348
- handle: this.handles[ index ],
349
- value: this.value()
350
- };
351
- if ( this.options.values && this.options.values.length ) {
352
- uiHash.value = this.values( index );
353
- uiHash.values = this.values();
354
- }
355
-
356
- this._trigger( "stop", event, uiHash );
370
+ this._trigger( "stop", event, this._uiHash( index ) );
357
371
  },
358
372
 
359
373
  _change: function( event, index ) {
360
374
  if ( !this._keySliding && !this._mouseSliding ) {
361
- var uiHash = {
362
- handle: this.handles[ index ],
363
- value: this.value()
364
- };
365
- if ( this.options.values && this.options.values.length ) {
366
- uiHash.value = this.values( index );
367
- uiHash.values = this.values();
368
- }
369
375
 
370
376
  //store the last changed value index for reference when handles overlap
371
377
  this._lastChangedValue = index;
372
-
373
- this._trigger( "change", event, uiHash );
378
+ this._trigger( "change", event, this._uiHash( index ) );
374
379
  }
375
380
  },
376
381
 
@@ -398,7 +403,7 @@ $.widget( "ui.slider", $.ui.mouse, {
398
403
  }
399
404
 
400
405
  if ( arguments.length ) {
401
- if ( $.isArray( arguments[ 0 ] ) ) {
406
+ if ( Array.isArray( arguments[ 0 ] ) ) {
402
407
  vals = this.options.values;
403
408
  newValues = arguments[ 0 ];
404
409
  for ( i = 0; i < vals.length; i += 1 ) {
@@ -407,7 +412,7 @@ $.widget( "ui.slider", $.ui.mouse, {
407
412
  }
408
413
  this._refreshValue();
409
414
  } else {
410
- if ( this.options.values && this.options.values.length ) {
415
+ if ( this._hasMultipleValues() ) {
411
416
  return this._values( index );
412
417
  } else {
413
418
  return this.value();
@@ -427,24 +432,29 @@ $.widget( "ui.slider", $.ui.mouse, {
427
432
  this.options.value = this._values( 0 );
428
433
  this.options.values = null;
429
434
  } else if ( value === "max" ) {
430
- this.options.value = this._values( this.options.values.length-1 );
435
+ this.options.value = this._values( this.options.values.length - 1 );
431
436
  this.options.values = null;
432
437
  }
433
438
  }
434
439
 
435
- if ( $.isArray( this.options.values ) ) {
440
+ if ( Array.isArray( this.options.values ) ) {
436
441
  valsLength = this.options.values.length;
437
442
  }
438
443
 
439
- $.Widget.prototype._setOption.apply( this, arguments );
444
+ this._super( key, value );
440
445
 
441
446
  switch ( key ) {
442
447
  case "orientation":
443
448
  this._detectOrientation();
444
- this.element
445
- .removeClass( "ui-slider-horizontal ui-slider-vertical" )
446
- .addClass( "ui-slider-" + this.orientation );
449
+ this._removeClass( "ui-slider-horizontal ui-slider-vertical" )
450
+ ._addClass( "ui-slider-" + this.orientation );
447
451
  this._refreshValue();
452
+ if ( this.options.range ) {
453
+ this._refreshRange( value );
454
+ }
455
+
456
+ // Reset positioning from previous orientation
457
+ this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
448
458
  break;
449
459
  case "value":
450
460
  this._animateOff = true;
@@ -455,14 +465,18 @@ $.widget( "ui.slider", $.ui.mouse, {
455
465
  case "values":
456
466
  this._animateOff = true;
457
467
  this._refreshValue();
458
- for ( i = 0; i < valsLength; i += 1 ) {
468
+
469
+ // Start from the last handle to prevent unreachable handles (#9046)
470
+ for ( i = valsLength - 1; i >= 0; i-- ) {
459
471
  this._change( null, i );
460
472
  }
461
473
  this._animateOff = false;
462
474
  break;
475
+ case "step":
463
476
  case "min":
464
477
  case "max":
465
478
  this._animateOff = true;
479
+ this._calculateNewMax();
466
480
  this._refreshValue();
467
481
  this._animateOff = false;
468
482
  break;
@@ -474,6 +488,12 @@ $.widget( "ui.slider", $.ui.mouse, {
474
488
  }
475
489
  },
476
490
 
491
+ _setOptionDisabled: function( value ) {
492
+ this._super( value );
493
+
494
+ this._toggleClass( null, "ui-state-disabled", !!value );
495
+ },
496
+
477
497
  //internal value getter
478
498
  // _value() returns value trimmed by min and max, aligned by step
479
499
  _value: function() {
@@ -496,11 +516,12 @@ $.widget( "ui.slider", $.ui.mouse, {
496
516
  val = this._trimAlignValue( val );
497
517
 
498
518
  return val;
499
- } else if ( this.options.values && this.options.values.length ) {
519
+ } else if ( this._hasMultipleValues() ) {
520
+
500
521
  // .slice() creates a copy of the array
501
522
  // this copy gets trimmed by min and max and then returned
502
523
  vals = this.options.values.slice();
503
- for ( i = 0; i < vals.length; i+= 1) {
524
+ for ( i = 0; i < vals.length; i += 1 ) {
504
525
  vals[ i ] = this._trimAlignValue( vals[ i ] );
505
526
  }
506
527
 
@@ -510,7 +531,7 @@ $.widget( "ui.slider", $.ui.mouse, {
510
531
  }
511
532
  },
512
533
 
513
- // returns the step-aligned value that val is closest to, between (inclusive) min and max
534
+ // Returns the step-aligned value that val is closest to, between (inclusive) min and max
514
535
  _trimAlignValue: function( val ) {
515
536
  if ( val <= this._valueMin() ) {
516
537
  return this._valueMin();
@@ -519,16 +540,44 @@ $.widget( "ui.slider", $.ui.mouse, {
519
540
  return this._valueMax();
520
541
  }
521
542
  var step = ( this.options.step > 0 ) ? this.options.step : 1,
522
- valModStep = (val - this._valueMin()) % step,
543
+ valModStep = ( val - this._valueMin() ) % step,
523
544
  alignValue = val - valModStep;
524
545
 
525
- if ( Math.abs(valModStep) * 2 >= step ) {
546
+ if ( Math.abs( valModStep ) * 2 >= step ) {
526
547
  alignValue += ( valModStep > 0 ) ? step : ( -step );
527
548
  }
528
549
 
529
550
  // Since JavaScript has problems with large floats, round
530
551
  // the final value to 5 digits after the decimal point (see #4124)
531
- return parseFloat( alignValue.toFixed(5) );
552
+ return parseFloat( alignValue.toFixed( 5 ) );
553
+ },
554
+
555
+ _calculateNewMax: function() {
556
+ var max = this.options.max,
557
+ min = this._valueMin(),
558
+ step = this.options.step,
559
+ aboveMin = Math.round( ( max - min ) / step ) * step;
560
+ max = aboveMin + min;
561
+ if ( max > this.options.max ) {
562
+
563
+ //If max is not divisible by step, rounding off may increase its value
564
+ max -= step;
565
+ }
566
+ this.max = parseFloat( max.toFixed( this._precision() ) );
567
+ },
568
+
569
+ _precision: function() {
570
+ var precision = this._precisionOf( this.options.step );
571
+ if ( this.options.min !== null ) {
572
+ precision = Math.max( precision, this._precisionOf( this.options.min ) );
573
+ }
574
+ return precision;
575
+ },
576
+
577
+ _precisionOf: function( num ) {
578
+ var str = num.toString(),
579
+ decimal = str.indexOf( "." );
580
+ return decimal === -1 ? 0 : str.length - decimal - 1;
532
581
  },
533
582
 
534
583
  _valueMin: function() {
@@ -536,7 +585,16 @@ $.widget( "ui.slider", $.ui.mouse, {
536
585
  },
537
586
 
538
587
  _valueMax: function() {
539
- return this.options.max;
588
+ return this.max;
589
+ },
590
+
591
+ _refreshRange: function( orientation ) {
592
+ if ( orientation === "vertical" ) {
593
+ this.range.css( { "width": "", "left": "" } );
594
+ }
595
+ if ( orientation === "horizontal" ) {
596
+ this.range.css( { "height": "", "bottom": "" } );
597
+ }
540
598
  },
541
599
 
542
600
  _refreshValue: function() {
@@ -547,30 +605,45 @@ $.widget( "ui.slider", $.ui.mouse, {
547
605
  animate = ( !this._animateOff ) ? o.animate : false,
548
606
  _set = {};
549
607
 
550
- if ( this.options.values && this.options.values.length ) {
551
- this.handles.each(function( i ) {
552
- valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;
608
+ if ( this._hasMultipleValues() ) {
609
+ this.handles.each( function( i ) {
610
+ valPercent = ( that.values( i ) - that._valueMin() ) / ( that._valueMax() -
611
+ that._valueMin() ) * 100;
553
612
  _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
554
613
  $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
555
614
  if ( that.options.range === true ) {
556
615
  if ( that.orientation === "horizontal" ) {
557
616
  if ( i === 0 ) {
558
- that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
617
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
618
+ left: valPercent + "%"
619
+ }, o.animate );
559
620
  }
560
621
  if ( i === 1 ) {
561
- that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
622
+ that.range[ animate ? "animate" : "css" ]( {
623
+ width: ( valPercent - lastValPercent ) + "%"
624
+ }, {
625
+ queue: false,
626
+ duration: o.animate
627
+ } );
562
628
  }
563
629
  } else {
564
630
  if ( i === 0 ) {
565
- that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
631
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
632
+ bottom: ( valPercent ) + "%"
633
+ }, o.animate );
566
634
  }
567
635
  if ( i === 1 ) {
568
- that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
636
+ that.range[ animate ? "animate" : "css" ]( {
637
+ height: ( valPercent - lastValPercent ) + "%"
638
+ }, {
639
+ queue: false,
640
+ duration: o.animate
641
+ } );
569
642
  }
570
643
  }
571
644
  }
572
645
  lastValPercent = valPercent;
573
- });
646
+ } );
574
647
  } else {
575
648
  value = this.value();
576
649
  valueMin = this._valueMin();
@@ -582,16 +655,24 @@ $.widget( "ui.slider", $.ui.mouse, {
582
655
  this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
583
656
 
584
657
  if ( oRange === "min" && this.orientation === "horizontal" ) {
585
- this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
658
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
659
+ width: valPercent + "%"
660
+ }, o.animate );
586
661
  }
587
662
  if ( oRange === "max" && this.orientation === "horizontal" ) {
588
- this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
663
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
664
+ width: ( 100 - valPercent ) + "%"
665
+ }, o.animate );
589
666
  }
590
667
  if ( oRange === "min" && this.orientation === "vertical" ) {
591
- this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
668
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
669
+ height: valPercent + "%"
670
+ }, o.animate );
592
671
  }
593
672
  if ( oRange === "max" && this.orientation === "vertical" ) {
594
- this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
673
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
674
+ height: ( 100 - valPercent ) + "%"
675
+ }, o.animate );
595
676
  }
596
677
  }
597
678
  },
@@ -613,7 +694,7 @@ $.widget( "ui.slider", $.ui.mouse, {
613
694
  event.preventDefault();
614
695
  if ( !this._keySliding ) {
615
696
  this._keySliding = true;
616
- $( event.target ).addClass( "ui-state-active" );
697
+ this._addClass( $( event.target ), null, "ui-state-active" );
617
698
  allowed = this._start( event, index );
618
699
  if ( allowed === false ) {
619
700
  return;
@@ -623,7 +704,7 @@ $.widget( "ui.slider", $.ui.mouse, {
623
704
  }
624
705
 
625
706
  step = this.options.step;
626
- if ( this.options.values && this.options.values.length ) {
707
+ if ( this._hasMultipleValues() ) {
627
708
  curVal = newVal = this.values( index );
628
709
  } else {
629
710
  curVal = newVal = this.value();
@@ -637,10 +718,13 @@ $.widget( "ui.slider", $.ui.mouse, {
637
718
  newVal = this._valueMax();
638
719
  break;
639
720
  case $.ui.keyCode.PAGE_UP:
640
- newVal = this._trimAlignValue( curVal + ( (this._valueMax() - this._valueMin()) / numPages ) );
721
+ newVal = this._trimAlignValue(
722
+ curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
723
+ );
641
724
  break;
642
725
  case $.ui.keyCode.PAGE_DOWN:
643
- newVal = this._trimAlignValue( curVal - ( (this._valueMax() - this._valueMin()) / numPages ) );
726
+ newVal = this._trimAlignValue(
727
+ curVal - ( ( this._valueMax() - this._valueMin() ) / this.numPages ) );
644
728
  break;
645
729
  case $.ui.keyCode.UP:
646
730
  case $.ui.keyCode.RIGHT:
@@ -660,9 +744,6 @@ $.widget( "ui.slider", $.ui.mouse, {
660
744
 
661
745
  this._slide( event, index, newVal );
662
746
  },
663
- click: function( event ) {
664
- event.preventDefault();
665
- },
666
747
  keyup: function( event ) {
667
748
  var index = $( event.target ).data( "ui-slider-handle-index" );
668
749
 
@@ -670,11 +751,10 @@ $.widget( "ui.slider", $.ui.mouse, {
670
751
  this._keySliding = false;
671
752
  this._stop( event, index );
672
753
  this._change( event, index );
673
- $( event.target ).removeClass( "ui-state-active" );
754
+ this._removeClass( $( event.target ), null, "ui-state-active" );
674
755
  }
675
756
  }
676
757
  }
758
+ } );
677
759
 
678
- });
679
-
680
- }(jQuery));
760
+ } );