vant 4.0.0-alpha.1 → 4.0.0-alpha.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 (531) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +39 -42
  3. package/es/address-edit/AddressEdit.d.ts +0 -17
  4. package/es/address-edit/AddressEdit.js +3 -24
  5. package/es/address-edit/index.d.ts +0 -12
  6. package/es/address-edit/types.d.ts +0 -1
  7. package/es/address-list/AddressListItem.d.ts +3 -2
  8. package/es/address-list/AddressListItem.js +1 -1
  9. package/es/badge/Badge.d.ts +4 -3
  10. package/es/badge/index.d.ts +2 -2
  11. package/es/calendar/Calendar.js +1 -1
  12. package/es/calendar/CalendarDay.js +4 -0
  13. package/es/calendar/index.css +1 -1
  14. package/es/calendar/index.less +2 -0
  15. package/es/calendar/types.d.ts +2 -1
  16. package/es/cascader/types.d.ts +2 -1
  17. package/es/checkbox/Checker.d.ts +2 -1
  18. package/es/collapse/Collapse.d.ts +7 -6
  19. package/es/collapse/index.d.ts +3 -3
  20. package/es/composables/use-touch.js +1 -1
  21. package/es/config-provider/ConfigProvider.d.ts +4 -3
  22. package/es/config-provider/index.d.ts +2 -2
  23. package/es/contact-list/ContactList.d.ts +3 -2
  24. package/es/coupon/Coupon.d.ts +2 -1
  25. package/es/coupon-list/CouponList.d.ts +3 -13
  26. package/es/coupon-list/CouponList.js +9 -7
  27. package/es/coupon-list/index.css +1 -1
  28. package/es/coupon-list/index.d.ts +2 -9
  29. package/es/coupon-list/index.less +4 -16
  30. package/es/coupon-list/style/index.js +1 -0
  31. package/es/coupon-list/style/less.js +1 -0
  32. package/es/dialog/index.css +1 -1
  33. package/es/dialog/types.d.ts +2 -2
  34. package/es/dropdown-item/types.d.ts +2 -1
  35. package/es/empty/Empty.d.ts +8 -7
  36. package/es/empty/Empty.js +2 -2
  37. package/es/empty/index.d.ts +2 -2
  38. package/es/field/Field.d.ts +4 -0
  39. package/es/field/Field.js +2 -0
  40. package/es/field/index.d.ts +2 -0
  41. package/es/form/Form.js +1 -0
  42. package/es/form/types.d.ts +1 -0
  43. package/es/icon/index.css +1 -1
  44. package/es/index-bar/IndexBar.d.ts +5 -4
  45. package/es/index-bar/index.d.ts +3 -3
  46. package/es/index-bar/types.d.ts +2 -1
  47. package/es/index.d.ts +1 -1
  48. package/es/index.js +1 -1
  49. package/es/locale/lang/bn-BD.d.ts +0 -2
  50. package/es/locale/lang/bn-BD.js +0 -2
  51. package/es/locale/lang/da-DK.d.ts +64 -0
  52. package/es/locale/lang/da-DK.js +66 -0
  53. package/es/locale/lang/de-DE-formal.d.ts +0 -2
  54. package/es/locale/lang/de-DE-formal.js +0 -2
  55. package/es/locale/lang/de-DE.d.ts +0 -2
  56. package/es/locale/lang/de-DE.js +0 -2
  57. package/es/locale/lang/en-US.d.ts +0 -2
  58. package/es/locale/lang/en-US.js +0 -2
  59. package/es/locale/lang/es-ES.d.ts +0 -2
  60. package/es/locale/lang/es-ES.js +0 -2
  61. package/es/locale/lang/fr-FR.d.ts +0 -2
  62. package/es/locale/lang/fr-FR.js +0 -2
  63. package/es/locale/lang/hi-IN.d.ts +0 -2
  64. package/es/locale/lang/hi-IN.js +0 -2
  65. package/es/locale/lang/id-ID.d.ts +0 -2
  66. package/es/locale/lang/id-ID.js +0 -2
  67. package/es/locale/lang/is-IS.d.ts +62 -0
  68. package/es/locale/lang/is-IS.js +72 -0
  69. package/es/locale/lang/it-IT.d.ts +0 -2
  70. package/es/locale/lang/it-IT.js +0 -2
  71. package/es/locale/lang/ja-JP.d.ts +0 -2
  72. package/es/locale/lang/ja-JP.js +0 -2
  73. package/es/locale/lang/ko-KR.d.ts +0 -2
  74. package/es/locale/lang/ko-KR.js +0 -2
  75. package/es/locale/lang/la-LA.d.ts +0 -2
  76. package/es/locale/lang/la-LA.js +0 -2
  77. package/es/locale/lang/nb-NO.d.ts +0 -2
  78. package/es/locale/lang/nb-NO.js +0 -2
  79. package/es/locale/lang/pt-BR.d.ts +0 -2
  80. package/es/locale/lang/pt-BR.js +0 -2
  81. package/es/locale/lang/ro-RO.d.ts +0 -2
  82. package/es/locale/lang/ro-RO.js +0 -2
  83. package/es/locale/lang/ru-RU.d.ts +0 -2
  84. package/es/locale/lang/ru-RU.js +0 -2
  85. package/es/locale/lang/sv-SE.d.ts +62 -0
  86. package/es/locale/lang/sv-SE.js +64 -0
  87. package/es/locale/lang/th-TH.d.ts +0 -2
  88. package/es/locale/lang/th-TH.js +0 -2
  89. package/es/locale/lang/tr-TR.d.ts +0 -2
  90. package/es/locale/lang/tr-TR.js +0 -2
  91. package/es/locale/lang/uk-UA.d.ts +0 -2
  92. package/es/locale/lang/uk-UA.js +0 -2
  93. package/es/locale/lang/vi-VN.d.ts +0 -2
  94. package/es/locale/lang/vi-VN.js +0 -2
  95. package/es/locale/lang/zh-CN.d.ts +0 -2
  96. package/es/locale/lang/zh-CN.js +0 -2
  97. package/es/locale/lang/zh-HK.d.ts +0 -2
  98. package/es/locale/lang/zh-HK.js +0 -2
  99. package/es/locale/lang/zh-TW.d.ts +0 -2
  100. package/es/locale/lang/zh-TW.js +0 -2
  101. package/es/notify/types.d.ts +2 -1
  102. package/es/number-keyboard/NumberKeyboard.js +10 -1
  103. package/es/picker/Picker.d.ts +5 -4
  104. package/es/picker/index.d.ts +3 -3
  105. package/es/picker/types.d.ts +4 -3
  106. package/es/picker/utils.d.ts +4 -3
  107. package/es/popup/index.css +1 -1
  108. package/es/progress/Progress.d.ts +4 -3
  109. package/es/progress/index.d.ts +2 -2
  110. package/es/rate/Rate.js +32 -10
  111. package/es/search/Search.d.ts +3 -0
  112. package/es/search/index.d.ts +2 -0
  113. package/es/share-sheet/ShareSheet.js +25 -11
  114. package/es/share-sheet/index.css +1 -1
  115. package/es/share-sheet/index.less +45 -1
  116. package/es/skeleton/Skeleton.d.ts +5 -4
  117. package/es/skeleton/index.d.ts +3 -3
  118. package/es/slider/index.css +1 -1
  119. package/es/style/animation.css +1 -1
  120. package/es/style/base.css +1 -1
  121. package/es/swipe-cell/index.css +1 -1
  122. package/es/tabbar/Tabbar.d.ts +2 -2
  123. package/es/tabs/Tabs.d.ts +1 -1
  124. package/es/tabs/Tabs.js +1 -0
  125. package/es/tabs/types.d.ts +5 -4
  126. package/es/toast/types.d.ts +3 -2
  127. package/es/tree-select/TreeSelect.d.ts +7 -6
  128. package/es/tree-select/index.d.ts +3 -3
  129. package/es/uploader/Uploader.d.ts +4 -4
  130. package/es/uploader/Uploader.js +2 -2
  131. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  132. package/es/uploader/UploaderPreviewItem.js +9 -6
  133. package/es/uploader/index.d.ts +2 -2
  134. package/es/uploader/types.d.ts +5 -5
  135. package/es/utils/basic.d.ts +1 -0
  136. package/es/utils/format.d.ts +7 -6
  137. package/es/utils/format.js +6 -0
  138. package/es/utils/validate.d.ts +2 -1
  139. package/lib/action-bar/ActionBar.js +8 -13
  140. package/lib/action-bar/index.js +9 -16
  141. package/lib/action-bar-button/ActionBarButton.js +8 -13
  142. package/lib/action-bar-button/index.js +9 -16
  143. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  144. package/lib/action-bar-icon/index.js +9 -16
  145. package/lib/action-sheet/ActionSheet.js +8 -13
  146. package/lib/action-sheet/index.js +9 -16
  147. package/lib/address-edit/AddressEdit.d.ts +0 -17
  148. package/lib/address-edit/AddressEdit.js +12 -40
  149. package/lib/address-edit/AddressEditDetail.js +8 -13
  150. package/lib/address-edit/index.d.ts +0 -12
  151. package/lib/address-edit/index.js +9 -16
  152. package/lib/address-edit/types.d.ts +0 -1
  153. package/lib/address-edit/types.js +7 -12
  154. package/lib/address-list/AddressList.js +9 -16
  155. package/lib/address-list/AddressListItem.d.ts +3 -2
  156. package/lib/address-list/AddressListItem.js +8 -13
  157. package/lib/address-list/index.js +9 -16
  158. package/lib/area/Area.js +8 -13
  159. package/lib/area/index.js +9 -16
  160. package/lib/area/types.js +7 -12
  161. package/lib/area/utils.js +8 -13
  162. package/lib/badge/Badge.d.ts +4 -3
  163. package/lib/badge/Badge.js +8 -13
  164. package/lib/badge/index.d.ts +2 -2
  165. package/lib/badge/index.js +9 -16
  166. package/lib/button/Button.js +8 -13
  167. package/lib/button/index.js +9 -16
  168. package/lib/button/types.js +7 -12
  169. package/lib/calendar/Calendar.js +10 -17
  170. package/lib/calendar/CalendarDay.js +12 -13
  171. package/lib/calendar/CalendarHeader.js +8 -13
  172. package/lib/calendar/CalendarMonth.js +9 -16
  173. package/lib/calendar/index.css +1 -1
  174. package/lib/calendar/index.js +9 -16
  175. package/lib/calendar/index.less +2 -0
  176. package/lib/calendar/types.d.ts +2 -1
  177. package/lib/calendar/types.js +7 -12
  178. package/lib/calendar/utils.js +8 -13
  179. package/lib/card/Card.js +8 -13
  180. package/lib/card/index.js +9 -16
  181. package/lib/cascader/Cascader.js +8 -13
  182. package/lib/cascader/index.js +9 -16
  183. package/lib/cascader/types.d.ts +2 -1
  184. package/lib/cascader/types.js +7 -12
  185. package/lib/cell/Cell.js +8 -13
  186. package/lib/cell/index.js +9 -16
  187. package/lib/cell-group/CellGroup.js +8 -13
  188. package/lib/cell-group/index.js +9 -16
  189. package/lib/checkbox/Checkbox.js +9 -16
  190. package/lib/checkbox/Checker.d.ts +2 -1
  191. package/lib/checkbox/Checker.js +8 -13
  192. package/lib/checkbox/index.js +9 -16
  193. package/lib/checkbox/types.js +7 -12
  194. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  195. package/lib/checkbox-group/index.js +9 -16
  196. package/lib/checkbox-group/types.js +7 -12
  197. package/lib/circle/Circle.js +8 -13
  198. package/lib/circle/index.js +9 -16
  199. package/lib/col/Col.js +8 -13
  200. package/lib/col/index.js +9 -16
  201. package/lib/collapse/Collapse.d.ts +7 -6
  202. package/lib/collapse/Collapse.js +8 -13
  203. package/lib/collapse/index.d.ts +3 -3
  204. package/lib/collapse/index.js +9 -16
  205. package/lib/collapse-item/CollapseItem.js +8 -13
  206. package/lib/collapse-item/index.js +9 -16
  207. package/lib/collapse-item/types.js +7 -12
  208. package/lib/composables/on-popup-reopen.js +8 -13
  209. package/lib/composables/use-expose.js +8 -13
  210. package/lib/composables/use-height.js +8 -13
  211. package/lib/composables/use-id.js +8 -13
  212. package/lib/composables/use-lazy-render.js +8 -13
  213. package/lib/composables/use-lock-scroll.js +8 -13
  214. package/lib/composables/use-placeholder.js +8 -13
  215. package/lib/composables/use-refs.js +8 -13
  216. package/lib/composables/use-route.js +8 -13
  217. package/lib/composables/use-tab-status.js +8 -13
  218. package/lib/composables/use-touch.js +9 -14
  219. package/lib/composables/use-visibility-change.js +8 -13
  220. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  221. package/lib/config-provider/ConfigProvider.js +8 -13
  222. package/lib/config-provider/index.d.ts +2 -2
  223. package/lib/config-provider/index.js +9 -16
  224. package/lib/contact-card/ContactCard.js +8 -13
  225. package/lib/contact-card/index.js +9 -16
  226. package/lib/contact-edit/ContactEdit.js +8 -13
  227. package/lib/contact-edit/index.js +9 -16
  228. package/lib/contact-list/ContactList.d.ts +3 -2
  229. package/lib/contact-list/ContactList.js +8 -13
  230. package/lib/contact-list/index.js +9 -16
  231. package/lib/count-down/CountDown.js +8 -13
  232. package/lib/count-down/index.js +9 -16
  233. package/lib/count-down/types.js +7 -12
  234. package/lib/count-down/utils.js +8 -13
  235. package/lib/coupon/Coupon.d.ts +2 -1
  236. package/lib/coupon/Coupon.js +8 -13
  237. package/lib/coupon/index.js +9 -16
  238. package/lib/coupon/utils.js +8 -13
  239. package/lib/coupon-cell/CouponCell.js +8 -13
  240. package/lib/coupon-cell/index.js +9 -16
  241. package/lib/coupon-list/CouponList.d.ts +3 -13
  242. package/lib/coupon-list/CouponList.js +17 -20
  243. package/lib/coupon-list/index.css +1 -1
  244. package/lib/coupon-list/index.d.ts +2 -9
  245. package/lib/coupon-list/index.js +9 -16
  246. package/lib/coupon-list/index.less +4 -16
  247. package/lib/coupon-list/style/index.js +1 -0
  248. package/lib/coupon-list/style/less.js +1 -0
  249. package/lib/date-picker/DatePicker.js +8 -13
  250. package/lib/date-picker/index.js +9 -16
  251. package/lib/date-picker/utils.js +8 -13
  252. package/lib/dialog/Dialog.js +8 -13
  253. package/lib/dialog/function-call.js +9 -16
  254. package/lib/dialog/index.css +1 -1
  255. package/lib/dialog/index.js +8 -13
  256. package/lib/dialog/types.d.ts +2 -2
  257. package/lib/dialog/types.js +7 -12
  258. package/lib/divider/Divider.js +8 -13
  259. package/lib/divider/index.js +9 -16
  260. package/lib/dropdown-item/DropdownItem.js +8 -13
  261. package/lib/dropdown-item/index.js +9 -16
  262. package/lib/dropdown-item/types.d.ts +2 -1
  263. package/lib/dropdown-item/types.js +7 -12
  264. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  265. package/lib/dropdown-menu/index.js +9 -16
  266. package/lib/dropdown-menu/types.js +7 -12
  267. package/lib/empty/Empty.d.ts +8 -7
  268. package/lib/empty/Empty.js +9 -14
  269. package/lib/empty/Network.js +8 -13
  270. package/lib/empty/index.d.ts +2 -2
  271. package/lib/empty/index.js +9 -16
  272. package/lib/field/Field.d.ts +4 -0
  273. package/lib/field/Field.js +10 -13
  274. package/lib/field/index.d.ts +2 -0
  275. package/lib/field/index.js +9 -16
  276. package/lib/field/types.js +7 -12
  277. package/lib/field/utils.js +8 -13
  278. package/lib/form/Form.js +9 -13
  279. package/lib/form/index.js +9 -16
  280. package/lib/form/types.d.ts +1 -0
  281. package/lib/form/types.js +7 -12
  282. package/lib/grid/Grid.js +8 -13
  283. package/lib/grid/index.js +9 -16
  284. package/lib/grid-item/GridItem.js +8 -13
  285. package/lib/grid-item/index.js +9 -16
  286. package/lib/icon/Icon.js +8 -13
  287. package/lib/icon/index.css +1 -1
  288. package/lib/icon/index.js +9 -16
  289. package/lib/image/Image.js +8 -13
  290. package/lib/image/index.js +9 -16
  291. package/lib/image-preview/ImagePreview.js +9 -16
  292. package/lib/image-preview/ImagePreviewItem.js +8 -13
  293. package/lib/image-preview/function-call.js +9 -16
  294. package/lib/image-preview/index.js +8 -13
  295. package/lib/image-preview/types.js +7 -12
  296. package/lib/index-anchor/IndexAnchor.js +8 -13
  297. package/lib/index-anchor/index.js +9 -16
  298. package/lib/index-bar/IndexBar.d.ts +5 -4
  299. package/lib/index-bar/IndexBar.js +8 -13
  300. package/lib/index-bar/index.d.ts +3 -3
  301. package/lib/index-bar/index.js +9 -16
  302. package/lib/index-bar/types.d.ts +2 -1
  303. package/lib/index-bar/types.js +7 -12
  304. package/lib/index.css +1 -1
  305. package/lib/index.d.ts +1 -1
  306. package/lib/index.js +97 -101
  307. package/lib/index.less +2 -2
  308. package/lib/lazyload/index.js +8 -13
  309. package/lib/lazyload/vue-lazyload/index.js +9 -16
  310. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  311. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  312. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  313. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  314. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  315. package/lib/lazyload/vue-lazyload/util.js +8 -13
  316. package/lib/list/List.js +8 -13
  317. package/lib/list/index.js +9 -16
  318. package/lib/list/types.js +7 -12
  319. package/lib/loading/Loading.js +8 -13
  320. package/lib/loading/index.js +9 -16
  321. package/lib/locale/index.js +9 -16
  322. package/lib/locale/lang/bn-BD.d.ts +0 -2
  323. package/lib/locale/lang/bn-BD.js +8 -15
  324. package/lib/locale/lang/da-DK.d.ts +64 -0
  325. package/lib/locale/lang/da-DK.js +85 -0
  326. package/lib/locale/lang/de-DE-formal.d.ts +0 -2
  327. package/lib/locale/lang/de-DE-formal.js +8 -15
  328. package/lib/locale/lang/de-DE.d.ts +0 -2
  329. package/lib/locale/lang/de-DE.js +8 -15
  330. package/lib/locale/lang/en-US.d.ts +0 -2
  331. package/lib/locale/lang/en-US.js +8 -15
  332. package/lib/locale/lang/es-ES.d.ts +0 -2
  333. package/lib/locale/lang/es-ES.js +8 -15
  334. package/lib/locale/lang/fr-FR.d.ts +0 -2
  335. package/lib/locale/lang/fr-FR.js +8 -15
  336. package/lib/locale/lang/hi-IN.d.ts +0 -2
  337. package/lib/locale/lang/hi-IN.js +8 -15
  338. package/lib/locale/lang/id-ID.d.ts +0 -2
  339. package/lib/locale/lang/id-ID.js +8 -15
  340. package/lib/locale/lang/is-IS.d.ts +62 -0
  341. package/lib/locale/lang/is-IS.js +91 -0
  342. package/lib/locale/lang/it-IT.d.ts +0 -2
  343. package/lib/locale/lang/it-IT.js +8 -15
  344. package/lib/locale/lang/ja-JP.d.ts +0 -2
  345. package/lib/locale/lang/ja-JP.js +8 -15
  346. package/lib/locale/lang/ko-KR.d.ts +0 -2
  347. package/lib/locale/lang/ko-KR.js +8 -15
  348. package/lib/locale/lang/la-LA.d.ts +0 -2
  349. package/lib/locale/lang/la-LA.js +8 -15
  350. package/lib/locale/lang/nb-NO.d.ts +0 -2
  351. package/lib/locale/lang/nb-NO.js +8 -15
  352. package/lib/locale/lang/pt-BR.d.ts +0 -2
  353. package/lib/locale/lang/pt-BR.js +8 -15
  354. package/lib/locale/lang/ro-RO.d.ts +0 -2
  355. package/lib/locale/lang/ro-RO.js +8 -15
  356. package/lib/locale/lang/ru-RU.d.ts +0 -2
  357. package/lib/locale/lang/ru-RU.js +8 -15
  358. package/lib/locale/lang/sv-SE.d.ts +62 -0
  359. package/lib/locale/lang/sv-SE.js +83 -0
  360. package/lib/locale/lang/th-TH.d.ts +0 -2
  361. package/lib/locale/lang/th-TH.js +8 -15
  362. package/lib/locale/lang/tr-TR.d.ts +0 -2
  363. package/lib/locale/lang/tr-TR.js +8 -15
  364. package/lib/locale/lang/uk-UA.d.ts +0 -2
  365. package/lib/locale/lang/uk-UA.js +8 -15
  366. package/lib/locale/lang/vi-VN.d.ts +0 -2
  367. package/lib/locale/lang/vi-VN.js +8 -15
  368. package/lib/locale/lang/zh-CN.d.ts +0 -2
  369. package/lib/locale/lang/zh-CN.js +8 -15
  370. package/lib/locale/lang/zh-HK.d.ts +0 -2
  371. package/lib/locale/lang/zh-HK.js +8 -15
  372. package/lib/locale/lang/zh-TW.d.ts +0 -2
  373. package/lib/locale/lang/zh-TW.js +8 -15
  374. package/lib/nav-bar/NavBar.js +8 -13
  375. package/lib/nav-bar/index.js +9 -16
  376. package/lib/notice-bar/NoticeBar.js +8 -13
  377. package/lib/notice-bar/index.js +9 -16
  378. package/lib/notice-bar/types.js +7 -12
  379. package/lib/notify/Notify.js +8 -13
  380. package/lib/notify/function-call.js +9 -16
  381. package/lib/notify/index.js +8 -13
  382. package/lib/notify/types.d.ts +2 -1
  383. package/lib/notify/types.js +7 -12
  384. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  385. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  386. package/lib/number-keyboard/index.js +9 -16
  387. package/lib/overlay/Overlay.js +8 -13
  388. package/lib/overlay/index.js +9 -16
  389. package/lib/pagination/Pagination.js +8 -13
  390. package/lib/pagination/index.js +9 -16
  391. package/lib/password-input/PasswordInput.js +8 -13
  392. package/lib/password-input/index.js +9 -16
  393. package/lib/picker/Picker.d.ts +5 -4
  394. package/lib/picker/Picker.js +9 -16
  395. package/lib/picker/PickerColumn.js +8 -13
  396. package/lib/picker/index.d.ts +3 -3
  397. package/lib/picker/index.js +9 -16
  398. package/lib/picker/types.d.ts +4 -3
  399. package/lib/picker/types.js +7 -12
  400. package/lib/picker/utils.d.ts +4 -3
  401. package/lib/picker/utils.js +8 -13
  402. package/lib/popover/Popover.js +8 -13
  403. package/lib/popover/index.js +9 -16
  404. package/lib/popover/types.js +7 -12
  405. package/lib/popup/Popup.js +8 -13
  406. package/lib/popup/index.css +1 -1
  407. package/lib/popup/index.js +9 -16
  408. package/lib/popup/shared.js +8 -13
  409. package/lib/popup/types.js +7 -12
  410. package/lib/progress/Progress.d.ts +4 -3
  411. package/lib/progress/Progress.js +8 -13
  412. package/lib/progress/index.d.ts +2 -2
  413. package/lib/progress/index.js +9 -16
  414. package/lib/progress/types.js +7 -12
  415. package/lib/pull-refresh/PullRefresh.js +8 -13
  416. package/lib/pull-refresh/index.js +9 -16
  417. package/lib/radio/Radio.js +9 -16
  418. package/lib/radio/index.js +9 -16
  419. package/lib/radio-group/RadioGroup.js +8 -13
  420. package/lib/radio-group/index.js +9 -16
  421. package/lib/rate/Rate.js +39 -22
  422. package/lib/rate/index.js +9 -16
  423. package/lib/row/Row.js +8 -13
  424. package/lib/row/index.js +9 -16
  425. package/lib/search/Search.d.ts +3 -0
  426. package/lib/search/Search.js +8 -13
  427. package/lib/search/index.d.ts +2 -0
  428. package/lib/search/index.js +9 -16
  429. package/lib/search/types.js +7 -12
  430. package/lib/share-sheet/ShareSheet.js +33 -24
  431. package/lib/share-sheet/index.css +1 -1
  432. package/lib/share-sheet/index.js +9 -16
  433. package/lib/share-sheet/index.less +45 -1
  434. package/lib/sidebar/Sidebar.js +8 -13
  435. package/lib/sidebar/index.js +9 -16
  436. package/lib/sidebar-item/SidebarItem.js +8 -13
  437. package/lib/sidebar-item/index.js +9 -16
  438. package/lib/skeleton/Skeleton.d.ts +5 -4
  439. package/lib/skeleton/Skeleton.js +8 -13
  440. package/lib/skeleton/index.d.ts +3 -3
  441. package/lib/skeleton/index.js +9 -16
  442. package/lib/slider/Slider.js +8 -13
  443. package/lib/slider/index.css +1 -1
  444. package/lib/slider/index.js +9 -16
  445. package/lib/step/Step.js +8 -13
  446. package/lib/step/index.js +9 -16
  447. package/lib/stepper/Stepper.js +8 -13
  448. package/lib/stepper/index.js +9 -16
  449. package/lib/steps/Steps.js +8 -13
  450. package/lib/steps/index.js +9 -16
  451. package/lib/sticky/Sticky.js +8 -13
  452. package/lib/sticky/index.js +9 -16
  453. package/lib/style/animation.css +1 -1
  454. package/lib/style/base.css +1 -1
  455. package/lib/submit-bar/SubmitBar.js +8 -13
  456. package/lib/submit-bar/index.js +9 -16
  457. package/lib/swipe/Swipe.js +8 -13
  458. package/lib/swipe/index.js +9 -16
  459. package/lib/swipe/types.js +7 -12
  460. package/lib/swipe-cell/SwipeCell.js +8 -13
  461. package/lib/swipe-cell/index.css +1 -1
  462. package/lib/swipe-cell/index.js +9 -16
  463. package/lib/swipe-cell/types.js +7 -12
  464. package/lib/swipe-item/SwipeItem.js +8 -13
  465. package/lib/swipe-item/index.js +9 -16
  466. package/lib/switch/Switch.js +8 -13
  467. package/lib/switch/index.js +9 -16
  468. package/lib/tab/Tab.js +8 -13
  469. package/lib/tab/index.js +9 -16
  470. package/lib/tabbar/Tabbar.d.ts +2 -2
  471. package/lib/tabbar/Tabbar.js +8 -13
  472. package/lib/tabbar/index.js +9 -16
  473. package/lib/tabbar-item/TabbarItem.js +8 -13
  474. package/lib/tabbar-item/index.js +9 -16
  475. package/lib/tabs/Tabs.d.ts +1 -1
  476. package/lib/tabs/Tabs.js +10 -16
  477. package/lib/tabs/TabsContent.js +8 -13
  478. package/lib/tabs/TabsTitle.js +8 -13
  479. package/lib/tabs/index.js +9 -16
  480. package/lib/tabs/types.d.ts +5 -4
  481. package/lib/tabs/types.js +7 -12
  482. package/lib/tabs/utils.js +8 -13
  483. package/lib/tag/Tag.js +8 -13
  484. package/lib/tag/index.js +9 -16
  485. package/lib/time-picker/TimePicker.js +8 -13
  486. package/lib/time-picker/index.js +9 -16
  487. package/lib/toast/Toast.js +8 -13
  488. package/lib/toast/function-call.js +9 -16
  489. package/lib/toast/index.js +8 -13
  490. package/lib/toast/lock-click.js +8 -13
  491. package/lib/toast/types.d.ts +3 -2
  492. package/lib/toast/types.js +7 -12
  493. package/lib/tree-select/TreeSelect.d.ts +7 -6
  494. package/lib/tree-select/TreeSelect.js +8 -13
  495. package/lib/tree-select/index.d.ts +3 -3
  496. package/lib/tree-select/index.js +9 -16
  497. package/lib/uploader/Uploader.d.ts +4 -4
  498. package/lib/uploader/Uploader.js +10 -17
  499. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  500. package/lib/uploader/UploaderPreviewItem.js +17 -19
  501. package/lib/uploader/index.d.ts +2 -2
  502. package/lib/uploader/index.js +9 -16
  503. package/lib/uploader/types.d.ts +5 -5
  504. package/lib/uploader/types.js +7 -12
  505. package/lib/uploader/utils.js +8 -13
  506. package/lib/utils/basic.d.ts +1 -0
  507. package/lib/utils/basic.js +8 -13
  508. package/lib/utils/constant.js +8 -13
  509. package/lib/utils/create.js +9 -16
  510. package/lib/utils/deep-assign.js +8 -13
  511. package/lib/utils/deep-clone.js +8 -13
  512. package/lib/utils/dom.js +8 -13
  513. package/lib/utils/format.d.ts +7 -6
  514. package/lib/utils/format.js +14 -13
  515. package/lib/utils/index.js +17 -21
  516. package/lib/utils/interceptor.js +8 -13
  517. package/lib/utils/mount-component.js +8 -13
  518. package/lib/utils/props.js +8 -13
  519. package/lib/utils/validate.d.ts +2 -1
  520. package/lib/utils/validate.js +8 -13
  521. package/lib/utils/with-install.js +8 -13
  522. package/lib/vant.cjs.js +297 -258
  523. package/lib/vant.cjs.min.js +1 -1
  524. package/lib/vant.es.js +297 -258
  525. package/lib/vant.es.min.js +297 -258
  526. package/lib/vant.js +297 -258
  527. package/lib/vant.min.js +1 -1
  528. package/package.json +3 -3
  529. package/vetur/attributes.json +564 -636
  530. package/vetur/tags.json +178 -178
  531. package/vetur/web-types.json +2595 -1760
