sn-jquery-ui-rails 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +2 -0
  5. data/Gemfile +3 -0
  6. data/History.md +168 -0
  7. data/License.txt +2 -0
  8. data/README.md +311 -0
  9. data/Rakefile +258 -0
  10. data/VERSIONS.md +39 -0
  11. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  15. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  16. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  17. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  18. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  19. data/app/assets/javascripts/jquery-ui/data.js +41 -0
  20. data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  21. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  22. data/app/assets/javascripts/jquery-ui/effect.js +1637 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
  35. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
  36. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
  37. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
  38. data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  39. data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
  40. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
  41. data/app/assets/javascripts/jquery-ui/form.js +22 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
  113. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
  114. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
  115. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
  116. data/app/assets/javascripts/jquery-ui/ie.js +17 -0
  117. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
  118. data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
  119. data/app/assets/javascripts/jquery-ui/labels.js +65 -0
  120. data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
  121. data/app/assets/javascripts/jquery-ui/position.js +500 -0
  122. data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  123. data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  124. data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  125. data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
  126. data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
  127. data/app/assets/javascripts/jquery-ui/version.js +17 -0
  128. data/app/assets/javascripts/jquery-ui/widget.js +735 -0
  129. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +618 -0
  130. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +689 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +954 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1259 -0
  137. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +502 -0
  138. data/app/assets/javascripts/jquery-ui/widgets/menu.js +680 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +181 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1207 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
  143. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +697 -0
  144. data/app/assets/javascripts/jquery-ui/widgets/slider.js +757 -0
  145. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  146. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +581 -0
  147. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  148. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +526 -0
  149. data/app/assets/javascripts/jquery-ui.js +56 -0
  150. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  151. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  152. data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
  153. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  154. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  155. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  156. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  157. data/app/assets/stylesheets/jquery-ui/core.css +100 -0
  158. data/app/assets/stylesheets/jquery-ui/datepicker.css +188 -0
  159. data/app/assets/stylesheets/jquery-ui/dialog.css +104 -0
  160. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  161. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  162. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  163. data/app/assets/stylesheets/jquery-ui/resizable.css +81 -0
  164. data/app/assets/stylesheets/jquery-ui/selectable.css +20 -0
  165. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  166. data/app/assets/stylesheets/jquery-ui/slider.css +78 -0
  167. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  168. data/app/assets/stylesheets/jquery-ui/spinner.css +55 -0
  169. data/app/assets/stylesheets/jquery-ui/tabs.css +54 -0
  170. data/app/assets/stylesheets/jquery-ui/theme.css.erb +453 -0
  171. data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
  172. data/app/assets/stylesheets/jquery-ui.css +1 -0
  173. data/lib/jquery/ui/rails/engine.rb +8 -0
  174. data/lib/jquery/ui/rails/version.rb +8 -0
  175. data/lib/jquery/ui/rails.rb +2 -0
  176. data/lib/jquery-ui-rails.rb +1 -0
  177. metadata +248 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8836ca392e6e7337fbc7b8ba1ca76a5ac7e56c4ddff2d0dfbe2c5139a292c350
