datatables.net-bs5 2.0.4 → 2.0.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! DataTables Bootstrap 5 integration
|
|
2
|
-
*
|
|
2
|
+
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
(function( factory ){
|
|
@@ -50,8 +50,7 @@ var DataTable = $.fn.dataTable;
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* DataTables integration for Bootstrap 5.
|
|
54
|
-
* DataTables 2 or newer.
|
|
53
|
+
* DataTables integration for Bootstrap 5.
|
|
55
54
|
*
|
|
56
55
|
* This file sets the defaults and adds options to DataTables to style its
|
|
57
56
|
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! DataTables Bootstrap 5 integration
|
|
2
|
-
*
|
|
2
|
+
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
!function(n){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||o(e),a(e,t),n(t,0,e.document)}:(a(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(d,e,t){"use strict";var n=d.fn.dataTable;return d.extend(!0,n.defaults,{renderer:"bootstrap"}),d.extend(!0,n.ext.classes,{container:"dt-container dt-bootstrap5",search:{input:"form-control form-control-sm"},length:{select:"form-select form-select-sm"},processing:{container:"dt-processing card"}}),n.ext.renderer.pagingButton.bootstrap=function(e,t,n,o,a){var r=["dt-paging-button","page-item"],o=(o&&r.push("active"),a&&r.push("disabled"),d("<li>").addClass(r.join(" ")));return{display:o,clicker:d("<a>",{href:a?null:"#",class:"page-link"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(e,t){return d("<ul/>").addClass("pagination").append(t)},n.ext.renderer.layout.bootstrap=function(e,t,n){var o=d("<div/>",{class:n.full?"row mt-2 justify-content-md-center":"row mt-2 justify-content-between"}).appendTo(t);d.each(n,function(e,t){e=t.table?"col-12":"start"===e?"col-md-auto me-auto":"end"===e?"col-md-auto ms-auto":"col-md";d("<div/>",{id:t.id||null,class:e+" "+(t.className||"")}).append(t.contents).appendTo(o)})},n});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! DataTables Bootstrap 5 integration
|
|
2
|
-
*
|
|
2
|
+
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bootstrap"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-bootstrap5",search:{input:"form-control form-control-sm"},length:{select:"form-select form-select-sm"},processing:{container:"dt-processing card"}}),DataTable.ext.renderer.pagingButton.bootstrap=function(t,e,a,n,o){var r=["dt-paging-button","page-item"],n=(n&&r.push("active"),o&&r.push("disabled"),$("<li>").addClass(r.join(" ")));return{display:n,clicker:$("<a>",{href:o?null:"#",class:"page-link"}).html(a).appendTo(n)}},DataTable.ext.renderer.pagingContainer.bootstrap=function(t,e){return $("<ul/>").addClass("pagination").append(e)},DataTable.ext.renderer.layout.bootstrap=function(t,e,a){var n=$("<div/>",{class:a.full?"row mt-2 justify-content-md-center":"row mt-2 justify-content-between"}).appendTo(e);$.each(a,function(t,e){t=e.table?"col-12":"start"===t?"col-md-auto me-auto":"end"===t?"col-md-auto ms-auto":"col-md";$("<div/>",{id:e.id||null,class:t+" "+(e.className||"")}).append(e.contents).appendTo(n)})};export default DataTable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! DataTables Bootstrap 5 integration
|
|
2
|
-
*
|
|
2
|
+
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import jQuery from 'jquery';
|
|
@@ -10,8 +10,7 @@ let $ = jQuery;
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* DataTables integration for Bootstrap 5.
|
|
14
|
-
* DataTables 2 or newer.
|
|
13
|
+
* DataTables integration for Bootstrap 5.
|
|
15
14
|
*
|
|
16
15
|
* This file sets the defaults and adds options to DataTables to style its
|
|
17
16
|
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"module": "js/dataTables.bootstrap5.mjs",
|
|
6
6
|
"style": "css/dataTables.bootstrap5.css",
|
|
7
7
|
"types": "./types/dataTables.bootstrap5.d.ts",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.5",
|
|
9
9
|
"files": [
|
|
10
10
|
"css/**/*.css",
|
|
11
11
|
"js/**/*.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"sort"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"datatables.net": "2.0.
|
|
25
|
+
"datatables.net": "2.0.5",
|
|
26
26
|
"jquery": ">=1.7"
|
|
27
27
|
},
|
|
28
28
|
"moduleType": [
|