vant 4.0.4 → 4.0.5

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 (984) hide show
  1. package/es/badge/Badge.mjs +12 -3
  2. package/es/form/Form.mjs +3 -1
  3. package/es/index.d.ts +1 -1
  4. package/es/index.mjs +1 -1
  5. package/{lib/locale/lang/de-DE-formal.d.ts → es/locale/lang/mm-MN.d.ts} +1 -1
  6. package/es/locale/lang/mm-MN.mjs +64 -0
  7. package/{lib/locale/lang/bn-BD.d.ts → es/locale/lang/nl-NL.d.ts} +0 -0
  8. package/es/locale/lang/nl-NL.mjs +64 -0
  9. package/es/picker/index.css +1 -1
  10. package/lib/vant.cjs.js +63 -52
  11. package/lib/vant.es.js +63 -52
  12. package/lib/vant.js +62 -51
  13. package/lib/vant.min.js +1 -1
  14. package/lib/web-types.json +1 -1
  15. package/package.json +1 -1
  16. package/lib/action-bar/ActionBar.d.ts +0 -27
  17. package/lib/action-bar/ActionBar.js +0 -64
  18. package/lib/action-bar/index.css +0 -1
  19. package/lib/action-bar/index.d.ts +0 -25
  20. package/lib/action-bar/index.js +0 -35
  21. package/lib/action-bar/style/index.d.ts +0 -1
  22. package/lib/action-bar/style/index.js +0 -2
  23. package/lib/action-bar/types.d.ts +0 -4
  24. package/lib/action-bar/types.js +0 -15
  25. package/lib/action-bar-button/ActionBarButton.d.ts +0 -43
  26. package/lib/action-bar-button/ActionBarButton.js +0 -93
  27. package/lib/action-bar-button/index.css +0 -1
  28. package/lib/action-bar-button/index.d.ts +0 -36
  29. package/lib/action-bar-button/index.js +0 -35
  30. package/lib/action-bar-button/style/index.d.ts +0 -1
  31. package/lib/action-bar-button/style/index.js +0 -7
  32. package/lib/action-bar-button/types.d.ts +0 -5
  33. package/lib/action-bar-button/types.js +0 -15
  34. package/lib/action-bar-icon/ActionBarIcon.d.ts +0 -48
  35. package/lib/action-bar-icon/ActionBarIcon.js +0 -88
  36. package/lib/action-bar-icon/index.css +0 -1
  37. package/lib/action-bar-icon/index.d.ts +0 -39
  38. package/lib/action-bar-icon/index.js +0 -35
  39. package/lib/action-bar-icon/style/index.d.ts +0 -1
  40. package/lib/action-bar-icon/style/index.js +0 -5
  41. package/lib/action-bar-icon/types.d.ts +0 -10
  42. package/lib/action-bar-icon/types.js +0 -15
  43. package/lib/action-sheet/ActionSheet.d.ts +0 -194
  44. package/lib/action-sheet/ActionSheet.js +0 -151
  45. package/lib/action-sheet/index.css +0 -1
  46. package/lib/action-sheet/index.d.ts +0 -136
  47. package/lib/action-sheet/index.js +0 -35
  48. package/lib/action-sheet/style/index.d.ts +0 -1
  49. package/lib/action-sheet/style/index.js +0 -7
  50. package/lib/action-sheet/types.d.ts +0 -23
  51. package/lib/action-sheet/types.js +0 -15
  52. package/lib/address-edit/AddressEdit.d.ts +0 -157
  53. package/lib/address-edit/AddressEdit.js +0 -314
  54. package/lib/address-edit/AddressEditDetail.d.ts +0 -32
  55. package/lib/address-edit/AddressEditDetail.js +0 -95
  56. package/lib/address-edit/index.css +0 -1
  57. package/lib/address-edit/index.d.ts +0 -118
  58. package/lib/address-edit/index.js +0 -35
  59. package/lib/address-edit/style/index.d.ts +0 -1
  60. package/lib/address-edit/style/index.js +0 -19
  61. package/lib/address-edit/types.d.ts +0 -28
  62. package/lib/address-edit/types.js +0 -15
  63. package/lib/address-list/AddressList.d.ts +0 -69
  64. package/lib/address-list/AddressList.js +0 -108
  65. package/lib/address-list/AddressListItem.d.ts +0 -34
  66. package/lib/address-list/AddressListItem.js +0 -115
  67. package/lib/address-list/index.css +0 -1
  68. package/lib/address-list/index.d.ts +0 -57
  69. package/lib/address-list/index.js +0 -35
  70. package/lib/address-list/style/index.d.ts +0 -1
  71. package/lib/address-list/style/index.js +0 -11
  72. package/lib/address-list/types.d.ts +0 -15
  73. package/lib/address-list/types.js +0 -15
  74. package/lib/area/Area.d.ts +0 -136
  75. package/lib/area/Area.js +0 -96
  76. package/lib/area/index.d.ts +0 -102
  77. package/lib/area/index.js +0 -35
  78. package/lib/area/style/index.d.ts +0 -1
  79. package/lib/area/style/index.js +0 -10
  80. package/lib/area/types.d.ts +0 -9
  81. package/lib/area/types.js +0 -15
  82. package/lib/area/utils.d.ts +0 -6
  83. package/lib/area/utils.js +0 -111
  84. package/lib/back-top/BackTop.d.ts +0 -46
  85. package/lib/back-top/BackTop.js +0 -120
  86. package/lib/back-top/index.css +0 -1
  87. package/lib/back-top/index.d.ts +0 -39
  88. package/lib/back-top/index.js +0 -35
  89. package/lib/back-top/style/index.d.ts +0 -1
  90. package/lib/back-top/style/index.js +0 -4
  91. package/lib/back-top/types.d.ts +0 -6
  92. package/lib/back-top/types.js +0 -15
  93. package/lib/badge/Badge.d.ts +0 -66
  94. package/lib/badge/Badge.js +0 -115
  95. package/lib/badge/index.css +0 -1
  96. package/lib/badge/index.d.ts +0 -51
  97. package/lib/badge/index.js +0 -35
  98. package/lib/badge/style/index.d.ts +0 -1
  99. package/lib/badge/style/index.js +0 -2
  100. package/lib/badge/types.d.ts +0 -12
  101. package/lib/badge/types.js +0 -15
  102. package/lib/button/Button.d.ts +0 -140
  103. package/lib/button/Button.js +0 -168
  104. package/lib/button/index.css +0 -1
  105. package/lib/button/index.d.ts +0 -104
  106. package/lib/button/index.js +0 -35
  107. package/lib/button/style/index.d.ts +0 -1
  108. package/lib/button/style/index.js +0 -5
  109. package/lib/button/types.d.ts +0 -41
  110. package/lib/button/types.js +0 -15
  111. package/lib/calendar/Calendar.d.ts +0 -292
  112. package/lib/calendar/Calendar.js +0 -439
  113. package/lib/calendar/CalendarDay.d.ts +0 -32
  114. package/lib/calendar/CalendarDay.js +0 -148
  115. package/lib/calendar/CalendarHeader.d.ts +0 -21
  116. package/lib/calendar/CalendarHeader.js +0 -81
  117. package/lib/calendar/CalendarMonth.d.ts +0 -86
  118. package/lib/calendar/CalendarMonth.js +0 -233
  119. package/lib/calendar/index.css +0 -1
  120. package/lib/calendar/index.d.ts +0 -210
  121. package/lib/calendar/index.js +0 -35
  122. package/lib/calendar/style/index.d.ts +0 -1
  123. package/lib/calendar/style/index.js +0 -16
  124. package/lib/calendar/types.d.ts +0 -56
  125. package/lib/calendar/types.js +0 -15
  126. package/lib/calendar/utils.d.ts +0 -12
  127. package/lib/calendar/utils.js +0 -75
  128. package/lib/card/Card.d.ts +0 -56
  129. package/lib/card/Card.js +0 -146
  130. package/lib/card/index.css +0 -1
  131. package/lib/card/index.d.ts +0 -46
  132. package/lib/card/index.js +0 -35
  133. package/lib/card/style/index.d.ts +0 -1
  134. package/lib/card/style/index.js +0 -6
  135. package/lib/card/types.d.ts +0 -18
  136. package/lib/card/types.js +0 -15
  137. package/lib/cascader/Cascader.d.ts +0 -96
  138. package/lib/cascader/Cascader.js +0 -247
  139. package/lib/cascader/index.css +0 -1
  140. package/lib/cascader/index.d.ts +0 -74
  141. package/lib/cascader/index.js +0 -35
  142. package/lib/cascader/style/index.d.ts +0 -1
  143. package/lib/cascader/style/index.js +0 -9
  144. package/lib/cascader/types.d.ts +0 -34
  145. package/lib/cascader/types.js +0 -15
  146. package/lib/cell/Cell.d.ts +0 -136
  147. package/lib/cell/Cell.js +0 -148
  148. package/lib/cell/index.css +0 -1
  149. package/lib/cell/index.d.ts +0 -80
  150. package/lib/cell/index.js +0 -35
  151. package/lib/cell/style/index.d.ts +0 -1
  152. package/lib/cell/style/index.js +0 -4
  153. package/lib/cell/types.d.ts +0 -21
  154. package/lib/cell/types.js +0 -15
  155. package/lib/cell-group/CellGroup.d.ts +0 -29
  156. package/lib/cell-group/CellGroup.js +0 -63
  157. package/lib/cell-group/index.css +0 -1
  158. package/lib/cell-group/index.d.ts +0 -27
  159. package/lib/cell-group/index.js +0 -35
  160. package/lib/cell-group/style/index.d.ts +0 -1
  161. package/lib/cell-group/style/index.js +0 -2
  162. package/lib/cell-group/types.d.ts +0 -10
  163. package/lib/cell-group/types.js +0 -15
  164. package/lib/checkbox/Checkbox.d.ts +0 -64
  165. package/lib/checkbox/Checkbox.js +0 -107
  166. package/lib/checkbox/Checker.d.ts +0 -85
  167. package/lib/checkbox/Checker.js +0 -126
  168. package/lib/checkbox/index.css +0 -1
  169. package/lib/checkbox/index.d.ts +0 -52
  170. package/lib/checkbox/index.js +0 -35
  171. package/lib/checkbox/style/index.d.ts +0 -1
  172. package/lib/checkbox/style/index.js +0 -5
  173. package/lib/checkbox/types.d.ts +0 -24
  174. package/lib/checkbox/types.js +0 -15
  175. package/lib/checkbox-group/CheckboxGroup.d.ts +0 -44
  176. package/lib/checkbox-group/CheckboxGroup.js +0 -91
  177. package/lib/checkbox-group/index.css +0 -1
  178. package/lib/checkbox-group/index.d.ts +0 -36
  179. package/lib/checkbox-group/index.js +0 -35
  180. package/lib/checkbox-group/style/index.d.ts +0 -1
  181. package/lib/checkbox-group/style/index.js +0 -2
  182. package/lib/checkbox-group/types.d.ts +0 -16
  183. package/lib/checkbox-group/types.js +0 -15
  184. package/lib/circle/Circle.d.ts +0 -118
  185. package/lib/circle/Circle.js +0 -172
  186. package/lib/circle/index.css +0 -1
  187. package/lib/circle/index.d.ts +0 -88
  188. package/lib/circle/index.js +0 -35
  189. package/lib/circle/style/index.d.ts +0 -1
  190. package/lib/circle/style/index.js +0 -2
  191. package/lib/circle/types.d.ts +0 -9
  192. package/lib/circle/types.js +0 -15
  193. package/lib/col/Col.d.ts +0 -38
  194. package/lib/col/Col.js +0 -83
  195. package/lib/col/index.css +0 -1
  196. package/lib/col/index.d.ts +0 -32
  197. package/lib/col/index.js +0 -35
  198. package/lib/col/style/index.d.ts +0 -1
  199. package/lib/col/style/index.js +0 -3
  200. package/lib/collapse/Collapse.d.ts +0 -55
  201. package/lib/collapse/Collapse.js +0 -128
  202. package/lib/collapse/index.d.ts +0 -36
  203. package/lib/collapse/index.js +0 -35
  204. package/lib/collapse/style/index.d.ts +0 -1
  205. package/lib/collapse/style/index.js +0 -1
  206. package/lib/collapse-item/CollapseItem.d.ts +0 -132
  207. package/lib/collapse-item/CollapseItem.js +0 -156
  208. package/lib/collapse-item/index.css +0 -1
  209. package/lib/collapse-item/index.d.ts +0 -98
  210. package/lib/collapse-item/index.js +0 -35
  211. package/lib/collapse-item/style/index.d.ts +0 -1
  212. package/lib/collapse-item/style/index.js +0 -5
  213. package/lib/collapse-item/types.d.ts +0 -15
  214. package/lib/collapse-item/types.js +0 -15
  215. package/lib/composables/on-popup-reopen.d.ts +0 -3
  216. package/lib/composables/on-popup-reopen.js +0 -35
  217. package/lib/composables/use-expose.d.ts +0 -1
  218. package/lib/composables/use-expose.js +0 -30
  219. package/lib/composables/use-global-z-index.d.ts +0 -4
  220. package/lib/composables/use-global-z-index.js +0 -28
  221. package/lib/composables/use-height.d.ts +0 -2
  222. package/lib/composables/use-height.js +0 -43
  223. package/lib/composables/use-id.d.ts +0 -1
  224. package/lib/composables/use-id.js +0 -32
  225. package/lib/composables/use-lazy-render.d.ts +0 -2
  226. package/lib/composables/use-lazy-render.js +0 -36
  227. package/lib/composables/use-lock-scroll.d.ts +0 -2
  228. package/lib/composables/use-lock-scroll.js +0 -77
  229. package/lib/composables/use-placeholder.d.ts +0 -3
  230. package/lib/composables/use-placeholder.js +0 -33
  231. package/lib/composables/use-refs.d.ts +0 -2
  232. package/lib/composables/use-refs.js +0 -39
  233. package/lib/composables/use-route.d.ts +0 -13
  234. package/lib/composables/use-route.js +0 -46
  235. package/lib/composables/use-sync-prop-ref.d.ts +0 -2
  236. package/lib/composables/use-sync-prop-ref.js +0 -37
  237. package/lib/composables/use-tab-status.d.ts +0 -3
  238. package/lib/composables/use-tab-status.js +0 -26
  239. package/lib/composables/use-touch.d.ts +0 -16
  240. package/lib/composables/use-touch.js +0 -80
  241. package/lib/composables/use-visibility-change.d.ts +0 -2
  242. package/lib/composables/use-visibility-change.js +0 -49
  243. package/lib/config-provider/ConfigProvider.d.ts +0 -57
  244. package/lib/config-provider/ConfigProvider.js +0 -89
  245. package/lib/config-provider/index.d.ts +0 -41
  246. package/lib/config-provider/index.js +0 -35
  247. package/lib/config-provider/style/index.d.ts +0 -1
  248. package/lib/config-provider/style/index.js +0 -1
  249. package/lib/config-provider/types.d.ts +0 -1
  250. package/lib/config-provider/types.js +0 -15
  251. package/lib/contact-card/ContactCard.d.ts +0 -47
  252. package/lib/contact-card/ContactCard.js +0 -66
  253. package/lib/contact-card/index.css +0 -1
  254. package/lib/contact-card/index.d.ts +0 -39
  255. package/lib/contact-card/index.js +0 -35
  256. package/lib/contact-card/style/index.d.ts +0 -1
  257. package/lib/contact-card/style/index.js +0 -5
  258. package/lib/contact-card/types.d.ts +0 -6
  259. package/lib/contact-card/types.js +0 -15
  260. package/lib/contact-edit/ContactEdit.d.ts +0 -64
  261. package/lib/contact-edit/ContactEdit.js +0 -132
  262. package/lib/contact-edit/index.css +0 -1
  263. package/lib/contact-edit/index.d.ts +0 -49
  264. package/lib/contact-edit/index.js +0 -35
  265. package/lib/contact-edit/style/index.d.ts +0 -1
  266. package/lib/contact-edit/style/index.js +0 -9
  267. package/lib/contact-edit/types.d.ts +0 -8
  268. package/lib/contact-edit/types.js +0 -15
  269. package/lib/contact-list/ContactList.d.ts +0 -32
  270. package/lib/contact-list/ContactList.js +0 -109
  271. package/lib/contact-list/index.css +0 -1
  272. package/lib/contact-list/index.d.ts +0 -25
  273. package/lib/contact-list/index.js +0 -35
  274. package/lib/contact-list/style/index.d.ts +0 -1
  275. package/lib/contact-list/style/index.js +0 -11
  276. package/lib/contact-list/types.d.ts +0 -6
  277. package/lib/contact-list/types.js +0 -15
  278. package/lib/count-down/CountDown.d.ts +0 -55
  279. package/lib/count-down/CountDown.js +0 -76
  280. package/lib/count-down/index.css +0 -1
  281. package/lib/count-down/index.d.ts +0 -46
  282. package/lib/count-down/index.js +0 -35
  283. package/lib/count-down/style/index.d.ts +0 -1
  284. package/lib/count-down/style/index.js +0 -2
  285. package/lib/count-down/types.d.ts +0 -16
  286. package/lib/count-down/types.js +0 -15
  287. package/lib/count-down/utils.d.ts +0 -2
  288. package/lib/count-down/utils.js +0 -58
  289. package/lib/coupon/Coupon.d.ts +0 -45
  290. package/lib/coupon/Coupon.js +0 -99
  291. package/lib/coupon/index.css +0 -1
  292. package/lib/coupon/index.d.ts +0 -35
  293. package/lib/coupon/index.js +0 -33
  294. package/lib/coupon/style/index.d.ts +0 -1
  295. package/lib/coupon/style/index.js +0 -6
  296. package/lib/coupon/types.d.ts +0 -19
  297. package/lib/coupon/types.js +0 -15
  298. package/lib/coupon/utils.d.ts +0 -3
  299. package/lib/coupon/utils.js +0 -33
  300. package/lib/coupon-cell/CouponCell.d.ts +0 -78
  301. package/lib/coupon-cell/CouponCell.js +0 -74
  302. package/lib/coupon-cell/index.css +0 -1
  303. package/lib/coupon-cell/index.d.ts +0 -60
  304. package/lib/coupon-cell/index.js +0 -35
  305. package/lib/coupon-cell/style/index.d.ts +0 -1
  306. package/lib/coupon-cell/style/index.js +0 -5
  307. package/lib/coupon-cell/types.d.ts +0 -3
  308. package/lib/coupon-cell/types.js +0 -15
  309. package/lib/coupon-list/CouponList.d.ts +0 -170
  310. package/lib/coupon-list/CouponList.js +0 -206
  311. package/lib/coupon-list/index.css +0 -1
  312. package/lib/coupon-list/index.d.ts +0 -125
  313. package/lib/coupon-list/index.js +0 -35
  314. package/lib/coupon-list/style/index.d.ts +0 -1
  315. package/lib/coupon-list/style/index.js +0 -17
  316. package/lib/coupon-list/types.d.ts +0 -9
  317. package/lib/coupon-list/types.js +0 -15
  318. package/lib/date-picker/DatePicker.d.ts +0 -171
  319. package/lib/date-picker/DatePicker.js +0 -137
  320. package/lib/date-picker/index.d.ts +0 -127
  321. package/lib/date-picker/index.js +0 -35
  322. package/lib/date-picker/style/index.d.ts +0 -1
  323. package/lib/date-picker/style/index.js +0 -10
  324. package/lib/date-picker/utils.d.ts +0 -45
  325. package/lib/date-picker/utils.js +0 -70
  326. package/lib/dialog/Dialog.d.ts +0 -187
  327. package/lib/dialog/Dialog.js +0 -237
  328. package/lib/dialog/function-call.d.ts +0 -6
  329. package/lib/dialog/function-call.js +0 -110
  330. package/lib/dialog/index.css +0 -1
  331. package/lib/dialog/index.d.ts +0 -138
  332. package/lib/dialog/index.js +0 -41
  333. package/lib/dialog/style/index.d.ts +0 -1
  334. package/lib/dialog/style/index.js +0 -10
  335. package/lib/dialog/types.d.ts +0 -53
  336. package/lib/dialog/types.js +0 -15
  337. package/lib/divider/Divider.d.ts +0 -40
  338. package/lib/divider/Divider.js +0 -51
  339. package/lib/divider/index.css +0 -1
  340. package/lib/divider/index.d.ts +0 -34
  341. package/lib/divider/index.js +0 -35
  342. package/lib/divider/style/index.d.ts +0 -1
  343. package/lib/divider/style/index.js +0 -2
  344. package/lib/divider/types.d.ts +0 -10
  345. package/lib/divider/types.js +0 -15
  346. package/lib/dropdown-item/DropdownItem.d.ts +0 -59
  347. package/lib/dropdown-item/DropdownItem.js +0 -202
  348. package/lib/dropdown-item/index.css +0 -1
  349. package/lib/dropdown-item/index.d.ts +0 -50
  350. package/lib/dropdown-item/index.js +0 -35
  351. package/lib/dropdown-item/style/index.d.ts +0 -1
  352. package/lib/dropdown-item/style/index.js +0 -8
  353. package/lib/dropdown-item/types.d.ts +0 -25
  354. package/lib/dropdown-item/types.js +0 -15
  355. package/lib/dropdown-menu/DropdownMenu.d.ts +0 -82
  356. package/lib/dropdown-menu/DropdownMenu.js +0 -156
  357. package/lib/dropdown-menu/index.css +0 -1
  358. package/lib/dropdown-menu/index.d.ts +0 -63
  359. package/lib/dropdown-menu/index.js +0 -35
  360. package/lib/dropdown-menu/style/index.d.ts +0 -1
  361. package/lib/dropdown-menu/style/index.js +0 -2
  362. package/lib/dropdown-menu/types.d.ts +0 -21
  363. package/lib/dropdown-menu/types.js +0 -15
  364. package/lib/empty/Empty.d.ts +0 -29
  365. package/lib/empty/Empty.js +0 -342
  366. package/lib/empty/index.css +0 -1
  367. package/lib/empty/index.d.ts +0 -26
  368. package/lib/empty/index.js +0 -35
  369. package/lib/empty/style/index.d.ts +0 -1
  370. package/lib/empty/style/index.js +0 -2
  371. package/lib/empty/types.d.ts +0 -10
  372. package/lib/empty/types.js +0 -15
  373. package/lib/field/Field.d.ts +0 -337
  374. package/lib/field/Field.js +0 -529
  375. package/lib/field/index.css +0 -1
  376. package/lib/field/index.d.ts +0 -213
  377. package/lib/field/index.js +0 -35
  378. package/lib/field/style/index.d.ts +0 -1
  379. package/lib/field/style/index.js +0 -5
  380. package/lib/field/types.d.ts +0 -65
  381. package/lib/field/types.js +0 -15
  382. package/lib/field/utils.d.ts +0 -15
  383. package/lib/field/utils.js +0 -120
  384. package/lib/form/Form.d.ts +0 -88
  385. package/lib/form/Form.js +0 -178
  386. package/lib/form/index.d.ts +0 -70
  387. package/lib/form/index.js +0 -35
  388. package/lib/form/style/index.d.ts +0 -1
  389. package/lib/form/style/index.js +0 -1
  390. package/lib/form/types.d.ts +0 -15
  391. package/lib/form/types.js +0 -15
  392. package/lib/grid/Grid.d.ts +0 -74
  393. package/lib/grid/Grid.js +0 -67
  394. package/lib/grid/index.css +0 -1
  395. package/lib/grid/index.d.ts +0 -54
  396. package/lib/grid/index.js +0 -35
  397. package/lib/grid/style/index.d.ts +0 -1
  398. package/lib/grid/style/index.js +0 -2
  399. package/lib/grid-item/GridItem.d.ts +0 -45
  400. package/lib/grid-item/GridItem.js +0 -165
  401. package/lib/grid-item/index.css +0 -1
  402. package/lib/grid-item/index.d.ts +0 -37
  403. package/lib/grid-item/index.js +0 -35
  404. package/lib/grid-item/style/index.d.ts +0 -1
  405. package/lib/grid-item/style/index.js +0 -5
  406. package/lib/grid-item/types.d.ts +0 -8
  407. package/lib/grid-item/types.js +0 -15
  408. package/lib/icon/Icon.d.ts +0 -45
  409. package/lib/icon/Icon.js +0 -79
  410. package/lib/icon/index.css +0 -1
  411. package/lib/icon/index.d.ts +0 -36
  412. package/lib/icon/index.js +0 -35
  413. package/lib/icon/style/index.d.ts +0 -1
  414. package/lib/icon/style/index.js +0 -3
  415. package/lib/image/Image.d.ts +0 -105
  416. package/lib/image/Image.js +0 -190
  417. package/lib/image/index.css +0 -1
  418. package/lib/image/index.d.ts +0 -79
  419. package/lib/image/index.js +0 -35
  420. package/lib/image/style/index.d.ts +0 -1
  421. package/lib/image/style/index.js +0 -4
  422. package/lib/image/types.d.ts +0 -9
  423. package/lib/image/types.js +0 -15
  424. package/lib/image-preview/ImagePreview.d.ts +0 -188
  425. package/lib/image-preview/ImagePreview.js +0 -192
  426. package/lib/image-preview/ImagePreviewItem.d.ts +0 -48
  427. package/lib/image-preview/ImagePreviewItem.js +0 -284
  428. package/lib/image-preview/function-call.d.ts +0 -3
  429. package/lib/image-preview/function-call.js +0 -89
  430. package/lib/image-preview/index.css +0 -1
  431. package/lib/image-preview/index.d.ts +0 -140
  432. package/lib/image-preview/index.js +0 -37
  433. package/lib/image-preview/style/index.d.ts +0 -1
  434. package/lib/image-preview/style/index.js +0 -10
  435. package/lib/image-preview/types.d.ts +0 -50
  436. package/lib/image-preview/types.js +0 -15
  437. package/lib/index-anchor/IndexAnchor.d.ts +0 -11
  438. package/lib/index-anchor/IndexAnchor.js +0 -107
  439. package/lib/index-anchor/index.css +0 -1
  440. package/lib/index-anchor/index.d.ts +0 -14
  441. package/lib/index-anchor/index.js +0 -35
  442. package/lib/index-anchor/style/index.d.ts +0 -1
  443. package/lib/index-anchor/style/index.js +0 -3
  444. package/lib/index-anchor/types.d.ts +0 -11
  445. package/lib/index-anchor/types.js +0 -15
  446. package/lib/index-bar/IndexBar.d.ts +0 -64
  447. package/lib/index-bar/IndexBar.js +0 -246
  448. package/lib/index-bar/index.css +0 -1
  449. package/lib/index-bar/index.d.ts +0 -50
  450. package/lib/index-bar/index.js +0 -35
  451. package/lib/index-bar/style/index.d.ts +0 -1
  452. package/lib/index-bar/style/index.js +0 -2
  453. package/lib/index-bar/types.d.ts +0 -16
  454. package/lib/index-bar/types.js +0 -15
  455. package/lib/index.css +0 -1
  456. package/lib/index.d.ts +0 -97
  457. package/lib/index.js +0 -309
  458. package/lib/lazyload/index.d.ts +0 -3
  459. package/lib/lazyload/index.js +0 -25
  460. package/lib/lazyload/style/index.d.ts +0 -1
  461. package/lib/lazyload/style/index.js +0 -1
  462. package/lib/lazyload/vue-lazyload/index.d.ts +0 -55
  463. package/lib/lazyload/vue-lazyload/index.js +0 -56
  464. package/lib/lazyload/vue-lazyload/lazy-component.js +0 -70
  465. package/lib/lazyload/vue-lazyload/lazy-container.js +0 -93
  466. package/lib/lazyload/vue-lazyload/lazy-image.js +0 -119
  467. package/lib/lazyload/vue-lazyload/lazy.js +0 -378
  468. package/lib/lazyload/vue-lazyload/listener.js +0 -192
  469. package/lib/lazyload/vue-lazyload/util.d.ts +0 -25
  470. package/lib/lazyload/vue-lazyload/util.js +0 -185
  471. package/lib/list/List.d.ts +0 -78
  472. package/lib/list/List.js +0 -160
  473. package/lib/list/index.css +0 -1
  474. package/lib/list/index.d.ts +0 -63
  475. package/lib/list/index.js +0 -35
  476. package/lib/list/style/index.d.ts +0 -1
  477. package/lib/list/style/index.js +0 -3
  478. package/lib/list/types.d.ts +0 -13
  479. package/lib/list/types.js +0 -15
  480. package/lib/loading/Loading.d.ts +0 -39
  481. package/lib/loading/Loading.js +0 -90
  482. package/lib/loading/index.css +0 -1
  483. package/lib/loading/index.d.ts +0 -33
  484. package/lib/loading/index.js +0 -35
  485. package/lib/loading/style/index.d.ts +0 -1
  486. package/lib/loading/style/index.js +0 -2
  487. package/lib/loading/types.d.ts +0 -7
  488. package/lib/loading/types.js +0 -15
  489. package/lib/locale/index.d.ts +0 -7
  490. package/lib/locale/index.js +0 -49
  491. package/lib/locale/lang/bg-BG.d.ts +0 -64
  492. package/lib/locale/lang/bg-BG.js +0 -93
  493. package/lib/locale/lang/bn-BD.js +0 -91
  494. package/lib/locale/lang/da-DK.d.ts +0 -64
  495. package/lib/locale/lang/da-DK.js +0 -85
  496. package/lib/locale/lang/de-DE-formal.js +0 -83
  497. package/lib/locale/lang/de-DE.d.ts +0 -62
  498. package/lib/locale/lang/de-DE.js +0 -83
  499. package/lib/locale/lang/el-GR.d.ts +0 -64
  500. package/lib/locale/lang/el-GR.js +0 -93
  501. package/lib/locale/lang/en-US.d.ts +0 -62
  502. package/lib/locale/lang/en-US.js +0 -83
  503. package/lib/locale/lang/es-ES.d.ts +0 -62
  504. package/lib/locale/lang/es-ES.js +0 -83
  505. package/lib/locale/lang/fa-IR.d.ts +0 -64
  506. package/lib/locale/lang/fa-IR.js +0 -93
  507. package/lib/locale/lang/fr-FR.d.ts +0 -62
  508. package/lib/locale/lang/fr-FR.js +0 -83
  509. package/lib/locale/lang/he-IL.d.ts +0 -64
  510. package/lib/locale/lang/he-IL.js +0 -85
  511. package/lib/locale/lang/hi-IN.d.ts +0 -62
  512. package/lib/locale/lang/hi-IN.js +0 -91
  513. package/lib/locale/lang/id-ID.d.ts +0 -62
  514. package/lib/locale/lang/id-ID.js +0 -83
  515. package/lib/locale/lang/is-IS.d.ts +0 -62
  516. package/lib/locale/lang/is-IS.js +0 -91
  517. package/lib/locale/lang/it-IT.d.ts +0 -62
  518. package/lib/locale/lang/it-IT.js +0 -91
  519. package/lib/locale/lang/ja-JP.d.ts +0 -62
  520. package/lib/locale/lang/ja-JP.js +0 -83
  521. package/lib/locale/lang/ko-KR.d.ts +0 -62
  522. package/lib/locale/lang/ko-KR.js +0 -91
  523. package/lib/locale/lang/la-LA.d.ts +0 -62
  524. package/lib/locale/lang/la-LA.js +0 -83
  525. package/lib/locale/lang/nb-NO.d.ts +0 -62
  526. package/lib/locale/lang/nb-NO.js +0 -83
  527. package/lib/locale/lang/pt-BR.d.ts +0 -62
  528. package/lib/locale/lang/pt-BR.js +0 -83
  529. package/lib/locale/lang/ro-RO.d.ts +0 -62
  530. package/lib/locale/lang/ro-RO.js +0 -83
  531. package/lib/locale/lang/ru-RU.d.ts +0 -62
  532. package/lib/locale/lang/ru-RU.js +0 -83
  533. package/lib/locale/lang/sv-SE.d.ts +0 -62
  534. package/lib/locale/lang/sv-SE.js +0 -83
  535. package/lib/locale/lang/th-TH.d.ts +0 -62
  536. package/lib/locale/lang/th-TH.js +0 -83
  537. package/lib/locale/lang/tr-TR.d.ts +0 -62
  538. package/lib/locale/lang/tr-TR.js +0 -83
  539. package/lib/locale/lang/uk-UA.d.ts +0 -62
  540. package/lib/locale/lang/uk-UA.js +0 -91
  541. package/lib/locale/lang/vi-VN.d.ts +0 -62
  542. package/lib/locale/lang/vi-VN.js +0 -91
  543. package/lib/locale/lang/zh-CN.d.ts +0 -62
  544. package/lib/locale/lang/zh-CN.js +0 -83
  545. package/lib/locale/lang/zh-HK.d.ts +0 -62
  546. package/lib/locale/lang/zh-HK.js +0 -83
  547. package/lib/locale/lang/zh-TW.d.ts +0 -62
  548. package/lib/locale/lang/zh-TW.js +0 -83
  549. package/lib/locale/style/index.d.ts +0 -1
  550. package/lib/locale/style/index.js +0 -1
  551. package/lib/nav-bar/NavBar.d.ts +0 -66
  552. package/lib/nav-bar/NavBar.js +0 -111
  553. package/lib/nav-bar/index.css +0 -1
  554. package/lib/nav-bar/index.d.ts +0 -54
  555. package/lib/nav-bar/index.js +0 -35
  556. package/lib/nav-bar/style/index.d.ts +0 -1
  557. package/lib/nav-bar/style/index.js +0 -4
  558. package/lib/nav-bar/types.d.ts +0 -10
  559. package/lib/nav-bar/types.js +0 -15
  560. package/lib/notice-bar/NoticeBar.d.ts +0 -71
  561. package/lib/notice-bar/NoticeBar.js +0 -185
  562. package/lib/notice-bar/index.css +0 -1
  563. package/lib/notice-bar/index.d.ts +0 -57
  564. package/lib/notice-bar/index.js +0 -35
  565. package/lib/notice-bar/style/index.d.ts +0 -1
  566. package/lib/notice-bar/style/index.js +0 -4
  567. package/lib/notice-bar/types.d.ts +0 -18
  568. package/lib/notice-bar/types.js +0 -15
  569. package/lib/notify/Notify.d.ts +0 -134
  570. package/lib/notify/Notify.js +0 -65
  571. package/lib/notify/function-call.d.ts +0 -6
  572. package/lib/notify/function-call.js +0 -93
  573. package/lib/notify/index.css +0 -1
  574. package/lib/notify/index.d.ts +0 -100
  575. package/lib/notify/index.js +0 -40
  576. package/lib/notify/style/index.d.ts +0 -1
  577. package/lib/notify/style/index.js +0 -6
  578. package/lib/notify/types.d.ts +0 -27
  579. package/lib/notify/types.js +0 -15
  580. package/lib/number-keyboard/NumberKeyboard.d.ts +0 -162
  581. package/lib/number-keyboard/NumberKeyboard.js +0 -256
  582. package/lib/number-keyboard/NumberKeyboardKey.d.ts +0 -24
  583. package/lib/number-keyboard/NumberKeyboardKey.js +0 -113
  584. package/lib/number-keyboard/index.css +0 -1
  585. package/lib/number-keyboard/index.d.ts +0 -121
  586. package/lib/number-keyboard/index.js +0 -35
  587. package/lib/number-keyboard/style/index.d.ts +0 -1
  588. package/lib/number-keyboard/style/index.js +0 -3
  589. package/lib/number-keyboard/types.d.ts +0 -17
  590. package/lib/number-keyboard/types.js +0 -15
  591. package/lib/overlay/Overlay.d.ts +0 -51
  592. package/lib/overlay/Overlay.js +0 -74
  593. package/lib/overlay/index.css +0 -1
  594. package/lib/overlay/index.d.ts +0 -42
  595. package/lib/overlay/index.js +0 -35
  596. package/lib/overlay/style/index.d.ts +0 -1
  597. package/lib/overlay/style/index.js +0 -2
  598. package/lib/overlay/types.d.ts +0 -4
  599. package/lib/overlay/types.js +0 -15
  600. package/lib/pagination/Pagination.d.ts +0 -101
  601. package/lib/pagination/Pagination.js +0 -164
  602. package/lib/pagination/index.css +0 -1
  603. package/lib/pagination/index.d.ts +0 -77
  604. package/lib/pagination/index.js +0 -35
  605. package/lib/pagination/style/index.d.ts +0 -1
  606. package/lib/pagination/style/index.js +0 -2
  607. package/lib/pagination/types.d.ts +0 -11
  608. package/lib/pagination/types.js +0 -15
  609. package/lib/password-input/PasswordInput.d.ts +0 -63
  610. package/lib/password-input/PasswordInput.js +0 -98
  611. package/lib/password-input/index.css +0 -1
  612. package/lib/password-input/index.d.ts +0 -51
  613. package/lib/password-input/index.js +0 -35
  614. package/lib/password-input/style/index.d.ts +0 -1
  615. package/lib/password-input/style/index.js +0 -2
  616. package/lib/password-input/types.d.ts +0 -17
  617. package/lib/password-input/types.js +0 -15
  618. package/lib/picker/Picker.d.ts +0 -163
  619. package/lib/picker/Picker.js +0 -224
  620. package/lib/picker/PickerColumn.d.ts +0 -60
  621. package/lib/picker/PickerColumn.js +0 -213
  622. package/lib/picker/PickerToolbar.d.ts +0 -21
  623. package/lib/picker/PickerToolbar.js +0 -78
  624. package/lib/picker/index.css +0 -1
  625. package/lib/picker/index.d.ts +0 -104
  626. package/lib/picker/index.js +0 -35
  627. package/lib/picker/style/index.d.ts +0 -1
  628. package/lib/picker/style/index.js +0 -10
  629. package/lib/picker/types.d.ts +0 -62
  630. package/lib/picker/types.js +0 -15
  631. package/lib/picker/utils.d.ts +0 -13
  632. package/lib/picker/utils.js +0 -99
  633. package/lib/picker-group/PickerGroup.d.ts +0 -39
  634. package/lib/picker-group/PickerGroup.js +0 -82
  635. package/lib/picker-group/index.css +0 -1
  636. package/lib/picker-group/index.d.ts +0 -34
  637. package/lib/picker-group/index.js +0 -35
  638. package/lib/picker-group/style/index.d.ts +0 -1
  639. package/lib/picker-group/style/index.js +0 -9
  640. package/lib/picker-group/types.d.ts +0 -3
  641. package/lib/picker-group/types.js +0 -15
  642. package/lib/popover/Popover.d.ts +0 -164
  643. package/lib/popover/Popover.js +0 -203
  644. package/lib/popover/index.css +0 -1
  645. package/lib/popover/index.d.ts +0 -121
  646. package/lib/popover/index.js +0 -35
  647. package/lib/popover/style/index.d.ts +0 -1
  648. package/lib/popover/style/index.js +0 -6
  649. package/lib/popover/types.d.ts +0 -26
  650. package/lib/popover/types.js +0 -15
  651. package/lib/popup/Popup.d.ts +0 -165
  652. package/lib/popup/Popup.js +0 -226
  653. package/lib/popup/index.css +0 -1
  654. package/lib/popup/index.d.ts +0 -124
  655. package/lib/popup/index.js +0 -35
  656. package/lib/popup/shared.d.ts +0 -30
  657. package/lib/popup/shared.js +0 -41
  658. package/lib/popup/style/index.d.ts +0 -1
  659. package/lib/popup/style/index.js +0 -5
  660. package/lib/popup/types.d.ts +0 -17
  661. package/lib/popup/types.js +0 -15
  662. package/lib/progress/Progress.d.ts +0 -61
  663. package/lib/progress/Progress.js +0 -96
  664. package/lib/progress/index.css +0 -1
  665. package/lib/progress/index.d.ts +0 -49
  666. package/lib/progress/index.js +0 -35
  667. package/lib/progress/style/index.d.ts +0 -1
  668. package/lib/progress/style/index.js +0 -2
  669. package/lib/progress/types.d.ts +0 -17
  670. package/lib/progress/types.js +0 -15
  671. package/lib/pull-refresh/PullRefresh.d.ts +0 -75
  672. package/lib/pull-refresh/PullRefresh.js +0 -213
  673. package/lib/pull-refresh/index.css +0 -1
  674. package/lib/pull-refresh/index.d.ts +0 -60
  675. package/lib/pull-refresh/index.js +0 -35
  676. package/lib/pull-refresh/style/index.d.ts +0 -1
  677. package/lib/pull-refresh/style/index.js +0 -3
  678. package/lib/pull-refresh/types.d.ts +0 -6
  679. package/lib/pull-refresh/types.js +0 -15
  680. package/lib/radio/Radio.d.ts +0 -50
  681. package/lib/radio/Radio.js +0 -68
  682. package/lib/radio/index.css +0 -1
  683. package/lib/radio/index.d.ts +0 -40
  684. package/lib/radio/index.js +0 -35
  685. package/lib/radio/style/index.d.ts +0 -1
  686. package/lib/radio/style/index.js +0 -6
  687. package/lib/radio/types.d.ts +0 -11
  688. package/lib/radio/types.js +0 -15
  689. package/lib/radio-group/RadioGroup.d.ts +0 -35
  690. package/lib/radio-group/RadioGroup.js +0 -64
  691. package/lib/radio-group/index.css +0 -1
  692. package/lib/radio-group/index.d.ts +0 -26
  693. package/lib/radio-group/index.js +0 -35
  694. package/lib/radio-group/style/index.d.ts +0 -1
  695. package/lib/radio-group/style/index.js +0 -2
  696. package/lib/rate/Rate.d.ts +0 -107
  697. package/lib/rate/Rate.js +0 -239
  698. package/lib/rate/index.css +0 -1
  699. package/lib/rate/index.d.ts +0 -82
  700. package/lib/rate/index.js +0 -35
  701. package/lib/rate/style/index.d.ts +0 -1
  702. package/lib/rate/style/index.js +0 -4
  703. package/lib/rate/types.d.ts +0 -7
  704. package/lib/rate/types.js +0 -15
  705. package/lib/row/Row.d.ts +0 -64
  706. package/lib/row/Row.js +0 -111
  707. package/lib/row/index.css +0 -1
  708. package/lib/row/index.d.ts +0 -43
  709. package/lib/row/index.js +0 -35
  710. package/lib/row/style/index.d.ts +0 -1
  711. package/lib/row/style/index.js +0 -2
  712. package/lib/search/Search.d.ts +0 -206
  713. package/lib/search/Search.js +0 -138
  714. package/lib/search/index.css +0 -1
  715. package/lib/search/index.d.ts +0 -152
  716. package/lib/search/index.js +0 -35
  717. package/lib/search/style/index.d.ts +0 -1
  718. package/lib/search/style/index.js +0 -6
  719. package/lib/search/types.d.ts +0 -21
  720. package/lib/search/types.js +0 -15
  721. package/lib/share-sheet/ShareSheet.d.ts +0 -162
  722. package/lib/share-sheet/ShareSheet.js +0 -142
  723. package/lib/share-sheet/index.css +0 -1
  724. package/lib/share-sheet/index.d.ts +0 -115
  725. package/lib/share-sheet/index.js +0 -35
  726. package/lib/share-sheet/style/index.d.ts +0 -1
  727. package/lib/share-sheet/style/index.js +0 -6
  728. package/lib/share-sheet/types.d.ts +0 -17
  729. package/lib/share-sheet/types.js +0 -15
  730. package/lib/sidebar/Sidebar.d.ts +0 -30
  731. package/lib/sidebar/Sidebar.js +0 -64
  732. package/lib/sidebar/index.css +0 -1
  733. package/lib/sidebar/index.d.ts +0 -25
  734. package/lib/sidebar/index.js +0 -35
  735. package/lib/sidebar/style/index.d.ts +0 -1
  736. package/lib/sidebar/style/index.js +0 -2
  737. package/lib/sidebar/types.d.ts +0 -3
  738. package/lib/sidebar/types.js +0 -15
  739. package/lib/sidebar-item/SidebarItem.d.ts +0 -42
  740. package/lib/sidebar-item/SidebarItem.js +0 -92
  741. package/lib/sidebar-item/index.css +0 -1
  742. package/lib/sidebar-item/index.d.ts +0 -36
  743. package/lib/sidebar-item/index.js +0 -35
  744. package/lib/sidebar-item/style/index.d.ts +0 -1
  745. package/lib/sidebar-item/style/index.js +0 -4
  746. package/lib/sidebar-item/types.d.ts +0 -15
  747. package/lib/sidebar-item/types.js +0 -15
  748. package/lib/skeleton/Skeleton.d.ts +0 -96
  749. package/lib/skeleton/Skeleton.js +0 -115
  750. package/lib/skeleton/SkeletonAvatar.d.ts +0 -26
  751. package/lib/skeleton/SkeletonAvatar.js +0 -41
  752. package/lib/skeleton/SkeletonImage.d.ts +0 -26
  753. package/lib/skeleton/SkeletonImage.js +0 -45
  754. package/lib/skeleton/SkeletonParagraph.d.ts +0 -27
  755. package/lib/skeleton/SkeletonParagraph.js +0 -50
  756. package/lib/skeleton/SkeletonTitle.d.ts +0 -16
  757. package/lib/skeleton/SkeletonTitle.js +0 -45
  758. package/lib/skeleton/index.css +0 -1
  759. package/lib/skeleton/index.d.ts +0 -140
  760. package/lib/skeleton/index.js +0 -55
  761. package/lib/skeleton/style/index.d.ts +0 -1
  762. package/lib/skeleton/style/index.js +0 -4
  763. package/lib/skeleton/types.d.ts +0 -13
  764. package/lib/skeleton/types.js +0 -15
  765. package/lib/slider/Slider.d.ts +0 -100
  766. package/lib/slider/Slider.js +0 -291
  767. package/lib/slider/index.css +0 -1
  768. package/lib/slider/index.d.ts +0 -77
  769. package/lib/slider/index.js +0 -35
  770. package/lib/slider/style/index.d.ts +0 -1
  771. package/lib/slider/style/index.js +0 -2
  772. package/lib/slider/types.d.ts +0 -11
  773. package/lib/slider/types.js +0 -15
  774. package/lib/space/Space.d.ts +0 -48
  775. package/lib/space/Space.js +0 -107
  776. package/lib/space/index.css +0 -1
  777. package/lib/space/index.d.ts +0 -38
  778. package/lib/space/index.js +0 -35
  779. package/lib/space/style/index.d.ts +0 -1
  780. package/lib/space/style/index.js +0 -2
  781. package/lib/step/Step.d.ts +0 -2
  782. package/lib/step/Step.js +0 -137
  783. package/lib/step/index.css +0 -1
  784. package/lib/step/index.d.ts +0 -8
  785. package/lib/step/index.js +0 -33
  786. package/lib/step/style/index.d.ts +0 -1
  787. package/lib/step/style/index.js +0 -5
  788. package/lib/step/types.d.ts +0 -13
  789. package/lib/step/types.js +0 -15
  790. package/lib/stepper/Stepper.d.ts +0 -194
  791. package/lib/stepper/Stepper.js +0 -267
  792. package/lib/stepper/index.css +0 -1
  793. package/lib/stepper/index.d.ts +0 -143
  794. package/lib/stepper/index.js +0 -35
  795. package/lib/stepper/style/index.d.ts +0 -1
  796. package/lib/stepper/style/index.js +0 -2
  797. package/lib/stepper/types.d.ts +0 -15
  798. package/lib/stepper/types.js +0 -15
  799. package/lib/steps/Steps.d.ts +0 -71
  800. package/lib/steps/Steps.js +0 -66
  801. package/lib/steps/index.css +0 -1
  802. package/lib/steps/index.d.ts +0 -52
  803. package/lib/steps/index.js +0 -35
  804. package/lib/steps/style/index.d.ts +0 -1
  805. package/lib/steps/style/index.js +0 -2
  806. package/lib/steps/types.d.ts +0 -3
  807. package/lib/steps/types.js +0 -15
  808. package/lib/sticky/Sticky.d.ts +0 -58
  809. package/lib/sticky/Sticky.js +0 -140
  810. package/lib/sticky/index.css +0 -1
  811. package/lib/sticky/index.d.ts +0 -47
  812. package/lib/sticky/index.js +0 -35
  813. package/lib/sticky/style/index.d.ts +0 -1
  814. package/lib/sticky/style/index.js +0 -2
  815. package/lib/sticky/types.d.ts +0 -3
  816. package/lib/sticky/types.js +0 -15
  817. package/lib/style/animation.css +0 -1
  818. package/lib/style/base.css +0 -1
  819. package/lib/style/css-variables.css +0 -1
  820. package/lib/style/mixins/clearfix.css +0 -0
  821. package/lib/style/mixins/ellipsis.css +0 -0
  822. package/lib/style/mixins/hairline.css +0 -0
  823. package/lib/style/normalize.css +0 -1
  824. package/lib/submit-bar/SubmitBar.d.ts +0 -101
  825. package/lib/submit-bar/SubmitBar.js +0 -135
  826. package/lib/submit-bar/index.css +0 -1
  827. package/lib/submit-bar/index.d.ts +0 -76
  828. package/lib/submit-bar/index.js +0 -35
  829. package/lib/submit-bar/style/index.d.ts +0 -1
  830. package/lib/submit-bar/style/index.js +0 -6
  831. package/lib/submit-bar/types.d.ts +0 -21
  832. package/lib/submit-bar/types.js +0 -15
  833. package/lib/swipe/Swipe.d.ts +0 -121
  834. package/lib/swipe/Swipe.js +0 -380
  835. package/lib/swipe/index.css +0 -1
  836. package/lib/swipe/index.d.ts +0 -91
  837. package/lib/swipe/index.js +0 -35
  838. package/lib/swipe/style/index.d.ts +0 -1
  839. package/lib/swipe/style/index.js +0 -2
  840. package/lib/swipe/types.d.ts +0 -39
  841. package/lib/swipe/types.js +0 -15
  842. package/lib/swipe-cell/SwipeCell.d.ts +0 -44
  843. package/lib/swipe-cell/SwipeCell.js +0 -182
  844. package/lib/swipe-cell/index.css +0 -1
  845. package/lib/swipe-cell/index.d.ts +0 -39
  846. package/lib/swipe-cell/index.js +0 -35
  847. package/lib/swipe-cell/style/index.d.ts +0 -1
  848. package/lib/swipe-cell/style/index.js +0 -2
  849. package/lib/swipe-cell/types.d.ts +0 -9
  850. package/lib/swipe-cell/types.js +0 -15
  851. package/lib/swipe-item/SwipeItem.d.ts +0 -2
  852. package/lib/swipe-item/SwipeItem.js +0 -101
  853. package/lib/swipe-item/index.css +0 -1
  854. package/lib/swipe-item/index.d.ts +0 -7
  855. package/lib/swipe-item/index.js +0 -33
  856. package/lib/swipe-item/style/index.d.ts +0 -1
  857. package/lib/swipe-item/style/index.js +0 -3
  858. package/lib/switch/Switch.d.ts +0 -58
  859. package/lib/switch/Switch.js +0 -105
  860. package/lib/switch/index.css +0 -1
  861. package/lib/switch/index.d.ts +0 -48
  862. package/lib/switch/index.js +0 -35
  863. package/lib/switch/style/index.d.ts +0 -1
  864. package/lib/switch/style/index.js +0 -3
  865. package/lib/switch/types.d.ts +0 -12
  866. package/lib/switch/types.js +0 -15
  867. package/lib/tab/Tab.d.ts +0 -58
  868. package/lib/tab/Tab.js +0 -143
  869. package/lib/tab/index.css +0 -1
  870. package/lib/tab/index.d.ts +0 -46
  871. package/lib/tab/index.js +0 -35
  872. package/lib/tab/style/index.d.ts +0 -1
  873. package/lib/tab/style/index.js +0 -7
  874. package/lib/tabbar/Tabbar.d.ts +0 -90
  875. package/lib/tabbar/Tabbar.js +0 -104
  876. package/lib/tabbar/index.css +0 -1
  877. package/lib/tabbar/index.d.ts +0 -66
  878. package/lib/tabbar/index.js +0 -35
  879. package/lib/tabbar/style/index.d.ts +0 -1
  880. package/lib/tabbar/style/index.js +0 -2
  881. package/lib/tabbar/types.d.ts +0 -5
  882. package/lib/tabbar/types.js +0 -15
  883. package/lib/tabbar-item/TabbarItem.d.ts +0 -44
  884. package/lib/tabbar-item/TabbarItem.js +0 -140
  885. package/lib/tabbar-item/index.css +0 -1
  886. package/lib/tabbar-item/index.d.ts +0 -37
  887. package/lib/tabbar-item/index.js +0 -35
  888. package/lib/tabbar-item/style/index.d.ts +0 -1
  889. package/lib/tabbar-item/style/index.js +0 -5
  890. package/lib/tabbar-item/types.d.ts +0 -9
  891. package/lib/tabbar-item/types.js +0 -15
  892. package/lib/tabs/Tabs.d.ts +0 -154
  893. package/lib/tabs/Tabs.js +0 -391
  894. package/lib/tabs/TabsContent.d.ts +0 -43
  895. package/lib/tabs/TabsContent.js +0 -87
  896. package/lib/tabs/TabsTitle.d.ts +0 -45
  897. package/lib/tabs/TabsTitle.js +0 -109
  898. package/lib/tabs/index.css +0 -1
  899. package/lib/tabs/index.d.ts +0 -115
  900. package/lib/tabs/index.js +0 -35
  901. package/lib/tabs/style/index.d.ts +0 -1
  902. package/lib/tabs/style/index.js +0 -5
  903. package/lib/tabs/types.d.ts +0 -37
  904. package/lib/tabs/types.js +0 -15
  905. package/lib/tabs/utils.d.ts +0 -3
  906. package/lib/tabs/utils.js +0 -56
  907. package/lib/tag/Tag.d.ts +0 -63
  908. package/lib/tag/Tag.js +0 -98
  909. package/lib/tag/index.css +0 -1
  910. package/lib/tag/index.d.ts +0 -51
  911. package/lib/tag/index.js +0 -35
  912. package/lib/tag/style/index.d.ts +0 -1
  913. package/lib/tag/style/index.js +0 -4
  914. package/lib/tag/types.d.ts +0 -20
  915. package/lib/tag/types.js +0 -15
  916. package/lib/time-picker/TimePicker.d.ts +0 -217
  917. package/lib/time-picker/TimePicker.js +0 -95
  918. package/lib/time-picker/index.d.ts +0 -159
  919. package/lib/time-picker/index.js +0 -35
  920. package/lib/time-picker/style/index.d.ts +0 -1
  921. package/lib/time-picker/style/index.js +0 -10
  922. package/lib/toast/Toast.d.ts +0 -115
  923. package/lib/toast/Toast.js +0 -146
  924. package/lib/toast/function-call.d.ts +0 -10
  925. package/lib/toast/function-call.js +0 -167
  926. package/lib/toast/index.css +0 -1
  927. package/lib/toast/index.d.ts +0 -87
  928. package/lib/toast/index.js +0 -44
  929. package/lib/toast/lock-click.d.ts +0 -1
  930. package/lib/toast/lock-click.js +0 -36
  931. package/lib/toast/style/index.d.ts +0 -1
  932. package/lib/toast/style/index.js +0 -7
  933. package/lib/toast/types.d.ts +0 -55
  934. package/lib/toast/types.js +0 -15
  935. package/lib/tree-select/TreeSelect.d.ts +0 -106
  936. package/lib/tree-select/TreeSelect.js +0 -122
  937. package/lib/tree-select/index.css +0 -1
  938. package/lib/tree-select/index.d.ts +0 -72
  939. package/lib/tree-select/index.js +0 -35
  940. package/lib/tree-select/style/index.d.ts +0 -1
  941. package/lib/tree-select/style/index.js +0 -6
  942. package/lib/tree-select/types.d.ts +0 -10
  943. package/lib/tree-select/types.js +0 -15
  944. package/lib/uploader/Uploader.d.ts +0 -213
  945. package/lib/uploader/Uploader.js +0 -274
  946. package/lib/uploader/UploaderPreviewItem.d.ts +0 -36
  947. package/lib/uploader/UploaderPreviewItem.js +0 -147
  948. package/lib/uploader/index.css +0 -1
  949. package/lib/uploader/index.d.ts +0 -155
  950. package/lib/uploader/index.js +0 -35
  951. package/lib/uploader/style/index.d.ts +0 -1
  952. package/lib/uploader/style/index.js +0 -11
  953. package/lib/uploader/types.d.ts +0 -58
  954. package/lib/uploader/types.js +0 -15
  955. package/lib/uploader/utils.d.ts +0 -11
  956. package/lib/uploader/utils.js +0 -88
  957. package/lib/utils/basic.d.ts +0 -18
  958. package/lib/utils/basic.js +0 -52
  959. package/lib/utils/constant.d.ts +0 -12
  960. package/lib/utils/constant.js +0 -41
  961. package/lib/utils/create.d.ts +0 -17
  962. package/lib/utils/create.js +0 -78
  963. package/lib/utils/deep-assign.d.ts +0 -3
  964. package/lib/utils/deep-assign.js +0 -41
  965. package/lib/utils/deep-clone.d.ts +0 -1
  966. package/lib/utils/deep-clone.js +0 -39
  967. package/lib/utils/dom.d.ts +0 -12
  968. package/lib/utils/dom.js +0 -86
  969. package/lib/utils/format.d.ts +0 -13
  970. package/lib/utils/format.js +0 -139
  971. package/lib/utils/index.d.ts +0 -9
  972. package/lib/utils/index.js +0 -25
  973. package/lib/utils/interceptor.d.ts +0 -6
  974. package/lib/utils/interceptor.js +0 -48
  975. package/lib/utils/mount-component.d.ts +0 -14
  976. package/lib/utils/mount-component.js +0 -58
  977. package/lib/utils/props.d.ts +0 -31
  978. package/lib/utils/props.js +0 -55
  979. package/lib/utils/validate.d.ts +0 -9
  980. package/lib/utils/validate.js +0 -41
  981. package/lib/utils/with-install.d.ts +0 -13
  982. package/lib/utils/with-install.js +0 -33
  983. package/lib/vue-sfc-shim.d.ts +0 -6
  984. package/lib/vue-tsx-shim.d.ts +0 -23
