@qynpm/ui 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/README.md +9 -2
  2. package/dist/index.cjs +20 -13
  3. package/dist/index.mjs +268 -102
  4. package/dist/qy-action-bar/index.cjs +3 -1
  5. package/dist/qy-action-bar/index.mjs +7 -2
  6. package/dist/qy-autocomplete/index.cjs +1 -1
  7. package/dist/qy-autocomplete/index.mjs +1 -1
  8. package/dist/qy-button/index.cjs +1 -1
  9. package/dist/qy-button/index.mjs +1 -1
  10. package/dist/qy-cascader/index.cjs +1 -1
  11. package/dist/qy-cascader/index.mjs +1 -1
  12. package/dist/qy-checkbox/index.cjs +1 -1
  13. package/dist/qy-checkbox/index.mjs +1 -1
  14. package/dist/qy-checkbox-group/index.cjs +1 -1
  15. package/dist/qy-checkbox-group/index.mjs +1 -1
  16. package/dist/qy-collapse/index.cjs +1 -1
  17. package/dist/qy-collapse/index.mjs +1 -1
  18. package/dist/qy-color-picker/index.cjs +1 -1
  19. package/dist/qy-color-picker/index.mjs +1 -1
  20. package/dist/qy-date-picker/index.cjs +1 -1
  21. package/dist/qy-date-picker/index.mjs +1 -1
  22. package/dist/qy-dialog/index.cjs +3 -2
  23. package/dist/qy-dialog/index.mjs +7 -5
  24. package/dist/qy-drawer/index.cjs +1 -1
  25. package/dist/qy-drawer/index.mjs +1 -1
  26. package/dist/qy-dropdown/index.cjs +2 -2
  27. package/dist/qy-dropdown/index.mjs +2 -2
  28. package/dist/qy-file-picker/index.cjs +1 -1
  29. package/dist/qy-file-picker/index.mjs +1 -1
  30. package/dist/qy-form-section/index.cjs +3 -1
  31. package/dist/qy-form-section/index.mjs +7 -2
  32. package/dist/qy-fullscreen/index.cjs +1 -1
  33. package/dist/qy-fullscreen/index.mjs +1 -1
  34. package/dist/qy-icon/index.cjs +1 -1
  35. package/dist/qy-icon/index.mjs +2 -2
  36. package/dist/qy-icon-picker/index.cjs +1 -1
  37. package/dist/qy-icon-picker/index.mjs +1 -1
  38. package/dist/qy-iframe/index.cjs +1 -1
  39. package/dist/qy-iframe/index.mjs +1 -1
  40. package/dist/qy-image/index.cjs +1 -1
  41. package/dist/qy-image/index.mjs +1 -1
  42. package/dist/qy-image-preview/index.cjs +1 -1
  43. package/dist/qy-image-preview/index.mjs +2 -2
  44. package/dist/qy-image-upload/index.cjs +3 -1
  45. package/dist/qy-image-upload/index.mjs +7 -2
  46. package/dist/qy-input/index.cjs +1 -1
  47. package/dist/qy-input/index.mjs +1 -1
  48. package/dist/qy-input-number/index.cjs +1 -1
  49. package/dist/qy-input-number/index.mjs +1 -1
  50. package/dist/qy-input-tag/index.cjs +1 -1
  51. package/dist/qy-input-tag/index.mjs +151 -5
  52. package/dist/qy-legacy-selection-dialog/index.cjs +8 -1
  53. package/dist/qy-legacy-selection-dialog/index.mjs +12 -2
  54. package/dist/qy-menu-actions/index.cjs +1 -1
  55. package/dist/qy-menu-actions/index.mjs +1 -1
  56. package/dist/qy-money-input/index.cjs +1 -1
  57. package/dist/qy-money-input/index.mjs +1 -1
  58. package/dist/qy-pagination/index.cjs +1 -1
  59. package/dist/qy-pagination/index.mjs +1 -1
  60. package/dist/qy-popconfirm/index.cjs +1 -1
  61. package/dist/qy-popconfirm/index.mjs +1 -1
  62. package/dist/qy-popover/index.cjs +1 -1
  63. package/dist/qy-popover/index.mjs +1 -1
  64. package/dist/qy-radio/index.cjs +1 -1
  65. package/dist/qy-radio/index.mjs +1 -1
  66. package/dist/qy-radio-group/index.cjs +1 -1
  67. package/dist/qy-radio-group/index.mjs +1 -1
  68. package/dist/qy-record-quote-search/index.cjs +4 -1
  69. package/dist/qy-record-quote-search/index.mjs +8 -2
  70. package/dist/qy-remark-image/index.cjs +3 -1
  71. package/dist/qy-remark-image/index.mjs +11 -2
  72. package/dist/qy-remote-select/index.cjs +3 -1
  73. package/dist/qy-remote-select/index.mjs +7 -2
  74. package/dist/qy-result/index.cjs +1 -1
  75. package/dist/qy-result/index.mjs +1 -1
  76. package/dist/qy-scrollbar/index.cjs +1 -1
  77. package/dist/qy-scrollbar/index.mjs +1 -1
  78. package/dist/qy-search-input/index.cjs +3 -1
  79. package/dist/qy-search-input/index.mjs +7 -2
  80. package/dist/qy-select/index.cjs +1 -1
  81. package/dist/qy-select/index.mjs +1 -1
  82. package/dist/qy-selection-dialog/index.cjs +7 -1
  83. package/dist/qy-selection-dialog/index.mjs +11 -2
  84. package/dist/qy-switch/index.cjs +1 -1
  85. package/dist/qy-switch/index.mjs +1 -1
  86. package/dist/qy-table-column-settings/index.cjs +1 -1
  87. package/dist/qy-table-column-settings/index.mjs +1 -1
  88. package/dist/qy-tabs/index.cjs +1 -1
  89. package/dist/qy-tabs/index.mjs +1 -1
  90. package/dist/qy-tag/index.cjs +1 -1
  91. package/dist/qy-tag/index.mjs +1 -1
  92. package/dist/qy-tooltip/index.cjs +1 -1
  93. package/dist/qy-tooltip/index.mjs +1 -1
  94. package/dist/qy-tree/index.cjs +1 -1
  95. package/dist/qy-tree/index.mjs +1 -1
  96. package/dist/qy-tree-select/index.cjs +1 -1
  97. package/dist/qy-tree-select/index.mjs +1 -1
  98. package/dist/qy-upload/index.cjs +1 -1
  99. package/dist/qy-upload/index.mjs +1 -1
  100. package/dist/shared/index-AvNvmJe5.cjs +1 -0
  101. package/dist/shared/{index-DvFMgAcu.mjs → index-B0CTzdRW.mjs} +1 -1
  102. package/dist/shared/index-B1J7PQMl.mjs +79 -0
  103. package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
  104. package/dist/shared/{index-Co84fsS5.mjs → index-B7j9BtSm.mjs} +88 -80
  105. package/dist/shared/{index-CiE6qJCJ.mjs → index-BAOV5iYx.mjs} +151 -143
  106. package/dist/shared/index-BN4A-O6P.mjs +727 -0
  107. package/dist/shared/index-BR7tIt2k.mjs +211 -0
  108. package/dist/shared/index-BaRw7pWi.mjs +156 -0
  109. package/dist/shared/index-BgAP_K2E.cjs +1 -0
  110. package/dist/shared/index-Blgz8PJc.cjs +1 -0
  111. package/dist/shared/index-BqzKToOL.cjs +1 -0
  112. package/dist/shared/{index-BNssRW4d.mjs → index-BuVrLl5B.mjs} +13 -13
  113. package/dist/shared/index-Bv1DrJ32.mjs +71 -0
  114. package/dist/shared/index-Bz9WjKdL.cjs +1 -0
  115. package/dist/shared/{index-BjqJCq-6.mjs → index-Bzr2RHi5.mjs} +3 -3
  116. package/dist/shared/index-C50jpQ11.mjs +295 -0
  117. package/dist/shared/index-C6G9eVku.cjs +1 -0
  118. package/dist/shared/index-CB0v25oB.cjs +1 -0
  119. package/dist/shared/{index-gMrQlV5n.cjs → index-CIXJwYI-.cjs} +1 -1
  120. package/dist/shared/index-CKkanVur.cjs +1 -0
  121. package/dist/shared/index-CLvL8LAM.cjs +1 -0
  122. package/dist/shared/index-CN2mgT5V.cjs +1 -0
  123. package/dist/shared/{index-DNnWRAFl.mjs → index-CW4s627w.mjs} +1 -1
  124. package/dist/shared/{index-8Iwma3ls.mjs → index-CXOCZlps.mjs} +2 -2
  125. package/dist/shared/{index-CUlhX6fW.cjs → index-CXnL-0Kp.cjs} +1 -1
  126. package/dist/shared/index-CZs0V4ze.cjs +1 -0
  127. package/dist/shared/index-Cqr-L0yd.mjs +285 -0
  128. package/dist/shared/index-Cu6yAwdj.mjs +124 -0
  129. package/dist/shared/index-CxTyKMEH.cjs +1 -0
  130. package/dist/shared/index-D5HS8M1P.cjs +1 -0
  131. package/dist/shared/index-D6QwZtYV.mjs +56 -0
  132. package/dist/shared/index-DCsun70c.cjs +1 -0
  133. package/dist/shared/{index-BweLwi2_.cjs → index-DEzFHeJL.cjs} +1 -1
  134. package/dist/shared/{index-2D5AFexl.mjs → index-DNMRIYkm.mjs} +1 -1
  135. package/dist/shared/index-DY2IXvwl.cjs +1 -0
  136. package/dist/shared/{index-C4F8hXzQ.mjs → index-DdGlwebp.mjs} +90 -81
  137. package/dist/shared/index-DiN5vXXD.cjs +1 -0
  138. package/dist/shared/{index-Mj7JZt7y.cjs → index-Duq5XZ5w.cjs} +1 -1
  139. package/dist/shared/index-DwHM9eYc.cjs +1 -0
  140. package/dist/shared/index-FZ5gl2au.cjs +1 -0
  141. package/dist/shared/index-PM5yNugz.mjs +573 -0
  142. package/dist/shared/index-VtM0GmfU.mjs +361 -0
  143. package/dist/shared/index-ykI9hKtc.mjs +88 -0
  144. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +40 -0
  145. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
  146. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
  147. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
  148. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
  149. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +1 -0
  150. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs} +20 -18
  151. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
  152. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +1 -0
  153. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +1 -0
  154. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +238 -0
  155. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +63 -0
  156. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +1 -0
  157. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +413 -0
  158. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +142 -0
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +1 -0
  160. package/dist/shared/{index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs → index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs} +1 -1
  161. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +1 -0
  162. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +1 -0
  163. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs → index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs} +3 -3
  164. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +219 -0
  165. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +1 -0
  166. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +176 -0
  167. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +1 -0
  168. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs} +59 -57
  169. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs} +24 -18
  170. package/dist/shared/js.cookie-BA-dL3zT.mjs +74 -0
  171. package/dist/shared/js.cookie-BmJmHEx1.cjs +1 -0
  172. package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
  173. package/dist/shared/overlay-stack-eI-yzYU6.mjs +34 -0
  174. package/dist/shared/{utils-DoyI5oM8.mjs → utils-DpZkMLkb.mjs} +63 -49
  175. package/dist/shared/utils-DpkN3Zat.cjs +1 -0
  176. package/index.d.ts +44 -15
  177. package/package.json +1 -1
  178. package/qy-action-bar/index.d.ts +16 -4
  179. package/qy-autocomplete/index.d.ts +43 -2
  180. package/qy-checkbox/index.d.ts +1 -0
  181. package/qy-checkbox-group/index.d.ts +1 -0
  182. package/qy-date-picker/index.d.ts +1 -0
  183. package/qy-dialog/index.d.ts +4 -0
  184. package/qy-form-section/index.d.ts +22 -4
  185. package/qy-image/index.d.ts +1 -0
  186. package/qy-image-preview/index.d.ts +8 -4
  187. package/qy-menu-actions/index.d.ts +21 -2
  188. package/qy-money-input/index.d.ts +1 -0
  189. package/qy-pagination/index.d.ts +4 -0
  190. package/qy-popover/index.d.ts +4 -0
  191. package/qy-radio-group/index.d.ts +1 -0
  192. package/qy-record-quote-search/index.d.ts +53 -4
  193. package/qy-remark-image/index.d.ts +48 -4
  194. package/qy-remote-select/index.d.ts +53 -2
  195. package/qy-search-input/index.d.ts +66 -4
  196. package/qy-select/index.d.ts +4 -0
  197. package/qy-selection-dialog/index.d.ts +63 -2
  198. package/qy-switch/index.d.ts +1 -0
  199. package/qy-table-column-settings/index.d.ts +19 -2
  200. package/qy-tooltip/index.d.ts +5 -0
  201. package/qy-tree-select/index.d.ts +1 -0
  202. package/dist/shared/index-5dxbpQb_.cjs +0 -1
  203. package/dist/shared/index-BEcS8y8g.mjs +0 -68
  204. package/dist/shared/index-BSTMCPDj.mjs +0 -72
  205. package/dist/shared/index-Bh9hxVFh.mjs +0 -766
  206. package/dist/shared/index-CGq7Q_hV.mjs +0 -119
  207. package/dist/shared/index-CVYNG8Fc.cjs +0 -1
  208. package/dist/shared/index-CmgTSaFS.cjs +0 -1
  209. package/dist/shared/index-CnVhquq5.cjs +0 -1
  210. package/dist/shared/index-D27mwR57.cjs +0 -1
  211. package/dist/shared/index-DKw-seoh.cjs +0 -1
  212. package/dist/shared/index-DRugp8x0.cjs +0 -1
  213. package/dist/shared/index-DTbGlDqr.cjs +0 -1
  214. package/dist/shared/index-MyDDX-zj.cjs +0 -1
  215. package/dist/shared/index-afOuq3YX.cjs +0 -1
  216. package/dist/shared/index-rSrDnOpu.cjs +0 -1
  217. package/dist/shared/index-rjciSHaR.mjs +0 -2362
  218. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  219. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  220. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  221. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
  222. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  223. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  224. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  225. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
  226. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  227. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
  228. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  229. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
  230. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
  231. package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
  232. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  233. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  234. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
  235. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  236. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  237. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  238. package/dist/shared/utils-BjEXwY3L.cjs +0 -1
  239. /package/dist/shared/{index-DiEag4sK.cjs → index-5UAiwqdT.cjs} +0 -0
  240. /package/dist/shared/{index-B3GsIwhf.mjs → index-BKdw4jD_.mjs} +0 -0
  241. /package/dist/shared/{index-B25yA5j-.mjs → index-BVaIvVMi.mjs} +0 -0
  242. /package/dist/shared/{index-HNFq7v-A.cjs → index-Bdlzmh8A.cjs} +0 -0
  243. /package/dist/shared/{index-Bq9quq2D.cjs → index-BsNtvE6i.cjs} +0 -0
  244. /package/dist/shared/{index-B3YHS3Aa.mjs → index-CGH2ROZV.mjs} +0 -0
  245. /package/dist/shared/{index-ByQyMTPg.mjs → index-DvXzDAmi.mjs} +0 -0
  246. /package/dist/shared/{index-EIFVul2W.cjs → index-O6K0DO_k.cjs} +0 -0
  247. /package/dist/shared/{index-B3XwO-Lc.mjs → index-QN7-6GpS.mjs} +0 -0
  248. /package/dist/shared/{index-CVWru9T3.cjs → index-_Bagw0Pj.cjs} +0 -0
  249. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs → index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs} +0 -0
  250. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs → index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs} +0 -0
  251. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs → index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs} +0 -0
  252. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs → index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs} +0 -0
  253. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs} +0 -0
  254. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs → index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs} +0 -0
  255. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs} +0 -0
  256. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs → index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs} +0 -0
  257. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs → index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs} +0 -0
  258. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs → index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs} +0 -0
  259. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs → index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs} +0 -0
  260. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs → index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs} +0 -0
  261. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs → index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs} +0 -0
  262. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs → index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs} +0 -0
  263. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-D9DraThL.cjs → index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs} +0 -0
  264. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs → index.vue_vue_type_style_index_0_lang-yci929so.cjs} +0 -0
