compass-jquery-plugin 0.3.2.3 → 0.3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. data/README.md +54 -37
  2. data/VERSION.yml +1 -1
  3. data/lib/handle_attributes.rb +4 -4
  4. data/lib/handle_js_files.rb +5 -5
  5. data/lib/jqtouch_theme.rb +2 -2
  6. data/lib/jquery/dynatree.rb +2 -2
  7. data/lib/jquery/emulators.rb +1 -1
  8. data/lib/jquery/flash_messages.rb +6 -6
  9. data/lib/jquery/graphics.rb +5 -0
  10. data/lib/jquery/gridify/assertions.rb +1 -1
  11. data/lib/jquery/gridify/grid.rb +76 -59
  12. data/lib/jquery/gridify/grid_column.rb +73 -67
  13. data/lib/jquery/gridify/grid_finder.rb +79 -79
  14. data/lib/jquery/gridify/grid_options.rb +154 -149
  15. data/lib/jquery/gridify/grid_view.rb +143 -143
  16. data/lib/jquery/gridify.rb +25 -25
  17. data/lib/jquery/ical/calendar.rb +2 -2
  18. data/lib/jquery/ical/event.rb +48 -44
  19. data/lib/jquery/ical/helpers/ui_event_helper.rb +3 -3
  20. data/lib/jquery/jqgrid/jqgrid.rb +58 -58
  21. data/lib/jquery/jqgrid.rb +1 -1
  22. data/lib/jquery/jqtouch.rb +1 -1
  23. data/lib/jquery/jquery.rb +117 -117
  24. data/lib/jquery/jquery_auto_complete.rb +9 -9
  25. data/lib/jquery/jquery_json_response.rb +12 -12
  26. data/lib/jquery/jquery_selector_assertions.rb +55 -53
  27. data/lib/jquery/jstree.rb +2 -2
  28. data/lib/jquery/mobile.rb +1 -1
  29. data/lib/jquery/ribbon.rb +2 -2
  30. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +5 -5
  31. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +5 -5
  32. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +1 -1
  33. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +39 -39
  34. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +74 -74
  35. data/lib/jquery/secret_sauce/model/find_for_grid.rb +21 -21
  36. data/lib/jquery/secret_sauce.rb +1 -1
  37. data/lib/jquery/tools.rb +1 -1
  38. data/lib/jquery_mobile_theme.rb +2 -2
  39. data/lib/jquery_ui_theme.rb +12 -12
  40. data/templates/dynatree/config/initializers/dynatree.rb +3 -3
  41. data/templates/dynatree/jquery/dynatree/aero.scss +16 -16
  42. data/templates/dynatree/jquery/dynatree/aqua.scss +16 -16
  43. data/templates/dynatree/jquery/dynatree/crystal.scss +16 -16
  44. data/templates/dynatree/jquery/dynatree/xp.scss +17 -17
  45. data/templates/dynatree/jquery.dynatree.js +2926 -2912
  46. data/templates/emulators/config/initializers/emulators.rb +6 -6
  47. data/templates/graphics/config/initializers/graphics.rb +5 -0
  48. data/templates/graphics/jquery/ganttView.scss +89 -0
  49. data/templates/graphics/jquery.ganttView.js +1669 -0
  50. data/templates/graphics/jquery.ganttView.min.js +70 -0
  51. data/templates/{jquery → graphics}/jquery.sparkline.js +466 -438
  52. data/templates/{jquery → graphics}/jquery.sparkline.min.js +0 -0
  53. data/templates/graphics/manifest.rb +9 -0
  54. data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
  55. data/templates/jqgrid/i18n/jqgrid/locale-ar.js +131 -125
  56. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +135 -131
  57. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +135 -131
  58. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +132 -126
  59. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +137 -131
  60. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +133 -127
  61. data/templates/jqgrid/i18n/jqgrid/locale-da.js +132 -126
  62. data/templates/jqgrid/i18n/jqgrid/locale-de.js +138 -132
  63. data/templates/jqgrid/i18n/jqgrid/locale-el.js +131 -125
  64. data/templates/jqgrid/i18n/jqgrid/locale-en.js +133 -127
  65. data/templates/jqgrid/i18n/jqgrid/locale-es.js +133 -127
  66. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +19 -16
  67. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +132 -126
  68. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +131 -125
  69. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +131 -125
  70. data/templates/jqgrid/i18n/jqgrid/locale-he.js +132 -126
  71. data/templates/jqgrid/i18n/jqgrid/locale-hu.js +133 -127
  72. data/templates/jqgrid/i18n/jqgrid/locale-is.js +131 -125
  73. data/templates/jqgrid/i18n/jqgrid/locale-it.js +8 -1
  74. data/templates/jqgrid/i18n/jqgrid/locale-ja.js +139 -136
  75. data/templates/jqgrid/i18n/jqgrid/locale-nl.js +4 -1
  76. data/templates/jqgrid/i18n/jqgrid/locale-no.js +14 -1
  77. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +132 -126
  78. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +132 -126
  79. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +130 -124
  80. data/templates/jqgrid/i18n/jqgrid/locale-ro.js +144 -138
  81. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +132 -126
  82. data/templates/jqgrid/i18n/jqgrid/locale-sk.js +132 -126
  83. data/templates/jqgrid/i18n/jqgrid/locale-sr.js +133 -127
  84. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +132 -126
  85. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +131 -125
  86. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +132 -126
  87. data/templates/jqgrid/jquery.jqGrid.js +12735 -10444
  88. data/templates/jqgrid/jquery.jqGrid.min.js +477 -469
  89. data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +12 -10
  90. data/templates/jqtouch/config/initializers/jqtouch.rb +3 -3
  91. data/templates/jqtouch/jquery/touch/jqtouch.scss +1 -1
  92. data/templates/jqtouch/jquery.jqtouch.js +10025 -10043
  93. data/templates/jquery/config/initializers/jquery.rb +2 -4
  94. data/templates/jquery/history.adapter.jquery.js +71 -0
  95. data/templates/jquery/history.adapter.jquery.min.js +4 -0
  96. data/templates/jquery/history.html4.js +690 -0
  97. data/templates/jquery/history.html4.min.js +21 -0
  98. data/templates/jquery/history.js +1297 -0
  99. data/templates/jquery/history.min.js +29 -0
  100. data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
  101. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +19 -19
  102. data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
  103. data/templates/jquery/i18n/jquery.ui/datepicker-az.js +19 -19
  104. data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +8 -8
  105. data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
  106. data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +20 -20
  107. data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
  108. data/templates/jquery/i18n/jquery.ui/datepicker-da.js +14 -14
  109. data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
  110. data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
  111. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +20 -20
  112. data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
  113. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +20 -20
  114. data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
  115. data/templates/jquery/i18n/jquery.ui/datepicker-es.js +20 -20
  116. data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
  117. data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
  118. data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +18 -18
  119. data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +15 -15
  120. data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
  121. data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
  122. data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +22 -22
  123. data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +20 -20
  124. data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
  125. data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
  126. data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +20 -20
  127. data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
  128. data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +20 -20
  129. data/templates/jquery/i18n/jquery.ui/datepicker-id.js +20 -20
  130. data/templates/jquery/i18n/jquery.ui/datepicker-is.js +20 -20
  131. data/templates/jquery/i18n/jquery.ui/datepicker-it.js +20 -20
  132. data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
  133. data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +20 -20
  134. data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +20 -20
  135. data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +20 -20
  136. data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +20 -20
  137. data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
  138. data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +20 -20
  139. data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
  140. data/templates/jquery/i18n/jquery.ui/datepicker-no.js +16 -16
  141. data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +2 -2
  142. data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +20 -20
  143. data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +20 -20
  144. data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +20 -20
  145. data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +18 -18
  146. data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
  147. data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +20 -20
  148. data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +20 -20
  149. data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +20 -20
  150. data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
  151. data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
  152. data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
  153. data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +14 -14
  154. data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
  155. data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
  156. data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +20 -20
  157. data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +20 -20
  158. data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
  159. data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +20 -20
  160. data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +20 -20
  161. data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
  162. data/templates/jquery/{partials → jquery/ui}/_flash_messages.scss +0 -0
  163. data/templates/jquery/jquery/ui/_theme.scss +14 -13
  164. data/templates/jquery/jquery/ui/contextMenu/configure.png +0 -0
  165. data/templates/jquery/jquery/ui/contextMenu/copy.png +0 -0
  166. data/templates/jquery/jquery/ui/contextMenu/cut.png +0 -0
  167. data/templates/jquery/jquery/ui/contextMenu/delete.png +0 -0
  168. data/templates/jquery/jquery/ui/contextMenu/edit.png +0 -0
  169. data/templates/jquery/jquery/ui/contextMenu/exit.png +0 -0
  170. data/templates/jquery/jquery/ui/contextMenu/new.png +0 -0
  171. data/templates/jquery/jquery/ui/contextMenu/paste.png +0 -0
  172. data/templates/jquery/jquery/ui/contextMenu/rename.png +0 -0
  173. data/templates/jquery/jquery/ui/contextMenu/show.png +0 -0
  174. data/templates/jquery/jquery/ui/contextMenu/trash.png +0 -0
  175. data/templates/jquery/jquery/ui/contextMenu.scss +16 -10
  176. data/templates/jquery/jquery-ui.js +11839 -23066
  177. data/templates/jquery/jquery-ui.min.js +401 -795
  178. data/templates/jquery/jquery.bgiframe.js +27 -25
  179. data/templates/jquery/jquery.contextMenu.js +209 -196
  180. data/templates/jquery/jquery.cookie.js +3 -1
  181. data/templates/jquery/jquery.dotimeout.js +236 -228
  182. data/templates/jquery/jquery.dst.js +154 -151
  183. data/templates/jquery/jquery.farbtastic.js +293 -293
  184. data/templates/jquery/jquery.flashMessages.js +26 -0
  185. data/templates/jquery/jquery.flashMessages.min.js +1 -0
  186. data/templates/jquery/jquery.form.js +803 -786
  187. data/templates/jquery/jquery.haml.js +248 -247
  188. data/templates/jquery/jquery.hotkeys.js +89 -89
  189. data/templates/jquery/jquery.js +8141 -8106
  190. data/templates/jquery/jquery.layout.js +2451 -2415
  191. data/templates/jquery/jquery.min.js +167 -166
  192. data/templates/jquery/jquery.mousewheel.js +62 -54
  193. data/templates/jquery/jquery.offline.js +171 -171
  194. data/templates/jquery/jquery.pngFix.js +76 -76
  195. data/templates/jquery/jquery.replacetext.js +83 -83
  196. data/templates/jquery/jquery.themeswitchertool.js +202 -177
  197. data/templates/jquery/jquery.tmpl.js +478 -473
  198. data/templates/jquery/jquery.tmplPlus.js +82 -81
  199. data/templates/jquery/jrails.js +178 -175
  200. data/templates/jquery/json.js +77 -7
  201. data/templates/jquery/json2.js +480 -0
  202. data/templates/jquery/json2.min.js +7 -0
  203. data/templates/jquery/lib/tasks/haml.rake +2 -2
  204. data/templates/jquery/manifest.rb +21 -17
  205. data/templates/jstree/jquery.jstree.js +5967 -4536
  206. data/templates/mobile/config/initializers/mobile.rb +1 -1
  207. data/templates/mobile/jquery/mobile/_base.scss +944 -927
  208. data/templates/mobile/jquery/mobile/default.scss +61 -48
  209. data/templates/mobile/jquery/mobile/valencia.scss +56 -42
  210. data/templates/mobile/jquery.mobile.js +4461 -4347
  211. data/templates/mobile/jquery.mobile.min.js +11 -2
  212. data/templates/mobile/lib/tasks/jquery.mobile.rake +12 -12
  213. data/templates/ribbon/config/initializers/ribbon.rb +2 -2
  214. data/templates/ribbon/jquery.ribbon.js +50 -29
  215. data/templates/secret_sauce/secret_sauce.js +8 -8
  216. data/templates/tools/flowplayer.js +945 -1
  217. data/templates/tools/jquery.tools.js +4645 -4335
  218. data/templates/tools/jquery.tools.min.js +37 -37
  219. data/templates/tools/lib/tasks/jquery.tools.rake +4 -4
  220. data/templates/tools/swfobject.js +813 -773
  221. metadata +33 -21
  222. data/templates/jquery/haml.js +0 -506
  223. data/templates/jquery/haml.min.js +0 -5
  224. data/templates/jquery/jquery/ui/contextMenu/door.png +0 -0
  225. data/templates/jquery/jquery/ui/contextMenu/page_white_copy.png +0 -0
  226. data/templates/jquery/jquery/ui/contextMenu/page_white_delete.png +0 -0
  227. data/templates/jquery/jquery/ui/contextMenu/page_white_edit.png +0 -0
  228. data/templates/jquery/jquery/ui/contextMenu/page_white_new.png +0 -0
  229. data/templates/jquery/jquery/ui/contextMenu/page_white_paste.png +0 -0
  230. data/templates/jquery/jquery.compat-1.3.js +0 -291
  231. data/templates/jquery/jquery.compat-1.3.min.js +0 -6
  232. data/templates/jquery/jquery.flash_messages.js +0 -5
  233. data/templates/jquery/jquery.flash_messages.min.js +0 -1
  234. data/templates/jquery/jquery.history.js +0 -194
  235. data/templates/jquery/jquery.history.min.js +0 -5
