diff -r fa742816bb8b -r 259c97782bf8 www/jqwidgets/jqxgrid.export.js --- a/www/jqwidgets/jqxgrid.export.js Wed Aug 21 17:26:56 2019 +0200 +++ b/www/jqwidgets/jqxgrid.export.js Thu Aug 22 14:10:58 2019 +0200 @@ -1,9 +1,9 @@ /* -jQWidgets v7.2.0 (2019-Apr) +jQWidgets v8.1.4 (2019-July) Copyright (c) 2011-2019 jQWidgets. License: https://jqwidgets.com/license/ */ /* eslint-disable */ -(function(a){a.extend(a.jqx._jqxGrid.prototype,{exportdata:function(s,B,A,q,t,v,h){if(!a.jqx.dataAdapter.ArrayExporter){throw"jqxGrid: Missing reference to jqxdata.export.js!"}if(A==undefined){A=true}var K=this;if(q==undefined){var q=this.getrows();if(q.length==0){throw"No data to export."}}this.exporting=true;if(!this.pageable){this.loadondemand=true}if(this.altrows){this._renderrows(this.virtualsizeinfo)}var H=t!=undefined?t:false;var G={};var p={};var x=[];var n=this.host.find(".jqx-grid-cell:first");var y=this.host.find(".jqx-grid-cell-alt:first");n.removeClass(this.toThemeProperty("jqx-grid-cell-selected"));n.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));y.removeClass(this.toThemeProperty("jqx-grid-cell-selected"));y.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));n.removeClass(this.toThemeProperty("jqx-grid-cell-hover"));n.removeClass(this.toThemeProperty("jqx-fill-state-hover"));y.removeClass(this.toThemeProperty("jqx-grid-cell-hover"));y.removeClass(this.toThemeProperty("jqx-fill-state-hover"));var k="cell";var g=1;var I="column";var e=1;var l=[];for(var D=0;D1){var j=a(K.table[0].rows[1].cells[N]);if(!b){b=j}}if(!c){c=R}var M=this;var O=function(T){T.removeClass(K.toThemeProperty("jqx-grid-cell-selected"));T.removeClass(K.toThemeProperty("jqx-fill-state-pressed"));T.removeClass(K.toThemeProperty("jqx-grid-cell-hover"));T.removeClass(K.toThemeProperty("jqx-fill-state-hover"));if(M.customCellStyles){for(var U in M.customCellStyles){T.removeClass(M.customCellStyles[U])}}};O(R);if(j){O(j)}if(this.displayfield==null){return true}if(K.showaggregates){if(K.getcolumnaggregateddata){l.push(K.getcolumnaggregateddata(this.displayfield,this.aggregates,true,q))}}var Q=K._getexportcolumntype(this);if(this.exportable&&(!this.hidden||H)){G[this.displayfield]={};G[this.displayfield].text=this.text;G[this.displayfield].width=parseInt(this.width);if(isNaN(G[this.displayfield].width)){G[this.displayfield].width=60}G[this.displayfield].formatString=this.cellsformat;G[this.displayfield].localization=K.gridlocalization;G[this.displayfield].type=Q;G[this.displayfield].cellsAlign=this.cellsalign;G[this.displayfield].hidden=!A;G[this.displayfield].displayfield=this.displayfield;z.push(G[this.displayfield])}k="cell"+g;var S=a(this.element);if(this.element==undefined){S=a(this.uielement)}if(!J){J=S}else{if(!M._rendered){S=J;R=c;j=b;var P=K.toTP("jqx-grid-cell")+" "+K.toTP("jqx-item");R[0].className=P;P+=K.toTP("jqx-grid-cell-alt");if(j){j[0].className=P}}}I="column"+e;if(s=="html"||s=="xls"||s=="pdf"){var i=function(T,ab,aa,U,Z,W,V,X,Y){p[T]={};if(ab==undefined){return}p[T]["font-size"]=ab.css("font-size");p[T]["font-weight"]=ab.css("font-weight");p[T]["font-style"]=ab.css("font-style");p[T]["background-color"]=W._getexportcolor(ab.css("background-color"));p[T]["color"]=W._getexportcolor(ab.css("color"));p[T]["border-color"]=W._getexportcolor(ab.css("border-top-color"));if(aa){p[T]["text-align"]=Z.align}else{p[T]["text-align"]=Z.cellsalign;p[T]["formatString"]=Z.cellsformat;p[T]["dataType"]=Q}if(s=="html"||s=="pdf"){p[T]["border-top-width"]=ab.css("border-top-width");p[T]["border-left-width"]=ab.css("border-left-width");p[T]["border-right-width"]=ab.css("border-right-width");p[T]["border-bottom-width"]=ab.css("border-bottom-width");p[T]["border-top-style"]=ab.css("border-top-style");p[T]["border-left-style"]=ab.css("border-left-style");p[T]["border-right-style"]=ab.css("border-right-style");p[T]["border-bottom-style"]=ab.css("border-bottom-style");if(aa){if(V==0){p[T]["border-left-width"]=ab.css("border-right-width")}p[T]["border-top-width"]=ab.css("border-right-width");p[T]["border-bottom-width"]=ab.css("border-bottom-width")}else{if(V==0){p[T]["border-left-width"]=ab.css("border-right-width")}}p[T]["height"]=ab.css("height")}if(Z.exportable&&(!Z.hidden||H)){if(X==true){if(!G[Z.displayfield].customCellStyles){G[Z.displayfield].customCellStyles=new Array()}G[Z.displayfield].customCellStyles[Y]=T}else{if(aa){G[Z.displayfield].style=T}else{if(!U){G[Z.displayfield].cellStyle=T}else{G[Z.displayfield].cellAltStyle=T}}}}};i(I,S,true,false,this,K,N);e++;i(k,R,false,false,this,K,N);if(K.altrows){k="cellalt"+g;i(k,j,false,true,this,K,N)}if(this.customCellStyles){for(var L in M.customCellStyles){R.removeClass(M.customCellStyles[L])}for(var L in M.customCellStyles){R.addClass(M.customCellStyles[L]);i(k+M.customCellStyles[L],R,false,false,this,K,N,true,L);R.removeClass(M.customCellStyles[L])}}g++}});a.each(this.columns.records,function(i){if(G[this.displayfield]){G[this.displayfield].columnsDataFields=z}});if(this.showaggregates){var F=[];var C=s=="xls"?"_AG":"";var m=this.groupable?this.groups.length:0;if(this.rowdetails){m++}if(this.selectionmode==="checkbox"){m++}if(l.length>0){a.each(this.columns.records,function(j){if(this.aggregates){for(var M=0;M1){var j=a(L.table[0].rows[1].cells[O]);if(!b){b=j}}if(!c){c=S}var N=this;var P=function(U){U.removeClass(L.toThemeProperty("jqx-grid-cell-selected"));U.removeClass(L.toThemeProperty("jqx-fill-state-pressed"));U.removeClass(L.toThemeProperty("jqx-grid-cell-hover"));U.removeClass(L.toThemeProperty("jqx-fill-state-hover"));if(N.customCellStyles){for(var V in N.customCellStyles){U.removeClass(N.customCellStyles[V])}}};P(S);if(j){P(j)}if(this.displayfield==null){return true}if(L.showaggregates){if(L.getcolumnaggregateddata){l.push(L.getcolumnaggregateddata(this.displayfield,this.aggregates,true,q))}}var R=L._getexportcolumntype(this);if(this.exportable&&(!this.hidden||J)){H[this.displayfield]={};H[this.displayfield].text=this.text;H[this.displayfield].width=parseInt(this.width);if(isNaN(H[this.displayfield].width)){H[this.displayfield].width=60}H[this.displayfield].formatString=this.cellsformat;H[this.displayfield].localization=L.gridlocalization;H[this.displayfield].type=R;H[this.displayfield].cellsAlign=this.cellsalign;H[this.displayfield].hidden=!B;H[this.displayfield].displayfield=this.displayfield;z.push(H[this.displayfield])}k="cell"+g;var T=a(this.element);if(this.element==undefined){T=a(this.uielement)}if(!K){K=T}else{if(!N._rendered){T=K;S=c;j=b;var Q=L.toTP("jqx-grid-cell")+" "+L.toTP("jqx-item");S[0].className=Q;Q+=L.toTP("jqx-grid-cell-alt");if(j){j[0].className=Q}}}I="column"+e;if(s=="html"||s=="xls"||s=="pdf"){var i=function(U,ac,ab,V,aa,X,W,Y,Z){p[U]={};if(ac==undefined){return}if(ac[0].offsetWidth==0||ac[0].offsetHeight==0){return}p[U]["font-size"]=ac.css("font-size");p[U]["font-weight"]=ac.css("font-weight");p[U]["font-style"]=ac.css("font-style");p[U]["background-color"]=X._getexportcolor(ac.css("background-color"));p[U]["color"]=X._getexportcolor(ac.css("color"));p[U]["border-color"]=X._getexportcolor(ac.css("border-top-color"));if(ab){p[U]["text-align"]=aa.align}else{p[U]["text-align"]=aa.cellsalign;p[U]["formatString"]=aa.cellsformat;p[U]["dataType"]=R}if(s=="html"||s=="pdf"){p[U]["border-top-width"]=ac.css("border-top-width");p[U]["border-left-width"]=ac.css("border-left-width");p[U]["border-right-width"]=ac.css("border-right-width");p[U]["border-bottom-width"]=ac.css("border-bottom-width");p[U]["border-top-style"]=ac.css("border-top-style");p[U]["border-left-style"]=ac.css("border-left-style");p[U]["border-right-style"]=ac.css("border-right-style");p[U]["border-bottom-style"]=ac.css("border-bottom-style");if(ab){if(W==0){p[U]["border-left-width"]=ac.css("border-right-width")}p[U]["border-top-width"]=ac.css("border-right-width");p[U]["border-bottom-width"]=ac.css("border-bottom-width")}else{if(W==0){p[U]["border-left-width"]=ac.css("border-right-width")}}p[U]["height"]=ac.css("height")}if(aa.exportable&&(!aa.hidden||J)){if(Y==true){if(!H[aa.displayfield].customCellStyles){H[aa.displayfield].customCellStyles=new Array()}H[aa.displayfield].customCellStyles[Z]=U}else{if(ab){H[aa.displayfield].style=U}else{if(!V){H[aa.displayfield].cellStyle=U}else{H[aa.displayfield].cellAltStyle=U}}}}};i(I,T,true,false,this,L,O);e++;i(k,S,false,false,this,L,O);if(L.altrows){k="cellalt"+g;i(k,j,false,true,this,L,O)}if(this.customCellStyles){for(var M in N.customCellStyles){S.removeClass(N.customCellStyles[M])}for(var M in N.customCellStyles){S.addClass(N.customCellStyles[M]);i(k+N.customCellStyles[M],S,false,false,this,L,O,true,M);S.removeClass(N.customCellStyles[M])}}g++}});a.each(this.columns.records,function(i){if(H[this.displayfield]){H[this.displayfield].columnsDataFields=z}});if(this.showaggregates){var G=[];var D=s=="xls"?"_AG":"";var m=this.groupable?this.groups.length:0;if(this.rowdetails){m++}if(this.selectionmode==="checkbox"){m++}if(l.length>0){a.each(this.columns.records,function(j){if(this.aggregates){for(var N=0;N