ronds-metadata 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/Icons/index.js +2 -2
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdView/index.less +354 -354
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataForm/HOC/index.less +35 -35
- package/es/comps/MetadataForm/index.less +1 -0
- package/es/framework/libs/iconfont/iconfont.css +59 -59
- 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/framework/metadata/types.d.ts +98 -98
- package/es/theme.less +77 -77
- package/package.json +93 -93
- package/es/framework/libs/iconfont/iconfont.json +0 -380
@@ -1,10 +1,10 @@
|
|
1
|
-
.metadata-edit {
|
2
|
-
height: 100%;
|
3
|
-
width: 100%;
|
4
|
-
.ant-row {
|
5
|
-
display: block;
|
6
|
-
}
|
7
|
-
.pr-10 {
|
8
|
-
padding-right: 10px;
|
9
|
-
}
|
10
|
-
}
|
1
|
+
.metadata-edit {
|
2
|
+
height: 100%;
|
3
|
+
width: 100%;
|
4
|
+
.ant-row {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
.pr-10 {
|
8
|
+
padding-right: 10px;
|
9
|
+
}
|
10
|
+
}
|
@@ -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
|
+
};
|
@@ -1,35 +1,35 @@
|
|
1
|
-
.with-add-on-after {
|
2
|
-
--card-bg: #ffffff;
|
3
|
-
position: relative;
|
4
|
-
width: 100%;
|
5
|
-
|
6
|
-
.ant-form-item-label {
|
7
|
-
padding: 0 !important;
|
8
|
-
}
|
9
|
-
|
10
|
-
& > .ant-form-item {
|
11
|
-
padding: 0 0 8px !important;
|
12
|
-
flex: 1;
|
13
|
-
}
|
14
|
-
&-extra {
|
15
|
-
position: absolute;
|
16
|
-
right: 20px;
|
17
|
-
top: 18px;
|
18
|
-
padding: 0 6px;
|
19
|
-
background-color: var(--card-bg);
|
20
|
-
z-index: 1000;
|
21
|
-
}
|
22
|
-
&-ref {
|
23
|
-
position: absolute;
|
24
|
-
right: 20px;
|
25
|
-
top: -10px;
|
26
|
-
padding: 0 6px;
|
27
|
-
background-color: var(--card-bg);
|
28
|
-
z-index: 1000;
|
29
|
-
}
|
30
|
-
/* .ant-col-2.7 {
|
31
|
-
display: block;
|
32
|
-
flex: 0 0 75%;
|
33
|
-
max-width: 75%;
|
34
|
-
} */
|
35
|
-
}
|
1
|
+
.with-add-on-after {
|
2
|
+
--card-bg: #ffffff;
|
3
|
+
position: relative;
|
4
|
+
width: 100%;
|
5
|
+
|
6
|
+
.ant-form-item-label {
|
7
|
+
padding: 0 !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
& > .ant-form-item {
|
11
|
+
padding: 0 0 8px !important;
|
12
|
+
flex: 1;
|
13
|
+
}
|
14
|
+
&-extra {
|
15
|
+
position: absolute;
|
16
|
+
right: 20px;
|
17
|
+
top: 18px;
|
18
|
+
padding: 0 6px;
|
19
|
+
background-color: var(--card-bg);
|
20
|
+
z-index: 1000;
|
21
|
+
}
|
22
|
+
&-ref {
|
23
|
+
position: absolute;
|
24
|
+
right: 20px;
|
25
|
+
top: -10px;
|
26
|
+
padding: 0 6px;
|
27
|
+
background-color: var(--card-bg);
|
28
|
+
z-index: 1000;
|
29
|
+
}
|
30
|
+
/* .ant-col-2.7 {
|
31
|
+
display: block;
|
32
|
+
flex: 0 0 75%;
|
33
|
+
max-width: 75%;
|
34
|
+
} */
|
35
|
+
}
|
@@ -1,227 +1,227 @@
|
|
1
1
|
@font-face {
|
2
|
-
font-family: "
|
3
|
-
src: url('iconfont.woff2?t=
|
4
|
-
url('iconfont.woff?t=
|
5
|
-
url('iconfont.ttf?t=
|
2
|
+
font-family: "mt"; /* Project id 2247093 */
|
3
|
+
src: url('iconfont.woff2?t=1677200873461') format('woff2'),
|
4
|
+
url('iconfont.woff?t=1677200873461') format('woff'),
|
5
|
+
url('iconfont.ttf?t=1677200873461') format('truetype');
|
6
6
|
}
|
7
7
|
|
8
|
-
.
|
9
|
-
font-family: "
|
8
|
+
.mt {
|
9
|
+
font-family: "mt" !important;
|
10
10
|
font-size: 16px;
|
11
11
|
font-style: normal;
|
12
12
|
-webkit-font-smoothing: antialiased;
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
14
14
|
}
|
15
15
|
|
16
|
-
.
|
16
|
+
.mt-elasticsearch:before {
|
17
17
|
content: "\e6a1";
|
18
18
|
}
|
19
19
|
|
20
|
-
.
|
20
|
+
.mt-transform:before {
|
21
21
|
content: "\ed70";
|
22
22
|
}
|
23
23
|
|
24
|
-
.
|
24
|
+
.mt-info:before {
|
25
25
|
content: "\e7dc";
|
26
26
|
}
|
27
27
|
|
28
|
-
.
|
28
|
+
.mt-expert:before {
|
29
29
|
content: "\e60c";
|
30
30
|
}
|
31
31
|
|
32
|
-
.
|
32
|
+
.mt-ai1:before {
|
33
33
|
content: "\e60d";
|
34
34
|
}
|
35
35
|
|
36
|
-
.
|
36
|
+
.mt-ai2:before {
|
37
37
|
content: "\e893";
|
38
38
|
}
|
39
39
|
|
40
|
-
.
|
40
|
+
.mt-ai:before {
|
41
41
|
content: "\e887";
|
42
42
|
}
|
43
43
|
|
44
|
-
.
|
44
|
+
.mt-signal:before {
|
45
45
|
content: "\ec4a";
|
46
46
|
}
|
47
47
|
|
48
|
-
.
|
48
|
+
.mt-circle:before {
|
49
49
|
content: "\e660";
|
50
50
|
}
|
51
51
|
|
52
|
-
.
|
52
|
+
.mt-scan:before {
|
53
53
|
content: "\e6df";
|
54
54
|
}
|
55
55
|
|
56
|
-
.
|
56
|
+
.mt-py:before {
|
57
57
|
content: "\e916";
|
58
58
|
}
|
59
59
|
|
60
|
-
.
|
60
|
+
.mt-Redis:before {
|
61
61
|
content: "\e669";
|
62
62
|
}
|
63
63
|
|
64
|
-
.
|
64
|
+
.mt-hezi:before {
|
65
65
|
content: "\e60b";
|
66
66
|
}
|
67
67
|
|
68
|
-
.
|
68
|
+
.mt-message:before {
|
69
69
|
content: "\e637";
|
70
70
|
}
|
71
71
|
|
72
|
-
.
|
72
|
+
.mt-shujuku:before {
|
73
73
|
content: "\e645";
|
74
74
|
}
|
75
75
|
|
76
|
-
.
|
76
|
+
.mt-hourglass:before {
|
77
77
|
content: "\e66b";
|
78
78
|
}
|
79
79
|
|
80
|
-
.
|
80
|
+
.mt-Bucket:before {
|
81
81
|
content: "\e8ce";
|
82
82
|
}
|
83
83
|
|
84
|
-
.
|
84
|
+
.mt-RondsLake:before {
|
85
85
|
content: "\e8a2";
|
86
86
|
}
|
87
87
|
|
88
|
-
.
|
88
|
+
.mt-Schema:before {
|
89
89
|
content: "\e62a";
|
90
90
|
}
|
91
91
|
|
92
|
-
.
|
92
|
+
.mt-Minio:before {
|
93
93
|
content: "\e64e";
|
94
94
|
}
|
95
95
|
|
96
|
-
.
|
96
|
+
.mt-color:before {
|
97
97
|
content: "\e678";
|
98
98
|
}
|
99
99
|
|
100
|
-
.
|
100
|
+
.mt-Neo4j:before {
|
101
101
|
content: "\e612";
|
102
102
|
}
|
103
103
|
|
104
|
-
.
|
104
|
+
.mt-knowledge:before {
|
105
105
|
content: "\e621";
|
106
106
|
}
|
107
107
|
|
108
|
-
.
|
108
|
+
.mt-evaluate:before {
|
109
109
|
content: "\e608";
|
110
110
|
}
|
111
111
|
|
112
|
-
.
|
112
|
+
.mt-json1:before {
|
113
113
|
content: "\e7bd";
|
114
114
|
}
|
115
115
|
|
116
|
-
.
|
116
|
+
.mt-result:before {
|
117
117
|
content: "\e64c";
|
118
118
|
}
|
119
119
|
|
120
|
-
.
|
120
|
+
.mt-analysis:before {
|
121
121
|
content: "\e72e";
|
122
122
|
}
|
123
123
|
|
124
|
-
.
|
124
|
+
.mt-select:before {
|
125
125
|
content: "\e701";
|
126
126
|
}
|
127
127
|
|
128
|
-
.
|
128
|
+
.mt-Http:before {
|
129
129
|
content: "\e668";
|
130
130
|
}
|
131
131
|
|
132
|
-
.
|
132
|
+
.mt-question:before {
|
133
133
|
content: "\e60e";
|
134
134
|
}
|
135
135
|
|
136
|
-
.
|
136
|
+
.mt-monitor:before {
|
137
137
|
content: "\e61f";
|
138
138
|
}
|
139
139
|
|
140
|
-
.
|
140
|
+
.mt-algorithm_lab:before {
|
141
141
|
content: "\e607";
|
142
142
|
}
|
143
143
|
|
144
|
-
.
|
144
|
+
.mt-engine:before {
|
145
145
|
content: "\e610";
|
146
146
|
}
|
147
147
|
|
148
|
-
.
|
148
|
+
.mt-user:before {
|
149
149
|
content: "\e713";
|
150
150
|
}
|
151
151
|
|
152
|
-
.
|
152
|
+
.mt-logout:before {
|
153
153
|
content: "\e611";
|
154
154
|
}
|
155
155
|
|
156
|
-
.
|
156
|
+
.mt-screen:before {
|
157
157
|
content: "\e606";
|
158
158
|
}
|
159
159
|
|
160
|
-
.
|
160
|
+
.mt-password:before {
|
161
161
|
content: "\e605";
|
162
162
|
}
|
163
163
|
|
164
|
-
.
|
164
|
+
.mt-news:before {
|
165
165
|
content: "\e638";
|
166
166
|
}
|
167
167
|
|
168
|
-
.
|
168
|
+
.mt-record:before {
|
169
169
|
content: "\e648";
|
170
170
|
}
|
171
171
|
|
172
|
-
.
|
172
|
+
.mt-home:before {
|
173
173
|
content: "\e609";
|
174
174
|
}
|
175
175
|
|
176
|
-
.
|
176
|
+
.mt-json:before {
|
177
177
|
content: "\e61a";
|
178
178
|
}
|
179
179
|
|
180
|
-
.
|
180
|
+
.mt-code:before {
|
181
181
|
content: "\e654";
|
182
182
|
}
|
183
183
|
|
184
|
-
.
|
184
|
+
.mt-diagram:before {
|
185
185
|
content: "\e60a";
|
186
186
|
}
|
187
187
|
|
188
|
-
.
|
188
|
+
.mt-setting:before {
|
189
189
|
content: "\e84b";
|
190
190
|
}
|
191
191
|
|
192
|
-
.
|
192
|
+
.mt-datasource:before {
|
193
193
|
content: "\e62e";
|
194
194
|
}
|
195
195
|
|
196
|
-
.
|
196
|
+
.mt-stream:before {
|
197
197
|
content: "\ec56";
|
198
198
|
}
|
199
199
|
|
200
|
-
.
|
200
|
+
.mt-Kafka:before {
|
201
201
|
content: "\e64f";
|
202
202
|
}
|
203
203
|
|
204
|
-
.
|
204
|
+
.mt-Table:before {
|
205
205
|
content: "\e72d";
|
206
206
|
}
|
207
207
|
|
208
|
-
.
|
208
|
+
.mt-PostgreSql:before {
|
209
209
|
content: "\e63b";
|
210
210
|
}
|
211
211
|
|
212
|
-
.
|
212
|
+
.mt-link:before {
|
213
213
|
content: "\e636";
|
214
214
|
}
|
215
215
|
|
216
|
-
.
|
216
|
+
.mt-LocalFileSystem:before {
|
217
217
|
content: "\e600";
|
218
218
|
}
|
219
219
|
|
220
|
-
.
|
220
|
+
.mt-Cassandra:before {
|
221
221
|
content: "\e74f";
|
222
222
|
}
|
223
223
|
|
224
|
-
.
|
224
|
+
.mt-DataBase:before {
|
225
225
|
content: "\e797";
|
226
226
|
}
|
227
227
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,98 +1,98 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: wangxian
|
3
|
-
* @Date: 2021-09-18 14:15:04
|
4
|
-
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
-
*/
|
6
|
-
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
-
|
8
|
-
export type IMetaData = {
|
9
|
-
/**
|
10
|
-
* 类名称/属性名称
|
11
|
-
*/
|
12
|
-
id: string;
|
13
|
-
/**
|
14
|
-
* 类型
|
15
|
-
*/
|
16
|
-
type: IMetaType;
|
17
|
-
/**
|
18
|
-
* 属性
|
19
|
-
*/
|
20
|
-
properties?: IMetaProperties[];
|
21
|
-
|
22
|
-
/**
|
23
|
-
* 引用id
|
24
|
-
*/
|
25
|
-
refId?: string;
|
26
|
-
/**
|
27
|
-
* 静态的变量
|
28
|
-
*/
|
29
|
-
fields?: IMetaFileds[];
|
30
|
-
/**
|
31
|
-
* 内部类
|
32
|
-
*/
|
33
|
-
types?: IMetaData[];
|
34
|
-
};
|
35
|
-
|
36
|
-
export type IMetaProperties = {
|
37
|
-
/**
|
38
|
-
* 类规则名称
|
39
|
-
*/
|
40
|
-
id: string;
|
41
|
-
|
42
|
-
/**
|
43
|
-
* 类型
|
44
|
-
*/
|
45
|
-
type: IMetaType;
|
46
|
-
|
47
|
-
/**
|
48
|
-
* 引用id
|
49
|
-
*/
|
50
|
-
refId?: string;
|
51
|
-
/**
|
52
|
-
* 静态的变量
|
53
|
-
*/
|
54
|
-
fields?: IMetaFileds[];
|
55
|
-
/**
|
56
|
-
* 枚举值
|
57
|
-
*/
|
58
|
-
enum?: { value: string }[];
|
59
|
-
/**
|
60
|
-
* 数组类型
|
61
|
-
*/
|
62
|
-
items?: { type: IMetaType; refId?: string };
|
63
|
-
};
|
64
|
-
|
65
|
-
export type IMetaFileds = {
|
66
|
-
/**
|
67
|
-
* 规则名称
|
68
|
-
*/
|
69
|
-
id: string;
|
70
|
-
|
71
|
-
/**
|
72
|
-
* 类型
|
73
|
-
*/
|
74
|
-
type: IMetaType;
|
75
|
-
|
76
|
-
/**
|
77
|
-
* 引用id
|
78
|
-
*/
|
79
|
-
refId?: string;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* 规则值
|
83
|
-
*/
|
84
|
-
value: any;
|
85
|
-
};
|
86
|
-
|
87
|
-
export interface IAPI {
|
88
|
-
// 获取元数据列表
|
89
|
-
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
-
// 通过元数据Id获取元数据详情
|
91
|
-
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
-
// 新增元数据
|
93
|
-
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
-
// 获取元数据的值
|
95
|
-
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
-
/** 通过扩展规则获取枚举类型的值 */
|
97
|
-
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
-
}
|
1
|
+
/*
|
2
|
+
* @Author: wangxian
|
3
|
+
* @Date: 2021-09-18 14:15:04
|
4
|
+
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
+
*/
|
6
|
+
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
+
|
8
|
+
export type IMetaData = {
|
9
|
+
/**
|
10
|
+
* 类名称/属性名称
|
11
|
+
*/
|
12
|
+
id: string;
|
13
|
+
/**
|
14
|
+
* 类型
|
15
|
+
*/
|
16
|
+
type: IMetaType;
|
17
|
+
/**
|
18
|
+
* 属性
|
19
|
+
*/
|
20
|
+
properties?: IMetaProperties[];
|
21
|
+
|
22
|
+
/**
|
23
|
+
* 引用id
|
24
|
+
*/
|
25
|
+
refId?: string;
|
26
|
+
/**
|
27
|
+
* 静态的变量
|
28
|
+
*/
|
29
|
+
fields?: IMetaFileds[];
|
30
|
+
/**
|
31
|
+
* 内部类
|
32
|
+
*/
|
33
|
+
types?: IMetaData[];
|
34
|
+
};
|
35
|
+
|
36
|
+
export type IMetaProperties = {
|
37
|
+
/**
|
38
|
+
* 类规则名称
|
39
|
+
*/
|
40
|
+
id: string;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 类型
|
44
|
+
*/
|
45
|
+
type: IMetaType;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 引用id
|
49
|
+
*/
|
50
|
+
refId?: string;
|
51
|
+
/**
|
52
|
+
* 静态的变量
|
53
|
+
*/
|
54
|
+
fields?: IMetaFileds[];
|
55
|
+
/**
|
56
|
+
* 枚举值
|
57
|
+
*/
|
58
|
+
enum?: { value: string }[];
|
59
|
+
/**
|
60
|
+
* 数组类型
|
61
|
+
*/
|
62
|
+
items?: { type: IMetaType; refId?: string };
|
63
|
+
};
|
64
|
+
|
65
|
+
export type IMetaFileds = {
|
66
|
+
/**
|
67
|
+
* 规则名称
|
68
|
+
*/
|
69
|
+
id: string;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* 类型
|
73
|
+
*/
|
74
|
+
type: IMetaType;
|
75
|
+
|
76
|
+
/**
|
77
|
+
* 引用id
|
78
|
+
*/
|
79
|
+
refId?: string;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* 规则值
|
83
|
+
*/
|
84
|
+
value: any;
|
85
|
+
};
|
86
|
+
|
87
|
+
export interface IAPI {
|
88
|
+
// 获取元数据列表
|
89
|
+
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
+
// 通过元数据Id获取元数据详情
|
91
|
+
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
+
// 新增元数据
|
93
|
+
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
+
// 获取元数据的值
|
95
|
+
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
+
/** 通过扩展规则获取枚举类型的值 */
|
97
|
+
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
+
}
|