profoundjs 7.17.0 → 7.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/htdocs/profoundui/proddata/js/atrium.js +122 -121
- package/htdocs/profoundui/proddata/js/designer.js +3807 -3804
- package/htdocs/profoundui/proddata/js/genie.js +1504 -1503
- package/htdocs/profoundui/proddata/js/profoundai.js +23 -23
- package/htdocs/profoundui/proddata/js/runtime.js +488 -487
- package/package.json +1 -1
- package/profound.jse +1 -1
- package/setup/config.js +2 -1
- package/setup/pjsdist.savf +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function ka(){return function(b){return b}}function na(){return function(){}}function
|
|
1
|
+
function ka(){return function(b){return b}}function na(){return function(){}}function ta(b){return function(){return b}}var ua,N="dspf",Da="dspfDesigner0",Ga="OFF";var Ia=0,Ka=-20,Na=[];N=="genie"&&window.parent==window&&window.history.forward(1);var Wa=typeof window.pui=="object"?pui.serverURL:null;window.pui={};if(Wa)pui.serverURL=Wa;var ab=navigator.userAgent.toLowerCase();pui.is_edge=ab.indexOf("edg/")!=-1;pui.is_ie=false;pui.is_opera=ab.indexOf("opera")!=-1||ab.indexOf("opr/")!=-1;pui.is_chrome=!pui.is_edge&&ab.indexOf("chrome")!=-1;pui.is_safari=!pui.is_edge&&!pui.is_chrome&&ab.indexOf("safari")!=-1;pui.is_firefox=ab.indexOf("firefox")!=-1;
|
|
2
2
|
pui.is_android=ab.indexOf("android")!=-1;pui.is_quirksmode=document.compatMode=="BackCompat";pui.is_ios=ab.indexOf("iphone")!=-1||ab.indexOf("ipad")!=-1||ab.indexOf("ipod")!=-1;var fb,ib,mb,nb;fb=/trident\/([0-9]{1,}[.0-9]{0,})/;nb=fb.exec(ab);if(nb!=null)ib=parseFloat(nb[1]);if(!pui.is_opera){fb=/msie ([0-9]{1,}[.0-9]{0,})/;nb=fb.exec(ab);if(nb!=null)mb=parseFloat(nb[1])}if(ib||mb){pui.is_ie=true;pui.ie_mode=mb||ib+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=ib?ib+4:mb}pui.secLevel=0;
|
|
3
|
-
pui.Nc=null;pui.Hl=null;pui.Il=null;pui.defaultDateFormat="MM/DD/YY";pui.is_touch="ontouchstart"in window;pui.touchDevice=pui.is_touch;pui.is_mouse_capable=false;pui.designer={};pui.designer["initial keywords"]=[];pui.designer.currentDisplay={};pui.ide={};pui.cloud={};pui.cloud.views={};pui.social={};pui.cnv={};pui.cnv.
|
|
3
|
+
pui.Nc=null;pui.Hl=null;pui.Il=null;pui.defaultDateFormat="MM/DD/YY";pui.is_touch="ontouchstart"in window;pui.touchDevice=pui.is_touch;pui.is_mouse_capable=false;pui.designer={};pui.designer["initial keywords"]=[];pui.designer.currentDisplay={};pui.ide={};pui.cloud={};pui.cloud.views={};pui.social={};pui.cnv={};pui.cnv.yA={};pui.Ie={};pui.toolbox={};pui.toolbox.add=na();pui["field exit key"]=107;pui["field exit minus key"]=109;pui["no connection status"]=false;pui["client side timeout"]=true;
|
|
4
4
|
pui.Pq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*MDY":5,"*DMY":6,"*YMD":7,"*JUL":8,"*JOB":10};pui.Qq={"/":1,"-":2,".":3,",":4," ":5,"*BLANK":5,"*JOB":7};pui.Rq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*HMS":9};pui.Sq={".":3,",":4," ":5,"*BLANK":5,":":6,"*JOB":7};
|
|
5
5
|
pui.cB=["abstract","arguments","await","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try",
|
|
6
|
-
"typeof","var","void","volatile","while","with","yield"];pui.fa=false;pui.
|
|
6
|
+
"typeof","var","void","volatile","while","with","yield"];pui.fa=false;pui.iA=null;pui["function key pattern"]="^(F|CA|CF|CK|CMD)([0-9]{1,2})([=:-])(.*)$";pui["special key pattern"]="^(Enter|PageUp|PageDown|Rollup|RollDown|RollDn|PgUp|PgDn|Help|Print)([=-])(.*)$";pui.hq=0;pui["session timeout retries"]=0;pui.cA=0;pui.oj=false;pui.Xz="profoundjs.com";pui.Oz="http://www.w3.org/2000/svg";pui.Mp={};pui["text file name pattern"]=/.+\.(css|js|json|html|htm|xml|txt|csv|sh|md|sql|scn|lst|xml|conf|php|log|ts|less|scss|cpp|ejs|vue|ts|jsx)$/i;
|
|
7
7
|
pui["always allow field exit"]=false;pui.dup={};pui.dup["char"]="\u25cf";pui.dup.keyCode=45;pui.dup.shift=true;pui.dup.ctrl=false;pui.dup.alt=false;pui.wf={WA:{},iB:{},plugins:{},addPlugin:function(b){var a=pui.wf.plugins,c=b.category;a[c]||(a[c]={});a[c][b.name]=b}};pui["add combo style properties to choice list"]=true;pui.viewdesigner=false;pui.nodedesigner=false;if(window.pui_cloud_designer)pui.nodedesigner=true;else if(location.pathname.match(/^\/ide/i))pui.nodedesigner=true;else{var qb=location.pathname.match(/\/([^/]+)\/?$/i);if(qb&&qb[1].toLowerCase()==="viewdesigner")pui.viewdesigner=true;else if(qb&&qb[1].toLowerCase()==="nodedesigner")pui.nodedesigner=true}pui.Yn=false;window.pui||(window.pui={});window.pui.baseVersion="6";window.pui.fixPackVersion="31.0";window.pui.version=window.pui.baseVersion+"."+window.pui.fixPackVersion;function tb(b){if(b.touches!=null&&b.touches.length==1)return b.touches[0].target;b=b.target;if(b.nodeType==3)b=b.parentNode;return b}function ub(b){b.preventDefault();b.stopPropagation()}pui.Ke=function(b){ub(b);return false};function vb(b){for(var a=Array(256),c=0;c<=255;c++)a[c]=c;wb(a,b)}
|
|
8
8
|
function zb(b){var a;if(typeof b=="string")b=Ab(b);if(b==null)return-1;if(b.tagName!="INPUT"||!pui.fj(b))return-1;if(document.selection!=null){if(b==null)b=document.activeElement;a=document.selection.createRange()}var c=0;if(b!=null&&a!=null&&b.createTextRange!=null)try{var e=b.createTextRange();if(e){for(;a.compareEndPoints("StartToStart",e)>0;){e.moveStart("character",1);c++}return c}}catch(f){return-1}else if(b!=null)try{if(b.selectionStart!=null)return b.selectionStart}catch(g){}return-1}
|
|
9
9
|
function Eb(){if(pui.ide&&pui.ide.designerId)return true;if(Hb==null)return false;if(Hb.designer==null)return false;return true}
|
|
@@ -17,23 +17,23 @@ Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{va
|
|
|
17
17
|
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(b,a){if(this==null)throw new TypeError('"this" is null or not defined');var c=Object(this),e=c.length>>>0;if(e===0)return false;var f=a|0;for(f=Math.max(f>=0?f:e-Math.abs(f),0);f<e;){if(c[f]===b||typeof c[f]==="number"&&typeof b==="number"&&isNaN(c[f])&&isNaN(b))return true;f++}return false},configurable:true});
|
|
18
18
|
if(location.origin===undefined){pui.vq=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"");try{Object.defineProperty(location,"origin",{value:pui.vq,enumerable:true})}catch(Lb){location.origin=pui.vq}delete pui.vq}if(!Object.entries)Object.entries=function(b){for(var a=Object.keys(b),c=a.length,e=Array(c);c--;)e[c]=[a[c],b[a[c]]];return e};
|
|
19
19
|
String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(b,a){if(b instanceof RegExp)throw TypeError("first argument must not be a RegExp");if(a===undefined)a=0;return this.indexOf(b,a)!==-1}});String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(b,a){var c=a>0?a|0:0;return this.substring(c,c+b.length)===b}});
|
|
20
|
-
pui.Wi=function(b,a){var c=b[a];if(c==null){var e=a.split(" "),f=Number(e[e.length-1]);if(!isNaN(f)&&f>0){e.pop();e=b[e.join(" ")];if(e!=null){c={};for(var g in e){f=e[g];if(g=="name")c.name=a;else if(typeof f=="object"&&f.length!=null){c[g]=[];for(var h=0;h<f.length;h++)c[g].push(f[h])}else c[g]=e[g]}}}}return c};pui.ne=function(b,a){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};pui.
|
|
20
|
+
pui.Wi=function(b,a){var c=b[a];if(c==null){var e=a.split(" "),f=Number(e[e.length-1]);if(!isNaN(f)&&f>0){e.pop();e=b[e.join(" ")];if(e!=null){c={};for(var g in e){f=e[g];if(g=="name")c.name=a;else if(typeof f=="object"&&f.length!=null){c[g]=[];for(var h=0;h<f.length;h++)c[g].push(f[h])}else c[g]=e[g]}}}}return c};pui.ne=function(b,a){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};pui.Rz=function(b,a){for(var c=0;c<b.length;c++)a(b[c])};
|
|
21
21
|
pui.ae=function(b,a){if(a==null)a=0;var c=parseInt(b,10);if(isNaN(c))c=a;return c};
|
|
22
22
|
pui.He=function(){var b={9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Esc",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",3:"Enter",63234:"Left",63235:"Right",63232:"Up",63233:"Down",63276:"Page Up",63277:"Page Down",63272:"Delete",63273:"Home",63275:"End"};return function(a,c){var e=a.key||String.fromCharCode(a.charCode||a.keyCode);a.ctrlKey||e&&e.length>1||!e&&!a.key&&b[a.keyCode]||c.test(e)||ub(a)}}();
|
|
23
|
-
function wb(b,a){if(N=="genie"&&pui.F.
|
|
23
|
+
function wb(b,a){if(N=="genie"&&pui.F.sA(a)!="")return true;if(N=="dspf"){var c;a:{c=a.keyCode;for(var e=0;e<b.length;e++)if(b[e]==c)if(!(a.Nf&&Event.qk)){c=true;break a}a.preventDefault();a.stopPropagation();c=false}return c}var f,g;c=a.keyCode;e=a.target;var h=pui.fj(e);if(pui.F.Md){if(pui.F.config.dA){if(a.Nf)f=a.Nf&&Event.qk;if(!a.Nf)f=a.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}ub(a);return false}lastActiveElement=e;if(c==9){if(a.Nf)f=a.Nf&&Event.qk;if(!a.Nf)f=a.shiftKey;if(f=
|
|
24
24
|
f?goPrev(e,0,true):goNext(e,true)){ub(a);return false}}else if(c==35&&h){if(e.value!=Ob(e.value))e.value=Ob(e.value)}else if(c==37)if(h){g=zb(e);if(g==0){goPrev(e);ub(a);return false}}else{if(e.tagName!="TEXTAREA"){goPrev(e);ub(a);return false}}else if(c==38&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.Ab==null||e.Ab.ej()==false)if(!pui.F.config.lh){goUp(e);ub(a);return false}}else if(c==39)if(h){maxLength=Number(e.getAttribute("maxLength"));g=zb(e);f=e.value.length;if(g>=f){goNext(e);ub(a);
|
|
25
25
|
return false}}else{if(e.tagName!="TEXTAREA"){goNext(e);ub(a);return false}}else if(c==40&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.Ab==null||e.Ab.ej()==false)if(!pui.F.config.lh){goDown(e);ub(a);return false}}else if(c==45&&pui.is_ie&&h&&N=="genie"&&a.shiftKey!=true&&a.ctrlKey!=true){f=e.selectionEnd;g=e.value.substring(0,f);g+=Ob(e.value.substring(f));e.value=g;e.setSelectionRange(f,f)}if(h&&pui.Ex(a)){pui.qq(e);if(c==pui["field exit minus key"]&&Pb(e,true)){ub(a);return false}h=e.getAttribute("num");
|
|
26
26
|
if(c==pui["field exit minus key"]&&Pb(e,true)&&!pui["disable field exit on alphanumeric"]){ub(a);return false}else if(pui["disable field exit on alphanumeric"]&&(h==null||h=="000"||h=="010"))return false;Pb(e);ub(a);return false}if(a.ctrlKey==true&&(c==67||c==86))return true;for(e=0;e<b.length;e++)if(b[e]==c)if(!(a.Nf&&Event.qk))return true;ub(a);return false}
|
|
27
27
|
function Pb(b,a){if(b.readOnly==true)return false;var c,e=false,f=b.getAttribute("signedNumeric"),g=b.getAttribute("num");g=g==="011"||g==="101"||g==="111";var h=false;if(a&&(f==null||f!="Y")&&!g)return false;c=b.ho;if(pui.is_touch&&!pui.is_mouse_capable)c=zb(b);if(c==null)return false;if(c<0)return false;if(c>=0){h=b.value!==b.value.substr(0,c);b.value=b.value.substr(0,c);c=b.getAttribute("blankFill");if(f!=null&&f=="Y"||g)c="Y";if(c!=null&&c=="Y"){e=true;fill=" "}c=
|
|
28
28
|
b.getAttribute("zeroFill");if(c!=null&&c=="Y"){e=true;fill="00000000000000000000000000000000000000000000000000000000000000000000000000000000"}c=b.getAttribute("maxLength");if(e&&c!=null){e=fill+Tb(b.value);e=e.substr(e.length-c);if(f!=null&&f=="Y"||a&&g)if(e.substr(e.length-1)!="-"){e+=a?"-":" ";e=e.substr(1)}b.value=e}}h&&typeof b.onchange==="function"&&b.onchange();b.getAttribute("autoenter")==="Y"?Ub("enter"):goNext(b);return true}
|
|
29
|
-
pui.Nr=function(b){if(!(pui.is_touch&&!pui.is_mouse_capable||pui.qa))if(pui.qj==null)if(pui.confirmOnClose&&!pui.skipConfirm)if(!(N=="genie"&&pui.
|
|
29
|
+
pui.Nr=function(b){if(!(pui.is_touch&&!pui.is_mouse_capable||pui.qa))if(pui.qj==null)if(pui.confirmOnClose&&!pui.skipConfirm)if(!(N=="genie"&&pui.IA())){for(var a=window;a!=null&&a!=a.parent;){a=a.parent;if(pui.sg(a))return;try{if(typeof a.pui!="undefined")return}catch(c){}}if(pui.F!=null||!pui.designer.Tm||N=="dspf"&&pui.designer.Tm&&typeof pui.ide.isDirty==="function"&&pui.ide.isDirty()){a=pui.Yn?pui.closeMessage:pui.getLanguageText("runtimeMsg","closeMessage");if(N=="genie"&&pui.F.config.closeMessage!=
|
|
30
30
|
null&&pui.F.config.closeMessage!="")a=pui.F.config.closeMessage;return b.returnValue=a}}};
|
|
31
31
|
pui.unload=function(){var b=false;if(pui.F!==null&&pui.hardshutdownOnClose)b=true;if((pui.shutdownOnClose||b)&&pui.qj==null){pui.halted=true;window.puihalted=true;pui["keep frames"]||pui.ot();var a;a=pui.F==null?Vb("PUI0001200.pgm"):Vb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{a=pui.overrideSubmitUrl(a)}catch(c){}if(navigator!=null&&typeof navigator.sendBeacon=="function"&&typeof window.Blob=="function"){b=
|
|
32
32
|
new Blob([(b?"hardshutdown=1":"shutdown=1")+(pui.isCloud?"&workspace_id="+pui.cloud.ws.id:"")],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(pui.pg(a),b)}else{b=b?{hardshutdown:"1"}:{shutdown:"1"};if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;Wb({url:pui.pg(a),method:"post",suppressAlert:true,params:b})}pui.shutdownOnClose=false}};
|
|
33
33
|
pui.Jr=function(){if(window.addEventListener){window.addEventListener("beforeunload",pui.Nr,false);if(!pui.designer.Tm||pui.F!=null)window.addEventListener("unload",pui.unload,false)}else if(window.attachEvent){window.attachEvent("onbeforeunload",pui.Nr);if(!pui.designer.Tm||pui.F!=null)window.attachEvent("onunload",pui.unload)}};
|
|
34
34
|
pui.Xk=function(b,a,c){var e=document.createElement("form");e.action=Vb("PUI0009106.pgm");if(pui.pjsServer)e.action="/profoundui/PUI0009106.pgm";e.action+="?contentType="+b+"&fileName="+a;if(pui.isCloud)e.action+="&workspace_id="+pui.cloud.ws.id;e.method="post";b=Xb("input","data");b.type="hidden";b.value=c;e.appendChild(b);document.body.appendChild(e);pui.skipConfirm=true;e.submit();setTimeout(function(){e.parentNode.removeChild(e);pui.skipConfirm=false},0)};
|
|
35
35
|
pui.Q=function(b,a){var c=b.className;if(c==null)c="";c=c.split(" ");for(var e=[],f=0;f<c.length;f++){if(c[f]==a)return;c[f]!=""&&e.push(c[f])}e.push(a);b.className=e.join(" ")};pui.da=function(b,a){b.className=pui.Rp(b.className,a)};pui.Rp=function(b,a,c){if(b==null)return"";if(b=="")return"";if(c==null||c=="")c=" ";b=b.split(c);c=[];for(var e=0;e<b.length;e++)b[e]!=""&&b[e]!=a&&c.push(b[e]);return c.join(" ")};
|
|
36
|
-
pui.
|
|
36
|
+
pui.dz=function(b,a){if(!(b.readOnly||b.disabled))if(!(a==null||a==null)){var c=b;if(c.comboBoxWidget!=null)c=c.comboBoxWidget.getBox();if(c.l!=null)c=c.l.getBox();c.emptyText=a;pui.qe(c);T(c,"focus",function(e){e=tb(e);if(e.value==e.emptyText){e.value="";pui.da(e,"empty-text")}});T(c,"blur",function(e){pui.qe(tb(e))})}};
|
|
37
37
|
pui.qe=function(b){if(!(b.readOnly||b.disabled))if(!(b.emptyText==null||b.emptyText==null)){if(b.value=="")b.value=b.emptyText;b.value==b.emptyText?pui.Q(b,"empty-text"):pui.da(b,"empty-text")}};
|
|
38
38
|
pui.ew=function(){function b(){if(e)Atrium.resetInactivityTimeout();else pui["client side timeout"]==true&&pui.kb.Rg.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.Zx){try{var a=Atrium.getSettings()}catch(c){}var e=a&&a.ACTIMEOUT==="1";if(!(!e&&pui.onuseractivity==null&&pui["client side timeout"]!=true)){T(document.body,"keydown",b);T(document.body,"mousemove",b);T(document.body,"click",b);T(document.body,"touchstart",b);T(document.body,"touchmove",b);pui.Zx=true}}};pui.va={};
|
|
39
39
|
pui.va.rt=(new Date).getTime();pui.va.ek=false;pui.va.timeout=600;pui.va.ht=null;pui.va.lq=function(){if(pui.va.ek)pui.va.reset();else{var b=pui["keep alive interval"];try{var a=Atrium.getSettings()}catch(c){}if(a&&a.ACTIMEOUT==="1")b=pui.timeout-10;if(b!=null){pui.va.timeout=b;pui.va.start()}}};pui.va.start=function(){if(!pui.va.ek){var b=pui.va.timeout*1E3;b/=4;if(b>3E3)b=3E3;pui.va.ht=setInterval(pui.va.check,b);pui.va.reset();pui.va.ek=true}};
|
|
@@ -44,8 +44,8 @@ g;e+=h}}}}b=b.parentNode&&b.parentNode.tagName!="TD"&&(a||b.parentNode.className
|
|
|
44
44
|
pui.Oq=function(){this.xr=function(a){if(typeof a.length=="undefined")a=Array(a);for(var c,e=0;e<a.length;e++){c={};for(var f in a[e])c[f.toUpperCase()]=a[e][f];b.push(c)}};this.send=function(a,c){var e="",f,g,h;h=false;for(var l;!h;){f="ProfoundUIMIMEBoundary"+Math.ceil(1E9*Math.random());l=false;for(var n=0;n<b.length;n++){g=b[n].VALUE;if(g.indexOf(f)!=-1){l=true;break}}l||(h=true)}h=f;for(l=0;l<b.length;l++){f=b[l];if(!(typeof f.NAME!="string"||typeof f.VALUE!="string")){e+="--"+h+"\r\n";e+='Content-Disposition: form-data; name="'+
|
|
45
45
|
f.NAME+'"';if(typeof f.FILENAME=="string"){g="application/octet-stream";if(typeof f.CONTENTTYPE=="string")g=f.CONTENTTYPE;e+='; filename="'+f.FILENAME+'"\r\n';e+="Content-Type: "+g}if(f.TRANSFERENCODING!=null)e+="\r\nContent-Transfer-Encoding: "+f.TRANSFERENCODING;e+="\r\n\r\n";e+=f.VALUE;e+="\r\n"}}e+="--"+h+"--";f=new pui.Ajax(a);f.suppressAlert=true;f.async=true;f.method="POST";f.sendAsBinary=false;f.setRequestHeader("Content-Type","multipart/form-data; boundary="+h);f.postData=e;f.onready=c;f.send()};
|
|
46
46
|
var b=[]};pui.rq=function(b){pui.qq(tb(b))};pui.qq=function(b){b.ho=zb(b)};pui.Ah=function(b,a){for(var c=[],e=0,f="",g="",h=0,l=false,n=0;n<b.length;n++){if(a===true&&e==6){g=g.substr(0,g.length-6);break}f=b.charAt(n);if(l){if(f=="'")l=false}else{if(f=="("){h+=1;e=0}else if(f==")"){h-=1;e=0}else if(f=="'"){l=true;e=0}else if(h==0)if(f.toLowerCase()==" from ".charAt(e))e++;else e=0;if(h<1)h=0}if(f==","&&h==0&&!l){c.push(Kb(g));g="";e=0}else g+=f}c.push(Kb(g));return c};
|
|
47
|
-
pui.
|
|
48
|
-
pui.Jx=function(b){return typeof pui.
|
|
47
|
+
pui.sz={"remote system name":null,"database file":null,"database fields":null,"selection criteria":null,"order by":null,"custom sql":null,"name field":null,"value field":null,"summary option":null,"choices database file":null,"choice options field":null,"choice values field":null,"choices selection criteria":null,"parameter value":null,"choices parameter value":null,"case sensitive":null,"blob table":null,"blob column":null,"blob selection criteria":null};
|
|
48
|
+
pui.Jx=function(b){return typeof pui.sz[b]!="undefined"};pui.ad=function(b){var a=N+".",c=b.id;if(b.parentNode!=null&&b.parentNode.l!=null)c=b.parentNode.id;if(N=="genie"&&b.parentNode!=pui.runtimeContainer)if(c.lastIndexOf("_W")!=-1)c=c.substr(0,c.lastIndexOf("_W")+2);a+=typeof b.parentNode.parentNode.grid=="undefined"||b.To?c:c.substr(0,c.lastIndexOf(".")+1)+"*";return a};
|
|
49
49
|
pui.rd=function(b,a,c){function e(){var w=pui.Os(),y=pui.Ps(),x=encodeURIComponent(w.Si);l+=n+"datfmt="+encodeURIComponent(x);c!=null&&c.append("datfmt",x);x=encodeURIComponent(w.Sj);l+="&datsep="+x;c!=null&&c.append("datsep",x);x=encodeURIComponent(y.Si);l+="&timfmt="+x;c!=null&&c.append("timfmt",x);x=encodeURIComponent(y.Sj);l+="&timsep="+x;c!=null&&c.append("timsep",x);return l}var f=b["field type"]=="textbox",g=1,h="",l="",n="";h=/^(choices |blob )?(parameter value)( \d+)?/;var m="",r=1,p;for(var s in b){var t=
|
|
50
50
|
h.exec(s);if(t){if(p==null)p=(t[1]?t[1]:"")+t[2];if(t[3]!=null)r=Math.max(r,parseInt(t[3],10))}}if(p==null)return e();do{h=Yb(b[p+m]);if(h!=""){s=g;if(f)s+=1;m=encodeURIComponent(h);l+=n+"p"+s+"="+m;c!=null&&c.append("p"+s,m);if(a!=null)a["p"+s]=h;n="&"}g++;m=" "+g}while(g<=r);return e()};pui.Fh=function(b){if(b==null)return false;if(typeof b!="string")return false;if(b=="")return false;if(b.substr(b.length-1,1)=="%")return true;return false};
|
|
51
51
|
pui.dj=function(b){if(b==null)return false;if(typeof b!="string")return false;var a=Number(b);if(isNaN(a))return false;if(String(a)===b)return true;return false};pui.Ls=function(b,a){if(b=="top"||b=="left"||b=="height"||b=="width")if(pui.dj(a))return a+"px";return a};pui.Rs=function(b){var a="",c="";if(typeof b=="string"){var e=/^([0-9.,-]+)(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/i.exec(b);if(e!=null){b=Number(e[1]);if(isNaN(b))b=0;c=b;a=e[2]}else c=b}return[c,a]};
|
|
@@ -56,15 +56,15 @@ pui.Lo=function(b){var a=document.getElementsByTagName("head")[0];if(a==null)ret
|
|
|
56
56
|
pui.ha=function(b){if(typeof b!="string")return b instanceof Array?b:[];if(b=="")return[];var a;if(b.substr(0,1)=="["&&b.substr(b.length-1,1)=="]")try{definedPhrases=["Image","String","Object","Array","Number","Boolean","Date","Function","RegExp","Error"];phrase=b.substring(1,b.length-1);a=definedPhrases.includes(phrase)?Array(b):eval(b)}catch(c){}if(a==null)a=b.split(",");return a};
|
|
57
57
|
pui.ql=function(b){switch(b){case "number":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "color":case "datetime-local":case "search":case "week":return true;default:return false}};pui.fj=function(b){if(b.tagName=="INPUT")if(b.type==null||b.type==""||b.type=="text"||pui.ql(b.type)||b.type=="password")return true;return false};
|
|
58
58
|
pui.Ex=function(b){var a=b.keyCode,c=pui["field exit key"],e=pui["field exit minus key"];return(a==c||a==e)&&(!b.shiftKey||c==16)&&(!b.ctrlKey||c==17)?true:false};pui.Ys=function(b){b=b.parentNode;return b!=null&&(!pui.is_old_ie||b.nodeName!="#document-fragment")};pui.mf=function(b){if(!Eb()&&(!pui.oj||pui.ba||pui.appJob.auth)&&typeof b=="string"&&b.search("AUTH=")==-1){b+=b.search(/\?/)==-1?"?":"&";b+="AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth)}return b};pui.validateEmail=function(b){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(b)};
|
|
59
|
-
pui.p=function(b){return b!=null&&typeof b=="object"&&typeof b.fieldName=="string"};pui.Nb=function(b){return b!=null&&typeof b=="object"&&typeof b.translations=="object"&&b.translations!=null&&typeof b.translations.length=="number"};pui.dc=function(b){return b!=null&&typeof b=="object"&&typeof b.routine=="string"};pui.
|
|
60
|
-
pui.
|
|
59
|
+
pui.p=function(b){return b!=null&&typeof b=="object"&&typeof b.fieldName=="string"};pui.Nb=function(b){return b!=null&&typeof b=="object"&&typeof b.translations=="object"&&b.translations!=null&&typeof b.translations.length=="number"};pui.dc=function(b){return b!=null&&typeof b=="object"&&typeof b.routine=="string"};pui.GA=function(b){return b!=null&&typeof b=="object"&&b.join==true};
|
|
60
|
+
pui.Bz=function(b,a,c){function e(l){g=setTimeout(function(){g=null;a(l)},c)}function f(){clearTimeout(g);g=null}if(b&&b.addEventListener)if(typeof a=="function"){if(typeof c!="number")c=475;var g;try{b.addEventListener("touchstart",e,false);b.addEventListener("touchend",f,false)}catch(h){}}};pui.cl=function(b){b.checked?b.setAttribute("checked","checked"):b.removeAttribute("checked")};
|
|
61
61
|
pui.ji=function(b){b=""+b;b=b.replace(/&/g,"&");b=b.replace(/</g,"<");b=b.replace(/>/g,">");b=b.replace(/"/g,""");b=b.replace(/\u001a/g,"□");return b=b.replace(/\u000c/g,"□")};pui.sg=function(b){var a=false;try{a=typeof b.Atrium!="undefined"&&typeof b.Atrium.api!="undefined"}catch(c){}return a};pui.hi=function(b){var a=false;try{if(b.location.host!=null)a=true}catch(c){}return a};
|
|
62
62
|
pui.Ig=function(){try{return localStorage!=null&&typeof window.localStorage!="undefined"?true:false}catch(b){return false}};pui.gp=function(){try{return sessionStorage!=null&&typeof window.sessionStorage!="undefined"?true:false}catch(b){return false}};
|
|
63
63
|
pui.Ct=function(b){if(b.substr(0,1)=="#")b=b.toUpperCase();if(b.substr(0,4)=="rgb("&&b.substr(b.length-1,1)==")"){b=b.substr(4,b.length-5);b=b.replace(/ /g,"");var a=b.split(",");b="#";for(var c=0;c<a.length;c++){var e=Number(a[c]).toString(16).toUpperCase();if(e.length==1)e="0"+e;b+=e}}return b};pui.pp=function(b,a){var c;if(b.stack){c=b.toString();var e=b.stack.split("\n");if(e.length>=1)c+=c.indexOf(Kb(e[0]))!=0||e.length<2?" "+Kb(e[0]):" "+Kb(e[1])}else{if(typeof a=="string")c=a;c+=" "+b.toString()}console.log(c)};
|
|
64
64
|
pui.ky=function(b){if(pui.is_chrome&&pui.fj(b)){var a=b.value;b.value="";b.value=a}};
|
|
65
65
|
pui.il=function(b,a){if(!(b===undefined||!b))if(!(b.tagName=="SPAN"&&b.className=="pui-highlight")){if(b.hasChildNodes())for(var c=0;c<b.childNodes.length;c++)pui.il(b.childNodes[c],a);if(b.nodeType==3){var e=b.nodeValue;if(e!=null&&typeof e=="string"){for(c=e.toLowerCase();c.indexOf(String.fromCharCode(160))!=-1;)c=c.replace(String.fromCharCode(160)," ");c=c.indexOf(a.toLowerCase());if(c>=0){var f=e.substr(c,a.length);e=document.createElement("span");e.appendChild(document.createTextNode(f));e.className=
|
|
66
66
|
"pui-highlight";c=b.splitText(c);c.nodeValue=c.nodeValue.substring(a.length);b.parentNode.insertBefore(e,c)}}}}};pui.Dw=function(b){b=b.getElementsByTagName("span");for(var a;b.length&&(a=b[0]);){var c=a.parentNode;c.replaceChild(a.firstChild,a);c.normalize()}};
|
|
67
|
-
pui.
|
|
67
|
+
pui.vz=function(){if(!pui.is_mouse_capable)if(pui.Ig()&&localStorage["pui-is-mouse-capable"]=="true")pui.is_android||pui.is_ios||(pui.is_mouse_capable=true);else{var b=document.documentElement;if(b!=null){var a=function(){e=false},c=function(){if(e){if(pui.is_android||pui.is_ios){Zb(b,"mousedown",a);Zb(b,"mousemove",c);return}pui.is_mouse_capable=true;pui.Ig()&&localStorage.setItem("pui-is-mouse-capable","true");Zb(b,"mousedown",a);Zb(b,"mousemove",c)}e=true},e=false;T(b,"mousedown",a);T(b,"mousemove",
|
|
68
68
|
c)}}};pui.ot=function(){if(pui.is_chrome)for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a],e=null;try{e=c.contentWindow.pui;c.contentWindow.puihalted=true}catch(f){}if(e!=null&&typeof e.unload==="function"){e.halted=true;e.unload()}else c.src=""}};
|
|
69
69
|
pui.haltFrames=function(){for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a];if(c!=null){var e=null;try{e=c.contentWindow.pui;c.contentWindow.puihalted=true}catch(f){}if(e!=null&&typeof e==="object"){e.halted=true;typeof e.haltFrames==="function"&&e.haltFrames()}c.parentNode!=null&&c.parentNode.removeChild(c);c.src=""}}};
|
|
70
70
|
pui.breakMessagesInit=function(){if(!(Eb()||pui["brkmsg enable"]!==true))if(!(!pui.Ig()||typeof JSON!=="object"))if(!(typeof pui.appJob!=="object"||pui.appJob.user==null||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){pui["brkmsg poll interval"]=Number(pui["brkmsg poll interval"]);if(isNaN(pui["brkmsg poll interval"]))pui["brkmsg poll interval"]=30;else if(pui["brkmsg poll interval"]<1)pui["brkmsg poll interval"]=1;pui["brkmsg max errors"]=Number(pui["brkmsg max errors"]);if(isNaN(pui["brkmsg max errors"]))pui["brkmsg max errors"]=
|
|
@@ -92,28 +92,28 @@ if(b!=null)if(b.items!=null&&b.items.length>0)for(l=0;l<b.items.length;l++)pui.v
|
|
|
92
92
|
pui.Px=function(b,a){function c(e){e.length===0&&a();e.forEach(function(f){function g(){var n=e.indexOf(f);n>=0&&e.splice(n,1);e.length==0&&a()}var h=false,l=f.split("?")[0];if(l.substr(-3).toLowerCase()==".js")h=pui.loadJS({path:f,callback:g,onerror:function(){console.log("Failed to load "+f);g()}});else l.substr(-4).toLowerCase()==".css"&&pui.loadCSS(f);if(!h||h==false)setTimeout(g,0)})}b?ac({url:Vb("PUI0009120.pgm?r="+Date.now()),method:"GET",suppressAlert:true,sendAsBinary:false,handler:function(e){e&&
|
|
93
93
|
e.status==="success"?c(e.data.files):a()},onfail:function(){a()}}):a()};pui.round=function(b,a){var c=Math.pow(10,a);return Math.round(b*c)/c};
|
|
94
94
|
pui.Yk=function(b){var a;if(b.indexOf("<%")<0)return b;if(typeof window.ejs!=="object"||typeof window.ejs.render!=="function"){console.error("EJS templating library not loaded.");return b}if(pui.yo==null){var c={},e={};a=false;var f=pui.layers;if(f==null)f=[];f=f[f.length-1];if(f==null)f={formats:[]};f=f.formats;for(var g=0;g<f.length;g++){var h=f[g];for(var l in h.data){var n=h.data[l];if(l.substring(0,3).toUpperCase()==="*IN"){a=l.substr(3);isNaN(Number(a))||(a=Number(a));e[a]=n;a=true}else{c[l.toLowerCase()]=
|
|
95
|
-
n;c[l.toUpperCase()]=n;c[l]=n}}if(h.subfiles)for(var m in h.subfiles){n=h.subfiles[m].data;for(var r=h.subfiles[m]["field names"],p=[],s=0;s<n.length;s++){for(var t=n[s],w={},y=0;y<r.length;y++){var x=r[y];if(x.substring(0,3).toUpperCase()==="*IN"){a=x.substr(3);isNaN(Number(a))||(a=Number(a));e[a]=t[y];a=true}else{w[x.toLowerCase()]=t[y];w[x.toUpperCase()]=t[y];w[x]=t[y]}}p.push(w)}c[m.toLowerCase()]=p;c[m.toUpperCase()]=p;c[m]=p}}if(a)c.
|
|
95
|
+
n;c[l.toUpperCase()]=n;c[l]=n}}if(h.subfiles)for(var m in h.subfiles){n=h.subfiles[m].data;for(var r=h.subfiles[m]["field names"],p=[],s=0;s<n.length;s++){for(var t=n[s],w={},y=0;y<r.length;y++){var x=r[y];if(x.substring(0,3).toUpperCase()==="*IN"){a=x.substr(3);isNaN(Number(a))||(a=Number(a));e[a]=t[y];a=true}else{w[x.toLowerCase()]=t[y];w[x.toUpperCase()]=t[y];w[x]=t[y]}}p.push(w)}c[m.toLowerCase()]=p;c[m.toUpperCase()]=p;c[m]=p}}if(a)c.gA=e;pui.yo=c}try{b=window.ejs.render(b,pui.yo)}catch(E){console.error(E)}return b};
|
|
96
96
|
pui.vu=function(b,a){if(pui.zo)setTimeout(function(){pui.vu(b,a)},100);else if(pui.Jw){pui.ma(b);b.innerHTML=pui.Yk(a)}else{pui.zo=true;pui.ma(b);pui.loadJS({path:pui.normalizeURL("/ejs/ejs.min.js"),callback:function(){pui.ma(b);b.innerHTML=pui.Yk(a);pui.Jw=true;pui.zo=false},onerror:function(){pui.zo=false}})}};pui.Cd=Object.create(pui.uc.prototype,{ge:{value:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'},$g:{value:"http://schemas.openxmlformats.org"},Wm:{value:"application/vnd.openxmlformats"}});
|
|
97
97
|
Object.defineProperties(pui.Cd,{ni:{value:pui.Cd.Wm+"-officedocument.spreadsheetml"},tk:{value:pui.Cd.$g+"/spreadsheetml/2006/main"},sk:{value:pui.Cd.$g+"/package/2006/relationships"},fe:{value:pui.Cd.$g+"/officeDocument/2006/relationships"}});
|
|
98
|
-
pui.Nm=function(b){this.Mm=b;this.Mm.Vg=this;this.Oc=this.Zc=null;this.zm={};this.
|
|
99
|
-
function bc(b,a,c){var e=b.zm[a];if(e==null){e=b.zm[a]={value:b.
|
|
98
|
+
pui.Nm=function(b){this.Mm=b;this.Mm.Vg=this;this.Oc=this.Zc=null;this.zm={};this.tz=0;this.mh=[{pj:0,Ti:0,Qi:0,Fi:0,jk:0},{pj:2,Ti:0,Qi:0,Fi:0,jk:0,Fn:1}];this.Vr=1;this.pw={pj:0,Ti:1,Qi:0,Fi:0,jk:1};this.Tn=-1;this.qw={pj:0,Ti:0,Qi:0,Fi:0,jk:0,Fr:1,alignment:{$u:1}};this.Un=-1;this.Ll={};this.Ml=0};pui.Nm.prototype=Object.create(pui.Cd);
|
|
99
|
+
function bc(b,a,c){var e=b.zm[a];if(e==null){e=b.zm[a]={value:b.tz++,isString:true};if(c){a=e;if(b.Tn<0)b.Tn=b.mh.push(b.pw)-1;a.Kc=b.Tn}else if(/[\n\r]/.test(a)){a=e;if(b.Un<0)b.Un=b.mh.push(b.qw)-1;a.Kc=b.Un}}return e}
|
|
100
100
|
function cc(b,a,c){var e;if(typeof a!=="string")a="";if(typeof c!=="string")c="";var f=b.Ll[c+a];if(f!=null)e=f.Kc;else{var g=-1;switch(a){case "m-d-y":g=14;break;case "j-M-y":g=15;break;case "j-M":g=16;break;case "M-y":g=17;break;case "g:i A":g=18;break;case "g:i:s A":g=19;break;case "g:i:s":g=19;break;case "G:i":g=20;break;case "G:i:s":g=21;break;case "m/d/y G:i":g=22;break;case "i:s":g=45;break;case "isu":g=47;break}if(g>=0)e=dc(b,g);else{f="";if(c==="he_IL")f+="[$-101040D]";switch(a){case "R:i:s":f=
|
|
101
101
|
"hh:mm:ss";break;case "R.i.s":f="hh\\.mm\\.ss";break;case "g:i:s":f="h:mm:ss am/pm";break;case "h:i:s":f="hh:mm:ss am/pm";break;case "R":f="ddd\\,\\ dd\\ mmm\\ yyyy\\ hh:mm:ss";break;case "Y-m-d-H.i.s.uu":f="yyyy\\-mm\\-dd\\-hh\\.mm\\.ss.0";break;default:e=0;for(g=a.length;e<g;e++){var h=a.charAt(e);switch(h){case "d":f+="dd";break;case "D":f+="ddd";break;case "j":f+="d";break;case "l":f+="dddd";break;case "S":f+="\\S";break;case "z":f+="\\z";break;case "F":f+="mmmm";break;case "m":f+="mm";break;
|
|
102
102
|
case "M":f+="mmm";break;case "n":f+="m";break;case "Y":f+="yyyy";break;case "y":f+="yy";break;case "g":f+="h";break;case "h":f+="hh";break;case "G":f+="h";break;case "H":f+="hh";break;case "i":f+="mm";break;case "s":f+="ss";break;case "u":f+=".0";break;case "a":f+="am/pm";break;case "A":f+="AM/PM";break;case '"':f+=""";break;case " ":f+="\\ ";break;case "-":f+="\\-";break;case ".":f+="\\.";break;case ",":f+="\\,";break;case "/":f+="/";break;case ":":f+=":";break;default:f+="\\"+h;break}}break}g=
|
|
103
|
-
164+b.Ml;b.Ml++;e=dc(b,g);f={id:g,Kc:e,code:f};b.Ll[c+a]=f}}return e}function dc(b,a){return b.mh.push({pj:a,Ti:0,Qi:0,Fi:0,jk:0,Fn:1})-1}function ec(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.ir();else{var c=b.wk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.ir.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
164+b.Ml;b.Ml++;e=dc(b,g);f={id:g,Kc:e,code:f};b.Ll[c+a]=f}}return e}function dc(b,a){return b.mh.push({pj:a,Ti:0,Qi:0,Fi:0,jk:0,Fn:1})-1}function ec(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.ir();else{var c=b.wk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.ir.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}ua=pui.Nm.prototype;
|
|
104
|
+
ua.ir=function(){if(typeof saveAs=="function"||pui.No(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null)this.hr();else{var b=this.wk.bind(this);pui.loadJS({path:"/jszip/FileSaver.min.js",callback:this.hr.bind(this),onerror:function(){console.log("Failed to load /jszip/FileSaver.min.js");b()}})}};
|
|
105
|
+
ua.hr=function(){if(this.Zc){var b=this.Zc,a=this.cr.bind(this),c=this.Oc;if(b.ua.length<1)a();else{b.so=0;b.Oc=c;c=b.pv.bind(b);b.ow=a;for(a=0;a<b.ua.length;a++){b.ua[a].cg=new XMLHttpRequest;b.ua[a].cg.open("GET",b.ua[a].uri,true);b.ua[a].cg.responseType="blob";b.ua[a].cg.onload=c;b.ua[a].cg.send()}}}else this.cr()};
|
|
106
|
+
ua.cr=function(){var b,a;this.Oc&&typeof this.Oc.qm=="function"&&this.Oc.qm(pui.getLanguageText("runtimeMsg","compressing"));var c=pui.Cd.ge+'<Types xmlns="'+pui.Cd.$g+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.Cd.Wm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Zc){b=this.Zc.xs;for(a in b)c+='<Default Extension="'+a+'" ContentType="'+b[a]+'"/>'}c+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ni+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
|
|
107
107
|
this.ni+'.worksheet+xml"/><Override PartName="/xl/styles.xml" ContentType="'+this.ni+'.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="'+this.ni+'.sharedStrings+xml"/>';if(this.Zc!=null)c+='<Override PartName="/xl/drawings/drawing1.xml" ContentType="'+this.Wm+'-officedocument.drawing+xml"/>';c+="</Types>";var e=this.ge+'<Relationships xmlns="'+this.sk+'"><Relationship Id="rId1" Type="'+this.fe+'/officeDocument" Target="xl/workbook.xml"/></Relationships>',f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="'+
|
|
108
108
|
this.tk+'" xmlns:r="'+this.fe+'"><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets></workbook>',g=this.ge+'<Relationships xmlns="'+this.sk+'"><Relationship Id="rId3" Type="'+this.fe+'/styles" Target="styles.xml"/><Relationship Id="rId1" Type="'+this.fe+'/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="'+this.fe+'/sharedStrings" Target="sharedStrings.xml"/></Relationships>',h=this.ge+'<styleSheet xmlns="'+this.tk+'">';if(this.Ml>0){h+='<numFmts count="'+this.Ml+
|
|
109
109
|
'">';for(var l in this.Ll){b=this.Ll[l];if(b.id>0)h+='<numFmt numFmtId="'+b.id+'" formatCode="'+b.code+'"/>'}h+="</numFmts>"}h+='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><u/><sz val="11"/><color rgb="0563C1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="2"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0"/></cellStyleXfs>';
|
|
110
110
|
h+='<cellXfs count="'+this.mh.length+'">';b=0;for(a=this.mh.length;b<a;b++){l=this.mh[b];h+="<xf";var n=l.pj||0;h+=' numFmtId="'+n+'"';n=l.Ti||0;h+=' fontId="'+n+'"';n=l.Qi||0;h+=' fillId="'+n+'"';n=l.Fi||0;h+=' borderId="'+n+'"';n=l.jk||0;h+=' xfId="'+n+'"';if(l.Fn)h+=' applyNumberFormat="'+l.Fn+'"';if(l.Fr)h+=' applyAlignment="'+l.Fr+'"';h+=l.alignment&&l.alignment.$u?'><alignment wrapText="'+l.alignment.$u+'"/></xf>':"/>"}h+='</cellXfs><dxfs count="0"/></styleSheet>';l=new JSZip;l.file("[Content_Types].xml",
|
|
111
|
-
c);l.file("_rels/.rels",e);l.file("xl/workbook.xml",f);l.file("xl/styles.xml",h);l.file("xl/sharedStrings.xml",
|
|
111
|
+
c);l.file("_rels/.rels",e);l.file("xl/workbook.xml",f);l.file("xl/styles.xml",h);l.file("xl/sharedStrings.xml",fc(this));l.file("xl/_rels/workbook.xml.rels",g);l.file("xl/worksheets/sheet1.xml",jc(this.Mm));c=this.Mm.ua;if(this.Zc){c.push({type:"drawing",target:"../drawings/drawing1.xml"});b=this.Zc;a=b.anchors;e=b.ge+'<xdr:wsDr xmlns:xdr="'+b.$g+'/drawingml/2006/spreadsheetDrawing" xmlns:a="'+b.$g+'/drawingml/2006/main">';for(f=0;f<a.length;f++)e+='<xdr:twoCellAnchor editAs="oneCell"><xdr:from><xdr:col>'+
|
|
112
112
|
a[f].col+"</xdr:col><xdr:colOff>"+Math.round(a[f].left*9525)+"</xdr:colOff><xdr:row>"+a[f].row+"</xdr:row><xdr:rowOff>"+Math.round(a[f].top*9525)+"</xdr:rowOff></xdr:from><xdr:to><xdr:col>"+a[f].col+"</xdr:col><xdr:colOff>"+Math.round((a[f].width+a[f].left)*9525)+"</xdr:colOff><xdr:row>"+a[f].row+"</xdr:row><xdr:rowOff>"+Math.round((a[f].height+a[f].top)*9525)+'</xdr:rowOff></xdr:to><xdr:pic><xdr:nvPicPr><xdr:cNvPr id="'+(f+1)+'" name="Picture '+(f+1)+'"/><xdr:cNvPicPr><a:picLocks noChangeAspect="1" noChangeArrowheads="1"/></xdr:cNvPicPr></xdr:nvPicPr><xdr:blipFill><a:blip xmlns:r="'+
|
|
113
113
|
b.fe+'" r:embed="rId'+(a[f].rel+1)+'"></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></xdr:blipFill><xdr:spPr bwMode="auto"><a:xfrm></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/></xdr:spPr></xdr:pic><xdr:clientData/></xdr:twoCellAnchor>';e+="</xdr:wsDr>";l.file("xl/drawings/drawing1.xml",e);b=this.Zc;a=b.ge+'<Relationships xmlns="'+b.sk+'">';for(e=0;e<b.ua.length;e++)a+='<Relationship Id="rId'+(e+1)+'" Type="'+b.fe+'/image" Target="../media/'+b.ua[e].name+'"/>';a+="</Relationships>";
|
|
114
114
|
l.file("xl/drawings/_rels/drawing1.xml.rels",a);a=this.Zc.ua;for(b=0;b<a.length;b++)a[b].bt&&l.file("xl/media/"+a[b].name,a[b].bt,{binary:true})}if(c.length>0){e=this.ge+'<Relationships xmlns="'+this.sk+'">';b=0;for(a=c.length;b<a;b++){f=c[b];g="";if(f.type==="hyperlink")g=' TargetMode="External"';e+='<Relationship Id="rId'+(b+1)+'" Type="'+this.fe+"/"+f.type+'" Target="'+pui.ji(f.target)+'"'+g+"/>"}e+="</Relationships>";l.file("xl/worksheets/_rels/sheet1.xml.rels",e)}l.generateAsync({type:"blob",
|
|
115
|
-
compression:"DEFLATE",mimeType:this.ni+".sheet"}).then(this.Qv.bind(this),this.wk.bind(this))};
|
|
116
|
-
function
|
|
115
|
+
compression:"DEFLATE",mimeType:this.ni+".sheet"}).then(this.Qv.bind(this),this.wk.bind(this))};ua.wk=function(){this.Oc&&typeof this.Oc.Bs=="function"&&this.Oc.Bs();this.Mm.Lc();this.Zc&&this.Zc.Lc();this.Lc()};ua.Qv=function(b){saveAs(b,this.fileName+".xlsx");this.wk()};
|
|
116
|
+
function fc(b){var a=[];for(var c in b.zm)a[b.zm[c].value]=c;b=b.ge+'<sst xmlns="'+b.tk+'" count="'+String(a.length+1)+'" uniqueCount="'+String(a.length)+'">';c=0;for(var e=a.length;c<e;c++)b+="<si><t>"+pui.ji(a[c])+"</t></si>";b+="</sst>";return b}
|
|
117
117
|
pui.Om=function(b){this.Qf=b;this.rows=[];this.td=-1;this.mo=20;this.colWidths=[];this.Xu=false;this.formats=[];this.pe=[];this.Cs=7;this.ua=[];this.$s=[];b=pui.Os();this.Va=null;switch(b.Sj){case 1:this.Va="/";break;case 2:this.Va="-";break;case 3:this.Va=".";break;case 4:this.Va=",";break;case 5:this.Va=" ";break;case 7:this.Va=pui.appJob&&pui.appJob.dateSeparator?pui.appJob.dateSeparator:null;break}this.Bb={dateFormat:"Y-m-d",timeFormat:"H.i.s"};switch(b.Si){case 1:this.Bb.dateFormat="Y-m-d";this.Va=
|
|
118
118
|
"-";break;case 2:this.Bb.dateFormat="m/d/Y";this.Va="/";break;case 3:this.Bb.dateFormat="d.m.Y";this.Va=".";break;case 4:this.Bb.dateFormat="Y-m-d";this.Va="-";break;case 5:if(typeof this.Va==="string")this.Bb.dateFormat="m"+this.Va+"d"+this.Va+"y";break;case 6:if(typeof this.Va==="string")this.Bb.dateFormat="d"+this.Va+"m"+this.Va+"y";break;case 7:if(typeof this.Va==="string")this.Bb.dateFormat="y"+this.Va+"m"+this.Va+"d";break;case 8:if(typeof this.Va==="string")this.Bb.dateFormat="y"+this.Va+"z";
|
|
119
119
|
break}b=pui.Ps();var a=null;switch(b.Sj){case 3:a=".";break;case 4:a=",";break;case 5:a=" ";break;case 6:a=":";break;case 7:a=pui.appJob&&pui.appJob.timeSeparator?pui.appJob.timeSeparator:null;break}switch(b.Si){case 1:this.Bb.timeFormat="H.i.s";break;case 2:this.Bb.timeFormat="h:m A";break;case 3:this.Bb.timeFormat="h.m.s";break;case 4:this.Bb.timeFormat="h:m:s";break;case 9:if(typeof a==="string")this.Bb.timeFormat="h"+a+"m"+a+"s";break}this.Bb.timeStampFormat=this.Bb.dateFormat+this.Va+this.Bb.timeFormat+
|
|
@@ -124,7 +124,7 @@ a.decPos;if(a.decPos==="2")b.formats[c].Kc=b.Vg.Vr}e=false;if(typeof a.dateForma
|
|
|
124
124
|
function mc(b,a,c,e,f){if(typeof a!=="string"&&typeof a!=="number"||typeof a==="string"&&a.length===0)b.rows[b.td][c]={value:null};else{var g=b.formats[c];if(g==null)b.formats[c]=g={dataType:"char"};b.Qf=Math.max(b.Qf,c);var h=0;if(typeof a==="string")h=a.length;if(b.rows.length==1||b.pe[c]==null)b.pe[c]=h;else{b.pe[c]=Math.max(b.pe[c],h);if(b.formats[c].dataType==="date")b.pe[c]=Math.max(b.pe[c],10)}if(typeof g.dateFormat==="string"&&g.dateFormat.length>0){if(oc(b,a,c,"dateFormat"))return;if(tc(b,
|
|
125
125
|
a,c))return;if(uc(b,a,c))return}else if(typeof g.timeFormat==="string"&&g.timeFormat.length>0){if(vc(b,a,c,"timeFormat"))return}else if(typeof g.timeStampFormat==="string"&&g.timeStampFormat.length>0){if(oc(b,a,c,"timeStampFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return}switch(g.dataType){case "floating":if(tc(b,a,c))return;break;case "packed":case "zoned":if(uc(b,a,c))return;break;case "date":if(oc(b,a,c,"dateFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return;break;case "timestamp":if(oc(b,
|
|
126
126
|
a,c,"timeStampFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return;break;case "time":if(vc(b,a,c,"timeFormat"))return;break}switch(g.formatting){case "Date":case "Time Stamp":case "Number":if(uc(b,a,c))return;if(tc(b,a,c))return;break}if(f){if(oc(b,a,c,"timeStampFormat"))return;if(oc(b,a,c,"dateFormat"))return;if(vc(b,a,c,"timeFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return}if(typeof e==="string"&&e.length>0){f=-1;g=0;for(h=b.ua.length;g<h;g++){var l=b.ua[g];if(l.type==="hyperlink"&&l.target===
|
|
127
|
-
e){f=g;break}}if(f<0)f=b.ua.push({type:"hyperlink",target:e})-1;b.$s.push({row:b.td,col:c,
|
|
127
|
+
e){f=g;break}}if(f<0)f=b.ua.push({type:"hyperlink",target:e})-1;b.$s.push({row:b.td,col:c,Dy:f})}else e=false;b.rows[b.td][c]=bc(b.Vg,a,e!==false)}}function uc(b,a,c){if(typeof a==="string")if(b.ls&&/^[-+]?[0-9]*,?[0-9]+$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.td][c]={value:a,Kc:b.formats[c].decPos==="2"?b.Vg.Vr:0};return true}return false}
|
|
128
128
|
function tc(b,a,c){if(typeof a==="string")if(b.ls&&/^[-+]?[0-9]*,?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.td][c]={value:a,Kc:0};return true}return false}
|
|
129
129
|
function wc(b,a,c,e){if(typeof a!=="string")a=String(a);var f=b.formats[c].locale;if(typeof f!=="string")f=b.locale;c=b.formats[c][e];if(typeof c!=="string")c=b.Bb[e];return[pui.formatting.Date.parse(a,c,f),c,f]}
|
|
130
130
|
function oc(b,a,c,e){e=wc(b,a,c,e);if(e[1]==="Y-z")return false;if(e[0]instanceof Date){var f=e[0],g=f.getFullYear(),h=f.getMonth(),l=f.getDate();if(g===1&&h===0&&l===1){b.rows[b.td][c]={value:null};return true}if(g<1900||g===1900&&h<2){b.rows[b.td][c]=bc(b.Vg,a);return true}a=new Date(f);a.setHours(0,0,0,0);a=Number(Math.round((a-new Date(1899,11,30))/864E5)+(Math.abs((f-a)%864E5)/864E5).toFixed(10).substr(1));if(!isNaN(a)&&a>=2){b.rows[b.td][c]={value:a,Kc:cc(b.Vg,e[1],e[2])};return true}}return false}
|
|
@@ -132,15 +132,15 @@ function vc(b,a,c,e){a=wc(b,a,c,e);if(a[0]instanceof Date){b.rows[b.td][c]={valu
|
|
|
132
132
|
function jc(b){var a,c,e;b.map=[];e=0;var f="";a="";c=b.Qf;for(var g=-1;g<26&&e<c;g++){var h=-1;if(g>=0)h=0;for(h=h;h<26&&e<c;h++){for(var l=0;l<26&&e<c;l++){b.map[e]=f+a+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[l];e++}a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(h+1)%26]}f="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[g+1]}f=b.ge+'<worksheet xmlns="'+b.tk+'" xmlns:r="'+b.fe+'"><dimension ref="A1:'+b.map[b.Qf-1]+b.rows.length+'"/><sheetFormatPr defaultRowHeight="'+b.mo*0.75+'" customHeight="1" /><cols>';c=0;for(e=b.Qf;c<e;c++){a=0;if(typeof b.colWidths[c]===
|
|
133
133
|
"number")a=pui.round((b.colWidths[c]-5)/7,2);else if(b.pe[c]!=null&&!isNaN(parseInt(b.pe[c],10)))a=Math.floor((b.pe[c]*b.Cs+5)/b.Cs*256)/256+5;if(a<0)a=0;else if(a>255)a=255;g="";if(b.formats[c]!=null&&b.formats[c].Kc)g=' style="'+b.formats[c].Kc+'"';f+='<col min="'+(c+1)+'" max="'+(c+1)+'" width="'+a+'" '+g+' customWidth="1"/>'}f+="</cols><sheetData>";c="";if(typeof b.Dh==="number"&&b.Dh>0)c=' ht="'+Math.round(b.Dh*0.75)+'" customHeight="1"';a=0;for(e=b.rows.length;a<e;a++){g=String(a+1);f+='<row r="'+
|
|
134
134
|
g+'"'+c+">";h=b.rows[a];if(h!=null)for(c=0;c<b.Qf;c++){l=h[c];if(l!=null&&typeof l.value==="number"){f+='<c r="'+b.map[c]+g+'"';if(typeof l.Kc==="number")f+=' s="'+l.Kc+'"';if(l.isString)f+=' t="s"';f+="><v>"+l.value+"</v></c>"}}f+="</row>";c="";if(typeof b.Dh==="number"&&b.Dh>0)c=' ht="'+Math.round(b.mo*0.75)+'" customHeight="1"'}f+="</sheetData>";if(b.Xu)f+='<drawing r:id="rId1"/>';c=b.$s;if(c.length>0){f+="<hyperlinks>";e=c.length;for(g=0;g<e;g++){a=c[g].row+1;f+='<hyperlink ref="'+b.map[c[g].col]+
|
|
135
|
-
a+'" r:id="rId'+(c[g].
|
|
135
|
+
a+'" r:id="rId'+(c[g].Dy+1)+'" />'}f+="</hyperlinks>"}f+="</worksheet>";return f}pui.Hq=function(){this.xs={};this.ua=[];this.At=1;this.anchors=[]};pui.Hq.prototype=Object.create(pui.Cd);
|
|
136
136
|
function xc(b,a,c,e,f){var g=e.match(/\.(jpe?g|gif|png|tiff?)(\?.*)?(#.*)?$/i);if(g==null)console.log("Unsupported image type in URI:",e);else{g=g[1].toLowerCase();if(g=="jpeg")g="jpg";else if(g=="tif")g="tiff";for(var h=-1,l=0;l<b.ua.length;l++)if(b.ua[l].uri==e){h=l;break}if(h<0){h="image"+b.At+"."+g;b.At++;b.xs[g]="image/"+g;b.ua.push({name:h,uri:e});h=b.ua.length-1}b.anchors.push({row:a,col:c,rel:h,top:f.top,left:f.top,width:f.width,height:f.height})}}
|
|
137
137
|
pui.Hq.prototype.pv=function(){this.so++;this.Oc&&typeof this.Oc.qm=="function"&&this.Oc.qm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.so/this.ua.length))+"%"]));if(!(this.so<this.ua.length)){for(var b=0;b<this.ua.length;b++){if(this.ua[b].cg.status==200)this.ua[b].bt=this.ua[b].cg.response;this.ua[b].cg=null;try{delete this.ua[b].cg}catch(a){}}this.ow()}};
|
|
138
|
-
pui.
|
|
138
|
+
pui.oA=function(b,a){var c,e=b.library||"",f=b.file||"",g=b.customSql||"",h=b.connection||"";if(N=="genie")c=Vb("PUI0009101.PGM");if(N=="dspf")c=Vb("PUI0009101.PGM",null,true);c=new pui.Ajax(c);c.async=true;c.method="post";c.postData="file="+encodeURIComponent(f);c.postData+="&library="+encodeURIComponent(e);c.postData+="&customSql="+encodeURIComponent(g);c.postData+="&connection="+encodeURIComponent(h);if(pui.isCloud)c.postData+="&workspace_id="+pui.cloud.ws.id;if(pui.ba)c.postData+="&AUTH="+pui.ba;
|
|
139
139
|
else if(N=="genie")c.postData+="&AUTH="+pui.appJob.auth;c.postData+="&context="+N;c.suppressAlert=true;c.onready=a;c.send()};pui.xf=function(b){var a=null;if(Na.length>0){a=Na.length-1;a={operation:Na[a].Pl,id:Na[a].id,text:Na[a].text,text2:Na[a].Dm}}try{pui.temporary_property=a;eval("var response = { success: arguments[1], id: arguments[2], error: pui.temporary_property };");var c=eval(b);typeof c=="function"&&c()}catch(e){pui.Fa(e,"OndbLoad Error:\n");return false}return true};
|
|
140
140
|
pui.Fa=function(b,a){var c;if(pui["alert script errors"]===false){if(window.console&&window.console.error){if(b.stack){c=b.stack.split("\n");c[0]!=b.toString()&&c.splice(0,0,b.toString());c=c.join("\n")}else c=b.toString();if(a!=null)c=a+c;console.error(c)}}else{c=b.message;if(a!=null)c=a+c;pui.alert(c)}};
|
|
141
|
-
pui.
|
|
142
|
-
pui.
|
|
143
|
-
b)}};a.onfail=function(c){console.error(c.getStatusMessage())};a.send()})};pui.
|
|
141
|
+
pui.TA=function(){["pui-material-icons","pui-fa-icons","blueprint-defaults","office-copy-defaults"].forEach(function(b){var a=document.createElement("div");a.innerText="face";a.className=b;a.style.visibility="hidden";a.style.left="-1000px";a.style.position="absolute";document.body.appendChild(a)})};
|
|
142
|
+
pui.fA=function(){pui.useAceEditor||pui.is_ie||pui.ie_mode<=11||["profoundjs.d.ts","profoundui.d.ts"].forEach(function(b){var a=new pui.Ajax("/profoundui/proddata/typings/"+b);a.async=true;a.headers={"Content-Type":"text/plain"};a.overrideMimeType="text/plain";a.suppressAlert=true;a.onsuccess=function(c){if(c=c.getResponseText())if(!(!window.monaco||pui.useAceEditor)){window.monaco.languages.typescript.javascriptDefaults.addExtraLib(c,b);window.monaco.languages.typescript.typescriptDefaults.addExtraLib(c,
|
|
143
|
+
b)}};a.onfail=function(c){console.error(c.getStatusMessage())};a.send()})};pui.mA=function(){return[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},{type:"fontAwesome",title:"Font Awesome Icons",classList:{brands:"pui-fa-brands-icons fa-",solid:"pui-fa-solid-icons fa-",regular:"pui-fa-regular-icons fa-"}},{type:"jQueryIcons",title:"jQuery Mobile Icons",classList:{"":"ui-icon ui-icon-"}}]};pui.Wd=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"")};
|
|
144
144
|
pui.ee=function(b){this.x=this.y=this.Qk=this.Rk=0;this.wo=b.wo;this.vp=b.vp;this.Aq=b.Aq;b=b.Gk;if(b instanceof Array)for(var a=0;a<b.length;a++){var c=b[a];c.addEventListener("touchstart",this);c.addEventListener("mousedown",this)}else if(typeof b==="object"&&b!==null){b.addEventListener("touchstart",this);b.addEventListener("mousedown",this)}};pui.ee.prototype=new pui.uc;
|
|
145
145
|
pui.ee.prototype.handleEvent=function(b){switch(b.type){case "touchstart":case "mousedown":ub(b);b=pui.Bg(b);this.Qk=b.x;this.Rk=b.y;this.mousedown();document.addEventListener("touchmove",this);document.addEventListener("mousemove",this);document.addEventListener("touchend",this);document.addEventListener("mouseup",this);typeof this.wo==="function"&&this.wo(this);break;case "touchmove":case "mousemove":b=pui.Bg(b);this.x=b.x;this.y=b.y;this.mousemove();typeof this.vp==="function"&&this.vp(this);break;
|
|
146
146
|
case "touchend":case "mouseup":document.removeEventListener("touchmove",this);document.removeEventListener("mousemove",this);document.removeEventListener("touchend",this);document.removeEventListener("mouseup",this);typeof this.Aq==="function"&&this.Aq(this);this.mouseup();break}};pui.ee.prototype.mousedown=na();pui.ee.prototype.mousemove=na();pui.ee.prototype.mouseup=na();
|
|
@@ -154,34 +154,34 @@ pui.Ye=function(b){if((window.React||window.Vue)&&b!=null&&b.pui&&b.pui.data&&b.
|
|
|
154
154
|
pui.Yj=function(b,a){var c;if(N=="dspf"){if(pui.Qb){c=tb(b);if(!(c.pui&&c.pui.properties["read only"]==="true")){c.modified=true;if(c.parentNode!=null&&(c.parentNode.comboBoxWidget!=null||c.parentNode.l!=null)){c=c.parentNode;c.modified=true}pui.modified=true;if(c.id!=null&&c.id.indexOf(".")==-1&&a)pui.sf[a]=true;if((window.React||window.Vue)&&c.pui.data&&c.pui.Li)setTimeout(function(){pui.Ye(c)},0)}}}else if(pui.F.rendered){c=tb(b);if(c!=null){var e=c.C;if(e!=null){e=e.idx;if(e!=null){e=String(e);
|
|
155
155
|
if(c.ox!=null)e="s"+e+"."+c.ox;pui.response[e]=c;if(c.type=="radio"&&pui.genie.allowRadioClear&&c.className.indexOf("selection-field-single")>=0)if(b.type=="click")setTimeout(function(){if(pui.ie_mode==8&&c.checked!=c.VA)c.jp=true;if(c.checked&&!c.jp)c.checked=false;c.jp=false},0);else if(b.type=="change")c.jp=true}}}}};
|
|
156
156
|
pui.Hw=function(b){if(b.keyCode==pui.dup.keyCode)if(!(pui.dup.shift&&!b.shiftKey))if(!(pui.dup.ctrl&&!b.ctrlKey))if(!(pui.dup.alt&&!b.altKey)){var a=tb(b),c=a.value,e=a.maxLength;if(e==null)e=0;e=Number(e);if(isNaN(e))e=0;var f=zb(a);if(f<0)f=0;for(c=c.substr(0,f);c.length<f;)c+=" ";for(;c.length<e;)c+=pui.dup["char"];a.value=c;pui.Yj(b);pui.Qo(a);ub(b);return false}};
|
|
157
|
-
pui.bp=function(b){var a="";if(typeof b=="string")a=b;if(typeof b=="object")a=b.value;if(a==null)a="";if(typeof a!="string")a=String(a);return a.indexOf(pui.dup["char"])!=-1};pui.
|
|
157
|
+
pui.bp=function(b){var a="";if(typeof b=="string")a=b;if(typeof b=="object")a=b.value;if(a==null)a="";if(typeof a!="string")a=String(a);return a.indexOf(pui.dup["char"])!=-1};pui.eA=function(b,a){var c=b;if(typeof b==="string"&&b.length>0)c=RegExp(b,a?"ig":"i");if(typeof c==="object"&&c instanceof RegExp){if(a&&!c.global)c=RegExp(c.source,"ig")}else c=false;return c};pui.Pe=function(b,a){if(b==null)return b;return a?b.replace(/\u1E9E/g,"\u00df"):b.replace(/\u00DF/g,"\u1e9e")};
|
|
158
158
|
pui.uB=function(b){if(b==null)return b;var a=b.split("\u00df");if(a.length<=1)return b.toUpperCase();for(b=0;b<a.length;b++)a[b]=a[b].toUpperCase();return a.join("\u00df")};pui.zp=function(b){if(b.target.value.match(/\u00DF/)){var a=b.target.selectionStart;b.target.value=pui.Pe(b.target.value,false);pui.is_ie&&b.target.setSelectionRange(a,a)}};
|
|
159
159
|
pui.Dt=function(b){var a=0;if(pui.is_firefox)if(b.deltaMode==0)a=Math.round(b.deltaY/48);else{if(b.deltaMode==1)a=b.deltaY/3}else if(pui.is_ie)a=b.wheelDelta?b.wheelDelta/-120:b.deltaY/144;else if(pui.is_edge&&b.wheelDelta)a=b.wheelDelta/-120;else if(pui.is_chrome)a=b.deltaY/100;else if(pui.is_safari)a=b.deltaY/4;else if(typeof b.deltaY=="number"&&(b.deltaY>0||b.deltaY<0))a=b.wheelDelta?b.wheelDelta/120:b.deltaY/b.deltaY;return a};
|
|
160
|
-
pui.Ho=function(b,a){var c=["B","KB","MB","GB","TB"];b=Math.max(b,0);var e=Math.floor((b?Math.log(b):0)/Math.log(1024));e=Math.min(e,c.length-1);b/=Math.pow(1024,e);a=typeof a=="number"?a:0;return Math.round(b*Math.pow(10,a))/Math.pow(10,a)+" "+c[e]};pui.
|
|
160
|
+
pui.Ho=function(b,a){var c=["B","KB","MB","GB","TB"];b=Math.max(b,0);var e=Math.floor((b?Math.log(b):0)/Math.log(1024));e=Math.min(e,c.length-1);b/=Math.pow(1024,e);a=typeof a=="number"?a:0;return Math.round(b*Math.pow(10,a))/Math.pow(10,a)+" "+c[e]};pui.xA=function(b){b=tb(b);if(b.tagName=="TD")b=b.parentNode;if(b.tagName!="TR")return null;return b};
|
|
161
161
|
pui.getDatabaseConnections=function(){if(pui.isCloud&&Eb()){for(var b=Array.isArray(pui.cloud.ws.settings.databaseConnections)?pui.cloud.ws.settings.databaseConnections.slice():[],a={name:"workspace",driver:"mysql"},c=false,e=0;e<b.length;e++)if(b[e]["default"]===true){c=true;break}c||(a["default"]=true);b.splice(0,0,a);return b}else return pui.databaseConnections};
|
|
162
|
-
pui.
|
|
162
|
+
pui.lA=function(b){var a=pui.getDatabaseConnections();if(a){if(typeof b==="string")b=Kb(b);for(var c=0;c<a.length;c++){var e=a[c];if(!b&&e["default"]===true||e.name===b)return e}}};
|
|
163
163
|
pui.getVersionComparer=function(){function b(a){if((a=a||"0.0.0")&&typeof a!=="string")a=a.toString();return a.split(".")}return{isLessThan:function(a,c){var e;e=b(a);for(var f=b(c),g=0;g<e.length;g++){if(f.length-1<g)break;var h=e[g].length,l=f[g].length;if(h>l)f[g]="0".repeat(h-l)+f[g];if(l>h)e[g]="0".repeat(l-h)+e[g]}e=[e.join("."),f.join(".")];return e[0]<e[1]}}};
|
|
164
164
|
pui.newUUID=function(){var b=(new Date).getTime();if(window.performance&&typeof window.performance.now==="function")b+=window.performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=(b+Math.random()*16)%16|0;b=Math.floor(b/16);return(a=="x"?c:c&3|8).toString(16)})};
|
|
165
165
|
pui.Wp=function(b,a){if(b!=null)for(var c=b.childNodes,e,f=c.length,g=0;g<f&&(e=c[g]);g++){var h=e.layout;if(h!=null){h.Hr==true&&yc(h,true);h.resize()}else if(typeof e.sizeMe=="function")if(e.le===true||a&&e.grid!=null||pui.Fh(e.style.width)||pui.Fh(e.style.height))e.sizeMe()}};
|
|
166
166
|
pui.doSessionTimeout=function(){function b(e){document.body.style.backgroundColor="#ffffff";document.body.style.backgroundImage="none";pui.ma(e);e.innerHTML='<div style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session timed out")+"</div>"}zc();b(pui.runtimeContainer);pui.Ue();var a=Vb("PUI0001200.pgm");if(pui.F!=null)a=Vb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;var c={timeout:"1"};if(pui.isCloud)c.workspace_id=
|
|
167
167
|
pui.cloud.ws.id;ac({url:pui.pg(a),method:"post",sendAsBinary:false,suppressAlert:true,params:c,handler:function(e){if(pui.F!=null){pui.confirmOnClose=false;pui.shutdownOnClose=false;b(document.body)}else{e.b=pui.runtimeContainer;pui.handler=na();pui.render(e)}pui.ontimeout!=null&&typeof pui.ontimeout=="function"&&pui.ontimeout();pui.F!=null&&pui.F["close atrium tab on timeout"]==true&&window.parent!=window&&pui.sg(window.parent)&&window.Atrium.closeTab()},onfail:function(){b(document.body)}})};
|
|
168
168
|
pui.ix=function(b,a){var c="";if(typeof pui.view!="undefined")c=a+pui.view;else if(b!=null&&typeof b.file=="string"&&typeof b.library=="string")c=a+b.library+"-"+b.file+"-"+b.name;return c};pui.record=function(b){pui.Dc.responses.push(JSON.parse(JSON.stringify(b)))};
|
|
169
|
-
pui.Aw=function(){function b(g){g=pui.Mg+g;if(!pui.Vp.payloads[g-1])return false;var h=pui.Vp.b,l=pui.Vp.payloads[g-1].response;l=JSON.parse(JSON.stringify(l));l.b=h;pui.Mg=g;c.innerHTML="Step "+g;if(l["5250"]){N="genie";pui.
|
|
169
|
+
pui.Aw=function(){function b(g){g=pui.Mg+g;if(!pui.Vp.payloads[g-1])return false;var h=pui.Vp.b,l=pui.Vp.payloads[g-1].response;l=JSON.parse(JSON.stringify(l));l.b=h;pui.Mg=g;c.innerHTML="Step "+g;if(l["5250"]){N="genie";pui.Ky(l)}else{N="dspf";pui.render(l)}}var a=document.createElement("span");a.classList.add("pui-material-icons");a.innerHTML="keyboard_arrow_left";a.onclick=function(){b(-1)};var c=document.createElement("span");c.classList.add("pui-replay-step");c.innerHTML="Step "+pui.Mg;var e=
|
|
170
170
|
document.createElement("span");e.classList.add("pui-material-icons");e.innerHTML="keyboard_arrow_right";e.onclick=function(){b(+1)};var f=document.createElement("div");f.classList.add("pui-replay");f.appendChild(a);f.appendChild(c);f.appendChild(e);document.body.appendChild(f)};pui.pg=function(b){b+=b.indexOf("?")===-1?"?":"&";b+="pui-rid="+pui.newUUID();return b};pui.nv=function(b){this.uri=b};
|
|
171
171
|
pui.nv.prototype.handleEvent=function(b){switch(b.type){case "close":if(this.ck){this.ck.removeEventListener("message",this);this.ck.removeEventListener("error",this);this.ck.removeEventListener("close",this);this.ck.removeEventListener("open",this);delete this.ck}}};pui.pd=function(b){if(typeof b.onchange==="function")b.onchange=null;if(typeof b.onclick==="function")b.onclick=null;var a=b.attributes;if(typeof a==="object"&&a!==null)for(;a.length>0;)a.removeNamedItem(a[0].name);pui.uc.prototype.Lc.apply(b)};
|
|
172
172
|
pui.ma=function(b){if(b!=null)for(var a=b.firstChild;typeof a==="object"&&a!==null&&a!==b;)if(typeof a.destroy==="function")try{a.destroy();a.destroy=null}catch(c){console.log(c)}else if(a.firstChild!=null)a=a.firstChild;else{var e=a.parentNode;e.removeChild(a);pui.pd(a);a=e.firstChild!=null?e.firstChild:e}};pui.Sg=function(b,a){if(typeof this==="object"&&this!==null){if(!Array.isArray(this.Ne))this.Ne=[];this.Ne.push({name:b,$k:a})}};
|
|
173
|
-
pui.bu=function(b){if(Array.isArray(b.Ne)){for(;b.Ne.length>0;){var a=b.Ne.pop();if(typeof a==="object"&&a!==null){b.removeEventListener(a.name,a.$k);delete a.name;delete a.$k}}delete b.Ne}};pui.kh=function(){try{if(typeof this==="object"&&this!==null){pui.bu(this);pui.ma(this);pui.pd(this)}}catch(b){console.log(b)}};pui.
|
|
174
|
-
pui.
|
|
173
|
+
pui.bu=function(b){if(Array.isArray(b.Ne)){for(;b.Ne.length>0;){var a=b.Ne.pop();if(typeof a==="object"&&a!==null){b.removeEventListener(a.name,a.$k);delete a.name;delete a.$k}}delete b.Ne}};pui.kh=function(){try{if(typeof this==="object"&&this!==null){pui.bu(this);pui.ma(this);pui.pd(this)}}catch(b){console.log(b)}};pui.JA=function(b){switch(b){case "subfile next changed":return true;case "subfile message key":return true;case "subfile program message queue":return true;case "selection field":return true;case "row is hidden field":return true;case "tree level field":return true;case "subfile changed":return true;case "row font color":return true;case "row background":return true;case "grid row translation placeholder value":return true;default:return false}};
|
|
174
|
+
pui.Gz=function(b){if(b!==null){var a=[];a[128]="20";a[129]="21";a[130]="22";a[131]="23";a[132]="24";a[10]="25";a[23]="26";a[27]="27";a[136]="28";a[137]="29";a[138]="2A";a[139]="2B";a[140]="2C";a[5]="2D";a[6]="2E";a[7]="2F";a[144]="30";a[145]="31";a[22]="32";a[147]="33";a[148]="34";a[149]="35";a[150]="36";a[4]="37";a[152]="38";a[153]="39";a[154]="3A";a[155]="3B";a[20]="3C";a[21]="3D";a[158]="3E";a[26]="3F";a[181]="A0";a[126]="A1";a[115]="A2";a[116]="A3";a[117]="A4";a[118]="A5";a[119]="A6";a[120]=
|
|
175
175
|
"A7";a[121]="A8";a[122]="A9";a[161]="AA";a[191]="AB";a[208]="AC";a[221]="AD";a[222]="AE";a[174]="AF";a[94]="B0";a[163]="B1";a[165]="B2";a[183]="B3";a[169]="B4";a[167]="B5";a[182]="B6";a[188]="B7";a[189]="B8";a[190]="B9";a[91]="BA";a[93]="BB";a[175]="BC";a[168]="BD";a[180]="BE";a[215]="BF";return a[b]}};
|
|
176
176
|
pui.vx=function(b){if(b==null||typeof b!="string")return[];var a=[];a["20"]=["GRN"];a["21"]=["GRN","RI"];a["22"]=["WHT"];a["23"]=["WHT","RI"];a["24"]=["GRN","UL"];a["25"]=["GRN","UL","RI"];a["26"]=["WHT","UL"];a["27"]=["ND"];a["28"]=["RED"];a["29"]=["RED","RI"];a["2A"]=["RED","HI"];a["2B"]=["RED","HI","RI"];a["2C"]=["RED","UL"];a["2D"]=["RED","UL","RI"];a["2E"]=["RED","UL","BL"];a["2F"]=["ND"];a["30"]=["TRQ","CS"];a["31"]=["TRQ","CS","RI"];a["32"]=["YLW","CS"];a["33"]=["WHT","RI","CS"];a["34"]=["TRQ",
|
|
177
177
|
"UL","CS"];a["35"]=["TRQ","UL","RI","CS"];a["36"]=["YLW","UL","CS"];a["37"]=["ND"];a["38"]=["PNK"];a["39"]=["PNK","RI"];a["3A"]=["BLU"];a["3B"]=["BLU","RI"];a["3C"]=["PNK","UL"];a["3D"]=["PNK","UL","RI"];a["3E"]=["BLU","UL"];a["3F"]=["ND"];a.A0=["GRN","PR"];a.A1=["GRN","RI","PR"];a.A2=["WHT","PR"];a.A3=["WHT","RI","PR"];a.A4=["GRN","UL","PR"];a.A5=["GRN","UL","RI","PR"];a.A6=["WHT","UL","PR"];a.A7=["ND","PR"];a.A8=["RED","PR"];a.A9=["RED","RI","PR"];a.AA=["RED","HI","PR"];a.AB=["RED","HI","RI","PR"];
|
|
178
178
|
a.AC=["RED","UL","PR"];a.AD=["RED","UL","RI","PR"];a.AE=["RED","UL","BL","PR"];a.AF=["ND","PR"];a.B0=["TRQ","CS","PR"];a.B1=["TRQ","CS","RI","PR"];a.B2=["YLW","CS","PR"];a.B3=["WHT","RI","CS","PR"];a.B4=["TRQ","UL","CS","PR"];a.B5=["TRQ","UL","RI","CS","PR"];a.B6=["YLW","UL","CS","PR"];a.B7=["ND","PR"];a.B8=["PNK","PR"];a.B9=["PNK","RI","PR"];a.BA=["BLU","PR"];a.BB=["BLU","RI","PR"];a.BC=["PNK","UL","PR"];a.BD=["PNK","UL","RI","PR"];a.BE=["BLU","UL","PR"];a.BF=["ND","PR"];return a[b]};
|
|
179
|
-
pui.Kr=function(b){if(b==null||typeof b!="string"||b.length<1)return[];b=pui.
|
|
179
|
+
pui.Kr=function(b){if(b==null||typeof b!="string"||b.length<1)return[];b=pui.Gz(b.charCodeAt(0));return pui.vx(b)};pui.hy=function(b){b=b.split("(");if(b.length!=2)return null;var a=b[0],c=b[1];if(c.substr(c.length-1,1)!=")")return null;c=c.substr(0,c.length-1);b=a.split("/");if(b.length!=2)return null;var e=b[0];a=b[1];e=Kb(e).toUpperCase();if(e=="")return null;a=Kb(a).toUpperCase();if(a=="")return null;c=Kb(c).toUpperCase();if(c=="")return null;return{library:e,file:a,member:c}};
|
|
180
180
|
pui.bw=function(b,a){var c=pui.Qd;if(!(N!="dspf"||c==null)){if(pui.Z[c]!=null)for(var e in pui.Z[c])for(var f=pui.Z[c][e],g=0;g<f.length;g++)if(f[g]==a){f.splice(g,1);break}a.zd=b;if(!(b==null||b=="")){if(pui.Z[c]==null)pui.Z[c]={};if(pui.Z[c][b]==null)pui.Z[c][b]=[];pui.Z[c][b].push(a);if(a.onclick==null||a.S==null)pui.qg(a)}}};pui.ex=function(b){var a;for(b=b.parentNode;b!=null&&b!=pui.runtimeContainer;){if(b.Bc==true){a=b;break}b=b.parentNode}return a};
|
|
181
181
|
pui.zg=function(b){var a,c,e;if(typeof b==="string"){b=b;a=Ab(b)}else{a=b;b=a.id}if(a&&b){if(c=a.comboBoxWidget!=null)a=a.comboBoxWidget.getBox();if(!(a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"))if(a.placeholder){var f;if(c){f=a.parentNode;b=f.className.split(" ");for(c=0;c<b.length;c++){e=b[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}}else{f=document.createElement("div");for(c=0;c<a.classList.length;c++){e=a.classList[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}a.parentNode.insertBefore(f,
|
|
182
182
|
a);a.parentNode.removeChild(a);a.removeAttribute("id");f.id=b;f.style.position=a.style.position;f.style.left=a.style.left;f.style.top=a.style.top;f.style.right=a.style.right;f.style.bottom=a.style.bottom;f.style.width=a.style.width;f.pui=a.pui;if(a.nc!=null)f.nc=a.nc;if(a.Xc!=null)f.Xc=a.Xc;if(a.uf!=null)f.uf=a.uf;if(a.ue!=null)f.ue=a.ue;if(a.fb!=null)f.fb=a.fb;if(a.Wa!=null)f.Wa=a.Wa;a.style.position="";a.style.left="";a.style.top="";a.style.width="100%";if(a.style.visibility){f.style.visibility=
|
|
183
183
|
a.style.visibility;a.style.visibility=""}f.appendChild(a);f.sizeMe=a.sizeMe;f.le=a.le;f.Kb=a.Kb}f.classList.add("pui-floating-placeholder-div");a.classList.add("pui-floating-placeholder-input");b=document.createElement("label");b.classList.add("pui-floating-placeholder-label");b.innerText=a.placeholder;f.insertBefore(b,a.nextSibling);f.l=b;pui.sp(a);b.getValue=function(){return a.value};b.setValue=function(g){a.value=g;pui.qe(a)};b.getBox=function(){return a};b.jq=function(g){g&&a.setAttribute("maxlength",
|
|
184
|
-
g)};b.Hn=function(g,h){a[g]=h;if(f[g]!=null)f[g]=na()};b.kq=function(g){a.readOnly=g};b.setDisabled=function(g){a.disabled=g};b
|
|
184
|
+
g)};b.Hn=function(g,h){a[g]=h;if(f[g]!=null)f[g]=na()};b.kq=function(g){a.readOnly=g};b.setDisabled=function(g){a.disabled=g};b.az=function(g,h){a.setAttribute(g,h)};b.lB=function(){box.focus()}}}};
|
|
185
185
|
pui.tp=function(b){var a=b.dom.l.getBox(),c=b.propertyName,e=Ac(),f;if(e[c]&&e[c].s)f=e[c].s;else if(e[c]&&e[c].V)f=e[c].V;if(f)switch(c){case "disabled":case "read only":a[f]=b.newValue;b.dom.removeAttribute(f);break;case "border radius":case "text align":case "height":a.style[f]=b.dom.style[f];b.dom.style[f]="";break}};var Hb=null,Bc={},Cc=null,Dc=null;pui.gi=false;
|
|
186
186
|
function Ec(){if(Cc!=null)return Cc;if(pui.Yn)return Cc=[{name:"Identification",category:true},{name:"bound field",a:"Field[<span title='A whole number value starting from 0001 determined by how many fields with unchanged names have previously been added to the Universal Display File.'>number</span>]",help:"Use this property to specify the bound field name and data type.",readOnly:true,wa:false},{name:"description",a:"blank",help:"Use this property to provide a text description (or comment) for the field.",bind:false},
|
|
187
187
|
{name:"Misc",category:true},{name:"encoding",choices:["none","html","json","xml","csv"],a:'<span title="The Format Property *document type* of the Record Format.">document type</span>',help:"Sets the encoding type for the field. If not set, the encoding will default based on the <i>document type</i> property setting.",bind:false},{name:"visibility",format:"1 / 0",readOnly:true,g:true,f:["indicator","expression"],a:"true",help:"Determines whether the field is output or not."},{name:"user defined data",
|
|
@@ -335,23 +335,23 @@ function Jc(b,a,c){if(pui.Mp[a])a=pui.Mp[a];if(typeof b=="string")b=Ab(b);if(b==
|
|
|
335
335
|
"valid values")b.Cq=c;if(a=="allow blanks")b.Cr=c=="true";if(a=="auto advance"){e=b;if(b.comboBoxWidget!=null)e=b.comboBoxWidget.getBox();if(b.l!=null)e=b.l.getBox();if(c=="true"){e.Jn=true;T(e,"keyup",pui.Kn)}else{e.Jn=true;Zb(e,"keyup",pui.Kn)}}if(a=="validate name")b.validateName=c=="true";if(a=="validate email")b.validateEmail=c=="true";if(a=="comparison operator")b.bo=c=="true";if(a=="comparison value")b.co=c;if(a=="range low")b.Sh=c;if(a=="range high")b.Rh=c;if(a=="checked value")b.checkedValue=
|
|
336
336
|
c;if(a=="unchecked value")b.uncheckedValue=c;if(a=="bypass validation")b.G=c;if(a=="set focus"&&(c==true||c=="true")){e=b;if(e.comboBoxWidget!=null)e=e.comboBoxWidget.getBox();if(e.l!=null)e=e.l.getBox();e.focus();pui.W.dom=e;pui.W.Og=true}var f;f=b.Qh==null?Ac():b.Qh;e=f[a];if(e==null)e=pui.Wi(f,a);if(e!=null){if(b.pui==null||b.pui.properties==null){f="";var g="output field";if(b.tagName=="DIV")f=Lc(b);if(b.tagName=="INPUT"){f=b.value;g="textbox";if(b.type=="button"||b.type=="submit")g="button"}if(a==
|
|
337
337
|
"field type")g=c;if(b.pui==null)b.pui={};b.pui.properties={"field type":g,value:f}}b.pui.properties[a]=c;return Mc(e,b.pui.properties,b,c,false)}}
|
|
338
|
-
function Mc(b,a,c,e,f,g,h,l,n){var m,r,p,s,t,w,y,x;if(N==="genie"&&c.id.match(/^subfile-scrollbar-[0-9]+(_W[0-9]+)*$/)&&b.name==="field type")return c;if(e=="Other..."&&f&&b.name!="value")return c;var E=c,J;if(f){J=g.originalValue;g.nd=true}else if(a.originalValue!=null)J=a.originalValue;else{J=c.tagName=="DIV"?c.l!=null?c.l.getValue():c.comboBoxWidget!=null?c.comboBoxWidget.getValue():c.U!=null?c.U.value:Lc(c):c.value;a.originalValue=J}var z=Yb(e,J,c),G=b.name,D,
|
|
339
|
-
if(D==null)return E;E=D.tag;m=D.inputType;if(f){g.Wl=null;g.$A()}switch(z){case "select box":if(!f&&c.readOnly&&c.tagName=="INPUT")switch(pui.F.config.protectedSelectBox){case "disable":c.disabled=true;break;case "output":default:E="input";m=c.type}if(f&&pui.is_old_ie&&pui.ie_mode==6&&(String(g.properties["select box height"])==""||String(g.properties["select box height"])=="1"||String(g.properties["select box height"])=="undefined")){E="input";m="text"}break}r=p=false;
|
|
340
|
-
E;if(!
|
|
341
|
-
m);
|
|
342
|
-
null)
|
|
343
|
-
m=="overflow y")if(a["field type"]=="layout")K=false;if(K)if(E[p].s=="visibility"&&f)if(x=="hidden"){
|
|
344
|
-
if(E[p].V=="src")y=pui.normalizeURL(y,true);E[p].V!=="style"&&
|
|
338
|
+
function Mc(b,a,c,e,f,g,h,l,n){var m,r,p,s,t,w,y,x;if(N==="genie"&&c.id.match(/^subfile-scrollbar-[0-9]+(_W[0-9]+)*$/)&&b.name==="field type")return c;if(e=="Other..."&&f&&b.name!="value")return c;var E=c,J;if(f){J=g.originalValue;g.nd=true}else if(a.originalValue!=null)J=a.originalValue;else{J=c.tagName=="DIV"?c.l!=null?c.l.getValue():c.comboBoxWidget!=null?c.comboBoxWidget.getValue():c.U!=null?c.U.value:Lc(c):c.value;a.originalValue=J}var z=Yb(e,J,c),G=b.name,D,B;if(G=="field type"){D=pui.widgets[z];
|
|
339
|
+
if(D==null)return E;E=D.tag;m=D.inputType;if(f){g.Wl=null;g.$A()}switch(z){case "select box":if(!f&&c.readOnly&&c.tagName=="INPUT")switch(pui.F.config.protectedSelectBox){case "disable":c.disabled=true;break;case "output":default:E="input";m=c.type}if(f&&pui.is_old_ie&&pui.ie_mode==6&&(String(g.properties["select box height"])==""||String(g.properties["select box height"])=="1"||String(g.properties["select box height"])=="undefined")){E="input";m="text"}break}r=p=false;B=c.tagName.toLowerCase()!=
|
|
340
|
+
E;if(!B&&c.tagName.toLowerCase()=="input")if(c.type!=m){B=true;if(c.type=="number"&&m=="text")B=false}if(B){p=true;B=document.createElement(E);if(E=="input"||!pui.is_old_ie&&E=="button")B.type=m;c.parentNode!=null&&c.parentNode.replaceChild(B,c);B.style.left=c.style.left;B.style.top=c.style.top;B.style.width=c.style.width;B.style.height=c.style.height;B.style.position=c.style.position;B.style.cursor=c.style.cursor;B.style.visibility=c.style.visibility;(m=c.getAttribute("puiwdgt"))&&B.setAttribute("puiwdgt",
|
|
341
|
+
m);B.id=c.id;if(typeof c.name=="string")B.name=c.name;if(N=="dspf"){if(B.pui==null)B.pui={};if(c.nc!=null){B.nc=c.nc;B.pui.formatName=c.nc}if(c.Xc!=null){B.Xc=c.Xc;B.pui.fieldName=c.Xc}}if(N=="genie"){B.C=c.C;if(pui.F.W==c)pui.F.W=B;r=true}if(c.className.indexOf("hide")!=-1){B.className="hide";if(f){B.style.visibility="visible";B.style.filter="alpha(opacity=30)";B.style.opacity=0.3}}c.getAttribute("maxlength")!=null&&B.setAttribute("maxlength",c.getAttribute("maxlength"));B.disabled=c.disabled;if(c.Wa!=
|
|
342
|
+
null)B.Wa=c.Wa;if(c.fb!=null)B.fb=c.fb;if(c.To)B.To=true;N=="genie"&&attachInputEvents(B);if(f){g.dom=B;h!=null&&h.Tz(g);g.designer.Sz(B,g)}if(c.readOnly)if(E=="input"){if(B.type=="checkbox"||B.type=="radio")N=="genie"&&T(B,"click",disableInputControl)}else if(E=="textarea")B.readOnly=true}else{B=c;if(E=="div"&&z!="tab panel")B.tabPanel=null;if(f||z=="chart"||z=="radio button")p=true}if(p){E=Ec();for(p=0;p<E.length;p++){m=E[p].name;x=a[m];if(x!=null&&x!=""){var K=E[p].s!=null;if(m=="overflow x"||
|
|
343
|
+
m=="overflow y")if(a["field type"]=="layout")K=false;if(K)if(E[p].s=="visibility"&&f)if(x=="hidden"){B.style.filter="alpha(opacity=30)";B.style.opacity=0.3}else{B.style.filter="";B.style.opacity=""}else try{s=pui.Ls(E[p].s,x);B.style[E[p].s]=s;f&&pui.Lk(B,E[p].s,s)}catch(Q){}if(E[p].V!=null){if(E[p].type=="boolean"&&x=="true")x=true;if(E[p].type=="boolean"&&x=="false")x=false;if(E[p].V=="disabled"&&f)x=false;try{if(x==false)B.getAttribute(E[p].V)!=null&&B.removeAttribute(E[p].V);else{y=Yb(x,J,B);
|
|
344
|
+
if(E[p].V=="src")y=pui.normalizeURL(y,true);E[p].V!=="style"&&B.setAttribute(E[p].V,y);if(E[p].V=="class")B.className=x}}catch(Y){}}}}}if(N=="dspf"){p=[];p.push(a["css class"]);m=2;for(x=a["css class "+m];x!=null;){p.push(x);m++;x=a["css class "+m]}m=a["display attribute field"];x=false;if(m!=null&&!pui.p(m)&&m!=""&&m!=" "){p=p.concat(pui.Kr(m));x=true}Nc(B,p,x)}E=B;if(!D.resizable){E.style.width="";E.style.height=""}}else{D=pui.widgets[a["field type"]];if(D==null)return E}if(E.pui==null)E.pui={};
|
|
345
345
|
if(E.pui.properties==null)E.pui.properties={};E.pui.properties[G]=z;if(G=="value"&&e!="script: value"&&!f&&N=="genie"&&E.C!=null&&E.C.idx!=null)E.tagName=="INPUT"&&E.type=="radio"&&E.checked!=true||(pui.response[E.C.idx]=E);if(f&&G=="screen identifier"&&N=="genie"){p="red";p=e=="true"||e==true?"red":"#cccccc";if(E.style.borderLeftStyle=="dotted")E.style.borderLeftColor=p;if(E.style.borderRightStyle=="dotted")E.style.borderRightColor=p;if(E.style.borderTopStyle=="dotted")E.style.borderTopColor=p;if(E.style.borderBottomStyle==
|
|
346
|
-
"dotted")E.style.borderBottomColor=p}p=D.Ff;m=D.propertySetters;x=null;if(m!=null)x=m[G];var ea;if(x!=null||p!=null)ea=new pui.Zm(e,z,f,a,J,E,c,G,g,h);if(p!=null)if(p(ea)==false)return;if(x!=null)if(x(ea)==false)return;if(r)if(
|
|
347
|
-
if(g.dom.id!=e&&document.getElementById(e)!=null)if(!(pui.is_old_ie&&g.dom.id.toUpperCase()==e.toUpperCase())){pui.alert('The widget id "'+e+'" is already in use.');
|
|
348
|
-
e;
|
|
346
|
+
"dotted")E.style.borderBottomColor=p}p=D.Ff;m=D.propertySetters;x=null;if(m!=null)x=m[G];var ea;if(x!=null||p!=null)ea=new pui.Zm(e,z,f,a,J,E,c,G,g,h);if(p!=null)if(p(ea)==false)return;if(x!=null)if(x(ea)==false)return;if(r)if(B.comboBoxWidget!=null){r=B.comboBoxWidget.getBox();pui.Ir(r);r.C=B.C;attachInputEvents(r);B.comboBoxWidget.jq(c.maxLength)}else if(B.l!=null){r=B.l.getBox();pui.Ir(r);r.C=B.C;attachInputEvents(r);B.l.jq(c.maxLength)}else pui.Ir(B);if(G=="id"&&f){B=g.designer;r=B.selection;
|
|
347
|
+
if(g.dom.id!=e&&document.getElementById(e)!=null)if(!(pui.is_old_ie&&g.dom.id.toUpperCase()==e.toUpperCase())){pui.alert('The widget id "'+e+'" is already in use.');B.pb.refresh();return E}for(p=0;p<r.Yd.length;p++)if(g.properties.newitem=="true")if(Bc[B.Oa.vb]&&Bc[B.Oa.vb].items){m=Bc[B.Oa.vb].items;for(x=0;x<m.length;x++)if(m[x].id==g.properties.id)m[x].id=e}if(a["field type"]=="tab panel")for(p=0;p<B.items.length;p++)if(B.items[p].properties["parent tab panel"]==g.dom.id){B.items[p].properties["parent tab panel"]=
|
|
348
|
+
e;B.items[p].dom.Wa=e;B.items[p].qb["parent tab panel"]=true;B.pb.Uh("parent tab panel")}r.Yd.length==1&&B.pb.mB("Properties - "+z)}if(G=="parent tab panel"&&(f||a.visibility!="hidden"))c.Wa=z;if(G=="parent tab")c.fb=z;if(G=="top"||G=="left"||G=="right"||G=="bottom")pui.ky(c);G=="empty text"&&!f&&pui.dz(c,z);B=null;if(String(e).substr(0,3).toLowerCase()=="js:")B=e.substr(3);if(String(e).substr(0,11).toLowerCase()=="javascript:")B=e.substr(11);if(String(e).substr(0,7).toLowerCase()=="script:")B=e.substr(7);
|
|
349
349
|
if(b.s!=null){if(b.s=="visibility"&&f)if(z=="hidden"){c.style.filter="alpha(opacity=30)";c.style.opacity=0.3}else{c.style.filter="";c.style.opacity="";c.style.visibility=z}else if(b.s=="backgroundColor"&&c.tabPanel!=null){c.tabPanel.Jc=z?z:"#eeeeff";if(N=="genie"||f)c.tabPanel.z()}else{try{s=pui.Ls(b.s,z);if(b.s=="textTransform"&&z=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Pe(c.value,false);c.addEventListener("input",pui.zp)}else if(c.comboBoxWidget!=null){t=
|
|
350
|
-
c.comboBoxWidget.getBox();t.value=pui.Pe(t.value,false);t.addEventListener("input",pui.zp)}else if(c.l!=null){w=c.l.getBox();w.value=pui.Pe(w.value,false);w.addEventListener("input",pui.zp)}c.style[b.s]=s;if(f)z===null||z.length==0?pui.Pp(c,b.s):pui.Lk(c,b.s,s)}catch(P){if(
|
|
350
|
+
c.comboBoxWidget.getBox();t.value=pui.Pe(t.value,false);t.addEventListener("input",pui.zp)}else if(c.l!=null){w=c.l.getBox();w.value=pui.Pe(w.value,false);w.addEventListener("input",pui.zp)}c.style[b.s]=s;if(f)z===null||z.length==0?pui.Pp(c,b.s):pui.Lk(c,b.s,s)}catch(P){if(B==null&&f){s="'"+e+"' is not a valid value for "+G+".";if(Hb.Ih){t=Hb.designer.eq[Hb.designer.Oa.vb]["record format name"];if(a.grid!=null){w=Ab(a.grid);if(w!=null&&w.grid!=null)t=w.grid.Xa}s+="\n\n\nRecord Format: "+t;s+="\n\nElement Id: "+
|
|
351
351
|
a.id;s+="\n\nElement Type: "+a["field type"]}pui.alert(s)}}if(c.tabPanel!=null)if(b.s=="color"||b.s=="fontFamily"||b.s=="fontSize"||b.s=="height"||b.s=="width")if(N=="genie"||f)c.tabPanel.z()}a["field type"]=="spinner"&&b.s=="width"&&c.Fc&&c.Fc.Ip();b.s=="visibility"&&z=="hidden"&&!f&&a["field type"]=="date field"&&setTimeout(function(){if(c.calimg&&c.style.visibility=="hidden")c.calimg.style.visibility="hidden"},1);b.s=="visibility"&&z=="hidden"&&!f&&a["field type"]=="spinner"&&setTimeout(function(){c.Fc&&
|
|
352
352
|
c.style.visibility=="hidden"&&c.Fc.hide()},1);b.s=="visibility"&&z=="hidden"&&!f&&a["field type"]=="textbox"&&setTimeout(function(){if(c.Ph&&c.style.visibility=="hidden")c.Ph.style.visibility="hidden"},1);if(b.s=="color"&&c.firstChild!=null&&c.firstChild.tagName=="A")c.firstChild.style.color=z;else if(b.s=="color"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.color=z;if(b.s=="textDecoration"&&c.firstChild!=null&&c.firstChild.tagName==
|
|
353
|
-
"A")c.firstChild.style.textDecoration=z;else if(b.s=="textDecoration"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.textDecoration=z;if(b.s=="width"&&!D.resizable)c.style.width="";if(b.s=="height"&&!D.resizable)c.style.height=""}if(b.V!=null)if(z=="")try{b.V==="style"?pui.
|
|
354
|
-
if(b.V=="disabled"&&f)y=false}if(b.type=="boolean"&&y=="false")y=false;if(y==false)c.getAttribute(b.V)!=null&&c.removeAttribute(b.V);else{if(b.V=="src")y=pui.normalizeURL(y,true);b.V==="style"?pui.ur(c,y,a["field type"]==="layout"):c.setAttribute(b.V,y);if(b.V=="class")c.className=y}}catch(oa){if(
|
|
353
|
+
"A")c.firstChild.style.textDecoration=z;else if(b.s=="textDecoration"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.textDecoration=z;if(b.s=="width"&&!D.resizable)c.style.width="";if(b.s=="height"&&!D.resizable)c.style.height=""}if(b.V!=null)if(z=="")try{b.V==="style"?pui.Iy(c):c.removeAttribute(b.V);if(b.V=="class")c.className=""}catch(W){B==null&&f&&pui.alert(W.message)}else try{y=z;if(b.type=="boolean"&&y=="true"){y=true;
|
|
354
|
+
if(b.V=="disabled"&&f)y=false}if(b.type=="boolean"&&y=="false")y=false;if(y==false)c.getAttribute(b.V)!=null&&c.removeAttribute(b.V);else{if(b.V=="src")y=pui.normalizeURL(y,true);b.V==="style"?pui.ur(c,y,a["field type"]==="layout"):c.setAttribute(b.V,y);if(b.V=="class")c.className=y}}catch(oa){if(B==null&&f){s="'"+e+"' is not a valid value for "+G+".";if(Hb.Ih){t=Hb.designer.eq[Hb.designer.Oa.vb]["record format name"];if(a.grid!=null){w=Ab(a.grid);if(w!=null&&w.grid!=null)t=w.grid.Xa}s+="\n\n\nRecord Format: "+
|
|
355
355
|
t;s+="\n\nElement Id: "+a.id;s+="\n\nElement Type: "+a["field type"]}pui.alert(s)}}if(N=="dspf"&&(G.substr(0,9)=="css class"||G=="display attribute field")){if(G=="display attribute field"&&a["field type"]=="combo box")p=c.className.split(" ");else{p=[];p.push(a["css class"]);m=2;for(x=a["css class "+m];x!=null;){p.push(x);m++;x=a["css class "+m]}}y=Number(G.substr(10));if(isNaN(y)||y<1||y>99)y=1;if(G!="display attribute field")p[y-1]=z;m=a["display attribute field"];x=false;if(m!=null&&!pui.p(m)&&
|
|
356
356
|
m!=""&&m!=" "){p=p.concat(pui.Kr(m));x=true}Nc(c,p,x)}if(b.type=="js"){b=null;if(pui.dc(e))b=function(da){if(!c.Ma)if(c.G=="true"||c.G=="send data")pui.G=c.G;pui.runLogic(e.routine,c.o,c.fk);if(!da)da=window.event;da&&da.stopPropagation&&da.stopPropagation()};else if(G=="ontabclick")b=function(){eval("var tab = arguments[0];");try{return eval(e)}catch(da){pui.Fa(da,G.substr(0,1).toUpperCase()+G.substr(1)+" Error:\n")}};else if(G=="onoptionclick")b=function(){eval("var value = arguments[0];");eval("var text = arguments[1];");
|
|
357
357
|
try{eval(e)}catch(da){pui.Fa(da,G.substr(0,1).toUpperCase()+G.substr(1)+" Error:\n")}};else if(G=="onprompt")b=function(){eval("var value = arguments[0];");try{eval(e)}catch(da){pui.Fa(da,G.substr(0,1).toUpperCase()+G.substr(1)+" Error:\n")}};else if(G=="onspin")b=function(){eval("var value = arguments[0];");eval("var increment = arguments[1];");eval("var spinner = arguments[2];");eval("var newValue = arguments[3];");eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+
|
|
@@ -368,25 +368,25 @@ true;if(!Eb())f.disabled=true;f.tabIndex="-1"}if(b.l!=null){f=b.l.getBox();f.rea
|
|
|
368
368
|
function Yb(b){var a="";if(pui.p(b)||pui.Nb(b)||pui.dc(b)){if(b.designValue!=null)a=b.designValue;return a}if(b==null)b="";var c=null;if(String(b).substr(0,3).toLowerCase()=="js:")c=b.substr(3);if(String(b).substr(0,11).toLowerCase()=="javascript:")c=b.substr(11);if(String(b).substr(0,7).toLowerCase()=="script:")c=b.substr(7);if(c==null||Kb(c)=="")a=b;else{eval("var value = arguments[1];");eval("var obj = arguments[2];");try{a=eval(c)}catch(e){if(!pui.gi){pui.gi=true;setTimeout(function(){pui.alert("Expression '"+
|
|
369
369
|
Kb(c)+"' contains an error:\n\n"+e.message);pui.gi=false},1)}}}return a}
|
|
370
370
|
pui.addCustomProperty=function(b){var a,c,e=Ec(),f=Ac(),g=false,h=e.length;for(a=0;a<e.length;a++)if(e[a].category==true&&e[a].name==b.category){h=a+1;g=true;break}if(g&&b.controls&&b.controls.length>0){if((a=e[h-1])&&Array.isArray(a.controls)){var l=a.controls;a=0;for(c=b.controls.length;a<c&&(newEntry=b.controls[a]);a++){g=false;for(var n=0,m=l.length,r;n<m&&(r=l[n]);n++)if(newEntry==r){g=true;break}g||l.push(newEntry)}}}else{e.splice(h,0,{name:b.category,category:true,controls:JSON.parse(JSON.stringify(b.controls))});
|
|
371
|
-
h++}delete b.category;if(b.bidirectional&&Array.isArray(b.controls)){a=0;for(c=b.controls.length;a<c;a++){r=pui.widgets;g=b.controls[a];l=b.name;if(r[g]){n=r[g].ap;if(n==null)n=r[g].ap={};n[l]=true}}}e.splice(h,0,b);f[b.name]=b};pui.ku=["position","visibility","display","left","right","top","bottom","width","height"];pui.
|
|
372
|
-
pui.ur=function(b,a,c){var e;if(b.pui.gd&&b.pui.gd!==null)for(e in b.pui.gd)b.style[e]="";b.pui.gd={};a=a.split(";");for(var f=0;f<a.length;f++){var g=a[f].split(":");if(g.length==2){var h=g[0].replace(/^\s+|\s+$/gm,"");h=h.toLowerCase();if(!(pui.ne(pui.ku,h)>=0))if(!(c&&pui.ne(pui.
|
|
373
|
-
pui.
|
|
371
|
+
h++}delete b.category;if(b.bidirectional&&Array.isArray(b.controls)){a=0;for(c=b.controls.length;a<c;a++){r=pui.widgets;g=b.controls[a];l=b.name;if(r[g]){n=r[g].ap;if(n==null)n=r[g].ap={};n[l]=true}}}e.splice(h,0,b);f[b.name]=b};pui.ku=["position","visibility","display","left","right","top","bottom","width","height"];pui.Sy=["overflow","overflow-x","overflow-y"];
|
|
372
|
+
pui.ur=function(b,a,c){var e;if(b.pui.gd&&b.pui.gd!==null)for(e in b.pui.gd)b.style[e]="";b.pui.gd={};a=a.split(";");for(var f=0;f<a.length;f++){var g=a[f].split(":");if(g.length==2){var h=g[0].replace(/^\s+|\s+$/gm,"");h=h.toLowerCase();if(!(pui.ne(pui.ku,h)>=0))if(!(c&&pui.ne(pui.Sy,h)>=0)){b.pui.gd[h]=g[1];b.style[h]=g[1]}}}if(b.pui.Gb&&b.pui.Gb!==null)for(e in b.pui.Gb)b.style[e]=b.pui.Gb[e];else b.pui.Gb={}};
|
|
373
|
+
pui.Iy=function(b){if(!(typeof b.pui.gd!=="object"||b.pui.gd===null)){for(var a in b.pui.gd)b.style[a]="";b.pui.gd=null;if(b.pui.Gb&&b.pui.Gb!==null)for(a in b.pui.Gb)b.style[a]=b.pui.Gb[a];else b.pui.Gb={}}};pui.Lk=function(b,a,c){if(!b.pui.Gb||b.pui.Gb===null)b.pui.Gb={};if(pui.ne(pui.ku,a)<0)b.pui.Gb[a]=c};
|
|
374
374
|
pui.Pp=function(b,a){typeof b.pui.Gb!="undefined"&&b.pui.Gb[a]!="undefined"&&delete b.pui.Gb[a];if(typeof b.pui.gd==="object"||b.pui.gd!==null)for(var c in b.pui.gd)b.style[c]=b.pui.gd[c];for(c in b.pui.Gb)b.style[c]=b.pui.Gb[c]};pui.Fs=function(){var b=[],a=pui.getDatabaseConnections();if(a)b=a.map(function(c){return c.name});b.push("Other...");return b};pui.getPropertiesModel=Ec;pui.getPropertiesNamedModel=Ac;function Oc(b){if(typeof b=="string")b=Ab(b);if(b!=null)b.style.visibility="hidden"}function Pc(){for(var b=0;b<Pc.arguments.length;b++)Oc(Pc.arguments[b])}function Qc(b){if(typeof b=="string")b=Ab(b);b!=null&&b.parentNode.removeChild(b)}function Rc(){for(var b=0;b<Rc.arguments.length;b++)Qc(Rc.arguments[b])}
|
|
375
375
|
function Sc(b,a){var c,e;c=b!=null&&typeof b=="object"?b:document.getElementById(b);if(c==null)return"";e="";if(c.tagName.toLowerCase()=="div"){e=c.firstChild;e=e!=null&&e.tagName!=null&&e.tagName=="A"?e.innerHTML:c.innerHTML}if(c.tagName=="INPUT"&&c.type=="checkbox"){if(c.indeterminate===true)return c.indeterminateValue;if(c.checked&&c.checkedValue!=null)return c.checkedValue;if(!c.checked&&c.uncheckedValue!=null)return c.uncheckedValue;return c.checked}if(c.tagName=="INPUT"&&c.type=="radio")return c.checked;
|
|
376
376
|
if(c.tagName=="TEXTAREA")e=c.value;else if(c.tagName=="INPUT"){var f=c.Hd;if(a&&f!=null&&typeof f.value==="string")if(f.value.length>0)e=c.Hd.value;else{if(pui["force auto complete match"]==false)e=c.value}else e=c.value}else if(c.tagName=="SELECT"){e=c.selectedIndex;e=e>=0?c.options[e].value:c.pui&&c.pui.properties&&c.pui.properties.value?c.pui.properties.value:c.value}if(c.comboBoxWidget!=null)e=c.comboBoxWidget.getValue();if(c.l!=null)e=c.l.getValue();if(c.signaturePad!=null)e=c.signaturePad.getValue();
|
|
377
377
|
if(c.U!=null)e=String(c.value);if(c.M!=null){e="";if(c.M.Od&&c.M.Mh!=null)e=c.M.Mh;else if(!c.M.Od&&c.M.Lh!=null)e=c.M.Lh}if(c.pui&&c.pui.widget&&typeof c.pui.widget.getPropertyValue==="function")e=c.pui.widget.getPropertyValue("value");for(e=e.replace(/ /g," ");e.indexOf(String.fromCharCode(160))!=-1;)e=e.replace(String.fromCharCode(160)," ");if(e==c.emptyText)e="";return e}function Tc(b,a){return Kb(Sc(b,a))}function Ab(b){return document.getElementById(b)}
|
|
378
378
|
function Uc(b,a){var c;c=typeof b=="object"?b:document.getElementById(b);if(c!=null){if(c.tagName=="DIV")if(c.U!=null)c.U.setValue(a);else if(c.comboBoxWidget!=null)c.comboBoxWidget.setValue(a);else if(c.l!=null)c.l.setValue(a);else if(c.button&&c.button.m)c.button.m.innerHTML=a;else if(c.pui&&c.pui.widget)applyProperty(c,"value",a);else c.innerHTML=a;else if(c.tagName=="INPUT"||c.tagName=="SELECT"||c.tagName=="TEXTAREA")if(c.tagName=="INPUT"&&c.type=="checkbox")c.checked=typeof a=="boolean"?a:c.checkedValue!=
|
|
379
|
-
null&&a==c.checkedValue?true:false;else{N=="genie"&&a!=c.value&&pui.F.
|
|
380
|
-
function Vc(b,a,c,e,f){if(typeof b=="string"){f=c;e=a;c=b;b=a=0}var g;if(c==null)c="div";g=c=c.toLowerCase();if(c=="dspf")g="div";if(c=="button")g="input";g=document.createElement(g);g.style.position="absolute";g.style.top=b*pui.Il+
|
|
379
|
+
null&&a==c.checkedValue?true:false;else{N=="genie"&&a!=c.value&&pui.F.LA(c);c.value=a;if(c.Hd!=null)c.Hd.value=a}if(N=="dspf"||pui.fa&&c.C==null){c.modified=true;pui.Ye(c);var e=c.H;if(c.id!=null&&c.id.indexOf(".")==-1&&c.nc!=null)pui.sf[c.nc]=true;if(e!=null){e.hide();e.ja=true;pui.da(c,e.Ag())}}if(N=="genie"&&c.C!=null&&c.C.idx!=null)pui.response[c.C.idx]=c;pui.qe(c);if(c.pui&&c.pui.properties)c.pui.properties.value=a}}
|
|
380
|
+
function Vc(b,a,c,e,f){if(typeof b=="string"){f=c;e=a;c=b;b=a=0}var g;if(c==null)c="div";g=c=c.toLowerCase();if(c=="dspf")g="div";if(c=="button")g="input";g=document.createElement(g);g.style.position="absolute";g.style.top=b*pui.Il+Ka+"px";g.style.left=a*pui.Hl+"px";if(e!=null)switch(c){case "div":g.innerHTML=e;break;case "dspf":b=new pui.Ajax(e);b.async=false;b.send();if(b.Ft())g.innerHTML=b.zc();break;case "input":g.value=e;break;case "button":g.type="button";g.value=e;g.className="button";if(!pui.is_quirksmode)g.style.width=
|
|
381
381
|
"55px";break;case "img":g.src=e;break}if(f!=null)g.id=f;if(c=="input"){document.forms.main.appendChild(g);T(g,"keydown",vb)}else{N=="genie"&&document.getElementById(Da).appendChild(g);N=="dspf"&&pui.runtimeContainer.appendChild(g)}return g}function ub(b){if(!b)b=window.event;if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(b.preventDefault){b.cancelBubble=true;b.preventDefault()}b.stopPropagation&&b.stopPropagation()}var Wc={};
|
|
382
382
|
function Tb(b){if(typeof b!=="string")return b;for(;b.charAt(0)==" ";)b=b.replace(b.charAt(0),"");return b}function Ob(b){if(typeof b!=="string")return b;for(;b.charAt(b.length-1)==" ";)b=b.substring(0,b.length-1);return b}function Kb(b){if(typeof b!=="string")return b;return b.replace(/^\s*|\s*$/g,"")}pui.detachCalendar=function(b){if(typeof b=="string")b=Ab(b);b!=null&&pui.Qp(b)};
|
|
383
383
|
function Xb(b,a){var c;try{c=document.createElement("<"+b+' name="'+a+'">')}catch(e){c=document.createElement(b);c.name=a}return c}function Lc(b){if(typeof b=="string")b=Ab(b);if(b==null)return"";var a=b.textContent;if(a==null){a=b.innerText;if(a==null)return""}for(;a.indexOf(String.fromCharCode(160))!=-1;)a=a.replace(String.fromCharCode(160)," ");return a}
|
|
384
384
|
function Vb(b,a,c){var e=false,f=location.href;f=f.split("?")[0];f=f.split("/");if(f.length>2&&f[f.length-2].toLowerCase()=="auth")e=true;f="/profoundui/";var g=["PUI0009101.PGM","PUI0009102.PGM","PUI0009103.PGM","PUI0009104.PGM","PUI0009107.PGM","PUI0009109.PGM","PUI0009110.PGM","PUI0009119.PGM"];if(typeof pui.widgetURLPrefix==="string"&&g.indexOf(b.toUpperCase())!=-1){f=pui.widgetURLPrefix;if(f.substr(f.length-1)!="/")f+="/"}if(e==true||c==true)f+="auth/";f+=b;if(a!=null&&a==true)f+="/"+PSID;if(pui.serverURL!=
|
|
385
|
-
null)f=pui.serverURL+f;return f}pui.getProgramURL=Vb;function T(b,a,c){b.addEventListener(a,c,false);typeof b.Tf==="function"&&b.Tf(a,c)}function Zb(b,a,c){b.removeEventListener(a,c,false);if(Array.isArray(b.Ne))for(var e=0,f=b.Ne.length;e<f;e++){var g=b.Ne[e];if(typeof g==="object"&&g!==null&&g.name===a&&g.$k===c){b.
|
|
385
|
+
null)f=pui.serverURL+f;return f}pui.getProgramURL=Vb;function T(b,a,c){b.addEventListener(a,c,false);typeof b.Tf==="function"&&b.Tf(a,c)}function Zb(b,a,c){b.removeEventListener(a,c,false);if(Array.isArray(b.Ne))for(var e=0,f=b.Ne.length;e<f;e++){var g=b.Ne[e];if(typeof g==="object"&&g!==null&&g.name===a&&g.$k===c){b.wy&&b.wy.splice(e,1);delete g.name;delete g.$k;break}}}
|
|
386
386
|
function Xc(b){if(b!=null&&b.touches!=null&&b.touches.length==1)return b.touches[0].pageX;var a=0;if(window.event!=null){if(window.event.clientX!=null)a+=window.event.clientX;if(document.documentElement!=null&&document.documentElement.scrollLeft!=null)a+=document.documentElement.scrollLeft;if(document.body!=null&&document.body.scrollLeft!=null)a+=document.body.scrollLeft}else if(b!=null){if(b.clientX!=null)a+=b.clientX;if(b.scrollX!=null)a+=b.scrollX}return a}
|
|
387
387
|
function Yc(b){if(b!=null&&b.touches!=null&&b.touches.length==1)return b.touches[0].pageY;var a=0;if(window.event!=null){if(window.event.clientY!=null)a+=window.event.clientY;if(document.documentElement!=null&&document.documentElement.scrollTop!=null)a+=document.documentElement.scrollTop;if(document.body!=null&&document.body.scrollTop!=null)a+=document.body.scrollTop}else if(b!=null){if(b.clientY!=null)a+=b.clientY;if(b.scrollY!=null)a+=b.scrollY}return a}pui.Mo=function(b){return pui.Bg(b).x};
|
|
388
388
|
pui.Ks=function(b){return pui.Bg(b).y};pui.Bg=function(b){b=b||window.event;var a={x:0,y:0};if(b!=null&&b.touches!=null&&b.touches.length==1){a.x=b.touches[0].pageX;a.y=b.touches[0].pageY}else if(b!=null){if(b.pageX)a.x=b.pageX;else if(b.clientX)a.x=b.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);if(b.pageY)a.y=b.pageY;else if(b.clientY)a.y=b.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}return a};
|
|
389
|
-
function Zc(){return pui.currentFormatNames}function $c(){var b={},a="";a=location.search.substring(1,location.search.length);if(a.length==0)return b;a=a.replace(/\+/g," ");a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].split("="),f=decodeURIComponent(e[0]),g="";if(e.length==2)g=decodeURIComponent(e[1]);b[f]=g}return b}if(typeof Jc!="undefined")window.
|
|
389
|
+
function Zc(){return pui.currentFormatNames}function $c(){var b={},a="";a=location.search.substring(1,location.search.length);if(a.length==0)return b;a=a.replace(/\+/g," ");a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].split("="),f=decodeURIComponent(e[0]),g="";if(e.length==2)g=decodeURIComponent(e[1]);b[f]=g}return b}if(typeof Jc!="undefined")window.Qz=Jc;
|
|
390
390
|
pui.pi={encode:function(b){for(var a="",c=0;c<b.length;c++){var e=b.codePointAt(c);e>65535&&c++;if(e<128)a+=String.fromCharCode(e);else{if(e<2048)a+=String.fromCharCode(e>>6|192);else{if(e<65536)a+=String.fromCharCode(e>>12|224);else{a+=String.fromCharCode(e>>18|240);a+=String.fromCharCode(e>>12&63|128)}a+=String.fromCharCode(e>>6&63|128)}a+=String.fromCharCode(e&63|128)}}return a},decode:function(b){for(var a="",c=0,e=0,f=0,g=0,h=0;c<b.length;){e=b.charCodeAt(c);if(e<128){a+=String.fromCharCode(e);
|
|
391
391
|
c++}else if(e<224){f=b.charCodeAt(c+1);a+=String.fromCharCode((e&31)<<6|f&63);c+=2}else if(e<240){f=b.charCodeAt(c+1);g=b.charCodeAt(c+2);a+=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63);c+=3}else{f=b.charCodeAt(c+1);g=b.charCodeAt(c+2);h=b.charCodeAt(c+3);a+=String.fromCodePoint((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63);c+=4}}return a}};
|
|
392
392
|
pui.Jq={lf:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var a="",c,e,f,g,h,l,n=0;for(b=pui.pi.encode(b);n<b.length;){c=b.charCodeAt(n++);e=b.charCodeAt(n++);f=b.charCodeAt(n++);g=c>>2;c=(c&3)<<4|e>>4;h=(e&15)<<2|f>>6;l=f&63;if(isNaN(e))h=l=64;else if(isNaN(f))l=64;a=a+this.lf.charAt(g)+this.lf.charAt(c)+this.lf.charAt(h)+this.lf.charAt(l)}return a},decode:function(b){var a="",c,e,f,g,h,l=0;for(b=b.replace(/[^A-Za-z0-9+/=]/g,"");l<b.length;){c=this.lf.indexOf(b.charAt(l++));
|
|
@@ -435,7 +435,7 @@ pui.alert=function(b,a,c,e){if(window.cordova&&window.device.platform=="iOS"&&a=
|
|
|
435
435
|
window&&pui.hi(window.parent)&&window.parent.noderun?console.log("Suppressed alert: "+b):alert(b)};pui.applyProperty=function(b,a,c){return window.applyProperty(b,a,c)};pui.get=function(b){return Tc(b)};pui.set=function(b,a){Uc(b,a)};pui.getActiveContainer=function(){if(N=="genie"){for(var b=1,a=document.getElementById("window"+b);a;){var c=document.getElementById("window"+ ++b);if(c)a=c;else break}if(a)return a}else if(N=="dspf"&&pui.ud)return pui.ud;return pui.runtimeContainer};
|
|
436
436
|
pui.getDisplayType=function(){return pui.fa?"5250-handler":N=="dspf"?"rdf":"5250"};
|
|
437
437
|
function bd(b){function a(){if(!(r>=m.length)){t=m[r].command;w=m[r].wait;r+=1;if(typeof pui.onPCCommand=="function")try{var x=pui.onPCCommand(t,w);if(x==null||x==true){setTimeout(a,0);return}}catch(E){showFailureMessage(t)}s="?cmd="+encodeURIComponent(t)+"&wait="+(w?"1":"0");if(h==1||h==2)if(l){y.params.cmd=t;y.params.sign=1;y.params.hashalg=typeof pui["pccmd hash sign algorithm"]==="string"?pui["pccmd hash sign algorithm"].toUpperCase():"SHA-512";y.handler=f;ac(y)}else c("");else if(h==3){y.params.cmd=
|
|
438
|
-
t;y.handler=e;ac(y)}else{if(r==0&&m.length>0){x=[];for(var J=0;J<m.length;J++)x.push("("+m[J].
|
|
438
|
+
t;y.handler=e;ac(y)}else{if(r==0&&m.length>0){x=[];for(var J=0;J<m.length;J++)x.push("("+m[J].Zz+")");t=x.join(" && ")}try{n.runCommand(t)}catch(z){x='Unable to execute "'+t+'".\n\n';if(z!=null)x+=z.name+":\n\n"+z.message+".";alert(x)}}}}function c(x){if(h==2){var E=new Image;E.onload=a;E.onerror=function(){console.log("PC Command Listener image mode failure.");g(t)};E.src=p+s+"&type=image&rnd="+String(Math.random())+String((new Date).getTime())+x}else{x=new pui.Ajax(p+s+x);x.method="GET";x.async=
|
|
439
439
|
w?false:true;x.suppressAlert=true;x.onfail=function(z){if(z.Ef()!=200){console.log("PC Command Listener comm. failure: "+z.Yi());g(t)}};x.onsuccess=function(z){try{var G=JSON.parse(z.zc());if(!G.success&&typeof G.error==="string"){console.log("PC Command Listener failure.",G.error);g(t);return}}catch(D){}a()};try{x.send()}catch(J){console.log("PC Command Listener failure.",J);g(t)}}}function e(x,E){try{if(E)throw E;if(x==null)throw Error("Empty response from PCCMD crypt program.");if(x.error!=null||
|
|
440
440
|
typeof x.error==="string"&&x.error.length>0)throw Error("PCCMD crypt error: "+String(x.error));if(typeof x.cmd!=="string"||x.cmd.length==0)throw Error("PCCMD crypt response was missing a command.");var J="puilaunch:"+encodeURIComponent(x.cmd),z=document.createElement("iframe");z.style.display="none";z.src=J;document.body.appendChild(z);setTimeout(function(){z!=null&&z.parentNode!=null&&document.body.removeChild(z);z=null;a()},5E3)}catch(G){console.log(G)}}function f(x,E){try{if(E)throw E;if(typeof x!==
|
|
441
441
|
"object"||x===null)throw Error("Empty response");if(x.success!==true)throw typeof x.error==="string"&&x.error.length>0?x.error:"Unknown error";var J="";if(typeof x.sig==="string"&&x.sig.length>0)J="&sig="+encodeURIComponent(x.sig);c(J)}catch(z){console.log(z);g(t)}}function g(x){console.log("Command: "+x);x=pui.getLanguageText("runtimeMsg","pccommand error");pui["alert pccommand errors"]!==false?alert(x):console.log(x);console.log("Visit https://docs.profoundlogic.com/x/aQFK for more information on supporting STRPCCMD.")}
|
|
@@ -444,12 +444,12 @@ var h=1,l=false;if(pui["use pc listener"])h=1;if(window.HTTPS!=null&&window.HTTP
|
|
|
444
444
|
function Ub(b,a){if(a!=null&&typeof a!="string"&&a==true)setTimeout(function(){Ub(b)},0);else if(N=="dspf"){var c=Vc("button");c.id="puiKeyButton";c.style.display="none";applyProperty("puiKeyButton","shortcut key",b);pui.click("puiKeyButton")}else if(arguments.length>1){c=[];for(var e=0;e<arguments.length;e++)c[e]="pressKey('"+arguments[e]+"')";multiStepAction(c)}else if(b.substr(0,6)=="option"){c=b.substr(6);selectOption(c)}else{c=getKeyNameFromDesc(b);c!=""&&pressKeyUsingHexName(c)}}
|
|
445
445
|
pui.isServerBusy=function(){if(typeof N=="undefined")return false;if(N=="dspf"&&pui.Qb===false||N=="genie"&&pui.F.Md===true)return true;for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a].contentWindow;if(c!=null){var e=null;try{e=c.pui}catch(f){}if(e!=null)if(typeof e==="object")if(typeof e.isServerBusy==="function")if(e.isServerBusy())return true}}return false};
|
|
446
446
|
pui.showLastError=function(){if(Na.length==0)alert("No errors have been reported.");else{var b=Na.length-1;alert("Operation: "+Na[b].Pl+"\nId: "+Na[b].id+"\n\nMessage: "+Na[b].text+"\n"+Na[b].Dm)}};
|
|
447
|
-
pui.editCode=function(b,a){function c(K,Q){var Y=["","","","nn/n","nn/nn","nn/nn/n","nn/nn/nn","nnn/nn/nn","nn/nn/nnnn","nnn/nn/nnnn"];if(l.dateEdit==="*ymd"){Y[8]="nnnn/nn/nn";Y[9]="nnnnn/nn/nn"}Y=Y[G];K=String(K);K=K.replace(".","");K=K.replace(",","");K=K.replace("-","");K="0000000000"+K;K=K.substr(K.length-Q);var ea="/";if(l.dateEditSeparator!=null)ea=l.dateEditSeparator;for(var P=false,
|
|
448
|
-
"/")ga=ea;else{ga=K.substr(
|
|
447
|
+
pui.editCode=function(b,a){function c(K,Q){var Y=["","","","nn/n","nn/nn","nn/nn/n","nn/nn/nn","nnn/nn/nn","nn/nn/nnnn","nnn/nn/nnnn"];if(l.dateEdit==="*ymd"){Y[8]="nnnn/nn/nn";Y[9]="nnnnn/nn/nn"}Y=Y[G];K=String(K);K=K.replace(".","");K=K.replace(",","");K=K.replace("-","");K="0000000000"+K;K=K.substr(K.length-Q);var ea="/";if(l.dateEditSeparator!=null)ea=l.dateEditSeparator;for(var P=false,W=0,oa="",da=0;da<Y.length;da++){var ga=Y.substr(da,1),Aa=Y.substr(da+1,1);if(ga==="/"||Aa==="/")P=true;if(ga===
|
|
448
|
+
"/")ga=ea;else{ga=K.substr(W,1);W+=1;if(ga==="0")P||(ga=" ");else P=true}oa+=ga}return oa}function e(K,Q,Y){for(K+="";K.length<Q;)K+=Y;return K}var f=null,g=0,h=null,l={},n=2;if(typeof arguments[n]==="number"){f=arguments[n];n++;if(typeof arguments[n]==="number"){g=arguments[n];n++}}if(typeof arguments[n]==="string"){h=arguments[n];n++}if(typeof arguments[n]==="object"){l=arguments[n];n++}var m=false;if(h==="*astfill"){m=true;h=null}var r=false,p=null,s=false,t=n=false;n=" ";if(pui.appJob&&typeof pui.appJob.decimalFormat===
|
|
449
449
|
"string")n=pui.appJob.decimalFormat;var w=n==="I"||n==="J",y=n==="J";if(l.decimalEdit!=null){w=l.decimalEdit===","||l.decimalEdit==="0,";y=l.decimalEdit==="0."||l.decimalEdit==="0,"}if(a>="1"&&a<="4")p="999.00";if(a>="A"&&a<="D")p="999.00CR";if(a>="J"&&a<="M")p="999.00-";if(a>="N"&&a<="Q")p="-999.00";if(a=="1"||a=="A"||a=="J"||a=="N"||a=="2"||a=="B"||a=="K"||a=="O")s=true;n=a=="1"||a=="A"||a=="J"||a=="N"||a=="3"||a=="C"||a=="L"||a=="P"?true:false;if(a=="Z")p="999.00";if(a==="X"||a==="Z")t=true;if(a===
|
|
450
450
|
"X")r=true;a>="5"&&a<="9"&&pui.alert("User-defined edit code not supported: "+a+".");a>="1"&&a<="9"||a>="A"&&a<="D"||a>="J"&&a<="Q"||a>="X"&&a<="Z"||pui.alert("Invalid edit code: "+a+".");var x=(b||0)+"",E=parseFloat(x,10)||0,J;J=x.replace(/\..*/,"");if(J==="-0")J="-";if((J==""||J=="-")&&y)J="0";var z;z=x;if(z.indexOf(".")==-1)z+=".";z=z.replace(/.*\./,"");var G=J.length;if(G<3)G=3;var D=z.length;if(typeof f==="number")G=f;if(typeof g==="number")D=g;if(a=="Y"){if(G<3||G>9)pui.alert("Length not valid for edit code Y.");
|
|
451
|
-
return c(E,G)}f=".";if(w)f=",";if(t)f="";if(D>0){z=e(z,D,"0");if(J==="0"&&!y)J="";x=J+f+z}var
|
|
452
|
-
K+=D&&!t?1:0;if(s)K+=parseInt((G-D-1)/3);if(p==="999.00CR")K+=2;if(p==="999.00-")K+=1;if(p==="-999.00")K+=1;if(typeof h==="string")K+=h.length;var Q=x;for(Q+="";Q.length<K;)Q=
|
|
451
|
+
return c(E,G)}f=".";if(w)f=",";if(t)f="";if(D>0){z=e(z,D,"0");if(J==="0"&&!y)J="";x=J+f+z}var B=" ";if(r)B="0";if(m)B="*";if(s){for(g=/(\d+)(\d{3})/;g.test(J);)J=J.replace(g,"$1"+(w?".":",")+"$2");x=J+(D>0?f+z:"")}w=E<0;x=x.replace(/-/g,"");if(p==="(999.00)"){if(w)x="("+x+")"}else if(p==="999.00-")x+=w?"-":" ";else if(p==="999.00CR")x+=w?"CR":" ";else if(p==="-999.00")if(w)x="-"+x;if(h)x=h=="EUR"?x+" EUR":h=="$"?x.substr(0,1)=="-"?"-"+h+x.substr(1):h+x:h+x;if(!n)if(E===0)x="";(function(){var K=G;
|
|
452
|
+
K+=D&&!t?1:0;if(s)K+=parseInt((G-D-1)/3);if(p==="999.00CR")K+=2;if(p==="999.00-")K+=1;if(p==="-999.00")K+=1;if(typeof h==="string")K+=h.length;var Q=x;for(Q+="";Q.length<K;)Q=B+Q;x=Q})();return x};
|
|
453
453
|
pui.editWord=function(b,a,c){function e(){if(y.length>0){var J=y.substr(y.length-1,1);y=y.substr(0,y.length-1);if(J=="0"&&y.length==0&&E)J=x?"*":" "}else{J="0";if(E)J=" ";if(x)J="*"}return J}var f,g;b=String(b);var h={};if(typeof c==="object")h=c;c="$";if(h.currencySymbol!=null)c=h.currencySymbol;var l=a.indexOf("0")+1,n=a.indexOf("*")+1;if(l==0||n!=0&&n<l)l=n;var m=-1;for(f=a.length-1;f>=0;f-=1)if(f+1==l||a.substr(f,1)==" "){m=f;break}n=a.substr(0,m+1);var r="",p="",s=false,t=false,w=a.substr(m+
|
|
454
454
|
1).indexOf("-")>=0||a.substr(m+1).indexOf("CR")>=0;for(f=m+1;f<a.length;f++){g=a.substr(f,1);if(a.substr(f,2)=="CR"){t=true;f++}else if(g=="-")t=true;else if(g!="&")if(!(g=="*"&&!t))if(g.toUpperCase()>="A"&&g.toUpperCase()<="Z"&&w&&!t)a=a.substr(0,f)+" "+a.substr(f+1);else{r=a.substring(m+1,f);p=a.substr(f);s=true;break}}s||(r=a.substr(m+1));g=".";f=" ";if(pui.appJob&&typeof pui.appJob.decimalFormat==="string")f=pui.appJob.decimalFormat;if(typeof h.decimalFormat==="string")f=h.decimalFormat;if(f===
|
|
455
455
|
"I"||f==="J")g=",";f=0;g=n.split(g);if(g.length>1)f=g[1].replace(/[^ ]/g,"").length;var y;y=isNaN(Number(b))?"0":String(b);y=y.replace("-","");g=y.split(".");h=g[0];a="";m=null;if(g.length>1)a=g[1];if(m==null||isNaN(m))m=f;for(;a.length>m;)a=a.substr(0,a.length-1);for(;m>a.length;)a+="0";for(y=h+a;y.substr(0,1)=="0";)y=y.substr(1);h="";var x=m=false;var E=a=false;if(l==0)E=true;for(f=n.length-1;f>=0;f-=1){s=g=n.substr(f,1);if(g==" ")s=e();else if(g=="&")s=" ";else if(g=="0"&&f+1==l)s=e();else if(g==
|
|
@@ -458,9 +458,9 @@ pui.getRadioGroupValue=function(b){if(typeof b!=="string")return null;if(typeof
|
|
|
458
458
|
window.copyToClipboardCb=function(){copyToClipboardCb(pui.Dr);pui.Dr=null};pui.help={};
|
|
459
459
|
pui.help.show=function(){var b=pui.Ud.layers;if(b!=null){b=b[b.length-1].formats;if(b!=null)if(b.length!=0){for(var a=pui.r.record,c=b[0],e=0;e<b.length;e++)if(b[e].name==a){c=b[e];break}var f=c.metaData.screen;b=null;a=false;for(e=1;!a;){var g="";if(e>1)g=" "+String(e);if(f["help record"+g]==null&&f["help panel group"+g]==null)a=true;else{var h=f["help panel condition"+g];if(h!=null&&pui.p(h)){h=h.dataType=="expression"?pui.Co(h.fieldName,data):data[fieldName];if(h!="1"&&h!="true"&&h!=true){e++;
|
|
460
460
|
continue}}h=f["help area"+g];if(h==""||h==null){b=g;break}var l=h.split(" ");if(l.length==4){var n=Number(l[0]),m=Number(l[1]),r=Number(l[2]);l=Number(l[3]);var p=Number(pui.r.row),s=Number(pui.r.column);if(!isNaN(n)&&!isNaN(r)&&!isNaN(p)&&!isNaN(m)&&!isNaN(l)&&!isNaN(s))if(p>=n&&p<=r&&s>=m&&s<=l){b=g;break}}if(h==pui.r.Ao){b=g;break}e++}}b==null&&pui.help.vs(f);if(b!=null){if(f["help record"+b]!=null){a=f["help record"+b];e=f["help display file"];if(e==null){e=c.file;c=c.library;if(c==null||c=="")c=
|
|
461
|
-
"*LIBL"}else{g=e.split("/");if(g.length==2){c=g[0];e=g[1]}else c="*LIBL"}pui.Ue();ac({url:Vb("PUI0009108.pgm"),method:"post",params:{record:a,library:c,file:e,AUTH:pui.appJob.auth},async:true,handler:function(t){pui.cc();t.success==true?pui.help.
|
|
461
|
+
"*LIBL"}else{g=e.split("/");if(g.length==2){c=g[0];e=g[1]}else c="*LIBL"}pui.Ue();ac({url:Vb("PUI0009108.pgm"),method:"post",params:{record:a,library:c,file:e,AUTH:pui.appJob.auth},async:true,handler:function(t){pui.cc();t.success==true?pui.help.Ly(t.metaData):pui.help.error(t)}})}if(f["help panel group"+b]!=null){c=f["help panel group"+b];e=c.split("/");if(e.length==2){a=e[0];c=e[1]}else a="*LIBL";b=f["help module"+b];pui.Ue();ac({url:Vb("PUI0009108.pgm"),method:"post",params:{modules:"1",pgroup1:c,
|
|
462
462
|
library1:a,module1:b,AUTH:pui.appJob.auth},async:true,handler:function(t){pui.cc();t.success==true?pui.help.du(t.html,true,f):pui.help.error(t)}})}}}}};
|
|
463
|
-
pui.help.
|
|
463
|
+
pui.help.Ly=function(b){b=b.items;var a=Ac(),c=document.createElement("div");c.style.width="1000px";c.style.height="750px";c.style.zIndex=999;if(pui.hd>999)c.style.zIndex=pui.hd+1;c.style.position="absolute";c.style.backgroundColor="white";pui.runtimeContainer.appendChild(c);for(var e=0;e<b.length;e++){var f=b[e];if(f.id!="btnHELP"){var g=document.createElement("div");g.style.position="absolute";var h=f.left,l=f.top;if(h==null)h="0px";if(l==null)l="0px";g.style.left=h;g.style.top=l;c.appendChild(g);
|
|
464
464
|
if(f["field type"]=="button"||f["field type"]=="styled button")g.onclick=function(){c.innerHTML="";c.parentNode.removeChild(c);c=null};for(var n in f){h=pui.Wi(a,n);if(h!=null){l=f[n];if(l!=null&&l!="")g=Mc(h,f,g,l,false)}}if(g.pui&&g.pui.widget)dd(g.pui.widget);else g.Ka&&g.Ka.render()}}};pui.help.error=function(b){var a=b.id,c=b.message;b=b.help;var e="An error has occurred trying to display help text.";if(a!=null)e+="\n\nError Id: "+a;if(c!=null)e+="\n\nMessage: "+c;if(b!=null)e+="\n\n"+b;pui.alert(e)};
|
|
465
465
|
pui.help.du=function(b,a,c){var e=document.createElement("div");e.className="help-panel-group";e.style.zIndex=999;if(pui.hd>999)e.style.zIndex=pui.hd+1;pui.runtimeContainer.appendChild(e);e.innerHTML=b;b=document.createElement("input");b.type="button";b.value="Return to Application";b.onclick=function(){e.innerHTML="";e.parentNode.removeChild(e);e=null};e.appendChild(b);if(a==true){e.appendChild(document.createTextNode(" "));a=document.createElement("input");a.type="button";a.value="Extended Help";
|
|
466
466
|
a.onclick=function(){pui.help.vs(c,e)};e.appendChild(a)}if(pui["help panel group toc"]==false){a=e.firstChild;if(a!=null&&a.nodeType==3)a=a.nextSibling;if(a!=null&&a.tagName=="DIV"&&a.firstChild!=null&&a.firstChild.tagName=="A"&&a.firstChild.name=="TOC")a.style.display="none"}};
|
|
@@ -479,14 +479,14 @@ pui.capturePhoto=function(b){var a=b.dir;if(a==null)a="/www/profoundui/htdocs/pr
|
|
|
479
479
|
true;var g=b.handler;if(g==null)g=function(h){if(h.success==false)pui.alert(h.error);else h.success==true?pui.alert("Photo captured successfully."):pui.alert("Invalid response.")};navigator.camera==null?g({success:false,error:"Camera unavailable."}):navigator.camera.getPicture(function(h){var l=new window.FileUploadOptions;l.fileKey="file";l.fileName=h.substr(h.lastIndexOf("/")+1);l.mimeType="image/jpeg";var n={};n.dir=a;n.overwrite=c?"1":"0";n.flimit="1";n.slimit="50";n.filename=e;l.params=n;n=new window.FileTransfer;
|
|
480
480
|
var m=Vb("PUI0009109.PGM");m+="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth);m+="&mode=ajax";if(pui.isCloud)m+="&workspace_id="+pui.cloud.ws.id;n.upload(h,encodeURI(m),function(r){var p={};try{p=eval("("+decodeURIComponent(r.response)+")")}catch(s){p.success=false;p.error="Invalid response."}r.success=p.success;r.success||(r.error=p.key?pui.getLanguageText("runtimeMsg","upload "+p.key):p.error);g(r)},function(r){r.success=false;r.error="An error has occurred: Code = "+r.code;g(r)},l)},
|
|
481
481
|
function(h){g({success:false,error:h})},f)};
|
|
482
|
-
pui.
|
|
482
|
+
pui.Hz=function(b,a){var c=b.overwrite===true,e=b.data,f=e.indexOf(";base64,")+8;f=e.substring(f);var g=b.imageType;e=Vb("PUI0009109.PGM");e+="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth);e+="&mode=ajax";e+="&r="+Math.floor(Math.random()*1E9);if(pui.isCloud)e+="&workspace_id="+pui.cloud.ws.id;c=[{name:"file",value:f,contenttype:g,filename:b.fileName,transferencoding:"base64"},{name:"dir",value:b.dir},{name:"overwrite",value:c?"1":"0"},{name:"flimit",value:"1"},{name:"slimit",value:String(Math.ceil(f.length/
|
|
483
483
|
1048576))},{name:"filename",value:b.fileName}];f=new pui.Oq;f.xr(c);f.send(e,function(h){var l=true,n;if(h.Ef()==200){var m;try{m=eval("("+h.zc()+")")}catch(r){l=false;n="Server response missing or invalid."}if(m)(l=m.success)||(n=m.key?pui.getLanguageText("runtimeMsg","upload "+m.key):m.error)}else{l=false;n=h.Ef()+" - "+h.Yi()+"."}typeof a=="function"&&a(l,n)})};
|
|
484
|
-
pui.uploadSignature=function(b){var a=Ab(b.signaturePadId);if(!(a==null||a.firstChild==null)){if(b.imageType==null)b.imageType="image/png";if(b.fileName==null)b.fileName="signature.png";a=a.firstChild.toDataURL(b.imageType);b.data=String(a);pui.
|
|
484
|
+
pui.uploadSignature=function(b){var a=Ab(b.signaturePadId);if(!(a==null||a.firstChild==null)){if(b.imageType==null)b.imageType="image/png";if(b.fileName==null)b.fileName="signature.png";a=a.firstChild.toDataURL(b.imageType);b.data=String(a);pui.Hz(b,b.handler)}};pui.errorTip=function(b,a,c){if(c==null)c=3E3;else if(c==0)c=null;if(typeof b=="string")b=Ab(b);pui.Gg=true;var e=b.H;if(e==null)e=new pui.dg(b);pui.Q(b,e.Ag());e.Yh(a);e.show(c);setTimeout(function(){pui.Gg=false},0)};
|
|
485
485
|
pui.expandAccordionSection=function(b,a){var c=Ab(b);c&&c.Ka&&typeof c.Ka.ve==="function"&&c.Ka.ve(a)};pui.runAttnProgram=function(){N=="dspf"&&pui.submitResponse({attn:"1"})};
|
|
486
486
|
pui.captureData=function(b,a){function c(g){for(var h=document.getElementsByTagName(g),l=0;l<h.length;l++){var n=h[l],m=n.name;if(m!=null&&m!=""){var r=n.value;n=n.type;if(g==="button"||n=="submit"||n==="reset"||n==="button")r="0";f[m]=r}}}function e(){c("input");c("button");c("select");c("textarea")}var f=b;if(typeof f==="object")e();else{f={};e();if(typeof b==="string"){if(a==null)a="1";f[b]=a}}return f};
|
|
487
487
|
pui.getAllScreenProps=function(b){if(b&&typeof b!="string")return false;if(!pui.Ud||!pui.Ud.layers)return false;for(var a=pui.Ud.layers,c=[],e=0;e<a.length;e++){for(var f=a[e].formats,g=0;g<f.length;g++){var h=f[g],l=h.name,n=h.data,m=h.metaData.screen;h=h.metaData.ref;var r={formatName:l};for(var p in m)p=="onload"||p=="onsubmit"||p=="onmessage"||(r[p]=pui.R(m[p],n,h));c.push(r)}if(b&&pui.Lb(b)===l)return r}if(b)return false;return c};
|
|
488
488
|
pui.getScreenProp=function(b,a){if(!b||typeof b!="string")return false;var c=pui.getAllScreenProps();if(!c)return false;if(a)b=pui.Lb(b);else{a=b;b=Zc();if(b.length>1)b=b[b.length-1]}a=a.toLowerCase();var e;if(c.length>1)for(var f=0;f<c.length;f++){if(c[f].formatName==b){e=c[f];break}}else e=c[0];return e&&e[a]?e[a]:false};
|
|
489
|
-
pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routineFunction=
|
|
489
|
+
pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routineFunction=ta(false);try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[b]+"\r\n}")}catch(e){console.error(e)}if(pui.routineFunction()===false)return}pui.Ma=b;pui.Sc=a;pui.Rc=c;pui.click()};pui.cv=function(){var b={},a={},c=this,e;this.init=function(){if(e==null)e=document.getElementsByTagName("head")[0]};this.Rv=function(f){if(typeof f=="string"){f=Kb(f);if(f!="")if(b[f]==null){var g=document.createElement("link");g.setAttribute("rel","stylesheet");g.setAttribute("type","text/css");g.setAttribute("media","screen");g.setAttribute("href",pui.normalizeURL(f));b[f]=g;e.appendChild(g)}}};this.wr=function(f,g,h){if(typeof f!="string")return false;f=Kb(f);if(f=="")return false;if(a[f]!=null)return false;
|
|
490
490
|
if(h==true)return true;var l=false,n=document.createElement("script");n.type="text/javascript";n.onreadystatechange=function(){if(n.readyState=="complete"||n.readyState=="loaded"){!l&&g!=null&&g();l=true}};n.onload=function(){!l&&g!=null&&g();l=true};a[f]=n;n.src=pui.normalizeURL(f);e.appendChild(n);return true};this.load=function(f){var g;c.init();var h=null,l;if(f!=null){l=false;h=f.metaData.screen}else{l=true;h=Hb.designer.eq[Hb.designer.Oa.vb]}var n={},m=1;g=h["external css"];for(l||(g=pui.R(g,
|
|
491
491
|
f.data,f.ref));g!=null;){n[g]=true;m++;g=h["external css "+m];l||(g=pui.R(g,f.data,f.ref))}m=[];for(g in b)n[g]!=true&&m.push(g);for(var r=0;r<m.length;r++){g=m[r];e.removeChild(b[g]);delete b[g]}for(g in n)c.Rv(g);var p=0;if(l!=true){m=1;for(g=pui.R(h["external javascript"],f.data,f.ref);g!=null;){if(c.wr(g,na(),true)){f.Pj=false;p++}m++;g=pui.R(h["external javascript "+m],f.data,f.ref)}if(p>0){m=1;for(g=pui.R(h["external javascript"],f.data,f.ref);g!=null;){c.wr(g,function(){p-=1;if(p==0){pui.onload!=
|
|
492
492
|
null&&typeof pui.onload=="function"&&pui.onload(f);if(pui.clientLogic){var s=h["initial routine"];if(s&&s.routine){s=s.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[s]+'\r\n}; \r\npui["routineFunction"]();')}catch(t){console.error(t)}}}s=h.onload;if(s!=null&&s!="")try{eval('var format = "'+h["record format name"]+'";');eval('var file = "'+f.file+'";');eval(s)}catch(w){pui.Fa(w,"Onload Error:\n")}if(h.onmessage&&f.msgInfo!=null){pui.message=f.msgInfo;try{eval('var message = pui["message"];');
|
|
@@ -500,51 +500,51 @@ E.offsetLeft;y+=E.offsetTop;w=E.parentNode;if(w!=t.b){x+=w.offsetLeft;y+=w.offse
|
|
|
500
500
|
pui.dg.prototype.destroy=function(){this.J.removeEventListener("mousedown",this);this.rb.removeEventListener("mousedown",this);this.rb.removeEventListener("mouseup",this);this.rb.removeEventListener("click",this);this.J.removeChild(this.rb);this.J.removeChild(this.Gc);this.J.parentNode.removeChild(this.J);this.Lc()};
|
|
501
501
|
function fd(b){var a=b.J!=null;if(a){b.rb.removeEventListener("mousedown",b);b.rb.removeEventListener("mouseup",b);b.rb.removeEventListener("click",b);b.rb.parentNode.removeChild(b.rb);b.rb=null;b.Gc.parentNode.removeChild(b.Gc);b.Gc=null;b.J.removeEventListener("mousedown",b);b.J.parentNode.removeChild(b.J);b.J=null}b.J=document.createElement("div");b.J.classList.add("pui-tip");if(b.Vb=="top")b.J.classList.add("pui-tip-top");else if(b.Vb=="bottom")b.J.classList.add("pui-tip-bottom");else b.Vb=="left"?
|
|
502
502
|
b.J.classList.add("pui-tip-left"):b.J.classList.add("pui-tip-right");b.J.classList.add(b.Ai);b.J.style.position="absolute";b.Gc=document.createElement("div");b.Gc.className="pui-tip-content";b.rb=document.createElement("div");b.rb.className="pui-tip-close";b.rb.addEventListener("mousedown",b);b.rb.addEventListener("mouseup",b);b.rb.addEventListener("click",b);b.J.addEventListener("mousedown",b);if(!a){b.J.style.display="none";b.J.style.visibility="hidden"}b.J.appendChild(b.Gc);b.J.appendChild(b.rb);
|
|
503
|
-
b.b.appendChild(b.J)}pui.dg.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.rb)this.rb.className="pui-tip-close-click";ub(b);return false;case "mouseup":this.rb.className="pui-tip-close";break;case "click":this.J.style.display="none";this.J.style.visibility="hidden";this.Ic=0;break;case "scroll":break}};function jd(b){function a(){if(!(U
|
|
503
|
+
b.b.appendChild(b.J)}pui.dg.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.rb)this.rb.className="pui-tip-close-click";ub(b);return false;case "mouseup":this.rb.className="pui-tip-close";break;case "click":this.J.style.display="none";this.J.style.visibility="hidden";this.Ic=0;break;case "scroll":break}};function jd(b){function a(){if(!(Ea&&U)){w=true;setTimeout(m,200)}}function c(ca){pa=true;ca=ca||window.event;var ma=ca.keyCode;if((ma==38||ma==40)&&J.style.display=="block"){var za;if(ma==38)za=ea!=null?ea-1:P.length-1;else if(ma==40)za=ea!=null?ea+1:0;if(za<0||za>=P.length)za=null;g(za,true);ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}else if(ma==9&&ea!=null)r();else if(ma==9&&ea==null&&pui["autocomplete tab selects"]==
|
|
504
504
|
true){ea=0;r()}else if(ma==13){if((ma=J.style.display=="block")&&J.children.length==1&&J.children[0].textContent.toUpperCase()===ca.currentTarget.value.toUpperCase()){ea=0;r();m();return true}if(ma&&ea!=null){r();m();ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}else{m();if(ma){ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}}}}
|
|
505
|
-
function e(ca){
|
|
505
|
+
function e(ca){pa=false;ca=ca||window.event;ca=ca.keyCode;if(!(ha.readOnly||ha.disabled))if(Kb(ha.value)==""){if(oa)oa.value="";m()}else if(ca==8||ca>=46&&ca<=90||ca>=96&&ca<=111||ca>=186&&ca<=222||(window.$z!=null||typeof window.orientation!=="undefined")&&(ca==0||ca==229))if(ha.value.replace(/ /g,"")!="")if(kb&&d)h(Ob(ha.value.toUpperCase()));else{clearTimeout(W);w=false;W=setTimeout(function(){l(Ob(ha.value))},Bb)}}function f(){if(!pa)if(Kb(ha.value)==""){if(oa)oa.value="";m()}else if(ha.value.replace(/ /g,
|
|
506
506
|
"")!="")if(kb&&d)h(Ob(ha.value.toUpperCase()));else{w=false;l(Ob(ha.value))}}function g(ca,ma){if(ea!=null&&J.childNodes!=null&&J.childNodes[ea]!=null){J.childNodes[ea].className=J.childNodes[ea].className.replace(" autocomplete-selected","");J.childNodes[ea].className=J.childNodes[ea].className.replace("autocomplete-selected","")}if(ca!=null){var za=J.childNodes[ca];za.className+=" autocomplete-selected";if(ma==true&&typeof za.scrollIntoView==="function"){var Ra=0;if(typeof window.pageYOffset=="number")Ra=
|
|
507
507
|
window.pageYOffset;else if(document.body&&document.body.scrollTop)Ra=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)Ra=document.documentElement.scrollTop;var Ta=0;if(self.innerHeight)Ta=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)Ta=document.documentElement.clientHeight;else if(document.body)Ta=document.body.clientHeight;Ta=Ra+Ta;var ob=za.offsetTop+za.parentNode.offsetTop,Sa=za.parentNode.parentNode;ob+=Sa.offsetTop;
|
|
508
|
-
if(Sa.parentNode!=null&&Sa.parentNode.grid!=null){ob+=Sa.parentNode.offsetHeight;ob+=Sa.parentNode.parentNode.offsetHeight}if(ob+za.offsetHeight>Ta||ob<Ra){ga=true;za.scrollIntoView(true);setTimeout(function(){ga=false},1)}if(
|
|
509
|
-
field2:Xa[ma][1]});else Xa[ma][0].toUpperCase().indexOf(ca)==0&&P.push({field1:Xa[ma][0],field2:Xa[ma][1]});if(P.length==0)m();else if(oa&&P.length==1&&ha.value.toUpperCase()==P[0][Y].toUpperCase()){oa.value=p(P[0],
|
|
510
|
-
if(Ca)for(var ma in Ca)if(!(Ca[ma]==null&&ma==="AUTH")){ca+="&";ca+=encodeURIComponent(ma)+"="+encodeURIComponent(Ca[ma])}if(pui["read db driven data as ebcdic"]!==true)ca+="&UTF8=Y";if(oa)
|
|
511
|
-
else{za=eval(za);P=za.results;if(N==="dspf"&&typeof za.valueField==="string"){
|
|
512
|
-
!pui.is_quirksmode)ma-=2;if(
|
|
508
|
+
if(Sa.parentNode!=null&&Sa.parentNode.grid!=null){ob+=Sa.parentNode.offsetHeight;ob+=Sa.parentNode.parentNode.offsetHeight}if(ob+za.offsetHeight>Ta||ob<Ra){ga=true;za.scrollIntoView(true);setTimeout(function(){ga=false},1)}if(Ea&&za.offsetTop>C&&!ga){ga=true;za.scrollIntoView(true);setTimeout(function(){ga=false},1)}}}ea=ca}function h(ca){if(oa)oa.value="";if(ca!=""){cb({results:[{field1:""}]});P=[];for(var ma=0;ma<Xa.length;ma++)if(b.zw)Xa[ma][0].toUpperCase().indexOf(ca)!=-1&&P.push({field1:Xa[ma][0],
|
|
509
|
+
field2:Xa[ma][1]});else Xa[ma][0].toUpperCase().indexOf(ca)==0&&P.push({field1:Xa[ma][0],field2:Xa[ma][1]});if(P.length==0)m();else if(oa&&P.length==1&&ha.value.toUpperCase()==P[0][Y].toUpperCase()){oa.value=p(P[0],ra);m()}else n()}}function l(ca){if(ca=="")m();else if(!(rb&&rb(Ca,ca)==false)){da=null;ca=encodeURIComponent(gb)+"="+encodeURIComponent(ca);if(eb!=null)ca+="&limit="+eb;if((eb==null||eb=="")&&pui["Default Auto Complete Max Choices"]!=null)ca+="&limit="+encodeURIComponent(pui["Default Auto Complete Max Choices"]);
|
|
510
|
+
if(Ca)for(var ma in Ca)if(!(Ca[ma]==null&&ma==="AUTH")){ca+="&";ca+=encodeURIComponent(ma)+"="+encodeURIComponent(Ca[ma])}if(pui["read db driven data as ebcdic"]!==true)ca+="&UTF8=Y";if(oa)Ia+=1;ma=Ca.AUTH?new pui.Ajax(pui.mf(La)):new pui.Ajax(La);ma.method="post";ma.async=true;ma.suppressAlert=true;ma.postData=ca;ma.sequence=ba;ma.onready=function(za){if(oa)Ia-=1;if(za.sequence!=null){if(za.sequence<ba)return;ba++}if(za=Ib(za,"Generate Auto-Complete Suggestions"))if(Kb(ha.value)=="")m();else if(w)m();
|
|
511
|
+
else{za=eval(za);P=za.results;if(N==="dspf"&&typeof za.valueField==="string"){ra=za.valueField;oa={value:""};ha.Hd=oa}if((ra==null||Y==null)&&P!=null&&P.length>0)for(var Ra in P[0]){if(ra==null)ra=Ra;if(Y==null)Y=Ra}if(oa&&P!=null&&P.length==1&&ha.value.toUpperCase()==P[0][Y].toUpperCase())oa.value=p(P[0],ra);else if(oa)oa.value="";if(P!=null&&P.length>0){cb&&cb(za);n()}else m();hb&&pui.xf(hb,true,ha.id)}else hb&&pui.xf(hb,false,ha.id)};ma.send()}}function n(){var ca,ma=ha.offsetWidth;if(!pui.is_old_ie||
|
|
512
|
+
!pui.is_quirksmode)ma-=2;if(bb==null||bb<ma)bb=ma;J.style.width=bb+"px";ma=P;if(b.cs){ma=[];var za=false;for(ca=0;ca<b.cs.length;ca++){var Ra=ha.value,Ta=kb[ca];if(Ra!==null&&Ta!==null){Ta=Ta.substr(0,Ra.length);Ra=Ra.toUpperCase();Ta=Ta.toUpperCase()}if(Ra==Ta){ma.push(b.cs[ca]);za=true}else if(za)break}}if(!xb){var ob;for(ca in ma[0]){ob=ca;break}xb='<div class="autocomplete-item">('+ob+")</div>"}J.innerHTML="";for(ca=0;ca<ma.length;ca++){ob=xb;for(var Sa in ma[ca])ob=ob.replace("("+Sa+")",ma[ca][Sa]);
|
|
513
513
|
J.innerHTML+=ob;J.lastChild.setAttribute("recordIndex",String(ca))}for(ca=0;ca<J.childNodes.length;ca++)J.childNodes[ca].addEventListener("mousemove",s,false);J.style.display="block";ca=ha;x=ha.offsetTop;E=ha.offsetLeft;if(ha.parentNode!=null&&ha.parentNode.l){x=ha.parentNode.offsetTop;E=ha.parentNode.offsetLeft;ca=ha.parentNode}Sa=ca.parentNode;if(Sa.parentNode.grid){x+=Sa.offsetTop;E+=Sa.offsetLeft;Sa=Sa.parentNode;x+=Sa.offsetTop;E+=Sa.offsetLeft;Sa=Sa.parentNode}if(Sa.getAttribute("container")==
|
|
514
|
-
"true"){Sa=pui.layout.Df(Sa);x+=Sa.y;E+=Sa.x}if(N=="genie")if(ca.parentNode.layerInfo){x+=ca.parentNode.offsetTop+ca.parentNode.clientTop;E+=ca.parentNode.offsetLeft+ca.parentNode.clientLeft}x+=ha.offsetHeight;x+=
|
|
515
|
-
x+3+"px";z.style.left=E-4+"px";z.style.width=
|
|
516
|
-
6)D.style.height=J.offsetHeight-6+"px";if(J.offsetHeight>=6)Q.style.top=J.offsetHeight-6+"px";Q.style.right="0px";Q.style.height="6px";Q.style.width="6px";z.style.display="block"}}function m(){if(J!=null)J.style.display="none";if(lb)z.style.display="none";P=[];ea=null}function r(){if(ea!=null){for(var ca in P[ea]){ha.value=P[ea][ca];break}da=P[ea];if(oa!=null)if(P[ea]!=null)oa.value=p(P[ea],
|
|
517
|
-
ma(da,ha)}catch(za){pui.Fa(za,"Onselect error:\n")}}}function p(ca,ma){var za=ca[ma];if(za==null)for(var Ra in ca)za=ca[Ra];return za}function s(ca){if(!ga){ca=ca||window.event;ca=ca.target||ca.srcElement;var ma=ca.getAttribute("recordIndex");if(ma==""||ma==null){ca=ca.parentNode;ma=ca.getAttribute("recordIndex");if(ma==""||ma==null)return}g(Number(ma))}}function t(ca){if(
|
|
518
|
-
var w=false,y=this,x,E,J,z,G,D,
|
|
519
|
-
|
|
520
|
-
Kb(d[
|
|
521
|
-
|
|
522
|
-
if(b.Ht!=null)hb=b.Ht;if(typeof b.template!="undefined")xb=b.template;Bb=typeof b.typeAheadDelay==="number"?b.typeAheadDelay:200;if(typeof b.ru!="undefined"&&typeof b.maxHeight!="undefined"&&b.maxHeight!=null){Aa=b.ru;
|
|
523
|
-
0);if(!t(ca)){r();m()}},false);J.addEventListener("mouseup",function(){
|
|
524
|
-
fa+"shadow-side.png) repeat-y scroll";z.appendChild(G);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+fa+"shadow.png) no-repeat scroll 0px -12px";z.appendChild(K);
|
|
525
|
-
"0px";D.style.margin="0px";D.style.position="absolute";D.style.background="transparent url("+fa+"shadow-side.png) repeat-y scroll -6px";z.appendChild(D);Q=document.createElement("div");Q.style.padding="0px";Q.style.margin="0px";Q.style.position="absolute";Q.style.background="transparent url("+fa+"shadow.png) no-repeat scroll 0px -6px";z.appendChild(Q);
|
|
526
|
-
f,false);if(!Array.isArray(pui.oe)||pui.oe.length==0){window.addEventListener("resize",pui.Lr,false);pui.oe=[]}pui.oe.push(y);pui.Ug.push(y);this.yu=function(ca){xb=ca};this.ej=function(){return J.style.display=="block"};this.setWidth=function(ca){
|
|
527
|
-
1);break}pui.oe.length==0&&window.removeEventListener("resize",pui.Lr);y=this.destroy=hb=Xa=d=kb=
|
|
514
|
+
"true"){Sa=pui.layout.Df(Sa);x+=Sa.y;E+=Sa.x}if(N=="genie")if(ca.parentNode.layerInfo){x+=ca.parentNode.offsetTop+ca.parentNode.clientTop;E+=ca.parentNode.offsetLeft+ca.parentNode.clientLeft}x+=ha.offsetHeight;x+=xa;E+=Ba;ca=pui.Ss();if(x-ca+J.offsetHeight>pui.getWindowSize().height){Sa=x-J.offsetHeight-ha.offsetHeight-3;if(Sa-ca>=0)x=Sa}J.style.top=x+"px";J.style.left=E+"px";if(Aa){J.style.height="";Ea=false;if(J.clientHeight>C){J.style.height=String(C)+"px";Ea=true}J.style.overflowY="auto"}if(lb){z.style.top=
|
|
515
|
+
x+3+"px";z.style.left=E-4+"px";z.style.width=bb+10+"px";z.style.height=J.offsetHeight+2+"px";G.style.top="0px";G.style.left="0px";G.style.width="6px";if(J.offsetHeight>=6)G.style.height=J.offsetHeight-6+"px";if(J.offsetHeight>=6)K.style.top=J.offsetHeight-6+"px";K.style.left="0px";K.style.height="6px";K.style.width="6px";if(J.offsetHeight>=6)B.style.top=J.offsetHeight-6+"px";B.style.left="6px";B.style.height="6px";B.style.width=bb-2+"px";D.style.top="0px";D.style.right="0px";D.style.width="6px";if(J.offsetHeight>=
|
|
516
|
+
6)D.style.height=J.offsetHeight-6+"px";if(J.offsetHeight>=6)Q.style.top=J.offsetHeight-6+"px";Q.style.right="0px";Q.style.height="6px";Q.style.width="6px";z.style.display="block"}}function m(){if(J!=null)J.style.display="none";if(lb)z.style.display="none";P=[];ea=null}function r(){if(ea!=null){for(var ca in P[ea]){ha.value=P[ea][ca];break}da=P[ea];if(oa!=null)if(P[ea]!=null)oa.value=p(P[ea],ra);if(pb)if(pui.dc(b.Gt))pui.runLogic(b.Gt.routine,ha.o,ha.fk);else try{var ma=eval(pb);typeof ma=="function"&&
|
|
517
|
+
ma(da,ha)}catch(za){pui.Fa(za,"Onselect error:\n")}}}function p(ca,ma){var za=ca[ma];if(za==null)for(var Ra in ca)za=ca[Ra];return za}function s(ca){if(!ga){ca=ca||window.event;ca=ca.target||ca.srcElement;var ma=ca.getAttribute("recordIndex");if(ma==""||ma==null){ca=ca.parentNode;ma=ca.getAttribute("recordIndex");if(ma==""||ma==null)return}g(Number(ma))}}function t(ca){if(Ea&&V!=null&&J.offsetWidth!=null){var ma=ca.currentTarget.getBoundingClientRect().right-V;if(pui.Mo(ca)>ma)return true}return false}
|
|
518
|
+
var w=false,y=this,x,E,J,z,G,D,B,K,Q,Y,ea=null,P=[],W,oa,da,ga=false,Aa=false,Ea=false,V=function(){var ca=document.createElement("div");ca.style.overflow="scroll";ca.style.visibility="hidden";ca.style.position="absolute";document.body.appendChild(ca);ca.style.height="50px";ca.style.width="50px";var ma=document.createElement("div");ma.style.height="1px";ca.appendChild(ma);ma=ma.offsetWidth;var za=ca.offsetWidth;ca.parentElement.removeChild(ca);return za-ma}(),C=null,U=false,pa=false,la,ha,La,ra,xa,
|
|
519
|
+
Ba,ya,bb,Ca,gb,eb,lb,xb,Bb,pb,rb,cb,kb,d,Xa,hb,ba=0;La=b.url;ra=b.valueField;ha=typeof b.wq=="object"?b.wq:document.getElementById(b.wq);ha.setAttribute("autocomplete","off");la=b.b?b.b:ha.parentNode;if(N=="genie"){ha.setAttribute("fieldLength",ha.getAttribute("maxLength"));ha.setAttribute("maxLength","133")}if(b.choices&&b.values){ya=false;var fa=Kb(ha.value);Xa=[];kb=b.choices;d=b.values;for(var qa=0;qa<d.length;qa++)if(kb[qa]!=null){Xa[Xa.length]=[];Xa[Xa.length-1][0]=Kb(kb[qa]);Xa[Xa.length-1][1]=
|
|
520
|
+
Kb(d[qa]);if(!ya&&fa!="")if(fa==Kb(d[qa])){ha.value=Kb(kb[qa]);ya=ha.Mr=true}}Xa.sort(function(ca,ma){return ca[0].toUpperCase()<ma[0].toUpperCase()?-1:1});Y="field1";ra="field2"}if(ra){if(N=="genie"){ya=ha.getAttribute("name");ha.removeAttribute("name");try{oa=document.createElement('<input name="'+ya+'" />')}catch(Fa){oa=document.createElement("input");oa.name=ya}oa.type="hidden";oa.value=ha.value;oa.Uz=ha;if(ha.C!=null){ha.setAttribute("fieldRow",ha.C.row);ha.setAttribute("fieldCol",ha.C.col);
|
|
521
|
+
ya=ha.C.idx;oa.C=ha.C;pui.response[ya]=oa;ha.C=null}document.forms.main.appendChild(oa)}if(N=="dspf"){oa={value:""};ha.Hd=oa}}xa=b.Dz?b.Dz:0;Ba=b.Ox?b.Ox:0;ya=b.zIndex?b.zIndex:1E5;if(typeof b.width!="undefined")bb=b.width;if(b.baseParams)Ca=b.baseParams;gb=b.ey?b.ey:"query";if(typeof b.yl!="undefined")eb=b.yl;lb=typeof b.shadow!="undefined"&&b.shadow==false?false:true;if(typeof b.beforequery=="function")rb=b.beforequery;if(typeof b.onload=="function")cb=b.onload;if(b.onselect!=null)pb=b.onselect;
|
|
522
|
+
if(b.Ht!=null)hb=b.Ht;if(typeof b.template!="undefined")xb=b.template;Bb=typeof b.typeAheadDelay==="number"?b.typeAheadDelay:200;if(typeof b.ru!="undefined"&&typeof b.maxHeight!="undefined"&&b.maxHeight!=null){Aa=b.ru;C=b.maxHeight}J=document.createElement("div");J.style.display="none";J.style.margin="0px";J.style.padding="0px";J.style.position="absolute";J.style.zIndex=ya;J.className="autocomplete-results "+Kb(ha.id)+"-autocomplete-results";J.addEventListener("mousedown",function(ca){U=true;setTimeout(function(){ha.focus()},
|
|
523
|
+
0);if(!t(ca)){r();m()}},false);J.addEventListener("mouseup",function(){U=false},false);la.appendChild(J);if(lb){fa="";if(Ga=="ON")fa="https://"+HTTP_HOST;fa+=pui.normalizeURL("/profoundui/proddata/images/");z=document.createElement("div");z.style.display="none";z.style.padding="0px";z.style.margin="0px";z.style.position="absolute";z.style.zIndex=ya-1;z.style.fontSize="0px";G=document.createElement("div");G.style.padding="0px";G.style.margin="0px";G.style.position="absolute";G.style.background="transparent url("+
|
|
524
|
+
fa+"shadow-side.png) repeat-y scroll";z.appendChild(G);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+fa+"shadow.png) no-repeat scroll 0px -12px";z.appendChild(K);B=document.createElement("div");B.style.padding="0px";B.style.margin="0px";B.style.position="absolute";B.style.background="transparent url("+fa+"shadow.png) repeat-x scroll 0px -36px";z.appendChild(B);D=document.createElement("div");D.style.padding=
|
|
525
|
+
"0px";D.style.margin="0px";D.style.position="absolute";D.style.background="transparent url("+fa+"shadow-side.png) repeat-y scroll -6px";z.appendChild(D);Q=document.createElement("div");Q.style.padding="0px";Q.style.margin="0px";Q.style.position="absolute";Q.style.background="transparent url("+fa+"shadow.png) no-repeat scroll 0px -6px";z.appendChild(Q);la.appendChild(z)}ha.addEventListener("keyup",e,false);ha.addEventListener("keydown",c,false);ha.addEventListener("blur",a,false);ha.addEventListener("input",
|
|
526
|
+
f,false);if(!Array.isArray(pui.oe)||pui.oe.length==0){window.addEventListener("resize",pui.Lr,false);pui.oe=[]}pui.oe.push(y);pui.Ug.push(y);this.yu=function(ca){xb=ca};this.ej=function(){return J.style.display=="block"};this.setWidth=function(ca){bb=ca};this.wA=function(){return da};this.destroy=function(){if(ha){ha.removeEventListener("keyup",e);ha.removeEventListener("keydown",c);ha.removeEventListener("blur",a);ha.removeEventListener("input",f)}for(var ca=pui.oe.length-1;ca>=0;ca--)if(pui.oe[ca]===
|
|
527
|
+
this){pui.oe.splice(ca,1);break}pui.oe.length==0&&window.removeEventListener("resize",pui.Lr);y=this.destroy=hb=Xa=d=kb=cb=rb=pb=lb=Ca=ha=la=da=oa=W=P=ea=Y=Q=K=B=D=G=z=J=null};this.Wu=function(ca){La=ca};this.resize=function(){this.ej()&&n()}}
|
|
528
528
|
pui.Zv=function(b,a,c){var e,f,g=Yb(b["choices database file"],a,c),h=Yb(b["choice options field"],a,c),l=pui.Ah(h),n=Yb(b["choices url"],a,c);h=Yb(b["use choices url for reverse lookup"],a,c);h=n!=""&&h!=null&&(h=="true"||h==true)?true:false;var m=Yb(b["choice values field"],a,c),r=Yb(b["max choices"],a,c);e=Yb(b["contains match"])=="true";var p=Yb(b.choices,a,c);p=pui.ha(p);if(p.length==0)p=[""];var s=Yb(b["choice values"],a,c);if(s==""){s=[];for(f=0;f<p.length;f++)s.push(p[f])}else s=pui.ha(s);
|
|
529
529
|
if(s.length==0)s=[""];var t=Kb(Yb(b["results template"],a,c));if(t=="")t=null;if(g!=""&&l[0]!=""||n!=""||p.length>0&&p[0]!=""&&s[0]!=""){f=Yb(b.onselect,a,c);var w;if(f!=null&&f!=""){w=f;f=w.indexOf("(");if(f!=-1)if(w.substr(f+1,1)==")")w=w.substr(0,f)}var y=Yb(b.ondbload,a,c);if(typeof y!="string"||y=="")y=null;var x={};if(pui.isCloud)x.workspace_id=pui.cloud.ws.id;if(pui.ba)x.AUTH=pui.ba;else if(n==""||!pui.oj){x.AUTH=pui.appJob.auth;if(typeof pui.vId!=="undefined")x.VID=pui.vId}if(n==""&&p[0]==
|
|
530
530
|
""&&s[0]==""){e=Yb(b["contains match"],a,c)=="true";var E="SELECT DISTINCT ";for(f=0;f<l.length;f++){if(f!=0)E+=", ";E+=l[f]}if(m!="")E+=","+m;E+=" FROM "+g;E+=" WHERE UPPER("+l[0]+") LIKE '";if(e)E+="%";E+="!!QUERY!!%'";f=Yb(b["choices selection criteria"],a,c);if(f!="")E+=" AND ("+f+")";E+=" ORDER BY "+l[0]}if(c.Ab!=null&&c.Ab.destroy!=null){c.Ab.destroy();c.Ab=null}var J;if(N=="dspf"&&Eb())J=Hb.designer.b;else{for(f=c.parentNode;f;){if(f.Bc){J=f;break}f=f.parentNode}if(J==null)J=pui.runtimeContainer}var z=
|
|
531
|
-
function(D){D=Ob(D.replace(/\u00DF/g,"\u1e9e"));D=D.toUpperCase();return D=D.replace(/\u1E9E/g,"\u00df")},G=new jd({wq:c,url:n!=""?n:Vb("PUI0009102.PGM"),baseParams:x,b:J,zw:e,choices:p[0]!=""?p:null,values:s[0]!=""?s:null,yl:r!=""?r:null,template:t,onselect:w,Gt:b.onselect,Ht:y,typeAheadDelay:pui["autocomplete typeahead delay"],valueField:n==""&&p[0]==""&&s[0]==""&&m!=""&&m!=l[0]?m:null,beforequery:n==""&&p[0]==""&&s[0]==""?function(D,
|
|
532
|
-
a,c)=="uppercase"||c.N!=null&&c.N.textTransform=="uppercase")
|
|
533
|
-
document.createElement("div");
|
|
534
|
-
0;
|
|
531
|
+
function(D){D=Ob(D.replace(/\u00DF/g,"\u1e9e"));D=D.toUpperCase();return D=D.replace(/\u1E9E/g,"\u00df")},G=new jd({wq:c,url:n!=""?n:Vb("PUI0009102.PGM"),baseParams:x,b:J,zw:e,choices:p[0]!=""?p:null,values:s[0]!=""?s:null,yl:r!=""?r:null,template:t,onselect:w,Gt:b.onselect,Ht:y,typeAheadDelay:pui["autocomplete typeahead delay"],valueField:n==""&&p[0]==""&&s[0]==""&&m!=""&&m!=l[0]?m:null,beforequery:n==""&&p[0]==""&&s[0]==""?function(D,B){if(Yb(b["case sensitive"],a,c)=="true")if(Yb(b["text transform"],
|
|
532
|
+
a,c)=="uppercase"||c.N!=null&&c.N.textTransform=="uppercase")B=z(B);else{if(Yb(b["text transform"],a,c)=="lowercase"||c.N!=null&&c.N.textTransform=="lowercase")B=Ob(B.toLowerCase())}else B=z(B);if(B=="")return false;if(pui.secLevel>0){if(Yb(b["contains match"],a,c)=="true")B="%"+Kb(B)+"%";else B+="%";D.q=pui.ad(c);D.p1=B;pui.rd(b,D)}else{B=B.replace(/'/g,"''");D.q=pui.zb.vf(E.replace("!!QUERY!!",B))}}:null,onload:function(D){if(!t)if(c.fw!=null){c.Ln&&G.yu(c.Ln);c.Mn&&G.setWidth(c.Mn)}else{var B=
|
|
533
|
+
document.createElement("div");B.style.position="absolute";B.style.top="0px";B.style.left="0px";B.style.className="autocomplete-item";B.style.visibility="hidden";document.body.appendChild(B);var K='<div class="autocomplete-item">',Q=D.colWidths,Y=D.results[0],ea=0,P=0,W;for(var oa in Y){if(n==""&&ea==l.length)break;if(!(n!=""&&typeof D.valueField==="string"&&oa==D.valueField)){B.innerHTML="";K+='<div class="autocomplete-col" style="float: left; width: ';if(Q&&Q[ea])if(typeof Q[ea]=="number"){for(W=
|
|
534
|
+
0;W<Q[ea];W++)B.innerHTML+="a";K+=B.offsetWidth+5+'px;"';P+=B.offsetWidth+5}else if(typeof Q[ea]=="string"){K+=Q[ea]+';"';W=Number(Q[ea].replace("px",""));isNaN(W)||(P+=W)}else{K+='100px"';P+=100}else{K+='100px"';P+=100}K+=">("+oa+")</div>";ea++}}K+="</div>";c.Ln=K;c.Mn=P+20;c.fw=true;G.setWidth(c.Mn);G.yu(c.Ln);document.body.removeChild(B)}},shadow:pui.is_old_ie&&pui.ie_mode<=6?false:true,ru:true,maxHeight:isNaN(parseInt(Yb(b["max height"],a,c)))?null:parseInt(Yb(b["max height"],a,c))});c.Ab=G;if((h||
|
|
535
535
|
n==""&&l[0]!=""&&m!=""&&m!=l[0])&&c.value!=""){w=new pui.Ajax(n!=""?n:Vb("PUI0009102.PGM"));w.method="post";w.async=true;w.suppressAlert=true;if(pui.ba)w.postData="AUTH="+pui.ba;else{w.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")w.postData+="&VID="+pui.vId}if(h)w.postData+="&reverse=1&value="+encodeURIComponent(Ob(c.value));else if(pui.secLevel>0){w.postData+="&q="+encodeURIComponent(pui.ad(c))+".reverse";w.postData+="&p1="+encodeURIComponent(Ob(c.value));g=pui.rd(b);if(g!="")w.postData+=
|
|
536
|
-
"&"+g}else{f=Yb(b["choices selection criteria"],a,c);g="SELECT "+l[0]+" FROM "+g+" WHERE "+m+" = '"+Ob(c.value).replace("'","''")+"'";if(f!="")g+=" AND ("+f+")";w.postData+="&q="+pui.zb.vf(g)}w.postData+="&limit=1";if(pui.isCloud)w.postData+="&workspace_id="+pui.cloud.ws.id;w.onready=function(D){
|
|
537
|
-
c.value=D[
|
|
538
|
-
a=false;c++}a==true&&c++;return c}pui.
|
|
536
|
+
"&"+g}else{f=Yb(b["choices selection criteria"],a,c);g="SELECT "+l[0]+" FROM "+g+" WHERE "+m+" = '"+Ob(c.value).replace("'","''")+"'";if(f!="")g+=" AND ("+f+")";w.postData+="&q="+pui.zb.vf(g)}w.postData+="&limit=1";if(pui.isCloud)w.postData+="&workspace_id="+pui.cloud.ws.id;w.onready=function(D){Ia-=1;if(D=Ib(D,"Generate Auto-Complete Suggestions.")){var B;D=D.results[0];for(var K in D){B=K;break}if(B==null){if(pui["force auto complete match"]!==false)c.value=""}else{if(c.Hd!=null)c.Hd.value=c.value;
|
|
537
|
+
c.value=D[B]}}else if(pui["force auto complete match"]!==false)c.value=""};Ia+=1;w.send()}}};pui.Lr=function(){for(var b=0,a=pui.oe.length;b<a;b++)pui.oe[b].resize()};function md(b){for(var a=false,c=0,e=0;e<b.length;e++)if((b.charCodeAt(e)>=19968&&b.charCodeAt(e)<=40959||b.charCodeAt(e)>=19968&&b.charCodeAt(e)<=40895||b.charCodeAt(e)>=12352&&b.charCodeAt(e)<=12447||b.charCodeAt(e)>=12448&&b.charCodeAt(e)<=12543||b.charCodeAt(e)>=44032&&b.charCodeAt(e)<=55203||b.charCodeAt(e)>=4352&&b.charCodeAt(e)<=4607||b.charCodeAt(e)>=12593&&b.charCodeAt(e)<=12686||b.charCodeAt(e)>=65441&&b.charCodeAt(e)<=65500?true:false)==true){a==false&&c++;a=true;c+=2}else{a==true&&c++;
|
|
538
|
+
a=false;c++}a==true&&c++;return c}pui.nA=md;function nd(b){this.toString=function(){return"INVALID: "+this.message};this.message=b}
|
|
539
539
|
function od(b){this.hh[0][0][0]||this.Fv();var a,c,e,f,g=this.hh[0][4],h=this.hh[1];a=b.length;var l=1;if(a!==4&&a!==6&&a!==8)throw new nd("invalid key size");this.Bv=[e=b.slice(0),f=[]];for(b=a;b<4*a+28;b++){c=e[b-1];if(b%a===0||a===8&&b%a===4){c=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[c&255];if(b%a===0){c=c<<8^c>>>24^l<<24;l=l<<1^(l>>7)*283}}e[b]=e[b-a]^c}for(a=0;b;a++,b--){c=e[a&3?b:b-4];f[a]=b<=4||a<4?c:h[0][g[c>>>24]]^h[1][g[c>>16&255]]^h[2][g[c>>8&255]]^h[3][g[c&255]]}}
|
|
540
540
|
od.prototype={Mw:function(b){return this.sv(b,0)},hh:[[[],[],[],[],[]],[[],[],[],[],[]]],Fv:function(){var b=this.hh[0],a=this.hh[1],c=b[4],e=a[4],f,g,h,l=[],n=[],m,r,p,s;for(f=0;f<256;f++)n[(l[f]=f<<1^(f>>7)*283)^f]=f;for(g=h=0;!c[g];g^=m||1,h=n[h]||1){p=h^h<<1^h<<2^h<<3^h<<4;p=p>>8^p&255^99;c[g]=p;e[p]=g;r=l[f=l[m=l[g]]];s=r*16843009^f*65537^m*257^g*16843008;r=l[p]*257^p*16843008;for(f=0;f<4;f++){b[f][g]=r=r<<24^r>>>8;a[f][p]=s=s<<24^s>>>8}}for(f=0;f<5;f++){b[f]=b[f].slice(0);a[f]=a[f].slice(0)}},
|
|
541
541
|
sv:function(b,a){if(b.length!==4)throw new nd("invalid block size");var c=this.Bv[a],e=b[0]^c[0],f=b[a?3:1]^c[1],g=b[2]^c[2],h=b[a?1:3]^c[3],l,n,m,r=c.length/4-2,p,s=4,t=[0,0,0,0];l=this.hh[a];var w=l[0],y=l[1],x=l[2],E=l[3],J=l[4];for(p=0;p<r;p++){l=w[e>>>24]^y[f>>16&255]^x[g>>8&255]^E[h&255]^c[s];n=w[f>>>24]^y[g>>16&255]^x[h>>8&255]^E[e&255]^c[s+1];m=w[g>>>24]^y[h>>16&255]^x[e>>8&255]^E[f&255]^c[s+2];h=w[h>>>24]^y[e>>16&255]^x[f>>8&255]^E[g&255]^c[s+3];s+=4;e=l;f=n;g=m}for(p=0;p<4;p++){t[a?3&-p:
|
|
542
542
|
p]=J[e>>>24]<<24^J[f>>16&255]<<16^J[g>>8&255]<<8^J[h&255]^c[s++];l=e;e=f;f=g;g=h;h=l}return t}};function pd(b){var a,c=[],e;b=b.replace(/\s|0x/g,"");e=b.length;b+="00000000";for(a=0;a<b.length;a+=8)c.push(parseInt(b.substr(a,8),16)^0);b=c;a=e*4;if(!(b.length*32<a)){b=b.slice(0,Math.ceil(a/32));e=b.length;a&=31;if(e>0&&a){c=b[e-1]&2147483648>>a-1;a=a===32?c:(c|0)+a*1099511627776;b[e-1]=a}}b=b;return b}pui.zb={};pui.zb.Xv="if(a.c=='genie'){h.g=true;a.x++}";
|
|
543
543
|
pui.zb.Nw=function(b){var a=pd(pui.zb.ts(pui.zb.Xv,2));a=new od(a);b=pd(b);a=b=a.Mw(b);b="";var c;for(c=0;c<a.length;c++)b+=((a[c]|0)+263882790666240).toString(16).substr(4);c=a.length;a=c===0?0:(c-1)*32+(Math.round(a[c-1]/1099511627776)||32);return b=b.substring(0,a/4)};
|
|
544
544
|
pui.zb.Ow=function(b,a){var c;if(b.length%4!=0)return"";for(;b.length%32!=0;)b+="0020";if(a){var e="";for(c=0;c<b.length;c+=2){e+=b.substr(c,2);e+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)];e+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)]}b=e}e="";for(c=0;c<b.length;c+=32){var f=b.substr(c,32);e+=pui.zb.Nw(f)}return e};
|
|
545
|
-
pui.zb.ts=function(b,a){for(var c="",e=b.length,f=0,g;f<e;){for(g=b.charCodeAt(f++).toString(16);g.length<a;)g="0"+g;c+=g}return c};pui.zb.vf=function(b){b=pui.zb.ts(b,4);return pui.zb.Ow(b,true).toUpperCase()};var qd=new (function(){function b(){pui.setCookie(c,JSON.stringify(f),null,"/",null,null,"Strict")}function a(){var g=pui.getCookie(c);if(g==null)f={};else try{f=JSON.parse(g)}catch(h){f={}}e=true}var c="GenieSession";if(N=="dspf")c="PUISession";var e=false,f={};this.jm=function(g,h){e||a();f[g]=h;b()};this.getValue=function(g,h){e||a();var l=f[g];if(l==null)l=h;if(l==null)l="";return l};this.clear=function(){f={};b()};this.
|
|
546
|
-
window.session=qd;window.session.saveValue=qd.jm;window.session.getValue=qd.getValue;window.session.clear=qd.clear;window.session.setValue=qd.setValue;window.session.set=qd.set;window.session.put=qd.
|
|
547
|
-
pui.Hm=null;pui.Ci=null;pui.gq=false;pui.um=[];pui.ia={};pui.ia.keys={};pui.cb=[];pui.Ug=[];pui.wl=[];pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null;pui.jo="false";pui.Qd=null;pui.Qj=null;pui.Cj=false;pui.qa=false;pui.Gf=false;pui.te=null;pui.we=null;pui.Pc=[];pui.activeElement=null;pui.Nn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Qe={};pui.Km=null;pui.dq=[];pui.Fj={};pui.Dc={payloads:[],responses:[]};pui.Bd=[];pui.pq=20;pui.
|
|
545
|
+
pui.zb.ts=function(b,a){for(var c="",e=b.length,f=0,g;f<e;){for(g=b.charCodeAt(f++).toString(16);g.length<a;)g="0"+g;c+=g}return c};pui.zb.vf=function(b){b=pui.zb.ts(b,4);return pui.zb.Ow(b,true).toUpperCase()};var qd=new (function(){function b(){pui.setCookie(c,JSON.stringify(f),null,"/",null,null,"Strict")}function a(){var g=pui.getCookie(c);if(g==null)f={};else try{f=JSON.parse(g)}catch(h){f={}}e=true}var c="GenieSession";if(N=="dspf")c="PUISession";var e=false,f={};this.jm=function(g,h){e||a();f[g]=h;b()};this.getValue=function(g,h){e||a();var l=f[g];if(l==null)l=h;if(l==null)l="";return l};this.clear=function(){f={};b()};this.yy=this.set=this.setValue=this.jm;this.get=this.getValue});
|
|
546
|
+
window.session=qd;window.session.saveValue=qd.jm;window.session.getValue=qd.getValue;window.session.clear=qd.clear;window.session.setValue=qd.setValue;window.session.set=qd.set;window.session.put=qd.yy;window.session.get=qd.get;pui.runtimeContainer=null;pui.cu=0;pui["refresh interval"]=null;pui.O={};pui.oh={};pui.Eh={};pui.xh={};pui.Z={};pui.$d={};pui.psid=null;pui.Qb=false;pui.ro=false;pui.W={};pui.Lg=null;pui.hd=1E3;pui.ud=null;pui.lp=null;pui.mp=null;pui.modified=false;pui.sf={};pui.Gg=false;pui.Ax=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.ub="";pui.Rl=null;pui.Ca={};pui.r={};pui.Pk={};pui.im={};pui.Fm={};pui.vm={};pui.sq={};pui.nb={};pui.Nk={};pui.Lm=null;pui.Jm=null;pui.Ul=true;
|
|
547
|
+
pui.Hm=null;pui.Ci=null;pui.gq=false;pui.um=[];pui.ia={};pui.ia.keys={};pui.cb=[];pui.Ug=[];pui.wl=[];pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null;pui.jo="false";pui.Qd=null;pui.Qj=null;pui.Cj=false;pui.qa=false;pui.Gf=false;pui.te=null;pui.we=null;pui.Pc=[];pui.activeElement=null;pui.Nn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Qe={};pui.Km=null;pui.dq=[];pui.Fj={};pui.Dc={payloads:[],responses:[]};pui.Bd=[];pui.pq=20;pui.uz=8;pui.leftOffset=140;pui.Ez=0;pui.Aj=27;
|
|
548
548
|
pui["vertical button spacing"]=33;pui["horizontal button spacing"]=90;pui["highlight on focus"]=false;pui["window mask color"]="#CCCCCC";pui["window mask opacity"]=50;pui["loading animation"]={};pui["loading animation"].path=pui.normalizeURL("/profoundui/proddata/images/loading.gif");pui["loading animation"]["default"]=pui["loading animation"].path;pui["loading animation"].left=10;pui["loading animation"].top=10;pui["loading animation"].width=16;pui["loading animation"].height=16;
|
|
549
549
|
pui["loading animation"].zIndex=250;pui["loading animation"].css="pui-animation";pui["auto tab"]=false;pui["enable arrow keys"]=false;pui["horizontal auto arrange"]=false;pui["buttons per row"]=1;pui["strict tab control"]=false;pui["prioritize onsubmit event"]=pui["prioritize onsubmit event"]?pui["prioritize onsubmit event"]:false;pui.wikihelp={};
|
|
550
550
|
pui.Zw={F1:1,F2:2,F3:3,F4:4,F5:5,F6:6,F7:7,F8:8,F9:9,F10:10,F11:11,F12:12,F13:13,F14:14,F15:15,F16:16,F17:17,F18:18,F19:19,F20:20,F21:21,F22:22,F23:23,F24:24,Enter:0};pui.Cn={F1:49,F2:50,F3:51,F4:52,F5:53,F6:54,F7:55,F8:56,F9:57,F10:58,F11:59,F12:60,F13:177,F14:178,F15:179,F16:180,F17:181,F18:182,F19:183,F20:184,F21:185,F22:186,F23:187,F24:188,"Pause/Break":189,Clear:189,Enter:241,"Alt-F1":243,Help:243,PageUp:244,PageDown:245,Print:246,RecordBackspace:248,AutoEnter:63};
|
|
@@ -552,17 +552,17 @@ pui.Wt=function(b){b=b.metaData.items;for(var a=0;a<b.length;a++){var c=b[a],e=c
|
|
|
552
552
|
"PR"||c[g]=="PR-UL")e=true}e||(c[g]="PR")}}};
|
|
553
553
|
pui.Fw=function(b,a,c,e){var f,g;switch(b){case "*END":g=e;b=27;break;case "*ALL":g=1;b=27;break;case "*NO":b=g=0;break;default:b=parseInt(b);if(isNaN(b))b=0;g=e;b=e+b-1}if(c==null)c="";e=c.split("-");if(e.length!=2)e=c=0;else{c=parseInt(e[0]);if(isNaN(c))c=0;e=parseInt(e[1]);if(isNaN(e))e=0}var h=null,l=a.metaData.items;for(a=0;a<l.length;a++){f=l[a];var n=f["cursor row"];if(n!=null&&n!=""){n=parseInt(n);if(!isNaN(n)&&n>0){if(n>=g&&n<=b){f.visibility="hidden";if(f.grid!=null)h=f.grid}if(n>=c&&n<=
|
|
554
554
|
e&&pui["clear overlapped lines"]!=false){f.visibility="hidden";if(f.grid!=null)h=f.grid}}}}if(h!=null)for(a=0;a<l.length;a++){f=l[a];if(f["field type"]=="grid"&&f.id==h)f.visibility="hidden";if(f["field type"]=="image"&&f.id==h+"_expander")f.visibility="hidden"}};
|
|
555
|
-
pui.
|
|
555
|
+
pui.Cy=function(b,a){if(b==null)return false;if(a==null)return false;var c=b.split("-"),e=a.split("-");if(c.length!=2)return false;if(e.length!=2)return false;var f=parseInt(c[0]);c=parseInt(c[1]);var g=parseInt(e[0]);e=parseInt(e[1]);if(isNaN(f))return false;if(isNaN(c))return false;if(isNaN(g))return false;if(isNaN(e))return false;var h=(f+c)/2,l=(g+e)/2;if(h>=g&&h<=e)return true;if(l>=f&&l<=c)return true;return false};
|
|
556
556
|
pui.cy=function(b){function a(t,w,y){for(var x=y,E=1;w[x]!=null&&w[x]!="";){if(w[x]===t)return true;E++;x=y+" "+E}return false}var c,e,f,g,h,l,n=null,m=null;if(b.length>1)for(g=0;g<b.length;g++){f=b[g];if(pui.R(f.metaData.screen.protect,f.data,f.ref)=="true")for(h=0;h<g;h++)pui.Wt(b[h]);var r=f.metaData.screen["clear line"];if(r!=null&&r!=""){c=f.metaData.screen["overlay range"];var p=f.metaData.screen["starting line"];if(p==null)p=c!=null?c.split("-")[0]:"1";p=parseInt(p);if(isNaN(p)||p<1)p=1;var s=
|
|
557
|
-
false;e=f.metaData.items;for(h=0;h<e.length;h++){l=e[h];l=l["field type"];if(l=="checkbox"||l=="combo box"||l=="date field"||l=="password field"||l=="radio button"||l=="select box"||l=="spinner"|l=="text area"||l=="textbox"){s=true;break}}for(h=0;h<g;h++){pui.Fw(r,b[h],c,p);s&&pui.
|
|
557
|
+
false;e=f.metaData.items;for(h=0;h<e.length;h++){l=e[h];l=l["field type"];if(l=="checkbox"||l=="combo box"||l=="date field"||l=="password field"||l=="radio button"||l=="select box"||l=="spinner"|l=="text area"||l=="textbox"){s=true;break}}for(h=0;h<g;h++){pui.Fw(r,b[h],c,p);s&&pui.Cy(b[h].metaData.screen["overlay range"],c)&&pui.Wt(b[h])}}if(f.subfiles!=null){c=f.metaData.screen["overlay range"];if(c!=null){e=c.split("-");if(e.length==2){n=Number(e[1]);e=f.metaData.items;for(h=0;h<e.length;h++){l=
|
|
558
558
|
e[h];if(l["field type"]=="grid"){m=l;break}}}}}}if(n!=null&&!isNaN(n)&&m!=null)for(g=0;g<b.length;g++){f=b[g];c=f.metaData.screen["overlay range"];if(c!=null){e=c.split("-");if(e.length==2){e=Number(e[0]);if(!isNaN(e)&&e>n){e=Number(m["number of rows"]);if(isNaN(e)||e<=0)break;if(m["has header"]=="true")e-=1;l=Number(m["row height"]);if(isNaN(l)||l<=0)break;c=m["fold multiple"];if(c==null)c=parseInt(l/pui.pq);c=Number(c);if(isNaN(c)||c<1)c=1;l=parseInt(l/c);c=e*(l-pui.pq);e=m["show paging controls"];
|
|
559
559
|
l=m["show page number"];h=m["csv export"];r=false;if(e!=null&&e!=""&&e!="false")r=true;if(l!=null&&l!=""&&l!="false")r=true;if(h!=null&&h!=""&&h!="false")r=true;if(r)c+=pui.Aj;if(c<=0)break;e=f.metaData.items;for(h=0;h<e.length;h++){l=e[h];if(l.grid==null){f=l["field type"];if(f!="panel"&&f!="css panel"&&!pui.p(l.top)&&!a("stationary",l,"css class"))l.top=parseInt(l.top)+c+"px"}}}}}}};
|
|
560
560
|
pui.Ii=function(){var b;pui.Nc=null;if(pui.Ud!=null&&pui.sl!=true){if(pui.Ud.layers)for(var a=0;a<pui.Ud.layers.length;a++){var c=pui.Ud.layers[a];for(b=0;b<c.formats.length;b++){var e=c.formats[b];e.data&&delete e.data;e.metaData&&delete e.metaData;e=e.subfiles;if(e!=null)for(var f in e){delete e[f].data;delete e[f]}}}delete pui.Ud}for(;pui.cb.length>0;){b=pui.cb.pop();b!=null&&typeof b.destroy=="function"&&b.destroy()}for(;pui.wl.length>0;){b=pui.wl.pop();b!=null&&typeof b.destroy=="function"&&
|
|
561
561
|
b.destroy()}if(typeof FusionCharts!="undefined")for(;pui.Wn.length>0;){b=pui.Wn.pop();b!=null&&FusionCharts(b)&&FusionCharts(b).dispose()}for(;pui.Ug.length>0;){b=pui.Ug.pop();b!=null&&typeof b.destroy=="function"&&b.destroy()}for(;pui.dq.length>0;){b=pui.dq.pop();typeof b==="object"&&b!==null&&b.Sw.removeEventListener(b.Rw,b.Qw)}for(var g in pui.Qe)document.body.style[g]=pui.Qe[g];pui.Qe={};pui["keep frames"]||pui.ot()};pui.hu=0;
|
|
562
562
|
pui.resize=function(){if(pui.runtimeContainer!=null){clearTimeout(pui.hu);pui.hu=setTimeout(pui.Wp,10,pui.runtimeContainer)}};pui.jy=function(b){if(b!=null){b=b.state;if(b!=null){if(b.Xt=="previous")if(pui.Ci!=null){pui.G="true";pui.gq=true;pui.gc()}history.forward()}}};
|
|
563
|
-
pui.render=function(b){var a,c,e,f;pui.recordTest&&pui.record(b);pui.clientLogic=b.clientLogic;if(typeof pui.beforeRender==="function"){var g=pui.beforeRender(b);if(g)b=g}if(b.pjsVersion!=null)pui.
|
|
563
|
+
pui.render=function(b){var a,c,e,f;pui.recordTest&&pui.record(b);pui.clientLogic=b.clientLogic;if(typeof pui.beforeRender==="function"){var g=pui.beforeRender(b);if(g)b=g}if(b.pjsVersion!=null)pui.QA=b.pjsVersion;if(typeof pui.Ot=="undefined")pui.Ot=pui.pjsDefaultMode||null;pui.pjsDefaultMode=b.pjsDefaultMode?b.pjsDefaultMode:pui.Ot;if(typeof pui.Zu=="undefined")pui.Zu=pui.widgetURLPrefix||null;pui.widgetURLPrefix=b.pjsWidgetURLPrefix?b.pjsWidgetURLPrefix:pui.Zu;pui.ba=null;if(b.pjs_id)pui.ba=b.pjs_id;
|
|
564
564
|
if(b.pjsDatabaseConnections)pui.databaseConnections=b.pjsDatabaseConnections;pui.oj=b.nodejs===true;pui.yo=null;if(b.version!=null&&pui.version!=null&&b.version!=pui.version){g=null;f=b.version.split(".");e=f.shift();f=f.join(".");if(b.nodejs){if(pui.getVersionComparer().isLessThan(pui.version,b.version))g="Installed copy of Profound.js requires Profound UI client-side Version "+e+", Fix Pack "+f+" or above. Profound UI client-side version is Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+
|
|
565
|
-
"."}else g="Profound UI server-side (Version "+e+", Fix Pack "+f+") doesn't match client-side JavaScript (Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+")";g!=null&&window.console&&window.console.error&&console.error(g)}pui.is_old_ie&&pui.ie_mode>=9?pui.Q(pui.runtimeContainer,"pui-ie9plus"):pui.da(pui.runtimeContainer,"pui-ie9plus");if(pui.F&&pui.F.ec==null)pui.F.ec=document.getElementById("middle");if(!pui.
|
|
565
|
+
"."}else g="Profound UI server-side (Version "+e+", Fix Pack "+f+") doesn't match client-side JavaScript (Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+")";g!=null&&window.console&&window.console.error&&console.error(g)}pui.is_old_ie&&pui.ie_mode>=9?pui.Q(pui.runtimeContainer,"pui-ie9plus"):pui.da(pui.runtimeContainer,"pui-ie9plus");if(pui.F&&pui.F.ec==null)pui.F.ec=document.getElementById("middle");if(!pui.Py){T(window,"resize",pui.resize);pui.Py=true}if(!pui.sl&&!pui.gw&&history.pushState!=
|
|
566
566
|
null&&history.replaceState!=null)if(!(window.parent&&window.parent!=window&&pui.hi(window.parent)&&window.parent.noderun)){history.replaceState({Xt:"previous"},document.title);history.pushState({Xt:"current"},document.title);T(window,"popstate",pui.jy);pui.gw=true}!window.React&&!window.Vue&&pui.Ii();pui.Ud=b;g=b.success;if(g==null)g=true;if(g)if(b.closeTab==true&&window.parent!=window&&pui.sg(window.parent))window.Atrium.closeTab();else if(b.noKey==true){pui.skipConfirm=true;b="/profoundui/key";
|
|
567
567
|
if(pui.serverURL!=null)b=pui.serverURL+b;location.href=b}else{if(pui.F==null){if(pui["refresh interval"]!=null&&pui["refresh interval"]>0&&pui.cu>=pui["refresh interval"]){pui.refresh();return}pui.cu++}if(b.psid!=null)pui.psid=b.psid;if(b.appJob!=null){pui.secLevel=b.appJob.secLevel;if(pui.appJob==null)pui.appJob={};for(a in b.appJob)pui.appJob[a]=b.appJob[a]}b.message||(pui.layers=b.layers);if(b.ctrlJob!=null){if(pui.ctrlJob==null)pui.ctrlJob={};for(a in b.ctrlJob)pui.ctrlJob[a]=b.ctrlJob[a]}if(pui.qa&&
|
|
568
568
|
!pui.Gf)Ab("ipadKeyboard").style.display="none";pui.pl||pui.ew();if(pui.handler==null){pui.timeout=b.timeout;try{c=Atrium.getSettings()}catch(h){}a=c&&c.ACTIMEOUT==="1";pui.pl||(!a&&pui["client side timeout"]==true?pui.kb.start():pui.va.lq())}pui.$d={};pui.modified=false;pui.sf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.ub="";pui.nb={};pui.Pk={};pui.im={};pui.Fm={};pui.vm={};pui.sq={};pui.Qa={};pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null;
|
|
@@ -570,81 +570,81 @@ pui.Cj=false;pui.activeElement=null;pui.gq=false;pui.Nn=false;a=pui.translate(b)
|
|
|
570
570
|
n[w];if(y!=null)if(y.innerHTML){eval.call(window,y.innerHTML);m(w+1)}else pui.loadJS({path:y.src,callback:function(){m(w+1)},onerror:function(){m(w+1)}})};m(0);pui.Qb=true;pui.rl=true}else{pui.rl=false;if(pui.sl!==true&&pui.pf==null)b.b.style.width="";if(pui.F&&pui.F.ec!=null)pui.F.ec.style.width="";a=b.layers;for(c=0;c<a.length;c++)pui.cy(a[c].formats);if(a.length>0){c=a[a.length-1];if(c.formats.length>0){f=c.formats[c.formats.length-1];if(pui.Rl==null)pui.Rl=document.title;c=pui.R(f.metaData.screen["document title"],
|
|
571
571
|
f.data,f.ref);if(c!=null&&c!="")document.title=c;else if(document.title!=pui.Rl)document.title=pui.Rl}}if(pui.wikihelp.overlays!=null)for(;pui.wikihelp.overlays.length>0;){c=pui.wikihelp.overlays.pop();c.parentNode!=null&&typeof c.parentNode.removeChild=="function"&&c.parentNode.removeChild(c);try{delete c.pui}catch(r){}c=null}pui.wikihelp.overlays=[];pui.Km=[];for(c=0;c<a.length;c++){pui.O={};pui.oh={};pui.Eh={};pui.xh={};pui.Z={};pui.ia={};pui.ia.keys={};pui.ro=false;pui.W={};pui.Nk={};pui.Lm=null;
|
|
572
572
|
pui.Jm=null;pui.Ul=true;pui.Hm=null;pui.Ci=null;pui.um=[];pui.Ca.record=null;pui.Ca.field=null;pui.Ca.position=null;pui.Ca.row=null;pui.Ca.column=null;pui.r.record=null;pui.r.field=null;pui.r.position=null;pui.r.Ao=null;pui.r.row=null;pui.r.column=null;pui.r.$f=null;pui.r.Te=null;pui.r.Td=null;pui.cb=[];pui.Ug=[];pui.wl=[];pui.Pc=[];pui.Ol={};pui.Ma=null;pui.Sc=null;pui.Rc=null;g=a[c].formats;if(c==0){pui.ud=null;pui.lp=null;var p=pui.mp=null;if(g.length>0&&g[0].metaData!=null&&g[0].metaData.screen!=
|
|
573
|
-
null)p=pui.R(g[0].metaData.screen.animation,g[0].data,g[0].ref);if(b.Tg&&b.Tg.animation)p=b.Tg.animation;if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.pf||b.designMode||pui.F!=null)p=null;if(p){pui.cc();e={b:b.b,Dn:p,me:pui.R(g[0].metaData.screen["animated screen"],g[0].data,g[0].ref),wj:pui.R(g[0].metaData.screen["overlay screens"],g[0].data,g[0].ref)};if(b.Tg&&b.Tg.animation){e.me=b.Tg.screen;e.wj=b.Tg.overlay}b.b=pui.hk.lq(e);pui.runtimeContainer=b.b}else{pui.hk.Ii();pui.ma(b.b)}}else{pui.
|
|
573
|
+
null)p=pui.R(g[0].metaData.screen.animation,g[0].data,g[0].ref);if(b.Tg&&b.Tg.animation)p=b.Tg.animation;if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.pf||b.designMode||pui.F!=null)p=null;if(p){pui.cc();e={b:b.b,Dn:p,me:pui.R(g[0].metaData.screen["animated screen"],g[0].data,g[0].ref),wj:pui.R(g[0].metaData.screen["overlay screens"],g[0].data,g[0].ref)};if(b.Tg&&b.Tg.animation){e.me=b.Tg.screen;e.wj=b.Tg.overlay}b.b=pui.hk.lq(e);pui.runtimeContainer=b.b}else{pui.hk.Ii();pui.ma(b.b)}}else{pui.mz(b,
|
|
574
574
|
a[c]);if(g.length>0){f=g[0].metaData.screen["window reference"];if(f!=null&&f!=""&&a[c].metaData!=null){var s=a[c].metaData.items;for(e=0;e<s.length;e++){var t=s[e];if(t.id==f&&(t["field type"]=="panel"||t["field type"]=="css panel")){g[0].metaData.items.push(t);break}}}}}pui.Qd=null;s=c==a.length-1;pui.currentFormatNames=[];for(e=0;e<g.length;e++){f=g[e];f.b=b.b;if(s){f.ul=true;pui.Uw.load(f)}if(f.active==true){f.tl=true;pui.Qd=f.name}pui.Up(f)}if(pui.Qd==null)if(g.length>0){e=g.length-1;g[e].tl=
|
|
575
575
|
true;pui.Qd=g[e].name}else pui.Qd=null;c>0&&g.length>0&&pui.R(g[0].metaData.screen["center window"],g[0].data,g[0].ref)=="true"&&pui.rw();pui.Km.push(b.b)}if(!pui.Qd&&pui.format)pui.Qd=pui.format;p&&pui.hk.animate();if(!pui.pl&&pui.W!=null&&pui.W.dom!=null&&(!pui.Cj||pui.r.$f!=null||pui.r.Te!=null||pui.W.Og==true)){b=pui.W.dom.parentNode;b!=null&&b.parentNode!=null&&b.parentNode.grid!=null&&parseInt(pui.W.dom.style.top)>parseInt(b.style.height)?pui.focusOnContainer():setTimeout(function(){if(pui.W.dom!=
|
|
576
576
|
null)if(pui.W.dom.tagName=="DIV"||pui.W.dom.style.visibility=="hidden")pui.focusOnContainer();else if(pui.r.Td==true)pui.focusOnContainer();else if(pui.r.Td!="no focus on page")try{pui.W.dom.focus();if(pui.W.dom.tagName!="SELECT"&&pui.W.dom.type!="checkbox"&&pui.W.dom.type!="radio"){if(pui.is_old_ie)if(pui.W.dom.createTextRange!=null){pui.W.dom.select();var w=pui.W.dom.createTextRange();if(w!=null&&w.collapse!=null&&w.select!=null){w.collapse();w.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&
|
|
577
577
|
pui.W.dom.select()}}catch(y){pui.focusOnContainer()}},1)}else if(!pui.Cj&&(pui.r.$f==null||pui.r.Te==null))pui.pl||pui.focusOnContainer();pui.Qb=true;pui.Au();pui.Et!=null&&pui.Et.update();pui.breakMessagesInit()}}else{document.body.innerHTML="<h1>Unrecoverable Error</h1> <p>Unrecoverable error <strong>"+b.exception+"</strong> occurred while handling an exception. The original exception id is <strong>"+b.cause+"</strong>.</p> <p>Please contact the server administrator to determine the cause of the problem.";
|
|
578
578
|
pui.Qb=true}};pui.Au=function(){for(var b=0;b<pui.cb.length;b++){var a=pui.cb[b];if(a.d!=null&&!a.qu){a.d.In!=null&&typeof a.d.In=="function"&&a.d.In();a.d.Uf=true;a.d.hc==1&&a.d.z();a.qu=true}}};
|
|
579
|
-
pui.Up=function(b){function a(ba,fa,
|
|
580
|
-
|
|
581
|
-
" "+ ++P}}!w&&b.o==null&&b.xl==null&&pui.currentFormatNames.push(D);if(y!=null){if(pui.R(y["show as window"],G,b.ref)=="true")
|
|
582
|
-
pui.Ca.field[
|
|
583
|
-
pui.L(P.fieldName);P=b.metaData.screen["window left"];if(pui.p(P))pui.Jm=
|
|
584
|
-
if(pui.p(P))pui.nb.tq=
|
|
579
|
+
pui.Up=function(b){function a(ba,fa,qa){var Fa;if(da[ba].root!=null&&da[ba].b!=null){Fa=da[ba].root;qa=da[ba].b}else Fa=da[ba];ba=Fa;var ca=qa-1;if(ba.mg[ca]==null)ba.mg[ca]=[];var ma=ba.P.id,za={};for(var Ra in fa)if(fa.layout!=ma||Ra!="container"&&Ra!="layout")if(typeof fa[Ra]=="object"&&fa[Ra]!=null)try{za[Ra]=JSON.parse(JSON.stringify(fa[Ra]))}catch(Ta){}else za[Ra]=fa[Ra];ba.mg[ca].push(za);if(fa["field type"]=="layout"||fa["field type"]=="grid")da[fa.id]={root:Fa,b:qa}}function c(){r=pui.L(ra.fieldName);
|
|
580
|
+
xa=D+"."+r;if(pui.handler!=null)xa=r;if(b.o!=null)xa+="."+b.o}var e,f,g,h,l,n,m,r,p,s,t=rd(),w=b.designMode;if(w==null)w=false;var y=b.metaData.screen,x=b.metaData.items,E=b.metaData["dds field order"],J=b.metaData["subfile field order"],z=b.designer,G=b.data,D=b.name,B=false,K=[],Q={},Y=pui["strict tab control"],ea=b.Oj==null&&b.xl==null;if(pui.controller!=null&&y!=null){f="";var P=1;for(e="error condition";y[e+f];){if(pui.R(y[e+f],G)=="1"){f=pui.R(y["error message"+f],G);K.push({msg:f});break}f=
|
|
581
|
+
" "+ ++P}}!w&&b.o==null&&b.xl==null&&pui.currentFormatNames.push(D);if(y!=null){if(pui.R(y["show as window"],G,b.ref)=="true")B=true;if(y["window reference"]!=null&&y["window reference"]!="")B=true}if(!w&&ea){D=D||pui.format;pui.Z[D]={};var W=pui.handler==null?D+".":"";P=b.metaData.screen["return cursor record"];if(pui.p(P)){if(pui.Ca.record==null)pui.Ca.record={};pui.Ca.record[W+pui.L(P.fieldName)]=true}P=b.metaData.screen["return cursor field"];if(pui.p(P)){if(pui.Ca.field==null)pui.Ca.field={};
|
|
582
|
+
pui.Ca.field[W+pui.L(P.fieldName)]=true}P=b.metaData.screen["return cursor position"];if(pui.p(P)){if(pui.Ca.position==null)pui.Ca.position={};pui.Ca.position[W+pui.L(P.fieldName)]=true}P=b.metaData.screen["return cursor row"];if(pui.p(P)){if(pui.Ca.row==null)pui.Ca.row={};pui.Ca.row[W+pui.L(P.fieldName)]=true}P=b.metaData.screen["return cursor column"];if(pui.p(P)){if(pui.Ca.column==null)pui.Ca.column={};pui.Ca.column[W+pui.L(P.fieldName)]=true}P=b.metaData.screen.changed;if(pui.p(P))pui.Nk[D]=W+
|
|
583
|
+
pui.L(P.fieldName);P=b.metaData.screen["window left"];if(pui.p(P))pui.Jm=W+pui.L(P.fieldName);P=b.metaData.screen["window top"];if(pui.p(P))pui.Lm=W+pui.L(P.fieldName);P=b.metaData.screen["valid command key"];if(pui.p(P))pui.Hm=W+pui.L(P.fieldName);P=b.metaData.screen["back button"];if(pui.p(P))pui.Ci=W+pui.L(P.fieldName);P=b.metaData.screen["dd element id"];if(pui.p(P))pui.nb.ko=W+pui.L(P.fieldName);P=b.metaData.screen["dd record number"];if(pui.p(P))pui.nb.lo=W+pui.L(P.fieldName);P=b.metaData.screen["target element id"];
|
|
584
|
+
if(pui.p(P))pui.nb.tq=W+pui.L(P.fieldName);P=b.metaData.screen["target record number"];if(pui.p(P))pui.nb.uq=W+pui.L(P.fieldName);W=1;for(P=b.metaData.screen["set off"];pui.p(P);){pui.um.push(D+"."+pui.L(P.fieldName));W++;P=b.metaData.screen["set off "+W]}pui.jo=pui.R(y["bypass validation"],G,b.ref);pui.r.$f=pui.R(y["set cursor row"],G,b.ref);pui.r.Te=pui.R(y["set cursor column"],G,b.ref);pui.r.Td=pui.R(y["no focus"],G,b.ref);if(pui.r.Td=="true")pui.r.Td=true;if(pui["no focus"]=="true"||pui["no focus"]==
|
|
585
585
|
true)pui.r.Td=true;if(pui.p(y["set cursor condition"])){P=pui.R(y["set cursor condition"],G,b.ref);if(P!=true&&P!="true"){pui.r.$f=null;pui.r.Te=null}}if(b.ul&&y["strict tab control"]!=null&&y["strict tab control"]!="")Y=pui.R(y["strict tab control"],G,b.ref)==="true"}if(w){z.Oa.name=y["record format name"];if(z.Oa.name==null||z.Oa.name=="")z.Oa.name="[Unnamed Screen]";for(e in y){h=y[e];z.eq[z.Oa.vb][e]=h;z.fB[z.Oa.vb][e]=true;if(pui.wf.xq&&pui.dc(h))if(w){f={};if(b.Nx)f=null;if(pui.display&&typeof pui.display.logic===
|
|
586
|
-
"object"&&typeof pui.display.logic[h.routine]==="object")f=pui.display.logic[h.routine];pui.wf.xq.update({name:h.routine,e:z,designer:z,property:e,data:f})}}z.
|
|
587
|
-
x[
|
|
588
|
-
null&&x[
|
|
589
|
-
null){m=Ab(g);if(m!=null&&m.layout!=null){
|
|
590
|
-
0;g<
|
|
591
|
-
"absolute";
|
|
592
|
-
if(m=="styled button"||m=="panel"||m=="css panel"||m=="css button"||m=="Layout")g.dom.style.borderStyle="none"}var
|
|
593
|
-
if(h.longName&&h.fieldName)if(!h.lowerCaseField&&pui.handler==null){pui.Ie[pui.L(h.longName)]=pui.L(h.fieldName);pui.Ie[pui.L(h.fieldName)]=pui.L(h.longName)}else{pui.Ie[h.longName]=h.fieldName;pui.Ie[h.fieldName]=h.longName}if(x[
|
|
594
|
-
G,b.ref);if((
|
|
595
|
-
G,b.ref);if(
|
|
596
|
-
"column sort response")
|
|
597
|
-
(pui.handler==null?D+".":"")+pui.L(x[
|
|
598
|
-
if(
|
|
599
|
-
G,b.ref));l=pui.zr(x[
|
|
600
|
-
x[
|
|
601
|
-
tb(ba);if(!(fa==null||fa.value==null))if(ba.data=="-"&&fa.validity!=null&&(fa.value!=""&&fa.validity.valid||!fa.validity.valid))ub(ba);else fa.maxLength>0&&fa.value.length>=fa.maxLength&&ub(ba)})}var
|
|
602
|
-
r;if(b.o!=null)l+="."+b.o;
|
|
603
|
-
|
|
604
|
-
[];
|
|
605
|
-
{};if(pui.Z[D][l]==null)pui.Z[D][l]=[];pui.Z[D][l].push(
|
|
606
|
-
pui.qg(
|
|
607
|
-
x[
|
|
608
|
-
[];pui.Z[D][h].push(
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
true;n.mu=true}T(n,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode;if((fa==pui["field exit key"]||fa==pui["field exit minus key"])&&!ba.shiftKey&&(pui["field exit key"]==17||!ba.ctrlKey)){var
|
|
612
|
-
true}if(e.length>=11&&e.substr(0,11)=="blank value"&&h!=null&&h!=""){if(
|
|
613
|
-
"checked value")
|
|
614
|
-
pui["horizontal auto arrange"]){if(pui.ia.top==null)pui.ia.top=parseInt(
|
|
615
|
-
null&&Math.abs(parseInt(
|
|
616
|
-
"visibility"&&
|
|
617
|
-
f];K.push({id:
|
|
618
|
-
32)
|
|
619
|
-
|
|
620
|
-
undefined&&x[
|
|
621
|
-
|
|
622
|
-
if(!isNaN(m)&&!isNaN(
|
|
623
|
-
D;n=
|
|
624
|
-
"keydown",function(ba){ba=ba||window.event;var fa=tb(ba);if(!(ba.ctrlKey||fa.selectionStart!==fa.selectionEnd)){var
|
|
625
|
-
T(n,"input",
|
|
626
|
-
|
|
627
|
-
"number")ca=
|
|
628
|
-
pui.En(n)}}
|
|
629
|
-
ba.preventDefault();return false}});b.o>0&&pui.is_firefox&&T(
|
|
630
|
-
null)pui.W.dom=
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
0;
|
|
640
|
-
1);if(ba.d!=null){!w&&ba.d.type=="sliding"&&ba.d.hc==1&&ba.d.z();if(!w&&typeof y["record format name"]==="string"&&ba.d.type=="paging"){var fa=y["record format name"],
|
|
641
|
-
da[
|
|
642
|
-
'";');eval('var file = "'+b.file+'";');eval(
|
|
643
|
-
|
|
644
|
-
"OnLazyLoad Error:\n")}}}pui["enable arrow keys"]==true&&pui.Kw();t=rd(t);pui.em&&console.log("Format "+D+" rendered in "+t+"ms")};pui.Kw=function(){pui.Gr.
|
|
645
|
-
pui.Gr=new (function(){var b=this;b.Gn=false;b.
|
|
646
|
-
"INPUT"){b.Gn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.Br=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.Gr.handler)};pui.qg=function(b){b.qx=true;T(b,"click",pui.
|
|
647
|
-
pui.
|
|
586
|
+
"object"&&typeof pui.display.logic[h.routine]==="object")f=pui.display.logic[h.routine];pui.wf.xq.update({name:h.routine,e:z,designer:z,property:e,data:f})}}z.bA=E;z.pB=J}if(!w&&ea)if(pui.R(y["disable enter key"],G,b.ref)=="true")pui.ro=true;var oa=Ac();E=[];J=[];P=[];var da={},ga=false,Aa=null;if(b.zq!==undefined&&b.zq!==null){x.push(b.zq);ga=true}for(W=0;W<x.length;W++)if(!(b.hideControlRecord==true&&!w&&x[W]["field type"]!="grid"&&x[W].grid==null&&x[W]["cursor row"]!=null)){if(!w&&b.Oj!=null&&
|
|
587
|
+
x[W]["field type"]=="output field"&&x[W].visibility=="hidden"){p=parseInt(x[W].top);var Ea=parseInt(x[W].left);if(!isNaN(p)&&p<0&&!isNaN(Ea)&&Ea<0)continue}if(!w){p=x[W]["auto arrange"]||"false";if(p=="true"||pui.p(p)&&pui.R(p,G,b.ref)=="true"){p=x[W].visibility;if(p=="hidden"||pui.p(p)&&pui.R(p,G,b.ref)=="hidden")x[W]["shortcut key"]!=null&&delete x[W]["shortcut key"]}}if(!w&&x[W]["shortcut key"]!=null){p=x[W].disabled;if(p=="true"||pui.p(p)&&pui.R(p,G,b.ref)=="true")delete x[W]["shortcut key"]}if(x[W]["csv file name"]!=
|
|
588
|
+
null&&x[W]["export file name"]==null)x[W]["export file name"]=x[W]["csv file name"];Ea=p=null;var V=x[W].grid;g=x[W].layout;if(V!=null){l=Ab(V);if(l!=null){p=l.grid;Ea=Number(x[W].column);if(x[W].columnId==undefined)x[W].columnId=Ea;if(w)Ea=p.cells[p.h?1:0][Ea];else{if(b.Oj!=null)Ea=p.cells[b.Oj][Ea];else{x[W].domEls!=null&&delete x[W].domEls;p.B.push(x[W]);continue}f="";f+=pui.uo(x[W],pui.Bd,false,p.Ru);f!=""&&pui.alert("Missing translation data:\n\n"+f)}}else if(da[V]!=null){a(V,x[W]);continue}}else if(g!=
|
|
589
|
+
null){m=Ab(g);if(m!=null&&m.layout!=null){Ea=Number(x[W].container);if(da[g]!=null){a(g,x[W],Ea);continue}else Ea=m.layout.yc[Ea-1]}else if(da[g]!=null){a(g,x[W]);continue}}if(Ea==null)Ea=w?z.b:b.b;var C;if(!w&&b.o!=null&&x[W].domEls!=null&&x[W].domEls[b.o-1]!=null){C=x[W].domEls[b.o-1];if(Ea!=null){Ea.appendChild(C);if(C.Th==true){C.style.display="";C.Th=false}if(C.calimg!=null){Ea.appendChild(C.calimg);C.calimg.Bt&&pui.Gl(C);if(C.calimg.Th){C.calimg.style.display="";C.calimg.Th=false}}if(C.Kb!=
|
|
590
|
+
null)for(g=0;g<C.Kb.length;g++){Ea.appendChild(C.Kb[g]);if(C.Kb[g].Th==true){C.Kb[g].style.display="";C.Kb[g].Th=false}}if(C.jl===true){pui.Dw(C);C.jl=false}if(b.Y!=null&&b.Y.text!=""&&(String(x[W].column)===String(b.Y.col)||b.Y.col==="*all"))if(C.tagName=="DIV"){pui.il(C,b.Y.text);C.jl=true}}}else{m=pui.widgets[x[W]["field type"]];if(typeof m==="object"&&m!==null&&typeof m.tag==="string"&&m.tag.length>0){C=document.createElement(m.tag);C.type=m.inputType}else C=document.createElement("div");C.style.position=
|
|
591
|
+
"absolute";C.setAttribute("puiwdgt",x[W]["field type"]);var U=x[W].left;g=x[W].top;if(pui.p(U))U="0px";if(pui.p(g))g="0px";if(U=="NaNpx")U="0px";if(g=="NaNpx")g="0px";if(x[W].left!=null)C.style.left=U;if(x[W].top!=null)C.style.top=g;if(!w&&x[W]["parent tab panel"]!=null&&x[W]["parent tab panel"]!="")C.style.visibility="hidden";if(Ea!=null)x[W].Cx!=null?Ea.insertBefore(C,x[W].Cx):Ea.appendChild(C);U={};g=null;if(w){g=z.addItem(C,true);g.properties=U;g.properties.newitem="true";g.qb.newitem=true;m=
|
|
592
|
+
x[W]["field type"];if(m=="styled button"||m=="panel"||m=="css panel"||m=="css button"||m=="Layout")g.dom.style.borderStyle="none"}var pa=m=null;for(var la in x[W])if(la!="domEls"){h=x[W][la];if(pui.wf.xq&&pui.dc(h))if(w){f={};if(b.Nx)f=null;if(pui.display&&typeof pui.display==="object"&&typeof pui.display.logic==="object"&&typeof pui.display.logic[h.routine]==="object")f=pui.display.logic[h.routine];pui.wf.xq.update({name:h.routine,e:g,designer:z,property:la,data:f})}if(pui.p(h))if(w)f=h;else{if(pui.Jx(la))C.To=
|
|
593
|
+
true;if(h.longName&&h.fieldName)if(!h.lowerCaseField&&pui.handler==null){pui.Ie[pui.L(h.longName)]=pui.L(h.fieldName);pui.Ie[pui.L(h.fieldName)]=pui.L(h.longName)}else{pui.Ie[h.longName]=h.fieldName;pui.Ie[h.fieldName]=h.longName}if(x[W]["field type"]=="grid"&&(la=="row background"||la=="row font color"))f="";else if(la.includes("grid row translation placeholder value")&&x[W]["field type"]=="grid")f=h;else if(la.includes("translation placeholder value")&&x[W].grid!=null)f=h;else{h.revert=false;f=
|
|
594
|
+
pui.R(h,G,b.ref);if((la=="range low"||la=="range high")&&h.dataType=="date"){var ha=h.dateFormat;h.dateFormat="Y-m-d";l=pui.R(h,G,b.ref);h.dateFormat=ha;if(la=="range low")m=l;else pa=l}}if(la=="value"||la=="html"){C.nc=D;C.Xc=pui.L(h.fieldName);if(C.pui==null)C.pui={};C.pui.formatName=D;C.pui.fieldName=C.Xc;if(x[W]["field type"]=="textbox"){l=pui.R(x[W]["choices database file"],G,b.ref);if(l!=null&&l!=""){l=pui.R(x[W]["choice options field"],G,b.ref);var La;if(l!=null)La=pui.ha(l)[0];l=pui.R(x[W]["choice values field"],
|
|
595
|
+
G,b.ref);if(La!=null&&La!=""&&l!=null&&l!=""&&La!=l){h.formatting="Text";h.He=null;h.maxLength=null}}l=pui.R(x[W]["choices url"],G,b.ref);if(l!=null&&l!=""&&h.formatting=="Number"){h.formatting="Text";h.He=null;h.maxLength=null}}}if(la=="cursor record number")pui.Pk[(pui.handler==null?D+".":"")+pui.L(h.fieldName)]=C;else if(la=="subfile return rrn")pui.im[(pui.handler==null?D+".":"")+pui.L(h.fieldName)]=C;else if(la=="return mode")pui.vm[(pui.handler==null?D+".":"")+pui.L(h.fieldName)]=C;else if(la==
|
|
596
|
+
"column sort response")C.qh=(pui.handler==null?D+".":"")+pui.L(h.fieldName);else if(la=="field name sort response"){C.xg=(pui.handler==null?D+".":"")+pui.L(h.fieldName);C.zs=h.dataLength}else if(la=="initial sort field")C.Bx=h.dataLength;else if(la=="filter response")C.As=(pui.handler==null?D+".":"")+pui.L(h.fieldName);else if(la=="subfile changed")pui.sq[U["record format name"].toLowerCase()]=pui.L(h.fieldName);if(la=="column sort response"||la=="field name sort response")if(pui.p(x[W]["return sort order"]))C.Vh=
|
|
597
|
+
(pui.handler==null?D+".":"")+pui.L(x[W]["return sort order"].fieldName);if(/\bcss class\b/.test(la)&&pui.p(h)){if(h.dataType&&h.dataType=="indicator")f="";Aa=pui.R(h,G,b.ref)}}else{if(!w&&Ea!=null&&Ea.Bc){if(Ea.Fu==null)Ea.Fu="";if(la=="id"||la=="top"||la=="left")Ea.Fu+=h}f=h;if((la=="range low"||la=="range high")&&x[W].value&&x[W].value.dataType=="date"){l=x[W].value;ha={};ha.dataType=l.dataType;ha.dateFormat=l.dateFormat;ha.formatting=l.formatting;ha.locale=l.locale;ha.value=f;ha.Re=true;l=pui.vc.format(ha);
|
|
598
|
+
if(la=="range low")m=l;else pa=l}}if(x[W].grid!=null&&!w)switch(la){case "value":case "tab names":case "header text":case "export file name":case "tool tip":case "on text":case "off text":case "html":case "label":case "alternate text":case "empty text":case "placeholder":case "choices":case "blank option label":case "names":ha=null;l=Ab(x[W].grid);if(l!=null){ha=l.grid.Ru;if(ha!=null)if(ha.keys!=null&&ha.values!=null){l={keys:[],values:[]};for(key in ha.keys)l.keys.push(ha.keys[key]);for(value in ha.values)l.values.push(pui.R(ha.values[value],
|
|
599
|
+
G,b.ref));l=pui.zr(x[W],l,G,b.ref);for(ha=0;ha<l.keys.length;ha++)f=f.replaceAll("(&"+l.keys[ha]+")",l.values[ha])}}}U[la]=f;if(la=="hidden"&&f=="hidden"&&Aa!=null){f=2;for(l=U["css class "+f];l!=null;){f++;l=U["css class "+f];if(l===Aa)U["css class "+f]=null}}}if(U["field type"]=="tab panel"||U["field type"]=="layout"&&U.template=="tab panel"){f=U.id;E.push(f);Wc[f]!=null?J.push(Wc[f]):J.push(Yb(U["active tab"],"",C))}for(e in U){f=C.Qh==null?pui.Wi(oa,e):pui.Wi(C.Qh,e);if(f!=null){h=U[e];if(!w){var ra=
|
|
600
|
+
x[W][e];if(pui.p(ra)){ra.revert=false;if(pui.is_touch&&!pui.is_mouse_capable&&e=="value"&&U["field type"]=="textbox"&&ra.formatting=="Number")if(ra.numSep!="true"&&ra.numBlankFill!="true"&&ra.negNum!="(999.00)"&&ra.negNum!="999.00-"&&ra.negNum!="999.00 CR"&&(!ra.edtWrd||ra.edtWrd=="")&&(!ra.edtMsk||ra.edtMsk=="")&&(!ra.curSym||ra.curSym=="")&&(!ra.units||ra.units=="")&&pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!="J"){C.type="number";ra.maxLength>0&&T(C,"textInput",function(ba){var fa=
|
|
601
|
+
tb(ba);if(!(fa==null||fa.value==null))if(ba.data=="-"&&fa.validity!=null&&(fa.value!=""&&fa.validity.valid||!fa.validity.valid))ub(ba);else fa.maxLength>0&&fa.value.length>=fa.maxLength&&ub(ba)})}var xa;if(e=="changed"){c();if(pui.oh[xa]==null)pui.oh[xa]=[];pui.oh[xa].push(C)}if(e=="is blank"){c();if(pui.Eh[xa]==null)pui.Eh[xa]=[];pui.Eh[xa].push(C)}if(e=="dup key response"&&U["allow dup key"]=="true"){c();if(pui.xh[xa]==null)pui.xh[xa]=[];pui.xh[xa].push(C)}if(pui.jt(e,C)){c();if(e=="radio button group"){l=
|
|
602
|
+
r;if(b.o!=null)l+="."+b.o;C.name=l;if(pui.is_old_ie){var Ba;try{Ba=document.createElement('<input name="'+l+'" type="radio">')}catch(ya){Ba=document.createElement("input");Ba.name=l;Ba.type="radio"}Ba.style.position=C.style.position;Ba.style.left=C.style.left;Ba.style.top=C.style.top;Ba.style.visibility=C.style.visibility;Ba.style.display=C.style.display;Ba.id=C.id;Ba.value=C.value;Ba.Kb=C.Kb;Ba.Pd=C.Pd;Ba.modified=C.modified;Ba.disabled=C.disabled;C.parentNode.replaceChild(Ba,C);Ba.checked=C.checked;
|
|
603
|
+
Ba.Wa=C.Wa;Ba.fb=C.fb;Ba.onblur=C.onblur;Ba.onchange=C.onchange;Ba.oninput=C.oninput;Ba.onclick=C.onclick;Ba.ondblclick=C.ondblclick;Ba.onfocus=C.onfocus;Ba.onkeydown=C.onkeydown;Ba.onkeypress=C.onkeypress;Ba.onkeyup=C.onkeyup;Ba.onmousedown=C.onmousedown;Ba.onmousemove=C.onmousemove;Ba.onmouseout=C.onmouseout;Ba.onmouseover=C.onmouseover;Ba.onmouseup=C.onmouseup;Ba.pui=C.pui;C=Ba}C.radioValue=U.value}l=p!=null&&p.ea()==true;if(!l&&pui.O[xa]==null)pui.O[xa]=[];if(!l&&pui.O[xa][0]!=null&&pui.O[xa][0].nj){pui.O[xa]=
|
|
604
|
+
[];C.modified=true;pui.modified=true}if(e=="page down response"){pui.O[xa].push(C.grid.i.ka);pui.O[xa].push(C.grid.i.oa)}else if(e=="page up response"){pui.O[xa].push(C.grid.i.ya);pui.O[xa].push(C.grid.i.pa)}else l||pui.O[xa].push(C);if(e=="menu response")C.S="";if(e=="upload response")C.fileUpload.zy=xa;if(e=="chart response")C.S="";if(e=="tab response")if(l=C.tabPanel)l.mm=true;if(e=="active tab")if(l=C.tabPanel)l.lm=true;if(e=="response"){l=U["shortcut key"];if(l!=null&&l!=""){if(pui.Z[D]==null)pui.Z[D]=
|
|
605
|
+
{};if(pui.Z[D][l]==null)pui.Z[D][l]=[];pui.Z[D][l].push(C);C.zd=l}if(V==null)C.S="0";if(U.onclick==null||U.onclick==""||pui.dc(U.onclick)){if(pui.dc(U.onclick))C.Ma=U.onclick.routine;pui.qg(C)}}if(e=="page down response"){if(pui.Z[D].PageDown==null)pui.Z[D].PageDown=[];pui.Z[D].PageDown.push(C.grid.i.oa);pui.qg(C.grid.i.ka);pui.qg(C.grid.i.oa);C.grid.i.ka.N=ra;C.grid.i.oa.N=ra}if(e=="page up response"){if(pui.Z[D].PageUp==null)pui.Z[D].PageUp=[];pui.Z[D].PageUp.push(C.grid.i.pa);pui.qg(C.grid.i.ya);
|
|
606
|
+
pui.qg(C.grid.i.pa);C.grid.i.ya.N=ra;C.grid.i.pa.N=ra}C.N=ra}else if(C.pui&&C.pui.widget&&sd(C.pui.widget,e)){c();if(pui.O[xa]==null)pui.O[xa]=[];pui.O[xa].push(C);td(C.pui.widget,e,ra,xa)}}if(e=="selection field"&&U["field type"]=="grid")if(pui.p(x[W]["selection field"]))C.grid.Eb=x[W]["selection field"];if(e=="row is hidden field"&&U["field type"]=="grid")if(pui.p(x[W]["row is hidden field"]))C.grid.De=x[W]["row is hidden field"];if(e=="tree level field"&&U["field type"]=="grid")if(pui.p(x[W]["tree level field"])){C.grid.ag=
|
|
607
|
+
x[W]["tree level field"].fieldName;C.grid.Dg=true;C.grid.sortable=false;if(C.grid.Xe==null)C.grid.Xe=0}if(e=="row font color"&&U["field type"]=="grid")if(pui.p(x[W][e]))C.grid.Mj=x[W][e];if(e=="row background"&&U["field type"]=="grid")if(pui.p(x[W][e]))C.grid.Kj=x[W][e];if(e.includes("grid row translation placeholders")&&U["field type"]=="grid")C.grid.Ru=pui.Jk(null,x[W],null,G,b.ref);if(e=="shortcut key"&&h!=null&&h!=""&&!pui.p(x[W].response)){if(pui.Z[D]==null)pui.Z[D]={};if(pui.Z[D][h]==null)pui.Z[D][h]=
|
|
608
|
+
[];pui.Z[D][h].push(C);C.zd=h;if(V==null)C.S="0";if(U.onclick==null||U.onclick==""||pui.dc(U.onclick)){if(pui.dc(U.onclick))C.Ma=U.onclick.routine;pui.qg(C)}}if(e=="id"&&b.o!=null){h+="."+b.o;U[e]=h}if(e=="set focus"&&h=="true")if(pui.W.dom==null||pui.W.Og!=true)if(U.visibility!="hidden"){pui.W.dom=C;if(C.comboBoxWidget!=null)pui.W.dom=C.comboBoxWidget.getBox();if(C.l!=null)pui.W.dom=C.l.getBox();pui.W.Og=true}if(e=="focus class"&&!pui.p(h)&&Kb(h)!="")if(C.pui.properties["field type"]==="combo box"){l=
|
|
609
|
+
C.comboBoxWidget.getBox();l.focusClass=Kb(h);T(l,"focus",pui.Fk);T(l,"blur",pui.bm)}else{C.focusClass=Kb(h);T(C,"focus",pui.Fk);T(C,"blur",pui.bm)}if(e=="required"&&h=="true"){C.Zl=true;if(C.l!=null)C.l.getBox().Zl=true}if(e=="mandatory entry"&&h=="true")C.Lq=true;if(e=="mandatory fill"&&h=="true")C.Mq=true;if(e=="valid values"&&h!=null&&h!="")C.Cq=h;if(e=="allow blanks"&&h=="true")C.Cr=true;if(e=="auto advance"&&h=="true"){n=C;if(C.comboBoxWidget!=null)n=C.comboBoxWidget.getBox();if(C.l!=null)n=
|
|
610
|
+
C.l.getBox();n.Jn=true;T(n,"keyup",pui.Kn)}e=="allow dup key"&&h=="true"&&T(C,"keydown",pui.Hw);l=false;if((pui["always allow field exit"]==true||pui["always allow field exit"]=="true")&&(U["field type"]=="combo box"||U["field type"]=="date field"||U["field type"]=="spinner"||U["field type"]=="textbox"))l=true;if(e=="allow field exit"&&h=="true")l=true;if(l==true){n=C;if(C.comboBoxWidget!=null)n=C.comboBoxWidget.getBox();if(C.l!=null)n=C.l.getBox();if(pui.p(x[W].value)&&x[W].value.rjZeroFill=="true"){C.mu=
|
|
611
|
+
true;n.mu=true}T(n,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode;if((fa==pui["field exit key"]||fa==pui["field exit minus key"])&&!ba.shiftKey&&(pui["field exit key"]==17||!ba.ctrlKey)){var qa=tb(ba);pui.qq(qa);if(pui.os(qa,fa==pui["field exit minus key"])==false){ub(ba);return false}}})}if(e=="validate name"&&h=="true")C.validateName=true;if(e=="validate email"&&h=="true")C.validateEmail=true;if(e=="set as modified"&&h=="true"){C.modified=true;pui.modified=true;if(b.o==null)pui.sf[D]=
|
|
612
|
+
true}if(e.length>=11&&e.substr(0,11)=="blank value"&&h!=null&&h!=""){if(C.Di==null)C.Di=[];C.Di.push(h);l=C;if(C.l!=null)l=C.l.getBox();if(C.comboBoxWidget!=null)l=C.comboBoxWidget.getBox();if((l.tagName=="DIV"?Lc(l):l.value)==h)if(l.tagName=="DIV")pui.ma(l);else l.value=""}if(e=="comparison operator"&&h!=null&&h!="")C.bo=h;if(e=="comparison value"&&h!=null&&h!="")C.co=h;if(e=="range low"&&h!=null&&h!=""){C.Sh=h;if(m!=null)C.By=m}if(e=="range high"&&h!=null&&h!=""){C.Rh=h;if(pa!=null)C.Ay=pa}if(e==
|
|
613
|
+
"checked value")C.checkedValue=h;if(e=="unchecked value")C.uncheckedValue=h;if(e=="indeterminate value")C.indeterminateValue=h;if(e=="cursor row")C.uf=h;if(e=="cursor column")C.ue=h;if(e=="bypass validation")C.G=h;if(e=="auto arrange"&&h=="true")if(b.tl!=true){C.style.display="none";C.style.visibility="hidden";C.removeAttribute("id")}else if(U.visibility!="hidden"){l=U["shortcut key"];if(pui.ia.keys[l]==true){C.style.display="none";C.style.visibility="hidden"}else{if(l!=null)pui.ia.keys[l]=true;if(B||
|
|
614
|
+
pui["horizontal auto arrange"]){if(pui.ia.top==null)pui.ia.top=parseInt(C.style.top);if(pui.ia.left==null){pui.ia.left=parseInt(C.style.left);pui.ia.ib=parseInt(C.style.left)}else if(pui["horizontal auto arrange"]){if(pui.ia.Kk==null)pui.ia.Kk=0;if(pui.ia.Ga==null)pui.ia.Ga=parseInt(C.style.top);pui.ia.Kk++;pui.ia.left=pui.ia.ib+pui.ia.Kk%pui["buttons per row"]*pui["horizontal button spacing"];pui.ia.top=pui.ia.Ga+Math.floor(pui.ia.Kk/pui["buttons per row"])*pui["vertical button spacing"]}else if(pui.ia.Tt!=
|
|
615
|
+
null&&Math.abs(parseInt(C.style.top)-pui.ia.Tt)>5)pui.ia.left=pui.ia.ib;else pui.ia.left+=pui["horizontal button spacing"];C.style.left=pui.ia.left+"px";pui.ia.Tt=parseInt(C.style.top);if(pui["horizontal auto arrange"])C.style.top=pui.ia.top+"px"}else{if(pui.ia.top==null)pui.ia.top=parseInt(C.style.top);else pui.ia.top+=pui["vertical button spacing"];C.style.top=pui.ia.top+"px"}}}if(e=="allow drag"&&h=="true"){if((U.cursor==null||U.cursor=="")&&!pui.qa)C.style.cursor="move";pui.cw(C,U)}}if(!w&&e==
|
|
616
|
+
"visibility"&&U["parent tab panel"]!=null&&U["parent tab panel"]!="")h="hidden";if(h!=null&&h!=""){l=U;if(w)l=g.properties;C=Mc(f,l,C,h,w,g,null,b.o)}if(!w&&e=="visibility"&&h=="visible"&&b.Oj!=null)C.style.visibility=""}if(b.Y!=null&&b.Y.text!=""&&(String(U.column)===String(b.Y.col)||b.Y.col==="*all"))if(C.tagName=="DIV"){pui.il(C,b.Y.text);C.jl=true}if(pui.controller!=null&&e.indexOf("error condition")==0&&h=="1"&&!Q[C.id]){f="";if(e.length>15)f=" "+parseInt(e.substr(15),10);f=U["error message"+
|
|
617
|
+
f];K.push({id:C.id,msg:f});Q[C.id]=true}}!w&&U["float placeholder"]=="true"&&pui.zg(C);if(pui["auto tab"]==true&&U["prevent auto tab"]!="true")if(U["field type"]=="combo box"||U["field type"]=="date field"||U["field type"]=="spinner"||U["field type"]=="textbox"||U["field type"]=="password field"){n=C;if(C.comboBoxWidget!=null)n=C.comboBoxWidget.getBox();if(C.l!=null)n=C.l.getBox();T(n,"keyup",function(ba){ba=ba||window.event;var fa=tb(ba),qa=true,Fa=ba.keyCode;if(Fa<48||Fa>90&&Fa<96||Fa>111&&Fa<186)if(Fa!=
|
|
618
|
+
32)qa=false;Fa=fa;if(Fa.comboBoxWidget!=null)Fa=Fa.comboBoxWidget.getBox();if(Fa.l!=null)Fa=Fa.l.getBox();if(qa&&Fa.value.length==Fa.maxLength&&(pui.is_touch||zb(Fa)>=Fa.maxLength)){pui.Qo(fa);ub(ba);return false}})}if(pui["enable arrow keys"]==true)if(U["field type"]=="combo box"||U["field type"]=="date field"||U["field type"]=="spinner"||U["field type"]=="textbox"||U["field type"]=="password field"||U["field type"]=="checkbox"){n=C;if(C.comboBoxWidget!=null)n=C.comboBoxWidget.getBox();if(C.l!=null)n=
|
|
619
|
+
C.l.getBox();pui.Br(n)}if(Y)if(U["field type"]=="combo box"||U["field type"]=="date field"||U["field type"]=="spinner"||U["field type"]=="textbox"||U["field type"]=="password field"||U["field type"]=="checkbox"){n=C;if(C.comboBoxWidget!=null)n=C.comboBoxWidget.getBox();if(C.l!=null)n=C.l.getBox();T(n,"keydown",function(ba){ba=ba||window.event;var fa=tb(ba);if(!(fa.Ab&&fa.Ab.ej()))if(ba.keyCode==9)if(ba.parentElement&&(!ba.parentElement.eo||!ba.parentElement.Ba)){ad(fa,!ba.shiftKey);ub(ba);return false}})}if(x[W].grid!==
|
|
620
|
+
undefined&&x[W].grid!==null){V=Ab(x[W].grid).grid;if(V.Dg&&V.ag!==null&&x[W].id==x[W].grid+V.Gm){n=C;n.pui.rrn=b.o;n.pui.grid=x[W].grid;T(n,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode,qa=tb(ba),Fa=Ab(qa.pui.grid).grid;qa=qa.pui.rrn;if(fa==37){Fa.expandTreeLevel(qa);ub(ba);return false}if(fa==39){Fa.collapseTreeLevel(qa);ub(ba);return false}})}}if(!w&&U.visibility!="hidden"&&pui.r.$f!=null&&pui.r.$f!=""&&pui.r.Te!=null&&pui.r.Te!=""&&C.clientWidth>0){V=U["cursor row"];if(C.parentNode&&
|
|
621
|
+
C.parentNode.parentNode&&C.parentNode.parentNode.grid){V=parseInt(V,10);V+=C.parentNode.parentNode.grid.h?C.parentNode.row-1:C.parentNode.row;V=""+V}if(pui.r.$f==V){V=false;if(pui.r.Te==U["cursor column"])V=true;if(!V)if(U["field type"]=="textbox"||U["field type"]=="date field"||U["field type"]=="password field"||U["field type"]=="combox box"||U["field type"]=="spinner"){m=x[W].value;if(m!=null&&pui.p(m)&&m.dataLength!=null){m=Number(m.dataLength);pa=Number(U["cursor column"]);f=Number(pui.r.Te);
|
|
622
|
+
if(!isNaN(m)&&!isNaN(pa)&&!isNaN(f))if(f>pa&&f<pa+m)V=true}}if(V){pui.W.dom=C;if(C.comboBoxWidget!=null)pui.W.dom=C.comboBoxWidget.getBox();if(C.l!=null)pui.W.dom=C.l.getBox();pui.W.Og=true}}}if(!w){var bb=function(ba){pui.Yj(ba,D)};if((window.React||window.Vue)&&C.N){if(C.pui==null)C.pui={};C.pui.data=G;if(b.Ts)C.pui.data=b.Ts;C.pui.Li=C.N.fieldName}if(C.comboBoxWidget!=null||C.l!=null||C.tagName=="TEXTAREA"||C.tagName=="INPUT"&&(pui.fj(C)||C.type=="file")){n=C;if(C.comboBoxWidget!=null){C.comboBoxWidget.formatName=
|
|
623
|
+
D;n=C.comboBoxWidget.getBox()}if(C.l!=null){C.l.formatName=D;n=C.l.getBox()}if(C.N!=null&&C.N.maxLength!=null){n.maxLength=C.N.maxLength;if(C.tagName=="TEXTAREA"){T(C,"keyup",function(ba){ba=tb(ba);var fa=Number(ba.maxLength);if(!isNaN(fa)&&fa>0&&ba.value!=null&&ba.value.length>fa)ba.value=ba.value.substr(0,fa)});T(C,"paste",function(ba){var fa=tb(ba);setTimeout(function(){var qa=Number(fa.maxLength);if(!isNaN(qa)&&qa>0&&fa.value!=null&&fa.value.length>qa)fa.value=fa.value.substr(0,qa)},0)});T(C,
|
|
624
|
+
"keydown",function(ba){ba=ba||window.event;var fa=tb(ba);if(!(ba.ctrlKey||fa.selectionStart!==fa.selectionEnd)){var qa=ba.keyCode;if(qa>=48&&qa<=57||qa>=65&&qa<=90||qa==32||qa>=106&&qa<=111||qa>=186&&qa<=192||qa>=219&&qa<=222){qa=Number(fa.maxLength);if(!isNaN(qa)&&qa>0&&fa.value!=null&&fa.value.length==qa){ub(ba);return false}}}})}}if(C.nc!=null||C.Xc!=null||C.uf!=null||C.ue!=null){T(n,"focus",pui.Zd);T(n,"keyup",pui.Zd)}T(n,"focus",pui.Tj);T(n,"keydown",pui.Tj);T(n,"change",bb);T(n,"paste",bb);
|
|
625
|
+
T(n,"input",bb);n.ho=0;T(n,"mouseup",pui.rq);T(n,"mousedown",pui.rq);T(n,"keyup",pui.rq);if(pui.is_touch){n.Tl=pui.Xw(n);T(n,"focus",function(ba){if(ba.srcElement.Tl)ba.srcElement.Tl.gu=true;setTimeout(function(fa){if(fa.Tl)fa.Tl.gu=false},1E3,ba.srcElement)})}T(n,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode;fa>=9&&fa<=45&&fa!=32||fa>=112&&fa<=145||ba.ctrlKey&&fa!=88&&fa!=86||bb(ba)});C.N&&C.N.He&&function(){var ba=C.N.He;T(n,"keypress",function(fa){fa=fa||window.event;pui.He(fa,ba)});
|
|
626
|
+
C.type=="number"&&C.N.noExtraSpaces&&T(n,"textInput",function(fa){fa=fa||window.event;ba.test(fa.data)||ub(fa)})}();if(C.N!=null&&C.N.edtMsk!=null&&C.N.edtMsk!=""){n.Kl=false;T(n,"focus",function(ba){tb(ba).Kl=false});T(n,"blur",function(ba){var fa=tb(ba);if(fa.Kl){typeof fa.onchange==="function"&&fa.onchange(ba);fa.Kl=false}});T(n,"keyup",function(ba){pui.En(tb(ba),ba)});T(n,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode,qa=tb(ba),Fa=null;if(fa==46||fa==8||fa==32){var ca=false;if(typeof qa.selectionStart==
|
|
627
|
+
"number")ca=qa.selectionStart==0&&qa.selectionEnd==qa.value.length;else if(typeof document.selection!="undefined")ca=document.selection.createRange().text==qa.value;if(ca){qa.value="";return}}if(fa>=48&&fa<=57)Fa=fa-48;if(fa>=96&&fa<=105)Fa=fa-96;if(fa==46)Fa=0;if(fa==8)Fa=0;if(Fa!=null){qa=tb(ba);ca=qa.value;if(ca!=null){var ma=zb(qa);if(fa==8&&ma>0)ma-=1;qa.value=ca.substr(0,ma)+String(Fa)+ca.substr(ma+1);fa!=46&&fa!=8&&ma++;qa.Kl=true;ub(ba);pui.En(qa,ba,ma);if(pui.is_old_ie)try{ba.keyCode=0}catch(za){}return false}}});
|
|
628
|
+
pui.En(n)}}C.tagName=="SELECT"&&T(C,"keydown",function(ba){ba=ba||window.event;var fa=ba.keyCode;if(fa==38||fa==40)bb(ba)});if(C.tagName=="SELECT"||C.tagName=="INPUT"&&(C.type=="checkbox"||C.type=="radio")){if(C.nc!=null||C.Xc!=null||C.uf!=null||C.ue!=null){T(C,"focus",pui.Zd);T(C,"keyup",pui.Zd)}T(C,"focus",pui.Tj);T(C,"keydown",pui.Tj);T(C,"change",bb);if(C.tagName!="SELECT")T(C,"click",bb);else{T(C,"keydown",function(ba){if(!ba)ba=window.event;if(ba.keyCode==34){ba.cancel=true;ba.preventDefault&&
|
|
629
|
+
ba.preventDefault();return false}});b.o>0&&pui.is_firefox&&T(C,"keydown",function(ba){ba=ba||window.event;if(ba.keyCode==33||ba.keyCode==34)ub(ba)})}}if(C.nc!=null||C.Xc!=null||C.uf!=null||C.ue!=null)T(C,"click",pui.Zd);T(C,"click",pui.Tj)}if(!w&&!pui.qa&&pui.W.dom==null&&!C.disabled&&!C.readOnly&&U.visibility!="hidden"){if(C.tagName=="INPUT")if(pui.fj(C)||C.type=="checkbox"||C.type=="radio"||C.type=="file")pui.W.dom=C;if(C.tagName=="TEXTAREA"||C.tagName=="SELECT")pui.W.dom=C;if(C.comboBoxWidget!=
|
|
630
|
+
null)pui.W.dom=C.comboBoxWidget.getBox();if(C.l!=null)pui.W.dom=C.l.getBox()}w&&U["field type"]=="grid"&&z.Vs.push(g);w&&U["field type"]=="layout"&&z.KA.push(g);m=U["field type"];if(m!=null){m=pui.widgets[m];m!=null&&m.initialize!=null&&m.initialize({design:w,properties:U,dom:C,e:g});if(C.pui&&C.pui.widget&&C.pui.widget)dd(C.pui.widget);else C.Ka&&C.Ka.render(b)}if(!w&&U["field type"]=="layout"){pui.wl.push(C.layout);if(U["lazy load"]=="true"&&typeof C.layout.pu=="function"){da[U.id]=C.layout;C.layout.pu(b)}}if(!w&&
|
|
631
|
+
U["field type"]=="grid"){g=b.subfiles;var Ca,gb,eb,lb;V=pui.Lb(U["record format name"]);if(g!=null)Ca=g[V];if(Ca!=null)gb=Ca.data;if(Ca!=null)eb=Ca["field names"];if(Ca!=null)lb=Ca.ref;if(Ca!=null)s=Ca.errors;C.grid.Fo=b.fileId;if(typeof pui.view!="undefined")C.grid.Rb="pui-grid-"+pui.view;else if(typeof b.file!="undefined"&&typeof b.library!="undefined")C.grid.Rb="pui-grid-"+b.library+"-"+b.file+"-"+V;U["persist state"]==="program only"&&Ca&&Ca.renderCount===1&&delete pui.Fj[C.grid.Rb];if(Ca!=null&&
|
|
632
|
+
Ca.useServerState&&Ca.storedState!=null){C.grid.Jz=true;C.grid.de=Ca.storedState}C.grid.dataArray=gb!=null?gb:[];C.grid.aa=eb!=null?eb:[];if(pui.handler!=null&&gb==null){(gb=G[pui.Lb(U["record format name"])])||(gb=[]);eb=[];Ca=[];eb={};for(g=0;g<x.length;g++){V=x[g];if(V.grid===U.id)for(var xb in V){m=V[xb];if(pui.p(m))eb[m.fieldName]=true}}eb=Object.keys(eb);for(g=0;g<gb.length;g++){V=[];m=gb[g];for(pa=0;pa<eb.length;pa++){r=eb[pa];V.push(m[r])}Ca.push(V)}C.grid.dataArray=Ca;C.grid.aa=eb;C.grid.Us=
|
|
633
|
+
gb;Ca={}}C.grid.ref=lb!=null?lb:{};if(s!=null)C.grid.errors=s;g=x[W]["subfile message key"];V=x[W]["subfile program message queue"];m=x[W]["subfile control program message queue"];if(g!=null&&g!=""&&V!=null&&V!=""||m!=null&&m!=""){if(C.grid.d!=null)C.grid.d.eB="Message";C.grid.B.push({id:"_msgsfltext",column:"0","field type":"output field",grid:U.id,left:"5px",top:"5px",cursor:"pointer",onclick:"pui.showMessageSubfileHelp(this);",value:{dataLength:"132",dataType:"char",fieldName:"text",formatting:"Text",
|
|
634
|
+
textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});C.grid.B.push({id:"_msgsflhelp",column:"0","field type":"output field",grid:U.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"9999",dataType:"char",fieldName:"help",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});C.grid.B.push({id:"_msgsflid",column:"0","field type":"output field",grid:U.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"7",
|
|
635
|
+
dataType:"char",fieldName:"id",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});C.grid.B.push({id:"_msgsfldate",column:"0","field type":"output field",grid:U.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"7",dataType:"char",fieldName:"date",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});C.grid.B.push({id:"_msgsfltime",column:"0","field type":"output field",grid:U.id,left:"0px",
|
|
636
|
+
top:"0px",visibility:"hidden",value:{dataLength:"6",dataType:"char",fieldName:"time",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}})}if(C.grid.dataArray.length==0)if(pui.p(x[W]["subfile message key"])||pui.p(x[W]["subfile program message queue"]))C.grid.Yo();Ca==null&&C.grid.Yo();g=Number(U["subfile record number"]);C.grid.wm=g;if(isNaN(g)){g=1;C.grid.wm=0}if(g<1||g>9999){g=1;C.grid.wm=0}if(U["position at top"]!="true")C.grid.Vu(g);else C.grid.j=
|
|
637
|
+
g;if(U["place cursor"]=="true"){C.grid.Dj=g;pui.Cj=true}C.grid.kz();P.push(C.grid);pui.cb.push(C.grid)}if(!w&&b.o!=null){C.o=b.o;C.fk=b.name;if(x[W].domEls==null)x[W].domEls=[];x[W].domEls[b.o-1]=C}}if((pui.controller!=null||typeof pui.handler=="function")&&U!=null&&U["set as modified"]!="false")C.modified=true;if(!w&&b.Zb!=null)C.Zb=b.Zb;if(!w&&p!=null&&!p.expanded&&Ea){Ea=parseInt(Ea.style.height);if(!isNaN(Ea)){p=parseInt(C.style.top);if(isNaN(p))p=0;if(p>Ea&&(C.tagName=="INPUT"||C.tagName=="SELECT"||
|
|
638
|
+
C.tagName=="TEXTAREA")&&!C.disabled){C.Op=true;C.disabled=true}}}}ga&&x.pop();if(!w){s=pui.controller!=null&&K.length>0?K:b.errors;if(s!=null)if(b.o!=null){s=s[String(b.o)];s!=null&&pui.mq(s,b.o)}else{for(e=0;e<s.length;e++){var Bb=s[e],pb;try{pb=JSON.parse(Bb.msg)}catch(rb){pb=false}if(pb&&typeof pb=="object")if(!(!pui.Bd||pui.Bd.length<=0)){h=x.find(function(ba){return ba.id===Bb.id});G=pui.Jk(h,null,screen,b.data,b.ref);Bb.msg=G.keys&&G.keys.length>0?h["error message"]:pui.Bd[pb.transId]}}pui.mq(s)}}for(W=
|
|
639
|
+
0;W<E.length;W++){s=document.getElementById(E[W]);x=s.tabPanel;if(!x)x=s.Ka;if(x&&typeof x.Yc==="function"){if(J[W])x.selectedTab=J[W];x.Yc()}}if(w)for(W=0;W<z.Vs.length;W++)z.Vs[W].dom.grid.ac(true);P.forEach(function(ba){if(pui.W!=null&&pui.W.Og==true)ba.Dj=null;if(ba.it())ba.collapse(Ab(ba.c.id+"_expander"));else{if(ba.We)return;ba.getData()}if(!ba.We){ba.j>1&&ba.d!=null&&ba.d.type=="sliding"&&ba.d.xd(ba.j,true);if(pui.Cj&&pui.r.Te==null&&pui.r.$f==null)if(pui.W==null||pui.W.Og!=true)setTimeout(function(){ba.Pt(true)},
|
|
640
|
+
1);if(ba.d!=null){!w&&ba.d.type=="sliding"&&ba.d.hc==1&&ba.d.z();if(!w&&typeof y["record format name"]==="string"&&ba.d.type=="paging"){var fa=y["record format name"],qa=pui.Lb(fa);if(pui.Z[fa]==null&&pui.Z[qa]!=null)fa=qa;if(pui.Z[fa]!=null){if(pui.Z[fa].PageDown==null)pui.Z[fa].PageDown=[];pui.Z[fa].PageDown.push(ba.i.oa);ba.i.Cp=true;if(pui.Z[fa].PageUp==null)pui.Z[fa].PageUp=[];pui.Z[fa].PageUp.push(ba.i.pa);ba.i.Ep=true}}}if(ba.Kx()){ba.Ce.collapseAll();ba.$l()}ba.Al();ba.Ry()}});for(var cb in da)if(z=
|
|
641
|
+
da[cb]){s=-1;if(typeof z.Cg==="function")s=z.Cg();typeof z.dm==="function"&&z.dm(s)}if(!w){pui.onload!=null&&typeof pui.onload=="function"&&ea&&b.Pj!==false&&!pui.fa&&pui.onload(b);if(y!=null){if(b.Pj!==false){if(pui.clientLogic)if((cb=y["initial routine"])&&cb.routine){cb=cb.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[cb]+'\r\n}; \r\npui["routineFunction"]();')}catch(kb){console.error(kb)}}cb=y.onload;if(cb!=null&&cb!="")try{eval('var format = "'+y["record format name"]+
|
|
642
|
+
'";');eval('var file = "'+b.file+'";');eval(cb)}catch(d){pui.Fa(d,"Onload Error:\n")}}pui.Lg=y.onsubmit;if(y.onmessage&&typeof y["record format name"]==="string"){pui.Ol[y["record format name"].toLowerCase()]=y.onmessage;if(b.msgInfo!=null&&ea&&b.Pj!==false&&!pui.fa){pui.message=b.msgInfo;try{eval('var message = pui["message"];');eval(y.onmessage)}catch(Xa){pui.Fa(Xa,"Onmessage Error:\n")}}}["onkeydown","onkeypress","onkeyup"].forEach(function(ba){if(ea&&b.ul&&y[ba]!=null&&y[ba]!=""){var fa=function(Fa){pui.temp_event=
|
|
643
|
+
Fa;eval("var event = pui.temp_event;");eval('var format = "'+y["record format name"]+'";');eval('var file = "'+b.file+'";');try{var ca=eval(y[ba]);if(typeof ca=="function"){if(!Fa)Fa=window.event;ca(Fa)}}catch(ma){pui.Fa(ma,ba.substr(0,1).toUpperCase()+ba.substr(1)+" Error:\n")}},qa=ba.substring(2);document.body.addEventListener(qa,fa);pui.dq.push({Sw:document.body,Rw:qa,Qw:fa})}})}if(b.xl!=null){pui.Qb&&pui.Au();if(b.rj!=null)try{eval('var lazyContainerNum = "'+b.xl+'";');eval(b.rj)}catch(hb){pui.Fa(hb,
|
|
644
|
+
"OnLazyLoad Error:\n")}}}pui["enable arrow keys"]==true&&pui.Kw();t=rd(t);pui.em&&console.log("Format "+D+" rendered in "+t+"ms")};pui.Kw=function(){pui.Gr.Ny();var b=null,a=document.querySelectorAll("[puiwdgt='grid']");if(!(a.length<1))for(var c=0;c<a.length;c++){b=a[c].querySelectorAll("input.qf");if(!(b.length<1))for(var e=0;e<b.length;e++){b[e].style.left="2px";b[e].style.top="30px";pui.Br(b[e])}}};
|
|
645
|
+
pui.Gr=new (function(){var b=this;b.Gn=false;b.Ny=function(){b.Gn=false};b.handler=function(a){a=a||window.event;var c=tb(a);if(!(c.Ab&&c.Ab.ej())){var e=a.keyCode,f=c;if(f.comboBoxWidget!=null)f=f.comboBoxWidget.getBox();if(f.l!=null)f=f.l.getBox();if(e==37)if(zb(f)<=0){pui.fl(c,"left");ub(a);return false}if(e==38){pui.fl(c,"up");ub(a);return false}if(e==39)if(zb(f)>=f.value.length){pui.fl(c,"right");ub(a);return false}if(e==40){pui.fl(c,"down");ub(a);if(!b.Gn&&c.className.includes("qf")&&c.nodeName===
|
|
646
|
+
"INPUT"){b.Gn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.Br=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.Gr.handler)};pui.qg=function(b){b.qx=true;T(b,"click",pui.Qy)};
|
|
647
|
+
pui.Qy=function(b){for(var a=b.target;a!=null&&!a.qx;)a=a.parentNode;if(a!=null){var c;if(a.disabled!=true)if(!(a.getAttribute!=null&&a.getAttribute("disabled")=="true")){if(a.Db!=null){if(a.nextPage==true&&!a.Db.grid.Yb()){a.Db.grid.Bp();return}if(a.Oh==true&&!a.Db.grid.Jb()){a.Db.grid.Dp();return}}if(a.zd!=null)pui.ub=a.zd;b=[];if(a.zd!=null){a.Db&&b.push(a);for(var e in pui.Z){var f=pui.Z[e][pui.ub];if(f!=null)for(c=0;c<f.length;c++)f[c].Db||b.push(f[c])}}else b.push(a);for(c=0;c<b.length;c++){b[c].S=
|
|
648
648
|
"1";if(b[c].G=="true"||b[c].G=="send data")pui.G=b[c].G}e=a.parentNode;if(e!=null){c=e.parentNode;if(c!=null){c=c.grid;c!=null&&c.pm(e.row)}}pui.Vk=null;pui.th=null;pui.Uk=null;pui.po=null;if(a.pui&&a.pui.properties&&a.pui.properties["destination url"]){e=a.pui.properties;pui.Vk=e["destination url"];pui.Uk=!e.bookmarkable||e.bookmarkable=="true";pui.po=e["redirect to destination"]=="true";pui.th=[];c=1;f="destination parameter name";for(var g="destination parameter value";e[f];){pui.th.push([e[f],
|
|
649
649
|
e[g]]);f="destination parameter name "+ ++c;g="destination parameter value "+c}}pui.Ma=a.Ma;pui.Sc=a.o;pui.Rc=a.fk;a=pui.gc();pui.Vk=null;pui.th=null;pui.Uk=null;pui.po=null;if(a==false){for(c=0;c<b.length;c++)b[c].S="0";pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null}}}};
|
|
650
650
|
pui.mq=function(b,a){var c,e=[];for(c=b.length-1;c>=0;c-=1){var f=b[c],g=f.msg;if(f.encoded)g=pui.formatting.rh(g);var h=null,l;if(String(g).substr(0,3).toLowerCase()=="js:")h=g.substr(3);if(String(g).substr(0,11).toLowerCase()=="javascript:")h=g.substr(11);if(String(g).substr(0,7).toLowerCase()=="script:")h=g.substr(7);if(h!==null&&Kb(h)!==""){l=g;try{g=eval(h)}catch(n){if(!pui.gi){pui.gi=true;setTimeout(function(){pui.alert("Expression '"+Kb(h)+"' contains an error:\n\n"+n.message);pui.gi=false},
|
|
@@ -654,7 +654,7 @@ Ab(t);if(w!=null){if(w.comboBoxWidget!=null)w=w.comboBoxWidget.getBox();if(w.l!=
|
|
|
654
654
|
pui.gc=function(){var b="";if(pui.qj!=null)return false;if(pui.isServerBusy())return false;if(pui.pl)return false;if(pui["prioritize onsubmit event"]==true)if(pui.Lg!=null&&pui.Lg!="")b=eval(pui.Lg);var a=pui.Tr();if(typeof a.valid=="boolean"&&a.valid==false)if(pui.G!="true"&&(pui.G!="send data"||a.yp==true)){a.yp=false;pui.mq(a.errors);pui.$d={};pui.ub="";return false}zc();if(typeof b=="function"&&pui["prioritize onsubmit event"]==true)b=b(a);if(pui.Lg!=null&&pui.Lg!=""&&pui["prioritize onsubmit event"]==
|
|
655
655
|
false)try{b="";pui.Zt=a;b=eval(pui.Lg);if(typeof b=="function")b=b(a);delete pui.Zt;if(b==false){pui.$d={};pui.ub="";return false}}catch(c){pui.Fa(c,"Onsubmit Error:\n");pui.$d={};pui.ub="";return false}if(pui.onsubmit!=null&&typeof pui.onsubmit=="function")if(pui.onsubmit()==false){pui.$d={};pui.ub="";return false}pui.Qb=false;pui.Ue();b=false;if(pui.G!="true"&&(pui.G!="send data"||a.yp==true))b=pui.ry(a);if(!b){pui.haltFrames();pui.submitResponse(a)}return true};
|
|
656
656
|
pui.Tr=function(b){function a(z,G){if(z!=null&&z!=""&&G!=null&&G!="")if(typeof z=="object")for(var D in z)s[D]=G;else s[z]=G}function c(z){if(!pui["uppercase cursor fields"])return z;if(typeof z!=="string")return z;return z.toUpperCase()}var e,f,g,h,l,n,m,r,p,s={};if(!b){for(e in pui.oh){f=pui.oh[e];for(g=0;g<f.length;g++){l=f[g];if(l.modified&&(pui.controller!=null||pui.G!="true")){s[e]="1";break}}if(s[e]!="1")s[e]="0"}for(e in pui.Eh){f=pui.Eh[e];for(g=0;g<f.length;g++){l=f[g];if(typeof l.value==
|
|
657
|
-
"string"&&Kb(l.value)==""){s[e]="1";break}}if(s[e]!="1")s[e]="0"}for(e in pui.xh){f=pui.xh[e];for(g=0;g<f.length;g++){l=f[g];if(pui.bp(l)){s[e]="1";break}}if(s[e]!="1")s[e]="0"}pui.cb.forEach(function(z){if(z.
|
|
657
|
+
"string"&&Kb(l.value)==""){s[e]="1";break}}if(s[e]!="1")s[e]="0"}for(e in pui.xh){f=pui.xh[e];for(g=0;g<f.length;g++){l=f[g];if(pui.bp(l)){s[e]="1";break}}if(s[e]!="1")s[e]="0"}pui.cb.forEach(function(z){if(z.Jz&&z.Rb!=null&&z.de!=null&&z.de!=""){var G=pui.Lb(z.Xa)+".storageKey",D=pui.Lb(z.Xa)+".storedState";s[G]=z.Rb;s[D]=z.de}})}f=pui.O;if(b)f=b;for(e in f){n=f[e];l=n[0];if(l.type=="radio")for(h=0;h<n.length;h++){g=n[h];if(g.modified){l=g;break}}var t=l;if(l.comboBoxWidget!=null)t=l.comboBoxWidget.getBox();
|
|
658
658
|
if(l.l!=null)t=l.l.getBox();m=null;if(l.S!=null){m=l.S;if(m=="0")for(g=1;g<n.length;g++){if(n[g].S=="1"){m="1";break}}else if(l.S==""&&l.pui!=null&&l.pui.properties["field type"]=="menu"&&n.length>1)for(g=1;g<n.length;g++)if(n[g].S!=""){m=n[g].S;break}if(l.nj){g=e.split(".");h=g[0];var w=parseInt(g[g.length-1]);if(!isNaN(w)&&w>0){g=h+".rrn";n=g+"="+w;if(pui.$d[n]!=true){if(s[g]==null)s[g]=[];s[g].push(w);pui.$d[n]=true}}}s[e]=m}else{if(pui.modified&&pui.G!="true"&&pui.G!="send data"){if(l.Lq==true&&
|
|
659
659
|
l.modified!=true){s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:pui.getLanguageText("runtimeMsg","ME")});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}if(l.Mq==true&&l.modified==true&&t.maxLength!=null&&t.value!=null&&(t.maxLength!=t.value.length||t.value===t.emptyText)){s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:pui.getLanguageText("runtimeMsg","MF")});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}}if(pui.G!="true"&&pui.G!="send data"&&l.Zl==
|
|
660
660
|
true&&!l.disabled)if(typeof t.value=="string"&&(Kb(t.value)==""||t.value===t.emptyText)||l.fileUpload!=null&&l.fileUpload.getCount()<1){s.valid=false;if(s.errors==null)s.errors=[];g=pui.getLanguageText("runtimeMsg","required");if(l.fileUpload!=null)g=pui.getLanguageText("runtimeMsg","file required");s.errors.push({dom:t,msg:g});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}if(l.fileUpload!=null&&pui.G!="true"&&pui.G!="send data"){g=ud(l.fileUpload);if(g==null)g=vd(l.fileUpload);if(g!=null){s.valid=
|
|
@@ -668,8 +668,8 @@ null)s.errors=[];s.errors.push({dom:t,msg:m.msg});if(t.H!=null&&t.H.ja!=null)t.H
|
|
|
668
668
|
if(s.errors==null)s.errors=[];g=pui.getLanguageText("runtimeMsg","invalid email");s.errors.push({dom:t,msg:g});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}if(typeof l.Cq=="string"){n=pui.ha(l.Cq);w=true;for(g=0;g<n.length;g++)if(Ob(String(n[g]))==m){w=false;break}if(w){s.valid=false;if(s.errors==null)s.errors=[];for(g=0;g<n.length;g++)if(typeof n[g]==="string"&&n[g].trim()==="")n[g]=pui.getLanguageText("runtimeMsg","blank");l=n.length;if(l>1){m=n.pop();n=n.join(", ");if(l>2)n+=",";n+=" "+pui.getLanguageText("runtimeMsg",
|
|
669
669
|
"or")+" "+m}else n=n[0];s.errors.push({dom:t,msg:pui.getLanguageText("runtimeMsg","validValues")+n+"."});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}}if(typeof l.bo=="string"&&typeof l.co=="string"){w=l.co;n=m;if(h.formatting=="Number"){w=Number(w);n=Number(n)}y=w;if(typeof w=="string"){w=Ob(w);y="'"+y+"'"}if(typeof n=="string")n=Ob(n);g="";switch(l.bo){case "Equal":if(w!=n)g="Value must equal "+y+".";break;case "Not Equal":if(w==n)g="Value must not equal "+y+".";break;case "Greater Than":if(n<=
|
|
670
670
|
w)g="Value must be greater than "+y+".";break;case "Greater Than or Equal":if(n<w)g="Value must be greater than or equal to "+y+".";break;case "Less Than":if(n>=w)g="Value must be less than "+y+".";break;case "Less Than or Equal":if(n>w)g="Value must be less than or equal to "+y+".";break}if(g!=""){s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:g});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}}g=null;if(typeof l.Sh=="string"){w=l.Sh;n=m;if(h.formatting=="Number"){w=Number(w);
|
|
671
|
-
n=Number(n)}if(typeof w=="string")w=Ob(w);if(typeof n=="string")n=Ob(n);if(h.formatting=="Date"){n=g=pui.vc.Date.Gs(n,h);w=l.
|
|
672
|
-
l.Rh;n=m;if(h.formatting=="Number"){w=Number(w);n=Number(n)}if(h.formatting=="Date"){n=g==null?pui.vc.Date.Gs(n,h):g;w=l.
|
|
671
|
+
n=Number(n)}if(typeof w=="string")w=Ob(w);if(typeof n=="string")n=Ob(n);if(h.formatting=="Date"){n=g=pui.vc.Date.Gs(n,h);w=l.By}if(n<w){n=l.Sh;if(h.formatting!="Number")n="'"+n+"'";g=pui.getLanguageText("runtimeMsg","invalid low range",[n]);if(l.Rh!=null){m=l.Rh;if(h.formatting!="Number")m="'"+m+"'";g=pui.getLanguageText("runtimeMsg","invalid range",[n,m])}s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:g});if(t.H!=null&&t.H.ja!=null)t.H.ja=false;continue}}if(typeof l.Rh=="string"){w=
|
|
672
|
+
l.Rh;n=m;if(h.formatting=="Number"){w=Number(w);n=Number(n)}if(h.formatting=="Date"){n=g==null?pui.vc.Date.Gs(n,h):g;w=l.Ay}if(typeof w=="string")w=Ob(w);if(typeof n=="string")n=Ob(n);if(n>w){m=l.Rh;if(h.formatting!="Number")m="'"+m+"'";g=pui.getLanguageText("runtimeMsg","invalid high range",[m]);if(l.Sh!=null){n=l.Sh;if(h.formatting!="Number")n="'"+n+"'";g=pui.getLanguageText("runtimeMsg","invalid range",[n,m])}s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:g});if(t.H!=null&&
|
|
673
673
|
t.H.ja!=null)t.H.ja=false;continue}}}s[e]=m;if(l.o!=null){h=e.split(".")[0];g=h+".rrn";n=g+"="+l.o;if(pui.$d[n]!=true){if(s[g]==null)s[g]=[];s[g].push(l.o);pui.$d[n]=true}t=pui.sq[h.toLowerCase()];if(t!=null)s[h+"."+t+"."+l.o]="1"}}}}}if(pui.Ma){s.routine=pui.Ma;if(pui.Sc&&pui.Rc){s.routineRow=pui.Sc;s.routineGrid=pui.Rc}}if(b)return s;if(pui.ub!=null&&pui.ub!=""){b=pui.Zw[pui.ub];if(b!=null&&b>0)s.fkey=String(b);b=pui.Cn[pui.ub];s.aid=b!=null?String(b):pui.Cn.Enter}a(pui.Ca.record,c(pui.r.record));
|
|
674
674
|
a(pui.Ca.field,c(pui.r.field));a(pui.Ca.position,pui.r.position);a(pui.Ca.row,pui.r.row);a(pui.Ca.column,pui.r.column);b=Number(pui.r.row);if(!isNaN(b)&&b>0)s.row=String(b);b=Number(pui.r.column);if(!isNaN(b)&&b>0)s.column=String(b);if(pui.r.Gq!=null)s.wrow=String(pui.r.Gq);if(pui.r.Fq!=null)s.wcolumn=String(pui.r.Fq);for(r in pui.Pk){l=pui.Pk[r];if(l.tf!=null)s[r]=l.tf}for(var x in pui.im){l=pui.im[x];if(l.lu!=null){s[x]=l.lu;if(pui.ub=="PageUp")s[x]=1;if(pui.ub=="PageDown")s[x]+=l.grid.Oo()}}for(var E in pui.Fm)s[E]=
|
|
675
675
|
pui.Fm[E];for(var J in pui.vm){l=pui.vm[J];s[J]=l.grid.expanded?"0":"1"}if(pui.te!=null){r=pui.te.c.qh;m=pui.te.$n;if(r!=null&&m!=null)s[r]=m;r=pui.te.c.Vh;m=pui.te.Wf;if(r!=null&&m!=null)s[r]=m}if(pui.we!=null){r=pui.we.c.xg;m=pui.we.Pi;if(r!=null&&m!=null)s[r]=m;r=pui.we.c.Vh;m=pui.we.Wf;if(r!=null&&m!=null)s[r]=m}if(pui.bl!=null){r=pui.bl.c.As;m=pui.bl.yg;if(r!=null&&m!=null)s[r]=m}for(p in pui.Nk)s[pui.Nk[p]]=pui.sf[p]&&(pui.controller!=null||pui.G!="true")?"1":"0";if(pui.Ul){if(pui.Lm!=null&&
|
|
@@ -677,11 +677,12 @@ pui.ud!=null)s[pui.Lm]=String(parseInt(pui.ud.style.top));if(pui.Jm!=null&&pui.u
|
|
|
677
677
|
if(pui.nb.uq!=null){p=pui.dragDropInfo["target record number"];if(p==null)p=0;s[pui.nb.uq]=String(p)}}if(pui.Ci!=null)s[pui.Ci]=pui.gq?"1":"0";if(pui.controller!=null){p=0;r=pui.Ud.layers;for(g=0;g<r.length;g++){x=r[g].formats;for(h=0;h<x.length;h++)s["pui-recname."+ ++p]=x[h].metaData.screen["record format name"]}}if(typeof pui.beforeRespond==="function")if(p=pui.beforeRespond(s))s=p;return s};
|
|
678
678
|
pui.submitResponse=function(b,a){if(pui.isCloudPreview)setTimeout(function(){pui.Qb=true;pui.cc()},500);else{if(pui.rl){if(!pui.Qb)return false;pui.Qb=false}if(b==null)b=pui.captureData();else if(typeof b==="string")b=pui.captureData(b,a);var c;c=pui.F==null?Vb("PUI0001200.pgm"):Vb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")c+="/"+pui.psid;if(pui.handler!=null&&typeof pui.handler=="string")c=pui.handler;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{c=pui.overrideSubmitUrl(c)}catch(e){}if(pui.handler!=
|
|
679
679
|
null&&typeof pui.handler=="function"){if(pui.Vk){var f=pui.Vk.split("?"),g="";c=f[0];if(f.length>1)g=f[1];var h="";f=[];for(var l=0;l<pui.th.length;l++){var n=pui.th[l][0];a=pui.th[l][1];if(h!="")h+="&";h+=encodeURIComponent(n)+"="+encodeURIComponent(a);f.push('"'+n+'"','"'+a+'"');b[n]=a}if(pui.Uk){if(g!="")g+="&";g+=h}if(g!="")c+="?"+g;if(pui.po){if(pui.Uk)location.href=c;else{g='postTo("'+c+'"';if(f.length>0)g+=","+f.join(",");g+=");";eval(g)}return}else pui.controller=c}pui.handler(b)}else{pui.kb.end();
|
|
680
|
-
try{g=Atrium.getSettings()}catch(m){}g&&g.ACTIMEOUT==="1"&&Atrium.resetInactivityTimeout();pui.Ue();var r=function(){pui.recordTest&&pui.Dc.payloads.push({url:c,data:Object.assign({},b)});if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;ac({url:pui.pg(c),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(p){if(p==null){
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
pui.
|
|
680
|
+
try{g=Atrium.getSettings()}catch(m){}g&&g.ACTIMEOUT==="1"&&Atrium.resetInactivityTimeout();pui.Ue();var r=function(){pui.recordTest&&pui.Dc.payloads.push({url:c,data:Object.assign({},b)});if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;ac({url:pui.pg(c),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(p){if(p==null){var s=function(){if(shutDown()!=false){if(typeof pui!="undefined"&&pui!=null){pui.shutdownOnClose=false;pui.confirmOnClose=false}N=""}};if($c().record===
|
|
681
|
+
"1"){document.body.innerHTML='<div id="close-browser-msg" style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session ended text")+'</div><div style="background-color: transparent" class="genie-sign-on--right"><button id="exitButton" class="genie-sign-on--exit">Exit</button><button id="saveRecordingButton" class="genie-sign-on--save-recording">Save Recording</button></div>';Ab("exitButton").onclick=function(){s()};var t=Ab("saveRecordingButton");
|
|
682
|
+
t.onclick=function(){t.disabled=true;t.innerHTML="Saving...";pui.saveRecording(function(){t.innerHTML="Saved!";setTimeout(function(){s()},750)})}}else{document.body.innerHTML='<div id="close-browser-msg" style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";s()}}else{p.b=pui.runtimeContainer;var w="",y="";if(p!=null&&p.layers!=null&&
|
|
683
|
+
p.layers[0]!=null&&p.layers[0].formats!=null&&p.layers[0].formats[0]!=null&&p.layers[0].formats[0].name!=null&&p.layers[0].formats[0].file!=null){w=p.layers[0].formats[0].name;y=p.layers[0].formats[0].file}if(pui["session timeout retries"]>0)if(w==="TIMOUTSCRN"&&y==="PUISCREENS"||pui.F&&p!=null&&p.exception=="PUI0003"){pui.hq+=1;if(pui.hq<=pui["session timeout retries"]){setTimeout(r,2E3);return}}pui.hq=0;pui.F==null?pui.zl(p,function(){pui.render(p)}):pui.Ky(p)}},onfail:function(p){pui.onoffline==
|
|
684
|
+
null&&!pui["suppress comm errors"]&&pui.alert(pui.Ui(p));pui.cc();pui.fm();pui.onoffline!=null&&pui.onoffline()}})};r()}}};pui.submit=pui.submitResponse;pui.fm=function(){for(var b in pui.O)for(var a=pui.O[b],c=0;c<a.length;c++)if(a[c].S=="1")a[c].S="0";pui.Qb=true};pui.nw=function(b){for(var a in b){var c=b[a],e=Ab(a);if(e!=null){var f=e.H;f!=null&&f.hide();f=new pui.dg(e);f.Yh(c);f.show()}}pui.cc();for(b=0;b<pui.cb.length;b++)pui.cb[b].unMask();pui.unmaskScreen();pui.fm()};
|
|
685
|
+
pui.R=function(b,a,c){if(!pui.p(b)&&!pui.Nb(b)&&!pui.dc(b))return b;if(a==null){if(b.designValue!=null)return b.designValue;return""}var e=b.fieldName;if(a.__pui_show&&b.longName)e=b.longName;if(b.lowerCaseField!=true&&pui.handler==null)e=pui.L(e);if(a.__pui_skipdecode)b.__pui_skipdecode=a.__pui_skipdecode;if(b.dataType=="expression")a=pui.Co(b.fieldName,a);else{a=a[e];if(a==null)a=""}b.value=a;if(b.dataType=="reference"&&c!=null){c=c[e];if(c!=null){b.dataType=pui.Fz(c.dataType);b.dataLength=String(c.dataLength);
|
|
685
686
|
b.decPos=String(c.decPos)}}if(b.formatting=="Text")if(pui.formatting.Ac(b.dataType)){b.textTransform!=null&&delete b.textTransform;b.trimLeading!=null&&delete b.trimLeading;b.trimTrailing!=null&&delete b.trimTrailing;b.formatting="Number";b.numSep="false";b.zeroBalance="false";b.zeroFill="false";b.curSym="";b.units="";b.negNum="-999.00"}return pui.vc.format(b)};
|
|
686
687
|
pui.Co=function(b,a){for(var c=false,e=b.split(" or "),f=0;f<e.length;f++){for(var g=true,h=e[f].split(" and "),l=0;l<h.length;l++){var n=h[l],m=false;if(n.substr(0,1)=="N"){m=true;n=n.substr(1)}n="*IN"+n;n=a[n]=="1";if(m)n=!n;if(!n){g=false;break}}if(g){c=true;break}}if(c)return"1";return"0"};
|
|
687
688
|
pui.Ue=function(){pui.cc();var b;if(pui["loading animation"].css!=null&&!pui.is_old_ie&&pui["loading animation"].path==pui["loading animation"]["default"]&&pui["loading animation"].text==null){b=document.createElement("div");b.className=pui["loading animation"].css}else{if(pui["loading animation"].text!=null){b=document.createElement("div");b.innerHTML=pui["loading animation"].text;b.style.backgroundColor="#cccccc";b.style.border="1px solid #333333";b.style.fontSize="10px";b.style.fontFamily="Sans-Serif"}else{b=
|
|
@@ -706,8 +707,8 @@ onfail:function(y){pui.cc();setTimeout(function(){if(pui.onoffline==null){pui["s
|
|
|
706
707
|
pui.cq=function(b){b.profoundui="1";ac({url:pui.normalizeURL(pui.controller),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(a){if(a==null){pui.ma(document.body);document.body.innerHTML='<div id="close-browser-msg" style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";pui.closeSession()}else{a.b=
|
|
707
708
|
pui.runtimeContainer;var c=a.data;if(c==null)c={};if(a.view!=null)pui.view=a.view;if(a.redirect!=null)location.href=a.redirect;else if(a.controller!=null){pui.controller=a.controller;pui.cq({})}else if(a.html!=null){pui.ma(pui.runtimeContainer);pui.runtimeContainer.innerHTML=a.html}else{var e=a.format;if(e==null)e=a.screen;var f=a.formats;if(f==null)f=a.screens;a=a.appJob||{};pui.show({path:pui.normalizeURL(pui.view),data:c,format:e,formats:f,appJob:a,handler:function(g){pui.cq(g)}})}}},onfail:function(a){pui.onoffline==
|
|
708
709
|
null&&!pui["suppress comm errors"]&&pui.alert(pui.Ui(a));pui.cc();pui.fm();pui.onoffline!=null&&pui.onoffline()}})};
|
|
709
|
-
pui.start=function(){pui.
|
|
710
|
-
pui.qo(e);for(var
|
|
710
|
+
pui.start=function(){pui.vz();var b=$c();pui.pf=b.canvasSize;var a=b.pgm;if(a==null)a=b.program;var c=b.debug,e=b.container,f=b.workstnid,g=b.suffixid,h=b.duplicateid,l=b.log,n=b.plog,m=b.autotest;pui.recordTest=b.record==="1";var r=b.atrium_item,p=b.initpgm,s=b.jsonURL,t=b.replay,w=b.step,y=b.mode,x=b.controller,E=b.mobile==="1",J=b.screenshot==="1",z=b.observe==="1";if(z)pui.Et.enabled=true;var G="";if(b.lang!=null)G=b.lang;pui.em=b.renderLog==="1";var D={};pui.qo!=null&&typeof pui.qo=="function"&&
|
|
711
|
+
pui.qo(e);for(var B=1;B<=255;B++){var K=b["p"+B],Q=b["l"+B];if(K==null||Q==null)break;D["p"+B]=K;D["l"+B]=Q}if(x!=null)pui.controller=x;if(pui.controller!=null){T(document.body,"keydown",pui.Ch);T(document.body,"help",pui.So);T(document.body,"mousedown",pui.bs);pui.cq({})}else{c={container:e,debug:c,log:l,plog:n,autotest:m,workstnid:f,suffixid:g,duplicateid:h,mobile:E,screenshot:J,params:D,observe:z,lang:G,renderLog:pui.em};if(a==null&&s==null&&t==null&&y==null){if(r!=null)c.atrium_item=r;else if(p!=
|
|
711
712
|
null)c.program=p;pui.signon(c)}else{c.program=a;if(s!=null)c.jsonURL=s;if(t!=null)c.replay=t;if(w!=null)c.step=w;if(y!=null)c.mode=y;if(c.mode==="preview")c.previewTab=b.previewTab;pui.run(c)}}};pui.newSession=function(){window.location.reload()};
|
|
712
713
|
pui.closeSession=function(){if(window.parent!=window&&pui.sg(window.parent))window.Atrium.closeTab();else{var b=pui.hi(window.parent);if(window.parent!=window&&b&&window.parent.pui&&window.parent.pui.isCloud){var a=window.parent.Ext;if(a&&a.getCmp)if(a=a.getCmp("_south_panel_stop"))if(typeof a.handler==="function"){a.handler();return}}if(window.parent!=window&&b&&window.parent.noderun&&typeof window.parent.noderun.stopApp==="function")window.parent.noderun.stopApp();else{pui.ma(document.body);document.body.innerHTML=
|
|
713
714
|
'<div id="close-browser-msg" style="width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";try{window.close()}catch(c){}if(window.puiMobileClient!=null)window.location.href="index.html"}}};
|
|
@@ -716,8 +717,8 @@ if(!pui.is_old_ie){h=window.pageYOffset;l=window.pageXOffset}var n=b(pui.runtime
|
|
|
716
717
|
pui.runtimeContainer.appendChild(f);f.Hx=true;f.style.position="absolute";f.style.padding="0px";f.style.left="0px";f.style.top="0px";if(pui.F!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){f.style.display="none";setTimeout(function(){var h=b(pui.runtimeContainer);f.style.left=0-h.x+"px";f.style.top=0-h.y+"px";f.style.display=""},0)}f.style.width=c+"px";f.style.height=e+"px";f.style.backgroundColor=pui["window mask color"];pui.hd++;f.style.zIndex=pui.hd;var g=pui["window mask opacity"];
|
|
717
718
|
f.style.opacity=g/100;f.style.filter="alpha(opacity="+g+")";if(typeof f.style.MozUserSelect!="undefined")f.style.MozUserSelect="none";T(window,"resize",function(){if(!(pui.resizeFrequency!=null&&pui.pt!=null&&(new Date).getTime()-pui.pt<pui.resizeFrequency)){pui.pt=(new Date).getTime();c=document.documentElement.clientWidth-2;e=document.documentElement.clientHeight-2;if(f!=null){f.style.height=e+"px";f.style.width=c+"px"}a()}});T(window,"scroll",a)};
|
|
718
719
|
pui.unmaskScreen=function(){if(pui.kj!=null){var b=pui.kj.parentNode;b==pui.runtimeContainer&&b.removeChild(pui.kj)}};
|
|
719
|
-
pui.
|
|
720
|
-
f.style.zIndex=pui.hd;f.style.position="absolute";var h;if(e!=null)h=pui.R(e.metaData.screen["window left"],e.data,e.ref);pui.lp=h;if(h==null)h="0px";if(h.length<=2||h.substr(h.length-2)!="px"){h=parseInt(h);if(isNaN(h))h=0;h=h*pui.
|
|
720
|
+
pui.mz=function(b,a){function c(n){n=b.b.getElementsByTagName(n);for(var m=0;m<n.length;m++){var r=n[m];if(r.onclick)r.onclick=null;r.id="";r.removeAttribute("id");r.disabled=true;r.readOnly=true;r.Ka!=null&&typeof r.Ka.nm=="function"&&r.Ka.nm()}}var e=a.formats[0];pui.cc();c("a");c("input");c("button");c("div");c("select");c("textarea");var f;if(e!=null)f=pui.R(e.metaData.screen["mask screen"],e.data,e.ref);var g=true;if(f=="false")g=false;g&&pui.maskScreen(b);f=document.createElement("div");pui.hd++;
|
|
721
|
+
f.style.zIndex=pui.hd;f.style.position="absolute";var h;if(e!=null)h=pui.R(e.metaData.screen["window left"],e.data,e.ref);pui.lp=h;if(h==null)h="0px";if(h.length<=2||h.substr(h.length-2)!="px"){h=parseInt(h);if(isNaN(h))h=0;h=h*pui.uz+pui.leftOffset;h+="px";pui.Ul=false}var l;if(e!=null)l=pui.R(e.metaData.screen["window top"],e.data,e.ref);pui.mp=l;if(l==null)l="0px";if(l.length<=2||l.substr(l.length-2)!="px"){l=parseInt(l);if(isNaN(l))l=0;l=l*pui.pq+pui.Ez;l+="px";pui.Ul=false}f.style.left=h;f.style.top=
|
|
721
722
|
l;f.Bc=true;f.className="pui-window-div";pui.runtimeContainer.appendChild(f);b.b=f;pui.ud=f};pui.rw=function(){for(var b=pui.getDimensions(pui.ud),a,c=0;c<pui.Km.length;c++){a=pui.getDimensions(pui.Km[c]);if(a.x1!=a.x2&&a.y1!=a.y2)break}c=parseInt((a.x2-(b.x2-b.x1))/2)-b.x1;a=parseInt((a.y2-(b.y2-b.y1))/2)-b.y1;if(c<-b.x1)c=-b.x1;if(a<-b.y1)a=-b.y1;pui.ud.style.left=c+"px";pui.ud.style.top=a+"px"};
|
|
722
723
|
pui.getDimensions=function(b){for(var a={x1:99999,y1:99999,x2:0,y2:0},c=b.firstChild;c!=null;){if(!c.Bc&&!c.Hx&&c.style!=null&&c.style.position=="absolute"&&c.pui){var e=c.offsetLeft,f=c.offsetTop,g=e+c.offsetWidth,h=f+c.offsetHeight;if(e<a.x1)a.x1=e;if(f<a.y1)a.y1=f;if(g>a.x2)a.x2=g;if(h>a.y2)a.y2=h}c=c.nextSibling}if(b.id=="5250"&&a.x1==99999&&a.x2==0&&a.y1==99999&&a.y2==0){a.x1=0;a.y1=0;a.x2=b.parentNode.offsetWidth;a.y2=b.parentNode.offsetHeight}if(a.x1==99999)a.x1=0;if(a.y1==99999)a.y1=0;return a};
|
|
723
724
|
pui.showMessageSubfileHelp=function(b){if(pui.Cc!=null&&!document.body.contains(pui.Cc))pui.Cc=null;if(pui.Cc!=null&&pui.Cc.style.display!="none"&&pui.Cc.parentNode!=null)pui.Cc.style.display="none";else{var a=b.id,c=a.substr(a.indexOf("."));a=Tc("_msgsflid"+c);var e=Tc("_msgsfldate"+c);if(e.length==7&&e.substr(0,1)=="1"){e="20"+e.substr(1);var f=Number(e.substr(0,4)),g=Number(e.substr(4,2))-1;e=Number(e.substr(6,2));e=new Date(f,g,e);f=pui.appJob.dateFormat;if(f=="")f="*ISO";f=pui.formatting.keywords.DATFMT[f].gb.replace(/\B/g,
|
|
@@ -731,12 +732,12 @@ null){pui.r.row=Number(pui.r.row)+e.row;if(f!=null&&f.h)pui.r.row-=1;pui.r.row=S
|
|
|
731
732
|
pui.bs=function(b){var a=false;b=tb(b);if(b==document.body)a=true;if(b==pui.runtimeContainer)a=true;if(b.parentNode!=null&&b.parentNode.panel!=null)a=true;if(a){pui.r.field=null;pui.r.position=null;pui.r.Ao=null}};
|
|
732
733
|
pui.Fk=function(b){b=tb(b);var a=b.className;if(a==null)a="";a=Kb(a);if(a.indexOf(b.focusClass)==-1)a+=" "+b.focusClass;b.className=a;if(b.parentNode&&b.parentNode.pui&&b.parentNode.pui.properties["field type"]==="combo box"){a=b.parentNode;var c=a.className;if(c==null)c="";c=Kb(c);if(c.indexOf(b.focusClass)==-1)c+=" "+b.focusClass;a.className=c}};
|
|
733
734
|
pui.bm=function(b){b=tb(b);var a=b.className;if(a==null)a="";for(a=Kb(a);a.indexOf(b.focusClass)>=0;)a=a.replace(b.focusClass,"");b.className=Kb(a);if(b.parentNode&&b.parentNode.pui&&b.parentNode.pui.properties["field type"]==="combo box"){a=b.parentNode;var c=a.className;if(c==null)c="";for(c=Kb(c);c.indexOf(b.focusClass)>=0;)c=c.replace(b.focusClass,"");a.className=c}};
|
|
734
|
-
pui.Kn=function(b){b=b||window.event;var a=b.keyCode;if(a<48||a>90&&a<96||a>111&&a<186)if(a!=32)return;b=tb(b);if(b.comboBoxWidget!=null)b=b.comboBoxWidget.getBox();if(b.l!=null)b=b.l.getBox();if(b.value.length==b.maxLength&&(pui.is_touch||zb(b)>=b.maxLength)){pui.ub="Enter";pui.click()}};pui.
|
|
735
|
+
pui.Kn=function(b){b=b||window.event;var a=b.keyCode;if(a<48||a>90&&a<96||a>111&&a<186)if(a!=32)return;b=tb(b);if(b.comboBoxWidget!=null)b=b.comboBoxWidget.getBox();if(b.l!=null)b=b.l.getBox();if(b.value.length==b.maxLength&&(pui.is_touch||zb(b)>=b.maxLength)){pui.ub="Enter";pui.click()}};pui.Fz=function(b){switch(b){case 0:return"char";case 7:return"zoned";case 9:return"packed";case 10:return"floating";case 15:return"graphic";case 16:return"date";case 17:return"time";case 18:return"timestamp";default:return"char"}};
|
|
735
736
|
pui.Qo=function(b){function a(g){for(var h=[],l=[],n=document.querySelectorAll("INPUT,SELECT,TEXTAREA"),m=null,r=null,p=0;p<n.length;p++){m=n[p];if(m==g)r=p;else!m.clientHeight||!m.clientWidth||m.readOnly=="true"||m.disabled=="true"||m.tabIndex=="-1"||(r?l.push(m):h.push(m))}g=l.concat(h);if(g.length>0)return g[0];return null}for(b=b;(b=a(b))!=null;){var c=b;if(b!=null&&b.comboBoxWidget!=null)c=b.comboBoxWidget.getBox();if(b!=null&&b.l!=null)c=b.l.getBox();var e=c.tagName;if(e=="INPUT"||e=="SELECT"||
|
|
736
737
|
e=="TEXTAREA"||e=="A")if(!c.readOnly&&!c.disabled&&b.style.visibility!="hidden"&&c.tabIndex!="-1"){try{c.focus();if(document.activeElement!=c)continue;pui["highlight on focus"]&&c.select();setTimeout(function(){pui.Zd(null,c)},0)}catch(f){}break}}};pui.Vl=function(b){return b.search(/calc/i)>=0?true:false};
|
|
737
738
|
pui.dl=function(b,a){var c,e;if(a=="left"||a=="right"){c=b.style[a];e=b.parentNode.offsetWidth}if(a=="bottom"||a=="top"){c=b.style[a];e=b.parentNode.offsetHeight}var f;f=c.replace(/calc|[{()}]/gi,"");f=f.split(" ");if(f.length<2){if(f[0].search("%")>=0)return pui.Je(f[0],e);return pui.Je(f[0])}c=f[1];e=f[0].search("%")>=0?pui.Je(f[0],e):pui.Je(f[0]);f=pui.Je(f[2]);return eval(e+c+f)};
|
|
738
739
|
pui.Je=function(b,a){if(b==="")return 0;if(b.search("%")>=0){if(!a)return null;return Math.round(parseInt(b)/100*parseInt(a))}return b.search(/rem/i)>=0||b.search(/em/i)>=0?parseInt(parseInt(b)*16):parseInt(b)};
|
|
739
|
-
pui.fl=function(b,a){function c(D){D=p.getElementsByTagName(D);for(var
|
|
740
|
+
pui.fl=function(b,a){function c(D){D=p.getElementsByTagName(D);for(var B,K=0;K<D.length;K++){B=D[K];B.tagName=="A"&&B.parentNode.pui!=null&&B.parentNode.pui.properties!=null&&B.parentNode.pui.properties["field type"]=="hyperlink"&&B.parentNode.tabIndex==-1||B.tagName.toUpperCase()=="INPUT"&&B.type.toUpperCase()=="BUTTON"||B.tabIndex==-1||x.push(B)}}var e,f,g,h;if(b.parentNode.comboBoxWidget!=null)b=b.parentNode;if(b.parentNode.l!=null)b=b.parentNode;var l=b.parentNode.offsetWidth,n=b.parentNode.offsetHeight,
|
|
740
741
|
m=pui.Vl(b.style.left)?pui.dl(b,"left"):pui.Je(b.style.left,l);if(isNaN(m))return null;var r=pui.Vl(b.style.top)?pui.dl(b,"top"):pui.Je(b.style.top,n);if(isNaN(r))return null;var p=b.parentNode,s=p.parentNode;if(s.grid!=null){e=parseInt(b.parentNode.style.left);if(isNaN(e))return null;f=parseInt(b.parentNode.style.top);if(isNaN(f))return null;g=parseInt(s.style.left);if(isNaN(g))return null;h=parseInt(s.style.top);if(isNaN(h))return null;m+=e+g;r+=f+h;p=s.parentNode}var t=null,w=99999,y=99999,x=[];
|
|
741
742
|
c("input");c("select");c("textarea");c("a");for(var E=0;E<x.length;E++){var J=x[E];if(!(J.readOnly||J.disabled||J.style.visibility=="hidden"||J.parentNode.style.visibility=="hidden")){if(J.tagName=="A")J=J.parentNode;f=J;if(J.parentNode.comboBoxWidget!=null)f=J.parentNode;if(J.parentNode.l!=null)f=J.parentNode;J=pui.Vl(f.style.left)?pui.dl(f,"left"):pui.Je(f.style.left,l);if(!isNaN(J)){var z=pui.Vl(f.style.top)?pui.dl(f,"top"):pui.Je(f.style.top,n);if(!isNaN(z)){s=f.parentNode.parentNode;if(s.grid!=
|
|
742
743
|
null){e=parseInt(f.parentNode.style.left);if(isNaN(e))return null;f=parseInt(f.parentNode.style.top);if(isNaN(f))return null;g=parseInt(s.style.left);if(isNaN(g))continue;h=parseInt(s.style.top);if(isNaN(h))continue;J+=e+g;z+=f+h}e=Math.abs(m-J);s=Math.abs(r-z);if(a=="down"&&z>r||a=="up"&&r>z)if(s<y||s==y&&e<w){t=x[E];w=e;y=s}if(a=="right"&&J>m||a=="left"&&m>J)if(s<=3&&e<w){t=x[E];w=e;y=s}}}}}if(t!=null)try{t.focus();pui["highlight on focus"]&&t.select();setTimeout(function(){pui.Zd(null,t)},0)}catch(G){}};
|
|
@@ -769,29 +770,29 @@ this.fc.parentNode&&this.fc.parentNode.removeChild(this.fc);this.fc=null}},Wv:fu
|
|
|
769
770
|
"0";this.Pf.style.height="100%"}pui.resize()}};function rd(b){var a=(new Date).getTime();if(b)a-=b;return a}pui.Xw=function(b){for(b=b.parentElement;b;){b=b;if(b.grid)return b.grid;b=b.parentElement}return null};
|
|
770
771
|
pui.downloadJobLog=function(b){function a(){f=new XMLHttpRequest;f.onreadystatechange=c;f.open("POST",Vb("PUI0009118.pgm"),true);f.setRequestHeader("Content-type","application/x-www-form-urlencoded");f.send("jobinfo="+h)}function c(){if(f.readyState==4)if(f.status==200)if(typeof f.response==="string"&&f.response.length>0)if(f.getResponseHeader("Content-Disposition")==="attachment")saveAs(new Blob([f.response]),l,{type:"text/plain;charset=utf-8"}).onwriteend=e;else g.innerHTML=pui.getLanguageText("runtimeMsg",
|
|
771
772
|
"failed to load x",["Job Log"])+"<br>"+f.response;else g.innerHTML="Job log download error: Empty Response";else g.innerHTML="Job log download error:<br>HTTP "+f.status+"<br>"+f.responseURL}function e(){g.innerHTML=pui.getLanguageText("runtimeText","upload finished text");setTimeout(function(){g.innerHTML=""},3E3)}var f,g,h,l;if(arguments.length===1&&typeof b==="object"&&b!==null){l=b.filename;h=b.jobinfo;g=b.outputEl}else if(arguments.length===4){h=arguments[0];l=arguments[2];g=arguments[3]}if(g==
|
|
772
|
-
null||b==null||typeof h!=="string"||typeof l!=="string")console.log("Cannot download job log. Parameter(s) to function are incorrect.");else{pui.ma(g);g.innerHTML=pui.getLanguageText("runtimeMsg","downloading x",["..."]);typeof saveAs=="function"||pui.No(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null?a():pui.loadJS({path:"/jszip/FileSaver.min.js",callback:a})}};pui.
|
|
773
|
+
null||b==null||typeof h!=="string"||typeof l!=="string")console.log("Cannot download job log. Parameter(s) to function are incorrect.");else{pui.ma(g);g.innerHTML=pui.getLanguageText("runtimeMsg","downloading x",["..."]);typeof saveAs=="function"||pui.No(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null?a():pui.loadJS({path:"/jszip/FileSaver.min.js",callback:a})}};pui.lz=function(){function b(){var l,n;for(l=h.options.length-1;l>=0;l--)h.remove(l);var m=false;for(l=0;l<pui.rp.length;l++){var r=pui.rp[l];if(r.height!=null)if(r.width!=null){n=h.options.length;h.options[n]=new Option(r.description,r.height+"x"+r.width);if(r.height==f&&r.width==g||r.width==f&&r.height==g)m=h.options[n].selected=true}}if(!m){n=h.options.length;h.options[n]=new Option(f+" x "+g,f+"x"+g);h.options[n].selected=true}}var a=Ab("pui");if(a!=null){var c=document.createElement("div"),e=
|
|
773
774
|
pui.pf.split("x"),f=Number(e[1]);if(isNaN(f))f=320;var g=Number(e[0]);if(isNaN(g))g=640;c.style.position="absolute";c.Dx=true;c.style.border="2px solid #999999";c.style.backgroundColor="#333333";c.style.borderRadius="15px";c.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";c.style.width=g+60+"px";c.style.height=f+60+"px";c.style.top="40px";c.style.left="20px";a.style.width=g+"px";a.style.height=f+"px";a.style.left="50px";a.style.top="70px";a.classList.add("pui-mobile-emulator");a.parentNode.insertBefore(c,
|
|
774
775
|
a);var h=document.createElement("select");h.style.position="absolute";h.style.width="200px";h.style.top="10px";h.style.left="50px";h.style.fontFamily="sans-serif";h.style.fontSize="13px";b();ac({url:Vb("PUI0009112.pgm"),method:"post",params:{workspace_id:pui.isCloud?pui.cloud.ws.id:""},suppressAlert:true,handler:function(l){if(l.success!=true)l.message!=null?pui.alert(l.message):pui.alert("Error occurred while loading canvas sizes.");else{l=l.sizes;if(l!=null&&l!=""){pui.rp=eval(l);b()}}},onfail:function(){pui.alert("Error occurred while loading canvas sizes.")}});
|
|
775
776
|
h.onchange=function(){var l=h.value.split("x");f=Number(l[1]);if(isNaN(f))f=320;g=Number(l[0]);if(isNaN(g))g=640;c.style.width=g+60+"px";c.style.height=f+60+"px";a.style.width=g+"px";a.style.height=f+"px";pui.resize()};document.body.appendChild(h);e=document.createElement("img");e.src="/profoundui/proddata/images/FlatIcons/24x24/rotate.png";e.style.position="absolute";e.style.top="8px";e.style.left="260px";e.style.cursor="pointer";e.title="Rotate";e.onclick=function(){var l=c.style.height;c.style.height=
|
|
776
777
|
c.style.width;c.style.width=l;l=a.style.height;a.style.height=a.style.width;a.style.width=l;pui.resize()};document.body.appendChild(e)}};
|
|
777
778
|
pui.qo=function(b){if(b==null)b="pui";if(typeof b=="string")b=document.getElementById(b);if(b!=null){var a;if(b.parentNode.className=="ipad-emulator"){pui.qa=true;a=false}if(b.parentNode.className=="iphone-emulator"){pui.qa=true;pui.Gf=true;a=false}if(pui.qa){if(a){var c=document.createElement("img");c.src="/profoundui/proddata/images/ipad/finger.png";c.style.position="absolute";c.style.cursor="crosshair";c.style.zIndex=99;T(document,"mousemove",function(e){var f=Xc(e);f+=3;c.style.left=f+"px";e=
|
|
778
779
|
Yc(e);e+=3;c.style.top=e+"px"});T(document,"mousedown",function(e){var f=Xc(e);f+=1;c.style.left=f+"px";e=Yc(e);e+=1;c.style.top=e+"px"})}b=document.createElement("input");b.style.position="absolute";if(pui.Gf){b.style.left="90px";b.style.top="164px";b.style.width="223px";b.style.backgroundColor="#d3dae4"}else{b.style.left="285px";b.style.top="89px";b.style.width="455px"}b.style.color="#999999";b.style.borderStyle="none";b.style.fontFamily="Trebuchet MS, Sans-Serif";b.style.fontSize="14px";b.value=
|
|
779
|
-
location.href;if(!pui.Gf){b.onclick=function(){Ab("ipadKeyboard").style.display=""};b.onblur=function(){Ab("ipadKeyboard").style.display="none"}}document.body.appendChild(b);a&&document.body.appendChild(c)}else if(pui.pf!=null){pui.
|
|
780
|
+
location.href;if(!pui.Gf){b.onclick=function(){Ab("ipadKeyboard").style.display=""};b.onblur=function(){Ab("ipadKeyboard").style.display="none"}}document.body.appendChild(b);a&&document.body.appendChild(c)}else if(pui.pf!=null){pui.lz();pui.qa=true;pui.Gf=true}}};
|
|
780
781
|
pui.rp=[{description:"iPhone 6/7/8",width:375,height:667},{description:"iPhone X/XS/11",width:375,height:812},{description:"iPhone XS Max/11 Pro Max",width:414,height:896},{description:"iPad Mini",width:768,height:1024},{description:"iPad Pro",width:1024,height:1366},{description:"Galaxy S8/S9",width:360,height:740},{description:"Galaxy S10",width:360,height:760},{description:"Galaxy S20",width:360,height:800},{description:"Galaxy Tablet",width:800,height:1280}];pui.dragDropInfo={};
|
|
781
|
-
pui.cw=function(b,a){function c(x){function E(
|
|
782
|
-
gb=pui.$c(ga.parentNode);
|
|
783
|
-
|
|
784
|
-
true;
|
|
785
|
-
b.id;pui.dragDropInfo.text+=n.Ea!=null?" off of row "+n.Ea+" of grid "+n.id:" off of element "+n.id;l("ondragleave")}if(
|
|
786
|
-
"ondragenter: Dragging row "+m+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=n.Ea==0?" before row "+(n.Ea+1)+" of grid "+n.id:n.Ea!=null?" after row "+n.Ea+" of grid "+n.id:" over element "+n.id;l("ondragenter");if(e()||f())if(s>=0){clearTimeout(r);r=setTimeout(g,s)}}}K||ub(
|
|
787
|
-
E);Zb(document,"pointerup",J)}else{Zb(document,"mousemove",E);Zb(document,"mouseup",J)}document.onselectstart=
|
|
788
|
-
m+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=n.Ea==0?" before row "+(n.Ea+1)+" of grid "+n.id:n.Ea!=null?" after row "+n.Ea+" of grid "+n.id:" into element "+n.id;if(
|
|
789
|
-
null||pui.nb.uq){pui.nb.gc=true;pui.G=pui.jo;pui.gc();pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null}}}if(!t&&pui.nb.gc!=true){b.style.left=
|
|
782
|
+
pui.cw=function(b,a){function c(x){function E(la){la.pointerType&&la.stopImmediatePropagation&&la.stopImmediatePropagation();var ha=Yc(la),La=Xc(la),ra=ha-Ea,xa=La-Aa;if(xa==0&&ra==0)return true;pui.Ys(ga)||document.body.appendChild(ga);if(w&&b.grid.Jd){var Ba=Ab(b.grid.Jd);Ba.style.visibility="hidden";Ba.style.display="none"}if(t){ra+=B;xa+=D}ga.style.top=C+ra+"px";ga.style.left=V+xa+"px";K&&la.preventDefault();ra=U;xa=false;for(Ba=0;Ba<ea.length;Ba++){var ya=ea[Ba],bb=ga.offsetLeft,Ca=ga.offsetTop,
|
|
783
|
+
gb=pui.$c(ga.parentNode);bb+=gb[0];Ca+=gb[1];gb=bb+ga.offsetWidth;var eb=Ca+ga.offsetHeight;if(ya.Nu==null||ya.Ou==null){var lb=pui.$c(ya.parentNode);ya.Nu=lb[0];ya.Ou=lb[1]}lb=ya.offsetLeft+ya.Nu;var xb=ya.offsetTop+ya.Ou,Bb=lb+ya.offsetWidth,pb=xb+ya.offsetHeight;if(ya.parentNode.getAttribute("container")=="true"){var rb=Bb-ya.offsetWidth+ya.parentNode.offsetWidth-ya.offsetLeft;if(rb<Bb)Bb=rb}rb=false;if(ya.Oe!=null){var cb=pui.$c(ya.Oe.c),kb=cb[1]+ya.Oe.c.offsetHeight;if(La>cb[0]+ya.Oe.c.offsetWidth||
|
|
784
|
+
La<cb[0]||ha>kb||ha<cb[1])rb=true}if(xa||lb>gb||Bb<bb||xb>eb||pb<Ca||rb)if(ya.Oe!=null)pui.da(ya,"grid-drop-target");else{if(ya.tagName=="IMG")if(ya.nf!=null)ya.style.backgroundColor=ya.nf;if(ya.Ei!=null)ya.style.borderColor=ya.Ei}else{if(ya.Oe!=null)pui.Q(ya,"grid-drop-target");else{if(ya.Ei==null)ya.Ei=ya.style.borderColor;if(ya.Ei==null)ya.Ei="";ya.style.borderColor="#9999ff";if(ya.tagName=="IMG"){if(ya.nf==null)ya.nf=ya.style.backgroundColor;if(ya.nf==null)ya.nf="";ya.style.backgroundColor="#D8F0FD"}}xa=
|
|
785
|
+
true;U=ya}}xa||(U=null);if(ra!=U){clearTimeout(r);if(ra!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ga;pui.dragDropInfo.event=la;n=h(ra);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Ea!=null)pui.dragDropInfo["target record number"]=n.Ea;pui.dragDropInfo.text=m!=null?"ondragleave: Dragging row "+m+" of grid "+b.id:"ondragleave: Dragging element "+
|
|
786
|
+
b.id;pui.dragDropInfo.text+=n.Ea!=null?" off of row "+n.Ea+" of grid "+n.id:" off of element "+n.id;l("ondragleave")}if(U!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ga;pui.dragDropInfo.event=la;n=h(U);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Ea!=null)pui.dragDropInfo["target record number"]=n.Ea;pui.dragDropInfo.text=m!=null?
|
|
787
|
+
"ondragenter: Dragging row "+m+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=n.Ea==0?" before row "+(n.Ea+1)+" of grid "+n.id:n.Ea!=null?" after row "+n.Ea+" of grid "+n.id:" over element "+n.id;l("ondragenter");if(e()||f())if(s>=0){clearTimeout(r);r=setTimeout(g,s)}}}K||ub(la)}function J(){clearTimeout(r);if(t){pui.Ys(ga)&&ga.parentNode.removeChild(ga);ga=null}if(K){Zb(document,"touchmove",E);Zb(document,"touchend",J)}else if(x.pointerType){Zb(document,"pointermove",
|
|
788
|
+
E);Zb(document,"pointerup",J)}else{Zb(document,"mousemove",E);Zb(document,"mouseup",J)}document.onselectstart=pa;if(U!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ga;pui.dragDropInfo.event=x;n=h(U);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Ea!=null)pui.dragDropInfo["target record number"]=n.Ea;pui.dragDropInfo.text=m!=null?"ondrop: Dropped row "+
|
|
789
|
+
m+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=n.Ea==0?" before row "+(n.Ea+1)+" of grid "+n.id:n.Ea!=null?" after row "+n.Ea+" of grid "+n.id:" into element "+n.id;if(U.Oe!=null)pui.da(U,"grid-drop-target");else{if(U.tagName=="IMG")U.style.backgroundColor=U.nf;if(U.nf!=null)U.style.borderColor=U.nf}if(!(n.dom.id==b.id&&m!=null&&n.Ea!=null&&(m==n.Ea||m==n.Ea+1))){pui.dragDropInfo.cancel=false;l("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.nb.ko!=null||pui.nb.lo||pui.nb.tq!=
|
|
790
|
+
null||pui.nb.uq){pui.nb.gc=true;pui.G=pui.jo;pui.gc();pui.G="false";pui.Ma=null;pui.Sc=null;pui.Rc=null}}}if(!t&&pui.nb.gc!=true){b.style.left=V+"px";b.style.top=C+"px"}if(w)b.grid.xo=false;m=n=null}var z;x.pointerType&&x.stopImmediatePropagation&&x.stopImmediatePropagation();z=tb(x);var G=pui.$c(b.parentNode),D=G[0],B=G[1],K=false;if(x)if(x.touches!=null){if(x.touches.length!=1)return;K=true}else if(x.pointerType==="touch")K=true;K&&x.preventDefault();var Q;m=null;if(y)if(z.tagName=="TEXTAREA"||
|
|
790
791
|
z.tagName=="INPUT")return;if(w){var Y=b.grid.dataArray;if(b.grid.isFiltered())Y=b.grid.X;G=b.grid.cells.length-1;if(!b.grid.ea()){Q=Y.length-b.grid.j+1;if(G>Q)G=Q}Q=0;if(b.grid.h)Q=1;z=tb(x);if(z.tagName=="A"||z.tagName=="IMG"||z.tagName=="INPUT"||z.tagName=="SELECT"||z.tagName=="TEXTAREA")return;for(;z!=null&&(z.row==null||z.col==null);)z=z.parentNode;if(z!=null&&z.row>=Q)Q=z.row;else return;if(Q>G)return;m=Q+b.grid.j;if(b.grid.h)m-=1;if(Y.length>0&&Y[m-1]!==null&&Y[m-1].length!=0&&Y[m-1].o!=null)m=
|
|
791
|
-
Y[m-1].o;b.grid.xo=true}G=a["drop targets"];var ea=[];if(G!=null&&G!=""){G=G.split(",");for(z=0;z<G.length;z++){var P=Ab(G[z]);if(P!=null)if(P.grid!=null){var
|
|
792
|
+
Y[m-1].o;b.grid.xo=true}G=a["drop targets"];var ea=[];if(G!=null&&G!=""){G=G.split(",");for(z=0;z<G.length;z++){var P=Ab(G[z]);if(P!=null)if(P.grid!=null){var W=P.grid.k,oa=W.length-1;if(!P.grid.ea()){Y=P.grid.dataArray;if(P.grid.isFiltered())Y=P.grid.X;var da=Y.length-P.grid.j+2;if(oa>da)oa=da}P=da=P.grid.h?1:0;if(Y.length==0)oa=da-1;for(da=da;da<W.length;da++){if(da<=oa)P=W[da].ss=da;else W[da].ss=P;ea.push(W[da])}}else ea.push(P)}}var ga=b;if(t){if(w){Y=b.grid.cells[Q];Q=Y[0];ga=document.createElement("div");
|
|
792
793
|
ga.style.position="absolute";ga.style.left=b.style.left;ga.style.top=parseInt(b.style.top)+parseInt(Q.style.top)+"px";z=parseInt(b.style.width);z-=2;if(a.scrollbar!="none")z-=16;if(z<5)z=5;ga.style.width=z+"px";Q=parseInt(Q.style.height);Q-=2;if(Q<5)Q=5;ga.style.height=Q+"px";for(z=0;z<Y.length;z++){Q=Y[z].cloneNode(true);Q.style.top="0px";Q.onclick=null;Q.onmousedown=null;Q.onmouseup=null;ga.appendChild(Q)}}else ga=b.cloneNode(true);ga.style.zIndex=701;if(!pui.qa)ga.style.cursor="move";ga.style.opacity=
|
|
793
|
-
0.6;ga.style.filter="alpha(opacity=60)";ga.style.border="1px solid #333333"}if(ga.style.top.indexOf("calc")!==-1)ga.style.top=window.getComputedStyle(b,null).getPropertyValue("top");if(ga.style.left.indexOf("calc")!==-1)ga.style.left=window.getComputedStyle(b,null).getPropertyValue("left");var Aa=Xc(x),
|
|
794
|
-
m;pui.dragDropInfo.proxy=ga;pui.dragDropInfo.event=x;pui.dragDropInfo.text=m!=null?"ondragstart: Dragging row "+m+" of grid "+b.id:"ondragstart: Dragging element "+b.id;l("ondragstart");if(K){T(document,"touchmove",E);T(document,"touchend",J)}else if(x.pointerType){T(document,"pointermove",E);T(document,"pointerup",J)}else{T(document,"mousemove",E);T(document,"mouseup",J)}document.onselectstart=
|
|
794
|
+
0.6;ga.style.filter="alpha(opacity=60)";ga.style.border="1px solid #333333"}if(ga.style.top.indexOf("calc")!==-1)ga.style.top=window.getComputedStyle(b,null).getPropertyValue("top");if(ga.style.left.indexOf("calc")!==-1)ga.style.left=window.getComputedStyle(b,null).getPropertyValue("left");var Aa=Xc(x),Ea=Yc(x),V=parseInt(ga.style.left),C=parseInt(ga.style.top),U=null,pa=document.onselectstart;pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=
|
|
795
|
+
m;pui.dragDropInfo.proxy=ga;pui.dragDropInfo.event=x;pui.dragDropInfo.text=m!=null?"ondragstart: Dragging row "+m+" of grid "+b.id:"ondragstart: Dragging element "+b.id;l("ondragstart");if(K){T(document,"touchmove",E);T(document,"touchend",J)}else if(x.pointerType){T(document,"pointermove",E);T(document,"pointerup",J)}else{T(document,"mousemove",E);T(document,"mouseup",J)}document.onselectstart=ta(false)}function e(){if(n.row==null)return false;if(n.grid.Jb())return false;if(n.row==0)return true;
|
|
795
796
|
if(n.row==1&&n.grid.h)return true;return false}function f(){if(n.row==null)return false;if(n.grid.Yb())return false;if(n.row==n.grid.cells.length)return true;return false}function g(){var x=false;if(e()){n.grid.j-=1;n.Ea-=1;x=true}else if(f()){n.grid.j+=1;n.Ea+=1;x=true}if(x){n.grid.Ec?n.grid.d.xd(n.grid.j):n.grid.getData();pui.dragDropInfo.text=m!=null?"ondragleave: Dragging row "+m+" of grid "+b.id:"ondragleave: Dragging element "+b.id;pui.dragDropInfo.text+=" off of row "+pui.dragDropInfo["target record number"]+
|
|
796
797
|
" of grid "+n.id;l("ondragleave");pui.dragDropInfo["target record number"]=n.Ea;pui.dragDropInfo.text=m!=null?"ondragenter: Dragging row "+m+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=n.Ea==0?" before row "+(n.Ea+1)+" of grid "+n.id:" after row "+n.Ea+" of grid "+n.id;l("ondragenter");clearTimeout(r);r=setTimeout(g,p+35)}}function h(x){var E=x.Oe;if(E==null)return{dom:x,id:x.id};else{x=x.ss;var J=E.j-1+x-(E.h?1:0),z=J>0?J:0,G=E.isFiltered()?E.X:E.dataArray;if(J>
|
|
797
798
|
0&&G.length>0&&G[0]&&G[0].o!=null)z=J<G.length?G[J-1].o:G[G.length-1].o;return{dom:E.c,grid:E,id:E.c.id,row:x,Ea:z}}}function l(x){var E=a[x];if(pui.dc(E)){pui.G=pui.jo;pui.runLogic(E.routine)}else if(E!=null&&E!="")try{if(eval(E)==false)return false}catch(J){pui.Fa(J,x+" Error:\n");return false}}var n,m,r=0,p=350,s=p;if(typeof pui["drop scroll wait"]=="number")s=pui["drop scroll wait"];b.onselectstart=function(x){if(w||y){x=tb(x);if(x.tagName=="TEXTAREA"||x.tagName=="INPUT")return true}return false};
|
|
@@ -816,7 +817,7 @@ pui.errorScreen.currentStackEntry=null;
|
|
|
816
817
|
pui.errorScreen.editInIDE=function(){if(pui.errorScreen.currentStackEntry){var b=pui.errorScreen.currentStackEntry,a=pui.errorScreen.getConfig().editor;if(a==="vscode")a="vscode://file/$file:$line:$column";if(a==="pjs"||a==="profound.js"||a==="profoundjs")a="http://localhost:8081/ide/?ifsFile=$file&line=$line&column=$column";var c=b.fileName.replace(/\\/g,"/"),e=b.lineNumber;b=b.columnNumber;if(!c.endsWith(".js"))b=e=1;a=a.replace("$file",c);a=a.replace("$line",e);a=a.replace("$column",b);window.open(a,
|
|
817
818
|
"_blank")}};
|
|
818
819
|
pui.errorScreen.downloadJobLog=function(){function b(){setTimeout(function(){c.innerHTML=""},3E3)}var a,c=Ab("JobLogDownload_fb"),e=pui.getLanguageText("runtimeText","app job")+" ";if(pui.F!=null){var f=pui.appJob;a="NA";if(f.number&&f.user&&f.name)a=f.number+"_"+f.user+"_"+f.name;pui.downloadJobLog({outputEl:c,jobinfo:f.appjoblogkey,filename:e+a+".txt"})}else{f=sessionStorage.getItem("joblog");if(typeof f!=="string"||f.length<1)c.innerHTML="Job log failed to download. Please check browser console for more information.";else{a=
|
|
819
|
-
pui.get("ESAPPJOB").replace(/\//g,"_");saveAs(new Blob([f]),e+a+".txt",{type:"text/plain;charset=utf-8"}).
|
|
820
|
+
pui.get("ESAPPJOB").replace(/\//g,"_");saveAs(new Blob([f]),e+a+".txt",{type:"text/plain;charset=utf-8"}).OA=b}}};pui.fv=function(){var b=this,a=[];this.rA=function(){return a};this.add=function(c){var e=c.name;if(e!==null){for(var f=0;f<a.length;f++)if(c.text<a[f].text)break;a.splice(f,0,c);b[e]=c}}};pui.locales=new pui.fv;pui.locales.add({name:"en_UK",text:"English (United Kingdom)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y","yz","y/z","y-z","y.z","Yz","Y/z","Y-z","Y.z"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A",
|
|
820
821
|
"d/m/y g:i a","d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a","d-m-y H:i:s","g:i A o\\n n/j/y","Y-m-d-H.i.s.uu"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:1,today:"Today"});pui.locales.add({name:"en_US",text:"English (United States)",datePatterns:["Y-m-d","m/d/y","m/d/Y","n/j/y","n/j/Y","m-d-y","m-d-Y","n-j-y","n-j-Y","Y/m","m/Y","Y/m/d","y/m/d","l, F j, Y","l, F jS, Y","D, M d, y","D, M d, Y","D M d y","D M d Y","F j, y","F j, Y","M j, y","M j, Y","j-M-y","j-M-Y","yz","y/z","y-z","Yz","Y/z","Y-z"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["m/d/y g:i A","m/d/y g:i a",
|
|
821
822
|
"m/d/y H:i:s","m-d-y g:i A","m-d-y g:i a","m-d-y H:i:s","D, M d, Y H:i:s","g:i A o\\n n/j/y","Y-m-d-H.i.s.uu"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0,weekNumberShort:"Wk",today:"Today"});pui.locales.add({name:"fr_FR",text:"French (France)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y","yz","y/z","y-z","y.z","Yz","Y/z","Y-z","Y.z"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a",
|
|
822
823
|
"d/m/y H:i:s","d-m-y g:i A","d-m-y g:i a","d-m-y H:i:s","Y-m-d-H.i.s.uu"],monthNames:["janvier","f\u00e9vrier","mars","avril","mai","juin","juillet","ao\u00fbt","septembre","octobre","novembre","d\u00e9cembre"],shortMonthNames:["jan","f\u00e9v","mar","avr","mai","jun","jui","ao\u00fb","sep","oct","nov","d\u00e9c"],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDayNames:["dim","lun","mar","mer","jeu","ven","sam"],weekStart:1,weekNumberShort:"Sem.",today:"Aujourd'hui"});pui.locales.add({name:"de_DE",text:"German (Germany)",datePatterns:["Y-m-d","d.m.y","d.m.Y","d/m/y","d/m/Y","d-m-y","d-m-Y","Y/m","Y/m/d","y/m/d","j F y","j F Y","l j F y","l j F Y","D d M y","D d M Y","j-M-y","j-M-Y","j M y","j M Y","yz","y/z","y-z","y.z","Yz","Y/z","Y-z","Y.z"],timePatterns:["g:i","g:i:s","g:i a","g:i A","H:i","H.i.s","H:i:s","H:i a","H:i A","g:i:s a","g:i:s A","H:i:s a","H:i:s A"],timeStampPatterns:["D d M Y H:i:s","d.m.y g:i A","d.m.y g:i a","d.m.y H:i:s","d/m/y g:i A","d/m/y g:i a",
|
|
@@ -849,15 +850,15 @@ Ia:"i = parseInt(matches["+a+"], 10);",Ja:1};case "s":return{La:"(\\\\d{2})",Ia:
|
|
|
849
850
|
Ja:1};case "z":return{La:"(\\\\d{1,3})",Ia:"d = parseInt(matches["+a+"], 10);",Ja:1};default:return{La:b.replace(/('|\\|"|\.)/,"\\\\$1"),Ia:"",Ja:0}}},parse:function(b,a,c){pui.formatting.Date.Nh.locales[c]&&pui.formatting.Date.Nh.locales[c][a]||pui.formatting.Date.Wx(a,c);return pui.formatting.Date.Nh.locales[c][a](b)},Vx:function(b,a){var c=b,e=false,f="",g="return ";if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var h=0;h<c.length;h++){f=c.charAt(h);if(!e&&f=="\\")e=true;else if(e){g+='"'+f.replace(/('|\\|")/g,
|
|
850
851
|
"\\$1")+'" + ';e=false}else g+=pui.formatting.Date.cx(f,a)+' + "" + '}g=g.replace(/\+\s$/,"")||'""';g+=";";pui.formatting.Date.formats.locales[a]||(pui.formatting.Date.formats.locales[a]={});pui.formatting.Date.formats.locales[a][b]=new Function("date",g)},Wx:function(b,a){var c=b,e=false,f="",g="",h="",l=1;if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var n=0;n<c.length;n++){f=c.charAt(n);if(!e&&f=="\\")e=true;else if(e){g+=f.replace(/('|\\)/g,"\\$1");e=false}else{f=pui.formatting.Date.fx(f,l,a);
|
|
851
852
|
l+=f.Ja;g+=f.La;h+=f.Ia}}c='var y = 1, m = 0, d = 1; var h = 0, i = 0, s = 0, u = 0; var regexObj = new RegExp("^'+g+'$"); var matches = str.match(regexObj); if(matches && matches.length > 0){'+h+"var dt = new Date(y, m, d, h, i, s, u); dt.setFullYear(y);if(dt.getFullYear() !== y || dt.getMonth() !== m || dt.getDate() !== d || dt.getHours() !== h || dt.getMinutes() !== i || dt.getSeconds() !== s) return null;return dt; }else return null;";pui.formatting.Date.Nh.locales[a]||(pui.formatting.Date.Nh.locales[a]=
|
|
852
|
-
{});pui.formatting.Date.Nh.locales[a][b]=new Function("str",c)},getSuffix:function(b){switch(b){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},dx:function(b,a,c){a=c?pui.locales[a].shortMonthNames:pui.locales[a].monthNames;for(c=0;c<12;c++)if(a[c]==b)return c;return 0},Gx:function(b){return b.getHours()===0&&b.getMinutes()===0&&b.getSeconds()===0&&b.getMilliseconds()===0},
|
|
853
|
-
a,c){for(b+="";b.length<a;)b=c+b;return b},
|
|
853
|
+
{});pui.formatting.Date.Nh.locales[a][b]=new Function("str",c)},getSuffix:function(b){switch(b){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},dx:function(b,a,c){a=c?pui.locales[a].shortMonthNames:pui.locales[a].monthNames;for(c=0;c<12;c++)if(a[c]==b)return c;return 0},Gx:function(b){return b.getHours()===0&&b.getMinutes()===0&&b.getSeconds()===0&&b.getMilliseconds()===0},xz:"Y-m-d",oB:"H:i:s",ei:"Y-m-d-H.i.s.uu",Nz:39},leftPad:function(b,
|
|
854
|
+
a,c){for(b+="";b.length<a;)b=c+b;return b},Uy:function(b,a,c){b+="";if(b.length>a)b=b.substr(0,a);else for(;b.length<a;)b+=c;return b},Ac:function(b){return/^(?:zoned|floating|packed)$/.test(b)},Lw:function(b,a){for(var c=0;c<b.length;c++)if(b.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;b.length<a;)b+=" ";return pui.Jq.encode(b)},rh:function(b){return pui.Jq.decode(b)},keywords:{DATFMT:{"*MDY":{gb:"mdy",$b:"/"},"*DMY":{gb:"dmy",$b:"/"},"*YMD":{gb:"ymd",$b:"/"},
|
|
854
855
|
"*JUL":{gb:"yz",$b:"/"},"*ISO":{gb:"Ymd",$b:"-"},"*USA":{gb:"mdY",$b:"/"},"*EUR":{gb:"dmY",$b:"."},"*JIS":{gb:"Ymd",$b:"-"}},mi:{"/":"/","-":"-",".":".",",":","," ":" "},jd:{"*HMS":{gb:"Ris",$b:":"},"*ISO":{gb:"Ris",$b:"."},"*USA":{gb:"hi A",$b:":"},"*EUR":{gb:"Ris",$b:"."},"*JIS":{gb:"Ris",$b:":"}},rk:{":":":",".":".",",":","," ":" "}},escapeRe:function(){var b=/([.*+?^${}()|\-[\]/\\])/g;return function(a){return a.replace(b,"\\$1")}}()};
|
|
855
856
|
Date.prototype.format=function(b,a){pui.formatting.Date.formats.locales[a]&&pui.formatting.Date.formats.locales[a][b]||pui.formatting.Date.Vx(b,a);return pui.formatting.Date.formats.locales[a][b](this)};
|
|
856
857
|
pui.vc={format:function(b){if(b.revert){if(typeof pui.inputfilter=="function"){var a={};for(var c in b)a[c]=b[c];try{var e=pui.inputfilter(a.value,a,N);if(typeof e=="string")b.value=e}catch(f){pui.pp(f,"(pui.inputfilter)")}}a=null;if(typeof pui.validate=="function")a=pui.validate(b);if(a==null||a==false)a=this[b.formatting].Re(b);return typeof a==="object"?a:a+""}else{this.Lx(b);return this[b.formatting].format(b)+""}},Text:{format:function(b){var a=b.value+"";if(b.customPattern!="")if(b.customPattern==
|
|
857
858
|
"y/m")if(a.length>2)a=a.substr(0,a.length-2)+"/"+a.substr(a.length-2);if(b.__pui_skipdecode!==true&&b.dataType=="graphic"&&!pui.oj)a=pui.formatting.rh(a);if(b.trimTrailing===true||b.trimTrailing==="true")a=a.replace(/\s+$/g,"");else for(;a.length<b.dataLength;)a+=" ";if(b.trimLeading===true||b.trimLeading==="true")a=a.replace(/^\s+/g,"");if(b.textTransform=="uppercase"){a=pui.Pe(a,false);a=a.toUpperCase()}else if(b.textTransform=="lowercase")a=a.toLowerCase();else if(b.textTransform=="capitalize")a=
|
|
858
859
|
a.replace(/(?:^[a-z]| +[a-z])/g,function(c){return c.toUpperCase()});b.maxLength=b.dataLength=="undefined"?null:b.dataLength;return a},Re:function(b){var a,c=b.value+"";c=c.replace(/\s+$/g,"");if(b.blankFill=="true"&&(b.dataType=="char"||b.dataType=="varchar")){a=Number(b.dataLength);isNaN(a)||(c=pui.formatting.leftPad(c,a," "))}if(b.textTransform=="uppercase"){c=pui.Pe(c,false);c=c.toUpperCase();if(b.dataType=="char")c=pui.Pe(c,true)}else if(b.textTransform=="lowercase")c=c.toLowerCase();else if(b.textTransform==
|
|
859
860
|
"capitalize")c=c.replace(/(?:^[a-z]| +[a-z])/g,function(e){return e.toUpperCase()});if(b.dataType=="graphic"&&!pui.oj){a=parseInt(b.dataLength,10);c=pui.formatting.Lw(c,a)}return c}},Number:{format:function(b){var a=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=parseInt(b.dataLength,10),e=parseInt(b.decPos,10),f;f=!b||!b.value?"0":isNaN(b.value)&&a?b.value.replace(/\./g,"").replace(/,/g,"."):String(b.value!==undefined&&b.value!==null?b.value:0);if(e>0&&f==="0")for(f=
|
|
860
|
-
".";f.length-1<e;)f+="0";else if(e>0&&f.substr(0,2)==="0.")f=f.substr(1);var g=parseFloat(f,10)||0;if(typeof f!=="string")f="0";f=f.replace(/-/g,"");var h;h=f.replace(/\..*/,"");if((h==""||h=="-")&&pui.appJob.decimalFormat=="J")h="0";var l,n=f;if(n.indexOf(".")==-1)n+=".";l=n.replace(/.*\./,"");n=c;var m="[\\d";if(b.edtWrd!=null&&b.edtWrd!="")if(pui.formatting.Ac(b.dataType))return pui.aw(b);if(e>0){l=pui.formatting.
|
|
861
|
+
".";f.length-1<e;)f+="0";else if(e>0&&f.substr(0,2)==="0.")f=f.substr(1);var g=parseFloat(f,10)||0;if(typeof f!=="string")f="0";f=f.replace(/-/g,"");var h;h=f.replace(/\..*/,"");if((h==""||h=="-")&&pui.appJob.decimalFormat=="J")h="0";var l,n=f;if(n.indexOf(".")==-1)n+=".";l=n.replace(/.*\./,"");n=c;var m="[\\d";if(b.edtWrd!=null&&b.edtWrd!="")if(pui.formatting.Ac(b.dataType))return pui.aw(b);if(e>0){l=pui.formatting.Uy(l,e,"0");f=h+(a?",":".")+l;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f=
|
|
861
862
|
"0"+f;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f="0"+f;if(!b.noExtraSpaces||b.noExtraSpaces!="true")n++;m+=a?",":"\\."}if(b.zeroFill===true||b.zeroFill==="true")f=pui.formatting.leftPad(f,c+(e?1:0),"0");if(b.numSep===true||b.numSep==="true"){for(f=/(\d+)(\d{3})/;f.test(h);)h=h.replace(f,"$1"+(a?".":",")+"$2");f=h+(e>0?(a?",":".")+l:"");m+=a?"\\.":",";a=c-e-1;a=a>=0?a:0;if(!b.noExtraSpaces||b.noExtraSpaces!="true")n+=Math.floor(a/3)}a=g<0;if(b.negNum)b.negNum=b.negNum.toUpperCase();if(b.negNum==
|
|
862
863
|
"(999.00)"){if(a)f="("+f+")";if(!b.noExtraSpaces||b.noExtraSpaces!="true")n+=2;m+="\\(\\)"}else if(b.negNum=="999.00-"){f+=a?"-":" ";if(!b.noExtraSpaces||b.noExtraSpaces!="true")n++;m+="\\-"}else if(b.negNum=="999.00 CR"){if(a)f+=" CR";if(!b.noExtraSpaces||b.noExtraSpaces!="true")n+=3;m+="CR\\s"}else if(b.negNum=="-999.00"){if(a)f="-"+f;if(!b.noExtraSpaces||b.noExtraSpaces!="true")n++;m+="\\-"}else if(b.negNum=="999.00 (Y)"){f+=" ";if(!b.noExtraSpaces||b.noExtraSpaces!="true")n++;m+="\\-"}if(b.curSym){f=
|
|
863
864
|
b.curSym=="EUR"?f+" EUR":b.curSym=="$"?f.substr(0,1)=="-"?"-"+b.curSym+f.substr(1):b.curSym+f:b.curSym+f;n+=b.curSym.length;m+=pui.formatting.escapeRe(b.curSym)}if(b.units){f+=b.units;n+=b.units.length;m+=pui.formatting.escapeRe(b.units)}if(b.zeroBalance===false||b.zeroBalance==="false")if(g===0)f="";m+="]";if(isNaN(n))n=null;b.maxLength=n;b.He=RegExp(m);return f},Re:function(b){var a=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=".";if(a)c=",";var e=String(b.value);
|
|
@@ -872,7 +873,7 @@ a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=thi
|
|
|
872
873
|
(g=="d/m/y"||g=="d-m-y"||g=="d.m.y")&&f.test(c)==true||c.length==9&&(g=="m/d/Y"||g=="m-d-Y")&&h.test(c)==true||(g=="d/m/Y"||g=="d-m-Y"||g=="d.m.Y")&&f.test(c)==true||c.length==6&&g=="m/Y"&&l.test(c)==true)c="0"+c}if(b.dataType=="zoned"&&parseInt(b.dataLength,10)==c.length){if(c.length==6&&(g=="m/d/y"||g=="d/m/y")||c.length==8&&(g=="m/d/Y"||g=="d/m/Y"))c=c.substr(0,2)+"/"+c.substr(2,2)+"/"+c.substr(4);if(c.length==6&&g=="m/Y")c=c.substr(0,2)+"/"+c.substr(2);if(c.length==6&&g=="Y/m")c=c.substr(0,4)+
|
|
873
874
|
"/"+c.substr(4)}f=c===""?pui.formatting.Date.parse("0001-01-01","Y-m-d","en_US"):pui.formatting.Date.parse(c,g,a);if(g=="Y-m-d")if(c=="0000-00-00"&&b.dataType=="date")return"";if(g=="m/d/y"||g=="d/m/y"){if(c=="00/00/00"&&(b.dataType=="char"||b.dataType=="varchar"))return"0";if(c=="00/00/00")return"0"}if(g=="m/d/Y"||g=="d/m/Y"){if(c=="00/00/0000"&&(b.dataType=="char"||b.dataType=="varchar"))return"";if(c=="00/00/0000")return"0"}if(b.dataType=="zoned"&&c=="")return"0";if(b.dataType=="char"||b.dataType==
|
|
874
875
|
"varchar")return c;if(f)return f.format(e.Pa,a);else{f=pui.formatting.Date.parse((new Date).getFullYear()+"-03-07-14.30.15.000000","Y-m-d-H.i.s.u000",a);return{msg:pui.getLanguageText("runtimeMsg","invalid date",[b.value,f.format(g,a)])}}},Bj:function(b){var a,c;if(b&&b.length>0)for(var e=/^\s*DATFMT\s*\(\s*(\*\w{3})\s*\)\s*$/,f=/^\s*DATSEP\s*\(\s*(?:(\*JOB)|'(.)')\s*\)\s*$/,g=0;g<b.length;g++){var h=b[g].toUpperCase();if(e.test(h))a=h.replace(e,"$1");else if(f.test(h))c=h.replace(f,"$1$2")}if(!a&&
|
|
875
|
-
pui["default date pattern"]){b=pui["default date pattern"];e=pui.formatting.Date.
|
|
876
|
+
pui["default date pattern"]){b=pui["default date pattern"];e=pui.formatting.Date.xz}else{a=a||"*JOB";c=c||"*JOB";e=pui.formatting.keywords.DATFMT[a]?pui.formatting.keywords.DATFMT[a].gb:pui.formatting.keywords.DATFMT["*ISO"].gb;f=(g=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(a))&&pui.formatting.keywords.mi[c]?pui.formatting.keywords.mi[c]:pui.formatting.keywords.DATFMT[a]?pui.formatting.keywords.DATFMT[a].$b:"-";if(a=="*JOB"&&pui.appJob&&pui.appJob.dateFormat&&pui.formatting.keywords.DATFMT[pui.appJob.dateFormat])a=
|
|
876
877
|
pui.appJob.dateFormat;if(pui.formatting.keywords.DATFMT[a]==undefined)a="*ISO";b=pui.formatting.keywords.DATFMT[a].gb;g=f;g=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(a);if(c=="*JOB")if(g&&pui.appJob&&pui.appJob.dateSeparator&&pui.formatting.keywords.mi[pui.appJob.dateSeparator])c=pui.appJob.dateSeparator;else if(pui.formatting.keywords.DATFMT[a])c=pui.formatting.keywords.DATFMT[a].$b;if(pui.formatting.keywords.mi[c]==undefined)c="-";g=pui.formatting.keywords.mi[c];e=e.replace(/\B/g,f);b=b.replace(/\B/g,
|
|
877
878
|
g)}return{Pa:e,display:b}},Ww:function(b){if(b&&b.length>0)for(var a=/^\s*DATFMT\s*\(\s*(\*\w{3})\s*\)\s*$/i,c=0;c<b.length;c++)if(a.test(b[c]))return c;return-1},Gs:function(b,a){var c=b;if(typeof a.keywords!="undefined"){var e;e=this.Ww(a.keywords);if(e>=0){var f;f=a.keywords[e];a.keywords[e]="DATFMT(*ISO)";c=pui.vc.format(a);a.keywords[e]=f}}return c}},Time:{format:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.Bj(b.keywords);if(pui.formatting.Ac(b.dataType)){e.Pa=
|
|
878
879
|
(b.timeFormat||e.display).replace(/[^Hgis]/g,"");c=pui.formatting.leftPad(c,parseInt(b.dataLength,10),"0")}var f=c,g=e.Pa;if(f.length==4){g+="s";f+="00"}if(b.dataType=="timestamp")g=pui.formatting.Date.ei;if(f=pui.formatting.Date.parse(f,g,a)){if(b.timeFormat==="")b.timeFormat=e.display;if(/^0*$/.test(c.replace(/\D/g,"")))return f.format(b.timeFormat,a).replace(/(?:12|24)/g,"00");return f.format(b.timeFormat,a)}return c},Re:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;
|
|
@@ -896,8 +897,8 @@ pui.$m.prototype.add=function(b){var a=b.name;if(a!=null){if(b.newId==null){for(
|
|
|
896
897
|
"";if(b.Nt==null)b.Nt="";if(b.kp==null)b.kp="";if(b.resizable==null)b.resizable=true;if(b.io==null)b.io=false;if(b.b==null)b.b=false;if(b.rg==null)b.rg=true;if(b.mw==null)b.mw=true;if(b.sd==null)b.sd=false;if(typeof b.constr==="function"||typeof b.render==="function"&&typeof b.getValue==="function")b.Ff=this.iw;this.xn.push(b);this[a]=b;if(!pui.Yn)Ac()["field type"].choices=Fc(this,false)}};
|
|
897
898
|
pui.$m.prototype.iw=function(b){var a;if(b.dom&&b.dom.pui&&b.dom.pui.widget)a=b.dom.pui.widget;if(b.propertyName=="field type"){var c=b.value;a!=null&&typeof a.destroy==="function"&&a.destroy();if(pui.widgets[c]!=null){var e=pui.widgets[c];if(typeof e.constr==="function")try{a=new e.constr(b,c)}catch(f){console.log(f)}else{a=new pui.BasicWidget(b,c);if(typeof e.render==="function")a.render=e.render.bind(a);if(typeof e.getValue==="function")a.getValue=e.getValue.bind(a)}}}try{if(a){pui.BasicWidget.prototype.hw.call(a,
|
|
898
899
|
b);typeof a.setProperty==="function"&&a.setProperty(b)}}catch(g){console.log(g)}};pui.widgets=new pui.$m;pui.widgets.Ae=function(){var b=[];for(var a in pui.widgets.buttonStyles)b.push(a);return b};pui.widgets.Vi=function(){var b=[];for(var a in pui.widgets.panelStyles)b.push(a);return b};pui.widgets.ax=function(){return pui.widgets.Vn};pui.widgets.jx=function(){var b=[];for(var a in pui.widgets.tabStyles)b.push(a);b.push("Other...");return b};
|
|
899
|
-
pui.BasicWidget=function(b,a){Object.defineProperties(this,{
|
|
900
|
-
pui.BasicWidget.prototype.destroy=function(){if(this.dom!=null){this.dom.innerHTML="";this.dom.removeEventListener("input",this);this.dom.removeEventListener("change",this)}try{typeof this.cleanup==="function"&&this.cleanup()}catch(b){console.log(b)}this.Lc()};function dd(b){try{typeof b.render==="function"&&b.render()}catch(a){console.log(a)}b.design&&b.er&&b.er.Kg()}function sd(b,a){var c=b.
|
|
900
|
+
pui.BasicWidget=function(b,a){Object.defineProperties(this,{Mz:{value:a,configurable:true}});this.design=b.design;this.er=b.e;this.dom=b.dom;this.kr=b.properties;this.mn={};this.mn[b.propertyName]=b.originalValue;this.dn={};this.en={};if(this.dom.pui==null)this.dom.pui={};this.dom.pui.widget=this;pui.Ug.push(this)};pui.BasicWidget.prototype=Object.create(pui.uc.prototype);
|
|
901
|
+
pui.BasicWidget.prototype.destroy=function(){if(this.dom!=null){this.dom.innerHTML="";this.dom.removeEventListener("input",this);this.dom.removeEventListener("change",this)}try{typeof this.cleanup==="function"&&this.cleanup()}catch(b){console.log(b)}this.Lc()};function dd(b){try{typeof b.render==="function"&&b.render()}catch(a){console.log(a)}b.design&&b.er&&b.er.Kg()}function sd(b,a){var c=b.Mz;return a=="value"||c&&pui.widgets[c]&&pui.widgets[c].ap&&pui.widgets[c].ap[a]===true}
|
|
901
902
|
function td(b,a,c,e){b.en[a]=c;b.dn[e]=a}function wd(b,a){var c=b.dn[a];if(c)return b.en[c]}pui.BasicWidget.prototype.getPropertyValue=function(b){var a;if(b!=null){var c=this.en[b];try{a=this.getValue(b);if(typeof a==="number"||typeof a==="boolean")a=String(a);else if(a instanceof Date)a=c!=null&&typeof c.dateFormat==="string"?isNaN(a.getYear())?"":a.format(c.dateFormat):a.toISOString();else if(a==null)a=""}catch(e){console.log(e)}}return a};
|
|
902
903
|
pui.BasicWidget.prototype.evalProperty=function(b){return Yb(this.kr[b],this.mn[b],this.dom)};pui.BasicWidget.prototype.getValue=function(b){return this.evalProperty(b)};pui.BasicWidget.prototype.hw=function(b){var a=b.propertyName;this.design=b.design;this.kr=b.properties;this.mn[b.propertyName]=b.originalValue;if(!this.design)if(this.evalProperty(a)!==b.value&&sd(this,a))this.dom.modified=true};
|
|
903
904
|
pui.BasicWidget.prototype.handleEvent=function(b){switch(b.type){case "input":case "change":this.dom.modified=true;break}};function xd(b){this.onready=this.onfail=this.onsuccess=this.cacheBuster=this.suppressAlert=this.password=this.user=this.async=this.url=this.reqData=this.postData=this.method=null;this.headers={};this.params=null;this.sendAsBinary=true;var a=this.overrideMimeType=null,c=null,e=null,f=null,g=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert,h=this;if(xd.defaultHeaders)this.headers=xd.defaultHeaders;if(typeof b=="object")for(var l in b){if(typeof this[l]!="undefined")this[l]=b[l]}else this.url=
|
|
@@ -906,7 +907,7 @@ null&&h.onfail(h)}f=false}}var m,r=null,p=null,s=null;if(h.method==null)r="GET";
|
|
|
906
907
|
return}}else s=""}if(h.async==null)p=true;else if(h.async!=true&&h.async!=false){g('Invalid value for property: "async".');return}else p=h.async;if(typeof h.url!="string")g('Invalid value for property: "url".');else{if(h.user!=null)if(typeof h.user!="string"){g('Invalid value for property: "user".');return}if(h.password!=null)if(typeof h.password!="string"){g('Invalid value for property: "password".');return}if(h.onsuccess!=null)if(typeof h.onsuccess!="function"){g('Invalid value for event: "onsuccess".');
|
|
907
908
|
return}if(h.onfail!=null)if(typeof h.onfail!="function"){g('Invalid value for event: "onfail".');return}if(h.onready!=null)if(typeof h.onready!="function"){g('Invalid value for event: "onready".');return}var t=true;if(s!=null)for(m in h.headers)if(m.toUpperCase()=="CONTENT-TYPE")if(h.headers[m].toLowerCase().indexOf("www-form-urlencoded")==-1)t=false;var w=h.url,y=h.params;if(typeof y=="object"){var x="";for(m in y){var E=y[m],J=[];if(typeof E=="object"){if(E.length!=null&&E.length>0)J=E}else J.push(E);
|
|
908
909
|
for(E=0;E<J.length;E++){if(x!="")x+="&";x+=encodeURIComponent(m)+"="+encodeURIComponent(J[E])}}if(x!="")if(t&&(r=="POST"||r=="PUT"||r=="DELETE")){if(s!=null&&s!="")s+="&";else s="";s+=x}else{t=w.split("?");if(t.length==2&&t[1]!="")w=t[0]+"?"+t[1]+"&"+x;else w+="?"+x}}if(r==="GET"&&(h.cacheBuster===null||h.cacheBuster===true))w=pui.addUrlCacheBuster(w);try{typeof h.user=="string"&&typeof h.password=="string"?a.open(r,w,p,h.user,h.password):a.open(r,w,p);w=false;var z=h.headers;for(m in z){a.setRequestHeader(m,
|
|
909
|
-
z[m]);if(m.toUpperCase()=="CONTENT-TYPE")w=true}if(r=="POST"||r=="PUT"||r=="DELETE")w||a.setRequestHeader("Content-type","application/x-www-form-urlencoded");typeof h.overrideMimeType=="string"&&typeof a.overrideMimeType=="function"&&a.overrideMimeType(h.overrideMimeType)}catch(G){g(G);return}f=true;var D=false;if(p==true){a.onload=n;a.onerror=n;a.onabort=function(){D=true;n()}}if(h.sendAsBinary==true)try{a.sendAsBinary(s)}catch(
|
|
910
|
+
z[m]);if(m.toUpperCase()=="CONTENT-TYPE")w=true}if(r=="POST"||r=="PUT"||r=="DELETE")w||a.setRequestHeader("Content-type","application/x-www-form-urlencoded");typeof h.overrideMimeType=="string"&&typeof a.overrideMimeType=="function"&&a.overrideMimeType(h.overrideMimeType)}catch(G){g(G);return}f=true;var D=false;if(p==true){a.onload=n;a.onerror=n;a.onabort=function(){D=true;n()}}if(h.sendAsBinary==true)try{a.sendAsBinary(s)}catch(B){a.send(s)}else a.send(s);p!=true&&n()}};this.ok=this.Ft=function(){return e!=
|
|
910
911
|
null?e:false};this.getResponseText=this.zc=function(){return a.responseText};this.getResponseXML=this.Ms=function(){return a.responseXML};this.getStatus=this.Ef=function(){return a.status};this.getStatusText=this.Qs=function(){return a.statusText};this.getStatusMessage=this.Yi=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(n){g(n)}};this.getResponseHeader=this.getResponseHeader=function(n){if(e)try{return a.getResponseHeader(n)}catch(m){g(m)}};
|
|
911
912
|
this.setRequestHeader=this.setRequestHeader=function(n,m){h.headers[n]=m};this.abort=this.abort=function(){if(f===true)try{a.abort()}catch(n){g(n)}}}
|
|
912
913
|
function Wb(b,a){var c,e,f,g="";if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new xd(arguments[0]);c.async=e;c.onsuccess=function(h){g+=h.zc();e==true&&f(g)};c.send();if(e==false)return g}
|
|
@@ -916,7 +917,7 @@ window.ajaxXML=function(b,a){var c,e,f,g=null;if(arguments.length==1&&typeof arg
|
|
|
916
917
|
window.ajaxSubmit=function(b,a){var c,e="",f=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert;if(typeof b=="object")c=b;else{c=document.getElementById(b);if(c==null)c=document.forms[b]}var g;if(c!=null)g=c.tagName;if(c==null||g==null||g.toUpperCase()!="FORM"){f("Ajax request error: Invalid form object.");return""}if(b.action==""){f("Ajax request error: Invalid form action.");return""}for(f=0;f<c.elements.length;f++){g=c.elements[f];if(g.name!=null&&g.name!=""){var h=false;if(g.tagName==
|
|
917
918
|
"INPUT"){var l=g.type;l=l.toLowerCase();if(l=="hidden")h=true;if(l=="password")h=true;if(l=="text")h=true;if(pui.ql(l))h=true;if(l=="")h=true;if(l=="checkbox"||l=="radio")if(g.checked)h=true}if(g.tagName=="TEXTAREA")h=true;if(g.tagName=="SELECT")h=true;if(h){if(e!="")e+="&";e+=g.name+"="+encodeURIComponent(g.value)}}}c=new xd(c.action);c.method="POST";c.postData=e;var n="",m;if(a!=null&&typeof a=="function")m=true;else{m=false;c.async=false}c.onsuccess=function(r){n+=r.zc();m==true&&a(n)};c.send();
|
|
918
919
|
if(m==false)return n};pui.widgets.add({name:"ajax container",defaults:{width:"200px",height:"100px"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="AJAX content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("ajax url");if(url==null||url=="")b.dom.innerHTML="AJAX URL property not specified.";else Wb(url,function(a){try{pui.vu(b.dom,a)}catch(c){b.dom.innerHTML=c.message}})}}}});pui.widgets.add({name:"button",tag:"input",inputType:"button",newValue:"Click Here",sd:true,defaults:{width:!pui.is_quirksmode?"100px":null,"css class":"button"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.design&&b.properties["field type"]!="button"){var a=b.e.properties["css class"];if(a==null)a="";if(!pui.p(a))if(a.indexOf("button")<0){if(a!="")a+=" ";a+="button";b.e.properties["css class"]=a;b.e.qb["css class"]=true;b.dom.className=a}}b.dom.Tf=pui.Sg;b.dom.destroy=
|
|
919
|
-
pui.kh;b.design||T(b.dom,"keydown",function(c){if(c.keyCode==13)c.cancelBubble=true})},value:function(b){b.dom.value=b.value}}});pui.charts={};pui.Wn=[];pui.widgets.Vn=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.
|
|
920
|
+
pui.kh;b.design||T(b.dom,"keydown",function(c){if(c.keyCode==13)c.cancelBubble=true})},value:function(b){b.dom.value=b.value}}});pui.charts={};pui.Wn=[];pui.widgets.Vn=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.Wz=["3D Column","2D Column","2D Bar","Line","Area","2D Pie","3D Pie","Doughnut"];
|
|
920
921
|
pui.widgets.Vf=function(b){function a(){delete b.dom.fp;delete b.dom.sizeMe;delete b.dom.le}var c;if(!b.dom.fp){b.dom.fp=true;if(typeof FusionCharts=="undefined"){b.dom.innerHTML="<br/> "+pui.getLanguageText("runtimeMsg","failed to load x",[pui.getLanguageText("runtimeText","chart")]);console.log("Dependency FusionCharts not defined before rendering.")}else if(!Eb()){c=b.dom.pui.properties["map type"];var e=c!=null&&c!="";if(b.dom.id!=null&&b.dom.id!="")c=b.dom.id+"_Chart";else if(b.uh!=
|
|
921
922
|
null)c=b.uh+"_Chart";else{console.log("Stopped rendering chart; missing id attribute.");return}var f={type:b.type.toLowerCase(),id:c,width:"100%",height:"100%",renderAt:b.dom,events:{renderComplete:a,dataLoadError:a,dataInvalid:a,noDataToDisplay:a}};if(typeof b.dom.pui.properties["chart response"]!="undefined"||typeof b.dom.pui.properties.onchartclick!="undefined"){if(b.Iq!=null)f.events.dataLoadRequestCompleted=pui.widgets.Sv;if(b.Ze!=null)b.Ze=pui.widgets.Ar(b.dom.id,b.Ze,e);else if(b.jsonData!=
|
|
922
923
|
null)b.jsonData=pui.widgets.Uv(b.dom.id,b.jsonData,e)}if(b.Ze!=null){f.dataFormat="xml";f.dataSource=b.Ze}else if(b.jsonData!=null){f.dataFormat="json";f.dataSource=b.jsonData}var g=new FusionCharts(f);pui.Wn.push(c);g.dom=b.dom;b.transparent==true&&g.setTransparent(true);b.Iq!=null&&pui["legacy chart data url"]==true&&g.setXMLUrl(b.Iq);b.dom.style.backgroundColor="";g.render();b.dom.chart=document.getElementById(c);if(b.dom.chart!=null&&b.dom.chart.style.visibility=="visible")b.dom.chart.style.visibility=
|
|
@@ -925,7 +926,7 @@ pui.widgets.Ar=function(b,a,c){try{var e;if(typeof DOMParser!="undefined")e=(new
|
|
|
925
926
|
p=m[l];if(n.nodeName=="dataset"){r.name=n.getAttribute("seriesname");if(r.name==null)r.name=n.getAttribute("seriesName");if(l<f.length)r.category=encodeURIComponent(f[l])}else if(c)r.name=p.getAttribute("id");else{r.name=p.getAttribute("name");if(r.name==null)r.name=p.getAttribute("label")}r.name=encodeURIComponent(r.name);p.setAttribute("link","j-pui.widgets.doChartLink-"+JSON.stringify(r))}}return typeof XMLSerializer!="undefined"?(new XMLSerializer).serializeToString(e):e.xml}catch(s){return a}};
|
|
926
927
|
pui.widgets.Uv=function(b,a,c){try{var e=eval("("+a+")"),f,g=[];if(e.dataset instanceof Array){f=e.dataset;for(var h=0;h<e.categories[0].category.length;h++)g.push(e.categories[0].category[h].label)}else f=[e.data];for(h=0;h<f.length;h++)for(var l={id:encodeURIComponent(b)},n=f[h],m=n.data instanceof Array?n.data:n,r=0;r<m.length;r++){var p=m[r];if(n.seriesname||n.seriesName){l.name=n.seriesname||n.seriesName;if(r<g.length)l.category=encodeURIComponent(g[r])}else l.name=c?p.id:p.label;l.name=encodeURIComponent(l.name);
|
|
927
928
|
p.link="j-pui.widgets.doChartLink-"+JSON.stringify(l)}return e}catch(s){return a}};pui.widgets.doChartLink=function(b){b=JSON.parse(b);var a=b.name,c=b.category;b=Ab(b.id);if(typeof b.pui.properties["chart response"]!="undefined"){b.S=c?c+"|"+a:a;if(b.G=="true"||b.G=="send data")pui.G=b.G;pui.Ma=b.Ma;if(pui.gc()==false){b.S="";pui.Ma=null;pui.Sc=null;pui.Rc=null}}else if(typeof b.onchartclick=="function")c?b.onchartclick({name:a,category:c}):b.onchartclick(a)};
|
|
928
|
-
pui.widgets.Uj=function(b,a,c){b.innerHTML="";if(c)a="Map";else{c=false;for(var e=0;e<pui.widgets.Vn.length;e++)if(a==pui.widgets.Vn[e])if(a!="Other..."){c=true;break}c||(a="Bar2D")}c=document.createElement("img");c.src="/profoundui/proddata/images/charts/"+a+".jpg?v=2";c.style.position="absolute";c.style.left="0px";c.style.top="0px";c.style.width="100%";c.style.height="100%";c.
|
|
929
|
+
pui.widgets.Uj=function(b,a,c){b.innerHTML="";if(c)a="Map";else{c=false;for(var e=0;e<pui.widgets.Vn.length;e++)if(a==pui.widgets.Vn[e])if(a!="Other..."){c=true;break}c||(a="Bar2D")}c=document.createElement("img");c.src="/profoundui/proddata/images/charts/"+a+".jpg?v=2";c.style.position="absolute";c.style.left="0px";c.style.top="0px";c.style.width="100%";c.style.height="100%";c.EA=true;b.appendChild(c)};
|
|
929
930
|
pui.widgets.Ds=function(b){var a='<?xml version="1.0" encoding="utf-8"?><chart';if(typeof b=="string"&&b.length>0)a+=" "+b;a+=">";return a};
|
|
930
931
|
pui.widgets.add({name:"chart",dependencies:["/fusionchartsxt/js/pui-fusioncharts.js"],defaults:{width:"300px",height:"200px","background color":"#EEEEEE","z index":"21"},propertySetters:{"field type":function(b){var a,c,e;if(b.dom.pui==null)b.dom.pui={};e=b.evalProperty("parent tab panel");var f;if(e!=null&&e.length>0)f=Ab(e);if(f)f=f.tabPanel;e=parseInt(b.evalProperty("parent tab"),10);if(f&&!isNaN(e)&&e!=f.selectedTab){if(typeof b.properties["chart response"]!="undefined")b.dom.pui.properties["chart response"]=
|
|
931
932
|
b.properties["chart response"]}else{f=Kb(b.evalProperty("map type"));var g,h=f!="";if(h){if(f.toLowerCase().indexOf("maps/")==0)f=f.substr(5);g=f="/fusionchartsxt/js/maps/"+f}else g=b.evalProperty("chart type");if(b.design){pui.widgets.Uj(b.dom,g,h);b.dom.style.overflow="hidden";b.dom.style.border="1px solid #999999"}else{var l=b.dom.id;b.dom.pui.properties=b.properties;if(!b.dom.chart)b.dom.innerHTML="<br/> "+pui.getLanguageText("runtimeMsg","loading x",[pui.getLanguageText("runtimeText",
|
|
@@ -938,7 +939,7 @@ e=pui.rd(b.properties);if(e!="")c+="&"+e}else c+="&q="+pui.zb.vf(a);c+="&maxcoun
|
|
|
938
939
|
44)+" "+r+x.substr(44);pui.widgets.Vf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Ze:x});x=b.evalProperty("ondbload");if(typeof x!="string"||x=="")x=null;if(x){var J=true;E||(J=false);pui.xf(x,J,b.dom.id)}}};w.send()}}else if(n!="")if(pui["legacy chart data url"]==true){n=n.replace(/&/g,"%26");pui.widgets.Vf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Iq:n})}else Wb({url:n,method:"get",async:true,handler:function(x){pui.widgets.Vf({dom:b.dom,
|
|
939
940
|
uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Ze:x})}});else if(c!="")Wb({url:c,method:"get",async:true,handler:function(x){pui.widgets.Vf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",jsonData:x})}});else if(m!=""){c="AUTH="+(pui.ba?pui.ba:pui.appJob.auth);if(typeof pui.vId!=="undefined")c+="&VID="+pui.vId;if(pui.secLevel>0){c+="&q="+encodeURIComponent(pui.ad(b.dom));e=pui.rd(b.properties);if(e!="")c+="&"+e}else{a=m;if(e!="")a+=" ORDER BY "+e;c+="&q="+pui.zb.vf(a)}c+=
|
|
940
941
|
"&limit="+f;if(pui["read db driven data as ebcdic"]!==true)c+="&UTF8=Y";if(pui.isCloud)c+="&workspace_id="+pui.cloud.ws.id;var y=new pui.Ajax(Vb("PUI0009102.PGM"));y.method="post";y.async=true;y.postData=c;y.suppressAlert=true;y.onsuccess=function(){var x=pui.widgets.Ds(r),E=Ib(y,"Custom SQL query");if(!E||E.results==null){x=Na.pop();if(x!=null&&typeof x=="object")if(E=Ab(l))E.innerHTML='<ul style="overflow-y:auto; white-space:normal"><li>Chart operation: '+x.Pl+"<li>Id: "+x.id+"<li>Message: "+x.text+
|
|
941
|
-
"<li>"+x.Dm+"</ul>";else console.log(x)}else{for(var J=h?"id":"label",z=0,G=E.results.length;z<G;z++){var D=Object.keys(E.results[z]).length,
|
|
942
|
+
"<li>"+x.Dm+"</ul>";else console.log(x)}else{for(var J=h?"id":"label",z=0,G=E.results.length;z<G;z++){var D=Object.keys(E.results[z]).length,B="",K="",Q=0;for(var Y in E.results[z]){Q++;var ea=E.results[z][Y];if(Q<D)B+=" "+ea;else K=ea}x+="<set "+J+'="'+pui.ji(Kb(B))+'" value="'+pui.ji(Kb(K))+'" />'}x+="</chart>";pui.widgets.Vf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Ze:x})}};y.send()}}}}},width:function(b){b.dom.width=b.value;var a=typeof b.properties["map type"]!=
|
|
942
943
|
"undefined";b.design&&pui.widgets.Uj(b.dom,b.properties["chart type"],a)},height:function(b){b.dom.height=b.value;var a=typeof b.properties["map type"]!="undefined";b.design&&pui.widgets.Uj(b.dom,b.properties["chart type"],a)},"chart type":function(b){b.design&&pui.widgets.Uj(b.dom,b.value)},"map type":function(b){b.design&&pui.widgets.Uj(b.dom,b.value,true)},visibility:function(b){if(b.dom.chart)b.dom.chart.style.display=b.value=="hidden"?"none":"inline-block"},onchartclick:function(b){if(pui.dc(b.newValue))b.dom.Ma=
|
|
943
944
|
b.newValue.routine}}});pui.Zr=function(b){var a=b.target;if(!a.readOnly){var c=a.pui.properties["indeterminate value"]!==undefined;if(a.checked===true)if(a.unchecked!==true||!c){a.unchecked=false;a.indeterminate=false}else{a.checked=false;a.unchecked=false;a.indeterminate=true}else{a.indeterminate=false;a.unchecked=true}}if(a.readOnly){b.preventDefault();return false}};
|
|
944
945
|
pui.widgets.add({name:"checkbox",tag:"input",inputType:"checkbox",kp:"label",resizable:false,defaults:{label:"Checkbox"},propertySetters:{"field type":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;if(!pui.is_quirksmode)if(!pui.is_old_ie)b.dom.style.margin=
|
|
@@ -947,12 +948,12 @@ b.evalProperty("label");a!=""&&pui.Rr(b.dom,a);T(b.dom,"click",pui.Zr);if(pui.is
|
|
|
947
948
|
f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.cl(b.dom)},"checked value":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===
|
|
948
949
|
undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.cl(b.dom)},"indeterminate value":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=
|
|
949
950
|
c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.cl(b.dom)},visibility:function(b){if(!b.design&&
|
|
950
|
-
b.dom.Pd)b.dom.Pd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.$e=function(){this.Aa=this.v=this.b=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.xb=this.mc=this.K=null};pui.$e.prototype=Object.create(pui.uc.prototype);
|
|
951
|
-
|
|
951
|
+
b.dom.Pd)b.dom.Pd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.$e=function(){this.Aa=this.v=this.b=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.xb=this.mc=this.K=null};pui.$e.prototype=Object.create(pui.uc.prototype);ua=pui.$e.prototype;
|
|
952
|
+
ua.init=function(){if(this.v==null){this.v=document.createElement("div");this.b!=null&&this.b.appendChild(this.v);this.v.style.position="absolute";this.v.style.top="100px";this.v.style.left="100px"}if(this.design)this.v.style.border="";if(this.v.style.width==null)this.v.style.width="80px";if(N=="genie"&&(this.v.style.height==null||this.v.style.height==""))this.v.style.height="20px";if(this.K==null){this.K=document.createElement("input");this.v.appendChild(this.K)}this.K.type="text";if(this.K.getAttribute("autocomplete")==
|
|
952
953
|
null&&(N!="genie"||!pui.F.config.lh)){this.K.setAttribute("autocomplete","off");N=="dspf"&&this.K.setAttribute("name",pui.Wd())}this.K.style.fontFamily=this.v.style.fontFamily;if(typeof this.v.name=="string")this.K.name=this.v.name;if(this.design){this.K.style.cursor="default";this.K.readOnly=true}var b=this.v.className.split(" ").indexOf("readOnly");this.K.disabled=b>0;this.K.readOnly=b>0;this.K.addEventListener("keyup",this);if(this.mc==null){this.mc=document.createElement("div");this.v.appendChild(this.mc);
|
|
953
954
|
this.mc.addEventListener("mousedown",this);this.mc.addEventListener("mouseup",this)}this.mc.className="combo-arrow";this.mc.xw=true;var a;for(b=this.v.parentNode;b;){if(b.Bc){a=b;break}b=b.parentNode}if(this.xb==null){this.xb=document.createElement("div");this.xb.className="combo-options";if(N=="dspf"&&Eb())Hb.designer.b.appendChild(this.xb);else a?a.appendChild(this.xb):pui.runtimeContainer.appendChild(this.xb)}this.xb.style.display="none";this.xb.className="combo-options";yd(this,this.v.className.split(" ")[1]);
|
|
954
|
-
pui.Ug.push(this)};
|
|
955
|
-
|
|
955
|
+
pui.Ug.push(this)};ua.z=function(){var b=0;b=this.v.style.width;var a=this.v.offsetWidth,c=parseInt(getComputedStyle(this.mc).width)+3;if(b[b.length-1]==="%"){b=(1-c/a)*100;if(isNaN(b)||b<0)b=0;this.K.style.width=b+"%";this.K.style.zIndex=-1}else{b=parseInt(b)-c;if(isNaN(b)||b<0)b=0;this.K.style.width=b+"px"}};ua.setValue=function(b){this.K.value=b;pui.qe(this.K)};ua.getValue=function(){return this.K.value};ua.kq=function(b){this.K.readOnly=b};ua.setDisabled=function(b){this.K.disabled=b};
|
|
956
|
+
ua.jq=function(b){this.K.maxLength=b};ua.az=function(b,a){this.K.setAttribute(b,a)};function yd(b,a){b.K.className="combo-main-box "+a.split(" ")[0];pui.Q(b.xb,b.K.className.split(" ")[1]+"-combo-options");pui.Q(b.mc,b.K.className.split(" ")[1]+"-combo-arrow")}ua.Hn=function(b,a){this.K[b]=a;if(this.v[b]!=null)this.v[b]=na()};ua.clear=function(){this.choices=[];this["choice values"]=[];this.K.value="";pui.qe(this.K)};ua.getBox=function(){return this.K};
|
|
956
957
|
pui.$e.prototype.showChoices=function(){var b=this.xb;if(this.mc.className.split(" ")[0]!="open")this.mc.className="open combo-arrow "+this.K.className.split(" ")[1]+"-combo-arrow";typeof this.v.onoptiondisplay=="function"&&this.v.onoptiondisplay();b.innerHTML="";b.style.display="";b.style.height=this.choices.length>5||this.choices.length==0?"":"auto";var a=this.v.offsetTop,c=this.v.offsetLeft,e=this.v.parentNode;if(e.parentNode.grid){a+=e.offsetTop;c+=e.offsetLeft;e=e.parentNode;a+=e.offsetTop;c+=
|
|
957
958
|
e.offsetLeft;e=e.parentNode}if(e.getAttribute("container")=="true"){e=pui.layout.Df(e);a+=e.y;c+=e.x}if(N=="genie")if(this.v.parentNode.layerInfo){a+=this.v.parentNode.offsetTop+this.v.parentNode.clientTop;c+=this.v.parentNode.offsetLeft+this.v.parentNode.clientLeft}a+=this.v.offsetHeight;b.style.top=a+"px";b.style.left=c+"px";a=0;for(c=this.choices.length;a<c;a++){e=document.createElement("div");e.innerHTML=this.choices[a];e.ph=this["choice values"][a];if(e.ph==null)e.ph=this.choices[a];e.vw=this.choices[a];
|
|
958
959
|
e.className="combo-option";e.addEventListener("click",this);e.addEventListener("mousedown",this);e.addEventListener("mouseover",this);e.addEventListener("mouseout",this);b.appendChild(e)}a=this.v.offsetWidth;if(a<20&&/\d+px$/.test(this.v.style.width))a=parseInt(this.v.style.width);b.classList.remove("padr20");if(b.scrollHeight>b.offsetHeight)if(pui.is_ie)a-=17;else pui.is_firefox&&b.classList.add("padr");if(a<20)a=20;b.style.minWidth=a+"px";a=parseInt(b.style.top,10);if(this["select box placement"]===
|
|
@@ -982,14 +983,14 @@ pui.da(b,"ui-btn-icon-bottom");m!="left"&&m!="right"||pui.Q(b,"ui-btn-icon-"+m)}
|
|
|
982
983
|
"arrow-u";if(m=="down arrow")m="arrow-d";if(m==null)m="";if(m!="")m=" ui-icon-"+m;e.className="ui-icon"+m+l;pui.ma(e)}};this.Pg=function(m){m==true?pui.Q(b,"ui-mini"):pui.da(b,"ui-mini")};this.setDisabled=function(m){h=m};this.T=function(m){if(!(m==null||pui.p(m))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius="";a.style.borderBottomRightRadius=
|
|
983
984
|
"";switch(m){case "left":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";break;case "right":b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;case "top":b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderTopLeftRadius="0";break;case "bottom":b.style.borderBottomRightRadius=
|
|
984
985
|
"0";b.style.borderBottomLeftRadius="0";a.style.borderBottomRightRadius="0";a.style.borderBottomLeftRadius="0";break;case "all":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;default:break}}};this.setHeight=function(m){if(typeof m=="number")m+="px";b.style.height=m};this.setStyle=
|
|
985
|
-
function(m,r){if(pui.p(r))r="";var p=m.split(" ");if(p.length==2)m=p[0]+p[1].substr(0,1).toUpperCase()+p[1].substr(1);if(m=="cursor"){e.style[m]=r;b.style[m]=r;a.style[m]=r}if(m=="textAlign")b.style[m]=r;else c.style[m]=r};this.
|
|
986
|
+
function(m,r){if(pui.p(r))r="";var p=m.split(" ");if(p.length==2)m=p[0]+p[1].substr(0,1).toUpperCase()+p[1].substr(1);if(m=="cursor"){e.style[m]=r;b.style[m]=r;a.style[m]=r}if(m=="textAlign")b.style[m]=r;else c.style[m]=r};this.fz=function(m){if(!n.designMode)b.href=m};this.jz=function(m){if(!n.designMode)b.target=m};this.cz=function(m){n.designMode||(b.download=m)};this.wu=function(m){if(n.b!=null){if(m!=null)n.b.style.height=m;if(n.b.style.height!=null&&n.b.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<
|
|
986
987
|
0){m=b.offsetHeight-26;if(m<0)m=0;c.style.lineHeight=m+"px"}else c.style.lineHeight=null}};this.Lo=this.Nd=function(){return b};this.Be=function(){return a};this.Po=function(){return c};this.Ng=function(m){for(var r=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],p=0;p<r.length;p++){var s=r[p],t=m[s];t!=null&&n.setStyle(s,t)}};this.destroy=function(){n&&n.b&&pui.kh.apply(n.b);if(b){pui.pd(b);
|
|
987
988
|
b=null}if(a){pui.pd(a);a=null}if(c){pui.pd(c);c=null}if(e){pui.pd(e);e=null}if(n){pui.uc.prototype.Lc.apply(n);n=null}}};
|
|
988
|
-
pui.widgets.
|
|
989
|
+
pui.widgets.jA=function(b){var a={};for(var c in b)a[c]=b[c];if(a.value==null)a.value="Click Here";if(a.width==null)a.width="160px";if(a.height==null)a.height="42px";if(a.theme==null)a.theme="c - Gray";b=document.createElement("div");b.style.width=a.width;b.style.height=a.height;c=new pui.Qm;c.b=b;c.designMode=true;c.ze=true;c.init();c.setText(a.value);c.yd(a.theme);c.setIcon(a.icon);c.tm(a["icon position"]);c.Pg(a["small button"]=="true");c.T(a["straight edge"]);return b};
|
|
989
990
|
pui.widgets.add({name:"css button",newValue:"Click Here",sd:true,defaults:{width:"160px",theme:"c - Gray"},Ff:function(b){switch(b.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":b.dom.button.setStyle(b.propertyName,b.value);break;default:break}},propertySetters:{"field type":function(b){var a=new pui.Qm;a.b=b.dom;a.designMode=
|
|
990
991
|
b.design;pui.ma(b.dom);if(!b.design&&b.properties["hyperlink reference"]==null&&b.properties.target==null)a.Yu=true;a.init();b.dom.button=a;a.setText(b.evalProperty("value"));a.yd(b.evalProperty("theme"));a.setIcon(b.evalProperty("icon"));a.tm(b.evalProperty("icon position"));a.Pg(b.evalProperty("small button")=="true");a.T(b.evalProperty("straight edge"));a.setHeight("100%");b.dom.Tf=pui.Sg;b.dom.destroy=a.destroy},theme:function(b){b.dom.button.yd(b.value)},value:function(b){b.dom.button.setText(b.value)},
|
|
991
992
|
"icon position":function(b){b.dom.button.tm(b.value)},icon:function(b){var a;if(b.value)b.value=Kb(b.value);if(b.value.substr(0,9)=="material:"){a=Kb(b.value.substr(9));b.dom.button.setIcon(a,"material")}else if(b.value.substr(0,12)=="fontAwesome:"){a=Kb(b.value.substr(12));b.dom.button.setIcon(a,"fontAwesome")}else b.dom.button.setIcon(b.value)},"small button":function(b){b.dom.button.Pg(b.value=="true"||b.value==true)},disabled:function(b){b.dom.button.setDisabled(b.value=="true"||b.value==true)},
|
|
992
|
-
"straight edge":function(b){b.dom.button.T(b.value)},"hyperlink reference":function(b){var a=b.value;if(b.designMode)a=null;b.dom.button.
|
|
993
|
+
"straight edge":function(b){b.dom.button.T(b.value)},"hyperlink reference":function(b){var a=b.value;if(b.designMode)a=null;b.dom.button.fz(a)},target:function(b){b.dom.button.jz(b.value)},"download file":function(b){b.dom.button.cz(b.value)},height:function(b){b.dom.button.wu(b.value)},visibility:function(b){if(!b.design)b.dom.firstChild.style.display=b.value=="hidden"?"none":""},cursor:function(b){b.dom.button.setStyle("cursor",b.value)}}});pui.Sm=function(){this.b=null;this.type="body";this.Bf=false;var b,a,c,e,f="c",g=1,h=this;this.init=function(){b=document.createElement("span");a=document.createElement("span");if(h.type=="header")c=document.createElement("span");b.className="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-"+f+" no-shadow";b.style.marginTop="0";b.style.marginBottom="0";b.style.cursor="default";a.className="ui-btn-inner ui-btn-corner-all";if(h.type=="header"){c.className="ui-btn-text";a.appendChild(c)}if(h.Bf&&h.type==
|
|
993
994
|
"body"){e=document.createElement("div");e.setAttribute("container","true");e.style.position="absolute";e.style.width="100%";e.style.height="100%";e.style.overflow="hidden";b.appendChild(e)}b.appendChild(a);h.b.appendChild(b)};this.setText=function(l){if(h.type=="header"){if(l==null||pui.p(l)||pui.Nb(l)||pui.dc(l))l="";c.innerHTML=l}};this.yd=function(l){if(l==null||l==""||pui.p(l))l="c";l=l.replace(/ - {1}.*/g,"");l=l.toLowerCase();if(f!=l){for(var n=b.className.split(" "),m=0;m<n.length;m++){var r=
|
|
994
995
|
n[m];if(r.length>2&&r.substr(r.length-(g+1),g+1)=="-"+f){n=r.substr(0,r.length-g)+l;pui.da(b,r);pui.Q(b,n);break}}f=l;g=f.length}};this.T=function(l){if(!(l==null||pui.p(l))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius="";a.style.borderBottomRightRadius="";switch(l){case "left":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius=
|
|
995
996
|
"0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";break;case "right":b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;case "top":b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderTopLeftRadius="0";break;case "bottom":b.style.borderBottomRightRadius="0";b.style.borderBottomLeftRadius="0";a.style.borderBottomRightRadius="0";
|
|
@@ -1000,8 +1001,8 @@ pui.Rm=function(){this.b=null;this.Bf=false;var b,a,c,e,f=true,g=40,h="none",l=t
|
|
|
1000
1001
|
l.b.appendChild(a);l.resize();var n=l.b.parentNode;n!=null&&n.Bc==true&&l.ut();n==null&&setTimeout(function(){var m=l.b.parentNode;m!=null&&m.Bc==true&&l.ut()},0)};this.ut=function(){var n=l.b.parentNode;new pui.pk({Gk:b,move:n});T(b,"touchstart",function(m){if(m.touches.length==1){m=m.touches[0];n.D={};n.D.startX=m.pageX;n.D.startY=m.pageY;n.D.ib=parseInt(n.style.left);n.D.Ga=parseInt(n.style.top)}});T(b,"touchmove",function(m){if(m.touches.length==1){var r=m.touches[0],p=r.pageY;n.style.left=n.D.ib-
|
|
1001
1002
|
n.D.startX+r.pageX+"px";n.style.top=n.D.Ga-n.D.startY+p+"px";m.preventDefault()}});b.style.cursor="move";if(b.firstChild!=null)b.firstChild.style.cursor="move"};this.Wj=function(n){b.style.display=n?"":"none";f=n;l.T(h);l.resize()};this.Xj=function(n){n=parseInt(n);if(isNaN(n)||n<=0)n=40;g=n;l.resize()};this.T=function(n){if(!(n==null||pui.p(n))){h=n;if(f)switch(n){case "left":c.T("left");c.Nd().style.borderBottomRightRadius="0";c.Be().style.borderBottomRightRadius="0";e.T("left");e.Nd().style.borderTopRightRadius=
|
|
1002
1003
|
"0";e.Be().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Nd().style.borderBottomLeftRadius="0";c.Be().style.borderBottomLeftRadius="0";e.T("right");e.Nd().style.borderTopLeftRadius="0";e.Be().style.borderTopLeftRadius="0";break;case "top":c.T("all");e.T("top");break;case "bottom":c.T("bottom");e.T("all");break;case "all":c.T("all");e.T("all");break;default:c.T("bottom");e.T("top");break}else e.T(n)}};this.setText=function(n){c.setText(n)};this.Po=function(){return c.Po()};this.setStyle=
|
|
1003
|
-
function(n,m){c.setStyle(n,m)};this.Ng=function(n){c.Ng(n)};this.Zf=function(n){c.yd(n)};this.Xf=function(n){e.yd(n)};this.resize=function(n){var m;if(typeof n=="string")if(n.length<3||n.substr(n.length-2,2)!="px")n=null;m=n!=null&&!isNaN(parseInt(n))?parseInt(n):l.b.offsetHeight;n=g;f||(n=-1);m=m-n-5;if(m<0)m=0;if(f)b.style.height=n+"px";a.style.top=n+1+"px";a.style.height=m+"px"};this.setHeight=function(n){l.b.style.height=n;l.resize(n)};this.
|
|
1004
|
-
pui.widgets.
|
|
1004
|
+
function(n,m){c.setStyle(n,m)};this.Ng=function(n){c.Ng(n)};this.Zf=function(n){c.yd(n)};this.Xf=function(n){e.yd(n)};this.resize=function(n){var m;if(typeof n=="string")if(n.length<3||n.substr(n.length-2,2)!="px")n=null;m=n!=null&&!isNaN(parseInt(n))?parseInt(n):l.b.offsetHeight;n=g;f||(n=-1);m=m-n-5;if(m<0)m=0;if(f)b.style.height=n+"px";a.style.top=n+1+"px";a.style.height=m+"px"};this.setHeight=function(n){l.b.style.height=n;l.resize(n)};this.qA=function(){return c.Nd()};this.pA=function(){return g}};
|
|
1005
|
+
pui.widgets.kA=function(b){var a={};for(var c in b)a[c]=b[c];if(a.value==null)a.value="Panel Title";if(a.width==null)a.width="200px";if(a.height==null)a.height="300px";if(a["header theme"]==null)a["header theme"]="B - Blue";if(a["body theme"]==null)a["body theme"]="C - Gray";b=document.createElement("div");b.style.width=a.width;b.style.height=a.height;b.style.position="relative";c=new pui.Rm;c.b=b;c.init();c.setText(a.value);c.Zf(a["header theme"]);c.Xf(a["body theme"]);c.T(a["straight edge"]);c.Wj(a["has header"]!==
|
|
1005
1006
|
"false"&&a["has header"]!==false);c.Xj(a["header height"]);c.setHeight(a.height);return b};
|
|
1006
1007
|
pui.widgets.add({name:"css panel",menuName:"CSS Panel",newId:"Panel",newValue:"Panel Title",sd:true,defaults:{width:"200px",height:"300px","z index":"8"},Ff:function(b){switch(b.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":b.dom.panel.setStyle(b.propertyName,b.value);break;default:break}},propertySetters:{"field type":function(b){b.dom.sizeMe=
|
|
1007
1008
|
function(){b.dom.panel.resize()};var a=new pui.Rm;a.b=b.dom;b.dom.innerHTML="";a.init();b.dom.panel=a;var c=b.evalProperty("height");c!=null&&a.setHeight(c);a.setText(b.evalProperty("value"));a.Zf(b.evalProperty("header theme"));a.Xf(b.evalProperty("body theme"));a.T(b.evalProperty("straight edge"));c=b.evalProperty("has header");c=c!=="false"&&c!==false;a.Wj(c);a.Xj(b.evalProperty("header height"))},"header theme":function(b){b.dom.panel.Zf(b.value)},"body theme":function(b){b.dom.panel.Xf(b.value)},
|
|
@@ -1011,7 +1012,7 @@ function Cd(b,a,c){var e,f,g,h=0,l,n="false";if(b.Np!=null&&b.Np==="true")n=b.Np
|
|
|
1011
1012
|
t.setFullYear(m.getFullYear()+1);var w=new Date(m);w.setDate(1);w.setDate(1-(7+w.getDay()-h)%7);(new Date(p)).setDate(0);var y=new Date;a=document.createElement("table");a.className="pui-calendar-outer-table";var x=document.createElement("tbody");a.appendChild(x);var E=document.createElement("tr");x.appendChild(E);x=document.createElement("td");x.className="brndrow1";E.appendChild(x);var J=document.createElement("table");J.className="pui-calendar-inner-table";x.appendChild(J);E=document.createElement("tbody");
|
|
1012
1013
|
J.appendChild(E);x=document.createElement("tr");E.appendChild(x);J=document.createElement("td");J.className="brndrow1";J.colSpan="1";var z=document.createElement("span");z.setAttribute("arrow","1");z.className="pui-calendar-arrow-prev-year";var G=Ed(s);z.onclick=function(Y){Cd(pui.currentDateField,G+document.cal.time.value,c);ub(Y)};J.appendChild(z);x.appendChild(J);s=document.createElement("td");s.className="brndrow1";s.colSpan="1";J=document.createElement("span");J.setAttribute("arrow","1");J.className=
|
|
1013
1014
|
"pui-calendar-arrow-prev-month";var D=Ed(r);J.onclick=function(Y){Cd(pui.currentDateField,D+document.cal.time.value,c);ub(Y)};s.appendChild(J);x.appendChild(s);r=document.createElement("td");r.className="calendar brndrow1 pui-calendar-month-year-header";r.colSpan="3";if(n=="true")r.colSpan="4";r.innerHTML=e[m.getMonth()]+" "+m.getFullYear();x.appendChild(r);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";r=document.createElement("span");r.setAttribute("arrow",
|
|
1014
|
-
"1");r.className="pui-calendar-arrow-next-month";var
|
|
1015
|
+
"1");r.className="pui-calendar-arrow-next-month";var B=Ed(p);r.onclick=function(Y){Cd(pui.currentDateField,B+document.cal.time.value,c);ub(Y)};e.appendChild(r);x.appendChild(e);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";p=document.createElement("span");p.setAttribute("arrow","1");p.className="pui-calendar-arrow-next-year";var K=Ed(t);p.onclick=function(Y){Cd(pui.currentDateField,K+document.cal.time.value,c);ub(Y)};e.appendChild(p);x.appendChild(e);
|
|
1015
1016
|
e=new Date(w);p=document.createElement("tr");if(l){t=document.createElement("td");t.className="calendar brndrow2 pui-calendar-week-number-header";t.innerHTML=l;p.appendChild(t)}for(l=0;l<7;l++){t=document.createElement("td");t.className="calendar brndrow2 pui-calendar-weekday-header";t.innerHTML=f[(h+l)%7];p.appendChild(t)}for(E.appendChild(p);e.getMonth()==m.getMonth()||e.getMonth()==w.getMonth();){var Q;if(n=="true"){if(Q==null)Q=1;f=e;if(f.getDay()==h){Q=new Date(f.getTime());Q.setHours(0,0,0,
|
|
1016
1017
|
0);if(h==0)Q.setDate(Q.getDate()+4);else if(h==1)Q.setDate(Q.getDate()+3);else h==6&&Q.setDate(Q.getDate()+5);l=new Date(Q.getFullYear(),0,4);Q=1+Math.round(((Q.getTime()-l.getTime())/864E5-3+(l.getDay()+6)%7)/7)}if(typeof pui["week number calculator"]=="function")Q=pui["week number calculator"](f)}f=document.createElement("tr");if(n=="true"&&e.getDay()==h){l=document.createElement("td");l.className="calendar pui-calendar-week-number";l.innerHTML=Q;f.appendChild(l)}for(l=0;l<7;l++){p=document.createElement("td");
|
|
1017
1018
|
t=e.getDate()==m.getDate()&&e.getMonth()==m.getMonth()?"calendar pui-calendar-selected-date":e.getDay()==0||e.getDay()==6?"calendar pui-calendar-weekend-date":"calendar pui-calendar-workday-date";if(e.getDate()==y.getDate()&&e.getMonth()==y.getMonth()&&e.getYear()==y.getYear())t+=" pui-calendar-current-date";t+=e.getMonth()==m.getMonth()?" pui-calendar-day-active-month":" pui-calendar-day-inactive-month";p.className=t;p.uy=Fd(e,c,b.N);p.onclick=function(Y){pui.currentDateField.value=Y.currentTarget.uy;
|
|
@@ -1028,7 +1029,7 @@ null||b.pui.properties.visibility=="")if(N=="genie"&&b.C!=null&&b.C.attr!=null){
|
|
|
1028
1029
|
n.edtWrd!=null){if(m=n.edtWrd!="")b:{m=h;for(r=0;r<m.length;r++){p=m.substr(r,1);if(p<"0"||p>"9"){m=false;break b}}m=true}m=m}m=m}if(m)if(n.edtWrd=="' / / '"&&h.length==6||n.edtWrd=="' / / '"&&h.length==8)h=h.substr(0,2)+"/"+h.substr(2,2)+"/"+h.substr(4);if(n!=null&&n.dataLength=="8"&&n.decPos=="0"&&(l=="MM/DD/YY"||l=="DD/MM/YY"))l+="YY";if(n!=null&&n.dataLength=="6"&&n.decPos=="0"&&(l=="MM/DD/YYYY"||l=="DD/MM/YYYY"))l=l.substr(0,6);m=null;if(n!=null){m=n.dateFormat;if(m==null)m=n.customPattern;
|
|
1029
1030
|
if((m==""||m==null)&&pui["default date pattern"])m=pui["default date pattern"];if(m!=null){locale=pui.locale&&pui.locales[pui.locale]?pui.locale:n.locale;if(n=pui.formatting.Date.parse(h,m,locale)){h=n.format("d-m-Y 00:00:00",locale);break a}}}n="";m=l.indexOf("MM");if(m>=0)n=h.substr(m,2);if(n.substr(0,1)==" ")n="0"+n.substr(1,1);m="";r=l.indexOf("DD");if(r>=0)m=h.substr(r,2);if(m.substr(0,1)==" ")m="0"+m.substr(1,1);r=r="";p=l.indexOf("YY");l=l.indexOf("YYYY");if(l>=0)r=h.substr(l,4);else if(p>=
|
|
1030
1031
|
0){r=h.substr(p,2);h=2E3;if(Number(r)>39)h=1900;r=Number(r)+h}h=m+"-"+n+"-"+r+" 00:00:00"}}g(b,h,a);if(!f)f=window.event;if(f){f.cancelBubble=true;f.returnValue=false;f.preventDefault&&f.preventDefault();f.stopPropagation&&f.stopPropagation()}return false};if(b.fb!=null&&b.Wa!=null){c.fb=b.fb;c.Wa=b.Wa}b.calimg=c;Ad[Bd++]=b;if(b.parentNode==null)b.calimg.Bt=true;else{b.parentNode.appendChild(c);pui.Gl(b);b.calimg.Bt=false;if(document.getElementById("popcal")==null){T(document,"click",function(f){for(f=
|
|
1031
|
-
tb(f);f!=null;){if(f.id=="popcal"||f.getAttribute!=null&&f.getAttribute("arrow")=="1")return;f=f.parentNode}zc()});c=document.createElement("div");c.style.visibility="hidden";c.id="popcal";document.body.appendChild(c)}}}pui.Gl=function(b){var a=b.calimg;if(a!=null){a.style.display="none";a.style.left=b.offsetLeft+b.offsetWidth+5+"px";var c=b.offsetTop;c+=parseInt((b.offsetHeight-22)/2);a.style.top=c+"px";a.style.display="block"}};pui.
|
|
1032
|
+
tb(f);f!=null;){if(f.id=="popcal"||f.getAttribute!=null&&f.getAttribute("arrow")=="1")return;f=f.parentNode}zc()});c=document.createElement("div");c.style.visibility="hidden";c.id="popcal";document.body.appendChild(c)}}}pui.Gl=function(b){var a=b.calimg;if(a!=null){a.style.display="none";a.style.left=b.offsetLeft+b.offsetWidth+5+"px";var c=b.offsetTop;c+=parseInt((b.offsetHeight-22)/2);a.style.top=c+"px";a.style.display="block"}};pui.MA=function(){for(var b=0;b<Bd;b++)pui.Gl(Ad[b])};
|
|
1032
1033
|
pui.Qp=function(b){var a=b.calimg;if(a){a.parentNode.removeChild(a);b.calimg=null}};
|
|
1033
1034
|
pui.widgets.add({name:"date field",tag:"input",newId:"Date",Gp:pui.normalizeURL("/profoundui/proddata/images/cal.gif"),at:"pui-cal pui-cal-input pui-calendar-icon",Mt:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");b.dom.Hj=b.evalProperty("show today option");b.dom.lw=b.evalProperty("calendar position");if(b.design){b.dom.readOnly=true;b.dom.sizeMe=function(){var c=b.e;c.wh();c.Kg()}}else{if(b.dom.tagName=="INPUT"&&!b.dom.readOnly&&
|
|
1034
1035
|
!b.dom.disabled){var a;if(b.properties["date format"])a=b.properties["date format"];else{if(N=="genie")a=pui.F.config.defaultDateFormat;a||(a=pui.defaultDateFormat?pui.defaultDateFormat:"MM/DD/YY")}setTimeout(function(){if(b.dom.calimg==null)Hd(b.dom,a);else if(N=="genie"){pui.Qp(b.dom);Hd(b.dom,a)}},1);if(b.dom.getAttribute("autocomplete")==null&&(N!="genie"||!pui.F.config.lh)){b.dom.setAttribute("autocomplete","off");N=="dspf"&&b.dom.setAttribute("name",pui.Wd())}}if(pui.qa&&!pui.Gf){T(b.dom,"focus",
|
|
@@ -1059,7 +1060,7 @@ pui.fileupload.Ha.prototype.handleEvent=function(b){if(b.type=="click"){switch(b
|
|
|
1059
1060
|
a);return false}}this.upload()}b.preventDefault();b.stopPropagation();return false}if(b.target.Ix){b.preventDefault();b.stopPropagation();if(this.Wb!==null)return false;this.ra.splice((b.target||b.srcElement).vy,1);Jd(this);this.render();return false}}else if(b.type=="change"){b=b.target.files;if(this.Fd!=this.Xg)this.ra=[];Md(this);Ld(this);Jd(this);Qd(this,b)}};
|
|
1060
1061
|
function Qd(b,a){var c,e,f=[],g=false;for(c=0;c<a.length&&!g;c++){for(var h=false,l=0;l<b.ra.length;l++)if(b.ra[l].name===a[c].name){h=true;break}l=a[c].type;var n=b.fg.length<=0||b.fg.indexOf(l)>=0;if(!n&&l.toLowerCase()==="image/jpg"&&b.fg.indexOf("image/jpeg")>=0)n=true;if(!n&&l.toLowerCase()==="image/jpeg"&&b.fg.indexOf("image/jpg")>=0)n=true;if(!n||a[c].nt===false){g=true;e=pui.getLanguageText("runtimeMsg","upload invalid type");console.log('Content-Type "%s" not permitted for upload.',l)}else if(h){g=
|
|
1061
1062
|
true;e=pui.getLanguageText("runtimeMsg","upload duplicate file")}else if(a[c].size>b.xi*1048576){g=true;e=pui.getLanguageText("runtimeMsg","upload size limit",[b.xi])}else f.push(a[c])}if(!g)for(c=0;c<f.length;c++)b.ra.push(f[c]);b.render();e&&Id(b,e)}pui.ry=function(b){if(pui.Pc.length>0){for(var a=0;a<pui.Pc.length;a++)pui.Pc[a].upload();pui.Yr(b);return true}else return false};
|
|
1062
|
-
pui.Yr=function(b){var a,c=true;for(a=0;a<pui.Pc.length;a++)if(pui.Pc[a].Wb!=null){c=false;break}if(c){c={};var e=true;for(a=0;a<pui.Pc.length;a++){var f=pui.Pc[a].Hc;if(f!=""){e=false;c[pui.Pc[a].getId()]=f}}if(e){for(a=0;a<pui.Pc.length;a++){var g=pui.Pc[a];c=g.
|
|
1063
|
+
pui.Yr=function(b){var a,c=true;for(a=0;a<pui.Pc.length;a++)if(pui.Pc[a].Wb!=null){c=false;break}if(c){c={};var e=true;for(a=0;a<pui.Pc.length;a++){var f=pui.Pc[a].Hc;if(f!=""){e=false;c[pui.Pc[a].getId()]=f}}if(e){for(a=0;a<pui.Pc.length;a++){var g=pui.Pc[a];c=g.zy;e=g.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=g.Gd;if(f.length>256)f=f.substr(0,256);else for(;f.length<256;)f+=" ";g=g.getGenerateNames()?g.getActualFileNames():g.getFileNames(false);for(var h="",l=0;l<g.length;l++){var n=
|
|
1063
1064
|
g[l];if(n.length>256)n=n.substr(0,256);else for(;n.length<256;)n+=" ";h+=n}b[c]=e+f+h}pui.haltFrames();pui.submitResponse(b)}else pui.nw(c)}else setTimeout(function(){pui.Yr(b)},250)};
|
|
1064
1065
|
pui.fileupload.Le={"field type":function(b){if(b.dom.fileUpload==null){b.dom.fileUpload=new pui.fileupload.Ha(b.dom);N=="dspf"&&pui.Pc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]=="string";){c=b.evalProperty(c);if(e.length===0||e.indexOf(c)===-1)e.push(c);c.toLowerCase()==="image/jpg"&&e.indexOf("image/jpeg")===-1&&e.push("image/jpeg");c.toLowerCase()==="image/jpeg"&&e.indexOf("image/jpg")===-1&&e.push("image/jpg");c="allowed type "+ ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.fg=
|
|
1065
1066
|
e;b.dom.fileUpload.render()},"selection mode":function(b){b.dom.fileUpload.setMode(b.value)},"number of files":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.lg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.xi=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Kb(b.value);if(typeof b=="string"){a.Gd=b;if(a.Gd.length>1&&a.Gd.charAt(a.Gd.length-1)=="/")a.Gd=a.Gd.substr(0,
|
|
@@ -1078,17 +1079,17 @@ pui.fileupload.Jl=function(b){var a,c,e=b.dataTransfer.items;if(e!=null){a=0;for
|
|
|
1078
1079
|
f.disabled)){if(z!=null&&z.touches!=null)if(z.touches.length!=1)return;var G=(Xc(z)-y[0])*w;z=(Yc(z)-y[1])*w;a(G,z);var D=n[n.length-1];D.push(G);D.push(z);l.x=G;l.y=z}}function t(){g.closePath();if(x){Zb(h,"touchmove",s);Zb(h,"touchend",t);Zb(document,"touchend",t)}else{Zb(h,"mousemove",s);Zb(h,"mouseup",t);Zb(document,"mouseup",t)}pui.Ye(f.b)}if(!(f.readOnly||f.disabled))if(g!=null){var w=1;if(N=="dspf"&&Hb&&Hb.designer&&Hb.designer.b)w=Hb.Pm;var y=pui.$c(f.b,true),x=false;if(p!=null&&p.touches!=
|
|
1079
1080
|
null){if(p.touches.length!=1)return;x=true}n.push([]);l.x=(Xc(p)-y[0])*w;l.y=(Yc(p)-y[1])*w;g.beginPath();a(l.x,l.y,l.x,l.y);var E=n[n.length-1];E.push(l.x);E.push(l.y);c();if(!pui.Ge(p)){if(x){T(h,"touchmove",s);T(h,"touchend",t);T(document,"touchend",t)}else{T(h,"mousemove",s);T(h,"mouseup",t);T(document,"mouseup",t)}if(f.designMode&&!f.e.isSelected()){E=f.e.designer;var J=E.selection;J.clear();J.add(f.e);E.pb.refresh()}ub(p);return false}}}var f=this,g,h,l={},n=[],m,r;this.b=null;this.className=
|
|
1080
1081
|
"pui-signature-pad-canvas";this.designMode=false;this.e=null;this.init=function(){f.b.innerHTML="";f.b.className="pui-signature-pad-container";h=document.createElement("canvas");if(!f.designMode)h.innerHTML="Your browser does not support HTML5 Canvas.<br/>Signature pad widget will not function.";f.b.appendChild(h);m=document.createElement("div");m.className="pui-signature-pad-clear-box";m.innerHTML="Clear";m.onmousedown=function(p){ub(p);return false};m.onclick=function(){f.clear();c()};f.b.appendChild(m);
|
|
1081
|
-
if(f.designMode){r=document.createElement("div");r.className="pui-signature-pad-move-box";r.innerHTML="Move";f.b.appendChild(r)}f.resize();h.addEventListener("pointerdown",function(p){p.stopPropagation()});T(h,"mousedown",e);T(h,"touchstart",e);T(f.b,"dblclick",function(p){if(f.designMode){var s=f.e.designer.pb;s.jB("value",null,true,p);s.
|
|
1082
|
-
f.b.offsetWidth+"px";h.style.height=f.b.offsetHeight+"px";h.setAttribute("width",f.b.offsetWidth);h.setAttribute("height",f.b.offsetHeight);b();if(p==true)f.Yt();else n=[]};this.clear=function(){g!=null&&g.clearRect(0,0,f.b.offsetWidth,f.b.offsetHeight);f.resize()};this.
|
|
1082
|
+
if(f.designMode){r=document.createElement("div");r.className="pui-signature-pad-move-box";r.innerHTML="Move";f.b.appendChild(r)}f.resize();h.addEventListener("pointerdown",function(p){p.stopPropagation()});T(h,"mousedown",e);T(h,"touchstart",e);T(f.b,"dblclick",function(p){if(f.designMode){var s=f.e.designer.pb;s.jB("value",null,true,p);s.Vz.gB()}});if(f.designMode)if(pui.is_chrome||pui.is_old_ie&&pui.ie_mode<10){h.style.display="none";r.style.display="none"}};this.resize=function(p){h.style.width=
|
|
1083
|
+
f.b.offsetWidth+"px";h.style.height=f.b.offsetHeight+"px";h.setAttribute("width",f.b.offsetWidth);h.setAttribute("height",f.b.offsetHeight);b();if(p==true)f.Yt();else n=[]};this.clear=function(){g!=null&&g.clearRect(0,0,f.b.offsetWidth,f.b.offsetHeight);f.resize()};this.bz=function(p){f.color=p;b()};this.Yy=function(p){f.backgroundColor=p;b()};this.Cu=function(){m.style.visibility=f.readOnly||f.disabled?"hidden":""};this.getValue=function(){for(var p="[",s=0;s<n.length;s++){var t=n[s];if(s>0)p+=",";
|
|
1083
1084
|
p+="[";for(j=0;j<t.length;j++){if(j>0)p+=",";p+=t[j]}p+="]"}p+="]";return p};this.setValue=function(p){f.clear();if(!(p.length<5||p.substr(0,2)!="[["||p.substr(p.length-2,2)!="]]")){try{n=eval("("+p+")")}catch(s){}f.Yt()}};this.Yt=function(){if(g!=null){g.beginPath();for(var p=0;p<n.length;p++)for(var s=n[p],t=0;t<s.length;t+=2){if(t+1>s.length)break;var w=t-2;if(w<0)w=0;a(s[w],s[w+1],s[t],s[t+1])}g.closePath()}}};
|
|
1084
1085
|
pui.widgets.add({name:"signature pad",defaults:{height:"150px",width:"450px","css class":"pui-signature-pad-container"},propertySetters:{"field type":function(b){if(b.dom.signaturePad==null){b.dom.signaturePad=new pui.kv;b.dom.signaturePad.b=b.dom;if(b.dom.signaturePad.designMode=b.design)b.dom.signaturePad.e=b.e;b.dom.signaturePad.init();b.dom.sizeMe=function(){b.dom.signaturePad.resize(true)};b.dom.le=true}},value:function(b){b.design||setTimeout(function(){b.dom.signaturePad.setValue(b.value)},
|
|
1085
|
-
0)},color:function(b){b.dom.signaturePad.
|
|
1086
|
+
0)},color:function(b){b.dom.signaturePad.bz(b.value)},"read only":function(b){b.dom.signaturePad.readOnly=b.value==true||b.value=="true"?true:false;b.dom.signaturePad.Cu()},disabled:function(b){b.dom.signaturePad.disabled=b.value==true||b.value=="true"?true:false;b.dom.signaturePad.Cu()},width:function(b){b.dom.style.width=b.value;b.dom.signaturePad.resize()},height:function(b){b.dom.style.height=b.value;b.dom.signaturePad.resize()},"background color":function(b){b.dom.signaturePad.Yy(b.value)}}});function Ud(b){var a=b.dom,c=b.evalProperty("value"),e=b.evalProperty("image source"),f=b.evalProperty("icon"),g=b.evalProperty("icon position"),h=b.evalProperty("cursor"),l=b.evalProperty("css class");if(l)l=Kb(l);if(b.properties.value=="script: value"){if(c=="")c=b.dom.innerHTML;if(c.substr(0,5).toLowerCase()=="<img "){b=c.indexOf(">");c=b>=0?c.substr(b+1):""}}b="";if(e!=null&&e!="")b='<img src="'+pui.normalizeURL(e)+'" style="vertical-align:middle;padding-bottom:2px;" /> ';var n="";if(f&&g){f=
|
|
1086
1087
|
Kb(f);if(f.substr(0,9)=="material:"){f=Kb(f.substr(9));n='<span class="pui-material-icons pui-material-icons-center '+(l?l+'"':'"')+(h?'style="cursor:'+h+'"':"")+">"+f+"</span>";if(c)c='<span class="pui-material-icons-text '+(l?l:"")+'">'+c+"</span>"}else if(f.substr(0,12)=="fontAwesome:"){f=Kb(f.substr(12));n='<span class="pui-fa-icons pui-fa-icons-center fa-'+f+" "+(l?l:"")+'"></span>';if(c)c='<span class="pui-fa-icons-text '+(l?l:"")+'">'+c+"</span>"}else{e=[{type:"material",title:"Material Icons",
|
|
1087
1088
|
classList:{"":"pui-material-icons"}},{type:"fontAwesome",title:"Font Awesome Icons",classList:{brands:"pui-fa-brands-icons fa-",solid:"pui-fa-solid-icons fa-",regular:"pui-fa-regular-icons fa-"}},{type:"jQueryIcons",title:"jQuery Mobile Icons",classList:{"":"ui-icon ui-icon-"}}];f=Kb(f);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)e=pui.customIconList.icons;f=f.split(":");var m=f.shift().split("-"),r=m.pop();m=m.join("-");var p=
|
|
1088
1089
|
f.pop();e.every(function(s){var t=s.type;s=s.classList[r];if(m===t){if(t==="fontAwesome"){n='<span class="pui-fa-icons-center '+s+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="pui-fa-icons-text '+(l?l:"")+'">'+c+"</span>"}else{n='<span class="pui-icons-center '+s+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="'+(l?l:"")+'">'+c+"</span>"}return false}return true})}}else n=b;a.setAttribute("type","button");a.innerHTML=g==="right"?c+n:n+c}
|
|
1089
1090
|
pui.widgets.add({name:"graphic button",tag:"button",inputType:"button",newValue:"Accept",sd:true,defaults:{width:!pui.is_quirksmode?"100px":null,"icon position":"left","image source":"/profoundui/proddata/images/accept.png",color:"#009933","font weight":"bold"},propertySetters:{"field type":function(b){Ud(b)},value:function(b){b.properties.value=b.value;Ud(b)},"image source":function(b){b.properties["image source"]=b.value;Ud(b)},icon:function(b){b.properties.icon=b.value;Ud(b)},"icon position":function(b){b.properties["icon position"]=
|
|
1090
1091
|
b.value;Ud(b)},"css class":function(b){b.properties["css class"]=b.value;Ud(b)},cursor:function(b){b.properties.cursor=b.value;Ud(b)}}});pui.oi=function(){function b(s){if(N!="genie"||pui.fa){if(p.Ep&&(!s||p.zj))return;if(p.grid.designMode)return;if(p.grid.Jb())return}p.grid.Dp()}function a(s){if(N!="genie"||pui.fa){if(p.Cp&&(!s||p.yj))return;if(p.grid.designMode)return;if(p.grid.Yb())return}p.grid.Bp()}this.y=this.x=100;this.width=500;this.xm=this.bi=this.$h=this.Ad=this.av=this.ii=this.ug=false;this.Kt=this.Lt=null;this.Cp=this.Ep=this.yj=this.zj=false;this.Sl=1;this.oa=this.ka=this.pa=this.ya=this.grid=this.b=null;var c,e,f,g,h;
|
|
1091
|
-
this.Xb=null;var l,n,m,r,p=this;this.init=function(){c=document.createElement("div");c.style.position="absolute";c.style.backgroundRepeat="repeat-x";c.style.textAlign="center";c.style.paddingTop="5px";c.style.overflow="hidden";c.onselectstart=
|
|
1092
|
+
this.Xb=null;var l,n,m,r,p=this;this.init=function(){c=document.createElement("div");c.style.position="absolute";c.style.backgroundRepeat="repeat-x";c.style.textAlign="center";c.style.paddingTop="5px";c.style.overflow="hidden";c.onselectstart=ta(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";p.b.appendChild(c);p.Xb=document.createElement("div");p.Xb.className="tempStatus";p.Xb.innerHTML="<span></span><span></span>";p.Xb.addEventListener("click",p);c.appendChild(p.Xb);
|
|
1092
1093
|
e=document.createElement("div");e.style.cursor="pointer";e.style.position="absolute";e.style.top="4px";e.style.left="4px";e.style.height="14px";e.style.padding="1px";e.style.width="14px";e.onclick=function(){p.grid.designMode||p.grid.exportCSV()};pui.Q(e,"export-image-icon");pui.Q(e,"csv-export-image-icon");c.appendChild(e);f=document.createElement("span");f.innerHTML=pui.getLanguageText("runtimeText","excel export text");f.style.position="absolute";f.style.top="5px";f.style.left="24px";f.style.textDecoration=
|
|
1093
1094
|
"underline";f.style.cursor="pointer";f.onclick=function(){p.grid.designMode||p.grid.exportCSV()};f.className="paging-link csv-paging-link";c.appendChild(f);g=document.createElement("div");g.style.cursor="pointer";g.style.position="absolute";g.style.top="4px";g.style.left="4px";g.style.height="14px";g.style.padding="1px";g.style.width="14px";g.onclick=function(){p.grid.designMode||p.grid.exportCSV(null,true)};pui.Q(g,"export-image-icon");pui.Q(g,"xlsx-export-image-icon");c.appendChild(g);h=document.createElement("span");
|
|
1094
1095
|
h.innerHTML=pui.getLanguageText("runtimeText","export to x",["XLSX"]);h.style.position="absolute";h.style.top="5px";h.style.left="24px";h.style.textDecoration="underline";h.style.cursor="pointer";h.onclick=function(){p.grid.designMode||p.grid.exportCSV(null,true)};h.className="paging-link xlsx-paging-link";c.appendChild(h);p.ya=document.createElement("div");p.ya.className="prev-image-icon";p.ya.style.verticalAlign="top";p.ya.style.display="inline-block";p.ya.style.height="16px";p.ya.style.width="16px";
|
|
@@ -1097,8 +1098,8 @@ pui.Q(p.pa,"paging-link-hover")};p.pa.onmouseout=function(){p.pa.disabled||pui.d
|
|
|
1097
1098
|
n.innerHTML=" ";c.appendChild(n);r=document.createElement("span");r.style.fontFamily="Arial";r.style.fontSize="11px";r.style.fontWeight="bold";r.style.verticalAlign="top";r.className="paging-number";c.appendChild(r);n=document.createElement("span");n.innerHTML=" ";c.appendChild(n);p.oa=document.createElement("span");p.oa.innerHTML=pui.getLanguageText("runtimeText","next link text");p.oa.href="javascript:void(0)";p.oa.style.verticalAlign=
|
|
1098
1099
|
"top";p.oa.zd="PageDown";p.oa.S="0";p.oa.Db=p;p.oa.nextPage=true;p.oa.onmouseover=function(){p.oa.disabled||pui.Q(p.oa,"paging-link-hover")};p.oa.onmouseout=function(){p.oa.disabled||pui.da(p.oa,"paging-link-hover")};p.oa.onclick=function(){a(true)};p.oa.className="paging-link next-paging-link";c.appendChild(p.oa);p.ka=document.createElement("div");p.ka.className="next-image-icon";p.ka.style.verticalAlign="top";p.ka.style.display="inline-block";p.ka.style.height="16px";p.ka.style.width="16px";p.ka.zd=
|
|
1099
1100
|
"PageDown";p.ka.S="0";p.ka.Db=p;p.ka.nextPage=true;p.ka.onmouseover=function(){p.ka.disabled||pui.Q(p.oa,"paging-link-hover")};p.ka.onmouseout=function(){p.ka.disabled||pui.da(p.oa,"paging-link-hover")};p.ka.onclick=function(){a(true)};c.appendChild(p.ka);if(!p.yj||!p.zj)pui.Nn=true;if(!p.grid.designMode&&pui.runtimeContainer!=null&&c!=null&&c.parentNode!=null){var s=function(t){if(c==null||c.parentNode==null)Zb(pui.runtimeContainer,"keydown",s);else{if(!t)t=window.event;t=t.keyCode;t==33&&b();t==
|
|
1100
|
-
34&&a()}};T(pui.runtimeContainer,"keydown",s)}T(c,"mousedown",function(t){function w(G){var D=Yc(G)-E,
|
|
1101
|
-
null)if(p.grid.c.e.moved){p.grid.c.e.designer.zn();N=="dspf"&&pui.ide.refreshRibbon()}else p.grid.c.e.designer.ca.
|
|
1101
|
+
34&&a()}};T(pui.runtimeContainer,"keydown",s)}T(c,"mousedown",function(t){function w(G){var D=Yc(G)-E,B=Xc(G)-x;G=p.grid.c.e;if(G!=null){var K=G.designer.selection;if(K.Iu){B+=p.grid.c.ib;D+=p.grid.c.Ga;B=K.bk(B,pui.Hl);D=K.bk(D,pui.Il,N=="genie"?3:0);B-=p.grid.c.ib;D-=p.grid.c.Ga}}p.grid.Mc(function(Q){Q.style.top=Q.Ga+D+"px";Q.style.left=Q.ib+B+"px"});if(G!=null)G.moved=true;p.grid.setScrollBar();G=pui.designer.Gj;if(G.b==null){G.b=document.body;G.init()}G.set(p.grid.c.e);G.show()}function y(){if(p.grid.c.e!=
|
|
1102
|
+
null)if(p.grid.c.e.moved){p.grid.c.e.designer.zn();N=="dspf"&&pui.ide.refreshRibbon()}else p.grid.c.e.designer.ca.Jy();p.grid.ic();var G=pui.designer.Gj;G!=null&&G.b!=null&&G.hide();Zb(document,"mousemove",w);Zb(document,"mouseup",y)}if(p.grid.designMode){p.grid.c.e.designer.Vo();p.grid.Se();if(pui.Ge(t)){if(p.grid.c.e){p.grid.c.e.designer.nx.hide();p.grid.c.e.designer.nz(t)}designUtils.Ke(t);t.stopPropagation&&t.stopPropagation();return false}p.grid.c.e!=null&&p.grid.c.e.designer.Zp!=null&&p.grid.c.e.designer.Zp.hide();
|
|
1102
1103
|
if(p.Mf)designUtils.Ke(t);else{var x=Xc(t),E=Yc(t);p.grid.Mc(function(G){G.ib=parseInt(G.style.left);G.Ga=parseInt(G.style.top)});T(document,"mousemove",w);T(document,"mouseup",y);ub(t);if(p.grid.designMode&&p.grid.c.e!=null){p.grid.c.e.moved=false;t=p.grid.c.e.designer;var J=t.selection,z="Move Selection";if(J.Yd.length==1)z="Move Grid";t.ca.start(z);t.ca.xp=true;J.Bn(["left","top","parent tab panel","parent tab panel"]);t.ca.xp=false}}}})};this.position=function(){if((p.ug||p.ii||p.Ad||p.$h||p.bi||
|
|
1103
1104
|
p.xm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){c.style.left=p.x+"px";c.style.top=p.y+"px";c.style.width=p.width+"px";c.style.display="";c.style.zIndex=p.grid.c.style.zIndex}else c.style.display="none"};this.hide=function(){c.style.display="none"};this.destroy=function(){p.Xb.removeEventListener("click",p);c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);r=m=n=l=h=g=f=e=c=null;p.Lc();p=null};this.om=function(s){if(c!=null){if(s==null)s="";s=Kb(s);if(s!=""){s=
|
|
1104
1105
|
s.split(" ").shift();s+="-paging-bar"}s+=" paging-bar";s=Kb(s);if(c.className!=s)c.className=s}};this.z=function(){p.Xb.style.display="none";p.om(p.grid.c.className);if((p.ug||p.ii||p.Ad||p.$h||p.bi||p.xm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){p.position();var s=p.ug?"":"none";e.style.display=s;f.style.display=s;s=p.ii?"":"none";g.style.display=s;h.style.display=s;if(p.ii&&p.ug){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);h.innerHTML=
|
|
@@ -1108,57 +1109,57 @@ pui.getLanguageText("runtimeText","export to x",["Excel XLSX"]);g.style.left="16
|
|
|
1108
1109
|
"prev-image-icon-disabled")}if(!p.grid.designMode&&p.grid.Yb()&&(p.grid.Ku&&pui["page down on subfile end"]!=true||p.Kt=="false"||!p.yj)){p.ka.disabled=true;p.oa.disabled=true;pui.Q(p.oa,"paging-link-disabled");pui.Q(p.ka,"next-image-icon-disabled")}else{pui.da(p.oa,"paging-link-disabled");pui.da(p.ka,"next-image-icon-disabled")}}}else{p.ya.style.display="none";p.pa.style.display="none";p.ka.style.display="none";p.oa.style.display="none"}if(p.$h){m.style.display="";m.innerHTML=pui.getLanguageText("runtimeText",
|
|
1109
1110
|
"page")+" "+p.Sl}else m.style.display="none";if(p.bi){s=p.grid;t=s.getRecordCount();if(s.designMode){s.Af=1;s.gj=s.Oo();t=s.gj}r.style.display="";r.innerHTML="Showing "+s.Af+"-"+s.gj+" of "+t}else r.style.display="none"}else c.style.display="none"};this.nh=function(s){p.b=s;c.parentNode.removeChild(c);p.b.appendChild(c)};this.getHeight=function(){return c.offsetHeight};this.nq=function(s,t){e.style.display="none";f.style.display="none";g.style.display="none";h.style.display="none";p.ya.style.display=
|
|
1110
1111
|
"none";p.pa.style.display="none";p.ka.style.display="none";p.oa.style.display="none";m.style.display="none";p.qr=s;p.pr=t;p.Xb.style.cursor="pointer";p.Xb.style.display="block"};this.dw=function(s){s(c)}};pui.oi.prototype=Object.create(pui.uc.prototype);function Vd(b,a,c){b=b.Xb.childNodes[0];b.className=c;b.innerHTML=a}function Wd(b,a){b.Xb.childNodes[1].innerHTML=a}pui.oi.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Xb||b.target.parentNode==this.Xb)Xd(this);break}};
|
|
1111
|
-
function Xd(b){b.Xb.style.cursor="";b.Xb.style.opacity="0";Vd(b,"","");b.qr!=null&&Wd(b,b.qr);typeof b.pr=="function"&&b.pr();setTimeout(function(){this.z();this.Xb.style.opacity=""}.bind(b),2500)}pui.oi.prototype.qm=function(b){Wd(this,b)};pui.oi.prototype.Bs=function(){this.z()};pui.lv=function(){function b(D,
|
|
1112
|
-
if(P>0){P-=0.001;if(P<=0){oa=true;P=0}}else{P+=0.001;if(P>=0){oa=true;P=0}}da=parseInt(s.style.top);var Aa=da+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<da)Aa=da;if(ga<da){ga=da;oa=true}if(ga>Aa){ga=Aa;oa=true}t.Jg=ga;t.style.top=parseInt(ga)+"px";ga=(ga-da)/(Aa-da);if(isNaN(ga))ga=0;ga=(m.Ta-m.hc)*ga;ga=Math.round(ga)+1;m.doScroll(ga);if(oa){t.D=null;pui.animate({element:t,property:"opacity",from:1,to:E,duration:"1s"})}else setTimeout(
|
|
1113
|
-
D.duration,Q=D.Wk,Y=t.Jg,ea=D.Hh;if(Q==null||K==null)t.style.opacity=E;else if(!(K>500)){var P=Q/K,
|
|
1112
|
+
function Xd(b){b.Xb.style.cursor="";b.Xb.style.opacity="0";Vd(b,"","");b.qr!=null&&Wd(b,b.qr);typeof b.pr=="function"&&b.pr();setTimeout(function(){this.z();this.Xb.style.opacity=""}.bind(b),2500)}pui.oi.prototype.qm=function(b){Wd(this,b)};pui.oi.prototype.Bs=function(){this.z()};pui.lv=function(){function b(D,B){if(l){l=false;m.Nl(B)}else setTimeout(function(){D==g&&m.Nl(B)},m.interval)}function a(){var D=22;if(pui.is_touch&&!pui.is_mouse_capable&&!m.designMode||pui.qa)D=0;w.style.left=m.x-w.offsetWidth+D+"px";w.style.top=m.y-w.offsetHeight-2+"px"}function c(D){setTimeout(function(){if(D==h)w.style.display="none"},800)}function e(D){function B(){if(t.D==null)t.style.opacity=E;else if(!(t.D.startTime>W)){var oa=false,da=(new Date).getTime(),ga=Y+(ea-da)*P;Y=ga;ea=da;P*=0.98;
|
|
1113
|
+
if(P>0){P-=0.001;if(P<=0){oa=true;P=0}}else{P+=0.001;if(P>=0){oa=true;P=0}}da=parseInt(s.style.top);var Aa=da+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<da)Aa=da;if(ga<da){ga=da;oa=true}if(ga>Aa){ga=Aa;oa=true}t.Jg=ga;t.style.top=parseInt(ga)+"px";ga=(ga-da)/(Aa-da);if(isNaN(ga))ga=0;ga=(m.Ta-m.hc)*ga;ga=Math.round(ga)+1;m.doScroll(ga);if(oa){t.D=null;pui.animate({element:t,property:"opacity",from:1,to:E,duration:"1s"})}else setTimeout(B,1E3/60)}}if(D==null)t.style.opacity=E;else{var K=
|
|
1114
|
+
D.duration,Q=D.Wk,Y=t.Jg,ea=D.Hh;if(Q==null||K==null)t.style.opacity=E;else if(!(K>500)){var P=Q/K,W=(new Date).getTime();B()}}}function f(D,B){if(m.bb){if(B)D=-D;if(m.bb&&D<0&&m.bb.grid.Yb()||m.bb&&D>0&&m.bb.grid.Jb())return true}return false}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.b=null;this.hc=10;this.Ta=100;this.la=20;this.borderWidth=1;this.Nl=this.onchange=null;this.ci=true;this.di=false;this.interval=250;this.type="sliding";this.Uf=false;this.bb=null;var g=
|
|
1114
1115
|
0,h=0,l=true,n=false,m=this,r,p,s,t,w,y=25,x=-1,E=0,J,z,G;this.init=function(D){m.bb=D;r=document.createElement("div");r.style.position="absolute";r.style.width="23px";r.style.overflowY="scroll";r.style.overflowX="hidden";r.style.padding="0px";r.className="pui-scrollbar";if(m.bb.grid&&m.bb.grid.bd)r.className+=" "+m.bb.grid.bd+"-pui-scrollbar";p=document.createElement("div");p.style.position="absolute";p.style.left="0px";p.style.top="0px";p.innerHTML=" ";p.fontSize="0px";w=document.createElement("div");
|
|
1115
1116
|
w.style.position="absolute";w.style.border="1px solid #999999";w.style.backgroundColor="#ffffff";w.style.fontFamily="Arial";w.style.fontSize="10px";w.style.fontWeight="bold";w.style.padding="1px";w.style.zIndex=1E3;w.style.filter="alpha(opacity=75)";w.style.opacity=0.75;w.style.display="none";if(N=="dspf"&&pui.is_touch&&!pui.is_mouse_capable&&!m.designMode||pui.qa){s=document.createElement("div");s.style.position="absolute";s.style.width="3px";s.style.backgroundColor="transparent";t=document.createElement("div");
|
|
1116
|
-
t.style.position="absolute";t.style.width="3px";t.style.height="25px";t.style.top="0px";t.style.backgroundColor="#999999";if(!pui.is_android)t.style.borderRadius="2px";r.style.visibility="hidden";r.style.display="none";t.style.opacity=E;if(pui.qa){var
|
|
1117
|
-
Aa;da+=ga;ga=parseInt(s.style.top);Aa=ga+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<ga)Aa=ga;if(da<ga)da=ga;if(da>Aa)da=Aa;t.Jg=da;t.style.top=parseInt(da)+"px";da=(da-ga)/(Aa-ga);if(isNaN(da))da=0;da=(m.Ta-m.hc)*da;da=Math.round(da)+1;m.doScroll(da)}function
|
|
1118
|
-
0)if(D.grid.h)return;if(!(oa!=null&&(oa.tagName=="INPUT"||oa.tagName=="SELECT"||oa.tagName=="TEXTAREA"))){t.D={};t.D.reverse=oa!=t;t.D.startY=Yc(ea);t.D.hj=t.D.startY;t.D.startTime=(new Date).getTime();t.D.Hh=(new Date).getTime();t.D.Wk=null;t.D.duration=null;t.D.Ga=t.Jg!=null?t.Jg:parseInt(t.style.top);T(document,"mousemove",P);T(document,"mouseup",
|
|
1117
|
+
t.style.position="absolute";t.style.width="3px";t.style.height="25px";t.style.top="0px";t.style.backgroundColor="#999999";if(!pui.is_android)t.style.borderRadius="2px";r.style.visibility="hidden";r.style.display="none";t.style.opacity=E;if(pui.qa){var B=function(ea){function P(da){t.style.opacity=1;var ga=Yc(da);da=(new Date).getTime();t.D.duration=da-t.D.Hh;t.D.Hh=da;var Aa=m.Ta/m.hc/6;if(Aa<1)Aa=1;if(Aa>40)Aa=40;t.D.Wk=(ga-t.D.hj)/Aa;t.D.hj=ga;da=t.D.Ga;ga=ga-t.D.startY;if(t.D.reverse)ga=-ga;ga/=
|
|
1118
|
+
Aa;da+=ga;ga=parseInt(s.style.top);Aa=ga+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<ga)Aa=ga;if(da<ga)da=ga;if(da>Aa)da=Aa;t.Jg=da;t.style.top=parseInt(da)+"px";da=(da-ga)/(Aa-ga);if(isNaN(da))da=0;da=(m.Ta-m.hc)*da;da=Math.round(da)+1;m.doScroll(da)}function W(){Zb(document,"mousemove",P);Zb(document,"mouseup",W);e(t.D)}var oa=tb(ea);if(oa!=null&&oa.row===0||oa!=null&&oa.parentNode!=null&&oa.parentNode.row===0||oa!=null&&oa.parentNode!=null&&oa.parentNode.parentNode!=null&&oa.parentNode.parentNode.row===
|
|
1119
|
+
0)if(D.grid.h)return;if(!(oa!=null&&(oa.tagName=="INPUT"||oa.tagName=="SELECT"||oa.tagName=="TEXTAREA"))){t.D={};t.D.reverse=oa!=t;t.D.startY=Yc(ea);t.D.hj=t.D.startY;t.D.startTime=(new Date).getTime();t.D.Hh=(new Date).getTime();t.D.Wk=null;t.D.duration=null;t.D.Ga=t.Jg!=null?t.Jg:parseInt(t.style.top);T(document,"mousemove",P);T(document,"mouseup",W);ub(ea)}};T(t,"mousedown",B);T(D,"mousedown",B)}if(!pui.qa){var K,Q,Y;B=function(ea){if(ea.touches.length==1){var P=ea.target;if(P!=null&&P.row===0||
|
|
1119
1120
|
P!=null&&P.parentNode!=null&&P.parentNode.row===0||P!=null&&P.parentNode!=null&&P.parentNode.parentNode!=null&&P.parentNode.parentNode.row===0)if(D.grid.h)return;if(!(P!=null&&(P.tagName=="INPUT"||P.tagName=="SELECT"||P.tagName=="TEXTAREA"))){ea=ea.touches[0];t.D={};t.D.reverse=P!=t;m.Qu=P;t.D.startY=ea.pageY;t.D.hj=t.D.startY;t.D.startTime=(new Date).getTime();t.D.Hh=(new Date).getTime();t.D.Wk=null;t.D.duration=null;t.D.Ga=t.Jg!=null?t.Jg:parseInt(t.style.top);K=ea.pageX;Q=ea.pageY;Y=null}}};T(t,
|
|
1120
|
-
"touchstart",
|
|
1121
|
-
var Aa=da+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<da)Aa=da;if(ga<da)ga=da;if(ga>Aa)ga=Aa;t.Jg=ga;t.style.top=parseInt(ga)+"px";ga=(ga-da)/(Aa-da);if(isNaN(ga))ga=0;ga=(m.Ta-m.hc)*ga;ga=Math.round(ga)+1;m.doScroll(ga);ga=true;if(P)ga=false;else if(f(
|
|
1122
|
-
r.onmousedown=function(ea){if(m.ci||m.di){if(w.innerHTML!="")w.style.display="";a()}m.designMode&&designUtils.Ke(ea)};r.onmouseup=function(){c(h)};r.appendChild(p);m.b.appendChild(r);s!=null&&m.b.appendChild(s);t!=null&&m.b.appendChild(t);m.b.appendChild(w)};this.In=function(){T(r,"scroll",m.doScroll)};this.doScroll=function(D){if(m.Uf){var
|
|
1123
|
-
|
|
1124
|
-
"none"}}};this.xd=function(D,
|
|
1125
|
-
null&&s!=null){s.style.left=m.x-5+"px";s.style.top=m.y+"px";s.style.zIndex=m.zIndex;t.style.left=m.x-5+"px";if(x==-1)t.style.top=m.y+"px";t.style.zIndex=m.zIndex;r.style.visibility="hidden";r.style.display="none";s.style.display="";t.style.display=""}else{r.style.zIndex=m.zIndex;r.style.visibility="";r.style.display="";r.style.left=m.x+"px";r.style.top=m.y+"px"}var
|
|
1126
|
-
|
|
1121
|
+
"touchstart",B);T(D,"touchstart",B);B=function(ea){if(ea.touches.length==1)if(t.D!=null){t.style.opacity=1;var P=ea.touches[0],W=P.pageY,oa=P.pageX-K,da=P.pageY-Q;K=P.pageX;Q=P.pageY;if(Y==null)Y=Math.abs(oa)-Math.abs(da)>0;oa=P=false;if(m.bb){P=m.bb.grid.Xl;if(m.bb.grid.xo)oa=true}if(!Y||P||oa){da=(new Date).getTime();t.D.duration=da-t.D.Hh;t.D.Hh=da;da=m.Ta/m.hc/6;if(da<1)da=1;if(da>40)da=40;t.D.Wk=(W-t.D.hj)/da;t.D.hj=W;var ga=t.D.Ga;W=W-t.D.startY;if(t.D.reverse)W=-W;W/=da;ga+=W;da=parseInt(s.style.top);
|
|
1122
|
+
var Aa=da+parseInt(s.style.height)-parseInt(t.style.height);if(Aa<da)Aa=da;if(ga<da)ga=da;if(ga>Aa)ga=Aa;t.Jg=ga;t.style.top=parseInt(ga)+"px";ga=(ga-da)/(Aa-da);if(isNaN(ga))ga=0;ga=(m.Ta-m.hc)*ga;ga=Math.round(ga)+1;m.doScroll(ga);ga=true;if(P)ga=false;else if(f(W,t.D.reverse)){ga=false;t.style.top=W>0?Aa+"px":da+"px"}if(oa&&!P)ga=true;if(ga)ea.preventDefault();else Y=true}}};T(t,"touchmove",B);T(D,"touchmove",B);T(D,"touchend",function(){m.Qu=null;e(t.D)})}}if(N=="genie"&&!pui.fa)r.onscroll=m.doScroll;
|
|
1123
|
+
r.onmousedown=function(ea){if(m.ci||m.di){if(w.innerHTML!="")w.style.display="";a()}m.designMode&&designUtils.Ke(ea)};r.onmouseup=function(){c(h)};r.appendChild(p);m.b.appendChild(r);s!=null&&m.b.appendChild(s);t!=null&&m.b.appendChild(t);m.b.appendChild(w)};this.In=function(){T(r,"scroll",m.doScroll)};this.doScroll=function(D){if(m.Uf){var B=Math.round(r.scrollTop/y)+1;if(m.Bm>0&&(D==null||D.target!=null))B=m.Bm;if(J!=null&&z!=null&&D==null&&x>0)D=x;if(D!=null&&typeof D=="number")B=D;if(B!=x){var K=
|
|
1124
|
+
B+m.hc-1;if(m.di)w.innerHTML=pui.getLanguageText("runtimeText","rows")+" "+B+" - "+K;if(m.ci)w.innerHTML=pui.getLanguageText("runtimeText","row")+" "+B;a();m.onchange!=null&&m.onchange(B);if(m.Nl!=null){g+=1;if(g>1E4)g=10;b(g,B)}x=B;K=m.bb;if(K!=null){K=K.grid.Do.onscroll;if(K!=null&&K!=""&&!m.designMode)try{eval("row = "+B);eval(K)}catch(Q){pui.Fa(Q,"onscroll Error:\n");return false}}if(typeof D!=="undefined"&&(m.ci||m.di)&&m.Ta>1){w.style.display="";h+=1;if(h>1E4)h=0;a();c(h)}else w.style.display=
|
|
1125
|
+
"none"}}};this.xd=function(D,B){if(t!=null){var K=parseInt(s.style.top),Q=K+parseInt(s.style.height)-parseInt(t.style.height);if(Q<K)Q=K;K=parseInt((Q-K)*((D-1)/(m.Ta-m.hc)))+K;t.style.top=K+"px";x=D;return t.style.top!=K+"px"}else{if(B)x=D;else m.Bm=D;K=r.scrollTop;r.scrollTop=(D-1)*y;if(K!=r.scrollTop)return true;m.Bm=null;return false}};this.Bh=function(){clearTimeout(m.Yw);m.Yw=setTimeout(function(){m.Bm=null},m.interval)};this.z=function(D){if(pui.is_old_ie){y=25;if(m.Ta>1E3)y=50}else y=19;if(t!=
|
|
1126
|
+
null&&s!=null){s.style.left=m.x-5+"px";s.style.top=m.y+"px";s.style.zIndex=m.zIndex;t.style.left=m.x-5+"px";if(x==-1)t.style.top=m.y+"px";t.style.zIndex=m.zIndex;r.style.visibility="hidden";r.style.display="none";s.style.display="";t.style.display=""}else{r.style.zIndex=m.zIndex;r.style.visibility="";r.style.display="";r.style.left=m.x+"px";r.style.top=m.y+"px"}var B=m.hc*m.la-m.borderWidth;if(s!=null){s.style.height=B-2+"px";var K=(B-2)*(m.Ta<=0?1:m.hc/m.Ta);K=parseInt(K);if(K<25&&B>27)K=25;if(K>
|
|
1127
|
+
B-2)K=B-2;t.style.height=K+"px"}else{r.style.height=B+"px";K=(m.Ta-m.hc)*y+B;var Q=9999990;if(pui.is_old_ie)Q=1342177;else if(pui.is_ie)Q=1533917;for(;K>Q&&y>1;){y-=1;K=(m.Ta-m.hc)*y+B}if(K<0)K=0;if(K>5&&K==B)K-=5;p.style.height=K+"px"}a();s==null&&!D&&m.doScroll();if(!m.designMode&&m.Uf&&m.hc==1){G=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(J==null&&z==null&&m.Ta>1){J=document.createElement("img");J.style.position="absolute";
|
|
1127
1128
|
J.style.top="0px";J.style.right="0px";J.style.cursor="pointer";J.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");J.onclick=function(){if(pui.Cc!=null)pui.Cc.style.display="none";var Y=x-1;if(Y<1)Y=1;if(Y>m.Ta)Y=m.Ta;m.doScroll(Y)};z=document.createElement("img");z.style.position="absolute";z.style.bottom="0px";z.style.right="0px";z.style.cursor="pointer";z.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");z.onclick=function(){if(pui.Cc!=null)pui.Cc.style.display="none";if(x==
|
|
1128
1129
|
-1)x=1;var Y=x+1;if(Y<1)Y=1;if(Y>m.Ta)Y=m.Ta;m.doScroll(Y)};r.appendChild(J);r.appendChild(z)}}if(!m.designMode&&m.Uf&&m.hc>1&&J!=null&&z!=null&&m.Ta>1){r.removeChild(J);r.removeChild(z);z=J=null;p.style.height=G;r.style.overflow="";r.style.overflowX="hidden";r.style.overflowY="scroll"}};this.ml=function(D){if(s!=null)s.style.height=parseInt(r.style.height)+D-2+"px";else r.style.height=parseInt(r.style.height)+D+"px"};this.om=function(D){r.className="pui-scrollbar";if(m.bb.grid&&D)r.className+=" "+
|
|
1129
|
-
D+"-pui-scrollbar"};this.hide=function(){r.style.visibility="hidden";r.style.display="none";w.style.display="none";w.style.visibility="hidden";if(t!=null&&s!=null){s.style.display="none";t.style.display="none"}};this.destroy=function(){r.parentNode!=null&&r.parentNode.removeChild(r);p.parentNode!=null&&p.parentNode.removeChild(p);w.parentNode!=null&&w.parentNode.removeChild(w)};this.Ni=function(D){function
|
|
1130
|
-
-P}else if(ea.detail)P=-ea.detail/3;Q(P,ea)}function K(ea){Q(pui.Dt(ea)*-1,ea)}function Q(ea,P){if(ea&&!P.shiftKey)if(t==null)r.scrollTop-=ea*y;var
|
|
1131
|
-
K,false)}else{D.addEventListener&&D.addEventListener("DOMMouseScroll",
|
|
1130
|
+
D+"-pui-scrollbar"};this.hide=function(){r.style.visibility="hidden";r.style.display="none";w.style.display="none";w.style.visibility="hidden";if(t!=null&&s!=null){s.style.display="none";t.style.display="none"}};this.destroy=function(){r.parentNode!=null&&r.parentNode.removeChild(r);p.parentNode!=null&&p.parentNode.removeChild(p);w.parentNode!=null&&w.parentNode.removeChild(w)};this.Ni=function(D){function B(ea){var P=0;if(!ea)ea=window.event;if(ea.wheelDelta){P=ea.wheelDelta/120;if(window.opera)P=
|
|
1131
|
+
-P}else if(ea.detail)P=-ea.detail/3;Q(P,ea)}function K(ea){Q(pui.Dt(ea)*-1,ea)}function Q(ea,P){if(ea&&!P.shiftKey)if(t==null)r.scrollTop-=ea*y;var W=false;if(P.preventDefault)W=true;if(m.bb&&(m.bb.grid.Xl||f(ea)||P.shiftKey))W=false;if(W){P.preventDefault();P.returnValue=false}}var Y;if(!n){n=true;if(typeof WheelEvent=="function"){D.addEventListener("wheel",K,false);for(Y=0;Y<D.grid.n.length;Y++)D.grid.n[Y].addEventListener("wheel",K,false);for(Y=0;Y<D.grid.k.length;Y++)D.grid.k[Y].addEventListener("wheel",
|
|
1132
|
+
K,false)}else{D.addEventListener&&D.addEventListener("DOMMouseScroll",B,false);D.onmousewheel=B}}};this.nh=function(D){m.b=D;r.parentNode.removeChild(r);m.b.appendChild(r)}};pui.jv=function(){function b(s){var t=0;if(!s)s=window.event;if(s.wheelDelta){t=s.wheelDelta/120;if(window.opera)t=-t}else if(s.detail)t=-s.detail/3;c(t,s)}function a(s){c(pui.Dt(s)*-1,s)}function c(s,t){if(s&&!t.shiftKey)if(document.getElementById(f))document.getElementById(f).scrollTop-=s*p;else m.scrollTop-=s*p;var w=false;if(t.preventDefault)w=true;var y;if(y=e.grid){if(!(y=e.grid.Xl)){a:{if(e.bb)if(e.bb&&s<0&&e.bb.grid.Yb()||e.bb&&s>0&&e.bb.grid.Jb()){y=true;break a}y=false}y=y||t.shiftKey}y=
|
|
1132
1133
|
y}if(y)w=false;if(w){t.preventDefault();t.returnValue=false}}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=this.Yb=this.Jb=false;this.sj=this.tj=this.b=null;this.type="paging";this.Uf=false;var e=this,f,g=false,h=false,l=false,n=0,m,r,p=25;this.init=function(){m=document.createElement("div");f=typeof e.grid!=="undefined"&&typeof e.grid.Xa==="string"&&e.grid.Xa.length>0?e.grid.Xa+"scrollbar":"scrollbar"+Math.floor(Math.random()*1E6).toString();m.id=f;m.style.position="absolute";m.style.width=
|
|
1133
1134
|
"23px";m.style.overflowY="scroll";m.style.overflowX="hidden";m.style.padding="0px";r=document.createElement("div");r.style.position="absolute";r.style.left="0px";r.style.top="0px";r.innerHTML=" ";r.fontSize="0px";m.onmousedown=function(s){e.designMode&&designUtils.Ke(s)};m.onscroll=function(){var s=parseInt(e.height/2);if(e.designMode||e.Jb&&e.Yb)m.scrollTop=s;else if(g)g=false;else if(l){g=true;m.scrollTop=e.height*2}else if(h){g=true;m.scrollTop=0}else if(e.Yb&&!e.Jb){if(e.tj!=null){s=e.tj();
|
|
1134
1135
|
if(s==false){e.z();return}}g=h=true;m.scrollTop=0}else if(e.Jb&&!e.Yb){if(e.sj!=null){s=e.sj();if(s==false){e.z();return}}g=l=true;m.scrollTop=e.height*2}else if(m.scrollTop>s){if(e.sj!=null){s=e.sj();if(s==false){e.z();return}}g=l=true;m.scrollTop=e.height*2}else{if(e.tj!=null){s=e.tj();if(s==false){e.z();return}}g=true;m.scrollTop=0;h=true}};m.appendChild(r);e.b.appendChild(m)};this.z=function(){g=true;m.style.zIndex=e.zIndex;m.style.visibility="";var s=e.x,t=e.y,w=e.height;if(w<0)w=0;n=parseInt(w/
|
|
1135
1136
|
2);m.style.left=s+"px";m.style.top=t+"px";m.style.height=w+"px";r.style.height=w*2+"px";s=e.Yb&&!e.Jb?w*2:e.Jb&&!e.Yb?0:n;if(!e.grid||!e.grid.qs)m.scrollTop=s};this.reset=function(){l=h=false};this.hide=function(){m.style.visibility="hidden"};this.destroy=function(){m.parentNode!=null&&m.parentNode.removeChild(m);r.parentNode!=null&&r.parentNode.removeChild(r)};this.nh=function(s){e.b=s;m.parentNode.removeChild(m);e.b.appendChild(m)};this.Ni=function(s){if(!s.Sx){s.Sx=true;if(typeof WheelEvent=="function")s.addEventListener("wheel",
|
|
1136
|
-
a,false);else{s.addEventListener&&s.addEventListener("DOMMouseScroll",b,false);s.onmousewheel=b}}}};pui.dv=function(){function b(){for(;e.rows.length>0;)e.deleteRow(e.rows.length-1);f&&f.parentNode.removeChild(f);var h="";if(
|
|
1137
|
+
a,false);else{s.addEventListener&&s.addEventListener("DOMMouseScroll",b,false);s.onmousewheel=b}}}};pui.dv=function(){function b(){for(;e.rows.length>0;)e.deleteRow(e.rows.length-1);f&&f.parentNode.removeChild(f);var h="";if(Ga=="ON")h="https://"+HTTP_HOST;h+="/profoundui/proddata/images/";var l=[],n=[],m=[],r=[];if(a.grid.sortable){if(a.Wc.ym!=null){l.push(pui.getLanguageText("runtimeText","sort ascending text"));m.push("icons/sort_ascending.png");r.push(function(){a.Wc.sa=true;if(a.grid.c.Vh!=null)a.grid.Wf="A";a.Wc.ym()});l.push(pui.getLanguageText("runtimeText","sort descending text"));m.push("icons/sort_descending.png");
|
|
1137
1138
|
r.push(function(){a.Wc.sa=false;if(a.grid.c.Vh!=null)a.grid.Wf="D";a.Wc.ym()})}l.push(pui.getLanguageText("runtimeText","sort..."));m.push("icons/grid.png");r.push(a.grid.Bu)}if(l.length>0&&(a.grid.Go||a.grid.Ri)){l.push("-");m.push(null);r.push(null)}if(a.grid.Go){l.push(pui.getLanguageText("runtimeText","find text")+"...");m.push("icons/search.png");r.push(function(){a.grid.startFind(a.Wc)})}if(a.grid.Ri&&(!a.grid.ik()||a.grid.Is()<a.grid.xe)){l.push(pui.getLanguageText("runtimeText","filter text")+
|
|
1138
|
-
"...");m.push("icons/filter.png");r.push(function(){a.grid.startFilter(a.Wc)});if(!pui.is_ie&&N!="genie"){l.push(pui.getLanguageText("runtimeText","multi filter text"));m.push("icons/filter_multi.png");r.push(function(){a.grid.
|
|
1139
|
-
m.push("icons/remove_filter.png");r.push(function(){a.grid.removeAllFilters()})}if(a.grid.eu){l.push(pui.getLanguageText("runtimeText","reset data"));m.push("icons/default.png");r.push(function(){var D=a.grid.cells[0][0].parentNode.pui.properties;a.grid.alignColumnTotals();if(a.grid.na){var
|
|
1140
|
-
K[Q];Y.col!=Y.w&&a.grid.moveColumn(Y.col,Y.w)}a.grid.Yf(D["column widths"]);a.grid.Na();a.grid.kc=null;if(D["expand to layout"]=="true"||D["expand to layout"]==true)a.grid.ac();a.grid.zt([]);if(
|
|
1141
|
-
|
|
1139
|
+
"...");m.push("icons/filter.png");r.push(function(){a.grid.startFilter(a.Wc)});if(!pui.is_ie&&N!="genie"){l.push(pui.getLanguageText("runtimeText","multi filter text"));m.push("icons/filter_multi.png");r.push(function(){a.grid.pz(a.Wc)})}}if(a.grid.Ri&&a.Wc.oc!=null){l.push(pui.getLanguageText("runtimeText","remove filter"));m.push("icons/remove_filter.png");r.push(function(){a.grid.removeFilter(a.Wc)})}if(a.grid.Ri&&a.grid.Is()>1){l.push(pui.getLanguageText("runtimeText","remove filters text"));
|
|
1140
|
+
m.push("icons/remove_filter.png");r.push(function(){a.grid.removeAllFilters()})}if(a.grid.eu){l.push(pui.getLanguageText("runtimeText","reset data"));m.push("icons/default.png");r.push(function(){var D=a.grid.cells[0][0].parentNode.pui.properties;a.grid.alignColumnTotals();if(a.grid.na){var B=D["column headings"].split(","),K=a.grid.ga.map(function(ea){ea.showing||a.grid.Wo(ea,true);return ea});if(a.grid.ga.Ki)a.grid.ga.Ki=null;for(;B.length<K.length;)B.push("")}K=a.grid.cells[0];for(var Q=0;Q<K.length;Q++){var Y=
|
|
1141
|
+
K[Q];Y.col!=Y.w&&a.grid.moveColumn(Y.col,Y.w)}a.grid.Yf(D["column widths"]);a.grid.Na();a.grid.kc=null;if(D["expand to layout"]=="true"||D["expand to layout"]==true)a.grid.ac();a.grid.zt([]);if(B)a.columnHeadings=B;a.grid.jc();a.grid.removeAllFilters();a.grid.clearState()})}if(a.grid.na){m.push("icons/grid.png");l.push(pui.getLanguageText("runtimeText","displayed columns"));var p=a.grid.ga;if(a.grid.Fl&&p.Ki){var s=[];p.filter(function(D){if(D.currentColumn==-1&&!D.showing){s.push(D);return false}return true}).sort(function(D,
|
|
1142
|
+
B){var K=D.currentColumn,Q=B.currentColumn,Y=false,ea=false;if(K==-1){Y=true;K=a.grid.Es(D.columnId)}if(Q==-1){ea=true;Q=a.grid.Es(B.columnId)}if(K==Q)return Y&&!ea?1:-1;return K>Q?1:-1}).forEach(function(D){n.push(D)});s.forEach(function(D){n.push(D)})}else p.forEach(function(D){n.push(D)});r.push(function(D){a.grid.alignColumnTotals();return a.grid.Wo(D)})}if(a.grid.Eo==true||a.grid.Eo==null&&a.grid.i!=null&&a.grid.i.ug){if(l.length>0&&l[l.length-1]!="-"){l.push("-");m.push(null);r.push(null)}l.push(pui.getLanguageText("runtimeText",
|
|
1142
1143
|
"export to x",["Excel (CSV)"])+"...");m.push("grids/excel.gif");r.push(function(){a.grid.exportCSV()});l.push(pui.getLanguageText("runtimeText","export to x",["Excel (XLSX)"])+"...");m.push("grids/excel.gif");r.push(function(){a.grid.exportCSV(null,true)})}for(p=0;p<l.length;p++){var t=e.insertRow(p);t.style.color="#333333";if(l[p]=="-"){t=t.insertCell(0);t.colSpan=2;var w=document.createElement("div");w.style.backgroundColor="#e0e0e0";w.style.borderBottomColor="#ffffff";w.style.borderBottomWidth=
|
|
1143
1144
|
"1px";w.style.borderBottomStyle="solid";w.style.height="1px";w.style.lineHeight="1px";w.style.fontSize="1px";w.style.paddingTop="0px";w.style.paddingBottom="0px";w.style.width="100%";t.appendChild(w)}else{t.style.cursor="pointer";t.style.padding="3px";t.Ql=r[p];if(l[p]!=pui.getLanguageText("runtimeText","displayed columns")){t.onclick=function(D){tb(D).parentNode.Ql();a.hide()};t.cp=false}t.onmouseover=function(D){D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="#3399ff";
|
|
1144
|
-
D.style.color="#ffffff";a.grid.na&&this.cp&&a.Du()};t.onmouseout=function(D){if(a.grid.na&&this.cp)if(D){var
|
|
1145
|
+
D.style.color="#ffffff";a.grid.na&&this.cp&&a.Du()};t.onmouseout=function(D){if(a.grid.na&&this.cp)if(D){var B=D.relatedTarget||D.sB;if(B&&B==c)return;a.Xo()}D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="";D.style.color="#333333"};w=t.insertCell(0);w.style.width="20px";var y=m[p];if(y!=null){w.style.backgroundImage="url('"+h+y+"')";w.style.backgroundPosition="center";w.style.backgroundRepeat="no-repeat"}w.style.padding="3px";w=t.insertCell(1);if(l[p]==pui.getLanguageText("runtimeText",
|
|
1145
1146
|
"displayed columns")){y=document.createElement("div");var x=document.createElement("table");x.border=0;x.cellPadding=3;x.cellSpacing=0;w.innerHTML=l[p];var E=document.createElement("img");E.src=pui.normalizeURL("/profoundui/proddata/images/menus/submenu-arrow.gif");E.style.position="absolute";E.style.right="3px";E.style.paddingTop="3px";E.ip=true;w.appendChild(E);for(E=0;E<n.length;E++){var J=n[E],z=x.insertRow(E);z.style.color="#333333";z.style.padding="3px";z.style.cursor="pointer";z.onmouseover=
|
|
1146
1147
|
function(D){D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="#3399ff";D.style.color="#ffffff"};z.onmouseout=function(D){D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="";D.style.color="#333333"};z.Ql=t.Ql;z.col=J;z.insertCell(0).innerHTML='<input type="checkbox" style="transform:scale(1.25); cursor:pointer;"'+(J.showing?"checked":"")+"/>";var G=z.insertCell(1);G.innerHTML=J.name;G.style.fontFamily="Sans-serif";G.style.fontSize="12px";G.style.padding=
|
|
1147
|
-
"3px 6px 3px 3px";G.style.whiteSpace="normal";z.style.top=(E+1)*25+"px";z.onmousedown=function(D){g=true;D=tb(D);var
|
|
1148
|
-
"Sans-serif";w.style.fontSize="12px";w.style.padding="3px";w.style.whiteSpace="normal"}}return l.length}var a=this,c,e,f,g=false;this.Wc=this.clickEvent=this.grid=null;this.init=function(){T(document,"mousedown",function(h){if(a!=null){for(h=tb(h);h!=null;){if(h==c)return;if(h==a.Wc)return;if(g)return;h=h.parentNode}a.hide()}});c=document.createElement("div");c.style.position="absolute";c.style.border="1px solid #718bb7";c.style.backgroundColor="#f0f0f0";c.style.zIndex=a.grid.ds;c.onselectstart=
|
|
1149
|
-
c.oncontextmenu=
|
|
1148
|
+
"3px 6px 3px 3px";G.style.whiteSpace="normal";z.style.top=(E+1)*25+"px";z.onmousedown=function(D){g=true;D=tb(D);var B=this.getElementsByTagName("input")[0],K=this.Ql(this.col);if(D.tagName!="INPUT"&&K)B.checked=B.checked?false:true}}t.onclick=function(){this.classList.add("active-item")};t.cp=true;y.row=t;y.appendChild(x);y.className="pui-hide-show-columns-list";y.onmouseover=function(){g=true;a.Du()};y.onmouseout=function(){g=false};if(a.grid.c)y.wt=(E+1)*25;f=y;a.Xo()}else w.innerHTML=l[p];w.style.fontFamily=
|
|
1149
|
+
"Sans-serif";w.style.fontSize="12px";w.style.padding="3px";w.style.whiteSpace="normal"}}return l.length}var a=this,c,e,f,g=false;this.Wc=this.clickEvent=this.grid=null;this.init=function(){T(document,"mousedown",function(h){if(a!=null){for(h=tb(h);h!=null;){if(h==c)return;if(h==a.Wc)return;if(g)return;h=h.parentNode}a.hide()}});c=document.createElement("div");c.style.position="absolute";c.style.border="1px solid #718bb7";c.style.backgroundColor="#f0f0f0";c.style.zIndex=a.grid.ds;c.onselectstart=ta(false);
|
|
1150
|
+
c.oncontextmenu=ta(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";e=document.createElement("table");e.border=0;e.cellPadding=3;e.cellSpacing=0;e.style.width="175px";a.hide();c.appendChild(e);a.grid.b.appendChild(c)};this.show=function(){var h;if(b()==0)a.hide();else{var l=0,n=0;if(a.toolbar!=null){l=a.toolbar.v.offsetLeft+119;n=a.toolbar.v.offsetTop+47;if(a.toolbar.v.offsetTop>a.Rx.length*22-45)n=n-a.Rx.length*22+1}if(a.clickEvent!=null){l=pui.Mo(a.clickEvent);n=
|
|
1150
1151
|
pui.Ks(a.clickEvent);var m=document.body.scrollWidth-185,r={x:0,y:0};h=a.grid.c.parentNode;if(N=="dspf")if(h.getAttribute("container")=="true"){r=pui.layout.Df(h);r.x+=pui.runtimeContainer.offsetLeft;r.y+=pui.runtimeContainer.offsetTop;var p=h.offsetLeft+h.offsetWidth;if(p>0&&(h.style.overflowX=="hidden"||h.style.overflow=="hidden")){m=p-185;p=h.parentNode;if(p!=null){if(p.scrollLeft>0)m+=p.scrollLeft;if(p.style.overflowY=="scroll"||p.style.overflowY=="auto")m-=10}}p=pui.getActiveContainer();if(p!=
|
|
1151
1152
|
null&&p.Bc===true){r.x+=p.offsetLeft;r.y+=p.offsetTop}if(f){h=h.getBoundingClientRect().height;f.Ro=h}}else{h=pui.$c(h);r.x=h[0];r.y=h[1];if(f)f.Ro=window.innerHeight}else{h=pui.$c(h);r.x=h[0];r.y=h[1]}n-=r.y;l-=r.x;if(l>m)l=m}c.style.left=l+"px";c.style.top=n+"px";c.style.display="";if(f){a.grid.b.appendChild(f);f.style.display="";f.style.top=n+f.row.offsetTop+"px";if(f.Ro&&f.wt){n=f.Ro;if(f.wt>n/2){f.style.height=n/2+"px";f.style.overflowY="scroll"}else{f.style.overflowY="initial";f.style.height=
|
|
1152
1153
|
"auto"}}if(c.offsetLeft===m||l+c.offsetWidth>m){l=f.offsetWidth;f.style.left=c.offsetLeft-f.offsetWidth+"px";if(f.offsetWidth!==l)f.style.left=c.offsetLeft-f.offsetWidth+"px"}else f.style.left=c.offsetLeft+c.offsetWidth+"px";f.style.display="none"}}};this.hide=function(){c.style.display="none";f&&a.Xo()};this.Xo=function(){f.style.display="none"};this.Du=function(){f.style.display=""};this.destroy=function(){if(c!=null){c.parentNode!=null&&c.parentNode.removeChild(c);f&&f.parentNode!=null&&f.parentNode.removeChild(f);
|
|
1153
1154
|
e=f=c=null;a.clickEvent=null;a=a.grid=null}}};pui.Vm=function(b,a){this.yb=a;this.hg=this.rr=null;if(b==null)b=document.body;this.rv=b;this.J=document.createElement("div");this.J.className="pui-find-filter";this.J.style.display="none";this.Gc=document.createElement("div");this.Gc.className="pui-find-filter-content";this.xc=document.createElement("input");this.xc.className="pui-find-filter-box";this.xc.addEventListener("input",this);this.xc.addEventListener("keydown",this);this.xc.addEventListener("blur",this);this.Gc.appendChild(this.xc);this.J.appendChild(this.Gc);
|
|
1154
1155
|
this.rv.appendChild(this.J);this.type=null;this.interval=100;this.Rf=null};
|
|
1155
1156
|
pui.Vm.prototype.handleEvent=function(b){var a;this.hg=b.target&&b.target.className==="qf"&&b.target.tagName==="INPUT"?b.target:null;switch(b.type){case "input":if(this.type=="pgfilter")return;if(typeof this.Rf==="function"){clearTimeout(this.rr);this.rr=setTimeout(this.Cv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.Rf==="function"){a=this.hg?this.hg.value:this.xc.value;this.Rf(a,true)}}else if(this.type=="filter"){this.yb.Y.text="";this.yb.getData();
|
|
1156
|
-
this.hide()}else if(this.type=="pgfilter")if(typeof this.Rf==="function"){a=this.hg?this.hg.value:this.xc.value;this.Rf(a)}ub(b)}else if(a==27){this.yb.Y.text="";this.yb.getData();this.hide();ub(b)}break;case "blur":if(this.yb){if(this.yb.Y)this.yb.Y.text="";this.yb.getData&&this.yb.getData()}this.hide();break;case "focus":b.stopPropagation();b.preventDefault();b.target.className==="qf"&&this.yb.startFilter(b.target.parentNode);break}};
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
this.hide()}else if(this.type=="pgfilter")if(typeof this.Rf==="function"){a=this.hg?this.hg.value:this.xc.value;this.Rf(a)}ub(b)}else if(a==27){this.yb.Y.text="";this.yb.getData();this.hide();ub(b)}break;case "blur":if(this.yb){if(this.yb.Y)this.yb.Y.text="";this.yb.getData&&this.yb.getData()}this.hide();break;case "focus":b.stopPropagation();b.preventDefault();b.target.className==="qf"&&this.yb.startFilter(b.target.parentNode);break}};ua=pui.Vm.prototype;ua.show=function(){this.J.style.display=""};
|
|
1158
|
+
ua.hide=function(){this.J.style.display="none"};function Yd(b,a){var c=a.parentNode;if(c!=null){var e=c.parentNode;if(e!=null){var f,g;f=c.offsetLeft+a.offsetLeft;c=c.offsetTop-40;g=a.offsetWidth;var h=pui.getActiveContainer();if(h!=null&&h.Bc===true){f+=h.offsetLeft;c+=h.offsetTop}if(e.getAttribute("container")=="true"){e=pui.layout.Df(e);c+=e.y;f+=e.x}b.setPosition(f,c,g)}}}
|
|
1159
|
+
ua.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.J.style.left=b+"px";this.J.style.top=a+"px";this.J.style.width=c+"px";this.xc.style.width=e+"px"};ua.focus=function(){this.xc.focus()};ua.clear=function(){this.xc.value=""};ua.setText=function(b){this.xc.value=b};ua.Cv=function(b){if(b.yb&&b.yb.d&&b.yb.d.type=="sliding")b.yb.d.Uf=false;b.Rf(b.hg?b.hg.value:b.xc.value);if(b.yb&&b.yb.d&&b.yb.d.type=="sliding")b.yb.d.Uf=true};pui.li=function(){this.dataArray=[];this.X=[];this.aa=[];this.qd=false};pui.li.prototype=Object.create(pui.uc.prototype);function Zd(b,a,c,e){b=String(e);if(a.properties[c]!=b){if(pui.p(a.properties[c])){if(c=="top"||c=="left")a.properties[c].designValue=b}else a.properties[c]=b;a.qb[c]=true;a.nd=true;return a.designer.od[a.designer.Oa.vb]=true}return false}
|
|
1159
1160
|
pui.mk=function(){function b(k,o){var q=d.dataArray;if(o&&d.isFiltered())q=d.X;var v=q[k-1];if(d.Uc===true||d.isFiltered()){v=null;for(var A=0;A<q.length;A++)if(q[A].o==k){v=q[A];break}}return v}function a(k){for(var o=null,q=0;q<d.aa.length;q++)if(k==d.aa[q]){o=q;break}return o}function c(k){var o=document.createElement("div");o.style.position="absolute";o.style.border="1px solid #0000ff";if(pui.is_old_ie&&pui.is_quirksmode){o.style.height="6px";o.style.width="6px";o.style.padding="0px"}else{o.style.height=
|
|
1160
|
-
"3px";o.style.width="3px";o.style.padding="1px"}o.style.fontSize="0px";o.style.backgroundColor="#dddddd";o.style.cursor=k+"-resize";o.style.zIndex=designUtils.wB;o.style.visibility="hidden";o.hp=true;designUtils.Dk(o,"mousedown",function(q){function v(L){var O=designUtils.getY(L)-F;L=designUtils.getX(L)-I;var Z=0,M=0;if(k=="sw"||k=="se")Z=d.k.length-1;if(k=="ne"||k=="se")M=d.n.length-1;
|
|
1161
|
-
|
|
1161
|
+
"3px";o.style.width="3px";o.style.padding="1px"}o.style.fontSize="0px";o.style.backgroundColor="#dddddd";o.style.cursor=k+"-resize";o.style.zIndex=designUtils.wB;o.style.visibility="hidden";o.hp=true;designUtils.Dk(o,"mousedown",function(q){function v(L){var O=designUtils.getY(L)-F;L=designUtils.getX(L)-I;var Z=0,M=0;if(k=="sw"||k=="se")Z=d.k.length-1;if(k=="ne"||k=="se")M=d.n.length-1;V(L,O,Z,false,d.k[Z].Ga,d.k[Z].ib);V(L,O,M,true,d.n[M].Ga,d.n[M].ib);if((k=="sw"||k=="se")&&d.k.length>2){O=O;if(O<
|
|
1162
|
+
-d.la+5)O=-d.la+5;typeof d.d.ml=="function"&&d.d.ml(O)}u.set(d.c.e)}function A(){designUtils.Gy(document,"mousemove",v);designUtils.Gy(document,"mouseup",A);if((k=="sw"||k=="se")&&(d.k.length>=3||d.h&&d.k.length==2)){var L=parseInt(d.k[d.k.length-1].style.top);if(d.cells.length>(d.h?2:1)){d.Jj();if(L>parseInt(d.k[d.k.length-1].style.top)+d.la-3){for(var O=false;parseInt(d.k[d.k.length-1].style.top)<L;){d.jf();O=true}O&&d.Kh()}}else d.la=parseInt(d.k[d.k.length-1].style.top)-parseInt(d.k[d.k.length-
|
|
1162
1163
|
2].style.top)}d.ac();d.ic();u.hide()}var u=pui.designer.Gj;if(u.b==null){u.b=document.body;u.init()}u.set(d.c.e);u.show();d.c.e.designer.Vo();if(!d.Mf)if(!(d.k.length<1||d.n.length<1)){var I=designUtils.getX(q),F=designUtils.getY(q);d.k[0].Ga=parseInt(d.k[0].style.top);d.k[0].ib=parseInt(d.k[0].style.left);d.n[0].Ga=parseInt(d.n[0].style.top);d.n[0].ib=parseInt(d.n[0].style.left);d.k[d.k.length-1].Ga=parseInt(d.k[d.k.length-1].style.top);d.k[d.k.length-1].ib=parseInt(d.k[d.k.length-1].style.left);
|
|
1163
1164
|
d.n[d.n.length-1].Ga=parseInt(d.n[d.n.length-1].style.top);d.n[d.n.length-1].ib=parseInt(d.n[d.n.length-1].style.left);designUtils.Dk(document,"mousemove",v);designUtils.Dk(document,"mouseup",A);var H=d.c.e.designer;H.ca.start("Size Grid");H.selection.Bn(["left","top","number of rows","header height","column widths"]);designUtils.Ke(q)}});d.b.appendChild(o);return o}function e(){var k="",o=d.xj["padding bottom"];if(o!=null&&o!="")k+="padding-bottom:"+o+";";o=d.xj["padding left"];if(o!=null&&o!="")k+=
|
|
1164
1165
|
"padding-left:"+o+";";o=d.xj["padding right"];if(o!=null&&o!="")k+="padding-right:"+o+";";o=d.xj["padding top"];if(o!=null&&o!="")k+="padding-top:"+o+";";return k}function f(k){function o(){d.tc||x(k,false)}if(!pui.qa)k.style.cursor="pointer";T(k,"click",o);k.ym=o}function g(k){function o(I,F){return parseInt(I,10)===F.w}function q(I,F){return I===F.fieldName}function v(I,F){return p(F.w)}var A=d.cells[0];if(d.bj instanceof Array){m(d.bj,o,v);d.ea()&&d.dataProps["load all rows"]!="true"?x(null,k):
|
|
@@ -1166,14 +1167,14 @@ t(null,true)}else if(d.Hg instanceof Array)if(d.ea()&&d.dataProps["load all rows
|
|
|
1166
1167
|
function h(){if(Ta!=false){var k=K();if(k!=null)if(k.cols==null||k.cols!=Hc)Q({});else return k}}function l(k,o,q){o=o&&d.ea();if(d.sortable&&!o&&d.c.qh==null&&d.c.xg==null){k=k.sort;if(k!=null)if(k.columnId!=null&&k.descending!=null){var v;for(o=0;o<d.cells[0].length;o++)if(d.cells[0][o].w==k.columnId){v=d.cells[0][o];v.sa=!k.descending;break}v&&q(v,true)}else if(k.multiSort instanceof Array){Ua=[];m(k.multiSort,function(A,u){return u.w===A.columnId},function(A){return A.descending});q(null,true)}}}
|
|
1167
1168
|
function n(){var k=h();if(k!=null){l(k,false,x);var o=k.filters;if(o!=null)for(var q=0;q<o.length;q++){var v=k.filters[q].text,A=d.cells[0][Ca(k.filters[q].column)];if(A==null)return;if(v!=null&&v!=""){d.Y.w=A.w;d.Y.col=A.col;d.Y.text=v;d.rm(A);A.ta=v}else{d.Y.text=null;d.Ij(A);A.ta=null}}}}function m(k,o,q){for(var v=d.cells[0],A=0;A<k.length;A++)for(var u=0;u<v.length;u++){var I=v[u];if(o(k[A],I)){I.sa=q(k[A],I);Ua.push(I);break}}}function r(k,o){Ua=[];m([k],function(q,v){return v.w==q},function(){return o})}
|
|
1168
1169
|
function p(k){var o=null;if(d.Mi.length==0)return false;o=d.Mi.length==1?d.Mi[0]:d.Mi[k];if(o==null)return false;if(o.length<1)return false;o=o.substr(0,1).toUpperCase();return o=="D"}function s(k){for(var o=d.cells[0],q=0;q<o.length;q++)o[q].sa=k?p(o[q].w):!p(o[q].w)}function t(k,o){var q;d.bc!=null&&d.bc.hide();if(!(k==null&&Ua.length<1)){var v;if(k!=null){v=k.sa;s(false);if(v==null)v=k.sa;r(k.w,!v)}var A;if(nc!==undefined)try{A=new Function("value1, value2, fieldName, isDescending, fieldDateFormat, fieldFormat, multiFields",
|
|
1169
|
-
nc)}catch(u){if(u){console.log("Sort function error: ");console.error(u)}}if(d.c.qh==null&&d.c.xg==null){if(k!=null)Ic=k.w;pui.$d={};if(!d.Uc)for(q=0;q<d.dataArray.length;q++)d.dataArray[q].o=q+1;for(q=0;q<d.dataArray.length;q++)d.dataArray[q].On=q;d.Uc=true;
|
|
1170
|
-
Ua.length;q++){O(Ua[q]);L.push({fieldName:I,fieldDateFormat:F,fieldFormat:H})}}q=function(M,S){function R(
|
|
1171
|
-
Ua[ja];R(
|
|
1170
|
+
nc)}catch(u){if(u){console.log("Sort function error: ");console.error(u)}}if(d.c.qh==null&&d.c.xg==null){if(k!=null)Ic=k.w;pui.$d={};if(!d.Uc)for(q=0;q<d.dataArray.length;q++)d.dataArray[q].o=q+1;for(q=0;q<d.dataArray.length;q++)d.dataArray[q].On=q;d.Uc=true;B();var I="",F=null,H={},L=null,O=function(M){if(typeof M.fieldName==="string")I=M.fieldName.toUpperCase();if(M.dateFormat)F=M.dateFormat;if(M.ys)H=M.ys};if(k!=null)O(k);else if(nc!==undefined||typeof pui.gridSort=="function"){L=[];for(q=0;q<
|
|
1171
|
+
Ua.length;q++){O(Ua[q]);L.push({fieldName:I,fieldDateFormat:F,fieldFormat:H})}}q=function(M,S){function R(Ja,Oa,wa){aa=M[Ja];X=S[Ja];if(Oa=="zoned"||Oa=="floating"){aa=Number(aa);X=Number(X)}else if(Oa=="reference"){Ja=d.ref[wa];if(Ja!=null)if(Ja.dataType==7||Ja.dataType==9||Ja.dataType==10){aa=Number(aa);X=Number(X)}}else if(Oa=="graphic"){aa=pui.formatting.rh(aa);X=pui.formatting.rh(X)}}var aa,X;if(k!=null)R(k.dk,k.dataType,k.fieldName);else{for(var ia=false,va,Ma,ja=0;ja<Ua.length;ja++){var sa=
|
|
1172
|
+
Ua[ja];R(sa.dk,sa.dataType,sa.fieldName);if(nc!==undefined||typeof pui.gridSort=="function"){L[ja].value1=aa;L[ja].value2=X}if(!ia&&aa!=X){v=!sa.sa;va=aa;Ma=X;ia=true}}if(v==null)v=true;if(va!=null)aa=va;if(Ma!=null)X=Ma}return typeof A=="function"?Z(A,aa,X,I,v,F,H,L):typeof pui.gridSort=="function"?Z(pui.gridSort,aa,X,I,v,F,H,L):v&&aa<X||!v&&aa>X?-1:aa==X?v&&M.o<S.o||!v&&M.o>S.o?-1:1:1};var Z=function(M,S,R,aa,X,ia,va,Ma){M=M(S,R,aa,X,ia,va,Ma);if(typeof M!="number")M=0;if(M>0)return X?-1:1;if(M<
|
|
1172
1173
|
0)return X?1:-1;return 0};d.dataArray.sort(q);d.isFiltered()&&d.X.sort(q);w();d.j=1;if(d.wm>0&&o)for(q=0;q<d.dataArray.length;q++)if(d.dataArray[q].o==d.wm){d.j=q+1;if(d.Qt)d.Dj=d.j;d.Rt||d.Vu(d.j);break}d.d!=null&&d.d.type=="sliding"&&d.d.xd(d.j);ed==false&&d.getData()}if(k!=null){v=!v;k.sa=v;J(k,v)}else{E();D()}if(Ta&&!o){O={};if(k!=null){O.columnId=k.w;O.descending=k.sa}else if(Ua.length>0){O.multiSort=[];for(q=0;q<Ua.length;q++)O.multiSort.push({columnId:Ua[q].w,descending:Ua[q].sa})}Q(O,"sort")}}}
|
|
1173
1174
|
function w(){for(var k=[],o=0;o<d.dataArray.length;o++)k[d.dataArray[o].On]=o;o=pui.Lb(d.Xa)+".";for(var q in pui.O)if(q.substr(0,o.length)==o)if(q.substr(o.length).split(".").length==2){var v=pui.O[q][0];v.Zb=k[v.Zb]}}function y(){function k(o,q){return o.o>q.o?1:-1}E();G();d.j=1;if(d.ea()&&d.xa==false){d.Fb="";d.mask();d.Mb()}else{d.dataArray.sort(k);d.isFiltered()&&d.X.sort(k);w()}d.d!=null&&d.d.type=="sliding"&&d.d.xd(d.j);d.getData();d.clearState("sort")}function x(k,o){var q,v;d.bc!=null&&d.bc.hide();
|
|
1174
1175
|
if(!(k==null&&Ua.length<1)){if(k!=null){var A=rb(k.w);Ic=k.w+A;q=k.sa;s(false);if(q==null)q=k.sa;q=!q;r(k.w,q);d.Fb=k.w+1+A+(q?" DESC":"")}else{var u=d.Fb="";for(v=0;v<Ua.length;v++){q=Ua[v].sa;if(q==null)q=p(k.w);A=rb(Ua[v].w);d.Fb+=u+(Ua[v].w+1+A)+(q?" DESC":"");u=", "}}d.Uc=true;if(!o){d.d!=null&&d.d.type=="sliding"&&d.d.xd(1);d.j=1;d.mask();d.Mb();d.getData()}if(k!=null){k.sa=q;J(k,q)}else{E();D()}if(Ta&&!o){var I;if(k!=null){I={};I.columnId=k.w;I.descending=k.sa}else if(Ua.length>0){I={};I.multiSort=
|
|
1175
1176
|
[];for(v=0;v<Ua.length;v++)I.multiSort.push({columnId:Ua[v].w,descending:Ua[v].sa})}Q(I,"sort")}}}function E(){d.kc!=null&&d.kc.parentNode!=null&&d.kc.parentNode.removeChild(d.kc)}function J(k,o){G();k.setAttribute("sortorder",0);if(d.kc==null)d.kc=document.createElement("div");else d.kc.parentNode!=null&&d.kc.parentNode.removeChild(d.kc);d.kc.className=o?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";z(k,d.kc)}function z(k,o){var q=k;if(q.firstChild!=null&&q.firstChild.tagName=="DIV")q=
|
|
1176
|
-
q.firstChild;q.appendChild(o)}function G(){for(var k=0;k<d.cells[0].length;k++){var o=d.cells[0][k];o.removeAttribute("sortorder");if(o.ed!=null)o.ed.style.display="none"}}function D(){G();for(var k=0;k<Ua.length;k++){var o=Ua[k];o.setAttribute("sortorder",k);if(o.ed==null){o.ed=document.createElement("div");o.ed.onclick=function(q){if(!pui.Ge(q)){ub(q);d.Bu()}};z(o,o.ed)}o.ed.className=o.sa===true?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";o.ed.style.display=""}}function
|
|
1177
|
+
q.firstChild;q.appendChild(o)}function G(){for(var k=0;k<d.cells[0].length;k++){var o=d.cells[0][k];o.removeAttribute("sortorder");if(o.ed!=null)o.ed.style.display="none"}}function D(){G();for(var k=0;k<Ua.length;k++){var o=Ua[k];o.setAttribute("sortorder",k);if(o.ed==null){o.ed=document.createElement("div");o.ed.onclick=function(q){if(!pui.Ge(q)){ub(q);d.Bu()}};z(o,o.ed)}o.ed.className=o.sa===true?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";o.ed.style.display=""}}function B(){var k,
|
|
1177
1178
|
o={};for(k=0;k<d.aa.length;k++)o[d.aa[k]]=k;var q=pui.Lb(d.Xa)+".";for(var v in pui.O)if(v.substr(0,q.length)==q){var A=v.substr(q.length).split(".");if(A.length==2){A=o[A[0]];if(A!=null){var u=pui.O[v][0];if(u!=null&&u.o!=null){var I;if(!d.Uc&&u.Zb!=null)if(d.dataArray[u.Zb]&&d.dataArray[u.Zb].o!=undefined&&d.dataArray[u.Zb].o!==u.Zb)for(k=0;k<d.dataArray.length;k++){if(d.dataArray[k].o===u.o){I=d.dataArray[k];break}}else I=d.dataArray[u.Zb];else for(k=0;k<d.dataArray.length;k++)if(d.dataArray[k].o===
|
|
1178
1179
|
u.o){I=d.dataArray[k];break}if(I!=null){k=u.value;if(u.comboBoxWidget!=null)k=u.comboBoxWidget.getValue();if(u.l!=null)k=u.l.getValue();if(u.M!=null){k="";if(u.M.Od&&u.M.Mh!=null)k=u.M.Mh;else if(!u.M.Od&&u.M.Lh!=null)k=u.M.Lh}if(u.tagName=="INPUT"&&u.type=="checkbox")k=u.checked?u.checkedValue!=null&&u.checkedValue!=""?u.checkedValue:"1":u.uncheckedValue!=null&&u.uncheckedValue!=""?u.uncheckedValue:" ";if((u.isLoading==null||u.isLoading===false)&&u.modified===true){var F=u.N.value,H=u.N.revert;u.N.value=
|
|
1179
1180
|
k;u.N.revert=true;k=pui.vc.format(u.N);u.N.value=F;u.N.revert=H;if(typeof k=="object")k="";I[A]=k}}}}}}}function K(){var k=null;if(pui.Ig()&&localStorage[d.Rb]!=null||pui.gp()&&sessionStorage[d.Rb]!=null||Sa&&pui.Fj[d.Rb]!=null)try{k=ob==true?JSON.parse(sessionStorage[d.Rb]):Sa==true?JSON.parse(pui.Fj[d.Rb]):JSON.parse(localStorage[d.Rb])}catch(o){}if(d.de!=null&&d.de!="")try{k=JSON.parse(d.de)}catch(q){console.warn("Error parsing stored state: "+q)}else if(k!=null&&k!="")d.de=JSON.stringify(k);return k}
|
|
@@ -1181,48 +1182,48 @@ function Q(k,o){var q;if(o==null)q=k;else{q=K();if(q==null)q={};q[o]=k}q.cols=Hc
|
|
|
1181
1182
|
null&&v!="")try{pui.temporary_property=d;eval("var grid = pui.temporary_property;");pui.temporary_property=d.c;eval("var dom = pui.temporary_property;");eval("var row = arguments[1];");eval("var rowNumber = arguments[1];");pui.temporary_property=d.bq;eval("var rowclicked = pui.temporary_property");pui.temporary_property=d.ao;eval("var columnclicked = pui.temporary_property");k=="onrowclick"&&eval("var isRightClick = arguments[2];");arguments.length>=4&&eval("var event = arguments[3]");eval("var column = arguments[4];");
|
|
1182
1183
|
if(o!=null){d.h||(o-=1);pui.temporary_property=d.cells[o];eval("var rowCells = pui.temporary_property;")}if(A>=0){u=A+1;eval("rowNumber = "+u);if(q[A]!=null&&q[A].o!=null)u=q[A].o;eval("row = "+u);eval("var rrn = "+u)}delete pui.temporary_property;if(eval(v)==false)return false}catch(F){pui.Fa(F,k.substr(0,1).toUpperCase()+k.substr(1)+" Error:\n");return false}}}function ea(k,o){var q=document.createElement("div");q.style.position="absolute";q.style.left="200px";q.style.top="200px";q.style.width=
|
|
1183
1184
|
"16px";q.style.height="18px";q.style.fontSize="0px";q.style.overflow="hidden";q.style.backgroundImage="url('"+pui.normalizeURL("/profoundui/proddata/images/icons/")+k+".gif')";q.style.backgroundRepeat="no-repeat";q.style.cursor="pointer";q.style.zIndex=d.zx;q.title=o;q.style.color="white";q.style.padding="0px";q.onmousedown=function(v){designUtils.Ke(v)};d.b.appendChild(q);return q}function P(){if(d.designMode)if(Xa!=null)if(hb!=null){var k=0,o=0;k=d.k.length;if(k>0){o=parseInt(d.k[k-1].style.left);
|
|
1184
|
-
k=parseInt(d.k[k-1].style.top)-20}else{o=d.qc("left");k=d.qc("top")-20}Xa.style.left=o+"px";Xa.style.top=k+"px";k-=14;hb.style.left=o+"px";hb.style.top=k+"px";k=d.n.length;if(k>0){o=parseInt(d.n[k-1].style.left)-20;k=parseInt(d.n[k-1].style.top)+5}else{o=d.qc("left")-20;k=d.qc("top")+5}ba.style.left=o+"px";ba.style.top=k+"px";o-=14;fa.style.left=o+"px";fa.style.top=k+"px";o=d.qc("left")-2;k=d.qc("top")-2;
|
|
1185
|
-
k+"px";k+=d.qc("height")+1;if(d.i.ug||d.i.Ad||d.i.$h||d.i.bi||d.i.xm)k+=25;ma.style.left=o+"px";ma.style.top=k+"px";o=d.qc("left")-2;ca.style.left=o+"px";ca.style.top=k+"px"}}function
|
|
1185
|
+
k=parseInt(d.k[k-1].style.top)-20}else{o=d.qc("left");k=d.qc("top")-20}Xa.style.left=o+"px";Xa.style.top=k+"px";k-=14;hb.style.left=o+"px";hb.style.top=k+"px";k=d.n.length;if(k>0){o=parseInt(d.n[k-1].style.left)-20;k=parseInt(d.n[k-1].style.top)+5}else{o=d.qc("left")-20;k=d.qc("top")+5}ba.style.left=o+"px";ba.style.top=k+"px";o-=14;fa.style.left=o+"px";fa.style.top=k+"px";o=d.qc("left")-2;k=d.qc("top")-2;qa.style.left=o+"px";qa.style.top=k+"px";o+=d.qc("width")-2;Fa.style.left=o+"px";Fa.style.top=
|
|
1186
|
+
k+"px";k+=d.qc("height")+1;if(d.i.ug||d.i.Ad||d.i.$h||d.i.bi||d.i.xm)k+=25;ma.style.left=o+"px";ma.style.top=k+"px";o=d.qc("left")-2;ca.style.left=o+"px";ca.style.top=k+"px"}}function W(k){if(k==null)return false;var o=false;if(k.selected==null)if(d.Eb!=null){if(d.km==null)for(var q=0;q<d.aa.length;q++)if(pui.L(d.Eb.fieldName)==d.aa[q]){d.km=q;break}if(d.km!=null)if(k[d.km]==d.Xh)k.selected=true}if(k.selected==true)o=true;return o}function oa(k,o,q){if(!(!d.designMode&&o!=true)){if(!d.designMode&&
|
|
1186
1187
|
o==true)d.c.parentNode.onselectstart=da;if(q!=true&&k.style.cursor!="pointer")k.style.cursor="default";T(k,"mousedown",ga)}}function da(k){if(d&&d.dragging){ub(k);return false}}function ga(k){function o(M){M=pui.Bg(M);var S=M.y-F,R=M.x-I;if(N=="dspf"&&d.designMode){S=Math.round(S*Hb.Pm);R=Math.round(R*Hb.Pm)}if(d.h&&v.row==0){if(sb==null){sb=v.cloneNode(true);sb.style.position="absolute";sb.style.border="1px solid #999999";sb.style.zIndex=d.yt;Qb=document.createElement("div");Qb.className=d.c.className;
|
|
1187
|
-
Qb.style.borderColor="transparent";v.parentNode.parentNode.appendChild(Qb);Qb.appendChild(sb);sb.style.display="none";setTimeout(function(){if(sb!=null)sb.style.display=""},150)}sb.style.top=d.c.Ga+S+"px";var aa=parseInt(v.style.left);if(isNaN(aa))aa=v.getBoundingClientRect().left;sb.style.left=d.c.ib+aa+R+"px";var X=null;if(S>-25&&S<parseInt(d.c.style.height))for(aa=0;aa<d.n.length;aa++){var ia=d.n[aa],
|
|
1188
|
+
Qb.style.borderColor="transparent";v.parentNode.parentNode.appendChild(Qb);Qb.appendChild(sb);sb.style.display="none";setTimeout(function(){if(sb!=null)sb.style.display=""},150)}sb.style.top=d.c.Ga+S+"px";var aa=parseInt(v.style.left);if(isNaN(aa))aa=v.getBoundingClientRect().left;sb.style.left=d.c.ib+aa+R+"px";var X=null;if(S>-25&&S<parseInt(d.c.style.height))for(aa=0;aa<d.n.length;aa++){var ia=d.n[aa],va=parseInt(ia.style.left),Ma=M.x;if(d.designMode&&N=="dspf")va=Math.round(va*Hb.ki);Ma-=H.x;if(Math.abs(va-
|
|
1188
1189
|
Ma)<15){if(Ya!=null&&Ya.parentNode!=ia.parentNode){Ya.parentNode.removeChild(Ya);Ya=null}if(Ya==null){Ya=document.createElement("img");Ya.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");Ya.style.position="absolute";Ya.style.zIndex=d.yt+1;d.designMode?Hb.designer.b.appendChild(Ya):document.body.appendChild(Ya)}M=parseInt(ia.style.top)-10;ia=parseInt(ia.style.left)-4;M+=Z.y;ia+=Z.x;Ya.style.display="";Ya.style.top=M+"px";Ya.style.left=ia+"px";X=aa;Ya.Bl=X;break}}if(X==null&&
|
|
1189
1190
|
Ya!=null){Ya.style.display="none";Ya.Bl=null}}else{aa=d.c.e;if(aa!=null){pui.designer.qB(M.x,M.y,aa.designer);M=aa.designer.selection;if(M.Iu){R+=d.c.ib;S+=d.c.Ga;R=M.bk(R,pui.Hl);S=M.bk(S,pui.Il,N=="genie"?3:0);R-=d.c.ib;S-=d.c.Ga}}d.Mc(function(ja){ja.style.top=ja.Ga+S+"px";ja.style.left=ja.ib+R+"px"});if(aa!=null)aa.moved=true;d.setScrollBar();M=pui.designer.Gj;if(M.b==null){M.b=document.body;M.init()}M.set(d.c.e);M.show()}}function q(){var M,S;d.dragging=false;if(sb!=null){sb.parentNode.removeChild(sb);
|
|
1190
|
-
Qb.parentNode.removeChild(Qb);Qb=sb=null}var R=false;if(Ya!=null){Ya.style.display="none";if(Ya.Bl!=null){S=d.c.e;S!=null&&S.designer.ca.An("Move Column",S.designer);d.moveColumn(v.col,Ya.Bl);if(d.na){var aa=d.ga.map(function(ia){if(ia.showing){var
|
|
1191
|
-
"colSequence");if(d.na){if(S=h())if(S=S.hidableColState){S.cols=aa;S.headings=d.columnHeadings}else S={cols:aa,headings:d.columnHeadings};else S={cols:aa,headings:d.columnHeadings};var X=d.Cf().split(",").map(function(ia){return Number(ia)});Q(S,"hidableColState");Q(X,"colWidths");d.ga=aa}}}}if(d.designMode){S=d.c.e;if(S!=null)if(S.moved){R=S.designer;if(R.rs!=null)d.Tx();else{A&&R.Me.style.display==""&&d.Ux();R.zn();d.ac();N=="dspf"&&pui.ide.refreshRibbon()}}else R||d.c.e.designer.ca.
|
|
1192
|
-
R=pui.designer.Gj;R!=null&&R.b!=null&&R.hide();designUtils.
|
|
1193
|
-
k.stopPropagation();return false}d.c.e!=null&&d.c.e.designer.Zp!=null&&d.c.e.designer.Zp.hide();if(d.Mf){designUtils.Ke(k);return}d.c.e.
|
|
1191
|
+
Qb.parentNode.removeChild(Qb);Qb=sb=null}var R=false;if(Ya!=null){Ya.style.display="none";if(Ya.Bl!=null){S=d.c.e;S!=null&&S.designer.ca.An("Move Column",S.designer);d.moveColumn(v.col,Ya.Bl);if(d.na){var aa=d.ga.map(function(ia){if(ia.showing){var va=Ca(ia.columnId);ia.currentColumn=va;ia.savedColumn=va}else ia.currentColumn=-1;return ia});M=[];d.cells[0].forEach(function(ia){M.push(ia.w)});aa.Ki=M;d.ga=aa}R=true;Ya.Bl=null;if(Ta){if(!M){M=[];for(S=0;S<d.cells[0].length;S++)M.push(d.cells[0][S].w)}Q(M,
|
|
1192
|
+
"colSequence");if(d.na){if(S=h())if(S=S.hidableColState){S.cols=aa;S.headings=d.columnHeadings}else S={cols:aa,headings:d.columnHeadings};else S={cols:aa,headings:d.columnHeadings};var X=d.Cf().split(",").map(function(ia){return Number(ia)});Q(S,"hidableColState");Q(X,"colWidths");d.ga=aa}}}}if(d.designMode){S=d.c.e;if(S!=null)if(S.moved){R=S.designer;if(R.rs!=null)d.Tx();else{A&&R.Me.style.display==""&&d.Ux();R.zn();d.ac();N=="dspf"&&pui.ide.refreshRibbon()}}else R||d.c.e.designer.ca.Jy();d.ic();
|
|
1193
|
+
R=pui.designer.Gj;R!=null&&R.b!=null&&R.hide();designUtils.RA(d.c.e.designer)}Zb(document,"mousemove",o);Zb(document,"mouseup",q)}for(var v=k.target;v!=null&&v.row==null;)v=v.parentNode;if(v==null||v.row==null)return false;var A=N=="dspf"&&d.c.parentNode.getAttribute("container")=="true",u=pui.Bg(k),I=u.x,F=u.y;if(d.designMode){d.c.e.designer.Vo();N=="dspf"&&Ext.menu.MenuMgr.hideAll();d.Se();if(pui.Ge(k)){if(d.c.e){d.c.e.designer.nx.hide();d.c.e.designer.nz(k)}designUtils.Ke(k);k.stopPropagation&&
|
|
1194
|
+
k.stopPropagation();return false}d.c.e!=null&&d.c.e.designer.Zp!=null&&d.c.e.designer.Zp.hide();if(d.Mf){designUtils.Ke(k);return}d.c.e.wz.left=d.c.style.left;d.c.e.wz.top=d.c.style.top;designUtils.SA(d.c.e.designer,false,A,false,true,I,F,d.c.e)}else d.bc!=null&&!pui.Ge(k)&&d.bc.hide();d.dragging=true;d.Mc(function(M){M.ib=pui.ae(M.style.left);M.Ga=pui.ae(M.style.top)});var H={x:0,y:0};if(d.designMode){u=pui.$c(d.c.e.designer.b,true);H.x+=u[0]}else{u=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset==
|
|
1194
1195
|
"number"){H.x=u.left+window.pageXOffset;H.y=u.top+window.pageYOffset}else{H.x=u.left+document.documentElement.scrollLeft;H.y=u.top+document.documentElement.scrollTop}u=d.c.parentNode;var L=pui.getActiveContainer();if(u.Bc==true){H.x+=parseInt(u.style.left);H.y+=parseInt(u.style.top)}else if(L!=null&&L.Bc===true){H.x+=L.offsetLeft;H.y+=L.offsetTop}}if(A){var O=pui.layout.Df(d.c.parentNode);H.x+=O.x;H.y+=O.y}var Z={x:0,y:0};if(d.designMode){if(A)Z=O}else{Z.y=H.y;Z.x=H.x}T(document,"mousemove",o);T(document,
|
|
1195
|
-
"mouseup",q);ub(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;O=k.selection;u="Move Selection";if(O.Yd.length==1)u="Move Grid";if(!(d.h&&v.row==0)){k.ca.start(u);k.ca.xp=true;O.Bn(["left","top","parent tab panel","parent tab panel"]);k.ca.xp=false}}}function Aa(k,o){for(var q=[],v=k.firstChild;v!=null;){v.style.position=="absolute"&&!v.hp&&q.push(v);v=v.nextSibling}o.innerHTML="";for(var A=0;A<q.length;A++){v=q[A];v.parentNode.removeChild(v);o.appendChild(v)}}function
|
|
1196
|
-
q,v){if(d.designMode||v){var A=k[o];if(d.borderWidth!==null&&d.borderWidth<za){A.style.borderWidth="2px";if(!q)A.style.width=parseInt(A.style.width)+2+"px"}if(!q)A.style.borderTopStyle=Ra;if(q)A.style.borderRightStyle=Ra;if(q)A.style.cursor="w-resize";if(!q)k[o].style.cursor="n-resize";d.Se();T(A,"mousedown",function(u){function I(R){var aa=pui.Bg(R);R=aa.y-O;aa=aa.x-L;if(N=="dspf"&&d.designMode){R=Math.round(R*Hb.Pm);aa=Math.round(aa*Hb.Pm)}
|
|
1196
|
+
"mouseup",q);ub(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;O=k.selection;u="Move Selection";if(O.Yd.length==1)u="Move Grid";if(!(d.h&&v.row==0)){k.ca.start(u);k.ca.xp=true;O.Bn(["left","top","parent tab panel","parent tab panel"]);k.ca.xp=false}}}function Aa(k,o){for(var q=[],v=k.firstChild;v!=null;){v.style.position=="absolute"&&!v.hp&&q.push(v);v=v.nextSibling}o.innerHTML="";for(var A=0;A<q.length;A++){v=q[A];v.parentNode.removeChild(v);o.appendChild(v)}}function Ea(k,o,
|
|
1197
|
+
q,v){if(d.designMode||v){var A=k[o];if(d.borderWidth!==null&&d.borderWidth<za){A.style.borderWidth="2px";if(!q)A.style.width=parseInt(A.style.width)+2+"px"}if(!q)A.style.borderTopStyle=Ra;if(q)A.style.borderRightStyle=Ra;if(q)A.style.cursor="w-resize";if(!q)k[o].style.cursor="n-resize";d.Se();T(A,"mousedown",function(u){function I(R){var aa=pui.Bg(R);R=aa.y-O;aa=aa.x-L;if(N=="dspf"&&d.designMode){R=Math.round(R*Hb.Pm);aa=Math.round(aa*Hb.Pm)}V(aa,R,o,q,M,Z);if(!q&&o==k.length-1&&k.length>2&&d.d!=
|
|
1197
1198
|
null&&d.d.type=="sliding"){R=R;if(R<-d.la+5)R=-d.la+5;typeof d.d.ml=="function"&&d.d.ml(R)}d.designMode?H.set(d.c.e):d.alignColumnTotals()}function F(){A.dragging=false;d.dragging=false;var R=d.borderWidth;if(R===null||R<za)R=za;A.style.borderWidth=R+"px";A.style.borderColor=d.borderColor;if(!q)A.style.borderTopStyle=Ra;if(q)A.style.borderRightStyle=Ra;if(!q&&o==k.length-1&&(o>=2||d.h&&o==1)){R=parseInt(A.style.top);if(d.cells.length>(d.h?2:1)){d.Jj();if(R>parseInt(k[k.length-1].style.top)+d.la-3){for(var aa=
|
|
1198
1199
|
false;parseInt(k[k.length-1].style.top)<R;){d.jf();aa=true}aa&&d.Kh()}}else d.la=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.ac();d.ic();H.hide()}else{d.alignColumnTotals();if(q&&Ta){if(d.na)R=d.Cf().split(",").map(function(ia){return Number(ia)});else{R=Array(d.cells[0].length);for(aa=0;aa<d.cells[0].length;aa++){var X=d.cells[0][aa];R[X.w]=X.clientWidth}}Q(R,"colWidths")}}Zb(document,"mousemove",I);Zb(document,"mouseup",F)}if(d.designMode){var H=pui.designer.Gj;
|
|
1199
1200
|
if(H.b==null){H.b=document.body;H.init()}H.set(d.c.e);if(o==0||o==k.length-1)H.show()}if(d.designMode){d.c.e.designer.Vo();if(d.Mf){designUtils.Ke(u);return}}else d.bc!=null&&d.bc.hide();A.dragging=true;d.dragging=true;var L=Xc(u),O=Yc(u),Z=parseInt(A.style.left),M=parseInt(A.style.top);d.Se();var S=3;if(d.borderWidth>3)S=d.borderWidth;A.style.borderWidth=S+"px";A.style.borderColor="#333333";if(!q)A.style.borderTopStyle="solid";if(q)A.style.borderRightStyle="solid";T(document,"mousemove",I);T(document,
|
|
1200
1201
|
"mouseup",F);ub(u);if(d.designMode){u=d.c.e.designer;q&&u.ca.start("Size Grid Column");q||u.ca.start("Size Grid Rows");u.selection.Bn(["left","top","number of rows","row height","header height","column widths"])}});T(A,"mouseover",function(){if(!d.dragging){var u=3;if(d.borderWidth>3)u=d.borderWidth;A.style.borderWidth=u+"px";A.style.borderColor="#333333";if(!q)A.style.borderTopStyle="solid";if(q)A.style.borderRightStyle="solid"}});T(A,"mouseout",function(){if(!A.dragging){var u=d.borderWidth;if(u===
|
|
1201
|
-
null||u<za)u=za;A.style.borderWidth=u+"px";A.style.borderColor=d.borderColor;if(!q)A.style.borderTopStyle=Ra;if(q)A.style.borderRightStyle=Ra}})}}function
|
|
1202
|
+
null||u<za)u=za;A.style.borderWidth=u+"px";A.style.borderColor=d.borderColor;if(!q)A.style.borderTopStyle=Ra;if(q)A.style.borderRightStyle=Ra}})}}function V(k,o,q,v,A,u){var I=pui["grid column resize style"]!=="simple";if(d.qd)I=false;var F;F=v?d.n:d.k;var H=F[q];if(v)o=0;v||(k=0);o=A+o;u=u+k;if(v){if(q>0&&u<parseInt(F[q-1].style.left)+5)u=parseInt(F[q-1].style.left)+5;if(q<F.length-1&&u>parseInt(F[q+1].style.left)-5)u=parseInt(F[q+1].style.left)-5}if(!v){if(q>0&&o<parseInt(F[q-1].style.top)+5)o=
|
|
1202
1203
|
parseInt(F[q-1].style.top)+5;if(q<F.length-1&&o>parseInt(F[q+1].style.top)-6)o=parseInt(F[q+1].style.top)-6}if(!v)H.style.top=o+"px";if(v){if(I&&q!=0){A=u-H.offsetLeft;for(k=q+1;k<F.length;k++){var L=F[k];L.style.left=L.offsetLeft+A+"px"}}H.style.left=u+"px"}if(!v&&(q!=0||!d.h)&&q!=F.length-1){d.la=q<F.length-1?parseInt(F[q+1].style.top)-parseInt(F[q].style.top):parseInt(F[q].style.top)-parseInt(F[q-1].style.top);H=o;for(k=q+1;k<F.length;k++){H+=d.la;F[k].style.top=H+"px"}H=o;o=0;if(d.h)o=1;for(k=
|
|
1203
|
-
q-1;k>=o;k-=1){H-=d.la;F[k].style.top=H+"px"}if(d.h)F[0].style.top=parseInt(F[1].style.top)-d.db+"px"}if(!v&&q==0&&d.h&&F.length>1)d.db=parseInt(F[1].style.top)-parseInt(F[0].style.top);if(!v&&q==1&&!d.h&&F.length==2)d.la=parseInt(F[q].style.top)-parseInt(F[q-1].style.top);if(q==0&&v){d.c.style.left=u+"px";for(H=0;H<d.k.length;H++)d.k[H].style.left=d.c.style.left}if(v&&(F.length-1==q||q==0))
|
|
1204
|
-
d.k[0].style.top;for(var k=0;k<d.n.length;k++)d.n[k].style.top=d.c.style.top}function
|
|
1205
|
-
d.n.length;o++)d.n[o].style.height=k+"px";d.c.style.height=k+"px"}function
|
|
1204
|
+
q-1;k>=o;k-=1){H-=d.la;F[k].style.top=H+"px"}if(d.h)F[0].style.top=parseInt(F[1].style.top)-d.db+"px"}if(!v&&q==0&&d.h&&F.length>1)d.db=parseInt(F[1].style.top)-parseInt(F[0].style.top);if(!v&&q==1&&!d.h&&F.length==2)d.la=parseInt(F[q].style.top)-parseInt(F[q-1].style.top);if(q==0&&v){d.c.style.left=u+"px";for(H=0;H<d.k.length;H++)d.k[H].style.left=d.c.style.left}if(v&&(F.length-1==q||q==0))U();else I&&v&&U();if(!v){C();pa()}if(v&&d.h)d.na?d.jc(d.Js(d.ga)):d.jc();d.Na();P();d.setScrollBar()}function C(){d.c.style.top=
|
|
1205
|
+
d.k[0].style.top;for(var k=0;k<d.n.length;k++)d.n[k].style.top=d.c.style.top}function U(){var k=0;if(d.n.length>0){k=d.borderWidth;if(k===null||k<za&&d.designMode)k=za;k=parseInt(d.n[d.n.length-1].style.left)-d.qc("left")+k}for(var o=0;o<d.k.length;o++)d.k[o].style.width=k+"px";d.c.style.width=k+"px";if(Ta&&d.ea()&&d.dataProps["load all rows"]=="true"&&jb.style.display=="block"){d.mask();d.Mb()}}function pa(){var k=0;if(d.k.length>0)k=parseInt(d.k[d.k.length-1].style.top)-d.qc("top");for(var o=0;o<
|
|
1206
|
+
d.n.length;o++)d.n[o].style.height=k+"px";d.c.style.height=k+"px"}function la(k,o){var q=document.createElement("div");d.c.appendChild(q);if(!pui.qa&&d.Ur!="default")q.style.cursor=d.Ur;if(k>0||!d.h)q.style.Lz="rgba(0,0,0,0)";var v=k==0&&d.h,A=k%2==1;if(d.h)A=!A;if(v)if(o<d.columnHeadings.length)q.innerHTML="<div"+(d.Tc?' class="qf"':"")+' style="'+e()+'">'+d.columnHeadings[o]+"</div>";d.designMode&&Ba(q,v,A,o);q.onmouseover=function(u){if(!d.dragging){d.h||Y("onrowmouseover",k+1,null,u,o);d.h&&k!=
|
|
1206
1207
|
0&&Y("onrowmouseover",k,null,u,o);if(d.Zo)if(!(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.qa))if(!(k==0&&d.h)){u=d.cells[k];var I=$d(d,k);d.fd(k,true,I);if(d.Gu&&!d.expanded&&(k>0||!d.h)){u=u[0];if(d.Hb==null){d.Hb=document.createElement("img");d.Hb.setAttribute("isZoomIcon","true");d.Hb.src=pui.normalizeURL("/profoundui/proddata/images/icons/zoom_in.png");d.Hb.style.position="absolute";d.Hb.style.top="6px";d.Hb.style.left="3px";if(!pui.qa)d.Hb.style.cursor="pointer"}if(d.Hb.parentNode!=
|
|
1207
1208
|
u){d.Hb.parentNode!=null&&d.Hb.parentNode.removeChild(d.Hb);u.appendChild(d.Hb)}d.Hb.style.display="";d.Hb.onclick=function(F){d.rowZoom(d.cells[k]);ub(F)}}}}};q.onmouseout=function(u){d.h||Y("onrowmouseout",k+1,null,u,o);d.h&&k!=0&&Y("onrowmouseout",k,null,u,o);if(!(k==0&&d.h)){u=$d(d,k);d.fd(k,false,u)}};q.onmousedown=function(u){for(var I=document.getElementsByClassName("qf"),F=[],H=0;H<I.length;H++){var L=I[H];L.tagName=="INPUT"&&F.push(L)}for(I=0;I<F.length;I++)F[I].blur();if(pui.Ge(u))if(!d.designMode){F=
|
|
1208
1209
|
function(R){if(!R)R=window.event;R.preventDefault&&R.preventDefault();R.stopPropagation&&R.stopPropagation();R.cancelBubble=true;R.returnValue=false;document.body.oncontextmenu=null;return false};if(d.h&&k==0){if(d.bc==null){d.bc=new pui.dv;d.bc.grid=d;d.bc.init()}d.bc.Wc=q;d.bc.clickEvent=u?u:window.event;d.bc.show();document.body.oncontextmenu=F}else{var O;if(d.Jd)O=Ab(d.Jd);if(O!=null){O.ak=true;document.body.oncontextmenu=F;q.onclick(u);if(u.gx&&u.gx()||u.cancelBubble){O.ak=false;d.$i()}else{F=
|
|
1209
|
-
pui.Mo(u);I=pui.Ks(u);var Z={x:0,y:0};L=pui.$c(pui.runtimeContainer);if(N=="genie")L=pui.$c(pui.getActiveContainer());H=O.parentNode;if(H!=null&&H.tagName=="FORM")H=H.parentNode;if(H!=null){if(N=="dspf"&&H.getAttribute("container")=="true"){var M=pui.$c(H);Z.x=M[0];Z.y=M[1]}else if(H.Bc){Z.x=H.offsetLeft;Z.y=H.offsetTop}Z.x+=L[0];Z.y+=L[1];F-=Z.x;I-=Z.y}if(pui.is_touch&&!pui.is_mouse_capable){F-=O.clientWidth/2;O.onselectstart=
|
|
1210
|
+
pui.Mo(u);I=pui.Ks(u);var Z={x:0,y:0};L=pui.$c(pui.runtimeContainer);if(N=="genie")L=pui.$c(pui.getActiveContainer());H=O.parentNode;if(H!=null&&H.tagName=="FORM")H=H.parentNode;if(H!=null){if(N=="dspf"&&H.getAttribute("container")=="true"){var M=pui.$c(H);Z.x=M[0];Z.y=M[1]}else if(H.Bc){Z.x=H.offsetLeft;Z.y=H.offsetTop}Z.x+=L[0];Z.y+=L[1];F-=Z.x;I-=Z.y}if(pui.is_touch&&!pui.is_mouse_capable){F-=O.clientWidth/2;O.onselectstart=ta(false);if(typeof O.style.MozUserSelect!="undefined")O.style.MozUserSelect=
|
|
1210
1211
|
"none";if(typeof O.style.webkitUserSelect!="undefined")O.style.webkitUserSelect="none"}O.style.zIndex=d.ds;if(typeof O.onoptiondisplay=="function"){Z=k;d.h||(Z+=1);if(d.j!=null&&!isNaN(d.j)&&d.j>0){Z=Z;Z+=d.j-1;M=Z;var S=d.dataArray;if(d.isFiltered())S=d.X;if(S[Z-1]!=null&&S[Z-1].o!=null)Z=S[Z-1].o;O.onoptiondisplay(Z,Z,M,o,d);O.u.z()}}O.style.visibility="";O.style.display="";M=document.documentElement;Z=document.documentElement.clientWidth+((window.pageXOffset||M.scrollLeft)-(M.clientLeft||0))-O.clientWidth-
|
|
1211
1212
|
10-L[0];L=document.documentElement.clientHeight+((window.pageYOffset||M.scrollTop)-(M.clientTop||0))-O.clientHeight-10-L[1];if(H!=null&&N=="dspf"&&H.getAttribute("container")=="true"){Z=H.offsetWidth>0?H.offsetWidth-O.clientWidth:H.firstChild.offsetWidth;L=H.offsetHeight>0?H.offsetHeight-O.clientHeight:H.firstChild.offsetHeight}if(F>Z)F=Z;if(I>L)I=L;if(F<0)F=0;if(I<0)I=0;O.style.left=F+"px";O.style.top=I+"px";ub(u);u!=null&&u.stopPropagation!=null&&u.stopPropagation();setTimeout(function(){O.ak=false},
|
|
1212
|
-
250);return false}}}}};pui.
|
|
1213
|
+
250);return false}}}}};pui.Bz(q,function(u){u.button=3;q.onmousedown(u)});q.onclick=function(u){var I,F,H=tb(u);if(!H.xw){d.bq=k;d.ao=o;d["row clicked"]=d.bq;d["column clicked"]=d.ao;var L=pui.Ge(u);if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="OPTION"&&H.tagName!="BUTTON"){d.h||Y("onrowclick",k+1,L,u,o);d.h&&k!=0&&Y("onrowclick",k,L,u,o)}if(!d.designMode){d.c.nu=false;d.pm(k);I=(H.tagName=="INPUT"||H.tagName=="SELECT"||H.tagName=="BUTTON")&&!H.disabled&&!H.readOnly;var O=d.h?1:0;if(d.be&&
|
|
1213
1214
|
!I&&(k>0||!d.h))if(d.j!=null&&!isNaN(d.j)&&d.j>0){var Z=d.k.length-1;if(d.singleSelection||d.Oi&&!u.ctrlKey&&!u.shiftKey&&!u.metaKey){var M=k+d.j-(d.h?1:0);for(I=0;I<d.dataArray.length;I++){F=I-d.j+1+O;var S=M<=d.dataArray.length&&d.dataArray[M-1].selected;if(d.isFiltered())S=M<=d.X.length&&d.X[M-1].selected;if(!L||!S)if(!u.ctrlKey&&!u.metaKey||F!=k)d.dataArray[I].selected==true&&ha(d.dataArray[I],false,I);F>=O&&F<Z&&d.Pb==0&&d.fd(F)}if(d.isFiltered()||d.Pb>0)ce(d)}M=d.isFiltered()?d.X:d.dataArray;
|
|
1214
1215
|
var R=k+d.j-1+(d.h?0:1);d.Pb>0&&d.j>0&&de(d,null,k,function(ia){R=ia+1});if(d.Oi&&u.shiftKey){if(d.Wh==null)d.Wh=R;L=d.Wh;var aa=R;if(L>aa){I=L;L=aa;aa=I}for(I=0;I<M.length;I++){F=I-d.j+1;if(I+1>=L&&I+1<=aa)M[I].selected!=true&&ha(M[I],true,I);else M[I].selected==true&&ha(M[I],false,I);F>=O&&F<Z&&d.Pb==0&&d.fd(F)}d.Pb>0&&ce(d)}else if(M[R-1]!=null&&M[R-1].length>0){if(M[R-1].selected==true&&!L){ha(M[R-1],false,R-1,true);if(d.c.tf){d.c.tf=0;d.c.nu=true}}else ha(M[R-1],true,R-1,true);if(d.Pb>0)aa=$d(d,
|
|
1215
1216
|
k);d.fd(k,true,aa)}d.Wh=R}if(d.B.length>0&&d.B[0].id=="_msgsfltext"){O=d.cells[k][0];var X;if(O!=null)X=O.firstChild;X!=null&&H!=X&&X.onclick!=null&&typeof X.onclick=="function"&&X.onclick()}O=H;if((I=H.parentNode)&&I.row&&I.col)O=I;if(O.row!=null&&O.col!=null&&O.tagName=="DIV"&&O.parentNode.grid==d){X=String(O.col);for(I=0;I<d.B.length;I++){Z=d.B[I];if(Z.column==X&&Z["cursor row"]!=null&&Z["cursor column"]!=null){F=d.j+O.row;if(d.h)F-=1;L=false;if(Z&&Z.domEls)for(M=0;M<Z.domEls.length;M++){aa=Z.domEls[M];
|
|
1216
|
-
if(aa!=null&&aa.Zb==F-1){pui.Zd(u,aa);L=true}}if(L)break}}}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false)if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="TEXTAREA"&&H.tagName!="BUTTON"&&getSelection().toString()==""){O=d.cells[k][0];
|
|
1217
|
+
if(aa!=null&&aa.Zb==F-1){pui.Zd(u,aa);L=true}}if(L)break}}}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false)if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="TEXTAREA"&&H.tagName!="BUTTON"&&getSelection().toString()==""){O=d.cells[k][0];ra(O)}if(d.Dg&&d.ag!==null&&R!==undefined){u=Ab(d.c.id+d.Gm+"."+R);u!==null&&u.focus()}}}};q.ondblclick=function(u){if(d.designMode){if(d.h&&k==0){var I=d.c.e;if(!pui.p(I.properties["column headings"])&&!pui.Nb(I.properties["column headings"])){I.designer.Jf.Ap=
|
|
1217
1218
|
function(F){for(;F.indexOf("\n")!=-1;)F=F.replace("\n","<br/>");for(;F.indexOf("\r")!=-1;)F=F.replace("\r","");if(q.firstChild!=null)q.firstChild.innerHTML=F;else q.innerHTML=F;F="";for(var H=0;H<d.cells[0].length;H++){if(H!=0)F+=",";var L=d.cells[0][H],O=Lc(L);if(L.firstChild!=null&&L.firstChild.tagName=="DIV")O=L.firstChild.innerHTML;F+=O}I.designer.ca.add(I,"column headings");I.properties["column headings"]=F;d.setProperty("column headings",F);I.qb["column headings"]=true;I.nd=true;I.designer.od[I.designer.Oa.vb]=
|
|
1218
|
-
true;I.designer.pb.Uh("column headings")};I.designer.Jf.
|
|
1219
|
-
[]);q.row=k;q.col=o;d.cells[k][o]=q;d.designMode&&
|
|
1220
|
-
0;o<k.length;o++)if(
|
|
1221
|
-
if(o!="INPUT"&&o!="TEXTAREA"&&o!="SELECT")return false;if(o=="SELECT"&&pui.is_firefox)return false;try{k.focus();if(o=="INPUT"||o=="TEXTAREA"){if(k.createTextRange!=null){k.select!=null&&k.select();var q=k.createTextRange();if(q!=null&&q.collapse!=null&&q.select!=null){q.collapse();q.select()}}pui["highlight on focus"]&&k.select()}}catch(v){}return true}function
|
|
1222
|
-
u.split(",");if(I.length>1){o=v==="header font color"||v==="header background"?k.w:o;u=o<I.length?I[o]:I[0]}if(u==""){if(v.substr(0,7)=="header ")A=v.substr(7);if(d.qf[v]!=null)u=d.qf[v];else if(d.qf[A]!=null)u=d.qf[A]}try{k.style[q]=u}catch(F){}}}function
|
|
1223
|
-
"font weight");
|
|
1224
|
-
"odd row font color");
|
|
1225
|
-
v=false;if(d.n.length-2==o)v=true;if(k==0&&d.h)v=false;q=q[o];q.style.top=parseInt(d.k[k].style.top)-d.qc("top")+"px";q.style.left=parseInt(d.n[o].style.left)-d.qc("left")+"px";q.style.height=parseInt(d.k[k+1].style.top)-parseInt(d.k[k].style.top)+"px";var A=parseInt(d.n[o+1].style.left)-parseInt(d.n[o].style.left);if(v&&(d.Sf||d.Ec))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.qa||d.h&&d.cells.length==2||!d.h&&d.cells.length==1||(A-=16);if(A<0)A=0;q.style.width=A+"px"}function
|
|
1219
|
+
true;I.designer.pb.Uh("column headings")};I.designer.Jf.NA=function(F,H,L){for(var O="",Z=0;Z<d.cells[0].length;Z++){var M=d.cells[0][Z].style[H];if(M==null)M="";if(F.indexOf("color")>=0)M=pui.Ct(M);if(d.cells[0][Z]==q)M=L;if(Z!=0)O+=",";O+=M}I.properties[F]=O;d.setProperty(F,O);I.qb[F]=L!="";I.nd=true;I.designer.od[I.designer.Oa.vb]=true;I.designer.pb.Uh(F)};I.designer.Jf.show(I,q,"grid")}}}else{d.h||Y("onrowdblclick",k+1,null,u,o);d.h&&k!=0&&Y("onrowdblclick",k,null,u,o)}};d.cells[k]||(d.cells[k]=
|
|
1220
|
+
[]);q.row=k;q.col=o;d.cells[k][o]=q;d.designMode&&ya(k,o);return q}function ha(k,o,q,v){pui.modified=true;k.selected=o;if(d.Eb!=null){if(k.selection==null){if(v===true)return;q=k.o?k.o:k.On?k.On+1:q+1;k.selection={type:"grid selection",o:q,N:d.Eb};q=pui.Lb(d.Xa)+"."+pui.L(d.Eb.fieldName)+"."+q;if(pui.O[q]==null){pui.O[q]=[];pui.O[q].push(k.selection)}}k.selection.modified=true;k.selection.value=o?d.Xh:d.Eb.dataType=="indicator"?"0":" ";if(k.selection.S)k.selection.S=k.selection.value}}function La(k){for(var o=
|
|
1221
|
+
0;o<k.length;o++)if(ra(k[o]))return;document.activeElement==document.body&&pui.getActiveContainer().focus()}function ra(k){if(k==null)return false;k=k.firstChild;for(var o=false;k!=null;){if(k.tagName=="INPUT"||k.tagName=="TEXTAREA"||k.tagName=="SELECT"||k.comboBoxWidget!=null||k.l!=null)if(k.style.visibility!="hidden"&&k.style.display!="none"&&k.clientWidth>0){o=true;break}k=k.nextSibling}if(!o)return false;if(k.comboBoxWidget!=null)k=k.comboBoxWidget.getBox();if(k.l!=null)k=k.l.getBox();o=k.tagName;
|
|
1222
|
+
if(o!="INPUT"&&o!="TEXTAREA"&&o!="SELECT")return false;if(o=="SELECT"&&pui.is_firefox)return false;try{k.focus();if(o=="INPUT"||o=="TEXTAREA"){if(k.createTextRange!=null){k.select!=null&&k.select();var q=k.createTextRange();if(q!=null&&q.collapse!=null&&q.select!=null){q.collapse();q.select()}}pui["highlight on focus"]&&k.select()}}catch(v){}return true}function xa(k,o,q,v){var A=v,u=d.I[A];if(u==null)u="";if(u==""&&A.substr(0,7)=="header "){A=A.substr(7);u=d.I[A];if(u==null)u=""}if(!(pui.p(u)||pui.Nb(u))){var I=
|
|
1223
|
+
u.split(",");if(I.length>1){o=v==="header font color"||v==="header background"?k.w:o;u=o<I.length?I[o]:I[0]}if(u==""){if(v.substr(0,7)=="header ")A=v.substr(7);if(d.qf[v]!=null)u=d.qf[v];else if(d.qf[A]!=null)u=d.qf[A]}try{k.style[q]=u}catch(F){}}}function Ba(k,o,q,v){xa(k,v,"fontFamily",o?"header font family":"font family");xa(k,v,"fontSize",o?"header font size":"font size");xa(k,v,"fontStyle",o?"header font style":"font style");xa(k,v,"fontVariant","font variant");xa(k,v,"fontWeight",o?"header font weight":
|
|
1224
|
+
"font weight");xa(k,v,"letterSpacing","letter spacing");xa(k,v,"textAlign",o?"header text align":"text align");xa(k,v,"textDecoration","text decoration");xa(k,v,"textTransform","text transform");xa(k,v,"wordSpacing","word spacing");var A=d.designMode&&d.I["row font color"]!=null&&d.I["row font color"]!=""&&!pui.p(d.I["row font color"]),u=d.designMode&&d.I["row background"]!=null&&d.I["row background"]!=""&&!pui.p(d.I["row background"]);xa(k,v,"color",o?"header font color":A?"row font color":q?"even row font color":
|
|
1225
|
+
"odd row font color");xa(k,v,"backgroundColor",o?"header background":u?"row background":q?"even row background":"odd row background");v="";if(o){o=d.I["header image"];if(o!=null&&o!=""){k.style.backgroundImage="url('"+pui.normalizeURL(o,true)+"')";k.style.backgroundRepeat="repeat-x"}else{k.style.backgroundImage="";k.style.backgroundRepeat=""}v="cell header-cell"}else{k.style.backgroundImage="";k.style.backgroundRepeat="";v="cell";v+=q?" even":" odd"}k.className=v}function ya(k,o){var q=d.cells[k],
|
|
1226
|
+
v=false;if(d.n.length-2==o)v=true;if(k==0&&d.h)v=false;q=q[o];q.style.top=parseInt(d.k[k].style.top)-d.qc("top")+"px";q.style.left=parseInt(d.n[o].style.left)-d.qc("left")+"px";q.style.height=parseInt(d.k[k+1].style.top)-parseInt(d.k[k].style.top)+"px";var A=parseInt(d.n[o+1].style.left)-parseInt(d.n[o].style.left);if(v&&(d.Sf||d.Ec))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.qa||d.h&&d.cells.length==2||!d.h&&d.cells.length==1||(A-=16);if(A<0)A=0;q.style.width=A+"px"}function bb(k,o,
|
|
1226
1227
|
q,v,A,u,I){if(o==null)o=99;if(q==null)q=1;var F=null;if(pui.secLevel>0){F=pui.rd(d.dataProps);d.Qc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var H=d.cells[0],L=0,O=0;O<H.length;O++){var Z=H[O];if(Z.w>=0&&Z.ta!=null){var M=rb(Z.w);d.Qc+="&fltrcol"+String(L)+"="+(Z.w+1+M);d.Qc+=d.St(String(L),Z.ta);F+=d.Qc;L++}}if(pc!=null&&qc!=null){F+="&findcol="+pc;F+="&findval="+encodeURIComponent(qc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Fb!=null)F+="&order="+d.Fb}if(I){if(pui.Qa==
|
|
1227
1228
|
null)pui.Qa={};if(pui.Qa[q]==null)pui.Qa[q]={};if(pui.Qa[q].sql===k&&pui.Qa[q].ty===F&&pui.Qa[q].yl===o&&pui.Qa[q].Cw===u){d.unMask();if(v!=null){v(pui.Qa[q].results,pui.Qa[q].totalRecs,pui.Qa[q].matchRow);return}else return pui.Qa.results}}var S=null;H=Vb("PUI0009102.PGM");if(u)H=pui.mf(u);H=new pui.Ajax(H);H.method="post";H.async=true;if(v==null)H.async=false;if(pui.ba)H.postData="AUTH="+pui.ba;else{H.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")H.postData+="&VID="+pui.vId}if(pui.secLevel>
|
|
1228
1229
|
0){H.postData+="&q="+encodeURIComponent(pui.ad(d.c));L=d.dataProps["order by"];if(d.Fb!=null)L=d.Fb;if(L&&L!="")H.postData+="&order="+L;else if(pb()=="mssql")H.postData+="&order=(select null)";if(F!="")H.postData+="&"+F}else H.postData+="&q="+pui.zb.vf(k);H.postData+="&limit="+o+"&start="+q;if(A!=null&&A==true)H.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)H.postData+="&UTF8=Y";A=d.dataProps["allow any select statement"];if(A!=null&&(A=="true"||A==true))H.postData+="&FetchCounter=Y";
|
|
@@ -1230,77 +1231,77 @@ if(pui.isCloud)H.postData+="&workspace_id="+pui.cloud.ws.id;H.onready=function(R
|
|
|
1230
1231
|
pui.Qa[q].ty=F;pui.Qa[q].matchRow=aa.matchRow}if(v!=null)v(aa.results,aa.totalRecs,aa.matchRow);else S=aa.results;X=true}gd&&pui.xf(gd,X,d.c.id);d.tc=false};d.tc=true;H.send();if(v==null)return S}function Ca(k){var o=-1;if(d.cells!=null&&d.cells[0]!=null)for(var q=0;q<d.cells[0].length;q++)if(d.cells[0][q]!=null&&d.cells[0][q].w==k){o=d.cells[0][q].col;break}return o}function gb(k){for(var o=[],q=0;q<d.aa.length;q++){var v=k[d.aa[q]];v||(v="");o.push(v)}return o}function eb(k,o){function q(O){var Z=
|
|
1231
1232
|
String(O.w+1);if(Z.length>3)Z="000";else for(;Z.length<3;)Z="0"+Z;O=O.ta.substring(0,d.zf);if(O.length<d.zf)O+=" ".repeat(d.zf-O.length);A+=Z;u+=O;I++}var v=d.cells[0];if(!(typeof k.col!="number"||k.col<0||k.col>=v.length)){if(typeof o!="string")o="";var A="",u="",I=0;k.ta=o;o.length>0&&q(k);for(var F=0;F<v.length&&I<d.xe;F++){var H=v[F].w,L=v[F].ta;typeof H=="number"&&H>=0&&H!=k.w&&typeof L=="string"&&L.length>0&&q(v[F])}lb(A,u)}}function lb(k,o){if(k.length<3*d.xe)k+=" ".repeat(3*d.xe-k.length);
|
|
1232
1233
|
d.yg=k+o;pui.bl=d;pui.gc();pui.bl=null}function xb(k){if(k==null||k=="")if(d.yg!=null&&d.yg!="")k=d.yg;else return;var o=d.cells[0];d.yg=k;for(var q=0;q<d.xe;q++){var v=k.substring(q*3,q*3+3);v=parseInt(v,10);var A=q*d.zf+3*d.xe;A=k.substring(A,A+d.zf);A=Ob(A);if(!isNaN(v)&&v>0&&A!=""){v-=1;for(var u=0;u<o.length;u++)if(o[u].w==v){o[u].ta=A;d.rm(o[u]);break}}else break}}function Bb(){for(var k=d.cells.length,o=d.cells[0].length,q=0;q<k;q++)for(var v=0;v<o;v++)d.c.appendChild(d.cells[q][v])}function pb(){var k=
|
|
1233
|
-
pui.getDatabaseConnections();if(k)for(var o=Kb(d.dataProps["database connection"]||""),q=0;q<k.length;q++){var v=k[q];if(o===""&&v["default"]===true||o===v.name)return v.driver}else if(typeof pui.dbDriver!=="undefined")return pui.dbDriver}function rb(k){var o=0;if(d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""){userDefinedDataFields=
|
|
1234
|
-
if(q!=-1)o=q-k}}return o}function
|
|
1234
|
+
pui.getDatabaseConnections();if(k)for(var o=Kb(d.dataProps["database connection"]||""),q=0;q<k.length;q++){var v=k[q];if(o===""&&v["default"]===true||o===v.name)return v.driver}else if(typeof pui.dbDriver!=="undefined")return pui.dbDriver}function rb(k){var o=0;if(d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""){userDefinedDataFields=cb(d.B);if(userDefinedDataFields.length==0)return o;if(d.B[k]&&d.B[k].value&&d.B[k].value.fieldName&&d.saveFieldNames){var q=d.saveFieldNames.indexOf(d.B[k].value.fieldName);
|
|
1235
|
+
if(q!=-1)o=q-k}}return o}function cb(k){for(var o=[],q=0;q<k.length;q++){var v=k[q];for(kb in v)if(kb.substr(0,17)==="user defined data"){var A=v[kb].fieldName;A!=null&&o.push(A.toUpperCase())}}return o}pui.li.call(this);if(pui.designer.bv!=null){this.wg=new pui.designer.bv;this.wg.$w=true}else{this.wg={};this.wg.$w=true;this.wg.Pz=na();this.wg.bB=na();this.wg.ZA=na();this.wg.aB=na()}this.Ji=true;this.B=[];this.xa=false;this.ref={};this.Xa="";this.n=[];this.k=[];this.c=null;this.bd="";this.cells=
|
|
1235
1236
|
[];this.b=null;this.borderColor="";this.borderWidth=null;this.Ur="default";this.fq="row number";this.ms=75;this.la=26;this.db=30;this.h=true;this.Uc=this.sortable=this.Tc=false;this.Fb=null;this.Pb=0;this.Zo=false;if(N=="dspf"||pui.fa)this.Zo=true;this.Sf=true;this.Ec=false;if(N=="dspf"||pui.fa){this.Sf=false;this.Ec=true}this.Jh=100;this.ao=this.bq=0;this.We=this.Ku=false;this.i=new pui.oi;this.visibility="";this.columnHeadings=[];this.ga=[];this.Eq={};this.hB=null;this.I={};this.I["font family"]=
|
|
1236
1237
|
"Verdana";this.I["font size"]="13px";this.I["text align"]="center";this.I["header font color"]="#ffffff";this.I["header background"]="#6699ff";this.I["header image"]="";this.I["header font weight"]="bold";this.I["header font style"]="normal";this.I["row font color"]="";this.I["row background"]="";this.I["odd row font color"]="#555555";if(N=="genie")this.I["odd row font color"]="";this.I["odd row background"]="#efefef";this.I["even row font color"]="#555555";if(N=="genie")this.I["even row font color"]=
|
|
1237
|
-
"";this.I["even row background"]="#fcfcfc";this.I["hover font color"]="#555555";this.I["hover background"]="#dfe8f6";this.I["hover image"]="";this.I["selection font color"]="#ffffff";this.I["selection background"]="#6699cc";this.I["selection image"]="";this.qf={};for(var kb in this.I)this.qf[kb]=this.I[kb];this.dataProps={};this.xj={};this.Do={};this.xo=this.dragging=this.Mf=this.designMode=false;this.px=96;this.
|
|
1238
|
+
"";this.I["even row background"]="#fcfcfc";this.I["hover font color"]="#555555";this.I["hover background"]="#dfe8f6";this.I["hover image"]="";this.I["selection font color"]="#ffffff";this.I["selection background"]="#6699cc";this.I["selection image"]="";this.qf={};for(var kb in this.I)this.qf[kb]=this.I[kb];this.dataProps={};this.xj={};this.Do={};this.xo=this.dragging=this.Mf=this.designMode=false;this.px=96;this.Wy=this.Kz=97;this.zx=99;this.ds=100;this.Vy=701;this.yt=702;this.us=this.totalRecs=this.d=
|
|
1238
1239
|
null;this.eu=this.na=this.Fl=this.Vw=this.Ri=this.Go=this.yf=this.Zk=false;this.Eo=null;this.Oi=this.singleSelection=this.be=this.vo=false;this.Ce=this.Sb=this.De=this.Eb=null;this.Dg=this.Uu=false;this.Xe=this.ag=null;this.Gm="_____puiButtonToggleTreeLevel";this.km=this.hl=this.vl=null;this.Xh="1";this.Wh=null;this.zf=20;this.xe=3;this.Lj=this.Kj=this.Nj=this.Mj=this.yg=null;this.expanded=true;this.ol=this.nl=null;this.pc=1;this.Gu=false;this.Dj=this.Fo=null;this.Mi=[];this.Hg=this.bj=this.Wf=this.Pi=
|
|
1239
|
-
this.$n=this.cj=this.If=null;this.gt=[];this.Jd=null;this.ks=false;this.$o=1;this.ab=new pui.Vm(pui.runtimeContainer,this);this.al=null;this.Y={w:0,col:0,text:""};this.Xl=false;this.Es=Ca;this.qu=false;this.de=this.Rb=null;this.Jv=
|
|
1240
|
-
function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=null)d.d.designMode=true;for(k=0;k<d.n.length;k++)
|
|
1240
|
+
this.$n=this.cj=this.If=null;this.gt=[];this.Jd=null;this.ks=false;this.$o=1;this.ab=new pui.Vm(pui.runtimeContainer,this);this.al=null;this.Y={w:0,col:0,text:""};this.Xl=false;this.Es=Ca;this.qu=false;this.de=this.Rb=null;this.Jv=C;this.Iv=pa;this.Ev=P;this.tc=this.Rt=this.Qt=this.lt=false;var d=this,Xa,hb,ba,fa,qa,Fa,ca,ma,za=1,Ra="solid",Ta=false,ob=false,Sa=false,gc=false,hd=false,Hc,Ic,nc,sb,Qb,Ya,yb=null,jb=null,Mb=null,ae=false,ed=false,be=false,qc,pc,rc,gd=null,Ua=[],Za=null,$a=null;this.Bo=
|
|
1241
|
+
function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=null)d.d.designMode=true;for(k=0;k<d.n.length;k++)Ea(d.n,k,true);for(k=0;k<d.k.length;k++)Ea(d.k,k,false);for(k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)oa(d.cells[k][o]);if(Xa==null){Xa=ea("plus","Add New Row");Xa.onclick=function(){var q=d.c.e;q.designer.ca.start("Add Grid Row");q.designer.ca.add(q,"number of rows");d.jf();d.Kh();d.ac();d.Se()}}if(hb==null){hb=ea("minus","Remove Row");hb.onclick=function(){if(d.cells.length>
|
|
1241
1242
|
(d.h?2:1)){var q=d.c.e;q.designer.ca.start("Remove Grid Row");q.designer.ca.add(q,"number of rows");d.Jj();d.ac();d.Se()}}}if(ba==null){ba=ea("plus","Add New Column");ba.onclick=function(){var q=d.c.e;if(q.properties["number of columns"]>d.Jh)pui.alert("Maximum number of columns reached.");else{q.designer.ca.start("Add Grid Column");q.designer.ca.add(q,"column widths");q.designer.ca.add(q,"number of columns");d.yn();d.Na();d.ac();d.Se()}}}if(fa==null){fa=ea("minus","Remove Column");fa.onclick=function(){var q=
|
|
1242
1243
|
d.n.length-2;if(!(q<1))if(d.Uo(q)){q=d.Xx(q);q!=null&&pui.alert("The column cannot be removed because it contains other elements that must be removed first.\n\nTo remove column elements, go to the Elements tab. Then, search the element list for the ID(s) listed below:\n"+q.join("\n")+"\n\nSelect each element and click the Remove Element icon.")}else{q=d.c.e;q.designer.ca.start("Remove Grid Column");q.designer.ca.add(q,"column widths");q.designer.ca.add(q,"number of columns");q.designer.ca.add(q,"column headings");
|
|
1243
|
-
d.Sp();d.ac();d.Se()}}}if(
|
|
1244
|
+
d.Sp();d.ac();d.Se()}}}if(qa==null)qa=c("nw");if(Fa==null)Fa=c("ne");if(ca==null)ca=c("sw");if(ma==null)ma=c("se");d.c.aA=function(){if(d.designMode){if(qa!=null)qa.style.visibility="";if(Fa!=null)Fa.style.visibility="";if(ca!=null)ca.style.visibility="";if(ma!=null)ma.style.visibility=""}};d.c.js=function(){if(qa!=null)qa.style.visibility="hidden";if(Fa!=null)Fa.style.visibility="hidden";if(ca!=null)ca.style.visibility="hidden";if(ma!=null)ma.style.visibility="hidden"};d.clearData();d.visibility==
|
|
1244
1245
|
"hidden"&&d.Mc(function(q){q.style.visibility=""});if(N=="genie"&&d.Jd!=null)if(k=Ab(d.Jd)){k.style.visibility="";k.style.display=""}P();d.setScrollBar();d.i.dw(oa);d.ic()};this.ac=function(k){var o;if(!k)if(d.designMode&&Hb.Ih)return;if(d.qd){o=d.c.parentNode;if(o.getAttribute("container")=="true"){k=o.offsetHeight;var q=o.offsetWidth;if(k===0&&q===0&&o.parentNode&&o.parentNode.classList.contains("pui-tablayout-body")){k=o.parentNode.offsetHeight-2;q=o.parentNode.offsetWidth-2}var v=d.Cf().split(","),
|
|
1245
1246
|
A=0;for(o=0;o<v.length;o++){var u=v[o];u=Number(u);v[o]=u;A+=u}q=(q-A)/v.length;q=parseInt(q);for(o=0;o<v.length;o++)v[o]+=q;d.Yf(v);if(d.h)k-=d.db;if(d.i)k-=d.i.getHeight();k=k/d.la;if(d.h)k+=1;k=parseInt(k);if(k<1)k=1;d.vo=true;d.setNumberOfRows(k);d.vo=false;var I=parseInt(d.c.style.left),F=parseInt(d.c.style.top);d.Mc(function(H){H.style.left=parseInt(H.style.left)-I+"px";H.style.top=parseInt(H.style.top)-F+"px"});d.setScrollBar();d.jc()}}};this.it=function(){if(d.pc<=1)return false;var k=d.nl;
|
|
1246
1247
|
if(d.ol==true)k=false;if(d.nl==null&&d.ol==false)k=true;if(k==null)k=false;return k};this.Vu=function(k){var o=d.cells.length;if(d.h)o-=1;if(d.it())o*=d.pc;d.j=parseInt((k-1)/o)*o+1};this.Kx=function(){if(d.ag===null)return false;var k=d.Su;if(k===undefined)k=false;return k};this.collapse=function(k){if(d.expanded)if(!(d.pc<=1)){if(d.Ua!=null)d.Ua.style.display="none";d.expanded=false;var o=d.cells.length;if(d.h)o-=1;o*=d.pc-1;if(!d.We){d.setProperty("row height",parseInt(d.la/d.pc));for(var q=0;q<
|
|
1247
1248
|
o;q++)d.jf();d.Na();d.wd();d.getData();for(o=0;o<d.cells.length;o++)for(q=0;q<d.cells[o].length;q++){var v=d.cells[o][q],A=v.firstChild,u=parseInt(v.style.height);if(!isNaN(u)){for(;A!=null;){var I=parseInt(A.style.top);if(isNaN(I))I=0;if(I>u&&(A.tagName=="INPUT"||A.tagName=="SELECT"||A.tagName=="TEXTAREA")&&!A.disabled){A.Op=true;A.disabled=true}A=A.nextSibling}v.scrollTop=0}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/expandall.gif");k.title=pui.getLanguageText("runtimeText",
|
|
1248
1249
|
"expandAll")}}};this.expand=function(k){var o;if(!d.expanded)if(!(d.pc<=1)){if(d.Ua!=null)d.Ua.style.display="none";d.expanded=true;var q=d.cells.length;if(d.h)q-=1;q=parseInt(q/d.pc);q*=d.pc-1;if(!d.We){d.setProperty("row height",d.la*d.pc);for(o=0;o<q;o++)d.Jj();d.Na();d.wd();d.getData();for(o=0;o<d.B.length;o++)if(q=d.B[o].domEls)for(var v in q)if(!isNaN(parseInt(v,10))){var A=q[v];if(A.Op){A.Op=false;A.disabled=false}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");
|
|
1249
|
-
k.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(k){d.expanded?d.collapse(k):d.expand(k)};this.kB=na();this.rowZoom=function(k){if(!(N!="dspf"&&!pui.fa)){if(typeof k=="number"){k=k-d.j;d.h&&k++;k=d.cells[k];if(k==null)return}if(d.Ua==null){d.Ua=document.createElement("div");d.Ua.style.height=d.la*d.pc+"px";d.Ua.style.zIndex=d.
|
|
1250
|
+
k.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(k){d.expanded?d.collapse(k):d.expand(k)};this.kB=na();this.rowZoom=function(k){if(!(N!="dspf"&&!pui.fa)){if(typeof k=="number"){k=k-d.j;d.h&&k++;k=d.cells[k];if(k==null)return}if(d.Ua==null){d.Ua=document.createElement("div");d.Ua.style.height=d.la*d.pc+"px";d.Ua.style.zIndex=d.Vy;d.Ua.style.left=parseInt(d.c.style.left)+"px";d.Ua.onclick=function(){d.Ua.style.display="none"};d.Ua.onmouseout=function(I){I=I?I.relatedTarget:
|
|
1250
1251
|
event.toElement;try{if(I!=null&&I.parentNode!=null){if(I.parentNode==d.Ua)return;if(I.parentNode.parentNode==d.Ua)return}}catch(F){}d.Ua.style.display="none"};d.c.parentNode.appendChild(d.Ua)}var o=parseInt(d.c.style.width);if(d.Ec||d.Sf)o-=21;d.Ua.style.width=o+"px";d.Ua.innerHTML="";d.Ua.className=d.c.className;d.Ua.classList.add("zoomrow");d.Ua.style.top=parseInt(d.c.style.top)+parseInt(k[0].style.top)-parseInt(d.la*(d.pc-1)/2)+"px";for(o=0;o<k.length;o++){var q=k[o].cloneNode(true);q.style.top=
|
|
1251
1252
|
"0px";q.style.height=parseInt(d.Ua.style.height)+2+"px";if(!pui.qa)q.style.cursor="pointer";for(var v=0;v<q.childNodes.length;v++){var A=q.childNodes[v];if(A.getAttribute("isZoomIcon")=="true")A.style.display="none";if(A.tagName=="INPUT"){var u=A.className;if(u==null)u=null;u+=" PR";A.className=Kb(u);A.readOnly=true}if(A.tagName=="SELECT")A.disabled=true}d.Ua.appendChild(q)}d.Ua.style.display=""}};this.exportXLSX=function(k){return d.exportCSV(k,true)};this.exportCSV=function(k,o){var q,v,A,u,I,F,
|
|
1252
1253
|
H,L,O,Z;if(!d.i.ii&&(pui["csv exports xlsx"]===true||pui["csv exports xlsx"]==="true"))o=true;var M;if(typeof pui["csv separator"]=="string")M=pui["csv separator"];else{M=",";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))M=";"}var S='"';if(typeof pui["csv string delimiter"]=="string")S=pui["csv string delimiter"];if(!d.designMode){if(k==null)k=d.us;if(k==null||k=="")k=d.c.id;if(d.ea()&&d.xa==false)o?d.Tw(k):d.getData(k);else if(N=="genie"&&!pui.fa)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
|
|
1253
|
-
else{k=encodeURIComponent(k);var R=[],aa=[],X=[],ia=[],
|
|
1254
|
-
wa["radio button group"];if(wa["field type"]=="html container")H=wa.html;if(wa["field type"]=="image"&&o)H=wa["image source"];if(wa["field type"]=="hyperlink"){var
|
|
1255
|
-
"indicator"&&H.dataType!="expression"){A=pui.L(H.fieldName);u=0;for(L=d.aa.length;u<L;u++)if(A==d.aa[u]){
|
|
1256
|
-
width:wa.domEls[u].offsetWidth};break}}else if(wa["field type"]=="hyperlink")if(ja[q].value==null)ja[q].vB=true;break}}}}}if(d.na&&!d.yf){Z=[];I=[];F=function(Va){return Va.columnId==v};q=0;for(O=
|
|
1257
|
-
Qa.Yf(Pa);Pa=new pui.Hq;for(F=Oa=0;F<R.length;F++)if(R[F]>-1){lc(Qa,
|
|
1258
|
-
0)A.empty=true;else for(u=0;u<d.aa.length;u++)A[d.aa[u]]=wa[u];o&&kc(Qa);u=Z=0;for(L=R.length;u<L;u++){H=R[u];if(H>-1){H=wa[H];if(ja[u]!=null&&ja[u].value!=null)H=ja[u].value;if(X[u]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.rh(H);if(!o&&aa[u]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}
|
|
1259
|
-
"Date"||
|
|
1260
|
-
S;if(o){if(typeof Ma[u]=="object"&&Ma[u]!=null){q=true;mc(Qa,"",Z);typeof
|
|
1254
|
+
else{k=encodeURIComponent(k);var R=[],aa=[],X=[],ia=[],va=[],Ma=[],ja=[],sa=[],Ja=[];B();O=d.n.length-1;if(d.na&&!d.yf)O=d.ga.length;for(F=0;F<O;F++){R.push(-1);aa.push(false);X.push(false);ia.push(false);va.push(false);Ma.push(false);ja.push(false);sa.push(-1);Ja.push(null)}var Oa=0;F=0;for(O=d.B.length;F<O;F++){var wa=d.B[F];if(wa.visibility!="hidden"){q=Number(wa.column);if(!isNaN(q)&&q>=0&&q<R.length&&R[q]==-1){Ja[q]=wa;if(pui.p(wa.visibility))ia[q]=wa.visibility;H=wa.value;if(wa["radio button group"])H=
|
|
1255
|
+
wa["radio button group"];if(wa["field type"]=="html container")H=wa.html;if(wa["field type"]=="image"&&o)H=wa["image source"];if(wa["field type"]=="hyperlink"){var Ha=wa["hyperlink reference"];ja[q]={};if(pui.p(Ha)&&Ha.dataType!="indicator"&&Ha.dataType!="expression"){A=pui.L(Ha.fieldName);u=0;for(L=d.aa.length;u<L;u++)if(A==d.aa[u]){ja[q].st=u;break}if(!pui.p(H)||H.dataType=="indicator"||H.dataType=="expression"){ja[q].value=H;H=Ha}}else if(Ha!=null&&Ha.length>0)ja[q].link=Ha}if(pui.p(H)&&H.dataType!=
|
|
1256
|
+
"indicator"&&H.dataType!="expression"){A=pui.L(H.fieldName);u=0;for(L=d.aa.length;u<L;u++)if(A==d.aa[u]){sa[q]=wa.columnId;R[q]=u;Oa++;if(H.formatting=="Number")aa[q]=true;va[q]=H;if(H.dataType=="graphic")X[q]=true;if(o)if(wa["field type"]=="image"){Ma[q]={left:2,top:2,height:16,width:16};if(wa.domEls!=null&&wa.domEls.length>0)for(u=0;u<wa.domEls.length;u++)if(wa.domEls[u]&&wa.domEls[u].offsetWidth>0&&wa.domEls[u].offsetHeight>0){Ma[q]={left:wa.domEls[u].offsetLeft,top:wa.domEls[u].offsetTop,height:wa.domEls[u].offsetHeight,
|
|
1257
|
+
width:wa.domEls[u].offsetWidth};break}}else if(wa["field type"]=="hyperlink")if(ja[q].value==null)ja[q].vB=true;break}}}}}if(d.na&&!d.yf){Z=[];I=[];F=function(Va){return Va.columnId==v};q=0;for(O=sa.length;q<O;q++){v=sa[q];u="";L=100;if(v>=0)if(wa=d.ga.find(F)){u=wa.blankHeader?"":wa.name;L=pui.ae(wa.orginalWidth)}I[q]=u;Z[q]=L}}sa="";var Qa,Jb,Pa;q=false;if(o){Qa=new pui.Om(Oa);Jb=new pui.Nm(Qa);Qa.mo=d.la;Pa=[];if(!d.na||d.yf)Z=d.Cf().split(",");for(F=0;F<R.length&&F<Z.length;F++)R[F]>-1&&Pa.push(Number(Z[F]));
|
|
1258
|
+
Qa.Yf(Pa);Pa=new pui.Hq;for(F=Oa=0;F<R.length;F++)if(R[F]>-1){lc(Qa,va[F],Oa);Oa++}}Z=0;if(d.h&&d.Zk){o&&kc(Qa);for(F=0;F<R.length;F++){H=R[F];if(H>-1){u="";u=d.na&&!d.yf?I[F]:Lc(d.cells[0][F]);u=u.replace(/<br>/g," ");o&&mc(Qa,Ob(u),Z++);u=u.replace(/"/g,'""');u=u.replace("\n","");u=u.replace("\r","");if(sa!="")sa+=M;sa+=S+u+S}}if(o)Qa.Dh=d.db}sa="\ufeff"+sa;I=d.dataArray;if(d.isFiltered())I=d.X;F=0;for(O=I.length;F<O;F++){Oa="";wa=I[F];if(!(wa.sc!=null&&wa.sc==true)){A={};if(wa==null||wa.length==
|
|
1259
|
+
0)A.empty=true;else for(u=0;u<d.aa.length;u++)A[d.aa[u]]=wa[u];o&&kc(Qa);u=Z=0;for(L=R.length;u<L;u++){H=R[u];if(H>-1){H=wa[H];if(ja[u]!=null&&ja[u].value!=null)H=ja[u].value;if(X[u]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.rh(H);if(!o&&aa[u]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}Ha=va[u];if(typeof Ha==="object"&&Ha!==null){var db=Ha.formatting;if(db===
|
|
1260
|
+
"Date"||db==="Time"||db==="Time Stamp")H=pui.R(Ha,A,d.ref)}if(ia[u]!==false)if(pui.R(ia[u],A,d.ref)=="hidden")H="";if(typeof pui["process export value"]==="function"){Ha=pui["process export value"]({value:H,"bound value formatting":Ha,"item properties":Ja[u],"grid properties":d.c.pui.properties,"record number":F+1});if(Ha!=null)H=Ha}Ha=H;if(typeof Ha==="string"&&Ha.length>0)try{Ha=Ha.replace(/[^\x20-\x7E]/g," ")}catch(Cb){}if(typeof H==="string")H=H.replace(/"/g,'""');if(Oa!="")Oa+=M;Oa+=S+Ob(H)+
|
|
1261
|
+
S;if(o){if(typeof Ma[u]=="object"&&Ma[u]!=null){q=true;mc(Qa,"",Z);typeof Ha==="string"&&Ha.length>0&&xc(Pa,Qa.td,Z,Ha,Ma[u])}else{H=null;if(typeof ja[u]=="object"&&ja[u]!=null)if(ja[u].link!=null)H=ja[u].link;else if(ja[u].st!=null)H=wa[ja[u].st];mc(Qa,Ob(Ha),Z,H)}Z++}}}if(sa!="")sa+="\n";sa+=Oa}}if(o){if(q&&d.i.av){Qa.Xu=true;Jb.Zc=Pa;Jb.Oc=d.i;Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.nq()}ec(Jb,k)}else pui.Xk("text/csv",k+".csv",sa)}}};this.Tw=function(k){function o(F){var H=
|
|
1261
1262
|
new XMLHttpRequest;H.open("POST",A,true);H.setRequestHeader("Content-type","application/x-www-form-urlencoded");var L={data:{}};L.append=function(S,R){L.data[S]=encodeURIComponent(R)};L.get=function(){var S="",R="";for(var aa in L.data){S+=R+aa+"="+L.data[aa];R="&"}return S};if(pui.ba)L.append("AUTH",pui.ba);else{L.append("AUTH",pui.appJob.auth);typeof pui.vId!=="undefined"&&L.append("VID",pui.vId)}L.append("q",encodeURIComponent(pui.ad(d.c)));pui.rd(d.dataProps,null,L);L.append("limit",v);L.append("start",
|
|
1262
1263
|
"1");typeof d.Qc==="string"&&d.Qc.length>0&&d.Qc.substring(1).split("&").forEach(function(S){S=S.split("=");L.append(S[0],decodeURIComponent(S[1]))});pui["read db driven data as ebcdic"]!==true&&L.append("UTF8","Y");var O=d.dataProps["order by"];if(d.Fb!=null)O=d.Fb;if(O&&O!="")L.append("order",O);else pb()=="mssql"&&L.append("order","(select null)");O=d.dataProps["allow any select statement"];if(O!=null&&(O=="true"||O==true))L.append("FetchCounter","Y");pui.isCloud&&L.append("workspace_id",pui.cloud.ws.id);
|
|
1263
1264
|
Vd(d.i,"cancel","cancel");Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.nq(pui.getLanguageText("runtimeMsg","cancelled"),function(){H.abort();d.unMask()});H.onreadystatechange=function(){if(!(H.readyState!=4||H.status==0))try{if(H.status!=200)throw Error("XMLHTTPRequest status: "+H.status);var S=eval("("+H.responseText+")");if(!S)throw Error("Failed");if(S.success!=true){if(S.errorText)throw Error("Failed: "+S.errorText);throw Error("Failed");}var R=S.response;if(R==null||
|
|
1264
1265
|
R.results==null)throw Error("Invalid Response");if(d.dataProps["data transform function"])try{R=eval("window."+d.dataProps["data transform function"])(H.responseText)}catch(aa){pui.pp(aa)}if(F!=null)R.fields=F;if(R.results.length>0)q(R);else{Vd(d.i,"","");Wd(d.i,pui.getLanguageText("runtimeMsg","no data"));d.i.nq();Xd(d.i)}d.unMask()}catch(X){S=pui.getLanguageText("runtimeText","excel export text");console.warn(S,X);pui.alert(S+":\n"+X.toString());d.unMask();d.i.z()}};var Z=0,M=0;H.addEventListener("progress",
|
|
1265
1266
|
function(S){var R=pui.Ho(S.loaded,1),aa=S.timeStamp-Z;if(Z==0)Z=S.timeStamp;else if(aa>0){var X=S.loaded/aa*1E3;aa=Math.round(aa/1E3);R+=" ("+pui.Ho(X,0)+"/s; "+aa+"s)";if(S.timeStamp-M<250)return}Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",[R]));M=S.timeStamp});H.send(L.get());d.mask();d.Mb()}function q(F){function H(ja){return ja.field==L}var L,O,Z,M,S,R=[];if((d.Fl||d.na)&&Array.isArray(d.ga)&&d.ga.length>0){var aa=d.ga.filter(function(ja){return ja.showing||d.yf!=true});aa.sort(function(ja,
|
|
1266
|
-
|
|
1267
|
-
0&&R.length<O)O=R.length;var X=new pui.Om(O);aa=new pui.Nm(X);aa.Oc=d.i;F.fields!=null&&R.forEach(function(ja,
|
|
1268
|
-
if(d.yf)d.cells[0][O]!==undefined&&mc(X,Z,O);else mc(X,Z,O)}X.Dh=d.db}S=0;for(M=F.results.length;S<M;S++){kc(X);Z=F.results[S];for(var ia=O=0,
|
|
1267
|
+
sa){var Ja=ja.currentColumn;if(Ja<0)Ja=999+ja.columnId;var Oa=sa.currentColumn;if(Oa<0)Oa=999+sa.columnId;return Ja-Oa});O=0;for(S=aa.length;O<S;O++){M=aa[O];if(M.field)R.push({fieldName:M.field,name:M.blankHeader?"":M.name});else if(!M.field){M.field=d.B[O].value.fieldName;R.push({fieldName:M.field,name:M.blankHeader?"":M.name})}}}else for(L in F.results[0])R.push({fieldName:L,hA:L});O=0;if(F.colWidths!=null){O=F.colWidths.length;aa=cb(d.B);O-=aa.length}else O=Object.keys(F.results[0]).length;if(R.length>
|
|
1268
|
+
0&&R.length<O)O=R.length;var X=new pui.Om(O);aa=new pui.Nm(X);aa.Oc=d.i;F.fields!=null&&R.forEach(function(ja,sa){L=ja.fieldName;var Ja=F.fields.find(H);lc(X,Ja?{dataType:Ja.type,decPos:Ja.decPos}:{dataType:"char"},sa)});if(d.h&&d.Zk){O=0;kc(X);if(d.na){if(Array.isArray(d.ga)&&d.ga.length>0)for(S=R.length;O<S&&(M=R[O]);O++){L=M.fieldName;Z=(Z=d.ga.find(H))?Z.name:"";mc(X,Z,O)}}else if(d.cells[0]instanceof Array&&d.cells[0].length>0)for(M=R.length;O<M;O++){Z=d.cells[0][O]?Ob(Lc(d.cells[0][O])):"";
|
|
1269
|
+
if(d.yf)d.cells[0][O]!==undefined&&mc(X,Z,O);else mc(X,Z,O)}X.Dh=d.db}S=0;for(M=F.results.length;S<M;S++){kc(X);Z=F.results[S];for(var ia=O=0,va=R.length;ia<va;ia++){L=R[ia];if(L!=null){var Ma=Z[L.fieldName];if(Ma==null&&L.fieldName)Ma=Z[L.fieldName.toUpperCase()];if(d.yf)d.cells[0][O]!==undefined&&mc(X,Ma,O,null,F.fields==null);else mc(X,Ma,O,null,F.fields==null);O++}}}ec(aa,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");else{var v=d.totalRecs;if(v==null)v=9999;
|
|
1269
1270
|
var A=Vb("PUI0009102.PGM"),u=d.dataProps["data url"];if(u=="")u=null;if(u){A=pui.mf(u);if(typeof pui.vId!=="undefined")A+="&VID="+pui.vId;o()}else if(d.dataProps["database file"]&&d.dataProps["database file"].length>0){u="";var I=d.dataProps["database file"].split("/");if(I.length>1){u=I[0];I=I[1]}else I=I[0];ac({url:Vb("PUI0009101.pgm"),method:"post",params:{context:"genie",file:I,library:u,AUTH:pui.ba?pui.ba:pui.appJob.auth,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:"",q:encodeURIComponent(pui.ad(d.c))},
|
|
1270
1271
|
async:true,handler:function(F){var H=null;if(F!=null&&F.fields!=null)H=F.fields;o(H)},suppressAlert:true,onfail:function(){console.log("Failed to fetch column data types for formatting. All cells in the XLSX file will contain character data.");o()}});d.mask();d.Mb()}else o()}};this.Uo=function(k){if(N=="genie"&&!pui.fa)return false;var o=k,q=k;if(k==null){o=0;q=d.n.length-2}k=0;if(d.h)k=1;if(q<0)return false;for(o=o;o<=q;o++)for(var v=d.cells[k][o].firstChild;v!=null;){if(v.style.position=="absolute"&&
|
|
1271
|
-
!v.hp)return true;v=v.nextSibling}return false};this.Xx=function(k){var o=[],q=k,v=k;if(k==null){q=0;v=d.n.length-2}k=0;if(d.h)k=1;for(q=q;q<=v;q++)for(var A=d.cells[k][q],u=0;u<A.children.length;u++){var I=A.children[u].id;if(!(I==""||I==null)){I=" "+I;o.push(I)}}return o};this.bx=function(){for(var k=[],o=d.c.e.designer.items,q=0;q<o.length;q++){var v=o[q];v.
|
|
1272
|
-
F==null||u==null))for(var H=1;H<3;H++){var L=I["icon"+H+" class"],O=I.parentNode.getElementsByClassName(L)[0];if(O&&L!==null){var Z=document.createElement("div");Z.style.top=O.style.top;Z.style.left=O.style.left;Z.style.cursor="default";Z.className=L;F.appendChild(Z)}}}if(!(N=="genie"&&!pui.fa))if(d.designMode){var q,v,A=document.createElement("span");if(d.h){v=d.cells[1][k];q=2}else{v=d.cells[0][k];q=1}for(v=v.firstChild;v!=null;){if(v.style.position=="absolute"&&!v.hp&&!v.
|
|
1273
|
-
u.id="";u.
|
|
1272
|
+
!v.hp)return true;v=v.nextSibling}return false};this.Xx=function(k){var o=[],q=k,v=k;if(k==null){q=0;v=d.n.length-2}k=0;if(d.h)k=1;for(q=q;q<=v;q++)for(var A=d.cells[k][q],u=0;u<A.children.length;u++){var I=A.children[u].id;if(!(I==""||I==null)){I=" "+I;o.push(I)}}return o};this.bx=function(){for(var k=[],o=d.c.e.designer.items,q=0;q<o.length;q++){var v=o[q];v.tA()==d&&k.push(v)}return k};this.Oo=function(){var k=d.k.length-1;if(d.h)k-=1;return k};this.Kg=function(k){function o(I,F){if(!(I==null||
|
|
1273
|
+
F==null||u==null))for(var H=1;H<3;H++){var L=I["icon"+H+" class"],O=I.parentNode.getElementsByClassName(L)[0];if(O&&L!==null){var Z=document.createElement("div");Z.style.top=O.style.top;Z.style.left=O.style.left;Z.style.cursor="default";Z.className=L;F.appendChild(Z)}}}if(!(N=="genie"&&!pui.fa))if(d.designMode){var q,v,A=document.createElement("span");if(d.h){v=d.cells[1][k];q=2}else{v=d.cells[0][k];q=1}for(v=v.firstChild;v!=null;){if(v.style.position=="absolute"&&!v.hp&&!v.FA&&!v.HA){var u=v.cloneNode(true);
|
|
1274
|
+
u.id="";u.Fy!=null&&u.Fy(u);A.appendChild(u);o(v,A)}v=v.nextSibling}for(q=q;q<d.cells.length;q++){d.cells[q][k].innerHTML="";d.cells[q][k].appendChild(A.cloneNode(true))}}};this.Kh=function(){if(!(N=="genie"&&!pui.fa))for(var k=d.n.length-1,o=0;o<k;o++)d.Kg(o)};this.getCellValue=function(k,o){var q=k,v=1;if(N=="dspf"||d.ea()||pui.fa)v=d.j;q-=v;d.h&&q++;q=d.cells[q];if(q==null)return null;q=q[Ca(o)];if(q==null)return null;return Lc(q)};this.getDataValue=function(k,o){if(typeof k!="number")return null;
|
|
1274
1275
|
if(typeof o!="string")return null;var q=b(k,false);if(q==null)return null;o=pui.L(o);if(o.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))o=pui.Ie[o];var v=pui.Lb(d.Xa)+"."+o;if(pui.handler!=null)v=o;v+="."+k;v=pui.O[v];if(v!=null&&v.length==1){v=v[0];if(v!=null)return v.tagName?Sc(v):typeof v.S!="undefined"?v.S:v.value}v=a(o);if(v==null&&o.length<=10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null)){o=pui.Ie[o];v=a(o);return v!=null?q[v]:null}else return q[v]};
|
|
1275
|
-
this.getAllDataValues=function(k){if(d.aa.length<1)return null;
|
|
1276
|
+
this.getAllDataValues=function(k){if(d.aa.length<1)return null;B();var o=d.dataArray;if((k!=null&&!k?false:true)&&d.isFiltered())o=d.X;k=[];for(var q=0;q<o.length;q++){for(var v={},A=0;A<d.aa.length;A++){var u=d.aa[A];if(pui.Ie[u])u=pui.Ie[u];v[u]=o[q][A]}k.push(v)}return k};this.setDataValue=function(k,o,q){var v;o=pui.L(o);if(o.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))o=pui.Ie[o];var A=b(k,false);if(A!=null){var u=a(o);if(u!=null){A[u]=q;if(d.be&&d.Eb&&d.Eb.fieldName&&
|
|
1276
1277
|
o==pui.L(d.Eb.fieldName)){var I=(u=q==d.Xh)?d.Xh:d.Eb.dataType=="indicator"?"0":" ";if(A.selected!=u){A.selected=u;pui.modified=true;if(A.selection){A.selection.modified=true;A.selection.value=I}else{v=pui.Lb(d.Xa)+"."+o+"."+k;if(pui.O[v]==null){A.selection={S:String(q),modified:true,type:"grid selection",value:I,o:k,N:d.Eb,nj:true};pui.O[v]=[A.selection]}if(pui.O[v][0]!=null&&pui.O[v][0].nj)pui.O[v][0].S=String(q)}}if(u)d.Wh=k}}}I=I=v=null;A=[];for(u=0;u<d.B.length;u++){v=d.B[u];for(var F in v){I=
|
|
1277
1278
|
v[F];if(pui.p(I)&&pui.L(I.fieldName)===o){I=Object.assign({},I);I.value=q;A.push({field:v,property:F,N:I})}}}if(A.length===0)return false;for(F=0;F<A.length;F++){var H=A[F];v=H.field;I=H.property;var L=v.domEls[k-1];if(L==null){H=null;for(u in v.domEls){H=v.domEls[u];break}if(H&&pui.jt(I,H)&&d.ea()==false){v=pui.Lb(d.Xa)+"."+o+"."+k;if(pui.O[v]==null)pui.O[v]=[{S:String(q),nj:true}];if(pui.O[v][0]!=null&&pui.O[v][0].nj)pui.O[v][0].S=String(q)}}else{H.N.__pui_skipdecode=true;I==="value"?Uc(L,pui.vc.format(H.N)):
|
|
1278
|
-
applyProperty(L,I,pui.vc.format(H.N))}}return true};this.Jb=function(){return d.j>1?false:true};this.Dp=function(){if(Y("onpageup")!=false)if(pui.fa&&d.Jb()||!pui.fa&&N=="genie")Ub("pageup");else{d.mask();d.Mb();var k=d.cells.length;if(d.h)k-=1;d.j-=k;if(d.j<1)d.j=1;if(d.Ec){d.d.xd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.qa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Td=="undefined"||pui.r.Td==false){var o=0;d.h&&o++;var q=d.cells[o];setTimeout(function(){
|
|
1279
|
+
applyProperty(L,I,pui.vc.format(H.N))}}return true};this.Jb=function(){return d.j>1?false:true};this.Dp=function(){if(Y("onpageup")!=false)if(pui.fa&&d.Jb()||!pui.fa&&N=="genie")Ub("pageup");else{d.mask();d.Mb();var k=d.cells.length;if(d.h)k-=1;d.j-=k;if(d.j<1)d.j=1;if(d.Ec){d.d.xd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.qa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Td=="undefined"||pui.r.Td==false){var o=0;d.h&&o++;var q=d.cells[o];setTimeout(function(){La(q)},
|
|
1279
1280
|
100)}},1)}};this.Yb=function(){var k=d.cells.length;if(d.h)k-=1;k=d.j+k-1;if(d.ea()&&d.dataProps["load all rows"]!="true")return d.totalRecs<=k;else{var o=d.dataArray;if(d.isFiltered())o=d.X;return o.length<=k}};this.Bp=function(){if(Y("onpagedown")!=false)if(pui.fa&&d.Yb()||!pui.fa&&N=="genie")Ub("pagedown");else{d.mask();d.Mb();var k=d.cells.length;if(d.h)k-=1;d.j+=k;k=d.j+k-1;if(d.ea()&&d.xa!=true){if(d.totalRecs<k&&d.d!=null){d.j=d.j-k+d.totalRecs;if(d.j<1)d.j=1}}else{var o=d.dataArray;if(d.isFiltered())o=
|
|
1280
|
-
d.X;if(o.length<k&&d.d!=null){d.j=d.j-k+o.length;if(d.j<1)d.j=1}}if(d.Ec){d.d.xd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.qa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Td=="undefined"||pui.r.Td==false){var q=0;d.h&&q++;var v=d.cells[q];setTimeout(function(){
|
|
1281
|
-
d.c;if(k.style.visibility!="hidden")if(d.c.parentNode!=null){var o=parseInt(k.style.left),q=parseInt(k.style.top),v=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(yb==null)yb=document.createElement("div");yb.style.display="block";if(d.h){q+=d.db;k-=d.db}yb.style.left=o+"px";yb.style.top=q+"px";yb.style.width=v+"px";yb.style.height=k+"px";yb.className="pui-grid-loading";d.c.parentNode.appendChild(yb);d.
|
|
1282
|
-
null){var o=parseInt(k.style.left),q=parseInt(k.style.top),v=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(jb==null)jb=document.createElement("div");jb.style.display="block";if(d.h){q+=d.db;k-=d.db}jb.style.position="absolute";jb.style.left=o+"px";jb.style.top=q+"px";jb.style.width=v+"px";jb.style.height=k+"px";jb.className="grid-mask";d.c.parentNode.appendChild(jb)}}};this.
|
|
1283
|
-
null){var k=parseInt(yb.style.width)-2,o=parseInt(yb.style.height)-5;if(Mb==null)Mb=document.createElement("div");Mb.style.display="block";if(d.h)o-=d.db;if(o>100){o=100;if(k<100)o=k-5}if(o<35)o=35;Mb.style.width=o+"px";Mb.style.height=o+"px";Mb.className="pui-animation pui-grid-animation";yb.appendChild(Mb)}};this.getData=function(k){function o(ja,
|
|
1284
|
-
"true"&&s(false);if(ja.length>=1){for(Oa in ja[0])d.aa.push(pui.L(Oa));d.saveFieldNames=d.aa;for(
|
|
1285
|
-
true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ja=d.cells[0];for(
|
|
1286
|
-
false}}function q(ja,
|
|
1287
|
-
Cb.length;if(d.na&&d.ga.length)Va=d.ga.length;if(
|
|
1288
|
-
|
|
1289
|
-
parseInt((d.j+ja*2-2)/ja)+d.$o-1;d.i.z()}d.Ji=false}}function v(){var ja=null;if(d.Dg&&d.ag!==null){if(d.Sb)if(d.Sb.length<1&&d.qd)d.Sb=null;if(d.Sb==null){d.Sb=[];for(ja=0;ja<d.dataArray.length;ja++){var
|
|
1290
|
-
d.c.id;ja={id:ja+d.Gm,"field type":"graphic button",left:"10px",top:"0px","css class":"pui-button-tree-level","icon position":"left",onclick:'myFunction = function (event, elem) {\n getObj("'+ja+'").grid.toggleTreeLevel(rrn);\n}\n\n',grid:ja,visibility:"visible"};ja.columnId=d.Xe;ja.column=ja.columnId.toString()}return ja}function A(ja){var
|
|
1291
|
-
d.Sb[
|
|
1281
|
+
d.X;if(o.length<k&&d.d!=null){d.j=d.j-k+o.length;if(d.j<1)d.j=1}}if(d.Ec){d.d.xd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.qa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Td=="undefined"||pui.r.Td==false){var q=0;d.h&&q++;var v=d.cells[q];setTimeout(function(){La(v)},100)}},1)}};this.getRecNum=function(){return d.j};this.unMask=function(){if(yb!=null)yb.style.display="none";if(Mb!=null)Mb.style.display="none";if(jb!=null)jb.style.display="none"};this.Mb=function(){if(!d.designMode){var k=
|
|
1282
|
+
d.c;if(k.style.visibility!="hidden")if(d.c.parentNode!=null){var o=parseInt(k.style.left),q=parseInt(k.style.top),v=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(yb==null)yb=document.createElement("div");yb.style.display="block";if(d.h){q+=d.db;k-=d.db}yb.style.left=o+"px";yb.style.top=q+"px";yb.style.width=v+"px";yb.style.height=k+"px";yb.className="pui-grid-loading";d.c.parentNode.appendChild(yb);d.oz()}}};this.mask=function(){if(!d.designMode){var k=d.c;if(k.style.visibility!="hidden")if(d.c.parentNode!=
|
|
1283
|
+
null){var o=parseInt(k.style.left),q=parseInt(k.style.top),v=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(jb==null)jb=document.createElement("div");jb.style.display="block";if(d.h){q+=d.db;k-=d.db}jb.style.position="absolute";jb.style.left=o+"px";jb.style.top=q+"px";jb.style.width=v+"px";jb.style.height=k+"px";jb.className="grid-mask";d.c.parentNode.appendChild(jb)}}};this.oz=function(){if(!(d.designMode||jb==null||jb.style.display=="none"))if(d.c.style.visibility!="hidden")if(d.c.parentNode!=
|
|
1284
|
+
null){var k=parseInt(yb.style.width)-2,o=parseInt(yb.style.height)-5;if(Mb==null)Mb=document.createElement("div");Mb.style.display="block";if(d.h)o-=d.db;if(o>100){o=100;if(k<100)o=k-5}if(o<35)o=35;Mb.style.width=o+"px";Mb.style.height=o+"px";Mb.className="pui-animation pui-grid-animation";yb.appendChild(Mb)}};this.getData=function(k){function o(ja,sa,Ja){var Oa;if(!(d==null||d.cells==null)){if(sa!=null)d.totalRecs=sa;d.saveFieldNames=d.aa;d.aa=[];d.X=[];d.clear(false);d.Uc=false;d.dataProps["load all rows"]==
|
|
1285
|
+
"true"&&s(false);if(ja.length>=1){for(Oa in ja[0])d.aa.push(pui.L(Oa));d.saveFieldNames=d.aa;for(sa=0;sa<ja.length;sa++){d.dataArray[sa]=[];d.X[sa]=[];var wa=ja[sa],Ha=0;for(Oa in wa){var Qa=wa[Oa];d.dataArray[sa][Ha]=Qa;d.X[sa][Ha]=Qa;Ha++}}}d.xa=true;d.getData();if(d.dataProps["load all rows"]=="true"&&d.isFiltered()&&Ta){ja=h();Oa=ja.filters;if(Oa!=null){d.tc=false;for(sa=0;sa<Oa.length;sa++){wa=ja.filters[sa].column;Ha=ja.filters[sa].text;Ha==null||Ha==""?d.removeFilter(wa):d.setFilter(wa,Ha)}d.tc=
|
|
1286
|
+
true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ja=d.cells[0];for(sa=0;sa<ja.length;sa++)if(ja[sa].dk)ja[sa].dk=null;d.Al(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.xa=false;if(d.d!=null)if(d.d.type=="paging")setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250);else if(d.d.type=="sliding")if(d.totalRecs!=null){d.d.Ta=d.totalRecs;Ja>0&&d.d.xd(d.j,true)}if(d.c.style.visibility!="hidden"&&d.d!=null){d.d.z();typeof d.d.Bh=="function"&&d.d.Bh()}d.Ji=
|
|
1287
|
+
false}}function q(ja,sa,Ja){function Oa(Fb){return Fb.columnId===Qa}var wa,Ha,Qa;if(!(d==null||d.cells==null)){if(sa!=null)d.totalRecs=sa;if(Ja>0){d.j=Ja;d.clearData()}sa=e();var Jb=Array(d.cells[0].length);for(wa=0;wa<d.cells[0].length;wa++)Jb[d.cells[0][wa].w]=wa;if((d.Fl||d.na)&&ja.length>0&&d.ga.length){Qa=0;for(Ha in ja[0]){if(wa=d.ga.find(Oa))wa.field=Ha;Qa++}}for(wa=d.Af=0;wa<ja.length;wa++){if(d.Af==0)d.Af=wa+1+(d.j-1);d.gj=wa+1+(d.j-1);var Pa=ja[wa],db=0,Cb=d.cells[wa+(d.h?1:0)];if(Cb!=null)for(Ha in Pa){var Va=
|
|
1288
|
+
Cb.length;if(d.na&&d.ga.length)Va=d.ga.length;if(db<Va){Va=Pa[Ha];var $b="";Qa=pui.secLevel>0?Jb[db]:db;if(d.na){if(Qa==undefined){db++;continue}if(d.I["text align"]){var Rb=d.I["text align"].split(",");if(Rb[db])$b=" text-align:"+Rb[db]}}else if(Cb[Qa].style.textAlign!=null&&Cb[Qa].style.textAlign!="")$b=" text-align:"+Cb[Qa].style.textAlign;if(pui.appJob.decimalFormat=="J"&&Va.charAt(0)==","&&Va.length>1&&!Number.isNaN(Number.parseInt(Va.substring(1))))Va="0"+Va;Cb[Qa].innerHTML='<div style="'+
|
|
1289
|
+
sa+$b+'" class="dbd">'+Va+"</div>";if(d.Y!=null&&d.Y.text!=""&&(Qa===d.Y.col||d.Y.col==="*all"))if(Cb[Qa].tagName=="DIV"){pui.il(Cb[Qa],d.Y.text);Cb[Qa].jl=true}}db++}}ja=d.cells.length;if(d.h)ja-=1;if(d.d!=null)if(d.d.type=="paging")setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250);else if(d.d.type=="sliding")if(d.totalRecs!=null){d.d.Ta=d.totalRecs;Ja>0&&d.d.xd(d.j,true)}if(d.c.style.visibility!="hidden"&&d.d!=null){d.d.z();typeof d.d.Bh=="function"&&d.d.Bh()}if(d.i!=null){d.i.Sl=
|
|
1290
|
+
parseInt((d.j+ja*2-2)/ja)+d.$o-1;d.i.z()}d.Ji=false}}function v(){var ja=null;if(d.Dg&&d.ag!==null){if(d.Sb)if(d.Sb.length<1&&d.qd)d.Sb=null;if(d.Sb==null){d.Sb=[];for(ja=0;ja<d.dataArray.length;ja++){var sa={yq:d.getDataValue(ja+1,d.ag),Tu:false};d.Sb.push(sa)}d.Ce=new pui.Kq;d.Ce.load(d.Sb)}if(!d.Uu){d.Uu=true;d.hs=null;ja=d.lx();for(sa=0;sa<d.B.length;sa++)if(d.B[sa].columnId==ja){ja=d.B[sa].left;if(ja===undefined)ja="10px";ja=ja.substring(0,ja.indexOf("px"));ja=parseInt(ja);d.hs=ja;break}}ja=
|
|
1291
|
+
d.c.id;ja={id:ja+d.Gm,"field type":"graphic button",left:"10px",top:"0px","css class":"pui-button-tree-level","icon position":"left",onclick:'myFunction = function (event, elem) {\n getObj("'+ja+'").grid.toggleTreeLevel(rrn);\n}\n\n',grid:ja,visibility:"visible"};ja.columnId=d.Xe;ja.column=ja.columnId.toString()}return ja}function A(ja){var sa=Ma-1;ja.icon="fontAwesome-solid:minus-square-tree-level";ja.visibility="visible";if(d.Sb[sa].Tu)ja.icon="fontAwesome-solid:plus-square-tree-level";for(var Ja=
|
|
1292
|
+
d.Sb[sa].yq,Oa=0;Oa<d.B.length;Oa++)if(d.B[Oa].columnId==ja.columnId){ja.column=d.B[Oa].column;var wa=d.hs+(Ja-1)*10;ja.left=wa+"px";d.B[Oa].left=wa+20+"px";break}if(sa+1>=d.Sb.length||d.Sb[sa+1].yq<=Ja)ja.visibility="hidden"}var u;d.$i();if(d.c.disabled!=true)if(!d.designMode){var I=d.cells.length;if(d.h)I-=1;if(!(I<1)){if(d.xa==false){if(d.ea()){if(!ae){ed=ae=true;g(true);ed=false}if(!be){n();be=true}}var F=d.dataProps["custom sql"];u="";if(F==null||F==""){var H=d.dataProps["database file"],L=d.dataProps["database fields"],
|
|
1292
1293
|
O=d.dataProps["selection criteria"];u=d.dataProps["order by"];if(d.Fb!=null)u=d.Fb;if(L!=null&&L!=""&&H!=null&&H!=""){F="SELECT "+L+" FROM "+H;if(O&&O!="")F+=" WHERE "+O;if(u&&u!="")F+=" ORDER BY "+u}}else if(d.Fb!=null)F+=" ORDER BY "+d.Fb}H=d.dataProps["data url"];if(H=="")H=null;if(F==null)F="";if(d.xa==false&&(F!=""||H!=null))if(k!=null){if(!(F==null||F=="")){var Z=",";I=".";var M='"';if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){Z=";";I=","}if(typeof pui["csv separator"]==
|
|
1293
|
-
"string")Z=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")M=pui["csv string delimiter"];var S=document.createElement("form");S.action=Vb("PUI0009107.pgm");S.method="post";var R=function(ja,
|
|
1294
|
-
encodeURIComponent(pui.ad(d.c)));I={};pui.rd(d.dataProps,I);for(var aa in I)R(aa,encodeURIComponent(I[aa]));if(u&&u!="")R("order",u);else pb()=="mssql"&&R("order","(select null)")}else R("q",pui.zb.vf(F));R("AUTH",pui.ba?pui.ba:pui.appJob.auth);pui.ba||typeof pui.vId!=="undefined"&&R("VID",pui.vId);if(d.h&&d.Zk){var X;if(d.na){X="";d.ga.forEach(function(ja){var
|
|
1294
|
+
"string")Z=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")M=pui["csv string delimiter"];var S=document.createElement("form");S.action=Vb("PUI0009107.pgm");S.method="post";var R=function(ja,sa){var Ja=Xb("input",ja);Ja.type="hidden";Ja.value=sa;S.appendChild(Ja)};pui.isCloud&&R("workspace_id",pui.cloud.ws.id);R("delimiter",Z);R("stringDelimiter",M===""?"*NONE":M);pui["read db driven data as ebcdic"]!==true&&R("UTF8","Y");R("decType",I);R("fileName",k+".csv");if(pui.secLevel>0){R("q",
|
|
1295
|
+
encodeURIComponent(pui.ad(d.c)));I={};pui.rd(d.dataProps,I);for(var aa in I)R(aa,encodeURIComponent(I[aa]));if(u&&u!="")R("order",u);else pb()=="mssql"&&R("order","(select null)")}else R("q",pui.zb.vf(F));R("AUTH",pui.ba?pui.ba:pui.appJob.auth);pui.ba||typeof pui.vId!=="undefined"&&R("VID",pui.vId);if(d.h&&d.Zk){var X;if(d.na){X="";d.ga.forEach(function(ja){var sa=ja.name;if(ja.blankHeader)sa="";sa=sa.replace(/"/g,'""');if(X)X+=Z;X+=M+sa+M})}else{X="";for(u=0;u<d.cells[0].length;u++){I=Lc(d.cells[0][u]);
|
|
1295
1296
|
I=I.replace(/"/g,'""');if(X!="")X+=Z;X+=M+I+M}}R("headings",X)}typeof d.Qc==="string"&&d.Qc.length>0&&d.Qc.substring(1).split("&").forEach(function(ja){ja=ja.split("=");R(ja[0],decodeURIComponent(ja[1]))});document.body.appendChild(S);pui.skipConfirm=true;S.submit();setTimeout(function(){S.parentNode.removeChild(S);pui.skipConfirm=false},0)}}else{if(d.d!=null){if(d.d.type=="paging")d.d.Jb=d.j==1;d.c.style.visibility!="hidden"&&d.d.z()}var ia=d.j;if(qc!=null&&pc!=null&&rc>0)ia=rc;else d.clearData();
|
|
1296
|
-
var
|
|
1297
|
-
k&&(d.isFiltered()||d.d!=null)){d.j=d.j-k+F.length;if(d.j<1)d.j=1;k=F.length}d.xx();u=d.j;if(d.xa==true&&d.dataProps["load all rows"]!="true"){u=1;k=I}H=v();d.Af=0;d.vl=null;for(u=u;u<=k;u++){if(d.Us)ia=d.Us[u-1];ia||(ia={});L={};
|
|
1298
|
-
u;
|
|
1299
|
-
Ma;if(pui.O[L]==null){F[u-1].Ee={modified:false,type:"grid hidden field",value:"0",o:Ma,N:d.De};pui.O[L]=[];pui.O[L].push(F[u-1].Ee)}}}else
|
|
1297
|
+
var va=q;I=I;if(jb==null||jb.style.display=="none"){d.mask();d.Mb()}if(d.dataProps["load fields into widgets"]=="true"){va=o;if(d.dataProps["load all rows"]=="true")I=-1}N=="genie"?bb(F,I,ia,va,d.totalRecs==null,H,false):bb(F,I,ia,va,d.totalRecs==null,H,true)}else if(N=="dspf"||pui.fa){F=d.dataArray;if(d.isFiltered())F=d.X;if(!d.c.tf)d.c.tf=0;u=d.j;if(F[d.j-1]&&F[d.j-1].o!=null)u=F[d.j-1].o;d.c.lu=u;if(d.Fo!=null&&!d.lt)pui.Fm["toprrn."+d.Fo]=u;d.clearData();aa=d.h?1:0;k=d.j+I-1;if(d.xa==false&&F.length<
|
|
1298
|
+
k&&(d.isFiltered()||d.d!=null)){d.j=d.j-k+F.length;if(d.j<1)d.j=1;k=F.length}d.xx();u=d.j;if(d.xa==true&&d.dataProps["load all rows"]!="true"){u=1;k=I}H=v();d.Af=0;d.vl=null;for(u=u;u<=k;u++){if(d.Us)ia=d.Us[u-1];ia||(ia={});L={};va=F[u-1];if(va==null||va.length==0)L.empty=true;else for(O=0;O<d.aa.length;O++)L[d.aa[O]]=va[O];if(d.dataProps["load fields into widgets"]=="true"){L.__pui_show=true;L.__pui_skipdecode=true}va=d.be||d.Mj!=null||d.Kj!=null;if(L.empty!=true){var Ma=F[u-1].o;if(Ma==null)Ma=
|
|
1299
|
+
u;va&&d.fd(aa,false,u-1);H!==null&&A(H);if(d.Af==0)d.Af=Ma;d.gj=Ma;pui.Up({designMode:false,name:pui.Lb(d.Xa),metaData:{items:d.B},data:L,Ts:ia,ref:d.ref,errors:d.errors,Oj:aa,o:Ma,Zb:u-1,Y:d.Y,zq:H});if(d.be&&d.Eb!=null){L=pui.Lb(d.Xa)+"."+pui.L(d.Eb.fieldName)+"."+Ma;if(pui.O[L]==null){F[u-1].selection={modified:false,type:"grid selection",value:d.Eb.dataType=="indicator"?"0":" ",o:Ma,N:d.Eb};pui.O[L]=[];pui.O[L].push(F[u-1].selection)}}if(d.De!=null){L=pui.Lb(d.Xa)+"."+pui.L(d.De.fieldName)+"."+
|
|
1300
|
+
Ma;if(pui.O[L]==null){F[u-1].Ee={modified:false,type:"grid hidden field",value:"0",o:Ma,N:d.De};pui.O[L]=[];pui.O[L].push(F[u-1].Ee)}}}else va&&d.fd(aa);aa++}if(va&&k<I)for(ia=k+1;ia<=I;ia++)d.fd(ia);if(d.Dg&&d.ag!==null&&d.vl!==null){ia=Ab(d.c.id+d.Gm+"."+d.vl);ia!==null&&ia.focus()}if(d.ea()&&d.dataProps["load all rows"]!="true"){d.Af+=d.j-1;d.gj+=d.j-1}if(d.d!=null&&d.d.type=="sliding")d.d.Ta=d.xa&&d.dataProps["load all rows"]!="true"?d.totalRecs:F.length;if(d.c.style.visibility!="hidden"&&d.d!=
|
|
1300
1301
|
null){d.d.z();typeof d.d.Bh=="function"&&d.d.Bh()}if(d.i!=null){d.i.Sl=parseInt((d.j+I*2-2)/I)+d.$o-1;d.i.z()}d.Ji=false;d.unMask()}}}};this.clearData=function(){if(!d.Ji){var k;if(d.d!=null)k=d.d.Qu;for(var o=d.h?1:0;o<d.cells.length;o++)for(var q=0;q<d.cells[o].length;q++)for(var v=d.cells[o][q],A=v.firstChild;A;){if(A==k){A.style.display="none";A.Th=true;d.c.appendChild(A)}else v.removeChild(A);A=v.firstChild}d.Ji=true}};this.xx=function(){for(var k in d.Eq)d.Eq[k].wx()};this.destroy=function(){d.Jd&&
|
|
1301
|
-
Zb(document,"click",d.$i);for(d.d!=null&&d.d.destroy();d.n.length>0;){var k=d.n.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}for(;d.k.length>0;){k=d.k.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}d.i!=null&&d.i.destroy();d.bc!=null&&d.bc.destroy();
|
|
1302
|
+
Zb(document,"click",d.$i);for(d.d!=null&&d.d.destroy();d.n.length>0;){var k=d.n.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}for(;d.k.length>0;){k=d.k.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}d.i!=null&&d.i.destroy();d.bc!=null&&d.bc.destroy();qa!=null&&qa.parentNode.removeChild(qa);Fa!=null&&Fa.parentNode.removeChild(Fa);ca!=null&&ca.parentNode.removeChild(ca);ma!=null&&ma.parentNode.removeChild(ma);Xa!=null&&Xa.parentNode.removeChild(Xa);hb!=null&&hb.parentNode.removeChild(hb);
|
|
1302
1303
|
ba!=null&&ba.parentNode.removeChild(ba);fa!=null&&fa.parentNode.removeChild(fa);Ya!=null&&Ya.parentNode.removeChild(Ya);$a=Za=Ua=Ya=null;try{if(Array.isArray(d.B))for(;d.B.length>0;){var o=d.B.pop();if(typeof o==="object"&&o!==null&&Array.isArray(o.domEls))for(var q=o.domEls;q.length>0;){var v=q.pop();if(typeof v==="object"&&v!==null){pui.ma(v);pui.pd(v)}}}this.Lc();d=null}catch(A){console.log(A)}};this.Cf=function(){for(var k="",o=1;o<d.n.length;o++){var q=parseInt(d.n[o].style.left)-parseInt(d.n[o-
|
|
1303
|
-
1].style.left);k+=k==""?String(q):","+String(q)}return k};this.Yf=function(k){if(typeof k=="string")k=k.split(",");if(!(d.n.length<=0)){for(var o=parseInt(d.n[0].style.left),q=1;q<d.n.length;q++){var v=d.ms,A=q-1;if(A<k.length)v=pui.ae(k[A],50);o+=v;d.n[q].style.left=o+"px"}
|
|
1304
|
+
1].style.left);k+=k==""?String(q):","+String(q)}return k};this.Yf=function(k){if(typeof k=="string")k=k.split(",");if(!(d.n.length<=0)){for(var o=parseInt(d.n[0].style.left),q=1;q<d.n.length;q++){var v=d.ms,A=q-1;if(A<k.length)v=pui.ae(k[A],50);o+=v;d.n[q].style.left=o+"px"}U();d.designMode&&d.Na();P();d.setScrollBar();d.jc();d.ic(true)}};this.Se=function(){if(!d.vo)if(d.designMode){var k=d.c.e;if(k!=null){k.designer.Jf.update();var o=k.designer.selection;if(o.Yd.length==1&&o.Yd[0].e==k)d.ic();else{o.clear();
|
|
1304
1305
|
o.add(k);d.ic(true)}}}};this.ic=function(k){if(d.designMode)if(!Hb.Ih){var o=d.c.e;if(o!=null){var q=o.properties.height==="#subfileHeight"?"#subfileHeight":d.c.style.height,v;if(o.properties["number of rows"]!=="#rowsPerPageRDF"){v=d.k.length-1;if(v<0)v=0;v=String(v)}else v=o.properties["number of rows"];var A=d.n.length-1;if(A<0)A=0;A=String(A);var u=false;u=Zd(d,o,"number of rows",v)||u;u=Zd(d,o,"number of columns",A)||u;u=Zd(d,o,"row height",d.la)||u;u=Zd(d,o,"header height",d.db)||u;u=Zd(d,o,
|
|
1305
1306
|
"column widths",d.Cf())||u;u=Zd(d,o,"left",d.c.style.left)||u;u=Zd(d,o,"top",d.c.style.top)||u;u=Zd(d,o,"height",q)||u;if(u=Zd(d,o,"width",d.c.style.width)||u){o.designer.qp();N==="dspf"&&pui.ide.refreshRibbon()}if(u||k)o.designer.pb.refresh()}}};this.jc=function(k){if(d.h)if(!(d.cells.length<=0))for(var o=e(),q=d.cells[0],v=0,A=q.length;v<A;v++){var u=q[v],I=false,F=null;if(d.designMode==false){if(u.oc!=null){I=true;d.Ij(u)}if(u.ed!=null){F=u.ed;F.parentNode!=null&&F.parentNode.removeChild(F)}}if(d.columnHeadings.length<=
|
|
1306
1307
|
v)u.innerHTML="";else{var H="";if(u.style.textAlign!=null&&u.style.textAlign!="")H=" text-align:"+u.style.textAlign;var L="<div";if(d.Tc)L+=' class="qf"';L+=' style="'+o+H+'">';if(d.na&&k&&k[v])L+=k[v];else if(d.columnHeadings[v])L+=d.columnHeadings[v];u.innerHTML=L+"</div>"}I&&d.rm(u);I=false;if(d.designMode==false&&d.sortable==true)if(F!=null)z(u,F);else if(d.kc!=null){if(Ic==u.w)I=true;else if(d.c.qh!=null&&d.If==u.w)I=true;else if(d.c.xg!=null&&typeof d.cj==="string"&&d.cj.toUpperCase()==d.Ko(u.col,
|
|
@@ -1308,15 +1309,15 @@ parseInt(d.c.Bx)))I=true;if(I){E();z(u,d.kc)}}if(d.Tc){F=document.createElement(
|
|
|
1308
1309
|
this.ww=function(){if(d.h)if(!(d.cells.length<=0))for(var k=0;k<d.cells[0].length;k++)d.cells[0][k].innerHTML=""};this.Al=function(k){function o(H){function L(){if(d.c.qh!=null){d.$n=String(H.w);pui.te=d;pui.gc();pui.te=null}else if(d.c.xg!=null){d.Pi=d.Ko(H.col,parseInt(d.c.zs));if(d.Pi==null)d.Wf=null;else{pui.we=d;pui.gc();pui.we=null}}else t(H)}T(H,"click",L);H.ym=L}var q;if(d.sortable)if(!(N!="dspf"&&!pui.fa))if(d.h)if(!(d.cells.length<=0)){var v=d.cells[0];if(d.dataProps["database file"]!=null&&
|
|
1309
1310
|
d.dataProps["database file"]!=""&&(d.dataProps["custom sql"]==null||d.dataProps["custom sql"]=="")&&(d.dataProps["data url"]==null||d.dataProps["data url"]=="")&&d.dataProps["database fields"]!=null&&d.dataProps["database fields"]!=""&&d.dataProps["load all rows"]!="true"){k=pui.Ah(d.dataProps["database fields"]);for(q=0;q<k.length;q++)if(v[q]){v[q].fieldName=k[q];f(v[q])}}else if((d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=null&&d.dataProps["data url"]!=
|
|
1310
1311
|
"")&&d.dataProps["load all rows"]!="true"){k=d.n.length-1;for(q=0;q<k;q++)f(v[q])}else if(!(d.dataProps["load all rows"]=="true"&&d.xa==false)){for(q=0;q<d.B.length;q++){var A=d.B[q],u=Number(A.column),I=A.value;if(A["field type"]=="html container")I=A.html;if(pui.p(I)&&!isNaN(u)&&u>=0&&u<v.length&&v[u]&&v[u].dk==null){A=pui.L(I.fieldName);for(var F=0;F<d.aa.length;F++)if(A==d.aa[F]){v[u].dk=F;v[u].fieldName=A;v[u].dataType=I.dataType;v[u].ys=I;if(I.dateFormat)v[u].dateFormat=I.dateFormat;if(!pui.qa)v[u].style.cursor=
|
|
1311
|
-
"pointer";o(v[u]);break}}}k||g()}}};this.
|
|
1312
|
-
I.columnId;if(F!==undefined){d.ga.every(function(L){if(L.columnId===F){I.blankHeader=L.blankHeader;I.name=L.name;I.field=L.field;return false}return true});if(I.showing){if(
|
|
1312
|
+
"pointer";o(v[u]);break}}}k||g()}}};this.Ry=function(){var k,o,q=h();if(q!=null){if(hd&&!d.na){k=q.colWidths;if(k!=null){d.Yf(k);d.Na();d.jc()}}if(gc&&!d.na){o=q.colSequence;if(o!=null){var v=Array(o.length);for(k=0;k<v.length;k++)v[k]=d.cells[0][o[k]];for(k=0;k<v.length;k++)d.moveColumn(v[k].col,k)}}if(d.na){o=q.hidableColState;if(k=q.colWidths)k=k.filter(ka());if(o){var A=o.cols;v=A.map(ka());o=q.colSequence;if(v!=null){v.sort(function(I,F){return I.savedColumn>F.savedColumn?1:-1}).forEach(function(I){var F=
|
|
1313
|
+
I.columnId;if(F!==undefined){d.ga.every(function(L){if(L.columnId===F){I.blankHeader=L.blankHeader;I.name=L.name;I.field=L.field;return false}return true});if(I.showing){if(gc){var H=Ca(F);H>=0&&H!=I.savedColumn&&d.moveColumn(H,I.savedColumn)}}else d.$p(F)}});if(o)v.Ki=o;d.ga=v;d.ga.sort(function(I,F){var H=null,L=null;A.every(function(O,Z){if(I.columnId===O.columnId)H=Z;if(F.columnId===O.columnId)L=Z;if(H!==null&&L!==null)return false;return true});return H>L?1:-1})}}if(k){d.Yf(k);d.Na()}d.qd&&d.ac();
|
|
1313
1314
|
d.jc(d.Js(d.ga))}l(q,true,t);o=q.filters;if(o!=null&&!d.ea())for(k=0;k<o.length;k++){v=q.filters[k].column;var u=q.filters[k].text;u==null||u==""?d.removeFilter(v):d.setFilter(v,u)}}};this.zt=function(k){Ic=null;Ua=[];if(k instanceof Array){s(true);var o="",q="",v="",A="";m(k,function(H,L){return H.as===L.w},function(H,L){q+=A+H.as;if(d.c.xg!=null)v+=A+d.Ko(L.col,parseInt(d.c.zs));A=",";return H.Ew});A="";k=0;if(d.B.length>0)k=d.B.reduce(function(H,L){return H.columnId>L.columnId?H:L}).columnId;for(var u=
|
|
1314
1315
|
0;u<=k;u++){for(var I=false,F=0;F<d.cells[0].length;F++)if(d.cells[0][F].w===u){o+=A+(d.cells[0][F].sa?"D":"A");A=",";I=true;break}if(!I){o+=A+(p(u)?"D":"A");A=","}}if(d.c.qh!=null){d.$n=q;pui.te=d;if(d.c.Vh!=null)d.Wf=o;pui.gc();pui.te=null}else if(d.c.xg!=null){d.Pi=v;if(d.Pi==null)d.Wf=null;else{if(d.c.Vh!=null)d.Wf=o;pui.we=d;pui.gc();pui.we=null}}else if(Ua.length==0)g(false)||y();else d.ea()&&d.xa==false?x(null,false):t(null,false)}};this.yw=function(k,o){var q;if(!d.ks){d.ks=true;var v=Number(d.dataProps["starting row"]),
|
|
1315
1316
|
A=Number(d.dataProps["ending row"]);if(!(isNaN(v)||isNaN(A)))if(d.dataProps["data columns"]!=null){var u=[];for(q=0;q<k;q++){var I="data columns";if(q>0)I+=" "+(q+1);u[q]=d.dataProps[I].split(",")}d.dataArray=[];d.j=1;I=0;d.h&&I++;for(v=v;v<=A;v+=k){var F=I-(d.h?1:0);d.dataArray[F]=[];d.dataArray[F].selected=false;for(q=0;q<k;q++)for(var H=0;H<u[q].length;H++){var L=u[q][H],O="D_"+(v+q)+"_"+L,Z=d.c.parentNode.id;if(Z!=null&&Z.substr(0,6)=="window"){var M=parseInt(Z.substr(6,1));if(!isNaN(M)&&M>0)O+=
|
|
1316
1317
|
"_W"+M}var S=Ab(O),R,aa;if(S==null){O="I_"+(v+q)+"_"+L;S=Ab(O);if(S==null)if(!isNaN(M)&&M>0)O+="_W"+M;S=Ab(O);if(S==null)continue;d.d!=null&&d.d.type=="paging"&&d.d.Ni(S);if(!S.readOnly)continue;L=S.value;L=L.replace(/ /g," ");S.style.display="none";O=S.className;Z=parseInt(S.style.left);R=parseInt(S.style.top);aa=S.C}else{L=S.innerHTML;O=S.className;Z=parseInt(S.style.left);R=parseInt(S.style.top);aa=S.C;S.parentNode.removeChild(S);d.d!=null&&d.d.type=="paging"&&d.d.Ni(S)}if(O==null||O==""||
|
|
1317
1318
|
O=="A20")O="";else if(O.indexOf("readOnly")!=-1){O=pui.Rp(O,"readOnly");O=pui.Rp(O,"input")}S=H;if(k>1)S=0;if(d.cells.length<=I)break;var X=d.cells[I][S];if(X!=null){var ia=document.createElement("div");ia.className=O;ia.innerHTML=L;d.dataArray[F][S]=L.replace(/ /g," ");ia.style.position="absolute";Z-=parseInt(X.style.left);Z-=parseInt(d.c.style.left);if(o==true||k==1)Z=5;ia.style.left=Z+"px";R-=parseInt(X.style.top);R-=parseInt(d.c.style.top);if(o==true||k==1)R=5;ia.style.top=R+"px";ia.C=aa;
|
|
1318
1319
|
T(ia,"click",setPos);if(k==1){X.C=aa;T(X,"click",setPos)}X.appendChild(ia)}}I++}}}};this.setScrollBar=function(){if(d.i.b==null){d.i.b=d.b;d.i.grid=d;d.i.init();d.i.z()}d.i.x=parseInt(d.c.style.left);d.i.y=parseInt(d.c.style.top);var k=parseInt(d.c.style.height);if(isNaN(k))k=0;d.i.y+=k;d.i.width=parseInt(d.c.style.width);if(isNaN(d.i.width)||d.i.width<10)d.i.width=10;d.i.width-=2;d.designMode||d.i.z();d.i.position();var o=true;if(d.k.length<2)o=false;if(d.k.length<3&&d.h)o=false;if(d.n.length<2)o=
|
|
1319
|
-
false;if(!d.Sf&&!d.Ec)o=false;k="paging";if(d.Ec)k="sliding";if(N=="genie"&&!d.designMode&&d.ea())k="sliding";if(o&&(d.d==null||d.d!=null&&d.d.type!=k)){d.d!=null&&d.d.destroy();if(k=="paging"){d.d=new pui.jv;d.d.grid=d}if(k=="sliding"){d.d=new pui.lv;if(N=="genie"&&!pui.fa)d.d.Uf=true}d.d.b=d.b;d.d.zIndex=d.
|
|
1320
|
+
false;if(!d.Sf&&!d.Ec)o=false;k="paging";if(d.Ec)k="sliding";if(N=="genie"&&!d.designMode&&d.ea())k="sliding";if(o&&(d.d==null||d.d!=null&&d.d.type!=k)){d.d!=null&&d.d.destroy();if(k=="paging"){d.d=new pui.jv;d.d.grid=d}if(k=="sliding"){d.d=new pui.lv;if(N=="genie"&&!pui.fa)d.d.Uf=true}d.d.b=d.b;d.d.zIndex=d.Wy;d.d.designMode=d.designMode;if(k=="sliding"){d.d.Nl=function(u){if(jb==null||jb.style.display=="none"){d.mask();d.Mb()}d.j=u;if(!(d==null||d.cells==null)){d.getData();d.Pt(true)}};d.d.onchange=
|
|
1320
1321
|
function(){d.ea()&&d.dataProps["load all rows"]!="true"&&d.clearData()};d.d.Ni(d.c)}if(k=="paging"){d.d.tj=function(){if(Y("onpageup")==false)return false;if(d.xa==false&&d.ea()){if(d.j>1){var u=d.cells.length;if(d.h)u-=1;d.j-=u;if(d.j<1)d.j=1;d.getData()}return true}else if(d.xa==true||N=="dspf"||pui.fa){pui.Qj=d.Xa;pui.Ch({},"PageUp");d.d.type=="paging"&&pui.Qb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(N=="genie"){Ub("PageUp");return true}};d.d.sj=function(){if(Y("onpagedown")==
|
|
1321
1322
|
false)return false;if(d.xa==false&&d.ea()){var u=d.cells.length;if(d.h)u-=1;d.j+=u;d.getData();return true}else if(d.xa==true||N=="dspf"||pui.fa){pui.Qj=d.Xa;pui.Ch({},"PageDown");d.d.type=="paging"&&pui.Qb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(N=="genie"){Ub("PageDown");return true}};d.d.Ni(d.c)}d.d.init(d.c)}if(o){o=d.borderWidth;if(o===null||d.designMode&&o<za)o=za;var q=23;if(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.qa)q=0;d.d.x=parseInt(d.n[d.n.length-
|
|
1322
1323
|
1].style.left)-q;if(!d.designMode&&d.b!=null&&d.b.tagName=="DIV"&&d.b.getAttribute("container")=="true"){var v=d.b.parentNode;if(v!=null&&v.tagName=="DIV"&&v.style.overflowX=="scroll"){var A=v.parentNode;if(A!=null&&A.tagName=="DIV"&&A.pui!=null&&A.pui.properties!=null&&A.pui.properties.template=="simple container"&&A.pui.properties["overflow x"]=="scroll")if(A.offsetWidth<d.c.offsetWidth+d.c.offsetLeft){d.d.x=A.offsetWidth-q+2+v.scrollLeft;v.onscroll=function(){if(d.d){d.d.x=A.offsetWidth-q+2+v.scrollLeft;
|
|
@@ -1325,51 +1326,51 @@ false;d.d.di=true}else{d.d.ci=false;d.d.di=false}}if(d.h){k=d.db;d.d.y+=k;k=-k;d
|
|
|
1325
1326
|
u[1]!=null)A=u[1];u=/^(grid row translation placeholder value) \d+$/.exec(k);if(u!=null&&u[1]!=null)A=u[1];switch(A){case "id":case "parent window":case "screen identifier":case "field type":case "value":case "color":case "display subfile":case "display control record":case "initialize subfile":case "subfile records not active":case "delete subfile":case "clear subfile":case "subfile size":case "subfile next changed":case "subfile record number":case "cursor record number":case "cursor progression":case "subfile return rrn":case "subfile changed":case "subfile message key":case "subfile control program message queue":case "allow drag":case "ondragstart":case "drop targets":case "ondragenter":case "ondragleave":case "ondrop":case "return mode":case "selection field":case "row is hidden field":case "tree level field":case "column sort response":case "right":case "bottom":break;
|
|
1326
1327
|
case "field name sort response":break;case "return sort order":break;case "position at top":if(o==="true")d.Rt=true;break;case "place cursor":if(o==="true")d.Qt=true;break;case "record format name":d.Xa=o;if(N=="dspf"){q=d.c.e;if(q!=null){q.properties[k]=o;recordFormats.refresh()}}break;case "description":if(N=="dspf"){q=d.c.e;if(q!=null){q.properties[k]=o;recordFormats.refresh()}}break;case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":case "header font color":case "header background":case "header image":case "row font color":case "row background":case "odd row font color":case "odd row background":case "even row font color":case "even row background":case "hover font color":case "hover background":case "hover image":case "selection font color":case "selection background":case "selection image":case "header font family":case "header font size":case "header font weight":case "header font style":case "header text align":d.I[k]=
|
|
1327
1328
|
o==""&&d.qf[k]!=null?d.qf[k]:o;if(d.designMode){d.wd();if(k=="text align"||k=="header text align"||k=="header font family"||k=="header font size"||k=="header font style"||k=="header font weight")d.jc()}break;case "row selection":if(o=="single"||o=="multiple (simple)"||o=="multiple (extended)"){d.be=true;if(o=="single"){d.singleSelection=true;d.Oi=false}else{d.singleSelection=false;d.Oi=o=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
|
|
1328
|
-
false){d.c.onselectstart=
|
|
1329
|
+
false){d.c.onselectstart=ta(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none"}}else{d.be=false;d.singleSelection=false;d.Oi=false}break;case "selection value":if(o!=null&&o!="")d.Xh=o;break;case "number of rows":q=d.k.length-1;if(q<0)q=0;A=o==="#rowsPerPageRDF"?14:parseInt(o);if(isNaN(A))A=q;if(A<1)A=1;if(d.h&&A<2)A=2;if(A>99&&d.designMode)A=99;if(A>q){for(;A>d.k.length-1;)d.jf();d.Kh()}if(A<q)for(;A<d.k.length-1;)d.Jj();if(d.c.e!=null)d.c.e.properties[k]=o;d.ic();
|
|
1329
1330
|
break;case "number of columns":A=d.n.length-1;if(A<0)A=0;q=parseInt(o);q>d.Jh&&pui.alert("WARNING: Number of maximum columns reached when loading Grid.");if(isNaN(q))q=A;if(q<1)q=1;if(q>d.Jh&&d.designMode)q=d.Jh;if(q>A)for(;q>d.n.length-1;)d.yn();if(q<A)for(;q<d.n.length-1;){A=d.n.length-2;if(d.designMode&&d.Uo(A))break;d.Sp()}d.designMode&&d.Na();if(d.c.e!=null)d.c.e.properties[k]=o;d.ic();break;case "row height":if(isNaN(parseInt(o))||parseInt(o)<=0){d.ic(true);break}d.la=parseInt(o);k=d.h?1:0;
|
|
1330
|
-
if(d.k.length<=k)return;q=parseInt(d.k[k].style.top);for(k=k+1;k<d.k.length;k++){q+=d.la;d.k[k].style.top=q+"px"}
|
|
1331
|
-
0;q<k;q++)Aa(d.cells[1][q],d.cells[0][q]);d.Kh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.la+"px";
|
|
1331
|
+
if(d.k.length<=k)return;q=parseInt(d.k[k].style.top);for(k=k+1;k<d.k.length;k++){q+=d.la;d.k[k].style.top=q+"px"}pa();if(d.designMode)d.qd?d.ac():d.Na();P();d.setScrollBar();d.ic();break;case "header height":if(isNaN(parseInt(o))||parseInt(o)<=0){d.ic(true);break}d.db=parseInt(o);if(d.Tc){d.ti=d.db;if(d.columnHeadings!="")d.db+=20}ee(d);break;case "has header":if(d.Tc&&(o==false||o=="false"))d.gn=false;else if(d.h&&(o==false||o=="false")){d.ww();d.h=false;if(N=="dspf"||pui.fa){k=d.n.length-1;for(q=
|
|
1332
|
+
0;q<k;q++)Aa(d.cells[1][q],d.cells[0][q]);d.Kh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.la+"px";C();pa();d.designMode&&d.Na();P();d.setScrollBar()}d.designMode&&d.wd()}if(!d.h&&(o==true||o=="true"||o=="")){d.cells.length<=1&&d.jf();d.h=true;if(N=="dspf"||pui.fa){k=d.n.length-1;for(q=0;q<k;q++)Aa(d.cells[0][q],d.cells[1][q]);d.Kh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.db+"px";C();pa();d.designMode&&d.Na();P();d.setScrollBar()}d.wd();d.jc()}break;case "show quick filters":d.Tc=
|
|
1332
1333
|
o==true||o==="true";if(d.Tc){if(!d.h){d.gn=d.h;d.setProperty("has header","true")}if(d.ti==null)d.ti=d.db;ee(d)}else{if(d.ti!=null){d.db=d.ti;delete d.ti;ee(d)}if(d.gn===false){delete d.gn;d.setProperty("has header","false")}}d.jc();break;case "column widths":d.Yf(o);break;case "column headings":if(!pui.p(o)&&!pui.Nb(o))d.columnHeadings=pui.ha(o);d.jc();if(!d.designMode&&!d.na&&d.ga instanceof Array)for(k=0;k<d.ga.length&&k<d.columnHeadings.length;k++)d.ga[k].name=d.columnHeadings[k];if(d.na){d.ga=
|
|
1333
1334
|
[];d.setProperty("hide columns option",true)}break;case "sortable columns":d.sortable=o=="true";N=="genie"&&d.Al();if(d.Dg)d.sortable=false;break;case "default sort order":if(!d.designMode)d.Mi=o==null?[]:o.split(",");break;case "initial sort column":if(!d.designMode){d.If=parseInt(o);if(isNaN(d.If))d.If=null;if(typeof o==="string"){d.bj=o.split(",");if(d.bj.length<=1)d.bj=null}}break;case "initial sort field":if(!d.designMode){d.cj=o.trim();if(typeof o==="string"){d.Hg=o.split(",");if(d.Hg.length<=
|
|
1334
|
-
1)d.Hg=null}}break;case "resizable columns":if(!d.designMode&&(o==true||o=="true")){this.
|
|
1335
|
+
1)d.Hg=null}}break;case "resizable columns":if(!d.designMode&&(o==true||o=="true")){this.Oy=hd=true;for(k=0;k<d.n.length;k++)Ea(d.n,k,true,true)}break;case "movable columns":if(!d.designMode&&d.h&&(o==true||o=="true")){this.Fl=gc=true;k=d.cells[0];if(k==null){d.jf();k=d.cells[0];if(k==null){d.jf();k=d.cells[0]}}for(q=0;q<k.length;q++)oa(k[q],true)}break;case "persist state":if(o=="true"||o==true)Ta=d.designMode==false&&pui.Ig();else if(o==="session only"){Ta=d.designMode==false&&pui.gp();ob=d.designMode==
|
|
1335
1336
|
false&&pui.gp()}else if(o==="program only"){Ta=d.designMode==false;Sa=true}break;case "expand to layout":k=o==true||o=="true";if(k!=d.qd){d.qd=k;if(d.qd)if(d.designMode){d.ac();d.c.e.properties["expand to layout"]="true";d.c.e.qb["expand to layout"]=true;d.c.e.designer.pb.Uh("expand to layout")}}break;case "find option":d.Go=o==true||o=="true";break;case "filter option":d.Ri=o==true||o=="true";break;case "filter by value option":d.Vw=o==true||o=="true";break;case "hide columns option":d.na=o==true||
|
|
1336
1337
|
o=="true";A=d.n.length-1;u=d.Cf().split(",").map(function(F){return Number(F)});for(k=0;k<A;k++){q=d.columnHeadings[k];var I=false;if(!q||typeof q==="string"&&!q.trim()){q="Column "+(k+1);I=true}q={name:q,columnId:k,currentColumn:k,width:u[k],orginalWidth:u[k],showing:true,blankHeader:I};d.ga.push(q)}break;case "reset option":d.eu=o==true||o=="true";break;case "export option":d.Eo=o==true||o=="true"?true:o==false||o=="false"?false:null;break;case "export only visible columns":d.yf=o==true||o=="true"?
|
|
1337
|
-
true:false;break;case "context menu id":if(!d.designMode){Zb(document,"click",d.$i);k=Kb(o);if(k!="")d.Jd=k;if(pui.is_touch){d.c.onselectstart=
|
|
1338
|
+
true:false;break;case "context menu id":if(!d.designMode){Zb(document,"click",d.$i);k=Kb(o);if(k!="")d.Jd=k;if(pui.is_touch){d.c.onselectstart=ta(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none";if(typeof d.c.style.webkitUserSelect!="undefined")d.c.style.webkitUserSelect="none"}T(document,"click",d.$i)}break;case "show paging controls":d.i.Ad=o==true||o=="true";if(d.designMode){d.i.z();P()}break;case "show page number":d.i.$h=o==true||o=="true";if(d.designMode){d.i.z();
|
|
1338
1339
|
P()}break;case "initial page number":k=Number(o);if(isNaN(k))k=1;d.i.Sl=k;d.$o=k;if(d.designMode){d.i.z();P()}break;case "show record number range":d.i.bi=o==true||o=="true";if(d.designMode){d.i.z();P()}break;case "show bar":d.i.xm=o==true||o=="true";if(d.designMode){d.i.z();P()}break;case "page down condition":d.i.Kt=o;break;case "subfile end":d.Ku=o==true||o=="true";break;case "page up condition":d.i.Lt=o;break;case "page up response":if(o!=null&&o!=""){d.i.zj=true;d.i.Ep=true}break;case "page down response":if(o!=
|
|
1339
1340
|
null&&o!=""){d.i.yj=true;d.i.Cp=true}break;case "filter response":d.designMode||xb(o);break;case "filter response text max":k=parseInt(o,10);d.zf=isNaN(k)?20:k;if(d.zf<1)d.zf=1;d.designMode||xb();break;case "filter response column max":k=parseInt(o,10);d.xe=isNaN(k)?3:k;if(d.xe<1)d.xe=1;d.designMode||xb();break;case "csv export":d.i.ug=o==true||o=="true";if(d.designMode){d.i.z();P()}break;case "xlsx export":d.i.ii=o==true||o=="true";if(d.designMode){d.i.z();P()}break;case "xlsx export pics":d.i.av=
|
|
1340
1341
|
o==true||o=="true";break;case "export file name":d.us=o;break;case "export with headings":d.Zk=o==true||o=="true";break;case "fold multiple":d.pc=parseInt(o);if(isNaN(d.pc)||d.pc<1)d.pc=1;break;case "tree level column":d.Xe=parseInt(o);d.Dg=true;d.sortable=false;break;case "expanded":if(!d.designMode){if(o=="true")d.ol=true;if(o=="false")d.ol=false}break;case "collapsed":if(!d.designMode){if(o=="true")d.nl=true;if(o=="false")d.nl=false}break;case "tree level collapsed":if(!d.designMode){if(o=="true")d.Su=
|
|
1341
1342
|
true;if(o=="false")d.Su=false}break;case "single row zoom":if(o=="true")d.Gu=true;break;case "scrollbar":if(N=="genie"&&!pui.fa){d.Sf=o==true||o=="true"||o==""?true:false;d.Na()}else{d.Ec=true;d.Sf=false;if(o=="none"){d.Ec=false;d.Sf=false}if(o=="paging"){d.Ec=false;d.Sf=true}d.designMode&&d.Na()}d.setScrollBar();break;case "scroll tool tip":d.fq=o;d.setScrollBar();break;case "remote system name":case "database connection":case "database file":case "database join":case "database fields":case "selection criteria":case "order by":case "sortable":case "custom sql":case "allow any select statement":case "load fields into widgets":case "load all rows":case "data url":case "data transform function":case "starting row":case "ending row":case "data columns":case "data columns 2":case "data columns 3":case "data columns 4":d.dataProps[k]=
|
|
1342
1343
|
typeof o=="string"?o.trim():o;break;case "hover effect":d.Zo=o==true||o=="true";break;case "top":k=o;if(pui.p(k))k=k.designValue;v=parseInt(d.c.style.top)-pui.ae(k);d.Mc(function(F){F.style.top=parseInt(F.style.top)-v+"px"});d.setScrollBar();break;case "left":q=o;if(pui.p(q))q=q.designValue;v=parseInt(d.c.style.left)-pui.ae(q);d.Mc(function(F){F.style.left=parseInt(F.style.left)-v+"px"});d.setScrollBar();break;case "width":if(!d.designMode||!Hb.Ih){k=d.n.length;k-=1;if(k>0){q=pui.ae(o);q=d.qc("left")+
|
|
1343
|
-
q;if(parseInt(d.n[k-1].style.left)+5>q)q=parseInt(d.n[k-1].style.left)+5;if(N==="genie")if((A=parseInt(d.n[k].style.left))&&q-A===1)q=A;d.n[k].style.left=q+"px";
|
|
1344
|
-
5;A=0;if(d.h)A=1;for(k=k-1;k>=A;k-=1){q-=d.la;d.k[k].style.top=q+"px"}if(d.h)d.k[0].style.top=parseInt(d.k[1].style.top)-d.db+"px"}
|
|
1344
|
+
q;if(parseInt(d.n[k-1].style.left)+5>q)q=parseInt(d.n[k-1].style.left)+5;if(N==="genie")if((A=parseInt(d.n[k].style.left))&&q-A===1)q=A;d.n[k].style.left=q+"px";U();d.designMode&&d.Na();P();d.setScrollBar();d.ic()}}break;case "height":if(o==="#subfileHeight"){if(d.c.e!=null)d.c.e.properties[k]=o;o="436px"}k=d.k.length-1;if(k!=0||!d.h){v=pui.ae(o)-parseInt(d.c.style.height);q=parseInt(v/(k-(d.h?1:0)))+parseInt(d.k[k].style.top);d.k[k].style.top=q+"px";d.la=q-parseInt(d.k[k-1].style.top);if(d.la<5)d.la=
|
|
1345
|
+
5;A=0;if(d.h)A=1;for(k=k-1;k>=A;k-=1){q-=d.la;d.k[k].style.top=q+"px"}if(d.h)d.k[0].style.top=parseInt(d.k[1].style.top)-d.db+"px"}C();pa();d.designMode&&d.Na();P();d.setScrollBar();d.ic();break;case "z index":o=parseInt(o);if(isNaN(o))o="";d.c.style.zIndex=o;d.i!=null&&d.i.position();break;case "border color":d.Zy(o);break;case "border width":d.$y(o);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.xj[k]=o;d.jc();break;case "visibility":d.visibility=o;if(!d.designMode){d.Mc(function(F){F.style.visibility=
|
|
1345
1346
|
o});if(d.d!=null)o=="hidden"?d.d.hide():d.d.z()}if(d.designMode)if(o=="hidden"){d.c.style.filter="alpha(opacity=30)";d.c.style.opacity=0.3}else{d.c.style.filter="";d.c.style.opacity=""}break;case "locked in place":d.Mf=o==true||o=="true"?true:false;break;case "css class":if(d.designMode){d.bd=o;d.Ec&&d.d.om(o)}d.i!=null&&d.i.om(o);break;case "css class 2":case "css class 3":case "css class 4":case "css class 5":case "css class 6":case "css class 7":case "css class 8":case "css class 9":break;case "tool tip":d.c.title=
|
|
1346
1347
|
o;break;case "parent tab panel":case "parent tab":case "parent field set":break;case "onrowclick":case "onrowdblclick":case "onrowmouseover":case "onrowmouseout":case "onpagedown":case "onpageup":case "onscroll":case "onfilterchange":d.Do[k]=typeof q=="undefined"?o:q;break;case "ondbload":gd=o;break;case "propagate scroll events":d.Xl=o===true||o==="true"?true:false;break;case "sort function":if(o)nc=o;break;case "grid row translation placeholders":break;case "grid row translation placeholder key":break;
|
|
1347
|
-
case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.lt=true;break;default:if(typeof k==="string"&&k.substr(0,17)==="user defined data")break;pui.alert("Grid property not handled: "+k)}}};this.Mc=function(k){for(var o,q=0;q<d.n.length;q++){o=d.n[q];k(o)}for(q=0;q<d.k.length;q++){o=d.k[q];k(o)}k(d.c);Xa!=null&&k(Xa);hb!=null&&k(hb);ba!=null&&k(ba);fa!=null&&k(fa);
|
|
1348
|
-
ma!=null&&k(ma)};this.pm=function(k){k=$d(d,k);if(k>=0){var o=d.isFiltered()?d.X:d.dataArray;if(!d.c.nu)d.c.tf=o[k]==null||o[k].length==0?0:o[k].o!=null?o[k].o:k+1}};this.setCursorRecordNumber=function(k){if(typeof k=="number"&&k>0&&k<9999)d.c.tf=k};this.Pt=function(k){var o=d.Dj;d.Dj=null;if(o!=null){o=o-d.j;if(!(o<0)){d.h&&o++;if(!(o>d.cells.length-1)){var q=d.cells[o];k==true?setTimeout(function(){
|
|
1348
|
+
case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.lt=true;break;default:if(typeof k==="string"&&k.substr(0,17)==="user defined data")break;pui.alert("Grid property not handled: "+k)}}};this.Mc=function(k){for(var o,q=0;q<d.n.length;q++){o=d.n[q];k(o)}for(q=0;q<d.k.length;q++){o=d.k[q];k(o)}k(d.c);Xa!=null&&k(Xa);hb!=null&&k(hb);ba!=null&&k(ba);fa!=null&&k(fa);qa!=null&&k(qa);Fa!=null&&k(Fa);ca!=null&&k(ca);
|
|
1349
|
+
ma!=null&&k(ma)};this.pm=function(k){k=$d(d,k);if(k>=0){var o=d.isFiltered()?d.X:d.dataArray;if(!d.c.nu)d.c.tf=o[k]==null||o[k].length==0?0:o[k].o!=null?o[k].o:k+1}};this.setCursorRecordNumber=function(k){if(typeof k=="number"&&k>0&&k<9999)d.c.tf=k};this.Pt=function(k){var o=d.Dj;d.Dj=null;if(o!=null){o=o-d.j;if(!(o<0)){d.h&&o++;if(!(o>d.cells.length-1)){var q=d.cells[o];k==true?setTimeout(function(){La(q)},1):La(q)}}}};this.kz=function(){var k,o;for(k=0;k<d.dataArray.length;k++){o=o=d.dataArray[k];
|
|
1349
1350
|
var q=void 0,v=false;if(o.sc==null)if(d.De!=null){if(d.hl==null)for(q=0;q<d.aa.length;q++)if(pui.L(d.De.fieldName)==d.aa[q]){d.hl=q;break}if(d.hl!=null)if(o[d.hl]=="1"&&!o.sc)v=o.sc=true}if(v){d.Pb=0;d.X=[];for(q=0;q<d.dataArray.length;q++){o=d.dataArray[q];if(o.o==null)o.o=q+1;d.Vj(o);!o.ye&&!o.sc&&d.X.push(o);o.sc&&d.Pb++}}}d.X=[];for(k=d.Pb=0;k<d.dataArray.length;k++){o=d.dataArray[k];if(o.o==null)o.o=k+1;d.Vj(o);!o.ye&&!o.sc&&d.X.push(o);o.sc&&d.Pb++}};this.isRowSelected=function(k){k=b(k,true);
|
|
1350
|
-
return
|
|
1351
|
-
R[S]:R[0]}return Z.style.backgroundColor=M}var u,I=k%2==1;if(d.h)I=!I;if(d.cells!=null){var F=d.cells[k];if(F!=null){var H,L=-1;if(d.j!=null&&!isNaN(d.j)&&d.j>0){if(typeof q=="number"&&q>=0)L=q+1;else if(d.Pb<1)L=k+d.j-1+(d.h?0:1);H=d.isFiltered()?d.X:d.dataArray;if(H[L-1]==null||typeof H[L-1].length!="number"||H[L-1].length<=0)L=-1}k=false;if(d.be&&L>0)k=
|
|
1351
|
+
return W(k)};this.getSelectedRows=function(){var k=[],o=d.dataArray;if(d.isFiltered())o=d.X;for(var q=0;q<o.length;q++)if(W(o[q])){var v=q+1;if(d.Uc===true||d.isFiltered())v=o[q].o;k.push(v)}return k};this.fd=function(k,o,q){function v(Z,M,S){if(M==null)M="";else{var R=M.split(",");if(R.length>1)M=S<R.length?R[S]:R[0]}Z.style.color=M;if(N=="genie"&&!pui.fa)for(S=0;S<Z.childNodes.length;S++)Z.childNodes[S].style.color=M}function A(Z,M,S){if(M==null)M="";else{var R=M.split(",");if(R.length>1)M=S<R.length?
|
|
1352
|
+
R[S]:R[0]}return Z.style.backgroundColor=M}var u,I=k%2==1;if(d.h)I=!I;if(d.cells!=null){var F=d.cells[k];if(F!=null){var H,L=-1;if(d.j!=null&&!isNaN(d.j)&&d.j>0){if(typeof q=="number"&&q>=0)L=q+1;else if(d.Pb<1)L=k+d.j-1+(d.h?0:1);H=d.isFiltered()?d.X:d.dataArray;if(H[L-1]==null||typeof H[L-1].length!="number"||H[L-1].length<=0)L=-1}k=false;if(d.be&&L>0)k=W(H[L-1]);q=null;if(d.Kj!=null&&L>0){if(d.Lj==null)for(u=0;u<d.aa.length;u++)if(pui.L(d.Kj.fieldName)==d.aa[u]){d.Lj=u;break}if(d.Lj!=null){u={};
|
|
1352
1353
|
u[d.aa[d.Lj]]=H[L-1][d.Lj];q=pui.R(d.Kj,u,d.ref)}}if(!pui.p(d.I["row background"])&&d.I["row background"]!=null&&d.I["row background"]!="")q=d.I["row background"];var O=null;if(d.Mj!=null&&L>0){if(d.Nj==null)for(u=0;u<d.aa.length;u++)if(pui.L(d.Mj.fieldName)==d.aa[u]){d.Nj=u;break}if(d.Nj!=null){u={};u[d.aa[d.Nj]]=H[L-1][d.Nj];O=pui.R(d.Mj,u,d.ref)}}if(!pui.p(d.I["row font color"])&&d.I["row font color"]!=null&&d.I["row font color"]!="")O=d.I["row font color"];for(u=0;u<F.length;u++){pui.da(F[u],
|
|
1353
1354
|
"selected");pui.da(F[u],"hover");if(k){v(F[u],d.I["selection font color"],u);A(F[u],d.I["selection background"]||"",u);if((H=d.I["selection image"])&&H.trim())F[u].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";pui.Q(F[u],"selected");d.vl=L}else if(o==true){v(F[u],d.I["hover font color"],u);A(F[u],d.I["hover background"]||"",u);if((H=d.I["hover image"])&&H.trim()){F[u].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";F[u].style.backgroundRepeat="repeat-x"}pui.Q(F[u],
|
|
1354
1355
|
"hover")}else{O=O||d.I["row font color"];if(!O||!O.trim())O=d.I[(I?"even":"odd")+" row font color"];v(F[u],O||"",u);q=q||d.I["row background"];if(!q||!q.trim())q=d.I[(I?"even":"odd")+" row background"];A(F[u],q||"",u);F[u].style.backgroundImage=""}}if(o!=true&&d.Hb!=null)d.Hb.style.display="none";if(o==true&&d.Hb!=null)d.Hb.style.display=""}}};this.Tx=function(){var k=d.c.e,o=k.designer;o.ca.An("Move "+o.selection.mx(),o);var q=o.rs,v,A;if(o.Me.style.display==""){v=parseInt(o.Me.style.top);A=parseInt(o.Me.style.left)}else{v=
|
|
1355
1356
|
parseInt(k.dom.style.top);A=parseInt(k.dom.style.left)}var u=pui.layout.Df(q);A-=u.x;v-=u.y;if(o.selection.Iu){A=o.selection.bk(A,pui.Hl);v=o.selection.bk(v,pui.Il)}var I=v-parseInt(k.dom.style.top),F=A-parseInt(k.dom.style.left);d.Mc(function(H){H.parentNode.removeChild(H);q.appendChild(H);H.style.top=parseInt(H.style.top)+I+"px";H.style.left=parseInt(H.style.left)+F+"px"});d.d!=null&&d.d.nh(q);d.i!=null&&d.i.nh(q);d.b=q;d.c.sizeMe!=null&&typeof d.c.sizeMe=="function"&&d.c.sizeMe();d.setScrollBar();
|
|
1356
|
-
k.properties.top=v+"px";k.properties.left=A+"px";o.
|
|
1357
|
+
k.properties.top=v+"px";k.properties.left=A+"px";o.Yz.style.display="none";o.Me.style.display="none";o.rs=null;o.selection.clear();o.selection.add(k);o.zn();pui.ide.$t()};this.Ux=function(){var k=d.c.e,o=k.designer;o.ca.An("Move "+o.selection.mx(),o);var q=parseInt(o.Me.style.top)-parseInt(k.dom.style.top),v=parseInt(o.Me.style.left)-parseInt(k.dom.style.left);d.Mc(function(A){A.parentNode.removeChild(A);o.b.appendChild(A);A.style.top=parseInt(A.style.top)+q+"px";A.style.left=parseInt(A.style.left)+
|
|
1357
1358
|
v+"px"});d.d!=null&&d.d.nh(o.b);d.i!=null&&d.i.nh(o.b);d.b=o.b;d.setScrollBar();k.properties.top=o.Me.style.top;k.properties.left=o.Me.style.left;o.Me.style.display="none";o.selection.clear();o.selection.add(k);o.zn();pui.ide.$t()};this.selectRow=function(k,o){if(!(!d.be||k<1||k>d.dataArray.length)){for(var q=!d.isFiltered()&&(typeof d.Uc=="undefined"||d.Uc!==true),v=0;v<d.dataArray.length;v++)if(q&&v==k-1||!q&&d.dataArray[v].o==k){if(d.dataArray[v].selected!=true){ha(d.dataArray[v],true,v);if(d.j!=
|
|
1358
1359
|
null&&!isNaN(d.j)&&d.j>0)d.Wh=k+d.j-1+(d.h?0:1)}}else if((d.singleSelection||!o)&&d.dataArray[v].selected==true)ha(d.dataArray[v],false,v);ce(d)}};this.deselectRow=function(k){function o(A){ha(d.dataArray[A],false,A);if(q)ce(d);else if(d.j!=null&&!isNaN(d.j)&&d.j>0){var u=d.h?1:0;A=A-d.j+1+u;A<d.k.length-1&&A>=u&&d.fd(A)}}if(!(!d.be||k<1||k>d.dataArray.length)){var q=d.isFiltered();if(!q&&(typeof d.Uc=="undefined"||d.Uc!==true))d.dataArray[k-1].selected==true&&o(k-1);else for(var v=0;v<d.dataArray.length;v++)if(d.dataArray[v].o==
|
|
1359
|
-
k&&d.dataArray[v].selected==true){o(v);break}}};this.wd=function(){for(var k=0;k<d.cells.length;k++){for(var o=k==0&&d.h,q=0;q<d.cells[k].length;q++){var v=d.cells[k][q],A=k%2==1;if(d.h)A=!A;
|
|
1360
|
-
d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""?true:false};this.
|
|
1360
|
+
k&&d.dataArray[v].selected==true){o(v);break}}};this.wd=function(){for(var k=0;k<d.cells.length;k++){for(var o=k==0&&d.h,q=0;q<d.cells[k].length;q++){var v=d.cells[k][q],A=k%2==1;if(d.h)A=!A;Ba(v,o,A,q)}!d.designMode&&!o&&d.fd(k)}};this.Na=function(){for(var k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)ya(k,o);if(Hc==null)Hc=d.Cf()};this.ea=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""||
|
|
1361
|
+
d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""?true:false};this.Zy=function(k){if(!k)k=d.borderColor;for(var o=0;o<d.n.length;o++)d.n[o].style.borderRightColor=k;for(o=0;o<d.k.length;o++)d.k[o].style.borderTopColor=k;d.borderColor=k};this.$y=function(k){if(k==null)k=d.borderWidth;k=parseInt(k);if(isNaN(k)||k<za&&d.designMode)k=za;for(var o=0;o<d.n.length;o++)d.n[o].style.borderRightWidth=k+"px";for(o=0;o<d.k.length;o++)d.k[o].style.borderTopWidth=k+"px";d.borderWidth=k;U();d.setScrollBar()};
|
|
1361
1362
|
this.hide=function(){d.Mc(function(k){k.style.visibility="hidden"});d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()};this.Yo=function(){d.We=true;if(d.h){for(var k=1;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)d.cells[k][o].style.display="none";for(k=2;k<d.k.length;k++)d.k[k].style.display="none";for(k=0;k<d.n.length;k++)d.n[k].style.display="none";d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()}else d.hide()};this.show=function(){d.Mc(function(v){v.style.visibility=""});var k=false,o=d.c.e;
|
|
1362
1363
|
if(o!=null){var q=o.designer.selection;if(q.Yd.length==1&&q.Yd[0].e==o)k=true}!k&&d.c.js&&d.c.js();d.setScrollBar()};this.yn=function(k){var o=d.n.length,q=document.createElement("div");q.className="grid-vline";if(d.bd!="")q.className+=" "+d.bd+"-vline";if(!d.designMode)q.Oe=d;q.style.position="absolute";var v=parseInt(d.c.style.left);if(o>0)v=parseInt(d.n[o-1].style.left)+d.ms;q.style.left=v+"px";q.style.top=d.c.style.top;v=0;if(d.k.length>0)v=parseInt(d.k[d.k.length-1].style.top)-parseInt(d.c.style.top);
|
|
1363
|
-
q.style.height=v+"px";v=d.borderWidth;if(v===null||v<za&&d.designMode)v=za;q.style.borderRightStyle="solid";q.style.borderRightWidth=v+"px";q.style.borderRightColor=d.borderColor;q.style.fontSize="0px";q.style.padding="0px";q.style.zIndex=d.
|
|
1364
|
+
q.style.height=v+"px";v=d.borderWidth;if(v===null||v<za&&d.designMode)v=za;q.style.borderRightStyle="solid";q.style.borderRightWidth=v+"px";q.style.borderRightColor=d.borderColor;q.style.fontSize="0px";q.style.padding="0px";q.style.zIndex=d.Kz;q.oncontextmenu=ta(false);d.b.appendChild(q);d.n[o]=q;U();Ea(d.n,o,true);if(o>0){o=o-1;for(q=1;q<d.k.length;q++){v=la(q-1,o);v.w=d.na&&(k||k==0)?k:o;oa(v)}}P();d.setScrollBar()};this.removeColumn=function(k){d.na?d.hideColumn(k):d.$p(k)};this.$p=function(k){if(d.n.length-
|
|
1364
1365
|
2<1)pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));else{if(d.designMode)k=k;else{k=Ca(k);if(k<0){pui.alert(pui.getLanguageText("runtimeMsg","cannot find col"));return}}d.moveColumn(k,d.cells[0].length);d.Sp();d.ac();d.Se()}};this.Sp=function(){var k=d.n.length;if(!(k<=0)){k-=1;d.n[k].parentNode.removeChild(d.n[k]);d.n[k]=null;d.n.splice(k,1);if(k>0)for(var o=0;o<d.cells.length;o++){d.cells[o][k-1].parentNode.removeChild(d.cells[o][k-1]);d.cells[o][k-1]=null;d.cells[o].splice(k-
|
|
1365
|
-
1,1)}
|
|
1366
|
+
1,1)}U();P();d.setScrollBar()}};this.moveColumn=function(k,o,q){function v(M,S,R,aa){if(M>S){if(R>S&&R<M)aa-=1;if(R==S)aa=M-1}if(S>M){if(R>=M&&R<S)aa+=1;if(R==S)aa=M}return aa}for(var A,u=0;u<d.cells.length;u++){var I=A=d.cells[u][k];if(d.cells[u].length>o){var F=d.cells[u][o];I.parentNode&&F&&F.parentNode&&I.parentNode.insertBefore(I,F)}else{var H=d.cells[u][d.cells[u].length-1];I.parentNode&&F&&F.parentNode&&I.parentNode.insertBefore(I,H.nextSibling)}d.cells[u].splice(o,0,A);A=k;o<=k&&A++;d.cells[u].splice(A,
|
|
1366
1367
|
1);for(I=0;I<d.cells[u].length;I++){A=d.cells[u][I];A.col=I}}for(u=1;u<d.n.length-1;u++)d.n[u].style.left=pui.ae(d.n[u-1].style.left)+pui.ae(d.cells[0][u-1].style.width)+"px";if(d.designMode){var L=false,O=d.c.e,Z=JSON!=null&&typeof JSON.parse=="function"&&typeof JSON.stringify=="function";u=function(M){var S,R=O.properties[M];if(!(R==null||R==""||pui.p(R))){var aa=pui.Nb(R);if(aa){if(!Z)return;S=JSON.parse(R.designValue)}else S=R.split(",");if(!(S.length==1&&M!="column headings"&&M!="column widths")){for(var X=
|
|
1367
1368
|
d.cells[0].length;S.length>X;){S.pop();aa&&R.translations.pop()}for(;S.length<X;){S.push("");aa&&R.translations.push(0)}S.splice(o,0,S[k]);aa&&R.translations.splice(o,0,R.translations[k]);X=k;o<=k&&X++;S.splice(X,1);aa&&R.translations.splice(X,1);if(aa){S=JSON.stringify(S);if(aa=R.designValue!=S){R.designValue=S;S=R}}else{S=S.join(",");aa=R!=S}if(aa){O.properties[M]=S;O.qb[M]=true;O.nd=true;L=O.designer.od[O.designer.Oa.vb]=true}}}};u("font family");u("font size");u("font style");u("font weight");
|
|
1368
1369
|
u("letter spacing");u("text align");u("text decoration");u("text transform");u("word spacing");u("header font family");u("header font size");u("header font style");u("header font weight");u("header text align");u("header font color");u("header background");u("column headings");F=d.c.e.properties["column headings"];if(pui.Nb(F)&&Z)d.columnHeadings=JSON.parse(F.designValue);else{if(F==null||typeof F!="string")F="";d.columnHeadings=F.split(",")}u("odd row font color");u("odd row background");u("even row font color");
|
|
1369
1370
|
u("even row background");u("row font color");u("row background");u("column widths");if(L){O.designer.qp();O.designer.pb.refresh();N=="dspf"&&pui.ide.refreshRibbon()}}d.Na();if(!d.designMode){if(d.ea()){u=d.dataProps["database fields"];if(u!=null&&u!=""){u=u.split(",");u.splice(o,0,u[k]);A=k;o<=k&&A++;u.splice(A,1);d.dataProps["database fields"]=u.join(",")}}if(d.B.length>0)for(u=0;u<d.B.length;u++){O=d.B[u];F=I=Number(O.column);F=d.na&&q?O.columnId==q.columnId?o:I>=o&&I<k+1?F+1:v(o,k,I,F):v(o,k,I,
|
|
1370
1371
|
F);if(I!=F)O.column=String(F)}d.columnHeadings.splice(o,0,d.columnHeadings[k]);A=k;o<=k&&A++;d.columnHeadings.splice(A,1);d.alignColumnTotals()}};this.jf=function(){var k=d.k.length,o=document.createElement("div");o.className="grid-hline";if(d.bd!="")o.className+=" "+d.bd+"-hline";if(!d.designMode)o.Oe=d;o.style.position="absolute";o.style.left=d.c.style.left;var q=parseInt(d.c.style.top);if(k>0){q=d.la;if(k==1&&d.h)q=d.db;q=parseInt(d.k[k-1].style.top)+q}o.style.top=q+"px";q=0;if(d.n.length>0){q=
|
|
1371
|
-
d.borderWidth;q=parseInt(d.n[d.n.length-1].style.left)-parseInt(d.c.style.left)+q}o.style.width=q+"px";q=d.borderWidth;if(q<za&&d.designMode)q=za;if(q!==null)o.style.borderTopWidth=q+"px";o.style.zIndex=d.px;if(d.c.style.visibility=="hidden")o.style.visibility="hidden";o.oncontextmenu=
|
|
1372
|
-
d.k[k]=null;d.k.splice(k,1);k=d.cells.length-1;if(k>=0){for(var o=d.cells[k].length-1;o>=0;o-=1){d.cells[k][o].parentNode.removeChild(d.cells[k][o]);d.cells[k][o]=null;d.cells[k].splice(o,1)}d.cells.splice(k,1)}
|
|
1372
|
+
d.borderWidth;q=parseInt(d.n[d.n.length-1].style.left)-parseInt(d.c.style.left)+q}o.style.width=q+"px";q=d.borderWidth;if(q<za&&d.designMode)q=za;if(q!==null)o.style.borderTopWidth=q+"px";o.style.zIndex=d.px;if(d.c.style.visibility=="hidden")o.style.visibility="hidden";o.oncontextmenu=ta(false);d.b.appendChild(o);d.k[k]=o;pa();Ea(d.k,k,false);if(k>0)for(o=1;o<d.n.length;o++){q=o-1;var v=la(k-1,q);v.w=q;oa(v)}P();d.setScrollBar()};this.Jj=function(){var k=d.k.length;if(!(k<=0)){k-=1;d.k[k].parentNode.removeChild(d.k[k]);
|
|
1373
|
+
d.k[k]=null;d.k.splice(k,1);k=d.cells.length-1;if(k>=0){for(var o=d.cells[k].length-1;o>=0;o-=1){d.cells[k][o].parentNode.removeChild(d.cells[k][o]);d.cells[k][o]=null;d.cells[k].splice(o,1)}d.cells.splice(k,1)}pa();P();d.setScrollBar()}};this.alignColumnTotals=function(){var k=0;if(d.h)k=1;k=d.cells[k];for(var o=0;o<k.length;o++)for(var q=k[o],v=q.children,A=0;A<v.length;A++){var u=v[A],I=u.id;I=I.split(".")[0]+"_total";I=Ab(I);if(I!=null)I.style.left=parseInt(d.c.style.left)+parseInt(q.style.left)+
|
|
1373
1374
|
parseInt(u.style.left)+"px"}};this.scrollToRow=function(k){k=parseInt(k,10);if(isNaN(k))console.log("scrollToRow cannot parseInt:",k);else{if(k<1)k=1;if(d.Ec)d.d.xd(k);else{d.j=k;d.getData()}return d.getRRN(k)}};this.setNumberOfRows=function(k){d.setProperty("number of rows",String(k));d.Na();d.wd();d.gu||d.getData()};this.render=function(){d.Na();d.wd();d.jc();d.We&&d.Yo()};this.refresh=function(){d.j=1;d.totalRecs=null;d.xa=false;if(d.Ec)d.d.Ta=d.totalRecs;pui.Qa=null;d.getData()};this.getRecordCount=
|
|
1374
1375
|
function(){var k;k=d.ea()?d.totalRecs:d.dataArray.length;if(k==null)k=0;return k};this.expandTreeLevel=function(k){if(k===0)d.Ce.expandAll();else{var o=d.Sb[k-1].node;fe(d.Ce,o)}d.$l(o)};this.collapseTreeLevel=function(k){if(k===0)d.Ce.collapseAll();else{var o=d.Sb[k-1].node;ge(d.Ce,o)}d.$l(o)};this.toggleTreeLevel=function(k){k=d.Sb[k-1].node;var o=d.Ce;if(k.Kd==="expanded"){ge(o,k);k.Kd="collapsed"}else{fe(o,k);k.Kd="expanded"}d.$l(k)};this.$l=function(k){if(k===undefined||k===null){var o=0;k=d.Sb.length}else{o=
|
|
1375
1376
|
parseInt(k.data)-1;k=he(d.Ce,k)}for(o=o;o<k;o++){var q=o+1,v=d.Sb[o].node;v.Qg?d.gl(q,false,false):d.gl(q,true,false);d.Sb[o].Tu=v.Kd==="collapsed"?true:false}d.getData()};this.lx=function(){if(d.Xe!==null)return d.Xe;for(var k=d.Xe=0;k<d.B.length;k++)if(d.B[k].value.fieldName.toUpperCase()===d.ag.toUpperCase()){d.Xe=d.B[k].columnId;break}return d.Xe};this.clear=function(k){d.dataArray=[];for(var o=0;o<d.B.length;o++)d.B[o].domEls=[];k&&d.refresh()};this.push=function(k,o){var q=gb(k);d.dataArray.push(q);
|
|
@@ -1387,8 +1388,8 @@ d.X;for(q=q;q<o.length;q++){for(var F=0;F<k.length;F++){var H=o[q][k[F]];if(v.pu
|
|
|
1387
1388
|
this.startFilter=function(k){if(typeof k=="number")k=d.cells[0][Ca(k)];if(k!=null){d.al=k;d.ab.type=d.ik()?"pgfilter":"filter";d.ab.Rf=d.Gw;var o=pui.getLanguageText("runtimeText","filter text")+"...";d.ab.xc.placeholder=o;d.Tc||Yd(d.ab,k);if(d.ea())d.ab.interval=250;d.Zj(k);d.Y.w=k.w;d.Y.col=k.col;if(!d.Tc){d.ab.show();d.ab.clear()}if(k.ta!=null&&k.ta!=""){d.ab.setText(k.yh?"":k.ta);d.Y.text=k.ta;d.getData()}if(d.Tc)(k=k.querySelector("input.qf"))&&k.focus();else d.ab.focus()}};this.Gw=function(k){var o=
|
|
1388
1389
|
d.al;k==""?d.removeFilter(o):d.setFilter(o,k)};this.setFilter=function(k,o){if(!d.tc){var q=false;if(k==="*all"){q=true;k=d.cells[0][0]}else!d.cells[0][0].oc&&d.cells[0][0].yh&&d.removeFilter(d.cells[0][0]);if(typeof k=="number")k=d.cells[0][Ca(k)];if(k!=null){if(d.ik())return eb(k,o);d.Zj(k,q);d.Y.w=k.w;d.Y.col=q?"*all":k.col;d.Y.text=o;if(q){for(var v=d.cells[0],A=0;A<v.length;A++){d.Ij(v[A]);v[A].ta=null}k.yh=true}else d.rm(k);k.ta=o;if(d.Tc)if(A=k.querySelector("input.qf"))A.value=o;if(d.ea()&&
|
|
1389
1390
|
d.xa==false){d.totalRecs=null;d.j=1;d.mask();d.Mb()}else{v=k.Rj;var u=k.w;d.X=[];for(A=0;A<d.dataArray.length;A++){var I=d.dataArray[A];if(q)I.Ld=[];if(I.o==null)I.o=A+1;for(var F=0;F<v.length;F++){var H=I[v[F]],L=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[F]!=null&&typeof k.pui.formats[F]=="object"){var O=k.pui.formats[F];O.value=H;H=pui.vc.format(O)}if(k.pui.vd!=null&&k.pui.vd[F]!=null&&d.B[k.pui.vd[F]]!=null&&typeof d.B[k.pui.vd[F]]=="object"){O=d.B[k.pui.vd[F]];var Z=parseInt(O.left,
|
|
1390
|
-
10),M=parseInt(O.top,10);if(O.visibility=="hidden"||!isNaN(Z)&&!isNaN(M)&&Z<0&&M<0)L=true}}if(I.Ld==null)I.Ld=[];I.Ld[u]=true;if(!L&&d.
|
|
1391
|
-
this.getFilter=function(k){var o=false;if(k==="*all"){k=0;o=true}if(typeof k=="number")k=d.cells[0][o?0:Ca(k)];if(k==null||typeof k.ta=="undefined")return null;if(o&&!k.yh||!o&&k.yh)return null;return k.ta};this.
|
|
1391
|
+
10),M=parseInt(O.top,10);if(O.visibility=="hidden"||!isNaN(Z)&&!isNaN(M)&&Z<0&&M<0)L=true}}if(I.Ld==null)I.Ld=[];I.Ld[u]=true;if(!L&&d.Cz(H,o)){I.Ld[u]=false;break}}d.Vj(I);!I.ye&&!I.sc&&d.X.push(I)}}d.getData();Ta&&d.ou(q,o);Y("onfilterchange")}}};this.ou=function(k,o){var q=[];if(k)q.push({text:o,column:"*all",curCol:"*all"});else for(var v=d.cells[0],A=0;A<v.length;A++){var u=v[A];u.ta!=null&&u.ta!=""&&q.push({text:u.ta,column:u.w,curCol:u.col})}q.length<1?d.clearState("filters"):Q(q,"filters")};
|
|
1392
|
+
this.getFilter=function(k){var o=false;if(k==="*all"){k=0;o=true}if(typeof k=="number")k=d.cells[0][o?0:Ca(k)];if(k==null||typeof k.ta=="undefined")return null;if(o&&!k.yh||!o&&k.yh)return null;return k.ta};this.Cz=function(k,o){function q(F){if(v){var H=F.split(".").join("").replace(",",".");if(!isNaN(H))return H}if(F.indexOf(",")!=-1){H=F.split(",").join("");if(!isNaN(H))return H}return F}var v=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J");if(o.substr(0,8).toLowerCase()==
|
|
1392
1393
|
"between "){var A=o.substr(8).toLowerCase().split(" ");if(A.length==3&&A[1]=="and"){var u=A[0];A=A[2];if(!isNaN(u)&&!isNaN(A)){u=Number(u);A=Number(A);k=Number(k)}else k=k.toLowerCase();return k>=u&&k<=A}}if(o.substr(0,7).toLowerCase()=="values "){o=o.substr(7).toLowerCase();if(o=="")return true;u=o.split(",");for(A=0;A<u.length;A++){o=Kb(u[A]).toLowerCase();if(o==" "&&k=="")return true;if(Kb(k).toLowerCase()==o)return true}return false}else if(o.substring(0,8).toLowerCase()=="jvalues "){o=o.substr(8).toLowerCase();
|
|
1393
1394
|
if(o=="")return true;try{u=JSON.parse(o);if(!Array.isArray(u))return false}catch(I){return false}for(A=0;A<u.length;A++){o=Kb(u[A]).toLowerCase();if(o==" "&&k=="")return true;if(Kb(k).toLowerCase()==o)return true}return false}else if(o.substr(0,12).toLowerCase()=="starts with "){o=o.substr(12).toLowerCase();return o==k.substr(0,o.length).toLowerCase()}else if(o.substr(0,2)=="=="){o=o.substr(2);if(o==" "&&k=="")return true;if(o=="")return true;return o.toLowerCase()==k.toLowerCase()}else if(o.substr(0,
|
|
1394
1395
|
2)==">="){o=o.substr(2);if(o=="")return true;o=q(o);k=q(k);return isNaN(o)?k.toLowerCase()>=o.toLowerCase():Number(k)>=Number(o)}else if(o.substr(0,2)=="<="){o=o.substr(2);if(o=="")return true;o=q(o);k=q(k);return isNaN(o)?k.toLowerCase()<=o.toLowerCase():Number(k)<=Number(o)}else if(o.substr(0,2)=="!="||o.substr(0,2)=="<>"){o=o.substr(2);if(o=="")return true;return isNaN(o)?k.toLowerCase().indexOf(o.toLowerCase())<0:Number(o)!=Number(k)}else if(o.substr(0,1)=="="){o=o.substr(1);if(o==" "&&k=="")return true;
|
|
@@ -1402,31 +1403,31 @@ o[q];v.ta!=null&&v.ta!=""&&k++}return k};this.isFiltered=function(k){if(d.yg!=nu
|
|
|
1402
1403
|
ub(q)}};var o=k;if(o.firstChild!=null&&o.firstChild.tagName=="DIV")o=o.firstChild;if(d.kc!=null&&d.kc.parentNode===o)o.insertBefore(k.oc,d.kc);else k.ed!=null&&k.ed.parentNode===o?o.insertBefore(k.oc,k.ed):o.appendChild(k.oc)}};this.Ij=function(k){k.oc!=null&&k.oc.parentNode!=null&&k.oc.parentNode.removeChild(k.oc);k.oc=null};this.isRowFilteredOut=function(k){k=b(k,false);var o=false;if(k!=null&&k.ye!=null&&k.ye===true)o=true;return o};this.ik=function(){return d.c.As!=null};this.hideColumn=function(k){return d.Ws(k,
|
|
1403
1404
|
false)};this.showColumn=function(k){return d.Ws(k,true)};this.isColumnHidden=function(k){if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var o=0;o<d.ga.length;o++)if(d.ga[o].columnId===k)return d.ga[o].showing!==true;return false};this.Ns=function(k,o){var q=o,v=true;if(d.Uc===true||d.isFiltered(true)){v=false;for(var A=0;A<k.length;A++)if(k[A].o==q){q=A+1;v=true;break}}if(q<1||q>k.length||v==false)q=null;return q};this.getRowNumber=function(k){var o=d.dataArray;if(d.isFiltered())o=d.X;var q=d.Ns(o,
|
|
1404
1405
|
k);if(q==null)q=k;if(q<1)q=1;if(q>o.length)q=o.length;return q};this.getRRN=function(k){k=k;var o=d.dataArray;if(d.isFiltered())o=d.X;if(k<1)k=1;if(k>o.length)k=o.length;o=o[k-1];return o!=null&&o.o?o.o:k};this.Ws=function(k,o){if(!this.na)return false;if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var q=d.ga,v=0;v<q.length;v++){var A=q[v];if(A.columnId===k)return A.showing===o?true:d.Wo(A)}return false};this.Wo=function(k,o){if(!this.na)return false;var q=d.ga,v=!k.showing;if(d.n.length-2<1&&
|
|
1405
|
-
!v){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var A=k.columnId,u=k.currentColumn,I=q.Ki,F=[],H=d.cells[0],L=0,O=pui["grid column resize style"]!=="simple",Z=d.Cf().split(",").map(function(aa){return Number(aa)}),M=0;M<q.length;M++){if(k===q[M]){q[M].showing=v;if(!v){var S=Ca(q[M].columnId);q[M].width=Z[S]}k=q[M]}if(q[M].showing){S=Ca(q[M].columnId);if(S>-1)q[M].width=Z[S];F.push(q[M])}else L+=q[M].width-(q[M].lastAdjustment||0)}if(v){d.yn(A);S=Ca(A);M=0;if(
|
|
1406
|
-
I)if(u==-1)M=S;else{if(I[u]===A){u=u-1;for(Z=I[u];Z>=0;){Z=Ca(Z);if(Z!=-1){if(Z<=u)M=Z+1;break}else{u-=1;Z=I[u]}}}}else if(A>0){M=F.filter(function(aa){return aa.columnId<A}).reduce(function(aa,X){return X.columnId>=aa?X.columnId:aa},0);M=Ca(M)+1}d.moveColumn(S,M,k);d.Na();d.wd()}else d.$p(A);if(!o&&(v||d.ea()))d.getData();d.sortable&&d.Al(true);var R=[];v=F.sort(function(aa,X){return Ca(aa.columnId)>Ca(X.columnId)?1:-1}).map(function(aa){aa.blankHeader?R.push(""):R.push(aa.name);if(d.qd||O){if(d.
|
|
1407
|
-
return aa.orginalWidth}for(var X=Math.floor(L/F.length),ia=aa.lastAdjustment||0,
|
|
1408
|
-
M,true,true);d.qd&&d.ac();d.columnHeadings=R;d.jc();Bb();if(
|
|
1409
|
-
A?1:-1}).map(function(o){if(o.blankHeader)return"";return o.name})};this.Bu=function(){function k(X){X=X.target;if(X.tagName=="TD")X=X.parentNode;if(X.tagName!="TR")return null;return X}function o(X){var ia=k(X);if(ia){X.stopPropagation();Za.Of=ia;pui.Q(ia,"move_origin");try{X.dataTransfer.setData("text/plain",ia.w)}catch(
|
|
1410
|
-
"move_valid"):pui.da(X,"move_valid");if(Za.Of==null)console.log("Origin row not set.");else{var
|
|
1411
|
-
Za.Of.sectionRowIndex-1){ub(X);X.dataTransfer.dropEffect="move";pui.Q(ia,"move_valid")}}}}function u(X){ub(X);if(X=k(X)){var ia=X.parentNode.parentNode;if(X.parentNode==ia.tHead)X=ia.tHead.lastChild;pui.da(X,"move_valid")}}function I(X){F(X.target.parentNode.parentNode.parentNode)}function F(X){for(var ia=0,
|
|
1412
|
-
"";
|
|
1413
|
-
"pui-material-icons";L.innerHTML="check";T(L,"click",function(){Za.style.display="none";for(var X=[],ia=0;ia<O.tBodies[0].rows.length;ia++){var
|
|
1414
|
-
"sort");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","order");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","column");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","direction");var M=document.createElement("tbody");O.appendChild(M);var S=d.cells[0].map(function(X){for(var ia=-1,
|
|
1406
|
+
!v){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var A=k.columnId,u=k.currentColumn,I=q.Ki,F=[],H=d.cells[0],L=0,O=pui["grid column resize style"]!=="simple",Z=d.Cf().split(",").map(function(aa){return Number(aa)}),M=0;M<q.length;M++){if(k===q[M]){q[M].showing=v;if(!v){var S=Ca(q[M].columnId);q[M].width=Z[S]}k=q[M]}if(q[M].showing){S=Ca(q[M].columnId);if(S>-1)q[M].width=Z[S];F.push(q[M])}else L+=q[M].width-(q[M].lastAdjustment||0)}if(v){d.yn(A);S=Ca(A);M=0;if(gc&&
|
|
1407
|
+
I)if(u==-1)M=S;else{if(I[u]===A){u=u-1;for(Z=I[u];Z>=0;){Z=Ca(Z);if(Z!=-1){if(Z<=u)M=Z+1;break}else{u-=1;Z=I[u]}}}}else if(A>0){M=F.filter(function(aa){return aa.columnId<A}).reduce(function(aa,X){return X.columnId>=aa?X.columnId:aa},0);M=Ca(M)+1}d.moveColumn(S,M,k);d.Na();d.wd()}else d.$p(A);if(!o&&(v||d.ea()))d.getData();d.sortable&&d.Al(true);var R=[];v=F.sort(function(aa,X){return Ca(aa.columnId)>Ca(X.columnId)?1:-1}).map(function(aa){aa.blankHeader?R.push(""):R.push(aa.name);if(d.qd||O){if(d.Oy)return aa.width;
|
|
1408
|
+
return aa.orginalWidth}for(var X=Math.floor(L/F.length),ia=aa.lastAdjustment||0,va=0;va<q.length;va++)if(q[va].columnId===aa.w){q[va].lastAdjustment=X;break}X=aa.width+X-ia;return X<0?aa.width:X});if(Ta){q=q.map(function(aa){if(aa.showing)aa.savedColumn=Ca(aa.columnId);return aa});S={cols:q,headings:R};if(Ta){M=K();if(M!=null)I=M.colSequence}Q(S,"hidableColState");Q(v,"colWidths");Q(I,"colSequence")}d.Yf(v);d.Na();d.wd();if(gc)for(M=0;M<H.length;M++)oa(H[M],true,d.sortable);if(hd)for(M=0;M<d.n.length;M++)Ea(d.n,
|
|
1409
|
+
M,true,true);d.qd&&d.ac();d.columnHeadings=R;d.jc();Bb();if(gc&&Ta)if(I!=null){H=Array(I.length);for(M=0;M<H.length;M++)H[M]=d.cells[0][I[M]];for(M=0;M<H.length;M++)d.moveColumn(H[M].col,M)}return true};this.Js=function(k){if(typeof k!=="object")return d.columnHeadings.split(",");return k.filter(function(o){return o.showing}).sort(function(o,q){var v,A;if(d.designMode&&o.currentColumn!=null&&q.currentColumn!=null){v=o.currentColumn;A=q.currentColumn}else{v=Ca(o.columnId);A=Ca(q.columnId)}return v>
|
|
1410
|
+
A?1:-1}).map(function(o){if(o.blankHeader)return"";return o.name})};this.Bu=function(){function k(X){X=X.target;if(X.tagName=="TD")X=X.parentNode;if(X.tagName!="TR")return null;return X}function o(X){var ia=k(X);if(ia){X.stopPropagation();Za.Of=ia;pui.Q(ia,"move_origin");try{X.dataTransfer.setData("text/plain",ia.w)}catch(va){}}}function q(X){if(X=k(X)){pui.da(X,"move_origin");Za.Of=null}}function v(X){ub(X);if(X=k(X)){var ia=X.parentNode.parentNode;X.parentNode==ia.tHead?pui.da(ia.tHead.lastChild,
|
|
1411
|
+
"move_valid"):pui.da(X,"move_valid");if(Za.Of==null)console.log("Origin row not set.");else{var va=X.sectionRowIndex;if(X.parentNode==ia.tHead)va=-1;va++;X=ia.tBodies[0].rows[va];if(Za.Of!==X){ia.tBodies[0].removeChild(Za.Of);ia.tBodies[0].insertBefore(Za.Of,X)}F(ia.tBodies[0])}}}function A(X){if(Za.Of!=null){var ia=k(X);if(ia!=null){var va=ia.parentNode.parentNode;if(ia.parentNode==va.tHead){ub(X);X.dataTransfer.dropEffect="move";pui.Q(va.tHead.lastChild,"move_valid")}else if(ia!=Za.Of&&ia.sectionRowIndex!=
|
|
1412
|
+
Za.Of.sectionRowIndex-1){ub(X);X.dataTransfer.dropEffect="move";pui.Q(ia,"move_valid")}}}}function u(X){ub(X);if(X=k(X)){var ia=X.parentNode.parentNode;if(X.parentNode==ia.tHead)X=ia.tHead.lastChild;pui.da(X,"move_valid")}}function I(X){F(X.target.parentNode.parentNode.parentNode)}function F(X){for(var ia=0,va=0;va<X.rows.length;va++){var Ma=X.rows[va],ja=Ma.cells[1],sa=Ma.cells[3].children[0];if(Ma.cells[0].children[0].checked){Ma.Ob=ia;ja.innerHTML=ia;ia++;sa.style.visibility=""}else{Ma.Ob=-1;ja.innerHTML=
|
|
1413
|
+
"";sa.style.visibility="hidden"}}}if(d.c.parentNode!=null){if(Za==null){Za=document.createElement("div");Za.className="grid-multisort"+(d.bd!=""?" "+d.bd+"-multisort":"");Za.style.top=d.c.offsetTop+"px";Za.style.left=d.c.offsetLeft+"px";var H=document.createElement("div");new pui.af({Gk:H,move:Za});var L=document.createElement("button");L.className="pui-material-icons";L.innerHTML="close";T(L,"click",function(){Za.style.display="none"});H.appendChild(L);L=document.createElement("button");L.className=
|
|
1414
|
+
"pui-material-icons";L.innerHTML="check";T(L,"click",function(){Za.style.display="none";for(var X=[],ia=0;ia<O.tBodies[0].rows.length;ia++){var va=O.tBodies[0].rows[ia];va.Ob>=0&&X.push({as:va.w+0,Ew:va.sa})}d.zt(X)});H.appendChild(L);H.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","sort multiple")));Za.appendChild(H);var O=document.createElement("table");H=O.createTHead().insertRow();H.ondrop=v;H.ondragover=A;H.ondragleave=u;var Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText",
|
|
1415
|
+
"sort");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","order");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","column");Z=H.insertCell();Z.innerHTML=pui.getLanguageText("runtimeText","direction");var M=document.createElement("tbody");O.appendChild(M);var S=d.cells[0].map(function(X){for(var ia=-1,va=0;va<Ua.length;va++)if(X===Ua[va]){ia=va;break}va=X.sa;if(va==null)va=p(X.w);return{w:X.w,name:X.textContent,sa:va,Ob:ia}});S.sort(function(X,ia){if(X.Ob>=0&&ia.Ob>=0)return X.Ob-
|
|
1415
1416
|
ia.Ob;if(X.Ob>=0&&ia.Ob<0)return-1;if(X.Ob<0&&ia.Ob>=0)return 1;return 0});for(var R=0;R<S.length;R++){L=S[R].name;Z=S[R].w;var aa=S[R].sa;H=M.insertRow();H.draggable=true;H.w=Z;H.sa=aa;H.Ob=S[R].Ob;H.ondragstart=o;H.ondragend=q;H.ondrop=v;H.ondragover=A;H.ondragleave=u;Z=H.insertCell();aa=document.createElement("input");aa.type="checkbox";aa.name=L+"_sort";aa.onclick=I;aa.checked=H.Ob>=0;Z.appendChild(aa);Z=H.insertCell();Z.innerHTML=H.Ob>=0?H.Ob:" ";Z=H.insertCell();Z.innerHTML=L;Z.draggable=
|
|
1416
1417
|
true;Z=H.insertCell();L=document.createElement("button");L.className="pui-material-icons";L.innerHTML=H.sa?"arrow_downward":"arrow_upward";L.style.visibility=H.Ob>=0?"":"hidden";T(L,"click",function(X){var ia=X.target.parentNode.parentNode;if(X.target.innerHTML=="arrow_downward"){X.target.innerHTML="arrow_upward";ia.sa=false}else{X.target.innerHTML="arrow_downward";ia.sa=true}});L.enabled=false;Z.appendChild(L)}Za.appendChild(O);d.c.parentNode.appendChild(Za)}else if(Za.style.display==""){Za.style.top=
|
|
1417
1418
|
d.c.offsetTop+"px";Za.style.left=d.c.offsetLeft+"px"}else{M=Za.querySelector("table").tBodies[0];for(R=0;R<M.childNodes.length;R++){H=M.childNodes[R];S=false;for(L=0;L<Ua.length;L++)if(H.w==Ua[L].w){H.sa=Ua[L].sa;H.childNodes[0].firstChild.checked=true;if(S=H.childNodes[3].firstChild)S.innerHTML=H.sa?"arrow_downward":"arrow_upward";S=true;break}if(!S)H.childNodes[0].firstChild.checked=false}F(M)}Za.style.display="";if(d.c.parentNode.getAttribute("container")=="true"&&d.c.parentNode.offsetHeight>0)if(Za.offsetHeight>
|
|
1418
|
-
d.c.parentNode.offsetHeight-54)Za.style.height=d.c.parentNode.offsetHeight-54+"px"}};this.
|
|
1419
|
-
"td")if(this.cells[0].children[0].checked==false)ia=this.cells[0].children[0].checked=true;else ia=this.cells[0].children[0].checked=false;if(Pa.target.localName=="input")if(this.cells[0].children[0].checked==true)ia=this.cells[0].children[0].checked=true;else ia=this.cells[0].children[0].checked=false;X=this.cells[1].innerHTML;X!=null&&S.has(X)&&S.set(X,ia)}function A(Pa,
|
|
1419
|
+
d.c.parentNode.offsetHeight-54)Za.style.height=d.c.parentNode.offsetHeight-54+"px"}};this.pz=function(k){function o(){H=O.insertRow();H.w=Z;H.onclick=v;L=H.insertCell();var Pa=document.createElement("input");Pa.type="checkbox";Pa.name=X+"_filter";Pa.checked=ia;L.appendChild(Pa);L=H.insertCell();L.innerHTML=X}function q(){aa=S.entries();va=S.size;for(var Pa=va<50?va:50,db=0;db<Pa;db++){R=aa.next().value;X=R[0];ia=R[1];o();Ma++}$a.appendChild(F);d.c.parentNode.appendChild($a)}function v(Pa){if(Pa.target.localName==
|
|
1420
|
+
"td")if(this.cells[0].children[0].checked==false)ia=this.cells[0].children[0].checked=true;else ia=this.cells[0].children[0].checked=false;if(Pa.target.localName=="input")if(this.cells[0].children[0].checked==true)ia=this.cells[0].children[0].checked=true;else ia=this.cells[0].children[0].checked=false;X=this.cells[1].innerHTML;X!=null&&S.has(X)&&S.set(X,ia)}function A(Pa,db,Cb,Va,$b){d.mask();d.Mb();if(Pa==null)Pa=-1;if(db==null)db=1;var Rb=null;Rb=pui.rd(d.dataProps);d.Qc="";if(d.isFiltered())for(var Fb=
|
|
1420
1421
|
d.cells[0],kd=0,ld=0;ld<Fb.length;ld++){var sc=Fb[ld];if(sc.w>=0&&sc.ta!=null){var Me=rb(sc.w);d.Qc+="&fltrcol"+String(kd)+"="+(sc.w+1+Me);d.Qc+=d.St(String(kd),sc.ta);Rb+=d.Qc;kd++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Fb!=null)Rb+="&order="+d.Fb;Fb=Vb("PUI0009102.PGM");if(Va)Fb=pui.mf(Va);Va=new pui.Ajax(Fb);Va.method="post";Va.async=true;if(pui.ba)Va.postData="AUTH="+pui.ba;else{Va.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")Va.postData+="&VID="+
|
|
1421
|
-
pui.vId}Va.postData+="&q="+encodeURIComponent(pui.ad(d.c));Fb=d.dataProps["order by"];if(d.Fb!=null)Fb=d.Fb;if(Fb&&Fb!="")Va.postData+="&order="+Fb;else if(pb()=="mssql")Va.postData+="&order=(select null)";if(Rb!="")Va.postData+="&"+Rb;Va.postData+="&limit="+Pa+"&start="+
|
|
1422
|
-
if(pui.isCloud)Va.postData+="&workspace_id="+pui.cloud.ws.id;Va.onready=function(
|
|
1423
|
-
|
|
1422
|
+
pui.vId}Va.postData+="&q="+encodeURIComponent(pui.ad(d.c));Fb=d.dataProps["order by"];if(d.Fb!=null)Fb=d.Fb;if(Fb&&Fb!="")Va.postData+="&order="+Fb;else if(pb()=="mssql")Va.postData+="&order=(select null)";if(Rb!="")Va.postData+="&"+Rb;Va.postData+="&limit="+Pa+"&start="+db;if(Cb!=null&&Cb==true)Va.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)Va.postData+="&UTF8=Y";Pa=d.dataProps["allow any select statement"];if(Pa!=null&&(Pa=="true"||Pa==true))Va.postData+="&FetchCounter=Y";
|
|
1423
|
+
if(pui.isCloud)Va.postData+="&workspace_id="+pui.cloud.ws.id;Va.onready=function(hc){var Gb,ic,Nb;if(Gb=Ib(hc,"Run SQL SELECT Query")){d.mask();d.Mb();hc=Gb.results;var Sb=Gb.totalRecs;if(Sb!=null)d.totalRecs=Sb;if(hc.length>=1){var Db=cb(d.B);Sb=[];for(Nb in Gb.results[0])Db.indexOf(Nb)==-1&&Sb.push(Nb);Nb=Sb;Gb=[];for(Db=0;Db<d.B.length;Db++)if(d.B[Db]&&d.B[Db].value&&d.B[Db].value.fieldName){var Kc=d.B[Db].value.fieldName;Nb.indexOf(Kc)!=-1&&Gb.push(Kc)}Sb=Gb.length===0?Sb:Gb;for(Gb=0;Gb<hc.length;Gb++){Db=
|
|
1424
|
+
hc[Gb];if($b.fieldName!=null)for(ic in Db){if(ic.toUpperCase()==$b.fieldName.toUpperCase()){Nb=Db[ic];S.set(Nb,false)}}else{d.dataArray=hc;d.tc=false;d.xa=true;Kc=Sb[$b.w];for(ic in Db)if(ic==Kc){Nb=Db[ic];S.set(Nb,false)}}}if(S.size>0){q();d.unMask()}}}};d.tc=true;Va.send()}if(d.c.parentNode!=null)if(!pui.is_ie){d.mask();d.Mb();$a&&$a.parentNode.removeChild($a);$a=document.createElement("div");$a.className="grid-multifilter"+(d.bd!=""?" "+d.bd+"-multifilter":"");if(k!=null){$a.style.top=d.c.offsetTop+
|
|
1424
1425
|
k.offsetHeight+"px";$a.style.left=d.c.offsetLeft+k.offsetLeft+"px";if($a.style.top==null||$a.style.left==null){$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px"}}else{$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px"}var u=document.createElement("div");new pui.af({Gk:u,move:$a});var I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="close";T(I,"click",function(){$a.style.display="none";if(d.tc==true)d.tc=false;$a=null;if(d.xa==true&&d.dataProps["load all rows"]!=
|
|
1425
|
-
"true")d.xa=false});u.appendChild(I);I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="check";T(I,"click",function(){$a.style.display="none";d.mask();d.Mb();aa=S.entries();
|
|
1426
|
-
u.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));$a.appendChild(u);var F=document.createElement("table"),H=F.createTHead().insertRow(),L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter data");var O=document.createElement("tbody");F.appendChild(O);if(k!=null){var Z=k.w;d.Zj(k);var M=k.Rj}rows=d.dataArray.length;var S=new Map,R=[],aa=[],X,ia=false,
|
|
1427
|
-
ja=k.ta;if(d.ea()&&d.dataProps["load all rows"]!="true"){M=d.dataProps["data url"];if(M=="")M=null;A(-1,1,d.totalRecs==null,M,k)}else{u=d.dataArray;if(d.isFiltered()&&d.X!=null&&d.X.length>0)u=d.X;for(I=0;I<u.length;I++){var
|
|
1428
|
-
null&&d.B[k.pui.vd[
|
|
1429
|
-
|
|
1426
|
+
"true")d.xa=false});u.appendChild(I);I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="check";T(I,"click",function(){$a.style.display="none";d.mask();d.Mb();aa=S.entries();va=S.size;for(var Pa=[],db=0;db<va;db++){R=aa.next().value;X=R[0];ia=R[1];ia==true&&Pa.push(X)}ja="JVALUES "+JSON.stringify(Pa);if(d.tc==true)d.tc=false;if(d.xa==true&&d.dataProps["load all rows"]!="true")d.xa=false;ja==null||Pa.length==0?d.removeFilter(Z):d.setFilter(k,ja);d.unMask();$a=null});u.appendChild(I);
|
|
1427
|
+
u.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));$a.appendChild(u);var F=document.createElement("table"),H=F.createTHead().insertRow(),L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter data");var O=document.createElement("tbody");F.appendChild(O);if(k!=null){var Z=k.w;d.Zj(k);var M=k.Rj}rows=d.dataArray.length;var S=new Map,R=[],aa=[],X,ia=false,va=0,Ma=0,
|
|
1428
|
+
ja=k.ta;if(d.ea()&&d.dataProps["load all rows"]!="true"){M=d.dataProps["data url"];if(M=="")M=null;A(-1,1,d.totalRecs==null,M,k)}else{u=d.dataArray;if(d.isFiltered()&&d.X!=null&&d.X.length>0)u=d.X;for(I=0;I<u.length;I++){var sa=u[I];if(sa.o==null)sa.o=I+1;for(var Ja=0;Ja<M.length;Ja++){var Oa=sa[M[Ja]],wa=false;if(k.pui!=null)if(k.pui.formats!=null&&k.pui.formats[Ja]!=null&&typeof k.pui.formats[Ja]=="object"){var Ha=k.pui.formats[Ja];Ha.value=Oa;Oa=pui.vc.format(Ha)}if(k.pui.vd!=null&&k.pui.vd[Ja]!=
|
|
1429
|
+
null&&d.B[k.pui.vd[Ja]]!=null&&typeof d.B[k.pui.vd[Ja]]=="object"){Ha=d.B[k.pui.vd[Ja]];var Qa=parseInt(Ha.left,10),Jb=parseInt(Ha.top,10);if(Ha.visibility=="hidden"||!isNaN(Qa)&&!isNaN(Jb)&&Qa<0&&Jb<0)wa=true}wa||S.set(Oa,ia);ia=false}}if(S.size>0){q();d.unMask()}}$a.style.display="";if(d.c.parentNode.getAttribute("container")=="true"&&d.c.parentNode.offsetHeight>0)if($a.offsetHeight>d.c.parentNode.offsetHeight-54)$a.style.height=d.c.parentNode.offsetHeight-54+"px";F.onscroll=function(){var Pa,db=
|
|
1430
|
+
va-Ma;if(!(va<=50||db==0))if($a.scrollTop>=$a.scrollHeight-$a.offsetHeight)if(db<=50)for(Pa=0;Pa<db;Pa++){R=aa.next().value;X=R[0];ia=R[1];o();Ma++}else for(Pa=0;Pa<50;Pa++){R=aa.next().value;X=R[0];ia=R[1];o();Ma++}}}}};pui.mk.prototype=Object.create(pui.li.prototype);
|
|
1430
1431
|
pui.li.Xi=function(){var b=[{name:"Identification",category:true},{name:"id",maxLength:75,V:"id",a:"id",help:"Specifies the ID that is used to access the grid from client-side code.",bind:false,wa:false},{name:"record format name",displayName:pui.nodedesigner?"name":undefined,a:"blank",help:"Specifies the name that is used to access this grid from server code.",maxLength:pui.viewdesigner||pui.nodedesigner?null:10,bind:false,context:"dspf",wa:false},{name:"description",a:"blank",help:"Describes the grid.",
|
|
1431
1432
|
bind:false,context:"dspf"},{name:"parent window",V:"parentWindow",a:"blank",help:"Sets the window that this field belongs to.",context:"genie"},{name:"screen identifier",choices:["true","false"],Id:false,a:"false",help:"If set to true, this element will be used to detect the screen. The identifier element should be a static output field that is unique to this screen. For example, if the screen has a unique heading, it can be used as the identifier. At least one element on the screen must be marked as an identifier before you can save the screen. When appropriate, you can use a combination of several elements to uniquely identify the screen.",
|
|
1432
1433
|
context:"genie"},{name:"field type",displayName:"widget type",choices:["grid"],Id:false,a:"widget",help:"Determines the type of control that is used to render the element.",bind:false,wa:false},{name:"value",a:"blank",help:"Sets the initialization value for the current element."},{name:"Subfile Settings",category:true,context:"dspf"},{name:"display subfile",choices:["true","false"],g:true,f:["indicator","expression"],a:"true",help:"This property tells the system when to display grid records. It represents the SFLDSP keyword.",
|
|
@@ -1515,17 +1516,17 @@ bind:false,context:"dspf"},{name:"onrowclick",wf:true,type:"js",a:"blank",help:"
|
|
|
1515
1516
|
bind:false},{name:"onrowmouseout",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is moved off of a row within the grid. The script can determine the row number using the <b>row</b> variable.",bind:false},{name:"onpagedown",wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the user pages down using the grid's scrollbar or the grid's paging bar. To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",bind:false},{name:"onpageup",
|
|
1516
1517
|
wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the user pages up using the grid's scrollbar or the grid's paging bar. To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",bind:false},{name:"onscroll",type:"js",a:"blank",help:"Initiates a client-side script when the user scrolls using the grid's scrollbar. The <b>row</b> variable in the script provides the top row of the grid.",bind:false}];if(pui.nodedesigner===true){var a=b.map(function(c){return c.name}).indexOf("remote system name");
|
|
1517
1518
|
b.splice(a,1)}return b};function de(b,a,c,e){var f,g,h=b.k.length-1;if(b.h){f=1;g=0}else{f=0;g=1}if(b.j>0&&b.Pb>0){var l=b.isFiltered()?b.X:b.dataArray;b=b.j-1;var n=0,m=0;f=f;for(var r=b;r<l.length&&r<h+b+n;r++){var p=l[r];if(p){if(p.sc===true)n++;else{m++;typeof a=="function"&&a(r,f,m,n);f++}if(c>=0&&m==c+g&&typeof e=="function"){e(r,f);break}}}}}function $d(b,a){var c=-1;if(b.j>0){var e=b.j-1,f=b.h?1:0;if(b.Pb==0)c=a+e-f;else de(b,null,a,function(g){c=g})}return c}
|
|
1518
|
-
function ce(b){if(b.lr==null)b.lr=b.Hv.bind(b);var a=b.k.length-1;if(b.j>0&&b.Pb>0)de(b,b.lr);else for(var c=b.h?1:0;c<a;c++)b.fd(c)}pui.mk.prototype.Hv=function(b,a){this.fd(a,false,b)};function ee(b){if(b.h&&b.k.length>=2){b.k[0].style.top=parseInt(b.k[1].style.top)-b.db+"px";b.Jv();b.Iv();b.designMode&&b.Na();b.Ev();b.setScrollBar();b.ic()}}pui.mk.prototype.mr=function(b){b.stopPropagation()};pui.ev=function(b){this.data=b;this.ce=true;this.Kd="expanded";this.children=[];this.parentNode=null;this.Qg=true};pui.Kq=function(){this.root=null};
|
|
1519
|
-
function fe(b,a){a.Kd="expanded";for(var c=0;c<a.children.length;c++)a.children[c].ce=true;je(b,a)}function ke(b,a){var c=a.parentNode;if(c===null)return false;return c.ce===false?true:ke(b,c)}
|
|
1520
|
-
function ie(b,a){for(var c=[b.root];c.length;){var e=c.shift();if(e.data===a)return e;for(var f=0;f<e.children.length;f++)c.push(e.children[f])}return null}function le(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)le(b,a.children[e],c)}}
|
|
1521
|
-
|
|
1522
|
-
|
|
1519
|
+
function ce(b){if(b.lr==null)b.lr=b.Hv.bind(b);var a=b.k.length-1;if(b.j>0&&b.Pb>0)de(b,b.lr);else for(var c=b.h?1:0;c<a;c++)b.fd(c)}pui.mk.prototype.Hv=function(b,a){this.fd(a,false,b)};function ee(b){if(b.h&&b.k.length>=2){b.k[0].style.top=parseInt(b.k[1].style.top)-b.db+"px";b.Jv();b.Iv();b.designMode&&b.Na();b.Ev();b.setScrollBar();b.ic()}}pui.mk.prototype.mr=function(b){b.stopPropagation()};pui.ev=function(b){this.data=b;this.ce=true;this.Kd="expanded";this.children=[];this.parentNode=null;this.Qg=true};pui.Kq=function(){this.root=null};ua=pui.Kq.prototype;ua.add=function(b,a){var c=new pui.ev(b),e=a?ie(this,a):null;if(e){e.children.push(c);c.parentNode=e}else if(this.root)return"Root node is already assigned";else this.root=c;return c};function ge(b,a){a.Kd="collapsed";for(var c=0;c<a.children.length;c++)a.children[c].ce=false;je(b,a)}
|
|
1520
|
+
function fe(b,a){a.Kd="expanded";for(var c=0;c<a.children.length;c++)a.children[c].ce=true;je(b,a)}function ke(b,a){var c=a.parentNode;if(c===null)return false;return c.ce===false?true:ke(b,c)}ua.remove=function(b){if(this.root.data===b)this.root=null;for(var a=[this.root];a.length;)for(var c=a.shift(),e=0;e<c.children.length;e++)c.children[e].data===b?c.children.splice(e,1):a.push(c.children[e])};ua.contains=function(b){return ie(this,b)?true:false};
|
|
1521
|
+
function ie(b,a){for(var c=[b.root];c.length;){var e=c.shift();if(e.data===a)return e;for(var f=0;f<e.children.length;f++)c.push(e.children[f])}return null}function le(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)le(b,a.children[e],c)}}ua.collapseAll=function(){me(this,function(e){e.ce=false;e.Qg=false;e.Kd="collapsed"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Qg=true;c.Kd="collapsed"}};
|
|
1522
|
+
ua.expandAll=function(){me(this,function(e){e.ce=true;e.Qg=true;e.Kd="expanded"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Qg=true;c.Kd="expanded"}};function je(b,a){a.Qg=true;if(a.ce===false||ke(b,a))a.Qg=false;for(var c=0;c<a.children.length;c++)je(b,a.children[c])}function me(b,a,c){var e=b.root;c?b["_"+c](e,a):le(b,e,a)}
|
|
1523
|
+
ua.load=function(b){var a;a="0";this.add("0");var c={};c[0]=a;for(var e=0;e<b.length;e++){var f=b[e],g=f.yq,h=g-1;a=(e+1).toString();h=this.add(a,c[h]);f.node=h;c[g]=a}};function he(b,a){function c(f){var g=parseInt(f.data);if(g>e)e=g;for(g=0;g<f.children.length;g++)c(f.children[g])}var e=parseInt(a.data);c(a);return e};pui.widgets.add({name:"grid",io:true,rg:false,defaults:{"number of rows":"7","number of columns":"3","column widths":"150,150,150","column headings":"Heading 1,Heading 2,Heading 3"},Ff:function(b){if(b.dom.grid==null){b.dom.grid=new pui.mk;b.dom.grid.b=b.dom.parentNode;b.dom.grid.c=b.dom;if(b.design&&!b.dom.grid.designMode){b.dom.grid.Bo();b.dom.grid.setProperty("show paging controls",b.properties["show paging controls"]);b.dom.grid.setProperty("show page number",b.properties["show page number"]);
|
|
1523
1524
|
b.dom.grid.setProperty("show record number range",b.properties["show record number range"]);b.dom.grid.setProperty("show bar",b.properties["show bar"]);b.dom.grid.setProperty("csv export",b.properties["csv export"]);b.dom.grid.setProperty("xlsx export",b.properties["xlsx export"])}if((pui.is_old_ie||pui.is_opera)&&!b.design&&b.properties.scrollbar=="paging"&&N=="dspf"){b.dom.grid.qs=true;setTimeout(function(){b.dom.grid.qs=false;b.dom.grid.d!=null&&b.dom.grid.d.z()},0)}if(b.properties["css class"]!=
|
|
1524
1525
|
null&&b.properties["css class"]!=""){b.dom.className=b.dom.grid.bd=b.properties["css class"];b.dom.grid.I={};b.dom.grid.qf={}}if(!b.dom.style.top)b.dom.style.top="0px";if(!b.dom.style.left)b.dom.style.left="0px";b.dom.Lp=pui.li.Xi();b.dom.Qh=Gc(b.dom.Lp);b.dom.grid.setProperty("has header",b.properties["has header"]);if(b.design){b.e.wp=false;b.dom.grid.setProperty("number of rows",b.properties["number of rows"]);b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);b.dom.grid.setProperty("column widths",
|
|
1525
1526
|
b.properties["column widths"]);b.dom.grid.setProperty("column headings",b.properties["column headings"]);b.dom.grid.wd();b.dom.grid.Na();b.dom.grid.jc()}else{if((N=="dspf"||pui.fa)&&b.properties["cursor progression"]!="top to bottom")b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);if((N=="dspf"||pui.fa)&&b.properties["cursor progression"]=="top to bottom")b.dom.grid.setProperty("number of rows",b.properties["number of rows"])}}if(b.propertyName=="number of columns"&&
|
|
1526
1527
|
b.value>b.dom.grid.Jh)b.newValue=b.dom.grid.Jh;if(b.propertyName=="field type"){b.dom.sizeMe=function(){b.dom.grid.qd&&b.dom.grid.ac();b.dom.grid.alignColumnTotals()};if(b.design){var a=parseInt(b.properties["row height"]);if(!isNaN(a)&&a>0)b.dom.grid.la=a;b.dom.e=b.e;b.e.wp=false}b.dom.style.borderWidth="0px";b.dom.style.padding="0px";b.dom.ft=b.properties.top;var c=function(e){b.properties[e]!=null&&b.properties[e]!=""&&b.dom.grid.setProperty(e,b.properties[e])};c("header image");c("header background");
|
|
1527
1528
|
c("header font color");c("header font size");c("header height");c("header font weight");c("header font family");c("odd row background");c("even row background");c("hover effect");c("hover image");c("hover background");c("hover font color");c("header text align");c("row height");c("border color");c("border width");b.design&&setTimeout(function(){c("expand to layout")},0)}b.dom.grid.setProperty(b.propertyName,b.value,b.newValue)},initialize:function(b){if(!b.design&&b.dom!=null&&b.dom.grid!=null){b.properties["field type"]&&
|
|
1528
|
-
b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.wd();b.dom.grid.Na();b.dom.grid.jc();if(b.dom.grid.i!=null){b.dom.grid.i.z();b.dom.grid.i.position()}if(b.properties["expand to layout"]=="true"||b.properties["expand to layout"]==true)b.dom.grid.ac()}b.dom.ft&&b.dom.grid.setProperty("top",b.dom.ft);b.dom.
|
|
1529
|
+
b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.wd();b.dom.grid.Na();b.dom.grid.jc();if(b.dom.grid.i!=null){b.dom.grid.i.z();b.dom.grid.i.position()}if(b.properties["expand to layout"]=="true"||b.properties["expand to layout"]==true)b.dom.grid.ac()}b.dom.ft&&b.dom.grid.setProperty("top",b.dom.ft);b.dom.DA=b.properties.left;N=="genie"&&!pui.fa&&!b.design&&b.dom!=null&&b.dom.grid!=null&&b.dom.grid.yw(1,true)}});pui.widgets.add({name:"html container",sd:true,dependencies:[{script:"/ejs/ejs.min.js",condition:function(b,a,c){if(c)return true;if(typeof b.html=="string")return b.html.indexOf("<%")>=0;if(N==="dspf"&&pui.p(b.html)){b=pui.R(b.html,a);if(b!=null)return b.indexOf("<%")>=0}return false}}],defaults:{html:"<i>HTML Content</i>","white space":"normal",width:"200px",height:"100px"},propertySetters:{"field type":function(b){b.dom.innerHTML=b.design?b.evalProperty("html"):pui.Yk(b.evalProperty("html"));b.dom.Tf=
|
|
1529
1530
|
pui.Sg;b.dom.destroy=pui.kh},html:function(b){b.dom.innerHTML=b.design?b.value:pui.Yk(b.value)}}});pui["encode hyperlink spaces"]=null;pui["default hyperlink tabindex"]=null;
|
|
1530
1531
|
pui.Qr=function(b,a,c,e,f,g,h){b.innerHTML="";var l=document.createElement("a"),n=false;if(c==true||e==null||e.trim()===""){e="javascript:void(0)";n=true}l.href=e;if(!c&&f!=null)l.target=f;a=a;if(N=="genie"&&pui["encode hyperlink spaces"]!=false||pui["encode hyperlink spaces"]==true)a=a.replace(/ /g,"\u00a0");if(typeof h==="string"&&h.trim()!=="")l.download=h;l.appendChild(document.createTextNode(a));if(pui.is_old_ie&&n&&(N=="dspf"||N=="genie"))T(l,"click",function(m){m.preventDefault&&m.preventDefault();
|
|
1531
1532
|
return m.returnValue=false});if(g!=null&&g!="")l.tabIndex=g;else if(pui["default hyperlink tabindex"]!=null)l.tabIndex=pui["default hyperlink tabindex"];b.appendChild(l)};
|
|
@@ -1538,22 +1539,22 @@ pui.widgets.add({name:"icon",newId:"Icon",tag:"div",defaults:{icon:"material:fac
|
|
|
1538
1539
|
b.value;pui.Zi(b)}}});pui.widgets.add({name:"iframe",newId:"IFrame",menuName:"IFrame",defaults:{width:"400px",height:"300px","z index":"25","background color":"#FFFFFF","frame border":"true"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="IFrame content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("iframe url");if(url==null||url=="")b.dom.innerHTML="IFrame URL property not specified.";else{var a="",c=parseInt(b.properties.width),e=parseInt(b.properties.height);
|
|
1539
1540
|
if(c>0)a+=' width="'+b.properties.width+'"';if(e>0)a+=' height="'+b.properties.height+'"';c='<iframe src="'+url;c+='" frameborder="';c+=b.properties["frame border"]=="true"?"1":"0";c+='"'+a+">";b.dom.innerHTML=c}}},visibility:function(b){if(!b.design){var a=b.dom.getElementsByTagName("iframe");if(a&&a.length==1){a=a[0];if(b.value=="hidden"){a.style.visibility="hidden";a.style.display="none"}else{a.style.visibility="";a.style.display=""}}}}}});pui.dt=function(b){b=tb(b);if(b.tagName=="IMG")if(b.Fe!=null&&b.Fe!=""){b.mt=true;if(b.dp!=true)b.src=b.Fe}};pui.ct=function(b){b=tb(b);if(b.tagName=="IMG"){b.mt=false;if(b.Vd!=null)if(b.dp!=true)b.src=b.Vd}};pui.kl=function(b){b=tb(b);if(b.tagName=="IMG")if(b.rf!=null&&b.rf!=""){b.dp=true;b.src=b.rf}};pui.ll=function(b){if(b.Vd!=null){b.dp=false;b.src=b.mt==true?b.Fe:b.Vd}};
|
|
1540
1541
|
pui.et=function(b){if(b.design)return null;var a=b.evalProperty("blob table"),c=b.evalProperty("blob column");if(a!=null&&c!=null&&a!=""&&c!=""){a={};c="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth)+"&q="+encodeURIComponent(pui.ad(b.dom));pui.rd(b.properties,a);for(var e in a)c+="&"+encodeURIComponent(e)+"="+a[e];c+="&rnd="+String(Math.random())+String((new Date).getTime());return Vb("PUI0009119.PGM")+c}return null};
|
|
1541
|
-
pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=
|
|
1542
|
+
pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=ta(false);b.dom.ondragstart=ta(false);b.dom.setAttribute("draggable","false");if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";b.dom.Vd=b.evalProperty("image source");var a=pui.et(b);if(a)b.dom.Vd=a;b.dom.src=b.dom.Vd;a=b.evalProperty("hover image source");b.dom.Fe=a;if(a!=null&&a!=""){b.dom.Fe=pui.normalizeURL(b.dom.Fe,true);T(b.dom,"mouseover",pui.dt);T(b.dom,"mouseout",
|
|
1542
1543
|
pui.ct);(new Image).src=a}a=b.evalProperty("click image source");b.dom.rf=a;if(a!=null&&a!=""){b.dom.rf=pui.normalizeURL(b.dom.rf,true);T(b.dom,"mousedown",pui.kl);T(document,"mouseup",function(){pui.ll(b.dom)});T(b.dom,"touchstart",pui.kl);T(document,"touchend",function(){pui.ll(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Vd=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Vd.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Ac();a=pui.Wi(a,"width");b.dom=
|
|
1543
1544
|
Mc(a,b.properties,b.dom,"200px",b.design,b.e,b.ju);b.e.designer.pb.tB("width","200px",true)}},"blob column":function(b){var a=pui.et(b);if(a)b.dom.Vd=a;b.dom.src=b.dom.Vd},"hover image source":function(b){b.dom.Fe=b.value;if(b.value!=null&&b.value!=""){b.dom.Fe=pui.normalizeURL(b.dom.Fe,true);T(b.dom,"mouseover",pui.dt);T(b.dom,"mouseout",pui.ct);(new Image).src=b.value}},"click image source":function(b){b.dom.rf=b.value;if(b.value!=null&&b.value!=""){b.dom.rf=pui.normalizeURL(b.dom.rf,true);T(b.dom,
|
|
1544
|
-
"mousedown",pui.kl);T(document,"mouseup",function(){pui.ll(b.dom)});T(b.dom,"touchstart",pui.kl);T(document,"touchend",function(){pui.ll(b.dom)});(new Image).src=b.value}}}});pui.hv=function(){function b(l){function n(z){function G(){z.Rd>0&&z.fi==null&&g.au();if(g.aj==true&&N=="dspf"){f(e(z),"selected ");if(z.className!=""){z.className=(z.className+" selected ").replace(/\s\s+/g," ");if(z.Rd>0&&z.fi==null){var D=z.Fp,
|
|
1545
|
-
z.ph;if(D.G=="true"||D.G=="send data")pui.G=D.G;if(g.Bq)pui.Ma=g.routine;if(pui.gc()==false){D.S="";pui.Ma=null;pui.Sc=null;pui.Rc=null}}}}z.oncontextmenu=
|
|
1546
|
-
D=z.className.replace("menu-hover","");z.className=D.replace(/\s\s+/g," ")+"menu-hover"}else z.className="menu-hover"}if(g.Fg!=null&&g.Fg!="")z.style.color=g.Fg;if(g.uj!=null&&g.uj!=""){z.style.backgroundImage="url('"+g.uj+"')";if(g.repeat!=null&&g.repeat.length>0){z.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")z.style.backgroundPosition="left center"}}else z.style.backgroundImage=z.Cb!=null&&z.Cb!=""?"url('"+z.Cb+"')":"";
|
|
1547
|
-
for(
|
|
1548
|
-
|
|
1549
|
-
z.className.replace("menu-hover","");z.className=
|
|
1550
|
-
K.properties.choices;if(Y=="")Y="Option 1,Option 2,Option 3";Y=Y.split(",");Y[
|
|
1545
|
+
"mousedown",pui.kl);T(document,"mouseup",function(){pui.ll(b.dom)});T(b.dom,"touchstart",pui.kl);T(document,"touchend",function(){pui.ll(b.dom)});(new Image).src=b.value}}}});pui.hv=function(){function b(l){function n(z){function G(){z.Rd>0&&z.fi==null&&g.au();if(g.aj==true&&N=="dspf"){f(e(z),"selected ");if(z.className!=""){z.className=(z.className+" selected ").replace(/\s\s+/g," ");if(z.Rd>0&&z.fi==null){var D=z.Fp,B=e(D);f(B,"selected ");f(B,"menu-hover ");D.className="selected "}}else z.className="selected "}if(g.b.onoptionclick!=null&&!g.Bq)Eb()||z.fi==null&&g.b.onoptionclick(z.ph,Lc(z));else if(N=="dspf")if(z.fi==null){D=g.b;if(D.S!=null)if(D.disabled!=true){D.S=
|
|
1546
|
+
z.ph;if(D.G=="true"||D.G=="send data")pui.G=D.G;if(g.Bq)pui.Ma=g.routine;if(pui.gc()==false){D.S="";pui.Ma=null;pui.Sc=null;pui.Rc=null}}}}z.oncontextmenu=ta(false);z.onmouseover=function(){z.Bi=true;if(g.Eg!=null&&g.Eg!="")z.style.backgroundColor=g.Eg;else{var D=z.oy;!D&&z.Rd==0&&f(e(z),"prev-menu");if(D&&z.Rd>0)if(D.className!=""){var B=D.className.replace("prev-menu","");D.className=B.replace(/\s\s+/g," ")+"prev-menu"}else D.className="prev-menu";if(z.className!=""){D&&z.Rd>0&&f(e(z),"prev-menu");
|
|
1547
|
+
D=z.className.replace("menu-hover","");z.className=D.replace(/\s\s+/g," ")+"menu-hover"}else z.className="menu-hover"}if(g.Fg!=null&&g.Fg!="")z.style.color=g.Fg;if(g.uj!=null&&g.uj!=""){z.style.backgroundImage="url('"+g.uj+"')";if(g.repeat!=null&&g.repeat.length>0){z.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")z.style.backgroundPosition="left center"}}else z.style.backgroundImage=z.Cb!=null&&z.Cb!=""?"url('"+z.Cb+"')":"";B=z;var K;D=[];for(K=0;K<h.length;K++)h[K].Rd>=B.Rd&&D.push(h[K]);
|
|
1548
|
+
for(B=0;B<D.length;B++)g.Tp(D[B]);g.qz(z)};z.onmouseout=function(D){if(!D)D=window.event;var B=D.relatedTarget;if(B==null)B=D.toElement;for(;B!=null&&(B.tagName=="TABLE"||B.tagName=="TBODY"||B.tagName=="TR");){if(B.firstChild==null)break;B=B.firstChild}if(B==null||B.Rd==null||B.tagName!="TD"||B.Qx!=g.b.id){D=false;if(B!=null){if(B==p)D=true;if(r!=null&&B==r)D=true;if(B.ip)D=true;if(!D){B=e(B);var K=e(z);if(B&&B===K)D=true}}D||g.au()}else if(z.wb!=null){for(D=true;B!=null;){if(z.wb==B){D=false;break}B=
|
|
1549
|
+
B.parentNode}D&&g.Tp(z)}if(g.Fg!=null&&g.Fg!="")z.style.color="";if(z.Cb!=null&&z.Cb!=""){z.style.backgroundImage="url('"+z.Cb+"')";z.style.backgroundRepeat=g.repeat}else z.style.backgroundImage="";if(g.Eg!=null&&g.Eg!=""){z.Bi=false;if(g.animate){var Q=function(Y){Y-=10;if(Y<40){if(!z.Bi)z.style.backgroundColor="";z.Bi=true}if(z.Bi)Y=100;z.style.filter="alpha(opacity="+Y+")";z.style.opacity=Y/100;z.Bi||setTimeout(function(){Q(Y)},60)};Q(100)}else z.style.backgroundColor=""}else if(z.className!=""){B=
|
|
1550
|
+
z.className.replace("menu-hover","");z.className=B.replace(/\s\s+/g," ")}else z.className=""};if(pui.is_touch&&!pui.is_mouse_capable&&z.children.length>0)z.addEventListener("touchend",G,false);else z.onclick=G;z.ondblclick=function(D){if(Eb()&&z.orientation=="vertical"&&z.Rd==0){var B=designUtils.getTarget(D);for(D=B.parentNode;D.tagName!="DIV";)D=D.parentNode;var K=Hb.designer.zh(D);if(!pui.p(K.properties.choices)&&!pui.Nb(K.properties.choices)&&typeof B.$r==="number"){K.designer.Jf.Ap=function(Q){var Y=
|
|
1551
|
+
K.properties.choices;if(Y=="")Y="Option 1,Option 2,Option 3";Y=Y.split(",");Y[B.$r]=Q;Y=Y.join(",");Q=Ac().choices;K.designer.ca.add(K,Q.name);Mc(Q,K.properties,K.dom,Y,true,K,null);K.qb.choices=true;K.nd=true;K.designer.od[K.designer.Oa.vb]=true;K.designer.pb.Uh("choices")};K.designer.Jf.show(K,B,"menu")}}}}var m=l.b,r=l.gy;if(m.ak==undefined)m.ak=true;m.innerHTML="";pui.Q(m,"pui-menu");l.orientation=="horizontal"&&pui.Q(m,"pui-horizontal");var p=document.createElement("table"),s=m.style.width;if(s!=
|
|
1551
1552
|
null&&s!=""&&l.orientation!="horizontal")p.style.width="100%";p.cellPadding=0;p.cellSpacing=0;s=a(l.Io);var t,w=g.borderColor;if(w!=""&&w!=null){w=pui.Ct(w);p.style.borderTop="1px solid "+w;p.style.borderLeft="1px solid "+w}for(var y=l.Io;y<=l.Pu;y++)if(a(y)==s){var x=g.choices[y];if(typeof x=="string")for(;x.substr(0,1)=="-";)x=x.substr(1);var E=g.se[y];if(E==null)E=x;t=t==null||l.orientation=="vertical"?p.insertRow(p.rows.length):t;var J=t.insertCell(t.cells.length);if(x==null||x==""||Kb(x)=="")x=
|
|
1552
1553
|
" ";if(g.aj)J.Fp=l.fy;J.innerHTML=x;J.ph=E;J.Rd=s;if(Eb())J.$r=i;J.Qx=g.b.id;J.orientation=l.orientation;J.oy=l.py;if(g.padding!=null&&g.padding.length>0)J.style.paddingTop=J.style.paddingBottom=J.style.paddingRight=g.padding;if(g.paddingLeft!=null&&g.paddingLeft.length>0)J.style.paddingLeft=g.paddingLeft;if(w!=""&&w!=null){J.style.borderRight="1px solid "+w;J.style.borderBottom="1px solid "+w}if(g.animate){J.style.filter="alpha(opacity=100)";J.style.opacity=1}if(g.Cb!=null&&g.Cb!=""){J.Cb=g.Cb;
|
|
1553
1554
|
if(g.vj.length>1)J.Cb=g.vj[y]!=null?g.vj[y]:"";if(J.Cb!="")J.style.backgroundImage="url('"+pui.normalizeURL(J.Cb,true)+"')";if(g.repeat!=null&&g.repeat.length>0){J.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")J.style.backgroundPosition="left center"}}else J.style.backgroundImage="";if(c(y)){J.fi=y+1;J.Am=y+1;for(x=a(y+1);J.Am<g.choices.length-1&&a(J.Am+1)>=x;)J.Am+=1;if(l.orientation=="vertical"){x=document.createElement("img");x.src=pui.normalizeURL("/profoundui/proddata/images/menus/submenu-arrow.gif");
|
|
1554
1555
|
x.style.position="absolute";x.style.right="3px";x.style.paddingTop="3px";x.ip=true;E=document.createElement("span");E.innerHTML=" ";E.ip=true;J.appendChild(E);J.appendChild(x)}}n(J);t=t}m.appendChild(p)}function a(l){l=g.choices[l];var n=0;if(l==null)return n;for(var m=0;m<l.length;m++)if(l.substr(m,1)=="-")n+=1;else break;return n}function c(l){if(l>=g.choices.length-1)return false;if(a(l)+1==a(l+1))return true;return false}function e(l){for(l=l;l;){if(l.tagName==
|
|
1555
1556
|
"TABLE")return l;l=l.parentElement}return false}function f(l,n){for(var m=l.getElementsByTagName("td"),r=0;r<m.length;r++){var p=m[r];p.className=p.className.replace(n,"");if(p.className==" ")p.className=""}}var g=this,h=[];this.b=null;this.choices=[];this.se=[];this.Fg=this.Eg=null;this.animate=true;this.aj=false;this.Cb=this.paddingLeft=this.padding=this.borderColor=this.repeat=null;this.vj=[];this.uj=null;this.orientation="vertical";this.z=function(){b({b:g.b,orientation:g.orientation,Io:0,Pu:g.choices.length-
|
|
1556
|
-
1})};this.
|
|
1557
|
+
1})};this.qz=function(l){var n;if(l.fi!=null){for(n=l;n.tagName!="TABLE";)n=n.parentNode;var m=n.parentNode;if(l.wb==null){l.wb=document.createElement("div");l.wb.className=m.className;var r=l.wb.style,p=m.style;r.backgroundColor=p.backgroundColor;r.letterSpacing=p.letterSpacing;r.wordSpacing=p.wordSpacing;r.textAlign=p.textAlign;r.textDecoration=p.textDecoration;r.textTransform=p.textTransform;r.fontVariant=p.fontVariant;r.fontWeight=p.fontWeight;r.fontSize=p.fontSize;r.fontFamily=p.fontFamily;r.color=
|
|
1557
1558
|
p.color;r.zIndex=p.zIndex;r.position="absolute";if(!pui.qa)r.cursor=p.cursor;g.b.parentNode.appendChild(l.wb)}if(l.orientation=="vertical"){l.wb.style.top=m.offsetTop+l.offsetTop+"px";l.wb.style.left=m.offsetLeft+m.offsetWidth-1-(m.offsetWidth-m.clientWidth)+"px"}else{l.wb.style.top=m.offsetTop+l.offsetTop+l.offsetHeight-1+"px";l.wb.style.left=m.offsetLeft+l.offsetLeft+"px"}l.wb.style.display="";m.style.display="";if(g.aj==true){var s=null;s=l.Fp!=null?l.Fp:l}b({b:l.wb,orientation:"vertical",Io:l.fi,
|
|
1558
1559
|
Pu:l.Am,gy:n,fy:s,py:l});n=100;if(l.orientation=="horizontal"&&l.Rd==0&&l.offsetWidth>n)n=l.offsetWidth;if(l.wb.offsetWidth<n){l.wb.style.width=n+"px";n=l.wb.firstChild;n.style.width="100%"}m=true;for(n=0;n<h.length;n++)if(h[n]==l){m=false;break}m&&h.push(l)}};this.Tp=function(l){if(l.wb!=null){for(var n=0;n<h.length;n++)if(h[n]==l){h.splice(n,1);break}l.wb.parentNode.removeChild(l.wb);l.wb=null}};this.au=function(){var l,n=[];for(l=0;l<h.length;l++)n.push(h[l]);for(l=0;l<n.length;l++)g.Tp(n[l])}};
|
|
1559
1560
|
pui.widgets.add({name:"menu",rg:false,defaults:{width:"200px",height:"200px",choices:"Option 1,Option 2,Option 3,Option 4,Option 5",color:"#333366","border color":"#EEEEEE","font family":"Arial","font size":"12px","background color":"#FFFFFF","hover background color":"#6699FF","hover text color":"#FFFFFF",animate:"true"},propertySetters:{"field type":function(b){b.dom.u=new pui.hv;b.dom.u.Bq=pui.dc(b.properties.onoptionclick);if(b.dom.u.Bq)b.dom.u.routine=b.properties.onoptionclick.routine;var a=
|
|
@@ -1571,7 +1572,7 @@ pui.widgets.add({name:"password field",tag:"input",inputType:"password",newId:"P
|
|
|
1571
1572
|
"dspf"&&!Eb()&&T(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();a.target.select()}})}},value:function(b){b.dom.value=b.value},top:function(b){oe(b)},left:function(b){oe(b)},width:function(b){oe(b)},height:function(b){oe(b)},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(N=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Wd()):b.dom.removeAttribute("name")}},"show visibility eye":function(b){if(b.properties["parent tab"]===
|
|
1572
1573
|
undefined){b.properties["show visibility eye"]=b.value;ne(b)}else pui.alert("Cannot turn property to true when password field is contained in a Tab Panel control. Please use a Tab Layout control.")}},rc:function(b){b.propertyName=="field type"&&b.Aa&&b.Aa.l!=null&&b.dom&&b.dom.l==null&&pui.zg(b.dom)}});pui.widgets.add({name:"radio button",tag:"input",inputType:"radio",kp:"label",resizable:false,defaults:{label:"Radio Button"},propertySetters:{"field type":function(b){if(b.design&&!pui.is_quirksmode)if(!pui.is_old_ie)b.dom.style.margin="2px";if(!b.design){var a=b.evalProperty("label");if(a!=""){if(b.properties.left!=null)b.dom.style.left=b.properties.left;if(b.properties.top!=null)b.dom.style.top=b.properties.top;pui.Rr(b.dom,a)}if(N=="dspf"){var c=b.evalProperty("value");a=b.evalProperty("radio button group");
|
|
1573
1574
|
if(c!=null&&a!=null)if(c==a||!isNaN(Number(c))&&!isNaN(Number(a))&&Number(c)==Number(a)){if(pui.is_old_ie)b.dom.name="radio";b.dom.checked=true}T(b.dom,"click",function(){if(b.dom.readOnly)if(b.dom.checked==false)b.dom.checked=true;else if(b.dom.checked==true)b.dom.checked=false});T(b.dom,"keydown",function(f){switch(true){case f.keyCode==9&&f.shiftKey==false:var g=b.dom.nextSibling,h=g.nextSibling;if(g.kt==true&&h&&h.type=="radio"){f.preventDefault();h.focus()}break;case f.keyCode==9&&f.shiftKey==
|
|
1574
|
-
true:g=b.dom.previousSibling;h=g.previousSibling;if(g.kt==true&&h&&h.type=="radio"){f.preventDefault();h.focus()}break;default:break}})}else if(N=="genie"){a=b.evalProperty("related field");var e=false;if(b.dom.C)c=b.dom.C;else if(a!="")if(b.dom.
|
|
1575
|
+
true:g=b.dom.previousSibling;h=g.previousSibling;if(g.kt==true&&h&&h.type=="radio"){f.preventDefault();h.focus()}break;default:break}})}else if(N=="genie"){a=b.evalProperty("related field");var e=false;if(b.dom.C)c=b.dom.C;else if(a!="")if(b.dom.Ey){if(b.dom.Ey.C)c=related.C}else e=true;if(c)if(c.bypass){b.dom.disabled=true;c=c.attr;e=c=="27"||c=="2F"||c=="37"||c=="3F"}if(e){b.dom.style.visibility="hidden";if(b.dom.Pd)b.dom.Pd.style.visibility="hidden"}}}},visibility:function(b){if(!b.design&&b.dom.Pd)b.dom.Pd.style.visibility=
|
|
1575
1576
|
b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.op=function(b,a,c){b=pui.ha(b);var e=pui.ha(a);c.choices={};for(var f=0;f<b.length;f++){var g=b[f],h=e[f];if(h==null||a=="")h=g;if(c.tagName=="SELECT"){var l=new Option(g,h);c.options[c.options.length]=l}c.choices[h]=g}};
|
|
1576
1577
|
pui.Zh=function(b,a){if(a.C!=null&&a.C.shift!=null)if(a.C.shift=="2"||a.C.shift=="3"||a.C.shift=="5"||a.C.shift=="7"){b=Kb(b);a.pui.properties.value=b}if(a.tagName=="INPUT"){a.value=a.choices!=null&&a.choices[b]!=null?a.choices[b]:b;a.pui.properties.value=b}else{var c=false;if(a.getAttribute("multiple")!=null)c=true;if(!c){a.value=b;a.pui.properties.value=b}if(c){c=b.split(",");for(var e=0;e<a.options.length;e++)for(var f=a.options[e],g=0;g<c.length;g++)if(c[g]==f.value){f.selected=true;break}}}};
|
|
1577
1578
|
pui.widgets.add({name:"select box",tag:"select",menuName:["Dropdown Box","List Box"],propertySetters:{"field type":function(b){var a;if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};a=b.evalProperty("choices url");if(a!=""&&!b.design){var c=new pui.Ajax(pui.mf(a));c.async=true;c.suppressAlert=true;c.onready=function(){if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};var p=Ib(c,"Generate Dropdown Box Options");if(p){for(var s=0;s<p.length;s++){var t=p[s];if(b.dom.tagName==
|
|
@@ -1583,7 +1584,7 @@ w.value);b.dom.add(w)}catch(y){b.dom.add(w,null)}b.dom.choices[w.value]=w.text}p
|
|
|
1583
1584
|
b.dom)},choices:function(b){var a=b.evalProperty("choices database file"),c=b.evalProperty("choices url");if(!(a!=""||c!="")){if(b.dom.tagName=="SELECT")b.dom.options.length=0;a=b.value;c=b.evalProperty("choice values");pui.op(a,c,b.dom);pui.Zh(b.evalProperty("value"),b.dom)}},"choice values":function(b){var a=b.evalProperty("choices database file"),c=b.evalProperty("choices url");if(!(a!=""||c!="")){if(b.dom.tagName=="SELECT")b.dom.options.length=0;a=b.evalProperty("choices");pui.op(a,b.value,b.dom);
|
|
1584
1585
|
pui.Zh(b.evalProperty("value"),b.dom)}},"select box height":function(b){if(b.design&&pui.is_old_ie&&pui.ie_mode==6){var a=Ac();Mc(a["field type"],b.properties,b.dom,"select box",b.design,b.e,b.ju)}}}});pui.Slider=function(){this.v=null;this.orientation="horizontal";this.value=2;this.minValue=0;this.maxValue=10;this.Hf=1;this.disabled=this.readOnly=this.design=false;var b=this,a,c,e,f=pui.is_touch&&!pui.is_mouse_capable||pui.qa;this.init=function(){function g(h){function l(y){var x=Yc(y)-s,E=Xc(y)-p,J=b.maxValue-b.minValue,z=0;z=m?a.clientHeight:a.clientWidth;x=J*(((m?w+x:t+E)-(m?a.offsetTop:a.offsetLeft)+(m?c.clientHeight/2:c.clientWidth/2))/z)+b.minValue;if(x<b.minValue)x=b.minValue;if(x>b.maxValue)x=
|
|
1585
1586
|
b.maxValue;x=b.aq(x);if(x!=b.value){b.setValue(x);b.v.modified=true;pui.Ye(b.v);if(N=="genie"&&b.v.C!=null&&b.v.C.idx!=null)pui.response[b.v.C.idx]=b.v;!b.design&&typeof b.v.onchange=="function"&&b.v.onchange(y)}r&&y.preventDefault()}function n(){if(r){Zb(document,"touchmove",l);Zb(document,"touchend",n)}else{Zb(document,"mousemove",l);Zb(document,"mouseup",n)}}if(!b.readOnly)if(!b.disabled){var m=b.orientation=="vertical",r=false;if(h!=null&&h.touches!=null){if(h.touches.length!=1)return;r=true}var p=
|
|
1586
|
-
Xc(h),s=Yc(h),t=parseInt(c.offsetLeft),w=parseInt(c.offsetTop);if(r){T(document,"touchmove",l);T(document,"touchend",n)}else{T(document,"mousemove",l);T(document,"mouseup",n)}ub(h);return false}}a=document.createElement("div");a.className="bar";if(!b.design&&N=="genie"){e=Xb("input",b.v.name);e.type="hidden";document.forms.main.appendChild(e)}c=document.createElement("div");c.className="handle";b.v.onselectstart=
|
|
1587
|
+
Xc(h),s=Yc(h),t=parseInt(c.offsetLeft),w=parseInt(c.offsetTop);if(r){T(document,"touchmove",l);T(document,"touchend",n)}else{T(document,"mousemove",l);T(document,"mouseup",n)}ub(h);return false}}a=document.createElement("div");a.className="bar";if(!b.design&&N=="genie"){e=Xb("input",b.v.name);e.type="hidden";document.forms.main.appendChild(e)}c=document.createElement("div");c.className="handle";b.v.onselectstart=ta(false);a.onselectstart=ta(false);c.onselectstart=ta(false);T(c,"mousedown",g);T(c,
|
|
1587
1588
|
"touchstart",g);b.v.appendChild(a);b.v.appendChild(c);b.z();pui.Ug.push(b)};this.aq=function(g,h){var l=b.Hf/2;if(h==true)l=0;l=parseInt((g+b.minValue+l)/b.Hf)*b.Hf-b.minValue;return l=Math.round(l*1E6)/1E6};this.z=function(){pui.Q(b.v,"slider");f&&!b.design&&pui.Q(b.v,"touch");pui.da(b.v,b.orientation=="vertical"?"horizontal":"vertical");pui.Q(b.v,b.orientation);b.setValue(b.value)};this.Dq=function(){if(isNaN(b.Hf))b.Hf=1;if(b.Hf<=0)b.Hf=1;if(isNaN(b.minValue))b.minValue=0;if(isNaN(b.maxValue))b.maxValue=
|
|
1588
1589
|
10;if(isNaN(b.value))b.value=0;if(b.value<b.minValue)b.value=b.minValue;if(b.value>b.maxValue)b.value=b.maxValue;b.value=b.aq(b.value);b.v.value=b.value;if(!b.design&&N=="genie")e.value=b.value};this.setValue=function(g){g=Number(g);if(isNaN(g))g=b.minValue;if(g<b.minValue)g=b.minValue;if(g>b.maxValue)g=b.aq(b.maxValue,true);var h=b.maxValue-b.minValue,l=b.orientation=="vertical",n=0,m=0;n=l?a.clientHeight:a.clientWidth;m=l?c.clientHeight/2:c.clientWidth/2;h=parseInt(n/h*(g-b.minValue)-m)+10;if(isNaN(h))h=
|
|
1589
1590
|
0;if(l){c.style.top=h+"px";c.style.left=""}else{c.style.left=h+"px";c.style.top=""}b.value=g;b.v.value=g;if(!b.design&&N=="genie")e.value=b.value};this.destroy=function(){if(b!=null)b=e=c=a=b.v=null}};
|
|
@@ -1594,21 +1595,21 @@ n=document.createElement("div"),m=document.createElement("div"),r=false;this.ini
|
|
|
1594
1595
|
c.Yj(z)}else c.refresh(true);setTimeout(function(){r=false},0)}}if(!c.readOnly)if(!c.disabled)if(!c.designMode){var y=b(),x=false;if(s!=null&&s.touches!=null){if(s.touches.length!=1)return;x=true}var E=Xc(s),J=parseInt(l.style.left);if(x){T(document,"touchmove",t);T(document,"touchend",w)}else{T(document,"mousemove",t);T(document,"mouseup",w)}ub(s);return false}}e.className="off-label";f.innerHTML="OFF";e.appendChild(f);g.className="on-label";h.innerHTML="ON";g.appendChild(h);l.className="onoff-handle-left";
|
|
1595
1596
|
n.className="onoff-handle-right";m.className="onoff-handle-center";n.appendChild(m);l.appendChild(n);pui.Q(c.b,"onoff-switch");c.b.appendChild(e);c.b.appendChild(g);c.b.appendChild(l);Zb(c.b,"click",a);T(c.b,"click",a);T(c.b,"mousedown",p);T(c.b,"touchstart",p);c.size()};this.size=function(){var p=c.b.offsetWidth;if(p==0){p=parseInt(c.b.style.width);if(isNaN(p))p=0;p+=2}offLabelWidth=p-5;if(offLabelWidth<0)offLabelWidth=0;e.style.width=offLabelWidth+"px";c.zu(c.Im)};this.zu=function(p){if(p){var s=
|
|
1596
1597
|
c.b.offsetWidth;if(s==0){s=parseInt(c.b.style.width);if(isNaN(s))s=0;s+=2}s=parseInt((s-14)/2);if(s<0)s=0;l.style.width=s+"px"}else l.style.width="";c.Im=p;c.refresh()};this.Hp=function(p,s){for(var t=["transition","MozTransition","WebkitTransition","msTransition","OTransition"],w=0;w<t.length;w++){var y=t[w];if(s){g.style[y]="width 0.2s ease";h.style[y]="margin-left 0.2s ease";f.style[y]="margin-right 0.2s ease";l.style[y]="left 0.2s ease"}else{g.style[y]="";h.style[y]="";f.style[y]="";l.style[y]=
|
|
1597
|
-
""}}t=b();g.style.width=p+4+"px";h.style.marginLeft=p-t+"px";f.style.marginRight=-p+"px";l.style.left=p+"px"};this.
|
|
1598
|
-
false;pui.da(c.b,"onoff-switch-disabled")};this.
|
|
1599
|
-
pui.widgets.add({name:"on off switch",defaults:{width:"100px",height:"27px"},propertySetters:{"field type":function(b){if(b.dom.M==null)b.dom.M=new pui.iv;b.dom.M.b=b.dom;b.dom.M.designMode=b.design;b.dom.M.init();b.dom.M.set(b.evalProperty("value")==b.evalProperty("on value"));if(b.design){b.dom.M.
|
|
1598
|
+
""}}t=b();g.style.width=p+4+"px";h.style.marginLeft=p-t+"px";f.style.marginRight=-p+"px";l.style.left=p+"px"};this.iz=function(p){var s=b();c.Hp(s,p);c.Od=true};this.hz=function(p){c.Hp(0,p);c.Od=false};this.set=function(p,s){p?c.iz(s):c.hz(s)};this.toggle=function(p){c.set(!c.Od,p)};this.refresh=function(p){c.set(c.Od,p)};this.tw=function(p){h.innerHTML=p};this.sw=function(p){f.innerHTML=p};this.disable=function(){c.disabled=true;pui.Q(c.b,"onoff-switch-disabled")};this.enable=function(){c.disabled=
|
|
1599
|
+
false;pui.da(c.b,"onoff-switch-disabled")};this.ez=function(p,s){var t=p.split(" "),w=p;if(t.length==2)w=t[0]+t[1].substr(0,1).toUpperCase()+t[1].substr(1);h.style[w]=s;f.style[w]=s};this.gz=function(p){c.b.style.cursor=p;g.style.cursor=p;e.style.cursor=p;l.style.cursor=p};this.Yj=function(p){c.b.modified=true;pui.Ye(c.b);if(N=="genie"&&c.b.C!=null&&c.b.C.idx!=null)pui.response[c.b.C.idx]=c.b;!c.designMode&&typeof c.b.onchange=="function"&&c.b.onchange(p)}};
|
|
1600
|
+
pui.widgets.add({name:"on off switch",defaults:{width:"100px",height:"27px"},propertySetters:{"field type":function(b){if(b.dom.M==null)b.dom.M=new pui.iv;b.dom.M.b=b.dom;b.dom.M.designMode=b.design;b.dom.M.init();b.dom.M.set(b.evalProperty("value")==b.evalProperty("on value"));if(b.design){b.dom.M.gz("default");var a=Ac(),c;if(b.properties["on text"]){c=a["on text"];Mc(c,b.properties,b.e.dom,b.properties["on text"],true,b.e)}if(b.properties["off text"]){c=a["off text"];Mc(c,b.properties,b.e.dom,
|
|
1600
1601
|
b.properties["off text"],true,b.e)}}else{b.dom.M.Mh=b.evalProperty("on value");b.dom.M.Lh=b.evalProperty("off value")}b.dom.sizeMe=function(){b.dom.M.size()}},value:function(b){b.dom.M!=null&&b.dom.M.set(b.value==b.evalProperty("on value"))},"on value":function(b){b.dom.M!=null&&b.dom.M.set(b.evalProperty("value")==b.value)},"read only":function(b){if(b.dom.M!=null)b.dom.M.readOnly=b.value==true||b.value=="true"},disabled:function(b){if(b.dom.M!=null)b.value==true||b.value=="true"?b.dom.M.disable():
|
|
1601
1602
|
b.dom.M.enable()},"wide handle":function(b){b.dom.M!=null&&b.dom.M.zu(b.value!==false&&b.value!=="false")},"on text":function(b){b.dom.M!=null&&b.dom.M.tw(b.value)},"off text":function(b){b.dom.M!=null&&b.dom.M.sw(b.value)},width:function(b){if(b.dom.M!=null){b.dom.style.width=b.value;b.dom.M.size()}},height:function(b){if(b.dom.M!=null){b.dom.style.height=b.value;b.dom.M.size()}}},rc:function(b){b.propertyName.substr(0,9)=="css class"&&b.dom.M!=null&&pui.Q(b.dom,"onoff-switch");switch(b.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":b.dom.M!=
|
|
1602
|
-
null&&b.dom.M.
|
|
1603
|
+
null&&b.dom.M.ez(b.propertyName,b.value);break}}});pui.mv=function(b,a,c,e,f){var g=this,h=document.createElement("div"),l=document.createElement("div");if(a!=null&&a!=""){a=Number(a);if(isNaN(a))a=null}else a=null;if(c!=null&&c!=""){c=Number(c);if(isNaN(c))c=null}else c=null;if(e!=null){e=Number(e);if(isNaN(e))e=1;if(e==0)e=1}else e=1;h.className="input";h.onclick=function(){g.Ju(e)};l.className="input";l.onclick=function(){g.Ju(-e)};if(f){b.style.paddingRight="16px";b.style.boxSizing="border-box"}b.Kb=[h,l];if(b.parentNode!=null){b.parentNode.appendChild(h);
|
|
1603
1604
|
b.parentNode.appendChild(l)}this.Ip=function(){var n=b.offsetWidth,m=b.style.width;if(n==0&&m!=null&&typeof m=="string"&&m.length>=3&&m.substr(m.length-2,2)=="px")n=parseInt(m);if(isNaN(n))n=0;m=b.offsetHeight;var r=b.style.height;if(m==0&&r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px")m=parseInt(r);if(isNaN(m))m=0;if(m==0&&r=="")m=18;r=b.style.left;r=r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px"?parseInt(r):b.offsetLeft;if(isNaN(r))r=0;var p;p=b.style.top;
|
|
1604
1605
|
p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):b.offsetTop;if(isNaN(p))p=0;h.style.left=r+n-15+"px";p+=parseInt((m-18)/2);if(m%2==1){if(m<18)p-=1;if((m-18)/2>2)p-=1;p+=1}if(pui.is_quirksmode)p-=1;h.style.top=p+"px";h.style.zIndex=b.style.zIndex;r=b.style.left;r=r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px"?parseInt(r):b.offsetLeft;if(isNaN(r))r=0;p=b.style.top;p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):
|
|
1605
1606
|
b.offsetTop;if(isNaN(p))p=0;l.style.left=r+n-15+"px";p+=9;p+=parseInt((m-18)/2);if(m%2==1){if(m<18)p-=4;p+=(m-18)/2>2?1:3}l.style.top=p+"px";l.style.zIndex=b.style.zIndex};g.Ip();this.hide=function(){h.style.visibility="hidden";l.style.visibility="hidden"};if(b.pui==null||b.pui.properties==null||b.pui.properties.visibility==null||b.pui.properties.visibility=="")if(N=="genie"&&b.C!=null&&b.C.attr!=null){f=b.C.attr;if(f=="27"||f=="2F"||f=="37"||f=="3F")g.hide()}this.show=function(){h.style.visibility=
|
|
1606
1607
|
"";l.style.visibility=""};this.Ju=function(n){if(!b.disabled)if(!b.readOnly){var m=Number(b.value);if(isNaN(m))m=0;m+=n;m=Math.round(m*1E4)/1E4;if(a!=null&&m<a)m=a;if(c!=null&&m>c)m=c;var r=Number(b.getAttribute("maxLength"));if(r!=null&&!isNaN(r)&&r>0){if(r==1&&m<0)m=0;if(String(m).length>r)return}r=b.onspin;if(r!=null){n=r(b.value,n,b,m);if(typeof n=="string"||typeof n=="number")m=n}b.value=m;b.modified=true;pui.Ye(b);if(N=="genie"&&b.C!=null&&b.C.idx!=null)pui.response[b.C.idx]=b;pui.qe(b)}};this.iq=
|
|
1607
1608
|
function(n){var m=b.className.split(" ").indexOf("PR")>-1;if(n==null){h.className="input pui-spinner-up-arrow-input";l.className="input pui-spinner-down-arrow-input"}else{h.className="input pui-spinner-up-arrow-input spinner-up-arrow-"+n;l.className="input pui-spinner-down-arrow-input spinner-down-arrow-"+n}if(m){h.className+=" PR";l.className+=" PR"}};g.iq();this.setDisabled=function(){if(b.disabled){h.setAttribute("disabled","true");l.setAttribute("disabled","true")}else{h.removeAttribute("disabled");
|
|
1608
1609
|
l.removeAttribute("disabled")}}};
|
|
1609
|
-
pui.widgets.add({name:"spinner",tag:"input",Gp:pui.normalizeURL("/profoundui/proddata/images/up.gif"),Nt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),at:"input pui-spinner-up-arrow-input",
|
|
1610
|
+
pui.widgets.add({name:"spinner",tag:"input",Gp:pui.normalizeURL("/profoundui/proddata/images/up.gif"),Nt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),at:"input pui-spinner-up-arrow-input",CA:"input pui-spinner-down-arrow-input",Mt:true,PA:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.design)b.dom.sizeMe=function(){var a=b.e;a.wh();a.Kg()};else{if(b.dom.Fc==undefined){b.dom.Fc=new pui.mv(b.dom,b.evalProperty("min value"),
|
|
1610
1611
|
b.evalProperty("max value"),b.evalProperty("increment value"),!b.design);b.dom.sizeMe=function(){b.dom.Fc.Ip()}}if(b.dom.getAttribute("autocomplete")==null&&(N!="genie"||!pui.F.config.lh)){b.dom.setAttribute("autocomplete","off");N=="dspf"&&b.dom.setAttribute("name",pui.Wd())}}if(b.design)b.dom.readOnly=true;b.dom.le=true},value:function(b){b.dom.value=b.value},disabled:function(b){!b.design&&b.dom.Fc&&b.dom.Fc.setDisabled()},visibility:function(b){if(!b.design&&b.dom.Fc)b.value=="hidden"?b.dom.Fc.hide():
|
|
1611
|
-
b.dom.Fc.show()},"css class":function(b){var a,c;c=b.value.split(" ").shift();if(!b.design&&b.dom.Fc)b.dom.Fc.iq(c);else{var e=b.e.yx,f=b.e.
|
|
1612
|
+
b.dom.Fc.show()},"css class":function(b){var a,c;c=b.value.split(" ").shift();if(!b.design&&b.dom.Fc)b.dom.Fc.iq(c);else{var e=b.e.yx,f=b.e.zA;if(c==null){a="input pui-spinner-up-arrow-input "+c;c="input pui-spinner-down-arrow-input "+c}else{a="input pui-spinner-up-arrow-input spinner-up-arrow-"+c;c="input pui-spinner-down-arrow-input spinner-down-arrow-"+c}b.dom["icon1 class"]=a;b.dom["icon2 class"]=c;e.className=a;f.className=c}},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",
|
|
1612
1613
|
b.value);if(N=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Wd()):b.dom.removeAttribute("name")}}},rc:function(b){if(b.propertyName=="field type"&&b.Aa&&b.Aa.l!=null&&b.dom&&b.dom.l==null){for(var a=b.Aa.Kb,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.zg(b.dom);b.dom.Fc.iq()}N=="genie"&&typeof b.dom.sizeMe=="function"&&b.dom.sizeMe()}});pui.widgets.buttonStyles={"Ice Blue":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#cee7ff"},Apricot:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#ffe7ce"},"Royal Blue":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#a5c0ff"},"Bright Gold":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#ffd880"},
|
|
1613
1614
|
Glass:{left:6,right:6,top:11,bottom:11,hasOverState:false,hasClickState:false,editBackgroundColor:"#c9dff3"},"Black Marble":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",editBackgroundColor:"#666666"},"Classic Style":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#d8dbd8"},Cherry:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#e3c9ec"},Simplistic:{left:5,
|
|
1614
1615
|
right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f6f2ed"},"Silver Accent":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f7f7ff"},Caramel:{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c0a254"},"Lime Green":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",
|
|
@@ -1631,7 +1632,7 @@ if(n==null){l=pui.widgets.Ae()[0];n=pui.widgets.buttonStyles[l]}b.dom.button.m.s
|
|
|
1631
1632
|
l,b.dom.offsetWidth,b.dom.offsetHeight,b)};b.dom.style.textAlign="center";if(b.properties.color!=null)b.dom.style.color=b.properties.color;b.dom.innerHTML="";var g={};g.za=document.createElement("div");g.lb=document.createElement("div");g.Sa=document.createElement("div");g.eb=document.createElement("img");g.Sd=document.createElement("img");g.hb=document.createElement("img");g.Ya=document.createElement("div");g.Za=document.createElement("div");g.$a=document.createElement("div");g.m=document.createElement("div");
|
|
1632
1633
|
g.za.style.position="absolute";g.za.style.padding="0px";g.za.style.margin="0px";g.lb.style.position="absolute";g.lb.style.padding="0px";g.lb.style.margin="0px";g.Sa.style.position="absolute";g.Sa.style.padding="0px";g.Sa.style.margin="0px";g.eb.style.position="absolute";g.eb.style.padding="0px";g.eb.style.margin="0px";g.Sd.style.position="absolute";g.Sd.style.padding="0px";g.Sd.style.margin="0px";g.hb.style.position="absolute";g.hb.style.padding="0px";g.hb.style.margin="0px";g.Ya.style.position="absolute";
|
|
1633
1634
|
g.Ya.style.padding="0px";g.Ya.style.margin="0px";g.Za.style.position="absolute";g.Za.style.padding="0px";g.Za.style.margin="0px";g.$a.style.position="absolute";g.$a.style.padding="0px";g.$a.style.margin="0px";g.za.style.top="0px";g.za.style.left="0px";g.za.style.backgroundRepeat="no-repeat";g.lb.style.top="0px";g.lb.style.backgroundRepeat="repeat-x";g.Sa.style.top="0px";g.Sa.style.backgroundRepeat="no-repeat";g.eb.style.left="0px";g.Ya.style.left="0px";g.Ya.style.backgroundRepeat="no-repeat";g.Za.style.backgroundRepeat=
|
|
1634
|
-
"repeat-x";g.$a.style.backgroundRepeat="no-repeat";g.m.style.position="absolute";g.m.style.verticalAlign="middle";g.m.style.display="";g.m.style.overflow="hidden";g.m.onselectstart=
|
|
1635
|
+
"repeat-x";g.$a.style.backgroundRepeat="no-repeat";g.m.style.position="absolute";g.m.style.verticalAlign="middle";g.m.style.display="";g.m.style.overflow="hidden";g.m.onselectstart=ta(false);if(typeof g.m.style.MozUserSelect!="undefined")g.m.style.MozUserSelect="none";g.m.style.textAlign="center";if(b.properties["text align"]!=null)g.m.style.textAlign=b.properties["text align"];if(b.properties["font family"]!=null)g.m.style.fontFamily=b.properties["font family"];if(b.properties.color!=null)g.m.style.color=
|
|
1635
1636
|
b.properties.color;if(b.properties["font size"]!=null)g.m.style.fontSize=b.properties["font size"];if(b.properties["font weight"]!=null)g.m.style.fontWeight=b.properties["font weight"];b.Kf!=true&&T(b.dom,"mouseover",a);b.Kf!=true&&T(b.dom,"mouseout",c);b.Kf!=true&&T(b.dom,"mousedown",e);if(b.Kf!=true){T(b.dom,"mouseup",f);T(b.dom,"touchend",f);T(b.dom,"mouseleave",f)}b.dom.appendChild(g.za);b.dom.appendChild(g.lb);b.dom.appendChild(g.Sa);b.dom.appendChild(g.eb);b.dom.appendChild(g.Sd);b.dom.appendChild(g.hb);
|
|
1636
1637
|
b.dom.appendChild(g.Ya);b.dom.appendChild(g.Za);b.dom.appendChild(g.$a);b.dom.appendChild(g.m);b.dom.button=g;var h=b.value;b.value=b.properties["button style"];pui.widgets["styled button"].propertySetters["button style"](b);b.value=h;b.dom.button.m.innerHTML=b.evalProperty("value")},"button style":function(b){var a;a=b.value;var c=pui.widgets.buttonStyles[a];if(c==null){a=pui.widgets.Ae()[0];c=pui.widgets.buttonStyles[a]}pui.normalizeURL("/profoundui/proddata/images/buttons/"+a+"/");b.dom.button.Ik=
|
|
1637
1638
|
a;var e=b.dom.button;pui.widgets.$j(a,e,"");e.m.className="styled-button "+a.split(" ").join("-").toLowerCase()+"-button";pui.widgets.hm(e,c,b.properties.width,b.properties.height)},value:function(b){b.dom.button.m.innerHTML=b.value},width:function(b){var a;b.dom.style.width=pui.dj(b.value)?b.value+"px":b.value;a=b.properties["button style"];a=pui.widgets.buttonStyles[a];if(a==null){a=pui.widgets.Ae()[0];a=pui.widgets.buttonStyles[a]}pui.widgets.hm(b.dom.button,a,b.value,b.properties.height,b)},height:function(b){var a;
|
|
@@ -1639,42 +1640,42 @@ b.dom.style.height=pui.dj(b.value)?b.value+"px":b.value;a=b.properties["button s
|
|
|
1639
1640
|
b.value},"font weight":function(b){b.dom.button.m.style.fontWeight=b.value},"letter spacing":function(b){b.dom.button.m.style.letterSpacing=b.value},"text align":function(b){var a=b.value;if(a==null||a=="")a="center";b.dom.button.m.style.textAlign=a},"text decoration":function(b){b.dom.button.m.style.textDecoration=b.value},"text transform":function(b){b.dom.button.m.style.textTransform=b.value},"word spacing":function(b){b.dom.button.m.style.wordSpacing=b.value}}});pui.widgets.tabStyles={Simple:{useImages:false,height:15,defaultBackColor:"#eeeeff",hiColor:"#666699"},Classic:{useImages:true,hiImages:true,height:19,leftWidth:5,rightWidth:5,defaultBackColor:"#fcfcfe"},Glass:{useImages:true,hiImages:true,height:21,leftWidth:3,rightWidth:3,defaultBackColor:"#deecfd",hiColor:"#15428b",selColor:"#15428b",borderColor:"#8db2e3",leftMargin:3},Angle:{useImages:true,hiImages:false,height:21,leftWidth:9,rightWidth:25,defaultBackColor:"#ffffff",hiColor:"#ffffff",selColor:"#013572",
|
|
1640
1641
|
hiUnderline:true,selBold:true,separated:true,borderColor:"#5977b3"},Glow:{useImages:true,hiImages:false,height:19,leftWidth:7,rightWidth:7,defaultBackColor:"#ffffff",hiColor:"#666699"},Smooth:{useImages:true,hiImages:true,height:25,leftWidth:6,rightWidth:6,defaultBackColor:"#f8f2e4",backBar:true},Delicate:{useImages:true,hiImages:false,height:27,leftWidth:2,rightWidth:2,defaultBackColor:"#ffffff",hiColor:"#999999",borderColor:"#dedede",leftMargin:0},Concrete:{useImages:true,hiImages:false,height:23,
|
|
1641
1642
|
leftWidth:5,rightWidth:5,defaultBackColor:"#ffffff",hiColor:"#666699",selColor:"#ffffff",separated:true,leftMargin:2},Sky:{useImages:true,hiImages:true,height:22,leftWidth:4,rightWidth:4,defaultBackColor:"#ffffff",hiColor:"#627ec1",selColor:"#627ec1",separated:true,backBar:true,backBarColor:"#f4f7fb",borderColor:"#bcd2e6",borderSize:2},Block:{useImages:true,hiImages:true,height:23,leftWidth:4,rightWidth:4,defaultBackColor:"#87c2f2",hiColor:"#ffffff",selColor:"#ffffff",borderColor:"#2763a5",separated:true},
|
|
1642
|
-
CSS:{useImages:false,
|
|
1643
|
+
CSS:{useImages:false,Iz:false}};pui.widgets.my=function(b){var a=pui.widgets.tabStyles[b];if(a!=null)if(a.ny!=true){if(a.useImages){var c=a.imageFileExtension;if(c==null)c="gif";if(c.substr(0,1)==".")c=c.substr(1);var e=function(f){(new Image).src=f};b=pui.normalizeURL("/profoundui/proddata/images/tabs/"+b.toLowerCase()+"/");if(a.hiImages){e(b+"left-hi."+c);e(b+"middle-hi."+c);e(b+"right-hi."+c)}e(b+"left-sel."+c);e(b+"middle-sel."+c);e(b+"right-sel."+c)}a.ny=true}};
|
|
1643
1644
|
function pe(){function b(){if(h.A.scrollLeft>0)h.A.scrollLeft-=t;else{clearInterval(m);p.style.display="none"}s.style.display="inline-block";w++;if(w>0&&w%5==0)t+=n}function a(){if(h.A.scrollLeft<h.A.scrollWidth-h.A.offsetWidth)try{h.A.scrollLeft+=t}catch(z){}else{clearInterval(r);s.style.display="none"}p.style.display="inline-block";w++;if(w>0&&w%5==0)t+=n}function c(){t=l;w=0;m=setInterval(b,42)}function e(){t=l;w=0;r=setInterval(a,42)}function f(){clearInterval(m)}function g(){clearInterval(r)}
|
|
1644
1645
|
this.wc="Tab 1,Tab 2,Tab 3";this.Zg="The tab cannot be removed because it contains other elements that must be removed first.";var h=this,l=Number(pui["tabpanel scroll speed"]);if(isNaN(l)||l<1)l=5;var n=Number(pui["tabpanel scroll acceleration"]);if(isNaN(n)||n<0)n=1;var m=null,r=null,p=null,s=null,t=5,w=0;this.Ed=0;this.Ak=true;this.ef={};var y,x,E,J;this.nn=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.jb=[];this.selectedTab=
|
|
1645
|
-
0;this.b=null;this.Jc="#eeeeff";this.lc="Simple";this.A=null;this.Zs=function(z){var G=false;if(this.selectedTab==z){if(!this.mm){for(var D=-1,
|
|
1646
|
-
this.uu=function(){var z=pui.widgets.tabStyles[h.lc];if(z!=null&&z.defaultBackColor!=null)h.Jc=z.defaultBackColor};this.Yc=function(){h.z()};this.z=function(){function z(
|
|
1646
|
+
0;this.b=null;this.Jc="#eeeeff";this.lc="Simple";this.A=null;this.Zs=function(z){var G=false;if(this.selectedTab==z){if(!this.mm){for(var D=-1,B=0,K=this.jb.length;B<K;B++)if(B!=z&&this.ef[B]!==true){D=B;break}if(D!=-1){this.selectedTab=D;G=this.ef[z]=true}}}else G=this.ef[z]=true;G&&this.Yc()};this.Eu=function(z){h.ef[z]=false;h.Yc()};this.setTab=function(z){if(h.selectedTab!=z){h.selectedTab=z;if(h.ef[z])h.ef[z]=false;h.Kp(z)}};this.getTab=function(){return h.selectedTab};this.refresh=function(){h.setTab(h.selectedTab)};
|
|
1647
|
+
this.uu=function(){var z=pui.widgets.tabStyles[h.lc];if(z!=null&&z.defaultBackColor!=null)h.Jc=z.defaultBackColor};this.Yc=function(){h.z()};this.z=function(){function z(W){W=(N=="dspf"&&!P?pui.runtimeContainer:document.getElementById(Da)).getElementsByTagName(W);for(var oa=0;oa<W.length;oa++){var da=W[oa];if(da.Wa!=null&&da.fb!=null&&da.Wa==h.b.id){if(da.fb==h.selectedTab){da.style.visibility="";applyProperty(da,"visibility","");if(da.grid&&da.grid.setProperty)da.grid.h||!da.grid.We?da.grid.show():
|
|
1647
1648
|
da.grid.hide();!Eb()&&da.pui.properties["field type"]=="chart"&&!da.chart&&applyProperty(da,"field type","chart")}else{da.style.visibility="hidden";applyProperty(da,"visibility","hidden");da.grid&&da.grid.setProperty&&da.grid.hide();da.H!=null&&da.H.hide()}if(P&&da.tagName=="INPUT"&&(da.type=="text"||pui.ql(da.type)||da.type=="checkbox"||da.type=="radio"))Hb.designer.zh(da).wh()}}}var G;if(h.lc==null||h.lc=="")h.lc="Simple";y=pui.widgets.tabStyles[h.lc];if(y==null)y=pui.widgets.tabStyles.Simple;x=
|
|
1648
|
-
pui.normalizeURL("/profoundui/proddata/images/tabs/"+h.lc.toLowerCase()+"/");E=y.imageFileExtension;if(E==null)E="gif";if(E.substr(0,1)==".")E=E.substr(1);J="#aaaaaa";if(y.borderColor!=null)J=y.borderColor;h.b.innerHTML="";h.b.style.backgroundColor="";if(y.
|
|
1649
|
+
pui.normalizeURL("/profoundui/proddata/images/tabs/"+h.lc.toLowerCase()+"/");E=y.imageFileExtension;if(E==null)E="gif";if(E.substr(0,1)==".")E=E.substr(1);J="#aaaaaa";if(y.borderColor!=null)J=y.borderColor;h.b.innerHTML="";h.b.style.backgroundColor="";if(y.Iz!==false){if(!h.b.style.fontFamily)h.b.style.fontFamily=h.defaults.fontFamily;if(!h.b.style.fontSize)h.b.style.fontSize=h.defaults.fontSize;if(!h.b.style.color)h.b.style.color=h.defaults.color}G=7;if(y.useImages)G=1;h.A=document.createElement("div");
|
|
1649
1650
|
h.A.className="header-area";h.A.style.position="absolute";h.A.style.left="0px";h.A.style.top="0px";h.A.style.height=y.height+G+1+"px";h.A.style.padding="0px";h.A.style.whiteSpace="nowrap";h.A.style.overflow="hidden";if(y.backBar){h.b.style.overflowX="hidden";h.b.style.overflowY="hidden";if(y.backBarColor!=null)h.A.style.backgroundColor=y.backBarColor;else{h.A.style.backgroundImage="url("+x+"middle."+E+")";h.A.style.backgroundRepeat="repeat-x"}}h.A.style.width="100%";var D=document.createElement("div");
|
|
1650
|
-
D.style.position="absolute";D.style.left="0px";D.style.top=y.height+G+"px";D.className="content-area";var
|
|
1651
|
+
D.style.position="absolute";D.style.left="0px";D.style.top=y.height+G+"px";D.className="content-area";var B=h.b.style.width,K=0;if(typeof B=="string"&&B!=""&&!isNaN(B))B+="px";if(B!=null&&B!=""&&B.length>=3&&B.substr(B.length-2)=="px"){K=parseInt(B);if(isNaN(K))K=0;K+=2}else K=h.b.offsetWidth;B=h.b.style.height;if(typeof B=="string"&&B!=""&&!isNaN(B))B+="px";var Q=0;if(B!=null&&B!=""&&B.length>=3&&B.substr(B.length-2)=="px"){Q=parseInt(B);if(isNaN(Q))Q=0;Q+=2}else Q=h.b.offsetHeight;D.style.height=
|
|
1651
1652
|
Math.abs(Q-y.height-G-4)+"px";D.style.width=Math.abs(K-4)+"px";G=1;if(y.borderSize)G=y.borderSize;D.style.border=G+"px solid "+J;D.style.backgroundColor=h.Jc;for(K=0;K<h.jb.length;K++){G=document.createElement("span");G.style.display="inline-block";if(this.ef[K])G.style.display="none";if(K==h.selectedTab){if(h.b.className!="")G.className=h.b.className.split(" ")[0]+"-";G.className+="selected-tab"}if(y.leftWidth!=null){var Y=document.createElement("span");Y.style.backgroundImage="url("+x+"left"+(K==
|
|
1652
1653
|
h.selectedTab?"-sel":"")+"."+E+")";Y.style.backgroundRepeat="no-repeat";Y.style.height=y.height+2+"px";Y.style.width=y.leftWidth+"px";Y.style.cssFloat="left";Y.style.styleFloat="left";Y.style.display="inline-block"}if(y.rightWidth!=null){var ea=document.createElement("span");ea.style.backgroundImage="url("+x+"right"+(K==h.selectedTab?"-sel":"")+"."+E+")";ea.style.backgroundRepeat="no-repeat";ea.style.height=y.height+2+"px";ea.style.width=y.rightWidth+"px";ea.style.cssFloat="left";ea.style.styleFloat=
|
|
1653
|
-
"left";ea.style.display="inline-block"}
|
|
1654
|
-
"2px";
|
|
1655
|
-
true)
|
|
1656
|
-
h.Jc;
|
|
1657
|
-
h.A.offsetWidth/2+G.offsetWidth/2)}this.Ak=false}h.vk()}var P=Eb();P&&h.fs();z("div");z("input");z("select");z("textarea");z("button");z("img")};this.fs=function(){var z=designUtils.fo("plus","Add New Tab",h.b),G=designUtils.fo("minus","Remove Tab",h.b);z.style.right="2px";G.style.right="16px";G.style.top=z.style.top="2px";z.onclick=h.Tv;G.onclick=h.
|
|
1658
|
-
if(pui.gc()==false){G.S=null;h.selectedTab=h.nn}}else{h.Yc();if(N=="dspf"&&h.lm==true)G.S=z}};this.
|
|
1659
|
-
this.
|
|
1660
|
-
z.parentNode;z=z.Ba;if(h.b.ontabclick!=null)if(h.b.ontabclick(z)==false)return;if(h.b.Lu!=null){var G=h.b.Lu.split(",");if(G.length-1>=z){G=G[z];G=Kb(G);if(G!=""){Ub(G);return}}}h.nn=h.selectedTab;G=false;if(h.selectedTab!=z)G=true;if(G)h.selectedTab=z;if(Eb()){var D=Hb.designer.selection;D.Yd.length>1&&D.clear()}G&&h.Kp(z)};this.Mu=function(z){if(Eb()){var G=z.target;if(G.Ba==null&&G.parentNode.Ba!=null)G=G.parentNode;var D=G.parentNode.parentNode.parentNode,
|
|
1661
|
-
!pui.Nb(
|
|
1654
|
+
"left";ea.style.display="inline-block"}B=document.createElement("span");B.Ba=K;B.innerHTML=h.jb[K];B.style.display="block";B.style.cssFloat="left";B.style.styleFloat="left";B.style.height=y.height+"px";B.style.lineHeight=y.height+"px";B.setAttribute("isTab","true");B.style.display="inline-block";if(y.useImages){B.style.backgroundImage="url("+x+"middle"+(K==h.selectedTab?"-sel":"")+"."+E+")";B.style.backgroundRepeat="repeat-x";Q=1;if(y.leftMargin)Q=y.leftMargin;Y.style.marginLeft=Q+"px";Y.style.paddingTop=
|
|
1655
|
+
"2px";B.style.padding="2px 0.5em";ea.style.paddingTop="2px";if(K!=h.selectedTab)B.style.cursor="pointer";else{if(y.separated!=true){Y.style.backgroundColor=h.Jc;ea.style.backgroundColor=h.Jc;B.style.backgroundColor=h.Jc;if((this.lc=="Glass"||this.lc=="Delicate"||this.lc=="Classic")&&K==h.selectedTab){Y.style.backgroundSize="cover";ea.style.backgroundSize="cover";Y.style.backgroundColor="";ea.style.backgroundColor=""}}B.style.cursor="default";if(y.selColor!=null)B.style.color=y.selColor;if(y.selBold==
|
|
1656
|
+
true)B.style.fontWeight="bold"}}else{B.style.marginLeft="3px";B.style.padding="3px 0.5em";B.style.borderTop="1px solid "+J;B.style.borderLeft="1px solid "+J;B.style.borderRight="1px solid "+J;if(K!=h.selectedTab){B.style.borderBottom="1px solid "+J;B.style.backgroundColor=y.defaultTabColor?y.defaultTabColor:"#B7C8F6";if(N=="genie")B.style.filter="progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=white,endColorStr=##B7C8F6)";B.style.cursor="pointer"}else{B.style.backgroundColor=
|
|
1657
|
+
h.Jc;B.style.borderBottom="1px solid "+h.Jc;B.style.cursor="default"}}B.onmouseover=h.Az;B.onmouseout=h.zz;B.ondblclick=h.Mu;B.onclick=h.yz;h.A.appendChild(G);y.leftWidth!=null&&G.appendChild(Y);G.appendChild(B);y.rightWidth!=null&&G.appendChild(ea)}h.b.appendChild(D);h.b.appendChild(h.A);s=p=null;if(h.A.scrollWidth-h.A.offsetWidth>0){h.yr(h.A);if(this.lm&&this.Ak){if(h.A.childNodes!=null&&h.selectedTab>=0&&h.selectedTab<h.A.childNodes.length){G=h.A.childNodes[h.selectedTab];h.Ed=Math.round(G.offsetLeft-
|
|
1658
|
+
h.A.offsetWidth/2+G.offsetWidth/2)}this.Ak=false}h.vk()}var P=Eb();P&&h.fs();z("div");z("input");z("select");z("textarea");z("button");z("img")};this.fs=function(){var z=designUtils.fo("plus","Add New Tab",h.b),G=designUtils.fo("minus","Remove Tab",h.b);z.style.right="2px";G.style.right="16px";G.style.top=z.style.top="2px";z.onclick=h.Tv;G.onclick=h.Hy};this.Kp=function(z){var G=h.b;if(G.disabled!=true)if(N=="dspf"&&h.mm==true){G.S=z;if(G.G=="true"||G.G=="send data")pui.G=G.G;if(h.Yp)pui.ub=h.Yp;
|
|
1659
|
+
if(pui.gc()==false){G.S=null;h.selectedTab=h.nn}}else{h.Yc();if(N=="dspf"&&h.lm==true)G.S=z}};this.Az=function(z){z=tb(z);if(z.Ba==null&&z.parentNode.Ba!=null)z=z.parentNode;if(z.Ba!=h.selectedTab){if(y.useImages&&y.hiImages){z.style.backgroundImage="url("+x+"middle-hi."+E+")";z.previousSibling.style.backgroundImage="url("+x+"left-hi."+E+")";z.nextSibling.style.backgroundImage="url("+x+"right-hi."+E+")"}if(y.hiColor!=null)z.style.color=y.hiColor;if(y.hiUnderline==true)z.style.textDecoration="underline"}};
|
|
1660
|
+
this.zz=function(z){z=tb(z);if(z.Ba==null&&z.parentNode.Ba!=null)z=z.parentNode;if(z.Ba!=h.selectedTab){if(y.useImages&&y.hiImages){z.style.backgroundImage="url("+x+"middle."+E+")";z.previousSibling.style.backgroundImage="url("+x+"left."+E+")";z.nextSibling.style.backgroundImage="url("+x+"right."+E+")"}if(y.hiColor!=null)z.style.color="";if(y.hiUnderline==true)z.style.textDecoration=""}};this.yz=function(z){z=z.target;h.Ed=z.parentNode.parentNode.scrollLeft;if(z.Ba==null&&z.parentNode.Ba!=null)z=
|
|
1661
|
+
z.parentNode;z=z.Ba;if(h.b.ontabclick!=null)if(h.b.ontabclick(z)==false)return;if(h.b.Lu!=null){var G=h.b.Lu.split(",");if(G.length-1>=z){G=G[z];G=Kb(G);if(G!=""){Ub(G);return}}}h.nn=h.selectedTab;G=false;if(h.selectedTab!=z)G=true;if(G)h.selectedTab=z;if(Eb()){var D=Hb.designer.selection;D.Yd.length>1&&D.clear()}G&&h.Kp(z)};this.Mu=function(z){if(Eb()){var G=z.target;if(G.Ba==null&&G.parentNode.Ba!=null)G=G.parentNode;var D=G.parentNode.parentNode.parentNode,B=Hb.designer.zh(D);if(!pui.p(B.properties["tab names"])&&
|
|
1662
|
+
!pui.Nb(B.properties["tab names"])){B.designer.Jf.Ap=function(K){var Q,Y=G.Ba;Q=B.properties["tab names"];if(Q==""||Q==null)Q=h.wc;Q=pui.ha(Q);Q[Y]=K;Q=Q.join(",");K=Ac()["tab names"];B.designer.ca.add(B,K.name);Mc(K,B.properties,B.dom,Q,true,B,null);B.qb["tab names"]=true;B.nd=true;B.designer.od[B.designer.Oa.vb]=true;B.designer.pb.Uh("tab names");G=D=B=B.designer.Jf.Ap=null};B.designer.Jf.show(B,G,"tab")}}};this.Tv=function(){var z=Hb.designer.zh(h.b),G=z.properties["tab names"];if(!pui.Nb(G)){if(pui.p(G)){var D=
|
|
1662
1663
|
G.designValue;if(D==null||D=="")D=h.wc;D=pui.ha(D);D.push("Tab "+(D.length+1));G.designValue=D.join(",")}else{if(G==""||G==null)G=h.wc;G=pui.ha(G);G.push("New Tab");G=G.join(",")}D=!pui.p(G)&&!pui.Nb(G)?pui.ha(G):pui.ha(G.designValue);h.selectedTab=D.length-1;if(h.A)h.Ed=h.A.scrollWidth;D=Ac()["tab names"];z.designer.ca.start("Add New Tab");z.designer.ca.add(z,D.name);Mc(D,z.properties,z.dom,G,true,z,null);z.qb["tab names"]=true;z.nd=true;z.designer.od[z.designer.Oa.vb]=true;z.designer.selection.clear();
|
|
1663
|
-
z.designer.selection.add(z);z.designer.pb.refresh()}};this.
|
|
1664
|
-
D.length-1;if(pui.p(G)||pui.Nb(G))G.designValue=D.join(",");else G=D.join(",");D=Ac()["tab names"];z.designer.ca.start("Remove Tab");z.designer.ca.add(z,D.name);Mc(D,z.properties,z.dom,G,true,z,null);z.qb["tab names"]=true;z.nd=true;z.designer.od[z.designer.Oa.vb]=true;z.designer.pb.Uh("tab names");if(z.dom.Ka!=null&&z.dom.Ka==h)h.selectedTab=
|
|
1664
|
+
z.designer.selection.add(z);z.designer.pb.refresh()}};this.Hy=function(){var z=Hb.designer.zh(h.b),G=z.properties["tab names"],D;if(!pui.Nb(G)){if(pui.p(G)){var B=G.designValue;if(B==null||B=="")B=h.wc;G.designValue=B;D=pui.ha(B)}else{if(G==""||G==null)G=h.wc;D=pui.ha(G)}if(D.length>1)if(h.qi(D.length-1,z)){z.designer.selection.clear();z.designer.selection.add(z);z.designer.pb.refresh();h.selectedTab=D.length-1;h.Yc();pui.alert(h.Zg)}else{D.pop();B=h.selectedTab;if(h.selectedTab>D.length-1)h.selectedTab=
|
|
1665
|
+
D.length-1;if(pui.p(G)||pui.Nb(G))G.designValue=D.join(",");else G=D.join(",");D=Ac()["tab names"];z.designer.ca.start("Remove Tab");z.designer.ca.add(z,D.name);Mc(D,z.properties,z.dom,G,true,z,null);z.qb["tab names"]=true;z.nd=true;z.designer.od[z.designer.Oa.vb]=true;z.designer.pb.Uh("tab names");if(z.dom.Ka!=null&&z.dom.Ka==h)h.selectedTab=B}}};this.qi=function(z,G){for(var D=0;D<G.designer.items.length;D++){var B=G.designer.items[D].dom;if(B.Wa!=null&&B.fb!=null&&B.Wa==h.b.id)if(B.fb==z)return true}return false};
|
|
1665
1666
|
this.yr=function(){p=h.ri("left");s=h.ri("right");if(Eb())s.style.right="35px";p.onmousedown=c;p.ontouchstart=c;p.onmouseup=f;p.ontouchend=f;p.onmouseout=p.onmouseup;p.$x=p.onmouseup;s.onmousedown=e;s.ontouchstart=e;s.onmouseup=g;s.ontouchend=g;s.onmouseout=s.onmouseup;s.$x=s.onmouseup;h.b.appendChild(p);h.b.appendChild(s)};this.vk=function(){var z=h.A.scrollWidth-h.A.offsetWidth;if(z-h.Ed<=3)h.Ed=z;else if(h.Ed<=3)h.Ed=0;h.A.scrollLeft=h.Ed;p.style.display=h.A.scrollLeft>0?"inline-block":"";s.style.display=
|
|
1666
|
-
h.A.scrollLeft<z?"inline-block":""};this.ri=function(z){var G=document.createElement("span");if(z)G.className="pui-tscrbtn "+z;var D="-sel.";if(pui["tabpanel scroll unsel style"]==true)D=".";if(y.leftWidth!=null){var
|
|
1667
|
-
E+")";K.style.height=y.height+2+"px";K.style.width=y.rightWidth+"px"}z=document.createElement("span");z.className="mid";z.style.height=y.height+"px";if(y.useImages){z.style.backgroundImage="url("+x+"middle"+D+E+")";z.style.backgroundRepeat="repeat-x";D=1;if(y.leftMargin)D=y.leftMargin;
|
|
1668
|
-
this.lc=="Classic"){
|
|
1669
|
-
pui["tabpanel scroll unsel style"]!=true?h.Jc:y.defaultTabColor?y.defaultTabColor:"#B7C8F6"}y.leftWidth!=null&&G.appendChild(
|
|
1667
|
+
h.A.scrollLeft<z?"inline-block":""};this.ri=function(z){var G=document.createElement("span");if(z)G.className="pui-tscrbtn "+z;var D="-sel.";if(pui["tabpanel scroll unsel style"]==true)D=".";if(y.leftWidth!=null){var B=document.createElement("span");B.className="edge";B.style.backgroundImage="url("+x+"left"+D+E+")";B.style.height=y.height+2+"px";B.style.width=y.leftWidth+"px"}if(y.rightWidth!=null){var K=document.createElement("span");K.className="edge";K.style.backgroundImage="url("+x+"right"+D+
|
|
1668
|
+
E+")";K.style.height=y.height+2+"px";K.style.width=y.rightWidth+"px"}z=document.createElement("span");z.className="mid";z.style.height=y.height+"px";if(y.useImages){z.style.backgroundImage="url("+x+"middle"+D+E+")";z.style.backgroundRepeat="repeat-x";D=1;if(y.leftMargin)D=y.leftMargin;B.style.marginLeft=D+"px";z.style.padding=y.height-17+"px 0.5em 0px";if(y.separated!=true){B.style.backgroundColor=h.Jc;K.style.backgroundColor=h.Jc;z.style.backgroundColor=h.Jc;if(this.lc=="Glass"||this.lc=="Delicate"||
|
|
1669
|
+
this.lc=="Classic"){B.style.backgroundSize="cover";K.style.backgroundSize="cover";B.style.backgroundColor="";K.style.backgroundColor="";B.style.height=y.height+"px";K.style.height=y.height+"px"}}if(y.selColor!=null)z.style.color=y.selColor;if(y.selBold==true)z.style.fontWeight="bold"}else{z.style.marginLeft="3px";z.style.padding="3px 0.5em";z.style.borderTop="1px solid "+J;z.style.borderLeft="1px solid "+J;z.style.borderRight="1px solid "+J;z.style.borderBottom="1px solid "+h.Jc;z.style.backgroundColor=
|
|
1670
|
+
pui["tabpanel scroll unsel style"]!=true?h.Jc:y.defaultTabColor?y.defaultTabColor:"#B7C8F6"}y.leftWidth!=null&&G.appendChild(B);G.appendChild(z);y.rightWidth!=null&&G.appendChild(K);return G}}pe.prototype=Object.create(pui.uc.prototype);
|
|
1670
1671
|
pui.widgets.add({name:"tab panel",rg:false,b:true,defaults:{width:"300px",height:"200px","tab names":"Tab 1,Tab 2,Tab 3","z index":"8",color:"#333366","font family":"Arial","font size":"12px"},propertySetters:{"field type":function(b){b.dom.sizeMe=function(){b.dom.tabPanel.z()};b.dom.tabPanel=new pe;var a=b.evalProperty("tab names");b.dom.tabPanel.jb=a!=null&&a!=""?pui.ha(a):["Tab 1","Tab 2","Tab 3"];b.dom.tabPanel.selectedTab=0;b.dom.tabPanel.b=b.dom;b.dom.tabPanel.lc=b.properties["tab panel style"];
|
|
1671
1672
|
if(b.design&&pui.p(b.dom.tabPanel.lc))b.dom.tabPanel.lc="Simple";if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.uu();if(N=="genie"||b.design)b.dom.tabPanel.z();if(!b.design){a=b.dom.tabPanel;b.dom.setTab=a.setTab.bind(a);b.dom.getTab=a.getTab.bind(a);b.dom.refresh=a.refresh.bind(a);b.dom.hideTab=a.Zs.bind(a);b.dom.showTab=a.Eu.bind(a)}},"tab names":function(b){if(b.dom.tabPanel!=null){var a=b.value;b.dom.tabPanel.jb=a!=null&&a!=""?pui.ha(a):["Tab 1",
|
|
1672
1673
|
"Tab 2","Tab 3"];if(N=="genie"||b.design)b.dom.tabPanel.z()}},"tab keys":function(b){b.dom.Lu=b.value},"tab panel style":function(b){b.dom.tabPanel.lc=b.value;if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.uu();if(N=="genie"||b.design)b.dom.tabPanel.z();pui.widgets.my(b.value)},width:function(b){b.design&&pui.Fh(b.value)&&b.dom.tabPanel.z()},height:function(b){b.design&&pui.Fh(b.value)&&b.dom.tabPanel.z()},"response AID":function(b){if(b.dom.tabPanel)b.dom.tabPanel.Yp=
|
|
1673
|
-
b.value}}});pui.rB=function(b){function a(
|
|
1674
|
-
|
|
1675
|
-
Q=false;K.shift();
|
|
1676
|
-
parseInt(n.ij[h],10);if(isNaN(m[h]))m[h]=0}var r=n.value,p=r.length,s=[],t;s.push("");var w=0,y=function(
|
|
1677
|
-
da=ga=K.text;Aa=
|
|
1674
|
+
b.value}}});pui.rB=function(b){function a(B){if(n.Xd[B].C.DBCSDataType&&n.Xd[B].C.DBCSDataType=="G")return s[B].length;return md(s[B])}function c(){if(w>=m.length-1)return false;w++;s.push("");return true}function e(B){if(B>=48&&B<=90)return true;if(B>=96&&B<=111)return true;if(B>=186&&B<=192)return true;if(B>=219&&B<=222)return true;if(B==32)return true;return false}function f(B,K,Q){if(B.setSelectionRange){B.focus();B.setSelectionRange(K,Q)}else if(B.createTextRange){B=B.createTextRange();B.collapse(true);
|
|
1675
|
+
B.moveEnd("character",Q);B.moveStart("character",K);B.select()}}function g(){var B,K=[],Q=0;for(B=0;B<p;B++){var Y=r.charAt(B);if(Y=="\n"||Y==" "){if(Q<B)K.push(r.substring(Q,B));else Y=="\n"&&K.push("");Q=B+1;K.push(Y)}else B==p-1&&Q<p&&K.push(r.substring(Q))}if(J!="paste")for(B=0;B<K.length;B++){Q=m[0];erasingSplitAdjust=0;if(K.length>B+2)if(K[B].length>=Q&&K[B+1]==="\n"&&K[B+2]!==" "&&K[B+2]!=="\n"){K[B]+=K[B+2];K.splice(B+1,2);B--}}B=0;Q=false;for(Y=J=="paste";K.length>0;)if(K[0]=="\n"){if(!Q)if(!c())break;
|
|
1676
|
+
Q=false;K.shift();B<y&&y--}else if(K[0]==" "){var ea=a(w)<m[w];if(!ea){if(!c())break;if(!z&&!Y)Q=true}if((ea||!Y)&&K[1]!=="\n")s[w]+=" ";else ea&&K[1]=="\n"&&c();B++;K.shift()}else{ea=a(w);var P=K[0].length,W=m[w];if(ea+P<=W){s[w]+=K[0];B+=P;K.shift()}else if(z&&ea+P<=W){s[w]+=K[0];B+=P;K.shift()}else if(P<=W){if(!c())break;s[w]+=K[0];B+=P;K.shift()}else{ea=W-ea;s[w]+=K[0].substr(0,ea);K[0]=K[0].substr(ea);B+=ea}}if(J=="paste")y=x}var h,l,n=tb(b);if(n.ij!=null){var m=[];for(h=0;h<n.ij.length;h++){m[h]=
|
|
1677
|
+
parseInt(n.ij[h],10);if(isNaN(m[h]))m[h]=0}var r=n.value,p=r.length,s=[],t;s.push("");var w=0,y=function(B){if(typeof B.selectionStart=="number")return B.selectionStart;else if(document.selection){var K=document.selection.createRange().duplicate();if(K.parentElement()==B){var Q=document.body.createTextRange();Q.moveToElementText(B);Q.setEndPoint("EndToStart",K);var Y=document.body.createTextRange();Y.moveToElementText(B);Y.setEndPoint("StartToEnd",K);var ea=B=false,P=false,W,oa,da,ga,Aa,Ea;W=oa=Q.text;
|
|
1678
|
+
da=ga=K.text;Aa=Ea=Y.text;do{if(!B)if(Q.compareEndPoints("StartToEnd",Q)==0)B=true;else{Q.moveEnd("character",-1);if(Q.text==W)oa+="\r\n";else B=true}if(!ea)if(K.compareEndPoints("StartToEnd",K)==0)ea=true;else{K.moveEnd("character",-1);if(K.text==da)ga+="\r\n";else ea=true}if(!P)if(Y.compareEndPoints("StartToEnd",Y)==0)P=true;else{Y.moveEnd("character",-1);if(Y.text==Aa)Ea+="\r\n";else P=true}}while(!B||!ea||!P);return oa.length}}}(n),x=y;if(!b)b=window.event;var E=b.which;if(!E)E=b.keyCode;var J=
|
|
1678
1679
|
b.type;if(J=="keydown"&&E==17)n.es=true;if(J=="keyup")n.es=false;if(J=="paste"){b.preventDefault();b.stopPropagation();h=(b.clipboardData||window.clipboardData).getData("text");if(h==null||h.length==0)return false;h=h.replace(/\r/g,"");h=h.replace(/\t/g," ");if(h.length==0)return;r=r.substr(0,n.selectionStart)+h+r.substr(n.selectionEnd);p=r.length;g()}if(!(E==8&&J=="keyup")){var z=E==8;if(E==8&&J=="keydown"&&y>0){if(pui.is_ie&&r.length<y)y=r.length;if(y===n.selectionStart&&y<n.selectionEnd){l=r.slice(0,
|
|
1679
1680
|
y-1);t=r.slice(n.selectionEnd);t=t.replace(/(?<!\n)\n(?!\n)/g,"");t=t.replace(/\n{3,}/g,"\n\n");r=l+t}else{h=r.substr(y-1,1);if(h!=="\n"&&h!=="\r"){l=r.slice(0,y-1);t=r.slice(y);t=t.replace(/(?<!\n)\n(?!\n)/g,"");t=t.replace(/\n{3,}/g,"\n\n");r=l+t}if(h==="\n"||h==="\r"){l=r.slice(0,y-1);t=r.slice(y);t=t.replace(/(?<!\n)\n(?!\n)/g,"");t=t.replace(/\n{3,}/g,"\n\n");r=l+t}}y-=1;b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;x=y}else if(E==
|
|
1680
1681
|
46&&J=="keydown"){n.ps=true;if(y<=m[0])n.Pw=true}else if(E==46&&J=="keyup"){delete n.ps;delete n.Pw}else if(J=="input")z=n.ps===true;if(E==13&&J=="keydown"){l=r.slice(0,y);t=r.slice(y);t=t.replace(/(?<!\n)\n(?!\n)/g,"");t=t.replace(/\n{3,}/g,"\n\n");var G=0;for(h=0;h<l.length;h++)l.charAt(h)=="\n"&&G++;if(G>=m.length){b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;return}l+="\n\n";r=l+t;b.preventDefault&&b.preventDefault();b.stopPropagation&&
|
|
@@ -1683,8 +1684,8 @@ h)D=w}}if(x==p)D=w;l="";for(h=0;h<s.length;h++){l+=s[h];if(h!=w&&s[h+1]!==undefi
|
|
|
1683
1684
|
l;f(n,y,y)}if(l!=t&&!n.Xd){n.value=l;f(n,y,y)}}}};
|
|
1684
1685
|
pui.widgets.add({name:"text area",tag:"textarea",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.Aa.maxLength&&b.dom.maxLength!=b.Aa.maxLength)b.dom.maxLength=b.Aa.maxLength;if(b.Aa.Jt)b.dom.Jt=b.Aa.Jt;if(b.Aa.Xd)b.dom.Xd=b.Aa.Xd;if(b.Aa.ij)b.dom.ij=b.Aa.ij;N=="dspf"&&!b.design&&T(b.dom,"keydown",function(a){a=a||window.event;if(a.keyCode==13)a.cancelBubble=true});if(b.design)b.dom.oq=false;if(N=="dspf"&&!Eb())T(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();
|
|
1685
1686
|
a.target.select()}});else if(typeof pui["allow spellcheck"]=="boolean")b.dom.oq=pui["allow spellcheck"]},value:function(b){b.dom.value=b.value}},rc:function(b){b.propertyName=="field type"&&b.Aa&&b.Aa.l!=null&&b.dom&&b.dom.l==null&&pui.zg(b.dom);b.dom&&b.dom.l!=null&&pui.tp(b)}});pui.bf=function(b){this.dom=b.dom;this.dom.value=b.evalProperty("value");this.design=b.design;if(!this.design){pui.Zv(b.properties,b.originalValue,this.dom);if(pui.qa&&!pui.Gf&&this.dom.id.indexOf(".")==-1){this.dom.addEventListener("focus",this);this.dom.addEventListener("blur",this)}if(typeof pui["allow spellcheck"]=="boolean")this.dom.oq=pui["allow spellcheck"];this.dom.calimg&&pui.Qp(this.dom);if(this.dom.getAttribute("autocomplete")==null&&(N!="genie"||!pui.F.config.lh)){this.dom.setAttribute("autocomplete",
|
|
1686
|
-
"off");N=="dspf"&&this.dom.setAttribute("name",pui.Wd())}}var a=b.evalProperty("prompt icon");if(this.design){this.dom.readOnly=true;this.dom.oq=false;var c=b.e;this.e=c;c.Wl=null;if(a)c.Wl=a;this.dom.sizeMe=this.Lv}else if(a)this.dom.sizeMe=this.Kv;this.dom.le=true;a&&!this.design&&qe(this,b);N=="dspf"&&!Eb()&&this.dom.addEventListener("click",this);this.dom.destroy=this.tv.bind(this);this.dom.Tf=pui.Sg};pui.bf.prototype=Object.create(pui.uc.prototype);
|
|
1687
|
-
pui.bf.prototype.Lv=function(){var b=this.e;if(b){b.wh();b.Kg()}};
|
|
1687
|
+
"off");N=="dspf"&&this.dom.setAttribute("name",pui.Wd())}}var a=b.evalProperty("prompt icon");if(this.design){this.dom.readOnly=true;this.dom.oq=false;var c=b.e;this.e=c;c.Wl=null;if(a)c.Wl=a;this.dom.sizeMe=this.Lv;this.dom.id=b.properties.id}else if(a)this.dom.sizeMe=this.Kv;this.dom.le=true;a&&!this.design&&qe(this,b);N=="dspf"&&!Eb()&&this.dom.addEventListener("click",this);this.dom.destroy=this.tv.bind(this);this.dom.Tf=pui.Sg};pui.bf.prototype=Object.create(pui.uc.prototype);
|
|
1688
|
+
pui.bf.prototype.Kv=function(){pui.sp(this)};pui.bf.prototype.Lv=function(){var b=this.e;if(b){b.wh();b.Kg()}};
|
|
1688
1689
|
pui.bf.prototype.tv=function(){var b=this.dom;b.removeAttribute("autocomplete");b.removeAttribute("name");b.removeAttribute("type");b.style="";var a=b.Ph;if(a){a.parentNode&&a.parentNode.removeChild(a);pui.ma(a);pui.pd(a)}if(Array.isArray(b.Kb))for(;b.Kb.length>0;)if(a=b.Kb.pop()){a.parentNode&&a.parentNode.removeChild(a);pui.ma(a);pui.pd(a)}pui.bu(b);b.removeEventListener("click",this);b.removeEventListener("focus",this);b.removeEventListener("blur",this);b.Ab&&typeof b.Ab.destroy==="function"&&
|
|
1689
1690
|
b.Ab.destroy();pui.ma(b);pui.pd(b);this.Lc()};pui.bf.prototype.handleEvent=function(b){switch(b.type){case "click":if(pui["highlight on focus"]){b.target.focus();b.target.select()}break;case "focus":Ab("ipadKeyboard").style.display="";break;case "blur":Ab("ipadKeyboard").style.display="none";break}};pui.bf.prototype.setProperty=function(b){switch(b.propertyName){case "field type":b.Aa&&b.Aa.l!=null&&b.dom&&b.dom.l==null&&pui.zg(b.dom);break}b.dom&&b.dom.l!=null&&pui.tp(b)};
|
|
1690
1691
|
function qe(b,a){var c,e=document.createElement("div");c=a.evalProperty("prompt icon");e.classList.add("pui-prompt");for(var f=0;f<a.dom.classList.length;f++)e.classList.add("pui-prompt-"+a.dom.classList[f]);if(c.substr(0,9)==="material:"){c=c.substr(9);e.innerText=Kb(c);e.classList.add("pui-material-icons")}else if(c.substr(0,12)==="fontAwesome:"){c=Kb(c.substr(12));e.classList.add("pui-fa-icons fa-"+c);e.innerText=""}else{f=[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},
|
|
@@ -1710,22 +1711,22 @@ pui.widgets.add({name:"panel",newValue:"Panel Title",rg:false,sd:true,b:true,def
|
|
|
1710
1711
|
b.dom.innerHTML="";if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";var a={};a.za=document.createElement("div");a.lb=document.createElement("div");a.Sa=document.createElement("div");a.eb=document.createElement("div");a.ec=document.createElement("div");a.hb=document.createElement("div");a.Ya=document.createElement("div");a.Za=document.createElement("div");a.$a=document.createElement("div");a.m=document.createElement("div");a.za.style.position="absolute";a.za.style.padding=
|
|
1711
1712
|
"0px";a.za.style.margin="0px";a.lb.style.position="absolute";a.lb.style.padding="0px";a.lb.style.margin="0px";a.Sa.style.position="absolute";a.Sa.style.padding="0px";a.Sa.style.margin="0px";a.eb.style.position="absolute";a.eb.style.padding="0px";a.eb.style.margin="0px";a.ec.style.position="absolute";a.ec.style.padding="0px";a.ec.style.margin="0px";a.ec.className="content-area";a.hb.style.position="absolute";a.hb.style.padding="0px";a.hb.style.margin="0px";a.Ya.style.position="absolute";a.Ya.style.padding=
|
|
1712
1713
|
"0px";a.Ya.style.margin="0px";a.Za.style.position="absolute";a.Za.style.padding="0px";a.Za.style.margin="0px";a.$a.style.position="absolute";a.$a.style.padding="0px";a.$a.style.margin="0px";a.za.style.top="0px";a.za.style.left="0px";a.za.style.backgroundRepeat="no-repeat";a.lb.style.top="0px";a.lb.style.backgroundRepeat="repeat-x";a.Sa.style.top="0px";a.Sa.style.backgroundRepeat="no-repeat";a.eb.style.left="0px";a.Ya.style.left="0px";a.Ya.style.backgroundRepeat="no-repeat";a.Za.style.backgroundRepeat=
|
|
1713
|
-
"repeat-x";a.$a.style.backgroundRepeat="no-repeat";a.eb.style.backgroundRepeat="repeat-y";a.hb.style.backgroundRepeat="repeat-y";a.m.style.position="absolute";a.m.style.verticalAlign="middle";a.m.style.display="";if(!pui.qa)a.m.style.cursor="default";a.m.style.overflow="hidden";a.m.style.
|
|
1714
|
+
"repeat-x";a.$a.style.backgroundRepeat="no-repeat";a.eb.style.backgroundRepeat="repeat-y";a.hb.style.backgroundRepeat="repeat-y";a.m.style.position="absolute";a.m.style.verticalAlign="middle";a.m.style.display="";if(!pui.qa)a.m.style.cursor="default";a.m.style.overflow="hidden";a.m.style.Lz="rgba(0,0,0,0)";if(b.properties.color!=null)a.m.style.color=b.properties.color;if(b.properties["text align"]!=null)a.m.style.textAlign=b.properties["text align"];if(b.properties["font size"]!=null)a.m.style.fontSize=
|
|
1714
1715
|
b.properties["font size"];b.dom.style.fontFamily=a.m.style.fontFamily;b.dom.style.color=a.m.style.color;b.dom.style.fontSize=a.m.style.fontSize;b.dom.style.fontWeight=a.m.style.fontWeight;b.dom.style.textAlign=a.m.style.textAlign;b.dom.appendChild(a.za);b.dom.appendChild(a.lb);b.dom.appendChild(a.Sa);b.dom.appendChild(a.eb);b.dom.appendChild(a.ec);b.dom.appendChild(a.hb);b.dom.appendChild(a.Ya);b.dom.appendChild(a.Za);b.dom.appendChild(a.$a);b.dom.appendChild(a.m);var c=b.dom.parentNode;if(!b.design&&
|
|
1715
1716
|
c!=null&&c.Bc==true){new pui.pk({Gk:[a.m,a.za,a.Sa],move:c});T(a.m,"touchstart",function(e){if(e.touches.length==1){e=e.touches[0];c.D={};c.D.startX=e.pageX;c.D.startY=e.pageY;c.D.ib=parseInt(c.style.left);c.D.Ga=parseInt(c.style.top)}});T(a.m,"touchmove",function(e){if(e.touches.length==1){var f=e.touches[0],g=f.pageY;c.style.left=c.D.ib-c.D.startX+f.pageX+"px";c.style.top=c.D.Ga-c.D.startY+g+"px";e.preventDefault()}});a.m.style.cursor="move";a.za.style.cursor="move";a.Sa.style.cursor="move"}b.dom.panel=
|
|
1716
|
-
a;a=b.value;b.value=b.properties["panel style"];pui.widgets.panel.propertySetters["panel style"](b);b.value=a;b.dom.panel.m.innerHTML=b.evalProperty("value")},"panel style":function(b){var a;a=b.value;var c=pui.widgets.panelStyles[a];if(c==null){a=pui.widgets.Vi()[0];c=pui.widgets.panelStyles[a]}var e=pui.normalizeURL("/profoundui/proddata/images/panels/"+a+"/");b.dom.panel.
|
|
1717
|
+
a;a=b.value;b.value=b.properties["panel style"];pui.widgets.panel.propertySetters["panel style"](b);b.value=a;b.dom.panel.m.innerHTML=b.evalProperty("value")},"panel style":function(b){var a;a=b.value;var c=pui.widgets.panelStyles[a];if(c==null){a=pui.widgets.Vi()[0];c=pui.widgets.panelStyles[a]}var e=pui.normalizeURL("/profoundui/proddata/images/panels/"+a+"/");b.dom.panel.UA=a;var f=b.dom.panel;f.za.style.backgroundImage="url('"+e+"topleft.png')";f.lb.style.backgroundImage="url('"+e+"topmiddle.png')";
|
|
1717
1718
|
f.Sa.style.backgroundImage="url('"+e+"topright.png')";f.eb.style.backgroundImage="url('"+e+"left.png')";f.ec.style.backgroundColor=c.background;f.hb.style.backgroundImage="url('"+e+"right.png')";f.Ya.style.backgroundImage="url('"+e+"bottomleft.png')";f.Za.style.backgroundImage="url('"+e+"bottommiddle.png')";f.$a.style.backgroundImage="url('"+e+"bottomright.png')";f.m.style.paddingTop=c.textTopPadding;f.m.className="panel "+a.split(" ").join("-").toLowerCase()+"-panel";pui.widgets.gm(f,c,b.properties.width,
|
|
1718
1719
|
b.properties.height)},value:function(b){b.dom.panel.m.innerHTML=b.value},width:function(b){var a;b.dom.style.width=pui.dj(b.value)?b.value+"px":b.value;a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Vi()[0];a=pui.widgets.panelStyles[a]}pui.widgets.gm(b.dom.panel,a,b.value,b.properties.height,b)},height:function(b){var a;b.dom.style.height=pui.dj(b.value)?b.value+"px":b.value;a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Vi()[0];
|
|
1719
1720
|
a=pui.widgets.panelStyles[a]}pui.widgets.gm(b.dom.panel,a,b.properties.width,b.value,b)},color:function(b){b.dom.panel.m.style.color=b.value;b.dom.style.color=b.dom.panel.m.style.color},"font family":function(b){b.dom.panel.m.style.fontFamily=b.value;b.dom.style.fontFamily=b.dom.panel.m.style.fontFamily},"font size":function(b){b.dom.panel.m.style.fontSize=b.value;b.dom.style.fontSize=b.dom.panel.m.style.fontSize},"font style":function(b){b.dom.panel.m.style.fontStyle=b.value},"font variant":function(b){b.dom.panel.m.style.fontVariant=
|
|
1720
|
-
b.value},"font weight":function(b){b.dom.panel.m.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.m.style.fontWeight},"letter spacing":function(b){b.dom.panel.m.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.m.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.m.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.m.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.m.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.nk=function(){this.P=null;this.designMode=false;this.template="test";this.Ra={};this.Mf=false;this.Ve=[];this.yc=[];this.Hr=this.Xr=this.Wr=false;this.Hi={};this.gf=this.rj=null;this.mg={}};pui.layout.nk.prototype=Object.create(pui.uc.prototype);
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1721
|
+
b.value},"font weight":function(b){b.dom.panel.m.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.m.style.fontWeight},"letter spacing":function(b){b.dom.panel.m.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.m.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.m.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.m.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.m.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.nk=function(){this.P=null;this.designMode=false;this.template="test";this.Ra={};this.Mf=false;this.Ve=[];this.yc=[];this.Hr=this.Xr=this.Wr=false;this.Hi={};this.gf=this.rj=null;this.mg={}};pui.layout.nk.prototype=Object.create(pui.uc.prototype);ua=pui.layout.nk.prototype;ua.Bo=function(){this.designMode=true;this.P.destroy=this.destroy.bind(this);this.P.addEventListener("click",this)};
|
|
1722
|
+
ua.Uo=function(){for(var b=pui.layout.template.Jo(this.P),a=0;a<b.length;a++)if(b[a].firstChild!=null)return true;return false};ua.bx=function(b){if(b==null)b={};b.tx=false;b.rx=false;for(var a=[],c=this.P.e.designer.items,e=0;e<c.length;e++){var f=c[e];if(f.uA()==this){if(f.properties["field type"]=="tab panel")b.tx=true;if(f.properties["field type"]=="field set panel")b.rx=true;a.push(f)}}return a};
|
|
1723
|
+
ua.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.P,template:this.template,properties:this.Ra,Yl:this.e!=null&&this.e.Kf,designMode:this.designMode,layout:this});if(b.success){this.Ve=b.Ve;this.yc=b.yc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.P.Lp=pui.layout.hx(this.template);this.P.Qh=Gc(this.P.Lp);return b};
|
|
1724
|
+
ua.bg=function(b,a){if(!this.designMode)return false;var c=this.e;if(c.properties[b]!=a){if(pui.p(c.properties[b]))c.properties[b].designValue=a;else c.properties[b]=a;c.qb[b]=true;c.nd=true;c.designer.od[c.designer.Oa.vb]=true;c.designer.pb.refresh();return true}return false};
|
|
1725
|
+
ua.stretch=function(){var b,a,c=[];for(b=0;b<this.Ve.length;b++){a=this.Ve[b];a.style.width="0px";a.style.height="0px"}for(b=0;b<this.Ve.length;b++){a=this.Ve[b];var e=a.parentNode;c.push({width:e.offsetWidth,height:e.offsetHeight})}for(b=0;b<this.Ve.length;b++){a=this.Ve[b];var f=c[b],g=e.style.overflowX,h=e.style.overflowY;f.width-=this.designMode&&(this.template!=="mobile device"||g==="auto"||g==="scroll"||this.template=="table")?4:2;if(f.width<0)f.width=0;f.height-=this.designMode&&(this.template!==
|
|
1725
1726
|
"mobile device"||h==="auto"||h==="scroll"||this.template=="table")?4:2;if(f.height<0)f.height=0;a.style.width=f.width+"px";a.style.height=f.height+"px"}re(this);this.center();b=this.iScroll;b!=null&&b.refresh()};function re(b,a){if(typeof a!=="number")a=b.Cg();var c=b.yc;if(c!=null){var e=c[a];if(e!=null){pui.Wp(e,true);b.Hi[a]=true}else for(var f=0,g=c.length;f<g&&(e=c[f]);f++){pui.Wp(e,true);b.Hi[f]=true}}}
|
|
1726
|
-
|
|
1727
|
-
f.offsetWidth;c.height=f.offsetHeight}else{e=pui.getWindowSize();c.width=e.width;c.height=e.height;e=true}if(b){b=parseInt((c.width-this.P.offsetWidth)/2);if(b<0){if(e)document.body.scrollLeft=Math.abs(b);b=0}this.P.style.left=b+"px"}if(a){a=parseInt((c.height-this.P.offsetHeight)/2);if(a<0)a=0;this.P.style.top=a+"px"}}};
|
|
1728
|
-
|
|
1727
|
+
ua.center=function(){var b=this.Wr,a=this.Xr;if(this.designMode&&this.e){var c=this.e,e=null;if(c.qb["center horizontally"])e=c.properties["center horizontally"];if(e==="true"){e=parseInt(this.P.offsetWidth/2);if(!isNaN(e)&&e>0){this.P.style.left="calc(50% - "+e+"px)";(c=c.vA())&&c.Ej()}}}if(b||a){c={};e=false;var f=this.P.parentNode;if(f!=null&&f.tagName=="DIV"&&f.offsetWidth>0&&(f.parentNode!=document.body||f.style.width!=null&&f.style.height!=null&&f.style.width!=""&&f.style.height!="")){c.width=
|
|
1728
|
+
f.offsetWidth;c.height=f.offsetHeight}else{e=pui.getWindowSize();c.width=e.width;c.height=e.height;e=true}if(b){b=parseInt((c.width-this.P.offsetWidth)/2);if(b<0){if(e)document.body.scrollLeft=Math.abs(b);b=0}this.P.style.left=b+"px"}if(a){a=parseInt((c.height-this.P.offsetHeight)/2);if(a<0)a=0;this.P.style.top=a+"px"}}};ua.resize=function(){var b=this.P,a=b.panel;b=b.Ka;if(a)a.resize();else b&&b.resize();this.Hi={};this.stretch()};ua.Cg=function(){var b=-1;if(this.P)b=(b=this.P.Ka)?b.Cg():-1;return b};
|
|
1729
|
+
ua.setProperty=function(b,a){var c;if(a==null)a="";var e=this.P.panel,f=/^(css class|user defined data) \d+$/.exec(b);if(!(f!=null&&f[1]!=null)){f=this.P.Ka;if(!(f&&f.setProperty(b,a)))switch(b){case "id":this.P.id=a;break;case "template":if(this.designMode){this.e.properties.template=a;this.e.qb.template=true;this.e.nd=true;if(this.e.Kf!==true){this.e.designer.od[this.e.designer.Oa.vb]=true;this.e.designer.pb.refresh()}this.resize()}break;case "left":case "top":case "right":case "bottom":this.P.style[b]=
|
|
1729
1730
|
a;break;case "height":case "width":case "min height":case "min width":case "max height":case "max width":e=b.split(" ");f=b;if(e.length>1)f=e[0]+e[1].substr(0,1).toUpperCase()+e[1].substr(1);this.P.style[f]=a;this.resize();if(this.designMode)a.length==0?pui.Pp(this.P,f):pui.Lk(this.P,f,a);break;case "z index":this.P.style.zIndex=a;if(this.designMode)a.length==0?pui.Pp(this.P,"z-index"):pui.Lk(this.P,"z-index",a);break;case "center horizontally":if(!this.designMode)this.Wr=a=="true"||a==true;break;
|
|
1730
1731
|
case "center vertically":if(!this.designMode)this.Xr=a=="true"||a==true;break;case "locked in place":this.Mf=a=="true"||a==true;break;case "overflow x":this.P.firstChild.style.overflowX=a;break;case "tool tip":this.P.title=a;break;case "visibility":if(!this.designMode)this.P.style.visibility=a;if(this.designMode)if(a=="hidden"){this.P.style.filter="alpha(opacity=30)";this.P.style.opacity=0.3}else{this.P.style.filter="";this.P.style.opacity=""}break;case "onclick":case "ondblclick":case "onmousedown":case "onmousemove":case "onmouseout":case "onmouseover":case "onmouseup":if(!this.designMode){c=
|
|
1731
1732
|
this;this.P[b]=function(h){try{var l=eval(a);typeof l=="function"&&l(h,c)}catch(n){pui.Fa(n,b.substr(0,1).toUpperCase()+b.substr(1)+" Error:\n")}}}break;case "has header":e!=null&&e.Wj(a!="false"&&a!=false);this.Ra[b]=a;break;case "header height":e!=null&&e.Xj(a);this.Ra[b]=a;break;case "header text":e!=null&&e.setText(a);this.Ra[b]=a;break;case "header theme":e!=null&&e.Zf(a);this.Ra[b]=a;break;case "body theme":e!=null&&e.Xf(a);this.Ra[b]=a;break;case "straight edge":e!=null&&e.T(a);this.Ra[b]=
|
|
@@ -1733,39 +1734,39 @@ a;break;case "color":case "font family":case "font size":case "font style":case
|
|
|
1733
1734
|
a;if(this.designMode&&!Hb.Ih&&!Hb.iy){e=this.applyTemplate();f=this.P.Ka;f!=null&&f.resize();if(e.success==false){this.Ra[b]=g;c=this;setTimeout(function(){c.bg(b,g)},0)}}break}}};
|
|
1734
1735
|
function se(b){function a(){clearTimeout(g);var h=e.P.parentNode;if(h!=null&&h.tagName=="DIV")e.iScroll=new IScroll(h,{scrollbars:true,mouseWheel:true,disableMouse:pui.is_ios,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|IMG)$/}})}function c(){f++;f>100||(g=setTimeout(function(){typeof IScroll=="function"||typeof iScroll=="function"?a():c()},200))}var e=b,f=0,g=0;if(typeof IScroll=="function"||typeof iScroll=="function")a();else pui.loadJS({path:pui.normalizeURL("/iscroll/iscroll.js"),
|
|
1735
1736
|
callback:a})==false&&c()}function yc(b,a){var c=document.documentElement.clientHeight+"px";b.P.parentNode.style.height=c;document.body.style.height=c;document.body.parentNode.style.height=c;b.P.style.height=c;a&&b.setProperty("height",c)}
|
|
1736
|
-
|
|
1737
|
-
|
|
1737
|
+
ua.pu=function(b){this.gf={active:b.active,data:b.data,designMode:b.designMode,errors:b.errors,file:b.file,fileId:b.fileId,tl:b.tl,ul:b.ul,library:b.library,metaData:{screen:{"record format name":b.metaData.screen["record format name"]}},msgInfo:b.msgInfo,name:b.name,ref:b.ref,Pj:b.Pj,subfiles:b.subfiles}};
|
|
1738
|
+
ua.dm=function(b){if(this.gf!=null){if(this.mg[b]!=null&&this.yc[b]!=null){this.gf.b=this.yc[b];this.gf.xl=b;this.gf.metaData.items=this.mg[b];this.gf.rj=this.rj;pui.Up(this.gf);delete this.mg[b]}if(Object.keys(this.mg).length==0)this.gf=null}};ua.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.P&&delete this.P.layout;this.Lc()};
|
|
1738
1739
|
pui.layout.nk.prototype.handleEvent=function(b){switch(b.type){case "click":if(this.Mf)if(!pui.designer.nB){b=tb(b);if(b==this.P||b.getAttribute!=null&&b.getAttribute("container")=="true"&&pui.layout.template.Jo(this.P).includes(b)){b=this.e;if(b!=null){var a=b.designer.selection;if(!(a.Yd.length==1&&a.Yd[0].e==b)){a.clear();a.add(b);b.designer.pb.refresh()}}}}break}};pui.layout.Template=function(b,a){this.ze=b&&b.Yl;this.designMode=b&&b.designMode;if(b)this.layout=b.layout;a&&this.jj(a)};
|
|
1739
|
-
pui.layout.Template.prototype=Object.create(pui.uc.prototype);
|
|
1740
|
-
|
|
1740
|
+
pui.layout.Template.prototype=Object.create(pui.uc.prototype);ua=pui.layout.Template.prototype;ua.jj=function(b){this.b=b;this.b.Ka=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};ua.destroy=function(){if(this.b){delete this.b.Ka;delete this.b.sizeMe}this.Lc()};ua.sn=function(b,a){if(this.layout)return this.layout.bg(b,a)};function te(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}ua.setProperty=ta(false);ua.xu=na();ua.resize=na();ua.render=na();
|
|
1741
|
+
ua.Cg=ta(-1);pui.layout.template.Bw=function(b,a){var c=b.properties,e=b.Yl,f=new pui.Rm;f.Bf=true;f.b=a;f.init();a.panel=f;a.sizeMe=function(){a.panel.resize()};var g=c["header text"];g!=null&&f.setText(g);g=c["header theme"];g!=null&&f.Zf(g);g=c["body theme"];g!=null&&f.Xf(g);f.T(c["straight edge"]);g=c["has header"];g=g!=="false"&&g!==false;f.Wj(g);g=c["header height"];g!=null&&f.Xj(g);f.Ng(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.kk=function(b,a){pui.layout.Template.call(this,b,a);this.wc=pui.getLanguageText("runtimeText","section")+" 1,"+pui.getLanguageText("runtimeText","section")+" 2,"+pui.getLanguageText("runtimeText","section")+" 3";this.df=[];this.he=[];this.Ub=[];this.ah=[];this.nr="none";this.gr="b";this.ar="c";this.Vc=-1;this.an=false;this.ff=this.eg=null;this.wi=[];this.ov=this.Av.bind(this);this.init();this.b.sizeMe=this.resize.bind(this);if(this.layout&&this.layout.P)this.layout.P.sizeMe=this.resize.bind(this);
|
|
1741
1742
|
var c=b.properties,e=c["section names"];if(b.Lf>3&&(typeof e!=="string"||e.length===0)){e=this.wc;for(var f=e.split(",").length+1,g=b.Lf;f<=g;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.bg("section names",e)}else this.setProperty("section names",e);this.ve(0);e=c["header theme"];e!=null&&this.Zf(e);e=c["body theme"];e!=null&&this.Xf(e);this.T(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Pg(e);this.Ng(c);e=c.height;
|
|
1742
|
-
if(e==null)e="300px";this.setHeight(e);if(!this.designMode){c=c["active section"];if(c!=null){c=Number(c);!isNaN(c)&&c!=0&&this.ve(c)}}if(this.ze)this.b.style.position="relative";b.Lf>0&&this.render()};pui.kk.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.kk.prototype,{Zg:{value:"The section cannot be removed because it contains other elements that must be removed first."}});
|
|
1743
|
-
|
|
1743
|
+
if(e==null)e="300px";this.setHeight(e);if(!this.designMode){c=c["active section"];if(c!=null){c=Number(c);!isNaN(c)&&c!=0&&this.ve(c)}}if(this.ze)this.b.style.position="relative";b.Lf>0&&this.render()};pui.kk.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.kk.prototype,{Zg:{value:"The section cannot be removed because it contains other elements that must be removed first."}});ua=pui.kk.prototype;ua.init=function(){this.b.style.overflow="hidden"};
|
|
1744
|
+
ua.render=function(){for(var b,a,c=this.wi,e=c.length,f=this.df.length;e>this.df.length;){b=document.createElement("div");b.style.width="100%";b.style.padding="0";b.Xy=f;b.onclick=this.ov;a=document.createElement("div");a.style.width="100%";a.style.height="175px";a.style.padding="0";var g=new pui.Qm;g.b=b;g.ze=this.ze;g.init();g.yd(this.gr);g.setIcon("plus");g.tm("left");var h=new pui.Sm;h.type="body";h.Bf=true;h.b=a;h.init();h.yd(this.ar);h.setHeight("100%");this.b.appendChild(b);this.b.appendChild(a);
|
|
1744
1745
|
this.df.push(b);this.he.push(a);this.Ub.push(g);this.ah.push(h);f++}for(;e<this.df.length;){b=this.df.pop();this.b.removeChild(b);a=this.he.pop();this.b.removeChild(a);this.Ub.pop();this.ah.pop()}b=0;for(a=c.length;b<a;b++){this.Ub[b].setText(c[b]);this.he[b].style.overflow=b<c.length-1?"hidden":""}if(this.designMode){if(this.eg==null){this.eg=designUtils.fo("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),this.b);this.eg.style.right="2px";this.eg.style.bottom=
|
|
1745
1746
|
"2px";this.eg.onclick=this.Vq.bind(this);this.eg.Vv=true}else this.b.appendChild(this.eg);if(this.ff==null){this.ff=designUtils.fo("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),this.b);this.ff.style.right="2px";this.ff.style.bottom="16px";this.ff.onclick=this.Vq.bind(this);this.ff.style.display="none"}else this.b.appendChild(this.ff);this.ff.style.display=c.length>1?"":"none"}};
|
|
1746
|
-
|
|
1747
|
-
|
|
1747
|
+
ua.Av=function(b){b=tb(b);for(var a=null;a==null&&b!=null;){a=b.Xy;b=b.parentNode}if(a!=null)if(this.Vc==a){a=-1;this.an&&!this.designMode&&this.ve(a)}else{if(this.b.onsectionclickevent!=null)if(this.b.onsectionclickevent(a)==false)return;this.ve(a)}};
|
|
1748
|
+
ua.setProperty=function(b,a){switch(b){case "section names":var c=this.wi.length;if(a==null||a=="")a=this.wc;else if(pui.p(a)||pui.Nb(a))a=pui.ha(a.designValue).length==0?this.wc:a.designValue;var e=pui.ha(a);if(e.length!=c){var f=false;if(this.designMode){c=c;for(var g=e.length;c>g;c--)if(ue(this,c-1)){f=true;break}}if(f){pui.alert(this.Zg);setTimeout(this.layout.bg.bind(this.layout),1,"section names",this.wi.join(","))}else{this.wi=e;this.render();f=this.Vc;if(f>e.length-1)f=e.length-1;this.ve(f)}}else{this.wi=
|
|
1748
1749
|
e;this.render()}break;case "active section":if(!this.designMode)if(a!=null){a=Number(a);!isNaN(a)&&a!=0&&this.ve(a)}break;case "header theme":this.Zf(a);break;case "body theme":this.Xf(a);break;case "small sections":this.Pg(a=="true"||a==true);break;case "allow collapse":this.an=a=="true"||a==true;this.ve(this.Vc);break;case "straight edge":this.T(a);break;case "color":case "font style":case "font weight":case "text align":case "text decoration":case "text transform":this.setStyle(b,a);break;case "font family":case "font size":this.setStyle(b,
|
|
1749
1750
|
a);this.resize();break;case "onsectionclick":this.designMode||(this.b.onsectionclickevent=function(){eval("var section = arguments[0];");try{return eval(a)}catch(h){pui.Fa(h,"Onexpand Error:\n")}});break;default:return false}if(this.layout&&this.layout.Ra)this.layout.Ra[b]=a;return true};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
"0";c.Be().style.borderBottomLeftRadius="0";e.T("right");e.Nd().style.borderTopLeftRadius="0";e.Be().style.borderTopLeftRadius="0";break;case "top":c.T("all");e.T("top");break;case "bottom":c.T("bottom");e.T("all");break;case "all":c.T("all");e.T("all");break;default:c.T("bottom");e.T("top");break}}}};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
true;b.nd=true;b.designer.od[b.designer.Oa.vb]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.pb.refresh()}};function ue(b,a){var c=b.he[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}
|
|
1751
|
+
ua.ve=function(b){this.Vc=parseInt(b,10);for(var a=0;a<this.he.length;a++){var c=this.he[a],e=this.Ub[a];if(a===this.Vc){e.setIcon("minus");e.setDisabled(!this.an);c.style.display="";this.b.S=b}else{e.setIcon("plus");e.setDisabled(false);c.style.display="none"}}this.T(this.nr);this.resize(true);b=this.b.layout;if(b!=null&&this.Vc>=0&&this.Vc<this.he.length){this.designMode||b.dm(this.Vc);b.Hi[this.Vc]!==true&&re(b,this.Vc)}};
|
|
1752
|
+
ua.T=function(b){if(!(b==null||pui.p(b))){this.nr=b;var a=this.Ub.length;if(!(a<=0)){for(var c=0;c<a;c++){this.Ub[c].T("all");this.ah[c].T("all")}c=this.Ub[0];var e=this.ah[a-1];if(this.he[a-1].style.display=="none")e=this.Ub[a-1];if(c==e)c.T(b);else switch(b){case "left":c.T("left");c.Nd().style.borderBottomRightRadius="0";c.Be().style.borderBottomRightRadius="0";e.T("left");e.Nd().style.borderTopRightRadius="0";e.Be().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Nd().style.borderBottomLeftRadius=
|
|
1753
|
+
"0";c.Be().style.borderBottomLeftRadius="0";e.T("right");e.Nd().style.borderTopLeftRadius="0";e.Be().style.borderTopLeftRadius="0";break;case "top":c.T("all");e.T("top");break;case "bottom":c.T("bottom");e.T("all");break;case "all":c.T("all");e.T("all");break;default:c.T("bottom");e.T("top");break}}}};ua.setStyle=function(b,a){for(var c=0;c<this.Ub.length;c++)this.Ub[c].setStyle(b,a)};ua.Ng=function(b){for(var a=0;a<this.Ub.length;a++)this.Ub[a].Ng(b)};
|
|
1754
|
+
ua.Pg=function(b){for(var a=0;a<this.Ub.length;a++)this.Ub[a].Pg(b);this.resize()};ua.Zf=function(b){for(var a=0;a<this.Ub.length;a++)this.Ub[a].yd(b);this.gr=b};ua.Xf=function(b){for(var a=0;a<this.ah.length;a++)this.ah[a].yd(b);this.ar=b};
|
|
1755
|
+
ua.resize=function(b){var a=this.b.offsetHeight;if(typeof this.Ck==="number"){a=this.Ck;delete this.Ck}var c=0;if(this.df.length>0)c=this.df[0].offsetHeight;if(c==0)c=42;a=a-c*this.df.length;if(a<0)a=0;c=this.he[this.Vc];if(c!=null)c.style.height=a+"px";this.b.layout!=null&&b!==true&&re(this.b.layout)};ua.setHeight=function(b){this.b.style.height=b;delete this.Ck;if(typeof b==="string"&&b.length>=3&&b.substring(b.length-2)==="px"){b=parseInt(b);if(!isNaN(b))this.Ck=b}this.resize()};
|
|
1756
|
+
ua.Vq=function(b){var a=b.target.Vv===true;b=Hb.designer.zh(this.b);var c=b.properties["section names"];if(!pui.Nb(c)){if(pui.p(c)){var e=c.designValue;if(e==null||e=="")e=this.wc;e=pui.ha(e);a?e.push("Section "+(e.length+1)):e.pop();c.designValue=e.join(",")}else{if(c==""||c==null)c=this.wc;c=pui.ha(c);a?c.push("Section "+(c.length+1)):c.pop();c=c.join(",")}a=this.b.Qh["section names"];b.designer.ca.start("Add/Remove Section");b.designer.ca.add(b,a.name);Mc(a,b.properties,b.dom,c,true,b,null);b.qb["section names"]=
|
|
1757
|
+
true;b.nd=true;b.designer.od[b.designer.Oa.vb]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.pb.refresh()}};function ue(b,a){var c=b.he[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}ua.Cg=function(){return parseInt(this.Vc,10)};pui.Yg=function(b,a){pui.layout.Template.call(this,b,a);this.Jp=b&&b.Jp===true;this.Bk=0;this.ng=document.createElement("div");this.ng.className=this.gv;this.b.appendChild(this.ng);this.fh=ve(this,"",this.b);this.gg=[];this.og=true;this.Dv=500;this.sr=this.bn=0;this.ln=this.eh="";this.br=this.qv.bind(this);this.$q=pui.Yg.prototype.Gv++;if(pui.runtimeContainer&&pui.runtimeContainer.id=="5250")document.querySelector('style[forcegenieheight="true"]')||ve(this,'div[id="5250"] { height: calc(100vh - 100px); }',
|
|
1757
1758
|
pui.runtimeContainer).setAttribute("forcegenieheight","true");if(!this.Jp&&this.layout&&this.layout.qy!=="responsive layout"){if(!b.properties)b.properties={};var c="layout items";if(b.Lf>0){var e=parseInt(b.properties[c]);if(e<0||isNaN(e))e=this.lk;b.properties[c]=Math.max(e,b.Lf);this.layout.bg(c,b.properties[c])}c="style rules";if(typeof b.properties[c]!=="string"||b.properties[c].length<1){b.properties[c]="@media screen { #_id_ > .puiresp { display:grid; } }";this.layout.bg(c,b.properties[c])}}te(this,
|
|
1758
|
-
b)};pui.Yg.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.Yg.prototype,{Zg:{value:"The section cannot be removed because it contains other elements that must be removed first."},lk:{value:8},gv:{value:"puiresp"}});
|
|
1759
|
-
|
|
1759
|
+
b)};pui.Yg.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.Yg.prototype,{Zg:{value:"The section cannot be removed because it contains other elements that must be removed first."},lk:{value:8},gv:{value:"puiresp"}});ua=pui.Yg.prototype;ua.wv=/^(not )?(screen|all)\s*(.*)$/i;ua.fr=/and\s*\([^)]+\)/gi;ua.xv=/^disable/i;ua.yv=/^and\s*\(\s*(min|max)-(width|height)\s*:\s*(\d+)\s*px\s*\)$/i;ua.zv=/^and\s*\(\s*orientation\s*:\s*(portrait|landscape)\s*\)/i;ua.Gv=0;
|
|
1760
|
+
ua.nm=function(){this.b.setAttribute("puirespbg",this.$q);we(this)};
|
|
1760
1761
|
function we(b,a){if(a==null)a=b.ln||"";else if(pui.p(a))a=a.designValue!=null&&typeof a.designValue=="string"?a.designValue:"@media screen { #_id_ > .puiresp { display:grid; } }";b.ln=a;b.eh=!b.ze&&b.b.id.length>0?a.replace(/#_id_/g,"#"+b.b.id):b.ze?a.replace(/#_id_ >/g,".x-dd-drag-proxy"):a.replace(/#_id_/g,'div[puirespbg="'+b.$q+'"]');if((b.fh.textContent=b.eh)&&b.eh.length>0)if(!b.og||b.designMode){b.bn=0;clearTimeout(b.sr);b.sr=setTimeout(b.br,1)}else b.layout&&re(b.layout)}
|
|
1761
|
-
|
|
1762
|
-
function ve(b,a,c){b=document.createElement("style");b.type="text/css";if(b.styleSheet)b.cssText=a;else b.appendChild(document.createTextNode(a));return c.appendChild(b)}
|
|
1762
|
+
ua.resize=function(){if((!this.og||this.designMode)&&this.eh!=""){this.fh.textContent=this.eh;xe(this)}};function ye(b,a,c){var e=typeof b.gg[a]==="string"&&b.gg[a].length>0,f=a+1+(e?" ("+b.gg[a]+")":"");if(b.Jp)c.innerHTML=f;else if(b.designMode)c.setAttribute("containername",f);else if(e){b=b.gg[a].replace(/"/g," ");b=b.replace(/&/g," ");c.setAttribute("containername",b)}}
|
|
1763
|
+
function ve(b,a,c){b=document.createElement("style");b.type="text/css";if(b.styleSheet)b.cssText=a;else b.appendChild(document.createTextNode(a));return c.appendChild(b)}ua.qv=function(){this.bn++;if((this.designMode&&this.og?Ab(Da):this.b).offsetWidth>0){if(this.fh.sheet!=null){xe(this);this.layout&&re(this.layout)}}else this.bn<this.Dv?setTimeout(this.br,1):console.log("Timed out waiting for parent width > 0.")};
|
|
1763
1764
|
function xe(b){b.je=b.designMode&&b.og?Ab(Da):b.b;b.xk="";b.fr.lastIndex=0;b.fh.sheet!=null&&ze(b,b.fh.sheet);b.fh.textContent=b.xk;delete b.je}
|
|
1764
1765
|
function ze(b,a){for(var c,e=0;e<a.cssRules.length;e++){var f=a.cssRules[e];if(f.type==f.SUPPORTS_RULE){b.xk+="@supports "+f.conditionText+"{";ze(b,f);b.xk+="}"}else if(f.type==f.MEDIA_RULE){c=f.conditionText||f.media.mediaText;var g=c.match(b.wv);if(g!=null){var h=g[3].match(b.fr),l=true;if(h!=null)for(c=0;c<h.length;c++){var n=h[c].match(b.yv),m=h[c].match(b.zv);if(n!=null){m=n[2];var r=parseInt(n[3],10);if(n[1]=="min"){if(m=="width"&&b.je.offsetWidth<r||m=="height"&&b.je.offsetHeight<r)l=false}else if(m==
|
|
1765
1766
|
"width"&&b.je.offsetWidth>r||m=="height"&&b.je.offsetHeight>r)l=false}else if(m!=null)if(m[1]=="portrait"&&b.je.offsetHeight<b.je.offsetWidth)l=false;else if(m[1]=="landscape"&&b.je.offsetHeight>b.je.offsetWidth)l=false}c=g[1]==="not";if(l&&!c||c&&!l)ze(b,f)}else c.match(b.xv)==null&&console.log("Unsupported media rule:",c)}else if(f.type==f.STYLE_RULE){g=f.selectorText+"{";for(c=0;c<f.style.length;c++){l=f.style[c];g+=l+":"+f.style[l]+"; "}g+="} ";b.xk+=g}}}
|
|
1766
|
-
|
|
1767
|
+
ua.setProperty=function(b,a){switch(b){case "id":if(this.b.id!=a){this.b.id=a;we(this)}break;case "layout items":var c=parseInt(a,10);a=isNaN(c)?this.lk:c;var e=false;if(this.designMode)for(var f=this.Bk;f>c;f--){var g=this.ng.children[f-1];if(g&&g.children&&g.children.length>0){e=true;break}}if(e){pui.alert(this.Zg);a=String(this.Bk);setTimeout(this.sn.bind(this),1,"layout items",a)}else{if(a==null||a===""||isNaN(a))a=this.lk;else if(pui.p(a))a=a.designValue!=null&&typeof a.designValue=="number"?
|
|
1767
1768
|
a.designValue:this.lk;if(a!=this.Bk){c=a;e=this.ng;for(f=e.children;f.length<c;){g=document.createElement("div");g.setAttribute("container","true");ye(this,f.length,g);e.appendChild(g)}for(;f.length>c;)e.removeChild(f[f.length-1]);this.Bk=e.children.length;if(this.layout)this.layout.yc=e.children;this.layout&&re(this.layout)}}break;case "style rules":this.ln!=a&&we(this,a);break;case "use viewport":a=a===true||a==="true";if(this.og!==a){this.og=a;we(this)}break;case "container names":c=a;this.gg=
|
|
1768
|
-
[];if(c!=null&&c!="")if(pui.p(c)){c=pui.ha(c.designValue);this.gg=c.length==0?[]:c}else this.gg=c instanceof Array?c:pui.ha(c);if(this.ng!=null)for(c=0;c<this.ng.childNodes.length;c++){e=this.ng.childNodes[c];e.tagName==="DIV"&&ye(this,c,e)}break;default:return false}if(this.layout&&this.layout.Ra)this.layout.Ra[b]=a;return true};
|
|
1769
|
+
[];if(c!=null&&c!="")if(pui.p(c)){c=pui.ha(c.designValue);this.gg=c.length==0?[]:c}else this.gg=c instanceof Array?c:pui.ha(c);if(this.ng!=null)for(c=0;c<this.ng.childNodes.length;c++){e=this.ng.childNodes[c];e.tagName==="DIV"&&ye(this,c,e)}break;default:return false}if(this.layout&&this.layout.Ra)this.layout.Ra[b]=a;return true};ua.xu=function(b){switch(b){case "height":case "width":this.og||we(this);break}};pui.kd=function(b,a){pe.call(this);pui.layout.Template.call(this,b,a);this.vi=false;this.yi=null;this.hf=[];this.Yc=pui.kd.prototype.Yc;this.qi=pui.kd.prototype.qi;this.ri=pui.kd.prototype.ri;this.jj(a);if(b.properties&&b.properties["tab names"]==null){var c=this.wc,e=c.split(",").length;if(b.Lf>e){e=e+1;for(var f=b.Lf;e<=f;e++)c+=",Tab "+e}this.setProperty("tab names",c);this.layout.bg("tab names",c)}te(this,b);b.Lf>0&&this.render()};pui.kd.prototype=Object.create(pui.layout.Template.prototype);
|
|
1769
1770
|
pui.kd.prototype.jj=function(b){pui.layout.Template.prototype.jj.call(this,b);if(!this.designMode){b.setTab=this.setTab.bind(this);b.getTab=this.getTab.bind(this);b.refresh=this.refresh.bind(this);b.hideTab=this.Zs.bind(this);b.showTab=this.Eu.bind(this)}};
|
|
1770
1771
|
pui.kd.prototype.setProperty=function(b,a){switch(b){case "tab names":if(a==null||a=="")a=this.wc;else if(pui.p(a))a=pui.ha(a.designValue).length==0?this.wc:a.designValue;var c=pui.ha(a),e=this.jb.length;if(c.length!=e){var f=false;if(this.designMode){e=e;for(var g=c.length;e>g;e--)if(this.qi(e-1)){f=true;break}}if(f){pui.alert(this.Zg);a=this.jb.join();c=this.sn.bind(this,"tab names",a);setTimeout(c,1)}else{this.jb=c;if(this.selectedTab>this.jb.length-1)this.selectedTab=this.jb.length-1}}else this.jb=
|
|
1771
1772
|
c;if(this.vi){Ae(this);this.Yc()}break;case "active tab":if(!this.designMode){a=parseInt(a,10);if(!isNaN(a)&&this.selectedTab!=a)this.selectedTab=a;this.lm=true}break;case "ontabclick":if(!this.designMode)this.kn=a;break;case "tab response":if(!this.designMode)this.mm=true;break;case "response AID":if(!this.designMode){if(typeof a!=="string"||a.length===0)a=false;this.Yp=a}break;case "bypass validation":break;case "color":case "font family":case "font size":case "font style":case "font weight":case "text transform":case "text decoration":break;
|
|
@@ -1785,9 +1786,9 @@ pui.kd.prototype.handleEvent=function(b){function a(y,x){var E=e(y),J=x.target;i
|
|
|
1785
1786
|
"dblclick":this.Mu(b);return;case b.type==="dragstart":b.stopPropagation();this.si=b.currentTarget.Ba;if(!isNaN(this.si))try{b.dataTransfer.setData("text/plain",this.si);b.dataTransfer.dropEffect="none";b.dataTransfer.Iw="move"}catch(m){}return;case b.type==="dragover":if(b.currentTarget.Ba==this.si)return;b.preventDefault();b.stopPropagation();b.dataTransfer.dropEffect="move";b.dataTransfer.Iw="move";return;case b.type==="dragleave":b.preventDefault();b.stopPropagation();return;case b.type==="drop":b.preventDefault();
|
|
1786
1787
|
b.stopPropagation();if(!this.A.contains(b.target))return;try{b.dataTransfer.getData("text/plain")}catch(r){}var p=this.si;if(isNaN(p))return;n=b.currentTarget.Ba;if(isNaN(n)||n==p)return;p=Ce(this,p);b=Ce(this,n);var s=p<b,t=this.A.childNodes[p];this.A.removeChild(t);b=Ce(this,n);if(s)b+=1;this.A.insertBefore(t,this.A.childNodes[b]);if(this.designMode){(g=this.layout.e)&&g.designer.ca.An("Edit Layout",g.designer);g=this.Tb.childNodes[p];this.Tb.removeChild(g);this.Tb.insertBefore(g,this.Tb.childNodes[b]);
|
|
1787
1788
|
p=n="";this.hf=[];g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];f=f.childNodes[1];this.hf.push(f);f.Ba=g;n+=p+f.innerHTML;p=",";f=this.Tb.childNodes[g];f.Ba=g;f.eo=g+1}this.selectedTab=b;this.setProperty("tab names",n);this.sn("tab names",n);pui.ide.refreshRibbon();if(this.layout)this.layout.yc=this.Tb.children}else if(this.yi)try{b={order:[]};g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];b.order.push(f.childNodes[1].Ba)}sessionStorage[this.yi]=JSON.stringify(b)}catch(w){}return;
|
|
1788
|
-
case b.type==="dragend":delete this.si}};
|
|
1789
|
-
function Be(b){if(b.lm&&b.Ak&&b.A.offsetWidth>0){var a=b.A.childNodes[b.jn?Ce(b,b.selectedTab):b.selectedTab];if(a){b.Ed=Math.round(a.offsetLeft-b.A.offsetWidth/2+a.offsetWidth/2);b.Ak=false}}}function Ce(b,a){for(var c=0,e=b.A.childNodes.length;c<e;c++){var f=b.A.childNodes[c];if(f.childNodes[1]&&f.childNodes[1].Ba===a)return c}return-1}
|
|
1790
|
-
|
|
1789
|
+
case b.type==="dragend":delete this.si}};ua=pui.kd.prototype;ua.qi=function(b){var a=this.Tb.children;return a&&a[b]&&a[b].children&&a[b].children.length>0};ua.ri=function(b){var a=document.createElement("span");if(b)a.className="pui-tscrbtn pui-tablayout "+b;b=document.createElement("span");b.className="edge";var c=document.createElement("span");c.className="mid";var e=document.createElement("span");e.className="edge";a.appendChild(b);a.appendChild(c);a.appendChild(e);return a};
|
|
1790
|
+
function Be(b){if(b.lm&&b.Ak&&b.A.offsetWidth>0){var a=b.A.childNodes[b.jn?Ce(b,b.selectedTab):b.selectedTab];if(a){b.Ed=Math.round(a.offsetLeft-b.A.offsetWidth/2+a.offsetWidth/2);b.Ak=false}}}function Ce(b,a){for(var c=0,e=b.A.childNodes.length;c<e;c++){var f=b.A.childNodes[c];if(f.childNodes[1]&&f.childNodes[1].Ba===a)return c}return-1}ua.resize=function(){if(this.vi){Be(this);this.vk()}};
|
|
1791
|
+
ua.destroy=function(){var b=this.b;if(b){delete b.setTab;delete b.getTab;delete b.refresh;delete b.hideTab;delete b.showTab}pui.layout.Template.prototype.destroy.call(this)};ua.Cg=function(){return this.selectedTab!=null?parseInt(this.selectedTab,10):-1};pui.Um=function(b,a){pui.layout.Template.call(this,b,a);this.kg=document.createElement("fieldset");this.kg.className="layout";this.zk=document.createElement("legend");this.kg.appendChild(this.zk);this.J=document.createElement("div");this.J.setAttribute("container","true");this.kg.appendChild(this.J);this.b.appendChild(this.kg)};pui.Um.prototype=Object.create(pui.layout.Template.prototype);
|
|
1791
1792
|
pui.Um.prototype.setProperty=function(b,a){switch(b){case "legend":this.zk.innerHTML=a;break;case "legend align":this.zk.setAttribute("align",a);break;case "legend style":this.zk.style=a;break;case "border style":this.kg.style.borderStyle=a;break;case "border width":this.kg.style.borderWidth=a;break;case "border color":this.kg.style.borderColor=a;break;default:return false}if(this.b.layout&&this.b.layout.Ra)this.b.layout.Ra[b]=a;return true};pui.layout.templates={};pui.retrieveCustomLayoutTemplate=function(b){if(typeof b==="string"&&b.length>0){pui.vg=pui.vg||[];var a=b;if(b.substr(0,1)!="/"&&b.substr(0,5).toLowerCase()!="http:"&&b.substr(0,6).toLowerCase()!="https:")a="/profoundui/userdata/layouts/"+b+".html";pui.vg.push({Cm:b,url:pui.normalizeURL(a)})}};
|
|
1792
1793
|
pui.maximizeLayout=function(b){var a=tb(b).parentNode,c=Hb.designer,e=c.zh(a);c.ca.start("Maximize Layout");c.ca.add(e,"left");c.ca.add(e,"top");c.ca.add(e,"width");c.ca.add(e,"height");a.style.left="0px";e.properties.left="0px";e.qb.left=true;a.style.top="0px";e.properties.top="0px";e.qb.top=true;a.style.width="100%";e.properties.width="100%";e.qb.width=true;a.style.height="100%";e.properties.height="100%";e.qb.height=true;c.od[c.Oa.vb]=true;c.qp();c.selection.clear();a.layout.resize();c.selection.add(e);
|
|
1793
1794
|
c.pb.refresh();ub(b)};
|
|
@@ -1798,8 +1799,8 @@ pui.layout.templates.table+=pui.layout.vt;pui.layout.templates["mobile device"]=
|
|
|
1798
1799
|
pui.layout.templates["mobile device"]+='<tr><td class="content-section"><div class="content-section" stretch="true" container="true"></div></td></tr>';pui.layout.templates["mobile device"]+="<tr condition=\"{ property: 'bottom bar', choices: ['true','false'], helpDefault: 'true', help: 'Determines whether the mobile layout should have a bottom bar.' }\"><td class=\"bottom-bar\"><div container=\"true\" class=\"bottom-bar\" style=\"position: relative; width: 100%; overflow: hidden;\"></div></td></tr>";
|
|
1799
1800
|
pui.layout.templates["mobile device"]+="</table>";pui.layout.templates["mobile device"]+=pui.layout.vt;pui.layout.templates["css panel"]=true;pui.layout.templates.accordion=true;pui.layout.templates["responsive layout"]=true;pui.layout.templates["tab panel"]=true;pui.layout.templates.fieldset=true;pui.layout.kx=function(){var b=pui.layout.templates,a=[];for(var c in b)a.push(c);return a};pui.layout.template.Vt=function(b,a){function c(){var y=h.indexOf("{");if(y==-1)return null;for(var x=null,E=false,J=false,z=0,G=y;G<h.length;G++){var D=h.substr(G,1);if(D=="'")E=!E;else if(D=='"')J=!J;else if(!(E||J)){if(D=="{")z+=1;if(D=="}")z-=1;if(z==0){x=G;break}}}if(x==null)return null;return{start:y,end:x}}function e(y){if(y==null)return"";if(typeof y=="string")return y;if(typeof y=="number"||typeof y=="boolean")return String(y);if(typeof y=="object"){var x=y.property;if(r){if(x!=null){y.name=
|
|
1800
1801
|
x;y.bind=false;p[x]=y}return""}var E=null;if(x!=null)E=l[x];if(E==null)E=y.defaultValue;if(E==null&&n)E=y.designValue;if(E==null)E="";if(typeof E=="object")return e(E);return E}return""}function f(y){var x="("+h.substring(y.start,y.end+1)+")";y=null;try{y=eval(x)}catch(E){}if(y==null)return"";var J;y=y;if(y.designValue!=null||y.runtimeValue!=null||y.proxyValue!=null){var z;if(n||r)z=e(y.designValue);if(!n||r)z=e(y.runtimeValue);if(m&&y.proxyValue!=null)z=y.proxyValue;J=z}else if(y.property!=null)J=
|
|
1801
|
-
e(y);return J}function g(y,x){h=h.substr(0,y.start)+x+h.substr(y.end+1)}var h=pui.layout.templates[b.template];if(typeof h!="string"){console.log("Template,",b.template,", did not exist. Reverting to simple container.");h=pui.layout.templates[b.template]=pui.layout.templates["simple container"]}for(var l=b.properties,n=b.designMode,m=b.Yl,r=b.
|
|
1802
|
-
e.length;f++)a(e[f])}}var c=[];a(b);(function(){for(var e;(e=c.pop())!=null;){var f=e.el;e=e.
|
|
1802
|
+
e(y);return J}function g(y,x){h=h.substr(0,y.start)+x+h.substr(y.end+1)}var h=pui.layout.templates[b.template];if(typeof h!="string"){console.log("Template,",b.template,", did not exist. Reverting to simple container.");h=pui.layout.templates[b.template]=pui.layout.templates["simple container"]}for(var l=b.properties,n=b.designMode,m=b.Yl,r=b.Ty,p={},s=c();s!=null;){var t=f(s);g(s,t);s=c()}if(r){s=[];for(var w in p)s.push(p[w]);return pui.layout.Xi(s)}else{a.innerHTML=h;return a}};pui.layout.template.Ut=function(b){function a(e){if(e!=null){if(e.getAttribute!=null){if(e.getAttribute("condition")=="false"&&e.parentNode!=null){e.parentNode.removeChild(e);return}var f=e.getAttribute("repeat");if(f!=null){e.removeAttribute("repeat");f=parseInt(f);if(!isNaN(f)){if(f<=0)e.style.display="none";f>1&&c.push({el:e,My:f})}}if(e.getAttribute("container")=="true")if(e.innerHTML==null)e.removeAttribute("container");else e.innerHTML=""}e=e.childNodes;if(!(e==null||e.length==null))for(f=0;f<
|
|
1803
|
+
e.length;f++)a(e[f])}}var c=[];a(b);(function(){for(var e;(e=c.pop())!=null;){var f=e.el;e=e.My-1;for(var g=0;g<e;g++){var h=f.cloneNode(true);f.parentNode.insertBefore(h,f)}}})()};pui.layout.Xi=function(b){var a=[{name:"Identification",category:true},{name:"id",maxLength:75,V:"id",a:"id",help:"Sets the ID of the layout element.",bind:false,wa:false},{name:"field type",displayName:"widget type",choices:["layout"],Id:false,a:"widget",help:"Determines the type of control that is used to render the element.",bind:false,wa:false},{name:"Template Settings",category:true,context:"dspf"},{name:"template",choices:pui.layout.kx,Id:false,a:"widget",help:"Specifies the name of the template used to render the layout.",
|
|
1803
1804
|
bind:false,wa:false}];Array.prototype.push.apply(a,b);Array.prototype.push.apply(a,[{name:"Position",category:true},{name:"left",format:"px",a:"position",help:"Represents the x-coordinate of the current layout."},{name:"top",format:"px",a:"position",help:"Represents the y-coordinate of the current layout."},{name:"right",format:"px",a:"blank",help:"Position of the layout from the right of the screen or another layout container."},{name:"bottom",format:"px",a:"blank",help:"Position of the layout from the bottom of the screen or another layout container."},
|
|
1804
1805
|
{name:"center horizontally",choices:["true","false"],type:"boolean",a:"false",help:"Centers the layout horizontally within its parent container.",g:true,f:["indicator","expression"]},{name:"center vertically",choices:["true","false"],type:"boolean",a:"false",help:"Centers the layout vertically within its parent container.",g:true,f:["indicator","expression"]},{name:"height",format:"px",a:"widget",help:"Height of the layout.",bind:false,wa:false},{name:"width",format:"px",a:"widget",help:"Width of the layout.",
|
|
1805
1806
|
bind:false,wa:false},{name:"min height",format:"px",a:"css",help:"Minimum height of the layout."},{name:"min width",format:"px",a:"css",help:"Minimum width of the layout."},{name:"max height",format:"px",a:"css",help:"Maximum height of the layout."},{name:"max width",format:"px",a:"css",help:"Maximum width of the layout."},{name:"z index",format:"number",a:"css",help:"The stacking order of the current element, expressed as an integer value. The element with the higher z index will overlay lesser elements."},
|
|
@@ -1823,7 +1824,7 @@ a:"0",help:"This property specifies the initial active section on an Accordion L
|
|
|
1823
1824
|
t:["other"],choices:["1","2","3","4","5","6","Other..."]},{name:"style rules",type:"responsive",a:"blank",help:'String of CSS stylesheet rules, used to define positions and dimensions of containers. Leave empty when styles are expected to be defined in an external stylesheet. See <a target="_blank" href="http://www.profoundlogic.com/docs/display/PUI/Responsive+Layout">Responsive Layout</a> for more information.'},{name:"use viewport",a:"true",help:'Determines how @media rules in "style rules" are interpreted. When "use viewport" is true, the page size determines which @media rules to apply. When false, the layout\'s height and width determine which @media rules to apply. <br><br>See <a href="http://www.profoundlogic.com/docs/display/PUI/Responsive+Layout" target="_blank">Responsive Layout</a> for more information.',
|
|
1824
1825
|
choices:["true","false"]},{name:"container names",type:"list",a:"blank",help:"List of container names to aid in designing screens. Names appear only in Responsive Dialog preview and Designer canvas."}];break;case "tab panel":b=[];pui.layout.Ek(b,["tab names","active tab","ontabclick","tab response","response AID","bypass validation","color","font family","font size","font style","font weight","text decoration","text transform"]);b.push({name:"movable tabs",choices:["true","false"],type:"boolean",
|
|
1825
1826
|
f:["indicator","expression"],g:true,a:"false",help:"Allows the user to rearrange tabs at runtime.",context:"dspf"});Array.prototype.push.apply(b,e);break;case "fieldset":b=[{name:"legend",help:"Text to display in the field set's legend.",a:"Field Set",translate:true,bind:true,showDesignValue:true},{name:"legend align",help:"The alignment of the legend text.",a:"left",choices:["left","center","right"]},{name:"legend style",help:"Styling for the legend text.",type:"long"},{name:"border style",
|
|
1826
|
-
choices:a,a:"css",help:"The style of the element's border."},{name:"border width",format:"px",choices:c,a:"css",help:"The thickness of the element's border.",t:["other"]}];pui.layout.Ek(b,["border color"]);break;default:e={template:b,
|
|
1827
|
+
choices:a,a:"css",help:"The style of the element's border."},{name:"border width",format:"px",choices:c,a:"css",help:"The thickness of the element's border.",t:["other"]}];pui.layout.Ek(b,["border color"]);break;default:e={template:b,Ty:true};b=pui.layout.templates[b];if(typeof b=="function")return b(e);return pui.layout.template.Vt(e)}return pui.layout.Xi(b)};pui.layout.template.Jo=function(b){function a(e,f){if(e!=null)if(!(!f&&e.layout!=null)){if(e.getAttribute!=null)if(e.getAttribute("container")=="true"){c.push(e);e.eo=c.length}var g=e.childNodes;if(!(g==null||g.length==null))for(var h=0;h<g.length;h++)a(g[h],false)}}var c=[];a(b,true);return c};
|
|
1827
1828
|
pui.layout.Df=function(b){for(var a,c=0,e=0,f=b;f!=null&&(f.layout==null||f.parentNode.getAttribute("container")=="true");){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}if(f.parentNode&&f.parentNode!=f.offsetParent&&
|
|
1828
1829
|
f.parentNode.className=="puiresp"){c-=f.parentNode.scrollLeft;e-=f.parentNode.scrollTop}f=f.offsetParent}if(f!=null){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}}return{x:c,y:e}};pui.layout.template.applyTemplate=function(b){var a,c,e,f=b.dom;a=pui.layout.template.Jo;c=pui.layout.template.Ut;for(var g=a(f),h=g.length-1;h>=0;h-=1)if(g[h].firstChild!=null)break;h+=1;b.Lf=h;b=pui.layout.template.load(b);c(b);var l=a(b),n=[];if(h>l.length)return{success:false,msg:"The property cannot be applied because it removes a layout section that contains other widgets. \n\nYou must remove the contained widgets first."};for(a=0;a<h;a++){var m=g[a];e=l[a];for(c=m.firstChild;c!=null;){m.removeChild(c);
|
|
1829
1830
|
e.appendChild(c);c=m.firstChild}}for(a=0;a<l.length;a++){e=l[a];e.getAttribute("stretch")=="true"&&n.push(e)}f.innerHTML="";for(c=b.firstChild;c!=null;){f.appendChild(b.removeChild(c));c=b.firstChild}if(b.panel!=null){f.panel=b.panel;f.sizeMe=f.panel.resize;f.panel.b=f}b.Ka!=null&&b.Ka.jj(f);return{success:true,Ve:n,yc:l}};
|
|
@@ -1832,35 +1833,35 @@ pui.layout.template.getProxy=function(b){var a=pui.layout.template.load({templat
|
|
|
1832
1833
|
"hidden";b.dom.parentNode.style.padding="0";b.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){b.dom.layout.Hr=true;b.dom.parentNode.style.overflowX="hidden";b.dom.parentNode.style.overflowY="hidden";yc(b.dom.layout)}}else if(!b.design&&b.dom.parentNode.Bc&&(pui.Fh(b.properties.height)||pui.Fh(b.properties.width))){b.dom.parentNode.style.width="100%";b.dom.parentNode.style.height="100%"}if(b.design){b.dom.layout.designMode||b.dom.layout.Bo();b.dom.e=b.e;b.e.wp=
|
|
1833
1834
|
false;if(b.propertyName=="field type"){b.dom.layout.setProperty("width",b.properties.width);b.dom.layout.setProperty("height",b.properties.height);b.properties["inline style"]&&pui.ur(b.dom,b.properties["inline style"],true)}}b.dom.layout.qy=b.dom.layout.template;b.dom.layout.template=b.properties.template;e=null;if(b.propertyName=="template"){e=b.dom.layout.template;b.dom.layout.template=b.value}var f=Gc(pui.layout.Xi());for(var g in b.properties)f[g]||(b.dom.layout.Ra[g]=b.properties[g]);g=b.dom.layout.applyTemplate();
|
|
1834
1835
|
if(g.success==false&&e!=null){a.template=e;setTimeout(a.bg.bind(a),1,"template",e);c=false}if(g.success==true&&(!b.design||Hb.Ih||Hb.iy))b.dom.layout.yc=g.yc}c&&b.dom.layout.setProperty(b.propertyName,b.value)},rc:function(b){var a=b.dom;if(a)(a=a.Ka)&&a.xu(b.propertyName,b.value)},initialize:function(b){if(!b.design){b=b.dom;var a=b.id;if(a==null)a="";var c=b.className;if(c==null)c="";if(a.toLowerCase()=="scroller"||c.toLowerCase()=="scroller")pui.is_old_ie||se(b.layout)}}});if(!window.profound)window.profound={};window.profound.ai||(window.profound.ai={});if(!window.pui)window.pui={};
|
|
1835
|
-
profound.ai.Chat=function(){function b(){if(window.pui&&window.pui.ide&&window.pui.ide.designerId)return true;return false}function a(){var
|
|
1836
|
-
0)if(profound.ai.Ok){for(var
|
|
1837
|
-
|
|
1838
|
-
"</p>";
|
|
1839
|
-
|
|
1840
|
-
"failed"){
|
|
1841
|
-
c()}
|
|
1842
|
-
w.classList.add("pai-hidden")}}function h(){s.style.height="1px";var
|
|
1843
|
-
|
|
1844
|
-
oa=null,da=[],ga,Aa;this.init=function(
|
|
1845
|
-
if(
|
|
1846
|
-
m.addEventListener("click",function(){n.onClose&&n.onClose();b()?n.clear():n.hide()});n.dom.appendChild(m)}r=document.createElement("div");r.classList.add("pai-messages");n.dom.appendChild(r);p=document.createElement("div");p.classList.add("pai-prompt-area");s=document.createElement("textarea");s.classList.add("pai-prompt-box");s.setAttribute("placeholder",
|
|
1847
|
-
n.send()}g()});s.addEventListener("input",function(){h();g()});p.appendChild(s);w=document.createElement("div");w.classList.add("pai-voice-button");w.title=
|
|
1848
|
-
p.appendChild(w);if("webkitSpeechRecognition"in window||"SpeechRecognition"in window){ga=window.SpeechRecognition||window.webkitSpeechRecognition;Aa=new ga;Aa.continuous=true;Aa.interimResults=true;w.addEventListener("click",function(){Aa.lang=ea.lang?ea.lang:"en-US";w.classList.contains("pai-recording")?Aa.stop():Aa.start();w.classList.toggle("pai-recording")});Aa.onresult=function(
|
|
1849
|
-
s.value=
|
|
1850
|
-
t.addEventListener("click",function(){n.send()});p.appendChild(t);n.dom.appendChild(p);z=document.createElement("div");z.classList.add("pai-loader");G=document.createElement("span");G.classList.add("pai-loader-message");z.appendChild(G);for(var
|
|
1851
|
-
this.hide=function(){n.dom.classList.add("pai-hidden")};this.add=function(
|
|
1852
|
-
function(){pui.skipConfirm=true;setTimeout(function(){pui.skipConfirm=false},250)})});
|
|
1853
|
-
|
|
1854
|
-
"";n.greeting&&n.add({message:n.greeting,type:"greeting"});n.setHeading(n.heading);n.setBrandColor(Q);g();x=y=null};this.setTheme=function(
|
|
1855
|
-
null;if(Q){var
|
|
1856
|
-
w.classList.toggle("pai-recording")}n.onSend&&n.onSend(s.value);n.add({message:s.value});da=[];var
|
|
1857
|
-
if(Y){
|
|
1858
|
-
!E)){var
|
|
1859
|
-
r.scrollHeight};this.hideLoader=function(){if(n.isLoading()){if(Y)for(var
|
|
1836
|
+
profound.ai.Chat=function(){function b(){if(window.pui&&window.pui.ide&&window.pui.ide.designerId)return true;return false}function a(){var V=Ext.getCmp("centerPanel").getActiveTab(),C={};if(V.isAIAgent&&V.aiAgent)C.aiAgent=V.aiAgent;if(V.isAIAgent&&V.dataAccess)C.dataAccess=V.dataAccess;Object.assign(C,Object.fromEntries(Object.entries(V.pjsModule).filter(function(U){return typeof U[1]!=="function"})));return C}function c(){function V(){var U=r.lastChild.querySelectorAll(".pai-chart");if(U.length!==
|
|
1837
|
+
0)if(profound.ai.Ok){for(var pa=0;pa<U.length;pa++){var la=U[pa],ha=JSON.parse(la.getAttribute("data-config"));la.removeAttribute("data-config");la.chart=new window.Chart(la.querySelector("canvas"),ha);la=la.querySelector("span");la.parentNode.removeChild(la)}r.scrollTop=r.scrollHeight}else{C++;C<20&&setTimeout(V,1E3)}}var C=0;V()}function e(V){function C(){V.read().then(function(ha){var La=ha.value;if(ha.done){n.hideLoader();c()}else{ha=U.decode(La).split("\n");for(La=0;La<ha.length-1;La++){var ra=
|
|
1838
|
+
ha[La];if(ra){ra=JSON.parse(ra);if(ra.threadId)y=ra.threadId;if(ra.status==="error"){n.hideLoader();n.add({message:"Error: "+ra.message,type:"error"});return}if(ra.status==="calling"){var xa=r.lastChild;ra=xa.innerHTML.replace(P,"")+'<p>Calling <span class="pai-function-name">'+ra["function"]+"</span>.</p>";n.add({message:ra+P,type:"agent-response",replace:true})}else if(ra.status==="calls completed"){xa=r.lastChild;var Ba="<p>";Ba+=ra.count===1?"Call completed.":ra.count+" calls completed.";Ba+=
|
|
1839
|
+
"</p>";Ba=xa.innerHTML.replace(P,"")+Ba;n.add({message:Ba+P,type:"agent-response",replace:true})}else{if(ra.status==="file")pa=pa.replace(ra.placeholderUrl,ra.fileUrl);pa+=ra.text;if(ra.charts){if(!profound.ai.Ok){var ya=window.define;window.define=undefined;profound.ai.np(W,function(){window.define=ya;profound.ai.Ok=true})}la=ra.charts}if(la)for(var bb in la)pa=pa.replace(bb,'<div class="pai-chart" data-config="'+JSON.stringify(la[bb]).replace(/"/g,""")+'"><span>Loading chart...</span><canvas></canvas></div>');
|
|
1840
|
+
xa=pa&&typeof window.marked==="function"?window.marked(pa+P):pa+P;ra.status==="citation"&&da.push(ra);for(ra=0;ra<da.length;ra++){Ba=da[ra];xa=xa.replace(Ba.citationPlaceholder,Ba.citationContent)}n.add({message:xa,type:"agent-response",replace:true})}}}C()}})}var U=new TextDecoder("utf-8"),pa="",la;C()}function f(V){var C=V.status;if(V.threadId)y=V.threadId;if(V.runId)x=V.runId;if(V.modelKey)E=V.modelKey;if(V.message){var U=V.message,pa="agent-response";if(V.status==="error"){U="Error: "+U;pa="error"}if(V.status===
|
|
1841
|
+
"failed"){U="Failed: "+U;pa="error"}if(V.status==="cancelled"){U="Cancelled";pa="error"}if(V.status==="expired"){U="Chat Expired";pa="error"}if(V.charts){if(!profound.ai.Ok){var la=window.define;window.define=undefined;profound.ai.np(W,function(){window.define=la;profound.ai.Ok=true})}var ha=V.charts;for(var La in ha)U=U.replace(La,'<div class="pai-chart" data-config="'+JSON.stringify(ha[La]).replace(/"/g,""")+'"><span>Loading chart...</span><canvas></canvas></div>')}n.add({message:U,type:pa});
|
|
1842
|
+
V.charts&&c()}C==="queued"||C==="in_progress"?setTimeout(function(){n.poll()},J):n.hideLoader()}function g(){s.value===""||n.isLoading()?t.classList.remove("pai-send-button-active"):t.classList.add("pai-send-button-active");var V="webkitSpeechRecognition"in window||"SpeechRecognition"in window;if(b()){var C=Ext.getCmp("aiAgentModel").getValue();if(pui.modelVoiceSettings)ea=pui.modelVoiceSettings[C];ea||(ea={})}if(V&&ea.enabled===false)V=false;if(V){s.classList.add("pai-with-voice");w.classList.remove("pai-hidden")}else{s.classList.remove("pai-with-voice");
|
|
1843
|
+
w.classList.add("pai-hidden")}}function h(){s.style.height="1px";var V=s.scrollHeight==0?21:s.scrollHeight;if(V<21)V=21;if(V>100)V=100;r.style.height="calc(100% - "+(V+54+(n.heading?74:0))+"px)";s.style.height=V+"px"}function l(V,C){if(typeof V!=="string")return V;if(V.length!==7)return V;if(V.substring(0,1)!=="#")return V;var U=parseInt(V.substring(1,3),16),pa=parseInt(V.substring(3,5),16),la=parseInt(V.substring(5,7),16);U=parseInt(U*(100+C)/100);pa=parseInt(pa*(100+C)/100);la=parseInt(la*(100+
|
|
1844
|
+
C)/100);U=U<255?U:255;pa=pa<255?pa:255;la=la<255?la:255;U=U.toString(16).length==1?"0"+U.toString(16):U.toString(16);pa=pa.toString(16).length==1?"0"+pa.toString(16):pa.toString(16);la=la.toString(16).length==1?"0"+la.toString(16):la.toString(16);return"#"+U+pa+la}var n=this,m=null,r=null,p=null,s=null,t=null,w=null,y=null,x=null,E=null,J=1E3,z=null,G=null,D="Thinking",B="",K="light",Q=null,Y=false,ea={},P='<span class="pai-loader-dot pai-inline-loader"></span>',W="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js",
|
|
1845
|
+
oa=null,da=[],ga,Aa,Ea=false;this.init=function(V){V||(V={});n.config=V;if(!V.container)V.container=document.body;if(V.closeButton===undefined)V.closeButton=true;V.closeTitle||(V.closeTitle="Close this conversation");V.sendTitle||(V.sendTitle="Send this message");V.voiceTitle||(V.voiceTitle="Use voice");V.promptPlaceholder||(V.promptPlaceholder="Send a message...");if(V.heading)n.heading=V.heading;if(V.greeting)n.greeting=V.greeting;if(V.agent)n.agent=V.agent;if(V.pollInterval)J=V.pollInterval;if(V.loaderMessage){D=
|
|
1846
|
+
V.loaderMessage;Ea=true}if(V.server)B=V.server;if(V.data)n.data=V.data;if(V.stream)Y=V.stream;if(typeof V.voice==="object")ea=V.voice;if(V.jwt)oa=V.jwt;n.dom=document.createElement("div");n.dom.classList.add("pai-chat");n.dom.classList.add("pai-hidden");V.container.appendChild(n.dom);if(V.closeButton){m=document.createElement("div");m.classList.add("pai-close-button");m.title=V.closeTitle;m.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';
|
|
1847
|
+
m.addEventListener("click",function(){n.onClose&&n.onClose();b()?n.clear():n.hide()});n.dom.appendChild(m)}r=document.createElement("div");r.classList.add("pai-messages");n.dom.appendChild(r);p=document.createElement("div");p.classList.add("pai-prompt-area");s=document.createElement("textarea");s.classList.add("pai-prompt-box");s.setAttribute("placeholder",V.promptPlaceholder);s.addEventListener("keydown",function(pa){if(pa.key==="Enter"){pa.shiftKey||pa.preventDefault();pa.stopPropagation();pa.shiftKey||
|
|
1848
|
+
n.send()}g()});s.addEventListener("input",function(){h();g()});p.appendChild(s);w=document.createElement("div");w.classList.add("pai-voice-button");w.title=V.voiceTitle;w.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm4.5-3c0 2.5-2 4.5-4.5 4.5S7.5 13.5 7.5 11H6c0 3.07 2.13 5.64 5 6.32V21h2v-3.68c2.87-.68 5-3.25 5-6.32h-1.5z"/></svg>';
|
|
1849
|
+
p.appendChild(w);if("webkitSpeechRecognition"in window||"SpeechRecognition"in window){ga=window.SpeechRecognition||window.webkitSpeechRecognition;Aa=new ga;Aa.continuous=true;Aa.interimResults=true;w.addEventListener("click",function(){Aa.lang=ea.lang?ea.lang:"en-US";w.classList.contains("pai-recording")?Aa.stop():Aa.start();w.classList.toggle("pai-recording")});Aa.onresult=function(pa){if(w.classList.contains("pai-recording")){for(var la=[],ha=0;ha<pa.results.length;ha++)la.push(pa.results[ha][0].transcript);
|
|
1850
|
+
s.value=la.join("");h();s.scrollTop=s.scrollHeight;s.focus();g()}};Aa.onend=function(){w.classList.remove("pai-recording");s.select();g()};Aa.onerror=function(pa){n.add({message:"Speech recognition error: "+pa.error,type:"error"})}}t=document.createElement("div");t.classList.add("pai-send-button");t.title=V.sendTitle;t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>';
|
|
1851
|
+
t.addEventListener("click",function(){n.send()});p.appendChild(t);n.dom.appendChild(p);z=document.createElement("div");z.classList.add("pai-loader");G=document.createElement("span");G.classList.add("pai-loader-message");z.appendChild(G);for(var C=1;C<=3;C++){var U=document.createElement("div");U.classList.add("pai-loader-dot");z.appendChild(U)}n.clear();V.theme&&n.setTheme(V.theme);V.brandColor&&n.setBrandColor(V.brandColor);g()};this.show=function(){n.dom.classList.remove("pai-hidden");s.focus()};
|
|
1852
|
+
this.hide=function(){n.dom.classList.add("pai-hidden")};this.add=function(V){var C=V.message,U=document.createElement("div");U.classList.add("pai-message");var pa=V.type;pa||(pa="user-message");U.classList.add("pai-"+pa);if(pa==="agent-response"){U.classList.add("markdown-body");if(B){C=C.replace(/<img src="\/profound-ai\/image\?file=/g,'<img src="'+B+"/profound-ai/image?file=");C=C.replace(/="\/profound-ai\/file\?file=/g,'="'+B+"/profound-ai/file?file=")}U.innerHTML=C;U.querySelectorAll("a").forEach(function(la){la.addEventListener("click",
|
|
1853
|
+
function(){pui.skipConfirm=true;setTimeout(function(){pui.skipConfirm=false},250)})});U.querySelectorAll("span.pai-citation").forEach(function(la){function ha(){if(La&&!La.matches(":hover")){la.removeChild(La);La=null}}var La,ra;la.addEventListener("mouseenter",function(){if(!La)if(la.getAttribute("data-citation")){La=document.createElement("div");La.classList.add("pai-tooltip-content");La.innerHTML=la.getAttribute("data-citation");la.appendChild(La);var xa=la.getBoundingClientRect();La.style.left=
|
|
1854
|
+
xa.left+"px";La.style.top=xa.top-La.offsetHeight-5+"px";La.addEventListener("mouseenter",function(){clearTimeout(ra)});La.addEventListener("mouseleave",function(){ha()})}});la.addEventListener("mouseleave",function(){ra=setTimeout(ha,100)})});if(V.replace)(V=r.lastChild)&&V.classList.contains("pai-agent-response")&&V.parentNode.removeChild(V)}else U.innerText=C;r.appendChild(U);r.scrollTop=r.scrollHeight};this.clear=function(){w.classList.contains("pai-recording")&&Aa.stop();s.value="";r.innerHTML=
|
|
1855
|
+
"";n.greeting&&n.add({message:n.greeting,type:"greeting"});n.setHeading(n.heading);n.setBrandColor(Q);g();x=y=null};this.setTheme=function(V){K=V;K=typeof K!=="string"?"light":K.toLowerCase();K==="dark"?n.dom.classList.add("pai-dark"):n.dom.classList.remove("pai-dark")};this.setBrandColor=function(V){Q=V;if(V=n.dom.querySelector(".pai-heading")){V.style.backgroundColor=null;V.style.backgroundImage=null;V.classList.remove("pai-branded")}m&&m.classList.remove("pai-branded");t.style.backgroundColor=
|
|
1856
|
+
null;if(Q){var C=l(Q,-30);if(V){V.style.backgroundColor=Q;V.style.backgroundImage="linear-gradient(to right, "+Q+", "+C+")";V.classList.add("pai-branded")}m&&V&&m.classList.add("pai-branded");t.style.backgroundColor=Q}};this.setHeading=function(V){var C=n.dom.querySelector(".pai-heading");if(V){if(C===null){C=document.createElement("div");C.classList.add("pai-heading");n.dom.prepend(C);h()}C.innerText=V}else if(C!==null){C.remove();h()}};this.send=function(){if(s.value!=="")if(!n.isLoading()){if(w.classList.contains("pai-recording")){Aa.stop();
|
|
1857
|
+
w.classList.toggle("pai-recording")}n.onSend&&n.onSend(s.value);n.add({message:s.value});da=[];var V={};V.message=s.value;if(y)V.threadId=y;var C="/profound-ai/chat";if(b()){V.agentData=a();V.agentFile=Ext.getCmp("centerPanel").getActiveTab().title.replace(/\*/g,"").trim();Y=pui.streamingModelList.includes(V.agentData.aiAgent.model);C="/ide/profound-ai/chat"}else V.agent=n.agent;var U=n.data;if(typeof U==="function")U=U();if(n.data)V.data=U;s.value="";h();s.focus();n.showLoader();U={"Content-Type":"application/json"};
|
|
1858
|
+
if(Y){U.Connection="keep-alive";U["Response-Type"]="stream"}if(pui.appJob&&pui.appJob.authToken)U.Authorization="Bearer "+pui.appJob.authToken;else if(oa){var pa=oa;if(typeof pa==="function")pa=pa();U.Authorization="Bearer "+pa}fetch(B+C,{method:"POST",headers:U,body:JSON.stringify(V)}).then(function(la){return Y?la.body.getReader():la.json()}).then(function(la){Y?e(la):f(la)})["catch"](function(la){n.hideLoader();n.add({message:"Error: "+la.message,type:"error"})})}};this.poll=function(){if(!(!y||
|
|
1859
|
+
!x||!E)){var V={};V.threadId=y;V.runId=x;V.modelKey=E;var C="/profound-ai/poll";if(b())C="/ide/profound-ai/poll";fetch(B+C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)}).then(function(U){return U.json()}).then(function(U){f(U)})["catch"](function(U){n.hideLoader();n.add({message:"Error: "+U.message,type:"error"})})}};this.showLoader=function(V){V||(V=n.config.loaderMessage||D);G.innerText=V;if(!n.isLoading()){Y?n.add({message:Ea?V:P,type:"agent-response"}):r.appendChild(z);
|
|
1860
|
+
g();r.scrollTop=r.scrollHeight}};this.hideLoader=function(){if(n.isLoading()){if(Y)for(var V=r.querySelectorAll(".pai-inline-loader"),C=V.length-1;C>=0;C--)V[C].parentNode.removeChild(V[C]);else r.removeChild(z);g()}};this.isLoading=function(){if(Y)return r.querySelectorAll(".pai-inline-loader").length>0;return z.parentNode===r};this.destroy=function(){if(n.dom){n.dom.parentNode.removeChild(n.dom);n.dom=null}};this.removeEmbedIcon=function(){profound.ai.removeEmbedIcon()}};
|
|
1860
1861
|
profound.ai.tt=function(b){if(!document.querySelector('link[href="'+b+'"]')){var a=document.createElement("link");a.rel="stylesheet";a.href=b;document.head.appendChild(a)}};profound.ai.np=function(b,a){if(document.querySelector('script[src="'+b+'"]'))typeof a==="function"&&a();else{var c=document.createElement("script");c.type="text/javascript";c.src=b;c.onload=function(){typeof a==="function"&&a()};document.head.appendChild(c)}};
|
|
1861
1862
|
profound.ai.startAgent=function(b,a){b||(b={});var c="";if(b.server)c=b.server;if(!a&&b.agent)fetch(c+"/profound-ai/attributes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b.agent})}).then(function(e){return e.json()}).then(function(e){if(e.status==="error")throw Error(e.message);e=e.attributes;for(var f in e)if(b[f]===undefined)b[f]=e[f];profound.ai.startAgent(b,true)})["catch"](function(e){throw Error("Unable to start AI Agent: "+e.message);});else{if(!b.container)b.container=
|
|
1862
1863
|
document.body;b.stream&&profound.ai.np(c+"/marked/marked.min.js");profound.ai.tt(c+"/profoundui/proddata/css/markdown.css");profound.ai.tt(c+"/profoundui/proddata/css/profoundai.css");profound.ai.agent&&profound.ai.agent.destroy();if(b.embed){if(!profound.ai.embedIcon){profound.ai.embedIcon=document.createElement("div");profound.ai.embedIcon.classList.add("pai-embed-icon");profound.ai.embedIcon.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/></svg>';
|
|
1863
|
-
b.container.appendChild(profound.ai.embedIcon)
|
|
1864
|
+
b.container.appendChild(profound.ai.embedIcon)}profound.ai.embedIcon.title=b.embedIconTitle||"Ask AI Agent";c=profound.ai.embedIcon.cloneNode(true);c.addEventListener("click",function(){var e=Object.assign({},b);delete e.embed;profound.ai.startAgent(e)});profound.ai.embedIcon.parentNode.replaceChild(c,profound.ai.embedIcon);profound.ai.embedIcon=c}else{profound.ai.agent=new profound.ai.Chat;profound.ai.agent.init(b);profound.ai.agent.show();return profound.ai.agent}}};
|
|
1864
1865
|
profound.ai.removeEmbedIcon=function(){if(profound.ai.embedIcon){profound.ai.embedIcon.parentNode.removeChild(profound.ai.embedIcon);profound.ai.embedIcon=null}};window.Atrium||(window.Atrium={});Atrium.launchURL=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchURL(b,a,c)};Atrium.closeTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.closeTab(window,b)};Atrium.launchItem=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchItem(b,a,c)};Atrium.activateTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.activateTab(b)};
|
|
1865
1866
|
Atrium.closeAllTabs=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.closeAllTabs(window,b)};Atrium.getCurrentTab=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getCurrentTab(window)};Atrium.getToken=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getToken()};Atrium.getUser=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getUser()};Atrium.runPCCommand=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.runPCCommand(b)};
|
|
1866
1867
|
Atrium.refreshNavPanel=function(){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.refreshNavPanel()};Atrium.reloadNavParent=function(){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.reloadNavParent()};Atrium.setMenuFilter=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.setMenuFilter(b)};Atrium.breakMessagesShow=function(b,a){var c=Atrium.getAtriumWindow();c!=null&&c.Atrium.api.breakMessagesShow(b,a)};
|
|
@@ -1878,7 +1879,7 @@ window.currentDate=function(b,a){if(b==null||b=="Y")slashes=true;if(Eb()){var c;
|
|
|
1878
1879
|
"")+(parseInt(c.getMonth(),10)+1)+"/"+(parseInt(c.getDate(),10)<10?"0":"")+c.getDate()+"/"+(parseInt(c.getFullYear(),10)-e<10?"0":"")+(parseInt(c.getFullYear(),10)-e)}if(b!=null&&b!="Y"){e="/";if(pui!=null&&pui.appJob!=null&&pui.appJob.dateSeparator!=null)e=pui.appJob.dateSeparator;c=c.replace(e,"");c=c.replace(e,"");if(c.substr(0,1)=="0")c=" "+c.substr(1)}return c}};
|
|
1879
1880
|
window.currentTime=function(){if(Eb())return"TT:TT:TT";else{var b;if(pui&&pui.appJob){if(pui.appJob.sysTime==0)return"";b=new Date(pui.appJob.sysTime*1E3);var a=pui.formatting.keywords.jd["*HMS"].gb.replace(/\B/g,pui.appJob.timeSeparator);return b.format(a,"en_US")}else{b=new Date;return(b.getHours()<10?"0":"")+b.getHours()+":"+(b.getMinutes()<10?"0":"")+b.getMinutes()+":"+(b.getSeconds()<10?"0":"")+b.getSeconds()}}};
|
|
1880
1881
|
window.currentUser=function(){return Eb()?"UUUUUUUUUU":pui.appJob==null||pui.appJob.user==null?"":pui.appJob.user};window.currentFormatNames=Zc;window.getQueryStringParms=$c;window.setCursor=function(b,a){if(arguments.length==1){var c=Ab(b);if(c)if(N=="genie"){if(c.C){pui.response.crow=c.C.row;pui.response.ccol=c.C.col}}else c.uf&&c.ue&&pui.Zd(null,c)}if(arguments.length==2)if(N=="genie"){pui.response.crow=b;pui.response.ccol=a}else{pui.r.row=b;pui.r.column=a}};window.getTarget=tb;
|
|
1881
|
-
window.inDesignMode=Eb;window.loadPCCommandApplet=cd;window.runPCCommand=bd;window.copyToClipboard=function(b){var a=document.getElementById("PCCommandApplet");if(a)a.copyToClipboard(b);else{pui.Dr=b;cd("copyToClipboardCb")}};window.pui.UTF8=pui.pi;window.pui.UTF8.encode=pui.pi.encode;window.pui.UTF8.decode=pui.pi.decode;window.$=na();window.id=window.id;window.pui=pui;window.pui.locales=pui.locales;window.pui.formatting=pui.formatting;window.pui.formatting.leftPad=pui.formatting.leftPad;window.pui.formatting.Date=pui.formatting.Date;window.pui.formatting.Date.y2k=pui.formatting.Date.
|
|
1882
|
+
window.inDesignMode=Eb;window.loadPCCommandApplet=cd;window.runPCCommand=bd;window.copyToClipboard=function(b){var a=document.getElementById("PCCommandApplet");if(a)a.copyToClipboard(b);else{pui.Dr=b;cd("copyToClipboardCb")}};window.pui.UTF8=pui.pi;window.pui.UTF8.encode=pui.pi.encode;window.pui.UTF8.decode=pui.pi.decode;window.$=na();window.id=window.id;window.pui=pui;window.pui.locales=pui.locales;window.pui.formatting=pui.formatting;window.pui.formatting.leftPad=pui.formatting.leftPad;window.pui.formatting.Date=pui.formatting.Date;window.pui.formatting.Date.y2k=pui.formatting.Date.Nz;window.pui.formatting.Date.getSuffix=pui.formatting.Date.getSuffix;window.pui.formatting.Date.getMonthNum=pui.formatting.Date.dx;window.pui.formatting.Date.isMidnight=pui.formatting.Date.Gx;
|
|
1882
1883
|
window.getSystemName=function(){return Eb()?"SSSSSSSS":pui.appJob==null||pui.appJob.sysName==null?"":pui.appJob.sysName};function De(b){var a={};switch(b){case "runtimeMsg":a.closeMessage="This will end your session.";a["no connection message"]="Unable to reach server. Check your connection and try again.";a["upload file limit"]="Limit of &1 file(s) exceeded.";a["upload size limit"]="Limit of &1MB per file exceeded";a["upload no files"]="No files selected.";a["upload duplicate file"]="Duplicate files selected.";a["upload file exists"]="One or more files already exist on the file system.";a["upload prevented"]="Operation prevented by exit program.";
|
|
1883
1884
|
a["upload input limit"]="Total input size limit exceeded.";a["upload no session"]="Not connected to a valid session.";a["upload timeout"]="Transaction timed out.";a["upload invalid response"]="The server response is missing or invalid.";a["upload cancelled"]="Upload canceled.";a["close browser text"]="To complete the log off process, please close your browser window.";a["session ended text"]="Your session has ended.";a["outside ucs2"]="Characters are outside of UCS-2 range.";a["invalid number"]="&1 is not a valid number.";
|
|
1884
1885
|
a["invalid length"]="&1 has an incorrect data length or decimal position.";a["invalid decimal"]="&1 has too many decimal places. (max: &2)";a["invalid choice"]='"&1" is invalid. Valid choices are: "&2" or "&3".';a["invalid date"]='"&1" is not a valid date. Example format: &2';a["invalid time"]='"&1" is not a valid time. Example format: &2';a["invalid time stamp"]='"&1" is not a valid time stamp. Example format: &2';a["invalid percent"]="&1 is not a valid decimal.";a["invalid digits"]='"&1" contains too many digits. Max: &2';
|
|
@@ -2572,5 +2573,5 @@ pui.runtimeText.es_ES=Ge("runtimeText");pui.runtimeMsg.es_MX=He("runtimeMsg");pu
|
|
|
2572
2573
|
pui.runtimeMsg.nl_NL=Oe("runtimeMsg");pui.runtimeText.nl_NL=Oe("runtimeText");pui.runtimeMsg.pt_BR=Pe("runtimeMsg");pui.runtimeText.pt_BR=Pe("runtimeText");pui.runtimeMsg.pt_PT=Qe("runtimeMsg");pui.runtimeText.pt_PT=Qe("runtimeText");pui.runtimeMsg.zh_HK=Re("runtimeMsg");pui.runtimeText.zh_HK=Re("runtimeText");if(typeof window.pui=="undefined")window.pui={};
|
|
2573
2574
|
window.pui.Timer=function(){var b=(new Date).getTime(),a=false,c,e=this;this.timeout=600;this.showDebugInfo=false;this.action=null;this.checkFrequency=1E3;this.resetOnUserActivity=false;this.start=function(){if(!a){if(e.resetOnUserActivity)if(document.body.addEventListener){document.body.addEventListener("keydown",e.reset,false);document.body.addEventListener("mousemove",e.reset,false);document.body.addEventListener("click",e.reset,false);document.body.addEventListener("touchstart",e.reset,false);
|
|
2574
2575
|
document.body.addEventListener("touchmove",e.reset,false)}else if(document.body.attachEvent){document.body.attachEvent("onkeydown",e.reset);document.body.attachEvent("onmousemove",e.reset);document.body.attachEvent("onclick",e.reset)}e.reset();c=setInterval(e.check,e.checkFrequency);a=true}};this.stop=function(){if(a){clearInterval(c);if(e.resetOnUserActivity)if(document.body.removeEventListener){document.body.removeEventListener("keydown",e.reset,false);document.body.removeEventListener("mousemove",
|
|
2575
|
-
e.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",e.reset);document.body.detachEvent("onmousemove",e.reset)}a=false}};this.reset=function(){b=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-b;if(e.showDebugInfo)document.title=parseInt(f/1E3);if(f>=e.timeout*1E3){e.action!=null&&typeof e.action=="function"&&e.action();e.reset()}}};pui.kb={};pui.kb.Rg=new pui.Timer;pui.kb.Rg.action=function(){var b=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")b=pui.onbeforetimeout();b!==false&&pui.kb.
|
|
2576
|
+
e.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",e.reset);document.body.detachEvent("onmousemove",e.reset)}a=false}};this.reset=function(){b=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-b;if(e.showDebugInfo)document.title=parseInt(f/1E3);if(f>=e.timeout*1E3){e.action!=null&&typeof e.action=="function"&&e.action();e.reset()}}};pui.kb={};pui.kb.Rg=new pui.Timer;pui.kb.Rg.action=function(){var b=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")b=pui.onbeforetimeout();b!==false&&pui.kb.rz();pui.kb.Rg.stop();pui.kb.Gh.stop()};pui.kb.Gh=new pui.Timer;pui.kb.Gh.action=function(){pui.keepAlive()};pui.kb.rz=function(){pui.doSessionTimeout()};
|
|
2576
2577
|
pui.kb.start=function(){pui.kb.Rg.stop();pui.kb.Gh.stop();if(pui.timeout!=null){var b=pui.timeout-10;if(!(b<3)){pui.kb.Rg.timeout=pui.timeout;pui.kb.Gh.timeout=b;pui.kb.Rg.start();pui.kb.Gh.start()}}};pui.kb.end=function(){pui.kb.Rg.stop();pui.kb.Gh.stop()};
|