@@ -1,10 +0,0 @@
1
- require("../../style/base.css");
2
- require("../../badge/index.css");
3
- require("../../loading/index.css");
4
- require("../../sticky/index.css");
5
- require("../../swipe/index.css");
6
- require("../../swipe-item/index.css");
7
- require("../../tabs/index.css");
8
- require("../../tab/index.css");
9
- require("../../picker/index.css");
10
- require("../../picker-group/index.css");
@@ -1,45 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { PickerOption } from '../picker';
3
- type Filter = (columnType: string, options: PickerOption[]) => PickerOption[];
4
- type Formatter = (type: string, option: PickerOption) => PickerOption;
5
- export declare const sharedProps: {
6
- loading: BooleanConstructor;
7
- readonly: BooleanConstructor;
8
- allowHtml: BooleanConstructor;
9
- optionHeight: {
10
- type: (NumberConstructor | StringConstructor)[];
11
- default: number;
12
- };
13
- showToolbar: {
14
- type: BooleanConstructor;
15
- default: true;
16
- };
17
- swipeDuration: {
18
- type: (NumberConstructor | StringConstructor)[];
19
- default: number;
20
- };
21
- visibleOptionNum: {
22
- type: (NumberConstructor | StringConstructor)[];
23
- default: number;
24
- };
25
- } & {
26
- title: StringConstructor;
27
- cancelButtonText: StringConstructor;
28
- confirmButtonText: StringConstructor;
29
- } & {
30
- modelValue: {
31
- type: PropType<string[]>;
32
- default: () => never[];
33
- };
34
- filter: PropType<Filter>;
35
- formatter: {
36
- type: PropType<Formatter>;
37
- default: (type: string, option: PickerOption) => PickerOption;
38
- };
39
- };
40
- export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "allowHtml" | "optionHeight" | "showToolbar" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText")[];
41
- export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
42
- export declare const getMonthEndDay: (year: number, month: number) => number;
43
- export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
44
- export declare const formatValueRange: (values: string[], columns: PickerOption[]) => string[];
45
- export {};
@@ -1,70 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
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 });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- formatValueRange: () => formatValueRange,
21
- genOptions: () => genOptions,
22
- getMonthEndDay: () => getMonthEndDay,
23
- pickerInheritKeys: () => pickerInheritKeys,
24
- sharedProps: () => sharedProps,
25
- times: () => times
26
- });
27
- module.exports = __toCommonJS(stdin_exports);
28
- var import_utils = require("../utils");
29
- var import_Picker = require("../picker/Picker");
30
- const sharedProps = (0, import_utils.extend)({}, import_Picker.pickerSharedProps, {
31
- modelValue: (0, import_utils.makeArrayProp)(),
32
- filter: Function,
33
- formatter: {
34
- type: Function,
35
- default: (type, option) => option
36
- }
37
- });
38
- const pickerInheritKeys = Object.keys(import_Picker.pickerSharedProps);
39
- function times(n, iteratee) {
40
- if (n < 0) {
41
- return [];
42
- }
43
- const result = Array(n);
44
- let index = -1;
45
- while (++index < n) {
46
- result[index] = iteratee(index);
47
- }
48
- return result;
49
- }
50
- const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
51
- const genOptions = (min, max, type, formatter, filter) => {
52
- const options = times(max - min + 1, (index) => {
53
- const value = (0, import_utils.padZero)(min + index);
54
- return formatter(type, {
55
- text: value,
56
- value
57
- });
58
- });
59
- return filter ? filter(type, options) : options;
60
- };
61
- const formatValueRange = (values, columns) => values.map((value, index) => {
62
- const column = columns[index];
63
- if (column.length) {
64
- const maxValue = +column[column.length - 1].value;
65
- if (+value > maxValue) {
66
- return String(maxValue);
67
- }
68
- }
69
- return value;
70
- });
@@ -1,187 +0,0 @@
1
- import { type PropType, type ExtractPropTypes } from 'vue';
2
- import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
3
- export declare const dialogProps: {
4
- show: BooleanConstructor;
5
- zIndex: (NumberConstructor | StringConstructor)[];
6
- overlay: {
7
- type: BooleanConstructor;
8
- default: true;
9
- };
10
- duration: (NumberConstructor | StringConstructor)[];
11
- teleport: PropType<string | import("vue").RendererElement | null | undefined>;
12
- lockScroll: {
13
- type: BooleanConstructor;
14
- default: true;
15
- };
16
- lazyRender: {
17
- type: BooleanConstructor;
18
- default: true;
19
- };
20
- beforeClose: PropType<import("../utils").Interceptor>;
21
- overlayStyle: PropType<import("vue").CSSProperties>;
22
- overlayClass: PropType<unknown>;
23
- transitionAppear: BooleanConstructor;
24
- closeOnClickOverlay: {
25
- type: BooleanConstructor;
26
- default: true;
27
- };
28
- } & {
29
- title: StringConstructor;
30
- theme: PropType<DialogTheme>;
31
- width: (NumberConstructor | StringConstructor)[];
32
- message: PropType<DialogMessage>;
33
- callback: PropType<(action?: DialogAction) => void>;
34
- allowHtml: BooleanConstructor;
35
- className: PropType<unknown>;
36
- transition: {
37
- type: PropType<string>;
38
- default: string;
39
- };
40
- messageAlign: PropType<DialogMessageAlign>;
41
- closeOnPopstate: {
42
- type: BooleanConstructor;
43
- default: true;
44
- };
45
- showCancelButton: BooleanConstructor;
46
- cancelButtonText: StringConstructor;
47
- cancelButtonColor: StringConstructor;
48
- cancelButtonDisabled: BooleanConstructor;
49
- confirmButtonText: StringConstructor;
50
- confirmButtonColor: StringConstructor;
51
- confirmButtonDisabled: BooleanConstructor;
52
- showConfirmButton: {
53
- type: BooleanConstructor;
54
- default: true;
55
- };
56
- closeOnClickOverlay: BooleanConstructor;
57
- };
58
- export type DialogProps = ExtractPropTypes<typeof dialogProps>;
59
- declare const _default: import("vue").DefineComponent<{
60
- show: BooleanConstructor;
61
- zIndex: (NumberConstructor | StringConstructor)[];
62
- overlay: {
63
- type: BooleanConstructor;
64
- default: true;
65
- };
66
- duration: (NumberConstructor | StringConstructor)[];
67
- teleport: PropType<string | import("vue").RendererElement | null | undefined>;
68
- lockScroll: {
69
- type: BooleanConstructor;
70
- default: true;
71
- };
72
- lazyRender: {
73
- type: BooleanConstructor;
74
- default: true;
75
- };
76
- beforeClose: PropType<import("../utils").Interceptor>;
77
- overlayStyle: PropType<import("vue").CSSProperties>;
78
- overlayClass: PropType<unknown>;
79
- transitionAppear: BooleanConstructor;
80
- closeOnClickOverlay: {
81
- type: BooleanConstructor;
82
- default: true;
83
- };
84
- } & {
85
- title: StringConstructor;
86
- theme: PropType<DialogTheme>;
87
- width: (NumberConstructor | StringConstructor)[];
88
- message: PropType<DialogMessage>;
89
- callback: PropType<(action?: DialogAction | undefined) => void>;
90
- allowHtml: BooleanConstructor;
91
- className: PropType<unknown>;
92
- transition: {
93
- type: PropType<string>;
94
- default: string;
95
- };
96
- messageAlign: PropType<DialogMessageAlign>;
97
- closeOnPopstate: {
98
- type: BooleanConstructor;
99
- default: true;
100
- };
101
- showCancelButton: BooleanConstructor;
102
- cancelButtonText: StringConstructor;
103
- cancelButtonColor: StringConstructor;
104
- cancelButtonDisabled: BooleanConstructor;
105
- confirmButtonText: StringConstructor;
106
- confirmButtonColor: StringConstructor;
107
- confirmButtonDisabled: BooleanConstructor;
108
- showConfirmButton: {
109
- type: BooleanConstructor;
110
- default: true;
111
- };
112
- closeOnClickOverlay: BooleanConstructor;
113
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
114
- show: BooleanConstructor;
115
- zIndex: (NumberConstructor | StringConstructor)[];
116
- overlay: {
117
- type: BooleanConstructor;
118
- default: true;
119
- };
120
- duration: (NumberConstructor | StringConstructor)[];
121
- teleport: PropType<string | import("vue").RendererElement | null | undefined>;
122
- lockScroll: {
123
- type: BooleanConstructor;
124
- default: true;
125
- };
126
- lazyRender: {
127
- type: BooleanConstructor;
128
- default: true;
129
- };
130
- beforeClose: PropType<import("../utils").Interceptor>;
131
- overlayStyle: PropType<import("vue").CSSProperties>;
132
- overlayClass: PropType<unknown>;
133
- transitionAppear: BooleanConstructor;
134
- closeOnClickOverlay: {
135
- type: BooleanConstructor;
136
- default: true;
137
- };
138
- } & {
139
- title: StringConstructor;
140
- theme: PropType<DialogTheme>;
141
- width: (NumberConstructor | StringConstructor)[];
142
- message: PropType<DialogMessage>;
143
- callback: PropType<(action?: DialogAction | undefined) => void>;
144
- allowHtml: BooleanConstructor;
145
- className: PropType<unknown>;
146
- transition: {
147
- type: PropType<string>;
148
- default: string;
149
- };
150
- messageAlign: PropType<DialogMessageAlign>;
151
- closeOnPopstate: {
152
- type: BooleanConstructor;
153
- default: true;
154
- };
155
- showCancelButton: BooleanConstructor;
156
- cancelButtonText: StringConstructor;
157
- cancelButtonColor: StringConstructor;
158
- cancelButtonDisabled: BooleanConstructor;
159
- confirmButtonText: StringConstructor;
160
- confirmButtonColor: StringConstructor;
161
- confirmButtonDisabled: BooleanConstructor;
162
- showConfirmButton: {
163
- type: BooleanConstructor;
164
- default: true;
165
- };
166
- closeOnClickOverlay: BooleanConstructor;
167
- }>> & {
168
- onKeydown?: ((...args: any[]) => any) | undefined;
169
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
170
- onCancel?: ((...args: any[]) => any) | undefined;
171
- onConfirm?: ((...args: any[]) => any) | undefined;
172
- }, {
173
- overlay: boolean;
174
- show: boolean;
175
- lockScroll: boolean;
176
- lazyRender: boolean;
177
- transitionAppear: boolean;
178
- closeOnClickOverlay: boolean;
179
- transition: string;
180
- closeOnPopstate: boolean;
181
- allowHtml: boolean;
182
- showCancelButton: boolean;
183
- cancelButtonDisabled: boolean;
184
- confirmButtonDisabled: boolean;
185
- showConfirmButton: boolean;
186
- }>;
187
- export default _default;
@@ -1,237 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name2 in all)
7
- __defProp(target, name2, { get: all[name2], enumerable: true });
8
- };
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 });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- default: () => stdin_default,
21
- dialogProps: () => dialogProps
22
- });
23
- module.exports = __toCommonJS(stdin_exports);
24
- var import_vue = require("vue");
25
- var import_vue2 = require("vue");
26
- var import_utils = require("../utils");
27
- var import_shared = require("../popup/shared");
28
- var import_popup = require("../popup");
29
- var import_button = require("../button");
30
- var import_action_bar = require("../action-bar");
31
- var import_action_bar_button = require("../action-bar-button");
32
- const [name, bem, t] = (0, import_utils.createNamespace)("dialog");
33
- const dialogProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
34
- title: String,
35
- theme: String,
36
- width: import_utils.numericProp,
37
- message: [String, Function],
38
- callback: Function,
39
- allowHtml: Boolean,
40
- className: import_utils.unknownProp,
41
- transition: (0, import_utils.makeStringProp)("van-dialog-bounce"),
42
- messageAlign: String,
43
- closeOnPopstate: import_utils.truthProp,
44
- showCancelButton: Boolean,
45
- cancelButtonText: String,
46
- cancelButtonColor: String,
47
- cancelButtonDisabled: Boolean,
48
- confirmButtonText: String,
49
- confirmButtonColor: String,
50
- confirmButtonDisabled: Boolean,
51
- showConfirmButton: import_utils.truthProp,
52
- closeOnClickOverlay: Boolean
53
- });
54
- const popupInheritKeys = [...import_shared.popupSharedPropKeys, "transition", "closeOnPopstate"];
55
- var stdin_default = (0, import_vue2.defineComponent)({
56
- name,
57
- props: dialogProps,
58
- emits: ["confirm", "cancel", "keydown", "update:show"],
59
- setup(props, {
60
- emit,
61
- slots
62
- }) {
63
- const root = (0, import_vue2.ref)();
64
- const loading = (0, import_vue2.reactive)({
65
- confirm: false,
66
- cancel: false
67
- });
68
- const updateShow = (value) => emit("update:show", value);
69
- const close = (action) => {
70
- var _a;
71
- updateShow(false);
72
- (_a = props.callback) == null ? void 0 : _a.call(props, action);
73
- };
74
- const getActionHandler = (action) => () => {
75
- if (!props.show) {
76
- return;
77
- }
78
- emit(action);
79
- if (props.beforeClose) {
80
- loading[action] = true;
81
- (0, import_utils.callInterceptor)(props.beforeClose, {
82
- args: [action],
83
- done() {
84
- close(action);
85
- loading[action] = false;
86
- },
87
- canceled() {
88
- loading[action] = false;
89
- }
90
- });
91
- } else {
92
- close(action);
93
- }
94
- };
95
- const onCancel = getActionHandler("cancel");
96
- const onConfirm = getActionHandler("confirm");
97
- const onKeydown = (0, import_vue2.withKeys)((event) => {
98
- var _a, _b;
99
- if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
100
- return;
101
- }
102
- const onEventType = {
103
- Enter: props.showConfirmButton ? onConfirm : import_utils.noop,
104
- Escape: props.showCancelButton ? onCancel : import_utils.noop
105
- };
106
- onEventType[event.key]();
107
- emit("keydown", event);
108
- }, ["enter", "esc"]);
109
- const renderTitle = () => {
110
- const title = slots.title ? slots.title() : props.title;
111
- if (title) {
112
- return (0, import_vue.createVNode)("div", {
113
- "class": bem("header", {
114
- isolated: !props.message && !slots.default
115
- })
116
- }, [title]);
117
- }
118
- };
119
- const renderMessage = (hasTitle) => {
120
- const {
121
- message,
122
- allowHtml,
123
- messageAlign
124
- } = props;
125
- const classNames = bem("message", {
126
- "has-title": hasTitle,
127
- [messageAlign]: messageAlign
128
- });
129
- const content = (0, import_utils.isFunction)(message) ? message() : message;
130
- if (allowHtml && typeof content === "string") {
131
- return (0, import_vue.createVNode)("div", {
132
- "class": classNames,
133
- "innerHTML": content
134
- }, null);
135
- }
136
- return (0, import_vue.createVNode)("div", {
137
- "class": classNames
138
- }, [content]);
139
- };
140
- const renderContent = () => {
141
- if (slots.default) {
142
- return (0, import_vue.createVNode)("div", {
143
- "class": bem("content")
144
- }, [slots.default()]);
145
- }
146
- const {
147
- title,
148
- message,
149
- allowHtml
150
- } = props;
151
- if (message) {
152
- const hasTitle = !!(title || slots.title);
153
- return (0, import_vue.createVNode)("div", {
154
- "key": allowHtml ? 1 : 0,
155
- "class": bem("content", {
156
- isolated: !hasTitle
157
- })
158
- }, [renderMessage(hasTitle)]);
159
- }
160
- };
161
- const renderButtons = () => (0, import_vue.createVNode)("div", {
162
- "class": [import_utils.BORDER_TOP, bem("footer")]
163
- }, [props.showCancelButton && (0, import_vue.createVNode)(import_button.Button, {
164
- "size": "large",
165
- "text": props.cancelButtonText || t("cancel"),
166
- "class": bem("cancel"),
167
- "style": {
168
- color: props.cancelButtonColor
169
- },
170
- "loading": loading.cancel,
171
- "disabled": props.cancelButtonDisabled,
172
- "onClick": onCancel
173
- }, null), props.showConfirmButton && (0, import_vue.createVNode)(import_button.Button, {
174
- "size": "large",
175
- "text": props.confirmButtonText || t("confirm"),
176
- "class": [bem("confirm"), {
177
- [import_utils.BORDER_LEFT]: props.showCancelButton
178
- }],
179
- "style": {
180
- color: props.confirmButtonColor
181
- },
182
- "loading": loading.confirm,
183
- "disabled": props.confirmButtonDisabled,
184
- "onClick": onConfirm
185
- }, null)]);
186
- const renderRoundButtons = () => (0, import_vue.createVNode)(import_action_bar.ActionBar, {
187
- "class": bem("footer")
188
- }, {
189
- default: () => [props.showCancelButton && (0, import_vue.createVNode)(import_action_bar_button.ActionBarButton, {
190
- "type": "warning",
191
- "text": props.cancelButtonText || t("cancel"),
192
- "class": bem("cancel"),
193
- "color": props.cancelButtonColor,
194
- "loading": loading.cancel,
195
- "disabled": props.cancelButtonDisabled,
196
- "onClick": onCancel
197
- }, null), props.showConfirmButton && (0, import_vue.createVNode)(import_action_bar_button.ActionBarButton, {
198
- "type": "danger",
199
- "text": props.confirmButtonText || t("confirm"),
200
- "class": bem("confirm"),
201
- "color": props.confirmButtonColor,
202
- "loading": loading.confirm,
203
- "disabled": props.confirmButtonDisabled,
204
- "onClick": onConfirm
205
- }, null)]
206
- });
207
- const renderFooter = () => {
208
- if (slots.footer) {
209
- return slots.footer();
210
- }
211
- return props.theme === "round-button" ? renderRoundButtons() : renderButtons();
212
- };
213
- return () => {
214
- const {
215
- width,
216
- title,
217
- theme,
218
- message,
219
- className
220
- } = props;
221
- return (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
222
- "ref": root,
223
- "role": "dialog",
224
- "class": [bem([theme]), className],
225
- "style": {
226
- width: (0, import_utils.addUnit)(width)
227
- },
228
- "tabindex": 0,
229
- "aria-labelledby": title || message,
230
- "onKeydown": onKeydown,
231
- "onUpdate:show": updateShow
232
- }, (0, import_utils.pick)(props, popupInheritKeys)), {
233
- default: () => [renderTitle(), renderContent(), renderFooter()]
234
- });
235
- };
236
- }
237
- });
@@ -1,6 +0,0 @@
1
- import type { DialogOptions } from './types';
2
- export declare function showDialog(options: DialogOptions): Promise<unknown>;
3
- export declare const setDialogDefaultOptions: (options: DialogOptions) => void;
4
- export declare const resetDialogDefaultOptions: () => void;
5
- export declare const showConfirmDialog: (options: DialogOptions) => Promise<unknown>;
6
- export declare const closeDialog: () => void;
@@ -1,110 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
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 });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
23
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
26
- closeDialog: () => closeDialog,
27
- resetDialogDefaultOptions: () => resetDialogDefaultOptions,
28
- setDialogDefaultOptions: () => setDialogDefaultOptions,
29
- showConfirmDialog: () => showConfirmDialog,
30
- showDialog: () => showDialog
31
- });
32
- module.exports = __toCommonJS(stdin_exports);
33
- var import_vue = require("vue");
34
- var import_utils = require("../utils");
35
- var import_mount_component = require("../utils/mount-component");
36
- var import_Dialog = __toESM(require("./Dialog"));
37
- let instance;
38
- const DEFAULT_OPTIONS = {
39
- title: "",
40
- width: "",
41
- theme: null,
42
- message: "",
43
- overlay: true,
44
- callback: null,
45
- teleport: "body",
46
- className: "",
47
- allowHtml: false,
48
- lockScroll: true,
49
- transition: void 0,
50
- beforeClose: null,
51
- overlayClass: "",
52
- overlayStyle: void 0,
53
- messageAlign: "",
54
- cancelButtonText: "",
55
- cancelButtonColor: null,
56
- cancelButtonDisabled: false,
57
- confirmButtonText: "",
58
- confirmButtonColor: null,
59
- confirmButtonDisabled: false,
60
- showConfirmButton: true,
61
- showCancelButton: false,
62
- closeOnPopstate: true,
63
- closeOnClickOverlay: false
64
- };
65
- let currentOptions = (0, import_utils.extend)({}, DEFAULT_OPTIONS);
66
- function initInstance() {
67
- const Wrapper = {
68
- setup() {
69
- const {
70
- state,
71
- toggle
72
- } = (0, import_mount_component.usePopupState)();
73
- return () => (0, import_vue.createVNode)(import_Dialog.default, (0, import_vue.mergeProps)(state, {
74
- "onUpdate:show": toggle
75
- }), null);
76
- }
77
- };
78
- ({
79
- instance
80
- } = (0, import_mount_component.mountComponent)(Wrapper));
81
- }
82
- function showDialog(options) {
83
- if (!import_utils.inBrowser) {
84
- return Promise.resolve();
85
- }
86
- return new Promise((resolve, reject) => {
87
- if (!instance) {
88
- initInstance();
89
- }
90
- instance.open((0, import_utils.extend)({}, currentOptions, options, {
91
- callback: (action) => {
92
- (action === "confirm" ? resolve : reject)(action);
93
- }
94
- }));
95
- });
96
- }
97
- const setDialogDefaultOptions = (options) => {
98
- (0, import_utils.extend)(currentOptions, options);
99
- };
100
- const resetDialogDefaultOptions = () => {
101
- currentOptions = (0, import_utils.extend)({}, DEFAULT_OPTIONS);
102
- };
103
- const showConfirmDialog = (options) => showDialog((0, import_utils.extend)({
104
- showCancelButton: true
105
- }, options));
106
- const closeDialog = () => {
107
- if (instance) {
108
- instance.toggle(false);
109
- }
110
- };
@@ -1 +0,0 @@
1
- :root{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}