@next-bricks/form 1.20.7 → 1.21.0

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.
@@ -39,6 +39,10 @@
39
39
  "attribute": false,
40
40
  "type": "ColProps"
41
41
  },
42
+ {
43
+ "name": "autoScrollToInvalidFields",
44
+ "type": "boolean"
45
+ },
42
46
  {
43
47
  "name": "formStyle",
44
48
  "attribute": false,
@@ -149,83 +153,79 @@
149
153
  "category": "form-input-basic"
150
154
  },
151
155
  {
152
- "name": "eo-textarea",
156
+ "name": "eo-radio",
153
157
  "alias": [
154
- "form.general-textarea"
158
+ "form.general-radio"
155
159
  ],
156
160
  "properties": [
157
161
  {
158
162
  "name": "name",
159
- "description": "字段名称",
163
+ "description": "下拉框字段名",
160
164
  "type": "string"
161
165
  },
162
166
  {
163
167
  "name": "label",
164
- "description": "标签文字",
168
+ "description": "单选框字段说明",
165
169
  "type": "string"
166
170
  },
167
171
  {
168
- "name": "value",
169
- "description": "",
170
- "type": "string"
172
+ "name": "options",
173
+ "description": "单选框选项表",
174
+ "required": true,
175
+ "attribute": false,
176
+ "type": "GeneralOption[]"
171
177
  },
172
178
  {
173
- "name": "placeholder",
174
- "description": "占位说明",
175
- "type": "string"
179
+ "name": "value",
180
+ "description": "单选框当前选中始值",
181
+ "attribute": false,
182
+ "type": "any"
176
183
  },
177
184
  {
178
- "name": "disabled",
179
- "description": "是否禁用",
185
+ "name": "required",
186
+ "description": "是否必填",
180
187
  "type": "boolean"
181
188
  },
182
189
  {
183
- "name": "minLength",
184
- "description": "最小长度",
185
- "type": "number"
186
- },
187
- {
188
- "name": "maxLength",
189
- "description": "最大长度",
190
- "type": "number"
191
- },
192
- {
193
- "name": "autoSize",
194
- "description": "大小自适应",
190
+ "name": "message",
191
+ "description": "校验文本信息",
195
192
  "attribute": false,
196
- "type": "AutoSize"
193
+ "type": "Record<string, string>"
197
194
  },
198
195
  {
199
- "name": "required",
200
- "description": "是否必填",
196
+ "name": "disabled",
197
+ "description": "是否禁用",
201
198
  "type": "boolean"
202
199
  },
203
200
  {
204
- "name": "max",
205
- "description": "表单校验最大长度",
206
- "type": "number"
201
+ "name": "type",
202
+ "description": "单选框样式类型",
203
+ "default": "\"default\"",
204
+ "type": "RadioType"
207
205
  },
208
206
  {
209
- "name": "min",
210
- "description": "表单校验最小长度",
211
- "type": "number"
207
+ "name": "ui",
208
+ "description": "UI样式",
209
+ "default": "\"default\"",
210
+ "type": "UIType"
212
211
  },
213
212
  {
214
- "name": "message",
215
- "description": "校验信息",
216
- "attribute": false,
217
- "type": "Record<string, string>"
213
+ "name": "size",
214
+ "description": "大小,只对按钮样式生效",
215
+ "default": "\"medium\"",
216
+ "type": "ComponentSize"
218
217
  },
219
218
  {
220
- "name": "textareaStyle",
221
- "description": "自定义样式",
219
+ "name": "customStyle",
220
+ "description": "自定义radio的外层样式",
222
221
  "attribute": false,
223
222
  "type": "React.CSSProperties"
224
223
  },
225
224
  {
226
- "name": "variant",
227
- "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
228
- "type": "\"default\" | \"muted\""
225
+ "name": "useBrick",
226
+ "description": "自定义radio的内容",
227
+ "attribute": false,
228
+ "type": "UseSingleBrickConf"
229
229
  },
230
230
  {
231
231
  "name": "themeVariant",
@@ -236,100 +236,103 @@
236
236
  "events": [
237
237
  {
238
238
  "name": "change",
239
- "description": "",
239
+ "description": "值变化事件",
240
240
  "detail": {
241
- "description": null,
242
- "type": "string"
241
+ "type": "GeneralComplexOption | undefined"
243
242
  }
244
- }
245
- ],
246
- "slots": [],
247
- "methods": [
243
+ },
248
244
  {
249
- "name": "focusTextarea",
250
- "params": [],
251
- "description": "focus",
252
- "returns": {}
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
+ }
253
250
  }
254
251
  ],
252
+ "slots": [],
253
+ "methods": [],
255
254
  "parts": [],
256
- "description": "通用多行文本输入框构件",
255
+ "description": "通用单选构件",
257
256
  "category": "form-input-basic"
258
257
  },
