jquery-datatables 1.10.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +27 -0
- data/README.md +118 -0
- data/Rakefile +166 -0
- data/app/assets/images/datatables/sort_asc.png +0 -0
- data/app/assets/images/datatables/sort_asc_disabled.png +0 -0
- data/app/assets/images/datatables/sort_both.png +0 -0
- data/app/assets/images/datatables/sort_desc.png +0 -0
- data/app/assets/images/datatables/sort_desc_disabled.png +0 -0
- data/app/assets/javascripts/datatables/dataTables.bootstrap.js +182 -0
- data/app/assets/javascripts/datatables/dataTables.bootstrap4.js +184 -0
- data/app/assets/javascripts/datatables/dataTables.foundation.js +174 -0
- data/app/assets/javascripts/datatables/dataTables.jqueryui.js +164 -0
- data/app/assets/javascripts/datatables/dataTables.material.js +191 -0
- data/app/assets/javascripts/datatables/dataTables.semanticui.js +208 -0
- data/app/assets/javascripts/datatables/dataTables.uikit.js +176 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/autoFill.bootstrap.js +43 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/autoFill.bootstrap4.js +43 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/autoFill.foundation.js +43 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/autoFill.jqueryui.js +43 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/autoFill.semanticui.js +43 -0
- data/app/assets/javascripts/datatables/extensions/AutoFill/dataTables.autoFill.js +1036 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap.js +68 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap4.js +60 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.colVis.js +199 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.flash.js +1325 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.foundation.js +85 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.html5.js +1322 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.jqueryui.js +62 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.print.js +172 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/buttons.semanticui.js +57 -0
- data/app/assets/javascripts/datatables/extensions/Buttons/dataTables.buttons.js +1634 -0
- data/app/assets/javascripts/datatables/extensions/ColReorder/dataTables.colReorder.js +1335 -0
- data/app/assets/javascripts/datatables/extensions/FixedColumns/dataTables.fixedColumns.js +1623 -0
- data/app/assets/javascripts/datatables/extensions/FixedHeader/dataTables.fixedHeader.js +672 -0
- data/app/assets/javascripts/datatables/extensions/KeyTable/dataTables.keyTable.js +883 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/dataTables.responsive.js +1232 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.bootstrap.js +81 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.bootstrap4.js +81 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.foundation.js +62 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.jqueryui.js +63 -0
- data/app/assets/javascripts/datatables/extensions/Responsive/responsive.semanticui.js +77 -0
- data/app/assets/javascripts/datatables/extensions/RowReorder/dataTables.rowReorder.js +709 -0
- data/app/assets/javascripts/datatables/extensions/Scroller/dataTables.scroller.js +1349 -0
- data/app/assets/javascripts/datatables/extensions/Select/dataTables.select.js +1109 -0
- data/app/assets/javascripts/datatables/jquery.dataTables.js +15278 -0
- data/app/assets/media/swf/flashExport.swf +0 -0
- data/app/assets/stylesheets/datatables/dataTables.bootstrap.css +185 -0
- data/app/assets/stylesheets/datatables/dataTables.bootstrap4.css +193 -0
- data/app/assets/stylesheets/datatables/dataTables.foundation.css +116 -0
- data/app/assets/stylesheets/datatables/dataTables.jqueryui.css +481 -0
- data/app/assets/stylesheets/datatables/dataTables.material.css +87 -0
- data/app/assets/stylesheets/datatables/dataTables.semanticui.css +103 -0
- data/app/assets/stylesheets/datatables/dataTables.uikit.css +146 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap.css +81 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.bootstrap4.css +81 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.css +92 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.foundation.css +85 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.jqueryui.css +85 -0
- data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.semanticui.css +81 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.css +102 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.css +163 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.css +298 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.css +129 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.css +162 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.css +114 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/common.scss +27 -0
- data/app/assets/stylesheets/datatables/extensions/Buttons/mixins.scss +89 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.bootstrap4.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.dataTables.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.foundation.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.jqueryui.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/ColReorder/colReorder.semanticui.css +11 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.css +44 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap4.css +44 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.dataTables.css +18 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.foundation.css +27 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.jqueryui.css +8 -0
- data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.semanticui.css +16 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.bootstrap.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.bootstrap4.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.dataTables.css +19 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.foundation.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.jqueryui.css +15 -0
- data/app/assets/stylesheets/datatables/extensions/FixedHeader/fixedHeader.semanticui.css +14 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.bootstrap4.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.foundation.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.jqueryui.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.semanticui.css +5 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap.css +181 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.bootstrap4.css +181 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.dataTables.css +178 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.foundation.css +181 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.jqueryui.css +178 -0
- data/app/assets/stylesheets/datatables/extensions/Responsive/responsive.semanticui.css +181 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.bootstrap4.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.dataTables.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.foundation.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.jqueryui.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/rowReorder.semanticui.css +22 -0
- data/app/assets/stylesheets/datatables/extensions/RowReorder/semanticui.scss +5 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap.css +24 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.bootstrap4.css +24 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.foundation.css +17 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.jqueryui.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.semanticui.css +20 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap.css +110 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.bootstrap4.css +110 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.dataTables.css +100 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.foundation.css +112 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.jqueryui.css +100 -0
- data/app/assets/stylesheets/datatables/extensions/Select/select.semanticui.css +105 -0
- data/app/assets/stylesheets/datatables/jquery.dataTables.css +452 -0
- data/app/assets/stylesheets/datatables/jquery.dataTables_themeroller.css +416 -0
- data/jquery-datatables.gemspec +27 -0
- data/lib/generators/jquery/datatables/install_generator.rb +63 -0
- data/lib/generators/jquery/datatables/templates/bootstrap.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/bootstrap.js.tt +22 -0
- data/lib/generators/jquery/datatables/templates/bootstrap4.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/bootstrap4.js.tt +22 -0
- data/lib/generators/jquery/datatables/templates/foundation.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/foundation.js.tt +24 -0
- data/lib/generators/jquery/datatables/templates/jqueryui.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/jqueryui.js.tt +18 -0
- data/lib/generators/jquery/datatables/templates/material.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/material.js.tt +19 -0
- data/lib/generators/jquery/datatables/templates/regular.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/regular.js.tt +18 -0
- data/lib/generators/jquery/datatables/templates/semanticui.css.tt +16 -0
- data/lib/generators/jquery/datatables/templates/semanticui.js.tt +22 -0
- data/lib/generators/jquery/datatables/templates/uikit.css.tt +15 -0
- data/lib/generators/jquery/datatables/templates/uikit.js.tt +19 -0
- data/lib/jquery-datatables.rb +26 -0
- data/lib/jquery-datatables/engine.rb +11 -0
- data/lib/jquery-datatables/version.rb +6 -0
- metadata +269 -0
@@ -0,0 +1,416 @@
|
|
1
|
+
/*
|
2
|
+
* Table styles
|
3
|
+
*/
|
4
|
+
table.dataTable {
|
5
|
+
width: 100%;
|
6
|
+
margin: 0 auto;
|
7
|
+
clear: both;
|
8
|
+
border-collapse: separate;
|
9
|
+
border-spacing: 0;
|
10
|
+
/*
|
11
|
+
* Header and footer styles
|
12
|
+
*/
|
13
|
+
/*
|
14
|
+
* Body styles
|
15
|
+
*/
|
16
|
+
}
|
17
|
+
table.dataTable thead th,
|
18
|
+
table.dataTable thead td,
|
19
|
+
table.dataTable tfoot th,
|
20
|
+
table.dataTable tfoot td {
|
21
|
+
padding: 4px 10px;
|
22
|
+
}
|
23
|
+
table.dataTable thead th,
|
24
|
+
table.dataTable tfoot th {
|
25
|
+
font-weight: bold;
|
26
|
+
}
|
27
|
+
table.dataTable thead th:active,
|
28
|
+
table.dataTable thead td:active {
|
29
|
+
outline: none;
|
30
|
+
}
|
31
|
+
table.dataTable thead .sorting_asc,
|
32
|
+
table.dataTable thead .sorting_desc,
|
33
|
+
table.dataTable thead .sorting {
|
34
|
+
cursor: pointer;
|
35
|
+
*cursor: hand;
|
36
|
+
}
|
37
|
+
table.dataTable thead th div.DataTables_sort_wrapper {
|
38
|
+
position: relative;
|
39
|
+
padding-right: 10px;
|
40
|
+
}
|
41
|
+
table.dataTable thead th div.DataTables_sort_wrapper span {
|
42
|
+
position: absolute;
|
43
|
+
top: 50%;
|
44
|
+
margin-top: -8px;
|
45
|
+
right: -5px;
|
46
|
+
}
|
47
|
+
table.dataTable thead th.ui-state-default {
|
48
|
+
border-right-width: 0;
|
49
|
+
}
|
50
|
+
table.dataTable thead th.ui-state-default:last-child {
|
51
|
+
border-right-width: 1px;
|
52
|
+
}
|
53
|
+
table.dataTable tbody tr {
|
54
|
+
background-color: #ffffff;
|
55
|
+
}
|
56
|
+
table.dataTable tbody tr.selected {
|
57
|
+
background-color: #B0BED9;
|
58
|
+
}
|
59
|
+
table.dataTable tbody th,
|
60
|
+
table.dataTable tbody td {
|
61
|
+
padding: 8px 10px;
|
62
|
+
}
|
63
|
+
table.dataTable th.center,
|
64
|
+
table.dataTable td.center,
|
65
|
+
table.dataTable td.dataTables_empty {
|
66
|
+
text-align: center;
|
67
|
+
}
|
68
|
+
table.dataTable th.right,
|
69
|
+
table.dataTable td.right {
|
70
|
+
text-align: right;
|
71
|
+
}
|
72
|
+
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
|
73
|
+
border-top: 1px solid #ddd;
|
74
|
+
}
|
75
|
+
table.dataTable.row-border tbody tr:first-child th,
|
76
|
+
table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th,
|
77
|
+
table.dataTable.display tbody tr:first-child td {
|
78
|
+
border-top: none;
|
79
|
+
}
|
80
|
+
table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {
|
81
|
+
border-top: 1px solid #ddd;
|
82
|
+
border-right: 1px solid #ddd;
|
83
|
+
}
|
84
|
+
table.dataTable.cell-border tbody tr th:first-child,
|
85
|
+
table.dataTable.cell-border tbody tr td:first-child {
|
86
|
+
border-left: 1px solid #ddd;
|
87
|
+
}
|
88
|
+
table.dataTable.cell-border tbody tr:first-child th,
|
89
|
+
table.dataTable.cell-border tbody tr:first-child td {
|
90
|
+
border-top: none;
|
91
|
+
}
|
92
|
+
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
|
93
|
+
background-color: #f9f9f9;
|
94
|
+
}
|
95
|
+
table.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected {
|
96
|
+
background-color: #abb9d3;
|
97
|
+
}
|
98
|
+
table.dataTable.hover tbody tr:hover,
|
99
|
+
table.dataTable.hover tbody tr.odd:hover,
|
100
|
+
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,
|
101
|
+
table.dataTable.display tbody tr.odd:hover,
|
102
|
+
table.dataTable.display tbody tr.even:hover {
|
103
|
+
background-color: whitesmoke;
|
104
|
+
}
|
105
|
+
table.dataTable.hover tbody tr:hover.selected,
|
106
|
+
table.dataTable.hover tbody tr.odd:hover.selected,
|
107
|
+
table.dataTable.hover tbody tr.even:hover.selected, table.dataTable.display tbody tr:hover.selected,
|
108
|
+
table.dataTable.display tbody tr.odd:hover.selected,
|
109
|
+
table.dataTable.display tbody tr.even:hover.selected {
|
110
|
+
background-color: #a9b7d1;
|
111
|
+
}
|
112
|
+
table.dataTable.order-column tbody tr > .sorting_1,
|
113
|
+
table.dataTable.order-column tbody tr > .sorting_2,
|
114
|
+
table.dataTable.order-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1,
|
115
|
+
table.dataTable.display tbody tr > .sorting_2,
|
116
|
+
table.dataTable.display tbody tr > .sorting_3 {
|
117
|
+
background-color: #f9f9f9;
|
118
|
+
}
|
119
|
+
table.dataTable.order-column tbody tr.selected > .sorting_1,
|
120
|
+
table.dataTable.order-column tbody tr.selected > .sorting_2,
|
121
|
+
table.dataTable.order-column tbody tr.selected > .sorting_3, table.dataTable.display tbody tr.selected > .sorting_1,
|
122
|
+
table.dataTable.display tbody tr.selected > .sorting_2,
|
123
|
+
table.dataTable.display tbody tr.selected > .sorting_3 {
|
124
|
+
background-color: #acbad4;
|
125
|
+
}
|
126
|
+
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
|
127
|
+
background-color: #f1f1f1;
|
128
|
+
}
|
129
|
+
table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd > .sorting_2 {
|
130
|
+
background-color: #f3f3f3;
|
131
|
+
}
|
132
|
+
table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd > .sorting_3 {
|
133
|
+
background-color: whitesmoke;
|
134
|
+
}
|
135
|
+
table.dataTable.display tbody tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_1 {
|
136
|
+
background-color: #a6b3cd;
|
137
|
+
}
|
138
|
+
table.dataTable.display tbody tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_2 {
|
139
|
+
background-color: #a7b5ce;
|
140
|
+
}
|
141
|
+
table.dataTable.display tbody tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_3 {
|
142
|
+
background-color: #a9b6d0;
|
143
|
+
}
|
144
|
+
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
|
145
|
+
background-color: #f9f9f9;
|
146
|
+
}
|
147
|
+
table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.order-column.stripe tbody tr.even > .sorting_2 {
|
148
|
+
background-color: #fbfbfb;
|
149
|
+
}
|
150
|
+
table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.order-column.stripe tbody tr.even > .sorting_3 {
|
151
|
+
background-color: #fdfdfd;
|
152
|
+
}
|
153
|
+
table.dataTable.display tbody tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_1 {
|
154
|
+
background-color: #acbad4;
|
155
|
+
}
|
156
|
+
table.dataTable.display tbody tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_2 {
|
157
|
+
background-color: #adbbd6;
|
158
|
+
}
|
159
|
+
table.dataTable.display tbody tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_3 {
|
160
|
+
background-color: #afbdd8;
|
161
|
+
}
|
162
|
+
table.dataTable.display tbody tr:hover > .sorting_1,
|
163
|
+
table.dataTable.display tbody tr.odd:hover > .sorting_1,
|
164
|
+
table.dataTable.display tbody tr.even:hover > .sorting_1, table.dataTable.order-column.hover tbody tr:hover > .sorting_1,
|
165
|
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_1,
|
166
|
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_1 {
|
167
|
+
background-color: #eaeaea;
|
168
|
+
}
|
169
|
+
table.dataTable.display tbody tr:hover > .sorting_2,
|
170
|
+
table.dataTable.display tbody tr.odd:hover > .sorting_2,
|
171
|
+
table.dataTable.display tbody tr.even:hover > .sorting_2, table.dataTable.order-column.hover tbody tr:hover > .sorting_2,
|
172
|
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_2,
|
173
|
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_2 {
|
174
|
+
background-color: #ebebeb;
|
175
|
+
}
|
176
|
+
table.dataTable.display tbody tr:hover > .sorting_3,
|
177
|
+
table.dataTable.display tbody tr.odd:hover > .sorting_3,
|
178
|
+
table.dataTable.display tbody tr.even:hover > .sorting_3, table.dataTable.order-column.hover tbody tr:hover > .sorting_3,
|
179
|
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_3,
|
180
|
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_3 {
|
181
|
+
background-color: #eeeeee;
|
182
|
+
}
|
183
|
+
table.dataTable.display tbody tr:hover.selected > .sorting_1,
|
184
|
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_1,
|
185
|
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_1, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1,
|
186
|
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_1,
|
187
|
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_1 {
|
188
|
+
background-color: #a1aec7;
|
189
|
+
}
|
190
|
+
table.dataTable.display tbody tr:hover.selected > .sorting_2,
|
191
|
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_2,
|
192
|
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_2, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2,
|
193
|
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_2,
|
194
|
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_2 {
|
195
|
+
background-color: #a2afc8;
|
196
|
+
}
|
197
|
+
table.dataTable.display tbody tr:hover.selected > .sorting_3,
|
198
|
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_3,
|
199
|
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_3, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3,
|
200
|
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_3,
|
201
|
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_3 {
|
202
|
+
background-color: #a4b2cb;
|
203
|
+
}
|
204
|
+
table.dataTable.nowrap th, table.dataTable.nowrap td {
|
205
|
+
white-space: nowrap;
|
206
|
+
}
|
207
|
+
table.dataTable.compact thead th,
|
208
|
+
table.dataTable.compact thead td {
|
209
|
+
padding: 5px 9px;
|
210
|
+
}
|
211
|
+
table.dataTable.compact tfoot th,
|
212
|
+
table.dataTable.compact tfoot td {
|
213
|
+
padding: 5px 9px 3px 9px;
|
214
|
+
}
|
215
|
+
table.dataTable.compact tbody th,
|
216
|
+
table.dataTable.compact tbody td {
|
217
|
+
padding: 4px 5px;
|
218
|
+
}
|
219
|
+
table.dataTable th.dt-left,
|
220
|
+
table.dataTable td.dt-left {
|
221
|
+
text-align: left;
|
222
|
+
}
|
223
|
+
table.dataTable th.dt-center,
|
224
|
+
table.dataTable td.dt-center,
|
225
|
+
table.dataTable td.dataTables_empty {
|
226
|
+
text-align: center;
|
227
|
+
}
|
228
|
+
table.dataTable th.dt-right,
|
229
|
+
table.dataTable td.dt-right {
|
230
|
+
text-align: right;
|
231
|
+
}
|
232
|
+
table.dataTable th.dt-justify,
|
233
|
+
table.dataTable td.dt-justify {
|
234
|
+
text-align: justify;
|
235
|
+
}
|
236
|
+
table.dataTable th.dt-nowrap,
|
237
|
+
table.dataTable td.dt-nowrap {
|
238
|
+
white-space: nowrap;
|
239
|
+
}
|
240
|
+
table.dataTable thead th.dt-head-left,
|
241
|
+
table.dataTable thead td.dt-head-left,
|
242
|
+
table.dataTable tfoot th.dt-head-left,
|
243
|
+
table.dataTable tfoot td.dt-head-left {
|
244
|
+
text-align: left;
|
245
|
+
}
|
246
|
+
table.dataTable thead th.dt-head-center,
|
247
|
+
table.dataTable thead td.dt-head-center,
|
248
|
+
table.dataTable tfoot th.dt-head-center,
|
249
|
+
table.dataTable tfoot td.dt-head-center {
|
250
|
+
text-align: center;
|
251
|
+
}
|
252
|
+
table.dataTable thead th.dt-head-right,
|
253
|
+
table.dataTable thead td.dt-head-right,
|
254
|
+
table.dataTable tfoot th.dt-head-right,
|
255
|
+
table.dataTable tfoot td.dt-head-right {
|
256
|
+
text-align: right;
|
257
|
+
}
|
258
|
+
table.dataTable thead th.dt-head-justify,
|
259
|
+
table.dataTable thead td.dt-head-justify,
|
260
|
+
table.dataTable tfoot th.dt-head-justify,
|
261
|
+
table.dataTable tfoot td.dt-head-justify {
|
262
|
+
text-align: justify;
|
263
|
+
}
|
264
|
+
table.dataTable thead th.dt-head-nowrap,
|
265
|
+
table.dataTable thead td.dt-head-nowrap,
|
266
|
+
table.dataTable tfoot th.dt-head-nowrap,
|
267
|
+
table.dataTable tfoot td.dt-head-nowrap {
|
268
|
+
white-space: nowrap;
|
269
|
+
}
|
270
|
+
table.dataTable tbody th.dt-body-left,
|
271
|
+
table.dataTable tbody td.dt-body-left {
|
272
|
+
text-align: left;
|
273
|
+
}
|
274
|
+
table.dataTable tbody th.dt-body-center,
|
275
|
+
table.dataTable tbody td.dt-body-center {
|
276
|
+
text-align: center;
|
277
|
+
}
|
278
|
+
table.dataTable tbody th.dt-body-right,
|
279
|
+
table.dataTable tbody td.dt-body-right {
|
280
|
+
text-align: right;
|
281
|
+
}
|
282
|
+
table.dataTable tbody th.dt-body-justify,
|
283
|
+
table.dataTable tbody td.dt-body-justify {
|
284
|
+
text-align: justify;
|
285
|
+
}
|
286
|
+
table.dataTable tbody th.dt-body-nowrap,
|
287
|
+
table.dataTable tbody td.dt-body-nowrap {
|
288
|
+
white-space: nowrap;
|
289
|
+
}
|
290
|
+
|
291
|
+
table.dataTable,
|
292
|
+
table.dataTable th,
|
293
|
+
table.dataTable td {
|
294
|
+
-webkit-box-sizing: content-box;
|
295
|
+
-moz-box-sizing: content-box;
|
296
|
+
box-sizing: content-box;
|
297
|
+
}
|
298
|
+
|
299
|
+
/*
|
300
|
+
* Control feature layout
|
301
|
+
*/
|
302
|
+
.dataTables_wrapper {
|
303
|
+
position: relative;
|
304
|
+
clear: both;
|
305
|
+
*zoom: 1;
|
306
|
+
zoom: 1;
|
307
|
+
}
|
308
|
+
.dataTables_wrapper .dataTables_length {
|
309
|
+
float: left;
|
310
|
+
}
|
311
|
+
.dataTables_wrapper .dataTables_filter {
|
312
|
+
float: right;
|
313
|
+
text-align: right;
|
314
|
+
}
|
315
|
+
.dataTables_wrapper .dataTables_filter input {
|
316
|
+
margin-left: 0.5em;
|
317
|
+
}
|
318
|
+
.dataTables_wrapper .dataTables_info {
|
319
|
+
clear: both;
|
320
|
+
float: left;
|
321
|
+
padding-top: 0.55em;
|
322
|
+
}
|
323
|
+
.dataTables_wrapper .dataTables_paginate {
|
324
|
+
float: right;
|
325
|
+
text-align: right;
|
326
|
+
}
|
327
|
+
.dataTables_wrapper .dataTables_paginate .fg-button {
|
328
|
+
box-sizing: border-box;
|
329
|
+
display: inline-block;
|
330
|
+
min-width: 1.5em;
|
331
|
+
padding: 0.5em;
|
332
|
+
margin-left: 2px;
|
333
|
+
text-align: center;
|
334
|
+
text-decoration: none !important;
|
335
|
+
cursor: pointer;
|
336
|
+
*cursor: hand;
|
337
|
+
color: #333 !important;
|
338
|
+
border: 1px solid transparent;
|
339
|
+
}
|
340
|
+
.dataTables_wrapper .dataTables_paginate .fg-button:active {
|
341
|
+
outline: none;
|
342
|
+
}
|
343
|
+
.dataTables_wrapper .dataTables_paginate .fg-button:first-child {
|
344
|
+
border-top-left-radius: 3px;
|
345
|
+
border-bottom-left-radius: 3px;
|
346
|
+
}
|
347
|
+
.dataTables_wrapper .dataTables_paginate .fg-button:last-child {
|
348
|
+
border-top-right-radius: 3px;
|
349
|
+
border-bottom-right-radius: 3px;
|
350
|
+
}
|
351
|
+
.dataTables_wrapper .dataTables_processing {
|
352
|
+
position: absolute;
|
353
|
+
top: 50%;
|
354
|
+
left: 50%;
|
355
|
+
width: 100%;
|
356
|
+
height: 40px;
|
357
|
+
margin-left: -50%;
|
358
|
+
margin-top: -25px;
|
359
|
+
padding-top: 20px;
|
360
|
+
text-align: center;
|
361
|
+
font-size: 1.2em;
|
362
|
+
background-color: white;
|
363
|
+
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)));
|
364
|
+
/* Chrome,Safari4+ */
|
365
|
+
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%);
|
366
|
+
/* Chrome10+,Safari5.1+ */
|
367
|
+
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%);
|
368
|
+
/* FF3.6+ */
|
369
|
+
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%);
|
370
|
+
/* IE10+ */
|
371
|
+
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%);
|
372
|
+
/* Opera 11.10+ */
|
373
|
+
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%);
|
374
|
+
/* W3C */
|
375
|
+
}
|
376
|
+
.dataTables_wrapper .dataTables_length,
|
377
|
+
.dataTables_wrapper .dataTables_filter,
|
378
|
+
.dataTables_wrapper .dataTables_info,
|
379
|
+
.dataTables_wrapper .dataTables_processing,
|
380
|
+
.dataTables_wrapper .dataTables_paginate {
|
381
|
+
color: #333;
|
382
|
+
}
|
383
|
+
.dataTables_wrapper .dataTables_scroll {
|
384
|
+
clear: both;
|
385
|
+
}
|
386
|
+
.dataTables_wrapper .dataTables_scrollBody {
|
387
|
+
*margin-top: -1px;
|
388
|
+
-webkit-overflow-scrolling: touch;
|
389
|
+
}
|
390
|
+
.dataTables_wrapper .ui-widget-header {
|
391
|
+
font-weight: normal;
|
392
|
+
}
|
393
|
+
.dataTables_wrapper .ui-toolbar {
|
394
|
+
padding: 8px;
|
395
|
+
}
|
396
|
+
.dataTables_wrapper:after {
|
397
|
+
visibility: hidden;
|
398
|
+
display: block;
|
399
|
+
content: "";
|
400
|
+
clear: both;
|
401
|
+
height: 0;
|
402
|
+
}
|
403
|
+
|
404
|
+
@media screen and (max-width: 767px) {
|
405
|
+
.dataTables_wrapper .dataTables_length,
|
406
|
+
.dataTables_wrapper .dataTables_filter,
|
407
|
+
.dataTables_wrapper .dataTables_info,
|
408
|
+
.dataTables_wrapper .dataTables_paginate {
|
409
|
+
float: none;
|
410
|
+
text-align: center;
|
411
|
+
}
|
412
|
+
.dataTables_wrapper .dataTables_filter,
|
413
|
+
.dataTables_wrapper .dataTables_paginate {
|
414
|
+
margin-top: 0.5em;
|
415
|
+
}
|
416
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jquery-datatables/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "jquery-datatables"
|
8
|
+
spec.version = Jquery::Datatables::VERSION
|
9
|
+
spec.authors = ["mkhairi"]
|
10
|
+
spec.email = ["mkhairi@labs.my"]
|
11
|
+
spec.summary = %q{Jquery DataTables web assets for Rails, etc.}
|
12
|
+
spec.description = %q{Include jQuery DataTables in asset pipeline with ease}
|
13
|
+
spec.homepage = "https://github.com/mkhairi/jquery-datatables"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency 'actionpack', '~> 4.1'
|
22
|
+
spec.add_development_dependency 'activesupport', '~> 4.1'
|
23
|
+
spec.add_development_dependency 'sprockets-rails', '~> 2.3'
|
24
|
+
spec.add_development_dependency 'jquery-rails', '~> 3.1'
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Jquery
|
4
|
+
module Datatables
|
5
|
+
module Generators
|
6
|
+
class InstallGenerator < ::Rails::Generators::Base
|
7
|
+
desc "This generator installs jQuery dataTables to the Asset Pipeline"
|
8
|
+
|
9
|
+
argument :style, :type => :string, :default => 'regular'
|
10
|
+
# needed for thor templates
|
11
|
+
source_root File.expand_path("../templates", __FILE__)
|
12
|
+
|
13
|
+
def add_assets
|
14
|
+
js_manifest = 'app/assets/javascripts/application.js'
|
15
|
+
css_manifest = 'app/assets/stylesheets/application.css'
|
16
|
+
scss_manifest = 'app/assets/stylesheets/application.scss'
|
17
|
+
js_strings = "//= require datatables\n"
|
18
|
+
|
19
|
+
insert_into_file js_manifest, js_strings, :after => "jquery_ujs\n" if File.exists?(js_manifest)
|
20
|
+
insert_css_strings(css_manifest) if File.exists?(css_manifest)
|
21
|
+
insert_scss_strings(scss_manifest) if File.exists?(scss_manifest)
|
22
|
+
copy_core_file
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def insert_css_strings(css_manifest)
|
28
|
+
content = File.read(css_manifest)
|
29
|
+
css_strings = "*/= require datatables\n"
|
30
|
+
|
31
|
+
if requires_tree(content)
|
32
|
+
insert_into_file css_manifest, css_strings, :after => "require_tree .\n"
|
33
|
+
elsif requires_self(content)
|
34
|
+
insert_into_file css_manifest, css_strings, :before => " *= require_self\n"
|
35
|
+
else
|
36
|
+
insert_into_file css_manifest, css_strings, :before => " */"
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
def insert_scss_strings(scss_manifest)
|
42
|
+
content = File.read(scss_manifest)
|
43
|
+
scss_strings = "\n@import \"datatables\";\n"
|
44
|
+
append_to_file scss_manifest, scss_strings
|
45
|
+
end
|
46
|
+
|
47
|
+
def requires_tree(content)
|
48
|
+
content.match(/require_tree\s+\.\s*$/)
|
49
|
+
end
|
50
|
+
|
51
|
+
def requires_self(content)
|
52
|
+
content.match(/require_self\s*$/)
|
53
|
+
end
|
54
|
+
|
55
|
+
def copy_core_file
|
56
|
+
template "#{style}.js.tt", "app/assets/javascripts/datatables.js"
|
57
|
+
template "#{style}.css.tt", "app/assets/stylesheets/datatables.css"
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|