vant 4.0.11 → 4.1.1

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 (221) hide show
  1. package/README.md +7 -3
  2. package/es/area/utils.mjs +2 -2
  3. package/es/back-top/BackTop.mjs +1 -1
  4. package/es/badge/Badge.mjs +1 -1
  5. package/es/button/Button.d.ts +1 -1
  6. package/es/button/index.d.ts +1 -1
  7. package/es/calendar/Calendar.mjs +2 -2
  8. package/es/calendar/utils.mjs +1 -1
  9. package/es/checkbox/Checkbox.mjs +1 -1
  10. package/es/date-picker/DatePicker.mjs +1 -1
  11. package/es/divider/Divider.d.ts +1 -1
  12. package/es/divider/index.d.ts +1 -1
  13. package/es/dropdown-item/DropdownItem.mjs +1 -0
  14. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  15. package/es/dropdown-menu/types.d.ts +1 -0
  16. package/es/field/Field.mjs +2 -2
  17. package/es/field/index.css +1 -1
  18. package/es/field/index.d.ts +1 -1
  19. package/es/field/types.d.ts +2 -2
  20. package/es/grid-item/GridItem.mjs +1 -1
  21. package/es/image-preview/ImagePreviewItem.mjs +3 -2
  22. package/es/index.d.ts +2 -1
  23. package/es/index.mjs +4 -1
  24. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  25. package/es/lazyload/vue-lazyload/lazy-image.mjs +0 -1
  26. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  27. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  28. package/es/list/List.mjs +3 -2
  29. package/es/locale/lang/uk-UA.mjs +15 -15
  30. package/es/number-keyboard/NumberKeyboard.mjs +1 -1
  31. package/es/password-input/PasswordInput.mjs +1 -1
  32. package/es/picker/Picker.mjs +1 -0
  33. package/es/popup/shared.mjs +12 -0
  34. package/es/progress/Progress.mjs +1 -1
  35. package/es/search/Search.mjs +4 -4
  36. package/es/slider/Slider.d.ts +1 -1
  37. package/es/slider/index.d.ts +1 -1
  38. package/es/stepper/Stepper.mjs +2 -2
  39. package/es/sticky/Sticky.mjs +2 -0
  40. package/es/swipe/Swipe.mjs +9 -4
  41. package/es/tabs/Tabs.mjs +1 -1
  42. package/es/tag/Tag.d.ts +1 -1
  43. package/es/tag/index.d.ts +1 -1
  44. package/es/text-ellipsis/TextEllipsis.d.ts +63 -0
  45. package/es/text-ellipsis/TextEllipsis.mjs +108 -0
  46. package/es/text-ellipsis/index.css +1 -0
  47. package/es/text-ellipsis/index.d.ts +51 -0
  48. package/es/text-ellipsis/index.mjs +10 -0
  49. package/es/text-ellipsis/style/index.d.ts +1 -0
  50. package/es/text-ellipsis/style/index.mjs +2 -0
  51. package/es/text-ellipsis/types.d.ts +3 -0
  52. package/es/text-ellipsis/types.mjs +0 -0
  53. package/es/tree-select/TreeSelect.mjs +4 -3
  54. package/es/uploader/Uploader.mjs +1 -1
  55. package/es/uploader/utils.mjs +2 -2
  56. package/lib/action-bar/index.js +4 -0
  57. package/lib/action-bar-button/index.js +4 -0
  58. package/lib/action-bar-icon/index.js +4 -0
  59. package/lib/action-sheet/index.js +4 -0
  60. package/lib/address-edit/AddressEdit.js +4 -0
  61. package/lib/address-edit/index.js +4 -0
  62. package/lib/address-list/AddressList.js +4 -0
  63. package/lib/address-list/index.js +4 -0
  64. package/lib/area/index.js +4 -0
  65. package/lib/area/utils.js +2 -2
  66. package/lib/back-top/BackTop.js +1 -1
  67. package/lib/back-top/index.js +4 -0
  68. package/lib/badge/Badge.js +1 -1
  69. package/lib/badge/index.js +4 -0
  70. package/lib/button/Button.d.ts +1 -1
  71. package/lib/button/index.d.ts +1 -1
  72. package/lib/button/index.js +4 -0
  73. package/lib/calendar/Calendar.js +6 -2
  74. package/lib/calendar/CalendarMonth.js +4 -0
  75. package/lib/calendar/index.js +4 -0
  76. package/lib/calendar/utils.js +1 -1
  77. package/lib/card/index.js +4 -0
  78. package/lib/cascader/index.js +4 -0
  79. package/lib/cell/index.js +4 -0
  80. package/lib/cell-group/index.js +4 -0
  81. package/lib/checkbox/Checkbox.js +5 -1
  82. package/lib/checkbox/index.js +4 -0
  83. package/lib/checkbox-group/index.js +4 -0
  84. package/lib/circle/index.js +4 -0
  85. package/lib/col/index.js +4 -0
  86. package/lib/collapse/index.js +4 -0
  87. package/lib/collapse-item/index.js +4 -0
  88. package/lib/config-provider/index.js +4 -0
  89. package/lib/contact-card/index.js +4 -0
  90. package/lib/contact-edit/index.js +4 -0
  91. package/lib/contact-list/index.js +4 -0
  92. package/lib/count-down/index.js +4 -0
  93. package/lib/coupon/index.js +4 -0
  94. package/lib/coupon-cell/index.js +4 -0
  95. package/lib/coupon-list/index.js +4 -0
  96. package/lib/date-picker/DatePicker.js +1 -1
  97. package/lib/date-picker/index.js +4 -0
  98. package/lib/dialog/function-call.js +4 -0
  99. package/lib/dialog/index.js +4 -0
  100. package/lib/divider/Divider.d.ts +1 -1
  101. package/lib/divider/index.d.ts +1 -1
  102. package/lib/divider/index.js +4 -0
  103. package/lib/dropdown-item/DropdownItem.js +1 -0
  104. package/lib/dropdown-item/index.js +4 -0
  105. package/lib/dropdown-menu/DropdownMenu.js +2 -2
  106. package/lib/dropdown-menu/index.js +4 -0
  107. package/lib/dropdown-menu/types.d.ts +1 -0
  108. package/lib/empty/index.js +4 -0
  109. package/lib/field/Field.js +2 -2
  110. package/lib/field/index.css +1 -1
  111. package/lib/field/index.d.ts +1 -1
  112. package/lib/field/index.js +4 -0
  113. package/lib/field/types.d.ts +2 -2
  114. package/lib/form/index.js +4 -0
  115. package/lib/grid/index.js +4 -0
  116. package/lib/grid-item/GridItem.js +1 -1
  117. package/lib/grid-item/index.js +4 -0
  118. package/lib/icon/index.js +4 -0
  119. package/lib/image/index.js +4 -0
  120. package/lib/image-preview/ImagePreview.js +4 -0
  121. package/lib/image-preview/ImagePreviewItem.js +3 -2
  122. package/lib/image-preview/function-call.js +4 -0
  123. package/lib/image-preview/index.js +4 -0
  124. package/lib/index-anchor/index.js +4 -0
  125. package/lib/index-bar/index.js +4 -0
  126. package/lib/index.css +1 -1
  127. package/lib/index.d.ts +2 -1
  128. package/lib/index.js +4 -1
  129. package/lib/lazyload/vue-lazyload/index.js +9 -0
  130. package/lib/lazyload/vue-lazyload/lazy-image.js +0 -1
  131. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  132. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  133. package/lib/list/List.js +3 -2
  134. package/lib/list/index.js +4 -0
  135. package/lib/loading/index.js +4 -0
  136. package/lib/locale/index.js +4 -0
  137. package/lib/locale/lang/uk-UA.js +15 -15
  138. package/lib/nav-bar/index.js +4 -0
  139. package/lib/notice-bar/index.js +4 -0
  140. package/lib/notify/function-call.js +4 -0
  141. package/lib/notify/index.js +4 -0
  142. package/lib/number-keyboard/NumberKeyboard.js +5 -1
  143. package/lib/number-keyboard/index.js +4 -0
  144. package/lib/overlay/index.js +4 -0
  145. package/lib/pagination/index.js +4 -0
  146. package/lib/password-input/PasswordInput.js +1 -1
  147. package/lib/password-input/index.js +4 -0
  148. package/lib/picker/Picker.js +5 -0
  149. package/lib/picker/index.js +4 -0
  150. package/lib/picker-group/PickerGroup.js +4 -0
  151. package/lib/picker-group/index.js +4 -0
  152. package/lib/popover/index.js +4 -0
  153. package/lib/popup/index.js +4 -0
  154. package/lib/popup/shared.js +12 -0
  155. package/lib/progress/Progress.js +1 -1
  156. package/lib/progress/index.js +4 -0
  157. package/lib/pull-refresh/index.js +4 -0
  158. package/lib/radio/Radio.js +4 -0
  159. package/lib/radio/index.js +4 -0
  160. package/lib/radio-group/index.js +4 -0
  161. package/lib/rate/index.js +4 -0
  162. package/lib/row/index.js +4 -0
  163. package/lib/search/Search.js +4 -4
  164. package/lib/search/index.js +4 -0
  165. package/lib/share-sheet/index.js +4 -0
  166. package/lib/sidebar/index.js +4 -0
  167. package/lib/sidebar-item/index.js +4 -0
  168. package/lib/skeleton/Skeleton.js +4 -0
  169. package/lib/skeleton/index.js +4 -0
  170. package/lib/skeleton-avatar/index.js +4 -0
  171. package/lib/skeleton-image/index.js +4 -0
  172. package/lib/skeleton-paragraph/index.js +4 -0
  173. package/lib/skeleton-title/index.js +4 -0
  174. package/lib/slider/Slider.d.ts +1 -1
  175. package/lib/slider/index.d.ts +1 -1
  176. package/lib/slider/index.js +4 -0
  177. package/lib/space/index.js +4 -0
  178. package/lib/step/index.js +4 -0
  179. package/lib/stepper/Stepper.js +2 -2
  180. package/lib/stepper/index.js +4 -0
  181. package/lib/steps/index.js +4 -0
  182. package/lib/sticky/Sticky.js +2 -0
  183. package/lib/sticky/index.js +4 -0
  184. package/lib/submit-bar/index.js +4 -0
  185. package/lib/swipe/Swipe.js +9 -4
  186. package/lib/swipe/index.js +4 -0
  187. package/lib/swipe-cell/index.js +4 -0
  188. package/lib/swipe-item/index.js +4 -0
  189. package/lib/switch/index.js +4 -0
  190. package/lib/tab/index.js +4 -0
  191. package/lib/tabbar/index.js +4 -0
  192. package/lib/tabbar-item/index.js +4 -0
  193. package/lib/tabs/Tabs.js +5 -1
  194. package/lib/tabs/index.js +4 -0
  195. package/lib/tag/Tag.d.ts +1 -1
  196. package/lib/tag/index.d.ts +1 -1
  197. package/lib/tag/index.js +4 -0
  198. package/lib/text-ellipsis/TextEllipsis.d.ts +63 -0
  199. package/lib/text-ellipsis/TextEllipsis.js +127 -0
  200. package/lib/text-ellipsis/index.css +1 -0
  201. package/lib/text-ellipsis/index.d.ts +51 -0
  202. package/lib/text-ellipsis/index.js +39 -0
  203. package/lib/text-ellipsis/style/index.d.ts +1 -0
  204. package/lib/text-ellipsis/style/index.js +2 -0
  205. package/lib/text-ellipsis/types.d.ts +3 -0
  206. package/lib/text-ellipsis/types.js +15 -0
  207. package/lib/time-picker/index.js +4 -0
  208. package/lib/toast/function-call.js +4 -0
  209. package/lib/toast/index.js +4 -0
  210. package/lib/tree-select/TreeSelect.js +4 -3
  211. package/lib/tree-select/index.js +4 -0
  212. package/lib/uploader/Uploader.js +5 -1
  213. package/lib/uploader/index.js +4 -0
  214. package/lib/uploader/utils.js +2 -2
  215. package/lib/utils/create.js +4 -0
  216. package/lib/vant.cjs.js +1130 -872
  217. package/lib/vant.es.js +1130 -872
  218. package/lib/vant.js +1167 -879
  219. package/lib/vant.min.js +1 -1
  220. package/lib/web-types.json +1 -1
  221. package/package.json +5 -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
  ));