259
258
  {
260
- "name": "eo-radio",
259
+ "name": "eo-textarea",
261
260
  "alias": [
262
- "form.general-radio"
261
+ "form.general-textarea"
263
262
  ],
264
263
  "properties": [
265
264
  {
266
265
  "name": "name",
267
- "description": "下拉框字段名",
266
+ "description": "字段名称",
268
267
  "type": "string"
269
268
  },
270
269
  {
271
270
  "name": "label",
272
- "description": "单选框字段说明",
271
+ "description": "标签文字",
273
272
  "type": "string"
274
273
  },
275
274
  {
276
- "name": "options",
277
- "description": "单选框选项表",
278
- "required": true,
279
- "attribute": false,
280
- "type": "GeneralOption[]"
275
+ "name": "value",
276
+ "description": "",
277
+ "type": "string"
281
278
  },
282
279
  {
283
- "name": "value",
284
- "description": "单选框当前选中始值",
285
- "attribute": false,
286
- "type": "any"
280
+ "name": "placeholder",
281
+ "description": "占位说明",
282
+ "type": "string"
287
283
  },
288
284
  {
289
- "name": "required",
290
- "description": "是否必填",
285
+ "name": "disabled",
286
+ "description": "是否禁用",
291
287
  "type": "boolean"
292
288
  },
293
289
  {
294
- "name": "message",
295
- "description": "校验文本信息",
290
+ "name": "minLength",
291
+ "description": "最小长度",
292
+ "type": "number"
293
+ },
294
+ {
295
+ "name": "maxLength",
296
+ "description": "最大长度",
297
+ "type": "number"
298
+ },
299
+ {
300
+ "name": "autoSize",
301
+ "description": "大小自适应",
296
302
  "attribute": false,
297
- "type": "Record<string, string>"
303
+ "type": "AutoSize"
298
304
  },
299
305
  {
300
- "name": "disabled",
301
- "description": "是否禁用",
306
+ "name": "required",
307
+ "description": "是否必填",
302
308
  "type": "boolean"
303
309
  },
304
310
  {
305
- "name": "type",
306
- "description": "单选框样式类型",
307
- "default": "\"default\"",
308
- "type": "RadioType"
311
+ "name": "max",
312
+ "description": "表单校验最大长度",
313
+ "type": "number"
309
314
  },
310
315
  {
311
- "name": "ui",
312
- "description": "UI样式",
313
- "default": "\"default\"",
314
- "type": "UIType"
316
+ "name": "min",
317
+ "description": "表单校验最小长度",
318
+ "type": "number"
315
319
  },
316
320
  {
317
- "name": "size",
318
- "description": "大小,只对按钮样式生效",
319
- "default": "\"medium\"",
320
- "type": "ComponentSize"
321
+ "name": "message",
322
+ "description": "校验信息",
323
+ "attribute": false,
324
+ "type": "Record<string, string>"
321
325
  },
322
326
  {
323
- "name": "customStyle",
324
- "description": "自定义radio的外层样式",
327
+ "name": "textareaStyle",
328
+ "description": "自定义样式",
325
329
  "attribute": false,
326
330
  "type": "React.CSSProperties"
327
331
  },
328
332
  {
329
- "name": "useBrick",
330
- "description": "自定义radio的内容",
331
- "attribute": false,
332
- "type": "UseSingleBrickConf"
333
+ "name": "variant",
334
+ "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
335
+ "type": "\"default\" | \"muted\""
333
336
  },
334
337
  {
335
338
  "name": "themeVariant",
@@ -340,23 +343,24 @@
340
343
  "events": [
341
344
  {
342
345
  "name": "change",
343
- "description": "值变化事件",
344
- "detail": {
345
- "type": "GeneralComplexOption | undefined"
346
- }
347
- },
348
- {
349
- "name": "options.change",
350
- "description": "选项列表变化事件",
346
+ "description": "",
351
347
  "detail": {
352
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
348
+ "description": null,
349
+ "type": "string"
353
350
  }
354
351
  }
355
352
  ],
356
353
  "slots": [],
357
- "methods": [],
354
+ "methods": [
355
+ {
356
+ "name": "focusTextarea",
357
+ "params": [],
358
+ "description": "focus",
359
+ "returns": {}
360
+ }
361
+ ],
358
362
  "parts": [],
359
- "description": "通用单选构件",
363
+ "description": "通用多行文本输入框构件",
360
364
  "category": "form-input-basic"
361
365
  },
362
366
  {
package/dist/types.json CHANGED
@@ -1559,6 +1559,13 @@
1559
1559
  }
1560
1560
  }
1561
1561
  },
