datatables-rails-bs3 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +15 -0
  2. data/lib/datatables-rails-bs3.rb +2 -0
  3. data/lib/jquery/datatables/rails/engine.rb +11 -0
  4. data/lib/jquery/datatables/rails/version.rb +7 -0
  5. data/vendor/assets/images/dataTables/back_disabled.png +0 -0
  6. data/vendor/assets/images/dataTables/back_enabled.png +0 -0
  7. data/vendor/assets/images/dataTables/back_enabled_hover.png +0 -0
  8. data/vendor/assets/images/dataTables/extras/background.png +0 -0
  9. data/vendor/assets/images/dataTables/extras/collection.png +0 -0
  10. data/vendor/assets/images/dataTables/extras/collection_hover.png +0 -0
  11. data/vendor/assets/images/dataTables/extras/copy.png +0 -0
  12. data/vendor/assets/images/dataTables/extras/copy_hover.png +0 -0
  13. data/vendor/assets/images/dataTables/extras/csv.png +0 -0
  14. data/vendor/assets/images/dataTables/extras/csv_hover.png +0 -0
  15. data/vendor/assets/images/dataTables/extras/pdf.png +0 -0
  16. data/vendor/assets/images/dataTables/extras/pdf_hover.png +0 -0
  17. data/vendor/assets/images/dataTables/extras/print.png +0 -0
  18. data/vendor/assets/images/dataTables/extras/print_hover.png +0 -0
  19. data/vendor/assets/images/dataTables/extras/xls.png +0 -0
  20. data/vendor/assets/images/dataTables/extras/xls_hover.png +0 -0
  21. data/vendor/assets/images/dataTables/favicon.ico +0 -0
  22. data/vendor/assets/images/dataTables/forward_disabled.png +0 -0
  23. data/vendor/assets/images/dataTables/forward_enabled.png +0 -0
  24. data/vendor/assets/images/dataTables/forward_enabled_hover.png +0 -0
  25. data/vendor/assets/images/dataTables/sort_asc.png +0 -0
  26. data/vendor/assets/images/dataTables/sort_asc_disabled.png +0 -0
  27. data/vendor/assets/images/dataTables/sort_both.png +0 -0
  28. data/vendor/assets/images/dataTables/sort_desc.png +0 -0
  29. data/vendor/assets/images/dataTables/sort_desc_disabled.png +0 -0
  30. data/vendor/assets/javascripts/dataTables/extras/AutoFill.js +820 -0
  31. data/vendor/assets/javascripts/dataTables/extras/ColReorder.js +956 -0
  32. data/vendor/assets/javascripts/dataTables/extras/ColVis.js +1013 -0
  33. data/vendor/assets/javascripts/dataTables/extras/FixedColumns.js +1240 -0
  34. data/vendor/assets/javascripts/dataTables/extras/FixedHeader.js +937 -0
  35. data/vendor/assets/javascripts/dataTables/extras/KeyTable.js +1111 -0
  36. data/vendor/assets/javascripts/dataTables/extras/Scroller.js +904 -0
  37. data/vendor/assets/javascripts/dataTables/extras/TableTools.js +2424 -0
  38. data/vendor/assets/javascripts/dataTables/extras/TableTools.min.js +76 -0
  39. data/vendor/assets/javascripts/dataTables/extras/ZeroClipboard.js +367 -0
  40. data/vendor/assets/javascripts/dataTables/jquery.dataTables.api.fnFilterOnReturn.js +17 -0
  41. data/vendor/assets/javascripts/dataTables/jquery.dataTables.api.fnGetColumnData.js +54 -0
  42. data/vendor/assets/javascripts/dataTables/jquery.dataTables.api.fnReloadAjax.js +44 -0
  43. data/vendor/assets/javascripts/dataTables/jquery.dataTables.api.fnSetFilteringDelay.js +32 -0
  44. data/vendor/assets/javascripts/dataTables/jquery.dataTables.bootstrap.js +383 -0
  45. data/vendor/assets/javascripts/dataTables/jquery.dataTables.js +12098 -0
  46. data/vendor/assets/javascripts/dataTables/jquery.dataTables.sorting.numbersHtml.js +15 -0
  47. data/vendor/assets/javascripts/dataTables/jquery.dataTables.typeDetection.numbersHtml.js +40 -0
  48. data/vendor/assets/media/dataTables/extras/as3/ZeroClipboard.as +221 -0
  49. data/vendor/assets/media/dataTables/extras/as3/ZeroClipboardPdf.as +310 -0
  50. data/vendor/assets/media/dataTables/extras/as3/lib/AlivePDF.swc +0 -0
  51. data/vendor/assets/media/dataTables/extras/swf/copy_csv_xls.swf +0 -0
  52. data/vendor/assets/media/dataTables/extras/swf/copy_csv_xls_pdf.swf +0 -0
  53. data/vendor/assets/stylesheets/dataTables/extras/TableTools.css +314 -0
  54. data/vendor/assets/stylesheets/dataTables/extras/TableTools_JUI.css +185 -0
  55. data/vendor/assets/stylesheets/dataTables/jquery.dataTables.bootstrap.css.scss +177 -0
  56. data/vendor/assets/stylesheets/dataTables/jquery.dataTables.css.scss +220 -0
  57. data/vendor/assets/stylesheets/dataTables/src/demo_page.css +107 -0
  58. data/vendor/assets/stylesheets/dataTables/src/demo_table.css +575 -0
  59. data/vendor/assets/stylesheets/dataTables/src/demo_table_jui.css +530 -0
  60. data/vendor/assets/stylesheets/dataTables/src/jquery.dataTables_themeroller.css +243 -0
  61. metadata +116 -0
