@varlet/ui 3.3.16 → 3.5.0-alpha.1726249557629

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 (56) hide show
  1. package/es/auto-complete/AutoComplete.mjs +361 -0
  2. package/es/auto-complete/AutoCompleteSfc.css +0 -0
  3. package/es/auto-complete/autoComplete.css +1 -0
  4. package/es/auto-complete/index.mjs +11 -0
  5. package/es/auto-complete/props.mjs +63 -0
  6. package/es/auto-complete/provide.mjs +0 -0
  7. package/es/auto-complete/style/index.mjs +11 -0
  8. package/es/checkbox/props.mjs +1 -1
  9. package/es/checkbox-group/CheckboxGroup.mjs +3 -5
  10. package/es/checkbox-group/props.mjs +5 -2
  11. package/es/counter/props.mjs +1 -1
  12. package/es/field-decorator/FieldDecorator.mjs +8 -8
  13. package/es/field-decorator/props.mjs +1 -1
  14. package/es/index.bundle.mjs +7 -1
  15. package/es/index.mjs +6 -1
  16. package/es/input/Input.mjs +12 -13
  17. package/es/input/props.mjs +22 -3
  18. package/es/menu-option/MenuOption.mjs +5 -2
  19. package/es/menu-option/menuOption.css +1 -1
  20. package/es/menu-select/MenuSelect.mjs +4 -5
  21. package/es/menu-select/props.mjs +13 -3
  22. package/es/radio/props.mjs +1 -1
  23. package/es/radio-group/RadioGroup.mjs +4 -6
  24. package/es/radio-group/props.mjs +5 -2
  25. package/es/select/Select.mjs +3 -5
  26. package/es/select/props.mjs +5 -2
  27. package/es/slider/props.mjs +1 -1
  28. package/es/style.css +1 -1
  29. package/es/style.mjs +1 -0
  30. package/es/switch/props.mjs +1 -1
  31. package/es/tooltip/Tooltip.mjs +5 -1
  32. package/es/tooltip/props.mjs +1 -0
  33. package/es/uploader/props.mjs +1 -1
  34. package/es/utils/components.mjs +30 -9
  35. package/es/varlet.esm.js +14219 -13843
  36. package/highlight/web-types.en-US.json +268 -30
  37. package/highlight/web-types.zh-CN.json +270 -32
  38. package/lib/style.css +1 -1
  39. package/lib/varlet.cjs.js +15305 -14844
  40. package/package.json +9 -8
  41. package/types/autoComplete.d.ts +84 -0
  42. package/types/checkbox.d.ts +3 -3
  43. package/types/checkboxGroup.d.ts +1 -1
  44. package/types/counter.d.ts +1 -1
  45. package/types/index.d.ts +2 -0
  46. package/types/input.d.ts +2 -1
  47. package/types/radio.d.ts +1 -1
  48. package/types/radioGroup.d.ts +1 -1
  49. package/types/rate.d.ts +1 -1
  50. package/types/select.d.ts +1 -1
  51. package/types/slider.d.ts +1 -1
  52. package/types/styleVars.d.ts +1 -0
  53. package/types/switch.d.ts +1 -1
  54. package/types/tooltip.d.ts +1 -0
  55. package/types/uploader.d.ts +1 -1
  56. package/umd/varlet.js +8 -8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.3.16",
4
+ "version": "3.5.0-alpha.1726249557629",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -300,6 +300,235 @@
300
300
  }
301
301
  ]
302
302
  },
