@pisell/materials 1.0.594 → 1.0.596
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.js +20 -34
- package/build/lowcode/view.js +19 -33
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +116 -38
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +75 -30
- package/es/components/dataSourceComponents/fields/Input.Mobile/index.js +11 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +73 -19
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +112 -54
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.js +2 -2
- package/es/components/dataSourceComponents/fields/index.d.ts +4 -2
- package/es/components/form/index.js +12 -0
- package/es/locales/en-US.d.ts +9 -0
- package/es/locales/en-US.js +11 -1
- package/es/locales/zh-CN.d.ts +8 -0
- package/es/locales/zh-CN.js +11 -2
- package/es/locales/zh-TW.d.ts +7 -0
- package/es/locales/zh-TW.js +9 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +143 -41
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +31 -26
- package/lib/components/dataSourceComponents/fields/Input.Mobile/index.js +11 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +34 -17
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +53 -31
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +4 -2
- package/lib/components/form/index.js +10 -1
- package/lib/locales/en-US.d.ts +9 -0
- package/lib/locales/en-US.js +11 -1
- package/lib/locales/zh-CN.d.ts +8 -0
- package/lib/locales/zh-CN.js +11 -2
- package/lib/locales/zh-TW.d.ts +7 -0
- package/lib/locales/zh-TW.js +9 -1
- package/lowcode/_utils/defaultSchema.ts +11 -0
- package/lowcode/form-item-input.mobile/meta.ts +30 -54
- package/lowcode/form-item-input.mobile/snippets.ts +1 -1
- package/lowcode/form-item-input.phone/meta.ts +1 -49
- package/lowcode/form-item-input.subdomain/meta.ts +0 -2
- package/lowcode/form-item-input.subdomain/snippets.ts +8 -9
- package/lowcode/form.item/meta.ts +48 -0
- package/package.json +1 -1
|
@@ -52,55 +52,7 @@ export default {
|
|
|
52
52
|
]),
|
|
53
53
|
getFormItemValidateGroup([
|
|
54
54
|
generalItemMap['requiredobj'],
|
|
55
|
-
|
|
56
|
-
name: 'typeobj',
|
|
57
|
-
title: {
|
|
58
|
-
label: {
|
|
59
|
-
type: 'i18n',
|
|
60
|
-
'en-US': 'Enable validation',
|
|
61
|
-
'zh-CN': '开启验证',
|
|
62
|
-
},
|
|
63
|
-
tip: '开启验证',
|
|
64
|
-
},
|
|
65
|
-
setter: {
|
|
66
|
-
componentName: 'ObjectSetter',
|
|
67
|
-
props: {
|
|
68
|
-
config: {
|
|
69
|
-
items: [
|
|
70
|
-
{
|
|
71
|
-
name: 'enabled',
|
|
72
|
-
title: {
|
|
73
|
-
type: 'i18n',
|
|
74
|
-
'en-US': 'Enabled',
|
|
75
|
-
'zh-CN': '是否启用',
|
|
76
|
-
},
|
|
77
|
-
propType: 'bool',
|
|
78
|
-
setter: 'BoolSetter',
|
|
79
|
-
isRequired: true,
|
|
80
|
-
extraProps: {
|
|
81
|
-
setValue: (target: any, value: any) => {
|
|
82
|
-
return target.parent.setPropValue('type', 'phone');
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'message',
|
|
88
|
-
title: {
|
|
89
|
-
type: 'i18n',
|
|
90
|
-
'en-US': 'Error message',
|
|
91
|
-
'zh-CN': '错误信息提示',
|
|
92
|
-
},
|
|
93
|
-
propType: 'string',
|
|
94
|
-
setter: 'PisellI18nSetter',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
columns: 1,
|
|
99
|
-
forceInline: 1,
|
|
100
|
-
mode: 'popup',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
55
|
+
generalItemMap['typeobj'],
|
|
104
56
|
]),
|
|
105
57
|
],
|
|
106
58
|
props: [
|
|
@@ -150,11 +102,6 @@ export default {
|
|
|
150
102
|
defaultValue: '请输入',
|
|
151
103
|
setter: 'PisellI18nSetter',
|
|
152
104
|
},
|
|
153
|
-
// {
|
|
154
|
-
// name: 'id',
|
|
155
|
-
// title: { label: '输入框ID', tip: '输入框的ID' },
|
|
156
|
-
// propType: 'string',
|
|
157
|
-
// },
|
|
158
105
|
{
|
|
159
106
|
name: 'maxLength',
|
|
160
107
|
title: { label: '最大长度', tip: '最大长度' },
|
|
@@ -255,6 +202,35 @@ export default {
|
|
|
255
202
|
title: { label: '按下清除按钮的回调', tip: '按下清除按钮的回调' },
|
|
256
203
|
propType: 'func',
|
|
257
204
|
},
|
|
205
|
+
{
|
|
206
|
+
name: 'typeobj',
|
|
207
|
+
title: '验证规则',
|
|
208
|
+
setter: {
|
|
209
|
+
componentName: 'ObjectSetter',
|
|
210
|
+
props: {
|
|
211
|
+
config: {
|
|
212
|
+
items: [
|
|
213
|
+
{
|
|
214
|
+
name: 'type',
|
|
215
|
+
title: '类型',
|
|
216
|
+
setter: {
|
|
217
|
+
componentName: 'StringSetter',
|
|
218
|
+
initialValue: 'mobile'
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'enabled',
|
|
223
|
+
title: '启用',
|
|
224
|
+
setter: {
|
|
225
|
+
componentName: 'BoolSetter',
|
|
226
|
+
initialValue: true
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
258
234
|
],
|
|
259
235
|
configure: {
|
|
260
236
|
supports: {
|
|
@@ -52,55 +52,7 @@ export default {
|
|
|
52
52
|
]),
|
|
53
53
|
getFormItemValidateGroup([
|
|
54
54
|
generalItemMap['requiredobj'],
|
|
55
|
-
|
|
56
|
-
name: 'typeobj',
|
|
57
|
-
title: {
|
|
58
|
-
label: {
|
|
59
|
-
type: 'i18n',
|
|
60
|
-
'en-US': 'Enable validation',
|
|
61
|
-
'zh-CN': '开启验证',
|
|
62
|
-
},
|
|
63
|
-
tip: '开启验证',
|
|
64
|
-
},
|
|
65
|
-
setter: {
|
|
66
|
-
componentName: 'ObjectSetter',
|
|
67
|
-
props: {
|
|
68
|
-
config: {
|
|
69
|
-
items: [
|
|
70
|
-
{
|
|
71
|
-
name: 'enabled',
|
|
72
|
-
title: {
|
|
73
|
-
type: 'i18n',
|
|
74
|
-
'en-US': 'Enabled',
|
|
75
|
-
'zh-CN': '是否启用',
|
|
76
|
-
},
|
|
77
|
-
propType: 'bool',
|
|
78
|
-
setter: 'BoolSetter',
|
|
79
|
-
isRequired: true,
|
|
80
|
-
extraProps: {
|
|
81
|
-
setValue: (target: any, value: any) => {
|
|
82
|
-
return target.parent.setPropValue('type', 'phone');
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'message',
|
|
88
|
-
title: {
|
|
89
|
-
type: 'i18n',
|
|
90
|
-
'en-US': 'Error message',
|
|
91
|
-
'zh-CN': '错误信息提示',
|
|
92
|
-
},
|
|
93
|
-
propType: 'string',
|
|
94
|
-
setter: 'PisellI18nSetter',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
columns: 1,
|
|
99
|
-
forceInline: 1,
|
|
100
|
-
mode: 'popup',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
55
|
+
generalItemMap['typeobj'],
|
|
104
56
|
]),
|
|
105
57
|
],
|
|
106
58
|
props: [
|
|
@@ -10,16 +10,15 @@ export default [
|
|
|
10
10
|
props: {
|
|
11
11
|
placeholder: inputPlaceholder,
|
|
12
12
|
rootDomain:'xzero',
|
|
13
|
+
extra: {
|
|
14
|
+
type: 'i18n',
|
|
15
|
+
en: 'Can only contain lowercase letters (a-z), numbers (0-9) and hyphens (-) ',
|
|
16
|
+
'zh-CN': '只能使用小写字母(a-z)、数字(0-9)和连字符(-) ',
|
|
17
|
+
'zh-HK': '只能使用小寫字母(a-z)、數字(0-9)和連字符(-) ',
|
|
18
|
+
},
|
|
13
19
|
typeobj: {
|
|
14
|
-
type: '
|
|
15
|
-
|
|
16
|
-
message:
|
|
17
|
-
{
|
|
18
|
-
type: 'i18n',
|
|
19
|
-
en: 'Please enter a valid domain name',
|
|
20
|
-
'zh-CN': '请输入正确的域名',
|
|
21
|
-
},
|
|
22
|
-
enabled: false,
|
|
20
|
+
type: 'subdomain',
|
|
21
|
+
enabled: true,
|
|
23
22
|
},
|
|
24
23
|
allowClear: true,
|
|
25
24
|
},
|
|
@@ -397,6 +397,54 @@ export default {
|
|
|
397
397
|
],
|
|
398
398
|
},
|
|
399
399
|
},
|
|
400
|
+
{
|
|
401
|
+
name: 'subdomainobj',
|
|
402
|
+
title: { label: '子域名校验设置', tip: '子域名校验设置' },
|
|
403
|
+
propType: {
|
|
404
|
+
type: 'shape',
|
|
405
|
+
value: [
|
|
406
|
+
{ name: 'subdomain', title: '子域名校验设置', propType: 'string' },
|
|
407
|
+
{
|
|
408
|
+
name: 'message',
|
|
409
|
+
title: '错误信息提示',
|
|
410
|
+
propType: 'string',
|
|
411
|
+
setter: 'PisellI18nSetter',
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: 'phoneobj',
|
|
418
|
+
title: { label: '电话号码校验设置', tip: '电话号码校验设置' },
|
|
419
|
+
propType: {
|
|
420
|
+
type: 'shape',
|
|
421
|
+
value: [
|
|
422
|
+
{ name: 'phone', title: '电话号码校验设置', propType: 'string' },
|
|
423
|
+
{
|
|
424
|
+
name: 'message',
|
|
425
|
+
title: '错误信息提示',
|
|
426
|
+
propType: 'string',
|
|
427
|
+
setter: 'PisellI18nSetter',
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: 'mobileobj',
|
|
434
|
+
title: { label: '手机号码校验设置', tip: '手机号码校验设置' },
|
|
435
|
+
propType: {
|
|
436
|
+
type: 'shape',
|
|
437
|
+
value: [
|
|
438
|
+
{ name: 'mobile', title: '手机号码校验设置', propType: 'string' },
|
|
439
|
+
{
|
|
440
|
+
name: 'message',
|
|
441
|
+
title: '错误信息提示',
|
|
442
|
+
propType: 'string',
|
|
443
|
+
setter: 'PisellI18nSetter',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
},
|
|
400
448
|
{
|
|
401
449
|
name: 'validator',
|
|
402
450
|
title: {
|