jquery-ui-rails 4.0.0 → 5.0.4

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.

Potentially problematic release.


This version of jquery-ui-rails might be problematic. Click here for more details.

Files changed (239) hide show
  1. data/.travis.yml +0 -1
  2. data/Gemfile +1 -1
  3. data/History.md +62 -0
  4. data/README.md +86 -74
  5. data/Rakefile +69 -37
  6. data/VERSIONS.md +36 -0
  7. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  8. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  9. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  10. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  11. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  12. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  13. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  14. data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  15. data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  16. data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  17. data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  18. data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  19. data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  20. data/{vendor/assets/javascripts/jquery.ui.accordion.js → app/assets/javascripts/jquery-ui/accordion.js} +90 -74
  21. data/{vendor/assets/javascripts/jquery.ui.autocomplete.js → app/assets/javascripts/jquery-ui/autocomplete.js} +105 -91
  22. data/{vendor/assets/javascripts/jquery.ui.button.js → app/assets/javascripts/jquery-ui/button.js} +60 -68
  23. data/{vendor/assets/javascripts/jquery.ui.core.js → app/assets/javascripts/jquery-ui/core.js} +112 -132
  24. data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
  25. data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
  26. data/app/assets/javascripts/jquery-ui/datepicker-ar.js +38 -0
  27. data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
  28. data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
  29. data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
  30. data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
  31. data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
  32. data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
  33. data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
  34. data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
  35. data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
  36. data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
  37. data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
  38. data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
  39. data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
  40. data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
  41. data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
  42. data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
  44. data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
  45. data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
  48. data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
  50. data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
  52. data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
  55. data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
  59. data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
  61. data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
  62. data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
  63. data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
  65. data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
  66. data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
  68. data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
  73. data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
  76. data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
  80. data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
  81. data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
  82. data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
  84. data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
  85. data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
  86. data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
  87. data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
  88. data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
  91. data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
  92. data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
  94. data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
  95. data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
  96. data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
  97. data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
  98. data/{vendor/assets/javascripts/jquery.ui.datepicker.js → app/assets/javascripts/jquery-ui/datepicker.js} +120 -80
  99. data/{vendor/assets/javascripts/jquery.ui.dialog.js → app/assets/javascripts/jquery-ui/dialog.js} +298 -190
  100. data/app/assets/javascripts/jquery-ui/draggable.js +1132 -0
  101. data/app/assets/javascripts/jquery-ui/droppable.js +418 -0
  102. data/{vendor/assets/javascripts/jquery.ui.effect-blind.js → app/assets/javascripts/jquery-ui/effect-blind.js} +21 -13
  103. data/{vendor/assets/javascripts/jquery.ui.effect-bounce.js → app/assets/javascripts/jquery-ui/effect-bounce.js} +19 -9
  104. data/{vendor/assets/javascripts/jquery.ui.effect-clip.js → app/assets/javascripts/jquery-ui/effect-clip.js} +19 -9
  105. data/{vendor/assets/javascripts/jquery.ui.effect-drop.js → app/assets/javascripts/jquery-ui/effect-drop.js} +20 -10
  106. data/{vendor/assets/javascripts/jquery.ui.effect-explode.js → app/assets/javascripts/jquery-ui/effect-explode.js} +21 -11
  107. data/app/assets/javascripts/jquery-ui/effect-fade.js +42 -0
  108. data/{vendor/assets/javascripts/jquery.ui.effect-fold.js → app/assets/javascripts/jquery-ui/effect-fold.js} +19 -9
  109. data/{vendor/assets/javascripts/jquery.ui.effect-highlight.js → app/assets/javascripts/jquery-ui/effect-highlight.js} +19 -9
  110. data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
  111. data/{vendor/assets/javascripts/jquery.ui.effect-pulsate.js → app/assets/javascripts/jquery-ui/effect-pulsate.js} +19 -9
  112. data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
  113. data/{vendor/assets/javascripts/jquery.ui.effect-shake.js → app/assets/javascripts/jquery-ui/effect-shake.js} +20 -10
  114. data/{vendor/assets/javascripts/jquery.ui.effect-scale.js → app/assets/javascripts/jquery-ui/effect-size.js} +20 -105
  115. data/{vendor/assets/javascripts/jquery.ui.effect-slide.js → app/assets/javascripts/jquery-ui/effect-slide.js} +19 -9
  116. data/{vendor/assets/javascripts/jquery.ui.effect-transfer.js → app/assets/javascripts/jquery-ui/effect-transfer.js} +23 -13
  117. data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
  118. data/{vendor/assets/javascripts/jquery.ui.effect.js → app/assets/javascripts/jquery-ui/effect.js} +125 -92
  119. data/{vendor/assets/javascripts/jquery.ui.menu.js → app/assets/javascripts/jquery-ui/menu.js} +127 -102
  120. data/{vendor/assets/javascripts/jquery.ui.mouse.js → app/assets/javascripts/jquery-ui/mouse.js} +57 -27
  121. data/{vendor/assets/javascripts/jquery.ui.position.js → app/assets/javascripts/jquery-ui/position.js} +47 -27
  122. data/{vendor/assets/javascripts/jquery.ui.progressbar.js → app/assets/javascripts/jquery-ui/progressbar.js} +27 -13
  123. data/{vendor/assets/javascripts/jquery.ui.resizable.js → app/assets/javascripts/jquery-ui/resizable.js} +454 -243
  124. data/{vendor/assets/javascripts/jquery.ui.selectable.js → app/assets/javascripts/jquery-ui/selectable.js} +26 -16
  125. data/app/assets/javascripts/jquery-ui/selectmenu.js +620 -0
  126. data/{vendor/assets/javascripts/jquery.ui.slider.js → app/assets/javascripts/jquery-ui/slider.js} +159 -91
  127. data/{vendor/assets/javascripts/jquery.ui.sortable.js → app/assets/javascripts/jquery-ui/sortable.js} +168 -114
  128. data/{vendor/assets/javascripts/jquery.ui.spinner.js → app/assets/javascripts/jquery-ui/spinner.js} +54 -32
  129. data/{vendor/assets/javascripts/jquery.ui.tabs.js → app/assets/javascripts/jquery-ui/tabs.js} +108 -73
  130. data/{vendor/assets/javascripts/jquery.ui.tooltip.js → app/assets/javascripts/jquery-ui/tooltip.js} +134 -75
  131. data/{vendor/assets/javascripts/jquery.ui.widget.js → app/assets/javascripts/jquery-ui/widget.js} +81 -44
  132. data/app/assets/javascripts/jquery-ui.js +37 -0
  133. data/{vendor/assets/stylesheets/jquery.ui.accordion.css.erb → app/assets/stylesheets/jquery-ui/accordion.css} +7 -9
  134. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  135. data/app/assets/stylesheets/jquery-ui/autocomplete.css +21 -0
  136. data/app/assets/stylesheets/jquery-ui/base.css +30 -0
  137. data/{vendor/assets/stylesheets/jquery.ui.button.css.erb → app/assets/stylesheets/jquery-ui/button.css} +5 -5
  138. data/{vendor/assets/stylesheets/jquery.ui.core.css.erb → app/assets/stylesheets/jquery-ui/core.css} +8 -4
  139. data/{vendor/assets/stylesheets/jquery.ui.datepicker.css.erb → app/assets/stylesheets/jquery-ui/datepicker.css} +6 -9
  140. data/{vendor/assets/stylesheets/jquery.ui.dialog.css.erb → app/assets/stylesheets/jquery-ui/dialog.css} +10 -8
  141. data/app/assets/stylesheets/jquery-ui/draggable.css +16 -0
  142. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  143. data/app/assets/stylesheets/jquery-ui/progressbar.css +32 -0
  144. data/{vendor/assets/stylesheets/jquery.ui.resizable.css.erb → app/assets/stylesheets/jquery-ui/resizable.css} +6 -6
  145. data/app/assets/stylesheets/jquery-ui/selectable.css +21 -0
  146. data/app/assets/stylesheets/jquery-ui/selectmenu.css +64 -0
  147. data/{vendor/assets/stylesheets/jquery.ui.slider.css.erb → app/assets/stylesheets/jquery-ui/slider.css} +8 -6
  148. data/app/assets/stylesheets/jquery-ui/sortable.css +16 -0
  149. data/{vendor/assets/stylesheets/jquery.ui.spinner.css.erb → app/assets/stylesheets/jquery-ui/spinner.css} +8 -8
  150. data/{vendor/assets/stylesheets/jquery.ui.tabs.css.erb → app/assets/stylesheets/jquery-ui/tabs.css} +11 -12
  151. data/{vendor/assets/stylesheets/jquery.ui.theme.css.erb → app/assets/stylesheets/jquery-ui/theme.css.erb} +29 -11
  152. data/{vendor/assets/stylesheets/jquery.ui.tooltip.css.erb → app/assets/stylesheets/jquery-ui/tooltip.css} +6 -4
  153. data/app/assets/stylesheets/jquery-ui.css +1 -0
  154. data/lib/jquery/ui/rails/version.rb +2 -1
  155. metadata +155 -161
  156. data/vendor/assets/javascripts/jquery.ui.all.js +0 -34
  157. data/vendor/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  158. data/vendor/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  159. data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  160. data/vendor/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  161. data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  162. data/vendor/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  163. data/vendor/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  164. data/vendor/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  165. data/vendor/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  166. data/vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  167. data/vendor/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  168. data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  169. data/vendor/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  170. data/vendor/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  171. data/vendor/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  172. data/vendor/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  173. data/vendor/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  174. data/vendor/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  175. data/vendor/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  176. data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  177. data/vendor/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  178. data/vendor/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  179. data/vendor/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  180. data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  181. data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  182. data/vendor/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  183. data/vendor/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  184. data/vendor/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  185. data/vendor/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  186. data/vendor/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  187. data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  188. data/vendor/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  189. data/vendor/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  190. data/vendor/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  191. data/vendor/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  192. data/vendor/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  193. data/vendor/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  194. data/vendor/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  195. data/vendor/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  196. data/vendor/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  197. data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  198. data/vendor/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  199. data/vendor/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  200. data/vendor/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  201. data/vendor/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  202. data/vendor/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  203. data/vendor/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  204. data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  205. data/vendor/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  206. data/vendor/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  207. data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  208. data/vendor/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  209. data/vendor/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  210. data/vendor/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  211. data/vendor/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  212. data/vendor/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  213. data/vendor/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  214. data/vendor/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  215. data/vendor/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  216. data/vendor/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  217. data/vendor/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  218. data/vendor/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  219. data/vendor/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  220. data/vendor/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  221. data/vendor/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  222. data/vendor/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  223. data/vendor/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  224. data/vendor/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  225. data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  226. data/vendor/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  227. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  228. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  229. data/vendor/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  230. data/vendor/assets/javascripts/jquery.ui.draggable.js +0 -950
  231. data/vendor/assets/javascripts/jquery.ui.droppable.js +0 -376
  232. data/vendor/assets/javascripts/jquery.ui.effect-fade.js +0 -32
  233. data/vendor/assets/javascripts/jquery.ui.effect.all.js +0 -14
  234. data/vendor/assets/stylesheets/jquery.ui.all.css.erb +0 -14
  235. data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
  236. data/vendor/assets/stylesheets/jquery.ui.base.css.erb +0 -27
  237. data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +0 -81
  238. data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -32
  239. data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +0 -19