@@ -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/area/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/area/utils.js CHANGED
@@ -57,8 +57,8 @@ function formatDataForCascade({
57
57
  county_list: county = {},
58
58
  province_list: province = {}
59
59
  } = areaList;
60
- const showCity = columnsNum > 1;
61
- const showCounty = columnsNum > 2;
60
+ const showCity = +columnsNum > 1;
61
+ const showCounty = +columnsNum > 2;
62
62
  const getProvinceChildren = () => {
63
63
  if (showCity) {
64
64
  return placeholder.length ? [
@@ -66,7 +66,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
66
66
  });
67
67
  };
68
68
  const scroll = () => {
69
- show.value = scrollParent.value ? (0, import_utils.getScrollTop)(scrollParent.value) >= props.offset : false;
69
+ show.value = scrollParent.value ? (0, import_utils.getScrollTop)(scrollParent.value) >= +props.offset : false;
70
70
  };
71
71
  const getTarget = () => {
72
72
  const {
@@ -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
  ));
@@ -61,7 +61,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
61
61
  if (slots.content) {
62
62
  return slots.content();
63
63
  }
64
- if ((0, import_utils.isDef)(max) && (0, import_utils.isNumeric)(content) && +content > max) {
64
+ if ((0, import_utils.isDef)(max) && (0, import_utils.isNumeric)(content) && +content > +max) {
65
65
  return `${max}+`;
66
66
  }
67
67
  return content;
@@ -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
  ));
