@next-bricks/form 1.21.0 → 1.21.2

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 (57) hide show
  1. package/dist/bricks.json +13 -13
  2. package/dist/chunks/{2537.2685eef9.js → 2537.5bbad3eb.js} +2 -2
  3. package/dist/chunks/{2537.2685eef9.js.map → 2537.5bbad3eb.js.map} +1 -1
  4. package/dist/chunks/948.cb41e9a8.js +3 -0
  5. package/dist/chunks/948.cb41e9a8.js.map +1 -0
  6. package/dist/chunks/9949.c6f285e9.js +3 -0
  7. package/dist/chunks/{9949.71f55989.js.map → 9949.c6f285e9.js.map} +1 -1
  8. package/dist/chunks/eo-color-picker.c3b11b2f.js +2 -0
  9. package/dist/chunks/{eo-color-picker.54917de5.js.map → eo-color-picker.c3b11b2f.js.map} +1 -1
  10. package/dist/chunks/{eo-date-picker.de3d71ec.js → eo-date-picker.f5894c3c.js} +2 -2
  11. package/dist/chunks/{eo-date-picker.de3d71ec.js.map → eo-date-picker.f5894c3c.js.map} +1 -1
  12. package/dist/chunks/{eo-dynamic-form-item.a7986792.js → eo-dynamic-form-item.3837c24e.js} +3 -3
  13. package/dist/chunks/{eo-dynamic-form-item.a7986792.js.map → eo-dynamic-form-item.3837c24e.js.map} +1 -1
  14. package/dist/chunks/eo-radio.f2527bfa.js +3 -0
  15. package/dist/chunks/eo-radio.f2527bfa.js.map +1 -0
  16. package/dist/chunks/eo-select.78631f61.js +3 -0
  17. package/dist/chunks/{eo-select.74d14ea1.js.map → eo-select.78631f61.js.map} +1 -1
  18. package/dist/chunks/eo-time-picker.da156d88.js +2 -0
  19. package/dist/chunks/{eo-time-picker.fbf550b1.js.map → eo-time-picker.da156d88.js.map} +1 -1
  20. package/dist/chunks/eo-time-range-picker.15864724.js +2 -0
  21. package/dist/chunks/{eo-time-range-picker.55d5baf8.js.map → eo-time-range-picker.15864724.js.map} +1 -1
  22. package/dist/chunks/eo-upload-file.8e5acc0f.js +3 -0
  23. package/dist/chunks/{eo-upload-file.8028c3f7.js.map → eo-upload-file.8e5acc0f.js.map} +1 -1
  24. package/dist/chunks/{eo-upload-image.b9a57757.js → eo-upload-image.1ae9beb3.js} +3 -3
  25. package/dist/chunks/{eo-upload-image.b9a57757.js.map → eo-upload-image.1ae9beb3.js.map} +1 -1
  26. package/dist/chunks/main.d9bd5b6f.js +2 -0
  27. package/dist/chunks/{main.bc363d85.js.map → main.d9bd5b6f.js.map} +1 -1
  28. package/dist/chunks/{react.ce8f3302.js → react.2bcc835d.js} +2 -2
  29. package/dist/examples.json +6 -6
  30. package/dist/index.64a9544d.js +2 -0
  31. package/dist/index.64a9544d.js.map +1 -0
  32. package/dist/manifest.json +252 -252
  33. package/dist/types.json +2222 -2222
  34. package/dist-types/jsx.d.ts +129 -0
  35. package/dist-types/radio/index.d.ts +1 -0
  36. package/package.json +5 -3
  37. package/dist/chunks/948.efc87221.js +0 -3
  38. package/dist/chunks/948.efc87221.js.map +0 -1
  39. package/dist/chunks/9949.71f55989.js +0 -3
  40. package/dist/chunks/eo-color-picker.54917de5.js +0 -2
  41. package/dist/chunks/eo-radio.b3c33ffc.js +0 -3
  42. package/dist/chunks/eo-radio.b3c33ffc.js.map +0 -1
  43. package/dist/chunks/eo-select.74d14ea1.js +0 -3
  44. package/dist/chunks/eo-time-picker.fbf550b1.js +0 -2
  45. package/dist/chunks/eo-time-range-picker.55d5baf8.js +0 -2
  46. package/dist/chunks/eo-upload-file.8028c3f7.js +0 -3
  47. package/dist/chunks/main.bc363d85.js +0 -2
  48. package/dist/index.717303f7.js +0 -2
  49. package/dist/index.717303f7.js.map +0 -1
  50. /package/dist/chunks/{948.efc87221.js.LICENSE.txt → 948.cb41e9a8.js.LICENSE.txt} +0 -0
  51. /package/dist/chunks/{9949.71f55989.js.LICENSE.txt → 9949.c6f285e9.js.LICENSE.txt} +0 -0
  52. /package/dist/chunks/{eo-dynamic-form-item.a7986792.js.LICENSE.txt → eo-dynamic-form-item.3837c24e.js.LICENSE.txt} +0 -0
  53. /package/dist/chunks/{eo-radio.b3c33ffc.js.LICENSE.txt → eo-radio.f2527bfa.js.LICENSE.txt} +0 -0
  54. /package/dist/chunks/{eo-select.74d14ea1.js.LICENSE.txt → eo-select.78631f61.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{eo-upload-file.8028c3f7.js.LICENSE.txt → eo-upload-file.8e5acc0f.js.LICENSE.txt} +0 -0
  56. /package/dist/chunks/{eo-upload-image.b9a57757.js.LICENSE.txt → eo-upload-image.1ae9beb3.js.LICENSE.txt} +0 -0
  57. /package/dist/chunks/{react.ce8f3302.js.LICENSE.txt → react.2bcc835d.js.LICENSE.txt} +0 -0
@@ -3,258 +3,6 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
- {
7
- "name": "eo-form",
8
- "alias": [
9
- "form.general-form"
10
- ],
11
- "properties": [
12
- {
13
- "name": "staticValues",
14
- "attribute": false,
15
- "type": "Record<string, unknown>"
16
- },
17
- {
18
- "name": "layout",
19
- "description": "布局方式(默认 vertical 布局)",
20
- "default": "vertical",
21
- "type": "Layout"
22
- },
23
- {
24
- "name": "size",
25
- "description": "表单组件尺寸",
26
- "type": "ComponentSize"
27
- },
28
- {
29
- "name": "labelCol",
30
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
31
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
32
- "attribute": false,
33
- "type": "ColProps"
34
- },
35
- {
36
- "name": "wrapperCol",
37
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
38
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
39
- "attribute": false,
40
- "type": "ColProps"
41
- },
42
- {
43
- "name": "autoScrollToInvalidFields",
44
- "type": "boolean"
45
- },
46
- {
47
- "name": "formStyle",
48
- "attribute": false,
49
- "type": "React.CSSProperties"
50
- },
51
- {
52
- "name": "textContent",
53
- "type": "string",
54
- "description": "文本内容"
55
- }
56
- ],
57
- "events": [
58
- {
59
- "name": "values.change",
60
- "description": "表单值变更事件",
61
- "detail": {
62
- "description": null,
63
- "type": "Record<string, unknown>"
64
- }
65
- },
66
- {
67
- "name": "validate.success",
68
- "description": "表单验证成功时触发事件",
69
- "detail": {
70
- "type": "Record<string, unknown>"
71
- }
72
- },
73
- {
74
- "name": "validate.error",
75
- "description": "表单验证报错时触发事件",
76
- "detail": {
77
- "type": "(MessageBody & { name: string })[]"
78
- }
79
- }
80
- ],
81
- "slots": [
82
- {
83
- "name": null,
84
- "description": "表单内容"
85
- }
86
- ],
87
- "methods": [
88
- {
89
- "name": "validate",
90
- "params": [],
91
- "description": "表单校验方法",
92
- "returns": {
93
- "type": "boolean | Record<string, unknown>"
94
- }
95
- },
96
- {
97
- "name": "setInitValue",
98
- "params": [
99
- {
100
- "name": "values",
101
- "type": "Record<string, unknown>"
102
- },
103
- {
104
- "name": "options",
105
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
106
- }
107
- ],
108
- "description": "表单设置值方法",
109
- "returns": {}
110
- },
111
- {
112
- "name": "resetFields",
113
- "params": [
114
- {
115
- "name": "name",
116
- "type": "string"
117
- }
118
- ],
119
- "description": "表单重置值方法",
120
- "returns": {}
121
- },
122
- {
123
- "name": "getFieldsValue",
124
- "params": [
125
- {
126
- "name": "name",
127
- "type": "string"
128
- }
129
- ],
130
- "description": "获取表单值方法",
131
- "returns": {}
132
- },
133
- {
134
- "name": "validateField",
135
- "params": [
136
- {
137
- "name": "name",
138
- "type": "string"
139
- }
140
- ],
141
- "description": "校验表单字段方法",
142
- "returns": {}
143
- },
144
- {
145
- "name": "resetValidateState",
146
- "params": [],
147
- "description": "重置表单校验状态方法",
148
- "returns": {}
149
- }
150
- ],
151
- "parts": [],
152
- "description": "表单构件",
153
- "category": "form-input-basic"
154
- },
155
- {
156
- "name": "eo-radio",
157
- "alias": [
158
- "form.general-radio"
159
- ],
160
- "properties": [
161
- {
162
- "name": "name",
163
- "description": "下拉框字段名",
164
- "type": "string"
165
- },
166
- {
167
- "name": "label",
168
- "description": "单选框字段说明",
169
- "type": "string"
170
- },
171
- {
172
- "name": "options",
173
- "description": "单选框选项表",
174
- "required": true,
175
- "attribute": false,
176
- "type": "GeneralOption[]"
177
- },
178
- {
179
- "name": "value",
180
- "description": "单选框当前选中始值",
181
- "attribute": false,
182
- "type": "any"
183
- },
184
- {
185
- "name": "required",
186
- "description": "是否必填",
187
- "type": "boolean"
188
- },
189
- {
190
- "name": "message",
191
- "description": "校验文本信息",
192
- "attribute": false,
193
- "type": "Record<string, string>"
194
- },
195
- {
196
- "name": "disabled",
197
- "description": "是否禁用",
198
- "type": "boolean"
199
- },
200
- {
201
- "name": "type",
202
- "description": "单选框样式类型",
203
- "default": "\"default\"",
204
- "type": "RadioType"
205
- },
206
- {
207
- "name": "ui",
208
- "description": "UI样式",
209
- "default": "\"default\"",
210
- "type": "UIType"
211
- },
212
- {
213
- "name": "size",
214
- "description": "大小,只对按钮样式生效",
215
- "default": "\"medium\"",
216
- "type": "ComponentSize"
217
- },
218
- {
219
- "name": "customStyle",
220
- "description": "自定义radio的外层样式",
221
- "attribute": false,
222
- "type": "React.CSSProperties"
223
- },
224
- {
225
- "name": "useBrick",
226
- "description": "自定义radio的内容",
227
- "attribute": false,
228
- "type": "UseSingleBrickConf"
229
- },
230
- {
231
- "name": "themeVariant",
232
- "description": "主题变体",
233
- "type": "\"default\" | \"elevo\""
234
- }
235
- ],
236
- "events": [
237
- {
238
- "name": "change",
239
- "description": "值变化事件",
240
- "detail": {
241
- "type": "GeneralComplexOption | undefined"
242
- }
243
- },
244
- {
245
- "name": "options.change",
246
- "description": "选项列表变化事件",
247
- "detail": {
248
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
249
- }
250
- }
251
- ],
252
- "slots": [],
253
- "methods": [],
254
- "parts": [],
255
- "description": "通用单选构件",
256
- "category": "form-input-basic"
257
- },
258
6
  {
259
7
  "name": "eo-textarea",
260
8
  "alias": [
@@ -1354,6 +1102,155 @@
1354
1102
  "description": "时间选择器",
1355
1103
  "category": "form-input-basic"
1356
1104
  },
1105
+ {
1106
+ "name": "eo-form",
1107
+ "alias": [
1108
+ "form.general-form"
1109
+ ],
1110
+ "properties": [
1111
+ {
1112
+ "name": "staticValues",
1113
+ "attribute": false,
1114
+ "type": "Record<string, unknown>"
1115
+ },
1116
+ {
1117
+ "name": "layout",
1118
+ "description": "布局方式(默认 vertical 布局)",
1119
+ "default": "vertical",
1120
+ "type": "Layout"
1121
+ },
1122
+ {
1123
+ "name": "size",
1124
+ "description": "表单组件尺寸",
1125
+ "type": "ComponentSize"
1126
+ },
1127
+ {
1128
+ "name": "labelCol",
1129
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
1130
+ "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
1131
+ "attribute": false,
1132
+ "type": "ColProps"
1133
+ },
1134
+ {
1135
+ "name": "wrapperCol",
1136
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
1137
+ "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
1138
+ "attribute": false,
1139
+ "type": "ColProps"
1140
+ },
1141
+ {
1142
+ "name": "autoScrollToInvalidFields",
1143
+ "type": "boolean"
1144
+ },
1145
+ {
1146
+ "name": "formStyle",
1147
+ "attribute": false,
1148
+ "type": "React.CSSProperties"
1149
+ },
1150
+ {
1151
+ "name": "textContent",
1152
+ "type": "string",
1153
+ "description": "文本内容"
1154
+ }
1155
+ ],
1156
+ "events": [
1157
+ {
1158
+ "name": "values.change",
1159
+ "description": "表单值变更事件",
1160
+ "detail": {
1161
+ "description": null,
1162
+ "type": "Record<string, unknown>"
1163
+ }
1164
+ },
1165
+ {
1166
+ "name": "validate.success",
1167
+ "description": "表单验证成功时触发事件",
1168
+ "detail": {
1169
+ "type": "Record<string, unknown>"
1170
+ }
1171
+ },
1172
+ {
1173
+ "name": "validate.error",
1174
+ "description": "表单验证报错时触发事件",
1175
+ "detail": {
1176
+ "type": "(MessageBody & { name: string })[]"
1177
+ }
1178
+ }
1179
+ ],
1180
+ "slots": [
1181
+ {
1182
+ "name": null,
1183
+ "description": "表单内容"
1184
+ }
1185
+ ],
1186
+ "methods": [
1187
+ {
1188
+ "name": "validate",
1189
+ "params": [],
1190
+ "description": "表单校验方法",
1191
+ "returns": {
1192
+ "type": "boolean | Record<string, unknown>"
1193
+ }
1194
+ },
1195
+ {
1196
+ "name": "setInitValue",
1197
+ "params": [
1198
+ {
1199
+ "name": "values",
1200
+ "type": "Record<string, unknown>"
1201
+ },
1202
+ {
1203
+ "name": "options",
1204
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
1205
+ }
1206
+ ],
1207
+ "description": "表单设置值方法",
1208
+ "returns": {}
1209
+ },
1210
+ {
1211
+ "name": "resetFields",
1212
+ "params": [
1213
+ {
1214
+ "name": "name",
1215
+ "type": "string"
1216
+ }
1217
+ ],
1218
+ "description": "表单重置值方法",
1219
+ "returns": {}
1220
+ },
1221
+ {
1222
+ "name": "getFieldsValue",
1223
+ "params": [
1224
+ {
1225
+ "name": "name",
1226
+ "type": "string"
1227
+ }
1228
+ ],
1229
+ "description": "获取表单值方法",
1230
+ "returns": {}
1231
+ },
1232
+ {
1233
+ "name": "validateField",
1234
+ "params": [
1235
+ {
1236
+ "name": "name",
1237
+ "type": "string"
1238
+ }
1239
+ ],
1240
+ "description": "校验表单字段方法",
1241
+ "returns": {}
1242
+ },
1243
+ {
1244
+ "name": "resetValidateState",
1245
+ "params": [],
1246
+ "description": "重置表单校验状态方法",
1247
+ "returns": {}
1248
+ }
1249
+ ],
1250
+ "parts": [],
1251
+ "description": "表单构件",
1252
+ "category": "form-input-basic"
1253
+ },
1357
1254
  {
1358
1255
  "name": "eo-date-picker",
1359
1256
  "properties": [
@@ -1536,6 +1433,109 @@
1536
1433
  "description": "时间区间选择器",
1537
1434
  "category": "form-input-basic"
1538
1435
  },
1436
+ {
1437
+ "name": "eo-radio",
1438
+ "alias": [
1439
+ "form.general-radio"
1440
+ ],
1441
+ "properties": [
1442
+ {
1443
+ "name": "name",
1444
+ "description": "下拉框字段名",
1445
+ "type": "string"
1446
+ },
1447
+ {
1448
+ "name": "label",
1449
+ "description": "单选框字段说明",
1450
+ "type": "string"
1451
+ },
1452
+ {
1453
+ "name": "options",
1454
+ "description": "单选框选项表",
1455
+ "required": true,
1456
+ "attribute": false,
1457
+ "type": "GeneralOption[]"
1458
+ },
1459
+ {
1460
+ "name": "value",
1461
+ "description": "单选框当前选中始值",
1462
+ "attribute": false,
1463
+ "type": "any"
1464
+ },
1465
+ {
1466
+ "name": "required",
1467
+ "description": "是否必填",
1468
+ "type": "boolean"
1469
+ },
1470
+ {
1471
+ "name": "message",
1472
+ "description": "校验文本信息",
1473
+ "attribute": false,
1474
+ "type": "Record<string, string>"
1475
+ },
1476
+ {
1477
+ "name": "disabled",
1478
+ "description": "是否禁用",
1479
+ "type": "boolean"
1480
+ },
1481
+ {
1482
+ "name": "type",
1483
+ "description": "单选框样式类型",
1484
+ "default": "\"default\"",
1485
+ "type": "RadioType"
1486
+ },
1487
+ {
1488
+ "name": "ui",
1489
+ "description": "UI样式",
1490
+ "default": "\"default\"",
1491
+ "type": "UIType"
1492
+ },
1493
+ {
1494
+ "name": "size",
1495
+ "description": "大小,只对按钮样式生效",
1496
+ "default": "\"medium\"",
1497
+ "type": "ComponentSize"
1498
+ },
1499
+ {
1500
+ "name": "customStyle",
1501
+ "description": "自定义radio的外层样式",
1502
+ "attribute": false,
1503
+ "type": "React.CSSProperties"
1504
+ },
1505
+ {
1506
+ "name": "useBrick",
1507
+ "description": "自定义radio的内容",
1508
+ "attribute": false,
1509
+ "type": "UseSingleBrickConf"
1510
+ },
1511
+ {
1512
+ "name": "themeVariant",
1513
+ "description": "主题变体",
1514
+ "type": "\"default\" | \"elevo\""
1515
+ }
1516
+ ],
1517
+ "events": [
1518
+ {
1519
+ "name": "change",
1520
+ "description": "值变化事件",
1521
+ "detail": {
1522
+ "type": "GeneralComplexOption | undefined"
1523
+ }
1524
+ },
1525
+ {
1526
+ "name": "options.change",
1527
+ "description": "选项列表变化事件",
1528
+ "detail": {
1529
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1530
+ }
1531
+ }
1532
+ ],
1533
+ "slots": [],
1534
+ "methods": [],
1535
+ "parts": [],
1536
+ "description": "通用单选构件",
1537
+ "category": "form-input-basic"
1538
+ },
1539
1539
  {
1540
1540
  "name": "eo-color-picker",
1541
1541
  "properties": [