persagy-vant 0.0.25 → 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 (601) hide show
  1. package/README.md +9 -7
  2. package/es/background/index.css +1 -1
  3. package/es/background/index.less +10 -0
  4. package/es/background/types.d.ts +1 -1
  5. package/es/bot-mobile/BotFab.d.ts +72 -0
  6. package/es/bot-mobile/BotFab.mjs +152 -0
  7. package/es/bot-mobile/BotHistoryDrawer.d.ts +72 -0
  8. package/es/bot-mobile/BotHistoryDrawer.mjs +97 -0
  9. package/es/bot-mobile/BotMobile.d.ts +83 -0
  10. package/es/bot-mobile/BotMobile.mjs +47 -0
  11. package/es/bot-mobile/BotMobileContextTags.d.ts +52 -0
  12. package/es/bot-mobile/BotMobileContextTags.mjs +52 -0
  13. package/es/bot-mobile/BotMobilePrompts.d.ts +54 -0
  14. package/es/bot-mobile/BotMobilePrompts.mjs +49 -0
  15. package/es/bot-mobile/BotMobileSheet.d.ts +92 -0
  16. package/es/bot-mobile/BotMobileSheet.mjs +50 -0
  17. package/es/bot-mobile/BotMobileView.d.ts +82 -0
  18. package/es/bot-mobile/BotMobileView.mjs +45 -0
  19. package/es/bot-mobile/BotSessionList.d.ts +71 -0
  20. package/es/bot-mobile/BotSessionList.mjs +99 -0
  21. package/es/bot-mobile/BotVoiceBar.d.ts +80 -0
  22. package/es/bot-mobile/BotVoiceBar.mjs +138 -0
  23. package/es/bot-mobile/fab-position.d.ts +9 -0
  24. package/es/bot-mobile/fab-position.mjs +10 -0
  25. package/es/bot-mobile/fab-position.test.mjs +29 -0
  26. package/es/bot-mobile/index.css +1 -0
  27. package/es/bot-mobile/index.d.ts +469 -0
  28. package/es/bot-mobile/index.less +464 -0
  29. package/es/bot-mobile/index.mjs +50 -0
  30. package/es/bot-mobile/session-filter.d.ts +6 -0
  31. package/es/bot-mobile/session-filter.mjs +15 -0
  32. package/es/bot-mobile/session-item.d.ts +15 -0
  33. package/es/bot-mobile/session-item.mjs +73 -0
  34. package/es/bot-mobile/style/index.mjs +15 -0
  35. package/es/bot-mobile/style/less.mjs +15 -0
  36. package/es/bot-mobile/types.d.ts +23 -0
  37. package/es/bot-mobile/types.mjs +0 -0
  38. package/es/bot-mobile/var.css +0 -0
  39. package/es/bot-mobile/var.less +58 -0
  40. package/es/bot-mobile/voice-zone.d.ts +6 -0
  41. package/es/bot-mobile/voice-zone.mjs +6 -0
  42. package/es/bot-mobile/voice-zone.test.mjs +19 -0
  43. package/es/cascader/Cascader.d.ts +1 -1
  44. package/es/cascader/index.d.ts +1 -1
  45. package/es/coupon-list/style/index.mjs +1 -1
  46. package/es/coupon-list/style/less.mjs +1 -1
  47. package/es/empty/Empty.mjs +6 -274
  48. package/es/empty/assets/default.png +0 -0
  49. package/es/empty/assets/network.png +0 -0
  50. package/es/empty/index.css +1 -1
  51. package/es/empty/index.less +19 -1
  52. package/es/empty/var.less +6 -5
  53. package/es/field/index.css +1 -1
  54. package/es/field/var.less +1 -1
  55. package/es/floor-select/FloorSelect.mjs +3 -0
  56. package/es/floor-select/index.css +1 -1
  57. package/es/floor-select/index.less +4 -3
  58. package/es/icon/base-iconfont.css +1 -0
  59. package/es/icon/base-iconfont.less +1144 -0
  60. package/es/icon/config.d.ts +7 -0
  61. package/es/icon/config.mjs +268 -0
  62. package/es/icon/index.less +1 -1
  63. package/es/icon/latest-iconfont.less +1 -1
  64. package/es/index.d.ts +3 -1
  65. package/es/index.mjs +7 -1
  66. package/es/location-select/style/index.mjs +1 -1
  67. package/es/location-select/style/less.mjs +1 -1
  68. package/es/material-add/MaterialAdd.d.ts +1 -1
  69. package/es/material-add/index.d.ts +1 -1
  70. package/es/quantity-input/QuantityInput.d.ts +1 -1
  71. package/es/quantity-input/index.d.ts +2 -2
  72. package/es/radio-panel/RadioPanel.mjs +25 -13
  73. package/es/sidebar-item/SidebarItem.mjs +1 -2
  74. package/es/sticky/Sticky.d.ts +1 -1
  75. package/es/sticky/index.d.ts +1 -1
  76. package/es/work-order-card/WorkOrderCard.d.ts +145 -0
  77. package/es/work-order-card/WorkOrderCard.mjs +121 -0
  78. package/es/work-order-card/index.css +1 -0
  79. package/es/work-order-card/index.d.ts +107 -0
  80. package/es/work-order-card/index.less +34 -0
  81. package/es/work-order-card/index.mjs +8 -0
  82. package/es/work-order-card/style/index.mjs +8 -0
  83. package/es/work-order-card/style/less.mjs +8 -0
  84. package/es/work-order-card/types.d.ts +16 -0
  85. package/es/work-order-card/types.mjs +0 -0
  86. package/es/work-order-card/var.css +0 -0
  87. package/es/work-order-card/var.less +6 -0
  88. package/lib/background/index.css +1 -1
  89. package/lib/background/index.less +10 -0
  90. package/lib/background/types.d.ts +1 -1
  91. package/lib/bot-mobile/BotFab.d.ts +72 -0
  92. package/lib/bot-mobile/BotFab.js +171 -0
  93. package/lib/bot-mobile/BotHistoryDrawer.d.ts +72 -0
  94. package/lib/bot-mobile/BotHistoryDrawer.js +116 -0
  95. package/lib/bot-mobile/BotMobile.d.ts +83 -0
  96. package/lib/bot-mobile/BotMobile.js +66 -0
  97. package/lib/bot-mobile/BotMobileContextTags.d.ts +52 -0
  98. package/lib/bot-mobile/BotMobileContextTags.js +71 -0
  99. package/lib/bot-mobile/BotMobilePrompts.d.ts +54 -0
  100. package/lib/bot-mobile/BotMobilePrompts.js +68 -0
  101. package/lib/bot-mobile/BotMobileSheet.d.ts +92 -0
  102. package/lib/bot-mobile/BotMobileSheet.js +79 -0
  103. package/lib/bot-mobile/BotMobileView.d.ts +82 -0
  104. package/lib/bot-mobile/BotMobileView.js +64 -0
  105. package/lib/bot-mobile/BotSessionList.d.ts +71 -0
  106. package/lib/bot-mobile/BotSessionList.js +118 -0
  107. package/lib/bot-mobile/BotVoiceBar.d.ts +80 -0
  108. package/lib/bot-mobile/BotVoiceBar.js +157 -0
  109. package/lib/bot-mobile/fab-position.d.ts +9 -0
  110. package/lib/bot-mobile/fab-position.js +29 -0
  111. package/lib/bot-mobile/fab-position.test.js +29 -0
  112. package/lib/bot-mobile/index.css +1 -0
  113. package/lib/bot-mobile/index.d.ts +469 -0
  114. package/lib/bot-mobile/index.js +79 -0
  115. package/lib/bot-mobile/index.less +464 -0
  116. package/lib/bot-mobile/session-filter.d.ts +6 -0
  117. package/lib/bot-mobile/session-filter.js +34 -0
  118. package/lib/bot-mobile/session-item.d.ts +15 -0
  119. package/lib/bot-mobile/session-item.js +92 -0
  120. package/lib/bot-mobile/style/index.js +15 -0
  121. package/lib/bot-mobile/style/less.js +15 -0
  122. package/lib/bot-mobile/types.d.ts +23 -0
  123. package/lib/bot-mobile/types.js +15 -0
  124. package/lib/bot-mobile/var.css +0 -0
  125. package/lib/bot-mobile/var.less +58 -0
  126. package/lib/bot-mobile/voice-zone.d.ts +6 -0
  127. package/lib/bot-mobile/voice-zone.js +25 -0
  128. package/lib/bot-mobile/voice-zone.test.js +19 -0
  129. package/lib/cascader/Cascader.d.ts +1 -1
  130. package/lib/cascader/index.d.ts +1 -1
  131. package/lib/coupon-list/style/index.js +1 -1
  132. package/lib/coupon-list/style/less.js +1 -1
  133. package/lib/empty/Empty.js +6 -274
  134. package/lib/empty/assets/default.png +0 -0
  135. package/lib/empty/assets/network.png +0 -0
  136. package/lib/empty/index.css +1 -1
  137. package/lib/empty/index.less +19 -1
  138. package/lib/empty/var.less +6 -5
  139. package/lib/field/index.css +1 -1
  140. package/lib/field/var.less +1 -1
  141. package/lib/floor-select/FloorSelect.js +3 -0
  142. package/lib/floor-select/index.css +1 -1
  143. package/lib/floor-select/index.less +4 -3
  144. package/lib/icon/base-iconfont.css +1 -0
  145. package/lib/icon/base-iconfont.less +1144 -0
  146. package/lib/icon/config.d.ts +7 -0
  147. package/lib/icon/config.js +287 -0
  148. package/lib/icon/index.less +1 -1
  149. package/lib/icon/latest-iconfont.less +1 -1
  150. package/lib/index.css +1 -1
  151. package/lib/index.d.ts +3 -1
  152. package/lib/index.js +7 -1
  153. package/lib/index.less +6 -4
  154. package/lib/location-select/style/index.js +1 -1
  155. package/lib/location-select/style/less.js +1 -1
  156. package/lib/material-add/MaterialAdd.d.ts +1 -1
  157. package/lib/material-add/index.d.ts +1 -1
  158. package/lib/quantity-input/QuantityInput.d.ts +1 -1
  159. package/lib/quantity-input/index.d.ts +2 -2
  160. package/lib/radio-panel/RadioPanel.js +25 -13
  161. package/lib/sidebar-item/SidebarItem.js +1 -2
  162. package/lib/sticky/Sticky.d.ts +1 -1
  163. package/lib/sticky/index.d.ts +1 -1
  164. package/lib/vant.cjs.js +2206 -1576
  165. package/lib/vant.es.js +2206 -1576
  166. package/lib/vant.js +18781 -7348
  167. package/lib/vant.min.js +1 -1
  168. package/lib/web-types.json +1 -1
  169. package/lib/work-order-card/WorkOrderCard.d.ts +145 -0
  170. package/lib/work-order-card/WorkOrderCard.js +140 -0
  171. package/lib/work-order-card/index.css +1 -0
  172. package/lib/work-order-card/index.d.ts +107 -0
  173. package/lib/work-order-card/index.js +37 -0
  174. package/lib/work-order-card/index.less +34 -0
  175. package/lib/work-order-card/style/index.js +8 -0
  176. package/lib/work-order-card/style/less.js +8 -0
  177. package/lib/work-order-card/types.d.ts +16 -0
  178. package/lib/work-order-card/types.js +15 -0
  179. package/lib/work-order-card/var.css +0 -0
  180. package/lib/work-order-card/var.less +6 -0
  181. package/package.json +2 -2
  182. package/skills/use-persagy-vant/SKILL.md +2 -2
  183. package/skills/use-persagy-vant/references/business-component-catalog.md +6 -1
  184. package/skills/use-persagy-vant/references/component-catalog.md +8 -5
  185. package/skills/use-persagy-vant/references/page-recipes.md +11 -1
  186. package/es/action-bar/style/index.d.ts +0 -1
  187. package/es/action-bar/style/less.d.ts +0 -1
  188. package/es/action-sheet/style/index.d.ts +0 -1
  189. package/es/action-sheet/style/less.d.ts +0 -1
  190. package/es/address-edit/style/index.d.ts +0 -1
  191. package/es/address-edit/style/less.d.ts +0 -1
  192. package/es/address-list/style/index.d.ts +0 -1
  193. package/es/address-list/style/less.d.ts +0 -1
  194. package/es/area/style/index.d.ts +0 -1
  195. package/es/area/style/less.d.ts +0 -1
  196. package/es/background/style/index.d.ts +0 -1
  197. package/es/background/style/less.d.ts +0 -1
  198. package/es/badge/style/index.d.ts +0 -1
  199. package/es/badge/style/less.d.ts +0 -1
  200. package/es/blue-mark/style/index.d.ts +0 -1
  201. package/es/blue-mark/style/less.d.ts +0 -1
  202. package/es/bottom-action-bar/style/index.d.ts +0 -1
  203. package/es/bottom-action-bar/style/less.d.ts +0 -1
  204. package/es/button/style/index.d.ts +0 -1
  205. package/es/button/style/less.d.ts +0 -1
  206. package/es/calendar/style/index.d.ts +0 -1
  207. package/es/calendar/style/less.d.ts +0 -1
  208. package/es/card/style/index.d.ts +0 -1
  209. package/es/card/style/less.d.ts +0 -1
  210. package/es/cascader/style/index.d.ts +0 -1
  211. package/es/cascader/style/less.d.ts +0 -1
  212. package/es/cell/style/index.d.ts +0 -1
  213. package/es/cell/style/less.d.ts +0 -1
  214. package/es/cell-group/style/index.d.ts +0 -1
  215. package/es/cell-group/style/less.d.ts +0 -1
  216. package/es/checkbox/style/index.d.ts +0 -1
  217. package/es/checkbox/style/less.d.ts +0 -1
  218. package/es/checkbox-group/style/index.d.ts +0 -1
  219. package/es/checkbox-group/style/less.d.ts +0 -1
  220. package/es/checkbox-panel/style/index.d.ts +0 -1
  221. package/es/checkbox-panel/style/less.d.ts +0 -1
  222. package/es/circle/style/index.d.ts +0 -1
  223. package/es/circle/style/less.d.ts +0 -1
  224. package/es/col/style/index.d.ts +0 -1
  225. package/es/col/style/less.d.ts +0 -1
  226. package/es/collapse/style/index.d.ts +0 -1
  227. package/es/collapse/style/less.d.ts +0 -1
  228. package/es/collapse-item/style/index.d.ts +0 -1
  229. package/es/collapse-item/style/less.d.ts +0 -1
  230. package/es/config-provider/style/index.d.ts +0 -1
  231. package/es/config-provider/style/less.d.ts +0 -1
  232. package/es/contact-card/style/index.d.ts +0 -1
  233. package/es/contact-card/style/less.d.ts +0 -1
  234. package/es/contact-edit/style/index.d.ts +0 -1
  235. package/es/contact-edit/style/less.d.ts +0 -1
  236. package/es/contact-list/style/index.d.ts +0 -1
  237. package/es/contact-list/style/less.d.ts +0 -1
  238. package/es/count-down/style/index.d.ts +0 -1
  239. package/es/count-down/style/less.d.ts +0 -1
  240. package/es/coupon/style/index.d.ts +0 -1
  241. package/es/coupon/style/less.d.ts +0 -1
  242. package/es/coupon-cell/style/index.d.ts +0 -1
  243. package/es/coupon-cell/style/less.d.ts +0 -1
  244. package/es/coupon-list/style/index.d.ts +0 -1
  245. package/es/coupon-list/style/less.d.ts +0 -1
  246. package/es/datetime-picker/style/index.d.ts +0 -1
  247. package/es/datetime-picker/style/less.d.ts +0 -1
  248. package/es/dialog/style/index.d.ts +0 -1
  249. package/es/dialog/style/less.d.ts +0 -1
  250. package/es/divider/style/index.d.ts +0 -1
  251. package/es/divider/style/less.d.ts +0 -1
  252. package/es/dropdown-item/style/index.d.ts +0 -1
  253. package/es/dropdown-item/style/less.d.ts +0 -1
  254. package/es/dropdown-menu/style/index.d.ts +0 -1
  255. package/es/dropdown-menu/style/less.d.ts +0 -1
  256. package/es/empty/style/index.d.ts +0 -1
  257. package/es/empty/style/less.d.ts +0 -1
  258. package/es/field/style/index.d.ts +0 -1
  259. package/es/field/style/less.d.ts +0 -1
  260. package/es/filter-tag/style/index.d.ts +0 -1
  261. package/es/filter-tag/style/less.d.ts +0 -1
  262. package/es/floor-select/style/index.d.ts +0 -1
  263. package/es/floor-select/style/less.d.ts +0 -1
  264. package/es/form/style/index.d.ts +0 -1
  265. package/es/form/style/less.d.ts +0 -1
  266. package/es/form-panel/style/index.d.ts +0 -1
  267. package/es/form-panel/style/less.d.ts +0 -1
  268. package/es/friendly-tip/style/index.d.ts +0 -1
  269. package/es/friendly-tip/style/less.d.ts +0 -1
  270. package/es/grid/style/index.d.ts +0 -1
  271. package/es/grid/style/less.d.ts +0 -1
  272. package/es/grid-item/style/index.d.ts +0 -1
  273. package/es/grid-item/style/less.d.ts +0 -1
  274. package/es/icon/style/index.d.ts +0 -1
  275. package/es/icon/style/less.d.ts +0 -1
  276. package/es/image/style/index.d.ts +0 -1
  277. package/es/image/style/less.d.ts +0 -1
  278. package/es/image-preview/style/index.d.ts +0 -1
  279. package/es/image-preview/style/less.d.ts +0 -1
  280. package/es/index-anchor/style/index.d.ts +0 -1
  281. package/es/index-anchor/style/less.d.ts +0 -1
  282. package/es/index-bar/style/index.d.ts +0 -1
  283. package/es/index-bar/style/less.d.ts +0 -1
  284. package/es/lazyload/style/index.d.ts +0 -1
  285. package/es/lazyload/style/less.d.ts +0 -1
  286. package/es/list/style/index.d.ts +0 -1
  287. package/es/list/style/less.d.ts +0 -1
  288. package/es/loading/style/index.d.ts +0 -1
  289. package/es/loading/style/less.d.ts +0 -1
  290. package/es/locale/style/index.d.ts +0 -1
  291. package/es/locale/style/less.d.ts +0 -1
  292. package/es/location-select/style/index.d.ts +0 -1
  293. package/es/location-select/style/less.d.ts +0 -1
  294. package/es/material-add/style/index.d.ts +0 -1
  295. package/es/material-add/style/less.d.ts +0 -1
  296. package/es/multi-person-select/style/index.d.ts +0 -1
  297. package/es/multi-person-select/style/less.d.ts +0 -1
  298. package/es/nav-bar/style/index.d.ts +0 -1
  299. package/es/nav-bar/style/less.d.ts +0 -1
  300. package/es/notice-bar/style/index.d.ts +0 -1
  301. package/es/notice-bar/style/less.d.ts +0 -1
  302. package/es/notify/style/index.d.ts +0 -1
  303. package/es/notify/style/less.d.ts +0 -1
  304. package/es/number-keyboard/style/index.d.ts +0 -1
  305. package/es/number-keyboard/style/less.d.ts +0 -1
  306. package/es/object-select/style/index.d.ts +0 -1
  307. package/es/object-select/style/less.d.ts +0 -1
  308. package/es/overlay/style/index.d.ts +0 -1
  309. package/es/overlay/style/less.d.ts +0 -1
  310. package/es/pagination/style/index.d.ts +0 -1
  311. package/es/pagination/style/less.d.ts +0 -1
  312. package/es/password-input/style/index.d.ts +0 -1
  313. package/es/password-input/style/less.d.ts +0 -1
  314. package/es/picker/style/index.d.ts +0 -1
  315. package/es/picker/style/less.d.ts +0 -1
  316. package/es/popover/style/index.d.ts +0 -1
  317. package/es/popover/style/less.d.ts +0 -1
  318. package/es/popup/style/index.d.ts +0 -1
  319. package/es/popup/style/less.d.ts +0 -1
  320. package/es/progress/style/index.d.ts +0 -1
  321. package/es/progress/style/less.d.ts +0 -1
  322. package/es/pull-refresh/style/index.d.ts +0 -1
  323. package/es/pull-refresh/style/less.d.ts +0 -1
  324. package/es/quantity-input/style/index.d.ts +0 -1
  325. package/es/quantity-input/style/less.d.ts +0 -1
  326. package/es/radio/style/index.d.ts +0 -1
  327. package/es/radio/style/less.d.ts +0 -1
  328. package/es/radio-group/style/index.d.ts +0 -1
  329. package/es/radio-group/style/less.d.ts +0 -1
  330. package/es/radio-panel/style/index.d.ts +0 -1
  331. package/es/radio-panel/style/less.d.ts +0 -1
  332. package/es/rate/style/index.d.ts +0 -1
  333. package/es/rate/style/less.d.ts +0 -1
  334. package/es/row/style/index.d.ts +0 -1
  335. package/es/row/style/less.d.ts +0 -1
  336. package/es/search/style/index.d.ts +0 -1
  337. package/es/search/style/less.d.ts +0 -1
  338. package/es/share-sheet/style/index.d.ts +0 -1
  339. package/es/share-sheet/style/less.d.ts +0 -1
  340. package/es/sidebar/style/index.d.ts +0 -1
  341. package/es/sidebar/style/less.d.ts +0 -1
  342. package/es/sidebar-item/style/index.d.ts +0 -1
  343. package/es/sidebar-item/style/less.d.ts +0 -1
  344. package/es/single-person-select/style/index.d.ts +0 -1
  345. package/es/single-person-select/style/less.d.ts +0 -1
  346. package/es/skeleton/style/index.d.ts +0 -1
  347. package/es/skeleton/style/less.d.ts +0 -1
  348. package/es/slider/style/index.d.ts +0 -1
  349. package/es/slider/style/less.d.ts +0 -1
  350. package/es/space/style/index.d.ts +0 -1
  351. package/es/space/style/less.d.ts +0 -1
  352. package/es/step/style/index.d.ts +0 -1
  353. package/es/step/style/less.d.ts +0 -1
  354. package/es/stepper/style/index.d.ts +0 -1
  355. package/es/stepper/style/less.d.ts +0 -1
  356. package/es/steps/style/index.d.ts +0 -1
  357. package/es/steps/style/less.d.ts +0 -1
  358. package/es/sticky/style/index.d.ts +0 -1
  359. package/es/sticky/style/less.d.ts +0 -1
  360. package/es/submit-bar/style/index.d.ts +0 -1
  361. package/es/submit-bar/style/less.d.ts +0 -1
  362. package/es/swipe/style/index.d.ts +0 -1
  363. package/es/swipe/style/less.d.ts +0 -1
  364. package/es/swipe-cell/style/index.d.ts +0 -1
  365. package/es/swipe-cell/style/less.d.ts +0 -1
  366. package/es/swipe-item/style/index.d.ts +0 -1
  367. package/es/swipe-item/style/less.d.ts +0 -1
  368. package/es/switch/style/index.d.ts +0 -1
  369. package/es/switch/style/less.d.ts +0 -1
  370. package/es/tab/style/index.d.ts +0 -1
  371. package/es/tab/style/less.d.ts +0 -1
  372. package/es/tabbar/style/index.d.ts +0 -1
  373. package/es/tabbar/style/less.d.ts +0 -1
  374. package/es/tabbar-item/style/index.d.ts +0 -1
  375. package/es/tabbar-item/style/less.d.ts +0 -1
  376. package/es/tabs/style/index.d.ts +0 -1
  377. package/es/tabs/style/less.d.ts +0 -1
  378. package/es/tag/style/index.d.ts +0 -1
  379. package/es/tag/style/less.d.ts +0 -1
  380. package/es/toast/style/index.d.ts +0 -1
  381. package/es/toast/style/less.d.ts +0 -1
  382. package/es/tree-select/style/index.d.ts +0 -1
  383. package/es/tree-select/style/less.d.ts +0 -1
  384. package/es/uploader/style/index.d.ts +0 -1
  385. package/es/uploader/style/less.d.ts +0 -1
  386. package/es/video-preview/style/index.d.ts +0 -1
  387. package/es/video-preview/style/less.d.ts +0 -1
  388. package/es/work-order-filter/style/index.d.ts +0 -1
  389. package/es/work-order-filter/style/less.d.ts +0 -1
  390. package/lib/action-bar/style/index.d.ts +0 -1
  391. package/lib/action-bar/style/less.d.ts +0 -1
  392. package/lib/action-bar-button/style/index.d.ts +0 -1
  393. package/lib/action-bar-button/style/less.d.ts +0 -1
  394. package/lib/action-bar-icon/style/index.d.ts +0 -1
  395. package/lib/action-bar-icon/style/less.d.ts +0 -1
  396. package/lib/action-sheet/style/index.d.ts +0 -1
  397. package/lib/action-sheet/style/less.d.ts +0 -1
  398. package/lib/address-edit/style/index.d.ts +0 -1
  399. package/lib/address-edit/style/less.d.ts +0 -1
  400. package/lib/address-list/style/index.d.ts +0 -1
  401. package/lib/address-list/style/less.d.ts +0 -1
  402. package/lib/area/style/index.d.ts +0 -1
  403. package/lib/area/style/less.d.ts +0 -1
  404. package/lib/background/style/index.d.ts +0 -1
  405. package/lib/background/style/less.d.ts +0 -1
  406. package/lib/badge/style/index.d.ts +0 -1
  407. package/lib/badge/style/less.d.ts +0 -1
  408. package/lib/blue-mark/style/index.d.ts +0 -1
  409. package/lib/blue-mark/style/less.d.ts +0 -1
  410. package/lib/bottom-action-bar/style/index.d.ts +0 -1
  411. package/lib/bottom-action-bar/style/less.d.ts +0 -1
  412. package/lib/button/style/index.d.ts +0 -1
  413. package/lib/button/style/less.d.ts +0 -1
  414. package/lib/calendar/style/index.d.ts +0 -1
  415. package/lib/calendar/style/less.d.ts +0 -1
  416. package/lib/card/style/index.d.ts +0 -1
  417. package/lib/card/style/less.d.ts +0 -1
  418. package/lib/cascader/style/index.d.ts +0 -1
  419. package/lib/cascader/style/less.d.ts +0 -1
  420. package/lib/cell/style/index.d.ts +0 -1
  421. package/lib/cell/style/less.d.ts +0 -1
  422. package/lib/cell-group/style/index.d.ts +0 -1
  423. package/lib/cell-group/style/less.d.ts +0 -1
  424. package/lib/checkbox/style/index.d.ts +0 -1
  425. package/lib/checkbox/style/less.d.ts +0 -1
  426. package/lib/checkbox-group/style/index.d.ts +0 -1
  427. package/lib/checkbox-group/style/less.d.ts +0 -1
  428. package/lib/checkbox-panel/style/index.d.ts +0 -1
  429. package/lib/checkbox-panel/style/less.d.ts +0 -1
  430. package/lib/circle/style/index.d.ts +0 -1
  431. package/lib/circle/style/less.d.ts +0 -1
  432. package/lib/col/style/index.d.ts +0 -1
  433. package/lib/col/style/less.d.ts +0 -1
  434. package/lib/collapse/style/index.d.ts +0 -1
  435. package/lib/collapse/style/less.d.ts +0 -1
  436. package/lib/collapse-item/style/index.d.ts +0 -1
  437. package/lib/collapse-item/style/less.d.ts +0 -1
  438. package/lib/config-provider/style/index.d.ts +0 -1
  439. package/lib/config-provider/style/less.d.ts +0 -1
  440. package/lib/contact-card/style/index.d.ts +0 -1
  441. package/lib/contact-card/style/less.d.ts +0 -1
  442. package/lib/contact-edit/style/index.d.ts +0 -1
  443. package/lib/contact-edit/style/less.d.ts +0 -1
  444. package/lib/contact-list/style/index.d.ts +0 -1
  445. package/lib/contact-list/style/less.d.ts +0 -1
  446. package/lib/count-down/style/index.d.ts +0 -1
  447. package/lib/count-down/style/less.d.ts +0 -1
  448. package/lib/coupon/style/index.d.ts +0 -1
  449. package/lib/coupon/style/less.d.ts +0 -1
  450. package/lib/coupon-cell/style/index.d.ts +0 -1
  451. package/lib/coupon-cell/style/less.d.ts +0 -1
  452. package/lib/coupon-list/style/index.d.ts +0 -1
  453. package/lib/coupon-list/style/less.d.ts +0 -1
  454. package/lib/datetime-picker/style/index.d.ts +0 -1
  455. package/lib/datetime-picker/style/less.d.ts +0 -1
  456. package/lib/dialog/style/index.d.ts +0 -1
  457. package/lib/dialog/style/less.d.ts +0 -1
  458. package/lib/divider/style/index.d.ts +0 -1
  459. package/lib/divider/style/less.d.ts +0 -1
  460. package/lib/dropdown-item/style/index.d.ts +0 -1
  461. package/lib/dropdown-item/style/less.d.ts +0 -1
  462. package/lib/dropdown-menu/style/index.d.ts +0 -1
  463. package/lib/dropdown-menu/style/less.d.ts +0 -1
  464. package/lib/empty/style/index.d.ts +0 -1
  465. package/lib/empty/style/less.d.ts +0 -1
  466. package/lib/field/style/index.d.ts +0 -1
  467. package/lib/field/style/less.d.ts +0 -1
  468. package/lib/filter-tag/style/index.d.ts +0 -1
  469. package/lib/filter-tag/style/less.d.ts +0 -1
  470. package/lib/floor-select/style/index.d.ts +0 -1
  471. package/lib/floor-select/style/less.d.ts +0 -1
  472. package/lib/form/style/index.d.ts +0 -1
  473. package/lib/form/style/less.d.ts +0 -1
  474. package/lib/form-panel/style/index.d.ts +0 -1
  475. package/lib/form-panel/style/less.d.ts +0 -1
  476. package/lib/friendly-tip/style/index.d.ts +0 -1
  477. package/lib/friendly-tip/style/less.d.ts +0 -1
  478. package/lib/grid/style/index.d.ts +0 -1
  479. package/lib/grid/style/less.d.ts +0 -1
  480. package/lib/grid-item/style/index.d.ts +0 -1
  481. package/lib/grid-item/style/less.d.ts +0 -1
  482. package/lib/icon/style/index.d.ts +0 -1
  483. package/lib/icon/style/less.d.ts +0 -1
  484. package/lib/image/style/index.d.ts +0 -1
  485. package/lib/image/style/less.d.ts +0 -1
  486. package/lib/image-preview/style/index.d.ts +0 -1
  487. package/lib/image-preview/style/less.d.ts +0 -1
  488. package/lib/index-anchor/style/index.d.ts +0 -1
  489. package/lib/index-anchor/style/less.d.ts +0 -1
  490. package/lib/index-bar/style/index.d.ts +0 -1
  491. package/lib/index-bar/style/less.d.ts +0 -1
  492. package/lib/lazyload/style/index.d.ts +0 -1
  493. package/lib/lazyload/style/less.d.ts +0 -1
  494. package/lib/list/style/index.d.ts +0 -1
  495. package/lib/list/style/less.d.ts +0 -1
  496. package/lib/loading/style/index.d.ts +0 -1
  497. package/lib/loading/style/less.d.ts +0 -1
  498. package/lib/locale/style/index.d.ts +0 -1
  499. package/lib/locale/style/less.d.ts +0 -1
  500. package/lib/location-select/style/index.d.ts +0 -1
  501. package/lib/location-select/style/less.d.ts +0 -1
  502. package/lib/material-add/style/index.d.ts +0 -1
  503. package/lib/material-add/style/less.d.ts +0 -1
  504. package/lib/multi-person-select/style/index.d.ts +0 -1
  505. package/lib/multi-person-select/style/less.d.ts +0 -1
  506. package/lib/nav-bar/style/index.d.ts +0 -1
  507. package/lib/nav-bar/style/less.d.ts +0 -1
  508. package/lib/notice-bar/style/index.d.ts +0 -1
  509. package/lib/notice-bar/style/less.d.ts +0 -1
  510. package/lib/notify/style/index.d.ts +0 -1
  511. package/lib/notify/style/less.d.ts +0 -1
  512. package/lib/number-keyboard/style/index.d.ts +0 -1
  513. package/lib/number-keyboard/style/less.d.ts +0 -1
  514. package/lib/object-select/style/index.d.ts +0 -1
  515. package/lib/object-select/style/less.d.ts +0 -1
  516. package/lib/overlay/style/index.d.ts +0 -1
  517. package/lib/overlay/style/less.d.ts +0 -1
  518. package/lib/pagination/style/index.d.ts +0 -1
  519. package/lib/pagination/style/less.d.ts +0 -1
  520. package/lib/password-input/style/index.d.ts +0 -1
  521. package/lib/password-input/style/less.d.ts +0 -1
  522. package/lib/picker/style/index.d.ts +0 -1
  523. package/lib/picker/style/less.d.ts +0 -1
  524. package/lib/popover/style/index.d.ts +0 -1
  525. package/lib/popover/style/less.d.ts +0 -1
  526. package/lib/popup/style/index.d.ts +0 -1
  527. package/lib/popup/style/less.d.ts +0 -1
  528. package/lib/progress/style/index.d.ts +0 -1
  529. package/lib/progress/style/less.d.ts +0 -1
  530. package/lib/pull-refresh/style/index.d.ts +0 -1
  531. package/lib/pull-refresh/style/less.d.ts +0 -1
  532. package/lib/quantity-input/style/index.d.ts +0 -1
  533. package/lib/quantity-input/style/less.d.ts +0 -1
  534. package/lib/radio/style/index.d.ts +0 -1
  535. package/lib/radio/style/less.d.ts +0 -1
  536. package/lib/radio-group/style/index.d.ts +0 -1
  537. package/lib/radio-group/style/less.d.ts +0 -1
  538. package/lib/radio-panel/style/index.d.ts +0 -1
  539. package/lib/radio-panel/style/less.d.ts +0 -1
  540. package/lib/rate/style/index.d.ts +0 -1
  541. package/lib/rate/style/less.d.ts +0 -1
  542. package/lib/row/style/index.d.ts +0 -1
  543. package/lib/row/style/less.d.ts +0 -1
  544. package/lib/search/style/index.d.ts +0 -1
  545. package/lib/search/style/less.d.ts +0 -1
  546. package/lib/share-sheet/style/index.d.ts +0 -1
  547. package/lib/share-sheet/style/less.d.ts +0 -1
  548. package/lib/sidebar/style/index.d.ts +0 -1
  549. package/lib/sidebar/style/less.d.ts +0 -1
  550. package/lib/sidebar-item/style/index.d.ts +0 -1
  551. package/lib/sidebar-item/style/less.d.ts +0 -1
  552. package/lib/single-person-select/style/index.d.ts +0 -1
  553. package/lib/single-person-select/style/less.d.ts +0 -1
  554. package/lib/skeleton/style/index.d.ts +0 -1
  555. package/lib/skeleton/style/less.d.ts +0 -1
  556. package/lib/slider/style/index.d.ts +0 -1
  557. package/lib/slider/style/less.d.ts +0 -1
  558. package/lib/space/style/index.d.ts +0 -1
  559. package/lib/space/style/less.d.ts +0 -1
  560. package/lib/step/style/index.d.ts +0 -1
  561. package/lib/step/style/less.d.ts +0 -1
  562. package/lib/stepper/style/index.d.ts +0 -1
  563. package/lib/stepper/style/less.d.ts +0 -1
  564. package/lib/steps/style/index.d.ts +0 -1
  565. package/lib/steps/style/less.d.ts +0 -1
  566. package/lib/sticky/style/index.d.ts +0 -1
  567. package/lib/sticky/style/less.d.ts +0 -1
  568. package/lib/submit-bar/style/index.d.ts +0 -1
  569. package/lib/submit-bar/style/less.d.ts +0 -1
  570. package/lib/swipe/style/index.d.ts +0 -1
  571. package/lib/swipe/style/less.d.ts +0 -1
  572. package/lib/swipe-cell/style/index.d.ts +0 -1
  573. package/lib/swipe-cell/style/less.d.ts +0 -1
  574. package/lib/swipe-item/style/index.d.ts +0 -1
  575. package/lib/swipe-item/style/less.d.ts +0 -1
  576. package/lib/switch/style/index.d.ts +0 -1
  577. package/lib/switch/style/less.d.ts +0 -1
  578. package/lib/tab/style/index.d.ts +0 -1
  579. package/lib/tab/style/less.d.ts +0 -1
  580. package/lib/tabbar/style/index.d.ts +0 -1
  581. package/lib/tabbar/style/less.d.ts +0 -1
  582. package/lib/tabbar-item/style/index.d.ts +0 -1
  583. package/lib/tabbar-item/style/less.d.ts +0 -1
  584. package/lib/tabs/style/index.d.ts +0 -1
  585. package/lib/tabs/style/less.d.ts +0 -1
  586. package/lib/tag/style/index.d.ts +0 -1
  587. package/lib/tag/style/less.d.ts +0 -1
  588. package/lib/toast/style/index.d.ts +0 -1
  589. package/lib/toast/style/less.d.ts +0 -1
  590. package/lib/tree-select/style/index.d.ts +0 -1
  591. package/lib/tree-select/style/less.d.ts +0 -1
  592. package/lib/uploader/style/index.d.ts +0 -1
  593. package/lib/uploader/style/less.d.ts +0 -1
  594. package/lib/video-preview/style/index.d.ts +0 -1
  595. package/lib/video-preview/style/less.d.ts +0 -1
  596. package/lib/work-order-filter/style/index.d.ts +0 -1
  597. package/lib/work-order-filter/style/less.d.ts +0 -1
  598. /package/es/{action-bar-button/style/index.d.ts → bot-mobile/fab-position.test.d.ts} +0 -0
  599. /package/es/{action-bar-button/style/less.d.ts → bot-mobile/voice-zone.test.d.ts} +0 -0
  600. /package/{es/action-bar-icon/style/index.d.ts → lib/bot-mobile/fab-position.test.d.ts} +0 -0
  601. /package/{es/action-bar-icon/style/less.d.ts → lib/bot-mobile/voice-zone.test.d.ts} +0 -0
