@next-bricks/form 1.0.2 → 1.0.3

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 (68) hide show
  1. package/dist/bricks.json +25 -25
  2. package/dist/chunks/{6969.22e9895b.js → 6969.71535221.js} +3 -3
  3. package/dist/chunks/6969.71535221.js.map +1 -0
  4. package/dist/chunks/{eo-auto-complete.536944b4.js → eo-auto-complete.a9c382a6.js} +3 -3
  5. package/dist/chunks/eo-auto-complete.a9c382a6.js.map +1 -0
  6. package/dist/chunks/{eo-dynamic-form-item.3d03eb49.js → eo-dynamic-form-item.f8085fe7.js} +3 -3
  7. package/dist/chunks/eo-dynamic-form-item.f8085fe7.js.map +1 -0
  8. package/dist/chunks/{eo-form-item.f8b1cb5f.js → eo-form-item.9ca32184.js} +3 -3
  9. package/dist/chunks/eo-form-item.9ca32184.js.map +1 -0
  10. package/dist/chunks/eo-form.bcf281bd.js +2 -0
  11. package/dist/chunks/eo-form.bcf281bd.js.map +1 -0
  12. package/dist/chunks/{eo-icon-select.c646c150.js → eo-icon-select.ae9ff74b.js} +3 -3
  13. package/dist/chunks/eo-icon-select.ae9ff74b.js.map +1 -0
  14. package/dist/chunks/{eo-input.04a5b127.js → eo-input.360d3dd6.js} +3 -3
  15. package/dist/chunks/eo-input.360d3dd6.js.map +1 -0
  16. package/dist/chunks/{eo-radio.d9e51145.js → eo-radio.736bcb76.js} +3 -3
  17. package/dist/chunks/eo-radio.736bcb76.js.map +1 -0
  18. package/dist/chunks/{eo-search.7cbe8bb0.js → eo-search.efc41300.js} +2 -2
  19. package/dist/chunks/eo-search.efc41300.js.map +1 -0
  20. package/dist/chunks/{eo-select.7a296499.js → eo-select.0b0138bb.js} +3 -3
  21. package/dist/chunks/eo-select.0b0138bb.js.map +1 -0
  22. package/dist/chunks/eo-submit-buttons.225fb0bc.js +2 -0
  23. package/dist/chunks/eo-submit-buttons.225fb0bc.js.map +1 -0
  24. package/dist/chunks/{eo-switch.16a46bfd.js → eo-switch.5114bd5e.js} +3 -3
  25. package/dist/chunks/eo-switch.5114bd5e.js.map +1 -0
  26. package/dist/chunks/{eo-textarea.82e3afd1.js → eo-textarea.daa7f5d4.js} +3 -3
  27. package/dist/chunks/eo-textarea.daa7f5d4.js.map +1 -0
  28. package/dist/chunks/{eo-upload-file.043eea9e.js → eo-upload-file.e860810e.js} +3 -3
  29. package/dist/chunks/eo-upload-file.e860810e.js.map +1 -0
  30. package/dist/chunks/{eo-upload-image.570aa146.js → eo-upload-image.7ea1438d.js} +3 -3
  31. package/dist/chunks/eo-upload-image.7ea1438d.js.map +1 -0
  32. package/dist/chunks/{main.000e090f.js → main.422406b2.js} +2 -2
  33. package/dist/chunks/{main.000e090f.js.map → main.422406b2.js.map} +1 -1
  34. package/dist/examples.json +9 -9
  35. package/dist/{index.c01a807c.js → index.bdd7e86b.js} +2 -2
  36. package/dist/{index.c01a807c.js.map → index.bdd7e86b.js.map} +1 -1
  37. package/dist/manifest.json +210 -210
  38. package/dist/types.json +1371 -1371
  39. package/package.json +3 -3
  40. package/dist/chunks/6969.22e9895b.js.map +0 -1
  41. package/dist/chunks/eo-auto-complete.536944b4.js.map +0 -1
  42. package/dist/chunks/eo-dynamic-form-item.3d03eb49.js.map +0 -1
  43. package/dist/chunks/eo-form-item.f8b1cb5f.js.map +0 -1
  44. package/dist/chunks/eo-form.d03c926b.js +0 -2
  45. package/dist/chunks/eo-form.d03c926b.js.map +0 -1
  46. package/dist/chunks/eo-icon-select.c646c150.js.map +0 -1
  47. package/dist/chunks/eo-input.04a5b127.js.map +0 -1
  48. package/dist/chunks/eo-radio.d9e51145.js.map +0 -1
  49. package/dist/chunks/eo-search.7cbe8bb0.js.map +0 -1
  50. package/dist/chunks/eo-select.7a296499.js.map +0 -1
  51. package/dist/chunks/eo-submit-buttons.4efffd7d.js +0 -2
  52. package/dist/chunks/eo-submit-buttons.4efffd7d.js.map +0 -1
  53. package/dist/chunks/eo-switch.16a46bfd.js.map +0 -1
  54. package/dist/chunks/eo-textarea.82e3afd1.js.map +0 -1
  55. package/dist/chunks/eo-upload-file.043eea9e.js.map +0 -1
  56. package/dist/chunks/eo-upload-image.570aa146.js.map +0 -1
  57. /package/dist/chunks/{6969.22e9895b.js.LICENSE.txt → 6969.71535221.js.LICENSE.txt} +0 -0
  58. /package/dist/chunks/{eo-auto-complete.536944b4.js.LICENSE.txt → eo-auto-complete.a9c382a6.js.LICENSE.txt} +0 -0
  59. /package/dist/chunks/{eo-dynamic-form-item.3d03eb49.js.LICENSE.txt → eo-dynamic-form-item.f8085fe7.js.LICENSE.txt} +0 -0
  60. /package/dist/chunks/{eo-form-item.f8b1cb5f.js.LICENSE.txt → eo-form-item.9ca32184.js.LICENSE.txt} +0 -0
  61. /package/dist/chunks/{eo-icon-select.c646c150.js.LICENSE.txt → eo-icon-select.ae9ff74b.js.LICENSE.txt} +0 -0
  62. /package/dist/chunks/{eo-input.04a5b127.js.LICENSE.txt → eo-input.360d3dd6.js.LICENSE.txt} +0 -0
  63. /package/dist/chunks/{eo-radio.d9e51145.js.LICENSE.txt → eo-radio.736bcb76.js.LICENSE.txt} +0 -0
  64. /package/dist/chunks/{eo-select.7a296499.js.LICENSE.txt → eo-select.0b0138bb.js.LICENSE.txt} +0 -0
  65. /package/dist/chunks/{eo-switch.16a46bfd.js.LICENSE.txt → eo-switch.5114bd5e.js.LICENSE.txt} +0 -0
  66. /package/dist/chunks/{eo-textarea.82e3afd1.js.LICENSE.txt → eo-textarea.daa7f5d4.js.LICENSE.txt} +0 -0
  67. /package/dist/chunks/{eo-upload-file.043eea9e.js.LICENSE.txt → eo-upload-file.e860810e.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{eo-upload-image.570aa146.js.LICENSE.txt → eo-upload-image.7ea1438d.js.LICENSE.txt} +0 -0
@@ -188,6 +188,97 @@
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
+ },
191
282
  {
192
283
  "name": "eo-form",
193
284
  "alias": [
@@ -516,97 +607,6 @@
516
607
  "description": "通用单选构件",
517
608
  "category": "form-input-basic"
518
609
  },
519
- {
520
- "name": "eo-textarea",
521
- "alias": [
522
- "form.general-textarea"
523
- ],
524
- "properties": [
525
- {
526
- "name": "name",
527
- "description": "字段名称",
528
- "type": "string"
529
- },
530
- {
531
- "name": "label",
532
- "description": "标签文字",
533
- "type": "string"
534
- },
535
- {
536
- "name": "value",
537
- "description": "值",
538
- "type": "string"
539
- },
540
- {
541
- "name": "placeholder",
542
- "description": "占位说明",
543
- "type": "string"
544
- },
545
- {
546
- "name": "disabled",
547
- "description": "是否禁用",
548
- "type": "boolean"
549
- },
550
- {
551
- "name": "minLength",
552
- "description": "最小长度",
553
- "type": "number"
554
- },
555
- {
556
- "name": "maxLength",
557
- "description": "最大长度",
558
- "type": "number"
559
- },
560
- {
561
- "name": "autoSize",
562
- "description": "大小自适应",
563
- "attribute": false,
564
- "type": "AutoSize"
565
- },
566
- {
567
- "name": "required",
568
- "description": "是否必填",
569
- "type": "boolean"
570
- },
571
- {
572
- "name": "max",
573
- "description": "表单校验最大长度",
574
- "type": "number"
575
- },
576
- {
577
- "name": "min",
578
- "description": "表单校验最小长度",
579
- "type": "number"
580
- },
581
- {
582
- "name": "message",
583
- "description": "校验信息",
584
- "attribute": false,
585
- "type": "Record<string, string>"
586
- },
587
- {
588
- "name": "textareaStyle",
589
- "description": "自定义样式",
590
- "attribute": false,
591
- "type": "React.CSSProperties"
592
- }
593
- ],
594
- "events": [
595
- {
596
- "name": "change",
597
- "description": "",
598
- "detail": {
599
- "description": null,
600
- "type": "string"
601
- }
602
- }
603
- ],
604
- "slots": [],
605
- "methods": [],
606
- "parts": [],
607
- "description": "通用多行文本输入框构件",
608
- "category": "form-input-basic"
609
- },
610
610
  {
611
611
  "name": "eo-select",
612
612
  "alias": [
@@ -994,118 +994,118 @@
994
994
  "category": "form-input-basic"
995
995
  },
996
996
  {
997
- "name": "eo-icon-select",
997
+ "name": "eo-search",
998
998
  "alias": [
999
- "form.icon-select"
999
+ "form.general-search"
1000
1000
  ],
1001
1001
  "properties": [
1002
1002
  {
1003
- "name": "name",
1004
- "description": "字段名称",
1003
+ "name": "value",
1004
+ "description": "搜索框的值",
1005
+ "default": "\"\"",
1005
1006
  "type": "string"
1006
1007
  },
1007
1008
  {
1008
- "name": "label",
1009
- "description": "字段说明",
1009
+ "name": "placeholder",
1010
+ "description": "提示语",
1010
1011
  "type": "string"
1011
1012
  },
1012
1013
  {
1013
- "name": "value",
1014
- "description": "",
1015
- "attribute": false,
1016
- "type": "Icon"
1014
+ "name": "autoFocus",
1015
+ "description": "是否自动聚焦",
1016
+ "type": "boolean"
1017
1017
  },
1018
1018
  {
1019
- "name": "disabled",
1020
- "description": "是否禁用",
1019
+ "name": "clearable",
1020
+ "description": "可以点击清除图标删除内容",
1021
1021
  "type": "boolean"
1022
1022
  },
1023
1023
  {
1024
- "name": "required",
1025
- "description": "是否必填",
1024
+ "name": "trim",
1025
+ "description": "是否剔除前后空格",
1026
1026
  "type": "boolean"
1027
1027
  },
1028
1028
  {
1029
- "name": "message",
1030
- "description": "是否必填",
1031
- "attribute": false,
1032
- "type": "Record<string, string>"
1029
+ "name": "debounceTime",
1030
+ "description": "默认延迟时间",
1031
+ "default": "0",
1032
+ "type": "number"
1033
1033
  }
1034
1034
  ],
1035
1035
  "events": [
1036
1036
  {
1037
1037
  "name": "change",
1038
- "description": "值变化时触发",
1038
+ "description": "输入的搜索字符,输入变化时触发",
1039
1039
  "detail": {
1040
- "type": "Icon | undefined"
1040
+ "type": "string"
1041
+ }
1042
+ },
1043
+ {
1044
+ "name": "search",
1045
+ "description": "搜索时触发",
1046
+ "detail": {
1047
+ "type": "string"
1041
1048
  }
1042
1049
  }
1043
1050
  ],
1044
1051
  "slots": [],
1045
1052
  "methods": [],
1046
1053
  "parts": [],
1047
- "description": "图标选择构件",
1054
+ "description": "搜索框",
1048
1055
  "category": "form-input-basic"
1049
1056
  },
1050
1057
  {
1051
- "name": "eo-search",
1058
+ "name": "eo-icon-select",
1052
1059
  "alias": [
1053
- "form.general-search"
1060
+ "form.icon-select"
1054
1061
  ],
1055
1062
  "properties": [
1056
1063
  {
1057
- "name": "value",
1058
- "description": "搜索框的值",
1059
- "default": "\"\"",
1064
+ "name": "name",
1065
+ "description": "字段名称",
1060
1066
  "type": "string"
1061
1067
  },
1062
1068
  {
1063
- "name": "placeholder",
1064
- "description": "提示语",
1069
+ "name": "label",
1070
+ "description": "字段说明",
1065
1071
  "type": "string"
1066
1072
  },
1067
1073
  {
1068
- "name": "autoFocus",
1069
- "description": "是否自动聚焦",
1070
- "type": "boolean"
1074
+ "name": "value",
1075
+ "description": "",
1076
+ "attribute": false,
1077
+ "type": "Icon"
1071
1078
  },
1072
1079
  {
1073
- "name": "clearable",
1074
- "description": "可以点击清除图标删除内容",
1080
+ "name": "disabled",
1081
+ "description": "是否禁用",
1075
1082
  "type": "boolean"
1076
1083
  },
1077
1084
  {
1078
- "name": "trim",
1079
- "description": "是否剔除前后空格",
1085
+ "name": "required",
1086
+ "description": "是否必填",
1080
1087
  "type": "boolean"
1081
1088
  },
1082
1089
  {
1083
- "name": "debounceTime",
1084
- "description": "默认延迟时间",
1085
- "default": "0",
1086
- "type": "number"
1090
+ "name": "message",
1091
+ "description": "是否必填",
1092
+ "attribute": false,
1093
+ "type": "Record<string, string>"
1087
1094
  }
1088
1095
  ],
1089
1096
  "events": [
1090
1097
  {
1091
1098
  "name": "change",
1092
- "description": "输入的搜索字符,输入变化时触发",
1093
- "detail": {
1094
- "type": "string"
1095
- }
1096
- },
1097
- {
1098
- "name": "search",
1099
- "description": "搜索时触发",
1099
+ "description": "值变化时触发",
1100
1100
  "detail": {
1101
- "type": "string"
1101
+ "type": "Icon | undefined"
1102
1102
  }
1103
1103
  }
1104
1104
  ],
1105
1105
  "slots": [],
1106
1106
  "methods": [],
1107
1107
  "parts": [],
1108
- "description": "搜索框",
1108
+ "description": "图标选择构件",
1109
1109
  "category": "form-input-basic"
1110
1110
  },
1111
1111
  {
@@ -1522,6 +1522,76 @@
1522
1522
  "description": "时间选择器",
1523
1523
  "category": "form-input-basic"
1524
1524
  },
1525
+ {
1526
+ "name": "eo-time-range-picker",
1527
+ "properties": [
1528
+ {
1529
+ "name": "name",
1530
+ "description": "时间段选择器字段名",
1531
+ "type": "string"
1532
+ },
1533
+ {
1534
+ "name": "label",
1535
+ "description": "时间段选择器说明",
1536
+ "type": "string"
1537
+ },
1538
+ {
1539
+ "name": "value",
1540
+ "description": "时间段选择器的初始值",
1541
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1542
+ "attribute": false,
1543
+ "type": "TimeRange"
1544
+ },
1545
+ {
1546
+ "name": "required",
1547
+ "description": "是否必填",
1548
+ "type": "boolean"
1549
+ },
1550
+ {
1551
+ "name": "rangeType",
1552
+ "description": "时间段类型",
1553
+ "attribute": false,
1554
+ "type": "RangeType"
1555
+ },
1556
+ {
1557
+ "name": "selectNearDays",
1558
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1559
+ "type": "number"
1560
+ },
1561
+ {
1562
+ "name": "emitChangeOnInit",
1563
+ "description": "",
1564
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1565
+ "type": "boolean"
1566
+ },
1567
+ {
1568
+ "name": "presetRanges",
1569
+ "description": "",
1570
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1571
+ "attribute": false,
1572
+ "type": "presetRangeType[]"
1573
+ },
1574
+ {
1575
+ "name": "validator",
1576
+ "attribute": false,
1577
+ "type": "((value: any) => MessageBody | string)"
1578
+ }
1579
+ ],
1580
+ "events": [
1581
+ {
1582
+ "name": "change",
1583
+ "description": "时间段变化时触发",
1584
+ "detail": {
1585
+ "type": "TimeRange"
1586
+ }
1587
+ }
1588
+ ],
1589
+ "slots": [],
1590
+ "methods": [],
1591
+ "parts": [],
1592
+ "description": "时间区间选择器",
1593
+ "category": "form-input-basic"
1594
+ },
1525
1595
  {
1526
1596
  "name": "eo-date-picker",
1527
1597
  "properties": [
@@ -1621,76 +1691,6 @@
1621
1691
  "parts": [],
1622
1692
  "description": "日期选择器",
1623
1693
  "category": "form-input-basic"
1624
- },
1625
- {
1626
- "name": "eo-time-range-picker",
1627
- "properties": [
1628
- {
1629
- "name": "name",
1630
- "description": "时间段选择器字段名",
1631
- "type": "string"
1632
- },
1633
- {
1634
- "name": "label",
1635
- "description": "时间段选择器说明",
1636
- "type": "string"
1637
- },
1638
- {
1639
- "name": "value",
1640
- "description": "时间段选择器的初始值",
1641
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1642
- "attribute": false,
1643
- "type": "TimeRange"
1644
- },
1645
- {
1646
- "name": "required",
1647
- "description": "是否必填",
1648
- "type": "boolean"
1649
- },
1650
- {
1651
- "name": "rangeType",
1652
- "description": "时间段类型",
1653
- "attribute": false,
1654
- "type": "RangeType"
1655
- },
1656
- {
1657
- "name": "selectNearDays",
1658
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1659
- "type": "number"
1660
- },
1661
- {
1662
- "name": "emitChangeOnInit",
1663
- "description": "",
1664
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1665
- "type": "boolean"
1666
- },
1667
- {
1668
- "name": "presetRanges",
1669
- "description": "",
1670
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1671
- "attribute": false,
1672
- "type": "presetRangeType[]"
1673
- },
1674
- {
1675
- "name": "validator",
1676
- "attribute": false,
1677
- "type": "((value: any) => MessageBody | string)"
1678
- }
1679
- ],
1680
- "events": [
1681
- {
1682
- "name": "change",
1683
- "description": "时间段变化时触发",
1684
- "detail": {
1685
- "type": "TimeRange"
1686
- }
1687
- }
1688
- ],
1689
- "slots": [],
1690
- "methods": [],
1691
- "parts": [],
1692
- "description": "时间区间选择器",
1693
- "category": "form-input-basic"
1694
1694
  }
1695
1695
  ],
1696
1696
  "providers": []