ronds-metadata 1.2.6 → 1.2.8

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.
@@ -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
+ };
@@ -17,7 +17,7 @@ import _Input from "antd/es/input";
17
17
  /*
18
18
  * @Author: wangxian
19
19
  * @Date: 2021-09-18 14:15:04
20
- * @LastEditTime: 2023-02-23 16:30:57
20
+ * @LastEditTime: 2023-02-23 19:32:47
21
21
  */
22
22
  import React from 'react';
23
23
  import { UploadOutlined } from '@ant-design/icons';
@@ -135,11 +135,11 @@ function Index(props) {
135
135
  } : {}
136
136
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
137
137
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
138
- span: labelSpan,
138
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
139
139
  offset: 0
140
140
  } : undefined,
141
141
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
142
- span: 24 - labelSpan,
142
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
143
143
  offset: 0
144
144
  } : undefined,
145
145
  name: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$addonAfter5 = extraInfo.addonAfter) === null || _extraInfo$addonAfter5 === void 0 ? void 0 : _extraInfo$addonAfter5.key) ? [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name), ['value']) : [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
@@ -166,11 +166,11 @@ function Index(props) {
166
166
  } : {}
167
167
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
168
168
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
169
- span: labelSpan,
169
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
170
170
  offset: 0
171
171
  } : undefined,
172
172
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
173
- span: 24 - labelSpan,
173
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
174
174
  offset: 0
175
175
  } : undefined,
176
176
  name: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$addonAfter6 = extraInfo.addonAfter) === null || _extraInfo$addonAfter6 === void 0 ? void 0 : _extraInfo$addonAfter6.key) ? [].concat(_toConsumableArray(name), ['value']) : name,
@@ -64,11 +64,11 @@ function Index(props) {
64
64
  } : {}
65
65
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
66
66
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
67
- span: labelSpan,
67
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
68
68
  offset: 0
69
69
  } : undefined,
70
70
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
71
- span: 24 - labelSpan,
71
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
72
72
  offset: 0
73
73
  } : undefined,
74
74
  rules: [{
@@ -265,11 +265,11 @@ function Index(props) {
265
265
  key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
266
266
  label: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id,
267
267
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
268
- span: labelSpan,
268
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
269
269
  offset: 0
270
270
  } : undefined,
271
271
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
272
- span: 24 - labelSpan,
272
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
273
273
  offset: 0
274
274
  } : undefined,
275
275
  initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
@@ -31,7 +31,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
31
31
  /*
32
32
  * @Author:wangxian
33
33
  * @Date: 2021-09-18 14:15:04
34
- * @LastEditTime: 2023-02-23 09:58:36
34
+ * @LastEditTime: 2023-02-23 19:34:06
35
35
  */
36
36
  import React from 'react';
37
37
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -459,11 +459,11 @@ function Index(props) {
459
459
  } : {}
460
460
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
461
461
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
462
- span: labelSpan,
462
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
463
463
  offset: 0
464
464
  } : undefined,
465
465
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
466
- span: 24 - labelSpan,
466
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
467
467
  offset: 0
468
468
  } : undefined,
469
469
  name: [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
@@ -487,11 +487,11 @@ function Index(props) {
487
487
  } : {}
488
488
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
489
489
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
490
- span: labelSpan,
490
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
491
491
  offset: 0
492
492
  } : undefined,
493
493
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
494
- span: 24 - labelSpan,
494
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
495
495
  offset: 0
496
496
  } : undefined,
497
497
  name: name,
@@ -8,7 +8,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
8
8
  /*
9
9
  * @Author: wangxian
10
10
  * @Date: 2021-09-18 14:15:04
11
- * @LastEditTime: 2023-02-21 19:17:13
11
+ * @LastEditTime: 2023-02-23 19:34:31
12
12
  */
13
13
  import React from 'react';
14
14
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -70,11 +70,11 @@ function Index(props) {
70
70
  } : {}
71
71
  }, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
72
72
  labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
73
- span: labelSpan,
73
+ flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
74
74
  offset: 0
75
75
  } : undefined,
76
76
  wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
