centui 0.0.0-stage → 3.1.0

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 (411) hide show
  1. package/LICENSE +433 -0
  2. package/README.md +54 -2
  3. package/dist/ActionBar-Bs5fkyFH.cjs +1 -0
  4. package/dist/ActionBar-CF1zMUMC.js +56 -0
  5. package/dist/ActivityIndicator-BOZRJBDn.cjs +1 -0
  6. package/dist/ActivityIndicator-Cp20c1E0.js +162 -0
  7. package/dist/Agree-ZswFiFNy.cjs +1 -0
  8. package/dist/Agree-lAcOo38C.js +43 -0
  9. package/dist/Amount-B2StZGGW.js +56 -0
  10. package/dist/Amount-CU7Oc4vv.cjs +1 -0
  11. package/dist/Bill-DDVs3Lu3.cjs +1 -0
  12. package/dist/Bill-qQ4LdkmR.js +58 -0
  13. package/dist/Button-Bu8liJQE.cjs +1 -0
  14. package/dist/Button-D7e-cuA1.js +60 -0
  15. package/dist/Captcha-BEF-de8-.cjs +1 -0
  16. package/dist/Captcha-CgpynYTc.js +283 -0
  17. package/dist/Cashier-CJLfQOXm.js +363 -0
  18. package/dist/Cashier-CLJngM0n.cjs +1 -0
  19. package/dist/CellItem-BHEh4Cp-.js +71 -0
  20. package/dist/CellItem-J0LkwZNL.cjs +1 -0
  21. package/dist/Chart-BINJAx7V.js +135 -0
  22. package/dist/Chart-DJ0Q1g1P.cjs +1 -0
  23. package/dist/CheckBox-D5bCJUXD.js +55 -0
  24. package/dist/CheckBox-DDeCshDK.cjs +1 -0
  25. package/dist/CheckBoxBase-BIPGJ-TD.js +43 -0
  26. package/dist/CheckBoxBase-CobK6-tL.cjs +1 -0
  27. package/dist/CheckList-BsKo_Fl3.cjs +1 -0
  28. package/dist/CheckList-ViiCo4yi.js +195 -0
  29. package/dist/Codebox-BLPrFnIv.js +188 -0
  30. package/dist/Codebox-yLkdTU7w.cjs +1 -0
  31. package/dist/DatePicker-CCU6gqG3.cjs +1 -0
  32. package/dist/DatePicker-CYvPJatt.js +175 -0
  33. package/dist/DetailItem-D6-zbZmd.js +21 -0
  34. package/dist/DetailItem-DDJXXao0.cjs +1 -0
  35. package/dist/Dialog-208_XUAL.cjs +1 -0
  36. package/dist/Dialog-Bb7Gth3j.js +148 -0
  37. package/dist/DropMenu-5TA_6bas.js +95 -0
  38. package/dist/DropMenu-D_ZMGOOi.cjs +1 -0
  39. package/dist/Field-0hdNWFNm.js +50 -0
  40. package/dist/Field-DDmHa4zB.cjs +1 -0
  41. package/dist/FieldItem-D79w330m.js +87 -0
  42. package/dist/FieldItem-UFKrl_5J.cjs +1 -0
  43. package/dist/Icon-83WWqE5z.cjs +31 -0
  44. package/dist/Icon-BgCtu0ZV.js +117 -0
  45. package/dist/ImageReader-DjshA_hh.cjs +1 -0
  46. package/dist/ImageReader-hUb5CEbV.js +122 -0
  47. package/dist/ImageViewer-BCEK4DOF.cjs +1 -0
  48. package/dist/ImageViewer-_dTRCIsV.js +68 -0
  49. package/dist/InputItem-DO5Yo_IH.cjs +1 -0
  50. package/dist/InputItem-yHsLFvKt.js +327 -0
  51. package/dist/Landscape-BsHyoM4N.cjs +1 -0
  52. package/dist/Landscape-Dd0abEy1.js +73 -0
  53. package/dist/LicensePlate-CTcAIbcb.js +201 -0
  54. package/dist/LicensePlate-CfwpVw0G.cjs +1 -0
  55. package/dist/NoticeBar-CV355FeO.cjs +1 -0
  56. package/dist/NoticeBar-G5aKL6VO.js +92 -0
  57. package/dist/NumberKeyboard-BWpxsbYt.cjs +1 -0
  58. package/dist/NumberKeyboard-B_TJXxki.js +335 -0
  59. package/dist/Picker-BOEGTBaN.cjs +1 -0
  60. package/dist/Picker-CA-JQ_OC.js +493 -0
  61. package/dist/Popup-Ca1jPi0t.cjs +1 -0
  62. package/dist/Popup-qLk-BsRS.js +116 -0
  63. package/dist/PopupTitleBar-9P4RUMC1.js +84 -0
  64. package/dist/PopupTitleBar-Bfl49eYJ.cjs +1 -0
  65. package/dist/Progress-CT-LHaQ0.cjs +1 -0
  66. package/dist/Progress-Clet0W_n.js +65 -0
  67. package/dist/Radio-B_MxJ65X.cjs +1 -0
  68. package/dist/Radio-DY-ZX0BP.js +67 -0
  69. package/dist/RadioGroup-B00aqM9e.js +84 -0
  70. package/dist/RadioGroup-B6ukqnm5.cjs +1 -0
  71. package/dist/RadioList-D-9PITpr.cjs +1 -0
  72. package/dist/RadioList-DNGsEzgf.js +125 -0
  73. package/dist/ResultPage-DUs8ok5R.js +64 -0
  74. package/dist/ResultPage-YQWDaFmz.cjs +1 -0
  75. package/dist/Roller-BznN57fL.js +91 -0
  76. package/dist/Roller-DALhjhfg.cjs +1 -0
  77. package/dist/RollerSuccess-BbMzNlkv.cjs +1 -0
  78. package/dist/RollerSuccess-CTh43Rh0.js +65 -0
  79. package/dist/Ruler-Bhf5J7hU.js +136 -0
  80. package/dist/Ruler-CEzB0oqG.cjs +1 -0
  81. package/dist/ScrollView-BNY62f7B.js +228 -0
  82. package/dist/ScrollView-BnadVBJC.cjs +1 -0
  83. package/dist/ScrollViewMore-BL1vpyMj.cjs +1 -0
  84. package/dist/ScrollViewMore-DBhoiI1X.js +54 -0
  85. package/dist/Selector-DOU8Af55.js +209 -0
  86. package/dist/Selector-DnFvOGbv.cjs +1 -0
  87. package/dist/Skeleton--SCiydNl.cjs +1 -0
  88. package/dist/Skeleton-DqA5IxL5.js +54 -0
  89. package/dist/Slider-BB2Nhpys.js +100 -0
  90. package/dist/Slider-vV7_nULf.cjs +1 -0
  91. package/dist/Stepper-BnDhL8IO.js +137 -0
  92. package/dist/Stepper-n_mc16V2.cjs +1 -0
  93. package/dist/Steps-BPQwab3T.js +157 -0
  94. package/dist/Steps-Dfpmgl8B.cjs +1 -0
  95. package/dist/SwiperItem-BY5cUoGn.cjs +1 -0
  96. package/dist/SwiperItem-BydyBdYU.js +323 -0
  97. package/dist/Switch-B1rsBY-M.js +31 -0
  98. package/dist/Switch-CghubImq.cjs +1 -0
  99. package/dist/TabPane-BCVsdptu.cjs +1 -0
  100. package/dist/TabPane-Q7oUFzmP.js +237 -0
  101. package/dist/TabPicker-BcL9assY.cjs +1 -0
  102. package/dist/TabPicker-BicPrto7.js +173 -0
  103. package/dist/Tag-C7ygxOwU.js +78 -0
  104. package/dist/Tag-CIA2npnD.cjs +1 -0
  105. package/dist/TextareaItem-Dl-PCLl-.js +168 -0
  106. package/dist/TextareaItem-Du5nl7tv.cjs +1 -0
  107. package/dist/Tip-DHPmevlv.js +165 -0
  108. package/dist/Tip-De_3tKtb.cjs +1 -0
  109. package/dist/Transition-B-baX512.js +14 -0
  110. package/dist/Transition-Bwbqr4Xr.cjs +1 -0
  111. package/dist/WaterMark-CgkuQjv3.js +103 -0
  112. package/dist/WaterMark-M81jg6T5.cjs +1 -0
  113. package/dist/action-bar.cjs +1 -0
  114. package/dist/action-bar.d.ts +1 -0
  115. package/dist/action-bar.js +1 -0
  116. package/dist/action-sheet-BjaReHkr.cjs +1 -0
  117. package/dist/action-sheet-Da8dHevy.js +121 -0
  118. package/dist/action-sheet.cjs +1 -0
  119. package/dist/action-sheet.d.ts +2 -0
  120. package/dist/action-sheet.js +1 -0
  121. package/dist/activity-indicator.cjs +1 -0
  122. package/dist/activity-indicator.d.ts +1 -0
  123. package/dist/activity-indicator.js +4 -0
  124. package/dist/agree.cjs +1 -0
  125. package/dist/agree.d.ts +1 -0
  126. package/dist/agree.js +1 -0
  127. package/dist/amount.cjs +1 -0
  128. package/dist/amount.d.ts +1 -0
  129. package/dist/amount.js +1 -0
  130. package/dist/bill.cjs +1 -0
  131. package/dist/bill.d.ts +1 -0
  132. package/dist/bill.js +1 -0
  133. package/dist/button.cjs +1 -0
  134. package/dist/button.d.ts +1 -0
  135. package/dist/button.js +1 -0
  136. package/dist/captcha.cjs +1 -0
  137. package/dist/captcha.d.ts +1 -0
  138. package/dist/captcha.js +1 -0
  139. package/dist/cashier.cjs +1 -0
  140. package/dist/cashier.d.ts +1 -0
  141. package/dist/cashier.js +1 -0
  142. package/dist/cell-item.cjs +1 -0
  143. package/dist/cell-item.d.ts +1 -0
  144. package/dist/cell-item.js +1 -0
  145. package/dist/chart.cjs +1 -0
  146. package/dist/chart.d.ts +1 -0
  147. package/dist/chart.js +1 -0
  148. package/dist/check-base.cjs +1 -0
  149. package/dist/check-base.d.ts +1 -0
  150. package/dist/check-base.js +1 -0
  151. package/dist/check.cjs +1 -0
  152. package/dist/check.d.ts +1 -0
  153. package/dist/check.js +3 -0
  154. package/dist/codebox.cjs +1 -0
  155. package/dist/codebox.d.ts +1 -0
  156. package/dist/codebox.js +1 -0
  157. package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
  158. package/dist/components/action-bar/index.d.ts +2 -0
  159. package/dist/components/action-sheet/ActionSheet.vue.d.ts +49 -0
  160. package/dist/components/action-sheet/index.d.ts +25 -0
  161. package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
  162. package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
  163. package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
  164. package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
  165. package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
  166. package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
  167. package/dist/components/activity-indicator/index.d.ts +5 -0
  168. package/dist/components/agree/Agree.vue.d.ts +35 -0
  169. package/dist/components/agree/index.d.ts +1 -0
  170. package/dist/components/amount/Amount.vue.d.ts +25 -0
  171. package/dist/components/amount/index.d.ts +1 -0
  172. package/dist/components/bill/Bill.vue.d.ts +33 -0
  173. package/dist/components/bill/index.d.ts +1 -0
  174. package/dist/components/button/Button.vue.d.ts +38 -0
  175. package/dist/components/button/index.d.ts +1 -0
  176. package/dist/components/captcha/Captcha.vue.d.ts +76 -0
  177. package/dist/components/captcha/index.d.ts +1 -0
  178. package/dist/components/cashier/Cashier.vue.d.ts +101 -0
  179. package/dist/components/cashier/CashierChannel.vue.d.ts +58 -0
  180. package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
  181. package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
  182. package/dist/components/cashier/index.d.ts +4 -0
  183. package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
  184. package/dist/components/cell-item/index.d.ts +1 -0
  185. package/dist/components/chart/Chart.vue.d.ts +30 -0
  186. package/dist/components/chart/index.d.ts +2 -0
  187. package/dist/components/check/Check.vue.d.ts +38 -0
  188. package/dist/components/check/CheckBox.vue.d.ts +31 -0
  189. package/dist/components/check/CheckGroup.vue.d.ts +27 -0
  190. package/dist/components/check/CheckList.vue.d.ts +58 -0
  191. package/dist/components/check/index.d.ts +6 -0
  192. package/dist/components/check/shared.d.ts +52 -0
  193. package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
  194. package/dist/components/check-base/index.d.ts +1 -0
  195. package/dist/components/codebox/Codebox.vue.d.ts +58 -0
  196. package/dist/components/codebox/index.d.ts +1 -0
  197. package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
  198. package/dist/components/date-picker/index.d.ts +1 -0
  199. package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
  200. package/dist/components/detail-item/index.d.ts +1 -0
  201. package/dist/components/dialog/Dialog.vue.d.ts +88 -0
  202. package/dist/components/dialog/index.d.ts +40 -0
  203. package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
  204. package/dist/components/drop-menu/index.d.ts +1 -0
  205. package/dist/components/field/Field.vue.d.ts +30 -0
  206. package/dist/components/field/index.d.ts +1 -0
  207. package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
  208. package/dist/components/field-item/index.d.ts +1 -0
  209. package/dist/components/icon/Icon.vue.d.ts +20 -0
  210. package/dist/components/icon/default-svg-list.d.ts +2 -0
  211. package/dist/components/icon/index.d.ts +1 -0
  212. package/dist/components/icon/load-sprite.d.ts +6 -0
  213. package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
  214. package/dist/components/image-reader/index.d.ts +1 -0
  215. package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
  216. package/dist/components/image-viewer/index.d.ts +1 -0
  217. package/dist/components/index.d.ts +3 -0
  218. package/dist/components/input-item/InputItem.vue.d.ts +97 -0
  219. package/dist/components/input-item/cursor.d.ts +7 -0
  220. package/dist/components/input-item/index.d.ts +1 -0
  221. package/dist/components/landscape/Landscape.vue.d.ts +38 -0
  222. package/dist/components/landscape/index.d.ts +1 -0
  223. package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
  224. package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
  225. package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
  226. package/dist/components/license-plate/index.d.ts +3 -0
  227. package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
  228. package/dist/components/notice-bar/index.d.ts +1 -0
  229. package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
  230. package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +19 -0
  231. package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
  232. package/dist/components/number-keyboard/index.d.ts +3 -0
  233. package/dist/components/picker/Picker.vue.d.ts +64 -0
  234. package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
  235. package/dist/components/picker/index.d.ts +3 -0
  236. package/dist/components/popup/Popup.vue.d.ts +50 -0
  237. package/dist/components/popup/PopupTitleBar.vue.d.ts +45 -0
  238. package/dist/components/popup/index.d.ts +2 -0
  239. package/dist/components/progress/Progress.vue.d.ts +39 -0
  240. package/dist/components/progress/index.d.ts +1 -0
  241. package/dist/components/radio/Radio.vue.d.ts +39 -0
  242. package/dist/components/radio/RadioBox.vue.d.ts +31 -0
  243. package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
  244. package/dist/components/radio/index.d.ts +3 -0
  245. package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
  246. package/dist/components/radio-list/index.d.ts +2 -0
  247. package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
  248. package/dist/components/result-page/index.d.ts +1 -0
  249. package/dist/components/ruler/Ruler.vue.d.ts +34 -0
  250. package/dist/components/ruler/index.d.ts +1 -0
  251. package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
  252. package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
  253. package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
  254. package/dist/components/scroll-view/index.d.ts +3 -0
  255. package/dist/components/selector/Selector.vue.d.ts +88 -0
  256. package/dist/components/selector/index.d.ts +2 -0
  257. package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
  258. package/dist/components/skeleton/index.d.ts +1 -0
  259. package/dist/components/slider/Slider.vue.d.ts +24 -0
  260. package/dist/components/slider/index.d.ts +1 -0
  261. package/dist/components/stepper/Stepper.vue.d.ts +32 -0
  262. package/dist/components/stepper/index.d.ts +1 -0
  263. package/dist/components/steps/Steps.vue.d.ts +56 -0
  264. package/dist/components/steps/index.d.ts +2 -0
  265. package/dist/components/swiper/Swiper.vue.d.ts +57 -0
  266. package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
  267. package/dist/components/swiper/index.d.ts +2 -0
  268. package/dist/components/switch/Switch.vue.d.ts +16 -0
  269. package/dist/components/switch/index.d.ts +1 -0
  270. package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
  271. package/dist/components/tab-picker/index.d.ts +1 -0
  272. package/dist/components/tabs/TabBar.vue.d.ts +50 -0
  273. package/dist/components/tabs/TabPane.vue.d.ts +31 -0
  274. package/dist/components/tabs/Tabs.vue.d.ts +34 -0
  275. package/dist/components/tabs/index.d.ts +3 -0
  276. package/dist/components/tag/Tag.vue.d.ts +39 -0
  277. package/dist/components/tag/index.d.ts +1 -0
  278. package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
  279. package/dist/components/textarea-item/index.d.ts +1 -0
  280. package/dist/components/tip/Tip.vue.d.ts +98 -0
  281. package/dist/components/tip/TipContent.vue.d.ts +33 -0
  282. package/dist/components/tip/index.d.ts +2 -0
  283. package/dist/components/toast/Toast.vue.d.ts +45 -0
  284. package/dist/components/toast/index.d.ts +129 -0
  285. package/dist/components/transition/Transition.vue.d.ts +13 -0
  286. package/dist/components/transition/index.d.ts +1 -0
  287. package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
  288. package/dist/components/water-mark/index.d.ts +1 -0
  289. package/dist/cursor-BIPoNm8V.js +11 -0
  290. package/dist/cursor-tQE3LcbU.cjs +1 -0
  291. package/dist/date-picker.cjs +1 -0
  292. package/dist/date-picker.d.ts +1 -0
  293. package/dist/date-picker.js +1 -0
  294. package/dist/detail-item.cjs +1 -0
  295. package/dist/detail-item.d.ts +1 -0
  296. package/dist/detail-item.js +1 -0
  297. package/dist/dialog-C38EDWGJ.cjs +1 -0
  298. package/dist/dialog-DdNA6YSe.js +91 -0
  299. package/dist/dialog.cjs +1 -0
  300. package/dist/dialog.d.ts +2 -0
  301. package/dist/dialog.js +3 -0
  302. package/dist/drop-menu.cjs +1 -0
  303. package/dist/drop-menu.d.ts +1 -0
  304. package/dist/drop-menu.js +1 -0
  305. package/dist/field-item.cjs +1 -0
  306. package/dist/field-item.d.ts +1 -0
  307. package/dist/field-item.js +1 -0
  308. package/dist/field.cjs +1 -0
  309. package/dist/field.d.ts +1 -0
  310. package/dist/field.js +1 -0
  311. package/dist/icon.cjs +1 -0
  312. package/dist/icon.d.ts +1 -0
  313. package/dist/icon.js +1 -0
  314. package/dist/image-reader.cjs +1 -0
  315. package/dist/image-reader.d.ts +1 -0
  316. package/dist/image-reader.js +1 -0
  317. package/dist/image-viewer.cjs +1 -0
  318. package/dist/image-viewer.d.ts +1 -0
  319. package/dist/image-viewer.js +1 -0
  320. package/dist/index.cjs +1 -0
  321. package/dist/index.d.ts +64 -0
  322. package/dist/index.js +61 -0
  323. package/dist/input-item.cjs +1 -0
  324. package/dist/input-item.d.ts +1 -0
  325. package/dist/input-item.js +1 -0
  326. package/dist/landscape.cjs +1 -0
  327. package/dist/landscape.d.ts +1 -0
  328. package/dist/landscape.js +1 -0
  329. package/dist/license-plate.cjs +1 -0
  330. package/dist/license-plate.d.ts +1 -0
  331. package/dist/license-plate.js +1 -0
  332. package/dist/notice-bar.cjs +1 -0
  333. package/dist/notice-bar.d.ts +1 -0
  334. package/dist/notice-bar.js +1 -0
  335. package/dist/number-keyboard.cjs +1 -0
  336. package/dist/number-keyboard.d.ts +1 -0
  337. package/dist/number-keyboard.js +1 -0
  338. package/dist/picker.cjs +1 -0
  339. package/dist/picker.d.ts +1 -0
  340. package/dist/picker.js +1 -0
  341. package/dist/popup.cjs +1 -0
  342. package/dist/popup.d.ts +1 -0
  343. package/dist/popup.js +3 -0
  344. package/dist/progress.cjs +1 -0
  345. package/dist/progress.d.ts +1 -0
  346. package/dist/progress.js +1 -0
  347. package/dist/radio-list.cjs +1 -0
  348. package/dist/radio-list.d.ts +1 -0
  349. package/dist/radio-list.js +1 -0
  350. package/dist/radio.cjs +1 -0
  351. package/dist/radio.d.ts +1 -0
  352. package/dist/radio.js +3 -0
  353. package/dist/result-page.cjs +1 -0
  354. package/dist/result-page.d.ts +1 -0
  355. package/dist/result-page.js +1 -0
  356. package/dist/ruler.cjs +1 -0
  357. package/dist/ruler.d.ts +1 -0
  358. package/dist/ruler.js +1 -0
  359. package/dist/scroll-view.cjs +1 -0
  360. package/dist/scroll-view.d.ts +1 -0
  361. package/dist/scroll-view.js +3 -0
  362. package/dist/selector.cjs +1 -0
  363. package/dist/selector.d.ts +1 -0
  364. package/dist/selector.js +1 -0
  365. package/dist/shared-C9XlLe7F.js +36 -0
  366. package/dist/shared-k9cbQbvK.cjs +1 -0
  367. package/dist/skeleton.cjs +1 -0
  368. package/dist/skeleton.d.ts +1 -0
  369. package/dist/skeleton.js +1 -0
  370. package/dist/slider.cjs +1 -0
  371. package/dist/slider.d.ts +1 -0
  372. package/dist/slider.js +1 -0
  373. package/dist/stepper.cjs +1 -0
  374. package/dist/stepper.d.ts +1 -0
  375. package/dist/stepper.js +1 -0
  376. package/dist/steps.cjs +1 -0
  377. package/dist/steps.d.ts +1 -0
  378. package/dist/steps.js +1 -0
  379. package/dist/swiper.cjs +1 -0
  380. package/dist/swiper.d.ts +1 -0
  381. package/dist/swiper.js +1 -0
  382. package/dist/switch.cjs +1 -0
  383. package/dist/switch.d.ts +1 -0
  384. package/dist/switch.js +1 -0
  385. package/dist/tab-picker.cjs +1 -0
  386. package/dist/tab-picker.d.ts +1 -0
  387. package/dist/tab-picker.js +1 -0
  388. package/dist/tabs.cjs +1 -0
  389. package/dist/tabs.d.ts +1 -0
  390. package/dist/tabs.js +1 -0
  391. package/dist/tag.cjs +1 -0
  392. package/dist/tag.d.ts +1 -0
  393. package/dist/tag.js +1 -0
  394. package/dist/textarea-item.cjs +1 -0
  395. package/dist/textarea-item.d.ts +1 -0
  396. package/dist/textarea-item.js +1 -0
  397. package/dist/tip.cjs +1 -0
  398. package/dist/tip.d.ts +1 -0
  399. package/dist/tip.js +1 -0
  400. package/dist/toast-ByIFvpMs.js +146 -0
  401. package/dist/toast-C1K2_cOo.cjs +1 -0
  402. package/dist/toast.cjs +1 -0
  403. package/dist/toast.d.ts +2 -0
  404. package/dist/toast.js +1 -0
  405. package/dist/transition.cjs +1 -0
  406. package/dist/transition.d.ts +1 -0
  407. package/dist/transition.js +1 -0
  408. package/dist/water-mark.cjs +1 -0
  409. package/dist/water-mark.d.ts +1 -0
  410. package/dist/water-mark.js +1 -0
  411. package/package.json +296 -3
