diff -r 065a242ed7ec -r 7119ea8a5225 www-thermferm/jqwidgets/jqxgrid.export.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www-thermferm/jqwidgets/jqxgrid.export.js Sun Jul 20 23:09:50 2014 +0200 @@ -0,0 +1,7 @@ +/* +jQWidgets v3.4.0 (2014-June-23) +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;I