@qynpm/ui 1.0.44 → 1.0.46

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 (264) hide show
  1. package/README.md +9 -2
  2. package/dist/index.cjs +20 -13
  3. package/dist/index.mjs +268 -102
  4. package/dist/qy-action-bar/index.cjs +3 -1
  5. package/dist/qy-action-bar/index.mjs +7 -2
  6. package/dist/qy-autocomplete/index.cjs +1 -1
  7. package/dist/qy-autocomplete/index.mjs +1 -1
  8. package/dist/qy-button/index.cjs +1 -1
  9. package/dist/qy-button/index.mjs +1 -1
  10. package/dist/qy-cascader/index.cjs +1 -1
  11. package/dist/qy-cascader/index.mjs +1 -1
  12. package/dist/qy-checkbox/index.cjs +1 -1
  13. package/dist/qy-checkbox/index.mjs +1 -1
  14. package/dist/qy-checkbox-group/index.cjs +1 -1
  15. package/dist/qy-checkbox-group/index.mjs +1 -1
  16. package/dist/qy-collapse/index.cjs +1 -1
  17. package/dist/qy-collapse/index.mjs +1 -1
  18. package/dist/qy-color-picker/index.cjs +1 -1
  19. package/dist/qy-color-picker/index.mjs +1 -1
  20. package/dist/qy-date-picker/index.cjs +1 -1
  21. package/dist/qy-date-picker/index.mjs +1 -1
  22. package/dist/qy-dialog/index.cjs +3 -2
  23. package/dist/qy-dialog/index.mjs +7 -5
  24. package/dist/qy-drawer/index.cjs +1 -1
  25. package/dist/qy-drawer/index.mjs +1 -1
  26. package/dist/qy-dropdown/index.cjs +2 -2
  27. package/dist/qy-dropdown/index.mjs +2 -2
  28. package/dist/qy-file-picker/index.cjs +1 -1
  29. package/dist/qy-file-picker/index.mjs +1 -1
  30. package/dist/qy-form-section/index.cjs +3 -1
  31. package/dist/qy-form-section/index.mjs +7 -2
  32. package/dist/qy-fullscreen/index.cjs +1 -1
  33. package/dist/qy-fullscreen/index.mjs +1 -1
  34. package/dist/qy-icon/index.cjs +1 -1
  35. package/dist/qy-icon/index.mjs +2 -2
  36. package/dist/qy-icon-picker/index.cjs +1 -1
  37. package/dist/qy-icon-picker/index.mjs +1 -1
  38. package/dist/qy-iframe/index.cjs +1 -1
  39. package/dist/qy-iframe/index.mjs +1 -1
  40. package/dist/qy-image/index.cjs +1 -1
  41. package/dist/qy-image/index.mjs +1 -1
  42. package/dist/qy-image-preview/index.cjs +1 -1
  43. package/dist/qy-image-preview/index.mjs +2 -2
  44. package/dist/qy-image-upload/index.cjs +3 -1
  45. package/dist/qy-image-upload/index.mjs +7 -2
  46. package/dist/qy-input/index.cjs +1 -1
  47. package/dist/qy-input/index.mjs +1 -1
  48. package/dist/qy-input-number/index.cjs +1 -1
  49. package/dist/qy-input-number/index.mjs +1 -1
  50. package/dist/qy-input-tag/index.cjs +1 -1
  51. package/dist/qy-input-tag/index.mjs +151 -5
  52. package/dist/qy-legacy-selection-dialog/index.cjs +8 -1
  53. package/dist/qy-legacy-selection-dialog/index.mjs +12 -2
  54. package/dist/qy-menu-actions/index.cjs +1 -1
  55. package/dist/qy-menu-actions/index.mjs +1 -1
  56. package/dist/qy-money-input/index.cjs +1 -1
  57. package/dist/qy-money-input/index.mjs +1 -1
  58. package/dist/qy-pagination/index.cjs +1 -1
  59. package/dist/qy-pagination/index.mjs +1 -1
  60. package/dist/qy-popconfirm/index.cjs +1 -1
  61. package/dist/qy-popconfirm/index.mjs +1 -1
  62. package/dist/qy-popover/index.cjs +1 -1
  63. package/dist/qy-popover/index.mjs +1 -1
  64. package/dist/qy-radio/index.cjs +1 -1
  65. package/dist/qy-radio/index.mjs +1 -1
  66. package/dist/qy-radio-group/index.cjs +1 -1
  67. package/dist/qy-radio-group/index.mjs +1 -1
  68. package/dist/qy-record-quote-search/index.cjs +4 -1
  69. package/dist/qy-record-quote-search/index.mjs +8 -2
  70. package/dist/qy-remark-image/index.cjs +3 -1
  71. package/dist/qy-remark-image/index.mjs +11 -2
  72. package/dist/qy-remote-select/index.cjs +3 -1
  73. package/dist/qy-remote-select/index.mjs +7 -2
  74. package/dist/qy-result/index.cjs +1 -1
  75. package/dist/qy-result/index.mjs +1 -1
  76. package/dist/qy-scrollbar/index.cjs +1 -1
  77. package/dist/qy-scrollbar/index.mjs +1 -1
  78. package/dist/qy-search-input/index.cjs +3 -1
  79. package/dist/qy-search-input/index.mjs +7 -2
  80. package/dist/qy-select/index.cjs +1 -1
  81. package/dist/qy-select/index.mjs +1 -1
  82. package/dist/qy-selection-dialog/index.cjs +7 -1
  83. package/dist/qy-selection-dialog/index.mjs +11 -2
  84. package/dist/qy-switch/index.cjs +1 -1
  85. package/dist/qy-switch/index.mjs +1 -1
  86. package/dist/qy-table-column-settings/index.cjs +1 -1
  87. package/dist/qy-table-column-settings/index.mjs +1 -1
  88. package/dist/qy-tabs/index.cjs +1 -1
  89. package/dist/qy-tabs/index.mjs +1 -1
  90. package/dist/qy-tag/index.cjs +1 -1
  91. package/dist/qy-tag/index.mjs +1 -1
  92. package/dist/qy-tooltip/index.cjs +1 -1
  93. package/dist/qy-tooltip/index.mjs +1 -1
  94. package/dist/qy-tree/index.cjs +1 -1
  95. package/dist/qy-tree/index.mjs +1 -1
  96. package/dist/qy-tree-select/index.cjs +1 -1
  97. package/dist/qy-tree-select/index.mjs +1 -1
  98. package/dist/qy-upload/index.cjs +1 -1
  99. package/dist/qy-upload/index.mjs +1 -1
  100. package/dist/shared/index-AvNvmJe5.cjs +1 -0
  101. package/dist/shared/{index-DvFMgAcu.mjs → index-B0CTzdRW.mjs} +1 -1
  102. package/dist/shared/index-B1J7PQMl.mjs +79 -0
  103. package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
  104. package/dist/shared/{index-Co84fsS5.mjs → index-B7j9BtSm.mjs} +88 -80
  105. package/dist/shared/{index-CiE6qJCJ.mjs → index-BAOV5iYx.mjs} +151 -143
  106. package/dist/shared/index-BN4A-O6P.mjs +727 -0
  107. package/dist/shared/index-BR7tIt2k.mjs +211 -0
  108. package/dist/shared/index-BaRw7pWi.mjs +156 -0
  109. package/dist/shared/index-BgAP_K2E.cjs +1 -0
  110. package/dist/shared/index-Blgz8PJc.cjs +1 -0
  111. package/dist/shared/index-BqzKToOL.cjs +1 -0
  112. package/dist/shared/{index-BNssRW4d.mjs → index-BuVrLl5B.mjs} +13 -13
  113. package/dist/shared/index-Bv1DrJ32.mjs +71 -0
  114. package/dist/shared/index-Bz9WjKdL.cjs +1 -0
  115. package/dist/shared/{index-BjqJCq-6.mjs → index-Bzr2RHi5.mjs} +3 -3
  116. package/dist/shared/index-C50jpQ11.mjs +295 -0
  117. package/dist/shared/index-C6G9eVku.cjs +1 -0
  118. package/dist/shared/index-CB0v25oB.cjs +1 -0
  119. package/dist/shared/{index-gMrQlV5n.cjs → index-CIXJwYI-.cjs} +1 -1
  120. package/dist/shared/index-CKkanVur.cjs +1 -0
  121. package/dist/shared/index-CLvL8LAM.cjs +1 -0
  122. package/dist/shared/index-CN2mgT5V.cjs +1 -0
  123. package/dist/shared/{index-DNnWRAFl.mjs → index-CW4s627w.mjs} +1 -1
  124. package/dist/shared/{index-8Iwma3ls.mjs → index-CXOCZlps.mjs} +2 -2
  125. package/dist/shared/{index-CUlhX6fW.cjs → index-CXnL-0Kp.cjs} +1 -1
  126. package/dist/shared/index-CZs0V4ze.cjs +1 -0
  127. package/dist/shared/index-Cqr-L0yd.mjs +285 -0
  128. package/dist/shared/index-Cu6yAwdj.mjs +124 -0
  129. package/dist/shared/index-CxTyKMEH.cjs +1 -0
  130. package/dist/shared/index-D5HS8M1P.cjs +1 -0
  131. package/dist/shared/index-D6QwZtYV.mjs +56 -0
  132. package/dist/shared/index-DCsun70c.cjs +1 -0
  133. package/dist/shared/{index-BweLwi2_.cjs → index-DEzFHeJL.cjs} +1 -1
  134. package/dist/shared/{index-2D5AFexl.mjs → index-DNMRIYkm.mjs} +1 -1
  135. package/dist/shared/index-DY2IXvwl.cjs +1 -0
  136. package/dist/shared/{index-C4F8hXzQ.mjs → index-DdGlwebp.mjs} +90 -81
  137. package/dist/shared/index-DiN5vXXD.cjs +1 -0
  138. package/dist/shared/{index-Mj7JZt7y.cjs → index-Duq5XZ5w.cjs} +1 -1
  139. package/dist/shared/index-DwHM9eYc.cjs +1 -0
  140. package/dist/shared/index-FZ5gl2au.cjs +1 -0
  141. package/dist/shared/index-PM5yNugz.mjs +573 -0
  142. package/dist/shared/index-VtM0GmfU.mjs +361 -0
  143. package/dist/shared/index-ykI9hKtc.mjs +88 -0
  144. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +40 -0
  145. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
  146. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
  147. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
  148. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
  149. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +1 -0
  150. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs} +20 -18
  151. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
  152. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +1 -0
  153. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +1 -0
  154. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +238 -0
  155. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +63 -0
  156. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +1 -0
  157. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +413 -0
  158. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +142 -0
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +1 -0
  160. package/dist/shared/{index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs → index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs} +1 -1
  161. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +1 -0
  162. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +1 -0
  163. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs → index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs} +3 -3
  164. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +219 -0
  165. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +1 -0
  166. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +176 -0
  167. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +1 -0
  168. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs} +59 -57
  169. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs} +24 -18
  170. package/dist/shared/js.cookie-BA-dL3zT.mjs +74 -0
  171. package/dist/shared/js.cookie-BmJmHEx1.cjs +1 -0
  172. package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
  173. package/dist/shared/overlay-stack-eI-yzYU6.mjs +34 -0
  174. package/dist/shared/{utils-DoyI5oM8.mjs → utils-DpZkMLkb.mjs} +63 -49
  175. package/dist/shared/utils-DpkN3Zat.cjs +1 -0
  176. package/index.d.ts +44 -15
  177. package/package.json +1 -1
  178. package/qy-action-bar/index.d.ts +16 -4
  179. package/qy-autocomplete/index.d.ts +43 -2
  180. package/qy-checkbox/index.d.ts +1 -0
  181. package/qy-checkbox-group/index.d.ts +1 -0
  182. package/qy-date-picker/index.d.ts +1 -0
  183. package/qy-dialog/index.d.ts +4 -0
  184. package/qy-form-section/index.d.ts +22 -4
  185. package/qy-image/index.d.ts +1 -0
  186. package/qy-image-preview/index.d.ts +8 -4
  187. package/qy-menu-actions/index.d.ts +21 -2
  188. package/qy-money-input/index.d.ts +1 -0
  189. package/qy-pagination/index.d.ts +4 -0
  190. package/qy-popover/index.d.ts +4 -0
  191. package/qy-radio-group/index.d.ts +1 -0
  192. package/qy-record-quote-search/index.d.ts +53 -4
  193. package/qy-remark-image/index.d.ts +48 -4
  194. package/qy-remote-select/index.d.ts +53 -2
  195. package/qy-search-input/index.d.ts +66 -4
  196. package/qy-select/index.d.ts +4 -0
  197. package/qy-selection-dialog/index.d.ts +63 -2
  198. package/qy-switch/index.d.ts +1 -0
  199. package/qy-table-column-settings/index.d.ts +19 -2
  200. package/qy-tooltip/index.d.ts +5 -0
  201. package/qy-tree-select/index.d.ts +1 -0
  202. package/dist/shared/index-5dxbpQb_.cjs +0 -1
  203. package/dist/shared/index-BEcS8y8g.mjs +0 -68
  204. package/dist/shared/index-BSTMCPDj.mjs +0 -72
  205. package/dist/shared/index-Bh9hxVFh.mjs +0 -766
  206. package/dist/shared/index-CGq7Q_hV.mjs +0 -119
  207. package/dist/shared/index-CVYNG8Fc.cjs +0 -1
  208. package/dist/shared/index-CmgTSaFS.cjs +0 -1
  209. package/dist/shared/index-CnVhquq5.cjs +0 -1
  210. package/dist/shared/index-D27mwR57.cjs +0 -1
  211. package/dist/shared/index-DKw-seoh.cjs +0 -1
  212. package/dist/shared/index-DRugp8x0.cjs +0 -1
  213. package/dist/shared/index-DTbGlDqr.cjs +0 -1
  214. package/dist/shared/index-MyDDX-zj.cjs +0 -1
  215. package/dist/shared/index-afOuq3YX.cjs +0 -1
  216. package/dist/shared/index-rSrDnOpu.cjs +0 -1
  217. package/dist/shared/index-rjciSHaR.mjs +0 -2362
  218. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  219. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  220. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  221. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
  222. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  223. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  224. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  225. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
  226. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  227. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
  228. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  229. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
  230. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
  231. package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
  232. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  233. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  234. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
  235. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  236. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  237. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  238. package/dist/shared/utils-BjEXwY3L.cjs +0 -1
  239. /package/dist/shared/{index-DiEag4sK.cjs → index-5UAiwqdT.cjs} +0 -0
  240. /package/dist/shared/{index-B3GsIwhf.mjs → index-BKdw4jD_.mjs} +0 -0
  241. /package/dist/shared/{index-B25yA5j-.mjs → index-BVaIvVMi.mjs} +0 -0
  242. /package/dist/shared/{index-HNFq7v-A.cjs → index-Bdlzmh8A.cjs} +0 -0
  243. /package/dist/shared/{index-Bq9quq2D.cjs → index-BsNtvE6i.cjs} +0 -0
  244. /package/dist/shared/{index-B3YHS3Aa.mjs → index-CGH2ROZV.mjs} +0 -0
  245. /package/dist/shared/{index-ByQyMTPg.mjs → index-DvXzDAmi.mjs} +0 -0
  246. /package/dist/shared/{index-EIFVul2W.cjs → index-O6K0DO_k.cjs} +0 -0
  247. /package/dist/shared/{index-B3XwO-Lc.mjs → index-QN7-6GpS.mjs} +0 -0
  248. /package/dist/shared/{index-CVWru9T3.cjs → index-_Bagw0Pj.cjs} +0 -0
  249. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs → index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs} +0 -0
  250. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs → index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs} +0 -0
  251. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs → index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs} +0 -0
  252. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs → index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs} +0 -0
  253. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs} +0 -0
  254. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs → index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs} +0 -0
  255. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs} +0 -0
  256. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs → index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs} +0 -0
  257. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs → index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs} +0 -0
  258. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs → index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs} +0 -0
  259. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs → index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs} +0 -0
  260. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs → index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs} +0 -0
  261. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs → index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs} +0 -0
  262. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs → index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs} +0 -0
  263. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-D9DraThL.cjs → index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs} +0 -0
  264. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs → index.vue_vue_type_style_index_0_lang-yci929so.cjs} +0 -0
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),A=require("element-plus"),S=a.defineComponent({name:"QyInputTag",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},max:{},trigger:{default:"enter"},tagTone:{default:"neutral"},tagEffect:{default:"light"},size:{},clearable:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},placeholder:{},autofocus:{type:Boolean},validateEvent:{type:Boolean,default:!0},id:{},tabindex:{},maxlength:{},minlength:{},autocomplete:{},ariaLabel:{}},emits:["update:modelValue","change","input","add","remove","clear","focus","blur"],setup(s,{expose:c,emit:f}){const t=s,o=f,g=a.useAttrs(),r=a.ref(null),u=a.ref(null),m=a.computed(()=>Object.fromEntries(Object.entries(g).filter(([e])=>e==="class"||e==="style"||e==="title"||e==="role"||e.startsWith("data-")||e.startsWith("aria-")))),p=a.computed(()=>t.tagTone==="neutral"?"info":t.tagTone),h=a.computed(()=>t.trigger==="space"?"Space":"Enter");function i(e){return e?[...e]:[]}function v(e,n){if(e.length!==n.length+1)return null;for(let l=0;l<e.length;l+=1)if(e[l]!==n[l]&&e.slice(l+1).every((d,z)=>d===n[l+z]))return{value:e[l],index:l};return{value:e[e.length-1],index:e.length-1}}function x(e){const n=i(t.modelValue),l=i(e);u.value=l.length===0&&n.length>0?null:v(n,l),o("update:modelValue",l)}function b(e){o("change",i(e))}function y(e){o("input",e)}function T(e){o("add",e)}function C(e){const n=u.value,l=(n==null?void 0:n.value)===e?n.index:i(t.modelValue).indexOf(e);o("remove",e,l),u.value=null}function B(){o("clear"),u.value=null}function V(e){o("focus",e)}function E(e){o("blur",e)}function R(){var e,n;(n=(e=r.value)==null?void 0:e.focus)==null||n.call(e)}function $(){var e,n;(n=(e=r.value)==null?void 0:e.blur)==null||n.call(e)}return c({focus:R,blur:$}),(e,n)=>(a.openBlock(),a.createBlock(a.unref(A.ElInputTag),a.mergeProps({ref_key:"inputTagRef",ref:r,class:"qy-input-tag"},m.value,{"model-value":t.modelValue,max:t.max,"tag-type":p.value,"tag-effect":t.tagEffect,trigger:h.value,size:t.size,clearable:t.clearable,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder,autofocus:t.autofocus,"validate-event":t.validateEvent,id:t.id,tabindex:t.tabindex,maxlength:t.maxlength,minlength:t.minlength,autocomplete:t.autocomplete,"aria-label":t.ariaLabel,"onUpdate:modelValue":x,onChange:b,onInput:y,onAddTag:T,onRemoveTag:C,onClear:B,onFocusCapture:V,onBlurCapture:E}),a.createSlots({_:2},[e.$slots.tag?{name:"tag",fn:a.withCtx(({value:l,index:d})=>[a.renderSlot(e.$slots,"tag",{value:l,index:d})]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:a.withCtx(()=>[a.renderSlot(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots.suffix?{name:"suffix",fn:a.withCtx(()=>[a.renderSlot(e.$slots,"suffix")]),key:"2"}:void 0]),1040,["model-value","max","tag-type","tag-effect","trigger","size","clearable","disabled","readonly","placeholder","autofocus","validate-event","id","tabindex","maxlength","minlength","autocomplete","aria-label"]))}});exports._sfc_main=S;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),z=require("element-plus"),S=a.defineComponent({name:"QyAutocomplete",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},options:{default:()=>[]},valueKey:{default:"value"},labelKey:{default:"label"},placeholder:{default:"请输入"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},filterMethod:{type:Function,default:void 0}},emits:["update:modelValue","input","change","select","focus","blur","clear"],setup(u,{expose:s,emit:f}){const r=u,n=f,i=a.useAttrs(),c=a.ref(null),p=a.computed(()=>["qy-autocomplete__popper",r.popperClass].filter(Boolean).join(" ")),m=a.computed(()=>{const e=a.unref(r.options);return(Array.isArray(e)?e:a.unref(e==null?void 0:e.value)||[]).map(l=>({...l,value:(l==null?void 0:l[r.valueKey])??(l==null?void 0:l.value)??(l==null?void 0:l[r.labelKey])??(l==null?void 0:l.label)??""}))});function d(e,t){const l=String(e??""),q=m.value.filter(o=>r.filterMethod?r.filterMethod(l,o):l?String(o.value??"").includes(l):!0);t(q)}function h(e){n("update:modelValue",e)}function b(e){n("input",e)}function v(e){n("change",e)}function y(e){n("select",e)}function g(e){n("focus",e)}function B(e){n("blur",e)}function C(){n("clear")}function A(){var e,t;(t=(e=c.value)==null?void 0:e.focus)==null||t.call(e)}function V(){var e,t;(t=(e=c.value)==null?void 0:e.blur)==null||t.call(e)}return s({querySearch:d,focus:A,blur:V}),(e,t)=>(a.openBlock(),a.createBlock(a.unref(z.ElAutocomplete),a.mergeProps({ref_key:"autocompleteRef",ref:c},a.unref(i),{"model-value":u.modelValue,"fetch-suggestions":d,placeholder:u.placeholder,disabled:u.disabled,clearable:u.clearable,size:u.size,teleported:u.teleported,"append-to":u.appendTo,"popper-class":p.value,"onUpdate:modelValue":h,onInput:b,onChange:v,onSelect:y,onFocus:g,onBlur:B,onClear:C}),null,16,["model-value","placeholder","disabled","clearable","size","teleported","append-to","popper-class"]))}});exports._sfc_main=S;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),c=require("element-plus"),s=require("./utils-BjEXwY3L.cjs"),m=e.defineComponent({name:"QyImagePreview",__name:"index",props:{open:{type:Boolean,default:!1},urlList:{default:()=>[]},initialIndex:{default:0},hideOnClickModal:{type:Boolean,default:!0}},emits:["update:open","close"],setup(n,{emit:a}){const l=n,i=a;let r="";const u=e.computed(()=>l.urlList.map(t=>s.normalizeImageSrc(t)).filter(Boolean));e.watch(()=>l.open,t=>{if(t){r=document.body.style.overflow,document.body.style.overflow="hidden";return}o()}),e.onBeforeUnmount(o);function d(){o(),i("update:open",!1),i("close")}function o(){typeof document>"u"||(document.body.style.overflow=r)}return(t,f)=>n.open&&u.value.length?(e.openBlock(),e.createBlock(e.unref(c.ElImageViewer),{key:0,"url-list":u.value,"initial-index":n.initialIndex,"hide-on-click-modal":n.hideOnClickModal,teleported:!0,onClose:d},null,8,["url-list","initial-index","hide-on-click-modal"])):e.createCommentVNode("",!0)}});exports._sfc_main=m;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-CVYNG8Fc.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
@@ -1,143 +0,0 @@
1
- import { defineComponent as S, useAttrs as _, ref as f, computed as d, openBlock as j, createBlock as F, unref as L, mergeProps as U, createSlots as W, withCtx as s, renderSlot as c } from "vue";
2
- import { ElInputTag as k } from "element-plus";
3
- const M = /* @__PURE__ */ S({
4
- name: "QyInputTag",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- props: {
8
- modelValue: { default: () => [] },
9
- max: {},
10
- trigger: { default: "enter" },
11
- tagTone: { default: "neutral" },
12
- tagEffect: { default: "light" },
13
- size: {},
14
- clearable: { type: Boolean },
15
- disabled: { type: Boolean },
16
- readonly: { type: Boolean },
17
- placeholder: {},
18
- autofocus: { type: Boolean },
19
- validateEvent: { type: Boolean, default: !0 },
20
- id: {},
21
- tabindex: {},
22
- maxlength: {},
23
- minlength: {},
24
- autocomplete: {},
25
- ariaLabel: {}
26
- },
27
- emits: ["update:modelValue", "change", "input", "add", "remove", "clear", "focus", "blur"],
28
- setup(g, { expose: m, emit: p }) {
29
- const t = g, l = p, h = _(), i = f(null), o = f(null), v = d(() => Object.fromEntries(
30
- Object.entries(h).filter(
31
- ([e]) => e === "class" || e === "style" || e === "title" || e === "role" || e.startsWith("data-") || e.startsWith("aria-")
32
- )
33
- )), x = d(
34
- () => t.tagTone === "neutral" ? "info" : t.tagTone
35
- ), b = d(
36
- () => t.trigger === "space" ? "Space" : "Enter"
37
- );
38
- function u(e) {
39
- return e ? [...e] : [];
40
- }
41
- function y(e, a) {
42
- if (e.length !== a.length + 1) return null;
43
- for (let n = 0; n < e.length; n += 1)
44
- if (e[n] !== a[n] && e.slice(n + 1).every((r, O) => r === a[n + O]))
45
- return { value: e[n], index: n };
46
- return { value: e[e.length - 1], index: e.length - 1 };
47
- }
48
- function T(e) {
49
- const a = u(t.modelValue), n = u(e);
50
- o.value = n.length === 0 && a.length > 0 ? null : y(a, n), l("update:modelValue", n);
51
- }
52
- function B(e) {
53
- l("change", u(e));
54
- }
55
- function C(e) {
56
- l("input", e);
57
- }
58
- function V(e) {
59
- l("add", e);
60
- }
61
- function E(e) {
62
- const a = o.value, n = (a == null ? void 0 : a.value) === e ? a.index : u(t.modelValue).indexOf(e);
63
- l("remove", e, n), o.value = null;
64
- }
65
- function R() {
66
- l("clear"), o.value = null;
67
- }
68
- function $(e) {
69
- l("focus", e);
70
- }
71
- function z(e) {
72
- l("blur", e);
73
- }
74
- function A() {
75
- var e, a;
76
- (a = (e = i.value) == null ? void 0 : e.focus) == null || a.call(e);
77
- }
78
- function I() {
79
- var e, a;
80
- (a = (e = i.value) == null ? void 0 : e.blur) == null || a.call(e);
81
- }
82
- return m({ focus: A, blur: I }), (e, a) => (j(), F(L(k), U({
83
- ref_key: "inputTagRef",
84
- ref: i,
85
- class: "qy-input-tag"
86
- }, v.value, {
87
- "model-value": t.modelValue,
88
- max: t.max,
89
- "tag-type": x.value,
90
- "tag-effect": t.tagEffect,
91
- trigger: b.value,
92
- size: t.size,
93
- clearable: t.clearable,
94
- disabled: t.disabled,
95
- readonly: t.readonly,
96
- placeholder: t.placeholder,
97
- autofocus: t.autofocus,
98
- "validate-event": t.validateEvent,
99
- id: t.id,
100
- tabindex: t.tabindex,
101
- maxlength: t.maxlength,
102
- minlength: t.minlength,
103
- autocomplete: t.autocomplete,
104
- "aria-label": t.ariaLabel,
105
- "onUpdate:modelValue": T,
106
- onChange: B,
107
- onInput: C,
108
- onAddTag: V,
109
- onRemoveTag: E,
110
- onClear: R,
111
- onFocusCapture: $,
112
- onBlurCapture: z
113
- }), W({ _: 2 }, [
114
- e.$slots.tag ? {
115
- name: "tag",
116
- fn: s(({ value: n, index: r }) => [
117
- c(e.$slots, "tag", {
118
- value: n,
119
- index: r
120
- })
121
- ]),
122
- key: "0"
123
- } : void 0,
124
- e.$slots.prefix ? {
125
- name: "prefix",
126
- fn: s(() => [
127
- c(e.$slots, "prefix")
128
- ]),
129
- key: "1"
130
- } : void 0,
131
- e.$slots.suffix ? {
132
- name: "suffix",
133
- fn: s(() => [
134
- c(e.$slots, "suffix")
135
- ]),
136
- key: "2"
137
- } : void 0
138
- ]), 1040, ["model-value", "max", "tag-type", "tag-effect", "trigger", "size", "clearable", "disabled", "readonly", "placeholder", "autofocus", "validate-event", "id", "tabindex", "maxlength", "minlength", "autocomplete", "aria-label"]));
139
- }
140
- });
141
- export {
142
- M as _
143
- };
@@ -1,94 +0,0 @@
1
- import { defineComponent as x, useAttrs as K, ref as M, computed as s, unref as r, openBlock as k, createBlock as q, mergeProps as F } from "vue";
2
- import { ElAutocomplete as I } from "element-plus";
3
- const T = /* @__PURE__ */ x({
4
- name: "QyAutocomplete",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- props: {
8
- modelValue: { default: "" },
9
- options: { default: () => [] },
10
- valueKey: { default: "value" },
11
- labelKey: { default: "label" },
12
- placeholder: { default: "请输入" },
13
- disabled: { type: Boolean, default: !1 },
14
- clearable: { type: Boolean, default: !0 },
15
- size: { default: void 0 },
16
- teleported: { type: Boolean, default: !0 },
17
- appendTo: { default: "body" },
18
- popperClass: { default: "" },
19
- filterMethod: { type: Function, default: void 0 }
20
- },
21
- emits: ["update:modelValue", "input", "change", "select", "focus", "blur", "clear"],
22
- setup(t, { expose: f, emit: p }) {
23
- const n = t, u = p, i = K(), d = M(null), m = s(
24
- () => ["qy-autocomplete__popper", n.popperClass].filter(Boolean).join(" ")
25
- ), h = s(() => {
26
- const e = r(n.options);
27
- return (Array.isArray(e) ? e : r(e == null ? void 0 : e.value) || []).map((l) => ({
28
- ...l,
29
- value: (l == null ? void 0 : l[n.valueKey]) ?? (l == null ? void 0 : l.value) ?? (l == null ? void 0 : l[n.labelKey]) ?? (l == null ? void 0 : l.label) ?? ""
30
- }));
31
- });
32
- function c(e, a) {
33
- const l = String(e ?? ""), S = h.value.filter((o) => n.filterMethod ? n.filterMethod(l, o) : l ? String(o.value ?? "").includes(l) : !0);
34
- a(S);
35
- }
36
- function b(e) {
37
- u("update:modelValue", e);
38
- }
39
- function y(e) {
40
- u("input", e);
41
- }
42
- function v(e) {
43
- u("change", e);
44
- }
45
- function g(e) {
46
- u("select", e);
47
- }
48
- function B(e) {
49
- u("focus", e);
50
- }
51
- function C(e) {
52
- u("blur", e);
53
- }
54
- function A() {
55
- u("clear");
56
- }
57
- function V() {
58
- var e, a;
59
- (a = (e = d.value) == null ? void 0 : e.focus) == null || a.call(e);
60
- }
61
- function z() {
62
- var e, a;
63
- (a = (e = d.value) == null ? void 0 : e.blur) == null || a.call(e);
64
- }
65
- return f({
66
- querySearch: c,
67
- focus: V,
68
- blur: z
69
- }), (e, a) => (k(), q(r(I), F({
70
- ref_key: "autocompleteRef",
71
- ref: d
72
- }, r(i), {
73
- "model-value": t.modelValue,
74
- "fetch-suggestions": c,
75
- placeholder: t.placeholder,
76
- disabled: t.disabled,
77
- clearable: t.clearable,
78
- size: t.size,
79
- teleported: t.teleported,
80
- "append-to": t.appendTo,
81
- "popper-class": m.value,
82
- "onUpdate:modelValue": b,
83
- onInput: y,
84
- onChange: v,
85
- onSelect: g,
86
- onFocus: B,
87
- onBlur: C,
88
- onClear: A
89
- }), null, 16, ["model-value", "placeholder", "disabled", "clearable", "size", "teleported", "append-to", "popper-class"]));
90
- }
91
- });
92
- export {
93
- T as _
94
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent as u, computed as c, watch as m, onBeforeUnmount as f, openBlock as s, createBlock as p, unref as y, createCommentVNode as h } from "vue";
2
- import { ElImageViewer as v } from "element-plus";
3
- import { n as w } from "./utils-DoyI5oM8.mjs";
4
- const I = /* @__PURE__ */ u({
5
- name: "QyImagePreview",
6
- __name: "index",
7
- props: {
8
- open: { type: Boolean, default: !1 },
9
- urlList: { default: () => [] },
10
- initialIndex: { default: 0 },
11
- hideOnClickModal: { type: Boolean, default: !0 }
12
- },
13
- emits: ["update:open", "close"],
14
- setup(e, { emit: a }) {
15
- const n = e, l = a;
16
- let i = "";
17
- const r = c(
18
- () => n.urlList.map((o) => w(o)).filter(Boolean)
19
- );
20
- m(
21
- () => n.open,
22
- (o) => {
23
- if (o) {
24
- i = document.body.style.overflow, document.body.style.overflow = "hidden";
25
- return;
26
- }
27
- t();
28
- }
29
- ), f(t);
30
- function d() {
31
- t(), l("update:open", !1), l("close");
32
- }
33
- function t() {
34
- typeof document > "u" || (document.body.style.overflow = i);
35
- }
36
- return (o, k) => e.open && r.value.length ? (s(), p(y(v), {
37
- key: 0,
38
- "url-list": r.value,
39
- "initial-index": e.initialIndex,
40
- "hide-on-click-modal": e.hideOnClickModal,
41
- teleported: !0,
42
- onClose: d
43
- }, null, 8, ["url-list", "initial-index", "hide-on-click-modal"])) : h("", !0);
44
- }
45
- });
46
- export {
47
- I as _
48
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),m=require("element-plus"),f=require("./index-DKw-seoh.cjs"),b=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},disabled:{type:Boolean,default:!1},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:i}){const l=d,s=i,o=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(o).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){s("update:modelValue",a.slice())}function u(a){s("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(n.value,{"model-value":l.modelValue,disabled:l.disabled,min:l.min,max:l.max,size:l.size,"aria-label":l.ariaLabel,"onUpdate:modelValue":r,onChange:u}),{default:e.withCtx(()=>[a.$slots.default?e.renderSlot(a.$slots,"default",{},void 0,void 0,0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.options,(t,c)=>(e.openBlock(),e.createBlock(f.Checkbox,{key:`${String(t.value)}-${c}`,"model-value":l.modelValue.includes(t.value),value:t.value,disabled:l.disabled||t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["model-value","value","disabled"]))),128))]),_:3},16,["model-value","disabled","min","max","size","aria-label"]))}});exports._sfc_main=b;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),q=require("element-plus"),E=t.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},precision:{default:2},min:{default:void 0},max:{default:void 0},allowNegative:{type:Boolean,default:!1},formatTrigger:{default:"blur"},emptyValue:{default:""},placeholder:{default:void 0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},id:{default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},tabindex:{default:void 0},ariaLabel:{default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(l,{expose:g,emit:y}){const a=l,i=y,V=t.useAttrs(),d=t.ref(null),s=t.ref(u(a.modelValue)),N=t.computed(()=>u(a.modelValue));t.watch(()=>a.modelValue,e=>{s.value=u(e)});function u(e){return e==null?"":String(e)}function b(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function m(e){const n=u(e);let r="",c=!1,x=!1;const h=b(a.precision);for(let f=0;f<n.length;f+=1){const o=n[f];if(o>="0"&&o<="9"){r+=o;continue}if(o==="."&&h>0&&!c){r+=o,c=!0;continue}o==="-"&&a.allowNegative&&f===0&&!x&&(r+=o,x=!0)}if(h>0&&c){const[f,o=""]=r.split(".");return`${f}.${o.slice(0,h)}`}return r}function $(e){let n=e;return typeof a.min=="number"&&Number.isFinite(a.min)&&(n=Math.max(n,a.min)),typeof a.max=="number"&&Number.isFinite(a.max)&&(n=Math.min(n,a.max)),n}function v(e){const n=m(e);if(!n||n==="-"||n===".")return u(a.emptyValue);const r=Number(n);if(Number.isNaN(r))return u(a.emptyValue);const c=b(a.precision);return $(r).toFixed(c)}function p(e){s.value=e,i("update:modelValue",e)}function w(e){const n=m(e);p(n)}function B(e){const n=m(e);s.value=n,i("input",n)}function C(e){const n=a.formatTrigger==="change"?v(e):m(e);n!==u(a.modelValue)&&p(n),i("change",n)}function M(e){i("focus",e)}function k(e){if(a.formatTrigger==="blur"){const n=v(s.value);n!==u(a.modelValue)&&p(n)}i("blur",e)}function z(){const e=u(a.emptyValue);s.value=e,i("update:modelValue",e),i("clear")}function F(e){i("enter",e)}function I(){var e,n;(n=(e=d.value)==null?void 0:e.focus)==null||n.call(e)}function S(){var e,n;(n=(e=d.value)==null?void 0:e.blur)==null||n.call(e)}function A(){var e,n;(n=(e=d.value)==null?void 0:e.select)==null||n.call(e)}function P(){var e,n;(n=(e=d.value)==null?void 0:e.clear)==null||n.call(e)}function T(){var e;return((e=d.value)==null?void 0:e.input)||null}return g({focus:I,blur:S,select:A,clear:P,getNativeInput:T}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(q.ElInput),t.mergeProps({ref_key:"inputRef",ref:d},t.unref(V),{"model-value":N.value,inputmode:"decimal",placeholder:l.placeholder,clearable:l.clearable,disabled:l.disabled,readonly:l.readonly,size:l.size,name:l.name,id:l.id,autocomplete:l.autocomplete,autofocus:l.autofocus,maxlength:l.maxlength,minlength:l.minlength,tabindex:l.tabindex,"aria-label":l.ariaLabel,"onUpdate:modelValue":w,onInput:B,onChange:C,onFocus:M,onBlur:k,onClear:z,onKeydown:t.withKeys(F,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value","placeholder","clearable","disabled","readonly","size","name","id","autocomplete","autofocus","maxlength","minlength","tabindex","aria-label"]))}});exports._sfc_main=E;
@@ -1,61 +0,0 @@
1
- import { defineComponent as p, useAttrs as b, computed as h, openBlock as t, createBlock as s, unref as v, mergeProps as x, withCtx as i, renderSlot as g, createElementBlock as C, Fragment as V, renderList as _, createTextVNode as z, toDisplayString as B } from "vue";
2
- import { ElCheckboxGroup as $ } from "element-plus";
3
- import { C as A } from "./index-BSTMCPDj.mjs";
4
- const k = /* @__PURE__ */ p({
5
- name: "QyCheckboxGroup",
6
- inheritAttrs: !1,
7
- __name: "index",
8
- props: {
9
- modelValue: { default: () => [] },
10
- options: { default: () => [] },
11
- disabled: { type: Boolean, default: !1 },
12
- min: {},
13
- max: {},
14
- size: { default: void 0 },
15
- ariaLabel: {}
16
- },
17
- emits: ["update:modelValue", "change"],
18
- setup(o, { emit: r }) {
19
- const a = o, d = r, n = b(), u = h(
20
- () => Object.fromEntries(
21
- Object.entries(n).filter(
22
- ([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e === "id" || e.startsWith("data-") || e.startsWith("aria-")
23
- )
24
- )
25
- );
26
- function m(e) {
27
- d("update:modelValue", e.slice());
28
- }
29
- function c(e) {
30
- d("change", e.slice());
31
- }
32
- return (e, E) => (t(), s(v($), x(u.value, {
33
- "model-value": a.modelValue,
34
- disabled: a.disabled,
35
- min: a.min,
36
- max: a.max,
37
- size: a.size,
38
- "aria-label": a.ariaLabel,
39
- "onUpdate:modelValue": m,
40
- onChange: c
41
- }), {
42
- default: i(() => [
43
- e.$slots.default ? g(e.$slots, "default", {}, void 0, void 0, 0) : (t(!0), C(V, { key: 1 }, _(a.options, (l, f) => (t(), s(A, {
44
- key: `${String(l.value)}-${f}`,
45
- "model-value": a.modelValue.includes(l.value),
46
- value: l.value,
47
- disabled: a.disabled || l.disabled
48
- }, {
49
- default: i(() => [
50
- z(B(l.label), 1)
51
- ]),
52
- _: 2
53
- }, 1032, ["model-value", "value", "disabled"]))), 128))
54
- ]),
55
- _: 3
56
- }, 16, ["model-value", "disabled", "min", "max", "size", "aria-label"]));
57
- }
58
- });
59
- export {
60
- k as _
61
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),u=require("element-plus"),r=e.defineComponent({name:"QyTooltip",inheritAttrs:!1,__name:"index",props:{content:{default:""},placement:{default:"top"},effect:{default:"dark"},disabled:{type:Boolean,default:!1},showDelay:{default:0},hideDelay:{default:200},offset:{default:12},maxWidth:{default:320}},emits:["open","close"],setup(t,{emit:f}){const i=f,d=e.computed(()=>typeof t.maxWidth=="number"?`${t.maxWidth}px`:t.maxWidth),s=e.computed(()=>({"--qy-tooltip-max-width":d.value})),l=e.ref(!1);let n=!1;e.onBeforeUnmount(()=>{n=!0});function o(a){n||a===l.value||(l.value=a,i(a?"open":"close"))}function c(a){o(a)}return e.watch(()=>t.disabled,a=>{a&&o(!1)}),(a,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElTooltip),{content:t.content,placement:t.placement,effect:t.effect,disabled:t.disabled,"show-after":t.showDelay,"hide-after":t.hideDelay,offset:t.offset,trigger:["hover","focus"],enterable:!1,"raw-content":!1,"popper-class":"qy-tooltip-popper","popper-style":s.value,"onUpdate:visible":c},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["content","placement","effect","disabled","show-after","hide-after","offset","popper-style"]))}});exports._sfc_main=r;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),N=require("@element-plus/icons-vue"),T=require("element-plus"),f=[],_={class:"qy-popconfirm__message"},ee={key:0,class:"qy-popconfirm__icon","aria-hidden":"true"},te={"data-testid":"qy-popconfirm-title",class:"qy-popconfirm__title"},ne={class:"qy-popconfirm__actions"},oe=t.defineComponent({name:"QyPopconfirm",inheritAttrs:!1,__name:"index",props:{title:{type:String,required:!0},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},width:{type:[Number,String],default:220},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},variant:{type:String,default:"warning"},confirmType:{type:String,default:"primary"},showIcon:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!0}},emits:["update:open","open-change","confirm","cancel","close"],setup(i,{emit:$}){const o=i,c=$,z=t.useAttrs(),g=t.ref(null),C=t.ref(null),B=t.computed(()=>o.open!==void 0),L=o.open===!0&&!o.disabled,k=t.ref(L),s=t.ref(L),a=t.ref(L),r=t.ref(null),m=t.ref(!1),y=t.ref(null),h={};let u=!1,p,w,b=!1,E=null;const S=t.computed(()=>o.disabled?!1:B.value?o.open===!0:k.value),M=t.computed(()=>{const e={};for(const[n,v]of Object.entries(z))(n==="class"||n==="style"||n==="id"||n==="title"||n==="tabindex"||n==="role"||n.startsWith("data-")||n.startsWith("aria-")||/^onKey(?:down|up|press)/i.test(n))&&(e[n]=v);return e}),O=t.computed(()=>typeof o.width=="number"?`${o.width}px`:o.width),H=t.computed(()=>({"--qy-popconfirm-width":O.value,"--qy-popconfirm-mobile-gutter":"24px"})),K=t.computed(()=>o.variant==="danger"?N.CircleCloseFilled:o.variant==="info"?N.InfoFilled:N.WarningFilled);function q(){return f[f.length-1]===h}function x(){f.includes(h)||f.push(h)}function V(){const e=f.indexOf(h);e>=0&&f.splice(e,1)}function D(e){var I,W;const n=document.activeElement;if(n instanceof HTMLElement&&((I=g.value)!=null&&I.contains(n))){y.value=n;return}const v=e==null?void 0:e.target;v instanceof HTMLElement&&((W=C.value)!=null&&W.contains(v))&&(y.value=v)}function Q(){const e=y.value;y.value=null,e!=null&&e.isConnected&&e.focus()}function d(){if(u)return;const e=S.value;s.value!==e&&(u=!0,p=e,w=e?void 0:r.value??(o.disabled?"disabled":"external"),s.value=e)}function l(e,n){e&&o.disabled||(!e&&n&&r.value===null&&(r.value=n),B.value?o.open!==e&&c("update:open",e):k.value!==e&&(k.value=e,c("update:open",e)),d())}function U(){var e;return r.value?r.value:E instanceof Node&&((e=g.value)!=null&&e.contains(E))?"trigger":"outside"}function j(e){if(e){D(),l(!0);return}if(o.confirmLoading)return;const n=U();!q()&&n!=="external"&&n!=="disabled"||l(!1,n)}function G(e){var n;!(e.target instanceof Node)||!((n=C.value)!=null&&n.contains(e.target))||o.confirmLoading||(a.value||s.value?(r.value="trigger",l(!1,"trigger")):(D(e),l(!0)))}function J(){o.disabled||o.confirmLoading||m.value||(m.value=!0,c("confirm"),o.closeOnConfirm&&l(!1,"confirm"))}function X(){o.disabled||o.confirmLoading||(c("cancel"),l(!1,"cancel"))}function A(e){e.key!=="Escape"&&e.code!=="Escape"||o.confirmLoading||!a.value||!q()||(e.preventDefault(),l(!1,"escape"))}function R(e){E=e.target}function P(e){E=e.target}function F(e){var n;o.confirmLoading||!a.value||!q()||e.target instanceof Node&&((n=g.value)!=null&&n.contains(e.target)||e.target instanceof Element&&e.target.closest(".qy-popconfirm-popper")||l(!1,"outside"))}function Y(){!u||p!==!0||(u=!1,p=void 0,a.value=!0,x(),r.value=null,w=void 0,c("open-change",!0),d())}function Z(){!u||p!==!1||(u=!1,p=void 0,a.value=!1,V(),c("open-change",!1),c("close",w??r.value??"external"),r.value=null,w=void 0,m.value=!1,b=!1,Q(),d())}return t.watch(S,()=>d()),t.watch(()=>o.open,(e,n)=>{e!==n&&(e===!1&&(a.value||s.value)&&r.value===null&&(r.value="external"),d())}),t.watch(()=>o.disabled,e=>{e&&(a.value||s.value)&&(r.value="disabled"),d()}),t.watch(()=>o.confirmLoading,e=>{e?b=!0:b&&(b=!1,a.value&&(m.value=!1))}),t.onMounted(()=>{a.value&&x(),window.addEventListener("keydown",A),document.addEventListener("pointerdown",R,!0),document.addEventListener("mousedown",P,!0),document.addEventListener("click",F)}),t.onBeforeUnmount(()=>{V(),window.removeEventListener("keydown",A),document.removeEventListener("pointerdown",R,!0),document.removeEventListener("mousedown",P,!0),document.removeEventListener("click",F)}),(e,n)=>(t.openBlock(),t.createElementBlock("span",t.mergeProps({ref_key:"rootRef",ref:g,class:"qy-popconfirm"},M.value,{onClickCapture:G}),[t.createVNode(t.unref(T.ElPopover),{visible:s.value,trigger:"click",placement:i.placement,width:i.width,disabled:i.disabled,"popper-style":H.value,"popper-class":"qy-popconfirm-popper","onUpdate:visible":j,onAfterEnter:Y,onAfterLeave:Z},{reference:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"referenceRef",ref:C,"data-qy-popconfirm-reference":""},[t.renderSlot(e.$slots,"reference")],512)]),default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-popconfirm__content",`is-${i.variant}`]),"data-qy-popconfirm-content":""},[t.createElementVNode("div",_,[i.showIcon?(t.openBlock(),t.createElementBlock("span",ee,[t.renderSlot(e.$slots,"icon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(K.value)))])])):t.createCommentVNode("",!0),t.createElementVNode("span",te,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])])]),t.createElementVNode("div",ne,[t.createVNode(t.unref(T.ElButton),{"data-testid":"qy-popconfirm-cancel",size:"small",disabled:i.disabled||i.confirmLoading,onClick:X},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.cancelText),1)]),_:1},8,["disabled"]),t.createVNode(t.unref(T.ElButton),{"data-testid":"qy-popconfirm-confirm",size:"small",type:i.confirmType,loading:i.confirmLoading,disabled:i.disabled||i.confirmLoading||m.value,onClick:J},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.confirmText),1)]),_:1},8,["type","loading","disabled"])])],2)]),_:3},8,["visible","placement","width","disabled","popper-style"])],16))}});exports._sfc_main=oe;
@@ -1,215 +0,0 @@
1
- import { defineComponent as ce, useAttrs as ue, ref as l, computed as d, watch as k, onMounted as fe, onBeforeUnmount as de, openBlock as x, createElementBlock as j, mergeProps as me, createVNode as A, unref as N, withCtx as q, createElementVNode as y, normalizeClass as pe, renderSlot as R, createBlock as ve, resolveDynamicComponent as ge, createCommentVNode as ye, createTextVNode as F, toDisplayString as I } from "vue";
2
- import { CircleCloseFilled as he, InfoFilled as be, WarningFilled as we } from "@element-plus/icons-vue";
3
- import { ElPopover as Le, ElButton as G } from "element-plus";
4
- const m = [], Ce = { class: "qy-popconfirm__message" }, Ee = {
5
- key: 0,
6
- class: "qy-popconfirm__icon",
7
- "aria-hidden": "true"
8
- }, ke = {
9
- "data-testid": "qy-popconfirm-title",
10
- class: "qy-popconfirm__title"
11
- }, qe = { class: "qy-popconfirm__actions" }, Se = /* @__PURE__ */ ce({
12
- name: "QyPopconfirm",
13
- inheritAttrs: !1,
14
- __name: "index",
15
- props: {
16
- title: { type: String, required: !0 },
17
- open: { type: Boolean, default: void 0 },
18
- disabled: { type: Boolean, default: !1 },
19
- placement: { type: String, default: "bottom" },
20
- width: { type: [Number, String], default: 220 },
21
- confirmText: { type: String, default: "确认" },
22
- cancelText: { type: String, default: "取消" },
23
- variant: { type: String, default: "warning" },
24
- confirmType: { type: String, default: "primary" },
25
- showIcon: { type: Boolean, default: !0 },
26
- confirmLoading: { type: Boolean, default: !1 },
27
- closeOnConfirm: { type: Boolean, default: !0 }
28
- },
29
- emits: ["update:open", "open-change", "confirm", "cancel", "close"],
30
- setup(i, { emit: J }) {
31
- const t = i, s = J, X = ue(), h = l(null), T = l(null), P = d(() => t.open !== void 0), B = t.open === !0 && !t.disabled, D = l(B), c = l(B), a = l(B), o = l(null), p = l(!1), b = l(null), w = {};
32
- let u = !1, v, L, C = !1, E = null;
33
- const W = d(() => t.disabled ? !1 : P.value ? t.open === !0 : D.value), Y = d(() => {
34
- const e = {};
35
- for (const [n, g] of Object.entries(X))
36
- (n === "class" || n === "style" || n === "id" || n === "title" || n === "tabindex" || n === "role" || n.startsWith("data-") || n.startsWith("aria-") || /^onKey(?:down|up|press)/i.test(n)) && (e[n] = g);
37
- return e;
38
- }), Z = d(
39
- () => typeof t.width == "number" ? `${t.width}px` : t.width
40
- ), _ = d(() => ({
41
- "--qy-popconfirm-width": Z.value,
42
- "--qy-popconfirm-mobile-gutter": "24px"
43
- })), ee = d(() => t.variant === "danger" ? he : t.variant === "info" ? be : we);
44
- function S() {
45
- return m[m.length - 1] === w;
46
- }
47
- function $() {
48
- m.includes(w) || m.push(w);
49
- }
50
- function z() {
51
- const e = m.indexOf(w);
52
- e >= 0 && m.splice(e, 1);
53
- }
54
- function M(e) {
55
- var Q, U;
56
- const n = document.activeElement;
57
- if (n instanceof HTMLElement && ((Q = h.value) != null && Q.contains(n))) {
58
- b.value = n;
59
- return;
60
- }
61
- const g = e == null ? void 0 : e.target;
62
- g instanceof HTMLElement && ((U = T.value) != null && U.contains(g)) && (b.value = g);
63
- }
64
- function ne() {
65
- const e = b.value;
66
- b.value = null, e != null && e.isConnected && e.focus();
67
- }
68
- function f() {
69
- if (u) return;
70
- const e = W.value;
71
- c.value !== e && (u = !0, v = e, L = e ? void 0 : o.value ?? (t.disabled ? "disabled" : "external"), c.value = e);
72
- }
73
- function r(e, n) {
74
- e && t.disabled || (!e && n && o.value === null && (o.value = n), P.value ? t.open !== e && s("update:open", e) : D.value !== e && (D.value = e, s("update:open", e)), f());
75
- }
76
- function te() {
77
- var e;
78
- return o.value ? o.value : E instanceof Node && ((e = h.value) != null && e.contains(E)) ? "trigger" : "outside";
79
- }
80
- function ie(e) {
81
- if (e) {
82
- M(), r(!0);
83
- return;
84
- }
85
- if (t.confirmLoading) return;
86
- const n = te();
87
- !S() && n !== "external" && n !== "disabled" || r(!1, n);
88
- }
89
- function oe(e) {
90
- var n;
91
- !(e.target instanceof Node) || !((n = T.value) != null && n.contains(e.target)) || t.confirmLoading || (a.value || c.value ? (o.value = "trigger", r(!1, "trigger")) : (M(e), r(!0)));
92
- }
93
- function ae() {
94
- t.disabled || t.confirmLoading || p.value || (p.value = !0, s("confirm"), t.closeOnConfirm && r(!1, "confirm"));
95
- }
96
- function re() {
97
- t.disabled || t.confirmLoading || (s("cancel"), r(!1, "cancel"));
98
- }
99
- function V(e) {
100
- e.key !== "Escape" && e.code !== "Escape" || t.confirmLoading || !a.value || !S() || (e.preventDefault(), r(!1, "escape"));
101
- }
102
- function O(e) {
103
- E = e.target;
104
- }
105
- function H(e) {
106
- E = e.target;
107
- }
108
- function K(e) {
109
- var n;
110
- t.confirmLoading || !a.value || !S() || e.target instanceof Node && ((n = h.value) != null && n.contains(e.target) || e.target instanceof Element && e.target.closest(".qy-popconfirm-popper") || r(!1, "outside"));
111
- }
112
- function le() {
113
- !u || v !== !0 || (u = !1, v = void 0, a.value = !0, $(), o.value = null, L = void 0, s("open-change", !0), f());
114
- }
115
- function se() {
116
- !u || v !== !1 || (u = !1, v = void 0, a.value = !1, z(), s("open-change", !1), s("close", L ?? o.value ?? "external"), o.value = null, L = void 0, p.value = !1, C = !1, ne(), f());
117
- }
118
- return k(W, () => f()), k(
119
- () => t.open,
120
- (e, n) => {
121
- e !== n && (e === !1 && (a.value || c.value) && o.value === null && (o.value = "external"), f());
122
- }
123
- ), k(
124
- () => t.disabled,
125
- (e) => {
126
- e && (a.value || c.value) && (o.value = "disabled"), f();
127
- }
128
- ), k(
129
- () => t.confirmLoading,
130
- (e) => {
131
- e ? C = !0 : C && (C = !1, a.value && (p.value = !1));
132
- }
133
- ), fe(() => {
134
- a.value && $(), window.addEventListener("keydown", V), document.addEventListener("pointerdown", O, !0), document.addEventListener("mousedown", H, !0), document.addEventListener("click", K);
135
- }), de(() => {
136
- z(), window.removeEventListener("keydown", V), document.removeEventListener("pointerdown", O, !0), document.removeEventListener("mousedown", H, !0), document.removeEventListener("click", K);
137
- }), (e, n) => (x(), j("span", me({
138
- ref_key: "rootRef",
139
- ref: h,
140
- class: "qy-popconfirm"
141
- }, Y.value, { onClickCapture: oe }), [
142
- A(N(Le), {
143
- visible: c.value,
144
- trigger: "click",
145
- placement: i.placement,
146
- width: i.width,
147
- disabled: i.disabled,
148
- "popper-style": _.value,
149
- "popper-class": "qy-popconfirm-popper",
150
- "onUpdate:visible": ie,
151
- onAfterEnter: le,
152
- onAfterLeave: se
153
- }, {
154
- reference: q(() => [
155
- y("span", {
156
- ref_key: "referenceRef",
157
- ref: T,
158
- "data-qy-popconfirm-reference": ""
159
- }, [
160
- R(e.$slots, "reference")
161
- ], 512)
162
- ]),
163
- default: q(() => [
164
- y("div", {
165
- class: pe(["qy-popconfirm__content", `is-${i.variant}`]),
166
- "data-qy-popconfirm-content": ""
167
- }, [
168
- y("div", Ce, [
169
- i.showIcon ? (x(), j("span", Ee, [
170
- R(e.$slots, "icon", {}, () => [
171
- (x(), ve(ge(ee.value)))
172
- ])
173
- ])) : ye("", !0),
174
- y("span", ke, [
175
- R(e.$slots, "title", {}, () => [
176
- F(I(i.title), 1)
177
- ])
178
- ])
179
- ]),
180
- y("div", qe, [
181
- A(N(G), {
182
- "data-testid": "qy-popconfirm-cancel",
183
- size: "small",
184
- disabled: i.disabled || i.confirmLoading,
185
- onClick: re
186
- }, {
187
- default: q(() => [
188
- F(I(i.cancelText), 1)
189
- ]),
190
- _: 1
191
- }, 8, ["disabled"]),
192
- A(N(G), {
193
- "data-testid": "qy-popconfirm-confirm",
194
- size: "small",
195
- type: i.confirmType,
196
- loading: i.confirmLoading,
197
- disabled: i.disabled || i.confirmLoading || p.value,
198
- onClick: ae
199
- }, {
200
- default: q(() => [
201
- F(I(i.confirmText), 1)
202
- ]),
203
- _: 1
204
- }, 8, ["type", "loading", "disabled"])
205
- ])
206
- ], 2)
207
- ]),
208
- _: 3
209
- }, 8, ["visible", "placement", "width", "disabled", "popper-style"])
210
- ], 16));
211
- }
212
- });
213
- export {
214
- Se as _
215
- };