@qynpm/ui 1.0.40 → 1.0.41

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 (422) hide show
  1. package/README.md +1797 -1797
  2. package/dist/index.cjs +19 -19
  3. package/dist/index.mjs +21 -21
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-alert/index.cjs +1 -1
  7. package/dist/qy-alert/index.mjs +4 -4
  8. package/dist/qy-aside/index.cjs +1 -1
  9. package/dist/qy-aside/index.mjs +4 -4
  10. package/dist/qy-autocomplete/index.cjs +1 -1
  11. package/dist/qy-autocomplete/index.mjs +3 -3
  12. package/dist/qy-avatar/index.cjs +1 -1
  13. package/dist/qy-avatar/index.mjs +1 -1
  14. package/dist/qy-badge/index.cjs +1 -1
  15. package/dist/qy-badge/index.mjs +4 -4
  16. package/dist/qy-button/index.cjs +2 -2
  17. package/dist/qy-button/index.mjs +2 -2
  18. package/dist/qy-card/index.cjs +1 -1
  19. package/dist/qy-card/index.mjs +1 -1
  20. package/dist/qy-cascader/index.cjs +1 -1
  21. package/dist/qy-cascader/index.mjs +3 -3
  22. package/dist/qy-checkbox/index.cjs +1 -1
  23. package/dist/qy-checkbox/index.mjs +1 -1
  24. package/dist/qy-checkbox-group/index.cjs +1 -1
  25. package/dist/qy-checkbox-group/index.mjs +4 -4
  26. package/dist/qy-col/index.cjs +1 -1
  27. package/dist/qy-col/index.mjs +4 -4
  28. package/dist/qy-collapse/index.cjs +1 -1
  29. package/dist/qy-collapse/index.mjs +2 -2
  30. package/dist/qy-collapse-item/index.cjs +1 -1
  31. package/dist/qy-collapse-item/index.mjs +5 -5
  32. package/dist/qy-color-picker/index.cjs +1 -1
  33. package/dist/qy-color-picker/index.mjs +4 -4
  34. package/dist/qy-container/index.cjs +1 -1
  35. package/dist/qy-container/index.mjs +3 -3
  36. package/dist/qy-date-picker/index.cjs +1 -1
  37. package/dist/qy-date-picker/index.mjs +1 -1
  38. package/dist/qy-descriptions/index.cjs +1 -1
  39. package/dist/qy-descriptions/index.mjs +1 -1
  40. package/dist/qy-descriptions-item/index.cjs +1 -1
  41. package/dist/qy-descriptions-item/index.mjs +4 -4
  42. package/dist/qy-dialog/index.cjs +1 -1
  43. package/dist/qy-dialog/index.mjs +4 -4
  44. package/dist/qy-divider/index.cjs +1 -1
  45. package/dist/qy-divider/index.mjs +4 -4
  46. package/dist/qy-drawer/index.cjs +1 -1
  47. package/dist/qy-drawer/index.mjs +2 -2
  48. package/dist/qy-dropdown/index.cjs +2 -2
  49. package/dist/qy-dropdown/index.mjs +2 -2
  50. package/dist/qy-empty/index.cjs +1 -1
  51. package/dist/qy-empty/index.mjs +4 -4
  52. package/dist/qy-file-picker/index.cjs +1 -1
  53. package/dist/qy-file-picker/index.mjs +1 -1
  54. package/dist/qy-form-section/index.cjs +1 -1
  55. package/dist/qy-form-section/index.mjs +1 -1
  56. package/dist/qy-fullscreen/index.cjs +1 -1
  57. package/dist/qy-fullscreen/index.mjs +1 -1
  58. package/dist/qy-icon/index.cjs +1 -1
  59. package/dist/qy-icon/index.mjs +2 -2
  60. package/dist/qy-icon-picker/index.cjs +2 -2
  61. package/dist/qy-icon-picker/index.mjs +5 -5
  62. package/dist/qy-iframe/index.cjs +1 -1
  63. package/dist/qy-iframe/index.mjs +1 -1
  64. package/dist/qy-image/index.cjs +1 -1
  65. package/dist/qy-image/index.mjs +1 -1
  66. package/dist/qy-image-preview/index.cjs +1 -1
  67. package/dist/qy-image-preview/index.mjs +1 -1
  68. package/dist/qy-image-upload/index.cjs +1 -1
  69. package/dist/qy-image-upload/index.mjs +1 -1
  70. package/dist/qy-input/index.cjs +1 -1
  71. package/dist/qy-input/index.mjs +1 -1
  72. package/dist/qy-input-number/index.cjs +1 -1
  73. package/dist/qy-input-number/index.mjs +2 -2
  74. package/dist/qy-input-tag/index.cjs +1 -1
  75. package/dist/qy-input-tag/index.mjs +4 -4
  76. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  77. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  78. package/dist/qy-link/index.cjs +1 -1
  79. package/dist/qy-link/index.mjs +5 -5
  80. package/dist/qy-main/index.cjs +1 -1
  81. package/dist/qy-main/index.mjs +4 -4
  82. package/dist/qy-menu-actions/index.cjs +1 -1
  83. package/dist/qy-menu-actions/index.mjs +1 -1
  84. package/dist/qy-money-input/index.cjs +1 -1
  85. package/dist/qy-money-input/index.mjs +4 -4
  86. package/dist/qy-pagination/index.cjs +1 -1
  87. package/dist/qy-pagination/index.mjs +1 -1
  88. package/dist/qy-popconfirm/index.cjs +1 -1
  89. package/dist/qy-popconfirm/index.mjs +5 -5
  90. package/dist/qy-popover/index.cjs +1 -1
  91. package/dist/qy-popover/index.mjs +4 -4
  92. package/dist/qy-progress/index.cjs +1 -1
  93. package/dist/qy-progress/index.mjs +3 -3
  94. package/dist/qy-radio/index.cjs +1 -1
  95. package/dist/qy-radio/index.mjs +1 -1
  96. package/dist/qy-radio-group/index.cjs +1 -1
  97. package/dist/qy-radio-group/index.mjs +1 -1
  98. package/dist/qy-record-quote-search/index.cjs +1 -1
  99. package/dist/qy-record-quote-search/index.mjs +1 -1
  100. package/dist/qy-remark-image/index.cjs +1 -1
  101. package/dist/qy-remark-image/index.mjs +1 -1
  102. package/dist/qy-remote-select/index.cjs +1 -1
  103. package/dist/qy-remote-select/index.mjs +1 -1
  104. package/dist/qy-result/index.cjs +1 -1
  105. package/dist/qy-result/index.mjs +4 -4
  106. package/dist/qy-row/index.cjs +1 -1
  107. package/dist/qy-row/index.mjs +4 -4
  108. package/dist/qy-scrollbar/index.cjs +1 -1
  109. package/dist/qy-scrollbar/index.mjs +3 -3
  110. package/dist/qy-search-input/index.cjs +1 -1
  111. package/dist/qy-search-input/index.mjs +1 -1
  112. package/dist/qy-select/index.cjs +1 -1
  113. package/dist/qy-select/index.mjs +1 -1
  114. package/dist/qy-selection-dialog/index.cjs +1 -1
  115. package/dist/qy-selection-dialog/index.mjs +1 -1
  116. package/dist/qy-skeleton/index.cjs +1 -1
  117. package/dist/qy-skeleton/index.mjs +4 -4
  118. package/dist/qy-skeleton-item/index.cjs +1 -1
  119. package/dist/qy-skeleton-item/index.mjs +4 -4
  120. package/dist/qy-statistic/index.cjs +1 -1
  121. package/dist/qy-statistic/index.mjs +3 -3
  122. package/dist/qy-step/index.cjs +1 -1
  123. package/dist/qy-step/index.mjs +5 -5
  124. package/dist/qy-steps/index.cjs +1 -1
  125. package/dist/qy-steps/index.mjs +4 -4
  126. package/dist/qy-switch/index.cjs +1 -1
  127. package/dist/qy-switch/index.mjs +1 -1
  128. package/dist/qy-tab-pane/index.cjs +1 -1
  129. package/dist/qy-tab-pane/index.mjs +4 -4
  130. package/dist/qy-table-column-settings/index.cjs +1 -1
  131. package/dist/qy-table-column-settings/index.mjs +1 -1
  132. package/dist/qy-tabs/index.cjs +1 -1
  133. package/dist/qy-tabs/index.mjs +4 -4
  134. package/dist/qy-tag/index.cjs +1 -1
  135. package/dist/qy-tag/index.mjs +1 -1
  136. package/dist/qy-tooltip/index.cjs +1 -1
  137. package/dist/qy-tooltip/index.mjs +4 -4
  138. package/dist/qy-tree/index.cjs +1 -1
  139. package/dist/qy-tree/index.mjs +5 -5
  140. package/dist/qy-tree-select/index.cjs +1 -1
  141. package/dist/qy-tree-select/index.mjs +1 -1
  142. package/dist/qy-upload/index.cjs +1 -1
  143. package/dist/qy-upload/index.mjs +1 -1
  144. package/dist/qy-watermark/index.cjs +1 -1
  145. package/dist/qy-watermark/index.mjs +1 -1
  146. package/dist/shared/{index-CBhrdEIf.mjs → index-2D5AFexl.mjs} +1 -1
  147. package/dist/shared/index-8Iwma3ls.mjs +222 -0
  148. package/dist/shared/index-B25yA5j-.mjs +71 -0
  149. package/dist/shared/index-B3GsIwhf.mjs +142 -0
  150. package/dist/shared/index-B3XwO-Lc.mjs +127 -0
  151. package/dist/shared/index-B3YHS3Aa.mjs +54 -0
  152. package/dist/shared/index-BEcS8y8g.mjs +68 -0
  153. package/dist/shared/index-BNssRW4d.mjs +90 -0
  154. package/dist/shared/index-BSTMCPDj.mjs +72 -0
  155. package/dist/shared/index-BhvOSOfi.mjs +766 -0
  156. package/dist/shared/index-BjqJCq-6.mjs +293 -0
  157. package/dist/shared/index-Bq9quq2D.cjs +1 -0
  158. package/dist/shared/index-ByQyMTPg.mjs +285 -0
  159. package/dist/shared/index-CGq7Q_hV.mjs +119 -0
  160. package/dist/shared/{index-D97QYFZw.cjs → index-CUlhX6fW.cjs} +1 -1
  161. package/dist/shared/index-CVWru9T3.cjs +1 -0
  162. package/dist/shared/index-CVYNG8Fc.cjs +1 -0
  163. package/dist/shared/index-CiE6qJCJ.mjs +377 -0
  164. package/dist/shared/index-CnVhquq5.cjs +1 -0
  165. package/dist/shared/index-Co84fsS5.mjs +225 -0
  166. package/dist/shared/index-D27mwR57.cjs +1 -0
  167. package/dist/shared/index-DAztNKSp.cjs +1 -0
  168. package/dist/shared/index-DKw-seoh.cjs +1 -0
  169. package/dist/shared/index-DRIoLeFE.mjs +162 -0
  170. package/dist/shared/index-DRugp8x0.cjs +1 -0
  171. package/dist/shared/index-DTbGlDqr.cjs +1 -0
  172. package/dist/shared/index-DXZ6Y6wd.mjs +107 -0
  173. package/dist/shared/index-DiEag4sK.cjs +1 -0
  174. package/dist/shared/index-DuP-b_eY.cjs +1 -0
  175. package/dist/shared/index-DvFMgAcu.mjs +149 -0
  176. package/dist/shared/index-E3zI0Ugj.mjs +2362 -0
  177. package/dist/shared/index-EIFVul2W.cjs +1 -0
  178. package/dist/shared/index-HNFq7v-A.cjs +1 -0
  179. package/dist/shared/index-Mj7JZt7y.cjs +1 -0
  180. package/dist/shared/index-MyDDX-zj.cjs +1 -0
  181. package/dist/shared/index-R_hSPemR.cjs +1 -0
  182. package/dist/shared/index-d76Z3yrB.cjs +1 -0
  183. package/dist/shared/index-gMrQlV5n.cjs +1 -0
  184. package/dist/shared/index-rSrDnOpu.cjs +1 -0
  185. package/dist/shared/index-zo5J-y0C.mjs +157 -0
  186. package/dist/shared/{index-CCVlab6d.mjs → index.vue_vue_type_script_lang-69zSOotQ.mjs} +10 -11
  187. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
  188. package/dist/shared/{index-EPcAlzgc.mjs → index.vue_vue_type_script_lang-BGAdXWIL.mjs} +11 -12
  189. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
  190. package/dist/shared/{index-1Vw54aYL.mjs → index.vue_vue_type_script_lang-BaIOvoQn.mjs} +5 -6
  191. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
  192. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +1 -0
  193. package/dist/shared/{index-BG3XKumS.mjs → index.vue_vue_type_script_lang-Bk0kLg5l.mjs} +8 -9
  194. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
  195. package/dist/shared/index.vue_vue_type_script_lang-BnmY1ndj.mjs +77 -0
  196. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
  197. package/dist/shared/{index-Se0xx6vl.mjs → index.vue_vue_type_script_lang-C4JHCuXz.mjs} +13 -14
  198. package/dist/shared/{index-D_Imq4-m.mjs → index.vue_vue_type_script_lang-C9X0V5AK.mjs} +12 -13
  199. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +1 -0
  200. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
  201. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +1 -0
  202. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +31 -0
  203. package/dist/shared/{index-CrlLsoRF.mjs → index.vue_vue_type_script_lang-CZK0hDYa.mjs} +20 -21
  204. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +1 -0
  205. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +43 -0
  206. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
  207. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
  208. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
  209. package/dist/shared/{index-BPXJkcM1.mjs → index.vue_vue_type_script_lang-D7b9ABei.mjs} +19 -20
  210. package/dist/shared/{index-LDtOVxCE.mjs → index.vue_vue_type_script_lang-D7nzeBUR.mjs} +7 -8
  211. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
  212. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
  213. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
  214. package/dist/shared/{index-TVUj4Yp4.mjs → index.vue_vue_type_script_lang-DOOT2grg.mjs} +10 -11
  215. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +43 -0
  216. package/dist/shared/{index-BQzQcTgt.mjs → index.vue_vue_type_script_lang-Dfq7D3mJ.mjs} +3 -4
  217. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
  218. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
  219. package/dist/shared/{index-B1I7mCIm.mjs → index.vue_vue_type_script_lang-chBiq2cG.mjs} +3 -4
  220. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
  221. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
  222. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
  223. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
  224. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +63 -0
  225. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
  226. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
  227. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs +1 -0
  228. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
  229. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +1 -0
  230. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
  231. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  232. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
  233. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +1 -0
  234. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
  235. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
  236. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +1 -0
  237. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
  238. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs +106 -0
  239. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
  240. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +94 -0
  241. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +48 -0
  242. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +1 -0
  243. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
  244. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +61 -0
  245. package/dist/shared/index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs +331 -0
  246. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +1 -0
  247. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
  248. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +1 -0
  249. package/dist/shared/index.vue_vue_type_style_index_0_lang-B6cv-Ra3.mjs +404 -0
  250. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +215 -0
  251. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
  252. package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +1 -0
  253. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
  254. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
  255. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
  256. package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +286 -0
  257. package/dist/shared/index.vue_vue_type_style_index_0_lang-CU9gg9t5.cjs +1 -0
  258. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +98 -0
  259. package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +166 -0
  260. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +1 -0
  261. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +1 -0
  262. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  263. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
  264. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
  265. package/dist/shared/index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs +317 -0
  266. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +128 -0
  267. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +298 -0
  268. package/dist/shared/index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs +1 -0
  269. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +1 -0
  270. package/dist/shared/{index-DZU3jXf9.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +9 -10
  271. package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +1 -0
  272. package/dist/shared/{index-GRwpbz1m.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +17 -18
  273. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +1 -0
  274. package/index.d.ts +592 -592
  275. package/package.json +14 -10
  276. package/qy-action-bar/index.d.ts +5 -5
  277. package/qy-aside/index.d.ts +47 -47
  278. package/qy-button/index.d.ts +34 -34
  279. package/qy-checkbox/index.d.ts +45 -45
  280. package/qy-checkbox-group/index.d.ts +48 -48
  281. package/qy-col/index.d.ts +65 -65
  282. package/qy-color-picker/index.d.ts +36 -36
  283. package/qy-container/index.d.ts +49 -49
  284. package/qy-date-picker/index.d.ts +140 -140
  285. package/qy-dropdown/index.d.ts +40 -40
  286. package/qy-file-picker/index.d.ts +48 -48
  287. package/qy-form-section/index.d.ts +5 -5
  288. package/qy-fullscreen/index.d.ts +72 -72
  289. package/qy-icon/index.d.ts +99 -99
  290. package/qy-icon-picker/index.d.ts +56 -56
  291. package/qy-input/index.d.ts +32 -32
  292. package/qy-input-number/index.d.ts +15 -15
  293. package/qy-legacy-selection-dialog/index.d.ts +5 -5
  294. package/qy-main/index.d.ts +45 -45
  295. package/qy-popconfirm/index.d.ts +55 -55
  296. package/qy-popover/index.d.ts +63 -63
  297. package/qy-radio/index.d.ts +44 -44
  298. package/qy-radio-group/index.d.ts +60 -60
  299. package/qy-record-quote-search/index.d.ts +5 -5
  300. package/qy-remark-image/index.d.ts +5 -5
  301. package/qy-remote-select/index.d.ts +12 -12
  302. package/qy-row/index.d.ts +59 -59
  303. package/qy-search-input/index.d.ts +5 -5
  304. package/qy-select/index.d.ts +67 -67
  305. package/qy-selection-dialog/index.d.ts +5 -5
  306. package/qy-statistic/index.d.ts +61 -61
  307. package/qy-switch/index.d.ts +46 -46
  308. package/qy-tag/index.d.ts +44 -44
  309. package/qy-tooltip/index.d.ts +54 -54
  310. package/qy-watermark/index.d.ts +72 -72
  311. package/dist/shared/index-5vWL_IJI.mjs +0 -150
  312. package/dist/shared/index-7fIb2Tqw.mjs +0 -129
  313. package/dist/shared/index-9T0p3USM.cjs +0 -1
  314. package/dist/shared/index-B-zfoMbw.cjs +0 -1
  315. package/dist/shared/index-B1aU9mew.mjs +0 -77
  316. package/dist/shared/index-B26-GlFX.cjs +0 -1
  317. package/dist/shared/index-B63vgrS4.mjs +0 -73
  318. package/dist/shared/index-B97hTd-h.cjs +0 -1
  319. package/dist/shared/index-B9zEH5Yq.cjs +0 -1
  320. package/dist/shared/index-BA_tJgLE.cjs +0 -1
  321. package/dist/shared/index-BBIPQa5N.mjs +0 -76
  322. package/dist/shared/index-BCWvMvRL.cjs +0 -1
  323. package/dist/shared/index-BDJIWxaw.cjs +0 -1
  324. package/dist/shared/index-BFbAB8UH.mjs +0 -307
  325. package/dist/shared/index-BHGDbXoK.mjs +0 -82
  326. package/dist/shared/index-BInkt-Al.cjs +0 -1
  327. package/dist/shared/index-BKEw_9fh.mjs +0 -2660
  328. package/dist/shared/index-BNfu2YgX.mjs +0 -47
  329. package/dist/shared/index-BUSdZ-x8.cjs +0 -1
  330. package/dist/shared/index-BZDbBD41.cjs +0 -1
  331. package/dist/shared/index-Bc1ny9GC.cjs +0 -1
  332. package/dist/shared/index-BcscC86C.mjs +0 -206
  333. package/dist/shared/index-BiowqiSD.cjs +0 -1
  334. package/dist/shared/index-Bpl6Jh4H.cjs +0 -1
  335. package/dist/shared/index-BqojE7aF.cjs +0 -1
  336. package/dist/shared/index-BrZzYI8x.cjs +0 -1
  337. package/dist/shared/index-BsXys36-.cjs +0 -1
  338. package/dist/shared/index-BvmXE8aK.cjs +0 -1
  339. package/dist/shared/index-Bw3nETeY.cjs +0 -1
  340. package/dist/shared/index-BxxuaQGJ.cjs +0 -1
  341. package/dist/shared/index-BxymsnW0.cjs +0 -1
  342. package/dist/shared/index-BzpgGytE.mjs +0 -52
  343. package/dist/shared/index-BzzZmppN.mjs +0 -63
  344. package/dist/shared/index-C0rOcDsc.cjs +0 -1
  345. package/dist/shared/index-C1hAuubZ.mjs +0 -157
  346. package/dist/shared/index-C2BQtQPa.mjs +0 -61
  347. package/dist/shared/index-C62Loq0f.cjs +0 -1
  348. package/dist/shared/index-C7N8x3DK.mjs +0 -206
  349. package/dist/shared/index-C8aLbb8l.cjs +0 -1
  350. package/dist/shared/index-CA279UZp.mjs +0 -87
  351. package/dist/shared/index-CDjAMIpe.cjs +0 -1
  352. package/dist/shared/index-CDleTMJj.mjs +0 -395
  353. package/dist/shared/index-CG4I3nRK.cjs +0 -1
  354. package/dist/shared/index-CHt1R1WD.cjs +0 -1
  355. package/dist/shared/index-CZIsLBLq.cjs +0 -1
  356. package/dist/shared/index-CcEXTVYA.mjs +0 -69
  357. package/dist/shared/index-CedTjtZr.cjs +0 -1
  358. package/dist/shared/index-CgXuleV-.mjs +0 -205
  359. package/dist/shared/index-CkfWS0Ba.cjs +0 -1
  360. package/dist/shared/index-Cm7k9j8a.cjs +0 -1
  361. package/dist/shared/index-CmgT_pgc.mjs +0 -154
  362. package/dist/shared/index-CngdcQWi.cjs +0 -1
  363. package/dist/shared/index-CqdhLbMe.cjs +0 -1
  364. package/dist/shared/index-CsI1WBRp.cjs +0 -1
  365. package/dist/shared/index-CsXA7Qfy.mjs +0 -105
  366. package/dist/shared/index-CsaDF9d4.mjs +0 -175
  367. package/dist/shared/index-CvdUJpAu.mjs +0 -365
  368. package/dist/shared/index-CvfLEIFE.mjs +0 -526
  369. package/dist/shared/index-CwcD7q4B.mjs +0 -446
  370. package/dist/shared/index-D0kCG3Ov.mjs +0 -278
  371. package/dist/shared/index-D1-QYDXi.cjs +0 -1
  372. package/dist/shared/index-D1BK66mG.cjs +0 -1
  373. package/dist/shared/index-D3IHte_d.cjs +0 -1
  374. package/dist/shared/index-D3VO2Ccd.mjs +0 -73
  375. package/dist/shared/index-D5spJ8nj.cjs +0 -1
  376. package/dist/shared/index-D7uPizqd.cjs +0 -1
  377. package/dist/shared/index-D8OJx-hy.mjs +0 -104
  378. package/dist/shared/index-DAiFZxwY.mjs +0 -51
  379. package/dist/shared/index-DBz3lz62.mjs +0 -53
  380. package/dist/shared/index-DCKEecrx.mjs +0 -138
  381. package/dist/shared/index-DCneRuMf.mjs +0 -78
  382. package/dist/shared/index-DD-zKgrO.cjs +0 -1
  383. package/dist/shared/index-DEHvfBYQ.mjs +0 -295
  384. package/dist/shared/index-DF_Q6c4g.mjs +0 -27
  385. package/dist/shared/index-DFeV2CL8.cjs +0 -1
  386. package/dist/shared/index-DIckpqrH.cjs +0 -1
  387. package/dist/shared/index-DKKMSKqm.cjs +0 -1
  388. package/dist/shared/index-DPhYSn9g.mjs +0 -130
  389. package/dist/shared/index-DSq7WIiO.cjs +0 -1
  390. package/dist/shared/index-DTHRZ-aL.mjs +0 -74
  391. package/dist/shared/index-DTqCwGN_.cjs +0 -1
  392. package/dist/shared/index-DVwCIrin.mjs +0 -100
  393. package/dist/shared/index-DbxSDJ7e.mjs +0 -81
  394. package/dist/shared/index-Dc4A_1-H.mjs +0 -53
  395. package/dist/shared/index-Dchy1DNn.mjs +0 -197
  396. package/dist/shared/index-DdKCUobQ.mjs +0 -311
  397. package/dist/shared/index-DdX40CzJ.cjs +0 -1
  398. package/dist/shared/index-DfP6txWq.mjs +0 -198
  399. package/dist/shared/index-Dh_dh3TS.cjs +0 -1
  400. package/dist/shared/index-DjRDV62n.mjs +0 -153
  401. package/dist/shared/index-DpGlBnUl.cjs +0 -1
  402. package/dist/shared/index-DsDUAk2R.cjs +0 -1
  403. package/dist/shared/index-DxUzSONj.cjs +0 -1
  404. package/dist/shared/index-DypZJHmM.cjs +0 -1
  405. package/dist/shared/index-DzCwEfCQ.cjs +0 -1
  406. package/dist/shared/index-Gyu5R4Gn.cjs +0 -1
  407. package/dist/shared/index-IJJI2ylC.mjs +0 -234
  408. package/dist/shared/index-OaA2R7Ur.mjs +0 -369
  409. package/dist/shared/index-S2TDFo5d.cjs +0 -1
  410. package/dist/shared/index-U3c1apvC.cjs +0 -1
  411. package/dist/shared/index-VExJFRrd.mjs +0 -156
  412. package/dist/shared/index-Xw2_Py_V.mjs +0 -63
  413. package/dist/shared/index-ZbSETCxZ.cjs +0 -1
  414. package/dist/shared/index-ZkHMbIv4.cjs +0 -1
  415. package/dist/shared/index-aveXATNw.cjs +0 -1
  416. package/dist/shared/index-byOl9Vtk.cjs +0 -1
  417. package/dist/shared/index-fiuhurmv.cjs +0 -1
  418. package/dist/shared/index-pqwrEshN.cjs +0 -1
  419. package/dist/shared/index-rowlxa3p.mjs +0 -245
  420. package/dist/shared/index-trf8Dvbk.cjs +0 -1
  421. package/dist/shared/index-tsfRa5ze.cjs +0 -1
  422. package/dist/shared/index-uRVIiLjP.mjs +0 -892
@@ -0,0 +1,404 @@
1
+ import { ElDialog as he, ElIcon as xe } from "element-plus/es";
2
+ import { defineComponent as we, useSlots as be, ref as d, computed as C, createVNode as z, watchEffect as ke, watch as te, h as le, onMounted as _e, nextTick as ne, onUnmounted as Ce, openBlock as i, createElementBlock as c, normalizeClass as I, createSlots as ze, withCtx as q, createElementVNode as l, normalizeStyle as A, unref as L, createCommentVNode as v, renderSlot as M, toDisplayString as ae, withModifiers as u, createBlock as ie, withDirectives as qe, vShow as Me } from "vue";
3
+ import Se from "clsx";
4
+ import { ElButton as se } from "element-plus";
5
+ import { Close as Be } from "@element-plus/icons-vue";
6
+ import { useBreakpoints as Ee, useDraggable as Ie } from "@vueuse/core";
7
+ const Le = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, De = { key: 0 }, Oe = { key: 1 }, $e = {
8
+ key: 0,
9
+ class: "icon-[material-symbols--square-outline-rounded]",
10
+ role: "img",
11
+ "aria-hidden": "true"
12
+ }, Te = {
13
+ key: 1,
14
+ class: "icon-[tdesign--fullscreen-exit-1]",
15
+ role: "img",
16
+ "aria-hidden": "true"
17
+ }, Ze = {
18
+ key: 0,
19
+ class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
20
+ }, He = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, Ae = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, Ne = { class: "flex items-center gap-2" }, Fe = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, je = { class: "flex items-center gap-2" }, re = 5, N = 2e3, Je = /* @__PURE__ */ we({
21
+ inheritAttrs: !1,
22
+ __name: "index",
23
+ props: {
24
+ open: { type: Boolean, default: !1 },
25
+ title: { default: "" },
26
+ width: { default: "50%" },
27
+ showFooter: { type: Boolean, default: !0 },
28
+ showConfirm: { type: Boolean, default: !0 },
29
+ showCancel: { type: Boolean, default: !0 },
30
+ confirmText: { default: "确 认" },
31
+ cancelText: { default: "取 消" },
32
+ confirmLoading: { type: Boolean, default: !1 },
33
+ confirmDisabled: { type: Boolean, default: !1 },
34
+ closeOnConfirm: { type: Boolean, default: !1 },
35
+ closeOnEscape: { type: Boolean, default: !0 },
36
+ closeOnOverlay: { type: Boolean, default: !0 },
37
+ minimizable: { type: Boolean, default: !0 },
38
+ destroyOnClose: { type: Boolean, default: !1 },
39
+ draggable: { type: Boolean, default: !0 },
40
+ lockScroll: { type: Boolean, default: !0 },
41
+ top: { default: "15vh" },
42
+ fullscreen: { type: Boolean, default: !1 },
43
+ showFullscreen: { type: Boolean, default: !1 },
44
+ size: { default: "default" },
45
+ zIndex: { default: 2e3 }
46
+ },
47
+ emits: ["update:open", "open-change", "confirm", "cancel", "close", "opened", "closed"],
48
+ setup(de, { expose: ce, emit: ue }) {
49
+ let m = 0;
50
+ const t = de, D = be(), F = d(!0), O = d(!1), j = d(N), R = d(null), fe = Ee({
51
+ mobile: 0,
52
+ tablet: 640,
53
+ laptop: 1024,
54
+ desktop: 1280
55
+ }).isSmaller("tablet"), $ = C(() => {
56
+ const e = [];
57
+ return t.showCancel && e.push("cancel"), t.showConfirm && e.push("confirm"), e;
58
+ }), V = C(() => ({
59
+ CancelButton: z(J),
60
+ ConfirmButton: z(G)
61
+ })), U = C(() => !!(D.footer || t.showFooter)), h = d(!1), b = d(!1);
62
+ let T = !1, x = document.activeElement instanceof HTMLElement ? document.activeElement : null;
63
+ const k = d(
64
+ t.showFullscreen && fe ? !0 : t.fullscreen
65
+ ), s = ue, W = C(() => t.open);
66
+ ke(() => {
67
+ W.value && (h.value = !1);
68
+ }), te(
69
+ () => t.open,
70
+ (e, o) => {
71
+ if (e) {
72
+ h.value = !1, b.value = !1, x = document.activeElement instanceof HTMLElement ? document.activeElement : x, o === !1 && s("open-change", !0);
73
+ return;
74
+ }
75
+ o && !h.value && (h.value = !0, s("open-change", !1), s("close", "external"));
76
+ }
77
+ ), te(
78
+ () => t.confirmLoading,
79
+ (e) => {
80
+ e ? T = !0 : T && (T = !1, b.value = !1);
81
+ }
82
+ ), ce({
83
+ handleMinimize: H
84
+ });
85
+ const p = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, w = d(!1);
86
+ let _ = !1;
87
+ const S = d(null), { x: X, y: Z } = Ie(S, {
88
+ initialValue: {
89
+ x: 5,
90
+ y: window.innerHeight - 100 - m * 60
91
+ },
92
+ onMove(e) {
93
+ var o;
94
+ (o = S.value) == null || o.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), X.value = Math.max(
95
+ 0,
96
+ Math.min(window.innerWidth - 300, e.x)
97
+ ), Z.value = Math.max(
98
+ 0,
99
+ Math.min(window.innerHeight - 50, e.y)
100
+ );
101
+ },
102
+ onEnd() {
103
+ var e;
104
+ (e = S.value) == null || e.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
105
+ }
106
+ }), me = C(() => ({
107
+ transform: `translate(${X.value}px, ${Z.value}px)`,
108
+ willChange: "transform"
109
+ }));
110
+ function K(e) {
111
+ const o = e.target, { scrollTop: n, scrollHeight: r, clientHeight: f } = o;
112
+ F.value = n <= re, O.value = r - (n + f) <= re;
113
+ }
114
+ function pe() {
115
+ const e = document.querySelector(`.${p}.el-dialog`);
116
+ e && (R.value = e, e.addEventListener("scroll", K)), B(), s("opened");
117
+ }
118
+ function Y() {
119
+ k.value = !k.value, B();
120
+ }
121
+ function g(e) {
122
+ t.confirmLoading && e !== "external" || h.value || (h.value = !0, oe(), s("update:open", !1), s("open-change", !1), (e === "cancel" || e === "header") && s("cancel"), s("close", e));
123
+ }
124
+ function ge() {
125
+ s("closed"), ne(() => {
126
+ x != null && x.isConnected && x.focus();
127
+ });
128
+ }
129
+ function ye(e) {
130
+ t.showFullscreen && e.detail >= 2 && Y();
131
+ }
132
+ function G() {
133
+ return le(
134
+ se,
135
+ {
136
+ type: "primary",
137
+ class: "dialog__footerBtn",
138
+ loading: t.confirmLoading,
139
+ disabled: t.confirmDisabled || t.confirmLoading || b.value,
140
+ onClick: ve
141
+ },
142
+ () => t.confirmText
143
+ );
144
+ }
145
+ function ve() {
146
+ b.value || t.confirmLoading || t.confirmDisabled || (b.value = !0, s("confirm"), t.closeOnConfirm && g("confirm"));
147
+ }
148
+ function J() {
149
+ return le(
150
+ se,
151
+ { class: "dialog__footerBtn", onClick: () => g("cancel") },
152
+ () => t.cancelText
153
+ );
154
+ }
155
+ _e(() => {
156
+ typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = N), B(), document.addEventListener("keydown", Q), document.addEventListener("mousedown", ee);
157
+ });
158
+ function P() {
159
+ var r, f;
160
+ const e = (r = document.querySelector(`.${p}`)) == null ? void 0 : r.closest(".el-overlay");
161
+ if (!e) return !1;
162
+ const n = Array.from(
163
+ document.querySelectorAll(".el-overlay")
164
+ ).filter((a) => window.getComputedStyle(a).display !== "none").map((a, y) => ({
165
+ overlay: a,
166
+ order: y,
167
+ zIndex: Number.parseInt(
168
+ window.getComputedStyle(a).zIndex || "0",
169
+ 10
170
+ )
171
+ }));
172
+ return n.sort(
173
+ (a, y) => a.zIndex - y.zIndex || a.order - y.order
174
+ ), ((f = n.at(-1)) == null ? void 0 : f.overlay) === e;
175
+ }
176
+ function Q(e) {
177
+ e.key !== "Escape" || !t.open || !t.closeOnEscape || t.confirmLoading || !P() || (e.preventDefault(), g("escape"));
178
+ }
179
+ function ee(e) {
180
+ if (!t.open || !t.closeOnOverlay || t.confirmLoading || !P() || !(e.target instanceof Node))
181
+ return;
182
+ const o = document.querySelector(`.${p}.el-dialog`), n = o == null ? void 0 : o.closest(".el-overlay");
183
+ !o || !n || !n.contains(e.target) || o.contains(e.target) || g("overlay");
184
+ }
185
+ function B() {
186
+ var y;
187
+ const e = Array.from(
188
+ document.querySelectorAll(".el-overlay")
189
+ ).filter((E) => window.getComputedStyle(E).display !== "none" && !E.classList.contains("is-message")), o = (y = document.querySelector(`.${p}`)) == null ? void 0 : y.closest(".el-overlay"), n = document.querySelector(
190
+ `.${p}.el-dialog`
191
+ );
192
+ if (!o || !n) return;
193
+ const r = N;
194
+ window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || r;
195
+ const a = Math.max(
196
+ window.qyDialogMaxZIndex,
197
+ ...e.map(
198
+ (E) => parseInt(window.getComputedStyle(E).zIndex || r.toString())
199
+ )
200
+ ) + 2;
201
+ window.qyDialogMaxZIndex = a, ne(() => {
202
+ o.style.zIndex = a.toString(), n.style.zIndex = (a + 1).toString(), j.value = a + 1;
203
+ });
204
+ }
205
+ Ce(() => {
206
+ var e;
207
+ document.removeEventListener("keydown", Q), document.removeEventListener("mousedown", ee), (e = R.value) == null || e.removeEventListener("scroll", K), oe();
208
+ });
209
+ function oe() {
210
+ if (!_) {
211
+ w.value = !1;
212
+ return;
213
+ }
214
+ _ = !1, m = Math.max(0, m - 1), w.value = !1;
215
+ }
216
+ function H() {
217
+ var o;
218
+ const e = (o = document.querySelector(`.${p}`)) == null ? void 0 : o.closest(".el-overlay");
219
+ !e || !t.open || (w.value ? (w.value = !1, e.style.display = "block", _ && (_ = !1, m = Math.max(0, m - 1)), B()) : (w.value = !0, e.style.display = "none", _ = !0, m += 1, Z.value = window.innerHeight - 50 - m * 60));
220
+ }
221
+ return (e, o) => {
222
+ const n = xe, r = he;
223
+ return i(), c("div", null, [
224
+ z(r, {
225
+ ref: "dialogRef",
226
+ class: I(["qy-dialog", [
227
+ t.size === "small" && "[&_.el-dialog__header]:!hidden",
228
+ p
229
+ ]]),
230
+ "model-value": W.value,
231
+ title: t.title,
232
+ width: t.width,
233
+ top: t.top,
234
+ "align-center": "",
235
+ "append-to-body": "",
236
+ "destroy-on-close": t.destroyOnClose,
237
+ "lock-scroll": t.lockScroll,
238
+ style: {
239
+ "--el-dialog-padding-primary": 0
240
+ },
241
+ "show-close": !1,
242
+ "close-on-press-escape": !1,
243
+ "close-on-click-modal": !1,
244
+ fullscreen: k.value,
245
+ "z-index": j.value,
246
+ onClosed: ge,
247
+ onOpened: pe,
248
+ draggable: t.draggable
249
+ }, ze({
250
+ header: q(() => [
251
+ t.size === "default" ? (i(), c("div", {
252
+ key: 0,
253
+ style: A({
254
+ borderBottom: "1px solid",
255
+ borderColor: F.value ? "transparent" : "var(--block-outline-color)",
256
+ transition: "border-color .2s linear"
257
+ }),
258
+ class: "flex justify-between h-[var(--header-height)]",
259
+ onDblclick: ye
260
+ }, [
261
+ l("div", Le, [
262
+ L(D).header ? L(D).header ? (i(), c("div", Oe, [
263
+ M(e.$slots, "header")
264
+ ])) : v("", !0) : (i(), c("span", De, ae(t.title), 1))
265
+ ]),
266
+ l("div", {
267
+ class: "flex",
268
+ onMousedown: o[4] || (o[4] = u(() => {
269
+ }, ["stop"]))
270
+ }, [
271
+ t.size === "default" && t.minimizable ? (i(), c("div", {
272
+ key: 0,
273
+ class: "qy-dialog__btn qy-dialog__btn--default",
274
+ onClick: u(H, ["stop"]),
275
+ onMousedown: o[0] || (o[0] = u(() => {
276
+ }, ["stop"]))
277
+ }, [...o[7] || (o[7] = [
278
+ l("span", {
279
+ class: "icon-[material-symbols--minimize] text-xl mb-3",
280
+ role: "img",
281
+ "aria-hidden": "true"
282
+ }, null, -1)
283
+ ])], 32)) : v("", !0),
284
+ t.showFullscreen ? (i(), c("div", {
285
+ key: 1,
286
+ class: "qy-dialog__btn qy-dialog__btn--default",
287
+ onClick: u(Y, ["stop"]),
288
+ onMousedown: o[1] || (o[1] = u(() => {
289
+ }, ["stop"]))
290
+ }, [
291
+ k.value ? (i(), c("span", Te)) : (i(), c("span", $e))
292
+ ], 32)) : v("", !0),
293
+ l("div", {
294
+ class: "qy-dialog__btn qy-dialog__btn--danger",
295
+ onClick: o[2] || (o[2] = u((f) => g("header"), ["stop"])),
296
+ onMousedown: o[3] || (o[3] = u(() => {
297
+ }, ["stop"]))
298
+ }, [...o[8] || (o[8] = [
299
+ l("span", {
300
+ class: "icon-[ri--close-line] text-xl",
301
+ role: "img",
302
+ "aria-hidden": "true"
303
+ }, null, -1)
304
+ ])], 32)
305
+ ], 32)
306
+ ], 36)) : v("", !0)
307
+ ]),
308
+ default: q(() => [
309
+ l("div", {
310
+ class: I(["qy-dialog__wrapper", L(Se)(k.value && "qy-dialog__wrapper--fullscreen")]),
311
+ style: A({
312
+ maxHeight: U.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
313
+ padding: t.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
314
+ })
315
+ }, [
316
+ t.size === "small" ? (i(), c("div", Ze, [
317
+ z(n, {
318
+ size: 36,
319
+ class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
320
+ onClick: o[5] || (o[5] = (f) => g("header"))
321
+ }, {
322
+ default: q(() => [
323
+ z(L(Be))
324
+ ]),
325
+ _: 1
326
+ })
327
+ ])) : v("", !0),
328
+ M(e.$slots, "default")
329
+ ], 6)
330
+ ]),
331
+ _: 2
332
+ }, [
333
+ t.showFooter && !e.$slots.footer && Array.isArray($.value) ? {
334
+ name: "footer",
335
+ fn: q(() => [
336
+ l("div", He, [
337
+ l("div", null, [
338
+ M(e.$slots, "footer-left")
339
+ ]),
340
+ l("div", {
341
+ class: I([{
342
+ "qy-dialog__footer--outline": O.value
343
+ }, "qy-dialog__footer flex items-center justify-end"])
344
+ }, [
345
+ $.value.includes("cancel") ? (i(), ie(J, { key: 0 })) : v("", !0),
346
+ $.value.includes("confirm") ? (i(), ie(G, { key: 1 })) : v("", !0),
347
+ M(e.$slots, "footer-append")
348
+ ], 2)
349
+ ])
350
+ ]),
351
+ key: "0"
352
+ } : U.value ? {
353
+ name: "footer",
354
+ fn: q(() => [
355
+ l("div", {
356
+ class: I([{
357
+ "qy-dialog__footer--outline": O.value
358
+ }, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
359
+ }, [
360
+ M(e.$slots, "footer", {
361
+ layouts: V.value,
362
+ layoutsNode: Object.values(V.value)
363
+ })
364
+ ], 2)
365
+ ]),
366
+ key: "1"
367
+ } : void 0
368
+ ]), 1032, ["class", "model-value", "title", "width", "top", "destroy-on-close", "lock-scroll", "fullscreen", "z-index", "draggable"]),
369
+ qe(l("div", {
370
+ ref_key: "minimizedRef",
371
+ ref: S,
372
+ class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
373
+ style: A([me.value, { width: "300px", height: "50px", "will-change": "transform" }])
374
+ }, [
375
+ l("div", Ae, [
376
+ l("div", Ne, [
377
+ o[9] || (o[9] = l("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
378
+ l("span", Fe, ae(t.title), 1)
379
+ ]),
380
+ l("div", je, [
381
+ l("div", {
382
+ class: "p-1 hover:bg-gray-200 rounded",
383
+ onClick: u(H, ["stop"])
384
+ }, [...o[10] || (o[10] = [
385
+ l("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
386
+ ])]),
387
+ l("div", {
388
+ class: "p-1 hover:bg-red-100 rounded",
389
+ onClick: o[6] || (o[6] = u((f) => g("header"), ["stop"]))
390
+ }, [...o[11] || (o[11] = [
391
+ l("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
392
+ ])])
393
+ ])
394
+ ])
395
+ ], 4), [
396
+ [Me, w.value]
397
+ ])
398
+ ]);
399
+ };
400
+ }
401
+ });
402
+ export {
403
+ Je as _
404
+ };
@@ -0,0 +1,215 @@
1
+ import { defineComponent as ce, useAttrs as ue, ref as l, computed as d, watch as k, onMounted as fe, onBeforeUnmount as de, openBlock as x, createElementBlock as j, mergeProps as me, createVNode as A, unref as N, withCtx as q, createElementVNode as y, normalizeClass as pe, renderSlot as R, createBlock as ve, resolveDynamicComponent as ge, createCommentVNode as ye, createTextVNode as F, toDisplayString as I } from "vue";
2
+ import { CircleCloseFilled as he, InfoFilled as be, WarningFilled as we } from "@element-plus/icons-vue";
3
+ import { ElPopover as Le, ElButton as G } from "element-plus";
4
+ const m = [], Ce = { class: "qy-popconfirm__message" }, Ee = {
5
+ key: 0,
6
+ class: "qy-popconfirm__icon",
7
+ "aria-hidden": "true"
8
+ }, ke = {
9
+ "data-testid": "qy-popconfirm-title",
10
+ class: "qy-popconfirm__title"
11
+ }, qe = { class: "qy-popconfirm__actions" }, Se = /* @__PURE__ */ ce({
12
+ name: "QyPopconfirm",
13
+ inheritAttrs: !1,
14
+ __name: "index",
15
+ props: {
16
+ title: { type: String, required: !0 },
17
+ open: { type: Boolean, default: void 0 },
18
+ disabled: { type: Boolean, default: !1 },
19
+ placement: { type: String, default: "bottom" },
20
+ width: { type: [Number, String], default: 220 },
21
+ confirmText: { type: String, default: "确认" },
22
+ cancelText: { type: String, default: "取消" },
23
+ variant: { type: String, default: "warning" },
24
+ confirmType: { type: String, default: "primary" },
25
+ showIcon: { type: Boolean, default: !0 },
26
+ confirmLoading: { type: Boolean, default: !1 },
27
+ closeOnConfirm: { type: Boolean, default: !0 }
28
+ },
29
+ emits: ["update:open", "open-change", "confirm", "cancel", "close"],
30
+ setup(i, { emit: J }) {
31
+ const t = i, s = J, X = ue(), h = l(null), T = l(null), P = d(() => t.open !== void 0), B = t.open === !0 && !t.disabled, D = l(B), c = l(B), a = l(B), o = l(null), p = l(!1), b = l(null), w = {};
32
+ let u = !1, v, L, C = !1, E = null;
33
+ const W = d(() => t.disabled ? !1 : P.value ? t.open === !0 : D.value), Y = d(() => {
34
+ const e = {};
35
+ for (const [n, g] of Object.entries(X))
36
+ (n === "class" || n === "style" || n === "id" || n === "title" || n === "tabindex" || n === "role" || n.startsWith("data-") || n.startsWith("aria-") || /^onKey(?:down|up|press)/i.test(n)) && (e[n] = g);
37
+ return e;
38
+ }), Z = d(
39
+ () => typeof t.width == "number" ? `${t.width}px` : t.width
40
+ ), _ = d(() => ({
41
+ "--qy-popconfirm-width": Z.value,
42
+ "--qy-popconfirm-mobile-gutter": "24px"
43
+ })), ee = d(() => t.variant === "danger" ? he : t.variant === "info" ? be : we);
44
+ function S() {
45
+ return m[m.length - 1] === w;
46
+ }
47
+ function $() {
48
+ m.includes(w) || m.push(w);
49
+ }
50
+ function z() {
51
+ const e = m.indexOf(w);
52
+ e >= 0 && m.splice(e, 1);
53
+ }
54
+ function M(e) {
55
+ var Q, U;
56
+ const n = document.activeElement;
57
+ if (n instanceof HTMLElement && ((Q = h.value) != null && Q.contains(n))) {
58
+ b.value = n;
59
+ return;
60
+ }
61
+ const g = e == null ? void 0 : e.target;
62
+ g instanceof HTMLElement && ((U = T.value) != null && U.contains(g)) && (b.value = g);
63
+ }
64
+ function ne() {
65
+ const e = b.value;
66
+ b.value = null, e != null && e.isConnected && e.focus();
67
+ }
68
+ function f() {
69
+ if (u) return;
70
+ const e = W.value;
71
+ c.value !== e && (u = !0, v = e, L = e ? void 0 : o.value ?? (t.disabled ? "disabled" : "external"), c.value = e);
72
+ }
73
+ function r(e, n) {
74
+ e && t.disabled || (!e && n && o.value === null && (o.value = n), P.value ? t.open !== e && s("update:open", e) : D.value !== e && (D.value = e, s("update:open", e)), f());
75
+ }
76
+ function te() {
77
+ var e;
78
+ return o.value ? o.value : E instanceof Node && ((e = h.value) != null && e.contains(E)) ? "trigger" : "outside";
79
+ }
80
+ function ie(e) {
81
+ if (e) {
82
+ M(), r(!0);
83
+ return;
84
+ }
85
+ if (t.confirmLoading) return;
86
+ const n = te();
87
+ !S() && n !== "external" && n !== "disabled" || r(!1, n);
88
+ }
89
+ function oe(e) {
90
+ var n;
91
+ !(e.target instanceof Node) || !((n = T.value) != null && n.contains(e.target)) || t.confirmLoading || (a.value || c.value ? (o.value = "trigger", r(!1, "trigger")) : (M(e), r(!0)));
92
+ }
93
+ function ae() {
94
+ t.disabled || t.confirmLoading || p.value || (p.value = !0, s("confirm"), t.closeOnConfirm && r(!1, "confirm"));
95
+ }
96
+ function re() {
97
+ t.disabled || t.confirmLoading || (s("cancel"), r(!1, "cancel"));
98
+ }
99
+ function V(e) {
100
+ e.key !== "Escape" && e.code !== "Escape" || t.confirmLoading || !a.value || !S() || (e.preventDefault(), r(!1, "escape"));
101
+ }
102
+ function O(e) {
103
+ E = e.target;
104
+ }
105
+ function H(e) {
106
+ E = e.target;
107
+ }
108
+ function K(e) {
109
+ var n;
110
+ t.confirmLoading || !a.value || !S() || e.target instanceof Node && ((n = h.value) != null && n.contains(e.target) || e.target instanceof Element && e.target.closest(".qy-popconfirm-popper") || r(!1, "outside"));
111
+ }
112
+ function le() {
113
+ !u || v !== !0 || (u = !1, v = void 0, a.value = !0, $(), o.value = null, L = void 0, s("open-change", !0), f());
114
+ }
115
+ function se() {
116
+ !u || v !== !1 || (u = !1, v = void 0, a.value = !1, z(), s("open-change", !1), s("close", L ?? o.value ?? "external"), o.value = null, L = void 0, p.value = !1, C = !1, ne(), f());
117
+ }
118
+ return k(W, () => f()), k(
119
+ () => t.open,
120
+ (e, n) => {
121
+ e !== n && (e === !1 && (a.value || c.value) && o.value === null && (o.value = "external"), f());
122
+ }
123
+ ), k(
124
+ () => t.disabled,
125
+ (e) => {
126
+ e && (a.value || c.value) && (o.value = "disabled"), f();
127
+ }
128
+ ), k(
129
+ () => t.confirmLoading,
130
+ (e) => {
131
+ e ? C = !0 : C && (C = !1, a.value && (p.value = !1));
132
+ }
133
+ ), fe(() => {
134
+ a.value && $(), window.addEventListener("keydown", V), document.addEventListener("pointerdown", O, !0), document.addEventListener("mousedown", H, !0), document.addEventListener("click", K);
135
+ }), de(() => {
136
+ z(), window.removeEventListener("keydown", V), document.removeEventListener("pointerdown", O, !0), document.removeEventListener("mousedown", H, !0), document.removeEventListener("click", K);
137
+ }), (e, n) => (x(), j("span", me({
138
+ ref_key: "rootRef",
139
+ ref: h,
140
+ class: "qy-popconfirm"
141
+ }, Y.value, { onClickCapture: oe }), [
142
+ A(N(Le), {
143
+ visible: c.value,
144
+ trigger: "click",
145
+ placement: i.placement,
146
+ width: i.width,
147
+ disabled: i.disabled,
148
+ "popper-style": _.value,
149
+ "popper-class": "qy-popconfirm-popper",
150
+ "onUpdate:visible": ie,
151
+ onAfterEnter: le,
152
+ onAfterLeave: se
153
+ }, {
154
+ reference: q(() => [
155
+ y("span", {
156
+ ref_key: "referenceRef",
157
+ ref: T,
158
+ "data-qy-popconfirm-reference": ""
159
+ }, [
160
+ R(e.$slots, "reference")
161
+ ], 512)
162
+ ]),
163
+ default: q(() => [
164
+ y("div", {
165
+ class: pe(["qy-popconfirm__content", `is-${i.variant}`]),
166
+ "data-qy-popconfirm-content": ""
167
+ }, [
168
+ y("div", Ce, [
169
+ i.showIcon ? (x(), j("span", Ee, [
170
+ R(e.$slots, "icon", {}, () => [
171
+ (x(), ve(ge(ee.value)))
172
+ ])
173
+ ])) : ye("", !0),
174
+ y("span", ke, [
175
+ R(e.$slots, "title", {}, () => [
176
+ F(I(i.title), 1)
177
+ ])
178
+ ])
179
+ ]),
180
+ y("div", qe, [
181
+ A(N(G), {
182
+ "data-testid": "qy-popconfirm-cancel",
183
+ size: "small",
184
+ disabled: i.disabled || i.confirmLoading,
185
+ onClick: re
186
+ }, {
187
+ default: q(() => [
188
+ F(I(i.cancelText), 1)
189
+ ]),
190
+ _: 1
191
+ }, 8, ["disabled"]),
192
+ A(N(G), {
193
+ "data-testid": "qy-popconfirm-confirm",
194
+ size: "small",
195
+ type: i.confirmType,
196
+ loading: i.confirmLoading,
197
+ disabled: i.disabled || i.confirmLoading || p.value,
198
+ onClick: ae
199
+ }, {
200
+ default: q(() => [
201
+ F(I(i.confirmText), 1)
202
+ ]),
203
+ _: 1
204
+ }, 8, ["type", "loading", "disabled"])
205
+ ])
206
+ ], 2)
207
+ ]),
208
+ _: 3
209
+ }, 8, ["visible", "placement", "width", "disabled", "popper-style"])
210
+ ], 16));
211
+ }
212
+ });
213
+ export {
214
+ Se as _
215
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),V=require("element-plus"),x=t.defineComponent({name:"QyCollapse",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},accordion:{type:Boolean,default:!1},expandIconPosition:{default:"right"},beforeCollapse:{}},emits:["update:modelValue","change"],setup(l,{expose:i,emit:d}){const a=l,s=d,u=t.useAttrs(),c=t.ref(),n=t.ref(a.modelValue),m=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function r(e){const o=Array.isArray(e)?e:[e];return a.accordion?o.slice(0,1):o}t.watch(()=>a.modelValue,e=>{n.value=e},{deep:!0});const f=t.computed(()=>r(a.modelValue));function p(e){n.value=e,s("update:modelValue",e),t.nextTick(()=>{n.value=a.modelValue})}function h(e){s("change",e)}function v(e){var o;(o=c.value)==null||o.setActiveNames(r(e))}return i({activeNames:f,setActiveNames:v}),(e,o)=>(t.openBlock(),t.createBlock(t.unref(V.ElCollapse),t.mergeProps({ref_key:"collapseRef",ref:c},m.value,{class:"qy-collapse","model-value":n.value,accordion:l.accordion,"expand-icon-position":l.expandIconPosition,"before-collapse":l.beforeCollapse,"onUpdate:modelValue":p,onChange:h}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["model-value","accordion","expand-icon-position","before-collapse"]))}});exports._sfc_main=x;
@@ -0,0 +1 @@
1
+ "use strict";const i=require("vue"),f=require("element-plus"),n=["success","warning","info","error"],a=["401","403","404","500"],m=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),o={status:{type:String,default:"info",validator:t=>[...n,...a].includes(t)},title:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:""},imageAlt:{type:String,default:""}},v=i.defineComponent({name:"QyResult",inheritAttrs:!1,props:o,setup(t,{attrs:r,slots:e}){const u=i.computed(()=>Object.fromEntries(Object.entries(r).filter(([s])=>m(s)))),l=i.computed(()=>["qy-result",`qy-result--${t.status}`,u.value.class]),c=i.computed(()=>["qy-result__renderer",`qy-result--${t.status}`]),d=()=>{if(e.visual)return e.visual();if(t.image)return i.h("img",{class:"qy-result__image",src:t.image,alt:t.imageAlt});if(a.includes(t.status))return i.h("div",{class:"qy-result__http-visual","aria-hidden":"true"},t.status)};return()=>{const s={};return(e.visual||t.image||a.includes(t.status))&&(s.icon=d),e.title&&(s.title=e.title),e.description&&(s["sub-title"]=e.description),e.actions&&(s.extra=e.actions),i.h("div",{...u.value,class:l.value,title:t.title},[i.h(f.ElResult,{class:c.value,icon:n.includes(t.status)?t.status:void 0,title:e.title?"":t.title,subTitle:e.description?"":t.description},s)])}}});exports._sfc_main=v;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),F=require("element-plus"),W=["id","role","aria-disabled","tabindex","disabled","onKeydown"],j={class:"qy-color-picker__value","aria-hidden":"true"};let G=0;const H=()=>`qy-color-picker-${++G}`,J=a.defineComponent({name:"QyColorPicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:null},format:{default:void 0},showAlpha:{type:Boolean,default:!1},predefine:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","active-change","change","visible-change"],setup(R,{emit:D}){const n=R,i=D,c=a.useAttrs(),g=a.ref(null),k=a.ref(null),p=a.ref(null),r=a.ref(u(n.modelValue)),h=a.ref(r.value),t=a.ref(!1),o=a.ref(null),s=a.ref(!1),f=a.ref(!1),w=H(),L=a.computed(()=>typeof c.id=="string"&&c.id||w),_=`qy-color-picker__popper--${w}`,z=a.computed(()=>n.format||(n.showAlpha?"rgb":"hex")),m=a.computed(()=>u(n.modelValue)),B=a.computed(()=>String(c.role||"button")),I=a.computed(()=>c["aria-disabled"]??(n.disabled?"true":"false")),K=a.computed(()=>n.disabled?void 0:c.tabindex??0),N=a.computed(()=>{const e={};for(const[l,d]of Object.entries(c)){const b=l.toLowerCase();(l==="class"||l==="style"||l==="id"||l==="title"||l==="tabindex"||l==="role"||b.startsWith("data-")||b.startsWith("aria-")||["onkeydown","onkeyup","onkeypress"].includes(b))&&(e[l]=d)}return e});a.watch(()=>n.modelValue,e=>{r.value=u(e),t.value&&(h.value=r.value)});function u(e){return e==null||e===""?null:String(e)}function S(){if(!n.disabled){if(t.value){v();return}V()}}function C(){n.disabled||t.value||V()}function T(){t.value&&v()}function V(){t.value||n.disabled||(h.value=u(n.modelValue),r.value=h.value,o.value=null,s.value=!1,f.value=!1,t.value=!0,$(),i("visible-change",!0),a.nextTick(()=>{var e,l;return(l=(e=p.value)==null?void 0:e.show)==null?void 0:l.call(e)}))}function M(e){!t.value||o.value||(r.value=u(e),i("active-change",r.value))}function O(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)))}function Q(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)),f.value||(f.value=!0,i("change",r.value)),y())}function U(){!t.value||o.value==="cancel"||(s.value||(s.value=!0,o.value="commit",r.value=null,i("update:modelValue",null)),f.value||(f.value=!0,i("change",null)),y())}function v(){var e,l;!t.value||o.value||(o.value="cancel",r.value=u(n.modelValue),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),y())}function y(){var e,l;t.value&&(t.value=!1,P(),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),i("visible-change",!1),a.nextTick(()=>{var d;return(d=k.value)==null?void 0:d.focus()}))}function E(e){var l,d;return e instanceof Node?(l=g.value)!=null&&l.contains(e)?!0:!!((d=e.closest)!=null&&d.call(e,`.${_}`)):!1}function x(e){t.value&&!E(e.target)&&v()}function q(e){t.value&&!E(e.target)&&v()}function A(e){t.value&&e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),v())}function $(){document.addEventListener("pointerdown",x,!0),document.addEventListener("focusin",q,!0),document.addEventListener("keydown",A,!0)}function P(){document.removeEventListener("pointerdown",x,!0),document.removeEventListener("focusin",q,!0),document.removeEventListener("keydown",A,!0)}return a.onBeforeUnmount(()=>{P()}),(e,l)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:g,class:"qy-color-picker","data-qy-color-picker":""},[a.createElementVNode("button",a.mergeProps({ref_key:"triggerRef",ref:k,type:"button",class:"qy-color-picker__trigger"},N.value,{id:L.value,role:B.value,"aria-disabled":I.value,tabindex:K.value,disabled:n.disabled,class:{"is-disabled":n.disabled,"is-open":t.value},onClick:S,onKeydown:[a.withKeys(a.withModifiers(C,["prevent"]),["enter"]),a.withKeys(a.withModifiers(C,["prevent"]),["space"]),a.withKeys(a.withModifiers(T,["prevent"]),["esc"])]}),[a.createElementVNode("span",{class:a.normalizeClass(["qy-color-picker__swatch",{"is-empty":!m.value}]),style:a.normalizeStyle(m.value?{backgroundColor:m.value}:void 0),"aria-hidden":"true"},null,6),a.createElementVNode("span",j,a.toDisplayString(m.value||"选择颜色"),1),l[0]||(l[0]=a.createElementVNode("span",{class:"qy-color-picker__arrow","aria-hidden":"true"},"⌄",-1))],16,W),a.createVNode(a.unref(F.ElColorPicker),{ref_key:"rendererRef",ref:p,class:"qy-color-picker__renderer","model-value":r.value,"show-alpha":n.showAlpha,"color-format":z.value,predefine:n.predefine,size:n.size,disabled:!1,clearable:n.clearable,teleported:!0,tabindex:-1,"popper-class":_,"aria-hidden":"true",onActiveChange:M,"onUpdate:modelValue":O,onChange:Q,onClear:U},null,8,["model-value","show-alpha","color-format","predefine","size","clearable"])],512))}});exports._sfc_main=J;