data/README.md CHANGED
@@ -5,14 +5,14 @@ Get gem from [Gemcutter][1].
5
5
 
6
6
  Get source from [github][2].
7
7
 
8
- Get example application showing everything live from [github][39].
8
+ Get example application showing everything live from [github][32].
9
9
 
10
10
  Description
11
11
  -----------
12
12
 
13
13
  A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
14
14
 
15
- * jRails with jQuery 1.5.0 and jQuery.UI 1.8.9 including themes
15
+ * jRails with jQuery 1.5.1rc1 and jQuery.UI 1.8.10 including themes
16
16
  * jQuery Tools 1.2.5
17
17
  * jquery.jstree.js V1.0rc3
18
18
  * jquery.dynatree.js V1.0.2
@@ -20,7 +20,7 @@ A Sass-based Meta-Framework for Compass that allows you to mix and match any of
20
20
  * jquery.jqGrid.js V3.8.2 (with minor changes to make it RESTful)
21
21
 
22
22
  and for mobile devices <i>(using pure haml/sass without compass)</i>:
23
-
23
+
24
24
  * jquery.mobile.js 1.0a3
25
25
  * jquery.jqtouch.js V1.0b2
26
26
 
@@ -42,7 +42,7 @@ For jQuery:
42
42
 
43
43
  You will find all the stylesheets in easy-to-read Sass format at:
