ronds-metadata 1.3.55 → 1.3.56
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/README.md +25 -25
- package/es/api/index.js +6 -4
- package/es/comps/CodeEdit/index.d.ts +2 -1
- package/es/comps/DataMine/Line.d.ts +2 -1
- package/es/comps/DataMine/Line.js +0 -1
- package/es/comps/DataMine/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
- package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
- package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
- package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
- package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
- package/es/comps/DynamicPorts/comps/shape/node.js +8 -9
- package/es/comps/DynamicPorts/graph.js +5 -4
- package/es/comps/DynamicPorts/index.d.ts +2 -1
- package/es/comps/DynamicPorts/index.less +307 -307
- package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
- package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
- package/es/comps/Editable/DataCell/Input.d.ts +1 -1
- package/es/comps/Editable/DataCell/Number.d.ts +1 -1
- package/es/comps/Editable/DataCell/Select.d.ts +1 -1
- package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
- package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
- package/es/comps/Editable/comps/EditableAction.d.ts +2 -1
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/comps/Texty.js +5 -4
- package/es/comps/Editable/comps/Texty.less +43 -43
- package/es/comps/Editable/comps/index.less +38 -38
- package/es/comps/Editable/index.d.ts +2 -1
- package/es/comps/Editable/index.less +97 -97
- package/es/comps/Editable/utils.d.ts +2 -1
- package/es/comps/FileView/index.d.ts +2 -1
- package/es/comps/FileView/index.js +2 -3
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/comps/Canvas/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.js +1 -2
- package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
- package/es/comps/FormGenerator/index.d.ts +2 -1
- package/es/comps/FormGenerator/index.less +20 -20
- package/es/comps/JsonEdit/index.d.ts +2 -1
- package/es/comps/JsonEdit/index.js +0 -1
- package/es/comps/JsonEdit/index.less +64 -64
- package/es/comps/JsonView/index.d.ts +2 -1
- package/es/comps/MdEdit/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.less +166 -166
- package/es/comps/MdEditPro/index2.d.ts +1 -1
- package/es/comps/MdNavbar/index.d.ts +2 -1
- package/es/comps/MdNavbar/index.less +77 -77
- package/es/comps/MdView/index.d.ts +1 -1
- package/es/comps/MdView/index.less +376 -376
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/constant/index.js +0 -2
- package/es/comps/MetadataEdit/index.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.js +15 -4
- package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.js +6 -4
- package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.d.ts +8 -0
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.js +16 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +12 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +116 -0
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.js +3 -2
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +11 -0
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +249 -0
- package/es/comps/MetadataForm/HOC/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.less +26 -26
- package/es/comps/MetadataForm/utils.d.ts +3 -2
- package/es/comps/Split/index.d.ts +1 -1
- package/es/comps/Split/index.less +29 -29
- package/es/framework/RxStore/demo/index.d.ts +2 -1
- package/es/framework/graph/index.less +15 -15
- package/es/framework/http/msgpack5/lib/helpers.js +0 -1
- package/es/framework/libs/iconfont/iconfont.css +323 -323
- package/es/framework/libs/iconfont/iconfont.json +548 -548
- package/es/framework/libs/jquery.min.js +4 -4
- package/es/framework/locale/dil8/di18n.js +5 -3
- package/es/framework/metadata/MetadataService.js +14 -14
- package/es/framework/metadata/index.js +14 -15
- package/es/framework/metadata/types.d.ts +103 -103
- package/es/theme.less +81 -81
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# ronds-metadata
|
|
2
|
-
|
|
3
|
-
# 使用前准备
|
|
4
|
-
|
|
5
|
-
在使用之前,推荐学习[容知的元数据规则](http://172.16.0.8:5000/oo/r/634418027609242111)
|
|
6
|
-
|
|
7
|
-
# 安装及使用
|
|
8
|
-
|
|
9
|
-
## 安装
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
yarn add ronds-metadata
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## 使用
|
|
16
|
-
|
|
17
|
-
### 引入所需组件
|
|
18
|
-
|
|
19
|
-
在代码中 import 需要的组件并按照文档说明使用
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
import { MetadataFrom, MetadataEdit, JsonView, JsonEdit } from 'ronds-metadata';
|
|
23
|
-
|
|
24
|
-
import { JsonMetadataProvider } from 'ronds-metadata/es/framework/metadata/index';
|
|
25
|
-
```
|
|
1
|
+
# ronds-metadata
|
|
2
|
+
|
|
3
|
+
# 使用前准备
|
|
4
|
+
|
|
5
|
+
在使用之前,推荐学习[容知的元数据规则](http://172.16.0.8:5000/oo/r/634418027609242111)
|
|
6
|
+
|
|
7
|
+
# 安装及使用
|
|
8
|
+
|
|
9
|
+
## 安装
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
yarn add ronds-metadata
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 使用
|
|
16
|
+
|
|
17
|
+
### 引入所需组件
|
|
18
|
+
|
|
19
|
+
在代码中 import 需要的组件并按照文档说明使用
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
import { MetadataFrom, MetadataEdit, JsonView, JsonEdit } from 'ronds-metadata';
|
|
23
|
+
|
|
24
|
+
import { JsonMetadataProvider } from 'ronds-metadata/es/framework/metadata/index';
|
|
25
|
+
```
|
package/es/api/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var Api = /*#__PURE__*/function () {
|
|
|
35
35
|
}
|
|
36
36
|
_createClass(Api, [{
|
|
37
37
|
key: "GetMetadataList",
|
|
38
|
-
value:
|
|
38
|
+
value: (
|
|
39
39
|
/**
|
|
40
40
|
* 获取元数据列表
|
|
41
41
|
* @param keyWords
|
|
@@ -81,9 +81,10 @@ var Api = /*#__PURE__*/function () {
|
|
|
81
81
|
* @param metadataId
|
|
82
82
|
* @returns
|
|
83
83
|
*/
|
|
84
|
+
)
|
|
84
85
|
}, {
|
|
85
86
|
key: "GetMetadataDetailById",
|
|
86
|
-
value: function () {
|
|
87
|
+
value: (function () {
|
|
87
88
|
var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
|
|
88
89
|
var url, res;
|
|
89
90
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -105,10 +106,10 @@ var Api = /*#__PURE__*/function () {
|
|
|
105
106
|
return _GetMetadataDetailById.apply(this, arguments);
|
|
106
107
|
}
|
|
107
108
|
return GetMetadataDetailById;
|
|
108
|
-
}() /** 添加元数据 */
|
|
109
|
+
}() /** 添加元数据 */)
|
|
109
110
|
}, {
|
|
110
111
|
key: "SaveMetadata",
|
|
111
|
-
value: function () {
|
|
112
|
+
value: (function () {
|
|
112
113
|
var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
|
|
113
114
|
var param, url, res;
|
|
114
115
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -137,6 +138,7 @@ var Api = /*#__PURE__*/function () {
|
|
|
137
138
|
}
|
|
138
139
|
return SaveMetadata;
|
|
139
140
|
}() // 获取元数据的值
|
|
141
|
+
)
|
|
140
142
|
}, {
|
|
141
143
|
key: "GetMetadataObjList",
|
|
142
144
|
value: function () {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js';
|
|
2
3
|
interface ICodeEditProps {
|
|
3
4
|
value?: string;
|
|
@@ -14,5 +15,5 @@ interface ICodeEditProps {
|
|
|
14
15
|
*/
|
|
15
16
|
onChange?: (txt: string) => void;
|
|
16
17
|
}
|
|
17
|
-
declare const CodeEdit: (props: ICodeEditProps) => JSX.Element;
|
|
18
|
+
declare const CodeEdit: (props: ICodeEditProps) => React.JSX.Element;
|
|
18
19
|
export default CodeEdit;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.mask {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
bottom: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
z-index: 99999;
|
|
8
|
-
}
|
|
1
|
+
.mask {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
z-index: 99999;
|
|
8
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.handler {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 61px;
|
|
4
|
-
right: 14px;
|
|
5
|
-
z-index: 99;
|
|
6
|
-
width: 32px;
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 3px 0;
|
|
9
|
-
color: rgba(0, 0, 0, 0.45);
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
list-style-type: none;
|
|
12
|
-
background-color: #fff;
|
|
13
|
-
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
14
|
-
border-radius: 3px;
|
|
15
|
-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.01);
|
|
16
|
-
|
|
17
|
-
.item {
|
|
18
|
-
text-align: center;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
color: #000;
|
|
23
|
-
background-color: #e0e0e0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.tools-selected {
|
|
28
|
-
color: #000;
|
|
29
|
-
background-color: #e0e0e0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.popover {
|
|
34
|
-
:global {
|
|
35
|
-
.ant-popover-inner-content {
|
|
36
|
-
padding: 3px 8px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
.handler {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 61px;
|
|
4
|
+
right: 14px;
|
|
5
|
+
z-index: 99;
|
|
6
|
+
width: 32px;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 3px 0;
|
|
9
|
+
color: rgba(0, 0, 0, 0.45);
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
list-style-type: none;
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
14
|
+
border-radius: 3px;
|
|
15
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.01);
|
|
16
|
+
|
|
17
|
+
.item {
|
|
18
|
+
text-align: center;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
color: #000;
|
|
23
|
+
background-color: #e0e0e0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tools-selected {
|
|
28
|
+
color: #000;
|
|
29
|
+
background-color: #e0e0e0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.popover {
|
|
34
|
+
:global {
|
|
35
|
+
.ant-popover-inner-content {
|
|
36
|
+
padding: 3px 8px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '../index.less';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
interface NodeElementProps {
|
|
3
4
|
node?: Node;
|
|
4
5
|
}
|
|
5
|
-
declare const NodeElementForm: (props: NodeElementProps) => JSX.Element;
|
|
6
|
+
declare const NodeElementForm: (props: NodeElementProps) => React.JSX.Element;
|
|
6
7
|
export default NodeElementForm;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '../index.less';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
interface NodeElementProps {
|
|
3
4
|
node?: Node;
|
|
4
5
|
}
|
|
5
|
-
declare const NodeElementNormal: (props: NodeElementProps) => JSX.Element;
|
|
6
|
+
declare const NodeElementNormal: (props: NodeElementProps) => React.JSX.Element;
|
|
6
7
|
export default NodeElementNormal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.edgeContextMenu {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 1;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
}
|
|
1
|
+
.edgeContextMenu {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
.graphContextMenu {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 1;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.loadExperimentModal {
|
|
8
|
-
:global {
|
|
9
|
-
.ant-modal-title {
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ant-btn {
|
|
14
|
-
font-size: 12px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.versionTable {
|
|
19
|
-
:global {
|
|
20
|
-
.ant-table.ant-table-small {
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.operations {
|
|
26
|
-
:global {
|
|
27
|
-
.ant-btn {
|
|
28
|
-
&:first-of-type {
|
|
29
|
-
padding-left: 0;
|
|
30
|
-
border-left: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.ant-btn-sm {
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
.graphContextMenu {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.loadExperimentModal {
|
|
8
|
+
:global {
|
|
9
|
+
.ant-modal-title {
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ant-btn {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.versionTable {
|
|
19
|
+
:global {
|
|
20
|
+
.ant-table.ant-table-small {
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.operations {
|
|
26
|
+
:global {
|
|
27
|
+
.ant-btn {
|
|
28
|
+
&:first-of-type {
|
|
29
|
+
padding-left: 0;
|
|
30
|
+
border-left: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.ant-btn-sm {
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface INodeContextMenuProps {
|
|
3
4
|
graph: any;
|
|
4
5
|
data: any;
|
|
5
6
|
}
|
|
6
|
-
declare const NodeContextMenu: (props: INodeContextMenuProps) => JSX.Element;
|
|
7
|
+
declare const NodeContextMenu: (props: INodeContextMenuProps) => React.JSX.Element;
|
|
7
8
|
export default NodeContextMenu;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.graphContextMenu {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 1;
|
|
4
|
-
width: 100px;
|
|
5
|
-
background-color: #fff;
|
|
6
|
-
box-shadow: 0 2px 10px rgb(0 0 0 1);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.loadExperimentModal {
|
|
10
|
-
:global {
|
|
11
|
-
.ant-modal-title {
|
|
12
|
-
font-size: 14px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ant-btn {
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.versionTable {
|
|
21
|
-
:global {
|
|
22
|
-
.ant-table.ant-table-small {
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.operations {
|
|
28
|
-
:global {
|
|
29
|
-
.ant-btn {
|
|
30
|
-
&:first-of-type {
|
|
31
|
-
padding-left: 0;
|
|
32
|
-
border-left: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.ant-btn-sm {
|
|
36
|
-
font-size: 12px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
.graphContextMenu {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 1;
|
|
4
|
+
width: 100px;
|
|
5
|
+
background-color: #fff;
|
|
6
|
+
box-shadow: 0 2px 10px rgb(0 0 0 1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.loadExperimentModal {
|
|
10
|
+
:global {
|
|
11
|
+
.ant-modal-title {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-btn {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.versionTable {
|
|
21
|
+
:global {
|
|
22
|
+
.ant-table.ant-table-small {
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.operations {
|
|
28
|
+
:global {
|
|
29
|
+
.ant-btn {
|
|
30
|
+
&:first-of-type {
|
|
31
|
+
padding-left: 0;
|
|
32
|
+
border-left: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.ant-btn-sm {
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
5
8
|
/*
|
|
6
9
|
* @Author: wangxian
|
|
7
10
|
* @Date: 2022-05-24 09:18:34
|
|
@@ -11,10 +14,9 @@ import { Shape, Edge } from '@antv/x6';
|
|
|
11
14
|
import './edge.less';
|
|
12
15
|
export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
|
|
13
16
|
_inherits(BaseEdge, _Shape$Edge);
|
|
14
|
-
var _super = _createSuper(BaseEdge);
|
|
15
17
|
function BaseEdge() {
|
|
16
18
|
_classCallCheck(this, BaseEdge);
|
|
17
|
-
return
|
|
19
|
+
return _callSuper(this, BaseEdge, arguments);
|
|
18
20
|
}
|
|
19
21
|
_createClass(BaseEdge, [{
|
|
20
22
|
key: "isGroupEdge",
|
|
@@ -28,10 +30,9 @@ export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
|
|
|
28
30
|
}(Shape.Edge);
|
|
29
31
|
export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
|
|
30
32
|
_inherits(DPEdge, _BaseEdge);
|
|
31
|
-
var _super2 = _createSuper(DPEdge);
|
|
32
33
|
function DPEdge() {
|
|
33
34
|
_classCallCheck(this, DPEdge);
|
|
34
|
-
return
|
|
35
|
+
return _callSuper(this, DPEdge, arguments);
|
|
35
36
|
}
|
|
36
37
|
return _createClass(DPEdge);
|
|
37
38
|
}(BaseEdge);
|
|
@@ -54,10 +55,9 @@ DPEdge.config({
|
|
|
54
55
|
});
|
|
55
56
|
export var DPGroupEdge = /*#__PURE__*/function (_DPEdge) {
|
|
56
57
|
_inherits(DPGroupEdge, _DPEdge);
|
|
57
|
-
var _super3 = _createSuper(DPGroupEdge);
|
|
58
58
|
function DPGroupEdge() {
|
|
59
59
|
_classCallCheck(this, DPGroupEdge);
|
|
60
|
-
return
|
|
60
|
+
return _callSuper(this, DPGroupEdge, arguments);
|
|
61
61
|
}
|
|
62
62
|
_createClass(DPGroupEdge, [{
|
|
63
63
|
key: "isGroupEdge",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.x6-edge {
|
|
2
|
-
&-selected,
|
|
3
|
-
&:hover {
|
|
4
|
-
path[stroke-width='1'] {
|
|
5
|
-
stroke-width: 3px;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
.x6-edge {
|
|
2
|
+
&-selected,
|
|
3
|
+
&:hover {
|
|
4
|
+
path[stroke-width='1'] {
|
|
5
|
+
stroke-width: 3px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
3
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
5
8
|
import { Dom, Node } from '@antv/x6';
|
|
6
9
|
import { ReactShape } from '@antv/x6-react-shape';
|
|
7
10
|
import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
|
|
8
11
|
export var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
|
9
12
|
_inherits(BaseNode, _ReactShape);
|
|
10
|
-
var _super = _createSuper(BaseNode);
|
|
11
13
|
function BaseNode() {
|
|
12
14
|
_classCallCheck(this, BaseNode);
|
|
13
|
-
return
|
|
15
|
+
return _callSuper(this, BaseNode, arguments);
|
|
14
16
|
}
|
|
15
17
|
_createClass(BaseNode, [{
|
|
16
18
|
key: "isGroup",
|
|
@@ -24,10 +26,9 @@ export var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
|
|
24
26
|
}(ReactShape);
|
|
25
27
|
export var DPNode = /*#__PURE__*/function (_BaseNode) {
|
|
26
28
|
_inherits(DPNode, _BaseNode);
|
|
27
|
-
var _super2 = _createSuper(DPNode);
|
|
28
29
|
function DPNode() {
|
|
29
30
|
_classCallCheck(this, DPNode);
|
|
30
|
-
return
|
|
31
|
+
return _callSuper(this, DPNode, arguments);
|
|
31
32
|
}
|
|
32
33
|
_createClass(DPNode, [{
|
|
33
34
|
key: "getInPorts",
|
|
@@ -109,10 +110,9 @@ DPNode.config({
|
|
|
109
110
|
});
|
|
110
111
|
export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
|
|
111
112
|
_inherits(DPGroupNode, _BaseNode2);
|
|
112
|
-
var _super3 = _createSuper(DPGroupNode);
|
|
113
113
|
function DPGroupNode() {
|
|
114
114
|
_classCallCheck(this, DPGroupNode);
|
|
115
|
-
return
|
|
115
|
+
return _callSuper(this, DPGroupNode, arguments);
|
|
116
116
|
}
|
|
117
117
|
_createClass(DPGroupNode, [{
|
|
118
118
|
key: "isGroup",
|
|
@@ -177,10 +177,9 @@ DPGroupNode.config({
|
|
|
177
177
|
});
|
|
178
178
|
export var DPNodeForm = /*#__PURE__*/function (_BaseNode3) {
|
|
179
179
|
_inherits(DPNodeForm, _BaseNode3);
|
|
180
|
-
var _super4 = _createSuper(DPNodeForm);
|
|
181
180
|
function DPNodeForm() {
|
|
182
181
|
_classCallCheck(this, DPNodeForm);
|
|
183
|
-
return
|
|
182
|
+
return _callSuper(this, DPNodeForm, arguments);
|
|
184
183
|
}
|
|
185
184
|
_createClass(DPNodeForm, [{
|
|
186
185
|
key: "getInPorts",
|
|
@@ -8,9 +8,10 @@ import "antd/es/tooltip/style";
|
|
|
8
8
|
import _Tooltip from "antd/es/tooltip";
|
|
9
9
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
10
10
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
11
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
12
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
11
13
|
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
12
14
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
13
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
14
15
|
import _get from "@babel/runtime/helpers/esm/get";
|
|
15
16
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
16
17
|
/*
|
|
@@ -19,6 +20,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
19
20
|
* @LastEditTime: 2024-02-29 13:40:06
|
|
20
21
|
*/
|
|
21
22
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
24
|
import produce from 'immer';
|
|
23
25
|
import React from 'react';
|
|
24
26
|
import ReactDOM from 'react-dom';
|
|
@@ -37,11 +39,10 @@ import { tr } from '../../framework/locale';
|
|
|
37
39
|
import NodeElementForm from './comps/NodeElementForm';
|
|
38
40
|
var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
39
41
|
_inherits(DPGraph, _GraphCore);
|
|
40
|
-
var _super = _createSuper(DPGraph);
|
|
41
42
|
function DPGraph(_graphData, mode) {
|
|
42
43
|
var _thisSuper, _this;
|
|
43
44
|
_classCallCheck(this, DPGraph);
|
|
44
|
-
_this =
|
|
45
|
+
_this = _callSuper(this, DPGraph, [{
|
|
45
46
|
history: true,
|
|
46
47
|
frozen: true,
|
|
47
48
|
grid: true,
|
|
@@ -183,7 +184,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
|
183
184
|
})), container);
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
});
|
|
187
|
+
}]);
|
|
187
188
|
_this.factory$ = {
|
|
188
189
|
loading: new BehaviorSubject(false),
|
|
189
190
|
running: new BehaviorSubject(false),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
import './comps/shape/connector';
|
|
3
4
|
import DPGraph from './graph';
|
|
@@ -44,5 +45,5 @@ interface IDynamicPortsProps {
|
|
|
44
45
|
*/
|
|
45
46
|
getDPGraphInstance?: (data: DPGraph) => void;
|
|
46
47
|
}
|
|
47
|
-
declare const DynamicPorts: (props: IDynamicPortsProps) => JSX.Element;
|
|
48
|
+
declare const DynamicPorts: (props: IDynamicPortsProps) => React.JSX.Element;
|
|
48
49
|
export default DynamicPorts;
|