@@ -131,8 +131,8 @@ declare const _default: import("vue").DefineComponent<{
131
131
  size: ButtonSize;
132
132
  loading: boolean;
133
133
  block: boolean;
134
- square: boolean;
135
134
  plain: boolean;
135
+ square: boolean;
136
136
  hairline: boolean;
137
137
  nativeType: ButtonNativeType;
138
138
  iconPosition: ButtonIconPosition;
@@ -87,8 +87,8 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
87
87
  size: import("./types").ButtonSize;
88
88
  loading: boolean;
89
89
  block: boolean;
90
- square: boolean;
91
90
  plain: boolean;
91
+ square: boolean;
92
92
  hairline: boolean;
93
93
  nativeType: import("./types").ButtonNativeType;
94
94
  iconPosition: import("./types").ButtonIconPosition;
@@ -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
  ));
@@ -251,7 +255,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
251
255
  rangePrompt,
252
256
  showRangePrompt
253
257
  } = props;
254
- if (maxRange && (0, import_utils2.calcDateNum)(date) > maxRange) {
258
+ if (maxRange && (0, import_utils2.calcDateNum)(date) > +maxRange) {
255
259
  if (showRangePrompt) {
256
260
  (0, import_toast.showToast)(rangePrompt || (0, import_utils2.t)("rangePrompt", maxRange));
257
261
  }
@@ -338,7 +342,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
338
342
  if (selectedIndex !== -1) {
339
343
  const [unselectedDate] = dates.splice(selectedIndex, 1);
340
344
  emit("unselect", (0, import_utils2.cloneDate)(unselectedDate));
341
- } else if (props.maxRange && dates.length >= props.maxRange) {
345
+ } else if (props.maxRange && dates.length >= +props.maxRange) {
342
346
  (0, import_toast.showToast)(props.rangePrompt || (0, import_utils2.t)("rangePrompt", props.maxRange));
343
347
  } else {
344
348
  select([...dates, date]);
@@ -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
  ));
@@ -64,7 +64,7 @@ function getDayByOffset(date, offset) {
64
64
  const getPrevDay = (date) => getDayByOffset(date, -1);
65
65
  const getNextDay = (date) => getDayByOffset(date, 1);
66
66
  const getToday = () => {
67
- const today = new Date();
67
+ const today = /* @__PURE__ */ new Date();
68
68
  today.setHours(0, 0, 0, 0);
69
69
  return today;
70
70
  };
package/lib/card/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
  ));
