@formily-design/formily-setters 1.0.0
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/.umirc.js +44 -0
- package/LICENSE.md +20 -0
- package/README.md +7 -0
- package/copy.ts +6 -0
- package/esm/components/DataSourceSetter/DataSettingPanel.d.ts +10 -0
- package/esm/components/DataSourceSetter/DataSettingPanel.js +66 -0
- package/esm/components/DataSourceSetter/Header.d.ts +7 -0
- package/esm/components/DataSourceSetter/Header.js +10 -0
- package/esm/components/DataSourceSetter/Title.d.ts +7 -0
- package/esm/components/DataSourceSetter/Title.js +50 -0
- package/esm/components/DataSourceSetter/TreePanel.d.ts +12 -0
- package/esm/components/DataSourceSetter/TreePanel.js +98 -0
- package/esm/components/DataSourceSetter/index.d.ts +18 -0
- package/esm/components/DataSourceSetter/index.js +34 -0
- package/esm/components/DataSourceSetter/shared.d.ts +9 -0
- package/esm/components/DataSourceSetter/shared.js +47 -0
- package/esm/components/DataSourceSetter/styles.less +80 -0
- package/esm/components/DataSourceSetter/types.d.ts +18 -0
- package/esm/components/DataSourceSetter/types.js +1 -0
- package/esm/components/ReactionsSetter/FieldPropertySetter.d.ts +10 -0
- package/esm/components/ReactionsSetter/FieldPropertySetter.js +83 -0
- package/esm/components/ReactionsSetter/PathSelector.d.ts +10 -0
- package/esm/components/ReactionsSetter/PathSelector.js +107 -0
- package/esm/components/ReactionsSetter/declarations.d.ts +5 -0
- package/esm/components/ReactionsSetter/declarations.js +51 -0
- package/esm/components/ReactionsSetter/helpers.d.ts +10 -0
- package/esm/components/ReactionsSetter/helpers.js +384 -0
- package/esm/components/ReactionsSetter/index.d.ts +8 -0
- package/esm/components/ReactionsSetter/index.js +282 -0
- package/esm/components/ReactionsSetter/properties.d.ts +11 -0
- package/esm/components/ReactionsSetter/properties.js +41 -0
- package/esm/components/ReactionsSetter/styles.less +103 -0
- package/esm/components/ReactionsSetter/types.d.ts +13 -0
- package/esm/components/ReactionsSetter/types.js +1 -0
- package/esm/components/RemoteDataSourceSetter/RemoteDataSourcePanel.d.ts +8 -0
- package/esm/components/RemoteDataSourceSetter/RemoteDataSourcePanel.js +103 -0
- package/esm/components/RemoteDataSourceSetter/index.d.ts +17 -0
- package/esm/components/RemoteDataSourceSetter/index.js +25 -0
- package/esm/components/RemoteDataSourceSetter/styles.less +33 -0
- package/esm/components/RemoteDataSourceSetter/types.d.ts +8 -0
- package/esm/components/RemoteDataSourceSetter/types.js +1 -0
- package/esm/components/ValidatorSetter/index.d.ts +6 -0
- package/esm/components/ValidatorSetter/index.js +140 -0
- package/esm/components/index.d.ts +4 -0
- package/esm/components/index.js +4 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/locales/en-US.d.ts +110 -0
- package/esm/locales/en-US.js +115 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +5 -0
- package/esm/locales/ko-KR.d.ts +110 -0
- package/esm/locales/ko-KR.js +115 -0
- package/esm/locales/zh-CN.d.ts +110 -0
- package/esm/locales/zh-CN.js +115 -0
- package/lib/components/DataSourceSetter/DataSettingPanel.d.ts +10 -0
- package/lib/components/DataSourceSetter/DataSettingPanel.js +102 -0
- package/lib/components/DataSourceSetter/Header.d.ts +7 -0
- package/lib/components/DataSourceSetter/Header.js +16 -0
- package/lib/components/DataSourceSetter/Title.d.ts +7 -0
- package/lib/components/DataSourceSetter/Title.js +56 -0
- package/lib/components/DataSourceSetter/TreePanel.d.ts +12 -0
- package/lib/components/DataSourceSetter/TreePanel.js +134 -0
- package/lib/components/DataSourceSetter/index.d.ts +18 -0
- package/lib/components/DataSourceSetter/index.js +73 -0
- package/lib/components/DataSourceSetter/shared.d.ts +9 -0
- package/lib/components/DataSourceSetter/shared.js +53 -0
- package/lib/components/DataSourceSetter/styles.less +80 -0
- package/lib/components/DataSourceSetter/types.d.ts +18 -0
- package/lib/components/DataSourceSetter/types.js +2 -0
- package/lib/components/ReactionsSetter/FieldPropertySetter.d.ts +10 -0
- package/lib/components/ReactionsSetter/FieldPropertySetter.js +120 -0
- package/lib/components/ReactionsSetter/PathSelector.d.ts +10 -0
- package/lib/components/ReactionsSetter/PathSelector.js +114 -0
- package/lib/components/ReactionsSetter/declarations.d.ts +5 -0
- package/lib/components/ReactionsSetter/declarations.js +55 -0
- package/lib/components/ReactionsSetter/helpers.d.ts +10 -0
- package/lib/components/ReactionsSetter/helpers.js +387 -0
- package/lib/components/ReactionsSetter/index.d.ts +8 -0
- package/lib/components/ReactionsSetter/index.js +319 -0
- package/lib/components/ReactionsSetter/properties.d.ts +11 -0
- package/lib/components/ReactionsSetter/properties.js +44 -0
- package/lib/components/ReactionsSetter/styles.less +103 -0
- package/lib/components/ReactionsSetter/types.d.ts +13 -0
- package/lib/components/ReactionsSetter/types.js +2 -0
- package/lib/components/RemoteDataSourceSetter/RemoteDataSourcePanel.d.ts +8 -0
- package/lib/components/RemoteDataSourceSetter/RemoteDataSourcePanel.js +140 -0
- package/lib/components/RemoteDataSourceSetter/index.d.ts +17 -0
- package/lib/components/RemoteDataSourceSetter/index.js +64 -0
- package/lib/components/RemoteDataSourceSetter/styles.less +33 -0
- package/lib/components/RemoteDataSourceSetter/types.d.ts +8 -0
- package/lib/components/RemoteDataSourceSetter/types.js +2 -0
- package/lib/components/ValidatorSetter/index.d.ts +6 -0
- package/lib/components/ValidatorSetter/index.js +146 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +20 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +18 -0
- package/lib/locales/en-US.d.ts +110 -0
- package/lib/locales/en-US.js +117 -0
- package/lib/locales/index.d.ts +1 -0
- package/lib/locales/index.js +10 -0
- package/lib/locales/ko-KR.d.ts +110 -0
- package/lib/locales/ko-KR.js +117 -0
- package/lib/locales/zh-CN.d.ts +110 -0
- package/lib/locales/zh-CN.js +117 -0
- package/package.json +53 -0
- package/tsconfig.build.json +10 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { observer, useField, SchemaContext, Schema, } from '@formily/react';
|
|
3
|
+
import { GlobalRegistry } from '@formily-design/core';
|
|
4
|
+
import { ArrayItems } from '@formily/antd-v5';
|
|
5
|
+
import { FoldItem } from '@formily-design/react-settings-form';
|
|
6
|
+
import { Select } from 'antd';
|
|
7
|
+
const ValidatorSchema = {
|
|
8
|
+
type: 'array',
|
|
9
|
+
items: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
'x-decorator': 'ArrayItems.Item',
|
|
12
|
+
'x-decorator-props': {
|
|
13
|
+
style: {
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
borderRadius: 3,
|
|
16
|
+
paddingTop: 6,
|
|
17
|
+
paddingBottom: 6,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
properties: {
|
|
21
|
+
sortable: {
|
|
22
|
+
type: 'void',
|
|
23
|
+
'x-component': 'ArrayItems.SortHandle',
|
|
24
|
+
'x-component-props': { style: { marginRight: 10 } },
|
|
25
|
+
},
|
|
26
|
+
drawer: {
|
|
27
|
+
type: 'void',
|
|
28
|
+
'x-component': 'DrawerSetter',
|
|
29
|
+
properties: {
|
|
30
|
+
triggerType: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
enum: ['onInput', 'onFocus', 'onBlur'],
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Select',
|
|
35
|
+
},
|
|
36
|
+
validator: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
'x-decorator': 'FormItem',
|
|
39
|
+
'x-component': 'ValueInput',
|
|
40
|
+
'x-component-props': {
|
|
41
|
+
include: ['EXPRESSION'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
message: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
'x-decorator': 'FormItem',
|
|
47
|
+
'x-component': 'Input.TextArea',
|
|
48
|
+
},
|
|
49
|
+
format: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
'x-decorator': 'FormItem',
|
|
52
|
+
'x-component': 'Select',
|
|
53
|
+
'x-component-props': {
|
|
54
|
+
allowClear: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
pattern: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
'x-decorator': 'FormItem',
|
|
60
|
+
'x-component': 'Input',
|
|
61
|
+
'x-component-props': {
|
|
62
|
+
prefix: '/',
|
|
63
|
+
suffix: '/',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
len: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
'x-decorator': 'FormItem',
|
|
69
|
+
'x-component': 'NumberPicker',
|
|
70
|
+
},
|
|
71
|
+
max: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
'x-decorator': 'FormItem',
|
|
74
|
+
'x-component': 'NumberPicker',
|
|
75
|
+
},
|
|
76
|
+
min: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
'x-decorator': 'FormItem',
|
|
79
|
+
'x-component': 'NumberPicker',
|
|
80
|
+
},
|
|
81
|
+
exclusiveMaximum: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
'x-decorator': 'FormItem',
|
|
84
|
+
'x-component': 'NumberPicker',
|
|
85
|
+
},
|
|
86
|
+
exclusiveMinimum: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
'x-decorator': 'FormItem',
|
|
89
|
+
'x-component': 'NumberPicker',
|
|
90
|
+
},
|
|
91
|
+
whitespace: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
'x-decorator': 'FormItem',
|
|
94
|
+
'x-component': 'Switch',
|
|
95
|
+
},
|
|
96
|
+
required: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
'x-decorator': 'FormItem',
|
|
99
|
+
'x-component': 'Switch',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
moveDown: {
|
|
104
|
+
type: 'void',
|
|
105
|
+
'x-component': 'ArrayItems.MoveDown',
|
|
106
|
+
'x-component-props': { style: { marginLeft: 10 } },
|
|
107
|
+
},
|
|
108
|
+
moveUp: {
|
|
109
|
+
type: 'void',
|
|
110
|
+
'x-component': 'ArrayItems.MoveUp',
|
|
111
|
+
'x-component-props': { style: { marginLeft: 5 } },
|
|
112
|
+
},
|
|
113
|
+
remove: {
|
|
114
|
+
type: 'void',
|
|
115
|
+
'x-component': 'ArrayItems.Remove',
|
|
116
|
+
'x-component-props': { style: { marginLeft: 5 } },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
properties: {
|
|
121
|
+
addValidatorRules: {
|
|
122
|
+
type: 'void',
|
|
123
|
+
'x-component': 'ArrayItems.Addition',
|
|
124
|
+
'x-component-props': {
|
|
125
|
+
style: {
|
|
126
|
+
marginBottom: 10,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
export const ValidatorSetter = observer((props) => {
|
|
133
|
+
const field = useField();
|
|
134
|
+
return (React.createElement(FoldItem, { label: field.title },
|
|
135
|
+
React.createElement(FoldItem.Base, null,
|
|
136
|
+
React.createElement(Select, { value: Array.isArray(props.value) ? undefined : props.value, onChange: props.onChange, allowClear: true, placeholder: GlobalRegistry.getDesignerMessage('SettingComponents.ValidatorSetter.pleaseSelect'), options: GlobalRegistry.getDesignerMessage('SettingComponents.ValidatorSetter.formats') })),
|
|
137
|
+
React.createElement(FoldItem.Extra, null,
|
|
138
|
+
React.createElement(SchemaContext.Provider, { value: new Schema(ValidatorSchema) },
|
|
139
|
+
React.createElement(ArrayItems, null)))));
|
|
140
|
+
});
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
settings: {
|
|
4
|
+
'x-validator': {
|
|
5
|
+
title: string;
|
|
6
|
+
addValidatorRules: string;
|
|
7
|
+
drawer: string;
|
|
8
|
+
triggerType: {
|
|
9
|
+
title: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
dataSource: string[];
|
|
12
|
+
};
|
|
13
|
+
format: {
|
|
14
|
+
title: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
dataSource: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
validator: {
|
|
22
|
+
title: string;
|
|
23
|
+
tooltip: string;
|
|
24
|
+
};
|
|
25
|
+
pattern: string;
|
|
26
|
+
len: string;
|
|
27
|
+
max: string;
|
|
28
|
+
min: string;
|
|
29
|
+
exclusiveMaximum: string;
|
|
30
|
+
exclusiveMinimum: string;
|
|
31
|
+
whitespace: string;
|
|
32
|
+
required: string;
|
|
33
|
+
message: {
|
|
34
|
+
title: string;
|
|
35
|
+
tooltip: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
SettingComponents: {
|
|
40
|
+
DataSourceSetter: {
|
|
41
|
+
nodeProperty: string;
|
|
42
|
+
pleaseSelectNode: string;
|
|
43
|
+
addKeyValuePair: string;
|
|
44
|
+
configureDataSource: string;
|
|
45
|
+
dataSource: string;
|
|
46
|
+
defaultTitle: string;
|
|
47
|
+
dataSourceTree: string;
|
|
48
|
+
addNode: string;
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
item: string;
|
|
52
|
+
staticData: string;
|
|
53
|
+
remoteData: string;
|
|
54
|
+
confirm: string;
|
|
55
|
+
cancel: string;
|
|
56
|
+
editConfigure: string;
|
|
57
|
+
};
|
|
58
|
+
RemoteDataSource: {
|
|
59
|
+
basic: string;
|
|
60
|
+
url: string;
|
|
61
|
+
method: string;
|
|
62
|
+
headers: string;
|
|
63
|
+
params: string;
|
|
64
|
+
handlers: string;
|
|
65
|
+
beforeRequest: string;
|
|
66
|
+
dataHandler: string;
|
|
67
|
+
addHeader: string;
|
|
68
|
+
addParam: string;
|
|
69
|
+
};
|
|
70
|
+
ReactionsSetter: {
|
|
71
|
+
configureReactions: string;
|
|
72
|
+
relationsFields: string;
|
|
73
|
+
variableName: string;
|
|
74
|
+
variableNameValidateMessage: string;
|
|
75
|
+
pleaseInput: string;
|
|
76
|
+
sourceField: string;
|
|
77
|
+
sourceProperty: string;
|
|
78
|
+
variableType: string;
|
|
79
|
+
operations: string;
|
|
80
|
+
addRelationField: string;
|
|
81
|
+
propertyReactions: string;
|
|
82
|
+
actionReactions: string;
|
|
83
|
+
visible: string;
|
|
84
|
+
hidden: string;
|
|
85
|
+
display: string;
|
|
86
|
+
pattern: string;
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
value: string;
|
|
90
|
+
initialValue: string;
|
|
91
|
+
dataSource: string;
|
|
92
|
+
required: string;
|
|
93
|
+
component: string;
|
|
94
|
+
componentProps: string;
|
|
95
|
+
decorator: string;
|
|
96
|
+
decoratorProps: string;
|
|
97
|
+
pleaseSelect: string;
|
|
98
|
+
expressionValueTypeIs: string;
|
|
99
|
+
};
|
|
100
|
+
ValidatorSetter: {
|
|
101
|
+
pleaseSelect: string;
|
|
102
|
+
formats: {
|
|
103
|
+
label: string;
|
|
104
|
+
value: string;
|
|
105
|
+
}[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const ValidatorFormats = [
|
|
2
|
+
{ label: 'URL', value: 'url' },
|
|
3
|
+
{ label: 'Email', value: 'email' },
|
|
4
|
+
{ label: 'Number', value: 'number' },
|
|
5
|
+
{ label: 'Integer', value: 'integer' },
|
|
6
|
+
{ label: 'ID', value: 'idcard' },
|
|
7
|
+
{ label: 'Phone Number', value: 'phone' },
|
|
8
|
+
{ label: 'Currency', value: 'money' },
|
|
9
|
+
{ label: 'Chinese', value: 'zh' },
|
|
10
|
+
{ label: 'Date', value: 'date' },
|
|
11
|
+
{ label: 'Zip', value: 'zip' },
|
|
12
|
+
];
|
|
13
|
+
export default {
|
|
14
|
+
'en-US': {
|
|
15
|
+
settings: {
|
|
16
|
+
'x-validator': {
|
|
17
|
+
title: 'Validator',
|
|
18
|
+
addValidatorRules: 'Add Validator Rules',
|
|
19
|
+
drawer: 'Edit Rules',
|
|
20
|
+
triggerType: {
|
|
21
|
+
title: 'Trigger Type',
|
|
22
|
+
placeholder: 'Please Select',
|
|
23
|
+
dataSource: ['onInput', 'onFocus', 'onBlur'],
|
|
24
|
+
},
|
|
25
|
+
format: {
|
|
26
|
+
title: 'Format',
|
|
27
|
+
placeholder: 'Please Select',
|
|
28
|
+
dataSource: ValidatorFormats,
|
|
29
|
+
},
|
|
30
|
+
validator: {
|
|
31
|
+
title: 'Custom Validator',
|
|
32
|
+
tooltip: 'Format: function (value){ return "Error Message"}',
|
|
33
|
+
},
|
|
34
|
+
pattern: 'RegExp',
|
|
35
|
+
len: 'Length Limit',
|
|
36
|
+
max: 'Length/Value Lt',
|
|
37
|
+
min: 'Length/Value Gt',
|
|
38
|
+
exclusiveMaximum: 'Length/Value Lte',
|
|
39
|
+
exclusiveMinimum: 'Length/Value Gte',
|
|
40
|
+
whitespace: 'No Whitespace',
|
|
41
|
+
required: 'Required',
|
|
42
|
+
message: {
|
|
43
|
+
title: 'Error Message',
|
|
44
|
+
tooltip: 'The error message is only effective for one built-in rule of the current rule set. If you need to customize the error message for different built-in rules, please split into multiple rules',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
SettingComponents: {
|
|
49
|
+
DataSourceSetter: {
|
|
50
|
+
nodeProperty: 'Node Property',
|
|
51
|
+
pleaseSelectNode: 'please select node from the tree on the left',
|
|
52
|
+
addKeyValuePair: 'Add Key Value Pair',
|
|
53
|
+
configureDataSource: 'Configure',
|
|
54
|
+
dataSource: 'Options',
|
|
55
|
+
defaultTitle: 'Default Title',
|
|
56
|
+
dataSourceTree: 'Options Tree',
|
|
57
|
+
addNode: 'Add Node',
|
|
58
|
+
label: 'label',
|
|
59
|
+
value: 'value',
|
|
60
|
+
item: 'Item',
|
|
61
|
+
staticData: 'Static Data',
|
|
62
|
+
remoteData: 'Remote Data',
|
|
63
|
+
confirm: 'Confirm',
|
|
64
|
+
cancel: 'Cancel',
|
|
65
|
+
editConfigure: 'Edit Configure',
|
|
66
|
+
},
|
|
67
|
+
RemoteDataSource: {
|
|
68
|
+
basic: 'Basic',
|
|
69
|
+
url: 'Request URL',
|
|
70
|
+
method: 'Method',
|
|
71
|
+
headers: 'Headers',
|
|
72
|
+
params: 'Parameters',
|
|
73
|
+
handlers: 'Data Processing',
|
|
74
|
+
beforeRequest: 'Before Request',
|
|
75
|
+
dataHandler: 'Data Handler',
|
|
76
|
+
addHeader: 'Add Header',
|
|
77
|
+
addParam: 'Add Parameter',
|
|
78
|
+
},
|
|
79
|
+
ReactionsSetter: {
|
|
80
|
+
configureReactions: 'Configure',
|
|
81
|
+
relationsFields: 'Associated Fields',
|
|
82
|
+
variableName: 'Variable Name',
|
|
83
|
+
variableNameValidateMessage: 'This is not a standard variable name',
|
|
84
|
+
pleaseInput: 'Please Input',
|
|
85
|
+
sourceField: 'Source Field',
|
|
86
|
+
sourceProperty: 'Field Property',
|
|
87
|
+
variableType: 'Variable Type',
|
|
88
|
+
operations: 'Operations',
|
|
89
|
+
addRelationField: 'Add Associated Field',
|
|
90
|
+
propertyReactions: 'Property Reactions(Only Support Javascript Expression)',
|
|
91
|
+
actionReactions: 'Action Reactions(Optional, Support Javascript Statement)',
|
|
92
|
+
visible: 'Show/None',
|
|
93
|
+
hidden: 'Show/UI Hidden',
|
|
94
|
+
display: 'Display',
|
|
95
|
+
pattern: 'Pattern',
|
|
96
|
+
title: 'Title',
|
|
97
|
+
description: 'Description',
|
|
98
|
+
value: 'Value',
|
|
99
|
+
initialValue: 'InitialValue',
|
|
100
|
+
dataSource: 'Options',
|
|
101
|
+
required: 'Required',
|
|
102
|
+
component: 'Component',
|
|
103
|
+
componentProps: 'Component Props',
|
|
104
|
+
decorator: 'Decorator',
|
|
105
|
+
decoratorProps: 'Decorator Props',
|
|
106
|
+
pleaseSelect: 'Please Select',
|
|
107
|
+
expressionValueTypeIs: 'Expression value type is',
|
|
108
|
+
},
|
|
109
|
+
ValidatorSetter: {
|
|
110
|
+
pleaseSelect: 'Please Select',
|
|
111
|
+
formats: ValidatorFormats,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'ko-KR': {
|
|
3
|
+
settings: {
|
|
4
|
+
'x-validator': {
|
|
5
|
+
title: string;
|
|
6
|
+
addValidatorRules: string;
|
|
7
|
+
drawer: string;
|
|
8
|
+
triggerType: {
|
|
9
|
+
title: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
dataSource: string[];
|
|
12
|
+
};
|
|
13
|
+
format: {
|
|
14
|
+
title: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
dataSource: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
validator: {
|
|
22
|
+
title: string;
|
|
23
|
+
tooltip: string;
|
|
24
|
+
};
|
|
25
|
+
pattern: string;
|
|
26
|
+
len: string;
|
|
27
|
+
max: string;
|
|
28
|
+
min: string;
|
|
29
|
+
exclusiveMaximum: string;
|
|
30
|
+
exclusiveMinimum: string;
|
|
31
|
+
whitespace: string;
|
|
32
|
+
required: string;
|
|
33
|
+
message: {
|
|
34
|
+
title: string;
|
|
35
|
+
tooltip: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
SettingComponents: {
|
|
40
|
+
DataSourceSetter: {
|
|
41
|
+
nodeProperty: string;
|
|
42
|
+
pleaseSelectNode: string;
|
|
43
|
+
addKeyValuePair: string;
|
|
44
|
+
configureDataSource: string;
|
|
45
|
+
dataSource: string;
|
|
46
|
+
defaultTitle: string;
|
|
47
|
+
dataSourceTree: string;
|
|
48
|
+
addNode: string;
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
item: string;
|
|
52
|
+
staticData: string;
|
|
53
|
+
remoteData: string;
|
|
54
|
+
confirm: string;
|
|
55
|
+
cancel: string;
|
|
56
|
+
editConfigure: string;
|
|
57
|
+
};
|
|
58
|
+
RemoteDataSource: {
|
|
59
|
+
basic: string;
|
|
60
|
+
url: string;
|
|
61
|
+
method: string;
|
|
62
|
+
headers: string;
|
|
63
|
+
params: string;
|
|
64
|
+
handlers: string;
|
|
65
|
+
beforeRequest: string;
|
|
66
|
+
dataHandler: string;
|
|
67
|
+
addHeader: string;
|
|
68
|
+
addParam: string;
|
|
69
|
+
};
|
|
70
|
+
ReactionsSetter: {
|
|
71
|
+
configureReactions: string;
|
|
72
|
+
relationsFields: string;
|
|
73
|
+
variableName: string;
|
|
74
|
+
variableNameValidateMessage: string;
|
|
75
|
+
pleaseInput: string;
|
|
76
|
+
sourceField: string;
|
|
77
|
+
sourceProperty: string;
|
|
78
|
+
variableType: string;
|
|
79
|
+
operations: string;
|
|
80
|
+
addRelationField: string;
|
|
81
|
+
propertyReactions: string;
|
|
82
|
+
actionReactions: string;
|
|
83
|
+
visible: string;
|
|
84
|
+
hidden: string;
|
|
85
|
+
display: string;
|
|
86
|
+
pattern: string;
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
value: string;
|
|
90
|
+
initialValue: string;
|
|
91
|
+
dataSource: string;
|
|
92
|
+
required: string;
|
|
93
|
+
component: string;
|
|
94
|
+
componentProps: string;
|
|
95
|
+
decorator: string;
|
|
96
|
+
decoratorProps: string;
|
|
97
|
+
pleaseSelect: string;
|
|
98
|
+
expressionValueTypeIs: string;
|
|
99
|
+
};
|
|
100
|
+
ValidatorSetter: {
|
|
101
|
+
pleaseSelect: string;
|
|
102
|
+
formats: {
|
|
103
|
+
label: string;
|
|
104
|
+
value: string;
|
|
105
|
+
}[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const ValidatorFormats = [
|
|
2
|
+
{ label: 'URL', value: 'url' },
|
|
3
|
+
{ label: '이메일', value: 'email' },
|
|
4
|
+
{ label: '숫자', value: 'number' },
|
|
5
|
+
{ label: '상수', value: 'integer' },
|
|
6
|
+
{ label: 'ID', value: 'idcard' },
|
|
7
|
+
{ label: '휴대폰 번호', value: 'phone' },
|
|
8
|
+
{ label: '통화', value: 'money' },
|
|
9
|
+
{ label: '중국', value: 'zh' },
|
|
10
|
+
{ label: '날짜', value: 'date' },
|
|
11
|
+
{ label: 'Zip', value: 'zip' },
|
|
12
|
+
];
|
|
13
|
+
export default {
|
|
14
|
+
'ko-KR': {
|
|
15
|
+
settings: {
|
|
16
|
+
'x-validator': {
|
|
17
|
+
title: '유효성 검사 도구',
|
|
18
|
+
addValidatorRules: '유효성 검사 규칙 추가',
|
|
19
|
+
drawer: '규칙 수정',
|
|
20
|
+
triggerType: {
|
|
21
|
+
title: '트리거 타입',
|
|
22
|
+
placeholder: '선택하세요',
|
|
23
|
+
dataSource: ['onInput', 'onFocus', 'onBlur'],
|
|
24
|
+
},
|
|
25
|
+
format: {
|
|
26
|
+
title: '포맷',
|
|
27
|
+
placeholder: '선택하세요',
|
|
28
|
+
dataSource: ValidatorFormats,
|
|
29
|
+
},
|
|
30
|
+
validator: {
|
|
31
|
+
title: '사용자 정의 유효성 검사 도구',
|
|
32
|
+
tooltip: '형식: function (value){ return "Error Message"}',
|
|
33
|
+
},
|
|
34
|
+
pattern: 'RegExp',
|
|
35
|
+
len: '길이 제한',
|
|
36
|
+
max: '길이/값 Lt',
|
|
37
|
+
min: '길이/값 Gt',
|
|
38
|
+
exclusiveMaximum: '길이/값 Lte',
|
|
39
|
+
exclusiveMinimum: '길이/값 Gte',
|
|
40
|
+
whitespace: '공백 없음',
|
|
41
|
+
required: '필수 항목',
|
|
42
|
+
message: {
|
|
43
|
+
title: '오류 메시지',
|
|
44
|
+
tooltip: '오류 메시지는 현재의 규칙 셋의 하나의 빌트인 규칙에 대해서만 적용됩니다. 여러 빌트인 규칙에 대한 오류 메시지를 사용자 정의해야 하는 경우 여러 규칙으로 분할하세요.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
SettingComponents: {
|
|
49
|
+
DataSourceSetter: {
|
|
50
|
+
nodeProperty: '노드 속성',
|
|
51
|
+
pleaseSelectNode: '왼쪽에 있는 트리에서 노드를 선택하세요.',
|
|
52
|
+
addKeyValuePair: '키/값 쌍 추가',
|
|
53
|
+
configureDataSource: '구성',
|
|
54
|
+
dataSource: 'Options',
|
|
55
|
+
defaultTitle: '기본 제목',
|
|
56
|
+
dataSourceTree: 'Options 트리',
|
|
57
|
+
addNode: '노드 추가',
|
|
58
|
+
label: '레이블',
|
|
59
|
+
value: '값',
|
|
60
|
+
item: '아이템',
|
|
61
|
+
staticData: '정적 데이터',
|
|
62
|
+
remoteData: '원격 데이터',
|
|
63
|
+
confirm: '확인',
|
|
64
|
+
cancel: '취소',
|
|
65
|
+
editConfigure: '구성 수정',
|
|
66
|
+
},
|
|
67
|
+
RemoteDataSource: {
|
|
68
|
+
basic: '기본',
|
|
69
|
+
url: '요청 URL',
|
|
70
|
+
method: '방식',
|
|
71
|
+
headers: '헤더',
|
|
72
|
+
params: '매개변수',
|
|
73
|
+
handlers: '데이터 처리',
|
|
74
|
+
beforeRequest: '사전 요청 처리',
|
|
75
|
+
dataHandler: '데이터 핸들러',
|
|
76
|
+
addHeader: '헤더 추가',
|
|
77
|
+
addParam: '매개변수 추가',
|
|
78
|
+
},
|
|
79
|
+
ReactionsSetter: {
|
|
80
|
+
configureReactions: '구성',
|
|
81
|
+
relationsFields: '관련 필드',
|
|
82
|
+
variableName: '변수 이름',
|
|
83
|
+
variableNameValidateMessage: '표준 변수 이름이 아닙니다.',
|
|
84
|
+
pleaseInput: '입력해주세요',
|
|
85
|
+
sourceField: 'Source Field',
|
|
86
|
+
sourceProperty: '필드 속성',
|
|
87
|
+
variableType: '변수 타입',
|
|
88
|
+
operations: '작업',
|
|
89
|
+
addRelationField: '관련 필드 추가',
|
|
90
|
+
propertyReactions: '구성 리엑션(자바스크립트 표현식만 지원함)',
|
|
91
|
+
actionReactions: '액션 리엑션(선택사항, 자바스크립트 구문을 지원함)',
|
|
92
|
+
visible: '보기/없음',
|
|
93
|
+
hidden: '보기/UI 숨기기',
|
|
94
|
+
display: '디스플레이',
|
|
95
|
+
pattern: '패턴',
|
|
96
|
+
title: '제목',
|
|
97
|
+
description: '설명',
|
|
98
|
+
value: '값',
|
|
99
|
+
initialValue: '초기값',
|
|
100
|
+
dataSource: 'Options',
|
|
101
|
+
required: '필수 항목',
|
|
102
|
+
component: '컴포넌트',
|
|
103
|
+
componentProps: '컴포넌트 속성',
|
|
104
|
+
decorator: '테코레이터',
|
|
105
|
+
decoratorProps: '테코레이터 속성',
|
|
106
|
+
pleaseSelect: '선택하세요',
|
|
107
|
+
expressionValueTypeIs: '표현식 값 타입은',
|
|
108
|
+
},
|
|
109
|
+
ValidatorSetter: {
|
|
110
|
+
pleaseSelect: '선택하세요',
|
|
111
|
+
formats: ValidatorFormats,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|