@qynpm/ui 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/README.md +113 -113
  2. package/dist/index.cjs +19 -18
  3. package/dist/index.mjs +21 -20
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-alert/index.cjs +1 -1
  7. package/dist/qy-alert/index.mjs +4 -4
  8. package/dist/qy-aside/index.cjs +1 -1
  9. package/dist/qy-aside/index.mjs +4 -4
  10. package/dist/qy-autocomplete/index.cjs +1 -1
  11. package/dist/qy-autocomplete/index.mjs +3 -3
  12. package/dist/qy-avatar/index.cjs +1 -1
  13. package/dist/qy-avatar/index.mjs +1 -1
  14. package/dist/qy-badge/index.cjs +1 -1
  15. package/dist/qy-badge/index.mjs +4 -4
  16. package/dist/qy-button/index.cjs +2 -2
  17. package/dist/qy-button/index.mjs +2 -2
  18. package/dist/qy-card/index.cjs +1 -1
  19. package/dist/qy-card/index.mjs +1 -1
  20. package/dist/qy-cascader/index.cjs +1 -1
  21. package/dist/qy-cascader/index.mjs +3 -3
  22. package/dist/qy-checkbox/index.cjs +1 -1
  23. package/dist/qy-checkbox/index.mjs +1 -1
  24. package/dist/qy-checkbox-group/index.cjs +1 -1
  25. package/dist/qy-checkbox-group/index.mjs +4 -4
  26. package/dist/qy-col/index.cjs +1 -1
  27. package/dist/qy-col/index.mjs +4 -4
  28. package/dist/qy-collapse/index.cjs +1 -1
  29. package/dist/qy-collapse/index.mjs +2 -2
  30. package/dist/qy-collapse-item/index.cjs +1 -1
  31. package/dist/qy-collapse-item/index.mjs +5 -5
  32. package/dist/qy-color-picker/index.cjs +1 -1
  33. package/dist/qy-color-picker/index.mjs +4 -4
  34. package/dist/qy-container/index.cjs +1 -1
  35. package/dist/qy-container/index.mjs +3 -3
  36. package/dist/qy-date-picker/index.cjs +1 -1
  37. package/dist/qy-date-picker/index.mjs +1 -1
  38. package/dist/qy-descriptions/index.cjs +1 -1
  39. package/dist/qy-descriptions/index.mjs +1 -1
  40. package/dist/qy-descriptions-item/index.cjs +1 -1
  41. package/dist/qy-descriptions-item/index.mjs +4 -4
  42. package/dist/qy-dialog/index.cjs +2 -1
  43. package/dist/qy-dialog/index.mjs +5 -2
  44. package/dist/qy-divider/index.cjs +1 -1
  45. package/dist/qy-divider/index.mjs +4 -4
  46. package/dist/qy-drawer/index.cjs +1 -1
  47. package/dist/qy-drawer/index.mjs +2 -2
  48. package/dist/qy-dropdown/index.cjs +2 -2
  49. package/dist/qy-dropdown/index.mjs +2 -2
  50. package/dist/qy-empty/index.cjs +1 -1
  51. package/dist/qy-empty/index.mjs +4 -4
  52. package/dist/qy-file-picker/index.cjs +1 -1
  53. package/dist/qy-file-picker/index.mjs +1 -1
  54. package/dist/qy-form-section/index.cjs +1 -1
  55. package/dist/qy-form-section/index.mjs +1 -1
  56. package/dist/qy-fullscreen/index.cjs +1 -1
  57. package/dist/qy-fullscreen/index.mjs +1 -1
  58. package/dist/qy-icon/index.cjs +1 -1
  59. package/dist/qy-icon/index.mjs +2 -2
  60. package/dist/qy-icon-picker/index.cjs +2 -2
  61. package/dist/qy-icon-picker/index.mjs +5 -5
  62. package/dist/qy-iframe/index.cjs +1 -1
  63. package/dist/qy-iframe/index.mjs +1 -1
  64. package/dist/qy-image/index.cjs +1 -1
  65. package/dist/qy-image/index.mjs +1 -1
  66. package/dist/qy-image-preview/index.cjs +1 -1
  67. package/dist/qy-image-preview/index.mjs +1 -1
  68. package/dist/qy-image-upload/index.cjs +1 -1
  69. package/dist/qy-image-upload/index.mjs +1 -1
  70. package/dist/qy-input/index.cjs +1 -1
  71. package/dist/qy-input/index.mjs +1 -1
  72. package/dist/qy-input-number/index.cjs +2 -2
  73. package/dist/qy-input-number/index.mjs +3 -3
  74. package/dist/qy-input-tag/index.cjs +1 -1
  75. package/dist/qy-input-tag/index.mjs +4 -4
  76. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  77. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  78. package/dist/qy-link/index.cjs +1 -1
  79. package/dist/qy-link/index.mjs +5 -5
  80. package/dist/qy-main/index.cjs +1 -1
  81. package/dist/qy-main/index.mjs +4 -4
  82. package/dist/qy-menu-actions/index.cjs +1 -1
  83. package/dist/qy-menu-actions/index.mjs +1 -1
  84. package/dist/qy-money-input/index.cjs +1 -1
  85. package/dist/qy-money-input/index.mjs +4 -4
  86. package/dist/qy-popconfirm/index.cjs +1 -1
  87. package/dist/qy-popconfirm/index.mjs +5 -5
  88. package/dist/qy-popover/index.cjs +1 -1
  89. package/dist/qy-popover/index.mjs +4 -4
  90. package/dist/qy-progress/index.cjs +1 -1
  91. package/dist/qy-progress/index.mjs +3 -3
  92. package/dist/qy-radio/index.cjs +1 -1
  93. package/dist/qy-radio/index.mjs +1 -1
  94. package/dist/qy-radio-group/index.cjs +1 -1
  95. package/dist/qy-radio-group/index.mjs +1 -1
  96. package/dist/qy-record-quote-search/index.cjs +1 -1
  97. package/dist/qy-record-quote-search/index.mjs +1 -1
  98. package/dist/qy-remark-image/index.cjs +1 -1
  99. package/dist/qy-remark-image/index.mjs +1 -1
  100. package/dist/qy-remote-select/index.cjs +1 -1
  101. package/dist/qy-remote-select/index.mjs +1 -1
  102. package/dist/qy-result/index.cjs +1 -1
  103. package/dist/qy-result/index.mjs +4 -4
  104. package/dist/qy-row/index.cjs +1 -1
  105. package/dist/qy-row/index.mjs +4 -4
  106. package/dist/qy-scrollbar/index.cjs +1 -1
  107. package/dist/qy-scrollbar/index.mjs +3 -3
  108. package/dist/qy-search-input/index.cjs +1 -1
  109. package/dist/qy-search-input/index.mjs +1 -1
  110. package/dist/qy-select/index.cjs +1 -1
  111. package/dist/qy-select/index.mjs +1 -1
  112. package/dist/qy-selection-dialog/index.cjs +1 -1
  113. package/dist/qy-selection-dialog/index.mjs +1 -1
  114. package/dist/qy-skeleton/index.cjs +1 -1
  115. package/dist/qy-skeleton/index.mjs +4 -4
  116. package/dist/qy-skeleton-item/index.cjs +1 -1
  117. package/dist/qy-skeleton-item/index.mjs +4 -4
  118. package/dist/qy-statistic/index.cjs +1 -1
  119. package/dist/qy-statistic/index.mjs +3 -3
  120. package/dist/qy-step/index.cjs +1 -1
  121. package/dist/qy-step/index.mjs +5 -5
  122. package/dist/qy-steps/index.cjs +1 -1
  123. package/dist/qy-steps/index.mjs +4 -4
  124. package/dist/qy-switch/index.cjs +1 -1
  125. package/dist/qy-switch/index.mjs +1 -1
  126. package/dist/qy-tab-pane/index.cjs +1 -1
  127. package/dist/qy-tab-pane/index.mjs +4 -4
  128. package/dist/qy-table-column-settings/index.cjs +1 -1
  129. package/dist/qy-table-column-settings/index.mjs +1 -1
  130. package/dist/qy-tabs/index.cjs +1 -1
  131. package/dist/qy-tabs/index.mjs +4 -4
  132. package/dist/qy-tag/index.cjs +1 -1
  133. package/dist/qy-tag/index.mjs +1 -1
  134. package/dist/qy-tooltip/index.cjs +1 -1
  135. package/dist/qy-tooltip/index.mjs +4 -4
  136. package/dist/qy-tree/index.cjs +1 -1
  137. package/dist/qy-tree/index.mjs +5 -5
  138. package/dist/qy-tree-select/index.cjs +1 -1
  139. package/dist/qy-tree-select/index.mjs +1 -1
  140. package/dist/qy-upload/index.cjs +1 -1
  141. package/dist/qy-upload/index.mjs +1 -1
  142. package/dist/qy-watermark/index.cjs +1 -1
  143. package/dist/qy-watermark/index.mjs +1 -1
  144. package/dist/shared/index--I-pLtO3.cjs +1 -0
  145. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
  146. package/dist/shared/index-0mok5nS2.cjs +1 -0
  147. package/dist/shared/index-2xIkj7uz.cjs +1 -0
  148. package/dist/shared/index-4uXwnK7G.cjs +1 -0
  149. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
  150. package/dist/shared/index-B-PlDm1A.cjs +1 -0
  151. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
  152. package/dist/shared/index-B0aY8Q_T.cjs +1 -0
  153. package/dist/shared/index-B1-htEYJ.mjs +100 -0
  154. package/dist/shared/index-B1ZuGEIr.cjs +1 -0
  155. package/dist/shared/index-B3wIgwN7.cjs +1 -0
  156. package/dist/shared/index-B71cpH4T.cjs +1 -0
  157. package/dist/shared/index-B8S5RT2Z.mjs +206 -0
  158. package/dist/shared/index-B8znc-qD.cjs +1 -0
  159. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
  160. package/dist/shared/index-BCfULlZK.cjs +1 -0
  161. package/dist/shared/{index-BF6f9QDU.mjs → index-BE4CELs-.mjs} +1 -1
  162. package/dist/shared/index-BFFnf0Bn.cjs +1 -0
  163. package/dist/shared/index-BIWER6Wa.cjs +1 -0
  164. package/dist/shared/index-BM3ueCK9.cjs +1 -0
  165. package/dist/shared/index-BOLL0aGP.mjs +47 -0
  166. package/dist/shared/index-BWO4qxne.mjs +395 -0
  167. package/dist/shared/index-Ba3qQVYM.cjs +1 -0
  168. package/dist/shared/index-Ba5CLmrh.mjs +157 -0
  169. package/dist/shared/index-BcPpl_OJ.mjs +892 -0
  170. package/dist/shared/index-Bg_o9zrB.cjs +1 -0
  171. package/dist/shared/index-Bguu2ys0.cjs +1 -0
  172. package/dist/shared/index-BhO1ARf9.cjs +1 -0
  173. package/dist/shared/index-BiCdxX0E.mjs +63 -0
  174. package/dist/shared/index-BigCKPUY.mjs +153 -0
  175. package/dist/shared/index-BmWDUjpi.mjs +73 -0
  176. package/dist/shared/index-BoGA3Pdv.cjs +1 -0
  177. package/dist/shared/index-Brxx2EqN.mjs +156 -0
  178. package/dist/shared/{index-BQEymEbE.cjs → index-BsRfuMop.cjs} +1 -1
  179. package/dist/shared/index-BsTSa25A.cjs +1 -0
  180. package/dist/shared/index-Btwke2ql.cjs +1 -0
  181. package/dist/shared/index-BxQnJVT8.cjs +1 -0
  182. package/dist/shared/index-Bx_faI_u.mjs +53 -0
  183. package/dist/shared/index-C7GXprxF.cjs +1 -0
  184. package/dist/shared/index-C97qoSgI.cjs +1 -0
  185. package/dist/shared/index-CCqfQb_M.mjs +82 -0
  186. package/dist/shared/index-CDGjUhaC.mjs +72 -0
  187. package/dist/shared/index-CF3vimnX.mjs +73 -0
  188. package/dist/shared/index-CJxpEc9q.cjs +1 -0
  189. package/dist/shared/index-COpowa-E.mjs +48 -0
  190. package/dist/shared/index-CRU4YvLz.cjs +1 -0
  191. package/dist/shared/index-CSMOYD1R.cjs +1 -0
  192. package/dist/shared/index-CWB5fAb7.mjs +154 -0
  193. package/dist/shared/index-CXAVVShG.mjs +278 -0
  194. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
  195. package/dist/shared/index-CeasMt4r.mjs +63 -0
  196. package/dist/shared/index-CftZiihF.mjs +525 -0
  197. package/dist/shared/index-ChEefC0G.cjs +1 -0
  198. package/dist/shared/index-CioDI8Ys.cjs +1 -0
  199. package/dist/shared/index-CjKfmMG4.cjs +1 -0
  200. package/dist/shared/index-CnIZoCkL.mjs +77 -0
  201. package/dist/shared/index-CndG7UWF.mjs +138 -0
  202. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
  203. package/dist/shared/index-CrwhANF5.mjs +78 -0
  204. package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
  205. package/dist/shared/index-CutbNRjY.mjs +198 -0
  206. package/dist/shared/index-CyJHJCj8.cjs +1 -0
  207. package/dist/shared/index-CypWMqI4.cjs +1 -0
  208. package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
  209. package/dist/shared/index-CzyB5ttX.cjs +1 -0
  210. package/dist/shared/index-D1cbnYac.mjs +446 -0
  211. package/dist/shared/index-D8-4wR07.mjs +130 -0
  212. package/dist/shared/index-D9dQaZtu.cjs +1 -0
  213. package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
  214. package/dist/shared/index-DEosiUQV.mjs +245 -0
  215. package/dist/shared/index-DFTSBy3g.mjs +206 -0
  216. package/dist/shared/index-DFnpyAa1.mjs +69 -0
  217. package/dist/shared/index-DI5COVol.cjs +1 -0
  218. package/dist/shared/index-DNMOtH4s.mjs +36 -0
  219. package/dist/shared/index-DQn_5j_f.cjs +1 -0
  220. package/dist/shared/index-DRICnDix.mjs +295 -0
  221. package/dist/shared/index-DS539-rn.mjs +87 -0
  222. package/dist/shared/index-DTOfhAXP.mjs +74 -0
  223. package/dist/shared/index-DULBwiHC.mjs +234 -0
  224. package/dist/shared/index-DVPk0jMO.cjs +1 -0
  225. package/dist/shared/index-DWrymMO5.cjs +1 -0
  226. package/dist/shared/index-DYYPqv3Y.cjs +1 -0
  227. package/dist/shared/index-DZzMTGSJ.cjs +1 -0
  228. package/dist/shared/index-D_l30Gzr.cjs +1 -0
  229. package/dist/shared/index-Db7PhnjA.cjs +1 -0
  230. package/dist/shared/index-DdoFHdjY.mjs +307 -0
  231. package/dist/shared/index-DeBjILEK.cjs +1 -0
  232. package/dist/shared/index-DePXY0TI.cjs +1 -0
  233. package/dist/shared/index-DgPQ8292.cjs +1 -0
  234. package/dist/shared/index-Di3R0FOU.cjs +1 -0
  235. package/dist/shared/index-DiNSSXC8.mjs +76 -0
  236. package/dist/shared/index-DmEwKHe4.cjs +1 -0
  237. package/dist/shared/index-DnFQkBfl.cjs +1 -0
  238. package/dist/shared/index-DnexuGuJ.cjs +1 -0
  239. package/dist/shared/index-DniPcZnL.mjs +52 -0
  240. package/dist/shared/index-DpitpmqK.mjs +205 -0
  241. package/dist/shared/index-DtXU2qQS.cjs +1 -0
  242. package/dist/shared/index-Du-FNseo.cjs +1 -0
  243. package/dist/shared/index-DwHzztSj.cjs +1 -0
  244. package/dist/shared/index-DxFfP2Fn.cjs +1 -0
  245. package/dist/shared/index-DyqFfMhy.mjs +365 -0
  246. package/dist/shared/index-Hn-IGtqe.cjs +1 -0
  247. package/dist/shared/index-Nx_w1JYm.cjs +1 -0
  248. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
  249. package/dist/shared/index-R6vvV3td.cjs +1 -0
  250. package/dist/shared/index-TMhQv4oD.mjs +104 -0
  251. package/dist/shared/index-VtJrvPka.mjs +27 -0
  252. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
  253. package/dist/shared/index-YWKumDEW.mjs +61 -0
  254. package/dist/shared/index-_AB6uqZw.mjs +51 -0
  255. package/dist/shared/index-bvvNTmuM.mjs +105 -0
  256. package/dist/shared/index-fVS62tLm.mjs +81 -0
  257. package/dist/shared/index-gOUVgYd_.cjs +1 -0
  258. package/dist/shared/index-gU6HjdHv.mjs +311 -0
  259. package/dist/shared/index-hPaHbb1Y.cjs +1 -0
  260. package/dist/shared/index-i0G6DcP0.cjs +1 -0
  261. package/dist/shared/index-jP71VQxo.cjs +1 -0
  262. package/dist/shared/index-jdGrSpGg.mjs +2657 -0
  263. package/dist/shared/index-jsEFCWaY.mjs +175 -0
  264. package/dist/shared/index-lsWZ_M5R.mjs +369 -0
  265. package/dist/shared/index-mKnRWsLn.cjs +1 -0
  266. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
  267. package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
  268. package/dist/shared/index-xdsYNS2u.mjs +53 -0
  269. package/dist/shared/index-xhROPBam.mjs +129 -0
  270. package/index.d.ts +113 -113
  271. package/package.json +490 -490
  272. package/qy-alert/index.d.ts +64 -64
  273. package/qy-autocomplete/index.d.ts +5 -5
  274. package/qy-avatar/index.d.ts +67 -67
  275. package/qy-badge/index.d.ts +63 -63
  276. package/qy-card/index.d.ts +64 -64
  277. package/qy-cascader/index.d.ts +198 -198
  278. package/qy-collapse/index.d.ts +59 -59
  279. package/qy-collapse-item/index.d.ts +45 -45
  280. package/qy-descriptions/index.d.ts +47 -47
  281. package/qy-descriptions-item/index.d.ts +46 -46
  282. package/qy-dialog/index.d.ts +63 -63
  283. package/qy-divider/index.d.ts +53 -53
  284. package/qy-drawer/index.d.ts +55 -55
  285. package/qy-empty/index.d.ts +51 -51
  286. package/qy-file-picker/index.d.ts +4 -4
  287. package/qy-icon/index.d.ts +9 -9
  288. package/qy-iframe/index.d.ts +66 -66
  289. package/qy-image/index.d.ts +28 -28
  290. package/qy-image-preview/index.d.ts +20 -20
  291. package/qy-image-upload/index.d.ts +69 -69
  292. package/qy-input/index.d.ts +76 -76
  293. package/qy-input-number/index.d.ts +64 -64
  294. package/qy-input-tag/index.d.ts +69 -69
  295. package/qy-link/index.d.ts +69 -69
  296. package/qy-loading/index.d.ts +25 -25
  297. package/qy-menu-actions/index.d.ts +29 -29
  298. package/qy-money-input/index.d.ts +87 -87
  299. package/qy-progress/index.d.ts +74 -74
  300. package/qy-result/index.d.ts +64 -64
  301. package/qy-scrollbar/index.d.ts +85 -85
  302. package/qy-skeleton/index.d.ts +54 -54
  303. package/qy-skeleton-item/index.d.ts +48 -48
  304. package/qy-step/index.d.ts +55 -55
  305. package/qy-steps/index.d.ts +62 -62
  306. package/qy-tab-pane/index.d.ts +40 -40
  307. package/qy-table-column-settings/index.d.ts +18 -18
  308. package/qy-tabs/index.d.ts +84 -84
  309. package/qy-tree/index.d.ts +132 -132
  310. package/qy-tree-select/index.d.ts +123 -123
  311. package/qy-upload/index.d.ts +99 -99
  312. package/dist/shared/index-3KGa3jVi.mjs +0 -2754
  313. package/dist/shared/index-4SkLDBra.mjs +0 -377
  314. package/dist/shared/index-B1b3BksF.mjs +0 -72
  315. package/dist/shared/index-BPaVDCe6.cjs +0 -1
  316. package/dist/shared/index-BTbiht5h.cjs +0 -1
  317. package/dist/shared/index-BYX0biqw.mjs +0 -766
  318. package/dist/shared/index-BdTlpKtr.cjs +0 -1
  319. package/dist/shared/index-Bli6Gx5d.cjs +0 -1
  320. package/dist/shared/index-BuUtJrIy.mjs +0 -119
  321. package/dist/shared/index-Bvot0uXo.cjs +0 -1
  322. package/dist/shared/index-BxxwEr52.mjs +0 -107
  323. package/dist/shared/index-C1i-hd-W.cjs +0 -1
  324. package/dist/shared/index-C7lRQtzs.cjs +0 -1
  325. package/dist/shared/index-CdnHMuo3.mjs +0 -149
  326. package/dist/shared/index-Crr3HB8g.mjs +0 -222
  327. package/dist/shared/index-CwY_jv_I.cjs +0 -1
  328. package/dist/shared/index-D5S48q1B.mjs +0 -162
  329. package/dist/shared/index-D8E_xu0N.mjs +0 -54
  330. package/dist/shared/index-D8kce2jH.cjs +0 -1
  331. package/dist/shared/index-DCzxcvkn.cjs +0 -1
  332. package/dist/shared/index-DK0hjfWr.mjs +0 -90
  333. package/dist/shared/index-DZRFSGxO.mjs +0 -225
  334. package/dist/shared/index-Dc6gLgAz.cjs +0 -1
  335. package/dist/shared/index-DcohgM8A.mjs +0 -68
  336. package/dist/shared/index-Di4bIOiB.cjs +0 -1
  337. package/dist/shared/index-Di_xbC7d.cjs +0 -1
  338. package/dist/shared/index-DlGwHshu.cjs +0 -1
  339. package/dist/shared/index-Dm8kY2v6.mjs +0 -285
  340. package/dist/shared/index-DnHfk7NM.cjs +0 -1
  341. package/dist/shared/index-DnNIseRJ.cjs +0 -1
  342. package/dist/shared/index-Dr-Q5krU.mjs +0 -71
  343. package/dist/shared/index-Dwf-JfXM.mjs +0 -293
  344. package/dist/shared/index-JjHutKmT.mjs +0 -142
  345. package/dist/shared/index-Od6HC8Un.mjs +0 -127
  346. package/dist/shared/index-nSFTxVz8.cjs +0 -1
  347. package/dist/shared/index-nos4Y-fm.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  349. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  355. package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
  356. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  357. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  358. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  359. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  360. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  361. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  363. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  364. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  365. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
  367. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
  368. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  369. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  371. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  372. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  392. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
  393. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  394. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  395. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  396. package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
  397. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  398. package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +0 -1
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-CAW_QOyJ.cjs +0 -1
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-Dr9Elmzn.mjs +0 -317
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  418. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
  419. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  420. package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
  421. package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
  422. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