@@ -0,0 +1,121 @@
1
+ import { computed, defineComponent, ref, watch, createVNode as _createVNode } from "vue";
2
+ import { Button } from "../button/index.mjs";
3
+ import { createNamespace, makeArrayProp, makeStringProp, truthProp } from "../utils/index.mjs";
4
+ import { Divider } from "../divider/index.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Tag } from "../tag/index.mjs";
7
+ const [name, bem] = createNamespace("work-order-card");
8
+ const props = {
9
+ title: makeStringProp(""),
10
+ expanded: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ defaultExpanded: Boolean,
15
+ expandable: truthProp,
16
+ tags: makeArrayProp(),
17
+ location: String,
18
+ showLocation: truthProp,
19
+ primaryInfos: makeArrayProp(),
20
+ expandedInfos: makeArrayProp(),
21
+ actions: makeArrayProp(),
22
+ overdue: String,
23
+ showOverdue: truthProp,
24
+ clickable: Boolean
25
+ };
26
+ var stdin_default = defineComponent({
27
+ name,
28
+ props,
29
+ emits: ["click", "click-action", "update:expanded"],
30
+ setup(props2, {
31
+ emit,
32
+ slots
33
+ }) {
34
+ const innerExpanded = ref(props2.defaultExpanded);
35
+ const isExpanded = computed(() => {
36
+ var _a;
37
+ return (_a = props2.expanded) != null ? _a : innerExpanded.value;
38
+ });
39
+ watch(() => props2.defaultExpanded, (value) => {
40
+ if (props2.expanded === void 0)
41
+ innerExpanded.value = value;
42
+ });
43
+ const toggle = () => {
44
+ if (!props2.expandable)
45
+ return;
46
+ const value = !isExpanded.value;
47
+ if (props2.expanded === void 0)
48
+ innerExpanded.value = value;
49
+ emit("update:expanded", value);
50
+ };
51
+ const renderInfo = (info) => _createVNode("div", {
52
+ "class": bem("info")
53
+ }, [info.icon && _createVNode(Icon, {
54
+ "name": info.icon,
55
+ "size": "12"
56
+ }, null), _createVNode("span", null, [info.text])]);
57
+ const renderAction = (action, index) => _createVNode(Button, {
58
+ "type": "text",
59
+ "disabled": action.disabled,
60
+ "style": {
61
+ "--van-button-primary-background-color": action.color || "var(--van-gray-7)"
62
+ },
63
+ "onClick": (event) => {
64
+ event.stopPropagation();
65
+ emit("click-action", action, index);
66
+ }
67
+ }, {
68
+ default: () => [action.text]
69
+ });
70
+ const hasExpandedContent = () => Boolean(slots.expanded || props2.expandedInfos.length);
71
+ return () => _createVNode("div", {
72
+ "class": [bem(), bem({
73
+ expanded: isExpanded.value,
74
+ expandable: props2.expandable,
75
+ actions: props2.actions.length > 0,
76
+ expandedContent: hasExpandedContent()
77
+ })],
78
+ "onClick": () => props2.clickable && emit("click")
79
+ }, [props2.showOverdue && props2.overdue && _createVNode("div", {
80
+ "class": bem("overdue")
81
+ }, [props2.overdue]), _createVNode("div", {
82
+ "class": bem("header"),
83
+ "onClick": toggle
84
+ }, [_createVNode("div", {
85
+ "class": bem("title")
86
+ }, [slots.title ? slots.title() : props2.title]), props2.expandable && _createVNode(Icon, {
87
+ "name": "trangle-down",
88
+ "size": "16",
89
+ "class": bem("arrow")
90
+ }, null)]), _createVNode("div", {
91
+ "class": bem("tags")
92
+ }, [slots.tags ? slots.tags() : props2.tags.map((tag) => _createVNode(Tag, {
93
+ "color": tag.color,
94
+ "textColor": tag.textColor
95
+ }, {
96
+ default: () => [tag.text]
97
+ }))]), props2.showLocation && props2.location && _createVNode("div", {
98
+ "class": bem("location")
99
+ }, [_createVNode(Icon, {
100
+ "name": "location-o",
101
+ "size": "12"
102
+ }, null), _createVNode("span", null, [props2.location])]), _createVNode("div", {
103
+ "class": bem("infos")
104
+ }, [slots.info ? slots.info() : props2.primaryInfos.map(renderInfo)]), hasExpandedContent() && _createVNode("div", {
105
+ "class": bem("expanded-wrapper", {
106
+ visible: isExpanded.value
107
+ }),
108
+ "aria-hidden": !isExpanded.value
109
+ }, [_createVNode("div", {
110
+ "class": bem("expanded-content")
111
+ }, [_createVNode(Divider, {
112
+ "dashed": true,
113
+ "hairline": true
114
+ }, null), slots.expanded ? slots.expanded() : props2.expandedInfos.map(renderInfo)])]), props2.actions.length > 0 && _createVNode("div", {
115
+ "class": bem("actions")
116
+ }, [props2.actions.map(renderAction)])]);
117
+ }
118
+ });
119
+ export {
120
+ stdin_default as default
121
+ };
@@ -0,0 +1 @@
1
+ :root{--van-work-order-card-padding: var(--van-padding-md);--van-work-order-card-radius: var(--van-border-radius-lg);--van-work-order-card-title-font-size: 15px;--van-work-order-card-title-color: var(--van-gray-8);--van-work-order-card-info-color: var(--van-gray-7)}.van-work-order-card{position:relative;overflow:hidden;background:var(--van-white);border-radius:var(--van-work-order-card-radius)}.van-work-order-card__header{display:flex;align-items:flex-start;padding:var(--van-work-order-card-padding) var(--van-work-order-card-padding) 0;cursor:pointer}.van-work-order-card__title{flex:1;min-width:0;overflow:hidden;color:var(--van-work-order-card-title-color);font-size:var(--van-work-order-card-title-font-size);font-weight:var(--van-font-weight-bold);line-height:23px;text-overflow:ellipsis;white-space:nowrap}.van-work-order-card__arrow{flex:none;margin:4px 0 0 2px;color:var(--van-gray-6);transition:transform .2s}.van-work-order-card--expanded .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card:not(.van-work-order-card--expandable) .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card--expanded .van-work-order-card__arrow{color:var(--van-black);transform:rotate(180deg)}.van-work-order-card__tags{display:flex;flex-wrap:wrap;gap:4px;padding:8px var(--van-work-order-card-padding) 0}.van-work-order-card__location{display:flex;gap:4px;align-items:center;margin:8px 10px 0;padding:0 6px;overflow:hidden;color:var(--van-gray-8);font-size:13px;line-height:21px;white-space:nowrap;background:linear-gradient(90deg,rgba(223,232,243,.7),rgba(223,232,243,0));border-radius:4px}.van-work-order-card__location span{overflow:hidden;text-overflow:ellipsis}.van-work-order-card__infos{padding:8px var(--van-work-order-card-padding) 0}.van-work-order-card:not(.van-work-order-card--actions):not(.van-work-order-card--expanded-content) .van-work-order-card__infos{padding-bottom:8px}.van-work-order-card__info{display:flex;gap:4px;align-items:center;min-height:21px;color:var(--van-work-order-card-info-color);font-size:13px;line-height:21px}.van-work-order-card__expanded-wrapper{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s cubic-bezier(.2,.8,.2,1),opacity .18s ease}.van-work-order-card__expanded-wrapper--visible{grid-template-rows:1fr;opacity:1}.van-work-order-card__expanded-content{min-height:0;padding:0 var(--van-work-order-card-padding);overflow:hidden}.van-work-order-card:not(.van-work-order-card--actions) .van-work-order-card__expanded-content{padding-bottom:8px}.van-work-order-card__expanded-content .van-divider{margin:4px 0;border-color:var(--van-gray-4)}.van-work-order-card__overdue{position:absolute;top:0;right:0;padding:2px 8px;color:var(--van-white);font-size:10px;line-height:12px;background:var(--van-danger-color);border-radius:0 2px 0 8px}.van-work-order-card__actions{position:relative;display:flex;margin-top:8px;padding-top:1px;--van-button-default-height: 38px;--van-button-default-font-size: var(--van-font-size-md);--van-button-default-line-height: 22px;--van-button-border-radius: 0;--van-button-plain-background-color: transparent}.van-work-order-card__actions:before{position:absolute;top:0;right:var(--van-work-order-card-padding);left:var(--van-work-order-card-padding);height:.5px;background:var(--van-gray-2);content:""}.van-work-order-card__actions .van-button{flex:1}.van-work-order-card__actions .van-button+.van-button{position:relative}.van-work-order-card__actions .van-button+.van-button:after{position:absolute;top:50%;left:0;width:.5px;height:12px;background:var(--van-gray-2);transform:translateY(-50%);content:""}
@@ -0,0 +1,107 @@
1
+ export declare const WorkOrderCard: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ title: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ expanded: {
7
+ type: () => boolean | undefined;
8
+ default: undefined;
9
+ };
10
+ defaultExpanded: BooleanConstructor;
11
+ expandable: {
12
+ type: BooleanConstructor;
13
+ default: true;
14
+ };
15
+ tags: {
16
+ type: import("vue").PropType<import("./types").WorkOrderCardTag[]>;
17
+ default: () => never[];
18
+ };
19
+ location: StringConstructor;
20
+ showLocation: {
21
+ type: BooleanConstructor;
22
+ default: true;
23
+ };
24
+ primaryInfos: {
25
+ type: import("vue").PropType<import("./types").WorkOrderCardInfo[]>;
26
+ default: () => never[];
27
+ };
28
+ expandedInfos: {
29
+ type: import("vue").PropType<import("./types").WorkOrderCardInfo[]>;
30
+ default: () => never[];
31
+ };
32
+ actions: {
33
+ type: import("vue").PropType<import("./types").WorkOrderCardAction[]>;
34
+ default: () => never[];
35
+ };
36
+ overdue: StringConstructor;
37
+ showOverdue: {
38
+ type: BooleanConstructor;
39
+ default: true;
40
+ };
41
+ clickable: BooleanConstructor;
42
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "click-action" | "update:expanded")[], "click" | "click-action" | "update:expanded", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ title: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ expanded: {
48
+ type: () => boolean | undefined;
49
+ default: undefined;
50
+ };
51
+ defaultExpanded: BooleanConstructor;
52
+ expandable: {
53
+ type: BooleanConstructor;
54
+ default: true;
55
+ };
56
+ tags: {
57
+ type: import("vue").PropType<import("./types").WorkOrderCardTag[]>;
58
+ default: () => never[];
59
+ };
60
+ location: StringConstructor;
61
+ showLocation: {
62
+ type: BooleanConstructor;
63
+ default: true;
64
+ };
65
+ primaryInfos: {
66
+ type: import("vue").PropType<import("./types").WorkOrderCardInfo[]>;
67
+ default: () => never[];
68
+ };
69
+ expandedInfos: {
70
+ type: import("vue").PropType<import("./types").WorkOrderCardInfo[]>;
71
+ default: () => never[];
72
+ };
73
+ actions: {
74
+ type: import("vue").PropType<import("./types").WorkOrderCardAction[]>;
75
+ default: () => never[];
76
+ };
77
+ overdue: StringConstructor;
78
+ showOverdue: {
79
+ type: BooleanConstructor;
80
+ default: true;
81
+ };
82
+ clickable: BooleanConstructor;
83
+ }>> & {
84
+ onClick?: ((...args: any[]) => any) | undefined;
85
+ "onClick-action"?: ((...args: any[]) => any) | undefined;
86
+ "onUpdate:expanded"?: ((...args: any[]) => any) | undefined;
87
+ }, {
88
+ title: string;
89
+ tags: import("./types").WorkOrderCardTag[];
90
+ clickable: boolean;
91
+ expanded: boolean | undefined;
92
+ actions: import("./types").WorkOrderCardAction[];
93
+ expandable: boolean;
94
+ defaultExpanded: boolean;
95
+ showLocation: boolean;
96
+ primaryInfos: import("./types").WorkOrderCardInfo[];
97
+ expandedInfos: import("./types").WorkOrderCardInfo[];
98
+ showOverdue: boolean;
99
+ }>>;
100
+ export default WorkOrderCard;
101
+ export type { WorkOrderCardProps } from './WorkOrderCard';
102
+ export type { WorkOrderCardAction, WorkOrderCardInfo, WorkOrderCardTag } from './types';
103
+ declare module 'vue' {
104
+ interface GlobalComponents {
105
+ VanWorkOrderCard: typeof WorkOrderCard;
106
+ }
107
+ }
@@ -0,0 +1,34 @@
1
+ @import './var.less';
2
+
3
+ :root {
4
+ --van-work-order-card-padding: @work-order-card-padding;
5
+ --van-work-order-card-radius: @work-order-card-radius;
6
+ --van-work-order-card-title-font-size: @work-order-card-title-font-size;
7
+ --van-work-order-card-title-color: @work-order-card-title-color;
8
+ --van-work-order-card-info-color: @work-order-card-info-color;
9
+ }
10
+
11
+ .van-work-order-card { position: relative; overflow: hidden; background: var(--van-white); border-radius: var(--van-work-order-card-radius); }
12
+ .van-work-order-card__header { display: flex; align-items: flex-start; padding: var(--van-work-order-card-padding) var(--van-work-order-card-padding) 0; cursor: pointer; }
13
+ .van-work-order-card__title { flex: 1; min-width: 0; overflow: hidden; color: var(--van-work-order-card-title-color); font-size: var(--van-work-order-card-title-font-size); font-weight: var(--van-font-weight-bold); line-height: 23px; text-overflow: ellipsis; white-space: nowrap; }
14
+ .van-work-order-card__arrow { flex: none; margin: 4px 0 0 2px; color: var(--van-gray-6); transition: transform .2s; }
15
+ .van-work-order-card--expanded .van-work-order-card__title { overflow: visible; white-space: normal; }
16
+ .van-work-order-card:not(.van-work-order-card--expandable) .van-work-order-card__title { overflow: visible; white-space: normal; }
17
+ .van-work-order-card--expanded .van-work-order-card__arrow { color: var(--van-black); transform: rotate(180deg); }
18
+ .van-work-order-card__tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px var(--van-work-order-card-padding) 0; }
19
+ .van-work-order-card__location { display: flex; gap: 4px; align-items: center; margin: 8px 10px 0; padding: 0 6px; overflow: hidden; color: var(--van-gray-8); font-size: 13px; line-height: 21px; white-space: nowrap; background: linear-gradient(90deg, rgb(223 232 243 / 70%), rgb(223 232 243 / 0%)); border-radius: 4px; }
20
+ .van-work-order-card__location span { overflow: hidden; text-overflow: ellipsis; }
21
+ .van-work-order-card__infos { padding: 8px var(--van-work-order-card-padding) 0; }
22
+ .van-work-order-card:not(.van-work-order-card--actions):not(.van-work-order-card--expanded-content) .van-work-order-card__infos { padding-bottom: 8px; }
23
+ .van-work-order-card__info { display: flex; gap: 4px; align-items: center; min-height: 21px; color: var(--van-work-order-card-info-color); font-size: 13px; line-height: 21px; }
24
+ .van-work-order-card__expanded-wrapper { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease; }
25
+ .van-work-order-card__expanded-wrapper--visible { grid-template-rows: 1fr; opacity: 1; }
26
+ .van-work-order-card__expanded-content { min-height: 0; padding: 0 var(--van-work-order-card-padding); overflow: hidden; }
27
+ .van-work-order-card:not(.van-work-order-card--actions) .van-work-order-card__expanded-content { padding-bottom: 8px; }
28
+ .van-work-order-card__expanded-content .van-divider { margin: 4px 0; border-color: var(--van-gray-4); }
29
+ .van-work-order-card__overdue { position: absolute; top: 0; right: 0; padding: 2px 8px; color: var(--van-white); font-size: 10px; line-height: 12px; background: var(--van-danger-color); border-radius: 0 2px 0 8px; }
30
+ .van-work-order-card__actions { position: relative; display: flex; margin-top: 8px; padding-top: 1px; --van-button-default-height: 38px; --van-button-default-font-size: var(--van-font-size-md); --van-button-default-line-height: 22px; --van-button-border-radius: 0; --van-button-plain-background-color: transparent; }
31
+ .van-work-order-card__actions::before { position: absolute; top: 0; right: var(--van-work-order-card-padding); left: var(--van-work-order-card-padding); height: .5px; background: var(--van-gray-2); content: ''; }
32
+ .van-work-order-card__actions .van-button { flex: 1; }
33
+ .van-work-order-card__actions .van-button + .van-button { position: relative; }
34
+ .van-work-order-card__actions .van-button + .van-button::after { position: absolute; top: 50%; left: 0; width: .5px; height: 12px; background: var(--van-gray-2); transform: translateY(-50%); content: ''; }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _WorkOrderCard from "./WorkOrderCard.mjs";
3
+ const WorkOrderCard = withInstall(_WorkOrderCard);
4
+ var stdin_default = WorkOrderCard;
5
+ export {
6
+ WorkOrderCard,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../../tag/index.css";
5
+ import "../../loading/index.css";
6
+ import "../../button/index.css";
7
+ import "../../divider/index.css";
8
+ import "../index.css";
@@ -0,0 +1,8 @@
1
+ import "../../style/base.less";
2
+ import "../../badge/index.less";
3
+ import "../../icon/index.less";
4
+ import "../../tag/index.less";
5
+ import "../../loading/index.less";
6
+ import "../../button/index.less";
7
+ import "../../divider/index.less";
8
+ import "../index.less";
@@ -0,0 +1,16 @@
1
+ import type { Numeric } from '../utils';
2
+ export declare type WorkOrderCardTag = {
3
+ text: string;
4
+ color?: string;
5
+ textColor?: string;
6
+ };
7
+ export declare type WorkOrderCardInfo = {
8
+ icon?: string;
9
+ text: string;
10
+ };
11
+ export declare type WorkOrderCardAction = {
12
+ text: string;
13
+ color?: string;
14
+ disabled?: boolean;
15
+ };
16
+ export declare type WorkOrderCardValue = Numeric;
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ @import '../style/var.less';
2
+ @work-order-card-padding: var(--van-padding-md);
3
+ @work-order-card-radius: var(--van-border-radius-lg);
4
+ @work-order-card-title-font-size: 15px;
5
+ @work-order-card-title-color: var(--van-gray-8);
6
+ @work-order-card-info-color: var(--van-gray-7);
@@ -1 +1 @@
1
- :root{--van-background-min-height: 100vh;--van-background-color: var(--van-gray-1);--van-background-size: 100% auto;--van-background-position: top center}.van-background{min-height:var(--van-background-min-height);background-color:var(--van-background-color);background-position:var(--van-background-position);background-repeat:no-repeat;background-size:var(--van-background-size)}.van-background--default{--van-background-image: url(./assets/background-default.png)}.van-background--light{--van-background-image: url(./assets/background-light.png)}.van-background--style-1{--van-background-image: url(./assets/background-style-1.png)}.van-background--style-2{--van-background-image: url(./assets/background-style-2.png)}.van-background--style-3{--van-background-image: url(./assets/background-style-3.png)}.van-background,.van-background[style*=--van-background-image]{background-image:var(--van-background-image)}
1
+ :root{--van-background-min-height: 100vh;--van-background-color: var(--van-gray-1);--van-background-size: 100% auto;--van-background-position: top center}.van-background{min-height:var(--van-background-min-height);background-color:var(--van-background-color);background-position:var(--van-background-position);background-repeat:no-repeat;background-size:var(--van-background-size)}.van-background--default{--van-background-image: url(./assets/background-default.png)}.van-background--light{--van-background-image: url(./assets/background-light.png)}.van-background--solid{--van-background-color: #e4effd;--van-background-image: none}.van-background--gray{--van-background-color: var(--van-grey-200);--van-background-image: none}.van-background--style-1{--van-background-image: url(./assets/background-style-1.png)}.van-background--style-2{--van-background-image: url(./assets/background-style-2.png)}.van-background--style-3{--van-background-image: url(./assets/background-style-3.png)}.van-background,.van-background[style*=--van-background-image]{background-image:var(--van-background-image)}
@@ -22,6 +22,16 @@
22
22
  --van-background-image: url('./assets/background-light.png');
23
23
  }
24
24
 
25
+ &--solid {
26
+ --van-background-color: #e4effd;
27
+ --van-background-image: none;
28
+ }
29
+
30
+ &--gray {
31
+ --van-background-color: var(--van-grey-200);
32
+ --van-background-image: none;
33
+ }
34
+
25
35
  &--style-1 {
26
36
  --van-background-image: url('./assets/background-style-1.png');
27
37
  }
@@ -1 +1 @@
1
- export declare type BackgroundTheme = 'default' | 'light' | 'style-1' | 'style-2' | 'style-3';
1
+ export declare type BackgroundTheme = 'default' | 'light' | 'gray' | 'solid' | 'style-1' | 'style-2' | 'style-3';
@@ -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
+ });