@next-bricks/form 1.9.7 → 1.9.8

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 (60) hide show
  1. package/dist/bricks.json +17 -17
  2. package/dist/chunks/{7115.27a0e67d.js → 7115.379adc04.js} +2 -2
  3. package/dist/chunks/{7115.27a0e67d.js.map → 7115.379adc04.js.map} +1 -1
  4. package/dist/chunks/{8954.92afdd66.js → 8954.b8943355.js} +2 -2
  5. package/dist/chunks/8954.b8943355.js.map +1 -0
  6. package/dist/chunks/9259.b9f603a7.js +3 -0
  7. package/dist/chunks/{9259.7e553f4a.js.map → 9259.b9f603a7.js.map} +1 -1
  8. package/dist/chunks/{9496.53037151.js → 9496.bbcd8714.js} +2 -2
  9. package/dist/chunks/{9496.53037151.js.map → 9496.bbcd8714.js.map} +1 -1
  10. package/dist/chunks/{9515.3824dc76.js → 9515.017e785e.js} +2 -2
  11. package/dist/chunks/{9515.3824dc76.js.map → 9515.017e785e.js.map} +1 -1
  12. package/dist/chunks/eo-color-picker.41a61b64.js +2 -0
  13. package/dist/chunks/{eo-color-picker.96088cda.js.map → eo-color-picker.41a61b64.js.map} +1 -1
  14. package/dist/chunks/eo-date-picker.3a94beab.js +2 -0
  15. package/dist/chunks/{eo-date-picker.0bd5d04b.js.map → eo-date-picker.3a94beab.js.map} +1 -1
  16. package/dist/chunks/eo-dynamic-form-item.3c17b8ac.js +3 -0
  17. package/dist/chunks/{eo-dynamic-form-item.12f8373f.js.map → eo-dynamic-form-item.3c17b8ac.js.map} +1 -1
  18. package/dist/chunks/eo-form-item.f5ce4c4d.js +3 -0
  19. package/dist/chunks/{eo-form-item.35a9cebb.js.map → eo-form-item.f5ce4c4d.js.map} +1 -1
  20. package/dist/chunks/eo-radio.b75c4407.js +3 -0
  21. package/dist/chunks/{eo-radio.12b1b510.js.map → eo-radio.b75c4407.js.map} +1 -1
  22. package/dist/chunks/eo-select.a5c8ce31.js +3 -0
  23. package/dist/chunks/{eo-select.cfc26f46.js.map → eo-select.a5c8ce31.js.map} +1 -1
  24. package/dist/chunks/eo-time-picker.c96d2bf5.js +2 -0
  25. package/dist/chunks/{eo-time-picker.3cbae577.js.map → eo-time-picker.c96d2bf5.js.map} +1 -1
  26. package/dist/chunks/eo-time-range-picker.223a34e3.js +2 -0
  27. package/dist/chunks/{eo-time-range-picker.793468d8.js.map → eo-time-range-picker.223a34e3.js.map} +1 -1
  28. package/dist/chunks/eo-upload-file.6b53bdcc.js +3 -0
  29. package/dist/chunks/{eo-upload-file.edeb4c66.js.map → eo-upload-file.6b53bdcc.js.map} +1 -1
  30. package/dist/chunks/{eo-upload-image.08f75296.js → eo-upload-image.3f142265.js} +3 -3
  31. package/dist/chunks/{eo-upload-image.08f75296.js.map → eo-upload-image.3f142265.js.map} +1 -1
  32. package/dist/chunks/main.47ed23ac.js +2 -0
  33. package/dist/chunks/{main.d730fff2.js.map → main.47ed23ac.js.map} +1 -1
  34. package/dist/examples.json +6 -6
  35. package/dist/index.b3d7db7c.js +2 -0
  36. package/dist/index.b3d7db7c.js.map +1 -0
  37. package/dist/manifest.json +250 -250
  38. package/dist/types.json +220 -220
  39. package/package.json +2 -2
  40. package/dist/chunks/8954.92afdd66.js.map +0 -1
  41. package/dist/chunks/9259.7e553f4a.js +0 -3
  42. package/dist/chunks/eo-color-picker.96088cda.js +0 -2
  43. package/dist/chunks/eo-date-picker.0bd5d04b.js +0 -2
  44. package/dist/chunks/eo-dynamic-form-item.12f8373f.js +0 -3
  45. package/dist/chunks/eo-form-item.35a9cebb.js +0 -3
  46. package/dist/chunks/eo-radio.12b1b510.js +0 -3
  47. package/dist/chunks/eo-select.cfc26f46.js +0 -3
  48. package/dist/chunks/eo-time-picker.3cbae577.js +0 -2
  49. package/dist/chunks/eo-time-range-picker.793468d8.js +0 -2
  50. package/dist/chunks/eo-upload-file.edeb4c66.js +0 -3
  51. package/dist/chunks/main.d730fff2.js +0 -2
  52. package/dist/index.258ff005.js +0 -2
  53. package/dist/index.258ff005.js.map +0 -1
  54. /package/dist/chunks/{9259.7e553f4a.js.LICENSE.txt → 9259.b9f603a7.js.LICENSE.txt} +0 -0
  55. /package/dist/chunks/{eo-dynamic-form-item.12f8373f.js.LICENSE.txt → eo-dynamic-form-item.3c17b8ac.js.LICENSE.txt} +0 -0
  56. /package/dist/chunks/{eo-form-item.35a9cebb.js.LICENSE.txt → eo-form-item.f5ce4c4d.js.LICENSE.txt} +0 -0
  57. /package/dist/chunks/{eo-radio.12b1b510.js.LICENSE.txt → eo-radio.b75c4407.js.LICENSE.txt} +0 -0
  58. /package/dist/chunks/{eo-select.cfc26f46.js.LICENSE.txt → eo-select.a5c8ce31.js.LICENSE.txt} +0 -0
  59. /package/dist/chunks/{eo-upload-file.edeb4c66.js.LICENSE.txt → eo-upload-file.6b53bdcc.js.LICENSE.txt} +0 -0
  60. /package/dist/chunks/{eo-upload-image.08f75296.js.LICENSE.txt → eo-upload-image.3f142265.js.LICENSE.txt} +0 -0
