profoundjs 6.6.0 → 6.6.1

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.
@@ -1460,7 +1460,7 @@ da=document.createElement("button");da.className="pui-material-icons";da.innerHT
1460
1460
  function P(ya){if(ya.target.localName=="td")if(this.cells[0].children[0].checked==false)Aa=this.cells[0].children[0].checked=true;else Aa=this.cells[0].children[0].checked=false;if(ya.target.localName=="input")if(this.cells[0].children[0].checked==true)Aa=this.cells[0].children[0].checked=true;else Aa=this.cells[0].children[0].checked=false;oa=this.cells[1].innerHTML;oa!=null&&ka.has(oa)&&ka.set(oa,Aa)}function S(ya,ra,La,gb,mb){r.mask();r.Ef();if(ya==null)ya=-1;if(ra==null)ra=1;var Bb=null;Bb=pui.dj(r.dataProps);
1461
1461
  r.yh="";if(r.isFiltered())for(var Jb=r.cells[0],Ub=0,tb=0;tb<Jb.length;tb++){var Db=Jb[tb];if(Db.Z>=0&&Db.ic!=null){r.yh+="&fltrcol"+String(Ub)+"="+(Db.Z+1);r.yh+=r.MN(String(Ub),Db.ic);Bb+=r.yh;Ub++}}if(r.dataProps["data url"]!=null&&r.dataProps["data url"]!=""&&r.Ne!=null)Bb+="&order="+r.Ne;Jb=jc("PUI0009102.PGM");if(gb)Jb=pui.Sm(gb);gb=new pui.Ajax(Jb);gb.method="post";gb.async=true;gb.postData=pui.tb?"AUTH="+pui.tb:"AUTH="+pui.appJob.auth;gb.postData+="&q="+encodeURIComponent(pui.ti(r.g));Jb=
1462
1462
  r.dataProps["order by"];if(r.Ne!=null)Jb=r.Ne;if(Jb&&Jb!="")gb.postData+="&order="+Jb;else if($a()=="mssql")gb.postData+="&order=(select null)";if(Bb!="")gb.postData+="&"+Bb;gb.postData+="&limit="+ya+"&start="+ra;if(La!=null&&La==true)gb.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)gb.postData+="&UTF8=Y";ya=r.dataProps["allow any select statement"];if(ya!=null&&(ya=="true"||ya==true))gb.postData+="&FetchCounter=Y";if(pui.isCloud)gb.postData+="&workspace_id="+pui.cloud.ws.id;
1463
- gb.onready=function(Mb){var pc,Ac,uc;if(pc=cc(Mb,"Run SQL SELECT Query")){r.mask();r.Ef();Mb=pc.results;var ld=pc.totalRecs;if(ld!=null)r.totalRecs=ld;if(Mb.length>=1){ld=[];for(uc in pc.results[0])ld.push(uc);for(pc=0;pc<Mb.length;pc++){var Ed=Mb[pc];if(mb.fieldName!=null)for(Ac in Ed){if(Ac.toUpperCase()==mb.fieldName.toUpperCase()){uc=Ed[Ac];ka.set(uc,false)}}else{r.dataArray=Mb;r.Xh=false;r.Fc=true;var kh=ld[mb.Z];for(Ac in Ed)if(Ac==kh){uc=Ed[Ac];ka.set(uc,false)}}}if(ka.size>0){G();r.unMask()}}}};
1463
+ gb.onready=function(Mb){var pc,Ac,uc;if(pc=cc(Mb,"Run SQL SELECT Query")){r.mask();r.Ef();Mb=pc.results;var ld=pc.totalRecs;if(ld!=null)r.totalRecs=ld;if(Mb.length>=1){ld=[];for(uc in pc.results[0])ld.push(uc);for(pc=0;pc<Mb.length;pc++){var Ed=Mb[pc];if(mb.fieldName!=null)for(Ac in Ed){if(Ac.toUpperCase()==mb.fieldName.toUpperCase()){uc=Ed[Ac];ka.set(uc,false)}}else{r.dataArray=Mb;r.Xh=false;r.Fc=true;var lh=ld[mb.Z];for(Ac in Ed)if(Ac==lh){uc=Ed[Ac];ka.set(uc,false)}}}if(ka.size>0){G();r.unMask()}}}};
1464
1464
  r.Xh=true;gb.send()}if(r.g.parentNode!=null)if(!pui.is_ie){r.mask();r.Ef();lb&&lb.parentNode.removeChild(lb);lb=document.createElement("div");lb.className="grid-multifilter"+(r.Bi!=""?" "+r.Bi+"-multifilter":"");if(A!=null){lb.style.top=r.g.offsetTop+A.offsetHeight+"px";lb.style.left=r.g.offsetLeft+A.offsetLeft+"px";if(lb.style.top==null||lb.style.left==null){lb.style.top=r.g.offsetTop+"px";lb.style.left=r.g.offsetLeft+"px"}}else{lb.style.top=r.g.offsetTop+"px";lb.style.left=r.g.offsetLeft+"px"}var R=
1465
1465
  document.createElement("div");new pui.ed({wc:R,move:lb});var Z=document.createElement("button");Z.className="pui-material-icons";Z.innerHTML="close";mc(Z,"click",function(){lb.style.display="none";lb=null});R.appendChild(Z);Z=document.createElement("button");Z.className="pui-material-icons";Z.innerHTML="check";mc(Z,"click",function(){lb.style.display="none";r.mask();r.Ef();ta=ka.entries();Da=ka.size;for(var ya=[],ra=0;ra<Da;ra++){ja=ta.next().value;oa=ja[0];Aa=ja[1];Aa==true&&ya.push(oa)}Ea="JVALUES "+
1466
1466
  JSON.stringify(ya);if(r.Xh==true)r.Xh=false;if(r.Fc==true&&r.dataProps["load all rows"]!="true")r.Fc=false;Ea==null||ya.length==0?r.removeFilter(ua):r.setFilter(A,Ea);r.unMask();lb=null});R.appendChild(Z);R.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));lb.appendChild(R);var X=document.createElement("table"),Y=X.createTHead().insertRow(),da=Y.insertCell();da.innerHTML=pui.getLanguageText("runtimeText","filter check");da=Y.insertCell();da.innerHTML=pui.getLanguageText("runtimeText",
@@ -2723,51 +2723,51 @@ pui.wf.i["gen edit icon click"]=function(b){var a="edit icon click";a=lf(a,b,fal
2723
2723
  (b+1);c[f]=e[b]}a=a[1].answers["screen-values"];delete a["#field"];delete a["#fieldKey"];a.editMode="true";c=pui.wf.i.Fe("unique");for(b=0;b<c.length;b++){d=c[b].def.name;a[d+"Key"]='activeGridRecord["'+d+'"]'}};
2724
2724
  pui.wf.i["gen delete icon click"]=function(b){var a="delete icon click";a=lf(a,b,false);b=pui.wf.i.T.Kf.logic[a].steps[2].answers;b.connection=pui.wf.i.T.ta;b.table=pui.wf.i.T.table;a=[];for(var c=[],d=pui.wf.i.Fe("unique"),e=0;e<d.length;e++){var f=d[e].def.name;a.push(f+" = ?");c.push('activeGridRecord["'+f+'"]')}b.criteria=a.join(" AND ");for(e=0;e<a.length;e++){d="parameter";if(e>0)d+="_"+(e+1);b[d]=c[e]}};
2725
2725
  pui.wf.i["gen save button click"]=function(b){var a="save button click",c="detailScreen";a=lf(a,b,false);c=lf(c,b,true);b=pui.wf.i.T.Kf.logic[a].steps[0].answers;b.connection=pui.wf.i.T.ta;b.table=pui.wf.i.T.table;a=[];for(var d=[],e=pui.wf.i.Fe("unique"),f=0;f<e.length;f++){var g=e[f].def.name;a.push(g+" = ?");d.push(c+'["'+g+'Key"]')}b.criteria=a.join(" AND ");for(f=0;f<a.length;f++){c="parameter";if(f>0)c+="_"+(f+1);b[c]=d[f]}};
2726
- pui.wf.i["gen add button click"]=function(b){var a="add button click";a=lf(a,b,false);b=pui.wf.i.T.Kf.logic[a].steps[0].answers["screen-values"];delete b["#field"];delete b["#fieldKey"];b.editMode="false";var c=pui.wf.i.Fe("unique");for(a=0;a<c.length;a++){var d=c[a],e=d.def.name;d=d.def.type.toLowerCase();b[e+"Key"]=d.includes("char")||d.includes("text")?"''":"0"}c=pui.wf.i.Fe("detail");for(a=0;a<c.length;a++){d=c[a];e=d.def.name;d=d.def.type.toLowerCase();b[e]=d.includes("char")||d.includes("text")?
2727
- "''":"0"}};pui.wf.i.gN=function(){var b=Ext.getCmp("centerPanel"),a=pui.ide.gr();b.setActiveTab(b.add(a));Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);a.recordFormats&&a.recordFormats.sb();pui.display=pui.wf.i.T.Kf;a.toolbar.Wr(pui.wf.i.T.Kf.formats,pui.wf.i.T.Kf["mobile formats"]);a.toolbar.designer.sb();pui.ide.Yb();Ext.getCmp("widgetsPanel").setActiveTab(0)};
2728
- pui.wf.i.ln=function(b){function a(g){if(g.includes("_")||g.includes(" ")){g=g.replace(/_/g," ");g=g.split(" ");g=g.map(function(h){return h.charAt(0).toUpperCase()+h.substr(1)});g=g.join(" ")}else if(g.toUpperCase()!==g){g=g.replace(/([A-Z])/g," $1");g=g.charAt(0).toUpperCase()+g.substr(1)}return g}var c=b.def,d=c.keyInfo,e=false;if(d&&d.keyType!=null){e=d.keyType.toString();e=e==="1"||e==="4"}(d=c.colText)||(d=a(c.name));var f=c.type.toLowerCase();return{unique:e,grid:b.sequence<=4,heading:d,searchable:f.includes("char")||
2729
- f.includes("text"),detail:true,label:d,readonly:c.readonly===true,identity:c.identity===true,nullable:c.is_nullable===true}};function lf(b,a,c){if(a==="")return b;return c?b+"_"+a:b+" "+a};pui.Vb={};pui.Vb.tq=function(b){this.Dh=[];this.ee=this.Cd=this.cn=this.wi=null;this.Kt={right:b&&b.$M?b.$M:2E3,bottom:b&&b.UM?b.UM:1E3};this.gG=b&&b.gG?b.gG:" &#9911;";this.Fp=this.bN=null;this.yF="rgb(135,135,135)";this.nX="rgb(0,0,255)";this.Nr=null};pui.Vb.tq.prototype=Object.create(pui.cd.prototype);
2730
- pui.Vb.tq.prototype.init=function(b,a,c){this.cn=b;this.Cd=document.createElementNS(pui.Qi,"svg");this.Cd.setAttribute("class","join");b.appendChild(this.Cd);if(a==null)a=pui.Vb.kB;this.ee=new a(this);if(c==null)c=pui.Vb.Iw;this.Fp=new c(this);this.Fp.init()};function mf(b,a){a.nb=b;b.Dh.push(a);if(b.ee.Wi==null){var c=b.ee;c.Wi=a;if(a!=null)c.Iq[a.id]=a}a.render(b.cn)}function nf(b){for(var a=0,c=b.Dh.length;a<c;a++)b.Dh[a].refresh()}
2731
- function of(b,a){if(!b.wi){b.wi=document.createElement("p");b.wi.className="joininfobox";b.cn.appendChild(b.wi)}b.wi.innerHTML=a;b.wi.style.visibility="visible"}pui.Vb.tq.prototype.NK=function(b){if(b==null)b=this;for(var a=200,c=400,d=0,e=b.Dh.length;d<e;d++){var f=b.Dh[d].getBottom(),g=b.Dh[d].getRight();a=Math.max(a,f);c=Math.max(c,g)}a=Math.min(a,b.Kt.bottom);c=Math.min(c,b.Kt.right);b.Cd.style.minHeight=a+"px";b.Cd.style.minWidth=c+"px"};
2732
- function pf(b,a,c,d){b=[null,null];if(c.xc.id==a.ef.id){if(d.xc.id==a.Jg.id){b[0]=c;b[1]=d}}else if(d.xc.id==a.ef.id)if(c.xc.id==a.Jg.id){b[0]=d;b[1]=c}return b}
2733
- function qf(b,a,c,d){var e=a.xc.id,f=c.xc.id;if(b.ee.contains(e)&&b.ee.contains(f)){d=rf(b.ee,a.xc,c.xc);if(d!=null){b=pf(b,d,a,c);if(b[0]&&b[1])sf(d,b[0].fieldId,b[1].fieldId)===false&&tf(d,b[0],b[1]);else console.log("Failed to determine parent-child relationship.")}}else if(b.ee.contains(e))uf(b,a,c,d);else b.ee.contains(f)&&uf(b,c,a,d)}
2734
- function uf(b,a,c,d){var e=a.xc.id;if(b.ee.contains(e))if(b.ee.getNode(e)){vf(new pui.Vb.mB(b,a,c,d));a=c.xc;b.ee.Iq[a.id]=a}else console.log("Tree failed to find parent file:",e)}function wf(b,a){for(var c=0,d=b.Dh.length;c<d;c++)if(b.Dh[c].id==a)return b.Dh[c]}
2735
- function xf(b,a,c,d,e,f){var g,h,m,k,n,i;for(n=0;g=a[n];n++){for(i=0;h=c[i];i++)if(g.parentField==h.fieldId){m=h;break}for(i=0;h=d[i];i++)if(g.childField==h.fieldId){k=h;break}if(m!=null&&h!=null){qf(b,m,k,e);typeof f=="function"&&f()}else console.log("Failed to find tables matching the join fields:",g.parentField,g.childField)}}
2736
- function yf(b,a,c,d){var e,f,g=[a];for(a.OP=true;g.length>0;){a=g.shift();if(e=wf(b,a.id)){a.xy instanceof Array&&e.setLeftTop(a.xy);typeof c=="function"&&c(e,a);e=e.yj.rows;if(a.joinP!=null)(f=wf(b,a.parent.id))&&xf(b,a.joinP.conditions,f.yj.rows,e,a.joinP.type,d)}if(a.childNodes!=null)for(e=0;f=a.childNodes[e];e++)if(f.OP!==true){f.OP=true;f.parent=a;g.push(f)}}nf(b)}
2726
+ pui.wf.i["gen add button click"]=function(b){var a="add button click";a=lf(a,b,false);b=pui.wf.i.T.Kf.logic[a].steps[0].answers["screen-values"];delete b["#field"];delete b["#fieldKey"];b.editMode="false";var c=pui.wf.i.Fe("unique");for(a=0;a<c.length;a++){var d=c[a],e=d.def.name;d=d.def.type.toLowerCase();b[e+"Key"]=mf(d)?"''":"0"}c=pui.wf.i.Fe("detail");for(a=0;a<c.length;a++){d=c[a];e=d.def.name;d=d.def.type.toLowerCase();b[e]=mf(d)?"''":"0"}};
2727
+ pui.wf.i.gN=function(){var b=Ext.getCmp("centerPanel"),a=pui.ide.gr();b.setActiveTab(b.add(a));Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);a.recordFormats&&a.recordFormats.sb();pui.display=pui.wf.i.T.Kf;a.toolbar.Wr(pui.wf.i.T.Kf.formats,pui.wf.i.T.Kf["mobile formats"]);a.toolbar.designer.sb();pui.ide.Yb();Ext.getCmp("widgetsPanel").setActiveTab(0)};
2728
+ pui.wf.i.ln=function(b){function a(f){if(f.includes("_")||f.includes(" ")){f=f.replace(/_/g," ");f=f.split(" ");f=f.map(function(g){return g.charAt(0).toUpperCase()+g.substr(1)});f=f.join(" ")}else if(f.toUpperCase()!==f){f=f.replace(/([A-Z])/g," $1");f=f.charAt(0).toUpperCase()+f.substr(1)}return f}var c=b.def,d=c.keyInfo,e=false;if(d&&d.keyType!=null){e=d.keyType.toString();e=e==="1"||e==="4"}(d=c.colText)||(d=a(c.name));return{unique:e,grid:b.sequence<=4,heading:d,searchable:mf(c.type.toLowerCase()),
2729
+ detail:true,label:d,readonly:c.readonly===true,identity:c.identity===true,nullable:c.is_nullable===true}};function lf(b,a,c){if(a==="")return b;return c?b+"_"+a:b+" "+a}function mf(b){return b.includes("char")||b.includes("text")||b==="graphic"||b==="varg"};pui.Vb={};pui.Vb.tq=function(b){this.Dh=[];this.ee=this.Cd=this.cn=this.wi=null;this.Kt={right:b&&b.$M?b.$M:2E3,bottom:b&&b.UM?b.UM:1E3};this.gG=b&&b.gG?b.gG:" &#9911;";this.Fp=this.bN=null;this.yF="rgb(135,135,135)";this.nX="rgb(0,0,255)";this.Nr=null};pui.Vb.tq.prototype=Object.create(pui.cd.prototype);
2730
+ pui.Vb.tq.prototype.init=function(b,a,c){this.cn=b;this.Cd=document.createElementNS(pui.Qi,"svg");this.Cd.setAttribute("class","join");b.appendChild(this.Cd);if(a==null)a=pui.Vb.kB;this.ee=new a(this);if(c==null)c=pui.Vb.Iw;this.Fp=new c(this);this.Fp.init()};function nf(b,a){a.nb=b;b.Dh.push(a);if(b.ee.Wi==null){var c=b.ee;c.Wi=a;if(a!=null)c.Iq[a.id]=a}a.render(b.cn)}function of(b){for(var a=0,c=b.Dh.length;a<c;a++)b.Dh[a].refresh()}
2731
+ function pf(b,a){if(!b.wi){b.wi=document.createElement("p");b.wi.className="joininfobox";b.cn.appendChild(b.wi)}b.wi.innerHTML=a;b.wi.style.visibility="visible"}pui.Vb.tq.prototype.NK=function(b){if(b==null)b=this;for(var a=200,c=400,d=0,e=b.Dh.length;d<e;d++){var f=b.Dh[d].getBottom(),g=b.Dh[d].getRight();a=Math.max(a,f);c=Math.max(c,g)}a=Math.min(a,b.Kt.bottom);c=Math.min(c,b.Kt.right);b.Cd.style.minHeight=a+"px";b.Cd.style.minWidth=c+"px"};
2732
+ function qf(b,a,c,d){b=[null,null];if(c.xc.id==a.ef.id){if(d.xc.id==a.Jg.id){b[0]=c;b[1]=d}}else if(d.xc.id==a.ef.id)if(c.xc.id==a.Jg.id){b[0]=d;b[1]=c}return b}
2733
+ function rf(b,a,c,d){var e=a.xc.id,f=c.xc.id;if(b.ee.contains(e)&&b.ee.contains(f)){d=sf(b.ee,a.xc,c.xc);if(d!=null){b=qf(b,d,a,c);if(b[0]&&b[1])tf(d,b[0].fieldId,b[1].fieldId)===false&&uf(d,b[0],b[1]);else console.log("Failed to determine parent-child relationship.")}}else if(b.ee.contains(e))vf(b,a,c,d);else b.ee.contains(f)&&vf(b,c,a,d)}
2734
+ function vf(b,a,c,d){var e=a.xc.id;if(b.ee.contains(e))if(b.ee.getNode(e)){wf(new pui.Vb.mB(b,a,c,d));a=c.xc;b.ee.Iq[a.id]=a}else console.log("Tree failed to find parent file:",e)}function xf(b,a){for(var c=0,d=b.Dh.length;c<d;c++)if(b.Dh[c].id==a)return b.Dh[c]}
2735
+ function yf(b,a,c,d,e,f){var g,h,m,k,n,i;for(n=0;g=a[n];n++){for(i=0;h=c[i];i++)if(g.parentField==h.fieldId){m=h;break}for(i=0;h=d[i];i++)if(g.childField==h.fieldId){k=h;break}if(m!=null&&h!=null){rf(b,m,k,e);typeof f=="function"&&f()}else console.log("Failed to find tables matching the join fields:",g.parentField,g.childField)}}
2736
+ function zf(b,a,c,d){var e,f,g=[a];for(a.OP=true;g.length>0;){a=g.shift();if(e=xf(b,a.id)){a.xy instanceof Array&&e.setLeftTop(a.xy);typeof c=="function"&&c(e,a);e=e.yj.rows;if(a.joinP!=null)(f=xf(b,a.parent.id))&&yf(b,a.joinP.conditions,f.yj.rows,e,a.joinP.type,d)}if(a.childNodes!=null)for(e=0;f=a.childNodes[e];e++)if(f.OP!==true){f.OP=true;f.parent=a;g.push(f)}}of(b)}
2737
2737
  pui.Vb.tq.prototype.destroy=function(){for(this.ee&&this.ee.reset();this.Dh.length>0;){this.Dh[0]&&this.Dh[0].destroy();this.Dh.shift()}if(this.cn){this.wi&&this.cn.removeChild(this.wi);this.Cd&&this.cn.removeChild(this.Cd)}this.Fp&&this.Fp.destroy();nc(this)};
2738
- pui.Vb.Ws=function(b){this.LS=b.width;this.hS=b.left;this.GS=b.top;this.JR=b.KA;this.id=b.id;if(this.id==null)throw"ID is required";this.fields=JSON.parse(JSON.stringify(b.fields));this.displayName=b.displayName?b.displayName:b.KA?b.KA:b.id;this.Zg=null;this.Xe=[];this.yj=this.table=this.Ms=this.columnHeadings=this.caption=this.Pb=this.nb=null};pui.Vb.Ws.prototype=Object.create(pui.cd.prototype);function zf(b,a){if(b.Zg!=null&&b.Zg.ef===a)return b.Zg;return null}Ba=pui.Vb.Ws.prototype;
2738
+ pui.Vb.Ws=function(b){this.LS=b.width;this.hS=b.left;this.GS=b.top;this.JR=b.KA;this.id=b.id;if(this.id==null)throw"ID is required";this.fields=JSON.parse(JSON.stringify(b.fields));this.displayName=b.displayName?b.displayName:b.KA?b.KA:b.id;this.Zg=null;this.Xe=[];this.yj=this.table=this.Ms=this.columnHeadings=this.caption=this.Pb=this.nb=null};pui.Vb.Ws.prototype=Object.create(pui.cd.prototype);function Af(b,a){if(b.Zg!=null&&b.Zg.ef===a)return b.Zg;return null}Ba=pui.Vb.Ws.prototype;
2739
2739
  Ba.destroy=function(){this.Pb&&this.Pb.parentNode&&this.Pb.parentNode.removeChild(this.Pb);nc(this)};
2740
2740
  Ba.render=function(b){this.Pb=document.createElement("div");this.Pb.className="joinable";this.Pb.style.width=this.LS+"px";this.Pb.style.left=this.hS+"px";this.Pb.style.top=this.GS+"px";this.caption=document.createElement("div");this.caption.className="caption";this.caption.innerHTML=this.JR;this.Pb.appendChild(this.caption);this.columnHeadings=document.createElement("div");this.columnHeadings.className="col-headings";this.columnHeadings.innerHTML="<div>Field</div>";this.Pb.appendChild(this.columnHeadings);
2741
2741
  this.Ms=document.createElement("div");this.Ms.className="wrap";this.Ms.addEventListener("scroll",this);this.table=document.createElement("table");this.yj=document.createElement("tbody");this.table.appendChild(this.yj);for(var a=0;a<this.fields.length;a++){var c=this.yj.insertRow(this.yj.rows.length);c.fieldId=this.fields[a].field;c.xc=this;var d=this.fields[a].key,e=c.insertCell(0),f=this.fields[a].text;f||(f=this.fields[a].field);e.innerHTML=f+(d!=null?this.nb.gG:"");c.draggable=true;c.addEventListener("dragstart",
2742
2742
  this);c.addEventListener("dragend",this);c.addEventListener("drop",this);c.addEventListener("dragover",this);c.addEventListener("dragleave",this)}this.Ms.appendChild(this.table);this.Pb.appendChild(this.Ms);b.appendChild(this.Pb);new pui.ed({wc:this.caption,move:this.Pb,Jp:this.JB.bind(this)},this.nb.Kt)};
2743
- Ba.refresh=function(){for(var b=0,a=this.yj.rows.length;b<a;b++){pui.Ra(this.yj.rows[b],"joinParent");pui.Ra(this.yj.rows[b],"joinChild")}b=0;for(a=this.Xe.length;b<a;b++)Af(this.Xe[b]);this.Zg!=null&&Af(this.Zg)};Ba.JB=function(b){for(var a=0,c=this.Xe.length;a<c;a++)vf(this.Xe[a]);this.Zg!=null&&vf(this.Zg);if(b!==true){b=this.nb;clearTimeout(b.bN);b.bN=setTimeout(b.NK,10,b)}};Ba.setLeftTop=function(b){this.Pb.style.left=b[0]+"px";this.Pb.style.top=b[1]+"px";this.JB()};
2743
+ Ba.refresh=function(){for(var b=0,a=this.yj.rows.length;b<a;b++){pui.Ra(this.yj.rows[b],"joinParent");pui.Ra(this.yj.rows[b],"joinChild")}b=0;for(a=this.Xe.length;b<a;b++)Bf(this.Xe[b]);this.Zg!=null&&Bf(this.Zg)};Ba.JB=function(b){for(var a=0,c=this.Xe.length;a<c;a++)wf(this.Xe[a]);this.Zg!=null&&wf(this.Zg);if(b!==true){b=this.nb;clearTimeout(b.bN);b.bN=setTimeout(b.NK,10,b)}};Ba.setLeftTop=function(b){this.Pb.style.left=b[0]+"px";this.Pb.style.top=b[1]+"px";this.JB()};
2744
2744
  Ba.getBottom=function(){return this.Pb.offsetHeight+this.Pb.offsetTop};Ba.getRight=function(){return this.Pb.offsetWidth+this.Pb.offsetLeft};
2745
- pui.Vb.Ws.prototype.handleEvent=function(b){switch(b.type){case "scroll":this.JB(true);break;case "drop":U.va(b);var a=pui.tp(b);if(a&&a.xc){pui.Ra(a,"drop_valid");try{b.dataTransfer.getData("text/plain")}catch(c){}b=a.xc.nb;var d=b.Nr;if(d){var e=d.xc.id;e==null||e==a.xc.id||qf(b,a,d)}}break;case "dragover":a:{d=pui.tp(b);if(!(!d||!d.xc||d.xc.nb.Nr==null)){a=d.xc.nb;e=a.Nr.xc;if(e!=null){var f=d.xc;if(f!=e){var g=a.ee.contains(e.id),h=a.ee.contains(f.id);if(!g&&!h){b=(b=a.ee.getRoot())&&b.displayName?
2746
- b.displayName:"";of(a,pui.getLanguageText("runtimeMsg","join x y to main file",[e.displayName,f.displayName,b]))}else{if(g&&h){e=rf(a.ee,f,e);if(e==null){of(a,pui.getLanguageText("runtimeMsg","one path main to child"));break a}else{f=pf(a,e,d,a.Nr);if(f[0]&&f[1])if(sf(e,f[0].fieldId,f[1].fieldId)!==false)break a}}if(a.wi)a.wi.style.visibility="hidden";U.va(b);pui.za(d,"drop_valid");b.dataTransfer.dropEffect="link"}}}}}break;case "dragleave":U.va(b);(b=pui.tp(b))&&pui.Ra(b,"drop_valid");break;case "dragstart":if(b.stopPropagation)b.stopPropagation();
2745
+ pui.Vb.Ws.prototype.handleEvent=function(b){switch(b.type){case "scroll":this.JB(true);break;case "drop":U.va(b);var a=pui.tp(b);if(a&&a.xc){pui.Ra(a,"drop_valid");try{b.dataTransfer.getData("text/plain")}catch(c){}b=a.xc.nb;var d=b.Nr;if(d){var e=d.xc.id;e==null||e==a.xc.id||rf(b,a,d)}}break;case "dragover":a:{d=pui.tp(b);if(!(!d||!d.xc||d.xc.nb.Nr==null)){a=d.xc.nb;e=a.Nr.xc;if(e!=null){var f=d.xc;if(f!=e){var g=a.ee.contains(e.id),h=a.ee.contains(f.id);if(!g&&!h){b=(b=a.ee.getRoot())&&b.displayName?
2746
+ b.displayName:"";pf(a,pui.getLanguageText("runtimeMsg","join x y to main file",[e.displayName,f.displayName,b]))}else{if(g&&h){e=sf(a.ee,f,e);if(e==null){pf(a,pui.getLanguageText("runtimeMsg","one path main to child"));break a}else{f=qf(a,e,d,a.Nr);if(f[0]&&f[1])if(tf(e,f[0].fieldId,f[1].fieldId)!==false)break a}}if(a.wi)a.wi.style.visibility="hidden";U.va(b);pui.za(d,"drop_valid");b.dataTransfer.dropEffect="link"}}}}}break;case "dragleave":U.va(b);(b=pui.tp(b))&&pui.Ra(b,"drop_valid");break;case "dragstart":if(b.stopPropagation)b.stopPropagation();
2747
2747
  else{b.cancelBubble=true;b.returnValue=false}if(a=pui.tp(b)){a.xc.nb.Nr=a;pui.za(a,"drag_origin");try{b.dataTransfer.setData("text/plain","source:"+a.xc.id)}catch(m){}}break;case "dragend":if(b=pui.tp(b)){pui.Ra(b,"drag_origin");b=b.xc.nb;b.Nr=null;if(b.wi)b.wi.style.visibility="hidden"}break}};pui.Vb.Iw=function(b){this.nb=b;this.Ug=null;this.wI=this.cS.bind(this);this.Gm=[]};pui.Vb.Iw.prototype=Object.create(pui.cd.prototype);Ba=pui.Vb.Iw.prototype;
2748
2748
  Ba.destroy=function(){this.H&&this.H.parentNode&&this.H.parentNode.removeChild(this.H);nc(this)};
2749
2749
  Ba.init=function(){this.H=document.createElement("div");this.H.id="joinEditor";this.H.ZW=true;this.H.style.zIndex=U.VP;this.H.style.visibility="hidden";this.H.style.display="none";this.MI=document.createElement("span");var b=document.createElement("div"),a=document.createElement("button"),c=document.createElement("div"),d=document.createElement("div");d.className="btnwrap";var e=document.createElement("input"),f=document.createElement("input"),g=document.createElement("input");b.className="dialog-header";
2750
2750
  b.appendChild(this.MI);c.className="dialog-body";a.className="close-btn";a.addEventListener("click",this);b.appendChild(a);e.type="button";e.value=pui.getLanguageText("runtimeText","modify");e.addEventListener("click",this);d.appendChild(e);f.type="button";f.value=pui.getLanguageText("runtimeText","remove");f.addEventListener("click",this);d.appendChild(f);g.type="button";g.value=pui.getLanguageText("runtimeText","cancel");g.addEventListener("click",this);d.appendChild(g);a=["INNER","LEFT","RIGHT"];
2751
2751
  for(e=0;e<3;e++){f={el:document.createElement("input"),label:document.createElement("label")};f.el.type="radio";f.el.name="rdojointype";f.el.id="rdojointype"+(e+1);f.el.value=a[e];f.el.checked=false;f.label.setAttribute("for",f.el.id);if(e==0){f.el.checked=true;f.label.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","inner join label")))}g=document.createElement("p");g.appendChild(f.el);g.appendChild(f.label);c.appendChild(g);this.Gm.push(f)}c.appendChild(d);this.H.appendChild(b);
2752
- this.H.appendChild(c);this.nb.cn.appendChild(this.H);new pui.ed({wc:b,move:this.H,opacity:85})};Ba._remove=function(){for(var b=this.Ug.join,a=this.Ug,c=0;c<b.lines.length;)if(b.lines[c]==a){a.destroy();b.lines.splice(c,1)}else c++;b.lines.length<1&&this.nb.ee.remove(b.Jg.id);Bf(this);nf(this.nb)};
2752
+ this.H.appendChild(c);this.nb.cn.appendChild(this.H);new pui.ed({wc:b,move:this.H,opacity:85})};Ba._remove=function(){for(var b=this.Ug.join,a=this.Ug,c=0;c<b.lines.length;)if(b.lines[c]==a){a.destroy();b.lines.splice(c,1)}else c++;b.lines.length<1&&this.nb.ee.remove(b.Jg.id);Cf(this);of(this.nb)};
2753
2753
  Ba.show=function(b){Gb(b);this.Ug=b.target.Ug;var a=this.Ug.join.ef.displayName,c=this.Ug.join.Jg.displayName;this.MI.innerHTML=pui.getLanguageText("runtimeText","join props x to y",[a,this.Ug.$F,c,this.Ug.kD]);this.Gm[1].label.innerHTML=pui.getLanguageText("runtimeText","join label x y",[a,c]);this.Gm[2].label.innerHTML=pui.getLanguageText("runtimeText","join label x y",[c,a]);a=0;for(c=this.Gm.length;a<c;a++){var d=this.Gm[a].el;d.checked=d.value==this.Ug.join.type}c=pui.Tc(this.nb.cn);a=b.clientX-
2754
2754
  c[0]-98.75+(document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft);b=b.clientY-c[1]-111+(document.documentElement?document.documentElement.scrollTop:document.body.scrollTop);if(a<10)a=10;if(b<10)b=10;this.H.style.left=a+"px";this.H.style.top=b+"px";this.H.style.visibility="visible";this.H.style.display="";document.body.addEventListener("click",this.wI)};
2755
- function Bf(b){b.H.style.visibility="hidden";b.H.style.display="none";b.Ug=null;document.body.removeEventListener("click",b.wI)}Ba.cS=function(b){for(b=b.target;b!=null;){if(b.ZW)return;b=b.parentNode}Bf(this)};
2756
- pui.Vb.Iw.prototype.handleEvent=function(b){var a=b.target;if(b.type=="click")switch(a.tagName){case "BUTTON":Bf(this);break;case "INPUT":if(a.value==pui.getLanguageText("runtimeText","cancel"))Bf(this);else if(a.value==pui.getLanguageText("runtimeText","modify")){b="INNER";a=0;for(var c=this.Gm.length;a<c;a++)if(this.Gm[a].el.checked){b=this.Gm[a].el.value;break}a=this.Ug.join;a.type=b;for(b=0;b<a.lines.length;b++)a.lines[b].S();Bf(this)}else a.value==pui.getLanguageText("runtimeText","remove")&&
2757
- this._remove();break;default:this.show(b)}};pui.Vb.mB=function(b,a,c,d){this.type=d==null?"INNER":d;this.nb=b;this.ef=a.xc;this.Jg=c.xc;this.lines=[];this.ef.Xe.push(this);this.Jg.Zg=this;tf(this,a,c)};pui.Vb.mB.prototype=Object.create(pui.cd.prototype);function tf(b,a,c){if(a.xc==b.ef&&c.xc==b.Jg){a=new pui.Vb.Bw(a,c,b);Cf(b,a);b.lines.push(a);Df(b,b.lines.length-1)}}function Af(b){for(var a=0;a<b.lines.length;a++)Cf(b,b.lines[a])}
2758
- function Cf(b,a){pui.za(a.zN,"joinParent");pui.za(a.YJ,"joinChild")}function Df(b,a){var c=b.ef.Pb.offsetLeft,d=b.Jg.Pb.offsetLeft;if(c<=d)c+=b.ef.Pb.offsetWidth;else d+=b.Jg.Pb.offsetWidth;var e=b.lines[a],f=Ef(b,b.lines[a].zN,b.ef);d=d;var g=Ef(b,b.lines[a].YJ,b.Jg);e.x1=c;e.y1=f;e.x2=d;e.y2=g;e.S()}
2759
- function Ef(b,a,c){b=a.offsetTop+(c.table.offsetTop+c.Pb.offsetTop)-c.Ms.scrollTop+Math.floor(a.offsetHeight/2);a=c.Pb.offsetTop+Math.floor(c.caption.offsetHeight/2);if(b<a)b=a;else if(b>c.Pb.offsetTop+c.Pb.offsetHeight)b=c.Pb.offsetTop+c.Pb.offsetHeight;return b}function vf(b){for(var a=0;a<b.lines.length;a++)Df(b,a)}
2760
- pui.Vb.mB.prototype.destroy=function(){if(this.lines!=null)for(var b=0;b<this.lines.length;b++)this.lines[b].destroy();if(this.ef&&this.ef.Xe&&this.ef.Xe.length>0){b=this.ef.Xe.indexOf(this);b>=0&&this.ef.Xe.splice(b,1)}if(this.Jg)this.Jg.Zg=null;nc(this)};function sf(b,a,c){for(var d=0;d<b.lines.length;d++){var e=b.lines[d];if(e.$F==a&&e.kD==c)return true}return false}
2761
- pui.Vb.Bw=function(b,a,c){this.zN=b;this.YJ=a;this.$F=b.fieldId;this.kD=a.fieldId;this.join=c;this.x1=this.y1=this.x2=this.y2=0;this.kl=document.createElementNS(pui.Qi,"polyline");this.kl.Ug=this;this.kl.setAttribute("stroke",this.join.nb.yF);this.kl.setAttribute("stroke-width","2");this.kl.setAttribute("fill","none");this.kl.addEventListener("click",this.join.nb.Fp);this.kl.setAttribute("class","joinlink");this.join.nb.Cd.appendChild(this.kl);this.FA=Ff(this);this.join.nb.Cd.appendChild(this.FA);
2762
- this.iy=Ff(this);this.join.nb.Cd.appendChild(this.iy);this.ck=document.createElementNS(pui.Qi,"polygon");this.ck.Ug=this;this.ck.setAttribute("fill",this.join.nb.nX);this.ck.setAttribute("stroke",this.join.nb.yF);this.ck.setAttribute("stroke-width",1);this.ck.addEventListener("click",this.join.nb.Fp);this.ck.setAttribute("class","joinlink");this.join.nb.Cd.appendChild(this.ck)};pui.Vb.Bw.prototype=Object.create(pui.cd.prototype);
2763
- function Ff(b){var a=document.createElementNS(pui.Qi,"circle");a.Ug=b;a.setAttribute("r",5);a.setAttribute("fill",b.join.nb.yF);a.addEventListener("click",b.join.nb.Fp);a.setAttribute("class","joinlink");return a}
2755
+ function Cf(b){b.H.style.visibility="hidden";b.H.style.display="none";b.Ug=null;document.body.removeEventListener("click",b.wI)}Ba.cS=function(b){for(b=b.target;b!=null;){if(b.ZW)return;b=b.parentNode}Cf(this)};
2756
+ pui.Vb.Iw.prototype.handleEvent=function(b){var a=b.target;if(b.type=="click")switch(a.tagName){case "BUTTON":Cf(this);break;case "INPUT":if(a.value==pui.getLanguageText("runtimeText","cancel"))Cf(this);else if(a.value==pui.getLanguageText("runtimeText","modify")){b="INNER";a=0;for(var c=this.Gm.length;a<c;a++)if(this.Gm[a].el.checked){b=this.Gm[a].el.value;break}a=this.Ug.join;a.type=b;for(b=0;b<a.lines.length;b++)a.lines[b].S();Cf(this)}else a.value==pui.getLanguageText("runtimeText","remove")&&
2757
+ this._remove();break;default:this.show(b)}};pui.Vb.mB=function(b,a,c,d){this.type=d==null?"INNER":d;this.nb=b;this.ef=a.xc;this.Jg=c.xc;this.lines=[];this.ef.Xe.push(this);this.Jg.Zg=this;uf(this,a,c)};pui.Vb.mB.prototype=Object.create(pui.cd.prototype);function uf(b,a,c){if(a.xc==b.ef&&c.xc==b.Jg){a=new pui.Vb.Bw(a,c,b);Df(b,a);b.lines.push(a);Ef(b,b.lines.length-1)}}function Bf(b){for(var a=0;a<b.lines.length;a++)Df(b,b.lines[a])}
2758
+ function Df(b,a){pui.za(a.zN,"joinParent");pui.za(a.YJ,"joinChild")}function Ef(b,a){var c=b.ef.Pb.offsetLeft,d=b.Jg.Pb.offsetLeft;if(c<=d)c+=b.ef.Pb.offsetWidth;else d+=b.Jg.Pb.offsetWidth;var e=b.lines[a],f=Ff(b,b.lines[a].zN,b.ef);d=d;var g=Ff(b,b.lines[a].YJ,b.Jg);e.x1=c;e.y1=f;e.x2=d;e.y2=g;e.S()}
2759
+ function Ff(b,a,c){b=a.offsetTop+(c.table.offsetTop+c.Pb.offsetTop)-c.Ms.scrollTop+Math.floor(a.offsetHeight/2);a=c.Pb.offsetTop+Math.floor(c.caption.offsetHeight/2);if(b<a)b=a;else if(b>c.Pb.offsetTop+c.Pb.offsetHeight)b=c.Pb.offsetTop+c.Pb.offsetHeight;return b}function wf(b){for(var a=0;a<b.lines.length;a++)Ef(b,a)}
2760
+ pui.Vb.mB.prototype.destroy=function(){if(this.lines!=null)for(var b=0;b<this.lines.length;b++)this.lines[b].destroy();if(this.ef&&this.ef.Xe&&this.ef.Xe.length>0){b=this.ef.Xe.indexOf(this);b>=0&&this.ef.Xe.splice(b,1)}if(this.Jg)this.Jg.Zg=null;nc(this)};function tf(b,a,c){for(var d=0;d<b.lines.length;d++){var e=b.lines[d];if(e.$F==a&&e.kD==c)return true}return false}
2761
+ pui.Vb.Bw=function(b,a,c){this.zN=b;this.YJ=a;this.$F=b.fieldId;this.kD=a.fieldId;this.join=c;this.x1=this.y1=this.x2=this.y2=0;this.kl=document.createElementNS(pui.Qi,"polyline");this.kl.Ug=this;this.kl.setAttribute("stroke",this.join.nb.yF);this.kl.setAttribute("stroke-width","2");this.kl.setAttribute("fill","none");this.kl.addEventListener("click",this.join.nb.Fp);this.kl.setAttribute("class","joinlink");this.join.nb.Cd.appendChild(this.kl);this.FA=Gf(this);this.join.nb.Cd.appendChild(this.FA);
2762
+ this.iy=Gf(this);this.join.nb.Cd.appendChild(this.iy);this.ck=document.createElementNS(pui.Qi,"polygon");this.ck.Ug=this;this.ck.setAttribute("fill",this.join.nb.nX);this.ck.setAttribute("stroke",this.join.nb.yF);this.ck.setAttribute("stroke-width",1);this.ck.addEventListener("click",this.join.nb.Fp);this.ck.setAttribute("class","joinlink");this.join.nb.Cd.appendChild(this.ck)};pui.Vb.Bw.prototype=Object.create(pui.cd.prototype);
2763
+ function Gf(b){var a=document.createElementNS(pui.Qi,"circle");a.Ug=b;a.setAttribute("r",5);a.setAttribute("fill",b.join.nb.yF);a.addEventListener("click",b.join.nb.Fp);a.setAttribute("class","joinlink");return a}
2764
2764
  pui.Vb.Bw.prototype.S=function(){this.FA.setAttribute("cx",this.x1);this.FA.setAttribute("cy",this.y1);this.iy.setAttribute("cx",this.x2);this.iy.setAttribute("cy",this.y2);var b=this.x1+","+this.y1+" ";if(this.x1<=this.x2){b+=this.x1+15+","+this.y1+" ";b+=this.x2-15+","+this.y2+" "}else{b+=this.x1-15+","+this.y1+" ";b+=this.x2+15+","+this.y2+" "}b+=this.x2+","+this.y2;this.kl.setAttribute("points",b);var a=Math.round((this.x1+this.x2)/2),c=Math.round((this.y1+this.y2)/2);b=this.join.type=="LEFT"?
2765
2765
  a-6+","+(c-6)+" "+(a+18)+","+c+" "+(a-6)+","+(c+6):this.join.type=="RIGHT"?a-18+","+c+" "+(a+6)+","+(c-6)+" "+(a+6)+","+(c+6):a-6+","+(c-6)+" "+(a+6)+","+(c-6)+" "+(a+6)+","+(c+6)+" "+(a-6)+","+(c+6);this.ck.setAttribute("points",b);b=Math.abs(this.y1-this.y2);b=Math.asin(b/Math.sqrt(Math.pow(this.x1-this.x2,2)+Math.pow(b,2)))*180/Math.PI;var d=0;if(this.x1<this.x2&&this.y1<=this.y2)d=b;else if(this.x1>=this.x2&&this.y1<this.y2)d=180-b;else if(this.x1>this.x2&&this.y1>=this.y2)d=180+b;else if(this.x1<=
2766
2766
  this.x2&&this.y1>this.y2)d=360-b;this.ck.setAttribute("transform","rotate("+Math.round(d)+" "+a+" "+c+")")};pui.Vb.Bw.prototype.destroy=function(){this.join.nb.Cd.removeChild(this.FA);this.join.nb.Cd.removeChild(this.ck);this.join.nb.Cd.removeChild(this.iy);this.join.nb.Cd.removeChild(this.kl);nc(this)};pui.Vb.kB=function(){this.Iq={};this.Wi=null};pui.Vb.kB.prototype=Object.create(pui.cd.prototype);Ba=pui.Vb.kB.prototype;Ba.getRoot=va("Wi");Ba.contains=function(b){return this.Iq[b]!=null};
2767
- Ba.reset=function(){var b=[];Gf(this,this.Wi,b);this.Wi=null;this.Iq={};return b};Ba.remove=function(b){var a=[];if(b!=this.Wi.id&&this.contains(b)){var c=this.getNode(b);c?Gf(this,c,a):console.log("Tree failed to find node Id to remove:",b)}return a};function Gf(b,a,c){if(a&&a.Xe){for(;a.Xe.length>0;)Gf(b,a.Xe[0].Jg,c);var d=a.id;if(a.Zg!=null){a.Zg.destroy();a.Zg=null;c.push(d);delete b.Iq[d]}}}Ba.getNode=function(b){return this.Iq[b]};
2768
- function rf(b,a,c){if(a&&c){b=zf(a,c);if(b!=null)return b;a=zf(c,a);if(a!=null)return a}return null}
2769
- function Hf(b,a,c,d){var e=c?c:d;e.xy=[a.Pb.offsetLeft,a.Pb.offsetTop];if(a.Zg==null){e.id=b.Wi.id;if(c&&b.Wi.Xe.length>0)c.childNodes=[]}else{var f=a.Zg;e.id=a.id;if(c)c.joinP={type:f.type};else{d.joinPType=f.type;d.parent=f.ef.id}if(f.lines.length>0){var g=[];for(e=0;e<f.lines.length;e++)g[e]={childField:f.lines[e].kD,parentField:f.lines[e].$F};if(c)c.joinP.conditions=g;else d.conditions=g}if(c&&a.Xe.length>0)c.childNodes=[];for(e=1;e<f.lines.length;e++);}for(e=0;e<a.Xe.length;e++)if(c){c.childNodes[e]=
2770
- {};Hf(b,a.Xe[e].Jg,c.childNodes[e])}else{d={};b.UI.push(d);Hf(b,a.Xe[e].Jg,null,d)}};pui.wf.Mc.columns={async:true,GV:function(b,a,c){var d=jc("PUI0009101.PGM",null,true),e=new pui.Ajax(d);e.async=true;e.method="post";e.postData="file="+encodeURIComponent(a);e.postData+="&library="+encodeURIComponent("");if(pui.isCloud)e.postData+="&workspace_id="+pui.cloud.ws.id;e.postData+="&context="+M;e.postData+="&connection="+encodeURIComponent(b);e.suppressAlert=true;e.onready=function(){var f,g;if(e.kc()!=200)g="HTTP "+e.kc()+" - "+e.Ar()+".";else{try{f=eval("("+e.Ib()+")")}catch(h){g="The server response is missing or invalid."}if(g==
2767
+ Ba.reset=function(){var b=[];Hf(this,this.Wi,b);this.Wi=null;this.Iq={};return b};Ba.remove=function(b){var a=[];if(b!=this.Wi.id&&this.contains(b)){var c=this.getNode(b);c?Hf(this,c,a):console.log("Tree failed to find node Id to remove:",b)}return a};function Hf(b,a,c){if(a&&a.Xe){for(;a.Xe.length>0;)Hf(b,a.Xe[0].Jg,c);var d=a.id;if(a.Zg!=null){a.Zg.destroy();a.Zg=null;c.push(d);delete b.Iq[d]}}}Ba.getNode=function(b){return this.Iq[b]};
2768
+ function sf(b,a,c){if(a&&c){b=Af(a,c);if(b!=null)return b;a=Af(c,a);if(a!=null)return a}return null}
2769
+ function If(b,a,c,d){var e=c?c:d;e.xy=[a.Pb.offsetLeft,a.Pb.offsetTop];if(a.Zg==null){e.id=b.Wi.id;if(c&&b.Wi.Xe.length>0)c.childNodes=[]}else{var f=a.Zg;e.id=a.id;if(c)c.joinP={type:f.type};else{d.joinPType=f.type;d.parent=f.ef.id}if(f.lines.length>0){var g=[];for(e=0;e<f.lines.length;e++)g[e]={childField:f.lines[e].kD,parentField:f.lines[e].$F};if(c)c.joinP.conditions=g;else d.conditions=g}if(c&&a.Xe.length>0)c.childNodes=[];for(e=1;e<f.lines.length;e++);}for(e=0;e<a.Xe.length;e++)if(c){c.childNodes[e]=
2770
+ {};If(b,a.Xe[e].Jg,c.childNodes[e])}else{d={};b.UI.push(d);If(b,a.Xe[e].Jg,null,d)}};pui.wf.Mc.columns={async:true,GV:function(b,a,c){var d=jc("PUI0009101.PGM",null,true),e=new pui.Ajax(d);e.async=true;e.method="post";e.postData="file="+encodeURIComponent(a);e.postData+="&library="+encodeURIComponent("");if(pui.isCloud)e.postData+="&workspace_id="+pui.cloud.ws.id;e.postData+="&context="+M;e.postData+="&connection="+encodeURIComponent(b);e.suppressAlert=true;e.onready=function(){var f,g;if(e.kc()!=200)g="HTTP "+e.kc()+" - "+e.Ar()+".";else{try{f=eval("("+e.Ib()+")")}catch(h){g="The server response is missing or invalid."}if(g==
2771
2771
  null&&f.success!=true)g=f.errorText}if(g!=null){console.log("Unable to retrieve column listing: "+g);c([])}else{g=[];var m=pui.pi(b);m=m?m.driver:pui.dbDriver;for(var k=0;k<f.fields.length;k++){var n=f.fields[k],i=n.field;if(m==="IBMi")i=i.toLowerCase();var o=i;if(n.text&&n.text!==i)o+=" - "+n.text;g.push({text:o,value:i,kU:n.text})}c(g)}};e.send()},lL:function(b,a,c){function d(h,m,k){k(h,m,function(n){n.length>0&&e.push({group:m+" table",options:n,table:m});f++;f>=a.length&&c(e)})}for(var e=[],
2772
2772
  f=0,g=0;g<a.length;g++)d(b,a[g],this.GV)},kb:function(b){function a(e){for(var f=e.length-1;f>=0;f-=1){var g=e[f],h=g;if(typeof g==="string")h+=" DESC";if(typeof g==="object"){h=Object.assign({},g);if(typeof h.text==="string")h.text+=" DESC";if(typeof h.value==="string")h.value+=" DESC"}e.splice(f+1,0,h)}}var c=b.answers.connection||"",d=b.answers[b.question.basedOn].split(",");this.lL(c,d,function(e){if(e.length===1){e=e[0].options;b.question.forOrderBy&&a(e)}else for(var f=0;f<e.length;f++){for(var g=
2773
2773
  e[f].options,h=0;h<g.length;h++){var m=g[h];m.value=e[f].table.replace("/",".")+"."+m.value}b.question.forOrderBy&&a(g)}b.callback(e)})}};pui.wf.Mc["criteria-snippets"]={async:true,kb:function(b){var a=b.answers.connection||"",c=b.answers[b.question.basedOn].split(",");pui.wf.Mc.columns.lL(a,c,function(d){for(var e=0;e<d.length;e++)for(var f=d[e].options,g=0;g<f.length;g++){var h=f[g];if(typeof h==="object")f[g]=h.value+=" = ?";else f[g]+=" = ?";if(d.length>1)f[g]=d[e].table.replace("/",".")+"."+f[g]}if(d.length===1)d=d[0].options;b.callback(d)})}};pui.wf.Mc.screens={async:false,kb:function(){if(!te)return[];return te.kb("screens")}};pui.wf.Mc.routines={async:true,kb:function(b){if(b.answers["module-name"]&&b.answers.plugin=="Custom:call-external-routine"){var a={module:b.answers["module-name"]};if(pui.isCloud)a.workspace_id=pui.cloud.ws.id;if(pui.pjsWorkspace&&pui.pjsWorkspace.name)a.workspace_id=pui.pjsWorkspace.name;xc({url:"/profoundui/PUI0001143.pgm",params:a,method:"post",handler:function(g){var h=[];if(g.success)h=g.routines;g=[];if(h)for(var m=0;m<h.length;m++){var k={value:h[m].name,text:h[m].name,addtlParms:{textBold:true}};
@@ -2888,11 +2888,11 @@ i.c.appendChild(i.mb):ac(Na).appendChild(i.mb);i.wa=document.createElement("div"
2888
2888
  o.length;t++){var u=o[t];if(u.$W)s.push(u);else if(u.id.substr(0,6)=="window"){for(l=0;l<eb.length;l++)if(eb[l].yd&&eb[l].oo==u){u.setAttribute("screenId",eb[l].n);break}if(u.getAttribute("screenId")==null){q++;eb.push({name:"[Unnamed Window "+q+"]",yd:true,fields:[],oo:u,n:eb.length});u.setAttribute("screenId",eb.length-1)}}else if(u.id!=null&&u.id!=""&&u.id!="hiDiv")if(u.getAttribute("empty")==null){l=i.addItem(u);i.Yo(l)}else if(u.parentNode.getAttribute("screenId")!=null)u.setAttribute("screenId",
2889
2889
  u.parentNode.getAttribute("screenId"));else{if(u.getAttribute("parentWindow")!=null)for(l=0;l<eb.length;l++)if(eb[l].name==u.getAttribute("parentWindow")){u.setAttribute("screenId",eb[l].n);break}}else if(u.style.cursor==null||u.style.cursor.indexOf("resize")<0)u.style.cursor="default"}for(t=0;t<s.length;t++)s[t].parentNode.removeChild(s[t]);o=i.c.getElementsByTagName("input");for(t=0;t<o.length;t++){u=o[t];if(u.id!=null&&u.id!=""&&u.type!="hidden"){l=i.addItem(u);i.Yo(l);u.readOnly=true}}o=i.c.getElementsByTagName("img");
2890
2890
  for(t=0;t<o.length;t++){u=o[t];if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}o=i.c.getElementsByTagName("select");for(t=0;t<o.length;t++){u=o[t];if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}o=i.c.getElementsByTagName("textarea");for(t=0;t<o.length;t++){u=o[t];if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}o=i.c.getElementsByTagName("button");for(t=0;t<o.length;t++){u=o[t];if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}o=i.c.getElementsByTagName("fieldset");for(t=0;t<o.length;t++){u=o[t];
2891
- if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}if(Rd!=null&&Rd!=0&&Qd!=null)for(t=0;t<Rd;t++){u=Qd[t].calimg;if(u!=null&&u.parentNode!=null){u.parentNode.getAttribute("screenId")!=null&&u.setAttribute("screenId",u.parentNode.getAttribute("screenId"));u.style.visibility="hidden";u.style.display="none"}}for(t=0;t<eb.length;t++){i.ja[eb[t].n]={};i.he[eb[t].n]={}}i.c.style.cursor="default";t=i.c.parentNode;if(t!=null)t.style.cursor="default";stopHiLite=true;menuDiv=null;if(M=="dspf"){t=If.get("snapToGrid",
2892
- 5);u=If.get("showGrid",20);i.co(t,t);i.im(u,u)}};this.Me=function(o,q,l){if(l)pui.designer.ia=l.ia;var s=ac(Na);if(o!=null&&q!=null){if(pui.designer.ia==null){pui.designer.ia=document.createElement("div");pui.designer.ia.style.position="absolute";pui.designer.ia.nF=true;pui.designer.ia.style.border="2px solid #999999";pui.designer.ia.style.backgroundColor="#333333";pui.designer.ia.style.borderRadius="15px";pui.designer.ia.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";s.parentNode.onmousedown=
2891
+ if(u.id!=null&&u.id!=""){l=i.addItem(u);i.Yo(l)}}if(Rd!=null&&Rd!=0&&Qd!=null)for(t=0;t<Rd;t++){u=Qd[t].calimg;if(u!=null&&u.parentNode!=null){u.parentNode.getAttribute("screenId")!=null&&u.setAttribute("screenId",u.parentNode.getAttribute("screenId"));u.style.visibility="hidden";u.style.display="none"}}for(t=0;t<eb.length;t++){i.ja[eb[t].n]={};i.he[eb[t].n]={}}i.c.style.cursor="default";t=i.c.parentNode;if(t!=null)t.style.cursor="default";stopHiLite=true;menuDiv=null;if(M=="dspf"){t=Jf.get("snapToGrid",
2892
+ 5);u=Jf.get("showGrid",20);i.co(t,t);i.im(u,u)}};this.Me=function(o,q,l){if(l)pui.designer.ia=l.ia;var s=ac(Na);if(o!=null&&q!=null){if(pui.designer.ia==null){pui.designer.ia=document.createElement("div");pui.designer.ia.style.position="absolute";pui.designer.ia.nF=true;pui.designer.ia.style.border="2px solid #999999";pui.designer.ia.style.backgroundColor="#333333";pui.designer.ia.style.borderRadius="15px";pui.designer.ia.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";s.parentNode.onmousedown=
2893
2893
  function(){if(pui.designer.ia!=null&&i!=null){i.selection.clear();i.k.refresh()}}}if(i.c.parentNode==s){s.removeChild(i.c);pui.designer.ia.appendChild(i.c)}pui.designer.ia.parentNode!=s&&s.appendChild(pui.designer.ia);s.parentNode.style.backgroundColor="#dfe8f6";pui.designer.ia.style.width=o+40+"px";pui.designer.ia.style.height=q+50+"px";i.c.style.position="absolute";i.c.style.left="19px";i.c.style.top="24px";i.c.style.border="1px solid #999999";i.c.style.overflow="auto";i.c.style.backgroundColor=
2894
- "#ffffff";i.c.style.width=o+"px";i.c.style.height=q+"px";i.c.onscroll=function(){pui.designer.ia!=null&&i!=null&&i.selection.oc()};o=If.get("showGrid",20);i.im(o,o,true);i.c.classList.add("pui-mobile-canvas")}else{if(pui.designer.ia!=null){if(i.active&&i.c.parentNode===pui.designer.ia){pui.designer.ia.removeChild(i.c);s.removeChild(pui.designer.ia);s.appendChild(i.c)}i.c.style.position="";i.c.style.left="";i.c.style.top="";i.c.style.border="";i.c.style.overflow="";i.c.style.backgroundColor="";i.c.style.width=
2895
- "";i.c.style.height="";i.c.style.backgroundImage="";s.parentNode.style.backgroundColor="";o=If.get("showGrid",20);i.im(o,o,false)}i.c.classList.remove("pui-mobile-canvas")}l||(l=Ext.getCmp("centerPanel").getActiveTab());l.ia=pui.designer.ia};this.IJ=function(){for(var o=0;o<i.items.length;o++){var q=i.items[o];if(typeof q==="object"&&typeof q.dom==="object"&&typeof q.dom.id==="string")i.vn[q.dom.id]=q}};this.clear=function(o){i.selection.clear();i.$a=[];i.Fh=[];i.items=[];for(var q=0;q<eb.length;q++){i.ja[eb[q].n]=
2894
+ "#ffffff";i.c.style.width=o+"px";i.c.style.height=q+"px";i.c.onscroll=function(){pui.designer.ia!=null&&i!=null&&i.selection.oc()};o=Jf.get("showGrid",20);i.im(o,o,true);i.c.classList.add("pui-mobile-canvas")}else{if(pui.designer.ia!=null){if(i.active&&i.c.parentNode===pui.designer.ia){pui.designer.ia.removeChild(i.c);s.removeChild(pui.designer.ia);s.appendChild(i.c)}i.c.style.position="";i.c.style.left="";i.c.style.top="";i.c.style.border="";i.c.style.overflow="";i.c.style.backgroundColor="";i.c.style.width=
2895
+ "";i.c.style.height="";i.c.style.backgroundImage="";s.parentNode.style.backgroundColor="";o=Jf.get("showGrid",20);i.im(o,o,false)}i.c.classList.remove("pui-mobile-canvas")}l||(l=Ext.getCmp("centerPanel").getActiveTab());l.ia=pui.designer.ia};this.IJ=function(){for(var o=0;o<i.items.length;o++){var q=i.items[o];if(typeof q==="object"&&typeof q.dom==="object"&&typeof q.dom.id==="string")i.vn[q.dom.id]=q}};this.clear=function(o){i.selection.clear();i.$a=[];i.Fh=[];i.items=[];for(var q=0;q<eb.length;q++){i.ja[eb[q].n]=
2896
2896
  {};i.he[eb[q].n]={}}i.zc=[];i.vn={};i.c.innerHTML="";if(M==="dspf"){i.L.clear();pui.wf.G&&pui.wf.G.zG(i,o)}i.c.appendChild(i.mb);i.c.appendChild(i.wa)};this.load=function(o){i.clear(true);if(typeof o==="string")o=JSON.parse(o);T.ij=true;pui.display=null;pui.Vp({metaData:o,designMode:true,designer:i,Mu:true});pui.wf.G&&pui.wf.G.xg();T.ij=false};this.IK=function(){for(var o=!i.j.yd,q,l=i.c.getElementsByTagName("div"),s=0,t="s",u=0;u<l.length;u++){var v=l[u];q=o&&v.getAttribute("screenId")==null||!o&&
2897
2897
  Number(v.getAttribute("screenId"))==i.j.n?true:false;if(v.id==null||v.id==""){var w=v.getAttribute("rowcol");if(w==null||w=="")w=v.getAttribute("stripeid");if(w==null||w=="")w=v.getAttribute("backgroundid");if(w!=null&&w!=""&&document.getElementById(w)==null&&q==true){v.id=w;q=i.addItem(v);q.properties.PX="true";q.p.PX=true;if(!o){q.dom.setAttribute("parentWindow",i.j.name);q.properties["parent window"]=i.j.name;q.p["parent window"]=true;q.n=i.j.n;i.j.fields.push(q)}s++}}else if(v.getAttribute("empty")!=
2898
2898
  null&&q==true){q=i.addItem(v);if(!o){q.dom.setAttribute("parentWindow",i.j.name);q.properties["parent window"]=i.j.name;q.p["parent window"]=true;q.n=i.j.n;i.j.fields.push(q)}s++}}if(s==1)t="";pui.U.config.BT||pui.alert(s+" empty element"+t+" enabled for design.")};this.Yo=function(o){var q;q=o.dom.parentNode.getAttribute("screenId");if(q!=null){q=Number(q);o.dom.setAttribute("screenId",q);o.n=q;o.dom.setAttribute("parentWindow",eb[q].name);o.properties["parent window"]=eb[q].name;o.p["parent window"]=
@@ -3008,8 +3008,8 @@ function(){for(;i.zc.length>0;){var o=i.zc[i.zc.length-1];o.d.parentNode.removeC
3008
3008
  "accordion"){o=0;for(var s=q.length;o<s;o++)if(q[o].offsetHeight>0){l=q[o];break}}else if(o.template=="tab panel")if(o=o.oa)if((o=o.ra)&&o.selectedTab!=null){o=parseInt(o.selectedTab,10);if(!isNaN(o)&&q[o])l=q[o]}return l}};pui.ide.r={};pui["allowed ifs extensions"]=[".json",".dspf"];pui.ide.r.O_=function(b){var a=pui["allowed ifs extensions"],c=dc(b.getValue());if(c!=""){for(var d=false,e=0;e<a.length;e++){var f=a[e];if(c.length>=f.length&&c.substr(c.length-f.length).toLowerCase()==f)d=true}if(!d){c+=".json";b.setValue(c)}}};pui.ide.r.n0=function(b,a){var c=dc(b.getValue());if(c!=""){var d=false;if(c.length>=a.length&&c.substr(c.length-a.length).toLowerCase()==a)d=true;if(!d){c+=a;b.setValue(c)}}};
3009
3009
  pui.ide.r.sH=function(b,a,c,d){var e=true;a=U.validateName(a,"library");if(a!=""){b.form.findField("_library").markInvalid("Library name "+a);e=false}a=U.validateName(c,"object");if(a!=""){b.form.findField("_file").markInvalid("File name "+a);e=false}a=U.validateName(d,"member");if(a!=""){b.form.findField("_member").markInvalid("Member name "+a);e=false}return e};
3010
3010
  pui.ide.r.bH=function(b,a){var c=fc(b.form.findField("_library").getValue().toUpperCase()),d=fc(b.form.findField("_file").getValue().toUpperCase()),e=fc(b.form.findField("_member").getValue().toUpperCase()),f;f=U.validateName(d,"object");if(f!=""){pui.alert("Source file "+f);b.form.findField("_file").focus()}else{f=U.validateName(c,"library");if(f!=""){pui.alert("Library name "+f);b.form.findField("_library").focus()}else pui.ide.r.picker.create("member",{Yu:a},c+"/"+d,c,d,e)}};pui.ide.r.openDialog=function(b,a){function c(o){i.close();pui.ide.hl(false,function(){location.href="/ide/"+o+"/"})}function d(){var o=dc(k.getForm().findField("filter").getValue()),q=n.getStore();o===""?q.clearFilter():q.filter({property:"name",value:o,s0:true,caseSensitive:false})}var e=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,style:"text-transform: uppercase;",msgTarget:"side"},items:[{name:"_file",
3011
- id:"_file",anchor:"70%",fieldLabel:"Source File",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("file","QDDSSRC")},{name:"_library",anchor:"70%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("library","")},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_member",anchor:"70%",fieldLabel:"Member",autoCreate:{tag:"input",type:"text",maxlength:10},onTriggerClick:function(){pui.ide.r.bH(e,this)}})]}),f=pui.nodedesigner?pui.PJS_TREE_ROOT:
3012
- pui.DOCUMENT_ROOT;if(f.substr(f.length-1,1)!=pui.dirSeparator)f+=pui.dirSeparator;if(pui.nodedesigner){f=f.split(pui.dirSeparator);f.pop();f.pop();f=f.join(pui.dirSeparator)+pui.dirSeparator+U.jd()}var g=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,msgTarget:"side"},items:[{name:"_ifsPath",id:"_ifsPath",anchor:"95%",fieldLabel:"Directory",autoCreate:{tag:"input",type:"text"},value:If.get("ifsPath",
3011
+ id:"_file",anchor:"70%",fieldLabel:"Source File",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("file","QDDSSRC")},{name:"_library",anchor:"70%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("library","")},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_member",anchor:"70%",fieldLabel:"Member",autoCreate:{tag:"input",type:"text",maxlength:10},onTriggerClick:function(){pui.ide.r.bH(e,this)}})]}),f=pui.nodedesigner?pui.PJS_TREE_ROOT:
3012
+ pui.DOCUMENT_ROOT;if(f.substr(f.length-1,1)!=pui.dirSeparator)f+=pui.dirSeparator;if(pui.nodedesigner){f=f.split(pui.dirSeparator);f.pop();f.pop();f=f.join(pui.dirSeparator)+pui.dirSeparator+U.jd()}var g=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,msgTarget:"side"},items:[{name:"_ifsPath",id:"_ifsPath",anchor:"95%",fieldLabel:"Directory",autoCreate:{tag:"input",type:"text"},value:Jf.get("ifsPath",
3013
3013
  f)},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_ifsFile",id:"_ifsFile",anchor:"95%",fieldLabel:"File Name",autoCreate:{tag:"input",type:"text"},listeners:{},onTriggerClick:function(){var o=g.form.findField("_ifsPath"),q=fc(o.getValue());if(q==""){pui.alert("Directory cannot be blank.");o.focus()}else pui.ide.r.picker.create("file",{Yu:this,BN:o},q,null,null,null,b)}})]}),h=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",
3014
3014
  frame:true,defaults:{labelWidth:50,width:150,msgTarget:"side"},items:[{name:"_localFile",id:"_localFile",anchor:"95%",fieldLabel:"Local File",autoCreate:{tag:"input",type:"file"}}]}),m=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150},items:[{name:"_path",id:"_url",anchor:"95%",fieldLabel:"HTTP Path",autoCreate:{tag:"input",type:"text"}},{name:"_keywords",id:"_keywords",anchor:"95%",fieldLabel:"Keywords",
3015
3015
  autoCreate:{tag:"input",type:"text"}},new Ext.form.TriggerField({hidden:true,triggerClass:"x-form-search-trigger",name:"_textFile",autoCreate:{tag:"input",type:"text",maxlength:10},onTriggerClick:function(){var o=fc(m.form.findField("_path").getValue()),q=fc(m.form.findField("_keywords").getValue());pui.ide.r.apiFilePicker.create({sN:function(l,s){if(l&&l.trim()){a({textFile:l,vO:s});i.close()}}},o,q)}})]}),k=null,n=null;if(pui.nodedesigner&&!pui.isCloud&&pui.pjsWorkspaceSupport){k=new Ext.form.FormPanel({region:"north",
@@ -3023,10 +3023,10 @@ g.form.findField("_ifsFile"))&&l.focus()},1);else for(var o=0;o<=2;o++){var q=e.
3023
3023
  l=fc(t.getValue());if(l==""){t.markInvalid("Directory cannot be blank.");q=false}if(!q)return;q=l;if(q.substr(q.length-1)!=pui.dirSeparator)q+=pui.dirSeparator;q+=s;t=l;if(t.substr(t.length-1)!=pui.dirSeparator)t+=pui.dirSeparator;t+=s;a({url:q,ifsFile:t,HW:b,path:l});i.close()}if(o==k){s=n.getSelectionModel().getSelections();s.length===1&&c(s[0].get("name"))}if(o==h){if(!h.form.isValid())return;if(!window.FileReader){pui.alert("Your browser does not support the File Reader API.");return}l=h.form.findField("_localFile");
3024
3024
  s=l.el.dom.files;if(s==null||s.length!=1){l.markInvalid("Please select a file.");return}s=s[0];q=new window.FileReader;var u=l.getValue();l=u.split("/");if(u.match(pui["text file name pattern"])){t=u.split(".").pop();var v=t==="json"||t==="txt";u=l[l.length-1];l=u.split("\\");u=l[l.length-1];q.onload=function(w){i.close();a({Ob:u,json:w.target.result,HW:b,isJSON:v})};q.readAsText(s)}}if(o==e){if(!e.form.isValid())return;l=fc(e.form.findField("_library").getValue().toUpperCase());s=fc(e.form.findField("_file").getValue().toUpperCase());
3025
3025
  t=fc(e.form.findField("_member").getValue().toUpperCase());q=pui.ide.r.sH(e,l,s,t);if(!q)return;i.close();a({library:l,file:s,member:t})}if(o==m){o=m.form.findField("_textFile");if(s=o.getValue().trim()){a({textFile:s});i.close()}else o.onTriggerClick()}}},{text:"Cancel",handler:function(){i.close()}}],items:[f]});if(T&&T.designer)T.designer.disabled=true;i.show()};pui.ide.r.Wn=function(b,a){function c(l){if(!a)if(!d||!(d.fileTab||d.apiTab||d.pjsModuleTab))pui.ide.r.O_(l)}var d;pui.Aa||(d=Ext.getCmp("centerPanel").getActiveTab());var e=pui.designer.currentDisplay.member;if(e==null){if(pui.designer.currentDisplay.bp==true)e=pui.designer.currentDisplay.Rx;if(e==null)e=""}var f=pui.designer.currentDisplay.text;if(f==null){if(pui.designer.currentDisplay.bp==true)f=pui.designer.currentDisplay.ED;if(f==null)f=""}var g=new Ext.form.FormPanel({defaultType:"textfield",
3026
- labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:200,msgTarget:"side"},items:[{id:"_file",anchor:"70%",fieldLabel:"Source File",maxLength:10,autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",value:pui.designer.currentDisplay.file==null?If.get("file","QDDSSRC"):pui.designer.currentDisplay.file},{id:"_library",anchor:"70%",fieldLabel:"Library",maxLength:10,autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",
3027
- value:pui.designer.currentDisplay.library==null?If.get("library",""):pui.designer.currentDisplay.library},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_member",anchor:"70%",fieldLabel:"Member",autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",value:e,onTriggerClick:function(){pui.ide.r.bH(g,this)}}),{id:"_text",anchor:"95%",fieldLabel:"Text",maxLength:50,autoCreate:{tag:"input",type:"text",maxlength:50},width:300,value:f}]});if(pui.designer.currentDisplay.ifsFile){e=
3026
+ labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:200,msgTarget:"side"},items:[{id:"_file",anchor:"70%",fieldLabel:"Source File",maxLength:10,autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",value:pui.designer.currentDisplay.file==null?Jf.get("file","QDDSSRC"):pui.designer.currentDisplay.file},{id:"_library",anchor:"70%",fieldLabel:"Library",maxLength:10,autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",
3027
+ value:pui.designer.currentDisplay.library==null?Jf.get("library",""):pui.designer.currentDisplay.library},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_member",anchor:"70%",fieldLabel:"Member",autoCreate:{tag:"input",type:"text",maxlength:10},style:"text-transform: uppercase;",value:e,onTriggerClick:function(){pui.ide.r.bH(g,this)}}),{id:"_text",anchor:"95%",fieldLabel:"Text",maxLength:50,autoCreate:{tag:"input",type:"text",maxlength:50},width:300,value:f}]});if(pui.designer.currentDisplay.ifsFile){e=
3028
3028
  pui.designer.currentDisplay.ifsFile.split(pui.dirSeparator);e.pop();e=e.join(pui.dirSeparator);if(e=="")e="/"}else if(d&&d.fileTab){e=d.root;if(d.X!=null)e+=d.X.substr(0,d.X.lastIndexOf(pui.dirSeparator));else if(pui.pjsWorkspace)e+=pui.dirSeparator+U.jd()+pui.dirSeparator+pui.pjsWorkspace.name}else{e=pui.nodedesigner?pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(e.substr(e.length-1,1)!=pui.dirSeparator)e+=pui.dirSeparator;if(pui.nodedesigner){e+=U.jd();if(pui.pjsWorkspace)e+=pui.dirSeparator+pui.pjsWorkspace.name}else e+=
3029
- "profoundui/userdata/dspf";pui.pjsWorkspace||(e=If.get("ifsPath",e));if(pui.isCloud)e=h=pui.cloud.ws.SERVER_DIR}e=e;if(pui.isCloud){var h=pui.cloud.ws.SERVER_DIR;if(e.substr(0,h.length).toUpperCase()===h.toUpperCase())e="Workspace Files"+e.substr(h.length)}var m;if(d&&(d.fileTab||d.apiTab||d.pjsModuleTab)){if(d.X!=null)m=d.X.substr(d.X.lastIndexOf(pui.dirSeparator)+1)}else m=pui.designer.currentDisplay.ifsFile;if(d&&d.apiTab&&d.apiTableName)m=d.apiTableName+"."+d.mp;if(d&&d.pjsModuleTab&&d.pjsModuleTableName)m=
3029
+ "profoundui/userdata/dspf";pui.pjsWorkspace||(e=Jf.get("ifsPath",e));if(pui.isCloud)e=h=pui.cloud.ws.SERVER_DIR}e=e;if(pui.isCloud){var h=pui.cloud.ws.SERVER_DIR;if(e.substr(0,h.length).toUpperCase()===h.toUpperCase())e="Workspace Files"+e.substr(h.length)}var m;if(d&&(d.fileTab||d.apiTab||d.pjsModuleTab)){if(d.X!=null)m=d.X.substr(d.X.lastIndexOf(pui.dirSeparator)+1)}else m=pui.designer.currentDisplay.ifsFile;if(d&&d.apiTab&&d.apiTableName)m=d.apiTableName+"."+d.mp;if(d&&d.pjsModuleTab&&d.pjsModuleTableName)m=
3030
3030
  d.pjsModuleTableName+"."+d.mp;if(m==null)m="";if(m==""&&!a&&d)m="Unnamed."+d.mp;m=m.split(pui.dirSeparator);e={defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,msgTarget:"side"},items:[{name:"_ifsPath",id:"_ifsPath",anchor:"95%",fieldLabel:"Directory",autoCreate:{tag:"input",type:"text"},value:e},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",name:"_ifsFile",id:"_ifsFile",anchor:"95%",fieldLabel:"File Name",autoCreate:{tag:"input",
3031
3031
  type:"text"},value:m[m.length-1],onTriggerClick:function(){var l=k.form.findField("_ifsPath"),s=fc(l.getValue());if(s==""){pui.alert("Directory cannot be blank.");l.focus()}else pui.ide.r.picker.create("file",{Yu:this,BN:l},s,null,null,null,a,d&&(d.fileTab||d.apiTab||d.pjsModuleTab))}})]};if(!pui.viewdesigner&&!pui.nodedesigner&&!a&&(!d||!(d.fileTab||d.apiTab||d.pjsModuleTab))){h="JSON";if(pui.designer.currentDisplay.nw==="DDS")h="DDS";e.items.push({xtype:"combo",id:"_format",anchor:"95%",editable:false,
3032
3032
  mode:"local",fieldLabel:"Format",hiddenName:"format",displayField:"format",style:{"z-index":5E3,"text-transform":"none"},store:new Ext.data.ArrayStore({fields:["format"],data:[["JSON"],["DDS"]]}),triggerAction:"all",value:h,selectOnFocus:false,listeners:{select:function(l){l=l.getValue();var s=k.form.findField("_ifsFile"),t=s.getValue();if(l==="DDS"&&t.length>=6&&t.slice(-5).toLowerCase()===".json"){t=t.substr(0,t.length-5)+".dspf";s.setValue(t)}else if(l==="JSON"&&t.length>=6&&t.slice(-5).toLowerCase()===
@@ -3036,33 +3036,33 @@ var o=new Ext.TabPanel({frame:false,id:"_SaveAsTabPanel",border:false,activeTab:
3036
3036
  u=t.getValue();if(u=="")u=[0,0];else{var v=u.lastIndexOf(".");if(d&&(d.apiTab||d.pjsModuleTab))v=u.lastIndexOf(".",v-1);v=v<=0?u.length-1:v-1;u=[0,v]}t.el.dom.setSelectionRange(u[0],u[1]+1)}}},items:m}),q=new Ext.Window({title:a?"Export":"Save As",width:440,height:pui.nodedesigner||a?200:pui.flatlook?235:225,minWidth:440,minHeight:pui.nodedesigner||a?200:pui.flatlook?235:225,layout:"fit",modal:true,buttonAlign:"center",defaultButton:0,keys:[{key:13,fn:function(){q.buttons[0].handler()}}],listeners:{show:function(){o.setActiveTab(i);
3037
3037
  var l;if(i=="_sourceMemberTab"){l=g.form.findField(0);if(l.getValue()!=""){l=g.form.findField(1);if(l.getValue()!="")l=g.form.findField(2)}}if(i=="_ifsFileTab")l=k.form.findField("_ifsFile");if(i=="_localFileTab")l=n.form.findField("_localFile");l.focus.defer(300,l)},beforeclose:function(){if(T)T.designer.disabled=false}},buttons:[{text:"Save",handler:function(){var l=U.xn(),s=Ext.getCmp("_SaveAsTabPanel").getActiveTab().title;if(s=="IFS File"||s=="Server File"){if(!k.form.isValid())return;var t=
3038
3038
  true,u=k.form.findField("_ifsFile");c(u);var v=fc(u.getValue());if(v==""){u.markInvalid("File name cannot be blank.");t=false}u=k.form.findField("_ifsPath");var w=fc(u.getValue());if(w==""){u.markInvalid("Directory cannot be blank.");t=false}if(!t)return;if(pui.isCloud)if(w.substr(0,15)==="Workspace Files")w=pui.cloud.ws.SERVER_DIR+w.substr(15);var y=(t=k.form.findField("_format"))?fc(t.getValue()):null,B=w;if(B.substr(B.length-1,1)!=pui.dirSeparator)B+=pui.dirSeparator;B+=v;if(d&&(d.fileTab||d.apiTab||
3039
- d.pjsModuleTab)){q.close();b(B);return}var C=f;if(C==null)C="";t=a?T.designer.HV():te.Al(C,l);T.save({ifsFile:B,json:t,fileName:v,Qv:y,text:C,onsuccess:function(){if(a)q.close();else{If.set("ifsPath",w);If.save();pui.designer.currentDisplay.library=null;pui.designer.currentDisplay.file=null;pui.designer.currentDisplay.member=null;var H=pui.designer.currentDisplay.ifsFile;pui.designer.currentDisplay.ifsFile=B;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.text=C;pui.designer.currentDisplay.nw=
3039
+ d.pjsModuleTab)){q.close();b(B);return}var C=f;if(C==null)C="";t=a?T.designer.HV():te.Al(C,l);T.save({ifsFile:B,json:t,fileName:v,Qv:y,text:C,onsuccess:function(){if(a)q.close();else{Jf.set("ifsPath",w);Jf.save();pui.designer.currentDisplay.library=null;pui.designer.currentDisplay.file=null;pui.designer.currentDisplay.member=null;var H=pui.designer.currentDisplay.ifsFile;pui.designer.currentDisplay.ifsFile=B;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.text=C;pui.designer.currentDisplay.nw=
3040
3040
  y;te.Wg();pui.ide.Yb();pui.ide.refreshRibbon();pui.designer.Xn();q.close();var J={ifsFile:B,path:w};if(!pui.Aa){if(H!=B){var N={};if(H)N.unwatchFile=pui.ide.wg(H);N.watchFile=pui.ide.wg(B);pui.ide.gh(N)}pui.ide.cj(J,function(I){if(d)if(I.success){I=I.data;if(I.changed)d.lastModified=I.changed;else if(I.mtime)d.lastModified=I.mtime;d.wd=J}})}b!=null&&b();pui.Aa||pui.ide.updateIdeSettings()}}},d)}if(s=="Local File"){if(!n.form.isValid())return;u=n.form.findField("_localFile");c(u);v=fc(u.getValue());
3041
3041
  if(v==""){u.markInvalid("File name cannot be blank.");return}if(d&&d.fileTab){l=d.editor;if(l.getModifiedEditor)l=l.getModifiedEditor();C=l.getValue();pui.Lg("text/plain",v,C);q.close();return}if(d&&d.apiTab){C=d.apiRoutes.sp();pui.Lg("text/plain",v,C);q.close();return}if(d&&d.pjsModuleTab){C=d.pjsModule.sp();pui.Lg("text/plain",v,C);q.close();return}C=f;if(C==null)C="";t=a?T.designer.HV():te.Al(C,l);q.close();pui.Lg("text/plain",v,t);if(!a){pui.designer.currentDisplay.library=null;pui.designer.currentDisplay.file=
3042
3042
  null;pui.designer.currentDisplay.member=null;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=v;pui.designer.currentDisplay.text=C;te.Wg();pui.ide.Yb();pui.ide.refreshRibbon();b!=null&&b()}}if(s=="Source Member")if(g.form.isValid()){var z=fc(g.form.findField("_library").getValue().toUpperCase());v=fc(g.form.findField("_file").getValue().toUpperCase());var K=fc(g.form.findField("_member").getValue().toUpperCase());C=fc(g.form.findField("_text").getValue());(t=pui.ide.r.sH(g,
3043
- z,v,K))&&T.save({library:z,file:v,member:K,text:C,comments:pui.designer.currentDisplay.comments,onsuccess:function(){If.set("file",v);If.set("library",z);If.save();pui.designer.currentDisplay.library=z;pui.designer.currentDisplay.file=v;pui.designer.currentDisplay.member=K;pui.designer.currentDisplay.text=C;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.Fi=null;pui.designer.currentDisplay.Ih=null;te.Wg();pui.ide.Yb();pui.ide.refreshRibbon();
3043
+ z,v,K))&&T.save({library:z,file:v,member:K,text:C,comments:pui.designer.currentDisplay.comments,onsuccess:function(){Jf.set("file",v);Jf.set("library",z);Jf.save();pui.designer.currentDisplay.library=z;pui.designer.currentDisplay.file=v;pui.designer.currentDisplay.member=K;pui.designer.currentDisplay.text=C;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.Fi=null;pui.designer.currentDisplay.Ih=null;te.Wg();pui.ide.Yb();pui.ide.refreshRibbon();
3044
3044
  pui.designer.Xn();q.close();var H={library:z,file:v,member:K};pui.Aa||pui.ide.cj(H,function(J){if(d&&J.success){d.lastModified=J.data.changed;d.wd=H}});b!=null&&b()}})}}},{text:"Cancel",handler:function(){q.close()}}],items:[o]});if(T)T.designer.disabled=true;q.show()};pui.ide.r.dA=function(b,a){var c,d="Save/Compile Errors",e=800;if(b.compilelisting==null){items=[{region:"center",frame:true,layout:"fit",bodyStyle:"white-space: normal;",autoScroll:true,html:b.msg}];var f=150;c=[{text:"Close",handler:function(){g.close()}}]}else{items=[{region:"north",frame:true,height:70,bodyStyle:"white-space: normal;",autoScroll:true,html:b.msg},{title:"Compile Listing",region:"center",layout:"fit",autoScroll:true,html:"<pre>"+b.compilelisting+"</pre>"}];f=450;c=[{text:"Download Listing",
3045
3045
  handler:function(){var h=b.compilelisting.replace(/<br>/g,"\n");pui.Lg("text/plain",pui.designer.currentDisplay.member+".txt",h)}},{text:"Close",handler:function(){g.close()}}]}if(b.step=="PUI0001101:MEMBER EXISTS"||b.step=="PUI0001101:STMF EXISTS"||b.errorId=="FILE EXISTS"){d="Confirm Save As";e=550;f=175;c=[{text:"Yes",handler:function(){g.close();if(a.Sh){if(a.Ia.yi)a.Ia.yi=false;pui.ide.Sh(a.Ia,false,a.callback,a.path,a.root)}else{a.replace=true;var h;pui.Aa||(h=Ext.getCmp("centerPanel").getActiveTab());
3046
3046
  T.save(a,h)}}},{text:"No",handler:function(){g.close()}}]}if(b.errorId=="FILE MODIFIED"){d="Confirm Save As";e=650;f=175;c=[{text:"Overwrite File",handler:function(){g.close();if(a.Sh)pui.ide.Sh(a.Ia,false,a.callback,a.path,a.root,true);else{var h=Ext.getCmp("centerPanel").getActiveTab();a.replace=true;T.save(a,h)}}},{text:"Discard Your Changes",handler:function(){g.close();var h=Ext.getCmp("centerPanel");if(a.Sh){var m=a.Ia,k=m.wd,n=null;h.items.each(function(q,l){if(q===m)n=l});h.remove(m,true);
3047
3047
  var i=k.ifsFile,o=k.path||k.root;o||(o="");i=o?i.replace(o,""):i;pui.ide.Kg(i,o,function(q){n!==null?h.setActiveTab(h.insert(n,q)):h.setActiveTab(h.add(q));pui.ide.cj(k,function(l){if(l.success){q.lastModified=l.data.mtime;q.wd=k}})})}else{m=h.getActiveTab();n=null;h.items.each(function(q,l){if(q===m)n=l});if(!T){T=new pui.designer.iB;T.hide()}if(a.json)a.json=null;if(a.ifsFile)a.url=a.ifsFile;T.qy(a,function(){var q=pui.ide.gr();a.onsuccess=function(){q.Qa=pui.Qa;q.M={formats:pui.designer.M.formats,
3048
- comments:pui.designer.M.comments,global:pui.designer.M.global};if(a.path){If.set("ifsPath",a.path);If.save()}else if(a.library&&a.file){If.set("file",a.file);If.set("library",a.library);If.save()}pui.ide.cj(a,function(l){if(l.success){l=l.data;q.lastModified=l.changed!==undefined?l.changed:l.mtime;q.wd=a}})};a.onfail=function(){h.remove(q,true)};if(n!==null){h.remove(m,true);h.setActiveTab(h.insert(n,q))}else h.setActiveTab(h.add(q));T.open(a)})}}},{text:"Cancel",handler:function(){g.close()}}]}var g=
3048
+ comments:pui.designer.M.comments,global:pui.designer.M.global};if(a.path){Jf.set("ifsPath",a.path);Jf.save()}else if(a.library&&a.file){Jf.set("file",a.file);Jf.set("library",a.library);Jf.save()}pui.ide.cj(a,function(l){if(l.success){l=l.data;q.lastModified=l.changed!==undefined?l.changed:l.mtime;q.wd=a}})};a.onfail=function(){h.remove(q,true)};if(n!==null){h.remove(m,true);h.setActiveTab(h.insert(n,q))}else h.setActiveTab(h.add(q));T.open(a)})}}},{text:"Cancel",handler:function(){g.close()}}]}var g=
3049
3049
  new Ext.Window({title:d,width:e,height:f,minWidth:e,minHeight:f,layout:"border",modal:true,buttonAlign:"center",items:items,keys:[{key:13,fn:function(){g.buttons[0].handler()}}],buttons:c});g.show()};pui.ide.r.gK=function(){var b=pui.designer.currentDisplay.Fi;if(b==null)b=pui.designer.currentDisplay.member;var a=pui.designer.currentDisplay.Ih;if(a==null)a=pui.designer.currentDisplay.library;var c=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,style:"text-transform: uppercase;",msgTarget:"side"},items:[{name:"_file",id:"_file",anchor:"95%",fieldLabel:"Display File",autoCreate:{tag:"input",type:"text",
3050
3050
  maxlength:10},value:b},{name:"_library",anchor:"95%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:a}]}),d=new Ext.Window({title:"Create "+(pui.Aa?"Universal":"Rich")+" Display File",width:380,height:150,minWidth:380,minHeight:175,layout:"fit",modal:true,buttonAlign:"center",defaultButton:0,keys:[{key:13,fn:function(){d.buttons[0].handler()}}],listeners:{show:function(){var e=c.form.findField(0);e.focus.defer(300,e)},beforeclose:function(){T.designer.disabled=false}},
3051
3051
  buttons:[{text:"Compile",handler:function(){if(c.form.isValid()){var e=c.form.findField("_library").getValue().toUpperCase(),f=c.form.findField("_file").getValue().toUpperCase(),g,h=true;g=U.validateName(e,"library");if(g!=""){c.form.findField("_library").markInvalid("Libary name "+g);h=false}g=U.validateName(f,"object");if(g!=""){c.form.findField("_file").markInvalid("File name "+g);h=false}if(h){d.close();pui.designer.currentDisplay.Fi=f;pui.designer.currentDisplay.Ih=e;g=Ext.getCmp("centerPanel");
3052
- g=g!=null&&typeof g.getActiveTab=="function"?g.getActiveTab():null;T.save({library:pui.designer.currentDisplay.library,file:pui.designer.currentDisplay.file,member:pui.designer.currentDisplay.member,text:pui.designer.currentDisplay.text,comments:pui.designer.currentDisplay.comments,replace:true,Fi:f,Ih:e,compile:"Y",onsuccess:function(){te.Wg();pui.ide.Yb()}},g)}}}},{text:"Cancel",handler:function(){d.close()}}],items:[c]});T.designer.disabled=true;d.show()};pui.ide.r.oX=function(){var b=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,style:"text-transform: uppercase;",msgTarget:"side"},items:[{name:"_program",id:"_program",anchor:"95%",fieldLabel:"Program",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("prog","")},{name:"_library",anchor:"95%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("proglib","")}]}),
3052
+ g=g!=null&&typeof g.getActiveTab=="function"?g.getActiveTab():null;T.save({library:pui.designer.currentDisplay.library,file:pui.designer.currentDisplay.file,member:pui.designer.currentDisplay.member,text:pui.designer.currentDisplay.text,comments:pui.designer.currentDisplay.comments,replace:true,Fi:f,Ih:e,compile:"Y",onsuccess:function(){te.Wg();pui.ide.Yb()}},g)}}}},{text:"Cancel",handler:function(){d.close()}}],items:[c]});T.designer.disabled=true;d.show()};pui.ide.r.oX=function(){var b=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:70,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:150,style:"text-transform: uppercase;",msgTarget:"side"},items:[{name:"_program",id:"_program",anchor:"95%",fieldLabel:"Program",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("prog","")},{name:"_library",anchor:"95%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("proglib","")}]}),
3053
3053
  a=new Ext.Window({title:"Launch Program",width:380,height:150,minWidth:380,minHeight:175,layout:"fit",modal:true,buttonAlign:"center",defaultButton:0,listeners:{show:function(){var c=b.form.findField(0);c.focus.defer(300,c)},beforeclose:function(){if(T)T.designer.disabled=false},render:function(c){new Ext.KeyMap(c.getEl(),{key:Ext.EventObject.ENTER,handler:c.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"Launch",handler:function(){if(b.form.isValid()){var c=b.form.findField("_library").getValue().toUpperCase(),
3054
- d=b.form.findField("_program").getValue().toUpperCase(),e,f=true;e=U.validateName(d,"object");if(e!=""){b.form.findField("_program").markInvalid("Program name "+e);f=false}e=U.validateName(c,"library");if(e!=""){b.form.findField("_library").markInvalid("Library name "+e);f=false}if(f){a.close();If.set("prog",d);If.set("proglib",c);If.save();e=location.href;e=e.split("?")[0];urlParts=e.split("/");urlParts[urlParts.length-1]="start?pgm="+encodeURIComponent(c)+"/"+encodeURIComponent(d);if(te){c=te.ni();
3055
- if(c.width!=null&&c.height!=null)urlParts[urlParts.length-1]+="&canvasSize="+c.width+"x"+c.height}e=urlParts.join("/");window.open(e)}}}},{text:"Cancel",handler:function(){a.close()}}],items:[b]});if(T)T.designer.disabled=true;a.show()};pui.ide.r.HM=function(){function b(a){var c=pui.pjsWorkspace?"/run/"+pui.pjsWorkspace.name:If.get("controller",a.length>0?a[0].alias:""),d=false,e=Ext.getCmp("centerPanel").getActiveTab();if(e&&e.isDirty||e&&e.recordFormats&&e.recordFormats.isDirty())d=true;if(d==true){var f;f=c!=null||c!=""?c+" has unsaved changes":"*Active module has unsaved changes"}if(pui.nodedesigner&&Array.isArray(a))c={xtype:"combo",mode:"local",triggerAction:"all",displayField:"alias",valueField:"alias",value:c,emptyText:"Select",
3056
- store:new Ext.data.JsonStore({autoDestroy:true,fields:["alias","module"],data:a}),tpl:'<tpl for="."><div class="x-combo-list-item"><div>{alias}</div><div><strong>Module: </strong>{module}</div></div></tpl>',listeners:{beforequery:function(m){if(m.query!==""&&m.query.charAt(0)!=="/")m.query="/"+m.query}}};else{c={xtype:"textfield"};c.value=If.get("controller","")}c.name="_controller";c.id="_controller";c.anchor="95%";c.fieldLabel=pui.nodedesigner?"Module Alias":"Controller Path";var g=new Ext.form.FormPanel({defaultType:"textfield",
3054
+ d=b.form.findField("_program").getValue().toUpperCase(),e,f=true;e=U.validateName(d,"object");if(e!=""){b.form.findField("_program").markInvalid("Program name "+e);f=false}e=U.validateName(c,"library");if(e!=""){b.form.findField("_library").markInvalid("Library name "+e);f=false}if(f){a.close();Jf.set("prog",d);Jf.set("proglib",c);Jf.save();e=location.href;e=e.split("?")[0];urlParts=e.split("/");urlParts[urlParts.length-1]="start?pgm="+encodeURIComponent(c)+"/"+encodeURIComponent(d);if(te){c=te.ni();
3055
+ if(c.width!=null&&c.height!=null)urlParts[urlParts.length-1]+="&canvasSize="+c.width+"x"+c.height}e=urlParts.join("/");window.open(e)}}}},{text:"Cancel",handler:function(){a.close()}}],items:[b]});if(T)T.designer.disabled=true;a.show()};pui.ide.r.HM=function(){function b(a){var c=pui.pjsWorkspace?"/run/"+pui.pjsWorkspace.name:Jf.get("controller",a.length>0?a[0].alias:""),d=false,e=Ext.getCmp("centerPanel").getActiveTab();if(e&&e.isDirty||e&&e.recordFormats&&e.recordFormats.isDirty())d=true;if(d==true){var f;f=c!=null||c!=""?c+" has unsaved changes":"*Active module has unsaved changes"}if(pui.nodedesigner&&Array.isArray(a))c={xtype:"combo",mode:"local",triggerAction:"all",displayField:"alias",valueField:"alias",value:c,emptyText:"Select",
3056
+ store:new Ext.data.JsonStore({autoDestroy:true,fields:["alias","module"],data:a}),tpl:'<tpl for="."><div class="x-combo-list-item"><div>{alias}</div><div><strong>Module: </strong>{module}</div></div></tpl>',listeners:{beforequery:function(m){if(m.query!==""&&m.query.charAt(0)!=="/")m.query="/"+m.query}}};else{c={xtype:"textfield"};c.value=Jf.get("controller","")}c.name="_controller";c.id="_controller";c.anchor="95%";c.fieldLabel=pui.nodedesigner?"Module Alias":"Controller Path";var g=new Ext.form.FormPanel({defaultType:"textfield",
3057
3057
  labelWidth:90,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:50,width:300,msgTarget:"side"},items:[c,{xtype:"displayfield",hidden:!d,value:f,cls:"pui-x-form-display-field"}]}),h=new Ext.Window({title:pui.nodedesigner?"Launch Profound.js Module":"Launch Controller",width:470,height:d?131:120,minWidth:470,minHeight:120,layout:"fit",modal:true,buttonAlign:"center",defaultButton:0,listeners:{show:function(){var m=g.form.findField(0);m.focus.defer(300,m)},beforeclose:function(){if(T)T.designer.disabled=
3058
3058
  false},render:function(m){new Ext.KeyMap(m.getEl(),{key:Ext.EventObject.ENTER,handler:m.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"Launch",handler:function(){if(g.form.isValid()){var m=g.form.findField("_controller"),k=dc(m.getRawValue());if(k=="")m.markInvalid(pui.nodedesigner?"Module Alias is required":"Controller Path is required");else{if(pui.nodedesigner&&Array.isArray(a))if(m.getStore().findExact("alias",k.charAt(0)==="/"?k:"/"+k)===-1){m.markInvalid("Module Alias is invalid.");
3059
- return}h.close();If.set("controller",k);If.save();if(pui.nodedesigner){m=k;if(m.charAt(0)!=="/")m="/"+m}else{m=location.href;m=m.split("?")[0];m=m.split("/");m[m.length-1]===""&&m.pop();m[m.length-1]="start?controller="+k;m=m.join("/")}if(te){k=te.ni();if(k.width!=null&&k.height!=null){m+=m.includes("?")?"&":"?";m+="canvasSize="+k.width+"x"+k.height}}window.open(m)}}}},{text:"Cancel",handler:function(){h.close()}}],items:[g]});if(T)T.designer.disabled=true;h.show()}if(pui.nodedesigner){screenMask.msg=
3059
+ return}h.close();Jf.set("controller",k);Jf.save();if(pui.nodedesigner){m=k;if(m.charAt(0)!=="/")m="/"+m}else{m=location.href;m=m.split("?")[0];m=m.split("/");m[m.length-1]===""&&m.pop();m[m.length-1]="start?controller="+k;m=m.join("/")}if(te){k=te.ni();if(k.width!=null&&k.height!=null){m+=m.includes("?")?"&":"?";m+="canvasSize="+k.width+"x"+k.height}}window.open(m)}}}},{text:"Cancel",handler:function(){h.close()}}],items:[g]});if(T)T.designer.disabled=true;h.show()}if(pui.nodedesigner){screenMask.msg=
3060
3060
  "Loading...";screenMask.show();Ext.Ajax.request({url:jc("PUI0001132.pgm"),method:"POST",success:function(a){screenMask.hide();a=JSON.parse(a.responseText);b(a)},failure:function(a){screenMask.hide();a.status===404?b():Ext.MessageBox.show({title:"Error",msg:a.isTimeout?"Request timed out.":a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR})}})}else b()};pui.ide.r.eK=function(b){var a=pui.cnv.warnings.LV(pui.designer.nD);b=a.list;var c=a.FX;a=a.Q_;if(b.length!=null&&b.length>0){var d=new Ext.data.JsonStore({autoDestroy:true,fields:["severity","text","keyword","line"],sortInfo:{field:"severity",direction:"DESC"}});b=Ext.util.JSON.encode(b);d.loadData(Ext.util.JSON.decode(b));b=new Ext.grid.GridPanel({id:"_warningsGrid",autoScroll:true,stripeRows:true,loadMask:true,height:200,store:d,viewConfig:{forceFit:true},sm:new Ext.grid.RowSelectionModel({singleSelect:true}),
3061
3061
  tbar:[{text:"Export to Excel",icon:"/profoundui/proddata/images/grids/excel.gif",handler:function(){var h="Severity,Message,Keyword,Line No.";h+="\n";for(var m,k,n,i=0;i<d.getTotalCount();i++){m=d.getAt(i).data;k=m.text;n=m.keyword;h+=m.severity+",";h+=k.replace('"/g','"')+",";h+=n.replace('"/g','"')+",";h+=m.line;h+="\n"}pui.Lg("text/csv","results.csv",h)}},"-",{text:"Supported Keywords",icon:"/profoundui/proddata/images/cog.png",handler:function(){window.open("http://www.profoundlogic.com/ddskwlist.rpgsp")}}],
3062
3062
  columns:[{header:"Severity",width:70,sortable:true,dataIndex:"severity"},{id:"warningMsg",header:"Message",width:280,sortable:true,dataIndex:"text"},{header:"Keyword",width:90,sortable:true,dataIndex:"keyword",renderer:function(h){var m=h.indexOf("(");return'<a target="_blank" href="http://www.profoundlogic.com/ddskwlist.rpgsp?keyword='+(m>0?h.substring(0,m):h)+'&pui=1">'+h+"</a>"}},{header:"Line No.",width:60,sortable:true,dataIndex:"line"}],autoExpandColumn:"warningMsg"});var e="The display file converted successfully.";
3063
3063
  if(c>0){var f=c>1;e+=" There ";if(f)e+="are";f||(e+="is");e+=" "+c+" informational message";if(f)e+="s"}if(a>0){f=a>1;if(c>0)e+=" and ";else{e+=" There ";if(f)e+="are";f||(e+="is")}e+=" "+a+" warning";if(f)e+="s";e+="."}else if(c>0)e+=".";c=[{region:"north",height:50,bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px",autoScroll:true,html:e},{xtype:"fieldset",region:"center",title:"View Conversion Warnings",collapsed:true,collapsible:true,autoHeight:true,items:b,listeners:{expand:function(h){g.setHeight(350);
3064
3064
  h.setTitle("Hide Details")},collapse:function(h){g.setHeight(150);h.setTitle("Show Details")}}}]}else c=[{region:"center",layout:"fit",bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px",autoScroll:true,html:"The display file converted successfully."}];var g=new Ext.Window({modal:true,title:"Conversion Results",bodyStyle:"padding:5px 5px 0",layout:"border",width:500,height:150,minWidth:500,minHeight:150,buttonAlign:"center",defaultButton:0,items:c,listeners:{beforeclose:function(){T.designer.disabled=
3065
- false},render:function(h){new Ext.KeyMap(h.getEl(),{key:Ext.EventObject.ENTER,handler:h.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"OK",handler:function(){g.close()}}]});T.designer.disabled=true;g.show()};pui.ide.r.iK=function(){var b=pui.cnv.themes.QE(),a=pui.cnv.themes.QE()[0][0],c=If.get("cnvtheme","Hybrid");if(c!="")for(var d=0;d<b.length;d++)if(b[d][0]==c){a=c;break}b=[{name:"_file",id:"_file",anchor:"95%",fieldLabel:"Source File",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("cnvfile","QDDSSRC")},{name:"_library",anchor:"95%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:If.get("cnvlibrary","")},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",
3065
+ false},render:function(h){new Ext.KeyMap(h.getEl(),{key:Ext.EventObject.ENTER,handler:h.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"OK",handler:function(){g.close()}}]});T.designer.disabled=true;g.show()};pui.ide.r.iK=function(){var b=pui.cnv.themes.QE(),a=pui.cnv.themes.QE()[0][0],c=Jf.get("cnvtheme","Hybrid");if(c!="")for(var d=0;d<b.length;d++)if(b[d][0]==c){a=c;break}b=[{name:"_file",id:"_file",anchor:"95%",fieldLabel:"Source File",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("cnvfile","QDDSSRC")},{name:"_library",anchor:"95%",fieldLabel:"Library",autoCreate:{tag:"input",type:"text",maxlength:10},value:Jf.get("cnvlibrary","")},new Ext.form.TriggerField({triggerClass:"x-form-search-trigger",
3066
3066
  name:"_member",anchor:"95%",fieldLabel:"Member",autoCreate:{tag:"input",type:"text",maxlength:10},onTriggerClick:function(){pui.ide.r.bH(e,this)}}),{xtype:"combo",id:"_theme",anchor:"95%",editable:false,mode:"local",fieldLabel:"Theme",hiddenName:"theme",displayField:"theme",style:{"z-index":5E3,"text-transform":"none"},store:new Ext.data.ArrayStore({fields:["theme"],data:pui.cnv.themes.QE()}),triggerAction:"all",value:a,selectOnFocus:true}];if(pui["enable retain gs"]===true||pui["enable retain gs"]===
3067
3067
  "true")b.push({xtype:"checkbox",name:"_retain",anchor:"95%",fieldLabel:"Retain Green Screens",checked:pui.xd()&&localStorage["pui-designer-retain-gs"]=="true"?true:false,value:""});var e=new Ext.form.FormPanel({defaultType:"textfield",labelWidth:130,header:false,bodyStyle:"padding: 3px",frame:true,defaults:{labelWidth:130,width:150,style:"text-transform: uppercase;",msgTarget:"side"},items:b}),f=new Ext.Window({title:"Convert Green Screen Display File",width:460,height:pui.flatlook?230:210,minWidth:460,
3068
3068
  minHeight:pui.flatlook?230:210,layout:"fit",modal:true,buttonAlign:"center",keys:[{key:13,fn:function(){f.buttons[0].handler()}}],listeners:{show:function(){for(var g=0;g<=3;g++){var h=e.form.findField(g);if(h.getValue()==""){h.focus(true,450);break}}},beforeclose:function(){if(T)T.designer.disabled=false}},buttons:[{text:"Convert",handler:function(){if(e.form.isValid()){var g=fc(e.form.findField("_library").getValue().toUpperCase()),h=fc(e.form.findField("_file").getValue().toUpperCase()),m=fc(e.form.findField("_member").getValue().toUpperCase()),
@@ -3070,7 +3070,7 @@ k=e.form.findField("_theme").getValue(),n=false;if(pui["enable retain gs"]===tru
3070
3070
  "Server response is invalid.";if(q!=null&&q.description!=null)l+=" "+q.description+".";else if(q!=null&&q.message!=null)l+=" "+q.message+".";screenMask.hide();pui.alert(l)}else if(o.success!=true&&o.success!="true"){screenMask.hide();pui.alert(o.msg)}else{l=true;if(o.formats!=null)for(var s in o.formats){l=false;break}if(l){screenMask.hide();pui.alert("There are no record formats defined in this DDS source.")}else{l=Ext.getCmp("centerPanel");s=pui.ide.Pd();var t=pui.ide.gr();if(s.Ia){l.remove(s.Ia,
3071
3071
  true);l.setActiveTab(l.insert(s.index,t))}else l.setActiveTab(l.add(t));pui.cnv.themes.setTheme(k);pui.cnv.greenScreenDisplay=o;pui.cnv.Pl=m;pui.cnv.Hv=n;pui.cnv.zD();n&&pui.cnv.hb.So("ALLINONE");Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);var u=pui.cnv.hb.su();T.aO(u,function(){T.Wr(u);te.LC();pui.cnv.dg.yC();pui.Qa=pui.cnv.hb.zE();U.eq();pui.designer.fb=false;if(pui.cnv.fb)pui.designer.fb=true;pui.designer.currentDisplay.library=null;pui.designer.currentDisplay.file=null;pui.designer.currentDisplay.member=
3072
3072
  null;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.text=null;pui.designer.currentDisplay.comments=null;pui.designer.currentDisplay.Fi=null;pui.designer.currentDisplay.Ih=null;pui.designer.currentDisplay.bp=true;pui.designer.currentDisplay.Rx=m;pui.designer.currentDisplay.ED=o.text;pui.designer.M.formats={};if(n)if(o.dds!=null&&o.dds.length>0){pui.designer.M.split(o.dds);if(pui.designer.M.comments.length>0){pui.designer.currentDisplay.comments=
3073
- [];for(var v=0;v<pui.designer.M.comments.length;v++)pui.designer.currentDisplay.comments.push(pui.designer.M.comments[v])}setTimeout(function(){te.At()},10)}te.sb();pui.ide.Yb();f.close();screenMask.hide();pui.ide.r.eK();If.set("cnvfile",h);If.set("cnvlibrary",g);If.set("cnvtheme",k);If.save();t.Qa=pui.Qa;t.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global}})}}}})}}}},{text:"Cancel",handler:function(){f.close()}}],items:[e]});if(T)T.designer.disabled=
3073
+ [];for(var v=0;v<pui.designer.M.comments.length;v++)pui.designer.currentDisplay.comments.push(pui.designer.M.comments[v])}setTimeout(function(){te.At()},10)}te.sb();pui.ide.Yb();f.close();screenMask.hide();pui.ide.r.eK();Jf.set("cnvfile",h);Jf.set("cnvlibrary",g);Jf.set("cnvtheme",k);Jf.save();t.Qa=pui.Qa;t.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global}})}}}})}}}},{text:"Cancel",handler:function(){f.close()}}],items:[e]});if(T)T.designer.disabled=
3074
3074
  true;f.show()};pui.ide.r.IW=function(){function b(e){var f=c.getForm();if(f.isValid()){var g=f.findField("owner").getValue().trim(),h=f.findField("workspace").getValue().trim(),m=f.findField("moduleName").getValue().trim();if(m==="")m=h.toLowerCase().replace(/ /g,"-");var k=pui.MODULES_DIR?pui.MODULES_DIR:pui.PROFOUNDJS_DIR.trim()+pui.dirSeparator+"modules",n=k+pui.dirSeparator+m.trim();screenMask.msg="Importing...";screenMask.show();e={owner:g,workspace:h,moduleName:m,replaceDir:e?"1":"0"};Ext.Ajax.request({url:jc("PUI0001130.pgm"),
3075
3075
  method:"POST",params:e,success:function(i){screenMask.hide();i=JSON.parse(i.responseText);if(i.success==false)if(i.moduleDirExists){i="This directory already exists. Are you sure you want to replace it?<hr>";i+="<br><h3>Directory</h3><li>'"+n.trim()+"'</li>";msgWidth=Ext.getDoc().getTextWidth(n.trim())+25;Ext.MessageBox.show({title:"<b>Warning!</b>",buttons:{yes:"Yes",cancel:"Cancel"},icon:Ext.MessageBox.WARNING,msg:i,minWidth:430,width:msgWidth,fn:function(o){o==="yes"&&b(true)}})}else Ext.MessageBox.show({title:"Error",
3076
3076
  msg:i.error,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});else{(i=Ext.getCmp("fileTree").getNodeById(k))&&i.reload();if(pui.pjsWorkspaceSupport){pui.ide.getWorkspaceInfo();a(m.trim())}else Ext.MessageBox.show({title:"NodeRun workspace imported",msg:"NodeRun workspace <b>"+h.trim()+"</b> has been imported to directory <br>'"+n.trim()+"'",icon:Ext.MessageBox.INFO,buttons:Ext.MessageBox.OK,fn:function(){d.close()}})}},failure:function(i){screenMask.hide();Ext.MessageBox.show({title:"Error",msg:"HTTP "+
@@ -3093,7 +3093,7 @@ listeners:{render:function(h){h.dropZone=new Ext.dd.DropZone(h.getView().scrolle
3093
3093
  if(i.id==k.id)return false;var o=i.data,q=k.data;i=nparent=elementRecord.json;k=ncolProp="subfields";if(o.parentID>=0){n=h.getStore().getAt(o.parentID);i=n.data.subfieldData;k="elements"}if(q.parentID>=0){n=h.getStore().getAt(q.parentID);nparent=n.data.subfieldData;ncolProp="elements"}if(q.nj!=o.nj){n=nparent[ncolProp].findIndex(function(l){return l.name==o.subfieldData.name});if(n>=0){Ext.Msg.alert("Error","A subfield with that same name already exists here.");return}}n=i[k].findIndex(function(l){return l.name==
3094
3094
  o.subfieldData.name});n>=0&&i[k].splice(n,1);n=nparent[ncolProp].findIndex(function(l){return l.name==q.subfieldData.name});if(n>=0){pd()-m.getBoundingClientRect().y>m.getBoundingClientRect().height/2&&n++;m=nparent[ncolProp].slice(0,n);i=nparent[ncolProp].slice(n);nparent[ncolProp].length=0;nparent[ncolProp]=m.concat(o.subfieldData).concat(i)}a()}})},beforedestroy:function(h){h&&h.dropZone&&h.dropZone.unreg();return true},rowcontextmenu:function(h,m,k){f.getSelectionModel().selectRow(m);f.getView().ensureVisible(m);
3095
3095
  h=f.getStore().getAt(m).data.subfieldData;m=f.getTopToolbar();var n=[];h.type=="data structure"&&n.push(new Ext.menu.Item({text:"Add Child Subfield",icon:m.items.items[0].icon,handler:m.items.items[0].handler}));n.push(new Ext.menu.Item({text:m.items.items[1].tooltip,icon:m.items.items[1].icon,handler:m.items.items[1].handler}));n.push(new Ext.menu.Item({text:m.items.items[2].tooltip,icon:m.items.items[2].icon,handler:m.items.items[2].handler}));(new Ext.menu.Menu({items:n})).showAt(k.getXY());k.stopEvent()},
3096
- rowdblclick:function(h,m,k){h.getTopToolbar().items.items[1].handler(k)},added:function(h){var m=[];m.push({id:"name",header:"Subfield name",width:140,dataIndex:"subfieldData",renderer:function(k,n,i,o,q,l){k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+k.name+"</div></span>";n=[];if(i.data.parentID>=0){l=Jf(i.data.parentID,l);for(q=0;q<l.length;q++)n.push('<img alt="" style="'+l[q]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}n=
3096
+ rowdblclick:function(h,m,k){h.getTopToolbar().items.items[1].handler(k)},added:function(h){var m=[];m.push({id:"name",header:"Subfield name",width:140,dataIndex:"subfieldData",renderer:function(k,n,i,o,q,l){k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+k.name+"</div></span>";n=[];if(i.data.parentID>=0){l=Kf(i.data.parentID,l);for(q=0;q<l.length;q++)n.push('<img alt="" style="'+l[q]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}n=
3097
3097
  n.join("");l='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(i.data.isLastTreeItem)l+="-end";if(i.data.subfieldData.type=="data structure")l+="-minus\" onclick=\"pui.ide.toggleGridRow('defineDataStructureGrid', "+o+")";l+='"></img>';return n+l+k}});m.push({id:"type",header:"Data type",width:100,dataIndex:"subfieldData",renderer:function(k,n){n.attr="style='margin: 2px 2px 0px 5px;'";return k.type}});m.push({id:"length",header:"Length",width:50,
3098
3098
  dataIndex:"subfieldData",renderer:function(k,n){n.attr="style='margin: 2px 2px 0px 5px;'";if(k.length===null)return"";if(isNaN(k.length))return"";return k.length}});m.push({id:"decimals",header:"Decimals",width:50,dataIndex:"subfieldData",renderer:function(k,n){n.attr="style='margin: 2px 2px 0px 5px;'";if(k.decimals===null)return"";if(isNaN(k.decimals))return"";return k.decimals}});m.push({id:"dim",header:"Dimension",width:55,dataIndex:"subfieldData",renderer:function(k,n){n.attr="style='margin: 2px 2px 0px 5px;'";
3099
3099
  if(k.dim===null)return"";if(isNaN(k.dim))return"";return k.dim}});h.getColumnModel().setConfig(m)}}})]}),f=Ext.getCmp("defineDataStructureGrid"),g=new Ext.Window({title:"Define Data Structure Subfields",modal:true,width:500,height:500,layout:"fit",items:[e],buttons:[{text:"Save",handler:function(){b.button.ga=elementRecord.json.subfields;g.close()}},{text:"Cancel",handler:function(){b.button.ga=JSON.parse(d);g.close()}}],listeners:{afterrender:qa(),beforeclose:function(){if(T)T.designer.disabled=
@@ -3160,7 +3160,7 @@ key:K})}v(y)},onfail:function(){pui.alert("An unexpected error ocurred while ret
3160
3160
  onfail:function(){pui.alert("An unexpected error ocurred while retrieving foreign keys. Check your connection and try again.");setTimeout(function(){f.close()},0)}})}function m(t,u,v){function w(C,z,K){K(C,z,function(H){s[z]=H;y++;if(y>=u.length){screenMask.hide();v()}})}var y=0;screenMask.msg="Examining Foreign Keys";screenMask.show();for(var B=0;B<u.length;B++)w(t,u[B],h)}function k(t,u){var v=l[t];if(!v)return false;for(var w=[],y=0;y<v.length;y++)w.push(v[y].field);for(y=0;y<u.length;y++)if(!w.includes(u[y]))return false;
3161
3161
  return true}function n(t){if(!t.childNodes){var u=Number(t.id.substr(5));if(!isNaN(u))if(u=q[u])if(l[u]){var v=s[u];if(v){for(var w=0;w<v.length;w++){var y=v[w],B=y.referenceTable;if(B)if(B!==u)if(l[B])if(k(u,y.columns))if(k(B,y.foreignColumns)){t.childNodes||(t.childNodes=[]);for(var C=[],z=0;z<y.columns.length;z++)C.push({childField:y.foreignColumns[z],parentField:y.columns[z]});t.childNodes.push({id:"table"+String(q.indexOf(B)),joinP:{type:"INNER",conditions:C}})}}if(t.childNodes)for(w=0;w<t.childNodes.length;w++)n(t.childNodes[w])}}}}
3162
3162
  pui.wf.nb=new pui.Vb.tq;var i=Ext.get("_join_dialog_content").dom.firstChild.firstChild;i.innerHTML="&nbsp; Loading. Please wait...";var o=b.button.answers.connection||"",q=b.button.answers.tables.split(","),l={},s={};(function(t,u,v){function w(C,z,K){K(C,z,function(H){l[z]=H;y++;y>=u.length&&v()})}for(var y=0,B=0;B<u.length;B++)w(t,u[B],g)})(o,q,function(){i.innerHTML="";pui.wf.nb.init(i);for(var t=0;t<q.length;t++){var u=new pui.Vb.Ws({width:225,left:20+t*300,top:20,KA:q[t],id:"table"+t,fields:l[q[t]]});
3163
- mf(pui.wf.nb,u)}pui.wf.nb.NK();if(typeof b.button.ga==="object"){pui.wf.q1=b.button.ga;yf(pui.wf.nb,JSON.parse(JSON.stringify(b.button.ga)))}else m(o,q,function(){var v={id:"table0"};n(v);v.childNodes&&yf(pui.wf.nb,v)})})},beforeclose:function(){if(b.W)b.W.d.style.display=""},render:function(g){new Ext.KeyMap(g.getEl(),{key:Ext.EventObject.ENTER,handler:g.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"Save",handler:function(){var g=b.button,h=pui.wf.nb.ee,m={};h.Wi!=null&&Hf(h,h.Wi,
3163
+ nf(pui.wf.nb,u)}pui.wf.nb.NK();if(typeof b.button.ga==="object"){pui.wf.q1=b.button.ga;zf(pui.wf.nb,JSON.parse(JSON.stringify(b.button.ga)))}else m(o,q,function(){var v={id:"table0"};n(v);v.childNodes&&zf(pui.wf.nb,v)})})},beforeclose:function(){if(b.W)b.W.d.style.display=""},render:function(g){new Ext.KeyMap(g.getEl(),{key:Ext.EventObject.ENTER,handler:g.buttons[0].handler,stopEvent:true},"keypress")}},buttons:[{text:"Save",handler:function(){var g=b.button,h=pui.wf.nb.ee,m={};h.Wi!=null&&If(h,h.Wi,
3164
3164
  m);g.ga=m;pui.wf.nb.destroy();f.close()}},{text:"Cancel",handler:function(){pui.wf.nb.destroy();f.close()}}],items:[[{region:"center",layout:"fit",bodyStyle:"white-space: normal;",autoScroll:true,id:"_join_dialog_content",html:""}]]});f.show()};pui.ide.r.P_=function(){var b=pui.ide.Re.getWidth(),a=pui.ide.Re.getHeight(),c,d,e="",f=new Ext.Window({id:"_logic_routine_dialog",title:"View Node.js",width:800,height:600,minWidth:500,minHeight:375,layout:"fit",modal:true,maximized:b<800||a<600?true:false,maximizable:true,buttonAlign:"center",defaultButton:0,constrain:true,bodyStyle:"background-color: #fff",listeners:{show:function(){var g=Ext.get("_view_node_dialog_content").dom.firstChild.firstChild;g.style.overflow="hidden";d=document.createElement("div");
3165
3165
  d.classList.add("pui-wf-nodejs-view");c=monaco.editor.create(d,{value:e,fixedOverflowWidgets:false,language:"javascript",disableMonospaceOptimizations:navigator.platform.toUpperCase().indexOf("MAC")>=0,minimap:{enabled:false}});var h=c.getModel();monaco.editor.setModelLanguage(h,"javascript");c.setModel(h);h.updateOptions({tabSize:2});c.updateOptions({wordWrapColumn:60,wordWrap:"off",lineNumbers:"on",lineDecorationsWidth:3,lineNumbersMinChars:1});g.appendChild(d)},resize:function(){setTimeout(function(){c&&
3166
3166
  c.layout()},250)},beforeclose:function(){T.designer.disabled=false},render:qa(),beforedestroy:function(){c.dispose()}},buttons:[{text:"Close",handler:function(){f.close()}}],items:[[{region:"center",layout:"fit",bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px",autoScroll:true,id:"_view_node_dialog_content",html:""}]]});b="app";if(a=pui.designer.currentDisplay.ifsFile){b=a.split(pui.dirSeparator);b=b[b.length-1].split(".")[0]}T.designer.disabled=true;screenMask.msg="Generating Node.js code";
@@ -3313,7 +3313,7 @@ true,handler:function(){if(te.validate())if(pui.designer.currentDisplay.member==
3313
3313
  arrowAlign:"bottom",disabled:pui.Ke==true,menu:[{text:"Launch Session",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/launch-session.png":"/profoundui/proddata/images/FlatIcons/16x16/launch_session.png",handler:function(){var i=location.href;i=i.split("?")[0];i=i.split("/");i[i.length-1]="start";if(te){var o=te.ni();if(o.width!=null&&o.height!=null)i[i.length-1]+="?canvasSize="+o.width+"x"+o.height}i=i.join("/");window.open(i)}},{text:"Launch Anonymous Program...",icon:pui.flatlook?
3314
3314
  "/profoundui/proddata/images/FlatIcons/16x16/launch-anonymous.png":"/profoundui/proddata/images/FlatIcons/16x16/launch_anonymous.png",handler:function(){pui.ide.r.oX()}},{id:"_Ribbon_Home_launchPreview",text:"Launch Screen Preview...",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/launch-preview.png":"/profoundui/proddata/images/FlatIcons/16x16/preview.png",handler:function(){te.validate()&&pui.ide.r.ks()}},"-",{text:"Maintain Initial Programs...",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/maintain-initial.png":
3315
3315
  "/profoundui/proddata/images/FlatIcons/16x16/maintain_programs.png",handler:function(){pui.ide.r.NW()}},{text:"Maintain Anonymous Programs...",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/maintain-anonymous.png":"/profoundui/proddata/images/FlatIcons/16x16/maintain_anonymous.png",handler:function(i,o){var q=o.browserEvent,l=o.getXY(),s=l[0],t=l[1];t-=100;if(t<0)t=0;screenMask.msg="Loading List of Anonymous Programs...";screenMask.show();xc({url:jc("PUI0001105.pgm"),method:"post",
3316
- params:{mode:"load"},async:true,handler:function(u){screenMask.hide();if(pui.Gg==null)pui.Gg=new pui.designer.uq;pui.Gg.om=true;pui.Gg.Sq=false;pui.Gg.Uq=false;pui.Gg.uppercase=true;pui.Gg.PO("uppercase");pui.Gg.Cs(21);var v=[];if(u!=null){v=u.programs;if(v==null)v=[]}pui.Gg.Bs(v);pui.Gg.Bb("Maintain Anonymous Programs");pui.Gg.QZ("Specify library/program:");pui.Gg.TF=function(w){var y=w.split("/");if(y.length==2){w=y[0];y=y[1];If.set("prog",y);If.set("proglib",w);If.save();var B=location.href;B=
3316
+ params:{mode:"load"},async:true,handler:function(u){screenMask.hide();if(pui.Gg==null)pui.Gg=new pui.designer.uq;pui.Gg.om=true;pui.Gg.Sq=false;pui.Gg.Uq=false;pui.Gg.uppercase=true;pui.Gg.PO("uppercase");pui.Gg.Cs(21);var v=[];if(u!=null){v=u.programs;if(v==null)v=[]}pui.Gg.Bs(v);pui.Gg.Bb("Maintain Anonymous Programs");pui.Gg.QZ("Specify library/program:");pui.Gg.TF=function(w){var y=w.split("/");if(y.length==2){w=y[0];y=y[1];Jf.set("prog",y);Jf.set("proglib",w);Jf.save();var B=location.href;B=
3317
3317
  B.split("/");B[B.length-1]="start?pgm="+w+"/"+y;B=B.join("/");window.open(B)}};pui.Gg.Lp=function(w){var y=U.vH(w);if(y!=""){pui.alert("Program "+y);return false}return w};pui.Gg.Ca=function(w){screenMask.msg="Saving List of Anonymous Programs...";screenMask.show();for(var y={mode:"save"},B=0;B<w.length;B++){var C=w[B].split("/");if(C.length==1)y["pgm"+(B+1)]=C[0];if(C.length==2){y["lib"+(B+1)]=C[0];y["pgm"+(B+1)]=C[1]}}xc({url:jc("PUI0001105.pgm"),method:"post",params:y,async:true,handler:function(z,
3318
3318
  K){screenMask.hide();var H="";if(z==null){H="Server response is invalid.";if(K!=null)H+=" "+K.description+"."}else if(!z.success)H=z.msg;H!=""&&U.alert(H)}})};pui.Gg.show(q,s,t)}})}},MOBILE_LICENSE?"-":"",{text:"Configure Profound UI Mobile...",hidden:!MOBILE_LICENSE,icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/configure-pui-mobile.png":"/profoundui/proddata/images/FlatIcons/16x16/maintain_mobile.png",handler:function(){pui.ide.r.HX()}}]},{text:"Library List...",scale:"small",icon:pui.flatlook?
3319
3319
  "/profoundui/proddata/images/FlatIcons/16x16/library-list.png":"/profoundui/proddata/images/FlatIcons/16x16/folder_process.png",iconAlign:"left",disabled:pui.Ke==true,handler:function(i,o){var q=o.browserEvent,l=o.getXY(),s=l[0],t=l[1];t-=100;if(t<0)t=0;screenMask.msg="Loading Library List...";screenMask.show();xc({url:jc("PUI0001104.pgm"),method:"post",params:{mode:"load"},async:true,handler:function(u){screenMask.hide();if(pui.Vg==null)pui.Vg=new pui.designer.uq;pui.Vg.om=true;pui.Vg.Sq=false;pui.Vg.Uq=
@@ -3361,7 +3361,7 @@ null&&t.height!=null){s+=s.includes("?")?"&":"?";s+="canvasSize="+t.width+"x"+t.
3361
3361
  msg:"Are you sure you want to launch? <br> This app has unsaved changes",closable:false,width:275,modal:true,icon:Ext.MessageBox.WARNING,buttons:Ext.MessageBox.YESNO,fn:function(q){q=="yes"&&i()}}):i()}};d={id:"_Ribbon_Home_launchInIDE",text:"Launch App in IDE",icon:"/profoundui/proddata/images/FlatIcons/24x24/launch.png",handler:function(){function i(){function q(){var l=Ext.getCmp("southPanel");l.collapsed&&l.expand();l=Ext.getCmp("_south_tabpanel");l.collapsed&&l.expand();l.setActiveTab(2);Ext.getCmp("_south_panel_run").handler("no questions");
3362
3362
  U.La("launch","in ide")}pui.isCloud?pui.cloud.zM(q):q()}var o=Ext.getCmp("centerPanel").getActiveTab();pui.nodedesigner&&o&&(o.isDirty||o.recordFormats&&o.recordFormats.isDirty())?Ext.MessageBox.show({title:"<b>Unsaved Changes</b>",cls:"pui-message-box",msg:"Are you sure you want to launch? <br> This app has unsaved changes",width:275,buttonAlign:"center",closable:false,modal:true,icon:Ext.MessageBox.WARNING,buttons:Ext.MessageBox.YESNO,fn:function(q){q=="yes"&&i()}}):i()}};if(pui.isCloud)n[0]=d;
3363
3363
  else n.splice(0,0,d);n.splice(1,0,c)}pui.lowcodeSupport&&n.push({id:"_Ribbon_Home_startdebug",text:"Debug Low-code",icon:"/profoundui/proddata/images/FlatIcons/16x16/maintain-initial.png",disabled:true,handler:function(){if(!(pui.ide.zf instanceof pui.ide.qo))pui.ide.zf=new pui.ide.qo;Ext.getCmp("southPanel").expand();var i=Ext.getCmp("_south_tabpanel");i&&i.setActiveTab("_south_panel_debug_tab");if((i=Ext.getCmp("centerPanel").getActiveTab())&&i.wd&&typeof i.wd.url==="string"&&i.wd.url.length>0){var o=
3364
- pui.ide.zf,q=Kf(o,i);if(pui.isCloud)q.name=Lf(o,q.name);var l=o.xe[q.name];l instanceof pui.ide.Sf||(l=Mf(o,q,i));Nf(l,true);if(o.vg){o.lP();Of(l)}else o.connect()}}});return b};pui.ide.cQ=function(){var b={id:"_Ribon_EditMenu",title:"Edit",layout:"fit",iconCls:pui.flatlook?"editFlat":"edit",tbar:[{xtype:"buttongroup",columns:4,title:"Clipboard",id:"_Ribbon_Edit_Clipboard",items:[{text:"Select All",scale:"medium",rowspan:2,icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/select-all.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/select_all.png",iconAlign:"left",cls:"x-btn-as-arrow",handler:function(){var a=Ext.getCmp("centerPanel").getActiveTab();
3364
+ pui.ide.zf,q=Lf(o,i);if(pui.isCloud)q.name=Mf(o,q.name);var l=o.xe[q.name];l instanceof pui.ide.Sf||(l=Nf(o,q,i));Of(l,true);if(o.vg){o.lP();Pf(l)}else o.connect()}}});return b};pui.ide.cQ=function(){var b={id:"_Ribon_EditMenu",title:"Edit",layout:"fit",iconCls:pui.flatlook?"editFlat":"edit",tbar:[{xtype:"buttongroup",columns:4,title:"Clipboard",id:"_Ribbon_Edit_Clipboard",items:[{text:"Select All",scale:"medium",rowspan:2,icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/select-all.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/select_all.png",iconAlign:"left",cls:"x-btn-as-arrow",handler:function(){var a=Ext.getCmp("centerPanel").getActiveTab();
3365
3365
  if(a.Ja||a.fileTab)if(a.Ab)a.editor.selectAll();else{var c=a.editor.getModifiedEditor?a.editor.getModifiedEditor().getModel():a.editor.getModel(),d=c.getLineCount();c=c.getLineMaxColumn(d);a.editor.setSelection({endColumn:c,endLineNumber:d,startColumn:1,startLineNumber:1})}else T.designer.selectAll()}},{text:"&nbsp;Undo",scale:"small",id:"_Ribbon_Edit_Undo",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/undo.png":"/profoundui/proddata/images/icons/undo.png",iconAlign:"left",handler:function(){var a=
3366
3366
  Ext.getCmp("centerPanel").getActiveTab();if(a.Ja||a.fileTab){a.Ab?a.editor.undo():(a.editor.getModifiedEditor?a.editor.getModifiedEditor().getModel():a.editor.getModel()).undo();pui.ide.refreshRibbon()}else T.designer.s.s()}},{text:"Cut",scale:"medium",id:"_Ribbon_Edit_Cut",rowspan:2,icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/cut.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/cut.png",iconAlign:"left",cls:"x-btn-as-arrow",handler:function(){var a=Ext.getCmp("centerPanel").getActiveTab();
3367
3367
  a.Ja||a.fileTab?a.editor.G0():T.designer.Ha("cut")}},{text:"Copy",scale:"small",id:"_Ribbon_Edit_Copy",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/copy.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/page_copy.png",iconAlign:"left",handler:function(){var a=Ext.getCmp("centerPanel").getActiveTab();a.Ja||a.fileTab?a.editor.copy():T.designer.Ha("copy")}},{text:"&nbsp;Redo",scale:"small",id:"_Ribbon_Edit_Redo",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/redo.png":
@@ -3390,10 +3390,10 @@ for(var d=T.designer.selection.e,e=0;e<d.length;e++){var f=d[e].b;c.b=f;var g=f.
3390
3390
  scale:"small",iconAlign:"left",handler:function(){pui.iD("dark");pui.ide.refreshRibbon()}}]},{xtype:"buttongroup",columns:1,title:pui.nodedesigner?"Profound.js":"Profound UI",items:[{text:"&nbsp;Exit&nbsp;&nbsp;&nbsp;&nbsp;",scale:"medium",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/exit.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/exit2.gif",iconAlign:"left",cls:"x-btn-as-arrow",handler:pui.ide.Vt}]}]};pui.isCloud&&b.tbar.pop();return b};pui.ide.bQ=function(){var b={id:"_Ribon_DesignMenu",title:"Design",layout:"fit",iconCls:pui.flatlook?"designFlat":"design-icon",tbar:[{xtype:"buttongroup",columns:4,title:"Canvas",items:[{text:"Canvas Size",hidden:!MOBILE_LICENSE,rowspan:2,scale:"medium",iconCls:"add16",iconAlign:"left",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/canvas-size.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/canvas_size.png",arrowAlign:"bottom",listeners:{menushow:function(a,c){c.items.length!=
3391
3391
  0&&c.removeAll();for(var d=te.ni(),e=false,f=0;f<pui.ide.canvasSizes.length;f++){var g=pui.ide.canvasSizes[f],h=false;if(g.width==d.width&&g.height==d.height)e=h=true;else if(!e&&g.width==d.height&&g.height==d.width)h=true;c.addItem({text:g.description,group:"SizeCanvas",checked:h,size:g,handler:function(){te.Me(this.size.width,this.size.height);T.zoom(T.mf);te.refresh()}})}c.addItem({text:"Edit Sizes...",group:"SizeCanvas",checked:false,handler:function(){pui.ide.r.aV()}})}},menu:new Ext.menu.Menu({listeners:{click:qa()},
3392
3392
  items:[]})},{text:"Rotate",hidden:!MOBILE_LICENSE,scale:"medium",id:"_Ribbon_Design_Rotate",rowspan:2,iconCls:"rotate",iconAlign:"left",cls:"x-btn-as-arrow",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/rotate.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/rotate_canvas.png",handler:function(){te.kZ()}},{text:"Snap To Grid",rowspan:2,scale:"medium",iconCls:"add16",iconAlign:"left",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/snap-to-grid.png":"/profoundui/proddata/images/dspfdesigner/icons24x24/snap_to_grid.png",
3393
- arrowAlign:"bottom",listeners:{menushow:function(a,c){var d=If.get("snapToGrid",5);d=parseInt(d);var e=c.items.items;if(d==5)e[1].setChecked(true);else if(d==10)e[2].setChecked(true);else if(d==15)e[3].setChecked(true);else d==20?e[4].setChecked(true):e[0].setChecked(true)}},menu:new Ext.menu.Menu({listeners:{click:function(a,c){if(c.text!="None"){var d=parseInt(c.text.split(" x ")[0]);If.set("snapToGrid",d)}else If.set("snapToGrid",0);If.save()}},items:[{text:"None",group:"SnapToGrid",checked:false,
3393
+ arrowAlign:"bottom",listeners:{menushow:function(a,c){var d=Jf.get("snapToGrid",5);d=parseInt(d);var e=c.items.items;if(d==5)e[1].setChecked(true);else if(d==10)e[2].setChecked(true);else if(d==15)e[3].setChecked(true);else d==20?e[4].setChecked(true):e[0].setChecked(true)}},menu:new Ext.menu.Menu({listeners:{click:function(a,c){if(c.text!="None"){var d=parseInt(c.text.split(" x ")[0]);Jf.set("snapToGrid",d)}else Jf.set("snapToGrid",0);Jf.save()}},items:[{text:"None",group:"SnapToGrid",checked:false,
3394
3394
  handler:function(){T.designer.co(0,0)}},{text:"5 x 5",group:"SnapToGrid",checked:false,handler:function(){T.designer.co(5,5)}},{text:"10 x 10",group:"SnapToGrid",checked:false,handler:function(){T.designer.co(10,10)}},{text:"15 x 15",group:"SnapToGrid",checked:false,handler:function(){T.designer.co(15,15)}},{text:"20 x 20",group:"SnapToGrid",checked:false,handler:function(){T.designer.co(20,20)}}]})},{text:"Show Grid",rowspan:2,scale:"medium",iconCls:"add16",iconAlign:"left",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/24x24/show-grid.png":
3395
- "/profoundui/proddata/images/dspfdesigner/icons24x24/show_grid.png",arrowAlign:"bottom",listeners:{menushow:function(a,c){var d=If.get("showGrid",20);d=parseInt(d);var e=c.items.items;if(d==10)e[1].setChecked(true);else if(d==20)e[2].setChecked(true);else if(d==30)e[3].setChecked(true);else if(d==40)e[4].setChecked(true);else d==50?e[5].setChecked(true):e[0].setChecked(true)}},menu:new Ext.menu.Menu({listeners:{click:function(a,c){if(c.text!="None"){var d=parseInt(c.text.split(" x ")[0]);If.set("showGrid",
3396
- d)}else If.set("showGrid",0);If.save()}},items:[{text:"None",group:"ShowGrid",checked:false,handler:function(){T.designer.im(0,0)}},{text:"10 x 10",group:"ShowGrid",checked:false,handler:function(){T.designer.im(10,10)}},{text:"20 x 20",group:"ShowGrid",checked:true,handler:function(){T.designer.im(20,20)}},{text:"30 x 30",group:"ShowGrid",checked:false,handler:function(){T.designer.im(30,30)}},{text:"40 x 40",group:"ShowGrid",checked:false,handler:function(){T.designer.im(40,40)}},{text:"50 x 50",
3395
+ "/profoundui/proddata/images/dspfdesigner/icons24x24/show_grid.png",arrowAlign:"bottom",listeners:{menushow:function(a,c){var d=Jf.get("showGrid",20);d=parseInt(d);var e=c.items.items;if(d==10)e[1].setChecked(true);else if(d==20)e[2].setChecked(true);else if(d==30)e[3].setChecked(true);else if(d==40)e[4].setChecked(true);else d==50?e[5].setChecked(true):e[0].setChecked(true)}},menu:new Ext.menu.Menu({listeners:{click:function(a,c){if(c.text!="None"){var d=parseInt(c.text.split(" x ")[0]);Jf.set("showGrid",
3396
+ d)}else Jf.set("showGrid",0);Jf.save()}},items:[{text:"None",group:"ShowGrid",checked:false,handler:function(){T.designer.im(0,0)}},{text:"10 x 10",group:"ShowGrid",checked:false,handler:function(){T.designer.im(10,10)}},{text:"20 x 20",group:"ShowGrid",checked:true,handler:function(){T.designer.im(20,20)}},{text:"30 x 30",group:"ShowGrid",checked:false,handler:function(){T.designer.im(30,30)}},{text:"40 x 40",group:"ShowGrid",checked:false,handler:function(){T.designer.im(40,40)}},{text:"50 x 50",
3397
3397
  group:"ShowGrid",checked:false,handler:function(){T.designer.im(50,50)}}]})},{text:"100%",id:"toolbarZoomMenu",rowspan:2,scale:"medium",iconCls:"zoommenu"+(pui.flatlook?" flatlook":""),iconAlign:"left",arrowAlign:"bottom",listeners:{menushow:function(a,c){var d=c.items.items;d instanceof Array&&d.every(function(e){if(parseFloat(e.text)==T.mf){e.setChecked(true);return false}return true})}},menu:new Ext.menu.Menu({listeners:{click:function(a,c){T.zoom(parseFloat(c.text))}},items:pui.ide.Us.map(function(a){return{text:a+
3398
3398
  "%",group:"Zoom",checked:false}})})}]},{xtype:"buttongroup",columns:9,title:"Elements",items:[{text:"Remove",scale:"small",id:"_Ribbon_Design_Remove",iconAlign:"left",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/remove-2.png":"/profoundui/proddata/images/icons/remove.png",handler:function(){T.designer.s.Hd("Remove "+T.designer.selection.Rg());T.designer.Ii()}},{text:"Duplicate",scale:"small",id:"_Ribbon_Design_Duplicate",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/duplicate.png":
3399
3399
  "/profoundui/proddata/images/icons/duplicate.png",iconAlign:"left",handler:function(){T.designer.ol();T.designer.Xi()}},{text:"Show",scale:"small",id:"_Ribbon_Design_Show",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/show.png":"/profoundui/proddata/images/icons/show.png",iconAlign:"left",handler:function(){if(T.designer.zi("visibility"))if(confirm("The visibility property of one or more of the selected widgets has been bound to a field. If you continue, the field will be un-bound.")===
@@ -3444,15 +3444,15 @@ pui.cloud.user)?Ext.getCmp("_Ribbon_Home_restoreBackup").show():Ext.getCmp("_Rib
3444
3444
  true);c("fork",false);c("restartServer",false);c("viewLogs",false);c("viewActiveSessions",false)}else{var u=pui.ide.QT();u.SW?f.setText("Update"):f.setText("Settings...");f.setIconClass("btn-cloud-settings");if(u.Ig){c("saveAs",true);c("publish",true);if(!pui.cloud.ws.owner){f.setText("Publish...");f.setIconClass("btn-cloud-publish")}}else{c("saveAs",false);d=false;c("publish",false)}c("fork",true);c("launchThisApp",true);c("restartServer",true);c("viewLogs",true);c("viewActiveSessions",true)}}c("save",
3445
3445
  d);if((b.fileTab||b.Ja)&&b.readOnly)c("saveAs",false);c("startdebug",!b.Ja&&(b.apiTab||b.mo||b.pjsModuleTab))}if(e=="Edit"){Ext.getCmp("_Ribbon_Edit_SwitchTheme").hide();if(b.fileTab){Ext.getCmp("_Ribbon_Edit_Formatting").hide();Ext.getCmp("_Ribbon_Edit_SwitchView").hide()}else{Ext.getCmp("_Ribbon_Edit_SwitchView").show();b.Ja||b.apiTab||b.pjsModuleTab?Ext.getCmp("_Ribbon_Edit_Formatting").hide():Ext.getCmp("_Ribbon_Edit_Formatting").show();c("Font",o);t!=null?Ext.getCmp("_Ribbon_Edit_Font").setValue(t):
3446
3446
  Ext.getCmp("_Ribbon_Edit_Font").setValue("");c("FontUp",o);c("FontDown",o);c("Bold",o);c("Italic",o);c("Underline",o);c("AlignLeft",o);c("AlignCenter",o);c("AlignRight",o);c("Clear",o);c("Color",o);c("CopyFormatting",o&&!q);c("PasteFormatting",o&&T.Xt!=null);d=Ext.getCmp("_Ribbon_Edit_Design");c("Design",b.Ja);if(b.Ja){d.setText("&nbsp;Design&nbsp;");d.removeClass("x-btn-pressed")}else{d.setText("&nbsp;<span style='color:white;'>Design</span>&nbsp;");d.addClass("x-btn-pressed")}d=Ext.getCmp("_Ribbon_Edit_Source");
3447
- c("Source",!b.Ja);if(b.Ja){d.setText("&nbsp;<span style='color:white;'>Source</span>&nbsp;");d.addClass("x-btn-pressed")}else{d.setText("&nbsp;Source&nbsp;");d.removeClass("x-btn-pressed")}}if(window.monaco&&(b.fileTab||b.Ja||b.apiTab||b.pjsModuleTab)){Ext.getCmp("_Ribbon_Edit_SwitchTheme").show();d=If.get("theme",pui.isCloud?"dark":"light");c("LightTheme",d!="light");f=Ext.getCmp("_Ribbon_Edit_LightTheme");if(d!="light"){f.setText("&nbsp;Light&nbsp;");f.removeClass("x-btn-pressed")}else{f.setText("&nbsp;<span style='color:white;'>Light</span>&nbsp;");
3447
+ c("Source",!b.Ja);if(b.Ja){d.setText("&nbsp;<span style='color:white;'>Source</span>&nbsp;");d.addClass("x-btn-pressed")}else{d.setText("&nbsp;Source&nbsp;");d.removeClass("x-btn-pressed")}}if(window.monaco&&(b.fileTab||b.Ja||b.apiTab||b.pjsModuleTab)){Ext.getCmp("_Ribbon_Edit_SwitchTheme").show();d=Jf.get("theme",pui.isCloud?"dark":"light");c("LightTheme",d!="light");f=Ext.getCmp("_Ribbon_Edit_LightTheme");if(d!="light"){f.setText("&nbsp;Light&nbsp;");f.removeClass("x-btn-pressed")}else{f.setText("&nbsp;<span style='color:white;'>Light</span>&nbsp;");
3448
3448
  f.addClass("x-btn-pressed")}c("DarkTheme",d!="dark");f=Ext.getCmp("_Ribbon_Edit_DarkTheme");if(d!="dark"){f.setText("&nbsp;Dark&nbsp;");f.removeClass("x-btn-pressed")}else{f.setText("&nbsp;<span style='color:white;'>Dark</span>&nbsp;");f.addClass("x-btn-pressed")}}}if(e=="Design"){a();c("Size",q);c("Align",{rW:o,cN:q,YW:n});c("Anchor",o&&!n);c("PercentWidth",o&&!n);c("PercentHeight",o&&!n);c("PercentLeft",o&&!n);c("PercentTop",o&&!n);c("PercentRight",o&&!n);c("PercentBottom",o&&!n);c("Remove",o);
3449
3449
  c("Duplicate",o);c("ChangeTo",o&&!n);c("Show",o);c("Hide",o);c("Lock",o);c("Unlock",o);c("BringToFront",o);c("SendToBack",o);c("Rotate",pui.designer.ia!=null)}if(b.fileTab||b.Ja||b.apiTab||b.pjsModuleTab){Ext.getCmp("_RibbonTabPanel").hideTabStripItem("_Ribon_DesignMenu");if(f=Ext.getCmp("widgetsPanel")){f.hideTabStripItem("widgetSets");f.hideTabStripItem("treePanel");if((d=f.activeTab)&&(d.id=="widgetSets"||d.id=="treePanel"))f.setActiveTab(Ext.getCmp("fileTree"))}if(b.apiTab){Ext.getCmp("ideProps").hide();
3450
3450
  Ext.getCmp("ideRoutineProps").hide();Ext.getCmp("ideApiProps").show();f=Ext.getCmp("RecFormatsTabPanel");f.hideTabStripItem("recordFormatTree");f.hideTabStripItem("recordFormatFields");f.hideTabStripItem("recordFormatElements");f.hideTabStripItem("recordFormatWorkflows");f.hideTabStripItem("recordFormatModuleRoutines");f.unhideTabStripItem("recordFormatAPIs");f.setActiveTab(Ext.getCmp("recordFormatAPIs"))}if(b.pjsModuleTab){Ext.getCmp("ideProps").hide();Ext.getCmp("ideApiProps").hide();Ext.getCmp("ideRoutineProps").show();
3451
3451
  f=Ext.getCmp("RecFormatsTabPanel");f.hideTabStripItem("recordFormatTree");f.hideTabStripItem("recordFormatFields");f.hideTabStripItem("recordFormatElements");f.hideTabStripItem("recordFormatWorkflows");f.hideTabStripItem("recordFormatAPIs");f.unhideTabStripItem("recordFormatModuleRoutines");f.setActiveTab(Ext.getCmp("recordFormatModuleRoutines"))}}else{Ext.getCmp("ideApiProps").hide();Ext.getCmp("ideRoutineProps").hide();Ext.getCmp("ideProps").show();Ext.getCmp("_RibbonTabPanel").unhideTabStripItem("_Ribon_DesignMenu");
3452
3452
  Ext.getCmp("widgetsPanel").unhideTabStripItem("widgetSets");Ext.getCmp("widgetsPanel").unhideTabStripItem("treePanel");f=Ext.getCmp("RecFormatsTabPanel");f.unhideTabStripItem("recordFormatTree");f.unhideTabStripItem("recordFormatFields");f.unhideTabStripItem("recordFormatElements");pui.wf.G?f.unhideTabStripItem("recordFormatWorkflows"):f.hideTabStripItem("recordFormatWorkflows");if((d=f.activeTab)&&(d.id=="recordFormatAPIs"||d.id=="recordFormatModuleRoutines"))f.setActiveTab(Ext.getCmp("recordFormatTree"));
3453
- f.hideTabStripItem("recordFormatAPIs");f.hideTabStripItem("recordFormatModuleRoutines")}}};pui.ide.eZ=function(b){var a=this,c=[{id:"name",header:"Name",width:150,dataIndex:"inputData",renderer:function(e,f,g,h,m,k){e="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+e.name+"</div></span>";f=[];if(g.data.parentID>=0){k=Jf(g.data.parentID,k);for(m=0;m<k.length;m++)f.push('<img alt="" style="'+k[m]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}f=f.join("");k='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';
3453
+ f.hideTabStripItem("recordFormatAPIs");f.hideTabStripItem("recordFormatModuleRoutines")}}};pui.ide.eZ=function(b){var a=this,c=[{id:"name",header:"Name",width:150,dataIndex:"inputData",renderer:function(e,f,g,h,m,k){e="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+e.name+"</div></span>";f=[];if(g.data.parentID>=0){k=Kf(g.data.parentID,k);for(m=0;m<k.length;m++)f.push('<img alt="" style="'+k[m]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}f=f.join("");k='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';
3454
3454
  if(g.data.isLastTreeItem)k+="-end";if(g.data.inputData.type=="object")k+="-minus\" onclick=\"pui.ide.toggleGridRow('apiInputsGrid', "+h+")";k+='"></img>';return f+k+e}},{id:"type",header:"Type",width:50,dataIndex:"inputData",renderer:pui.ide.Rm("type")},{id:"from",header:"From",width:50,dataIndex:"inputData",renderer:pui.ide.Rm("from")},{id:"required",header:"Required",width:50,dataIndex:"inputData",renderer:pui.ide.Ht("required")},{id:"multipleValues",header:"Multiple",width:50,dataIndex:"inputData",
3455
- renderer:pui.ide.Ht("multipleValues")},{id:"deprecated",header:"Deprecated",width:50,dataIndex:"inputData",hidden:true,renderer:pui.ide.Ht("deprecated")},{id:"description",header:"Description",width:200,dataIndex:"inputData",renderer:pui.ide.Rm("description")}],d=[{id:"name",header:"Name",width:150,dataIndex:"outputData",renderer:function(e,f,g,h,m,k){e="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+e.name+"</div></span>";f=[];if(g.data.parentID>=0){k=Jf(g.data.parentID,
3455
+ renderer:pui.ide.Ht("multipleValues")},{id:"deprecated",header:"Deprecated",width:50,dataIndex:"inputData",hidden:true,renderer:pui.ide.Ht("deprecated")},{id:"description",header:"Description",width:200,dataIndex:"inputData",renderer:pui.ide.Rm("description")}],d=[{id:"name",header:"Name",width:150,dataIndex:"outputData",renderer:function(e,f,g,h,m,k){e="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+e.name+"</div></span>";f=[];if(g.data.parentID>=0){k=Kf(g.data.parentID,
3456
3456
  k);for(m=0;m<k.length;m++)f.push('<img alt="" style="'+k[m]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}f=f.join("");k='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(g.data.isLastTreeItem)k+="-end";if(g.data.outputData.type=="object")k+="-minus\" onclick=\"pui.ide.toggleGridRow('apiOutputsGrid', "+h+")";k+='"></img>';return f+k+e}},{id:"type",header:"Type",width:50,dataIndex:"outputData",renderer:pui.ide.Rm("type")},
3457
3457
  {id:"multipleValues",header:"Multiple",width:50,dataIndex:"outputData",renderer:pui.ide.Ht("multipleValues")},{id:"deprecated",header:"Deprecated",width:50,dataIndex:"outputData",hidden:true,renderer:pui.ide.Ht("deprecated")},{id:"description",header:"Description",width:150,dataIndex:"outputData",renderer:pui.ide.Rm("description")}];a.panel=new Ext.TabPanel({region:"south",activeTab:0,tabPosition:"top",height:b,border:true,margin:0,padding:0,split:true,items:[new Ext.Panel({title:"Input Parameters",
3458
3458
  layout:"fit",header:false,items:[new Ext.grid.GridPanel({closable:false,autoScroll:true,border:false,frame:false,cls:"x-tree-lines",store:new Ext.data.JsonStore({autoDestroy:true,root:"data",fields:["level","parentID","inputData","isLastTreeItem","collapsed"],listeners:{load:function(e){pui.ide.jp(e,a.panel.apiInputsGrid,"inputData")}}}),viewConfig:{forceFit:true,autoFill:true},columns:c,tbar:[{tooltip:"Add Parameter",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/add.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/add.png",
@@ -3477,14 +3477,14 @@ onNodeOver:function(f,g,h,m){f=e.getView().findRowIndex(f);f=e.getStore().getAt(
3477
3477
  0){h=e.getStore().getAt(n.parentID);nparent=h.data.outputData;ncolProp="children"}if(n.nj!=k.nj){h=nparent[ncolProp].findIndex(function(i){return i.name==k.outputData.name});if(h>=0){Ext.Msg.alert("Error","A parameter with that same name already exists here.");return}}h=m[g].findIndex(function(i){return i.name==k.outputData.name});h>=0&&m[g].splice(h,1);h=nparent[ncolProp].findIndex(function(i){return i.name==n.outputData.name});if(h>=0){pd()-f.getBoundingClientRect().y>f.getBoundingClientRect().height/
3478
3478
  2&&h++;f=nparent[ncolProp].slice(0,h);m=nparent[ncolProp].slice(h);nparent[ncolProp].length=0;nparent[ncolProp]=f.concat(k.outputData).concat(m)}pui.ide.fa();a.nk()}})},beforedestroy:function(e){e&&e.dropZone&&e.dropZone.unreg();return true},rowcontextmenu:function(e,f,g){e=a.panel.apiOutputsGrid;e.getSelectionModel().selectRow(f);e.getView().ensureVisible(f);f=e.getStore().getAt(f).data.outputData;e=e.getTopToolbar();var h=[];f.type=="object"&&h.push(new Ext.menu.Item({text:"Add Child Parameter",
3479
3479
  icon:e.items.items[0].icon,handler:e.items.items[0].handler}));h.push(new Ext.menu.Item({text:e.items.items[1].tooltip,icon:e.items.items[1].icon,handler:e.items.items[1].handler}));h.push(new Ext.menu.Item({text:e.items.items[2].tooltip,icon:e.items.items[2].icon,handler:e.items.items[2].handler}));(new Ext.menu.Menu({items:h})).showAt(g.getXY());g.stopEvent()},rowdblclick:function(e,f,g){e.getTopToolbar().items.items[1].handler(g)}}})],listeners:{added:function(e){e.updateFields=e.updateFields||
3480
- function(){a.nk()}}}})],listeners:{bodyresize:function(e,f,g){if(e.isResizing!=true){e=Ext.getCmp("centerPanel").getHeight();if(typeof g=="number"){g+=29;g=parseInt(g/e*1E4)/1E4;if(g>0.02&&g<0.8){If.set("apiParmsPanelHeight",g);If.save()}}}},added:function(e){e.inputsPanel=e.items.items[0];e.apiInputsGrid=e.inputsPanel.items.items[0];e.outputsPanel=e.items.items[1];e.apiOutputsGrid=e.outputsPanel.items.items[0]}}});a.Hi=function(){var e=Ext.getCmp("centerPanel").getActiveTab(),f=a.panel.apiInputsGrid,
3480
+ function(){a.nk()}}}})],listeners:{bodyresize:function(e,f,g){if(e.isResizing!=true){e=Ext.getCmp("centerPanel").getHeight();if(typeof g=="number"){g+=29;g=parseInt(g/e*1E4)/1E4;if(g>0.02&&g<0.8){Jf.set("apiParmsPanelHeight",g);Jf.save()}}}},added:function(e){e.inputsPanel=e.items.items[0];e.apiInputsGrid=e.inputsPanel.items.items[0];e.outputsPanel=e.items.items[1];e.apiOutputsGrid=e.outputsPanel.items.items[0]}}});a.Hi=function(){var e=Ext.getCmp("centerPanel").getActiveTab(),f=a.panel.apiInputsGrid,
3481
3481
  g=f.getTopToolbar();g.items.items[1].disable();g.items.items[2].disable();var h=[],m=f.getStore();if(f=f.getSelectionModel().getSelected())m.positionTo=f.data.inputData;function k(n,i,o){if(n&&n.length){o=o||0;for(var q=0;q<n.length;q++){var l={};if(o===0&&typeof n[q].from=="string"&&n[q].from.trim().match(/^path$/i))n[q].required=true;else if(typeof n.required=="string")n[q].required=n[q].required.trim().match(/true$/i)!=null;if(typeof n.multipleValues=="string"&&n[q].multipleValues.trim().match(/true$/i)!=
3482
3482
  null)n[q].multipleValues=true;if(typeof n.deprecated=="string"&&n[q].deprecated.trim().match(/true$/i)!=null)n[q].deprecated=true;n[q].required&&n[q].required!==true&&delete n[q].required;n[q].multipleValues&&n[q].multipleValues!==true&&delete n[q].multipleValues;n[q].deprecated&&n[q].deprecated!==true&&delete n[q].deprecated;l.parentID=i?i.id:-1;l.level=o;l.inputData=n[q];l.isLastTreeItem=q==n.length-1;l.id=h.push(l)-1;if(m.positionTo==n[q])m.positionTo=l.id;n[q].children&&n[q].children.length&&
3483
3483
  k(n[q].children,l,o+1)}}}k(e.routeRecord.json.inputs);m.loadData({data:h},false)};a.nk=function(){var e=Ext.getCmp("centerPanel").getActiveTab(),f=a.panel.apiOutputsGrid,g=f.getTopToolbar();g.items.items[1].disable();g.items.items[2].disable();var h=[],m=f.getStore();if(f=f.getSelectionModel().getSelected())m.positionTo=f.data.outputData;function k(n,i,o){if(n&&n.length){o=o||0;for(var q=0;q<n.length;q++){var l={};if(typeof n.multipleValues=="string"&&n[q].multipleValues.trim().match(/true$/i)!=null)n[q].multipleValues=
3484
3484
  true;if(typeof n.deprecated=="string"&&n[q].deprecated.trim().match(/true$/i)!=null)n[q].deprecated=true;n[q].multipleValues&&n[q].multipleValues!==true&&delete n[q].multipleValues;n[q].deprecated&&n[q].deprecated!==true&&delete n[q].deprecated;l.parentID=i?i.id:-1;l.level=o;l.outputData=n[q];l.isLastTreeItem=q==n.length-1;l.id=h.push(l)-1;if(m.positionTo==n[q])m.positionTo=l.id;n[q].children&&n[q].children.length&&k(n[q].children,l,o+1)}}}k(e.routeRecord.json.outputs);m.loadData({data:h},false)};
3485
3485
  a.Ev=function(e){var f=a.panel.apiInputsGrid.getStore(),g=null;if(e.parentID>=0)g=f.getAt(e.parentID).data;g=g?g.inputData.children:tab.routeRecord.json.inputs||[];var h=g.findIndex(function(m){return m==e.inputData});if(h>=0){g.splice(h,1);pui.ide.fa();f.positionTo=e.id}};a.Fv=function(e){var f=a.panel.apiOutputsGrid.getStore(),g=null;if(e.parentID>=0)g=f.getAt(e.parentID).data;g=g?g.outputData.children:tab.routeRecord.json.outputs||[];var h=g.findIndex(function(m){return m==e.outputData});if(h>=
3486
3486
  0){g.splice(h,1);pui.ide.fa();f.positionTo=e.id}};a.updateFields=function(){a.panel.inputsPanel.updateFields();a.panel.outputsPanel.updateFields()}};pui.ide.i_=function(b){function a(){for(var k=Ext.getCmp("centerPanel").getActiveTab().routeRecord.json.schema||[],n=[],i=0;i<k.length;++i)e.find(function(o){return o==k[i].tag})&&typeof k[i].name==="string"&&k[i].name.trim()&&n.push("tns:"+k[i].name);return n}function c(){for(var k=Ext.getCmp("centerPanel").getActiveTab().routeRecord.json.schema||[],n=[],i=0;i<k.length;++i)k[i].tag=="element"&&typeof k[i].name==="string"&&k[i].name.trim()&&n.push("tns:"+k[i].name);return n}var d=this,e=["complexType",
3487
- "simpleType"],f=["xsd:boolean","xsd:integer","xsd:decimal","xsd:string","xsd:duration","xsd:dateTime","xsd:date","xsd:time"],g=[{id:"tag",header:"Tag",width:150,dataIndex:"schemaData",renderer:function(k,n,i,o,q,l){k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+k.tag+"</div></span>";n=[];if(i.data.parentID>=0){l=Jf(i.data.parentID,l);for(q=0;q<l.length;q++)n.push('<img alt="" style="'+l[q]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}n=
3487
+ "simpleType"],f=["xsd:boolean","xsd:integer","xsd:decimal","xsd:string","xsd:duration","xsd:dateTime","xsd:date","xsd:time"],g=[{id:"tag",header:"Tag",width:150,dataIndex:"schemaData",renderer:function(k,n,i,o,q,l){k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+k.tag+"</div></span>";n=[];if(i.data.parentID>=0){l=Kf(i.data.parentID,l);for(q=0;q<l.length;q++)n.push('<img alt="" style="'+l[q]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}n=
3488
3488
  n.join("");l='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(i.data.isLastTreeItem)l+="-end";l+="-minus\" onclick=\"pui.ide.toggleGridRow('apiSchemaGrid', "+o+", 'tag')";l+='"></img>';return n+l+k}},{id:"name",header:"Name",width:100,dataIndex:"schemaData",renderer:function(k,n){n.attr=pui.ide.Wq;var i=k.name;i||(i="<anonymous>");return i}},{id:"type",header:"Type",width:100,dataIndex:"schemaData",renderer:pui.ide.Rm("type")},{id:"_attrs",header:"Attributes",
3489
3489
  width:350,dataIndex:"schemaData",renderer:function(k,n){n.attr=pui.ide.Wq;result_arr=[];for(key in k._attrs)result_arr.push(key+'="'+k._attrs[key]+'"');return result_arr.join(", ")}}],h=[{id:"name",header:"Name",width:150,dataIndex:"inputData",renderer:function(k){return k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+(k.name||"")+"</div></span>"}},{id:"from",header:"From",width:50,dataIndex:"inputData",renderer:pui.ide.Rm("from")},{id:"binding",header:"Binding",
3490
3490
  width:350,dataIndex:"inputData",renderer:function(k,n){n.attr=pui.ide.Wq;return(k.isElement?"element":"type")+"="+k.binding}}],m=[{id:"name",header:"Name",width:150,dataIndex:"outputData",renderer:function(k){return k="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+(k.name||"")+"</div></span>"}},{id:"from",header:"From",width:50,dataIndex:"outputData",renderer:pui.ide.Rm("from")},{id:"binding",header:"Binding",width:350,dataIndex:"outputData",renderer:function(k,
@@ -3517,7 +3517,7 @@ d.Fv(k.json);d.nk()}}}],sm:new Ext.grid.RowSelectionModel({singleSelect:true,lis
3517
3517
  {ddGroup:"ElOutputsGridDD",moveOnly:true,getTargetFromEvent:function(n){return n.getTarget(k.getView().rowSelector)},onNodeOver:function(n,i,o,q){n=k.getView().findRowIndex(n);n=k.getStore().getAt(n);if(q.selections[0].id!=n.id)return Ext.dd.DropZone.prototype.dropAllowed;return Ext.dd.DropZone.prototype.dropNotAllowed},onNodeDrop:function(n,i,o,q){i=k.getView().findRowIndex(n);i=k.getStore().getAt(i);q=q.selections[0];if(q.id==i.id)return false;var l=q.data,s=i.data;q=tab.routeRecord.json.outputs;
3518
3518
  i=q.findIndex(function(t){return t.name===undefined&&l.outputData.name===undefined||t.name==l.outputData.name});i>=0&&q.splice(i,1);i=q.findIndex(function(t){return t.name===undefined&&s.outputData.name===undefined||t.name==s.outputData.name});if(i>=0){pd()-n.getBoundingClientRect().y>n.getBoundingClientRect().height/2&&i++;q.splice(i,0,l.outputData)}pui.ide.fa();d.nk()}})},beforedestroy:function(k){k&&k.dropZone&&k.dropZone.unreg();return true},rowcontextmenu:function(k,n,i){k=d.panel.apiOutputsGrid;
3519
3519
  k.getSelectionModel().selectRow(n);k.getView().ensureVisible(n);n=k.getTopToolbar();k=[];k.push(new Ext.menu.Item({text:n.items.items[1].tooltip,icon:n.items.items[1].icon,handler:n.items.items[1].handler}));k.push(new Ext.menu.Item({text:n.items.items[2].tooltip,icon:n.items.items[2].icon,handler:n.items.items[2].handler}));(new Ext.menu.Menu({items:k})).showAt(i.getXY());i.stopEvent()},rowdblclick:function(k,n,i){k.getTopToolbar().items.items[1].handler(i)}}})],listeners:{added:function(k){k.updateFields=
3520
- k.updateFields||function(){d.nk()}}}})],listeners:{bodyresize:function(k,n,i){if(k.isResizing!=true){k=Ext.getCmp("centerPanel").getHeight();if(typeof i=="number"){i+=29;i=parseInt(i/k*1E4)/1E4;if(i>0.02&&i<0.8){If.set("apiParmsPanelHeight",i);If.save()}}}},added:function(k){k.schemaPanel=k.items.items[0];k.apiSchemaGrid=k.schemaPanel.items.items[0];k.inputsPanel=k.items.items[1];k.apiInputsGrid=k.inputsPanel.items.items[0];k.outputsPanel=k.items.items[2];k.apiOutputsGrid=k.outputsPanel.items.items[0]}}});
3520
+ k.updateFields||function(){d.nk()}}}})],listeners:{bodyresize:function(k,n,i){if(k.isResizing!=true){k=Ext.getCmp("centerPanel").getHeight();if(typeof i=="number"){i+=29;i=parseInt(i/k*1E4)/1E4;if(i>0.02&&i<0.8){Jf.set("apiParmsPanelHeight",i);Jf.save()}}}},added:function(k){k.schemaPanel=k.items.items[0];k.apiSchemaGrid=k.schemaPanel.items.items[0];k.inputsPanel=k.items.items[1];k.apiInputsGrid=k.inputsPanel.items.items[0];k.outputsPanel=k.items.items[2];k.apiOutputsGrid=k.outputsPanel.items.items[0]}}});
3521
3521
  d.Bv=function(){var k=Ext.getCmp("centerPanel").getActiveTab(),n=d.panel.apiSchemaGrid,i=n.getTopToolbar();i.items.items[1].disable();i.items.items[2].disable();var o=[],q=n.getStore();if(n=n.getSelectionModel().getSelected())q.positionTo=n.data.schemaData;function l(s,t,u){if(s&&s.length){u=u||0;for(var v=0;v<s.length;v++){var w={};w.parentID=t?t.id:-1;w.level=u;w.schemaData=s[v];w.isLastTreeItem=v==s.length-1;w.id=o.push(w)-1;if(q.positionTo==s[v])q.positionTo=w.id;s[v].children&&s[v].children.length&&
3522
3522
  l(s[v].children,w,u+1)}}}l(k.routeRecord.json.schema);q.loadData({data:o},false)};d.Hi=function(){var k=Ext.getCmp("centerPanel").getActiveTab(),n=d.panel.apiInputsGrid,i=n.getTopToolbar();i.items.items[1].disable();i.items.items[2].disable();var o=[],q=n.getStore();if(n=n.getSelectionModel().getSelected())q.positionTo=n.data.inputData;(function(l){if(l&&l.length)for(var s=0;s<l.length;s++){var t={};if(typeof l[s].isElement=="string"&&l[s].isElement.trim().match(/true$/i)!=null)l[s].isElement=true;
3523
3523
  l[s].isElement&&l[s].isElement!==true&&delete l[s].isElement;t.inputData=l[s];t.id=o.push(t)-1;if(q.positionTo==l[s])q.positionTo=t.id}})(k.routeRecord.json.inputs);q.loadData({data:o},false)};d.nk=function(){var k=Ext.getCmp("centerPanel").getActiveTab(),n=d.panel.apiOutputsGrid,i=n.getTopToolbar();i.items.items[1].disable();i.items.items[2].disable();var o=[],q=n.getStore();if(n=n.getSelectionModel().getSelected())q.positionTo=n.data.outputData;(function(l){if(l&&l.length)for(var s=0;s<l.length;s++){var t=
@@ -3528,24 +3528,24 @@ k.outputData});if(o>=0){i.splice(o,1);pui.ide.fa();n.positionTo=k.id}};d.updateF
3528
3528
  */
3529
3529
  Ext.ns("Ext.ux");
3530
3530
  Ext.ux.WH=function(){function b(){var a="overflow: visible; padding: 0; border: none; background: none;",c="position: relative;";c+="top: 2px;";a+="padding-left: 4px; margin-right: 18px;";this.lU=this.ownerCt.layout[this.region].getCollapsedEl().createChild({tag:"div",style:a,cls:"x-panel-header x-panel-header-collapsed",html:'<span style="'+c+'">'+this.title+"</span>"});this.pD=this.lU.first()}this.init=function(a){if(a.collapsible){a.setTitle=Ext.Panel.prototype.setTitle.createSequence(function(c){if(this.rendered&&this.pD)if(this.pD.dom)this.pD.dom.innerHTML=
3531
- c});a.on("render",function(){this.ownerCt.rendered&&this.ownerCt.layout.Z0?b.call(a):this.ownerCt.on("afterlayout",b,a,{single:true})},a)}};return this}();pui.ide.qo=function(){this.vg=false;this.xe={};this.oh=this.Qw;this.Fk=false;var b="/ide/";if(pui.isCloud)b+="lowcode-debug/"+pui.cloud.ws.id;else{var a=/\/ide\/(\w+)/.exec(document.location.pathname);if(Array.isArray(a)&&typeof a[1]==="string")b+=a[1]+"/";b+="lowcode-debug"}this.uri=pui.ide.vy(b);pui.vo.call(this,this.uri);Pf(this)};pui.ide.qo.prototype=Object.create(pui.vo.prototype,{constructor:{value:pui.ide.qo},status:{get:va("oh")},Qw:{value:0},at:{value:1},Aq:{value:2},$s:{value:3}});
3532
- pui.ide.qo.prototype.destroy=function(){this.disconnect();delete this.nl;delete this.xe;delete this.vg};function Qf(b,a){var c="";switch(a){case b.Qw:c="Not Running";break;case b.at:c="Running";break;case b.Aq:c="Paused at step or breakpoint";break;case b.$s:c="Waiting on user";break}return c}function Lf(b,a){for(var c=a.split(pui.dirSeparator),d=0,e=c.length;d<e;d++)if(/^modules$/i.test(c[d])&&c.length>d+2){c.splice(0,d+2);break}return c.join(pui.dirSeparator)}
3533
- function Kf(b,a){var c={name:a.wd.url};if(a.pjsModuleTab&&a.pjsModule)c.vs=a.pjsModule.routines;else if(a.apiTab&&a.apiRoutes)c.vs=a.apiRoutes.routes;else if(a.mo)c.Ov=a.mo.uy();return c}function Rf(b,a,c){b={name:a};if(Array.isArray(c.routines))b.vs=c.routines;else if(Array.isArray(c.mZ))b.vs=c.mZ;else if(typeof c.routines==="object"&&c.routines!==null)b.Ov=c.routines;else if(typeof c.logic==="object"&&c.logic!==null)b.Ov=c.logic;return b}
3534
- function Mf(b,a,c){if(pui.isCloud)a.name=Lf(b,a.name);var d=a.name;if(b.xe[d]==null)b.xe[d]=new pui.ide.Sf(a,b);b=b.xe[d];c&&Sf(b,c);return b}function Tf(b,a,c){if(pui.isCloud){a=a.replace(/^(\\|\/)/,"");var d=/(\/|\\)modules(\/|\\)ws\w+(\/|\\)(.+)$/i.exec(a);if(d)a=d[4]}var e=/((\/modules\/|\\modules\\).+)$/i;for(var f in b.xe){d=e.exec(f);if(a===f||d&&d[1]===a)Sf(b.xe[f],c)}}
3535
- pui.ide.qo.prototype.handleEvent=function(b){switch(b.type){case "message":try{if(typeof b.data==="object"&&b.data instanceof Blob){b.data.text().then(function(f){this.handleEvent({type:"message",data:f})}.bind(this));return}var a=JSON.parse(b.data);if(a.error)Uf(this,"Error from server: "+a.error);else if(a.info)Uf(this,a.info);else if(a.ready&&a.dbgid){this.nl=a.dbgid;this.vg=true;Vf(this);Wf(this);Uf(this,"Debug session ID:<br>"+this.nl);var c=Ext.getCmp("apiTestPanel");c&&c.refresh()}else if(a.debug_started)Vf(this);
3536
- else if(a.debug_ended)Xf(this);else if(typeof a.breakpoints==="object"&&a.breakpoints!==null&&typeof a.target==="string"&&a.target.length>0){var d=this.xe[a.target];d instanceof pui.ide.Sf&&Yf(d,a.breakpoints)}else if(typeof a.status==="number")Zf(this,a);else typeof a.variables==="object"&&a.variables!==null&&$f(this,a.variables)}catch(e){Uf(this,String(e))}return;case "error":Uf(this,"WebSocket error.");return;case "close":this.vg=false;this.cv()}};
3537
- function Uf(b,a){var c=Ext.getCmp("_south_panel_debug_console");if(c&&c.body&&c.body.dom)c.body.dom.innerHTML+=a+"<br/>";else console.error(a)}function Wf(){var b=Ext.getCmp("_south_panel_debug_console");if(b&&b.body&&b.body.dom)b.body.dom.innerHTML=""}Ba=pui.ide.qo.prototype;Ba.cv=function(){pui.vo.prototype.cv.call(this);Uf(this,"Connection closed.");Xf(this,true);this.vg=false};Ba.send=function(b){this.cc&&this.cc.readyState===1?this.cc.send(JSON.stringify(b)):Uf(this,"Cannot send on an unopened socket for the debugger.")};
3538
- Ba.lP=function(){this.cc&&this.cc.readyState===1?this.cc.send(JSON.stringify({com:"strdbg"})):this.connect()};Ba.iV=function(){if(this.cc&&this.cc.readyState===1)this.cc.send(JSON.stringify({com:"enddbg"}));else{this.vg=false;Xf(this)}};Ba.gS=function(){this.send({com:"endpgm"});for(var b=Ext.getCmp("centerPanel"),a,c=0,d=b.items.items.length;c<d;c++)if((a=b.items.items[c])&&a.sK){b.remove(a,true);break}this.gE&&typeof this.gE.close==="function"&&this.gE.close()};Ba.$w=function(b){this.send({com:b})};
3539
- function ag(b,a){Array.isArray(a)&&b.send({com:"var-get",names:a})}
3540
- function Zf(b,a){var c,d,e=b.oh=a.status;b.Kq.update("Status: "+Qf(b,e));var f=e===b.$s?"Screen: ":"Route/Routine: ",g=a.rt;b.Jq.update(typeof g==="string"?f+g:"");var h=a.step;b.Lq.update(typeof h==="number"&&h!=0?"Step# "+h:"");if(f=b.Oq){f.removeAll();f.commitChanges()}for(c in b.xe){d=b.xe[c];bg(d);cg(d)}f=a.stack;d={target:null,stack:f};c=dg(b,d);d=d.target;if(e==b.Aq){b.xo.enable();b.yo.enable();b.Ao.enable();b.zo.enable();for(var m=0,k=f.length;m<k-1;m++){var n=f[m],i=b.xe[n.loc];if(i instanceof
3541
- pui.ide.Sf){bg(i,n.rtname,n.stepnum,false);cg(i)}}if(d instanceof pui.ide.Sf){d.setActiveTab();eg(d,g,h)}else if(c){f="";if(pui.isCloud)f=pui.PROFOUNDJS_DIR+["","modules",pui.cloud.ws.id,""].join(pui.dirSeparator);Ext.Ajax.request({url:jc("PUI0001109.pgm"),method:"POST",params:{mode:"read",path:f+c,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:""},success:function(o){o=JSON.parse(o.responseText);if(typeof o==="object"&&o!==null){o=Mf(this,Rf(this,c,o));Nf(o);eg(o,g,h);Of(o)}else Uf(this,
3542
- "Failed to parse file data for ",c)}.bind(b),failure:function(o){Uf(this,"Failed to fetch "+c+"; "+o.status+" - "+o.statusText)}.bind(b)})}}else{b.xo.disable();b.yo.disable();b.Ao.disable();b.zo.disable();if(typeof b.Pt==="string"&&e===b.Qw){d=b.xe[b.Pt];delete b.Pt;d instanceof pui.ide.Sf&&d.Dr()}}e===b.Qw?b.EB.disable():b.EB.enable()}
3543
- function $f(b,a){var c=b.Oq;if(c){var d=Ext.data.Record.create([{name:"name"},{name:"val"},{name:"type"}]);for(var e in a){var f=a[e],g=typeof f;if(g==="object")f=JSON.stringify(f);var h=c.find("name",e);if(h>=0){g=c.getAt(h);c.suspendEvents();g.set(e,f);c.resumeEvents();g.commit(true)}else{g=new d({name:e,val:f,type:g});c.add(g)}}c.commitChanges()}}
3544
- function dg(b,a){var c=a.stack,d;a.target=null;var e=b.ut;e&&e.removeAll();var f=c.length;if(f>0){d=c[f-1].loc;a.target=b.xe[d];if(e)for(var g=Ext.data.Record.create([{name:"idx"},{name:"loc"},{name:"rt"},{name:"step"}]),h=0;h<f;h++){var m=c[h];m.rtname=m.rtname||"";m.stepnum=m.stepnum||"";var k=m.loc.split(pui.dirSeparator);k=k.length>0?k[k.length-1]:m.loc.replace(pui.PROFOUNDJS_DIR,"");m=new g({idx:h,loc:k,rt:m.rtname,step:m.stepnum});e.add(m)}}e&&e.commitChanges();return d}
3545
- function Vf(b){b.dt&&b.dt.disable();b.ct&&b.ct.enable();b.xo&&b.xo.disable();b.yo&&b.yo.disable();b.Ao&&b.Ao.disable();b.zo&&b.zo.disable();b.Kq&&b.Kq.update("Status: debug started");b.Jq&&b.Jq.update("Route/Routine: n/a");b.Lq&&b.Lq.update("")}
3546
- function Xf(b,a){b.dt&&b.dt.enable();b.ct&&b.ct.disable();b.xo&&b.xo.disable();b.yo&&b.yo.disable();b.Ao&&b.Ao.disable();b.zo&&b.zo.disable();b.Kq&&b.Kq.update("Status: debug ended");b.Jq&&b.Jq.update("Route/Routine: n/a");b.Lq&&b.Lq.update("");for(var c in b.xe){var d=b.xe[c];bg(d);cg(d);a&&fg(d)}if(b.Oq){b.Oq.removeAll();b.Oq.commitChanges()}if(b.ut){b.ut.removeAll();b.ut.commitChanges()}}
3547
- Ba.Dr=function(b,a){if(b)for(var c in this.xe){var d=/((\/modules\/|\\modules\\).+)$/i.exec(c);if(d&&b.path===d[1]&&b.type==="change"){a=this.xe[c];break}}if(a)if(this.oh===this.at||this.oh===this.Aq||this.oh===this.$s)this.Pt=a.filename;else a.Dr()};function gg(b,a){if(b.oh===b.at||b.oh===b.Aq||b.oh===b.$s){b.Pt=a;return true}delete b.Pt;return false}
3548
- function Pf(b){b.dt=new Ext.Button({tooltip:"Start Debug",icon:"/profoundui/proddata/images/icons/connect.svg",disabled:true,handler:b.lP.bind(b)});b.ct=new Ext.Button({tooltip:"Stop Debug",icon:"/profoundui/proddata/images/icons/disconnect.svg",handler:b.iV.bind(b)});function a(f){var g=Ext.getCmp("_south_panel_debug_tabpnl");if(g)(g=g.getActiveTab())&&g.hi instanceof pui.ide.Sf&&g.hi.run(f.pX===true)}b.IR=new Ext.Button({tooltip:"Run debugged in Designer",icon:"/profoundui/proddata/images/icons/play.svg",
3531
+ c});a.on("render",function(){this.ownerCt.rendered&&this.ownerCt.layout.Z0?b.call(a):this.ownerCt.on("afterlayout",b,a,{single:true})},a)}};return this}();pui.ide.qo=function(){this.vg=false;this.xe={};this.oh=this.Qw;this.Fk=false;var b="/ide/";if(pui.isCloud)b+="lowcode-debug/"+pui.cloud.ws.id;else{var a=/\/ide\/(\w+)/.exec(document.location.pathname);if(Array.isArray(a)&&typeof a[1]==="string")b+=a[1]+"/";b+="lowcode-debug"}this.uri=pui.ide.vy(b);pui.vo.call(this,this.uri);Qf(this)};pui.ide.qo.prototype=Object.create(pui.vo.prototype,{constructor:{value:pui.ide.qo},status:{get:va("oh")},Qw:{value:0},at:{value:1},Aq:{value:2},$s:{value:3}});
3532
+ pui.ide.qo.prototype.destroy=function(){this.disconnect();delete this.nl;delete this.xe;delete this.vg};function Rf(b,a){var c="";switch(a){case b.Qw:c="Not Running";break;case b.at:c="Running";break;case b.Aq:c="Paused at step or breakpoint";break;case b.$s:c="Waiting on user";break}return c}function Mf(b,a){for(var c=a.split(pui.dirSeparator),d=0,e=c.length;d<e;d++)if(/^modules$/i.test(c[d])&&c.length>d+2){c.splice(0,d+2);break}return c.join(pui.dirSeparator)}
3533
+ function Lf(b,a){var c={name:a.wd.url};if(a.pjsModuleTab&&a.pjsModule)c.vs=a.pjsModule.routines;else if(a.apiTab&&a.apiRoutes)c.vs=a.apiRoutes.routes;else if(a.mo)c.Ov=a.mo.uy();return c}function Sf(b,a,c){b={name:a};if(Array.isArray(c.routines))b.vs=c.routines;else if(Array.isArray(c.mZ))b.vs=c.mZ;else if(typeof c.routines==="object"&&c.routines!==null)b.Ov=c.routines;else if(typeof c.logic==="object"&&c.logic!==null)b.Ov=c.logic;return b}
3534
+ function Nf(b,a,c){if(pui.isCloud)a.name=Mf(b,a.name);var d=a.name;if(b.xe[d]==null)b.xe[d]=new pui.ide.Sf(a,b);b=b.xe[d];c&&Tf(b,c);return b}function Uf(b,a,c){if(pui.isCloud){a=a.replace(/^(\\|\/)/,"");var d=/(\/|\\)modules(\/|\\)ws\w+(\/|\\)(.+)$/i.exec(a);if(d)a=d[4]}var e=/((\/modules\/|\\modules\\).+)$/i;for(var f in b.xe){d=e.exec(f);if(a===f||d&&d[1]===a)Tf(b.xe[f],c)}}
3535
+ pui.ide.qo.prototype.handleEvent=function(b){switch(b.type){case "message":try{if(typeof b.data==="object"&&b.data instanceof Blob){b.data.text().then(function(f){this.handleEvent({type:"message",data:f})}.bind(this));return}var a=JSON.parse(b.data);if(a.error)Vf(this,"Error from server: "+a.error);else if(a.info)Vf(this,a.info);else if(a.ready&&a.dbgid){this.nl=a.dbgid;this.vg=true;Wf(this);Xf(this);Vf(this,"Debug session ID:<br>"+this.nl);var c=Ext.getCmp("apiTestPanel");c&&c.refresh()}else if(a.debug_started)Wf(this);
3536
+ else if(a.debug_ended)Yf(this);else if(typeof a.breakpoints==="object"&&a.breakpoints!==null&&typeof a.target==="string"&&a.target.length>0){var d=this.xe[a.target];d instanceof pui.ide.Sf&&Zf(d,a.breakpoints)}else if(typeof a.status==="number")$f(this,a);else typeof a.variables==="object"&&a.variables!==null&&ag(this,a.variables)}catch(e){Vf(this,String(e))}return;case "error":Vf(this,"WebSocket error.");return;case "close":this.vg=false;this.cv()}};
3537
+ function Vf(b,a){var c=Ext.getCmp("_south_panel_debug_console");if(c&&c.body&&c.body.dom)c.body.dom.innerHTML+=a+"<br/>";else console.error(a)}function Xf(){var b=Ext.getCmp("_south_panel_debug_console");if(b&&b.body&&b.body.dom)b.body.dom.innerHTML=""}Ba=pui.ide.qo.prototype;Ba.cv=function(){pui.vo.prototype.cv.call(this);Vf(this,"Connection closed.");Yf(this,true);this.vg=false};Ba.send=function(b){this.cc&&this.cc.readyState===1?this.cc.send(JSON.stringify(b)):Vf(this,"Cannot send on an unopened socket for the debugger.")};
3538
+ Ba.lP=function(){this.cc&&this.cc.readyState===1?this.cc.send(JSON.stringify({com:"strdbg"})):this.connect()};Ba.iV=function(){if(this.cc&&this.cc.readyState===1)this.cc.send(JSON.stringify({com:"enddbg"}));else{this.vg=false;Yf(this)}};Ba.gS=function(){this.send({com:"endpgm"});for(var b=Ext.getCmp("centerPanel"),a,c=0,d=b.items.items.length;c<d;c++)if((a=b.items.items[c])&&a.sK){b.remove(a,true);break}this.gE&&typeof this.gE.close==="function"&&this.gE.close()};Ba.$w=function(b){this.send({com:b})};
3539
+ function bg(b,a){Array.isArray(a)&&b.send({com:"var-get",names:a})}
3540
+ function $f(b,a){var c,d,e=b.oh=a.status;b.Kq.update("Status: "+Rf(b,e));var f=e===b.$s?"Screen: ":"Route/Routine: ",g=a.rt;b.Jq.update(typeof g==="string"?f+g:"");var h=a.step;b.Lq.update(typeof h==="number"&&h!=0?"Step# "+h:"");if(f=b.Oq){f.removeAll();f.commitChanges()}for(c in b.xe){d=b.xe[c];cg(d);dg(d)}f=a.stack;d={target:null,stack:f};c=eg(b,d);d=d.target;if(e==b.Aq){b.xo.enable();b.yo.enable();b.Ao.enable();b.zo.enable();for(var m=0,k=f.length;m<k-1;m++){var n=f[m],i=b.xe[n.loc];if(i instanceof
3541
+ pui.ide.Sf){cg(i,n.rtname,n.stepnum,false);dg(i)}}if(d instanceof pui.ide.Sf){d.setActiveTab();fg(d,g,h)}else if(c){f="";if(pui.isCloud)f=pui.PROFOUNDJS_DIR+["","modules",pui.cloud.ws.id,""].join(pui.dirSeparator);Ext.Ajax.request({url:jc("PUI0001109.pgm"),method:"POST",params:{mode:"read",path:f+c,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:""},success:function(o){o=JSON.parse(o.responseText);if(typeof o==="object"&&o!==null){o=Nf(this,Sf(this,c,o));Of(o);fg(o,g,h);Pf(o)}else Vf(this,
3542
+ "Failed to parse file data for ",c)}.bind(b),failure:function(o){Vf(this,"Failed to fetch "+c+"; "+o.status+" - "+o.statusText)}.bind(b)})}}else{b.xo.disable();b.yo.disable();b.Ao.disable();b.zo.disable();if(typeof b.Pt==="string"&&e===b.Qw){d=b.xe[b.Pt];delete b.Pt;d instanceof pui.ide.Sf&&d.Dr()}}e===b.Qw?b.EB.disable():b.EB.enable()}
3543
+ function ag(b,a){var c=b.Oq;if(c){var d=Ext.data.Record.create([{name:"name"},{name:"val"},{name:"type"}]);for(var e in a){var f=a[e],g=typeof f;if(g==="object")f=JSON.stringify(f);var h=c.find("name",e);if(h>=0){g=c.getAt(h);c.suspendEvents();g.set(e,f);c.resumeEvents();g.commit(true)}else{g=new d({name:e,val:f,type:g});c.add(g)}}c.commitChanges()}}
3544
+ function eg(b,a){var c=a.stack,d;a.target=null;var e=b.ut;e&&e.removeAll();var f=c.length;if(f>0){d=c[f-1].loc;a.target=b.xe[d];if(e)for(var g=Ext.data.Record.create([{name:"idx"},{name:"loc"},{name:"rt"},{name:"step"}]),h=0;h<f;h++){var m=c[h];m.rtname=m.rtname||"";m.stepnum=m.stepnum||"";var k=m.loc.split(pui.dirSeparator);k=k.length>0?k[k.length-1]:m.loc.replace(pui.PROFOUNDJS_DIR,"");m=new g({idx:h,loc:k,rt:m.rtname,step:m.stepnum});e.add(m)}}e&&e.commitChanges();return d}
3545
+ function Wf(b){b.dt&&b.dt.disable();b.ct&&b.ct.enable();b.xo&&b.xo.disable();b.yo&&b.yo.disable();b.Ao&&b.Ao.disable();b.zo&&b.zo.disable();b.Kq&&b.Kq.update("Status: debug started");b.Jq&&b.Jq.update("Route/Routine: n/a");b.Lq&&b.Lq.update("")}
3546
+ function Yf(b,a){b.dt&&b.dt.enable();b.ct&&b.ct.disable();b.xo&&b.xo.disable();b.yo&&b.yo.disable();b.Ao&&b.Ao.disable();b.zo&&b.zo.disable();b.Kq&&b.Kq.update("Status: debug ended");b.Jq&&b.Jq.update("Route/Routine: n/a");b.Lq&&b.Lq.update("");for(var c in b.xe){var d=b.xe[c];cg(d);dg(d);a&&gg(d)}if(b.Oq){b.Oq.removeAll();b.Oq.commitChanges()}if(b.ut){b.ut.removeAll();b.ut.commitChanges()}}
3547
+ Ba.Dr=function(b,a){if(b)for(var c in this.xe){var d=/((\/modules\/|\\modules\\).+)$/i.exec(c);if(d&&b.path===d[1]&&b.type==="change"){a=this.xe[c];break}}if(a)if(this.oh===this.at||this.oh===this.Aq||this.oh===this.$s)this.Pt=a.filename;else a.Dr()};function hg(b,a){if(b.oh===b.at||b.oh===b.Aq||b.oh===b.$s){b.Pt=a;return true}delete b.Pt;return false}
3548
+ function Qf(b){b.dt=new Ext.Button({tooltip:"Start Debug",icon:"/profoundui/proddata/images/icons/connect.svg",disabled:true,handler:b.lP.bind(b)});b.ct=new Ext.Button({tooltip:"Stop Debug",icon:"/profoundui/proddata/images/icons/disconnect.svg",handler:b.iV.bind(b)});function a(f){var g=Ext.getCmp("_south_panel_debug_tabpnl");if(g)(g=g.getActiveTab())&&g.hi instanceof pui.ide.Sf&&g.hi.run(f.pX===true)}b.IR=new Ext.Button({tooltip:"Run debugged in Designer",icon:"/profoundui/proddata/images/icons/play.svg",
3549
3549
  handler:a});b.zI=new Ext.Button({tooltip:"Run debugged in new browser tab",icon:"/profoundui/proddata/images/icons/launch-out.svg",handler:a});b.zI.pX=true;b.EB=new Ext.Button({tooltip:"End Debugged Program",icon:"/profoundui/proddata/images/icons/red-x.svg",disabled:true,handler:b.gS.bind(b)});b.xo=new Ext.Button({tooltip:"Continue",icon:"/profoundui/proddata/images/icons/continue.svg",disabled:true,handler:b.$w.bind(b,"continue")});b.yo=new Ext.Button({tooltip:"Step Into",icon:"/profoundui/proddata/images/icons/step-into.svg",
3550
3550
  disabled:true,handler:b.$w.bind(b,"step-in")});b.Ao=new Ext.Button({tooltip:"Step Over",icon:"/profoundui/proddata/images/icons/step-over.svg",disabled:true,handler:b.$w.bind(b,"step-over")});b.zo=new Ext.Button({tooltip:"Step Out",icon:"/profoundui/proddata/images/icons/step-out.svg",disabled:true,handler:b.$w.bind(b,"step-out")});b.Kq=new Ext.Component({html:"Status: ready to debug",style:{minWidth:"125px"}});b.Jq=new Ext.Component({html:"",style:{minWidth:"150px"}});b.Lq=new Ext.Component({html:"",
3551
3551
  style:{minWidth:"120px"}});b.yI=new Ext.Button({tooltip:"Horizontal View",icon:"/profoundui/proddata/images/icons/arrow_right.png",handler:b.CG.bind(b)});b.yI.Fk=true;b.AI=new Ext.Button({tooltip:"Vertical View",icon:"/profoundui/proddata/images/icons/arrow_down.png",handler:b.CG.bind(b)});b.AI.Fk=false;var c=Ext.getCmp("_south_panel_debug_tab");if(c)(c=c.getTopToolbar())&&c.add(b.dt,b.ct,b.IR,b.zI,b.EB,"-",b.xo,b.Ao,b.yo,b.zo,"-",b.Kq,"-",b.Jq,"-",b.Lq,"->","Logic Orientation: ",b.yI,b.AI);var d=
@@ -3553,40 +3553,40 @@ new Ext.grid.ColumnModel({columns:[{header:"Variable Name",dataIndex:"name",id:"
3553
3553
  new Ext.form.TextField({allowBlank:true,autoCreate:{tag:"input",type:"text"}});f.setEditor(g)}}});b.Oq=new Ext.data.ArrayStore({autoDestroy:true,fields:["name","val","type"],idProperty:"name",listeners:{update:function(f,g,h){if(h==="edit"){f.commitChanges();f=g.data.name;h=g.data.val;if(g.data.type==="object")try{h=eval(h)}catch(m){}this.send({com:"var-set",name:f,value:h})}}.bind(b)}});var e=new Ext.grid.EditorGridPanel({region:"center",height:575,split:true,store:b.Oq,colModel:d,selModel:b.KS,
3554
3554
  viewConfig:{forceFit:true,autoFill:true}});b.ut=new Ext.data.ArrayStore({autoDestroy:true,fields:["idx","loc","rt","step"],idProperty:"idx"});c=new Ext.grid.ColumnModel({columns:[{header:"Stack<br>Index",width:40,dataIndex:"idx",id:"idx",sortable:false,menuDisabled:true,editable:false,fixed:true},{header:"Location",width:190,dataIndex:"loc",id:"loc",sortable:false,menuDisabled:true,editable:false},{header:"Routine",width:190,dataIndex:"rt",id:"rt",sortable:false,menuDisabled:true,editable:false},
3555
3555
  {header:"Step#",width:40,dataIndex:"step",id:"step",sortable:false,menuDisabled:true,editable:false,fixed:true}],autoScroll:true});b.BS=new Ext.grid.RowSelectionModel({singleSelect:true,listeners:{rowselect:qa()}});b=new Ext.grid.GridPanel({region:"north",height:150,split:true,store:b.ut,colModel:c,selModel:b.BS,viewConfig:{forceFit:true,autoFill:true}});if(c=Ext.getCmp("_south_panel_debug_east")){c.add(e);c.add(b)}}
3556
- Ba.CG=function(b){if(typeof b==="object"&&b!==null&&typeof b.Fk==="boolean")this.Fk=b.Fk;if(b=Ext.getCmp("_south_panel_debug_tabpnl"))(b=b.getActiveTab())&&b.hi instanceof pui.ide.Sf&&hg(b.hi)};Ba.TX=function(b){if((this.oh===this.at||this.oh===this.$s||this.oh===this.Aq)&&!confirm("Are you sure you want to close the tab, "+b.title+"?"))return false;if(this.oh===this.Aq||this.oh===this.at)this.send({com:"endpgm"});b.body.dom.firstChild.contentWindow.pui.unload()};
3557
- pui.ide.Sf=function(b,a){this.Su=this.Aj=null;this.Cg=b.name;var c=this.Cg.split(pui.dirSeparator);this.Rk=c.length>0?c[c.length-1]:this.Cg;this.tf={};this.Fd=a;this.context=/\.api\.json$/i.test(this.Cg)?"api":/\.module\.json$/i.test(this.Cg)?"module":"rdf";ig(this,b)};pui.ide.Sf.prototype=Object.create(pui.cd.prototype,{constructor:{value:pui.ide.Sf},filename:{get:va("Cg")}});
3558
- function ig(b,a){if(a.vs)for(var c=0,d=a.vs.length;c<d;c++){var e=a.vs[c];e.steps&&jg(b,e.name,e.steps)}else if(a.Ov)for(c in a.Ov){e=a.Ov[c];if(e.data&&e.data.steps)jg(b,c,e.data.steps);else e.steps&&jg(b,c,e.steps)}}
3559
- function jg(b,a,c){var d,e=c.length;b.tf[a]=[];for(var f=0,g;f<e&&(g=c[f]);f++){d={GA:f+1,wO:a,target:b,oJ:c[f+1]&&!c[f+1].isStructureEnd||f===e-1,text:g.text,answers:g.answers,disabled:g.disabled,isStructureStart:g.isStructureStart,isStructureEnd:g.isStructureEnd};b.tf[a][f]=new pui.ide.Dw(d)}d={GA:e+1,wO:a,target:b,oJ:false,text:"End: "+a,h1:false,isStructureEnd:false};b.tf[a].push(new pui.ide.Dw(d))}
3560
- function kg(b){for(var a in b.tf)for(var c=b.tf[a],d=0,e=c.length;d<e;d++){var f=c[d];if(f.Dc!=null){f.Dc.parentNode.removeChild(f.Dc);delete f.Dc}if(f.ym!=null){f.ym.parentNode.removeChild(f.ym);delete f.ym}if(f.pf!=null){f.pf.parentNode.removeChild(f.pf);delete f.pf}}}pui.ide.Sf.prototype.destroy=function(){this.Fd&&this.Fd.xe&&delete this.Fd.xe[this.Cg];this.tf&&kg(this);nc(this)};function Of(b){b.Fd.send({com:"bkpt-list",target:b.Cg})}
3561
- function fg(b){for(var a in b.tf)for(var c=b.Aj===a,d=b.tf[a],e=0,f=d.length;e<f;e++){var g=d[e];g.Cx=false;c&&lg(g)}}function Yf(b,a){fg(b);for(var c in a){var d=b.Aj===c,e=a[c];for(var f in e){f=parseInt(f,10);var g=f-1,h=b.tf[c];if(h&&h[g]){g=h[g];g.Cx=e[f]===true;d&&lg(g)}}}}function Sf(b,a){b.jr=a;a.hi=b;a.addListener("beforeclose",function(c){delete b.jr;delete c.hi})}
3556
+ Ba.CG=function(b){if(typeof b==="object"&&b!==null&&typeof b.Fk==="boolean")this.Fk=b.Fk;if(b=Ext.getCmp("_south_panel_debug_tabpnl"))(b=b.getActiveTab())&&b.hi instanceof pui.ide.Sf&&ig(b.hi)};Ba.TX=function(b){if((this.oh===this.at||this.oh===this.$s||this.oh===this.Aq)&&!confirm("Are you sure you want to close the tab, "+b.title+"?"))return false;if(this.oh===this.Aq||this.oh===this.at)this.send({com:"endpgm"});b.body.dom.firstChild.contentWindow.pui.unload()};
3557
+ pui.ide.Sf=function(b,a){this.Su=this.Aj=null;this.Cg=b.name;var c=this.Cg.split(pui.dirSeparator);this.Rk=c.length>0?c[c.length-1]:this.Cg;this.tf={};this.Fd=a;this.context=/\.api\.json$/i.test(this.Cg)?"api":/\.module\.json$/i.test(this.Cg)?"module":"rdf";jg(this,b)};pui.ide.Sf.prototype=Object.create(pui.cd.prototype,{constructor:{value:pui.ide.Sf},filename:{get:va("Cg")}});
3558
+ function jg(b,a){if(a.vs)for(var c=0,d=a.vs.length;c<d;c++){var e=a.vs[c];e.steps&&kg(b,e.name,e.steps)}else if(a.Ov)for(c in a.Ov){e=a.Ov[c];if(e.data&&e.data.steps)kg(b,c,e.data.steps);else e.steps&&kg(b,c,e.steps)}}
3559
+ function kg(b,a,c){var d,e=c.length;b.tf[a]=[];for(var f=0,g;f<e&&(g=c[f]);f++){d={GA:f+1,wO:a,target:b,oJ:c[f+1]&&!c[f+1].isStructureEnd||f===e-1,text:g.text,answers:g.answers,disabled:g.disabled,isStructureStart:g.isStructureStart,isStructureEnd:g.isStructureEnd};b.tf[a][f]=new pui.ide.Dw(d)}d={GA:e+1,wO:a,target:b,oJ:false,text:"End: "+a,h1:false,isStructureEnd:false};b.tf[a].push(new pui.ide.Dw(d))}
3560
+ function lg(b){for(var a in b.tf)for(var c=b.tf[a],d=0,e=c.length;d<e;d++){var f=c[d];if(f.Dc!=null){f.Dc.parentNode.removeChild(f.Dc);delete f.Dc}if(f.ym!=null){f.ym.parentNode.removeChild(f.ym);delete f.ym}if(f.pf!=null){f.pf.parentNode.removeChild(f.pf);delete f.pf}}}pui.ide.Sf.prototype.destroy=function(){this.Fd&&this.Fd.xe&&delete this.Fd.xe[this.Cg];this.tf&&lg(this);nc(this)};function Pf(b){b.Fd.send({com:"bkpt-list",target:b.Cg})}
3561
+ function gg(b){for(var a in b.tf)for(var c=b.Aj===a,d=b.tf[a],e=0,f=d.length;e<f;e++){var g=d[e];g.Cx=false;c&&mg(g)}}function Zf(b,a){gg(b);for(var c in a){var d=b.Aj===c,e=a[c];for(var f in e){f=parseInt(f,10);var g=f-1,h=b.tf[c];if(h&&h[g]){g=h[g];g.Cx=e[f]===true;d&&mg(g)}}}}function Tf(b,a){b.jr=a;a.hi=b;a.addListener("beforeclose",function(c){delete b.jr;delete c.hi})}
3562
3562
  pui.ide.Sf.prototype.run=function(b){function a(){var k=Ext.getCmp("apiRoutesGrid");if(k){var n=m.getSelected();if(n){n=n.data.rout;n=k.getStore().find("name",n);if(n>=0){k.getSelectionModel().selectRow(n);setTimeout(c,5)}}}}function c(){Ext.getCmp("ideApiProps").setActiveTab("apiTestPanel")}switch(this.context){case "rdf":if(this.oC){var d=document.location.origin+this.oC+"?dbgid="+this.Fd.nl;if(b)this.Fd.gE=window.open(d);else{b=Ext.getCmp("centerPanel");for(var e=null,f=0,g=b.items.items.length;f<
3563
3563
  g;f++){var h=b.items.items[f];if(h&&h.filename===this.Cg&&h.sK){e=h;break}}if(!e){e=pui.ide.Pd();e.Ia&&b.remove(e.Ia,true);e=new Ext.Panel({title:"Run "+this.Rk,html:'<iframe src="'+d+'" class="rundbgapp"></iframe>',closable:true,autoScroll:true,listeners:{beforeclose:this.Fd.TX.bind(this.Fd)}});e.sK=true;e.filename=this.Cg;e.currentDisplay={};e.onDataChanged=qa();b.add(e)}b.setActiveTab(e)}}break;case "api":if(this.jr)if(d=Ext.getCmp("centerPanel")){d.setActiveTab(this.jr.id);setTimeout(a,5)}break;
3564
- case "module":Uf(this.Fd,"Cannot automatically determine how to launch module: "+this.Rk+" for debugging.");break}var m=this.Im};
3565
- function Nf(b,a){if(b.hC)fg(b);else{b.Su=new Ext.Panel({bodyBorder:false,region:"center",html:"",autoScroll:true,bodyCssClass:"pui-wfdebug-cont",listeners:{resize:b.Fd.CG.bind(b.Fd)}});b.Qo=new Ext.data.ArrayStore({autoDestroy:true,fields:["rout"],data:mg(b)});b.Im=new Ext.grid.RowSelectionModel({singleSelect:true,listeners:{rowselect:function(c,d,e){e&&e.data&&typeof e.data.rout==="string"&&e.data.rout.length>0&&hg(this,e.data.rout)}.bind(b)}});b.jx=new Ext.grid.GridPanel({region:"west",width:"215px",
3566
- split:true,store:b.Qo,colModel:new Ext.grid.ColumnModel({columns:[{header:"Route/Routine Name",dataIndex:"rout",sortable:true,menuDisabled:true}],autoScroll:true}),selModel:b.Im,viewConfig:{forceFit:true,autoFill:true},listeners:{viewready:function(c){c.NP=true;var d=c.DO;if(typeof d==="string"&&d.length>0){ng(this,d);delete c.DO}}.bind(b)}});b.jx.NP=false;b.hC=new Ext.Panel({title:b.Rk,layout:"border",bodyStyle:"background-color: #fafafa;",closable:true,items:[b.jx,b.Su],listeners:{beforeclose:b.destroy.bind(b)}});
3567
- b.hC.hi=b;Ext.getCmp("_south_panel_debug_tabpnl").add(b.hC)}b.setActiveTab();og(b,a)}
3568
- function og(b,a){if(b.context!=="api"){var c=function(){a&&Uf(this.Fd,"Cannot automatically determine how to launch debugging target: "+this.Rk+'. A route may not be defined in the workspace for the target.<br/>See <a href="https://docs.profoundlogic.com/x/JYAvBw" target="_blank">Debugging Low Code</a>.')}.bind(b),d=function(e,f){var g=e.routes[this.Rk];if(g!=null&&/^get$/i.test(g.method)&&typeof g.route==="string"&&g.route.length>0)this.oC=(g.rdf?"/run/"+f:"")+"/"+g.route;else if(e["app start"]===
3564
+ case "module":Vf(this.Fd,"Cannot automatically determine how to launch module: "+this.Rk+" for debugging.");break}var m=this.Im};
3565
+ function Of(b,a){if(b.hC)gg(b);else{b.Su=new Ext.Panel({bodyBorder:false,region:"center",html:"",autoScroll:true,bodyCssClass:"pui-wfdebug-cont",listeners:{resize:b.Fd.CG.bind(b.Fd)}});b.Qo=new Ext.data.ArrayStore({autoDestroy:true,fields:["rout"],data:ng(b)});b.Im=new Ext.grid.RowSelectionModel({singleSelect:true,listeners:{rowselect:function(c,d,e){e&&e.data&&typeof e.data.rout==="string"&&e.data.rout.length>0&&ig(this,e.data.rout)}.bind(b)}});b.jx=new Ext.grid.GridPanel({region:"west",width:"215px",
3566
+ split:true,store:b.Qo,colModel:new Ext.grid.ColumnModel({columns:[{header:"Route/Routine Name",dataIndex:"rout",sortable:true,menuDisabled:true}],autoScroll:true}),selModel:b.Im,viewConfig:{forceFit:true,autoFill:true},listeners:{viewready:function(c){c.NP=true;var d=c.DO;if(typeof d==="string"&&d.length>0){og(this,d);delete c.DO}}.bind(b)}});b.jx.NP=false;b.hC=new Ext.Panel({title:b.Rk,layout:"border",bodyStyle:"background-color: #fafafa;",closable:true,items:[b.jx,b.Su],listeners:{beforeclose:b.destroy.bind(b)}});
3567
+ b.hC.hi=b;Ext.getCmp("_south_panel_debug_tabpnl").add(b.hC)}b.setActiveTab();pg(b,a)}
3568
+ function pg(b,a){if(b.context!=="api"){var c=function(){a&&Vf(this.Fd,"Cannot automatically determine how to launch debugging target: "+this.Rk+'. A route may not be defined in the workspace for the target.<br/>See <a href="https://docs.profoundlogic.com/x/JYAvBw" target="_blank">Debugging Low Code</a>.')}.bind(b),d=function(e,f){var g=e.routes[this.Rk];if(g!=null&&/^get$/i.test(g.method)&&typeof g.route==="string"&&g.route.length>0)this.oC=(g.rdf?"/run/"+f:"")+"/"+g.route;else if(e["app start"]===
3569
3569
  this.Rk)this.oC="/run/"+f+"/";else c()}.bind(b);pui.isCloud?d(pui.cloud.ws.settings,pui.cloud.ws.owner+"/"+pui.cloud.ws.name):Ext.Ajax.request({url:jc("PUI0001122.pgm"),method:"POST",params:{mode:"getattr",name:b.Cg.replace(pui.PROFOUNDJS_DIR,""),workspace_id:""},success:function(e){try{var f=JSON.parse(e.responseText);if(f.success!==true)throw"Bad response fetching debug file info: "+f.error;}catch(g){console.log(g);c();return}e=f.attr.workspaceDir;if(typeof e!=="string"||e.length<1)c();else{e=/(\modules\/|\\modules\\)(.+)$/.exec(e);
3570
- if(Array.isArray(e)){e=e[2];f=f.attr.settings;f==null?c():d(f,e)}else c()}},failure:c.bind(b)})}}pui.ide.Sf.prototype.setActiveTab=function(){var b=Ext.getCmp("_south_panel_debug_tabpnl");if(b){var a=this.Rk,c=b.items.find(function(d){return d.title===a});if(c)b.setActiveTab(c);else{c=b.getActiveTab();if(typeof c!=="object"||c===null)b.setActiveTab(0)}}};function mg(b){var a=[];for(var c in b.tf)a.push([c]);return a}
3571
- function hg(b,a){if(typeof a==="string"&&a.length>0)b.Aj=a;var c=b.Su.body.dom;if(b.Cd==null){b.Cd=document.createElementNS(pui.Qi,"svg");c.appendChild(b.Cd)}c.classList.remove("pui-vert");b.Fd.Fk||c.classList.add("pui-vert");kg(b);c=b.tf[b.Aj];if(Array.isArray(c)){for(var d=c.length,e=0;e<d;e++){var f=c[e],g=f.iC.Su.body.dom;if(f.Dc==null){f.Dc=document.createElement("div");if(f.NI)f.Dc.className="pui-wf-structure-start";else if(f.RB)f.Dc.className="pui-wf-structure-end";else{f.Dc.className="pui-wf-action";
3570
+ if(Array.isArray(e)){e=e[2];f=f.attr.settings;f==null?c():d(f,e)}else c()}},failure:c.bind(b)})}}pui.ide.Sf.prototype.setActiveTab=function(){var b=Ext.getCmp("_south_panel_debug_tabpnl");if(b){var a=this.Rk,c=b.items.find(function(d){return d.title===a});if(c)b.setActiveTab(c);else{c=b.getActiveTab();if(typeof c!=="object"||c===null)b.setActiveTab(0)}}};function ng(b){var a=[];for(var c in b.tf)a.push([c]);return a}
3571
+ function ig(b,a){if(typeof a==="string"&&a.length>0)b.Aj=a;var c=b.Su.body.dom;if(b.Cd==null){b.Cd=document.createElementNS(pui.Qi,"svg");c.appendChild(b.Cd)}c.classList.remove("pui-vert");b.Fd.Fk||c.classList.add("pui-vert");lg(b);c=b.tf[b.Aj];if(Array.isArray(c)){for(var d=c.length,e=0;e<d;e++){var f=c[e],g=f.iC.Su.body.dom;if(f.Dc==null){f.Dc=document.createElement("div");if(f.NI)f.Dc.className="pui-wf-structure-start";else if(f.RB)f.Dc.className="pui-wf-structure-end";else{f.Dc.className="pui-wf-action";
3572
3572
  f.Dc.addEventListener("click",f);f.Dc.addEventListener("mouseover",f);f.Dc.addEventListener("mouseout",f)}f.Nk&&f.Dc.classList.add("pui-wf-disabled");if(!f.RB){var h=document.createElement("div");h.innerText=f.text;f.answers&&typeof f.answers.plugin==="string"&&h.setAttribute("title",f.answers.plugin);h.className="pui-wf-action-text";f.Dc.appendChild(h)}g.appendChild(f.Dc)}if(f.zR&&f.ym==null){f.ym=document.createElement("div");f.ym.className="pui-wf-arrow pui-fa-solid-icons fa-arrow-"+(pui.ide.zf.Fk?
3573
- "right":"down");g.appendChild(f.ym)}lg(f)}b.Cd.style.minHeight=b.Fd.Fk?"":d*57+"px"}cg(b)}function bg(b,a,c,d){if(typeof a==="string"&&typeof c==="number"){b.FI=a;b.GI=c;b.HS=d===true}else{delete b.FI;delete b.GI}}
3574
- function cg(b){var a,c,d=b.FI,e=b.GI-1;if(typeof b.tf==="object"&&b.tf!==null&&typeof d==="string"&&d.length>0&&typeof e==="number"&&e>=0&&Array.isArray(a=b.tf[d])&&e<a.length&&(c=a[e])instanceof pui.ide.Dw&&typeof c.Dc==="object"&&c.Dc!==null){a=c.Dc;if(b.Fd.Fk){c=a.offsetLeft+Math.round(a.offsetWidth/2)-8;d=a.offsetTop+a.offsetHeight+13;e=c+16;var f=d,g=e,h=f-16,m=Math.round((c+e)/2),k=d-24,n=c,i=d-16}else{c=2;d=a.offsetTop+Math.round(a.offsetHeight/2)-8;e=2;f=d+16;g=c+16;h=f;m=c+24;k=Math.round((d+
3573
+ "right":"down");g.appendChild(f.ym)}mg(f)}b.Cd.style.minHeight=b.Fd.Fk?"":d*57+"px"}dg(b)}function cg(b,a,c,d){if(typeof a==="string"&&typeof c==="number"){b.FI=a;b.GI=c;b.HS=d===true}else{delete b.FI;delete b.GI}}
3574
+ function dg(b){var a,c,d=b.FI,e=b.GI-1;if(typeof b.tf==="object"&&b.tf!==null&&typeof d==="string"&&d.length>0&&typeof e==="number"&&e>=0&&Array.isArray(a=b.tf[d])&&e<a.length&&(c=a[e])instanceof pui.ide.Dw&&typeof c.Dc==="object"&&c.Dc!==null){a=c.Dc;if(b.Fd.Fk){c=a.offsetLeft+Math.round(a.offsetWidth/2)-8;d=a.offsetTop+a.offsetHeight+13;e=c+16;var f=d,g=e,h=f-16,m=Math.round((c+e)/2),k=d-24,n=c,i=d-16}else{c=2;d=a.offsetTop+Math.round(a.offsetHeight/2)-8;e=2;f=d+16;g=c+16;h=f;m=c+24;k=Math.round((d+
3575
3575
  f)/2);n=g;i=d}var o="pui-curstepind"+(b.HS===true?" pui-stack-top":"");if(b.Am==null){b.Am=document.createElementNS(pui.Qi,"polygon");b.Cd&&b.Cd.appendChild(b.Am)}b.Am.setAttribute("class",o);b.Am.setAttribute("points",c+","+d+" "+e+","+f+" "+g+","+h+" "+m+","+k+" "+n+","+i);b=b.Su.body.dom;c=a.offsetLeft+a.offsetWidth;d=a.offsetTop+a.offsetHeight;e={top:b.scrollTop,left:b.scrollLeft,behavior:"smooth"};if(a.offsetLeft<b.scrollLeft)e.left=Math.max(0,a.offsetLeft-10);else if(c>b.offsetWidth+b.scrollLeft)e.left=
3576
3576
  Math.max(c+10,b.scrollWidth);if(a.offsetTop<b.scrollTop)e.top=Math.max(0,a.offsetTop-10);else if(d>b.offsetHeight+b.scrollTop)e.top=Math.max(d+10,b.scrollHeight);b.scrollTo(e)}else if(b.Am){(a=b.Am.parentNode)&&a.removeChild(b.Am);delete b.Am}}
3577
- function pg(b){if(typeof b.Aj==="string"){var a=b.tf[b.Aj];if(Array.isArray(a)){for(var c={steps:[]},d=0,e=a.length;d<e;d++){var f=a[d];c.steps.push({text:f.text,answers:f.answers})}a={question:{},answers:{},N:{context:b.context,"export":function(){return c},routine:b.Aj}};if(d=pui.wf.Mc.variables){f=d.kb(a);var g=[],h=false,m=false;if(Array.isArray(f)){d=0;for(e=f.length;d<e;d++)if(f[d]&&Array.isArray(f[d].options)){a=f[d].options;for(var k=0,n=a.length;k<n;k++){var i=a[k];if(typeof i==="string"&&
3578
- i.length>0){h||(h=/^input[\[\.]/i.test(i)||/^input$/i.test(i));m||(m=/^output[\[\.]/i.test(i)||/^output$/i.test(i));g.push(i)}}}}if(b.context==="api"){h||g.push("input");m||g.push("output")}g.length>0&&ag(b.Fd,g)}}}}
3579
- function qg(b,a,c){if(typeof a==="string"&&a.length>0&&typeof c==="object"&&c!==null)a=Rf(b.Fd,a,c);else if(b.jr)a=Kf(b.Fd,b.jr);else return;kg(b);b.tf={};ig(b,a);if(b.Qo){b.Qo.removeAll();b.Qo.loadData(mg(b))}if(b.Im)typeof b.Aj==="string"&&b.Aj.length>0?ng(b,b.Aj):b.Im.clearSelections();Of(b)}
3580
- function ng(b,a){if(typeof a==="string"&&b.Im&&b.Qo){var c=b.Qo.findExact("rout",a);if(c>=0){c=b.Qo.getAt(c);b.Im.suspendEvents();b.Im.selectRecords([c]);b.Im.resumeEvents();c&&c.data&&typeof c.data.rout==="string"&&c.data.rout.length>0&&hg(b,c.data.rout)}}}function eg(b,a,c){if(b.Aj!==a)if(b.jx.NP)ng(b,a);else b.jx.DO=a;bg(b,a,c,true);cg(b);pg(b)}
3581
- pui.ide.Sf.prototype.Dr=function(){function b(g){screenMask.hide();try{Uf(c,"Reloaded route/routine steps for "+f+" in debugger.");qg(d,e,JSON.parse(g.responseText))}catch(h){Uf(c,h)}}function a(g){screenMask.hide();Uf(c,g.status===404?f+" not found on reload attempt.":"Failed to reload "+f+"; "+g.status+" - "+g.statusText)}if(!gg(this.Fd,this.Cg)){var c=this.Fd;if(this.jr)qg(this);else{screenMask.msg="Loading";screenMask.show();Uf(c,"Detected filesystem change on "+this.Rk+". Fetching new file data...");
3577
+ function qg(b){if(typeof b.Aj==="string"){var a=b.tf[b.Aj];if(Array.isArray(a)){for(var c={steps:[]},d=0,e=a.length;d<e;d++){var f=a[d];c.steps.push({text:f.text,answers:f.answers})}a={question:{},answers:{},N:{context:b.context,"export":function(){return c},routine:b.Aj}};if(d=pui.wf.Mc.variables){f=d.kb(a);var g=[],h=false,m=false;if(Array.isArray(f)){d=0;for(e=f.length;d<e;d++)if(f[d]&&Array.isArray(f[d].options)){a=f[d].options;for(var k=0,n=a.length;k<n;k++){var i=a[k];if(typeof i==="string"&&
3578
+ i.length>0){h||(h=/^input[\[\.]/i.test(i)||/^input$/i.test(i));m||(m=/^output[\[\.]/i.test(i)||/^output$/i.test(i));g.push(i)}}}}if(b.context==="api"){h||g.push("input");m||g.push("output")}g.length>0&&bg(b.Fd,g)}}}}
3579
+ function rg(b,a,c){if(typeof a==="string"&&a.length>0&&typeof c==="object"&&c!==null)a=Sf(b.Fd,a,c);else if(b.jr)a=Lf(b.Fd,b.jr);else return;lg(b);b.tf={};jg(b,a);if(b.Qo){b.Qo.removeAll();b.Qo.loadData(ng(b))}if(b.Im)typeof b.Aj==="string"&&b.Aj.length>0?og(b,b.Aj):b.Im.clearSelections();Pf(b)}
3580
+ function og(b,a){if(typeof a==="string"&&b.Im&&b.Qo){var c=b.Qo.findExact("rout",a);if(c>=0){c=b.Qo.getAt(c);b.Im.suspendEvents();b.Im.selectRecords([c]);b.Im.resumeEvents();c&&c.data&&typeof c.data.rout==="string"&&c.data.rout.length>0&&ig(b,c.data.rout)}}}function fg(b,a,c){if(b.Aj!==a)if(b.jx.NP)og(b,a);else b.jx.DO=a;cg(b,a,c,true);dg(b);qg(b)}
3581
+ pui.ide.Sf.prototype.Dr=function(){function b(g){screenMask.hide();try{Vf(c,"Reloaded route/routine steps for "+f+" in debugger.");rg(d,e,JSON.parse(g.responseText))}catch(h){Vf(c,h)}}function a(g){screenMask.hide();Vf(c,g.status===404?f+" not found on reload attempt.":"Failed to reload "+f+"; "+g.status+" - "+g.statusText)}if(!hg(this.Fd,this.Cg)){var c=this.Fd;if(this.jr)rg(this);else{screenMask.msg="Loading";screenMask.show();Vf(c,"Detected filesystem change on "+this.Rk+". Fetching new file data...");
3582
3582
  Ext.Ajax.request({url:jc("PUI0001109.pgm"),method:"POST",params:{mode:"read",path:this.Cg,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:""},success:b,failure:a})}var d=this,e=this.Cg,f=this.Rk}};pui.ide.Dw=function(b){this.GA=b.GA;this.text=b.text;this.answers=b.answers;this.uS=b.wO;this.iC=b.target;this.zR=b.oJ;this.NI=b.isStructureStart===true;this.RB=b.isStructureEnd===true;this.Nk=b.disabled===true;this.Cx=false;this.pf=this.ym=this.Dc=null};
3583
3583
  pui.ide.Dw.prototype.handleEvent=function(b){switch(b.type){case "click":b=this.iC;b.Fd.send({com:!this.Cx===true?"bkpt-set":"bkpt-clear",target:b.Cg,rt:this.uS,step:this.GA});return;case "mouseover":this.pf&&this.pf.classList.add("hover");return;case "mouseout":this.pf&&this.pf.classList.remove("hover")}};
3584
- function lg(b){if(!b.NI&&!b.RB&&!b.Nk){if(b.pf==null){if(pui.ide.zf.Fk)var a=b.Dc.offsetLeft+Math.round(b.Dc.offsetWidth/2),c=b.Dc.offsetTop+b.Dc.offsetHeight+5;else{a=b.Dc.offsetLeft-8;c=b.Dc.offsetTop+Math.round(b.Dc.offsetHeight/2)}b.pf=document.createElementNS(pui.Qi,"circle");b.pf.setAttribute("r",5);b.pf.setAttribute("cx",a);b.pf.setAttribute("cy",c);b.pf.addEventListener("click",b);b.iC.Cd.appendChild(b.pf)}b.pf.setAttribute("class","pui-bkpt"+(b.Cx?" enabled":""))}};Ext.tree.TreeNodeUI.override({onDblClick:function(b){b.preventDefault();if(!this.disabled)if(this.fireEvent("beforedblclick",this.node,b)!==false){this.Px&&this.toggleCheck();!this.r0&&this.node.isExpandable();this.fireEvent("dblclick",this.node,b)}}});
3584
+ function mg(b){if(!b.NI&&!b.RB&&!b.Nk){if(b.pf==null){if(pui.ide.zf.Fk)var a=b.Dc.offsetLeft+Math.round(b.Dc.offsetWidth/2),c=b.Dc.offsetTop+b.Dc.offsetHeight+5;else{a=b.Dc.offsetLeft-8;c=b.Dc.offsetTop+Math.round(b.Dc.offsetHeight/2)}b.pf=document.createElementNS(pui.Qi,"circle");b.pf.setAttribute("r",5);b.pf.setAttribute("cx",a);b.pf.setAttribute("cy",c);b.pf.addEventListener("click",b);b.iC.Cd.appendChild(b.pf)}b.pf.setAttribute("class","pui-bkpt"+(b.Cx?" enabled":""))}};Ext.tree.TreeNodeUI.override({onDblClick:function(b){b.preventDefault();if(!this.disabled)if(this.fireEvent("beforedblclick",this.node,b)!==false){this.Px&&this.toggleCheck();!this.r0&&this.node.isExpandable();this.fireEvent("dblclick",this.node,b)}}});
3585
3585
  pui.ide.xU=function(){if(!pui.isCloud||pui.cloud.ws.locked!==true)pui.ide.watchFiles();var b=[pui.ide.NT(),pui.ide.yR(),new Ext.TabPanel({id:"centerPanel",enableTabScroll:true,region:"center",listeners:{tabchange:pui.ide.t_,afterrender:function(a){a.getEl().on("mousedown",function(){var c=Ext.getCmp("southPanel");c&&c.ih&&c.ih.blur()});a=a.getEl().dom;document.addEventListener("keydown",pui.ide.i0,false);typeof WheelEvent=="function"?a.addEventListener("wheel",pui.ide.lN,false):a.addEventListener("mousewheel",
3586
3586
  pui.ide.lN,false)},add:function(a,c){c.addListener("beforeclose",pui.ide.ET)}},plugins:new Ext.ux.panel.pq}),pui.ide.wU()];pui.nodedesigner&&b.push(pui.ide.CU());return new Ext.Viewport({id:"UI-viewPort",layout:"border",items:b})};
3587
3587
  pui.ide.zT=function(b){if(!b.ih){var a=pui.terminalURI||"/terminal";a+="?rows=24&cols=80";if(pui.isCloud)a+="&workspace_id="+pui.cloud.ws.id;a=pui.ide.vy(a);var c=new WebSocket(a);c.onmessage=function(d){function e(g){c.send("PROFOUNDJS_TERMINAL_RESIZE-"+JSON.stringify({rows:g.rows,cols:g.cols}))}c.onmessage=null;d=JSON.parse(d.data);if(d.error){b.body.update(d.error);b.body.setStyle("backgroundColor","")}else if(d.ready){b.update("");d={cursorBlink:true,windowsMode:pui.OS==="Windows_NT"};if(typeof Terminal.applyAddon===
3588
3588
  "function"){Terminal.applyAddon(attach);Terminal.applyAddon(fit);Terminal.applyAddon(webLinks);d=new Terminal(d);d.webLinksInit();d.attach(c);d.on("resize",e)}else{d=new Terminal(d);d.loadAddon(new AttachAddon.AttachAddon(c));var f=new FitAddon.FitAddon;d.loadAddon(f);d.loadAddon(new WebLinksAddon.WebLinksAddon);d.fit=function(){f.fit()};d.onResize(e)}d.open(b.body.dom);d.fit();d.focus();b.ih=d}}}};
3589
- pui.ide.wU=function(){return{id:"east",region:"east",layout:"border",header:false,collapsible:true,collapseMode:"mini",animCollapse:true,split:true,contentEl:"right",width:If.get("eastPanelWidth","")==""?290:If.get("eastPanelWidth",""),listeners:{bodyresize:function(b,a){If.set("eastPanelWidth",a);If.save()},show:function(){Ext.getCmp("eastIdeProps").setSize(this.getSize())}},items:[pui.ide.CY(),pui.ide.zU()]}};
3589
+ pui.ide.wU=function(){return{id:"east",region:"east",layout:"border",header:false,collapsible:true,collapseMode:"mini",animCollapse:true,split:true,contentEl:"right",width:Jf.get("eastPanelWidth","")==""?290:Jf.get("eastPanelWidth",""),listeners:{bodyresize:function(b,a){Jf.set("eastPanelWidth",a);Jf.save()},show:function(){Ext.getCmp("eastIdeProps").setSize(this.getSize())}},items:[pui.ide.CY(),pui.ide.zU()]}};
3590
3590
  pui.ide.Yb=function(){var b=Ext.getCmp("centerPanel").getActiveTab();if(b){var a=(b.title||"").replace(/\s\*/g,""),c=a;if(b.X){a=b.X.substr(b.X.lastIndexOf(pui.dirSeparator)+1);c=b.root+b.X}else if(pui.designer.currentDisplay.library!=null&&pui.designer.currentDisplay.file!=null&&pui.designer.currentDisplay.member!=null){c=pui.designer.currentDisplay.library+"/"+pui.designer.currentDisplay.file+" ("+pui.designer.currentDisplay.member+")";a=pui.designer.currentDisplay.member+" - "+te.oi()}else if(pui.designer.currentDisplay.ifsFile!=
3591
3591
  null){a=pui.designer.currentDisplay.ifsFile.substr(pui.designer.currentDisplay.ifsFile.lastIndexOf(pui.dirSeparator)+1)+" - "+te.oi();c=pui.designer.currentDisplay.ifsFile}else if(pui.designer.currentDisplay.Ob!=null)c=a=pui.designer.currentDisplay.Ob+" - "+te.oi();else if(te)c=a=te.oi();if(b.editor&&b.editor.getModifiedEditor)a+=" "+b.Nd.type;var d=false;if(d=b.fileTab||b.Ja||b.apiTab||b.pjsModuleTab?b.isDirty:te.isDirty())a+=" *";if(T&&T.mf!=100)a+=" "+T.mf+"%";b.setTitle(a);pui.ide.hm(b,c)}};
3592
3592
  pui.ide.gr=function(b){var a=pui.ide.ay++;Ha="dspfDesigner"+a+"_1";Na="dspfDesigner"+a+"_";return new Ext.Panel({Dt:Ha,xC:Na,autoScroll:true,html:'<div id="'+Na+'" style="overflow: auto;"></div>',closable:true,listeners:{bodyresize:pui.ide.hp,afterrender:function(c){this.fy=new Ext.dd.DropTarget(this.body,{ddGroup:"toolboxTree",notifyOver:function(d,e,f){return Ext.get(f.sourceEl).is("div.widget-sets-widget")&&pui.ide.Ji?"x-dd-drop-nodrop":"x-dd-drop-ok"},notifyDrop:function(d,e,f){if(Ext.get(f.sourceEl).is("div.widget-sets-widget")&&
@@ -3603,7 +3603,7 @@ run:function(){pui.ide.Sh(q,false,pui.ide.updateIdeSettings);return null}});y.ad
3603
3603
  q;if(n){k="";if(i){var s="report_preview_iframe_"+Math.random(),t=d;try{t=JSON.stringify(JSON.parse(t))}catch(u){}k+='<form action="/profoundui/reportpreview" method="post" target="'+s+'">';k+=' <input name="jsonText" type="hidden" value="'+Ext.util.Format.htmlEncode(t)+'" />';k+="</form>";k+='<iframe style="width:100%; height:100%; border:0;" name="'+s+'" src=""></iframe>'}else k=marked(d,pui.ide.NM);var v=new Ext.Panel({region:"center",resizable:true,split:true,html:k,autoScroll:!i,bodyStyle:"white-space: normal; padding-top: 4px; padding-left: 4px; background-color: #ffffff;",
3604
3604
  cls:"markdown-body",listeners:{afterrender:function(){i&&v.getEl().dom.getElementsByTagName("form")[0].submit()}}});q=new Ext.Panel({closable:true,resizable:true,split:true,floatable:false,layout:"border",items:[l,v],title:l.title});q.root=a;q.fileTab=true;q.X=b;if(f)q.yi=true;l.title=i?"Edit Report Definition":"Edit Markdown";l.collapsed=q.X!==null;q.vM=true}b&&pui.ide.gh({watchFile:b});q.fileTab=true;c(q)}};pui.ide.Wq="style='margin: 2px 2px 0px 5px;'";
3605
3605
  pui.ide.Rm=function(b){return function(a,c){c.attr=pui.ide.Wq;return a[b]}};pui.ide.Ht=function(b){return function(a,c){c.attr=pui.ide.Wq;return a[b]?"true":""}};
3606
- pui.ide.GD=function(b,a,c,d,e,f,g,h){e="file.api.json";te=null;if(!a){a=pui.nodedesigner?pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(pui.isCloud)a=pui.cloud.ws.SERVER_DIR;if(a.charAt(a.length-1)==pui.dirSeparator)a=a.substr(0,a.length-1)}e=pui.ide.ay++;Ha="apiDesigner"+e+"_1";Na="apiDesigner"+e+"_";e=Ext.getCmp("centerPanel").getHeight()*If.get("apiParmsPanelHeight",0.34);var m="";m=b==null?"[Unnamed API File]":b.substr(b.lastIndexOf(pui.dirSeparator)+1);var k=null;k=d.apiType==="soap"?new pui.ide.i_(e):
3606
+ pui.ide.GD=function(b,a,c,d,e,f,g,h){e="file.api.json";te=null;if(!a){a=pui.nodedesigner?pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(pui.isCloud)a=pui.cloud.ws.SERVER_DIR;if(a.charAt(a.length-1)==pui.dirSeparator)a=a.substr(0,a.length-1)}e=pui.ide.ay++;Ha="apiDesigner"+e+"_1";Na="apiDesigner"+e+"_";e=Ext.getCmp("centerPanel").getHeight()*Jf.get("apiParmsPanelHeight",0.34);var m="";m=b==null?"[Unnamed API File]":b.substr(b.lastIndexOf(pui.dirSeparator)+1);var k=null;k=d.apiType==="soap"?new pui.ide.i_(e):
3607
3607
  new pui.ide.eZ(e);var n=new Ext.Panel({closable:true,title:m,bodyStyle:"position:relative",listeners:{added:function(i){i.onDataChanged=function(o,q,l){if(q===undefined)if(o.getValue)q=o.getValue();else if(o.value)q=o.value;if(!(!o||!o.name||!n||!n.routeRecord||!n.routeRecord.json||q===n.routeRecord.json[o.name])){if(l===undefined)l=n.routeRecord.json[o.name];if(o.name=="category")if(!q||!q.trim()){Ext.getCmp("subcategoryField").disable();Ext.getCmp("subcategoryField").setValue("");i.onDataChanged(Ext.getCmp("subcategoryField"),
3608
3608
  "")}else Ext.getCmp("subcategoryField").enable();if(o.name=="enableCors")q?Ext.getCmp("allowOriginsFld").enable():Ext.getCmp("allowOriginsFld").disable();if(o.name=="allowedOrigins"){if(q){var s=q.split(",");q="";for(var t=0;t<s.length;t++)q+=s[t].replace(/(\n)+/g,",")}if(!q||!q.trim())q="*"}s=n.routeRecord.json;if(o.name==="code"||o.name==="steps"){typeof s.code!=="undefined"&&delete s.code;typeof s.steps!=="undefined"&&delete s.steps}s[o.name]=q;if(n.routeRecord.data[o.name]!==undefined){n.routeRecord.data[o.name]=
3609
3609
  q;o=Ext.getCmp("apiRoutesGrid");o.view.refreshRow(o.getSelectionModel().last);o.getStore().commitChanges()}q!=l&&pui.ide.fa()}};i.showRoute=function(o){if(i.routeRecord=o){i.mainPanel.show();Ext.getCmp("eastIdeProps").show();i.apiRoutes.JM()}else{i.mainPanel.hide();Ext.getCmp("eastIdeProps").hide()}}},bodyresize:pui.ide.hp,afterrender:function(i){i.mp="api.json";i.X&&!f&&pui.designer.Xn(i.X,i.root);pui.ide.Yb();pui.ide.Re.doLayout();i.body.dom.classList.add("codeeditor-container");i.body.dom.parentNode.classList.add("codeeditor-container");
@@ -3614,7 +3614,7 @@ l.preventDefault();l.stopPropagation&&l.stopPropagation();l.cancelBubble=true;l.
3614
3614
  bodyStyle:"width:100%;",border:false,hideBorders:true,items:[new Ext.Panel({region:"center",bodyStyle:"width: 100%; background-color: #fff; overflow: auto;",border:true,RC:50,closable:false,listeners:{added:function(i){i.justResize=function(){if(n.sourceCodePanel.editor)n.Ab?n.sourceCodePanel.editor.resize():n.sourceCodePanel.editor.layout()};i.updateFields=i.updateFields||function(){if(n.routeRecord&&n.routeRecord.json)n.sourceCodePanel.se=typeof n.routeRecord.json.code==="string"?n.routeRecord.json.code:
3615
3615
  n.routeRecord.json.steps||[];n.sourceCodePanel.editor&&setTimeout(function(){n.sourceCodePanel.editor.setValue(n.sourceCodePanel.se)},50)}},afterrender:function(i){setTimeout(function(){if(pui.useAceEditor||pui.is_ie||pui.ie_mode<=11||!window.monaco)n.Ab=true;i.editor=new pui.wf.YP;i.editor.c=i.body.dom;i.editor.onchange=function(o){typeof o.code==="string"?n.onDataChanged({name:"code"},o.code):n.onDataChanged({name:"steps"},o.steps)};i.body.dom.classList.add("codeeditor-container");i.body.dom.parentNode.classList.add("codeeditor-container");
3616
3616
  i.editor.init();g||i.editor.focus()},0)},resize:function(i){i.justResize()},beforedestroy:function(){if(n.sourceCodePanel.editor)n.Ab?n.sourceCodePanel.editor.destroy():n.sourceCodePanel.editor.dispose()}}}),k.panel],listeners:{afterrender:function(i){i.body.dom.classList.add("codeeditor-container");i.body.dom.parentNode.classList.add("codeeditor-container")}}})],listeners:{resize:function(i,o,q){i.ownerCt.apiParametersPanel.isResizing=true;i.ownerCt.mainPanel.setSize({width:o,height:q});o=Ext.getCmp("centerPanel").getHeight()*
3617
- If.get("apiParmsPanelHeight",0.34);i.ownerCt.apiParametersPanel.setHeight(o);setTimeout(function(){i.ownerCt.apiParametersPanel.isResizing=false},100)},afterrender:function(i){var o=i.ownerCt.getSize();i.items.items[0].setSize(o)},added:function(i,o){o.mainPanel=i.items.items[0];o.sourceCodePanel=i.items.items[0].items.items[0];o.apiParametersPanel=i.items.items[0].items.items[1]}}})]});n.apiTab=true;n.root=a;n.X=b;n.CA=k;n.currentDisplay=pui.designer.currentDisplay={};if(f)n.yi=true;n.Mn=[];n.apiRoutes=
3617
+ Jf.get("apiParmsPanelHeight",0.34);i.ownerCt.apiParametersPanel.setHeight(o);setTimeout(function(){i.ownerCt.apiParametersPanel.isResizing=false},100)},afterrender:function(i){var o=i.ownerCt.getSize();i.items.items[0].setSize(o)},added:function(i,o){o.mainPanel=i.items.items[0];o.sourceCodePanel=i.items.items[0].items.items[0];o.apiParametersPanel=i.items.items[0].items.items[1]}}})]});n.apiTab=true;n.root=a;n.X=b;n.CA=k;n.currentDisplay=pui.designer.currentDisplay={};if(f)n.yi=true;n.Mn=[];n.apiRoutes=
3618
3618
  {apiFileID:"",apiType:"",routes:[],apiPermissions:[],validate:function(i,o,q){for(var l=Ext.getCmp("centerPanel").getActiveTab(),s=[],t=i?[i]:l.apiRoutes.routes,u=0;u<t.length;u++){var v=t[u],w=!o?"API: "+(v.name||"???")+" - ":"";if(!o||o=="name"){q=o?q:v.name;if(!q||!q.trim())s.push(w+"The name field is required.");else{var y=l.apiRoutes.routes.filter(function(B){return B.name==q});y&&y.length>1&&s.push(w+"The name field is used more than once.")}}if(!o||o=="summary"){q=o?q:v.summary;if(!q||!q.trim())s.push(w+
3619
3619
  "The summary field is required.")}if(!o||o=="method"){q=o?q:v.method;if(!q||!q.trim())s.push(w+"The method field is required.");else pui.ide.r.apiFilePicker.Cu.slice(1).findIndex(function(B){return B==q})<0&&s.push(w+"The method field is not valid.")}if(!o||o=="path"){q=o?q:v.path;if(!q||!q.trim())s.push(w+"The path field is required.");else if(q=q.trim().replace(/(\\|\/)+/g,"/").replace(/^(\\|\/)/,"").replace(/\/$/,""))if(q.indexOf(" ")>=0)s.push(w+"The path field cannot have any blanks.");else{v=
3620
3620
  q.split("/");for(y=0;y<v.length;y++)if((v[y].match(/^\:[a-z_]([a-z0-9_]+)?$/ig)||v[y].match(/^[a-z0-9_-]+$/ig))==null){s.push(w+"The path field has an invalid path segment: "+v[y]);break}}else s.push(w+"The path field is invalid.")}}if(s.length){if(o)return s.join("\n");if(!i){i=[];for(u=o=0;u<s.length;u++){i.push("<div>"+s[u]+"</div>");if(s[u].length>o)o=s[u].length}Ext.MessageBox.show({title:"Errors",msg:i.join(""),minWidth:o*7,buttons:Ext.Msg.OK,icon:Ext.MessageBox.ERROR})}}return s.length===0},
@@ -3625,7 +3625,7 @@ toSourceView:function(){return JSON.stringify({apiFileID:n.apiRoutes.apiFileID,r
3625
3625
  apiType:n.apiRoutes.apiType,routes:n.apiRoutes.routes},null,2)},sC:function(){n.OD=2;n.apiRoutes.load.call(n);pui.ide.Pn(n)},toDesignView:function(i){pui.display=null;try{eval("pui.display = "+i);n.apiRoutes.load.call(n,pui.display);return true}catch(o){Ext.MessageBox.alert("Error","This file has invalid JSON content. Correct and try again.");return false}},load:function(i){this.Mn.length=0;if(this&&this.apiRoutes){this.apiRoutes.apiType=this.apiRoutes.apiType||i.apiType;this.apiRoutes.apiType||(this.apiRoutes.apiType=
3626
3626
  "rest");if(!i||!i.routes||!Array.isArray(i.routes))i=this.apiRoutes;else for(var o=this.apiRoutes.routes.length=0;o<i.routes.length;o++){var q=i.routes[o],l=Object.keys(q),s={apiRouteID:"",name:""};if(typeof this.apiRoutes.apiType==="string"&&this.apiRoutes.apiType==="soap")s.method="post";this.apiRoutes.routes.push(s);for(var t=0;t<l.length;t++)s[l[t]]=q[l[t]];s.apiRouteID||(s.apiRouteID=pui.newUUID())}this.apiRoutes.apiFileID=this.apiRoutes.apiFileID||i.apiFileID;if(this.apiRoutes.apiFileID){if(pui.securityStoreName){i=
3627
3627
  "/profoundui/PUI0001147.pgm?apiFileID="+this.apiRoutes.apiFileID;if(pui.isCloud)i+="&workspace_id="+pui.cloud.ws.id;xc({url:i,method:"get",suppressAlert:true,handler:function(u){if(u.success)n.apiRoutes.apiPermissions=u.result?u.result.rolePermissions||[]:[];n.routeRecord&&n.apiRoutes.JM()},onfail:function(){pui.alert("An unexpected error ocurred loading the API Permissions. Check your connection and try again.")}})}}else this.apiRoutes.apiFileID=pui.newUUID();if(this.isDirty!==true){Ext.getCmp("swagger_test_dirty").hide();
3628
- for(i=0;i<this.apiRoutes.routes.length;i++){q=this.apiRoutes.routes[i];o={key:q,orgName:q.name,orgMethod:q.method,orgModfile:n.X.replace(/^(\\|\/)?modules(\\|\/)?/i,"")};this.Mn.push(o);q=q.path||"";q.match(/^\//)||(q="/"+q);if(q.indexOf(pui.apiPrefix)!=0)q=pui.apiPrefix+q;q=q.split("/");for(l=0;l<q.length;l++)if(q[l].charAt(0)==":")q[l]="{"+q[l].substring(1)+"}";o.orgPath=q.join("/")}}pui.ide.zf&&Tf(pui.ide.zf,b,this)}},JM:function(){var i=Ext.getCmp("centerPanel").getActiveTab(),o=Ext.getCmp("routePermissionsGrid").getStore();
3628
+ for(i=0;i<this.apiRoutes.routes.length;i++){q=this.apiRoutes.routes[i];o={key:q,orgName:q.name,orgMethod:q.method,orgModfile:n.X.replace(/^(\\|\/)?modules(\\|\/)?/i,"")};this.Mn.push(o);q=q.path||"";q.match(/^\//)||(q="/"+q);if(q.indexOf(pui.apiPrefix)!=0)q=pui.apiPrefix+q;q=q.split("/");for(l=0;l<q.length;l++)if(q[l].charAt(0)==":")q[l]="{"+q[l].substring(1)+"}";o.orgPath=q.join("/")}}pui.ide.zf&&Uf(pui.ide.zf,b,this)}},JM:function(){var i=Ext.getCmp("centerPanel").getActiveTab(),o=Ext.getCmp("routePermissionsGrid").getStore();
3629
3629
  o.clearData();if(i&&i.routeRecord&&i.apiRoutes.apiPermissions){for(var q=i.apiRoutes.apiFileID,l=i.routeRecord.json.apiRouteID,s=[],t=0;t<i.apiRoutes.apiPermissions.length;t++){var u=i.apiRoutes.apiPermissions[t];u.apiFileID!==q||u.apiRouteID!==l||s.push(u)}o.loadData({data:s},false)}},ZV:function(){for(var i=[{apiFileID:n.apiRoutes.apiFileID,apiRouteID:null,rolePerms:[]}],o=0;o<n.apiRoutes.routes.length;o++)i.push({apiFileID:n.apiRoutes.apiFileID,apiRouteID:n.apiRoutes.routes[o].apiRouteID,rolePerms:[]});
3630
3630
  for(o=0;o<n.apiRoutes.apiPermissions.length;o++){var q=n.apiRoutes.apiPermissions[o],l=i.filter(function(s){return s.apiFileID==q.apiFileID&&s.apiRouteID==q.apiRouteID})[0];l&&l.rolePerms.push({roleID:q.roleID,canExecute:q.canExecute})}return{name:"apiPermissions",value:JSON.stringify(i)}},LL:function(i,o){function q(w){Ext.Ajax.request({url:jc("PUI0001122.pgm"),method:"POST",async:false,params:{mode:"getattr",name:n.X,workspace_id:""},success:function(y){y=JSON.parse(y.responseText);if(y.success==
3631
3631
  false){Ext.MessageBox.show({title:"Error",msg:y.error,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});w(false)}else if(y.attr!=null&&y.attr.workspaceDir!=null){y=y.attr.workspaceDir.split(pui.dirSeparator);w(true,y[y.length-1])}else w(true,"")},failure:function(y){Ext.MessageBox.show({title:"Error",msg:"HTTP "+y.status+" - "+y.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});w(false)}})}function l(w,y){for(var B=[],C=0;C<w.length;++C){var z=w[C],K=" ".repeat(y*2);K+="<xsd:"+
@@ -3637,11 +3637,11 @@ i.name+'Port">');y.push(' <wsdl:operation name="'+i.name+'">');typeof u!=="un
3637
3637
  y.push(' <wsdl:operation name="'+i.name+'">');y.push(" <soap:operation");y.push(' soapAction="'+w+'"/>');if(typeof u!=="undefined"){y.push(" <wsdl:input>");y.push(' <soap:body use="literal"/>');B=u.find(function(z){return z.from==="header"});if(typeof B!=="undefined"){y.push(' <soap:header message="tns:'+i.name+'RequestHeader"');y.push(' part="'+B.name+'"');y.push(' use="literal"/>')}y.push(" </wsdl:input>")}if(typeof v!=="undefined"){y.push(" <wsdl:output>");
3638
3638
  y.push(' <soap:body use="literal"/>');B=v.find(function(z){return z.from==="header"});if(typeof B!=="undefined"){y.push(' <soap:header message="tns:'+i.name+'ResponseHeader"');y.push(' part="'+B.name+'"');y.push(' use="literal"/>')}y.push(" </wsdl:output>")}y.push(" </wsdl:operation>");y.push(" </wsdl:binding>");y.push("");y.push(' <wsdl:service name="'+i.name+'">');y.push(' <wsdl:port binding="tns:'+i.name+'SOAP" name="'+i.name+'SOAP">');y.push(' <soap:address location="'+
3639
3639
  w+'"/>');y.push(" </wsdl:port>");y.push(" </wsdl:service>");y.push("</wsdl:definitions>");return o(true,y.join("\n"))})}};if(b)pui.ide.gh({watchFile:b});else n.isDirty=true;Ext.getCmp("apiRoutesGrid").getStore().positionTo=h;n.apiRoutes.load.call(n,d);n.se=n.apiRoutes.toSourceView();a=Ext.getCmp("ideApiProps");a.setActiveTab(a.items.first());c(n)};
3640
- pui.ide.HD=function(b,a,c,d,e,f,g,h){e="file.module.json";var m="js";te=null;if(!a){a=pui.nodedesigner?pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(pui.isCloud)a=pui.cloud.ws.SERVER_DIR;if(a.charAt(a.length-1)==pui.dirSeparator)a=a.substr(0,a.length-1)}var k=pui.ide.ay++;Ha="moduleDesigner"+k+"_1";Na="moduleDesigner"+k+"_";k=Ext.getCmp("centerPanel").getHeight()*If.get("routineParmsHeight",0.34);var n="";n=b==null?"[Unnamed Module File]":b.substr(b.lastIndexOf(pui.dirSeparator)+1);var i=new Ext.Panel({closable:true,
3640
+ pui.ide.HD=function(b,a,c,d,e,f,g,h){e="file.module.json";var m="js";te=null;if(!a){a=pui.nodedesigner?pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(pui.isCloud)a=pui.cloud.ws.SERVER_DIR;if(a.charAt(a.length-1)==pui.dirSeparator)a=a.substr(0,a.length-1)}var k=pui.ide.ay++;Ha="moduleDesigner"+k+"_1";Na="moduleDesigner"+k+"_";k=Ext.getCmp("centerPanel").getHeight()*Jf.get("routineParmsHeight",0.34);var n="";n=b==null?"[Unnamed Module File]":b.substr(b.lastIndexOf(pui.dirSeparator)+1);var i=new Ext.Panel({closable:true,
3641
3641
  title:n,bodyStyle:"position:relative",listeners:{added:function(o){o.changeDefaultRoutine=function(q){var l=Ext.getCmp("centerPanel").getActiveTab(),s=[];if(l&&l.pjsModule)s=l.pjsModule.routines.filter(function(u){return u!=q&&u.isDefault});function t(){if(q)q.isDefault=true;for(var u=0;u<s.length;u++)delete s[u].isDefault;var v=Ext.getCmp("moduleRoutinesGrid");v.getStore().each(function(w){var y=false;if(w.data.isDefault===true){delete w.data.isDefault;y=true}if(w.json===q)y=w.data.isDefault=true;
3642
3642
  y&&v.view.refreshRow(w)});u=v.getTopToolbar();if(q){u.items.items[9].hide();u.items.items[10].show()}else{u.items.items[9].show();u.items.items[10].hide()}v.getStore().commitChanges();pui.ide.fa()}q&&!s.length?t():Ext.MessageBox.confirm("Change Default Routine",q?"Are you sure you want to change the default routine from "+(s[0].name||"UNKNOWN")+" to this one?":"Are you sure you want to remove this routine as the default routine?",function(u){u==="yes"&&t()})};o.onDataChanged=function(q,l,s){if(l===
3643
3643
  undefined)if(q.getValue)l=q.getValue();else if(q.value)l=q.value;if(!(!q||!q.name||!i||!i.routineRecord||!i.routineRecord.json||l===i.routineRecord.json[q.name])){if(s===undefined)s=i.routineRecord.json[q.name];var t=i.routineRecord.json;if(q.name==="code"||q.name==="steps"){typeof t.code!=="undefined"&&delete t.code;typeof t.steps!=="undefined"&&delete t.steps}if(q.name=="isPrivate"&&l===false)l=null;t[q.name]=l;if(i.routineRecord.data[q.name]!==undefined){i.routineRecord.data[q.name]=l;q=Ext.getCmp("moduleRoutinesGrid");
3644
- q.view.refreshRow(q.getSelectionModel().last);q.getStore().commitChanges()}l!=s&&pui.ide.fa()}};o.showRoutine=function(q){if(o.routineRecord=q){o.mainPanel.show();Ext.getCmp("eastIdeProps").show()}else{o.mainPanel.hide();Ext.getCmp("eastIdeProps").hide()}};pui.ide.zf&&Tf(pui.ide.zf,b,this)},bodyresize:pui.ide.hp,afterrender:function(o){o.mp="module.json";o.X&&!f&&pui.designer.Xn(o.X,o.root);pui.ide.Yb();pui.ide.Re.doLayout();o.body.dom.classList.add("codeeditor-container");o.body.dom.parentNode.classList.add("codeeditor-container");
3644
+ q.view.refreshRow(q.getSelectionModel().last);q.getStore().commitChanges()}l!=s&&pui.ide.fa()}};o.showRoutine=function(q){if(o.routineRecord=q){o.mainPanel.show();Ext.getCmp("eastIdeProps").show()}else{o.mainPanel.hide();Ext.getCmp("eastIdeProps").hide()}};pui.ide.zf&&Uf(pui.ide.zf,b,this)},bodyresize:pui.ide.hp,afterrender:function(o){o.mp="module.json";o.X&&!f&&pui.designer.Xn(o.X,o.root);pui.ide.Yb();pui.ide.Re.doLayout();o.body.dom.classList.add("codeeditor-container");o.body.dom.parentNode.classList.add("codeeditor-container");
3645
3645
  var q=o.body.dom.getElementsByClassName("pui-wf-switch-to-code")[0];if(q)q.onclick=function(){var s=o.items.items[0].items.items[0].items.items[0].editor.N;if(q.classList.contains("fa-code"))if(s.actions.length===0){s.jq();s.editor.setValue("")}else{if(confirm("Convert this routine to Node.js? This removes low-code steps.")){screenMask.msg="Generating Node.js code";screenMask.show();var t=s["export"]().steps;Ext.Ajax.request({url:"/profoundui/convertroutine",method:"POST",params:{steps:JSON.stringify(t),
3646
3646
  workspace_id:pui.isCloud?pui.cloud.ws.id:"",context:s.context},callback:function(u,v,w){screenMask.hide();if(w.status!=200)alert("HTTP "+w.status+" - "+w.statusText);else{u=JSON.parse(w.responseText);if(u.success){s.jq();s.editor.setValue(u.code)}else alert(u.message)}}})}}else if(s.editor.getValue()===""){s.clear();s.Uh();s.ye()}else if(confirm("Switch to low-code steps? This removes your routine's code.")){s.clear();s.Uh();s.ye()}};var l=o.body.dom.getElementsByClassName("pui-wf-expand-all")[0];
3647
3647
  if(l)l.onclick=function(){o.items.items[0].items.items[0].items.items[0].editor.N.expandAll()};if(l=o.body.dom.getElementsByClassName("pui-wf-collapse-all")[0])l.onclick=function(){o.items.items[0].items.items[0].items.items[0].editor.N.collapseAll()};document.addEventListener("keydown",function(s){if(o==Ext.getCmp("centerPanel").getActiveTab())if(s.ctrlKey&&(s.keyCode=="83"||s.key=="s"||s.code=="KeyS")){o.isDirty&&setTimeout(function(){Ext.getCmp("_Ribbon_Home_save").handler()});s.preventDefault&&
@@ -3660,7 +3660,7 @@ l,s,t){q=o.getView().findRowIndex(q);q=o.getStore().getAt(q);if(t.selections[0].
3660
3660
  nparent=s.data.inputData;ncolProp="children"}if(v.nj!=u.nj){s=nparent[ncolProp].findIndex(function(w){return w.name==u.inputData.name});if(s>=0){Ext.Msg.alert("Error","A parameter with that same name already exists here.");return}}s=t[l].findIndex(function(w){return w.name==u.inputData.name});s>=0&&t[l].splice(s,1);s=nparent[ncolProp].findIndex(function(w){return w.name==v.inputData.name});if(s>=0){pd()-q.getBoundingClientRect().y>q.getBoundingClientRect().height/2&&s++;q=nparent[ncolProp].slice(0,
3661
3661
  s);t=nparent[ncolProp].slice(s);nparent[ncolProp].length=0;nparent[ncolProp]=q.concat(u.inputData).concat(t)}pui.ide.fa();pui.ide.Av();pui.ide.Wh()}})},beforedestroy:function(o){o&&o.dropZone&&o.dropZone.unreg();return true},rowcontextmenu:function(o,q,l){o=i.routineParametersGrid;o.getSelectionModel().selectRow(q);o.getView().ensureVisible(q);q=o.getStore().getAt(q).data.inputData;o=o.getTopToolbar();var s=[];q.type=="object"&&s.push(new Ext.menu.Item({text:"Add Child Parameter",icon:o.items.items[0].icon,
3662
3662
  handler:o.items.items[0].handler}));s.push(new Ext.menu.Item({text:o.items.items[1].tooltip,icon:o.items.items[1].icon,handler:o.items.items[1].handler}));s.push(new Ext.menu.Item({text:o.items.items[2].tooltip,icon:o.items.items[2].icon,handler:o.items.items[2].handler}));(new Ext.menu.Menu({items:s})).showAt(l.getXY());l.stopEvent()},rowdblclick:function(o,q,l){o.getTopToolbar().items.items[1].handler(l)},added:function(o){var q=[];q.push({id:"name",header:"Name",width:150,dataIndex:"inputData",
3663
- renderer:function(l,s,t,u,v,w){l="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+l.name+"</div></span>";s=[];if(t.data.parentID>=0){w=Jf(t.data.parentID,w);for(v=0;v<w.length;v++)s.push('<img alt="" style="'+w[v]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}s=s.join("");w='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(t.data.isLastTreeItem)w+="-end";if(t.data.inputData.type==
3663
+ renderer:function(l,s,t,u,v,w){l="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+l.name+"</div></span>";s=[];if(t.data.parentID>=0){w=Kf(t.data.parentID,w);for(v=0;v<w.length;v++)s.push('<img alt="" style="'+w[v]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}s=s.join("");w='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(t.data.isLastTreeItem)w+="-end";if(t.data.inputData.type==
3664
3664
  "object")w+="-minus\" onclick=\"pui.ide.toggleGridRow('routineParametersGrid', "+u+", 'name')";w+='"></img>';return s+w+l}});q.push({id:"type",header:"Type",width:75,dataIndex:"inputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.type}});q.push({id:"required",header:"Required",width:40,dataIndex:"inputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.required?"true":""}});q.push({id:"multipleValues",header:"Array",width:40,dataIndex:"inputData",
3665
3665
  renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.multipleValues?"true":""}});pui.showIBMiParmDefn&&q.push({id:"ibmiFieldDefn",header:"RPG Field Definition",width:75,dataIndex:"inputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return pui.ide.xE(l)}});q.push({id:"description",header:"Description",width:150,dataIndex:"inputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.description}});o.getColumnModel().setConfig(q)}}})],
3666
3666
  listeners:{added:function(o){o.updateFields=o.updateFields||function(){pui.ide.Av()}}}}),new Ext.Panel({title:"Output Parameters",layout:"fit",header:false,items:[new Ext.grid.GridPanel({closable:false,autoScroll:true,border:false,frame:false,cls:"x-tree-lines",store:new Ext.data.JsonStore({autoDestroy:true,root:"data",fields:["level","parentID","outputData","isLastTreeItem","collapsed"],listeners:{load:function(o){pui.ide.jp(o,Ext.getCmp("centerPanel").getActiveTab().routineOutputsGrid,"outputData")}}}),
@@ -3674,14 +3674,14 @@ listeners:{render:function(o){o.dropZone=new Ext.dd.DropZone(o.getView().scrolle
3674
3674
  if(t.id==l.id)return false;var u=t.data,v=l.data;t=nparent=i.routineRecord.json;l=ncolProp="outputs";if(u.parentID>=0){s=o.getStore().getAt(u.parentID);t=s.data.outputData;l="children"}if(v.parentID>=0){s=o.getStore().getAt(v.parentID);nparent=s.data.outputData;ncolProp="children"}if(v.nj!=u.nj){s=nparent[ncolProp].findIndex(function(w){return w.name==u.outputData.name});if(s>=0){Ext.Msg.alert("Error","A parameter with that same name already exists here.");return}}s=t[l].findIndex(function(w){return w.name==
3675
3675
  u.outputData.name});s>=0&&t[l].splice(s,1);s=nparent[ncolProp].findIndex(function(w){return w.name==v.outputData.name});if(s>=0){pd()-q.getBoundingClientRect().y>q.getBoundingClientRect().height/2&&s++;q=nparent[ncolProp].slice(0,s);t=nparent[ncolProp].slice(s);nparent[ncolProp].length=0;nparent[ncolProp]=q.concat(u.outputData).concat(t)}pui.ide.fa();pui.ide.zv();pui.ide.Wh()}})},beforedestroy:function(o){o&&o.dropZone&&o.dropZone.unreg();return true},rowcontextmenu:function(o,q,l){o=Ext.getCmp("centerPanel").getActiveTab().routineOutputsGrid;
3676
3676
  o.getSelectionModel().selectRow(q);o.getView().ensureVisible(q);q=o.getStore().getAt(q).data.outputData;o=o.getTopToolbar();var s=[];q.type=="object"&&s.push(new Ext.menu.Item({text:"Add Child Parameter",icon:o.items.items[0].icon,handler:o.items.items[0].handler}));s.push(new Ext.menu.Item({text:o.items.items[1].tooltip,icon:o.items.items[1].icon,handler:o.items.items[1].handler}));s.push(new Ext.menu.Item({text:o.items.items[2].tooltip,icon:o.items.items[2].icon,handler:o.items.items[2].handler}));
3677
- (new Ext.menu.Menu({items:s})).showAt(l.getXY());l.stopEvent()},rowdblclick:function(o,q,l){o.getTopToolbar().items.items[1].handler(l)},added:function(o){var q=[];q.push({id:"name",header:"Name",width:150,dataIndex:"outputData",renderer:function(l,s,t,u,v,w){l="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+l.name+"</div></span>";s=[];if(t.data.parentID>=0){w=Jf(t.data.parentID,w);for(v=0;v<w.length;v++)s.push('<img alt="" style="'+w[v]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}s=
3677
+ (new Ext.menu.Menu({items:s})).showAt(l.getXY());l.stopEvent()},rowdblclick:function(o,q,l){o.getTopToolbar().items.items[1].handler(l)},added:function(o){var q=[];q.push({id:"name",header:"Name",width:150,dataIndex:"outputData",renderer:function(l,s,t,u,v,w){l="<span style='font-weight:bold;padding:2px 0px 0px 2px;display:inline-flex'><div>"+l.name+"</div></span>";s=[];if(t.data.parentID>=0){w=Kf(t.data.parentID,w);for(v=0;v<w.length;v++)s.push('<img alt="" style="'+w[v]+'" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-elbow-line"></img>')}s=
3678
3678
  s.join("");w='<img alt="" src="/ext-3.4.1.1/resources/images/default/s.gif" class="x-tree-ec-icon x-tree-elbow';if(t.data.isLastTreeItem)w+="-end";if(t.data.outputData.type=="object")w+="-minus\" onclick=\"pui.ide.toggleGridRow('routineOutputsGrid', "+u+", 'name')";w+='"></img>';return s+w+l}});q.push({id:"type",header:"Type",width:40,dataIndex:"outputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.type}});q.push({id:"multipleValues",header:"Array",width:40,dataIndex:"outputData",
3679
3679
  renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.multipleValues?"true":""}});pui.showIBMiParmDefn&&q.push({id:"ibmiFieldDefn",header:"RPG Field Definition",width:75,dataIndex:"outputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return pui.ide.xE(l)}});q.push({id:"description",header:"Description",width:150,dataIndex:"outputData",renderer:function(l,s){s.attr="style='margin: 2px 2px 0px 5px;'";return l.description}});o.getColumnModel().setConfig(q)}}})],
3680
3680
  listeners:{added:function(o){o.updateFields=o.updateFields||function(){pui.ide.zv()}}}})],listeners:{added:function(o){if(pui.showIBMiParmDefn===true){var q=new Ext.Panel({title:"IBM i Call Interface",layout:"fit",header:false,items:[],tbar:new Ext.Toolbar({items:[{text:"Copy RPG snippet to clipboard",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/copy.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/page_copy.png",handler:function(){var l=i.ibmiCallIntfPanel.editor.getValue();
3681
3681
  navigator.clipboard.writeText(l)}}],afterrender:function(l){if(!navigator.clipboard||!navigator.clipboard.writeText)l.hide()}}),listeners:{afterrender:function(l){setTimeout(function(){if(pui.useAceEditor||pui.is_ie||pui.ie_mode<=11||!window.monaco)i.Ab=true;if(i.Ab){window.require&&window.require.config({eY:{ace:"lib/ace"}});l.editor=ace.edit(l.body.dom);l.editor.setTheme("ace/theme/eclipse");l.editor.getSession().setMode(pui.ide.tE(i.X||e));l.editor.setShowPrintMargin(false);l.editor.setDisplayIndentGuides(false);
3682
3682
  l.editor.setReadOnly(true);l.editor.session.setTabSize(2);l.editor.setValue("");l.editor.clearSelection()}else{m=pui.ide.DE("rpg");l.body.dom.classList.add("codeeditor-container");l.body.dom.parentNode.classList.add("codeeditor-container");l.editor=monaco.editor.create(l.body.dom,{value:"",language:m,minimap:{enabled:false},fixedOverflowWidgets:true,hideCursorInOverviewRuler:true,overviewRulerBorder:false,readOnly:true,tabSize:2,disableMonospaceOptimizations:navigator.platform.toUpperCase().indexOf("MAC")>=
3683
3683
  0});l.editor.layout()}pui.ide.Wh();g||l.editor.focus()},0)},resize:function(l){l.justResize()},beforedestroy:function(){if(i.ibmiCallIntfPanel.editor)i.Ab?i.ibmiCallIntfPanel.editor.destroy():i.ibmiCallIntfPanel.editor.dispose()}}});q.updateFields=function(){pui.ide.Wh()};q.justResize=function(){if(i.ibmiCallIntfPanel.editor)i.Ab?i.ibmiCallIntfPanel.editor.resize():i.ibmiCallIntfPanel.editor.layout()};o.items.add(q)}},bodyresize:function(o,q,l){if(o.isResizing!=true){o=Ext.getCmp("centerPanel").getHeight();
3684
- if(typeof l=="number"){l+=29;l=parseInt(l/o*1E4)/1E4;if(l>0.02&&l<0.8){If.set("routineParmsHeight",l);If.save()}}}}}})],listeners:{afterrender:function(o){o.body.dom.classList.add("codeeditor-container");o.body.dom.parentNode.classList.add("codeeditor-container")}}})],listeners:{resize:function(o,q,l){o.ownerCt.routineParametersPanel.isResizing=true;o.ownerCt.mainPanel.setSize({width:q,height:l});q=Ext.getCmp("centerPanel").getHeight()*If.get("routineParmsHeight",0.34);o.ownerCt.routineParametersPanel.setHeight(q);
3684
+ if(typeof l=="number"){l+=29;l=parseInt(l/o*1E4)/1E4;if(l>0.02&&l<0.8){Jf.set("routineParmsHeight",l);Jf.save()}}}}}})],listeners:{afterrender:function(o){o.body.dom.classList.add("codeeditor-container");o.body.dom.parentNode.classList.add("codeeditor-container")}}})],listeners:{resize:function(o,q,l){o.ownerCt.routineParametersPanel.isResizing=true;o.ownerCt.mainPanel.setSize({width:q,height:l});q=Ext.getCmp("centerPanel").getHeight()*Jf.get("routineParmsHeight",0.34);o.ownerCt.routineParametersPanel.setHeight(q);
3685
3685
  setTimeout(function(){o.ownerCt.routineParametersPanel.isResizing=false},100)},afterrender:function(o){var q=o.ownerCt.getSize();o.items.items[0].setSize(q)},added:function(o,q){q.mainPanel=o.items.items[0];q.sourceCodePanel=o.items.items[0].items.items[0];q.routineParametersPanel=o.items.items[0].items.items[1];q.inputsPanel=q.routineParametersPanel.items.items[0];q.routineParametersGrid=q.inputsPanel.items.items[0];q.outputsPanel=q.routineParametersPanel.items.items[1];q.routineOutputsGrid=q.outputsPanel.items.items[0];
3686
3686
  if(q.routineParametersPanel.items.items[2])q.ibmiCallIntfPanel=q.routineParametersPanel.items.items[2]}}})]});i.pjsModuleTab=true;i.root=a;i.X=b;i.currentDisplay=pui.designer.currentDisplay={};if(f)i.yi=true;if(pui.lowcodeSupport&&pui.nodedesigner)pui.wf.G=i.mo=new pui.wf.Tracker;i.pjsModule={routines:[],validate:function(o,q,l){for(var s=[],t=o?[o]:i.pjsModule.routines,u=0;u<t.length;u++){var v=t[u],w=!q?"Routine: "+(v.name||"???")+" - ":"";if(!q||q=="name"){l=q?l:v.name;if(!l||!l.trim())s.push(w+
3687
3687
  "The name field is required.");else{v=l.match(/^(public|private|function|default)$/);v!=null&&v.length&&s.push(w+"This name is a reserved word and may not be used.");(v=i.pjsModule.routines.filter(function(y){return y.name==l}))&&v.length>1&&s.push(w+"This name must be unique within this module.")}}}if(s.length){if(q)return s.join("\n");if(!o){o=[];for(u=q=0;u<s.length;u++){o.push("<div>"+s[u]+"</div>");if(s[u].length>q)q=s[u].length}Ext.MessageBox.show({title:"Errors",msg:o.join(""),minWidth:q*7,
@@ -3796,10 +3796,10 @@ selectOnFocus:true,validator:function(l){return pui.ide.uH(l,q.editNode.leaf!=tr
3796
3796
  pui.cloud.ws.id?pui.cloud.ws.id:""},success:function(y){o.body.unmask();y=JSON.parse(y.responseText);if(y.success==false)Ext.MessageBox.show({title:"Error",msg:y.error,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR,fn:function(){u.parentNode.reload()}});else{if(pui.nodedesigner&&!pui.isCloud&&pui.pjsWorkspaceSupport)if(pui.MODULES_DIR)u.parentNode===o.getNodeById(pui.MODULES_DIR)&&pui.ide.getWorkspaceInfo();else u.parentNode===o.getNodeById(pui.PROFOUNDJS_DIR+pui.dirSeparator+"modules")&&pui.ide.getWorkspaceInfo();
3797
3797
  if(pui.pjsWorkspace){var B="\\"+pui.dirSeparator,C=v.match(RegExp("^"+B+U.jd()+B+pui.pjsWorkspace.name+"$"));if(C){var z=w.replace(RegExp("^"+B+U.jd()+B),"");pui.pjsWorkspace.name=z}}if(y.settings)if(pui.isCloud)pui.cloud.ws.settings=y.settings;else if(pui.pjsWorkspace){B="\\"+pui.dirSeparator;if((C=v.match(RegExp("^"+B+U.jd()+B+"([^"+B+"]+)"+B)))&&C[1]===pui.pjsWorkspace.name)pui.pjsWorkspace.settings=y.settings}u.parentNode.reload();pui.ide.Tz(v,w,!pui.ide.isLeaf(u));pui.pjsWorkspace&&z&&Ext.MessageBox.show({title:"Workspace Renamed",
3798
3798
  msg:"Workspace renamed, IDE must be restarted.",icon:Ext.MessageBox.INFO,buttons:Ext.MessageBox.OK,fn:function(){pui.ide.hl(false,function(){location.href="/ide/"+z+"/"})}})}},failure:function(y){o.body.unmask();Ext.MessageBox.show({title:"Error",msg:"HTTP "+y.status+" - "+y.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR,fn:function(){u.parentNode.reload()}})}})}},beforeNodeClick:function(l,s){clearTimeout(this.w0);if(l.isSelected()&&s.target==l.ui.getTextEl()&&!s.ctrlKey&&!s.shiftKey){s.stopEvent();
3799
- return this.triggerEdit(l)}}});f=[k,f,o,pui.ide.JU()];pui.gitSupport&&f.push(pui.ide.jW());return new Ext.TabPanel({id:"widgetsPanel",region:"west",border:true,width:If.get("widgetsPanelWidth","")==""?315:If.get("widgetsPanelWidth",""),margins:"0 0 0 0",split:true,collapseMode:"mini",animCollapse:true,items:f,enableTabScroll:true,activeTab:0,oM:pui.isCloud||pui.nodedesigner&&pui.lowcodeSupport&&!pui.ide.dl(false)?"fileTree":If.get("widgetsActiveTab","widgetSets"),listeners:{bodyresize:function(l,
3800
- s){If.set("widgetsPanelWidth",s);If.save()},tabchange:function(l,s){var t=Ext.getCmp("widgetSets");if(s==t)if(t=t.find("collapsed",false)[0]){t.collapse();t.expand()}If.set("widgetsActiveTab",s?s.id:null);If.save();if(t=Ext.getCmp("centerPanel").activeTab)t.BH=If.get("widgetsActiveTab")}}})};var rg=[],sg;
3801
- pui.ide.bL=function(b){var a=Ext.getCmp("treePanel");if(sg==undefined||sg.length<1)sg=new Ext.tree.TreeFilter(a,{clearBlank:true,autoClear:true});var c;try{c=b.target.value}catch(d){c=""}c=dc(c);Ext.each(rg,function(f){f.bubble(function(){this.ui.show()});f.ui.show()});if(!c||c=="Find Widget")sg.clear();else{a.expandAll();var e=RegExp(Ext.escapeRe(c),"i");sg.filterBy(function(f){return!pui.ide.isLeaf(f)||e.test(f.text)});rg=[];a.root.cascade(function(f){if(!pui.ide.isLeaf(f)&&f.ui.ctNode.offsetHeight<
3802
- 3){f.ui.hide();rg.push(f)}})}};
3799
+ return this.triggerEdit(l)}}});f=[k,f,o,pui.ide.JU()];pui.gitSupport&&f.push(pui.ide.jW());return new Ext.TabPanel({id:"widgetsPanel",region:"west",border:true,width:Jf.get("widgetsPanelWidth","")==""?315:Jf.get("widgetsPanelWidth",""),margins:"0 0 0 0",split:true,collapseMode:"mini",animCollapse:true,items:f,enableTabScroll:true,activeTab:0,oM:pui.isCloud||pui.nodedesigner&&pui.lowcodeSupport&&!pui.ide.dl(false)?"fileTree":Jf.get("widgetsActiveTab","widgetSets"),listeners:{bodyresize:function(l,
3800
+ s){Jf.set("widgetsPanelWidth",s);Jf.save()},tabchange:function(l,s){var t=Ext.getCmp("widgetSets");if(s==t)if(t=t.find("collapsed",false)[0]){t.collapse();t.expand()}Jf.set("widgetsActiveTab",s?s.id:null);Jf.save();if(t=Ext.getCmp("centerPanel").activeTab)t.BH=Jf.get("widgetsActiveTab")}}})};var sg=[],tg;
3801
+ pui.ide.bL=function(b){var a=Ext.getCmp("treePanel");if(tg==undefined||tg.length<1)tg=new Ext.tree.TreeFilter(a,{clearBlank:true,autoClear:true});var c;try{c=b.target.value}catch(d){c=""}c=dc(c);Ext.each(sg,function(f){f.bubble(function(){this.ui.show()});f.ui.show()});if(!c||c=="Find Widget")tg.clear();else{a.expandAll();var e=RegExp(Ext.escapeRe(c),"i");tg.filterBy(function(f){return!pui.ide.isLeaf(f)||e.test(f.text)});sg=[];a.root.cascade(function(f){if(!pui.ide.isLeaf(f)&&f.ui.ctNode.offsetHeight<
3802
+ 3){f.ui.hide();sg.push(f)}})}};
3803
3803
  pui.ide.CY=function(){function b(){var e=a.getSelectionModel().getSelectedNode();d.editNode=e;splitText=$c(e.ui.textNode).split(" - ");e.ui.textNode.innerHTML=splitText[0];d.startEdit(e.ui.textNode);if(pui.nodedesigner&&pui.pjsDefaultMode==="compatibility")d.el.dom.firstChild.style.textTransform="lowercase"}Ext.tree.DefaultSelectionModel.override({onKeyDown:Ext.emptyFn});var a=new Ext.tree.TreePanel({id:"recordFormatTree",title:pui.viewdesigner||pui.nodedesigner?"Screens":"Record Formats",autoScroll:true,
3804
3804
  containerScroll:true,rootVisible:false,split:true,animate:true,border:true,root:new Ext.tree.AsyncTreeNode({text:"Root"}),tbar:[{tooltip:"Add "+(pui.nodedesigner?"Screen":"Record Format"),icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/add.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/add.png",handler:function(){te.add()}},{tooltip:"Remove "+(pui.nodedesigner?"Screen":"Record Format"),icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/remove-1.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/delete.png",
3805
3805
  handler:function(){te.remove();pui.ide.fa()}},{tooltip:"Edit Name",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/edit.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/pencil.png",handler:b},"-",{id:"_Copy_Record_Format",tooltip:"Copy Entire Screen",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/copy.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/page_copy.png",handler:function(){te.copy();Ext.getCmp("_Paste_Record_Format").setDisabled(false)}},
@@ -3847,10 +3847,11 @@ pui.ide.Wh=function(){var b=Ext.getCmp("centerPanel").getActiveTab();if(b.ibmiCa
3847
3847
  d.push(" ParmType Char(30) Const;");d.push(" ModuleID VarUCS2(500) Const;");d.push(" RoutineName VarUCS2(70) Const;");d.push(" InputParms Char(16773104) Const Options(*Varsize:*Omit:*NoPass);");d.push(" InputParmSize Int(10) Const Options(*Omit:*NoPass);");d.push(" OutputParms Char(16773104) Options(*Varsize:*Omit:*NoPass);");d.push(" OutputParmSize Int(10) Const Options(*Omit:*NoPass);");d.push("End-PR;");if(c.Jr){d.push("");
3848
3848
  d=d.concat(c.Jr)}if(c.Op){d.push("");d=d.concat(c.Op)}a=a.name;var e=null;if(pui.isCloud)e=[pui.cloud.ws.owner,pui.cloud.ws.url_path,b.X.replace(/^(\\|\/)?/,"")];else{e=b.X.replace(/^(\\|\/)?modules(\\|\/)?/i,"");if(pui.pjsWorkspace){var f=RegExp("^"+pui.pjsWorkspace.name,"i");e=e.match(f)!=null?[pui.pjsWorkspace.name,e.replace(f,"").replace(/^(\\|\/)?/i,"")]:[e]}else e=[e]}e[0]=" : '"+e[0];for(f=1;f<e.length;)if(e[f-1].length+1+e[f].length<77){e[f-1]+=":"+e[f];e.splice(f,1)}else{e[f-1]+="+";e[f]=
3849
3849
  " :"+e[f];f++}e[e.length-1]+="'";d.push("");d.push("Monitor;");d.push("");d.push(" PJSCALL('*MODULE'");for(f=0;f<e.length;f++)d.push(e[f]);d.push(" : '"+a+"'");if(c.Jr){d.push(" : InputDS");d.push(" : %Size(InputDS)")}else if(c.Op){d.push(" : *OMIT");d.push(" : *OMIT")}if(c.Op){d.push(" : OutputDS");d.push(" : %Size(OutputDS)")}d.push(" );");d.push("");d.push("On-Error;");d.push("");d.push("EndMon;");b.ibmiCallIntfPanel.editor.setValue(" "+d.join("\n "))}}}else b.ibmiCallIntfPanel.editor.setValue("You must save this module file before the code snippet can be generated.")};
3850
- pui.ide.N_=function(){function b(c,d){for(var e=0;e<c.length;e++){var f=c[e];if(f.type==="object")Array.isArray(f.children)&&f.children.length>0?b(f.children,d):a.push(d+' "'+f.name+'" is an empty data structure. Data structures must have at least 1 subfield.')}}var a=[];Array.isArray(tab.routineRecord.json.inputs)&&b(tab.routineRecord.json.inputs,"Input parameter");Array.isArray(tab.routineRecord.json.outputs)&&b(tab.routineRecord.json.outputs,"Output parameter");return a};
3851
- pui.ide.sy=function(b,a){if(!b){var c={Jr:null,Op:null};if(Array.isArray(tab.routineRecord.json.inputs)&&tab.routineRecord.json.inputs.length){c.Jr=pui.ide.sy(tab.routineRecord.json.inputs);c.Jr.unshift("Dcl-DS InputDS Qualified Inz;");c.Jr.push("End-DS;")}if(Array.isArray(tab.routineRecord.json.outputs)&&tab.routineRecord.json.outputs.length){c.Op=pui.ide.sy(tab.routineRecord.json.outputs);c.Op.unshift("Dcl-DS OutputDS Qualified Inz;");c.Op.push("End-DS;")}return c}a=typeof a=="number"?a:2;c=" ".repeat(a);
3852
- var d=[],e=0;if(Array.isArray(b)&&b.length)for(var f=0;f<b.length;f++)if(b[f].type!=="object"&&b[f].name.length>e)e=b[f].name.length;if(Array.isArray(b)&&b.length){e++;for(f=0;f<b.length;f++)if(b[f].type==="object"){c=" ".repeat(a);var g="Dcl-DS "+b[f].name;if(b[f].multipleValues===undefined||b[f].multipleValues===false)delete b[f].ibmiDim;if(b[f].ibmiDim)g+=" Dim("+b[f].ibmiDim+")";d.push(c+g+";");g=pui.ide.sy(b[f].children,a+2);d=d.concat(g);d.push(c+"End-DS;")}else{c=" ".repeat(a);g=pui.ide.xE(b[f]);
3853
- var h=b[f].name+" ".repeat(e-b[f].name.length);d.push(c+h+" "+g+";")}}return d};
3850
+ pui.ide.N_=function(){function b(d,e){for(var f=0;f<d.length;f++){var g=d[f];if(g.type==="object")Array.isArray(g.children)&&g.children.length>0?b(g.children,e):c.push(e+' "'+g.name+'" is an empty data structure. Data structures must have at least 1 subfield.')}}var a=Ext.getCmp("centerPanel").getActiveTab(),c=[];Array.isArray(a.routineRecord.json.inputs)&&b(a.routineRecord.json.inputs,"Input parameter");Array.isArray(a.routineRecord.json.outputs)&&b(a.routineRecord.json.outputs,"Output parameter");
3851
+ return c};
3852
+ pui.ide.sy=function(b,a){if(!b){var c={Jr:null,Op:null},d=Ext.getCmp("centerPanel").getActiveTab();if(Array.isArray(d.routineRecord.json.inputs)&&d.routineRecord.json.inputs.length){c.Jr=pui.ide.sy(d.routineRecord.json.inputs);c.Jr.unshift("Dcl-DS InputDS Qualified Inz;");c.Jr.push("End-DS;")}if(Array.isArray(d.routineRecord.json.outputs)&&d.routineRecord.json.outputs.length){c.Op=pui.ide.sy(d.routineRecord.json.outputs);c.Op.unshift("Dcl-DS OutputDS Qualified Inz;");c.Op.push("End-DS;")}return c}a=typeof a==
3853
+ "number"?a:2;c=" ".repeat(a);d=[];var e=0;if(Array.isArray(b)&&b.length)for(var f=0;f<b.length;f++)if(b[f].type!=="object"&&b[f].name.length>e)e=b[f].name.length;if(Array.isArray(b)&&b.length){e++;for(f=0;f<b.length;f++)if(b[f].type==="object"){c=" ".repeat(a);var g="Dcl-DS "+b[f].name;if(b[f].multipleValues===undefined||b[f].multipleValues===false)delete b[f].ibmiDim;if(b[f].ibmiDim)g+=" Dim("+b[f].ibmiDim+")";d.push(c+g+";");g=pui.ide.sy(b[f].children,a+2);d=d.concat(g);d.push(c+"End-DS;")}else{c=
3854
+ " ".repeat(a);g=pui.ide.xE(b[f]);var h=b[f].name+" ".repeat(e-b[f].name.length);d.push(c+h+" "+g+";")}}return d};
3854
3855
  pui.ide.xE=function(b){var a="";switch(b.type){case "string":a="VarChar("+(b.ibmiLength||"?")+")";break;case "decimal":a="Zoned("+(b.ibmiLength||"?")+": "+(b.ibmiDecimals||"0")+")";break;case "integer":a="Int(10)";break;case "bigint":a="Int(20)";break;case "float":a="Float(8)";break;case "boolean":a="Ind";break;case "object":a="DS";break;case "datetime":a="Timestamp";break;case "date":a="Date";break;case "time":a="Time";break}if(b.multipleValues===true)a+=" Dim("+(b.ibmiDim||"?")+")";return a};
3855
3856
  pui.ide.lZ=function(){var b=new Ext.data.JsonStore({autoDestroy:true,root:"data",fields:["apiFileID","apiRouteID","roleID","roleName","canExecute"],listeners:{load:function(a){var c=Ext.getCmp("routePermissionsGrid"),d=c.getSelectionModel(),e=-1;if(typeof a.positionTo=="string"){e=a.findExact("roleName",a.positionTo);a.positionTo=null}setTimeout(function(){e>=0&&d.selectRow(e);c.getView().ensureVisible(e)},200)}}});return new Ext.grid.GridPanel({id:"routePermissionsGrid",autoExpandColumn:"name",store:b,
3856
3857
  border:true,frame:false,autoScroll:true,viewConfig:{forceFit:true},sm:new Ext.grid.RowSelectionModel({singleSelect:false,listeners:{rowselect:function(){Ext.getCmp("routePermissionsGrid").getTopToolbar().items.items[1].enable()},rowdeselect:function(a){var c=Ext.getCmp("routePermissionsGrid").getTopToolbar();a.selections.length>0?c.items.items[1].enable():c.items.items[1].disable()}}}),tbar:[{text:"Add",icon:"/profoundui/proddata/images/FlatIcons/16x16/add.png",iconAlign:"left",handler:function(){pui.ide.r.BO({mode:"selection",
@@ -3892,16 +3893,16 @@ T.designer.ub();pui.ide.Lf();pui.ide.fa()}},"-",{icon:pui.flatlook?"/profoundui/
3892
3893
  1;f.remove(d);f.insert(g,d);c.getSelectionModel().selectRow(g);c.getView().focusRow(g);pui.ide.fa()}if(e=="refresh"){pui.ide.Lf();d=c.getStore().findExact("id",d.data.id);c.getSelectionModel().selectRow(d);c.getView().focusRow(d);pui.ide.fa()}}}},{icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/down.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/move-down.gif",tooltip:"Move Down",handler:function(){var d=c.getSelectionModel().getSelected(),e=T.designer.items,f=b(d);e=e.indexOf(f);
3893
3894
  e=T.designer.Vu(e);if(e==true){f=c.getStore();var g=f.indexOf(d)+1;f.remove(d);f.insert(g,d);c.getSelectionModel().selectRow(g);c.getView().focusRow(g);pui.ide.fa()}if(e=="refresh"){pui.ide.Lf();d=c.getStore().findExact("id",d.data.id);c.getSelectionModel().selectRow(d);c.getView().focusRow(d);pui.ide.fa()}}},"-",{icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/remove-1.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/delete.png",tooltip:"Remove Element",handler:function(){if(c.getSelectionModel().hasSelection()){c.fireEvent("rowclick",
3894
3895
  c);T.designer.Ii();T.designer.s.Hd("Remove "+T.designer.selection.Rg());pui.ide.refreshRibbon()}}},"-",{icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/top.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/percent_top.png",disabled:true,tooltip:"Move to Main Canvas",handler:function(){if(c.getSelectionModel().hasSelection()){var d=c.getSelectionModel().getSelected();d=b(d);var e=d.pg(),f=d.Gf();if(e||f){T.designer.wa.style.top="0px";T.designer.wa.style.left="0px";T.designer.wa.style.right=
3895
- "";T.designer.wa.style.bottom="";d.dom.grid?d.dom.grid.XM():pui.designer.ZM(d,f);pui.ide.fa()}}}},"-",{xtype:"textfield",emptyText:"Search Element",id:"ElementSearchBox",name:"theField",value:"",enableKeyEvents:true,listeners:{keyup:function(d,e){var f=Ext.getCmp("searchClear");if(e.target.value==""||!e.target.value){f.disable();T.designer.selection.clear();T.designer.ub();pui.ide.Lf()}else{f.enable();f=c.getStore();pui.ide.NH(e.target.value,f)}}}},tg,ug]});return c};
3896
- var ug=new Ext.Button({text:"clear",id:"searchClear",disabled:true,handler:function(){var b=Ext.getCmp("ElementSearchBox");Ext.getCmp("FilterBy").setValue("All");b.setValue("");ug.disable();pui.ide.Lf()}}),tg=new Ext.form.ComboBox({triggerAction:"all",id:"FilterBy",mode:"local",editable:false,width:100,emptyText:"Filter by",value:"All",store:new Ext.data.ArrayStore({data:[["All"],["Type"],["ID"],["Bound name/Value"]],fields:["name"]}),valueField:"name",displayField:"name",listeners:{select:function(){try{var b=
3896
+ "";T.designer.wa.style.bottom="";d.dom.grid?d.dom.grid.XM():pui.designer.ZM(d,f);pui.ide.fa()}}}},"-",{xtype:"textfield",emptyText:"Search Element",id:"ElementSearchBox",name:"theField",value:"",enableKeyEvents:true,listeners:{keyup:function(d,e){var f=Ext.getCmp("searchClear");if(e.target.value==""||!e.target.value){f.disable();T.designer.selection.clear();T.designer.ub();pui.ide.Lf()}else{f.enable();f=c.getStore();pui.ide.NH(e.target.value,f)}}}},ug,vg]});return c};
3897
+ var vg=new Ext.Button({text:"clear",id:"searchClear",disabled:true,handler:function(){var b=Ext.getCmp("ElementSearchBox");Ext.getCmp("FilterBy").setValue("All");b.setValue("");vg.disable();pui.ide.Lf()}}),ug=new Ext.form.ComboBox({triggerAction:"all",id:"FilterBy",mode:"local",editable:false,width:100,emptyText:"Filter by",value:"All",store:new Ext.data.ArrayStore({data:[["All"],["Type"],["ID"],["Bound name/Value"]],fields:["name"]}),valueField:"name",displayField:"name",listeners:{select:function(){try{var b=
3897
3898
  Ext.getCmp("ElementSearchBox").el.dom.value;b==="Search Element"||b==undefined||pui.ide.NH(b)}catch(a){console.log(a)}}}});
3898
3899
  pui.ide.NH=function(b,a){a||(a=Ext.getCmp("elementsGrid").getStore());a.removeAll();var c=Ext.getCmp("FilterBy").el.dom.value,d;if(c.toLowerCase()=="id")d=pui.ide.YK(b);if(c.toLowerCase()=="bound name/value")d=d=pui.ide.$K(b);if(c.toLowerCase()=="type"){var e=pui.ide.ZK(b);d=e}if(c.toLowerCase()=="all"){c=pui.ide.YK(b);d=pui.ide.$K(b);e=pui.ide.ZK(b);var f=[];(new Set(c.concat(e,d))).forEach(function(k){f.push(k)});d=f}var g=new pui.ide.Ew(null,-1,"","","");d.map(function(k){itemProps=k.properties;
3899
- vg(g,itemProps.id,itemProps["field type"],itemProps.value)});var h=0,m=Ext.data.Record.create([{name:"id"},{name:"icon"},{name:"type"},{name:"value"},{name:"parent"},{name:"level"}]);g.forEach(function(k){k=[new m({id:k.id,icon:"",type:k.type,value:pui.h(k.value)||pui.Va(k.value)||pui.xb(k.value)?k.value.designValue:k.value,parent:k.parent!=null?k.parent.id:"",level:k.Ba})];a.insert(h++,k)})};pui.ide.YK=function(b){return T.designer.items.filter(function(a){return a.properties.id.toLowerCase().includes(b.toLowerCase())})};
3900
+ wg(g,itemProps.id,itemProps["field type"],itemProps.value)});var h=0,m=Ext.data.Record.create([{name:"id"},{name:"icon"},{name:"type"},{name:"value"},{name:"parent"},{name:"level"}]);g.forEach(function(k){k=[new m({id:k.id,icon:"",type:k.type,value:pui.h(k.value)||pui.Va(k.value)||pui.xb(k.value)?k.value.designValue:k.value,parent:k.parent!=null?k.parent.id:"",level:k.Ba})];a.insert(h++,k)})};pui.ide.YK=function(b){return T.designer.items.filter(function(a){return a.properties.id.toLowerCase().includes(b.toLowerCase())})};
3900
3901
  pui.ide.$K=function(b){try{return T.designer.items.filter(function(c){c=c.properties;if(typeof c.value=="string")return c.value.toLowerCase().includes(b.toLowerCase());if(typeof c.value=="object")return c.value.fieldName.toLowerCase().includes(b.toLowerCase())})}catch(a){console.log(a)}};pui.ide.ZK=function(b){try{return T.designer.items.filter(function(c){return c.properties["field type"].toLowerCase().includes(b.toLowerCase())})}catch(a){console.log(a)}};
3901
3902
  pui.ide.Lf=function(b){var a=Ext.getCmp("RecFormatsTabPanel").getActiveTab();if(b)a=b;if(a.title=="Elements"){b=Ext.getCmp("elementsGrid");var c=b.getTopToolbar();a=c.items.items[2];var d=c.items.items[3];c=c.items.items[5];c.disable();a.disable();d.disable();if(pui.is_old_ie){c.getEl().setOpacity(1);a.getEl().setOpacity(1);d.getEl().setOpacity(1)}var e=b.getStore();e.removeAll();var f=T.designer.items;b={};var g={};a=new pui.ide.Ew(null,-1,"","","");d=[];var h={};for(c=0;c<f.length;c++){b=f[c];if(b.Gf())d.push(b);
3902
- else if(b.pg()){g="level "+b.CE();if(h[g]==null)h[g]=[];h[g].push(b)}else{g=b.properties;vg(a,g.id,g["field type"],g.value)}}for(f=1;f<9999;f++){g="level "+f;var m=h[g];if(m==null)break;for(c=0;c<m.length;c++){b=m[c];g=b.properties;var k=b.Df().oa.id;(g=wg(a,k,g.id,g["field type"],g.value))||console.log("Failed to find node with id %s",k)}}c=0;for(h=d.length;c<h&&(b=d[c]);c++){g=b.properties;(g=wg(a,b.dom.parentNode.parentNode.id,g.id,g["field type"],g.value))||console.log("Failed to find node with id %s",
3903
+ else if(b.pg()){g="level "+b.CE();if(h[g]==null)h[g]=[];h[g].push(b)}else{g=b.properties;wg(a,g.id,g["field type"],g.value)}}for(f=1;f<9999;f++){g="level "+f;var m=h[g];if(m==null)break;for(c=0;c<m.length;c++){b=m[c];g=b.properties;var k=b.Df().oa.id;(g=xg(a,k,g.id,g["field type"],g.value))||console.log("Failed to find node with id %s",k)}}c=0;for(h=d.length;c<h&&(b=d[c]);c++){g=b.properties;(g=xg(a,b.dom.parentNode.parentNode.id,g.id,g["field type"],g.value))||console.log("Failed to find node with id %s",
3903
3904
  k)}var n=Ext.data.Record.create([{name:"id"},{name:"icon"},{name:"type"},{name:"value"},{name:"parent"},{name:"level"}]),i=0;a.forEach(function(o){o=[new n({id:o.id,icon:"",type:o.type,value:pui.h(o.value)||pui.Va(o.value)||pui.xb(o.value)?o.value.designValue:o.value,parent:o.parent!=null?o.parent.id:"",level:o.Ba})];e.insert(i++,o)})}};pui.ide.Ew=function(b,a,c,d,e){this.parent=b;this.children=[];this.Ba=a;this.id=c;this.type=d;this.value=e};
3904
- function vg(b,a,c,d){b.children.push(new pui.ide.Ew(b,b.Ba+1,a,c,d))}function wg(b,a,c,d,e){for(var f=0,g=b.children.length,h;f<g&&(h=b.children[f]);f++){if(h.id==a){vg(h,c,d,e);return true}if(wg(h,a,c,d,e))return true}return false}pui.ide.Ew.prototype.forEach=function(b){for(var a=0,c=this.children.length,d;a<c&&(d=this.children[a]);a++){b(d);d.forEach(b)}};
3905
+ function wg(b,a,c,d){b.children.push(new pui.ide.Ew(b,b.Ba+1,a,c,d))}function xg(b,a,c,d,e){for(var f=0,g=b.children.length,h;f<g&&(h=b.children[f]);f++){if(h.id==a){wg(h,c,d,e);return true}if(xg(h,a,c,d,e))return true}return false}pui.ide.Ew.prototype.forEach=function(b){for(var a=0,c=this.children.length,d;a<c&&(d=this.children[a]);a++){b(d);d.forEach(b)}};
3905
3906
  pui.ide.zU=function(){return new Ext.Panel({region:"center",id:"eastIdeProps",height:400,closable:false,border:true,split:true,listeners:{bodyresize:function(b,a,c){if(T!=null&&T.designer!=null){T.designer.k.setWidth(a);T.designer.k.setHeight(c)}},resize:function(b){b=b||Ext.getCmp("eastIdeProps");var a=b.getSize();b=Ext.getCmp("ideApiProps");b.setSize(a);b=Ext.getCmp("ideRoutineProps");b.setSize(a);a.height-=33;a.width-=2;b=b.items.items;for(var c=0;c<b.length;c++)b[c].setSize(a);Ext.getCmp("apiGeneralInfoPanel").setSize(a);
3906
3907
  Ext.getCmp("routePermissionsPanel").setSize(a);b={height:a.height-34,width:a.width};Ext.getCmp("routePermissionsGrid").setSize(b);Ext.getCmp("routineGeneralInfoPanel").setSize(a)},show:function(b){b.fireEvent("resize");if((b=Ext.getCmp("centerPanel").getActiveTab())&&b.apiTab){Ext.getCmp("apiGeneralInfoPanel").updateFields();if(b.yi){Ext.getCmp("ideApiProps").hideTabStripItem("routePermissionsPanel");Ext.getCmp("ideApiProps").hideTabStripItem("apiTestPanel");Ext.getCmp("ideApiProps").hideTabStripItem("apiStatsPanel")}else{Ext.getCmp("ideApiProps").unhideTabStripItem("apiTestPanel");
3907
3908
  Ext.getCmp("ideApiProps").unhideTabStripItem("apiStatsPanel");Ext.getCmp("apiTestPanel").refresh();Ext.getCmp("apiStatsPanel").refresh();if(pui.securityStoreName){Ext.getCmp("ideApiProps").unhideTabStripItem("routePermissionsPanel");Ext.getCmp("routePermissionsPanel").refresh()}else Ext.getCmp("ideApiProps").hideTabStripItem("routePermissionsPanel")}b.sourceCodePanel.updateFields();b.CA.updateFields();b.OD=0}if(b&&b.pjsModuleTab){Ext.getCmp("routineGeneralInfoPanel").updateFields();b.sourceCodePanel.updateFields();
@@ -3954,23 +3955,23 @@ msg:d.error,fn:function(){a.getEl().unmask()},icon:Ext.MessageBox.ERROR,buttons:
3954
3955
  pui.ide.saveWidgetSets=function(b,a,c){var d=Ext.getCmp("widgetSets"),e=[];d.items.each(function(k){var n={name:k.title,widgets:[]};k.items.each(function(i){n.widgets.push(i.Hb)});e.push(n)});var f;try{f=JSON.parse(localStorage["pui-widget-sets"])}catch(g){f={mtime:0}}f.sets=e;localStorage["pui-widget-sets"]=JSON.stringify(f);if(b){var h=JSON.stringify({sets:f.sets});if(pui.isCloud&&h===pui.cloud.yO)typeof c=="function"&&c();else{d.getEl().mask();b=new pui.yq;var m=[{name:"json",value:h,fileName:"widget_sets.json"}];
3955
3956
  a&&m.push({name:"mtime",value:String(f.mtime)});pui.isCloud&&m.push({name:"workspace_id",value:pui.cloud.ws.id});b.Rq(m);b.send(jc("PUI0001121.pgm"),function(k){d.getEl().unmask();k=JSON.parse(k.Ib());if(k.success){f.mtime=k.mtime;localStorage["pui-widget-sets"]=JSON.stringify(f);if(pui.isCloud)pui.cloud.yO=h;typeof c=="function"&&c()}else typeof c=="function"&&c(k.error)})}}else typeof c=="function"&&c()};
3956
3957
  pui.ide.rC=function(b,a){b instanceof Array||(b=[b]);for(var c=0;c<b.length;c++){var d=b[c],e=d.properties,f=d.name||e["field type"];f=f.split(" ");for(var g=0;g<f.length;g++)if(f[g].length>0)f[g]=f[g][0].toUpperCase()+f[g].substr(1);f=f.join(" ");var h=["id","description","left","top","bottom","right","newitem","screen identifier","columnId","parent tab","parent tab panel","column","grid"];for(g=0;g<h.length;g++)typeof e[h[g]]!=="undefined"&&delete e[h[g]];for(var m in e)e[m]===""&&delete e[m];e=
3957
- {name:f,icon:d.icon||"/profoundui/proddata/images/image.png",properties:e};if(d.Ax)e.autoGen=true;a.add(pui.ide.nK(e))}a.doLayout();pui.ide.saveWidgetSets()};pui.ide.aU=function(b,a){b.getEl().down("img").set({src:b.Hb.icon=a});pui.ide.saveWidgetSets();var c=pui.DOCUMENT_ROOT;if(c.charAt(c.length-1)==pui.dirSeparator)c=c.substr(0,c.length-1);if(pui.isCloud)c=pui.cloud.ws.SERVER_DIR+pui.dirSeparator;c+=a.substr(0,a.lastIndexOf(pui.dirSeparator));If.set("widgetIconDir",c);If.save()};
3958
+ {name:f,icon:d.icon||"/profoundui/proddata/images/image.png",properties:e};if(d.Ax)e.autoGen=true;a.add(pui.ide.nK(e))}a.doLayout();pui.ide.saveWidgetSets()};pui.ide.aU=function(b,a){b.getEl().down("img").set({src:b.Hb.icon=a});pui.ide.saveWidgetSets();var c=pui.DOCUMENT_ROOT;if(c.charAt(c.length-1)==pui.dirSeparator)c=c.substr(0,c.length-1);if(pui.isCloud)c=pui.cloud.ws.SERVER_DIR+pui.dirSeparator;c+=a.substr(0,a.lastIndexOf(pui.dirSeparator));Jf.set("widgetIconDir",c);Jf.save()};
3958
3959
  pui.ide.nK=function(b){return new Ext.BoxComponent({id:"widget"+pui.ide.S_++,autoEl:{tag:"div",cls:"widget-sets-widget",title:b.name,children:[{tag:"img",src:b.icon||"/profoundui/proddata/images/image.png"},{tag:"div",html:b.name}]},Hb:JSON.parse(JSON.stringify(b)),listeners:{render:function(a){a.Hb=a.initialConfig.Hb;delete a.initialConfig.Hb;a.getEl().on("contextmenu",pui.ide.T_)}}})};pui.ide.RE=function(b){b=Ext.get(b.getTarget());return b.is("div.widget-sets-widget")?b:b.up("div.widget-sets-widget")};
3959
3960
  pui.ide.aW=function(b){var a={x1:99999,y1:99999,x2:0,y2:0};for(b=b.firstChild;b!=null;){var c=b.offsetLeft,d=b.offsetTop,e=c+b.offsetWidth,f=d+b.offsetHeight;if(c<a.x1)a.x1=c;if(d<a.y1)a.y1=d;if(e>a.x2)a.x2=e;if(f>a.y2)a.y2=f;b=b.nextSibling}return{width:a.x2-a.x1,height:a.y2-a.y1}};
3960
3961
  pui.ide.ML=function(b){function a(k){var n;if(n=f.Jf==null?pui.jg(c,k):pui.jg(f.Jf,k))f=ad(n,b,f,b[k],true,h)}b=JSON.parse(JSON.stringify(b));if(b["field type"]=="grid"){b.top="10px";b.left="2px"}var c=Rc(),d=document.createElement("div");d.style.position="relative";d.style.visibility="hidden";d.style.zIndex=-1;var e=Ext.get(document.body);d.style.fontFamily=e.getStyle("fontFamily");d.style.fontSize=e.getStyle("fontSize");var f=document.createElement("div");f.style.position="absolute";var g=document.getElementById("centerPanel");
3961
3962
  d.appendChild(f);g.appendChild(d);if(e=Ext.getCmp("centerPanel").getActiveTab()){if(e.Ja)return null;if(T){var h=new pui.designer.MH(T.designer);h.dom=f;f.value=f.originalValue="";h.properties=b;h.Gv=JSON.parse(JSON.stringify(b));h.Ll=true;a("field type");for(var m in b)m!="field type"&&a(m);if(f.pui&&f.pui.widget)ud(f.pui.widget);else f.ra&&f.ra.render();b["field type"]=="layout"&&typeof f.sizeMe=="function"&&f.sizeMe()}f.setAttribute("puiwdgt",b["field type"]);m=pui.ide.aW(d);d.style.height=m.height+
3962
3963
  "px";d.style.width=m.width+"px";d.style.visibility="";setTimeout(function(){g.removeChild(d)},0);return d}};pui.ide.VY=function(b,a){b.getEl().down("div").update(b.Hb.name=a);pui.ide.saveWidgetSets()};pui.ide.SY=function(b){var a=b.ownerCt;a.remove(b);a.doLayout();pui.ide.saveWidgetSets()};
3963
3964
  pui.ide.T_=function(b){var a=pui.ide.RE(b);a=Ext.getCmp(a.id);var c=a.Hb.properties,d=[];if(typeof c.value=="object"||typeof c.response=="object"||typeof c.html=="object")d.push(new Ext.menu.CheckItem({text:"Auto-generate field names",checked:a.Hb.autoGen===true,checkHandler:function(f,g){if(g)a.Hb.autoGen=true;else typeof a.Hb.autoGen!="undefined"&&delete a.Hb.autoGen;pui.ide.saveWidgetSets()}}));d.push(new Ext.menu.Item({text:"Change icon",icon:"/profoundui/proddata/images/image.png",handler:function(f){T&&
3964
- T.designer&&T.designer.selection.clear();var g="";g=If.get("widgetIconDir","");if(pui.isCloud)g=pui.cloud.ws.SERVER_DIR+pui.dirSeparator+"public";var h=new pui.designer.rB(g);h.Bb('<span style="font-weight:bold;">Select Icon</span>');h.sg=function(m){if(pui.isCloud&&(m.substr(0,1)==="/"||m.substr(0,1)==="\\"))m=m.substr(1);pui.ide.aU(a,m)};h.onerror=function(){if(g!=""){If.set("widgetIconDir","");If.save();f&&f.fireEvent("click")}};h.show()}}),new Ext.menu.Item({text:"Rename",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/edit.png":
3965
+ T.designer&&T.designer.selection.clear();var g="";g=Jf.get("widgetIconDir","");if(pui.isCloud)g=pui.cloud.ws.SERVER_DIR+pui.dirSeparator+"public";var h=new pui.designer.rB(g);h.Bb('<span style="font-weight:bold;">Select Icon</span>');h.sg=function(m){if(pui.isCloud&&(m.substr(0,1)==="/"||m.substr(0,1)==="\\"))m=m.substr(1);pui.ide.aU(a,m)};h.onerror=function(){if(g!=""){Jf.set("widgetIconDir","");Jf.save();f&&f.fireEvent("click")}};h.show()}}),new Ext.menu.Item({text:"Rename",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/edit.png":
3965
3966
  "/profoundui/proddata/images/dspfdesigner/icons16x16/pencil.png",handler:function(){T&&T.designer&&T.designer.selection.clear();var f=a.getEl().down("div").dom.innerHTML;Ext.MessageBox.prompt("Rename Widget","New name:",function(g,h){g=="ok"&&pui.ide.VY(a,h)},window,false,f)}}),new Ext.menu.Item({text:"Remove",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/remove-1.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/delete.png",handler:function(){T&&T.designer&&T.designer.selection.clear();
3966
3967
  Ext.MessageBox.confirm("Remove Widget","Are you sure you want to remove this widget?",function(f){f=="yes"&&pui.ide.SY(a)})}}));if(Ext.getCmp("widgetSets").items.getCount()>1){var e=[];Ext.getCmp("widgetSets").items.each(function(f){f.collapsed&&e.push(new Ext.menu.Item({text:f.title,handler:function(){pui.ide.rC(JSON.parse(JSON.stringify(a.Hb)),f)}}))});d.push(new Ext.menu.Item({text:"Add to set",icon:"/profoundui/proddata/images/FlatIcons/add.png",menu:new Ext.menu.Menu({items:e})}))}d.push(new Ext.menu.Item({text:"Edit properties",
3967
3968
  icon:"/profoundui/proddata/images/FlatIcons/16x16/screen-properties.png",handler:function(){var f=new Ext.Window({title:a.Hb.name+" properties",width:400,height:600,modal:true,maximizable:true,layout:"fit",items:[new Ext.Panel({listeners:{afterrender:function(g){f.bh=g.bh=new pui.designer.vm(g.body.dom,{properties:a.Hb.properties});g.bh.Zr=Vc()},bodyresize:function(g,h,m){g.bh.setWidth(h);g.bh.setHeight(m)},beforedestroy:function(g){g.bh.destroy();T&&T.designer&&T.designer.k.refresh()}}})],buttons:[{text:"OK",
3968
3969
  handler:function(){a.Hb.properties=f.bh.vE();pui.ide.saveWidgetSets();f.close()}},{text:"Cancel",handler:function(){f.close()}}],listeners:{beforedestroy:function(){if(T)T.designer.disabled=false}}});f.show();if(T)T.designer.disabled=true}}));(new Ext.menu.Menu({items:d})).showAt(b.getXY());b.stopEvent()};
3969
3970
  pui.ide.t_=function(b,a){b.items.each(function(d){if(d.toolbar){d.toolbar.designer.Il();var e=d.toolbar.designer.k;if(e){e.Qe&&!e.Qe.isHidden()&&e.Qe.hide();e.em&&!e.em.isHidden()&&e.em.hide()}d.toolbar.designer.Gc.hide();d.toolbar.designer.pb!=null&&d.toolbar.designer.pb.hide();d.toolbar.designer.disable();d.fy.lock()}if((d.fileTab||d.apiTab||d.pjsModuleTab)&&d!==a)pui.ide.kE(d)});pui.Qg&&!pui.Qg.isHidden()&&pui.Qg.hide();pui.Yg&&!pui.Yg.isHidden()&&pui.Yg.hide();if(a){if(a.toolbar){if(a.Ja==true)Ext.getCmp("east").hide();
3970
- else{Ext.getCmp("widgetsPanel").show();Ext.getCmp("east").show()}pui.designer.currentDisplay=a.currentDisplay;pui.designer.ia=a.ia;var c=a.recordFormats.bW();Ha=c!=null?c:a.initialConfig.Dt;Na=a.initialConfig.xC;T=a.toolbar;T.designer.enable(a.Ja);te=a.recordFormats;pui.wf.G=a.mo;te.refresh();pui.ide.mk();pui.ide.Lf();pui.ide.Nh();c=If.get("eastPanelWidth","")==""?290:If.get("eastPanelWidth","");T.designer.k.setWidth(c);(c=Ext.getCmp("eastIdeProps").getHeight())&&T.designer.k.setHeight(c-24);if(a.ia){c=
3971
+ else{Ext.getCmp("widgetsPanel").show();Ext.getCmp("east").show()}pui.designer.currentDisplay=a.currentDisplay;pui.designer.ia=a.ia;var c=a.recordFormats.bW();Ha=c!=null?c:a.initialConfig.Dt;Na=a.initialConfig.xC;T=a.toolbar;T.designer.enable(a.Ja);te=a.recordFormats;pui.wf.G=a.mo;te.refresh();pui.ide.mk();pui.ide.Lf();pui.ide.Nh();c=Jf.get("eastPanelWidth","")==""?290:Jf.get("eastPanelWidth","");T.designer.k.setWidth(c);(c=Ext.getCmp("eastIdeProps").getHeight())&&T.designer.k.setHeight(c-24);if(a.ia){c=
3971
3972
  te.ni();c.width&&c.height&&te.Me(c.width,c.height)}pui.Qa=a.Qa||[];if(a.M){pui.designer.M.formats=a.M.formats;pui.designer.M.global=a.M.global;pui.designer.M.comments=a.M.comments}U.eq();a.fy.unlock();if(!pui.Aa&&a.currentDisplay&&(a.currentDisplay.member||a.currentDisplay.ifsFile||a.currentDisplay.Ob))pui.kp.load();T.zoom(T.mf)}else{te=T=null;pui.wf.G=null;pui.designer.currentDisplay={};pui.designer.ia=null;pui.Qa=null;Ext.getCmp("widgetsPanel").show();a.apiTab&&pui.ide.Pn(a);a.pjsModuleTab&&pui.ide.Qn(a);
3972
3973
  !a.Ja&&(a.apiTab||a.pjsModuleTab)?Ext.getCmp("east").show():Ext.getCmp("east").hide();if(Ext.getCmp("_RibbonTabPanel").getActiveTab()==Ext.getCmp("_Ribon_DesignMenu")||a.Nd&&Ext.getCmp("_RibbonTabPanel").getActiveTab()==Ext.getCmp("_Ribon_EditMenu"))Ext.getCmp("_RibbonTabPanel").setActiveTab(Ext.getCmp("_Ribon_HomeMenu"));a.editor&&a.editor.focus()}a.lu&&pui.ide.AK(a)}else{te=T=null;pui.wf.G=null;pui.designer.currentDisplay={};pui.designer.ia=null;pui.Qa=null;Ext.getCmp("east").hide();Ext.getCmp("_RibbonTabPanel").setActiveTab(Ext.getCmp("_Ribon_HomeMenu"))}a.BH=
3973
- a.BH||If.get("widgetsActiveTab");Ext.getCmp("widgetsPanel").setActiveTab(a.BH);pui.ide.refreshRibbon();pui.ide.Re.doLayout();!a&&!pui.ide.Og&&pui.ide.openFile({})};
3974
+ a.BH||Jf.get("widgetsActiveTab");Ext.getCmp("widgetsPanel").setActiveTab(a.BH);pui.ide.refreshRibbon();pui.ide.Re.doLayout();!a&&!pui.ide.Og&&pui.ide.openFile({})};
3974
3975
  pui.ide.kE=function(b){b||(b=Ext.getCmp("centerPanel").getActiveTab());if(b&&b.editor&&!b.Ab)if(b.editor.getModifiedEditor&&b.editor.getOriginalEditor){b.editor.getModifiedEditor()._modelData.view._textAreaHandler._textAreaInput._setHasFocus(false);b.editor.getOriginalEditor()._modelData.view._textAreaHandler._textAreaInput._setHasFocus(false)}else b.editor._modelData.view._textAreaHandler._textAreaInput._setHasFocus(false);return b};
3975
3976
  pui.ide.sG=function(b){var a;if(typeof b=="string")a=b;else if(b.key=="pui-reload-css"&&b.newValue!=null)a=b.newValue;else return;for(var c=RegExp("(.*"+a+")","i"),d=document.getElementsByTagName("link"),e=0;e<d.length;e++){var f=d[e],g=f.href.match(c);if(g){c=g[1];d=new Date;c+="?mtime="+d.getFullYear()+(d.getMonth()+1)+d.getDate()+d.getHours()+d.getMinutes()+d.getSeconds();c+="&r="+(Math.floor(Math.random()*1E9)+1);f.href=c;break}}if(typeof b=="string"){localStorage["pui-reload-css"]=a;delete localStorage["pui-reload-css"]}};
3976
3977
  pui.ide.hm=function(b,a){pui.isCloud&&typeof a==="string"&&function(c,d){if(a.substr(0,c.length).toUpperCase()===c.toUpperCase())a=d+a.substr(c.length)}(pui.cloud.ws.SERVER_DIR+pui.dirSeparator,"");Ext.get(Ext.getCmp("centerPanel").getTabEl(b.id)).child("span.x-tab-strip-text",true).title=a};Ext.namespace("Ext.ux.panel");
@@ -4018,7 +4019,7 @@ handler:function(){pui.ide.Ig()?b("DROP TABLE `"+m.text+"`;"):pui.alert("You are
4018
4019
  "Retrieving index information";screenMask.show();pui.cloud.k1(pui.isCloud?pui.cloud.ws.id:m.parentNode.text,m.text);screenMask.hide()}})}if(m.attributes.type=="table"||m.attributes.type=="view"){if(pui.lowcodeSupport&&pui.ide.dl(false)){n.push({text:"Build CRUD App",icon:"/profoundui/proddata/images/FlatIcons/application_form_add.png",handler:function(){pui.ide.r.MT(m,"build app");U.La("generate crud app")}});var o=Ext.getCmp("centerPanel").getActiveTab();if(o&&o.recordFormats){n.push({text:"Add Grid",
4019
4020
  icon:"/profoundui/proddata/images/FlatIcons/16x16/grid.png",handler:function(){pui.wf.i.qh(m,"add grid");U.La("generate grid")}});n.push({text:"Add Form",icon:"/profoundui/proddata/images/icons/textbox.png",handler:function(){pui.wf.i.qh(m,"add form");U.La("generate form")}})}}pui.lowcodeSupport&&pui.ide.bg(false)&&n.push({text:"Build API",icon:"/profoundui/proddata/images/FlatIcons/16x16/file-api-json.svg",handler:function(){pui.api.i.qh(m);U.La("generate api")}});pui.lowcodeSupport&&pui.ide.cl(false)&&
4020
4021
  n.push({text:"Build Module",icon:"/profoundui/proddata/images/FlatIcons/16x16/file-module-json.svg",handler:function(){pui.Oa.i.qh(m);U.La("generate module")}})}if(pui.isCloud&&m.text==="Tables"){n.push({text:"Create Table",icon:"/profoundui/proddata/images/FlatIcons/16x16/add_table.svg",handler:function(){pui.ide.Ig()?b("","Create Table"):pui.alert("You are not authorized to modify this workspace.")}});n.push({text:"Create Sample Database",icon:"/profoundui/proddata/images/FlatIcons/16x16/create_sample_database.svg",
4021
- handler:function(){if(pui.ide.Ig()){xg(false);U.La("create sample db")}else pui.alert("You are not authorized to modify this workspace.")}});n.push({text:"Import Excel",icon:"/profoundui/proddata/images/grids/excel.gif",handler:function(){pui.ide.Ig()?b("","Import Excel"):pui.alert("You are not authorized to modify this workspace.")}});n.push(new Ext.menu.Item({text:"Export Database as SQL",icon:"/profoundui/proddata/images/FlatIcons/16x16/export.png",handler:function(){pui.ide.Ig()?pui.link("/cloud/download_database/"+
4022
+ handler:function(){if(pui.ide.Ig()){yg(false);U.La("create sample db")}else pui.alert("You are not authorized to modify this workspace.")}});n.push({text:"Import Excel",icon:"/profoundui/proddata/images/grids/excel.gif",handler:function(){pui.ide.Ig()?b("","Import Excel"):pui.alert("You are not authorized to modify this workspace.")}});n.push(new Ext.menu.Item({text:"Export Database as SQL",icon:"/profoundui/proddata/images/FlatIcons/16x16/export.png",handler:function(){pui.ide.Ig()?pui.link("/cloud/download_database/"+
4022
4023
  pui.cloud.ws.id):pui.alert("You are not authorized to export this database.")}}))}if(!pui.ide.isLeaf(m)&&typeof m.isLoaded==="function"&&m.isLoaded())n.push({text:"Refresh",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/refresh.png":"/profoundui/proddata/images/icons/arrow_refresh.png",handler:function(){m.reload()}})}n.length>0&&(new Ext.menu.Menu({items:n})).showAt(k.getXY())},render:function(m){m.dragZone=new Ext.dd.DragZone(m.getEl(),{autoOffset:function(){this.setDelta(this.dragData.node.attributes.proxyWidth/
4023
4024
  2+20,this.dragData.node.attributes.proxyHeight/2+3)},ddGroup:"toolboxTree",centerFrame:true,containerScroll:true,getDragData:function(k){var n=Ext.getCmp("centerPanel").getActiveTab();if(!(!n||n.Ja))if(n.recordFormats){k=k.getTarget(null,null,true);k.is("div.x-tree-node-el")||(k=k.findParent("div.x-tree-node-el",null,true));if(k){var i=m.getNodeById(k.getAttribute("ext:tree-node-id"));if(!(!i||!i.attributes||i.attributes.type!=="column"&&i.attributes.type!=="table"))if(!(n.recordFormats&&i.attributes.type!==
4024
4025
  "column")){var o=Ext.getCmp("pui-database-input").getValue()==true?"input":"output";o=n.apiTab||n.pjsModuleTab?{}:d(i,o);var q=pui.ide.ML(o);if(q!=null){if(n.apiTab||n.pjsModuleTab){q.innerHTML=i.attributes.def.name;q.style.height="18px";q.style.width=i.attributes.def.name.length*8+"px"}n=o["field type"]=="checkbox"||o["field type"]=="radio button"?Ext.get(q.firstChild).getBox():{width:parseInt(q.style.width,10),height:parseInt(q.style.height,10)};i=o["field type"];delete o["field type"];return{ddel:q,
@@ -4032,8 +4033,8 @@ l.selectRecords([s])}var u=l.getSelections();l=u[0].get("tree");var v=false,w=fa
4032
4033
  C.get("status");var K=C.get("status").indexOf("new")!=-1;C=C.get("status").indexOf("modified")!=-1;if(z.substr(z.length-1)!="/"&&(K||C)){z=pui.ide.getCurrentGitRepository()+pui.dirSeparator+z.replace(/\//g,pui.dirSeparator);pui.ide.openFile({textFile:z})}})}});if(B&&(v||w))s.push({text:"Open Changes",icon:"/profoundui/proddata/images/FlatIcons/16x16/open_changes.png",handler:function(){u.forEach(function(C){var z=C.get("path"),K=C.get("status"),H=K.indexOf("new")!=-1;K=K.indexOf("modified")!=-1;if(z.substr(z.length-
4033
4034
  1)!="/")if(H){z=pui.ide.getCurrentGitRepository()+pui.dirSeparator+z.replace(/\//g,pui.dirSeparator);pui.ide.openFile({textFile:z})}else K&&pui.ide.ZG(C.get("path"),C.get("tree"))})}});if(l=="index")s.push({text:"Unstage Changes",icon:"/profoundui/proddata/images/FlatIcons/16x16/unstage.png",disabled:!pui.ide.fi(["modify"],true),handler:function(){var C=pui.ide.getCurrentGitRepository(),z=[];u.forEach(function(K){z.push(K.get("path"))});pui.ide.Rh("reset",{directory:C,files:z})}});else{s.push({text:"Stage Changes",
4034
4035
  icon:"/profoundui/proddata/images/FlatIcons/16x16/stage.png",disabled:!pui.ide.fi(["modify"],true),handler:function(){var C=pui.ide.getCurrentGitRepository(),z=[];u.forEach(function(K){z.push(K.get("path"))});pui.ide.Rh("add",{directory:C,files:z})}});if(w||y)s.push({text:"Discard Changes",icon:"/profoundui/proddata/images/FlatIcons/16x16/discard.png",disabled:!pui.ide.fi(["modify"],true),handler:function(){var C=pui.ide.getCurrentGitRepository(),z=[];u.forEach(function(K){var H=K.get("status"),J=
4035
- H.indexOf("modified")!=-1;H=H.indexOf("deleted")!=-1;if(J||H)z.push(K.get("path"))});pui.ide.Rh("checkout",{directory:C,files:z})}})}s.length>0&&(new Ext.menu.Menu({items:s})).showAt(t.getXY())}}}),d=If.get("gitOutputHeight");d=d!=null?parseInt(d,10):150;var e=If.get("gitOutputCollapsed")=="1",f=new Ext.Panel({id:"gitOutput",title:'<div class="title"><a href="javascript:void(0);" onclick="Ext.getCmp(\'gitOutput\').expand();">Git Output</a></div>',plugins:[Ext.ux.WH],region:"south",collapsible:true,
4036
- floatable:false,resizable:true,split:true,height:d,collapsed:e,autoScroll:true,bodyStyle:{padding:"10px"},html:"<pre></pre>",tbar:new Ext.Toolbar({items:[{text:"Clear",handler:function(){f.body.update("<pre></pre>")}}]}),listeners:{resize:function(l,s,t){if(!isNaN(t)&&t>0){If.set("gitOutputHeight",t);If.save()}},expand:function(){If.set("gitOutputCollapsed","0");If.save()},collapse:function(){If.set("gitOutputCollapsed","1");If.save()}}}),g=[],h;d=pui.ide.getGitRepositories();if(d.length>0){d.forEach(function(l){var s;
4036
+ H.indexOf("modified")!=-1;H=H.indexOf("deleted")!=-1;if(J||H)z.push(K.get("path"))});pui.ide.Rh("checkout",{directory:C,files:z})}})}s.length>0&&(new Ext.menu.Menu({items:s})).showAt(t.getXY())}}}),d=Jf.get("gitOutputHeight");d=d!=null?parseInt(d,10):150;var e=Jf.get("gitOutputCollapsed")=="1",f=new Ext.Panel({id:"gitOutput",title:'<div class="title"><a href="javascript:void(0);" onclick="Ext.getCmp(\'gitOutput\').expand();">Git Output</a></div>',plugins:[Ext.ux.WH],region:"south",collapsible:true,
4037
+ floatable:false,resizable:true,split:true,height:d,collapsed:e,autoScroll:true,bodyStyle:{padding:"10px"},html:"<pre></pre>",tbar:new Ext.Toolbar({items:[{text:"Clear",handler:function(){f.body.update("<pre></pre>")}}]}),listeners:{resize:function(l,s,t){if(!isNaN(t)&&t>0){Jf.set("gitOutputHeight",t);Jf.save()}},expand:function(){Jf.set("gitOutputCollapsed","0");Jf.save()},collapse:function(){Jf.set("gitOutputCollapsed","1");Jf.save()}}}),g=[],h;d=pui.ide.getGitRepositories();if(d.length>0){d.forEach(function(l){var s;
4037
4038
  s=pui.isCloud?"Workspace Files"+l:pui.ide.mx(l);g.push([l,s])});h=pui.ide.getCurrentGitRepository()}if(pui.gitHistorySupport){c=new Ext.Panel({title:"Changes",layout:"border",region:"center",items:[a,c]});var m=new Ext.data.JsonStore({storeId:"gitHistory",proxy:new Ext.data.HttpProxy(new Ext.data.Connection({url:"/git/history",timeout:12E4})),root:"commits",fields:["sha","author_name","author_email","date","message"],listeners:{beforeload:function(l,s){o.mask();n.beforeload(s.params)},load:function(l,
4038
4039
  s,t){o.unmask();n.load(t.params,s,l.reader.jsonData)},exception:function(l,s,t,u,v){o.unmask();m.removeAll();l="Unable to retrieve history.<br />";l+=v.isTimeout?"Request timed out.":v.status===200?"The server response is invalid.":v.responseText?v.responseText:v.statusText;n.error(l)}}}),k='<span class="commit-reference !REF_TYPE!">!REF!</span>',n=new Ext.grid.GridPanel({id:"gitHistory",region:"center",autoScroll:true,containerScroll:true,hideHeaders:true,bodyStyle:{padding:"5px"},selModel:new Ext.grid.RowSelectionModel({singleSelect:true}),
4039
4040
  store:m,viewConfig:{emptyText:"Not connected to a repository<br />Right-click on a directory in the Files tree to open or clone a repository",deferEmptyText:false,forceFit:true,scrollOffset:0,getTotalWidth:wa("auto"),enableRowBody:true,getRowClass:function(l,s,t){s=Ext.util.Format.htmlEncode(l.get("author_name"));var u=Ext.util.Format.htmlEncode(l.get("author_email")),v=Ext.util.Format.htmlEncode(l.get("message"));t.body='<div class="commit-row-2" title="!MESSAGE!"><span class="commit-author" title="!AUTHOR_EMAIL!">!AUTHOR_NAME!</span><span class="commit-time"> on !TIME!</span></div>'.replace(/!SHA!/g,
@@ -4128,8 +4129,8 @@ pui.ide.rV=function(b){if(b.type=="change"||b.type=="unlink"){var a=Ext.getCmp("
4128
4129
  pui.ide.AK=function(b){var a=b.lu;delete b.lu;var c=b.fileTab||b.apiTab||b.pjsModuleTab?pui.ide.mx(b.X):b.currentDisplay.ifsFile;if(pui.isCloud)c=c.replace(pui.cloud.ws.SERVER_DIR,"Workspace Files");var d,e;if(a=="change"){e="Reload file";d=c+"<br /><br />This file has been modified by another program.<br />Do you want to reload it?"}else if(a=="unlink"){e="Keep non existing file";d=c+"<br /><br />This file doesn't exist anymore.<br />Keep this file in ";d+=b.fileTab?"editor?":"designer?"}Ext.MessageBox.confirm(e,
4129
4130
  d,function(f){if(a=="unlink")if(f=="no")pui.ide.dK(b);else{if(b.fileTab||b.apiTab||b.pjsModuleTab){b.X=null;f="[Unnamed File]";f+=" *";b.isDirty=true;b.se&&delete b.se;b.setTitle(f);pui.ide.hm(b,"[Unnamed File]")}else{b.currentDisplay.ifsFile=null;b.recordFormats.sb();pui.ide.Yb()}b.lastModified&&delete b.lastModified;pui.ide.refreshRibbon()}else if(a=="change")if(f=="yes"){f=Ext.getCmp("centerPanel").items.findIndex("id",b.id);pui.ide.dK(b);b.Nd?pui.ide.ZG(b.Nd.path,"work",f):pui.ide.openFile({textFile:pui.ide.wg(b.currentDisplay&&
4130
4131
  b.currentDisplay.ifsFile?b.currentDisplay.ifsFile:b.X),index:f})}else{if(b.fileTab||b.apiTab||b.pjsModuleTab){f=b.X.substr(b.X.lastIndexOf(pui.dirSeparator)+1);b.isDirty=true;if(b.Nd)f+=" "+b.Nd.type;f+=" *";b.setTitle(f)}else{b.recordFormats.sb();pui.ide.Yb()}b.lastModified&&delete b.lastModified;pui.ide.refreshRibbon()}})};pui.ide.dK=function(b){if(b.fileTab||b.apiTab||b.pjsModuleTab)b.isDirty=false;else b.recordFormats.Wg();b.fireEvent("beforeclose",b)};
4131
- pui.ide.PU=function(b){var a=Ext.getCmp("centerPanel"),c=pui.ide.Pd(),d=pui.ide.gr();if(b.ifsFile){pui.ide.gh({watchFile:pui.ide.wg(b.ifsFile)});b.path=b.ifsFile.substr(0,b.ifsFile.lastIndexOf(pui.dirSeparator))}if(b.path){If.set("ifsPath",b.path);If.save()}else if(b.library&&b.file){If.set("file",b.file);If.set("library",b.library);If.save()}if(c.Ia){if(b.index===null)b.index=c.index;a.remove(c.Ia,true)}typeof b.index=="number"?a.insert(b.index,d):a.add(d);a.setActiveTab(d);b.onsuccess=function(){d.Qa=
4132
- pui.Qa;d.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global};if(!b.Ob){var e=JSON.parse(JSON.stringify(b));pui.ide.cj(e,function(f){if(f.success){d.lastModified=f.data.mtime;d.wd=e}})}pui.ide.zf&&b.ifsFile&&Tf(pui.ide.zf,b.ifsFile,d)};T.open(b)};
4132
+ pui.ide.PU=function(b){var a=Ext.getCmp("centerPanel"),c=pui.ide.Pd(),d=pui.ide.gr();if(b.ifsFile){pui.ide.gh({watchFile:pui.ide.wg(b.ifsFile)});b.path=b.ifsFile.substr(0,b.ifsFile.lastIndexOf(pui.dirSeparator))}if(b.path){Jf.set("ifsPath",b.path);Jf.save()}else if(b.library&&b.file){Jf.set("file",b.file);Jf.set("library",b.library);Jf.save()}if(c.Ia){if(b.index===null)b.index=c.index;a.remove(c.Ia,true)}typeof b.index=="number"?a.insert(b.index,d):a.add(d);a.setActiveTab(d);b.onsuccess=function(){d.Qa=
4133
+ pui.Qa;d.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global};if(!b.Ob){var e=JSON.parse(JSON.stringify(b));pui.ide.cj(e,function(f){if(f.success){d.lastModified=f.data.mtime;d.wd=e}})}pui.ide.zf&&b.ifsFile&&Uf(pui.ide.zf,b.ifsFile,d)};T.open(b)};
4133
4134
  pui.ide.ZG=function(b,a,c){var d;if(pui.useAceEditor)d="The Monaco editor is required to view diffs, but the Designer is configured to use the Ace Editor.";else if(pui.is_ie||pui.ie_mode<=11||!window.monaco)d="The Monaco editor is required to view diffs, but your web browser doesn't support Monaco.";if(d)Ext.MessageBox.show({title:"Error",msg:d,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});else{d=Ext.getCmp("centerPanel");var e;d.items.each(function(g){if(g.Nd&&g.Nd.EG==pui.ide.getCurrentGitRepository()&&
4134
4135
  g.Nd.path==b){e=g;return false}});if(e)d.setActiveTab(e);else{var f=Ext.getCmp("fileTree").root.id;d={directory:pui.ide.getCurrentGitRepository(),path:b,tree:a};if(pui.isCloud)d.workspace_id=pui.cloud.ws.id;Ext.Ajax.request({method:"POST",url:"/git/diff",params:d,success:function(g){function h(q){if(q==k){if(o.Nd.format=="line-by-line")return;o.Nd.format="line-by-line";m.getEl().setStyle("background-color","");m.getEl().setStyle("border-color","")}else{if(o.Nd.format=="side-by-side")return;o.Nd.format=
4135
4136
  "side-by-side";k.getEl().setStyle("background-color","");k.getEl().setStyle("border-color","")}q.getEl().setStyle("background-color","#bbbbbb");q.getEl().setStyle("border-color","#8a8a8a");o.editor.updateOptions({renderSideBySide:o.Nd.format=="side-by-side"})}var m=new Ext.Button({icon:"/profoundui/proddata/images/dspfdesigner/icons16x16/sbs-diff.png",tooltip:"Side by Side",handler:h,style:{"background-color":"#bbbbbb","border-color":"#8a8a8a"}}),k=new Ext.Button({icon:"/profoundui/proddata/images/dspfdesigner/icons16x16/inline-diff.png",
@@ -4150,32 +4151,32 @@ if(Object.keys(k).length>0)for(var u in k){h="Missing translations for file: "+u
4150
4151
  pui.ide.tX=function(b,a,c){function d(){var h=g*e,m=h+e;if(m>a.length)m=a.length;var k=a.slice(h,m);k="lang="+pui.ide.Nj+"&id="+k.join("&id=");screenMask.msg="Loading "+(h+1)+"-"+m+" of "+a.length+" translations";screenMask.show();Ext.Ajax.request({url:jc("PUI0001131.pgm"),method:"post",params:k,success:function(n){n=JSON.parse(n.responseText);if(n.success===true){for(var i in n.phrases)phrases[i]=n.phrases[i];if(++g==f){screenMask.hide();c(null,phrases)}else d()}else{screenMask.hide();c(n.error)}},
4151
4152
  failure:function(n){screenMask.hide();c("HTTP "+n.status+" - "+n.statusText)}})}if(!Array.isArray(a)||a.length==0)c("One or more phrase ids are required.");else{phrases={};var e=2500,f=Math.floor(a.length/e);a.length%e!=0&&++f;var g=0;d()}};
4152
4153
  pui.ide.openFile=function(b){var a=null,c=Ext.getCmp("centerPanel");if(b.textFile!=null){if(!b.textDir){b.textDir=pui.nodedesigner?pui.isCloud?pui.cloud.ws.SERVER_DIR:pui.PJS_TREE_ROOT:pui.DOCUMENT_ROOT;if(b.textDir.charAt(b.textDir.length-1)==pui.dirSeparator)b.textDir=b.textDir.substr(0,b.textDir.length-1)}if(b.textFile.charAt(0)!=pui.dirSeparator)b.textFile=pui.dirSeparator+b.textFile;b.ifsFile=b.textDir+b.textFile;b.path=b.textDir}if(b.ifsFile)b.url=b.ifsFile;if(b.ifsFile||b.textFile||b.Ob||!b.convert&&
4153
- b.library&&b.file&&b.member)a=yg(b);else{if(pui.nodedesigner&&pui.lowcodeSupport&&!pui.ide.dl(false)){if(b=Ext.getCmp("widgetsPanel")){b.hideTabStripItem("widgetSets");b.hideTabStripItem("treePanel");if(b.activeTab&&(b.activeTab.id=="widgetSets"||b.activeTab.id=="treePanel"))b.setActiveTab(Ext.getCmp("fileTree"))}Ext.getCmp("east").hide();b=Ext.getCmp("_RibbonTabPanel");b.activeTab&&b.activeTab.id!=="_Ribon_HomeMenu"&&b.activeTab.id!=="_Ribon_HelpMenu"&&b.setActiveTab(Ext.getCmp("_Ribon_HomeMenu"));
4154
+ b.library&&b.file&&b.member)a=zg(b);else{if(pui.nodedesigner&&pui.lowcodeSupport&&!pui.ide.dl(false)){if(b=Ext.getCmp("widgetsPanel")){b.hideTabStripItem("widgetSets");b.hideTabStripItem("treePanel");if(b.activeTab&&(b.activeTab.id=="widgetSets"||b.activeTab.id=="treePanel"))b.setActiveTab(Ext.getCmp("fileTree"))}Ext.getCmp("east").hide();b=Ext.getCmp("_RibbonTabPanel");b.activeTab&&b.activeTab.id!=="_Ribon_HomeMenu"&&b.activeTab.id!=="_Ribon_HelpMenu"&&b.setActiveTab(Ext.getCmp("_Ribon_HomeMenu"));
4154
4155
  pui.ide.Re.doLayout();pui.ide.refreshRibbon(b.getActiveTab());return}a=b.convert?null:pui.ide.Pd();if(!a||!a.Ia){a=pui.ide.gr(b);c.add(a)}}if(a){c.setActiveTab(a);if(a.fileTab&&a.vM&&b.hN!==true)(b=a.items.items[0])&&b.collapsed===true&&typeof b.expand==="function"&&b.expand()}else{var d=!T;if(!T){T=new pui.designer.iB;T.hide()}T.qy(b,function(e,f){if(d)T=null;if(e.success===false&&e.msg!=null){pui.ide.Yb();Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);Ext.MessageBox.show({title:"Error",msg:e.msg,
4155
4156
  buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR})}else e.isRichDisplay?pui.ide.PU(f):pui.ide.$U(f,e.data)})}};
4156
4157
  pui.ide.toggleGridRow=function(b,a,c){function d(g,h){var m=g.getStore().getAt(h).data;if(m.collapsed)return false;if(m.parentID>=0)return d(g,m.parentID);return true}var e=Ext.getCmp("centerPanel").getActiveTab();if(b=e.apiTab?e.CA.panel[b]:e[b]){e=b.getStore().getAt(a).data;var f=b.getView().getRow(a);e.collapsed=e.collapsed!==true;c=f.querySelector(".x-grid3-col-"+c).querySelector(".x-tree-elbow-minus, .x-tree-elbow-end-minus, .x-tree-elbow-plus, .x-tree-elbow-end-plus");if(c.classList.contains("x-tree-elbow-minus")){c.classList.remove("x-tree-elbow-minus");
4157
4158
  c.classList.add("x-tree-elbow-plus")}else if(c.classList.contains("x-tree-elbow-plus")){c.classList.remove("x-tree-elbow-plus");c.classList.add("x-tree-elbow-minus")}else if(c.classList.contains("x-tree-elbow-end-minus")){c.classList.remove("x-tree-elbow-end-minus");c.classList.add("x-tree-elbow-end-plus")}else if(c.classList.contains("x-tree-elbow-end-plus")){c.classList.remove("x-tree-elbow-end-plus");c.classList.add("x-tree-elbow-end-minus")}if(c=b.getStore().getAt(++a))for(f=c.data;f.level>e.level;){c=
4158
- b.getView().getRow(a);c.style.display=d(b,f.parentID)?"":"none";if(++a>=b.getStore().getCount())break;f=b.getStore().getAt(a).data}}};function Jf(b,a,c){c=c||[];b=a.getAt(b).data;c.unshift(b.isLastTreeItem?"visibility: hidden;":"");b.parentID>=0&&Jf(b.parentID,a,c);return c}
4159
- function yg(b){if(!b||typeof b!=="object")return null;var a;Ext.getCmp("centerPanel").items.each(function(c){if(c.Nd)return false;var d=b.Ob||1,e=b.ifsFile||1;if(!c.fileTab&&!c.apiTab&&!c.pjsModuleTab&&c.currentDisplay){var f=b.member||1,g=b.library||1,h=b.file||1,m=false,k=c.currentDisplay.ifsFile||2,n=c.currentDisplay.file||2,i=c.currentDisplay.library||2,o=c.currentDisplay.member||2;if(d===(c.currentDisplay.Ob||2)||e===k)m=true;else if(h===n&&f===o&&g===i)m=true;if(m)a=c}if(c.fileTab||c.apiTab||
4159
+ b.getView().getRow(a);c.style.display=d(b,f.parentID)?"":"none";if(++a>=b.getStore().getCount())break;f=b.getStore().getAt(a).data}}};function Kf(b,a,c){c=c||[];b=a.getAt(b).data;c.unshift(b.isLastTreeItem?"visibility: hidden;":"");b.parentID>=0&&Kf(b.parentID,a,c);return c}
4160
+ function zg(b){if(!b||typeof b!=="object")return null;var a;Ext.getCmp("centerPanel").items.each(function(c){if(c.Nd)return false;var d=b.Ob||1,e=b.ifsFile||1;if(!c.fileTab&&!c.apiTab&&!c.pjsModuleTab&&c.currentDisplay){var f=b.member||1,g=b.library||1,h=b.file||1,m=false,k=c.currentDisplay.ifsFile||2,n=c.currentDisplay.file||2,i=c.currentDisplay.library||2,o=c.currentDisplay.member||2;if(d===(c.currentDisplay.Ob||2)||e===k)m=true;else if(h===n&&f===o&&g===i)m=true;if(m)a=c}if(c.fileTab||c.apiTab||
4160
4161
  c.pjsModuleTab){f=c.X||2;if(g=c.root)f=g+f;if(f==d||f===e)a=c}if(a)return false});return a}pui.ide.mi=function(){var b=pui.apiPrefix;if(pui.isCloud){var a=document.location.pathname.replace(/\/ide\//,"/run/");b=a.substring(0,a.length-1)+b}return b};pui.ide.createWorkspace=function(){pui.ide.r.mK()};pui.ide.dl=function(b){if(b!==false)b=true;if(pui.nodedesigner&&!pui.RDF_LICENSE){b&&window.open(location.origin+"/key");return false}return true};
4161
4162
  pui.ide.bg=function(b){if(b!==false)b=true;if(pui.nodedesigner&&!pui.API_LICENSE){b&&window.open(location.origin+"/key");return false}return true};pui.ide.cl=function(b){if(b!==false)b=true;if(pui.nodedesigner&&!pui.ide.dl(false)&&!pui.ide.bg(false)){b&&window.open(location.origin+"/key");return false}return true};
4162
- function xg(b){screenMask.msg="Creating Sample Database...";screenMask.show();b={workspace_id:pui.cloud.ws.id,replaceTables:b?"1":"0"};Ext.Ajax.request({url:jc("PUI0001140.pgm"),method:"POST",params:b,success:function(a){screenMask.hide();var c=JSON.parse(a.responseText);if(c.success==false)if(c.existingTables&&c.existingTables.length>0){a="These tables already exist. Are you sure you want to replace them?<hr>";var d=c.existingTables;for(c=0;c<d.length;c++)a+="<li>"+d[c].trim()+"</li>";Ext.MessageBox.show({title:"<b>Warning!</b>",
4163
- buttons:{yes:"Cancel",cancel:"Yes"},icon:Ext.MessageBox.WARNING,msg:a,minWidth:430,width:100,fn:function(f){f==="cancel"&&xg(true)}})}else Ext.MessageBox.show({title:"Error",msg:c.error,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});else{Ext.getCmp("databaseTree").getRootNode().reload();d=c.existingTables;var e=c.newTables;a="";if(e.length>0){a+="The following tables were created.<hr>";for(c=0;c<e.length;c++)a+="<li>"+e[c].trim()+"</li>";a+="<br>"}if(d.length>0){a+="The following tables were replaced.<hr>";
4163
+ function yg(b){screenMask.msg="Creating Sample Database...";screenMask.show();b={workspace_id:pui.cloud.ws.id,replaceTables:b?"1":"0"};Ext.Ajax.request({url:jc("PUI0001140.pgm"),method:"POST",params:b,success:function(a){screenMask.hide();var c=JSON.parse(a.responseText);if(c.success==false)if(c.existingTables&&c.existingTables.length>0){a="These tables already exist. Are you sure you want to replace them?<hr>";var d=c.existingTables;for(c=0;c<d.length;c++)a+="<li>"+d[c].trim()+"</li>";Ext.MessageBox.show({title:"<b>Warning!</b>",
4164
+ buttons:{yes:"Cancel",cancel:"Yes"},icon:Ext.MessageBox.WARNING,msg:a,minWidth:430,width:100,fn:function(f){f==="cancel"&&yg(true)}})}else Ext.MessageBox.show({title:"Error",msg:c.error,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR});else{Ext.getCmp("databaseTree").getRootNode().reload();d=c.existingTables;var e=c.newTables;a="";if(e.length>0){a+="The following tables were created.<hr>";for(c=0;c<e.length;c++)a+="<li>"+e[c].trim()+"</li>";a+="<br>"}if(d.length>0){a+="The following tables were replaced.<hr>";
4164
4165
  for(c=0;c<d.length;c++)a+="<li>"+d[c].trim()+"</li>"}Ext.MessageBox.show({title:"Create Sample Database",msg:a,icon:Ext.MessageBox.INFO,buttons:Ext.MessageBox.OK})}},failure:function(a){screenMask.hide();Ext.MessageBox.show({title:"Error",msg:"HTTP "+a.status+" - "+a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.ERROR})}})}
4165
4166
  pui.ide.QT=function(){var b=false;if(pui.cloud.ws.modify)b=true;pui.cloud.ws.owner||(b=true);if(pui.cloud.ws.owner===pui.cloud.user)b=true;var a=pui.cloud.ws.contributors;a||(a=[]);var c=false;if(!b)for(var d=0;d<a.length;d++)if(a[d].profile===pui.cloud.user)c=b=true;return{Ig:b,SW:c}};
4166
4167
  pui.ide.updateApiRoutePermissions=function(b,a){var c=Ext.getCmp("routePermissionsGrid").getStore().getAt(b);c.data.canExecute=a;var d=tab.apiRoutes.apiPermissions.filter(function(e){return e.roleID==c.data.roleID&&e.apiFileID==c.data.apiFileID&&e.apiRouteID==c.data.apiRouteID})[0];if(!d&&c.data.canExecute!=null){d={roleID:c.data.roleID,roleName:c.data.roleName,apiFileID:c.data.apiFileID,apiRouteID:c.data.apiRouteID};tab.apiRoutes.apiPermissions.push(d)}d.canExecute=c.data.canExecute;c.commit();pui.ide.fa()};
4167
- pui.ide.jp=function(b,a,c){if(b.getCount()>0){var d=a.getSelectionModel(),e=-1;if(typeof b.positionTo=="number"){e=b.positionTo;if(e>=a.getStore().getTotalCount())e=a.getStore().getTotalCount()-1}else if(b.positionTo)e=b.data.items.findIndex(function(f){return f.data[c]==b.positionTo});b.positionTo=null;!a.viewReady||e<0||setTimeout(function(){d.selectRow(e);a.getView().ensureVisible(e)},100)}};pui.ide.CU=function(){var b=If.get("commentsHeight");if(b!=null&&b>0){b=parseInt(b,10);b+=42}else b=200;var a=[{id:"_south_panel_terminal_tab",title:"Terminal",autoScroll:true,html:"",tbar:new Ext.Toolbar({items:[{id:"_south_panel_start_terminal",tooltip:"Start Terminal",icon:"/profoundui/proddata/images/FlatIcons/24x24/launch.png",handler:function(){var c=Ext.getCmp("_south_panel_terminal_tab");pui.ide.zT(c)}},{id:"_south_panel_stop_terminal",tooltip:"Stop Terminal",icon:"/profoundui/proddata/images/FlatIcons/16x16/stop.png",
4168
+ pui.ide.jp=function(b,a,c){if(b.getCount()>0){var d=a.getSelectionModel(),e=-1;if(typeof b.positionTo=="number"){e=b.positionTo;if(e>=a.getStore().getTotalCount())e=a.getStore().getTotalCount()-1}else if(b.positionTo)e=b.data.items.findIndex(function(f){return f.data[c]==b.positionTo});b.positionTo=null;!a.viewReady||e<0||setTimeout(function(){d.selectRow(e);a.getView().ensureVisible(e)},100)}};pui.ide.CU=function(){var b=Jf.get("commentsHeight");if(b!=null&&b>0){b=parseInt(b,10);b+=42}else b=200;var a=[{id:"_south_panel_terminal_tab",title:"Terminal",autoScroll:true,html:"",tbar:new Ext.Toolbar({items:[{id:"_south_panel_start_terminal",tooltip:"Start Terminal",icon:"/profoundui/proddata/images/FlatIcons/24x24/launch.png",handler:function(){var c=Ext.getCmp("_south_panel_terminal_tab");pui.ide.zT(c)}},{id:"_south_panel_stop_terminal",tooltip:"Stop Terminal",icon:"/profoundui/proddata/images/FlatIcons/16x16/stop.png",
4168
4169
  handler:function(){var c=Ext.getCmp("_south_panel_terminal_tab");if(c.ih){var d=c.ih.__socket;if(d){c.ih.detach(d);d.close()}c.ih.dispose();delete c.ih}c.update("")}}]}),listeners:{bodyresize:function(c){c.ih&&c.ih.fit()}}}];if(pui.isCloud||pui.pjsWorkspaceSupport)a.splice(0,0,{id:"_south_panel_workspace_info",cls:"pui-workspace-panel",title:"Spaces",bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px; background-color: #fafafa;",autoScroll:true,html:"",listeners:{afterrender:function(){pui.ide.getWorkspaceInfo()}}});
4169
4170
  if(pui.isCloud||pui.pjsWorkspace)a.push({id:"_south_panel_run_app_tab",title:"Run Your App",bodyStyle:"background-color: #fafafa;",html:"",tbar:new Ext.Toolbar({items:[{id:"_south_panel_run",tooltip:"Start App",icon:"/profoundui/proddata/images/FlatIcons/24x24/launch.png",handler:function(c){function d(){if(pui.isCloud){var e=document.location.pathname;if(e.substr(0,5)==="/ide/")e=e.substr(4);e=location.protocol+"//"+location.hostname+(location.port?":":"")+location.port+"/run"+e}else e="/run/"+pui.pjsWorkspace.name;
4170
4171
  e='<iframe class="pui-cloud-run-iframe" src="'+e+'"></iframe>';Ext.getCmp("_south_panel_run_app_tab").update(e);Ext.getCmp("_south_panel_run_app_tab").body.setStyle("background-color","#ffffff")}!pui.isCloud||c==="no questions"?d():pui.cloud.zM(d)}},{id:"_south_panel_stop",tooltip:"Stop App",icon:"/profoundui/proddata/images/FlatIcons/16x16/stop.png",handler:function(){var c=Ext.getCmp("_south_panel_run_app_tab");if(c&&c.getContentTarget()){c.update("");c.body.setStyle("background-color","#fafafa")}}},
4171
4172
  {id:"_south_panel_logs",tooltip:"Server Logs...",icon:"/profoundui/proddata/images/FlatIcons/16x16/logs.png",hidden:!pui.isCloud?true:false,handler:function(){Ext.getCmp("_Ribbon_Home_viewLogs").handler()}},{id:"_south_panel_run_externally",tooltip:"Launch in Browser Tab",icon:"/profoundui/proddata/images/FlatIcons/16x16/launch-externally.png",handler:function(){pui.isCloud?Ext.getCmp("_Ribbon_Home_launchThisApp").handler():window.open("/run/"+pui.pjsWorkspace.name)}}]}),listeners:{afterrender:qa()}});
4172
4173
  pui.lowcodeSupport&&a.push(new Ext.Panel({id:"_south_panel_debug_tab",title:"Debug Low-code",bodyStyle:"background-color: #fafafa;",layout:"border",tbar:new Ext.Toolbar({items:[]}),items:[new Ext.Panel({id:"_south_panel_debug_console",html:"Open a low-code debugging target, then click on &quot;Debug Low Code&quot; in the Home, Launch toolbar button.<br/>",region:"west",width:200,split:true,autoScroll:true,bodyStyle:{whiteSpace:"normal"}}),new Ext.TabPanel({id:"_south_panel_debug_tabpnl",region:"center",
4173
- floatable:false,activeTab:0,enableTabScroll:true,listeners:{tabchange:function(c,d){d&&d.hi instanceof pui.ide.Sf&&cg(d.hi)}},plugins:new Ext.ux.panel.pq}),new Ext.Panel({id:"_south_panel_debug_east",layout:"border",region:"east",split:true,width:575})]}));b=new Ext.Panel({id:"southPanel",region:"south",cls:"pui-social-panel"+(pui.isCloud?"":" pjs-not-cloud"),height:b,resizable:true,split:true,collapsible:true,floatable:false,title:pui.isCloud?pui.social.genTitle():"",collapsed:true,layout:"border",
4174
+ floatable:false,activeTab:0,enableTabScroll:true,listeners:{tabchange:function(c,d){d&&d.hi instanceof pui.ide.Sf&&dg(d.hi)}},plugins:new Ext.ux.panel.pq}),new Ext.Panel({id:"_south_panel_debug_east",layout:"border",region:"east",split:true,width:575})]}));b=new Ext.Panel({id:"southPanel",region:"south",cls:"pui-social-panel"+(pui.isCloud?"":" pjs-not-cloud"),height:b,resizable:true,split:true,collapsible:true,floatable:false,title:pui.isCloud?pui.social.genTitle():"",collapsed:true,layout:"border",
4174
4175
  items:[new Ext.TabPanel({id:"_south_tabpanel",region:"center",floatable:false,activeTab:0,items:a,listeners:{afterrender:function(c){if(!pui.isCloud){var d='<div class="profoundjs-south-links">';c.items.each(function(e,f){d+='<div class="profoundjs-south-links-item"><a href="javascript:void(0);" onclick="'+("Ext.getCmp('southPanel').expand();Ext.getCmp('_south_tabpanel').setActiveTab(Ext.getCmp('_south_tabpanel').items.itemAt("+f+"))")+'">'+e.title+"</a></div>"});d+="</div>";Ext.getCmp("southPanel").setTitle(d)}}}})],
4175
- listeners:{afterrender:function(c){Ext.getCmp("UI-viewPort").on("resize",function(){c.collapsed||c.fireEvent("resize",c,c.getWidth(),c.getHeight())});window.onkeydown=function(d){if((d.key=="`"||d.keyCode==192)&&d.ctrlKey)c.toggleCollapse()}},bodyresize:function(c,d,e){if(!isNaN(e)&&e>0){If.set("commentsHeight",e);If.save()}},resize:function(c,d,e){if(!isNaN(e)&&e>0){d=Ext.getCmp("UI-viewPort").getHeight()-Ext.getCmp("_RibbonTabPanel").getHeight()-Ext.getCmp("centerPanel").strip.getHeight()-10;if(d<
4176
- 75)d=75;if(e>d){c.setHeight(d);try{Ext.getCmp("UI-viewPort").doLayout()}catch(f){}}}},beforeexpand:function(){if(!pui.isCloud)if(links=document.querySelector("div.profoundjs-south-links"))links.style.display="none"},expand:function(){Ext.getCmp("_south_panel_terminal_tab").ih&&Ext.getCmp("_south_panel_terminal_tab").ih.focus()},collapse:function(){if(!pui.isCloud)if(links=document.querySelector("div.profoundjs-south-links"))links.style.display=""}},plugins:[Ext.ux.WH]});if(pui.isCloud){a=If.get("commentsWidth");
4177
- a=a!=null&&a>0?parseInt(a,10):300;b.add({id:"_south_panel_workspace_comments",region:"west",width:a,border:false,split:true,resizable:true,collapsible:true,collapsed:If.get("commentsCollapsed")!=="0",bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px;",autoScroll:true,html:"",listeners:{afterrender:function(){pui.social.getComments()},bodyresize:function(c,d){if(!isNaN(d)&&d>0){If.set("commentsWidth",d);If.save()}},expand:function(){If.set("commentsCollapsed","0");If.save()},collapse:function(){If.set("commentsCollapsed",
4178
- "1");If.save()}}})}return b};pui.ide.getWorkspaceInfo=function(){var b={};if(pui.isCloud)b.workspace_id=pui.cloud.ws.id||"";var a=Ext.getCmp("_south_panel_workspace_info");a.update("Retrieving workspace information...");xc({url:jc("PUI0001138.pgm"),method:"post",params:b,async:true,suppressAlert:true,handler:function(c){c.success?a.update(c.html):a.update(c.error)},onfail:function(){a.update("An unexpected error ocurred while retrieving workspace information. Check your connection and try again.")}})};pui.ide.removeWorkspace=function(b,a){Ext.MessageBox.confirm("Remove Workspace","Are you sure you want to permanently remove this workspace?<br/><br/>"+b+"<br/>",function(c){if(c==="yes"){var d=false;if(pui.isCloud&&a===pui.cloud.ws.id||!pui.isCloud&&pui.pjsWorkspace&&b===pui.pjsWorkspace.name){d=true;pui.ide.unwatchFiles()}screenMask.msg="Removing workspace";screenMask.show();c={};if(pui.isCloud)c.workspace_id=a;else{c.mode="delete";c.name=U.jd()+pui.dirSeparator+b}xc({url:pui.isCloud?"/cloud/remove_workspace":
4176
+ listeners:{afterrender:function(c){Ext.getCmp("UI-viewPort").on("resize",function(){c.collapsed||c.fireEvent("resize",c,c.getWidth(),c.getHeight())});window.onkeydown=function(d){if((d.key=="`"||d.keyCode==192)&&d.ctrlKey)c.toggleCollapse()}},bodyresize:function(c,d,e){if(!isNaN(e)&&e>0){Jf.set("commentsHeight",e);Jf.save()}},resize:function(c,d,e){if(!isNaN(e)&&e>0){d=Ext.getCmp("UI-viewPort").getHeight()-Ext.getCmp("_RibbonTabPanel").getHeight()-Ext.getCmp("centerPanel").strip.getHeight()-10;if(d<
4177
+ 75)d=75;if(e>d){c.setHeight(d);try{Ext.getCmp("UI-viewPort").doLayout()}catch(f){}}}},beforeexpand:function(){if(!pui.isCloud)if(links=document.querySelector("div.profoundjs-south-links"))links.style.display="none"},expand:function(){Ext.getCmp("_south_panel_terminal_tab").ih&&Ext.getCmp("_south_panel_terminal_tab").ih.focus()},collapse:function(){if(!pui.isCloud)if(links=document.querySelector("div.profoundjs-south-links"))links.style.display=""}},plugins:[Ext.ux.WH]});if(pui.isCloud){a=Jf.get("commentsWidth");
4178
+ a=a!=null&&a>0?parseInt(a,10):300;b.add({id:"_south_panel_workspace_comments",region:"west",width:a,border:false,split:true,resizable:true,collapsible:true,collapsed:Jf.get("commentsCollapsed")!=="0",bodyStyle:"white-space: normal; padding: 10px 10px 10px 10px;",autoScroll:true,html:"",listeners:{afterrender:function(){pui.social.getComments()},bodyresize:function(c,d){if(!isNaN(d)&&d>0){Jf.set("commentsWidth",d);Jf.save()}},expand:function(){Jf.set("commentsCollapsed","0");Jf.save()},collapse:function(){Jf.set("commentsCollapsed",
4179
+ "1");Jf.save()}}})}return b};pui.ide.getWorkspaceInfo=function(){var b={};if(pui.isCloud)b.workspace_id=pui.cloud.ws.id||"";var a=Ext.getCmp("_south_panel_workspace_info");a.update("Retrieving workspace information...");xc({url:jc("PUI0001138.pgm"),method:"post",params:b,async:true,suppressAlert:true,handler:function(c){c.success?a.update(c.html):a.update(c.error)},onfail:function(){a.update("An unexpected error ocurred while retrieving workspace information. Check your connection and try again.")}})};pui.ide.removeWorkspace=function(b,a){Ext.MessageBox.confirm("Remove Workspace","Are you sure you want to permanently remove this workspace?<br/><br/>"+b+"<br/>",function(c){if(c==="yes"){var d=false;if(pui.isCloud&&a===pui.cloud.ws.id||!pui.isCloud&&pui.pjsWorkspace&&b===pui.pjsWorkspace.name){d=true;pui.ide.unwatchFiles()}screenMask.msg="Removing workspace";screenMask.show();c={};if(pui.isCloud)c.workspace_id=a;else{c.mode="delete";c.name=U.jd()+pui.dirSeparator+b}xc({url:pui.isCloud?"/cloud/remove_workspace":
4179
4180
  jc("PUI0001122.pgm"),method:"post",params:c,async:true,suppressAlert:true,handler:function(e){screenMask.hide();if(e.success)var f=Ext.MessageBox.INFO,g="Workspace successfully removed.";else{f=Ext.MessageBox.ERROR;g=pui.isCloud?e.message:e.error}pui.ide.getWorkspaceInfo();if(!pui.isCloud){var h=pui.MODULES_DIR?Ext.getCmp("fileTree").getNodeById(pui.MODULES_DIR):Ext.getCmp("fileTree").getNodeById(pui.PROFOUNDJS_DIR+pui.dirSeparator+"modules");h&&h.loaded&&h.reload()}Ext.MessageBox.show({title:"Workspace Removal",
4180
4181
  msg:g,icon:f,buttons:Ext.MessageBox.OK,fn:function(){if(d)if(e.success){var m=location.protocol+"//"+location.hostname+(location.port?":":"")+location.port+"/ide/";pui.skipConfirm=true;location.href=m}else pui.ide.watchFiles()}})},onfail:function(){pui.alert("An unexpected error ocurred. Check your connection and try again.");screenMask.hide();d&&pui.ide.watchFiles()}})}})};pui.ide.openWorkspaceFiles=function(b,a){function c(){if(g.length<=0)d.items.getCount()===0?pui.ide.openFile({}):setTimeout(function(){var m=b["active tab"];if(isNaN(m)||m<0||m>d.items.getCount()-1)m=0;if(m=d.getItem(m)){d.setActiveTab(m);m.editor&&m.editor.focus()}if(a){pui.cloud.htmlDialogType="setup";pui.cloud.fF()}},10);else{h=g.shift();pui.ide.YX(h,c)}}if(pui.isCloud)pui.cloud.ws.settings=b;var d=Ext.getCmp("centerPanel");d.remove(d.getActiveTab(),true);var e=b["active widgets panel tab"];if(e!==
4181
4182
  undefined&&!isNaN(e)){var f=Ext.getCmp("widgetsPanel");f.setActiveTab(f.getItem(e))}var g=[];if(Array.isArray(b["open files"]))for(e=0;e<b["open files"].length;e++){var h=b["open files"][e];g.push(h)}g.length===0?pui.ide.openFile({}):c()};pui.ide.YX=function(b,a){var c=b.name;if(pui.dirSeparator==="\\")c=c.replace(/\//g,"\\");var d=pui.isCloud?"":pui.dirSeparator+U.jd()+pui.dirSeparator+pui.pjsWorkspace.name;d+=pui.dirSeparator+c;pui.ide.openFile({textFile:d,hN:true});setTimeout(a,500)};pui.ide.updateSettings=function(b,a,c){if(pui.isCloud){var d=pui.cloud.ws.settings;a=pui.cloud.ws.id}else if(a){d=a.UZ;a=a.name}else if(pui.pjsWorkspace){d=pui.pjsWorkspace.settings;a=pui.pjsWorkspace.name}else return;if(!b){screenMask.msg="Updating workspace settings";screenMask.show()}xc({url:jc("PUI0001139.pgm"),method:"post",params:{workspace_id:a,settings:JSON.stringify(d,null,2)},async:true,suppressAlert:true,handler:function(e){screenMask.hide();if(e.success)typeof c==="function"&&c();else b||
@@ -4413,17 +4414,17 @@ f=d.offsetTop,g=e+d.offsetWidth;d=f+d.offsetHeight;var h=c.dom.offsetLeft,m=c.do
4413
4414
  null)return false;for(var d=c.designer.selection.e,e=0;e<d.length;e++)if(d[e].b==c)return true;return false};this.FL=function(){for(var d=c.designer.selection.e,e=0;e<d.length;e++)if(d[e].b==c)return d[e];return null};this.Mi=function(d){for(var e=d.replace(/ /g,"-"),f="",g=false,h=0;h<d.length;h++){var m=d.substr(h,1);if(g){m=m.toUpperCase();g=false}if(m==" ")g=true;else f+=m}g="";if(c.dom.currentStyle)g=c.dom.currentStyle[f];else if(window.getComputedStyle)g=document.defaultView.getComputedStyle(c.dom,
4414
4415
  null).getPropertyValue(e);if(d.indexOf("color")>=0)g=pui.$u(g);c.properties[d]=g};this.destroy=function(){var d=c.dom.parentNode,e=d.parentNode.grid;c.dom.destroy!=null&&c.dom.destroy();c.dom.parentNode.removeChild(c.dom);c.dom=null;if(c.ab!=null){c.ab.parentNode.removeChild(c.ab);c.ab=null}if(c.Gb!=null){c.Gb.parentNode.removeChild(c.Gb);c.Gb=null}if(c.label!=null){c.label.parentNode.removeChild(c.label);c.label=null}c.Sa=null;c.designer=null;c.properties=null;c.Gv=null;c=c.p=null;e!=null&&e.mc(d.col)}};pui.designer.Rw=function(b){this.d=document.createElement("div");this.designer=b;this.er=false;this.d.className="selmkr";M=="genie"?b.c.appendChild(this.d):ac(Na).appendChild(this.d);if(M=="genie"&&typeof document.body.style.MozUserSelect!="undefined")document.body.style.MozUserSelect="none";document.addEventListener("keydown",this);document.addEventListener("keyup",this);document.addEventListener("mousedown",this);document.addEventListener("mouseup",this);document.addEventListener("selectstart",
4415
4416
  this);this.DB=this.No.bind(this)};pui.designer.Rw.prototype=Object.create(pui.cd.prototype);
4416
- pui.designer.Rw.prototype.handleEvent=function(b){if(!(this.designer==null||!this.designer.active||this.designer.c.style.display=="none"))switch(b.type){case "keydown":if(this.designer.disabled)return;zg(this,b);break;case "keyup":if(pui.IF)return;b=b.keyCode;if(b==17||b==0||b==null||isNaN(b))this.er=false;break;case "mousedown":if(pui.IF||this.designer.disabled==true)return;if(M=="genie"&&showAsWindowFlag)return;if(pui.bf(b))return;this.Fm(b);break;case "mousemove":this.Mo(b);break;case "mouseup":if(pui.IF)return;
4417
+ pui.designer.Rw.prototype.handleEvent=function(b){if(!(this.designer==null||!this.designer.active||this.designer.c.style.display=="none"))switch(b.type){case "keydown":if(this.designer.disabled)return;Ag(this,b);break;case "keyup":if(pui.IF)return;b=b.keyCode;if(b==17||b==0||b==null||isNaN(b))this.er=false;break;case "mousedown":if(pui.IF||this.designer.disabled==true)return;if(M=="genie"&&showAsWindowFlag)return;if(pui.bf(b))return;this.Fm(b);break;case "mousemove":this.Mo(b);break;case "mouseup":if(pui.IF)return;
4417
4418
  a:{var a=U.getTarget(b);if(a.tagName!="BODY"&&a.tagName!="HTML"&&a!=this.d&&a!=this.designer.c&&a!=this.designer.c.parentNode&&a!=this.designer.c.parentNode.parentNode){if(a.getAttribute==null)break a;if(a.id!=null&&a.id!=""||a.getAttribute("rowcol")==null&&a.getAttribute("stripeid")==null&&a.getAttribute("backgroundid")==null)break a}if(pui.bf(b)){this.designer.Gc.clickEvent=b;a=[];var c=[];if(pui.wf.G){a.push("Build Logic...");c.push("gears")}if(this.designer.s.Mx()){a.push("Undo "+this.designer.s.Br());
4418
4419
  c.push("undo")}if(this.designer.s.Lx()){a.push("Redo "+this.designer.s.EL());c.push("redo")}if(T.clipboard.length>0&&T.clipboard[0].containerType!=="grid"&&T.clipboard[0].containerType!=="layout"){a.push("Paste");c.push("paste")}if(M=="genie"){a.push("Enable Empty Elements");c.push("enable_elements")}a.push("Toggle Snap to Grid");c.push("snap_to_grid");if(M=="genie"){a.push("Save and Exit Design");c.push("save_exit");a.push("Exit Design");c.push("exit")}this.designer.Gc.He=a;this.designer.Gc.Ql=c;
4419
4420
  this.designer.Gc.vv();this.designer.Gc.show();U.va(b)}}break;case "selectstart":b=U.getTarget(b);a=b.tagName;a!="INPUT"&&a!="TEXTAREA"&&a=="DIV"&&b.className.indexOf("pui-designer-text-selectable");break}};
4420
- function zg(b,a){var c=a.keyCode,d=U.getTarget(a);if(c==17)b.er=true;var e=U.SU(b.designer.k);if(d.className!="propertyInput"&&!e){if(c==37){b.designer.selection.qz(-1,0);U.va(a);b.designer.k.Da("left");b.designer.k.Da("right")}if(c==38){b.designer.selection.qz(0,-1);U.va(a);b.designer.k.Da("top");b.designer.k.Da("bottom")}if(c==39){b.designer.selection.qz(1,0);U.va(a);b.designer.k.Da("left");b.designer.k.Da("right")}if(c==40){b.designer.selection.qz(0,1);U.va(a);b.designer.k.Da("top");b.designer.k.Da("bottom")}if(c==
4421
+ function Ag(b,a){var c=a.keyCode,d=U.getTarget(a);if(c==17)b.er=true;var e=U.SU(b.designer.k);if(d.className!="propertyInput"&&!e){if(c==37){b.designer.selection.qz(-1,0);U.va(a);b.designer.k.Da("left");b.designer.k.Da("right")}if(c==38){b.designer.selection.qz(0,-1);U.va(a);b.designer.k.Da("top");b.designer.k.Da("bottom")}if(c==39){b.designer.selection.qz(1,0);U.va(a);b.designer.k.Da("left");b.designer.k.Da("right")}if(c==40){b.designer.selection.qz(0,1);U.va(a);b.designer.k.Da("top");b.designer.k.Da("bottom")}if(c==
4421
4422
  46)for(var f=0;f<b.designer.selection.e.length;f++)if(b.designer.selection.e[f].b.properties["field type"]=="grid")if(M=="genie"){if(confirm(pui.getLanguageText("runtimeMsg","subfile deletion"))==true){b.designer.s.Hd("Remove "+b.designer.selection.Rg(),b.designer);b.designer.Ii()}}else{var g=b.designer;Ext.MessageBox.show({title:"Delete Grid",msg:"Are you sure you want to delete the grid?",model:true,icon:Ext.MessageBox.WARNING,buttons:{yes:"Ok",no:"Cancel"},fn:function(m){if(m=="yes"){g.s.Hd("Remove "+
4422
4423
  g.selection.Rg(),g);g.Ii()}}})}else{b.designer.s.Hd("Remove "+b.designer.selection.Rg(),b.designer);b.designer.Ii();U.va(a)}if(c==67&&b.Ch(a)){b.designer.Yt();U.va(a)}if(c==86&&b.Ch(a)){f=T.clipboard;if(pui.xd()){var h=localStorage.getItem("pui-designer-clipboard");if(h)f=JSON.parse(h)}b.designer.ol(f);U.va(a)}if(a.key=="d"&&b.Ch(a)){b.designer.ol();U.va(a)}if(c==88&&b.Ch(a)){b.designer.Yt();b.designer.s.Hd("Cut "+b.designer.selection.Rg(),b.designer);b.designer.Ii();U.va(a)}if(c==89&&b.Ch(a)){b.designer.s.Oz();
4423
4424
  U.va(a)}if(c==90&&b.Ch(a)){b.designer.s.s();U.va(a)}}if(!e){if(c==83&&b.Ch(a)){U.va(a);if(M==="dspf"){if(d.className=="propertyInput"){d.blur();d.focus()}setTimeout(function(){if(te.validate())pui.designer.currentDisplay.member==null&&pui.designer.currentDisplay.ifsFile==null&&pui.designer.currentDisplay.Ob==null?pui.ide.r.Wn():T.eA({onsuccess:function(){te.Wg();pui.ide.Yb();pui.ide.updateIdeSettings()}})},1)}else M=="genie"&&T.YL()}if(a.key=="Tab"&&!b.designer.k.Ue)if(b.designer.items.length!=0){if(b.designer.selection.e.length==
4424
4425
  0)c=b.designer.items[0];else{c=b.designer.selection.e[0].b;if(a.shiftKey){c=b.designer.items[b.designer.items.indexOf(c)-1];if(c==null)c=b.designer.items[b.designer.items.length-1]}else{c=b.designer.items[b.designer.items.indexOf(c)+1];if(c==null)c=b.designer.items[0]}}b.designer.selection.clear();b.designer.selection.add(c);b.designer.k.refresh();U.va(a)}}}Ba=pui.designer.Rw.prototype;
4425
4426
  Ba.Fm=function(b){this.OI=this.UB=false;var a=U.getTarget(b);if(a.tagName!="BODY"&&a.tagName!="HTML"&&a!=this.d&&a!=this.designer.c&&a!=this.designer.c.parentNode&&a!=this.designer.c.parentNode.parentNode){if(a.Lu)return;a=a;for(var c=false;a!=null;){if(a==this.designer.c||a.className=="mainDiv"){c=true;break}a=a.parentNode}if(!c)return;this.OI=true}a=U.getX(b);c=U.getY(b);var d=pui.Tc(this.designer.c,true);this.fx=d[0];this.gx=d[1];this.Eq=Math.round((a-this.fx)*T.Sb);this.Fq=Math.round((c-this.gx)*
4426
- T.Sb);d=0;if(M=="dspf"){d=If.get("eastPanelWidth","")==""?290:If.get("eastPanelWidth","");d=Number(d);if(isNaN(d))d=0}if(M=="dspf"&&pui.designer.ia!=null){d=pui.Tc(Ext.getCmp("centerPanel").body.dom,true);this.fx=d[0];this.gx=d[1];this.Eq=Math.round((a-this.fx)*T.Sb);this.Fq=Math.round((c-this.gx)*T.Sb);a=this.designer.c;d=a.parentNode;this.zm=d.parentNode;c=a.offsetLeft+a.clientLeft+d.offsetLeft+d.clientLeft+a.clientWidth-this.zm.scrollLeft;d=a.offsetTop+a.clientTop+d.offsetTop+d.clientTop+a.clientHeight-
4427
+ T.Sb);d=0;if(M=="dspf"){d=Jf.get("eastPanelWidth","")==""?290:Jf.get("eastPanelWidth","");d=Number(d);if(isNaN(d))d=0}if(M=="dspf"&&pui.designer.ia!=null){d=pui.Tc(Ext.getCmp("centerPanel").body.dom,true);this.fx=d[0];this.gx=d[1];this.Eq=Math.round((a-this.fx)*T.Sb);this.Fq=Math.round((c-this.gx)*T.Sb);a=this.designer.c;d=a.parentNode;this.zm=d.parentNode;c=a.offsetLeft+a.clientLeft+d.offsetLeft+d.clientLeft+a.clientWidth-this.zm.scrollLeft;d=a.offsetTop+a.clientTop+d.offsetTop+d.clientTop+a.clientHeight-
4427
4428
  this.zm.scrollTop;if(a.scrollHeight>a.clientHeight&&this.Eq>=c)return;if(a.scrollWidth>a.clientWidth&&this.Fq>=d)return;this.Eq+=this.zm.scrollLeft;this.Fq+=this.zm.scrollTop}else{if(a>document.body.offsetWidth-25-d)return;if(window.innerHeight){if(c>window.innerHeight-25)return}else if(c>document.body.offsetHeight-25)return}this.designer.k.zC();this.d.style.left=this.Eq+"px";this.d.style.top=this.Fq+"px";this.d.style.height="0px";this.d.style.width="0px";document.addEventListener("mousemove",this);
4428
4429
  document.addEventListener("mouseup",this.DB);U.va(b)};
4429
4430
  Ba.Mo=function(b){var a=pui.qi(b),c=a.x-this.fx;a=Math.round((a.y-this.gx)*T.Sb-this.Fq);c=Math.round(c*T.Sb-this.Eq);if(this.zm){a+=this.zm.scrollTop;c+=this.zm.scrollLeft}var d=this.Eq,e=this.Fq;if(a<0){a=-a;e-=a}if(c<0){c=-c;d-=c}if(c>2||a>2){if(this.d.style.visibility!=="visible")this.d.style.visibility="visible";if(this.d.style.display!=="block")this.d.style.display="block";this.UB=true}this.d.style.height=a+"px";this.d.style.width=c+"px";this.d.style.top=e+"px";this.d.style.left=d+"px";U.va(b)};
@@ -4454,7 +4455,7 @@ m.selection.Rg()+" Out",m);setTimeout(function(){pui.designer.ZM(d.b,n)},0)}else
4454
4455
  T.Cb);u+=Math.round((i.offsetTop+o.offsetTop)*T.Cb);if(o.parentNode.getAttribute("container")=="true"){o=pui.layout.pe(o.parentNode);t+=Math.round(o.x*T.Cb);u+=Math.round(o.y*T.Cb)}v=t+i.offsetWidth*T.Cb;w=u+i.offsetHeight*T.Cb}else{o=pui.layout.pe(d.b.dom.parentNode);t=i+Math.round(o.x*T.Cb);u=q+Math.round(o.y*T.Cb);v=t+Math.round(d.b.dom.parentNode.offsetWidth*T.Cb);w=u+Math.round(d.b.dom.parentNode.offsetHeight*T.Cb)}}var y=m.selection,B=[];for(i=0;i<y.e.length;)if(y.e[i].b.properties["locked in place"]==
4455
4456
  "true"){B.push(y.e[i]);y.e.splice(i,1)}else i++;var C=y.HE();y.eo();C!=null&&C.eo();m.AU(d.b);if(M=="dspf"&&d!=null&&d.b!=null){var z=true;q=o=true;if(y.e.length!=1)o=false;for(i=0;i<y.e.length;i++){var K=y.e[i].b;if(K.dom.parentNode!==d.b.dom.parentNode){z=false;break}K=pui.widgets[K.properties["field type"]];K.rh||(o=false);K.Xo||(q=false)}if(!o&&!q)z=false;if(n&&y.e.length!=1)z=false;U.eG(m,n,k,o,q,l,s,d.b)}U.Ea(document,"mousemove",f);U.Ea(document,"mouseup",g);U.va(e);M=="dspf"&&Ext.menu.MenuMgr.hideAll();
4456
4457
  d.b.moved=false;m.s.start("Move "+y.Rg());m.s.Hh=true;y.Nm(["left","right","top","bottom","parent tab panel","parent tab panel"]);m.s.Hh=false}}}function c(e){if(d!=null){var f=d.b;if(f!=null){var g=U.getTarget(e),h="value";if(f.label!=null&&(g==f.label||g.parentNode==f.label))h="label";if(f.properties["field type"]=="html container")h="html";if(f.properties["field type"]=="radio button"&&h!="label")h="radio button group";if(f.properties["field type"]=="layout")if(f.properties.template=="css panel")h=
4457
- "header text";else if(f.properties.template=="fieldset")h="legend";else if(f.properties.template=="responsive layout"){f.designer.k.rO.show(f.properties["layout items"],f.properties["style rules"],f.properties["container names"],f.dom.children[0].children,function(n,i,o){var q=f.dom.ra,l=T.designer.zh(q.c),s=l.properties["style rules"];if(pui.h(s))s.designValue=n;else s=n;q.Et(l,"style rules",s,"Set style rules");i!=parseInt(f.properties["layout items"],10)&&Ag(f.dom.ra,f,i);o!=f.properties["container names"]&&
4458
+ "header text";else if(f.properties.template=="fieldset")h="legend";else if(f.properties.template=="responsive layout"){f.designer.k.rO.show(f.properties["layout items"],f.properties["style rules"],f.properties["container names"],f.dom.children[0].children,function(n,i,o){var q=f.dom.ra,l=T.designer.zh(q.c),s=l.properties["style rules"];if(pui.h(s))s.designValue=n;else s=n;q.Et(l,"style rules",s,"Set style rules");i!=parseInt(f.properties["layout items"],10)&&Bg(f.dom.ra,f,i);o!=f.properties["container names"]&&
4458
4459
  f.dom.ra.Et(f,"container names",o,"Change container names")});return}if(f.properties["field type"]=="image"){h="image source";if(M=="dspf"&&pui.h(f.properties[h])||pui.Va(f.properties[h])){f.designer.k.ve(h,null,true,e);pui.h(f.properties[h])&&f.designer.k.Na.$p()}else{f.designer.k.ve(h,null,false,e);var m=f.designer.k.em;m.sg=function(n){if(pui.isCloud&&(n.substr(0,1)==="/"||n.substr(0,1)==="\\"))n=n.substr(1);f.designer.k.Ck(h,n,true)};m.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select Image Source</span>');
4459
4460
  m.type="image";m.show(e)}}else{if(h!="label"){m=f.properties["field type"];var k=pui.widgets[m].xi;if(m=="layout"&&(f.properties.template=="css panel"||f.properties.template=="fieldset"))k=true;if(!k){if(M=="dspf"&&m!="grid"&&m!="tab panel"){g=g.tagName;if(g=="INPUT"||g=="TEXTAREA"||g=="SELECT"||f.properties["field type"]=="on off switch"){f.designer.k.ve(h,null,true,e);f.designer.k.Na.$p()}if(m=="icon"){h="icon";if(M=="dspf"&&pui.h(f.properties[h])||pui.Va(f.properties[h])){f.designer.k.ve(h,null,
4460
4461
  true,e);pui.h(f.properties[h])&&f.designer.k.Na.$p();return}f.designer.k.ve(h,null,false,e);f.designer.k.Zj.sg=function(n){f.designer.k.Ck(h,n,true)};f.designer.k.Zj.show(e,null,null)}}return}}if(M=="dspf"&&pui.h(f.properties[h])||pui.Va(f.properties[h])){if(f.properties["field type"]!=="layout"){f.designer.k.ve(h,null,true,e);pui.h(f.properties[h])&&f.designer.k.Na.$p()}}else{f.designer.Sg.Mp=function(n){var i=Rc()[h];if(i==null)i={name:h};f.designer.s.add(f,i.name);ad(i,f.properties,f.dom,n,true,
@@ -4491,7 +4492,7 @@ wa(false);if(typeof this.d.style.MozUserSelect!="undefined")this.d.style.MozUser
4491
4492
  b.appendChild(a);b.appendChild(c);b.appendChild(d);b.appendChild(e);f.c.appendChild(b)};this.show=function(){if(b!=null){if(M=="dspf")b.style.left=ac("widgetsPanel").offsetWidth+6+"px";if(pui.nodedesigner){var g=48;Ext.getCmp("southPanel").collapsed||(g=Ext.getCmp("southPanel").getHeight()+6);b.style.bottom=g+"px"}b.style.display=""}};this.hide=function(){if(b!=null)b.style.display="none"};this.set=function(g){function h(i,o){var q=i.properties[o];if(i.properties["field type"]=="grid")q=i.dom.style[o];
4492
4493
  if(q==null)q=0;if(pui.h(q))q=q.designValue;if(q==null)q="0";q=parseInt(q);if(isNaN(q))q=0;return q}var m=h(g,"left"),k=h(g,"top");if(g.p&&g.p.left!=true&&g.p.right==true)m=h(g,"right");if(g.p&&g.p.top!=true&&g.p.bottom==true)k=h(g,"bottom");var n=h(g,"width");g=h(g,"height");c.innerHTML=m+", "+k;e.innerHTML=n+(g==0?"":" x "+g);if(n==0){d.style.visibility="hidden";e.style.visibility="hidden";b.style.width="90px"}else{d.style.visibility="";e.style.visibility="";b.style.width="180px"}}};
4493
4494
  pui.designer.Mh=new pui.designer.tQ;pui.designer.vm=function(b,a){function c(I){var L="expand_";if(!a&&z.designer.selection.e.length<=0)L+="global_";for(var F=0;F<I.length;F++){var E=I.substr(F,1);E=E.toLowerCase();if(E>="a"&&E<="z")L+=E}return L}function d(I,L){var F=q.value=="Set";if(L==null)L=U.getTarget(I);var E;if(z.PK)if(L.status=="-"){L.src=K;L.status="+";E="none"}else{L.src=H;L.status="-";E=""}else if(L.status=="-"){L.innerHTML="+";L.status="+";E="none"}else{L.innerHTML="-";L.status="-";E=""}for(var O=L;O.tagName!="TR";){O=
4494
- O.parentNode;if(O==null)return}for(O=O.nextSibling;O!=null&&O.childNodes.length>=2;){O.style.display=E==""&&F&&O.cells[0].className.indexOf("changed")<0?"none":E;O=O.nextSibling}F=L.parentNode.innerText;if(F==null)F=L.parentNode.textContent;If.set(c(F),L.status);If.save()}function e(I,L,F,E,O){var W=false,Q="",V=z.Ue==I;if(z.Ue!=null){z.wK=true;var ba=z.Ue.firstChild,ca=ba.nextSibling;if(!V){ba.classList.remove("sel");if(ba.Vo!=null){ba.Vo.parentNode.removeChild(ba.Vo);ba.Vo=null}if(ba.lq!=null){ba.lq.parentNode.removeChild(ba.lq);
4495
+ O.parentNode;if(O==null)return}for(O=O.nextSibling;O!=null&&O.childNodes.length>=2;){O.style.display=E==""&&F&&O.cells[0].className.indexOf("changed")<0?"none":E;O=O.nextSibling}F=L.parentNode.innerText;if(F==null)F=L.parentNode.textContent;Jf.set(c(F),L.status);Jf.save()}function e(I,L,F,E,O){var W=false,Q="",V=z.Ue==I;if(z.Ue!=null){z.wK=true;var ba=z.Ue.firstChild,ca=ba.nextSibling;if(!V){ba.classList.remove("sel");if(ba.Vo!=null){ba.Vo.parentNode.removeChild(ba.Vo);ba.Vo=null}if(ba.lq!=null){ba.lq.parentNode.removeChild(ba.lq);
4495
4496
  ba.lq=null}if(ba.qm!=null){ba.qm.parentNode.removeChild(ba.qm);ba.qm=null}}var ea=ca.firstChild;Q=ea.value;if(z.ya.uppercase&&Q!=null&&!pui.h(Q)&&!pui.Va(Q)&&!pui.xb(Q)&&!pui.Ep(Q))Q=Q.toUpperCase();if(z.ya.name==="record format name"&&pui.pjsDefaultMode==="compatibility")Q=Q.toLowerCase();if(ca.Ma!=null)Q=ca.Ma;else if(ca.kf!=null)Q=ca.kf;else if(ca.Ta!=null)Q=ca.Ta;else if(ca.fj!=null)Q=ca.fj;if(z.Mb[z.ya.name]&&z.Mb[z.ya.name].config){if(z.ya.name==="id")Q=Q.trim();z.Mb[z.ya.name].config.value=
4496
4497
  Q}if(O=="Remove")W=true;if(Q!=z.nx||W){if(a)if(W)a.properties[E.name]&&delete a.properties[E.name];else a.properties[E.name]=Q;if(!a){if(O==null)O="Change";for(var ha=O,ga=z.ya.name.split(" "),aa=0;aa<ga.length;aa++){var fa=ga[aa];fa=fa.charAt(0).toUpperCase()+fa.substr(1);ha+=" ";ha+=fa}ga=E.selection.e.length;if(ga==0){if(Q!=""||z.designer.ja[z.designer.j.n][z.ya.name]!=null){z.designer.s.start(ha);z.designer.s.kJ(z.designer,z.ya.name);if(M=="genie"&&z.ya!=null&&z.ya.name=="screen name"){z.designer.j.name=
4497
4498
  Q;if(z.designer.j.yd==true)for(aa=0;aa<z.designer.j.fields.length;aa++){ha=z.designer.j.fields[aa];ha.dom.setAttribute("parentWindow",Q);ha.properties["parent window"]=Q;ha.p["parent window"]=true}}if(M=="dspf"&&z.ya!=null&&z.ya.name=="record format name"){O=z.designer.j.name;z.designer.j.name=Q;aa=z.designer.Ze;if(!aa)aa=z.designer.sc;if(aa){aa.j.name=Q;aa.ja["record format name"]=z.designer.ja["record format name"];aa.he["record format name"]=z.designer.he["record format name"]}pui.wf.G&&pui.wf.G.lo(O,
@@ -4499,35 +4500,35 @@ Q,"screen name");te.refresh()}pui.Aa&&z.ya!=null&&z.ya.name=="document type"&&z.
4499
4500
  "Format":"Screen")+" Properties - "+z.designer.j.name)}}else{z.designer.s.start(ha);for(aa=0;aa<ga;aa++){ha=z.ya.selection.e[aa].b;z.designer.s.add(ha,z.ya.name);if(pui.Aa){ha.properties[z.ya.name]=Q;ha.p[z.ya.name]=true}else{fa=ha.dom.id;if(pui.wf.G&&z.ya.name==="record format name"&&ha.properties["field type"]=="grid")var sa=ha.properties["record format name"];E.name==="field type"&&ha.dom.setAttribute("puiwdgt",Q);ad(z.ya,ha.properties,ha.dom,Q,true,ha,E.selection.e[aa]);pui.wf.G&&z.ya.name===
4500
4501
  "id"&&ha.dom.id===Q&&pui.wf.G.lo(fa,Q,"widget id");pui.wf.G&&z.ya.name==="record format name"&&ha.properties["field type"]=="grid"&&pui.wf.G.lo(sa,Q,"grid name");if(z.ya&&z.ya.type==="icon"&&ha.properties["field type"]=="graphic button"){if(!ha.properties["icon position"]){var la=Rc();fa=pui.jg(la,"icon position");z.designer.s.add(ha,fa.name);ad(fa,ha.properties,ha.dom,"left",true,ha,E.selection.e[aa]);ha.designer.k.Ck("icon position","left",true)}if(ha.properties["image source"]&&!pui.h(ha.properties["image source"])){la||
4501
4502
  (la=Rc());fa=pui.jg(la,"image source");z.designer.s.add(ha,fa.name);ad(fa,ha.properties,ha.dom,"",true,ha,E.selection.e[aa]);ha.designer.k.Ck("image source","",true)}}if(ha.dom.pui&&ha.dom.pui.widget)ud(ha.dom.pui.widget);else ha.dom.ra&&ha.dom.ra.render()}if(O=="Remove"&&(z.ya==null||z.ya.name!="value"))W=true;if(W)ha.p[z.ya.name]=false}}z.designer.qa[z.designer.j.n]=true}W?ba.classList.remove("changed"):ba.classList.add("changed");E.name=="field type"&&z.refresh();E.name=="bound field"&&z.refresh()}if(!V||
4502
- pui.h(Q)||pui.Va(Q)||pui.xb(Q)||pui.Ep(Q)){Bg(z);Cg(z,ca,Q,z.Ue.Rp)}z.wK=false;if(z.bO){z.bO=null;z.refresh()}}if(I==null){z.Ue=null;z.ya=null;z.nx=null;y.innerHTML=""}else if(V)z.nx=Q;else{L.classList.add("sel");if(M=="dspf"&&F.Ta==null&&F.kf==null&&E.bind==null&&E.type!="js"&&F.fj==null||E.bind==true){var Ga=document.createElement("button");Ga.innerHTML=pui.flatlook?'<img src="/profoundui/proddata/images/FlatIcons/bind.png" />':'<img src="/profoundui/proddata/images/icons/bind_small.png" />';Ga.title=
4503
+ pui.h(Q)||pui.Va(Q)||pui.xb(Q)||pui.Ep(Q)){Cg(z);Dg(z,ca,Q,z.Ue.Rp)}z.wK=false;if(z.bO){z.bO=null;z.refresh()}}if(I==null){z.Ue=null;z.ya=null;z.nx=null;y.innerHTML=""}else if(V)z.nx=Q;else{L.classList.add("sel");if(M=="dspf"&&F.Ta==null&&F.kf==null&&E.bind==null&&E.type!="js"&&F.fj==null||E.bind==true){var Ga=document.createElement("button");Ga.innerHTML=pui.flatlook?'<img src="/profoundui/proddata/images/FlatIcons/bind.png" />':'<img src="/profoundui/proddata/images/icons/bind_small.png" />';Ga.title=
4503
4504
  "Bind '"+L.innerHTML+"' to a program field...";Ga.onclick=function(Pa){z.Na.Ca=function(Ta){if(!a){var Qa={};Qa.fieldName=Ta.fieldName;if(M=="dspf"){Qa.dataType=Ta.dataType;Qa.dataLength=Ta.dataLength;Qa.decPos=Ta.decPos;Qa.refField=Ta.refField;Qa.keywords=Ta.keywords;Qa.property=E.name;Qa.longName=Ta.longName;if(!z.designer.selection.gJ(Qa,z.designer))return false}}e(I,L,F,E);ea.value="";F.Ma=Ta;e(null,null,null,E,"Bind");if(!a){z.designer.selection.e.length>1&&z.designer.L.xg();if(pui.Aa&&E.name==
4504
4505
  "bound field"){Qa=Ta.fieldName;if(Ta.longName!=null)Qa=Ta.longName;z.designer.V1(Qa)}}return true};z.Na.tz=function(Ta){a||z.designer.selection.Cv(E.name,z.designer,Ta,true)};z.Na.vz=function(){!a&&F.Ma!=null&&F.Ma.fieldName!=null&&z.designer.selection.Cv(E.name,z.designer,F.Ma.fieldName);var Ta="";if(F.Ma!=null&&F.Ma.designValue!=null){Ta=F.Ma.designValue;if(Ta=="["+F.Ma.fieldName+"]")Ta=E.name+" text"}e(I,L,F,E);F.Ma=null;F.innerHTML="";ea=z.pp(E,Ta);F.appendChild(ea);e(null,null,null,E,"Unbind")};
4505
4506
  z.Na.FO(F.Ma,E,z.designer);var Oa;Oa=a||z.designer.selection.e.length==0||pui.Aa?"":z.designer.selection.e.length==1?z.designer.selection.e[0].b.properties.id+" - ":z.designer.selection.e.length+" items - ";Oa+="Bind <span style='text-transform:capitalize; font-weight: bold;'>"+$c(L)+"</span> to a Program Field";z.Na.Bb(Oa);z.Na.ob=E.name;z.Na.XO=E.showDesignValue===true;z.Na.kk=F.Ma!=null?F.Ma.designValue!=null?F.Ma.designValue:"":ea.value;z.Na.hide();e(null,null,null,z.ya);setTimeout(function(){I.classList.add("rclicksel")},
4506
4507
  0);z.Na.te=function(){I.classList.remove("rclicksel")};z.Na.show(Pa);z.Na.$p()};L.appendChild(Ga);L.Vo=Ga}if(M=="dspf"&&pui.langs.length>0&&E.translate&&F.Ma==null&&F.Ta==null&&(a||z.designer.selection.e.length==0||z.designer.selection.e.length==1)){W=document.createElement("button");W.innerHTML=pui.flatlook?'<img src="/profoundui/proddata/images/FlatIcons/globe-small.png" />':'<img src="/profoundui/proddata/images/icons/globe_small.png" />';W.title="Translation settings for '"+E.name+"'...";W.onclick=
4507
4508
  function(Pa){z.lm.Ca=function(Oa){e(I,L,F,E);F.kf=Oa;if(Oa==null){F.innerHTML="";ea=z.pp(E,"");F.appendChild(ea);e(null,null,null,E,"Remove")}else{ea.value="";e(null,null,null,E,"Translate")}};e(I,L,F,E);z.lm.designer=z.designer;z.lm.load(F.kf,E);z.lm.show(Pa)};L.appendChild(W);L.lq=W}if(M=="dspf"&&pui.wf.G&&E.wf&&F.Ma==null&&(a||z.designer.selection.e.length==0||z.designer.selection.e.length==1)){W=document.createElement("button");W.innerHTML='<img src="/profoundui/proddata/images/FlatIcons/gears.png" />';
4508
4509
  W.title="Build Logic...";W.onclick=function(){pui.wf.Ca=function(Pa){e(I,L,F,E);if(Pa){F.Ta={routine:Pa,designValue:Pa};ea.value="";e(null,null,null,E,"Set")}else{F.Ta=null;F.innerHTML="";ea=z.pp(E,"");F.appendChild(ea);e(null,null,null,E,"Remove")}};e(I,L,F,E);pui.ide.r.IG({b:z.designer.selection.e.length==0?z.designer:z.designer.selection.e[0].b,designer:z.designer,property:E.name,Ta:F.Ta})};L.appendChild(W);L.qm=W}W=F.firstChild.sv;if(F.Ma!=null)W=F.Ma;else if(F.kf!=null)W=F.kf;else if(F.Ta!=null)W=
4509
- F.Ta;else if(F.fj!=null)W=F.fj;F.innerHTML="";ea=z.pp(E,W);F.appendChild(ea);if(M=="genie"&&pui.U.config.wN&&pui.zn(ea)&&ea.type!="password")ea.onfocus=function(){if(pui.U.config.wN&&ea.createTextRange!=null){var Pa=ea.createTextRange();Pa&&Pa.execCommand("OverWrite",false,false);pui.U.config.wN=false}};Bg(z);var Ca=f(I,L,F,E,ea);if(E.type=="errmessages"&&(a||z.designer.selection.e.length<=1)){Q=function(Pa){z.bb.Bk="Message";z.bb.designer=z.designer;z.bb.Ca=function($a){ea.value=$a.length+" message";
4510
+ F.Ta;else if(F.fj!=null)W=F.fj;F.innerHTML="";ea=z.pp(E,W);F.appendChild(ea);if(M=="genie"&&pui.U.config.wN&&pui.zn(ea)&&ea.type!="password")ea.onfocus=function(){if(pui.U.config.wN&&ea.createTextRange!=null){var Pa=ea.createTextRange();Pa&&Pa.execCommand("OverWrite",false,false);pui.U.config.wN=false}};Cg(z);var Ca=f(I,L,F,E,ea);if(E.type=="errmessages"&&(a||z.designer.selection.e.length<=1)){Q=function(Pa){z.bb.Bk="Message";z.bb.designer=z.designer;z.bb.Ca=function($a){ea.value=$a.length+" message";
4510
4511
  if($a.length!=1)ea.value+="s";if($a.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function($a){if(pui.viewdesigner){if($a[0].value==""){pui.alert("Message Text is required.");$a[0].focus();return false}}else{if($a[0].value==""&&$a[1].value==""){pui.alert("Message Text or Message Id is required.");$a[0].focus();return false}if($a[0].value!=""&&$a[1].value!=""){pui.alert("Message Text and Message Id are mutually exclusive. You may not select them both.");$a[0].focus();return false}if($a[1].value!=""&&$a[2].value==
4511
4512
  ""){pui.alert("Message File must be specified.");$a[2].focus();return false}if($a[1].value==""&&$a[2].value!=""){pui.alert("Message Id must be specified when Message File is used.");$a[1].focus();return false}if($a[2].value==""&&$a[3].value!=""){pui.alert("Message File must be specified when Library is used.");$a[1].focus();return false}if($a[1].value==""&&$a[4].value!=""){pui.alert("Message Id must be specified when Replacement Data is used.");$a[1].focus();return false}}};z.bb.Bb("Error Messages");
4512
- for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++){var Ia=Oa[E.Ac[Qa]];if(!pui.viewdesigner||Ia.viewdesigner!=false)Ta.push(Ia)}z.bb.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="translationplaceholders"&&(a||z.designer.selection.e.length<=1)){Q=function(Pa){z.Vh.Bk="placeholder";z.Vh.designer=z.designer;z.Vh.Ca=function($a){ea.value=$a.length+" placeholder";if($a.length!=1)ea.value+=
4513
+ for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++){var Ia=Oa[E.Ac[Qa]];if(!pui.viewdesigner||Ia.viewdesigner!=false)Ta.push(Ia)}z.bb.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="translationplaceholders"&&(a||z.designer.selection.e.length<=1)){Q=function(Pa){z.Vh.Bk="placeholder";z.Vh.designer=z.designer;z.Vh.Ca=function($a){ea.value=$a.length+" placeholder";if($a.length!=1)ea.value+=
4513
4514
  "s";if($a.length==0)ea.value="";e(I,L,F,E)};z.Vh.Ek=function($a){if($a[0].value==""){pui.alert("Placeholder key is required.");$a[0].focus();return false}if($a[1].value==""){pui.alert("Placeholder value is required.");$a[0].focus();return false}};if(z.designer.selection.e.length===1)if(z.designer.selection.e[0].b.dom.grid){var Oa=Yc(pui.Yh.si());z.Vh.Bb("Grid Row Translation Placeholders")}else{Oa=Rc();z.Vh.Bb("Translation Placeholders")}else{Oa=Yc(Xc());z.Vh.Bb("Translation Placeholders")}for(var Ta=
4514
- [],Qa=0;Qa<E.Ac.length;Qa++){var Ia=Oa[E.Ac[Qa]];if(!pui.viewdesigner||Ia.viewdesigner!=false)Ta.push(Ia)}z.Vh.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Vh.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="helptitles"&&z.designer.selection.e.length<=1){Q=function(Pa){z.Fl.Bk="Help Title";z.Fl.designer=z.designer;z.Fl.Ca=function(Ia){ea.value=Ia.length+" help title";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,
4515
- F,E)};z.Fl.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Help Title is a required field.");Ia[0].focus();return false}};z.Fl.Bb("Help Titles");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.Fl.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Fl.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="helppanels"&&z.designer.selection.e.length<=1){Q=function(Pa){z.Dl.Bk="Help Panel";z.Dl.designer=z.designer;z.Dl.Ca=
4515
+ [],Qa=0;Qa<E.Ac.length;Qa++){var Ia=Oa[E.Ac[Qa]];if(!pui.viewdesigner||Ia.viewdesigner!=false)Ta.push(Ia)}z.Vh.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Vh.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="helptitles"&&z.designer.selection.e.length<=1){Q=function(Pa){z.Fl.Bk="Help Title";z.Fl.designer=z.designer;z.Fl.Ca=function(Ia){ea.value=Ia.length+" help title";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,
4516
+ F,E)};z.Fl.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Help Title is a required field.");Ia[0].focus();return false}};z.Fl.Bb("Help Titles");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.Fl.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Fl.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="helppanels"&&z.designer.selection.e.length<=1){Q=function(Pa){z.Dl.Bk="Help Panel";z.Dl.designer=z.designer;z.Dl.Ca=
4516
4517
  function(Ia){ea.value=Ia.length+" help panel";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.Dl.Ek=function(Ia){if(Ia[0].value==""&&Ia[2].value==""){pui.alert("You must specify either a Help Record or a Help Panel Group.");Ia[0].focus();return false}if(Ia[0].value!=""&&Ia[2].value!=""){pui.alert("You cannot specify both a Help Record and a Help Panel Group.");Ia[0].focus();return false}};z.Dl.Bb("Help Panels");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);
4517
- z.Dl.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Dl.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="messages"&&z.designer.selection.e.length<=1){Q=function(Pa){z.bb.Bk="Message";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" message";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E);g(Ia,z.designer.selection.e)};z.bb.Ek=qa();z.bb.Bb("Messages");for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);
4518
- z.bb.load(Ta,z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="destinationparams"&&z.designer.selection.e.length==1){Q=function(Pa){z.bb.Bk="Destination Parameter";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" parameter";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Parameter Name is required.");Ia[0].focus();return false}if(Ia[1].value==
4519
- ""){pui.alert("Parameter Value is required.");Ia[0].focus();return false}};z.bb.Bb("Destination Parameters");for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.selection.e[0].b.properties);z.bb.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="eraseformats"){Q=function(Pa){z.bb.Bk="Format";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" format";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""&&
4520
- Ia[1].value==""){pui.alert("Record format name is required.");Ia[0].focus();return false}Ia=U.validateName(Ia[0].value,"format");if(Ia!=""){Ia="Record format name "+Ia;pui.alert(Ia);return false}};z.bb.Bb("Erase Formats");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Dg(z,F,Q)}if(E.type=="inputfields"){Q=function(Pa){z.bb.Bk="Input Parameter";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" parameter";
4521
- if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Parameter Name is required.");Ia[0].focus();return false}if(Ia[1].value==""){pui.alert("Bound Field is required.");Ia[0].focus();return false}};z.bb.Bb("Input Parameters");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Dg(z,F,Q)}if(ea.readOnly)if(Ca)setTimeout(function(){try{Ca.focus()}catch(Pa){}},
4522
- 200);else Ga&&setTimeout(function(){try{Ga.focus()}catch(Pa){}},200);else setTimeout(function(){try{ea.focus()}catch(Pa){}},200);Bg(z);Eg(z,F,E);z.Ue=I;z.ya=E;z.nx=W;y.innerHTML=Fg(z,E)}}function f(I,L,F,E,O){function W(ha){O.value=ha;e(I,L,F,E,ba)}var Q,V,ba;if(!(F.Ma!=null||F.kf!=null||F.Ta!=null)){switch(E.type){case "color":ba="Select";Q=function(ha){z.xf.dv=W;z.xf.gw(O.value);z.xf.show(ha)};Q=Dg(z,F,Q);break;case "long":case "js":V=function(ha){if(ha&&E.name=="custom sql"&&E.Ay){ha=ha.replace(/\r\n/g,
4523
- " ");try{E.selection.e[0].b.dom.grid.RN(E.name,ha)}catch(ga){console.log(ga)}}W(ha);O.focus()};Q=function(ha){z.Qe.Ca=V;Gg(z.Qe);z.Qe.Bb('<span class="title">Edit '+$c(L)+(E.type=="js"?" event":"")+"</span>");z.Qe.setValue(O.value);var ga="text";if(E.type=="js")ga="javascript";if(E.name=="custom sql"&&E.Ay)ga="sql";z.Qe.setMode(ga);z.Qe.show(ha)};Q=Dg(z,F,Q);if(E.type=="js"||E.Pm==true)Q.classList.add("long");break;case "responsive":if(M=="dspf"){var ca,ea;V=function(ha,ga,aa){ba="Set";W(ha);if(z.designer.selection.e.length==
4524
- 1){ha=z.designer.selection.e[0].b;ca!=ga&&Ag(ha.dom.ra,ha,ga);aa!=ea&&ha.dom.ra.Et(ha,"container names",aa,"Change container names")}};Q=function(){var ha;ca=1;if(z.Mb["layout items"]&&z.Mb["layout items"].jo!=null){ca=parseInt(z.Mb["layout items"].jo.innerText,10);if(isNaN(ca))ca=1}ea="";if(z.Mb["container names"]&&z.Mb["container names"].jo!=null){ea=z.Mb["container names"].jo.innerText;ha=z.Mb["container names"].jo.innerText}var ga=null;if(z.designer.selection.e.length==1)ga=z.designer.selection.e[0].b.dom.children[0].children;
4525
- z.rO.show(ca,O.value,ha,ga,V)};Q=Dg(z,F,Q)}break;case "cssClass":V=function(ha){if(E.name.indexOf("css class")!=-1)O.value=ha;e(I,L,F,E)};Q=function(ha){if(pui.Ke!=true){z.Ye.sg=V;z.Ye.mY=function(ga){if(!a)for(var aa=z.ya.selection.e,fa=0;fa<aa.length;fa++){var sa=aa[fa].b;if(sa.properties["field type"]=="graphic button"||sa.properties["field type"]=="icon")if(!sa.Iv){sa.Iv={};for(var la in sa.properties)sa.Iv[la]=sa.properties[la]}ad(z.ya,sa.properties,sa.dom,ga,false,sa,E.selection.e[fa]);if(sa.dom.pui&&
4518
+ z.Dl.load(Ta,a?a.properties:z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.Dl.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="messages"&&z.designer.selection.e.length<=1){Q=function(Pa){z.bb.Bk="Message";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" message";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E);g(Ia,z.designer.selection.e)};z.bb.Ek=qa();z.bb.Bb("Messages");for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);
4519
+ z.bb.load(Ta,z.designer.selection.e.length>0?z.designer.selection.e[0].b.properties:z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="destinationparams"&&z.designer.selection.e.length==1){Q=function(Pa){z.bb.Bk="Destination Parameter";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" parameter";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Parameter Name is required.");Ia[0].focus();return false}if(Ia[1].value==
4520
+ ""){pui.alert("Parameter Value is required.");Ia[0].focus();return false}};z.bb.Bb("Destination Parameters");for(var Oa=Rc(),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.selection.e[0].b.properties);z.bb.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="eraseformats"){Q=function(Pa){z.bb.Bk="Format";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" format";if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""&&
4521
+ Ia[1].value==""){pui.alert("Record format name is required.");Ia[0].focus();return false}Ia=U.validateName(Ia[0].value,"format");if(Ia!=""){Ia="Record format name "+Ia;pui.alert(Ia);return false}};z.bb.Bb("Erase Formats");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Eg(z,F,Q)}if(E.type=="inputfields"){Q=function(Pa){z.bb.Bk="Input Parameter";z.bb.designer=z.designer;z.bb.Ca=function(Ia){ea.value=Ia.length+" parameter";
4522
+ if(Ia.length!=1)ea.value+="s";if(Ia.length==0)ea.value="";e(I,L,F,E)};z.bb.Ek=function(Ia){if(Ia[0].value==""){pui.alert("Parameter Name is required.");Ia[0].focus();return false}if(Ia[1].value==""){pui.alert("Bound Field is required.");Ia[0].focus();return false}};z.bb.Bb("Input Parameters");for(var Oa=Yc(Xc()),Ta=[],Qa=0;Qa<E.Ac.length;Qa++)Ta.push(Oa[E.Ac[Qa]]);z.bb.load(Ta,z.designer.ja[z.designer.j.n]);z.bb.show(Pa)};Ca=Eg(z,F,Q)}if(ea.readOnly)if(Ca)setTimeout(function(){try{Ca.focus()}catch(Pa){}},
4523
+ 200);else Ga&&setTimeout(function(){try{Ga.focus()}catch(Pa){}},200);else setTimeout(function(){try{ea.focus()}catch(Pa){}},200);Cg(z);Fg(z,F,E);z.Ue=I;z.ya=E;z.nx=W;y.innerHTML=Gg(z,E)}}function f(I,L,F,E,O){function W(ha){O.value=ha;e(I,L,F,E,ba)}var Q,V,ba;if(!(F.Ma!=null||F.kf!=null||F.Ta!=null)){switch(E.type){case "color":ba="Select";Q=function(ha){z.xf.dv=W;z.xf.gw(O.value);z.xf.show(ha)};Q=Eg(z,F,Q);break;case "long":case "js":V=function(ha){if(ha&&E.name=="custom sql"&&E.Ay){ha=ha.replace(/\r\n/g,
4524
+ " ");try{E.selection.e[0].b.dom.grid.RN(E.name,ha)}catch(ga){console.log(ga)}}W(ha);O.focus()};Q=function(ha){z.Qe.Ca=V;Hg(z.Qe);z.Qe.Bb('<span class="title">Edit '+$c(L)+(E.type=="js"?" event":"")+"</span>");z.Qe.setValue(O.value);var ga="text";if(E.type=="js")ga="javascript";if(E.name=="custom sql"&&E.Ay)ga="sql";z.Qe.setMode(ga);z.Qe.show(ha)};Q=Eg(z,F,Q);if(E.type=="js"||E.Pm==true)Q.classList.add("long");break;case "responsive":if(M=="dspf"){var ca,ea;V=function(ha,ga,aa){ba="Set";W(ha);if(z.designer.selection.e.length==
4525
+ 1){ha=z.designer.selection.e[0].b;ca!=ga&&Bg(ha.dom.ra,ha,ga);aa!=ea&&ha.dom.ra.Et(ha,"container names",aa,"Change container names")}};Q=function(){var ha;ca=1;if(z.Mb["layout items"]&&z.Mb["layout items"].jo!=null){ca=parseInt(z.Mb["layout items"].jo.innerText,10);if(isNaN(ca))ca=1}ea="";if(z.Mb["container names"]&&z.Mb["container names"].jo!=null){ea=z.Mb["container names"].jo.innerText;ha=z.Mb["container names"].jo.innerText}var ga=null;if(z.designer.selection.e.length==1)ga=z.designer.selection.e[0].b.dom.children[0].children;
4526
+ z.rO.show(ca,O.value,ha,ga,V)};Q=Eg(z,F,Q)}break;case "cssClass":V=function(ha){if(E.name.indexOf("css class")!=-1)O.value=ha;e(I,L,F,E)};Q=function(ha){if(pui.Ke!=true){z.Ye.sg=V;z.Ye.mY=function(ga){if(!a)for(var aa=z.ya.selection.e,fa=0;fa<aa.length;fa++){var sa=aa[fa].b;if(sa.properties["field type"]=="graphic button"||sa.properties["field type"]=="icon")if(!sa.Iv){sa.Iv={};for(var la in sa.properties)sa.Iv[la]=sa.properties[la]}ad(z.ya,sa.properties,sa.dom,ga,false,sa,E.selection.e[fa]);if(sa.dom.pui&&
4526
4527
  sa.dom.pui.widget)ud(sa.dom.pui.widget);else sa.dom.ra&&sa.dom.ra.render()}};z.Ye.MJ=function(){if(!a)for(var ga=E.selection.e,aa=0;aa<ga.length;aa++){var fa=ga[aa].b,sa=fa.properties[E.name];if(fa.properties["field type"]=="graphic button"||fa.properties["field type"]=="icon")if(fa.Iv){sa=fa.Iv[E.name];fa.Iv=null}ad(E,fa.properties,fa.dom,sa,false,fa,E.selection.e[aa]);if(fa.dom.pui&&fa.dom.pui.widget)ud(fa.dom.pui.widget);else fa.dom.ra&&fa.dom.ra.render()}};z.Ye.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select '+
4527
- $c(L)+"</span>");z.Ye.show(ha,null,null)}};z.Ye.z1=function(ha){if(E.name==="css class")O.value=ha;e(I,L,F,E)};Q=Dg(z,F,Q);break;case "list":Q=function(ha){z.Hp.Ca=W;z.Hp.Bs(O.value);z.Hp.Bb('<span style="font-weight:bold; text-transform:capitalize;">Edit '+$c(L)+"</span>");z.Hp.show(ha)};Q=Dg(z,F,Q);break;case "icon":V=function(ha){O.value=ha;e(I,L,F,E)};Q=function(ha){if(pui.Ke!=true){var ga=E.selection.e[0].b.properties["field type"]=="css button";z.Zj.sg=V;z.Zj.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select '+
4528
- $c(L)+"</span>");z.Zj.show(ha,null,null,ga)}};Q=Dg(z,F,Q);break;case "field":ba="Select";if(z.gc.eh.length>=1){Q=function(ha){if(pui.Ke!=true){z.rl.Ca=W;z.rl.nz=E.multiple==true;z.rl.$x=null;if(E.name=="database fields"&&E.Ay)try{var ga=E.selection.e[0].b.dom.grid;z.rl.$x=ga.RN.bind(ga,"database fields")}catch(aa){console.log(aa)}ga=z.gc.eh[0].file;if(z.gc.eh.length>1)ga=z.gc.eh.length+" files";z.rl.Bb('<span style="title">Select '+$c(L)+" from "+ga+"</span>");z.rl.show(ha,z.gc,O.value)}};Q=Dg(z,
4529
- F,Q)}break;case "image":case "cssfile":case "jsfile":V=function(ha){if((pui.isCloud||pui.pjsWorkspace)&&(ha.substr(0,1)==="/"||ha.substr(0,1)==="\\"))ha=ha.substr(1);W(E.name=="background image"?"url('"+ha+"')":ha)};Q=function(ha){if(pui.Ke!=true){z.em.sg=V;z.em.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select '+$c(L)+"</span>");z.em.type=E.type;z.em.show(ha)}};Q=Dg(z,F,Q);break;case "file":if(M=="dspf"){Q=function(ha){pui.Ke!=true&&pui.ide.dbTablesDialog(ha,z.gc.ta,O.value,W)};
4530
- Q=Dg(z,F,Q)}break;case "join":if(M=="dspf")if(z.gc.eh.length>=2){V=function(ha){e(I,L,F,E);if(ha!=null){F.fj=ha;O.value="";ba="Set"}else{F.fj=null;F.innerHTML="";O=z.pp(E,"");F.appendChild(O);ba="Remove"}e(null,null,null,E,ba)};Q=function(ha){z.Ty.Ca=V;z.Ty.show(ha,z.gc,F.fj)};Q=Dg(z,F,Q)}break}return Q}}function g(I,L){for(var F=false,E=0;E<L.length;E++)if(pui.h(L[E].b.properties.value))F=true;if(F){F=null;for(E=0;E<I.length;E++){for(var O=false,W=0;W<I[E].length;W++)if(pui.h(I[E][W])){O=true;break}if(!O){F=
4528
+ $c(L)+"</span>");z.Ye.show(ha,null,null)}};z.Ye.z1=function(ha){if(E.name==="css class")O.value=ha;e(I,L,F,E)};Q=Eg(z,F,Q);break;case "list":Q=function(ha){z.Hp.Ca=W;z.Hp.Bs(O.value);z.Hp.Bb('<span style="font-weight:bold; text-transform:capitalize;">Edit '+$c(L)+"</span>");z.Hp.show(ha)};Q=Eg(z,F,Q);break;case "icon":V=function(ha){O.value=ha;e(I,L,F,E)};Q=function(ha){if(pui.Ke!=true){var ga=E.selection.e[0].b.properties["field type"]=="css button";z.Zj.sg=V;z.Zj.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select '+
4529
+ $c(L)+"</span>");z.Zj.show(ha,null,null,ga)}};Q=Eg(z,F,Q);break;case "field":ba="Select";if(z.gc.eh.length>=1){Q=function(ha){if(pui.Ke!=true){z.rl.Ca=W;z.rl.nz=E.multiple==true;z.rl.$x=null;if(E.name=="database fields"&&E.Ay)try{var ga=E.selection.e[0].b.dom.grid;z.rl.$x=ga.RN.bind(ga,"database fields")}catch(aa){console.log(aa)}ga=z.gc.eh[0].file;if(z.gc.eh.length>1)ga=z.gc.eh.length+" files";z.rl.Bb('<span style="title">Select '+$c(L)+" from "+ga+"</span>");z.rl.show(ha,z.gc,O.value)}};Q=Eg(z,
4530
+ F,Q)}break;case "image":case "cssfile":case "jsfile":V=function(ha){if((pui.isCloud||pui.pjsWorkspace)&&(ha.substr(0,1)==="/"||ha.substr(0,1)==="\\"))ha=ha.substr(1);W(E.name=="background image"?"url('"+ha+"')":ha)};Q=function(ha){if(pui.Ke!=true){z.em.sg=V;z.em.Bb('<span style="font-weight:bold; text-transform:capitalize;">Select '+$c(L)+"</span>");z.em.type=E.type;z.em.show(ha)}};Q=Eg(z,F,Q);break;case "file":if(M=="dspf"){Q=function(ha){pui.Ke!=true&&pui.ide.dbTablesDialog(ha,z.gc.ta,O.value,W)};
4531
+ Q=Eg(z,F,Q)}break;case "join":if(M=="dspf")if(z.gc.eh.length>=2){V=function(ha){e(I,L,F,E);if(ha!=null){F.fj=ha;O.value="";ba="Set"}else{F.fj=null;F.innerHTML="";O=z.pp(E,"");F.appendChild(O);ba="Remove"}e(null,null,null,E,ba)};Q=function(ha){z.Ty.Ca=V;z.Ty.show(ha,z.gc,F.fj)};Q=Eg(z,F,Q)}break}return Q}}function g(I,L){for(var F=false,E=0;E<L.length;E++)if(pui.h(L[E].b.properties.value))F=true;if(F){F=null;for(E=0;E<I.length;E++){for(var O=false,W=0;W<I[E].length;W++)if(pui.h(I[E][W])){O=true;break}if(!O){F=
4531
4532
  E;break}}if(F==null){O=Rc().value;for(E=0;E<L.length;E++){W=L[E].b;if(pui.h(W.properties.value)){W.properties.value.designValue="["+W.properties.value.fieldName+"]";ad(O,W.properties,W.dom,W.properties.value,true,W,L[E])}}}if(F!=null){var Q=dc(I[F][4].toUpperCase()),V=dc(I[F][3].toUpperCase()),ba=dc(I[F][1].toUpperCase()),ca=dc(I[F][2].toUpperCase());if(Q=="")Q="*LIBL";xc({url:jc("PUI0001118.PGM",null,false),params:{msgPrefix1:ba,msgId1:ca,msgFile1:V,msgLibrary1:Q},method:"post",async:true,handler:function(ea){if(ea.success){var ha=
4532
4533
  Rc().value,ga=Q+"/"+V+"/"+ba+ca,aa="["+ba+ca+"]";if(ea.messages!=null&&ea.messages[ga]!=null&&ea.messages[ga].text!=null)aa=ea.messages[ga].text;for(ea=0;ea<L.length;ea++){ga=L[ea].b;if(pui.h(ga.properties.value)){var fa=ga.properties.value;ga.properties.value.designValue=aa;ad(ha,ga.properties,ga.dom,fa,true,ga,L[ea])}}}else pui.alert(ea.step+": "+ea.error)}})}}}function h(I,L){var F=1,E=I.length;for(var O in L)if(L[O]!=null&&L[O]!=""&&O.substr(0,E)==I){var W=O.split(" ");if(W.length>1&&!isNaN(W[W.length-
4533
4534
  1])){W=parseInt(W[W.length-1]);if(W>F)F=W}}return F}if(a){a=JSON.parse(JSON.stringify(a));for(var m in a.properties)if(pui.h(a.properties[m])&&a.properties[m].longName)pui.designer.fb=true}this.Zr=this.nx=this.ya=this.Ue=null;this.xf=new pui.designer.KH;this.Qe=new pui.designer.xB;this.em=new pui.designer.rB;this.Hp=new pui.designer.uq;if(pui.UNIVERSAL==null){this.Zj=new pui.designer.kQ;this.Ye=new pui.designer.aQ}this.Vh=this.Dl=this.Fl=this.bb=this.Na=null;if(M=="dspf"){this.Na=new pui.designer.$P(a);
@@ -4536,34 +4537,34 @@ n=document.createElement("div"),i=document.createElement("div"),o=document.creat
4536
4537
  H=pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/plus.png":"/profoundui/proddata/images/icons/minus.gif",J=false;this.Mb={};this.gc=new pui.designer.Gw;this.gC=e;this.AS=function(I,L,F,E,O){a||z.designer.Il();if(z.pb==null){z.pb=new pui.designer.so;z.pb.init()}z.pb.Gh="context";z.pb.handler=function(ca){var ea;switch(ca.split(" ")[0]){case "Add":for(var ha=-1,ga=L;ga!=null;){ha++;ga=ga.previousSibling}ca=O;if(O.es!=null)ca=O.es;ga=L;for(var aa=false,fa=1;!aa;){var sa=$c(ga.firstChild);
4537
4538
  if(ga.firstChild&&ga.firstChild.ox)sa=ga.firstChild.ox;if(sa.substr(0,ca.name.length)==ca.name){sa=sa.split(" ");sa=Number(sa[sa.length-1]);if(isNaN(sa)||sa<=0)sa=1;if(sa>fa)fa=sa;ha++}else aa=true;ga=ga.nextSibling;if(ga==null)aa=true}ha=w.insertRow(ha);fa=" "+String(fa+1);ga=ca.name+fa;aa={name:ga,value:"",type:O.type,choices:O.choices,Pa:false,multOccur:true,readOnly:O.readOnly,help:O.help,bind:O.bind,wf:O.wf,context:O.context,format:O.format,selection:O.selection,es:ca,uppercase:O.uppercase};
4538
4539
  if(ca.displayName)aa.displayName=ca.displayName+fa;z.Mb[ga]={config:aa};z.px(aa,true,ha);break;case "Remove":!a&&E.Ma!=null&&E.Ma.fieldName!=null&&z.designer.selection.Cv(O.name,z.designer,E.Ma.fieldName);ca=null;if(!a&&E.Ta!=null&&E.Ta.routine!=null&&pui.wf.G)ca={name:E.Ta.routine,property:O.name,b:z.designer.selection.e.length===0?z.designer:z.designer.selection.e[0].b,QX:true};e(L,F,E,O);E.Ma=null;E.kf=null;E.Ta=null;delete E.fj;E.innerHTML="";ea=z.pp(O,"");E.appendChild(ea);e(null,null,null,O,
4539
- "Remove");ca&&pui.wf.G.fh(ca);if(q.value=="Set")L.style.display="none";if(O.multOccur){z.YY(L,O);z.refresh()}break;case "Bind":e(L,F,E,O);F.Vo.onclick(I);break;case "Translation":e(L,F,E,O);F.lq.onclick(I);break;case "Build":e(L,F,E,O);F.qm.onclick(I);break;case "Refresh":z.refresh();break;case "Open":ca=$c(E.firstChild);e(L,F,E,O);if(E.Ma!=null)ca=E.Ma;else if(E.kf!=null)ca=E.kf;else if(E.Ta!=null)ca=E.U1;E.innerHTML="";ea=z.pp(O,ca,true);E.innerHTML="";E.appendChild(ea);Bg(z);f(L,F,E,O,ea);Eg(z,
4540
- E,O);z.Qe.Ca=function(la){ea.value=la;e(L,F,E,O);ea.focus()};Gg(z.Qe);z.Qe.Bb('<span class="title">Edit '+$c(F)+(O.type=="js"?" event":"")+"</span>");z.Qe.setValue(ca);ca="text";if(O.type=="js")ca="javascript";if(O.name=="custom sql")ca="sql";z.Qe.setMode(ca);z.Qe.show(I);break}};var W=[],Q=[];if(O.multOccur==true){var V=O.es;V=(V!=null?V.displayName?V.displayName:V.name:O.displayName?O.displayName:O.name).split(" ");for(var ba=0;ba<V.length;ba++){V[ba]=V[ba].substr(0,1).toUpperCase()+V[ba].substr(1);
4540
+ "Remove");ca&&pui.wf.G.fh(ca);if(q.value=="Set")L.style.display="none";if(O.multOccur){z.YY(L,O);z.refresh()}break;case "Bind":e(L,F,E,O);F.Vo.onclick(I);break;case "Translation":e(L,F,E,O);F.lq.onclick(I);break;case "Build":e(L,F,E,O);F.qm.onclick(I);break;case "Refresh":z.refresh();break;case "Open":ca=$c(E.firstChild);e(L,F,E,O);if(E.Ma!=null)ca=E.Ma;else if(E.kf!=null)ca=E.kf;else if(E.Ta!=null)ca=E.U1;E.innerHTML="";ea=z.pp(O,ca,true);E.innerHTML="";E.appendChild(ea);Cg(z);f(L,F,E,O,ea);Fg(z,
4541
+ E,O);z.Qe.Ca=function(la){ea.value=la;e(L,F,E,O);ea.focus()};Hg(z.Qe);z.Qe.Bb('<span class="title">Edit '+$c(F)+(O.type=="js"?" event":"")+"</span>");z.Qe.setValue(ca);ca="text";if(O.type=="js")ca="javascript";if(O.name=="custom sql")ca="sql";z.Qe.setMode(ca);z.Qe.show(I);break}};var W=[],Q=[];if(O.multOccur==true){var V=O.es;V=(V!=null?V.displayName?V.displayName:V.name:O.displayName?O.displayName:O.name).split(" ");for(var ba=0;ba<V.length;ba++){V[ba]=V[ba].substr(0,1).toUpperCase()+V[ba].substr(1);
4541
4542
  if(V[ba]=="Css")V[ba]="CSS";if(V[ba]=="Javascript")V[ba]="JavaScript";if(V[ba]=="Data")V[ba]="Value"}W.push("Add Another "+V.join(" "));Q.push("add")}if(F.className.indexOf("changed")>=0&&O.rb!=false&&(a||z.designer.selection.e.length<=1)){W.push("Remove Property Value");Q.push("remove")}if(M=="dspf"&&E.kf==null&&E.Ta==null&&O.bind==null&&O.type!="js"||O.bind==true){W.push("Bind to Program Field...");Q.push("bind")}if(M=="dspf"&&pui.langs.length>0&&O.translate&&E.Ma==null&&E.Ta==null&&(a||z.designer.selection.e.length==
4542
- 0||z.designer.selection.e.length==1)){W.push("Translation Settings...");Q.push("globe")}if(M=="dspf"&&E.kf==null&&E.Ma==null&&E.Ta==null&&O.wf&&pui.wf.G){W.push("Build Logic...");Q.push("gears")}if(E.Ma==null&&E.kf==null&&E.Ta==null&&O.type!="join")if(!O.readOnly){if((V=O.choices!=null)&&O.choices[O.choices.length-1]=="Other...")V=false;if(!V){W.push("Open in Editor...");Q.push("code")}}Bg(z);Eg(z,E,O);W.push("Refresh Properties");Q.push("refresh");z.pb.He=W;z.pb.Ql=Q;z.pb.clickEvent=I;z.pb.vv();
4543
- L.classList.add("rclicksel");z.pb.te=function(){L.classList.remove("rclicksel")};z.pb.show()};k.className="propwin";k.style.width=z.width+"px";if(b==null){k.classList.add("floating");k.style.top=If.get("properties_top","150px");k.style.left=If.get("properties_left","500px")}k.style.zIndex=U.d0;n.innerHTML="Properties";n.className="pheader";C.className="colbtn";C.title="collapse";C.onclick=function(){if(u.style.display=="none"){u.style.display="";i.style.display="";y.style.display="";v.style.display=
4544
- "";C.title="collapse";If.set("properties_collapsed","no")}else{u.style.display="none";i.style.display="none";y.style.display="none";v.style.display="none";C.title="expand";If.set("properties_collapsed","yes")}If.save()};(new Image).src="/profoundui/proddata/images/icons/expand.gif";M=="genie"&&If.get("properties_collapsed","no")=="yes"&&C.onclick();i.className="propfind";o.setAttribute("placeholder","Find Property");o.onfocus=function(){z.ya!=null&&e(null,null,null,z.ya);o.className="active";l.style.display=
4543
+ 0||z.designer.selection.e.length==1)){W.push("Translation Settings...");Q.push("globe")}if(M=="dspf"&&E.kf==null&&E.Ma==null&&E.Ta==null&&O.wf&&pui.wf.G){W.push("Build Logic...");Q.push("gears")}if(E.Ma==null&&E.kf==null&&E.Ta==null&&O.type!="join")if(!O.readOnly){if((V=O.choices!=null)&&O.choices[O.choices.length-1]=="Other...")V=false;if(!V){W.push("Open in Editor...");Q.push("code")}}Cg(z);Fg(z,E,O);W.push("Refresh Properties");Q.push("refresh");z.pb.He=W;z.pb.Ql=Q;z.pb.clickEvent=I;z.pb.vv();
4544
+ L.classList.add("rclicksel");z.pb.te=function(){L.classList.remove("rclicksel")};z.pb.show()};k.className="propwin";k.style.width=z.width+"px";if(b==null){k.classList.add("floating");k.style.top=Jf.get("properties_top","150px");k.style.left=Jf.get("properties_left","500px")}k.style.zIndex=U.d0;n.innerHTML="Properties";n.className="pheader";C.className="colbtn";C.title="collapse";C.onclick=function(){if(u.style.display=="none"){u.style.display="";i.style.display="";y.style.display="";v.style.display=
4545
+ "";C.title="collapse";Jf.set("properties_collapsed","no")}else{u.style.display="none";i.style.display="none";y.style.display="none";v.style.display="none";C.title="expand";Jf.set("properties_collapsed","yes")}Jf.save()};(new Image).src="/profoundui/proddata/images/icons/expand.gif";M=="genie"&&Jf.get("properties_collapsed","no")=="yes"&&C.onclick();i.className="propfind";o.setAttribute("placeholder","Find Property");o.onfocus=function(){z.ya!=null&&e(null,null,null,z.ya);o.className="active";l.style.display=
4545
4546
  "";if(M=="dspf"&&!pui.nodedesigner&&pui.designer.Hr&&location.pathname.indexOf("universal")==-1){y.innerHTML='<div class="compat"><b>Hint:</b><br/>Compatibility properties are hidden by default. To show them, look under Home &gt; Settings &gt; Compatibility, and uncheck &quot;'+pui.getLanguageText("runtimeText","settings dds compat")+"&quot;.</div>";setTimeout(function(){y.firstChild.style.opacity="1"},1)}};o.onblur=function(){if(o.value==""){o.className="";l.style.display="none"}};o.onkeydown=function(I){if(!I)I=
4546
4547
  window.event;var L=I.keyCode;if(L==37||L==38||L==39||L==40||L==46){if(window.event)window.event.cancelBubble=true;if(I.preventDefault)I.cancelBubble=true}};o.onkeyup=function(){var I=o.value,L=false;if(I.length>=1&&I.substr(0,1)=="+"){I=I.substr(1);L=true}I=dc(I);I=I.toLowerCase();for(var F=q.value=="Set",E,O=0;O<w.rows.length;O++){var W=w.rows[O];if(I==""&&!F)if(W.cells.length<2){E=W.firstChild.children[0].status=="-";W.style.display=""}else W.style.display=E?"":"none";else if(W.cells.length<2&&
4547
4548
  !L)W.style.display="none";else if(F&&W.cells.length>=2&&W.cells[0].className.indexOf("changed")<0)W.style.display="none";else{if(!L)W.style.display=W.firstChild.innerHTML.indexOf(I)>=0?"":"none";if(L&&W.cells.length<2)if($c(W.firstChild).toLowerCase().indexOf(I)>=0){W.style.display="";E=W.firstChild.children[0].status=="-"}else{W.style.display="none";E=false}if(L&&W.cells.length>=2)W.style.display=E?"":"none"}}};i.appendChild(o);q.type="button";q.value="All";q.title="Showing All Properties";q.onclick=
4548
4549
  function(){if(q.value=="Set"){q.value="All";q.title="Showing All Properties"}else{q.value="Set";q.title="Showing Set Properties Only"}o.onkeyup()};i.appendChild(document.createTextNode(" "));i.appendChild(q);l.src="/profoundui/proddata/images/close-button.gif";l.className="clear";M=="dspf"&&l.classList.add("dspf");if(M=="genie"){l.classList.add("genie");pui.is_quirksmode&&l.classList.add("quirks")}l.style.display="none";l.onclick=function(){o.blur();o.value="";o.className="";l.style.display="none";
4549
4550
  o.onkeyup()};i.appendChild(l);u.className="pbody";u.style.height=s-t+"px";w.cellSpacing=0;w.cellPadding=2;w.addEventListener("keydown",this);y.style.height=t+"px";y.innerHTML="";y.className="helppnl";v.className="pui-vresizer";if(M=="genie")B.className="pui-vresizer";if(b==null){k.appendChild(n);k.appendChild(C)}k.appendChild(i);u.appendChild(w);k.appendChild(u);k.appendChild(v);k.appendChild(y);M=="genie"&&k.appendChild(B);this.aC=new pui.xq({wc:v,Un:u,resize:2,Dn:50,Nl:s});this.aC.Jp=function(I){y.style.height=
4550
- I.Nl-I.height+"px"};if(M=="genie"){var N=this.aC;new pui.xq({wc:B,Un:y,resize:2,Dn:0,Nl:500,Jp:function(I){N.Nl=u.offsetHeight+I.height}})}b==null?document.body.appendChild(k):b.appendChild(k);(new pui.ed({wc:n,move:k,opacity:85},{left:-300})).Ps=function(){If.set("properties_top",k.style.top);If.set("properties_left",k.style.left);If.save()};pui.designer.Hr=M=="dspf"&&localStorage[pui.designer.fM]!=="false";this.YG=function(){q.value=="Set"&&q.onclick()};this.cw=function(I){if(M=="dspf")Ext.getCmp("ideProps").setTitle(I);
4551
+ I.Nl-I.height+"px"};if(M=="genie"){var N=this.aC;new pui.xq({wc:B,Un:y,resize:2,Dn:0,Nl:500,Jp:function(I){N.Nl=u.offsetHeight+I.height}})}b==null?document.body.appendChild(k):b.appendChild(k);(new pui.ed({wc:n,move:k,opacity:85},{left:-300})).Ps=function(){Jf.set("properties_top",k.style.top);Jf.set("properties_left",k.style.left);Jf.save()};pui.designer.Hr=M=="dspf"&&localStorage[pui.designer.fM]!=="false";this.YG=function(){q.value=="Set"&&q.onclick()};this.cw=function(I){if(M=="dspf")Ext.getCmp("ideProps").setTitle(I);
4551
4552
  else n.innerHTML=I};this.hide=function(){k.style.display="none"};this.show=function(){k.style.display=""};this.tZ=function(I){l.style.display="";o.className="active";o.value=I;o.onkeyup()};this.setWidth=function(I){k.style.width=I+"px";var L=I-57;if(L<40)L=40;o.style.width=L+"px";if(z.width!=I){z.width=I;z.refresh()}};this.setHeight=function(I){s=I-30;t=100;if(s<250)t=50;if(s<100)t=0;I=s-t;if(I<0)I=0;u.style.height=I+"px";y.style.height=t+"px";this.aC.Nl=s-v.offsetHeight-25};this.refresh=function(){if(z.wK)z.bO=
4552
4553
  true;else{var I=o.value,L=false;if(I.length>=1&&I.substr(0,1)=="+"){I=I.substr(1);L=true}I=dc(I);I=I.toLowerCase();z.xf.hide();z.Hp.hide();z.Zj&&z.Zj.hide();z.Ye&&z.Ye.hide();z.Na!=null&&z.Na.hide();z.bb!=null&&z.bb.hide();z.Vh!=null&&z.Vh.hide();z.lm!=null&&z.lm.hide();z.rl.hide();var F=z.Zr,E={},O={},W={};z.clear();if(a){for(var Q in a.properties){E[Q]=a.properties[Q];O[Q]=true}W[E["field type"]]=true;if(E["field type"]=="layout"){var V=E.template;if(typeof V==="string"&&V.length>0)F=z.Zr=pui.layout.DL(V)}else if(E["field type"]==
4553
4554
  "grid")F=z.Zr=pui.Yh.si()}else{var ba=z.designer.selection;if(ba==null)return;if(ba.e.length==1&&ba.e[0].b.dom.Sp!=null)F=ba.e[0].b.dom.Sp;if(ba.e.length<=0){F=Xc(z.designer.j);E=z.designer.ja[z.designer.j.n];O=z.designer.he[z.designer.j.n]}else{var ca=ba.e[0].b.properties;Q=ba.e[0].b.p;for(V in ca){E[V]=ca[V];O[V]=Q[V]}for(V in E)for(var ea=1;ea<ba.e.length;ea++){ca=ba.e[ea].b.p;if(ba.e[ea].b.properties[V]!=E[V])E[V]=null;if(ca[V]==true)O[V]=true}}ca=true;if(M!="genie")ca=false;for(ea=0;ea<ba.e.length;ea++){Q=
4554
4555
  ba.e[ea].b;V=Q.properties["field type"];if(M=="genie"){if(Q.properties.newitem=="true")ca=false;if(Q.properties["field type"]!="output field"&&Q.properties["field type"]!="hyperlink"&&Q.properties["field type"]!="button")Q.properties["field type"]=="textbox"&&Q.properties["css class"]!=null&&Q.properties["css class"].indexOf("readOnly")!=-1||(ca=false);if(Q.originalValue==null||dc(Q.originalValue)=="")ca=false}W[V]=true}}z.Mb={};for(V=0;V<F.length;V++){Q=F[V];Q.value=E[Q.name]!=null?E[Q.name]:"";
4555
- Q.Pa=O[Q.name];if(Q.context==null||Q.context==M||Q.context=="genie-nohandler"&&M=="genie"&&!pui.jb)z.Mb[Q.name]={config:Q};if(Q.multOccur==true){ea=h(Q.name,E);for(var ha=2;ha<=ea;ha++){var ga=" "+ha,aa=Q.name+ga,fa={name:aa,value:E[aa],type:Q.type,choices:Q.choices,Pa:true,multOccur:true,readOnly:Q.readOnly,help:Q.help,bind:Q.bind,wf:Q.wf,context:Q.context,format:Q.format,selection:ba,es:Q,uppercase:Q.uppercase};if(Q.displayName)fa.displayName=Q.displayName+ga;z.Mb[aa]={config:fa}}}}Bg(z);O=true;
4556
+ Q.Pa=O[Q.name];if(Q.context==null||Q.context==M||Q.context=="genie-nohandler"&&M=="genie"&&!pui.jb)z.Mb[Q.name]={config:Q};if(Q.multOccur==true){ea=h(Q.name,E);for(var ha=2;ha<=ea;ha++){var ga=" "+ha,aa=Q.name+ga,fa={name:aa,value:E[aa],type:Q.type,choices:Q.choices,Pa:true,multOccur:true,readOnly:Q.readOnly,help:Q.help,bind:Q.bind,wf:Q.wf,context:Q.context,format:Q.format,selection:ba,es:Q,uppercase:Q.uppercase};if(Q.displayName)fa.displayName=Q.displayName+ga;z.Mb[aa]={config:fa}}}}Cg(z);O=true;
4556
4557
  for(V=0;V<F.length;V++){Q=F[V];ea=M=="genie"&&pui.jb&&E["field type"]!=null&&E["field type"]=="grid";ha=false;if(Q.hide!=true)if(!Q.iA||pui.secLevel>=Q.iA)if(Q.context==null||Q.context==M||Q.context=="genie-nohandler"&&M=="genie"&&!pui.jb||ea&&pui.BV.e1(Q))if(Q.controls!=null){ha=true;for(var sa in W){ga=false;for(ea=0;ea<Q.controls.length;ea++)if(Q.controls[ea]==sa){ga=true;break}if(!ga){ha=false;break}}}else ha=true;if(Q.name=="screen identifier"&&!ca)ha=false;if(Q.value==""&&Q.Fb&&(pui.isCloud||
4557
- pui.designer.Hr))ha=false;if(Q.viewdesigner===false&&pui.viewdesigner)ha=false;if(Q.viewdesigner===true&&!pui.viewdesigner)ha=false;if(Q.nodedesigner===false&&pui.nodedesigner)ha=false;if(Q.nodedesigner===true&&!pui.nodedesigner)ha=false;if(a&&Q.name=="id")ha=false;if(Q.wf&&Q.bind===false&&Q.readOnly&&!pui.wf.G)ha=false;if(ha){if(Q.category){O=c(Q.name);O=If.get(O,"-")=="-"}Q.selection=ba;z.px(Q,O);if(Q.category&&O&&L&&Q.name.toLowerCase().indexOf(I)<0)O=false;if(Q.multOccur==true){ea=h(Q.name,E);
4558
+ pui.designer.Hr))ha=false;if(Q.viewdesigner===false&&pui.viewdesigner)ha=false;if(Q.viewdesigner===true&&!pui.viewdesigner)ha=false;if(Q.nodedesigner===false&&pui.nodedesigner)ha=false;if(Q.nodedesigner===true&&!pui.nodedesigner)ha=false;if(a&&Q.name=="id")ha=false;if(Q.wf&&Q.bind===false&&Q.readOnly&&!pui.wf.G)ha=false;if(ha){if(Q.category){O=c(Q.name);O=Jf.get(O,"-")=="-"}Q.selection=ba;z.px(Q,O);if(Q.category&&O&&L&&Q.name.toLowerCase().indexOf(I)<0)O=false;if(Q.multOccur==true){ea=h(Q.name,E);
4558
4559
  for(ha=2;ha<=ea;ha++){ga=" "+ha;aa=Q.name+ga;z.px(z.Mb[aa].config,O)}}}}if(ba&&ba.e.length<=0)z.cw((pui.Aa?"Format":"Screen")+" Properties - "+z.designer.j.name);else if(a||ba.e.length==1){V=a?a.properties["field type"]:ba.e[0].b.properties["field type"];I=pui.Aa?"Field":pui.widgets[V].menuName;if(typeof I!="string"){L=V.split(" ");I="";for(V=0;V<L.length;V++){F=L[V];F=F.charAt(0).toUpperCase()+F.substr(1);if(I!="")I+=" ";I+=F}}if(I.substr(0,7)=="Styled ")I=I.substr(7);if(!a)var la=ba.e[0].b.properties.id;
4559
4560
  if(pui.Aa){ba=ba.e[0].b.properties["bound field"];la=ba.fieldName;if(ba.longName!=null)la=ba.longName}z.cw(I+" Properties - "+la)}else z.cw("Properties - "+ba.e.length+" items")}};this.zC=function(){z.ya!=null&&e(null,null,null,z.ya)};this.clear=function(){for(z.Mb={};w.rows.length>0;){var I=w.rows.length-1,L=w.rows[I].cells;if(L.length>=2){L=L[1].firstChild;if(L!=null&&L.onblur!=null)L.onblur=null}w.deleteRow(I)}z.Ue=null;z.ya=null;y.innerHTML="";o.blur();if(!z.eH||o.value==""){o.value="";o.className=
4560
4561
  "";l.style.display="none"}};this.px=function(I,L,F){var E=o.value,O=false;if(E.length>=1&&E.substr(0,1)=="+"){E=E.substr(1);O=true}E=dc(E);E=E.toLowerCase();var W=q.value=="Set";if(F==null)F=w.insertRow(w.rows.length);var Q=F.insertCell(0);w.firstChild==null&&F.classList.add("nofchld");if(M=="dspf")Q.onselectstart=z.hZ;var V=I.name;if(I.displayName){V=I.displayName;Q.ox=I.name}if(I.category){pui.flatlook&&Q.classList.add("flat");var ba;if(z.PK){ba=document.createElement("img");ba.src=L?H:K}else{ba=
4561
4562
  document.createElement("span");ba.innerHTML=L?"-":"+"}ba.status=L?"-":"+";ba.className="expnd";Q.appendChild(document.createTextNode(" "));Q.appendChild(ba);F.onclick=function(){d(null,ba)};F.classList.add("category");if(z.eH)if(O){if(I.name.toLowerCase().indexOf(E)<0)F.style.display="none"}else if(E!=""||W)F.style.display="none"}else{if(z.eH&&(E!=""||W)){if(!O&&V.indexOf(E)<0||O&&!L)F.style.display="none";if(W&&I.Pa!=true)F.style.display="none"}else if(!L)F.style.display="none";I.Pa==true&&Q.classList.add("changed")}Q.appendChild(document.createTextNode(V));
4562
- var ca;if(I.category){Q.colSpan=2;Q.style.width=z.width+"px"}else{Q.style.width="175px";ca=F.insertCell(1);if(pui.h(I.value))ca.Ma=I.value;else if(pui.Va(I.value))ca.kf=I.value;else if(pui.xb(I.value))ca.Ta=I.value;else if(pui.Ep(I.value))ca.fj=I.value;Cg(z,ca,I.value,I.name);L=z.width-175;if(L<40)L=40;ca.style.width=L+"px";F.addEventListener("mousedown",z)}L=I.name;F.Rp=L;if(z.Mb[L]!=null){z.Mb[L].jo=ca;z.Mb[L].config.selection=I.selection}};this.RS=function(I,L,F){I=Yc(I)[L];var E=L;if(F>2)E+=" "+
4563
+ var ca;if(I.category){Q.colSpan=2;Q.style.width=z.width+"px"}else{Q.style.width="175px";ca=F.insertCell(1);if(pui.h(I.value))ca.Ma=I.value;else if(pui.Va(I.value))ca.kf=I.value;else if(pui.xb(I.value))ca.Ta=I.value;else if(pui.Ep(I.value))ca.fj=I.value;Dg(z,ca,I.value,I.name);L=z.width-175;if(L<40)L=40;ca.style.width=L+"px";F.addEventListener("mousedown",z)}L=I.name;F.Rp=L;if(z.Mb[L]!=null){z.Mb[L].jo=ca;z.Mb[L].config.selection=I.selection}};this.RS=function(I,L,F){I=Yc(I)[L];var E=L;if(F>2)E+=" "+
4563
4564
  (F-1);for(var O=0;O<w.rows.length;O++){var W=w.rows[O];if(W.cells.length==2){W=W.cells[0];if(W.ox===E||$c(W)==E){E=w.insertRow(O+1);L=L+" "+F;F={name:L,value:"",type:I.type,choices:I.choices,Pa:false,multOccur:true,readOnly:I.readOnly,help:I.help,bind:I.bind,wf:I.wf,context:I.context,format:I.format,selection:z.designer.selection,es:I};z.Mb[L]={config:F};z.px(F,true,E);break}}}};this.ve=function(I,L,F,E,O){if(o.value!=""){o.blur();o.value="";o.className="";o.onkeyup();l.style.display="none"}for(var W=
4564
4565
  null,Q=0;Q<w.rows.length;Q++){var V=w.rows[Q];if(V.cells.length==1)W=V.firstChild.firstChild;if(V.cells.length==2){var ba=V.cells[0];if(ba.ox===I||$c(ba)==I){V.style.display=="none"&&W!=null&&d(null,W);if(V.style.display!="none"){W=V.cells[1];L=L!=null?Yc(L):Rc();if(z.designer.selection.e.length===1){Q=z.designer.selection.e[0].b;if(Q.dom.grid)L=Yc(pui.Yh.si());if(Q.dom.layout)L=Q.dom.Jf}Q=L[I];if(!Q){var ca=I.split(" "),ea=Number(ca[ca.length-1]);if(!isNaN(ea)&&ea>=2){ca.pop();Q=Object.assign({},
4565
4566
  L[ca.join(" ")]);Q.name=I}}Q.selection=z.designer.selection;e(V,ba,W,Q);if(F==true&&M=="dspf"){var ha;if(ba.Vo)ha=ba.Vo.onclick;else if(ba.lq)ha=ba.lq.onclick;else if(ba.qm)ha=ba.qm.onclick;ha(E)}if(O==true&&M=="dspf"){if(ba.qm)ha=ba.qm.onclick;ha(E)}}return}}}};this.nV=function(){u.style.display=="none"&&C.onclick()};this.Ck=function(I,L,F){if(L==null)L="";if(!(z.Mb[I]==null||z.Mb[I].jo==null)){var E=z.Mb[I].jo,O=E.previousSibling,W=E.parentNode,Q=o.value,V=false;if(Q.length>=1&&Q.substr(0,1)=="+"){Q=
4566
- Q.substr(1);V=true}Q=dc(Q);Q=Q.toLowerCase();var ba=q.value=="Set";if(z.ya!=null&&z.ya.name==I){if(E.firstChild!=null&&(E.firstChild.tagName=="INPUT"||E.firstChild.tagName=="SELECT"||E.firstChild.tagName=="TEXTAREA"))E.firstChild.value=L;e(null,null,null,z.ya)}if(pui.h(L))E.Ma=L;else if(pui.Va(L))E.kf=L;else if(pui.xb(L))E.Ta=L;else if(pui.Ep(L))E.fj=L;else{E.Ma=null;E.kf=null;E.Ta=null;delete E.fj}E.innerHTML="";Cg(z,E,L,I);if(F==true){O.classList.add("changed");if(ba&&W.style.display=="none"){if(Q==
4567
+ Q.substr(1);V=true}Q=dc(Q);Q=Q.toLowerCase();var ba=q.value=="Set";if(z.ya!=null&&z.ya.name==I){if(E.firstChild!=null&&(E.firstChild.tagName=="INPUT"||E.firstChild.tagName=="SELECT"||E.firstChild.tagName=="TEXTAREA"))E.firstChild.value=L;e(null,null,null,z.ya)}if(pui.h(L))E.Ma=L;else if(pui.Va(L))E.kf=L;else if(pui.xb(L))E.Ta=L;else if(pui.Ep(L))E.fj=L;else{E.Ma=null;E.kf=null;E.Ta=null;delete E.fj}E.innerHTML="";Dg(z,E,L,I);if(F==true){O.classList.add("changed");if(ba&&W.style.display=="none"){if(Q==
4567
4568
  "")W.style.display="";if(!V&&Q!=""&&O.innerHTML.indexOf(Q)>=0)W.style.display="";if(V&&Q!=""&&W.style.display=="none"){for(I=W.previousSibling;I.cells.length>=2;)I=I.previousSibling;if($c(I.firstChild).toLowerCase().indexOf(Q)>=0)W.style.display=""}}}else{O.classList.remove("changed");if(ba)W.style.display="none"}z.designer.sb();M==="dspf"&&pui.ide.refreshRibbon()}};this.Da=function(I){var L=z.designer.selection,F,E,O={};E={};if(L.e.length<=0){O=z.designer.ja[z.designer.j.n];F=O[I];E=O[I]}else{O=
4568
4569
  L.e[0].b.properties;E=L.e[0].b.p;F=O[I];E=E[I];for(var W=1;W<L.e.length;W++){var Q=L.e[W].b.p;if(L.e[W].b.properties[I]!=O[I]){F="";if(E)break}if(Q[I]==true)E=true}if(E&&(I=="left"||I=="top"||I=="right"||I=="bottom"))L.Iz()}z.Ck(I,F,E)};this.pp=function(I,L,F){var E,O=false;if((F=I.choices!=null&&!pui.h(L)&&!pui.Va(L)&&!pui.xb(L)&&I.type!="join"&&F!=true)&&L!=null&&L!="")if(pui.gd(I.choices,"Other...")!=-1&&pui.gd(I.choices,L)==-1)F=false;if(F){E=document.createElement("select");E.style.backgroundColor=
4569
4570
  "#f0ffff";if(I.Yi==null||I.Yi==true)E.options[0]=new Option("","");if(L=="")O=true;var W=I.choices;W=typeof I.choices=="function"?I.choices():I.choices;for(F=0;F<W.length;F++){var Q=W[F],V=new Option(Q,Q);if(Q!="Other..."&&Q!=""&&Q!="normal")try{switch(I.name){case "font family":V.style.fontFamily=Q;break;case "font size":V.style.fontSize=Q;break;case "font style":V.style.fontStyle=Q;break;case "font variant":V.style.fontVariant=Q;break;case "font weight":V.style.fontWeight=Q;break;case "text decoration":V.style.textDecoration=
@@ -4575,15 +4576,15 @@ I.type=="join")O=true;if(I.readOnly==true)O=true;if(I.name=="id"){if(z.designer.
4575
4576
  if(pui.designer.fb&&L.longName!=null)E.value=L.longName}else if(pui.Va(L)){E.className="transl";E.value=L.designValue}else if(pui.xb(L)){E.className="wf";E.value=L.designValue}else if(pui.Ep(L)){E.className="join";E.value=L.designValue}}if(I.name=="parent window"){E.readOnly=true;E.style.backgroundColor="#ffffff";E.style.border="0px solid #ffffff"}return E};this.YY=function(I,L){function F(ha){return ha<=1?E.name:E.name+" "+ha}var E=L.es;if(E==null)E=L;var O=$c(I.firstChild),W=O.split(" ");W=Number(W[W.length-
4576
4577
  1]);if(isNaN(W)||W<2)W=1;O=W;var Q,V,ba;if(a)Q=a.properties;else{ba=L.selection.e;if(ba.length==1){Q=ba[0].b.properties;V=ba[0].b.p;for(ba=ba[0].b;Q[F(O)]!=null;){z.designer.s.add(ba,F(O));O++}}else if(ba.length==0){Q=z.designer.ja[z.designer.j.n];V=z.designer.he[z.designer.j.n];ba="Screen";Q[F(W+1)]!=null&&z.designer.s.clear()}else return}for(;Q[F(W+1)]!=null;){W++;var ca=F(W-1);O=F(W);if(M==="dspf"&&!a)if(pui.h(Q[O])){z.designer.L.fh({property:O,fieldName:Q[O].fieldName,b:ba});var ea=JSON.parse(JSON.stringify(Q[O]));
4577
4578
  ea.property=ca;ea.b=ba;z.designer.L.ce(ea,z.designer)}else if(pui.wf.G&&pui.xb(Q[O])){ea=pui.wf.G.getData(Q[O]);pui.wf.G.fh({property:O,name:Q[O].routine,b:ba});pui.wf.G.update({property:ca,name:Q[O].routine,data:ea,b:ba,designer:z.designer})}Q[ca]=Q[O];delete Q[O];if(V){V[ca]=V[O];V[O]=false}}};this.destroy=function(){k.parentNode.removeChild(k);k=null;nc(z.gc);nc(z)};this.vE=function(){if(a)return JSON.parse(JSON.stringify(a.properties))}};pui.designer.vm.prototype=Object.create(pui.cd.prototype);
4578
- function Cg(b,a,c,d){var e,f;if(pui.h(c)){f=c.fieldName;if(pui.designer.fb&&c.longName!=null)f=c.longName;e="bound"}else if(pui.Va(c)){f=c.designValue;e="transl"}else if(pui.xb(c)){f=c.designValue;e="wf"}else if(pui.Ep(c)){f=c.designValue;e="join"}else f=String(c);c=document.createElement("div");var g=b.width-180;if(g<35)g=35;c.style.width=g+"px";if(e)c.className=e;e=f.replace(/ /g,"\u00a0");c.appendChild(document.createTextNode(e));c.sv=f;a.innerHTML="";a.appendChild(c);if(d)if((a=b.Mb[d]?b.Mb[d].config:
4579
- null)&&a.type=="file"&&b.gc.total>1)if(b=b.gc.Ir[d]?b.gc.Ir[d].Ij:null){d=document.createElement("abbr");d.className="tablealias";d.innerHTML="(Alias: "+b+")";d.setAttribute("title","The alias is automatically chosen when multiple table properties are set.");c.appendChild(d)}}function Dg(b,a,c){b=document.createElement("input");b.type="button";b.value=" ... ";b.className="ellipses";b.onclick=c;a.appendChild(document.createTextNode(" "));a.appendChild(b);return b}
4580
- function Bg(b){var a,c=/^(([^\/\s]+)\/)?([^\/\s]+)( +AS)?( +(\S+))?/i;b.gc.init();for(var d in b.Mb){var e=b.Mb[d].config,f=b.Mb[d].jo;a=e.value;if(f&&f.firstChild)if(f.firstChild.sv!=null)a=f.firstChild.sv;else if(f.firstChild.firstChild&&f.firstChild.firstChild.sv!=null)a=f.firstChild.firstChild.sv;if(a!=null&&typeof e.name=="string")if(pui.nodedesigner&&e.type=="database_connection"&&f&&!f.Ma&&typeof a=="string")b.gc.ta=dc(a);else if(e.type=="file")if(typeof a=="string"){a=pui.jc(dc(a));a=c.exec(a);
4579
+ function Dg(b,a,c,d){var e,f;if(pui.h(c)){f=c.fieldName;if(pui.designer.fb&&c.longName!=null)f=c.longName;e="bound"}else if(pui.Va(c)){f=c.designValue;e="transl"}else if(pui.xb(c)){f=c.designValue;e="wf"}else if(pui.Ep(c)){f=c.designValue;e="join"}else f=String(c);c=document.createElement("div");var g=b.width-180;if(g<35)g=35;c.style.width=g+"px";if(e)c.className=e;e=f.replace(/ /g,"\u00a0");c.appendChild(document.createTextNode(e));c.sv=f;a.innerHTML="";a.appendChild(c);if(d)if((a=b.Mb[d]?b.Mb[d].config:
4580
+ null)&&a.type=="file"&&b.gc.total>1)if(b=b.gc.Ir[d]?b.gc.Ir[d].Ij:null){d=document.createElement("abbr");d.className="tablealias";d.innerHTML="(Alias: "+b+")";d.setAttribute("title","The alias is automatically chosen when multiple table properties are set.");c.appendChild(d)}}function Eg(b,a,c){b=document.createElement("input");b.type="button";b.value=" ... ";b.className="ellipses";b.onclick=c;a.appendChild(document.createTextNode(" "));a.appendChild(b);return b}
4581
+ function Cg(b){var a,c=/^(([^\/\s]+)\/)?([^\/\s]+)( +AS)?( +(\S+))?/i;b.gc.init();for(var d in b.Mb){var e=b.Mb[d].config,f=b.Mb[d].jo;a=e.value;if(f&&f.firstChild)if(f.firstChild.sv!=null)a=f.firstChild.sv;else if(f.firstChild.firstChild&&f.firstChild.firstChild.sv!=null)a=f.firstChild.firstChild.sv;if(a!=null&&typeof e.name=="string")if(pui.nodedesigner&&e.type=="database_connection"&&f&&!f.Ma&&typeof a=="string")b.gc.ta=dc(a);else if(e.type=="file")if(typeof a=="string"){a=pui.jc(dc(a));a=c.exec(a);
4581
4582
  if(a!=null){var g=a[3];if(g!=null&&g.length>0){a={file:g,library:a[2]!=null?a[2]:"",ob:e.name,Ij:a[6]};f&&f.Ma!=null?b.gc.Bx.push(a):b.gc.eh.push(a);b.gc.total+=1;b.gc.Ir[e.name]=a}}}else if(a.fieldName){a={file:a.fieldName,library:"",ob:e.name};b.gc.Bx.push(a);b.gc.Ir[e.name]=a;b.gc.total+=1}}if(b.gc.total>1){c=/^.*database (file|table) ?(\d*)$/;e="T1";for(d in b.gc.Ir){a=b.gc.Ir[d];if((f=c.exec(a.ob))&&f[2]&&f[2].length>0)e="T"+f[2];a.Ij=e}}}
4582
4583
  pui.designer.vm.prototype.handleEvent=function(b){switch(b.type){case "mousedown":var a=Fb(b);if(a.tagName!="INPUT"&&a.tagName!="SELECT"&&a.tagName!="OPTION"&&a.tagName!="TEXTAREA"){for(;a!=null&&a.tagName!="TR";)a=a.parentNode;if(a!=null&&a.Rp){var c=this.Mb[a.Rp]?this.Mb[a.Rp].config:null;if(c){var d=a.children[0],e=a.children[1];this.gC(a,d,e,c);if(pui.bf(b)){this.gC(null,null,null,this.ya);this.AS(b,a,d,e,c);U.va(b);b.stopPropagation&&b.stopPropagation()}}}}break;case "keydown":if(b.key=="Tab"){if(b.shiftKey)for(a=
4583
4584
  this.Ue.previousSibling;a!=null&&(a.cells.length<2||a.style.display=="none");)a=a.previousSibling;else for(a=this.Ue.nextSibling;a!=null&&(a.cells.length<2||a.style.display=="none");)a=a.nextSibling;if(a!=null&&a.Rp){c=this.Mb[a.Rp]?this.Mb[a.Rp].config:null;this.gC(a,a.children[0],a.children[1],c);b.preventDefault();b.stopPropagation()}}break}};
4584
- function Eg(b,a,c){var d=true,e=false,f="file";if(pui.nodedesigner)f="table";if(a.Ma==null&&a.kf==null&&a.Ta==null)switch(c.type){case "field":if(b.gc.total<1)d="Choose at least one "+f+" to enable the Fields dialog.";else if(b.gc.eh.length<1)d="Manually specify field names when the "+f+" property is bound.";e=true;break;case "join":if(b.gc.Bx.length>0)d="Joins cannot be set on any "+f+" properties that are bound.";else if(b.gc.eh.length<2)d="Choose at least two "+f+"s to enable the Join Editor dialog.";
4585
+ function Fg(b,a,c){var d=true,e=false,f="file";if(pui.nodedesigner)f="table";if(a.Ma==null&&a.kf==null&&a.Ta==null)switch(c.type){case "field":if(b.gc.total<1)d="Choose at least one "+f+" to enable the Fields dialog.";else if(b.gc.eh.length<1)d="Manually specify field names when the "+f+" property is bound.";e=true;break;case "join":if(b.gc.Bx.length>0)d="Joins cannot be set on any "+f+" properties that are bound.";else if(b.gc.eh.length<2)d="Choose at least two "+f+"s to enable the Join Editor dialog.";
4585
4586
  if(a.children.length>0&&a.children[0].value=="")a.children[0].style.display="none";break}if(typeof d=="string"){b=document.createElement("span");b.className="warnicon";c=new Image(16,16);c.src="/profoundui/proddata/images/icons/warning.png";b.appendChild(c);a.appendChild(b);e&&a.appendChild(document.createElement("br"));b=document.createElement("span");b.className="prereqfail";b.innerHTML=d;a.appendChild(b)}}
4586
- function Fg(b,a){var c=a.a,d=a.help,e=a.Q,f=a.Sd,g='<h3 class="propname">'+(a.displayName?a.displayName:a.name)+"</h3>";if(typeof d!=="string"||d.length<=0)return g;g+='<div class="section"><b title="The default value(s) of this property.">Default Value:</b> ';g+='<code class="propdefault">';switch(c){case "true":g+='<span title="The default value of the property is true.">true</span>';break;case "blank":g+='<span title="The default value of the property is unset or not defined.">[blank]</span>';
4587
+ function Gg(b,a){var c=a.a,d=a.help,e=a.Q,f=a.Sd,g='<h3 class="propname">'+(a.displayName?a.displayName:a.name)+"</h3>";if(typeof d!=="string"||d.length<=0)return g;g+='<div class="section"><b title="The default value(s) of this property.">Default Value:</b> ';g+='<code class="propdefault">';switch(c){case "true":g+='<span title="The default value of the property is true.">true</span>';break;case "blank":g+='<span title="The default value of the property is unset or not defined.">[blank]</span>';
4587
4588
  break;case "css":g+='<span title="The default value is the value defined in the CSS &#010;(theme/developer CSS classes defined in a CSS&#010;file or &quot;style&quot; DOM attribute) for the element.">CSS value</span>';break;case "false":g+='<span title="The default value of the property is false.">false</span>';break;case "placeholder":g+='<span title="The default value of the property is placeholder &#010;text, such as &quot;Lorem Ipsum...&quot; or &quot;HTML Content&quot;.">placeholder text</span>';
4588
4589
  break;case "browser":g+='<span title="The default is determined by the browser for the element.">browser setting</span>';break;case "theme":g+='<span title="The default value of this property is based on the selected widget and its theme/template/purpose.">selected widget</span>';break;case "skin":g+='<span title="The default value of this property is determined by &#010;the selected skin and its defaults, CSS, and/or JavaScript customizations.">selected skin</span>';break;case "id":g+='[<span title="The default ID is based on the name of the selected &#010;widget with no spaces and the first letter of each word capitalized.">WidgetName</span>][<span title="A whole number value starting from 1 determined by how many of the same widget have previously been added to the Design grid.">number</span>]';
4589
4590
  break;case "bind":g+='<span title="This property requires being bound and a value passed to or from your program.">[bound value]</span>';break;case "widget":g+='<span title="The default value of this property is determined by the selected widget.">selected widget</span>';break;case "position":g+='<span title="The default values are determined by where the &#010;widget is dropped/placed on the Designer grid.">user drop point</span>';break;default:g+=c;break}g+="</code>";g+='</div><div class="section"><b title="A general description of the widget&apos;s properties.">Description: </b>';
@@ -4732,38 +4733,38 @@ f.focus();return}}if(i.value!=""&&i.value!="*SRC"){if(!pui.nodedesigner||H=="IBM
4732
4733
  y.style.position="absolute";y.style.left="220px";y.style.top=180+z+"px";y.style.width="75px";y.style.fontFamily="Arial";y.style.fontSize="11px";y.type="button";y.value="Cancel";y.onclick=function(){C.Kn!=null&&C.Kn();C.hide()};U.Ea(f,"keydown",b);U.Ea(i,"keydown",b);U.Ea(s,"keydown",b);U.Ea(q,"keydown",b);U.Ea(u,"keydown",b);e.appendChild(g);e.appendChild(f);e.appendChild(h);if(pui.nodedesigner){e.appendChild(k);e.appendChild(m)}e.appendChild(o);e.appendChild(i);e.appendChild(l);e.appendChild(q);
4733
4734
  e.appendChild(t);e.appendChild(s);e.appendChild(v);e.appendChild(u);e.appendChild(w);e.appendChild(y);c.appendChild(d);c.appendChild(e);document.body.appendChild(c);new pui.ed({wc:d,move:c,opacity:85});pui.nodedesigner&&m.onchange();this.RZ=function(H){var J=H.ref;J=dc(J);J=U.aG(J);if(J.jk){var N=J.jk.split("'");N=N.join("")}f.value=J.field;i.value=J.file;q.value=N;s.value=J.$y;u.value=J.Yx;a();if(pui.nodedesigner){if(typeof n[H.ta]==="undefined"){N=document.createElement("option");N.value=H.ta;N.appendChild(document.createTextNode(H.ta));
4734
4735
  m.appendChild(N);n[H.ta]=""}m.value=H.ta;m.onchange()}};this.show=function(H){var J=document.body.offsetWidth;if(J==null)J=1E4;J-=325;if(J<0)J=0;var N=U.getX(H);N-=295;H=U.getY(H);H-=30;if(H<0)H=0;if(N>J)N=J;c.style.left=N+"px";c.style.top=H+"px";c.style.visibility="visible";c.style.display="";f.focus()};this.hide=function(){c.style.visibility="hidden";c.style.display="none"};this.isHidden=function(){return c.style.visibility=="hidden"}};pui.designer.Hk=function(b){this.Ca=null;this.Zb=b;this.di=null;this.Ed={left:0,top:0,right:800,bottom:600};this.H=document.createElement("div");this.Do=document.createElement("div");this.lh=document.createElement("div");this.H.className="dsgnr-dialog";this.Do.className="header";this.lh.className="body";if(this.Zb.width)this.H.style.width=this.Zb.width+"px";if(this.Zb.height)this.H.style.height=this.Zb.height+"px";if(this.Zb.zIndex)this.H.style.zIndex=this.Zb.zIndex;this.Zb.className&&this.H.classList.add(this.Zb.className);
4735
- if(this.Zb.resizable){this.cC=document.createElement("div");this.cC.className="resizer-br";this.lh.appendChild(this.cC);b={wc:this.cC,Un:this.H};b.Yr=this.Zb.minWidth==null?250:this.Zb.minWidth;b.Dn=this.Zb.minHeight==null?150:this.Zb.minHeight;b.resize=this.Zb.dZ==null?3:this.Zb.dZ;if(typeof this.hx=="function"){this.ER=this.hx.bind(this);b.Jp=this.ER}new pui.xq(b)}this.vI=this.hide.bind(this);if(M=="dspf")Hg(this);else if(this.Zb.title)this.Do.innerHTML=this.Zb.title;if(this.Zb.modal!=true&&this.Zb.Nx==
4736
+ if(this.Zb.resizable){this.cC=document.createElement("div");this.cC.className="resizer-br";this.lh.appendChild(this.cC);b={wc:this.cC,Un:this.H};b.Yr=this.Zb.minWidth==null?250:this.Zb.minWidth;b.Dn=this.Zb.minHeight==null?150:this.Zb.minHeight;b.resize=this.Zb.dZ==null?3:this.Zb.dZ;if(typeof this.hx=="function"){this.ER=this.hx.bind(this);b.Jp=this.ER}new pui.xq(b)}this.vI=this.hide.bind(this);if(M=="dspf")Ig(this);else if(this.Zb.title)this.Do.innerHTML=this.Zb.title;if(this.Zb.modal!=true&&this.Zb.Nx==
4736
4737
  null)this.Zb.Nx=true;if(this.Zb.Nx)this.uI=this.SR.bind(this);this.H.appendChild(this.Do);this.H.appendChild(this.lh);document.body.appendChild(this.H);new pui.ed({wc:this.Do,move:this.H,opacity:85},this.Ed)};pui.designer.Hk.prototype=Object.create(pui.cd.prototype);Ba=pui.designer.Hk.prototype;
4737
4738
  Ba.show=function(b){var a=document.body.offsetWidth,c=document.body.offsetHeight;if(M=="genie"){c=pui.getWindowSize();a=c.width;c=c.height;c+=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}this.Ed.right=a;this.Ed.bottom=c;if(a==null)a=1E4;if(c==null)c=1E4;a=a-this.H.offsetWidth-20;c=c-this.H.offsetHeight-11;if(a<0)a=0;if(c<0)c=0;var d=pui.qi(b);b=d.x;d=d.y-this.H.offsetHeight/2;if(M=="dspf"&&d>c)d=c;if(d<0)d=0;if(b>a)b=a;this.H.style.left=b+"px";this.H.style.top=
4738
4739
  d+"px";this.H.style.visibility="visible";if(this.Zb.modal&&this.Lo==null){this.Lo=document.createElement("div");this.Lo.className="dsgnr-dialog-mask";this.Lo.style.display="";document.body.appendChild(this.Lo)}this.Zb.Nx&&document.addEventListener("mousedown",this.uI)};Ba.hide=function(){this.H.style.visibility="hidden";this.Ca=this.di=null;if(this.Zb.modal&&this.Lo){document.body.removeChild(this.Lo);delete this.Lo}this.Zb.Nx&&document.removeEventListener("mousedown",this.uI)};
4739
4740
  Ba.SR=function(b){for(b=b.target;b!=null;){if(b==this.H)return;b=b.parentNode}this.hide()};Ba.isHidden=function(){return window.getComputedStyle(this.H).visibility=="hidden"};Ba.Bb=function(b){if(this.ax!=null)this.ax.innerHTML=b;else this.Do.innerHTML=b};
4740
- function Hg(b){b.H.classList.add(pui.flatlook?"flat":"orig");var a=document.createElement("div");a.className="closeBtn";var c=document.createElement("div");c.className="closeImg";if(pui.flatlook){a.onmousedown=function(){c.classList.add("mdown")};a.onmouseup=function(){c.classList.remove("mdown")}}a.addEventListener("click",b.vI);a.appendChild(c);b.ax=document.createElement("span");b.ax.innerHTML=b.Zb.title;b.Do.appendChild(b.ax);b.Do.appendChild(a)}
4741
- Ba.Sk=function(){typeof this.Ca=="function"&&this.Ca(this.di);this.hide()};function Ig(b,a){b.Qk=document.createElement("input");b.et=document.createElement("input");b.FR=b.Sk.bind(b);b.Qk.type="button";b.Qk.value="OK";b.Qk.className="ok ctrl"+(a?" "+a:"");b.Qk.addEventListener("click",b.FR);b.et.className="cancel ctrl"+(a?" "+a:"");b.et.type="button";b.et.value="Cancel";b.et.addEventListener("click",b.vI);b.lh.appendChild(b.Qk);b.lh.appendChild(b.et)}
4741
+ function Ig(b){b.H.classList.add(pui.flatlook?"flat":"orig");var a=document.createElement("div");a.className="closeBtn";var c=document.createElement("div");c.className="closeImg";if(pui.flatlook){a.onmousedown=function(){c.classList.add("mdown")};a.onmouseup=function(){c.classList.remove("mdown")}}a.addEventListener("click",b.vI);a.appendChild(c);b.ax=document.createElement("span");b.ax.innerHTML=b.Zb.title;b.Do.appendChild(b.ax);b.Do.appendChild(a)}
4742
+ Ba.Sk=function(){typeof this.Ca=="function"&&this.Ca(this.di);this.hide()};function Jg(b,a){b.Qk=document.createElement("input");b.et=document.createElement("input");b.FR=b.Sk.bind(b);b.Qk.type="button";b.Qk.value="OK";b.Qk.className="ok ctrl"+(a?" "+a:"");b.Qk.addEventListener("click",b.FR);b.et.className="cancel ctrl"+(a?" "+a:"");b.et.type="button";b.et.value="Cancel";b.et.addEventListener("click",b.vI);b.lh.appendChild(b.Qk);b.lh.appendChild(b.et)}
4742
4743
  Ba.destroy=function(){document.body.removeChild(this.H);nc(this)};pui.designer.Zh=function(b){pui.designer.Hk.call(this,b);this.mh=[];this.it=this.tI=0;this.xI=this.iS.bind(this)};pui.designer.Zh.prototype=Object.create(pui.designer.Hk.prototype);
4743
- pui.designer.Zh.prototype.show=function(b,a){this.mh=[];for(var c=this.it=0,d=a.eh.length;c<d;c++)this.mh.push({file:a.eh[c].file,library:a.eh[c].library,Ij:a.eh[c].Ij,ob:a.eh[c].ob});this.tI=a.Bx.length;if(pui.nodedesigner)this.CI=a.ta;this.bC=a.WN;this.cx=false;pui.designer.Hk.prototype.show.call(this,b);this.ot=document.createElement("div");this.ot.innerHTML="...";this.ot.className="msg";this.lh.appendChild(this.ot);Jg(this)};
4744
- function Jg(b){var a=b.mh[b.it],c;if(M=="genie")c=jc("PUI0009101.PGM");if(M=="dspf")c=jc("PUI0009101.PGM",null,true);a={url:c,params:{file:a.file,library:a.library,context:M},method:"post",async:true,suppressAlert:true,handler:b.xI,onfail:b.xI};if(M=="genie")a.params.AUTH=GENIE_AUTH;if(pui.isCloud)a.params.workspace_id=pui.cloud.ws.id;if(pui.nodedesigner&&b.CI)a.params.connection=b.CI;if(b.bC&&b.bC.length>0)a.params.rcdfmt=b.bC;xc(a)}
4745
- pui.designer.Zh.prototype.iS=function(b,a){var c=this.mh[this.it];c.fields=[];if(b!=null)if(b.success!=null)if(b.success)c.fields=b.fields;else{c.error=b.errorText+" "+b.errorId;this.cx=true}else{if(b.Bl)c.error=b.Bl();else{console.log("error",b);c.error="The server response is missing or invalid."}this.cx=true}else{console.log(a);c.error="Unable to retrieve field listing";this.cx=true}this.it+=1;if(this.it<this.mh.length)Jg(this);else{this.lh.removeChild(this.ot);delete this.ot;typeof this.VB=="function"&&
4744
+ pui.designer.Zh.prototype.show=function(b,a){this.mh=[];for(var c=this.it=0,d=a.eh.length;c<d;c++)this.mh.push({file:a.eh[c].file,library:a.eh[c].library,Ij:a.eh[c].Ij,ob:a.eh[c].ob});this.tI=a.Bx.length;if(pui.nodedesigner)this.CI=a.ta;this.bC=a.WN;this.cx=false;pui.designer.Hk.prototype.show.call(this,b);this.ot=document.createElement("div");this.ot.innerHTML="...";this.ot.className="msg";this.lh.appendChild(this.ot);Kg(this)};
4745
+ function Kg(b){var a=b.mh[b.it],c;if(M=="genie")c=jc("PUI0009101.PGM");if(M=="dspf")c=jc("PUI0009101.PGM",null,true);a={url:c,params:{file:a.file,library:a.library,context:M},method:"post",async:true,suppressAlert:true,handler:b.xI,onfail:b.xI};if(M=="genie")a.params.AUTH=GENIE_AUTH;if(pui.isCloud)a.params.workspace_id=pui.cloud.ws.id;if(pui.nodedesigner&&b.CI)a.params.connection=b.CI;if(b.bC&&b.bC.length>0)a.params.rcdfmt=b.bC;xc(a)}
4746
+ pui.designer.Zh.prototype.iS=function(b,a){var c=this.mh[this.it];c.fields=[];if(b!=null)if(b.success!=null)if(b.success)c.fields=b.fields;else{c.error=b.errorText+" "+b.errorId;this.cx=true}else{if(b.Bl)c.error=b.Bl();else{console.log("error",b);c.error="The server response is missing or invalid."}this.cx=true}else{console.log(a);c.error="Unable to retrieve field listing";this.cx=true}this.it+=1;if(this.it<this.mh.length)Kg(this);else{this.lh.removeChild(this.ot);delete this.ot;typeof this.VB=="function"&&
4746
4747
  this.VB();this.Qk.disabled=this.cx===true}};pui.designer.Fw=function(){pui.designer.Zh.call(this,{title:"Edit List",width:424,zIndex:U.$_,height:276+(M=="dspf"?7:0),className:"fields",modal:true,resizable:true,minHeight:283,minWidth:424});this.$x=null;this.nz=false;this.Ok=document.createElement("input");this.LB=document.createElement("label");this.kx=document.createElement("div");this.OB=document.createElement("div");this.IB=document.createElement("div");this.Gq=document.createElement("table");this.qf=document.createElement("table");this.LB.innerHTML=
4747
- "Search fields:";this.Ok.style.width="235px";this.Ok.onkeydown=this.UR.bind(this);this.Ok.onkeyup=this.VR.bind(this);this.GR=this.IS.bind(this);this.HR=this.JS.bind(this);this.kx.className="tablewrap";this.OB.className="hdr";this.Gq.cellPadding="2";this.Gq.cellSpacing="0";var b=this.Gq.insertRow(0);b.insertCell(0);b.insertCell(1).innerHTML="Description";b.insertCell(2).innerHTML="Length/Type";this.IB.className="det";this.qf.cellPadding="2";this.qf.cellSpacing="0";Ig(this,"center");this.IB.appendChild(this.qf);
4748
- this.OB.appendChild(this.Gq);this.kx.appendChild(this.OB);this.kx.appendChild(this.IB);this.lh.appendChild(this.LB);this.LB.appendChild(this.Ok);this.lh.appendChild(this.kx)};pui.designer.Fw.prototype=Object.create(pui.designer.Zh.prototype);function Kg(b,a,c){b=c.Ij?c.Ij:c.library&&c.library.length>0?c.library+"/"+c.file:c.file;for(var d=0,e=c.fields.length;d<e;d++){var f=c.fields[d];a.push({field:b+"."+f.field,text:f.text,type:f.type,length:f.length,decimals:f.decimals,decPos:f.decPos})}}Ba=pui.designer.Fw.prototype;
4748
+ "Search fields:";this.Ok.style.width="235px";this.Ok.onkeydown=this.UR.bind(this);this.Ok.onkeyup=this.VR.bind(this);this.GR=this.IS.bind(this);this.HR=this.JS.bind(this);this.kx.className="tablewrap";this.OB.className="hdr";this.Gq.cellPadding="2";this.Gq.cellSpacing="0";var b=this.Gq.insertRow(0);b.insertCell(0);b.insertCell(1).innerHTML="Description";b.insertCell(2).innerHTML="Length/Type";this.IB.className="det";this.qf.cellPadding="2";this.qf.cellSpacing="0";Jg(this,"center");this.IB.appendChild(this.qf);
4749
+ this.OB.appendChild(this.Gq);this.kx.appendChild(this.OB);this.kx.appendChild(this.IB);this.lh.appendChild(this.LB);this.LB.appendChild(this.Ok);this.lh.appendChild(this.kx)};pui.designer.Fw.prototype=Object.create(pui.designer.Zh.prototype);function Lg(b,a,c){b=c.Ij?c.Ij:c.library&&c.library.length>0?c.library+"/"+c.file:c.file;for(var d=0,e=c.fields.length;d<e;d++){var f=c.fields[d];a.push({field:b+"."+f.field,text:f.text,type:f.type,length:f.length,decimals:f.decimals,decPos:f.decPos})}}Ba=pui.designer.Fw.prototype;
4749
4750
  Ba.show=function(b,a,c){this.Ok.value="";this.di=c;for(c=this.qf.rows.length;c>0;c--)this.qf.deleteRow(c-1);pui.designer.Zh.prototype.show.call(this,b,a)};
4750
- Ba.VB=function(){var b=this.di,a,c="Field",d=false;if(this.mh.length==1)if(this.tI>0){d=true;a=[];Kg(this,a,this.mh[0])}else a=this.mh[0].fields;else if(this.mh.length>1){d=true;c="Table + Field";a=[];for(var e=0,f=this.mh.length;e<f;e++)Kg(this,a,this.mh[e])}else a=[];if(d)c="Alias + Field";this.Gq.tBodies[0].rows[0].cells[0].innerHTML=c;b=b.split(",");c=false;e=0;for(f=a.length;e<f;e++){d=this.qf.insertRow(this.qf.rows.length);d.onmousedown=pui.va;d.onselectstart=pui.va;d.onclick=this.GR;d.ondblclick=
4751
- this.HR;if(!c)for(var g=0;g<b.length;g++)if(b[g]==a[e].field){d.classList.add("sel");d.isSelected=true;this.nz||(c=true);break}g=d.insertCell(0);g.innerHTML=g.title=a[e].field;g=d.insertCell(1);if(a[e].text)g.innerHTML=a[e].text;g=d.insertCell(2);if(pui.nodedesigner)g.innerHTML=U.mE({type:a[e].type,length:a[e].length,decimals:a[e].decimals});else{d=String(a[e].length);d+=a[e].decPos!=null?","+String(a[e].decPos):a[e].type;g.innerHTML=d}}this.Qk.disabled=Lg(this).length==0;this.Ok.focus()};
4752
- function Mg(b){for(var a=0;a<b.qf.rows.length;a++){var c=b.qf.rows[a];c.classList.remove("sel");c.isSelected=false}}function Lg(b){for(var a=[],c=0;c<b.qf.rows.length;c++){var d=b.qf.rows[c];d.isSelected&&a.push(d.cells[0].innerHTML)}return a}
4753
- Ba.Sk=function(){for(var b="",a=Lg(this),c=0;c<a.length;c++){if(c>0)b+=",";b+=a[c]}this.di=b;pui.designer.Zh.prototype.Sk.call(this);if(this.$x!=null){b="";a=[];for(c=0;c<this.qf.rows.length;c++){var d=this.qf.rows[c];if(d.isSelected)d.cells[1].innerHTML===""?a.push(d.cells[0].innerHTML):a.push(d.cells[1].innerHTML)}for(c=0;c<a.length;c++){if(c>0)b+=",";b+=a[c]}this.$x(b)}};
4751
+ Ba.VB=function(){var b=this.di,a,c="Field",d=false;if(this.mh.length==1)if(this.tI>0){d=true;a=[];Lg(this,a,this.mh[0])}else a=this.mh[0].fields;else if(this.mh.length>1){d=true;c="Table + Field";a=[];for(var e=0,f=this.mh.length;e<f;e++)Lg(this,a,this.mh[e])}else a=[];if(d)c="Alias + Field";this.Gq.tBodies[0].rows[0].cells[0].innerHTML=c;b=b.split(",");c=false;e=0;for(f=a.length;e<f;e++){d=this.qf.insertRow(this.qf.rows.length);d.onmousedown=pui.va;d.onselectstart=pui.va;d.onclick=this.GR;d.ondblclick=
4752
+ this.HR;if(!c)for(var g=0;g<b.length;g++)if(b[g]==a[e].field){d.classList.add("sel");d.isSelected=true;this.nz||(c=true);break}g=d.insertCell(0);g.innerHTML=g.title=a[e].field;g=d.insertCell(1);if(a[e].text)g.innerHTML=a[e].text;g=d.insertCell(2);if(pui.nodedesigner)g.innerHTML=U.mE({type:a[e].type,length:a[e].length,decimals:a[e].decimals});else{d=String(a[e].length);d+=a[e].decPos!=null?","+String(a[e].decPos):a[e].type;g.innerHTML=d}}this.Qk.disabled=Mg(this).length==0;this.Ok.focus()};
4753
+ function Ng(b){for(var a=0;a<b.qf.rows.length;a++){var c=b.qf.rows[a];c.classList.remove("sel");c.isSelected=false}}function Mg(b){for(var a=[],c=0;c<b.qf.rows.length;c++){var d=b.qf.rows[c];d.isSelected&&a.push(d.cells[0].innerHTML)}return a}
4754
+ Ba.Sk=function(){for(var b="",a=Mg(this),c=0;c<a.length;c++){if(c>0)b+=",";b+=a[c]}this.di=b;pui.designer.Zh.prototype.Sk.call(this);if(this.$x!=null){b="";a=[];for(c=0;c<this.qf.rows.length;c++){var d=this.qf.rows[c];if(d.isSelected)d.cells[1].innerHTML===""?a.push(d.cells[0].innerHTML):a.push(d.cells[1].innerHTML)}for(c=0;c<a.length;c++){if(c>0)b+=",";b+=a[c]}this.$x(b)}};
4754
4755
  Ba.UR=function(b){var a=b.keyCode;a==13&&this.Ok.value==""&&!this.Qk.disabled&&this.Sk();a==27&&this.hide();if(a==37||a==38||a==39||a==40||a==46)if(b.preventDefault)b.cancelBubble=true};Ba.VR=function(){var b=this.Ok.value;b=dc(b);b=b.toLowerCase();for(var a=0;a<this.qf.rows.length;a++){var c=this.qf.rows[a];c.style.display=b==""?"":c.firstChild.innerHTML.toLowerCase().indexOf(b)>=0||c.firstChild.nextSibling.innerHTML.toLowerCase().indexOf(b)>=0?"":"none"}};
4755
- Ba.IS=function(b){if(b=pui.tp(b)){if(b.isSelected){b.classList.remove("sel");b.isSelected=false}else{this.nz||Mg(this);b.classList.add("sel");b.isSelected=true}this.Qk.disabled=Lg(this).length==0;this.Ok.focus()}};Ba.JS=function(b){if(b=pui.tp(b)){this.nz||Mg(this);b.classList.add("sel");b.isSelected=true;this.Sk()}};Ba.hx=function(b){b=b.width-30+"px";this.Gq.style.width=b;this.qf.style.width=b};pui.designer.KH=function(){this.$g=this.Lh=this.table=this.dv=null;var b=this;(function(){U.Ea(document,"mousedown",function(o){for(o=U.getTarget(o);o!=null;){if(o==b.table)return;o=o.parentNode}b.hide()});b.table=document.createElement("table");b.table.style.position="absolute";b.table.style.display="none";b.table.style.backgroundColor="white";b.table.style.border="1px solid #cccccc";b.table.style.zIndex=U.Y_;U.Ea(b.table,"mousedown",function(o){U.va(o)});var a=["00","33","66","99","CC","FF"],c=
4756
+ Ba.IS=function(b){if(b=pui.tp(b)){if(b.isSelected){b.classList.remove("sel");b.isSelected=false}else{this.nz||Ng(this);b.classList.add("sel");b.isSelected=true}this.Qk.disabled=Mg(this).length==0;this.Ok.focus()}};Ba.JS=function(b){if(b=pui.tp(b)){this.nz||Ng(this);b.classList.add("sel");b.isSelected=true;this.Sk()}};Ba.hx=function(b){b=b.width-30+"px";this.Gq.style.width=b;this.qf.style.width=b};pui.designer.KH=function(){this.$g=this.Lh=this.table=this.dv=null;var b=this;(function(){U.Ea(document,"mousedown",function(o){for(o=U.getTarget(o);o!=null;){if(o==b.table)return;o=o.parentNode}b.hide()});b.table=document.createElement("table");b.table.style.position="absolute";b.table.style.display="none";b.table.style.backgroundColor="white";b.table.style.border="1px solid #cccccc";b.table.style.zIndex=U.Y_;U.Ea(b.table,"mousedown",function(o){U.va(o)});var a=["00","33","66","99","CC","FF"],c=
4756
4757
  0,d=0,e=0,f=b.table.insertRow(b.table.rows.length);f=f.insertCell(f.cells.length);f.colSpan=18;f.align="center";b.$g=document.createElement("input");b.$g.style.width="50px";b.$g.style.height="15px";b.$g.style.border="1px solid white";b.$g.style.fontFamily="Arial";b.$g.style.fontSize="11px";b.$g.style.cursor="default";b.$g.style.backgroundColor="white";b.$g.disabled=true;b.Lh=document.createElement("input");b.Lh.style.width="15px";b.Lh.style.height="17px";b.Lh.style.border="1px solid #cccccc";b.Lh.style["float"]=
4757
4758
  "left";b.Lh.style.cursor="default";b.Lh.disabled=true;var g=document.createElement("span");g.innerHTML="NO COLOR";g.style.backgroundColor="#eeeeee";g.style.color="#666666";g.style.border="1px solid #cccccc";g.style.fontFamily="Arial";g.style.fontSize="10px";g.style.cursor="pointer";g.onclick=function(){b.dv("");b.hide()};g.onmouseover=function(){g.style.textDecoration="underline";b.gw("")};g.onmouseout=function(){g.style.textDecoration=""};var h=document.createElement("span");h.innerHTML="CLOSE";
4758
4759
  h.style.backgroundColor="#eeeeee";h.style.color="#666666";h.style.border="1px solid #cccccc";h.style.fontFamily="Arial";h.style.fontSize="10px";h.style.cursor="pointer";h.onclick=function(){b.hide()};h.onmouseover=function(){h.style.textDecoration="underline"};h.onmouseout=function(){h.style.textDecoration=""};f.appendChild(b.$g);f.appendChild(b.Lh);f.appendChild(document.createTextNode(" | "));f.appendChild(g);f.appendChild(document.createTextNode(" "));f.appendChild(h);for(f=0;f<12;f++)for(var m=
4759
4760
  b.table.insertRow(b.table.rows.length),k=0;k<18;k++){var n=m.insertCell(m.cells.length),i="#"+a[c]+a[d]+a[e];n.style.backgroundColor=i;n.title=i;n.style.width="12px";n.style.height="14px";n.style.cursor="pointer";n.onmouseover=function(o){b.gw(U.getTarget(o).title)};n.onclick=function(o){b.dv(U.getTarget(o).title);b.hide()};e++;if(e>5){e=0;d++;if(d>5){d=0;c++}}}document.body.appendChild(b.table)})();this.show=function(a){var c=document.body.offsetWidth,d=document.body.offsetHeight;if(c==null)c=1E4;
4760
4761
  if(d==null)d=1E4;c-=320;d-=220;if(c<0)c=0;if(d<0)d=0;var e=U.getX(a);a=U.getY(a);if(e>c)e=c;if(M=="dspf"&&a>d)a=d;if(a<0)a=0;b.table.style.left=e+"px";b.table.style.top=a+"px";b.table.style.display="block"};this.hide=function(){if(b.table!=null)b.table.style.display="none"};this.isHidden=function(){return b.table.style.display=="none"};this.gw=function(a){b.$g.value=a;try{b.Lh.style.backgroundColor=a}catch(c){b.Lh.style.backgroundColor=""}};this.destroy=function(){b.table.parentNode.removeChild(b.table);
4761
- b.Lh.parentNode.removeChild(b.Lh);b.$g.parentNode.removeChild(b.$g);b.table=null;b.Lh=null;b.$g=null}};pui.designer.xB=function(){pui.designer.Hk.call(this,{title:"Edit Value",width:555,zIndex:U.f0,height:422+(M=="dspf"?7:0),resizable:true,modal:true});this.Zf=false;this.Eg=true;this.lx=document.createElement("textarea");this.Ho=document.createElement("div");this.EI=this.Tb=null;this.lh.appendChild(this.Ho);Ig(this)};pui.designer.xB.prototype=Object.create(pui.designer.Hk.prototype);
4762
- function Ng(b){var a=b.TR.bind(b);b.Ho.className="codeeditor";b.Zf=false;b.Eg=true;if(!window.monaco||pui.useAceEditor||pui.is_ie||pui.ie_mode<=11){b.Eg=false;b.Zf=true}if(b.Eg){b.Ho.classList.add("monaco");b.Tb=monaco.editor.create(b.Ho,{value:null,fixedOverflowWidgets:true,disableMonospaceOptimizations:navigator.platform.toUpperCase().indexOf("MAC")>=0,minimap:{enabled:false}});b.Tb.addAction({id:"Save",label:"Save File",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KEY_S],precondition:null,
4762
+ b.Lh.parentNode.removeChild(b.Lh);b.$g.parentNode.removeChild(b.$g);b.table=null;b.Lh=null;b.$g=null}};pui.designer.xB=function(){pui.designer.Hk.call(this,{title:"Edit Value",width:555,zIndex:U.f0,height:422+(M=="dspf"?7:0),resizable:true,modal:true});this.Zf=false;this.Eg=true;this.lx=document.createElement("textarea");this.Ho=document.createElement("div");this.EI=this.Tb=null;this.lh.appendChild(this.Ho);Jg(this)};pui.designer.xB.prototype=Object.create(pui.designer.Hk.prototype);
4763
+ function Og(b){var a=b.TR.bind(b);b.Ho.className="codeeditor";b.Zf=false;b.Eg=true;if(!window.monaco||pui.useAceEditor||pui.is_ie||pui.ie_mode<=11){b.Eg=false;b.Zf=true}if(b.Eg){b.Ho.classList.add("monaco");b.Tb=monaco.editor.create(b.Ho,{value:null,fixedOverflowWidgets:true,disableMonospaceOptimizations:navigator.platform.toUpperCase().indexOf("MAC")>=0,minimap:{enabled:false}});b.Tb.addAction({id:"Save",label:"Save File",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KEY_S],precondition:null,
4763
4764
  keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:1.5,run:a})}else if(b.Zf){b.Tb=ace.edit(b.Ho);b.Tb.setTheme("ace/theme/eclipse");b.Tb.setShowPrintMargin(false);b.Tb.session.setTabSize(2);b.Tb.commands.addCommand({name:"save",exec:a,bindKey:{mac:"cmd-s",win:"ctrl-s"}})}}Ba=pui.designer.xB.prototype;
4764
4765
  Ba.setValue=function(b){if(this.Zf||this.Eg){this.Tb.setValue(b);this.Zf?this.Tb.selection.moveCursorFileStart():this.Tb.getModel().updateOptions({tabSize:2})}else this.lx.value=b};Ba.setMode=function(b){if(this.Zf||this.Eg)if(b!=null){if(this.Zf&&b=="sql")b="text";this.EI=b}};
4765
- function Gg(b){b.Ho.classList.contains("codeeditor")||Ng(b);if(!(b.Eg||b.Zf))if(!(!window.monaco&&(typeof ace=="undefined"||ace==null||ace.edit==null)))if(!(pui.is_old_ie&&pui.ie_mode<=8)){if(pui.is_ie||pui.ie_mode<=11||pui.useAceEditor||!window.monaco){b.Zf=true;b.Eg=false}else{b.Eg=true;b.Zf=false}b.lh.removeChild(b.lx);b.lh.appendChild(b.Ho);Ng(b)}}
4766
- Ba.show=function(b){pui.designer.Hk.prototype.show.call(this,b);!this.Zf&&!this.Eg&&this.lx.focus();b=this.EI;if(b==null)b="text";if(this.Eg&&pui.useAceEditor){this.Eg=false;this.Zf=true;var a=this.Tb.getValue();this.Tb&&this.Tb.dispose();Ng(this);this.setValue(a)}if(this.Eg){a=this.Tb.getModel();var c="off",d="on",e=3,f=1;monaco.editor.setModelLanguage(a,b);this.Tb.setModel(a);a.updateOptions({tabSize:2});if(b==="text"){c="on";d="off";f=e=0}this.Tb.updateOptions({wordWrap:c,lineNumbers:d,lineDecorationsWidth:e,
4766
+ function Hg(b){b.Ho.classList.contains("codeeditor")||Og(b);if(!(b.Eg||b.Zf))if(!(!window.monaco&&(typeof ace=="undefined"||ace==null||ace.edit==null)))if(!(pui.is_old_ie&&pui.ie_mode<=8)){if(pui.is_ie||pui.ie_mode<=11||pui.useAceEditor||!window.monaco){b.Zf=true;b.Eg=false}else{b.Eg=true;b.Zf=false}b.lh.removeChild(b.lx);b.lh.appendChild(b.Ho);Og(b)}}
4767
+ Ba.show=function(b){pui.designer.Hk.prototype.show.call(this,b);!this.Zf&&!this.Eg&&this.lx.focus();b=this.EI;if(b==null)b="text";if(this.Eg&&pui.useAceEditor){this.Eg=false;this.Zf=true;var a=this.Tb.getValue();this.Tb&&this.Tb.dispose();Og(this);this.setValue(a)}if(this.Eg){a=this.Tb.getModel();var c="off",d="on",e=3,f=1;monaco.editor.setModelLanguage(a,b);this.Tb.setModel(a);a.updateOptions({tabSize:2});if(b==="text"){c="on";d="off";f=e=0}this.Tb.updateOptions({wordWrap:c,lineNumbers:d,lineDecorationsWidth:e,
4767
4768
  lineNumbersMinChars:f});this.Tb.layout();this.Tb.focus()}else if(this.Zf){this.Tb.resize(true);this.Tb.focus();this.Tb.getSession().setMode("ace/mode/"+b);if(b=="text"){this.Tb.session.setUseWrapMode(true);this.Tb.session.setWrapLimitRange(74,74);this.Tb.renderer.setShowGutter(false)}else{this.Tb.session.setUseWrapMode(false);this.Tb.renderer.setShowGutter(true)}}};Ba.hx=function(){if(this.Eg)this.Tb.layout();else this.Zf&&this.Tb.resize(true)};
4768
4769
  Ba.Sk=function(){this.di=this.Zf||this.Eg?this.Tb.getValue():this.lx.value;pui.designer.Hk.prototype.Sk.call(this)};Ba.TR=function(){this.Ca(this.Tb.getValue());this.Tb.focus();return null};pui.designer.rB=function(b){function a(v,w){function y(K){if(pui.isCloud){var H=pui.cloud.ws.SERVER_DIR;if(H.toUpperCase()===K.substr(0,H.length).toUpperCase())K="Workspace Files"+K.substr(H.length)}else if(pui.pjsWorkspace){H=pui.MODULES_DIR?[pui.MODULES_DIR,pui.pjsWorkspace.name].join(pui.dirSeparator):[pui.PROFOUNDJS_DIR,"modules",pui.pjsWorkspace.name].join(pui.dirSeparator);if(K.indexOf(H)===0)K="Workspace Files"+K.substr(H.length)}return K}if(w!=null)s=w;if(v==null||v==""){k.options.length=
4769
4770
  0;k.value=""}else{if(v==s||s==""){k.options.length=0;var B=y(v);k.options[0]=new Option(B,v)}else{B=v.split(pui.dirSeparator);var C=v;for(k.options.length=0;B.length>0&&C!=s;){var z=y(C);k.options[k.options.length]=new Option(z,C);B.pop();C=B.join(pui.dirSeparator)}B=y(s);k.options[k.options.length]=new Option(B,s)}k.value=v}}function c(v,w){if(v.dir==true&&w.dir!=true)return-1;if(v.dir!=true&&w.dir==true)return 1;return v.name.toUpperCase()<w.name.toUpperCase()?-1:1}function d(v){v.sort(c);for(var w=
@@ -4786,108 +4787,108 @@ Object.defineProperties(pui.designer.f.ro.prototype,{eI:{value:"Preview"},eR:{va
4786
4787
  LQ:{value:"column end"},PQ:{value:"column width"},wB:{value:"width"},WQ:{value:"height"},vB:{value:"line"},rR:{value:"Stylesheet"},tR:{value:"Responsive Layout Editor"},kR:{value:"Screen Sizes"},mR:{value:"Drop changes to the screen sizes and restore defaults: Any, Small, Medium, and Large"},fI:{value:"Any"},qR:{value:"Small"},pR:{value:"Medium"},oR:{value:"Large"},lR:{value:"Add new screen size ruleset"},nR:{value:"Remove the selected screen size ruleset"},gI:{value:"Style Rules"},dI:{value:"Containers"},
4787
4788
  sR:{value:"Rows/Columns"},KQ:{value:"Resizable Columns"},fR:{value:"Rotate"},SQ:{value:"Defaults"},cR:{value:"Portrait"},ZQ:{value:"Landscape"},VQ:{value:"Explicit Rows"},UQ:{value:"Explicit Columns"},TQ:{value:"Toggle: Preview width uses Min or Max Width"},QQ:{value:"There are widgets in these containers. Please empty containers before attempting to remove them."},RQ:{value:"The responsive layout editor does not support that many containers."},YQ:{value:"Value must be a number."}});
4788
4789
  pui.designer.f.ro.prototype.show=function(b,a,c,d,e){this.Ej=b;this.PR=a;this.jh=c;this.mS=e;this.SI=1;if(typeof d==="object"&&d!==null)for(b=0;b<d.length;b++){a=d[b];if(a.tagName=="DIV"&&a.children.length>0)this.SI=b+1}pui.designer.f.ug=this.nS.bind(this);this.kC=this.HB=false;var f=1;pui.designer.f.ON=true;if(pui.flatlook)this.Em="/profoundui/proddata/images/FlatIcons/16x16/";var g=[[this.fI,null,null,null],[this.qR,0,480,800],[this.pR,481,768,1280],[this.oR,769,1366,768]];if(pui.designer["responsive screen sizes"]!=
4789
- null&&pui.designer["responsive screen sizes"].length>0)g=pui.designer["responsive screen sizes"];d=new pui.designer.qB("pui-resp-editor-prefs");Og(d,"westWidth",375);Og(d,"eastWidth",175);Og(d,"winWidth",1E3);Og(d,"winHeight",640);Og(d,"winx",10);Og(d,"winy",10);d.load("maximized",false);d.load("hgtColHide",true);d.load("eastCollapsed",true);b=!d.load("screensizes",g);var h=pui.designer.f.aD=new Ext.data.ArrayStore({autoDestroy:true,fields:["label","minWidth","maxWidth","height"],idProperty:"label"});
4790
- h.loadData(d.screensizes);var m=this;h.addListener("update",function(l,s){var t,u,v;for(t in s.modified)break;if(t!=null){u=s.modified[t];v=parseInt(s.data[t],10);if(!isNaN(v)){var w=t.substring(0,3);if(t.substring(3)=="Width"){Pg(pui.designer.f.Ka,w,u,v);Qg(m)}}}Rg(m,s);l.commitChanges();Ext.getCmp("respdefscrnsizbtn").enable()});var k=new Ext.grid.RowSelectionModel({singleSelect:true,moveEditorOnEnter:false,listeners:{selectionchange:function(){n.stopEditing();var l=k.getSelected();Rg(m,l)}}}),
4791
- n=new Ext.grid.EditorGridPanel({autoScroll:true,border:false,id:"respscreengrid",layout:"fit",height:265,title:this.kR,titleCollapse:true,viewConfig:{forceFit:true},store:h,sm:k,tbar:[{disabled:b,id:"respdefscrnsizbtn",text:this.SQ,handler:function(){for(var l=h.getCount(),s=0;s<l;s++)for(var t=h.getAt(s),u=0;u<g.length;u++)if(t.data.label==g[u][0]){Pg(pui.designer.f.Ka,"min",t.data.minWidth,g[u][1]);Pg(pui.designer.f.Ka,"max",t.data.maxWidth,g[u][2]);break}Qg(m);h.loadData(g);Ext.getCmp("respdefscrnsizbtn").disable()},
4790
+ null&&pui.designer["responsive screen sizes"].length>0)g=pui.designer["responsive screen sizes"];d=new pui.designer.qB("pui-resp-editor-prefs");Pg(d,"westWidth",375);Pg(d,"eastWidth",175);Pg(d,"winWidth",1E3);Pg(d,"winHeight",640);Pg(d,"winx",10);Pg(d,"winy",10);d.load("maximized",false);d.load("hgtColHide",true);d.load("eastCollapsed",true);b=!d.load("screensizes",g);var h=pui.designer.f.aD=new Ext.data.ArrayStore({autoDestroy:true,fields:["label","minWidth","maxWidth","height"],idProperty:"label"});
4791
+ h.loadData(d.screensizes);var m=this;h.addListener("update",function(l,s){var t,u,v;for(t in s.modified)break;if(t!=null){u=s.modified[t];v=parseInt(s.data[t],10);if(!isNaN(v)){var w=t.substring(0,3);if(t.substring(3)=="Width"){Qg(pui.designer.f.Ka,w,u,v);Rg(m)}}}Sg(m,s);l.commitChanges();Ext.getCmp("respdefscrnsizbtn").enable()});var k=new Ext.grid.RowSelectionModel({singleSelect:true,moveEditorOnEnter:false,listeners:{selectionchange:function(){n.stopEditing();var l=k.getSelected();Sg(m,l)}}}),
4792
+ n=new Ext.grid.EditorGridPanel({autoScroll:true,border:false,id:"respscreengrid",layout:"fit",height:265,title:this.kR,titleCollapse:true,viewConfig:{forceFit:true},store:h,sm:k,tbar:[{disabled:b,id:"respdefscrnsizbtn",text:this.SQ,handler:function(){for(var l=h.getCount(),s=0;s<l;s++)for(var t=h.getAt(s),u=0;u<g.length;u++)if(t.data.label==g[u][0]){Qg(pui.designer.f.Ka,"min",t.data.minWidth,g[u][1]);Qg(pui.designer.f.Ka,"max",t.data.maxWidth,g[u][2]);break}Rg(m);h.loadData(g);Ext.getCmp("respdefscrnsizbtn").disable()},
4792
4793
  tooltip:this.mR,tooltipType:"title"},{disabled:true,id:"resprotatebtn",tooltip:this.fR,tooltipType:"title",icon:this.Em+(pui.flatlook?"rotate.png":"rotate_canvas.png"),handler:function(){var l=pui.designer.f.ue.style.width,s=pui.designer.f.ue.style.height;if(l!=""&&s!=""){pui.designer.f.ue.style.width=s;pui.designer.f.ue.style.height=l}}},{id:"previewWidthFromBtn",tooltip:this.TQ,tooltipType:"title",icon:"/profoundui/proddata/images/FlatIcons/16x16/width.png",disabled:true,handler:function(){var l=
4793
4794
  pui.designer.f.ue,s=l.clientWidth;if(s!=""&&n){n.stopEditing();var t=k.getSelected();if(t&&t.data)if(s==t.data.maxWidth){l.style.width=t.data.minWidth+"px";pui.designer.f.ON=false}else{l.style.width=t.data.maxWidth+"px";pui.designer.f.ON=true}}}},"->",{tooltip:this.lR,tooltipType:"title",icon:this.Em+"add.png",handler:function(){Ext.getCmp("respdefscrnsizbtn").enable();var l=new (Ext.data.Record.create([{name:"label",type:"string"},{name:"minWidth",type:"int"},{name:"maxWidth",type:"int"},{name:"height",
4794
4795
  type:"int"}]))({label:"New Size "+f++,minWidth:0,maxWidth:0,height:0}),s=n.getColumnModel(),t=s.getIndexById("resphgtcol");s.setHidden(t,false);s=h.getCount();n.stopEditing();h.insert(s,l);n.startEditing(s,0)}},"-",{disabled:true,tooltip:this.nR,tooltipType:"title",id:"scrnsizedel",icon:this.Em+(pui.flatlook?"remove-1.png":"delete.png"),handler:function(){Ext.getCmp("respdefscrnsizbtn").enable();n.stopEditing();var l=k.getSelected();if(l!=null){var s=pui.designer.f.Ka;s.fd!=null&&s.fd.sheet!=null&&
4795
- Sg(s,s.fd.sheet,s.sS,{SM:l.data.minWidth,xX:l.data.maxWidth});h.remove(l);Qg(m)}}}],columns:[{header:"Size",sortable:true,width:50,dataIndex:"label",editor:new Ext.form.TextField({allowBlank:false,autoCreate:{tag:"input",type:"text"}})},{header:"Min<br>Width",sortable:true,width:40,dataIndex:"minWidth",editor:new Ext.form.TextField({allowBlank:true,autoCreate:{tag:"input",type:"text"}})},{header:"Max<br>Width",sortable:true,width:40,dataIndex:"maxWidth",editor:new Ext.form.TextField({allowBlank:true,
4796
- autoCreate:{tag:"input",type:"text"}})},{header:"Preview<br>Height",id:"resphgtcol",hidden:d.hgtColHide,sortable:true,width:40,dataIndex:"height",editor:new Ext.form.TextField({allowBlank:true,autoCreate:{tag:"input",type:"text"}})}]}),i=new Ext.data.ArrayStore({autoDestroy:true,fields:["label"],idProperty:"label"});b=pui.Eb(this.jh).map(function(l){return[l]});i.loadData(b);i.addListener("update",function(l){l.commitChanges();Tg(m,l)});var o=new Ext.grid.RowSelectionModel({singleSelect:true,moveEditorOnEnter:false,
4796
+ Tg(s,s.fd.sheet,s.sS,{SM:l.data.minWidth,xX:l.data.maxWidth});h.remove(l);Rg(m)}}}],columns:[{header:"Size",sortable:true,width:50,dataIndex:"label",editor:new Ext.form.TextField({allowBlank:false,autoCreate:{tag:"input",type:"text"}})},{header:"Min<br>Width",sortable:true,width:40,dataIndex:"minWidth",editor:new Ext.form.TextField({allowBlank:true,autoCreate:{tag:"input",type:"text"}})},{header:"Max<br>Width",sortable:true,width:40,dataIndex:"maxWidth",editor:new Ext.form.TextField({allowBlank:true,
4797
+ autoCreate:{tag:"input",type:"text"}})},{header:"Preview<br>Height",id:"resphgtcol",hidden:d.hgtColHide,sortable:true,width:40,dataIndex:"height",editor:new Ext.form.TextField({allowBlank:true,autoCreate:{tag:"input",type:"text"}})}]}),i=new Ext.data.ArrayStore({autoDestroy:true,fields:["label"],idProperty:"label"});b=pui.Eb(this.jh).map(function(l){return[l]});i.loadData(b);i.addListener("update",function(l){l.commitChanges();Ug(m,l)});var o=new Ext.grid.RowSelectionModel({singleSelect:true,moveEditorOnEnter:false,
4797
4798
  listeners:{selectionchange:function(l){l=l.getSelected();var s=Ext.getCmp("contnamedel"),t=Ext.getCmp("contnamemoveup"),u=Ext.getCmp("contnamemovedown");if(l!=null){var v=l.store.indexOf(l);s.enable();v>0&&t.enable();v<l.store.getCount()-1&&u.enable()}else{s.disable();t.disable();u.disable()}}}}),q=new Ext.grid.EditorGridPanel({autoScroll:true,border:false,enableColumnHide:false,enableHdMenu:false,id:"respContNamesGrid",layout:"fit",height:160,viewConfig:{forceFit:true},store:i,sm:o,tbar:[{tooltip:"Add name",
4798
- tooltipType:"title",icon:this.Em+"add.png",handler:function(){var l=new (Ext.data.Record.create([{name:"label",type:"string"}]))({label:"New Name"}),s=i.getCount(),t=o.getSelected();if(t)s=t.store.indexOf(t);q.stopEditing();i.insert(s,l);i.commitChanges();q.startEditing(s,0)}},{disabled:true,tooltip:"Remove name",tooltipType:"title",id:"contnamedel",icon:this.Em+(pui.flatlook?"remove-1.png":"delete.png"),handler:function(){var l=o.getSelected();if(l){i.remove(l);Tg(m,i)}}},{disabled:true,tooltip:"Move up",
4799
- tooltipType:"title",id:"contnamemoveup",icon:this.Em+"up.png",handler:function(){var l=o.getSelected();if(l){var s=l.store.indexOf(l)-1;i.remove(l);i.insert(s,[l]);o.selectRow(s);Tg(m,i)}}},{disabled:true,tooltip:"Move down",tooltipType:"title",id:"contnamemovedown",icon:this.Em+"down.png",handler:function(){var l=o.getSelected();if(l){var s=l.store.indexOf(l)+1;i.remove(l);i.insert(s,[l]);o.selectRow(s);Tg(m,i)}}}],columns:[{header:"Names",sortable:false,dataIndex:"label",editor:new Ext.form.TextField({autoCreate:{tag:"input",
4799
+ tooltipType:"title",icon:this.Em+"add.png",handler:function(){var l=new (Ext.data.Record.create([{name:"label",type:"string"}]))({label:"New Name"}),s=i.getCount(),t=o.getSelected();if(t)s=t.store.indexOf(t);q.stopEditing();i.insert(s,l);i.commitChanges();q.startEditing(s,0)}},{disabled:true,tooltip:"Remove name",tooltipType:"title",id:"contnamedel",icon:this.Em+(pui.flatlook?"remove-1.png":"delete.png"),handler:function(){var l=o.getSelected();if(l){i.remove(l);Ug(m,i)}}},{disabled:true,tooltip:"Move up",
4800
+ tooltipType:"title",id:"contnamemoveup",icon:this.Em+"up.png",handler:function(){var l=o.getSelected();if(l){var s=l.store.indexOf(l)-1;i.remove(l);i.insert(s,[l]);o.selectRow(s);Ug(m,i)}}},{disabled:true,tooltip:"Move down",tooltipType:"title",id:"contnamemovedown",icon:this.Em+"down.png",handler:function(){var l=o.getSelected();if(l){var s=l.store.indexOf(l)+1;i.remove(l);i.insert(s,[l]);o.selectRow(s);Ug(m,i)}}}],columns:[{header:"Names",sortable:false,dataIndex:"label",editor:new Ext.form.TextField({autoCreate:{tag:"input",
4800
4801
  type:"text"}})}]});pui.designer.f.ue=document.createElement("iframe");pui.designer.f.ue.id="puirespprevcont";this.Dg=new Ext.tree.TreePanel({autoScroll:true,animate:false,root:{text:this.rR,draggable:false},disabled:pui.is_ie,enableDD:true,rootVisible:true});this.Dg.getRootNode().loaded=true;this.Dg.addListener("nodedragover",function(l){var s=l.data.node;if(s==null||typeof s.text!="string"||l.target==null||typeof l.target.text!="string"){l.cancel=true;return false}var t=/^\s*@media\s*/,u=/^\s*@supports\s*/,
4801
4802
  v=l.target.text,w=t.test(s.text);s=u.test(s.text);t=t.test(v);u=u.test(v);v=l.target.isRoot;if(!w&&!s||l.point=="above"&&!t&&!u||l.point=="below"&&!u&&!v||l.point=="append"&&!u&&!v){l.cancel=true;return false}});b=this.lS.bind(this);this.Dg.addListener("movenode",b);this.Dg.addListener("remove",b);this.Dg.addListener("append",b);this.Dg.addListener("textchange",b);this.xt=this.Dg.getSelectionModel();this.xt.addListener("selectionchange",function(l,s){s!=null?Ext.getCmp("puirmvtreebtn").enable():Ext.getCmp("puirmvtreebtn").disable()});
4802
4803
  this.be=new Ext.Window({title:this.tR,x:d.winx,y:d.winy,width:d.winWidth,height:d.winHeight,maximizable:true,maximized:d.maximized,minWidth:525,minHeight:285,layout:"border",modal:true,listeners:{beforeclose:function(){T.designer.disabled=false}},buttons:[{text:pui.getLanguageText("runtimeText","save"),handler:function(){function l(t){for(var u=s.ag.indexOf(t);u>0&&u<s.ag.length;)if(s.ag[u-1]!="-"){var v=s.ag.substr(0,u),w=s.ag.substr(u);s.ag=v+"grid-"+w;u=s.ag.indexOf(t,u+t.length+5)}else u=s.ag.indexOf(t,
4803
- u+t.length)}var s={ag:""};Ug(pui.designer.f.Ka,m.Dg.getRootNode().childNodes,s);l("row-gap");l("column-gap");m.mS(s.ag,m.Ej,m.jh);m.hide()},disabled:pui.is_ie},{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){m.hide()}}],items:[{autoScroll:true,region:"west",split:true,width:d.westWidth,items:[new Ext.Panel({border:false,layout:"anchor",items:[n,new Ext.Panel({border:false,layout:"form",labelWidth:"50px",title:this.dI,items:[{xtype:"numberfield",fieldLabel:this.dI,id:"containersAddRmv",
4804
- inputType:"number",width:"50px",style:{margin:"2px 0 0 0"},msgTarget:"side"}]}),q,new Ext.Panel({border:false,layout:"form",labelWidth:"50px",title:this.sR,titleCollapse:true,defaults:{width:"98%"},items:[new Ext.form.Checkbox({fieldLabel:this.KQ,name:"dragcollines",checked:false,labelStyle:"white-space:normal",listeners:{check:function(l,s){m.HB=s;Vg(m)}}}),{xtype:"numberfield",fieldLabel:this.VQ,id:"explicitrows",inputType:"number",width:"50px"},{xtype:"numberfield",fieldLabel:this.UQ,id:"explicitcols",
4805
- inputType:"number",width:"50px",style:{marginBottom:"15px"}},{html:"All Explicit Rows:",border:false},new Ext.Button({text:"Set Height to 1fr",listeners:{click:function(){Wg(pui.designer.f.Ka,"rows","1fr");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets column heights to 1 fraction, effectively distributing each evenly",tooltipType:"title"}),new Ext.Button({text:"Set Height to Auto",listeners:{click:function(){Wg(pui.designer.f.Ka,"rows","auto");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},
4806
- tooltip:"Evenly distributes row heights according to container height",tooltipType:"title"}),new Ext.Button({text:"Set Height to 100px",listeners:{click:function(){Wg(pui.designer.f.Ka,"rows","100px");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets row heights to 100px",tooltipType:"title"}),new Ext.Button({text:"Set Height to 100px &le; y &le; Auto",listeners:{click:function(){Wg(pui.designer.f.Ka,"rows","minmax(100px,auto)");pui.designer.f.ug()}},style:{margin:"0 0 10px 1px"},tooltip:"Sets minimum row heights to 100px and maximum row heights to auto",
4807
- tooltipType:"title"}),{html:"All Explicit Columns:",border:false},new Ext.Button({text:"Set Width to 1fr",listeners:{click:function(){Wg(pui.designer.f.Ka,"columns","1fr");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets column widths to 1 fraction, effectively distributing each evenly",tooltipType:"title"}),new Ext.Button({text:"Set Width to Auto",listeners:{click:function(){Wg(pui.designer.f.Ka,"columns","auto");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Evenly distributes column widths according to container width",
4808
- tooltipType:"title"}),new Ext.Button({text:"Set Width to 100px",listeners:{click:function(){Wg(pui.designer.f.Ka,"columns","100px");pui.designer.f.ug()}},style:{margin:"0 0 0 1px"},tooltip:"Sets column widths to 100px",tooltipType:"title"})]})]})]},{title:this.eI,id:"resp_previewtitle",region:"center",contentEl:pui.designer.f.ue,autoScroll:true},{title:this.gI,id:"rle_style_rules",region:"east",split:true,width:d.eastWidth,collapsible:true,collapsed:d.eastCollapsed,items:[this.Dg],tbar:[{xtype:"buttongroup",
4804
+ u+t.length)}var s={ag:""};Vg(pui.designer.f.Ka,m.Dg.getRootNode().childNodes,s);l("row-gap");l("column-gap");m.mS(s.ag,m.Ej,m.jh);m.hide()},disabled:pui.is_ie},{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){m.hide()}}],items:[{autoScroll:true,region:"west",split:true,width:d.westWidth,items:[new Ext.Panel({border:false,layout:"anchor",items:[n,new Ext.Panel({border:false,layout:"form",labelWidth:"50px",title:this.dI,items:[{xtype:"numberfield",fieldLabel:this.dI,id:"containersAddRmv",
4805
+ inputType:"number",width:"50px",style:{margin:"2px 0 0 0"},msgTarget:"side"}]}),q,new Ext.Panel({border:false,layout:"form",labelWidth:"50px",title:this.sR,titleCollapse:true,defaults:{width:"98%"},items:[new Ext.form.Checkbox({fieldLabel:this.KQ,name:"dragcollines",checked:false,labelStyle:"white-space:normal",listeners:{check:function(l,s){m.HB=s;Wg(m)}}}),{xtype:"numberfield",fieldLabel:this.VQ,id:"explicitrows",inputType:"number",width:"50px"},{xtype:"numberfield",fieldLabel:this.UQ,id:"explicitcols",
4806
+ inputType:"number",width:"50px",style:{marginBottom:"15px"}},{html:"All Explicit Rows:",border:false},new Ext.Button({text:"Set Height to 1fr",listeners:{click:function(){Xg(pui.designer.f.Ka,"rows","1fr");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets column heights to 1 fraction, effectively distributing each evenly",tooltipType:"title"}),new Ext.Button({text:"Set Height to Auto",listeners:{click:function(){Xg(pui.designer.f.Ka,"rows","auto");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},
4807
+ tooltip:"Evenly distributes row heights according to container height",tooltipType:"title"}),new Ext.Button({text:"Set Height to 100px",listeners:{click:function(){Xg(pui.designer.f.Ka,"rows","100px");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets row heights to 100px",tooltipType:"title"}),new Ext.Button({text:"Set Height to 100px &le; y &le; Auto",listeners:{click:function(){Xg(pui.designer.f.Ka,"rows","minmax(100px,auto)");pui.designer.f.ug()}},style:{margin:"0 0 10px 1px"},tooltip:"Sets minimum row heights to 100px and maximum row heights to auto",
4808
+ tooltipType:"title"}),{html:"All Explicit Columns:",border:false},new Ext.Button({text:"Set Width to 1fr",listeners:{click:function(){Xg(pui.designer.f.Ka,"columns","1fr");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Sets column widths to 1 fraction, effectively distributing each evenly",tooltipType:"title"}),new Ext.Button({text:"Set Width to Auto",listeners:{click:function(){Xg(pui.designer.f.Ka,"columns","auto");pui.designer.f.ug()}},style:{margin:"0 0 1px 1px"},tooltip:"Evenly distributes column widths according to container width",
4809
+ tooltipType:"title"}),new Ext.Button({text:"Set Width to 100px",listeners:{click:function(){Xg(pui.designer.f.Ka,"columns","100px");pui.designer.f.ug()}},style:{margin:"0 0 0 1px"},tooltip:"Sets column widths to 100px",tooltipType:"title"})]})]})]},{title:this.eI,id:"resp_previewtitle",region:"center",contentEl:pui.designer.f.ue,autoScroll:true},{title:this.gI,id:"rle_style_rules",region:"east",split:true,width:d.eastWidth,collapsible:true,collapsed:d.eastCollapsed,items:[this.Dg],tbar:[{xtype:"buttongroup",
4809
4810
  items:[{text:pui.getLanguageText("runtimeText","add"),handler:this.DS.bind(this)},{text:pui.getLanguageText("runtimeText","remove"),handler:this.ES.bind(this),disabled:true,id:"puirmvtreebtn"}]}],listeners:{collapse:function(){var l=ac("rle_style_rules-xcollapsed");if(l!=null&&l.children&&l.children.length==1){var s=document.createElement("div");s.style.transform="rotate(90deg) translateX(10px)";s.style.fontSize="16px";s.style.fontWeight="bold";s.innerHTML=m.gI;l.appendChild(s)}}},autoScroll:true}]});
4810
4811
  T.designer.disabled=true;new Ext.tree.TreeEditor(this.Dg,null,{constrain:true,style:{zIndex:this.be.lastZIndex||1E4}});this.be.show();ac("explicitrows").addEventListener("input",this);ac("explicitcols").addEventListener("input",this);ac("containersAddRmv").addEventListener("input",this);this.kS=1E3;this.WI=0;this.ZB=setInterval(this.dS,1,this)};
4811
- pui.designer.f.ro.prototype.handleEvent=function(b){switch(b.type){case "load":Vg(this);return;case "error":console.log("Failed to load required stylesheet. Drawing lines anyway");Vg(this);return;case "click":var a=pui.designer.f.Ka,c=b.clientX;b=b.clientY;a.Bo=false;for(var d=0;d<a.Te.childNodes.length;d++){var e=a.Te.childNodes[d];if(e.tagName=="DIV"){var f=e.getBoundingClientRect();if(c>=f.left&&c<=f.right&&b>=f.top&&b<=f.bottom&&e.className!="selected"&&!a.Bo){e.className="selected";a.Bo=true;
4812
- e=null;f=Xg(a,d);for(var g=0;g<f.length;g++)if(e==null||e.Oy==false||f[g].Oy)if(f[g].node.style["grid-row-start"]!=""||f[g].node.style["grid-row-end"]!=""||f[g].node.style["grid-column-start"]!=""||f[g].node.style["grid-column-end"]!="")if(f[g].node.MM!=null)e=f[g].node;e=e;if(e!=null)pui.designer.f.zk=e.MM}else e.className=""}}Vg(this);if(pui.designer.f.zk!=null){this.xt.select(pui.designer.f.zk);pui.designer.f.zk=null}return;case "mousedown":pui.designer.f.$b!=null&&pui.designer.f.$b.hide();return;
4813
- case "contextmenu":b.preventDefault();return;case "resize":Vg(this);Yg(this);Zg(this);return;case "input":clearTimeout(this.pS);this.pS=setTimeout(this.oS,10,this,b)}};Ba=pui.designer.f.ro.prototype;
4814
- Ba.oS=function(b,a){switch(a.target.id){case "containersAddRmv":var c=Ext.getCmp("containersAddRmv"),d=parseInt(a.target.value,10);if(isNaN(d)){c.markInvalid(b.YQ);a.target.value=b.Ej}else if(d>255){c.markInvalid(b.RQ);a.target.value=b.Ej}else if(d<1)a.target.value=b.Ej;else if(d<b.SI){c.markInvalid(b.QQ);a.target.value=b.Ej}else{b.Ej=d;pui.designer.f.Ka.fw(b.Ej);b.KI(b);c.clearInvalid()}return;case "explicitrows":$g(pui.designer.f.Ka,a.target.value,"rows");pui.designer.f.ug();return;case "explicitcols":$g(pui.designer.f.Ka,
4812
+ pui.designer.f.ro.prototype.handleEvent=function(b){switch(b.type){case "load":Wg(this);return;case "error":console.log("Failed to load required stylesheet. Drawing lines anyway");Wg(this);return;case "click":var a=pui.designer.f.Ka,c=b.clientX;b=b.clientY;a.Bo=false;for(var d=0;d<a.Te.childNodes.length;d++){var e=a.Te.childNodes[d];if(e.tagName=="DIV"){var f=e.getBoundingClientRect();if(c>=f.left&&c<=f.right&&b>=f.top&&b<=f.bottom&&e.className!="selected"&&!a.Bo){e.className="selected";a.Bo=true;
4813
+ e=null;f=Yg(a,d);for(var g=0;g<f.length;g++)if(e==null||e.Oy==false||f[g].Oy)if(f[g].node.style["grid-row-start"]!=""||f[g].node.style["grid-row-end"]!=""||f[g].node.style["grid-column-start"]!=""||f[g].node.style["grid-column-end"]!="")if(f[g].node.MM!=null)e=f[g].node;e=e;if(e!=null)pui.designer.f.zk=e.MM}else e.className=""}}Wg(this);if(pui.designer.f.zk!=null){this.xt.select(pui.designer.f.zk);pui.designer.f.zk=null}return;case "mousedown":pui.designer.f.$b!=null&&pui.designer.f.$b.hide();return;
4814
+ case "contextmenu":b.preventDefault();return;case "resize":Wg(this);Zg(this);$g(this);return;case "input":clearTimeout(this.pS);this.pS=setTimeout(this.oS,10,this,b)}};Ba=pui.designer.f.ro.prototype;
4815
+ Ba.oS=function(b,a){switch(a.target.id){case "containersAddRmv":var c=Ext.getCmp("containersAddRmv"),d=parseInt(a.target.value,10);if(isNaN(d)){c.markInvalid(b.YQ);a.target.value=b.Ej}else if(d>255){c.markInvalid(b.RQ);a.target.value=b.Ej}else if(d<1)a.target.value=b.Ej;else if(d<b.SI){c.markInvalid(b.QQ);a.target.value=b.Ej}else{b.Ej=d;pui.designer.f.Ka.fw(b.Ej);b.KI(b);c.clearInvalid()}return;case "explicitrows":ah(pui.designer.f.Ka,a.target.value,"rows");pui.designer.f.ug();return;case "explicitcols":ah(pui.designer.f.Ka,
4815
4816
  a.target.value,"columns");pui.designer.f.ug()}};
4816
- function ah(b){pui.designer.f.Tl=pui.designer.f.ue.contentWindow;pui.designer.f.ib=pui.designer.f.Tl.document;var a=pui.designer.f.ib.createElement("link");a.setAttribute("rel","stylesheet");a.setAttribute("type","text/css");a.setAttribute("href","/profoundui/proddata/css/designer_respeditor.css");pui.designer.f.ib.head.appendChild(a);var c=pui.designer.f.ib.createElement("div");c.id="_id_";pui.designer.f.Ka=new pui.designer.f.Tf({Kz:true},c);Re(pui.designer.f.Ka,b.jh);pui.designer.f.Ka.fw(b.Ej);
4817
- Oe(pui.designer.f.Ka,b.PR);pui.designer.f.ib.body.appendChild(c);c=pui.designer.f.ib.createElementNS(pui.Qi,"svg");pui.designer.f.ib.body.appendChild(c);Qg(b);Zg(b);ac("containersAddRmv").value=b.Ej;pui.designer.f.Tl.addEventListener("resize",b);a.addEventListener("load",b);a.addEventListener("error",b);pui.designer.f.ib.body.addEventListener("click",b);pui.designer.f.ib.addEventListener("mousedown",b);pui.designer.f.ib.addEventListener("contextmenu",b);Yg(b)}
4818
- function Qg(b){b.kC=false;var a;a=pui.designer.f.Ka;a=a.fd!=null&&a.fd.sheet!=null?a.fd.sheet.cssRules:void 0;var c=b.Dg.getRootNode();c.hasChildNodes()&&c.removeAll(true);bh(pui.designer.f.Ka,a,c);c.expand(true);b.kC=true;if(pui.designer.f.zk!=null){b.xt.select(pui.designer.f.zk);pui.designer.f.zk=null}}Ba.nS=function(){Qg(this);Vg(this);Zg(this)};
4819
- function Vg(b){var a;if(pui.is_ie){var c=pui.designer.f.ib.createElement("div");c.className="iewarn";c.innerHTML=b.XQ;pui.designer.f.ib.body.appendChild(c)}else{c=pui.designer.f.ib.querySelector("svg");if(c==null)console.log("svg was null.");else{c.style.width="";c.style.height="";c.style.width=pui.designer.f.ib.body.scrollWidth+"px";c.style.height=pui.designer.f.ib.body.scrollHeight+"px";c.innerHTML="";var d=ch(pui.designer.f.Ka);c=new pui.designer.f.XH(d.fz);d.Pa&&Qg(b);var e;for(d=0;d<c.Yp.length;d++){e=
4820
- c.Yp[d];var f=null;pui.designer.f.Ka.Bo||(f="grid-template-rows");a=new pui.designer.f.um(f);a.Ki=d+1;dh(a,eh(b,c.qk,4));a.Vk=c.qk[d];if(f)a.label=b.iR+" ("+b.vB+" "+(d+2)+")";a.jj(0,pui.designer.f.ib.body.scrollWidth,e);fh(a,"rowcolsize")}for(d=0;d<c.ap.length;d++){e=c.ap[d];f=null;if(!pui.designer.f.Ka.Bo&&b.HB)f="grid-template-columns";a=new pui.designer.f.xm(f);a.Ki=d+1;dh(a,eh(b,c.colWidths,4));a.Vk=c.colWidths[d];if(!pui.designer.f.Ka.Bo)a.label=b.HB?b.PQ+" ("+b.vB+" "+(d+2)+")":b.OQ+" "+b.vB+
4821
- " "+(d+2);a.jj(e,0,pui.designer.f.ib.body.scrollHeight);fh(a,"rowcolsize")}if(pui.designer.f.Ka.Bo)for(d=0;d<b.Ej;d++){a=pui.designer.f.Ka;a=d>=0&&d<a.Oo&&a.Te!=null?a.Te.childNodes[d]:void 0;if(a.className=="selected"){e={left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight,right:a.offsetLeft+a.offsetWidth,bottom:a.offsetTop+a.offsetHeight};f=new pui.designer.f.oq;f.jj(e.left,e.top,e.width,e.height);a=new pui.designer.f.um("grid-row-start");a.label=b.jR;dh(a,c.Yp);a.Ai=pui.designer.f.uu(e.top,
4822
- c.Yp,void 0);a.Wt=d;a.jj(e.left,e.right,e.top+3);fh(a,"start");f.PA=a;a=new pui.designer.f.um("grid-row-end");a.label=b.gR;dh(a,c.Yp);a.aH=true;a.Ai=pui.designer.f.uu(e.bottom,c.Yp,void 0);a.Wt=d;a.jj(e.left,e.right,e.bottom-3);fh(a,"end");f.Zq=a;a=new pui.designer.f.xm("grid-column-start");a.label=b.NQ;dh(a,c.ap);a.Ai=pui.designer.f.uu(e.left,c.ap,void 0);a.Wt=d;a.jj(e.left+3,e.top,e.bottom);fh(a,"start");f.cz=a;a=new pui.designer.f.xm("grid-column-end");a.label=b.LQ;dh(a,c.ap);a.Ai=pui.designer.f.uu(e.right,
4823
- c.ap,void 0);a.aH=true;a.Wt=d;a.jj(e.right-3,e.top,e.bottom);fh(a,"end");f.us=a}}else{a=new pui.designer.f.um("grid-row-gap");a.label=b.hR;a.jj(0,pui.designer.f.ib.body.scrollWidth,c.cA);a=new pui.designer.f.xm("grid-column-gap");a.label=b.MQ;a.jj(c.Qx,0,pui.designer.f.ib.body.scrollHeight)}}}}function eh(b,a,c){b=pui.designer.f.LH;for(var d=0;d<a.length;d++)if(a[d]>c&&a[d]<b)b=a[d];return b}
4824
- Ba.KI=function(b){if(b.Dg!=null){var a=b.Dg.getRootNode();if(a!=null&&a.childNodes!=null){var c={ag:""};Ug(pui.designer.f.Ka,a.childNodes,c);Oe(pui.designer.f.Ka,c.ag);Vg(b)}}};Ba.lS=function(){if(this.kC){clearTimeout(this.CS);this.CS=setTimeout(this.KI,1,this)}};
4817
+ function bh(b){pui.designer.f.Tl=pui.designer.f.ue.contentWindow;pui.designer.f.ib=pui.designer.f.Tl.document;var a=pui.designer.f.ib.createElement("link");a.setAttribute("rel","stylesheet");a.setAttribute("type","text/css");a.setAttribute("href","/profoundui/proddata/css/designer_respeditor.css");pui.designer.f.ib.head.appendChild(a);var c=pui.designer.f.ib.createElement("div");c.id="_id_";pui.designer.f.Ka=new pui.designer.f.Tf({Kz:true},c);Re(pui.designer.f.Ka,b.jh);pui.designer.f.Ka.fw(b.Ej);
4818
+ Oe(pui.designer.f.Ka,b.PR);pui.designer.f.ib.body.appendChild(c);c=pui.designer.f.ib.createElementNS(pui.Qi,"svg");pui.designer.f.ib.body.appendChild(c);Rg(b);$g(b);ac("containersAddRmv").value=b.Ej;pui.designer.f.Tl.addEventListener("resize",b);a.addEventListener("load",b);a.addEventListener("error",b);pui.designer.f.ib.body.addEventListener("click",b);pui.designer.f.ib.addEventListener("mousedown",b);pui.designer.f.ib.addEventListener("contextmenu",b);Zg(b)}
4819
+ function Rg(b){b.kC=false;var a;a=pui.designer.f.Ka;a=a.fd!=null&&a.fd.sheet!=null?a.fd.sheet.cssRules:void 0;var c=b.Dg.getRootNode();c.hasChildNodes()&&c.removeAll(true);ch(pui.designer.f.Ka,a,c);c.expand(true);b.kC=true;if(pui.designer.f.zk!=null){b.xt.select(pui.designer.f.zk);pui.designer.f.zk=null}}Ba.nS=function(){Rg(this);Wg(this);$g(this)};
4820
+ function Wg(b){var a;if(pui.is_ie){var c=pui.designer.f.ib.createElement("div");c.className="iewarn";c.innerHTML=b.XQ;pui.designer.f.ib.body.appendChild(c)}else{c=pui.designer.f.ib.querySelector("svg");if(c==null)console.log("svg was null.");else{c.style.width="";c.style.height="";c.style.width=pui.designer.f.ib.body.scrollWidth+"px";c.style.height=pui.designer.f.ib.body.scrollHeight+"px";c.innerHTML="";var d=dh(pui.designer.f.Ka);c=new pui.designer.f.XH(d.fz);d.Pa&&Rg(b);var e;for(d=0;d<c.Yp.length;d++){e=
4821
+ c.Yp[d];var f=null;pui.designer.f.Ka.Bo||(f="grid-template-rows");a=new pui.designer.f.um(f);a.Ki=d+1;eh(a,fh(b,c.qk,4));a.Vk=c.qk[d];if(f)a.label=b.iR+" ("+b.vB+" "+(d+2)+")";a.jj(0,pui.designer.f.ib.body.scrollWidth,e);gh(a,"rowcolsize")}for(d=0;d<c.ap.length;d++){e=c.ap[d];f=null;if(!pui.designer.f.Ka.Bo&&b.HB)f="grid-template-columns";a=new pui.designer.f.xm(f);a.Ki=d+1;eh(a,fh(b,c.colWidths,4));a.Vk=c.colWidths[d];if(!pui.designer.f.Ka.Bo)a.label=b.HB?b.PQ+" ("+b.vB+" "+(d+2)+")":b.OQ+" "+b.vB+
4822
+ " "+(d+2);a.jj(e,0,pui.designer.f.ib.body.scrollHeight);gh(a,"rowcolsize")}if(pui.designer.f.Ka.Bo)for(d=0;d<b.Ej;d++){a=pui.designer.f.Ka;a=d>=0&&d<a.Oo&&a.Te!=null?a.Te.childNodes[d]:void 0;if(a.className=="selected"){e={left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight,right:a.offsetLeft+a.offsetWidth,bottom:a.offsetTop+a.offsetHeight};f=new pui.designer.f.oq;f.jj(e.left,e.top,e.width,e.height);a=new pui.designer.f.um("grid-row-start");a.label=b.jR;eh(a,c.Yp);a.Ai=pui.designer.f.uu(e.top,
4823
+ c.Yp,void 0);a.Wt=d;a.jj(e.left,e.right,e.top+3);gh(a,"start");f.PA=a;a=new pui.designer.f.um("grid-row-end");a.label=b.gR;eh(a,c.Yp);a.aH=true;a.Ai=pui.designer.f.uu(e.bottom,c.Yp,void 0);a.Wt=d;a.jj(e.left,e.right,e.bottom-3);gh(a,"end");f.Zq=a;a=new pui.designer.f.xm("grid-column-start");a.label=b.NQ;eh(a,c.ap);a.Ai=pui.designer.f.uu(e.left,c.ap,void 0);a.Wt=d;a.jj(e.left+3,e.top,e.bottom);gh(a,"start");f.cz=a;a=new pui.designer.f.xm("grid-column-end");a.label=b.LQ;eh(a,c.ap);a.Ai=pui.designer.f.uu(e.right,
4824
+ c.ap,void 0);a.aH=true;a.Wt=d;a.jj(e.right-3,e.top,e.bottom);gh(a,"end");f.us=a}}else{a=new pui.designer.f.um("grid-row-gap");a.label=b.hR;a.jj(0,pui.designer.f.ib.body.scrollWidth,c.cA);a=new pui.designer.f.xm("grid-column-gap");a.label=b.MQ;a.jj(c.Qx,0,pui.designer.f.ib.body.scrollHeight)}}}}function fh(b,a,c){b=pui.designer.f.LH;for(var d=0;d<a.length;d++)if(a[d]>c&&a[d]<b)b=a[d];return b}
4825
+ Ba.KI=function(b){if(b.Dg!=null){var a=b.Dg.getRootNode();if(a!=null&&a.childNodes!=null){var c={ag:""};Vg(pui.designer.f.Ka,a.childNodes,c);Oe(pui.designer.f.Ka,c.ag);Wg(b)}}};Ba.lS=function(){if(this.kC){clearTimeout(this.CS);this.CS=setTimeout(this.KI,1,this)}};
4825
4826
  Ba.DS=function(){var b=this.xt.getSelectedNode()||this.Dg.getRootNode();if(b.leaf===true)b=b.parentNode;var a=b.attributes.ll;a=b.appendChild(a==window.CSSStyleRule.MEDIA_RULE?{text:"cssselector",leaf:false,ll:window.CSSStyleRule.STYLE_RULE}:a==window.CSSStyleRule.STYLE_RULE?{text:"cssproperty:cssvalue;",leaf:true,ll:window.CSSStyleRule.STYLE_RULE}:{text:"@media screen",leaf:false,ll:window.CSSStyleRule.MEDIA_RULE});b.loaded=true;b.expand();a.loaded=true};
4826
4827
  Ba.ES=function(){var b=this.xt.getSelectedNode();b!=null&&b.parentNode!=null&&b.parentNode.removeChild(b)};
4827
- function Yg(b){var a=b.be.layout.center.panel,c=b.eI+" ("+pui.designer.f.ue.clientWidth+"px "+b.wB+" x "+pui.designer.f.ue.clientHeight+"px "+b.WQ+", "+(pui.designer.f.ue.clientWidth>pui.designer.f.ue.clientHeight?b.ZQ:b.cR)+")",d=pui.designer.f.aD,e=d.getCount();if(e>1){var f=gh(pui.designer.f.Ka);if(f.length>0){c+="<p>"+b.eR+'</p><ul class="prevmatches">';for(var g=/^\d+-\d+/,h=0,m=f.length;h<m&&h<10;h++){var k=hh(pui.designer.f.Ka,f[h].conditionText);if(k.max<1)c+="<li>"+b.wB+": "+pui.designer.f.ro.prototype.fI;
4828
- else{c+="<li>"+b.wB+": "+k.min+"-"+k.max+" px";for(var n=0;n<e;n++){var i=d.getAt(n);if(i.data.minWidth==k.min&&i.data.maxWidth==k.max&&!g.test(i.data.label)){c+=" ("+i.data.label+")";break}}}}if(h==10)c+="<li>...";c+="</ul>";if(f.length>1)c+="<p>"+b.dR+"</p>"}}a.setTitle(c)}function Zg(){ih(pui.designer.f.Ka);var b=Ext.getCmp("explicitrows");b.setValue(jh(pui.designer.f.Ka,"rows"));b=Ext.getCmp("explicitcols");b.setValue(jh(pui.designer.f.Ka,"columns"))}
4829
- function Rg(b,a){var c,d,e,f;if(a!=null){f=a.data;f.minWidth=parseInt(f.minWidth,10);f.maxWidth=parseInt(f.maxWidth,10);f.height=parseInt(f.height,10);if(isNaN(f.minWidth))f.minWidth=null;if(isNaN(f.maxWidth))f.maxWidth=null;if(isNaN(f.height))f.height=null;Ext.getCmp("scrnsizedel").enable()}else Ext.getCmp("scrnsizedel").disable();if(f!=null&&f.maxWidth>0&&f.height>0){c=f.maxWidth+"px";d=f.height+"px";e=pui.designer.f.PH;Ext.getCmp("resprotatebtn").enable();f.minWidth>0?Ext.getCmp("previewWidthFromBtn").enable():
4830
- Ext.getCmp("previewWidthFromBtn").disable()}else{c=d=e="";Ext.getCmp("resprotatebtn").disable();Ext.getCmp("previewWidthFromBtn").disable()}pui.designer.f.ue.style.width=c;pui.designer.f.ue.style.height=d;pui.designer.f.ue.className=e;pui.designer.f.j=f;Zg(b)}function Tg(b,a){var c=[];for(var d=b.jh="",e=0;e<a.data.items.length;e++){var f=a.data.items[e].data.label;c.push(f);b.jh+=d+f;d=","}Re(pui.designer.f.Ka,c)}
4831
- Ba.dS=function(b){b.WI++;try{var a=pui.designer.f.ue.contentWindow.document}catch(c){clearInterval(b.ZB);console.log(c)}if(a.readyState=="complete"){clearInterval(b.ZB);ah(b)}else if(b.WI>=b.kS){console.log("Timed out waiting for iframe to load. Attempting anyway");clearInterval(b.ZB);ah(b)}};
4828
+ function Zg(b){var a=b.be.layout.center.panel,c=b.eI+" ("+pui.designer.f.ue.clientWidth+"px "+b.wB+" x "+pui.designer.f.ue.clientHeight+"px "+b.WQ+", "+(pui.designer.f.ue.clientWidth>pui.designer.f.ue.clientHeight?b.ZQ:b.cR)+")",d=pui.designer.f.aD,e=d.getCount();if(e>1){var f=hh(pui.designer.f.Ka);if(f.length>0){c+="<p>"+b.eR+'</p><ul class="prevmatches">';for(var g=/^\d+-\d+/,h=0,m=f.length;h<m&&h<10;h++){var k=ih(pui.designer.f.Ka,f[h].conditionText);if(k.max<1)c+="<li>"+b.wB+": "+pui.designer.f.ro.prototype.fI;
4829
+ else{c+="<li>"+b.wB+": "+k.min+"-"+k.max+" px";for(var n=0;n<e;n++){var i=d.getAt(n);if(i.data.minWidth==k.min&&i.data.maxWidth==k.max&&!g.test(i.data.label)){c+=" ("+i.data.label+")";break}}}}if(h==10)c+="<li>...";c+="</ul>";if(f.length>1)c+="<p>"+b.dR+"</p>"}}a.setTitle(c)}function $g(){jh(pui.designer.f.Ka);var b=Ext.getCmp("explicitrows");b.setValue(kh(pui.designer.f.Ka,"rows"));b=Ext.getCmp("explicitcols");b.setValue(kh(pui.designer.f.Ka,"columns"))}
4830
+ function Sg(b,a){var c,d,e,f;if(a!=null){f=a.data;f.minWidth=parseInt(f.minWidth,10);f.maxWidth=parseInt(f.maxWidth,10);f.height=parseInt(f.height,10);if(isNaN(f.minWidth))f.minWidth=null;if(isNaN(f.maxWidth))f.maxWidth=null;if(isNaN(f.height))f.height=null;Ext.getCmp("scrnsizedel").enable()}else Ext.getCmp("scrnsizedel").disable();if(f!=null&&f.maxWidth>0&&f.height>0){c=f.maxWidth+"px";d=f.height+"px";e=pui.designer.f.PH;Ext.getCmp("resprotatebtn").enable();f.minWidth>0?Ext.getCmp("previewWidthFromBtn").enable():
4831
+ Ext.getCmp("previewWidthFromBtn").disable()}else{c=d=e="";Ext.getCmp("resprotatebtn").disable();Ext.getCmp("previewWidthFromBtn").disable()}pui.designer.f.ue.style.width=c;pui.designer.f.ue.style.height=d;pui.designer.f.ue.className=e;pui.designer.f.j=f;$g(b)}function Ug(b,a){var c=[];for(var d=b.jh="",e=0;e<a.data.items.length;e++){var f=a.data.items[e].data.label;c.push(f);b.jh+=d+f;d=","}Re(pui.designer.f.Ka,c)}
4832
+ Ba.dS=function(b){b.WI++;try{var a=pui.designer.f.ue.contentWindow.document}catch(c){clearInterval(b.ZB);console.log(c)}if(a.readyState=="complete"){clearInterval(b.ZB);bh(b)}else if(b.WI>=b.kS){console.log("Timed out waiting for iframe to load. Attempting anyway");clearInterval(b.ZB);bh(b)}};
4832
4833
  Ba.hide=function(){if(this.be!=null){try{var b=this.be.getPosition(true),a=Ext.getCmp("respscreengrid"),c=a.getColumnModel(),d=this.be.layout.east.state&&this.be.layout.east.state.width?this.be.layout.east.state.width:this.be.layout.east.width,e={westWidth:this.be.layout.west.state&&this.be.layout.west.state.width?this.be.layout.west.state.width:this.be.layout.west.width,maximized:this.be.maximized,hgtColHide:c.isHidden(c.getIndexById("resphgtcol")),eastWidth:d,eastCollapsed:this.be.layout.east.isCollapsed};
4833
4834
  if(!this.be.maximized){e.winHeight=this.be.getHeight();e.winWidth=this.be.getWidth();e.winx=b[0];e.winy=b[1]}var f=a.store.getCount();if(f>0){b=[];for(c=0;c<f;c++){var g=a.store.getAt(c).data;b.push([g.label,g.minWidth,g.maxWidth,g.height])}e.screensizes=b}localStorage.setItem("pui-resp-editor-prefs",JSON.stringify(e))}catch(h){console.log(h)}this.be.close()}nc(this);pui.designer.f.Ka!=null&&pui.designer.f.Ka.destroy();try{delete pui.designer.f.Ka;delete pui.designer.f.ib;delete pui.designer.f.Tl;
4834
4835
  delete pui.designer.f.ue;delete pui.designer.f.ug;delete pui.designer.f.zk;delete pui.designer.f.j;delete pui.designer.f.aD;if(pui.designer.f.$b!=null){pui.designer.f.$b.destroy();delete pui.designer.f.$b}}catch(m){}};pui.designer.f.Au=function(b){var a=[],c=b.match(/^\s*([\d\.]+)(fr|px|%)\s*$/);if(c!=null){a[0]=Number(c[1]);a[1]=c[2]}else{c=b.match(/^(span) (\d+)$/);if(c!=null){a[0]=Number(c[2]);a[1]=c[1]}else{a[0]=Number(b);if(isNaN(a[0]))a[0]=b;a[1]=""}}return a};
4835
4836
  pui.designer.f.uu=function(b,a,c){var d=-1,e=0;if(isNaN(b)||b<0)return-1;for(;e<a.length;){a[e]=Math.floor(a[e]);if(b<a[e]||b==a[e]&&c){d=e;break}e++}if(e==a.length&&d==-1)d=a.length;return d};pui.designer.f.Xq=function(b,a,c){pui.designer.f.$A(b.style,a,c);b.As=c!=""?a:"self"};
4836
4837
  pui.designer.f.Wl=function(b,a){if(a=="grid-row-gap"||a=="row-gap"){if(typeof b["row-gap"]=="string"&&b["row-gap"].indexOf("px")>0)return b["row-gap"];a="grid-row-gap"}else if(a=="grid-column-gap"||a=="column-gap"){if(typeof b["column-gap"]=="string"&&b["column-gap"].indexOf("px")>0)return b["column-gap"];a="grid-column-gap"}if(b[a]==null)return"";return b[a]};pui.designer.f.$A=function(b,a,c){if(a=="row-gap")b["grid-row-gap"]=c;else if(a=="column-gap")b["grid-column-gap"]=c;else b[a]=c};
4837
- pui.designer.f.XH=function(b){this.qk=[];this.Yp=[];this.colWidths=[];this.ap=[];b["grid-template-rows"]!="none"&&lh(this,b["grid-template-rows"],this.qk);b["grid-template-columns"]!="none"&&lh(this,b["grid-template-columns"],this.colWidths);this.cA=Number(pui.designer.f.Wl(b,"grid-row-gap").replace("px",""));this.Qx=Number(pui.designer.f.Wl(b,"grid-column-gap").replace("px",""));if(isNaN(this.cA))this.cA=0;if(isNaN(this.Qx))this.Qx=0;b=0;var a;for(a=0;a<this.qk.length;a++){this.qk[a]=Number(this.qk[a]);
4838
- this.Yp.push(this.qk[a]+b);b+=this.qk[a]+this.cA}for(a=b=0;a<this.colWidths.length;a++){this.colWidths[a]=Number(this.colWidths[a]);this.ap.push(this.colWidths[a]+b);b+=this.colWidths[a]+this.Qx}};function lh(b,a,c){b=Te(pui.designer.f.Ka,a);for(a=0;a<b.length;a++){var d=pui.designer.f.Au(b[a]);c.push(d[0])}}pui.designer.f.Tf=function(b,a){pui.Tf.call(this,b,a);this.iI=2;this.Bo=false;this.Wf=null};pui.designer.f.Tf.prototype=Object.create(pui.Tf.prototype);Ba=pui.designer.f.Tf.prototype;
4838
+ pui.designer.f.XH=function(b){this.qk=[];this.Yp=[];this.colWidths=[];this.ap=[];b["grid-template-rows"]!="none"&&mh(this,b["grid-template-rows"],this.qk);b["grid-template-columns"]!="none"&&mh(this,b["grid-template-columns"],this.colWidths);this.cA=Number(pui.designer.f.Wl(b,"grid-row-gap").replace("px",""));this.Qx=Number(pui.designer.f.Wl(b,"grid-column-gap").replace("px",""));if(isNaN(this.cA))this.cA=0;if(isNaN(this.Qx))this.Qx=0;b=0;var a;for(a=0;a<this.qk.length;a++){this.qk[a]=Number(this.qk[a]);
4839
+ this.Yp.push(this.qk[a]+b);b+=this.qk[a]+this.cA}for(a=b=0;a<this.colWidths.length;a++){this.colWidths[a]=Number(this.colWidths[a]);this.ap.push(this.colWidths[a]+b);b+=this.colWidths[a]+this.Qx}};function mh(b,a,c){b=Te(pui.designer.f.Ka,a);for(a=0;a<b.length;a++){var d=pui.designer.f.Au(b[a]);c.push(d[0])}}pui.designer.f.Tf=function(b,a){pui.Tf.call(this,b,a);this.iI=2;this.Bo=false;this.Wf=null};pui.designer.f.Tf.prototype=Object.create(pui.Tf.prototype);Ba=pui.designer.f.Tf.prototype;
4839
4840
  Ba.fw=function(b){pui.Tf.prototype.fw.call(this,b);if(this.designMode&&!this.Rj){if(this.Uf==null){this.Uf=U.fr("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),this.c);this.Uf.style.right="2px";this.Uf.style.bottom="2px";this.Uf.addEventListener("click",this)}else this.Uf.parentNode==null&&this.c.appendChild(this.Uf);if(this.Oo>1)if(this.Gd==null){this.Gd=U.fr("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),
4840
4841
  this.c);this.Gd.style.right="2px";this.Gd.style.bottom="16px";this.Gd.addEventListener("click",this)}else this.Gd.parentNode==null&&this.c.appendChild(this.Gd);else if(this.Gd&&this.Gd.parentNode){this.Gd.parentNode.removeChild(this.Gd);delete this.Gd}if(this.Ui==null){this.Ui=document.createElement("div");this.Ui.setAttribute("title","Maximize");this.Ui.style.position="absolute";this.Ui.style.top="2px";this.Ui.style.right="2px";this.Ui.style.width="16px";this.Ui.style.height="16px";this.Ui.style.cursor=
4841
- "pointer";this.Ui.style.backgroundImage="url(/profoundui/proddata/images/icons/maximize.png)";this.Ui.onmousedown=pui.maximizeLayout;this.c.appendChild(this.Ui)}}};function Sg(b,a,c,d){for(var e=0;e<a.cssRules.length;e++){var f=a.cssRules[e];if(f.type==f.SUPPORTS_RULE)Sg(b,f,c,d);else f.type==f.MEDIA_RULE&&c(f,d)&&Sg(b,f,c,d)}}function gh(b){var a=[];if(b.fd==null||b.fd.sheet==null)return a;Sg(b,b.fd.sheet,b.aS,a);return a}
4842
- Ba.aS=function(b,a){if(pui.designer.f.Tl.matchMedia(b.conditionText).matches){a.push(b);return true}return false};function Pg(b,a,c,d){b.fd!=null&&b.fd.sheet!=null&&Sg(b,b.fd.sheet,b.KR,{RM:a,Fa:c,nd:d})}Ba.KR=function(b,a){for(var c=/and\s*\((min|max)-width:\s*(\d+)px\)/g,d,e=true;d=c.exec(b.conditionText);)if(d[1]==a.RM&&parseInt(d[2],10)==a.Fa){c=b.conditionText.replace(d[0],"and ("+a.RM+"-width: "+a.nd+"px)");b.media.mediaText=c;e=false;break}return e};
4842
+ "pointer";this.Ui.style.backgroundImage="url(/profoundui/proddata/images/icons/maximize.png)";this.Ui.onmousedown=pui.maximizeLayout;this.c.appendChild(this.Ui)}}};function Tg(b,a,c,d){for(var e=0;e<a.cssRules.length;e++){var f=a.cssRules[e];if(f.type==f.SUPPORTS_RULE)Tg(b,f,c,d);else f.type==f.MEDIA_RULE&&c(f,d)&&Tg(b,f,c,d)}}function hh(b){var a=[];if(b.fd==null||b.fd.sheet==null)return a;Tg(b,b.fd.sheet,b.aS,a);return a}
4843
+ Ba.aS=function(b,a){if(pui.designer.f.Tl.matchMedia(b.conditionText).matches){a.push(b);return true}return false};function Qg(b,a,c,d){b.fd!=null&&b.fd.sheet!=null&&Tg(b,b.fd.sheet,b.KR,{RM:a,Fa:c,nd:d})}Ba.KR=function(b,a){for(var c=/and\s*\((min|max)-width:\s*(\d+)px\)/g,d,e=true;d=c.exec(b.conditionText);)if(d[1]==a.RM&&parseInt(d[2],10)==a.Fa){c=b.conditionText.replace(d[0],"and ("+a.RM+"-width: "+a.nd+"px)");b.media.mediaText=c;e=false;break}return e};
4843
4844
  Ba.sS=function(b,a){var c=a.SM>0?RegExp("and\\s*\\(min-width:\\s*"+a.SM+"px\\s*\\)"):null,d=RegExp("and\\s*\\(max-width:\\s*"+a.xX+"px\\s*\\)"),e=false;e=c!=null?c.test(b.conditionText):true;c=d.test(b.conditionText);if(e&&c){if(b.parentRule!=null)e=b.parentRule;else if(b.parentStyleSheet!=null)e=b.parentStyleSheet;else return true;for(c=0;c<e.cssRules.length;c++)if(e.cssRules[c]==b){e.deleteRule(c);return false}}return true};
4844
- function Xg(b,a){var c=[],d=b.Te;if(typeof a=="number"&&a>=0&&a<=b.Oo)d=b.Te.childNodes[a];mh(b,b.fd.sheet,{wl:false,media:""},d,c);return c}
4845
- function mh(b,a,c,d,e){for(var f=0;f<a.cssRules.length;f++){var g=a.cssRules[f];if(g.type==g.SUPPORTS_RULE)mh(b,g,c,d,e);else if(g.type==g.MEDIA_RULE){var h=pui.designer.f.Tl.matchMedia(g.conditionText);if(h.matches){var m=c.wl,k=c.media;c.wl=true;c.media=h.media;mh(b,g,c,d,e);c.wl=m;c.media=k}}else if(g.type==g.STYLE_RULE)if(d==null||d.matches(g.selectorText))e.push({node:g,Oy:c.wl,media:c.media})}}
4846
- function nh(b,a,c,d,e){var f;if(c!=null&&c>=0)f=RegExp("\\."+pui.designer.f.Ka.Xs+"\\s*>\\s*(div:nth-of-type\\(\\s*"+(c+1)+"\\s*\\)|div:nth-child\\(\\s*"+(c+1)+"\\s*\\))");var g={$f:null,uC:null};c=Xg(b,c);for(var h=0;h<c.length;h++)if(!d||f==null||f.test(c[h].node.selectorText)){var m;if(!(m=e!==true))a:{for(m=c[h].node.parentRule;m!=null;){if(m==b.Wf){m=true;break a}m=m.parentRule}m=false}if(m)if(g.$f==null||g.$f.Oy==false||c[h].Oy)if(pui.designer.f.Wl(c[h].node.style,a)!="")g.$f=c[h];else g.uC=
4845
+ function Yg(b,a){var c=[],d=b.Te;if(typeof a=="number"&&a>=0&&a<=b.Oo)d=b.Te.childNodes[a];nh(b,b.fd.sheet,{wl:false,media:""},d,c);return c}
4846
+ function nh(b,a,c,d,e){for(var f=0;f<a.cssRules.length;f++){var g=a.cssRules[f];if(g.type==g.SUPPORTS_RULE)nh(b,g,c,d,e);else if(g.type==g.MEDIA_RULE){var h=pui.designer.f.Tl.matchMedia(g.conditionText);if(h.matches){var m=c.wl,k=c.media;c.wl=true;c.media=h.media;nh(b,g,c,d,e);c.wl=m;c.media=k}}else if(g.type==g.STYLE_RULE)if(d==null||d.matches(g.selectorText))e.push({node:g,Oy:c.wl,media:c.media})}}
4847
+ function oh(b,a,c,d,e){var f;if(c!=null&&c>=0)f=RegExp("\\."+pui.designer.f.Ka.Xs+"\\s*>\\s*(div:nth-of-type\\(\\s*"+(c+1)+"\\s*\\)|div:nth-child\\(\\s*"+(c+1)+"\\s*\\))");var g={$f:null,uC:null};c=Yg(b,c);for(var h=0;h<c.length;h++)if(!d||f==null||f.test(c[h].node.selectorText)){var m;if(!(m=e!==true))a:{for(m=c[h].node.parentRule;m!=null;){if(m==b.Wf){m=true;break a}m=m.parentRule}m=false}if(m)if(g.$f==null||g.$f.Oy==false||c[h].Oy)if(pui.designer.f.Wl(c[h].node.style,a)!="")g.$f=c[h];else g.uC=
4847
4848
  c[h].node}if(g.$f!=null)g.$f=g.$f.node;return g}
4848
- function ih(b){b.Wf=null;var a,c,d=pui.designer.f.j;a=pui.designer.f.ue;if(a.className!=pui.designer.f.PH){a=gh(b);if(a!=null)for(var e=0,f=a.length;e<f;e++){c=a[e];if(/^\s*screen\s*$/.test(c.conditionText))b.Wf=c}}else if(d!=null&&d.maxWidth!=a.clientWidth&&d.minWidth!=a.clientWidth){a=gh(b);if(a!=null){e=0;for(f=a.length;e<f;e++)b.Wf=a[e]}}else if(d!=null){a=[];Sg(b,b.fd.sheet,b.$R,a);e=0;for(f=a.length;e<f&&(c=a[e]);e++)if(c.conditionText!="screen"){var g=hh(b,c.conditionText);if(d.minWidth==g.min&&
4849
- d.maxWidth==g.max)b.Wf=c}}}Ba.$R=function(b,a){a.push(b);return true};function oh(b){var a=pui.designer.f.j,c="";if(a!=null&&a.maxWidth!=null&&a.maxWidth>2){if(a.minWidth>1)c+=" and (min-width:"+a.minWidth+"px)";c+=" and (max-width:"+a.maxWidth+"px)"}a="@media screen"+c+"{}";try{var d=b.fd.sheet.insertRule(a,c==""?0:b.fd.sheet.cssRules.length)}catch(e){console.log(a);throw e;}b.Wf=b.fd.sheet.cssRules[d]}
4850
- function hh(b,a){var c,d={min:0,max:-1},e=/^(not|only)?\s*(all|screen)(.*)$/.exec(a);if(e!=null){e=e[3];for(var f=/\(\s*(max|min)-width\s*:\s*(\d+)px\s*\)/g;(c=f.exec(e))!=null;){var g=c[1];c=parseInt(c[2],10);if(g=="min")d.min=c;else d.max=c}}return d}
4851
- function bh(b,a,c){for(var d,e,f=0;f<a.length;f++){var g=a[f];if(g.type==g.STYLE_RULE){d=c.appendChild({text:g.selectorText,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.MM=d;if(g.As!=null&&g.As=="self"){pui.designer.f.zk=d;delete g.As}if(g.style!=null&&g.style.length>0)for(var h=0;h<g.style.length;h++){var m=g.style[h];e=pui.designer.f.Wl(g.style,m);e=d.appendChild({text:m+":"+e+";",leaf:true,ll:g.type,allowChildren:false});if(g.As!=null&&g.As==m){pui.designer.f.zk=e;delete g.As}}}else if(g.type==
4852
- g.MEDIA_RULE){m=g.conditionText||g.media.mediaText;d="@media "+m;h=pui.designer.f.aD;m=hh(b,m);if(!(m.max<0)){e=true;for(var k=-1;e&&(k=h.find("maxWidth",m.max,k+1))>=0;){var n=h.getAt(k);if(n.data.minWidth==m.min)e=false}if(e){n=new h.recordType({label:m.min+"-"+m.max+" wide",minWidth:m.min,maxWidth:m.max,height:1E3});h.add([n])}}d=c.appendChild({text:d,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.cssRules!=null&&g.cssRules.length>0&&bh(b,g.cssRules,d)}else if(g.type==g.SUPPORTS_RULE){d=
4853
- "@supports "+g.conditionText;d=c.appendChild({text:d,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.cssRules!=null&&g.cssRules.length>0&&bh(b,g.cssRules,d)}else if(g.type==g.IMPORT_RULE){d=c.appendChild({text:g.cssText,leaf:true,ll:g.type,allowChildren:false});d.loaded=true}else if(g.cssText!=null&&g.cssText.length>0){d=c.appendChild({text:g.cssText,leaf:true,ll:g.type,allowChildren:false});d.loaded=true}}}
4854
- function Ug(b,a,c){for(var d=0;d<a.length;d++){var e=a[d],f=null;if(e.childNodes!=null)f=e.childNodes;else if(e.attributes!=null&&e.attributes.children!=null)f=e.attributes.children;var g=true;if(e.leaf!=null)g=e.leaf;else if(e.attributes!=null&&e.attributes.leaf!=null)g=e.attributes.leaf;c.ag+=e.text+" ";if(!g){c.ag+="{ ";f!=null&&Ug(b,f,c);c.ag+="} "}}}
4855
- function ph(b,a,c){var d,e="auto";switch(a){case "grid-column-gap":case "grid-row-gap":e="0px";break}d=e;b.Wf==null&&oh(b);e=nh(b,a,c,true,true);if(e.$f==null){var f=nh(b,a,c,false);if(f.$f!=null)d=pui.designer.f.Wl(f.$f.style,a);if(e.uC!=null){e.$f=e.uC;pui.designer.f.$A(e.$f.style,a,d)}else{a=c!=null?"#_id_ > ."+b.Xs+" > div:nth-of-type("+(c+1)+"){"+a+":"+d+";}":"#_id_ > ."+b.Xs+" {"+a+":"+d+";}";f=/div:nth-of-type\((\d+)\)/;for(d=0;d<b.Wf.cssRules.length;d++){var g=f.exec(b.Wf.cssRules[d].selectorText);
4849
+ function jh(b){b.Wf=null;var a,c,d=pui.designer.f.j;a=pui.designer.f.ue;if(a.className!=pui.designer.f.PH){a=hh(b);if(a!=null)for(var e=0,f=a.length;e<f;e++){c=a[e];if(/^\s*screen\s*$/.test(c.conditionText))b.Wf=c}}else if(d!=null&&d.maxWidth!=a.clientWidth&&d.minWidth!=a.clientWidth){a=hh(b);if(a!=null){e=0;for(f=a.length;e<f;e++)b.Wf=a[e]}}else if(d!=null){a=[];Tg(b,b.fd.sheet,b.$R,a);e=0;for(f=a.length;e<f&&(c=a[e]);e++)if(c.conditionText!="screen"){var g=ih(b,c.conditionText);if(d.minWidth==g.min&&
4850
+ d.maxWidth==g.max)b.Wf=c}}}Ba.$R=function(b,a){a.push(b);return true};function ph(b){var a=pui.designer.f.j,c="";if(a!=null&&a.maxWidth!=null&&a.maxWidth>2){if(a.minWidth>1)c+=" and (min-width:"+a.minWidth+"px)";c+=" and (max-width:"+a.maxWidth+"px)"}a="@media screen"+c+"{}";try{var d=b.fd.sheet.insertRule(a,c==""?0:b.fd.sheet.cssRules.length)}catch(e){console.log(a);throw e;}b.Wf=b.fd.sheet.cssRules[d]}
4851
+ function ih(b,a){var c,d={min:0,max:-1},e=/^(not|only)?\s*(all|screen)(.*)$/.exec(a);if(e!=null){e=e[3];for(var f=/\(\s*(max|min)-width\s*:\s*(\d+)px\s*\)/g;(c=f.exec(e))!=null;){var g=c[1];c=parseInt(c[2],10);if(g=="min")d.min=c;else d.max=c}}return d}
4852
+ function ch(b,a,c){for(var d,e,f=0;f<a.length;f++){var g=a[f];if(g.type==g.STYLE_RULE){d=c.appendChild({text:g.selectorText,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.MM=d;if(g.As!=null&&g.As=="self"){pui.designer.f.zk=d;delete g.As}if(g.style!=null&&g.style.length>0)for(var h=0;h<g.style.length;h++){var m=g.style[h];e=pui.designer.f.Wl(g.style,m);e=d.appendChild({text:m+":"+e+";",leaf:true,ll:g.type,allowChildren:false});if(g.As!=null&&g.As==m){pui.designer.f.zk=e;delete g.As}}}else if(g.type==
4853
+ g.MEDIA_RULE){m=g.conditionText||g.media.mediaText;d="@media "+m;h=pui.designer.f.aD;m=ih(b,m);if(!(m.max<0)){e=true;for(var k=-1;e&&(k=h.find("maxWidth",m.max,k+1))>=0;){var n=h.getAt(k);if(n.data.minWidth==m.min)e=false}if(e){n=new h.recordType({label:m.min+"-"+m.max+" wide",minWidth:m.min,maxWidth:m.max,height:1E3});h.add([n])}}d=c.appendChild({text:d,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.cssRules!=null&&g.cssRules.length>0&&ch(b,g.cssRules,d)}else if(g.type==g.SUPPORTS_RULE){d=
4854
+ "@supports "+g.conditionText;d=c.appendChild({text:d,leaf:false,expandable:true,ll:g.type});d.loaded=true;g.cssRules!=null&&g.cssRules.length>0&&ch(b,g.cssRules,d)}else if(g.type==g.IMPORT_RULE){d=c.appendChild({text:g.cssText,leaf:true,ll:g.type,allowChildren:false});d.loaded=true}else if(g.cssText!=null&&g.cssText.length>0){d=c.appendChild({text:g.cssText,leaf:true,ll:g.type,allowChildren:false});d.loaded=true}}}
4855
+ function Vg(b,a,c){for(var d=0;d<a.length;d++){var e=a[d],f=null;if(e.childNodes!=null)f=e.childNodes;else if(e.attributes!=null&&e.attributes.children!=null)f=e.attributes.children;var g=true;if(e.leaf!=null)g=e.leaf;else if(e.attributes!=null&&e.attributes.leaf!=null)g=e.attributes.leaf;c.ag+=e.text+" ";if(!g){c.ag+="{ ";f!=null&&Vg(b,f,c);c.ag+="} "}}}
4856
+ function qh(b,a,c){var d,e="auto";switch(a){case "grid-column-gap":case "grid-row-gap":e="0px";break}d=e;b.Wf==null&&ph(b);e=oh(b,a,c,true,true);if(e.$f==null){var f=oh(b,a,c,false);if(f.$f!=null)d=pui.designer.f.Wl(f.$f.style,a);if(e.uC!=null){e.$f=e.uC;pui.designer.f.$A(e.$f.style,a,d)}else{a=c!=null?"#_id_ > ."+b.Xs+" > div:nth-of-type("+(c+1)+"){"+a+":"+d+";}":"#_id_ > ."+b.Xs+" {"+a+":"+d+";}";f=/div:nth-of-type\((\d+)\)/;for(d=0;d<b.Wf.cssRules.length;d++){var g=f.exec(b.Wf.cssRules[d].selectorText);
4856
4857
  if(g&&g[1]){g=parseInt(g[1],10);if(!isNaN(g)&&g>c+1)break}}try{d=b.Wf.insertRule(a,d);e.$f=b.Wf.cssRules[d]}catch(h){console.log(a);throw h;}}}return e.$f}
4857
- function ch(b){var a,c={Pa:false,fz:null},d=pui.designer.f.Tl.getComputedStyle(b.Te);a=Xg(b);var e=a.length==0;if(e){ih(b);b.Wf==null&&oh(b);a=b.Wf.insertRule("#_id_ > ."+b.Xs+" {}",b.Wf.cssRules.length);a=b.Wf.cssRules[a]}else a=a[0].node;if(d.display!="grid")a.style.display="grid";if(d["grid-template-columns"]=="")a.style["grid-template-columns"]="repeat(4,1fr)";else if(e){var f=d["grid-template-columns"].split(" ");a.style["grid-template-columns"]=f.length<2?"repeat(4,1fr)":"repeat("+f.length+
4858
+ function dh(b){var a,c={Pa:false,fz:null},d=pui.designer.f.Tl.getComputedStyle(b.Te);a=Yg(b);var e=a.length==0;if(e){jh(b);b.Wf==null&&ph(b);a=b.Wf.insertRule("#_id_ > ."+b.Xs+" {}",b.Wf.cssRules.length);a=b.Wf.cssRules[a]}else a=a[0].node;if(d.display!="grid")a.style.display="grid";if(d["grid-template-columns"]=="")a.style["grid-template-columns"]="repeat(4,1fr)";else if(e){var f=d["grid-template-columns"].split(" ");a.style["grid-template-columns"]=f.length<2?"repeat(4,1fr)":"repeat("+f.length+
4858
4859
  ",1fr)"}if(pui.designer.f.Wl(d,"grid-row-gap")==""||e)pui.designer.f.$A(a.style,"grid-row-gap","1px");if(pui.designer.f.Wl(d,"grid-column-gap")==""||e)pui.designer.f.$A(a.style,"grid-column-gap","1px");if(e&&a.style.length>0){d=pui.designer.f.Tl.getComputedStyle(b.Te);c.Pa=true}c.fz=d;return c}
4859
- function $g(b,a,c){if(a!=null){a=parseInt(a,10);if(!(isNaN(a)||a<1||a>99)){ih(b);c="grid-template-"+c;var d=ph(b,c,null),e=pui.designer.f.Wl(d.style,c);b=Te(b,e);if(b.length<a){for(e=b[b.length-1];b.length<a;)b.push(e);e=b.join(" ")}else if(b.length>a)if(a==1)e="auto";else{b.splice(a,b.length-a);e=b.join(" ")}pui.designer.f.Xq(d,c,e)}}}
4860
- function Wg(b,a,c,d){ih(b);a="grid-template-"+a;var e=ph(b,a,null);if(e.style[a]!=null)if(d)pui.designer.f.Xq(e,a,c);else{b=Te(b,e.style[a]).length;if(b<1)b=1;pui.designer.f.Xq(e,a,"repeat("+b+","+c+")")}}function jh(b,a){var c="grid-template-"+a,d=nh(b,c,null,true,true);if(d.$f!=null)return Te(b,d.$f.style[c]).length;return 0}pui.designer.f.Tf.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Uf)qh(this,1);else b.target==this.Gd&&qh(this,-1);break}};
4861
- function qh(b,a){var c=T.designer.zh(b.c),d=c.properties["layout items"];if(pui.h(d)){var e=parseInt(d.designValue,10);if(isNaN(e))e=b.iI;e+=a;d.designValue=e}else{d=parseInt(d,10);if(isNaN(d))d=b.iI;d+=a}Ag(b,c,d)}function Ag(b,a,c){b.Et(a,"layout items",c,"Change Layout Items")}
4860
+ function ah(b,a,c){if(a!=null){a=parseInt(a,10);if(!(isNaN(a)||a<1||a>99)){jh(b);c="grid-template-"+c;var d=qh(b,c,null),e=pui.designer.f.Wl(d.style,c);b=Te(b,e);if(b.length<a){for(e=b[b.length-1];b.length<a;)b.push(e);e=b.join(" ")}else if(b.length>a)if(a==1)e="auto";else{b.splice(a,b.length-a);e=b.join(" ")}pui.designer.f.Xq(d,c,e)}}}
4861
+ function Xg(b,a,c,d){jh(b);a="grid-template-"+a;var e=qh(b,a,null);if(e.style[a]!=null)if(d)pui.designer.f.Xq(e,a,c);else{b=Te(b,e.style[a]).length;if(b<1)b=1;pui.designer.f.Xq(e,a,"repeat("+b+","+c+")")}}function kh(b,a){var c="grid-template-"+a,d=oh(b,c,null,true,true);if(d.$f!=null)return Te(b,d.$f.style[c]).length;return 0}pui.designer.f.Tf.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Uf)rh(this,1);else b.target==this.Gd&&rh(this,-1);break}};
4862
+ function rh(b,a){var c=T.designer.zh(b.c),d=c.properties["layout items"];if(pui.h(d)){var e=parseInt(d.designValue,10);if(isNaN(e))e=b.iI;e+=a;d.designValue=e}else{d=parseInt(d,10);if(isNaN(d))d=b.iI;d+=a}Bg(b,c,d)}function Bg(b,a,c){b.Et(a,"layout items",c,"Change Layout Items")}
4862
4863
  pui.designer.f.Tf.prototype.Et=function(b,a,c,d){var e=this.c.Jf[a];b.designer.s.start(d);b.designer.s.add(b,e.name);ad(e,b.properties,b.dom,c,true,b,null);b.p[a]=true;b.Pa=true;b.designer.qa[b.designer.j.n]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.k.refresh()};pui.designer.f.oq=function(){this.ai=this.cz=this.us=this.Zq=this.PA=null;this.PB=this.QB=this.nt=this.mt=0;this.Eo=false};
4863
- pui.designer.f.oq.prototype.Fm=function(b){this.eC=b.clientX;this.fC=b.clientY;this.jt=false;ih(pui.designer.f.Ka);pui.designer.f.ib.addEventListener("mousemove",this);pui.designer.f.ib.addEventListener("mouseup",this);document.addEventListener("mouseup",this);b.preventDefault()};
4864
- pui.designer.f.oq.prototype.Mo=function(b){if(!this.jt){this.jt=true;this.PA.display(false);this.cz.display(false);this.us.display(false);this.Zq.display(false);this.us.Mt=false;this.Zq.Mt=false;rh(this.PA);rh(this.cz);rh(this.us);rh(this.Zq)}var a=b.clientX-this.eC,c=b.clientY-this.fC;b=this.nt+c+10;var d=this.mt+a+10;c=this.nt+this.PB+c-10;a=this.mt+this.QB+a-10;this.PA.ds(0,this.nt,0,b);this.cz.ds(this.mt,0,d,0);this.us.ds(this.mt+this.QB,0,a,0);this.Zq.ds(0,this.nt+this.PB,0,c);this.Eo=true;this.ai.setAttribute("x",
4864
+ pui.designer.f.oq.prototype.Fm=function(b){this.eC=b.clientX;this.fC=b.clientY;this.jt=false;jh(pui.designer.f.Ka);pui.designer.f.ib.addEventListener("mousemove",this);pui.designer.f.ib.addEventListener("mouseup",this);document.addEventListener("mouseup",this);b.preventDefault()};
4865
+ pui.designer.f.oq.prototype.Mo=function(b){if(!this.jt){this.jt=true;this.PA.display(false);this.cz.display(false);this.us.display(false);this.Zq.display(false);this.us.Mt=false;this.Zq.Mt=false;sh(this.PA);sh(this.cz);sh(this.us);sh(this.Zq)}var a=b.clientX-this.eC,c=b.clientY-this.fC;b=this.nt+c+10;var d=this.mt+a+10;c=this.nt+this.PB+c-10;a=this.mt+this.QB+a-10;this.PA.ds(0,this.nt,0,b);this.cz.ds(this.mt,0,d,0);this.us.ds(this.mt+this.QB,0,a,0);this.Zq.ds(0,this.nt+this.PB,0,c);this.Eo=true;this.ai.setAttribute("x",
4865
4866
  d);this.ai.setAttribute("y",b);this.ai.setAttribute("width",a-d);this.ai.setAttribute("height",c-b)};pui.designer.f.oq.prototype.No=function(){pui.designer.f.ib.removeEventListener("mousemove",this);pui.designer.f.ib.removeEventListener("mouseup",this);document.removeEventListener("mouseup",this);if(this.Eo){pui.designer.f.ug();this.Eo=false}this.us.Mt=true;this.Zq.Mt=true};
4866
4867
  pui.designer.f.oq.prototype.handleEvent=function(b){switch(b.type){case "mousedown":this.Fm(b);break;case "mousemove":this.Mo(b);break;case "mouseup":this.No(b);break}};
4867
4868
  pui.designer.f.oq.prototype.jj=function(b,a,c,d){var e=pui.designer.f.ib.querySelector("svg");this.ai=pui.designer.f.ib.createElementNS(pui.Qi,"rect");this.ai.setAttribute("class","drag");this.ai.setAttribute("x",b);this.ai.setAttribute("y",a);this.ai.setAttribute("width",c);this.ai.setAttribute("height",d);e.appendChild(this.ai);this.ai.addEventListener("mousedown",this);this.mt=b;this.nt=a;this.PB=d;this.QB=c};
4868
4869
  pui.designer.f.qq=function(b){this.Ai=-1;this.Ki=0;this.Wt=this.Vk=this.label=null;this.aH=false;this.Mt=true;this.Xf=b;this.ht=this.ke=this.$d=this.pt=null;this.CR=this.Xf!=null&&this.Xf.match(/grid-(column|row)-end/)!=null;this.AR=this.Xf!=null&&this.Xf.match(/grid-(column|row)-start/)!=null;this.BR=this.Xf!=null&&this.Xf.match(/grid-template-(rows|columns)/)!=null;this.TI=/minmax\(\s*(\S*)\s*,\s*(\S*)\s*\)/;this.Po=100;this.Gj=null};
4869
- function dh(b,a){if(typeof a=="number"){if(a<1)a=pui.designer.f.LH;b.Gj=a}else b.Gj=typeof a=="object"&&a!==null&&a.length>0?a:null}Ba=pui.designer.f.qq.prototype;Ba.Fm=function(b){this.eC=b.clientX+pui.designer.f.ib.body.scrollLeft;this.fC=b.clientY+pui.designer.f.ib.body.scrollTop;this.Eo=this.jt=false;ih(pui.designer.f.Ka);pui.designer.f.ib.addEventListener("mousemove",this);pui.designer.f.ib.addEventListener("mouseup",this);document.addEventListener("mouseup",this);b.preventDefault()};
4870
- Ba.Mo=function(b){if(!this.jt){for(var a=pui.designer.f.ib.querySelector("svg"),c=0;c<a.childNodes.length;c++){var d=a.childNodes[c],e=d.getAttribute("class");d.style.display=d!=this.$d&&d!=this.ke&&e!=null&&e.indexOf("drag")>=0?"none":""}this.jt=true;rh(this)}this.ds(this.eC,this.fC,b.clientX+pui.designer.f.ib.body.scrollLeft,b.clientY+pui.designer.f.ib.body.scrollTop);this.Eo=true};
4870
+ function eh(b,a){if(typeof a=="number"){if(a<1)a=pui.designer.f.LH;b.Gj=a}else b.Gj=typeof a=="object"&&a!==null&&a.length>0?a:null}Ba=pui.designer.f.qq.prototype;Ba.Fm=function(b){this.eC=b.clientX+pui.designer.f.ib.body.scrollLeft;this.fC=b.clientY+pui.designer.f.ib.body.scrollTop;this.Eo=this.jt=false;jh(pui.designer.f.Ka);pui.designer.f.ib.addEventListener("mousemove",this);pui.designer.f.ib.addEventListener("mouseup",this);document.addEventListener("mouseup",this);b.preventDefault()};
4871
+ Ba.Mo=function(b){if(!this.jt){for(var a=pui.designer.f.ib.querySelector("svg"),c=0;c<a.childNodes.length;c++){var d=a.childNodes[c],e=d.getAttribute("class");d.style.display=d!=this.$d&&d!=this.ke&&e!=null&&e.indexOf("drag")>=0?"none":""}this.jt=true;sh(this)}this.ds(this.eC,this.fC,b.clientX+pui.designer.f.ib.body.scrollLeft,b.clientY+pui.designer.f.ib.body.scrollTop);this.Eo=true};
4871
4872
  Ba.No=function(){pui.designer.f.ib.removeEventListener("mousemove",this);pui.designer.f.ib.removeEventListener("mouseup",this);document.removeEventListener("mouseup",this);if(this.Eo){pui.designer.f.ug();this.Eo=false}delete this.J};
4872
- function rh(b){b.J={YC:false};if(b.Xf!=null){b.ht=ph(pui.designer.f.Ka,b.Xf,b.Wt);b.pt=pui.designer.f.Wl(b.ht.style,b.Xf);if(b.pt!=null){b.J.YC=true;b.J.Sl=b.pt;b.J.nd=b.J.Sl;if(b.Ki>0){for(b.J.fo=Te(pui.designer.f.Ka,b.pt);b.J.fo.length<b.Ki;)b.J.fo.push("auto");b.J.nd=b.J.fo[b.Ki-1];b.J.Fa=pui.designer.f.Au(b.J.fo[b.Ki-1])}else b.J.Fa=pui.designer.f.Au(b.pt)}}}function sh(b,a){var c=ch(pui.designer.f.Ka);c=new pui.designer.f.XH(c.fz);if(a>=0&&c!=null)return b.JI(c,a);return null}
4873
- function th(b){var a;if(b.label!=null)a=b.label;else if(b.Xf!=null){a=b.Xf;if(b.Ki>0)a+=" "+b.Ki}else a="";return a}
4874
- function uh(b,a){var c,d,e,f;if(!(b.J==null||!b.J.YC)){if(b.Ki>0){if(a!=0&&b.J.Fa[0]=="auto"&&b.BR&&!isNaN(b.Vk)){b.J.Fa[0]=Math.round(b.Vk);b.J.Fa[1]="px"}if(b.J.Fa[1]=="px"){b.J.nd=Math.round(b.J.Fa[0]+a);if(b.J.nd<0)b.J.nd=0;b.J.nd+="px"}else if(b.J.Fa[1]=="%"){b.J.nd=pui.round(b.J.Fa[0]+Math.floor(a*100/b.Po),2);if(b.J.nd<0)b.J.nd=0;b.J.nd+="%"}else if(b.Gj!=null){c=vh(b,a);if(typeof b.J.Fa[0]=="number"&&b.J.Fa[1]=="fr"){b.J.nd=b.J.Fa[0]+c;if(b.J.nd<0)b.J.nd=0;b.J.nd+="fr"}else if(typeof b.J.Fa[0]==
4873
+ function sh(b){b.J={YC:false};if(b.Xf!=null){b.ht=qh(pui.designer.f.Ka,b.Xf,b.Wt);b.pt=pui.designer.f.Wl(b.ht.style,b.Xf);if(b.pt!=null){b.J.YC=true;b.J.Sl=b.pt;b.J.nd=b.J.Sl;if(b.Ki>0){for(b.J.fo=Te(pui.designer.f.Ka,b.pt);b.J.fo.length<b.Ki;)b.J.fo.push("auto");b.J.nd=b.J.fo[b.Ki-1];b.J.Fa=pui.designer.f.Au(b.J.fo[b.Ki-1])}else b.J.Fa=pui.designer.f.Au(b.pt)}}}function th(b,a){var c=dh(pui.designer.f.Ka);c=new pui.designer.f.XH(c.fz);if(a>=0&&c!=null)return b.JI(c,a);return null}
4874
+ function uh(b){var a;if(b.label!=null)a=b.label;else if(b.Xf!=null){a=b.Xf;if(b.Ki>0)a+=" "+b.Ki}else a="";return a}
4875
+ function vh(b,a){var c,d,e,f;if(!(b.J==null||!b.J.YC)){if(b.Ki>0){if(a!=0&&b.J.Fa[0]=="auto"&&b.BR&&!isNaN(b.Vk)){b.J.Fa[0]=Math.round(b.Vk);b.J.Fa[1]="px"}if(b.J.Fa[1]=="px"){b.J.nd=Math.round(b.J.Fa[0]+a);if(b.J.nd<0)b.J.nd=0;b.J.nd+="px"}else if(b.J.Fa[1]=="%"){b.J.nd=pui.round(b.J.Fa[0]+Math.floor(a*100/b.Po),2);if(b.J.nd<0)b.J.nd=0;b.J.nd+="%"}else if(b.Gj!=null){c=wh(b,a);if(typeof b.J.Fa[0]=="number"&&b.J.Fa[1]=="fr"){b.J.nd=b.J.Fa[0]+c;if(b.J.nd<0)b.J.nd=0;b.J.nd+="fr"}else if(typeof b.J.Fa[0]==
4875
4876
  "string"&&!isNaN(b.Vk)&&b.J.Fa[0].match(b.TI)!=null){c=b.J.Fa[0].match(b.TI);d=pui.designer.f.Au(c[1]);e=pui.designer.f.Au(c[2]);f=Math.round(100*b.Vk/b.Po);if(d[0]==b.Vk&&d[1]=="px"){d=Math.round(d[0]+a);if(d<0)d=0;b.J.nd="minmax("+d+"px,"+c[2]+")"}else if(d[1]=="%"&&d[0]-1<=f&&f<=d[0]+1){d=pui.round(d[0]+Math.floor(a*100/b.Po),2);if(d<0)d=0;b.J.nd="minmax("+d+"%,"+c[2]+")"}else if(e[1]=="px"){e=Math.round(e[0]+a);if(e<0)e=0;if(d[1]=="px"&&e<=d[0]){c[1]=e+"px";e=d[0]}b.J.nd="minmax("+c[1]+","+e+
4876
- "px)"}else if(e[1]=="%"){e=pui.round(e[0]+Math.floor(a*100/b.Po),2);if(e<0)e=0;if(d[1]=="%"&&e<=d[0]){c[1]=e+"%";e=d[0]}b.J.nd="minmax("+c[1]+","+e+"%)"}else if(e[0]=="auto"&&b.Vk>0&&a<0){e=Math.round(b.Vk+a);if(e<0)e=0;if(d[1]=="px"&&e<=d[0]){c[1]=e+"px";e=d[0]}b.J.nd="minmax("+c[1]+","+e+"px)"}}}b.J.fo[b.Ki-1]=b.J.nd;b.J.Sl=b.J.fo.join(" ")}else{if(b.J.Fa[1]=="px")b.J.Sl=b.J.Fa[0]+a+"px";else if(b.Gj!=null){c=vh(b,a);if(c!=0&&b.J.Fa[0]=="auto")if(b.CR){b.J.Fa[0]=1;b.J.Fa[1]="span"}else if(b.AR&&
4877
- b.Ai>=0){b.J.Fa[0]=b.Ai+1;b.J.Fa[1]=""}if(b.J.Fa[1]=="span"){if(b.Mt){c=b.J.Fa[0]+c;if(c<1)c=1;b.J.Sl="span "+c}}else if(typeof b.J.Fa[0]=="number")b.J.Sl=b.J.Fa[0]+c}b.J.nd=b.J.Sl}pui.designer.f.Xq(b.ht,b.Xf,b.J.Sl);b.ke.textContent=th(b)+": "+b.J.nd}}function vh(b,a){var c=0;if(typeof b.Gj=="number")c=Math.floor(a/b.Gj);else if(typeof b.Gj=="object"&&b.Ai>=0&&b.Ai<b.Gj.length+1){c=0;if(b.Ai>0)c=b.Gj[b.Ai-1];c=pui.designer.f.uu(c+a,b.Gj);if(b.aH)c+=1;c=c>=0?c-b.Ai:0-b.Ai}return c}
4878
- function wh(b,a){var c=pui.designer.f.ib.querySelector("svg");b.$d=pui.designer.f.ib.createElementNS(pui.Qi,"line");c.appendChild(b.$d);b.ke=pui.designer.f.ib.createElementNS(pui.Qi,"text");b.ke.appendChild(pui.designer.f.ib.createTextNode(th(b)));c.appendChild(b.ke);if(b.Xf!=null){b.$d.setAttribute("class","drag "+a);b.ke.setAttribute("class","drag");b.$d.addEventListener("mousedown",b)}}
4877
+ "px)"}else if(e[1]=="%"){e=pui.round(e[0]+Math.floor(a*100/b.Po),2);if(e<0)e=0;if(d[1]=="%"&&e<=d[0]){c[1]=e+"%";e=d[0]}b.J.nd="minmax("+c[1]+","+e+"%)"}else if(e[0]=="auto"&&b.Vk>0&&a<0){e=Math.round(b.Vk+a);if(e<0)e=0;if(d[1]=="px"&&e<=d[0]){c[1]=e+"px";e=d[0]}b.J.nd="minmax("+c[1]+","+e+"px)"}}}b.J.fo[b.Ki-1]=b.J.nd;b.J.Sl=b.J.fo.join(" ")}else{if(b.J.Fa[1]=="px")b.J.Sl=b.J.Fa[0]+a+"px";else if(b.Gj!=null){c=wh(b,a);if(c!=0&&b.J.Fa[0]=="auto")if(b.CR){b.J.Fa[0]=1;b.J.Fa[1]="span"}else if(b.AR&&
4878
+ b.Ai>=0){b.J.Fa[0]=b.Ai+1;b.J.Fa[1]=""}if(b.J.Fa[1]=="span"){if(b.Mt){c=b.J.Fa[0]+c;if(c<1)c=1;b.J.Sl="span "+c}}else if(typeof b.J.Fa[0]=="number")b.J.Sl=b.J.Fa[0]+c}b.J.nd=b.J.Sl}pui.designer.f.Xq(b.ht,b.Xf,b.J.Sl);b.ke.textContent=uh(b)+": "+b.J.nd}}function wh(b,a){var c=0;if(typeof b.Gj=="number")c=Math.floor(a/b.Gj);else if(typeof b.Gj=="object"&&b.Ai>=0&&b.Ai<b.Gj.length+1){c=0;if(b.Ai>0)c=b.Gj[b.Ai-1];c=pui.designer.f.uu(c+a,b.Gj);if(b.aH)c+=1;c=c>=0?c-b.Ai:0-b.Ai}return c}
4879
+ function xh(b,a){var c=pui.designer.f.ib.querySelector("svg");b.$d=pui.designer.f.ib.createElementNS(pui.Qi,"line");c.appendChild(b.$d);b.ke=pui.designer.f.ib.createElementNS(pui.Qi,"text");b.ke.appendChild(pui.designer.f.ib.createTextNode(uh(b)));c.appendChild(b.ke);if(b.Xf!=null){b.$d.setAttribute("class","drag "+a);b.ke.setAttribute("class","drag");b.$d.addEventListener("mousedown",b)}}
4879
4880
  Ba.display=function(b){b=b?"":"none";if(this.$d!=null)this.$d.style.display=b;if(this.ke!=null)this.ke.style.display=b};
4880
- function xh(b,a){pui.designer.f.$b!=null&&pui.designer.f.$b.destroy();rh(b);if(!(b.J==null||!b.J.YC)){var c=b.wS.bind(b),d=b.zS.bind(b),e=[];if(b.le=="rowcolsize"){var f=sh(b,b.Ki-1);if(f==null)f=100;var g=Math.round(100*f/b.Po);f=Math.round(f);e.push({text:"auto",group:b.le,handler:function(){c("auto")},checked:b.J.Fa[0]=="auto"});e.push({text:f+"px",group:b.le,handler:function(){c(f+"px")},checked:b.J.Fa[1]=="px"});b.J.Fa[1]=="fr"?e.push({text:b.J.Fa[0]+"fr",group:b.le,checked:true}):e.push({text:"1fr",
4881
+ function yh(b,a){pui.designer.f.$b!=null&&pui.designer.f.$b.destroy();sh(b);if(!(b.J==null||!b.J.YC)){var c=b.wS.bind(b),d=b.zS.bind(b),e=[];if(b.le=="rowcolsize"){var f=th(b,b.Ki-1);if(f==null)f=100;var g=Math.round(100*f/b.Po);f=Math.round(f);e.push({text:"auto",group:b.le,handler:function(){c("auto")},checked:b.J.Fa[0]=="auto"});e.push({text:f+"px",group:b.le,handler:function(){c(f+"px")},checked:b.J.Fa[1]=="px"});b.J.Fa[1]=="fr"?e.push({text:b.J.Fa[0]+"fr",group:b.le,checked:true}):e.push({text:"1fr",
4881
4882
  group:b.le,handler:function(){c("1fr")},checked:false});e.push({text:g+"%",group:b.le,handler:function(){c(g+"%")},checked:b.J.Fa[1]=="%"});typeof b.J.Fa[0]=="string"&&b.J.Fa[0].indexOf("minmax")>=0?e.push({text:b.J.Fa[0],group:b.le,checked:true}):e.push({text:"minmax("+f+"px,auto)",group:b.le,handler:function(){c("minmax("+f+"px,auto)")},checked:false})}else if(b.le=="start"){e.push({text:"auto",group:b.le,handler:function(){d("")},checked:b.J.Fa[0]=="auto"});e.push({text:"1 ("+pui.designer.f.bR+
4882
4883
  ")",group:b.le,handler:function(){d(1)},checked:b.J.Fa[0]==1});!isNaN(b.J.Fa[0])&&b.J.Fa[1]==""&&e.push({text:b.J.Fa[0],group:b.le,checked:true})}else if(b.le=="end"){e.push({text:"auto",group:b.le,handler:function(){d("")},checked:b.J.Fa[0]=="auto"});e.push({text:"-1 ("+pui.designer.f.aR+")",group:b.le,handler:function(){d(-1)},checked:b.J.Fa[0]==-1});e.push({text:"-2 ("+pui.designer.f.$Q+")",group:b.le,handler:function(){d(-2)},checked:b.J.Fa[0]==-2});b.J.Fa[1]=="span"?e.push({text:"span "+b.J.Fa[0],
4883
- group:b.le,checked:true}):e.push({text:"span 1",group:b.le,handler:function(){d("span 1")},checked:false});!isNaN(b.J.Fa[0])&&b.J.Fa[1]==""&&b.J.Fa[0]!=-1&&b.J.Fa[0]!=-2&&e.push({text:b.J.Fa[0],group:b.le,checked:true})}pui.designer.f.$b=new Ext.menu.Menu({autoDestroy:true,items:e});e=pui.Tc(ac("puirespprevcont"));e[0]+=a.clientX;e[1]+=a.clientY;pui.designer.f.$b.showAt(e);a.preventDefault()}}function fh(b,a){b.le=a;b.$d.addEventListener("contextmenu",b)}
4884
- Ba.wS=function(b){this.J.fo[this.Ki-1]=b;this.J.Sl=this.J.fo.join(" ");pui.designer.f.Xq(this.ht,this.Xf,this.J.Sl);pui.designer.f.ug()};Ba.zS=function(b){pui.designer.f.Xq(this.ht,this.Xf,b);pui.designer.f.ug()};pui.designer.f.qq.prototype.handleEvent=function(b){switch(b.type){case "mousedown":this.Fm(b);break;case "mousemove":this.Mo(b);break;case "mouseup":this.No(b);break;case "contextmenu":xh(this,b);break}};pui.designer.f.um=function(b){pui.designer.f.qq.call(this,b);this.Tk=50;this.Km=15};
4885
- pui.designer.f.um.prototype=Object.create(pui.designer.f.qq.prototype);pui.designer.f.um.prototype.jj=function(b,a,c){wh(this,"horz");this.$d.setAttribute("x1",b);this.$d.setAttribute("y1",c);this.$d.setAttribute("x2",a);this.$d.setAttribute("y2",c);if(pui.designer.f.ib.body.scrollHeight<c+this.Km)this.Km=-1*this.Km;this.ke.setAttribute("x",b+this.Tk);this.ke.setAttribute("y",c+this.Km);b=pui.designer.f.Ka.Te.offsetHeight;this.Po=typeof b=="number"&&b>1?b:100};
4886
- pui.designer.f.um.prototype.ds=function(b,a,c,d){if(d<0)d=0;this.$d.setAttribute("y1",d);this.$d.setAttribute("y2",d);b=d-a;this.ke!=null&&this.ke.setAttribute("y",d+this.Km);uh(this,b)};pui.designer.f.um.prototype.JI=function(b,a){return b.qk.length>a?b.qk[a]:null};pui.designer.f.xm=function(b){pui.designer.f.qq.call(this,b);this.Tk=5;this.Km=50;this.jC=0};pui.designer.f.xm.prototype=Object.create(pui.designer.f.qq.prototype);
4887
- pui.designer.f.xm.prototype.jj=function(b,a,c){wh(this,"vert");this.$d.setAttribute("x1",b);this.$d.setAttribute("y1",a);this.$d.setAttribute("x2",b);this.$d.setAttribute("y2",c);if(pui.designer.f.ib.body.scrollWidth<b+this.Tk){c=pui.designer.f.Tl.getComputedStyle(this.ke)["font-size"];c=isNaN(parseInt(c,10))?10:parseInt(c,10);this.Tk=-1*this.Tk-c}this.jC=a+this.Km;this.ke.setAttribute("x",b+this.Tk);this.ke.setAttribute("y",this.jC);this.ke.setAttribute("transform","rotate(90 "+(b+this.Tk)+" "+(a+
4888
- this.Km)+")");b=pui.designer.f.Ka.Te.offsetWidth;this.Po=typeof b=="number"&&b>1?b:100};pui.designer.f.xm.prototype.ds=function(b,a,c){if(c<0)c=0;this.$d.setAttribute("x1",c);this.$d.setAttribute("x2",c);b=c-b;if(this.ke!=null){this.ke.setAttribute("x",c+this.Tk);this.ke.setAttribute("transform","rotate(90 "+(c+this.Tk)+" "+this.jC+")")}uh(this,b)};pui.designer.f.xm.prototype.JI=function(b,a){return b.colWidths.length>a?b.colWidths[a]:null};
4884
+ group:b.le,checked:true}):e.push({text:"span 1",group:b.le,handler:function(){d("span 1")},checked:false});!isNaN(b.J.Fa[0])&&b.J.Fa[1]==""&&b.J.Fa[0]!=-1&&b.J.Fa[0]!=-2&&e.push({text:b.J.Fa[0],group:b.le,checked:true})}pui.designer.f.$b=new Ext.menu.Menu({autoDestroy:true,items:e});e=pui.Tc(ac("puirespprevcont"));e[0]+=a.clientX;e[1]+=a.clientY;pui.designer.f.$b.showAt(e);a.preventDefault()}}function gh(b,a){b.le=a;b.$d.addEventListener("contextmenu",b)}
4885
+ Ba.wS=function(b){this.J.fo[this.Ki-1]=b;this.J.Sl=this.J.fo.join(" ");pui.designer.f.Xq(this.ht,this.Xf,this.J.Sl);pui.designer.f.ug()};Ba.zS=function(b){pui.designer.f.Xq(this.ht,this.Xf,b);pui.designer.f.ug()};pui.designer.f.qq.prototype.handleEvent=function(b){switch(b.type){case "mousedown":this.Fm(b);break;case "mousemove":this.Mo(b);break;case "mouseup":this.No(b);break;case "contextmenu":yh(this,b);break}};pui.designer.f.um=function(b){pui.designer.f.qq.call(this,b);this.Tk=50;this.Km=15};
4886
+ pui.designer.f.um.prototype=Object.create(pui.designer.f.qq.prototype);pui.designer.f.um.prototype.jj=function(b,a,c){xh(this,"horz");this.$d.setAttribute("x1",b);this.$d.setAttribute("y1",c);this.$d.setAttribute("x2",a);this.$d.setAttribute("y2",c);if(pui.designer.f.ib.body.scrollHeight<c+this.Km)this.Km=-1*this.Km;this.ke.setAttribute("x",b+this.Tk);this.ke.setAttribute("y",c+this.Km);b=pui.designer.f.Ka.Te.offsetHeight;this.Po=typeof b=="number"&&b>1?b:100};
4887
+ pui.designer.f.um.prototype.ds=function(b,a,c,d){if(d<0)d=0;this.$d.setAttribute("y1",d);this.$d.setAttribute("y2",d);b=d-a;this.ke!=null&&this.ke.setAttribute("y",d+this.Km);vh(this,b)};pui.designer.f.um.prototype.JI=function(b,a){return b.qk.length>a?b.qk[a]:null};pui.designer.f.xm=function(b){pui.designer.f.qq.call(this,b);this.Tk=5;this.Km=50;this.jC=0};pui.designer.f.xm.prototype=Object.create(pui.designer.f.qq.prototype);
4888
+ pui.designer.f.xm.prototype.jj=function(b,a,c){xh(this,"vert");this.$d.setAttribute("x1",b);this.$d.setAttribute("y1",a);this.$d.setAttribute("x2",b);this.$d.setAttribute("y2",c);if(pui.designer.f.ib.body.scrollWidth<b+this.Tk){c=pui.designer.f.Tl.getComputedStyle(this.ke)["font-size"];c=isNaN(parseInt(c,10))?10:parseInt(c,10);this.Tk=-1*this.Tk-c}this.jC=a+this.Km;this.ke.setAttribute("x",b+this.Tk);this.ke.setAttribute("y",this.jC);this.ke.setAttribute("transform","rotate(90 "+(b+this.Tk)+" "+(a+
4889
+ this.Km)+")");b=pui.designer.f.Ka.Te.offsetWidth;this.Po=typeof b=="number"&&b>1?b:100};pui.designer.f.xm.prototype.ds=function(b,a,c){if(c<0)c=0;this.$d.setAttribute("x1",c);this.$d.setAttribute("x2",c);b=c-b;if(this.ke!=null){this.ke.setAttribute("x",c+this.Tk);this.ke.setAttribute("transform","rotate(90 "+(c+this.Tk)+" "+this.jC+")")}vh(this,b)};pui.designer.f.xm.prototype.JI=function(b,a){return b.colWidths.length>a?b.colWidths[a]:null};
4889
4890
  pui.designer.qB=function(b){b=localStorage.getItem(b);if(typeof b=="string"&&b.length>0)try{this.dx=JSON.parse(b)}catch(a){this.dx={}}else this.dx={}};pui.designer.qB.prototype=Object.create(pui.cd.prototype);pui.designer.qB.prototype.load=function(b,a){var c=false;try{var d=this.dx[b];if(d!=null&&(!(a instanceof Array)||a.length>0)){this[b]=d;c=true}else this[b]=a}catch(e){console.log(e)}return c};
4890
- function Og(b,a,c){try{var d=parseInt(b.dx[a],10);b[a]=!isNaN(d)&&d>0?d:c}catch(e){console.log(e)}};pui.designer.iB=function(){function b(h,m){var k,n;k=h;if(pui.apiSupport&&m.url&&m.url.match(/\.api\.json$/i)&&(!k||!k.trim()))k='{\n\t"routes": []\n}';if(pui.pjsModuleSupport&&m.url&&m.url.match(/\.module\.json$/i)&&(!k||!k.trim()))k='{\n\t"routines": []\n}';if(m.editFileOnly)return{success:true,data:k};if(m.url==null&&m.json==null){if((k=k.replace(/''/g,"'"))&&k.length>=14&&k.substr(0,14)==="pui.display = ")k=k.substr(14);if(k&&k.length>=27&&k.substr(0,27)==="pui.display={success: false")k=JSON.stringify({success:false,
4891
+ function Pg(b,a,c){try{var d=parseInt(b.dx[a],10);b[a]=!isNaN(d)&&d>0?d:c}catch(e){console.log(e)}};pui.designer.iB=function(){function b(h,m){var k,n;k=h;if(pui.apiSupport&&m.url&&m.url.match(/\.api\.json$/i)&&(!k||!k.trim()))k='{\n\t"routes": []\n}';if(pui.pjsModuleSupport&&m.url&&m.url.match(/\.module\.json$/i)&&(!k||!k.trim()))k='{\n\t"routines": []\n}';if(m.editFileOnly)return{success:true,data:k};if(m.url==null&&m.json==null){if((k=k.replace(/''/g,"'"))&&k.length>=14&&k.substr(0,14)==="pui.display = ")k=k.substr(14);if(k&&k.length>=27&&k.substr(0,27)==="pui.display={success: false")k=JSON.stringify({success:false,
4891
4892
  msg:"This is not a Rich Display File.",R1:"PUI0001102:JSON"});k=k.replace(/\u001a/g,"\\u001a");k=k.replace(/\u000e/g,"\\u000e");k=k.replace(/\u000f/g,"\\u000f")}else n=k;pui.display=null;var i={isRichDisplay:false,data:n},o={isRichDisplay:true,data:k};try{pui.display=JSON.parse(k)}catch(q){if(i.data==null){i.success=false;i.msg="Unable to open; invalid JSON.<br>\n";if(q!=null)if(q.description)i.msg+=q.description;else if(q.message)i.msg+=q.message}return i}if(!pui.display||typeof pui.display!="object")return i;
4892
4893
  if(pui.display!==null&&typeof pui.display==="object"&&pui.display.success==false){i.success=false;i.msg=pui.display.msg;return i}if(typeof pui.display==="object"&&pui.display.success===true&&typeof pui.display.appJob==="object"&&pui.display.layers!=null)return o;if(typeof pui.display=="object"&&(!pui.display.formats||typeof pui.display.formats!="object"||typeof pui.display.formats.length!=="number")){k=m.Ob?m.Ob:m.url;if(pui.apiSupport&&k&&k.match(/\.api\.json$/i)&&(!Object.keys(pui.display).length||
4893
4894
  pui.display.routes)&&pui.ide.bg()){o.isRichDisplay=false;m.isApi=o.isApi=true;o.data=pui.display;return o}if(pui.pjsModuleSupport&&k&&k.match(/\.module\.json$/i)&&(!Object.keys(pui.display).length||pui.display.routines)&&pui.ide.cl()){o.isRichDisplay=false;m.isPJSModule=o.isPJSModule=true;o.data=pui.display;return o}return i}if(o.isRichDisplay&&!pui.ide.dl()){o.isRichDisplay=false;o.data=n}return o}function a(h,m){function k(l){l=b(typeof l=="string"?l:l.Ib(),h);screenMask.hide();m(l,h)}var n=h.library,
@@ -4910,9 +4911,9 @@ i;else B[C]=i;C="{";C+='\n "screens": [';C+=f(y,"screen");C+="\n ],";C+='\n "
4910
4911
  pui.alert(K);g.designer.Og=false}else{pui.U.rZ=true;g.designer.qa[g.designer.j.n]=false;g.designer.unmask();if(g.designer.Og)g.Zi.onclick();else{pui.alert("Screen design saved to server.");screensList={};screensList.OG=y;screensList.CH=B;pui.U.Nn=[];for(K=0;K<eb.length;K++)pui.U.Nn.push(eb[K].name.toUpperCase())}}})}}}else{pui.alert("You must mark at least one field as a screen identifier.");g.designer.Og=false}}}}else{pui.alert("You have not made any changes.");g.designer.Og=false}}function f(h){for(var m=
4911
4912
  "",k,n=0;n<h.length;n++){m+='\n {\n "screen": "'+h[n].screen+'",';if(typeof h[n].modified!="undefined")m+='\n "modified": "'+h[n].modified+'",';m+='\n "identifiers": [';for(var i=h[n].sn,o=0;o<i.length;o++){var q=i[o].value;if(q==null)q="";q=q.replace(/\\/g,"\\\\");q=q.replace(/"/g,'\\"');q=q.replace(/\r/g,"\\r");q=q.replace(/\n/g,"\\n");q=q.replace(/\t/g,"\\t");k=i[o].id;if(k.indexOf("_W")!=-1){var l=k.indexOf("_W");k=k.substr(0,l+2)}m+='\n { "id": "'+k+'", "value": "'+q+
4912
4913
  '" }';if(o!=i.length-1)m+=","}m+="\n ]";m+="\n }";if(n!=h.length-1)m+=","}return m}this.d=document.createElement("div");this.J1=this.I1=this.Bf=this.designer=this.j1=this.$N=this.sk=this.ho=this.Zi=null;this.clipboard=[];this.ij=false;this.mf=100;this.Cb=this.Sb=1;var g=this;this.YL=function(){if(M=="genie"){g.designer&&g.designer.mask("Loading Screens. Please wait...");pui.X0(function(){g.designer.unmask();e()})}};(function(){mc(window,"storage",function(k){if(k.key=="pui-designer-clipboard"&&
4913
- k.newValue!=""){g.clipboard=JSON.parse(k.newValue);M=="dspf"&&pui.ide.refreshRibbon()}if(M=="dspf"&&k.key=="pui-formats-clipboard"&&k.newValue!=""){te.CZ(JSON.parse(k.newValue));Ext.getCmp("_Paste_Record_Format").setDisabled(false)}});if(M=="dspf"&&pui.xd()){var h=localStorage.getItem("pui-designer-clipboard"),m=localStorage.getItem("pui-formats-clipboard");if(h)g.clipboard=JSON.parse(h);m&&Ext.getCmp("_Paste_Record_Format").setDisabled(false)}g.d.style.position="absolute";g.d.style.top=If.get("toolbar_top",
4914
- "20px");g.d.style.left=If.get("toolbar_left","150px");g.d.style.width="325px";if(M=="genie")g.d.style.width="375px";g.d.style.height="50px";g.d.style.backgroundColor="white";g.d.style.border="2px solid #336699";g.d.style.fontFamily="Arial";g.d.style.fontSize="12px";g.d.style.padding="0px";g.d.style.zIndex=U.g0;g.Bf=document.createElement("div");g.Bf.style.cursor="move";g.Bf.style.backgroundColor="#6699cc";g.Bf.style.padding="3px";g.Bf.style.fontSize="14px";g.Bf.style.fontWeight="bold";g.Bf.style.color=
4915
- "#ffffff";g.Bf.style.overflow="hidden";g.Bf.innerHTML="Design Toolbar";h=new pui.ed({wc:g.Bf,move:g.d,opacity:85},{left:-450});h.Ps=function(){If.set("toolbar_top",g.d.style.top);If.set("toolbar_left",g.d.style.left);If.save()};h.ey=function(){g.designer&&g.designer.cM()};g.d.appendChild(g.Bf);g.Wo=document.createElement("div");g.Wo.onmousedown=g.Wo.onmouseup=g.Wo.onclick=g.Wo.ondblclick=function(k){k.stopPropagation()};g.d.appendChild(g.Wo);h=document.createElement("div");h.style.height="2px";h.style.fontSize=
4914
+ k.newValue!=""){g.clipboard=JSON.parse(k.newValue);M=="dspf"&&pui.ide.refreshRibbon()}if(M=="dspf"&&k.key=="pui-formats-clipboard"&&k.newValue!=""){te.CZ(JSON.parse(k.newValue));Ext.getCmp("_Paste_Record_Format").setDisabled(false)}});if(M=="dspf"&&pui.xd()){var h=localStorage.getItem("pui-designer-clipboard"),m=localStorage.getItem("pui-formats-clipboard");if(h)g.clipboard=JSON.parse(h);m&&Ext.getCmp("_Paste_Record_Format").setDisabled(false)}g.d.style.position="absolute";g.d.style.top=Jf.get("toolbar_top",
4915
+ "20px");g.d.style.left=Jf.get("toolbar_left","150px");g.d.style.width="325px";if(M=="genie")g.d.style.width="375px";g.d.style.height="50px";g.d.style.backgroundColor="white";g.d.style.border="2px solid #336699";g.d.style.fontFamily="Arial";g.d.style.fontSize="12px";g.d.style.padding="0px";g.d.style.zIndex=U.g0;g.Bf=document.createElement("div");g.Bf.style.cursor="move";g.Bf.style.backgroundColor="#6699cc";g.Bf.style.padding="3px";g.Bf.style.fontSize="14px";g.Bf.style.fontWeight="bold";g.Bf.style.color=
4916
+ "#ffffff";g.Bf.style.overflow="hidden";g.Bf.innerHTML="Design Toolbar";h=new pui.ed({wc:g.Bf,move:g.d,opacity:85},{left:-450});h.Ps=function(){Jf.set("toolbar_top",g.d.style.top);Jf.set("toolbar_left",g.d.style.left);Jf.save()};h.ey=function(){g.designer&&g.designer.cM()};g.d.appendChild(g.Bf);g.Wo=document.createElement("div");g.Wo.onmousedown=g.Wo.onmouseup=g.Wo.onclick=g.Wo.ondblclick=function(k){k.stopPropagation()};g.d.appendChild(g.Wo);h=document.createElement("div");h.style.height="2px";h.style.fontSize=
4916
4917
  "0px";g.Wo.appendChild(h);g.Zi=d("Design Mode is Off",true);g.Zi.onclick=function(){if(g.designer==null){var k=function(){var q;if(M=="genie")q=pui.CV;g.designer=new pui.designer.$h(q);M=="genie"&&g.designer.k.show();if(M=="genie")pui.Ls(pui.U.bj=true);if(M=="dspf"){q=document.createElement("div");document.getElementById(Na).appendChild(q);Ha=Na+"0";q.id=Ha;g.designer.c=q}else{pui.U.config.y0&&doAutoSizeFont();g.designer.c=document.getElementById(Ha)}g.designer.init();ib={};M=="genie"&&loadScreens(true,
4917
4918
  g.designer);q=1;var l;for(l=document.getElementById("window"+q);l!=null;){l.style.display="none";l.onmousedown=null;l.style.cursor="auto";q++;l=document.getElementById("window"+q)}g.designer.k.refresh();g.Zi.innerHTML="Design Mode is On";g.Zi.style.color="#009900";g.Zi.style.fontWeight="bold";M=="genie"&&pui.U.config.BT==true&&g.designer.IK()};if(M=="genie"){pui.wj();var n=function(){pui.af();pui.U.Nn=[];for(var q=0;q<eb.length;q++)pui.U.Nn.push(eb[q].name.toUpperCase());k()},i={items:[],designer:false};
4918
4919
  for(var o in pui.widgets)i.items.push({field_type:o});pui.Vr(i,function(){typeof ace=="undefined"||ace==null?pui.loadJS({path:"/ace/ace.js",callback:n,onerror:n}):n()})}else k()}else{if(g.designer.qa[g.designer.j.n])if(!confirm("Exit design view without saving changes?"))return;document.body.oncontextmenu=null;g.designer.k.hide();g.designer.xw.hide();pui.CV=g.designer.k;g.designer.destroy();g.designer=null;g.Bf.innerHTML="Design Toolbar";g.Zi.innerHTML="Design Mode is Off";g.Zi.style.color="";g.Zi.style.fontWeight=
@@ -4953,7 +4954,7 @@ m.style.backgroundSize=g.wL()}if(g.designer.c.parentNode.nF){pui.ide.KN();m=[];k
4953
4954
  this.vv=function(){for(;d.rows.length>0;)d.deleteRow(d.rows.length-1);b()};this.show=function(){if(M=="genie"&&pui.is_old_ie&&pui.ie_mode==9)document.body.style.overflowX="hidden";var e=0,f=0;if(a.toolbar!=null){e=a.toolbar.d.offsetLeft+119;f=a.toolbar.d.offsetTop+47;if(a.toolbar.d.offsetTop>a.He.length*22-45)f=f-a.He.length*22+1}if(a.clickEvent!=null){if(a.clickEvent.pageX)e=a.clickEvent.pageX;else if(a.clickEvent.clientX)e=a.clickEvent.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:
4954
4955
  document.body.scrollLeft);if(a.clickEvent.pageY)f=a.clickEvent.pageY;else if(a.clickEvent.clientY)f=a.clickEvent.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);var g=document.body.offsetWidth-185;if(e>g)e=g}c.style.left=e+"px";if(this.Gh=="context")if(a.He.length>4){e=a.He.length*21;g=600;if(document.body&&document.body.offsetHeight)g=document.body.offsetHeight;if(document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetHeight)g=
4955
4956
  document.documentElement.offsetHeight;if(window.innerHeight)g=window.innerHeight;if(f+e>=g){e=f-e+3;if(e>0)f=e}}c.style.top=f+"px";c.style.visibility="";c.style.display="";if(a.Gh==="user"){c.style.top="23px";c.style.left="";c.style.right="2px"}if(a.Gh==="thumbnail"){c.style.top="60px";c.style.left="";c.style.right="10px"}};this.hide=function(){c.style.visibility="hidden";c.style.display="none";if(a.te!=null){a.te();a.te=null}if(M=="genie"&&pui.is_old_ie&&pui.ie_mode==9&&T!=null&&T.designer!=null&&
4956
- T.designer.k!=null&&T.designer.k.Qe!=null&&T.designer.k.Qe.isHidden())document.body.style.overflowX=""};this.isHidden=function(){return c.style.visibility=="hidden"};this.destroy=function(){if(c!=null){c.parentNode.removeChild(c);d=c=null;a.He=null;a.Ql=null;a.Gh=null;a.toolbar=null;a.handler=null;a=a.clickEvent=null}}};pui.designer.JQ=function(){this.gH=null;var b={},a=this;this.set=function(c,d){b[c]=d};this.get=function(c,d){var e=b[c];if(e==null)e=d;return e};this.save=function(){try{localStorage.setItem(a.gH,JSON.stringify(b))}catch(c){}};this.load=function(){try{b=JSON.parse(localStorage[a.gH])}catch(c){b={}}if(typeof b!=="object")b={}}};var If=new pui.designer.JQ;If.gH="pui-designer";If.load();pui.designer.cB=function(){this.kz="";this.We="#009900";this.color="#ffffff";this.c=document.body;this.interval=50;this.rN=20;this.CN=10;var b,a=this,c=0,d=false;this.init=function(){b=document.createElement(b);b.innerHTML=a.kz;b.style.color=a.color;b.style.backgroundColor=a.We;b.style.fontFamily="Arial";b.style.fontSize="12px";b.style.paddingLeft="5px";b.style.paddingRight="5px";b.style.paddingTop="2px";b.style.paddingBottom="2px";b.style.position="absolute";b.style.zIndex=20;b.style.left="10px";
4957
+ T.designer.k!=null&&T.designer.k.Qe!=null&&T.designer.k.Qe.isHidden())document.body.style.overflowX=""};this.isHidden=function(){return c.style.visibility=="hidden"};this.destroy=function(){if(c!=null){c.parentNode.removeChild(c);d=c=null;a.He=null;a.Ql=null;a.Gh=null;a.toolbar=null;a.handler=null;a=a.clickEvent=null}}};pui.designer.JQ=function(){this.gH=null;var b={},a=this;this.set=function(c,d){b[c]=d};this.get=function(c,d){var e=b[c];if(e==null)e=d;return e};this.save=function(){try{localStorage.setItem(a.gH,JSON.stringify(b))}catch(c){}};this.load=function(){try{b=JSON.parse(localStorage[a.gH])}catch(c){b={}}if(typeof b!=="object")b={}}};var Jf=new pui.designer.JQ;Jf.gH="pui-designer";Jf.load();pui.designer.cB=function(){this.kz="";this.We="#009900";this.color="#ffffff";this.c=document.body;this.interval=50;this.rN=20;this.CN=10;var b,a=this,c=0,d=false;this.init=function(){b=document.createElement(b);b.innerHTML=a.kz;b.style.color=a.color;b.style.backgroundColor=a.We;b.style.fontFamily="Arial";b.style.fontSize="12px";b.style.paddingLeft="5px";b.style.paddingRight="5px";b.style.paddingTop="2px";b.style.paddingBottom="2px";b.style.position="absolute";b.style.zIndex=20;b.style.left="10px";
4957
4958
  var e=a.c.offsetHeight-30;if(pui.is_firefox&&a.c.tagName=="FIELDSET")e-=25;b.style.top=e+"px";a.c.appendChild(b);return b};this.animate=function(){if(!(b==null||typeof b=="undefined")){if(d)c-=a.rN;else c+=a.rN;b.style.filter="alpha(opacity="+c+")";b.style.opacity=c/100;if(d)if(c>0)setTimeout(a.animate,a.interval);else{try{a.c.removeChild(b)}catch(e){}b=null}else if(c>=100){d=true;setTimeout(a.animate,a.interval*a.CN)}else setTimeout(a.animate,a.interval)}}};pui.designer.wR=function(){function b(h,m,k,n){if(h.dom!=null){if(h.dom.parentNode==null)h.dom=ac(h.dom.id);if(h.dom!=null)if(h.dom.parentNode!=null){var i;if(h.dom.Jf==null){if(g==null)g=Rc();i=pui.jg(g,m)}else i=pui.jg(h.dom.Jf,m);ad(i,h.properties,h.dom,k,true,h,null);if(h.dom.pui&&h.dom.pui.widget)ud(h.dom.pui.widget);else h.dom.ra&&h.dom.ra.render();if(h.properties["field type"]==="layout"){h.dom.layout.resize();h.dom.layout.center()}pui.h(k)&&h.designer.L.ce({fieldName:k.fieldName,dataType:k.dataType,
4958
4959
  dataLength:k.dataLength,decPos:k.decPos,refField:k.refField,keywords:k.keywords,b:h,property:m,Sj:true,longName:k.longName});pui.wf.G&&pui.xb(k)&&pui.wf.G.update({name:k.routine,b:h,designer:h.designer,property:m,data:n})}}}this.Hh=false;var a=[],c=-1,d=0,e="",f=this,g=null;this.start=function(h){e=h;d++};this.add=function(h,m){if(m==="id")f.clear();else{var k=f.Br(),n={};n.type="item property";n.b=h;n.id=h.properties.id;n.ob=m;n.kk=h.properties[m];if(pui.wf.G)n.Ta=pui.wf.G.getData(n.kk);n.iG=h.p[m];
4959
4960
  n.lX=h.Pa;n.Rv=h.designer.qa[h.designer.j.n];n.group=d;n.text=e;a.splice(c+1,a.length-c-1);a.push(n);c=a.length-1;M=="dspf"&&!f.Hh&&k!=f.Br()&&setTimeout(function(){pui.ide.refreshRibbon()},0)}};this.kJ=function(h,m){if(m!=="screen name"){var k=f.Br(),n={};n.type="screen property";n.designer=h;n.ob=m;n.kk=h.ja[h.j.n][m];if(pui.wf.G)n.Ta=pui.wf.G.getData(n.kk);n.iG=h.he[h.j.n][m];n.Rv=h.qa[h.j.n];n.group=d;n.text=e;a.splice(c+1,a.length-c-1);a.push(n);c=a.length-1;M=="dspf"&&!f.Hh&&k!=f.Br()&&setTimeout(function(){pui.ide.refreshRibbon()},
@@ -5023,14 +5024,14 @@ pui.GK=function(b,a){if(a==null)a={};eb.push({name:"[Unnamed Screen]",yd:false,n
5023
5024
  d!=null&&e!=null){c=c.toUpperCase();d=d.toUpperCase();e=e.toUpperCase();if(h=="true"){screenMask.msg="Converting...";screenMask.show();xc({url:jc("PUI0001107.pgm"),method:"post",params:{library:c,file:d,member:e,dds:n?"Y":"N"},handler:function(s,t){if(s==null){var u="Server response is invalid.";if(t!=null&&t.description!=null)u+=" "+t.description+".";else if(t!=null&&t.message!=null)u+=" "+t.message+".";screenMask.hide();pui.alert(u)}else if(s.success!=true&&s.success!="true"){screenMask.hide();
5024
5025
  pui.alert(s.msg)}else{u=a.theme;if(u==null)u="Hybrid";pui.cnv.themes.setTheme(u);pui.cnv.greenScreenDisplay=s;pui.cnv.Pl=e;pui.cnv.Hv=n;pui.cnv.zD();n&&pui.cnv.hb.So("ALLINONE");Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);T.Wr(pui.cnv.hb.su());te.LC();pui.cnv.dg.yC();pui.Qa=pui.cnv.hb.zE();U.eq();pui.designer.fb=false;if(pui.cnv.fb)pui.designer.fb=true;pui.designer.currentDisplay.library=null;pui.designer.currentDisplay.file=null;pui.designer.currentDisplay.member=null;pui.designer.currentDisplay.text=
5025
5026
  null;pui.designer.currentDisplay.comments=null;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.Fi=null;pui.designer.currentDisplay.Ih=f;pui.designer.currentDisplay.bp=true;pui.designer.currentDisplay.Rx=e;pui.designer.currentDisplay.ED=s.text;pui.designer.M.formats={};if(n)if(s.dds!=null&&s.dds.length>0){pui.designer.M.split(s.dds);setTimeout(function(){te.At()},10)}b.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global};
5026
- b.Qa=pui.Qa;te.Wg();pui.ide.Yb();screenMask.hide();pui.ide.r.eK();If.set("cnvlibrary",c);If.save();if(g!=null)pui.designer.currentDisplay.library=g.toUpperCase()}}})}else{var o={library:c,file:d,member:e,onsuccess:function(){b.Qa=pui.Qa;b.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global};If.set("file",d);If.set("library",c);If.save();if(f!=null)pui.designer.currentDisplay.Ih=f}};T.qy(o,function(){T.open(o)})}}else if(k!=null){o={url:k,ifsFile:k,onsuccess:function(){If.set("ifsPath",
5027
- k);If.save()}};T.qy(o,function(){T.open(o)})}else{T.LX();if(h=="true"){var q=a.theme;if(q!=null){If.set("cnvtheme",q);If.save()}setTimeout(function(){pui.ide.r.iK()},1E3)}h=="mass"&&setTimeout(function(){var s=a.theme;if(s==null)s="Hybrid";pui.cnv.themes.setTheme(s);pui.cnv.KF(n)},1);m=="merge"&&setTimeout(function(){pui.cnv.OM()},1);pui.Ke==true&&pui.u1();if(i=="1"||i=="Y"||i=="true"){var l=window.parent.appgen.replaceDSPF!==false;h=window.parent.appgen.richDisplay;h!=null&&T.open({json:h,library:a.appgenlibrary,
5027
+ b.Qa=pui.Qa;te.Wg();pui.ide.Yb();screenMask.hide();pui.ide.r.eK();Jf.set("cnvlibrary",c);Jf.save();if(g!=null)pui.designer.currentDisplay.library=g.toUpperCase()}}})}else{var o={library:c,file:d,member:e,onsuccess:function(){b.Qa=pui.Qa;b.M={formats:pui.designer.M.formats,comments:pui.designer.M.comments,global:pui.designer.M.global};Jf.set("file",d);Jf.set("library",c);Jf.save();if(f!=null)pui.designer.currentDisplay.Ih=f}};T.qy(o,function(){T.open(o)})}}else if(k!=null){o={url:k,ifsFile:k,onsuccess:function(){Jf.set("ifsPath",
5028
+ k);Jf.save()}};T.qy(o,function(){T.open(o)})}else{T.LX();if(h=="true"){var q=a.theme;if(q!=null){Jf.set("cnvtheme",q);Jf.save()}setTimeout(function(){pui.ide.r.iK()},1E3)}h=="mass"&&setTimeout(function(){var s=a.theme;if(s==null)s="Hybrid";pui.cnv.themes.setTheme(s);pui.cnv.KF(n)},1);m=="merge"&&setTimeout(function(){pui.cnv.OM()},1);pui.Ke==true&&pui.u1();if(i=="1"||i=="Y"||i=="true"){var l=window.parent.appgen.replaceDSPF!==false;h=window.parent.appgen.richDisplay;h!=null&&T.open({json:h,library:a.appgenlibrary,
5028
5029
  file:a.appgenfile,member:a.appgenmember,uM:true,onsuccess:function(){T.save({library:a.appgenlibrary,file:a.appgenfile,member:a.appgenmember,text:a.appgentext,comments:"",replace:l,Fi:a.appgenmember,Ih:a.appgenlibrary,compile:"Y",onsuccess:function(){window.parent.appgen.onRichDisplayCompile({success:true})},onfail:function(s){window.parent.appgen.onRichDisplayCompile({success:false,message:s})}})}})}}T.hide();U.jY("/profoundui/proddata/images/icons/editbar/",["B","B-sel","I","I-sel","left-align",
5029
5030
  "left-align-sel","center","center-sel","right-align","right-align-sel","font-up","font-down","clear","color","left-border","right-border","separator"],".png");pui.closeMessage="Unsaved changes to the display file will be lost.";pui.Ke!=true&&pui.GC()};
5030
5031
  pui.Zk=function(b,a,c,d){c.style.top=parseInt(b.style.height)+7+"px";b.style.height=parseInt(b.style.height)+7+"px";if(pui.flatlook){a.style.backgroundColor="#6BADF6";a.style.color="#31373d";a.style.paddingTop="4px";a.style.height="25px";a.style.fontSize="13px";a.style.fontWeight="normal";b.style.border="2px solid #4598F4";c.style.backgroundColor="#F8F9F9"}else{b.style.borderRadius="5px";b.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";a.style.backgroundImage="url(/profoundui/proddata/images/header-gradient.png)";
5031
5032
  a.style.color="#15428B";a.style.paddingTop="4px";a.style.height="25px";a.style.fontSize="11px";b.style.border="3px solid #b0cbef";c.style.backgroundColor="#dfe8f6"}c.style.top="27px";b=document.createElement("div");var e=document.createElement("div");b.style.position="absolute";b.style.top="3px";b.style.right="10px";b.style.width="15px";b.style.height="15px";b.style.cursor="pointer";if(pui.flatlook){b.onmousedown=function(){e.style.backgroundImage="url(/profoundui/proddata/images/buttons/close/x5_click.png)"};
5032
5033
  b.onmouseup=function(){e.style.backgroundImage="url(/profoundui/proddata/images/buttons/close/x5.png)"}}else{b.onmouseover=function(){e.style.backgroundImage="url(/profoundui/proddata/images/buttons/close/x1_hover.png)"};b.onmouseout=function(){e.style.backgroundImage="url(/profoundui/proddata/images/buttons/close/x1.png)"}}b.onclick=function(){d()};e.style.backgroundImage=pui.flatlook?"url(/profoundui/proddata/images/buttons/close/x5.png)":"url(/profoundui/proddata/images/buttons/close/x1.png)";
5033
- e.style.backgroundRepeat="no-repeat";e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.width="16px";e.style.height="16px";a.innerHTML="";b.appendChild(e);c=document.createElement("span");a.appendChild(c);a.appendChild(b);return c};pui.iD=function(b){b||(b=If.get("theme",pui.isCloud?"dark":"light"));switch(b){case "dark":window.monaco&&monaco.editor.setTheme("vs-dark");break;default:window.monaco&&monaco.editor.setTheme("vs");break}If.set("theme",b);If.save()};
5034
+ e.style.backgroundRepeat="no-repeat";e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.width="16px";e.style.height="16px";a.innerHTML="";b.appendChild(e);c=document.createElement("span");a.appendChild(c);a.appendChild(b);return c};pui.iD=function(b){b||(b=Jf.get("theme",pui.isCloud?"dark":"light"));switch(b){case "dark":window.monaco&&monaco.editor.setTheme("vs-dark");break;default:window.monaco&&monaco.editor.setTheme("vs");break}Jf.set("theme",b);Jf.save()};
5034
5035
  pui.qT=function(){var b=Ext.Window.prototype.setActive,a=null;setTimeout(pui.iD,250);Ext.override(Ext.Window,{cls:"blue-window-active",shadow:false,setActive:function(c){b.call(this,c);if(c){a&&a!=this&&a.el&&a.removeClass("active-window");a=this;a.el&&a.addClass("active-window")}}})};pui.designer.recentFiles=[];pui.designer.oG="pui-recent-files";if(pui.Aa)pui.designer.oG+="-universal";
5035
5036
  pui.designer.Xn=function(b,a){if(!pui.isCloud){var c,d,e,f;if(b==null){c=pui.designer.currentDisplay.library;d=pui.designer.currentDisplay.file;e=pui.designer.currentDisplay.member;f=pui.designer.currentDisplay.ifsFile}if(f==null&&b==null){if(c==null||c=="")return;if(d==null||d=="")return;if(e==null||e=="")return}for(var g=pui.designer.recentFiles.length-1;g>=0;g--){var h=pui.designer.recentFiles[g];c&&c.trim()&&h.library==c&&h.file==d&&h.member==e&&pui.designer.recentFiles.splice(g,1);f&&f.trim()&&
5036
5037
  h.ifsfile==f&&pui.designer.recentFiles.splice(g,1);b&&a&&b.trim()&&h.textdir==a&&h.textfile==b&&pui.designer.recentFiles.splice(g,1)}pui.designer.recentFiles.push({library:c,file:d,member:e,ifsfile:f,textfile:b,textdir:a});pui.designer.recentFiles.length>20&&pui.designer.recentFiles.splice(0,1);pui.designer.oZ()}};pui.designer.oZ=function(){localStorage.setItem(pui.designer.oG,JSON.stringify(pui.designer.recentFiles))};
@@ -5055,8 +5056,8 @@ pui.toolbox.add({category:"Common",widget:"output field",text:"Heading",newId:"H
5055
5056
  pui.toolbox.add({category:"Common",widget:"html container",text:"Wrapping Text",icon:"/profoundui/proddata/images/icons/output_field.png",cls:"widget-node",proxyHeight:77,proxyWidth:342,proxyHTML:'<div style="border: 1px dotted #15428B; position: white-space: normal; height: 75px; width: 340px; font-size: 14px; font-family: Trebuchet MS;">Lorem ipsum dolor sit amet, consectetur adipisicing <br/>elit, sed do eiusmod tempor incididunt ut labore et <br/>dolore magna aliqua.</div>',leaf:true,defaults:{html:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
5056
5057
  height:"75px",width:"340px"}});pui.toolbox.add({category:"Common",widget:"text area",text:"Text Area",icon:"/profoundui/proddata/images/icons/text_area.png",cls:"widget-node",proxyHeight:38,proxyWidth:183,proxyHTML:'<textarea style="cursor: default;"></textarea>',leaf:true,defaults:{}});
5057
5058
  pui.toolbox.add({category:"Gradient Buttons",widget:"button",text:"Default",icon:"/profoundui/proddata/images/icons/button.png",cls:"widget-node",proxyHeight:23,proxyWidth:100,proxyHTML:'<input type="button" class="button" value="Click Here" style="width: 100px">',leaf:true,defaults:{}});
5058
- for(var yh in pui.widgets.buttonStyles){var zh=pui.widgets.buttonStyles[yh],Ah=100;if(zh.width!=null)Ah=zh.width;var Bh=pui.toolbox.add({category:"Gradient Buttons",widget:"styled button",text:yh,newId:"Button",icon:"/profoundui/proddata/images/buttons/"+yh+"/icon.png",cls:"widget-node",proxyHeight:23,proxyWidth:Ah,proxyHTML:function(b){return pui.widgets.getStyledButtonProxy(b)},leaf:true,defaults:{"button style":yh}});if(Bh!=null&&Bh.defaults!=null){if(zh.textColor!=null)Bh.defaults.color=zh.textColor;
5059
- if(zh.width!=null)Bh.defaults.width=zh.width+"px"}yh=zh=Bh=null}
5059
+ for(var zh in pui.widgets.buttonStyles){var Ah=pui.widgets.buttonStyles[zh],Bh=100;if(Ah.width!=null)Bh=Ah.width;var Ch=pui.toolbox.add({category:"Gradient Buttons",widget:"styled button",text:zh,newId:"Button",icon:"/profoundui/proddata/images/buttons/"+zh+"/icon.png",cls:"widget-node",proxyHeight:23,proxyWidth:Bh,proxyHTML:function(b){return pui.widgets.getStyledButtonProxy(b)},leaf:true,defaults:{"button style":zh}});if(Ch!=null&&Ch.defaults!=null){if(Ah.textColor!=null)Ch.defaults.color=Ah.textColor;
5060
+ if(Ah.width!=null)Ch.defaults.width=Ah.width+"px"}zh=Ah=Ch=null}
5060
5061
  pui.toolbox.add({category:"Graphic Buttons",widget:"graphic button",text:"View",newId:"Button",icon:"/profoundui/proddata/images/icons/view.png",cls:"widget-node",proxyHeight:27,proxyWidth:100,proxyHTML:'<button type="button" style="font-weight: bold; color:#4193d0; width:100px;"><img style="vertical-align: middle; padding-bottom: 2px;" src="/profoundui/proddata/images/icons/view.png"/> View</button>',leaf:true,defaults:{color:"#4193d0",value:"View","image source":"/profoundui/proddata/images/icons/view.png",
5061
5062
  "font weight":"bold",width:!pui.is_quirksmode?"100px":null}});
5062
5063
  pui.toolbox.add({category:"Graphic Buttons",widget:"graphic button",text:"Change",newId:"Button",icon:"/profoundui/proddata/images/icons/change.png",cls:"widget-node",proxyHeight:27,proxyWidth:100,proxyHTML:'<button type="button" style="font-weight: bold; color:#c8904e; width:100px;"><img style="vertical-align: middle; padding-bottom: 2px;" src="/profoundui/proddata/images/icons/change.png"/> Change</button>',leaf:true,defaults:{color:"#c8904e",value:"Change","image source":"/profoundui/proddata/images/icons/change.png",
@@ -5118,7 +5119,7 @@ pui.toolbox.add({category:"Input Controls",widget:"slider",text:"Slider",icon:"/
5118
5119
  defaults:{}});pui.toolbox.add({category:"Input Controls",widget:"file upload",text:"File Upload",icon:"/profoundui/proddata/images/icons/page_white_get.png",cls:"widget-node",proxyHeight:150,proxyWidth:400,proxyHTML:'<img src="/profoundui/proddata/images/fileupload.png" style="height: 150px; width: 400px;">',leaf:true,defaults:{}});
5119
5120
  pui.toolbox.add({category:"Input Controls",widget:"file upload dnd",text:"File Upload (drag/drop)",icon:"/profoundui/proddata/images/icons/page_white_get.png",cls:"widget-node",proxyHeight:252,proxyWidth:300,proxyHTML:'<img src="/profoundui/proddata/images/fileuploadDND.png" style="height: 252px; width: 300px;">',leaf:true,defaults:{}});
5120
5121
  M=="dspf"&&MOBILE_LICENSE&&pui.toolbox.add({category:"Input Controls",widget:"signature pad",text:"Signature Pad",icon:"/profoundui/proddata/images/icons/signature.png",cls:"widget-node",proxyHeight:150,proxyWidth:450,proxyHTML:'<div style="border: 1px solid #000000; background-color: #ffffcc; height: 150px; width: 450px;">',leaf:true,defaults:{height:"150px",width:"450px","css class":"pui-signature-pad-container"}});
5121
- for(var pe=0;pe<pui.widgets.Nt.length-1;pe++){var Ch=pui.widgets.Nt[pe];pui.toolbox.add({category:"Charts",widget:"chart",text:pui.widgets.bU[pe],icon:"/profoundui/proddata/images/charts/"+Ch+"_icon.png?v=2",cls:"widget-node",proxyHeight:200,proxyWidth:300,proxyHTML:'<img src="/profoundui/proddata/images/charts/'+Ch+'.jpg?v=2" style="height: 202px; width: 302px;">',leaf:true,defaults:{"chart type":Ch,"chart options":'theme="zune"'}});Ch=null}
5122
+ for(var pe=0;pe<pui.widgets.Nt.length-1;pe++){var Dh=pui.widgets.Nt[pe];pui.toolbox.add({category:"Charts",widget:"chart",text:pui.widgets.bU[pe],icon:"/profoundui/proddata/images/charts/"+Dh+"_icon.png?v=2",cls:"widget-node",proxyHeight:200,proxyWidth:300,proxyHTML:'<img src="/profoundui/proddata/images/charts/'+Dh+'.jpg?v=2" style="height: 202px; width: 302px;">',leaf:true,defaults:{"chart type":Dh,"chart options":'theme="zune"'}});Dh=null}
5122
5123
  pui.toolbox.add({category:"Charts",widget:"chart",text:"Map",icon:"/profoundui/proddata/images/charts/Map_icon.png?v=2",cls:"widget-node",proxyHeight:200,proxyWidth:300,proxyHTML:'<img src="/profoundui/proddata/images/charts/Map.jpg?v=2" style="height: 202px; width: 302px;">',leaf:true,defaults:{"map type":"world","chart options":'theme="zune"'}});
5123
5124
  pui.toolbox.add({category:"Menus",widget:"menu",text:"Classic",icon:"/profoundui/proddata/images/menus/Classic/icon.png",cls:"widget-node",proxyHeight:202,proxyWidth:202,proxyHTML:'<img src="/profoundui/proddata/images/menus/Classic/proxy.png" style="height: 202px; width: 202px;">',leaf:true,defaults:{}});
5124
5125
  pui.toolbox.add({category:"Menus",widget:"menu",text:"Glass",icon:"/profoundui/proddata/images/menus/Glass/icon.png",cls:"widget-node",proxyHeight:202,proxyWidth:202,proxyHTML:'<img src="/profoundui/proddata/images/menus/Glass/proxy.png" style="height: 202px; width: 202px;">',leaf:true,defaults:{"font family":"Arial","font variant":"small-caps","text align":"center","background color":"#c9dff3","hover background color":"#ffffff","hover text color":"#0000ff"}});
@@ -5142,8 +5143,8 @@ proxyHeight:300,proxyWidth:200,proxyHTML:pui.layout.template.getProxy,leaf:true,
5142
5143
  height:"400px",width:"310px","layout items":"5","style rules":"@media screen { #_id_ > .puiresp { display:grid; grid-template-rows:auto; grid-template-columns:repeat(4, 1fr); grid-column-gap:3px; grid-row-gap:3px;}}","use viewport":"true"}});pui.toolbox.add({category:"Layouts",widget:"layout",text:"Tab Panel Layout",icon:"/profoundui/proddata/images/tabs/glass/icon.png",cls:"widget-node",proxyHeight:202,proxyWidth:302,proxyHTML:'<img src="/profoundui/proddata/images/tabs/glass/proxy.png" style="height: 202px; width: 302px;">',
5143
5144
  leaf:true,defaults:{template:"tab panel",height:"200px",width:"300px","css class":"Glass"}});MOBILE_LICENSE&&pui.toolbox.add({category:"Layouts",widget:"layout",text:"Mobile Scroller Layout",icon:"/profoundui/proddata/images/icons/scroller.png",cls:"widget-node",proxyHeight:300,proxyWidth:150,proxyHTML:'<div style="overflow: hidden; border: 2px dashed #666666; width: 147px; height: 297px;"></div>',leaf:true,defaults:{template:"simple container",height:"300px",width:"150px","css class":"scroller"}});
5144
5145
  pui.toolbox.add({category:"Layouts",widget:"layout",text:"Field Set Layout",icon:"/profoundui/proddata/images/icons/field_set_panel.png",proxyWidth:300,proxyHeight:200,proxyHTML:'<fieldset style="width:300px; height:200px;"><legend>Field Set</legend>&nbsp;</fieldset>',defaults:{template:"fieldset",width:"300px",height:"200px",legend:"Field Set"}})}
5145
- for(var Dh in pui.widgets.tabStyles)if(Dh!="CSS"){Bh=pui.toolbox.add({category:"Tab Panels",widget:"tab panel",text:Dh,icon:"/profoundui/proddata/images/tabs/"+Dh.toLowerCase()+"/icon.png",cls:"widget-node",proxyHeight:202,proxyWidth:302,proxyHTML:'<img src="/profoundui/proddata/images/tabs/'+Dh.toLowerCase()+'/proxy.png" style="height: 202px; width: 302px;">',leaf:true,defaults:{"tab panel style":Dh}});if(Bh!=null&&Bh.defaults!=null){if(Dh=="Angle")Bh.defaults.color="#ffffff";if(Dh=="Delicate"){Bh.defaults.color=
5146
- "#666666";Bh.defaults["font weight"]="bold"}if(Dh=="Block")Bh.defaults.color="#ffffff"}Dh=Bh=null}pui.toolbox.add({category:"Panels",widget:"css panel",text:"CSS Panel Blue",icon:"/profoundui/proddata/images/buttons/mobile/csspanel.png",proxyHeight:300,proxyWidth:200,proxyHTML:function(b){return pui.widgets.qu(b)},defaults:{"header theme":"B - Blue","body theme":"C - Gray"}});
5146
+ for(var Eh in pui.widgets.tabStyles)if(Eh!="CSS"){Ch=pui.toolbox.add({category:"Tab Panels",widget:"tab panel",text:Eh,icon:"/profoundui/proddata/images/tabs/"+Eh.toLowerCase()+"/icon.png",cls:"widget-node",proxyHeight:202,proxyWidth:302,proxyHTML:'<img src="/profoundui/proddata/images/tabs/'+Eh.toLowerCase()+'/proxy.png" style="height: 202px; width: 302px;">',leaf:true,defaults:{"tab panel style":Eh}});if(Ch!=null&&Ch.defaults!=null){if(Eh=="Angle")Ch.defaults.color="#ffffff";if(Eh=="Delicate"){Ch.defaults.color=
5147
+ "#666666";Ch.defaults["font weight"]="bold"}if(Eh=="Block")Ch.defaults.color="#ffffff"}Eh=Ch=null}pui.toolbox.add({category:"Panels",widget:"css panel",text:"CSS Panel Blue",icon:"/profoundui/proddata/images/buttons/mobile/csspanel.png",proxyHeight:300,proxyWidth:200,proxyHTML:function(b){return pui.widgets.qu(b)},defaults:{"header theme":"B - Blue","body theme":"C - Gray"}});
5147
5148
  pui.toolbox.add({category:"Panels",widget:"css panel",text:"CSS Panel Black",icon:"/profoundui/proddata/images/buttons/mobile/csspanelblack.png",proxyHeight:300,proxyWidth:200,proxyHTML:function(b){return pui.widgets.qu(b)},defaults:{"header theme":"A - Black","body theme":"C - Gray"}});
5148
5149
  pui.toolbox.add({category:"Panels",widget:"css panel",text:"CSS Panel Red",icon:"/profoundui/proddata/images/buttons/mobile/csspanelred.png",proxyHeight:300,proxyWidth:200,proxyHTML:function(b){return pui.widgets.qu(b)},defaults:{"header theme":"G - Red","body theme":"C - Gray"}});
5149
5150
  pui.toolbox.add({category:"Panels",widget:"css panel",text:"CSS Panel Green",icon:"/profoundui/proddata/images/buttons/mobile/csspanelgreen.png",proxyHeight:300,proxyWidth:200,proxyHTML:function(b){return pui.widgets.qu(b)},defaults:{"header theme":"F - Green","body theme":"C - Gray"}});
@@ -5152,8 +5153,8 @@ pui.toolbox.add({category:"Panels",widget:"field set panel",text:"Field Set",ico
5152
5153
  pui.toolbox.add({category:"Panels",widget:"ajax container",text:"AJAX Container",icon:"/profoundui/proddata/images/icons/ajax_container.png",cls:"widget-node",proxyHeight:102,proxyWidth:202,proxyHTML:'<div style="font-family: Trebuchet MS; font-size: 14px; border: 1px dotted #15428B; height: 100px; width: 200px;">AJAX content will appear here.</div>',leaf:true,defaults:{}});
5153
5154
  pui.toolbox.add({category:"Panels",widget:"html container",text:"HTML Container",icon:"/profoundui/proddata/images/icons/html_container.png",cls:"widget-node",proxyHeight:102,proxyWidth:202,proxyHTML:'<div style="font-family: Trebuchet MS; font-size: 14px; border: 1px dotted #15428B; height: 100px; width: 200px;"><i>HTML Content</i></div>',leaf:true,defaults:{}});
5154
5155
  pui.toolbox.add({category:"Panels",widget:"iframe",text:"IFrame",icon:"/profoundui/proddata/images/icons/iframe.png",cls:"widget-node",proxyHeight:302,proxyWidth:402,proxyHTML:'<div style="font-family: Trebuchet MS; font-size: 14px; border: 1px dotted #15428B; height: 300px; width: 400px; background-color: #ffffff;">IFrame content will appear here.</div>',leaf:true,defaults:{}});
5155
- for(var Eh in pui.widgets.panelStyles){zh=pui.widgets.panelStyles[Eh];Bh=pui.toolbox.add({category:zh.dialog?"Dialogs":"Panels",widget:"panel",text:Eh+(zh.dialog?"":" Panel"),newId:zh.dialog?"Dialog":"Panel",icon:"/profoundui/proddata/images/panels/"+Eh+"/icon.png",cls:"widget-node",proxyHeight:zh.height!=null?zh.height:pui.widgets.bu,proxyWidth:zh.width!=null?zh.width:pui.widgets.cu,proxyHTML:function(b){return pui.widgets.getPanelProxy(b)},leaf:true,defaults:{"panel style":Eh}});if(Bh!=null&&Bh.defaults!=
5156
- null){if(zh.textColor!=null)Bh.defaults.color=zh.textColor;if(zh.width!=null)Bh.defaults.width=zh.width+"px";if(zh.height!=null)Bh.defaults.height=zh.height+"px";if(zh.textAlign!=null)Bh.defaults["text align"]=zh.textAlign;if(zh.fontSize!=null)Bh.defaults["font size"]=zh.fontSize;if(zh.dialog==true)Bh.defaults.value="Dialog Title";if(zh.noTitle==true)Bh.defaults.value=""}Eh=zh=Bh=null}
5156
+ for(var Fh in pui.widgets.panelStyles){Ah=pui.widgets.panelStyles[Fh];Ch=pui.toolbox.add({category:Ah.dialog?"Dialogs":"Panels",widget:"panel",text:Fh+(Ah.dialog?"":" Panel"),newId:Ah.dialog?"Dialog":"Panel",icon:"/profoundui/proddata/images/panels/"+Fh+"/icon.png",cls:"widget-node",proxyHeight:Ah.height!=null?Ah.height:pui.widgets.bu,proxyWidth:Ah.width!=null?Ah.width:pui.widgets.cu,proxyHTML:function(b){return pui.widgets.getPanelProxy(b)},leaf:true,defaults:{"panel style":Fh}});if(Ch!=null&&Ch.defaults!=
5157
+ null){if(Ah.textColor!=null)Ch.defaults.color=Ah.textColor;if(Ah.width!=null)Ch.defaults.width=Ah.width+"px";if(Ah.height!=null)Ch.defaults.height=Ah.height+"px";if(Ah.textAlign!=null)Ch.defaults["text align"]=Ah.textAlign;if(Ah.fontSize!=null)Ch.defaults["font size"]=Ah.fontSize;if(Ah.dialog==true)Ch.defaults.value="Dialog Title";if(Ah.noTitle==true)Ch.defaults.value=""}Fh=Ah=Ch=null}
5157
5158
  pui.toolbox.add({category:"Dialogs",widget:"image",text:"Close Button 1",newId:"Button",icon:"/profoundui/proddata/images/buttons/close/x1.png",cls:"widget-node",proxyHeight:16,proxyWidth:16,proxyHTML:'<img src="/profoundui/proddata/images/buttons/close/x1.png">',leaf:true,defaults:{"image source":"/profoundui/proddata/images/buttons/close/x1.png","hover image source":"/profoundui/proddata/images/buttons/close/x1_hover.png",cursor:"pointer","bypass validation":"true"}});
5158
5159
  pui.toolbox.add({category:"Dialogs",widget:"image",text:"Close Button 2",newId:"Button",icon:"/profoundui/proddata/images/buttons/close/x2.png",cls:"widget-node",proxyHeight:16,proxyWidth:16,proxyHTML:'<img src="/profoundui/proddata/images/buttons/close/x2.png">',leaf:true,defaults:{"image source":"/profoundui/proddata/images/buttons/close/x2.png","hover image source":"/profoundui/proddata/images/buttons/close/x2_hover.png","click image source":"/profoundui/proddata/images/buttons/close/x2_click.png",
5159
5160
  cursor:"pointer","bypass validation":"true"}});pui.toolbox.add({category:"Dialogs",widget:"image",text:"Close Button 3",newId:"Button",icon:"/profoundui/proddata/images/buttons/close/x3.png",cls:"widget-node",proxyHeight:16,proxyWidth:16,proxyHTML:'<img src="/profoundui/proddata/images/buttons/close/x3.png">',leaf:true,defaults:{"image source":"/profoundui/proddata/images/buttons/close/x3.png","hover image source":"/profoundui/proddata/images/buttons/close/x3_hover.png",cursor:"pointer","bypass validation":"true"}});
@@ -5252,10 +5253,10 @@ h.dataType=="zoned"){i.value="0";h=Number(h.decPos);if(!isNaN(h)&&h>0)for(i.valu
5252
5253
  if(!(n!=null&&n.type=="checkbox"&&!n.checked)){var i=k;n=h;n[i.formatName]={data:{},subfiles:{}};k=n[i.formatName].data;n=n[i.formatName].subfiles;var o=f.rows[i.rowIndex+1];if(i.rowIndex==-1)o=null;for(;o!=null&&o.formatName==null;){var q=o.cells[0].fieldName,l=o.cells[1].firstChild;i=l.value;if(l.type=="checkbox")i=l.checked?"1":"0";g[q]=i;var s=q.split(".");if(s.length==2){l=s[0];q=s[1];if(n[l]==null){n[l]={ref:{},"field names":[],data:[]};for(s=1;s<=20;s++)n[l].data.push([])}n[l]["field names"].push(q);
5253
5254
  q=n[l].data;for(l=0;l<q.length;l++)q[l].push(i)}else k[q]=i;if(o.rowIndex==-1)break;o=f.rows[o.rowIndex+1]}}}}return h};this.bK=function(){g={}}};pui.designer.ks=new pui.designer.uQ;
5254
5255
  pui.generatePreview=function(b){var a=Ext.getCmp(b);if(a){var c=a.currentDisplay;b=a.nY;a=a.recordFormats;var d=[],e=c.member;if(e==null)e=c.Rx;if(e==null)e="FILE";c=c.library;if(c==null)c="LIBRARY";for(formatName in b){var f=a.Cf(formatName);if(f!=null){f=f.ri(f.j);f=eval("("+f+")");format={name:formatName,file:e,library:c,fileId:1,ref:{},data:b[formatName].data,subfiles:b[formatName].subfiles,metaData:f};d.push(format)}}if(d.length.length>0)d[d.length-1].active=true;return{success:true,psid:"99999",
5255
- appJob:{auth:"",user:"",sysTime:0,decimalFormat:" ",curSym:"$",dateSeparator:"/",timeSeparator:":",dateFormat:"*MDY",sysName:""},layers:[{formats:d}]}}};pui.ide.JD=function(){pui.designer.Zh.call(this,{title:"Setup Database Table Joins",width:640,height:480,resizable:true,modal:true});this.Ti=null;Ig(this,"center")};pui.ide.JD.prototype=Object.create(pui.designer.Zh.prototype);Ba=pui.ide.JD.prototype;Ba.show=function(b,a,c){this.aJ=0;this.di=c;this.Ti&&this.Ti.destroy();this.Ti=new pui.Vb.tq({$M:this.Zb.width,UM:this.Zb.height});this.Ti.init(this.lh);pui.designer.Zh.prototype.show.call(this,b,a)};
5256
+ appJob:{auth:"",user:"",sysTime:0,decimalFormat:" ",curSym:"$",dateSeparator:"/",timeSeparator:":",dateFormat:"*MDY",sysName:""},layers:[{formats:d}]}}};pui.ide.JD=function(){pui.designer.Zh.call(this,{title:"Setup Database Table Joins",width:640,height:480,resizable:true,modal:true});this.Ti=null;Jg(this,"center")};pui.ide.JD.prototype=Object.create(pui.designer.Zh.prototype);Ba=pui.ide.JD.prototype;Ba.show=function(b,a,c){this.aJ=0;this.di=c;this.Ti&&this.Ti.destroy();this.Ti=new pui.Vb.tq({$M:this.Zb.width,UM:this.Zb.height});this.Ti.init(this.lh);pui.designer.Zh.prototype.show.call(this,b,a)};
5256
5257
  Ba.hide=function(){pui.designer.Zh.prototype.hide.call(this);this.Ti.destroy();this.Ti=null};Ba.hx=function(b){this.Zb.width=b.width;this.Zb.height=b.height;this.Ti.Kt.right=b.width;this.Ti.Kt.bottom=b.height};
5257
- Ba.VB=function(){for(var b=0,a=this.mh.length;b<a;b++){var c=this.mh[b],d,e,f;if(typeof c.error=="string"&&c.error.length>0){e=[];d=c.error}else if(c.fields){e=c.fields;d=(c.library&&c.library.length>0?c.library+"/":"")+c.file;if(c.Ij&&c.Ij.length>0){d+=" ("+c.Ij+")";f=c.Ij}else f=d}else{e=[];d=c.error?c.error:"N/A"}c=new pui.Vb.Ws({width:150,left:10+200*this.aJ,top:10,displayName:f,KA:d,id:c.ob,fields:e});this.aJ+=1;mf(this.Ti,c)}if(this.di&&this.di.jlist&&this.di.jlist.length>0){b=this.Ti;a=this.di.jlist;
5258
- f=0;for(c=a.length;f<c;f++){d=a[f];e=d.id;if(e!=null)if(e=wf(b,e)){d.xy instanceof Array&&e.setLeftTop(d.xy);e=e.yj.rows;if(d.parent){var g=wf(b,d.parent);g&&xf(b,d.conditions,g.yj.rows,e,d.joinPType)}}}nf(b)}};Ba.Sk=function(){var b;b=this.Ti.ee;var a={};b.UI=[a];Hf(b,b.Wi,null,a);b=b.UI;this.di=b instanceof Array&&b.length>0?{jlist:b,join:true,designValue:"{join criteria}"}:null;pui.designer.Zh.prototype.Sk.call(this)};pui.cnv.zD=function(){pui.cnv.warnings.clear();pui.cnv.hg.clear();pui.cnv.hb.clear(pui.cnv.greenScreenDisplay.text);pui.cnv.info={};pui.cnv.info.formats={};pui.cnv.info.yB=null;pui.cnv.aj=null;pui.cnv.fb=false;pui.cnv.warnings.SS(pui.cnv.greenScreenDisplay.alerts,20);pui.cnv.CD(pui.cnv.greenScreenDisplay.keywords,"file");var b=pui.cnv.greenScreenDisplay.formats;for(var a in b)pui.cnv.rU(a,b[a]);pui.cnv.hg.hb();pui.cnv.PZ(b);pui.cnv.EZ();pui.cnv.EX();pui.cnv.rY()};pui.cnv.rU=function(b,a){pui.cnv.info.formats[b]={};pui.cnv.hb.ZS(b);pui.cnv.CD(a.keywords,"format");var c=pui.cnv.getScreenWidth(b);if(!pui.cnv.info.formats[b].yn){var d=pui.cnv.themes.na("items");if(pui.cnv.info.formats[b].yg!=null)d=pui.cnv.themes.na("windows").items;if(d!=null)for(var e=0;e<d.length;e++){var f=d[e],g={};if(c==132&&(f.alt_width!=null||f.alt_height!=null))for(var h in f)if(h.substr(0,4)=="alt_")g[h.substr(4)]=f[h];else g[h]=f[h];else for(h in f)if(h.substr(0,4)!="alt_")g[h]=f[h];
5258
+ Ba.VB=function(){for(var b=0,a=this.mh.length;b<a;b++){var c=this.mh[b],d,e,f;if(typeof c.error=="string"&&c.error.length>0){e=[];d=c.error}else if(c.fields){e=c.fields;d=(c.library&&c.library.length>0?c.library+"/":"")+c.file;if(c.Ij&&c.Ij.length>0){d+=" ("+c.Ij+")";f=c.Ij}else f=d}else{e=[];d=c.error?c.error:"N/A"}c=new pui.Vb.Ws({width:150,left:10+200*this.aJ,top:10,displayName:f,KA:d,id:c.ob,fields:e});this.aJ+=1;nf(this.Ti,c)}if(this.di&&this.di.jlist&&this.di.jlist.length>0){b=this.Ti;a=this.di.jlist;
5259
+ f=0;for(c=a.length;f<c;f++){d=a[f];e=d.id;if(e!=null)if(e=xf(b,e)){d.xy instanceof Array&&e.setLeftTop(d.xy);e=e.yj.rows;if(d.parent){var g=xf(b,d.parent);g&&yf(b,d.conditions,g.yj.rows,e,d.joinPType)}}}of(b)}};Ba.Sk=function(){var b;b=this.Ti.ee;var a={};b.UI=[a];If(b,b.Wi,null,a);b=b.UI;this.di=b instanceof Array&&b.length>0?{jlist:b,join:true,designValue:"{join criteria}"}:null;pui.designer.Zh.prototype.Sk.call(this)};pui.cnv.zD=function(){pui.cnv.warnings.clear();pui.cnv.hg.clear();pui.cnv.hb.clear(pui.cnv.greenScreenDisplay.text);pui.cnv.info={};pui.cnv.info.formats={};pui.cnv.info.yB=null;pui.cnv.aj=null;pui.cnv.fb=false;pui.cnv.warnings.SS(pui.cnv.greenScreenDisplay.alerts,20);pui.cnv.CD(pui.cnv.greenScreenDisplay.keywords,"file");var b=pui.cnv.greenScreenDisplay.formats;for(var a in b)pui.cnv.rU(a,b[a]);pui.cnv.hg.hb();pui.cnv.PZ(b);pui.cnv.EZ();pui.cnv.EX();pui.cnv.rY()};pui.cnv.rU=function(b,a){pui.cnv.info.formats[b]={};pui.cnv.hb.ZS(b);pui.cnv.CD(a.keywords,"format");var c=pui.cnv.getScreenWidth(b);if(!pui.cnv.info.formats[b].yn){var d=pui.cnv.themes.na("items");if(pui.cnv.info.formats[b].yg!=null)d=pui.cnv.themes.na("windows").items;if(d!=null)for(var e=0;e<d.length;e++){var f=d[e],g={};if(c==132&&(f.alt_width!=null||f.alt_height!=null))for(var h in f)if(h.substr(0,4)=="alt_")g[h.substr(4)]=f[h];else g[h]=f[h];else for(h in f)if(h.substr(0,4)!="alt_")g[h]=f[h];
5259
5260
  g.id=pui.cnv.Pl+"_"+b+"_"+g.id;pui.cnv.hb.addItem(g)}}pui.cnv.info.yB!=null&&pui.cnv.hb.gT("*IN"+pui.cnv.info.yB);c=a.fields;if(c!=null)for(e=0;e<c.length;e++){d=c[e];d.formatName=b;d.memberName=pui.cnv.Pl;pui.cnv.qU(d)}e=pui.cnv.themes.na("add enhancements");if(e!=null&&typeof e=="function"){c=pui.cnv.info.formats[b];e(pui.cnv.hb.yl(),c.yn,c.yg!=null,pui.cnv.Pl,a)}};pui.cnv.qU=function(b){if(b.alt_cond!=null)if(pui.cnv.tP(b.alt_cond,b.formatName)){if(b.alt_row!=null)b.row=b.alt_row;if(b.alt_col!=null)b.col=b.alt_col}var a=b.row,c=b.col,d=pui.cnv.info.formats[b.formatName];if(a!=null&&c!=null){var e=a,f=c+pui.cnv.hL(b)-1,g=pui.cnv.getScreenWidth(b.formatName);if(f>g){for(;f>g;){f-=g;e+=1}f=g}if(d.xk==null)d.xk=a;if(d.Kj==null)d.Kj=e;if(d.Tr==null)d.Tr=c;if(d.Xp==null)d.Xp=f;if(a<d.xk)d.xk=a;if(e>d.Kj)d.Kj=e;if(c<d.Tr)d.Tr=c;if(f>d.Xp)d.Xp=f}a=pui.cnv.oW(b);c=
5260
5261
  pui.cnv.mW(b);e=pui.cnv.themes.na("remove option labels");f=pui.cnv.themes.na("remove fkey labels");if((a=e&&a||f&&c)&&b.cond!=null){b["const"]=" ";a=false}if(!a){a=pui.cnv.hb.addField(b);pui.cnv.CD(b.keywords,"field",b);c=pui.cnv.themes.na("process field");c!=null&&typeof c=="function"&&c(b,a,d.yn,d.yg!=null)}};
5261
5262
  pui.cnv.oW=function(b){function a(){var n=c.split("=");if(n.length>2)return pui.cnv.nW(c,d);if(n.length!=2)return false;var i=n[1];n=pui.cnv.jD(n[0],i);if(n===false)return false;if(d.options==null)d.options=[];d.options.push({option:n,text:i});return true}if(b.cond!=null&&pui.cnv.themes.na("include conditioned options")!=true)return false;var c=b["const"];if(c==null||c=="")return false;var d=pui.cnv.info.formats[b.formatName];if(d.zq==null)return false;var e=pui.jV(pui.cnv.themes.na("subfile option pattern"),
@@ -5307,7 +5308,7 @@ b[h];for(g in a)d.add({name:m.name,parms:m.parms,B:m.B,line:m.line,cond:m.cond,f
5307
5308
  c("row height");if(k==132&&c("alt row height")!=null)t=c("alt row height");var u,v=pui.cnv.info.formats[g].yg;if(v!=null){u=c("windows");if(u["button left offset"]!=null){s=u["button left offset"];if(k==132&&u["alt button left offset"]!=null)s=u["alt button left offset"]}}if(s==null)s=n*2;k=1;n=s;var w=pui.cnv.KE(g);if(c("buttons start at the top"))w=2;w++;w=w*t+c("top offset");if(c("button top")!=null)w=c("button top");if(v!=null){e=u["button width"];o=u["horizontal button spacing"];q=u["vertical button spacing"];
5308
5309
  l=u["buttons per row"];if(v.height==null&&v.qs!=null)v.height=pui.cnv.info.formats[v.qs].yg.height;if(v.width==null&&v.qs!=null)v.width=pui.cnv.info.formats[v.qs].yg.width;w=v.height+u["button offset"];if(l=="auto"){l=parseInt((v.width-s)/(e+o));if(l<1)l=1}}t=[];f=c("add submit button");if(v!=null&&c("windows")["add submit button"]!=null)f=c("windows")["add submit button"];if(f){m={name:"Submit",format:pui.cnv.hb.Cf(g),Ba:"format"};t.push(m)}f=a[g];for(h in f)t.push(f[h]);f=c("fkey sort");if(f==null)f=
5309
5310
  function(y,B){var C=y.name,z=B.name;if(C=="Submit")return-1;if(z=="Submit")return 1;if(C.substr(0,2)=="CA")C="CF"+C.substr(2);if(z.substr(0,2)=="CA")z="CF"+z.substr(2);return C<z?-1:1};t.sort(f);for(f=0;f<t.length;f++){m=t[f];if(pui.cnv.hb.XS(m,n,w)){k++;n+=e+o;if(k>l){k=1;n=s;w+=i+q;if(v!=null){m=v.panel;if(m==null&&v.qs!=null)m=pui.cnv.info.formats[v.qs].yg.panel;if(m!=null&&f!=t.length-1)m.height=parseInt(m.height)+i+q+"px"}}}}}}};pui.cnv.hg=new pui.cnv.fQ;
5310
- for(var Fh=1;Fh<=24;Fh++){var Gh=String(Fh);if(Fh<10)Gh="0"+Gh;var Hh="CA"+Gh;pui.cnv.t["CF"+Gh]=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t[Hh]=function(b){pui.cnv.hg.add(b);return true}}pui.cnv.t.PAGEDOWN=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.PAGEUP=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.ROLLUP=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.ROLLDOWN=function(b){pui.cnv.hg.add(b);return true};
5311
+ for(var Gh=1;Gh<=24;Gh++){var Hh=String(Gh);if(Gh<10)Hh="0"+Hh;var Ih="CA"+Hh;pui.cnv.t["CF"+Hh]=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t[Ih]=function(b){pui.cnv.hg.add(b);return true}}pui.cnv.t.PAGEDOWN=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.PAGEUP=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.ROLLUP=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.ROLLDOWN=function(b){pui.cnv.hg.add(b);return true};
5311
5312
  pui.cnv.t.HELP=function(b){var a=true,c=pui.cnv.greenScreenDisplay.keywords;if(b.Ba=="file")if(pui.cnv.Xj(c,"HLPRTN"))a=false;if(b.Ba=="format"){if(pui.cnv.Xj(c,"HLPRTN"))a=false;c=pui.cnv.greenScreenDisplay.formats[b.formatName].keywords;if(pui.cnv.Xj(c,"HLPRTN"))a=false}if(pui.cnv.themes.na("help button")===false)a=false;a&&pui.cnv.hg.add(b);return true};pui.cnv.t.HLPRTN=function(b){if(pui.cnv.themes.na("help button")===false)return true;pui.cnv.hg.add(b);if(b.cond)return false;return true};
5312
5313
  pui.cnv.t.CLEAR=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.HOME=function(b){pui.cnv.hg.add(b);return true};pui.cnv.t.PRINT=function(b){var a=b.B;if(a==null)a="";if(a.length==2){var c=a.substr(0,1);a=a.substr(1,1);if(c<"0"||c>"9"||a<"0"||a>"9")return null}else if(a!="*PGM")return null;pui.cnv.hg.add(b);return true};pui.cnv.PZ=function(b){for(var a in b){var c=pui.cnv.info.formats[a].xk,d=pui.cnv.info.formats[a].Kj,e=pui.cnv.info.formats[a].yn,f=pui.cnv.info.formats[a].zq,g=pui.cnv.LJ(a);if(c==null)c=pui.cnv.KE(a);if(d==null)d=1;if(!e){if(f!=null&&f!=""&&g!=null&&!isNaN(g)&&g>0){e=pui.cnv.info.formats[f];if(e!=null){d=e.xk;if(d<c)c=d;f=e.Kj;e=e.YH;if(e!=null)f=d=e;d=d+g*(f-d+1)-1}}if(d>=c){g=pui.cnv.info.formats[a].Pw;if(g!=null&&g>1){c+=g-1;d+=g-1}c=c+"-"+d;pui.cnv.hb.Cf(a).screen["overlay range"]=c}}}};pui.cnv.EZ=function(){var b=pui.cnv.info.yw;if(b!=null)for(var a in b){var c=b[a];pui.cnv.hb.Cf(a).screen["design overlay formats"]=c.join(",");for(var d=0;d<c.length;d++){var e=c[d];c[d]=a;pui.cnv.hb.Cf(e).screen["design overlay formats"]=c.join(",");c[d]=e}}};pui.cnv.HZ=function(){if(pui.cnv.info.XK!=null)for(var b=pui.cnv.hb.su(),a=0;a<b.length;a++){for(var c=b[a].screen,d=false,e=1,f="";!d;){if(e>1)f=" "+String(e);if(c["help title"+f]==null)d=true;e++}d=e-1;c["help title"+f]=pui.cnv.info.XK;c["help titles"]=d+" help title";if(d>1)c["help titles"]+="s"}};
5313
5314
  pui.cnv.rY=function(){pui.cnv.HZ();if(pui.cnv.info.sl!=null)for(var b in pui.cnv.info.formats){if(pui.cnv.info.formats[b].help==null)pui.cnv.info.formats[b].help=[];var a=false;if(pui.cnv.info.sl.mg!=null){var c=pui.cnv.info.sl.mg[0];if(c!=null)if(c["help panel group"]!=null){a=true;pui.cnv.info.sl.By="*NONE"}}a?pui.cnv.info.formats[b].help.splice(0,0,pui.cnv.info.sl):pui.cnv.info.formats[b].help.push(pui.cnv.info.sl)}for(b in pui.cnv.info.formats){a=pui.cnv.info.formats[b].help;if(a!=null){c=0;var d=
@@ -5357,7 +5358,7 @@ b+".")}else U.alert("Unable to open. Response is invalid.");return}if(pui.displa
5357
5358
  if(d==null||typeof d!="object"||typeof d.length!="number"){screenMask.hide();U.alert("Unable to open. Response does not contain a list of record formats.")}else if(d.length<1){screenMask.hide();U.alert("Unable to open. No record formats returned.")}else if(d[0]==null||d[0].screen==null||typeof d[0].screen!="object"||d[0].items==null){screenMask.hide();U.alert("Unable to open. Invalid response.")}else if(d[0].content!=null){screenMask.hide();U.alert("This is not a Rich Display File.")}else{Ext.getCmp("RecFormatsTabPanel").setActiveTab(0);
5358
5359
  te.Me(pui.display["canvas width"],pui.display["canvas height"]);pui.designer.fb=pui.display["long name aliases"]==true;pui.Qa=pui.display.origkeywords;if(pui.Qa==null)pui.Qa=[];U.xn()||pui.Qa.push("ALLINONE");var e=pui.display.origdds;if(e==null)e=[];pui.designer.M.split(e);T.Wr(d);d=pui.display.savefile;e=pui.display.savemem;var f=pui.display.mergeid;pui.designer.currentDisplay.library=pui.display.savelib;pui.designer.currentDisplay.file=d;pui.designer.currentDisplay.member=e;pui.designer.currentDisplay.text=
5359
5360
  b;pui.designer.currentDisplay.comments=c;pui.designer.currentDisplay.ifsFile=null;pui.designer.currentDisplay.Ob=null;pui.designer.currentDisplay.Fi=null;pui.designer.currentDisplay.Ih=null;pui.designer.currentDisplay.bp=true;te.Wg();pui.ide.Yb();screenMask.hide();setTimeout(function(){te.At();setTimeout(function(){screenMask.hide();pui.cnv.Tu=true;T.save({library:pui.designer.currentDisplay.library,file:pui.designer.currentDisplay.file,member:pui.designer.currentDisplay.member,text:pui.designer.currentDisplay.text,
5360
- comments:pui.designer.currentDisplay.comments,AX:true,replace:true,CX:f,onsuccess:function(){pui.cnv.HA!=true&&pui.cnv.OM()}});pui.cnv.Tu=false},20)},10)}}}})};pui.cnv.t.ALIAS=function(b){var a=pui.cnv.themes.na("use aliases");if(a==null)a=true;if(a==true&&b.B!=""&&pui.h(b.item.value)){pui.cnv.fb=true;a=b.field.name.toUpperCase();b.item.value.longName=b.B;b.item.value.designValue="["+b.B+"]";if(b.format.screen&&typeof b.format.screen=="object")for(var c in b.format.screen){var d=b.format.screen[c];if(d!=null&&pui.h(d)&&d.fieldName.toUpperCase()==a){d.longName=b.B;d.designValue="["+b.B+"]"}}return true}return{Qq:true}};pui.cnv.t.ALTHELP=function(b){Fh=1;if(b.B!=null&&typeof b.B=="string"&&b.B.length>=4)Fh=parseInt(b.B.substr(2));if(isNaN(Fh))Fh=1;if(Fh<1||Fh>24)Fh=1;pui.cnv.info.Vq="F"+Fh;return true};pui.cnv.t.BLANKS=function(b){b.item["is blank"]=pui.cnv.Gn("*IN"+b.B);if(pui.cnv.info.formats[b.formatName].pB==true||pui.cnv.info.formats[b.formatName].Lw==true)pui.cnv.warnings.add("BLANKS used with OVRATR or PUTRETAIN.",10,b);else for(var a=b.field.keywords,c=0;c<a.length;c++)if(a[c].name=="OVRATR"||a[c].name=="PUTRETAIN")pui.cnv.warnings.add("BLANKS used with OVRATR or PUTRETAIN.",10,b);return true};pui.cnv.t.CCSID=function(){return{Qq:true}};pui.cnv.t.CHANGE=function(b){var a="changed",c=null;if(b.Ba=="field")c=b.item;if(b.Ba=="format"){c=pui.cnv.info.formats[b.formatName];if(c!=null&&c.yn)a="subfile changed";c=b.format.screen}if(c==null)return false;b=b.B;b="*IN"+b;c[a]=pui.cnv.Gn(b);return true};pui.cnv.t.CHECK=pui.cnv.t.AUTO=function(b){if(b.ref==true&&pui.cnv.Xj(b.field.keywords,"DLTCHK"))return true;if(b.parms.length>1)return pui.cnv.TK(b);if(b.B=="ER"||b.B=="ME")b.cond!=null&&pui.cnv.info.formats[b.formatName].Lw==true&&pui.cnv.warnings.add("Conditional CHECK("+b.B+") used with OVRATR.",10,b);if(b.B=="ME")return[{da:"mandatory entry",on:"true",aa:"false"}];if(b.B=="MF")return[{da:"mandatory fill",on:"true",aa:"false"}];if(b.B=="LC"){if(b.cond!=null)return false;b.item.value!=null&&b.item.value.textTransform!=
5361
+ comments:pui.designer.currentDisplay.comments,AX:true,replace:true,CX:f,onsuccess:function(){pui.cnv.HA!=true&&pui.cnv.OM()}});pui.cnv.Tu=false},20)},10)}}}})};pui.cnv.t.ALIAS=function(b){var a=pui.cnv.themes.na("use aliases");if(a==null)a=true;if(a==true&&b.B!=""&&pui.h(b.item.value)){pui.cnv.fb=true;a=b.field.name.toUpperCase();b.item.value.longName=b.B;b.item.value.designValue="["+b.B+"]";if(b.format.screen&&typeof b.format.screen=="object")for(var c in b.format.screen){var d=b.format.screen[c];if(d!=null&&pui.h(d)&&d.fieldName.toUpperCase()==a){d.longName=b.B;d.designValue="["+b.B+"]"}}return true}return{Qq:true}};pui.cnv.t.ALTHELP=function(b){Gh=1;if(b.B!=null&&typeof b.B=="string"&&b.B.length>=4)Gh=parseInt(b.B.substr(2));if(isNaN(Gh))Gh=1;if(Gh<1||Gh>24)Gh=1;pui.cnv.info.Vq="F"+Gh;return true};pui.cnv.t.BLANKS=function(b){b.item["is blank"]=pui.cnv.Gn("*IN"+b.B);if(pui.cnv.info.formats[b.formatName].pB==true||pui.cnv.info.formats[b.formatName].Lw==true)pui.cnv.warnings.add("BLANKS used with OVRATR or PUTRETAIN.",10,b);else for(var a=b.field.keywords,c=0;c<a.length;c++)if(a[c].name=="OVRATR"||a[c].name=="PUTRETAIN")pui.cnv.warnings.add("BLANKS used with OVRATR or PUTRETAIN.",10,b);return true};pui.cnv.t.CCSID=function(){return{Qq:true}};pui.cnv.t.CHANGE=function(b){var a="changed",c=null;if(b.Ba=="field")c=b.item;if(b.Ba=="format"){c=pui.cnv.info.formats[b.formatName];if(c!=null&&c.yn)a="subfile changed";c=b.format.screen}if(c==null)return false;b=b.B;b="*IN"+b;c[a]=pui.cnv.Gn(b);return true};pui.cnv.t.CHECK=pui.cnv.t.AUTO=function(b){if(b.ref==true&&pui.cnv.Xj(b.field.keywords,"DLTCHK"))return true;if(b.parms.length>1)return pui.cnv.TK(b);if(b.B=="ER"||b.B=="ME")b.cond!=null&&pui.cnv.info.formats[b.formatName].Lw==true&&pui.cnv.warnings.add("Conditional CHECK("+b.B+") used with OVRATR.",10,b);if(b.B=="ME")return[{da:"mandatory entry",on:"true",aa:"false"}];if(b.B=="MF")return[{da:"mandatory fill",on:"true",aa:"false"}];if(b.B=="LC"){if(b.cond!=null)return false;b.item.value!=null&&b.item.value.textTransform!=
5361
5362
  null&&delete b.item.value.textTransform;b.item["text transform"]!=null&&delete b.item["text transform"];return true}if(b.B=="RB"||b.B=="RAB"){var a=b.item.value;if(pui.h(a)){if(a.formatting=="Text")a.blankFill="true";if(a.formatting=="Number")a.numBlankFill="true"}return[{da:"text align",on:"right",aa:"left"}]}if(b.B=="RZ"||b.B=="RAZ"){if(b.cond!=null)return false;b.item["text align"]="right";a=b.item.value;if(a==null)return false;if(!pui.h(a))return false;if(a.formatting=="Number"){a.zeroFill="true";
5362
5363
  if(b.field["field type"]=="I")a.zeroFill="false"}if(a.formatting=="Text")a.rjZeroFill="true";return true}if(b.B=="RL")return[{da:"css class",on:"RTL",aa:""}];if(b.B=="ER"||b.B=="RA"){if(b.Ba=="file")return pui.cnv.info.Uo=true;if(b.Ba=="format")return pui.cnv.info.formats[b.formatName].Uo=true;if(b.Ba=="field")return[{da:"auto advance",on:"true",aa:"false"}]}if(b.B=="FE")return[{da:"prevent auto tab",on:"true",aa:"false"}];if(b.B=="AB"){if(b.Ba=="file")return pui.cnv.info.Tq=true;if(b.Ba=="format")return pui.cnv.info.formats[b.formatName].Tq=
5363
5364
  true;if(b.Ba=="field")return[{da:"allow blanks",on:"true",aa:"false"}]}if(b.B=="VN"){if(b.Ba=="file")return pui.cnv.info.validateName=true;if(b.Ba=="format")return pui.cnv.info.formats[b.formatName].validateName=true;if(b.Ba=="field")return[{da:"validate name",on:"true",aa:"false"}]}return false};pui.cnv.t.CHGINPDFT=function(b){if(b.parms==null||b.parms.length==0||b.B==null||b.B==""){if(b.Ba=="file")pui.cnv.info.Os=false;if(b.Ba=="format")pui.cnv.info.formats[b.formatName].Os=false;return true}for(var a=null,c=0;c<b.parms.length;c++){var d=b.parms[c];if(d=="UL"){if(b.Ba=="file")pui.cnv.info.Os=true;if(b.Ba=="format")pui.cnv.info.formats[b.formatName].Os=true;if(a==null)a=true}else if(d=="FE"){if(b.Ba=="file")pui.cnv.info.fG=true;if(b.Ba=="format")pui.cnv.info.formats[b.formatName].fG=true;
@@ -5409,4 +5410,4 @@ null)g=pui.cnv.themes.na("alt row height");a=pui.cnv.info.formats[b.formatName].
5409
5410
  "css panel"){d.panel["field type"]="css panel";delete d.panel["panel style"];d.panel["header theme"]="B - Blue";if(c["header theme"]!=null)d.panel["header theme"]=c["header theme"];d.panel["body theme"]="C - Gray";if(c["body theme"]!=null)d.panel["body theme"]=c["body theme"];if(c["has header"]!=null)d.panel["has header"]=c["has header"];if(c["header height"]!=null)d.panel["header height"]=c["header height"];if(c["straight edge"]!=null)d.panel["straight edge"]=c["straight edge"]}if(c["css class"])d.panel["css class"]=
5410
5411
  c["css class"];b.format.items.push(d.panel);pui.cnv.info.formats[b.formatName].yg=d;return true};
5411
5412
  pui.cnv.t.WDWTITLE=function(b){for(var a=null,c=0;c<b.parms.length;c++){var d=b.parms[c];if(d.length>=3&&d.substr(0,1)=="("&&d.substr(d.length-2,2)==");")d=d.substr(0,d.length-1);if(d.substr(0,1)=="("&&d.substr(d.length-1,1)==")"){d=d.substr(1,d.length-2);if(d.substr(0,6)=="*TEXT "){d=dc(d.substr(6));if(d.length>=2&&d.substr(0,1)=="'"&&d.substr(d.length-1,1)=="'")d=d.substr(1,d.length-2);else{var e=d.indexOf(")");if(e>=0)d=d.substr(0,e)}if(d!="")a=d}}}if(a==null){pui.cnv.warnings.add("Window title not specified.",
5412
- 10,b);return false}if(a.substr(0,1)=="&"){a=pui.cnv.wu(a,b.formatName);if(a==null){pui.cnv.warnings.add("Window title field not declared.",10,b);return false}a.designValue="["+a.fieldName+"]"}b=pui.cnv.info.formats[b.formatName];b.V_=a;if(b.yg!=null)b.yg.panel.value=a;return true};pui.cnv.t.WDWBORDER=wa(null);pui.cnv.t.RMVWDW=function(){return[{da:"remove window",on:"true",aa:"false"}]};pui.cnv.t.ASSUME=function(){return[{da:"assume",on:"true",aa:"false"}]};
5413
+ 10,b);return false}if(a.substr(0,1)=="&"){a=pui.cnv.wu(a,b.formatName);if(a==null){pui.cnv.warnings.add("Window title field not declared.",10,b);return false}a.designValue="["+a.fieldName+"]"}b=pui.cnv.info.formats[b.formatName];b.V_=a;if(b.yg!=null)b.yg.panel.value=a;return true};pui.cnv.t.WDWBORDER=wa(null);pui.cnv.t.RMVWDW=function(){return[{da:"remove window",on:"true",aa:"false"}]};pui.cnv.t.ASSUME=function(){return[{da:"assume",on:"true",aa:"false"}]};