vant 4.1.0 → 4.1.2

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 (201) hide show
  1. package/es/area/utils.mjs +2 -2
  2. package/es/back-top/BackTop.mjs +1 -1
  3. package/es/badge/Badge.mjs +1 -1
  4. package/es/button/Button.d.ts +1 -1
  5. package/es/button/index.d.ts +1 -1
  6. package/es/calendar/Calendar.mjs +2 -2
  7. package/es/calendar/utils.mjs +1 -1
  8. package/es/checkbox/Checkbox.mjs +1 -1
  9. package/es/date-picker/DatePicker.mjs +1 -1
  10. package/es/divider/Divider.d.ts +1 -1
  11. package/es/divider/index.d.ts +1 -1
  12. package/es/field/Field.mjs +13 -7
  13. package/es/field/index.css +1 -1
  14. package/es/field/index.d.ts +1 -1
  15. package/es/field/types.d.ts +2 -2
  16. package/es/grid-item/GridItem.mjs +1 -1
  17. package/es/image-preview/ImagePreviewItem.mjs +4 -3
  18. package/es/index.d.ts +1 -1
  19. package/es/index.mjs +1 -1
  20. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  21. package/es/lazyload/vue-lazyload/lazy-image.mjs +0 -1
  22. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  23. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  24. package/es/list/List.mjs +3 -2
  25. package/es/locale/lang/km-KH.d.ts +62 -0
  26. package/es/locale/lang/km-KH.mjs +64 -0
  27. package/es/number-keyboard/NumberKeyboard.mjs +1 -1
  28. package/es/password-input/PasswordInput.mjs +1 -1
  29. package/es/picker/Picker.mjs +1 -0
  30. package/es/popup/shared.mjs +12 -0
  31. package/es/progress/Progress.mjs +1 -1
  32. package/es/search/Search.mjs +4 -4
  33. package/es/slider/Slider.d.ts +1 -1
  34. package/es/slider/index.d.ts +1 -1
  35. package/es/stepper/Stepper.mjs +2 -2
  36. package/es/sticky/Sticky.mjs +2 -0
  37. package/es/swipe/Swipe.mjs +3 -2
  38. package/es/tabs/Tabs.mjs +1 -1
  39. package/es/tag/Tag.d.ts +1 -1
  40. package/es/tag/index.d.ts +1 -1
  41. package/es/text-ellipsis/index.css +1 -1
  42. package/es/tree-select/TreeSelect.mjs +1 -1
  43. package/es/uploader/Uploader.mjs +1 -1
  44. package/es/uploader/utils.mjs +2 -2
  45. package/lib/action-bar/index.js +4 -0
  46. package/lib/action-bar-button/index.js +4 -0
  47. package/lib/action-bar-icon/index.js +4 -0
  48. package/lib/action-sheet/index.js +4 -0
  49. package/lib/address-edit/AddressEdit.js +4 -0
  50. package/lib/address-edit/index.js +4 -0
  51. package/lib/address-list/AddressList.js +4 -0
  52. package/lib/address-list/index.js +4 -0
  53. package/lib/area/index.js +4 -0
  54. package/lib/area/utils.js +2 -2
  55. package/lib/back-top/BackTop.js +1 -1
  56. package/lib/back-top/index.js +4 -0
  57. package/lib/badge/Badge.js +1 -1
  58. package/lib/badge/index.js +4 -0
  59. package/lib/button/Button.d.ts +1 -1
  60. package/lib/button/index.d.ts +1 -1
  61. package/lib/button/index.js +4 -0
  62. package/lib/calendar/Calendar.js +6 -2
  63. package/lib/calendar/CalendarMonth.js +4 -0
  64. package/lib/calendar/index.js +4 -0
  65. package/lib/calendar/utils.js +1 -1
  66. package/lib/card/index.js +4 -0
  67. package/lib/cascader/index.js +4 -0
  68. package/lib/cell/index.js +4 -0
  69. package/lib/cell-group/index.js +4 -0
  70. package/lib/checkbox/Checkbox.js +5 -1
  71. package/lib/checkbox/index.js +4 -0
  72. package/lib/checkbox-group/index.js +4 -0
  73. package/lib/circle/index.js +4 -0
  74. package/lib/col/index.js +4 -0
  75. package/lib/collapse/index.js +4 -0
  76. package/lib/collapse-item/index.js +4 -0
  77. package/lib/config-provider/index.js +4 -0
  78. package/lib/contact-card/index.js +4 -0
  79. package/lib/contact-edit/index.js +4 -0
  80. package/lib/contact-list/index.js +4 -0
  81. package/lib/count-down/index.js +4 -0
  82. package/lib/coupon/index.js +4 -0
  83. package/lib/coupon-cell/index.js +4 -0
  84. package/lib/coupon-list/index.js +4 -0
  85. package/lib/date-picker/DatePicker.js +1 -1
  86. package/lib/date-picker/index.js +4 -0
  87. package/lib/dialog/function-call.js +4 -0
  88. package/lib/dialog/index.js +4 -0
  89. package/lib/divider/Divider.d.ts +1 -1
  90. package/lib/divider/index.d.ts +1 -1
  91. package/lib/divider/index.js +4 -0
  92. package/lib/dropdown-item/index.js +4 -0
  93. package/lib/dropdown-menu/index.js +4 -0
  94. package/lib/empty/index.js +4 -0
  95. package/lib/field/Field.js +13 -7
  96. package/lib/field/index.css +1 -1
  97. package/lib/field/index.d.ts +1 -1
  98. package/lib/field/index.js +4 -0
  99. package/lib/field/types.d.ts +2 -2
  100. package/lib/form/index.js +4 -0
  101. package/lib/grid/index.js +4 -0
  102. package/lib/grid-item/GridItem.js +1 -1
  103. package/lib/grid-item/index.js +4 -0
  104. package/lib/icon/index.js +4 -0
  105. package/lib/image/index.js +4 -0
  106. package/lib/image-preview/ImagePreview.js +4 -0
  107. package/lib/image-preview/ImagePreviewItem.js +4 -3
  108. package/lib/image-preview/function-call.js +4 -0
  109. package/lib/image-preview/index.js +4 -0
  110. package/lib/index-anchor/index.js +4 -0
  111. package/lib/index-bar/index.js +4 -0
  112. package/lib/index.css +1 -1
  113. package/lib/index.d.ts +1 -1
  114. package/lib/index.js +1 -1
  115. package/lib/lazyload/vue-lazyload/index.js +9 -0
  116. package/lib/lazyload/vue-lazyload/lazy-image.js +0 -1
  117. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  118. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  119. package/lib/list/List.js +3 -2
  120. package/lib/list/index.js +4 -0
  121. package/lib/loading/index.js +4 -0
  122. package/lib/locale/index.js +4 -0
  123. package/lib/locale/lang/km-KH.d.ts +62 -0
  124. package/lib/locale/lang/km-KH.js +83 -0
  125. package/lib/nav-bar/index.js +4 -0
  126. package/lib/notice-bar/index.js +4 -0
  127. package/lib/notify/function-call.js +4 -0
  128. package/lib/notify/index.js +4 -0
  129. package/lib/number-keyboard/NumberKeyboard.js +5 -1
  130. package/lib/number-keyboard/index.js +4 -0
  131. package/lib/overlay/index.js +4 -0
  132. package/lib/pagination/index.js +4 -0
  133. package/lib/password-input/PasswordInput.js +1 -1
  134. package/lib/password-input/index.js +4 -0
  135. package/lib/picker/Picker.js +5 -0
  136. package/lib/picker/index.js +4 -0
  137. package/lib/picker-group/PickerGroup.js +4 -0
  138. package/lib/picker-group/index.js +4 -0
  139. package/lib/popover/index.js +4 -0
  140. package/lib/popup/index.js +4 -0
  141. package/lib/popup/shared.js +12 -0
  142. package/lib/progress/Progress.js +1 -1
  143. package/lib/progress/index.js +4 -0
  144. package/lib/pull-refresh/index.js +4 -0
  145. package/lib/radio/Radio.js +4 -0
  146. package/lib/radio/index.js +4 -0
  147. package/lib/radio-group/index.js +4 -0
  148. package/lib/rate/index.js +4 -0
  149. package/lib/row/index.js +4 -0
  150. package/lib/search/Search.js +4 -4
  151. package/lib/search/index.js +4 -0
  152. package/lib/share-sheet/index.js +4 -0
  153. package/lib/sidebar/index.js +4 -0
  154. package/lib/sidebar-item/index.js +4 -0
  155. package/lib/skeleton/Skeleton.js +4 -0
  156. package/lib/skeleton/index.js +4 -0
  157. package/lib/skeleton-avatar/index.js +4 -0
  158. package/lib/skeleton-image/index.js +4 -0
  159. package/lib/skeleton-paragraph/index.js +4 -0
  160. package/lib/skeleton-title/index.js +4 -0
  161. package/lib/slider/Slider.d.ts +1 -1
  162. package/lib/slider/index.d.ts +1 -1
  163. package/lib/slider/index.js +4 -0
  164. package/lib/space/index.js +4 -0
  165. package/lib/step/index.js +4 -0
  166. package/lib/stepper/Stepper.js +2 -2
  167. package/lib/stepper/index.js +4 -0
  168. package/lib/steps/index.js +4 -0
  169. package/lib/sticky/Sticky.js +2 -0
  170. package/lib/sticky/index.js +4 -0
  171. package/lib/submit-bar/index.js +4 -0
  172. package/lib/swipe/Swipe.js +3 -2
  173. package/lib/swipe/index.js +4 -0
  174. package/lib/swipe-cell/index.js +4 -0
  175. package/lib/swipe-item/index.js +4 -0
  176. package/lib/switch/index.js +4 -0
  177. package/lib/tab/index.js +4 -0
  178. package/lib/tabbar/index.js +4 -0
  179. package/lib/tabbar-item/index.js +4 -0
  180. package/lib/tabs/Tabs.js +5 -1
  181. package/lib/tabs/index.js +4 -0
  182. package/lib/tag/Tag.d.ts +1 -1
  183. package/lib/tag/index.d.ts +1 -1
  184. package/lib/tag/index.js +4 -0
  185. package/lib/text-ellipsis/index.css +1 -1
  186. package/lib/text-ellipsis/index.js +4 -0
  187. package/lib/time-picker/index.js +4 -0
  188. package/lib/toast/function-call.js +4 -0
  189. package/lib/toast/index.js +4 -0
  190. package/lib/tree-select/TreeSelect.js +1 -1
  191. package/lib/tree-select/index.js +4 -0
  192. package/lib/uploader/Uploader.js +5 -1
  193. package/lib/uploader/index.js +4 -0
  194. package/lib/uploader/utils.js +2 -2
  195. package/lib/utils/create.js +4 -0
  196. package/lib/vant.cjs.js +194 -40
  197. package/lib/vant.es.js +194 -40
  198. package/lib/vant.js +231 -47
  199. package/lib/vant.min.js +1 -1
  200. package/lib/web-types.json +1 -1
  201. package/package.json +11 -5
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -194,6 +198,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
194
198
  (0, import_vue2.watch)(() => props.modelValue, (newValues) => {
195
199
  if (!(0, import_utils.isSameValue)(newValues, selectedValues.value) && !(0, import_utils.isSameValue)(newValues, lastEmittedModelValue)) {
196
200
  selectedValues.value = newValues.slice(0);
201
+ lastEmittedModelValue = newValues.slice(0);
197
202
  }
198
203
  }, {
199
204
  deep: true
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -23,17 +23,29 @@ __export(stdin_exports, {
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_utils = require("../utils");
25
25
  const popupSharedProps = {
26
+ // whether to show popup
26
27
  show: Boolean,
28
+ // z-index
27
29
  zIndex: import_utils.numericProp,
30
+ // whether to show overlay
28
31
  overlay: import_utils.truthProp,
32
+ // transition duration
29
33
  duration: import_utils.numericProp,
34
+ // teleport
30
35
  teleport: [String, Object],
36
+ // prevent body scroll
31
37
  lockScroll: import_utils.truthProp,
38
+ // whether to lazy render
32
39
  lazyRender: import_utils.truthProp,
40
+ // callback function before close
33
41
  beforeClose: Function,
42
+ // overlay custom style
34
43
  overlayStyle: Object,
44
+ // overlay custom class name
35
45
  overlayClass: import_utils.unknownProp,
46
+ // Initial rendering animation
36
47
  transitionAppear: Boolean,
48
+ // whether to close popup when overlay is clicked
37
49
  closeOnClickOverlay: import_utils.truthProp
38
50
  };
39
51
  const popupSharedPropKeys = Object.keys(
@@ -37,7 +37,7 @@ const progressProps = {
37
37
  percentage: {
38
38
  type: import_utils.numericProp,
39
39
  default: 0,
40
- validator: (value) => value >= 0 && value <= 100
40
+ validator: (value) => +value >= 0 && +value <= 100
41
41
  }
42
42
  };
43
43
  var stdin_default = (0, import_vue2.defineComponent)({
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/rate/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/row/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -48,7 +48,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
48
48
  attrs
49
49
  }) {
50
50
  const id = (0, import_use_id.useId)();
51
- const filedRef = (0, import_vue2.ref)();
51
+ const fieldRef = (0, import_vue2.ref)();
52
52
  const onCancel = () => {
53
53
  if (!slots.action) {
54
54
  emit("update:modelValue", "");
@@ -84,11 +84,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
84
84
  };
85
85
  const blur = () => {
86
86
  var _a;
87
- return (_a = filedRef.value) == null ? void 0 : _a.blur();
87
+ return (_a = fieldRef.value) == null ? void 0 : _a.blur();
88
88
  };
89
89
  const focus = () => {
90
90
  var _a;
91
- return (_a = filedRef.value) == null ? void 0 : _a.focus();
91
+ return (_a = fieldRef.value) == null ? void 0 : _a.focus();
92
92
  };
93
93
  const onBlur = (event) => emit("blur", event);
94
94
  const onFocus = (event) => emit("focus", event);
@@ -103,7 +103,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
103
103
  });
104
104
  const onInput = (value) => emit("update:modelValue", value);
105
105
  return (0, import_vue.createVNode)(import_field.Field, (0, import_vue.mergeProps)({
106
- "ref": filedRef,
106
+ "ref": fieldRef,
107
107
  "type": "search",
108
108
  "class": bem("field"),
109
109
  "border": false,
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -87,9 +87,9 @@ declare const _default: import("vue").DefineComponent<{
87
87
  onDragStart?: ((...args: any[]) => any) | undefined;
88
88
  onDragEnd?: ((...args: any[]) => any) | undefined;
89
89
  }, {
90
+ reverse: boolean;
90
91
  range: boolean;
91
92
  max: string | number;
92
- reverse: boolean;
93
93
  disabled: boolean;
94
94
  modelValue: SliderValue;
95
95
  readonly: boolean;
@@ -56,9 +56,9 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
56
56
  onDragStart?: ((...args: any[]) => any) | undefined;
57
57
  onDragEnd?: ((...args: any[]) => any) | undefined;
58
58
  }, {
59
+ reverse: boolean;
59
60
  range: boolean;
60
61
  max: string | number;
61
- reverse: boolean;
62
62
  disabled: boolean;
63
63
  modelValue: number | [number, number];
64
64
  readonly: boolean;
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/step/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -91,8 +91,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
91
91
  let actionType;
92
92
  const inputRef = (0, import_vue2.ref)();
93
93
  const current = (0, import_vue2.ref)(getInitialValue());
94
- const minusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disableMinus || current.value <= +props.min);
95
- const plusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disablePlus || current.value >= +props.max);
94
+ const minusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disableMinus || +current.value <= +props.min);
95
+ const plusDisabled = (0, import_vue2.computed)(() => props.disabled || props.disablePlus || +current.value >= +props.max);
96
96
  const inputStyle = (0, import_vue2.computed)(() => ({
97
97
  width: (0, import_utils.addUnit)(props.inputWidth),
98
98
  height: (0, import_utils.addUnit)(props.buttonSize)
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -47,7 +47,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
47
47
  const state = (0, import_vue2.reactive)({
48
48
  fixed: false,
49
49
  width: 0,
50
+ // root width
50
51
  height: 0,
52
+ // root height
51
53
  transform: 0
52
54
  });
53
55
  const offset = (0, import_vue2.computed)(() => (0, import_utils.unitToPx)(props.position === "top" ? props.offsetTop : props.offsetBottom));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -189,7 +189,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
189
189
  const stopAutoplay = () => clearTimeout(autoplayTimer);
190
190
  const autoplay = () => {
191
191
  stopAutoplay();
192
- if (props.autoplay > 0 && count.value > 1) {
192
+ if (+props.autoplay > 0 && count.value > 1) {
193
193
  autoplayTimer = setTimeout(() => {
194
194
  next();
195
195
  autoplay();
@@ -234,7 +234,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
234
234
  const resize = () => initialize(state.active);
235
235
  let touchStartTime;
236
236
  const onTouchStart = (event) => {
237
- if (!props.touchable || event.touches.length > 1)
237
+ if (!props.touchable || // avoid resetting position on multi-finger touch
238
+ event.touches.length > 1)
238
239
  return;
239
240
  touch.start(event);
240
241
  dragging = false;
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/tab/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/tabs/Tabs.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -94,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
94
98
  lineStyle: {},
95
99
  currentIndex: -1
96
100
  });
97
- const scrollable = (0, import_vue2.computed)(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
101
+ const scrollable = (0, import_vue2.computed)(() => children.length > +props.swipeThreshold || !props.ellipsis || props.shrink);
98
102
  const navStyle = (0, import_vue2.computed)(() => ({
99
103
  borderColor: props.color,
100
104
  background: props.background