44
44
 
45
- <pre>stylesheets/jquery.ui</pre>
45
+ <pre>stylesheets/jquery/ui</pre>
46
46
 
47
47
  To use the localized stylesheets and javacripts for jQuery include (using the rails_xss plugin):
48
48
 
@@ -61,7 +61,7 @@ Use compass to install the jQuery TOOLS javascript library into your project.
61
61
 
62
62
  <pre>compass install [-r jquery] jquery/tools <project name></pre>
63
63
 
64
- To use the javacripts include:
64
+ To use the javascripts include:
65
65
 
66
66
  <pre>
67
67
  = javascript_include_tag :tools</pre>
@@ -75,12 +75,12 @@ Use compass to install the jQuery Dynatree javascript library into your project.
75
75
 
76
76
  You will find all the stylesheets in easy-to-read Sass format at:
77
77
 
78
- <pre>stylesheets/jquery.ui</pre>
78
+ <pre>stylesheets/jquery/ui</pre>
79
79
 
80
- To use the localized stylesheets and javacripts include:
80
+ To use the stylesheets and javascripts include:
81
81
 
82
82
  <pre>
83
- = stylesheet_link_tag 'compiled/jquery/dynatree/[skin].css', :media => 'screen, projection'
83
+ = stylesheet_link_tag :dynatree_[skin], :media => 'screen, projection'
84
84
  = javascript_include_tag :dynatree</pre>
