@yh-ui/components 0.1.10 → 0.1.12

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 (386) hide show
  1. package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.cjs +55 -0
  2. package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.d.ts +1 -0
  3. package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.mjs +39 -0
  4. package/dist/ai-action-group/__tests__/ai-action-group.test.cjs +149 -0
  5. package/dist/ai-action-group/__tests__/ai-action-group.test.d.ts +1 -0
  6. package/dist/ai-action-group/__tests__/ai-action-group.test.mjs +104 -0
  7. package/dist/ai-action-group/index.cjs +26 -0
  8. package/dist/ai-action-group/index.d.ts +3 -0
  9. package/dist/ai-action-group/index.mjs +5 -0
  10. package/dist/ai-action-group/src/ai-action-group.cjs +50 -0
  11. package/dist/ai-action-group/src/ai-action-group.css +517 -0
  12. package/dist/ai-action-group/src/ai-action-group.d.ts +55 -0
  13. package/dist/ai-action-group/src/ai-action-group.d.vue.ts +40 -0
  14. package/dist/ai-action-group/src/ai-action-group.mjs +44 -0
  15. package/dist/ai-action-group/src/ai-action-group.vue +602 -0
  16. package/dist/ai-action-group/src/ai-action-group.vue.d.ts +40 -0
  17. package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.cjs +61 -0
  18. package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.d.ts +1 -0
  19. package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.mjs +65 -0
  20. package/dist/ai-agent-card/__tests__/ai-agent-card.test.cjs +70 -0
  21. package/dist/ai-agent-card/__tests__/ai-agent-card.test.d.ts +1 -0
  22. package/dist/ai-agent-card/__tests__/ai-agent-card.test.mjs +64 -0
  23. package/dist/ai-agent-card/index.cjs +26 -0
  24. package/dist/ai-agent-card/index.d.ts +3 -0
  25. package/dist/ai-agent-card/index.mjs +5 -0
  26. package/dist/ai-agent-card/src/ai-agent-card.cjs +74 -0
  27. package/dist/ai-agent-card/src/ai-agent-card.css +859 -0
  28. package/dist/ai-agent-card/src/ai-agent-card.d.ts +122 -0
  29. package/dist/ai-agent-card/src/ai-agent-card.d.vue.ts +62 -0
  30. package/dist/ai-agent-card/src/ai-agent-card.mjs +68 -0
  31. package/dist/ai-agent-card/src/ai-agent-card.vue +1029 -0
  32. package/dist/ai-agent-card/src/ai-agent-card.vue.d.ts +62 -0
  33. package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.cjs +73 -0
  34. package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.d.ts +1 -0
  35. package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.mjs +68 -0
  36. package/dist/ai-artifacts/__tests__/ai-artifacts.test.cjs +128 -0
  37. package/dist/ai-artifacts/__tests__/ai-artifacts.test.d.ts +1 -0
  38. package/dist/ai-artifacts/__tests__/ai-artifacts.test.mjs +109 -0
  39. package/dist/ai-artifacts/index.cjs +26 -0
  40. package/dist/ai-artifacts/index.d.ts +3 -0
  41. package/dist/ai-artifacts/index.mjs +5 -0
  42. package/dist/ai-artifacts/src/ai-artifacts.cjs +55 -0
  43. package/dist/ai-artifacts/src/ai-artifacts.css +633 -0
  44. package/dist/ai-artifacts/src/ai-artifacts.d.ts +93 -0
  45. package/dist/ai-artifacts/src/ai-artifacts.d.vue.ts +33 -0
  46. package/dist/ai-artifacts/src/ai-artifacts.mjs +49 -0
  47. package/dist/ai-artifacts/src/ai-artifacts.vue +803 -0
  48. package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +33 -0
  49. package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.cjs +87 -0
  50. package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.d.ts +1 -0
  51. package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.mjs +58 -0
  52. package/dist/ai-bubble/__tests__/ai-bubble.test.cjs +227 -0
  53. package/dist/ai-bubble/__tests__/ai-bubble.test.d.ts +1 -0
  54. package/dist/ai-bubble/__tests__/ai-bubble.test.mjs +123 -0
  55. package/dist/ai-bubble/index.cjs +26 -0
  56. package/dist/ai-bubble/index.d.ts +3 -0
  57. package/dist/ai-bubble/index.mjs +5 -0
  58. package/dist/ai-bubble/src/ai-bubble.cjs +86 -0
  59. package/dist/ai-bubble/src/ai-bubble.css +932 -0
  60. package/dist/ai-bubble/src/ai-bubble.d.ts +126 -0
  61. package/dist/ai-bubble/src/ai-bubble.d.vue.ts +110 -0
  62. package/dist/ai-bubble/src/ai-bubble.mjs +80 -0
  63. package/dist/ai-bubble/src/ai-bubble.vue +1300 -0
  64. package/dist/ai-bubble/src/ai-bubble.vue.d.ts +110 -0
  65. package/dist/ai-chat/__tests__/ai-chat.ssr.test.cjs +82 -0
  66. package/dist/ai-chat/__tests__/ai-chat.ssr.test.d.ts +1 -0
  67. package/dist/ai-chat/__tests__/ai-chat.ssr.test.mjs +69 -0
  68. package/dist/ai-chat/__tests__/ai-chat.test.cjs +169 -0
  69. package/dist/ai-chat/__tests__/ai-chat.test.d.ts +1 -0
  70. package/dist/ai-chat/__tests__/ai-chat.test.mjs +121 -0
  71. package/dist/ai-chat/index.cjs +26 -0
  72. package/dist/ai-chat/index.d.ts +3 -0
  73. package/dist/ai-chat/index.mjs +5 -0
  74. package/dist/ai-chat/src/ai-chat.cjs +41 -0
  75. package/dist/ai-chat/src/ai-chat.css +503 -0
  76. package/dist/ai-chat/src/ai-chat.d.ts +57 -0
  77. package/dist/ai-chat/src/ai-chat.d.vue.ts +43 -0
  78. package/dist/ai-chat/src/ai-chat.mjs +35 -0
  79. package/dist/ai-chat/src/ai-chat.vue +606 -0
  80. package/dist/ai-chat/src/ai-chat.vue.d.ts +43 -0
  81. package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.cjs +66 -0
  82. package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.d.ts +1 -0
  83. package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.mjs +48 -0
  84. package/dist/ai-code-block/__tests__/ai-code-block.test.cjs +174 -0
  85. package/dist/ai-code-block/__tests__/ai-code-block.test.d.ts +1 -0
  86. package/dist/ai-code-block/__tests__/ai-code-block.test.mjs +108 -0
  87. package/dist/ai-code-block/index.cjs +26 -0
  88. package/dist/ai-code-block/index.d.ts +3 -0
  89. package/dist/ai-code-block/index.mjs +5 -0
  90. package/dist/ai-code-block/src/ai-code-block.cjs +79 -0
  91. package/dist/ai-code-block/src/ai-code-block.css +589 -0
  92. package/dist/ai-code-block/src/ai-code-block.d.ts +76 -0
  93. package/dist/ai-code-block/src/ai-code-block.d.vue.ts +63 -0
  94. package/dist/ai-code-block/src/ai-code-block.mjs +73 -0
  95. package/dist/ai-code-block/src/ai-code-block.vue +706 -0
  96. package/dist/ai-code-block/src/ai-code-block.vue.d.ts +63 -0
  97. package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.cjs +50 -0
  98. package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.d.ts +1 -0
  99. package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.mjs +42 -0
  100. package/dist/ai-conversations/__tests__/ai-conversations.test.cjs +67 -0
  101. package/dist/ai-conversations/__tests__/ai-conversations.test.d.ts +1 -0
  102. package/dist/ai-conversations/__tests__/ai-conversations.test.mjs +51 -0
  103. package/dist/ai-conversations/index.cjs +26 -0
  104. package/dist/ai-conversations/index.d.ts +3 -0
  105. package/dist/ai-conversations/index.mjs +5 -0
  106. package/dist/ai-conversations/src/ai-conversations.cjs +69 -0
  107. package/dist/ai-conversations/src/ai-conversations.css +679 -0
  108. package/dist/ai-conversations/src/ai-conversations.d.ts +67 -0
  109. package/dist/ai-conversations/src/ai-conversations.d.vue.ts +52 -0
  110. package/dist/ai-conversations/src/ai-conversations.mjs +63 -0
  111. package/dist/ai-conversations/src/ai-conversations.vue +949 -0
  112. package/dist/ai-conversations/src/ai-conversations.vue.d.ts +52 -0
  113. package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.cjs +62 -0
  114. package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.d.ts +1 -0
  115. package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.mjs +50 -0
  116. package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.cjs +315 -0
  117. package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.d.ts +1 -0
  118. package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.mjs +226 -0
  119. package/dist/ai-editor-sender/index.cjs +26 -0
  120. package/dist/ai-editor-sender/index.d.ts +3 -0
  121. package/dist/ai-editor-sender/index.mjs +5 -0
  122. package/dist/ai-editor-sender/src/ai-editor-sender.cjs +66 -0
  123. package/dist/ai-editor-sender/src/ai-editor-sender.css +566 -0
  124. package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +70 -0
  125. package/dist/ai-editor-sender/src/ai-editor-sender.d.vue.ts +70 -0
  126. package/dist/ai-editor-sender/src/ai-editor-sender.mjs +60 -0
  127. package/dist/ai-editor-sender/src/ai-editor-sender.vue +713 -0
  128. package/dist/ai-editor-sender/src/ai-editor-sender.vue.d.ts +70 -0
  129. package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.cjs +49 -0
  130. package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.d.ts +1 -0
  131. package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.mjs +41 -0
  132. package/dist/ai-prompts/__tests__/ai-prompts.test.cjs +54 -0
  133. package/dist/ai-prompts/__tests__/ai-prompts.test.d.ts +1 -0
  134. package/dist/ai-prompts/__tests__/ai-prompts.test.mjs +38 -0
  135. package/dist/ai-prompts/index.cjs +26 -0
  136. package/dist/ai-prompts/index.d.ts +3 -0
  137. package/dist/ai-prompts/index.mjs +5 -0
  138. package/dist/ai-prompts/src/ai-prompts.cjs +42 -0
  139. package/dist/ai-prompts/src/ai-prompts.css +572 -0
  140. package/dist/ai-prompts/src/ai-prompts.d.ts +45 -0
  141. package/dist/ai-prompts/src/ai-prompts.d.vue.ts +44 -0
  142. package/dist/ai-prompts/src/ai-prompts.mjs +36 -0
  143. package/dist/ai-prompts/src/ai-prompts.vue +646 -0
  144. package/dist/ai-prompts/src/ai-prompts.vue.d.ts +44 -0
  145. package/dist/ai-provider/__tests__/ai-provider.ssr.test.cjs +33 -0
  146. package/dist/ai-provider/__tests__/ai-provider.ssr.test.d.ts +1 -0
  147. package/dist/ai-provider/__tests__/ai-provider.ssr.test.mjs +34 -0
  148. package/dist/ai-provider/__tests__/ai-provider.test.cjs +38 -0
  149. package/dist/ai-provider/__tests__/ai-provider.test.d.ts +1 -0
  150. package/dist/ai-provider/__tests__/ai-provider.test.mjs +33 -0
  151. package/dist/ai-provider/index.cjs +38 -0
  152. package/dist/ai-provider/index.d.ts +4 -0
  153. package/dist/ai-provider/index.mjs +6 -0
  154. package/dist/ai-provider/src/ai-provider.cjs +7 -0
  155. package/dist/ai-provider/src/ai-provider.d.ts +88 -0
  156. package/dist/ai-provider/src/ai-provider.d.vue.ts +48 -0
  157. package/dist/ai-provider/src/ai-provider.mjs +1 -0
  158. package/dist/ai-provider/src/ai-provider.vue +24 -0
  159. package/dist/ai-provider/src/ai-provider.vue.d.ts +48 -0
  160. package/dist/ai-provider/src/use-ai-provider.cjs +11 -0
  161. package/dist/ai-provider/src/use-ai-provider.d.ts +10 -0
  162. package/dist/ai-provider/src/use-ai-provider.mjs +5 -0
  163. package/dist/ai-sender/__tests__/ai-sender.ssr.test.cjs +46 -0
  164. package/dist/ai-sender/__tests__/ai-sender.ssr.test.d.ts +1 -0
  165. package/dist/ai-sender/__tests__/ai-sender.ssr.test.mjs +37 -0
  166. package/dist/ai-sender/__tests__/ai-sender.test.cjs +388 -0
  167. package/dist/ai-sender/__tests__/ai-sender.test.d.ts +1 -0
  168. package/dist/ai-sender/__tests__/ai-sender.test.mjs +248 -0
  169. package/dist/ai-sender/index.cjs +26 -0
  170. package/dist/ai-sender/index.d.ts +3 -0
  171. package/dist/ai-sender/index.mjs +5 -0
  172. package/dist/ai-sender/src/ai-sender.cjs +91 -0
  173. package/dist/ai-sender/src/ai-sender.css +754 -0
  174. package/dist/ai-sender/src/ai-sender.d.ts +140 -0
  175. package/dist/ai-sender/src/ai-sender.d.vue.ts +69 -0
  176. package/dist/ai-sender/src/ai-sender.mjs +85 -0
  177. package/dist/ai-sender/src/ai-sender.vue +1032 -0
  178. package/dist/ai-sender/src/ai-sender.vue.d.ts +69 -0
  179. package/dist/ai-sources/__tests__/ai-sources.ssr.test.cjs +72 -0
  180. package/dist/ai-sources/__tests__/ai-sources.ssr.test.d.ts +1 -0
  181. package/dist/ai-sources/__tests__/ai-sources.ssr.test.mjs +82 -0
  182. package/dist/ai-sources/__tests__/ai-sources.test.cjs +93 -0
  183. package/dist/ai-sources/__tests__/ai-sources.test.d.ts +1 -0
  184. package/dist/ai-sources/__tests__/ai-sources.test.mjs +89 -0
  185. package/dist/ai-sources/index.cjs +26 -0
  186. package/dist/ai-sources/index.d.ts +3 -0
  187. package/dist/ai-sources/index.mjs +5 -0
  188. package/dist/ai-sources/src/ai-sources.cjs +59 -0
  189. package/dist/ai-sources/src/ai-sources.css +830 -0
  190. package/dist/ai-sources/src/ai-sources.d.ts +79 -0
  191. package/dist/ai-sources/src/ai-sources.d.vue.ts +45 -0
  192. package/dist/ai-sources/src/ai-sources.mjs +53 -0
  193. package/dist/ai-sources/src/ai-sources.vue +1109 -0
  194. package/dist/ai-sources/src/ai-sources.vue.d.ts +45 -0
  195. package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.cjs +56 -0
  196. package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.d.ts +1 -0
  197. package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.mjs +42 -0
  198. package/dist/ai-thinking/__tests__/ai-thinking.test.cjs +151 -0
  199. package/dist/ai-thinking/__tests__/ai-thinking.test.d.ts +1 -0
  200. package/dist/ai-thinking/__tests__/ai-thinking.test.mjs +96 -0
  201. package/dist/ai-thinking/index.cjs +26 -0
  202. package/dist/ai-thinking/index.d.ts +3 -0
  203. package/dist/ai-thinking/index.mjs +5 -0
  204. package/dist/ai-thinking/src/ai-thinking.cjs +44 -0
  205. package/dist/ai-thinking/src/ai-thinking.css +543 -0
  206. package/dist/ai-thinking/src/ai-thinking.d.ts +42 -0
  207. package/dist/ai-thinking/src/ai-thinking.d.vue.ts +33 -0
  208. package/dist/ai-thinking/src/ai-thinking.mjs +38 -0
  209. package/dist/ai-thinking/src/ai-thinking.vue +631 -0
  210. package/dist/ai-thinking/src/ai-thinking.vue.d.ts +33 -0
  211. package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.cjs +83 -0
  212. package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.d.ts +1 -0
  213. package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.mjs +52 -0
  214. package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.cjs +204 -0
  215. package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.d.ts +1 -0
  216. package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.mjs +134 -0
  217. package/dist/ai-thought-chain/index.cjs +26 -0
  218. package/dist/ai-thought-chain/index.d.ts +3 -0
  219. package/dist/ai-thought-chain/index.mjs +5 -0
  220. package/dist/ai-thought-chain/src/ai-thought-chain.cjs +68 -0
  221. package/dist/ai-thought-chain/src/ai-thought-chain.css +668 -0
  222. package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +82 -0
  223. package/dist/ai-thought-chain/src/ai-thought-chain.d.vue.ts +83 -0
  224. package/dist/ai-thought-chain/src/ai-thought-chain.mjs +62 -0
  225. package/dist/ai-thought-chain/src/ai-thought-chain.vue +813 -0
  226. package/dist/ai-thought-chain/src/ai-thought-chain.vue.d.ts +83 -0
  227. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.cjs +32 -0
  228. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.d.ts +1 -0
  229. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.mjs +25 -0
  230. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.cjs +113 -0
  231. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.d.ts +1 -0
  232. package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.mjs +93 -0
  233. package/dist/ai-voice-trigger/index.cjs +26 -0
  234. package/dist/ai-voice-trigger/index.d.ts +3 -0
  235. package/dist/ai-voice-trigger/index.mjs +5 -0
  236. package/dist/ai-voice-trigger/src/ai-voice-trigger.cjs +35 -0
  237. package/dist/ai-voice-trigger/src/ai-voice-trigger.css +603 -0
  238. package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +37 -0
  239. package/dist/ai-voice-trigger/src/ai-voice-trigger.d.vue.ts +29 -0
  240. package/dist/ai-voice-trigger/src/ai-voice-trigger.mjs +29 -0
  241. package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +708 -0
  242. package/dist/ai-voice-trigger/src/ai-voice-trigger.vue.d.ts +29 -0
  243. package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.cjs +57 -0
  244. package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.d.ts +1 -0
  245. package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.mjs +39 -0
  246. package/dist/ai-welcome/__tests__/ai-welcome.test.cjs +169 -0
  247. package/dist/ai-welcome/__tests__/ai-welcome.test.d.ts +1 -0
  248. package/dist/ai-welcome/__tests__/ai-welcome.test.mjs +113 -0
  249. package/dist/ai-welcome/index.cjs +26 -0
  250. package/dist/ai-welcome/index.d.ts +3 -0
  251. package/dist/ai-welcome/index.mjs +5 -0
  252. package/dist/ai-welcome/src/ai-welcome.cjs +56 -0
  253. package/dist/ai-welcome/src/ai-welcome.css +591 -0
  254. package/dist/ai-welcome/src/ai-welcome.d.ts +59 -0
  255. package/dist/ai-welcome/src/ai-welcome.d.vue.ts +51 -0
  256. package/dist/ai-welcome/src/ai-welcome.mjs +50 -0
  257. package/dist/ai-welcome/src/ai-welcome.vue +655 -0
  258. package/dist/ai-welcome/src/ai-welcome.vue.d.ts +51 -0
  259. package/dist/alert/src/alert.d.vue.ts +5 -5
  260. package/dist/alert/src/alert.vue.d.ts +5 -5
  261. package/dist/autocomplete/src/autocomplete.d.vue.ts +2 -2
  262. package/dist/autocomplete/src/autocomplete.vue.d.ts +2 -2
  263. package/dist/avatar/index.d.ts +39 -1
  264. package/dist/back-top/src/back-top.d.vue.ts +1 -1
  265. package/dist/back-top/src/back-top.vue.d.ts +1 -1
  266. package/dist/button/index.d.ts +3 -3
  267. package/dist/button/src/button.css +3 -3
  268. package/dist/button/src/button.d.vue.ts +1 -1
  269. package/dist/button/src/button.vue +3 -3
  270. package/dist/button/src/button.vue.d.ts +1 -1
  271. package/dist/calendar/src/calendar.d.vue.ts +2 -2
  272. package/dist/calendar/src/calendar.vue.d.ts +2 -2
  273. package/dist/cascader/src/cascader-panel.d.vue.ts +2 -2
  274. package/dist/cascader/src/cascader-panel.vue.d.ts +2 -2
  275. package/dist/checkbox/index.d.ts +3 -3
  276. package/dist/checkbox/src/checkbox-group.d.vue.ts +1 -1
  277. package/dist/checkbox/src/checkbox-group.vue +13 -1
  278. package/dist/checkbox/src/checkbox-group.vue.d.ts +1 -1
  279. package/dist/checkbox/src/checkbox.d.ts +12 -0
  280. package/dist/col/src/col.d.vue.ts +4 -4
  281. package/dist/col/src/col.vue.d.ts +4 -4
  282. package/dist/color-picker/src/color-picker.d.vue.ts +1 -1
  283. package/dist/color-picker/src/color-picker.vue.d.ts +1 -1
  284. package/dist/component.d.ts +63 -0
  285. package/dist/date-picker/src/date-picker.d.vue.ts +4 -4
  286. package/dist/date-picker/src/date-picker.vue.d.ts +4 -4
  287. package/dist/descriptions/src/description-item.d.vue.ts +1 -1
  288. package/dist/descriptions/src/description-item.vue.d.ts +1 -1
  289. package/dist/dialog/src/dialog.d.vue.ts +6 -6
  290. package/dist/dialog/src/dialog.vue.d.ts +6 -6
  291. package/dist/drawer/src/drawer.d.vue.ts +3 -3
  292. package/dist/drawer/src/drawer.vue.d.ts +3 -3
  293. package/dist/dropdown/src/dropdown-item.d.vue.ts +1 -1
  294. package/dist/dropdown/src/dropdown-item.vue.d.ts +1 -1
  295. package/dist/dropdown/src/dropdown.d.vue.ts +8 -8
  296. package/dist/dropdown/src/dropdown.vue.d.ts +8 -8
  297. package/dist/form/__tests__/form-schema.test.cjs +477 -24
  298. package/dist/form/__tests__/form-schema.test.mjs +277 -57
  299. package/dist/form/index.cjs +12 -0
  300. package/dist/form/index.d.ts +1 -2
  301. package/dist/form/index.mjs +1 -0
  302. package/dist/form/src/form-item.d.vue.ts +2 -1
  303. package/dist/form/src/form-item.vue +3 -1
  304. package/dist/form/src/form-item.vue.d.ts +2 -1
  305. package/dist/form/src/form-schema.cjs +2 -1
  306. package/dist/form/src/form-schema.d.ts +124 -19
  307. package/dist/form/src/form-schema.d.vue.ts +69 -19
  308. package/dist/form/src/form-schema.mjs +2 -1
  309. package/dist/form/src/form-schema.vue +522 -160
  310. package/dist/form/src/form-schema.vue.d.ts +69 -19
  311. package/dist/form/src/form.cjs +7 -0
  312. package/dist/form/src/form.d.ts +20 -0
  313. package/dist/form/src/form.d.vue.ts +10 -1
  314. package/dist/form/src/form.mjs +7 -0
  315. package/dist/form/src/form.vue +22 -10
  316. package/dist/form/src/form.vue.d.ts +10 -1
  317. package/dist/grid/src/grid.d.vue.ts +1 -1
  318. package/dist/grid/src/grid.vue.d.ts +1 -1
  319. package/dist/icon/src/icons/index.cjs +122 -2
  320. package/dist/icon/src/icons/index.d.ts +24 -0
  321. package/dist/icon/src/icons/index.mjs +145 -1
  322. package/dist/image/index.d.ts +356 -2
  323. package/dist/image/src/image-viewer.d.vue.ts +3 -3
  324. package/dist/image/src/image-viewer.vue.d.ts +3 -3
  325. package/dist/image/src/image.d.vue.ts +4 -4
  326. package/dist/image/src/image.vue.d.ts +4 -4
  327. package/dist/index.cjs +193 -1
  328. package/dist/index.d.ts +16 -0
  329. package/dist/index.mjs +49 -1
  330. package/dist/input/index.d.ts +18 -18
  331. package/dist/input/src/input.d.vue.ts +6 -6
  332. package/dist/input/src/input.vue.d.ts +6 -6
  333. package/dist/input-tag/src/input-tag.d.vue.ts +2 -2
  334. package/dist/input-tag/src/input-tag.vue.d.ts +2 -2
  335. package/dist/mention/src/mention.d.vue.ts +8 -8
  336. package/dist/mention/src/mention.vue.d.ts +8 -8
  337. package/dist/menu/src/menu.d.vue.ts +4 -4
  338. package/dist/menu/src/menu.vue.d.ts +4 -4
  339. package/dist/message/src/message.d.vue.ts +1 -1
  340. package/dist/message/src/message.vue.d.ts +1 -1
  341. package/dist/popconfirm/src/popconfirm.d.vue.ts +5 -5
  342. package/dist/popconfirm/src/popconfirm.vue.d.ts +5 -5
  343. package/dist/popover/src/popover.d.vue.ts +4 -4
  344. package/dist/popover/src/popover.vue.d.ts +4 -4
  345. package/dist/progress/src/progress.d.vue.ts +1 -1
  346. package/dist/progress/src/progress.vue.d.ts +1 -1
  347. package/dist/radio/src/radio-group.d.vue.ts +1 -1
  348. package/dist/radio/src/radio-group.vue +25 -4
  349. package/dist/radio/src/radio-group.vue.d.ts +1 -1
  350. package/dist/radio/src/radio.d.ts +12 -0
  351. package/dist/rate/src/rate.d.vue.ts +1 -1
  352. package/dist/rate/src/rate.vue.d.ts +1 -1
  353. package/dist/select/src/select.d.vue.ts +1 -1
  354. package/dist/select/src/select.vue.d.ts +1 -1
  355. package/dist/skeleton/src/skeleton.d.vue.ts +1 -1
  356. package/dist/skeleton/src/skeleton.vue.d.ts +1 -1
  357. package/dist/slider/src/slider.d.vue.ts +1 -1
  358. package/dist/slider/src/slider.vue.d.ts +1 -1
  359. package/dist/steps/src/step.d.vue.ts +1 -1
  360. package/dist/steps/src/step.vue.d.ts +1 -1
  361. package/dist/switch/src/switch.d.vue.ts +2 -2
  362. package/dist/switch/src/switch.vue.d.ts +2 -2
  363. package/dist/table/__tests__/table.perf.test.cjs +2 -2
  364. package/dist/table/__tests__/table.perf.test.mjs +2 -2
  365. package/dist/table/__tests__/table.test.cjs +18 -0
  366. package/dist/table/__tests__/table.test.mjs +18 -0
  367. package/dist/table/__tests__/use-table-import.test.cjs +6 -0
  368. package/dist/table/__tests__/use-table-import.test.mjs +8 -1
  369. package/dist/table/src/table-column.d.vue.ts +1 -1
  370. package/dist/table/src/table-column.vue.d.ts +1 -1
  371. package/dist/table/src/table.d.vue.ts +1 -1
  372. package/dist/table/src/table.vue.d.ts +1 -1
  373. package/dist/tabs/src/tab-pane.d.vue.ts +1 -1
  374. package/dist/tabs/src/tab-pane.vue.d.ts +1 -1
  375. package/dist/tabs/src/tabs.d.vue.ts +2 -2
  376. package/dist/tabs/src/tabs.vue.d.ts +2 -2
  377. package/dist/tooltip/index.d.ts +7 -7
  378. package/dist/tooltip/src/tooltip.d.vue.ts +7 -7
  379. package/dist/tooltip/src/tooltip.vue.d.ts +7 -7
  380. package/dist/tree/src/tree.d.vue.ts +1 -1
  381. package/dist/tree/src/tree.vue.d.ts +1 -1
  382. package/dist/tree-select/src/tree-select.d.vue.ts +3 -3
  383. package/dist/tree-select/src/tree-select.vue.d.ts +3 -3
  384. package/dist/upload/src/upload.d.vue.ts +1 -1
  385. package/dist/upload/src/upload.vue.d.ts +1 -1
  386. package/package.json +8 -5
