compass-jquery-plugin 0.3.0.beta.19 → 0.3.0.beta.20
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +6 -4
- data/gem_tasks/jrails.rake +6 -6
- data/lib/jquery.ui.rb +6 -1
- data/templates/jrails/config/initializers/jrails.rb +38 -38
- data/templates/jrails/i18n/jquery.ui/datepicker-kz.js +23 -0
- data/templates/jrails/i18n/jquery.ui/datepicker-kz.min.js +4 -0
- data/templates/jrails/{jquery-ui-1.8.4.js → jquery-ui-1.8.5.js} +22778 -22608
- data/templates/jrails/jquery-ui-1.8.5.min.js +786 -0
- data/templates/jrails/jquery.themeswitchertool.js +190 -190
- data/templates/jrails/jquery.themeswitchertool.min.js +7 -7
- data/templates/jrails/jquery.ui/_theme.scss +1539 -1534
- data/templates/jrails/manifest.rb +586 -584
- data/templates/jstree/jquery.ui/jstree.aero/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.aero/d.png +0 -0
- metadata +8 -6
- data/templates/jrails/jquery-ui-1.8.4.min.js +0 -780
data/VERSION.yml
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{compass-jquery-plugin}
|
8
|
-
s.version = "0.3.0.beta.
|
8
|
+
s.version = "0.3.0.beta.20"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kosmas Schuetz"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-18}
|
13
13
|
s.description = %q{A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.}
|
14
14
|
s.email = %q{kosmas.schuetz@gmx.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -679,6 +679,8 @@ Gem::Specification.new do |s|
|
|
679
679
|
"templates/jrails/i18n/jquery.ui/datepicker-ja.min.js",
|
680
680
|
"templates/jrails/i18n/jquery.ui/datepicker-ko.js",
|
681
681
|
"templates/jrails/i18n/jquery.ui/datepicker-ko.min.js",
|
682
|
+
"templates/jrails/i18n/jquery.ui/datepicker-kz.js",
|
683
|
+
"templates/jrails/i18n/jquery.ui/datepicker-kz.min.js",
|
682
684
|
"templates/jrails/i18n/jquery.ui/datepicker-lt.js",
|
683
685
|
"templates/jrails/i18n/jquery.ui/datepicker-lt.min.js",
|
684
686
|
"templates/jrails/i18n/jquery.ui/datepicker-lv.js",
|
@@ -727,8 +729,8 @@ Gem::Specification.new do |s|
|
|
727
729
|
"templates/jrails/i18n/jquery.ui/datepicker-zh-TW.min.js",
|
728
730
|
"templates/jrails/jquery-1.4.2.js",
|
729
731
|
"templates/jrails/jquery-1.4.2.min.js",
|
730
|
-
"templates/jrails/jquery-ui-1.8.
|
731
|
-
"templates/jrails/jquery-ui-1.8.
|
732
|
+
"templates/jrails/jquery-ui-1.8.5.js",
|
733
|
+
"templates/jrails/jquery-ui-1.8.5.min.js",
|
732
734
|
"templates/jrails/jquery.bgiframe.js",
|
733
735
|
"templates/jrails/jquery.bgiframe.min.js",
|
734
736
|
"templates/jrails/jquery.compat-1.3.js",
|
data/gem_tasks/jrails.rake
CHANGED
@@ -15,7 +15,7 @@ FLASH_SRC_IMAGES = File.join(FLASH_SRC, 'images')
|
|
15
15
|
JQUERY_SRC = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.1.4.2')
|
16
16
|
JQUERY_SRC_SCRIPTS = JQUERY_SRC + "/*.js"
|
17
17
|
|
18
|
-
JQUERY_UI_18_SRC = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.ui.1.8.
|
18
|
+
JQUERY_UI_18_SRC = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.ui.1.8.5')
|
19
19
|
JQUERY_UI_18_SRC_SCRIPTS = File.join(JQUERY_UI_18_SRC, 'js') + "/*.js"
|
20
20
|
JQUERY_UI_18_SRC_THEMES = File.join(JQUERY_UI_18_SRC, 'themes')
|
21
21
|
JQUERY_UI_18_SRC_TRANSLATIONS = File.join(JQUERY_UI_18_SRC, 'js', 'i18n') #+ "/*.js"
|
@@ -176,7 +176,7 @@ namespace :build do
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
-
# jQuery.UI 1.8.
|
179
|
+
# jQuery.UI 1.8.5
|
180
180
|
|
181
181
|
# Scripts
|
182
182
|
|
@@ -215,15 +215,15 @@ namespace :build do
|
|
215
215
|
'jquery.ui.widget.js'
|
216
216
|
].collect {|filename| File.read(File.join(JQUERY_UI_18_SRC, 'js', filename))}.join "\n\n"
|
217
217
|
|
218
|
-
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.
|
218
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.5.js'), 'w' do |f|
|
219
219
|
f.print concat_files(all_jquery_ui_scripts)
|
220
220
|
end
|
221
|
-
manifest.print "javascript 'jquery-ui-1.8.
|
221
|
+
manifest.print "javascript 'jquery-ui-1.8.5.js'\n"
|
222
222
|
|
223
|
-
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.
|
223
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.5.min.js'), 'w' do |f|
|
224
224
|
f.print compress_js(all_jquery_ui_scripts, "google")
|
225
225
|
end
|
226
|
-
manifest.print "javascript 'jquery-ui-1.8.
|
226
|
+
manifest.print "javascript 'jquery-ui-1.8.5.min.js'\n"
|
227
227
|
|
228
228
|
# jQuery UI locales
|
229
229
|
|
data/lib/jquery.ui.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
JRAILS_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jrailsxx.rake\n# Install with: compass install jquery/jrails . --force\n\n"
|
2
2
|
JRAILS_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jrailsxx.rake\n"
|
3
3
|
AUTOCOMPLETE_FIX = "\n\n/* Fix Autocomplete */\n\n.ui-autocomplete-loading { background: white/*{bgColorLoading}*/ url(images/ui-anim_basic_16x16.gif)/*{bgImgUrlLoading}*/ right/*{bgLoadingXPos}*/ center/*{bgLoadingYPos}*/ no-repeat/*{bgLoadingRepeat}*/; }"
|
4
|
+
WIDGET_BORDER = "\n\n/* Add .ui-widget-border*/\n\n.ui-widget-border { border: 1px solid #aaaaaa/*{borderColorContent}*/; }"
|
4
5
|
|
5
6
|
class JqueryUiTheme
|
6
7
|
|
@@ -23,6 +24,9 @@ class JqueryUiTheme
|
|
23
24
|
@base_theme.sub!(/\/\*\{bgShadowRepeat\}\*\/\; opacity: (\.\d+)\;filter:/, "/*{bgShadowRepeat}*/; opacity: \\1/*{bgShadowOpacity}*/; filter: ")
|
24
25
|
@base_theme.sub!(/\{opacityShadow\}/, '{bgShadowFilter}')
|
25
26
|
|
27
|
+
# addf .ui-widget-border
|
28
|
+
@base_theme += WIDGET_BORDER
|
29
|
+
|
26
30
|
# Fix AutoComplete
|
27
31
|
@base_theme += AUTOCOMPLETE_FIX
|
28
32
|
end
|
@@ -91,7 +95,8 @@ class JqueryUiTheme
|
|
91
95
|
theme = File.read(File.join(dir, @theme_filename))
|
92
96
|
|
93
97
|
# Fix Overlay stuff
|
94
|
-
theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
|
98
|
+
theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
|
99
|
+
theme += WIDGET_BORDER
|
95
100
|
theme += AUTOCOMPLETE_FIX
|
96
101
|
end
|
97
102
|
FileUtils.mkdir_p stylesheets
|
@@ -1,38 +1,38 @@
|
|
1
|
-
# ====
|
2
|
-
# The following options can be changed by creating an initializer in config/initializers/jrails.rb
|
3
|
-
# ====
|
4
|
-
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR
|
5
|
-
# jRails uses jQuery.noConflict() by default
|
6
|
-
# to use the regular jQuery syntax, use:
|
7
|
-
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$'
|
8
|
-
ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery'
|
9
|
-
|
10
|
-
# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION
|
11
|
-
# Set this to disable forgery protection in ajax calls
|
12
|
-
# This is handy if you want to use caching with ajax by injecting the forgery token via another means
|
13
|
-
# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery
|
14
|
-
# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true
|
15
|
-
# ====
|
16
|
-
|
17
|
-
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery-1.4.2.min', 'jquery-ui-1.8.
|
18
|
-
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
|
19
|
-
|
20
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery_142 => ['jquery-1.4.2.min', 'jquery-ui-1.8.
|
21
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jrails => ['jrails.min']
|
22
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jhaml => ['jquery.haml.min']
|
23
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :haml_js => ['haml-js.min']
|
24
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu => ['compiled/jquery.ui/contextMenu.css']
|
25
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min']
|
26
|
-
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :farbtastic => ['compiled/jquery.ui/farbtastic.css']
|
27
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :farbtastic => ['jquery.farbtastic.min']
|
28
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :hotkeys => ['jquery.hotkeys.min']
|
29
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min']
|
30
|
-
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min']
|
31
|
-
|
32
|
-
require 'jquery/jrails'
|
33
|
-
require 'jquery/jquery_selector_assertions' if RAILS_ENV == 'test'
|
34
|
-
require 'jquery/jquery_auto_complete'
|
35
|
-
require 'jquery/flash_messages'
|
36
|
-
|
37
|
-
ActionController::Base.send(:include, FlashMessages::ControllerMethods)
|
38
|
-
ActionView::Base.send(:include, FlashMessages::Display)
|
1
|
+
# ====
|
2
|
+
# The following options can be changed by creating an initializer in config/initializers/jrails.rb
|
3
|
+
# ====
|
4
|
+
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR
|
5
|
+
# jRails uses jQuery.noConflict() by default
|
6
|
+
# to use the regular jQuery syntax, use:
|
7
|
+
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$'
|
8
|
+
ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery'
|
9
|
+
|
10
|
+
# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION
|
11
|
+
# Set this to disable forgery protection in ajax calls
|
12
|
+
# This is handy if you want to use caching with ajax by injecting the forgery token via another means
|
13
|
+
# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery
|
14
|
+
# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true
|
15
|
+
# ====
|
16
|
+
|
17
|
+
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery-1.4.2.min', 'jquery-ui-1.8.5.min', 'jrails.min']
|
18
|
+
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
|
19
|
+
|
20
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery_142 => ['jquery-1.4.2.min', 'jquery-ui-1.8.5.min']
|
21
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jrails => ['jrails.min']
|
22
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jhaml => ['jquery.haml.min']
|
23
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :haml_js => ['haml-js.min']
|
24
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu => ['compiled/jquery.ui/contextMenu.css']
|
25
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min']
|
26
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :farbtastic => ['compiled/jquery.ui/farbtastic.css']
|
27
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :farbtastic => ['jquery.farbtastic.min']
|
28
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :hotkeys => ['jquery.hotkeys.min']
|
29
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min']
|
30
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min']
|
31
|
+
|
32
|
+
require 'jquery/jrails'
|
33
|
+
require 'jquery/jquery_selector_assertions' if RAILS_ENV == 'test'
|
34
|
+
require 'jquery/jquery_auto_complete'
|
35
|
+
require 'jquery/flash_messages'
|
36
|
+
|
37
|
+
ActionController::Base.send(:include, FlashMessages::ControllerMethods)
|
38
|
+
ActionView::Base.send(:include, FlashMessages::Display)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
2
|
+
/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */
|
3
|
+
jQuery(function($){
|
4
|
+
$.datepicker.regional['kz'] = {
|
5
|
+
closeText: 'Жабу',
|
6
|
+
prevText: '<Алдыңғы',
|
7
|
+
nextText: 'Келесі>',
|
8
|
+
currentText: 'Бүгін',
|
9
|
+
monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым',
|
10
|
+
'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'],
|
11
|
+
monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау',
|
12
|
+
'Шіл','Там','Қыр','Қаз','Қар','Жел'],
|
13
|
+
dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'],
|
14
|
+
dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'],
|
15
|
+
dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'],
|
16
|
+
weekHeader: 'Не',
|
17
|
+
dateFormat: 'dd.mm.yy',
|
18
|
+
firstDay: 1,
|
19
|
+
isRTL: false,
|
20
|
+
showMonthAfterYear: false,
|
21
|
+
yearSuffix: ''};
|
22
|
+
$.datepicker.setDefaults($.datepicker.regional['kz']);
|
23
|
+
});
|
@@ -0,0 +1,4 @@
|
|
1
|
+
jQuery(function(a){a.datepicker.regional.kz={closeText:"\u0416\u0430\u0431\u0443",prevText:"<\u0410\u043b\u0434\u044b\u04a3\u0493\u044b",nextText:"\u041a\u0435\u043b\u0435\u0441\u0456>",currentText:"\u0411\u04af\u0433\u0456\u043d",monthNames:["\u049a\u0430\u04a3\u0442\u0430\u0440","\u0410\u049b\u043f\u0430\u043d","\u041d\u0430\u0443\u0440\u044b\u0437","\u0421\u04d9\u0443\u0456\u0440","\u041c\u0430\u043c\u044b\u0440","\u041c\u0430\u0443\u0441\u044b\u043c","\u0428\u0456\u043b\u0434\u0435",
|
2
|
+
"\u0422\u0430\u043c\u044b\u0437","\u049a\u044b\u0440\u043a\u04af\u0439\u0435\u043a","\u049a\u0430\u0437\u0430\u043d","\u049a\u0430\u0440\u0430\u0448\u0430","\u0416\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"],monthNamesShort:["\u049a\u0430\u04a3","\u0410\u049b\u043f","\u041d\u0430\u0443","\u0421\u04d9\u0443","\u041c\u0430\u043c","\u041c\u0430\u0443","\u0428\u0456\u043b","\u0422\u0430\u043c","\u049a\u044b\u0440","\u049a\u0430\u0437","\u049a\u0430\u0440","\u0416\u0435\u043b"],dayNames:["\u0416\u0435\u043a\u0441\u0435\u043d\u0431\u0456",
|
3
|
+
"\u0414\u04af\u0439\u0441\u0435\u043d\u0431\u0456","\u0421\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0421\u04d9\u0440\u0441\u0435\u043d\u0431\u0456","\u0411\u0435\u0439\u0441\u0435\u043d\u0431\u0456","\u0416\u04b1\u043c\u0430","\u0421\u0435\u043d\u0431\u0456"],dayNamesShort:["\u0436\u043a\u0441","\u0434\u0441\u043d","\u0441\u0441\u043d","\u0441\u0440\u0441","\u0431\u0441\u043d","\u0436\u043c\u0430","\u0441\u043d\u0431"],dayNamesMin:["\u0416\u043a","\u0414\u0441","\u0421\u0441","\u0421\u0440",
|
4
|
+
"\u0411\u0441","\u0416\u043c","\u0421\u043d"],weekHeader:"\u041d\u0435",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.kz)});
|