85
85
 
86
86
  jQuery jsTree Plugin
@@ -92,12 +92,12 @@ Use compass to install the jQuery jsTree javascript library into your project.
92
92
 
93
93
  You will find all the stylesheets in easy-to-read Sass format at:
94
94
 
95
- <pre>stylesheets/jquery.ui</pre>
95
+ <pre>stylesheets/jquery/ui</pre>
96
96
 
97
- To use the localized stylesheets and javacripts include:
97
+ To use the stylesheets and javascripts include:
98
98
 
99
99
  <pre>
100
- = stylesheet_link_tag 'compiled/jquery/jstree/[theme].css', :media => 'screen, projection'
100
+ = stylesheet_link_tag :jstree_[theme], :media => 'screen, projection'
101
101
  = javascript_include_tag :jstree</pre>
102
102
 
103
103
  jQuery Ribbon Plugin
@@ -109,12 +109,12 @@ Use compass to install the jQuery Ribbon javascript library into your project.
109
109
 
110
110
  You will find all the stylesheets in easy-to-read Sass format at:
111
111
 
112
- <pre>stylesheets/jquery.ui</pre>
112
+ <pre>stylesheets/jquery/ui</pre>
113
113
 
114
- To use the localized stylesheets and javacripts include:
114
+ To use the stylesheets and javascripts include:
115
115
 
116
116
  <pre>
117
- = stylesheet_link_tag 'compiled/jquery/ribbon/[theme].css', :media => 'screen, projection'
117
+ = stylesheet_link_tag :ribbon_[theme], :media => 'screen, projection'
118
118
  = javascript_include_tag :ribbon</pre>
119
119
 
120
120
  jqGrid
@@ -126,12 +126,12 @@ Use compass to install the jqGrid javascript library into your project.
126
126
 
127
127
  You will find the jqGrid stylesheet in easy-to-read Sass format at:
128
128
 
129
- <pre>stylesheets/jquery.ui</pre>
129
+ <pre>stylesheets/jquery/ui</pre>
130
130
 
131
- To use the localized stylesheets and javacripts include:
131
+ To use the stylesheets and javascripts include:
132
132
 
133
133
  <pre>
134
- = stylesheet_link_tag 'compiled/jquery/jqGrid.css', :media => 'screen, projection'
134
+ = stylesheet_link_tag :jqGrid, :media => 'screen, projection'
135
135
  = raw jqgrid_javascripts(I18n.locale)</pre>
136
136
 
137
137
  Secret Sauce
@@ -143,12 +143,12 @@ Use compass to install the Secret Sauce for jqGrid javascript library into your
143
143
 
144
144
  You will find all the stylesheets in easy-to-read Sass format.
145
145
 
146
- <pre>stylesheets/jquery.ui</pre>
146
+ <pre>stylesheets/jquery/ui</pre>
147
147
 
148
- To use the localized stylesheets and javacripts include:
148
+ To use the stylesheets and javascripts include:
149
149
 
150
150
  <pre>
151
- = stylesheet_link_tag 'compiled/jquery/secret_sauce.css', :media => 'screen, projection'
151
+ = stylesheet_link_tag :secret_sauce, :media => 'screen, projection'
152
152
  = javascript_include_tag :secret_sauce</pre>
153
153
 
154
154
  jquery.ical
@@ -160,14 +160,32 @@ Use compass to install the jquery.ical javascript library into your project.
160
160
 
161
161
  You will find all the stylesheets in easy-to-read Sass format.
162
162
 
163
- <pre>stylesheets/jquery.ui</pre>
163
+ <pre>stylesheets/jquery/ui</pre>
164
164
 