303
+ {
304
+ "name": "var-auto-complete",
305
+ "attributes": [
306
+ {
307
+ "name": "v-model",
308
+ "description": "The value of the binding",
309
+ "default": "-",
310
+ "value": {
311
+ "type": "string",
312
+ "kind": "expression"
313
+ }
314
+ },
315
+ {
316
+ "name": "variant",
317
+ "description": "Input variants, The optional value is `standard` `outlined`",
318
+ "default": "standard",
319
+ "value": {
320
+ "type": "string",
321
+ "kind": "expression"
322
+ }
323
+ },
324
+ {
325
+ "name": "size",
326
+ "description": "Input size, The optional value is `normal` `small`",
327
+ "default": "normal",
328
+ "value": {
329
+ "type": "string",
330
+ "kind": "expression"
331
+ }
332
+ },
333
+ {
334
+ "name": "placeholder",
335
+ "description": "placeholder",
336
+ "default": "-",
337
+ "value": {
338
+ "type": "string",
339
+ "kind": "expression"
340
+ }
341
+ },
342
+ {
343
+ "name": "options",
344
+ "description": "Specifies options",
345
+ "default": "[]",
346
+ "value": {
347
+ "type": "AutoCompleteOption[]",
348
+ "kind": "expression"
349
+ }
350
+ },
351
+ {
352
+ "name": "label-key",
353
+ "description": "As the key that uniquely identifies label",
354
+ "default": "label",
355
+ "value": {
356
+ "type": "string",
357
+ "kind": "expression"
358
+ }
359
+ },
360
+ {
361
+ "name": "value-key",
362
+ "description": "As the key that uniquely identifies value",
363
+ "default": "value",
364
+ "value": {
365
+ "type": "string",
366
+ "kind": "expression"
367
+ }
368
+ },
369
+ {
370
+ "name": "maxlength",
371
+ "description": "Maxlength",
372
+ "default": "-",
373
+ "value": {
374
+ "type": "string | number",
375
+ "kind": "expression"
376
+ }
377
+ },
378
+ {
379
+ "name": "readonly",
380
+ "description": "Whether the readonly",
381
+ "default": "false",
382
+ "value": {
383
+ "type": "boolean",
384
+ "kind": "expression"
385
+ }
386
+ },
387
+ {
388
+ "name": "disabled",
389
+ "description": "Whether the disabled",
390
+ "default": "false",
391
+ "value": {
392
+ "type": "boolean",
393
+ "kind": "expression"
394
+ }
395
+ },
396
+ {
397
+ "name": "validate-trigger",
398
+ "description": "Timing to trigger validation, The optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
399
+ "default": "['onInput', 'onClear', 'onChange']",
400
+ "value": {
401
+ "type": "AutoCompleteValidateTrigger[]",
402
+ "kind": "expression"
403
+ }
404
+ },
405
+ {
406
+ "name": "rules",
407
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
408
+ "default": "-",
409
+ "value": {
410
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
411
+ "kind": "expression"
412
+ }
413
+ },
414
+ {
415
+ "name": "enterkeyhint",
416
+ "description": "Customize the enter key style, See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)",
417
+ "default": "-",
418
+ "value": {
419
+ "type": "string",
420
+ "kind": "expression"
421
+ }
422
+ },
423
+ {
424
+ "name": "clearable",
425
+ "description": "Whether the clearable",
426
+ "default": "false",
427
+ "value": {
428
+ "type": "boolean",
429
+ "kind": "expression"
430
+ }
431
+ },
432
+ {
433
+ "name": "line",
434
+ "description": "Whether to display a dividing line",
435
+ "default": "true",
436
+ "value": {
437
+ "type": "boolean",
438
+ "kind": "expression"
439
+ }
440
+ },
441
+ {
442
+ "name": "hint",
443
+ "description": "Whether to use placeholder as hint",
444
+ "default": "true",
445
+ "value": {
446
+ "type": "boolean",
447
+ "kind": "expression"
448
+ }
449
+ },
450
+ {
451
+ "name": "text-color",
452
+ "description": "Text color",
453
+ "default": "-",
454
+ "value": {
455
+ "type": "string",
456
+ "kind": "expression"
457
+ }
458
+ },
459
+ {
460
+ "name": "focus-color",
461
+ "description": "The primary color in focus",
462
+ "default": "-",
463
+ "value": {
464
+ "type": "string",
465
+ "kind": "expression"
466
+ }
467
+ },
468
+ {
469
+ "name": "blur-color",
470
+ "description": "The primary color in blur",
471
+ "default": "-",
472
+ "value": {
473
+ "type": "string",
474
+ "kind": "expression"
475
+ }
476
+ },
477
+ {
478
+ "name": "get-show",
479
+ "description": "Determine whether the menu is displayed according to the input value",
480
+ "default": "-",
481
+ "value": {
482
+ "type": "(v: string) => boolean",
483
+ "kind": "expression"
484
+ }
485
+ }
486
+ ],
487
+ "events": [
488
+ {
489
+ "name": "focus",
490
+ "description": "Triggered while focusing"
491
+ },
492
+ {
493
+ "name": "blur",
494
+ "description": "Triggered when out of focus"
495
+ },
496
+ {
497
+ "name": "click",
498
+ "description": "Triggered on Click"
499
+ },
500
+ {
501
+ "name": "clear",
502
+ "description": "Triggered on Clearance"
503
+ },
504
+ {
505
+ "name": "input",
506
+ "description": "Triggered on input"
507
+ },
508
+ {
509
+ "name": "change",
510
+ "description": "Triggered on change"
511
+ }
512
+ ],
513
+ "slots": [
514
+ {
515
+ "name": "prepend-icon",
516
+ "description": "Prepend Icon"
517
+ },
518
+ {
519
+ "name": "append-icon",
520
+ "description": "Append Icon"
521
+ },
522
+ {
523
+ "name": "clear-icon",
524
+ "description": "Clear Icon"
525
+ },
526
+ {
527
+ "name": "extra-message",
528
+ "description": "Extra message"
529
+ }
530
+ ]
531
+ },
303
532
  {
304
533
  "name": "var-avatar",
305
534
  "attributes": [
@@ -1401,10 +1630,10 @@
1401
1630
  },
1402
1631
  {
1403
1632
  "name": "rules",
1404
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
1633
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
1405
1634
  "default": "-",
1406
1635
  "value": {
1407
- "type": "Array<(value: any) => any>",
1636
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
1408
1637
  "kind": "expression"
1409
1638
  }
1410
1639
  }
@@ -1471,7 +1700,7 @@
1471
1700
  {
1472
1701
  "name": "options",
1473
1702
  "description": "Specifies options",
1474
- "default": "-",
1703
+ "default": "[]",
1475
1704
  "value": {
1476
1705
  "type": "CheckboxGroupOption[]",
1477
1706
  "kind": "expression"
@@ -1497,10 +1726,10 @@
1497
1726
  },
1498
1727
  {
1499
1728
  "name": "rules",
1500
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
1729
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
1501
1730
  "default": "-",
1502
1731
  "value": {
1503
- "type": "Array<(value: any[]) => any>",
1732
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
1504
1733
  "kind": "expression"
1505
1734
  }
1506
1735
  }
@@ -2124,16 +2353,16 @@
2124
2353
  "description": "Timing to trigger validation,Optional value is `onInputChange` `onLazyChange` `onIncrement` `onDecrement`",
2125
2354
  "default": "['onIncrement', 'onDecrement', 'onInputChange', 'onLazyChange']",
2126
2355
  "value": {
2127
- "type": "ValidateTriggers[]",
2356
+ "type": "CounterValidateTrigger[]",
2128
2357
  "kind": "expression"
2129
2358
  }
2130
2359
  },
2131
2360
  {
2132
2361
  "name": "rules",
2133
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
2362
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
2134
2363
  "default": "-",
2135
2364
  "value": {
2136
- "type": "Array<(value: number) => any>",
2365
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
2137
2366
  "kind": "expression"
2138
2367
  }
2139
2368
  }
@@ -3857,16 +4086,16 @@
3857
4086
  "description": "Timing to trigger validation, The optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput`",
3858
4087
  "default": "['onInput', 'onClear']",
3859
4088
  "value": {
3860
- "type": "ValidateTriggers[]",
4089
+ "type": "InputValidateTrigger[]",
3861
4090
  "kind": "expression"
3862
4091
  }
3863
4092
  },
