diff -r 4ce46ff3e37d -r dbaed96a4a0c www-thermferm/jqwidgets/jqxgrid.export.js --- a/www-thermferm/jqwidgets/jqxgrid.export.js Sat Nov 29 16:07:34 2014 +0100 +++ b/www-thermferm/jqwidgets/jqxgrid.export.js Sat Nov 29 21:03:31 2014 +0100 @@ -1,7 +1,7 @@ /* -jQWidgets v3.4.0 (2014-June-23) +jQWidgets v3.6.0 (2014-Nov-25) Copyright (c) 2011-2014 jQWidgets. License: http://jqwidgets.com/license/ */ -(function(a){a.extend(a.jqx._jqxGrid.prototype,{exportdata:function(q,y,x,o,r,t,f){if(!a.jqx.dataAdapter.ArrayExporter){throw"jqxGrid: Missing reference to jqxdata.export.js!"}if(x==undefined){x=true}var G=this;if(o==undefined){var o=this.getrows();if(o.length==0){throw"No data to export."}}this.exporting=true;if(!this.pageable){this.loadondemand=true}if(this.altrows){this._renderrows(this.virtualsizeinfo)}var E=r!=undefined?r:false;var D={};var n={};var v=[];var l=this.host.find(".jqx-grid-cell:first");var w=this.host.find(".jqx-grid-cell-alt:first");l.removeClass(this.toThemeProperty("jqx-grid-cell-selected"));l.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));w.removeClass(this.toThemeProperty("jqx-grid-cell-selected"));w.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));l.removeClass(this.toThemeProperty("jqx-grid-cell-hover"));l.removeClass(this.toThemeProperty("jqx-fill-state-hover"));w.removeClass(this.toThemeProperty("jqx-grid-cell-hover"));w.removeClass(this.toThemeProperty("jqx-fill-state-hover"));var g="cell";var e=1;var F="column";var c=1;var h=[];for(var A=0;A1){var j=a(G.table[0].rows[1].cells[J])}var I=this;var K=function(O){O.removeClass(G.toThemeProperty("jqx-grid-cell-selected"));O.removeClass(G.toThemeProperty("jqx-fill-state-pressed"));O.removeClass(G.toThemeProperty("jqx-grid-cell-hover"));O.removeClass(G.toThemeProperty("jqx-fill-state-hover"));if(I.customCellStyles){for(var P in I.customCellStyles){O.removeClass(I.customCellStyles[P])}}};K(M);if(j){K(j)}if(this.displayfield==null){return true}if(G.showaggregates){if(G.getcolumnaggregateddata){h.push(G.getcolumnaggregateddata(this.displayfield,this.aggregates,true,o))}}var L=G._getexportcolumntype(this);if(this.exportable&&(!this.hidden||E)){D[this.displayfield]={};D[this.displayfield].text=this.text;D[this.displayfield].width=parseInt(this.width);if(isNaN(D[this.displayfield].width)){D[this.displayfield].width=60}D[this.displayfield].formatString=this.cellsformat;D[this.displayfield].localization=G.gridlocalization;D[this.displayfield].type=L;D[this.displayfield].cellsAlign=this.cellsalign;D[this.displayfield].hidden=!x}g="cell"+e;var N=a(this.element);if(this.element==undefined){N=a(this.uielement)}F="column"+c;if(q=="html"||q=="xls"||q=="pdf"){var i=function(O,W,V,P,U,R,Q,S,T){n[O]={};n[O]["font-size"]=W.css("font-size");n[O]["font-weight"]=W.css("font-weight");n[O]["font-style"]=W.css("font-style");n[O]["background-color"]=R._getexportcolor(W.css("background-color"));n[O]["color"]=R._getexportcolor(W.css("color"));n[O]["border-color"]=R._getexportcolor(W.css("border-top-color"));if(V){n[O]["text-align"]=U.align}else{n[O]["text-align"]=U.cellsalign;n[O]["formatString"]=U.cellsformat;n[O]["dataType"]=L}if(q=="html"||q=="pdf"){n[O]["border-top-width"]=W.css("border-top-width");n[O]["border-left-width"]=W.css("border-left-width");n[O]["border-right-width"]=W.css("border-right-width");n[O]["border-bottom-width"]=W.css("border-bottom-width");n[O]["border-top-style"]=W.css("border-top-style");n[O]["border-left-style"]=W.css("border-left-style");n[O]["border-right-style"]=W.css("border-right-style");n[O]["border-bottom-style"]=W.css("border-bottom-style");if(V){if(Q==0){n[O]["border-left-width"]=W.css("border-right-width")}n[O]["border-top-width"]=W.css("border-right-width");n[O]["border-bottom-width"]=W.css("border-bottom-width")}else{if(Q==0){n[O]["border-left-width"]=W.css("border-right-width")}}n[O]["height"]=W.css("height")}if(U.exportable&&(!U.hidden||E)){if(S==true){if(!D[U.displayfield].customCellStyles){D[U.displayfield].customCellStyles=new Array()}D[U.displayfield].customCellStyles[T]=O}else{if(V){D[U.displayfield].style=O}else{if(!P){D[U.displayfield].cellStyle=O}else{D[U.displayfield].cellAltStyle=O}}}}};i(F,N,true,false,this,G,J);c++;i(g,M,false,false,this,G,J);if(G.altrows){g="cellalt"+e;i(g,j,false,true,this,G,J)}if(this.customCellStyles){for(var H in I.customCellStyles){M.removeClass(I.customCellStyles[H])}for(var H in I.customCellStyles){M.addClass(I.customCellStyles[H]);i(g+I.customCellStyles[H],M,false,false,this,G,J,true,H);M.removeClass(I.customCellStyles[H])}}e++}});if(this.showaggregates){var C=[];var z=q=="xls"?"AG":"";var k=this.groupable?this.groups.length:0;if(this.rowdetails){k++}if(h.length>0){a.each(this.columns.records,function(j){if(this.aggregates){for(var I=0;I1){var j=a(H.table[0].rows[1].cells[K])}var J=this;var L=function(P){P.removeClass(H.toThemeProperty("jqx-grid-cell-selected"));P.removeClass(H.toThemeProperty("jqx-fill-state-pressed"));P.removeClass(H.toThemeProperty("jqx-grid-cell-hover"));P.removeClass(H.toThemeProperty("jqx-fill-state-hover"));if(J.customCellStyles){for(var Q in J.customCellStyles){P.removeClass(J.customCellStyles[Q])}}};L(N);if(j){L(j)}if(this.displayfield==null){return true}if(H.showaggregates){if(H.getcolumnaggregateddata){h.push(H.getcolumnaggregateddata(this.displayfield,this.aggregates,true,o))}}var M=H._getexportcolumntype(this);if(this.exportable&&(!this.hidden||F)){E[this.displayfield]={};E[this.displayfield].text=this.text;E[this.displayfield].width=parseInt(this.width);if(isNaN(E[this.displayfield].width)){E[this.displayfield].width=60}E[this.displayfield].formatString=this.cellsformat;E[this.displayfield].localization=H.gridlocalization;E[this.displayfield].type=M;E[this.displayfield].cellsAlign=this.cellsalign;E[this.displayfield].hidden=!y;E[this.displayfield].displayfield=this.displayfield;x.push(E[this.displayfield])}g="cell"+e;var O=a(this.element);if(this.element==undefined){O=a(this.uielement)}G="column"+c;if(q=="html"||q=="xls"||q=="pdf"){var i=function(P,X,W,Q,V,S,R,T,U){n[P]={};if(X==undefined){return}n[P]["font-size"]=X.css("font-size");n[P]["font-weight"]=X.css("font-weight");n[P]["font-style"]=X.css("font-style");n[P]["background-color"]=S._getexportcolor(X.css("background-color"));n[P]["color"]=S._getexportcolor(X.css("color"));n[P]["border-color"]=S._getexportcolor(X.css("border-top-color"));if(W){n[P]["text-align"]=V.align}else{n[P]["text-align"]=V.cellsalign;n[P]["formatString"]=V.cellsformat;n[P]["dataType"]=M}if(q=="html"||q=="pdf"){n[P]["border-top-width"]=X.css("border-top-width");n[P]["border-left-width"]=X.css("border-left-width");n[P]["border-right-width"]=X.css("border-right-width");n[P]["border-bottom-width"]=X.css("border-bottom-width");n[P]["border-top-style"]=X.css("border-top-style");n[P]["border-left-style"]=X.css("border-left-style");n[P]["border-right-style"]=X.css("border-right-style");n[P]["border-bottom-style"]=X.css("border-bottom-style");if(W){if(R==0){n[P]["border-left-width"]=X.css("border-right-width")}n[P]["border-top-width"]=X.css("border-right-width");n[P]["border-bottom-width"]=X.css("border-bottom-width")}else{if(R==0){n[P]["border-left-width"]=X.css("border-right-width")}}n[P]["height"]=X.css("height")}if(V.exportable&&(!V.hidden||F)){if(T==true){if(!E[V.displayfield].customCellStyles){E[V.displayfield].customCellStyles=new Array()}E[V.displayfield].customCellStyles[U]=P}else{if(W){E[V.displayfield].style=P}else{if(!Q){E[V.displayfield].cellStyle=P}else{E[V.displayfield].cellAltStyle=P}}}}};i(G,O,true,false,this,H,K);c++;i(g,N,false,false,this,H,K);if(H.altrows){g="cellalt"+e;i(g,j,false,true,this,H,K)}if(this.customCellStyles){for(var I in J.customCellStyles){N.removeClass(J.customCellStyles[I])}for(var I in J.customCellStyles){N.addClass(J.customCellStyles[I]);i(g+J.customCellStyles[I],N,false,false,this,H,K,true,I);N.removeClass(J.customCellStyles[I])}}e++}});a.each(this.columns.records,function(i){if(E[this.displayfield]){E[this.displayfield].columnsDataFields=x}});if(this.showaggregates){var D=[];var A=q=="xls"?"_AG":"";var k=this.groupable?this.groups.length:0;if(this.rowdetails){k++}if(h.length>0){a.each(this.columns.records,function(j){if(this.aggregates){for(var J=0;J