Theme Assets
This commit is contained in:
22
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/License.txt
generated
vendored
Normal file
22
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/License.txt
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright SpryMedia Limited and other contributors
|
||||
http://datatables.net
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
5
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/css/dataTables.bootstrap5.min.css
generated
vendored
Normal file
5
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/css/dataTables.bootstrap5.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.min.js
generated
vendored
Normal file
4
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.min.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!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});
|
||||
4
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.min.mjs
generated
vendored
Normal file
4
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.min.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
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;
|
||||
106
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.mjs
generated
vendored
Normal file
106
assets/vendor/datatables.net-select-bs5/node_modules/datatables.net-bs5/js/dataTables.bootstrap5.mjs
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 5.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, 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"
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.bootstrap = function ( settings, container, items ) {
|
||||
var row = $( '<div/>', {
|
||||
"class": items.full ?
|
||||
'row mt-2 justify-content-md-center' :
|
||||
'row mt-2 justify-content-between'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass;
|
||||
|
||||
// Apply start / end (left / right when ltr) margins
|
||||
if (val.table) {
|
||||
klass = 'col-12';
|
||||
}
|
||||
else if (key === 'start') {
|
||||
klass = 'col-md-auto me-auto';
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass = 'col-md-auto ms-auto';
|
||||
}
|
||||
else {
|
||||
klass = 'col-md';
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass + ' ' + (val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
Reference in New Issue
Block a user