persagy-vant 0.0.26 → 0.0.27

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 (548) hide show
  1. package/README.md +9 -7
  2. package/es/bot-mobile/BotFab.d.ts +72 -0
  3. package/es/bot-mobile/BotFab.mjs +152 -0
  4. package/es/bot-mobile/BotHistoryDrawer.d.ts +72 -0
  5. package/es/bot-mobile/BotHistoryDrawer.mjs +97 -0
  6. package/es/bot-mobile/BotMobile.d.ts +83 -0
  7. package/es/bot-mobile/BotMobile.mjs +47 -0
  8. package/es/bot-mobile/BotMobileContextTags.d.ts +52 -0
  9. package/es/bot-mobile/BotMobileContextTags.mjs +52 -0
  10. package/es/bot-mobile/BotMobilePrompts.d.ts +54 -0
  11. package/es/bot-mobile/BotMobilePrompts.mjs +49 -0
  12. package/es/bot-mobile/BotMobileSheet.d.ts +92 -0
  13. package/es/bot-mobile/BotMobileSheet.mjs +50 -0
  14. package/es/bot-mobile/BotMobileView.d.ts +82 -0
  15. package/es/bot-mobile/BotMobileView.mjs +45 -0
  16. package/es/bot-mobile/BotSessionList.d.ts +71 -0
  17. package/es/bot-mobile/BotSessionList.mjs +99 -0
  18. package/es/bot-mobile/BotVoiceBar.d.ts +80 -0
  19. package/es/bot-mobile/BotVoiceBar.mjs +138 -0
  20. package/es/bot-mobile/fab-position.d.ts +9 -0
  21. package/es/bot-mobile/fab-position.mjs +10 -0
  22. package/es/bot-mobile/fab-position.test.mjs +29 -0
  23. package/es/bot-mobile/index.css +1 -0
  24. package/es/bot-mobile/index.d.ts +469 -0
  25. package/es/bot-mobile/index.less +464 -0
  26. package/es/bot-mobile/index.mjs +50 -0
  27. package/es/bot-mobile/session-filter.d.ts +6 -0
  28. package/es/bot-mobile/session-filter.mjs +15 -0
  29. package/es/bot-mobile/session-item.d.ts +15 -0
  30. package/es/bot-mobile/session-item.mjs +73 -0
  31. package/es/bot-mobile/style/index.mjs +15 -0
  32. package/es/bot-mobile/style/less.mjs +15 -0
  33. package/es/bot-mobile/types.d.ts +23 -0
  34. package/es/bot-mobile/types.mjs +0 -0
  35. package/es/bot-mobile/var.css +0 -0
  36. package/es/bot-mobile/var.less +58 -0
  37. package/es/bot-mobile/voice-zone.d.ts +6 -0
  38. package/es/bot-mobile/voice-zone.mjs +6 -0
  39. package/es/bot-mobile/voice-zone.test.mjs +19 -0
  40. package/es/cascader/Cascader.d.ts +1 -1
  41. package/es/cascader/index.d.ts +1 -1
  42. package/es/coupon-list/style/index.mjs +1 -1
  43. package/es/coupon-list/style/less.mjs +1 -1
  44. package/es/icon/base-iconfont.css +1 -0
  45. package/es/icon/base-iconfont.less +1144 -0
  46. package/es/icon/config.d.ts +7 -0
  47. package/es/icon/config.mjs +268 -0
  48. package/es/icon/index.less +1 -1
  49. package/es/icon/latest-iconfont.less +1 -1
  50. package/es/index.d.ts +2 -1
  51. package/es/index.mjs +4 -1
  52. package/es/location-select/style/index.mjs +1 -1
  53. package/es/location-select/style/less.mjs +1 -1
  54. package/es/material-add/MaterialAdd.d.ts +1 -1
  55. package/es/material-add/index.d.ts +1 -1
  56. package/es/quantity-input/QuantityInput.d.ts +1 -1
  57. package/es/quantity-input/index.d.ts +2 -2
  58. package/es/sticky/Sticky.d.ts +1 -1
  59. package/es/sticky/index.d.ts +1 -1
  60. package/lib/bot-mobile/BotFab.d.ts +72 -0
  61. package/lib/bot-mobile/BotFab.js +171 -0
  62. package/lib/bot-mobile/BotHistoryDrawer.d.ts +72 -0
  63. package/lib/bot-mobile/BotHistoryDrawer.js +116 -0
  64. package/lib/bot-mobile/BotMobile.d.ts +83 -0
  65. package/lib/bot-mobile/BotMobile.js +66 -0
  66. package/lib/bot-mobile/BotMobileContextTags.d.ts +52 -0
  67. package/lib/bot-mobile/BotMobileContextTags.js +71 -0
  68. package/lib/bot-mobile/BotMobilePrompts.d.ts +54 -0
  69. package/lib/bot-mobile/BotMobilePrompts.js +68 -0
  70. package/lib/bot-mobile/BotMobileSheet.d.ts +92 -0
  71. package/lib/bot-mobile/BotMobileSheet.js +79 -0
  72. package/lib/bot-mobile/BotMobileView.d.ts +82 -0
  73. package/lib/bot-mobile/BotMobileView.js +64 -0
  74. package/lib/bot-mobile/BotSessionList.d.ts +71 -0
  75. package/lib/bot-mobile/BotSessionList.js +118 -0
  76. package/lib/bot-mobile/BotVoiceBar.d.ts +80 -0
  77. package/lib/bot-mobile/BotVoiceBar.js +157 -0
  78. package/lib/bot-mobile/fab-position.d.ts +9 -0
  79. package/lib/bot-mobile/fab-position.js +29 -0
  80. package/lib/bot-mobile/fab-position.test.js +29 -0
  81. package/lib/bot-mobile/index.css +1 -0
  82. package/lib/bot-mobile/index.d.ts +469 -0
  83. package/lib/bot-mobile/index.js +79 -0
  84. package/lib/bot-mobile/index.less +464 -0
  85. package/lib/bot-mobile/session-filter.d.ts +6 -0
  86. package/lib/bot-mobile/session-filter.js +34 -0
  87. package/lib/bot-mobile/session-item.d.ts +15 -0
  88. package/lib/bot-mobile/session-item.js +92 -0
  89. package/lib/bot-mobile/style/index.js +15 -0
  90. package/lib/bot-mobile/style/less.js +15 -0
  91. package/lib/bot-mobile/types.d.ts +23 -0
  92. package/lib/bot-mobile/types.js +15 -0
  93. package/lib/bot-mobile/var.css +0 -0
  94. package/lib/bot-mobile/var.less +58 -0
  95. package/lib/bot-mobile/voice-zone.d.ts +6 -0
  96. package/lib/bot-mobile/voice-zone.js +25 -0
  97. package/lib/bot-mobile/voice-zone.test.js +19 -0
  98. package/lib/cascader/Cascader.d.ts +1 -1
  99. package/lib/cascader/index.d.ts +1 -1
  100. package/lib/coupon-list/style/index.js +1 -1
  101. package/lib/coupon-list/style/less.js +1 -1
  102. package/lib/icon/base-iconfont.css +1 -0
  103. package/lib/icon/base-iconfont.less +1144 -0
  104. package/lib/icon/config.d.ts +7 -0
  105. package/lib/icon/config.js +287 -0
  106. package/lib/icon/index.less +1 -1
  107. package/lib/icon/latest-iconfont.less +1 -1
  108. package/lib/index.css +1 -1
  109. package/lib/index.d.ts +2 -1
  110. package/lib/index.js +4 -1
  111. package/lib/index.less +5 -4
  112. package/lib/location-select/style/index.js +1 -1
  113. package/lib/location-select/style/less.js +1 -1
  114. package/lib/material-add/MaterialAdd.d.ts +1 -1
  115. package/lib/material-add/index.d.ts +1 -1
  116. package/lib/quantity-input/QuantityInput.d.ts +1 -1
  117. package/lib/quantity-input/index.d.ts +2 -2
  118. package/lib/sticky/Sticky.d.ts +1 -1
  119. package/lib/sticky/index.d.ts +1 -1
  120. package/lib/vant.cjs.js +1798 -1028
  121. package/lib/vant.es.js +1798 -1028
  122. package/lib/vant.js +21938 -10365
  123. package/lib/vant.min.js +1 -1
  124. package/lib/web-types.json +1 -1
  125. package/package.json +1 -1
  126. package/skills/use-persagy-vant/SKILL.md +2 -2
  127. package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
  128. package/skills/use-persagy-vant/references/component-catalog.md +1 -1
  129. package/es/action-bar/style/index.d.ts +0 -1
  130. package/es/action-bar/style/less.d.ts +0 -1
  131. package/es/action-sheet/style/index.d.ts +0 -1
  132. package/es/action-sheet/style/less.d.ts +0 -1
  133. package/es/address-edit/style/index.d.ts +0 -1
  134. package/es/address-edit/style/less.d.ts +0 -1
  135. package/es/address-list/style/index.d.ts +0 -1
  136. package/es/address-list/style/less.d.ts +0 -1
  137. package/es/area/style/index.d.ts +0 -1
  138. package/es/area/style/less.d.ts +0 -1
  139. package/es/background/style/index.d.ts +0 -1
  140. package/es/background/style/less.d.ts +0 -1
  141. package/es/badge/style/index.d.ts +0 -1
  142. package/es/badge/style/less.d.ts +0 -1
  143. package/es/blue-mark/style/index.d.ts +0 -1
  144. package/es/blue-mark/style/less.d.ts +0 -1
  145. package/es/bottom-action-bar/style/index.d.ts +0 -1
  146. package/es/bottom-action-bar/style/less.d.ts +0 -1
  147. package/es/button/style/index.d.ts +0 -1
  148. package/es/button/style/less.d.ts +0 -1
  149. package/es/calendar/style/index.d.ts +0 -1
  150. package/es/calendar/style/less.d.ts +0 -1
  151. package/es/card/style/index.d.ts +0 -1
  152. package/es/card/style/less.d.ts +0 -1
  153. package/es/cascader/style/index.d.ts +0 -1
  154. package/es/cascader/style/less.d.ts +0 -1
  155. package/es/cell/style/index.d.ts +0 -1
  156. package/es/cell/style/less.d.ts +0 -1
  157. package/es/cell-group/style/index.d.ts +0 -1
  158. package/es/cell-group/style/less.d.ts +0 -1
  159. package/es/checkbox/style/index.d.ts +0 -1
  160. package/es/checkbox/style/less.d.ts +0 -1
  161. package/es/checkbox-group/style/index.d.ts +0 -1
  162. package/es/checkbox-group/style/less.d.ts +0 -1
  163. package/es/checkbox-panel/style/index.d.ts +0 -1
  164. package/es/checkbox-panel/style/less.d.ts +0 -1
  165. package/es/circle/style/index.d.ts +0 -1
  166. package/es/circle/style/less.d.ts +0 -1
  167. package/es/col/style/index.d.ts +0 -1
  168. package/es/col/style/less.d.ts +0 -1
  169. package/es/collapse/style/index.d.ts +0 -1
  170. package/es/collapse/style/less.d.ts +0 -1
  171. package/es/collapse-item/style/index.d.ts +0 -1
  172. package/es/collapse-item/style/less.d.ts +0 -1
  173. package/es/config-provider/style/index.d.ts +0 -1
  174. package/es/config-provider/style/less.d.ts +0 -1
  175. package/es/contact-card/style/index.d.ts +0 -1
  176. package/es/contact-card/style/less.d.ts +0 -1
  177. package/es/contact-edit/style/index.d.ts +0 -1
  178. package/es/contact-edit/style/less.d.ts +0 -1
  179. package/es/contact-list/style/index.d.ts +0 -1
  180. package/es/contact-list/style/less.d.ts +0 -1
  181. package/es/count-down/style/index.d.ts +0 -1
  182. package/es/count-down/style/less.d.ts +0 -1
  183. package/es/coupon/style/index.d.ts +0 -1
  184. package/es/coupon/style/less.d.ts +0 -1
  185. package/es/coupon-cell/style/index.d.ts +0 -1
  186. package/es/coupon-cell/style/less.d.ts +0 -1
  187. package/es/coupon-list/style/index.d.ts +0 -1
  188. package/es/coupon-list/style/less.d.ts +0 -1
  189. package/es/datetime-picker/style/index.d.ts +0 -1
  190. package/es/datetime-picker/style/less.d.ts +0 -1
  191. package/es/dialog/style/index.d.ts +0 -1
  192. package/es/dialog/style/less.d.ts +0 -1
  193. package/es/divider/style/index.d.ts +0 -1
  194. package/es/divider/style/less.d.ts +0 -1
  195. package/es/dropdown-item/style/index.d.ts +0 -1
  196. package/es/dropdown-item/style/less.d.ts +0 -1
  197. package/es/dropdown-menu/style/index.d.ts +0 -1
  198. package/es/dropdown-menu/style/less.d.ts +0 -1
  199. package/es/empty/style/index.d.ts +0 -1
  200. package/es/empty/style/less.d.ts +0 -1
  201. package/es/field/style/index.d.ts +0 -1
  202. package/es/field/style/less.d.ts +0 -1
  203. package/es/filter-tag/style/index.d.ts +0 -1
  204. package/es/filter-tag/style/less.d.ts +0 -1
  205. package/es/floor-select/style/index.d.ts +0 -1
  206. package/es/floor-select/style/less.d.ts +0 -1
  207. package/es/form/style/index.d.ts +0 -1
  208. package/es/form/style/less.d.ts +0 -1
  209. package/es/form-panel/style/index.d.ts +0 -1
  210. package/es/form-panel/style/less.d.ts +0 -1
  211. package/es/friendly-tip/style/index.d.ts +0 -1
  212. package/es/friendly-tip/style/less.d.ts +0 -1
  213. package/es/grid/style/index.d.ts +0 -1
  214. package/es/grid/style/less.d.ts +0 -1
  215. package/es/grid-item/style/index.d.ts +0 -1
  216. package/es/grid-item/style/less.d.ts +0 -1
  217. package/es/icon/style/index.d.ts +0 -1
  218. package/es/icon/style/less.d.ts +0 -1
  219. package/es/image/style/index.d.ts +0 -1
  220. package/es/image/style/less.d.ts +0 -1
  221. package/es/image-preview/style/index.d.ts +0 -1
  222. package/es/image-preview/style/less.d.ts +0 -1
  223. package/es/index-anchor/style/index.d.ts +0 -1
  224. package/es/index-anchor/style/less.d.ts +0 -1
  225. package/es/index-bar/style/index.d.ts +0 -1
  226. package/es/index-bar/style/less.d.ts +0 -1
  227. package/es/lazyload/style/index.d.ts +0 -1
  228. package/es/lazyload/style/less.d.ts +0 -1
  229. package/es/list/style/index.d.ts +0 -1
  230. package/es/list/style/less.d.ts +0 -1
  231. package/es/loading/style/index.d.ts +0 -1
  232. package/es/loading/style/less.d.ts +0 -1
  233. package/es/locale/style/index.d.ts +0 -1
  234. package/es/locale/style/less.d.ts +0 -1
  235. package/es/location-select/style/index.d.ts +0 -1
  236. package/es/location-select/style/less.d.ts +0 -1
  237. package/es/material-add/style/index.d.ts +0 -1
  238. package/es/material-add/style/less.d.ts +0 -1
  239. package/es/multi-person-select/style/index.d.ts +0 -1
  240. package/es/multi-person-select/style/less.d.ts +0 -1
  241. package/es/nav-bar/style/index.d.ts +0 -1
  242. package/es/nav-bar/style/less.d.ts +0 -1
  243. package/es/notice-bar/style/index.d.ts +0 -1
  244. package/es/notice-bar/style/less.d.ts +0 -1
  245. package/es/notify/style/index.d.ts +0 -1
  246. package/es/notify/style/less.d.ts +0 -1
  247. package/es/number-keyboard/style/index.d.ts +0 -1
  248. package/es/number-keyboard/style/less.d.ts +0 -1
  249. package/es/object-select/style/index.d.ts +0 -1
  250. package/es/object-select/style/less.d.ts +0 -1
  251. package/es/overlay/style/index.d.ts +0 -1
  252. package/es/overlay/style/less.d.ts +0 -1
  253. package/es/pagination/style/index.d.ts +0 -1
  254. package/es/pagination/style/less.d.ts +0 -1
  255. package/es/password-input/style/index.d.ts +0 -1
  256. package/es/password-input/style/less.d.ts +0 -1
  257. package/es/picker/style/index.d.ts +0 -1
  258. package/es/picker/style/less.d.ts +0 -1
  259. package/es/popover/style/index.d.ts +0 -1
  260. package/es/popover/style/less.d.ts +0 -1
  261. package/es/popup/style/index.d.ts +0 -1
  262. package/es/popup/style/less.d.ts +0 -1
  263. package/es/progress/style/index.d.ts +0 -1
  264. package/es/progress/style/less.d.ts +0 -1
  265. package/es/pull-refresh/style/index.d.ts +0 -1
  266. package/es/pull-refresh/style/less.d.ts +0 -1
  267. package/es/quantity-input/style/index.d.ts +0 -1
  268. package/es/quantity-input/style/less.d.ts +0 -1
  269. package/es/radio/style/index.d.ts +0 -1
  270. package/es/radio/style/less.d.ts +0 -1
  271. package/es/radio-group/style/index.d.ts +0 -1
  272. package/es/radio-group/style/less.d.ts +0 -1
  273. package/es/radio-panel/style/index.d.ts +0 -1
  274. package/es/radio-panel/style/less.d.ts +0 -1
  275. package/es/rate/style/index.d.ts +0 -1
  276. package/es/rate/style/less.d.ts +0 -1
  277. package/es/row/style/index.d.ts +0 -1
  278. package/es/row/style/less.d.ts +0 -1
  279. package/es/search/style/index.d.ts +0 -1
  280. package/es/search/style/less.d.ts +0 -1
  281. package/es/share-sheet/style/index.d.ts +0 -1
  282. package/es/share-sheet/style/less.d.ts +0 -1
  283. package/es/sidebar/style/index.d.ts +0 -1
  284. package/es/sidebar/style/less.d.ts +0 -1
  285. package/es/sidebar-item/style/index.d.ts +0 -1
  286. package/es/sidebar-item/style/less.d.ts +0 -1
  287. package/es/single-person-select/style/index.d.ts +0 -1
  288. package/es/single-person-select/style/less.d.ts +0 -1
  289. package/es/skeleton/style/index.d.ts +0 -1
  290. package/es/skeleton/style/less.d.ts +0 -1
  291. package/es/slider/style/index.d.ts +0 -1
  292. package/es/slider/style/less.d.ts +0 -1
  293. package/es/space/style/index.d.ts +0 -1
  294. package/es/space/style/less.d.ts +0 -1
  295. package/es/step/style/index.d.ts +0 -1
  296. package/es/step/style/less.d.ts +0 -1
  297. package/es/stepper/style/index.d.ts +0 -1
  298. package/es/stepper/style/less.d.ts +0 -1
  299. package/es/steps/style/index.d.ts +0 -1
  300. package/es/steps/style/less.d.ts +0 -1
  301. package/es/sticky/style/index.d.ts +0 -1
  302. package/es/sticky/style/less.d.ts +0 -1
  303. package/es/submit-bar/style/index.d.ts +0 -1
  304. package/es/submit-bar/style/less.d.ts +0 -1
  305. package/es/swipe/style/index.d.ts +0 -1
  306. package/es/swipe/style/less.d.ts +0 -1
  307. package/es/swipe-cell/style/index.d.ts +0 -1
  308. package/es/swipe-cell/style/less.d.ts +0 -1
  309. package/es/swipe-item/style/index.d.ts +0 -1
  310. package/es/swipe-item/style/less.d.ts +0 -1
  311. package/es/switch/style/index.d.ts +0 -1
  312. package/es/switch/style/less.d.ts +0 -1
  313. package/es/tab/style/index.d.ts +0 -1
  314. package/es/tab/style/less.d.ts +0 -1
  315. package/es/tabbar/style/index.d.ts +0 -1
  316. package/es/tabbar/style/less.d.ts +0 -1
  317. package/es/tabbar-item/style/index.d.ts +0 -1
  318. package/es/tabbar-item/style/less.d.ts +0 -1
  319. package/es/tabs/style/index.d.ts +0 -1
  320. package/es/tabs/style/less.d.ts +0 -1
  321. package/es/tag/style/index.d.ts +0 -1
  322. package/es/tag/style/less.d.ts +0 -1
  323. package/es/toast/style/index.d.ts +0 -1
  324. package/es/toast/style/less.d.ts +0 -1
  325. package/es/tree-select/style/index.d.ts +0 -1
  326. package/es/tree-select/style/less.d.ts +0 -1
  327. package/es/uploader/style/index.d.ts +0 -1
  328. package/es/uploader/style/less.d.ts +0 -1
  329. package/es/video-preview/style/index.d.ts +0 -1
  330. package/es/video-preview/style/less.d.ts +0 -1
  331. package/es/work-order-card/style/index.d.ts +0 -1
  332. package/es/work-order-card/style/less.d.ts +0 -1
  333. package/es/work-order-filter/style/index.d.ts +0 -1
  334. package/es/work-order-filter/style/less.d.ts +0 -1
  335. package/lib/action-bar/style/index.d.ts +0 -1
  336. package/lib/action-bar/style/less.d.ts +0 -1
  337. package/lib/action-bar-button/style/index.d.ts +0 -1
  338. package/lib/action-bar-button/style/less.d.ts +0 -1
  339. package/lib/action-bar-icon/style/index.d.ts +0 -1
  340. package/lib/action-bar-icon/style/less.d.ts +0 -1
  341. package/lib/action-sheet/style/index.d.ts +0 -1
  342. package/lib/action-sheet/style/less.d.ts +0 -1
  343. package/lib/address-edit/style/index.d.ts +0 -1
  344. package/lib/address-edit/style/less.d.ts +0 -1
  345. package/lib/address-list/style/index.d.ts +0 -1
  346. package/lib/address-list/style/less.d.ts +0 -1
  347. package/lib/area/style/index.d.ts +0 -1
  348. package/lib/area/style/less.d.ts +0 -1
  349. package/lib/background/style/index.d.ts +0 -1
  350. package/lib/background/style/less.d.ts +0 -1
  351. package/lib/badge/style/index.d.ts +0 -1
  352. package/lib/badge/style/less.d.ts +0 -1
  353. package/lib/blue-mark/style/index.d.ts +0 -1
  354. package/lib/blue-mark/style/less.d.ts +0 -1
  355. package/lib/bottom-action-bar/style/index.d.ts +0 -1
  356. package/lib/bottom-action-bar/style/less.d.ts +0 -1
  357. package/lib/button/style/index.d.ts +0 -1
  358. package/lib/button/style/less.d.ts +0 -1
  359. package/lib/calendar/style/index.d.ts +0 -1
  360. package/lib/calendar/style/less.d.ts +0 -1
  361. package/lib/card/style/index.d.ts +0 -1
  362. package/lib/card/style/less.d.ts +0 -1
  363. package/lib/cascader/style/index.d.ts +0 -1
  364. package/lib/cascader/style/less.d.ts +0 -1
  365. package/lib/cell/style/index.d.ts +0 -1
  366. package/lib/cell/style/less.d.ts +0 -1
  367. package/lib/cell-group/style/index.d.ts +0 -1
  368. package/lib/cell-group/style/less.d.ts +0 -1
  369. package/lib/checkbox/style/index.d.ts +0 -1
  370. package/lib/checkbox/style/less.d.ts +0 -1
  371. package/lib/checkbox-group/style/index.d.ts +0 -1
  372. package/lib/checkbox-group/style/less.d.ts +0 -1
  373. package/lib/checkbox-panel/style/index.d.ts +0 -1
  374. package/lib/checkbox-panel/style/less.d.ts +0 -1
  375. package/lib/circle/style/index.d.ts +0 -1
  376. package/lib/circle/style/less.d.ts +0 -1
  377. package/lib/col/style/index.d.ts +0 -1
  378. package/lib/col/style/less.d.ts +0 -1
  379. package/lib/collapse/style/index.d.ts +0 -1
  380. package/lib/collapse/style/less.d.ts +0 -1
  381. package/lib/collapse-item/style/index.d.ts +0 -1
  382. package/lib/collapse-item/style/less.d.ts +0 -1
  383. package/lib/config-provider/style/index.d.ts +0 -1
  384. package/lib/config-provider/style/less.d.ts +0 -1
  385. package/lib/contact-card/style/index.d.ts +0 -1
  386. package/lib/contact-card/style/less.d.ts +0 -1
  387. package/lib/contact-edit/style/index.d.ts +0 -1
  388. package/lib/contact-edit/style/less.d.ts +0 -1
  389. package/lib/contact-list/style/index.d.ts +0 -1
  390. package/lib/contact-list/style/less.d.ts +0 -1
  391. package/lib/count-down/style/index.d.ts +0 -1
  392. package/lib/count-down/style/less.d.ts +0 -1
  393. package/lib/coupon/style/index.d.ts +0 -1
  394. package/lib/coupon/style/less.d.ts +0 -1
  395. package/lib/coupon-cell/style/index.d.ts +0 -1
  396. package/lib/coupon-cell/style/less.d.ts +0 -1
  397. package/lib/coupon-list/style/index.d.ts +0 -1
  398. package/lib/coupon-list/style/less.d.ts +0 -1
  399. package/lib/datetime-picker/style/index.d.ts +0 -1
  400. package/lib/datetime-picker/style/less.d.ts +0 -1
  401. package/lib/dialog/style/index.d.ts +0 -1
  402. package/lib/dialog/style/less.d.ts +0 -1
  403. package/lib/divider/style/index.d.ts +0 -1
  404. package/lib/divider/style/less.d.ts +0 -1
  405. package/lib/dropdown-item/style/index.d.ts +0 -1
  406. package/lib/dropdown-item/style/less.d.ts +0 -1
  407. package/lib/dropdown-menu/style/index.d.ts +0 -1
  408. package/lib/dropdown-menu/style/less.d.ts +0 -1
  409. package/lib/empty/style/index.d.ts +0 -1
  410. package/lib/empty/style/less.d.ts +0 -1
  411. package/lib/field/style/index.d.ts +0 -1
  412. package/lib/field/style/less.d.ts +0 -1
  413. package/lib/filter-tag/style/index.d.ts +0 -1
  414. package/lib/filter-tag/style/less.d.ts +0 -1
  415. package/lib/floor-select/style/index.d.ts +0 -1
  416. package/lib/floor-select/style/less.d.ts +0 -1
  417. package/lib/form/style/index.d.ts +0 -1
  418. package/lib/form/style/less.d.ts +0 -1
  419. package/lib/form-panel/style/index.d.ts +0 -1
  420. package/lib/form-panel/style/less.d.ts +0 -1
  421. package/lib/friendly-tip/style/index.d.ts +0 -1
  422. package/lib/friendly-tip/style/less.d.ts +0 -1
  423. package/lib/grid/style/index.d.ts +0 -1
  424. package/lib/grid/style/less.d.ts +0 -1
  425. package/lib/grid-item/style/index.d.ts +0 -1
  426. package/lib/grid-item/style/less.d.ts +0 -1
  427. package/lib/icon/style/index.d.ts +0 -1
  428. package/lib/icon/style/less.d.ts +0 -1
  429. package/lib/image/style/index.d.ts +0 -1
  430. package/lib/image/style/less.d.ts +0 -1
  431. package/lib/image-preview/style/index.d.ts +0 -1
  432. package/lib/image-preview/style/less.d.ts +0 -1
  433. package/lib/index-anchor/style/index.d.ts +0 -1
  434. package/lib/index-anchor/style/less.d.ts +0 -1
  435. package/lib/index-bar/style/index.d.ts +0 -1
  436. package/lib/index-bar/style/less.d.ts +0 -1
  437. package/lib/lazyload/style/index.d.ts +0 -1
  438. package/lib/lazyload/style/less.d.ts +0 -1
  439. package/lib/list/style/index.d.ts +0 -1
  440. package/lib/list/style/less.d.ts +0 -1
  441. package/lib/loading/style/index.d.ts +0 -1
  442. package/lib/loading/style/less.d.ts +0 -1
  443. package/lib/locale/style/index.d.ts +0 -1
  444. package/lib/locale/style/less.d.ts +0 -1
  445. package/lib/location-select/style/index.d.ts +0 -1
  446. package/lib/location-select/style/less.d.ts +0 -1
  447. package/lib/material-add/style/index.d.ts +0 -1
  448. package/lib/material-add/style/less.d.ts +0 -1
  449. package/lib/multi-person-select/style/index.d.ts +0 -1
  450. package/lib/multi-person-select/style/less.d.ts +0 -1
  451. package/lib/nav-bar/style/index.d.ts +0 -1
  452. package/lib/nav-bar/style/less.d.ts +0 -1
  453. package/lib/notice-bar/style/index.d.ts +0 -1
  454. package/lib/notice-bar/style/less.d.ts +0 -1
  455. package/lib/notify/style/index.d.ts +0 -1
  456. package/lib/notify/style/less.d.ts +0 -1
  457. package/lib/number-keyboard/style/index.d.ts +0 -1
  458. package/lib/number-keyboard/style/less.d.ts +0 -1
  459. package/lib/object-select/style/index.d.ts +0 -1
  460. package/lib/object-select/style/less.d.ts +0 -1
  461. package/lib/overlay/style/index.d.ts +0 -1
  462. package/lib/overlay/style/less.d.ts +0 -1
  463. package/lib/pagination/style/index.d.ts +0 -1
  464. package/lib/pagination/style/less.d.ts +0 -1
  465. package/lib/password-input/style/index.d.ts +0 -1
  466. package/lib/password-input/style/less.d.ts +0 -1
  467. package/lib/picker/style/index.d.ts +0 -1
  468. package/lib/picker/style/less.d.ts +0 -1
  469. package/lib/popover/style/index.d.ts +0 -1
  470. package/lib/popover/style/less.d.ts +0 -1
  471. package/lib/popup/style/index.d.ts +0 -1
  472. package/lib/popup/style/less.d.ts +0 -1
  473. package/lib/progress/style/index.d.ts +0 -1
  474. package/lib/progress/style/less.d.ts +0 -1
  475. package/lib/pull-refresh/style/index.d.ts +0 -1
  476. package/lib/pull-refresh/style/less.d.ts +0 -1
  477. package/lib/quantity-input/style/index.d.ts +0 -1
  478. package/lib/quantity-input/style/less.d.ts +0 -1
  479. package/lib/radio/style/index.d.ts +0 -1
  480. package/lib/radio/style/less.d.ts +0 -1
  481. package/lib/radio-group/style/index.d.ts +0 -1
  482. package/lib/radio-group/style/less.d.ts +0 -1
  483. package/lib/radio-panel/style/index.d.ts +0 -1
  484. package/lib/radio-panel/style/less.d.ts +0 -1
  485. package/lib/rate/style/index.d.ts +0 -1
  486. package/lib/rate/style/less.d.ts +0 -1
  487. package/lib/row/style/index.d.ts +0 -1
  488. package/lib/row/style/less.d.ts +0 -1
  489. package/lib/search/style/index.d.ts +0 -1
  490. package/lib/search/style/less.d.ts +0 -1
  491. package/lib/share-sheet/style/index.d.ts +0 -1
  492. package/lib/share-sheet/style/less.d.ts +0 -1
  493. package/lib/sidebar/style/index.d.ts +0 -1
  494. package/lib/sidebar/style/less.d.ts +0 -1
  495. package/lib/sidebar-item/style/index.d.ts +0 -1
  496. package/lib/sidebar-item/style/less.d.ts +0 -1
  497. package/lib/single-person-select/style/index.d.ts +0 -1
  498. package/lib/single-person-select/style/less.d.ts +0 -1
  499. package/lib/skeleton/style/index.d.ts +0 -1
  500. package/lib/skeleton/style/less.d.ts +0 -1
  501. package/lib/slider/style/index.d.ts +0 -1
  502. package/lib/slider/style/less.d.ts +0 -1
  503. package/lib/space/style/index.d.ts +0 -1
  504. package/lib/space/style/less.d.ts +0 -1
  505. package/lib/step/style/index.d.ts +0 -1
  506. package/lib/step/style/less.d.ts +0 -1
  507. package/lib/stepper/style/index.d.ts +0 -1
  508. package/lib/stepper/style/less.d.ts +0 -1
  509. package/lib/steps/style/index.d.ts +0 -1
  510. package/lib/steps/style/less.d.ts +0 -1
  511. package/lib/sticky/style/index.d.ts +0 -1
  512. package/lib/sticky/style/less.d.ts +0 -1
  513. package/lib/submit-bar/style/index.d.ts +0 -1
  514. package/lib/submit-bar/style/less.d.ts +0 -1
  515. package/lib/swipe/style/index.d.ts +0 -1
  516. package/lib/swipe/style/less.d.ts +0 -1
  517. package/lib/swipe-cell/style/index.d.ts +0 -1
  518. package/lib/swipe-cell/style/less.d.ts +0 -1
  519. package/lib/swipe-item/style/index.d.ts +0 -1
  520. package/lib/swipe-item/style/less.d.ts +0 -1
  521. package/lib/switch/style/index.d.ts +0 -1
  522. package/lib/switch/style/less.d.ts +0 -1
  523. package/lib/tab/style/index.d.ts +0 -1
  524. package/lib/tab/style/less.d.ts +0 -1
  525. package/lib/tabbar/style/index.d.ts +0 -1
  526. package/lib/tabbar/style/less.d.ts +0 -1
  527. package/lib/tabbar-item/style/index.d.ts +0 -1
  528. package/lib/tabbar-item/style/less.d.ts +0 -1
  529. package/lib/tabs/style/index.d.ts +0 -1
  530. package/lib/tabs/style/less.d.ts +0 -1
  531. package/lib/tag/style/index.d.ts +0 -1
  532. package/lib/tag/style/less.d.ts +0 -1
  533. package/lib/toast/style/index.d.ts +0 -1
  534. package/lib/toast/style/less.d.ts +0 -1
  535. package/lib/tree-select/style/index.d.ts +0 -1
  536. package/lib/tree-select/style/less.d.ts +0 -1
  537. package/lib/uploader/style/index.d.ts +0 -1
  538. package/lib/uploader/style/less.d.ts +0 -1
  539. package/lib/video-preview/style/index.d.ts +0 -1
  540. package/lib/video-preview/style/less.d.ts +0 -1
  541. package/lib/work-order-card/style/index.d.ts +0 -1
  542. package/lib/work-order-card/style/less.d.ts +0 -1
  543. package/lib/work-order-filter/style/index.d.ts +0 -1
  544. package/lib/work-order-filter/style/less.d.ts +0 -1
  545. /package/es/{action-bar-button/style/index.d.ts → bot-mobile/fab-position.test.d.ts} +0 -0
  546. /package/es/{action-bar-button/style/less.d.ts → bot-mobile/voice-zone.test.d.ts} +0 -0
  547. /package/{es/action-bar-icon/style/index.d.ts → lib/bot-mobile/fab-position.test.d.ts} +0 -0
  548. /package/{es/action-bar-icon/style/less.d.ts → lib/bot-mobile/voice-zone.test.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ name: string;
3
+ basic: string[];
4
+ outline: string[];
5
+ filled: string[];
6
+ };
7
+ export default _default;
@@ -0,0 +1,268 @@
1
+ var stdin_default = {
2
+ name: "vant-icon",
3
+ basic: [
4
+ "arrow",
5
+ "arrow-left",
6
+ "arrow-up",
7
+ "arrow-down",
8
+ "success",
9
+ "cross",
10
+ "plus",
11
+ "minus",
12
+ "fail",
13
+ "circle"
14
+ ],
15
+ outline: [
16
+ "alarm-clock-minus",
17
+ "activity",
18
+ "eye-orders",
19
+ "add-box",
20
+ "add-orders",
21
+ "handshake",
22
+ "minus",
23
+ "cut",
24
+ // has corresponding filled icon
25
+ "location-o",
26
+ "like-o",
27
+ "star-o",
28
+ "phone-o",
29
+ "setting-o",
30
+ "fire-o",
31
+ "coupon-o",
32
+ "cart-o",
33
+ "shopping-cart-o",
34
+ "cart-circle-o",
35
+ "friends-o",
36
+ "comment-o",
37
+ "gem-o",
38
+ "gift-o",
39
+ "point-gift-o",
40
+ "send-gift-o",
41
+ "service-o",
42
+ "bag-o",
43
+ "todo-list-o",
44
+ "balance-list-o",
45
+ "close",
46
+ "clock-o",
47
+ "question-o",
48
+ "passed",
49
+ "add-o",
50
+ "gold-coin-o",
51
+ "info-o",
52
+ "play-circle-o",
53
+ "pause-circle-o",
54
+ "stop-circle-o",
55
+ "warning-o",
56
+ "phone-circle-o",
57
+ "music-o",
58
+ "smile-o",
59
+ "thumb-circle-o",
60
+ "comment-circle-o",
61
+ "browsing-history-o",
62
+ "underway-o",
63
+ "more-o",
64
+ "video-o",
65
+ "shop-o",
66
+ "shop-collect-o",
67
+ "share-o",
68
+ "chat-o",
69
+ "smile-comment-o",
70
+ "vip-card-o",
71
+ "award-o",
72
+ "diamond-o",
73
+ "volume-o",
74
+ "cluster-o",
75
+ "wap-home-o",
76
+ "photo-o",
77
+ "gift-card-o",
78
+ "expand-o",
79
+ "medal-o",
80
+ "good-job-o",
81
+ "manager-o",
82
+ "label-o",
83
+ "bookmark-o",
84
+ "bill-o",
85
+ "hot-o",
86
+ "hot-sale-o",
87
+ "new-o",
88
+ "new-arrival-o",
89
+ "goods-collect-o",
90
+ "eye-o",
91
+ "delete-o",
92
+ "font-o",
93
+ // without corresponding filled icon
94
+ "balance-o",
95
+ "refund-o",
96
+ "birthday-cake-o",
97
+ "user-o",
98
+ "orders-o",
99
+ "tv-o",
100
+ "envelop-o",
101
+ "flag-o",
102
+ "flower-o",
103
+ "filter-o",
104
+ "bar-chart-o",
105
+ "chart-trending-o",
106
+ "brush-o",
107
+ "bullhorn-o",
108
+ "hotel-o",
109
+ "cashier-o",
110
+ "newspaper-o",
111
+ "warn-o",
112
+ "notes-o",
113
+ "calendar-o",
114
+ "bulb-o",
115
+ "user-circle-o",
116
+ "desktop-o",
117
+ "apps-o",
118
+ "home-o",
119
+ "back-top",
120
+ "search",
121
+ "points",
122
+ "edit",
123
+ "qr",
124
+ "qr-invalid",
125
+ "closed-eye",
126
+ "down",
127
+ "scan",
128
+ "revoke",
129
+ "free-postage",
130
+ "certificate",
131
+ "logistics",
132
+ "contact",
133
+ "cash-back-record",
134
+ "after-sale",
135
+ "exchange",
136
+ "upgrade",
137
+ "ellipsis",
138
+ "description",
139
+ "records",
140
+ "sign",
141
+ "completed",
142
+ "failure",
143
+ "ecard-pay",
144
+ "peer-pay",
145
+ "balance-pay",
146
+ "credit-pay",
147
+ "debit-pay",
148
+ "cash-on-deliver",
149
+ "other-pay",
150
+ "tosend",
151
+ "pending-payment",
152
+ "paid",
153
+ "aim",
154
+ "discount",
155
+ "idcard",
156
+ "replay",
157
+ "shrink",
158
+ "shield-o",
159
+ "guide-o",
160
+ "cash-o",
161
+ "link-o",
162
+ "miniprogram-o",
163
+ "equipment"
164
+ ],
165
+ filled: [
166
+ // has corresponding outline icon
167
+ "location",
168
+ "like",
169
+ "star",
170
+ "phone",
171
+ "setting",
172
+ "fire",
173
+ "coupon",
174
+ "cart",
175
+ "shopping-cart",
176
+ "cart-circle",
177
+ "friends",
178
+ "comment",
179
+ "gem",
180
+ "gift",
181
+ "point-gift",
182
+ "send-gift",
183
+ "service",
184
+ "bag",
185
+ "todo-list",
186
+ "balance-list",
187
+ "clear",
188
+ "clock",
189
+ "question",
190
+ "checked",
191
+ "add",
192
+ "gold-coin",
193
+ "info",
194
+ "play-circle",
195
+ "pause-circle",
196
+ "stop-circle",
197
+ "warning",
198
+ "phone-circle",
199
+ "music",
200
+ "smile",
201
+ "thumb-circle",
202
+ "comment-circle",
203
+ "browsing-history",
204
+ "underway",
205
+ "more",
206
+ "video",
207
+ "shop",
208
+ "shop-collect",
209
+ "share",
210
+ "chat",
211
+ "smile-comment",
212
+ "vip-card",
213
+ "award",
214
+ "diamond",
215
+ "volume",
216
+ "cluster",
217
+ "wap-home",
218
+ "photo",
219
+ "gift-card",
220
+ "expand",
221
+ "medal",
222
+ "good-job",
223
+ "manager",
224
+ "label",
225
+ "bookmark",
226
+ "bill",
227
+ "hot",
228
+ "hot-sale",
229
+ "new",
230
+ "new-arrival",
231
+ "goods-collect",
232
+ "eye",
233
+ "delete",
234
+ "font",
235
+ // without corresponding outline icon
236
+ "wechat",
237
+ "wechat-pay",
238
+ "alipay",
239
+ "photograph",
240
+ "youzan-shield",
241
+ "umbrella-circle",
242
+ "bell",
243
+ "printer",
244
+ "map-marked",
245
+ "card",
246
+ "add-square",
247
+ "live",
248
+ "lock",
249
+ "audio",
250
+ "graphic",
251
+ "column",
252
+ "invitation",
253
+ "play",
254
+ "pause",
255
+ "stop",
256
+ "weapp-nav",
257
+ "ascending",
258
+ "descending",
259
+ "bars",
260
+ "wap-nav",
261
+ "enlarge",
262
+ "photo-fail",
263
+ "sort"
264
+ ]
265
+ };
266
+ export {
267
+ stdin_default as default
268
+ };
@@ -1,4 +1,4 @@
1
- @import 'persagy-vant-icons/src/common.less';
1
+ @import './base-iconfont.less';
2
2
  @import './latest-iconfont.less';
