profoundjs 6.6.2 → 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=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "profoundjs",
3
- "version": "6.6.2",
3
+ "version": "6.6.3",
4
4
  "min-profoundui-version": "6.20.0",
5
5
  "description": "Profound.js Framework and Server",
6
6
  "keywords": [