package/lib/cell/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
  ));
@@ -59,7 +63,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
59
63
  } = parent.props;
60
64
  const value = modelValue.slice();
61
65
  if (checked2) {
62
- const overlimit = max && value.length >= max;
66
+ const overlimit = max && value.length >= +max;
63
67
  if (!overlimit && !value.includes(name2)) {
64
68
  value.push(name2);
65
69
  if (props.bindGroup) {
@@ -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/col/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
  ));
@@ -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
  ));
@@ -26,7 +26,7 @@ var import_vue2 = require("vue");
26
26
  var import_utils = require("../utils");
27
27
  var import_utils2 = require("./utils");
28
28
  var import_picker = require("../picker");
29
- const currentYear = new Date().getFullYear();
29
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
30
30
  const [name] = (0, import_utils.createNamespace)("date-picker");
31
31
  const datePickerProps = (0, import_utils.extend)({}, import_utils2.sharedProps, {
32
32
  columnsType: {
@@ -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
  ));
@@ -33,8 +33,8 @@ declare const _default: import("vue").DefineComponent<{
33
33
  default: DividerContentPosition;
34
34
  };
35
35
  }>>, {
36
- dashed: boolean;
37
36
  hairline: boolean;
37
+ dashed: boolean;
38
38
  contentPosition: DividerContentPosition;
39
39
  }>;