1562
+ {
1563
+ "name": "autoScrollToInvalidFields",
1564
+ "annotation": {
1565
+ "type": "keyword",
1566
+ "value": "boolean"
1567
+ }
1568
+ },
1562
1569
  {
1563
1570
  "name": "formStyle",
1564
1571
  "annotation": {
@@ -4562,175 +4569,6 @@
4562
4569
  }
4563
4570
  ]
4564
4571
  },
4565
- "eo-upload-image": {
4566
- "properties": [
4567
- {
4568
- "name": "name",
4569
- "annotation": {
4570
- "type": "keyword",
4571
- "value": "string"
4572
- }
4573
- },
4574
- {
4575
- "name": "label",
4576
- "annotation": {
4577
- "type": "keyword",
4578
- "value": "string"
4579
- }
4580
- },
4581
- {
4582
- "name": "value",
4583
- "annotation": {
4584
- "type": "array",
4585
- "elementType": {
4586
- "type": "reference",
4587
- "typeName": {
4588
- "type": "identifier",
4589
- "name": "ImageData"
4590
- }
4591
- }
4592
- }
4593
- },
4594
- {
4595
- "name": "bucketName",
4596
- "annotation": {
4597
- "type": "keyword",
4598
- "value": "string"
4599
- }
4600
- },
4601
- {
4602
- "name": "maxCount",
4603
- "annotation": {
4604
- "type": "keyword",
4605
- "value": "number"
4606
- }
4607
- },
4608
- {
4609
- "name": "multiple",
4610
- "annotation": {
4611
- "type": "keyword",
4612
- "value": "boolean"
4613
- }
4614
- },
4615
- {
4616
- "name": "limitSize",
4617
- "annotation": {
4618
- "type": "keyword",
4619
- "value": "number"
4620
- }
4621
- },
4622
- {
4623
- "name": "required",
4624
- "annotation": {
4625
- "type": "keyword",
4626
- "value": "boolean"
4627
- }
4628
- },
4629
- {
4630
- "name": "message",
4631
- "annotation": {
4632
- "type": "reference",
4633
- "typeName": {
4634
- "type": "identifier",
4635
- "name": "Record"
4636
- },
4637
- "typeParameters": {
4638
- "type": "typeParameterInstantiation",
4639
- "params": [
4640
- {
4641
- "type": "keyword",
4642
- "value": "string"
4643
- },
4644
- {
4645
- "type": "keyword",
4646
- "value": "string"
4647
- }
4648
- ]
4649
- }
4650
- }
4651
- },
4652
- {
4653
- "name": "variant",
4654
- "annotation": {
4655
- "type": "union",
4656
- "types": [
4657
- {
4658
- "type": "jsLiteral",
4659
- "value": "default"
4660
- },
4661
- {
4662
- "type": "jsLiteral",
4663
- "value": "avatar"
4664
- }
4665
- ]
4666
- }
4667
- },
4668
- {
4669
- "name": "themeVariant",
4670
- "annotation": {
4671
- "type": "union",
4672
- "types": [
4673
- {
4674
- "type": "jsLiteral",
4675
- "value": "default"
4676
- },
4677
- {
4678
- "type": "jsLiteral",
4679
- "value": "elevo"
4680
- }
4681
- ]
4682
- }
4683
- }
4684
- ],
4685
- "events": [
4686
- {
4687
- "name": "change",
4688
- "detail": {
4689
- "annotation": {
4690
- "type": "array",
4691
- "elementType": {
4692
- "type": "reference",
4693
- "typeName": {
4694
- "type": "identifier",
4695
- "name": "ImageData"
4696
- }
4697
- }
4698
- }
4699
- }
4700
- }
4701
- ],
4702
- "methods": [],
4703
- "types": [
4704
- {
4705
- "type": "interface",
4706
- "name": "ImageData",
4707
- "body": [
4708
- {
4709
- "type": "propertySignature",
4710
- "key": {
4711
- "type": "identifier",
4712
- "name": "url"
4713
- },
4714
- "annotation": {
4715
- "type": "keyword",
4716
- "value": "string"
4717
- },
4718
- "optional": true,
4719
- "computed": false
4720
- }
4721
- ],
4722
- "extends": [
4723
- {
4724
- "type": "expressionWithTypeArguments",
4725
- "expression": {
4726
- "type": "identifier",
4727
- "name": "FileData"
4728
- }
4729
- }
4730
- ]
4731
- }
4732
- ]
4733
- },
4734
4572
  "eo-upload-file": {
4735
4573
  "properties": [
4736
4574
  {
@@ -5099,6 +4937,175 @@
5099
4937
  }
5100
4938
  ]
5101
4939
  },
