update js and css deps
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
0423e8f157
commit
04282f94a4
12 changed files with 127 additions and 80 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
/*! DataTables Bootstrap 4 integration
|
||||
* ©2011-2017 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,a){return e=e||window,(a=a||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,a),t(a,0,e.document)}:t(jQuery,window,document)}(function(x,e,n,o){"use strict";var r=x.fn.dataTable;return x.extend(!0,r.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),x.extend(r.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),r.ext.renderer.pageButton.bootstrap=function(i,e,d,a,l,c){function u(e,a){for(var t,n,o=function(e){e.preventDefault(),x(e.currentTarget).hasClass("disabled")||m.page()==e.data.action||m.page(e.data.action).draw("page")},r=0,s=a.length;r<s;r++)if(n=a[r],Array.isArray(n))u(e,n);else{switch(f=p="",n){case"ellipsis":p="…",f="disabled";break;case"first":p=g.sFirst,f=n+(0<l?"":" disabled");break;case"previous":p=g.sPrevious,f=n+(0<l?"":" disabled");break;case"next":p=g.sNext,f=n+(l<c-1?"":" disabled");break;case"last":p=g.sLast,f=n+(l<c-1?"":" disabled");break;default:p=n+1,f=l===n?"active":""}p&&(t=x("<li>",{class:b.sPageButton+" "+f,id:0===d&&"string"==typeof n?i.sTableId+"_"+n:null}).append(x("<a>",{href:"#","aria-controls":i.sTableId,"aria-label":w[n],"data-dt-idx":n,tabindex:i.iTabIndex,class:"page-link"}).html(p)).appendTo(e),i.oApi._fnBindAction(t,{action:n},o))}}var p,f,t,m=new r.Api(i),b=i.oClasses,g=i.oLanguage.oPaginate,w=i.oLanguage.oAria.paginate||{};try{t=x(e).find(n.activeElement).data("dt-idx")}catch(e){}u(x(e).empty().html('<ul class="pagination"/>').children("ul"),a),t!==o&&x(e).find("[data-dt-idx="+t+"]").trigger("focus")},r});
|
||||
!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,a){return e=e||window,(a=a||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,a),t(a,0,e.document)}:t(jQuery,window,document)}(function(x,e,n,r){"use strict";var s=x.fn.dataTable;return x.extend(!0,s.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),x.extend(s.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),s.ext.renderer.pageButton.bootstrap=function(i,e,d,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")},s=0,o=a.length;s<o;s++)if(t=a[s],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===d&&"string"==typeof t?i.sTableId+"_"+t:null}).append(x("<a>",{href:n?null:"#","aria-controls":i.sTableId,"aria-disabled":n?"true":null,"aria-label":w[t],"aria-role":"link","aria-current":"active"===f?"page":null,"data-dt-idx":t,tabindex:i.iTabIndex,class:"page-link"}).html(p)).appendTo(e),i.oApi._fnBindAction(n,{action:t},r))}}var p,f,t,b=new s.Api(i),m=i.oClasses,g=i.oLanguage.oPaginate,w=i.oLanguage.oAria.paginate||{};try{t=x(e).find(n.activeElement).data("dt-idx")}catch(e){}u(x(e).empty().html('<ul class="pagination"/>').children("ul"),a),t!==r&&x(e).find("[data-dt-idx="+t+"]").trigger("focus")},s});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
61
static/vendor/datatables/ellipsis.js
vendored
61
static/vendor/datatables/ellipsis.js
vendored
|
@ -1,3 +1,37 @@
|
|||
/*! © SpryMedia Ltd - datatables.net/license */
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document, undefined ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
/**
|
||||
* This data rendering helper method can be useful for cases where you have
|
||||
* potentially large data strings to be shown in a column that is restricted by
|
||||
|
@ -33,7 +67,7 @@
|
|||
* $('#example').DataTable( {
|
||||
* columnDefs: [ {
|
||||
* targets: 1,
|
||||
* render: $.fn.dataTable.render.ellipsis( 17, true )
|
||||
* render: DataTable.render.ellipsis( 17, true )
|
||||
* } ]
|
||||
* } );
|
||||
*
|
||||
|
@ -42,12 +76,11 @@
|
|||
* $('#example').DataTable( {
|
||||
* columnDefs: [ {
|
||||
* targets: 2,
|
||||
* render: $.fn.dataTable.render.ellipsis( 10 )
|
||||
* render: DataTable.render.ellipsis( 10 )
|
||||
* } ]
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) {
|
||||
DataTable.render.ellipsis = function (cutoff, wordbreak, escapeHtml) {
|
||||
var esc = function (t) {
|
||||
return ('' + t)
|
||||
.replace(/&/g, '&')
|
||||
|
@ -55,41 +88,41 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
|
|||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"');
|
||||
};
|
||||
|
||||
return function (d, type, row) {
|
||||
// Order, search and type get the original data
|
||||
if (type !== 'display') {
|
||||
return d;
|
||||
}
|
||||
|
||||
if (typeof d !== 'number' && typeof d !== 'string') {
|
||||
if (escapeHtml) {
|
||||
return esc(d);
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
d = d.toString(); // cast numbers
|
||||
|
||||
if (d.length <= cutoff) {
|
||||
if (escapeHtml) {
|
||||
return esc(d);
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
var shortened = d.substr(0, cutoff - 1);
|
||||
|
||||
// Find the last white space character in the string
|
||||
if (wordbreak) {
|
||||
shortened = shortened.replace(/\s([^\s]*)$/, '');
|
||||
}
|
||||
|
||||
// Protect against uncontrolled HTML input
|
||||
if (escapeHtml) {
|
||||
shortened = esc(shortened);
|
||||
}
|
||||
return ('<span class="ellipsis" title="' +
|
||||
esc(d) +
|
||||
'">' +
|
||||
shortened +
|
||||
'…</span>');
|
||||
};
|
||||
};
|
||||
|
||||
return '<span class="ellipsis" title="'+esc(d)+'">'+shortened+'…</span>';
|
||||
};
|
||||
};
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
|
|
File diff suppressed because one or more lines are too long
2
static/vendor/video-js/video-js.min.css
vendored
2
static/vendor/video-js/video-js.min.css
vendored
File diff suppressed because one or more lines are too long
46
static/vendor/video-js/video.min.js
vendored
46
static/vendor/video-js/video.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue