@pisell/materials 1.0.483 → 1.0.484

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.
Files changed (45) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +5 -5
  6. package/build/lowcode/preview.js +3 -3
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +21 -21
  11. package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +2 -2
  12. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +197 -74
  13. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.js +4 -1
  14. package/es/components/dataSourceComponents/fields/Upload/index.less +6 -1
  15. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +1 -1
  16. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Upload/utils.js +203 -2
  18. package/es/components/dataSourceComponents/fields/index.d.ts +20 -20
  19. package/es/components/dataSourceComponents/fields/index.js +16 -16
  20. package/es/components/iconfont/index.js +1 -1
  21. package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +2 -2
  22. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +164 -50
  23. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.js +2 -1
  24. package/lib/components/dataSourceComponents/fields/Upload/index.less +6 -1
  25. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +1 -1
  26. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -0
  27. package/lib/components/dataSourceComponents/fields/Upload/utils.js +235 -2
  28. package/lib/components/dataSourceComponents/fields/index.d.ts +20 -20
  29. package/lib/components/dataSourceComponents/fields/index.js +16 -16
  30. package/lib/components/iconfont/index.js +1 -1
  31. package/lowcode/data-source-form/constants.ts +47 -0
  32. package/lowcode/data-source-form/meta.ts +2 -10
  33. package/lowcode/data-source-form/utils.ts +27 -4
  34. package/lowcode/data-source-table/utils.tsx +2 -2
  35. package/lowcode/form/meta.ts +0 -94
  36. package/lowcode/form-group/snippets.ts +1 -0
  37. package/lowcode/form-item-checkbox/snippets.ts +7 -2
  38. package/lowcode/form-item-color-picker/snippets.ts +1 -0
  39. package/lowcode/form-item-input.json/snippets.ts +1 -0
  40. package/lowcode/form-item-radio/snippets.ts +1 -0
  41. package/lowcode/form-item-upload/meta.ts +52 -30
  42. package/lowcode/form-item-upload/utils.ts +230 -0
  43. package/lowcode/submit-button/meta.ts +12 -0
  44. package/lowcode/submit-button/snippets.ts +1 -0
  45. package/package.json +1 -1
@@ -0,0 +1,230 @@
1
+
2
+ export const presetTypeData = [
3
+ {
4
+ title: '文档',
5
+ key: 'documents',
6
+ children: [
7
+ {
8
+ key: 'pdf',
9
+ title: 'PDF',
10
+ types: ['.pdf'],
11
+ color: 'red',
12
+ },
13
+ {
14
+ key: 'word',
15
+ title: 'Word文档',
16
+ types: ['.doc', '.docx'],
17
+ color: 'blueDark',
18
+ },
19
+ {
20
+ key: 'excel',
21
+ title: 'Excel工作簿',
22
+ types: ['.xls', '.xlsx'],
23
+ color: 'green600',
24
+ },
25
+ {
26
+ key: 'powerPoint',
27
+ title: 'PowerPoint演示文稿',
28
+ types: ['.ppt', '.pptx'],
29
+ color: 'orangeDark',
30
+ },
31
+ {
32
+ key: 'textFile',
33
+ title: '文本文件',
34
+ types: ['.txt'],
35
+ color: 'gray700',
36
+ },
37
+ {
38
+ key: 'richFile',
39
+ title: '富文本格式',
40
+ types: ['.rtf'],
41
+ color: 'gray500',
42
+ },
43
+ {
44
+ key: 'csv',
45
+ title: 'CSV',
46
+ types: ['.csv'],
47
+ color: 'green600',
48
+ },
49
+ ],
50
+ },
51
+ {
52
+ title: '图片',
53
+ key: 'images',
54
+ children: [
55
+ {
56
+ key: 'jpg',
57
+ title: 'JPG',
58
+ types: ['.jpg', '.jpeg'],
59
+ color: 'img',
60
+ },
61
+ {
62
+ key: 'png',
63
+ title: 'PNG',
64
+ types: ['.png'],
65
+ color: 'img',
66
+ },
67
+ {
68
+ key: 'gif',
69
+ title: 'GIF',
70
+ types: ['.gif'],
71
+ color: 'img',
72
+ },
73
+ {
74
+ key: 'bmp',
75
+ title: 'BMP',
76
+ types: ['.bmp'],
77
+ color: 'img',
78
+ },
79
+ {
80
+ key: 'tiff',
81
+ title: 'TIFF',
82
+ types: ['tif', '.tiff'],
83
+ color: 'img',
84
+ },
85
+ {
86
+ key: 'svg',
87
+ title: 'SVG',
88
+ types: ['.svg'],
89
+ color: 'img',
90
+ },
91
+ {
92
+ key: 'webp',
93
+ title: 'WEBP',
94
+ types: ['.webp'],
95
+ color: 'img',
96
+ },
97
+ ],
98
+ },
99
+ {
100
+ title: '音频',
101
+ key: 'audio',
102
+ children: [
103
+ {
104
+ key: 'mp3',
105
+ title: 'MP3',
106
+ types: ['.mp3'],
107
+ color: 'pink600',
108
+ },
109
+ {
110
+ key: 'wav',
111
+ title: 'WAV',
112
+ types: ['.wav'],
113
+ color: 'pink600',
114
+ },
115
+ {
116
+ key: 'flac',
117
+ title: 'FLAC',
118
+ color: 'pink600',
119
+ types: ['.flac'],
120
+ },
121
+ {
122
+ key: 'aac',
123
+ title: 'AAC',
124
+ color: 'pink600',
125
+ types: ['.aac', '.m4a'],
126
+ },
127
+ {
128
+ key: 'ogg',
129
+ title: 'OGG',
130
+ types: ['.ogg'],
131
+ color: 'pink600',
132
+ },
133
+ ],
134
+ },
135
+ {
136
+ title: '视频',
137
+ key: 'video',
138
+ children: [
139
+ {
140
+ key: 'mp4',
141
+ title: 'MP4',
142
+ types: ['.mp4'],
143
+ color: 'blueDark',
144
+ },
145
+ {
146
+ key: 'avi',
147
+ title: 'AVI',
148
+ types: ['.avi'],
149
+ color: 'blueDark',
150
+ },
151
+ {
152
+ key: 'mkv',
153
+ title: 'MKV',
154
+ types: ['.mkv'],
155
+ color: 'blueDark',
156
+ },
157
+ {
158
+ key: 'mov',
159
+ title: 'MOV',
160
+ types: ['.mov'],
161
+ color: 'blueDark',
162
+ },
163
+ {
164
+ key: 'wmv',
165
+ title: 'WMV',
166
+ types: ['.wmv'],
167
+ color: 'blueDark',
168
+ },
169
+ {
170
+ key: 'flv',
171
+ title: 'FLV',
172
+ types: ['.flv'],
173
+ color: 'blueDark',
174
+ },
175
+ ],
176
+ },
177
+ {
178
+ title: '压缩文件',
179
+ key: 'compressedFiles',
180
+ children: [
181
+ {
182
+ key: 'zip',
183
+ title: 'ZIP',
184
+ types: ['.zip'],
185
+ color: 'gray700',
186
+ },
187
+ {
188
+ key: 'rar',
189
+ title: 'RAR',
190
+ types: ['.rar'],
191
+ color: 'gray700',
192
+ },
193
+ {
194
+ key: '7z',
195
+ title: '7Z',
196
+ types: ['.7z'],
197
+ color: 'gray700',
198
+ },
199
+ {
200
+ key: 'tar',
201
+ title: 'TAR',
202
+ types: ['.tar'],
203
+ color: 'gray700',
204
+ },
205
+ {
206
+ key: 'gz',
207
+ title: 'GZ',
208
+ types: ['.gz'],
209
+ color: 'gray700',
210
+ },
211
+ ],
212
+ },
213
+ ];
214
+
215
+
216
+ export const presetTypeTreeData = presetTypeData.map((item) => {
217
+ return {
218
+ label: item.title,
219
+ key: item.key,
220
+ value: item.key,
221
+ children: item.children.map((i) => {
222
+ return {
223
+ label: `${i.title} (${i.types.join(',')})`,
224
+ key: i.key,
225
+ value: i.key,
226
+ };
227
+ }),
228
+ };
229
+ });
230
+
@@ -214,6 +214,7 @@ const SubmitButtonMeta: ComponentMetadata = {
214
214
  'zh-CN': '标题',
215
215
  },
216
216
  setter: ['PisellI18nSetter', 'VariableSetter'],
217
+ defaultValue: 'Confirm',
217
218
  },
218
219
  {
219
220
  name: 'content',
@@ -223,6 +224,7 @@ const SubmitButtonMeta: ComponentMetadata = {
223
224
  'zh-CN': '辅助文字',
224
225
  },
225
226
  setter: ['PisellI18nSetter', 'VariableSetter'],
227
+ defaultValue: 'Are you sure you want to submit the form?',
226
228
  },
227
229
  {
228
230
  name: 'cancelText',
@@ -232,6 +234,7 @@ const SubmitButtonMeta: ComponentMetadata = {
232
234
  'zh-CN': '取消按钮文字',
233
235
  },
234
236
  setter: ['PisellI18nSetter', 'VariableSetter'],
237
+ defaultValue: 'Cancel',
235
238
  },
236
239
  {
237
240
  name: 'okText',
@@ -241,6 +244,7 @@ const SubmitButtonMeta: ComponentMetadata = {
241
244
  'zh-CN': '确定按钮文字',
242
245
  },
243
246
  setter: ['PisellI18nSetter', 'VariableSetter'],
247
+ defaultValue: 'Confirm',
244
248
  },
245
249
  ],
246
250
  },
@@ -319,6 +323,7 @@ const SubmitButtonMeta: ComponentMetadata = {
319
323
  'zh-CN': '文字',
320
324
  },
321
325
  setter: ['PisellI18nSetter', 'VariableSetter'],
326
+ defaultValue: 'Submitted successfully',
322
327
  },
323
328
  ],
324
329
  },
@@ -393,6 +398,7 @@ const SubmitButtonMeta: ComponentMetadata = {
393
398
  'zh-CN': '标题',
394
399
  },
395
400
  setter: 'PisellI18nSetter',
401
+ defaultValue: 'Submitted successfully',
396
402
  },
397
403
  {
398
404
  name: 'afterSubmitModalConfig.content',
@@ -402,6 +408,7 @@ const SubmitButtonMeta: ComponentMetadata = {
402
408
  'zh-CN': '内容',
403
409
  },
404
410
  setter: 'PisellI18nSetter',
411
+ defaultValue: 'Your submission has been successfully completed.',
405
412
  },
406
413
  {
407
414
  name: 'afterSubmitModalConfig.okText',
@@ -411,6 +418,7 @@ const SubmitButtonMeta: ComponentMetadata = {
411
418
  'zh-CN': '按钮文字',
412
419
  },
413
420
  setter: 'PisellI18nSetter',
421
+ defaultValue: 'OK',
414
422
  },
415
423
  ],
416
424
  },
@@ -463,6 +471,7 @@ const SubmitButtonMeta: ComponentMetadata = {
463
471
  'zh-CN': '文字',
464
472
  },
465
473
  setter: 'PisellI18nSetter',
474
+ defaultValue: 'Submitted successfully',
466
475
  },
467
476
  {
468
477
  name: 'afterSubmitNotificationConfig.content',
@@ -472,6 +481,7 @@ const SubmitButtonMeta: ComponentMetadata = {
472
481
  'zh-CN': '消息',
473
482
  },
474
483
  setter: 'PisellI18nSetter',
484
+ defaultValue: 'Your submission has been successfully completed.',
475
485
  },
476
486
  {
477
487
  name: 'afterSubmitNotificationConfig.placement',
@@ -511,6 +521,7 @@ const SubmitButtonMeta: ComponentMetadata = {
511
521
  ],
512
522
  },
513
523
  },
524
+ defaultValue: 'top',
514
525
  },
515
526
  {
516
527
  name: 'afterSubmitNotificationConfig.duration',
@@ -520,6 +531,7 @@ const SubmitButtonMeta: ComponentMetadata = {
520
531
  'zh-CN': '持续时间',
521
532
  },
522
533
  setter: 'NumberSetter',
534
+ defaultValue: 4.5,
523
535
  },
524
536
  ],
525
537
  },
@@ -2,6 +2,7 @@ export default [
2
2
  {
3
3
  title: '提交按钮',
4
4
  schema: {
5
+ title: '提交按钮',
5
6
  componentName: 'SubmitButton',
6
7
  props: {
7
8
  type: 'primary',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.483",
3
+ "version": "1.0.484",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",