4940
+ "eo-upload-image": {
4941
+ "properties": [
4942
+ {
4943
+ "name": "name",
4944
+ "annotation": {
4945
+ "type": "keyword",
4946
+ "value": "string"
4947
+ }
4948
+ },
4949
+ {
4950
+ "name": "label",
4951
+ "annotation": {
4952
+ "type": "keyword",
4953
+ "value": "string"
4954
+ }
4955
+ },
4956
+ {
4957
+ "name": "value",
4958
+ "annotation": {
4959
+ "type": "array",
4960
+ "elementType": {
4961
+ "type": "reference",
4962
+ "typeName": {
4963
+ "type": "identifier",
4964
+ "name": "ImageData"
4965
+ }
4966
+ }
4967
+ }
4968
+ },
4969
+ {
4970
+ "name": "bucketName",
4971
+ "annotation": {
4972
+ "type": "keyword",
4973
+ "value": "string"
4974
+ }
4975
+ },
4976
+ {
4977
+ "name": "maxCount",
4978
+ "annotation": {
4979
+ "type": "keyword",
4980
+ "value": "number"
4981
+ }
4982
+ },
4983
+ {
4984
+ "name": "multiple",
4985
+ "annotation": {
4986
+ "type": "keyword",
4987
+ "value": "boolean"
4988
+ }
4989
+ },
4990
+ {
4991
+ "name": "limitSize",
4992
+ "annotation": {
4993
+ "type": "keyword",
4994
+ "value": "number"
4995
+ }
4996
+ },
4997
+ {
4998
+ "name": "required",
4999
+ "annotation": {
5000
+ "type": "keyword",
5001
+ "value": "boolean"
5002
+ }
5003
+ },
5004
+ {
5005
+ "name": "message",
5006
+ "annotation": {
5007
+ "type": "reference",
5008
+ "typeName": {
5009
+ "type": "identifier",
5010
+ "name": "Record"
5011
+ },
5012
+ "typeParameters": {
5013
+ "type": "typeParameterInstantiation",
5014
+ "params": [
5015
+ {
5016
+ "type": "keyword",
5017
+ "value": "string"
5018
+ },
5019
+ {
5020
+ "type": "keyword",
5021
+ "value": "string"
5022
+ }
5023
+ ]
5024
+ }
5025
+ }
5026
+ },
5027
+ {
5028
+ "name": "variant",
5029
+ "annotation": {
5030
+ "type": "union",
5031
+ "types": [
5032
+ {
5033
+ "type": "jsLiteral",
5034
+ "value": "default"
5035
+ },
5036
+ {
5037
+ "type": "jsLiteral",
5038
+ "value": "avatar"
5039
+ }
5040
+ ]
5041
+ }
5042
+ },
5043
+ {
5044
+ "name": "themeVariant",
5045
+ "annotation": {
5046
+ "type": "union",
5047
+ "types": [
5048
+ {
5049
+ "type": "jsLiteral",
5050
+ "value": "default"
5051
+ },
5052
+ {
5053
+ "type": "jsLiteral",
5054
+ "value": "elevo"
5055
+ }
5056
+ ]
5057
+ }
5058
+ }
5059
+ ],
5060
+ "events": [
5061
+ {
5062
+ "name": "change",
5063
+ "detail": {
5064
+ "annotation": {
5065
+ "type": "array",
5066
+ "elementType": {
5067
+ "type": "reference",
5068
+ "typeName": {
5069
+ "type": "identifier",
5070
+ "name": "ImageData"
5071
+ }
5072
+ }
5073
+ }
5074
+ }
5075
+ }
5076
+ ],
5077
+ "methods": [],
5078
+ "types": [
5079
+ {
5080
+ "type": "interface",
5081
+ "name": "ImageData",
5082
+ "body": [
5083
+ {
5084
+ "type": "propertySignature",
5085
+ "key": {
5086
+ "type": "identifier",
5087
+ "name": "url"
5088
+ },
5089
+ "annotation": {
5090
+ "type": "keyword",
5091
+ "value": "string"
5092
+ },
5093
+ "optional": true,
5094
+ "computed": false
5095
+ }
5096
+ ],
5097
+ "extends": [
5098
+ {
5099
+ "type": "expressionWithTypeArguments",
5100
+ "expression": {
5101
+ "type": "identifier",
5102
+ "name": "FileData"
5103
+ }
5104
+ }
5105
+ ]
5106
+ }
5107
+ ]
5108
+ },
5102
5109
  "eo-form-item": {
5103
5110
  "properties": [
5104
5111
  {