@qynpm/ui 1.0.47 → 1.2.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 (418) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/README.md +3 -1
  3. package/dist/index.cjs +26 -26
  4. package/dist/index.mjs +241 -241
  5. package/dist/qy-action-bar/index.cjs +2 -2
  6. package/dist/qy-action-bar/index.mjs +2 -2
  7. package/dist/qy-alert/index.cjs +1 -1
  8. package/dist/qy-alert/index.mjs +4 -4
  9. package/dist/qy-aside/index.cjs +1 -1
  10. package/dist/qy-aside/index.mjs +4 -4
  11. package/dist/qy-autocomplete/index.cjs +1 -1
  12. package/dist/qy-autocomplete/index.mjs +3 -3
  13. package/dist/qy-avatar/index.cjs +1 -1
  14. package/dist/qy-avatar/index.mjs +1 -1
  15. package/dist/qy-badge/index.cjs +1 -1
  16. package/dist/qy-badge/index.mjs +4 -4
  17. package/dist/qy-button/index.cjs +2 -2
  18. package/dist/qy-button/index.mjs +2 -2
  19. package/dist/qy-card/index.cjs +1 -1
  20. package/dist/qy-card/index.mjs +1 -1
  21. package/dist/qy-cascader/index.cjs +1 -1
  22. package/dist/qy-cascader/index.mjs +3 -3
  23. package/dist/qy-checkbox/index.cjs +1 -1
  24. package/dist/qy-checkbox/index.mjs +1 -1
  25. package/dist/qy-checkbox-group/index.cjs +1 -1
  26. package/dist/qy-checkbox-group/index.mjs +4 -4
  27. package/dist/qy-col/index.cjs +1 -1
  28. package/dist/qy-col/index.mjs +4 -4
  29. package/dist/qy-collapse/index.cjs +1 -1
  30. package/dist/qy-collapse/index.mjs +2 -2
  31. package/dist/qy-collapse-item/index.cjs +1 -1
  32. package/dist/qy-collapse-item/index.mjs +5 -5
  33. package/dist/qy-color-picker/index.cjs +1 -1
  34. package/dist/qy-color-picker/index.mjs +4 -4
  35. package/dist/qy-container/index.cjs +1 -1
  36. package/dist/qy-container/index.mjs +3 -3
  37. package/dist/qy-date-picker/index.cjs +1 -1
  38. package/dist/qy-date-picker/index.mjs +1 -1
  39. package/dist/qy-descriptions/index.cjs +1 -1
  40. package/dist/qy-descriptions/index.mjs +1 -1
  41. package/dist/qy-descriptions-item/index.cjs +1 -1
  42. package/dist/qy-descriptions-item/index.mjs +4 -4
  43. package/dist/qy-dialog/index.cjs +2 -2
  44. package/dist/qy-dialog/index.mjs +4 -4
  45. package/dist/qy-divider/index.cjs +1 -1
  46. package/dist/qy-divider/index.mjs +4 -4
  47. package/dist/qy-drawer/index.cjs +1 -1
  48. package/dist/qy-drawer/index.mjs +2 -2
  49. package/dist/qy-dropdown/index.cjs +2 -2
  50. package/dist/qy-dropdown/index.mjs +2 -2
  51. package/dist/qy-empty/index.cjs +1 -1
  52. package/dist/qy-empty/index.mjs +4 -4
  53. package/dist/qy-file-picker/index.cjs +1 -1
  54. package/dist/qy-file-picker/index.mjs +1 -1
  55. package/dist/qy-form-section/index.cjs +2 -2
  56. package/dist/qy-form-section/index.mjs +2 -2
  57. package/dist/qy-fullscreen/index.cjs +1 -1
  58. package/dist/qy-fullscreen/index.mjs +1 -1
  59. package/dist/qy-icon/index.cjs +1 -1
  60. package/dist/qy-icon/index.mjs +2 -2
  61. package/dist/qy-icon-picker/index.cjs +2 -2
  62. package/dist/qy-icon-picker/index.mjs +5 -5
  63. package/dist/qy-iframe/index.cjs +1 -1
  64. package/dist/qy-iframe/index.mjs +1 -1
  65. package/dist/qy-image/index.cjs +1 -1
  66. package/dist/qy-image/index.mjs +1 -1
  67. package/dist/qy-image-preview/index.cjs +1 -1
  68. package/dist/qy-image-preview/index.mjs +1 -1
  69. package/dist/qy-image-upload/index.cjs +2 -2
  70. package/dist/qy-image-upload/index.mjs +4 -4
  71. package/dist/qy-input/index.cjs +1 -1
  72. package/dist/qy-input/index.mjs +1 -1
  73. package/dist/qy-input-number/index.cjs +1 -1
  74. package/dist/qy-input-number/index.mjs +2 -2
  75. package/dist/qy-input-tag/index.cjs +1 -1
  76. package/dist/qy-input-tag/index.mjs +134 -123
  77. package/dist/qy-legacy-selection-dialog/index.cjs +7 -7
  78. package/dist/qy-legacy-selection-dialog/index.mjs +7 -7
  79. package/dist/qy-link/index.cjs +1 -1
  80. package/dist/qy-link/index.mjs +5 -5
  81. package/dist/qy-main/index.cjs +1 -1
  82. package/dist/qy-main/index.mjs +4 -4
  83. package/dist/qy-menu-actions/index.cjs +1 -1
  84. package/dist/qy-menu-actions/index.mjs +1 -1
  85. package/dist/qy-money-input/index.cjs +1 -1
  86. package/dist/qy-money-input/index.mjs +4 -4
  87. package/dist/qy-pagination/index.cjs +1 -1
  88. package/dist/qy-pagination/index.mjs +1 -1
  89. package/dist/qy-popconfirm/index.cjs +1 -1
  90. package/dist/qy-popconfirm/index.mjs +5 -5
  91. package/dist/qy-popover/index.cjs +1 -1
  92. package/dist/qy-popover/index.mjs +4 -4
  93. package/dist/qy-progress/index.cjs +1 -1
  94. package/dist/qy-progress/index.mjs +3 -3
  95. package/dist/qy-radio/index.cjs +1 -1
  96. package/dist/qy-radio/index.mjs +1 -1
  97. package/dist/qy-radio-group/index.cjs +1 -1
  98. package/dist/qy-radio-group/index.mjs +1 -1
  99. package/dist/qy-record-quote-search/index.cjs +3 -3
  100. package/dist/qy-record-quote-search/index.mjs +3 -3
  101. package/dist/qy-remark-image/index.cjs +2 -2
  102. package/dist/qy-remark-image/index.mjs +3 -3
  103. package/dist/qy-remote-select/index.cjs +2 -2
  104. package/dist/qy-remote-select/index.mjs +4 -4
  105. package/dist/qy-result/index.cjs +1 -1
  106. package/dist/qy-result/index.mjs +4 -4
  107. package/dist/qy-row/index.cjs +1 -1
  108. package/dist/qy-row/index.mjs +4 -4
  109. package/dist/qy-scrollbar/index.cjs +1 -1
  110. package/dist/qy-scrollbar/index.mjs +3 -3
  111. package/dist/qy-search-input/index.cjs +2 -2
  112. package/dist/qy-search-input/index.mjs +2 -2
  113. package/dist/qy-select/index.cjs +1 -1
  114. package/dist/qy-select/index.mjs +1 -1
  115. package/dist/qy-selection-dialog/index.cjs +6 -6
  116. package/dist/qy-selection-dialog/index.mjs +6 -6
  117. package/dist/qy-skeleton/index.cjs +1 -1
  118. package/dist/qy-skeleton/index.mjs +4 -4
  119. package/dist/qy-skeleton-item/index.cjs +1 -1
  120. package/dist/qy-skeleton-item/index.mjs +4 -4
  121. package/dist/qy-statistic/index.cjs +1 -1
  122. package/dist/qy-statistic/index.mjs +3 -3
  123. package/dist/qy-step/index.cjs +1 -1
  124. package/dist/qy-step/index.mjs +5 -5
  125. package/dist/qy-steps/index.cjs +1 -1
  126. package/dist/qy-steps/index.mjs +4 -4
  127. package/dist/qy-switch/index.cjs +1 -1
  128. package/dist/qy-switch/index.mjs +1 -1
  129. package/dist/qy-tab-pane/index.cjs +1 -1
  130. package/dist/qy-tab-pane/index.mjs +4 -4
  131. package/dist/qy-table-column-settings/index.cjs +1 -1
  132. package/dist/qy-table-column-settings/index.mjs +1 -1
  133. package/dist/qy-tabs/index.cjs +1 -1
  134. package/dist/qy-tabs/index.mjs +4 -4
  135. package/dist/qy-tag/index.cjs +1 -1
  136. package/dist/qy-tag/index.mjs +1 -1
  137. package/dist/qy-tooltip/index.cjs +1 -1
  138. package/dist/qy-tooltip/index.mjs +4 -4
  139. package/dist/qy-tree/index.cjs +1 -1
  140. package/dist/qy-tree/index.mjs +5 -5
  141. package/dist/qy-tree-select/index.cjs +1 -1
  142. package/dist/qy-tree-select/index.mjs +1 -1
  143. package/dist/qy-upload/index.cjs +1 -1
  144. package/dist/qy-upload/index.mjs +1 -1
  145. package/dist/qy-watermark/index.cjs +1 -1
  146. package/dist/qy-watermark/index.mjs +1 -1
  147. package/dist/shared/index-0PQfX5FF.cjs +1 -0
  148. package/dist/shared/index-0rmLB9X5.mjs +153 -0
  149. package/dist/shared/index-2Mjm9QSY.cjs +1 -0
  150. package/dist/shared/index-4Yl91Bw1.cjs +1 -0
  151. package/dist/shared/{index-DNMRIYkm.mjs → index-4f74z6ej.mjs} +1 -1
  152. package/dist/shared/index-5gzkbh5i.mjs +155 -0
  153. package/dist/shared/index-8hd7J6aU.mjs +387 -0
  154. package/dist/shared/index-8yOtcFvL.cjs +1 -0
  155. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-9ONwSw5w.mjs} +13 -12
  156. package/dist/shared/index-9uvmS4AG.mjs +269 -0
  157. package/dist/shared/index-AanbrbHj.mjs +341 -0
  158. package/dist/shared/index-AlGD5i9H.mjs +69 -0
  159. package/dist/shared/index-B5QHWuu6.mjs +77 -0
  160. package/dist/shared/index-BD_xspQz.mjs +48 -0
  161. package/dist/shared/index-BE5027ro.mjs +93 -0
  162. package/dist/shared/index-BEBpuiBd.mjs +88 -0
  163. package/dist/shared/index-BEkygL14.mjs +53 -0
  164. package/dist/shared/index-BEtTFM5x.cjs +1 -0
  165. package/dist/shared/index-BHwo-QWj.cjs +1 -0
  166. package/dist/shared/index-BNFOINBq.cjs +1 -0
  167. package/dist/shared/index-BO98Eu6o.mjs +177 -0
  168. package/dist/shared/index-BQhmieVL.cjs +1 -0
  169. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-BQsEFX28.mjs} +24 -23
  170. package/dist/shared/index-BSHA0cGJ.mjs +160 -0
  171. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs → index-BToXN_2w.mjs} +18 -17
  172. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-BVb2RMjG.mjs} +12 -11
  173. package/dist/shared/index-BZWCuG8R.cjs +1 -0
  174. package/dist/shared/index-BZ_NcHA_.mjs +53 -0
  175. package/dist/shared/{index.vue_vue_type_script_lang-DIKHRo0o.mjs → index-BZqyVU0P.mjs} +22 -21
  176. package/dist/shared/index-B_SR7dGJ.cjs +1 -0
  177. package/dist/shared/index-BerXbfTu.mjs +253 -0
  178. package/dist/shared/index-BflaWNs2.cjs +1 -0
  179. package/dist/shared/index-BhgJxAHO.cjs +1 -0
  180. package/dist/shared/index-BiKe-5ke.cjs +1 -0
  181. package/dist/shared/index-BikJ___N.cjs +1 -0
  182. package/dist/shared/index-Bk0SVo_S.cjs +1 -0
  183. package/dist/shared/index-BlC4k76M.cjs +1 -0
  184. package/dist/shared/index-BlRFiIMi.cjs +1 -0
  185. package/dist/shared/index-BlkrT9Gw.cjs +1 -0
  186. package/dist/shared/index-BmK0RFXS.cjs +1 -0
  187. package/dist/shared/index-BoyiE_59.cjs +1 -0
  188. package/dist/shared/index-BwHeigcB.cjs +1 -0
  189. package/dist/shared/index-BzVbwomQ.mjs +365 -0
  190. package/dist/shared/index-C0vnuFhn.cjs +1 -0
  191. package/dist/shared/index-C1__R9-C.mjs +371 -0
  192. package/dist/shared/index-C1fkmo0S.cjs +1 -0
  193. package/dist/shared/index-C9Lf2bX3.mjs +295 -0
  194. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-C9n9zVss.mjs} +4 -3
  195. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-CBbKlfPG.mjs} +10 -9
  196. package/dist/shared/index-CC5n_6uk.mjs +205 -0
  197. package/dist/shared/index-CDczgvbL.cjs +1 -0
  198. package/dist/shared/index-CESgJwIg.mjs +328 -0
  199. package/dist/shared/index-CFBWO7n0.mjs +78 -0
  200. package/dist/shared/index-CFJz6vrN.mjs +47 -0
  201. package/dist/shared/{index-CXnL-0Kp.cjs → index-CGFTY4Fp.cjs} +1 -1
  202. package/dist/shared/index-CHkcP5-q.cjs +1 -0
  203. package/dist/shared/index-CIUWz2Hp.cjs +1 -0
  204. package/dist/shared/index-COAR6xjP.mjs +402 -0
  205. package/dist/shared/index-CP3-7cLC.mjs +105 -0
  206. package/dist/shared/index-CP7N-9VV.cjs +1 -0
  207. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CQRVbO-K.mjs} +20 -19
  208. package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-CTGLKLFg.mjs} +6 -5
  209. package/dist/shared/index-CWkXHOq7.cjs +1 -0
  210. package/dist/shared/index-CX-7EN8r.mjs +79 -0
  211. package/dist/shared/index-CXOF1C3t.mjs +84 -0
  212. package/dist/shared/index-CXeVLEcE.cjs +1 -0
  213. package/dist/shared/index-CXzBoO6N.cjs +1 -0
  214. package/dist/shared/index-C_vMHW_7.cjs +1 -0
  215. package/dist/shared/index-CcGYgKVf.mjs +446 -0
  216. package/dist/shared/index-CdqAvLtW.cjs +1 -0
  217. package/dist/shared/index-CfKXtmed.cjs +1 -0
  218. package/dist/shared/index-CfxDI3TR.mjs +284 -0
  219. package/dist/shared/index-Cgt_jiO8.cjs +1 -0
  220. package/dist/shared/index-CialZcU3.mjs +74 -0
  221. package/dist/shared/index-CjoH6lLx.cjs +1 -0
  222. package/dist/shared/index-CkXEXmTX.cjs +1 -0
  223. package/dist/shared/index-Cq0QWpNp.cjs +1 -0
  224. package/dist/shared/index-CtQ7TLzl.mjs +138 -0
  225. package/dist/shared/index-Ctcu-6T-.mjs +104 -0
  226. package/dist/shared/index-CvFL8RVZ.cjs +1 -0
  227. package/dist/shared/index-D-KJitUI.mjs +234 -0
  228. package/dist/shared/index-D-Se1DH6.cjs +1 -0
  229. package/dist/shared/index-D1SCfWlF.cjs +1 -0
  230. package/dist/shared/index-D2djzg5O.mjs +170 -0
  231. package/dist/shared/index-D6lq2cXm.cjs +1 -0
  232. package/dist/shared/index-DF3BUyOu.cjs +1 -0
  233. package/dist/shared/index-DGGBR9IQ.cjs +1 -0
  234. package/dist/shared/index-DI5Xx4zU.mjs +740 -0
  235. package/dist/shared/index-DMfiLqWm.cjs +1 -0
  236. package/dist/shared/index-DN3FSxUk.cjs +1 -0
  237. package/dist/shared/index-DN5Y8eHV.mjs +197 -0
  238. package/dist/shared/index-DNkrf-d7.cjs +1 -0
  239. package/dist/shared/index-DREOpf4w.cjs +1 -0
  240. package/dist/shared/index-DSc98P0J.mjs +957 -0
  241. package/dist/shared/index-DWxTBo0t.cjs +1 -0
  242. package/dist/shared/index-DYRxgeIB.mjs +311 -0
  243. package/dist/shared/index-DYhS_2hH.cjs +1 -0
  244. package/dist/shared/index-DZ9ixuhw.cjs +1 -0
  245. package/dist/shared/index-DZfZB8LS.mjs +146 -0
  246. package/dist/shared/index-DalbvZMR.mjs +132 -0
  247. package/dist/shared/index-DbpA63pp.mjs +51 -0
  248. package/dist/shared/index-Dd3rOEzY.mjs +136 -0
  249. package/dist/shared/index-DdOHKkWW.mjs +52 -0
  250. package/dist/shared/index-DhN2XKVc.cjs +1 -0
  251. package/dist/shared/index-DiZtu6-f.mjs +239 -0
  252. package/dist/shared/index-DkObuzo1.cjs +1 -0
  253. package/dist/shared/index-DkXIyXp3.mjs +27 -0
  254. package/dist/shared/index-DlyaXZXS.mjs +129 -0
  255. package/dist/shared/index-DmlIk2mW.cjs +1 -0
  256. package/dist/shared/index-DvLP2-p4.mjs +53 -0
  257. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-DxJnYlq4.mjs} +12 -11
  258. package/dist/shared/index-FSg27SoE.cjs +1 -0
  259. package/dist/shared/index-H0zceO6D.cjs +1 -0
  260. package/dist/shared/index-KFGhsuz_.mjs +63 -0
  261. package/dist/shared/index-KRMhlM-i.mjs +73 -0
  262. package/dist/shared/index-KvPH1usv.cjs +1 -0
  263. package/dist/shared/index-MaJdwWFj.cjs +1 -0
  264. package/dist/shared/index-NVs2UMip.cjs +1 -0
  265. package/dist/shared/index-OtL-aoXO.cjs +1 -0
  266. package/dist/shared/index-QHgVgpQU.mjs +67 -0
  267. package/dist/shared/index-R_lpFv9P.cjs +1 -0
  268. package/dist/shared/index-UyFdOJwl.mjs +157 -0
  269. package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-ZaBOgUd8.mjs} +17 -16
  270. package/dist/shared/index-_aPlj867.cjs +1 -0
  271. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-_llXjfm8.mjs} +4 -3
  272. package/dist/shared/index-aIBPfUAm.mjs +213 -0
  273. package/dist/shared/index-bR6Q3uaD.mjs +407 -0
  274. package/dist/shared/index-dM8FfZ_X.cjs +1 -0
  275. package/dist/shared/index-eIplwAX7.cjs +1 -0
  276. package/dist/shared/index-fEmIlZsO.cjs +1 -0
  277. package/dist/shared/index-frOfvcCH.mjs +307 -0
  278. package/dist/shared/index-iDsQyjN1.mjs +548 -0
  279. package/dist/shared/index-iGKTM26-.mjs +63 -0
  280. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs → index-iqem06ey.mjs} +12 -11
  281. package/dist/shared/index-mO9UiIQW.cjs +1 -0
  282. package/dist/shared/index-nYilZJM6.cjs +1 -0
  283. package/dist/shared/index-oZEfxmBH.cjs +1 -0
  284. package/dist/shared/index-oeKD9ezb.mjs +208 -0
  285. package/dist/shared/index-rP44D5Dd.cjs +1 -0
  286. package/dist/shared/index-rPOiDeUU.cjs +1 -0
  287. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-tQgB7Kvd.mjs} +16 -15
  288. package/dist/shared/index-xCLpvAQ0.cjs +1 -0
  289. package/index.d.ts +1 -0
  290. package/package.json +2 -2
  291. package/qy-dialog/index.d.ts +6 -3
  292. package/qy-upload/index.d.ts +2 -1
  293. package/dist/shared/index-5UAiwqdT.cjs +0 -1
  294. package/dist/shared/index-AvNvmJe5.cjs +0 -1
  295. package/dist/shared/index-B0CTzdRW.mjs +0 -149
  296. package/dist/shared/index-B1J7PQMl.mjs +0 -79
  297. package/dist/shared/index-B1gnVI8Y.mjs +0 -161
  298. package/dist/shared/index-B7j9BtSm.mjs +0 -233
  299. package/dist/shared/index-BAOV5iYx.mjs +0 -385
  300. package/dist/shared/index-BJZjXeoT.cjs +0 -1
  301. package/dist/shared/index-BKdw4jD_.mjs +0 -142
  302. package/dist/shared/index-BN4A-O6P.mjs +0 -727
  303. package/dist/shared/index-BR7tIt2k.mjs +0 -211
  304. package/dist/shared/index-BVaIvVMi.mjs +0 -71
  305. package/dist/shared/index-BaRw7pWi.mjs +0 -156
  306. package/dist/shared/index-Bdlzmh8A.cjs +0 -1
  307. package/dist/shared/index-BgAP_K2E.cjs +0 -1
  308. package/dist/shared/index-Blgz8PJc.cjs +0 -1
  309. package/dist/shared/index-BqzKToOL.cjs +0 -1
  310. package/dist/shared/index-BsNtvE6i.cjs +0 -1
  311. package/dist/shared/index-BuVrLl5B.mjs +0 -90
  312. package/dist/shared/index-Bv1DrJ32.mjs +0 -71
  313. package/dist/shared/index-BxGP8OkE.cjs +0 -1
  314. package/dist/shared/index-Bz9WjKdL.cjs +0 -1
  315. package/dist/shared/index-Bzr2RHi5.mjs +0 -293
  316. package/dist/shared/index-C50jpQ11.mjs +0 -295
  317. package/dist/shared/index-C6G9eVku.cjs +0 -1
  318. package/dist/shared/index-CB0v25oB.cjs +0 -1
  319. package/dist/shared/index-CGH2ROZV.mjs +0 -54
  320. package/dist/shared/index-CIXJwYI-.cjs +0 -1
  321. package/dist/shared/index-CKkanVur.cjs +0 -1
  322. package/dist/shared/index-CLvL8LAM.cjs +0 -1
  323. package/dist/shared/index-CN2mgT5V.cjs +0 -1
  324. package/dist/shared/index-CW4s627w.mjs +0 -107
  325. package/dist/shared/index-CXOCZlps.mjs +0 -222
  326. package/dist/shared/index-CbSGTE1S.mjs +0 -578
  327. package/dist/shared/index-Cqr-L0yd.mjs +0 -285
  328. package/dist/shared/index-Cu6yAwdj.mjs +0 -124
  329. package/dist/shared/index-CxTyKMEH.cjs +0 -1
  330. package/dist/shared/index-D5HS8M1P.cjs +0 -1
  331. package/dist/shared/index-D6QwZtYV.mjs +0 -56
  332. package/dist/shared/index-DAU1WtID.mjs +0 -361
  333. package/dist/shared/index-DCsun70c.cjs +0 -1
  334. package/dist/shared/index-DEzFHeJL.cjs +0 -1
  335. package/dist/shared/index-DY2IXvwl.cjs +0 -1
  336. package/dist/shared/index-DdGlwebp.mjs +0 -347
  337. package/dist/shared/index-DiN5vXXD.cjs +0 -1
  338. package/dist/shared/index-Duq5XZ5w.cjs +0 -1
  339. package/dist/shared/index-DvXzDAmi.mjs +0 -285
  340. package/dist/shared/index-FZ5gl2au.cjs +0 -1
  341. package/dist/shared/index-O6K0DO_k.cjs +0 -1
  342. package/dist/shared/index-QN7-6GpS.mjs +0 -127
  343. package/dist/shared/index-_Bagw0Pj.cjs +0 -1
  344. package/dist/shared/index-ykI9hKtc.mjs +0 -88
  345. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  346. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  347. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  349. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  355. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  356. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  357. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  358. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  359. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  360. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  361. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  363. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  364. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  365. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  367. package/dist/shared/index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs +0 -1
  368. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +0 -40
  369. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +0 -1
  371. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  372. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs +0 -199
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +0 -1
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +0 -1
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs +0 -108
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs +0 -331
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +0 -133
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +0 -1
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +0 -1
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +0 -238
  392. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +0 -63
  393. package/dist/shared/index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs +0 -98
  394. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +0 -1
  395. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +0 -413
  396. package/dist/shared/index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs +0 -1
  397. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +0 -142
  398. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs +0 -1
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs +0 -67
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +0 -1
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs +0 -286
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +0 -1
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs +0 -148
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs +0 -1
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs +0 -317
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +0 -219
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs +0 -1
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +0 -1
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +0 -176
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +0 -1
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs +0 -298
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs +0 -168
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs +0 -1
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs +0 -74
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs +0 -1
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs +0 -1
  418. package/dist/shared/index.vue_vue_type_style_index_0_lang-yci929so.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const $=require("element-plus"),e=require("vue"),se=require("clsx"),N=require("element-plus"),V=require("./overlay-stack-DeKq7jZu.cjs"),de=require("@element-plus/icons-vue"),ee=require("@vueuse/core"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=new Set,ue=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:""},width:{type:[String,Number],required:!1,default:"50%"},showFooter:{type:Boolean,required:!1,default:!0},showConfirm:{type:Boolean,required:!1,default:!0},showCancel:{type:Boolean,required:!1,default:!0},confirmText:{type:String,required:!1,default:"确 认"},cancelText:{type:String,required:!1,default:"取 消"},confirmLoading:{type:Boolean,required:!1,default:!1},confirmDisabled:{type:Boolean,required:!1,default:!1},closeOnConfirm:{type:Boolean,required:!1,default:!1},closeOnEscape:{type:Boolean,required:!1,default:!0},closeOnOverlay:{type:Boolean,required:!1,default:!0},minimizable:{type:Boolean,required:!1,default:!0},destroyOnClose:{type:Boolean,required:!1,default:!1},draggable:{type:Boolean,required:!1,default:!0},lockScroll:{type:Boolean,required:!1,default:!0},top:{type:String,required:!1,default:"15vh"},alignCenter:{type:Boolean,required:!1,default:!0},appendToBody:{type:Boolean,required:!1,default:!0},appendTo:{type:String,required:!1,default:"body"},fullscreen:{type:Boolean,required:!1,default:!1},showFullscreen:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:"default"},zIndex:{type:Number,required:!1,default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(d,{expose:l,emit:R}){const n=d,L=e.useSlots(),b=e.ref(!0),k=e.ref(!1),{nextZIndex:m}=N.useZIndex(),v=e.ref(V.resolveOverlayZIndex(m(),n.zIndex)),M=e.ref(null),P=ee.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}),U=P.isSmaller("tablet"),oe=e.computed(()=>{const o=[];return n.showCancel&&o.push("cancel"),n.showConfirm&&o.push("confirm"),o}),te=e.computed(()=>({CancelButton:e.createVNode(G),ConfirmButton:e.createVNode(X)})),ne=e.computed(()=>!!(L.footer||n.showFooter)),c=e.ref(!1),p=e.ref(!1);let h=!1,u=document.activeElement instanceof HTMLElement?document.activeElement:null;const I=e.ref(n.showFullscreen&&U?!0:n.fullscreen),i=R,W=e.computed(()=>n.open);e.watchEffect(()=>{W.value&&(c.value=!1)}),e.watch(()=>n.open,(o,r)=>{if(o){v.value=V.resolveOverlayZIndex(m(),n.zIndex),c.value=!1,p.value=!1,u=document.activeElement instanceof HTMLElement?document.activeElement:u,r===!1&&i("open-change",!0);return}S(),r&&!c.value&&(c.value=!0,i("open-change",!1),i("close","external"))}),e.watch(()=>n.confirmLoading,o=>{o?h=!0:h&&(h=!1,n.open&&(p.value=!1))}),l({handleMinimize:J});const f=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,w=e.ref(!1);let s;const E=e.ref(null),{x:T,y:q}=ee.useDraggable(E,{initialValue:{x:5,y:window.innerHeight-110},onMove(o){var r;(r=E.value)==null||r.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),T.value=Math.max(0,Math.min(window.innerWidth-300,o.x)),q.value=Math.max(0,Math.min(window.innerHeight-50,o.y))},onEnd(){var o;(o=E.value)==null||o.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),le=e.computed(()=>({transform:`translate(${T.value}px, ${q.value}px)`,willChange:"transform"}));function D(o){const r=o.target,{scrollTop:a,scrollHeight:y,clientHeight:B}=r;b.value=a<=5,k.value=y-(a+B)<=5}function re(){H();const o=document.querySelector(`.${f}.el-dialog`);o&&(M.value=o,o.addEventListener("scroll",D)),i("opened")}function H(){if(!n.open)return;const o=document.querySelector(`.${f}.el-dialog`),r=o==null?void 0:o.closest(".el-overlay");!o||!r||(r.style.zIndex=String(v.value),o.style.zIndex=String(v.value))}e.onUpdated(H);function K(){I.value=!I.value,_()}function x(o){n.confirmLoading&&o!=="external"||c.value||(c.value=!0,i("update:open",!1),i("open-change",!1),(o==="cancel"||o==="header")&&i("cancel"),i("close",o),e.nextTick(()=>{n.open&&(c.value=!1)}))}function ae(){i("closed"),e.nextTick(()=>{u!=null&&u.isConnected&&u.focus()})}function ie(o){n.showFullscreen&&o.detail>=2&&K()}function X(){return e.h(N.ElButton,{type:"primary",class:"dialog__footerBtn",loading:n.confirmLoading,disabled:n.confirmDisabled||n.confirmLoading||p.value,onClick:Y},()=>n.confirmText)}function Y(){!n.open||p.value||n.confirmLoading||n.confirmDisabled||(p.value=!0,i("confirm"),e.nextTick(()=>{n.open&&!n.confirmLoading&&(p.value=!1)}),n.closeOnConfirm&&x("confirm"))}function G(){return e.h(N.ElButton,{class:"dialog__footerBtn",onClick:()=>x("cancel")},()=>n.cancelText)}e.onMounted(()=>{_(),document.addEventListener("keydown",A,!0),document.addEventListener("keydown",Z),document.addEventListener("mousedown",j,!0)});function F(){var y,B;const o=(y=document.querySelector(`.${f}`))==null?void 0:y.closest(".el-overlay");if(!o)return!1;const a=Array.from(document.querySelectorAll(".el-overlay, .el-image-viewer__wrapper")).filter(g=>window.getComputedStyle(g).display!=="none").map((g,z)=>({overlay:g,order:z,zIndex:Number.parseInt(window.getComputedStyle(g).zIndex||"0",10)}));return a.sort((g,z)=>g.zIndex-z.zIndex||g.order-z.order),((B=a.at(-1))==null?void 0:B.overlay)===o}const C=new WeakSet;function A(o){var a;const r=(a=document.activeElement)==null?void 0:a.closest(".el-dialog");r&&!r.classList.contains("qy-dialog")||o.key!=="Escape"||V.isOverlayEscapeClaimed(o)||!n.open||!n.closeOnEscape||n.confirmLoading||!F()||C.add(o)}function Z(o){!C.has(o)||o.defaultPrevented||(C.delete(o),o.preventDefault(),x("escape"))}function j(o){if(!n.open||!n.closeOnOverlay||n.confirmLoading||!F()||!(o.target instanceof Node))return;const r=document.querySelector(`.${f}.el-dialog`),a=r==null?void 0:r.closest(".el-overlay");!r||!a||!a.contains(o.target)||r.contains(o.target)||x("overlay")}function _(){var y;const o=(y=document.querySelector(`.${f}`))==null?void 0:y.closest(".el-overlay"),r=document.querySelector(`.${f}.el-dialog`);if(!o||!r)return;const a=V.resolveOverlayZIndex(m(),n.zIndex);e.nextTick(()=>{o.style.zIndex=a.toString(),r.style.zIndex=a.toString(),v.value=a})}e.onUnmounted(()=>{var o;document.removeEventListener("keydown",A,!0),document.removeEventListener("keydown",Z),document.removeEventListener("mousedown",j,!0),(o=M.value)==null||o.removeEventListener("scroll",D),S()});function S(){s!==void 0&&O.delete(s),s=void 0,w.value=!1}function J(){var r;const o=(r=document.querySelector(`.${f}`))==null?void 0:r.closest(".el-overlay");if(!(!o||!n.open))if(w.value)w.value=!1,o.style.display="block",S(),_();else{for(w.value=!0,o.style.display="none",s=0;O.has(s);)s+=1;O.add(s),q.value=window.innerHeight-110-s*60}}const Q={minimizedSlots:O,OUTLINE_THRESHOLD:5,props:n,slots:L,isScrollTop:b,isScrollBottom:k,nextZIndex:m,zIndex:v,scrollTarget:M,breakpoints:P,isMobile:U,layout:oe,layouts:te,hasFooter:ne,closeCommitted:c,confirmLocked:p,get loadingWasActive(){return h},set loadingWasActive(o){h=o},get openingFocus(){return u},set openingFocus(o){u=o},fullscreen:I,emit:i,open:W,dialogId:f,isMinimized:w,get minimizedSlot(){return s},set minimizedSlot(o){s=o},minimizedRef:E,minimizedX:T,minimizedY:q,minimizedStyle:le,handleScroll:D,handleOpened:re,syncOverlayZIndex:H,scale:K,requestClose:x,handleClosed:ae,handleHeaderClick:ie,ConfirmButton:X,handleConfirm:Y,CancelButton:G,isTopmostOverlay:F,ownedEscapeEvents:C,captureEscapeOwner:A,handleDocumentKeydown:Z,handleDocumentMousedown:j,updateDialogZIndex:_,releaseMinimizedState:S,handleMinimize:J,get clsx(){return se},get ElConfigProvider(){return N.ElConfigProvider},get Close(){return de.Close}};return Object.defineProperty(Q,"__isScriptSetup",{enumerable:!1,value:!0}),Q}}),fe={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},me={key:0},pe={key:1},ye=["aria-label"],ge={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},ve={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},he={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},we={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},xe={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},be={class:"flex items-center gap-2"},ke={class:"text-sm text-gray-700 truncate max-w-[200px]"},Ee={class:"flex items-center gap-2"};function qe(d,l,R,t,n,L){const b=$.ElIcon,k=$.ElDialog;return e.openBlock(),e.createBlock(t.ElConfigProvider,{"z-index":t.zIndex},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(k,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[t.props.size==="small"&&"[&_.el-dialog__header]:!hidden",t.dialogId]]),"model-value":t.open,title:t.props.title,width:t.props.width,top:t.props.top,"align-center":t.props.alignCenter,"append-to-body":t.props.appendToBody,"append-to":t.props.appendTo,"destroy-on-close":t.props.destroyOnClose,"lock-scroll":t.props.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,fullscreen:t.fullscreen,"z-index":t.zIndex,onClosed:t.handleClosed,onOpened:t.handleOpened,draggable:t.props.draggable},e.createSlots({header:e.withCtx(()=>[t.props.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:t.isScrollTop?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:t.handleHeaderClick},[e.createElementVNode("div",fe,[t.slots.header?t.slots.header?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(d.$slots,"header")])):e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",me,e.toDisplayString(t.props.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},[t.props.size==="default"&&t.props.minimizable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":"最小化",class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(t.handleMinimize,["stop"]),onMousedown:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[...l[7]||(l[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("v-if",!0),t.props.showFullscreen?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":t.fullscreen?"退出全屏":"全屏",class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(t.scale,["stop"]),onMousedown:l[1]||(l[1]=e.withModifiers(()=>{},["stop"]))},[t.fullscreen?(e.openBlock(),e.createElementBlock("span",ve)):(e.openBlock(),e.createElementBlock("span",ge))],40,ye)):e.createCommentVNode("v-if",!0),e.createElementVNode("button",{type:"button","aria-label":"关闭",class:"qy-dialog__btn qy-dialog__btn--danger",onClick:l[2]||(l[2]=e.withModifiers(m=>t.requestClose("header"),["stop"])),onMousedown:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},[...l[8]||(l[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",t.clsx(t.fullscreen&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:t.hasFooter?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:t.props.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[t.props.size==="small"?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(b,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:l[5]||(l[5]=m=>t.requestClose("header"))},{default:e.withCtx(()=>[e.createVNode(t.Close)]),_:1})])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"default")],6)]),_:2},[t.props.showFooter&&!d.$slots.footer&&Array.isArray(t.layout)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",we,[e.createElementVNode("div",null,[e.renderSlot(d.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":t.isScrollBottom},"qy-dialog__footer flex items-center justify-end"])},[t.layout.includes("cancel")?(e.openBlock(),e.createBlock(t.CancelButton,{key:0})):e.createCommentVNode("v-if",!0),t.layout.includes("confirm")?(e.openBlock(),e.createBlock(t.ConfirmButton,{key:1})):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"footer-append")],2)])]),key:"0"}:t.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":t.isScrollBottom},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(d.$slots,"footer",{layouts:t.layouts,layoutsNode:Object.values(t.layouts)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","align-center","append-to-body","append-to","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.createCommentVNode(" 最小化视图 "),e.withDirectives(e.createElementVNode("div",{ref:"minimizedRef",class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([t.minimizedStyle,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",xe,[e.createElementVNode("div",be,[l[9]||(l[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",ke,e.toDisplayString(t.props.title),1)]),e.createElementVNode("div",Ee,[e.createElementVNode("button",{type:"button","aria-label":"恢复弹窗",class:"qy-dialog__minimized-btn p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(t.handleMinimize,["stop"])},[...l[10]||(l[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("button",{type:"button","aria-label":"关闭",class:"qy-dialog__minimized-btn p-1 hover:bg-red-100 rounded",onClick:l[6]||(l[6]=e.withModifiers(m=>t.requestClose("header"),["stop"]))},[...l[11]||(l[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,t.isMinimized]])])]),_:3},8,["z-index"])}const Ce=ce._export_sfc(ue,[["render",qe],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/dialog/index.vue"]]);exports.Dialog=Ce;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,required:!1,default:!0},offsetBottom:{type:Number,required:!1,default:0},bordered:{type:Boolean,required:!1,default:!0},shadow:{type:Boolean,required:!1,default:!1},wrap:{type:Boolean,required:!1,default:!0},justify:{type:String,required:!1,default:"between"},background:{type:String,required:!1,default:"#fff"}},setup(o,{expose:a}){a();const t=o,r=e.computed(()=>({bottom:`${t.offsetBottom}px`,background:t.background})),n={props:t,barStyle:r};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}}),i={key:0,class:"qy-action-bar__left"},d={key:1,class:"qy-action-bar__center"},c={key:2,class:"qy-action-bar__right"};function u(o,a,t,r,n,p){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(r.barStyle)},[o.$slots.left?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"left",{},void 0,!0)])):e.createCommentVNode("v-if",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("v-if",!0),o.$slots.right?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(o.$slots,"right",{},void 0,!0)])):e.createCommentVNode("v-if",!0)],6)}const f=s._export_sfc(l,[["render",u],["__scopeId","data-v-1efb467b"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-action-bar/index.vue"]]);exports.Component=f;
@@ -0,0 +1 @@
1
+ "use strict";const d=require("vue"),se=require("element-plus"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=d.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],required:!1,skipCheck:!0,default:void 0},data:{type:Array,required:!1,default:void 0},options:{type:Array,required:!1,default:()=>[]},labelKey:{type:String,required:!1,default:"label"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},disabledKey:{type:String,required:!1,default:"disabled"},props:{type:Object,required:!1,default:()=>({})},nodeKey:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:"请选择"},validateEvent:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1,default:void 0},remote:{type:Boolean,required:!1,default:!1},remoteMethod:{type:Function,required:!1,default:void 0},remoteShowSuffix:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!1},multipleLimit:{type:Number,required:!1,default:0},collapseTags:{type:Boolean,required:!1,default:!1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},checkStrictly:{type:Boolean,required:!1,default:!1},showCheckbox:{type:Boolean,required:!1,default:!1},defaultExpandAll:{type:Boolean,required:!1,default:!1},renderAfterExpand:{type:Boolean,required:!1,default:!0},expandOnClickNode:{type:Boolean,required:!1,default:!0},checkOnClickNode:{type:Boolean,required:!1,default:!1},checkOnClickLeaf:{type:Boolean,required:!1,default:!0},checkDescendants:{type:Boolean,required:!1,default:!1},defaultExpandedKeys:{type:Array,required:!1,default:void 0},defaultCheckedKeys:{type:Array,required:!1,default:void 0},accordion:{type:Boolean,required:!1,default:!1},indent:{type:Number,required:!1,default:18},highlightCurrent:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},load:{type:Function,required:!1,default:void 0},cacheData:{type:Array,required:!1,default:()=>[]},filterNodeMethod:{type:Function,required:!1,default:void 0},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:null,required:!1,default:void 0},fitInputWidth:{type:Boolean,required:!1,default:!1},popperClass:{type:String,required:!1,default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(s,{expose:M,emit:l}){const r=Symbol("invalid-tree-select-value"),n=s,i=l,f=d.useAttrs(),A=d.ref(null),O=d.computed(()=>n.data===void 0?n.options:n.data),I=d.ref(n.defaultExpandedKeys?[...n.defaultExpandedKeys]:void 0),U=d.ref(n.defaultCheckedKeys?[...n.defaultCheckedKeys]:void 0);let h=new WeakSet,b=new Set;const y=new Map;let g=0;d.watch(O,(e,t)=>{g++,e!==t&&y.clear(),h=new WeakSet,b=new Set,q(e),q(y.get(null));for(const a of y.keys())a&&!h.has(a)&&y.delete(a)},{immediate:!0,deep:!0});const Q=d.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),H=d.computed(()=>["qy-tree-select__popper",n.popperClass].filter(Boolean).join(" ")),G=d.computed(()=>{const e=x(n.modelValue);if(e!==r&&_(e)&&!n.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===r?void 0:F(e)}),J=d.computed(()=>{const e=n.props??{};return{value:m(e.value??n.nodeKey??n.valueKey),label:m(e.label??n.labelKey),children:m(e.children??n.childrenKey),disabled:m(e.disabled??n.disabledKey),isLeaf:m(e.isLeaf),class:T(e.class)}});function v(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:v(e)?d.toRaw(e):r}function x(e){return e==null?e:Array.isArray(e)?e.every(t=>N(t)!==r)?e:r:N(e)}function _(e){return Array.isArray(e)?e.some(v):v(e)}function C(e){return v(e)?d.toRaw(e):null}function q(e){for(const t of e??[])B(t)}function B(e){const t=d.toRaw(e);if(h.has(t))return;h.add(t),b.add(t);const a=S("children",t);if(Array.isArray(a))for(const o of a){const c=C(o);c&&B(c)}q(y.get(t))}function u(e){const t=C(e);return t!==null&&h.has(t)}function S(e,t){var k;const a=(k=n.props)==null?void 0:k[e],o=e==="value"?n.valueKey:e==="label"?n.labelKey:e==="children"?n.childrenKey:e==="disabled"?n.disabledKey:void 0,c=a??o;return typeof c=="function"?c(t):typeof c=="string"?t[c]:void 0}function m(e){return typeof e=="function"?t=>e(t):e}function T(e){return typeof e!="function"?e:(t,a)=>{const o=p(a);return o&&u(t)?e(t,o):""}}function K(e){return typeof e=="string"||typeof e=="number"?e:null}function p(e){var a;if(!e||!u(e.data))return null;const t=C(e.data);return t?Object.freeze({key:K(e.key),parentKey:K((a=e.parent)==null?void 0:a.key),data:t,label:typeof e.label=="string"?e.label:String(S("label",t)??""),level:typeof e.level=="number"?e.level:0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0}):null}function j(e){return Object.freeze({key:null,parentKey:null,data:{},label:"",level:0,expanded:!1,checked:!1,indeterminate:!1,disabled:!1,leaf:!1,visible:!0,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0})}function X(e,t,a){const o=p(a);return!o||!u(t)?!1:n.filterNodeMethod?n.filterNodeMethod(e,t,o):String(o.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function Y(e,t,a){if(!n.load)return t([]);const o=e.level===0||e.data===void 0||e.data===null,c=g,k=p(e)??(o?j(e):null);if(!k)return a();n.load(k,L=>{(o?g!==c:!u(k.data))||(y.set(o?null:k.data,L),q(L),t(L))},a)}function Z(e){const t=x(w(e));t!==r&&i("update:modelValue",t)}function $(e){const t=x(w(e));t!==r&&i("change",t)}function ee(){i("clear")}function te(e){i("visible-change",e)}function ae(e){i("focus",e)}function le(e){i("blur",e)}function re(e,t){const a=p(t);a&&u(e)&&i("node-click",e,a)}function ne(e,t){const a=p(t);a&&u(e)&&i("node-expand",e,a)}function de(e,t){const a=p(t);a&&u(e)&&i("node-collapse",e,a)}function oe(e,t,a){u(e)&&i("check-change",e,t,a)}function V(e){return(e??[]).map(C).filter(t=>t!==null&&u(t))}function D(e){return(e??[]).map(K).filter(t=>t!==null)}function ie(e,t){u(e)&&i("check",e,{checkedKeys:D(t==null?void 0:t.checkedKeys),checkedNodes:V(t==null?void 0:t.checkedNodes),halfCheckedKeys:D(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:V(t==null?void 0:t.halfCheckedNodes)})}function E(e){for(const t of b)if(Object.is(d.toRaw(S("value",t)),d.toRaw(e)))return t}function z(e){if(n.nodeKey){for(const t of b)if(Object.is(t[n.nodeKey],e))return t}}function F(e){if(!n.nodeKey||e===null||e===void 0)return e;const t=a=>{const o=E(a);return(o?K(o[n.nodeKey]):null)??a};return Array.isArray(e)?e.map(t):t(e)}function w(e){if(!n.nodeKey)return e;const t=a=>{const o=z(a);return o?S("value",o):a};return Array.isArray(e)?e.map(t):t(e)}function ce(e,t){return(e??[]).flatMap(a=>{const o=N(w(a.value));if(o===r)return[];const c=E(o);return[Object.freeze({value:o,label:typeof a.currentLabel=="string"?a.currentLabel:String(a.currentLabel??""),data:c?d.toRaw(c):void 0,closable:a.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),a)})]})}function R(){var e,t;(t=(e=A.value)==null?void 0:e.focus)==null||t.call(e)}function P(){var e,t;(t=(e=A.value)==null?void 0:e.blur)==null||t.call(e)}M({focus:R,blur:P});const W={INVALID_VALUE:r,props:n,emit:i,attrs:f,treeSelectRef:A,sourceData:O,initialDefaultExpandedKeys:I,initialDefaultCheckedKeys:U,get activeData(){return h},set activeData(e){h=e},get activeNodeData(){return b},set activeNodeData(e){b=e},loadedChildren:y,get dataVersion(){return g},set dataVersion(e){g=e},safeAttrs:Q,mergedPopperClass:H,controlledModelValue:G,resolvedNodeProps:J,isObjectValue:v,preserveTreeSelectValue:N,preserveModelValue:x,containsObjectValue:_,asNodeData:C,registerData:q,registerNodeData:B,isCurrentData:u,getNodeProperty:S,adaptNodeProperty:m,adaptClassProperty:T,toKey:K,toSnapshot:p,toRootSnapshot:j,adaptFilterNodeMethod:X,adaptLoad:Y,handleUpdateModelValue:Z,handleChange:$,handleClear:ee,handleVisibleChange:te,handleFocus:ae,handleBlur:le,handleNodeClick:re,handleNodeExpand:ne,handleNodeCollapse:de,handleCheckChange:oe,toCurrentNodes:V,toKeys:D,handleCheck:ie,findDataByValue:E,findDataByNodeKey:z,toElementModelValue:F,fromElementModelValue:w,toTagSnapshots:ce,focus:R,blur:P,get ElTreeSelect(){return se.ElTreeSelect}};return Object.defineProperty(W,"__isScriptSetup",{enumerable:!1,value:!0}),W}});function he(s,M,l,r,n,i){return d.openBlock(),d.createBlock(r.ElTreeSelect,d.mergeProps({ref:"treeSelectRef",class:"qy-tree-select"},r.safeAttrs,{"model-value":r.controlledModelValue,data:r.sourceData,props:r.resolvedNodeProps,"node-key":l.nodeKey,placeholder:l.placeholder,disabled:l.disabled,"validate-event":l.validateEvent,clearable:l.clearable,filterable:l.filterable,"filter-method":l.filterMethod,remote:l.remote,"remote-method":l.remoteMethod,"remote-show-suffix":l.remoteShowSuffix,loading:l.loading,multiple:l.multiple,"multiple-limit":l.multipleLimit,"collapse-tags":l.collapseTags,"collapse-tags-tooltip":l.collapseTagsTooltip,"check-strictly":l.checkStrictly,"show-checkbox":l.showCheckbox,"default-expand-all":l.defaultExpandAll,"render-after-expand":l.renderAfterExpand,"expand-on-click-node":l.expandOnClickNode,"check-on-click-node":l.checkOnClickNode,"check-on-click-leaf":l.checkOnClickLeaf,"check-descendants":l.checkDescendants,"default-expanded-keys":r.initialDefaultExpandedKeys,"default-checked-keys":r.initialDefaultCheckedKeys,accordion:l.accordion,indent:l.indent,"highlight-current":l.highlightCurrent,lazy:l.lazy,load:r.adaptLoad,"cache-data":l.cacheData,"filter-node-method":r.adaptFilterNodeMethod,size:l.size,teleported:l.teleported,"append-to":l.appendTo,"fit-input-width":l.fitInputWidth,"popper-class":r.mergedPopperClass,"onUpdate:modelValue":r.handleUpdateModelValue,onChange:r.handleChange,onClear:r.handleClear,onVisibleChange:r.handleVisibleChange,onFocus:r.handleFocus,onBlur:r.handleBlur,onNodeClick:r.handleNodeClick,onNodeExpand:r.handleNodeExpand,onNodeCollapse:r.handleNodeCollapse,onCheckChange:r.handleCheckChange,onCheck:r.handleCheck}),d.createSlots({_:2},[s.$slots.prefix?{name:"prefix",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,s.$slots.empty?{name:"empty",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,s.$slots.loading?{name:"loading",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,s.$slots.default?{name:"default",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"default",{data:f.data,node:r.toSnapshot(f.node)},void 0,!0)]),key:"3"}:void 0,s.$slots.tag?{name:"tag",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"tag",{data:r.toTagSnapshots(f.data,f.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","validate-event","clearable","filterable","filter-method","remote","remote-method","remote-show-suffix","loading","multiple","multiple-limit","collapse-tags","collapse-tags-tooltip","check-strictly","show-checkbox","default-expand-all","render-after-expand","expand-on-click-node","check-on-click-node","check-on-click-leaf","check-descendants","default-expanded-keys","default-checked-keys","accordion","indent","highlight-current","lazy","cache-data","size","teleported","append-to","fit-input-width","popper-class"])}const ye=ue._export_sfc(fe,[["render",he],["__scopeId","data-v-d9515781"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-tree-select/index.vue"]]);exports.TreeSelect=ye;
@@ -0,0 +1,208 @@
1
+ import { defineComponent as K, useAttrs as L, ref as C, computed as R, watch as j, openBlock as D, createBlock as O, mergeProps as Q, withKeys as G, createSlots as H, withCtx as y, renderSlot as h } from "vue";
2
+ import { ElInput as J } from "element-plus";
3
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const X = /* @__PURE__ */ K({
5
+ name: "QyMoneyInput",
6
+ inheritAttrs: !1,
7
+ __name: "index",
8
+ props: {
9
+ modelValue: { type: null, required: !1, default: "" },
10
+ precision: { type: Number, required: !1, default: 2 },
11
+ min: { type: Number, required: !1, default: void 0 },
12
+ max: { type: Number, required: !1, default: void 0 },
13
+ allowNegative: { type: Boolean, required: !1, default: !1 },
14
+ formatTrigger: { type: String, required: !1, default: "blur" },
15
+ emptyValue: { type: [String, Number], required: !1, default: "" },
16
+ placeholder: { type: String, required: !1, default: void 0 },
17
+ clearable: { type: Boolean, required: !1, default: !1 },
18
+ validateEvent: { type: Boolean, required: !1, default: !0 },
19
+ disabled: { type: Boolean, required: !1, default: void 0 },
20
+ readonly: { type: Boolean, required: !1, default: !1 },
21
+ size: { type: String, required: !1, default: void 0 },
22
+ name: { type: String, required: !1, default: void 0 },
23
+ id: { type: String, required: !1, default: void 0 },
24
+ autocomplete: { type: String, required: !1, default: void 0 },
25
+ autofocus: { type: Boolean, required: !1, default: !1 },
26
+ maxlength: { type: [String, Number], required: !1, default: void 0 },
27
+ minlength: { type: [String, Number], required: !1, default: void 0 },
28
+ tabindex: { type: [String, Number], required: !1, default: void 0 },
29
+ ariaLabel: { type: String, required: !1, default: void 0 }
30
+ },
31
+ emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
32
+ setup(i, { expose: v, emit: a }) {
33
+ const t = i, r = a, x = L(), d = C(null), f = C(u(t.modelValue)), w = R(() => u(t.modelValue));
34
+ j(
35
+ () => t.modelValue,
36
+ (e) => {
37
+ f.value = u(e);
38
+ }
39
+ );
40
+ function u(e) {
41
+ return e == null ? "" : String(e);
42
+ }
43
+ function g(e) {
44
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 2;
45
+ }
46
+ function c(e) {
47
+ const n = u(e);
48
+ let l = "", m = !1, I = !1;
49
+ const k = g(t.precision);
50
+ for (let s = 0; s < n.length; s += 1) {
51
+ const o = n[s];
52
+ if (o >= "0" && o <= "9") {
53
+ l += o;
54
+ continue;
55
+ }
56
+ if (o === "." && !m) {
57
+ k === 0 && (l === "" || l === "-") && (l += "0"), l += o, m = !0;
58
+ continue;
59
+ }
60
+ o === "-" && t.allowNegative && s === 0 && !I && (l += o, I = !0);
61
+ }
62
+ if (m) {
63
+ const [s, o = ""] = l.split(".");
64
+ return `${s}.${o.slice(0, k)}`;
65
+ }
66
+ return l;
67
+ }
68
+ function V(e) {
69
+ let n = e;
70
+ return typeof t.min == "number" && Number.isFinite(t.min) && (n = Math.max(n, t.min)), typeof t.max == "number" && Number.isFinite(t.max) && (n = Math.min(n, t.max)), n;
71
+ }
72
+ function b(e) {
73
+ const n = c(e);
74
+ if (!n || n === "-" || n === ".")
75
+ return u(t.emptyValue);
76
+ const l = Number(n);
77
+ if (Number.isNaN(l)) return u(t.emptyValue);
78
+ const m = g(t.precision);
79
+ return V(l).toFixed(m);
80
+ }
81
+ function p(e) {
82
+ f.value = e, r("update:modelValue", e);
83
+ }
84
+ function z(e) {
85
+ const n = c(e);
86
+ p(n);
87
+ }
88
+ function E(e) {
89
+ const n = c(e);
90
+ f.value = n, r("input", n);
91
+ }
92
+ function F(e) {
93
+ const n = t.formatTrigger === "change" ? b(e) : c(e);
94
+ n !== u(t.modelValue) && p(n), r("change", n);
95
+ }
96
+ function A(e) {
97
+ r("focus", e);
98
+ }
99
+ function P(e) {
100
+ if (t.formatTrigger === "blur") {
101
+ const n = b(f.value);
102
+ n !== u(t.modelValue) && p(n);
103
+ }
104
+ r("blur", e);
105
+ }
106
+ function T() {
107
+ const e = u(t.emptyValue);
108
+ f.value = e, r("update:modelValue", e), r("clear");
109
+ }
110
+ function U(e) {
111
+ r("enter", e);
112
+ }
113
+ function q() {
114
+ var e, n;
115
+ (n = (e = d.value) == null ? void 0 : e.focus) == null || n.call(e);
116
+ }
117
+ function N() {
118
+ var e, n;
119
+ (n = (e = d.value) == null ? void 0 : e.blur) == null || n.call(e);
120
+ }
121
+ function S() {
122
+ var e, n;
123
+ (n = (e = d.value) == null ? void 0 : e.select) == null || n.call(e);
124
+ }
125
+ function M() {
126
+ var e, n;
127
+ (n = (e = d.value) == null ? void 0 : e.clear) == null || n.call(e);
128
+ }
129
+ function _() {
130
+ var e;
131
+ return ((e = d.value) == null ? void 0 : e.input) || null;
132
+ }
133
+ v({
134
+ focus: q,
135
+ blur: N,
136
+ select: S,
137
+ clear: M,
138
+ getNativeInput: _
139
+ });
140
+ const B = { props: t, emit: r, attrs: x, inputRef: d, innerValue: f, displayValue: w, stringifyValue: u, normalizePrecision: g, sanitizeInput: c, clampAmount: V, formatMoneyValue: b, emitModelValue: p, handleUpdateModelValue: z, handleInput: E, handleChange: F, handleFocus: A, handleBlur: P, handleClear: T, handleEnter: U, focus: q, blur: N, select: S, clear: M, getNativeInput: _, get ElInput() {
141
+ return J;
142
+ } };
143
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
144
+ }
145
+ });
146
+ function Y(i, v, a, t, r, x) {
147
+ return D(), O(t.ElInput, Q({ ref: "inputRef" }, t.attrs, {
148
+ "model-value": t.displayValue,
149
+ inputmode: "decimal",
150
+ placeholder: a.placeholder,
151
+ clearable: a.clearable,
152
+ disabled: a.disabled,
153
+ "validate-event": a.validateEvent,
154
+ readonly: a.readonly,
155
+ size: a.size,
156
+ name: a.name,
157
+ id: a.id,
158
+ autocomplete: a.autocomplete,
159
+ autofocus: a.autofocus,
160
+ maxlength: a.maxlength,
161
+ minlength: a.minlength,
162
+ tabindex: a.tabindex,
163
+ "aria-label": a.ariaLabel,
164
+ "onUpdate:modelValue": t.handleUpdateModelValue,
165
+ onInput: t.handleInput,
166
+ onChange: t.handleChange,
167
+ onFocus: t.handleFocus,
168
+ onBlur: t.handleBlur,
169
+ onClear: t.handleClear,
170
+ onKeydown: G(t.handleEnter, ["enter"])
171
+ }), H({
172
+ _: 2
173
+ /* DYNAMIC */
174
+ }, [
175
+ i.$slots.prefix ? {
176
+ name: "prefix",
177
+ fn: y(() => [
178
+ h(i.$slots, "prefix")
179
+ ]),
180
+ key: "0"
181
+ } : void 0,
182
+ i.$slots.suffix ? {
183
+ name: "suffix",
184
+ fn: y(() => [
185
+ h(i.$slots, "suffix")
186
+ ]),
187
+ key: "1"
188
+ } : void 0,
189
+ i.$slots.prepend ? {
190
+ name: "prepend",
191
+ fn: y(() => [
192
+ h(i.$slots, "prepend")
193
+ ]),
194
+ key: "2"
195
+ } : void 0,
196
+ i.$slots.append ? {
197
+ name: "append",
198
+ fn: y(() => [
199
+ h(i.$slots, "append")
200
+ ]),
201
+ key: "3"
202
+ } : void 0
203
+ ]), 1040, ["model-value", "placeholder", "clearable", "disabled", "validate-event", "readonly", "size", "name", "id", "autocomplete", "autofocus", "maxlength", "minlength", "tabindex", "aria-label"]);
204
+ }
205
+ const ne = /* @__PURE__ */ W(X, [["render", Y], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-money-input/index.vue"]]);
206
+ export {
207
+ ne as M
208
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("vue"),L=require("./index-BoyiE_59.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=Object.assign({name:"QyImageUpload",inheritAttrs:!1},{__name:"index",props:{modelValue:{type:[String,Array],default:""},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"files"},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:!1},mode:{type:String,default:"default"},voucher:{type:Boolean,default:!1},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},isShowTip:{type:Boolean,default:!1},limit:{type:Number,default:void 0},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"128px"},disableDrag:{type:Boolean,default:!1},showPasteInput:{type:Boolean,default:!0},pastePlaceholder:{type:String,default:"粘贴图片上传"},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","change","success","error","remove","updateImg"],setup(p,{expose:f,emit:l}){const t=p,n=l,m=o.useAttrs(),r=o.ref(null),y=["jpg","jpeg","png","gif","bmp","webp"],u=o.computed(()=>t.voucher||t.mode==="voucher"),x=o.computed(()=>Array.isArray(t.modelValue)?t.modelValue.filter(Boolean):t.modelValue?String(t.modelValue).split(",").filter(Boolean):[]),w=o.computed(()=>t.supportVideo?1:u.value?t.limit??30:t.limit??(t.multiple?9:1)),q=o.computed(()=>{var e;return(e=t.fileType)!=null&&e.length?t.fileType:u.value&&!t.supportVideo?y:[]});function h(e){return Array.isArray(e)?e.filter(Boolean):[]}function d(e){const a=h(e);return t.multiple?a:a[0]||""}function P(e){n("update:modelValue",d(e))}function z(e){n("change",d(e==null?void 0:e.files))}function g(e){var k,B;if(typeof e=="string")return e;const a=e||{},c=a.url??a.urls??((k=a.data)==null?void 0:k.url)??((B=a.data)==null?void 0:B.urls)??"";return Array.isArray(c)?c[0]||"":c||""}function F(e){const a=g(e);a&&n("updateImg",a),n("success",s(),e)}function T(e){n("error",e)}function U(e,a){n("remove",e,a)}function v(){var e,a;(a=(e=r.value)==null?void 0:e.openFileDialog)==null||a.call(e)}function _(){var e,a;(a=(e=r.value)==null?void 0:e.clearFiles)==null||a.call(e)}function i(){var e,a;return((a=(e=r.value)==null?void 0:e.getPathList)==null?void 0:a.call(e))||[]}const b=o.computed(()=>i()),V=o.computed(()=>i());function A(){return i()}function s(){const e=i();return t.multiple?e:e[0]||""}f({openFileDialog:v,clearFiles:_,getPathList:i,getFullPathList:A,fullPathList:b,pathList:V,getValue:s});const S={props:t,emit:n,attrs:m,uploadRef:r,voucherImageTypes:y,isVoucherMode:u,modelAsArray:x,uploadLimit:w,effectiveFileType:q,normalizeValue:h,formatValue:d,handleUpdateModelValue:P,handleChange:z,resolveUploadUrl:g,handleSuccess:F,handleError:T,handleRemove:U,openFileDialog:v,clearFiles:_,getPathList:i,fullPathList:b,pathList:V,getFullPathList:A,getValue:s,computed:o.computed,ref:o.ref,useAttrs:o.useAttrs,QyUpload:L.Upload};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}});function I(p,f,l,t,n,m){return o.openBlock(),o.createBlock(t.QyUpload,o.mergeProps({ref:"uploadRef"},t.attrs,{"model-value":t.modelAsArray,"value-format":"array",api:l.api,name:l.name,multiple:l.multiple,disabled:l.disabled,"file-type":t.effectiveFileType,"file-size":l.fileSize,limit:t.uploadLimit,"is-show-tip":l.isShowTip,"token-key":l.tokenKey,"support-video":l.supportVideo,size:l.size,"disable-drag":l.disableDrag,"call-back":l.callBack,"extra-data":l.extraData,"upload-request":l.uploadRequest,"show-text":!1,"show-paste-input":l.showPasteInput,"paste-placeholder":l.pastePlaceholder,"onUpdate:modelValue":t.handleUpdateModelValue,onChange:t.handleChange,onSuccess:t.handleSuccess,onError:t.handleError,onRemove:t.handleRemove}),null,16,["model-value","api","name","multiple","disabled","file-type","file-size","limit","is-show-tip","token-key","support-video","size","disable-drag","call-back","extra-data","upload-request","show-paste-input","paste-placeholder"])}const j=R._export_sfc(D,[["render",I],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-image-upload/index.vue"]]);exports.Component=j;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),F=require("@element-plus/icons-vue"),G=require("element-plus"),J=require("./overlay-stack-DeKq7jZu.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=[],ae=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(w,{expose:O,emit:i}){O();const n=w,a=i,x=t.useAttrs(),L=t.ref(null),P=t.ref(null),A=t.computed(()=>n.open!==void 0),C=n.open===!0&&!n.disabled,q=t.ref(C),f=t.ref(C),l=t.ref(C),r=t.ref(null),p=t.ref(!1),E=t.ref(null),_={},z=`qy-popconfirm-${t.getCurrentInstance().uid}`,S=new WeakSet;let s=!1,d,m,v=!1,g=null;const y=t.computed(()=>n.disabled?!1:A.value?n.open===!0:q.value),X=t.computed(()=>{const e={};for(const[o,k]of Object.entries(x))(o==="class"||o==="style"||o==="id"||o==="title"||o==="tabindex"||o==="role"||o.startsWith("data-")||o.startsWith("aria-")||/^onKey(?:down|up|press)/i.test(o))&&(e[o]=k);return e}),M=t.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),Y=t.computed(()=>({"--qy-popconfirm-width":M.value,"--qy-popconfirm-mobile-gutter":"24px"})),Z=t.computed(()=>n.variant==="danger"?F.CircleCloseFilled:n.variant==="info"?F.InfoFilled:F.WarningFilled);function T(){return h[h.length-1]===_}function B(){h.includes(_)||h.push(_)}function N(){const e=h.indexOf(_);e>=0&&h.splice(e,1)}function V(e){var Q,U;const o=document.activeElement;if(o instanceof HTMLElement&&((Q=L.value)!=null&&Q.contains(o))){E.value=o;return}const k=e==null?void 0:e.target;k instanceof HTMLElement&&((U=P.value)!=null&&U.contains(k))&&(E.value=k)}function H(){const e=E.value;E.value=null,e!=null&&e.isConnected&&e.focus()}function u(){if(s)return;const e=y.value;f.value!==e&&(s=!0,d=e,m=e?void 0:r.value??(n.disabled?"disabled":"external"),f.value=e)}function c(e,o){e&&n.disabled||(!e&&o&&r.value===null&&(r.value=o),A.value?n.open!==e&&a("update:open",e):q.value!==e&&(q.value=e,a("update:open",e)),u())}function j(){var e;return r.value?r.value:g instanceof Node&&((e=L.value)!=null&&e.contains(g))?"trigger":"outside"}function $(e){if(e){V(),c(!0);return}if(n.confirmLoading)return;const o=j();!T()&&o!=="external"&&o!=="disabled"||c(!1,o)}function ee(e){var o;!(e.target instanceof Node)||!((o=P.value)!=null&&o.contains(e.target))||n.confirmLoading||(l.value||f.value?(r.value="trigger",c(!1,"trigger")):(V(e),c(!0)))}function te(){!y.value||n.disabled||n.confirmLoading||p.value||(p.value=!0,a("confirm"),n.closeOnConfirm&&c(!1,"confirm"),t.nextTick(()=>{y.value&&!n.confirmLoading&&(p.value=!1)}))}function ne(){n.disabled||n.confirmLoading||(a("cancel"),c(!1,"cancel"))}function D(e){e.key!=="Escape"&&e.code!=="Escape"||e.defaultPrevented||!l.value||!T()||J.isTopmostVisibleLayer(document.querySelector(`.${z}`))&&(J.claimOverlayEscape(e),S.add(e))}function b(e){S.has(e)&&(S.delete(e),e.stopPropagation(),!e.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation(),!n.confirmLoading&&c(!1,"escape")))}function R(e){g=e.target}function I(e){g=e.target}function W(e){var o;n.confirmLoading||!l.value||!T()||e.target instanceof Node&&((o=L.value)!=null&&o.contains(e.target)||e.target instanceof Element&&e.target.closest(".qy-popconfirm-popper")||c(!1,"outside"))}function oe(){!s||d!==!0||(s=!1,d=void 0,l.value=!0,B(),r.value=null,m=void 0,a("open-change",!0),u())}function ie(){!s||d!==!1||(s=!1,d=void 0,l.value=!1,N(),a("open-change",!1),a("close",m??r.value??"external"),r.value=null,m=void 0,p.value=!1,v=!1,H(),u())}t.watch(y,()=>u()),t.watch(()=>n.open,(e,o)=>{e!==o&&(e===!1&&(l.value||f.value)&&r.value===null&&(r.value="external"),u())}),t.watch(()=>n.disabled,e=>{e&&(l.value||f.value)&&(r.value="disabled"),u()}),t.watch(()=>n.confirmLoading,e=>{e?v=!0:v&&(v=!1,y.value&&(p.value=!1))}),t.onMounted(()=>{l.value&&B(),window.addEventListener("keydown",D,!0),document.body.addEventListener("keydown",b),window.addEventListener("keydown",b),document.addEventListener("pointerdown",R,!0),document.addEventListener("mousedown",I,!0),document.addEventListener("click",W)}),t.onBeforeUnmount(()=>{N(),window.removeEventListener("keydown",D,!0),document.body.removeEventListener("keydown",b),window.removeEventListener("keydown",b),document.removeEventListener("pointerdown",R,!0),document.removeEventListener("mousedown",I,!0),document.removeEventListener("click",W)});const K={props:n,emit:a,attrs:x,rootRef:L,referenceRef:P,isControlled:A,initialVisible:C,requestedDesired:q,renderedDesired:f,actualVisible:l,pendingCloseReason:r,confirmLocked:p,focusTarget:E,token:_,popperId:z,ownedEscapeEvents:S,get transitionActive(){return s},set transitionActive(e){s=e},get transitionDirection(){return d},set transitionDirection(e){d=e},get transitionReason(){return m},set transitionReason(e){m=e},get loadingWasActive(){return v},set loadingWasActive(e){v=e},get lastPointerTarget(){return g},set lastPointerTarget(e){g=e},targetDesired:y,rootAttrs:X,normalizedWidth:M,popperStyle:Y,iconComponent:Z,isTopmost:T,registerVisible:B,unregisterVisible:N,rememberFocus:V,restoreFocus:H,pumpTransition:u,requestIntent:c,closeReasonFromInteraction:j,handleElementVisibility:$,handleRootClick:ee,handleConfirm:te,handleCancel:ne,captureEscapeOwner:D,handleKeydown:b,handlePointerDown:R,handleMouseDown:I,handleDocumentClick:W,handleAfterEnter:oe,handleAfterLeave:ie,get ElButton(){return G.ElButton},get ElPopover(){return G.ElPopover}};return Object.defineProperty(K,"__isScriptSetup",{enumerable:!1,value:!0}),K}}),le={ref:"referenceRef","data-qy-popconfirm-reference":""},ce={class:"qy-popconfirm__message"},se={key:0,class:"qy-popconfirm__icon","aria-hidden":"true"},de={"data-testid":"qy-popconfirm-title",class:"qy-popconfirm__title"},ue={class:"qy-popconfirm__actions"};function fe(w,O,i,n,a,x){return t.openBlock(),t.createElementBlock("span",t.mergeProps({ref:"rootRef",class:"qy-popconfirm"},n.rootAttrs,{onClickCapture:n.handleRootClick}),[t.createVNode(n.ElPopover,{visible:n.renderedDesired,trigger:"click",placement:i.placement,width:i.width,disabled:i.disabled,"popper-style":n.popperStyle,"popper-class":`qy-popconfirm-popper ${n.popperId}`,"onUpdate:visible":n.handleElementVisibility,onAfterEnter:n.handleAfterEnter,onAfterLeave:n.handleAfterLeave},{reference:t.withCtx(()=>[t.createElementVNode("span",le,[t.renderSlot(w.$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",ce,[i.showIcon?(t.openBlock(),t.createElementBlock("span",se,[t.renderSlot(w.$slots,"icon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.iconComponent)))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",de,[t.renderSlot(w.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])])]),t.createElementVNode("div",ue,[t.createVNode(n.ElButton,{"data-testid":"qy-popconfirm-cancel",size:"small",disabled:i.disabled||i.confirmLoading,onClick:n.handleCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.cancelText),1)]),_:1},8,["disabled"]),t.createVNode(n.ElButton,{"data-testid":"qy-popconfirm-confirm",size:"small",type:i.confirmType,loading:i.confirmLoading,disabled:i.disabled||i.confirmLoading||n.confirmLocked,onClick:n.handleConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.confirmText),1)]),_:1},8,["type","loading","disabled"])])],2)]),_:3},8,["visible","placement","width","disabled","popper-style","popper-class"])],16)}const pe=re._export_sfc(ae,[["render",fe],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-popconfirm/index.vue"]]);exports.Popconfirm=pe;
@@ -1,6 +1,7 @@
1
- import { defineComponent as i, computed as r, h as f } from "vue";
2
- import { ElCard as n } from "element-plus";
3
- const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-"), h = ["header", "default", "footer"], b = i({
1
+ import { defineComponent as l, computed as a, h as n } from "vue";
2
+ import { ElCard as f } from "element-plus";
3
+ import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const m = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-"), h = ["header", "default", "footer"], C = l({
4
5
  name: "QyCard",
5
6
  inheritAttrs: !1,
6
7
  props: {
@@ -24,18 +25,18 @@ const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
24
25
  emits: {
25
26
  click: () => !0
26
27
  },
27
- setup(t, { attrs: s, slots: a, emit: o }) {
28
- const l = r(
29
- () => Object.fromEntries(Object.entries(s).filter(([e]) => c(e)))
30
- ), d = r(
28
+ setup(t, { attrs: o, slots: r, emit: s }) {
29
+ const d = a(
30
+ () => Object.fromEntries(Object.entries(o).filter(([e]) => m(e)))
31
+ ), i = a(
31
32
  () => Object.fromEntries(
32
- h.filter((e) => a[e]).map((e) => [e, a[e]])
33
+ h.filter((e) => r[e]).map((e) => [e, r[e]])
33
34
  )
34
35
  );
35
- return () => f(
36
- n,
36
+ return () => n(
37
+ f,
37
38
  {
38
- ...l.value,
39
+ ...d.value,
39
40
  header: t.header,
40
41
  footer: t.footer,
41
42
  shadow: t.shadow,
@@ -43,12 +44,12 @@ const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
43
44
  headerClass: t.headerClass,
44
45
  bodyClass: t.bodyClass,
45
46
  footerClass: t.footerClass,
46
- onClick: (e) => o("click", e)
47
+ onClick: (e) => s("click", e)
47
48
  },
48
- d.value
49
+ i.value
49
50
  );
50
51
  }
51
- });
52
+ }), S = /* @__PURE__ */ c(C, [["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-card/index.vue"]]);
52
53
  export {
53
- b as _
54
+ S as C
54
55
  };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("vue"),P=require("element-plus"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=o.defineComponent({name:"QyDrawerElementRenderer",inheritAttrs:!1,__name:"ElementDrawerRenderer",props:{id:{type:String,required:!0},modelValue:{type:Boolean,required:!0},direction:{type:String,required:!0},size:{type:String,required:!0},teleportTo:{type:null,required:!0},title:{type:String,required:!1},showHeader:{type:Boolean,required:!0},showClose:{type:Boolean,required:!0},showOverlay:{type:Boolean,required:!0},destroyOnClose:{type:Boolean,required:!0},bodyPadding:{type:String,required:!0},overlayVariant:{type:String,required:!0},close:{type:Function,required:!0}},emits:["opened","closed"],setup(e,{expose:t}){const n=e,r=o.computed(()=>n.bodyPadding==="none"?"qy-drawer__body--none":"qy-drawer__body--default"),c=o.computed(()=>n.overlayVariant==="transparent"?"qy-drawer__overlay--transparent":"qy-drawer__overlay--default"),i=o.computed(()=>["qy-drawer",`qy-drawer--body-${n.bodyPadding}`,`qy-drawer--overlay-${n.overlayVariant}`]),a=n.close;function s(){return typeof document>"u"?null:document.querySelector(`[data-qy-drawer-id="${n.id}"]`)}function f(){const u=s();return(u==null?void 0:u.closest(".el-overlay"))||null}t({getPanelElement:s,getOverlayElement:f});const y={props:n,bodyClass:r,overlayClass:c,rootClass:i,close:a,getPanelElement:s,getOverlayElement:f,get ElDrawer(){return P.ElDrawer}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),I={class:"qy-drawer__header"},R={class:"qy-drawer__header-content"},A={class:"qy-drawer__title"};function M(e,t,n,r,c,i){return o.openBlock(),o.createBlock(r.ElDrawer,{"model-value":n.modelValue,direction:n.direction,size:n.size,"append-to":n.teleportTo,title:n.title,"with-header":n.showHeader,"show-close":!1,modal:n.showOverlay,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":n.destroyOnClose,"lock-scroll":!1,"body-class":r.bodyClass,"modal-class":r.overlayClass,class:o.normalizeClass(r.rootClass),"data-qy-drawer-id":n.id,onOpened:t[1]||(t[1]=a=>e.$emit("opened")),onClosed:t[2]||(t[2]=a=>e.$emit("closed"))},o.createSlots({header:o.withCtx(({titleId:a})=>[o.createElementVNode("div",I,[o.createElementVNode("div",R,[o.renderSlot(e.$slots,"header",{close:r.close,titleId:a},()=>[o.createElementVNode("span",A,o.toDisplayString(n.title),1)])]),n.showClose?(o.openBlock(),o.createElementBlock("button",{key:0,"data-testid":"qy-drawer-close",class:"qy-drawer__close",type:"button","aria-label":"关闭抽屉",onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s))},[...t[3]||(t[3]=[o.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):o.createCommentVNode("v-if",!0)])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{close:r.close})]),_:2},[e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer",{close:r.close})]),key:"0"}:void 0]),1032,["model-value","direction","size","append-to","title","with-header","modal","destroy-on-close","body-class","modal-class","class","data-qy-drawer-id"])}const H=B._export_sfc(N,[["render",M],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-drawer/renderers/ElementDrawerRenderer.vue"]]),V=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function j(){if(typeof document>"u")return null;const e=document.activeElement;return e instanceof HTMLElement?e:null}function G(e){var n,r;if(!e)return;(r=(n=e.querySelector(V)||e).focus)==null||r.call(n)}function U(e){return!!(e!=null&&e.querySelector(V))}function Z(e){!e||!e.isConnected||e.focus()}const p=[],w=new Set;let q=null;function D(){return[...p].reverse().find(e=>e.isOpen())}function _(e){if(!e.isConnected)return!1;const t=window.getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function Q(e){const{panel:t,overlay:n}=e.getLayerElements();return n&&_(n)?n:t&&_(t)?t:null}function k(e){const t=Number.parseInt(window.getComputedStyle(e).zIndex,10);return Number.isFinite(t)?t:0}function K(e,t){const n=k(e),r=k(t);return n!==r?n>r:!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING)}function W(e){return Array.from(document.querySelectorAll(".el-overlay, .el-drawer, .el-dialog")).filter(_).some(n=>n===e||!n.matches(".el-overlay")&&n.closest(".el-overlay")?!1:K(n,e))}function J(e){const t=Q(e);return!!(t&&!W(t))}function X(e){return p.some(t=>t.id!==e&&t.isOpen())}function Y(e){return[...p].reverse().filter(t=>t.id!==e).map(t=>t.getFocusTarget()).find(t=>t==null?void 0:t.isConnected)||null}function $(e){return p.push(e),()=>{const t=p.indexOf(e);t>=0&&p.splice(t,1)}}function ee(e){const t=p.findIndex(r=>r.id===e);if(t<0)return;const[n]=p.splice(t,1);p.push(n)}function b(e,t){if(!(typeof document>"u"||!document.body)){if(t){if(w.has(e))return;w.size===0&&(q=document.body.style.overflow),w.add(e),document.body.style.overflow="hidden";return}!w.delete(e)||w.size>0||(document.body.style.overflow=q??"",q=null)}}function re(e){if(e.key!=="Escape"&&e.code!=="Escape")return;const t=D();!t||!J(t)||(e.preventDefault(),e.stopPropagation(),t.requestClose("escape"))}function te(e){const t=D();!t||!t.isMaskTarget(e.target)||(e.preventDefault(),e.stopPropagation(),t.requestClose("mask"))}typeof window<"u"&&(window.addEventListener("keydown",re,!0),document.addEventListener("click",te,!0));const oe=o.defineComponent({name:"QyDrawer",inheritAttrs:!1,__name:"index",props:{modelValue:{type:Boolean,required:!0},placement:{type:String,required:!1,default:"right"},size:{type:[String,Number],required:!1,default:"30%"},title:{type:String,required:!1,default:""},showHeader:{type:Boolean,required:!1,default:!0},showClose:{type:Boolean,required:!1,default:!0},showOverlay:{type:Boolean,required:!1,default:!0},closeOnMask:{type:Boolean,required:!1,default:!0},closeOnEscape:{type:Boolean,required:!1,default:!0},destroyOnClose:{type:Boolean,required:!1,default:!0},lockScroll:{type:Boolean,required:!1,default:!0},autoFocus:{type:Boolean,required:!1,default:!0},restoreFocus:{type:Boolean,required:!1,default:!0},closeDisabled:{type:Boolean,required:!1,default:!1},teleportTo:{type:null,required:!1,default:"body"},bodyPadding:{type:String,required:!1,default:"default"},overlayVariant:{type:String,required:!1,default:"default"}},emits:["update:modelValue","close","opened","closed"],setup(e,{expose:t,emit:n}){t();const r=e,c=n,i=o.ref(null),a=`qy-drawer-${Math.random().toString(36).slice(2,10)}`,s=o.ref(!1),f=o.ref(!1),y=o.ref(null);let u;const x=o.computed(()=>({left:"ltr",right:"rtl",top:"ttb",bottom:"btt"})[r.placement]),z=o.computed(()=>typeof r.size=="number"?`${r.size}px`:r.size),L=()=>v("close-button");function g(){return r.modelValue}function C(l){var O,E;if(!r.showOverlay||!r.closeOnMask)return!1;const d=(O=i.value)==null?void 0:O.getPanelElement(),m=(E=i.value)==null?void 0:E.getOverlayElement();return!d||!m||!(l instanceof Node)?!1:m.contains(l)&&!d.contains(l)}function v(l){!r.modelValue||r.closeDisabled||l==="mask"&&!r.closeOnMask||l==="escape"&&!r.closeOnEscape||s.value||(s.value=!0,c("update:modelValue",!1),c("close",l),o.nextTick(()=>{r.modelValue&&(s.value=!1)}))}function h(){r.modelValue&&(s.value=!1,f.value=!0,y.value=j(),ee(a),b(a,r.lockScroll))}function T(){!r.modelValue||!f.value||(r.autoFocus&&o.nextTick(()=>{var m;const l=((m=i.value)==null?void 0:m.getPanelElement())||null,d=(l==null?void 0:l.querySelector(".el-drawer__body"))||null;G(U(d)?d:l)}),c("opened"))}function F(){var d;if(r.modelValue||!f.value)return;f.value=!1,b(a,!1),c("closed");const l=X(a);if(r.restoreFocus&&!l){const m=(d=y.value)!=null&&d.isConnected?y.value:Y(a);Z(m)}l||(y.value=null),s.value=!1}o.watch(()=>r.modelValue,(l,d)=>{l&&h()}),o.onMounted(()=>{u=$({id:a,isOpen:g,isMaskTarget:C,requestClose:v,getFocusTarget:()=>y.value,getLayerElements:()=>{var l,d;return{panel:((l=i.value)==null?void 0:l.getPanelElement())||null,overlay:((d=i.value)==null?void 0:d.getOverlayElement())||null}}}),h()}),o.onBeforeUnmount(()=>{u==null||u(),b(a,!1),f.value=!1});const S={props:r,emit:c,rendererRef:i,drawerId:a,closeRequested:s,openCycleActive:f,openingFocus:y,get unregister(){return u},set unregister(l){u=l},direction:x,normalizedSize:z,slotClose:L,isOpen:g,isMaskTarget:C,requestClose:v,syncOpenState:h,handleOpened:T,handleClosed:F,ElementDrawerRenderer:H};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}}),ne={class:"qy-drawer__title"};function le(e,t,n,r,c,i){return o.openBlock(),o.createBlock(r.ElementDrawerRenderer,{ref:"rendererRef",id:r.drawerId,"model-value":r.props.modelValue,direction:r.direction,size:r.normalizedSize,"teleport-to":r.props.teleportTo,title:r.props.title,"show-header":r.props.showHeader,"show-close":r.props.showClose,"show-overlay":r.props.showOverlay,"destroy-on-close":r.props.destroyOnClose,"body-padding":r.props.bodyPadding,"overlay-variant":r.props.overlayVariant,close:r.slotClose,onOpened:r.handleOpened,onClosed:r.handleClosed},o.createSlots({header:o.withCtx(({close:a,titleId:s})=>[o.renderSlot(e.$slots,"header",{close:a,titleId:s},()=>[o.createElementVNode("span",ne,o.toDisplayString(r.props.title),1)])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{close:r.slotClose})]),_:2},[e.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(e.$slots,"footer",{close:r.slotClose})]),key:"0"}:void 0]),1032,["model-value","direction","size","teleport-to","title","show-header","show-close","show-overlay","destroy-on-close","body-padding","overlay-variant"])}const ae=B._export_sfc(oe,[["render",le],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-drawer/index.vue"]]);exports.Drawer=ae;
package/index.d.ts CHANGED
@@ -244,6 +244,7 @@ export type {
244
244
  export type {
245
245
  QyDialogCloseReason,
246
246
  QyDialogEmits,
247
+ QyDialogExposed,
247
248
  QyDialogProps
248
249
  } from './qy-dialog'
249
250
  export type {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.47",
3
+ "version": "1.2.0",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -467,7 +467,7 @@
467
467
  },
468
468
  "peerDependencies": {
469
469
  "vue": "^3.4.0",
470
- "element-plus": "^2.9.0",
470
+ "element-plus": "^2.14.0",
471
471
  "@element-plus/icons-vue": "^2.0.0",
472
472
  "@vueuse/core": ">=10.0.0",
473
473
  "clsx": ">=2.0.0"
@@ -1,5 +1,4 @@
1
1
  import type {
2
- ComponentOptionsMixin,
3
2
  DefineComponent,
4
3
  Plugin
5
4
  } from 'vue'
@@ -51,14 +50,18 @@ export type QyDialogEmits = {
51
50
  closed: () => void
52
51
  }
53
52
 
53
+ export interface QyDialogExposed {
54
+ handleMinimize: () => void
55
+ }
56
+
54
57
  declare const QyDialog: DefineComponent<
55
58
  QyDialogProps,
59
+ QyDialogExposed,
60
+ {},
56
61
  {},
57
62
  {},
58
63
  {},
59
64
  {},
60
- ComponentOptionsMixin,
61
- ComponentOptionsMixin,
62
65
  QyDialogEmits
63
66
  > &
64
67
  Plugin
@@ -4,7 +4,7 @@ import type {
4
4
  Plugin
5
5
  } from 'vue'
6
6
 
7
- export type QyUploadVariant = 'media-card' | 'file-list'
7
+ export type QyUploadVariant = 'media-card' | 'attachment-card' | 'file-list'
8
8
  export type QyUploadValueFormat = 'object' | 'array' | 'string'
9
9
  export type QyUploadInvalidCode = 'extension' | 'size'
10
10
 
@@ -81,6 +81,7 @@ export type QyUploadEmits = {
81
81
  error: (error: unknown) => void
82
82
  remove: (file: unknown, files: unknown[]) => void
83
83
  invalid: (detail: QyUploadInvalidDetail) => void
84
+ preview: (file: { url: string; name: string }) => void
84
85
  }
85
86
 
86
87
  declare const QyUpload: DefineComponent<
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),f=require("element-plus"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=t.defineComponent({name:"QyTag",inheritAttrs:!1,__name:"index",props:{tone:{default:"neutral"},size:{default:"md"},effect:{default:"light"},closable:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click","close"],setup(e,{emit:n}){const s=n,c=t.useAttrs(),i=t.computed(()=>{const l=Object.fromEntries(Object.entries(c).filter(([a])=>a==="class"||a==="style"||a==="title"||a==="role"||a.startsWith("data-")||a.startsWith("aria-")));return e.disabled&&(l["aria-disabled"]="true"),l}),o=t.computed(()=>e.tone==="neutral"?"info":e.tone),d=t.computed(()=>({sm:"small",md:"default",lg:"large"})[e.size]);function u(l){e.disabled||s("click",l)}function r(l){e.disabled||s("close",l)}return(l,a)=>(t.openBlock(),t.createBlock(t.unref(f.ElTag),t.mergeProps(i.value,{class:["qy-tag",[`qy-tag--${e.tone}`,{"qy-tag--disabled":e.disabled}]],type:o.value,size:d.value,effect:e.effect,closable:e.closable&&!e.disabled,round:e.round,onClick:u,onClose:r}),{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["class","type","size","effect","closable","round"]))}}),g=m._export_sfc(b,[["__scopeId","data-v-335c865b"]]);exports.Tag=g;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean]},value:{type:[String,Number,Boolean],default:!0},label:{},disabled:{type:Boolean,default:void 0},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,n=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&n("update:modelValue",l.value)}function v(){i()&&n("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const o=e.target;!o||o.tagName!=="INPUT"||o.type!=="radio"||o.disabled||o.checked||(e.preventDefault(),o.click())}function _(e){n("focus",e)}function h(e){n("blur",e)}return(e,o)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-66184801"]]);exports.Radio=x;
@@ -1,149 +0,0 @@
1
- import { defineComponent as V, computed as h, ref as w, onBeforeUnmount as I, openBlock as o, createElementBlock as s, normalizeClass as v, createBlock as $, withCtx as T, createElementVNode as l, Fragment as b, renderList as C, normalizeStyle as M, createCommentVNode as m, toDisplayString as y } from "vue";
2
- import { _ as D } from "./index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs";
3
- import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const N = { class: "qy-menu-actions__panel" }, U = ["disabled", "data-action-key", "onClick"], W = {
5
- key: 0,
6
- class: "qy-menu-actions__loading"
7
- }, F = {
8
- key: 0,
9
- class: "qy-menu-actions__empty"
10
- }, H = {
11
- key: 1,
12
- class: "qy-menu-actions__inline"
13
- }, K = ["disabled", "data-action-key", "onClick"], P = {
14
- key: 0,
15
- class: "qy-menu-actions__loading"
16
- }, Q = {
17
- key: 0,
18
- class: "qy-menu-actions__empty"
19
- }, j = /* @__PURE__ */ V({
20
- name: "QyMenuActions",
21
- __name: "index",
22
- props: {
23
- actions: { default: () => [] },
24
- row: {},
25
- rowIndex: {},
26
- context: {},
27
- mode: { default: "inline" },
28
- emptyText: { default: "无数据" },
29
- popoverWidth: { default: 150 },
30
- confirmMethod: {}
31
- },
32
- emits: ["action", "confirm-required"],
33
- setup(a, { emit: A }) {
34
- const r = a, g = A, q = h(() => {
35
- var t, n;
36
- return {
37
- ...r.context,
38
- row: r.row ?? ((t = r.context) == null ? void 0 : t.row),
39
- rowIndex: r.rowIndex ?? ((n = r.context) == null ? void 0 : n.rowIndex)
40
- };
41
- }), p = w(!1), u = w(/* @__PURE__ */ new Set()), z = (t, n) => ({
42
- ...q.value,
43
- target: n.currentTarget,
44
- hide: L,
45
- setLoading: (e) => S(t, e)
46
- }), f = (t) => typeof t == "function" ? t(q.value) : !!t, c = h(
47
- () => r.actions.filter((t) => !f(t.hidden))
48
- ), B = h(
49
- () => c.value.some((t) => i(t))
50
- ), _ = (t) => f(t.disabled) || i(t), i = (t) => u.value.has(t.key) || f(t.loading), k = (t, n) => {
51
- const e = t.type || n;
52
- return {
53
- default: "var(--el-text-color-primary)",
54
- primary: "var(--el-color-primary)",
55
- success: "var(--el-color-success)",
56
- warning: "var(--el-color-warning)",
57
- danger: "var(--el-color-danger)"
58
- }[e];
59
- }, x = async (t, n) => {
60
- if (n.stopPropagation(), _(t)) return;
61
- const e = z(t, n);
62
- if (t.confirm) {
63
- if (!r.confirmMethod) {
64
- g("confirm-required", t, e);
65
- return;
66
- }
67
- if (!await r.confirmMethod(t, e)) return;
68
- }
69
- g("action", t, e);
70
- };
71
- function L() {
72
- p.value = !1;
73
- }
74
- function S(t, n) {
75
- const e = new Set(u.value);
76
- n ? e.add(t.key) : e.delete(t.key), u.value = e;
77
- }
78
- return I(() => {
79
- u.value = /* @__PURE__ */ new Set();
80
- }), (t, n) => (o(), s("div", {
81
- class: v(["qy-menu-actions", `is-${a.mode}`])
82
- }, [
83
- a.mode === "popover" ? (o(), $(D, {
84
- key: 0,
85
- open: p.value,
86
- "onUpdate:open": n[0] || (n[0] = (e) => p.value = e),
87
- trigger: "hover",
88
- placement: "left",
89
- width: a.popoverWidth,
90
- "hide-delay": B.value ? 999999 : 100,
91
- "show-arrow": !1
92
- }, {
93
- reference: T(() => [...n[1] || (n[1] = [
94
- l("button", {
95
- class: "qy-menu-actions__trigger",
96
- type: "button",
97
- "aria-label": "行操作"
98
- }, [
99
- l("svg", {
100
- class: "qy-menu-actions__trigger-icon",
101
- viewBox: "0 0 24 24",
102
- "aria-hidden": "true"
103
- }, [
104
- l("path", {
105
- fill: "currentColor",
106
- d: "M8 17q.425 0 .713-.288T9 16q0-.425-.288-.712T8 15q-.425 0-.712.288T7 16q0 .425.288.713T8 17m0-4q.425 0 .713-.288T9 12q0-.425-.288-.712T8 11q-.425 0-.712.288T7 12q0 .425.288.713T8 13m0-4q.425 0 .713-.288T9 8q0-.425-.288-.712T8 7q-.425 0-.712.288T7 8q0 .425.288.713T8 9m3 8h6v-2h-6zm0-4h6v-2h-6zm0-4h6V7h-6zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5z"
107
- })
108
- ])
109
- ], -1)
110
- ])]),
111
- default: T(() => [
112
- l("div", N, [
113
- (o(!0), s(b, null, C(c.value, (e) => (o(), s("button", {
114
- key: e.key,
115
- class: v(["qy-menu-actions__item", [`is-${e.type || "default"}`, { "is-loading": i(e) }]]),
116
- disabled: _(e),
117
- "data-action-key": e.key,
118
- style: M({ color: k(e, "default") }),
119
- type: "button",
120
- onClick: (d) => x(e, d)
121
- }, [
122
- i(e) ? (o(), s("span", W)) : m("", !0),
123
- l("span", null, y(e.label), 1)
124
- ], 14, U))), 128)),
125
- c.value.length ? m("", !0) : (o(), s("div", F, y(a.emptyText), 1))
126
- ])
127
- ]),
128
- _: 1
129
- }, 8, ["open", "width", "hide-delay"])) : (o(), s("div", H, [
130
- (o(!0), s(b, null, C(c.value, (e) => (o(), s("button", {
131
- key: e.key,
132
- class: v(["qy-menu-actions__item", [`is-${e.type || "primary"}`, { "is-loading": i(e) }]]),
133
- disabled: _(e),
134
- "data-action-key": e.key,
135
- style: M({ color: k(e, "primary") }),
136
- type: "button",
137
- onClick: (d) => x(e, d)
138
- }, [
139
- i(e) ? (o(), s("span", P)) : m("", !0),
140
- l("span", null, y(e.label), 1)
141
- ], 14, K))), 128)),
142
- c.value.length ? m("", !0) : (o(), s("span", Q, y(a.emptyText), 1))
143
- ]))
144
- ], 2));
145
- }
146
- }), R = /* @__PURE__ */ E(j, [["__scopeId", "data-v-18227456"]]);
147
- export {
148
- R as M
149
- };