@@ -0,0 +1,219 @@
1
+ import { defineComponent as fe, useAttrs as pe, ref as l, computed as f, getCurrentInstance as me, watch as q, onMounted as ve, onBeforeUnmount as ye, openBlock as A, createElementBlock as X, mergeProps as ge, createVNode as I, unref as N, withCtx as T, createElementVNode as g, normalizeClass as we, renderSlot as R, createBlock as he, resolveDynamicComponent as be, createCommentVNode as Ee, createTextVNode as $, toDisplayString as F } from "vue";
2
+ import { CircleCloseFilled as Le, InfoFilled as ke, WarningFilled as Ce } from "@element-plus/icons-vue";
3
+ import { ElPopover as qe, ElButton as Y } from "element-plus";
4
+ import { a as Te, c as Se } from "./overlay-stack-eI-yzYU6.mjs";
5
+ const p = [], Be = { class: "qy-popconfirm__message" }, De = {
6
+ key: 0,
7
+ class: "qy-popconfirm__icon",
8
+ "aria-hidden": "true"
9
+ }, Pe = {
10
+ "data-testid": "qy-popconfirm-title",
11
+ class: "qy-popconfirm__title"
12
+ }, xe = { class: "qy-popconfirm__actions" }, $e = /* @__PURE__ */ fe({
13
+ name: "QyPopconfirm",
14
+ inheritAttrs: !1,
15
+ __name: "index",
16
+ props: {
17
+ title: { type: String, required: !0 },
18
+ open: { type: Boolean, default: void 0 },
19
+ disabled: { type: Boolean, default: !1 },
20
+ placement: { type: String, default: "bottom" },
21
+ width: { type: [Number, String], default: 220 },
22
+ confirmText: { type: String, default: "确认" },
23
+ cancelText: { type: String, default: "取消" },
24
+ variant: { type: String, default: "warning" },
25
+ confirmType: { type: String, default: "primary" },
26
+ showIcon: { type: Boolean, default: !0 },
27
+ confirmLoading: { type: Boolean, default: !1 },
28
+ closeOnConfirm: { type: Boolean, default: !0 }
29
+ },
30
+ emits: ["update:open", "open-change", "confirm", "cancel", "close"],
31
+ setup(o, { emit: Z }) {
32
+ const t = o, s = Z, _ = pe(), w = l(null), S = l(null), W = f(() => t.open !== void 0), B = t.open === !0 && !t.disabled, D = l(B), c = l(B), a = l(B), i = l(null), m = l(!1), h = l(null), b = {}, O = `qy-popconfirm-${me().uid}`, P = /* @__PURE__ */ new WeakSet();
33
+ let d = !1, v, E, L = !1, k = null;
34
+ const V = f(() => t.disabled ? !1 : W.value ? t.open === !0 : D.value), ee = f(() => {
35
+ const e = {};
36
+ for (const [n, y] of Object.entries(_))
37
+ (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] = y);
38
+ return e;
39
+ }), ne = f(
40
+ () => typeof t.width == "number" ? `${t.width}px` : t.width
41
+ ), te = f(() => ({
42
+ "--qy-popconfirm-width": ne.value,
43
+ "--qy-popconfirm-mobile-gutter": "24px"
44
+ })), oe = f(() => t.variant === "danger" ? Le : t.variant === "info" ? ke : Ce);
45
+ function x() {
46
+ return p[p.length - 1] === b;
47
+ }
48
+ function z() {
49
+ p.includes(b) || p.push(b);
50
+ }
51
+ function M() {
52
+ const e = p.indexOf(b);
53
+ e >= 0 && p.splice(e, 1);
54
+ }
55
+ function H(e) {
56
+ var G, J;
57
+ const n = document.activeElement;
58
+ if (n instanceof HTMLElement && ((G = w.value) != null && G.contains(n))) {
59
+ h.value = n;
60
+ return;
61
+ }
62
+ const y = e == null ? void 0 : e.target;
63
+ y instanceof HTMLElement && ((J = S.value) != null && J.contains(y)) && (h.value = y);
64
+ }
65
+ function ie() {
66
+ const e = h.value;
67
+ h.value = null, e != null && e.isConnected && e.focus();
68
+ }
69
+ function u() {
70
+ if (d) return;
71
+ const e = V.value;
72
+ c.value !== e && (d = !0, v = e, E = e ? void 0 : i.value ?? (t.disabled ? "disabled" : "external"), c.value = e);
73
+ }
74
+ function r(e, n) {
75
+ e && t.disabled || (!e && n && i.value === null && (i.value = n), W.value ? t.open !== e && s("update:open", e) : D.value !== e && (D.value = e, s("update:open", e)), u());
76
+ }
77
+ function ae() {
78
+ var e;
79
+ return i.value ? i.value : k instanceof Node && ((e = w.value) != null && e.contains(k)) ? "trigger" : "outside";
80
+ }
81
+ function re(e) {
82
+ if (e) {
83
+ H(), r(!0);
84
+ return;
85
+ }
86
+ if (t.confirmLoading) return;
87
+ const n = ae();
88
+ !x() && n !== "external" && n !== "disabled" || r(!1, n);
89
+ }
90
+ function le(e) {
91
+ var n;
92
+ !(e.target instanceof Node) || !((n = S.value) != null && n.contains(e.target)) || t.confirmLoading || (a.value || c.value ? (i.value = "trigger", r(!1, "trigger")) : (H(e), r(!0)));
93
+ }
94
+ function se() {
95
+ t.disabled || t.confirmLoading || m.value || (m.value = !0, s("confirm"), t.closeOnConfirm && r(!1, "confirm"));
96
+ }
97
+ function ce() {
98
+ t.disabled || t.confirmLoading || (s("cancel"), r(!1, "cancel"));
99
+ }
100
+ function K(e) {
101
+ e.key !== "Escape" && e.code !== "Escape" || e.defaultPrevented || !a.value || !x() || Te(document.querySelector(`.${O}`)) && (Se(e), P.add(e));
102
+ }
103
+ function C(e) {
104
+ P.has(e) && (P.delete(e), e.stopPropagation(), !e.defaultPrevented && (e.preventDefault(), e.stopImmediatePropagation(), !t.confirmLoading && r(!1, "escape")));
105
+ }
106
+ function Q(e) {
107
+ k = e.target;
108
+ }
109
+ function U(e) {
110
+ k = e.target;
111
+ }
112
+ function j(e) {
113
+ var n;
114
+ t.confirmLoading || !a.value || !x() || e.target instanceof Node && ((n = w.value) != null && n.contains(e.target) || e.target instanceof Element && e.target.closest(".qy-popconfirm-popper") || r(!1, "outside"));
115
+ }
116
+ function de() {
117
+ !d || v !== !0 || (d = !1, v = void 0, a.value = !0, z(), i.value = null, E = void 0, s("open-change", !0), u());
118
+ }
119
+ function ue() {
120
+ !d || v !== !1 || (d = !1, v = void 0, a.value = !1, M(), s("open-change", !1), s("close", E ?? i.value ?? "external"), i.value = null, E = void 0, m.value = !1, L = !1, ie(), u());
121
+ }
122
+ return q(V, () => u()), q(
123
+ () => t.open,
124
+ (e, n) => {
125
+ e !== n && (e === !1 && (a.value || c.value) && i.value === null && (i.value = "external"), u());
126
+ }
127
+ ), q(
128
+ () => t.disabled,
129
+ (e) => {
130
+ e && (a.value || c.value) && (i.value = "disabled"), u();
131
+ }
132
+ ), q(
133
+ () => t.confirmLoading,
134
+ (e) => {
135
+ e ? L = !0 : L && (L = !1, a.value && (m.value = !1));
136
+ }
137
+ ), ve(() => {
138
+ a.value && z(), window.addEventListener("keydown", K, !0), document.body.addEventListener("keydown", C), window.addEventListener("keydown", C), document.addEventListener("pointerdown", Q, !0), document.addEventListener("mousedown", U, !0), document.addEventListener("click", j);
139
+ }), ye(() => {
140
+ M(), window.removeEventListener("keydown", K, !0), document.body.removeEventListener("keydown", C), window.removeEventListener("keydown", C), document.removeEventListener("pointerdown", Q, !0), document.removeEventListener("mousedown", U, !0), document.removeEventListener("click", j);
141
+ }), (e, n) => (A(), X("span", ge({
142
+ ref_key: "rootRef",
143
+ ref: w,
144
+ class: "qy-popconfirm"
145
+ }, ee.value, { onClickCapture: le }), [
146
+ I(N(qe), {
147
+ visible: c.value,
148
+ trigger: "click",
149
+ placement: o.placement,
150
+ width: o.width,
151
+ disabled: o.disabled,
152
+ "popper-style": te.value,
153
+ "popper-class": `qy-popconfirm-popper ${O}`,
154
+ "onUpdate:visible": re,
155
+ onAfterEnter: de,
156
+ onAfterLeave: ue
157
+ }, {
158
+ reference: T(() => [
159
+ g("span", {
160
+ ref_key: "referenceRef",
161
+ ref: S,
162
+ "data-qy-popconfirm-reference": ""
163
+ }, [
164
+ R(e.$slots, "reference")
165
+ ], 512)
166
+ ]),
167
+ default: T(() => [
168
+ g("div", {
169
+ class: we(["qy-popconfirm__content", `is-${o.variant}`]),
170
+ "data-qy-popconfirm-content": ""
171
+ }, [
172
+ g("div", Be, [
173
+ o.showIcon ? (A(), X("span", De, [
174
+ R(e.$slots, "icon", {}, () => [
175
+ (A(), he(be(oe.value)))
176
+ ])
177
+ ])) : Ee("", !0),
178
+ g("span", Pe, [
179
+ R(e.$slots, "title", {}, () => [
180
+ $(F(o.title), 1)
181
+ ])
182
+ ])
183
+ ]),
184
+ g("div", xe, [
185
+ I(N(Y), {
186
+ "data-testid": "qy-popconfirm-cancel",
187
+ size: "small",
188
+ disabled: o.disabled || o.confirmLoading,
189
+ onClick: ce
190
+ }, {
191
+ default: T(() => [
192
+ $(F(o.cancelText), 1)
193
+ ]),
194
+ _: 1
195
+ }, 8, ["disabled"]),
196
+ I(N(Y), {
197
+ "data-testid": "qy-popconfirm-confirm",
198
+ size: "small",
199
+ type: o.confirmType,
200
+ loading: o.confirmLoading,
201
+ disabled: o.disabled || o.confirmLoading || m.value,
202
+ onClick: se
203
+ }, {
204
+ default: T(() => [
205
+ $(F(o.confirmText), 1)
206
+ ]),
207
+ _: 1
208
+ }, 8, ["type", "loading", "disabled"])
209
+ ])
210
+ ], 2)
211
+ ]),
212
+ _: 3
213
+ }, 8, ["visible", "placement", "width", "disabled", "popper-style", "popper-class"])
214
+ ], 16));
215
+ }
216
+ });
217
+ export {
218
+ $e as _
219
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),x=require("element-plus"),E=a.defineComponent({name:"QyDatePicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:void 0},type:{default:"date"},placeholder:{default:"请选择日期"},startPlaceholder:{default:"开始时间"},endPlaceholder:{default:"结束时间"},rangeSeparator:{default:"-"},format:{default:void 0},valueFormat:{default:void 0},defaultTime:{default:void 0},disabledDate:{type:Function,default:void 0},shortcuts:{default:void 0},clearable:{type:Boolean,default:!0},validateEvent:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},normalizeRangeEndTime:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","calendar-change","panel-change","visible-change","focus","blur"],setup(n,{expose:s,emit:c}){const d=n,r=c,f=a.useAttrs(),o=a.ref(null),h=a.computed(()=>["qy-date-picker__popper",d.popperClass].filter(Boolean).join(" "));function p(e){return Array.isArray(e)}function m(e){if(e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0)return e;const t=new Date(e);return t.setHours(23,59,59,0),t}function g(e){const t=e.match(/(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/);return t?e.replace(t[0],`${t[1]}23:59:59${t[2]??""}${t[3]??""}`):e}function i(e){if(!d.normalizeRangeEndTime||!p(e)||e.length<2)return e;const t=e[1];let l=t;if(t instanceof Date?l=m(t):typeof t=="string"&&(l=g(t)),l===t)return e;const u=[...e];return u[1]=l,u}function v(e){r("update:modelValue",i(e))}function y(e){r("change",i(e))}function P(){r("clear")}function C(e){r("calendar-change",e)}function b(e,t,l){if(l===void 0){r("panel-change",e,t);return}r("panel-change",e,t,l)}function z(e){r("visible-change",e)}function V(e){r("focus",e)}function R(e){r("blur",e)}function B(){var e,t;(t=(e=o.value)==null?void 0:e.focus)==null||t.call(e)}function S(){var e,t;(t=(e=o.value)==null?void 0:e.blur)==null||t.call(e)}function $(){var e,t;(t=(e=o.value)==null?void 0:e.handleOpen)==null||t.call(e)}function k(){var e,t;(t=(e=o.value)==null?void 0:e.handleClose)==null||t.call(e)}return s({focus:B,blur:S,open:$,close:k}),(e,t)=>(a.openBlock(),a.createBlock(a.unref(x.ElDatePicker),a.mergeProps({ref_key:"datePickerRef",ref:o,class:"qy-date-picker"},a.unref(f),{"model-value":n.modelValue,type:n.type,placeholder:n.placeholder,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,"range-separator":n.rangeSeparator,format:n.format,"value-format":n.valueFormat,"default-time":n.defaultTime,"disabled-date":n.disabledDate,shortcuts:n.shortcuts,clearable:n.clearable,disabled:n.disabled,"validate-event":n.validateEvent,readonly:n.readonly,size:n.size,teleported:n.teleported,"append-to":n.appendTo,"popper-class":h.value,"onUpdate:modelValue":v,onChange:y,onClear:P,onCalendarChange:C,onPanelChange:b,onVisibleChange:z,onFocus:V,onBlur:R}),{default:a.withCtx(l=>[a.renderSlot(e.$slots,"default",a.normalizeProps(a.guardReactiveProps(l)))]),"range-separator":a.withCtx(l=>[a.renderSlot(e.$slots,"range-separator",a.normalizeProps(a.guardReactiveProps(l)))]),"prev-month":a.withCtx(l=>[a.renderSlot(e.$slots,"prev-month",a.normalizeProps(a.guardReactiveProps(l)))]),"next-month":a.withCtx(l=>[a.renderSlot(e.$slots,"next-month",a.normalizeProps(a.guardReactiveProps(l)))]),"prev-year":a.withCtx(l=>[a.renderSlot(e.$slots,"prev-year",a.normalizeProps(a.guardReactiveProps(l)))]),"next-year":a.withCtx(l=>[a.renderSlot(e.$slots,"next-year",a.normalizeProps(a.guardReactiveProps(l)))]),_:3},16,["model-value","type","placeholder","start-placeholder","end-placeholder","range-separator","format","value-format","default-time","disabled-date","shortcuts","clearable","disabled","validate-event","readonly","size","teleported","append-to","popper-class"]))}});exports._sfc_main=E;
@@ -0,0 +1,176 @@
1
+ import { defineComponent as Z, watch as K, useAttrs as ee, ref as o, computed as v, nextTick as N, onBeforeUnmount as ae, openBlock as le, createElementBlock as ne, createElementVNode as y, mergeProps as te, withKeys as w, withModifiers as C, unref as V, normalizeStyle as re, normalizeClass as oe, toDisplayString as ue, createVNode as ie } from "vue";
2
+ import { useFormDisabled as se, ElColorPicker as ce } from "element-plus";
3
+ const de = ["id", "role", "aria-disabled", "tabindex", "disabled", "onKeydown"], ve = {
4
+ class: "qy-color-picker__value",
5
+ "aria-hidden": "true"
6
+ };
7
+ let fe = 0;
8
+ const pe = () => `qy-color-picker-${++fe}`, ge = /* @__PURE__ */ Z({
9
+ name: "QyColorPicker",
10
+ inheritAttrs: !1,
11
+ __name: "index",
12
+ props: {
13
+ modelValue: { default: null },
14
+ format: { default: void 0 },
15
+ showAlpha: { type: Boolean, default: !1 },
16
+ predefine: { default: void 0 },
17
+ size: { default: "default" },
18
+ disabled: { type: Boolean, default: void 0 },
19
+ clearable: { type: Boolean, default: !1 }
20
+ },
21
+ emits: ["update:modelValue", "active-change", "change", "visible-change"],
22
+ setup(S, { emit: F }) {
23
+ const t = S, u = F, i = se();
24
+ K(i, (e) => {
25
+ e && l.value && p();
26
+ });
27
+ const f = ee(), E = o(null), x = o(null), h = o(null), n = o(s(t.modelValue)), b = o(n.value), l = o(!1), r = o(null), c = o(!1), m = o(!1), A = pe(), O = v(() => typeof f.id == "string" && f.id || A), D = `qy-color-picker__popper--${A}`, Q = v(
28
+ () => t.format || (t.showAlpha ? "rgb" : "hex")
29
+ ), g = v(() => s(t.modelValue)), T = v(() => String(f.role || "button")), U = v(
30
+ () => f["aria-disabled"] ?? (i.value ? "true" : "false")
31
+ ), $ = v(
32
+ () => i.value ? void 0 : f.tabindex ?? 0
33
+ ), W = v(() => {
34
+ const e = {};
35
+ for (const [a, d] of Object.entries(f)) {
36
+ const _ = a.toLowerCase();
37
+ (a === "class" || a === "style" || a === "id" || a === "title" || a === "tabindex" || a === "role" || _.startsWith("data-") || _.startsWith("aria-") || ["onkeydown", "onkeyup", "onkeypress"].includes(_)) && (e[a] = d);
38
+ }
39
+ return e;
40
+ });
41
+ K(
42
+ () => t.modelValue,
43
+ (e) => {
44
+ n.value = s(e), l.value && (b.value = n.value);
45
+ }
46
+ );
47
+ function s(e) {
48
+ return e == null || e === "" ? null : String(e);
49
+ }
50
+ function j() {
51
+ if (!i.value) {
52
+ if (l.value) {
53
+ p();
54
+ return;
55
+ }
56
+ P();
57
+ }
58
+ }
59
+ function R() {
60
+ i.value || l.value || P();
61
+ }
62
+ function M() {
63
+ l.value && p();
64
+ }
65
+ function P() {
66
+ l.value || i.value || (b.value = s(t.modelValue), n.value = b.value, r.value = null, c.value = !1, m.value = !1, l.value = !0, Y(), u("visible-change", !0), N(() => {
67
+ var e, a;
68
+ return (a = (e = h.value) == null ? void 0 : e.show) == null ? void 0 : a.call(e);
69
+ }));
70
+ }
71
+ function G(e) {
72
+ !l.value || r.value || (n.value = s(e), u("active-change", n.value));
73
+ }
74
+ function H(e) {
75
+ !l.value || r.value === "cancel" || (n.value = s(e), c.value || (c.value = !0, r.value = "commit", u("update:modelValue", n.value)));
76
+ }
77
+ function J(e) {
78
+ !l.value || r.value === "cancel" || (n.value = s(e), c.value || (c.value = !0, r.value = "commit", u("update:modelValue", n.value)), m.value || (m.value = !0, u("change", n.value)), k());
79
+ }
80
+ function X() {
81
+ !l.value || r.value === "cancel" || (c.value || (c.value = !0, r.value = "commit", n.value = null, u("update:modelValue", null)), m.value || (m.value = !0, u("change", null)), k());
82
+ }
83
+ function p() {
84
+ var e, a;
85
+ !l.value || r.value || (r.value = "cancel", n.value = s(t.modelValue), (a = (e = h.value) == null ? void 0 : e.hide) == null || a.call(e), k());
86
+ }
87
+ function k() {
88
+ var e, a;
89
+ l.value && (l.value = !1, I(), (a = (e = h.value) == null ? void 0 : e.hide) == null || a.call(e), u("visible-change", !1), N(() => {
90
+ var d;
91
+ return (d = x.value) == null ? void 0 : d.focus();
92
+ }));
93
+ }
94
+ function q(e) {
95
+ var a, d;
96
+ return e instanceof Node ? (a = E.value) != null && a.contains(e) ? !0 : !!((d = e.closest) != null && d.call(e, `.${D}`)) : !1;
97
+ }
98
+ function L(e) {
99
+ l.value && !q(e.target) && p();
100
+ }
101
+ function z(e) {
102
+ l.value && !q(e.target) && p();
103
+ }
104
+ function B(e) {
105
+ l.value && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), p());
106
+ }
107
+ function Y() {
108
+ document.addEventListener("pointerdown", L, !0), document.addEventListener("focusin", z, !0), document.addEventListener("keydown", B, !0);
109
+ }
110
+ function I() {
111
+ document.removeEventListener("pointerdown", L, !0), document.removeEventListener("focusin", z, !0), document.removeEventListener("keydown", B, !0);
112
+ }
113
+ return ae(() => {
114
+ I();
115
+ }), (e, a) => (le(), ne("div", {
116
+ ref_key: "rootRef",
117
+ ref: E,
118
+ class: "qy-color-picker",
119
+ "data-qy-color-picker": ""
120
+ }, [
121
+ y("button", te({
122
+ ref_key: "triggerRef",
123
+ ref: x,
124
+ type: "button",
125
+ class: "qy-color-picker__trigger"
126
+ }, W.value, {
127
+ id: O.value,
128
+ role: T.value,
129
+ "aria-disabled": U.value,
130
+ tabindex: $.value,
131
+ disabled: V(i),
132
+ class: { "is-disabled": V(i), "is-open": l.value },
133
+ onClick: j,
134
+ onKeydown: [
135
+ w(C(R, ["prevent"]), ["enter"]),
136
+ w(C(R, ["prevent"]), ["space"]),
137
+ w(C(M, ["prevent"]), ["esc"])
138
+ ]
139
+ }), [
140
+ y("span", {
141
+ class: oe(["qy-color-picker__swatch", { "is-empty": !g.value }]),
142
+ style: re(g.value ? { backgroundColor: g.value } : void 0),
143
+ "aria-hidden": "true"
144
+ }, null, 6),
145
+ y("span", ve, ue(g.value || "选择颜色"), 1),
146
+ a[0] || (a[0] = y("span", {
147
+ class: "qy-color-picker__arrow",
148
+ "aria-hidden": "true"
149
+ }, "⌄", -1))
150
+ ], 16, de),
151
+ ie(V(ce), {
152
+ ref_key: "rendererRef",
153
+ ref: h,
154
+ class: "qy-color-picker__renderer",
155
+ "model-value": n.value,
156
+ "show-alpha": t.showAlpha,
157
+ "color-format": Q.value,
158
+ predefine: t.predefine,
159
+ size: t.size,
160
+ disabled: !1,
161
+ clearable: t.clearable,
162
+ teleported: !0,
163
+ tabindex: -1,
164
+ "popper-class": D,
165
+ "aria-hidden": "true",
166
+ onActiveChange: G,
167
+ "onUpdate:modelValue": H,
168
+ onChange: J,
169
+ onClear: X
170
+ }, null, 8, ["model-value", "show-alpha", "color-format", "predefine", "size", "clearable"])
171
+ ], 512));
172
+ }
173
+ });
174
+ export {
175
+ ge as _
176
+ };
@@ -0,0 +1 @@
1
+ "use strict";const U=require("element-plus"),e=require("vue"),ae=require("clsx"),k=require("element-plus"),E=require("./overlay-stack-DeKq7jZu.cjs"),re=require("@element-plus/icons-vue"),K=require("@vueuse/core"),ie={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},se={key:0},de={key:1},ce={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},ue={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},fe={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},me={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},pe={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},ve={class:"flex items-center gap-2"},ye={class:"text-sm text-gray-700 truncate max-w-[200px]"},ge={class:"flex items-center gap-2"},X=5,he=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!1},title:{default:""},width:{default:"50%"},showFooter:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},confirmText:{default:"确 认"},cancelText:{default:"取 消"},confirmLoading:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},top:{default:"15vh"},alignCenter:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},appendTo:{default:"body"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},size:{default:"default"},zIndex:{default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(Y,{expose:G,emit:J}){let i=0;const o=Y,C=e.useSlots(),M=e.ref(!0),B=e.ref(!1),{nextZIndex:b}=k.useZIndex(),h=e.ref(E.resolveOverlayZIndex(b(),o.zIndex)),L=e.ref(null),Q=K.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),z=e.computed(()=>{const t=[];return o.showCancel&&t.push("cancel"),o.showConfirm&&t.push("confirm"),t}),O=e.computed(()=>({CancelButton:e.createVNode(Z),ConfirmButton:e.createVNode(F)})),I=e.computed(()=>!!(C.footer||o.showFooter)),s=e.ref(!1),m=e.ref(!1);let _=!1,p=document.activeElement instanceof HTMLElement?document.activeElement:null;const y=e.ref(o.showFullscreen&&Q?!0:o.fullscreen),a=J,T=e.computed(()=>o.open);e.watchEffect(()=>{T.value&&(s.value=!1)}),e.watch(()=>o.open,(t,l)=>{if(t){h.value=E.resolveOverlayZIndex(b(),o.zIndex),s.value=!1,m.value=!1,p=document.activeElement instanceof HTMLElement?document.activeElement:p,l===!1&&a("open-change",!0);return}l&&!s.value&&(s.value=!0,a("open-change",!1),a("close","external"))}),e.watch(()=>o.confirmLoading,t=>{t?_=!0:_&&(_=!1,m.value=!1)}),G({handleMinimize:q});const d=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,v=e.ref(!1);let g=!1;const w=e.ref(null),{x:$,y:N}=K.useDraggable(w,{initialValue:{x:5,y:window.innerHeight-100-i*60},onMove(t){var l;(l=w.value)==null||l.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),$.value=Math.max(0,Math.min(window.innerWidth-300,t.x)),N.value=Math.max(0,Math.min(window.innerHeight-50,t.y))},onEnd(){var t;(t=w.value)==null||t.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),ee=e.computed(()=>({transform:`translate(${$.value}px, ${N.value}px)`,willChange:"transform"}));function D(t){const l=t.target,{scrollTop:n,scrollHeight:r,clientHeight:u}=l;M.value=n<=X,B.value=r-(n+u)<=X}function te(){const t=document.querySelector(`.${d}.el-dialog`);t&&(L.value=t,t.addEventListener("scroll",D)),a("opened")}function H(){y.value=!y.value,V()}function c(t){o.confirmLoading&&t!=="external"||s.value||(s.value=!0,W(),a("update:open",!1),a("open-change",!1),(t==="cancel"||t==="header")&&a("cancel"),a("close",t),e.nextTick(()=>{o.open&&(s.value=!1)}))}function oe(){a("closed"),e.nextTick(()=>{p!=null&&p.isConnected&&p.focus()})}function le(t){o.showFullscreen&&t.detail>=2&&H()}function F(){return e.h(k.ElButton,{type:"primary",class:"dialog__footerBtn",loading:o.confirmLoading,disabled:o.confirmDisabled||o.confirmLoading||m.value,onClick:ne},()=>o.confirmText)}function ne(){m.value||o.confirmLoading||o.confirmDisabled||(m.value=!0,a("confirm"),e.nextTick(()=>{o.confirmLoading||(m.value=!1)}),o.closeOnConfirm&&c("confirm"))}function Z(){return e.h(k.ElButton,{class:"dialog__footerBtn",onClick:()=>c("cancel")},()=>o.cancelText)}e.onMounted(()=>{V(),document.addEventListener("keydown",A,!0),document.addEventListener("keydown",R),document.addEventListener("mousedown",P,!0)});function j(){var r,u;const t=(r=document.querySelector(`.${d}`))==null?void 0:r.closest(".el-overlay");if(!t)return!1;const n=Array.from(document.querySelectorAll(".el-overlay, .el-image-viewer__wrapper")).filter(f=>window.getComputedStyle(f).display!=="none").map((f,x)=>({overlay:f,order:x,zIndex:Number.parseInt(window.getComputedStyle(f).zIndex||"0",10)}));return n.sort((f,x)=>f.zIndex-x.zIndex||f.order-x.order),((u=n.at(-1))==null?void 0:u.overlay)===t}const S=new WeakSet;function A(t){t.key!=="Escape"||E.isOverlayEscapeClaimed(t)||!o.open||!o.closeOnEscape||o.confirmLoading||!j()||S.add(t)}function R(t){!S.has(t)||t.defaultPrevented||(S.delete(t),t.preventDefault(),c("escape"))}function P(t){if(!o.open||!o.closeOnOverlay||o.confirmLoading||!j()||!(t.target instanceof Node))return;const l=document.querySelector(`.${d}.el-dialog`),n=l==null?void 0:l.closest(".el-overlay");!l||!n||!n.contains(t.target)||l.contains(t.target)||c("overlay")}function V(){var r;const t=(r=document.querySelector(`.${d}`))==null?void 0:r.closest(".el-overlay"),l=document.querySelector(`.${d}.el-dialog`);if(!t||!l)return;const n=E.resolveOverlayZIndex(b(),o.zIndex);e.nextTick(()=>{t.style.zIndex=n.toString(),l.style.zIndex=n.toString(),h.value=n})}e.onUnmounted(()=>{var t;document.removeEventListener("keydown",A,!0),document.removeEventListener("keydown",R),document.removeEventListener("mousedown",P,!0),(t=L.value)==null||t.removeEventListener("scroll",D),W()});function W(){if(!g){v.value=!1;return}g=!1,i=Math.max(0,i-1),v.value=!1}function q(){var l;const t=(l=document.querySelector(`.${d}`))==null?void 0:l.closest(".el-overlay");!t||!o.open||(v.value?(v.value=!1,t.style.display="block",g&&(g=!1,i=Math.max(0,i-1)),V()):(v.value=!0,t.style.display="none",g=!0,i+=1,N.value=window.innerHeight-50-i*60))}return(t,l)=>{const n=U.ElIcon,r=U.ElDialog;return e.openBlock(),e.createBlock(e.unref(k.ElConfigProvider),{"z-index":h.value},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[o.size==="small"&&"[&_.el-dialog__header]:!hidden",d]]),"model-value":T.value,title:o.title,width:o.width,top:o.top,"align-center":o.alignCenter,"append-to-body":o.appendToBody,"append-to":o.appendTo,"destroy-on-close":o.destroyOnClose,"lock-scroll":o.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,fullscreen:y.value,"z-index":h.value,onClosed:oe,onOpened:te,draggable:o.draggable},e.createSlots({header:e.withCtx(()=>[o.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:M.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:le},[e.createElementVNode("div",ie,[e.unref(C).header?e.unref(C).header?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",se,e.toDisplayString(o.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},[o.size==="default"&&o.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(q,["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("",!0),o.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(H,["stop"]),onMousedown:l[1]||(l[1]=e.withModifiers(()=>{},["stop"]))},[y.value?(e.openBlock(),e.createElementBlock("span",ue)):(e.openBlock(),e.createElementBlock("span",ce))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:l[2]||(l[2]=e.withModifiers(u=>c("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("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(ae)(y.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:I.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:o.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[o.size==="small"?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(n,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:l[5]||(l[5]=u=>c("header"))},{default:e.withCtx(()=>[e.createVNode(e.unref(re.Close))]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],6)]),_:2},[o.showFooter&&!t.$slots.footer&&Array.isArray(z.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",me,[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":B.value},"qy-dialog__footer flex items-center justify-end"])},[z.value.includes("cancel")?(e.openBlock(),e.createBlock(Z,{key:0})):e.createCommentVNode("",!0),z.value.includes("confirm")?(e.openBlock(),e.createBlock(F,{key:1})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"footer-append")],2)])]),key:"0"}:I.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":B.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(t.$slots,"footer",{layouts:O.value,layoutsNode:Object.values(O.value)})],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.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:w,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([ee.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",pe,[e.createElementVNode("div",ve,[l[9]||(l[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",ye,e.toDisplayString(o.title),1)]),e.createElementVNode("div",ge,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(q,["stop"])},[...l[10]||(l[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:l[6]||(l[6]=e.withModifiers(u=>c("header"),["stop"]))},[...l[11]||(l[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,v.value]])])]),_:3},8,["z-index"])}}});exports._sfc_main=he;
@@ -17,7 +17,8 @@ const Z = /* @__PURE__ */ S({
17
17
  disabledDate: { type: Function, default: void 0 },
18
18
  shortcuts: { default: void 0 },
19
19
  clearable: { type: Boolean, default: !0 },
20
- disabled: { type: Boolean, default: !1 },
20
+ validateEvent: { type: Boolean, default: !0 },
21
+ disabled: { type: Boolean, default: void 0 },
21
22
  readonly: { type: Boolean },
22
23
  size: { default: void 0 },
23
24
  teleported: { type: Boolean, default: !0 },
@@ -26,20 +27,20 @@ const Z = /* @__PURE__ */ S({
26
27
  normalizeRangeEndTime: { type: Boolean, default: !1 }
27
28
  },
28
29
  emits: ["update:modelValue", "change", "clear", "calendar-change", "panel-change", "visible-change", "focus", "blur"],
29
- setup(n, { expose: p, emit: m }) {
30
- const s = n, l = m, g = A(), u = M(null), y = q(
31
- () => ["qy-date-picker__popper", s.popperClass].filter(Boolean).join(" ")
30
+ setup(t, { expose: p, emit: m }) {
31
+ const c = t, l = m, g = A(), u = M(null), y = q(
32
+ () => ["qy-date-picker__popper", c.popperClass].filter(Boolean).join(" ")
32
33
  );
33
- function b(e) {
34
+ function v(e) {
34
35
  return Array.isArray(e);
35
36
  }
36
- function C(e) {
37
+ function b(e) {
37
38
  if (e.getHours() !== 0 || e.getMinutes() !== 0 || e.getSeconds() !== 0 || e.getMilliseconds() !== 0)
38
39
  return e;
39
40
  const a = new Date(e);
40
41
  return a.setHours(23, 59, 59, 0), a;
41
42
  }
42
- function P(e) {
43
+ function C(e) {
43
44
  const a = e.match(
44
45
  /(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/
45
46
  );
@@ -48,21 +49,21 @@ const Z = /* @__PURE__ */ S({
48
49
  `${a[1]}23:59:59${a[2] ?? ""}${a[3] ?? ""}`
49
50
  ) : e;
50
51
  }
51
- function c(e) {
52
- if (!s.normalizeRangeEndTime || !b(e) || e.length < 2)
52
+ function s(e) {
53
+ if (!c.normalizeRangeEndTime || !v(e) || e.length < 2)
53
54
  return e;
54
55
  const a = e[1];
55
- let t = a;
56
- if (a instanceof Date ? t = C(a) : typeof a == "string" && (t = P(a)), t === a)
56
+ let n = a;
57
+ if (a instanceof Date ? n = b(a) : typeof a == "string" && (n = C(a)), n === a)
57
58
  return e;
58
59
  const f = [...e];
59
- return f[1] = t, f;
60
+ return f[1] = n, f;
60
61
  }
61
- function v(e) {
62
- l("update:modelValue", c(e));
62
+ function P(e) {
63
+ l("update:modelValue", s(e));
63
64
  }
64
65
  function V(e) {
65
- l("change", c(e));
66
+ l("change", s(e));
66
67
  }
67
68
  function z() {
68
69
  l("clear");
@@ -70,27 +71,27 @@ const Z = /* @__PURE__ */ S({
70
71
  function B(e) {
71
72
  l("calendar-change", e);
72
73
  }
73
- function $(e, a, t) {
74
- if (t === void 0) {
74
+ function $(e, a, n) {
75
+ if (n === void 0) {
75
76
  l("panel-change", e, a);
76
77
  return;
77
78
  }
78
- l("panel-change", e, a, t);
79
+ l("panel-change", e, a, n);
79
80
  }
80
81
  function k(e) {
81
82
  l("visible-change", e);
82
83
  }
83
- function D(e) {
84
+ function E(e) {
84
85
  l("focus", e);
85
86
  }
86
- function R(e) {
87
+ function D(e) {
87
88
  l("blur", e);
88
89
  }
89
- function T() {
90
+ function R() {
90
91
  var e, a;
91
92
  (a = (e = u.value) == null ? void 0 : e.focus) == null || a.call(e);
92
93
  }
93
- function E() {
94
+ function T() {
94
95
  var e, a;
95
96
  (a = (e = u.value) == null ? void 0 : e.blur) == null || a.call(e);
96
97
  }
@@ -103,8 +104,8 @@ const Z = /* @__PURE__ */ S({
103
104
  (a = (e = u.value) == null ? void 0 : e.handleClose) == null || a.call(e);
104
105
  }
105
106
  return p({
106
- focus: T,
107
- blur: E,
107
+ focus: R,
108
+ blur: T,
108
109
  open: x,
109
110
  close: F
110
111
  }), (e, a) => (H(), U(h(w), j({
@@ -112,53 +113,54 @@ const Z = /* @__PURE__ */ S({
112
113
  ref: u,
113
114
  class: "qy-date-picker"
114
115
  }, h(g), {
115
- "model-value": n.modelValue,
116
- type: n.type,
117
- placeholder: n.placeholder,
118
- "start-placeholder": n.startPlaceholder,
119
- "end-placeholder": n.endPlaceholder,
120
- "range-separator": n.rangeSeparator,
121
- format: n.format,
122
- "value-format": n.valueFormat,
123
- "default-time": n.defaultTime,
124
- "disabled-date": n.disabledDate,
125
- shortcuts: n.shortcuts,
126
- clearable: n.clearable,
127
- disabled: n.disabled,
128
- readonly: n.readonly,
129
- size: n.size,
130
- teleported: n.teleported,
131
- "append-to": n.appendTo,
116
+ "model-value": t.modelValue,
117
+ type: t.type,
118
+ placeholder: t.placeholder,
119
+ "start-placeholder": t.startPlaceholder,
120
+ "end-placeholder": t.endPlaceholder,
121
+ "range-separator": t.rangeSeparator,
122
+ format: t.format,
123
+ "value-format": t.valueFormat,
124
+ "default-time": t.defaultTime,
125
+ "disabled-date": t.disabledDate,
126
+ shortcuts: t.shortcuts,
127
+ clearable: t.clearable,
128
+ disabled: t.disabled,
129
+ "validate-event": t.validateEvent,
130
+ readonly: t.readonly,
131
+ size: t.size,
132
+ teleported: t.teleported,
133
+ "append-to": t.appendTo,
132
134
  "popper-class": y.value,
133
- "onUpdate:modelValue": v,
135
+ "onUpdate:modelValue": P,
134
136
  onChange: V,
135
137
  onClear: z,
136
138
  onCalendarChange: B,
137
139
  onPanelChange: $,
138
140
  onVisibleChange: k,
139
- onFocus: D,
140
- onBlur: R
141
+ onFocus: E,
142
+ onBlur: D
141
143
  }), {
142
- default: o((t) => [
143
- r(e.$slots, "default", d(i(t)))
144
+ default: o((n) => [
145
+ r(e.$slots, "default", d(i(n)))
144
146
  ]),
145
- "range-separator": o((t) => [
146
- r(e.$slots, "range-separator", d(i(t)))
147
+ "range-separator": o((n) => [
148
+ r(e.$slots, "range-separator", d(i(n)))
147
149
  ]),
148
- "prev-month": o((t) => [
149
- r(e.$slots, "prev-month", d(i(t)))
150
+ "prev-month": o((n) => [
151
+ r(e.$slots, "prev-month", d(i(n)))
150
152
  ]),
151
- "next-month": o((t) => [
152
- r(e.$slots, "next-month", d(i(t)))
153
+ "next-month": o((n) => [
154
+ r(e.$slots, "next-month", d(i(n)))
153
155
  ]),
154
- "prev-year": o((t) => [
155
- r(e.$slots, "prev-year", d(i(t)))
156
+ "prev-year": o((n) => [
157
+ r(e.$slots, "prev-year", d(i(n)))
156
158
  ]),
157
- "next-year": o((t) => [
158
- r(e.$slots, "next-year", d(i(t)))
159
+ "next-year": o((n) => [
160
+ r(e.$slots, "next-year", d(i(n)))
159
161
  ]),
160
162
  _: 3
161
- }, 16, ["model-value", "type", "placeholder", "start-placeholder", "end-placeholder", "range-separator", "format", "value-format", "default-time", "disabled-date", "shortcuts", "clearable", "disabled", "readonly", "size", "teleported", "append-to", "popper-class"]));
163
+ }, 16, ["model-value", "type", "placeholder", "start-placeholder", "end-placeholder", "range-separator", "format", "value-format", "default-time", "disabled-date", "shortcuts", "clearable", "disabled", "validate-event", "readonly", "size", "teleported", "append-to", "popper-class"]));
162
164
  }
163
165
  });
164
166
  export {