effective_datatables 2.1.20 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -11
  3. data/app/assets/javascripts/dataTables/buttons/buttons.bootstrap.js +68 -0
  4. data/app/assets/javascripts/dataTables/buttons/buttons.colVis.js +197 -0
  5. data/app/assets/javascripts/dataTables/buttons/buttons.html5.js +828 -0
  6. data/app/assets/javascripts/dataTables/buttons/buttons.print.js +159 -0
  7. data/app/assets/javascripts/dataTables/buttons/dataTables.buttons.js +1607 -0
  8. data/app/assets/javascripts/dataTables/dataTables.colReorder.min.js +24 -24
  9. data/app/assets/javascripts/dataTables/{bootstrap/3/jquery.dataTables.bootstrap.js → jquery.dataTables.bootstrap.js} +69 -34
  10. data/app/assets/javascripts/dataTables/jquery.dataTables.min.js +164 -160
  11. data/app/assets/javascripts/dataTables/responsive/dataTables.responsive.min.js +23 -0
  12. data/app/assets/javascripts/dataTables/responsive/responsive.bootstrap.min.js +7 -0
  13. data/app/assets/javascripts/effective_datatables.js +15 -6
  14. data/app/assets/javascripts/effective_datatables/initialize.js.coffee.erb +118 -92
  15. data/app/assets/javascripts/vendor/jszip.min.js +14 -0
  16. data/app/assets/stylesheets/dataTables/buttons/buttons.bootstrap.min.css +102 -0
  17. data/app/assets/stylesheets/dataTables/buttons/buttons.dataTables.min.css +298 -0
  18. data/app/assets/stylesheets/dataTables/colReorder/colReorder.bootstrap.min.css +1 -0
  19. data/app/assets/stylesheets/dataTables/{dataTables.colReorder.min.css → colReorder/colReorder.dataTables.min.css} +0 -0
  20. data/app/assets/stylesheets/dataTables/dataTables.bootstrap.min.css +187 -0
  21. data/app/assets/stylesheets/dataTables/jquery.dataTables.min.css +24 -26
  22. data/app/assets/stylesheets/dataTables/responsive/responsive.bootstrap.min.css +1 -0
  23. data/app/assets/stylesheets/dataTables/responsive/responsive.dataTables.min.css +1 -0
  24. data/app/assets/stylesheets/effective_datatables.scss +10 -4
  25. data/app/assets/stylesheets/effective_datatables/_overrides.scss.erb +118 -103
  26. data/app/helpers/effective_datatables_helper.rb +25 -36
  27. data/app/models/effective/effective_datatable/dsl.rb +1 -0
  28. data/app/models/effective/effective_datatable/options.rb +1 -1
  29. data/app/views/effective/datatables/_datatable.html.haml +7 -20
  30. data/lib/effective_datatables/version.rb +1 -1
  31. metadata +18 -15
  32. data/app/assets/javascripts/dataTables/bootstrap/2/jquery.dataTables.bootstrap.js +0 -148
  33. data/app/assets/javascripts/dataTables/dataTables.colVis.min.js +0 -24
  34. data/app/assets/javascripts/dataTables/dataTables.fixedColumns.min.js +0 -30
  35. data/app/assets/javascripts/dataTables/dataTables.tableTools.min.js +0 -70
  36. data/app/assets/javascripts/effective_datatables.bootstrap2.js +0 -12
  37. data/app/assets/stylesheets/dataTables/bootstrap/2/jquery.dataTables.bootstrap.scss +0 -207
  38. data/app/assets/stylesheets/dataTables/bootstrap/3/jquery.dataTables.bootstrap.scss +0 -280
  39. data/app/assets/stylesheets/dataTables/dataTables.colVis.min.css +0 -1
  40. data/app/assets/stylesheets/dataTables/dataTables.fixedColumns.min.css +0 -1
  41. data/app/assets/stylesheets/dataTables/dataTables.tableTools.min.css +0 -1
  42. data/app/assets/stylesheets/effective_datatables.bootstrap2.scss +0 -7
