DataTable verbessert
This commit is contained in:
5
bootstrap/data-table/bak/dataTables.bootstrap5.min.css
vendored
Normal file
5
bootstrap/data-table/bak/dataTables.bootstrap5.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
4
bootstrap/data-table/bak/dataTables.bootstrap5.min.js
vendored
Normal file
4
bootstrap/data-table/bak/dataTables.bootstrap5.min.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* 2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){var n,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(n=require("jquery"),r=function(e,a){a.fn.dataTable||require("datatables.net")(e,a)},"undefined"!=typeof window?module.exports=function(e,a){return e=e||window,a=a||n(e),r(e,a),t(a,0,e.document)}:(r(window,n),module.exports=t(n,window,window.document))):t(jQuery,window,document)}(function(x,e,r,i){"use strict";var o=x.fn.dataTable;return x.extend(!0,o.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row dt-row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),x.extend(o.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap5",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-select form-select-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),o.ext.renderer.pageButton.bootstrap=function(d,e,s,a,l,c){function u(e,a){for(var t,n,r=function(e){e.preventDefault(),x(e.currentTarget).hasClass("disabled")||b.page()==e.data.action||b.page(e.data.action).draw("page")},i=0,o=a.length;i<o;i++)if(t=a[i],Array.isArray(t))u(e,t);else{switch(f=p="",t){case"ellipsis":p="…",f="disabled";break;case"first":p=g.sFirst,f=t+(0<l?"":" disabled");break;case"previous":p=g.sPrevious,f=t+(0<l?"":" disabled");break;case"next":p=g.sNext,f=t+(l<c-1?"":" disabled");break;case"last":p=g.sLast,f=t+(l<c-1?"":" disabled");break;default:p=t+1,f=l===t?"active":""}p&&(n=-1!==f.indexOf("disabled"),n=x("<li>",{class:m.sPageButton+" "+f,id:0===s&&"string"==typeof t?d.sTableId+"_"+t:null}).append(x("<a>",{href:n?null:"#","aria-controls":d.sTableId,"aria-disabled":n?"true":null,"aria-label":w[t],"aria-role":"link","aria-current":"active"===f?"page":null,"data-dt-idx":t,tabindex:d.iTabIndex,class:"page-link"}).html(p)).appendTo(e),d.oApi._fnBindAction(n,{action:t},r))}}var p,f,t,b=new o.Api(d),m=d.oClasses,g=d.oLanguage.oPaginate,w=d.oLanguage.oAria.paginate||{},e=x(e);try{t=e.find(r.activeElement).data("dt-idx")}catch(e){}var n=e.children("ul.pagination");n.length?n.empty():n=e.html("<ul/>").children("ul").addClass("pagination"),u(n,a),t!==i&&e.find("[data-dt-idx="+t+"]").trigger("focus")},o});
|
4
bootstrap/data-table/bak/dataTables.rowReorder.min.js
vendored
Normal file
4
bootstrap/data-table/bak/dataTables.rowReorder.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
48
bootstrap/data-table/bak/date-euro.js
Normal file
48
bootstrap/data-table/bak/date-euro.js
Normal file
@ -0,0 +1,48 @@
|
||||
/**
|
||||
* This plug-in will provide date sorting for the "dd/mm/YYYY hh:ii:ss"
|
||||
* formatting, which is common in France and other European countries. It can
|
||||
* also be quickly adapted for other formatting as required. Furthermore, this
|
||||
* date sorting plug-in allows for empty values in the column.
|
||||
*
|
||||
* Please note that this plug-in is **deprecated*. The
|
||||
* [datetime](//datatables.net/blog/2014-12-18) plug-in provides enhanced
|
||||
* functionality and flexibility.
|
||||
*
|
||||
* @name Date (dd/mm/YYYY hh:ii:ss)
|
||||
* @summary Sort date / time in the format `dd/mm/YYYY hh:ii:ss`
|
||||
* @author [Ronan Guilloux](http://coolforest.net/)
|
||||
* @deprecated
|
||||
*
|
||||
* @example
|
||||
* $('#example').dataTable( {
|
||||
* columnDefs: [
|
||||
* { type: 'date-euro', targets: 0 }
|
||||
* ]
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"date-euro-pre": function ( a ) {
|
||||
var x;
|
||||
|
||||
if ( $.trim(a) !== '' ) {
|
||||
var frDatea = $.trim(a).split(' ');
|
||||
var frTimea = (undefined != frDatea[1]) ? frDatea[1].split(':') : [00,00,00];
|
||||
var frDatea2 = frDatea[0].split('/');
|
||||
x = (frDatea2[2] + frDatea2[1] + frDatea2[0] + frTimea[0] + frTimea[1] + ((undefined != frTimea[2]) ? frTimea[2] : 0)) * 1;
|
||||
}
|
||||
else {
|
||||
x = Infinity;
|
||||
}
|
||||
|
||||
return x;
|
||||
},
|
||||
|
||||
"date-euro-asc": function ( a, b ) {
|
||||
return a - b;
|
||||
},
|
||||
|
||||
"date-euro-desc": function ( a, b ) {
|
||||
return b - a;
|
||||
}
|
||||
} );
|
71
bootstrap/data-table/bak/datetime-moment.js
Normal file
71
bootstrap/data-table/bak/datetime-moment.js
Normal file
@ -0,0 +1,71 @@
|
||||
/**
|
||||
* This plug-in for DataTables represents the ultimate option in extensibility
|
||||
* for sorting date / time strings correctly. It uses
|
||||
* [Moment.js](http://momentjs.com) to create automatic type detection and
|
||||
* sorting plug-ins for DataTables based on a given format. This way, DataTables
|
||||
* will automatically detect your temporal information and sort it correctly.
|
||||
*
|
||||
* For usage instructions, please see the DataTables blog
|
||||
* post that [introduces it](//datatables.net/blog/2014-12-18).
|
||||
*
|
||||
* @name Ultimate Date / Time sorting
|
||||
* @summary Sort date and time in any format using Moment.js
|
||||
* @author [Allan Jardine](//datatables.net)
|
||||
* @depends DataTables 1.10+, Moment.js 1.7+
|
||||
* @deprecated
|
||||
*
|
||||
* @example
|
||||
* $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
|
||||
* $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
|
||||
*
|
||||
* $('#example').DataTable();
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["jquery", "moment", "datatables.net"], factory);
|
||||
} else {
|
||||
factory(jQuery, moment);
|
||||
}
|
||||
}(function ($, moment) {
|
||||
|
||||
function strip (d) {
|
||||
if ( typeof d === 'string' ) {
|
||||
// Strip HTML tags and newline characters if possible
|
||||
d = d.replace(/(<.*?>)|(\r?\n|\r)/g, '');
|
||||
|
||||
// Strip out surrounding white space
|
||||
d = d.trim();
|
||||
}
|
||||
|
||||
return d;
|
||||
}
|
||||
|
||||
$.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
|
||||
var types = $.fn.dataTable.ext.type;
|
||||
|
||||
// Add type detection
|
||||
types.detect.unshift( function ( d ) {
|
||||
d = strip(d);
|
||||
|
||||
// Null and empty values are acceptable
|
||||
if ( d === '' || d === null ) {
|
||||
return 'moment-'+format;
|
||||
}
|
||||
|
||||
return moment( d, format, locale, true ).isValid() ?
|
||||
'moment-'+format :
|
||||
null;
|
||||
} );
|
||||
|
||||
// Add sorting method - use an integer for the sorting
|
||||
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
|
||||
d = strip(d);
|
||||
|
||||
return !moment(d, format, locale, true).isValid() ?
|
||||
(reverseEmpties ? -Infinity : Infinity) :
|
||||
parseInt( moment( d, format, locale, true ).format( 'x' ), 10 );
|
||||
};
|
||||
};
|
||||
|
||||
}));
|
4
bootstrap/data-table/bak/jquery.dataTables.min.js
vendored
Normal file
4
bootstrap/data-table/bak/jquery.dataTables.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
bootstrap/data-table/bak/jquery.min.js
vendored
Normal file
4
bootstrap/data-table/bak/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
141
bootstrap/data-table/bak/jumistyle.css
Normal file
141
bootstrap/data-table/bak/jumistyle.css
Normal file
@ -0,0 +1,141 @@
|
||||
.table-responsive {
|
||||
margin: 30px 0;
|
||||
}
|
||||
.table-wrapper {
|
||||
min-width: 1000px;
|
||||
background: #fff;
|
||||
padding: 20px 25px;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,.05);
|
||||
}
|
||||
.table-title {
|
||||
padding-bottom: 15px;
|
||||
background: #299be4;
|
||||
color: #fff;
|
||||
padding: 16px 30px;
|
||||
margin: -20px -25px 10px;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
.table-title h2 {
|
||||
margin: 5px 0 0;
|
||||
font-size: 24px;
|
||||
}
|
||||
.table-title .btn {
|
||||
color: #566787;
|
||||
float: right;
|
||||
font-size: 13px;
|
||||
background: #fff;
|
||||
border: none;
|
||||
min-width: 50px;
|
||||
border-radius: 2px;
|
||||
border: none;
|
||||
outline: none !important;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.table-title .btn:hover, .table-title .btn:focus {
|
||||
color: #566787;
|
||||
background: #f2f2f2;
|
||||
}
|
||||
.table-title .btn i {
|
||||
float: left;
|
||||
font-size: 21px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.table-title .btn span {
|
||||
float: left;
|
||||
margin-top: 2px;
|
||||
}
|
||||
table.table tr th, table.table tr td {
|
||||
border-color: #e9e9e9;
|
||||
padding: 12px 15px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
table.table tr th:first-child {
|
||||
width: 60px;
|
||||
}
|
||||
table.table tr th:last-child {
|
||||
width: 100px;
|
||||
}
|
||||
table.table-striped tbody tr:nth-of-type(odd) {
|
||||
background-color: #fcfcfc;
|
||||
}
|
||||
table.table-striped.table-hover tbody tr:hover {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
table.table th i {
|
||||
font-size: 13px;
|
||||
margin: 0 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.table td:last-child i {
|
||||
opacity: 0.9;
|
||||
font-size: 22px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
table.table td a {
|
||||
font-weight: bold;
|
||||
color: #566787;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
table.table td a:hover {
|
||||
color: #2196F3;
|
||||
}
|
||||
table.table td a.settings {
|
||||
color: #2196F3;
|
||||
}
|
||||
table.table td a.delete {
|
||||
color: #F44336;
|
||||
}
|
||||
table.table td i {
|
||||
font-size: 19px;
|
||||
}
|
||||
table.table .avatar {
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.status {
|
||||
font-size: 30px;
|
||||
margin: 2px 2px 0 0;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
line-height: 10px;
|
||||
}
|
||||
.pagination {
|
||||
float: right;
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.pagination li a {
|
||||
border: none;
|
||||
font-size: 13px;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
color: #999;
|
||||
margin: 0 2px;
|
||||
line-height: 30px;
|
||||
border-radius: 2px !important;
|
||||
text-align: center;
|
||||
padding: 0 6px;
|
||||
}
|
||||
.pagination li a:hover {
|
||||
color: #666;
|
||||
}
|
||||
.pagination li.active a, .pagination li.active a.page-link {
|
||||
background: #03A9F4;
|
||||
}
|
||||
.pagination li.active a:hover {
|
||||
background: #0397d6;
|
||||
}
|
||||
.pagination li.disabled i {
|
||||
color: #ccc;
|
||||
}
|
||||
.pagination li i {
|
||||
font-size: 16px;
|
||||
padding-top: 6px
|
||||
}
|
||||
.hint-text {
|
||||
float: left;
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
}
|
7
bootstrap/data-table/bak/moment.mon.js
Normal file
7
bootstrap/data-table/bak/moment.mon.js
Normal file
File diff suppressed because one or more lines are too long
1
bootstrap/data-table/bak/rowReorder.dataTables.min.css
vendored
Normal file
1
bootstrap/data-table/bak/rowReorder.dataTables.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
table.dt-rowReorder-float{opacity:.8}div.dt-rowReorder-float-parent{table-layout:fixed;outline:2px solid #888;outline-offset:-2px;z-index:2001;position:absolute !important;overflow:hidden}tr.dt-rowReorder-moving{outline:2px solid #555;outline-offset:-2px}body.dt-rowReorder-noOverflow{overflow-x:hidden}table.dataTable td.reorder{text-align:center;cursor:move}
|
Reference in New Issue
Block a user