@@ -1,8 +1,9 @@
1
1
  import type { ComponentPublicInstance, ComputedRef } from 'vue';
2
+ import type { Numeric } from '../utils';
2
3
  import type { TabsProps } from './Tabs';
3
4
  export declare type TabsType = 'line' | 'card';
4
5
  export declare type TabsClickTabEventParams = {
5
- name: string | number;
6
+ name: Numeric;
6
7
  title: string;
7
8
  event: MouseEvent;
8
9
  disabled: boolean;
@@ -11,12 +12,12 @@ export declare type TabsProvide = {
11
12
  id: string;
12
13
  props: TabsProps;
13
14
  setLine: () => void;
14
- onRendered: (name: string | number, title?: string) => void;
15
+ onRendered: (name: Numeric, title?: string) => void;
15
16
  scrollIntoView: (immediate?: boolean) => void;
16
- currentName: ComputedRef<number | string | undefined>;
17
+ currentName: ComputedRef<Numeric | undefined>;
17
18
  };
18
19
  export declare type TabsExpose = {
19
20
  resize: () => void;
20
- scrollTo: (name: number | string) => void;
21
+ scrollTo: (name: Numeric) => void;
21
22
  };
22
23
  export declare type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
@@ -1,19 +1,20 @@
1
1
  import { Toast } from './function-call';
2
2
  import type { TeleportProps } from 'vue';
3
3
  import type { LoadingType } from '../loading';
4
+ import type { Numeric } from '../utils';
4
5
  export declare type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
5
6
  export declare type ToastPosition = 'top' | 'middle' | 'bottom';
6
7
  export declare type ToastOptions = {
7
8
  icon?: string;
8
9
  type?: ToastType;
9
10
  mask?: boolean;
10
- message?: string | number;
11
+ message?: Numeric;
11
12
  onClose?: () => void;
12
13
  onOpened?: () => void;
13
14
  overlay?: boolean;
14
15
  duration?: number;
15
16
  teleport?: TeleportProps['to'];
16
- iconSize?: number | string;
17
+ iconSize?: Numeric;
17
18
  position?: ToastPosition;
18
19
  className?: unknown;
19
20
  transition?: string;
@@ -1,13 +1,14 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
+ import { type Numeric } from '../utils';
2
3
  export declare type TreeSelectChild = {
3
- id: number | string;
4
+ id: Numeric;
4
5
  text: string;
5
6
  disabled?: boolean;
6
7
  };
7
8
  export declare type TreeSelectItem = {
8
9
  dot?: boolean;
9
10
  text: string;
10
- badge?: number | string;
11
+ badge?: Numeric;
11
12
  children?: TreeSelectChild[];
12
13
  disabled?: boolean;
13
14
  className?: unknown;
@@ -34,7 +35,7 @@ declare const treeSelectProps: {
34
35
  default: number;
35
36
  };
36
37
  activeId: {
37
- type: PropType<string | number | (string | number)[]>;
38
+ type: PropType<Numeric | Numeric[]>;
38
39
  default: number;
39
40
  };
40
41
  };
@@ -61,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
61
62
  default: number;
62
63
  };
63
64
  activeId: {
64
- type: PropType<string | number | (string | number)[]>;
65
+ type: PropType<Numeric | Numeric[]>;
65
66
  default: number;
66
67
  };
67
68
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
@@ -86,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
86
87
  default: number;
87
88
  };
