ronds-metadata 1.2.77 → 1.2.79
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/es/comps/DynamicPorts/graph.js +3 -2
- package/es/comps/DynamicPorts/utils.js +5 -4
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +5 -0
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.js +10 -0
- package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -0
- package/es/comps/FormGenerator/comps/Sidebar/index.js +44 -5
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -0
- package/es/framework/libs/iconfont/iconfont.css +19 -3
- package/es/framework/libs/iconfont/iconfont.ttf +0 -0
- package/es/framework/libs/iconfont/iconfont.woff +0 -0
- package/es/framework/libs/iconfont/iconfont.woff2 +0 -0
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
13
13
|
/*
|
|
14
14
|
* @Author: wangxian
|
|
15
15
|
* @Date: 2022-05-24 14:31:01
|
|
16
|
-
* @LastEditTime: 2023-03
|
|
16
|
+
* @LastEditTime: 2023-07-03 10:35:43
|
|
17
17
|
*/
|
|
18
18
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
19
19
|
import produce from 'immer';
|
|
@@ -201,6 +201,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
|
201
201
|
_this.deleteNodes(oldGraph.nodes.map(function (it) {
|
|
202
202
|
return it.id;
|
|
203
203
|
}));
|
|
204
|
+
_this.onDeleteEdges(oldGraph.edges);
|
|
204
205
|
_formatGraphData2 = formatGraphData(graphData), nodes = _formatGraphData2.nodes, edges = _formatGraphData2.edges;
|
|
205
206
|
nodes.forEach(function (nodeMeta) {
|
|
206
207
|
return _this.renderNode(nodeMeta);
|
|
@@ -209,7 +210,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
|
209
210
|
return _this.renderEdge(edgeMeta);
|
|
210
211
|
});
|
|
211
212
|
_this.loadDPGraph(graphData);
|
|
212
|
-
case
|
|
213
|
+
case 7:
|
|
213
214
|
case "end":
|
|
214
215
|
return _context.stop();
|
|
215
216
|
}
|
|
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
/*
|
|
4
4
|
* @Author: wangxian
|
|
5
5
|
* @Date: 2022-05-24 16:40:49
|
|
6
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditTime: 2023-07-03 14:32:33
|
|
7
7
|
*/
|
|
8
8
|
import { sortBy } from 'lodash-es';
|
|
9
9
|
import { NODE_HEIGHT, NODE_WIDTH } from './constant';
|
|
@@ -42,14 +42,14 @@ export function formatNodeInfoToNodeMeta(nodeData) {
|
|
|
42
42
|
portItems.push(_objectSpread(_objectSpread({}, inPort), {}, {
|
|
43
43
|
group: 'in',
|
|
44
44
|
id: inPort.id.toString(),
|
|
45
|
-
connected: !!inputPortConnectedMap[inPort.id.toString()]
|
|
45
|
+
connected: !!inputPortConnectedMap["".concat(id.toString()).concat(inPort.id.toString())]
|
|
46
46
|
}));
|
|
47
47
|
});
|
|
48
48
|
sortBy(outPorts, 'seq').forEach(function (outPort) {
|
|
49
49
|
portItems.push(_objectSpread(_objectSpread({}, outPort), {}, {
|
|
50
50
|
group: 'out',
|
|
51
51
|
id: outPort.id.toString(),
|
|
52
|
-
connected: !!inputPortConnectedMap[outPort.id.toString()]
|
|
52
|
+
connected: !!inputPortConnectedMap["".concat(id.toString()).concat(outPort.id.toString())]
|
|
53
53
|
}));
|
|
54
54
|
});
|
|
55
55
|
return _objectSpread(_objectSpread({}, nodeData), {}, {
|
|
@@ -109,7 +109,8 @@ export function formatGraphData(graphData) {
|
|
|
109
109
|
});
|
|
110
110
|
// 记录所有已连线的输入桩
|
|
111
111
|
var inputPortConnectedMap = formattedEdges.reduce(function (acc, edge) {
|
|
112
|
-
|
|
112
|
+
var _edge$target;
|
|
113
|
+
acc["".concat((_edge$target = edge.target) === null || _edge$target === void 0 ? void 0 : _edge$target.cell).concat(edge.inPortId)] = true;
|
|
113
114
|
return acc;
|
|
114
115
|
}, {});
|
|
115
116
|
// 格式化算法组件节点
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import JsonView from '../../../../comps/JsonView';
|
|
3
|
+
var JsonSchema = function JsonSchema(props) {
|
|
4
|
+
var json = props.json;
|
|
5
|
+
var onChange = function onChange(txt) {};
|
|
6
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(JsonView, {
|
|
7
|
+
json: json
|
|
8
|
+
}));
|
|
9
|
+
};
|
|
10
|
+
export default JsonSchema;
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
+
import "antd/es/radio/style";
|
|
2
|
+
import _Radio from "antd/es/radio";
|
|
1
3
|
import "antd/es/row/style";
|
|
2
4
|
import _Row from "antd/es/row";
|
|
5
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
6
|
/*
|
|
4
7
|
* @Author: uloveits 719310130@qq.com
|
|
5
8
|
* @Date: 2023-02-04 16:35:16
|
|
6
9
|
* @LastEditors: Please set LastEditors
|
|
7
|
-
* @LastEditTime: 2023-06-
|
|
10
|
+
* @LastEditTime: 2023-06-30 10:15:25
|
|
8
11
|
*/
|
|
9
12
|
import React from 'react';
|
|
10
13
|
import { sidebarCtx } from '../../settings';
|
|
11
14
|
import Elements from './Elements';
|
|
15
|
+
import './index.less';
|
|
16
|
+
import JsonSchema from './JsonSchema';
|
|
12
17
|
var Sidebar = function Sidebar() {
|
|
18
|
+
var _React$useState = React.useState('comps'),
|
|
19
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
20
|
+
active = _React$useState2[0],
|
|
21
|
+
setActive = _React$useState2[1];
|
|
13
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: "fg-sidebar"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14
25
|
style: {
|
|
15
|
-
height: '100%',
|
|
16
|
-
width: '100%',
|
|
26
|
+
height: 'calc(100% - 40px)',
|
|
17
27
|
padding: '4px',
|
|
18
|
-
|
|
28
|
+
width: '100%',
|
|
29
|
+
overflowY: 'auto',
|
|
30
|
+
display: "".concat(active === 'comps' ? '' : 'none')
|
|
19
31
|
}
|
|
20
32
|
}, sidebarCtx.map(function (it) {
|
|
21
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -36,6 +48,33 @@ var Sidebar = function Sidebar() {
|
|
|
36
48
|
data: v
|
|
37
49
|
});
|
|
38
50
|
})));
|
|
39
|
-
}))
|
|
51
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
style: {
|
|
53
|
+
height: 'calc(100% - 40px)',
|
|
54
|
+
padding: '4px',
|
|
55
|
+
width: '100%',
|
|
56
|
+
overflowY: 'auto',
|
|
57
|
+
display: "".concat(active === 'json' ? '' : 'none')
|
|
58
|
+
}
|
|
59
|
+
}, /*#__PURE__*/React.createElement(JsonSchema, {
|
|
60
|
+
json: ""
|
|
61
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "fg-sidebar-bottom-tool"
|
|
63
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, {
|
|
64
|
+
options: [{
|
|
65
|
+
label: '组件',
|
|
66
|
+
value: 'comps'
|
|
67
|
+
}, {
|
|
68
|
+
label: 'JSON',
|
|
69
|
+
value: 'json'
|
|
70
|
+
}],
|
|
71
|
+
onChange: function onChange(_ref) {
|
|
72
|
+
var value = _ref.target.value;
|
|
73
|
+
setActive(value);
|
|
74
|
+
},
|
|
75
|
+
value: active,
|
|
76
|
+
optionType: "button",
|
|
77
|
+
buttonStyle: "solid"
|
|
78
|
+
})));
|
|
40
79
|
};
|
|
41
80
|
export default Sidebar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.fg-sidebar {
|
|
2
|
+
height: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
&-bottom-tool {
|
|
6
|
+
position: absolute;
|
|
7
|
+
display: flex;
|
|
8
|
+
left: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
align-items: center;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
.ant-radio-group {
|
|
14
|
+
width: 100%;
|
|
15
|
+
.ant-radio-button-wrapper {
|
|
16
|
+
width: 50%;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "mt"; /* Project id 2247093 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1688024145476') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1688024145476') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1688024145476') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.mt {
|
|
@@ -13,6 +13,22 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.mt-index:before {
|
|
17
|
+
content: "\e63a";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mt-wave:before {
|
|
21
|
+
content: "\e647";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mt-event_result:before {
|
|
25
|
+
content: "\e6b1";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mt-craft:before {
|
|
29
|
+
content: "\e644";
|
|
30
|
+
}
|
|
31
|
+
|
|
16
32
|
.mt-expand-right:before {
|
|
17
33
|
content: "\e7bc";
|
|
18
34
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|