3864
4093
  {
3865
4094
  "name": "rules",
3866
- "description": "The validation rules, return `true` to indicate that the validation passed,The remaining values are converted to text as user prompts",
4095
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
3867
4096
  "default": "-",
3868
4097
  "value": {
3869
- "type": "Array<(v: string) => any>",
4098
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
3870
4099
  "kind": "expression"
3871
4100
  }
3872
4101
  },
@@ -4681,7 +4910,7 @@
4681
4910
  {
4682
4911
  "name": "options",
4683
4912
  "description": "Specifies options",
4684
- "default": "-",
4913
+ "default": "[]",
4685
4914
  "value": {
4686
4915
  "type": "MenuSelectOption[]",
4687
4916
  "kind": "expression"
@@ -5683,10 +5912,10 @@
5683
5912
  },
5684
5913
  {
5685
5914
  "name": "rules",
5686
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
5915
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
5687
5916
  "default": "-",
5688
5917
  "value": {
5689
- "type": "Array<(value: any) => any>",
5918
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
5690
5919
  "kind": "expression"
5691
5920
  }
5692
5921
  }
@@ -5740,7 +5969,7 @@
5740
5969
  {
5741
5970
  "name": "options",
5742
5971
  "description": "Specifies options",
5743
- "default": "-",
5972
+ "default": "[]",
5744
5973
  "value": {
5745
5974
  "type": "RadioGroupOption[]",
5746
5975
  "kind": "expression"
@@ -5766,10 +5995,10 @@
5766
5995
  },
5767
5996
  {
5768
5997
  "name": "rules",
5769
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
5998
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
5770
5999
  "default": "-",
5771
6000
  "value": {
5772
- "type": "Array<(value: any) => any>",
6001
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
5773
6002
  "kind": "expression"
5774
6003
  }
5775
6004
  }
@@ -6058,7 +6287,7 @@
6058
6287
  {
6059
6288
  "name": "options",
6060
6289
  "description": "Specifies options",
6061
- "default": "-",
6290
+ "default": "[]",
6062
6291
  "value": {
6063
6292
  "type": "SelectOption[]",
6064
6293
  "kind": "expression"
@@ -6087,16 +6316,16 @@
6087
6316
  "description": "Timing to trigger validation, optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose`",
6088
6317
  "default": "['onChange', 'onClear', 'onClose']",
6089
6318
  "value": {
6090
- "type": "ValidateTriggers[]",
6319
+ "type": "SelectValidateTrigger[]",
6091
6320
  "kind": "expression"
6092
6321
  }
6093
6322
  },
6094
6323
  {
6095
6324
  "name": "rules",
6096
- "description": "The validation rules, return `true` to indicate that the validation passed, The remaining values are converted to text as user prompts",
6325
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
6097
6326
  "default": "-",
6098
6327
  "value": {
6099
- "type": "Array<(v: any | any[]) => any>",
6328
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
6100
6329
  "kind": "expression"
6101
6330
  }
6102
6331
  }
@@ -6410,10 +6639,10 @@
6410
6639
  },
6411
6640
  {
6412
6641
  "name": "rules",
6413
- "description": "Validation rules",
6642
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
6414
6643
  "default": "-",
6415
6644
  "value": {
6416
- "type": "Array<(v: number | number[]) => any>",
6645
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
6417
6646
  "kind": "expression"
6418
6647
  }
6419
6648
  }
@@ -7119,10 +7348,10 @@
7119
7348
  },
7120
7349
  {
7121
7350
  "name": "rules",
7122
- "description": "Validation rules",
7351
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
7123
7352
  "default": "-",
7124
7353
  "value": {
7125
- "type": "Array<(value: any) => any>",
7354
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
7126
7355
  "kind": "expression"
7127
7356
  }
7128
7357
  },
@@ -7140,7 +7369,7 @@
7140
7369
  "description": "Timing to trigger verification, optional values are `onChange` `onLazyChange`",
7141
7370
  "default": "['onChange', 'onLazyChange']",
7142
7371
  "value": {
7143
- "type": "ValidateTriggers[]",
7372
+ "type": "SwitchValidateTrigger[]",
7144
7373
  "kind": "expression"
7145
7374
  }
7146
7375
  },