88
89
  activeId: {
89
- type: PropType<string | number | (string | number)[]>;
90
+ type: PropType<Numeric | Numeric[]>;
90
91
  default: number;
91
92
  };
92
93
  }>> & {
@@ -100,6 +101,6 @@ declare const _default: import("vue").DefineComponent<{
100
101
  items: TreeSelectItem[];
101
102
  selectedIcon: string;
102
103
  mainActiveIndex: string | number;
103
- activeId: string | number | (string | number)[];
104
+ activeId: Numeric | Numeric[];
104
105
  }>;
105
106
  export default _default;
@@ -20,7 +20,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
20
20
  default: number;
21
21
  };
22
22
  activeId: {
23
- type: import("vue").PropType<string | number | (string | number)[]>;
23
+ type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
24
24
  default: number;
25
25
  };
26
26
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -45,7 +45,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
45
45
  default: number;
46
46
  };
47
47
  activeId: {
48
- type: import("vue").PropType<string | number | (string | number)[]>;
48
+ type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
49
49
  default: number;
50
50
  };
51
51
  }>> & {
@@ -59,7 +59,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
59
59
  items: import("./TreeSelect").TreeSelectItem[];
60
60
  selectedIcon: string;
61
61
  mainActiveIndex: string | number;
62
- activeId: string | number | (string | number)[];
62
+ activeId: import("../utils").Numeric | import("../utils").Numeric[];
63
63
  }>>;