@@ -1,12 +0,0 @@
1
- //= require dataTables/jquery.dataTables.min
2
- //= require dataTables/bootstrap/2/jquery.dataTables.bootstrap
3
- //= require dataTables/dataTables.colReorder.min
4
- //= require dataTables/dataTables.colVis.min
5
- //= require dataTables/dataTables.tableTools.min
6
- //= require vendor/jquery.debounce.min
7
-
8
- //= require_tree ./effective_datatables
9
-
10
- $.extend( $.fn.dataTable.defaults, {
11
- 'dom': "<'row header-row'<'span4'l><'span6'TC>r><'scroll_wrapper't><'row'<'span6'i><'span6'p>>"
12
- });
@@ -1,207 +0,0 @@
1
- //= depend_on_asset "dataTables/sort_both.png"
2
- //= depend_on_asset "dataTables/sort_asc.png"
3
- //= depend_on_asset "dataTables/sort_desc.png"
4
- //= depend_on_asset "dataTables/sort_asc_disabled.png"
5
- //= depend_on_asset "dataTables/sort_desc_disabled.png"
6
-
7
- div.dataTables_length label {
8
- float: left;
9
- text-align: left;
10
- }
11
-
12
- div.dataTables_length select {
13
- width: 75px;
14
- }
15
-
16
- div.dataTables_filter label {
17
- float: right;
18
- }
19
-
20
- div.dataTables_info {
21
- padding-top: 8px;
22
- }
23
-
24
- div.dataTables_paginate {
25
- float: right;
26
- margin: 0;
27
- }
28
-
29
- table.table {
30
- clear: both;
31
- margin-bottom: 6px !important;
32
- max-width: none !important;
33
- }
34
-
35
- table.table thead .sorting,
36
- table.table thead .sorting_asc,
37
- table.table thead .sorting_desc,
38
- table.table thead .sorting_asc_disabled,
39
- table.table thead .sorting_desc_disabled {
40
- cursor: pointer;
41
- *cursor: hand;
42
- }
43
-
44
- table.dataTable thead .sorting { background: image_url('dataTables/sort_both.png') no-repeat center right; }
45
- table.dataTable thead .sorting_asc { background: image_url('dataTables/sort_asc.png') no-repeat center right; }
46
- table.dataTable thead .sorting_desc { background: image_url('dataTables/sort_desc.png') no-repeat center right; }
47
-
48
- table.dataTable thead .sorting_asc_disabled { background: image_url('dataTables/sort_asc_disabled.png') no-repeat center right; }
49
- table.dataTable thead .sorting_desc_disabled { background: image_url('dataTables/sort_desc_disabled.png') no-repeat center right; }
50
-
51
- table.dataTable th:active {
52
- outline: none;
53
- }
54
-
55
- /* Scrolling */
56
- div.dataTables_scrollHead table {
57
- margin-bottom: 0 !important;
58
- border-bottom-left-radius: 0;
59
- border-bottom-right-radius: 0;
60
- }
61
-
62
- div.dataTables_scrollHead table thead tr:last-child th:first-child,
63
- div.dataTables_scrollHead table thead tr:last-child td:first-child {
64
- border-bottom-left-radius: 0 !important;
65
- border-bottom-right-radius: 0 !important;
66
- }
67
-
68
- div.dataTables_scrollBody table {
69
- border-top: none;
70
- margin-bottom: 0 !important;
71
- }
72
-
73
- div.dataTables_scrollBody tbody tr:first-child th,
74
- div.dataTables_scrollBody tbody tr:first-child td {
75
- border-top: none;
76
- }
77
-
78
- div.dataTables_scrollFoot table {
79
- border-top: none;
80
- }
81
-
82
-
83
-
84
-
85
- /*
86
- * TableTools styles
87
- */
88
- .table tbody tr.active td,
89
- .table tbody tr.active th {
90
- background-color: #08C;
91
- color: white;
92
- }
93
-
94
- .table tbody tr.active:hover td,
95
- .table tbody tr.active:hover th {
96
- background-color: #0075b0 !important;
97
- }
98
-
99
- .table tbody tr.active a {
100
- color: white;
101
- }
102
-
103
- .table-striped tbody tr.active:nth-child(odd) td,
104
- .table-striped tbody tr.active:nth-child(odd) th {
105
- background-color: #017ebc;
106
- }
107
-
108
- table.DTTT_selectable tbody tr {
109
- cursor: pointer;
110
- *cursor: hand;
111
- }
112
-
113
- div.DTTT .btn {
114
- color: #333 !important;
115
- font-size: 12px;
116
- }
117
-
118
- div.DTTT .btn:hover {
119
- text-decoration: none !important;
120
- }
121
-
122
- ul.DTTT_dropdown.dropdown-menu {
123
- z-index: 2003;
124
- }
125
-
126
- ul.DTTT_dropdown.dropdown-menu a {
127
- color: #333 !important; /* needed only when demo_page.css is included */
128
- }
129
-
130
- ul.DTTT_dropdown.dropdown-menu li {
131
- position: relative;
132
- }
133
-
134
- ul.DTTT_dropdown.dropdown-menu li:hover a {
135
- background-color: #0088cc;
136
- color: white !important;
137
- }
138
-
139
- div.DTTT_collection_background {
140
- z-index: 2002;
141
- }
142
-
143
- /* TableTools information display */
144
- div.DTTT_print_info.modal {
145
- height: 150px;
146
- margin-top: -75px;
147
- text-align: center;
148
- }
149
-
150
- div.DTTT_print_info h6 {
151
- font-weight: normal;
152
- font-size: 28px;
153
- line-height: 28px;
154
- margin: 1em;
155
- }
156
-
157
- div.DTTT_print_info p {
158
- font-size: 14px;
159
- line-height: 20px;
160
- }
161
-
162
-
163
-
164
- /*
165
- * FixedColumns styles
166
- */
167
- div.DTFC_LeftHeadWrapper table,
168
- div.DTFC_LeftFootWrapper table,
169
- div.DTFC_RightHeadWrapper table,
170
- div.DTFC_RightFootWrapper table,
171
- table.DTFC_Cloned tr.even {
172
- background-color: white;
173
- }
174
-
175
- div.DTFC_RightHeadWrapper table ,
176
- div.DTFC_LeftHeadWrapper table {
177
- margin-bottom: 0 !important;
178
- border-top-right-radius: 0 !important;
179
- border-bottom-left-radius: 0 !important;
180
- border-bottom-right-radius: 0 !important;
181
- }
182
-
183
- div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,
184
- div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
185
- div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
186
- div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
187
- border-bottom-left-radius: 0 !important;
188
- border-bottom-right-radius: 0 !important;
189
- }
190
-
191
- div.DTFC_RightBodyWrapper table,
192
- div.DTFC_LeftBodyWrapper table {
193
- border-top: none;
194
- margin-bottom: 0 !important;
195
- }
196
-
197
- div.DTFC_RightBodyWrapper tbody tr:first-child th,
198
- div.DTFC_RightBodyWrapper tbody tr:first-child td,
199
- div.DTFC_LeftBodyWrapper tbody tr:first-child th,
200
- div.DTFC_LeftBodyWrapper tbody tr:first-child td {
201
- border-top: none;
202
- }
203
-
204
- div.DTFC_RightFootWrapper table,
205
- div.DTFC_LeftFootWrapper table {
206
- border-top: none;
207
- }
@@ -1,280 +0,0 @@
1
- div.dataTables_length label {
2
- font-weight: normal;
3
- float: left;
4
- text-align: left;
5
- }
6
-
7
- div.dataTables_length select {
8
- width: 75px;
9
- }
10
-
11
- div.dataTables_filter label {
12
- font-weight: normal;
13
- float: right;
14
- }
15
-
16
- div.dataTables_filter input {
17
- width: 16em;
18
- }
19
-
20
- div.dataTables_info {
21
- padding-top: 8px;
22
- }
23
-
24
- div.dataTables_paginate {
25
- float: right;
26
- margin: 0;
27
- }
28
-
29
- div.dataTables_paginate ul.pagination {
30
- margin: 2px 0;
31
- white-space: nowrap;
32
- }
33
-
34
- table.dataTable td,
35
- table.dataTable th {
36
- -webkit-box-sizing: content-box;
37
- -moz-box-sizing: content-box;
38
- box-sizing: content-box;
39
- }
40
-
41
-
42
- table.dataTable {
43
- clear: both;
44
- margin-top: 6px !important;
45
- margin-bottom: 6px !important;
46
- max-width: none !important;
47
- }
48
-
49
- table.dataTable thead .sorting,
50
- table.dataTable thead .sorting_asc,
51
- table.dataTable thead .sorting_desc,
52
- table.dataTable thead .sorting_asc_disabled,
53
- table.dataTable thead .sorting_desc_disabled {
54
- cursor: pointer;
55
- }
56
-
57
- table.dataTable thead .sorting { background: image-url('dataTables/sort_both.png') no-repeat center right; }
58
- table.dataTable thead .sorting_asc { background: image-url('dataTables/sort_asc.png') no-repeat center right; }
59
- table.dataTable thead .sorting_desc { background: image-url('dataTables/sort_desc.png') no-repeat center right; }
60
-
61
- table.dataTable thead .sorting_asc_disabled { background: image-url('dataTables/sort_asc_disabled.png') no-repeat center right; }
62
- table.dataTable thead .sorting_desc_disabled { background: image-url('dataTables/sort_desc_disabled.png') no-repeat center right; }
63
-
64
- table.dataTable thead > tr > th {
65
- padding-left: 18px;
66
- padding-right: 18px;
67
- }
68
-
69
- table.dataTable th:active {
70
- outline: none;
71
- }
72
-
73
- /* Scrolling */
74
- div.dataTables_scrollHead table {
75
- margin-bottom: 0 !important;
76
- border-bottom-left-radius: 0;
77
- border-bottom-right-radius: 0;
78
- }
79
-
80
- div.dataTables_scrollHead table thead tr:last-child th:first-child,
81
- div.dataTables_scrollHead table thead tr:last-child td:first-child {
82
- border-bottom-left-radius: 0 !important;
83
- border-bottom-right-radius: 0 !important;
84
- }
85
-
86
- div.dataTables_scrollBody table {
87
- border-top: none;
88
- margin-top: 0 !important;
89
- margin-bottom: 0 !important;
90
- }
91
-
92
- div.dataTables_scrollBody tbody tr:first-child th,
93
- div.dataTables_scrollBody tbody tr:first-child td {
94
- border-top: none;
95
- }
96
-
97
- div.dataTables_scrollFoot table {
98
- margin-top: 0 !important;
99
- border-top: none;
100
- }
101
-
102
- /* Frustratingly the border-collapse:collapse used by Bootstrap makes the column
103
- width calculations when using scrolling impossible to align columns. We have
104
- to use separate
105
- */
106
- table.table-bordered.dataTable {
107
- border-collapse: separate !important;
108
- }
109
- table.table-bordered thead th,
110
- table.table-bordered thead td {
111
- border-left-width: 0;
112
- border-top-width: 0;
113
- }
114
- table.table-bordered tbody th,
115
- table.table-bordered tbody td {
116
- border-left-width: 0;
117
- border-bottom-width: 0;
118
- }
119
- table.table-bordered th:last-child,
120
- table.table-bordered td:last-child {
121
- border-right-width: 0;
122
- }
123
- div.dataTables_scrollHead table.table-bordered {
124
- border-bottom-width: 0;
125
- }
126
-
127
-
128
-
129
-
130
- /*
131
- * TableTools styles
132
- */
133
- .table tbody tr.active td,
134
- .table tbody tr.active th {
135
- background-color: #08C;
136
- color: white;
137
- }
138
-
139
- .table tbody tr.active:hover td,
140
- .table tbody tr.active:hover th {
141
- background-color: #0075b0 !important;
142
- }
143
-
144
- .table tbody tr.active a {
145
- color: white;
146
- }
147
-
148
- .table-striped tbody tr.active:nth-child(odd) td,
149
- .table-striped tbody tr.active:nth-child(odd) th {
150
- background-color: #017ebc;
151
- }
152
-
153
- table.DTTT_selectable tbody tr {
154
- cursor: pointer;
155
- }
156
-
157
- div.DTTT .btn {
158
- color: #333 !important;
159
- font-size: 12px;
160
- }
161
-
162
- div.DTTT .btn:hover {
163
- text-decoration: none !important;
164
- }
165
-
166
- ul.DTTT_dropdown.dropdown-menu {
167
- z-index: 2003;
168
- }
169
-
170
- ul.DTTT_dropdown.dropdown-menu a {
171
- color: #333 !important; /* needed only when demo_page.css is included */
172
- }
173
-
174
- ul.DTTT_dropdown.dropdown-menu li {
175
- position: relative;
176
- }
177
-
178
- ul.DTTT_dropdown.dropdown-menu li:hover a {
179
- background-color: #0088cc;
180
- color: white !important;
181
- }
182
-
183
- div.DTTT_collection_background {
184
- z-index: 2002;
185
- }
186
-
187
- /* TableTools information display */
188
- div.DTTT_print_info.modal {
189
- height: 150px;
190
- margin-top: -75px;
191
- text-align: center;
192
- }
193
-
194
- div.DTTT_print_info h6 {
195
- font-weight: normal;
196
- font-size: 28px;
197
- line-height: 28px;
198
- margin: 1em;
199
- }
200
-
201
- div.DTTT_print_info p {
202
- font-size: 14px;
203
- line-height: 20px;
204
- }
205
-
206
- div.dataTables_processing {
207
- position: absolute;
208
- top: 50%;
209
- left: 50%;
210
- width: 100%;
211
- height: 40px;
212
- margin-left: -50%;
213
- margin-top: -25px;
214
- padding-top: 20px;
215
- text-align: center;
216
- font-size: 1.2em;
217
- background-color: white;
218
- background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));
219
- background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
220
- background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
221
- background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
222
- background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
223
- background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
224
- }
225
-
226
-
227
-
228
- /*
229
- * FixedColumns styles
230
- */
231
- div.DTFC_LeftHeadWrapper table,
232
- div.DTFC_LeftFootWrapper table,
233
- div.DTFC_RightHeadWrapper table,
234
- div.DTFC_RightFootWrapper table,
235
- table.DTFC_Cloned tr.even {
236
- background-color: white;
237
- margin-bottom: 0;
238
- }
239
-
240
- div.DTFC_RightHeadWrapper table ,
241
- div.DTFC_LeftHeadWrapper table {
242
- margin-bottom: 0 !important;
243
- border-top-right-radius: 0 !important;
244
- border-bottom-left-radius: 0 !important;
245
- border-bottom-right-radius: 0 !important;
246
- }
247
-
248
- div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,
249
- div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
250
- div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
251
- div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
252
- border-bottom-left-radius: 0 !important;
253
- border-bottom-right-radius: 0 !important;
254
- }
255
-
256
- div.DTFC_RightBodyWrapper table,
257
- div.DTFC_LeftBodyWrapper table {
258
- border-top: none;
259
- margin: 0 !important;
260
- }
261
-
262
- div.DTFC_RightBodyWrapper tbody tr:first-child th,
263
- div.DTFC_RightBodyWrapper tbody tr:first-child td,
264
- div.DTFC_LeftBodyWrapper tbody tr:first-child th,
265
- div.DTFC_LeftBodyWrapper tbody tr:first-child td {
266
- border-top: none;
267
- }
268
-
269
- div.DTFC_RightFootWrapper table,
270
- div.DTFC_LeftFootWrapper table {
271
- border-top: none;
272
- }
273
-
274
-
275
- /*
276
- * FixedHeader styles
277
- */
278
- div.FixedHeader_Cloned table {
279
- margin: 0 !important
280
- }