compass-jquery-plugin 0.3.0.beta.14 → 0.3.0.beta.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/.loadpath +5 -5
  2. data/.project +18 -18
  3. data/README.textile +19 -1
  4. data/VERSION.yml +1 -1
  5. data/compass-jquery-plugin.gemspec +42 -7
  6. data/gem_tasks/jrails.rake +1 -1
  7. data/gem_tasks/jstree.rake +96 -0
  8. data/gem_tasks/rubygems.rake +1 -1
  9. data/lib/jquery/flash_messages.rb +45 -45
  10. data/lib/jquery/jstree/jstree.rb +116 -0
  11. data/lib/jquery/jstree.rb +7 -0
  12. data/templates/dynatree/jquery.ui/dynatree.aero/ltWait.gif +0 -0
  13. data/templates/dynatree/manifest.rb +146 -147
  14. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
  15. data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
  16. data/templates/jqgrid/jquery.jqGrid.js +11565 -11572
  17. data/templates/jqgrid/jquery.jqGrid.min.js +472 -473
  18. data/templates/jqgrid/manifest.rb +70 -72
  19. data/templates/jqical/jquery.jqical.js +7907 -7321
  20. data/templates/jqical/jquery.jqical.min.js +209 -185
  21. data/templates/jqical/jquery.ui/jqical.scss +940 -941
  22. data/templates/jrails/config/initializers/jrails.rb +1 -0
  23. data/templates/jrails/jquery.hotkeys.js +99 -0
  24. data/templates/jrails/jquery.hotkeys.min.js +3 -0
  25. data/templates/jrails/manifest.rb +2 -0
  26. data/templates/jstree/config/initializers/jstree.rb +8 -0
  27. data/templates/jstree/jquery.jstree.js +3664 -0
  28. data/templates/jstree/jquery.jstree.min.js +174 -0
  29. data/templates/jstree/jquery.ui/jstree.aero/clicked.png +0 -0
  30. data/templates/jstree/jquery.ui/jstree.aero/d.gif +0 -0
  31. data/templates/jstree/jquery.ui/jstree.aero/d.png +0 -0
  32. data/templates/jstree/jquery.ui/jstree.aero/hovered.png +0 -0
  33. data/templates/jstree/jquery.ui/jstree.aero/throbber.gif +0 -0
  34. data/templates/jstree/jquery.ui/jstree.aero.scss +209 -0
  35. data/templates/jstree/jquery.ui/jstree.aqua/clicked.png +0 -0
  36. data/templates/jstree/jquery.ui/jstree.aqua/d.gif +0 -0
  37. data/templates/jstree/jquery.ui/jstree.aqua/d.png +0 -0
  38. data/templates/jstree/jquery.ui/jstree.aqua/hovered.png +0 -0
  39. data/templates/jstree/jquery.ui/jstree.aqua/throbber.gif +0 -0
  40. data/templates/jstree/jquery.ui/jstree.aqua.scss +214 -0
  41. data/templates/jstree/jquery.ui/jstree.chrystal/d.gif +0 -0
  42. data/templates/jstree/jquery.ui/jstree.chrystal/d.png +0 -0
  43. data/templates/jstree/jquery.ui/jstree.chrystal/throbber.gif +0 -0
  44. data/templates/jstree/jquery.ui/jstree.chrystal.scss +205 -0
  45. data/templates/jstree/jquery.ui/jstree.classic/d.png +0 -0
  46. data/templates/jstree/jquery.ui/jstree.classic/dot_for_ie.gif +0 -0
  47. data/templates/jstree/jquery.ui/jstree.classic/throbber.gif +0 -0
  48. data/templates/jstree/jquery.ui/jstree.classic.scss +148 -0
  49. data/templates/jstree/jquery.ui/jstree.default/d.gif +0 -0
  50. data/templates/jstree/jquery.ui/jstree.default/d.png +0 -0
  51. data/templates/jstree/jquery.ui/jstree.default/throbber.gif +0 -0
  52. data/templates/jstree/jquery.ui/jstree.default-rtl/d.gif +0 -0
  53. data/templates/jstree/jquery.ui/jstree.default-rtl/d.png +0 -0
  54. data/templates/jstree/jquery.ui/jstree.default-rtl/dots.gif +0 -0
  55. data/templates/jstree/jquery.ui/jstree.default-rtl/throbber.gif +0 -0
  56. data/templates/jstree/jquery.ui/jstree.default-rtl.scss +228 -0
  57. data/templates/jstree/jquery.ui/jstree.default.scss +189 -0
  58. data/templates/jstree/manifest.rb +35 -0
  59. metadata +44 -9
  60. data/templates/dynatree/jquery.ui/dynatree.aero/ltWait.ani +0 -0
  61. data/templates/jqgrid/i18n/jqgrid/locale-dk.js +0 -128
  62. data/templates/jqgrid/i18n/jqgrid/locale-dk.min.js +0 -6
  63. data/templates/jqgrid/i18n/jqgrid/locale-sp.js +0 -128
  64. data/templates/jqgrid/i18n/jqgrid/locale-sp.min.js +0 -7
@@ -24,6 +24,7 @@ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu =
24
24
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min']
25
25
  ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :farbtastic => ['compiled/jquery.ui/farbtastic.css']
26
26
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :farbtastic => ['jquery.farbtastic.min']
27
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :hotkeys => ['jquery.hotkeys.min']
27
28
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min']
28
29
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min']
29
30
 
