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,575 @@
1
+ /*
2
+ * File: demo_table.css
3
+ * CVS: $Id$
4
+ * Description: CSS descriptions for DataTables demo pages
5
+ * Author: Allan Jardine
6
+ * Created: Tue May 12 06:47:22 BST 2009
7
+ * Modified: $Date$ by $Author$
8
+ * Language: CSS
9
+ * Project: DataTables
10
+ *
11
+ * Copyright 2009 Allan Jardine. All Rights Reserved.
12
+ *
13
+ * ***************************************************************************
14
+ * DESCRIPTION
15
+ *
16
+ * The styles given here are suitable for the demos that are used with the standard DataTables
17
+ * distribution (see www.datatables.net). You will most likely wish to modify these styles to
18
+ * meet the layout requirements of your site.
19
+ *
20
+ * Common issues:
21
+ * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
22
+ * no conflict between the two pagination types. If you want to use full_numbers pagination
23
+ * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
24
+ * modify that selector.
25
+ * Note that the path used for Images is relative. All images are by default located in
26
+ * ../images/ - relative to this CSS file.
27
+ */
28
+
29
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
30
+ * DataTables features
31
+ */
32
+
33
+ .dataTables_wrapper {
34
+ position: relative;
35
+ clear: both;
36
+ zoom: 1; /* Feeling sorry for IE */
37
+ }
38
+
39
+ .dataTables_processing {
40
+ position: absolute;
41
+ top: 50%;
42
+ left: 50%;
43
+ width: 250px;
44
+ height: 30px;
45
+ margin-left: -125px;
46
+ margin-top: -15px;
47
+ padding: 14px 0 2px 0;
48
+ border: 1px solid #ddd;
49
+ text-align: center;
50
+ color: #999;
51
+ font-size: 14px;
52
+ background-color: white;
53
+ }
54
+
55
+ .dataTables_length {
56
+ width: 40%;
57
+ float: left;
58
+ }
59
+
60
+ .dataTables_filter {
61
+ width: 50%;
62
+ float: right;
63
+ text-align: right;
64
+ }
65
+
66
+ .dataTables_info {
67
+ width: 60%;
68
+ float: left;
69
+ }
70
+
71
+ .dataTables_paginate {
72
+ float: right;
73
+ text-align: right;
74
+ }
75
+
76
+ /* Pagination nested */
77
+ .paginate_disabled_previous, .paginate_enabled_previous,
78
+ .paginate_disabled_next, .paginate_enabled_next {
79
+ height: 19px;
80
+ float: left;
81
+ cursor: pointer;
82
+ *cursor: hand;
83
+ color: #111 !important;
84
+ }
85
+ .paginate_disabled_previous:hover, .paginate_enabled_previous:hover,
86
+ .paginate_disabled_next:hover, .paginate_enabled_next:hover {
87
+ text-decoration: none !important;
88
+ }
89
+ .paginate_disabled_previous:active, .paginate_enabled_previous:active,
90
+ .paginate_disabled_next:active, .paginate_enabled_next:active {
91
+ outline: none;
92
+ }
93
+
94
+ .paginate_disabled_previous,
95
+ .paginate_disabled_next {
96
+ color: #666 !important;
97
+ }
98
+ .paginate_disabled_previous, .paginate_enabled_previous {
99
+ padding-left: 23px;
100
+ }
101
+ .paginate_disabled_next, .paginate_enabled_next {
102
+ padding-right: 23px;
103
+ margin-left: 10px;
104
+ }
105
+
106
+ .paginate_disabled_previous {
107
+ background: url('/assets/dataTables/back_disabled.png') no-repeat top left;
108
+ }
109
+
110
+ .paginate_enabled_previous {
111
+ background: url('/assets/dataTables/back_enabled.png') no-repeat top left;
112
+ }
113
+ .paginate_enabled_previous:hover {
114
+ background: url('/assets/dataTables/back_enabled_hover.png') no-repeat top left;
115
+ }
116
+
117
+ .paginate_disabled_next {
118
+ background: url('/assets/dataTables/forward_disabled.png') no-repeat top right;
119
+ }
120
+
121
+ .paginate_enabled_next {
122
+ background: url('/assets/dataTables/forward_enabled.png') no-repeat top right;
123
+ }
124
+ .paginate_enabled_next:hover {
125
+ background: url('/assets/dataTables/forward_enabled_hover.png') no-repeat top right;
126
+ }
127
+
128
+
129
+
130
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
131
+ * DataTables display
132
+ */
133
+ table.display {
134
+ margin: 0 auto;
135
+ clear: both;
136
+ width: 100%;
137
+
138
+ /* Note Firefox 3.5 and before have a bug with border-collapse
139
+ * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
140
+ * border-spacing: 0; is one possible option. Conditional-css.com is
141
+ * useful for this kind of thing
142
+ *
143
+ * Further note IE 6/7 has problems when calculating widths with border width.
144
+ * It subtracts one px relative to the other browsers from the first column, and
145
+ * adds one to the end...
146
+ *
147
+ * If you want that effect I'd suggest setting a border-top/left on th/td's and
148
+ * then filling in the gaps with other borders.
149
+ */
150
+ }
151
+
152
+ table.display thead th {
153
+ padding: 3px 18px 3px 10px;
154
+ border-bottom: 1px solid black;
155
+ font-weight: bold;
156
+ cursor: pointer;
157
+ * cursor: hand;
158
+ }
159
+
160
+ table.display tfoot th {
161
+ padding: 3px 18px 3px 10px;
162
+ border-top: 1px solid black;
163
+ font-weight: bold;
164
+ }
165
+
166
+ table.display tr.heading2 td {
167
+ border-bottom: 1px solid #aaa;
168
+ }
169
+
170
+ table.display td {
171
+ padding: 3px 10px;
172
+ }
173
+
174
+ table.display td.center {
175
+ text-align: center;
176
+ }
177
+
178
+
179
+
180
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
181
+ * DataTables sorting
182
+ */
183
+
184
+ .sorting_asc {
185
+ background: url('/assets/dataTables/sort_asc.png') no-repeat center right;
186
+ }
187
+
188
+ .sorting_desc {
189
+ background: url('/assets/dataTables/sort_desc.png') no-repeat center right;
190
+ }
191
+
192
+ .sorting {
193
+ background: url('/assets/dataTables/sort_both.png') no-repeat center right;
194
+ }
195
+
196
+ .sorting_asc_disabled {
197
+ background: url('/assets/dataTables/sort_asc_disabled.png') no-repeat center right;
198
+ }
199
+
200
+ .sorting_desc_disabled {
201
+ background: url('/assets/dataTables/sort_desc_disabled.png') no-repeat center right;
202
+ }
203
+
204
+ th:active {
205
+ outline: none;
206
+ }
207
+
208
+
209
+
210
+
211
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
212
+ * DataTables row classes
213
+ */
214
+ table.display tr.odd.gradeA {
215
+ background-color: #ddffdd;
216
+ }
217
+
218
+ table.display tr.even.gradeA {
219
+ background-color: #eeffee;
220
+ }
221
+
222
+ table.display tr.odd.gradeC {
223
+ background-color: #ddddff;
224
+ }
225
+
226
+ table.display tr.even.gradeC {
227
+ background-color: #eeeeff;
228
+ }
229
+
230
+ table.display tr.odd.gradeX {
231
+ background-color: #ffdddd;
232
+ }
233
+
234
+ table.display tr.even.gradeX {
235
+ background-color: #ffeeee;
236
+ }
237
+
238
+ table.display tr.odd.gradeU {
239
+ background-color: #ddd;
240
+ }
241
+
242
+ table.display tr.even.gradeU {
243
+ background-color: #eee;
244
+ }
245
+
246
+
247
+ tr.odd {
248
+ background-color: #E2E4FF;
249
+ }
250
+
251
+ tr.even {
252
+ background-color: white;
253
+ }
254
+
255
+
256
+
257
+
258
+
259
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
260
+ * Misc
261
+ */
262
+ .dataTables_scroll {
263
+ clear: both;
264
+ }
265
+
266
+ .dataTables_scrollBody {
267
+ *margin-top: -1px;
268
+ }
269
+
270
+ .top, .bottom {
271
+ padding: 15px;
272
+ background-color: #F5F5F5;
273
+ border: 1px solid #CCCCCC;
274
+ }
275
+
276
+ .top .dataTables_info {
277
+ float: none;
278
+ }
279
+
280
+ .clear {
281
+ clear: both;
282
+ }
283
+
284
+ .dataTables_empty {
285
+ text-align: center;
286
+ }
287
+
288
+ tfoot input {
289
+ margin: 0.5em 0;
290
+ width: 100%;
291
+ color: #444;
292
+ }
293
+
294
+ tfoot input.search_init {
295
+ color: #999;
296
+ }
297
+
298
+ td.group {
299
+ background-color: #d1cfd0;
300
+ border-bottom: 2px solid #A19B9E;
301
+ border-top: 2px solid #A19B9E;
302
+ }
303
+
304
+ td.details {
305
+ background-color: #d1cfd0;
306
+ border: 2px solid #A19B9E;
307
+ }
308
+
309
+
310
+ .example_alt_pagination div.dataTables_info {
311
+ width: 40%;
312
+ }
313
+
314
+ .paging_full_numbers {
315
+ width: 400px;
316
+ height: 22px;
317
+ line-height: 22px;
318
+ }
319
+
320
+ .paging_full_numbers a:active {
321
+ outline: none
322
+ }
323
+
324
+ .paging_full_numbers a:hover {
325
+ text-decoration: none;
326
+ }
327
+
328
+ .paging_full_numbers a.paginate_button,
329
+ .paging_full_numbers a.paginate_active {
330
+ border: 1px solid #aaa;
331
+ -webkit-border-radius: 5px;
332
+ -moz-border-radius: 5px;
333
+ padding: 2px 5px;
334
+ margin: 0 3px;
335
+ cursor: pointer;
336
+ *cursor: hand;
337
+ color: #333 !important;
338
+ }
339
+
340
+ .paging_full_numbers a.paginate_button {
341
+ background-color: #ddd;
342
+ }
343
+
344
+ .paging_full_numbers a.paginate_button:hover {
345
+ background-color: #ccc;
346
+ text-decoration: none !important;
347
+ }
348
+
349
+ .paging_full_numbers a.paginate_active {
350
+ background-color: #99B3FF;
351
+ }
352
+
353
+ table.display tr.even.row_selected td {
354
+ background-color: #B0BED9;
355
+ }
356
+
357
+ table.display tr.odd.row_selected td {
358
+ background-color: #9FAFD1;
359
+ }
360
+
361
+
362
+ /*
363
+ * Sorting classes for columns
364
+ */
365
+ /* For the standard odd/even */
366
+ tr.odd td.sorting_1 {
367
+ background-color: #D3D6FF;
368
+ }
369
+
370
+ tr.odd td.sorting_2 {
371
+ background-color: #DADCFF;
372
+ }
373
+
374
+ tr.odd td.sorting_3 {
375
+ background-color: #E0E2FF;
376
+ }
377
+
378
+ tr.even td.sorting_1 {
379
+ background-color: #EAEBFF;
380
+ }
381
+
382
+ tr.even td.sorting_2 {
383
+ background-color: #F2F3FF;
384
+ }
385
+
386
+ tr.even td.sorting_3 {
387
+ background-color: #F9F9FF;
388
+ }
389
+
390
+
391
+ /* For the Conditional-CSS grading rows */
392
+ /*
393
+ Colour calculations (based off the main row colours)
394
+ Level 1:
395
+ dd > c4
396
+ ee > d5
397
+ Level 2:
398
+ dd > d1
399
+ ee > e2
400
+ */
401
+ tr.odd.gradeA td.sorting_1 {
402
+ background-color: #c4ffc4;
403
+ }
404
+
405
+ tr.odd.gradeA td.sorting_2 {
406
+ background-color: #d1ffd1;
407
+ }
408
+
409
+ tr.odd.gradeA td.sorting_3 {
410
+ background-color: #d1ffd1;
411
+ }
412
+
413
+ tr.even.gradeA td.sorting_1 {
414
+ background-color: #d5ffd5;
415
+ }
416
+
417
+ tr.even.gradeA td.sorting_2 {
418
+ background-color: #e2ffe2;
419
+ }
420
+
421
+ tr.even.gradeA td.sorting_3 {
422
+ background-color: #e2ffe2;
423
+ }
424
+
425
+ tr.odd.gradeC td.sorting_1 {
426
+ background-color: #c4c4ff;
427
+ }
428
+
429
+ tr.odd.gradeC td.sorting_2 {
430
+ background-color: #d1d1ff;
431
+ }
432
+
433
+ tr.odd.gradeC td.sorting_3 {
434
+ background-color: #d1d1ff;
435
+ }
436
+
437
+ tr.even.gradeC td.sorting_1 {
438
+ background-color: #d5d5ff;
439
+ }
440
+
441
+ tr.even.gradeC td.sorting_2 {
442
+ background-color: #e2e2ff;
443
+ }
444
+
445
+ tr.even.gradeC td.sorting_3 {
446
+ background-color: #e2e2ff;
447
+ }
448
+
449
+ tr.odd.gradeX td.sorting_1 {
450
+ background-color: #ffc4c4;
451
+ }
452
+
453
+ tr.odd.gradeX td.sorting_2 {
454
+ background-color: #ffd1d1;
455
+ }
456
+
457
+ tr.odd.gradeX td.sorting_3 {
458
+ background-color: #ffd1d1;
459
+ }
460
+
461
+ tr.even.gradeX td.sorting_1 {
462
+ background-color: #ffd5d5;
463
+ }
464
+
465
+ tr.even.gradeX td.sorting_2 {
466
+ background-color: #ffe2e2;
467
+ }
468
+
469
+ tr.even.gradeX td.sorting_3 {
470
+ background-color: #ffe2e2;
471
+ }
472
+
473
+ tr.odd.gradeU td.sorting_1 {
474
+ background-color: #c4c4c4;
475
+ }
476
+
477
+ tr.odd.gradeU td.sorting_2 {
478
+ background-color: #d1d1d1;
479
+ }
480
+
481
+ tr.odd.gradeU td.sorting_3 {
482
+ background-color: #d1d1d1;
483
+ }
484
+
485
+ tr.even.gradeU td.sorting_1 {
486
+ background-color: #d5d5d5;
487
+ }
488
+
489
+ tr.even.gradeU td.sorting_2 {
490
+ background-color: #e2e2e2;
491
+ }
492
+
493
+ tr.even.gradeU td.sorting_3 {
494
+ background-color: #e2e2e2;
495
+ }
496
+
497
+
498
+ /*
499
+ * Row highlighting example
500
+ */
501
+ .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
502
+ background-color: #ECFFB3;
503
+ }
504
+
505
+ .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
506
+ background-color: #E6FF99;
507
+ }
508
+
509
+ .ex_highlight_row #example tr.even:hover {
510
+ background-color: #ECFFB3;
511
+ }
512
+
513
+ .ex_highlight_row #example tr.even:hover td.sorting_1 {
514
+ background-color: #DDFF75;
515
+ }
516
+
517
+ .ex_highlight_row #example tr.even:hover td.sorting_2 {
518
+ background-color: #E7FF9E;
519
+ }
520
+
521
+ .ex_highlight_row #example tr.even:hover td.sorting_3 {
522
+ background-color: #E2FF89;
523
+ }
524
+
525
+ .ex_highlight_row #example tr.odd:hover {
526
+ background-color: #E6FF99;
527
+ }
528
+
529
+ .ex_highlight_row #example tr.odd:hover td.sorting_1 {
530
+ background-color: #D6FF5C;
531
+ }
532
+
533
+ .ex_highlight_row #example tr.odd:hover td.sorting_2 {
534
+ background-color: #E0FF84;
535
+ }
536
+
537
+ .ex_highlight_row #example tr.odd:hover td.sorting_3 {
538
+ background-color: #DBFF70;
539
+ }
540
+
541
+
542
+ /*
543
+ * KeyTable
544
+ */
545
+ table.KeyTable td {
546
+ border: 3px solid transparent;
547
+ }
548
+
549
+ table.KeyTable td.focus {
550
+ border: 3px solid #3366FF;
551
+ }
552
+
553
+ table.display tr.gradeA {
554
+ background-color: #eeffee;
555
+ }
556
+
557
+ table.display tr.gradeC {
558
+ background-color: #ddddff;
559
+ }
560
+
561
+ table.display tr.gradeX {
562
+ background-color: #ffdddd;
563
+ }
564
+
565
+ table.display tr.gradeU {
566
+ background-color: #ddd;
567
+ }
568
+
569
+ div.box {
570
+ height: 100px;
571
+ padding: 10px;
572
+ overflow: auto;
573
+ border: 1px solid #8080FF;
574
+ background-color: #E5E5FF;
575
+ }