3
3
 
4
4
  .van-icon {
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  // Names added in the current local iconfont export. The existing icon names
27
- // keep their matching definitions from persagy-vant-icons/src/common.less.
27
+ // keep their matching definitions.
28
28
  .van-icon-word-edit:before { content: '\e66a'; }
29
29
  .van-icon-trangle-right:before { content: '\e669'; }
30
30
  .van-icon-lock-o:before { content: '\e664'; }
package/es/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./area";
8
8
  export * from "./background";
9
9
  export * from "./badge";
10
10
  export * from "./blue-mark";
11
+ export * from "./bot-mobile";
11
12
  export * from "./bottom-action-bar";
12
13
  export * from "./button";
13
14
  export * from "./calendar";
@@ -109,4 +110,4 @@ declare namespace _default {
109
110
  }
110
111
  export default _default;
111
112
  export function install(app: any): void;
112
- export const version: "0.0.26";
113
+ export const version: "0.0.27";
package/es/index.mjs CHANGED
@@ -8,6 +8,7 @@ import { Area } from "./area/index.mjs";
8
8
  import { Background } from "./background/index.mjs";
9
9
  import { Badge } from "./badge/index.mjs";
10
10
  import { BlueMark } from "./blue-mark/index.mjs";
11
+ import { BotMobile } from "./bot-mobile/index.mjs";
11
12
  import { BottomActionBar } from "./bottom-action-bar/index.mjs";
12
13
  import { Button } from "./button/index.mjs";
13
14
  import { Calendar } from "./calendar/index.mjs";
@@ -102,7 +103,7 @@ import { Uploader } from "./uploader/index.mjs";
102
103
  import { VideoPreview } from "./video-preview/index.mjs";
103
104
  import { WorkOrderCard } from "./work-order-card/index.mjs";
104
105
  import { WorkOrderFilter } from "./work-order-filter/index.mjs";
105
- const version = "0.0.26";
106
+ const version = "0.0.27";
106
107
  function install(app) {
107
108
  const components = [
108
109
  ActionBar,
@@ -115,6 +116,7 @@ function install(app) {
115
116
  Background,
116
117
  Badge,
117
118
  BlueMark,
119
+ BotMobile,
118
120
  BottomActionBar,
119
121
  Button,
120
122
  Calendar,
@@ -228,6 +230,7 @@ export * from "./area/index.mjs";
228
230
  export * from "./background/index.mjs";
229
231
  export * from "./badge/index.mjs";
230
232
  export * from "./blue-mark/index.mjs";
233
+ export * from "./bot-mobile/index.mjs";
231
234
  export * from "./bottom-action-bar/index.mjs";
232
235
  export * from "./button/index.mjs";
233
236
  export * from "./calendar/index.mjs";
@@ -17,8 +17,8 @@ import "../../radio/index.css";
17
17
  import "../../cell/index.css";
18
18
  import "../../tree-select/index.css";
19
19
  import "../../field/index.css";
20
- import "../../search/index.css";
21
20
  import "../../dialog/index.css";
21
+ import "../../search/index.css";
22
22
  import "../../sticky/index.css";
23
23
  import "../../swipe/index.css";
24
24
  import "../../swipe-item/index.css";
@@ -17,8 +17,8 @@ import "../../radio/index.less";
17
17
  import "../../cell/index.less";
18
18
  import "../../tree-select/index.less";
19
19
  import "../../field/index.less";
20
- import "../../search/index.less";
21
20
  import "../../dialog/index.less";
21
+ import "../../search/index.less";
22
22
  import "../../sticky/index.less";
23
23
  import "../../swipe/index.less";
24
24
  import "../../swipe-item/index.less";
@@ -77,8 +77,8 @@ declare const _default: import("vue").DefineComponent<{
77
77
  title: string;
78
78
  modelValue: number[];
79
79
  show: boolean;
80
- confirmText: string;
81
80
  items: MaterialAddItem[];
81
+ confirmText: string;
82
82
  categories: MaterialAddCategory[];
83
83
  }>;
84
84
  export default _default;
@@ -51,8 +51,8 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
51
51
  title: string;
52
52
  modelValue: number[];
53
53
  show: boolean;
54
- confirmText: string;
55
54
  items: import("./types").MaterialAddItem[];
55
+ confirmText: string;
56
56
  categories: import("./types").MaterialAddCategory[];
57
57
  }>>;
58
58
  export default MaterialAdd;
@@ -92,8 +92,8 @@ declare const _default: import("vue").DefineComponent<{
92
92
  expanded: boolean;
93
93
  expandText: string;
94
94
  collapseText: string;
95
- confirmText: string;
96
95
  items: QuantityInputItem[];
96
+ confirmText: string;
97
97
  clearText: string;
98
98
  }>;
99
99
  export default _default;
@@ -60,8 +60,8 @@ export declare const QuantityInput: import("../utils").WithInstall<import("vue")
60
60
  expanded: boolean;
61
61
  expandText: string;
62
62
  collapseText: string;
63
- confirmText: string;
64
63
  items: import("./QuantityInput").QuantityInputItem[];
64
+ confirmText: string;
65
65
  clearText: string;
66
66
  }>>;
67
67
  export declare const BatchMultiSelect: import("../utils").WithInstall<import("vue").DefineComponent<{
@@ -126,8 +126,8 @@ export declare const BatchMultiSelect: import("../utils").WithInstall<import("vu
126
126
  expanded: boolean;
127
127
  expandText: string;
128
128
  collapseText: string;
129
- confirmText: string;
130
129
  items: import("./QuantityInput").QuantityInputItem[];
130
+ confirmText: string;
131
131
  clearText: string;
132
132
  }>>;
133
133
  export default QuantityInput;
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
52
52
  onScroll?: ((...args: any[]) => any) | undefined;
53
53
  }, {
54
54
  position: StickyPosition;
55
- offsetTop: string | number;
56
55
  offsetBottom: string | number;
56
+ offsetTop: string | number;
57
57
  }>;
58
58
  export default _default;
@@ -33,8 +33,8 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
33
33
  onScroll?: ((...args: any[]) => any) | undefined;
34
34
  }, {
35
35
  position: import("./Sticky").StickyPosition;
36
- offsetTop: string | number;
37
36
  offsetBottom: string | number;
37
+ offsetTop: string | number;
38
38
  }>>;
39
39
  export default Sticky;
40
40
  export type { StickyProps, StickyPosition } from './Sticky';
@@ -0,0 +1,72 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import { type FabSide } from './fab-position';
3
+ export interface BotFabPositionChangePayload {
4
+ side: FabSide;
5
+ top: number;
6
+ }
7
+ export declare const botFabProps: {
8
+ icon: {
9
+ type: import("vue").PropType<string>;
10
+ default: string;
11
+ };
12
+ side: {
13
+ type: import("vue").PropType<FabSide>;
14
+ default: FabSide;
15
+ };
16
+ offsetBottom: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ draggable: {
21
+ type: BooleanConstructor;
22
+ default: true;
23
+ };
24
+ badge: (NumberConstructor | StringConstructor)[];
25
+ };
26
+ export declare type BotFabProps = ExtractPropTypes<typeof botFabProps>;
27
+ declare const _default: import("vue").DefineComponent<{
28
+ icon: {
29
+ type: import("vue").PropType<string>;
30
+ default: string;
31
+ };
32
+ side: {
33
+ type: import("vue").PropType<FabSide>;
34
+ default: FabSide;
35
+ };
36
+ offsetBottom: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ draggable: {
41
+ type: BooleanConstructor;
42
+ default: true;
43
+ };
44
+ badge: (NumberConstructor | StringConstructor)[];
45
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "positionChange")[], "click" | "positionChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
46
+ icon: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ side: {
51
+ type: import("vue").PropType<FabSide>;
52
+ default: FabSide;
53
+ };
54
+ offsetBottom: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ draggable: {
59
+ type: BooleanConstructor;
60
+ default: true;
61
+ };
62
+ badge: (NumberConstructor | StringConstructor)[];
63
+ }>> & {
64
+ onClick?: ((...args: any[]) => any) | undefined;
65
+ onPositionChange?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ icon: string;
68
+ side: FabSide;
69
+ offsetBottom: number;
70
+ draggable: boolean;
71
+ }>;
72
+ export default _default;
@@ -0,0 +1,171 @@
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
+ botFabProps: () => botFabProps,
21
+ default: () => stdin_default
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_utils = require("../utils");
26
+ var import_icon = require("../icon");
27
+ var import_fab_position = require("./fab-position");
28
+ const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-fab");
29
+ const FAB_SIZE = 56;
30
+ const botFabProps = {
31
+ icon: (0, import_utils.makeStringProp)("chat-o"),
32
+ side: (0, import_utils.makeStringProp)("right"),
33
+ offsetBottom: (0, import_utils.makeNumberProp)(80),
34
+ draggable: import_utils.truthProp,
35
+ badge: import_utils.numericProp
36
+ };
37
+ function getSafeAreaInsetBottom() {
38
+ if (typeof document === "undefined") {
39
+ return 0;
40
+ }
41
+ const probe = document.createElement("div");
42
+ probe.style.position = "fixed";
43
+ probe.style.left = "0";
44
+ probe.style.bottom = "0";
45
+ probe.style.height = "0";
46
+ probe.style.paddingBottom = "env(safe-area-inset-bottom)";
47
+ probe.style.visibility = "hidden";
48
+ probe.style.pointerEvents = "none";
49
+ document.body.appendChild(probe);
50
+ const value = parseFloat(getComputedStyle(probe).paddingBottom) || 0;
51
+ document.body.removeChild(probe);
52
+ return value;
53
+ }
54
+ var stdin_default = (0, import_vue.defineComponent)({
55
+ name,
56
+ props: botFabProps,
57
+ emits: ["click", "positionChange"],
58
+ setup(props, {
59
+ emit
60
+ }) {
61
+ const side = (0, import_vue.ref)(props.side);
62
+ const dragging = (0, import_vue.ref)(false);
63
+ const dragLeft = (0, import_vue.ref)(null);
64
+ const top = (0, import_vue.ref)(typeof window === "undefined" ? 0 : window.innerHeight - FAB_SIZE - props.offsetBottom);
65
+ let safeAreaBottom = 0;
66
+ let pressing = false;
67
+ let moved = false;
68
+ let startX = 0;
69
+ let startY = 0;
70
+ let startTop = 0;
71
+ let startLeft = 0;
72
+ let elWidth = FAB_SIZE;
73
+ let elHeight = FAB_SIZE;
74
+ (0, import_vue.onMounted)(() => {
75
+ safeAreaBottom = getSafeAreaInsetBottom();
76
+ });
77
+ const onPointerDown = (event) => {
78
+ if (event.button !== 0) {
79
+ return;
80
+ }
81
+ const el = event.currentTarget;
82
+ try {
83
+ el.setPointerCapture(event.pointerId);
84
+ } catch (e) {
85
+ }
86
+ const rect = el.getBoundingClientRect();
87
+ pressing = true;
88
+ moved = false;
89
+ startX = event.clientX;
90
+ startY = event.clientY;
91
+ startTop = rect.top;
92
+ startLeft = rect.left;
93
+ elWidth = rect.width || FAB_SIZE;
94
+ elHeight = rect.height || FAB_SIZE;
95
+ if (props.draggable) {
96
+ top.value = startTop;
97
+ dragLeft.value = startLeft;
98
+ dragging.value = true;
99
+ }
100
+ };
101
+ const onPointerMove = (event) => {
102
+ if (!pressing || !props.draggable) {
103
+ return;
104
+ }
105
+ const dx = event.clientX - startX;
106
+ const dy = event.clientY - startY;
107
+ if (!(0, import_fab_position.isTapNotDrag)(dx, dy)) {
108
+ moved = true;
109
+ }
110
+ const maxLeft = Math.max(0, window.innerWidth - elWidth);
111
+ const maxTop = Math.max(0, window.innerHeight - elHeight - safeAreaBottom);
112
+ dragLeft.value = (0, import_utils.clamp)(startLeft + dx, 0, maxLeft);
113
+ top.value = (0, import_utils.clamp)(startTop + dy, 0, maxTop);
114
+ };
115
+ const finishGesture = (dx, dy, cancelled) => {
116
+ var _a;
117
+ if (!pressing) {
118
+ return;
119
+ }
120
+ pressing = false;
121
+ if (props.draggable) {
122
+ dragging.value = false;
123
+ const currentLeft = (_a = dragLeft.value) != null ? _a : startLeft;
124
+ const nextSide = (0, import_fab_position.resolveSnapSide)(currentLeft + elWidth / 2, window.innerWidth);
125
+ side.value = nextSide;
126
+ dragLeft.value = null;
127
+ emit("positionChange", {
128
+ side: nextSide,
129
+ top: top.value
130
+ });
131
+ }
132
+ if (!cancelled && !moved && (0, import_fab_position.isTapNotDrag)(dx, dy)) {
133
+ emit("click");
134
+ }
135
+ };
136
+ const onPointerUp = (event) => {
137
+ finishGesture(event.clientX - startX, event.clientY - startY, false);
138
+ };
139
+ const onPointerCancel = () => {
140
+ finishGesture(0, 0, true);
141
+ };
142
+ const fabStyle = (0, import_vue.computed)(() => {
143
+ const style = {
144
+ top: `${top.value}px`
145
+ };
146
+ if (dragging.value && dragLeft.value !== null) {
147
+ style.left = `${dragLeft.value}px`;
148
+ } else {
149
+ style[side.value] = "0px";
150
+ }
151
+ return style;
152
+ });
153
+ return () => (0, import_vue.createVNode)("div", {
154
+ "class": bem({
155
+ dragging: dragging.value
156
+ }),
157
+ "style": fabStyle.value,
158
+ "role": "button",
159
+ "tabindex": 0,
160
+ "onPointerdown": onPointerDown,
161
+ "onPointermove": onPointerMove,
162
+ "onPointerup": onPointerUp,
163
+ "onPointercancel": onPointerCancel
164
+ }, [(0, import_vue.createVNode)(import_icon.Icon, {
165
+ "class": bem("icon"),
166
+ "name": props.icon,
167
+ "size": 24,
168
+ "badge": props.badge
169
+ }, null)]);
170
+ }
171
+ });