@next-bricks/form 1.15.5 → 1.15.7

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 (99) hide show
  1. package/dist/bricks.json +26 -26
  2. package/dist/chunks/4056.00152475.js +3 -0
  3. package/dist/chunks/4056.00152475.js.map +1 -0
  4. package/dist/chunks/4185.d0b2dca6.js +3 -0
  5. package/dist/chunks/4185.d0b2dca6.js.map +1 -0
  6. package/dist/chunks/{4837.bc14ca08.js → 4837.cfc2beca.js} +2 -2
  7. package/dist/chunks/{4837.bc14ca08.js.map → 4837.cfc2beca.js.map} +1 -1
  8. package/dist/chunks/5025.bd76306e.js +3 -0
  9. package/dist/chunks/5025.bd76306e.js.map +1 -0
  10. package/dist/chunks/5026.f93ca6ff.js +3 -0
  11. package/dist/chunks/5026.f93ca6ff.js.map +1 -0
  12. package/dist/chunks/{7218.279a9ed1.js → 7218.28ce9ced.js} +2 -2
  13. package/dist/chunks/{7218.279a9ed1.js.map → 7218.28ce9ced.js.map} +1 -1
  14. package/dist/chunks/7623.a4493cbd.js +3 -0
  15. package/dist/chunks/7623.a4493cbd.js.map +1 -0
  16. package/dist/chunks/845.2cc8bd81.js +3 -0
  17. package/dist/chunks/845.2cc8bd81.js.map +1 -0
  18. package/dist/chunks/9126.67a533fb.js +2 -0
  19. package/dist/chunks/9126.67a533fb.js.map +1 -0
  20. package/dist/chunks/eo-checkbox.6fb2afb3.js +2 -0
  21. package/dist/chunks/eo-checkbox.6fb2afb3.js.map +1 -0
  22. package/dist/chunks/eo-color-picker.8711d25d.js +2 -0
  23. package/dist/chunks/{eo-color-picker.c23eb480.js.map → eo-color-picker.8711d25d.js.map} +1 -1
  24. package/dist/chunks/eo-date-picker.740508ba.js +2 -0
  25. package/dist/chunks/{eo-date-picker.4adde775.js.map → eo-date-picker.740508ba.js.map} +1 -1
  26. package/dist/chunks/eo-dynamic-form-item.41874d06.js +3 -0
  27. package/dist/chunks/{eo-dynamic-form-item.dde78a02.js.map → eo-dynamic-form-item.41874d06.js.map} +1 -1
  28. package/dist/chunks/eo-form-item.c9ec824e.js +3 -0
  29. package/dist/chunks/{eo-form-item.1122cb84.js.map → eo-form-item.c9ec824e.js.map} +1 -1
  30. package/dist/chunks/eo-radio.6301fbc2.js +3 -0
  31. package/dist/chunks/{eo-radio.f6a559e3.js.map → eo-radio.6301fbc2.js.map} +1 -1
  32. package/dist/chunks/eo-select.b16bee73.js +3 -0
  33. package/dist/chunks/{eo-select.801e1664.js.map → eo-select.b16bee73.js.map} +1 -1
  34. package/dist/chunks/eo-textarea.e5b8794e.js +3 -0
  35. package/dist/chunks/eo-textarea.e5b8794e.js.map +1 -0
  36. package/dist/chunks/eo-time-picker.d5e22a7b.js +2 -0
  37. package/dist/chunks/eo-time-picker.d5e22a7b.js.map +1 -0
  38. package/dist/chunks/eo-time-range-picker.bf0932ac.js +2 -0
  39. package/dist/chunks/eo-time-range-picker.bf0932ac.js.map +1 -0
  40. package/dist/chunks/eo-upload-file.71e2b71d.js +3 -0
  41. package/dist/chunks/{eo-upload-file.b6fb0084.js.map → eo-upload-file.71e2b71d.js.map} +1 -1
  42. package/dist/chunks/{eo-upload-image.ca915af7.js → eo-upload-image.e21c5519.js} +3 -3
  43. package/dist/chunks/{eo-upload-image.ca915af7.js.map → eo-upload-image.e21c5519.js.map} +1 -1
  44. package/dist/chunks/main.3a082932.js +2 -0
  45. package/dist/chunks/main.3a082932.js.map +1 -0
  46. package/dist/examples.json +6 -6
  47. package/dist/index.78b939f2.js +2 -0
  48. package/dist/index.78b939f2.js.map +1 -0
  49. package/dist/manifest.json +282 -282
  50. package/dist/types.json +336 -336
  51. package/package.json +2 -2
  52. package/dist/chunks/2600.c0a33dd3.js +0 -3
  53. package/dist/chunks/2600.c0a33dd3.js.map +0 -1
  54. package/dist/chunks/4021.954d25ce.js +0 -2
  55. package/dist/chunks/4021.954d25ce.js.map +0 -1
  56. package/dist/chunks/4114.959be48c.js +0 -3
  57. package/dist/chunks/4114.959be48c.js.map +0 -1
  58. package/dist/chunks/5026.57e689d4.js +0 -3
  59. package/dist/chunks/5026.57e689d4.js.map +0 -1
  60. package/dist/chunks/5582.3ae20614.js +0 -3
  61. package/dist/chunks/5582.3ae20614.js.map +0 -1
  62. package/dist/chunks/7507.c1df682a.js +0 -2
  63. package/dist/chunks/7507.c1df682a.js.map +0 -1
  64. package/dist/chunks/7623.414a4117.js +0 -3
  65. package/dist/chunks/7623.414a4117.js.map +0 -1
  66. package/dist/chunks/8089.a89bbf70.js +0 -3
  67. package/dist/chunks/8089.a89bbf70.js.map +0 -1
  68. package/dist/chunks/eo-checkbox.70127b39.js +0 -3
  69. package/dist/chunks/eo-checkbox.70127b39.js.map +0 -1
  70. package/dist/chunks/eo-color-picker.c23eb480.js +0 -2
  71. package/dist/chunks/eo-date-picker.4adde775.js +0 -2
  72. package/dist/chunks/eo-dynamic-form-item.dde78a02.js +0 -3
  73. package/dist/chunks/eo-form-item.1122cb84.js +0 -3
  74. package/dist/chunks/eo-radio.f6a559e3.js +0 -3
  75. package/dist/chunks/eo-select.801e1664.js +0 -3
  76. package/dist/chunks/eo-textarea.5d3daa42.js +0 -2
  77. package/dist/chunks/eo-textarea.5d3daa42.js.map +0 -1
  78. package/dist/chunks/eo-time-picker.d0275ffe.js +0 -2
  79. package/dist/chunks/eo-time-picker.d0275ffe.js.map +0 -1
  80. package/dist/chunks/eo-time-range-picker.c689aba1.js +0 -2
  81. package/dist/chunks/eo-time-range-picker.c689aba1.js.map +0 -1
  82. package/dist/chunks/eo-upload-file.b6fb0084.js +0 -3
  83. package/dist/chunks/main.e0ab44ce.js +0 -2
  84. package/dist/chunks/main.e0ab44ce.js.map +0 -1
  85. package/dist/index.929db4ba.js +0 -2
  86. package/dist/index.929db4ba.js.map +0 -1
  87. /package/dist/chunks/{4114.959be48c.js.LICENSE.txt → 4056.00152475.js.LICENSE.txt} +0 -0
  88. /package/dist/chunks/{5582.3ae20614.js.LICENSE.txt → 4185.d0b2dca6.js.LICENSE.txt} +0 -0
  89. /package/dist/chunks/{2600.c0a33dd3.js.LICENSE.txt → 5025.bd76306e.js.LICENSE.txt} +0 -0
  90. /package/dist/chunks/{5026.57e689d4.js.LICENSE.txt → 5026.f93ca6ff.js.LICENSE.txt} +0 -0
  91. /package/dist/chunks/{7623.414a4117.js.LICENSE.txt → 7623.a4493cbd.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{8089.a89bbf70.js.LICENSE.txt → 845.2cc8bd81.js.LICENSE.txt} +0 -0
  93. /package/dist/chunks/{eo-checkbox.70127b39.js.LICENSE.txt → eo-dynamic-form-item.41874d06.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-dynamic-form-item.dde78a02.js.LICENSE.txt → eo-form-item.c9ec824e.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-form-item.1122cb84.js.LICENSE.txt → eo-radio.6301fbc2.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-radio.f6a559e3.js.LICENSE.txt → eo-select.b16bee73.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-select.801e1664.js.LICENSE.txt → eo-textarea.e5b8794e.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-upload-file.b6fb0084.js.LICENSE.txt → eo-upload-file.71e2b71d.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-upload-image.ca915af7.js.LICENSE.txt → eo-upload-image.e21c5519.js.LICENSE.txt} +0 -0
@@ -3,6 +3,104 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-textarea",
8
+ "alias": [
9
+ "form.general-textarea"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "value",
24
+ "description": "值",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "disabled",
34
+ "description": "是否禁用",
35
+ "type": "boolean"
36
+ },
37
+ {
38
+ "name": "minLength",
39
+ "description": "最小长度",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
50
+ "attribute": false,
51
+ "type": "AutoSize"
52
+ },
53
+ {
54
+ "name": "required",
55
+ "description": "是否必填",
56
+ "type": "boolean"
57
+ },
58
+ {
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
62
+ },
63
+ {
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
66
+ "type": "number"
67
+ },
68
+ {
69
+ "name": "message",
70
+ "description": "校验信息",
71
+ "attribute": false,
72
+ "type": "Record<string, string>"
73
+ },
74
+ {
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
77
+ "attribute": false,
78
+ "type": "React.CSSProperties"
79
+ }
80
+ ],
81
+ "events": [
82
+ {
83
+ "name": "change",
84
+ "description": "",
85
+ "detail": {
86
+ "description": null,
87
+ "type": "string"
88
+ }
89
+ }
90
+ ],
91
+ "slots": [],
92
+ "methods": [
93
+ {
94
+ "name": "focusTextarea",
95
+ "params": [],
96
+ "description": "focus",
97
+ "returns": {}
98
+ }
99
+ ],
100
+ "parts": [],
101
+ "description": "通用多行文本输入框构件",
102
+ "category": "form-input-basic"
103
+ },
6
104
  {
7
105
  "name": "eo-input",
8
106
  "alias": [
@@ -318,225 +416,19 @@
318
416
  "name": "name",
319
417
  "type": "string"
320
418
  }
321
- ],
322
- "description": "校验表单字段方法",
323
- "returns": {}
324
- },
325
- {
326
- "name": "resetValidateState",
327
- "params": [],
328
- "description": "重置表单校验状态方法",
329
- "returns": {}
330
- }
331
- ],
332
- "parts": [],
333
- "description": "表单构件",
334
- "category": "form-input-basic"
335
- },
336
- {
337
- "name": "eo-form-item",
338
- "alias": [
339
- "form.general-form-item"
340
- ],
341
- "properties": [
342
- {
343
- "name": "formElement",
344
- "attribute": false,
345
- "type": "Form"
346
- },
347
- {
348
- "name": "curElement",
349
- "attribute": false,
350
- "type": "HTMLElement"
351
- },
352
- {
353
- "name": "name",
354
- "description": "字段名称",
355
- "type": "string"
356
- },
357
- {
358
- "name": "label",
359
- "type": "string"
360
- },
361
- {
362
- "name": "pattern",
363
- "type": "string"
364
- },
365
- {
366
- "name": "message",
367
- "attribute": false,
368
- "type": "Record<string, string>"
369
- },
370
- {
371
- "name": "type",
372
- "type": "string"
373
- },
374
- {
375
- "name": "max",
376
- "type": "number"
377
- },
378
- {
379
- "name": "min",
380
- "type": "number"
381
- },
382
- {
383
- "name": "required",
384
- "description": "表单项是否为必填",
385
- "type": "boolean"
386
- },
387
- {
388
- "name": "value",
389
- "description": "初始值",
390
- "type": "string"
391
- },
392
- {
393
- "name": "valuePropsName",
394
- "type": "string"
395
- },
396
- {
397
- "name": "layout",
398
- "type": "Layout"
399
- },
400
- {
401
- "name": "size",
402
- "type": "ComponentSize"
403
- },
404
- {
405
- "name": "trim",
406
- "description": "是否自动去除前后的空白字符",
407
- "default": "true"
408
- },
409
- {
410
- "name": "trigger",
411
- "description": "事件触发方法名",
412
- "type": "string"
413
- },
414
- {
415
- "name": "validator",
416
- "description": "表单项校验方法",
417
- "attribute": false,
418
- "type": "((value: any) => MessageBody)"
419
- },
420
- {
421
- "name": "needValidate",
422
- "description": "值变化时是否主动出发校验",
423
- "type": "boolean"
424
- },
425
- {
426
- "name": "textContent",
427
- "type": "string",
428
- "description": "文本内容"
429
- }
430
- ],
431
- "events": [],
432
- "slots": [
433
- {
434
- "name": null,
435
- "description": "表单项内容"
436
- }
437
- ],
438
- "methods": [],
439
- "parts": [],
440
- "description": "通用输入框构件",
441
- "category": "form-input-basic",
442
- "insider": true
443
- },
444
- {
445
- "name": "eo-textarea",
446
- "alias": [
447
- "form.general-textarea"
448
- ],
449
- "properties": [
450
- {
451
- "name": "name",
452
- "description": "字段名称",
453
- "type": "string"
454
- },
455
- {
456
- "name": "label",
457
- "description": "标签文字",
458
- "type": "string"
459
- },
460
- {
461
- "name": "value",
462
- "description": "值",
463
- "type": "string"
464
- },
465
- {
466
- "name": "placeholder",
467
- "description": "占位说明",
468
- "type": "string"
469
- },
470
- {
471
- "name": "disabled",
472
- "description": "是否禁用",
473
- "type": "boolean"
474
- },
475
- {
476
- "name": "minLength",
477
- "description": "最小长度",
478
- "type": "number"
479
- },
480
- {
481
- "name": "maxLength",
482
- "description": "最大长度",
483
- "type": "number"
484
- },
485
- {
486
- "name": "autoSize",
487
- "description": "大小自适应",
488
- "attribute": false,
489
- "type": "AutoSize"
490
- },
491
- {
492
- "name": "required",
493
- "description": "是否必填",
494
- "type": "boolean"
495
- },
496
- {
497
- "name": "max",
498
- "description": "表单校验最大长度",
499
- "type": "number"
500
- },
501
- {
502
- "name": "min",
503
- "description": "表单校验最小长度",
504
- "type": "number"
505
- },
506
- {
507
- "name": "message",
508
- "description": "校验信息",
509
- "attribute": false,
510
- "type": "Record<string, string>"
511
- },
512
- {
513
- "name": "textareaStyle",
514
- "description": "自定义样式",
515
- "attribute": false,
516
- "type": "React.CSSProperties"
517
- }
518
- ],
519
- "events": [
520
- {
521
- "name": "change",
522
- "description": "",
523
- "detail": {
524
- "description": null,
525
- "type": "string"
526
- }
527
- }
528
- ],
529
- "slots": [],
530
- "methods": [
419
+ ],
420
+ "description": "校验表单字段方法",
421
+ "returns": {}
422
+ },
531
423
  {
532
- "name": "focusTextarea",
424
+ "name": "resetValidateState",
533
425
  "params": [],
534
- "description": "focus",
426
+ "description": "重置表单校验状态方法",
535
427
  "returns": {}
536
428
  }
