compass_formalize 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +5 -4
  4. data/README.md +31 -0
  5. data/compass_formalize.gemspec +2 -2
  6. data/stylesheets/_formalize.sass +226 -170
  7. data/templates/{dojo → common}/button.png +0 -0
  8. data/templates/{dojo → common}/select_arrow.gif +0 -0
  9. data/templates/dojo/dojo.formalize.js +46 -19
  10. data/templates/dojo/dojo.formalize.min.js +1 -1
  11. data/templates/dojo/manifest.rb +5 -0
  12. data/templates/extjs/extjs.formalize.js +48 -25
  13. data/templates/extjs/extjs.formalize.min.js +1 -1
  14. data/templates/jquery-legacy/jquery.formalize.legacy.js +187 -0
  15. data/templates/jquery-legacy/jquery.formalize.legacy.min.js +1 -0
  16. data/templates/jquery-legacy/manifest.rb +42 -0
  17. data/templates/jquery/jquery.formalize.js +42 -20
  18. data/templates/jquery/jquery.formalize.min.js +1 -1
  19. data/templates/jquery/manifest.rb +6 -1
  20. data/templates/mootools/manifest.rb +5 -0
  21. data/templates/mootools/mootools.formalize.js +49 -20
  22. data/templates/mootools/mootools.formalize.min.js +1 -1
  23. data/templates/prototype/manifest.rb +5 -0
  24. data/templates/prototype/prototype.formalize.js +43 -23
  25. data/templates/prototype/prototype.formalize.min.js +1 -1
  26. data/templates/yui/manifest.rb +5 -0
  27. data/templates/yui/yui.formalize.js +57 -43
  28. data/templates/yui/yui.formalize.min.js +1 -1
  29. metadata +11 -40
  30. data/templates/extjs/button.png +0 -0
  31. data/templates/extjs/select_arrow.gif +0 -0
  32. data/templates/jquery/button.png +0 -0
  33. data/templates/jquery/select_arrow.gif +0 -0
  34. data/templates/mootools/button.png +0 -0
  35. data/templates/mootools/select_arrow.gif +0 -0
  36. data/templates/prototype/button.png +0 -0
  37. data/templates/prototype/select_arrow.gif +0 -0
  38. data/templates/yui/button.png +0 -0
  39. data/templates/yui/select_arrow.gif +0 -0
