backgridjs-rails 0.2.6
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.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +25 -0
- data/Rakefile +27 -0
- data/lib/backgridjs-rails.rb +5 -0
- data/lib/backgridjs-rails.rb~ +2 -0
- data/lib/backgridjs-rails/engine.rb +8 -0
- data/lib/backgridjs-rails/engine.rb~ +8 -0
- data/lib/backgridjs-rails/version.rb +3 -0
- data/lib/backgridjs-rails/version.rb~ +3 -0
- data/lib/tasks/backgridjs-rails_tasks.rake +4 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-filter.js +365 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-moment-cell.js +175 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-paginator.js +198 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-select-all.js +215 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-select2-cell.js +121 -0
- data/vendor/assets/javascripts/backgrid-extensions/backgrid-text-cell.js +159 -0
- data/vendor/assets/javascripts/backgrid.js +2531 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-filter.css +19 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-moment-cell.css +14 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-paginator.css +58 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-select-all.css +11 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-select2-cell.css +19 -0
- data/vendor/assets/stylesheets/backgrid-extensions/backgrid-text-cell.css +31 -0
- data/vendor/assets/stylesheets/backgrid.css +215 -0
- metadata +82 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
backgrid-filter
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.backgrid-filter .close {
|
10
|
+
display: inline-block;
|
11
|
+
float: none;
|
12
|
+
width: 20px;
|
13
|
+
height: 20px;
|
14
|
+
margin-top: -4px;
|
15
|
+
font-size: 20px;
|
16
|
+
line-height: 20px;
|
17
|
+
text-align: center;
|
18
|
+
vertical-align: text-top;
|
19
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/*
|
2
|
+
backgrid-moment-cell
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
.backgrid .moment-cell {
|
9
|
+
text-align: right;
|
10
|
+
}
|
11
|
+
|
12
|
+
.backgrid .moment-cell.editor input[type=text] {
|
13
|
+
text-align: right;
|
14
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/*
|
2
|
+
backgrid-paginator
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.backgrid-paginator {
|
10
|
+
text-align: center;
|
11
|
+
-webkit-box-sizing: border-box;
|
12
|
+
-moz-box-sizing: border-box;
|
13
|
+
box-sizing: border-box;
|
14
|
+
border-top: none;
|
15
|
+
-webkit-border-radius: 0 0 4px 4px;
|
16
|
+
-moz-border-radius: 0 0 4px 4px;
|
17
|
+
border-radius: 0 0 4px 4px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.backgrid-paginator ul {
|
21
|
+
display: inline-block;
|
22
|
+
*display: inline;
|
23
|
+
margin: 5px 0;
|
24
|
+
*zoom: 1;
|
25
|
+
}
|
26
|
+
|
27
|
+
.backgrid-paginator ul > li {
|
28
|
+
display: inline;
|
29
|
+
}
|
30
|
+
|
31
|
+
.backgrid-paginator ul > li > a,
|
32
|
+
.backgrid-paginator ul > li > span {
|
33
|
+
float: left;
|
34
|
+
width: 30px;
|
35
|
+
height: 30px;
|
36
|
+
padding: 0;
|
37
|
+
line-height: 30px;
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
.backgrid-paginator ul > li > a:hover,
|
42
|
+
.backgrid-paginator ul > .active > a,
|
43
|
+
.backgrid-paginator ul > .active > span {
|
44
|
+
background-color: #f5f5f5;
|
45
|
+
}
|
46
|
+
|
47
|
+
.backgrid-paginator ul > .active > a,
|
48
|
+
.backgrid-paginator ul > .active > span {
|
49
|
+
color: #999999;
|
50
|
+
cursor: default;
|
51
|
+
}
|
52
|
+
|
53
|
+
.backgrid-paginator ul > .disabled > span,
|
54
|
+
.backgrid-paginator ul > .disabled > a,
|
55
|
+
.backgrid-paginator ul > .disabled > a:hover {
|
56
|
+
color: #999999;
|
57
|
+
cursor: default;
|
58
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
backgrid-select2-cell
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.backgrid .select2-cell {
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
|
13
|
+
.backgrid .select2-cell.editor {
|
14
|
+
padding: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
.backgrid .select2-cell.editor .select2-container {
|
18
|
+
width: 100%;
|
19
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/*
|
2
|
+
backgrid-text-cell
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.backgrid .text-cell {
|
10
|
+
max-width: 150px;
|
11
|
+
overflow: hidden;
|
12
|
+
text-align: left;
|
13
|
+
-o-text-overflow: ellipsis;
|
14
|
+
text-overflow: ellipsis;
|
15
|
+
white-space: nowrap;
|
16
|
+
}
|
17
|
+
|
18
|
+
.backgrid .text-cell.editor {
|
19
|
+
max-width: 100%;
|
20
|
+
height: 28px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.backgrid .text-cell.editor * {
|
24
|
+
-webkit-box-sizing: border-box;
|
25
|
+
-moz-box-sizing: border-box;
|
26
|
+
box-sizing: border-box;
|
27
|
+
}
|
28
|
+
|
29
|
+
.backgrid .text-cell.editor textarea {
|
30
|
+
width: 100%;
|
31
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
/*
|
2
|
+
backgrid
|
3
|
+
http://github.com/wyuenho/backgrid
|
4
|
+
|
5
|
+
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
|
6
|
+
Licensed under the MIT @license.
|
7
|
+
*/
|
8
|
+
|
9
|
+
.backgrid-container {
|
10
|
+
position: relative;
|
11
|
+
display: block;
|
12
|
+
width: 100%;
|
13
|
+
height: 465px;
|
14
|
+
padding: 0;
|
15
|
+
overflow: auto;
|
16
|
+
border: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.backgrid {
|
20
|
+
width: 100%;
|
21
|
+
max-width: 100%;
|
22
|
+
background-color: transparent;
|
23
|
+
border: 1px solid #DDD;
|
24
|
+
border-collapse: collapse;
|
25
|
+
-webkit-border-radius: 4px;
|
26
|
+
-moz-border-radius: 4px;
|
27
|
+
border-radius: 4px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.backgrid th,
|
31
|
+
.backgrid td {
|
32
|
+
height: 20px;
|
33
|
+
max-width: 250px;
|
34
|
+
padding: 4px 5px;
|
35
|
+
overflow: hidden;
|
36
|
+
line-height: 20px;
|
37
|
+
text-align: left;
|
38
|
+
text-overflow: ellipsis;
|
39
|
+
white-space: nowrap;
|
40
|
+
vertical-align: middle;
|
41
|
+
border: 1px solid #DDD;
|
42
|
+
}
|
43
|
+
|
44
|
+
.backgrid th {
|
45
|
+
font-weight: bold;
|
46
|
+
cursor: pointer;
|
47
|
+
}
|
48
|
+
|
49
|
+
.backgrid th a {
|
50
|
+
white-space: nowrap;
|
51
|
+
}
|
52
|
+
|
53
|
+
.backgrid thead th {
|
54
|
+
vertical-align: bottom;
|
55
|
+
background-color: #f9f9f9;
|
56
|
+
}
|
57
|
+
|
58
|
+
.backgrid.backgrid-striped tbody tr:nth-child(odd) td,
|
59
|
+
.backgrid.backgrid-striped tbody tr:nth-child(odd) th {
|
60
|
+
background-color: #f9f9f9;
|
61
|
+
}
|
62
|
+
|
63
|
+
.backgrid tbody tr.empty {
|
64
|
+
font-style: italic;
|
65
|
+
color: gray;
|
66
|
+
}
|
67
|
+
|
68
|
+
.backgrid tbody tr.empty td {
|
69
|
+
text-align: center;
|
70
|
+
}
|
71
|
+
|
72
|
+
.backgrid td.editor,
|
73
|
+
.backgrid tbody tr:nth-child(odd) td.editor {
|
74
|
+
background-color: rgba(82, 168, 236, 0.1);
|
75
|
+
outline: 1px solid rgba(82, 168, 236, 0.8);
|
76
|
+
outline-offset: -1px;
|
77
|
+
-webkit-box-sizing: border-box;
|
78
|
+
-moz-box-sizing: border-box;
|
79
|
+
box-sizing: border-box;
|
80
|
+
-webkit-transition-duration: 200ms;
|
81
|
+
-moz-transition-duration: 200ms;
|
82
|
+
-o-transition-duration: 200ms;
|
83
|
+
transition-duration: 200ms;
|
84
|
+
-webkit-transition-property: width, outline, background-color;
|
85
|
+
-moz-transition-property: width, outline, background-color;
|
86
|
+
-o-transition-property: width, outline, background-color;
|
87
|
+
transition-property: width, outline, background-color;
|
88
|
+
-webkit-transition-timing-function: ease-in-out;
|
89
|
+
-moz-transition-timing-function: ease-in-out;
|
90
|
+
-o-transition-timing-function: ease-in-out;
|
91
|
+
transition-timing-function: ease-in-out;
|
92
|
+
}
|
93
|
+
|
94
|
+
.backgrid td.editor input[type=text] {
|
95
|
+
display: block;
|
96
|
+
width: 100%;
|
97
|
+
height: 100%;
|
98
|
+
padding: 0;
|
99
|
+
margin: 0;
|
100
|
+
background-color: transparent;
|
101
|
+
border: 0;
|
102
|
+
outline: 0;
|
103
|
+
-webkit-box-shadow: none;
|
104
|
+
-moz-box-shadow: none;
|
105
|
+
box-shadow: none;
|
106
|
+
-webkit-box-sizing: border-box;
|
107
|
+
-moz-box-sizing: border-box;
|
108
|
+
box-sizing: border-box;
|
109
|
+
-webkit-appearance: none;
|
110
|
+
-moz-appearance: none;
|
111
|
+
}
|
112
|
+
|
113
|
+
.backgrid td.error,
|
114
|
+
.backgrid tbody tr:nth-child(odd) td.error {
|
115
|
+
background-color: rgba(255, 210, 77, 0.1);
|
116
|
+
outline: 1px solid #ffd24d;
|
117
|
+
}
|
118
|
+
|
119
|
+
.backgrid td.editor :focus,
|
120
|
+
.backgrid th.editor :focus {
|
121
|
+
outline: 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
.backgrid .sort-caret {
|
125
|
+
display: inline-block;
|
126
|
+
width: 0;
|
127
|
+
height: 0;
|
128
|
+
margin-left: 0.3em;
|
129
|
+
border: 0;
|
130
|
+
content: "";
|
131
|
+
}
|
132
|
+
|
133
|
+
.backgrid .ascending .sort-caret {
|
134
|
+
vertical-align: baseline;
|
135
|
+
border-top: none;
|
136
|
+
border-right: 4px solid transparent;
|
137
|
+
border-bottom: 4px solid #000000;
|
138
|
+
border-left: 4px solid transparent;
|
139
|
+
}
|
140
|
+
|
141
|
+
.backgrid .descending .sort-caret {
|
142
|
+
vertical-align: super;
|
143
|
+
border-top: 4px solid #000000;
|
144
|
+
border-right: 4px solid transparent;
|
145
|
+
border-bottom: none;
|
146
|
+
border-left: 4px solid transparent;
|
147
|
+
}
|
148
|
+
|
149
|
+
.backgrid .string-cell,
|
150
|
+
.backgrid .uri-cell,
|
151
|
+
.backgrid .email-cell,
|
152
|
+
.backgrid .string-cell.editor input[type=text],
|
153
|
+
.backgrid .uri-cell.editor input[type=text],
|
154
|
+
.backgrid .email-cell.editor input[type=text] {
|
155
|
+
text-align: left;
|
156
|
+
}
|
157
|
+
|
158
|
+
.backgrid .date-cell,
|
159
|
+
.backgrid .time-cell,
|
160
|
+
.backgrid .datetime-cell,
|
161
|
+
.backgrid .number-cell,
|
162
|
+
.backgrid .integer-cell,
|
163
|
+
.backgrid .date-cell.editor input[type=text],
|
164
|
+
.backgrid .time-cell.editor input[type=text],
|
165
|
+
.backgrid .datetime-cell.editor input[type=text],
|
166
|
+
.backgrid .number-cell.editor input[type=text],
|
167
|
+
.backgrid .integer-cell.editor input[type=text] {
|
168
|
+
text-align: right;
|
169
|
+
}
|
170
|
+
|
171
|
+
.backgrid .boolean-cell,
|
172
|
+
.backgrid .boolean-cell.editor input[type=checkbox] {
|
173
|
+
text-align: center;
|
174
|
+
}
|
175
|
+
|
176
|
+
.backgrid .select-cell {
|
177
|
+
text-align: center;
|
178
|
+
}
|
179
|
+
|
180
|
+
.backgrid .select-cell.editor {
|
181
|
+
padding: 0;
|
182
|
+
}
|
183
|
+
|
184
|
+
.backgrid .select-cell.editor select {
|
185
|
+
display: block;
|
186
|
+
width: 100%;
|
187
|
+
height: 28px;
|
188
|
+
padding: 4px 5px;
|
189
|
+
margin: 0;
|
190
|
+
line-height: 28px;
|
191
|
+
vertical-align: middle;
|
192
|
+
background-color: white;
|
193
|
+
border: 0;
|
194
|
+
outline: 0;
|
195
|
+
-webkit-box-shadow: none;
|
196
|
+
-moz-box-shadow: none;
|
197
|
+
box-shadow: none;
|
198
|
+
-webkit-box-sizing: border-box;
|
199
|
+
-moz-box-sizing: border-box;
|
200
|
+
box-sizing: border-box;
|
201
|
+
}
|
202
|
+
|
203
|
+
.backgrid .select-cell.editor :focus {
|
204
|
+
border: 0;
|
205
|
+
outline: 0;
|
206
|
+
}
|
207
|
+
|
208
|
+
.backgrid .select-cell.editor select::-moz-focus-inner,
|
209
|
+
.backgrid .select-cell.editor optgroup::-moz-focus-inner,
|
210
|
+
.backgrid .select-cell.editor option::-moz-focus-inner,
|
211
|
+
.backgrid .select-cell.editor select::-o-focus-inner,
|
212
|
+
.backgrid .select-cell.editor optgroup::-o-focus-inner,
|
213
|
+
.backgrid .select-cell.editor option::-o-focus-inner {
|
214
|
+
border: 0;
|
215
|
+
}
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: backgridjs-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Beau Trepp
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.13
|
27
|
+
description: Vendors backgridjs into asset pipeline
|
28
|
+
email:
|
29
|
+
- beautrepp@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-filter.js
|
35
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-moment-cell.js
|
36
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-paginator.js
|
37
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-select-all.js
|
38
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-select2-cell.js
|
39
|
+
- vendor/assets/javascripts/backgrid-extensions/backgrid-text-cell.js
|
40
|
+
- vendor/assets/javascripts/backgrid.js
|
41
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-filter.css
|
42
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-moment-cell.css
|
43
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-paginator.css
|
44
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-select-all.css
|
45
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-select2-cell.css
|
46
|
+
- vendor/assets/stylesheets/backgrid-extensions/backgrid-text-cell.css
|
47
|
+
- vendor/assets/stylesheets/backgrid.css
|
48
|
+
- lib/backgridjs-rails/engine.rb
|
49
|
+
- lib/backgridjs-rails/engine.rb~
|
50
|
+
- lib/backgridjs-rails/version.rb
|
51
|
+
- lib/backgridjs-rails/version.rb~
|
52
|
+
- lib/backgridjs-rails.rb
|
53
|
+
- lib/backgridjs-rails.rb~
|
54
|
+
- lib/tasks/backgridjs-rails_tasks.rake
|
55
|
+
- MIT-LICENSE
|
56
|
+
- Rakefile
|
57
|
+
- README.rdoc
|
58
|
+
homepage: https://github.com/btrepp/backgridjs-rails
|
59
|
+
licenses: []
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.0.3
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: Vendors backgridjs into asset pipeline
|
81
|
+
test_files: []
|
82
|
+
has_rdoc:
|