@next-bricks/form 1.15.14 → 1.15.16

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 (59) hide show
  1. package/dist/bricks.json +15 -15
  2. package/dist/chunks/{149.3c454551.js → 149.0d96a17f.js} +2 -2
  3. package/dist/chunks/{149.3c454551.js.map → 149.0d96a17f.js.map} +1 -1
  4. package/dist/chunks/{4185.c4525861.js → 4185.228cd688.js} +3 -3
  5. package/dist/chunks/4185.228cd688.js.map +1 -0
  6. package/dist/chunks/5347.e2aed5bb.js +3 -0
  7. package/dist/chunks/5347.e2aed5bb.js.map +1 -0
  8. package/dist/chunks/eo-color-picker.5d90dd14.js +2 -0
  9. package/dist/chunks/{eo-color-picker.26cc5ea4.js.map → eo-color-picker.5d90dd14.js.map} +1 -1
  10. package/dist/chunks/eo-date-picker.69734d54.js +2 -0
  11. package/dist/chunks/{eo-date-picker.9349f52d.js.map → eo-date-picker.69734d54.js.map} +1 -1
  12. package/dist/chunks/eo-dynamic-form-item.023553e6.js +3 -0
  13. package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.map → eo-dynamic-form-item.023553e6.js.map} +1 -1
  14. package/dist/chunks/eo-radio.d7d5c5cc.js +3 -0
  15. package/dist/chunks/{eo-radio.7733eba5.js.map → eo-radio.d7d5c5cc.js.map} +1 -1
  16. package/dist/chunks/eo-select.a3b01a0e.js +3 -0
  17. package/dist/chunks/{eo-select.007e32cf.js.map → eo-select.a3b01a0e.js.map} +1 -1
  18. package/dist/chunks/{eo-textarea.a0fa1c87.js → eo-textarea.66c4e981.js} +3 -3
  19. package/dist/chunks/eo-textarea.66c4e981.js.map +1 -0
  20. package/dist/chunks/eo-time-picker.af83e9e7.js +2 -0
  21. package/dist/chunks/{eo-time-picker.a1616caa.js.map → eo-time-picker.af83e9e7.js.map} +1 -1
  22. package/dist/chunks/eo-time-range-picker.faa63b15.js +2 -0
  23. package/dist/chunks/{eo-time-range-picker.7f0e155a.js.map → eo-time-range-picker.faa63b15.js.map} +1 -1
  24. package/dist/chunks/eo-upload-file.81312b34.js +3 -0
  25. package/dist/chunks/{eo-upload-file.4f90038d.js.map → eo-upload-file.81312b34.js.map} +1 -1
  26. package/dist/chunks/{eo-upload-image.528e6cba.js → eo-upload-image.cc41de20.js} +3 -3
  27. package/dist/chunks/{eo-upload-image.528e6cba.js.map → eo-upload-image.cc41de20.js.map} +1 -1
  28. package/dist/chunks/main.025109f3.js +2 -0
  29. package/dist/chunks/{main.4e1429cd.js.map → main.025109f3.js.map} +1 -1
  30. package/dist/chunks/{react.711f0c64.js → react.4372d06b.js} +2 -2
  31. package/dist/examples.json +6 -6
  32. package/dist/index.46ad4bec.js +2 -0
  33. package/dist/{index.c9a40671.js.map → index.46ad4bec.js.map} +1 -1
  34. package/dist/manifest.json +166 -166
  35. package/dist/types.json +455 -455
  36. package/package.json +2 -2
  37. package/dist/chunks/4185.c4525861.js.map +0 -1
  38. package/dist/chunks/5347.eef1273e.js +0 -3
  39. package/dist/chunks/5347.eef1273e.js.map +0 -1
  40. package/dist/chunks/eo-color-picker.26cc5ea4.js +0 -2
  41. package/dist/chunks/eo-date-picker.9349f52d.js +0 -2
  42. package/dist/chunks/eo-dynamic-form-item.2fc6c469.js +0 -3
  43. package/dist/chunks/eo-radio.7733eba5.js +0 -3
  44. package/dist/chunks/eo-select.007e32cf.js +0 -3
  45. package/dist/chunks/eo-textarea.a0fa1c87.js.map +0 -1
  46. package/dist/chunks/eo-time-picker.a1616caa.js +0 -2
  47. package/dist/chunks/eo-time-range-picker.7f0e155a.js +0 -2
  48. package/dist/chunks/eo-upload-file.4f90038d.js +0 -3
  49. package/dist/chunks/main.4e1429cd.js +0 -2
  50. package/dist/index.c9a40671.js +0 -2
  51. /package/dist/chunks/{4185.c4525861.js.LICENSE.txt → 4185.228cd688.js.LICENSE.txt} +0 -0
  52. /package/dist/chunks/{5347.eef1273e.js.LICENSE.txt → 5347.e2aed5bb.js.LICENSE.txt} +0 -0
  53. /package/dist/chunks/{eo-dynamic-form-item.2fc6c469.js.LICENSE.txt → eo-dynamic-form-item.023553e6.js.LICENSE.txt} +0 -0
  54. /package/dist/chunks/{eo-radio.7733eba5.js.LICENSE.txt → eo-radio.d7d5c5cc.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{eo-select.007e32cf.js.LICENSE.txt → eo-select.a3b01a0e.js.LICENSE.txt} +0 -0
  56. /package/dist/chunks/{eo-textarea.a0fa1c87.js.LICENSE.txt → eo-textarea.66c4e981.js.LICENSE.txt} +0 -0
  57. /package/dist/chunks/{eo-upload-file.4f90038d.js.LICENSE.txt → eo-upload-file.81312b34.js.LICENSE.txt} +0 -0
  58. /package/dist/chunks/{eo-upload-image.528e6cba.js.LICENSE.txt → eo-upload-image.cc41de20.js.LICENSE.txt} +0 -0
  59. /package/dist/chunks/{react.711f0c64.js.LICENSE.txt → react.4372d06b.js.LICENSE.txt} +0 -0
@@ -148,104 +148,6 @@
148
148
  "description": "表单构件",
149
149
  "category": "form-input-basic"
150
150
  },