@@ -118,17 +118,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
118
118
  readonly visible: boolean | null;
119
119
  readonly maxHeight: string | number;
120
120
  readonly transition: string;
121
- readonly effect: string;
122
- readonly scrollable: boolean;
123
121
  readonly placement: import("@floating-ui/dom").Placement;
124
- readonly popperClass: string;
125
- readonly popperStyle: CSSProperties;
126
122
  readonly trigger: "click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[];
127
123
  readonly showAfter: number;
128
124
  readonly hideAfter: number;
129
125
  readonly showArrow: boolean;
130
126
  readonly interactive: boolean;
127
+ readonly effect: string;
128
+ readonly popperClass: string;
131
129
  readonly persistent: boolean;
130
+ readonly scrollable: boolean;
131
+ readonly popperStyle: CSSProperties;
132
132
  readonly matchTriggerWidth: boolean;
133
133
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
134
134
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -178,10 +178,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
178
178
  readonly icon: string;
179
179
  readonly strokeLinecap: "round" | "butt" | "square";
180
180
  readonly strokeWidth: number;
181
+ readonly percentage: number | number[];
181
182
  readonly duration: number;
182
183
  readonly indeterminate: boolean;
183
184
  readonly steps: number;
184
- readonly percentage: number | number[];
185
185
  readonly secondaryPercentage: number;