@@ -7647,6 +7876,15 @@
7647
7876
  "kind": "expression"
7648
7877
  }
7649
7878
  },
7879
+ {
7880
+ "name": "text-color",
7881
+ "description": "Tooltip text color",
7882
+ "default": "-",
7883
+ "value": {
7884
+ "type": "string",
7885
+ "kind": "expression"
7886
+ }
7887
+ },
7650
7888
  {
7651
7889
  "name": "type",
7652
7890
  "description": "Tooltip type, can be set to `default` `primary` `info` `success` `warning` `danger`",
@@ -7936,16 +8174,16 @@
7936
8174
  "description": "Timing to trigger validation. The optional value is `onChange` `onRemove`",
7937
8175
  "default": "['onChange', 'onRemove']",
7938
8176
  "value": {
7939
- "type": "ValidateTriggers[]",
8177
+ "type": "UploaderValidateTrigger[]",
7940
8178
  "kind": "expression"
7941
8179
  }
7942
8180
  },
7943
8181
  {
7944
8182
  "name": "rules",
7945
- "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
8183
+ "description": "Validation rules, return `true` to indicate verification passes, other types of values ​​will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
7946
8184
  "default": "-",
7947
8185
  "value": {
7948
- "type": "Array<(v: VarFile, u: VarFileUtils) => any>",
8186
+ "type": "(v: string) => any | ZodType | Array<(v: string) => any | ZodType>",
7949
8187
  "kind": "expression"
7950
8188
  }
7951
8189
  }