151
- {
152
- "name": "eo-radio",
153
- "alias": [
154
- "form.general-radio"
155
- ],
156
- "properties": [
157
- {
158
- "name": "name",
159
- "description": "下拉框字段名",
160
- "type": "string"
161
- },
162
- {
163
- "name": "label",
164
- "description": "单选框字段说明",
165
- "type": "string"
166
- },
167
- {
168
- "name": "options",
169
- "description": "单选框选项表",
170
- "required": true,
171
- "attribute": false,
172
- "type": "GeneralOption[]"
173
- },
174
- {
175
- "name": "value",
176
- "description": "单选框当前选中始值",
177
- "attribute": false,
178
- "type": "any"
179
- },
180
- {
181
- "name": "required",
182
- "description": "是否必填",
183
- "type": "boolean"
184
- },
185
- {
186
- "name": "message",
187
- "description": "校验文本信息",
188
- "attribute": false,
189
- "type": "Record<string, string>"
190
- },
191
- {
192
- "name": "disabled",
193
- "description": "是否禁用",
194
- "type": "boolean"
195
- },
196
- {
197
- "name": "type",
198
- "description": "单选框样式类型",
199
- "default": "\"default\"",
200
- "type": "RadioType"
201
- },
202
- {
203
- "name": "ui",
204
- "description": "UI样式",
205
- "default": "\"default\"",
206
- "type": "UIType"
207
- },
208
- {
209
- "name": "size",
210
- "description": "大小,只对按钮样式生效",
211
- "default": "\"medium\"",
212
- "type": "ComponentSize"
213
- },
214
- {
215
- "name": "customStyle",
216
- "description": "自定义radio的外层样式",
217
- "attribute": false,
218
- "type": "React.CSSProperties"
219
- },
220
- {
221
- "name": "useBrick",
222
- "description": "自定义radio的内容",
223
- "attribute": false,
224
- "type": "UseSingleBrickConf"
225
- }
226
- ],
227
- "events": [
228
- {
229
- "name": "change",
230
- "description": "值变化事件",
231
- "detail": {
232
- "type": "GeneralComplexOption | undefined"
233
- }
234
- },
235
- {
236
- "name": "options.change",
237
- "description": "选项列表变化事件",
238
- "detail": {
239
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
240
- }
241
- }
242
- ],
243
- "slots": [],
244
- "methods": [],
245
- "parts": [],
246
- "description": "通用单选构件",
247
- "category": "form-input-basic"
248
- },
249
151
  {
250
152
  "name": "eo-textarea",
251
153
  "alias": [
@@ -492,6 +394,104 @@
492
394
  "description": "通用下拉选择构件",
493
395
  "category": "form-input-basic"
494
396
  },
397
+ {
398
+ "name": "eo-radio",
399
+ "alias": [
400
+ "form.general-radio"
401
+ ],
402
+ "properties": [
403
+ {
404
+ "name": "name",
405
+ "description": "下拉框字段名",
406
+ "type": "string"
407
+ },
408
+ {
409
+ "name": "label",
410
+ "description": "单选框字段说明",
411
+ "type": "string"
412
+ },
413
+ {
414
+ "name": "options",
415
+ "description": "单选框选项表",
416
+ "required": true,
417
+ "attribute": false,
418
+ "type": "GeneralOption[]"
419
+ },
420
+ {
421
+ "name": "value",
422
+ "description": "单选框当前选中始值",
423
+ "attribute": false,
424
+ "type": "any"
425
+ },
426
+ {
427
+ "name": "required",
428
+ "description": "是否必填",
429
+ "type": "boolean"
430
+ },
431
+ {
432
+ "name": "message",
433
+ "description": "校验文本信息",
434
+ "attribute": false,
435
+ "type": "Record<string, string>"
436
+ },
437
+ {
438
+ "name": "disabled",
439
+ "description": "是否禁用",
440
+ "type": "boolean"
441
+ },
442
+ {
443
+ "name": "type",
444
+ "description": "单选框样式类型",
445
+ "default": "\"default\"",
446
+ "type": "RadioType"
447
+ },
448
+ {
449
+ "name": "ui",
450
+ "description": "UI样式",
451
+ "default": "\"default\"",
452
+ "type": "UIType"
453
+ },
454
+ {
455
+ "name": "size",
456
+ "description": "大小,只对按钮样式生效",
457
+ "default": "\"medium\"",
458
+ "type": "ComponentSize"
459
+ },
460
+ {
461
+ "name": "customStyle",
462
+ "description": "自定义radio的外层样式",
463
+ "attribute": false,
464
+ "type": "React.CSSProperties"
465
+ },
466
+ {
467
+ "name": "useBrick",
468
+ "description": "自定义radio的内容",
469
+ "attribute": false,
470
+ "type": "UseSingleBrickConf"
471
+ }
472
+ ],
473
+ "events": [
474
+ {
475
+ "name": "change",
476
+ "description": "值变化事件",
477
+ "detail": {
478
+ "type": "GeneralComplexOption | undefined"
479
+ }
480
+ },
481
+ {
482
+ "name": "options.change",
483
+ "description": "选项列表变化事件",
484
+ "detail": {
485
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
486
+ }
487
+ }
488
+ ],
489
+ "slots": [],
490
+ "methods": [],
491
+ "parts": [],
492
+ "description": "通用单选构件",
493
+ "category": "form-input-basic"
494
+ },
495
495
  {
496
496
  "name": "eo-submit-buttons",
497
497
  "alias": [
@@ -1377,27 +1377,24 @@
1377
1377
  "category": "form-input-basic"
1378
1378
  },
1379
1379
  {
1380
- "name": "eo-color-picker",
1380
+ "name": "eo-time-range-picker",
1381
1381
  "properties": [
1382
1382
  {
1383
1383
  "name": "name",
1384
- "description": "字段名称",
1384
+ "description": "时间段选择器字段名",
1385
1385
  "type": "string"
1386
1386
  },
1387
1387
  {
1388
1388
  "name": "label",
1389
- "description": "字段说明",
1389
+ "description": "时间段选择器说明",
1390
1390
  "type": "string"
1391
1391
  },
1392
1392
  {
1393
1393
  "name": "value",
1394
- "description": "",
1395
- "type": "string"
1396
- },
1397
- {
1398
- "name": "defaultValue",
1399
- "description": "颜色默认的值",
1400
- "type": "string | Color"
1394
+ "description": "时间段选择器的初始值",
1395
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1396
+ "attribute": false,
1397
+ "type": "TimeRange"
1401
1398
  },
1402
1399
  {
1403
1400
  "name": "required",
@@ -1405,74 +1402,84 @@
1405
1402
  "type": "boolean"
1406
1403
  },
1407
1404
  {
1408
- "name": "allowClear",
1409
- "description": "允许清除选择的颜色",
1410
- "type": "boolean"
1405
+ "name": "rangeType",
1406
+ "description": "时间段类型",
1407
+ "attribute": false,
1408
+ "type": "RangeType"
1411
1409
  },
1412
1410
  {
1413
- "name": "size",
1414
- "description": "设置触发器大小",
1415
- "default": "middle",
1411
+ "name": "placeholder",
1412
+ "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1416
1413
  "attribute": false,
1417
- "type": "\"small\" | \"middle\" | \"large\""
1414
+ "type": "string | [string, string]"
1418
1415
  },
1419
1416
  {
1420
- "name": "showText",
1421
- "description": "显示颜色文本",
1422
- "type": "boolean"
1417
+ "name": "inputStyle",
1418
+ "description": "输入框样式",
1419
+ "attribute": false,
1420
+ "type": "React.CSSProperties"
1423
1421
  },
1424
1422
  {
1425
- "name": "disabled",
1426
- "description": "是否禁用",
1423
+ "name": "selectNearDays",
1424
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1425
+ "type": "number"
1426
+ },
1427
+ {
1428
+ "name": "emitChangeOnInit",
1429
+ "description": "",
1430
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1427
1431
  "type": "boolean"
1428
1432
  },
1429
1433
  {
1430
- "name": "format",
1431
- "description": "颜色格式",
1432
- "default": "hex",
1434
+ "name": "presetRanges",
1435
+ "description": "",
1436
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1433
1437
  "attribute": false,
1434
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1438
+ "type": "presetRangeType[]"
1435
1439
  },
1436
1440
  {
1437
- "name": "configProps",
1438
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1441
+ "name": "validator",
1439
1442
  "attribute": false,
1440
- "type": "Partial<ColorPickerProps>"
1443
+ "type": "((value: any) => MessageBody | string)"
1441
1444
  }
1442
1445
  ],
1443
1446
  "events": [
1444
1447
  {
1445
1448
  "name": "change",
1446
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1449
+ "description": "时间段变化时触发",
1447
1450
  "detail": {
1448
- "type": "string | undefined"
1451
+ "type": "TimeRange"
1449
1452
  }
1450
1453
  }
1451
1454
  ],
1452
1455
  "slots": [],
1453
1456
  "methods": [],
1454
1457
  "parts": [],
1455
- "description": "构件 `eo-color-picker`"
1458
+ "description": "时间区间选择器",
1459
+ "category": "form-input-basic"
1456
1460
  },
1457
1461
  {
1458
- "name": "eo-time-range-picker",
1462
+ "name": "eo-color-picker",
1459
1463
  "properties": [
1460
1464
  {
1461
1465
  "name": "name",
1462
- "description": "时间段选择器字段名",
1466
+ "description": "字段名称",
1463
1467
  "type": "string"
1464
1468
  },
1465
1469
  {
1466
1470
  "name": "label",
1467
- "description": "时间段选择器说明",
1471
+ "description": "字段说明",
1468
1472
  "type": "string"
1469
1473
  },
1470
1474
  {
1471
1475
  "name": "value",
1472
- "description": "时间段选择器的初始值",
1473
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1474
- "attribute": false,
1475
- "type": "TimeRange"
1476
+ "description": "",
1477
+ "type": "string"
1478
+ },
1479
+ {
1480
+ "name": "defaultValue",
1481
+ "description": "颜色默认的值",
1482
+ "type": "string | Color"
1476
1483
  },
1477
1484
  {
1478
1485
  "name": "required",
@@ -1480,61 +1487,54 @@
1480
1487
  "type": "boolean"
1481
1488
  },
1482
1489
  {
1483
- "name": "rangeType",
1484
- "description": "时间段类型",
1485
- "attribute": false,
1486
- "type": "RangeType"
1487
- },
1488
- {
1489
- "name": "placeholder",
1490
- "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1491
- "attribute": false,
1492
- "type": "string | [string, string]"
1490
+ "name": "allowClear",
1491
+ "description": "允许清除选择的颜色",
1492
+ "type": "boolean"
1493
1493
  },
1494
1494
  {
1495
- "name": "inputStyle",
1496
- "description": "输入框样式",
1495
+ "name": "size",
1496
+ "description": "设置触发器大小",
1497
+ "default": "middle",
1497
1498
  "attribute": false,
1498
- "type": "React.CSSProperties"
1499
+ "type": "\"small\" | \"middle\" | \"large\""
1499
1500
  },
1500
1501
  {
1501
- "name": "selectNearDays",
1502
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1503
- "type": "number"
1502
+ "name": "showText",
1503
+ "description": "显示颜色文本",
1504
+ "type": "boolean"
1504
1505
  },
1505
1506
  {
1506
- "name": "emitChangeOnInit",
1507
- "description": "",
1508
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1507
+ "name": "disabled",
1508
+ "description": "是否禁用",
1509
1509
  "type": "boolean"
1510
1510
  },
1511
1511
  {
1512
- "name": "presetRanges",
1513
- "description": "",
1514
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1512
+ "name": "format",
1513
+ "description": "颜色格式",
1514
+ "default": "hex",
1515
1515
  "attribute": false,
1516
- "type": "presetRangeType[]"
1516
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1517
1517
  },
1518
1518
  {
1519
- "name": "validator",
1519
+ "name": "configProps",
1520
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1520
1521
  "attribute": false,
1521
- "type": "((value: any) => MessageBody | string)"
1522
+ "type": "Partial<ColorPickerProps>"
1522
1523
  }
1523
1524
  ],
1524
1525
  "events": [
1525
1526
  {
1526
1527
  "name": "change",
1527
- "description": "时间段变化时触发",
1528
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1528
1529
  "detail": {
1529
- "type": "TimeRange"
1530
+ "type": "string | undefined"
1530
1531
  }
1531
1532
  }
1532
1533
  ],
1533
1534
  "slots": [],
1534
1535
  "methods": [],
1535
1536
  "parts": [],
1536
- "description": "时间区间选择器",
1537
- "category": "form-input-basic"
1537
+ "description": "构件 `eo-color-picker`"
1538
1538
  },
1539
1539
  {
1540
1540
  "name": "eo-form-item",