ronds-metadata 1.1.9 → 1.1.12
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/comps/ContextMenu.js +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.js +2 -2
- package/es/comps/DynamicPorts/index.css +7 -5
- package/es/comps/DynamicPorts/interface.d.ts +18 -0
- package/es/comps/DynamicPorts/interface.js +1 -1
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/config.js +1 -1
- 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/es/theme.css +6 -0
- package/package.json +86 -86
@@ -5,11 +5,11 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
* @Date: 2022-05-27 09:56:39
|
6
6
|
* @LastEditTime: 2022-05-27 16:16:25
|
7
7
|
*/
|
8
|
-
import useObservable from '@/framework/rxjs-hooks/useObservable';
|
9
8
|
import React from 'react';
|
10
9
|
import NodeContextMenu from './contextMenu/NodeContextMenu';
|
11
10
|
import "./ContextMenu.css";
|
12
11
|
import { EdgeContextMenu } from './contextMenu/EdgeContextMenu';
|
12
|
+
import useObservable from '../../../framework/rxjs-hooks/useObservable';
|
13
13
|
|
14
14
|
var ContextMenu = function ContextMenu(props) {
|
15
15
|
var _graph$factory$;
|
@@ -4,13 +4,13 @@ import _Popover from "antd/es/popover";
|
|
4
4
|
/*
|
5
5
|
* @Author: wangxian
|
6
6
|
* @Date: 2022-05-27 14:21:23
|
7
|
-
* @LastEditTime: 2022-05-
|
7
|
+
* @LastEditTime: 2022-05-30 09:45:54
|
8
8
|
*/
|
9
9
|
import React from 'react';
|
10
10
|
import { CompressOutlined, OneToOneOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';
|
11
11
|
import classNames from 'classnames';
|
12
12
|
import "./index.css";
|
13
|
-
import { tr } from '
|
13
|
+
import { tr } from '../../../../framework/locale';
|
14
14
|
export var GraphHandler = function GraphHandler(props) {
|
15
15
|
var className = props.className,
|
16
16
|
onZoomIn = props.onZoomIn,
|
@@ -5,13 +5,15 @@
|
|
5
5
|
width: 180px;
|
6
6
|
height: 32px;
|
7
7
|
overflow: hidden;
|
8
|
-
background-color:
|
8
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
9
|
+
color: var(--ronds-metadata-color-text-1);
|
9
10
|
border-radius: 4px;
|
10
11
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
|
11
12
|
}
|
12
13
|
.node-element.selected,
|
13
14
|
.node-element:hover {
|
14
|
-
background-color:
|
15
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
16
|
+
color: var(--ronds-metadata-color-text-1);
|
15
17
|
border: 1px solid #1890ff;
|
16
18
|
box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
|
17
19
|
}
|
@@ -31,7 +33,7 @@
|
|
31
33
|
justify-content: center;
|
32
34
|
width: 32px;
|
33
35
|
height: 32px;
|
34
|
-
background-color:
|
36
|
+
background-color: var(--ronds-metadata-color-bg-2);
|
35
37
|
border-radius: 4px 0 0 4px;
|
36
38
|
}
|
37
39
|
.node-element .notation {
|
@@ -46,7 +48,7 @@
|
|
46
48
|
}
|
47
49
|
.node-element .notation .name {
|
48
50
|
overflow-x: hidden;
|
49
|
-
color:
|
51
|
+
color: var(--ronds-metadata-color-text-1);
|
50
52
|
font-size: 12px;
|
51
53
|
white-space: nowrap;
|
52
54
|
text-overflow: ellipsis;
|
@@ -77,7 +79,7 @@
|
|
77
79
|
display: block;
|
78
80
|
}
|
79
81
|
.dynamic-ports .x6-node-selected .node-element {
|
80
|
-
background-color:
|
82
|
+
background-color: var(--ronds-metadata-color-bg-4);
|
81
83
|
border: 1px solid #1890ff;
|
82
84
|
box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
|
83
85
|
}
|
@@ -16,11 +16,29 @@ export declare namespace NDPGraph {
|
|
16
16
|
* 图标
|
17
17
|
*/
|
18
18
|
icon?: string;
|
19
|
+
/**
|
20
|
+
* 名称
|
21
|
+
*/
|
19
22
|
name: string;
|
23
|
+
/**
|
24
|
+
* 输入引脚
|
25
|
+
*/
|
20
26
|
inPorts: InPort[];
|
27
|
+
/**
|
28
|
+
* 输出引脚
|
29
|
+
*/
|
21
30
|
outPorts: OutPort[];
|
31
|
+
/**
|
32
|
+
* position x
|
33
|
+
*/
|
22
34
|
x: number;
|
35
|
+
/**
|
36
|
+
* position y
|
37
|
+
*/
|
23
38
|
y: number;
|
39
|
+
/**
|
40
|
+
* 附带参数信息
|
41
|
+
*/
|
24
42
|
param?: Param;
|
25
43
|
}
|
26
44
|
interface Edge {
|
@@ -1,20 +1,20 @@
|
|
1
|
-
export interface IMetaFileds {
|
2
|
-
id: string;
|
3
|
-
type: 'object';
|
4
|
-
properties: any[];
|
5
|
-
value: any;
|
6
|
-
}
|
7
|
-
|
8
|
-
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
-
|
10
|
-
export type IMetaProperty = {
|
11
|
-
/**
|
12
|
-
* 属性的名称
|
13
|
-
*/
|
14
|
-
id: string;
|
15
|
-
/**
|
16
|
-
* 类型
|
17
|
-
*/
|
18
|
-
type: string;
|
19
|
-
enum?: any[];
|
20
|
-
};
|
1
|
+
export interface IMetaFileds {
|
2
|
+
id: string;
|
3
|
+
type: 'object';
|
4
|
+
properties: any[];
|
5
|
+
value: any;
|
6
|
+
}
|
7
|
+
|
8
|
+
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
+
|
10
|
+
export type IMetaProperty = {
|
11
|
+
/**
|
12
|
+
* 属性的名称
|
13
|
+
*/
|
14
|
+
id: string;
|
15
|
+
/**
|
16
|
+
* 类型
|
17
|
+
*/
|
18
|
+
type: string;
|
19
|
+
enum?: any[];
|
20
|
+
};
|
package/es/config.js
CHANGED
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
/*
|
4
4
|
* @Author: wangxian
|
5
5
|
* @Date: 2021-09-18 14:15:04
|
6
|
-
* @LastEditTime: 2022-05-
|
6
|
+
* @LastEditTime: 2022-05-30 08:43:00
|
7
7
|
*/
|
8
8
|
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
|
9
9
|
import { distinctUntilChanged } from 'rxjs/internal/operators/distinctUntilChanged';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
@font-face {
|
2
2
|
font-family: "fa"; /* 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=1653875373166') format('woff2'),
|
4
|
+
url('iconfont.woff?t=1653875373166') format('woff'),
|
5
|
+
url('iconfont.ttf?t=1653875373166') format('truetype');
|
6
6
|
}
|
7
7
|
|
8
8
|
.fa {
|
@@ -13,6 +13,22 @@
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
14
14
|
}
|
15
15
|
|
16
|
+
.fa-ai:before {
|
17
|
+
content: "\e887";
|
18
|
+
}
|
19
|
+
|
20
|
+
.fa-signal:before {
|
21
|
+
content: "\ec4a";
|
22
|
+
}
|
23
|
+
|
24
|
+
.fa-circle:before {
|
25
|
+
content: "\e660";
|
26
|
+
}
|
27
|
+
|
28
|
+
.fa-scan:before {
|
29
|
+
content: "\e6df";
|
30
|
+
}
|
31
|
+
|
16
32
|
.fa-py:before {
|
17
33
|
content: "\e916";
|
18
34
|
}
|
Binary file
|
Binary file
|
Binary file
|
package/es/theme.css
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
.ronds-metadata-dark {
|
2
2
|
--ronds-metadata-color-border-1: #314162;
|
3
|
+
--ronds-metadata-color-bg-2: #0d1f40;
|
4
|
+
--ronds-metadata-color-bg-4: #1c3771;
|
5
|
+
--ronds-metadata-color-text-1: #ffffff;
|
3
6
|
}
|
4
7
|
.ronds-metadata-dark ::-webkit-scrollbar {
|
5
8
|
width: 6px;
|
@@ -26,6 +29,9 @@
|
|
26
29
|
}
|
27
30
|
.ronds-metadata-normal {
|
28
31
|
--ronds-metadata-color-border-1: #d9d9d9;
|
32
|
+
--ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
|
33
|
+
--ronds-metadata-color-bg-4: #ffffff;
|
34
|
+
--ronds-metadata-color-text-1: #1d2129;
|
29
35
|
}
|
30
36
|
.ronds-metadata-normal ::-webkit-scrollbar {
|
31
37
|
width: 6px;
|
package/package.json
CHANGED
@@ -1,86 +1,86 @@
|
|
1
|
-
{
|
2
|
-
"public": true,
|
3
|
-
"name": "ronds-metadata",
|
4
|
-
"version": "1.1.
|
5
|
-
"scripts": {
|
6
|
-
"start": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage"
|
15
|
-
},
|
16
|
-
"main": "es",
|
17
|
-
"module": "es",
|
18
|
-
"types": "es/index.d.ts",
|
19
|
-
"gitHooks": {
|
20
|
-
"pre-commit": "lint-staged"
|
21
|
-
},
|
22
|
-
"lint-staged": {
|
23
|
-
"*.{js,jsx,less,md,json}": [
|
24
|
-
"prettier --write"
|
25
|
-
],
|
26
|
-
"*.ts?(x)": [
|
27
|
-
"prettier --parser=typescript --write"
|
28
|
-
]
|
29
|
-
},
|
30
|
-
"files": [
|
31
|
-
"/es"
|
32
|
-
],
|
33
|
-
"dependencies": {
|
34
|
-
"@antv/x6": "^1.32.2",
|
35
|
-
"@antv/x6-react-shape": "^1.6.0",
|
36
|
-
"@babel/helper-create-regexp-features-plugin": "^7.12.13",
|
37
|
-
"@babel/runtime": "^7.11.2",
|
38
|
-
"@popperjs/core": "^2.4.4",
|
39
|
-
"ahooks": "^3.4.0",
|
40
|
-
"axios": "^0.21.4",
|
41
|
-
"babel-plugin-import": "^1.13.3",
|
42
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
43
|
-
"bl": "^5.0.0",
|
44
|
-
"codemirror": "^5.63.0",
|
45
|
-
"highlight.js": "11.3.1",
|
46
|
-
"immer": "^9.0.14",
|
47
|
-
"lodash": "^4.17.21",
|
48
|
-
"markdown-it": "^12.3.2",
|
49
|
-
"markdown-it-emoji": "^2.0.0",
|
50
|
-
"qs": "^6.10.1",
|
51
|
-
"react": "^17.0.2",
|
52
|
-
"react-dnd": "^11.1.3",
|
53
|
-
"react-dnd-html5-backend": "^11.1.3",
|
54
|
-
"react-markdown-editor-lite": "^1.3.2",
|
55
|
-
"react-popper": "^2.2.3",
|
56
|
-
"rxjs": "^7.5.4"
|
57
|
-
},
|
58
|
-
"peerDependencies": {
|
59
|
-
"antd": ">=4.1.5",
|
60
|
-
"react": ">=16.14.0",
|
61
|
-
"react-dom": ">=16.14.0",
|
62
|
-
"react-router": ">=5.0.0",
|
63
|
-
"styled-components": ">=4.1.1"
|
64
|
-
},
|
65
|
-
"devDependencies": {
|
66
|
-
"@types/react": "^17.0.2",
|
67
|
-
"@types/react-dom": "^17.0.2",
|
68
|
-
"@types/react-router": "^5.1.8",
|
69
|
-
"@types/react-window": "^1.8.2",
|
70
|
-
"@types/styled-components": "^5.1.2",
|
71
|
-
"@umijs/test": "^3.0.5",
|
72
|
-
"antd": "^4.18.1",
|
73
|
-
"babel-loader": "^8.1.0",
|
74
|
-
"css-loader": "^4.2.2",
|
75
|
-
"dumi": "^1.0.16",
|
76
|
-
"father-build": "^1.17.2",
|
77
|
-
"gh-pages": "^3.0.0",
|
78
|
-
"less-loader": "^7.0.0",
|
79
|
-
"lint-staged": "^10.0.7",
|
80
|
-
"prettier": "^2.2.1",
|
81
|
-
"style-loader": "^1.2.1",
|
82
|
-
"webpack-cli": "^3.3.12",
|
83
|
-
"copy-to-clipboard": "^3.3.1",
|
84
|
-
"yorkie": "^2.0.0"
|
85
|
-
}
|
86
|
-
}
|
1
|
+
{
|
2
|
+
"public": true,
|
3
|
+
"name": "ronds-metadata",
|
4
|
+
"version": "1.1.12",
|
5
|
+
"scripts": {
|
6
|
+
"start": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage"
|
15
|
+
},
|
16
|
+
"main": "es",
|
17
|
+
"module": "es",
|
18
|
+
"types": "es/index.d.ts",
|
19
|
+
"gitHooks": {
|
20
|
+
"pre-commit": "lint-staged"
|
21
|
+
},
|
22
|
+
"lint-staged": {
|
23
|
+
"*.{js,jsx,less,md,json}": [
|
24
|
+
"prettier --write"
|
25
|
+
],
|
26
|
+
"*.ts?(x)": [
|
27
|
+
"prettier --parser=typescript --write"
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"files": [
|
31
|
+
"/es"
|
32
|
+
],
|
33
|
+
"dependencies": {
|
34
|
+
"@antv/x6": "^1.32.2",
|
35
|
+
"@antv/x6-react-shape": "^1.6.0",
|
36
|
+
"@babel/helper-create-regexp-features-plugin": "^7.12.13",
|
37
|
+
"@babel/runtime": "^7.11.2",
|
38
|
+
"@popperjs/core": "^2.4.4",
|
39
|
+
"ahooks": "^3.4.0",
|
40
|
+
"axios": "^0.21.4",
|
41
|
+
"babel-plugin-import": "^1.13.3",
|
42
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
43
|
+
"bl": "^5.0.0",
|
44
|
+
"codemirror": "^5.63.0",
|
45
|
+
"highlight.js": "11.3.1",
|
46
|
+
"immer": "^9.0.14",
|
47
|
+
"lodash": "^4.17.21",
|
48
|
+
"markdown-it": "^12.3.2",
|
49
|
+
"markdown-it-emoji": "^2.0.0",
|
50
|
+
"qs": "^6.10.1",
|
51
|
+
"react": "^17.0.2",
|
52
|
+
"react-dnd": "^11.1.3",
|
53
|
+
"react-dnd-html5-backend": "^11.1.3",
|
54
|
+
"react-markdown-editor-lite": "^1.3.2",
|
55
|
+
"react-popper": "^2.2.3",
|
56
|
+
"rxjs": "^7.5.4"
|
57
|
+
},
|
58
|
+
"peerDependencies": {
|
59
|
+
"antd": ">=4.1.5",
|
60
|
+
"react": ">=16.14.0",
|
61
|
+
"react-dom": ">=16.14.0",
|
62
|
+
"react-router": ">=5.0.0",
|
63
|
+
"styled-components": ">=4.1.1"
|
64
|
+
},
|
65
|
+
"devDependencies": {
|
66
|
+
"@types/react": "^17.0.2",
|
67
|
+
"@types/react-dom": "^17.0.2",
|
68
|
+
"@types/react-router": "^5.1.8",
|
69
|
+
"@types/react-window": "^1.8.2",
|
70
|
+
"@types/styled-components": "^5.1.2",
|
71
|
+
"@umijs/test": "^3.0.5",
|
72
|
+
"antd": "^4.18.1",
|
73
|
+
"babel-loader": "^8.1.0",
|
74
|
+
"css-loader": "^4.2.2",
|
75
|
+
"dumi": "^1.0.16",
|
76
|
+
"father-build": "^1.17.2",
|
77
|
+
"gh-pages": "^3.0.0",
|
78
|
+
"less-loader": "^7.0.0",
|
79
|
+
"lint-staged": "^10.0.7",
|
80
|
+
"prettier": "^2.2.1",
|
81
|
+
"style-loader": "^1.2.1",
|
82
|
+
"webpack-cli": "^3.3.12",
|
83
|
+
"copy-to-clipboard": "^3.3.1",
|
84
|
+
"yorkie": "^2.0.0"
|
85
|
+
}
|
86
|
+
}
|