@yh-ui/components 1.0.25 → 1.0.30

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 (426) hide show
  1. package/dist/affix/index.d.ts +3 -3
  2. package/dist/affix/src/affix.css +2 -448
  3. package/dist/affix/src/affix.vue +2 -448
  4. package/dist/affix/src/affix.vue.d.ts +1 -1
  5. package/dist/ai-action-group/src/ai-action-group.css +2 -448
  6. package/dist/ai-action-group/src/ai-action-group.vue +2 -448
  7. package/dist/ai-agent-card/src/ai-agent-card.css +2 -448
  8. package/dist/ai-agent-card/src/ai-agent-card.vue +2 -448
  9. package/dist/ai-artifacts/index.d.ts +3 -3
  10. package/dist/ai-artifacts/src/ai-artifacts.css +2 -448
  11. package/dist/ai-artifacts/src/ai-artifacts.vue +2 -448
  12. package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +1 -1
  13. package/dist/ai-attachments/src/ai-attachments.css +2 -448
  14. package/dist/ai-attachments/src/ai-attachments.vue +2 -448
  15. package/dist/ai-bubble/src/ai-bubble.css +2 -448
  16. package/dist/ai-bubble/src/ai-bubble.vue +33 -455
  17. package/dist/ai-bubble-list/src/ai-bubble-list.css +2 -448
  18. package/dist/ai-bubble-list/src/ai-bubble-list.vue +2 -448
  19. package/dist/ai-chat/src/ai-chat.css +2 -448
  20. package/dist/ai-chat/src/ai-chat.vue +2 -448
  21. package/dist/ai-code-block/src/ai-code-block.css +2 -448
  22. package/dist/ai-code-block/src/ai-code-block.vue +2 -448
  23. package/dist/ai-code-editor/src/ai-code-editor.css +2 -448
  24. package/dist/ai-code-editor/src/ai-code-editor.vue +36 -474
  25. package/dist/ai-code-runner/src/ai-code-runner.css +2 -448
  26. package/dist/ai-code-runner/src/ai-code-runner.vue +2 -449
  27. package/dist/ai-code-runner/src/webcontainer.cjs +3 -0
  28. package/dist/ai-code-runner/src/webcontainer.mjs +3 -0
  29. package/dist/ai-conversations/src/ai-conversations.css +2 -448
  30. package/dist/ai-conversations/src/ai-conversations.vue +2 -448
  31. package/dist/ai-editor-sender/src/ai-editor-sender.css +2 -448
  32. package/dist/ai-editor-sender/src/ai-editor-sender.vue +2 -448
  33. package/dist/ai-file-card/src/ai-file-card.css +2 -448
  34. package/dist/ai-file-card/src/ai-file-card.vue +2 -448
  35. package/dist/ai-mention/src/ai-mention.css +2 -448
  36. package/dist/ai-mention/src/ai-mention.vue +2 -448
  37. package/dist/ai-mermaid/src/ai-mermaid.css +84 -448
  38. package/dist/ai-mermaid/src/ai-mermaid.d.ts +6 -2
  39. package/dist/ai-mermaid/src/ai-mermaid.vue +277 -457
  40. package/dist/ai-prompts/src/ai-prompts.css +2 -448
  41. package/dist/ai-prompts/src/ai-prompts.vue +2 -448
  42. package/dist/ai-provider/index.d.ts +181 -55
  43. package/dist/ai-provider/src/ai-provider.vue.d.ts +55 -4
  44. package/dist/ai-sender/src/ai-sender.css +2 -448
  45. package/dist/ai-sender/src/ai-sender.vue +2 -448
  46. package/dist/ai-sources/src/ai-sources.css +2 -448
  47. package/dist/ai-sources/src/ai-sources.vue +2 -448
  48. package/dist/ai-thinking/src/ai-thinking.css +2 -448
  49. package/dist/ai-thinking/src/ai-thinking.vue +2 -448
  50. package/dist/ai-thought-chain/src/ai-thought-chain.css +2 -448
  51. package/dist/ai-thought-chain/src/ai-thought-chain.vue +34 -455
  52. package/dist/ai-voice-trigger/src/ai-voice-trigger.css +3 -449
  53. package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +3 -449
  54. package/dist/ai-welcome/src/ai-welcome.css +2 -448
  55. package/dist/ai-welcome/src/ai-welcome.vue +2 -448
  56. package/dist/alert/src/alert.css +2 -448
  57. package/dist/alert/src/alert.vue +2 -448
  58. package/dist/autocomplete/index.d.ts +251 -20
  59. package/dist/autocomplete/src/autocomplete.css +2 -448
  60. package/dist/autocomplete/src/autocomplete.vue +2 -448
  61. package/dist/autocomplete/src/autocomplete.vue.d.ts +56 -11
  62. package/dist/avatar/index.d.ts +131 -8
  63. package/dist/avatar/src/avatar.css +2 -448
  64. package/dist/avatar/src/avatar.vue +2 -448
  65. package/dist/avatar/src/avatar.vue.d.ts +31 -4
  66. package/dist/back-top/index.d.ts +3 -3
  67. package/dist/back-top/src/back-top.css +2 -448
  68. package/dist/back-top/src/back-top.vue +2 -448
  69. package/dist/back-top/src/back-top.vue.d.ts +1 -1
  70. package/dist/badge/index.d.ts +115 -4
  71. package/dist/badge/src/badge.css +2 -448
  72. package/dist/badge/src/badge.vue +2 -448
  73. package/dist/badge/src/badge.vue.d.ts +33 -2
  74. package/dist/breadcrumb/src/breadcrumb-item.vue +2 -448
  75. package/dist/breadcrumb/src/breadcrumb.css +2 -448
  76. package/dist/breadcrumb/src/breadcrumb.vue +2 -448
  77. package/dist/button/index.d.ts +212 -8
  78. package/dist/button/src/button.css +2 -448
  79. package/dist/button/src/button.vue +2 -448
  80. package/dist/button/src/button.vue.d.ts +50 -5
  81. package/dist/calendar/src/calendar.css +89 -451
  82. package/dist/calendar/src/calendar.vue +92 -454
  83. package/dist/card/index.d.ts +115 -4
  84. package/dist/card/src/card.css +2 -448
  85. package/dist/card/src/card.vue +2 -448
  86. package/dist/card/src/card.vue.d.ts +33 -2
  87. package/dist/carousel/src/carousel.css +2 -448
  88. package/dist/carousel/src/carousel.vue +2 -448
  89. package/dist/cascader/index.d.ts +405 -54
  90. package/dist/cascader/src/cascader-panel.vue +3 -449
  91. package/dist/cascader/src/cascader-panel.vue.d.ts +34 -5
  92. package/dist/cascader/src/cascader.css +3 -449
  93. package/dist/cascader/src/cascader.vue +3 -449
  94. package/dist/cascader/src/cascader.vue.d.ts +66 -11
  95. package/dist/category-nav/src/category-nav.css +2 -448
  96. package/dist/category-nav/src/category-nav.vue +2 -448
  97. package/dist/checkbox/index.d.ts +293 -20
  98. package/dist/checkbox/src/checkbox-group.css +2 -448
  99. package/dist/checkbox/src/checkbox-group.vue +2 -448
  100. package/dist/checkbox/src/checkbox-group.vue.d.ts +32 -5
  101. package/dist/checkbox/src/checkbox.css +2 -448
  102. package/dist/checkbox/src/checkbox.vue +2 -448
  103. package/dist/checkbox/src/checkbox.vue.d.ts +39 -6
  104. package/dist/col/src/col.css +2 -448
  105. package/dist/col/src/col.vue +2 -448
  106. package/dist/color-picker/src/alpha-slider.vue.d.ts +13 -4
  107. package/dist/color-picker/src/color-picker.css +5 -451
  108. package/dist/color-picker/src/color-picker.vue +5 -451
  109. package/dist/color-picker/src/hue-slider.vue.d.ts +13 -4
  110. package/dist/color-picker/src/sv-panel.vue.d.ts +13 -4
  111. package/dist/container/index.d.ts +123 -18
  112. package/dist/container/src/aside.vue +2 -448
  113. package/dist/container/src/aside.vue.d.ts +23 -2
  114. package/dist/container/src/container.css +2 -448
  115. package/dist/container/src/container.vue +2 -448
  116. package/dist/container/src/container.vue.d.ts +10 -1
  117. package/dist/container/src/footer.vue +2 -448
  118. package/dist/container/src/footer.vue.d.ts +23 -2
  119. package/dist/container/src/header.vue +2 -448
  120. package/dist/container/src/header.vue.d.ts +23 -2
  121. package/dist/container/src/main.vue +2 -448
  122. package/dist/container/src/main.vue.d.ts +10 -1
  123. package/dist/countdown/src/countdown.css +2 -448
  124. package/dist/countdown/src/countdown.vue +2 -448
  125. package/dist/coupon-card/src/coupon-card.css +2 -448
  126. package/dist/coupon-card/src/coupon-card.vue +2 -448
  127. package/dist/date-picker/index.d.ts +19 -21
  128. package/dist/date-picker/src/date-picker.css +23 -451
  129. package/dist/date-picker/src/date-picker.vue +115 -467
  130. package/dist/date-picker/src/date-picker.vue.d.ts +10 -12
  131. package/dist/date-picker/src/date-table.vue.d.ts +14 -5
  132. package/dist/date-picker/src/month-table.vue.d.ts +14 -5
  133. package/dist/date-picker/src/panel-utils.cjs +7 -12
  134. package/dist/date-picker/src/panel-utils.mjs +14 -12
  135. package/dist/date-picker/src/quarter-table.vue.d.ts +14 -5
  136. package/dist/date-picker/src/year-table.vue.d.ts +14 -5
  137. package/dist/dayjs-plugins.cjs +23 -0
  138. package/dist/dayjs-plugins.d.ts +7 -0
  139. package/dist/dayjs-plugins.mjs +15 -0
  140. package/dist/dayjs.cjs +5 -3
  141. package/dist/dayjs.d.ts +2 -2
  142. package/dist/dayjs.mjs +2 -1
  143. package/dist/descriptions/src/description-item.vue +4 -449
  144. package/dist/descriptions/src/descriptions.css +4 -449
  145. package/dist/descriptions/src/descriptions.vue +4 -449
  146. package/dist/dialog/index.cjs +7 -1
  147. package/dist/dialog/index.d.ts +3 -3
  148. package/dist/dialog/index.mjs +5 -1
  149. package/dist/dialog/src/dialog.css +2 -448
  150. package/dist/dialog/src/dialog.vue +2 -448
  151. package/dist/dialog/src/dialog.vue.d.ts +1 -1
  152. package/dist/dialog/src/method.cjs +14 -4
  153. package/dist/dialog/src/method.d.ts +2 -0
  154. package/dist/dialog/src/method.mjs +12 -3
  155. package/dist/dialog/src/use-dialog.cjs +5 -1
  156. package/dist/dialog/src/use-dialog.mjs +5 -1
  157. package/dist/divider/src/divider.css +2 -448
  158. package/dist/divider/src/divider.vue +2 -448
  159. package/dist/drawer/index.d.ts +3 -3
  160. package/dist/drawer/src/drawer.cjs +1 -1
  161. package/dist/drawer/src/drawer.css +2 -448
  162. package/dist/drawer/src/drawer.d.ts +1 -1
  163. package/dist/drawer/src/drawer.mjs +1 -1
  164. package/dist/drawer/src/drawer.vue +15 -449
  165. package/dist/drawer/src/drawer.vue.d.ts +2 -2
  166. package/dist/dropdown/src/dropdown-item.vue +2 -448
  167. package/dist/dropdown/src/dropdown-menu.vue +2 -448
  168. package/dist/dropdown/src/dropdown.css +2 -448
  169. package/dist/dropdown/src/dropdown.vue +2 -448
  170. package/dist/empty/index.d.ts +55 -4
  171. package/dist/empty/src/empty.css +2 -448
  172. package/dist/empty/src/empty.vue +2 -448
  173. package/dist/empty/src/empty.vue.d.ts +23 -2
  174. package/dist/filter-bar/src/filter-bar.css +2 -448
  175. package/dist/filter-bar/src/filter-bar.vue +2 -448
  176. package/dist/form/index.d.ts +14 -14
  177. package/dist/form/src/form-item.vue +8 -449
  178. package/dist/form/src/form-schema.vue.d.ts +5 -5
  179. package/dist/form/src/form.css +8 -449
  180. package/dist/form/src/form.vue +8 -449
  181. package/dist/form/src/form.vue.d.ts +2 -2
  182. package/dist/gantt-chart/index.d.ts +218 -20
  183. package/dist/gantt-chart/src/gantt-chart.css +14 -460
  184. package/dist/gantt-chart/src/gantt-chart.vue +18 -466
  185. package/dist/gantt-chart/src/gantt-chart.vue.d.ts +55 -10
  186. package/dist/grid/index.d.ts +167 -8
  187. package/dist/grid/src/grid-item.vue.d.ts +27 -2
  188. package/dist/grid/src/grid.css +2 -448
  189. package/dist/grid/src/grid.vue +2 -448
  190. package/dist/grid/src/grid.vue.d.ts +33 -2
  191. package/dist/icon/src/icon.css +2 -448
  192. package/dist/icon/src/icon.vue +2 -448
  193. package/dist/icon/src/icons/index.cjs +12 -2
  194. package/dist/icon/src/icons/index.d.ts +2 -0
  195. package/dist/icon/src/icons/index.mjs +12 -0
  196. package/dist/image/index.d.ts +12 -12
  197. package/dist/image/src/image-viewer.vue +13 -453
  198. package/dist/image/src/image.css +2 -448
  199. package/dist/image/src/image.vue +14 -454
  200. package/dist/image/src/image.vue.d.ts +6 -6
  201. package/dist/image-magnifier/index.d.ts +3 -3
  202. package/dist/image-magnifier/src/image-magnifier.css +2 -448
  203. package/dist/image-magnifier/src/image-magnifier.vue +2 -448
  204. package/dist/image-magnifier/src/image-magnifier.vue.d.ts +1 -1
  205. package/dist/index.cjs +1 -1
  206. package/dist/index.d.ts +2 -2
  207. package/dist/index.mjs +2 -0
  208. package/dist/infinite-scroll/index.d.ts +3 -3
  209. package/dist/infinite-scroll/src/infinite-scroll.css +2 -448
  210. package/dist/infinite-scroll/src/infinite-scroll.vue +36 -457
  211. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +1 -1
  212. package/dist/input/index.d.ts +469 -28
  213. package/dist/input/src/input.css +6 -448
  214. package/dist/input/src/input.vue +6 -448
  215. package/dist/input/src/input.vue.d.ts +74 -15
  216. package/dist/input-number/index.d.ts +273 -18
  217. package/dist/input-number/src/input-number.css +2 -448
  218. package/dist/input-number/src/input-number.vue +2 -448
  219. package/dist/input-number/src/input-number.vue.d.ts +53 -10
  220. package/dist/input-tag/index.d.ts +306 -24
  221. package/dist/input-tag/src/input-tag.css +46 -448
  222. package/dist/input-tag/src/input-tag.d.ts +1 -1
  223. package/dist/input-tag/src/input-tag.vue +47 -449
  224. package/dist/input-tag/src/input-tag.vue.d.ts +68 -13
  225. package/dist/loading/index.cjs +1 -0
  226. package/dist/loading/index.mjs +2 -1
  227. package/dist/loading/src/loading.css +2 -448
  228. package/dist/loading/src/service.cjs +56 -16
  229. package/dist/loading/src/service.d.ts +1 -0
  230. package/dist/loading/src/service.mjs +60 -16
  231. package/dist/lucky-draw/src/lucky-draw.css +2 -448
  232. package/dist/lucky-draw/src/lucky-draw.vue +2 -448
  233. package/dist/markdown-it.cjs +10 -6
  234. package/dist/markdown-it.d.ts +2 -2
  235. package/dist/markdown-it.mjs +12 -3
  236. package/dist/marquee/src/marquee.css +2 -448
  237. package/dist/marquee/src/marquee.vue +7 -451
  238. package/dist/mention/index.d.ts +370 -28
  239. package/dist/mention/src/mention.css +2 -448
  240. package/dist/mention/src/mention.vue +2 -448
  241. package/dist/mention/src/mention.vue.d.ts +80 -15
  242. package/dist/menu/src/menu-item-group.vue +2 -449
  243. package/dist/menu/src/menu-item.vue +2 -449
  244. package/dist/menu/src/menu-recursive-item.vue +2 -449
  245. package/dist/menu/src/menu-recursive-item.vue.d.ts +10 -1
  246. package/dist/menu/src/menu.css +2 -449
  247. package/dist/menu/src/menu.vue +2 -449
  248. package/dist/menu/src/sub-menu.vue +2 -449
  249. package/dist/message/index.cjs +9 -3
  250. package/dist/message/index.d.ts +1 -1
  251. package/dist/message/index.mjs +7 -2
  252. package/dist/message/src/message.css +2 -448
  253. package/dist/message/src/message.d.ts +16 -7
  254. package/dist/message/src/message.vue +2 -448
  255. package/dist/message/src/message.vue.d.ts +42 -5
  256. package/dist/message/src/method.cjs +40 -16
  257. package/dist/message/src/method.d.ts +2 -0
  258. package/dist/message/src/method.mjs +34 -15
  259. package/dist/message-box/index.cjs +4 -2
  260. package/dist/message-box/index.mjs +2 -1
  261. package/dist/message-box/src/message-box.css +2 -448
  262. package/dist/message-box/src/message-box.d.ts +6 -1
  263. package/dist/message-box/src/message-box.vue +17 -453
  264. package/dist/message-box/src/message-box.vue.d.ts +11 -2
  265. package/dist/message-box/src/method.cjs +9 -3
  266. package/dist/message-box/src/method.d.ts +2 -0
  267. package/dist/message-box/src/method.mjs +28 -5
  268. package/dist/notification/index.cjs +9 -3
  269. package/dist/notification/index.d.ts +1 -1
  270. package/dist/notification/index.mjs +7 -2
  271. package/dist/notification/src/method.cjs +40 -16
  272. package/dist/notification/src/method.d.ts +2 -0
  273. package/dist/notification/src/method.mjs +34 -15
  274. package/dist/notification/src/notification.css +2 -448
  275. package/dist/notification/src/notification.d.ts +16 -7
  276. package/dist/notification/src/notification.vue +2 -448
  277. package/dist/notification/src/notification.vue.d.ts +35 -6
  278. package/dist/pagination/index.d.ts +14 -14
  279. package/dist/pagination/src/pagination.css +19 -452
  280. package/dist/pagination/src/pagination.vue +98 -481
  281. package/dist/pagination/src/pagination.vue.d.ts +7 -7
  282. package/dist/popconfirm/index.d.ts +3 -3
  283. package/dist/popconfirm/src/popconfirm.css +2 -448
  284. package/dist/popconfirm/src/popconfirm.vue +2 -448
  285. package/dist/popconfirm/src/popconfirm.vue.d.ts +1 -1
  286. package/dist/popover/index.d.ts +3 -3
  287. package/dist/popover/src/popover.css +2 -448
  288. package/dist/popover/src/popover.vue +2 -448
  289. package/dist/popover/src/popover.vue.d.ts +1 -1
  290. package/dist/price/src/price.css +2 -448
  291. package/dist/price/src/price.vue +2 -448
  292. package/dist/product-card/src/product-card.css +2 -448
  293. package/dist/product-card/src/product-card.vue +2 -448
  294. package/dist/progress/index.d.ts +3 -3
  295. package/dist/progress/src/progress.css +3 -449
  296. package/dist/progress/src/progress.vue +3 -449
  297. package/dist/progress/src/progress.vue.d.ts +1 -1
  298. package/dist/radio/index.d.ts +318 -30
  299. package/dist/radio/src/radio-button.css +2 -448
  300. package/dist/radio/src/radio-button.vue +2 -448
  301. package/dist/radio/src/radio-button.vue.d.ts +27 -6
  302. package/dist/radio/src/radio-group.css +2 -448
  303. package/dist/radio/src/radio-group.vue +2 -448
  304. package/dist/radio/src/radio-group.vue.d.ts +30 -5
  305. package/dist/radio/src/radio.css +2 -448
  306. package/dist/radio/src/radio.vue +2 -448
  307. package/dist/radio/src/radio.vue.d.ts +29 -6
  308. package/dist/rate/src/rate.css +2 -448
  309. package/dist/rate/src/rate.vue +2 -448
  310. package/dist/result/index.d.ts +46 -4
  311. package/dist/result/src/result.css +2 -448
  312. package/dist/result/src/result.vue +2 -448
  313. package/dist/result/src/result.vue.d.ts +23 -2
  314. package/dist/row/src/row.css +2 -448
  315. package/dist/row/src/row.vue +2 -448
  316. package/dist/sanitize.cjs +15 -2
  317. package/dist/sanitize.mjs +15 -2
  318. package/dist/scrollbar/src/scrollbar.css +2 -448
  319. package/dist/scrollbar/src/scrollbar.vue +2 -448
  320. package/dist/scrollbar/src/thumb.vue.d.ts +30 -3
  321. package/dist/select/index.d.ts +414 -24
  322. package/dist/select/src/option.vue +2 -448
  323. package/dist/select/src/option.vue.d.ts +23 -2
  324. package/dist/select/src/select.css +2 -448
  325. package/dist/select/src/select.vue +2 -448
  326. package/dist/select/src/select.vue.d.ts +78 -11
  327. package/dist/skeleton/src/skeleton-item.vue +2 -448
  328. package/dist/skeleton/src/skeleton.css +2 -448
  329. package/dist/skeleton/src/skeleton.vue +2 -448
  330. package/dist/sku-selector/src/sku-selector.css +2 -448
  331. package/dist/sku-selector/src/sku-selector.vue +2 -448
  332. package/dist/slider/index.d.ts +2 -6
  333. package/dist/slider/src/slider-button.vue +2 -448
  334. package/dist/slider/src/slider-button.vue.d.ts +38 -7
  335. package/dist/slider/src/slider.css +2 -448
  336. package/dist/slider/src/slider.vue +2 -448
  337. package/dist/slider/src/slider.vue.d.ts +1 -5
  338. package/dist/smart-address/src/smart-address.css +26 -448
  339. package/dist/smart-address/src/smart-address.vue +26 -448
  340. package/dist/space/index.d.ts +106 -4
  341. package/dist/space/src/space.css +2 -448
  342. package/dist/space/src/space.vue +2 -448
  343. package/dist/space/src/space.vue.d.ts +33 -2
  344. package/dist/spin/src/spin.css +2 -448
  345. package/dist/spin/src/spin.vue +2 -448
  346. package/dist/steps/src/step.vue +2 -448
  347. package/dist/steps/src/steps.css +2 -448
  348. package/dist/steps/src/steps.vue +2 -448
  349. package/dist/style.css +6 -0
  350. package/dist/submit-bar/src/submit-bar.css +2 -448
  351. package/dist/submit-bar/src/submit-bar.vue +2 -448
  352. package/dist/switch/index.d.ts +3 -3
  353. package/dist/switch/src/switch.css +4 -449
  354. package/dist/switch/src/switch.vue +4 -449
  355. package/dist/switch/src/switch.vue.d.ts +1 -1
  356. package/dist/table/index.d.ts +342 -102
  357. package/dist/table/src/table-column.vue +4 -449
  358. package/dist/table/src/table-column.vue.d.ts +62 -3
  359. package/dist/table/src/table.css +4 -449
  360. package/dist/table/src/table.vue +45 -465
  361. package/dist/table/src/use-table-export.cjs +9 -5
  362. package/dist/table/src/use-table-export.d.ts +1 -1
  363. package/dist/table/src/use-table-export.mjs +12 -3
  364. package/dist/table/src/use-table-import.cjs +9 -5
  365. package/dist/table/src/use-table-import.d.ts +1 -1
  366. package/dist/table/src/use-table-import.mjs +12 -3
  367. package/dist/tabs/src/tab-pane.vue +0 -451
  368. package/dist/tabs/src/tabs.css +2 -448
  369. package/dist/tabs/src/tabs.vue +2 -448
  370. package/dist/tag/index.d.ts +175 -16
  371. package/dist/tag/src/tag.css +2 -448
  372. package/dist/tag/src/tag.vue +2 -448
  373. package/dist/tag/src/tag.vue.d.ts +47 -8
  374. package/dist/time-picker/index.d.ts +475 -22
  375. package/dist/time-picker/src/time-picker.css +2 -448
  376. package/dist/time-picker/src/time-picker.vue +2 -448
  377. package/dist/time-picker/src/time-picker.vue.d.ts +85 -12
  378. package/dist/time-picker/src/time-spinner.vue.d.ts +45 -6
  379. package/dist/time-select/index.d.ts +285 -18
  380. package/dist/time-select/src/time-select.css +3 -449
  381. package/dist/time-select/src/time-select.vue +3 -449
  382. package/dist/time-select/src/time-select.vue.d.ts +55 -10
  383. package/dist/tooltip/index.d.ts +3 -3
  384. package/dist/tooltip/src/tooltip.css +2 -448
  385. package/dist/tooltip/src/tooltip.vue +2 -448
  386. package/dist/tooltip/src/tooltip.vue.d.ts +1 -1
  387. package/dist/transfer/src/transfer-panel.vue +2 -448
  388. package/dist/transfer/src/transfer-panel.vue.d.ts +45 -6
  389. package/dist/transfer/src/transfer.css +2 -448
  390. package/dist/transfer/src/transfer.vue +2 -448
  391. package/dist/transfer/src/transfer.vue.d.ts +57 -10
  392. package/dist/tree/index.d.ts +34 -25
  393. package/dist/tree/src/tree-node.vue +12 -449
  394. package/dist/tree/src/tree-node.vue.d.ts +10 -1
  395. package/dist/tree/src/tree.css +12 -449
  396. package/dist/tree/src/tree.vue +12 -449
  397. package/dist/tree/src/tree.vue.d.ts +16 -16
  398. package/dist/tree-select/src/tree-select.css +2 -448
  399. package/dist/tree-select/src/tree-select.vue +2 -448
  400. package/dist/typography/index.d.ts +450 -18
  401. package/dist/typography/src/link.vue +2 -448
  402. package/dist/typography/src/link.vue.d.ts +29 -4
  403. package/dist/typography/src/paragraph.vue +2 -448
  404. package/dist/typography/src/paragraph.vue.d.ts +33 -2
  405. package/dist/typography/src/text.vue +2 -448
  406. package/dist/typography/src/text.vue.d.ts +39 -2
  407. package/dist/typography/src/title.vue +2 -448
  408. package/dist/typography/src/title.vue.d.ts +37 -2
  409. package/dist/typography/src/typography.css +2 -448
  410. package/dist/upload/index.d.ts +3 -3
  411. package/dist/upload/src/upload.css +2 -448
  412. package/dist/upload/src/upload.vue +11 -451
  413. package/dist/upload/src/upload.vue.d.ts +1 -1
  414. package/dist/viewerjs.cjs +10 -6
  415. package/dist/viewerjs.d.ts +2 -2
  416. package/dist/viewerjs.mjs +12 -3
  417. package/dist/waterfall/index.d.ts +1 -1
  418. package/dist/waterfall/src/waterfall.css +8 -449
  419. package/dist/waterfall/src/waterfall.vue +8 -449
  420. package/dist/waterfall/src/waterfall.vue.d.ts +1 -1
  421. package/dist/watermark/index.d.ts +3 -3
  422. package/dist/watermark/src/watermark.css +2 -448
  423. package/dist/watermark/src/watermark.vue +38 -450
  424. package/dist/watermark/src/watermark.vue.d.ts +1 -1
  425. package/package.json +38 -18
  426. package/LICENSE +0 -21