77
- span: 24 - labelSpan,
77
+ flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
78
78
  offset: 0
79
79
  } : undefined,
80
80
  key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
@@ -1,30 +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
- }
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
+ }
@@ -4,6 +4,7 @@
4
4
  // }
5
5
  .ant-form-item {
6
6
  margin: 0 !important;
7
+ flex-wrap: nowrap !important;
7
8
  }
8
9
  .ant-form-item-label > label .ant-form-item-tooltip {
9
10
  margin-left: 5px;
@@ -1,227 +1,227 @@
1
1
  @font-face {
2
- font-family: "fa"; /* Project id 2247093 */
3
- src: url('iconfont.woff2?t=1677143238460') format('woff2'),
4
- url('iconfont.woff?t=1677143238460') format('woff'),
5
- url('iconfont.ttf?t=1677143238460') format('truetype');
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
- .fa {
9
- font-family: "fa" !important;
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
- .fa-elasticsearch:before {
16
+ .mt-elasticsearch:before {
17
17
  content: "\e6a1";
18
18
  }
19
19
 
20
- .fa-transform:before {
20
+ .mt-transform:before {
21
21
  content: "\ed70";
22
22
  }
23
23
 
24
- .fa-info:before {
24
+ .mt-info:before {
25
25
  content: "\e7dc";
26
26
  }
27
27
 
28
- .fa-expert:before {
28
+ .mt-expert:before {
29
29
  content: "\e60c";
30
30
  }
31
31
 
32
- .fa-ai1:before {
32
+ .mt-ai1:before {
33
33
  content: "\e60d";
34
34
  }
35
35
 
36
- .fa-ai2:before {
36
+ .mt-ai2:before {
37
37
  content: "\e893";
38
38
  }
39
39
 
40
- .fa-ai:before {
40
+ .mt-ai:before {
41
41
  content: "\e887";
42
42
  }
43
43
 
44
- .fa-signal:before {
44
+ .mt-signal:before {
45
45
  content: "\ec4a";
46
46
  }
47
47
 
48
- .fa-circle:before {
48
+ .mt-circle:before {
49
49
  content: "\e660";
50
50
  }
51
51
 
52
- .fa-scan:before {
52
+ .mt-scan:before {
53
53
  content: "\e6df";
54
54
  }
55
55
 
56
- .fa-py:before {
56
+ .mt-py:before {
57
57
  content: "\e916";
58
58
  }
59
59
 
60
- .fa-Redis:before {
60
+ .mt-Redis:before {
61
61
  content: "\e669";
62
62
  }
63
63
 
64
- .fa-hezi:before {
64
+ .mt-hezi:before {
65
65
  content: "\e60b";
66
66
  }
67
67
 
68
- .fa-message:before {
68
+ .mt-message:before {
69
69
  content: "\e637";
70
70
  }
71
71
 
72
- .fa-shujuku:before {
72
+ .mt-shujuku:before {
73
73
  content: "\e645";
74
74
  }
75
75
 
76
- .fa-hourglass:before {
76
+ .mt-hourglass:before {
77
77
  content: "\e66b";
78
78
  }
79
79
 
80
- .fa-Bucket:before {
80
+ .mt-Bucket:before {
81
81
  content: "\e8ce";
82
82
  }
83
83
 
84
- .fa-RondsLake:before {
84
+ .mt-RondsLake:before {
85
85
  content: "\e8a2";
86
86
  }
87
87
 
88
- .fa-Schema:before {
88
+ .mt-Schema:before {
89
89
  content: "\e62a";
90
90
  }
91
91
 
92
- .fa-Minio:before {
92
+ .mt-Minio:before {
93
93
  content: "\e64e";
94
94
  }
95
95
 
96
- .fa-color:before {
96
+ .mt-color:before {
97
97
  content: "\e678";
98
98
  }
99
99
 
100
- .fa-Neo4j:before {
100
+ .mt-Neo4j:before {
101
101
  content: "\e612";
102
102
  }
103
103
 
104
- .fa-knowledge:before {
104
+ .mt-knowledge:before {
105
105
  content: "\e621";
106
106
  }
107
107
 
108
- .fa-evaluate:before {
108
+ .mt-evaluate:before {
109
109
  content: "\e608";
110
110
  }
111
111
 
112
- .fa-json1:before {
112
+ .mt-json1:before {
113
113
  content: "\e7bd";
114
114
  }
115
115
 
116
- .fa-result:before {
116
+ .mt-result:before {
117
117
  content: "\e64c";
118
118
  }
119
119
 
120
- .fa-analysis:before {
120
+ .mt-analysis:before {
121
121
  content: "\e72e";
122
122
  }
123
123
 
124
- .fa-select:before {
124
+ .mt-select:before {
125
125
  content: "\e701";
126
126
  }
127
127
 
128
- .fa-Http:before {
128
+ .mt-Http:before {
129
129
  content: "\e668";
130
130
  }
131
131
 
132
- .fa-question:before {
132
+ .mt-question:before {
133
133
  content: "\e60e";
134
134
  }
135
135
 
136
- .fa-monitor:before {
136
+ .mt-monitor:before {
137
137
  content: "\e61f";
138
138
  }
139
139
 
140
- .fa-algorithm_lab:before {
140
+ .mt-algorithm_lab:before {
141
141
  content: "\e607";
142
142
  }
143
143
 
144
- .fa-engine:before {
144
+ .mt-engine:before {
145
145
  content: "\e610";
146
146
  }
147
147
 
148
- .fa-user:before {
148
+ .mt-user:before {
149
149
  content: "\e713";
150
150
  }
151
151
 
152
- .fa-logout:before {
152
+ .mt-logout:before {
153
153
  content: "\e611";
154
154
  }
155
155
 
156
- .fa-screen:before {
156
+ .mt-screen:before {
157
157
  content: "\e606";
158
158
  }
159
159
 
160
- .fa-password:before {
160
+ .mt-password:before {
161
161
  content: "\e605";
162
162
  }
163
163
 
164
- .fa-news:before {
164
+ .mt-news:before {
165
165
  content: "\e638";
166
166
  }
167
167
 
168
- .fa-record:before {
168
+ .mt-record:before {
169
169
  content: "\e648";
170
170
  }
171
171
 
172
- .fa-home:before {
172
+ .mt-home:before {
173
173
  content: "\e609";
174
174
  }
175
175
 
176
- .fa-json:before {
176
+ .mt-json:before {
177
177
  content: "\e61a";
178
178
  }
179
179
 
180
- .fa-code:before {
180
+ .mt-code:before {
181
181
  content: "\e654";
182
182
  }
183
183
 
184
- .fa-diagram:before {
184
+ .mt-diagram:before {
185
185
  content: "\e60a";
186
186
  }
187
187
 
188
- .fa-setting:before {
188
+ .mt-setting:before {
189
189
  content: "\e84b";
190
190
  }
191
191
 
192
- .fa-datasource:before {
192
+ .mt-datasource:before {
193
193
  content: "\e62e";
194
194
  }
195
195
 
196
- .fa-stream:before {
196
+ .mt-stream:before {
197
197
  content: "\ec56";
198
198
  }
199
199
 
200
- .fa-Kafka:before {
200
+ .mt-Kafka:before {
201
201
  content: "\e64f";
202
202
  }
203
203
 
204
- .fa-Table:before {
204
+ .mt-Table:before {
205
205
  content: "\e72d";
206
206
  }
207
207
 
208
- .fa-PostgreSql:before {
208
+ .mt-PostgreSql:before {
209
209
  content: "\e63b";
210
210
  }
211
211
 
212
- .fa-link:before {
212
+ .mt-link:before {
213
213
  content: "\e636";
214
214
  }
215
215
 
216
- .fa-LocalFileSystem:before {
216
+ .mt-LocalFileSystem:before {
217
217
  content: "\e600";
218
218
  }
219
219
 
220
- .fa-Cassandra:before {
220
+ .mt-Cassandra:before {
221
221
  content: "\e74f";
222
222
  }
223
223
 
224
- .fa-DataBase:before {
224
+ .mt-DataBase:before {
225
225
  content: "\e797";
226
226
  }
227
227