compass-jquery-plugin 0.3.2.3 → 0.3.2.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.
- data/README.md +54 -37
- data/VERSION.yml +1 -1
- data/lib/handle_attributes.rb +4 -4
- data/lib/handle_js_files.rb +5 -5
- data/lib/jqtouch_theme.rb +2 -2
- data/lib/jquery/dynatree.rb +2 -2
- data/lib/jquery/emulators.rb +1 -1
- data/lib/jquery/flash_messages.rb +6 -6
- data/lib/jquery/graphics.rb +5 -0
- data/lib/jquery/gridify/assertions.rb +1 -1
- data/lib/jquery/gridify/grid.rb +76 -59
- data/lib/jquery/gridify/grid_column.rb +73 -67
- data/lib/jquery/gridify/grid_finder.rb +79 -79
- data/lib/jquery/gridify/grid_options.rb +154 -149
- data/lib/jquery/gridify/grid_view.rb +143 -143
- data/lib/jquery/gridify.rb +25 -25
- data/lib/jquery/ical/calendar.rb +2 -2
- data/lib/jquery/ical/event.rb +48 -44
- data/lib/jquery/ical/helpers/ui_event_helper.rb +3 -3
- data/lib/jquery/jqgrid/jqgrid.rb +58 -58
- data/lib/jquery/jqgrid.rb +1 -1
- data/lib/jquery/jqtouch.rb +1 -1
- data/lib/jquery/jquery.rb +117 -117
- data/lib/jquery/jquery_auto_complete.rb +9 -9
- data/lib/jquery/jquery_json_response.rb +12 -12
- data/lib/jquery/jquery_selector_assertions.rb +55 -53
- data/lib/jquery/jstree.rb +2 -2
- data/lib/jquery/mobile.rb +1 -1
- data/lib/jquery/ribbon.rb +2 -2
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +5 -5
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +5 -5
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +1 -1
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +39 -39
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +74 -74
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +21 -21
- data/lib/jquery/secret_sauce.rb +1 -1
- data/lib/jquery/tools.rb +1 -1
- data/lib/jquery_mobile_theme.rb +2 -2
- data/lib/jquery_ui_theme.rb +12 -12
- data/templates/dynatree/config/initializers/dynatree.rb +3 -3
- data/templates/dynatree/jquery/dynatree/aero.scss +16 -16
- data/templates/dynatree/jquery/dynatree/aqua.scss +16 -16
- data/templates/dynatree/jquery/dynatree/crystal.scss +16 -16
- data/templates/dynatree/jquery/dynatree/xp.scss +17 -17
- data/templates/dynatree/jquery.dynatree.js +2926 -2912
- data/templates/emulators/config/initializers/emulators.rb +6 -6
- data/templates/graphics/config/initializers/graphics.rb +5 -0
- data/templates/graphics/jquery/ganttView.scss +89 -0
- data/templates/graphics/jquery.ganttView.js +1669 -0
- data/templates/graphics/jquery.ganttView.min.js +70 -0
- data/templates/{jquery → graphics}/jquery.sparkline.js +466 -438
- data/templates/{jquery → graphics}/jquery.sparkline.min.js +0 -0
- data/templates/graphics/manifest.rb +9 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +135 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +137 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +138 -132
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +19 -16
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +8 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +139 -136
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +4 -1
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +14 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +130 -124
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +144 -138
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +133 -127
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +132 -126
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +131 -125
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +132 -126
- data/templates/jqgrid/jquery.jqGrid.js +12735 -10444
- data/templates/jqgrid/jquery.jqGrid.min.js +477 -469
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +12 -10
- data/templates/jqtouch/config/initializers/jqtouch.rb +3 -3
- data/templates/jqtouch/jquery/touch/jqtouch.scss +1 -1
- data/templates/jqtouch/jquery.jqtouch.js +10025 -10043
- data/templates/jquery/config/initializers/jquery.rb +2 -4
- data/templates/jquery/history.adapter.jquery.js +71 -0
- data/templates/jquery/history.adapter.jquery.min.js +4 -0
- data/templates/jquery/history.html4.js +690 -0
- data/templates/jquery/history.html4.min.js +21 -0
- data/templates/jquery/history.js +1297 -0
- data/templates/jquery/history.min.js +29 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +8 -8
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +14 -14
- data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +15 -15
- data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +22 -22
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +16 -16
- data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +2 -2
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +14 -14
- data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/{partials → jquery/ui}/_flash_messages.scss +0 -0
- data/templates/jquery/jquery/ui/_theme.scss +14 -13
- data/templates/jquery/jquery/ui/contextMenu/configure.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/cut.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/exit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/paste.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/rename.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/show.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/trash.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu.scss +16 -10
- data/templates/jquery/jquery-ui.js +11839 -23066
- data/templates/jquery/jquery-ui.min.js +401 -795
- data/templates/jquery/jquery.bgiframe.js +27 -25
- data/templates/jquery/jquery.contextMenu.js +209 -196
- data/templates/jquery/jquery.cookie.js +3 -1
- data/templates/jquery/jquery.dotimeout.js +236 -228
- data/templates/jquery/jquery.dst.js +154 -151
- data/templates/jquery/jquery.farbtastic.js +293 -293
- data/templates/jquery/jquery.flashMessages.js +26 -0
- data/templates/jquery/jquery.flashMessages.min.js +1 -0
- data/templates/jquery/jquery.form.js +803 -786
- data/templates/jquery/jquery.haml.js +248 -247
- data/templates/jquery/jquery.hotkeys.js +89 -89
- data/templates/jquery/jquery.js +8141 -8106
- data/templates/jquery/jquery.layout.js +2451 -2415
- data/templates/jquery/jquery.min.js +167 -166
- data/templates/jquery/jquery.mousewheel.js +62 -54
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +76 -76
- data/templates/jquery/jquery.replacetext.js +83 -83
- data/templates/jquery/jquery.themeswitchertool.js +202 -177
- data/templates/jquery/jquery.tmpl.js +478 -473
- data/templates/jquery/jquery.tmplPlus.js +82 -81
- data/templates/jquery/jrails.js +178 -175
- data/templates/jquery/json.js +77 -7
- data/templates/jquery/json2.js +480 -0
- data/templates/jquery/json2.min.js +7 -0
- data/templates/jquery/lib/tasks/haml.rake +2 -2
- data/templates/jquery/manifest.rb +21 -17
- data/templates/jstree/jquery.jstree.js +5967 -4536
- data/templates/mobile/config/initializers/mobile.rb +1 -1
- data/templates/mobile/jquery/mobile/_base.scss +944 -927
- data/templates/mobile/jquery/mobile/default.scss +61 -48
- data/templates/mobile/jquery/mobile/valencia.scss +56 -42
- data/templates/mobile/jquery.mobile.js +4461 -4347
- data/templates/mobile/jquery.mobile.min.js +11 -2
- data/templates/mobile/lib/tasks/jquery.mobile.rake +12 -12
- data/templates/ribbon/config/initializers/ribbon.rb +2 -2
- data/templates/ribbon/jquery.ribbon.js +50 -29
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +945 -1
- data/templates/tools/jquery.tools.js +4645 -4335
- data/templates/tools/jquery.tools.min.js +37 -37
- data/templates/tools/lib/tasks/jquery.tools.rake +4 -4
- data/templates/tools/swfobject.js +813 -773
- metadata +33 -21
- data/templates/jquery/haml.js +0 -506
- data/templates/jquery/haml.min.js +0 -5
- data/templates/jquery/jquery/ui/contextMenu/door.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_copy.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_delete.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_edit.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_new.png +0 -0
- data/templates/jquery/jquery/ui/contextMenu/page_white_paste.png +0 -0
- data/templates/jquery/jquery.compat-1.3.js +0 -291
- data/templates/jquery/jquery.compat-1.3.min.js +0 -6
- data/templates/jquery/jquery.flash_messages.js +0 -5
- data/templates/jquery/jquery.flash_messages.min.js +0 -1
- data/templates/jquery/jquery.history.js +0 -194
- data/templates/jquery/jquery.history.min.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module ActiveRecord
|
|
2
|
-
class Base
|
|
2
|
+
class Base
|
|
3
3
|
# takes params from request and returns records serialized to json. handles the majority of the functionality
|
|
4
4
|
# for searching, sorting, and serializing records to be consumed by jqGrid.
|
|
5
5
|
def self.find_for_grid_2(params)
|
|
@@ -8,35 +8,35 @@ module ActiveRecord
|
|
|
8
8
|
search_options[:order] = "#{params['sidx']} #{params['sord']}" if params["sidx"] != ""
|
|
9
9
|
if params["_search"] == "true"
|
|
10
10
|
string_search_operations = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
"eq" => "=",
|
|
12
|
+
"ne" => "<>",
|
|
13
|
+
"bw" => "LIKE",
|
|
14
|
+
"bn" => "NOT LIKE",
|
|
15
|
+
"ew" => "LIKE",
|
|
16
|
+
"en" => "NOT LIKE",
|
|
17
|
+
"cn" => "LIKE",
|
|
18
|
+
"nc" => "NOT LIKE"
|
|
19
19
|
}
|
|
20
20
|
integer_search_operations = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
"eq" => "=",
|
|
22
|
+
"ne" => "<>",
|
|
23
|
+
"lt" => "<",
|
|
24
|
+
"le" => "<=",
|
|
25
|
+
"gt" => ">",
|
|
26
|
+
"ge" => ">="
|
|
27
27
|
}
|
|
28
|
-
if [:text, :string].include?(self.columns.select {|c| c.name == params["searchField"]}.first.type) && string_search_operations.keys.include?(params["searchOper"])
|
|
28
|
+
if [:text, :string].include?(self.columns.select { |c| c.name == params["searchField"] }.first.type) && string_search_operations.keys.include?(params["searchOper"])
|
|
29
29
|
search_options[:conditions] = "#{params["searchField"]} "
|
|
30
30
|
search_options[:conditions] << "#{string_search_operations[params["searchOper"]]}"
|
|
31
31
|
search_options[:conditions] << "'#{"%" if ["ew", "en", "cn", "nc"].include?(params["searchOper"])}#{params["searchString"]}#{"%" if ["nc", "cn", "bn", "bw"].include?(params["searchOper"])}'"
|
|
32
|
-
elsif [:integer].include?(self.columns.select {|c| c.name == params["searchField"]}.first.type) && integer_search_operations.keys.include?(params["searchOper"])
|
|
32
|
+
elsif [:integer].include?(self.columns.select { |c| c.name == params["searchField"] }.first.type) && integer_search_operations.keys.include?(params["searchOper"])
|
|
33
33
|
search_options[:conditions] = "#{params["searchField"]} #{integer_search_operations[params["searchOper"]]} #{params["searchString"]}"
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
|
-
count
|
|
36
|
+
count = self.count(:all, :conditions => search_options[:conditions]).to_f
|
|
37
37
|
# raise count.inspect
|
|
38
|
-
array = self.find(:all, search_options).collect {|r| r.attributes }
|
|
39
|
-
{:total => (count / params["rows"].to_f).ceil, :page => params["page"], :records => count, :rows => array
|
|
40
|
-
end
|
|
38
|
+
array = self.find(:all, search_options).collect { |r| r.attributes }
|
|
39
|
+
{:total => (count / params["rows"].to_f).ceil, :page => params["page"], :records => count, :rows => array}.to_json
|
|
40
|
+
end
|
|
41
41
|
end
|
|
42
42
|
end
|
data/lib/jquery/secret_sauce.rb
CHANGED
data/lib/jquery/tools.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
module Tools#:nodoc:
|
|
1
|
+
module Tools #:nodoc:
|
|
2
2
|
end
|
data/lib/jquery_mobile_theme.rb
CHANGED
|
@@ -12,11 +12,11 @@ class JqueryMobileTheme
|
|
|
12
12
|
# Create a sass file of variables names and copy the images
|
|
13
13
|
def convert_theme(name, dir, stylesheets)
|
|
14
14
|
theme = File.read(File.join(dir, @theme_filename))
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
# Fix stuff
|
|
17
17
|
theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
|
|
18
18
|
theme.gsub! /url\(images(.+?)\)/, "image_url(\"jquery/mobile/#{name}\\1\")"
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
# Convert the stylesheet
|
|
21
21
|
open File.join(MOBILE_DEST_THEMES, "#{name}.scss"), 'w' do |f|
|
|
22
22
|
sass = MOBILE_MESSAGE2
|
data/lib/jquery_ui_theme.rb
CHANGED
|
@@ -16,9 +16,9 @@ class JqueryUiTheme
|
|
|
16
16
|
@theme_filename = "#{@prefix}.theme.css"
|
|
17
17
|
@base_theme_directory = base_theme_directory
|
|
18
18
|
@base_theme = File.read(File.join(@base_theme_directory, @theme_filename))
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
# Fix opacity issue
|
|
21
|
-
print "Fixing overlays\n"
|
|
21
|
+
print "Fixing overlays\n"
|
|
22
22
|
@base_theme.sub!(/\/\*\{bgOverlayRepeat\}\*\/\; opacity: (\.\d+)\;filter:/, "/*{bgOverlayRepeat}*/; opacity: \\1/*{bgOverlayOpacity}*/; filter: ")
|
|
23
23
|
@base_theme.sub!(/\{opacityOverlay\}/, '{bgOverlayFilter}')
|
|
24
24
|
@base_theme.sub!(/\/\*\{bgShadowRepeat\}\*\/\; opacity: (\.\d+)\;filter:/, "/*{bgShadowRepeat}*/; opacity: \\1/*{bgShadowOpacity}*/; filter: ")
|
|
@@ -37,7 +37,7 @@ class JqueryUiTheme
|
|
|
37
37
|
placeholder = '___PLACEHOLDER___'
|
|
38
38
|
@regexp = @base_theme.dup
|
|
39
39
|
# Install placeholders for the variable data
|
|
40
|
-
@regexp.gsub!(VARIABLE_MATCHER) {placeholder}
|
|
40
|
+
@regexp.gsub!(VARIABLE_MATCHER) { placeholder }
|
|
41
41
|
# Strip the header comments
|
|
42
42
|
@regexp.gsub! /.*^\*\/\s*/m, ''
|
|
43
43
|
# Collapse all whitespace
|
|
@@ -56,7 +56,7 @@ class JqueryUiTheme
|
|
|
56
56
|
def regexp_variables
|
|
57
57
|
return @regexp_variables if @regexp_variables
|
|
58
58
|
@regexp_variables = Array.new
|
|
59
|
-
@base_theme.scan(VARIABLE_MATCHER) {@regexp_variables << $2}
|
|
59
|
+
@base_theme.scan(VARIABLE_MATCHER) { @regexp_variables << $2 }
|
|
60
60
|
@regexp_variables
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -67,16 +67,16 @@ class JqueryUiTheme
|
|
|
67
67
|
next unless /^#{@prefix}\..*\.css$/ =~ file
|
|
68
68
|
next if ["{#{@prefix}.all.css", "#{@prefix}.base.css"].include? file
|
|
69
69
|
css = File.read(File.join(@base_theme_directory, file))
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
if "{#{@prefix}.autocomplete.css".include? file
|
|
72
72
|
# Removing autocomplete image to add it later by script
|
|
73
73
|
if css[112..135] == ".ui-autocomplete-loading"
|
|
74
|
-
css[220,0] = "*/"
|
|
75
|
-
css[112,0] = "/*"
|
|
74
|
+
css[220, 0] = "*/"
|
|
75
|
+
css[112, 0] = "/*"
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
|
-
|
|
79
|
-
open File.join(stylesheets, '_' + file.gsub(/\.css$/,'.scss').gsub(/^#{@prefix}\./,'')), 'w' do |f|
|
|
78
|
+
|
|
79
|
+
open File.join(stylesheets, '_' + file.gsub(/\.css$/, '.scss').gsub(/^#{@prefix}\./, '')), 'w' do |f|
|
|
80
80
|
if file == @theme_filename
|
|
81
81
|
f.print(self.class.theme_css2sass(@base_theme))
|
|
82
82
|
else
|
|
@@ -93,7 +93,7 @@ class JqueryUiTheme
|
|
|
93
93
|
theme = @base_theme
|
|
94
94
|
else
|
|
95
95
|
theme = File.read(File.join(dir, @theme_filename))
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
# Fix Overlay stuff
|
|
98
98
|
theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
|
|
99
99
|
theme += WIDGET_BORDER
|
|
@@ -125,9 +125,9 @@ class JqueryUiTheme
|
|
|
125
125
|
# Converter for ui.theme.css which has the variable names
|
|
126
126
|
def self.theme_css2sass(theme_css)
|
|
127
127
|
# Install variable names and convert to sass
|
|
128
|
-
sass = css2sass(theme_css.gsub(VARIABLE_MATCHER){"$#{VARIABLE_NAME_BASE}#{$2}"})
|
|
128
|
+
sass = css2sass(theme_css.gsub(VARIABLE_MATCHER) { "$#{VARIABLE_NAME_BASE}#{$2}" })
|
|
129
129
|
# Convert select lines from literal to programatic syntax
|
|
130
|
-
sass.gsub!(/.*/){|x| /\!/=~x ? x.gsub(/:/,'=').gsub(/ solid /, ' "solid" ') : x}
|
|
130
|
+
sass.gsub!(/.*/) { |x| /\!/=~x ? x.gsub(/:/, '=').gsub(/ solid /, ' "solid" ') : x }
|
|
131
131
|
sass
|
|
132
132
|
end
|
|
133
133
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require 'jquery/dynatree'
|
|
2
2
|
|
|
3
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_aero
|
|
4
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_aqua
|
|
3
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_aero => ['compiled/jquery/dynatree/aero.css']
|
|
4
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_aqua => ['compiled/jquery/dynatree/aqua.css']
|
|
5
5
|
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_crystal => ['compiled/jquery/dynatree/crystal.css']
|
|
6
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_xp
|
|
6
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :dynatree_xp => ['compiled/jquery/dynatree/xp.css']
|
|
7
7
|
|
|
8
8
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :dynatree => ['jquery.dynatree.min']
|
|
@@ -49,8 +49,8 @@ ul {
|
|
|
49
49
|
background-color: silver; }
|
|
50
50
|
|
|
51
51
|
/*******************************************************************************
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Common icon definitions
|
|
53
|
+
*/
|
|
54
54
|
|
|
55
55
|
span {
|
|
56
56
|
&.dynatree-empty, &.dynatree-vline, &.dynatree-connector, &.dynatree-expander, &.dynatree-icon, &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
|
@@ -89,8 +89,8 @@ ul.dynatree-container img {
|
|
|
89
89
|
border-style: none; }
|
|
90
90
|
|
|
91
91
|
/*******************************************************************************
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
* Lines and connectors
|
|
93
|
+
*/
|
|
94
94
|
|
|
95
95
|
/*
|
|
96
96
|
span.dynatree-empty
|
|
@@ -139,8 +139,8 @@ span {
|
|
|
139
139
|
background-image: image_url("jquery/dynatree/aero/loading.gif"); }
|
|
140
140
|
|
|
141
141
|
/*******************************************************************************
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
* Checkbox icon
|
|
143
|
+
*/
|
|
144
144
|
|
|
145
145
|
span.dynatree-checkbox {
|
|
146
146
|
margin-left: 3px;
|
|
@@ -234,8 +234,8 @@ ul.dynatree-container a {
|
|
|
234
234
|
margin-left: 3px;
|
|
235
235
|
/* outline: 0; /* @ Firefox, prevent dotted border after click */
|
|
236
236
|
/* Set transparent border to prevent jumping when active node gets a border
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
(we can do this, because this theme doesn't use vertical lines)
|
|
238
|
+
*/
|
|
239
239
|
border: 1px solid white;
|
|
240
240
|
/* Note: 'transparent' would not work in IE6 */
|
|
241
241
|
&:hover {
|
|
@@ -291,14 +291,14 @@ div.dynatree-drag-helper a {
|
|
|
291
291
|
|
|
292
292
|
span.dynatree-drag-helper-img {
|
|
293
293
|
/*
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
position: relative;
|
|
295
|
+
left: -16px;
|
|
296
|
+
*/ }
|
|
297
297
|
|
|
298
298
|
div {
|
|
299
299
|
&.dynatree-drag-helper {
|
|
300
300
|
/* border-color: green;
|
|
301
|
-
|
|
301
|
+
background-color: red;*/ }
|
|
302
302
|
&.dynatree-drop-accept span.dynatree-drag-helper-img {
|
|
303
303
|
background-position: -32px -112px; }
|
|
304
304
|
&.dynatree-drag-helper.dynatree-drop-reject {
|
|
@@ -330,8 +330,8 @@ span {
|
|
|
330
330
|
/*border: 1px solid gray;*/
|
|
331
331
|
a {
|
|
332
332
|
/*background-repeat: no-repeat;
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
background-position: right;
|
|
334
|
+
background-image: url("drop_child.gif");*/ }
|
|
335
335
|
&.dynatree-drop-accept a {
|
|
336
336
|
/*border: 1px solid green;*/
|
|
337
337
|
background-color: #3169C6 !important;
|
|
@@ -342,7 +342,7 @@ span {
|
|
|
342
342
|
/*border: 1px solid red;*/ }
|
|
343
343
|
&.dynatree-drop-after a {
|
|
344
344
|
/*background-repeat: repeat-x;
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
background-position: bottom;
|
|
346
|
+
background-image: url("drop_append.gif");*/ } } }
|
|
347
347
|
|
|
348
348
|
/*** Target node while dragging cursor is over it *****************************/
|
|
@@ -49,8 +49,8 @@ ul {
|
|
|
49
49
|
background-color: silver; }
|
|
50
50
|
|
|
51
51
|
/*******************************************************************************
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Common icon definitions
|
|
53
|
+
*/
|
|
54
54
|
|
|
55
55
|
span {
|
|
56
56
|
&.dynatree-empty, &.dynatree-vline, &.dynatree-connector, &.dynatree-expander, &.dynatree-icon, &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
|
@@ -89,8 +89,8 @@ ul.dynatree-container img {
|
|
|
89
89
|
border-style: none; }
|
|
90
90
|
|
|
91
91
|
/*******************************************************************************
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
* Lines and connectors
|
|
93
|
+
*/
|
|
94
94
|
|
|
95
95
|
/*
|
|
96
96
|
span.dynatree-empty
|
|
@@ -139,8 +139,8 @@ span {
|
|
|
139
139
|
background-image: image_url("jquery/dynatree/aqua/loading.gif"); }
|
|
140
140
|
|
|
141
141
|
/*******************************************************************************
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
* Checkbox icon
|
|
143
|
+
*/
|
|
144
144
|
|
|
145
145
|
span.dynatree-checkbox {
|
|
146
146
|
margin-left: 3px;
|
|
@@ -234,8 +234,8 @@ ul.dynatree-container a {
|
|
|
234
234
|
margin-left: 3px;
|
|
235
235
|
/* outline: 0; /* @ Firefox, prevent dotted border after click */
|
|
236
236
|
/* Set transparent border to prevent jumping when active node gets a border
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
(we can do this, because this theme doesn't use vertical lines)
|
|
238
|
+
*/
|
|
239
239
|
border: 1px solid white;
|
|
240
240
|
/* Note: 'transparent' would not work in IE6 */
|
|
241
241
|
&:hover {
|
|
@@ -291,14 +291,14 @@ div.dynatree-drag-helper a {
|
|
|
291
291
|
|
|
292
292
|
span.dynatree-drag-helper-img {
|
|
293
293
|
/*
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
position: relative;
|
|
295
|
+
left: -16px;
|
|
296
|
+
*/ }
|
|
297
297
|
|
|
298
298
|
div {
|
|
299
299
|
&.dynatree-drag-helper {
|
|
300
300
|
/* border-color: green;
|
|
301
|
-
|
|
301
|
+
background-color: red;*/ }
|
|
302
302
|
&.dynatree-drop-accept span.dynatree-drag-helper-img {
|
|
303
303
|
background-position: -32px -112px; }
|
|
304
304
|
&.dynatree-drag-helper.dynatree-drop-reject {
|
|
@@ -330,8 +330,8 @@ span {
|
|
|
330
330
|
/*border: 1px solid gray;*/
|
|
331
331
|
a {
|
|
332
332
|
/*background-repeat: no-repeat;
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
background-position: right;
|
|
334
|
+
background-image: url("drop_child.gif");*/ }
|
|
335
335
|
&.dynatree-drop-accept a {
|
|
336
336
|
/*border: 1px solid green;*/
|
|
337
337
|
background-color: #3169C6 !important;
|
|
@@ -342,7 +342,7 @@ span {
|
|
|
342
342
|
/*border: 1px solid red;*/ }
|
|
343
343
|
&.dynatree-drop-after a {
|
|
344
344
|
/*background-repeat: repeat-x;
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
background-position: bottom;
|
|
346
|
+
background-image: url("drop_append.gif");*/ } } }
|
|
347
347
|
|
|
348
348
|
/*** Target node while dragging cursor is over it *****************************/
|
|
@@ -49,8 +49,8 @@ ul {
|
|
|
49
49
|
background-color: silver; }
|
|
50
50
|
|
|
51
51
|
/*******************************************************************************
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Common icon definitions
|
|
53
|
+
*/
|
|
54
54
|
|
|
55
55
|
span {
|
|
56
56
|
&.dynatree-empty, &.dynatree-vline, &.dynatree-connector, &.dynatree-expander, &.dynatree-icon, &.dynatree-checkbox, &.dynatree-radio, &.dynatree-drag-helper-img {
|
|
@@ -89,8 +89,8 @@ ul.dynatree-container img {
|
|
|
89
89
|
border-style: none; }
|
|
90
90
|
|
|
91
91
|
/*******************************************************************************
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
* Lines and connectors
|
|
93
|
+
*/
|
|
94
94
|
|
|
95
95
|
/*
|
|
96
96
|
span.dynatree-empty
|
|
@@ -139,8 +139,8 @@ span {
|
|
|
139
139
|
background-image: image_url("jquery/dynatree/crystal/loading.gif"); }
|
|
140
140
|
|
|
141
141
|
/*******************************************************************************
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
* Checkbox icon
|
|
143
|
+
*/
|
|
144
144
|
|
|
145
145
|
span.dynatree-checkbox {
|
|
146
146
|
margin-left: 3px;
|
|
@@ -234,8 +234,8 @@ ul.dynatree-container a {
|
|
|
234
234
|
margin-left: 3px;
|
|
235
235
|
/* outline: 0; /* @ Firefox, prevent dotted border after click */
|
|
236
236
|
/* Set transparent border to prevent jumping when active node gets a border
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
(we can do this, because this theme doesn't use vertical lines)
|
|
238
|
+
*/
|
|
239
239
|
border: 1px solid white;
|
|
240
240
|
/* Note: 'transparent' would not work in IE6 */
|
|
241
241
|
&:hover {
|
|
@@ -291,14 +291,14 @@ div.dynatree-drag-helper a {
|
|
|
291
291
|
|
|
292
292
|
span.dynatree-drag-helper-img {
|
|
293
293
|
/*
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
position: relative;
|
|
295
|
+
left: -16px;
|
|
296
|
+
*/ }
|
|
297
297
|
|
|
298
298
|
div {
|
|
299
299
|
&.dynatree-drag-helper {
|
|
300
300
|
/* border-color: green;
|
|
301
|
-
|
|
301
|
+
background-color: red;*/ }
|
|
302
302
|
&.dynatree-drop-accept span.dynatree-drag-helper-img {
|
|
303
303
|
background-position: -32px -112px; }
|
|
304
304
|
&.dynatree-drag-helper.dynatree-drop-reject {
|
|
@@ -330,8 +330,8 @@ span {
|
|
|
330
330
|
/*border: 1px solid gray;*/
|
|
331
331
|
a {
|
|
332
332
|
/*background-repeat: no-repeat;
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
background-position: right;
|
|
334
|
+
background-image: url("drop_child.gif");*/ }
|
|
335
335
|
&.dynatree-drop-accept a {
|
|
336
336
|
/*border: 1px solid green;*/
|
|
337
337
|
background-color: #3169C6 !important;
|
|
@@ -342,7 +342,7 @@ span {
|
|
|
342
342
|
/*border: 1px solid red;*/ }
|
|
343
343
|
&.dynatree-drop-after a {
|
|
344
344
|
/*background-repeat: repeat-x;
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
background-position: bottom;
|
|
346
|
+
background-image: url("drop_append.gif");*/ } } }
|
|
347
347
|
|
|
348
348
|
/*** Target node while dragging cursor is over it *****************************/
|
|
@@ -30,9 +30,9 @@ ul {
|
|
|
30
30
|
background-image: image_url("jquery/dynatree/xp/vline.png");
|
|
31
31
|
background-position: 0 0;
|
|
32
32
|
/*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
background-image: url("icons_96x256.gif");
|
|
34
|
+
background-position: -80px -64px;
|
|
35
|
+
*/
|
|
36
36
|
margin: 0;
|
|
37
37
|
padding: 1px 0 0 0;
|
|
38
38
|
&.dynatree-lastsib {
|
|
@@ -92,8 +92,8 @@ ul.dynatree-container img {
|
|
|
92
92
|
border-style: none; }
|
|
93
93
|
|
|
94
94
|
/*******************************************************************************
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
* Lines and connectors
|
|
96
|
+
*/
|
|
97
97
|
|
|
98
98
|
span {
|
|
99
99
|
&.dynatree-connector {
|
|
@@ -133,8 +133,8 @@ span {
|
|
|
133
133
|
background-image: image_url("jquery/dynatree/xp/loading.gif"); }
|
|
134
134
|
|
|
135
135
|
/*******************************************************************************
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
* Checkbox icon
|
|
137
|
+
*/
|
|
138
138
|
|
|
139
139
|
span.dynatree-checkbox {
|
|
140
140
|
margin-left: 3px;
|
|
@@ -275,14 +275,14 @@ div.dynatree-drag-helper a {
|
|
|
275
275
|
|
|
276
276
|
span.dynatree-drag-helper-img {
|
|
277
277
|
/*
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
position: relative;
|
|
279
|
+
left: -16px;
|
|
280
|
+
*/ }
|
|
281
281
|
|
|
282
282
|
div {
|
|
283
283
|
&.dynatree-drag-helper {
|
|
284
284
|
/* border-color: green;
|
|
285
|
-
|
|
285
|
+
background-color: red;*/ }
|
|
286
286
|
&.dynatree-drop-accept span.dynatree-drag-helper-img {
|
|
287
287
|
background-position: -32px -112px; }
|
|
288
288
|
&.dynatree-drag-helper.dynatree-drop-reject {
|
|
@@ -314,8 +314,8 @@ span {
|
|
|
314
314
|
/*border: 1px solid gray;*/
|
|
315
315
|
a {
|
|
316
316
|
/*background-repeat: no-repeat;
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
background-position: right;
|
|
318
|
+
background-image: url("drop_child.gif");*/ }
|
|
319
319
|
&.dynatree-drop-accept a {
|
|
320
320
|
/*border: 1px solid green;*/
|
|
321
321
|
background-color: #3169C6 !important;
|
|
@@ -326,8 +326,8 @@ span {
|
|
|
326
326
|
/*border: 1px solid red;*/ }
|
|
327
327
|
&.dynatree-drop-after a {
|
|
328
328
|
/*background-repeat: repeat-x;
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
background-position: bottom;
|
|
330
|
+
background-image: url("drop_append.gif");*/ } }
|
|
331
331
|
&.custom1 a {
|
|
332
332
|
background-color: maroon;
|
|
333
333
|
color: yellow; } }
|
|
@@ -335,5 +335,5 @@ span {
|
|
|
335
335
|
/*** Target node while dragging cursor is over it *****************************/
|
|
336
336
|
|
|
337
337
|
/*******************************************************************************
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
* Custom node classes (sample)
|
|
339
|
+
*/
|