beta-glozic-workflow 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67,14 +67,19 @@ class Designer extends _react.Component {
|
|
|
67
67
|
_defineProperty(this, "componentWillReceiveProps", props => {
|
|
68
68
|
this.onUpdateNodes(props);
|
|
69
69
|
});
|
|
70
|
-
|
|
71
70
|
_defineProperty(this, "onUpdateNodes", props => {
|
|
72
71
|
if (props.Nodes && props.Nodes.length != 0) {
|
|
73
|
-
const oldNodes = this.flowchartToJson()
|
|
74
|
-
if (JSON.stringify(oldNodes.definition.actions) != JSON.stringify(props.Nodes) &&
|
|
72
|
+
const oldNodes = this.flowchartToJson();
|
|
73
|
+
if (JSON.stringify(oldNodes.definition.actions) != JSON.stringify(props.Nodes) && oldNodes.definition.actions.length == 0 && props.Nodes.length != 0) {
|
|
75
74
|
let data = JSON.parse(JSON.stringify(layout));
|
|
76
75
|
data.definition.actions = props.Nodes;
|
|
77
76
|
this.importedJsonFile(data);
|
|
77
|
+
} else if (props.options.updatedNodeId && props.options.actionConfig) {
|
|
78
|
+
console.log('on update action config');
|
|
79
|
+
console.log(props.options);
|
|
80
|
+
if (this.nodes[props.options.updatedNodeId]) {
|
|
81
|
+
this.nodes[props.options.updatedNodeId].configuration["actionConfig"] = props.options.actionConfig;
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
});
|
|
@@ -148,7 +153,6 @@ class Designer extends _react.Component {
|
|
|
148
153
|
self.draged = null;
|
|
149
154
|
}
|
|
150
155
|
window.setTimeout(() => {
|
|
151
|
-
console.log("====================151=======================");
|
|
152
156
|
self.props.onChange(self.flowchartToJson());
|
|
153
157
|
}, 400);
|
|
154
158
|
}, false);
|
|
@@ -211,7 +215,9 @@ class Designer extends _react.Component {
|
|
|
211
215
|
// }
|
|
212
216
|
//comment by anup Stop
|
|
213
217
|
this.props.onNodeClick(actionObj);
|
|
214
|
-
self.setState({
|
|
218
|
+
self.setState({
|
|
219
|
+
currentNodeFocused: actionObj
|
|
220
|
+
});
|
|
215
221
|
return;
|
|
216
222
|
}
|
|
217
223
|
// not focusing on Node
|
|
@@ -380,12 +386,10 @@ class Designer extends _react.Component {
|
|
|
380
386
|
y: e.pageY
|
|
381
387
|
}
|
|
382
388
|
}).then(ele => {
|
|
383
|
-
console.log("====================385=======================");
|
|
384
389
|
this.props.onChange(this.flowchartToJson());
|
|
385
390
|
});
|
|
386
391
|
} else {
|
|
387
392
|
window.setTimeout(() => {
|
|
388
|
-
console.log("====================390=======================");
|
|
389
393
|
this.props.onChange(this.flowchartToJson());
|
|
390
394
|
}, 300);
|
|
391
395
|
}
|
|
@@ -1395,11 +1399,6 @@ class Designer extends _react.Component {
|
|
|
1395
1399
|
propertiesClone = item.defaultFormData;
|
|
1396
1400
|
}
|
|
1397
1401
|
}
|
|
1398
|
-
|
|
1399
|
-
console.log("==================item====================");
|
|
1400
|
-
console.log(item);
|
|
1401
|
-
console.log(copyTask);
|
|
1402
|
-
console.log("==================item====================");
|
|
1403
1402
|
this.nodes["node-".concat(_count)] = {
|
|
1404
1403
|
number: _count,
|
|
1405
1404
|
next: '',
|