@@ -1,376 +0,0 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.mouse
4
- //= require jquery.ui.draggable
5
-
6
- /*!
7
- * jQuery UI Droppable 1.10.0
8
- * http://jqueryui.com
9
- *
10
- * Copyright 2013 jQuery Foundation and other contributors
11
- * Released under the MIT license.
12
- * http://jquery.org/license
13
- *
14
- * http://api.jqueryui.com/droppable/
15
- *
16
- * Depends:
17
- * jquery.ui.core.js
18
- * jquery.ui.widget.js
19
- * jquery.ui.mouse.js
20
- * jquery.ui.draggable.js
21
- */
22
- (function( $, undefined ) {
23
-
24
- function isOverAxis( x, reference, size ) {
25
- return ( x > reference ) && ( x < ( reference + size ) );
26
- }
27
-
28
- $.widget("ui.droppable", {
29
- version: "1.10.0",
30
- widgetEventPrefix: "drop",
31
- options: {
32
- accept: "*",
33
- activeClass: false,
34
- addClasses: true,
35
- greedy: false,
36
- hoverClass: false,
37
- scope: "default",
38
- tolerance: "intersect",
39
-
40
- // callbacks
41
- activate: null,
42
- deactivate: null,
43
- drop: null,
44
- out: null,
45
- over: null
46
- },
47
- _create: function() {
48
-
49
- var o = this.options,
50
- accept = o.accept;
51
-
52
- this.isover = false;
53
- this.isout = true;
54
-
55
- this.accept = $.isFunction(accept) ? accept : function(d) {
56
- return d.is(accept);
57
- };
58
-
59
- //Store the droppable's proportions
60
- this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight };
61
-
62
- // Add the reference and positions to the manager
63
- $.ui.ddmanager.droppables[o.scope] = $.ui.ddmanager.droppables[o.scope] || [];
64
- $.ui.ddmanager.droppables[o.scope].push(this);
65
-
66
- (o.addClasses && this.element.addClass("ui-droppable"));
67
-
68
- },
69
-
70
- _destroy: function() {
71
- var i = 0,
72
- drop = $.ui.ddmanager.droppables[this.options.scope];
73
-
74
- for ( ; i < drop.length; i++ ) {
75
- if ( drop[i] === this ) {
76
- drop.splice(i, 1);
77
- }
78
- }
79
-
80
- this.element.removeClass("ui-droppable ui-droppable-disabled");
81
- },
82
-
83
- _setOption: function(key, value) {
84
-
85
- if(key === "accept") {
86
- this.accept = $.isFunction(value) ? value : function(d) {
87
- return d.is(value);
88
- };
89
- }
90
- $.Widget.prototype._setOption.apply(this, arguments);
91
- },
92
-
93
- _activate: function(event) {
94
- var draggable = $.ui.ddmanager.current;
95
- if(this.options.activeClass) {
96
- this.element.addClass(this.options.activeClass);
97
- }
98
- if(draggable){
99
- this._trigger("activate", event, this.ui(draggable));
100
- }
101
- },
102
-
103
- _deactivate: function(event) {
104
- var draggable = $.ui.ddmanager.current;
105
- if(this.options.activeClass) {
106
- this.element.removeClass(this.options.activeClass);
107
- }
108
- if(draggable){
109
- this._trigger("deactivate", event, this.ui(draggable));
110
- }
111
- },
112
-
113
- _over: function(event) {
114
-
115
- var draggable = $.ui.ddmanager.current;
116
-
117
- // Bail if draggable and droppable are same element
118
- if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
119
- return;
120
- }
121
-
122
- if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
123
- if(this.options.hoverClass) {
124
- this.element.addClass(this.options.hoverClass);
125
- }
126
- this._trigger("over", event, this.ui(draggable));
127
- }
128
-
129
- },
130
-
131
- _out: function(event) {
132
-
133
- var draggable = $.ui.ddmanager.current;
134
-
135
- // Bail if draggable and droppable are same element
136
- if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
137
- return;
138
- }
139
-
140
- if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
141
- if(this.options.hoverClass) {
142
- this.element.removeClass(this.options.hoverClass);
143
- }
144
- this._trigger("out", event, this.ui(draggable));
145
- }
146
-
147
- },
148
-
149
- _drop: function(event,custom) {
150
-
151
- var draggable = custom || $.ui.ddmanager.current,
152
- childrenIntersection = false;
153
-
154
- // Bail if draggable and droppable are same element
155
- if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
156
- return false;
157
- }
158
-
159
- this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function() {
160
- var inst = $.data(this, "ui-droppable");
161
- if(
162
- inst.options.greedy &&
163
- !inst.options.disabled &&
164
- inst.options.scope === draggable.options.scope &&
165
- inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element)) &&
166
- $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)
167
- ) { childrenIntersection = true; return false; }
168
- });
169
- if(childrenIntersection) {
170
- return false;
171
- }
172
-
173
- if(this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
174
- if(this.options.activeClass) {
175
- this.element.removeClass(this.options.activeClass);
176
- }
177
- if(this.options.hoverClass) {
178
- this.element.removeClass(this.options.hoverClass);
179
- }
180
- this._trigger("drop", event, this.ui(draggable));
181
- return this.element;
182
- }
183
-
184
- return false;
185
-
186
- },
187
-
188
- ui: function(c) {
189
- return {
190
- draggable: (c.currentItem || c.element),
191
- helper: c.helper,
192
- position: c.position,
193
- offset: c.positionAbs
194
- };
195
- }
196
-
197
- });
198
-
199
- $.ui.intersect = function(draggable, droppable, toleranceMode) {
200
-
201
- if (!droppable.offset) {
202
- return false;
203
- }
204
-
205
- var draggableLeft, draggableTop,
206
- x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
207
- y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height,
208
- l = droppable.offset.left, r = l + droppable.proportions.width,
209
- t = droppable.offset.top, b = t + droppable.proportions.height;
210
-
211
- switch (toleranceMode) {
212
- case "fit":
213
- return (l <= x1 && x2 <= r && t <= y1 && y2 <= b);
214
- case "intersect":
215
- return (l < x1 + (draggable.helperProportions.width / 2) && // Right Half
216
- x2 - (draggable.helperProportions.width / 2) < r && // Left Half
217
- t < y1 + (draggable.helperProportions.height / 2) && // Bottom Half
218
- y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
219
- case "pointer":
220
- draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left);
221
- draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top);
222
- return isOverAxis( draggableTop, t, droppable.proportions.height ) && isOverAxis( draggableLeft, l, droppable.proportions.width );
223
- case "touch":
224
- return (
225
- (y1 >= t && y1 <= b) || // Top edge touching
226
- (y2 >= t && y2 <= b) || // Bottom edge touching
227
- (y1 < t && y2 > b) // Surrounded vertically
228
- ) && (
229
- (x1 >= l && x1 <= r) || // Left edge touching
230
- (x2 >= l && x2 <= r) || // Right edge touching
231
- (x1 < l && x2 > r) // Surrounded horizontally
232
- );
233
- default:
234
- return false;
235
- }
236
-
237
- };
238
-
239
- /*
240
- This manager tracks offsets of draggables and droppables
241
- */
242
- $.ui.ddmanager = {
243
- current: null,
244
- droppables: { "default": [] },
245
- prepareOffsets: function(t, event) {
246
-
247
- var i, j,
248
- m = $.ui.ddmanager.droppables[t.options.scope] || [],
249
- type = event ? event.type : null, // workaround for #2317
250
- list = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
251
-
252
- droppablesLoop: for (i = 0; i < m.length; i++) {
253
-
254
- //No disabled and non-accepted
255
- if(m[i].options.disabled || (t && !m[i].accept.call(m[i].element[0],(t.currentItem || t.element)))) {
256
- continue;
257
- }
258
-
259
- // Filter out elements in the current dragged item
260
- for (j=0; j < list.length; j++) {
261
- if(list[j] === m[i].element[0]) {
262
- m[i].proportions.height = 0;
263
- continue droppablesLoop;
264
- }
265
- }
266
-
267
- m[i].visible = m[i].element.css("display") !== "none";
268
- if(!m[i].visible) {
269
- continue;
270
- }
271
-
272
- //Activate the droppable if used directly from draggables
273
- if(type === "mousedown") {
274
- m[i]._activate.call(m[i], event);
275
- }
276
-
277
- m[i].offset = m[i].element.offset();
278
- m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
279
-
280
- }
281
-
282
- },
283
- drop: function(draggable, event) {
284
-
285
- var dropped = false;
286
- $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {
287
-
288
- if(!this.options) {
289
- return;
290
- }
291
- if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) {
292
- dropped = this._drop.call(this, event) || dropped;
293
- }
294
-
295
- if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
296
- this.isout = true;
297
- this.isover = false;
298
- this._deactivate.call(this, event);
299
- }
300
-
301
- });
302
- return dropped;
303
-
304
- },
305
- dragStart: function( draggable, event ) {
306
- //Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
307
- draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
308
- if( !draggable.options.refreshPositions ) {
309
- $.ui.ddmanager.prepareOffsets( draggable, event );
310
- }
311
- });
312
- },
313
- drag: function(draggable, event) {
314
-
315
- //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
316
- if(draggable.options.refreshPositions) {
317
- $.ui.ddmanager.prepareOffsets(draggable, event);
318
- }
319
-
320
- //Run through all droppables and check their positions based on specific tolerance options
321
- $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {
322
-
323
- if(this.options.disabled || this.greedyChild || !this.visible) {
324
- return;
325
- }
326
-
327
- var parentInstance, scope, parent,
328
- intersects = $.ui.intersect(draggable, this, this.options.tolerance),
329
- c = !intersects && this.isover ? "isout" : (intersects && !this.isover ? "isover" : null);
330
- if(!c) {
331
- return;
332
- }
333
-
334
- if (this.options.greedy) {
335
- // find droppable parents with same scope
336
- scope = this.options.scope;
337
- parent = this.element.parents(":data(ui-droppable)").filter(function () {
338
- return $.data(this, "ui-droppable").options.scope === scope;
339
- });
340
-
341
- if (parent.length) {
342
- parentInstance = $.data(parent[0], "ui-droppable");
343
- parentInstance.greedyChild = (c === "isover");
344
- }
345
- }
346
-
347
- // we just moved into a greedy child
348
- if (parentInstance && c === "isover") {
349
- parentInstance.isover = false;
350
- parentInstance.isout = true;
351
- parentInstance._out.call(parentInstance, event);
352
- }
353
-
354
- this[c] = true;
355
- this[c === "isout" ? "isover" : "isout"] = false;
356
- this[c === "isover" ? "_over" : "_out"].call(this, event);
357
-
358
- // we just moved out of a greedy child
359
- if (parentInstance && c === "isout") {
360
- parentInstance.isout = false;
361
- parentInstance.isover = true;
362
- parentInstance._over.call(parentInstance, event);
363
- }
364
- });
365
-
366
- },
367
- dragStop: function( draggable, event ) {
368
- draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
369
- //Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
370
- if( !draggable.options.refreshPositions ) {
371
- $.ui.ddmanager.prepareOffsets( draggable, event );
372
- }
373
- }
374
- };
375
-
376
- })(jQuery);
@@ -1,32 +0,0 @@
1
- //= require jquery.ui.effect
2
-
3
- /*!
4
- * jQuery UI Effects Fade 1.10.0
5
- * http://jqueryui.com
6
- *
7
- * Copyright 2013 jQuery Foundation and other contributors
8
- * Released under the MIT license.
9
- * http://jquery.org/license
10
- *
11
- * http://api.jqueryui.com/fade-effect/
12
- *
13
- * Depends:
14
- * jquery.ui.effect.js
15
- */
16
- (function( $, undefined ) {
17
-
18
- $.effects.effect.fade = function( o, done ) {
19
- var el = $( this ),
20
- mode = $.effects.setMode( el, o.mode || "toggle" );
21
-
22
- el.animate({
23
- opacity: mode
24
- }, {
25
- queue: false,
26
- duration: o.duration,
27
- easing: o.easing,
28
- complete: done
29
- });
30
- };
31
-
32
- })( jQuery );
@@ -1,14 +0,0 @@
1
- //= require jquery.ui.effect-blind
2
- //= require jquery.ui.effect-bounce
3
- //= require jquery.ui.effect-clip
4
- //= require jquery.ui.effect-drop
5
- //= require jquery.ui.effect-explode
6
- //= require jquery.ui.effect-fade
7
- //= require jquery.ui.effect-fold
8
- //= require jquery.ui.effect-highlight
9
- //= require jquery.ui.effect-pulsate
10
- //= require jquery.ui.effect-scale
11
- //= require jquery.ui.effect-shake
12
- //= require jquery.ui.effect-slide
13
- //= require jquery.ui.effect-transfer
14
- //= require jquery.ui.effect
@@ -1,14 +0,0 @@
1
- /*!
2
- * jQuery UI CSS Framework 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Theming
10
- */
11
- /*
12
- *= require jquery.ui.base
13
- *= require jquery.ui.theme
14
- */
@@ -1,21 +0,0 @@
1
- /*!
2
- * jQuery UI Autocomplete 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Autocomplete#theming
10
- */
11
- /*
12
- *= require jquery.ui.core
13
- *= require jquery.ui.menu
14
- *= require jquery.ui.theme
15
- */
16
- .ui-autocomplete {
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- cursor: default;
21
- }
@@ -1,27 +0,0 @@
1
- /*!
2
- * jQuery UI CSS Framework 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Theming
10
- */
11
- /*
12
- *= require jquery.ui.core
13
-
14
- *= require jquery.ui.accordion
15
- *= require jquery.ui.autocomplete
16
- *= require jquery.ui.button
17
- *= require jquery.ui.datepicker
18
- *= require jquery.ui.dialog
19
- *= require jquery.ui.menu
20
- *= require jquery.ui.progressbar
21
- *= require jquery.ui.resizable
22
- *= require jquery.ui.selectable
23
- *= require jquery.ui.slider
24
- *= require jquery.ui.spinner
25
- *= require jquery.ui.tabs
26
- *= require jquery.ui.tooltip
27
- */
@@ -1,81 +0,0 @@
1
- /*!
2
- * jQuery UI Menu 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Menu#theming
10
- */
11
- /*
12
- *= require jquery.ui.core
13
- *= require jquery.ui.theme
14
- */
15
- .ui-menu {
16
- list-style: none;
17
- padding: 2px;
18
- margin: 0;
19
- display: block;
20
- outline: none;
21
- }
22
- .ui-menu .ui-menu {
23
- margin-top: -3px;
24
- position: absolute;
25
- }
26
- .ui-menu .ui-menu-item {
27
- margin: 0;
28
- padding: 0;
29
- width: 100%;
30
- }
31
- .ui-menu .ui-menu-divider {
32
- margin: 5px -2px 5px -2px;
33
- height: 0;
34
- font-size: 0;
35
- line-height: 0;
36
- border-width: 1px 0 0 0;
37
- }
38
- .ui-menu .ui-menu-item a {
39
- text-decoration: none;
40
- display: block;
41
- padding: 2px .4em;
42
- line-height: 1.5;
43
- min-height: 0; /* support: IE7 */
44
- font-weight: normal;
45
- }
46
- .ui-menu .ui-menu-item a.ui-state-focus,
47
- .ui-menu .ui-menu-item a.ui-state-active {
48
- font-weight: normal;
49
- margin: -1px;
50
- }
51
-
52
- .ui-menu .ui-state-disabled {
53
- font-weight: normal;
54
- margin: .4em 0 .2em;
55
- line-height: 1.5;
56
- }
57
- .ui-menu .ui-state-disabled a {
58
- cursor: default;
59
- }
60
-
61
- /* icon support */
62
- .ui-menu-icons {
63
- position: relative;
64
- }
65
- .ui-menu-icons .ui-menu-item a {
66
- position: relative;
67
- padding-left: 2em;
68
- }
69
-
70
- /* left-aligned */
71
- .ui-menu .ui-icon {
72
- position: absolute;
73
- top: .2em;
74
- left: .2em;
75
- }
76
-
77
- /* right-aligned */
78
- .ui-menu .ui-menu-icon {
79
- position: static;
80
- float: right;
81
- }
@@ -1,32 +0,0 @@
1
- /*!
2
- * jQuery UI Progressbar 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Progressbar#theming
10
- */
11
- /*
12
- *= require jquery.ui.core
13
- *= require jquery.ui.theme
14
- */
15
- .ui-progressbar {
16
- height: 2em;
17
- text-align: left;
18
- overflow: hidden;
19
- }
20
- .ui-progressbar .ui-progressbar-value {
21
- margin: -1px;
22
- height: 100%;
23
- }
24
- .ui-progressbar .ui-progressbar-overlay {
25
- background: url("images/animated-overlay.gif");
26
- height: 100%;
27
- filter: alpha(opacity=25);
28
- opacity: 0.25;
29
- }
30
- .ui-progressbar-indeterminate .ui-progressbar-value {
31
- background-image: none;
32
- }
@@ -1,19 +0,0 @@
1
- /*!
2
- * jQuery UI Selectable 1.10.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://docs.jquery.com/UI/Selectable#theming
10
- */
11
- /*
12
- *= require jquery.ui.core
13
- *= require jquery.ui.theme
14
- */
15
- .ui-selectable-helper {
16
- position: absolute;
17
- z-index: 100;
18
- border: 1px dotted black;
19
- }