From 68fc9e55e538e03f94509731ab41a0c8cf96710f Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 17 Apr 2023 12:12:22 +0300 Subject: setup a real server environment (apache DocumentRoot=/var/www/public) --- .../js/dataTables/buttons/Grunt.buttons.all.min.js | 1 - .../js/dataTables/buttons/Grunt.buttons.min.js | 1 - .../js/dataTables/buttons/buttons.flash.min.js | 39 ------------------- .../js/dataTables/buttons/buttons.html5.min.js | 35 ----------------- .../js/dataTables/buttons/buttons.print.min.js | 9 ----- .../dataTables/buttons/dataTables.buttons.min.js | 45 ---------------------- html/assets/js/dataTables/buttons/jszip.min.js | 15 -------- html/assets/js/dataTables/buttons/pdfmake.min.js | 30 --------------- html/assets/js/dataTables/buttons/vfs_fonts.js | 6 --- 9 files changed, 181 deletions(-) delete mode 100644 html/assets/js/dataTables/buttons/Grunt.buttons.all.min.js delete mode 100644 html/assets/js/dataTables/buttons/Grunt.buttons.min.js delete mode 100644 html/assets/js/dataTables/buttons/buttons.flash.min.js delete mode 100644 html/assets/js/dataTables/buttons/buttons.html5.min.js delete mode 100644 html/assets/js/dataTables/buttons/buttons.print.min.js delete mode 100644 html/assets/js/dataTables/buttons/dataTables.buttons.min.js delete mode 100644 html/assets/js/dataTables/buttons/jszip.min.js delete mode 100644 html/assets/js/dataTables/buttons/pdfmake.min.js delete mode 100644 html/assets/js/dataTables/buttons/vfs_fonts.js (limited to 'html/assets/js/dataTables/buttons') diff --git a/html/assets/js/dataTables/buttons/Grunt.buttons.all.min.js b/html/assets/js/dataTables/buttons/Grunt.buttons.all.min.js deleted file mode 100644 index bf0d824..0000000 --- a/html/assets/js/dataTables/buttons/Grunt.buttons.all.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(A){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return A(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t||(t=window),e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),A(e,t,t.document)}:A(jQuery,window,document)}(function(A,t,e,s){"use strict";var i,B=A.fn.dataTable,r=0,n=0,E=B.ext.buttons,w=function(t,e){if(!(this instanceof w))return function(A){return new w(A,t).container()};void 0===e&&(e={}),!0===e&&(e={}),A.isArray(e)&&(e={buttons:e}),this.c=A.extend(!0,{},w.defaults,e),e.buttons&&(this.c.buttons=e.buttons),this.s={dt:new B.Api(t),buttons:[],listenKeys:"",namespace:"dtb"+r++},this.dom={container:A("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};A.extend(w.prototype,{action:function(A,t){var e=this._nodeToButton(A);return t===s?e.conf.action:(e.conf.action=t,this)},active:function(t,e){var i=this._nodeToButton(t),B=this.c.dom.button.active,r=A(i.node);return e===s?r.hasClass(B):(r.toggleClass(B,e===s||e),this)},add:function(A,t){var e=this.s.buttons;if("string"==typeof t){for(var i=t.split("-"),B=this.s,r=0,n=i.length-1;r=0;B--)this.remove(e.buttons[B].node);e.conf.destroy&&e.conf.destroy.call(i.button(t),i,A(t),e.conf),this._removeKey(e.conf),A(e.node).remove();var r=A.inArray(e,s);return s.splice(r,1),this},text:function(t,e){var i=this._nodeToButton(t),B=this.c.dom.collection.buttonLiner,r=i.inCollection&&B&&B.tag?B.tag:this.c.dom.buttonLiner.tag,n=this.s.dt,E=A(i.node),w=function(A){return"function"==typeof A?A(n,E,i.conf):A};return e===s?w(i.conf.text):(i.conf.text=e,r?E.children(r).html(w(e)):E.html(w(e)),this)},_constructor:function(){var t=this,s=this.s.dt,i=s.settings()[0],B=this.c.buttons;i._buttons||(i._buttons=[]),i._buttons.push({inst:this,name:this.c.name});for(var r=0,n=B.length;r"),g.conf._collection=g.collection,this._expandButton(g.buttons,g.conf.buttons,!0,B)),o.init&&o.init.call(r.button(g.node),r,A(g.node),o),0)}}},_buildButton:function(t,e){var i=this.c.dom.button,B=this.c.dom.buttonLiner,r=this.c.dom.collection,E=this.s.dt,w=function(A){return"function"==typeof A?A(E,Q,t):A};if(e&&r.button&&(i=r.button),e&&r.buttonLiner&&(B=r.buttonLiner),t.available&&!t.available(E,t))return!1;var o=function(t,e,s,i){i.action.call(e.button(s),t,e,s,i),A(e.table().node()).triggerHandler("buttons-action.dt",[e.button(s),e,s,i])},g=t.tag||i.tag,a=t.clickBlurs===s||t.clickBlurs,Q=A("<"+g+"/>").addClass(i.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(A){A.preventDefault(),!Q.hasClass(i.disabled)&&t.action&&o(A,E,Q,t),a&&Q.blur()}).on("keyup.dtb",function(A){13===A.keyCode&&!Q.hasClass(i.disabled)&&t.action&&o(A,E,Q,t)});if("a"===g.toLowerCase()&&Q.attr("href","#"),"button"===g.toLowerCase()&&Q.attr("type","button"),B.tag){var c=A("<"+B.tag+"/>").html(w(t.text)).addClass(B.className);"a"===B.tag.toLowerCase()&&c.attr("href","#"),Q.append(c)}else Q.html(w(t.text));!1===t.enabled&&Q.addClass(i.disabled),t.className&&Q.addClass(t.className),t.titleAttr&&Q.attr("title",w(t.titleAttr)),t.attr&&Q.attr(t.attr),t.namespace||(t.namespace=".dt-button-"+n++);var C,l=this.c.dom.buttonContainer;return C=l&&l.tag?A("<"+l.tag+"/>").addClass(l.className).append(Q):Q,this._addKey(t),this.c.buttonCreated&&(C=this.c.buttonCreated(t,C)),{conf:t,node:Q.get(0),inserter:C,buttons:[],inCollection:e,collection:null}},_nodeToButton:function(A,t){t||(t=this.s.buttons);for(var e=0,s=t.length;e30)throw"Buttons: Too many iterations"}return A.isArray(e)?e:A.extend({},e)};for(t=r(t);t&&t.extend;){if(!E[t.extend])throw"Cannot extend unknown button type: "+t.extend;var n=r(E[t.extend]);if(A.isArray(n))return n;if(!n)return!1;var w=n.className;t=A.extend({},n,t),w&&t.className!==w&&(t.className=w+" "+t.className);var o=t.postfixButtons;if(o){for(t.buttons||(t.buttons=[]),e=0,i=o.length;e").addClass("dt-button-collection").addClass(E.collectionLayout).css("display","none");s=A(s).addClass(E.contentClassName).attr("role","menu").appendTo(Q),o.attr("aria-expanded","true"),o.parents("body")[0]!==e.body&&(o=e.body.lastChild),E.collectionTitle&&Q.prepend('
'+E.collectionTitle+"
"),Q.insertAfter(o).fadeIn(E.fade);var c=A(i.table().container()),C=Q.css("position");if("dt-container"===E.align&&(o=o.parent(),Q.css("width",c.width())),"absolute"===C){var l=o.position();Q.css({top:l.top+o.outerHeight(),left:l.left});var h=Q.outerHeight(),u=Q.outerWidth(),I=c.offset().top+c.height(),f=l.top+o.outerHeight()+h-I,b=l.top-h,D=c.offset().top,d=D-b,F=l.top-h-5;(f>d||E.dropup)&&-Fv&&Q.css("left",l.left-(Y-v));var x=o.offset().left+u;x>A(t).width()&&Q.css("left",l.left-(x-A(t).width()))}else{var M=Q.height()/2;M>A(t).height()/2&&(M=A(t).height()/2),Q.css("marginTop",-1*M)}E.background&&w.background(!0,E.backgroundClassName,E.fade,o),A("div.dt-button-background").on("click.dtb-collection",function(){}),A("body").on("click.dtb-collection",function(t){var e=A.fn.addBack?"addBack":"andSelf";A(t.target).parents()[e]().filter(s).length||g()}).on("keyup.dtb-collection",function(A){27===A.keyCode&&g()}),E.autoClose&&setTimeout(function(){r.on("buttons-action.b-internal",function(A,t,e,s){s[0]!==o[0]&&g()})},0)}}),w.background=function(t,i,B,r){B===s&&(B=400),r||(r=e.body),t?A("
").addClass(i).css("display","none").insertAfter(r).stop().fadeIn(B):A("div."+i).stop().fadeOut(B,function(){A(this).removeClass(i).remove()})},w.instanceSelector=function(t,e){if(t===s||null===t)return A.map(e,function(A){return A.inst});var i=[],B=A.map(e,function(A){return A.name}),r=function(t){if(A.isArray(t))for(var s=0,n=t.length;s1&&e.splice(1,e.length),e}),B.Api.registerPlural("buttons().active()","button().active()",function(A){return A===s?this.map(function(A){return A.inst.active(A.node)}):this.each(function(t){t.inst.active(t.node,A)})}),B.Api.registerPlural("buttons().action()","button().action()",function(A){return A===s?this.map(function(A){return A.inst.action(A.node)}):this.each(function(t){t.inst.action(t.node,A)})}),B.Api.register(["buttons().enable()","button().enable()"],function(A){return this.each(function(t){t.inst.enable(t.node,A)})}),B.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(A){A.inst.disable(A.node)})}),B.Api.registerPlural("buttons().nodes()","button().node()",function(){var t=A();return A(this.each(function(A){t=t.add(A.inst.node(A.node))})),t}),B.Api.registerPlural("buttons().processing()","button().processing()",function(A){return A===s?this.map(function(A){return A.inst.processing(A.node)}):this.each(function(t){t.inst.processing(t.node,A)})}),B.Api.registerPlural("buttons().text()","button().text()",function(A){return A===s?this.map(function(A){return A.inst.text(A.node)}):this.each(function(t){t.inst.text(t.node,A)})}),B.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(A){A.inst.node(A.node).trigger("click")})}),B.Api.register("button().popover()",function(A,t){return this.map(function(e){return e.inst._popover(A,this.button(this[0].node),t)})}),B.Api.register("buttons().containers()",function(){var t=A(),e=this._groupSelector;return this.iterator(!0,"table",function(A){if(A._buttons)for(var s=w.instanceSelector(e,A._buttons),i=0,B=s.length;i"+t+"":"",A('
').html(t).append(A("
")["string"==typeof e?"html":"append"](e)).css("display","none").appendTo("body").fadeIn(),B!==s&&0!==B&&(i=setTimeout(function(){r.buttons.info(!1)},B)),this.on("destroy.btn-info",function(){r.buttons.info(!1)}),this)}),B.Api.register("buttons.exportData()",function(A){if(this.context.length)return C(new B.Api(this.context[0]),A)}),B.Api.register("buttons.exportInfo()",function(A){return A||(A={}),{filename:o(A),title:a(A),messageTop:Q(this,A.message||A.messageTop,"top"),messageBottom:Q(this,A.messageBottom,"bottom")}});var o=function(t){var e="*"===t.filename&&"*"!==t.title&&t.title!==s&&null!==t.title&&""!==t.title?t.title:t.filename;if("function"==typeof e&&(e=e()),e===s||null===e)return null;-1!==e.indexOf("*")&&(e=A.trim(e.replace("*",A("head > title").text()))),e=e.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");var i=g(t.extension);return i||(i=""),e+i},g=function(A){return null===A||A===s?null:"function"==typeof A?A():A},a=function(t){var e=g(t.title);return null===e?null:-1!==e.indexOf("*")?e.replace("*",A("head > title").text()||"Exported data"):e},Q=function(t,e,s){var i=g(e);if(null===i)return null;var B=A("caption",t.table().container()).eq(0);return"*"===i?B.css("caption-side")!==s?null:B.length?B.text():"":i},c=A("