64
64
  export default TreeSelect;
65
65
  export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
@@ -1,5 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
- import { Interceptor } from '../utils';
2
+ import { Interceptor, type Numeric } from '../utils';
3
3
  import { type ImagePreviewOptions } from '../image-preview';
4
4
  import type { ImageFit } from '../image';
5
5
  import type { UploaderMaxSize, UploaderAfterRead, UploaderBeforeRead, UploaderResultType, UploaderFileListItem } from './types';
@@ -49,7 +49,7 @@ declare const uploaderProps: {
49
49
  };
50
50
  beforeRead: PropType<UploaderBeforeRead>;
51
51
  beforeDelete: PropType<Interceptor>;
52
- previewSize: (NumberConstructor | StringConstructor)[];
52
+ previewSize: PropType<Numeric | [Numeric, Numeric]>;
53
53
  previewImage: {
54
54
  type: BooleanConstructor;
55
55
  default: true;
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
111
111
  };
112
112
  beforeRead: PropType<UploaderBeforeRead>;
113
113
  beforeDelete: PropType<Interceptor>;
114
- previewSize: (NumberConstructor | StringConstructor)[];
114
+ previewSize: PropType<Numeric | [Numeric, Numeric]>;
115
115
  previewImage: {
116
116
  type: BooleanConstructor;
117
117
  default: true;
@@ -171,7 +171,7 @@ declare const _default: import("vue").DefineComponent<{
171
171
  };
172
172
  beforeRead: PropType<UploaderBeforeRead>;
173
173
  beforeDelete: PropType<Interceptor>;
174
- previewSize: (NumberConstructor | StringConstructor)[];
174
+ previewSize: PropType<Numeric | [Numeric, Numeric]>;
175
175
  previewImage: {
176
176
  type: BooleanConstructor;
177
177
  default: true;
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
3
- import { pick, extend, isPromise, truthProp, numericProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils";
3
+ import { pick, extend, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils";
4
4
  import { bem, name, toArray, isOversize, filterFiles, isImageFile, readFileContent } from "./utils";
5
5
  import { useCustomFieldValue } from "@vant/use";
6
6
  import { useExpose } from "../composables/use-expose";
@@ -26,7 +26,7 @@ const uploaderProps = {
26
26
  modelValue: makeArrayProp(),
27
27
  beforeRead: Function,
28
28
  beforeDelete: Function,
29
- previewSize: numericProp,
29
+ previewSize: [Number, String, Array],
30
30
  previewImage: truthProp,
31
31
  previewOptions: Object,
32
32
  previewFullImage: truthProp,
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import { Interceptor } from '../utils';
2
+ import { type Numeric, type Interceptor } from '../utils';
3
3
  import { ImageFit } from '../image';
4
4
  import type { UploaderFileListItem } from './types';
5
5
  declare const _default: import("vue").DefineComponent<{
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  imageFit: PropType<ImageFit>;
13
13
  lazyLoad: BooleanConstructor;
14
14
  deletable: BooleanConstructor;
15
- previewSize: (NumberConstructor | StringConstructor)[];
15
+ previewSize: PropType<Numeric | [Numeric, Numeric]>;
16
16
  beforeDelete: PropType<Interceptor>;
17
17
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "preview")[], "delete" | "preview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  name: (NumberConstructor | StringConstructor)[];
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  imageFit: PropType<ImageFit>;
25
25
  lazyLoad: BooleanConstructor;
26
26
  deletable: BooleanConstructor;
27
- previewSize: (NumberConstructor | StringConstructor)[];
27
+ previewSize: PropType<Numeric | [Numeric, Numeric]>;
28
28
  beforeDelete: PropType<Interceptor>;
29
29
  }>> & {
30
30
  onDelete?: ((...args: any[]) => any) | undefined;
@@ -13,7 +13,7 @@ var stdin_default = defineComponent({
13
13
  imageFit: String,
14
14
  lazyLoad: Boolean,
15
15
  deletable: Boolean,
16
- previewSize: numericProp,
16
+ previewSize: [Number, String, Array],
17
17
  beforeDelete: Function
18
18
  },
19
19
  emits: ["delete", "preview"],
@@ -87,16 +87,19 @@ var stdin_default = defineComponent({
87
87
  };
88
88
  const renderPreview = () => {
89
89
  const {
90
- item
90
+ item,
91
+ lazyLoad,
92
+ imageFit,
93
+ previewSize
91
94
  } = props;
92
95
  if (isImageFile(item)) {
93
96
  return _createVNode(Image, {
94
- "fit": props.imageFit,
97
+ "fit": imageFit,
95
98
  "src": item.content || item.url,
96
99
  "class": bem("preview-image"),
97
- "width": props.previewSize,
98
- "height": props.previewSize,
99
- "lazyLoad": props.lazyLoad,
100
+ "width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
101
+ "height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
102
+ "lazyLoad": lazyLoad,
100
103
  "onClick": onPreview
101
104
  }, {
102
105
  default: renderCover
@@ -45,7 +45,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
45
45
  };
46
46
  beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
47
47
  beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
48
- previewSize: (NumberConstructor | StringConstructor)[];
48
+ previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
49
49
  previewImage: {
50
50
  type: BooleanConstructor;
51
51
  default: true;
@@ -105,7 +105,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
105
105
  };
106
106
  beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
107
107
  beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
108
- previewSize: (NumberConstructor | StringConstructor)[];
108
+ previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
109
109
  previewImage: {
110
110
  type: BooleanConstructor;
111
111
  default: true;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentPublicInstance } from 'vue';
2
2
  import type { ImageFit } from '../image';
3
- import type { Interceptor } from '../utils';
3
+ import type { Numeric, Interceptor } from '../utils';
4
4
  import type { UploaderProps } from './Uploader';
5
5
  export declare type UploaderResultType = 'dataUrl' | 'text' | 'file';
6
6
  export declare type UploaderFileListItem = {
@@ -12,16 +12,16 @@ export declare type UploaderFileListItem = {
12
12
  message?: string;
13
13
  imageFit?: ImageFit;
14
14
  deletable?: boolean;
15
- previewSize?: number | string;
15
+ previewSize?: Numeric;
16
16
  beforeDelete?: Interceptor;
17
17
  };
18
- export declare type UploaderMaxSize = number | string | ((file: File) => boolean);
18
+ export declare type UploaderMaxSize = Numeric | ((file: File) => boolean);
19
19
  export declare type UploaderBeforeRead = (file: File | File[], detail: {
20
- name: string | number;
20
+ name: Numeric;
21
21
  index: number;
22
22
  }) => boolean | undefined | Promise<File | File[] | undefined>;
23
23
  export declare type UploaderAfterRead = (items: UploaderFileListItem | UploaderFileListItem[], detail: {
24
- name: string | number;
24
+ name: Numeric;
25
25
  index: number;
26
26
  }) => void;
27
27
  export declare type UploaderExpose = {
@@ -7,6 +7,7 @@ export declare const extend: {
7
7
  (target: object, ...sources: any[]): any;
8
8
  };
9
9
  export declare const inBrowser: boolean;
10
+ export declare type Numeric = number | string;
10
11
  export declare type ComponentInstance = ComponentPublicInstance<{}, any>;
11
12
  export declare function get(object: any, path: string): any;
12
13
  export declare type Writeable<T> = {
@@ -1,11 +1,12 @@
1
- import { CSSProperties } from 'vue';
2
- export declare function addUnit(value?: string | number): string | undefined;
3
- export declare function getSizeStyle(originSize?: string | number): CSSProperties | undefined;
4
- export declare function getZIndexStyle(zIndex?: string | number): CSSProperties;
5
- export declare function unitToPx(value: string | number): number;
1
+ import type { CSSProperties } from 'vue';
2
+ import { type Numeric } from './basic';
3
+ export declare function addUnit(value?: Numeric): string | undefined;
4
+ export declare function getSizeStyle(originSize?: Numeric | Numeric[]): CSSProperties | undefined;
5
+ export declare function getZIndexStyle(zIndex?: Numeric): CSSProperties;
6
+ export declare function unitToPx(value: Numeric): number;
6
7
  export declare const camelize: (str: string) => string;
7
8
  export declare const kebabCase: (str: string) => string;
8
- export declare function padZero(num: number | string, targetLength?: number): string;
9
+ export declare function padZero(num: Numeric, targetLength?: number): string;
9
10
  /** clamps number within the inclusive lower and upper bounds */
10
11
  export declare const clamp: (num: number, min: number, max: number) => number;
11
12
  export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
@@ -9,6 +9,12 @@ function addUnit(value) {
9
9
  }
10
10
  function getSizeStyle(originSize) {
11
11
  if (isDef(originSize)) {
12
+ if (Array.isArray(originSize)) {
13
+ return {
14
+ width: addUnit(originSize[0]),
15
+ height: addUnit(originSize[1])
16
+ };
17
+ }
12
18
  const size = addUnit(originSize);
13
19
  return {
14
20
  width: size,
@@ -1,8 +1,9 @@
1
+ import { type Numeric } from './basic';
1
2
  export declare const isDef: <T>(val: T) => val is NonNullable<T>;
2
3
  export declare const isFunction: (val: unknown) => val is Function;
3
4
  export declare const isObject: (val: unknown) => val is Record<any, any>;
4
5
  export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
5
6
  export declare const isDate: (val: unknown) => val is Date;
6
7
  export declare function isMobile(value: string): boolean;
7
- export declare const isNumeric: (val: string | number) => val is string;
8
+ export declare const isNumeric: (val: Numeric) => val is string;
8
9
  export declare const isIOS: () => boolean;
@@ -2,29 +2,25 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  ACTION_BAR_KEY: () => ACTION_BAR_KEY,
26
21
  default: () => stdin_default
27
22
  });
23
+ module.exports = __toCommonJS(stdin_exports);
28
24
  var import_vue = require("vue");
29
25
  var import_vue2 = require("vue");
30
26
  var import_utils = require("../utils");
@@ -54,4 +50,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
54
50
  };
55
51
  }
56
52
  });
57
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  ActionBar: () => ActionBar,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_ActionBar = __toESM(require("./ActionBar"));
35
29
  const ActionBar = (0, import_utils.withInstall)(import_ActionBar.default);
36
30
  var stdin_default = ActionBar;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -94,4 +90,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
94
90
  };
95
91
  }
96
92
  });
97
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  ActionBarButton: () => ActionBarButton,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_ActionBarButton = __toESM(require("./ActionBarButton"));
35
29
  const ActionBarButton = (0, import_utils.withInstall)(import_ActionBarButton.default);
36
30
  var stdin_default = ActionBarButton;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -89,4 +85,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
89
85
  }, [renderIcon(), slots.default ? slots.default() : props.text]);
90
86
  }
91
87
  });
92
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  ActionBarIcon: () => ActionBarIcon,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_ActionBarIcon = __toESM(require("./ActionBarIcon"));
35
29
  const ActionBarIcon = (0, import_utils.withInstall)(import_ActionBarIcon.default);
36
30
  var stdin_default = ActionBarIcon;
37
- module.exports = __toCommonJS(stdin_exports);