186
186
  readonly textInside: boolean;
187
187
  readonly showText: boolean;
@@ -178,10 +178,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
178
178
  readonly icon: string;
179
179
  readonly strokeLinecap: "round" | "butt" | "square";
180
180
  readonly strokeWidth: number;
181
+ readonly percentage: number | number[];
181
182
  readonly duration: number;
182
183
  readonly indeterminate: boolean;
183
184
  readonly steps: number;
184
- readonly percentage: number | number[];
185
185
  readonly secondaryPercentage: number;
186
186
  readonly textInside: boolean;
187
187
  readonly showText: boolean;
@@ -11,8 +11,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}
11
11
  "onUpdate:modelValue"?: ((value: RadioValueType) => any) | undefined;
12
12
  }>, {
13
13
  disabled: boolean;
14
- validateEvent: boolean;
15
14
  tag: string | import("vue").Component;
15
+ validateEvent: boolean;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
18
  export default _default;
@@ -3,12 +3,14 @@ import { computed, provide, toRefs } from "vue";
3
3
  import { useNamespace, useFormItem, useId } from "@yh-ui/hooks";
4
4
  import { useComponentTheme } from "@yh-ui/theme";
5
5
  import { useConfig } from "@yh-ui/hooks";
6
+ import YhRadio from "./radio.vue";
6
7
  import { radioGroupContextKey } from "./radio";
7
8
  defineOptions({
8
9
  name: "YhRadioGroup"
9
10
  });
10
11
  const props = defineProps({
11
12
  modelValue: { type: [String, Number, Boolean], required: false },
13
+ options: { type: Array, required: false },
12
14
  size: { type: null, required: false },
13
15
  disabled: { type: Boolean, required: false, default: false },
14
16
  name: { type: String, required: false },
@@ -20,7 +22,10 @@ const props = defineProps({
20
22
  });
21
23
  const emit = defineEmits(["update:modelValue", "change"]);
22
24
  const ns = useNamespace("radio-group");
23
- const { themeStyle } = useComponentTheme("radio-group", computed(() => props.themeOverrides));
25
+ const { themeStyle } = useComponentTheme(
26
+ "radio-group",
27
+ computed(() => props.themeOverrides)
28
+ );
24
29
  const { formItem } = useFormItem();
25
30
  const { validate } = useFormItem();
26
31
  const labelId = useId().value;
@@ -65,10 +70,26 @@ const groupClasses = computed(() => [
65
70
  </script>
66
71
 
67
72
  <template>
68
- <component :is="tag" :class="groupClasses" :style="themeStyle" role="radiogroup" :aria-labelledby="labelId"
73
+ <component
74
+ :is="tag"
75
+ :class="groupClasses"
76
+ :style="themeStyle"
77
+ role="radiogroup"
78
+ :aria-labelledby="labelId"
69
79
  :aria-invalid="formItem?.validateStatus === 'error'"
70
- :aria-describedby="formItem?.validateStatus === 'error' ? formItem?.errorId : void 0">
71
- <slot />
80
+ :aria-describedby="formItem?.validateStatus === 'error' ? formItem?.errorId : void 0"
81
+ >
82
+ <slot>
83
+ <template v-if="options && options.length">
84
+ <yh-radio
85
+ v-for="item in options"
86
+ :key="String(item.value)"
87
+ :value="item.value"
88
+ :label="item.label"
89
+ :disabled="item.disabled"
90
+ />
91
+ </template>
92
+ </slot>
72
93
  </component>
73
94
  </template>
74
95
 
@@ -11,8 +11,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}
11
11
  "onUpdate:modelValue"?: ((value: RadioValueType) => any) | undefined;
12
12
  }>, {
13
13
  disabled: boolean;
14
- validateEvent: boolean;
15
14
  tag: string | import("vue").Component;
15
+ validateEvent: boolean;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
18
  export default _default;
@@ -93,6 +93,14 @@ export interface RadioExpose {
93
93
  */
94
94
  blur: () => void;
95
95
  }
96
+ /**
97
+ * RadioGroup 选项定义
98
+ */
99
+ export interface RadioGroupOption {
100
+ value: RadioValueType;
101
+ label?: string;
102
+ disabled?: boolean;
103
+ }
96
104
  /**
97
105
  * RadioGroup Props 定义
98
106
  */
@@ -101,6 +109,10 @@ export interface RadioGroupProps {
101
109
  * @description 绑定值
102
110
  */
103
111
  modelValue?: RadioValueType;
112
+ /**
113
+ * @description 单选配置项
114
+ */
115
+ options?: RadioGroupOption[];
104
116
  /**
105
117
  * @description 单选框组尺寸
106
118
  */
@@ -87,6 +87,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
87
87
  readonly icon: string | import("vue").Component;
88
88
  readonly modelValue: number;
89
89
  readonly clearable: boolean;
90
+ readonly showScore: boolean;
90
91
  readonly max: number;
91
92
  readonly textColor: string;
92
93
  readonly texts: string[];
@@ -97,7 +98,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
97
98
  readonly colors: string | string[] | Record<number, string>;
98
99
  readonly voidColor: string;
99
100
  readonly disabledVoidColor: string;
100
- readonly showScore: boolean;
101
101
  readonly scoreTemplate: string;
102
102
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
103
103
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -87,6 +87,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
87
87
  readonly icon: string | import("vue").Component;
88
88
  readonly modelValue: number;
89
89
  readonly clearable: boolean;
90
+ readonly showScore: boolean;
90
91
  readonly max: number;
91
92
  readonly textColor: string;
92
93
  readonly texts: string[];
@@ -97,7 +98,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
97
98
  readonly colors: string | string[] | Record<number, string>;
98
99
  readonly voidColor: string;
99
100
  readonly disabledVoidColor: string;
100
- readonly showScore: boolean;
101
101
  readonly scoreTemplate: string;
102
102
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
103
103
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -39,11 +39,11 @@ declare const __VLS_component: import("vue").DefineComponent<SelectProps, {
39
39
  height: number;
40
40
  size: import("./select").SelectSize;
41
41
  multiple: boolean;
42
+ loading: boolean;
42
43
  clearable: boolean;
43
44
  valueKey: string;
44
45
  fitInputWidth: boolean;
45
46
  validateEvent: boolean;
46
- loading: boolean;
47
47
  itemHeight: number;
48
48
  filterable: boolean;
49
49
  collapseTags: boolean;
@@ -39,11 +39,11 @@ declare const __VLS_component: import("vue").DefineComponent<SelectProps, {
39
39
  height: number;
40
40
  size: import("./select").SelectSize;
41
41
  multiple: boolean;
42
+ loading: boolean;
42
43
  clearable: boolean;
43
44
  valueKey: string;
44
45
  fitInputWidth: boolean;
45
46
  validateEvent: boolean;
46
- loading: boolean;
47
47
  itemHeight: number;
48
48
  filterable: boolean;
49
49
  collapseTags: boolean;
@@ -75,8 +75,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
75
75
  readonly title: boolean;
76
76
  readonly loading: boolean;
77
77
  readonly avatar: boolean;
78
- readonly rows: number;
79
78
  readonly lazy: boolean;
79
+ readonly rows: number;
80
80
  readonly animated: boolean;
81
81
  readonly throttle: number;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -75,8 +75,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
75
75
  readonly title: boolean;
76
76
  readonly loading: boolean;
77
77
  readonly avatar: boolean;
78
- readonly rows: number;
79
78
  readonly lazy: boolean;
79
+ readonly rows: number;
80
80
  readonly animated: boolean;
81
81
  readonly throttle: number;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -129,9 +129,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
129
129
  vertical: boolean;
130
130
  range: boolean;
131
131
  label: string;
132
+ placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
132
133
  modelValue: SliderValueType;
133
134
  debounce: number;
134
- placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-end" | "left-start" | "right-end" | "right-start";
135
135
  validateEvent: boolean;
136
136
  max: number;
137
137
  min: number;
@@ -129,9 +129,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
129
129
  vertical: boolean;
130
130
  range: boolean;
131
131
  label: string;
132
+ placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
132
133
  modelValue: SliderValueType;
133
134
  debounce: number;
134
- placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-end" | "left-start" | "right-end" | "right-start";
135
135
  validateEvent: boolean;
136
136
  max: number;
137
137
  min: number;
@@ -93,8 +93,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
93
93
  readonly time: string;
94
94
  readonly title: string;
95
95
  readonly description: string;
96
- readonly lazy: boolean;
97
96
  readonly status: "wait" | "error" | "success" | "finish" | "process";
97
+ readonly lazy: boolean;
98
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
99
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
100
100
  export default _default;
@@ -93,8 +93,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
93
93
  readonly time: string;
94
94
  readonly title: string;
95
95
  readonly description: string;
96
- readonly lazy: boolean;
97
96
  readonly status: "wait" | "error" | "success" | "finish" | "process";
97
+ readonly lazy: boolean;
98
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
99
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
100
100
  export default _default;
@@ -107,10 +107,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
107
107
  name: string;
108
108
  width: string | number;
109
109
  size: "" | "small" | "default" | "large";
110
- modelValue: SwitchValueType;
111
- validateEvent: boolean;
112
110
  loading: boolean;
113
111
  id: string;
112
+ modelValue: SwitchValueType;
113
+ validateEvent: boolean;
114
114
  tabindex: string | number;
115
115
  ariaLabel: string;
116
116
  inlinePrompt: boolean;
@@ -107,10 +107,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
107
107
  name: string;
108
108
  width: string | number;
109
109
  size: "" | "small" | "default" | "large";
110
- modelValue: SwitchValueType;
111
- validateEvent: boolean;
112
110
  loading: boolean;
113
111
  id: string;
112
+ modelValue: SwitchValueType;
113
+ validateEvent: boolean;
114
114
  tabindex: string | number;
115
115
  ariaLabel: string;
116
116
  inlinePrompt: boolean;
@@ -102,7 +102,7 @@ let ROWS_100;
102
102
  console.log(`[PERF] \u6302\u8F7D\u65F6\u95F4 - 100\u884C: ${t100.toFixed(2)}ms 500\u884C: ${t500.toFixed(2)}ms 2k\u884C: ${t2k.toFixed(2)}ms`);
103
103
  const ratio = t2k / t100;
104
104
  console.log(`[PERF] 2k/100 \u65F6\u95F4\u589E\u957F\u6BD4: ${ratio.toFixed(2)}x`);
105
- (0, _vitest.expect)(ratio).toBeLessThan(25);
105
+ (0, _vitest.expect)(ratio).toBeLessThan(150);
106
106
  (0, _vitest.expect)(t100).toBeLessThan(5e3);
107
107
  (0, _vitest.expect)(t500).toBeLessThan(8e3);
108
108
  (0, _vitest.expect)(t2k).toBeLessThan(1e4);
@@ -183,7 +183,7 @@ let ROWS_100;
183
183
  const max = Math.max(...times);
184
184
  console.log(`[PERF] \u91CD\u590D\u6302\u8F7D ${ROUNDS} \u6B21 - \u5E73\u5747: ${avg.toFixed(2)}ms \u6700\u5927: ${max.toFixed(2)}ms`);
185
185
  console.log(`[PERF] \u5404\u8F6E\u8017\u65F6: ${times.map(t => t.toFixed(1)).join(" / ")} ms`);
186
- (0, _vitest.expect)(max).toBeLessThan(8e3);
186
+ (0, _vitest.expect)(max).toBeLessThan(12e3);
187
187
  const degradation = times[ROUNDS - 1] / times[0];
188
188
  console.log(`[PERF] \u6027\u80FD\u964D\u7EA7\u6BD4\uFF08\u6700\u540E/\u7B2C\u4E00\uFF09: ${degradation.toFixed(2)}x`);
189
189
  (0, _vitest.expect)(degradation).toBeLessThan(3);
@@ -82,7 +82,7 @@ describe("YhTable \u865A\u62DF\u6EDA\u52A8\u6027\u80FD\u57FA\u51C6\u6D4B\u8BD5",
82
82
  );
83
83
  const ratio = t2k / t100;
84
84
  console.log(`[PERF] 2k/100 \u65F6\u95F4\u589E\u957F\u6BD4: ${ratio.toFixed(2)}x`);
85
- expect(ratio).toBeLessThan(25);
85
+ expect(ratio).toBeLessThan(150);
86
86
  expect(t100).toBeLessThan(5e3);
87
87
  expect(t500).toBeLessThan(8e3);
88
88
  expect(t2k).toBeLessThan(1e4);
@@ -175,7 +175,7 @@ describe("YhTable \u865A\u62DF\u6EDA\u52A8\u6027\u80FD\u57FA\u51C6\u6D4B\u8BD5",
175
175
  `[PERF] \u91CD\u590D\u6302\u8F7D ${ROUNDS} \u6B21 - \u5E73\u5747: ${avg.toFixed(2)}ms \u6700\u5927: ${max.toFixed(2)}ms`
176
176
  );
177
177
  console.log(`[PERF] \u5404\u8F6E\u8017\u65F6: ${times.map((t) => t.toFixed(1)).join(" / ")} ms`);
178
- expect(max).toBeLessThan(8e3);
178
+ expect(max).toBeLessThan(12e3);
179
179
  const degradation = times[ROUNDS - 1] / times[0];
180
180
  console.log(`[PERF] \u6027\u80FD\u964D\u7EA7\u6BD4\uFF08\u6700\u540E/\u7B2C\u4E00\uFF09: ${degradation.toFixed(2)}x`);
181
181
  expect(degradation).toBeLessThan(3);
@@ -636,6 +636,15 @@ const mockColumns = [{
636
636
  pageSize: 2,
637
637
  total: mockData.length
638
638
  }
639
+ },
640
+ global: {
641
+ stubs: {
642
+ YhPagination: true,
643
+ YhSelect: true,
644
+ YhOption: true,
645
+ YhInput: true,
646
+ YhTooltip: true
647
+ }
639
648
  }
640
649
  });
641
650
  (0, _vitest.expect)(wrapper.find(".yh-table__pagination-wrapper").exists()).toBe(true);
@@ -651,6 +660,15 @@ const mockColumns = [{
651
660
  pageSize: 2,
652
661
  total: mockData.length
653
662
  }
663
+ },
664
+ global: {
665
+ stubs: {
666
+ YhPagination: true,
667
+ YhSelect: true,
668
+ YhOption: true,
669
+ YhInput: true,
670
+ YhTooltip: true
671
+ }
654
672
  }
655
673
  });
656
674
  const pagination = wrapper.findComponent({
@@ -573,6 +573,15 @@ describe("Table Complex Scenarios", () => {
573
573
  pageSize: 2,
574
574
  total: mockData.length
575
575
  }
576
+ },
577
+ global: {
578
+ stubs: {
579
+ YhPagination: true,
580
+ YhSelect: true,
581
+ YhOption: true,
582
+ YhInput: true,
583
+ YhTooltip: true
584
+ }
576
585
  }
577
586
  });
578
587
  expect(wrapper.find(".yh-table__pagination-wrapper").exists()).toBe(true);
@@ -588,6 +597,15 @@ describe("Table Complex Scenarios", () => {
588
597
  pageSize: 2,
589
598
  total: mockData.length
590
599
  }
600
+ },
601
+ global: {
602
+ stubs: {
603
+ YhPagination: true,
604
+ YhSelect: true,
605
+ YhOption: true,
606
+ YhInput: true,
607
+ YhTooltip: true
608
+ }
591
609
  }
592
610
  });
593
611
  const pagination = wrapper.findComponent({ name: "YhPagination" });
@@ -20,6 +20,12 @@ _vitest.vi.mock("@yh-ui/hooks", () => ({
20
20
  prop: "age",
21
21
  label: "Age"
22
22
  }]);
23
+ (0, _vitest.beforeEach)(() => {
24
+ _vitest.vi.spyOn(console, "error").mockImplementation(() => {});
25
+ });
26
+ (0, _vitest.afterEach)(() => {
27
+ _vitest.vi.restoreAllMocks();
28
+ });
23
29
  (0, _vitest.it)("parseCSV / parseTXT should map rows correctly", () => {
24
30
  const {
25
31
  parseCSV,
@@ -1,4 +1,4 @@
1
- import { describe, it, expect, vi } from "vitest";
1
+ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
2
2
  import { ref } from "vue";
3
3
  import { useTableImport } from "../src/use-table-import.mjs";
4
4
  vi.mock("@yh-ui/hooks", () => ({
@@ -11,6 +11,13 @@ describe("useTableImport hook", () => {
11
11
  { prop: "name", label: "Name" },
12
12
  { prop: "age", label: "Age" }
13
13
  ]);
14
+ beforeEach(() => {
15
+ vi.spyOn(console, "error").mockImplementation(() => {
16
+ });
17
+ });
18
+ afterEach(() => {
19
+ vi.restoreAllMocks();
20
+ });
14
21
  it("parseCSV / parseTXT should map rows correctly", () => {
15
22
  const { parseCSV, parseTXT } = useTableImport(mockData, mockColumns);
16
23
  const csvContent = `ID,Name,Age
@@ -59,9 +59,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
59
59
  maxWidth: number | string;
60
60
  minWidth: number | string;
61
61
  label: string;
62
+ className: string;
62
63
  filterable: boolean;
63
64
  align: "left" | "center" | "right";
64
- className: string;
65
65
  headerAlign: "left" | "center" | "right";
66
66
  resizable: boolean;
67
67
  prop: string;
@@ -59,9 +59,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
59
59
  maxWidth: number | string;
60
60
  minWidth: number | string;
61
61
  label: string;
62
+ className: string;
62
63
  filterable: boolean;
63
64
  align: "left" | "center" | "right";
64
- className: string;
65
65
  headerAlign: "left" | "center" | "right";
66
66
  resizable: boolean;
67
67
  prop: string;
@@ -464,7 +464,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
464
464
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
465
465
  readonly data: Record<string, unknown>[];
466
466
  readonly size: import("./table").TableSize;
467
- readonly border: boolean | "none" | "inner" | "outer" | "full";
467
+ readonly border: boolean | "none" | "inner" | "full" | "outer";
468
468
  readonly tableLayout: "fixed" | "auto";
469
469
  readonly columns: TableColumn<Record<string, unknown>>[];
470
470
  readonly loading: boolean | import("./table").TableLoadingConfig;
@@ -464,7 +464,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
464
464
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
465
465
  readonly data: Record<string, unknown>[];
466
466
  readonly size: import("./table").TableSize;
467
- readonly border: boolean | "none" | "inner" | "outer" | "full";
467
+ readonly border: boolean | "none" | "inner" | "full" | "outer";
468
468
  readonly tableLayout: "fixed" | "auto";
469
469
  readonly columns: TableColumn<Record<string, unknown>>[];
470
470
  readonly loading: boolean | import("./table").TableLoadingConfig;
@@ -65,8 +65,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
65
65
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
66
66
  readonly icon: string;
67
67
  readonly label: string;
68
- readonly closable: boolean;
69
68
  readonly lazy: boolean;
69
+ readonly closable: boolean;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
71
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
72
72
  export default _default;
@@ -65,8 +65,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
65
65
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
66
66
  readonly icon: string;
67
67
  readonly label: string;
68
- readonly closable: boolean;
69
68
  readonly lazy: boolean;
69
+ readonly closable: boolean;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
71
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
72
72
  export default _default;
@@ -87,10 +87,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
87
87
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
88
88
  readonly type: "line" | "card" | "border-card" | "segment";
89
89
  readonly stretch: boolean;
90
- readonly closable: boolean;
91
- readonly modelValue: string | number;
92
90
  readonly trigger: "click" | "hover";
93
91
  readonly contentClass: string;
92
+ readonly modelValue: string | number;
93
+ readonly closable: boolean;
94
94
  readonly draggable: boolean;
95
95
  readonly activeColor: string;
96
96
  readonly tabPosition: "top" | "bottom" | "left" | "right";
@@ -87,10 +87,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
87
87
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
88
88
  readonly type: "line" | "card" | "border-card" | "segment";
89
89
  readonly stretch: boolean;
90
- readonly closable: boolean;
91
- readonly modelValue: string | number;
92
90
  readonly trigger: "click" | "hover";
93
91
  readonly contentClass: string;
92
+ readonly modelValue: string | number;
93
+ readonly closable: boolean;
94
94
  readonly draggable: boolean;
95
95
  readonly activeColor: string;
96
96
  readonly tabPosition: "top" | "bottom" | "left" | "right";
@@ -20,23 +20,23 @@ export declare const YhTooltip: import("@yh-ui/utils").SFCWithInstall<{
20
20
  readonly content: string;
21
21
  readonly maxHeight: string | number;
22
22
  readonly transition: string;
23
- readonly effect: string;
24
- readonly scrollable: boolean;
25
- readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-end" | "left-start" | "right-end" | "right-start";
26
- readonly popperClass: string;
27
- readonly popperStyle: Record<string, unknown>;
23
+ readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
28
24
  readonly trigger: "manual" | "click" | "contextmenu" | "focus" | "hover" | ("manual" | "click" | "contextmenu" | "focus" | "hover")[];
29
- readonly contentStyle: string | Record<string, unknown>;
30
- readonly contentClass: string;
31
25
  readonly showAfter: number;
32
26
  readonly hideAfter: number;
33
27
  readonly showArrow: boolean;
34
28
  readonly interactive: boolean;
29
+ readonly effect: string;
35
30
  readonly followCursor: boolean;
31
+ readonly popperClass: string;
36
32
  readonly persistent: boolean;
37
33
  readonly rawContent: boolean;
34
+ readonly scrollable: boolean;
35
+ readonly contentClass: string;
36
+ readonly contentStyle: string | Record<string, unknown>;
38
37
  readonly arrowClass: string;
39
38
  readonly arrowStyle: Record<string, unknown>;
39
+ readonly popperStyle: Record<string, unknown>;
40
40
  readonly arrowWrapperClass: string;
41
41
  readonly arrowWrapperStyle: Record<string, unknown>;
42
42
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -138,23 +138,23 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
138
138
  readonly content: string;
139
139
  readonly maxHeight: string | number;
140
140
  readonly transition: string;
141
- readonly effect: string;
142
- readonly scrollable: boolean;
143
- readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-end" | "left-start" | "right-end" | "right-start";
144
- readonly popperClass: string;
145
- readonly popperStyle: Record<string, unknown>;
141
+ readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
146
142
  readonly trigger: "manual" | "click" | "contextmenu" | "focus" | "hover" | ("manual" | "click" | "contextmenu" | "focus" | "hover")[];
147
- readonly contentStyle: string | Record<string, unknown>;
148
- readonly contentClass: string;
149
143
  readonly showAfter: number;
150
144
  readonly hideAfter: number;
151
145
  readonly showArrow: boolean;
152
146
  readonly interactive: boolean;
147
+ readonly effect: string;
153
148
  readonly followCursor: boolean;
149
+ readonly popperClass: string;
154
150
  readonly persistent: boolean;
155
151
  readonly rawContent: boolean;
152
+ readonly scrollable: boolean;
153
+ readonly contentClass: string;
154
+ readonly contentStyle: string | Record<string, unknown>;
156
155
  readonly arrowClass: string;
157
156
  readonly arrowStyle: Record<string, unknown>;
157
+ readonly popperStyle: Record<string, unknown>;
158
158
  readonly arrowWrapperClass: string;
159
159
  readonly arrowWrapperStyle: Record<string, unknown>;
160
160
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -138,23 +138,23 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
138
138
  readonly content: string;
139
139
  readonly maxHeight: string | number;
140
140
  readonly transition: string;
141
- readonly effect: string;
142
- readonly scrollable: boolean;
143
- readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-end" | "left-start" | "right-end" | "right-start";
144
- readonly popperClass: string;
145
- readonly popperStyle: Record<string, unknown>;
141
+ readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
146
142
  readonly trigger: "manual" | "click" | "contextmenu" | "focus" | "hover" | ("manual" | "click" | "contextmenu" | "focus" | "hover")[];
147
- readonly contentStyle: string | Record<string, unknown>;
148
- readonly contentClass: string;
149
143
  readonly showAfter: number;
150
144
  readonly hideAfter: number;
151
145
  readonly showArrow: boolean;
152
146
  readonly interactive: boolean;
147
+ readonly effect: string;
153
148
  readonly followCursor: boolean;
149
+ readonly popperClass: string;
154
150
  readonly persistent: boolean;
155
151
  readonly rawContent: boolean;
152
+ readonly scrollable: boolean;
153
+ readonly contentClass: string;
154
+ readonly contentStyle: string | Record<string, unknown>;
156
155
  readonly arrowClass: string;
157
156
  readonly arrowStyle: Record<string, unknown>;
157
+ readonly popperStyle: Record<string, unknown>;
158
158
  readonly arrowWrapperClass: string;
159
159
  readonly arrowWrapperStyle: Record<string, unknown>;
160
160
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;