@qynpm/ui 1.0.46 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +3 -1
  3. package/dist/index.cjs +26 -26
  4. package/dist/index.mjs +241 -241
  5. package/dist/qy-action-bar/index.cjs +2 -2
  6. package/dist/qy-action-bar/index.mjs +2 -2
  7. package/dist/qy-alert/index.cjs +1 -1
  8. package/dist/qy-alert/index.mjs +4 -4
  9. package/dist/qy-aside/index.cjs +1 -1
  10. package/dist/qy-aside/index.mjs +4 -4
  11. package/dist/qy-autocomplete/index.cjs +1 -1
  12. package/dist/qy-autocomplete/index.mjs +3 -3
  13. package/dist/qy-avatar/index.cjs +1 -1
  14. package/dist/qy-avatar/index.mjs +1 -1
  15. package/dist/qy-badge/index.cjs +1 -1
  16. package/dist/qy-badge/index.mjs +4 -4
  17. package/dist/qy-button/index.cjs +2 -2
  18. package/dist/qy-button/index.mjs +2 -2
  19. package/dist/qy-card/index.cjs +1 -1
  20. package/dist/qy-card/index.mjs +1 -1
  21. package/dist/qy-cascader/index.cjs +1 -1
  22. package/dist/qy-cascader/index.mjs +3 -3
  23. package/dist/qy-checkbox/index.cjs +1 -1
  24. package/dist/qy-checkbox/index.mjs +1 -1
  25. package/dist/qy-checkbox-group/index.cjs +1 -1
  26. package/dist/qy-checkbox-group/index.mjs +4 -4
  27. package/dist/qy-col/index.cjs +1 -1
  28. package/dist/qy-col/index.mjs +4 -4
  29. package/dist/qy-collapse/index.cjs +1 -1
  30. package/dist/qy-collapse/index.mjs +2 -2
  31. package/dist/qy-collapse-item/index.cjs +1 -1
  32. package/dist/qy-collapse-item/index.mjs +5 -5
  33. package/dist/qy-color-picker/index.cjs +1 -1
  34. package/dist/qy-color-picker/index.mjs +4 -4
  35. package/dist/qy-container/index.cjs +1 -1
  36. package/dist/qy-container/index.mjs +3 -3
  37. package/dist/qy-date-picker/index.cjs +1 -1
  38. package/dist/qy-date-picker/index.mjs +1 -1
  39. package/dist/qy-descriptions/index.cjs +1 -1
  40. package/dist/qy-descriptions/index.mjs +1 -1
  41. package/dist/qy-descriptions-item/index.cjs +1 -1
  42. package/dist/qy-descriptions-item/index.mjs +4 -4
  43. package/dist/qy-dialog/index.cjs +2 -2
  44. package/dist/qy-dialog/index.mjs +4 -4
  45. package/dist/qy-divider/index.cjs +1 -1
  46. package/dist/qy-divider/index.mjs +4 -4
  47. package/dist/qy-drawer/index.cjs +1 -1
  48. package/dist/qy-drawer/index.mjs +2 -2
  49. package/dist/qy-dropdown/index.cjs +2 -2
  50. package/dist/qy-dropdown/index.mjs +2 -2
  51. package/dist/qy-empty/index.cjs +1 -1
  52. package/dist/qy-empty/index.mjs +4 -4
  53. package/dist/qy-file-picker/index.cjs +1 -1
  54. package/dist/qy-file-picker/index.mjs +1 -1
  55. package/dist/qy-form-section/index.cjs +2 -2
  56. package/dist/qy-form-section/index.mjs +2 -2
  57. package/dist/qy-fullscreen/index.cjs +1 -1
  58. package/dist/qy-fullscreen/index.mjs +1 -1
  59. package/dist/qy-icon/index.cjs +1 -1
  60. package/dist/qy-icon/index.mjs +2 -2
  61. package/dist/qy-icon-picker/index.cjs +2 -2
  62. package/dist/qy-icon-picker/index.mjs +5 -5
  63. package/dist/qy-iframe/index.cjs +1 -1
  64. package/dist/qy-iframe/index.mjs +1 -1
  65. package/dist/qy-image/index.cjs +1 -1
  66. package/dist/qy-image/index.mjs +1 -1
  67. package/dist/qy-image-preview/index.cjs +1 -1
  68. package/dist/qy-image-preview/index.mjs +1 -1
  69. package/dist/qy-image-upload/index.cjs +2 -2
  70. package/dist/qy-image-upload/index.mjs +4 -4
  71. package/dist/qy-input/index.cjs +1 -1
  72. package/dist/qy-input/index.mjs +1 -1
  73. package/dist/qy-input-number/index.cjs +1 -1
  74. package/dist/qy-input-number/index.mjs +2 -2
  75. package/dist/qy-input-tag/index.cjs +1 -1
  76. package/dist/qy-input-tag/index.mjs +134 -123
  77. package/dist/qy-legacy-selection-dialog/index.cjs +7 -7
  78. package/dist/qy-legacy-selection-dialog/index.mjs +7 -7
  79. package/dist/qy-link/index.cjs +1 -1
  80. package/dist/qy-link/index.mjs +5 -5
  81. package/dist/qy-main/index.cjs +1 -1
  82. package/dist/qy-main/index.mjs +4 -4
  83. package/dist/qy-menu-actions/index.cjs +1 -1
  84. package/dist/qy-menu-actions/index.mjs +1 -1
  85. package/dist/qy-money-input/index.cjs +1 -1
  86. package/dist/qy-money-input/index.mjs +4 -4
  87. package/dist/qy-pagination/index.cjs +1 -1
  88. package/dist/qy-pagination/index.mjs +1 -1
  89. package/dist/qy-popconfirm/index.cjs +1 -1
  90. package/dist/qy-popconfirm/index.mjs +5 -5
  91. package/dist/qy-popover/index.cjs +1 -1
  92. package/dist/qy-popover/index.mjs +4 -4
  93. package/dist/qy-progress/index.cjs +1 -1
  94. package/dist/qy-progress/index.mjs +3 -3
  95. package/dist/qy-radio/index.cjs +1 -1
  96. package/dist/qy-radio/index.mjs +1 -1
  97. package/dist/qy-radio-group/index.cjs +1 -1
  98. package/dist/qy-radio-group/index.mjs +1 -1
  99. package/dist/qy-record-quote-search/index.cjs +3 -3
  100. package/dist/qy-record-quote-search/index.mjs +3 -3
  101. package/dist/qy-remark-image/index.cjs +2 -2
  102. package/dist/qy-remark-image/index.mjs +3 -3
  103. package/dist/qy-remote-select/index.cjs +2 -2
  104. package/dist/qy-remote-select/index.mjs +4 -4
  105. package/dist/qy-result/index.cjs +1 -1
  106. package/dist/qy-result/index.mjs +4 -4
  107. package/dist/qy-row/index.cjs +1 -1
  108. package/dist/qy-row/index.mjs +4 -4
  109. package/dist/qy-scrollbar/index.cjs +1 -1
  110. package/dist/qy-scrollbar/index.mjs +3 -3
  111. package/dist/qy-search-input/index.cjs +2 -2
  112. package/dist/qy-search-input/index.mjs +2 -2
  113. package/dist/qy-select/index.cjs +1 -1
  114. package/dist/qy-select/index.mjs +1 -1
  115. package/dist/qy-selection-dialog/index.cjs +6 -6
  116. package/dist/qy-selection-dialog/index.mjs +6 -6
  117. package/dist/qy-skeleton/index.cjs +1 -1
  118. package/dist/qy-skeleton/index.mjs +4 -4
  119. package/dist/qy-skeleton-item/index.cjs +1 -1
  120. package/dist/qy-skeleton-item/index.mjs +4 -4
  121. package/dist/qy-statistic/index.cjs +1 -1
  122. package/dist/qy-statistic/index.mjs +3 -3
  123. package/dist/qy-step/index.cjs +1 -1
  124. package/dist/qy-step/index.mjs +5 -5
  125. package/dist/qy-steps/index.cjs +1 -1
  126. package/dist/qy-steps/index.mjs +4 -4
  127. package/dist/qy-switch/index.cjs +1 -1
  128. package/dist/qy-switch/index.mjs +1 -1
  129. package/dist/qy-tab-pane/index.cjs +1 -1
  130. package/dist/qy-tab-pane/index.mjs +4 -4
  131. package/dist/qy-table-column-settings/index.cjs +1 -1
  132. package/dist/qy-table-column-settings/index.mjs +1 -1
  133. package/dist/qy-tabs/index.cjs +1 -1
  134. package/dist/qy-tabs/index.mjs +4 -4
  135. package/dist/qy-tag/index.cjs +1 -1
  136. package/dist/qy-tag/index.mjs +1 -1
  137. package/dist/qy-tooltip/index.cjs +1 -1
  138. package/dist/qy-tooltip/index.mjs +4 -4
  139. package/dist/qy-tree/index.cjs +1 -1
  140. package/dist/qy-tree/index.mjs +5 -5
  141. package/dist/qy-tree-select/index.cjs +1 -1
  142. package/dist/qy-tree-select/index.mjs +1 -1
  143. package/dist/qy-upload/index.cjs +1 -1
  144. package/dist/qy-upload/index.mjs +1 -1
  145. package/dist/qy-watermark/index.cjs +1 -1
  146. package/dist/qy-watermark/index.mjs +1 -1
  147. package/dist/shared/index-0PQfX5FF.cjs +1 -0
  148. package/dist/shared/index-0rmLB9X5.mjs +153 -0
  149. package/dist/shared/index-2Mjm9QSY.cjs +1 -0
  150. package/dist/shared/index-4Yl91Bw1.cjs +1 -0
  151. package/dist/shared/{index-DNMRIYkm.mjs → index-4f74z6ej.mjs} +1 -1
  152. package/dist/shared/index-5gzkbh5i.mjs +155 -0
  153. package/dist/shared/index-8hd7J6aU.mjs +387 -0
  154. package/dist/shared/index-8yOtcFvL.cjs +1 -0
  155. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-9ONwSw5w.mjs} +13 -12
  156. package/dist/shared/index-9uvmS4AG.mjs +269 -0
  157. package/dist/shared/index-AanbrbHj.mjs +341 -0
  158. package/dist/shared/index-AlGD5i9H.mjs +69 -0
  159. package/dist/shared/index-B5QHWuu6.mjs +77 -0
  160. package/dist/shared/index-B61qMsVc.cjs +1 -0
  161. package/dist/shared/index-B7uUS7TF.cjs +1 -0
  162. package/dist/shared/index-BD_xspQz.mjs +48 -0
  163. package/dist/shared/index-BE5027ro.mjs +93 -0
  164. package/dist/shared/index-BEBpuiBd.mjs +88 -0
  165. package/dist/shared/index-BEkygL14.mjs +53 -0
  166. package/dist/shared/index-BEtTFM5x.cjs +1 -0
  167. package/dist/shared/index-BHwo-QWj.cjs +1 -0
  168. package/dist/shared/index-BNFOINBq.cjs +1 -0
  169. package/dist/shared/index-BO98Eu6o.mjs +177 -0
  170. package/dist/shared/index-BQhmieVL.cjs +1 -0
  171. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-BQsEFX28.mjs} +24 -23
  172. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs → index-BToXN_2w.mjs} +18 -17
  173. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-BVb2RMjG.mjs} +12 -11
  174. package/dist/shared/index-BZWCuG8R.cjs +1 -0
  175. package/dist/shared/index-BZ_NcHA_.mjs +53 -0
  176. package/dist/shared/{index.vue_vue_type_script_lang-DIKHRo0o.mjs → index-BZqyVU0P.mjs} +22 -21
  177. package/dist/shared/index-B_SR7dGJ.cjs +1 -0
  178. package/dist/shared/index-BerXbfTu.mjs +253 -0
  179. package/dist/shared/index-BflaWNs2.cjs +1 -0
  180. package/dist/shared/index-BhgJxAHO.cjs +1 -0
  181. package/dist/shared/index-BiKe-5ke.cjs +1 -0
  182. package/dist/shared/index-BikJ___N.cjs +1 -0
  183. package/dist/shared/index-BjZlBHhd.mjs +129 -0
  184. package/dist/shared/index-Bk0SVo_S.cjs +1 -0
  185. package/dist/shared/index-BlC4k76M.cjs +1 -0
  186. package/dist/shared/index-BlRFiIMi.cjs +1 -0
  187. package/dist/shared/index-BlkrT9Gw.cjs +1 -0
  188. package/dist/shared/index-BmK0RFXS.cjs +1 -0
  189. package/dist/shared/index-BwHeigcB.cjs +1 -0
  190. package/dist/shared/index-BzVbwomQ.mjs +365 -0
  191. package/dist/shared/index-C0vnuFhn.cjs +1 -0
  192. package/dist/shared/index-C1__R9-C.mjs +371 -0
  193. package/dist/shared/index-C1fkmo0S.cjs +1 -0
  194. package/dist/shared/index-C9AEjhcH.mjs +160 -0
  195. package/dist/shared/index-C9Lf2bX3.mjs +295 -0
  196. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-C9n9zVss.mjs} +4 -3
  197. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-CBbKlfPG.mjs} +10 -9
  198. package/dist/shared/index-CC5n_6uk.mjs +205 -0
  199. package/dist/shared/index-CDczgvbL.cjs +1 -0
  200. package/dist/shared/index-CESgJwIg.mjs +328 -0
  201. package/dist/shared/index-CEt5qI00.mjs +857 -0
  202. package/dist/shared/index-CFBWO7n0.mjs +78 -0
  203. package/dist/shared/index-CFJz6vrN.mjs +47 -0
  204. package/dist/shared/{index-CXnL-0Kp.cjs → index-CGFTY4Fp.cjs} +1 -1
  205. package/dist/shared/index-CHkcP5-q.cjs +1 -0
  206. package/dist/shared/index-CIUWz2Hp.cjs +1 -0
  207. package/dist/shared/index-COAR6xjP.mjs +402 -0
  208. package/dist/shared/index-CP3-7cLC.mjs +105 -0
  209. package/dist/shared/index-CP7N-9VV.cjs +1 -0
  210. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CQRVbO-K.mjs} +20 -19
  211. package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-CTGLKLFg.mjs} +6 -5
  212. package/dist/shared/index-CWkXHOq7.cjs +1 -0
  213. package/dist/shared/index-CX-7EN8r.mjs +79 -0
  214. package/dist/shared/index-CXOF1C3t.mjs +84 -0
  215. package/dist/shared/index-CXeVLEcE.cjs +1 -0
  216. package/dist/shared/index-CXzBoO6N.cjs +1 -0
  217. package/dist/shared/index-C_vMHW_7.cjs +1 -0
  218. package/dist/shared/index-CcGYgKVf.mjs +446 -0
  219. package/dist/shared/index-CdqAvLtW.cjs +1 -0
  220. package/dist/shared/index-CfKXtmed.cjs +1 -0
  221. package/dist/shared/index-CfxDI3TR.mjs +284 -0
  222. package/dist/shared/index-Cgt_jiO8.cjs +1 -0
  223. package/dist/shared/index-CialZcU3.mjs +74 -0
  224. package/dist/shared/index-CjoH6lLx.cjs +1 -0
  225. package/dist/shared/index-CkXEXmTX.cjs +1 -0
  226. package/dist/shared/index-Cq0QWpNp.cjs +1 -0
  227. package/dist/shared/index-CtQ7TLzl.mjs +138 -0
  228. package/dist/shared/index-Ctcu-6T-.mjs +104 -0
  229. package/dist/shared/index-CvFL8RVZ.cjs +1 -0
  230. package/dist/shared/index-D-KJitUI.mjs +234 -0
  231. package/dist/shared/index-D-Se1DH6.cjs +1 -0
  232. package/dist/shared/index-D1SCfWlF.cjs +1 -0
  233. package/dist/shared/index-D2djzg5O.mjs +170 -0
  234. package/dist/shared/index-D6lq2cXm.cjs +1 -0
  235. package/dist/shared/index-DGGBR9IQ.cjs +1 -0
  236. package/dist/shared/index-DI5Xx4zU.mjs +740 -0
  237. package/dist/shared/index-DMfiLqWm.cjs +1 -0
  238. package/dist/shared/index-DN3FSxUk.cjs +1 -0
  239. package/dist/shared/index-DN5Y8eHV.mjs +197 -0
  240. package/dist/shared/index-DNkrf-d7.cjs +1 -0
  241. package/dist/shared/index-DREOpf4w.cjs +1 -0
  242. package/dist/shared/index-DWxTBo0t.cjs +1 -0
  243. package/dist/shared/index-DYRxgeIB.mjs +311 -0
  244. package/dist/shared/index-DYhS_2hH.cjs +1 -0
  245. package/dist/shared/index-DZ9ixuhw.cjs +1 -0
  246. package/dist/shared/index-DZfZB8LS.mjs +146 -0
  247. package/dist/shared/index-DalbvZMR.mjs +132 -0
  248. package/dist/shared/index-DbpA63pp.mjs +51 -0
  249. package/dist/shared/index-Dd3rOEzY.mjs +136 -0
  250. package/dist/shared/index-DdOHKkWW.mjs +52 -0
  251. package/dist/shared/index-DhN2XKVc.cjs +1 -0
  252. package/dist/shared/index-DiZtu6-f.mjs +239 -0
  253. package/dist/shared/index-DkObuzo1.cjs +1 -0
  254. package/dist/shared/index-DkXIyXp3.mjs +27 -0
  255. package/dist/shared/index-DmlIk2mW.cjs +1 -0
  256. package/dist/shared/index-Dv56njXo.cjs +1 -0
  257. package/dist/shared/index-DvLP2-p4.mjs +53 -0
  258. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-DxJnYlq4.mjs} +12 -11
  259. package/dist/shared/index-FSg27SoE.cjs +1 -0
  260. package/dist/shared/index-H0zceO6D.cjs +1 -0
  261. package/dist/shared/index-KFGhsuz_.mjs +63 -0
  262. package/dist/shared/index-KRMhlM-i.mjs +73 -0
  263. package/dist/shared/index-KvPH1usv.cjs +1 -0
  264. package/dist/shared/index-MaJdwWFj.cjs +1 -0
  265. package/dist/shared/index-NVs2UMip.cjs +1 -0
  266. package/dist/shared/index-OtL-aoXO.cjs +1 -0
  267. package/dist/shared/index-QHgVgpQU.mjs +67 -0
  268. package/dist/shared/index-R_lpFv9P.cjs +1 -0
  269. package/dist/shared/index-UyFdOJwl.mjs +157 -0
  270. package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-ZaBOgUd8.mjs} +17 -16
  271. package/dist/shared/index-_aPlj867.cjs +1 -0
  272. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-_llXjfm8.mjs} +4 -3
  273. package/dist/shared/index-aIBPfUAm.mjs +213 -0
  274. package/dist/shared/index-bR6Q3uaD.mjs +407 -0
  275. package/dist/shared/index-dM8FfZ_X.cjs +1 -0
  276. package/dist/shared/index-eIplwAX7.cjs +1 -0
  277. package/dist/shared/index-fEmIlZsO.cjs +1 -0
  278. package/dist/shared/index-frOfvcCH.mjs +307 -0
  279. package/dist/shared/index-iDsQyjN1.mjs +548 -0
  280. package/dist/shared/index-iGKTM26-.mjs +63 -0
  281. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs → index-iqem06ey.mjs} +12 -11
  282. package/dist/shared/index-mO9UiIQW.cjs +1 -0
  283. package/dist/shared/index-nYilZJM6.cjs +1 -0
  284. package/dist/shared/index-oZEfxmBH.cjs +1 -0
  285. package/dist/shared/index-oeKD9ezb.mjs +208 -0
  286. package/dist/shared/index-rPOiDeUU.cjs +1 -0
  287. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-tQgB7Kvd.mjs} +16 -15
  288. package/dist/shared/index-xCLpvAQ0.cjs +1 -0
  289. package/index.d.ts +1 -0
  290. package/package.json +3 -2
  291. package/qy-dialog/index.d.ts +6 -3
  292. package/dist/shared/index-5UAiwqdT.cjs +0 -1
  293. package/dist/shared/index-AvNvmJe5.cjs +0 -1
  294. package/dist/shared/index-B0CTzdRW.mjs +0 -149
  295. package/dist/shared/index-B1J7PQMl.mjs +0 -79
  296. package/dist/shared/index-B1gnVI8Y.mjs +0 -161
  297. package/dist/shared/index-B7j9BtSm.mjs +0 -233
  298. package/dist/shared/index-BAOV5iYx.mjs +0 -385
  299. package/dist/shared/index-BKdw4jD_.mjs +0 -142
  300. package/dist/shared/index-BN4A-O6P.mjs +0 -727
  301. package/dist/shared/index-BR7tIt2k.mjs +0 -211
  302. package/dist/shared/index-BVaIvVMi.mjs +0 -71
  303. package/dist/shared/index-BaRw7pWi.mjs +0 -156
  304. package/dist/shared/index-Bdlzmh8A.cjs +0 -1
  305. package/dist/shared/index-BgAP_K2E.cjs +0 -1
  306. package/dist/shared/index-Blgz8PJc.cjs +0 -1
  307. package/dist/shared/index-BqzKToOL.cjs +0 -1
  308. package/dist/shared/index-BsNtvE6i.cjs +0 -1
  309. package/dist/shared/index-BuVrLl5B.mjs +0 -90
  310. package/dist/shared/index-Bv1DrJ32.mjs +0 -71
  311. package/dist/shared/index-Bz9WjKdL.cjs +0 -1
  312. package/dist/shared/index-Bzr2RHi5.mjs +0 -293
  313. package/dist/shared/index-C50jpQ11.mjs +0 -295
  314. package/dist/shared/index-C6G9eVku.cjs +0 -1
  315. package/dist/shared/index-CB0v25oB.cjs +0 -1
  316. package/dist/shared/index-CGH2ROZV.mjs +0 -54
  317. package/dist/shared/index-CIXJwYI-.cjs +0 -1
  318. package/dist/shared/index-CKkanVur.cjs +0 -1
  319. package/dist/shared/index-CLvL8LAM.cjs +0 -1
  320. package/dist/shared/index-CN2mgT5V.cjs +0 -1
  321. package/dist/shared/index-CW4s627w.mjs +0 -107
  322. package/dist/shared/index-CXOCZlps.mjs +0 -222
  323. package/dist/shared/index-CZs0V4ze.cjs +0 -1
  324. package/dist/shared/index-Cqr-L0yd.mjs +0 -285
  325. package/dist/shared/index-Cu6yAwdj.mjs +0 -124
  326. package/dist/shared/index-CxTyKMEH.cjs +0 -1
  327. package/dist/shared/index-D5HS8M1P.cjs +0 -1
  328. package/dist/shared/index-D6QwZtYV.mjs +0 -56
  329. package/dist/shared/index-DCsun70c.cjs +0 -1
  330. package/dist/shared/index-DEzFHeJL.cjs +0 -1
  331. package/dist/shared/index-DY2IXvwl.cjs +0 -1
  332. package/dist/shared/index-DdGlwebp.mjs +0 -347
  333. package/dist/shared/index-DiN5vXXD.cjs +0 -1
  334. package/dist/shared/index-Duq5XZ5w.cjs +0 -1
  335. package/dist/shared/index-DvXzDAmi.mjs +0 -285
  336. package/dist/shared/index-DwHM9eYc.cjs +0 -1
  337. package/dist/shared/index-FZ5gl2au.cjs +0 -1
  338. package/dist/shared/index-O6K0DO_k.cjs +0 -1
  339. package/dist/shared/index-PM5yNugz.mjs +0 -573
  340. package/dist/shared/index-QN7-6GpS.mjs +0 -127
  341. package/dist/shared/index-VtM0GmfU.mjs +0 -361
  342. package/dist/shared/index-_Bagw0Pj.cjs +0 -1
  343. package/dist/shared/index-ykI9hKtc.mjs +0 -88
  344. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  345. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  346. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  347. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  349. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  355. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  356. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  357. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  358. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  359. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  360. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  361. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  363. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  364. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  365. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs +0 -1
  367. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +0 -40
  368. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  369. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  371. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  372. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs +0 -199
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +0 -1
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs +0 -108
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs +0 -331
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +0 -133
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +0 -1
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +0 -238
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +0 -63
  392. package/dist/shared/index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs +0 -98
  393. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +0 -1
  394. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +0 -413
  395. package/dist/shared/index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs +0 -1
  396. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +0 -142
  397. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +0 -1
  398. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs +0 -67
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +0 -1
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs +0 -286
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +0 -1
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs +0 -148
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs +0 -1
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs +0 -317
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +0 -219
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs +0 -1
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +0 -1
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +0 -176
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +0 -1
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs +0 -298
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs +0 -168
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs +0 -1
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs +0 -74
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs +0 -1
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs +0 -1
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-yci929so.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=t.defineComponent({name:"QyIframe",inheritAttrs:!1,__name:"index",props:{src:{type:String,required:!0},title:{type:String,required:!0},reloadKey:{type:[String,Number],default:void 0},loading:{type:String,default:"eager"},sandbox:{type:String,default:void 0},allow:{type:String,default:void 0},referrerPolicy:{type:String,default:void 0},allowFullscreen:Boolean},emits:["load","error"],setup(a,{expose:i,emit:e}){i();const r=a,o=e,l=t.useAttrs(),c=t.computed(()=>r.src.trim().length>0&&r.title.trim().length>0),d=t.computed(()=>Object.fromEntries(Object.entries(l).filter(([n])=>n==="class"||n==="style"||n==="id"||n==="role"||n==="tabindex"||n.startsWith("data-")||n.startsWith("aria-"))));function u(){o("load")}function f(){o("error")}const s={props:r,emit:o,attrs:l,shouldRender:c,safeAttrs:d,handleLoad:u,handleError:f};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),g=["src","title","loading","sandbox","allow","referrerpolicy","allowfullscreen"];function p(a,i,e,r,o,l){return r.shouldRender?(t.openBlock(),t.createElementBlock("iframe",t.mergeProps({key:e.reloadKey},r.safeAttrs,{class:"qy-iframe",src:e.src,title:e.title,loading:e.loading,sandbox:e.sandbox,allow:e.allow,referrerpolicy:e.referrerPolicy,allowfullscreen:e.allowFullscreen,onLoad:r.handleLoad,onError:r.handleError}),null,16,g)):t.createCommentVNode("v-if",!0)}const y=m._export_sfc(_,[["render",p],["__scopeId","data-v-0c58c565"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-iframe/index.vue"]]);exports.Iframe=y;
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),M=require("element-plus"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=l.defineComponent({name:"QyCascader",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Object,Array,null],required:!1},options:{type:Array,required:!1,default:()=>[]},props:{type:Object,required:!1,default:()=>({})},size:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},clearable:{type:Boolean,required:!1,default:!0},clearIcon:{type:null,required:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1},separator:{type:String,required:!1,default:" / "},showAllLevels:{type:Boolean,required:!1,default:!0},collapseTags:{type:Boolean,required:!1,default:!1},maxCollapseTags:{type:Number,required:!1,default:1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},maxCollapseTagsTooltipHeight:{type:[String,Number],required:!1},debounce:{type:Number,required:!1,default:300},beforeFilter:{type:Function,required:!1},placement:{type:String,required:!1},fallbackPlacements:{type:Array,required:!1},popperClass:{type:[String,Object,Array],required:!1},popperStyle:{type:[Boolean,null,String,Object,Array],required:!1,skipCheck:!0},teleported:{type:Boolean,required:!1,default:!0},effect:{type:String,required:!1},persistent:{type:Boolean,required:!1,default:!0},showCheckedStrategy:{type:String,required:!1},fitInputWidth:{type:[Boolean,Number],required:!1},tagType:{type:String,required:!1},tagEffect:{type:String,required:!1},validateEvent:{type:Boolean,required:!1,default:!0},emptyValues:{type:Array,required:!1},valueOnClear:{type:null,required:!1},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},emits:["update:modelValue","change","focus","blur","clear","visible-change","expand-change","remove-tag"],setup(i,{expose:g,emit:a}){const r=i,u=a,y=l.useAttrs(),d=l.ref(),c=l.computed(()=>Object.fromEntries(Object.entries(y).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),v=l.computed(()=>({...r.emptyValues!==void 0?{emptyValues:r.emptyValues}:{},...r.valueOnClear!==void 0?{valueOnClear:r.valueOnClear}:{}})),x=l.computed(()=>({...c.value,...v.value}));function p(e,t={}){return Object.freeze({uid:e.uid,level:e.level,value:e.value,label:e.label,pathValues:Object.freeze([...e.pathValues]),pathLabels:Object.freeze([...e.pathLabels]),data:e.data,root:e.root,isLeaf:t.isLeaf??e.isLeaf,isDisabled:t.isDisabled??e.isDisabled,checked:e.checked,indeterminate:e.indeterminate,loading:e.loading,loaded:e.loaded??!1})}function C(e,t){var h,T;const s=typeof t.leaf=="string"?t.leaf:"leaf",o=t.children??"children",n=(h=e.data)==null?void 0:h[s];if(typeof n=="boolean")return n;const f=Array.isArray(e.childrenData)?e.childrenData:(T=e.data)==null?void 0:T[o];return Array.isArray(f)&&f.length>0?!1:t.lazy?e.loaded===!0:!0}function m(e,t,s=new Set){var h;if(s.has(e))return!1;s.add(e);const o=typeof t.disabled=="string"?t.disabled:"disabled",n=!!((h=e.data)!=null&&h[o]),f=t.checkStrictly!==!0&&e.parent?m(e.parent,t,s):!1;return n||f}function b(e,t){return p(e,{isLeaf:C(e,t),isDisabled:m(e,t)})}const B=l.computed(()=>{const e=r.props??{},t={...e};return typeof e.disabled=="function"&&(t.disabled=(s,o)=>{var n;return((n=e.disabled)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.leaf=="function"&&(t.leaf=(s,o)=>{var n;return((n=e.leaf)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.lazyLoad=="function"&&(t.lazyLoad=(s,o,n)=>{var f;return(f=e.lazyLoad)==null?void 0:f.call(e,p(s),o,n)}),t}),z=l.computed(()=>r.filterMethod?(e,t)=>{var s;return((s=r.filterMethod)==null?void 0:s.call(r,p(e),t))??!1}:void 0);function A(e){return{...e,node:p(e.node)}}function L(e,t){return e.map(s=>{const o=p(s.node);return Object.freeze({uid:o.uid,value:o.value,label:o.label,pathValues:o.pathValues,pathLabels:o.pathLabels,data:o.data,text:s.text,hitState:s.hitState,closable:s.closable,remove:()=>t(s)})})}function O(e){u("update:modelValue",e)}function P(e){u("change",e)}function j(e){u("focus",e)}function E(e){u("blur",e)}function D(){u("clear")}function F(e){u("visible-change",e)}function N(e){u("expand-change",e)}function _(e){u("remove-tag",e)}function q(){var e;(e=d.value)==null||e.focus()}function S(){var e;(e=d.value)==null||e.blur()}function k(){var e,t;(t=(e=d.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!0)}function w(){var e,t;(t=(e=d.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!1)}g({focus:q,blur:S,open:k,close:w});const V={props:r,emit:u,attrs:y,cascaderRef:d,safeAttrs:c,emptyValueProps:v,adapterAttrs:x,toSnapshot:p,deriveCallbackLeafState:C,deriveCallbackDisabledState:m,toCallbackSnapshot:b,panelProps:B,adaptFilterMethod:z,adaptNodeSlotProps:A,adaptTags:L,handleUpdateModelValue:O,handleChange:P,handleFocus:j,handleBlur:E,handleClear:D,handleVisibleChange:F,handleExpandChange:N,handleRemoveTag:_,focus:q,blur:S,open:k,close:w,get ElCascader(){return M.ElCascader}};return Object.defineProperty(V,"__isScriptSetup",{enumerable:!1,value:!0}),V}});function W(i,g,a,r,u,y){return l.openBlock(),l.createBlock(r.ElCascader,l.mergeProps({ref:"cascaderRef"},r.adapterAttrs,{class:"qy-cascader","model-value":a.modelValue,options:a.options,props:r.panelProps,size:a.size,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,"clear-icon":a.clearIcon,filterable:a.filterable,"filter-method":r.adaptFilterMethod,separator:a.separator,"show-all-levels":a.showAllLevels,"collapse-tags":a.collapseTags,"max-collapse-tags":a.maxCollapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"max-collapse-tags-tooltip-height":a.maxCollapseTagsTooltipHeight,debounce:a.debounce,"before-filter":a.beforeFilter,placement:a.placement,"fallback-placements":a.fallbackPlacements,"popper-class":a.popperClass,"popper-style":a.popperStyle,teleported:a.teleported,effect:a.effect,persistent:a.persistent,"show-checked-strategy":a.showCheckedStrategy,"fit-input-width":a.fitInputWidth,"tag-type":a.tagType,"tag-effect":a.tagEffect,"validate-event":a.validateEvent,"virtual-scroll":a.virtualScroll,"item-size":a.itemSize,height:a.height,"onUpdate:modelValue":r.handleUpdateModelValue,onChange:r.handleChange,onFocus:r.handleFocus,onBlur:r.handleBlur,onClear:r.handleClear,onVisibleChange:r.handleVisibleChange,onExpandChange:r.handleExpandChange,onRemoveTag:r.handleRemoveTag}),l.createSlots({_:2},[i.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"prefix")]),key:"0"}:void 0,i.$slots.header?{name:"header",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"header")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"footer")]),key:"2"}:void 0,i.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"empty")]),key:"3"}:void 0,i.$slots.default?{name:"default",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps(r.adaptNodeSlotProps(d))))]),key:"4"}:void 0,i.$slots["suggestion-item"]?{name:"suggestion-item",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"suggestion-item",{item:r.toSnapshot(d.item)})]),key:"5"}:void 0,i.$slots.tag?{name:"tag",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"tag",{data:r.adaptTags(d.data,d.deleteTag),remove:c=>c==null?void 0:c.remove()})]),key:"6"}:void 0]),1040,["model-value","options","props","size","placeholder","disabled","clearable","clear-icon","filterable","filter-method","separator","show-all-levels","collapse-tags","max-collapse-tags","collapse-tags-tooltip","max-collapse-tags-tooltip-height","debounce","before-filter","placement","fallback-placements","popper-class","popper-style","teleported","effect","persistent","show-checked-strategy","fit-input-width","tag-type","tag-effect","validate-event","virtual-scroll","item-size","height"])}const H=R._export_sfc(I,[["render",W],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-cascader/index.vue"]]);exports.Cascader=H;
@@ -0,0 +1,197 @@
1
+ import { defineComponent as L, useAttrs as R, ref as x, computed as d, onMounted as T, onBeforeUnmount as H, nextTick as K, markRaw as W, toRaw as j, openBlock as l, createElementBlock as p, mergeProps as F, renderSlot as f, createElementVNode as y, normalizeProps as M, guardReactiveProps as Q, toDisplayString as D, withDirectives as U, normalizeStyle as X, Fragment as Y, renderList as G, normalizeClass as J, createBlock as Z, resolveDynamicComponent as $, createCommentVNode as ee, createTextVNode as O, vShow as te } from "vue";
2
+ import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ const ae = /* @__PURE__ */ L({
4
+ name: "QyDropdown",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ items: { type: Array, required: !1, default: () => [] },
9
+ disabled: { type: Boolean, required: !1, default: !1 },
10
+ placement: { type: String, required: !1, default: "bottom-end" },
11
+ trigger: { type: String, required: !1, default: "click" },
12
+ closeOnSelect: { type: Boolean, required: !1, default: !0 },
13
+ panelWidth: { type: [Number, String], required: !1 },
14
+ width: { type: [Number, String], required: !1 },
15
+ maxHeight: { type: [Number, String], required: !1 },
16
+ modelValue: { type: Boolean, required: !1, default: void 0 },
17
+ ariaLabel: { type: String, required: !1 }
18
+ },
19
+ emits: ["select", "open-change", "update:modelValue"],
20
+ setup(n, { expose: m, emit: g }) {
21
+ m();
22
+ const e = n, s = g, h = R(), r = x(null), u = x(!1), v = d(() => e.modelValue !== void 0), a = d(() => e.disabled ? !1 : v.value ? !!e.modelValue : u.value), B = d(() => e.items.filter((t) => !t.hidden)), w = d(() => e.panelWidth ?? e.width), E = d(() => [
23
+ `qy-dropdown--${e.placement}`,
24
+ {
25
+ "is-open": a.value,
26
+ "is-disabled": e.disabled
27
+ }
28
+ ]), I = d(() => ({
29
+ width: b(w.value),
30
+ maxHeight: b(e.maxHeight),
31
+ overflowX: "hidden",
32
+ overflowY: e.maxHeight ? "auto" : void 0
33
+ })), V = d(() => ({
34
+ class: [
35
+ "qy-dropdown__trigger",
36
+ {
37
+ "is-open": a.value,
38
+ "is-disabled": e.disabled
39
+ }
40
+ ],
41
+ type: "button",
42
+ disabled: e.disabled || void 0,
43
+ "aria-haspopup": "menu",
44
+ "aria-expanded": a.value ? "true" : "false",
45
+ "aria-label": e.ariaLabel || void 0,
46
+ onClick: k,
47
+ onContextmenu: q,
48
+ onKeydown: C
49
+ }));
50
+ function b(t) {
51
+ return typeof t == "number" ? `${t}px` : t;
52
+ }
53
+ function o(t) {
54
+ e.disabled || t === a.value || (v.value || (u.value = t), s("update:modelValue", t), s("open-change", t));
55
+ }
56
+ function k(t) {
57
+ e.trigger !== "click" || e.disabled || (t.stopPropagation(), o(!a.value));
58
+ }
59
+ function q(t) {
60
+ e.trigger !== "contextmenu" || e.disabled || (t.preventDefault(), t.stopPropagation(), o(!0));
61
+ }
62
+ function C(t) {
63
+ e.disabled || e.trigger === "click" && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o(!a.value));
64
+ }
65
+ async function z(t) {
66
+ var i, c;
67
+ t.key !== "Escape" || !a.value || (t.preventDefault(), t.stopPropagation(), o(!1), await K(), a.value || (c = (i = r.value) == null ? void 0 : i.querySelector(".qy-dropdown__trigger")) == null || c.focus());
68
+ }
69
+ function N(t, i) {
70
+ if (t.disabled) {
71
+ i.preventDefault();
72
+ return;
73
+ }
74
+ s("select", t), e.closeOnSelect && o(!1);
75
+ }
76
+ function P(t) {
77
+ return {
78
+ "is-disabled": t.disabled,
79
+ "is-danger": t.danger,
80
+ "is-active": t.active,
81
+ "is-divided": t.divided
82
+ };
83
+ }
84
+ function A(t) {
85
+ return t ? W(j(t)) : void 0;
86
+ }
87
+ function _(t) {
88
+ var c;
89
+ const i = t.target;
90
+ !a.value || !(i instanceof Node) || (c = r.value) != null && c.contains(i) || o(!1);
91
+ }
92
+ T(() => {
93
+ document.addEventListener("click", _);
94
+ }), H(() => {
95
+ document.removeEventListener("click", _);
96
+ });
97
+ const S = { props: e, emit: s, attrs: h, rootRef: r, innerOpen: u, isControlled: v, isOpen: a, visibleItems: B, panelWidth: w, dropdownClasses: E, panelStyle: I, triggerAttrs: V, normalizeSize: b, requestOpen: o, handleTriggerClick: k, handleTriggerContextmenu: q, handleTriggerKeydown: C, handleEscape: z, handleItemClick: N, itemClasses: P, normalizeIcon: A, handleDocumentClick: _ };
98
+ return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
99
+ }
100
+ }), ne = { class: "qy-dropdown__trigger-label" }, oe = ["aria-hidden"], ie = ["disabled", "title", "data-qy-dropdown-key", "data-danger", "data-active", "data-disabled", "aria-disabled", "onClick"], de = {
101
+ key: 0,
102
+ class: "qy-dropdown__item-icon",
103
+ "aria-hidden": "true"
104
+ }, le = { class: "qy-dropdown__item-label" }, se = {
105
+ key: 1,
106
+ class: "qy-dropdown__empty"
107
+ };
108
+ function ue(n, m, g, e, s, h) {
109
+ return l(), p(
110
+ "div",
111
+ F({ ref: "rootRef" }, e.attrs, {
112
+ class: ["qy-dropdown", e.dropdownClasses],
113
+ onKeydown: e.handleEscape
114
+ }),
115
+ [
116
+ f(n.$slots, "trigger", {
117
+ open: e.isOpen,
118
+ disabled: g.disabled,
119
+ attrs: e.triggerAttrs
120
+ }, () => [
121
+ y(
122
+ "button",
123
+ M(Q(e.triggerAttrs)),
124
+ [
125
+ y(
126
+ "span",
127
+ ne,
128
+ D(g.ariaLabel || "更多"),
129
+ 1
130
+ /* TEXT */
131
+ )
132
+ ],
133
+ 16
134
+ /* FULL_PROPS */
135
+ )
136
+ ], !0),
137
+ U(y("div", {
138
+ class: "qy-dropdown__panel",
139
+ style: X(e.panelStyle),
140
+ "aria-hidden": e.isOpen ? void 0 : "true",
141
+ role: "menu"
142
+ }, [
143
+ f(n.$slots, "header", {}, void 0, !0),
144
+ e.visibleItems.length > 0 ? (l(!0), p(
145
+ Y,
146
+ { key: 0 },
147
+ G(e.visibleItems, (r) => (l(), p("button", {
148
+ key: r.key,
149
+ type: "button",
150
+ class: J(["qy-dropdown__item", e.itemClasses(r)]),
151
+ disabled: r.disabled,
152
+ title: r.title,
153
+ "data-qy-dropdown-key": r.key,
154
+ "data-danger": r.danger ? "true" : void 0,
155
+ "data-active": r.active ? "true" : void 0,
156
+ "data-disabled": r.disabled ? "true" : void 0,
157
+ "aria-disabled": r.disabled ? "true" : void 0,
158
+ role: "menuitem",
159
+ onClick: (u) => e.handleItemClick(r, u)
160
+ }, [
161
+ r.icon ? (l(), p("span", de, [
162
+ (l(), Z($(e.normalizeIcon(r.icon))))
163
+ ])) : ee("v-if", !0),
164
+ y("span", le, [
165
+ f(n.$slots, "item", { item: r }, () => [
166
+ O(
167
+ D(r.label),
168
+ 1
169
+ /* TEXT */
170
+ )
171
+ ], !0)
172
+ ])
173
+ ], 10, ie))),
174
+ 128
175
+ /* KEYED_FRAGMENT */
176
+ )) : (l(), p("div", se, [
177
+ f(n.$slots, "empty", {}, () => [
178
+ m[0] || (m[0] = O(
179
+ "暂无数据",
180
+ -1
181
+ /* CACHED */
182
+ ))
183
+ ], !0)
184
+ ])),
185
+ f(n.$slots, "footer", {}, void 0, !0)
186
+ ], 12, oe), [
187
+ [te, e.isOpen]
188
+ ])
189
+ ],
190
+ 16
191
+ /* FULL_PROPS */
192
+ );
193
+ }
194
+ const fe = /* @__PURE__ */ re(ae, [["render", ue], ["__scopeId", "data-v-5619211c"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-dropdown/index.vue"]]);
195
+ export {
196
+ fe as D
197
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),F=require("element-plus"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=r.defineComponent({name:"QyAutocomplete",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,null],required:!1,default:""},options:{type:[Array,Object],required:!1,default:()=>[]},valueKey:{type:String,required:!1,default:"value"},labelKey:{type:String,required:!1,default:"label"},placeholder:{type:String,required:!1,default:"请输入"},disabled:{type:Boolean,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!0},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:String,required:!1,default:"body"},popperClass:{type:String,required:!1,default:""},filterMethod:{type:Function,required:!1,default:void 0},fetchSuggestions:{type:Function,required:!1}},emits:["update:modelValue","input","change","select","focus","blur","clear"],setup(d,{expose:p,emit:u}){const l=d,n=u,m=r.useAttrs(),a=r.ref(null);let s=0;r.onBeforeUnmount(()=>{s+=1});const v=r.computed(()=>["qy-autocomplete__popper",l.popperClass].filter(Boolean).join(" ")),h=r.computed(()=>{const e=r.unref(l.options);return(Array.isArray(e)?e:r.unref(e==null?void 0:e.value)||[]).map(t=>({...t,value:(t==null?void 0:t[l.valueKey])??(t==null?void 0:t.value)??(t==null?void 0:t[l.labelKey])??(t==null?void 0:t.label)??""}))});function y(e,o){const t=String(e??""),P=++s;if(l.fetchSuggestions){let i=!1;const f=c=>{i||P!==s||(i=!0,o(c))};try{const c=l.fetchSuggestions(t,f);Array.isArray(c)?f(c):c&&Promise.resolve(c).then(b=>{Array.isArray(b)&&f(b)},()=>f([]))}catch{f([])}return}const z=h.value.filter(i=>l.filterMethod?l.filterMethod(t,i):t?String(i.value??"").includes(t):!0);o(z)}function _(e){n("update:modelValue",e)}function A(e){n("input",e)}function C(e){n("change",e)}function B(e){n("select",e)}function V(e){n("focus",e)}function I(e){n("blur",e)}function x(){s+=1,n("clear")}function g(){var e,o;(o=(e=a.value)==null?void 0:e.focus)==null||o.call(e)}function q(){var e,o;(o=(e=a.value)==null?void 0:e.blur)==null||o.call(e)}p({querySearch:y,focus:g,blur:q});const S={props:l,emit:n,attrs:m,autocompleteRef:a,get requestId(){return s},set requestId(e){s=e},mergedPopperClass:v,normalizedOptions:h,querySearch:y,handleUpdateModelValue:_,handleInput:A,handleChange:C,handleSelect:B,handleFocus:V,handleBlur:I,handleClear:x,focus:g,blur:q,get ElAutocomplete(){return F.ElAutocomplete}};return Object.defineProperty(S,"__isScriptSetup",{enumerable:!1,value:!0}),S}});function K(d,p,u,l,n,m){return r.openBlock(),r.createBlock(l.ElAutocomplete,r.mergeProps({ref:"autocompleteRef"},l.attrs,{"model-value":u.modelValue,"fetch-suggestions":l.querySearch,placeholder:u.placeholder,disabled:u.disabled,clearable:u.clearable,size:u.size,teleported:u.teleported,"append-to":u.appendTo,"popper-class":l.mergedPopperClass,"onUpdate:modelValue":l.handleUpdateModelValue,onInput:l.handleInput,onChange:l.handleChange,onSelect:l.handleSelect,onFocus:l.handleFocus,onBlur:l.handleBlur,onClear:l.handleClear}),r.createSlots({_:2},[d.$slots.default?{name:"default",fn:r.withCtx(({item:a})=>[r.renderSlot(d.$slots,"default",{item:a})]),key:"0"}:void 0,r.renderList(["prefix","suffix","prepend","append"].filter(a=>d.$slots[a]),a=>({name:a,fn:r.withCtx(()=>[r.renderSlot(d.$slots,a)])}))]),1040,["model-value","placeholder","disabled","clearable","size","teleported","append-to","popper-class"])}const U=M._export_sfc(k,[["render",K],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-autocomplete/index.vue"]]);exports.Autocomplete=U;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),b=require("element-plus"),S=require("./index-BlkrT9Gw.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B=r.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,null],required:!1,default:void 0},options:{type:Array,required:!1,default:()=>[]},labelKey:{type:String,required:!1,default:"label"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},validateEvent:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:void 0},size:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},type:{type:String,required:!1,default:"radio"},border:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change"],setup(o,{expose:u,emit:s}){const a=o,d=s,i=r.useAttrs(),t=r.computed(()=>Object.fromEntries(Object.entries(i).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=r.ref(null),v=r.computed(()=>a.type==="button"?b.ElRadioButton:S.Radio),y=r.computed(()=>a.options.map(e=>{const l=e[a.labelKey],m=e[a.valueKey],R=p(m)?m:e.value??e.label??"";return{raw:e,label:String(l??e.label??e.value??""),value:R,disabled:!!e[a.disabledKey]}}));function p(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function g(e){const l={modelValue:a.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled||void 0,size:a.size,name:a.name};return a.type==="button"?l:{...l,border:a.border}}function _(e,l){return`${String(e.value??e.label)}-${l}`}function q(e){d("update:modelValue",e)}function h(e){d("change",e)}function f(){return n.value}u({getRadioGroupInstance:f});const c={props:a,emit:d,attrs:i,safeAttrs:t,radioGroupRef:n,radioComponent:v,normalizedOptions:y,isRadioValue:p,getRadioProps:g,getOptionKey:_,handleUpdateModelValue:q,handleChange:h,getRadioGroupInstance:f,get ElRadioGroup(){return b.ElRadioGroup}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function C(o,u,s,a,d,i){return r.openBlock(),r.createBlock(a.ElRadioGroup,r.mergeProps({ref:"radioGroupRef"},a.safeAttrs,{"model-value":a.props.modelValue,disabled:a.props.disabled,"validate-event":a.props.validateEvent,size:a.props.size,name:a.props.name,"onUpdate:modelValue":a.handleUpdateModelValue,onChange:a.handleChange}),{default:r.withCtx(()=>[o.$slots.default?r.renderSlot(o.$slots,"default",{},void 0,void 0,0):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(a.normalizedOptions,(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.radioComponent),r.mergeProps({key:a.getOptionKey(t,n)},{ref_for:!0},a.getRadioProps(t)),{default:r.withCtx(()=>[r.renderSlot(o.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[r.createTextVNode(r.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","validate-event","size","name"])}const G=V._export_sfc(B,[["render",C],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-radio-group/index.vue"]]);exports.RadioGroup=G;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),N=require("./index-eIplwAX7.cjs"),z=require("./index-DmlIk2mW.cjs"),L=require("@vueuse/core"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["fullscreenchange","webkitfullscreenchange"],R=["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],U=["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"];function V(n,r,i){const e=C(),a=t.ref(null),s=t.ref(!1),v=t.ref(!1);let u=null,p=!1;const b=t.computed(()=>_(n.value)),S=t.computed(()=>(a.value||b.value)??void 0),g=L.useFullscreen(S),y=t.ref(!1);function m(){y.value=I(a.value||b.value)}function d(){if(p)return;const l=E(e),o=a.value||b.value,c=!!(l&&l===o);c?a.value=l:(!l||l!==a.value)&&(a.value=null),m(),c!==s.value&&(s.value=c,i.onChange(c))}L.useEventListener(e,O,d),t.watch(n,d,{flush:"post"}),d();function F(){if(r.value||s.value)return Promise.resolve(!1);if(u)return u;const l=_(n.value);return l?I(l)?(a.value=l,m(),q(async()=>{try{return await x(l),d(),s.value&&E(e)===l}catch{return a.value=null,d(),f("enter","request-rejected","The browser rejected the fullscreen request.")}})):Promise.resolve(f("enter","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(f("enter","target-unavailable","Fullscreen target is unavailable."))}function h(){if(r.value||!s.value)return Promise.resolve(!1);if(u)return u;const l=a.value||_(n.value);return l?I(l)?q(async()=>{try{return await P(l),d(),!s.value&&E(e)!==l}catch{return f("exit","request-rejected","The browser rejected the fullscreen request.")}}):Promise.resolve(f("exit","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(f("exit","target-unavailable","Fullscreen target is unavailable."))}function k(){return u||(s.value?h():F())}function q(l){v.value=!0;const o=l().finally(()=>{v.value=!1,u=null});return u=o,o}function f(l,o,c){const w=Object.freeze({action:l,code:o,message:c});return i.onError(w),!1}async function x(l){const o=Q(l);if(o==="requestFullscreen"){await l.requestFullscreen();return}if(g.isSupported.value){await g.enter();return}if(o){await T(l,o);return}throw new Error("Fullscreen request is unavailable.")}async function P(l){var w;const o=e,c=j(o,l);if(c==="exitFullscreen"){await((w=o==null?void 0:o.exitFullscreen)==null?void 0:w.call(o));return}if(c){await T(o,c);return}await g.exit()}return t.onBeforeUnmount(()=>{p=!0}),{isFullscreen:s,isSupported:y,pending:v,enter:F,exit:h,toggle:k}}function C(){return typeof document>"u"?void 0:document}function _(n){var r;return n===null?null:n!==void 0?n:((r=C())==null?void 0:r.documentElement)||null}function E(n){return(n==null?void 0:n.fullscreenElement)||(n==null?void 0:n.webkitFullscreenElement)||null}function I(n){if(!n||n===null)return!1;const r=C();return(r==null?void 0:r.fullscreenEnabled)!==!0?!1:!!(Q(n)&&j(r,n))}function Q(n){return R.find(r=>B(n,r))}function j(n,r){return U.find(i=>B(n,i)||B(r,i))}async function T(n,r){const i=n&&n[r];if(typeof i!="function")throw new Error("Fullscreen method is unavailable.");await i.call(n)}function B(n,r){return typeof(n==null?void 0:n[r])=="function"}const Y=t.defineComponent({name:"QyFullscreen",inheritAttrs:!1,__name:"index",props:{target:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:"default"},enterLabel:{type:String,required:!1,default:"进入全屏"},exitLabel:{type:String,required:!1,default:"退出全屏"},enterIcon:{type:[String,Number],required:!1,default:"fullscreen"},exitIcon:{type:[String,Number],required:!1,default:"exit-fullscreen"}},emits:["change","error"],setup(n,{expose:r,emit:i}){const e=n,a=i,s=t.useSlots(),v=t.inject(z.QY_ICON_REGISTRY_KEY,null),u=V(t.toRef(e,"target"),t.toRef(e,"disabled"),{onChange:x=>a("change",x),onError:x=>a("error",x)}),p=u.isFullscreen,b=u.pending,S=t.computed(()=>p.value?e.exitLabel:e.enterLabel),g=t.computed(()=>p.value?e.exitIcon:e.enterIcon),y=t.computed(()=>p.value?"exit-icon":"enter-icon"),m=t.computed(()=>!!s[y.value]),d=t.computed(()=>v==null?void 0:v.resolve(g.value)),F=t.computed(()=>m.value||!!d.value),h=t.computed(()=>({small:"sm",default:"md",large:"lg"})[e.size]),k=t.computed(()=>e.disabled||!u.isSupported.value||b.value);function q(){u.toggle()}r({enter:u.enter,exit:u.exit,toggle:u.toggle});const f={props:e,emit:a,slots:s,registry:v,controller:u,isFullscreen:p,pending:b,currentLabel:S,activeIconName:g,activeIconSlot:y,hasCustomIcon:m,registeredIcon:d,showIcon:F,mappedSize:h,buttonDisabled:k,handleClick:q,QyButton:N.Button,QyIcon:z.Icon};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function A(n,r,i,e,a,s){return e.showIcon?(t.openBlock(),t.createBlock(e.QyButton,{key:0,class:"qy-fullscreen",size:e.mappedSize,disabled:e.buttonDisabled,loading:e.pending,active:e.isFullscreen,"icon-only":!0,"aria-label":e.currentLabel,"aria-pressed":e.isFullscreen?"true":"false",title:e.currentLabel,onClick:e.handleClick},{prefix:t.withCtx(()=>[e.hasCustomIcon?t.renderSlot(n.$slots,e.activeIconSlot,{},void 0,!0,0):(t.openBlock(),t.createBlock(e.QyIcon,{key:1,name:e.activeIconName},null,8,["name"]))]),_:3},8,["size","disabled","loading","active","aria-label","aria-pressed","title"])):(t.openBlock(),t.createBlock(e.QyButton,{key:1,class:"qy-fullscreen",size:e.mappedSize,disabled:e.buttonDisabled,loading:e.pending,active:e.isFullscreen,"icon-only":!1,"aria-label":e.currentLabel,"aria-pressed":e.isFullscreen?"true":"false",title:e.currentLabel,onClick:e.handleClick},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.currentLabel),1)]),_:1},8,["size","disabled","loading","active","aria-label","aria-pressed","title"]))}const G=M._export_sfc(Y,[["render",A],["__scopeId","data-v-9cd78f22"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-fullscreen/index.vue"]]);exports.Fullscreen=G;
@@ -0,0 +1,311 @@
1
+ import { defineComponent as T, useAttrs as W, useSlots as B, inject as D, computed as d, markRaw as V, toRaw as F, ref as Y, watchEffect as q, openBlock as I, createElementBlock as E, mergeProps as Z, createBlock as x, resolveDynamicComponent as A, createElementVNode as G, normalizeClass as H, renderSlot as J, normalizeProps as U, guardReactiveProps as X, createCommentVNode as ee } from "vue";
2
+ import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ const C = Symbol("QyIconRegistry"), _ = /* @__PURE__ */ new WeakMap();
4
+ function K(e) {
5
+ const r = [], o = /* @__PURE__ */ new Map();
6
+ for (const i of (e == null ? void 0 : e.icons) ?? []) {
7
+ const s = w(i == null ? void 0 : i.name);
8
+ if (!s)
9
+ throw new Error("QyIcon definition name must not be empty.");
10
+ const f = h(s);
11
+ if (o.has(f))
12
+ throw new Error(`Duplicate icon name "${s}".`);
13
+ const c = te(i, s);
14
+ r.push(c), o.set(f, c);
15
+ }
16
+ const t = [], m = /* @__PURE__ */ new Map();
17
+ for (const i of P(e == null ? void 0 : e.aliases)) {
18
+ const s = w(i.name), f = w(i.target), c = h(s), p = h(f);
19
+ if (!s)
20
+ throw new Error("QyIcon alias name must not be empty.");
21
+ if (!f)
22
+ throw new Error(`QyIcon alias "${s}" target must not be empty.`);
23
+ if (o.has(c))
24
+ throw new Error(`Icon alias "${s}" conflicts with a canonical icon name.`);
25
+ if (m.has(c))
26
+ throw new Error(`Duplicate icon alias "${s}".`);
27
+ const v = o.get(p);
28
+ if (!v)
29
+ throw new Error(`Icon alias "${s}" target "${f}" not found.`);
30
+ m.set(c, h(v.name)), t.push(Object.freeze({ name: s, target: v.name }));
31
+ }
32
+ let a = Object.freeze({
33
+ definitions: Object.freeze(r),
34
+ aliases: Object.freeze(t),
35
+ byName: o,
36
+ aliasTargets: m
37
+ }), y, l = !1;
38
+ const g = () => {
39
+ if (!e.loader) return y ?? (y = Promise.resolve());
40
+ l = !1;
41
+ let i;
42
+ try {
43
+ i = e.loader();
44
+ } catch (s) {
45
+ i = Promise.reject(s);
46
+ }
47
+ return y = Promise.resolve(i).then((s) => {
48
+ let f;
49
+ try {
50
+ f = K({
51
+ icons: [...a.definitions, ...s.icons],
52
+ aliases: [...a.aliases, ...P(s.aliases)]
53
+ });
54
+ } catch (c) {
55
+ const p = c instanceof Error ? c.message : String(c);
56
+ throw new Error(`Icon registry load conflict: ${p}`);
57
+ }
58
+ a = _.get(f), _.set(b, a);
59
+ }).catch((s) => {
60
+ throw l = !0, s;
61
+ }), y;
62
+ }, b = Object.freeze({
63
+ resolve(i) {
64
+ const s = h(w(i)), f = a.aliasTargets.get(s) ?? s, c = a.byName.get(f);
65
+ return c ? R(c) : void 0;
66
+ },
67
+ has(i) {
68
+ const s = h(w(i));
69
+ return a.byName.has(a.aliasTargets.get(s) ?? s);
70
+ },
71
+ list() {
72
+ return Object.freeze(a.definitions.map(R));
73
+ },
74
+ load() {
75
+ return y ?? g();
76
+ },
77
+ retry() {
78
+ return l ? g() : Promise.reject(new Error("QyIcon registry retry is only available after a failed load."));
79
+ }
80
+ });
81
+ return _.set(b, a), b;
82
+ }
83
+ function me(...e) {
84
+ const r = [], o = [];
85
+ for (const t of e) {
86
+ const m = _.get(t);
87
+ if (!m)
88
+ throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");
89
+ r.push(...m.definitions), o.push(...m.aliases);
90
+ }
91
+ try {
92
+ return K({ icons: r, aliases: o });
93
+ } catch (t) {
94
+ const m = t instanceof Error ? t.message : String(t);
95
+ throw new Error(`Icon registry merge conflict: ${m}`);
96
+ }
97
+ }
98
+ function de(e) {
99
+ if (!_.has(e))
100
+ throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");
101
+ return Object.freeze({
102
+ install(r) {
103
+ r.provide(C, e);
104
+ }
105
+ });
106
+ }
107
+ function w(e) {
108
+ const r = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
109
+ if (!r) return "";
110
+ const o = /^#icon-(.+)$/i.exec(r);
111
+ if (o) return o[1].trim();
112
+ const t = /^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);
113
+ return t ? `iconify:${t[1]}:${t[2]}` : r;
114
+ }
115
+ function h(e) {
116
+ return e.toLocaleLowerCase();
117
+ }
118
+ function P(e) {
119
+ return e ? Array.isArray(e) ? [...e] : Object.entries(e).map(([r, o]) => ({ name: r, target: o })) : [];
120
+ }
121
+ function te(e, r) {
122
+ const o = {
123
+ ...e.label === void 0 ? {} : { label: ne(e.label, r) },
124
+ ...e.keywords === void 0 ? {} : { keywords: oe(e.keywords, r) }
125
+ };
126
+ switch (e.source) {
127
+ case "symbol":
128
+ return S({
129
+ name: r,
130
+ source: "symbol",
131
+ value: k("symbol", e.value, r),
132
+ ...o
133
+ });
134
+ case "component":
135
+ return S({
136
+ name: r,
137
+ source: "component",
138
+ value: k("component", e.value, r),
139
+ ...o
140
+ });
141
+ case "class":
142
+ return S({
143
+ name: r,
144
+ source: "class",
145
+ value: k("class", e.value, r),
146
+ ...o
147
+ });
148
+ default:
149
+ throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`);
150
+ }
151
+ }
152
+ function k(e, r, o) {
153
+ if (e === "symbol") {
154
+ if (typeof r != "string" || !/^#[^\s#]+$/.test(r))
155
+ throw new Error(`QyIcon symbol "${o}" must be a same-document #fragment.`);
156
+ return r;
157
+ }
158
+ if (e === "component") {
159
+ if (typeof r != "object" && typeof r != "function" || r === null)
160
+ throw new Error(`QyIcon component "${o}" must be a Vue component.`);
161
+ return r;
162
+ }
163
+ if (e !== "class")
164
+ throw new Error(`QyIcon definition "${o}" has unsupported source "${String(e)}".`);
165
+ if (typeof r != "string" || !r.trim() || !/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(r.trim()))
166
+ throw new Error(`QyIcon class "${o}" must be a trusted static class string.`);
167
+ return r.trim();
168
+ }
169
+ function ne(e, r) {
170
+ if (typeof e != "string")
171
+ throw new Error(`QyIcon label "${r}" must be a string.`);
172
+ return e;
173
+ }
174
+ function oe(e, r) {
175
+ if (!Array.isArray(e) || e.some((o) => typeof o != "string"))
176
+ throw new Error(`QyIcon keywords "${r}" must be strings.`);
177
+ return Object.freeze([...e]);
178
+ }
179
+ function S(e) {
180
+ return e.keywords && !Object.isFrozen(e.keywords) && (e = { ...e, keywords: Object.freeze([...e.keywords]) }), Object.freeze(e);
181
+ }
182
+ function R(e) {
183
+ return S({
184
+ ...e,
185
+ ...e.keywords ? { keywords: [...e.keywords] } : {}
186
+ });
187
+ }
188
+ const z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ T({
189
+ name: "QyIcon",
190
+ inheritAttrs: !1,
191
+ __name: "index",
192
+ props: {
193
+ name: { type: [String, Number], required: !1 },
194
+ icon: { type: null, required: !1 },
195
+ size: { type: [Number, String], required: !1, default: "1em" },
196
+ color: { type: String, required: !1, default: "currentColor" },
197
+ spin: { type: Boolean, required: !1, default: !1 },
198
+ label: { type: String, required: !1 }
199
+ },
200
+ setup(e, { expose: r }) {
201
+ r();
202
+ const o = e, t = W(), m = B(), a = D(C, null), y = d(
203
+ () => o.icon ? V(F(o.icon)) : void 0
204
+ ), l = d(
205
+ () => o.name === void 0 || o.name === null ? "" : w(o.name)
206
+ ), g = d(() => {
207
+ if (!(o.icon || !a || !l.value))
208
+ return a.resolve(l.value);
209
+ }), b = Y(null), i = d(() => !!(!o.icon && l.value && !g.value)), s = d(() => {
210
+ const n = typeof o.label == "string" ? o.label.trim() : "";
211
+ if (n) return n;
212
+ const u = t["aria-label"];
213
+ return N(u) ? String(u) : "";
214
+ }), f = d(() => s.value ? "img" : t.role), c = d(() => j(o.size)), p = d(() => ({
215
+ width: c.value,
216
+ height: c.value,
217
+ fontSize: c.value,
218
+ color: o.color || "currentColor"
219
+ })), v = d(() => {
220
+ const n = {};
221
+ for (const [u, M] of Object.entries(t))
222
+ O(u) && (n[u] = M);
223
+ return n;
224
+ }), $ = d(() => Object.freeze({ name: l.value }));
225
+ q(() => {
226
+ const n = g.value;
227
+ b.value && (n == null ? void 0 : n.source) === "symbol" && (b.value.setAttributeNS(
228
+ "http://www.w3.org/1999/xlink",
229
+ "xlink:href",
230
+ n.value
231
+ ), b.value.setAttribute("xlink:href", n.value));
232
+ }), q(() => {
233
+ if (o.icon) {
234
+ l.value && console.warn("QyIcon received both icon and name; the direct icon takes precedence.");
235
+ return;
236
+ }
237
+ const n = l.value;
238
+ if (!(!n || !i.value)) {
239
+ if (a) {
240
+ const u = z.get(a) || /* @__PURE__ */ new Set();
241
+ if (u.has(n.toLocaleLowerCase())) return;
242
+ u.add(n.toLocaleLowerCase()), z.set(a, u);
243
+ } else {
244
+ const u = n.toLocaleLowerCase();
245
+ if (Q.has(u)) return;
246
+ Q.add(u);
247
+ }
248
+ console.warn(`QyIcon icon "${n}" was not found in the current app registry.`);
249
+ }
250
+ });
251
+ function j(n) {
252
+ return typeof n == "number" ? Number.isFinite(n) && n > 0 ? `${n}px` : "1em" : n.trim() || "1em";
253
+ }
254
+ function N(n) {
255
+ return typeof n == "string" ? n.trim().length > 0 : n != null && n !== !1;
256
+ }
257
+ function O(n) {
258
+ return n !== "class" && n !== "style" && n !== "role" && n !== "aria-label" && n !== "aria-hidden" && n !== "data-qy-icon-missing" && (n === "id" || n === "title" || n.startsWith("data-") || n.startsWith("aria-"));
259
+ }
260
+ const L = { missingWarningsByRegistry: z, missingWarningsWithoutRegistry: Q, props: o, attrs: t, slots: m, registry: a, directIcon: y, normalizedName: l, definition: g, symbolElement: b, isMissing: i, accessibleLabel: s, rootRole: f, iconSize: c, iconStyle: p, safeAttrs: v, fallbackSlotProps: $, normalizeSize: j, hasTextValue: N, isSafeAttr: O };
261
+ return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
262
+ }
263
+ }), ae = ["role", "aria-label", "aria-hidden", "data-qy-icon-missing"], ie = {
264
+ key: 1,
265
+ "aria-hidden": "true",
266
+ focusable: "false"
267
+ }, ce = ["href", "xlink:href"];
268
+ function le(e, r, o, t, m, a) {
269
+ var y, l, g;
270
+ return I(), E("span", Z(t.safeAttrs, {
271
+ class: ["qy-icon", [t.attrs.class, { "is-spin": t.props.spin }]],
272
+ style: [t.attrs.style, t.iconStyle],
273
+ role: t.rootRole,
274
+ "aria-label": t.accessibleLabel || void 0,
275
+ "aria-hidden": t.accessibleLabel ? void 0 : "true",
276
+ "data-qy-icon-missing": t.isMissing ? t.normalizedName : void 0
277
+ }), [
278
+ t.directIcon ? (I(), x(A(t.directIcon), {
279
+ key: 0,
280
+ "aria-hidden": "true"
281
+ })) : ((y = t.definition) == null ? void 0 : y.source) === "symbol" ? (I(), E("svg", ie, [
282
+ G("use", {
283
+ ref: "symbolElement",
284
+ href: t.definition.value,
285
+ "xlink:href": t.definition.value
286
+ }, null, 8, ce)
287
+ ])) : ((l = t.definition) == null ? void 0 : l.source) === "component" ? (I(), x(A(t.definition.value), {
288
+ key: 2,
289
+ "aria-hidden": "true"
290
+ })) : ((g = t.definition) == null ? void 0 : g.source) === "class" ? (I(), E(
291
+ "span",
292
+ {
293
+ key: 3,
294
+ class: H(["qy-icon__class", t.definition.value]),
295
+ "aria-hidden": "true"
296
+ },
297
+ null,
298
+ 2
299
+ /* CLASS */
300
+ )) : t.isMissing && t.slots.fallback ? J(e.$slots, "fallback", U(X(t.fallbackSlotProps)), void 0, !0, 4) : ee("v-if", !0)
301
+ ], 16, ae);
302
+ }
303
+ const ye = /* @__PURE__ */ re(se, [["render", le], ["__scopeId", "data-v-2acb0327"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-icon/index.vue"]]);
304
+ export {
305
+ ye as I,
306
+ C as Q,
307
+ K as a,
308
+ de as c,
309
+ me as m,
310
+ w as n
311
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),d=require("element-plus"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),p=t.defineComponent({name:"QyDivider",inheritAttrs:!1,__name:"index",props:{direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},borderStyle:{type:String,default:"solid"}},setup(i,{expose:o}){o();const s=i,e=t.useAttrs(),c=t.computed(()=>Object.fromEntries(Object.entries(e).filter(([r])=>r==="class"||r==="style"||r==="id"||r==="role"||r==="title"||r.startsWith("data-")||r.startsWith("aria-")))),n={props:s,attrs:e,safeAttrs:c,get ElDivider(){return d.ElDivider}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function a(i,o,s,e,c,n){return t.openBlock(),t.createBlock(e.ElDivider,t.mergeProps(e.safeAttrs,{direction:e.props.direction,"content-position":e.props.contentPosition,"border-style":e.props.borderStyle}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["direction","content-position","border-style"])}const u=l._export_sfc(p,[["render",a],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-divider/index.vue"]]);exports.Divider=u;
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),o=require("element-plus"),h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=l.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],required:!1,default:!1},activeValue:{type:[String,Number,Boolean],required:!1,default:!0},inactiveValue:{type:[String,Number,Boolean],required:!1,default:!1},disabled:{type:Boolean,required:!1,default:()=>{}},validateEvent:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1},activeText:{type:String,required:!1,default:""},inactiveText:{type:String,required:!1,default:""},inlinePrompt:{type:Boolean,required:!1,default:!1},name:{type:String,required:!1,default:""},id:{type:String,required:!1},tabindex:{type:[String,Number],required:!1},ariaLabel:{type:String,required:!1}},emits:["update:modelValue","change","focus","blur"],setup(i,{expose:u,emit:e}){u();const a=e,n=o.useFormDisabled(),r=l.useAttrs(),c=l.computed(()=>Object.fromEntries(Object.entries(r).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function s(t){a("focus",t)}function f(t){a("blur",t)}function v(t){n.value||i.loading||a("update:modelValue",t===!0?i.activeValue:i.inactiveValue)}function m(t){n.value||i.loading||a("change",t===!0?i.activeValue:i.inactiveValue)}const d={emit:a,resolvedDisabled:n,attrs:r,safeAttrs:c,handleFocus:s,handleBlur:f,handleUpdateModelValue:v,handleChange:m,get ElSwitch(){return o.ElSwitch}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function g(i,u,e,a,n,r){return l.openBlock(),l.createBlock(a.ElSwitch,l.mergeProps(a.safeAttrs,{class:"qy-switch","model-value":e.modelValue===e.activeValue,"active-value":!0,"inactive-value":!1,disabled:a.resolvedDisabled,"validate-event":e.validateEvent,loading:e.loading,size:e.size,"active-text":e.activeText,"inactive-text":e.inactiveText,"inline-prompt":e.inlinePrompt,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"onUpdate:modelValue":a.handleUpdateModelValue,onChange:a.handleChange,onFocusin:a.handleFocus,onFocusout:a.handleBlur}),null,16,["model-value","disabled","validate-event","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"])}const q=h._export_sfc(b,[["render",g],["__scopeId","data-v-639a456a"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-switch/index.vue"]]);exports.Switch=q;