165
- To use the (localized) stylesheets and javacripts include:
165
+ To use the stylesheets and javacripts include:
166
166
 
167
167
  <pre>
168
- = stylesheet_link_tag 'compiled/jquery/ical.css', :media => 'screen, projection'
168
+ = stylesheet_link_tag :ical, :media => 'screen, projection'
169
169
  = javascript_include_tag :ical</pre>
170
170
 
171
+ Graphics
172
+ --------
173
+
174
+ Use compass to install the jquery.sparklines and jquery.ganttView javascript libraries into your project.
175
+
176
+ <pre>compass install [-r jquery] jquery/graphics <project name></pre>
177
+
178
+ You will find all the stylesheets in easy-to-read Sass format.
179
+
180
+ <pre>stylesheets/jquery/ui</pre>
181
+
182
+ To use the stylesheets and javascripts include:
183
+
184
+ <pre>
185
+ = stylesheet_link_tag :ganttView', :media => 'screen, projection'
186
+ = javascript_include_tag :sparkline
187
+ = javascript_include_tag :ganttView</pre>
188
+
171
189
  Emulators
172
190
  ---------
173
191
 
@@ -179,11 +197,11 @@ You will find all the stylesheets in easy-to-read Sass format at:
179
197
 
180
198
  <pre>stylesheets/emulators</pre>
181
199
 
182
- To use the localized stylesheets and javacripts include:
200
+ To use the stylesheets and javacripts include:
183
201
 
184
202
  <pre>
185
- = stylesheet_link_tag 'compiled/emulators/ipad.landscape.css', :media => 'screen, projection'
186
- = stylesheet_link_tag 'compiled/emulators/iphone.portrait.css', :media => 'screen, projection'</pre>
203
+ = stylesheet_link_tag :ipad_landscape, :media => 'screen, projection'
204
+ = stylesheet_link_tag :iphone_portrait, :media => 'screen, projection'</pre>
187
205
 
188
206
  jQuery mobile
189
207
  -------------
@@ -196,10 +214,10 @@ You will find all the stylesheets in easy-to-read Sass format at:
196
214
 
197
215
  <pre>stylesheets/mobile</pre>
198
216
 
199
- To use the localized stylesheets and javacripts include:
217
+ To use the stylesheets and javascripts include:
200
218
 
201
219
  <pre>
202
- = stylesheet_link_tag "compiled/jquery/mobile/[theme].css", :media => 'screen, projection'
220
+ = stylesheet_link_tag :mobile_[theme], :media => 'screen, projection'
203
221
  = javascript_include_tag :mobile'</pre>
204
222
 
205
223
 
@@ -214,10 +232,10 @@ You will find all the stylesheets in easy-to-read Sass format at:
214
232
 
215
233
  <pre>stylesheets/jqtouch</pre>
216
234
 
217
- To use the localized stylesheets and javacripts include:
235
+ To use the stylesheets and javascripts include:
218
236
 
219
237
  <pre>
220
- = stylesheet_link_tag 'compiled/jquery/touch/[theme].css', :media => 'screen, projection'
238
+ = stylesheet_link_tag :jqt_[theme], :media => 'screen, projection'
221
239
  = javascript_include_tag :jqtouch'</pre>
222
240
 
223
241
 
@@ -243,10 +261,10 @@ jQuery Plugins included:
243
261
  * "Cowboy" Ben Alman for [jQuery doTimeout Plugin][37]
244
262
  * Pete Gamache for [jQuery DSt Plugin][38]
245
263
  * Martin Wendt for [jQuery Dynatree Plugin][15]
246
- * John Reisig et. al. for [jQuery Form Plugin][16]
264
+ * Frank (JC) Grubbs for [jQuery Gantt View Plugin][39]
247
265
  * Tony Tomov for [jQuery Grid Plugin][17]
248
266
  * Tim Caswell for [jQuery haml Plugin][18]
249
- * Takayuki Miwa for [jQuery history plugin][19]
267
+ * John Reisig et. al. for [jQuery Form Plugin][16]
250
268
  * Ivan Bozhanov for [jQuery jsTree Plugin][20]
251
269
  * Fabrizio Balliano and Kevin Dalman for [jQuery Layout Plugin][21]
252
270
  * Brandon Aaron and Fabrizio Balliano for [jQuery Mousewheel Plugin][21]
@@ -266,7 +284,7 @@ jQuery Plugins included:
266
284
  Other stuff included:
267
285
  ---------------------
268
286
 
269
- * Tim Caswell for [halm-js][32]. Server side templating language for JavaScript.
287
+ * Benjamin Lupton for [History.js][19]
270
288
  * Rick DeNatale for [ri_cal][33]
271
289
 
272
290
  Note on Patches/Pull Requests
@@ -304,7 +322,7 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
304
322
  [16]: http://malsup.com/jquery/form/
305
323
  [17]: http://www.trirand.com/blog/
306
324
  [18]: http://github.com/creationix/jquery-haml