40
40
  export default _default;
@@ -19,8 +19,8 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
19
19
  default: import("./Divider").DividerContentPosition;
20
20
  };
21
21
  }>>, {
22
- dashed: boolean;
23
22
  hairline: boolean;
23
+ dashed: boolean;
24
24
  contentPosition: import("./Divider").DividerContentPosition;
25
25
  }>>;
26
26
  export default Divider;
@@ -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
  ));
@@ -85,6 +85,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
85
85
  state.showPopup = show;
86
86
  state.transition = !options.immediate;
87
87
  if (show) {
88
+ parent.updateOffset();
88
89
  state.showWrapper = true;
89
90
  }
90
91
  };
@@ -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
  ));
@@ -86,7 +86,6 @@ var stdin_default = (0, import_vue2.defineComponent)({
86
86
  const toggleItem = (active) => {
87
87
  children.forEach((item, index) => {
88
88
  if (index === active) {
89
- updateOffset();
90
89
  item.toggle();
91
90
  } else if (item.state.showPopup) {
92
91
  item.toggle(false, {
@@ -132,7 +131,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
132
131
  linkChildren({
133
132
  id,
134
133
  props,
135
- offset
134
+ offset,
135
+ updateOffset
136
136
  });
137
137
  (0, import_use.useClickAway)(root, onClickAway);
138
138
  (0, import_use.useEventListener)("scroll", onScroll, {
@@ -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
  ));
@@ -5,6 +5,7 @@ export type DropdownMenuProvide = {
5
5
  id: string;
6
6
  props: DropdownMenuProps;
7
7
  offset: Ref<number>;
8
+ updateOffset: () => void;
8
9
  };
9
10
  export type DropdownMenuThemeVars = {
10
11
  dropdownMenuHeight?: string;
@@ -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
  ));