@varlet/ui 2.14.2 → 2.15.0-alpha.1692990022445

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 (91) hide show
  1. package/es/action-sheet/props.mjs +2 -7
  2. package/es/app-bar/props.mjs +8 -29
  3. package/es/avatar/Avatar.mjs +6 -6
  4. package/es/avatar/props.mjs +8 -36
  5. package/es/avatar-group/props.mjs +2 -7
  6. package/es/back-top/props.mjs +3 -9
  7. package/es/badge/props.mjs +7 -27
  8. package/es/bottom-navigation/props.mjs +7 -22
  9. package/es/bottom-navigation-item/props.mjs +3 -9
  10. package/es/breadcrumb/props.mjs +1 -3
  11. package/es/button/props.mjs +14 -57
  12. package/es/button-group/props.mjs +6 -25
  13. package/es/cell/props.mjs +10 -32
  14. package/es/checkbox/Checkbox.mjs +23 -19
  15. package/es/checkbox/props.mjs +10 -22
  16. package/es/checkbox-group/props.mjs +4 -12
  17. package/es/chip/props.mjs +7 -28
  18. package/es/col/props.mjs +9 -35
  19. package/es/collapse/props.mjs +2 -7
  20. package/es/collapse-item/CollapseItem.mjs +15 -5
  21. package/es/collapse-item/props.mjs +3 -10
  22. package/es/counter/props.mjs +14 -48
  23. package/es/date-picker/props.mjs +10 -35
  24. package/es/dialog/props.mjs +13 -42
  25. package/es/divider/props.mjs +5 -18
  26. package/es/drag/Drag.mjs +20 -27
  27. package/es/drag/props.mjs +2 -7
  28. package/es/ellipsis/props.mjs +2 -10
  29. package/es/fab/props.mjs +14 -51
  30. package/es/field-decorator/props.mjs +13 -46
  31. package/es/form/props.mjs +3 -15
  32. package/es/icon/props.mjs +4 -12
  33. package/es/image/props.mjs +9 -33
  34. package/es/image-preview/ImagePreview.mjs +49 -66
  35. package/es/image-preview/props.mjs +4 -15
  36. package/es/index-anchor/props.mjs +1 -3
  37. package/es/index-bar/props.mjs +4 -15
  38. package/es/index.bundle.mjs +1 -1
  39. package/es/index.mjs +1 -1
  40. package/es/input/Input.mjs +12 -29
  41. package/es/input/props.mjs +9 -33
  42. package/es/link/props.mjs +9 -33
  43. package/es/list/props.mjs +6 -21
  44. package/es/loading/props.mjs +6 -23
  45. package/es/loading-bar/props.mjs +5 -16
  46. package/es/menu/props.mjs +9 -37
  47. package/es/option/Option.mjs +18 -4
  48. package/es/overlay/props.mjs +2 -7
  49. package/es/pagination/props.mjs +4 -14
  50. package/es/paper/props.mjs +6 -21
  51. package/es/picker/props.mjs +7 -23
  52. package/es/popup/props.mjs +7 -26
  53. package/es/progress/props.mjs +8 -31
  54. package/es/pull-refresh/props.mjs +7 -29
  55. package/es/radio/Radio.mjs +5 -11
  56. package/es/radio/props.mjs +6 -20
  57. package/es/radio-group/props.mjs +2 -8
  58. package/es/rate/Rate.mjs +12 -9
  59. package/es/rate/props.mjs +11 -37
  60. package/es/result/props.mjs +4 -14
  61. package/es/row/props.mjs +2 -10
  62. package/es/select/props.mjs +5 -20
  63. package/es/skeleton/props.mjs +7 -25
  64. package/es/slider/props.mjs +13 -46
  65. package/es/snackbar/props.mjs +8 -36
  66. package/es/space/Space.mjs +3 -3
  67. package/es/space/props.mjs +4 -17
  68. package/es/step/props.mjs +2 -6
  69. package/es/steps/props.mjs +3 -11
  70. package/es/sticky/props.mjs +2 -8
  71. package/es/swipe/Swipe.mjs +51 -65
  72. package/es/swipe/props.mjs +3 -10
  73. package/es/switch/Switch.mjs +11 -7
  74. package/es/switch/props.mjs +8 -27
  75. package/es/tab/props.mjs +2 -7
  76. package/es/tab-item/props.mjs +1 -3
  77. package/es/tabs/props.mjs +14 -48
  78. package/es/tabs-items/props.mjs +1 -4
  79. package/es/time-picker/props.mjs +9 -31
  80. package/es/tooltip/props.mjs +11 -45
  81. package/es/uploader/props.mjs +7 -25
  82. package/es/utils/{jest.mjs → test.mjs} +19 -14
  83. package/es/varlet.esm.js +6687 -7777
  84. package/es/watermark/props.mjs +3 -10
  85. package/highlight/web-types.en-US.json +17 -4
  86. package/highlight/web-types.zh-CN.json +15 -2
  87. package/lib/varlet.cjs.js +710 -1742
  88. package/package.json +13 -12
  89. package/types/checkbox.d.ts +3 -0
  90. package/types/col.d.ts +7 -5
  91. package/umd/varlet.js +4 -4
package/lib/varlet.cjs.js CHANGED
@@ -616,6 +616,94 @@ function useInitialized(source, value) {
616
616
  }, { immediate: true });
617
617
  return initialized;
618
618
  }
619
+ function getDirection(x, y) {
620
+ if (x > y) {
621
+ return "horizontal";
622
+ }
623
+ if (y > x) {
624
+ return "vertical";
625
+ }
626
+ }
627
+ function useTouch() {
628
+ const startX = vue.ref(0);
629
+ const startY = vue.ref(0);
630
+ const deltaX = vue.ref(0);
631
+ const deltaY = vue.ref(0);
632
+ const offsetX = vue.ref(0);
633
+ const offsetY = vue.ref(0);
634
+ const prevX = vue.ref(0);
635
+ const prevY = vue.ref(0);
636
+ const moveX = vue.ref(0);
637
+ const moveY = vue.ref(0);
638
+ const direction = vue.ref();
639
+ const touching = vue.ref(false);
640
+ const startTime = vue.ref(0);
641
+ const distance = vue.ref(0);
642
+ const resetTouch = () => {
643
+ startX.value = 0;
644
+ startY.value = 0;
645
+ deltaX.value = 0;
646
+ deltaY.value = 0;
647
+ offsetX.value = 0;
648
+ offsetY.value = 0;
649
+ prevX.value = 0;
650
+ prevY.value = 0;
651
+ moveX.value = 0;
652
+ moveY.value = 0;
653
+ direction.value = void 0;
654
+ touching.value = false;
655
+ startTime.value = 0;
656
+ distance.value = 0;
657
+ };
658
+ const startTouch = (event) => {
659
+ resetTouch();
660
+ const { clientX: x, clientY: y } = event.touches[0];
661
+ startX.value = x;
662
+ startY.value = y;
663
+ prevX.value = x;
664
+ prevY.value = y;
665
+ touching.value = true;
666
+ startTime.value = performance.now();
667
+ };
668
+ const moveTouch = (event) => {
669
+ const { clientX: x, clientY: y } = event.touches[0];
670
+ deltaX.value = x - startX.value;
671
+ deltaY.value = y - startY.value;
672
+ offsetX.value = Math.abs(deltaX.value);
673
+ offsetY.value = Math.abs(deltaY.value);
674
+ distance.value = Math.sqrt(offsetX.value ** 2 + offsetY.value ** 2);
675
+ moveX.value = x - prevX.value;
676
+ moveY.value = y - prevY.value;
677
+ if (!direction.value) {
678
+ direction.value = getDirection(offsetX.value, offsetY.value);
679
+ }
680
+ prevX.value = x;
681
+ prevY.value = y;
682
+ };
683
+ const endTouch = () => {
684
+ touching.value = false;
685
+ };
686
+ return {
687
+ startX,
688
+ startY,
689
+ deltaX,
690
+ deltaY,
691
+ offsetX,
692
+ offsetY,
693
+ prevX,
694
+ prevY,
695
+ moveX,
696
+ moveY,
697
+ direction,
698
+ touching,
699
+ startTime,
700
+ distance,
701
+ resetTouch,
702
+ startTouch,
703
+ moveTouch,
704
+ endTouch
705
+ };
706
+ }
619
707
  function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
