trln-chosen-rails 1.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +19 -0
- data/README.md +152 -0
- data/Rakefile +16 -0
- data/lib/chosen-rails.rb +15 -0
- data/lib/chosen-rails/engine.rb +13 -0
- data/lib/chosen-rails/engine3.rb +11 -0
- data/lib/chosen-rails/railtie.rb +6 -0
- data/lib/chosen-rails/rspec.rb +93 -0
- data/lib/chosen-rails/source_file.rb +75 -0
- data/lib/chosen-rails/tasks.rake +11 -0
- data/lib/chosen-rails/version.rb +6 -0
- data/trln-chosen-rails.gemspec +26 -0
- data/vendor/assets/images/chosen-sprite.png +0 -0
- data/vendor/assets/images/chosen-sprite@2x.png +0 -0
- data/vendor/assets/javascripts/chosen-jquery.js +3 -0
- data/vendor/assets/javascripts/chosen-prototype.js +3 -0
- data/vendor/assets/javascripts/chosen.jquery.coffee +513 -0
- data/vendor/assets/javascripts/chosen.proto.coffee +523 -0
- data/vendor/assets/javascripts/lib/abstract-chosen.coffee +384 -0
- data/vendor/assets/javascripts/lib/select-parser.coffee +56 -0
- data/vendor/assets/stylesheets/chosen-base.scss +427 -0
- data/vendor/assets/stylesheets/chosen-compass.scss +63 -0
- data/vendor/assets/stylesheets/chosen.scss +59 -0
- metadata +155 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
@import "chosen-base";
|
2
|
+
|
3
|
+
@import "compass/css3/box-sizing";
|
4
|
+
@import "compass/css3/images";
|
5
|
+
@import "compass/css3/user-interface";
|
6
|
+
|
7
|
+
//= depend_on_asset "chosen-sprite.png"
|
8
|
+
//= depend_on_asset "chosen-sprite@2x.png"
|
9
|
+
|
10
|
+
$chosen-sprite: image-url('chosen-sprite.png') !default;
|
11
|
+
$chosen-sprite-retina: image-url('chosen-sprite@2x.png') !default;
|
12
|
+
|
13
|
+
.chosen-container {
|
14
|
+
@include user-select(none);
|
15
|
+
* {
|
16
|
+
@include box-sizing(border-box);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.chosen-container-single{
|
21
|
+
.chosen-single {
|
22
|
+
@include background(linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%));
|
23
|
+
}
|
24
|
+
.chosen-search {
|
25
|
+
@include background($chosen-sprite no-repeat 100% -20px);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.chosen-container .chosen-results {
|
30
|
+
li {
|
31
|
+
&.highlighted {
|
32
|
+
@include background-image(linear-gradient(#3875d7 20%, #2a62bc 90%));
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.chosen-container-multi{
|
38
|
+
.chosen-choices {
|
39
|
+
@include background-image(linear-gradient(#eee 1%, #fff 15%));
|
40
|
+
}
|
41
|
+
.chosen-choices li {
|
42
|
+
&.search-choice {
|
43
|
+
@include background-image(linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%));
|
44
|
+
}
|
45
|
+
&.search-choice-disabled {
|
46
|
+
@include background-image(linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.chosen-container-active{
|
52
|
+
&.chosen-with-drop{
|
53
|
+
.chosen-single {
|
54
|
+
@include background-image(linear-gradient(#eee 20%, #fff 80%));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.chosen-rtl {
|
60
|
+
.chosen-search input[type="text"] {
|
61
|
+
@include background($chosen-sprite no-repeat -30px -20px);
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@import "chosen-base";
|
2
|
+
|
3
|
+
//= depend_on_asset "chosen-sprite.png"
|
4
|
+
//= depend_on_asset "chosen-sprite@2x.png"
|
5
|
+
|
6
|
+
$chosen-sprite: image-url('chosen-sprite.png') !default;
|
7
|
+
$chosen-sprite-retina: image-url('chosen-sprite@2x.png') !default;
|
8
|
+
|
9
|
+
.chosen-container {
|
10
|
+
user-select: none;
|
11
|
+
* {
|
12
|
+
box-sizing: border-box;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.chosen-container-single {
|
17
|
+
.chosen-single {
|
18
|
+
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
19
|
+
}
|
20
|
+
.chosen-search {
|
21
|
+
background: $chosen-sprite no-repeat 100% -20px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.chosen-container .chosen-results {
|
26
|
+
li {
|
27
|
+
&.highlighted {
|
28
|
+
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.chosen-container-multi {
|
34
|
+
.chosen-choices {
|
35
|
+
background-image: linear-gradient(#eee 1%, #fff 15%);
|
36
|
+
}
|
37
|
+
.chosen-choices li {
|
38
|
+
&.search-choice {
|
39
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
40
|
+
}
|
41
|
+
&.search-choice-disabled {
|
42
|
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.chosen-container-active {
|
48
|
+
&.chosen-with-drop{
|
49
|
+
.chosen-single {
|
50
|
+
background-image: linear-gradient(#eee 20%, #fff 80%);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.chosen-rtl {
|
56
|
+
.chosen-search input[type="text"] {
|
57
|
+
background: $chosen-sprite no-repeat -30px -20px;
|
58
|
+
}
|
59
|
+
}
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: trln-chosen-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.8.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tse-Ching Ho
|
8
|
+
- Adam Constabaris
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: railties
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '3.0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '3.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: coffee-rails
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.2'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.2'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: sassc-rails
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.1'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '2.1'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rails
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '3.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: thor
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0.14'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.14'
|
98
|
+
description: Chosen is a javascript library of select box enhancer for jQuery and
|
99
|
+
Protoype. This gem integrates Chosen with Rails asset pipeline for ease of use. This
|
100
|
+
version removes the dependency on sass
|
101
|
+
email:
|
102
|
+
- tsechingho@gmail.com
|
103
|
+
executables: []
|
104
|
+
extensions: []
|
105
|
+
extra_rdoc_files: []
|
106
|
+
files:
|
107
|
+
- ".gitignore"
|
108
|
+
- Gemfile
|
109
|
+
- LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- lib/chosen-rails.rb
|
113
|
+
- lib/chosen-rails/engine.rb
|
114
|
+
- lib/chosen-rails/engine3.rb
|
115
|
+
- lib/chosen-rails/railtie.rb
|
116
|
+
- lib/chosen-rails/rspec.rb
|
117
|
+
- lib/chosen-rails/source_file.rb
|
118
|
+
- lib/chosen-rails/tasks.rake
|
119
|
+
- lib/chosen-rails/version.rb
|
120
|
+
- trln-chosen-rails.gemspec
|
121
|
+
- vendor/assets/images/chosen-sprite.png
|
122
|
+
- vendor/assets/images/chosen-sprite@2x.png
|
123
|
+
- vendor/assets/javascripts/chosen-jquery.js
|
124
|
+
- vendor/assets/javascripts/chosen-prototype.js
|
125
|
+
- vendor/assets/javascripts/chosen.jquery.coffee
|
126
|
+
- vendor/assets/javascripts/chosen.proto.coffee
|
127
|
+
- vendor/assets/javascripts/lib/abstract-chosen.coffee
|
128
|
+
- vendor/assets/javascripts/lib/select-parser.coffee
|
129
|
+
- vendor/assets/stylesheets/chosen-base.scss
|
130
|
+
- vendor/assets/stylesheets/chosen-compass.scss
|
131
|
+
- vendor/assets/stylesheets/chosen.scss
|
132
|
+
homepage: https://github.com/trln/chosen-rails
|
133
|
+
licenses:
|
134
|
+
- MIT
|
135
|
+
metadata: {}
|
136
|
+
post_install_message:
|
137
|
+
rdoc_options: []
|
138
|
+
require_paths:
|
139
|
+
- lib
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
requirements: []
|
151
|
+
rubygems_version: 3.0.3
|
152
|
+
signing_key:
|
153
|
+
specification_version: 4
|
154
|
+
summary: Integrate Chosen javascript library with Rails asset pipeline
|
155
|
+
test_files: []
|