@@ -0,0 +1,99 @@
1
+ /*
2
+ * jQuery Hotkeys Plugin
3
+ * Copyright 2010, John Resig
4
+ * Dual licensed under the MIT or GPL Version 2 licenses.
5
+ *
6
+ * Based upon the plugin by Tzury Bar Yochay:
7
+ * http://github.com/tzuryby/hotkeys
8
+ *
9
+ * Original idea by:
10
+ * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
11
+ */
12
+
13
+ (function(jQuery){
14
+
15
+ jQuery.hotkeys = {
16
+ version: "0.8",
17
+
18
+ specialKeys: {
19
+ 8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
20
+ 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
21
+ 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",
22
+ 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
23
+ 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",
24
+ 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",
25
+ 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta"
26
+ },
27
+
28
+ shiftNums: {
29
+ "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
30
+ "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<",
31
+ ".": ">", "/": "?", "\\": "|"
32
+ }
33
+ };
34
+
35
+ function keyHandler( handleObj ) {
36
+ // Only care when a possible input has been specified
37
+ if ( typeof handleObj.data !== "string" ) {
38
+ return;
39
+ }
40
+
41
+ var origHandler = handleObj.handler,
42
+ keys = handleObj.data.toLowerCase().split(" ");
43
+
44
+ handleObj.handler = function( event ) {
45
+ // Don't fire in text-accepting inputs that we didn't directly bind to
46
+ if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
47
+ event.target.type === "text") ) {
48
+ return;
49
+ }
50
+
51
+ // Keypress represents characters, not special keys
52
+ var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ],
53
+ character = String.fromCharCode( event.which ).toLowerCase(),
54
+ key, modif = "", possible = {};
55
+
56
+ // check combinations (alt|ctrl|shift+anything)
57
+ if ( event.altKey && special !== "alt" ) {
58
+ modif += "alt+";
59
+ }
60
+
61
+ if ( event.ctrlKey && special !== "ctrl" ) {
62
+ modif += "ctrl+";
63
+ }
64
+
65
+ // TODO: Need to make sure this works consistently across platforms
66
+ if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
67
+ modif += "meta+";
68
+ }
69
+
70
+ if ( event.shiftKey && special !== "shift" ) {
71
+ modif += "shift+";
72
+ }
73
+
74
+ if ( special ) {
75
+ possible[ modif + special ] = true;
76
+
77
+ } else {
78
+ possible[ modif + character ] = true;
79
+ possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;
80
+
81
+ // "$" can be triggered as "Shift+4" or "Shift+$" or just "$"
82
+ if ( modif === "shift+" ) {
83
+ possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;
84
+ }
85
+ }
86
+
87
+ for ( var i = 0, l = keys.length; i < l; i++ ) {
88
+ if ( possible[ keys[i] ] ) {
89
+ return origHandler.apply( this, arguments );
90
+ }
91
+ }
92
+ };
93
+ }
94
+
95
+ jQuery.each([ "keydown", "keyup", "keypress" ], function() {
96
+ jQuery.event.special[ this ] = { add: keyHandler };
97
+ });
98
+
99
+ })( jQuery );
@@ -0,0 +1,3 @@
1
+ (function(d){function i(g){if(typeof g.data==="string"){var j=g.handler,h=g.data.toLowerCase().split(" ");g.handler=function(a){if(!(this!==a.target&&(/textarea|select/i.test(a.target.nodeName)||a.target.type==="text"))){var b=a.type!=="keypress"&&d.hotkeys.specialKeys[a.which],e=String.fromCharCode(a.which).toLowerCase(),c="",f={};if(a.altKey&&b!=="alt")c+="alt+";if(a.ctrlKey&&b!=="ctrl")c+="ctrl+";if(a.metaKey&&!a.ctrlKey&&b!=="meta")c+="meta+";if(a.shiftKey&&b!=="shift")c+="shift+";if(b)f[c+b]=
2
+ true;else{f[c+e]=true;f[c+d.hotkeys.shiftNums[e]]=true;if(c==="shift+")f[d.hotkeys.shiftNums[e]]=true}b=0;for(e=h.length;b<e;b++)if(f[h[b]])return j.apply(this,arguments)}}}}d.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",
3
+ 106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};d.each(["keydown","keyup","keypress"],function(){d.event.special[this]={add:i}})})(jQuery);
@@ -25,6 +25,8 @@ javascript 'jquery.contextMenu.min.js'
25
25
  stylesheet 'jquery.ui/farbtastic.scss', :media => 'screen, projection'
26
26
  javascript 'jquery.farbtastic.js'
27
27
  javascript 'jquery.farbtastic.min.js'
28
+ javascript 'jquery.hotkeys.js'
29
+ javascript 'jquery.hotkeys.min.js'
28
30
  javascript 'jquery.metadata.js'
29
31
  javascript 'jquery.metadata.min.js'
30
32
  javascript 'jquery.pngFix.js'
@@ -0,0 +1,8 @@
1
+ require 'jquery/jstree'
2
+
3
+ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_apple => ['compiled/jquery.ui/jstree.apple.css']
4
+ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_classic => ['compiled/jquery.ui/jstree.classic.css']
5
+ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_default => ['compiled/jquery.ui/jstree.default.css']
6
+ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_default_rtl => ['compiled/jquery.ui/jstree.default-rtl.css']
7
+
8
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jstree => ['jquery.jstree.min', 'jquery.hotkeys.min']