@@ -7,7 +7,8 @@ var _exportNames = {
7
7
  YhNotification: true
8
8
  };
9
9
  module.exports = exports.YhNotification = void 0;
10
- var _method = _interopRequireDefault(require("./src/method.cjs"));
10
+ var _utils = require("@yh-ui/utils");
11
+ var _method = _interopRequireWildcard(require("./src/method.cjs"));
11
12
  var _notification = require("./src/notification.cjs");
12
13
  Object.keys(_notification).forEach(function (key) {
13
14
  if (key === "default" || key === "__esModule") return;
@@ -20,6 +21,11 @@ Object.keys(_notification).forEach(function (key) {
20
21
  }
21
22
  });
22
23
  });
23
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
24
- const YhNotification = exports.YhNotification = _method.default;
24
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
25
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
+ const YhNotification = exports.YhNotification = (0, _utils.withInstallFunction)(_method.default, "$notify");
27
+ YhNotification.install = app => {
28
+ (0, _method.setNotificationDefaultAppContext)(app._context);
29
+ app.config.globalProperties.$notify = YhNotification;
30
+ };
25
31
  module.exports = YhNotification;
@@ -1,4 +1,4 @@
1
- export declare const YhNotification: import(".").NotificationFn;
1
+ export declare const YhNotification: import("@yh-ui/utils").SFCWithInstall<import(".").NotificationFn>;
2
2
  export default YhNotification;
