From 4bbf74637851f2a5efcf21da5102c4a122f7eb6d Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 25 Nov 2020 09:00:26 +0100 Subject: [PATCH] update plugin files --- .../datatables-buttons/js/buttons.flash.js | 4 +- .../js/buttons.flash.min.js | 12 +- .../datatables-buttons/js/buttons.html5.js | 4 +- .../js/buttons.html5.min.js | 46 +++--- .../js/dataTables.buttons.js | 4 +- .../js/dataTables.buttons.min.js | 4 +- plugins/fontawesome-free/css/all.css | 41 ++++- plugins/fontawesome-free/css/all.min.css | 4 +- plugins/fontawesome-free/css/brands.css | 2 +- plugins/fontawesome-free/css/brands.min.css | 2 +- plugins/fontawesome-free/css/fontawesome.css | 41 ++++- .../fontawesome-free/css/fontawesome.min.css | 4 +- plugins/fontawesome-free/css/regular.css | 2 +- plugins/fontawesome-free/css/regular.min.css | 2 +- plugins/fontawesome-free/css/solid.css | 2 +- plugins/fontawesome-free/css/solid.min.css | 2 +- plugins/fontawesome-free/css/svg-with-js.css | 2 +- .../fontawesome-free/css/svg-with-js.min.css | 2 +- plugins/fontawesome-free/css/v4-shims.css | 2 +- plugins/fontawesome-free/css/v4-shims.min.css | 2 +- .../webfonts/fa-brands-400.eot | Bin 134622 -> 136822 bytes .../webfonts/fa-brands-400.svg | 142 ++++++++++++++---- .../webfonts/fa-brands-400.ttf | Bin 134316 -> 136516 bytes .../webfonts/fa-brands-400.woff | Bin 90672 -> 92136 bytes .../webfonts/fa-brands-400.woff2 | Bin 77400 -> 78460 bytes .../webfonts/fa-regular-400.eot | Bin 34350 -> 34350 bytes .../webfonts/fa-regular-400.svg | 8 +- .../webfonts/fa-regular-400.ttf | Bin 34052 -> 34052 bytes .../webfonts/fa-regular-400.woff | Bin 16780 -> 16772 bytes .../webfonts/fa-regular-400.woff2 | Bin 13600 -> 13548 bytes .../webfonts/fa-solid-900.eot | Bin 204266 -> 204814 bytes .../webfonts/fa-solid-900.svg | 25 ++- .../webfonts/fa-solid-900.ttf | Bin 203980 -> 204528 bytes .../webfonts/fa-solid-900.woff | Bin 104004 -> 104280 bytes .../webfonts/fa-solid-900.woff2 | Bin 80148 -> 80300 bytes plugins/moment/locale/hi.js | 55 ++++++- plugins/moment/locales.js | 87 ++++++++--- plugins/moment/locales.min.js | 2 +- plugins/moment/locales.min.js.map | 2 +- plugins/moment/moment-with-locales.js | 92 +++++++++--- plugins/moment/moment-with-locales.min.js | 2 +- plugins/moment/moment-with-locales.min.js.map | 2 +- plugins/moment/moment.min.js | 2 +- plugins/moment/moment.min.js.map | 2 +- 44 files changed, 449 insertions(+), 156 deletions(-) diff --git a/plugins/datatables-buttons/js/buttons.flash.js b/plugins/datatables-buttons/js/buttons.flash.js index 9c4ef2acf..b703dfb87 100644 --- a/plugins/datatables-buttons/js/buttons.flash.js +++ b/plugins/datatables-buttons/js/buttons.flash.js @@ -1235,7 +1235,9 @@ DataTable.ext.buttons.excelFlash = $.extend( {}, flashButton, { } } - row[i] = row[i].trim(); + row[i] = typeof row[i].trim === 'function' + ? row[i].trim() + : row[i]; // Special number formatting options for ( var j=0, jen=_excelSpecials.length ; j'+e),e=e.replace(/_dt_b_namespace_token_/g,":"),e=e.replace(/xmlns:NS[\d]+="" NS[\d]+:/g,""));e=e.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>");a.file(b,e)}})}function o(a,b,d){var c=a.createElement(b);d&&(d.attr&&h(c).attr(d.attr),d.children&&h.each(d.children,function(a,b){c.appendChild(b)}),null!==d.text&&d.text!== -r&&c.appendChild(a.createTextNode(d.text)));return c}function L(a,b){var d=a.header[b].length,c;a.footer&&a.footer[b].length>d&&(d=a.footer[b].length);for(var e=0,g=a.body.length;ed&&(d=c),40'+e),e=e.replace(/_dt_b_namespace_token_/g,":"),e=e.replace(/xmlns:NS[\d]+="" NS[\d]+:/g,""));e=e.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>");a.file(c,e)}})}function o(a,c,d){var b=a.createElement(c);d&&(d.attr&&h(b).attr(d.attr),d.children&&h.each(d.children,function(a,c){b.appendChild(c)}),null!==d.text&&d.text!== +r&&b.appendChild(a.createTextNode(d.text)));return b}function L(a,c){var d=a.header[c].length,b;a.footer&&a.footer[c].length>d&&(d=a.footer[c].length);for(var e=0,g=a.body.length;ed&&(d=b),401*a[1]?!0:!1};try{var z=new XMLSerializer,x}catch(P){}var B={"_rels/.rels":'', +typeof a?(l.URL||l.webkitURL||l).revokeObjectURL(a):a.remove()},4E4)},E=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a},F=function(a,c,d){d||(a=E(a));var b=this,d="application/octet-stream"===a.type,e,g=function(){for(var a=["writestart","progress","write","writeend"],a=[].concat(a),c=a.length;c--;){var d=b["on"+a[c]];if("function"===typeof d)try{d.call(b,b)}catch(e){O(e)}}};b.readyState= +b.INIT;if(M)e=(l.URL||l.webkitURL||l).createObjectURL(a),setTimeout(function(){y.href=e;y.download=c;var a=new MouseEvent("click");y.dispatchEvent(a);g();D(e);b.readyState=b.DONE});else if((C||d&&N)&&l.FileReader){var k=new FileReader;k.onloadend=function(){var a=C?k.result:k.result.replace(/^data:[^;]*;/,"data:attachment/file;");l.open(a,"_blank")||(l.location.href=a);b.readyState=b.DONE;g()};k.readAsDataURL(a);b.readyState=b.INIT}else e||(e=(l.URL||l.webkitURL||l).createObjectURL(a)),d?l.location.href= +e:l.open(e,"_blank")||(l.location.href=e),b.readyState=b.DONE,g(),D(e)},n=F.prototype;"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?u=function(a,c,d){c=c||a.name||"download";d||(a=E(a));return navigator.msSaveOrOpenBlob(a,c)}:(n.abort=function(){},n.readyState=n.INIT=0,n.WRITING=1,n.DONE=2,n.error=n.onwritestart=n.onprogress=n.onwrite=n.onabort=n.onerror=n.onwriteend=null,u=function(a,c,d){return new F(a,c||a.name||"download",d)})}p.fileSave=u;var G=function(a){var c="Sheet1";a.sheetName&& +(c=a.sheetName.replace(/[\[\]\*\/\\\?\:]/g,""));return c},H=function(a){return a.newline?a.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},I=function(a,c){for(var d=H(c),b=a.buttons.exportData(c.exportOptions),e=c.fieldBoundary,g=c.fieldSeparator,k=RegExp(e,"g"),i=c.escapeChar!==r?c.escapeChar:"\\",h=function(a){for(var b="",c=0,d=a.length;c1*a[1]?!0:!1};try{var z=new XMLSerializer,x}catch(P){}var B={"_rels/.rels":'', "xl/_rels/workbook.xml.rels":'',"[Content_Types].xml":'', "xl/workbook.xml":'', "xl/worksheets/sheet1.xml":'',"xl/styles.xml":''}, K=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(a){return a/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(a){return a/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(a){return-1*a.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63}, -{match:/^\-?[\d,]+\.\d{2}$/,style:64},{match:/^[\d]{4}\-[\d]{2}\-[\d]{2}$/,style:67,fmt:function(a){return Math.round(25569+Date.parse(a)/864E5)}}];p.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(a){return a.i18n("buttons.copy","Copy")},action:function(a,b,d,c){this.processing(!0);var e=this,a=I(b,c),g=b.buttons.exportInfo(c),k=H(c),i=a.str,d=h("
").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});g.title&&(i=g.title+k+k+i);g.messageTop&&(i= -g.messageTop+k+k+i);g.messageBottom&&(i=i+k+k+g.messageBottom);c.customize&&(i=c.customize(i,c,b));c=h("