slickgrid-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +2 -0
  2. data/README.md +9 -0
  3. data/Rakefile +33 -0
  4. data/slickgrid-rails.gemspec +1 -2
  5. data/vendor/assets/javascripts/slick/controls/columnpicker.css +31 -0
  6. data/vendor/assets/javascripts/slick/controls/columnpicker.js +32 -0
  7. data/vendor/assets/javascripts/slick/controls/pager.css +41 -0
  8. data/vendor/assets/javascripts/slick/controls/pager.js +4 -8
  9. data/vendor/assets/javascripts/slick/core.js +35 -1
  10. data/vendor/assets/javascripts/slick/dataview.js +240 -85
  11. data/vendor/assets/javascripts/slick/editors.js +5 -5
  12. data/vendor/assets/javascripts/slick/formatters.js +5 -1
  13. data/vendor/assets/javascripts/slick/grid.css +157 -0
  14. data/vendor/assets/javascripts/slick/grid.js +770 -269
  15. data/vendor/assets/javascripts/slick/groupitemmetadataprovider.js +15 -10
  16. data/vendor/assets/javascripts/slick/plugins/autotooltips.js +49 -14
  17. data/vendor/assets/javascripts/slick/plugins/cellrangeselector.js +9 -8
  18. data/vendor/assets/javascripts/slick/plugins/cellselectionmodel.js +62 -2
  19. data/vendor/assets/javascripts/slick/plugins/checkboxselectcolumn.js +8 -9
  20. data/vendor/assets/javascripts/slick/plugins/headerbuttons.css +39 -0
  21. data/vendor/assets/javascripts/slick/plugins/headerbuttons.js +177 -0
  22. data/vendor/assets/javascripts/slick/plugins/headermenu.css +59 -0
  23. data/vendor/assets/javascripts/slick/plugins/headermenu.js +275 -0
  24. data/vendor/assets/javascripts/slick/plugins/rowmovemanager.js +17 -11
  25. data/vendor/assets/javascripts/slick/plugins/rowselectionmodel.js +1 -1
  26. data/vendor/assets/javascripts/slick/remotemodel.js +164 -0
  27. data/vendor/assets/stylesheets/slick/controls/columnpicker.css +31 -0
  28. data/vendor/assets/stylesheets/slick/controls/pager.css +41 -0
  29. data/vendor/assets/stylesheets/slick/grid.css +157 -0
  30. data/vendor/assets/stylesheets/slick/plugins/headerbuttons.css +39 -0
  31. data/vendor/assets/stylesheets/slick/plugins/headermenu.css +59 -0
  32. metadata +51 -17
  33. data/.rvmrc +0 -1
  34. data/Gemfile.lock +0 -85
  35. data/fetch.sh +0 -8
  36. data/lib/slickgrid/rails/version.rb +0 -6
@@ -0,0 +1,31 @@
1
+ .slick-columnpicker {
2
+ border: 1px solid #718BB7;
3
+ background: #f0f0f0;
4
+ padding: 6px;
5
+ -moz-box-shadow: 2px 2px 2px silver;
6
+ -webkit-box-shadow: 2px 2px 2px silver;
7
+ box-shadow: 2px 2px 2px silver;
8
+ min-width: 100px;
9
+ cursor: default;
10
+ }
11
+
12
+ .slick-columnpicker li {
13
+ list-style: none;
14
+ margin: 0;
15
+ padding: 0;
16
+ background: none;
17
+ }
18
+
19
+ .slick-columnpicker input {
20
+ margin: 4px;
21
+ }
22
+
23
+ .slick-columnpicker li a {
24
+ display: block;
25
+ padding: 4px;
26
+ font-weight: bold;
27
+ }
28
+
29
+ .slick-columnpicker li a:hover {
30
+ background: white;
31
+ }
@@ -0,0 +1,41 @@
1
+ .slick-pager {
2
+ width: 100%;
3
+ height: 26px;
4
+ border: 1px solid gray;
5
+ border-top: 0;
6
+ background: url('../images/header-columns-bg.gif') repeat-x center bottom;
7
+ vertical-align: middle;
8
+ }
9
+
10
+ .slick-pager .slick-pager-status {
11
+ display: inline-block;
12
+ padding: 6px;
13
+ }
14
+
15
+ .slick-pager .ui-icon-container {
16
+ display: inline-block;
17
+ margin: 2px;
18
+ border-color: gray;
19
+ }
20
+
21
+ .slick-pager .slick-pager-nav {
22
+ display: inline-block;
23
+ float: left;
24
+ padding: 2px;
25
+ }
26
+
27
+ .slick-pager .slick-pager-settings {
28
+ display: block;
29
+ float: right;
30
+ padding: 2px;
31
+ }
32
+
33
+ .slick-pager .slick-pager-settings * {
34
+ vertical-align: middle;
35
+ }
36
+
37
+ .slick-pager .slick-pager-settings a {
38
+ padding: 2px;
39
+ text-decoration: underline;
40
+ cursor: pointer;
41
+ }
@@ -0,0 +1,157 @@
1
+ /*
2
+ IMPORTANT:
3
+ In order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.
4
+ No built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS
5
+ classes should alter those!
6
+ */
7
+
8
+ .slick-header.ui-state-default, .slick-headerrow.ui-state-default {
9
+ width: 100%;
10
+ overflow: hidden;
11
+ border-left: 0px;
12
+ }
13
+
14
+ .slick-header-columns, .slick-headerrow-columns {
15
+ position: relative;
16
+ white-space: nowrap;
17
+ cursor: default;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .slick-header-column.ui-state-default {
22
+ position: relative;
23
+ display: inline-block;
24
+ overflow: hidden;
25
+ -o-text-overflow: ellipsis;
26
+ text-overflow: ellipsis;
27
+ height: 16px;
28
+ line-height: 16px;
29
+ margin: 0;
30
+ padding: 4px;
31
+ border-right: 1px solid silver;
32
+ border-left: 0px;
33
+ border-top: 0px;
34
+ border-bottom: 0px;
35
+ float: left;
36
+ }
37
+
38
+ .slick-headerrow-column.ui-state-default {
39
+ padding: 4px;
40
+ }
41
+
42
+ .slick-header-column-sorted {
43
+ font-style: italic;
44
+ }
45
+
46
+ .slick-sort-indicator {
47
+ display: inline-block;
48
+ width: 8px;
49
+ height: 5px;
50
+ margin-left: 4px;
51
+ margin-top: 6px;
52
+ float: left;
53
+ }
54
+
55
+ .slick-sort-indicator-desc {
56
+ background: url(images/sort-desc.gif);
57
+ }
58
+
59
+ .slick-sort-indicator-asc {
60
+ background: url(images/sort-asc.gif);
61
+ }
62
+
63
+ .slick-resizable-handle {
64
+ position: absolute;
65
+ font-size: 0.1px;
66
+ display: block;
67
+ cursor: col-resize;
68
+ width: 4px;
69
+ right: 0px;
70
+ top: 0;
71
+ height: 100%;
72
+ }
73
+
74
+ .slick-sortable-placeholder {
75
+ background: silver;
76
+ }
77
+
78
+ .grid-canvas {
79
+ position: relative;
80
+ outline: 0;
81
+ }
82
+
83
+ .slick-row.ui-widget-content, .slick-row.ui-state-active {
84
+ position: absolute;
85
+ border: 0px;
86
+ width: 100%;
87
+ }
88
+
89
+ .slick-cell, .slick-headerrow-column {
90
+ position: absolute;
91
+ border: 1px solid transparent;
92
+ border-right: 1px dotted silver;
93
+ border-bottom-color: silver;
94
+ overflow: hidden;
95
+ -o-text-overflow: ellipsis;
96
+ text-overflow: ellipsis;
97
+ vertical-align: middle;
98
+ z-index: 1;
99
+ padding: 1px 2px 2px 1px;
100
+ margin: 0;
101
+ white-space: nowrap;
102
+ cursor: default;
103
+ }
104
+
105
+ .slick-group {
106
+ }
107
+
108
+ .slick-group-toggle {
109
+ display: inline-block;
110
+ }
111
+
112
+ .slick-cell.highlighted {
113
+ background: lightskyblue;
114
+ background: rgba(0, 0, 255, 0.2);
115
+ -webkit-transition: all 0.5s;
116
+ -moz-transition: all 0.5s;
117
+ -o-transition: all 0.5s;
118
+ transition: all 0.5s;
119
+ }
120
+
121
+ .slick-cell.flashing {
122
+ border: 1px solid red !important;
123
+ }
124
+
125
+ .slick-cell.editable {
126
+ z-index: 11;
127
+ overflow: visible;
128
+ background: white;
129
+ border-color: black;
130
+ border-style: solid;
131
+ }
132
+
133
+ .slick-cell:focus {
134
+ outline: none;
135
+ }
136
+
137
+ .slick-reorder-proxy {
138
+ display: inline-block;
139
+ background: blue;
140
+ opacity: 0.15;
141
+ filter: alpha(opacity = 15);
142
+ cursor: move;
143
+ }
144
+
145
+ .slick-reorder-guide {
146
+ display: inline-block;
147
+ height: 2px;
148
+ background: blue;
149
+ opacity: 0.7;
150
+ filter: alpha(opacity = 70);
151
+ }
152
+
153
+ .slick-selection {
154
+ z-index: 10;
155
+ position: absolute;
156
+ border: 2px dashed black;
157
+ }
@@ -0,0 +1,39 @@
1
+ .slick-column-name,
2
+ .slick-sort-indicator {
3
+ /**
4
+ * This makes all "float:right" elements after it that spill over to the next line
5
+ * display way below the lower boundary of the column thus hiding them.
6
+ */
7
+ display: inline-block;
8
+ float: left;
9
+ margin-bottom: 100px;
10
+ }
11
+
12
+ .slick-header-button {
13
+ display: inline-block;
14
+ float: right;
15
+ vertical-align: top;
16
+ margin: 1px;
17
+ /**
18
+ * This makes all "float:right" elements after it that spill over to the next line
19
+ * display way below the lower boundary of the column thus hiding them.
20
+ */
21
+ margin-bottom: 100px;
22
+ height: 15px;
23
+ width: 15px;
24
+ background-repeat: no-repeat;
25
+ background-position: center center;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .slick-header-button-hidden {
30
+ width: 0;
31
+
32
+ -webkit-transition: 0.2s width;
33
+ -ms-transition: 0.2s width;
34
+ transition: 0.2s width;
35
+ }
36
+
37
+ .slick-header-column:hover > .slick-header-button {
38
+ width: 15px;
39
+ }
@@ -0,0 +1,59 @@
1
+ /* Menu button */
2
+ .slick-header-menubutton {
3
+ position: absolute;
4
+ right: 0;
5
+ top: 0;
6
+ bottom: 0;
7
+ width: 14px;
8
+ background-repeat: no-repeat;
9
+ background-position: left center;
10
+ background-image: url(../images/down.gif);
11
+ cursor: pointer;
12
+
13
+ display: none;
14
+ border-left: thin ridge silver;
15
+ }
16
+
17
+ .slick-header-column:hover > .slick-header-menubutton,
18
+ .slick-header-column-active .slick-header-menubutton {
19
+ display: inline-block;
20
+ }
21
+
22
+ /* Menu */
23
+ .slick-header-menu {
24
+ position: absolute;
25
+ display: inline-block;
26
+ margin: 0;
27
+ padding: 2px;
28
+ cursor: default;
29
+ }
30
+
31
+
32
+ /* Menu items */
33
+ .slick-header-menuitem {
34
+ list-style: none;
35
+ margin: 0;
36
+ padding: 0;
37
+ cursor: pointer;
38
+ }
39
+
40
+ .slick-header-menuicon {
41
+ display: inline-block;
42
+ width: 16px;
43
+ height: 16px;
44
+ vertical-align: middle;
45
+ margin-right: 4px;
46
+ background-repeat: no-repeat;
47
+ background-position: center center;
48
+ }
49
+
50
+ .slick-header-menucontent {
51
+ display: inline-block;
52
+ vertical-align: middle;
53
+ }
54
+
55
+
56
+ /* Disabled */
57
+ .slick-header-menuitem-disabled {
58
+ color: silver;
59
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slickgrid-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-19 00:00:00.000000000 Z
12
+ date: 2013-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &16419360 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16419360
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: coffee-rails
27
- requirement: &16418840 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *16418840
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: jquery-plugins-rails
38
- requirement: &16418340 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *16418340
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: jquery-rails
49
- requirement: &16417920 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *16417920
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: sass-rails
60
- requirement: &16417500 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: '0'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *16417500
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  description: SlickGrid Integration for Rails 3.x
70
95
  email:
71
96
  - benedikt.boehm@madvertise.com
@@ -74,18 +99,14 @@ extensions: []
74
99
  extra_rdoc_files: []
75
100
  files:
76
101
  - .gitignore
77
- - .rvmrc
78
102
  - Gemfile
79
- - Gemfile.lock
80
103
  - LICENSE
81
104
  - README.md
82
105
  - Rakefile
83
106
  - bootstrap.sh
84
- - fetch.sh
85
107
  - lib/slickgrid-rails.rb
86
108
  - lib/slickgrid/rails.rb
87
109
  - lib/slickgrid/rails/engine.rb
88
- - lib/slickgrid/rails/version.rb
89
110
  - lib/slickgrid/table.rb
90
111
  - slickgrid-rails.gemspec
91
112
  - vendor/assets/images/slick/actions.gif
@@ -123,12 +144,15 @@ files:
123
144
  - vendor/assets/images/slick/user_identity.gif
124
145
  - vendor/assets/images/slick/user_identity_plus.gif
125
146
  - vendor/assets/javascripts/slick.js
147
+ - vendor/assets/javascripts/slick/controls/columnpicker.css
126
148
  - vendor/assets/javascripts/slick/controls/columnpicker.js
149
+ - vendor/assets/javascripts/slick/controls/pager.css
127
150
  - vendor/assets/javascripts/slick/controls/pager.js
128
151
  - vendor/assets/javascripts/slick/core.js
129
152
  - vendor/assets/javascripts/slick/dataview.js
130
153
  - vendor/assets/javascripts/slick/editors.js
131
154
  - vendor/assets/javascripts/slick/formatters.js
155
+ - vendor/assets/javascripts/slick/grid.css
132
156
  - vendor/assets/javascripts/slick/grid.js
133
157
  - vendor/assets/javascripts/slick/groupitemmetadataprovider.js
134
158
  - vendor/assets/javascripts/slick/plugins/autotooltips.js
@@ -137,15 +161,25 @@ files:
137
161
  - vendor/assets/javascripts/slick/plugins/cellrangeselector.js
138
162
  - vendor/assets/javascripts/slick/plugins/cellselectionmodel.js
139
163
  - vendor/assets/javascripts/slick/plugins/checkboxselectcolumn.js
164
+ - vendor/assets/javascripts/slick/plugins/headerbuttons.css
165
+ - vendor/assets/javascripts/slick/plugins/headerbuttons.js
166
+ - vendor/assets/javascripts/slick/plugins/headermenu.css
167
+ - vendor/assets/javascripts/slick/plugins/headermenu.js
140
168
  - vendor/assets/javascripts/slick/plugins/rowmovemanager.js
141
169
  - vendor/assets/javascripts/slick/plugins/rowselectionmodel.js
170
+ - vendor/assets/javascripts/slick/remotemodel.js
142
171
  - vendor/assets/javascripts/slick/remotemodel.js.coffee
143
172
  - vendor/assets/javascripts/slick/sorters.js.coffee
173
+ - vendor/assets/stylesheets/slick/controls/columnpicker.css
144
174
  - vendor/assets/stylesheets/slick/controls/columnpicker.css.scss
175
+ - vendor/assets/stylesheets/slick/controls/pager.css
145
176
  - vendor/assets/stylesheets/slick/controls/pager.css.scss
146
177
  - vendor/assets/stylesheets/slick/default-theme.css.scss
147
178
  - vendor/assets/stylesheets/slick/editors.css.scss
179
+ - vendor/assets/stylesheets/slick/grid.css
148
180
  - vendor/assets/stylesheets/slick/grid.css.scss
181
+ - vendor/assets/stylesheets/slick/plugins/headerbuttons.css
182
+ - vendor/assets/stylesheets/slick/plugins/headermenu.css
149
183
  - vendor/assets/stylesheets/slick/remotemodel.css.scss
150
184
  homepage: https://github.com/madvertise/slickgrid-rails
151
185
  licenses: []
@@ -167,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
201
  version: '0'
168
202
  requirements: []
169
203
  rubyforge_project:
170
- rubygems_version: 1.8.17
204
+ rubygems_version: 1.8.25
171
205
  signing_key:
172
206
  specification_version: 3
173
207
  summary: SlickGrid Integration for Rails 3.x