537
429
  ],
538
430
  "parts": [],
539
- "description": "通用多行文本输入框构件",
431
+ "description": "表单构件",
540
432
  "category": "form-input-basic"
541
433
  },
542
434
  {
@@ -637,6 +529,114 @@
637
529
  "description": "通用单选构件",
638
530
  "category": "form-input-basic"
639
531
  },
532
+ {
533
+ "name": "eo-form-item",
534
+ "alias": [
535
+ "form.general-form-item"
536
+ ],
537
+ "properties": [
538
+ {
539
+ "name": "formElement",
540
+ "attribute": false,
541
+ "type": "Form"
542
+ },
543
+ {
544
+ "name": "curElement",
545
+ "attribute": false,
546
+ "type": "HTMLElement"
547
+ },
548
+ {
549
+ "name": "name",
550
+ "description": "字段名称",
551
+ "type": "string"
552
+ },
553
+ {
554
+ "name": "label",
555
+ "type": "string"
556
+ },
557
+ {
558
+ "name": "pattern",
559
+ "type": "string"
560
+ },
561
+ {
562
+ "name": "message",
563
+ "attribute": false,
564
+ "type": "Record<string, string>"
565
+ },
566
+ {
567
+ "name": "type",
568
+ "type": "string"
569
+ },
570
+ {
571
+ "name": "max",
572
+ "type": "number"
573
+ },
574
+ {
575
+ "name": "min",
576
+ "type": "number"
577
+ },
578
+ {
579
+ "name": "required",
580
+ "description": "表单项是否为必填",
581
+ "type": "boolean"
582
+ },
583
+ {
584
+ "name": "value",
585
+ "description": "初始值",
586
+ "type": "string"
587
+ },
588
+ {
589
+ "name": "valuePropsName",
590
+ "type": "string"
591
+ },
592
+ {
593
+ "name": "layout",
594
+ "type": "Layout"
595
+ },
596
+ {
597
+ "name": "size",
598
+ "type": "ComponentSize"
599
+ },
600
+ {
601
+ "name": "trim",
602
+ "description": "是否自动去除前后的空白字符",
603
+ "default": "true"
604
+ },
605
+ {
606
+ "name": "trigger",
607
+ "description": "事件触发方法名",
608
+ "type": "string"
609
+ },
610
+ {
611
+ "name": "validator",
612
+ "description": "表单项校验方法",
613
+ "attribute": false,
614
+ "type": "((value: any) => MessageBody)"
615
+ },
616
+ {
617
+ "name": "needValidate",
618
+ "description": "值变化时是否主动出发校验",
619
+ "type": "boolean"
620
+ },
621
+ {
622
+ "name": "textContent",
623
+ "type": "string",
624
+ "description": "文本内容"
625
+ }
626
+ ],
627
+ "events": [],
628
+ "slots": [
629
+ {
630
+ "name": null,
631
+ "description": "表单项内容"
632
+ }
633
+ ],
634
+ "methods": [],
635
+ "parts": [],
636
+ "description": "通用输入框构件",
637
+ "category": "form-input-basic",
638
+ "insider": true
639
+ },
640
640
  {
641
641
  "name": "eo-select",
642
642
  "alias": [
@@ -1096,6 +1096,75 @@
1096
1096
  "description": "搜索框",
1097
1097
  "category": "interact-basic"
1098
1098
  },
1099
+ {
1100
+ "name": "eo-upload-image",
1101
+ "alias": [
1102
+ "form.upload-image"
1103
+ ],
1104
+ "properties": [
1105
+ {
1106
+ "name": "name",
1107
+ "description": "字段名称",
1108
+ "type": "string"
1109
+ },
1110
+ {
1111
+ "name": "label",
1112
+ "description": "字段说明",
1113
+ "type": "string"
1114
+ },
1115
+ {
1116
+ "name": "value",
1117
+ "description": "值",
1118
+ "attribute": false,
1119
+ "type": "ImageData[]"
1120
+ },
1121
+ {
1122
+ "name": "bucketName",
1123
+ "description": "对象存储桶名字",
1124
+ "type": "string"
1125
+ },
1126
+ {
1127
+ "name": "maxCount",
1128
+ "description": "最大上传数量",
1129
+ "type": "number"
1130
+ },
1131
+ {
1132
+ "name": "multiple",
1133
+ "description": "是否支持选定的多张图片",
1134
+ "type": "boolean"
1135
+ },
1136
+ {
1137
+ "name": "limitSize",
1138
+ "description": "上传大小限制(单位为 MB)",
1139
+ "type": "number"
1140
+ },
1141
+ {
1142
+ "name": "required",
1143
+ "description": "是否必填",
1144
+ "type": "boolean"
1145
+ },
1146
+ {
1147
+ "name": "message",
1148
+ "description": "校验文本信息",
1149
+ "attribute": false,
1150
+ "type": "Record<string, string>"
1151
+ }
1152
+ ],
1153
+ "events": [
1154
+ {
1155
+ "name": "change",
1156
+ "description": "值变化时触发",
1157
+ "detail": {
1158
+ "type": "ImageData[]"
1159
+ }
1160
+ }
1161
+ ],
1162
+ "slots": [],
1163
+ "methods": [],
1164
+ "parts": [],
1165
+ "description": "上传图片构件",
1166
+ "category": "form-input-basic"
1167
+ },
1099
1168
  {
1100
1169
  "name": "eo-switch",
1101
1170
  "alias": [
@@ -1342,75 +1411,6 @@
1342
1411
  "description": "图标选择构件",
1343
1412
  "category": "form-input-basic"
1344
1413
  },
1345
- {
1346
- "name": "eo-upload-image",
1347
- "alias": [
1348
- "form.upload-image"
1349
- ],
1350
- "properties": [
1351
- {
1352
- "name": "name",
1353
- "description": "字段名称",
1354
- "type": "string"
1355
- },
1356
- {
1357
- "name": "label",
1358
- "description": "字段说明",
1359
- "type": "string"
1360
- },
1361
- {
1362
- "name": "value",
1363
- "description": "值",
1364
- "attribute": false,
1365
- "type": "ImageData[]"
1366
- },
1367
- {
1368
- "name": "bucketName",
1369
- "description": "对象存储桶名字",
1370
- "type": "string"
1371
- },
1372
- {
1373
- "name": "maxCount",
1374
- "description": "最大上传数量",
1375
- "type": "number"
1376
- },
1377
- {
1378
- "name": "multiple",
1379
- "description": "是否支持选定的多张图片",
1380
- "type": "boolean"
1381
- },
1382
- {
1383
- "name": "limitSize",
1384
- "description": "上传大小限制(单位为 MB)",
1385
- "type": "number"
1386
- },
1387
- {
1388
- "name": "required",
1389
- "description": "是否必填",
1390
- "type": "boolean"
1391
- },
1392
- {
1393
- "name": "message",
1394
- "description": "校验文本信息",
1395
- "attribute": false,
1396
- "type": "Record<string, string>"
1397
- }
1398
- ],
1399
- "events": [
1400
- {
1401
- "name": "change",
1402
- "description": "值变化时触发",
1403
- "detail": {
1404
- "type": "ImageData[]"
1405
- }
1406
- }
1407
- ],
1408
- "slots": [],
1409
- "methods": [],
1410
- "parts": [],
1411
- "description": "上传图片构件",
1412
- "category": "form-input-basic"
1413
- },
1414
1414
  {
1415
1415
  "name": "eo-auto-complete",
1416
1416
  "properties": [