620
708
  try {
621
709
  var info = gen[key](arg);
@@ -1034,32 +1122,19 @@ var Ripple = {
1034
1122
  };
1035
1123
  var _RippleComponent = Ripple;
1036
1124
  const Ripple$1 = Ripple;
1037
- function positionValidator$4(position) {
1038
- return ["top", "bottom", "right", "left", "center"].includes(position);
1039
- }
1040
1125
  var props$1c = {
1041
- show: {
1042
- type: Boolean,
1043
- default: false
1044
- },
1126
+ show: Boolean,
1045
1127
  position: {
1046
1128
  type: String,
1047
- default: "center",
1048
- validator: positionValidator$4
1049
- },
1050
- transition: {
1051
- type: String
1129
+ default: "center"
1052
1130
  },
1131
+ transition: String,
1053
1132
  overlay: {
1054
1133
  type: Boolean,
1055
1134
  default: true
1056
1135
  },
1057
- overlayClass: {
1058
- type: String
1059
- },
1060
- overlayStyle: {
1061
- type: Object
1062
- },
1136
+ overlayClass: String,
1137
+ overlayStyle: Object,
1063
1138
  lockScroll: {
1064
1139
  type: Boolean,
1065
1140
  default: true
@@ -1072,14 +1147,8 @@ var props$1c = {
1072
1147
  type: Boolean,
1073
1148
  default: true
1074
1149
  },
1075
- safeArea: {
1076
- type: Boolean,
1077
- default: false
1078
- },
1079
- safeAreaTop: {
1080
- type: Boolean,
1081
- default: false
1082
- },
1150
+ safeArea: Boolean,
1151
+ safeAreaTop: Boolean,
1083
1152
  teleport: {
1084
1153
  type: [String, Object, Boolean],
1085
1154
  default: "body"
@@ -1317,15 +1386,9 @@ const Popup = vue.defineComponent({
1317
1386
  withInstall(Popup);
1318
1387
  var _PopupComponent = Popup;
1319
1388
  var props$1b = {
1320
- name: {
1321
- type: String
1322
- },
1323
- size: {
1324
- type: [Number, String]
1325
- },
1326
- color: {
1327
- type: String
1328
- },
1389
+ name: String,
1390
+ size: [Number, String],
1391
+ color: String,
1329
1392
  namespace: {
1330
1393
  type: String,
1331
1394
  default: "var-icon"
@@ -1334,9 +1397,7 @@ var props$1b = {
1334
1397
  type: [Number, String],
1335
1398
  default: 0
1336
1399
  },
1337
- animationClass: {
1338
- type: String
1339
- },
1400
+ animationClass: String,
1340
1401
  onClick: defineListenerProp()
1341
1402
  };
1342
1403
  function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
@@ -1447,17 +1508,12 @@ function _extends$n() {
1447
1508
  return _extends$n.apply(this, arguments);
1448
1509
  }
1449
1510
  var props$1a = _extends$n({
1450
- show: {
1451
- type: Boolean,
1452
- default: false
1453
- },
1511
+ show: Boolean,
1512
+ title: String,
1454
1513
  actions: {
1455
1514
  type: Array,
1456
1515
  default: () => []
1457
1516
  },
1458
- title: {
1459
- type: String
1460
- },
1461
1517
  closeOnClickAction: {
1462
1518
  type: Boolean,
1463
1519
  default: true
@@ -1958,43 +2014,22 @@ ActionSheet.Component = VarActionSheet;
1958
2014
  withInstall(VarActionSheet);
1959
2015
  withInstall(VarActionSheet, ActionSheet);
1960
2016
  var _ActionSheetComponent = VarActionSheet;
1961
- function positionValidator$3(position) {
1962
- var validPositions = ["left", "center", "right"];
1963
- return validPositions.includes(position);
1964
- }
1965
2017
  var props$19 = {
1966
- color: {
1967
- type: String
1968
- },
1969
- textColor: {
1970
- type: String
1971
- },
1972
- title: {
1973
- type: String
1974
- },
2018
+ color: String,
2019
+ textColor: String,
2020
+ title: String,
1975
2021
  titlePosition: {
1976
2022
  type: String,
1977
- default: "left",
1978
- validator: positionValidator$3
2023
+ default: "left"
1979
2024
  },
1980
2025
  elevation: {
1981
2026
  type: [Boolean, String, Number],
1982
2027
  default: true
1983
2028
  },
1984
- round: {
1985
- type: Boolean,
1986
- default: false
1987
- },
1988
- image: {
1989
- type: String
1990
- },
1991
- imageLinearGradient: {
1992
- type: String
1993
- },
1994
- safeAreaTop: {
1995
- type: Boolean,
1996
- default: false
1997
- }
2029
+ round: Boolean,
2030
+ image: String,
2031
+ imageLinearGradient: String,
2032
+ safeAreaTop: Boolean
1998
2033
  };
1999
2034
  var {
2000
2035
  n: n$1g,
@@ -2373,13 +2408,6 @@ var Lazy = {
2373
2408
  };
2374
2409
  var _LazyComponent = Lazy;
2375
2410
  const Lazy$1 = Lazy;
2376
- function fitValidator$2(fit) {
2377
- return ["fill", "contain", "cover", "none", "scale-down"].includes(fit);
2378
- }
2379
- var internalSizeValidator$1 = (size) => ["mini", "small", "normal", "large"].includes(size);
2380
- function sizeValidator$6(size) {
2381
- return internalSizeValidator$1(size) || isNumber(size) || isString(size);
2382
- }
2383
2411
  var props$18 = {
2384
2412
  round: {
2385
2413
  type: Boolean,
@@ -2387,44 +2415,25 @@ var props$18 = {
2387
2415
  },
2388
2416
  size: {
2389
2417
  type: [String, Number],
2390
- validator: sizeValidator$6,
2391
2418
  default: "normal"
2392
2419
  },
2393
- alt: {
2394
- type: String
2395
- },
2396
- color: {
2397
- type: String
2398
- },
2399
- src: {
2400
- type: String
2401
- },
2420
+ alt: String,
2421
+ color: String,
2422
+ src: String,
2402
2423
  fit: {
2403
2424
  type: String,
2404
- validator: fitValidator$2,
2405
2425
  default: "cover"
2406
2426
  },
2407
- bordered: {
2408
- type: Boolean,
2409
- default: false
2410
- },
2411
- borderColor: {
2412
- type: String
2413
- },
2414
- loading: {
2415
- type: String
2416
- },
2417
- error: {
2418
- type: String
2419
- },
2420
- lazy: {
2421
- type: Boolean,
2422
- default: false
2423
- },
2427
+ bordered: Boolean,
2428
+ borderColor: String,
2429
+ loading: String,
2430
+ error: String,
2431
+ lazy: Boolean,
2424
2432
  onClick: defineListenerProp(),
2425
2433
  onLoad: defineListenerProp(),
2426
2434
  onError: defineListenerProp()
2427
2435
  };
2436
+ var isInternalSize$1 = (size) => ["mini", "small", "normal", "large"].includes(size);
2428
2437
  var {
2429
2438
  n: n$1f,
2430
2439
  classes: classes$12
@@ -2437,10 +2446,10 @@ function __render__$1f(_ctx, _cache) {
2437
2446
  "div",
2438
2447
  {
2439
2448
  ref: "avatarElement",
2440
- class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.internalSizeValidator(_ctx.size), _ctx.n("--" + _ctx.size)], [_ctx.round, _ctx.n("--round")], [_ctx.bordered, _ctx.n("--bordered")])),
2449
+ class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"), [_ctx.isInternalSize(_ctx.size), _ctx.n("--" + _ctx.size)], [_ctx.round, _ctx.n("--round")], [_ctx.bordered, _ctx.n("--bordered")])),
2441
2450
  style: vue.normalizeStyle({
2442
- width: !_ctx.internalSizeValidator(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : void 0,
2443
- height: !_ctx.internalSizeValidator(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : void 0,
2451
+ width: !_ctx.isInternalSize(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : void 0,
2452
+ height: !_ctx.isInternalSize(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : void 0,
2444
2453
  borderColor: _ctx.borderColor,
2445
2454
  backgroundColor: _ctx.color
2446
2455
  }),
@@ -2547,8 +2556,7 @@ var __sfc__$1g = vue.defineComponent({
2547
2556
  onSmartMounted(getScale);
2548
2557
  vue.onUpdated(getScale);
2549
2558
  return {
2550
- internalSizeValidator: internalSizeValidator$1,
2551
- sizeValidator: sizeValidator$6,
2559
+ isInternalSize: isInternalSize$1,
2552
2560
  toSizeUnit,
2553
2561
  n: n$1f,
2554
2562
  classes: classes$12,
@@ -2566,13 +2574,8 @@ const Avatar = __sfc__$1g;
2566
2574
  withInstall(Avatar);
2567
2575
  var _AvatarComponent = Avatar;
2568
2576
  var props$17 = {
2569
- offset: {
2570
- type: [Number, String]
2571
- },
2572
- vertical: {
2573
- type: Boolean,
2574
- default: false
2575
- }
2577
+ offset: [Number, String],
2578
+ vertical: Boolean
2576
2579
  };
2577
2580
  var {
2578
2581
  n: n$1e,
@@ -2614,36 +2617,19 @@ __sfc__$1f.render = __render__$1e;
2614
2617
  const AvatarGroup = __sfc__$1f;
2615
2618
  withInstall(AvatarGroup);
2616
2619
  var _AvatarGroupComponent = AvatarGroup;
2617
- function typeValidator$b(type) {
2618
- return ["circle", "wave", "cube", "rect", "disappear"].includes(type);
2619
- }
2620
- function sizeValidator$5(size) {
2621
- return ["normal", "mini", "small", "large"].includes(size);
2622
- }
2623
2620
  var props$16 = {
2624
2621
  type: {
2625
2622
  type: String,
2626
- default: "circle",
2627
- validator: typeValidator$b
2628
- },
2629
- radius: {
2630
- type: [String, Number]
2623
+ default: "circle"
2631
2624
  },
2625
+ radius: [String, Number],
2632
2626
  size: {
2633
2627
  type: String,
2634
- default: "normal",
2635
- validator: sizeValidator$5
2636
- },
2637
- color: {
2638
- type: String
2639
- },
2640
- description: {
2641
- type: String
2628
+ default: "normal"
2642
2629
  },
2643
- loading: {
2644
- type: Boolean,
2645
- default: false
2646
- }
2630
+ color: String,
2631
+ description: String,
2632
+ loading: Boolean
2647
2633
  };
2648
2634
  var {
2649
2635
  n: n$1d,
@@ -3003,74 +2989,31 @@ function _extends$j() {
3003
2989
  };
3004
2990
  return _extends$j.apply(this, arguments);
3005
2991
  }
3006
- function typeValidator$a(type) {
3007
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
3008
- }
3009
- function sizeValidator$4(size) {
3010
- return ["normal", "mini", "small", "large"].includes(size);
3011
- }
3012
- function nativeTypeValidator(nativeType) {
3013
- return ["button", "reset", "submit"].includes(nativeType);
3014
- }
3015
2992
  var props$14 = {
3016
- type: {
3017
- type: String,
3018
- validator: typeValidator$a
3019
- },
2993
+ type: String,
3020
2994
  nativeType: {
3021
2995
  type: String,
3022
- default: "button",
3023
- validator: nativeTypeValidator
3024
- },
3025
- size: {
3026
- type: String,
3027
- validator: sizeValidator$4
3028
- },
3029
- loading: {
3030
- type: Boolean,
3031
- default: false
3032
- },
3033
- round: {
3034
- type: Boolean,
3035
- default: false
3036
- },
3037
- block: {
3038
- type: Boolean,
3039
- default: false
3040
- },
3041
- text: {
3042
- type: Boolean,
3043
- default: false
3044
- },
3045
- outline: {
3046
- type: Boolean,
3047
- default: false
3048
- },
3049
- disabled: {
3050
- type: Boolean,
3051
- default: false
3052
- },
2996
+ default: "button"
2997
+ },
2998
+ size: String,
2999
+ loading: Boolean,
3000
+ round: Boolean,
3001
+ block: Boolean,
3002
+ text: Boolean,
3003
+ outline: Boolean,
3004
+ disabled: Boolean,
3005
+ autoLoading: Boolean,
3053
3006
  ripple: {
3054
3007
  type: Boolean,
3055
3008
  default: true
3056
3009
  },
3057
- color: {
3058
- type: String
3059
- },
3060
- textColor: {
3061
- type: String
3062
- },
3010
+ color: String,
3011
+ textColor: String,
3063
3012
  elevation: {
3064
3013
  type: [Boolean, Number, String],
3065
3014
  default: true
3066
3015
  },
3067
- autoLoading: {
3068
- type: Boolean,
3069
- default: false
3070
- },
3071
- loadingRadius: {
3072
- type: [Number, String]
3073
- },
3016
+ loadingRadius: [Number, String],
3074
3017
  loadingType: pickProps(props$16, "type"),
3075
3018
  loadingSize: pickProps(props$16, "size"),
3076
3019
  loadingColor: _extends$j({}, pickProps(props$16, "color"), {
@@ -3257,19 +3200,13 @@ var props$13 = {
3257
3200
  type: Number,
3258
3201
  default: 300
3259
3202
  },
3260
- right: {
3261
- type: [Number, String]
3262
- },
3203
+ right: [Number, String],
3263
3204
  elevation: {
3264
3205
  type: [Boolean, Number, String],
3265
3206
  default: true
3266
3207
  },
3267
- bottom: {
3268
- type: [Number, String]
3269
- },
3270
- target: {
3271
- type: [String, Object]
3272
- },
3208
+ bottom: [Number, String],
3209
+ target: [String, Object],
3273
3210
  onClick: defineListenerProp()
3274
3211
  };
3275
3212
  var {
@@ -3368,44 +3305,24 @@ __sfc__$1b.render = __render__$1a;
3368
3305
  const BackTop = __sfc__$1b;
3369
3306
  withInstall(BackTop);
3370
3307
  var _BackTopComponent = BackTop;
3371
- function typeValidator$9(type) {
3372
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
3373
- }
3374
- function positionValidator$2(position) {
3375
- return ["right-top", "right-bottom", "left-top", "left-bottom"].includes(position);
3376
- }
3377
3308
  var props$12 = {
3378
3309
  type: {
3379
3310
  type: String,
3380
- default: "default",
3381
- validator: typeValidator$9
3311
+ default: "default"
3382
3312
  },
3383
3313
  position: {
3384
3314
  type: String,
3385
- default: "right-top",
3386
- validator: positionValidator$2
3387
- },
3388
- hidden: {
3389
- type: Boolean,
3390
- default: false
3315
+ default: "right-top"
3391
3316
  },
3317
+ hidden: Boolean,
3392
3318
  value: {
3393
3319
  type: [String, Number],
3394
3320
  default: 0
3395
3321
  },
3396
- maxValue: {
3397
- type: [String, Number]
3398
- },
3399
- dot: {
3400
- type: Boolean,
3401
- default: false
3402
- },
3403
- icon: {
3404
- type: String
3405
- },
3406
- color: {
3407
- type: String
3408
- }
3322
+ maxValue: [String, Number],
3323
+ dot: Boolean,
3324
+ icon: String,
3325
+ color: String
3409
3326
  };
3410
3327
  var {
3411
3328
  n: n$19,
@@ -3486,35 +3403,20 @@ var props$11 = {
3486
3403
  type: [Number, String],
3487
3404
  default: 0
3488
3405
  },
3489
- fixed: {
3490
- type: Boolean,
3491
- default: false
3492
- },
3493
- border: {
3494
- type: Boolean,
3495
- default: false
3496
- },
3497
- safeArea: {
3498
- type: Boolean,
3499
- default: false
3500
- },
3501
3406
  zIndex: {
3502
3407
  type: [Number, String],
3503
3408
  default: 1
3504
3409
  },
3505
- activeColor: {
3506
- type: String
3507
- },
3508
- inactiveColor: {
3509
- type: String
3510
- },
3410
+ fixed: Boolean,
3411
+ border: Boolean,
3412
+ safeArea: Boolean,
3413
+ activeColor: String,
3414
+ inactiveColor: String,
3415
+ fabProps: Object,
3511
3416
  onChange: defineListenerProp(),
3512
- "onUpdate:active": defineListenerProp(),
3513
3417
  onBeforeChange: defineListenerProp(),
3514
3418
  onFabClick: defineListenerProp(),
3515
- fabProps: {
3516
- type: Object
3517
- }
3419
+ "onUpdate:active": defineListenerProp()
3518
3420
  };
3519
3421
  var BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY = Symbol("BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY");
3520
3422
  function useBottomNavigationItems() {
@@ -3721,15 +3623,9 @@ const BottomNavigation = __sfc__$19;
3721
3623
  withInstall(BottomNavigation);
3722
3624
  var _BottomNavigationComponent = BottomNavigation;
3723
3625
  var props$10 = {
3724
- name: {
3725
- type: String
3726
- },
3727
- icon: {
3728
- type: String
3729
- },
3730
- label: {
3731
- type: String
3732
- },
3626
+ name: String,
3627
+ icon: String,
3628
+ label: String,
3733
3629
  namespace: {
3734
3630
  type: String,
3735
3631
  default: "var-icon"
@@ -3874,9 +3770,7 @@ const BottomNavigationItem = __sfc__$18;
3874
3770
  withInstall(BottomNavigationItem);
3875
3771
  var _BottomNavigationItemComponent = BottomNavigationItem;
3876
3772
  var props$$ = {
3877
- separator: {
3878
- type: String
3879
- },
3773
+ separator: String,
3880
3774
  onClick: defineListenerProp()
3881
3775
  };
3882
3776
  var BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY = Symbol("BREADCRUMBS_BIND_BREADCRUMB_KEY");
@@ -4020,45 +3914,26 @@ __sfc__$16.render = __render__$15;
4020
3914
  const Breadcrumbs = __sfc__$16;
4021
3915
  withInstall(Breadcrumbs);
4022
3916
  var _BreadcrumbsComponent = Breadcrumbs;
4023
- function typeValidator$8(type) {
4024
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
4025
- }
4026
- function sizeValidator$3(size) {
4027
- return ["normal", "mini", "small", "large"].includes(size);
4028
- }
4029
- function modeValidator$1(mode) {
4030
- return ["normal", "text", "outline"].includes(mode);
4031
- }
4032
3917
  var props$Z = {
4033
3918
  type: {
4034
3919
  type: String,
4035
- default: "default",
4036
- validator: typeValidator$8
3920
+ default: "default"
4037
3921
  },
4038
3922
  size: {
4039
3923
  type: String,
4040
- default: "normal",
4041
- validator: sizeValidator$3
4042
- },
4043
- color: {
4044
- type: String
4045
- },
4046
- textColor: {
4047
- type: String
3924
+ default: "normal"
4048
3925
  },
3926
+ color: String,
3927
+ textColor: String,
4049
3928
  mode: {
4050
3929
  type: String,
4051
- default: "normal",
4052
- validator: modeValidator$1
3930
+ default: "normal"
4053
3931
  },
4054
3932
  elevation: {
4055
3933
  type: [Boolean, Number, String],
4056
3934
  default: true
4057
3935
  },
4058
- vertical: {
4059
- type: Boolean,
4060
- default: false
4061
- }
3936
+ vertical: Boolean
4062
3937
  };
4063
3938
  var {
4064
3939
  n: n$14,
@@ -4102,7 +3977,7 @@ __sfc__$15.render = __render__$14;
4102
3977
  const ButtonGroup = __sfc__$15;
4103
3978
  withInstall(ButtonGroup);
4104
3979
  var _ButtonGroupComponent = ButtonGroup;
4105
- function fitValidator$1(fit) {
3980
+ function fitValidator(fit) {
4106
3981
  return ["fill", "contain", "cover", "none", "scale-down"].includes(fit);
4107
3982
  }
4108
3983
  var props$Y = {
@@ -4111,7 +3986,7 @@ var props$Y = {
4111
3986
  },
4112
3987
  fit: {
4113
3988
  type: String,
4114
- validator: fitValidator$1,
3989
+ validator: fitValidator,
4115
3990
  default: "cover"
4116
3991
  },
4117
3992
  imageHeight: {
@@ -4485,38 +4360,16 @@ const Card = __sfc__$14;
4485
4360
  withInstall(Card);
4486
4361
  var _CardComponent = Card;
4487
4362
  var props$X = {
4488
- title: {
4489
- type: [Number, String]
4490
- },
4491
- icon: {
4492
- type: String
4493
- },
4494
- description: {
4495
- type: String
4496
- },
4497
- border: {
4498
- type: Boolean,
4499
- default: false
4500
- },
4501
- borderOffset: {
4502
- type: [Number, String]
4503
- },
4504
- iconClass: {
4505
- type: String
4506
- },
4507
- titleClass: {
4508
- type: String
4509
- },
4510
- descriptionClass: {
4511
- type: String
4512
- },
4513
- extraClass: {
4514
- type: String
4515
- },
4516
- ripple: {
4517
- type: Boolean,
4518
- default: false
4519
- },
4363
+ title: [Number, String],
4364
+ icon: String,
4365
+ description: String,
4366
+ border: Boolean,
4367
+ borderOffset: [Number, String],
4368
+ iconClass: String,
4369
+ titleClass: String,
4370
+ descriptionClass: String,
4371
+ extraClass: String,
4372
+ ripple: Boolean,
4520
4373
  onClick: defineListenerProp()
4521
4374
  };
4522
4375
  var {
@@ -4724,37 +4577,25 @@ var props$V = {
4724
4577
  type: [String, Number, Boolean, Object, Array],
4725
4578
  default: false
4726
4579
  },
4727
- checkedColor: {
4728
- type: String
4729
- },
4730
- uncheckedColor: {
4731
- type: String
4732
- },
4733
- disabled: {
4734
- type: Boolean,
4735
- default: false
4736
- },
4737
- readonly: {
4738
- type: Boolean,
4739
- default: false
4740
- },
4741
- iconSize: {
4742
- type: [String, Number]
4743
- },
4580
+ checkedColor: String,
4581
+ uncheckedColor: String,
4582
+ disabled: Boolean,
4583
+ readonly: Boolean,
4584
+ indeterminate: Boolean,
4585
+ iconSize: [String, Number],
4744
4586
  ripple: {
4745
4587
  type: Boolean,
4746
4588
  default: true
4747
4589
  },
4748
4590
  validateTrigger: {
4749
4591
  type: Array,
4750
- default: ["onChange"]
4751
- },
4752
- rules: {
4753
- type: Array
4592
+ default: () => ["onChange"]
4754
4593
  },
4594
+ rules: Array,
4755
4595
  onClick: defineListenerProp(),
4756
4596
  onChange: defineListenerProp(),
4757
- "onUpdate:modelValue": defineListenerProp()
4597
+ "onUpdate:modelValue": defineListenerProp(),
4598
+ "onUpdate:indeterminate": defineListenerProp()
4758
4599
  };
4759
4600
  var CHECKBOX_GROUP_BIND_CHECKBOX_KEY = Symbol("CHECKBOX_GROUP_BIND_CHECKBOX_KEY");
4760
4601
  function useCheckboxes() {
@@ -4852,26 +4693,33 @@ function __render__$10(_ctx, _cache) {
4852
4693
  [vue.withDirectives((vue.openBlock(), vue.createElementBlock(
4853
4694
  "div",
4854
4695
  {
4855
- class: vue.normalizeClass(_ctx.classes(_ctx.n("action"), [_ctx.checked, _ctx.n("--checked"), _ctx.n("--unchecked")], [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage, _ctx.n("--error")], [_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")])),
4696
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("action"), [_ctx.checked || _ctx.isIndeterminate, _ctx.n("--checked"), _ctx.n("--unchecked")], [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage, _ctx.n("--error")], [_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")])),
4856
4697
  style: vue.normalizeStyle({
4857
- color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
4698
+ color: _ctx.checked || _ctx.isIndeterminate ? _ctx.checkedColor : _ctx.uncheckedColor
4858
4699
  })
4859
4700
  },
4860
- [_ctx.checked ? vue.renderSlot(_ctx.$slots, "checked-icon", {
4701
+ [_ctx.isIndeterminate ? vue.renderSlot(_ctx.$slots, "indeterminate-icon", {
4861
4702
  key: 0
4862
4703
  }, () => [vue.createVNode(_component_var_icon, {
4863
4704
  class: vue.normalizeClass(_ctx.classes(_ctx.n("icon"), [_ctx.withAnimation, _ctx.n("--with-animation")])),
4864
- name: "checkbox-marked",
4705
+ name: "minus-box",
4865
4706
  size: _ctx.iconSize,
4866
4707
  "var-checkbox-cover": ""
4867
- }, null, 8, ["class", "size"])]) : vue.renderSlot(_ctx.$slots, "unchecked-icon", {
4708
+ }, null, 8, ["class", "size"])]) : vue.createCommentVNode("v-if", true), _ctx.checked && !_ctx.isIndeterminate ? vue.renderSlot(_ctx.$slots, "checked-icon", {
4868
4709
  key: 1
4710
+ }, () => [vue.createVNode(_component_var_icon, {
4711
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("icon"), [_ctx.withAnimation, _ctx.n("--with-animation")])),
4712
+ name: "checkbox-marked",
4713
+ size: _ctx.iconSize,
4714
+ "var-checkbox-cover": ""
4715
+ }, null, 8, ["class", "size"])]) : vue.createCommentVNode("v-if", true), !_ctx.checked && !_ctx.isIndeterminate ? vue.renderSlot(_ctx.$slots, "unchecked-icon", {
4716
+ key: 2
4869
4717
  }, () => [vue.createVNode(_component_var_icon, {
4870
4718
  class: vue.normalizeClass(_ctx.classes(_ctx.n("icon"), [_ctx.withAnimation, _ctx.n("--with-animation")])),
4871
4719
  name: "checkbox-blank-outline",
4872
4720
  size: _ctx.iconSize,
4873
4721
  "var-checkbox-cover": ""
4874
- }, null, 8, ["class", "size"])]), vue.createVNode(_component_var_hover_overlay, {
4722
+ }, null, 8, ["class", "size"])]) : vue.createCommentVNode("v-if", true), vue.createVNode(_component_var_hover_overlay, {
4875
4723
  hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering
4876
4724
  }, null, 8, ["hovering"])],
4877
4725
  6
@@ -4909,7 +4757,7 @@ var __sfc__$11 = vue.defineComponent({
4909
4757
  },
4910
4758
  props: props$V,
4911
4759
  setup(props2) {
4912
- var value = vue.ref(false);
4760
+ var value = useVModel(props2, "modelValue");
4913
4761
  var checked = vue.computed(() => value.value === props2.checkedValue);
4914
4762
  var checkedValue = vue.computed(() => props2.checkedValue);
4915
4763
  var withAnimation = vue.ref(false);
@@ -4932,6 +4780,7 @@ var __sfc__$11 = vue.defineComponent({
4932
4780
  // expose
4933
4781
  resetValidation
4934
4782
  } = useValidation();
4783
+ var isIndeterminate = useVModel(props2, "indeterminate");
4935
4784
  var validateWithTrigger = (trigger) => {
4936
4785
  vue.nextTick(() => {
4937
4786
  var {
@@ -4943,12 +4792,12 @@ var __sfc__$11 = vue.defineComponent({
4943
4792
  });
4944
4793
  };
4945
4794
  var change = (changedValue) => {
4946
- value.value = changedValue;
4947
4795
  var {
4948
4796
  checkedValue: checkedValue2,
4949
4797
  onChange
4950
4798
  } = props2;
4951
- call(props2["onUpdate:modelValue"], value.value);
4799
+ value.value = changedValue;
4800
+ isIndeterminate.value = false;
4952
4801
  call(onChange, value.value);
4953
4802
  validateWithTrigger("onChange");
4954
4803
  changedValue === checkedValue2 ? checkboxGroup2 == null ? void 0 : checkboxGroup2.onChecked(checkedValue2) : checkboxGroup2 == null ? void 0 : checkboxGroup2.onUnchecked(checkedValue2);
@@ -4986,7 +4835,7 @@ var __sfc__$11 = vue.defineComponent({
4986
4835
  withAnimation.value = false;
4987
4836
  };
4988
4837
  var reset = () => {
4989
- call(props2["onUpdate:modelValue"], props2.uncheckedValue);
4838
+ value.value = props2.uncheckedValue;
4990
4839
  resetValidation();
4991
4840
  };
4992
4841
  var toggle = (changedValue) => {
@@ -5001,11 +4850,6 @@ var __sfc__$11 = vue.defineComponent({
5001
4850
  change(changedValue);
5002
4851
  };
5003
4852
  var validate = () => v(props2.rules, props2.modelValue);
5004
- vue.watch(() => props2.modelValue, (newValue) => {
5005
- value.value = newValue;
5006
- }, {
5007
- immediate: true
5008
- });
5009
4853
  var checkboxProvider = {
5010
4854
  checkedValue,
5011
4855
  checked,
@@ -5018,6 +4862,7 @@ var __sfc__$11 = vue.defineComponent({
5018
4862
  call(bindCheckboxGroup, checkboxProvider);
5019
4863
  call(bindForm, checkboxProvider);
5020
4864
  return {
4865
+ isIndeterminate,
5021
4866
  withAnimation,
5022
4867
  checked,
5023
4868
  errorMessage,
@@ -5040,29 +4885,21 @@ __sfc__$11.render = __render__$10;
5040
4885
  const Checkbox = __sfc__$11;
5041
4886
  withInstall(Checkbox);
5042
4887
  var _CheckboxComponent = Checkbox;
5043
- function directionValidator$5(direction) {
5044
- return ["horizontal", "vertical"].includes(direction);
5045
- }
5046
4888
  var props$U = {
5047
4889
  modelValue: {
5048
4890
  type: Array,
5049
4891
  default: () => []
5050
4892
  },
5051
- max: {
5052
- type: [String, Number]
5053
- },
4893
+ max: [String, Number],
5054
4894
  direction: {
5055
4895
  type: String,
5056
- default: "horizontal",
5057
- validator: directionValidator$5
4896
+ default: "horizontal"
5058
4897
  },
5059
4898
  validateTrigger: {
5060
4899
  type: Array,
5061
- default: ["onChange"]
5062
- },
5063
- rules: {
5064
- type: Array
4900
+ default: () => ["onChange"]
5065
4901
  },
4902
+ rules: Array,
5066
4903
  onChange: defineListenerProp(),
5067
4904
  "onUpdate:modelValue": defineListenerProp()
5068
4905
  };
@@ -5224,46 +5061,25 @@ __sfc__$10.render = __render__$$;
5224
5061
  const CheckboxGroup = __sfc__$10;
5225
5062
  withInstall(CheckboxGroup);
5226
5063
  var _CheckboxGroupComponent = CheckboxGroup;
5227
- function typeValidator$7(type) {
5228
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
5229
- }
5230
- function sizeValidator$2(size) {
5231
- return ["normal", "mini", "small", "large"].includes(size);
5232
- }
5233
5064
  var props$T = {
5234
5065
  type: {
5235
5066
  type: String,
5236
- default: "default",
5237
- validator: typeValidator$7
5067
+ default: "default"
5238
5068
  },
5239
5069
  size: {
5240
5070
  type: String,
5241
- default: "normal",
5242
- validator: sizeValidator$2
5243
- },
5244
- color: {
5245
- type: String
5246
- },
5247
- textColor: {
5248
- type: String
5071
+ default: "normal"
5249
5072
  },
5073
+ color: String,
5074
+ textColor: String,
5250
5075
  iconName: pickProps(props$1b, "name"),
5251
- plain: {
5252
- type: Boolean,
5253
- default: false
5254
- },
5076
+ plain: Boolean,
5255
5077
  round: {
5256
5078
  type: Boolean,
5257
5079
  default: true
5258
5080
  },
5259
- block: {
5260
- type: Boolean,
5261
- default: false
5262
- },
5263
- closable: {
5264
- type: Boolean,
5265
- default: false
5266
- },
5081
+ block: Boolean,
5082
+ closable: Boolean,
5267
5083
  onClose: defineListenerProp()
5268
5084
  };
5269
5085
  var {
@@ -5365,15 +5181,6 @@ __sfc__$$.render = __render__$_;
5365
5181
  const Chip = __sfc__$$;
5366
5182
  withInstall(Chip);
5367
5183
  var _ChipComponent = Chip;
5368
- function directionValidator$4(direction) {
5369
- return ["row", "column"].includes(direction);
5370
- }
5371
- function justifyValidator$2(justify) {
5372
- return ["start", "end", "center", "space-around", "space-between", "flex-start", "flex-end"].includes(justify);
5373
- }
5374
- function alignValidator$2(align) {
5375
- return ["stretch", "center", "start", "end", "baseline", "initial", "inherit", "flex-start", "flex-end"].includes(align);
5376
- }
5377
5184
  var props$S = {
5378
5185
  span: {
5379
5186
  type: [String, Number],
@@ -5385,32 +5192,15 @@ var props$S = {
5385
5192
  },
5386
5193
  direction: {
5387
5194
  type: String,
5388
- default: "row",
5389
- validator: directionValidator$4
5390
- },
5391
- justify: {
5392
- type: String,
5393
- validator: justifyValidator$2
5394
- },
5395
- align: {
5396
- type: String,
5397
- validator: alignValidator$2
5398
- },
5399
- xs: {
5400
- type: [Object, Number, String]
5401
- },
5402
- sm: {
5403
- type: [Object, Number, String]
5404
- },
5405
- md: {
5406
- type: [Object, Number, String]
5407
- },
5408
- lg: {
5409
- type: [Object, Number, String]
5410
- },
5411
- xl: {
5412
- type: [Object, Number, String]
5195
+ default: "row"
5413
5196
  },
5197
+ justify: String,
5198
+ align: String,
5199
+ xs: [Object, Number, String],
5200
+ sm: [Object, Number, String],
5201
+ md: [Object, Number, String],
5202
+ lg: [Object, Number, String],
5203
+ xl: [Object, Number, String],
5414
5204
  onClick: defineListenerProp()
5415
5205
  };
5416
5206
  var ROW_BIND_COL_KEY = Symbol("ROW_BIND_COL_KEY");
@@ -5538,13 +5328,8 @@ function useCollapseItem() {
5538
5328
  };
5539
5329
  }
5540
5330
  var props$R = {
5541
- modelValue: {
5542
- type: [Array, String, Number]
5543
- },
5544
- accordion: {
5545
- type: Boolean,
5546
- default: false
5547
- },
5331
+ modelValue: [Array, String, Number],
5332
+ accordion: Boolean,
5548
5333
  offset: {
5549
5334
  type: Boolean,
5550
5335
  default: true
@@ -5698,20 +5483,13 @@ function useCollapse() {
5698
5483
  };
5699
5484
  }
5700
5485
  var props$Q = {
5701
- name: {
5702
- type: [String, Number]
5703
- },
5704
- title: {
5705
- type: String
5706
- },
5486
+ name: [String, Number],
5487
+ title: String,
5707
5488
  icon: {
5708
5489
  type: String,
5709
5490
  default: "chevron-down"
5710
5491
  },
5711
- disabled: {
5712
- type: Boolean,
5713
- default: false
5714
- }
5492
+ disabled: Boolean
5715
5493
  };
5716
5494
  var {
5717
5495
  n: n$X,
@@ -5832,22 +5610,31 @@ var __sfc__$Y = vue.defineComponent({
5832
5610
  }
5833
5611
  };
5834
5612
  var openPanel = () => {
5835
- if (!contentEl.value)
5613
+ if (!contentEl.value) {
5836
5614
  return;
5615
+ }
5837
5616
  contentEl.value.style.height = "";
5838
5617
  showContent.value = true;
5839
5618
  requestAnimationFrame(() => {
5619
+ if (!contentEl.value) {
5620
+ return;
5621
+ }
5840
5622
  var {
5841
5623
  offsetHeight
5842
5624
  } = contentEl.value;
5843
5625
  contentEl.value.style.height = "0px";
5844
5626
  requestAnimationFrame(() => {
5627
+ if (!contentEl.value) {
5628
+ return;
5629
+ }
5845
5630
  contentEl.value.style.height = offsetHeight + "px";
5846
- if (!isInitToTrigger)
5631
+ if (!isInitToTrigger) {
5847
5632
  return;
5633
+ }
5848
5634
  nextTickFrame(() => {
5849
- if (isInitToTrigger)
5635
+ if (isInitToTrigger) {
5850
5636
  transitionend();
5637
+ }
5851
5638
  });
5852
5639
  });
5853
5640
  });
@@ -8411,59 +8198,27 @@ var props$O = {
8411
8198
  type: [String, Number],
8412
8199
  default: 0
8413
8200
  },
8414
- min: {
8415
- type: [String, Number]
8416
- },
8417
- max: {
8418
- type: [String, Number]
8419
- },
8201
+ min: [String, Number],
8202
+ max: [String, Number],
8420
8203
  step: {
8421
8204
  type: [String, Number],
8422
8205
  default: 1
8423
8206
  },
8424
- color: {
8425
- type: String
8426
- },
8427
- inputWidth: {
8428
- type: [String, Number]
8429
- },
8430
- inputTextSize: {
8431
- type: [String, Number]
8432
- },
8433
- buttonSize: {
8434
- type: [String, Number]
8435
- },
8207
+ color: String,
8208
+ inputWidth: [String, Number],
8209
+ inputTextSize: [String, Number],
8210
+ buttonSize: [String, Number],
8436
8211
  elevation: {
8437
8212
  type: [Boolean, Number, String],
8438
8213
  default: true
8439
8214
  },
8440
- decimalLength: {
8441
- type: [String, Number]
8442
- },
8443
- disabled: {
8444
- type: Boolean,
8445
- default: false
8446
- },
8447
- readonly: {
8448
- type: Boolean,
8449
- default: false
8450
- },
8451
- disableIncrement: {
8452
- type: Boolean,
8453
- default: false
8454
- },
8455
- disableDecrement: {
8456
- type: Boolean,
8457
- default: false
8458
- },
8459
- disableInput: {
8460
- type: Boolean,
8461
- default: false
8462
- },
8463
- lazyChange: {
8464
- type: Boolean,
8465
- default: false
8466
- },
8215
+ decimalLength: [String, Number],
8216
+ disabled: Boolean,
8217
+ readonly: Boolean,
8218
+ disableIncrement: Boolean,
8219
+ disableDecrement: Boolean,
8220
+ disableInput: Boolean,
8221
+ lazyChange: Boolean,
8467
8222
  incrementButton: {
8468
8223
  type: Boolean,
8469
8224
  default: true
@@ -8484,9 +8239,7 @@ var props$O = {
8484
8239
  type: Array,
8485
8240
  default: () => ["onInputChange", "onLazyChange", "onIncrement", "onDecrement"]
8486
8241
  },
8487
- rules: {
8488
- type: Array
8489
- },
8242
+ rules: Array,
8490
8243
  onBeforeChange: defineListenerProp(),
8491
8244
  onChange: defineListenerProp(),
8492
8245
  onIncrement: defineListenerProp(),
@@ -9249,9 +9002,6 @@ const isSameOrAfter = function(o, c) {
9249
9002
  return this.isSame(that, units) || this.isAfter(that, units);
9250
9003
  };
9251
9004
  };
9252
- function typeValidator$6(type) {
9253
- return ["date", "month"].includes(type);
9254
- }
9255
9005
  var MONTH_LIST = [{
9256
9006
  index: "01"
9257
9007
  }, {
@@ -9293,23 +9043,14 @@ var WEEK_HEADER = [{
9293
9043
  index: "6"
9294
9044
  }];
9295
9045
  var props$N = {
9296
- modelValue: {
9297
- type: [String, Array]
9298
- },
9046
+ modelValue: [String, Array],
9299
9047
  type: {
9300
9048
  type: String,
9301
- default: "date",
9302
- validator: typeValidator$6
9303
- },
9304
- allowedDates: {
9305
- type: Function
9306
- },
9307
- color: {
9308
- type: String
9309
- },
9310
- headerColor: {
9311
- type: String
9049
+ default: "date"
9312
9050
  },
9051
+ allowedDates: Function,
9052
+ color: String,
9053
+ headerColor: String,
9313
9054
  elevation: {
9314
9055
  type: [Boolean, Number, String],
9315
9056
  default: false
@@ -9322,28 +9063,15 @@ var props$N = {
9322
9063
  type: [String, Number],
9323
9064
  default: 0
9324
9065
  },
9325
- min: {
9326
- type: String
9327
- },
9328
- max: {
9329
- type: String
9330
- },
9066
+ min: String,
9067
+ max: String,
9331
9068
  showCurrent: {
9332
9069
  type: Boolean,
9333
9070
  default: true
9334
9071
  },
9335
- readonly: {
9336
- type: Boolean,
9337
- default: false
9338
- },
9339
- multiple: {
9340
- type: Boolean,
9341
- default: false
9342
- },
9343
- range: {
9344
- type: Boolean,
9345
- default: false
9346
- },
9072
+ readonly: Boolean,
9073
+ multiple: Boolean,
9074
+ range: Boolean,
9347
9075
  touchable: {
9348
9076
  type: Boolean,
9349
9077
  default: true
@@ -10529,7 +10257,7 @@ var __sfc__$R = vue.defineComponent({
10529
10257
  startX = clientX;
10530
10258
  startY = clientY;
10531
10259
  };
10532
- var getDirection = (x, y) => x >= y && x > 20 ? "x" : "y";
10260
+ var getDirection2 = (x, y) => x >= y && x > 20 ? "x" : "y";
10533
10261
  var handleTouchmove = (event) => {
10534
10262
  if (isUntouchable.value)
10535
10263
  return;
@@ -10539,7 +10267,7 @@ var __sfc__$R = vue.defineComponent({
10539
10267
  } = event.touches[0];
10540
10268
  var x = clientX - startX;
10541
10269
  var y = clientY - startY;
10542
- touchDirection = getDirection(Math.abs(x), Math.abs(y));
10270
+ touchDirection = getDirection2(Math.abs(x), Math.abs(y));
10543
10271
  checkType = x > 0 ? "prev" : "next";
10544
10272
  };
10545
10273
  var handleTouchend = () => {
@@ -10783,27 +10511,14 @@ function _extends$e() {
10783
10511
  };
10784
10512
  return _extends$e.apply(this, arguments);
10785
10513
  }
10786
- function messageAlignValidator(messageAlign) {
10787
- return ["left", "center", "right"].includes(messageAlign);
10788
- }
10789
10514
  var props$M = _extends$e({
10790
- show: {
10791
- type: Boolean,
10792
- default: false
10793
- },
10794
- width: {
10795
- type: [Number, String]
10796
- },
10797
- title: {
10798
- type: String
10799
- },
10800
- message: {
10801
- type: String
10802
- },
10515
+ show: Boolean,
10516
+ width: [Number, String],
10517
+ title: String,
10518
+ message: String,
10803
10519
  messageAlign: {
10804
10520
  type: String,
10805
- default: "left",
10806
- validator: messageAlignValidator
10521
+ default: "left"
10807
10522
  },
10808
10523
  confirmButton: {
10809
10524
  type: Boolean,
@@ -10813,30 +10528,14 @@ var props$M = _extends$e({
10813
10528
  type: Boolean,
10814
10529
  default: true
10815
10530
  },
10816
- confirmButtonText: {
10817
- type: String
10818
- },
10819
- cancelButtonText: {
10820
- type: String
10821
- },
10822
- confirmButtonTextColor: {
10823
- type: String
10824
- },
10825
- cancelButtonTextColor: {
10826
- type: String
10827
- },
10828
- confirmButtonColor: {
10829
- type: String
10830
- },
10831
- cancelButtonColor: {
10832
- type: String
10833
- },
10834
- dialogClass: {
10835
- type: String
10836
- },
10837
- dialogStyle: {
10838
- type: Object
10839
- },
10531
+ confirmButtonText: String,
10532
+ cancelButtonText: String,
10533
+ confirmButtonTextColor: String,
10534
+ cancelButtonTextColor: String,
10535
+ confirmButtonColor: String,
10536
+ cancelButtonColor: String,
10537
+ dialogClass: String,
10538
+ dialogStyle: Object,
10840
10539
  onBeforeClose: defineListenerProp(),
10841
10540
  onConfirm: defineListenerProp(),
10842
10541
  onCancel: defineListenerProp(),
@@ -11151,24 +10850,11 @@ var props$L = {
11151
10850
  type: [Boolean, Number, String],
11152
10851
  default: false
11153
10852
  },
11154
- vertical: {
11155
- type: Boolean,
11156
- default: false
11157
- },
11158
- description: {
11159
- type: String
11160
- },
11161
- margin: {
11162
- type: String
11163
- },
11164
- dashed: {
11165
- type: Boolean,
11166
- default: false
11167
- },
11168
- hairline: {
11169
- type: Boolean,
11170
- default: false
11171
- }
10853
+ vertical: Boolean,
10854
+ description: String,
10855
+ margin: String,
10856
+ dashed: Boolean,
10857
+ hairline: Boolean
11172
10858
  };
11173
10859
  var {
11174
10860
  n: n$O,
@@ -11262,13 +10948,8 @@ var props$K = {
11262
10948
  type: String,
11263
10949
  default: "xy"
11264
10950
  },
11265
- attraction: {
11266
- type: String
11267
- },
11268
- disabled: {
11269
- type: Boolean,
11270
- default: false
11271
- },
10951
+ attraction: String,
10952
+ disabled: Boolean,
11272
10953
  boundary: {
11273
10954
  type: Object,
11274
10955
  default: () => ({
@@ -11388,50 +11069,45 @@ var __sfc__$O = vue.defineComponent({
11388
11069
  var dragged = vue.ref(false);
11389
11070
  var enableTransition = vue.ref(false);
11390
11071
  var dragging = vue.ref(false);
11072
+ var {
11073
+ touching,
11074
+ moveX,
11075
+ moveY,
11076
+ startTouch,
11077
+ moveTouch,
11078
+ endTouch,
11079
+ resetTouch
11080
+ } = useTouch();
11391
11081
  var {
11392
11082
  disabled: teleportDisabled
11393
11083
  } = useTeleport();
11394
- var touching = false;
11395
- var prevX = 0;
11396
- var prevY = 0;
11397
11084
  var draggingRunner = null;
11398
11085
  var handleTouchstart = (event) => {
11399
11086
  if (props2.disabled) {
11400
11087
  return;
11401
11088
  }
11402
- draggingRunner && window.clearTimeout(draggingRunner);
11403
- var {
11404
- clientX,
11405
- clientY
11406
- } = event.touches[0];
11089
+ if (draggingRunner) {
11090
+ window.clearTimeout(draggingRunner);
11091
+ }
11407
11092
  saveXY();
11408
- prevX = clientX;
11409
- prevY = clientY;
11410
- touching = true;
11093
+ startTouch(event);
11411
11094
  dragging.value = false;
11412
11095
  };
11413
11096
  var handleTouchmove = /* @__PURE__ */ function() {
11414
11097
  var _ref2 = _asyncToGenerator$b(function* (event) {
11415
- if (!touching || props2.disabled) {
11098
+ if (!touching.value || props2.disabled) {
11416
11099
  return;
11417
11100
  }
11418
11101
  event.preventDefault();
11419
11102
  enableTransition.value = false;
11420
11103
  dragged.value = true;
11421
11104
  dragging.value = true;
11422
- var {
11423
- clientX,
11424
- clientY
11425
- } = event.touches[0];
11426
- var deltaX = clientX - prevX;
11427
- var deltaY = clientY - prevY;
11428
- prevX = clientX;
11429
- prevY = clientY;
11105
+ moveTouch(event);
11430
11106
  if (props2.direction.includes("x")) {
11431
- x.value += deltaX;
11107
+ x.value += moveX.value;
11432
11108
  }
11433
11109
  if (props2.direction.includes("y")) {
11434
- y.value += deltaY;
11110
+ y.value += moveY.value;
11435
11111
  }
11436
11112
  clampToBoundary();
11437
11113
  });
@@ -11443,7 +11119,7 @@ var __sfc__$O = vue.defineComponent({
11443
11119
  if (props2.disabled) {
11444
11120
  return;
11445
11121
  }
11446
- touching = false;
11122
+ endTouch();
11447
11123
  enableTransition.value = true;
11448
11124
  attract();
11449
11125
  draggingRunner = window.setTimeout(() => {
@@ -11586,9 +11262,7 @@ var __sfc__$O = vue.defineComponent({
11586
11262
  dragging.value = false;
11587
11263
  x.value = 0;
11588
11264
  y.value = 0;
11589
- touching = false;
11590
- prevX = 0;
11591
- prevY = 0;
11265
+ resetTouch();
11592
11266
  };
11593
11267
  vue.watch(() => props2.boundary, toPxBoundary);
11594
11268
  onWindowResize(resize);
@@ -13236,55 +12910,27 @@ function usePopover(options) {
13236
12910
  close
13237
12911
  };
13238
12912
  }
13239
- function triggerValidator$2(trigger) {
13240
- return ["click", "hover"].includes(trigger);
13241
- }
13242
- function placementValidator$1(alignment) {
13243
- return ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"].includes(alignment);
13244
- }
13245
- function typeValidator$5(type) {
13246
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
13247
- }
13248
- function strategyValidator$1(strategy) {
13249
- return ["absolute", "fixed"].includes(strategy);
13250
- }
13251
12913
  var props$J = {
13252
12914
  type: {
13253
12915
  type: String,
13254
- default: "default",
13255
- validator: typeValidator$5
13256
- },
13257
- color: {
13258
- type: String
13259
- },
13260
- content: {
13261
- type: String
13262
- },
13263
- show: {
13264
- type: Boolean,
13265
- default: false
13266
- },
13267
- disabled: {
13268
- type: Boolean,
13269
- default: false
12916
+ default: "default"
13270
12917
  },
12918
+ color: String,
12919
+ content: String,
12920
+ show: Boolean,
12921
+ disabled: Boolean,
13271
12922
  trigger: {
13272
12923
  type: String,
13273
- default: "hover",
13274
- validator: triggerValidator$2
13275
- },
13276
- reference: {
13277
- type: String
12924
+ default: "hover"
13278
12925
  },
12926
+ reference: String,
13279
12927
  placement: {
13280
12928
  type: String,
13281
- default: "bottom",
13282
- validator: placementValidator$1
12929
+ default: "bottom"
13283
12930
  },
13284
12931
  strategy: {
13285
12932
  type: String,
13286
- default: "absolute",
13287
- validator: strategyValidator$1
12933
+ default: "absolute"
13288
12934
  },
13289
12935
  offsetX: {
13290
12936
  type: [Number, String],
@@ -13298,14 +12944,8 @@ var props$J = {
13298
12944
  type: [String, Object, Boolean],
13299
12945
  default: "body"
13300
12946
  },
13301
- sameWidth: {
13302
- type: Boolean,
13303
- default: false
13304
- },
13305
- closeOnClickReference: {
13306
- type: Boolean,
13307
- default: false
13308
- },
12947
+ sameWidth: Boolean,
12948
+ closeOnClickReference: Boolean,
13309
12949
  onOpen: defineListenerProp(),
13310
12950
  onOpened: defineListenerProp(),
13311
12951
  onClose: defineListenerProp(),
@@ -13440,17 +13080,9 @@ __sfc__$N.render = __render__$M;
13440
13080
  const Tooltip = __sfc__$N;
13441
13081
  withInstall(Tooltip);
13442
13082
  var _TooltipComponent = Tooltip;
13443
- function expandTriggerValidator(expandTrigger) {
13444
- return ["click"].includes(expandTrigger);
13445
- }
13446
13083
  var props$I = {
13447
- expandTrigger: {
13448
- type: String,
13449
- validator: expandTriggerValidator
13450
- },
13451
- lineClamp: {
13452
- type: [Number, String]
13453
- },
13084
+ expandTrigger: String,
13085
+ lineClamp: [Number, String],
13454
13086
  tooltip: {
13455
13087
  type: [Object, Boolean],
13456
13088
  default: true
@@ -13566,20 +13198,8 @@ __sfc__$M.render = __render__$L;
13566
13198
  const Ellipsis = __sfc__$M;
13567
13199
  withInstall(Ellipsis);
13568
13200
  var _EllipsisComponent = Ellipsis;
13569
- function positionValidator$1(position) {
13570
- return ["left-top", "right-top", "left-bottom", "right-bottom"].includes(position);
13571
- }
13572
- function directionValidator$3(direction) {
13573
- return ["top", "right", "bottom", "left"].includes(direction);
13574
- }
13575
- function triggerValidator$1(trigger) {
13576
- return ["click", "hover"].includes(trigger);
13577
- }
13578
13201
  var props$H = {
13579
- active: {
13580
- type: Boolean,
13581
- default: false
13582
- },
13202
+ active: Boolean,
13583
13203
  show: {
13584
13204
  type: Boolean,
13585
13205
  default: true
@@ -13590,31 +13210,22 @@ var props$H = {
13590
13210
  },
13591
13211
  type: {
13592
13212
  type: String,
13593
- default: "primary",
13594
- validator: typeValidator$a
13213
+ default: "primary"
13595
13214
  },
13596
13215
  position: {
13597
13216
  type: String,
13598
- default: "right-bottom",
13599
- validator: positionValidator$1
13217
+ default: "right-bottom"
13600
13218
  },
13601
13219
  direction: {
13602
13220
  type: String,
13603
- default: "top",
13604
- validator: directionValidator$3
13221
+ default: "top"
13605
13222
  },
13606
13223
  trigger: {
13607
13224
  type: String,
13608
- default: "click",
13609
- validator: triggerValidator$1
13610
- },
13611
- disabled: {
13612
- type: Boolean,
13613
- default: false
13614
- },
13615
- color: {
13616
- type: String
13225
+ default: "click"
13617
13226
  },
13227
+ disabled: Boolean,
13228
+ color: String,
13618
13229
  inactiveIcon: {
13619
13230
  type: String,
13620
13231
  default: "plus"
@@ -13623,12 +13234,8 @@ var props$H = {
13623
13234
  type: String,
13624
13235
  default: "window-close"
13625
13236
  },
13626
- inactiveIconSize: {
13627
- type: [Number, String]
13628
- },
13629
- activeIconSize: {
13630
- type: [Number, String]
13631
- },
13237
+ inactiveIconSize: [Number, String],
13238
+ activeIconSize: [Number, String],
13632
13239
  fixed: {
13633
13240
  type: Boolean,
13634
13241
  default: true
@@ -13637,26 +13244,15 @@ var props$H = {
13637
13244
  type: [Number, String],
13638
13245
  default: 90
13639
13246
  },
13640
- top: {
13641
- type: [Number, String]
13642
- },
13643
- bottom: {
13644
- type: [Number, String]
13645
- },
13646
- left: {
13647
- type: [Number, String]
13648
- },
13649
- right: {
13650
- type: [Number, String]
13651
- },
13247
+ top: [Number, String],
13248
+ bottom: [Number, String],
13249
+ left: [Number, String],
13250
+ right: [Number, String],
13652
13251
  elevation: {
13653
13252
  type: [Boolean, Number, String],
13654
13253
  default: true
13655
13254
  },
13656
- safeArea: {
13657
- type: Boolean,
13658
- default: false
13659
- },
13255
+ safeArea: Boolean,
13660
13256
  teleport: {
13661
13257
  type: [String, Object, Boolean],
13662
13258
  default: "body"
@@ -13801,22 +13397,10 @@ const Fab = vue.defineComponent({
13801
13397
  });
13802
13398
  withInstall(Fab);
13803
13399
  var _FabComponent = Fab;
13804
- function scrollToErrorValidator(status) {
13805
- return ["start", "end"].includes(status);
13806
- }
13807
13400
  var props$G = {
13808
- disabled: {
13809
- type: Boolean,
13810
- default: false
13811
- },
13812
- readonly: {
13813
- type: Boolean,
13814
- default: false
13815
- },
13816
- scrollToError: {
13817
- type: String,
13818
- validator: scrollToErrorValidator
13819
- },
13401
+ disabled: Boolean,
13402
+ readonly: Boolean,
13403
+ scrollToError: String,
13820
13404
  scrollToErrorOffsetY: {
13821
13405
  type: [String, Number],
13822
13406
  default: 0
@@ -13941,49 +13525,25 @@ Form.useValidation = useValidation;
13941
13525
  Form.useForm = useForm;
13942
13526
  withInstall(Form);
13943
13527
  var _FormComponent = Form;
13944
- function fitValidator(fit) {
13945
- return ["fill", "contain", "cover", "none", "scale-down"].includes(fit);
13946
- }
13947
13528
  var props$F = {
13948
- src: {
13949
- type: String
13950
- },
13529
+ src: String,
13951
13530
  fit: {
13952
13531
  type: String,
13953
- validator: fitValidator,
13954
13532
  default: "fill"
13955
13533
  },
13956
- alt: {
13957
- type: String
13958
- },
13959
- title: {
13960
- type: String
13961
- },
13962
- width: {
13963
- type: [String, Number]
13964
- },
13965
- height: {
13966
- type: [String, Number]
13967
- },
13534
+ alt: String,
13535
+ title: String,
13536
+ width: [String, Number],
13537
+ height: [String, Number],
13968
13538
  radius: {
13969
13539
  type: [String, Number],
13970
13540
  default: 0
13971
13541
  },
13972
- loading: {
13973
- type: String
13974
- },
13975
- error: {
13976
- type: String
13977
- },
13978
- lazy: {
13979
- type: Boolean,
13980
- default: false
13981
- },
13982
- ripple: {
13983
- type: Boolean,
13984
- default: false
13985
- },
13986
- block: {
13542
+ loading: String,
13543
+ error: String,
13544
+ lazy: Boolean,
13545
+ ripple: Boolean,
13546
+ block: {
13987
13547
  type: Boolean,
13988
13548
  default: true
13989
13549
  },
@@ -14122,9 +13682,7 @@ var props$E = {
14122
13682
  type: Boolean,
14123
13683
  default: true
14124
13684
  },
14125
- autoplay: {
14126
- type: [String, Number]
14127
- },
13685
+ autoplay: [String, Number],
14128
13686
  duration: {
14129
13687
  type: [String, Number],
14130
13688
  default: 300
@@ -14137,13 +13695,8 @@ var props$E = {
14137
13695
  type: Boolean,
14138
13696
  default: true
14139
13697
  },
14140
- indicatorColor: {
14141
- type: String
14142
- },
14143
- vertical: {
14144
- type: Boolean,
14145
- default: false
14146
- },
13698
+ indicatorColor: String,
13699
+ vertical: Boolean,
14147
13700
  touchable: {
14148
13701
  type: Boolean,
14149
13702
  default: true
@@ -14180,7 +13733,7 @@ function _asyncToGenerator$8(fn2) {
14180
13733
  };
14181
13734
  }
14182
13735
  var SWIPE_DELAY = 250;
14183
- var SWIPE_DISTANCE = 20;
13736
+ var SWIPE_OFFSET = 20;
14184
13737
  var {
14185
13738
  n: n$H,
14186
13739
  classes: classes$A
@@ -14200,7 +13753,7 @@ function __render__$I(_ctx, _cache) {
14200
13753
  style: vue.normalizeStyle({
14201
13754
  width: !_ctx.vertical ? _ctx.trackSize + "px" : void 0,
14202
13755
  height: _ctx.vertical ? _ctx.trackSize + "px" : void 0,
14203
- transform: "translate" + (_ctx.vertical ? "Y" : "X") + "(" + _ctx.translate + "px)",
13756
+ transform: "translate" + (_ctx.vertical ? "Y" : "X") + "(" + _ctx.trackTranslate + "px)",
14204
13757
  transitionDuration: _ctx.lockDuration ? "0ms" : _ctx.toNumber(_ctx.duration) + "ms"
14205
13758
  }),
14206
13759
  onTouchstart: _cache[0] || (_cache[0] = function() {
@@ -14256,7 +13809,7 @@ var __sfc__$J = vue.defineComponent({
14256
13809
  var size = vue.ref(0);
14257
13810
  var vertical = vue.computed(() => props2.vertical);
14258
13811
  var trackSize = vue.ref(0);
14259
- var translate = vue.ref(0);
13812
+ var trackTranslate = vue.ref(0);
14260
13813
  var lockDuration = vue.ref(false);
14261
13814
  var index = vue.ref(0);
14262
13815
  var {
@@ -14268,37 +13821,45 @@ var __sfc__$J = vue.defineComponent({
14268
13821
  popup: popup2,
14269
13822
  bindPopup
14270
13823
  } = usePopup();
13824
+ var {
13825
+ deltaX,
13826
+ deltaY,
13827
+ moveX,
13828
+ moveY,
13829
+ offsetX,
13830
+ offsetY,
13831
+ touching,
13832
+ direction,
13833
+ startTime,
13834
+ startTouch,
13835
+ moveTouch,
13836
+ endTouch
13837
+ } = useTouch();
14271
13838
  var initializedIndex = false;
14272
- var touching = false;
14273
13839
  var timer = -1;
14274
- var startX;
14275
- var startY;
14276
- var startTime;
14277
- var prevX;
14278
- var prevY;
14279
13840
  var findSwipeItem = (idx) => swipeItems.find((_ref) => {
14280
13841
  var {
14281
13842
  index: index2
14282
13843
  } = _ref;
14283
13844
  return index2.value === idx;
14284
13845
  });
14285
- var dispatchBorrower = () => {
13846
+ var dispatchSwipeItems = () => {
14286
13847
  if (!props2.loop) {
14287
13848
  return;
14288
13849
  }
14289
- if (translate.value >= 0) {
13850
+ if (trackTranslate.value >= 0) {
14290
13851
  findSwipeItem(length.value - 1).setTranslate(-trackSize.value);
14291
13852
  }
14292
- if (translate.value <= -(trackSize.value - size.value)) {
13853
+ if (trackTranslate.value <= -(trackSize.value - size.value)) {
14293
13854
  findSwipeItem(0).setTranslate(trackSize.value);
14294
13855
  }
14295
- if (translate.value > -(trackSize.value - size.value) && translate.value < 0) {
13856
+ if (trackTranslate.value > -(trackSize.value - size.value) && trackTranslate.value < 0) {
14296
13857
  findSwipeItem(length.value - 1).setTranslate(0);
14297
13858
  findSwipeItem(0).setTranslate(0);
14298
13859
  }
14299
13860
  };
14300
13861
  var getSwipeIndex = (targetSwipeIndex) => {
14301
- var swipeIndex = isNumber(targetSwipeIndex) ? targetSwipeIndex : Math.floor((translate.value - size.value / 2) / -size.value);
13862
+ var swipeIndex = isNumber(targetSwipeIndex) ? targetSwipeIndex : Math.floor((trackTranslate.value - size.value / 2) / -size.value);
14302
13863
  var {
14303
13864
  loop
14304
13865
  } = props2;
@@ -14335,14 +13896,14 @@ var __sfc__$J = vue.defineComponent({
14335
13896
  return clamp$1(index2, 0, length.value - 1);
14336
13897
  };
14337
13898
  var fixPosition = (fn2) => {
14338
- var overLeft = translate.value >= size.value;
14339
- var overRight = translate.value <= -trackSize.value;
13899
+ var overLeft = trackTranslate.value >= size.value;
13900
+ var overRight = trackTranslate.value <= -trackSize.value;
14340
13901
  var leftTranslate = 0;
14341
13902
  var rightTranslate = -(trackSize.value - size.value);
14342
13903
  lockDuration.value = true;
14343
13904
  if (overLeft || overRight) {
14344
13905
  lockDuration.value = true;
14345
- translate.value = overRight ? leftTranslate : rightTranslate;
13906
+ trackTranslate.value = overRight ? leftTranslate : rightTranslate;
14346
13907
  findSwipeItem(0).setTranslate(0);
14347
13908
  findSwipeItem(length.value - 1).setTranslate(0);
14348
13909
  }
@@ -14374,26 +13935,15 @@ var __sfc__$J = vue.defineComponent({
14374
13935
  var stopAutoplay = () => {
14375
13936
  timer && clearTimeout(timer);
14376
13937
  };
14377
- var getDirection = (x, y) => {
14378
- if (x > y && x > 10) {
14379
- return "horizontal";
14380
- }
14381
- if (y > x && y > 10) {
14382
- return "vertical";
14383
- }
13938
+ var setTrackTranslate = (value) => {
13939
+ trackTranslate.value = value;
13940
+ dispatchSwipeItems();
14384
13941
  };
14385
13942
  var handleTouchstart = (event) => {
14386
13943
  if (length.value <= 1 || !props2.touchable) {
14387
13944
  return;
14388
13945
  }
14389
- var {
14390
- clientX,
14391
- clientY
14392
- } = event.touches[0];
14393
- startX = clientX;
14394
- startY = clientY;
14395
- startTime = performance.now();
14396
- touching = true;
13946
+ startTouch(event);
14397
13947
  stopAutoplay();
14398
13948
  fixPosition(() => {
14399
13949
  lockDuration.value = true;
@@ -14404,48 +13954,38 @@ var __sfc__$J = vue.defineComponent({
14404
13954
  touchable,
14405
13955
  vertical: vertical2
14406
13956
  } = props2;
14407
- if (!touching || !touchable) {
13957
+ if (!touching.value || !touchable) {
14408
13958
  return;
14409
13959
  }
14410
- var {
14411
- clientX,
14412
- clientY
14413
- } = event.touches[0];
14414
- var deltaX = Math.abs(clientX - startX);
14415
- var deltaY = Math.abs(clientY - startY);
14416
- var direction = getDirection(deltaX, deltaY);
13960
+ moveTouch(event);
14417
13961
  var expectDirection = vertical2 ? "vertical" : "horizontal";
14418
- if (direction === expectDirection) {
14419
- event.preventDefault();
14420
- var moveX = prevX !== void 0 ? clientX - prevX : 0;
14421
- var moveY = prevY !== void 0 ? clientY - prevY : 0;
14422
- prevX = clientX;
14423
- prevY = clientY;
14424
- translate.value += vertical2 ? moveY : moveX;
14425
- dispatchBorrower();
13962
+ if (direction.value !== expectDirection) {
13963
+ return;
14426
13964
  }
13965
+ event.preventDefault();
13966
+ setTrackTranslate(trackTranslate.value + (vertical2 ? moveY.value : moveX.value));
14427
13967
  };
14428
13968
  var handleTouchend = () => {
14429
- if (!touching) {
13969
+ if (!touching.value) {
14430
13970
  return;
14431
13971
  }
14432
13972
  var {
14433
13973
  vertical: vertical2,
14434
13974
  onChange
14435
13975
  } = props2;
14436
- var positive = vertical2 ? prevY < startY : prevX < startX;
14437
- var distance = vertical2 ? Math.abs(startY - prevY) : Math.abs(startX - prevX);
14438
- var quickSwiping = performance.now() - startTime <= SWIPE_DELAY && distance >= SWIPE_DISTANCE;
13976
+ endTouch();
13977
+ var positive = vertical2 ? deltaY.value < 0 : deltaX.value < 0;
13978
+ var offset2 = vertical2 ? offsetY.value : offsetX.value;
13979
+ var quickSwiping = performance.now() - startTime.value <= SWIPE_DELAY && offset2 >= SWIPE_OFFSET;
14439
13980
  var swipeIndex = quickSwiping ? positive ? getSwipeIndex(index.value + 1) : getSwipeIndex(index.value - 1) : getSwipeIndex();
14440
- touching = false;
14441
13981
  lockDuration.value = false;
14442
- prevX = void 0;
14443
- prevY = void 0;
14444
- translate.value = swipeIndex * -size.value;
13982
+ setTrackTranslate(swipeIndex * -size.value);
14445
13983
  var prevIndex = index.value;
14446
13984
  index.value = swipeIndexToIndex(swipeIndex);
14447
13985
  startAutoplay();
14448
- prevIndex !== index.value && call(onChange, index.value);
13986
+ if (prevIndex !== index.value) {
13987
+ call(onChange, index.value);
13988
+ }
14449
13989
  };
14450
13990
  var resize = () => {
14451
13991
  if (!swipeEl.value) {
@@ -14454,7 +13994,7 @@ var __sfc__$J = vue.defineComponent({
14454
13994
  lockDuration.value = true;
14455
13995
  size.value = props2.vertical ? swipeEl.value.offsetHeight : swipeEl.value.offsetWidth;
14456
13996
  trackSize.value = size.value * length.value;
14457
- translate.value = index.value * -size.value;
13997
+ trackTranslate.value = index.value * -size.value;
14458
13998
  swipeItems.forEach((swipeItem2) => {
14459
13999
  swipeItem2.setTranslate(0);
14460
14000
  });
@@ -14480,11 +14020,11 @@ var __sfc__$J = vue.defineComponent({
14480
14020
  fixPosition(() => {
14481
14021
  if (currentIndex === length.value - 1 && loop) {
14482
14022
  findSwipeItem(0).setTranslate(trackSize.value);
14483
- translate.value = length.value * -size.value;
14023
+ trackTranslate.value = length.value * -size.value;
14484
14024
  return;
14485
14025
  }
14486
14026
  if (currentIndex !== length.value - 1) {
14487
- translate.value = index.value * -size.value;
14027
+ trackTranslate.value = index.value * -size.value;
14488
14028
  }
14489
14029
  });
14490
14030
  };
@@ -14505,11 +14045,11 @@ var __sfc__$J = vue.defineComponent({
14505
14045
  fixPosition(() => {
14506
14046
  if (currentIndex === 0 && loop) {
14507
14047
  findSwipeItem(length.value - 1).setTranslate(-trackSize.value);
14508
- translate.value = size.value;
14048
+ trackTranslate.value = size.value;
14509
14049
  return;
14510
14050
  }
14511
14051
  if (currentIndex !== 0) {
14512
- translate.value = index.value * -size.value;
14052
+ trackTranslate.value = index.value * -size.value;
14513
14053
  }
14514
14054
  });
14515
14055
  };
@@ -14565,7 +14105,7 @@ var __sfc__$J = vue.defineComponent({
14565
14105
  index,
14566
14106
  swipeEl,
14567
14107
  trackSize,
14568
- translate,
14108
+ trackTranslate,
14569
14109
  lockDuration,
14570
14110
  handleTouchstart,
14571
14111
  handleTouchmove,
@@ -14664,22 +14204,14 @@ function _extends$8() {
14664
14204
  return _extends$8.apply(this, arguments);
14665
14205
  }
14666
14206
  var props$D = _extends$8({
14667
- show: {
14668
- type: Boolean,
14669
- default: false
14670
- },
14671
- imagePreventDefault: {
14672
- type: Boolean,
14673
- default: false
14674
- },
14207
+ show: Boolean,
14208
+ imagePreventDefault: Boolean,
14675
14209
  images: {
14676
14210
  type: Array,
14677
14211
  default: () => []
14678
14212
  },
14679
14213
  /** @deprecated Use initialIndex to instead. */
14680
- current: {
14681
- type: String
14682
- },
14214
+ current: String,
14683
14215
  initialIndex: {
14684
14216
  type: [String, Number],
14685
14217
  default: 0
@@ -14688,10 +14220,7 @@ var props$D = _extends$8({
14688
14220
  type: [String, Number],
14689
14221
  default: 2
14690
14222
  },
14691
- closeable: {
14692
- type: Boolean,
14693
- default: false
14694
- },
14223
+ closeable: Boolean,
14695
14224
  "onUpdate:show": defineListenerProp(),
14696
14225
  onLongPress: defineListenerProp()
14697
14226
  }, pickProps(props$E, ["loop", "indicator", "onChange"]), pickProps(props$1c, [
@@ -14835,6 +14364,29 @@ var __sfc__$H = vue.defineComponent({
14835
14364
  props: props$D,
14836
14365
  setup(props2) {
14837
14366
  var popupShow = vue.ref(false);
14367
+ var scale = vue.ref(1);
14368
+ var translateX = vue.ref(0);
14369
+ var translateY = vue.ref(0);
14370
+ var transitionTimingFunction = vue.ref(void 0);
14371
+ var transitionDuration = vue.ref(void 0);
14372
+ var canSwipe = vue.ref(true);
14373
+ var swipeRef = vue.ref(null);
14374
+ var {
14375
+ moveX,
14376
+ moveY,
14377
+ distance,
14378
+ startTime,
14379
+ startTouch,
14380
+ moveTouch,
14381
+ endTouch
14382
+ } = useTouch();
14383
+ var targets = {
14384
+ start: null,
14385
+ prev: null
14386
+ };
14387
+ var closeRunner = null;
14388
+ var longPressRunner = null;
14389
+ var isLongPress = false;
14838
14390
  var initialIndex = vue.computed(() => {
14839
14391
  var {
14840
14392
  images,
@@ -14845,20 +14397,8 @@ var __sfc__$H = vue.defineComponent({
14845
14397
  return toNumber(initialIndex2);
14846
14398
  }
14847
14399
  var index = images.findIndex((image2) => image2 === current);
14848
- return index >= 0 ? index : 0;
14400
+ return Math.max(index, 0);
14849
14401
  });
14850
- var scale = vue.ref(1);
14851
- var translateX = vue.ref(0);
14852
- var translateY = vue.ref(0);
14853
- var transitionTimingFunction = vue.ref(void 0);
14854
- var transitionDuration = vue.ref(void 0);
14855
- var canSwipe = vue.ref(true);
14856
- var swipeRef = vue.ref(null);
14857
- var startTouch = null;
14858
- var prevTouch = null;
14859
- var closeRunner = null;
14860
- var longPressRunner = null;
14861
- var isLongPress = false;
14862
14402
  var isPreventDefault = vue.computed(() => {
14863
14403
  var {
14864
14404
  imagePreventDefault,
@@ -14866,27 +14406,10 @@ var __sfc__$H = vue.defineComponent({
14866
14406
  } = props2;
14867
14407
  return show && imagePreventDefault;
14868
14408
  });
14869
- var getDistance = (touch, target) => {
14870
- var {
14871
- clientX: touchX,
14872
- clientY: touchY
14873
- } = touch;
14874
- var {
14875
- clientX: targetX,
14876
- clientY: targetY
14877
- } = target;
14878
- return Math.abs(Math.sqrt(Math.pow(targetX - touchX, 2) + Math.pow(targetY - touchY, 2)));
14879
- };
14880
- var createVarTouch = (touch, target) => ({
14881
- clientX: touch.clientX,
14882
- clientY: touch.clientY,
14883
- timestamp: performance.now(),
14884
- target
14885
- });
14886
14409
  var zoomIn = () => {
14887
14410
  scale.value = toNumber(props2.zoom);
14888
14411
  canSwipe.value = false;
14889
- prevTouch = null;
14412
+ targets.prev = null;
14890
14413
  window.setTimeout(() => {
14891
14414
  transitionTimingFunction.value = "linear";
14892
14415
  transitionDuration.value = "0s";
@@ -14897,28 +14420,30 @@ var __sfc__$H = vue.defineComponent({
14897
14420
  translateX.value = 0;
14898
14421
  translateY.value = 0;
14899
14422
  canSwipe.value = true;
14900
- prevTouch = null;
14423
+ targets.prev = null;
14901
14424
  transitionTimingFunction.value = void 0;
14902
14425
  transitionDuration.value = void 0;
14903
14426
  };
14904
- var isDoubleTouch = (currentTouch) => {
14905
- if (!prevTouch) {
14427
+ var isDoubleTouch = (target) => {
14428
+ if (!targets.prev) {
14906
14429
  return false;
14907
14430
  }
14908
- return getDistance(prevTouch, currentTouch) <= DISTANCE_OFFSET && currentTouch.timestamp - prevTouch.timestamp <= EVENT_DELAY && prevTouch.target === currentTouch.target;
14431
+ return distance.value <= DISTANCE_OFFSET && performance.now() - startTime.value <= EVENT_DELAY && targets.prev === target;
14909
14432
  };
14910
14433
  var isTapTouch = (target) => {
14911
- if (!target || !startTouch || !prevTouch) {
14434
+ if (!target || !targets.start || !targets.prev) {
14912
14435
  return false;
14913
14436
  }
14914
- return getDistance(startTouch, prevTouch) <= DISTANCE_OFFSET && performance.now() - prevTouch.timestamp < TAP_DELAY && (target === startTouch.target || target.parentNode === startTouch.target);
14437
+ return distance.value <= DISTANCE_OFFSET && performance.now() - startTime.value < TAP_DELAY && (target === targets.start || target.parentNode === targets.start);
14915
14438
  };
14916
14439
  var handleTouchcancel = () => {
14440
+ endTouch();
14917
14441
  window.clearTimeout(longPressRunner);
14918
14442
  isLongPress = false;
14919
- startTouch = null;
14443
+ targets.start = null;
14920
14444
  };
14921
14445
  var handleTouchend = (event) => {
14446
+ endTouch();
14922
14447
  window.clearTimeout(longPressRunner);
14923
14448
  if (isLongPress) {
14924
14449
  isLongPress = false;
@@ -14927,26 +14452,24 @@ var __sfc__$H = vue.defineComponent({
14927
14452
  var isTap = isTapTouch(event.target);
14928
14453
  closeRunner = window.setTimeout(() => {
14929
14454
  isTap && close();
14930
- startTouch = null;
14455
+ targets.start = null;
14931
14456
  }, EVENT_DELAY);
14932
14457
  };
14933
14458
  var handleTouchstart = (event, idx) => {
14934
14459
  window.clearTimeout(closeRunner);
14935
14460
  window.clearTimeout(longPressRunner);
14936
- var currentTouch = createVarTouch(event.touches[0], event.currentTarget);
14937
- startTouch = currentTouch;
14461
+ var target = event.currentTarget;
14462
+ targets.start = target;
14938
14463
  longPressRunner = window.setTimeout(() => {
14939
- var {
14940
- onLongPress
14941
- } = props2;
14942
14464
  isLongPress = true;
14943
- call(onLongPress, idx);
14465
+ call(props2.onLongPress, idx);
14944
14466
  }, LONG_PRESS_DELAY);
14945
- if (isDoubleTouch(currentTouch)) {
14467
+ if (isDoubleTouch(target)) {
14946
14468
  scale.value > 1 ? zoomOut() : zoomIn();
14947
14469
  return;
14948
14470
  }
14949
- prevTouch = currentTouch;
14471
+ startTouch(event);
14472
+ targets.prev = target;
14950
14473
  };
14951
14474
  var getZoom = (target) => {
14952
14475
  var {
@@ -14993,33 +14516,22 @@ var __sfc__$H = vue.defineComponent({
14993
14516
  var displayHeight = imageRadio > rootRadio ? height : width * imageRadio;
14994
14517
  return Math.max(0, (zoom * displayHeight - height) / 2) / zoom;
14995
14518
  };
14996
- var getMoveTranslate = (current, move, limit) => {
14997
- if (current + move >= limit) {
14998
- return limit;
14999
- }
15000
- if (current + move <= -limit) {
15001
- return -limit;
15002
- }
15003
- return current + move;
15004
- };
15005
14519
  var handleTouchmove = (event) => {
15006
- if (!prevTouch) {
14520
+ if (!targets.prev) {
15007
14521
  return;
15008
14522
  }
14523
+ moveTouch(event);
15009
14524
  var target = event.currentTarget;
15010
- var currentTouch = createVarTouch(event.touches[0], target);
15011
- if (getDistance(currentTouch, prevTouch) > DISTANCE_OFFSET) {
14525
+ if (distance.value > DISTANCE_OFFSET) {
15012
14526
  window.clearTimeout(longPressRunner);
15013
14527
  }
15014
14528
  if (scale.value > 1) {
15015
- var moveX = currentTouch.clientX - prevTouch.clientX;
15016
- var moveY = currentTouch.clientY - prevTouch.clientY;
15017
14529
  var limitX = getLimitX(target);
15018
14530
  var limitY = getLimitY(target);
15019
- translateX.value = getMoveTranslate(translateX.value, moveX, limitX);
15020
- translateY.value = getMoveTranslate(translateY.value, moveY, limitY);
14531
+ translateX.value = clamp$1(translateX.value + moveX.value, -limitX, limitX);
14532
+ translateY.value = clamp$1(translateY.value + moveY.value, -limitY, limitY);
15021
14533
  }
15022
- prevTouch = currentTouch;
14534
+ targets.prev = target;
15023
14535
  };
15024
14536
  var close = () => {
15025
14537
  if (scale.value > 1) {
@@ -15164,14 +14676,8 @@ var props$C = {
15164
14676
  type: [String, Number],
15165
14677
  default: 10
15166
14678
  },
15167
- cssMode: {
15168
- type: Boolean,
15169
- default: false
15170
- },
15171
- disabled: {
15172
- type: Boolean,
15173
- default: false
15174
- },
14679
+ cssMode: Boolean,
14680
+ disabled: Boolean,
15175
14681
  onScroll: defineListenerProp()
15176
14682
  };
15177
14683
  function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
@@ -15393,9 +14899,7 @@ function useIndexBar() {
15393
14899
  };
15394
14900
  }
15395
14901
  var props$B = {
15396
- index: {
15397
- type: [Number, String]
15398
- }
14902
+ index: [Number, String]
15399
14903
  };
15400
14904
  var {
15401
14905
  n: n$D,
@@ -15495,25 +14999,14 @@ var props$A = {
15495
14999
  default: 0
15496
15000
  },
15497
15001
  /** @deprecated Use stickyCssMode to instead. */
15498
- cssMode: {
15499
- type: Boolean,
15500
- default: false
15501
- },
15502
- stickyCssMode: {
15503
- type: Boolean,
15504
- default: false
15505
- },
15506
- hideList: {
15507
- type: Boolean,
15508
- default: false
15509
- },
15002
+ cssMode: Boolean,
15003
+ stickyCssMode: Boolean,
15004
+ hideList: Boolean,
15510
15005
  zIndex: {
15511
15006
  type: [Number, String],
15512
15007
  default: 1
15513
15008
  },
15514
- highlightColor: {
15515
- type: String
15516
- },
15009
+ highlightColor: String,
15517
15010
  duration: {
15518
15011
  type: [Number, String],
15519
15012
  default: 0
@@ -15773,12 +15266,6 @@ __sfc__$E.render = __render__$D;
15773
15266
  const IndexBar = __sfc__$E;
15774
15267
  withInstall(IndexBar);
15775
15268
  var _IndexBarComponent = IndexBar;
15776
- function sizeValidator$1(size) {
15777
- return ["small", "normal"].includes(size);
15778
- }
15779
- function variantValidator(variant) {
15780
- return ["outlined", "standard"].includes(variant);
15781
- }
15782
15269
  var props$z = {
15783
15270
  value: {
15784
15271
  type: null,
@@ -15788,22 +15275,16 @@ var props$z = {
15788
15275
  type: String,
15789
15276
  default: ""
15790
15277
  },
15791
- isFocus: {
15792
- type: Boolean
15793
- },
15278
+ isFocus: Boolean,
15794
15279
  size: {
15795
15280
  type: String,
15796
- default: "normal",
15797
- validator: sizeValidator$1
15281
+ default: "normal"
15798
15282
  },
15799
15283
  variant: {
15800
15284
  type: String,
15801
- default: "standard",
15802
- validator: variantValidator
15803
- },
15804
- placeholder: {
15805
- type: String
15285
+ default: "standard"
15806
15286
  },
15287
+ placeholder: String,
15807
15288
  line: {
15808
15289
  type: Boolean,
15809
15290
  default: true
@@ -15812,36 +15293,15 @@ var props$z = {
15812
15293
  type: Boolean,
15813
15294
  default: true
15814
15295
  },
15815
- textColor: {
15816
- type: String
15817
- },
15818
- focusColor: {
15819
- type: String
15820
- },
15821
- blurColor: {
15822
- type: String
15823
- },
15824
- errorMessage: {
15825
- type: String
15826
- },
15827
- formDisabled: {
15828
- type: Boolean
15829
- },
15830
- disabled: {
15831
- type: Boolean,
15832
- default: false
15833
- },
15834
- clearable: {
15835
- type: Boolean,
15836
- default: false
15837
- },
15838
- cursor: {
15839
- type: String
15840
- },
15841
- composing: {
15842
- type: Boolean,
15843
- default: false
15844
- },
15296
+ textColor: String,
15297
+ focusColor: String,
15298
+ blurColor: String,
15299
+ errorMessage: String,
15300
+ formDisabled: Boolean,
15301
+ disabled: Boolean,
15302
+ clearable: Boolean,
15303
+ cursor: String,
15304
+ composing: Boolean,
15845
15305
  onClick: defineListenerProp(),
15846
15306
  onClear: defineListenerProp()
15847
15307
  };
@@ -16068,55 +15528,31 @@ function _extends$6() {
16068
15528
  };
16069
15529
  return _extends$6.apply(this, arguments);
16070
15530
  }
16071
- function typeValidator$4(type) {
16072
- return ["text", "password", "number", "tel", "email"].includes(type);
16073
- }
16074
15531
  var props$y = _extends$6({
16075
- modelValue: {
16076
- type: String
16077
- },
15532
+ modelValue: String,
16078
15533
  modelModifiers: {
16079
15534
  type: Object,
16080
15535
  default: () => ({})
16081
15536
  },
16082
15537
  type: {
16083
15538
  type: String,
16084
- default: "text",
16085
- validator: typeValidator$4
16086
- },
16087
- textarea: {
16088
- type: Boolean,
16089
- default: false
15539
+ default: "text"
16090
15540
  },
15541
+ textarea: Boolean,
16091
15542
  rows: {
16092
15543
  type: [String, Number],
16093
15544
  default: 8
16094
15545
  },
16095
- maxlength: {
16096
- type: [String, Number]
16097
- },
16098
- readonly: {
16099
- type: Boolean,
16100
- default: false
16101
- },
16102
- resize: {
16103
- type: Boolean,
16104
- default: false
16105
- },
16106
- autofocus: {
16107
- type: Boolean,
16108
- default: false
16109
- },
15546
+ maxlength: [String, Number],
15547
+ readonly: Boolean,
15548
+ resize: Boolean,
15549
+ autofocus: Boolean,
16110
15550
  validateTrigger: {
16111
15551
  type: Array,
16112
15552
  default: () => ["onInput", "onClear"]
16113
15553
  },
16114
- rules: {
16115
- type: Array
16116
- },
16117
- enterkeyhint: {
16118
- type: String
16119
- },
15554
+ rules: Array,
15555
+ enterkeyhint: String,
16120
15556
  onFocus: defineListenerProp(),
16121
15557
  onBlur: defineListenerProp(),
16122
15558
  onInput: defineListenerProp(),
@@ -16138,7 +15574,7 @@ function __render__$B(_ctx, _cache) {
16138
15574
  "div",
16139
15575
  {
16140
15576
  class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"))),
16141
- onMousedown: _cache[15] || (_cache[15] = function() {
15577
+ onMousedown: _cache[13] || (_cache[13] = function() {
16142
15578
  return _ctx.handleMousedown && _ctx.handleMousedown(...arguments);
16143
15579
  })
16144
15580
  },
@@ -16208,13 +15644,10 @@ function __render__$B(_ctx, _cache) {
16208
15644
  onChange: _cache[3] || (_cache[3] = function() {
16209
15645
  return _ctx.handleChange && _ctx.handleChange(...arguments);
16210
15646
  }),
16211
- onTouchstart: _cache[4] || (_cache[4] = function() {
16212
- return _ctx.handleTouchstart && _ctx.handleTouchstart(...arguments);
16213
- }),
16214
- onCompositionstart: _cache[5] || (_cache[5] = function() {
15647
+ onCompositionstart: _cache[4] || (_cache[4] = function() {
16215
15648
  return _ctx.handleCompositionStart && _ctx.handleCompositionStart(...arguments);
16216
15649
  }),
16217
- onCompositionend: _cache[6] || (_cache[6] = function() {
15650
+ onCompositionend: _cache[5] || (_cache[5] = function() {
16218
15651
  return _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...arguments);
16219
15652
  })
16220
15653
  }, "\n ", 46, _hoisted_2$b)) : (vue.openBlock(), vue.createElementBlock("input", {
@@ -16235,25 +15668,22 @@ function __render__$B(_ctx, _cache) {
16235
15668
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
16236
15669
  "--input-placeholder-color": _ctx.placeholderColor
16237
15670
  }),
16238
- onFocus: _cache[7] || (_cache[7] = function() {
15671
+ onFocus: _cache[6] || (_cache[6] = function() {
16239
15672
  return _ctx.handleFocus && _ctx.handleFocus(...arguments);
16240
15673
  }),
16241
- onBlur: _cache[8] || (_cache[8] = function() {
15674
+ onBlur: _cache[7] || (_cache[7] = function() {
16242
15675
  return _ctx.handleBlur && _ctx.handleBlur(...arguments);
16243
15676
  }),
16244
- onInput: _cache[9] || (_cache[9] = function() {
15677
+ onInput: _cache[8] || (_cache[8] = function() {
16245
15678
  return _ctx.handleInput && _ctx.handleInput(...arguments);
16246
15679
  }),
16247
- onChange: _cache[10] || (_cache[10] = function() {
15680
+ onChange: _cache[9] || (_cache[9] = function() {
16248
15681
  return _ctx.handleChange && _ctx.handleChange(...arguments);
16249
15682
  }),
16250
- onTouchstart: _cache[11] || (_cache[11] = function() {
16251
- return _ctx.handleTouchstart && _ctx.handleTouchstart(...arguments);
16252
- }),
16253
- onCompositionstart: _cache[12] || (_cache[12] = function() {
15683
+ onCompositionstart: _cache[10] || (_cache[10] = function() {
16254
15684
  return _ctx.handleCompositionStart && _ctx.handleCompositionStart(...arguments);
16255
15685
  }),
16256
- onCompositionend: _cache[13] || (_cache[13] = function() {
15686
+ onCompositionend: _cache[11] || (_cache[11] = function() {
16257
15687
  return _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...arguments);
16258
15688
  })
16259
15689
  }, null, 46, _hoisted_3$9))]),
@@ -16269,7 +15699,7 @@ function __render__$B(_ctx, _cache) {
16269
15699
  ), vue.createVNode(_component_var_form_details, {
16270
15700
  "error-message": _ctx.errorMessage,
16271
15701
  "extra-message": _ctx.maxlengthText,
16272
- onMousedown: _cache[14] || (_cache[14] = vue.withModifiers(() => {
15702
+ onMousedown: _cache[12] || (_cache[12] = vue.withModifiers(() => {
16273
15703
  }, ["stop"]))
16274
15704
  }, vue.createSlots({
16275
15705
  _: 2
@@ -16435,17 +15865,7 @@ var __sfc__$C = vue.defineComponent({
16435
15865
  };
16436
15866
  var withTrim = (value) => props2.modelModifiers.trim ? value.trim() : value;
16437
15867
  var withMaxlength = (value) => props2.maxlength ? value.slice(0, toNumber(props2.maxlength)) : value;
16438
- var handleTouchstart = (e) => {
16439
- var {
16440
- disabled,
16441
- readonly
16442
- } = props2;
16443
- if (form != null && form.disabled.value || form != null && form.readonly.value || disabled || readonly) {
16444
- return;
16445
- }
16446
- e.stopPropagation();
16447
- };
16448
- function handleMousedown(e) {
15868
+ var handleMousedown = (e) => {
16449
15869
  var {
16450
15870
  disabled
16451
15871
  } = props2;
@@ -16454,7 +15874,7 @@ var __sfc__$C = vue.defineComponent({
16454
15874
  }
16455
15875
  focus();
16456
15876
  e.preventDefault();
16457
- }
15877
+ };
16458
15878
  var reset = () => {
16459
15879
  call(props2["onUpdate:modelValue"], "");
16460
15880
  resetValidation();
@@ -16499,7 +15919,6 @@ var __sfc__$C = vue.defineComponent({
16499
15919
  handleChange,
16500
15920
  handleClear,
16501
15921
  handleClick,
16502
- handleTouchstart,
16503
15922
  handleCompositionStart,
16504
15923
  handleCompositionEnd,
16505
15924
  handleMousedown,
@@ -16515,46 +15934,22 @@ __sfc__$C.render = __render__$B;
16515
15934
  const Input = __sfc__$C;
16516
15935
  withInstall(Input);
16517
15936
  var _InputComponent = Input;
16518
- function typeValidator$3(type) {
16519
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
16520
- }
16521
- function underlineValidator(status) {
16522
- return ["always", "hover", "none"].includes(status);
16523
- }
16524
15937
  var props$x = {
16525
15938
  type: {
16526
15939
  type: String,
16527
- default: "default",
16528
- validator: typeValidator$3
16529
- },
16530
- href: {
16531
- type: String
16532
- },
16533
- target: {
16534
- type: String
16535
- },
16536
- to: {
16537
- type: [String, Object]
16538
- },
16539
- replace: {
16540
- type: Boolean,
16541
- default: false
15940
+ default: "default"
16542
15941
  },
15942
+ href: String,
15943
+ target: String,
15944
+ to: [String, Object],
15945
+ replace: Boolean,
16543
15946
  underline: {
16544
15947
  type: String,
16545
- default: "always",
16546
- validator: underlineValidator
16547
- },
16548
- disabled: {
16549
- type: Boolean,
16550
- default: false
16551
- },
16552
- textSize: {
16553
- type: [String, Number]
16554
- },
16555
- textColor: {
16556
- type: String
15948
+ default: "always"
16557
15949
  },
15950
+ disabled: Boolean,
15951
+ textSize: [String, Number],
15952
+ textColor: String,
16558
15953
  onClick: defineListenerProp()
16559
15954
  };
16560
15955
  var {
@@ -16642,35 +16037,20 @@ const Link = __sfc__$B;
16642
16037
  withInstall(Link);
16643
16038
  var _LinkComponent = Link;
16644
16039
  var props$w = {
16645
- loading: {
16646
- type: Boolean,
16647
- default: false
16648
- },
16040
+ loading: Boolean,
16649
16041
  immediateCheck: {
16650
16042
  type: Boolean,
16651
16043
  default: true
16652
16044
  },
16653
- finished: {
16654
- type: Boolean,
16655
- default: false
16656
- },
16657
- error: {
16658
- type: Boolean,
16659
- default: false
16660
- },
16045
+ finished: Boolean,
16046
+ error: Boolean,
16661
16047
  offset: {
16662
16048
  type: [String, Number],
16663
16049
  default: 0
16664
16050
  },
16665
- loadingText: {
16666
- type: String
16667
- },
16668
- finishedText: {
16669
- type: String
16670
- },
16671
- errorText: {
16672
- type: String
16673
- },
16051
+ loadingText: String,
16052
+ finishedText: String,
16053
+ errorText: String,
16674
16054
  onLoad: defineListenerProp(),
16675
16055
  "onUpdate:loading": defineListenerProp(),
16676
16056
  "onUpdate:error": defineListenerProp()
@@ -16917,22 +16297,11 @@ var props$v = {
16917
16297
  type: Number,
16918
16298
  default: 0
16919
16299
  },
16920
- error: {
16921
- type: Boolean,
16922
- default: false
16923
- },
16924
- color: {
16925
- type: String
16926
- },
16927
- errorColor: {
16928
- type: String
16929
- },
16930
- height: {
16931
- type: [Number, String]
16932
- },
16933
- top: {
16934
- type: [Number, String]
16935
- }
16300
+ error: Boolean,
16301
+ color: String,
16302
+ errorColor: String,
16303
+ height: [Number, String],
16304
+ top: [Number, String]
16936
16305
  };
16937
16306
  var {
16938
16307
  classes: classes$r,
@@ -17048,41 +16417,21 @@ var LoadingBar = {
17048
16417
  };
17049
16418
  var _LoadingBarComponent = LoadingBar;
17050
16419
  const LoadingBar$1 = LoadingBar;
17051
- function triggerValidator(trigger) {
17052
- return ["click", "hover"].includes(trigger);
17053
- }
17054
- function placementValidator(alignment) {
17055
- return ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end", "cover-top", "cover-top-start", "cover-top-end", "cover-bottom", "cover-bottom-start", "cover-bottom-end", "cover-left", "cover-right"].includes(alignment);
17056
- }
17057
- function strategyValidator(strategy) {
17058
- return ["absolute", "fixed"].includes(strategy);
17059
- }
17060
16420
  var props$t = {
17061
- show: {
17062
- type: Boolean,
17063
- default: false
17064
- },
17065
- disabled: {
17066
- type: Boolean,
17067
- default: false
17068
- },
16421
+ show: Boolean,
16422
+ disabled: Boolean,
17069
16423
  trigger: {
17070
16424
  type: String,
17071
- default: "click",
17072
- validator: triggerValidator
17073
- },
17074
- reference: {
17075
- type: String
16425
+ default: "click"
17076
16426
  },
16427
+ reference: String,
17077
16428
  placement: {
17078
16429
  type: String,
17079
- default: "cover-top-start",
17080
- validator: placementValidator
16430
+ default: "cover-top-start"
17081
16431
  },
17082
16432
  strategy: {
17083
16433
  type: String,
17084
- default: "absolute",
17085
- validator: strategyValidator
16434
+ default: "absolute"
17086
16435
  },
17087
16436
  offsetX: {
17088
16437
  type: [Number, String],
@@ -17096,10 +16445,7 @@ var props$t = {
17096
16445
  type: [String, Object, Boolean],
17097
16446
  default: "body"
17098
16447
  },
17099
- sameWidth: {
17100
- type: Boolean,
17101
- default: false
17102
- },
16448
+ sameWidth: Boolean,
17103
16449
  elevation: {
17104
16450
  type: [Boolean, String, Number],
17105
16451
  default: true
@@ -17108,13 +16454,8 @@ var props$t = {
17108
16454
  type: Boolean,
17109
16455
  default: true
17110
16456
  },
17111
- popoverClass: {
17112
- type: String
17113
- },
17114
- closeOnClickReference: {
17115
- type: Boolean,
17116
- default: false
17117
- },
16457
+ popoverClass: String,
16458
+ closeOnClickReference: Boolean,
17118
16459
  onOpen: defineListenerProp(),
17119
16460
  onOpened: defineListenerProp(),
17120
16461
  onClose: defineListenerProp(),
@@ -17273,7 +16614,9 @@ var {
17273
16614
  } = createNamespace("option");
17274
16615
  function __render__$x(_ctx, _cache) {
17275
16616
  var _component_var_checkbox = vue.resolveComponent("var-checkbox");
16617
+ var _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
17276
16618
  var _directive_ripple = vue.resolveDirective("ripple");
16619
+ var _directive_hover = vue.resolveDirective("hover");
17277
16620
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
17278
16621
  "div",
17279
16622
  {
@@ -17317,18 +16660,22 @@ function __render__$x(_ctx, _cache) {
17317
16660
  )])],
17318
16661
  2
17319
16662
  /* CLASS */
17320
- )],
16663
+ ), vue.createVNode(_component_var_hover_overlay, {
16664
+ hovering: _ctx.hovering
16665
+ }, null, 8, ["hovering"])],
17321
16666
  6
17322
16667
  /* CLASS, STYLE */
17323
- )), [[_directive_ripple]]);
16668
+ )), [[_directive_ripple], [_directive_hover, _ctx.handleHovering, "desktop"]]);
17324
16669
  }
17325
16670
  var __sfc__$y = vue.defineComponent({
17326
16671
  name: "VarOption",
17327
16672
  directives: {
17328
- Ripple: Ripple$1
16673
+ Ripple: Ripple$1,
16674
+ Hover: Hover$1
17329
16675
  },
17330
16676
  components: {
17331
- VarCheckbox: Checkbox
16677
+ VarCheckbox: Checkbox,
16678
+ VarHoverOverlay: HoverOverlay
17332
16679
  },
17333
16680
  props: props$s,
17334
16681
  setup(props2) {
@@ -17346,6 +16693,10 @@ var __sfc__$y = vue.defineComponent({
17346
16693
  onSelect,
17347
16694
  computeLabel
17348
16695
  } = select2;
16696
+ var {
16697
+ hovering,
16698
+ handleHovering
16699
+ } = useHoverOverlay();
17349
16700
  var handleClick = () => {
17350
16701
  if (multiple.value) {
17351
16702
  optionSelected.value = !optionSelected.value;
@@ -17370,6 +16721,8 @@ var __sfc__$y = vue.defineComponent({
17370
16721
  optionSelected,
17371
16722
  multiple,
17372
16723
  focusColor,
16724
+ hovering,
16725
+ handleHovering,
17373
16726
  handleClick,
17374
16727
  handleSelect
17375
16728
  };
@@ -17380,17 +16733,12 @@ const Option = __sfc__$y;
17380
16733
  withInstall(Option);
17381
16734
  var _OptionComponent = Option;
17382
16735
  var props$r = {
17383
- show: {
17384
- type: Boolean,
17385
- default: false
17386
- },
16736
+ show: Boolean,
17387
16737
  lockScroll: {
17388
16738
  type: Boolean,
17389
16739
  default: true
17390
16740
  },
17391
- teleport: {
17392
- type: String
17393
- },
16741
+ teleport: [String, Object, Boolean],
17394
16742
  onClick: defineListenerProp(),
17395
16743
  "onUpdate:show": defineListenerProp()
17396
16744
  };
@@ -17458,9 +16806,7 @@ const Overlay = vue.defineComponent({
17458
16806
  withInstall(Overlay);
17459
16807
  var _OverlayComponent = Overlay;
17460
16808
  var props$q = {
17461
- current: {
17462
- type: [Number, String]
17463
- },
16809
+ current: [Number, String],
17464
16810
  size: {
17465
16811
  type: [Number, String],
17466
16812
  default: 10
@@ -17477,10 +16823,7 @@ var props$q = {
17477
16823
  type: Number,
17478
16824
  default: 3
17479
16825
  },
17480
- disabled: {
17481
- type: Boolean,
17482
- default: false
17483
- },
16826
+ disabled: Boolean,
17484
16827
  simple: {
17485
16828
  type: Boolean,
17486
16829
  default: true
@@ -17489,17 +16832,12 @@ var props$q = {
17489
16832
  type: Boolean,
17490
16833
  default: true
17491
16834
  },
17492
- showQuickJumper: {
17493
- type: Boolean,
17494
- default: false
17495
- },
16835
+ showQuickJumper: Boolean,
17496
16836
  sizeOption: {
17497
16837
  type: Array,
17498
16838
  default: () => [10, 20, 50, 100]
17499
16839
  },
17500
- showTotal: {
17501
- type: Function
17502
- },
16840
+ showTotal: Function,
17503
16841
  onChange: defineListenerProp(),
17504
16842
  "onUpdate:current": defineListenerProp(),
17505
16843
  "onUpdate:size": defineListenerProp()
@@ -17876,27 +17214,12 @@ var props$p = {
17876
17214
  type: [Boolean, Number, String],
17877
17215
  default: false
17878
17216
  },
17879
- ripple: {
17880
- type: Boolean,
17881
- default: false
17882
- },
17883
- radius: {
17884
- type: [Number, String]
17885
- },
17886
- width: {
17887
- type: [Number, String]
17888
- },
17889
- height: {
17890
- type: [Number, String]
17891
- },
17892
- round: {
17893
- type: Boolean,
17894
- default: false
17895
- },
17896
- inline: {
17897
- type: Boolean,
17898
- default: false
17899
- },
17217
+ ripple: Boolean,
17218
+ radius: [Number, String],
17219
+ width: [Number, String],
17220
+ height: [Number, String],
17221
+ round: Boolean,
17222
+ inline: Boolean,
17900
17223
  onClick: defineListenerProp()
17901
17224
  };
17902
17225
  var {
@@ -17967,9 +17290,7 @@ var props$o = _extends$5({
17967
17290
  type: Array,
17968
17291
  default: () => []
17969
17292
  },
17970
- title: {
17971
- type: String
17972
- },
17293
+ title: String,
17973
17294
  textKey: {
17974
17295
  type: String,
17975
17296
  default: "text"
@@ -17978,10 +17299,7 @@ var props$o = _extends$5({
17978
17299
  type: Boolean,
17979
17300
  default: true
17980
17301
  },
17981
- cascade: {
17982
- type: Boolean,
17983
- default: false
17984
- },
17302
+ cascade: Boolean,
17985
17303
  cascadeInitialIndexes: {
17986
17304
  type: Array,
17987
17305
  default: () => []
@@ -17994,23 +17312,12 @@ var props$o = _extends$5({
17994
17312
  type: [Number, String],
17995
17313
  default: 6
17996
17314
  },
17997
- confirmButtonText: {
17998
- type: String
17999
- },
18000
- cancelButtonText: {
18001
- type: String
18002
- },
18003
- confirmButtonTextColor: {
18004
- type: String
18005
- },
18006
- cancelButtonTextColor: {
18007
- type: String
18008
- },
17315
+ confirmButtonText: String,
17316
+ cancelButtonText: String,
17317
+ confirmButtonTextColor: String,
17318
+ cancelButtonTextColor: String,
18009
17319
  // dynamic internal
18010
- dynamic: {
18011
- type: Boolean,
18012
- default: false
18013
- },
17320
+ dynamic: Boolean,
18014
17321
  textFormatter: {
18015
17322
  type: Function,
18016
17323
  default: (text) => text
@@ -18532,43 +17839,24 @@ Picker.Component = VarPicker;
18532
17839
  withInstall(VarPicker);
18533
17840
  withInstall(VarPicker, Picker);
18534
17841
  var _PickerComponent = VarPicker;
18535
- function modeValidator(mode) {
18536
- return ["linear", "circle"].includes(mode);
18537
- }
18538
- function typeValidator$2(type) {
18539
- return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
18540
- }
18541
17842
  var props$n = {
18542
17843
  mode: {
18543
17844
  type: String,
18544
- default: "linear",
18545
- validator: modeValidator
17845
+ default: "linear"
18546
17846
  },
18547
17847
  lineWidth: {
18548
17848
  type: [Number, String],
18549
17849
  default: 4
18550
17850
  },
18551
- color: {
18552
- type: String
18553
- },
18554
- trackColor: {
18555
- type: String
18556
- },
18557
- ripple: {
18558
- type: Boolean,
18559
- default: false
18560
- },
17851
+ color: String,
17852
+ trackColor: String,
17853
+ ripple: Boolean,
18561
17854
  value: {
18562
17855
  type: [Number, String],
18563
17856
  default: 0
18564
17857
  },
18565
- label: {
18566
- type: Boolean,
18567
- default: false
18568
- },
18569
- labelClass: {
18570
- type: String
18571
- },
17858
+ label: Boolean,
17859
+ labelClass: String,
18572
17860
  size: {
18573
17861
  type: [Number, String],
18574
17862
  default: 40
@@ -18581,14 +17869,10 @@ var props$n = {
18581
17869
  type: Boolean,
18582
17870
  default: true
18583
17871
  },
18584
- indeterminate: {
18585
- type: Boolean,
18586
- default: false
18587
- },
17872
+ indeterminate: Boolean,
18588
17873
  type: {
18589
17874
  type: String,
18590
- default: "primary",
18591
- validator: typeValidator$2
17875
+ default: "primary"
18592
17876
  }
18593
17877
  };
18594
17878
  var {
@@ -18793,43 +18077,21 @@ const Progress = __sfc__$u;
18793
18077
  withInstall(Progress);
18794
18078
  var _ProgressComponent = Progress;
18795
18079
  var props$m = {
18796
- modelValue: {
18797
- type: Boolean
18798
- },
18799
- // 是否禁用下拉刷新
18800
- disabled: {
18801
- type: Boolean,
18802
- default: false
18803
- },
18804
- // 动画时长
18080
+ modelValue: Boolean,
18081
+ disabled: Boolean,
18805
18082
  animationDuration: {
18806
18083
  type: [Number, String],
18807
18084
  default: 300
18808
18085
  },
18809
- // 成功提示展示时长
18810
18086
  successDuration: {
18811
18087
  type: [Number, String],
18812
18088
  default: 2e3
18813
18089
  },
18814
- // control 的背景颜色
18815
- bgColor: {
18816
- type: String
18817
- },
18818
- // 成功状态下 control 的背景颜色
18819
- successBgColor: {
18820
- type: String
18821
- },
18822
- // control 的颜色
18823
- color: {
18824
- type: String
18825
- },
18826
- // 成功状态下 control 的颜色
18827
- successColor: {
18828
- type: String
18829
- },
18830
- target: {
18831
- type: [String, Object]
18832
- },
18090
+ bgColor: String,
18091
+ successBgColor: String,
18092
+ color: String,
18093
+ successColor: String,
18094
+ target: [String, Object],
18833
18095
  onRefresh: defineListenerProp(),
18834
18096
  "onUpdate:modelValue": defineListenerProp()
18835
18097
  };
@@ -19075,23 +18337,11 @@ var props$l = {
19075
18337
  type: [String, Number, Boolean, Object, Array],
19076
18338
  default: false
19077
18339
  },
19078
- disabled: {
19079
- type: Boolean,
19080
- default: false
19081
- },
19082
- readonly: {
19083
- type: Boolean,
19084
- default: false
19085
- },
19086
- checkedColor: {
19087
- type: String
19088
- },
19089
- uncheckedColor: {
19090
- type: String
19091
- },
19092
- iconSize: {
19093
- type: [String, Number]
19094
- },
18340
+ disabled: Boolean,
18341
+ readonly: Boolean,
18342
+ checkedColor: String,
18343
+ uncheckedColor: String,
18344
+ iconSize: [String, Number],
19095
18345
  ripple: {
19096
18346
  type: Boolean,
19097
18347
  default: true
@@ -19100,9 +18350,7 @@ var props$l = {
19100
18350
  type: Array,
19101
18351
  default: () => ["onChange"]
19102
18352
  },
19103
- rules: {
19104
- type: Array
19105
- },
18353
+ rules: Array,
19106
18354
  onClick: defineListenerProp(),
19107
18355
  onChange: defineListenerProp(),
19108
18356
  "onUpdate:modelValue": defineListenerProp()
@@ -19216,7 +18464,7 @@ var __sfc__$s = vue.defineComponent({
19216
18464
  inheritAttrs: false,
19217
18465
  props: props$l,
19218
18466
  setup(props2) {
19219
- var value = vue.ref(false);
18467
+ var value = useVModel(props2, "modelValue");
19220
18468
  var checked = vue.computed(() => value.value === props2.checkedValue);
19221
18469
  var withAnimation = vue.ref(false);
19222
18470
  var {
@@ -19257,7 +18505,6 @@ var __sfc__$s = vue.defineComponent({
19257
18505
  return;
19258
18506
  }
19259
18507
  value.value = changedValue;
19260
- call(props2["onUpdate:modelValue"], value.value);
19261
18508
  call(onChange, value.value);
19262
18509
  radioGroup2 == null ? void 0 : radioGroup2.onToggle(checkedValue);
19263
18510
  validateWithTrigger("onChange");
@@ -19288,7 +18535,7 @@ var __sfc__$s = vue.defineComponent({
19288
18535
  value.value = v2 === checkedValue ? checkedValue : uncheckedValue;
19289
18536
  };
19290
18537
  var reset = () => {
19291
- call(props2["onUpdate:modelValue"], props2.uncheckedValue);
18538
+ value.value = props2.uncheckedValue;
19292
18539
  resetValidation();
19293
18540
  };
19294
18541
  var validate = () => v(props2.rules, props2.modelValue);
@@ -19303,11 +18550,6 @@ var __sfc__$s = vue.defineComponent({
19303
18550
  }
19304
18551
  change(changedValue);
19305
18552
  };
19306
- vue.watch(() => props2.modelValue, (newValue) => {
19307
- value.value = newValue;
19308
- }, {
19309
- immediate: true
19310
- });
19311
18553
  var radioProvider = {
19312
18554
  sync,
19313
18555
  validate,
@@ -19339,9 +18581,6 @@ __sfc__$s.render = __render__$r;
19339
18581
  const Radio = __sfc__$s;
19340
18582
  withInstall(Radio);
19341
18583
  var _RadioComponent = Radio;
19342
- function directionValidator$2(direction) {
19343
- return ["horizontal", "vertical"].includes(direction);
19344
- }
19345
18584
  var props$k = {
19346
18585
  modelValue: {
19347
18586
  type: [String, Number, Boolean, Object, Array],
@@ -19349,16 +18588,13 @@ var props$k = {
19349
18588
  },
19350
18589
  direction: {
19351
18590
  type: String,
19352
- default: "horizontal",
19353
- validator: directionValidator$2
18591
+ default: "horizontal"
19354
18592
  },
19355
18593
  validateTrigger: {
19356
18594
  type: Array,
19357
18595
  default: () => ["onChange"]
19358
18596
  },
19359
- rules: {
19360
- type: Array
19361
- },
18597
+ rules: Array,
19362
18598
  onChange: defineListenerProp(),
19363
18599
  "onUpdate:modelValue": defineListenerProp()
19364
18600
  };
@@ -19471,59 +18707,33 @@ var props$j = {
19471
18707
  type: [String, Number],
19472
18708
  default: 5
19473
18709
  },
19474
- color: {
19475
- type: String
19476
- },
18710
+ color: String,
19477
18711
  icon: {
19478
18712
  type: String,
19479
18713
  default: "star"
19480
18714
  },
19481
- emptyColor: {
19482
- type: String
19483
- },
18715
+ emptyColor: String,
19484
18716
  emptyIcon: {
19485
18717
  type: String,
19486
18718
  default: "star-outline"
19487
18719
  },
19488
- size: {
19489
- type: [String, Number]
19490
- },
19491
- gap: {
19492
- type: [String, Number]
19493
- },
19494
- namespace: {
19495
- type: String
19496
- },
19497
- half: {
19498
- type: Boolean,
19499
- default: false
19500
- },
18720
+ size: [String, Number],
18721
+ gap: [String, Number],
18722
+ namespace: String,
18723
+ half: Boolean,
19501
18724
  halfIcon: {
19502
18725
  type: String,
19503
18726
  default: "star-half-full"
19504
18727
  },
19505
- disabled: {
19506
- type: Boolean,
19507
- default: false
19508
- },
19509
- disabledColor: {
19510
- type: String
19511
- },
19512
- readonly: {
19513
- type: Boolean,
19514
- default: false
19515
- },
18728
+ disabled: Boolean,
18729
+ disabledColor: String,
18730
+ readonly: Boolean,
19516
18731
  ripple: {
19517
18732
  type: Boolean,
19518
18733
  default: true
19519
18734
  },
19520
- clearable: {
19521
- type: Boolean,
19522
- default: false
19523
- },
19524
- rules: {
19525
- type: Array
19526
- },
18735
+ clearable: Boolean,
18736
+ rules: Array,
19527
18737
  onChange: defineListenerProp(),
19528
18738
  "onUpdate:modelValue": defineListenerProp()
19529
18739
  };
@@ -19646,8 +18856,9 @@ var __sfc__$q = vue.defineComponent({
19646
18856
  emptyIcon
19647
18857
  } = props2;
19648
18858
  var iconColor = color;
19649
- if (disabled || form != null && form.disabled.value)
18859
+ if (disabled || form != null && form.disabled.value) {
19650
18860
  iconColor = disabledColor;
18861
+ }
19651
18862
  if (index <= toNumber(modelValue)) {
19652
18863
  return {
19653
18864
  color: iconColor,
@@ -19670,15 +18881,15 @@ var __sfc__$q = vue.defineComponent({
19670
18881
  half: half2,
19671
18882
  clearable
19672
18883
  } = props2;
19673
- if (half2) {
19674
- var {
19675
- offsetWidth
19676
- } = event.target;
19677
- if (event.offsetX <= Math.floor(offsetWidth / 2))
19678
- score -= 0.5;
18884
+ var {
18885
+ offsetWidth
18886
+ } = event.target;
18887
+ if (half2 && event.offsetX <= Math.floor(offsetWidth / 2)) {
18888
+ score -= 0.5;
19679
18889
  }
19680
- if (lastScore === score && clearable)
18890
+ if (lastScore === score && clearable) {
19681
18891
  score = 0;
18892
+ }
19682
18893
  lastScore = score;
19683
18894
  call(props2["onUpdate:modelValue"], score);
19684
18895
  };
@@ -19735,24 +18946,14 @@ __sfc__$q.render = __render__$p;
19735
18946
  const Rate = __sfc__$q;
19736
18947
  withInstall(Rate);
19737
18948
  var _RateComponent = Rate;
19738
- function typeValidator$1(type) {
19739
- return ["info", "success", "warning", "error", "question", "empty"].includes(type);
19740
- }
19741
18949
  var props$i = {
19742
- imageSize: {
19743
- type: [String, Number]
19744
- },
18950
+ imageSize: [String, Number],
19745
18951
  type: {
19746
18952
  type: String,
19747
- default: "success",
19748
- validator: typeValidator$1
19749
- },
19750
- title: {
19751
- type: String
19752
- },
19753
- description: {
19754
- type: String
18953
+ default: "success"
19755
18954
  },
18955
+ title: String,
18956
+ description: String,
19756
18957
  animation: {
19757
18958
  type: Boolean,
19758
18959
  default: true
@@ -20066,12 +19267,6 @@ __sfc__$j.render = __render__$i;
20066
19267
  const Result = __sfc__$j;
20067
19268
  withInstall(Result);
20068
19269
  var _ResultComponent = Result;
20069
- function justifyValidator$1(justify) {
20070
- return ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around"].includes(justify);
20071
- }
20072
- function alignValidator$1(align) {
20073
- return ["flex-start", "center", "flex-end", "start", "end"].includes(align);
20074
- }
20075
19270
  var props$h = {
20076
19271
  gutter: {
20077
19272
  type: [String, Number],
@@ -20079,13 +19274,11 @@ var props$h = {
20079
19274
  },
20080
19275
  justify: {
20081
19276
  type: String,
20082
- default: "flex-start",
20083
- validator: justifyValidator$1
19277
+ default: "flex-start"
20084
19278
  },
20085
19279
  align: {
20086
19280
  type: String,
20087
- default: "flex-start",
20088
- validator: alignValidator$1
19281
+ default: "flex-start"
20089
19282
  },
20090
19283
  onClick: defineListenerProp()
20091
19284
  };
@@ -20169,45 +19362,30 @@ function _extends$4() {
20169
19362
  };
20170
19363
  return _extends$4.apply(this, arguments);
20171
19364
  }
20172
- function textAlignValidator(textAlign) {
20173
- return ["left", "right", "center"].includes(textAlign);
20174
- }
20175
19365
  var props$g = _extends$4({
20176
19366
  modelValue: {
20177
19367
  default: void 0
20178
19368
  },
20179
- multiple: {
20180
- type: Boolean,
20181
- default: false
20182
- },
19369
+ multiple: Boolean,
20183
19370
  offsetY: {
20184
19371
  type: [String, Number],
20185
19372
  default: 0
20186
19373
  },
20187
- chip: {
20188
- type: Boolean,
20189
- default: false
20190
- },
20191
- readonly: {
20192
- type: Boolean,
20193
- default: false
20194
- },
19374
+ chip: Boolean,
19375
+ readonly: Boolean,
20195
19376
  separator: {
20196
19377
  type: String,
20197
19378
  default: ","
20198
19379
  },
20199
19380
  textAlign: {
20200
19381
  type: String,
20201
- default: "left",
20202
- validator: textAlignValidator
19382
+ default: "left"
20203
19383
  },
20204
19384
  validateTrigger: {
20205
19385
  type: Array,
20206
19386
  default: () => ["onChange", "onClear", "onClose"]
20207
19387
  },
20208
- rules: {
20209
- type: Array
20210
- },
19388
+ rules: Array,
20211
19389
  onFocus: defineListenerProp(),
20212
19390
  onBlur: defineListenerProp(),
20213
19391
  onClose: defineListenerProp(),
@@ -20706,35 +19884,17 @@ var props$f = {
20706
19884
  type: Boolean,
20707
19885
  default: true
20708
19886
  },
20709
- title: {
20710
- type: Boolean,
20711
- default: false
20712
- },
20713
- card: {
20714
- type: Boolean,
20715
- default: false
20716
- },
20717
- avatar: {
20718
- type: Boolean,
20719
- default: false
20720
- },
20721
- fullscreen: {
20722
- type: Boolean,
20723
- default: false
20724
- },
19887
+ title: Boolean,
19888
+ card: Boolean,
19889
+ avatar: Boolean,
19890
+ fullscreen: Boolean,
20725
19891
  fullscreenZIndex: {
20726
19892
  type: [Number, String],
20727
19893
  default: 100
20728
19894
  },
20729
- titleWidth: {
20730
- type: [Number, String]
20731
- },
20732
- cardHeight: {
20733
- type: [Number, String]
20734
- },
20735
- avatarSize: {
20736
- type: [Number, String]
20737
- },
19895
+ titleWidth: [Number, String],
19896
+ cardHeight: [Number, String],
19897
+ avatarSize: [Number, String],
20738
19898
  rows: {
20739
19899
  type: [Number, String],
20740
19900
  default: 3
@@ -20920,53 +20080,31 @@ __sfc__$g.render = __render__$f;
20920
20080
  const Skeleton = __sfc__$g;
20921
20081
  withInstall(Skeleton);
20922
20082
  var _SkeletonComponent = Skeleton;
20923
- function labelValidator(label) {
20924
- return ["always", "normal", "never"].includes(label);
20925
- }
20926
20083
  var Thumbs = /* @__PURE__ */ function(Thumbs2) {
20927
20084
  Thumbs2["First"] = "1";
20928
20085
  Thumbs2["Second"] = "2";
20929
20086
  return Thumbs2;
20930
20087
  }({});
20931
20088
  var props$e = {
20932
- // 当前进度百分比
20933
20089
  modelValue: {
20934
20090
  type: [Number, Array],
20935
20091
  default: 0
20936
20092
  },
20937
- // 步长
20938
20093
  step: {
20939
20094
  type: [Number, String],
20940
20095
  default: 1
20941
20096
  },
20942
- // 是否开启双滑块模式
20943
- range: {
20944
- type: Boolean,
20945
- default: false
20946
- },
20097
+ range: Boolean,
20947
20098
  labelVisible: {
20948
20099
  type: String,
20949
- default: "normal",
20950
- validator: labelValidator
20951
- },
20952
- activeColor: {
20953
- type: String
20954
- },
20955
- trackColor: {
20956
- type: String
20957
- },
20958
- thumbColor: {
20959
- type: String
20960
- },
20961
- labelColor: {
20962
- type: String
20963
- },
20964
- labelTextColor: {
20965
- type: String
20966
- },
20967
- trackHeight: {
20968
- type: [String, Number]
20100
+ default: "normal"
20969
20101
  },
20102
+ activeColor: String,
20103
+ trackColor: String,
20104
+ thumbColor: String,
20105
+ labelColor: String,
20106
+ labelTextColor: String,
20107
+ trackHeight: [String, Number],
20970
20108
  max: {
20971
20109
  type: [String, Number],
20972
20110
  default: 100
@@ -20975,25 +20113,14 @@ var props$e = {
20975
20113
  type: [String, Number],
20976
20114
  default: 0
20977
20115
  },
20978
- thumbSize: {
20979
- type: [String, Number]
20980
- },
20981
- disabled: {
20982
- type: Boolean,
20983
- default: false
20984
- },
20985
- // 是否只读
20986
- readonly: {
20987
- type: Boolean,
20988
- default: false
20989
- },
20116
+ thumbSize: [String, Number],
20117
+ disabled: Boolean,
20118
+ readonly: Boolean,
20990
20119
  direction: {
20991
20120
  type: String,
20992
20121
  default: "horizontal"
20993
20122
  },
20994
- rules: {
20995
- type: Array
20996
- },
20123
+ rules: Array,
20997
20124
  onChange: defineListenerProp(),
20998
20125
  onStart: defineListenerProp(),
20999
20126
  onEnd: defineListenerProp(),
@@ -21515,67 +20642,40 @@ function _extends$3() {
21515
20642
  };
21516
20643
  return _extends$3.apply(this, arguments);
21517
20644
  }
21518
- function positionValidator(position) {
21519
- var validPositions = ["top", "center", "bottom"];
21520
- return validPositions.includes(position);
21521
- }
21522
- function typeValidator(type) {
21523
- return SNACKBAR_TYPE.includes(type);
21524
- }
21525
20645
  var props$d = {
21526
- type: {
21527
- type: String,
21528
- validator: typeValidator
21529
- },
20646
+ type: String,
21530
20647
  position: {
21531
20648
  type: String,
21532
- default: "top",
21533
- validator: positionValidator
20649
+ default: "top"
21534
20650
  },
21535
20651
  content: {
21536
20652
  type: [String, Function, Object]
21537
20653
  },
21538
- contentClass: {
21539
- type: String
21540
- },
20654
+ contentClass: String,
21541
20655
  duration: {
21542
20656
  type: Number,
21543
20657
  default: 3e3
21544
20658
  },
21545
- vertical: {
21546
- type: Boolean,
21547
- default: false
21548
- },
20659
+ vertical: Boolean,
21549
20660
  loadingType: pickProps(props$16, "type"),
21550
20661
  loadingSize: pickProps(props$16, "size"),
21551
20662
  loadingRadius: pickProps(props$16, "radius"),
21552
20663
  loadingColor: _extends$3({}, pickProps(props$16, "color"), {
21553
20664
  default: "currentColor"
21554
20665
  }),
21555
- lockScroll: {
21556
- type: Boolean,
21557
- default: false
21558
- },
21559
- show: {
21560
- type: Boolean,
21561
- default: false
21562
- },
20666
+ lockScroll: Boolean,
20667
+ show: Boolean,
21563
20668
  teleport: {
21564
20669
  type: [String, Object, Boolean],
21565
20670
  default: "body"
21566
20671
  },
21567
- forbidClick: {
21568
- type: Boolean,
21569
- default: false
21570
- },
20672
+ forbidClick: Boolean,
21571
20673
  onOpen: defineListenerProp(),
21572
20674
  onOpened: defineListenerProp(),
21573
20675
  onClose: defineListenerProp(),
21574
20676
  onClosed: defineListenerProp(),
21575
20677
  "onUpdate:show": defineListenerProp(),
21576
- _update: {
21577
- type: String
21578
- }
20678
+ _update: String
21579
20679
  };
21580
20680
  var {
21581
20681
  n: n$f,
@@ -21982,15 +21082,10 @@ withInstall(VarSnackbar);
21982
21082
  withInstall(VarSnackbar, Snackbar);
21983
21083
  var _SnackbarComponent = VarSnackbar;
21984
21084
  const Snackbar$1 = Snackbar;
21985
- var internalSizeValidator = (size) => ["mini", "small", "normal", "large"].includes(size);
21986
- var sizeValidator = (size) => internalSizeValidator(size) || isArray(size) || isNumber(size) || isString(size);
21987
- var justifyValidator = (justify) => ["start", "end", "center", "space-around", "space-between", "flex-start", "flex-end"].includes(justify);
21988
- var alignValidator = (align) => ["stretch", "center", "start", "end", "baseline", "flex-start", "flex-end"].includes(align);
21989
21085
  var props$c = {
21990
21086
  size: {
21991
21087
  type: [String, Number, Array],
21992
- default: "normal",
21993
- validator: sizeValidator
21088
+ default: "normal"
21994
21089
  },
21995
21090
  wrap: {
21996
21091
  type: Boolean,
@@ -22002,17 +21097,10 @@ var props$c = {
22002
21097
  },
22003
21098
  justify: {
22004
21099
  type: String,
22005
- default: "flex-start",
22006
- validator: justifyValidator
21100
+ default: "flex-start"
22007
21101
  },
22008
- align: {
22009
- type: String,
22010
- validator: alignValidator
22011
- },
22012
- inline: {
22013
- type: Boolean,
22014
- default: false
22015
- }
21102
+ align: String,
21103
+ inline: Boolean
22016
21104
  };
22017
21105
  function half(value) {
22018
21106
  return "calc(" + value + " / 2)";
@@ -22049,6 +21137,7 @@ function computeMargin(y, x, options) {
22049
21137
  }
22050
21138
  return margin;
22051
21139
  }
21140
+ var isInternalSize = (size) => ["mini", "small", "normal", "large"].includes(size);
22052
21141
  var {
22053
21142
  n: n$d,
22054
21143
  classes: classes$a
@@ -22060,7 +21149,7 @@ const Space = vue.defineComponent({
22060
21149
  var {
22061
21150
  slots
22062
21151
  } = _ref;
22063
- var getSize = (size, isInternalSize) => isInternalSize ? ["var(--space-size-" + size + "-y)", "var(--space-size-" + size + "-x)"] : isArray(size) ? size.map(toSizeUnit) : [toSizeUnit(size), toSizeUnit(size)];
21152
+ var getSize = (size, isInternalSize2) => isInternalSize2 ? ["var(--space-size-" + size + "-y)", "var(--space-size-" + size + "-x)"] : isArray(size) ? size.map(toSizeUnit) : [toSizeUnit(size), toSizeUnit(size)];
22064
21153
  return () => {
22065
21154
  var _call;
22066
21155
  var {
@@ -22072,8 +21161,7 @@ const Space = vue.defineComponent({
22072
21161
  size
22073
21162
  } = props2;
22074
21163
  var children = (_call = call(slots.default)) != null ? _call : [];
22075
- var isInternalSize = internalSizeValidator(size);
22076
- var [y, x] = getSize(size, isInternalSize);
21164
+ var [y, x] = getSize(size, isInternalSize(size));
22077
21165
  children = flatFragment(children);
22078
21166
  var lastIndex = children.length - 1;
22079
21167
  var spacers = children.map((child, index) => {
@@ -22109,12 +21197,8 @@ var props$b = {
22109
21197
  type: String,
22110
21198
  default: "check"
22111
21199
  },
22112
- currentIcon: {
22113
- type: String
22114
- },
22115
- inactiveIcon: {
22116
- type: String
22117
- }
21200
+ currentIcon: String,
21201
+ inactiveIcon: String
22118
21202
  };
22119
21203
  var STEPS_BIND_STEP_KEY = Symbol("STEPS_BIND_STEP_KEY");
22120
21204
  function useStep() {
@@ -22266,9 +21350,6 @@ __sfc__$c.render = __render__$b;
22266
21350
  const Step = __sfc__$c;
22267
21351
  withInstall(Step);
22268
21352
  var _StepComponent = Step;
22269
- function directionValidator$1(direction) {
22270
- return ["horizontal", "vertical"].includes(direction);
22271
- }
22272
21353
  var props$a = {
22273
21354
  active: {
22274
21355
  type: [String, Number],
@@ -22276,15 +21357,10 @@ var props$a = {
22276
21357
  },
22277
21358
  direction: {
22278
21359
  type: String,
22279
- default: "horizontal",
22280
- validator: directionValidator$1
22281
- },
22282
- activeColor: {
22283
- type: String
22284
- },
22285
- inactiveColor: {
22286
- type: String
21360
+ default: "horizontal"
22287
21361
  },
21362
+ activeColor: String,
21363
+ inactiveColor: String,
22288
21364
  onClickStep: defineListenerProp()
22289
21365
  };
22290
21366
  var {
@@ -22387,33 +21463,14 @@ var props$8 = {
22387
21463
  inactiveValue: {
22388
21464
  default: false
22389
21465
  },
22390
- disabled: {
22391
- type: Boolean,
22392
- default: false
22393
- },
22394
- readonly: {
22395
- type: Boolean,
22396
- default: false
22397
- },
22398
- loading: {
22399
- type: Boolean,
22400
- default: false
22401
- },
22402
- color: {
22403
- type: String
22404
- },
22405
- loadingColor: {
22406
- type: String
22407
- },
22408
- closeColor: {
22409
- type: String
22410
- },
22411
- size: {
22412
- type: [String, Number]
22413
- },
22414
- rules: {
22415
- type: Array
22416
- },
21466
+ disabled: Boolean,
21467
+ readonly: Boolean,
21468
+ loading: Boolean,
21469
+ color: String,
21470
+ loadingColor: String,
21471
+ closeColor: String,
21472
+ size: [String, Number],
21473
+ rules: Array,
22417
21474
  ripple: {
22418
21475
  type: Boolean,
22419
21476
  default: true
@@ -22592,16 +21649,18 @@ var __sfc__$9 = vue.defineComponent({
22592
21649
  "onUpdate:modelValue": updateModelValue
22593
21650
  } = props2;
22594
21651
  call(onClick, event);
22595
- if (disabled || loading2 || readonly || form != null && form.disabled.value || form != null && form.readonly.value)
21652
+ if (disabled || loading2 || readonly || form != null && form.disabled.value || form != null && form.readonly.value) {
22596
21653
  return;
21654
+ }
22597
21655
  var newValue = modelValue === activeValue ? inactiveValue : activeValue;
22598
21656
  call(onChange, newValue);
22599
21657
  call(updateModelValue, newValue);
22600
21658
  validateWithTrigger();
22601
21659
  };
22602
21660
  var hover = (value) => {
22603
- if (props2.disabled || form != null && form.disabled.value)
21661
+ if (props2.disabled || form != null && form.disabled.value) {
22604
21662
  return;
21663
+ }
22605
21664
  handleHovering(value);
22606
21665
  };
22607
21666
  var reset = () => {
@@ -22617,15 +21676,15 @@ var __sfc__$9 = vue.defineComponent({
22617
21676
  return {
22618
21677
  n: n$9,
22619
21678
  classes: classes$8,
22620
- multiplySizeUnit,
22621
- switchActive,
22622
21679
  hovering,
22623
- hover,
22624
21680
  radius,
22625
21681
  styleComputed,
22626
21682
  errorMessage,
22627
21683
  formDisabled: form == null ? void 0 : form.disabled,
22628
- formReadonly: form == null ? void 0 : form.readonly
21684
+ formReadonly: form == null ? void 0 : form.readonly,
21685
+ multiplySizeUnit,
21686
+ switchActive,
21687
+ hover
22629
21688
  };
22630
21689
  }
22631
21690
  });
@@ -22634,13 +21693,8 @@ const Switch = __sfc__$9;
22634
21693
  withInstall(Switch);
22635
21694
  var _SwitchComponent = Switch;
22636
21695
  var props$7 = {
22637
- name: {
22638
- type: [String, Number]
22639
- },
22640
- disabled: {
22641
- type: Boolean,
22642
- default: false
22643
- },
21696
+ name: [String, Number],
21697
+ disabled: Boolean,
22644
21698
  onClick: defineListenerProp()
22645
21699
  };
22646
21700
  var TABS_BIND_TAB_KEY = Symbol("TABS_BIND_TAB_KEY");
@@ -22769,9 +21823,7 @@ const Tab = __sfc__$8;
22769
21823
  withInstall(Tab);
22770
21824
  var _TabComponent = Tab;
22771
21825
  var props$6 = {
22772
- name: {
22773
- type: [String, Number]
22774
- }
21826
+ name: [String, Number]
22775
21827
  };
22776
21828
  var {
22777
21829
  n: n$7,
@@ -22895,15 +21947,6 @@ __sfc__$6.render = __render__$6;
22895
21947
  const Table = __sfc__$6;
22896
21948
  withInstall(Table);
22897
21949
  var _TableComponent = Table;
22898
- function directionValidator(direction) {
22899
- return ["horizontal", "vertical"].includes(direction);
22900
- }
22901
- function scrollableValidator(scrollable) {
22902
- return ["auto", "always"].includes(scrollable);
22903
- }
22904
- function indicatorPositionValidator(indicatorPosition) {
22905
- return ["normal", "reverse"].includes(indicatorPosition);
22906
- }
22907
21950
  var props$4 = {
22908
21951
  active: {
22909
21952
  type: [String, Number],
@@ -22911,58 +21954,33 @@ var props$4 = {
22911
21954
  },
22912
21955
  layoutDirection: {
22913
21956
  type: String,
22914
- default: "horizontal",
22915
- validator: directionValidator
21957
+ default: "horizontal"
22916
21958
  },
22917
21959
  itemDirection: {
22918
21960
  type: String,
22919
- default: "horizontal",
22920
- validator: directionValidator
22921
- },
22922
- fixedBottom: {
22923
- type: Boolean,
22924
- default: false
22925
- },
22926
- activeColor: {
22927
- type: String
22928
- },
22929
- inactiveColor: {
22930
- type: String
22931
- },
22932
- disabledColor: {
22933
- type: String
22934
- },
22935
- color: {
22936
- type: String
22937
- },
22938
- indicatorColor: {
22939
- type: String
22940
- },
22941
- indicatorSize: {
22942
- type: [String, Number]
21961
+ default: "horizontal"
22943
21962
  },
21963
+ fixedBottom: Boolean,
21964
+ activeColor: String,
21965
+ inactiveColor: String,
21966
+ disabledColor: String,
21967
+ color: String,
21968
+ indicatorColor: String,
21969
+ indicatorSize: [String, Number],
22944
21970
  elevation: {
22945
21971
  type: [Boolean, String, Number],
22946
21972
  default: false
22947
21973
  },
22948
21974
  scrollable: {
22949
21975
  type: String,
22950
- default: "auto",
22951
- validator: scrollableValidator
21976
+ default: "auto"
22952
21977
  },
22953
21978
  indicatorPosition: {
22954
21979
  type: String,
22955
- default: "normal",
22956
- validator: indicatorPositionValidator
22957
- },
22958
- safeArea: {
22959
- type: Boolean,
22960
- default: false
22961
- },
22962
- sticky: {
22963
- type: Boolean,
22964
- default: false
21980
+ default: "normal"
22965
21981
  },
21982
+ safeArea: Boolean,
21983
+ sticky: Boolean,
22966
21984
  stickyCssMode: pickProps(props$C, "cssMode"),
22967
21985
  stickyZIndex: pickProps(props$C, "zIndex"),
22968
21986
  offsetTop: pickProps(props$C, "offsetTop"),
@@ -23232,10 +22250,7 @@ var props$3 = {
23232
22250
  type: Boolean,
23233
22251
  default: true
23234
22252
  },
23235
- loop: {
23236
- type: Boolean,
23237
- default: false
23238
- },
22253
+ loop: Boolean,
23239
22254
  "onUpdate:active": defineListenerProp()
23240
22255
  };
23241
22256
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -23565,45 +22580,23 @@ const Themes$1 = Themes;
23565
22580
  var hoursAmpm = ["12", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];
23566
22581
  var hours24 = ["00", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
23567
22582
  var minSec = ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"];
23568
- function formatValidator(type) {
23569
- return ["ampm", "24hr"].includes(type);
23570
- }
23571
22583
  var props$2 = {
23572
- modelValue: {
23573
- type: String
23574
- },
22584
+ modelValue: String,
23575
22585
  elevation: {
23576
22586
  type: [Boolean, Number, String],
23577
22587
  default: false
23578
22588
  },
23579
- color: {
23580
- type: String
23581
- },
23582
- headerColor: {
23583
- type: String
23584
- },
22589
+ color: String,
22590
+ headerColor: String,
23585
22591
  format: {
23586
22592
  type: String,
23587
- default: "ampm",
23588
- validator: formatValidator
23589
- },
23590
- allowedTime: {
23591
- type: Object
23592
- },
23593
- min: {
23594
- type: String
23595
- },
23596
- max: {
23597
- type: String
23598
- },
23599
- useSeconds: {
23600
- type: Boolean,
23601
- default: false
23602
- },
23603
- readonly: {
23604
- type: Boolean,
23605
- default: false
22593
+ default: "ampm"
23606
22594
  },
22595
+ allowedTime: Object,
22596
+ min: String,
22597
+ max: String,
22598
+ useSeconds: Boolean,
22599
+ readonly: Boolean,
23607
22600
  "onUpdate:modelValue": defineListenerProp(),
23608
22601
  onChange: defineListenerProp()
23609
22602
  };
@@ -24495,18 +23488,9 @@ var props$1 = {
24495
23488
  type: [String, Boolean],
24496
23489
  default: void 0
24497
23490
  },
24498
- multiple: {
24499
- type: Boolean,
24500
- default: false
24501
- },
24502
- readonly: {
24503
- type: Boolean,
24504
- default: false
24505
- },
24506
- disabled: {
24507
- type: Boolean,
24508
- default: false
24509
- },
23491
+ multiple: Boolean,
23492
+ readonly: Boolean,
23493
+ disabled: Boolean,
24510
23494
  elevation: {
24511
23495
  type: [Boolean, Number, String],
24512
23496
  default: true
@@ -24515,12 +23499,8 @@ var props$1 = {
24515
23499
  type: Boolean,
24516
23500
  default: true
24517
23501
  },
24518
- maxlength: {
24519
- type: [Number, String]
24520
- },
24521
- maxsize: {
24522
- type: [Number, String]
24523
- },
23502
+ maxlength: [Number, String],
23503
+ maxsize: [Number, String],
24524
23504
  previewed: {
24525
23505
  type: Boolean,
24526
23506
  default: true
@@ -24533,13 +23513,8 @@ var props$1 = {
24533
23513
  type: Array,
24534
23514
  default: () => ["onChange", "onRemove"]
24535
23515
  },
24536
- rules: {
24537
- type: Array
24538
- },
24539
- hideList: {
24540
- type: Boolean,
24541
- default: false
24542
- },
23516
+ rules: Array,
23517
+ hideList: Boolean,
24543
23518
  onBeforeFilter: defineListenerProp(),
24544
23519
  onBeforeRead: defineListenerProp(),
24545
23520
  onAfterRead: defineListenerProp(),
@@ -25040,12 +24015,8 @@ var props = {
25040
24015
  type: Number,
25041
24016
  default: 100
25042
24017
  },
25043
- content: {
25044
- type: String
25045
- },
25046
- image: {
25047
- type: String
25048
- },
24018
+ content: String,
24019
+ image: String,
25049
24020
  rotate: {
25050
24021
  type: Number,
25051
24022
  default: -22
@@ -25074,10 +24045,7 @@ var props = {
25074
24045
  type: [Number, String],
25075
24046
  default: 0.5
25076
24047
  },
25077
- fullscreen: {
25078
- type: Boolean,
25079
- default: false
25080
- },
24048
+ fullscreen: Boolean,
25081
24049
  font: {
25082
24050
  type: Object,
25083
24051
  default: () => ({
@@ -25460,7 +24428,7 @@ const uploader = "";
25460
24428
  const UploaderSfc = "";
25461
24429
  const watermark = "";
25462
24430
  const WatermarkSfc = "";
25463
- const version = "2.14.2";
24431
+ const version = "2.15.0-alpha.1692990022445";
25464
24432
  function install(app) {
25465
24433
  ActionSheet.install && app.use(ActionSheet);
25466
24434
  AppBar.install && app.use(AppBar);