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,68 @@
1
+ import { n as e, t } from "./SwiperItem-BydyBdYU.js";
2
+ import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, openBlock as l, ref as u, renderList as d, toDisplayString as f, vShow as p, watch as m, withCtx as h, withDirectives as g } from "vue";
3
+ // src/components/image-viewer/ImageViewer.vue?vue&type=script&setup=true&lang.ts
4
+ var _ = { class: "viewer-container" }, v = { class: "item" }, y = ["src", "alt"], b = {
5
+ key: 1,
6
+ class: "viewer-index"
7
+ }, x = /* @__PURE__ */ s({
8
+ name: "cu-image-viewer",
9
+ __name: "ImageViewer",
10
+ props: {
11
+ modelValue: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ list: { default: () => [] },
16
+ initialIndex: { default: 0 },
17
+ hasDots: {
18
+ type: Boolean,
19
+ default: !0
20
+ }
21
+ },
22
+ emits: ["update:modelValue", "change"],
23
+ setup(s, { emit: x }) {
24
+ let S = s, C = x, w = u(!1), T = u([]), E = u(0);
25
+ w.value = S.modelValue, w.value && (E.value = S.initialIndex, D()), m(() => S.modelValue, (e) => {
26
+ E.value = S.initialIndex, w.value = e, c(() => {
27
+ D();
28
+ });
29
+ }), m(w, (e) => {
30
+ C("update:modelValue", e);
31
+ });
32
+ function D() {
33
+ T.value = S.list.map((e) => typeof e == "object" ? e : { url: e });
34
+ }
35
+ function O(e, t) {
36
+ E.value = t, C("change", e, t);
37
+ }
38
+ function k() {
39
+ w.value = !1;
40
+ }
41
+ return (c, u) => g((l(), a("div", {
42
+ class: "cu-image-viewer",
43
+ onClick: k
44
+ }, [o("div", _, [w.value ? (l(), r(e, {
45
+ key: 0,
46
+ ref: "swiper",
47
+ autoplay: 0,
48
+ "default-index": E.value,
49
+ "has-dots": !1,
50
+ "is-prevent": !1,
51
+ onAfterChange: O
52
+ }, {
53
+ default: h(() => [(l(!0), a(n, null, d(T.value, (e, n) => (l(), r(t, {
54
+ key: n,
55
+ class: "viewer-item-wrap"
56
+ }, {
57
+ default: h(() => [o("div", v, [e.url ? (l(), a("img", {
58
+ key: 0,
59
+ src: e.url,
60
+ alt: e.alt
61
+ }, null, 8, y)) : i("", !0)])]),
62
+ _: 2
63
+ }, 1024))), 128))]),
64
+ _: 1
65
+ }, 8, ["default-index"])) : i("", !0), s.hasDots ? (l(), a("div", b, f(E.value + 1) + "/" + f(s.list.length), 1)) : i("", !0)])], 512)), [[p, w.value]]);
66
+ }
67
+ });
68
+ export { x as t };
@@ -0,0 +1 @@
1
+ const e=require("./FieldItem-UFKrl_5J.cjs"),t=require("./Icon-83WWqE5z.cjs"),n=require("./NumberKeyboard-BWpxsbYt.cjs"),r=require("./cursor-tQE3LcbU.cjs");let i=require("vue"),a=require("@centui/core");var o=[`type`,`name`,`value`,`placeholder`,`disabled`,`readonly`,`maxlength`],s=[`textContent`],c=[`textContent`],l={key:0,class:`cu-input-item-msg`},ee=[`textContent`],u={key:1,class:`cu-input-item-brief`},d=[`textContent`],f=(0,i.defineComponent)({name:`cu-input-item`,__name:`InputItem`,props:{type:{default:`text`},previewType:{default:``},name:{default:void 0},title:{default:``},brief:{default:``},modelValue:{default:``},placeholder:{default:``},maxlength:{default:``},size:{default:`normal`},align:{default:`left`},error:{default:``},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},solid:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},isVirtualKeyboard:{type:Boolean,default:!1},virtualKeyboardDisorder:{type:Boolean,default:!1},virtualKeyboardOkText:{default:void 0},virtualKeyboardVm:{default:null},isTitleLatent:{type:Boolean,default:!1},isFormative:{type:Boolean,default:!1},isHighlight:{type:Boolean,default:!1},isAmount:{type:Boolean,default:!1},formation:{type:Function,default:()=>void 0}},emits:[`update:modelValue`,`change`,`focus`,`blur`,`confirm`,`keyup`,`keydown`],setup(f,{expose:p,emit:m}){function h(e){return e.replace(/[\s,]/g,``)}let g=f,_=m,v=(0,i.inject)(`rootField`,null),y=(0,i.ref)(),b=(0,i.ref)(),x=g.name??(0,a.randomId)(`input-item`),S=(0,i.ref)(``),C=(0,i.ref)(``),w=(0,i.ref)(null),T=(0,i.ref)(!1),E=(0,i.ref)(!1),D=(0,i.ref)(!1),O=!1,k=null,A=null,j=(0,i.computed)(()=>(D.value?g.previewType:g.type)||`text`),M=(0,i.computed)(()=>{let e=j.value||`text`;return e===`bankCard`||e===`phone`||e===`digit`?e=`tel`:e===`money`&&(e=`text`),e}),N=(0,i.computed)(()=>j.value===`phone`?11:g.maxlength),P=(0,i.computed)(()=>g.isTitleLatent&&F.value?``:g.placeholder),F=(0,i.computed)(()=>!I.value||T.value),I=(0,i.computed)(()=>!S.value.length),L=(0,i.computed)(()=>{let e=j.value;return g.isFormative||e===`bankCard`||e===`phone`||e===`money`||e===`digit`}),R=(0,i.computed)(()=>!!v?.disabled||g.disabled),z=(0,i.computed)(()=>!!H.value||g.error!==``),B=(0,i.computed)(()=>!!te.value||g.brief!==``),V=(0,i.useSlots)(),H=(0,i.computed)(()=>!!V.error),te=(0,i.computed)(()=>!!V.brief);(0,i.watch)(()=>g.modelValue,e=>{e!==h(S.value)&&(S.value=U(W(`${e}`)).value)}),(0,i.watch)(()=>g.previewType,e=>{D.value=!!e},{immediate:!0}),(0,i.watch)(S,e=>{C.value=e;let t=L.value?h(e):e;t!==g.modelValue&&(_(`update:modelValue`,t),_(`change`,x,t))}),(0,i.watch)(T,e=>{if(!g.isVirtualKeyboard||!w.value)return;let t=w.value;e?(t.show?.(),_(`focus`,x)):(t.hide?.(),_(`blur`,x))}),S.value=U(W(`${g.modelValue}`)).value,(0,i.onMounted)(()=>{g.isVirtualKeyboard&&(0,i.nextTick)(()=>{X()})}),(0,i.onBeforeUnmount)(()=>{let e=w.value;e?.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),k&&clearTimeout(k),A&&clearTimeout(A),document.removeEventListener(`click`,Y,!1)});function U(e,t=0){let n=j.value,r=S.value,i=r.length>e.length?-1:1,o={value:e,range:t};if(!L.value||e===``)return o;let s=g.formation(x,e,t);if(s)return s;let c=` `;switch(n){case`bankCard`:e=W((0,a.trimValue)(e.replace(/\D/g,``))),o=(0,a.formatValueByGapStep)(4,e,c,`left`,t,i,r);break;case`phone`:e=W((0,a.trimValue)(e.replace(/\D/g,``))),o=(0,a.formatValueByGapRule)(`3|4|4`,e,c,t,i);break;case`money`:{c=`,`,e=W((0,a.trimValue)(e.replace(/[^\d.]/g,``)));let n=e.indexOf(`.`),s=e.split(`.`)[0],l=~n?`.${e.split(`.`)[1]}`:``;o=(0,a.formatValueByGapStep)(3,(0,a.trimValue)(s,c),c,`right`,t,i,r.split(`.`)[0]),o.value+=l;break}case`digit`:e=W((0,a.trimValue)(e.replace(/\D/g,``))),o.value=e}return o}function W(e){let t=N.value;return t!==``&&t!==void 0?e.substring(0,Number(t)):e}function G(){E.value=!0,k&&clearTimeout(k),k=setTimeout(()=>{E.value=!1},500)}function K(){S.value=``,!g.isTitleLatent&&$(),D.value=!1}function q(){K()}function J(){T.value=!0,setTimeout(()=>{document.addEventListener(`click`,Y,!1)},0)}function Y(){T.value=!1,document.removeEventListener(`click`,Y,!1)}function X(){let e=g.virtualKeyboardVm&&typeof g.virtualKeyboardVm==`object`?g.virtualKeyboardVm:b.value;e&&(w.value=e,e.$el&&document.body.appendChild(e.$el))}function Z(e){let t=e.target;if(O){S.value=t.value,C.value=t.value;return}let n=U(t.value,L.value?r.t(t):0);S.value=n.value,C.value=n.value,L.value&&(0,i.nextTick)(()=>{r.n(t,n.range)})}function ne(){O=!0}function re(e){O=!1,Z(e)}function ie(e){_(`keyup`,x,e),(+e.keyCode==13||+e.keyCode==108)&&_(`confirm`,x,S.value)}function ae(e){_(`keydown`,x,e),+e.keyCode!=13&&+e.keyCode!=108&&(G(),D.value&&q())}function oe(){T.value=!0,_(`focus`,x)}function se(){A&&clearTimeout(A),A=setTimeout(()=>{A=null,T.value=!1,_(`blur`,x)},100)}function Q(){R.value||g.readonly||(Y(),T.value||J())}function ce(e){D.value&&q(),Number(N.value)>0&&h(S.value).length>=Number(N.value)||(S.value=U(S.value+e).value,G())}function le(){let e=S.value;e!==``&&(S.value=U(e.substring(0,e.length-1)).value,G(),D.value&&q())}function ue(){_(`confirm`,x,S.value)}function $(){g.isVirtualKeyboard?Q():(y.value?.$el.querySelector(`.cu-input-item-input`)?.focus(),setTimeout(()=>{T.value=!0},200))}function de(){g.isVirtualKeyboard?Y():y.value?.$el.querySelector(`.cu-input-item-input`)?.blur()}function fe(){return S.value}return p({focus:$,blur:de,getValue:fe}),(r,a)=>((0,i.openBlock)(),(0,i.createBlock)(e.t,{ref_key:`root`,ref:y,class:(0,i.normalizeClass)([`cu-input-item`,[f.isHighlight?`is-highlight`:``,f.isTitleLatent?`is-title-latent`:``,F.value?`is-active`:``,T.value?`is-focus`:``,z.value?`is-error`:``,B.value&&!z.value?`with-brief`:``,R.value?`is-disabled`:``,f.isAmount?`is-amount`:``,f.clearable?`is-clear`:``,f.align,f.size]]),title:f.title,solid:f.solid&&!f.isTitleLatent},{left:(0,i.withCtx)(()=>[(0,i.renderSlot)(r.$slots,`left`)]),right:(0,i.withCtx)(()=>[f.clearable&&!R.value&&!f.readonly?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-input-item-clear`,onClick:K},[(0,i.createVNode)(t.t,{name:`clear`})],512)),[[i.vShow,!I.value&&T.value]]):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(r.$slots,`right`)]),children:(0,i.withCtx)(()=>[z.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,l,[f.error===``?(0,i.renderSlot)(r.$slots,`error`,{},void 0,void 0,1):((0,i.openBlock)(),(0,i.createElementBlock)(`p`,{key:0,textContent:(0,i.toDisplayString)(f.error)},null,8,ee))])):(0,i.createCommentVNode)(``,!0),B.value&&!z.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,u,[f.brief===``?(0,i.renderSlot)(r.$slots,`brief`,{},void 0,void 0,1):((0,i.openBlock)(),(0,i.createElementBlock)(`p`,{key:0,textContent:(0,i.toDisplayString)(f.brief)},null,8,d))])):(0,i.createCommentVNode)(``,!0),f.isVirtualKeyboard&&!f.virtualKeyboardVm?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,ref_key:`numberKeyboard`,ref:b,id:`${(0,i.unref)(x)}-number-keyboard`,class:`cu-input-item-number-keyboard`,"ok-text":f.virtualKeyboardOkText,disorder:f.virtualKeyboardDisorder,onEnter:ce,onDelete:le,onConfirm:ue},null,8,[`id`,`ok-text`,`disorder`])):(0,i.createCommentVNode)(``,!0)]),default:(0,i.withCtx)(()=>[f.isVirtualKeyboard?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:(0,i.normalizeClass)([`cu-input-item-fake`,{"is-focus":T.value,"is-waiting":!E.value,disabled:R.value,readonly:f.readonly}]),onClick:Q},[(0,i.createElementVNode)(`span`,{textContent:(0,i.toDisplayString)(S.value)},null,8,s),S.value===``&&P.value!==``?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:0,class:`cu-input-item-fake-placeholder`,textContent:(0,i.toDisplayString)(P.value)},null,8,c)):(0,i.createCommentVNode)(``,!0)],2)):((0,i.openBlock)(),(0,i.createElementBlock)(`input`,{key:0,class:`cu-input-item-input`,type:M.value,name:String((0,i.unref)(x)),value:C.value,placeholder:P.value,disabled:R.value,readonly:f.readonly,maxlength:L.value?``:N.value,autocomplete:`off`,onFocus:oe,onBlur:se,onKeyup:ie,onKeydown:ae,onInput:Z,onCompositionstart:ne,onCompositionend:re},null,40,o))]),_:3},8,[`class`,`title`,`solid`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
@@ -0,0 +1,327 @@
1
+ import { t as e } from "./FieldItem-D79w330m.js";
2
+ import { t } from "./Icon-BgCtu0ZV.js";
3
+ import { t as n } from "./NumberKeyboard-B_TJXxki.js";
4
+ import { n as r, t as i } from "./cursor-BIPoNm8V.js";
5
+ import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as ee, createVNode as te, defineComponent as l, inject as ne, nextTick as u, normalizeClass as d, onBeforeUnmount as re, onMounted as ie, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, unref as g, useSlots as ae, vShow as oe, watch as _, withCtx as v, withDirectives as se } from "vue";
6
+ import { formatValueByGapRule as ce, formatValueByGapStep as y, randomId as le, trimValue as b } from "@centui/core";
7
+ // src/components/input-item/InputItem.vue?vue&type=script&setup=true&lang.ts
8
+ var ue = [
9
+ "type",
10
+ "name",
11
+ "value",
12
+ "placeholder",
13
+ "disabled",
14
+ "readonly",
15
+ "maxlength"
16
+ ], de = ["textContent"], fe = ["textContent"], pe = {
17
+ key: 0,
18
+ class: "cu-input-item-msg"
19
+ }, me = ["textContent"], he = {
20
+ key: 1,
21
+ class: "cu-input-item-brief"
22
+ }, ge = ["textContent"], x = /* @__PURE__ */ l({
23
+ name: "cu-input-item",
24
+ __name: "InputItem",
25
+ props: {
26
+ type: { default: "text" },
27
+ previewType: { default: "" },
28
+ name: { default: void 0 },
29
+ title: { default: "" },
30
+ brief: { default: "" },
31
+ modelValue: { default: "" },
32
+ placeholder: { default: "" },
33
+ maxlength: { default: "" },
34
+ size: { default: "normal" },
35
+ align: { default: "left" },
36
+ error: { default: "" },
37
+ readonly: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ disabled: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ solid: {
46
+ type: Boolean,
47
+ default: !0
48
+ },
49
+ clearable: {
50
+ type: Boolean,
51
+ default: !1
52
+ },
53
+ isVirtualKeyboard: {
54
+ type: Boolean,
55
+ default: !1
56
+ },
57
+ virtualKeyboardDisorder: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ virtualKeyboardOkText: { default: void 0 },
62
+ virtualKeyboardVm: { default: null },
63
+ isTitleLatent: {
64
+ type: Boolean,
65
+ default: !1
66
+ },
67
+ isFormative: {
68
+ type: Boolean,
69
+ default: !1
70
+ },
71
+ isHighlight: {
72
+ type: Boolean,
73
+ default: !1
74
+ },
75
+ isAmount: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ formation: {
80
+ type: Function,
81
+ default: () => void 0
82
+ }
83
+ },
84
+ emits: [
85
+ "update:modelValue",
86
+ "change",
87
+ "focus",
88
+ "blur",
89
+ "confirm",
90
+ "keyup",
91
+ "keydown"
92
+ ],
93
+ setup(l, { expose: x, emit: _e }) {
94
+ function S(e) {
95
+ return e.replace(/[\s,]/g, "");
96
+ }
97
+ let C = l, w = _e, ve = ne("rootField", null), T = p(), E = p(), D = C.name ?? le("input-item"), O = p(""), k = p(""), A = p(null), j = p(!1), M = p(!1), N = p(!1), P = !1, F = null, I = null, L = a(() => (N.value ? C.previewType : C.type) || "text"), ye = a(() => {
98
+ let e = L.value || "text";
99
+ return e === "bankCard" || e === "phone" || e === "digit" ? e = "tel" : e === "money" && (e = "text"), e;
100
+ }), R = a(() => L.value === "phone" ? 11 : C.maxlength), z = a(() => C.isTitleLatent && B.value ? "" : C.placeholder), B = a(() => !V.value || j.value), V = a(() => !O.value.length), H = a(() => {
101
+ let e = L.value;
102
+ return C.isFormative || e === "bankCard" || e === "phone" || e === "money" || e === "digit";
103
+ }), U = a(() => !!ve?.disabled || C.disabled), W = a(() => !!be.value || C.error !== ""), G = a(() => !!xe.value || C.brief !== ""), K = ae(), be = a(() => !!K.error), xe = a(() => !!K.brief);
104
+ _(() => C.modelValue, (e) => {
105
+ e !== S(O.value) && (O.value = q(J(`${e}`)).value);
106
+ }), _(() => C.previewType, (e) => {
107
+ N.value = !!e;
108
+ }, { immediate: !0 }), _(O, (e) => {
109
+ k.value = e;
110
+ let t = H.value ? S(e) : e;
111
+ t !== C.modelValue && (w("update:modelValue", t), w("change", D, t));
112
+ }), _(j, (e) => {
113
+ if (!C.isVirtualKeyboard || !A.value) return;
114
+ let t = A.value;
115
+ e ? (t.show?.(), w("focus", D)) : (t.hide?.(), w("blur", D));
116
+ }), O.value = q(J(`${C.modelValue}`)).value, ie(() => {
117
+ C.isVirtualKeyboard && u(() => {
118
+ Ce();
119
+ });
120
+ }), re(() => {
121
+ let e = A.value;
122
+ e?.$el && e.$el.parentNode && e.$el.parentNode.removeChild(e.$el), F && clearTimeout(F), I && clearTimeout(I), document.removeEventListener("click", Q, !1);
123
+ });
124
+ function q(e, t = 0) {
125
+ let n = L.value, r = O.value, i = r.length > e.length ? -1 : 1, a = {
126
+ value: e,
127
+ range: t
128
+ };
129
+ if (!H.value || e === "") return a;
130
+ let o = C.formation(D, e, t);
131
+ if (o) return o;
132
+ let s = " ";
133
+ switch (n) {
134
+ case "bankCard":
135
+ e = J(b(e.replace(/\D/g, ""))), a = y(4, e, s, "left", t, i, r);
136
+ break;
137
+ case "phone":
138
+ e = J(b(e.replace(/\D/g, ""))), a = ce("3|4|4", e, s, t, i);
139
+ break;
140
+ case "money": {
141
+ s = ",", e = J(b(e.replace(/[^\d.]/g, "")));
142
+ let n = e.indexOf("."), o = e.split(".")[0], c = ~n ? `.${e.split(".")[1]}` : "";
143
+ a = y(3, b(o, s), s, "right", t, i, r.split(".")[0]), a.value += c;
144
+ break;
145
+ }
146
+ case "digit": e = J(b(e.replace(/\D/g, ""))), a.value = e;
147
+ }
148
+ return a;
149
+ }
150
+ function J(e) {
151
+ let t = R.value;
152
+ return t !== "" && t !== void 0 ? e.substring(0, Number(t)) : e;
153
+ }
154
+ function Y() {
155
+ M.value = !0, F && clearTimeout(F), F = setTimeout(() => {
156
+ M.value = !1;
157
+ }, 500);
158
+ }
159
+ function X() {
160
+ O.value = "", !C.isTitleLatent && $(), N.value = !1;
161
+ }
162
+ function Z() {
163
+ X();
164
+ }
165
+ function Se() {
166
+ j.value = !0, setTimeout(() => {
167
+ document.addEventListener("click", Q, !1);
168
+ }, 0);
169
+ }
170
+ function Q() {
171
+ j.value = !1, document.removeEventListener("click", Q, !1);
172
+ }
173
+ function Ce() {
174
+ let e = C.virtualKeyboardVm && typeof C.virtualKeyboardVm == "object" ? C.virtualKeyboardVm : E.value;
175
+ e && (A.value = e, e.$el && document.body.appendChild(e.$el));
176
+ }
177
+ function we(e) {
178
+ let t = e.target;
179
+ if (P) {
180
+ O.value = t.value, k.value = t.value;
181
+ return;
182
+ }
183
+ let n = q(t.value, H.value ? i(t) : 0);
184
+ O.value = n.value, k.value = n.value, H.value && u(() => {
185
+ r(t, n.range);
186
+ });
187
+ }
188
+ function Te() {
189
+ P = !0;
190
+ }
191
+ function Ee(e) {
192
+ P = !1, we(e);
193
+ }
194
+ function De(e) {
195
+ w("keyup", D, e), (+e.keyCode == 13 || +e.keyCode == 108) && w("confirm", D, O.value);
196
+ }
197
+ function Oe(e) {
198
+ w("keydown", D, e), +e.keyCode != 13 && +e.keyCode != 108 && (Y(), N.value && Z());
199
+ }
200
+ function ke() {
201
+ j.value = !0, w("focus", D);
202
+ }
203
+ function Ae() {
204
+ I && clearTimeout(I), I = setTimeout(() => {
205
+ I = null, j.value = !1, w("blur", D);
206
+ }, 100);
207
+ }
208
+ function je() {
209
+ U.value || C.readonly || (Q(), j.value || Se());
210
+ }
211
+ function Me(e) {
212
+ N.value && Z(), Number(R.value) > 0 && S(O.value).length >= Number(R.value) || (O.value = q(O.value + e).value, Y());
213
+ }
214
+ function Ne() {
215
+ let e = O.value;
216
+ e !== "" && (O.value = q(e.substring(0, e.length - 1)).value, Y(), N.value && Z());
217
+ }
218
+ function Pe() {
219
+ w("confirm", D, O.value);
220
+ }
221
+ function $() {
222
+ C.isVirtualKeyboard ? je() : (T.value?.$el.querySelector(".cu-input-item-input")?.focus(), setTimeout(() => {
223
+ j.value = !0;
224
+ }, 200));
225
+ }
226
+ function Fe() {
227
+ C.isVirtualKeyboard ? Q() : T.value?.$el.querySelector(".cu-input-item-input")?.blur();
228
+ }
229
+ function Ie() {
230
+ return O.value;
231
+ }
232
+ return x({
233
+ focus: $,
234
+ blur: Fe,
235
+ getValue: Ie
236
+ }), (r, i) => (f(), o(e, {
237
+ ref_key: "root",
238
+ ref: T,
239
+ class: d(["cu-input-item", [
240
+ l.isHighlight ? "is-highlight" : "",
241
+ l.isTitleLatent ? "is-title-latent" : "",
242
+ B.value ? "is-active" : "",
243
+ j.value ? "is-focus" : "",
244
+ W.value ? "is-error" : "",
245
+ G.value && !W.value ? "with-brief" : "",
246
+ U.value ? "is-disabled" : "",
247
+ l.isAmount ? "is-amount" : "",
248
+ l.clearable ? "is-clear" : "",
249
+ l.align,
250
+ l.size
251
+ ]]),
252
+ title: l.title,
253
+ solid: l.solid && !l.isTitleLatent
254
+ }, {
255
+ left: v(() => [m(r.$slots, "left")]),
256
+ right: v(() => [l.clearable && !U.value && !l.readonly ? se((f(), c("div", {
257
+ key: 0,
258
+ class: "cu-input-item-clear",
259
+ onClick: X
260
+ }, [te(t, { name: "clear" })], 512)), [[oe, !V.value && j.value]]) : s("", !0), m(r.$slots, "right")]),
261
+ children: v(() => [
262
+ W.value ? (f(), c("div", pe, [l.error === "" ? m(r.$slots, "error", {}, void 0, void 0, 1) : (f(), c("p", {
263
+ key: 0,
264
+ textContent: h(l.error)
265
+ }, null, 8, me))])) : s("", !0),
266
+ G.value && !W.value ? (f(), c("div", he, [l.brief === "" ? m(r.$slots, "brief", {}, void 0, void 0, 1) : (f(), c("p", {
267
+ key: 0,
268
+ textContent: h(l.brief)
269
+ }, null, 8, ge))])) : s("", !0),
270
+ l.isVirtualKeyboard && !l.virtualKeyboardVm ? (f(), o(n, {
271
+ key: 2,
272
+ ref_key: "numberKeyboard",
273
+ ref: E,
274
+ id: `${g(D)}-number-keyboard`,
275
+ class: "cu-input-item-number-keyboard",
276
+ "ok-text": l.virtualKeyboardOkText,
277
+ disorder: l.virtualKeyboardDisorder,
278
+ onEnter: Me,
279
+ onDelete: Ne,
280
+ onConfirm: Pe
281
+ }, null, 8, [
282
+ "id",
283
+ "ok-text",
284
+ "disorder"
285
+ ])) : s("", !0)
286
+ ]),
287
+ default: v(() => [l.isVirtualKeyboard ? (f(), c("div", {
288
+ key: 1,
289
+ class: d(["cu-input-item-fake", {
290
+ "is-focus": j.value,
291
+ "is-waiting": !M.value,
292
+ disabled: U.value,
293
+ readonly: l.readonly
294
+ }]),
295
+ onClick: je
296
+ }, [ee("span", { textContent: h(O.value) }, null, 8, de), O.value === "" && z.value !== "" ? (f(), c("span", {
297
+ key: 0,
298
+ class: "cu-input-item-fake-placeholder",
299
+ textContent: h(z.value)
300
+ }, null, 8, fe)) : s("", !0)], 2)) : (f(), c("input", {
301
+ key: 0,
302
+ class: "cu-input-item-input",
303
+ type: ye.value,
304
+ name: String(g(D)),
305
+ value: k.value,
306
+ placeholder: z.value,
307
+ disabled: U.value,
308
+ readonly: l.readonly,
309
+ maxlength: H.value ? "" : R.value,
310
+ autocomplete: "off",
311
+ onFocus: ke,
312
+ onBlur: Ae,
313
+ onKeyup: De,
314
+ onKeydown: Oe,
315
+ onInput: we,
316
+ onCompositionstart: Te,
317
+ onCompositionend: Ee
318
+ }, null, 40, ue))]),
319
+ _: 3
320
+ }, 8, [
321
+ "class",
322
+ "title",
323
+ "solid"
324
+ ]));
325
+ }
326
+ });
327
+ export { x as t };
@@ -0,0 +1 @@
1
+ const e=require("./Popup-Ca1jPi0t.cjs"),t=require("./Icon-83WWqE5z.cjs");let n=require("vue");var r={class:`cu-landscape-content`},i=(0,n.defineComponent)({name:`cu-landscape`,__name:`Landscape`,props:{modelValue:{type:Boolean,default:!1},scroll:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},hasMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!1},transition:{default:void 0}},emits:[`update:modelValue`,`input`,`show`,`hide`],setup(i,{emit:a}){let o=i,s=a,c=(0,n.ref)(o.modelValue),l=(0,n.computed)(()=>o.transition??(o.fullScreen?`cu-fade`:`cu-punch`));(0,n.watch)(()=>o.modelValue,e=>{c.value=e});function u(e){c.value=e,s(`update:modelValue`,!1),s(`input`,!1)}function d(){c.value=!1}return(a,o)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`cu-landscape`,{"is-full":i.fullScreen}])},[(0,n.createVNode)(e.t,{modelValue:c.value,"onUpdate:modelValue":[o[0]||=e=>c.value=e,u],"mask-closable":i.maskClosable,"prevent-scroll":``,"prevent-scroll-exclude":`.cu-landscape-content`,"has-mask":!i.fullScreen&&i.hasMask,transition:l.value,onShow:o[1]||=e=>a.$emit(`show`),onHide:o[2]||=e=>a.$emit(`hide`)},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`cu-landscape-body`,{scroll:i.scroll}])},[(0,n.createElementVNode)(`div`,r,[(0,n.renderSlot)(a.$slots,`default`)]),(0,n.createVNode)(t.t,{class:(0,n.normalizeClass)([`cu-landscape-close`,{dark:!i.hasMask||i.fullScreen}]),name:i.fullScreen?`clear`:`close`,onClick:d},null,8,[`class`,`name`])],2)]),_:3},8,[`modelValue`,`mask-closable`,`has-mask`,`transition`])],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1,73 @@
1
+ import { t as e } from "./Popup-qLk-BsRS.js";
2
+ import { t } from "./Icon-BgCtu0ZV.js";
3
+ import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderSlot as u, watch as d, withCtx as f } from "vue";
4
+ // src/components/landscape/Landscape.vue?vue&type=script&setup=true&lang.ts
5
+ var p = { class: "cu-landscape-content" }, m = /* @__PURE__ */ o({
6
+ name: "cu-landscape",
7
+ __name: "Landscape",
8
+ props: {
9
+ modelValue: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ scroll: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ fullScreen: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ hasMask: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ maskClosable: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ transition: { default: void 0 }
30
+ },
31
+ emits: [
32
+ "update:modelValue",
33
+ "input",
34
+ "show",
35
+ "hide"
36
+ ],
37
+ setup(o, { emit: m }) {
38
+ let h = o, g = m, _ = l(h.modelValue), v = n(() => h.transition ?? (h.fullScreen ? "cu-fade" : "cu-punch"));
39
+ d(() => h.modelValue, (e) => {
40
+ _.value = e;
41
+ });
42
+ function y(e) {
43
+ _.value = e, g("update:modelValue", !1), g("input", !1);
44
+ }
45
+ function b() {
46
+ _.value = !1;
47
+ }
48
+ return (n, l) => (c(), r("div", { class: s(["cu-landscape", { "is-full": o.fullScreen }]) }, [a(e, {
49
+ modelValue: _.value,
50
+ "onUpdate:modelValue": [l[0] ||= (e) => _.value = e, y],
51
+ "mask-closable": o.maskClosable,
52
+ "prevent-scroll": "",
53
+ "prevent-scroll-exclude": ".cu-landscape-content",
54
+ "has-mask": !o.fullScreen && o.hasMask,
55
+ transition: v.value,
56
+ onShow: l[1] ||= (e) => n.$emit("show"),
57
+ onHide: l[2] ||= (e) => n.$emit("hide")
58
+ }, {
59
+ default: f(() => [i("div", { class: s(["cu-landscape-body", { scroll: o.scroll }]) }, [i("div", p, [u(n.$slots, "default")]), a(t, {
60
+ class: s(["cu-landscape-close", { dark: !o.hasMask || o.fullScreen }]),
61
+ name: o.fullScreen ? "clear" : "close",
62
+ onClick: b
63
+ }, null, 8, ["class", "name"])], 2)]),
64
+ _: 3
65
+ }, 8, [
66
+ "modelValue",
67
+ "mask-closable",
68
+ "has-mask",
69
+ "transition"
70
+ ])], 2));
71
+ }
72
+ });
73
+ export { m as t };
@@ -0,0 +1,201 @@
1
+ import { t as e } from "./Popup-qLk-BsRS.js";
2
+ import { t } from "./PopupTitleBar-9P4RUMC1.js";
3
+ import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, watch as m, withCtx as h } from "vue";
4
+ // src/components/license-plate/LicensePlateInput.vue?vue&type=script&setup=true&lang.ts
5
+ var g = { class: "cu-license-plate-input" }, _ = ["onClick"], v = {
6
+ key: 0,
7
+ class: "cu-license-plate-input-item_content"
8
+ }, y = {
9
+ key: 1,
10
+ class: "cu-license-plate-input-item_content"
11
+ }, b = { key: 0 }, x = {
12
+ key: 1,
13
+ class: "emptyValue"
14
+ }, S = /* @__PURE__ */ c({
15
+ name: "cu-license-plate-input",
16
+ __name: "LicensePlateInput",
17
+ props: {
18
+ keyArray: { default: () => [] },
19
+ selectedIndex: { default: 0 }
20
+ },
21
+ emits: ["key-mapping"],
22
+ setup(e) {
23
+ return (t, r) => (u(), a("div", g, [(u(!0), a(n, null, f(e.keyArray, (n, r) => (u(), a("div", {
24
+ key: r,
25
+ class: l(["cu-license-plate-input-item", {
26
+ active: e.selectedIndex === r,
27
+ animation: e.selectedIndex === r && !n
28
+ }]),
29
+ onClick: (e) => t.$emit("key-mapping", r)
30
+ }, [r === e.keyArray.length - 1 ? (u(), a("div", y, [n && n !== " " ? (u(), a("div", b, p(n), 1)) : (u(), a("div", x))])) : (u(), a("div", v, p(n), 1))], 10, _))), 128))]));
31
+ }
32
+ }), C = { class: "cu-license-plate-keyboard" }, w = {
33
+ key: 0,
34
+ class: "cu-shortcut-row"
35
+ }, T = ["onClick"], E = {
36
+ key: 1,
37
+ class: "cu-mixed-key-board"
38
+ }, D = ["onClick"], O = { key: 0 }, k = ["onClick"], A = /* @__PURE__ */ c({
39
+ name: "cu-license-plate-keyboard",
40
+ __name: "LicensePlateKeyboard",
41
+ props: { keyboard: { default: () => ({}) } },
42
+ emits: [
43
+ "enter",
44
+ "delete",
45
+ "confirm"
46
+ ],
47
+ setup(e) {
48
+ let t = e, o = r(() => t.keyboard.shortcuts || []), s = r(() => t.keyboard.keyboardType || 1), c = r(() => t.keyboard.mixedKeyboard || []);
49
+ return (e, t) => (u(), a("div", C, [s.value === 1 ? (u(), a("div", w, [(u(!0), a(n, null, f(o.value, (t, n) => (u(), a("div", {
50
+ key: n,
51
+ class: "cu-shortcut-row-item",
52
+ onClick: (n) => e.$emit("enter", t)
53
+ }, p(t), 9, T))), 128))])) : (u(), a("div", E, [(u(!0), a(n, null, f(c.value, (t, n) => (u(), a("div", {
54
+ key: n,
55
+ class: l(["cu-mixed-key-board-item", { disabled: t.disabled }])
56
+ }, [t.type ? (u(), a("div", {
57
+ key: 0,
58
+ class: l(t.type),
59
+ onClick: (n) => t.type === "delete" ? e.$emit("delete") : e.$emit("confirm")
60
+ }, [t.type === "confirm" && t.text ? (u(), a("div", O, p(t.text), 1)) : i("", !0)], 10, D)) : (u(), a("div", {
61
+ key: 1,
62
+ onClick: (n) => !t.disabled && e.$emit("enter", t.value)
63
+ }, p(t.value), 9, k))], 2))), 128))]))]));
64
+ }
65
+ }), j = { class: "cu-license-plate" }, M = { key: 0 }, N = { class: "cu-license-plate-input-container division" }, P = {
66
+ key: 0,
67
+ class: "cu-license-plate-keyboard-container division"
68
+ }, F = { key: 1 }, I = { class: "cu-popup-content" }, L = { class: "cu-license-plate-input-container popUp" }, R = { class: "cu-license-plate-keyboard-container popUp" }, z = /* @__PURE__ */ c({
69
+ name: "cu-license-plate",
70
+ __name: "LicensePlate",
71
+ props: {
72
+ shortcuts: { default: () => /* @__PURE__ */ "京.津.渝.沪.冀.晋.辽.吉.黑.苏.浙.皖.闽.赣.鲁.豫.鄂.湘.粤.琼.川.贵.云.陕.甘.青.蒙.桂.宁.新.藏".split(".") },
73
+ modeShow: { default: "division" },
74
+ showPopUp: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ title: { default: "请输入车牌号码" },
79
+ subtitle: { default: "" },
80
+ defaultValue: { default: "" },
81
+ disorderClick: {
82
+ type: Boolean,
83
+ default: !0
84
+ }
85
+ },
86
+ emits: [
87
+ "confirm",
88
+ "hide",
89
+ "sd-keyboard",
90
+ "hd-keyboard"
91
+ ],
92
+ setup(n, { emit: c }) {
93
+ let l = n, f = c, p = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((e) => ({
94
+ value: e,
95
+ disabled: e === "I" || e === "O"
96
+ })), g = [
97
+ 1,
98
+ 2,
99
+ 3,
100
+ 4,
101
+ 5,
102
+ 6,
103
+ 7,
104
+ 8,
105
+ 9,
106
+ 0
107
+ ].map((e) => ({
108
+ value: e,
109
+ disabled: !1
110
+ })), _ = d([
111
+ "",
112
+ "",
113
+ "",
114
+ "",
115
+ "",
116
+ "",
117
+ "",
118
+ ""
119
+ ]), v = d(0), y = d(!1), b = r(() => {
120
+ let e = [], t;
121
+ if (v.value === 0) t = 1;
122
+ else {
123
+ t = 2;
124
+ let n = JSON.parse(JSON.stringify(p));
125
+ n.splice(19, 0, {
126
+ type: "delete",
127
+ disabled: !1
128
+ }), n.push({
129
+ type: "confirm",
130
+ text: "确定",
131
+ disabled: !1
132
+ });
133
+ let r = g;
134
+ v.value === 1 && (r = g.map((e) => ({
135
+ value: e.value,
136
+ disabled: !0
137
+ }))), e = r.concat(n);
138
+ }
139
+ return {
140
+ shortcuts: l.shortcuts,
141
+ mixedKeyboard: e,
142
+ keyboardType: t
143
+ };
144
+ }), x = r(() => _.value.map((e) => e || " "));
145
+ m(() => l.defaultValue, (e) => {
146
+ if (e !== "") {
147
+ let t = e.split(""), n = JSON.parse(JSON.stringify(_.value));
148
+ n.forEach((e, r) => {
149
+ n[r] = t[r] ?? "";
150
+ }), _.value = n;
151
+ }
152
+ }, { immediate: !0 });
153
+ function C(e) {
154
+ y.value ||= !0, !l.disorderClick && !_.value[e + 1] && !_.value[e - 1] && e > 0 || (v.value = e);
155
+ }
156
+ function w(e) {
157
+ _.value[v.value] = String(e ?? ""), v.value === _.value.length - 1 ? E() : v.value += 1;
158
+ }
159
+ function T() {
160
+ _.value[v.value] = "", v.value <= 0 ? l.modeShow === "division" && (y.value = !1) : --v.value;
161
+ }
162
+ function E() {
163
+ l.modeShow === "division" && (y.value = !1), f("confirm", x.value.join(""));
164
+ }
165
+ return (r, c) => (u(), a("div", j, [n.modeShow === "division" ? (u(), a("div", M, [o("div", N, [s(S, {
166
+ "key-array": _.value,
167
+ "selected-index": v.value,
168
+ onKeyMapping: C
169
+ }, null, 8, ["key-array", "selected-index"])]), y.value ? (u(), a("div", P, [s(A, {
170
+ keyboard: b.value,
171
+ onEnter: w,
172
+ onDelete: T,
173
+ onConfirm: E
174
+ }, null, 8, ["keyboard"])])) : i("", !0)])) : i("", !0), n.modeShow === "popUp" ? (u(), a("div", F, [s(e, {
175
+ "model-value": n.showPopUp,
176
+ "has-mask": !0,
177
+ position: "bottom",
178
+ "mask-closable": !1
179
+ }, {
180
+ default: h(() => [s(t, {
181
+ "only-close": "",
182
+ "large-radius": "",
183
+ title: n.title,
184
+ describe: n.subtitle,
185
+ "title-align": "left",
186
+ onCancel: c[0] ||= (e) => r.$emit("hide")
187
+ }, null, 8, ["title", "describe"]), o("div", I, [o("div", L, [s(S, {
188
+ "key-array": _.value,
189
+ "selected-index": v.value,
190
+ onKeyMapping: C
191
+ }, null, 8, ["key-array", "selected-index"])]), o("div", R, [s(A, {
192
+ keyboard: b.value,
193
+ onEnter: w,
194
+ onDelete: T,
195
+ onConfirm: E
196
+ }, null, 8, ["keyboard"])])])]),
197
+ _: 1
198
+ }, 8, ["model-value"])])) : i("", !0)]));
199
+ }
200
+ });
201
+ export { A as n, S as r, z as t };