datatables.net-bs 1.10.21 → 1.10.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +3 -1
- package/Readme.md +11 -3
- package/css/dataTables.bootstrap.css +12 -9
- package/css/dataTables.bootstrap.min.css +1 -1
- package/images/favicon.ico +0 -0
- package/images/sort_asc.png +0 -0
- package/images/sort_asc_disabled.png +0 -0
- package/images/sort_both.png +0 -0
- package/images/sort_desc.png +0 -0
- package/images/sort_desc_disabled.png +0 -0
- package/js/dataTables.bootstrap.js +1 -1
- package/js/dataTables.bootstrap.min.js +4 -4
- package/package.json +28 -16
package/License.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
1
3
|
Copyright SpryMedia Limited and other contributors
|
|
2
4
|
http://datatables.net
|
|
3
5
|
|
|
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
17
19
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
20
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
THE SOFTWARE.
|
|
22
|
+
THE SOFTWARE.
|
package/Readme.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
# DataTables for jQuery with styling for [Bootstrap](http://getbootstrap.com/)
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
# DataTables for jQuery with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)
|
|
3
|
+
|
|
4
|
+
This package contains distribution files required to style [DataTables library](https://datatables.net) for [jQuery](http://jquery.com/) with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/).
|
|
4
5
|
|
|
5
6
|
DataTables is a table enhancing library which adds features such as paging, ordering, search, scrolling and many more to a static HTML page. A comprehensive API is also available that can be used to manipulate the table. Please refer to the [DataTables web-site](//datatables.net) for a full range of documentation and examples.
|
|
6
7
|
|
|
@@ -17,11 +18,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
|
|
|
17
18
|
npm install datatables.net-bs
|
|
18
19
|
```
|
|
19
20
|
|
|
21
|
+
ES3 Syntax
|
|
20
22
|
```
|
|
21
23
|
var $ = require( 'jquery' );
|
|
22
24
|
require( 'datatables.net-bs' )( window, $ );
|
|
23
25
|
```
|
|
24
26
|
|
|
27
|
+
ES6 Syntax
|
|
28
|
+
```
|
|
29
|
+
import 'datatables.net-bs'
|
|
30
|
+
```
|
|
31
|
+
|
|
25
32
|
### bower
|
|
26
33
|
|
|
27
34
|
```
|
|
@@ -32,7 +39,7 @@ bower install --save datatables.net-bs
|
|
|
32
39
|
|
|
33
40
|
## Documentation
|
|
34
41
|
|
|
35
|
-
Full documentation of the DataTables options, API and plug-in interface are available on the
|
|
42
|
+
Full documentation of the DataTables options, API and plug-in interface are available on the [website](https://datatables.net/reference/index). The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
|
|
36
43
|
|
|
37
44
|
|
|
38
45
|
## Bug / Support
|
|
@@ -48,3 +55,4 @@ If you are thinking of contributing code to DataTables, first of all, thank you!
|
|
|
48
55
|
## License
|
|
49
56
|
|
|
50
57
|
This software is released under the [MIT license](//datatables.net/license). You are free to use, modify and distribute this software, but all copyright information must remain.
|
|
58
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
table.dataTable {
|
|
2
3
|
clear: both;
|
|
3
4
|
margin-top: 6px !important;
|
|
@@ -92,20 +93,22 @@ table.dataTable thead .sorting_desc_disabled:after {
|
|
|
92
93
|
bottom: 8px;
|
|
93
94
|
right: 8px;
|
|
94
95
|
display: block;
|
|
95
|
-
font-family:
|
|
96
|
+
font-family: "Glyphicons Halflings";
|
|
96
97
|
opacity: 0.5;
|
|
97
98
|
}
|
|
98
99
|
table.dataTable thead .sorting:after {
|
|
99
100
|
opacity: 0.2;
|
|
100
|
-
content: "
|
|
101
|
+
content: "";
|
|
101
102
|
/* sort */
|
|
102
103
|
}
|
|
103
104
|
table.dataTable thead .sorting_asc:after {
|
|
104
|
-
|
|
105
|
+
opacity: 0.5;
|
|
106
|
+
content: "";
|
|
105
107
|
/* sort-by-attributes */
|
|
106
108
|
}
|
|
107
109
|
table.dataTable thead .sorting_desc:after {
|
|
108
|
-
|
|
110
|
+
opacity: 0.5;
|
|
111
|
+
content: "";
|
|
109
112
|
/* sort-by-attributes-alt */
|
|
110
113
|
}
|
|
111
114
|
table.dataTable thead .sorting_asc_disabled:after,
|
|
@@ -142,9 +145,9 @@ div.dataTables_scrollFoot > .dataTables_scrollFootInner > table {
|
|
|
142
145
|
|
|
143
146
|
@media screen and (max-width: 767px) {
|
|
144
147
|
div.dataTables_wrapper div.dataTables_length,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
div.dataTables_wrapper div.dataTables_filter,
|
|
149
|
+
div.dataTables_wrapper div.dataTables_info,
|
|
150
|
+
div.dataTables_wrapper div.dataTables_paginate {
|
|
148
151
|
text-align: center;
|
|
149
152
|
}
|
|
150
153
|
}
|
|
@@ -182,9 +185,9 @@ div.dataTables_scrollHead table.table-bordered {
|
|
|
182
185
|
div.table-responsive > div.dataTables_wrapper > div.row {
|
|
183
186
|
margin: 0;
|
|
184
187
|
}
|
|
185
|
-
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=
|
|
188
|
+
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=col-]:first-child {
|
|
186
189
|
padding-left: 0;
|
|
187
190
|
}
|
|
188
|
-
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=
|
|
191
|
+
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=col-]:last-child {
|
|
189
192
|
padding-right: 0;
|
|
190
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left
|
|
1
|
+
table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:"Glyphicons Halflings";opacity:.5}table.dataTable thead .sorting:after{opacity:.2;content:""}table.dataTable thead .sorting_asc:after{opacity:.5;content:""}table.dataTable thead .sorting_desc:after{opacity:.5;content:""}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody>tr:first-child>th,div.dataTables_scrollBody>table>tbody>tr:first-child>td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable{border-right-width:0}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:1px}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -82,7 +82,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
|
|
|
82
82
|
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
|
|
83
83
|
button = buttons[i];
|
|
84
84
|
|
|
85
|
-
if (
|
|
85
|
+
if ( Array.isArray( button ) ) {
|
|
86
86
|
attach( container, button );
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
DataTables Bootstrap 3 integration
|
|
3
3
|
©2011-2015 SpryMedia Ltd - datatables.net/license
|
|
4
4
|
*/
|
|
5
|
-
(function(
|
|
6
|
-
{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,s,j,n){var o=new f.Api(a),t=a.oClasses,k=a.oLanguage.oPaginate,u=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,
|
|
7
|
-
l=0;for(h=f.length;l<h;l++)if(
|
|
8
|
-
"aria-controls":a.sTableId,"aria-label":u[
|
|
5
|
+
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return c(d,a,a.document)}:c(jQuery,window,document)})(function(c,a,d,m){var f=c.fn.dataTable;c.extend(!0,f.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});c.extend(f.ext.classes,
|
|
6
|
+
{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,s,j,n){var o=new f.Api(a),t=a.oClasses,k=a.oLanguage.oPaginate,u=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,b,m=function(a){a.preventDefault();!c(a.currentTarget).hasClass("disabled")&&o.page()!=a.data.action&&o.page(a.data.action).draw("page")};
|
|
7
|
+
l=0;for(h=f.length;l<h;l++)if(b=f[l],Array.isArray(b))q(d,b);else{g=e="";switch(b){case "ellipsis":e="…";g="disabled";break;case "first":e=k.sFirst;g=b+(0<j?"":" disabled");break;case "previous":e=k.sPrevious;g=b+(0<j?"":" disabled");break;case "next":e=k.sNext;g=b+(j<n-1?"":" disabled");break;case "last":e=k.sLast;g=b+(j<n-1?"":" disabled");break;default:e=b+1,g=j===b?"active":""}e&&(i=c("<li>",{"class":t.sPageButton+" "+g,id:0===r&&"string"===typeof b?a.sTableId+"_"+b:null}).append(c("<a>",
|
|
8
|
+
{href:"#","aria-controls":a.sTableId,"aria-label":u[b],"data-dt-idx":p,tabindex:a.iTabIndex}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:b},m),p++)}},i;try{i=c(h).find(d.activeElement).data("dt-idx")}catch(v){}q(c(h).empty().html('<ul class="pagination"/>').children("ul"),s);i!==m&&c(h).find("[data-dt-idx="+i+"]").trigger("focus")};return f});
|
package/package.json
CHANGED
|
@@ -1,32 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datatables.net-bs",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "DataTables for jQuery with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)",
|
|
4
|
+
"main": "js/dataTables.bootstrap.js",
|
|
5
|
+
"style": "css/dataTables.bootstrap.css",
|
|
6
|
+
"types": "./types/dataTables.bootstrap.d.ts",
|
|
7
|
+
"version": "1.10.25",
|
|
5
8
|
"files": [
|
|
6
9
|
"css/**/*.css",
|
|
7
|
-
"js/**/*.js"
|
|
10
|
+
"js/**/*.js",
|
|
11
|
+
"images/*"
|
|
8
12
|
],
|
|
9
|
-
"main": "js/dataTables.bootstrap.js",
|
|
10
|
-
"style": "css/dataTables.bootstrap.css",
|
|
11
13
|
"keywords": [
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"DataTables",
|
|
14
|
+
"Bootstrap",
|
|
15
|
+
"Datatables",
|
|
15
16
|
"jQuery",
|
|
16
17
|
"table",
|
|
17
|
-
"
|
|
18
|
+
"filter",
|
|
19
|
+
"sort"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"jquery": ">=1.7",
|
|
23
|
+
"datatables.net": "1.10.25"
|
|
24
|
+
},
|
|
25
|
+
"moduleType": [
|
|
26
|
+
"globals",
|
|
27
|
+
"amd",
|
|
28
|
+
"node"
|
|
29
|
+
],
|
|
30
|
+
"ignore": [
|
|
31
|
+
"composer.json",
|
|
32
|
+
"datatables.json",
|
|
33
|
+
"package.json"
|
|
18
34
|
],
|
|
19
|
-
"homepage": "https://datatables.net",
|
|
20
|
-
"bugs": "https://datatables.net/forums",
|
|
21
|
-
"license": "MIT",
|
|
22
35
|
"author": {
|
|
23
36
|
"name": "SpryMedia Ltd",
|
|
24
37
|
"url": "http://datatables.net"
|
|
25
38
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
39
|
+
"homepage": "https://datatables.net",
|
|
40
|
+
"bugs": "https://datatables.net/forums",
|
|
41
|
+
"license": "MIT",
|
|
30
42
|
"repository": {
|
|
31
43
|
"type": "git",
|
|
32
44
|
"url": "https://github.com/DataTables/Dist-DataTables-Bootstrap.git"
|