@@ -1,166 +0,0 @@
1
- import { defineComponent as S, useAttrs as A, ref as M, computed as q, openBlock as H, createBlock as U, unref as h, mergeProps as j, withCtx as o, renderSlot as r, normalizeProps as d, guardReactiveProps as i } from "vue";
2
- import { ElDatePicker as w } from "element-plus";
3
- const Z = /* @__PURE__ */ S({
4
- name: "QyDatePicker",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- props: {
8
- modelValue: { default: void 0 },
9
- type: { default: "date" },
10
- placeholder: { default: "请选择日期" },
11
- startPlaceholder: { default: "开始时间" },
12
- endPlaceholder: { default: "结束时间" },
13
- rangeSeparator: { default: "-" },
14
- format: { default: void 0 },
15
- valueFormat: { default: void 0 },
16
- defaultTime: { default: void 0 },
17
- disabledDate: { type: Function, default: void 0 },
18
- shortcuts: { default: void 0 },
19
- clearable: { type: Boolean, default: !0 },
20
- disabled: { type: Boolean, default: !1 },
21
- readonly: { type: Boolean },
22
- size: { default: void 0 },
23
- teleported: { type: Boolean, default: !0 },
24
- appendTo: { default: "body" },
25
- popperClass: { default: "" },
26
- normalizeRangeEndTime: { type: Boolean, default: !1 }
27
- },
28
- 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(" ")
32
- );
33
- function b(e) {
34
- return Array.isArray(e);
35
- }
36
- function C(e) {
37
- if (e.getHours() !== 0 || e.getMinutes() !== 0 || e.getSeconds() !== 0 || e.getMilliseconds() !== 0)
38
- return e;
39
- const a = new Date(e);
40
- return a.setHours(23, 59, 59, 0), a;
41
- }
42
- function P(e) {
43
- const a = e.match(
44
- /(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/
45
- );
46
- return a ? e.replace(
47
- a[0],
48
- `${a[1]}23:59:59${a[2] ?? ""}${a[3] ?? ""}`
49
- ) : e;
50
- }
51
- function c(e) {
52
- if (!s.normalizeRangeEndTime || !b(e) || e.length < 2)
53
- return e;
54
- const a = e[1];
55
- let t = a;
56
- if (a instanceof Date ? t = C(a) : typeof a == "string" && (t = P(a)), t === a)
57
- return e;
58
- const f = [...e];
59
- return f[1] = t, f;
60
- }
61
- function v(e) {
62
- l("update:modelValue", c(e));
63
- }
64
- function V(e) {
65
- l("change", c(e));
66
- }
67
- function z() {
68
- l("clear");
69
- }
70
- function B(e) {
71
- l("calendar-change", e);
72
- }
73
- function $(e, a, t) {
74
- if (t === void 0) {
75
- l("panel-change", e, a);
76
- return;
77
- }
78
- l("panel-change", e, a, t);
79
- }
80
- function k(e) {
81
- l("visible-change", e);
82
- }
83
- function D(e) {
84
- l("focus", e);
85
- }
86
- function R(e) {
87
- l("blur", e);
88
- }
89
- function T() {
90
- var e, a;
91
- (a = (e = u.value) == null ? void 0 : e.focus) == null || a.call(e);
92
- }
93
- function E() {
94
- var e, a;
95
- (a = (e = u.value) == null ? void 0 : e.blur) == null || a.call(e);
96
- }
97
- function x() {
98
- var e, a;
99
- (a = (e = u.value) == null ? void 0 : e.handleOpen) == null || a.call(e);
100
- }
101
- function F() {
102
- var e, a;
103
- (a = (e = u.value) == null ? void 0 : e.handleClose) == null || a.call(e);
104
- }
105
- return p({
106
- focus: T,
107
- blur: E,
108
- open: x,
109
- close: F
110
- }), (e, a) => (H(), U(h(w), j({
111
- ref_key: "datePickerRef",
112
- ref: u,
113
- class: "qy-date-picker"
114
- }, 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,
132
- "popper-class": y.value,
133
- "onUpdate:modelValue": v,
134
- onChange: V,
135
- onClear: z,
136
- onCalendarChange: B,
137
- onPanelChange: $,
138
- onVisibleChange: k,
139
- onFocus: D,
140
- onBlur: R
141
- }), {
142
- default: o((t) => [
143
- r(e.$slots, "default", d(i(t)))
144
- ]),
145
- "range-separator": o((t) => [
146
- r(e.$slots, "range-separator", d(i(t)))
147
- ]),
148
- "prev-month": o((t) => [
149
- r(e.$slots, "prev-month", d(i(t)))
150
- ]),
151
- "next-month": o((t) => [
152
- r(e.$slots, "next-month", d(i(t)))
153
- ]),
154
- "prev-year": o((t) => [
155
- r(e.$slots, "prev-year", d(i(t)))
156
- ]),
157
- "next-year": o((t) => [
158
- r(e.$slots, "next-year", d(i(t)))
159
- ]),
160
- _: 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"]));
162
- }
163
- });
164
- export {
165
- Z as _
166
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),N=require("@element-plus/icons-vue"),T=require("element-plus"),f=[],_={class:"qy-popconfirm__message"},ee={key:0,class:"qy-popconfirm__icon","aria-hidden":"true"},te={"data-testid":"qy-popconfirm-title",class:"qy-popconfirm__title"},ne={class:"qy-popconfirm__actions"},oe=t.defineComponent({name:"QyPopconfirm",inheritAttrs:!1,__name:"index",props:{title:{type:String,required:!0},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},width:{type:[Number,String],default:220},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},variant:{type:String,default:"warning"},confirmType:{type:String,default:"primary"},showIcon:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!0}},emits:["update:open","open-change","confirm","cancel","close"],setup(i,{emit:$}){const o=i,c=$,z=t.useAttrs(),g=t.ref(null),C=t.ref(null),B=t.computed(()=>o.open!==void 0),L=o.open===!0&&!o.disabled,k=t.ref(L),s=t.ref(L),a=t.ref(L),r=t.ref(null),m=t.ref(!1),y=t.ref(null),h={};let u=!1,p,w,b=!1,E=null;const S=t.computed(()=>o.disabled?!1:B.value?o.open===!0:k.value),M=t.computed(()=>{const e={};for(const[n,v]of Object.entries(z))(n==="class"||n==="style"||n==="id"||n==="title"||n==="tabindex"||n==="role"||n.startsWith("data-")||n.startsWith("aria-")||/^onKey(?:down|up|press)/i.test(n))&&(e[n]=v);return e}),O=t.computed(()=>typeof o.width=="number"?`${o.width}px`:o.width),H=t.computed(()=>({"--qy-popconfirm-width":O.value,"--qy-popconfirm-mobile-gutter":"24px"})),K=t.computed(()=>o.variant==="danger"?N.CircleCloseFilled:o.variant==="info"?N.InfoFilled:N.WarningFilled);function q(){return f[f.length-1]===h}function x(){f.includes(h)||f.push(h)}function V(){const e=f.indexOf(h);e>=0&&f.splice(e,1)}function D(e){var I,W;const n=document.activeElement;if(n instanceof HTMLElement&&((I=g.value)!=null&&I.contains(n))){y.value=n;return}const v=e==null?void 0:e.target;v instanceof HTMLElement&&((W=C.value)!=null&&W.contains(v))&&(y.value=v)}function Q(){const e=y.value;y.value=null,e!=null&&e.isConnected&&e.focus()}function d(){if(u)return;const e=S.value;s.value!==e&&(u=!0,p=e,w=e?void 0:r.value??(o.disabled?"disabled":"external"),s.value=e)}function l(e,n){e&&o.disabled||(!e&&n&&r.value===null&&(r.value=n),B.value?o.open!==e&&c("update:open",e):k.value!==e&&(k.value=e,c("update:open",e)),d())}function U(){var e;return r.value?r.value:E instanceof Node&&((e=g.value)!=null&&e.contains(E))?"trigger":"outside"}function j(e){if(e){D(),l(!0);return}if(o.confirmLoading)return;const n=U();!q()&&n!=="external"&&n!=="disabled"||l(!1,n)}function G(e){var n;!(e.target instanceof Node)||!((n=C.value)!=null&&n.contains(e.target))||o.confirmLoading||(a.value||s.value?(r.value="trigger",l(!1,"trigger")):(D(e),l(!0)))}function J(){o.disabled||o.confirmLoading||m.value||(m.value=!0,c("confirm"),o.closeOnConfirm&&l(!1,"confirm"))}function X(){o.disabled||o.confirmLoading||(c("cancel"),l(!1,"cancel"))}function A(e){e.key!=="Escape"&&e.code!=="Escape"||o.confirmLoading||!a.value||!q()||(e.preventDefault(),l(!1,"escape"))}function R(e){E=e.target}function P(e){E=e.target}function F(e){var n;o.confirmLoading||!a.value||!q()||e.target instanceof Node&&((n=g.value)!=null&&n.contains(e.target)||e.target instanceof Element&&e.target.closest(".qy-popconfirm-popper")||l(!1,"outside"))}function Y(){!u||p!==!0||(u=!1,p=void 0,a.value=!0,x(),r.value=null,w=void 0,c("open-change",!0),d())}function Z(){!u||p!==!1||(u=!1,p=void 0,a.value=!1,V(),c("open-change",!1),c("close",w??r.value??"external"),r.value=null,w=void 0,m.value=!1,b=!1,Q(),d())}return t.watch(S,()=>d()),t.watch(()=>o.open,(e,n)=>{e!==n&&(e===!1&&(a.value||s.value)&&r.value===null&&(r.value="external"),d())}),t.watch(()=>o.disabled,e=>{e&&(a.value||s.value)&&(r.value="disabled"),d()}),t.watch(()=>o.confirmLoading,e=>{e?b=!0:b&&(b=!1,a.value&&(m.value=!1))}),t.onMounted(()=>{a.value&&x(),window.addEventListener("keydown",A),document.addEventListener("pointerdown",R,!0),document.addEventListener("mousedown",P,!0),document.addEventListener("click",F)}),t.onBeforeUnmount(()=>{V(),window.removeEventListener("keydown",A),document.removeEventListener("pointerdown",R,!0),document.removeEventListener("mousedown",P,!0),document.removeEventListener("click",F)}),(e,n)=>(t.openBlock(),t.createElementBlock("span",t.mergeProps({ref_key:"rootRef",ref:g,class:"qy-popconfirm"},M.value,{onClickCapture:G}),[t.createVNode(t.unref(T.ElPopover),{visible:s.value,trigger:"click",placement:i.placement,width:i.width,disabled:i.disabled,"popper-style":H.value,"popper-class":"qy-popconfirm-popper","onUpdate:visible":j,onAfterEnter:Y,onAfterLeave:Z},{reference:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"referenceRef",ref:C,"data-qy-popconfirm-reference":""},[t.renderSlot(e.$slots,"reference")],512)]),default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-popconfirm__content",`is-${i.variant}`]),"data-qy-popconfirm-content":""},[t.createElementVNode("div",_,[i.showIcon?(t.openBlock(),t.createElementBlock("span",ee,[t.renderSlot(e.$slots,"icon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(K.value)))])])):t.createCommentVNode("",!0),t.createElementVNode("span",te,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])])]),t.createElementVNode("div",ne,[t.createVNode(t.unref(T.ElButton),{"data-testid":"qy-popconfirm-cancel",size:"small",disabled:i.disabled||i.confirmLoading,onClick:X},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.cancelText),1)]),_:1},8,["disabled"]),t.createVNode(t.unref(T.ElButton),{"data-testid":"qy-popconfirm-confirm",size:"small",type:i.confirmType,loading:i.confirmLoading,disabled:i.disabled||i.confirmLoading||m.value,onClick:J},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.confirmText),1)]),_:1},8,["type","loading","disabled"])])],2)]),_:3},8,["visible","placement","width","disabled","popper-style"])],16))}});exports._sfc_main=oe;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),d=require("element-plus"),p=t.defineComponent({name:"QyTabs",inheritAttrs:!1,props:{modelValue:{type:[String,Number],required:!1},defaultValue:{type:[String,Number],required:!1},type:{type:String,default:""},tabPosition:{type:String,default:"top"},stretch:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},beforeLeave:{type:Function,required:!1},tabindex:{type:[String,Number],default:0}},emits:["update:modelValue","tab-change","tab-click","tab-remove","tab-add","edit"],setup(l,{attrs:u,emit:n,slots:i}){const s=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),b=t.computed(()=>({...s.value,class:["qy-tabs",s.value.class]}));function f(e){const a=t.unref(e.paneName),r=e.props??{};return Object.freeze({name:a??r.name,label:r.label??"",disabled:r.disabled??!1,closable:t.unref(e.isClosable)??r.closable??!1,lazy:r.lazy??!1,active:t.unref(e.active)??!1,index:t.unref(e.index)})}function c(e){return typeof e.type=="object"&&e.type!==null&&e.type.name==="QyTabPane"}function m(e){return Object.fromEntries(Object.entries(e??{}).filter(([a])=>a==="label"||a==="name"||a==="closable"||a==="disabled"||a==="lazy"||a==="class"||a==="style"||a==="id"||a==="role"||a==="title"||a.startsWith("data-")||a.startsWith("aria-")))}function o(e){return e.map(a=>t.isVNode(a)?c(a)?t.h(d.ElTabPane,{...m(a.props),key:a.key??void 0},a.children):a.type===t.Fragment&&Array.isArray(a.children)?t.h(t.Fragment,{key:a.key??void 0},o(a.children)):a:a)}return()=>t.h(d.ElTabs,{...b.value,modelValue:l.modelValue,defaultValue:l.defaultValue,type:l.type,tabPosition:l.tabPosition,stretch:l.stretch,closable:l.closable,addable:l.addable,editable:l.editable,beforeLeave:l.beforeLeave,tabindex:l.tabindex,"onUpdate:modelValue":e=>n("update:modelValue",e),onTabChange:e=>n("tab-change",e),onTabClick:(e,a)=>n("tab-click",f(e),a),onTabRemove:e=>n("tab-remove",e),onTabAdd:()=>n("tab-add"),onEdit:(e,a)=>n("edit",e,a)},{default:()=>{var e;return o(((e=i.default)==null?void 0:e.call(i))??[])},"add-icon":i["add-icon"]})}});exports._sfc_main=p;
@@ -1 +0,0 @@
1
- "use strict";const l=require("vue"),R=require("element-plus"),I=l.defineComponent({name:"QyCascader",inheritAttrs:!1,__name:"index",props:{modelValue:{},options:{default:()=>[]},props:{default:()=>({})},size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},filterable:{type:Boolean,default:!1},filterMethod:{},separator:{default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},maxCollapseTags:{default:1},collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTagsTooltipHeight:{},debounce:{default:300},beforeFilter:{},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean,default:!0},effect:{},persistent:{type:Boolean,default:!0},showCheckedStrategy:{},fitInputWidth:{type:[Boolean,Number]},tagType:{},tagEffect:{},validateEvent:{type:Boolean,default:!0},emptyValues:{},valueOnClear:{},virtualScroll:{type:Boolean,default:!1},itemSize:{default:34},height:{default:204}},emits:["update:modelValue","change","focus","blur","clear","visible-change","expand-change","remove-tag"],setup(a,{expose:b,emit:v}){const n=a,r=v,y=l.useAttrs(),f=l.ref(),g=l.computed(()=>Object.fromEntries(Object.entries(y).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),C=l.computed(()=>({...n.emptyValues!==void 0?{emptyValues:n.emptyValues}:{},...n.valueOnClear!==void 0?{valueOnClear:n.valueOnClear}:{}})),S=l.computed(()=>({...g.value,...C.value}));function c(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 w(e,t){var u,m;const o=typeof t.leaf=="string"?t.leaf:"leaf",s=t.children??"children",i=(u=e.data)==null?void 0:u[o];if(typeof i=="boolean")return i;const d=Array.isArray(e.childrenData)?e.childrenData:(m=e.data)==null?void 0:m[s];return Array.isArray(d)&&d.length>0?!1:t.lazy?e.loaded===!0:!0}function p(e,t,o=new Set){var u;if(o.has(e))return!1;o.add(e);const s=typeof t.disabled=="string"?t.disabled:"disabled",i=!!((u=e.data)!=null&&u[s]),d=t.checkStrictly!==!0&&e.parent?p(e.parent,t,o):!1;return i||d}function h(e,t){return c(e,{isLeaf:w(e,t),isDisabled:p(e,t)})}const k=l.computed(()=>{const e=n.props??{},t={...e};return typeof e.disabled=="function"&&(t.disabled=(o,s)=>{var i;return((i=e.disabled)==null?void 0:i.call(e,h(s,e)))??!1}),typeof e.leaf=="function"&&(t.leaf=(o,s)=>{var i;return((i=e.leaf)==null?void 0:i.call(e,h(s,e)))??!1}),typeof e.lazyLoad=="function"&&(t.lazyLoad=(o,s,i)=>{var d;return(d=e.lazyLoad)==null?void 0:d.call(e,c(o),s,i)}),t}),V=l.computed(()=>n.filterMethod?(e,t)=>{var o;return((o=n.filterMethod)==null?void 0:o.call(n,c(e),t))??!1}:void 0);function T(e){return{...e,node:c(e.node)}}function z(e,t){return e.map(o=>{const s=c(o.node);return Object.freeze({uid:s.uid,value:s.value,label:s.label,pathValues:s.pathValues,pathLabels:s.pathLabels,data:s.data,text:o.text,hitState:o.hitState,closable:o.closable,remove:()=>t(o)})})}function B(e){r("update:modelValue",e)}function L(e){r("change",e)}function x(e){r("focus",e)}function $(e){r("blur",e)}function A(){r("clear")}function O(e){r("visible-change",e)}function D(e){r("expand-change",e)}function P(e){r("remove-tag",e)}function E(){var e;(e=f.value)==null||e.focus()}function j(){var e;(e=f.value)==null||e.blur()}function F(){var e,t;(t=(e=f.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!0)}function M(){var e,t;(t=(e=f.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!1)}return b({focus:E,blur:j,open:F,close:M}),(e,t)=>(l.openBlock(),l.createBlock(l.unref(R.ElCascader),l.mergeProps({ref_key:"cascaderRef",ref:f},S.value,{class:"qy-cascader","model-value":a.modelValue,options:a.options,props:k.value,size:a.size,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,"clear-icon":a.clearIcon,filterable:a.filterable,"filter-method":V.value,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":B,onChange:L,onFocus:x,onBlur:$,onClear:A,onVisibleChange:O,onExpandChange:D,onRemoveTag:P}),l.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.header?{name:"header",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"header")]),key:"1"}:void 0,e.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"footer")]),key:"2"}:void 0,e.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"empty")]),key:"3"}:void 0,e.$slots.default?{name:"default",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"default",l.normalizeProps(l.guardReactiveProps(T(o))))]),key:"4"}:void 0,e.$slots["suggestion-item"]?{name:"suggestion-item",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"suggestion-item",{item:c(o.item)})]),key:"5"}:void 0,e.$slots.tag?{name:"tag",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"tag",{data:z(o.data,o.deleteTag),remove:s=>s==null?void 0:s.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"]))}});exports._sfc_main=I;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),P=require("element-plus"),K=1e3,O=t.defineComponent({name:"QyPopover",inheritAttrs:!1,__name:"index",props:{trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"},effect:{type:String,default:"light"},width:{type:[Number,String],default:240},offset:{type:Number,default:12},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:200},showArrow:{type:Boolean,default:!0},transition:{type:String,default:void 0},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:void 0}},emits:["update:open","open-change","open","close"],setup(r,{expose:B,emit:E}){const n=r,c=E,i=t.computed(()=>n.open!==void 0),v=i.value&&n.open===!0&&!n.disabled,f=t.ref(v),u=t.ref(v),h=t.ref(v),a=t.ref(null),y=t.computed(()=>n.disabled?!1:i.value?n.open===!0:f.value);let o,d=!1,s;const b=t.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),S=t.computed(()=>({"--qy-popover-width":b.value,"--qy-popover-mobile-gutter":"24px"})),m=t.useSlots(),T=t.computed(()=>{var e;return((e=m.reference)==null?void 0:e.call(m))??[]});function w(){o&&(clearTimeout(o),o=void 0),a.value=null}function q(e){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,a.value===e&&(a.value=null)},K)}function l(){if(d)return;const e=y.value;u.value!==e&&(d=!0,s=e,u.value=e)}function p(e){if(!(e&&n.disabled)){if(!i.value){if(f.value===e)return;f.value=e,c("update:open",e),l();return}a.value!==e&&(a.value===null&&n.open===e||(a.value=e,e?q(e):o&&(clearTimeout(o),o=void 0),c("update:open",e),l()))}}function g(e){e===u.value&&(!d||s!==e||(d=!1,s=void 0,e!==h.value&&(h.value=e,a.value===e&&w(),c("open-change",e),c(e?"open":"close"),l())))}function C(e){p(e),l()}function L(){g(!0)}function N(){g(!1)}function W(){p(!1)}function k(e){e.key!=="Escape"&&e.code!=="Escape"||u.value&&(e.preventDefault(),p(!1),l())}return t.watch(y,()=>l()),t.watch(i,e=>{w(),e?f.value=n.open===!0:f.value=u.value,l()}),t.watch(()=>n.open,(e,A)=>{!i.value||a.value===null||(e===a.value||e!==A)&&w()}),t.watch(()=>n.disabled,e=>{e?p(!1):l()}),t.onBeforeUnmount(()=>{window.removeEventListener("keydown",k),d=!1,s=void 0,o&&clearTimeout(o)}),t.onMounted(()=>{window.addEventListener("keydown",k)}),B({close:W}),(e,A)=>(t.openBlock(),t.createBlock(t.unref(P.ElPopover),{visible:u.value,trigger:r.trigger,placement:r.placement,effect:r.effect,width:r.width,offset:r.offset,"show-after":r.showDelay,"hide-after":r.hideDelay,"show-arrow":r.showArrow,transition:r.transition,disabled:r.disabled,enterable:!0,"popper-style":S.value,"popper-class":"qy-popover-popper","onUpdate:visible":C,onAfterEnter:L,onAfterLeave:N},{reference:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(D,I)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(D),{key:D.key??I}))),128))]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","trigger","placement","effect","width","offset","show-after","hide-after","show-arrow","transition","disabled","popper-style"]))}});exports._sfc_main=O;
@@ -1,68 +0,0 @@
1
- import { defineComponent as m, computed as n, ref as h, onBeforeUnmount as p, watch as y, openBlock as b, createBlock as w, unref as x, withCtx as f, renderSlot as i, createTextVNode as v, toDisplayString as D } from "vue";
2
- import { ElTooltip as W } from "element-plus";
3
- const C = /* @__PURE__ */ m({
4
- name: "QyTooltip",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- props: {
8
- content: { default: "" },
9
- placement: { default: "top" },
10
- effect: { default: "dark" },
11
- disabled: { type: Boolean, default: !1 },
12
- showDelay: { default: 0 },
13
- hideDelay: { default: 200 },
14
- offset: { default: 12 },
15
- maxWidth: { default: 320 }
16
- },
17
- emits: ["open", "close"],
18
- setup(e, { emit: d }) {
19
- const s = d, c = n(
20
- () => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth
21
- ), r = n(() => ({
22
- "--qy-tooltip-max-width": c.value
23
- })), a = h(!1);
24
- let l = !1;
25
- p(() => {
26
- l = !0;
27
- });
28
- function o(t) {
29
- l || t === a.value || (a.value = t, s(t ? "open" : "close"));
30
- }
31
- function u(t) {
32
- o(t);
33
- }
34
- return y(
35
- () => e.disabled,
36
- (t) => {
37
- t && o(!1);
38
- }
39
- ), (t, g) => (b(), w(x(W), {
40
- content: e.content,
41
- placement: e.placement,
42
- effect: e.effect,
43
- disabled: e.disabled,
44
- "show-after": e.showDelay,
45
- "hide-after": e.hideDelay,
46
- offset: e.offset,
47
- trigger: ["hover", "focus"],
48
- enterable: !1,
49
- "raw-content": !1,
50
- "popper-class": "qy-tooltip-popper",
51
- "popper-style": r.value,
52
- "onUpdate:visible": u
53
- }, {
54
- content: f(() => [
55
- i(t.$slots, "content", {}, () => [
56
- v(D(e.content), 1)
57
- ])
58
- ]),
59
- default: f(() => [
60
- i(t.$slots, "default")
61
- ]),
62
- _: 3
63
- }, 8, ["content", "placement", "effect", "disabled", "show-after", "hide-after", "offset", "popper-style"]));
64
- }
65
- });
66
- export {
67
- C as _
68
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),E=require("element-plus"),$=n.defineComponent({name:"QyInputNumber",inheritAttrs:!1,__name:"index",props:{id:{},step:{default:1},stepStrictly:{type:Boolean,default:!1},max:{default:void 0},min:{default:void 0},modelValue:{default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:void 0},controls:{type:Boolean,default:!0},controlsPosition:{default:""},valueOnClear:{default:null},name:{},placeholder:{default:"请输入数字"},precision:{default:void 0},validateEvent:{type:Boolean},ariaLabel:{}},emits:["update:modelValue","input","change","focus","blur"],setup(t,{expose:m,emit:v}){const a=t,i=v,p=n.useAttrs(),h=n.computed(()=>Object.fromEntries(Object.entries(p).filter(([e])=>e==="class"||e==="style"||e==="title"||e==="role"||e.startsWith("data-")||e.startsWith("aria-")))),u=n.ref(null),o=n.ref(!1),d=n.ref(a.modelValue);function b(){return a.valueOnClear==="min"?a.min:a.valueOnClear==="max"?a.max:a.valueOnClear}function r(e=!1){var s,f;if(!o.value)return;o.value=!1;const l=b();i("update:modelValue",l),i("change",l,d.value),e&&((f=(s=u.value)==null?void 0:s.blur)==null||f.call(s))}function y(e){e===null&&a.valueOnClear!==null&&(o.value=!0,d.value=a.modelValue),i("update:modelValue",e)}function C(e){i("input",e)}function g(e,l){if(o.value&&e===null){r();return}o.value=!1,i("change",e,l)}function x(e){i("focus",e)}function V(e){o.value&&e.target instanceof HTMLInputElement&&e.target.value===""&&r(),i("blur",e)}function B(e){o.value&&e.key==="Tab"&&e.target instanceof HTMLInputElement&&e.target.value===""&&r(!0)}function c(e){const l=e.target;o.value&&l instanceof Element&&!l.closest(".qy-input-number")&&r(!0)}function O(){var e,l;(l=(e=u.value)==null?void 0:e.focus)==null||l.call(e)}function w(){var e,l;(l=(e=u.value)==null?void 0:e.blur)==null||l.call(e)}return m({focus:O,blur:w}),n.onMounted(()=>{document.addEventListener("pointerdown",c,!0)}),n.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",c,!0)}),(e,l)=>(n.openBlock(),n.createBlock(n.unref(E.ElInputNumber),n.mergeProps({ref_key:"inputNumberRef",ref:u},h.value,{class:"qy-input-number","model-value":t.modelValue,min:t.min,max:t.max,step:t.step,"step-strictly":t.stepStrictly,precision:t.precision,controls:t.controls,"controls-position":t.controlsPosition,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,size:t.size,"value-on-clear":t.valueOnClear,"validate-event":t.validateEvent,id:t.id,name:t.name,"aria-label":t.ariaLabel,"onUpdate:modelValue":y,onInput:C,onChange:g,onFocus:x,onBlur:V,onKeydownCapture:B}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots["increase-icon"]?{name:"increase-icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"increase-icon")]),key:"2"}:void 0,e.$slots["decrease-icon"]?{name:"decrease-icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"decrease-icon")]),key:"3"}:void 0]),1040,["model-value","min","max","step","step-strictly","precision","controls","controls-position","placeholder","disabled","readonly","size","value-on-clear","validate-event","id","name","aria-label"]))}});exports._sfc_main=$;
@@ -1,317 +0,0 @@
1
- import { defineComponent as ue, inject as se, ref as d, computed as b, watch as M, nextTick as Q, openBlock as u, createElementBlock as p, createVNode as R, unref as C, withCtx as z, createElementVNode as h, toDisplayString as S, Fragment as de, renderList as pe, withKeys as K, withModifiers as L, normalizeClass as fe, renderSlot as ve, createTextVNode as ye, createCommentVNode as Y, createBlock as me } from "vue";
2
- import { Q as W } from "./index-BF6f9QDU.mjs";
3
- import { Q as G } from "./index-JjHutKmT.mjs";
4
- import { QyPopover as he } from "../qy-popover/index.mjs";
5
- import { n as _e, Q as ke } from "./index-Dm8kY2v6.mjs";
6
- function be(l, y) {
7
- const m = y == null ? "" : String(y), a = l && m ? l.resolve(m) : void 0;
8
- return Object.freeze({
9
- value: m,
10
- known: !!a,
11
- canonicalName: a == null ? void 0 : a.name,
12
- definition: a
13
- });
14
- }
15
- function ge(l, y, m = "") {
16
- const a = (l == null ? void 0 : l.list()) ?? [], i = y === void 0 ? void 0 : new Set(
17
- y.map((t) => {
18
- var v;
19
- return (v = l == null ? void 0 : l.resolve(t)) == null ? void 0 : v.name;
20
- }).filter((t) => !!t).map(H)
21
- ), f = String(m).trim().toLocaleLowerCase();
22
- return Object.freeze(
23
- a.filter((t) => i && !i.has(H(t.name)) ? !1 : f ? [
24
- t.name,
25
- t.label,
26
- ...t.keywords ?? []
27
- ].some(
28
- (v) => typeof v == "string" && v.toLocaleLowerCase().includes(f)
29
- ) : !0)
30
- );
31
- }
32
- function H(l) {
33
- return _e(l).toLocaleLowerCase();
34
- }
35
- const qe = { class: "qy-icon-picker" }, we = ["onKeydown"], Ie = {
36
- class: "qy-icon-picker__preview",
37
- "aria-hidden": "true"
38
- }, Ce = {
39
- key: 1,
40
- class: "qy-icon-picker__missing",
41
- "aria-hidden": "true"
42
- }, Le = ["id"], Pe = {
43
- class: "qy-icon-picker__search",
44
- "data-testid": "qy-icon-picker-search"
45
- }, Qe = {
46
- key: 0,
47
- class: "qy-icon-picker__state",
48
- "data-testid": "qy-icon-picker-loading",
49
- role: "status"
50
- }, Re = {
51
- key: 1,
52
- class: "qy-icon-picker__state qy-icon-picker__state--error",
53
- "data-testid": "qy-icon-picker-error",
54
- role: "alert"
55
- }, ze = ["aria-label"], Ke = ["id", "data-qy-icon-option", "data-qy-icon-active", "aria-selected", "tabindex", "onClick", "onFocus", "onKeydown"], Ne = { class: "qy-icon-picker__option-label" }, xe = {
56
- key: 3,
57
- class: "qy-icon-picker__empty"
58
- };
59
- let Ve = 0;
60
- const Ae = /* @__PURE__ */ ue({
61
- name: "QyIconPicker",
62
- __name: "index",
63
- props: {
64
- modelValue: { default: "" },
65
- allowedNames: {},
66
- disabled: { type: Boolean, default: !1 },
67
- clearable: { type: Boolean, default: !1 },
68
- size: { default: "default" },
69
- placeholder: { default: "点击选择图标" },
70
- searchPlaceholder: { default: "搜索图标名称、标签或关键词" },
71
- emptyText: { default: "暂无匹配图标" },
72
- panelWidth: { default: 540 },
73
- open: { type: Boolean, default: void 0 },
74
- id: {},
75
- ariaLabel: {}
76
- },
77
- emits: ["update:modelValue", "change", "clear", "update:open", "open-change"],
78
- setup(l, { expose: y, emit: m }) {
79
- const a = l, i = m, f = se(ke, null), t = d(""), v = d(!1), r = d(-1), N = d([]), g = d(!1), P = d(""), A = d(0);
80
- let O = !1;
81
- const q = d(null), U = d(null), x = d("pointer"), J = `qy-icon-picker-${++Ve}`, _ = b(
82
- () => be(f, a.modelValue)
83
- ), s = b(() => (A.value, ge(f, a.allowedNames, t.value))), w = b(() => a.open !== void 0), k = b(
84
- () => w.value ? a.open === !0 : v.value
85
- ), X = b(() => "click"), V = b(() => `${a.id || J}-panel`);
86
- M(
87
- k,
88
- (e, n) => {
89
- !e || n || (t.value = "", r.value = le(), N.value = [], !O && f && (O = !0, D(f.load())), x.value === "keyboard" && Q(() => {
90
- var o, c;
91
- return (c = (o = U.value) == null ? void 0 : o.focus) == null ? void 0 : c.call(o);
92
- }));
93
- }
94
- );
95
- function D(e) {
96
- g.value = !0, P.value = "", e.then(
97
- () => {
98
- g.value = !1, A.value++;
99
- },
100
- (n) => {
101
- g.value = !1, P.value = n instanceof Error ? n.message : String(n);
102
- }
103
- );
104
- }
105
- function Z() {
106
- !f || g.value || D(f.retry());
107
- }
108
- M(s, () => {
109
- if (!s.value.length) {
110
- r.value = -1;
111
- return;
112
- }
113
- r.value >= s.value.length && (r.value = 0), r.value < 0 && (r.value = 0);
114
- });
115
- function j() {
116
- a.disabled || (x.value = "keyboard", $("keyboard"));
117
- }
118
- function ee(e) {
119
- a.disabled || w.value && a.open !== !1 || (e.stopImmediatePropagation(), $("pointer"));
120
- }
121
- function ae(e) {
122
- T(e);
123
- }
124
- function ne(e) {
125
- e === k.value && (w.value || (v.value = e), i("open-change", e), e || Q(() => {
126
- var n, o;
127
- return (o = (n = q.value) == null ? void 0 : n.focus) == null ? void 0 : o.call(n);
128
- }));
129
- }
130
- function T(e) {
131
- e && a.disabled || e !== k.value && (w.value || (v.value = e), i("update:open", e));
132
- }
133
- function $(e = "programmatic") {
134
- x.value = e, T(!0);
135
- }
136
- function B() {
137
- T(!1), Q(() => {
138
- var e, n;
139
- return (n = (e = q.value) == null ? void 0 : e.focus) == null ? void 0 : n.call(e);
140
- });
141
- }
142
- function F() {
143
- a.disabled || (i("update:modelValue", ""), i("change", ""), i("clear"));
144
- }
145
- function E(e) {
146
- a.disabled || (i("update:modelValue", e.name), i("change", e.name), B());
147
- }
148
- function oe(e) {
149
- if (e.key === "Escape") {
150
- e.preventDefault(), B();
151
- return;
152
- }
153
- if (!s.value.length || !["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(e.key)) return;
154
- e.preventDefault();
155
- const n = e.key === "ArrowUp" || e.key === "ArrowLeft" ? -1 : 1, o = s.value.length;
156
- r.value = (r.value + n + o) % o, Q(() => {
157
- var c;
158
- return (c = N.value[r.value]) == null ? void 0 : c.focus();
159
- });
160
- }
161
- function le() {
162
- const e = _.value.canonicalName;
163
- if (!e) return s.value.length ? 0 : -1;
164
- const n = s.value.findIndex(({ name: o }) => o === e);
165
- return n >= 0 ? n : s.value.length ? 0 : -1;
166
- }
167
- function te(e, n) {
168
- e instanceof HTMLElement && (N.value[n] = e);
169
- }
170
- function re(e) {
171
- return `${V.value}-${encodeURIComponent(e)}`;
172
- }
173
- function ie() {
174
- var e, n;
175
- (n = (e = q.value) == null ? void 0 : e.focus) == null || n.call(e);
176
- }
177
- function ce() {
178
- var e, n;
179
- (n = (e = q.value) == null ? void 0 : e.blur) == null || n.call(e);
180
- }
181
- return y({ focus: ie, blur: ce, open: $, close: B }), (e, n) => (u(), p("div", qe, [
182
- R(C(he), {
183
- ref: "popoverRef",
184
- class: "qy-icon-picker__popover",
185
- open: k.value,
186
- trigger: X.value,
187
- placement: "bottom-start",
188
- width: a.panelWidth,
189
- "show-delay": 0,
190
- "hide-delay": 0,
191
- disabled: a.disabled || w.value && a.open === !1,
192
- "onUpdate:open": ae,
193
- onOpenChange: ne
194
- }, {
195
- reference: z(() => [
196
- h("div", {
197
- class: "qy-icon-picker__trigger",
198
- "data-testid": "qy-icon-picker-trigger",
199
- onClick: ee,
200
- onKeydown: [
201
- K(L(j, ["prevent"]), ["enter"]),
202
- K(L(j, ["prevent"]), ["space"])
203
- ]
204
- }, [
205
- R(C(G), {
206
- ref_key: "triggerRef",
207
- ref: q,
208
- id: a.id,
209
- "model-value": _.value.value,
210
- size: a.size,
211
- disabled: a.disabled,
212
- clearable: a.clearable,
213
- readonly: "",
214
- placeholder: a.placeholder,
215
- "aria-label": a.ariaLabel,
216
- "aria-haspopup": "listbox",
217
- "aria-expanded": k.value ? "true" : "false",
218
- "aria-controls": V.value,
219
- onClear: F
220
- }, {
221
- prefix: z(() => [
222
- h("span", Ie, [
223
- _.value.definition ? (u(), me(C(W), {
224
- key: 0,
225
- name: _.value.definition.name,
226
- size: 18
227
- }, null, 8, ["name"])) : (u(), p("span", Ce, "?"))
228
- ])
229
- ]),
230
- suffix: z(() => [
231
- a.clearable && _.value.value ? (u(), p("button", {
232
- key: 0,
233
- type: "button",
234
- class: "qy-icon-picker__clear",
235
- "data-testid": "qy-icon-picker-clear",
236
- "aria-label": "清空图标",
237
- onClick: L(F, ["stop", "prevent"])
238
- }, [...n[1] || (n[1] = [
239
- h("span", { "aria-hidden": "true" }, "×", -1)
240
- ])])) : Y("", !0)
241
- ]),
242
- _: 1
243
- }, 8, ["id", "model-value", "size", "disabled", "clearable", "placeholder", "aria-label", "aria-expanded", "aria-controls"])
244
- ], 40, we)
245
- ]),
246
- default: z(() => [
247
- k.value ? (u(), p("div", {
248
- key: 0,
249
- id: V.value,
250
- class: "qy-icon-picker__panel",
251
- onKeydown: oe
252
- }, [
253
- h("div", Pe, [
254
- R(C(G), {
255
- ref_key: "searchRef",
256
- ref: U,
257
- modelValue: t.value,
258
- "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o),
259
- type: "search",
260
- clearable: "",
261
- placeholder: a.searchPlaceholder,
262
- "aria-label": "搜索图标"
263
- }, null, 8, ["modelValue", "placeholder"])
264
- ]),
265
- g.value ? (u(), p("div", Qe, " 正在加载图标… ")) : P.value ? (u(), p("div", Re, [
266
- h("span", null, S(P.value), 1),
267
- h("button", {
268
- type: "button",
269
- "data-testid": "qy-icon-picker-retry",
270
- onClick: Z
271
- }, " 重试 ")
272
- ])) : s.value.length ? (u(), p("div", {
273
- key: 2,
274
- class: "qy-icon-picker__grid",
275
- role: "listbox",
276
- "aria-label": a.ariaLabel || "图标列表"
277
- }, [
278
- (u(!0), p(de, null, pe(s.value, (o, c) => (u(), p("div", {
279
- id: re(o.name),
280
- key: o.name,
281
- ref_for: !0,
282
- ref: (I) => te(I, c),
283
- class: fe(["qy-icon-picker__option", { "is-active": r.value === c }]),
284
- "data-qy-icon-option": o.name,
285
- "data-qy-icon-active": r.value === c ? "true" : void 0,
286
- role: "option",
287
- "aria-selected": _.value.canonicalName === o.name ? "true" : "false",
288
- tabindex: r.value === c ? 0 : -1,
289
- onClick: (I) => E(o),
290
- onFocus: (I) => r.value = c,
291
- onKeydown: [
292
- K(L((I) => E(o), ["prevent"]), ["enter"]),
293
- K(L((I) => E(o), ["prevent"]), ["space"])
294
- ]
295
- }, [
296
- R(C(W), {
297
- name: o.name,
298
- size: 18,
299
- "aria-hidden": "true"
300
- }, null, 8, ["name"]),
301
- h("span", Ne, S(o.label || o.name), 1)
302
- ], 42, Ke))), 128))
303
- ], 8, ze)) : (u(), p("div", xe, [
304
- ve(e.$slots, "empty", {}, () => [
305
- ye(S(a.emptyText), 1)
306
- ])
307
- ]))
308
- ], 40, Le)) : Y("", !0)
309
- ]),
310
- _: 3
311
- }, 8, ["open", "trigger", "width", "disabled"])
312
- ]));
313
- }
314
- });
315
- export {
316
- Ae as _
317
- };