307
- [19]: http://tkyk.github.com/jquery-history-plugin/
325
+ [19]: http://github.com/balupton/History.js/
308
326
  [20]: http://jstree.com/
309
327
  [21]: http://www.fabrizioballiano.net/
310
328
  [22]: http://jquery.andreaseberhard.de/
@@ -317,12 +335,11 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
317
335
  [29]: http://www.ama3.com/anytime/
318
336
  [30]: http://acko.net/dev/farbtastic
319
337
  [31]: http://arshaw.com/fullcalendar/
320
- [32]: http://github.com/creationix/haml-js
338
+ [32]: http://github.com/kosmas58/compass-jquery-plugin-sample
321
339
  [33]: http://github.com/rubyredrick/ri_cal/
322
340
  [34]: http://github.com/wycats/jquery-offline
323
341
  [35]: http://github.com/brandonaaron/jquery-mousewheel
324
342
  [36]: http://github.com/cowboy/jquery-replacetext
325
343
  [37]: http://github.com/cowboy/jquery-dotimeout
326
344
  [38]: http://github.com/gamache/DSt
327
- [39]: http://github.com/kosmas58/compass-jquery-plugin-sample
328
-
345
+ [39]: http://github.com/thegrubbsian/jquery.ganttView
data/VERSION.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  :commit:
3
- :state: 3
3
+ :state: 4
4
4
  :tiny: 2
5
5
  :minor: 3
6
6
  :major: 0
@@ -1,16 +1,16 @@
1
- module HandleAttributes
1
+ module HandleAttributes
2
2
  private
3
-
3
+
4
4
  def get_atr_value(elem, atr, couples)
5
5
  if atr.to_s.include?('.')
6
- value = get_nested_atr_value(elem, atr.to_s.split('.').reverse)
6
+ value = get_nested_atr_value(elem, atr.to_s.split('.').reverse)
7
7
  else
8
8
  value = couples[atr]
9
9
  value = elem.send(atr.to_sym) if value.blank? && elem.respond_to?(atr) # Required for virtual attributes
10
10
  end
11
11
  value
12
12
  end
13
-
13
+
14
14
  def get_nested_atr_value(elem, hierarchy)
15
15
  return nil if hierarchy.size == 0
16
16
  atr = hierarchy.pop
@@ -5,23 +5,23 @@ YUI_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'yuicompressor-2.4.4.jar')
5
5
  def compress_js(scripts, compressor)
6
6
  min_js = ''
7
7
  if (compressor.downcase == "google")
8
- cmd = %Q/java -jar "#{GOOGLE_JS_COMPRESSOR}" --charset utf8/
8
+ cmd = %Q/java -jar "#{GOOGLE_JS_COMPRESSOR}" --charset utf8/
9
9
  else
10
10
  cmd = %Q/java -jar "#{YUI_JS_COMPRESSOR}" --type js --charset utf8/
11
11
  end
12
- IO.popen(cmd, 'r+') { |f| f.print(scripts); f.close_write; min_js = f.read }
12
+ IO.popen(cmd, 'r+') { |f| f.print(scripts); f.close_write; min_js = f.read }
13
13
  min_js
14
14
  end
15
15
 
16
16
  def concat_files(files)
17
17
  out = ''
18
- files.each do |file|
18
+ files.each do |file|
19
19
  out += file
20
20
  end
21
21
  out
22
22
  end
23
23
 
24
- def all_files(pattern)
25
- FileList[pattern].collect {|filename| File.read(filename)}.join "\n\n"
24
+ def all_files(pattern)
25
+ FileList[pattern].collect { |filename| File.read(filename) }.join "\n\n"
26
26
  end
27
27
 
data/lib/jqtouch_theme.rb CHANGED
@@ -11,11 +11,11 @@ class JqTouchTheme
11
11
  # Create a sass file of variables names and copy the images
12
12
  def convert_theme(name, dir, stylesheets)
13
13
  theme = File.read(File.join(dir, @theme_filename))
14
-
14
+
15
15
  # Fix stuff
16
16
  theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
17
17
  theme.gsub! /url\(img(.+?)\)/, "image_url(\"jquery/touch/#{name}\\1\")"
18
-
18
+
19
19
  # Convert the stylesheet
20
20
  open File.join(JQTOUCH_DEST_THEMES, "#{name}.scss"), 'w' do |f|
21
21
  sass = JQTOUCH_MESSAGE2
@@ -1,5 +1,5 @@
1
1
  module ActionView
2
2
  module Helpers
3
-
4
- end
3
+
4
+ end
5
5
  end
@@ -1,3 +1,3 @@
1
- module Emulators#:nodoc:
1
+ module Emulators #:nodoc:
2
2
  end
3
3
 
@@ -1,12 +1,12 @@
1
1
  module FlashMessages
2
2
  module ControllerMethods
3
3
  TYPES = [:success, :notice, :warning, :error]
4
-
4
+
5
5
  TYPES.each do |type|
6
6
  define_method(type) do |msg|
