profoundjs 6.6.1 → 6.6.3

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.
@@ -3462,10 +3462,10 @@ handler:function(){var e=Ext.getCmp("centerPanel").getActiveTab();if(e&&e.routeR
3462
3462
  pui.ide.r.sx(m,g,function(){var n=false,i=false;for(prop in m){var o=h[prop],q=m[prop];if(prop!=="example"&&typeof o=="string"&&!o.trim())o=null;if(prop!=="example"&&typeof q=="string"&&!q.trim())q=null;if(o!==q){i=true;if(q===null)delete h[prop];else h[prop]=q;if(prop=="type"&&q!="object"&&h.children){n=true;delete h.children}}}if(i){pui.ide.fa();a.panel.apiInputsGrid.getView().refreshRow(f.id)}n&&a.Hi()})}}}},{tooltip:"Remove Parameter",disabled:true,icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/remove-1.png":
3463
3463
  "/profoundui/proddata/images/dspfdesigner/icons16x16/delete.png",handler:function(){var e=Ext.getCmp("centerPanel").getActiveTab();if(e&&e.routeRecord)if((e=a.panel.apiInputsGrid.getSelectionModel().getSelected())&&e.json){a.panel.apiInputsGrid.getSelectionModel().clearSelections();a.Ev(e.json);a.Hi()}}}],sm:new Ext.grid.RowSelectionModel({singleSelect:true,listeners:{rowselect:function(e,f,g){e=e.grid.getTopToolbar();e.items.items[1].enable();g.data&&g.data.inputData&&g.data.inputData.from!=="path"&&
3464
3464
  e.items.items[2].enable()},rowdeselect:function(e){e=e.grid.getTopToolbar();e.items.items[1].disable();e.items.items[2].disable()}}}),enableDragDrop:true,ddGroup:"ElParametersGridDD",getDragDropText:function(){return this.getSelectionModel().getSelected().data.inputData.name},listeners:{render:function(e){e.dropZone=new Ext.dd.DropZone(e.getView().scroller,{ddGroup:"ElParametersGridDD",moveOnly:true,getTargetFromEvent:function(f){return f.getTarget(e.getView().rowSelector)},onNodeOver:function(f,
3465
- g,h,m){f=e.getView().findRowIndex(f);f=e.getStore().getAt(f);if(m.selections[0].id!=f.id)return Ext.dd.DropZone.prototype.dropAllowed;return Ext.dd.DropZone.prototype.dropNotAllowed},onNodeDrop:function(f,g,h,m){g=e.getView().findRowIndex(f);g=e.getStore().getAt(g);m=m.selections[0];if(m.id==g.id)return false;var k=m.data,n=g.data;if(n.parentID>=0&&k.inputData.from=="path")Ext.Msg.alert("Error","Path parameters cannot be moved into an object parameter.");else{h=m=tab.routeRecord.json;var i=g="inputs",
3466
- o;o=-1;if(k.parentID>=0){o=e.getStore().getAt(k.parentID);h=o.data.inputData;i="children"}if(n.parentID>=0){o=e.getStore().getAt(n.parentID);m=o.data.inputData;g="children"}if(n.nj!=k.nj){o=m[g].findIndex(function(q){return q.name==k.inputData.name});if(o>=0){Ext.Msg.alert("Error","A parameter with that same name already exists here.");return}}o=h[i].findIndex(function(q){return q.name==k.inputData.name});o>=0&&h[i].splice(o,1);o=m[g].findIndex(function(q){return q.name==n.inputData.name});if(o>=
3467
- 0){pd()-f.getBoundingClientRect().y>f.getBoundingClientRect().height/2&&o++;f=m[g].slice(0,o);h=m[g].slice(o);m[g].length=0;m[g]=f.concat(k.inputData).concat(h);if(n.parentID>=0)delete k.inputData.from;else if(k.parentID>=0)k.inputData.from=k.inputData.type=="object"?"body":"query"}pui.ide.fa();a.Hi()}}})},beforedestroy:function(e){e&&e.dropZone&&e.dropZone.unreg();return true},rowcontextmenu:function(e,f,g){e=a.panel.apiInputsGrid;e.getSelectionModel().selectRow(f);e.getView().ensureVisible(f);f=
3468
- e.getStore().getAt(f).data.inputData;e=e.getTopToolbar();var h=[];if(f.type=="object"&&(!f.from||f.from=="body"))h.push(new Ext.menu.Item({text:"Add Child Parameter",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}));if(!f.from||f.from!="path")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());
3465
+ g,h,m){f=e.getView().findRowIndex(f);f=e.getStore().getAt(f);if(m.selections[0].id!=f.id)return Ext.dd.DropZone.prototype.dropAllowed;return Ext.dd.DropZone.prototype.dropNotAllowed},onNodeDrop:function(f,g,h,m){g=e.getView().findRowIndex(f);g=e.getStore().getAt(g);m=m.selections[0];if(m.id==g.id)return false;var k=m.data,n=g.data;if(n.parentID>=0&&k.inputData.from=="path")Ext.Msg.alert("Error","Path parameters cannot be moved into an object parameter.");else{h=m=Ext.getCmp("centerPanel").getActiveTab().routeRecord.json;
3466
+ var i=g="inputs",o;o=-1;if(k.parentID>=0){o=e.getStore().getAt(k.parentID);h=o.data.inputData;i="children"}if(n.parentID>=0){o=e.getStore().getAt(n.parentID);m=o.data.inputData;g="children"}if(n.nj!=k.nj){o=m[g].findIndex(function(q){return q.name==k.inputData.name});if(o>=0){Ext.Msg.alert("Error","A parameter with that same name already exists here.");return}}o=h[i].findIndex(function(q){return q.name==k.inputData.name});o>=0&&h[i].splice(o,1);o=m[g].findIndex(function(q){return q.name==n.inputData.name});
3467
+ if(o>=0){pd()-f.getBoundingClientRect().y>f.getBoundingClientRect().height/2&&o++;f=m[g].slice(0,o);h=m[g].slice(o);m[g].length=0;m[g]=f.concat(k.inputData).concat(h);if(n.parentID>=0)delete k.inputData.from;else if(k.parentID>=0)k.inputData.from=k.inputData.type=="object"?"body":"query"}pui.ide.fa();a.Hi()}}})},beforedestroy:function(e){e&&e.dropZone&&e.dropZone.unreg();return true},rowcontextmenu:function(e,f,g){e=a.panel.apiInputsGrid;e.getSelectionModel().selectRow(f);e.getView().ensureVisible(f);
3468
+ f=e.getStore().getAt(f).data.inputData;e=e.getTopToolbar();var h=[];if(f.type=="object"&&(!f.from||f.from=="body"))h.push(new Ext.menu.Item({text:"Add Child Parameter",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}));if(!f.from||f.from!="path")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());
3469
3469
  g.stopEvent()},rowdblclick:function(e,f,g){e.getTopToolbar().items.items[1].handler(g)}}})],listeners:{added:function(e){e.updateFields=e.updateFields||function(){a.Hi()}}}}),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(e){pui.ide.jp(e,
3470
3470
  a.panel.apiOutputsGrid,"outputData")}}}),viewConfig:{forceFit:true,autoFill:true},columns:d,tbar:[{tooltip:"Add Parameter",icon:pui.flatlook?"/profoundui/proddata/images/FlatIcons/16x16/add.png":"/profoundui/proddata/images/dspfdesigner/icons16x16/add.png",handler:function(){var e=Ext.getCmp("centerPanel").getActiveTab();if(e&&e.routeRecord){e.routeRecord.json.outputs=e.routeRecord.json.outputs||[];var f={type:"string"},g={type:"output",level:0,peerNames:[]},h=e.routeRecord.json.outputs;if(e=a.panel.apiOutputsGrid.getSelectionModel().getSelected())if(e=
3471
3471
  e.data){var m=e.outputData;if(m){if(m.type!=="object"&&e.parentID>=0)if(e=a.panel.apiOutputsGrid.getStore().getAt(e.parentID))m=e.data.outputData;if(m.type==="object"){g.level=e.level+1;h=m.children=m.children||[]}}}a.panel.apiOutputsGrid.getSelectionModel().clearSelections();for(e=0;e<h.length;e++)h[e].name&&h[e].name.trim()&&g.peerNames.push(h[e].name.trim());pui.ide.r.sx(f,g,function(){for(prop in f){var k=f[prop];if(typeof k=="string"&&!k.trim())k=null;k===null&&delete f[prop]}h.push(f);a.panel.apiOutputsGrid.getStore().positionTo=
@@ -5410,4 +5410,4 @@ null)g=pui.cnv.themes.na("alt row height");a=pui.cnv.info.formats[b.formatName].
5410
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"]=
5411
5411
  c["css class"];b.format.items.push(d.panel);pui.cnv.info.formats[b.formatName].yg=d;return true};
5412
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.",
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"}]};
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"}]};
@@ -2500,4 +2500,4 @@ pui.runtimeMsg.nl_NL=Re("runtimeMsg");pui.runtimeText.nl_NL=Re("runtimeText");pu
2500
2500
  window.pui.Timer=function(){var b=(new Date).getTime(),a=false,c,e=this;this.timeout=600;this.showDebugInfo=false;this.action=null;this.checkFrequency=1E3;this.resetOnUserActivity=false;this.start=function(){if(!a){if(e.resetOnUserActivity)if(document.body.addEventListener){document.body.addEventListener("keydown",e.reset,false);document.body.addEventListener("mousemove",e.reset,false);document.body.addEventListener("click",e.reset,false);document.body.addEventListener("touchstart",e.reset,false);
2501
2501
  document.body.addEventListener("touchmove",e.reset,false)}else if(document.body.attachEvent){document.body.attachEvent("onkeydown",e.reset);document.body.attachEvent("onmousemove",e.reset);document.body.attachEvent("onclick",e.reset)}e.reset();c=setInterval(e.check,e.checkFrequency);a=true}};this.stop=function(){if(a){clearInterval(c);if(e.resetOnUserActivity)if(document.body.removeEventListener){document.body.removeEventListener("keydown",e.reset,false);document.body.removeEventListener("mousemove",
2502
2502
  e.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",e.reset);document.body.detachEvent("onmousemove",e.reset)}a=false}};this.reset=function(){b=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-b;if(e.showDebugInfo)document.title=parseInt(f/1E3);if(f>=e.timeout*1E3){e.action!=null&&typeof e.action=="function"&&e.action();e.reset()}}};pui.hb={};pui.hb.Jg=new pui.Timer;pui.hb.Jg.action=function(){var b=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")b=pui.onbeforetimeout();b!==false&&pui.hb.Jy();pui.hb.Jg.stop();pui.hb.xh.stop()};pui.hb.xh=new pui.Timer;pui.hb.xh.action=function(){pui.keepAlive()};pui.hb.Jy=function(){pui.doSessionTimeout()};
2503
- pui.hb.start=function(){pui.hb.Jg.stop();pui.hb.xh.stop();if(pui.timeout!=null){var b=pui.timeout-10;if(!(b<3)){pui.hb.Jg.timeout=pui.timeout;pui.hb.xh.timeout=b;pui.hb.Jg.start();pui.hb.xh.start()}}};pui.hb.end=function(){pui.hb.Jg.stop();pui.hb.xh.stop()};
2503
+ pui.hb.start=function(){pui.hb.Jg.stop();pui.hb.xh.stop();if(pui.timeout!=null){var b=pui.timeout-10;if(!(b<3)){pui.hb.Jg.timeout=pui.timeout;pui.hb.xh.timeout=b;pui.hb.Jg.start();pui.hb.xh.start()}}};pui.hb.end=function(){pui.hb.Jg.stop();pui.hb.xh.stop()};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "profoundjs",
3
- "version": "6.6.1",
3
+ "version": "6.6.3",
4
4
  "min-profoundui-version": "6.20.0",
5
5
  "description": "Profound.js Framework and Server",
6
6
  "keywords": [