4
+ data.tar.gz: 8da1f71c373b5a273219aa74f819d3aa5f03a1ce6a360091d0f4435bd07eab71
5
+ SHA512:
6
+ metadata.gz: aaf9cce4950166b348c37027e297f313a9450f49393fa576aa518f893adb7bdf9f771a8c0f610e9025a123f81525643908a41d01e8c971697c68db5e83401071
7
+ data.tar.gz: 6b81667ee0ca4f110f97049823ba2d1bab23d2b569c58626922047b3f85664b19ba142f21a5628e68c180a73261cd891a6e9e3abf13da77be5b7b902feb1c8be
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ Gemfile.lock
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "jquery-ui"]
2
+ path = jquery-ui
3
+ url = git://github.com/jquery/jquery-ui.git
data/.travis.yml ADDED
@@ -0,0 +1,2 @@
1
+ rvm:
2
+ - 2.2.2
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/History.md ADDED
@@ -0,0 +1,168 @@
1
+ # master
2
+
3
+ # 6.0.1
4
+
5
+ * Fix "define is not defined" issue in `core.js`
6
+
7
+ # 6.0.0
8
+
9
+ * Update to jQuery UI 1.12.1
10
+ * The widget files moved. Change e.g. `require jquery-ui/sortable` to `require jquery-ui/widgets/sortable`
11
+
12
+ # 5.0.5
13
+
14
+ * Update to jQuery UI 1.11.4
15
+
16
+ # 5.0.4
17
+
18
+ * Update to jQuery UI 1.11.3
19
+
20
+ # 5.0.3
21
+
22
+ * Speed up: Only use .erb extension if `<%= %>` tags are used
23
+
24
+ # 5.0.2
25
+
26
+ * Update to jQuery UI 1.11.2
27
+
28
+ # 5.0.1
29
+
30
+ * Update to jQuery UI 1.11.1
31
+
32
+ # 5.0.0
33
+
34
+ * Update to jQuery UI 1.11.0
35
+ * Rename `jquery.ui.*.{js,css}` to `jquery-ui/*.{js,css}`
36
+ * Add jquery-ui.js and jquery-ui.css assets
37
+
38
+ # 4.2.1
39
+
40
+ * Update to jQuery UI 1.10.4
41
+
42
+ # 4.2.0
43
+
44
+ * Bump Rails dependency to `>=3.2.16`
45
+ * Re-release 4.1.1 as 4.2.0
46
+
47
+ # 4.1.2
48
+
49
+ * Re-release 4.1.0 as 4.1.2; last version compatible with Rails 3.1
50
+
51
+ # 4.1.1
52
+
53
+ * Declare image dependencies using `//= depend_on_asset`, to stop the
54
+ Sprockets cache from going stale.
55
+
56
+ # 4.1.0
57
+
58
+ * Add Jquery::Ui::Rails::JQUERY_UI_VERSION constant
59
+
60
+ # 4.0.5
61
+
62
+ * Remove unused dependency on the `jquery-rails` gem. If you get an error
63
+ "couldn't find file 'jquery'", you may need to explicitly add `gem
64
+ 'jquery-rails'` to your Gemfile.
65
+
66
+ # 4.0.4
67
+
68
+ * Include license in gemspec
69
+
70
+ # 4.0.3
71
+
72
+ * Upgrade to jQuery UI 1.10.3
73
+
74
+ # 4.0.2
75
+
76
+ * Rails 4 compatibility
77
+
78
+ # 4.0.1
79
+
80
+ * Add missing animated-overlay.gif asset and fix image path
81
+
82
+ # 4.0.0
83
+
84
+ * Upgrade to jQuery UI 1.10.0
85
+
86
+ * No more automatic `//= require jquery`
87
+ ([#30](https://github.com/jquery-ui-rails/jquery-ui-rails/pull/30), original
88
+ discussion at [#17](https://github.com/jquery-ui-rails/jquery-ui-rails/pull/17)).
89
+ This means that you have to add `//= require jquery` to your application.js
90
+ file before you require any of the jQuery UI JavaScript modules.
91
+
92
+ # 3.0.1
93
+
94
+ * Fix stylesheet dependencies
95
+
96
+ # 3.0.0
97
+
98
+ * Upgrade to jQuery UI 1.9.2
99
+ * Switched from storing the map of file dependencies locally to leveraging
100
+ the grunt build system's .json files for determining file dependencies.
101
+ This simplifies the maintenance of this wrapper project, and allows us to
102
+ delete dependencies.js
103
+ * Renamed jquery.effects.all to jquery.ui.effect.all, to match the effects files
104
+ renamed in 1.9.2 (see [Renamed all effects files][1])
105
+ * Changed license to MIT only instead of MIT or GPL, to match jQuery UI's
106
+ license (see [commit][2])
107
+
108
+ [1]: http://jqueryui.com/upgrade-guide/1.9/#renamed-all-effects-files
109
+ [2]: https://github.com/jquery/jquery-ui/commit/485ca7192ac57d018b8ce4f03e7dec6e694a53b7
110
+
111
+ # 2.0.2
112
+
113
+ * Upgrade to jQuery UI 1.8.24
114
+
115
+ # 2.0.1
116
+
117
+ * Add draggable and resizable to the dependencies of dialog (#1)
118
+
119
+ # 2.0.0
120
+
121
+ * Do not require the main datepicker module from datepicker i18n modules.
122
+ Fixes Heroku precompilation timeouts. If you are using a datepicker i18n
123
+ module, be sure to also require jquery.ui.datepicker. (#9)
124
+
125
+ # 1.1.1
126
+
127
+ * Upgrade to jQuery UI 1.8.23
128
+
129
+ # 1.1.0
130
+
131
+ * Upgrade to jQuery UI 1.8.22
132
+
133
+ # 1.0.0
134
+
135
+ * No change. Bumping version to indicate that jquery-ui-rails is considered
136
+ stable, and that we are following semver.
137
+
138
+ # 0.5.0
139
+
140
+ * Upgrade to jQuery UI 1.8.21
141
+
142
+ # 0.4.1
143
+
144
+ * Add jquery.effects.all
145
+
146
+ # 0.4.0
147
+
148
+ * Upgrade to jQuery UI 1.8.20
149
+
150
+ # 0.3.0
151
+
152
+ * Upgrade to jQuery UI 1.8.19
153
+
154
+ # 0.2.2
155
+
156
+ * Protect copyright notices against minification with `/*! ... */`
157
+
158
+ # 0.2.1
159
+
160
+ * Upgrade to jQuery UI 1.8.18
161
+
162
+ # 0.2.0
163
+
164
+ * Upgrade to jQuery UI 1.8.17
165
+
166
+ # 0.1.0
167
+
168
+ * Initial release packaging jQuery UI 1.8.16
data/License.txt ADDED
@@ -0,0 +1,2 @@
1
+ jQuery UI as well as this gem are licensed under the MIT license (see
2
+ jquery-ui/MIT-LICENSE.txt).
data/README.md ADDED
@@ -0,0 +1,311 @@
1
+ # jquery-ui-rails
2
+
3
+ [![Build Status](https://travis-ci.org/jquery-ui-rails/jquery-ui-rails.svg?branch=master)](https://travis-ci.org/jquery-ui-rails/jquery-ui-rails)
4
+ [![Dependency Status](https://gemnasium.com/jquery-ui-rails/jquery-ui-rails.svg)](https://gemnasium.com/jquery-ui-rails/jquery-ui-rails)
5
+
6
+ This gem packages the jQuery UI assets (JavaScripts, stylesheets, and
7
+ images) for the Rails [asset
8
+ pipeline](http://guides.rubyonrails.org/asset_pipeline.html), so you never have
9
+ to download a custom package through the [web
10
+ interface](http://jqueryui.com/download) again.
11
+
12
+ See [VERSIONS.md](VERSIONS.md) to see which versions of jquery-ui-rails bundle
13
+ which versions of jQuery UI.
14
+
15
+ Warning: This gem is incompatible with the `jquery-rails` gem before version
16
+ 3.0.0! Strange things will happen if you use an earlier `jquery-rails`
17
+ version. Run `bundle list` to ensure that you either aren't using
18
+ `jquery-rails`, or at least version 3.0.0 of `jquery-rails`.
19
+
20
+ ## Usage
21
+
22
+ In your Gemfile, add:
23
+
24
+ ```ruby
25
+ gem 'jquery-ui-rails'
26
+ ```
27
+
28
+ ## Require Everything
29
+
30
+ To require all jQuery UI modules, add the following to your application.js:
31
+
32
+ ```javascript
33
+ //= require jquery-ui
34
+ ```
35
+
36
+ Also add the jQuery UI CSS to your application.css:
37
+
38
+ ```css
39
+ /*
40
+ *= require jquery-ui
41
+ */
42
+ ```
43
+
44
+ ### Warning:
45
+ Due to directory structure changes between jQuery UI 1.10, 1.11, and 1.12,
46
+ if you use version is lower than 6.0, you will have to use a different naming
47
+ for the files to require, please check following links for more information:
48
+ [for 5.0 users](https://github.com/jquery-ui-rails/jquery-ui-rails/blob/v5.0.5/README.md),
49
+ [for 4.2 users](https://github.com/jquery-ui-rails/jquery-ui-rails/blob/v4.2.1/README.md).
50
+
51
+ All images required by jQuery UI are automatically served through the asset
52
+ pipeline, so you are good to go! For example, this code will add a
53
+ [datepicker](http://jqueryui.com/demos/datepicker/):
54
+
55
+ ```javascript
56
+ $(function() {
57
+ $('.datepicker').datepicker();
58
+ });
59
+ ```
60
+
61
+ ## Require Specific Modules
62
+
63
+ The jQuery UI code weighs 51KB (minified + gzipped) and takes a while to
64
+ execute, so for production apps it's recommended to only include the modules
65
+ that your application actually uses. Dependencies are automatically resolved.
66
+ Simply pick one or more modules from the asset list below.
67
+
68
+ For example, if you only need the datepicker module, add this to your
69
+ application.js:
70
+
71
+ ```javascript
72
+ //= require jquery-ui/widgets/datepicker
73
+ ```
74
+
75
+ In your application.css, require the corresponding CSS module (notice
76
+ no `widgets/` subdirectory here):
77
+
78
+ ```css
79
+ /*
80
+ *= require jquery-ui/datepicker
81
+ */
82
+ ```
83
+
84
+ ## JavaScript Assets
85
+
86
+ ### UI Core
87
+
88
+ ```javascript
89
+ //= require jquery-ui/core
90
+ //= require jquery-ui/widget
91
+ //= require jquery-ui/position
92
+ ```
93
+
94
+ You usually do not need to require these directly, as they are pulled in by the
95
+ other JavaScript modules as needed.
96
+
97
+ ### Interactions
98
+
99
+ ```javascript
100
+ //= require jquery-ui/widgets/mouse
101
+ //= require jquery-ui/widgets/draggable
102
+ //= require jquery-ui/widgets/droppable
103
+ //= require jquery-ui/widgets/resizable
104
+ //= require jquery-ui/widgets/selectable
105
+ //= require jquery-ui/widgets/sortable
106
+ ```
107
+
108
+ For all but `jquery-ui/mouse` and `jquery-ui/droppable`, remember to `require` their matching CSS
109
+ files in your application.css as well.
110
+
111
+ ### Widgets
112
+
113
+ ```javascript
114
+ //= require jquery-ui/widgets/accordion
115
+ //= require jquery-ui/widgets/autocomplete
116
+ //= require jquery-ui/widgets/button
117
+ //= require jquery-ui/widgets/datepicker
118
+ //= require jquery-ui/widgets/dialog
119
+ //= require jquery-ui/widgets/menu
120
+ //= require jquery-ui/widgets/progressbar
121
+ //= require jquery-ui/widgets/selectmenu
122
+ //= require jquery-ui/widgets/slider
123
+ //= require jquery-ui/widgets/spinner
124
+ //= require jquery-ui/widgets/tabs
125
+ //= require jquery-ui/widgets/tooltip
126
+ ```
127
+
128
+ For all of these, remember to `require` their matching CSS files in your
129
+ application.css as well.
130
+
131
+ #### I18n
132
+
133
+ Datepicker has optional i18n modules for non-US locales, named
134
+ `jquery-ui/datepicker-xx[-YY]`
135
+ ([list](https://github.com/jquery-ui-rails/jquery-ui-rails/tree/master/app/assets/javascripts)),
136
+ for example:
137
+
138
+ ```javascript
139
+ //= require jquery-ui/widgets/datepicker
140
+ //= require jquery-ui/i18n/datepicker-pt-BR
141
+ ```
142
+
143
+ Note that you still need to include the main datepicker module. It is not
144
+ required automatically [for performance
145
+ reasons](https://github.com/jquery-ui-rails/jquery-ui-rails/issues/9#issuecomment-6524987).
146
+
147
+ ### Effects
148
+
149
+ ```javascript
150
+ //= require jquery-ui/effect.all
151
+ ```
152
+
153
+ OR
154
+
155
+ ```javascript
156
+ //= require jquery-ui/effect
157
+ //= require jquery-ui/effects/effect-blind
158
+ //= require jquery-ui/effects/effect-bounce
159
+ //= require jquery-ui/effects/effect-clip
160
+ //= require jquery-ui/effects/effect-drop
161
+ //= require jquery-ui/effects/effect-explode
162
+ //= require jquery-ui/effects/effect-fade
163
+ //= require jquery-ui/effects/effect-fold
164
+ //= require jquery-ui/effects/effect-highlight
165
+ //= require jquery-ui/effects/effect-puff
166
+ //= require jquery-ui/effects/effect-pulsate
167
+ //= require jquery-ui/effects/effect-scale
168
+ //= require jquery-ui/effects/effect-shake
169
+ //= require jquery-ui/effects/effect-size
170
+ //= require jquery-ui/effects/effect-slide
171
+ //= require jquery-ui/effects/effect-transfer
172
+ ```
173
+
174
+ ## Stylesheet Assets
175
+
176
+ ### UI Core
177
+
178
+ ```css
179
+ /*
180
+ *= require jquery-ui/core
181
+ *= require jquery-ui/theme
182
+ */
183
+ ```
184
+
185
+ You might want to require these if you do not use any of the following modules,
186
+ but still want jQuery UI's basic theming CSS. Otherwise they are automatically
187
+ pulled in as dependencies.
188
+
189
+ ### Interactions
190
+
191
+ ```css
192
+ /*
193
+ *= require jquery-ui/draggable
194
+ *= require jquery-ui/resizable
195
+ *= require jquery-ui/selectable
196
+ *= require jquery-ui/sortable
197
+ */
198
+ ```
199
+
200
+ ### Widgets
201
+
202
+ ```css
203
+ /*
204
+ *= require jquery-ui/accordion
205
+ *= require jquery-ui/autocomplete
206
+ *= require jquery-ui/button
207
+ *= require jquery-ui/datepicker
208
+ *= require jquery-ui/dialog
209
+ *= require jquery-ui/menu
210
+ *= require jquery-ui/progressbar
211
+ *= require jquery-ui/selectmenu
212
+ *= require jquery-ui/slider
213
+ *= require jquery-ui/spinner
214
+ *= require jquery-ui/tabs
215
+ *= require jquery-ui/tooltip
216
+ */
217
+ ```
218
+
219
+ ## Contributing
220
+
221
+ ### Bug Reports
222
+
223
+ For bugs in jQuery UI itself, head to the [jQuery UI Development
224
+ Center](http://jqueryui.com/development).
225
+
226
+ For bugs in this gem distribution, use the GitHub issue tracker.
227
+
228
+ ### Setup
229
+
230
+ The `jquery-ui-rails` gem should work in Ruby 1.8.7 apps. To run the rake
231
+ tasks, you need Ruby 1.9 however.
232
+
233
+ ```bash
234
+ git clone git://github.com/jquery-ui-rails/jquery-ui-rails.git
235
+ cd jquery-ui-rails
236
+ git submodule update --init
237
+ bundle install
238
+ bundle exec rake # rebuild assets
239
+ ```
240
+
241
+ Most of the code lives in the `Rakefile`. Pull requests are more than welcome!
242
+
243
+ ### Hacking jQuery UI
244
+
245
+ The jquery-ui-rails repository is
246
+ [contributor-friendly](http://www.solitr.com/blog/2012/04/contributor-friendly-gems/)
247
+ and has a git submodule containing the official [jquery-ui
248
+ repo](https://github.com/jquery/jquery-ui). This way it's easy to hack the
249
+ jQuery UI code:
250
+
251
+ ```bash
252
+ cd jquery-ui
253
+ git checkout master # or 1-8-stable
254
+ ... hack-hack-hack ...
255
+ bundle exec rake # rebuild assets based on your changes
256
+ ```
257
+
258
+ Assuming your app's Gemfile points at your jquery-ui-rails checkout (`gem
259
+ 'jquery-ui-rails', :path => '~/path/to/jquery-ui-rails'`), all you need to do
260
+ now is refresh your browser, and your changes to jQuery UI are live in your
261
+ Rails application.
262
+
263
+ You can send pull requests to the
264
+ [jquery-ui](https://github.com/jquery/jquery-ui) GitHub project straight out of
265
+ your submodule. See also their
266
+ [Getting Involved](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved)
267
+ guide.
268
+
269
+ ### Testing
270
+
271
+ As a smoke test, a `testapp` application is available in the repository, which
272
+ displays a check mark and a datepicker to make sure the assets load correctly:
273
+
274
+ ```bash
275
+ cd testapp
276
+ bundle install
277
+ rails server
278
+ ```
279
+
280
+ Now point your browser at [http://localhost:3000/](http://localhost:3000/).
281
+
282
+ ### Releasing
283
+
284
+ Be sure that `VERSIONS.md`, `History.md` and `lib/jquery/ui/rails/version.rb`
285
+ are up-to-date. Then build and push like so:
286
+
287
+ ```bash
288
+ rake build
289
+ gem push pkg/jquery-ui-rails-X.Y.Z.gem
290
+ git tag vX.Y.Z
291
+ git push --tags
292
+ ```
293
+
294
+ ## Limitations
295
+
296
+ * Only the base theme (Smoothness) is included. Once it becomes possible to
297
+ [generate all theme
298
+ files](https://forum.jquery.com/topic/downloading-bundling-all-themes#14737000003080244)
299
+ from the jQuery UI sources, we can package all the other themes in the
300
+ [ThemeRoller](http://jqueryui.com/themeroller/) gallery.
301
+
302
+ Perhaps we can also add helper tasks to help developers generate assets for
303
+ their own custom themes or for third-party themes (like
304
+ [Selene](http://gravityonmars.github.com/Selene/)).
305
+
306
+ If you still want a different theme right now, you could probably download
307
+ a custom theme and require the theme CSS *after* requiring any other jQuery
308
+ UI CSS files you need, making sure to serve up the theme images correctly.
309
+ (This is arguably cumbersome, not officially supported by this gem, and
310
+ adds 1 KB overhead as both the base theme and the custom theme are served
311
+ up.)