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,72 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import type { BotMobileSession } from './types';
3
+ export declare const botHistoryDrawerProps: {
4
+ show: BooleanConstructor;
5
+ sessions: {
6
+ type: import("vue").PropType<BotMobileSession[]>;
7
+ default: () => never[];
8
+ };
9
+ activeId: {
10
+ type: import("vue").PropType<string>;
11
+ default: string;
12
+ };
13
+ searchable: {
14
+ type: BooleanConstructor;
15
+ default: true;
16
+ };
17
+ title: {
18
+ type: import("vue").PropType<string>;
19
+ default: string;
20
+ };
21
+ };
22
+ export declare type BotHistoryDrawerProps = ExtractPropTypes<typeof botHistoryDrawerProps>;
23
+ declare const _default: import("vue").DefineComponent<{
24
+ show: BooleanConstructor;
25
+ sessions: {
26
+ type: import("vue").PropType<BotMobileSession[]>;
27
+ default: () => never[];
28
+ };
29
+ activeId: {
30
+ type: import("vue").PropType<string>;
31
+ default: string;
32
+ };
33
+ searchable: {
34
+ type: BooleanConstructor;
35
+ default: true;
36
+ };
37
+ title: {
38
+ type: import("vue").PropType<string>;
39
+ default: string;
40
+ };
41
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "delete" | "rename" | "create")[], "select" | "update:show" | "delete" | "rename" | "create", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
42
+ show: BooleanConstructor;
43
+ sessions: {
44
+ type: import("vue").PropType<BotMobileSession[]>;
45
+ default: () => never[];
46
+ };
47
+ activeId: {
48
+ type: import("vue").PropType<string>;
49
+ default: string;
50
+ };
51
+ searchable: {
52
+ type: BooleanConstructor;
53
+ default: true;
54
+ };
55
+ title: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ }>> & {
60
+ onSelect?: ((...args: any[]) => any) | undefined;
61
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
62
+ onDelete?: ((...args: any[]) => any) | undefined;
63
+ onRename?: ((...args: any[]) => any) | undefined;
64
+ onCreate?: ((...args: any[]) => any) | undefined;
65
+ }, {
66
+ title: string;
67
+ show: boolean;
68
+ activeId: string;
69
+ sessions: BotMobileSession[];
70
+ searchable: boolean;
71
+ }>;
72
+ export default _default;
@@ -0,0 +1,116 @@
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
+ botHistoryDrawerProps: () => botHistoryDrawerProps,
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_popup = require("../popup");
27
+ var import_icon = require("../icon");
28
+ var import_search = require("../search");
29
+ var import_session_filter = require("./session-filter");
30
+ var import_session_item = require("./session-item");
31
+ const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-history-drawer");
32
+ const botHistoryDrawerProps = {
33
+ show: Boolean,
34
+ sessions: (0, import_utils.makeArrayProp)(),
35
+ activeId: (0, import_utils.makeStringProp)(""),
36
+ searchable: import_utils.truthProp,
37
+ title: (0, import_utils.makeStringProp)("\u5386\u53F2\u4F1A\u8BDD")
38
+ };
39
+ var stdin_default = (0, import_vue.defineComponent)({
40
+ name,
41
+ props: botHistoryDrawerProps,
42
+ emits: ["update:show", "select", "rename", "delete", "create"],
43
+ setup(props, {
44
+ emit
45
+ }) {
46
+ const keyword = (0, import_vue.ref)("");
47
+ const editingId = (0, import_vue.ref)("");
48
+ const editingName = (0, import_vue.ref)("");
49
+ const close = () => emit("update:show", false);
50
+ const startRename = (session) => {
51
+ editingId.value = session.id;
52
+ editingName.value = session.name;
53
+ };
54
+ const cancelRename = () => {
55
+ editingId.value = "";
56
+ editingName.value = "";
57
+ };
58
+ const commitRename = (session) => {
59
+ if (editingId.value !== session.id) {
60
+ return;
61
+ }
62
+ const nextName = editingName.value.trim();
63
+ cancelRename();
64
+ if (nextName && nextName !== session.name) {
65
+ emit("rename", {
66
+ session,
67
+ name: nextName
68
+ });
69
+ }
70
+ };
71
+ return () => (0, import_vue.createVNode)(import_popup.Popup, {
72
+ "show": props.show,
73
+ "class": bem(),
74
+ "position": "right",
75
+ "teleport": "body",
76
+ "onUpdate:show": (show) => emit("update:show", show)
77
+ }, {
78
+ default: () => [(0, import_vue.createVNode)("div", {
79
+ "class": bem("header")
80
+ }, [(0, import_vue.createVNode)(import_icon.Icon, {
81
+ "name": "cross",
82
+ "class": bem("close"),
83
+ "onClick": close
84
+ }, null), (0, import_vue.createVNode)("div", {
85
+ "class": bem("title")
86
+ }, [props.title]), (0, import_vue.createVNode)(import_icon.Icon, {
87
+ "name": "plus",
88
+ "class": bem("create"),
89
+ "onClick": () => emit("create")
90
+ }, null)]), props.searchable && (0, import_vue.createVNode)(import_search.Search, {
91
+ "modelValue": keyword.value,
92
+ "onUpdate:modelValue": ($event) => keyword.value = $event,
93
+ "class": bem("search"),
94
+ "shape": "round",
95
+ "placeholder": "\u641C\u7D22\u4F1A\u8BDD",
96
+ "clearable": true
97
+ }, null), (0, import_vue.createVNode)("div", {
98
+ "class": bem("list")
99
+ }, [(0, import_session_filter.filterSessions)(props.sessions, keyword.value).map((session) => (0, import_session_item.renderSessionItem)({
100
+ key: session.id,
101
+ session,
102
+ active: session.id === props.activeId,
103
+ editing: editingId.value === session.id,
104
+ editingName: editingName.value,
105
+ onSelect: () => emit("select", session),
106
+ onStartRename: () => startRename(session),
107
+ onEditingNameInput: (value) => {
108
+ editingName.value = value;
109
+ },
110
+ onCommitRename: () => commitRename(session),
111
+ onCancelRename: cancelRename,
112
+ onDelete: () => emit("delete", session)
113
+ }))])]
114
+ });
115
+ }
116
+ });
@@ -0,0 +1,83 @@
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
+ export declare const botMobileProps: {
3
+ gatewayBaseUrl: {
4
+ type: PropType<string>;
5
+ default: string;
6
+ };
7
+ businessContext: PropType<Record<string, unknown>>;
8
+ references: {
9
+ type: PropType<unknown[]>;
10
+ default: () => never[];
11
+ };
12
+ title: StringConstructor;
13
+ showHeader: {
14
+ type: BooleanConstructor;
15
+ default: true;
16
+ };
17
+ showFooter: {
18
+ type: BooleanConstructor;
19
+ default: true;
20
+ };
21
+ clientId: StringConstructor;
22
+ autoConnect: {
23
+ type: BooleanConstructor;
24
+ default: true;
25
+ };
26
+ };
27
+ export declare type BotMobileProps = ExtractPropTypes<typeof botMobileProps>;
28
+ declare const _default: import("vue").DefineComponent<{
29
+ gatewayBaseUrl: {
30
+ type: PropType<string>;
31
+ default: string;
32
+ };
33
+ businessContext: PropType<Record<string, unknown>>;
34
+ references: {
35
+ type: PropType<unknown[]>;
36
+ default: () => never[];
37
+ };
38
+ title: StringConstructor;
39
+ showHeader: {
40
+ type: BooleanConstructor;
41
+ default: true;
42
+ };
43
+ showFooter: {
44
+ type: BooleanConstructor;
45
+ default: true;
46
+ };
47
+ clientId: StringConstructor;
48
+ autoConnect: {
49
+ type: BooleanConstructor;
50
+ default: true;
51
+ };
52
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
53
+ gatewayBaseUrl: {
54
+ type: PropType<string>;
55
+ default: string;
56
+ };
57
+ businessContext: PropType<Record<string, unknown>>;
58
+ references: {
59
+ type: PropType<unknown[]>;
60
+ default: () => never[];
61
+ };
62
+ title: StringConstructor;
63
+ showHeader: {
64
+ type: BooleanConstructor;
65
+ default: true;
66
+ };
67
+ showFooter: {
68
+ type: BooleanConstructor;
69
+ default: true;
70
+ };
71
+ clientId: StringConstructor;
72
+ autoConnect: {
73
+ type: BooleanConstructor;
74
+ default: true;
75
+ };
76
+ }>>, {
77
+ gatewayBaseUrl: string;
78
+ references: unknown[];
79
+ showHeader: boolean;
80
+ showFooter: boolean;
81
+ autoConnect: boolean;
82
+ }>;
83
+ export default _default;
@@ -0,0 +1,66 @@
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
+ botMobileProps: () => botMobileProps,
21
+ default: () => stdin_default
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_meos_bot_web = require("meos-bot-web");
26
+ var import_utils = require("../utils");
27
+ var import_use_expose = require("../composables/use-expose");
28
+ const [name, bem] = (0, import_utils.createNamespace)("bot-mobile");
29
+ const botMobileProps = {
30
+ gatewayBaseUrl: (0, import_utils.makeStringProp)(""),
31
+ businessContext: Object,
32
+ references: (0, import_utils.makeArrayProp)(),
33
+ title: String,
34
+ showHeader: import_utils.truthProp,
35
+ showFooter: import_utils.truthProp,
36
+ clientId: String,
37
+ autoConnect: import_utils.truthProp
38
+ };
39
+ var stdin_default = (0, import_vue.defineComponent)({
40
+ name,
41
+ inheritAttrs: false,
42
+ props: botMobileProps,
43
+ setup(props, {
44
+ attrs
45
+ }) {
46
+ const botRef = (0, import_vue.ref)();
47
+ (0, import_use_expose.useExpose)({
48
+ botRef
49
+ });
50
+ return () => (0, import_vue.createVNode)("div", {
51
+ "class": bem()
52
+ }, [(0, import_vue.createVNode)(import_meos_bot_web.BotContainerNanobot, (0, import_vue.mergeProps)({
53
+ "ref": botRef,
54
+ "gatewayBaseUrl": props.gatewayBaseUrl,
55
+ "businessContext": props.businessContext,
56
+ "references": props.references,
57
+ "title": props.title,
58
+ "showHeader": props.showHeader,
59
+ "showFooter": props.showFooter,
60
+ "clientId": props.clientId,
61
+ "autoConnect": props.autoConnect
62
+ }, attrs, {
63
+ "mode": "mobile"
64
+ }), null)]);
65
+ }
66
+ });
@@ -0,0 +1,52 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import type { BotMobileContextTag } from './types';
3
+ export declare const botMobileContextTagsProps: {
4
+ tags: {
5
+ type: import("vue").PropType<BotMobileContextTag[]>;
6
+ default: () => never[];
7
+ };
8
+ modelValue: {
9
+ type: import("vue").PropType<string[]>;
10
+ default: () => never[];
11
+ };
12
+ max: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ };
17
+ export declare type BotMobileContextTagsProps = ExtractPropTypes<typeof botMobileContextTagsProps>;
18
+ declare const _default: import("vue").DefineComponent<{
19
+ tags: {
20
+ type: import("vue").PropType<BotMobileContextTag[]>;
21
+ default: () => never[];
22
+ };
23
+ modelValue: {
24
+ type: import("vue").PropType<string[]>;
25
+ default: () => never[];
26
+ };
27
+ max: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
+ tags: {
33
+ type: import("vue").PropType<BotMobileContextTag[]>;
34
+ default: () => never[];
35
+ };
36
+ modelValue: {
37
+ type: import("vue").PropType<string[]>;
38
+ default: () => never[];
39
+ };
40
+ max: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ }>> & {
45
+ onChange?: ((...args: any[]) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
+ }, {
48
+ max: number;
49
+ tags: BotMobileContextTag[];
50
+ modelValue: string[];
51
+ }>;
52
+ export default _default;
@@ -0,0 +1,71 @@
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
+ botMobileContextTagsProps: () => botMobileContextTagsProps,
21
+ default: () => stdin_default
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_utils = require("../utils");
26
+ const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-context-tags");
27
+ const botMobileContextTagsProps = {
28
+ tags: (0, import_utils.makeArrayProp)(),
29
+ modelValue: (0, import_utils.makeArrayProp)(),
30
+ max: (0, import_utils.makeNumberProp)(0)
31
+ };
32
+ var stdin_default = (0, import_vue.defineComponent)({
33
+ name,
34
+ props: botMobileContextTagsProps,
35
+ emits: ["update:modelValue", "change"],
36
+ setup(props, {
37
+ emit
38
+ }) {
39
+ const toggle = (tag) => {
40
+ const selectedIds = props.modelValue;
41
+ const isSelected = selectedIds.includes(tag.id);
42
+ let nextIds;
43
+ if (isSelected) {
44
+ nextIds = selectedIds.filter((id) => id !== tag.id);
45
+ } else if (props.max === 1) {
46
+ nextIds = [tag.id];
47
+ } else if (props.max > 0 && selectedIds.length >= props.max) {
48
+ return;
49
+ } else {
50
+ nextIds = selectedIds.concat(tag.id);
51
+ }
52
+ emit("update:modelValue", nextIds);
53
+ emit("change", props.tags.filter((item) => nextIds.includes(item.id)));
54
+ };
55
+ const renderTag = (tag) => {
56
+ const selected = props.modelValue.includes(tag.id);
57
+ return (0, import_vue.createVNode)("div", {
58
+ "role": "button",
59
+ "tabindex": 0,
60
+ "key": tag.id,
61
+ "class": bem("item", {
62
+ selected
63
+ }),
64
+ "onClick": () => toggle(tag)
65
+ }, [tag.label]);
66
+ };
67
+ return () => (0, import_vue.createVNode)("div", {
68
+ "class": bem()
69
+ }, [props.tags.map(renderTag)]);
70
+ }
71
+ });
@@ -0,0 +1,54 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import type { BotMobilePromptItem } from './types';
3
+ export declare const botMobilePromptsProps: {
4
+ items: {
5
+ type: import("vue").PropType<BotMobilePromptItem[]>;
6
+ default: () => never[];
7
+ };
8
+ title: {
9
+ type: import("vue").PropType<string>;
10
+ default: string;
11
+ };
12
+ /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
13
+ activeId: {
14
+ type: import("vue").PropType<string>;
15
+ default: string;
16
+ };
17
+ };
18
+ export declare type BotMobilePromptsProps = ExtractPropTypes<typeof botMobilePromptsProps>;
19
+ declare const _default: import("vue").DefineComponent<{
20
+ items: {
21
+ type: import("vue").PropType<BotMobilePromptItem[]>;
22
+ default: () => never[];
23
+ };
24
+ title: {
25
+ type: import("vue").PropType<string>;
26
+ default: string;
27
+ };
28
+ /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
29
+ activeId: {
30
+ type: import("vue").PropType<string>;
31
+ default: string;
32
+ };
33
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
34
+ items: {
35
+ type: import("vue").PropType<BotMobilePromptItem[]>;
36
+ default: () => never[];
37
+ };
38
+ title: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
43
+ activeId: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ }>> & {
48
+ onSelect?: ((...args: any[]) => any) | undefined;
49
+ }, {
50
+ title: string;
51
+ items: BotMobilePromptItem[];
52
+ activeId: string;
53
+ }>;
54
+ export default _default;
@@ -0,0 +1,68 @@
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
+ botMobilePromptsProps: () => botMobilePromptsProps,
21
+ default: () => stdin_default
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_utils = require("../utils");
26
+ const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-prompts");
27
+ const botMobilePromptsProps = {
28
+ items: (0, import_utils.makeArrayProp)(),
29
+ title: (0, import_utils.makeStringProp)(""),
30
+ /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
31
+ activeId: (0, import_utils.makeStringProp)("")
32
+ };
33
+ var stdin_default = (0, import_vue.defineComponent)({
34
+ name,
35
+ props: botMobilePromptsProps,
36
+ emits: ["select"],
37
+ setup(props, {
38
+ emit
39
+ }) {
40
+ const onSelect = (item) => emit("select", item);
41
+ const renderTitle = () => {
42
+ if (!props.title) {
43
+ return;
44
+ }
45
+ return (0, import_vue.createVNode)("div", {
46
+ "class": bem("title")
47
+ }, [props.title]);
48
+ };
49
+ const renderItem = (item) => (0, import_vue.createVNode)("div", {
50
+ "role": "button",
51
+ "tabindex": 0,
52
+ "key": item.id,
53
+ "class": bem("item", {
54
+ active: !!props.activeId && props.activeId === item.id
55
+ }),
56
+ "onClick": () => onSelect(item)
57
+ }, [(0, import_vue.createVNode)("div", {
58
+ "class": bem("item-title")
59
+ }, [item.title]), (0, import_vue.createVNode)("div", {
60
+ "class": bem("item-desc")
61
+ }, [item.prompt])]);
62
+ return () => (0, import_vue.createVNode)("div", {
63
+ "class": bem()
64
+ }, [renderTitle(), (0, import_vue.createVNode)("div", {
65
+ "class": bem("list")
66
+ }, [props.items.map(renderItem)])]);
67
+ }
68
+ });
@@ -0,0 +1,92 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ export declare const botMobileSheetProps: {
3
+ gatewayBaseUrl: {
4
+ type: import("vue").PropType<string>;
5
+ default: string;
6
+ };
7
+ businessContext: import("vue").PropType<Record<string, unknown>>;
8
+ references: {
9
+ type: import("vue").PropType<unknown[]>;
10
+ default: () => never[];
11
+ };
12
+ title: StringConstructor;
13
+ showHeader: {
14
+ type: BooleanConstructor;
15
+ default: true;
16
+ };
17
+ showFooter: {
18
+ type: BooleanConstructor;
19
+ default: true;
20
+ };
21
+ clientId: StringConstructor;
22
+ autoConnect: {
23
+ type: BooleanConstructor;
24
+ default: true;
25
+ };
26
+ } & {
27
+ show: BooleanConstructor;
28
+ };
29
+ export declare type BotMobileSheetProps = ExtractPropTypes<typeof botMobileSheetProps>;
30
+ declare const _default: import("vue").DefineComponent<{
31
+ gatewayBaseUrl: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ businessContext: import("vue").PropType<Record<string, unknown>>;
36
+ references: {
37
+ type: import("vue").PropType<unknown[]>;
38
+ default: () => never[];
39
+ };
40
+ title: StringConstructor;
41
+ showHeader: {
42
+ type: BooleanConstructor;
43
+ default: true;
44
+ };
45
+ showFooter: {
46
+ type: BooleanConstructor;
47
+ default: true;
48
+ };
49
+ clientId: StringConstructor;
50
+ autoConnect: {
51
+ type: BooleanConstructor;
52
+ default: true;
53
+ };
54
+ } & {
55
+ show: BooleanConstructor;
56
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
57
+ gatewayBaseUrl: {
58
+ type: import("vue").PropType<string>;
59
+ default: string;
60
+ };
61
+ businessContext: import("vue").PropType<Record<string, unknown>>;
62
+ references: {
63
+ type: import("vue").PropType<unknown[]>;
64
+ default: () => never[];
65
+ };
66
+ title: StringConstructor;
67
+ showHeader: {
68
+ type: BooleanConstructor;
69
+ default: true;
70
+ };
71
+ showFooter: {
72
+ type: BooleanConstructor;
73
+ default: true;
74
+ };
75
+ clientId: StringConstructor;
76
+ autoConnect: {
77
+ type: BooleanConstructor;
78
+ default: true;
79
+ };
80
+ } & {
81
+ show: BooleanConstructor;
82
+ }>> & {
83
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
84
+ }, {
85
+ show: boolean;
86
+ gatewayBaseUrl: string;
87
+ references: unknown[];
88
+ showHeader: boolean;
89
+ showFooter: boolean;
90
+ autoConnect: boolean;
91
+ }>;
92
+ export default _default;