3
3
  export * from './src/notification';
4
4
  export type YhNotificationProps = import('./src/notification').NotificationProps;
@@ -1,4 +1,9 @@
1
- import Notification from "./src/method.mjs";
2
- export const YhNotification = Notification;
1
+ import { withInstallFunction } from "@yh-ui/utils";
2
+ import Notification, { setNotificationDefaultAppContext } from "./src/method.mjs";
3
+ export const YhNotification = withInstallFunction(Notification, "$notify");
4
+ YhNotification.install = (app) => {
5
+ setNotificationDefaultAppContext(app._context);
6
+ app.config.globalProperties.$notify = YhNotification;
7
+ };
3
8
  export default YhNotification;
4
9
  export * from "./src/notification.mjs";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
6
+ exports.setNotificationDefaultAppContext = exports.default = void 0;
7
7
  var _vue = require("vue");
8
8
  var _notification = _interopRequireDefault(require("./notification.vue"));
9
9
  require("./notification.css");
@@ -17,6 +17,20 @@ const instances = {
17
17
  "bottom-center": []
18
18
  };
19
19
  let seed = 1;
20
+ let defaultAppContext = null;
21
+ const setNotificationDefaultAppContext = appContext => {
22
+ defaultAppContext = appContext ?? null;
23
+ };
24
+ exports.setNotificationDefaultAppContext = setNotificationDefaultAppContext;
25
+ const resolveMountTarget = appendTo => {
26
+ if (appendTo) {
27
+ if (typeof appendTo === "string") {
28
+ return document.querySelector(appendTo) ?? document.body;
29
+ }
30
+ return appendTo;
31
+ }
32
+ return document.querySelector(".yh-config-provider") ?? document.body;
33
+ };
20
34
  const getOffset = (position, offset) => {
21
35
  const list = instances[position];
22
36
  return list.reduce((acc, ctx) => {
@@ -27,11 +41,18 @@ const getOffset = (position, offset) => {
27
41
  return acc;
28
42
  }, offset);
29
43
  };
30
- const createNotification = options => {
44
+ const createNotification = (options, appContext) => {
31
45
  const id = `notification_${seed++}`;
32
46
  const position = options.position || "top-right";
33
47
  const userOnClose = options.onClose;
34
48
  const max = options.max;
49
+ const resolvedAppContext = appContext ?? options.appContext ?? defaultAppContext;
50
+ const mountTarget = resolveMountTarget(options.appendTo);
51
+ const {
52
+ appContext: _appContext,
53
+ appendTo: _appendTo,
54
+ ...restOptions
55
+ } = options;
35
56
  if (max !== void 0 && max > 0) {
36
57
  const list = instances[position];
37
58
  const toCloseCount = list.length + 1 - max;
@@ -43,7 +64,7 @@ const createNotification = options => {
43
64
  }
44
65
  }
45
66
  const props = (0, _vue.shallowReactive)({
46
- ...options,
67
+ ...restOptions,
47
68
  id,
48
69
  position,
49
70
  offset: getOffset(position, options.offset || 16),
@@ -56,8 +77,8 @@ const createNotification = options => {
56
77
  container.className = `yh-notification-container_${id}`;
57
78
  const onDestroy = () => {
58
79
  (0, _vue.render)(null, container);
59
- if (document.body.contains(container)) {
60
- document.body.removeChild(container);
80
+ if (mountTarget.contains(container)) {
81
+ mountTarget.removeChild(container);
61
82
  }
62
83
  };
63
84
  const vnodeProps = {
@@ -65,8 +86,11 @@ const createNotification = options => {
65
86
  onDestroy
66
87
  };
67
88
  const vnode = (0, _vue.createVNode)(_notification.default, vnodeProps, null);
89
+ if (resolvedAppContext) {
90
+ vnode.appContext = resolvedAppContext;
91
+ }
68
92
  (0, _vue.render)(vnode, container);
69
- document.body.appendChild(container);
93
+ mountTarget.appendChild(container);
70
94
  const vm = vnode.component;
71
95
  const handler = {
72
96
  close: () => {
@@ -117,15 +141,15 @@ const closeAll = () => {
117
141
  });
118
142
  });
119
143
  };
120
- const Notification = options => {
144
+ const Notification = (options, appContext) => {
121
145
  if (typeof options === "string") {
122
146
  options = {
123
147
  message: options
124
148
  };
125
149
  }
126
- return createNotification(options);
150
+ return createNotification(options, appContext);
127
151
  };
128
- Notification.success = (title, message) => {
152
+ Notification.success = (title, message, appContext) => {
129
153
  const options = typeof message === "string" ? {
130
154
  title,
131
155
  message
@@ -136,9 +160,9 @@ Notification.success = (title, message) => {
136
160
  return createNotification({
137
161
  ...options,
138
162
  type: "success"
139
- });
163
+ }, appContext);
140
164
  };
141
- Notification.warning = (title, message) => {
165
+ Notification.warning = (title, message, appContext) => {
142
166
  const options = typeof message === "string" ? {
143
167
  title,
144
168
  message
@@ -149,9 +173,9 @@ Notification.warning = (title, message) => {
149
173
  return createNotification({
150
174
  ...options,
151
175
  type: "warning"
152
- });
176
+ }, appContext);
153
177
  };
154
- Notification.info = (title, message) => {
178
+ Notification.info = (title, message, appContext) => {
155
179
  const options = typeof message === "string" ? {
156
180
  title,
157
181
  message
@@ -162,9 +186,9 @@ Notification.info = (title, message) => {
162
186
  return createNotification({
163
187
  ...options,
164
188
  type: "info"
165
- });
189
+ }, appContext);
166
190
  };
167
- Notification.error = (title, message) => {
191
+ Notification.error = (title, message, appContext) => {
168
192
  const options = typeof message === "string" ? {
169
193
  title,
170
194
  message
@@ -175,7 +199,7 @@ Notification.error = (title, message) => {
175
199
  return createNotification({
176
200
  ...options,
177
201
  type: "error"
178
- });
202
+ }, appContext);
179
203
  };
180
204
  Notification.closeAll = closeAll;
181
205
  module.exports = Notification;
@@ -2,7 +2,9 @@
2
2
  * Notification 方法
3
3
  * @description 函数式调用通知
4
4
  */
5
+ import { type AppContext } from 'vue';
5
6
  import type { NotificationFn } from './notification';
6
7
  import './notification.css';
8
+ export declare const setNotificationDefaultAppContext: (appContext?: AppContext | null) => void;
7
9
  declare const Notification: NotificationFn;
8
10
  export default Notification;
@@ -10,6 +10,19 @@ const instances = {
10
10
  "bottom-center": []
11
11
  };
12
12
  let seed = 1;
13
+ let defaultAppContext = null;
14
+ export const setNotificationDefaultAppContext = (appContext) => {
15
+ defaultAppContext = appContext ?? null;
16
+ };
17
+ const resolveMountTarget = (appendTo) => {
18
+ if (appendTo) {
19
+ if (typeof appendTo === "string") {
20
+ return document.querySelector(appendTo) ?? document.body;
21
+ }
22
+ return appendTo;
23
+ }
24
+ return document.querySelector(".yh-config-provider") ?? document.body;
25
+ };
13
26
  const getOffset = (position, offset) => {
14
27
  const list = instances[position];
15
28
  return list.reduce((acc, ctx) => {
@@ -20,11 +33,14 @@ const getOffset = (position, offset) => {
20
33
  return acc;
21
34
  }, offset);
22
35
  };
23
- const createNotification = (options) => {
36
+ const createNotification = (options, appContext) => {
24
37
  const id = `notification_${seed++}`;
25
38
  const position = options.position || "top-right";
26
39
  const userOnClose = options.onClose;
27
40
  const max = options.max;
41
+ const resolvedAppContext = appContext ?? options.appContext ?? defaultAppContext;
42
+ const mountTarget = resolveMountTarget(options.appendTo);
43
+ const { appContext: _appContext, appendTo: _appendTo, ...restOptions } = options;
28
44
  if (max !== void 0 && max > 0) {
29
45
  const list = instances[position];
30
46
  const toCloseCount = list.length + 1 - max;
@@ -36,7 +52,7 @@ const createNotification = (options) => {
36
52
  }
37
53
  }
38
54
  const props = shallowReactive({
39
- ...options,
55
+ ...restOptions,
40
56
  id,
41
57
  position,
42
58
  offset: getOffset(position, options.offset || 16),
@@ -49,8 +65,8 @@ const createNotification = (options) => {
49
65
  container.className = `yh-notification-container_${id}`;
50
66
  const onDestroy = () => {
51
67
  render(null, container);
52
- if (document.body.contains(container)) {
53
- document.body.removeChild(container);
68
+ if (mountTarget.contains(container)) {
69
+ mountTarget.removeChild(container);
54
70
  }
55
71
  };
56
72
  const vnodeProps = {
@@ -58,8 +74,11 @@ const createNotification = (options) => {
58
74
  onDestroy
59
75
  };
60
76
  const vnode = createVNode(NotificationConstructor, vnodeProps, null);
77
+ if (resolvedAppContext) {
78
+ vnode.appContext = resolvedAppContext;
79
+ }
61
80
  render(vnode, container);
62
- document.body.appendChild(container);
81
+ mountTarget.appendChild(container);
63
82
  const vm = vnode.component;
64
83
  const handler = {
65
84
  close: () => {
@@ -110,27 +129,27 @@ const closeAll = () => {
110
129
  });
111
130
  });
112
131
  };
113
- const Notification = ((options) => {
132
+ const Notification = ((options, appContext) => {
114
133
  if (typeof options === "string") {
115
134
  options = { message: options };
116
135
  }
117
- return createNotification(options);
136
+ return createNotification(options, appContext);
118
137
  });
119
- Notification.success = (title, message) => {
138
+ Notification.success = (title, message, appContext) => {
120
139
  const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
121
- return createNotification({ ...options, type: "success" });
140
+ return createNotification({ ...options, type: "success" }, appContext);
122
141
  };
123
- Notification.warning = (title, message) => {
142
+ Notification.warning = (title, message, appContext) => {
124
143
  const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
125
- return createNotification({ ...options, type: "warning" });
144
+ return createNotification({ ...options, type: "warning" }, appContext);
126
145
  };
127
- Notification.info = (title, message) => {
146
+ Notification.info = (title, message, appContext) => {
128
147
  const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
129
- return createNotification({ ...options, type: "info" });
148
+ return createNotification({ ...options, type: "info" }, appContext);
130
149
  };
131
- Notification.error = (title, message) => {
150
+ Notification.error = (title, message, appContext) => {
132
151
  const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
133
- return createNotification({ ...options, type: "error" });
152
+ return createNotification({ ...options, type: "error" }, appContext);
134
153
  };
135
154
  Notification.closeAll = closeAll;
136
155
  export default Notification;