ronds-metadata 1.3.85 → 1.3.86
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 +5 -7
- package/es/comps/CodeEdit/index.d.ts +1 -2
- package/es/comps/CodeEdit/index.less +6 -6
- package/es/comps/DataMine/Line.d.ts +1 -2
- package/es/comps/DataMine/Line.js +1 -0
- package/es/comps/DataMine/index.d.ts +1 -2
- 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 +1 -2
- package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +1 -2
- 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 +1 -2
- 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 +9 -8
- package/es/comps/DynamicPorts/graph.js +4 -5
- package/es/comps/DynamicPorts/index.d.ts +1 -2
- 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 +1 -2
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/comps/Texty.js +4 -5
- 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 +1 -2
- package/es/comps/Editable/index.less +97 -97
- package/es/comps/Editable/utils.d.ts +1 -2
- package/es/comps/FileView/index.d.ts +1 -2
- package/es/comps/FileView/index.js +3 -2
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
- 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 +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
- 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 +1 -2
- 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 +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
- 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 +1 -2
- 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 +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
- 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 +1 -2
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Settings/index.js +2 -1
- 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 +1 -2
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
- package/es/comps/FormGenerator/index.d.ts +1 -2
- package/es/comps/FormGenerator/index.less +20 -20
- package/es/comps/JsonEdit/index.d.ts +1 -2
- package/es/comps/JsonEdit/index.js +1 -0
- package/es/comps/JsonEdit/index.less +64 -64
- package/es/comps/JsonView/index.d.ts +1 -2
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdEdit/index.d.ts +1 -2
- package/es/comps/MdEdit/index.less +6 -6
- package/es/comps/MdEditPro/index.d.ts +1 -2
- package/es/comps/MdEditPro/index.less +166 -166
- package/es/comps/MdEditPro/index2.d.ts +1 -1
- package/es/comps/MdNavbar/index.d.ts +1 -2
- 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 +1 -2
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
- package/es/comps/MetadataEdit/constant/index.js +2 -0
- package/es/comps/MetadataEdit/index.d.ts +1 -2
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- 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/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/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/business/index.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +1 -2
- package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
- package/es/comps/MetadataForm/HOC/index.less +41 -41
- package/es/comps/MetadataForm/index.d.ts +1 -2
- package/es/comps/MetadataForm/utils.d.ts +2 -3
- package/es/comps/Split/index.d.ts +1 -1
- package/es/comps/Split/index.less +29 -29
- package/es/config.js +0 -1
- package/es/framework/RxStore/demo/index.d.ts +1 -2
- package/es/framework/graph/index.less +15 -15
- package/es/framework/http/msgpack5/lib/helpers.js +1 -0
- package/es/framework/libs/jquery.min.js +4 -4
- package/es/framework/locale/dil8/di18n.js +3 -5
- package/es/framework/metadata/MetadataService.js +14 -14
- package/es/framework/metadata/index.js +15 -14
- package/es/framework/metadata/types.d.ts +103 -103
- package/es/theme.less +81 -81
- package/package.json +116 -116
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
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import { guid, md5 } from '../utils';
|
11
11
|
import { addInterceptor, HttpHelper } from '../framework/http';
|
12
12
|
var http = new HttpHelper();
|
13
|
-
var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.
|
13
|
+
var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MjQyMDkyNzMsImV4cCI6MTcyNDQ2ODQ3MywiaXNzIjoiaHR0cDovL2ZhYmlvOjk5OTkvc3VwZXJjYXJlY29yZSIsImF1ZCI6ImVwbSIsImNsaWVudF9pZCI6ImVwbSIsInN1YiI6IjNhMTIxZDJiLWYwZDUtZDQ3OC0xN2Q3LWQwODEwZDgzZDViMSIsImF1dGhfdGltZSI6MTcyNDIwOTI3MiwiaWRwIjoibG9jYWwiLCJuYW1lIjoicGhtIiwiZW1haWwiOiJwaG1AYWJwLmlvIiwicm9sZSI6WyJhZG1pbiIsInBobV9hZG1pbiJdLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiJwaG3ov5Dnu7TotKblj7ciLCJwaG9uZV9udW1iZXIiOiIxMzYwMDAwMDAwMCIsInBob25lX251bWJlcl92ZXJpZmllZCI6IlRydWUiLCJlbWFpbF92ZXJpZmllZCI6IlRydWUiLCJpYXQiOjE3MjQyMDkyNzMsInNjb3BlIjpbImFkZHJlc3MiLCJlbWFpbCIsImVwbSIsIm9wZW5pZCIsInBob25lIiwicHJvZmlsZSIsInJvbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.t-AeiGQDr2N4PgLGHI6HRjwhTlSAt7TjtDVQgMBCVJgf31L9lKzuiakfXukTNzeXz0qHTeJOBmJL8Q-Lhlz_Khd-pr4fsaBP6qI8NWcLan1hZPWgms5mbsJukLOIvUVWxZGxJ501yxdQLJIZPwX6CfvXzCWfIeF8SQJ8c4d_zXWrpdJBHfmX8vl4Ut7hOX5IC9Sn79uoe-0-96aI8Ltv07iHdTAJSH3Y4svh_jwEt34-oBmT3daZ0iWvfuNx0QFYGiW6lN-kALIbnEOpphA3mHtwtUpB2RtG6BGCTJZGraT-7Fmboks34y6C1ApJzO221x4-_VZGa5hwwvZttkxzlw';
|
14
14
|
addInterceptor(function (httpClient) {
|
15
15
|
httpClient.interceptors.request.use(function (_config) {
|
16
16
|
if (!_config.headers) {
|
@@ -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,10 +81,9 @@ var Api = /*#__PURE__*/function () {
|
|
81
81
|
* @param metadataId
|
82
82
|
* @returns
|
83
83
|
*/
|
84
|
-
)
|
85
84
|
}, {
|
86
85
|
key: "GetMetadataDetailById",
|
87
|
-
value:
|
86
|
+
value: function () {
|
88
87
|
var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
|
89
88
|
var url, res;
|
90
89
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
@@ -106,10 +105,10 @@ var Api = /*#__PURE__*/function () {
|
|
106
105
|
return _GetMetadataDetailById.apply(this, arguments);
|
107
106
|
}
|
108
107
|
return GetMetadataDetailById;
|
109
|
-
}() /** 添加元数据 */
|
108
|
+
}() /** 添加元数据 */
|
110
109
|
}, {
|
111
110
|
key: "SaveMetadata",
|
112
|
-
value:
|
111
|
+
value: function () {
|
113
112
|
var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
|
114
113
|
var param, url, res;
|
115
114
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
@@ -138,7 +137,6 @@ var Api = /*#__PURE__*/function () {
|
|
138
137
|
}
|
139
138
|
return SaveMetadata;
|
140
139
|
}() // 获取元数据的值
|
141
|
-
)
|
142
140
|
}, {
|
143
141
|
key: "GetMetadataObjList",
|
144
142
|
value: function () {
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js';
|
3
2
|
import './index.less';
|
4
3
|
interface ICodeEditProps {
|
@@ -17,5 +16,5 @@ interface ICodeEditProps {
|
|
17
16
|
onChange?: (txt: string) => void;
|
18
17
|
readOnly?: boolean;
|
19
18
|
}
|
20
|
-
declare const CodeEdit: (props: ICodeEditProps) =>
|
19
|
+
declare const CodeEdit: (props: ICodeEditProps) => JSX.Element;
|
21
20
|
export default CodeEdit;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.my-code-editor {
|
2
|
-
.suggest-widget {
|
3
|
-
position: absolute !important;
|
4
|
-
z-index: 1000 !important; /* 确保它在最顶层 */
|
5
|
-
}
|
6
|
-
}
|
1
|
+
.my-code-editor {
|
2
|
+
.suggest-widget {
|
3
|
+
position: absolute !important;
|
4
|
+
z-index: 1000 !important; /* 确保它在最顶层 */
|
5
|
+
}
|
6
|
+
}
|
@@ -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,7 +1,6 @@
|
|
1
1
|
import '../index.less';
|
2
|
-
import React from 'react';
|
3
2
|
interface NodeElementProps {
|
4
3
|
node?: Node;
|
5
4
|
}
|
6
|
-
declare const NodeElementForm: (props: NodeElementProps) =>
|
5
|
+
declare const NodeElementForm: (props: NodeElementProps) => JSX.Element;
|
7
6
|
export default NodeElementForm;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import '../index.less';
|
2
|
-
import React from 'react';
|
3
2
|
interface NodeElementProps {
|
4
3
|
node?: Node;
|
5
4
|
}
|
6
|
-
declare const NodeElementNormal: (props: NodeElementProps) =>
|
5
|
+
declare const NodeElementNormal: (props: NodeElementProps) => JSX.Element;
|
7
6
|
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,8 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import './index.less';
|
3
2
|
interface INodeContextMenuProps {
|
4
3
|
graph: any;
|
5
4
|
data: any;
|
6
5
|
}
|
7
|
-
declare const NodeContextMenu: (props: INodeContextMenuProps) =>
|
6
|
+
declare const NodeContextMenu: (props: INodeContextMenuProps) => JSX.Element;
|
8
7
|
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,10 +1,7 @@
|
|
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";
|
6
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
7
|
-
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
8
5
|
/*
|
9
6
|
* @Author: wangxian
|
10
7
|
* @Date: 2022-05-24 09:18:34
|
@@ -14,9 +11,10 @@ import { Shape, Edge } from '@antv/x6';
|
|
14
11
|
import './edge.less';
|
15
12
|
export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
|
16
13
|
_inherits(BaseEdge, _Shape$Edge);
|
14
|
+
var _super = _createSuper(BaseEdge);
|
17
15
|
function BaseEdge() {
|
18
16
|
_classCallCheck(this, BaseEdge);
|
19
|
-
return
|
17
|
+
return _super.apply(this, arguments);
|
20
18
|
}
|
21
19
|
_createClass(BaseEdge, [{
|
22
20
|
key: "isGroupEdge",
|
@@ -30,9 +28,10 @@ export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
|
|
30
28
|
}(Shape.Edge);
|
31
29
|
export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
|
32
30
|
_inherits(DPEdge, _BaseEdge);
|
31
|
+
var _super2 = _createSuper(DPEdge);
|
33
32
|
function DPEdge() {
|
34
33
|
_classCallCheck(this, DPEdge);
|
35
|
-
return
|
34
|
+
return _super2.apply(this, arguments);
|
36
35
|
}
|
37
36
|
return _createClass(DPEdge);
|
38
37
|
}(BaseEdge);
|
@@ -55,9 +54,10 @@ DPEdge.config({
|
|
55
54
|
});
|
56
55
|
export var DPGroupEdge = /*#__PURE__*/function (_DPEdge) {
|
57
56
|
_inherits(DPGroupEdge, _DPEdge);
|
57
|
+
var _super3 = _createSuper(DPGroupEdge);
|
58
58
|
function DPGroupEdge() {
|
59
59
|
_classCallCheck(this, DPGroupEdge);
|
60
|
-
return
|
60
|
+
return _super3.apply(this, 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,18 +1,16 @@
|
|
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";
|
6
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
7
|
-
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
8
5
|
import { Dom, Node } from '@antv/x6';
|
9
6
|
import { ReactShape } from '@antv/x6-react-shape';
|
10
7
|
import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
|
11
8
|
export var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
12
9
|
_inherits(BaseNode, _ReactShape);
|
10
|
+
var _super = _createSuper(BaseNode);
|
13
11
|
function BaseNode() {
|
14
12
|
_classCallCheck(this, BaseNode);
|
15
|
-
return
|
13
|
+
return _super.apply(this, arguments);
|
16
14
|
}
|
17
15
|
_createClass(BaseNode, [{
|
18
16
|
key: "isGroup",
|
@@ -26,9 +24,10 @@ export var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
|
26
24
|
}(ReactShape);
|
27
25
|
export var DPNode = /*#__PURE__*/function (_BaseNode) {
|
28
26
|
_inherits(DPNode, _BaseNode);
|
27
|
+
var _super2 = _createSuper(DPNode);
|
29
28
|
function DPNode() {
|
30
29
|
_classCallCheck(this, DPNode);
|
31
|
-
return
|
30
|
+
return _super2.apply(this, arguments);
|
32
31
|
}
|
33
32
|
_createClass(DPNode, [{
|
34
33
|
key: "getInPorts",
|
@@ -110,9 +109,10 @@ DPNode.config({
|
|
110
109
|
});
|
111
110
|
export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
|
112
111
|
_inherits(DPGroupNode, _BaseNode2);
|
112
|
+
var _super3 = _createSuper(DPGroupNode);
|
113
113
|
function DPGroupNode() {
|
114
114
|
_classCallCheck(this, DPGroupNode);
|
115
|
-
return
|
115
|
+
return _super3.apply(this, arguments);
|
116
116
|
}
|
117
117
|
_createClass(DPGroupNode, [{
|
118
118
|
key: "isGroup",
|
@@ -177,9 +177,10 @@ DPGroupNode.config({
|
|
177
177
|
});
|
178
178
|
export var DPNodeForm = /*#__PURE__*/function (_BaseNode3) {
|
179
179
|
_inherits(DPNodeForm, _BaseNode3);
|
180
|
+
var _super4 = _createSuper(DPNodeForm);
|
180
181
|
function DPNodeForm() {
|
181
182
|
_classCallCheck(this, DPNodeForm);
|
182
|
-
return
|
183
|
+
return _super4.apply(this, arguments);
|
183
184
|
}
|
184
185
|
_createClass(DPNodeForm, [{
|
185
186
|
key: "getInPorts",
|
@@ -8,10 +8,9 @@ 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";
|
13
11
|
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
14
12
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
13
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
15
14
|
import _get from "@babel/runtime/helpers/esm/get";
|
16
15
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
17
16
|
/*
|
@@ -20,7 +19,6 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
20
19
|
* @LastEditTime: 2024-02-29 13:40:06
|
21
20
|
*/
|
22
21
|
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)); }
|
24
22
|
import produce from 'immer';
|
25
23
|
import React from 'react';
|
26
24
|
import ReactDOM from 'react-dom';
|
@@ -39,10 +37,11 @@ import { tr } from '../../framework/locale';
|
|
39
37
|
import NodeElementForm from './comps/NodeElementForm';
|
40
38
|
var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
41
39
|
_inherits(DPGraph, _GraphCore);
|
40
|
+
var _super = _createSuper(DPGraph);
|
42
41
|
function DPGraph(_graphData, mode) {
|
43
42
|
var _thisSuper, _this;
|
44
43
|
_classCallCheck(this, DPGraph);
|
45
|
-
_this =
|
44
|
+
_this = _super.call(this, {
|
46
45
|
history: true,
|
47
46
|
frozen: true,
|
48
47
|
grid: true,
|
@@ -184,7 +183,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
|
|
184
183
|
})), container);
|
185
184
|
}
|
186
185
|
}
|
187
|
-
}
|
186
|
+
});
|
188
187
|
_this.factory$ = {
|
189
188
|
loading: new BehaviorSubject(false),
|
190
189
|
running: new BehaviorSubject(false),
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import './index.less';
|
3
2
|
import './comps/shape/connector';
|
4
3
|
import DPGraph from './graph';
|
@@ -45,5 +44,5 @@ interface IDynamicPortsProps {
|
|
45
44
|
*/
|
46
45
|
getDPGraphInstance?: (data: DPGraph) => void;
|
47
46
|
}
|
48
|
-
declare const DynamicPorts: (props: IDynamicPortsProps) =>
|
47
|
+
declare const DynamicPorts: (props: IDynamicPortsProps) => JSX.Element;
|
49
48
|
export default DynamicPorts;
|