ronds-metadata 1.2.8 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -0
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/index.d.ts +4 -0
- package/es/comps/FormGenerator/settings/index.d.ts +668 -49
- package/es/comps/JsonEdit/index.d.ts +5 -1
- package/es/comps/MetadataForm/index.less +1 -1
- package/es/comps/MetadataForm/utils.d.ts +1 -1
- package/package.json +1 -1
- package/es/api/index.js +0 -249
- package/es/comps/DynamicPorts/comps/ContextMenu.js +0 -44
- package/es/comps/DynamicPorts/comps/DragNode.js +0 -55
- package/es/comps/DynamicPorts/comps/GraphHandler/index.js +0 -51
- package/es/comps/DynamicPorts/comps/NodeElement.js +0 -30
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +0 -42
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +0 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +0 -55
- package/es/comps/DynamicPorts/comps/shape/connector.js +0 -19
- package/es/comps/DynamicPorts/comps/shape/edge.js +0 -91
- package/es/comps/DynamicPorts/comps/shape/node.js +0 -190
- package/es/comps/DynamicPorts/constant/index.js +0 -19
- package/es/comps/DynamicPorts/graph.js +0 -697
- package/es/comps/DynamicPorts/index.js +0 -143
- package/es/comps/DynamicPorts/interface.js +0 -6
- package/es/comps/DynamicPorts/utils.js +0 -127
- package/es/comps/Editable/DataCell/ButtonCell.js +0 -45
- package/es/comps/Editable/DataCell/ColorPicker.js +0 -33
- package/es/comps/Editable/DataCell/Input.js +0 -54
- package/es/comps/Editable/DataCell/Number.js +0 -44
- package/es/comps/Editable/DataCell/Select.js +0 -48
- package/es/comps/Editable/DataCell/Switch.js +0 -33
- package/es/comps/Editable/comps/EditableAction.js +0 -110
- package/es/comps/Editable/comps/EditableCell.js +0 -108
- package/es/comps/Editable/comps/EditableHeardCell.js +0 -172
- package/es/comps/Editable/comps/EditableRow.js +0 -118
- package/es/comps/Editable/comps/Texty.js +0 -277
- package/es/comps/Editable/index.js +0 -385
- package/es/comps/Editable/interface.js +0 -8
- package/es/comps/Editable/utils.js +0 -46
- package/es/comps/FileView/index.js +0 -198
- package/es/comps/FormGenerator/Provider.js +0 -8
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +0 -16
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +0 -55
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +0 -14
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +0 -50
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +0 -55
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +0 -13
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +0 -14
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +0 -17
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +0 -250
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +0 -60
- package/es/comps/FormGenerator/comps/Canvas/core/index.js +0 -313
- package/es/comps/FormGenerator/comps/Canvas/index.js +0 -216
- package/es/comps/FormGenerator/comps/Settings/index.js +0 -150
- package/es/comps/FormGenerator/comps/Sidebar/Elements.js +0 -48
- package/es/comps/FormGenerator/comps/Sidebar/index.js +0 -37
- package/es/comps/FormGenerator/index.js +0 -56
- package/es/comps/FormGenerator/settings/index.js +0 -303
- package/es/comps/FormGenerator/settings/ruleConfig.js +0 -557
- package/es/comps/FormGenerator/transformer.js +0 -214
- package/es/comps/Icons/index.js +0 -23
- package/es/comps/JsonEdit/constant/index.js +0 -87
- package/es/comps/JsonEdit/index.js +0 -217
- package/es/comps/JsonView/index.js +0 -109
- package/es/comps/MdEdit/index.js +0 -41
- package/es/comps/MdNavbar/index.js +0 -180
- package/es/comps/MdNavbar/utils.js +0 -34
- package/es/comps/MdView/index.js +0 -70
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +0 -419
- package/es/comps/MetadataEdit/components/MetaPropsEdit.js +0 -368
- package/es/comps/MetadataEdit/constant/index.js +0 -69
- package/es/comps/MetadataEdit/hooks/index.js +0 -43
- package/es/comps/MetadataEdit/index.js +0 -255
- package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +0 -237
- package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +0 -367
- package/es/comps/MetadataEditV2/constant/index.js +0 -69
- package/es/comps/MetadataEditV2/hooks/index.js +0 -43
- package/es/comps/MetadataEditV2/index.js +0 -298
- package/es/comps/MetadataForm/DataCell/Array.js +0 -157
- package/es/comps/MetadataForm/DataCell/Input.js +0 -197
- package/es/comps/MetadataForm/DataCell/Number.js +0 -130
- package/es/comps/MetadataForm/DataCell/Ref.js +0 -323
- package/es/comps/MetadataForm/DataCell/Select.js +0 -517
- package/es/comps/MetadataForm/DataCell/Switch.js +0 -115
- package/es/comps/MetadataForm/DataCell/layout/TableArray.js +0 -359
- package/es/comps/MetadataForm/HOC/index.js +0 -111
- package/es/comps/MetadataForm/constants.js +0 -11
- package/es/comps/MetadataForm/hooks/index.js +0 -128
- package/es/comps/MetadataForm/index.js +0 -268
- package/es/comps/MetadataForm/interface.js +0 -8
- package/es/comps/MetadataForm/utils.js +0 -108
- package/es/comps/locales/en-US.js +0 -24
- package/es/comps/locales/index.js +0 -8
- package/es/comps/locales/zh-CN.js +0 -24
- package/es/config.js +0 -50
- package/es/framework/graph/index.js +0 -515
- package/es/framework/hooks/use-async-memo.js +0 -32
- package/es/framework/hooks/use-sync-scroll.js +0 -106
- package/es/framework/http/cache.js +0 -137
- package/es/framework/http/cancel.js +0 -44
- package/es/framework/http/index.js +0 -392
- package/es/framework/http/msgpack.js +0 -34
- package/es/framework/http/msgpack5/index.js +0 -84
- package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +0 -71
- package/es/framework/http/msgpack5/lib/decoder.js +0 -287
- package/es/framework/http/msgpack5/lib/encoder.js +0 -252
- package/es/framework/http/msgpack5/lib/helpers.js +0 -23
- package/es/framework/http/msgpack5/lib/streams.js +0 -93
- package/es/framework/http/types.js +0 -1
- package/es/framework/libs/jquery.min.js +0 -4022
- package/es/framework/locale/dil8/di18n.js +0 -132
- package/es/framework/locale/dil8/index.js +0 -3
- package/es/framework/locale/dil8/translate.js +0 -76
- package/es/framework/locale/dil8/util.js +0 -17
- package/es/framework/locale/index.js +0 -26
- package/es/framework/metadata/MetadataService.js +0 -169
- package/es/framework/metadata/index.js +0 -384
- package/es/framework/rxjs-hooks/useMemoSubject.js +0 -16
- package/es/framework/rxjs-hooks/useObservable.js +0 -22
- package/es/framework/rxjs-hooks/useObservableState.js +0 -45
- package/es/index.js +0 -27
- package/es/utils.js +0 -138
@@ -1,557 +0,0 @@
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
|
-
|
3
|
-
/*
|
4
|
-
* @Author: wangxian
|
5
|
-
* @Date: 2023-02-08 10:36:25
|
6
|
-
* @LastEditTime: 2023-02-16 14:43:53
|
7
|
-
*/
|
8
|
-
import { DEFAULT_DATE_FORMAT } from '../../../comps/MetadataForm/DataCell/Input';
|
9
|
-
export var Rule = {
|
10
|
-
common: {
|
11
|
-
id: {
|
12
|
-
id: 'id',
|
13
|
-
type: 'text',
|
14
|
-
fields: [{
|
15
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
16
|
-
type: 'ref',
|
17
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
18
|
-
value: {
|
19
|
-
label: 'ID',
|
20
|
-
tooltip: '字段名称(仅支持英文)'
|
21
|
-
}
|
22
|
-
}]
|
23
|
-
},
|
24
|
-
label: {
|
25
|
-
id: 'label',
|
26
|
-
type: 'text',
|
27
|
-
fields: [{
|
28
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
29
|
-
type: 'ref',
|
30
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
31
|
-
value: {
|
32
|
-
label: '标题'
|
33
|
-
}
|
34
|
-
}]
|
35
|
-
},
|
36
|
-
color: {
|
37
|
-
id: 'color',
|
38
|
-
type: 'text',
|
39
|
-
fields: [{
|
40
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
41
|
-
type: 'ref',
|
42
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
43
|
-
value: {
|
44
|
-
label: '标题颜色',
|
45
|
-
type: 'colorPicker'
|
46
|
-
}
|
47
|
-
}]
|
48
|
-
},
|
49
|
-
colSpan: {
|
50
|
-
id: 'colSpan',
|
51
|
-
type: 'number',
|
52
|
-
fields: [{
|
53
|
-
id: 'Rule.Form',
|
54
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
55
|
-
type: 'ref',
|
56
|
-
value: {
|
57
|
-
'common-en-US': {
|
58
|
-
depend: {}
|
59
|
-
},
|
60
|
-
common: {
|
61
|
-
label: '组件布局',
|
62
|
-
tooltip: '默认按照整体布局配置排布',
|
63
|
-
help: '这里填写表单整体布局的倍数,最大一行'
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}]
|
67
|
-
},
|
68
|
-
defaultValue: {
|
69
|
-
id: 'defaultValue',
|
70
|
-
type: 'text',
|
71
|
-
fields: [{
|
72
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
73
|
-
type: 'ref',
|
74
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
75
|
-
value: {
|
76
|
-
label: '默认值'
|
77
|
-
}
|
78
|
-
}]
|
79
|
-
},
|
80
|
-
help: {
|
81
|
-
id: 'help',
|
82
|
-
type: 'text',
|
83
|
-
fields: [{
|
84
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
85
|
-
type: 'ref',
|
86
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
87
|
-
value: {
|
88
|
-
label: '帮助说明'
|
89
|
-
}
|
90
|
-
}]
|
91
|
-
},
|
92
|
-
tooltip: {
|
93
|
-
id: 'tooltip',
|
94
|
-
type: 'text',
|
95
|
-
fields: [{
|
96
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
97
|
-
type: 'ref',
|
98
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
99
|
-
value: {
|
100
|
-
label: '提示说明'
|
101
|
-
}
|
102
|
-
}]
|
103
|
-
},
|
104
|
-
placeholder: {
|
105
|
-
id: 'placeholder',
|
106
|
-
type: 'text',
|
107
|
-
fields: [{
|
108
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
109
|
-
type: 'ref',
|
110
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
111
|
-
value: {
|
112
|
-
label: '默认文本'
|
113
|
-
}
|
114
|
-
}]
|
115
|
-
},
|
116
|
-
require: {
|
117
|
-
id: 'require',
|
118
|
-
type: 'bool',
|
119
|
-
fields: [{
|
120
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
121
|
-
type: 'ref',
|
122
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
123
|
-
value: {
|
124
|
-
label: '是否必填'
|
125
|
-
}
|
126
|
-
}]
|
127
|
-
},
|
128
|
-
disabled: {
|
129
|
-
id: 'disabled',
|
130
|
-
type: 'bool',
|
131
|
-
fields: [{
|
132
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
133
|
-
type: 'ref',
|
134
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
135
|
-
value: {
|
136
|
-
label: '是否禁用'
|
137
|
-
}
|
138
|
-
}]
|
139
|
-
},
|
140
|
-
hidden: {
|
141
|
-
id: 'hidden',
|
142
|
-
type: 'bool',
|
143
|
-
fields: [{
|
144
|
-
id: 'Rule.Form',
|
145
|
-
type: 'ref',
|
146
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
147
|
-
value: {
|
148
|
-
common: {
|
149
|
-
label: '是否隐藏'
|
150
|
-
},
|
151
|
-
'common-en-US': {}
|
152
|
-
}
|
153
|
-
}]
|
154
|
-
}
|
155
|
-
},
|
156
|
-
depend: {
|
157
|
-
hidden: {
|
158
|
-
id: 'hidden',
|
159
|
-
type: 'text',
|
160
|
-
fields: [{
|
161
|
-
id: 'Rule.Form',
|
162
|
-
type: 'ref',
|
163
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
164
|
-
value: {
|
165
|
-
text: {},
|
166
|
-
common: {
|
167
|
-
label: '隐藏'
|
168
|
-
},
|
169
|
-
'common-en-US': {}
|
170
|
-
}
|
171
|
-
}]
|
172
|
-
},
|
173
|
-
show: {
|
174
|
-
id: 'show',
|
175
|
-
type: 'text',
|
176
|
-
fields: [{
|
177
|
-
id: 'Rule.Form',
|
178
|
-
type: 'ref',
|
179
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
180
|
-
value: {
|
181
|
-
text: {},
|
182
|
-
common: {
|
183
|
-
label: '显示',
|
184
|
-
depend: {}
|
185
|
-
},
|
186
|
-
'common-en-US': {}
|
187
|
-
}
|
188
|
-
}]
|
189
|
-
}
|
190
|
-
},
|
191
|
-
text: {
|
192
|
-
type: {
|
193
|
-
id: 'type',
|
194
|
-
enum: [{
|
195
|
-
value: 'colorPicker'
|
196
|
-
}, {
|
197
|
-
value: 'datePicker'
|
198
|
-
}, {
|
199
|
-
value: 'password'
|
200
|
-
}, {
|
201
|
-
value: 'textarea'
|
202
|
-
}, {
|
203
|
-
value: 'upload'
|
204
|
-
}],
|
205
|
-
type: 'enum',
|
206
|
-
fields: [{
|
207
|
-
id: 'com.ronds.schema.default.Rule.Form',
|
208
|
-
type: 'ref',
|
209
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
210
|
-
value: {
|
211
|
-
enum: {
|
212
|
-
value: [{
|
213
|
-
key: 'textarea',
|
214
|
-
value: '文本框'
|
215
|
-
}, {
|
216
|
-
key: 'password',
|
217
|
-
value: '密码框'
|
218
|
-
}, {
|
219
|
-
key: 'datePicker',
|
220
|
-
value: '日期选择框'
|
221
|
-
}, {
|
222
|
-
key: 'colorPicker',
|
223
|
-
value: '颜色选择框'
|
224
|
-
}, {
|
225
|
-
key: 'upload',
|
226
|
-
value: '上传'
|
227
|
-
}]
|
228
|
-
},
|
229
|
-
text: {},
|
230
|
-
common: {
|
231
|
-
label: '类型'
|
232
|
-
}
|
233
|
-
}
|
234
|
-
}]
|
235
|
-
},
|
236
|
-
format: {
|
237
|
-
id: 'format',
|
238
|
-
type: 'text',
|
239
|
-
fields: [{
|
240
|
-
id: 'Rule.Form',
|
241
|
-
type: 'ref',
|
242
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
243
|
-
value: {
|
244
|
-
text: {},
|
245
|
-
common: {
|
246
|
-
label: '格式化',
|
247
|
-
help: "".concat(DEFAULT_DATE_FORMAT)
|
248
|
-
},
|
249
|
-
'common-en-US': {}
|
250
|
-
}
|
251
|
-
}]
|
252
|
-
}
|
253
|
-
},
|
254
|
-
rules: {
|
255
|
-
regExp: {
|
256
|
-
id: 'regExp',
|
257
|
-
type: 'text',
|
258
|
-
fields: [{
|
259
|
-
id: 'Rule.Form',
|
260
|
-
type: 'ref',
|
261
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
262
|
-
value: {
|
263
|
-
text: {},
|
264
|
-
common: {
|
265
|
-
label: '正则表达式'
|
266
|
-
},
|
267
|
-
'common-en-US': {}
|
268
|
-
}
|
269
|
-
}]
|
270
|
-
},
|
271
|
-
message: {
|
272
|
-
id: 'message',
|
273
|
-
type: 'text',
|
274
|
-
fields: [{
|
275
|
-
id: 'Rule.Form',
|
276
|
-
type: 'ref',
|
277
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
278
|
-
value: {
|
279
|
-
text: {},
|
280
|
-
common: {
|
281
|
-
label: '提示信息'
|
282
|
-
},
|
283
|
-
'common-en-US': {}
|
284
|
-
}
|
285
|
-
}]
|
286
|
-
}
|
287
|
-
},
|
288
|
-
enum: {}
|
289
|
-
};
|
290
|
-
var Ref2Rule = {
|
291
|
-
enum: {
|
292
|
-
value: {
|
293
|
-
props: {
|
294
|
-
id: 'value',
|
295
|
-
type: 'array',
|
296
|
-
items: {
|
297
|
-
type: 'ref',
|
298
|
-
refId: 'enumValueRule'
|
299
|
-
},
|
300
|
-
fields: [{
|
301
|
-
id: 'com.ronds.schema.default.Rule.Form.Common',
|
302
|
-
type: 'ref',
|
303
|
-
refId: 'com.ronds.schema.default.Rule.Form.Common',
|
304
|
-
value: {
|
305
|
-
common: {
|
306
|
-
label: '枚举值'
|
307
|
-
},
|
308
|
-
'common-en-US': {},
|
309
|
-
array: {
|
310
|
-
layout: 'table',
|
311
|
-
rowNumber: 4
|
312
|
-
}
|
313
|
-
}
|
314
|
-
}]
|
315
|
-
},
|
316
|
-
types: [{
|
317
|
-
id: 'enumValueRule',
|
318
|
-
type: 'object',
|
319
|
-
properties: [{
|
320
|
-
id: 'key',
|
321
|
-
type: 'text'
|
322
|
-
}, {
|
323
|
-
id: 'value',
|
324
|
-
type: 'text'
|
325
|
-
}]
|
326
|
-
}]
|
327
|
-
},
|
328
|
-
http: {
|
329
|
-
props: {
|
330
|
-
id: 'http',
|
331
|
-
type: 'ref',
|
332
|
-
refId: 'httpRef',
|
333
|
-
fields: [{
|
334
|
-
id: 'Rule.Form',
|
335
|
-
type: 'ref',
|
336
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
337
|
-
value: {
|
338
|
-
common: {
|
339
|
-
label: '动态枚举值',
|
340
|
-
tooltip: '通过接口调用获取枚举值'
|
341
|
-
},
|
342
|
-
'common-en-US': {}
|
343
|
-
}
|
344
|
-
}]
|
345
|
-
},
|
346
|
-
types: [{
|
347
|
-
id: 'httpRef',
|
348
|
-
type: 'object',
|
349
|
-
properties: [{
|
350
|
-
id: 'url',
|
351
|
-
type: 'text',
|
352
|
-
fields: [{
|
353
|
-
id: 'Rule.Form',
|
354
|
-
type: 'ref',
|
355
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
356
|
-
value: {
|
357
|
-
text: {},
|
358
|
-
common: {
|
359
|
-
label: '请求URL'
|
360
|
-
},
|
361
|
-
'common-en-US': {}
|
362
|
-
}
|
363
|
-
}]
|
364
|
-
}, {
|
365
|
-
id: 'method',
|
366
|
-
type: 'enum',
|
367
|
-
enum: [{
|
368
|
-
value: 'get'
|
369
|
-
}, {
|
370
|
-
value: 'post'
|
371
|
-
}],
|
372
|
-
fields: [{
|
373
|
-
id: 'Rule.Form',
|
374
|
-
type: 'ref',
|
375
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
376
|
-
value: {
|
377
|
-
text: {},
|
378
|
-
common: {
|
379
|
-
label: '请求方法',
|
380
|
-
defaultValue: 'get'
|
381
|
-
},
|
382
|
-
'common-en-US': {}
|
383
|
-
}
|
384
|
-
}]
|
385
|
-
}, {
|
386
|
-
id: 'body',
|
387
|
-
type: 'text',
|
388
|
-
fields: [{
|
389
|
-
id: 'Rule.Form',
|
390
|
-
type: 'ref',
|
391
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
392
|
-
value: {
|
393
|
-
text: {},
|
394
|
-
common: {
|
395
|
-
label: 'Body参数',
|
396
|
-
help: '支持Json字符串,系统会自动序列化',
|
397
|
-
depend: {// show: `method=='post'`,
|
398
|
-
}
|
399
|
-
},
|
400
|
-
'common-en-US': {}
|
401
|
-
}
|
402
|
-
}]
|
403
|
-
}, {
|
404
|
-
id: 'key',
|
405
|
-
type: 'text',
|
406
|
-
fields: [{
|
407
|
-
id: 'Rule.Form',
|
408
|
-
type: 'ref',
|
409
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
410
|
-
value: {
|
411
|
-
text: {},
|
412
|
-
common: {
|
413
|
-
label: 'Key的替换属性'
|
414
|
-
},
|
415
|
-
'common-en-US': {}
|
416
|
-
}
|
417
|
-
}]
|
418
|
-
}, {
|
419
|
-
id: 'value',
|
420
|
-
type: 'text',
|
421
|
-
fields: [{
|
422
|
-
id: 'Rule.Form',
|
423
|
-
type: 'ref',
|
424
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
425
|
-
value: {
|
426
|
-
text: {},
|
427
|
-
common: {
|
428
|
-
label: 'Vaule的替换属性'
|
429
|
-
},
|
430
|
-
'common-en-US': {}
|
431
|
-
}
|
432
|
-
}]
|
433
|
-
}, {
|
434
|
-
id: 'watch',
|
435
|
-
type: 'text',
|
436
|
-
fields: [{
|
437
|
-
id: 'Rule.Form',
|
438
|
-
type: 'ref',
|
439
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
440
|
-
value: {
|
441
|
-
text: {},
|
442
|
-
common: {
|
443
|
-
label: '监听',
|
444
|
-
help: '监听多个属性,用英文逗号隔开',
|
445
|
-
placeholder: 'id,name'
|
446
|
-
},
|
447
|
-
'common-en-US': {}
|
448
|
-
}
|
449
|
-
}]
|
450
|
-
}]
|
451
|
-
}]
|
452
|
-
}
|
453
|
-
}
|
454
|
-
};
|
455
|
-
export var RefRule = {
|
456
|
-
common: {
|
457
|
-
depend: {
|
458
|
-
props: {
|
459
|
-
id: 'depend',
|
460
|
-
type: 'ref',
|
461
|
-
refId: 'dependRule',
|
462
|
-
fields: [{
|
463
|
-
id: 'Rule.Form',
|
464
|
-
type: 'ref',
|
465
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
466
|
-
value: {
|
467
|
-
common: {
|
468
|
-
label: '列表联动'
|
469
|
-
},
|
470
|
-
'common-en-US': {}
|
471
|
-
}
|
472
|
-
}]
|
473
|
-
},
|
474
|
-
types: [{
|
475
|
-
id: 'dependRule',
|
476
|
-
type: 'object',
|
477
|
-
properties: [Rule.depend.show, Rule.depend.hidden]
|
478
|
-
}]
|
479
|
-
},
|
480
|
-
rules: {
|
481
|
-
props: {
|
482
|
-
id: 'rules',
|
483
|
-
type: 'array',
|
484
|
-
items: {
|
485
|
-
type: 'ref',
|
486
|
-
refId: 'Rule.Form.Common'
|
487
|
-
},
|
488
|
-
fields: [{
|
489
|
-
id: 'Rule.Form',
|
490
|
-
type: 'ref',
|
491
|
-
refId: 'rulesRule',
|
492
|
-
value: {
|
493
|
-
array: {},
|
494
|
-
common: {
|
495
|
-
label: '校验规则'
|
496
|
-
},
|
497
|
-
'common-en-US': {}
|
498
|
-
}
|
499
|
-
}]
|
500
|
-
},
|
501
|
-
types: [{
|
502
|
-
id: 'rulesRule',
|
503
|
-
type: 'object',
|
504
|
-
properties: [Rule.rules.regExp, Rule.rules.message]
|
505
|
-
}]
|
506
|
-
}
|
507
|
-
},
|
508
|
-
text: {
|
509
|
-
props: {
|
510
|
-
id: 'text',
|
511
|
-
type: 'ref',
|
512
|
-
refId: 'textRule',
|
513
|
-
fields: [{
|
514
|
-
id: 'Rule.Form',
|
515
|
-
type: 'ref',
|
516
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
517
|
-
value: {
|
518
|
-
common: {
|
519
|
-
label: '高级设置'
|
520
|
-
},
|
521
|
-
'common-en-US': {}
|
522
|
-
}
|
523
|
-
}]
|
524
|
-
},
|
525
|
-
types: [{
|
526
|
-
id: 'textRule',
|
527
|
-
type: 'object',
|
528
|
-
properties: [Rule.text.format]
|
529
|
-
}]
|
530
|
-
},
|
531
|
-
enum: {
|
532
|
-
props: {
|
533
|
-
id: 'enum',
|
534
|
-
type: 'ref',
|
535
|
-
refId: 'enumRule',
|
536
|
-
fields: [{
|
537
|
-
id: 'Rule.Form',
|
538
|
-
type: 'ref',
|
539
|
-
refId: 'com.ronds.schema.default.Rule.Form',
|
540
|
-
value: {
|
541
|
-
common: {
|
542
|
-
label: '高级设置'
|
543
|
-
},
|
544
|
-
ref: {
|
545
|
-
titleHidden: true
|
546
|
-
},
|
547
|
-
'common-en-US': {}
|
548
|
-
}
|
549
|
-
}]
|
550
|
-
},
|
551
|
-
types: [{
|
552
|
-
id: 'enumRule',
|
553
|
-
type: 'object',
|
554
|
-
properties: [Ref2Rule.enum.value.props, Ref2Rule.enum.http.props]
|
555
|
-
}].concat(_toConsumableArray(Ref2Rule.enum.value.types), _toConsumableArray(Ref2Rule.enum.http.types))
|
556
|
-
}
|
557
|
-
};
|