@@ -188,97 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-textarea",
193
- "alias": [
194
- "form.general-textarea"
195
- ],
196
- "properties": [
197
- {
198
- "name": "name",
199
- "description": "字段名称",
200
- "type": "string"
201
- },
202
- {
203
- "name": "label",
204
- "description": "标签文字",
205
- "type": "string"
206
- },
207
- {
208
- "name": "value",
209
- "description": "值",
210
- "type": "string"
211
- },
212
- {
213
- "name": "placeholder",
214
- "description": "占位说明",
215
- "type": "string"
216
- },
217
- {
218
- "name": "disabled",
219
- "description": "是否禁用",
220
- "type": "boolean"
221
- },
222
- {
223
- "name": "minLength",
224
- "description": "最小长度",
225
- "type": "number"
226
- },
227
- {
228
- "name": "maxLength",
229
- "description": "最大长度",
230
- "type": "number"
231
- },
232
- {
233
- "name": "autoSize",
234
- "description": "大小自适应",
235
- "attribute": false,
236
- "type": "AutoSize"
237
- },
238
- {
239
- "name": "required",
240
- "description": "是否必填",
241
- "type": "boolean"
242
- },
243
- {
244
- "name": "max",
245
- "description": "表单校验最大长度",
246
- "type": "number"
247
- },
248
- {
249
- "name": "min",
250
- "description": "表单校验最小长度",
251
- "type": "number"
252
- },
253
- {
254
- "name": "message",
255
- "description": "校验信息",
256
- "attribute": false,
257
- "type": "Record<string, string>"
258
- },
259
- {
260
- "name": "textareaStyle",
261
- "description": "自定义样式",
262
- "attribute": false,
263
- "type": "React.CSSProperties"
264
- }
265
- ],
266
- "events": [
267
- {
268
- "name": "change",
269
- "description": "",
270
- "detail": {
271
- "description": null,
272
- "type": "string"
273
- }
274
- }
275
- ],
276
- "slots": [],
277
- "methods": [],
278
- "parts": [],
279
- "description": "通用多行文本输入框构件",
280
- "category": "form-input-basic"
281
- },
282
191
  {
283
192
  "name": "eo-form",
284
193
  "alias": [
@@ -414,105 +323,6 @@
414
323
  "description": "表单构件",
415
324
  "category": "form-input-basic"
416
325
  },
417
- {
418
- "name": "eo-form-item",
419
- "alias": [
420
- "form.general-form-item"
421
- ],
422
- "properties": [
423
- {
424
- "name": "formElement",
425
- "attribute": false,
426
- "type": "Form"
427
- },
428
- {
429
- "name": "curElement",
430
- "attribute": false,
431
- "type": "HTMLElement"
432
- },
433
- {
434
- "name": "name",
435
- "description": "字段名称",
436
- "type": "string"
437
- },
438
- {
439
- "name": "label",
440
- "type": "string"
441
- },
442
- {
443
- "name": "pattern",
444
- "type": "string"
445
- },
446
- {
447
- "name": "message",
448
- "attribute": false,
449
- "type": "Record<string, string>"
450
- },
451
- {
452
- "name": "max",
453
- "type": "number"
454
- },
455
- {
456
- "name": "min",
457
- "type": "number"
458
- },
459
- {
460
- "name": "required",
461
- "description": "表单项是否必填",
462
- "type": "boolean"
463
- },
464
- {
465
- "name": "value",
466
- "description": "初始值",
467
- "type": "string"
468
- },
469
- {
470
- "name": "valuePropsName",
471
- "type": "string"
472
- },
473
- {
474
- "name": "layout",
475
- "type": "Layout"
476
- },
477
- {
478
- "name": "size",
479
- "type": "ComponentSize"
480
- },
481
- {
482
- "name": "trim",
483
- "description": "是否自动去除前后的空白字符",
484
- "default": "true"
485
- },
486
- {
487
- "name": "trigger",
488
- "description": "事件触发方法名",
489
- "type": "string"
490
- },
491
- {
492
- "name": "validator",
493
- "description": "表单项校验方法",
494
- "attribute": false,
495
- "type": "((value: any) => MessageBody)"
496
- },
497
- {
498
- "name": "needValidate",
499
- "description": "值变化时是否主动出发校验",
500
- "type": "boolean"
501
- }
502
- ],
503
- "events": [],
504
- "slots": [
505
- {
506
- "name": null,
507
- "description": "表单项内容"
508
- }
509
- ],
510
- "methods": [],
511
- "parts": [],
512
- "description": "通用输入框构件",
513
- "category": "form-input-basic",
514
- "insider": true
515
- },
516
326
  {
517
327
  "name": "eo-radio",
518
328
  "alias": [
@@ -611,6 +421,97 @@
611
421
  "description": "通用单选构件",
612
422
  "category": "form-input-basic"
613
423
  },
424
+ {
425
+ "name": "eo-textarea",
426
+ "alias": [
427
+ "form.general-textarea"
428
+ ],
429
+ "properties": [
430
+ {
431
+ "name": "name",
432
+ "description": "字段名称",
433
+ "type": "string"
434
+ },
435
+ {
436
+ "name": "label",
437
+ "description": "标签文字",
438
+ "type": "string"
439
+ },
440
+ {
441
+ "name": "value",
442
+ "description": "值",
443
+ "type": "string"
444
+ },
445
+ {
446
+ "name": "placeholder",
447
+ "description": "占位说明",
448
+ "type": "string"
449
+ },
450
+ {
451
+ "name": "disabled",
452
+ "description": "是否禁用",
453
+ "type": "boolean"
454
+ },
455
+ {
456
+ "name": "minLength",
457
+ "description": "最小长度",
458
+ "type": "number"
459
+ },
460
+ {
461
+ "name": "maxLength",
462
+ "description": "最大长度",
463
+ "type": "number"
464
+ },
465
+ {
466
+ "name": "autoSize",
467
+ "description": "大小自适应",
468
+ "attribute": false,
469
+ "type": "AutoSize"
470
+ },
471
+ {
472
+ "name": "required",
473
+ "description": "是否必填",
474
+ "type": "boolean"
475
+ },
476
+ {
477
+ "name": "max",
478
+ "description": "表单校验最大长度",
479
+ "type": "number"
480
+ },
481
+ {
482
+ "name": "min",
483
+ "description": "表单校验最小长度",
484
+ "type": "number"
485
+ },
486
+ {
487
+ "name": "message",
488
+ "description": "校验信息",
489
+ "attribute": false,
490
+ "type": "Record<string, string>"
491
+ },
492
+ {
493
+ "name": "textareaStyle",
494
+ "description": "自定义样式",
495
+ "attribute": false,
496
+ "type": "React.CSSProperties"
497
+ }
498
+ ],
499
+ "events": [
500
+ {
501
+ "name": "change",
502
+ "description": "",
503
+ "detail": {
504
+ "description": null,
505
+ "type": "string"
506
+ }
507
+ }
508
+ ],
509
+ "slots": [],
510
+ "methods": [],
511
+ "parts": [],
512
+ "description": "通用多行文本输入框构件",
513
+ "category": "form-input-basic"
514
+ },
614
515
  {
615
516
  "name": "eo-select",
616
517
  "alias": [
@@ -1456,6 +1357,105 @@
1456
1357
  "description": "带候选项的输入框",
1457
1358
  "category": "form-input-basic"
1458
1359
  },
1360
+ {
1361
+ "name": "eo-form-item",
1362
+ "alias": [
1363
+ "form.general-form-item"
1364
+ ],
1365
+ "properties": [
1366
+ {
1367
+ "name": "formElement",
1368
+ "attribute": false,
1369
+ "type": "Form"
1370
+ },
1371
+ {
1372
+ "name": "curElement",
1373
+ "attribute": false,
1374
+ "type": "HTMLElement"
1375
+ },
1376
+ {
1377
+ "name": "name",
1378
+ "description": "字段名称",
1379
+ "type": "string"
1380
+ },
1381
+ {
1382
+ "name": "label",
1383
+ "type": "string"
1384
+ },
1385
+ {
1386
+ "name": "pattern",
1387
+ "type": "string"
1388
+ },
1389
+ {
1390
+ "name": "message",
1391
+ "attribute": false,
1392
+ "type": "Record<string, string>"
1393
+ },
1394
+ {
1395
+ "name": "max",
1396
+ "type": "number"
1397
+ },
1398
+ {
1399
+ "name": "min",
1400
+ "type": "number"
1401
+ },
1402
+ {
1403
+ "name": "required",
1404
+ "description": "表单项是否必填",
1405
+ "type": "boolean"
1406
+ },
1407
+ {
1408
+ "name": "value",
1409
+ "description": "初始值",
1410
+ "type": "string"
1411
+ },
1412
+ {
1413
+ "name": "valuePropsName",
1414
+ "type": "string"
1415
+ },
1416
+ {
1417
+ "name": "layout",
1418
+ "type": "Layout"
1419
+ },
1420
+ {
1421
+ "name": "size",
1422
+ "type": "ComponentSize"
1423
+ },
1424
+ {
1425
+ "name": "trim",
1426
+ "description": "是否自动去除前后的空白字符",
1427
+ "default": "true"
1428
+ },
1429
+ {
1430
+ "name": "trigger",
1431
+ "description": "事件触发方法名",
1432
+ "type": "string"
1433
+ },
1434
+ {
1435
+ "name": "validator",
1436
+ "description": "表单项校验方法",
1437
+ "attribute": false,
1438
+ "type": "((value: any) => MessageBody)"
1439
+ },
1440
+ {
1441
+ "name": "needValidate",
1442
+ "description": "值变化时是否主动出发校验",
1443
+ "type": "boolean"
1444
+ }
1445
+ ],
1446
+ "events": [],
1447
+ "slots": [
1448
+ {
1449
+ "name": null,
1450
+ "description": "表单项内容"
1451
+ }
1452
+ ],
1453
+ "methods": [],
1454
+ "parts": [],
1455
+ "description": "通用输入框构件",
1456
+ "category": "form-input-basic",
1457
+ "insider": true
1458
+ },
1459
1459
  {
1460
1460
  "name": "eo-time-picker",
1461
1461
  "properties": [
@@ -1632,27 +1632,24 @@
1632
1632
  "category": "form-input-basic"
1633
1633
  },
1634
1634
  {
1635
- "name": "eo-color-picker",
1635
+ "name": "eo-time-range-picker",
1636
1636
  "properties": [
1637
1637
  {
1638
1638
  "name": "name",
1639
- "description": "字段名称",
1639
+ "description": "时间段选择器字段名",
1640
1640
  "type": "string"
1641
1641
  },
1642
1642
  {
1643
1643
  "name": "label",
1644
- "description": "字段说明",
1644
+ "description": "时间段选择器说明",
1645
1645
  "type": "string"
1646
1646
  },
1647
1647
  {
1648
1648
  "name": "value",
1649
- "description": "",
1650
- "type": "string"
1651
- },
1652
- {
1653
- "name": "defaultValue",
1654
- "description": "颜色默认的值",
1655
- "type": "string | Color"
1649
+ "description": "时间段选择器的初始值",
1650
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1651
+ "attribute": false,
1652
+ "type": "TimeRange"
1656
1653
  },
1657
1654
  {
1658
1655
  "name": "required",
@@ -1660,74 +1657,72 @@
1660
1657
  "type": "boolean"
1661
1658
  },
1662
1659
  {
1663
- "name": "allowClear",
1664
- "description": "允许清除选择的颜色",
1665
- "type": "boolean"
1666
- },
1667
- {
1668
- "name": "size",
1669
- "description": "设置触发器大小",
1670
- "default": "middle",
1660
+ "name": "rangeType",
1661
+ "description": "时间段类型",
1671
1662
  "attribute": false,
1672
- "type": "\"small\" | \"middle\" | \"large\""
1663
+ "type": "RangeType"
1673
1664
  },
1674
1665
  {
1675
- "name": "showText",
1676
- "description": "显示颜色文本",
1677
- "type": "boolean"
1666
+ "name": "selectNearDays",
1667
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1668
+ "type": "number"
1678
1669
  },
1679
1670
  {
1680
- "name": "disabled",
1681
- "description": "是否禁用",
1671
+ "name": "emitChangeOnInit",
1672
+ "description": "",
1673
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1682
1674
  "type": "boolean"
1683
1675
  },
1684
1676
  {
1685
- "name": "format",
1686
- "description": "颜色格式",
1687
- "default": "hex",
1677
+ "name": "presetRanges",
1678
+ "description": "",
1679
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1688
1680
  "attribute": false,
1689
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1681
+ "type": "presetRangeType[]"
1690
1682
  },
1691
1683
  {
1692
- "name": "configProps",
1693
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1684
+ "name": "validator",
1694
1685
  "attribute": false,
1695
- "type": "Partial<ColorPickerProps>"
1686
+ "type": "((value: any) => MessageBody | string)"
1696
1687
  }
1697
1688
  ],
1698
1689
  "events": [
1699
1690
  {
1700
1691
  "name": "change",
1701
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1692
+ "description": "时间段变化时触发",
1702
1693
  "detail": {
1703
- "type": "string | undefined"
1694
+ "type": "TimeRange"
1704
1695
  }
1705
1696
  }
1706
1697
  ],
1707
1698
  "slots": [],
1708
1699
  "methods": [],
1709
1700
  "parts": [],
1710
- "description": "构件 `eo-color-picker`"
1701
+ "description": "时间区间选择器",
1702
+ "category": "form-input-basic"
1711
1703
  },
1712
1704
  {
1713
- "name": "eo-time-range-picker",
1705
+ "name": "eo-color-picker",
1714
1706
  "properties": [
1715
1707
  {
1716
1708
  "name": "name",
1717
- "description": "时间段选择器字段名",
1709
+ "description": "字段名称",
1718
1710
  "type": "string"
1719
1711
  },
1720
1712
  {
1721
1713
  "name": "label",
1722
- "description": "时间段选择器说明",
1714
+ "description": "字段说明",
1723
1715
  "type": "string"
1724
1716
  },
1725
1717
  {
1726
1718
  "name": "value",
1727
- "description": "时间段选择器的初始值",
1728
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1729
- "attribute": false,
1730
- "type": "TimeRange"
1719
+ "description": "",
1720
+ "type": "string"
1721
+ },
1722
+ {
1723
+ "name": "defaultValue",
1724
+ "description": "颜色默认的值",
1725
+ "type": "string | Color"
1731
1726
  },
1732
1727
  {
1733
1728
  "name": "required",
@@ -1735,49 +1730,54 @@
1735
1730
  "type": "boolean"
1736
1731
  },
1737
1732
  {
1738
- "name": "rangeType",
1739
- "description": "时间段类型",
1733
+ "name": "allowClear",
1734
+ "description": "允许清除选择的颜色",
1735
+ "type": "boolean"
1736
+ },
1737
+ {
1738
+ "name": "size",
1739
+ "description": "设置触发器大小",
1740
+ "default": "middle",
1740
1741
  "attribute": false,
1741
- "type": "RangeType"
1742
+ "type": "\"small\" | \"middle\" | \"large\""
1742
1743
  },
1743
1744
  {
1744
- "name": "selectNearDays",
1745
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1746
- "type": "number"
1745
+ "name": "showText",
1746
+ "description": "显示颜色文本",
1747
+ "type": "boolean"
1747
1748
  },
1748
1749
  {
1749
- "name": "emitChangeOnInit",
1750
- "description": "",
1751
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1750
+ "name": "disabled",
1751
+ "description": "是否禁用",
1752
1752
  "type": "boolean"
1753
1753
  },
1754
1754
  {
1755
- "name": "presetRanges",
1756
- "description": "",
1757
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1755
+ "name": "format",
1756
+ "description": "颜色格式",
1757
+ "default": "hex",
1758
1758
  "attribute": false,
1759
- "type": "presetRangeType[]"
1759
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1760
1760
  },
1761
1761
  {
1762
- "name": "validator",
1762
+ "name": "configProps",
1763
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1763
1764
  "attribute": false,
1764
- "type": "((value: any) => MessageBody | string)"
1765
+ "type": "Partial<ColorPickerProps>"
1765
1766
  }
1766
1767
  ],
1767
1768
  "events": [
1768
1769
  {
1769
1770
  "name": "change",
1770
- "description": "时间段变化时触发",
1771
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1771
1772
  "detail": {
1772
- "type": "TimeRange"
1773
+ "type": "string | undefined"
1773
1774
  }
1774
1775
  }
1775
1776
  ],
1776
1777
  "slots": [],
1777
1778
  "methods": [],
1778
1779
  "parts": [],
1779
- "description": "时间区间选择器",
1780
- "category": "form-input-basic"
1780
+ "description": "构件 `eo-color-picker`"
1781
1781
  }
1782
1782
  ],
1783
1783
  "providers": []