7
7
  flash[type] = msg
8
8
  end
9
-
9
+
10
10
  define_method("#{type}_now") do |msg|
11
11
  flash.now[type] = msg
12
12
  end
@@ -21,12 +21,12 @@ module FlashMessages
21
21
  # end
22
22
  # end
23
23
  # end
24
-
24
+
25
25
  FLASH_NOTICE_KEYS = [:error, :warning, :notice, :success]
26
-
26
+
27
27
  def flash_messages
28
- return unless messages = flash.keys.select{|k| FLASH_NOTICE_KEYS.include?(k)}
29
- formatted_messages = messages.map do |type|
28
+ return unless messages = flash.keys.select { |k| FLASH_NOTICE_KEYS.include?(k) }
29
+ formatted_messages = messages.map do |type|
30
30
  content_tag(:div, nil, :class => type.to_s + " ui-corner-all") do
31
31
  message_for_item(flash[type], flash["#{type}_item".to_sym])
32
32
  end
@@ -0,0 +1,5 @@
1
+ module ActionView
2
+ module Helpers
3
+
4
+ end
5
+ end
@@ -17,7 +17,7 @@ module Gridify
17
17
  invalid_keys = hash.keys - valid_keys
18
18
  raise ArgumentError, "Invalid key(s): #{invalid_keys.join(', ')}" unless invalid_keys.empty?
19
19
  end
20
-
20
+
21
21
  # Validates that the given hash only includes at *most* one of a set of
22
22
  # exclusive keys. If more than one key is found, an ArgumentError will be
23
23
  # raised.
@@ -11,14 +11,14 @@ module Gridify
11
11
  include Assertions
12
12
 
13
13
  # todo: change this so klass is optional, decouple from active record
14
- def initialize( klass, *args, &block )
14
+ def initialize(klass, *args, &block)
15
15
  #debugger
16
16
  options = args.extract_options! # => args.last.is_a?(Hash) ? args.pop : {}
17
- assert_exclusive_keys( options, :only, :except)
18
-
17
+ assert_exclusive_keys(options, :only, :except)
18
+
19
19
  @resource = klass.to_s.tableize.pluralize
20
20
  @name = args.first || :grid
21
-
21
+
22
22
  # non-persistent options
23
23
  # generate model unless explicitly say no
24
24
  build_model = options.delete(:build_model) == false ? false : true
@@ -26,26 +26,27 @@ module Gridify
26
26
  except = options.delete(:except)
27
27
  col_presets = options.delete(:colModel)
28
28
  col_include = options[:colInclude]
29
-
29
+ row_actions = options[:rowActions]
30
+
30
31
  # assign options
31
32
  update options
32
-
33
+
33
34
  # build columns from ActiveRecord model (klass)
34
35
  if klass.present? && build_model
35
- @model = build_columns(klass, only, except, col_presets, col_include)
36
+ @model = build_columns(klass, only, except, col_presets, col_include, row_actions)
36
37
  end
37
-
38
+
38
39
  instance_eval(&block) if block
39
40
  #(note instance_eval cannot access things outside its scope; otherwise do this:
40
41
  #yield self if block_given?
41
42
  end
42
-
43
- def update( options )
44
- options.each {|atr, val| send( "#{atr}=", val )}
43
+
44
+ def update(options)
45
+ options.each { |atr, val| send("#{atr}=", val) }
45
46
  # exception "invalid option..."
46
47
  end
47
48
 
48
- def column( name, options={} )
49
+ def column(name, options={})
49
50
  name = name.to_s
50
51
  klass = resource.classify.constantize
51
52
  # TODO: set edit options based on ar_column
@@ -55,51 +56,51 @@ module Gridify
55
56
  if col = columns_hash[name]
56
57
  # update an existing column
57
58
  col.update options
58
-
59
- elsif ar = klass.columns.detect {|c| c.name==name}
59
+
60
+ elsif ar = klass.columns.detect { |c| c.name==name }
60
61
  #debugger
61
62
  # create column from database schema
62
- edit = editable &&
63
- # only edit accessible attributes
64
- (klass.accessible_attributes.nil? || klass.accessible_attributes.include?(ar.name))
63
+ edit = editable &&
64
+ # only edit accessible attributes
65
+ (klass.accessible_attributes.nil? || klass.accessible_attributes.include?(ar.name))
65
66
  args = {
66
- :ar_column => ar,
67
- :name => ar.name,
68
- :value_type => ar.type,
69
- :searchable => searchable,
70
- :sortable => sortable,
71
- :editable => edit
67
+ :ar_column => ar,
68
+ :name => ar.name,
69
+ :value_type => ar.type,
70
+ :searchable => searchable,
71
+ :sortable => sortable,
72
+ :editable => edit
72
73
  }.merge(options)
73
- colModel << GridColumn.new( args)
74
-
74
+ colModel << GridColumn.new(args)
75
+
75
76
  else
76
77
  # create column from scratch