@@ -1 +1 @@
1
- var FORMALIZE=function(a,b,c){var d="placeholder"in b.createElement("input"),e="autofocus"in b.createElement("input"),f="webkitAppearance"in b.createElement("select").style,g=parseInt(Y.UA.ie,10)===6,h=parseInt(Y.UA.ie,10)===7;return{go:function(){for(var a in FORMALIZE.init)FORMALIZE.init[a]()},init:{detect_webkit:function(){!f||Y.one(b.documentElement).addClass("is_webkit")},full_input_size:function(){!!h&&!!Y.all("textarea, input.input_full")&&Y.all("textarea, input.input_full").each(function(a){var b=Y.Node.create('<span class="input_full_wrap"></span>');b.append(a.replace(b))})},ie6_skin_inputs:function(){if(!!g&&!!Y.all("input, select, textarea")){var a=/button|submit|reset/,b=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;Y.all("input").each(function(c){c.getAttribute("type").match(a)?(c.addClass("ie6_button"),c.disabled&&c.addClass("ie6_button_disabled")):c.getAttribute("type").match(b)&&(c.addClass("ie6_input"),c.disabled&&c.addClass("ie6_input_disabled"))}),Y.all("textarea, select").each(function(a){a.disabled&&a.addClass("ie6_input_disabled")})}},autofocus:function(){!e&&!!Y.one("[autofocus]")&&Y.one("[autofocus]").focus()},placeholder:function(){!d&&!!Y.one("[placeholder]")&&(FORMALIZE.misc.add_placeholder(),Y.all("[placeholder]").each(function(a){function d(){(!a.get("value")||a.get("value")===b)&&a.set("value",b).addClass("placeholder_text")}var b=a.getAttribute("placeholder"),c=a.ancestor("form");a.on("focus",function(){a.get("value")===b&&a.set("value","").removeClass("placeholder_text")}),a.on("blur",function(){FORMALIZE.misc.add_placeholder()}),c.on("submit",function(){a.get("value")===b&&a.set("value","").removeClass("placeholder_text")}),c.on("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50)})}))}},misc:{add_placeholder:function(){!d&&!!Y.one("[placeholder]")&&Y.all("[placeholder]").each(function(a){var b=a.getAttribute("placeholder");(!a.get("value")||a.get("value")===b)&&a.set("value",b).addClass("placeholder_text")})}}}}(this,this.document);Y.on("domready",function(){FORMALIZE.go()})
1
+ YUI.add("formalize",function(e){function t(e){var t=document.createElement("b");return t.innerHTML="<!--[if IE "+e+"]><br><![endif]-->",!!t.getElementsByTagName("br").length}var n="placeholder"in document.createElement("input"),r="autofocus"in document.createElement("input"),i=t(6),s=t(7);e.formalize={go:function(){var e,t=this.init;for(e in t)t.hasOwnProperty(e)&&t[e]()},init:{disable_link_button:function(){e.one(document.documentElement).delegate("click",function(e){e.preventDefault()},"a.button_disabled")},full_input_size:function(){if(!s||!e.all("textarea, input.input_full"))return;e.all("textarea, input.input_full").each(function(t){var n=e.Node.create('<span class="input_full_wrap"></span>');n.append(t.replace(n))})},ie6_skin_inputs:function(){if(!i||!e.all("input, select, textarea"))return;var t=/button|submit|reset/,n=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;e.all("input").each(function(e){e.getAttribute("type").match(t)?(e.addClass("ie6_button"),e.disabled&&e.addClass("ie6_button_disabled")):e.getAttribute("type").match(n)&&(e.addClass("ie6_input"),e.disabled&&e.addClass("ie6_input_disabled"))}),e.all("textarea, select").each(function(e){e.disabled&&e.addClass("ie6_input_disabled")})},autofocus:function(){if(r||!e.one("[autofocus]"))return;var t=e.Node.getDOMNode(e.one("[autofocus]"));t.disabled||t.focus()},placeholder:function(){if(n||!e.one("[placeholder]"))return;e.formalize.misc.add_placeholder(),e.all("[placeholder]").each(function(t){function i(){(!t.get("value")||t.get("value")===n)&&t.set("value",n).addClass("placeholder_text")}if(t.getAttribute("type")==="password")return;var n=t.getAttribute("placeholder"),r=t.ancestor("form");t.on("focus",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),t.on("blur",function(){e.formalize.misc.add_placeholder()}),r&&r.on("submit",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),r&&r.on("reset",function(){setTimeout(e.formalize.misc.add_placeholder,50)})})}},misc:{add_placeholder:function(){if(n||!e.one("[placeholder]"))return;e.all("[placeholder]").each(function(e){if(e.getAttribute("type")==="password")return;var t=e.getAttribute("placeholder");(!e.get("value")||e.get("value")===t)&&e.set("value",t).addClass("placeholder_text")})}}}},"1.1",{requires:["node","event"]})
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass_formalize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
4
+ version: 0.0.5
11
5
  platform: ruby
12
6
  authors:
13
7
  - Wynn Netherland
@@ -16,22 +10,15 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2011-07-07 00:00:00 -05:00
20
- default_executable:
13
+ date: 2013-10-09 00:00:00 Z
21
14
  dependencies:
22
15
  - !ruby/object:Gem::Dependency
23
16
  name: compass
24
17
  prerelease: false
25
18
  requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
19
  requirements:
28
20
  - - ">="
29
21
  - !ruby/object:Gem::Version
30
- hash: 55
31
- segments:
32
- - 0
33
- - 10
34
- - 0
35
22
  version: 0.10.0
36
23
  type: :runtime
37
24
  version_requirements: *id001
@@ -53,72 +40,56 @@ files:
53
40
  - compass_formalize.gemspec
54
41
  - lib/compass_formalize.rb
55
42
  - stylesheets/_formalize.sass
56
- - templates/dojo/button.png
43
+ - templates/common/button.png
44
+ - templates/common/select_arrow.gif
57
45
  - templates/dojo/dojo.formalize.js
58
46
  - templates/dojo/dojo.formalize.min.js
59
47
  - templates/dojo/manifest.rb
60
- - templates/dojo/select_arrow.gif
61
- - templates/extjs/button.png
62
48
  - templates/extjs/extjs.formalize.js
63
49
  - templates/extjs/extjs.formalize.min.js
64
50
  - templates/extjs/manifest.rb
65
- - templates/extjs/select_arrow.gif
66
- - templates/jquery/button.png
51
+ - templates/jquery-legacy/jquery.formalize.legacy.js
52
+ - templates/jquery-legacy/jquery.formalize.legacy.min.js
53
+ - templates/jquery-legacy/manifest.rb
67
54
  - templates/jquery/jquery.formalize.js
68
55
  - templates/jquery/jquery.formalize.min.js
69
56
  - templates/jquery/manifest.rb
70
- - templates/jquery/select_arrow.gif
71
- - templates/mootools/button.png
72
57
  - templates/mootools/manifest.rb
73
58
  - templates/mootools/mootools.formalize.js
74
59
  - templates/mootools/mootools.formalize.min.js
75
- - templates/mootools/select_arrow.gif
76
60
  - templates/project/manifest.rb
77
- - templates/prototype/button.png
78
61
  - templates/prototype/manifest.rb
79
62
  - templates/prototype/prototype.formalize.js
80
63
  - templates/prototype/prototype.formalize.min.js
81
- - templates/prototype/select_arrow.gif
82
- - templates/yui/button.png
83
64
  - templates/yui/manifest.rb
84
- - templates/yui/select_arrow.gif
85
65
  - templates/yui/yui.formalize.js
86
66
  - templates/yui/yui.formalize.min.js
87
- has_rdoc: true
88
67
  homepage: http://github.com/pengwynn/compass_formalize
89
68
  licenses: []
90
69
 
70
+ metadata: {}
71
+
91
72
  post_install_message:
92
73
  rdoc_options: []
93
74
 
94
75
  require_paths:
95
76
  - lib
96
77
  required_ruby_version: !ruby/object:Gem::Requirement
97
- none: false
98
78
  requirements:
99
79
  - - ">="
100
80
  - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
81
  version: "0"
105
82
  required_rubygems_version: !ruby/object:Gem::Requirement
106
- none: false
107
83
  requirements:
108
84
  - - ">="
109
85
  - !ruby/object:Gem::Version
110
- hash: 17
111
- segments:
112
- - 1
113
- - 3
114
- - 5
115
86
  version: 1.3.5
116
87
  requirements: []
117
88
 
118
89
  rubyforge_project: compass-960-plugin
119
- rubygems_version: 1.6.2
90
+ rubygems_version: 2.1.5
120
91
  signing_key:
121
- specification_version: 3
92
+ specification_version: 4
122
93
  summary: Compass compatible Sass port of Formalize.
123
94
  test_files: []
124
95
 
Binary file
Binary file
Binary file