diff --git a/Build/Sources/App.js b/Build/Sources/App.js index f86784e9..a0dd2fc5 100644 --- a/Build/Sources/App.js +++ b/Build/Sources/App.js @@ -259,6 +259,9 @@ function App() { // let modules = convertModuleToNode(working.modules); let modules = convertModulesToNodes(working.modules); // Check if nodes or edges are available, and update them. + console.log("modules"); + console.log(modules); + console.log(working.nodes); setNodes(modules ? modules: []); setEdges(working.edges ? working.edges : []); diff --git a/Build/Sources/components/ActionButtonsComponent.jsx b/Build/Sources/components/ActionButtonsComponent.jsx index 084b87fa..54e82d89 100644 --- a/Build/Sources/components/ActionButtonsComponent.jsx +++ b/Build/Sources/components/ActionButtonsComponent.jsx @@ -55,8 +55,8 @@ export const ActionButtonsComponent = (props) => { "propertyIsL10nModeExclude": property.isl10nModeExlude, "propertyIsNullable": property.isNullable, "propertyIsRequired": property.isRequired, - "propertyName": property.name, "propertyType": property.type, + "propertyName": property.propertyName, "typeSelect": { "selectboxValues": property.typeSelect?.selectboxValues || "", "renderType": property.typeSelect?.renderType || "selectSingle", diff --git a/Build/Sources/components/ReactFlow/CustomModelNode.jsx b/Build/Sources/components/ReactFlow/CustomModelNode.jsx index f3223f70..3abfa52e 100644 --- a/Build/Sources/components/ReactFlow/CustomModelNode.jsx +++ b/Build/Sources/components/ReactFlow/CustomModelNode.jsx @@ -27,8 +27,8 @@ export const CustomModelNode = (props) => { // TODO: create a default property inside an empty js file and set it her. const addEmptyProperty = () => { setProperties([...properties, { - name: '', type: '', + propertyName: '', description: '', isRequired: false, isNullable: false, @@ -73,8 +73,8 @@ export const CustomModelNode = (props) => { }]); props.data.properties.push( { - name: '', type: '', + propertyName: '', description: '', isRequired: false, isNullable: false, @@ -460,7 +460,7 @@ export const CustomModelNode = (props) => { props.data.properties.map((property, index) => { return ( @@ -469,9 +469,9 @@ export const CustomModelNode = (props) => { label="Property name" placeholder="Property name" identifier="propertyName" - initialValue={property.name} + initialValue={property.propertyName} onChange={(value) => { - updateProperty(index, "name", value.toLowerCase()); + updateProperty(index, "propertyName", value.toLowerCase()); }} /> (()=>{var c={659:(c,e,n)=>{"use strict";var a=n(601),t=n.n(a),i=n(314),o=n.n(i)()(t());o.push([c.id,"// extracted by mini-css-extract-plugin\nexport {};",""])},410:(c,e,n)=>{"use strict";var a=n(601),t=n.n(a),i=n(314),o=n.n(i)()(t());o.push([c.id,"// extracted by mini-css-extract-plugin\nexport {};",""])},314:c=>{"use strict";c.exports=function(c){var e=[];return e.toString=function(){return this.map((function(e){var n="",a=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),a&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=c(e),a&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(c,n,a,t,i){"string"==typeof c&&(c=[[null,c,void 0]]);var o={};if(a)for(var r=0;r0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),n&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=n):f[2]=n),t&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=t):f[4]="".concat(t)),e.push(f))}},e}},601:c=>{"use strict";c.exports=function(c){return c[1]}},694:(c,e,n)=>{"use strict";var a=n(925);function t(){}function i(){}i.resetWarningCache=t,c.exports=function(){function c(c,e,n,t,i,o){if(o!==a){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function e(){return c}c.isRequired=c;var n={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:e,element:c,elementType:c,instanceOf:e,node:c,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:t};return n.PropTypes=n,n}},556:(c,e,n)=>{c.exports=n(694)()},925:c=>{"use strict";c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(c,e,n)=>{"use strict";var a=n(540),t=n(982);function i(c){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+c,n=1;n