@@ -0,0 +1,283 @@
1
+ import { t as e } from "./Popup-qLk-BsRS.js";
2
+ import { t } from "./PopupTitleBar-9P4RUMC1.js";
3
+ import { t as n } from "./Dialog-Bb7Gth3j.js";
4
+ import { t as r } from "./Codebox-BLPrFnIv.js";
5
+ import { Fragment as ee, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, vShow as v, watch as y, withCtx as b, withDirectives as te } from "vue";
6
+ import { t as x } from "@centui/core";
7
+ // src/components/captcha/Captcha.vue?vue&type=script&setup=true&lang.ts
8
+ var S = { class: "cu-captcha" }, C = { class: "cu-captcha-content" }, w = ["textContent"], T = { class: "cu-captcha-message" }, E = { class: "cu-captcha-footer" }, ne = ["textContent"], re = ["textContent"], ie = ["textContent", "disabled"], ae = { class: "cu-captcha-half-container" }, oe = { class: "cu-captcha-half-content" }, se = ["textContent"], D = ["textContent"], ce = ["textContent", "disabled"], O = { class: "cu-captcha-content" }, le = ["textContent"], ue = { class: "cu-captcha-message" }, de = { class: "cu-captcha-footer" }, fe = ["textContent"], pe = ["textContent"], me = ["textContent", "disabled"], k = /* @__PURE__ */ u({
9
+ name: "cu-captcha",
10
+ __name: "Captcha",
11
+ props: {
12
+ modelValue: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ title: { default: void 0 },
17
+ subtitle: { default: void 0 },
18
+ brief: { default: "" },
19
+ maxlength: { default: 4 },
20
+ mask: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ system: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ autoSend: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ autoCountdown: {
33
+ type: Boolean,
34
+ default: !0
35
+ },
36
+ count: { default: 60 },
37
+ countNormalText: { default: () => String(x("md.captcha.sendCaptcha")) },
38
+ countActiveText: { default: () => String(x("md.captcha.countdown")) },
39
+ isView: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ type: { default: "dialog" },
44
+ inputType: { default: "tel" },
45
+ disableSend: {
46
+ type: Boolean,
47
+ default: !1
48
+ }
49
+ },
50
+ emits: [
51
+ "update:modelValue",
52
+ "show",
53
+ "hide",
54
+ "submit",
55
+ "send"
56
+ ],
57
+ setup(u, { expose: x, emit: k }) {
58
+ let A = u, j = k, M = h(null), N = h(""), P = h(!1), F = h(""), I = h(!1), L = h(!1), R = h(A.countNormalText), z = h(!1), B = h(0), V = i(() => A.isView || A.type === "inline"), he = i(() => F.value !== "" && !A.disableSend);
59
+ y(() => A.modelValue, (e) => {
60
+ e && (N.value = "", L.value || (L.value = !0, Y()));
61
+ }), y(N, (e) => {
62
+ e && F.value && (F.value = "");
63
+ }), p(() => {
64
+ H() && A.type === "halfScreen" && (B.value = document.documentElement.clientHeight || document.body.clientHeight, window.addEventListener("resize", U, !1)), (A.modelValue || V.value) && (L.value = !0, Y());
65
+ }), f(() => {
66
+ H() && A.type === "halfScreen" && window.removeEventListener("resize", U), X &&= (clearInterval(X), null);
67
+ });
68
+ function H() {
69
+ let e = window.navigator.userAgent.toLocaleLowerCase();
70
+ return /android/.test(e);
71
+ }
72
+ function U() {
73
+ let e = document.documentElement.clientHeight || document.body.clientHeight;
74
+ B.value < e ? z.value = !1 : z.value = !0, B.value = e;
75
+ }
76
+ function W(e) {
77
+ j("update:modelValue", e);
78
+ }
79
+ function G() {
80
+ P.value = !0, M.value?.focus(), j("show");
81
+ }
82
+ function K() {
83
+ P.value = !1, M.value?.blur(), j("hide");
84
+ }
85
+ function q(e) {
86
+ j("submit", e);
87
+ }
88
+ function J() {
89
+ A.autoCountdown && Z(), j("send", Z);
90
+ }
91
+ function Y() {
92
+ A.autoSend && J();
93
+ }
94
+ let X = null;
95
+ function Z() {
96
+ if (!A.count) return;
97
+ X && clearInterval(X);
98
+ let e = Date.now(), t = A.count;
99
+ I.value = !0, R.value = A.countActiveText.replace("{$1}", String(t)), X = setInterval(() => {
100
+ t <= 1 ? Q() : (t = A.count - Math.floor((Date.now() - e) / 1e3), R.value = A.countActiveText.replace("{$1}", String(t)));
101
+ }, 1e3);
102
+ }
103
+ function Q() {
104
+ I.value = !1, R.value = A.countNormalText, X && clearInterval(X);
105
+ }
106
+ function ge(e) {
107
+ Promise.resolve().then(() => {
108
+ F.value = e;
109
+ });
110
+ }
111
+ function $() {
112
+ j("update:modelValue", !1);
113
+ }
114
+ return x({
115
+ countdown: Z,
116
+ resetcount: Q,
117
+ setError: ge,
118
+ close: $,
119
+ listenResize: U
120
+ }), (i, f) => te((m(), s("div", S, [
121
+ V.value ? (m(), s(ee, { key: 0 }, [c("div", C, [u.title ? (m(), s("h2", {
122
+ key: 0,
123
+ class: "cu-captcha-title",
124
+ textContent: _(u.title)
125
+ }, null, 8, w)) : o("", !0), c("div", T, [g(i.$slots, "default")])]), l(r, {
126
+ ref_key: "codebox",
127
+ ref: M,
128
+ modelValue: N.value,
129
+ "onUpdate:modelValue": f[0] ||= (e) => N.value = e,
130
+ maxlength: u.maxlength,
131
+ system: u.system,
132
+ mask: u.mask,
133
+ closable: !1,
134
+ "is-view": !0,
135
+ justify: !0,
136
+ autofocus: !1,
137
+ "input-type": u.inputType,
138
+ onSubmit: q
139
+ }, {
140
+ default: b(() => [c("footer", E, [F.value ? (m(), s("div", {
141
+ key: 0,
142
+ class: "cu-captcha-error",
143
+ textContent: _(F.value)
144
+ }, null, 8, ne)) : (m(), s("div", {
145
+ key: 1,
146
+ class: "cu-captcha-brief",
147
+ textContent: _(u.brief)
148
+ }, null, 8, re)), u.count ? (m(), s("button", {
149
+ key: 2,
150
+ class: "cu-captcha-btn",
151
+ textContent: _(R.value),
152
+ disabled: I.value,
153
+ onClick: J
154
+ }, null, 8, ie)) : o("", !0)])]),
155
+ _: 1
156
+ }, 8, [
157
+ "modelValue",
158
+ "maxlength",
159
+ "system",
160
+ "mask",
161
+ "input-type"
162
+ ])], 64)) : o("", !0),
163
+ u.type === "halfScreen" ? (m(), a(e, {
164
+ key: 1,
165
+ "model-value": u.modelValue,
166
+ "has-mask": !0,
167
+ position: "bottom",
168
+ "mask-closable": !1,
169
+ "onUpdate:modelValue": W,
170
+ onShow: G,
171
+ onHide: K
172
+ }, {
173
+ default: b(() => [c("div", ae, [
174
+ l(t, {
175
+ "only-close": "",
176
+ "large-radius": "",
177
+ title: u.title,
178
+ describe: u.subtitle,
179
+ "title-align": "left",
180
+ onCancel: $
181
+ }, null, 8, ["title", "describe"]),
182
+ c("div", oe, [g(i.$slots, "default")]),
183
+ l(r, {
184
+ ref_key: "codebox",
185
+ ref: M,
186
+ modelValue: N.value,
187
+ "onUpdate:modelValue": f[1] ||= (e) => N.value = e,
188
+ maxlength: u.maxlength,
189
+ system: u.system,
190
+ mask: u.mask,
191
+ disabled: u.disableSend,
192
+ closable: !1,
193
+ "is-view": !0,
194
+ justify: !0,
195
+ autofocus: !1,
196
+ "input-type": u.inputType,
197
+ "is-error-style": he.value,
198
+ onSubmit: q
199
+ }, {
200
+ default: b(() => [c("footer", { class: d(["cu-captcha-footer", { halfStyle: z.value }]) }, [F.value ? (m(), s("div", {
201
+ key: 0,
202
+ class: "cu-captcha-error",
203
+ textContent: _(F.value)
204
+ }, null, 8, se)) : (m(), s("div", {
205
+ key: 1,
206
+ class: "cu-captcha-brief",
207
+ textContent: _(u.brief)
208
+ }, null, 8, D)), u.count ? (m(), s("button", {
209
+ key: 2,
210
+ class: d(["cu-captcha-btn", [u.disableSend && "is-disabled-send"]]),
211
+ textContent: _(R.value),
212
+ disabled: I.value,
213
+ onClick: J
214
+ }, null, 10, ce)) : o("", !0)], 2)]),
215
+ _: 1
216
+ }, 8, [
217
+ "modelValue",
218
+ "maxlength",
219
+ "system",
220
+ "mask",
221
+ "disabled",
222
+ "input-type",
223
+ "is-error-style"
224
+ ])
225
+ ])]),
226
+ _: 3
227
+ }, 8, ["model-value"])) : o("", !0),
228
+ u.type === "dialog" ? (m(), a(n, {
229
+ key: 2,
230
+ "model-value": u.modelValue,
231
+ closable: !0,
232
+ "append-to": !1,
233
+ "onUpdate:modelValue": W,
234
+ onShow: G,
235
+ onHide: K
236
+ }, {
237
+ default: b(() => [c("div", O, [u.title ? (m(), s("h2", {
238
+ key: 0,
239
+ class: "cu-captcha-title",
240
+ textContent: _(u.title)
241
+ }, null, 8, le)) : o("", !0), c("div", ue, [g(i.$slots, "default")])]), l(r, {
242
+ ref_key: "codebox",
243
+ ref: M,
244
+ modelValue: N.value,
245
+ "onUpdate:modelValue": f[2] ||= (e) => N.value = e,
246
+ maxlength: u.maxlength,
247
+ system: u.system,
248
+ closable: !1,
249
+ mask: u.mask,
250
+ justify: !0,
251
+ autofocus: !1,
252
+ "input-type": u.inputType,
253
+ onSubmit: q
254
+ }, {
255
+ default: b(() => [c("footer", de, [F.value ? (m(), s("div", {
256
+ key: 0,
257
+ class: "cu-captcha-error",
258
+ textContent: _(F.value)
259
+ }, null, 8, fe)) : (m(), s("div", {
260
+ key: 1,
261
+ class: "cu-captcha-brief",
262
+ textContent: _(u.brief)
263
+ }, null, 8, pe)), u.count ? (m(), s("button", {
264
+ key: 2,
265
+ class: "cu-captcha-btn",
266
+ textContent: _(R.value),
267
+ disabled: I.value,
268
+ onClick: J
269
+ }, null, 8, me)) : o("", !0)])]),
270
+ _: 1
271
+ }, 8, [
272
+ "modelValue",
273
+ "maxlength",
274
+ "system",
275
+ "mask",
276
+ "input-type"
277
+ ])]),
278
+ _: 3
279
+ }, 8, ["model-value"])) : o("", !0)
280
+ ], 512)), [[v, V.value || u.modelValue || P.value]]);
281
+ }
282
+ });
283
+ export { k as t };
@@ -0,0 +1,363 @@
1
+ import { t as e } from "./Popup-qLk-BsRS.js";
2
+ import { t } from "./PopupTitleBar-9P4RUMC1.js";
3
+ import { t as n } from "./Captcha-CgpynYTc.js";
4
+ import { t as r } from "./Icon-BgCtu0ZV.js";
5
+ import { t as i } from "./RollerSuccess-CTh43Rh0.js";
6
+ import { t as a } from "./Button-D7e-cuA1.js";
7
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, watch as x, withCtx as S, withModifiers as C } from "vue";
8
+ import { t as w } from "@centui/core";
9
+ // src/components/cashier/CashierChannelItem.vue?vue&type=script&setup=true&lang.ts
10
+ var T = { class: "cu-cashier-channel-item" }, E = {
11
+ key: 1,
12
+ class: "item-image"
13
+ }, D = ["src"], O = { class: "item-label" }, k = { class: "title" }, A = ["innerHTML"], j = ["innerHTML"], M = ["innerHTML"], N = { class: "item-check-icon" }, P = /* @__PURE__ */ m({
14
+ name: "cu-cashier-channel-item",
15
+ __name: "CashierChannelItem",
16
+ props: {
17
+ data: { default: () => ({}) },
18
+ active: {
19
+ type: Boolean,
20
+ default: !1
21
+ }
22
+ },
23
+ setup(e) {
24
+ return (t, n) => (g(), u("div", T, [
25
+ e.data.icon ? (g(), u("div", {
26
+ key: 0,
27
+ class: h(["item-icon", e.data.icon])
28
+ }, [p(r, {
29
+ name: e.data.icon,
30
+ size: "lg"
31
+ }, null, 8, ["name"])], 2)) : e.data.img ? (g(), u("div", E, [d("img", { src: e.data.img }, null, 8, D)])) : l("", !0),
32
+ d("div", O, [d("p", k, [d("span", { innerHTML: e.data.text || e.data }, null, 8, A), e.data.action ? (g(), u("span", {
33
+ key: 0,
34
+ class: "title-active",
35
+ innerHTML: e.data.action.text,
36
+ onClick: n[0] ||= C((...t) => e.data.action.handler && e.data.action.handler(...t), ["stop"])
37
+ }, null, 8, j)) : l("", !0)]), e.data.desc ? (g(), u("p", {
38
+ key: 0,
39
+ class: "desc",
40
+ innerHTML: e.data.desc
41
+ }, null, 8, M)) : l("", !0)]),
42
+ d("div", N, [e.data.disabled ? (g(), c(r, {
43
+ key: 0,
44
+ name: "check-disabled"
45
+ })) : e.active ? (g(), c(r, {
46
+ key: 1,
47
+ name: "checked"
48
+ })) : (g(), c(r, {
49
+ key: 2,
50
+ name: "check"
51
+ }))])
52
+ ]));
53
+ }
54
+ }), F = { class: "cu-cashier-channel" }, I = { class: "choose-text" }, L = ["innerHTML"], R = ["innerHTML"], z = ["innerHTML"], B = {
55
+ key: 0,
56
+ class: "choose-channel-list"
57
+ }, V = {
58
+ key: 1,
59
+ class: "choose-channel-list"
60
+ }, H = ["innerHTML"], U = { class: "cu-cashier-block-btn" }, W = /* @__PURE__ */ m({
61
+ name: "cu-cashier-channel",
62
+ __name: "CashierChannel",
63
+ props: {
64
+ paymentTitle: { default: "" },
65
+ paymentAmount: { default: "" },
66
+ paymentDescribe: { default: "" },
67
+ moreButtonText: { default: "" },
68
+ payButtonText: { default: "" },
69
+ payButtonDisabled: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ channels: { default: () => [] },
74
+ channelLimit: { default: 2 },
75
+ defaultIndex: { default: 0 }
76
+ },
77
+ emits: ["select", "pay"],
78
+ setup(e, { emit: t }) {
79
+ let n = e, r = t, i = _(!1), m = _(!1), x = _(n.defaultIndex), C = s(() => n.channelLimit < 1 || !(n.channels.length > n.channelLimit));
80
+ function w(e, t) {
81
+ e.disabled || (x.value = t, r("select", e));
82
+ }
83
+ function T() {
84
+ m.value || (i.value = !0, Promise.resolve().then(() => {
85
+ m.value = !0;
86
+ }));
87
+ }
88
+ function E() {
89
+ let e = n.channels[x.value];
90
+ r("pay", e);
91
+ }
92
+ return (t, n) => (g(), u("div", F, [
93
+ d("div", I, [
94
+ e.paymentTitle ? (g(), u("p", {
95
+ key: 0,
96
+ class: "choose-title",
97
+ innerHTML: e.paymentTitle
98
+ }, null, 8, L)) : l("", !0),
99
+ e.paymentAmount ? (g(), u("p", {
100
+ key: 1,
101
+ class: "choose-number",
102
+ innerHTML: e.paymentAmount
103
+ }, null, 8, R)) : l("", !0),
104
+ e.paymentDescribe ? (g(), u("p", {
105
+ key: 2,
106
+ class: "choose-describe",
107
+ innerHTML: e.paymentDescribe
108
+ }, null, 8, z)) : l("", !0)
109
+ ]),
110
+ d("div", { class: h(["choose-channel", { active: m.value }]) }, [
111
+ y(t.$slots, "default"),
112
+ i.value || C.value ? (g(), u("div", B, [(g(!0), u(o, null, v(e.channels, (t, n) => (g(), c(P, {
113
+ key: n,
114
+ class: h({ default: n === e.defaultIndex }),
115
+ data: t,
116
+ active: n === x.value,
117
+ onClick: (e) => w(t, n)
118
+ }, null, 8, [
119
+ "class",
120
+ "data",
121
+ "active",
122
+ "onClick"
123
+ ]))), 128))])) : e.channels[e.defaultIndex] ? (g(), u("div", V, [p(P, {
124
+ class: "default",
125
+ data: e.channels[e.defaultIndex],
126
+ active: "",
127
+ onClick: n[0] ||= (t) => w(e.channels[e.defaultIndex], e.defaultIndex)
128
+ }, null, 8, ["data"])])) : l("", !0),
129
+ C.value ? l("", !0) : (g(), u("div", {
130
+ key: 2,
131
+ class: h(["choose-channel-more", { disabled: m.value }]),
132
+ innerHTML: e.moreButtonText,
133
+ onClick: T
134
+ }, null, 10, H))
135
+ ], 2),
136
+ d("div", U, [p(a, {
137
+ class: "cu-cashier-pay-button",
138
+ type: e.payButtonDisabled ? "disabled" : "primary",
139
+ onClick: E
140
+ }, {
141
+ default: S(() => [y(t.$slots, "button", {}, () => [f(b(e.payButtonText), 1)])]),
142
+ _: 3
143
+ }, 8, ["type"])])
144
+ ]));
145
+ }
146
+ }), G = { class: "cu-cashier-block-btn" }, K = /* @__PURE__ */ m({
147
+ name: "cu-cashier-channel-button",
148
+ __name: "CashierChannelButton",
149
+ props: { actions: { default: () => [] } },
150
+ setup(e) {
151
+ return (t, n) => (g(), u("div", G, [(g(!0), u(o, null, v(e.actions, (t, n) => (g(), c(a, {
152
+ key: n,
153
+ type: n === e.actions.length - 1 ? "primary" : "default",
154
+ inline: e.actions.length > 1,
155
+ onClick: () => t.handler && t.handler()
156
+ }, {
157
+ default: S(() => [f(b(t.buttonText), 1)]),
158
+ _: 2
159
+ }, 1032, [
160
+ "type",
161
+ "inline",
162
+ "onClick"
163
+ ]))), 128))]));
164
+ }
165
+ }), q = { class: "cu-cashier" }, J = { class: "cu-cashier-container" }, Y = ["textContent"], X = { class: "cu-cashier-block-icon" }, Z = { class: "cu-cashier-block-text" }, Q = { class: "cu-cashier-block-icon" }, $ = ["textContent"], ee = /* @__PURE__ */ m({
166
+ name: "cu-cashier",
167
+ __name: "Cashier",
168
+ props: {
169
+ modelValue: {
170
+ type: Boolean,
171
+ default: !1
172
+ },
173
+ channels: { default: () => [] },
174
+ channelLimit: { default: 2 },
175
+ defaultIndex: { default: 0 },
176
+ paymentTitle: { default: () => String(w("md.cashier.payCash")) },
177
+ paymentAmount: { default: "0.00" },
178
+ paymentDescribe: { default: "" },
179
+ payButtonText: { default: () => String(w("md.cashier.confirmPay")) },
180
+ payButtonDisabled: {
181
+ type: Boolean,
182
+ default: !1
183
+ },
184
+ moreButtonText: { default: () => String(w("md.cashier.morePayWays")) },
185
+ title: { default: () => String(w("md.cashier.pay")) },
186
+ describe: { default: "" },
187
+ largeRadius: {
188
+ type: Boolean,
189
+ default: !1
190
+ }
191
+ },
192
+ emits: [
193
+ "update:modelValue",
194
+ "select",
195
+ "pay",
196
+ "show",
197
+ "hide",
198
+ "cancel"
199
+ ],
200
+ setup(a, { expose: o, emit: s }) {
201
+ let f = a, m = s, v = _(f.modelValue), C = _("choose"), T = _(Date.now()), E = _({
202
+ loading: { text: String(w("md.cashier.payResultSearch")) },
203
+ success: {
204
+ text: String(w("md.cashier.paySuccess")),
205
+ buttonText: String(w("md.cashier.confirm")),
206
+ handler: null
207
+ },
208
+ fail: {
209
+ text: String(w("md.cashier.payFail")),
210
+ buttonText: String(w("md.cashier.confirm")),
211
+ handler: null
212
+ },
213
+ captcha: {
214
+ text: "",
215
+ brief: "",
216
+ maxlength: 4,
217
+ count: 60,
218
+ autoCountdown: !0,
219
+ onSend: () => {},
220
+ onSubmit: () => {}
221
+ }
222
+ });
223
+ x(() => f.modelValue, (e) => {
224
+ v.value = e;
225
+ }), x(v, (e) => {
226
+ m("update:modelValue", e);
227
+ });
228
+ function D() {
229
+ k(), m("hide");
230
+ }
231
+ function O() {
232
+ v.value = !1, m("cancel");
233
+ }
234
+ function k() {
235
+ C.value = "choose";
236
+ }
237
+ function A(e, t = {}) {
238
+ if (E.value[e]) {
239
+ let n = E.value[e];
240
+ Object.assign(n, t);
241
+ }
242
+ C.value = e, T.value = Date.now();
243
+ }
244
+ return o({ next: A }), (o, s) => (g(), u("div", q, [p(e, {
245
+ class: "inner-popup",
246
+ modelValue: v.value,
247
+ "onUpdate:modelValue": s[2] ||= (e) => v.value = e,
248
+ position: "bottom",
249
+ "mask-closable": !1,
250
+ "prevent-scroll-exclude": ".choose-channel",
251
+ "prevent-scroll": "",
252
+ onShow: s[3] ||= (e) => o.$emit("show"),
253
+ onHide: D
254
+ }, {
255
+ default: S(() => [p(t, {
256
+ title: a.title,
257
+ describe: a.describe,
258
+ "large-radius": a.largeRadius,
259
+ "only-close": "",
260
+ onCancel: O
261
+ }, null, 8, [
262
+ "title",
263
+ "describe",
264
+ "large-radius"
265
+ ]), d("div", J, [
266
+ y(o.$slots, "header", { scene: C.value }),
267
+ C.value === "choose" ? (g(), u("div", {
268
+ key: T.value,
269
+ class: "cu-cashier-block cu-cashier-choose"
270
+ }, [p(W, {
271
+ "payment-title": a.paymentTitle,
272
+ "payment-amount": a.paymentAmount,
273
+ "payment-describe": a.paymentDescribe,
274
+ "more-button-text": a.moreButtonText,
275
+ "pay-button-text": a.payButtonText,
276
+ "pay-button-disabled": a.payButtonDisabled,
277
+ channels: a.channels,
278
+ "channel-limit": a.channelLimit,
279
+ "default-index": a.defaultIndex,
280
+ onSelect: s[0] ||= (e) => o.$emit("select", e),
281
+ onPay: s[1] ||= (e) => o.$emit("pay", e)
282
+ }, {
283
+ button: S(() => [y(o.$slots, "payButton")]),
284
+ default: S(() => [y(o.$slots, "channel")]),
285
+ _: 3
286
+ }, 8, [
287
+ "payment-title",
288
+ "payment-amount",
289
+ "payment-describe",
290
+ "more-button-text",
291
+ "pay-button-text",
292
+ "pay-button-disabled",
293
+ "channels",
294
+ "channel-limit",
295
+ "default-index"
296
+ ])])) : C.value === "captcha" ? (g(), u("div", {
297
+ key: T.value,
298
+ class: "cu-cashier-block cu-cashier-captcha"
299
+ }, [p(n, {
300
+ maxlength: E.value.captcha.maxlength,
301
+ count: E.value.captcha.count,
302
+ "count-normal-text": E.value.captcha.countNormalText,
303
+ "count-active-text": E.value.captcha.countActiveText,
304
+ "auto-countdown": E.value.captcha.autoCountdown,
305
+ brief: E.value.captcha.brief,
306
+ "is-view": "",
307
+ onSend: E.value.captcha.onSend,
308
+ onSubmit: E.value.captcha.onSubmit
309
+ }, {
310
+ default: S(() => [d("div", { textContent: b(E.value.captcha.text) }, null, 8, Y)]),
311
+ _: 1
312
+ }, 8, [
313
+ "maxlength",
314
+ "count",
315
+ "count-normal-text",
316
+ "count-active-text",
317
+ "auto-countdown",
318
+ "brief",
319
+ "onSend",
320
+ "onSubmit"
321
+ ])])) : C.value === "loading" || C.value === "success" ? (g(), u("div", {
322
+ key: T.value,
323
+ class: h(["cu-cashier-block", {
324
+ "cu-cashier-loading": C.value === "loading",
325
+ "cu-cashier-success": C.value === "success"
326
+ }])
327
+ }, [
328
+ d("div", X, [p(i, {
329
+ ref: "rolling",
330
+ "is-success": C.value === "success"
331
+ }, null, 8, ["is-success"])]),
332
+ d("div", Z, b(C.value === "success" ? E.value.success.text : E.value.loading.text), 1),
333
+ C.value === "success" ? (g(), c(K, {
334
+ key: 0,
335
+ actions: E.value.success.actions || [{
336
+ buttonText: E.value.success.buttonText,
337
+ handler: E.value.success.handler
338
+ }]
339
+ }, null, 8, ["actions"])) : l("", !0)
340
+ ], 2)) : C.value === "fail" ? (g(), u("div", {
341
+ key: T.value,
342
+ class: "cu-cashier-block cu-cashier-fail"
343
+ }, [
344
+ d("div", Q, [p(r, { name: "warn-color" })]),
345
+ d("div", {
346
+ class: "cu-cashier-block-text",
347
+ textContent: b(E.value.fail.text)
348
+ }, null, 8, $),
349
+ p(K, { actions: E.value.fail.actions || [{
350
+ buttonText: E.value.fail.buttonText,
351
+ handler: E.value.fail.handler
352
+ }] }, null, 8, ["actions"])
353
+ ])) : C.value === "custom" ? (g(), u("div", {
354
+ key: T.value,
355
+ class: "cu-cashier-block cu-cashier-custom"
356
+ }, [y(o.$slots, "scene")])) : l("", !0),
357
+ y(o.$slots, "footer", { scene: C.value })
358
+ ])]),
359
+ _: 3
360
+ }, 8, ["modelValue"])]));
361
+ }
362
+ });
363
+ export { P as i, K as n, W as r, ee as t };
@@ -0,0 +1 @@
1
+ const e=require("./Popup-Ca1jPi0t.cjs"),t=require("./PopupTitleBar-Bfl49eYJ.cjs"),n=require("./Captcha-BEF-de8-.cjs"),r=require("./Icon-83WWqE5z.cjs"),i=require("./RollerSuccess-BbMzNlkv.cjs"),a=require("./Button-Bu8liJQE.cjs");let o=require("vue"),s=require("@centui/core");var c={class:`cu-cashier-channel-item`},l={key:1,class:`item-image`},u=[`src`],d={class:`item-label`},f={class:`title`},p=[`innerHTML`],m=[`innerHTML`],h=[`innerHTML`],g={class:`item-check-icon`},_=(0,o.defineComponent)({name:`cu-cashier-channel-item`,__name:`CashierChannelItem`,props:{data:{default:()=>({})},active:{type:Boolean,default:!1}},setup(e){return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,c,[e.data.icon?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,class:(0,o.normalizeClass)([`item-icon`,e.data.icon])},[(0,o.createVNode)(r.t,{name:e.data.icon,size:`lg`},null,8,[`name`])],2)):e.data.img?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,l,[(0,o.createElementVNode)(`img`,{src:e.data.img},null,8,u)])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`div`,d,[(0,o.createElementVNode)(`p`,f,[(0,o.createElementVNode)(`span`,{innerHTML:e.data.text||e.data},null,8,p),e.data.action?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,{key:0,class:`title-active`,innerHTML:e.data.action.text,onClick:n[0]||=(0,o.withModifiers)((...t)=>e.data.action.handler&&e.data.action.handler(...t),[`stop`])},null,8,m)):(0,o.createCommentVNode)(``,!0)]),e.data.desc?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,{key:0,class:`desc`,innerHTML:e.data.desc},null,8,h)):(0,o.createCommentVNode)(``,!0)]),(0,o.createElementVNode)(`div`,g,[e.data.disabled?((0,o.openBlock)(),(0,o.createBlock)(r.t,{key:0,name:`check-disabled`})):e.active?((0,o.openBlock)(),(0,o.createBlock)(r.t,{key:1,name:`checked`})):((0,o.openBlock)(),(0,o.createBlock)(r.t,{key:2,name:`check`}))])]))}}),v={class:`cu-cashier-channel`},y={class:`choose-text`},b=[`innerHTML`],x=[`innerHTML`],S=[`innerHTML`],C={key:0,class:`choose-channel-list`},w={key:1,class:`choose-channel-list`},T=[`innerHTML`],E={class:`cu-cashier-block-btn`},D=(0,o.defineComponent)({name:`cu-cashier-channel`,__name:`CashierChannel`,props:{paymentTitle:{default:``},paymentAmount:{default:``},paymentDescribe:{default:``},moreButtonText:{default:``},payButtonText:{default:``},payButtonDisabled:{type:Boolean,default:!1},channels:{default:()=>[]},channelLimit:{default:2},defaultIndex:{default:0}},emits:[`select`,`pay`],setup(e,{emit:t}){let n=e,r=t,i=(0,o.ref)(!1),s=(0,o.ref)(!1),c=(0,o.ref)(n.defaultIndex),l=(0,o.computed)(()=>n.channelLimit<1||!(n.channels.length>n.channelLimit));function u(e,t){e.disabled||(c.value=t,r(`select`,e))}function d(){s.value||(i.value=!0,Promise.resolve().then(()=>{s.value=!0}))}function f(){let e=n.channels[c.value];r(`pay`,e)}return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,v,[(0,o.createElementVNode)(`div`,y,[e.paymentTitle?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,{key:0,class:`choose-title`,innerHTML:e.paymentTitle},null,8,b)):(0,o.createCommentVNode)(``,!0),e.paymentAmount?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,{key:1,class:`choose-number`,innerHTML:e.paymentAmount},null,8,x)):(0,o.createCommentVNode)(``,!0),e.paymentDescribe?((0,o.openBlock)(),(0,o.createElementBlock)(`p`,{key:2,class:`choose-describe`,innerHTML:e.paymentDescribe},null,8,S)):(0,o.createCommentVNode)(``,!0)]),(0,o.createElementVNode)(`div`,{class:(0,o.normalizeClass)([`choose-channel`,{active:s.value}])},[(0,o.renderSlot)(t.$slots,`default`),i.value||l.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,C,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.channels,(t,n)=>((0,o.openBlock)(),(0,o.createBlock)(_,{key:n,class:(0,o.normalizeClass)({default:n===e.defaultIndex}),data:t,active:n===c.value,onClick:e=>u(t,n)},null,8,[`class`,`data`,`active`,`onClick`]))),128))])):e.channels[e.defaultIndex]?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,w,[(0,o.createVNode)(_,{class:`default`,data:e.channels[e.defaultIndex],active:``,onClick:n[0]||=t=>u(e.channels[e.defaultIndex],e.defaultIndex)},null,8,[`data`])])):(0,o.createCommentVNode)(``,!0),l.value?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:2,class:(0,o.normalizeClass)([`choose-channel-more`,{disabled:s.value}]),innerHTML:e.moreButtonText,onClick:d},null,10,T))],2),(0,o.createElementVNode)(`div`,E,[(0,o.createVNode)(a.t,{class:`cu-cashier-pay-button`,type:e.payButtonDisabled?`disabled`:`primary`,onClick:f},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(t.$slots,`button`,{},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.payButtonText),1)])]),_:3},8,[`type`])])]))}}),O={class:`cu-cashier-block-btn`},k=(0,o.defineComponent)({name:`cu-cashier-channel-button`,__name:`CashierChannelButton`,props:{actions:{default:()=>[]}},setup(e){return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,O,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.actions,(t,n)=>((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:n,type:n===e.actions.length-1?`primary`:`default`,inline:e.actions.length>1,onClick:()=>t.handler&&t.handler()},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.buttonText),1)]),_:2},1032,[`type`,`inline`,`onClick`]))),128))]))}}),A={class:`cu-cashier`},j={class:`cu-cashier-container`},M=[`textContent`],N={class:`cu-cashier-block-icon`},P={class:`cu-cashier-block-text`},F={class:`cu-cashier-block-icon`},I=[`textContent`],L=(0,o.defineComponent)({name:`cu-cashier`,__name:`Cashier`,props:{modelValue:{type:Boolean,default:!1},channels:{default:()=>[]},channelLimit:{default:2},defaultIndex:{default:0},paymentTitle:{default:()=>String((0,s.t)(`md.cashier.payCash`))},paymentAmount:{default:`0.00`},paymentDescribe:{default:``},payButtonText:{default:()=>String((0,s.t)(`md.cashier.confirmPay`))},payButtonDisabled:{type:Boolean,default:!1},moreButtonText:{default:()=>String((0,s.t)(`md.cashier.morePayWays`))},title:{default:()=>String((0,s.t)(`md.cashier.pay`))},describe:{default:``},largeRadius:{type:Boolean,default:!1}},emits:[`update:modelValue`,`select`,`pay`,`show`,`hide`,`cancel`],setup(a,{expose:c,emit:l}){let u=a,d=l,f=(0,o.ref)(u.modelValue),p=(0,o.ref)(`choose`),m=(0,o.ref)(Date.now()),h=(0,o.ref)({loading:{text:String((0,s.t)(`md.cashier.payResultSearch`))},success:{text:String((0,s.t)(`md.cashier.paySuccess`)),buttonText:String((0,s.t)(`md.cashier.confirm`)),handler:null},fail:{text:String((0,s.t)(`md.cashier.payFail`)),buttonText:String((0,s.t)(`md.cashier.confirm`)),handler:null},captcha:{text:``,brief:``,maxlength:4,count:60,autoCountdown:!0,onSend:()=>{},onSubmit:()=>{}}});(0,o.watch)(()=>u.modelValue,e=>{f.value=e}),(0,o.watch)(f,e=>{d(`update:modelValue`,e)});function g(){v(),d(`hide`)}function _(){f.value=!1,d(`cancel`)}function v(){p.value=`choose`}function y(e,t={}){if(h.value[e]){let n=h.value[e];Object.assign(n,t)}p.value=e,m.value=Date.now()}return c({next:y}),(s,c)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,A,[(0,o.createVNode)(e.t,{class:`inner-popup`,modelValue:f.value,"onUpdate:modelValue":c[2]||=e=>f.value=e,position:`bottom`,"mask-closable":!1,"prevent-scroll-exclude":`.choose-channel`,"prevent-scroll":``,onShow:c[3]||=e=>s.$emit(`show`),onHide:g},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(t.t,{title:a.title,describe:a.describe,"large-radius":a.largeRadius,"only-close":``,onCancel:_},null,8,[`title`,`describe`,`large-radius`]),(0,o.createElementVNode)(`div`,j,[(0,o.renderSlot)(s.$slots,`header`,{scene:p.value}),p.value===`choose`?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:m.value,class:`cu-cashier-block cu-cashier-choose`},[(0,o.createVNode)(D,{"payment-title":a.paymentTitle,"payment-amount":a.paymentAmount,"payment-describe":a.paymentDescribe,"more-button-text":a.moreButtonText,"pay-button-text":a.payButtonText,"pay-button-disabled":a.payButtonDisabled,channels:a.channels,"channel-limit":a.channelLimit,"default-index":a.defaultIndex,onSelect:c[0]||=e=>s.$emit(`select`,e),onPay:c[1]||=e=>s.$emit(`pay`,e)},{button:(0,o.withCtx)(()=>[(0,o.renderSlot)(s.$slots,`payButton`)]),default:(0,o.withCtx)(()=>[(0,o.renderSlot)(s.$slots,`channel`)]),_:3},8,[`payment-title`,`payment-amount`,`payment-describe`,`more-button-text`,`pay-button-text`,`pay-button-disabled`,`channels`,`channel-limit`,`default-index`])])):p.value===`captcha`?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:m.value,class:`cu-cashier-block cu-cashier-captcha`},[(0,o.createVNode)(n.t,{maxlength:h.value.captcha.maxlength,count:h.value.captcha.count,"count-normal-text":h.value.captcha.countNormalText,"count-active-text":h.value.captcha.countActiveText,"auto-countdown":h.value.captcha.autoCountdown,brief:h.value.captcha.brief,"is-view":``,onSend:h.value.captcha.onSend,onSubmit:h.value.captcha.onSubmit},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,{textContent:(0,o.toDisplayString)(h.value.captcha.text)},null,8,M)]),_:1},8,[`maxlength`,`count`,`count-normal-text`,`count-active-text`,`auto-countdown`,`brief`,`onSend`,`onSubmit`])])):p.value===`loading`||p.value===`success`?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:m.value,class:(0,o.normalizeClass)([`cu-cashier-block`,{"cu-cashier-loading":p.value===`loading`,"cu-cashier-success":p.value===`success`}])},[(0,o.createElementVNode)(`div`,N,[(0,o.createVNode)(i.t,{ref:`rolling`,"is-success":p.value===`success`},null,8,[`is-success`])]),(0,o.createElementVNode)(`div`,P,(0,o.toDisplayString)(p.value===`success`?h.value.success.text:h.value.loading.text),1),p.value===`success`?((0,o.openBlock)(),(0,o.createBlock)(k,{key:0,actions:h.value.success.actions||[{buttonText:h.value.success.buttonText,handler:h.value.success.handler}]},null,8,[`actions`])):(0,o.createCommentVNode)(``,!0)],2)):p.value===`fail`?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:m.value,class:`cu-cashier-block cu-cashier-fail`},[(0,o.createElementVNode)(`div`,F,[(0,o.createVNode)(r.t,{name:`warn-color`})]),(0,o.createElementVNode)(`div`,{class:`cu-cashier-block-text`,textContent:(0,o.toDisplayString)(h.value.fail.text)},null,8,I),(0,o.createVNode)(k,{actions:h.value.fail.actions||[{buttonText:h.value.fail.buttonText,handler:h.value.fail.handler}]},null,8,[`actions`])])):p.value===`custom`?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:m.value,class:`cu-cashier-block cu-cashier-custom`},[(0,o.renderSlot)(s.$slots,`scene`)])):(0,o.createCommentVNode)(``,!0),(0,o.renderSlot)(s.$slots,`footer`,{scene:p.value})])]),_:3},8,[`modelValue`])]))}});Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return L}});