77
78
  args = {
78
- :name => name,
79
- :value_type => :string,
80
- :searchable => searchable,
81
- :sortable => sortable,
82
- :editable => edit
79
+ :name => name,
80
+ :value_type => :string,
81
+ :searchable => searchable,
82
+ :sortable => sortable,
83
+ :editable => edit
83
84
  }.merge(options)
84
- colModel << GridColumn.new( args)
85
+ colModel << GridColumn.new(args)
85
86
  end
86
87
  end
87
-
88
+
88
89
  def column_names
89
- colModel.collect {|col| col.name.titleize }
90
+ colModel.collect { |col| col.name.titleize }
90
91
  end
91
-
92
+
92
93
  def column_model
93
- colModel.collect {|col| col.properties }
94
+ colModel.collect { |col| col.properties }
94
95
  end
95
-
96
+
96
97
  # normally we need to keep columns an ordered array, sometimes its convenient to have a hash
97
98
  def columns_hash
98
- colModel.inject({}) {|h, col| h[col.name] = col; h }
99
+ colModel.inject({}) { |h, col| h[col.name] = col; h }
99
100
  end
100
-
101
+
101
102
  protected
102
-
103
+
103
104
  # # isnt there something in rails to do this already?
104
105
  # def parse_options( keys, options )
105
106
  # ops = keys.inject({}) do |h, k|
@@ -113,25 +114,25 @@ module Gridify
113
114
  # generate list of columns based on AR model
114
115
  # option: :only or :except
115
116
  # :col_options hash of hash of preset values for columns (eg from cookie) { :title => {:width => 98}}
116
- def build_columns( klass, only, except, presets, col_include )
117
+ def build_columns(klass, only, except, presets, include, actions)
117
118
  #debugger
118
119
  # stringify
119
- only = Array(only).map {|s| s.to_s }
120
- except = Array(except).map {|s| s.to_s }
120
+ only = Array(only).map { |s| s.to_s }
121
+ except = Array(except).map { |s| s.to_s }
121
122
  presets ||= []
122
-
123
+
123
124
  if presets.length > 0
124
125
  hashed_defs = {}
125
-
126
+
126
127
  klass.columns.collect do |ar|
127
128
  #debugger
128
129
  next if only.present? && !only.include?(ar.name)
129
130
  next if except.present? && except.include?(ar.name)
130
131
  hashed_defs[ar.name] = strct2args(klass, ar)
131
132
  end.compact
132
-
133
- if col_include
134
- col_include.each do |sub_model|
133
+
134
+ if include
135
+ include.each do |sub_model|
135
136
  my_model = sub_model.to_s
136
137
  if klass.inheritable_attributes[:reflections][sub_model].options[:class_name]
137
138
  my_class = klass.inheritable_attributes[:reflections][sub_model].options[:class_name].to_s
@@ -148,6 +149,10 @@ module Gridify
148
149
  end
149
150
  end
150
151
 
152
+ if actions
153
+ hashed_defs["row_actions"] = actions_args()
154
+ end
155
+
151
156
  # Take sequence from colModel
152
157
  self.colModel = []
153
158
  presets.each do |col|
@@ -164,9 +169,9 @@ module Gridify
164
169
  # create column with default args merged with options given for this column
165
170
  GridColumn.new(args)
166
171
  end.compact
167
-
168
- if col_include
169
- col_include.each do |sub_model|
172
+
173
+ if include
174
+ include.each do |sub_model|
170
175
  my_model = sub_model.to_s
171
176
  if klass.inheritable_attributes[:reflections][sub_model].options[:class_name]
172
177
  my_class = klass.inheritable_attributes[:reflections][sub_model].options[:class_name].to_s
@@ -186,15 +191,15 @@ module Gridify
186
191
  end
187
192
  end
188
193
  end
189
-
194
+
190
195
  private
191
-
192
- def strct2args(my_class, record, prefix="")
193
- is_key = (record.name=='id')
194
- edit = editable && !is_key &&
196
+
197
+ def strct2args(my_class, record, prefix="")
198
+ is_key = (record.name=='id')
199
+ edit = editable && !is_key &&
195
200
  # only edit accessible attributes
196
- (my_class.accessible_attributes.nil? || my_class.accessible_attributes.include?(record.name))
197
- args = {
201
+ (my_class.accessible_attributes.nil? || my_class.accessible_attributes.include?(record.name))
202
+ args = {
198
203
  :ar_column => record,
199
204
  :name => "#{prefix}#{record.name}",
200
205
  :value_type => record.type,
@@ -203,7 +208,19 @@ module Gridify
203
208
  :searchable => searchable,
204
209
  :sortable => sortable,
205
210
  :editable => edit
206
- }
207
- end
211
+ }
212
+ end
213
+
214
+ def actions_args
215
+ args = {
216
+ #:ar_column => record,
217
+ :name => "row_actions",
218
+ #:value_type => record.type,
219
+ #:hidden => is_key,
220
+ :searchable => false,
221
+ :sortable => false,
222
+ :editable => false
223
+ }
224
+ end
208
225
  end
209
226
  end