@@ -0,0 +1,177 @@
1
+ div.dataTables_length label {
2
+ float: left;
3
+ text-align: left;
4
+ }
5
+
6
+ div.dataTables_length select {
7
+ width: 75px;
8
+ }
9
+
10
+ div.dataTables_filter label {
11
+ float: right;
12
+ }
13
+
14
+ div.dataTables_info {
15
+ padding-top: 26px;
16
+ }
17
+
18
+ div.dataTables_paginate {
19
+ float: right;
20
+ margin: 0;
21
+ }
22
+
23
+ table.table {
24
+ clear: both;
25
+ margin-bottom: 6px !important;
26
+ max-width: none !important;
27
+ }
28
+
29
+ table.table thead .sorting,
30
+ table.table thead .sorting_asc,
31
+ table.table thead .sorting_desc,
32
+ table.table thead .sorting_asc_disabled,
33
+ table.table thead .sorting_desc_disabled {
34
+ cursor: pointer;
35
+ *cursor: hand;
36
+ }
37
+
38
+ table.table thead .sorting { background: url('../images/datatables/sort_both.png') no-repeat center right; }
39
+ table.table thead .sorting_asc { background: url('../images/datatables/sort_asc.png') no-repeat center right; }
40
+ table.table thead .sorting_desc { background: url('../images/datatables/sort_desc.png') no-repeat center right; }
41
+
42
+ table.table thead .sorting_asc_disabled { background: url('../images/datatables/sort_asc_disabled.png') no-repeat center right; }
43
+ table.table thead .sorting_desc_disabled { background: url('../images/datatables/sort_desc_disabled.png') no-repeat center right; }
44
+
45
+ table.dataTable th:active {
46
+ outline: none;
47
+ }
48
+
49
+ /* Scrolling */
50
+ div.dataTables_scrollHead table {
51
+ margin-bottom: 0 !important;
52
+ border-bottom-left-radius: 0;
53
+ border-bottom-right-radius: 0;
54
+ }
55
+
56
+ div.dataTables_scrollHead table thead tr:last-child th:first-child,
57
+ div.dataTables_scrollHead table thead tr:last-child td:first-child {
58
+ border-bottom-left-radius: 0 !important;
59
+ border-bottom-right-radius: 0 !important;
60
+ }
61
+
62
+ div.dataTables_scrollBody table {
63
+ border-top: none;
64
+ margin-bottom: 0 !important;
65
+ }
66
+
67
+ div.dataTables_scrollBody tbody tr:first-child th,
68
+ div.dataTables_scrollBody tbody tr:first-child td {
69
+ border-top: none;
70
+ }
71
+
72
+ div.dataTables_scrollFoot table {
73
+ border-top: none;
74
+ }
75
+
76
+
77
+
78
+
79
+ /*
80
+ * TableTools styles
81
+ */
82
+ .table tbody tr.active td,
83
+ .table tbody tr.active th {
84
+ background-color: #08C;
85
+ color: white;
86
+ }
87
+
88
+ .table tbody tr.active:hover td,
89
+ .table tbody tr.active:hover th {
90
+ background-color: #0075b0 !important;
91
+ }
92
+
93
+ .table-striped tbody tr.active:nth-child(odd) td,
94
+ .table-striped tbody tr.active:nth-child(odd) th {
95
+ background-color: #017ebc;
96
+ }
97
+
98
+ table.DTTT_selectable tbody tr {
99
+ cursor: pointer;
100
+ *cursor: hand;
101
+ }
102
+
103
+ div.DTTT .btn {
104
+ color: #333 !important;
105
+ font-size: 12px;
106
+ }
107
+
108
+ div.DTTT .btn:hover {
109
+ text-decoration: none !important;
110
+ }
111
+
112
+
113
+ ul.DTTT_dropdown.dropdown-menu a {
114
+ color: #333 !important; /* needed only when demo_page.css is included */
115
+ }
116
+
117
+ ul.DTTT_dropdown.dropdown-menu li:hover a {
118
+ background-color: #0088cc;
119
+ color: white !important;
120
+ }
121
+
122
+ /* TableTools information display */
123
+ div.DTTT_print_info.modal {
124
+ height: 150px;
125
+ margin-top: -75px;
126
+ text-align: center;
127
+ }
128
+
129
+ div.DTTT_print_info h6 {
130
+ font-weight: normal;
131
+ font-size: 28px;
132
+ line-height: 28px;
133
+ margin: 1em;
134
+ }
135
+
136
+ div.DTTT_print_info p {
137
+ font-size: 14px;
138
+ line-height: 20px;
139
+ }
140
+
141
+
142
+
143
+ /*
144
+ * FixedColumns styles
145
+ */
146
+ div.DTFC_LeftHeadWrapper table,
147
+ div.DTFC_LeftFootWrapper table,
148
+ table.DTFC_Cloned tr.even {
149
+ background-color: white;
150
+ }
151
+
152
+ div.DTFC_LeftHeadWrapper table {
153
+ margin-bottom: 0 !important;
154
+ border-top-right-radius: 0 !important;
155
+ border-bottom-left-radius: 0 !important;
156
+ border-bottom-right-radius: 0 !important;
157
+ }
158
+
159
+ div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
160
+ div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
161
+ border-bottom-left-radius: 0 !important;
162
+ border-bottom-right-radius: 0 !important;
163
+ }
164
+
165
+ div.DTFC_LeftBodyWrapper table {
166
+ border-top: none;
167
+ margin-bottom: 0 !important;
168
+ }
169
+
170
+ div.DTFC_LeftBodyWrapper tbody tr:first-child th,
171
+ div.DTFC_LeftBodyWrapper tbody tr:first-child td {
172
+ border-top: none;
173
+ }
174
+
175
+ div.DTFC_LeftFootWrapper table {
176
+ border-top: none;
177
+ }
@@ -0,0 +1,220 @@
1
+
2
+ /*
3
+ * Table
4
+ */
5
+ table.dataTable {
6
+ margin: 0 auto;
7
+ clear: both;
8
+ width: 100%;
9
+ }
10
+
11
+ table.dataTable thead th {
12
+ padding: 3px 18px 3px 10px;
13
+ border-bottom: 1px solid black;
14
+ font-weight: bold;
15
+ cursor: pointer;
16
+ *cursor: hand;
17
+ }
18
+
19
+ table.dataTable tfoot th {
20
+ padding: 3px 18px 3px 10px;
21
+ border-top: 1px solid black;
22
+ font-weight: bold;
23
+ }
24
+
25
+ table.dataTable td {
26
+ padding: 3px 10px;
27
+ }
28
+
29
+ table.dataTable td.center,
30
+ table.dataTable td.dataTables_empty {
31
+ text-align: center;
32
+ }
33
+
34
+ table.dataTable tr.odd { background-color: #E2E4FF; }
35
+ table.dataTable tr.even { background-color: white; }
36
+
37
+ table.dataTable tr.odd td.sorting_1 { background-color: #D3D6FF; }
38
+ table.dataTable tr.odd td.sorting_2 { background-color: #DADCFF; }
39
+ table.dataTable tr.odd td.sorting_3 { background-color: #E0E2FF; }
40
+ table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; }
41
+ table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; }
42
+ table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; }
43
+
44
+
45
+ /*
46
+ * Table wrapper
47
+ */
48
+ .dataTables_wrapper {
49
+ position: relative;
50
+ clear: both;
51
+ *zoom: 1;
52
+ }
53
+
54
+
55
+ /*
56
+ * Page length menu
57
+ */
58
+ .dataTables_length {
59
+ float: left;
60
+ }
61
+
62
+
63
+ /*
64
+ * Filter
65
+ */
66
+ .dataTables_filter {
67
+ float: right;
68
+ text-align: right;
69
+ }
70
+
71
+
72
+ /*
73
+ * Table information
74
+ */
75
+ .dataTables_info {
76
+ clear: both;
77
+ float: left;
78
+ }
79
+
80
+
81
+ /*
82
+ * Pagination
83
+ */
84
+ .dataTables_paginate {
85
+ float: right;
86
+ text-align: right;
87
+ }
88
+
89
+ /* Two button pagination - previous / next */
90
+ .paginate_disabled_previous,
91
+ .paginate_enabled_previous,
92
+ .paginate_disabled_next,
93
+ .paginate_enabled_next {
94
+ height: 19px;
95
+ float: left;
96
+ cursor: pointer;
97
+ *cursor: hand;
98
+ color: #111 !important;
99
+ }
100
+ .paginate_disabled_previous:hover,
101
+ .paginate_enabled_previous:hover,
102
+ .paginate_disabled_next:hover,
103
+ .paginate_enabled_next:hover {
104
+ text-decoration: none !important;
105
+ }
106
+ .paginate_disabled_previous:active,
107
+ .paginate_enabled_previous:active,
108
+ .paginate_disabled_next:active,
109
+ .paginate_enabled_next:active {
110
+ outline: none;
111
+ }
112
+
113
+ .paginate_disabled_previous,
114
+ .paginate_disabled_next {
115
+ color: #666 !important;
116
+ }
117
+ .paginate_disabled_previous,
118
+ .paginate_enabled_previous {
119
+ padding-left: 23px;
120
+ }
121
+ .paginate_disabled_next,
122
+ .paginate_enabled_next {
123
+ padding-right: 23px;
124
+ margin-left: 10px;
125
+ }
126
+
127
+ .paginate_enabled_previous { background: image-url('dataTables/back_enabled.png') no-repeat top left; }
128
+ .paginate_enabled_previous:hover { background: image-url('dataTables/back_enabled_hover.png') no-repeat top left; }
129
+ .paginate_disabled_previous { background: image-url('dataTables/back_disabled.png') no-repeat top left; }
130
+
131
+ .paginate_enabled_next { background: image-url('dataTables/forward_enabled.png') no-repeat top right; }
132
+ .paginate_enabled_next:hover { background: image-url('dataTables/forward_enabled_hover.png') no-repeat top right; }
133
+ .paginate_disabled_next { background: image-url('dataTables/forward_disabled.png') no-repeat top right; }
134
+
135
+ /* Full number pagination */
136
+ .paging_full_numbers {
137
+ height: 22px;
138
+ line-height: 22px;
139
+ }
140
+ .paging_full_numbers a:active {
141
+ outline: none
142
+ }
143
+ .paging_full_numbers a:hover {
144
+ text-decoration: none;
145
+ }
146
+
147
+ .paging_full_numbers a.paginate_button,
148
+ .paging_full_numbers a.paginate_active {
149
+ border: 1px solid #aaa;
150
+ -webkit-border-radius: 5px;
151
+ -moz-border-radius: 5px;
152
+ border-radius: 5px;
153
+ padding: 2px 5px;
154
+ margin: 0 3px;
155
+ cursor: pointer;
156
+ *cursor: hand;
157
+ color: #333 !important;
158
+ }
159
+
160
+ .paging_full_numbers a.paginate_button {
161
+ background-color: #ddd;
162
+ }
163
+
164
+ .paging_full_numbers a.paginate_button:hover {
165
+ background-color: #ccc;
166
+ text-decoration: none !important;
167
+ }
168
+
169
+ .paging_full_numbers a.paginate_active {
170
+ background-color: #99B3FF;
171
+ }
172
+
173
+
174
+ /*
175
+ * Processing indicator
176
+ */
177
+ .dataTables_processing {
178
+ position: absolute;
179
+ top: 50%;
180
+ left: 50%;
181
+ width: 250px;
182
+ height: 30px;
183
+ margin-left: -125px;
184
+ margin-top: -15px;
185
+ padding: 14px 0 2px 0;
186
+ border: 1px solid #ddd;
187
+ text-align: center;
188
+ color: #999;
189
+ font-size: 14px;
190
+ background-color: white;
191
+ }
192
+
193
+
194
+ /*
195
+ * Sorting
196
+ */
197
+ .sorting { background: image-url('dataTables/sort_both.png') no-repeat center right; }
198
+ .sorting_asc { background: image-url('dataTables/sort_asc.png') no-repeat center right; }
199
+ .sorting_desc { background: image-url('dataTables/sort_desc.png') no-repeat center right; }
200
+
201
+ .sorting_asc_disabled { background: image-url('dataTables/sort_asc_disabled.png') no-repeat center right; }
202
+ .sorting_desc_disabled { background: image-url('dataTables/sort_desc_disabled.png') no-repeat center right; }
203
+
204
+ table.dataTable thead th:active,
205
+ table.dataTable thead td:active {
206
+ outline: none;
207
+ }
208
+
209
+
210
+ /*
211
+ * Scrolling
212
+ */
213
+ .dataTables_scroll {
214
+ clear: both;
215
+ }
216
+
217
+ .dataTables_scrollBody {
218
+ *margin-top: -1px;
219
+ -webkit-overflow-scrolling: touch;
220
+ }
@@ -0,0 +1,107 @@
1
+
2
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3
+ * General page setup
4
+ */
5
+ #dt_example {
6
+ font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
7
+ margin: 0;
8
+ padding: 0;
9
+ color: #333;
10
+ background-color: #fff;
11
+ }
12
+
13
+
14
+ #dt_example #container {
15
+ width: 800px;
16
+ margin: 30px auto;
17
+ padding: 0;
18
+ }
19
+
20
+
21
+ #dt_example #footer {
22
+ margin: 50px auto 0 auto;
23
+ padding: 0;
24
+ }
25
+
26
+ #dt_example #demo {
27
+ margin: 30px auto 0 auto;
28
+ }
29
+
30
+ #dt_example .demo_jui {
31
+ margin: 30px auto 0 auto;
32
+ }
33
+
34
+ #dt_example .big {
35
+ font-size: 1.3em;
36
+ font-weight: bold;
37
+ line-height: 1.6em;
38
+ color: #4E6CA3;
39
+ }
40
+
41
+ #dt_example .spacer {
42
+ height: 20px;
43
+ clear: both;
44
+ }
45
+
46
+ #dt_example .clear {
47
+ clear: both;
48
+ }
49
+
50
+ #dt_example pre {
51
+ padding: 15px;
52
+ background-color: #F5F5F5;
53
+ border: 1px solid #CCCCCC;
54
+ }
55
+
56
+ #dt_example h1 {
57
+ margin-top: 2em;
58
+ font-size: 1.3em;
59
+ font-weight: normal;
60
+ line-height: 1.6em;
61
+ color: #4E6CA3;
62
+ border-bottom: 1px solid #B0BED9;
63
+ clear: both;
64
+ }
65
+
66
+ #dt_example h2 {
67
+ font-size: 1.2em;
68
+ font-weight: normal;
69
+ line-height: 1.6em;
70
+ color: #4E6CA3;
71
+ clear: both;
72
+ }
73
+
74
+ #dt_example a {
75
+ color: #0063DC;
76
+ text-decoration: none;
77
+ }
78
+
79
+ #dt_example a:hover {
80
+ text-decoration: underline;
81
+ }
82
+
83
+ #dt_example ul {
84
+ color: #4E6CA3;
85
+ }
86
+
87
+ .css_right {
88
+ float: right;
89
+ }
90
+
91
+ .css_left {
92
+ float: left;
93
+ }
94
+
95
+ .demo_links {
96
+ float: left;
97
+ width: 50%;
98
+ margin-bottom: 1em;
99
+ }
100
+
101
+ #demo_info {
102
+ padding: 5px;
103
+ border: 1px solid #B0BED9;
104
+ height: 100px;
105
+ width: 100%;
106
+ overflow: auto;
107
+ }