beyond-webui 1.1.35 → 1.1.36

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 (524) hide show
  1. package/dist/index.full.js +14 -1
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +14 -1
  7. package/es/components/alert/index.mjs +2 -2
  8. package/es/components/alert/src/alert.mjs +36 -96
  9. package/es/components/alert/src/alert.mjs.map +1 -1
  10. package/es/components/alert/src/alert2.mjs +96 -36
  11. package/es/components/alert/src/alert2.mjs.map +1 -1
  12. package/es/components/badge/index.mjs +2 -2
  13. package/es/components/badge/src/badge.mjs +55 -17
  14. package/es/components/badge/src/badge.mjs.map +1 -1
  15. package/es/components/badge/src/badge2.mjs +17 -55
  16. package/es/components/badge/src/badge2.mjs.map +1 -1
  17. package/es/components/breadcrumb/index.mjs +4 -4
  18. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
  19. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  20. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
  21. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  22. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  23. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  24. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  25. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  26. package/es/components/cascader/src/cascader2.mjs +1 -1
  27. package/es/components/check-tag/index.mjs +2 -2
  28. package/es/components/check-tag/src/check-tag.mjs +12 -30
  29. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  30. package/es/components/check-tag/src/check-tag2.mjs +30 -12
  31. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  32. package/es/components/checkbox/index.mjs +2 -2
  33. package/es/components/checkbox/src/checkbox-group.mjs +28 -72
  34. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  35. package/es/components/checkbox/src/checkbox-group2.mjs +72 -28
  36. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  37. package/es/components/collapse/index.mjs +2 -2
  38. package/es/components/collapse/src/collapse.mjs +17 -30
  39. package/es/components/collapse/src/collapse.mjs.map +1 -1
  40. package/es/components/collapse/src/collapse2.mjs +30 -17
  41. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  42. package/es/components/color-picker/index.mjs +2 -2
  43. package/es/components/color-picker/src/color-picker.mjs +321 -38
  44. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  45. package/es/components/color-picker/src/color-picker2.mjs +38 -321
  46. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  47. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  48. package/es/components/countdown/index.mjs +2 -2
  49. package/es/components/countdown/src/countdown.mjs +23 -74
  50. package/es/components/countdown/src/countdown.mjs.map +1 -1
  51. package/es/components/countdown/src/countdown2.mjs +74 -23
  52. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  53. package/es/components/descriptions/index.mjs +2 -2
  54. package/es/components/descriptions/src/description.mjs +25 -111
  55. package/es/components/descriptions/src/description.mjs.map +1 -1
  56. package/es/components/descriptions/src/description2.mjs +111 -25
  57. package/es/components/descriptions/src/description2.mjs.map +1 -1
  58. package/es/components/divider/index.mjs +2 -2
  59. package/es/components/divider/src/divider.mjs +17 -35
  60. package/es/components/divider/src/divider.mjs.map +1 -1
  61. package/es/components/divider/src/divider2.mjs +35 -17
  62. package/es/components/divider/src/divider2.mjs.map +1 -1
  63. package/es/components/drawer/index.mjs +2 -2
  64. package/es/components/drawer/src/drawer.mjs +26 -177
  65. package/es/components/drawer/src/drawer.mjs.map +1 -1
  66. package/es/components/drawer/src/drawer2.mjs +177 -26
  67. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  68. package/es/components/dropdown/index.mjs +2 -2
  69. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  70. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  71. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  72. package/es/components/dropdown/src/dropdown.mjs +307 -97
  73. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  74. package/es/components/dropdown/src/dropdown2.mjs +97 -307
  75. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  76. package/es/components/form/index.mjs +2 -2
  77. package/es/components/form/src/form.mjs +152 -55
  78. package/es/components/form/src/form.mjs.map +1 -1
  79. package/es/components/form/src/form2.mjs +55 -152
  80. package/es/components/form/src/form2.mjs.map +1 -1
  81. package/es/components/image/index.mjs +2 -2
  82. package/es/components/image/src/image.mjs +62 -220
  83. package/es/components/image/src/image.mjs.map +1 -1
  84. package/es/components/image/src/image2.mjs +220 -62
  85. package/es/components/image/src/image2.mjs.map +1 -1
  86. package/es/components/image-viewer/index.mjs +2 -2
  87. package/es/components/image-viewer/src/image-viewer.mjs +39 -396
  88. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  89. package/es/components/image-viewer/src/image-viewer2.mjs +396 -39
  90. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  91. package/es/components/index.mjs +39 -39
  92. package/es/components/input-number/index.mjs +2 -2
  93. package/es/components/input-number/src/input-number.mjs +58 -311
  94. package/es/components/input-number/src/input-number.mjs.map +1 -1
  95. package/es/components/input-number/src/input-number2.mjs +311 -58
  96. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  97. package/es/components/menu/index.mjs +4 -4
  98. package/es/components/menu/src/menu-item-group.mjs +35 -4
  99. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  100. package/es/components/menu/src/menu-item-group2.mjs +4 -35
  101. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  102. package/es/components/menu/src/menu-item.mjs +14 -97
  103. package/es/components/menu/src/menu-item.mjs.map +1 -1
  104. package/es/components/menu/src/menu-item2.mjs +97 -14
  105. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  106. package/es/components/message/index.mjs +1 -1
  107. package/es/components/message/src/message.mjs +91 -198
  108. package/es/components/message/src/message.mjs.map +1 -1
  109. package/es/components/message/src/message2.mjs +198 -91
  110. package/es/components/message/src/message2.mjs.map +1 -1
  111. package/es/components/message/src/method.mjs +2 -2
  112. package/es/components/notification/index.mjs +1 -1
  113. package/es/components/notification/src/notification.mjs +147 -69
  114. package/es/components/notification/src/notification.mjs.map +1 -1
  115. package/es/components/notification/src/notification2.mjs +69 -147
  116. package/es/components/notification/src/notification2.mjs.map +1 -1
  117. package/es/components/notification/src/notify.mjs +2 -2
  118. package/es/components/pagination/src/components/jumper.mjs +9 -60
  119. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  120. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  121. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  122. package/es/components/pagination/src/components/next.mjs +58 -19
  123. package/es/components/pagination/src/components/next.mjs.map +1 -1
  124. package/es/components/pagination/src/components/next2.mjs +19 -58
  125. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  126. package/es/components/pagination/src/components/pager.mjs +214 -17
  127. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  128. package/es/components/pagination/src/components/pager2.mjs +17 -214
  129. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  130. package/es/components/pagination/src/components/prev.mjs +18 -58
  131. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  132. package/es/components/pagination/src/components/prev2.mjs +58 -18
  133. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  134. package/es/components/pagination/src/components/sizes.mjs +68 -22
  135. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  136. package/es/components/pagination/src/components/sizes2.mjs +22 -68
  137. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  138. package/es/components/pagination/src/pagination.mjs +5 -5
  139. package/es/components/popover/src/popover.mjs +1 -1
  140. package/es/components/popper/index.mjs +4 -4
  141. package/es/components/popper/src/arrow.mjs +8 -37
  142. package/es/components/popper/src/arrow.mjs.map +1 -1
  143. package/es/components/popper/src/arrow2.mjs +37 -8
  144. package/es/components/popper/src/arrow2.mjs.map +1 -1
  145. package/es/components/popper/src/trigger.mjs +31 -119
  146. package/es/components/popper/src/trigger.mjs.map +1 -1
  147. package/es/components/popper/src/trigger2.mjs +119 -31
  148. package/es/components/popper/src/trigger2.mjs.map +1 -1
  149. package/es/components/progress/index.mjs +2 -2
  150. package/es/components/progress/src/progress.mjs +202 -57
  151. package/es/components/progress/src/progress.mjs.map +1 -1
  152. package/es/components/progress/src/progress2.mjs +57 -202
  153. package/es/components/progress/src/progress2.mjs.map +1 -1
  154. package/es/components/radio/index.mjs +2 -2
  155. package/es/components/radio/src/radio-button.mjs +9 -64
  156. package/es/components/radio/src/radio-button.mjs.map +1 -1
  157. package/es/components/radio/src/radio-button2.mjs +64 -9
  158. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  159. package/es/components/result/index.mjs +2 -2
  160. package/es/components/result/src/result.mjs +63 -29
  161. package/es/components/result/src/result.mjs.map +1 -1
  162. package/es/components/result/src/result2.mjs +29 -63
  163. package/es/components/result/src/result2.mjs.map +1 -1
  164. package/es/components/roving-focus-group/index.mjs +3 -3
  165. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  166. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  167. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  168. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  169. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  170. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  171. package/es/components/row/index.mjs +2 -2
  172. package/es/components/row/src/row.mjs +45 -30
  173. package/es/components/row/src/row.mjs.map +1 -1
  174. package/es/components/row/src/row2.mjs +30 -45
  175. package/es/components/row/src/row2.mjs.map +1 -1
  176. package/es/components/scrollbar/index.mjs +3 -3
  177. package/es/components/scrollbar/src/bar2.mjs +1 -1
  178. package/es/components/scrollbar/src/scrollbar.mjs +174 -46
  179. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  180. package/es/components/scrollbar/src/scrollbar2.mjs +46 -174
  181. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  182. package/es/components/scrollbar/src/thumb.mjs +130 -11
  183. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  184. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  185. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  186. package/es/components/select/src/select.mjs +1 -1
  187. package/es/components/skeleton/index.mjs +2 -2
  188. package/es/components/skeleton/src/skeleton-item.mjs +23 -18
  189. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  190. package/es/components/skeleton/src/skeleton-item2.mjs +18 -23
  191. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  192. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  193. package/es/components/slider/src/button.mjs +93 -21
  194. package/es/components/slider/src/button.mjs.map +1 -1
  195. package/es/components/slider/src/button2.mjs +21 -93
  196. package/es/components/slider/src/button2.mjs.map +1 -1
  197. package/es/components/slider/src/slider2.mjs +1 -1
  198. package/es/components/statistic/index.mjs +2 -2
  199. package/es/components/statistic/src/statistic.mjs +70 -25
  200. package/es/components/statistic/src/statistic.mjs.map +1 -1
  201. package/es/components/statistic/src/statistic2.mjs +25 -70
  202. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  203. package/es/components/steps/index.mjs +4 -4
  204. package/es/components/steps/src/item.mjs +19 -188
  205. package/es/components/steps/src/item.mjs.map +1 -1
  206. package/es/components/steps/src/item2.mjs +188 -19
  207. package/es/components/steps/src/item2.mjs.map +1 -1
  208. package/es/components/steps/src/steps.mjs +34 -36
  209. package/es/components/steps/src/steps.mjs.map +1 -1
  210. package/es/components/steps/src/steps2.mjs +36 -34
  211. package/es/components/steps/src/steps2.mjs.map +1 -1
  212. package/es/components/table/src/table-header/event-helper.mjs +2 -1
  213. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  214. package/es/components/tag/index.mjs +2 -2
  215. package/es/components/tag/src/tag.mjs +33 -94
  216. package/es/components/tag/src/tag.mjs.map +1 -1
  217. package/es/components/tag/src/tag2.mjs +94 -33
  218. package/es/components/tag/src/tag2.mjs.map +1 -1
  219. package/es/components/teleport/index.mjs +2 -2
  220. package/es/components/teleport/src/teleport.mjs +44 -18
  221. package/es/components/teleport/src/teleport.mjs.map +1 -1
  222. package/es/components/teleport/src/teleport2.mjs +18 -44
  223. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  224. package/es/components/tooltip/index.mjs +2 -2
  225. package/es/components/tooltip/src/tooltip.mjs +31 -169
  226. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  227. package/es/components/tooltip/src/tooltip2.mjs +169 -31
  228. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  229. package/es/components/tooltip/src/trigger.mjs +1 -1
  230. package/es/components/tooltip/src/trigger2.mjs +1 -1
  231. package/es/components/tooltip-v2/index.mjs +2 -2
  232. package/es/components/tooltip-v2/src/content.mjs +50 -112
  233. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  234. package/es/components/tooltip-v2/src/content2.mjs +112 -50
  235. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  236. package/es/components/tooltip-v2/src/root.mjs +80 -17
  237. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  238. package/es/components/tooltip-v2/src/root2.mjs +17 -80
  239. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  240. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  241. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  242. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  243. package/es/components/transfer/src/transfer-panel.mjs +19 -128
  244. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  245. package/es/components/transfer/src/transfer-panel2.mjs +128 -19
  246. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  247. package/es/components/transfer/src/transfer2.mjs +1 -1
  248. package/es/components/upload/index.mjs +2 -2
  249. package/es/components/upload/src/upload-content.mjs +33 -173
  250. package/es/components/upload/src/upload-content.mjs.map +1 -1
  251. package/es/components/upload/src/upload-content2.mjs +173 -33
  252. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  253. package/es/components/upload/src/upload-dragger.mjs +11 -72
  254. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  255. package/es/components/upload/src/upload-dragger2.mjs +72 -11
  256. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  257. package/es/components/upload/src/upload.mjs +1 -1
  258. package/es/index.mjs +39 -39
  259. package/es/utils/index.mjs +1 -1
  260. package/es/utils/vue/index.mjs +1 -1
  261. package/es/utils/vue/size.d.ts +1 -0
  262. package/es/utils/vue/size.mjs +14 -1
  263. package/es/utils/vue/size.mjs.map +1 -1
  264. package/lib/components/alert/index.js +2 -2
  265. package/lib/components/alert/src/alert.js +37 -95
  266. package/lib/components/alert/src/alert.js.map +1 -1
  267. package/lib/components/alert/src/alert2.js +95 -37
  268. package/lib/components/alert/src/alert2.js.map +1 -1
  269. package/lib/components/badge/index.js +2 -2
  270. package/lib/components/badge/src/badge.js +55 -17
  271. package/lib/components/badge/src/badge.js.map +1 -1
  272. package/lib/components/badge/src/badge2.js +17 -55
  273. package/lib/components/badge/src/badge2.js.map +1 -1
  274. package/lib/components/breadcrumb/index.js +4 -4
  275. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
  276. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  277. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
  278. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  279. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  280. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  281. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  282. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  283. package/lib/components/cascader/src/cascader2.js +1 -1
  284. package/lib/components/check-tag/index.js +2 -2
  285. package/lib/components/check-tag/src/check-tag.js +13 -30
  286. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  287. package/lib/components/check-tag/src/check-tag2.js +30 -13
  288. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  289. package/lib/components/checkbox/index.js +2 -2
  290. package/lib/components/checkbox/src/checkbox-group.js +29 -72
  291. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  292. package/lib/components/checkbox/src/checkbox-group2.js +72 -29
  293. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  294. package/lib/components/collapse/index.js +2 -2
  295. package/lib/components/collapse/src/collapse.js +19 -30
  296. package/lib/components/collapse/src/collapse.js.map +1 -1
  297. package/lib/components/collapse/src/collapse2.js +30 -19
  298. package/lib/components/collapse/src/collapse2.js.map +1 -1
  299. package/lib/components/color-picker/index.js +2 -2
  300. package/lib/components/color-picker/src/color-picker.js +319 -38
  301. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  302. package/lib/components/color-picker/src/color-picker2.js +38 -319
  303. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  304. package/lib/components/color-picker/src/components/predefine.js +1 -1
  305. package/lib/components/countdown/index.js +2 -2
  306. package/lib/components/countdown/src/countdown.js +24 -74
  307. package/lib/components/countdown/src/countdown.js.map +1 -1
  308. package/lib/components/countdown/src/countdown2.js +74 -24
  309. package/lib/components/countdown/src/countdown2.js.map +1 -1
  310. package/lib/components/descriptions/index.js +2 -2
  311. package/lib/components/descriptions/src/description.js +25 -111
  312. package/lib/components/descriptions/src/description.js.map +1 -1
  313. package/lib/components/descriptions/src/description2.js +111 -25
  314. package/lib/components/descriptions/src/description2.js.map +1 -1
  315. package/lib/components/divider/index.js +2 -2
  316. package/lib/components/divider/src/divider.js +17 -35
  317. package/lib/components/divider/src/divider.js.map +1 -1
  318. package/lib/components/divider/src/divider2.js +35 -17
  319. package/lib/components/divider/src/divider2.js.map +1 -1
  320. package/lib/components/drawer/index.js +2 -2
  321. package/lib/components/drawer/src/drawer.js +27 -177
  322. package/lib/components/drawer/src/drawer.js.map +1 -1
  323. package/lib/components/drawer/src/drawer2.js +177 -27
  324. package/lib/components/drawer/src/drawer2.js.map +1 -1
  325. package/lib/components/dropdown/index.js +2 -2
  326. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  327. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  328. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  329. package/lib/components/dropdown/src/dropdown.js +307 -106
  330. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  331. package/lib/components/dropdown/src/dropdown2.js +106 -307
  332. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  333. package/lib/components/form/index.js +2 -2
  334. package/lib/components/form/src/form.js +151 -55
  335. package/lib/components/form/src/form.js.map +1 -1
  336. package/lib/components/form/src/form2.js +55 -151
  337. package/lib/components/form/src/form2.js.map +1 -1
  338. package/lib/components/image/index.js +2 -2
  339. package/lib/components/image/src/image.js +62 -219
  340. package/lib/components/image/src/image.js.map +1 -1
  341. package/lib/components/image/src/image2.js +219 -62
  342. package/lib/components/image/src/image2.js.map +1 -1
  343. package/lib/components/image-viewer/index.js +2 -2
  344. package/lib/components/image-viewer/src/image-viewer.js +40 -396
  345. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  346. package/lib/components/image-viewer/src/image-viewer2.js +396 -40
  347. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  348. package/lib/components/index.js +39 -39
  349. package/lib/components/input-number/index.js +2 -2
  350. package/lib/components/input-number/src/input-number.js +57 -309
  351. package/lib/components/input-number/src/input-number.js.map +1 -1
  352. package/lib/components/input-number/src/input-number2.js +309 -57
  353. package/lib/components/input-number/src/input-number2.js.map +1 -1
  354. package/lib/components/menu/index.js +4 -4
  355. package/lib/components/menu/src/menu-item-group.js +35 -4
  356. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  357. package/lib/components/menu/src/menu-item-group2.js +4 -35
  358. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  359. package/lib/components/menu/src/menu-item.js +15 -97
  360. package/lib/components/menu/src/menu-item.js.map +1 -1
  361. package/lib/components/menu/src/menu-item2.js +97 -15
  362. package/lib/components/menu/src/menu-item2.js.map +1 -1
  363. package/lib/components/message/index.js +1 -1
  364. package/lib/components/message/src/message.js +92 -196
  365. package/lib/components/message/src/message.js.map +1 -1
  366. package/lib/components/message/src/message2.js +196 -92
  367. package/lib/components/message/src/message2.js.map +1 -1
  368. package/lib/components/message/src/method.js +2 -2
  369. package/lib/components/notification/index.js +1 -1
  370. package/lib/components/notification/src/notification.js +146 -70
  371. package/lib/components/notification/src/notification.js.map +1 -1
  372. package/lib/components/notification/src/notification2.js +70 -146
  373. package/lib/components/notification/src/notification2.js.map +1 -1
  374. package/lib/components/notification/src/notify.js +2 -2
  375. package/lib/components/pagination/src/components/jumper.js +9 -60
  376. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  377. package/lib/components/pagination/src/components/jumper2.js +60 -9
  378. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  379. package/lib/components/pagination/src/components/next.js +58 -19
  380. package/lib/components/pagination/src/components/next.js.map +1 -1
  381. package/lib/components/pagination/src/components/next2.js +19 -58
  382. package/lib/components/pagination/src/components/next2.js.map +1 -1
  383. package/lib/components/pagination/src/components/pager.js +214 -17
  384. package/lib/components/pagination/src/components/pager.js.map +1 -1
  385. package/lib/components/pagination/src/components/pager2.js +17 -214
  386. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  387. package/lib/components/pagination/src/components/prev.js +19 -58
  388. package/lib/components/pagination/src/components/prev.js.map +1 -1
  389. package/lib/components/pagination/src/components/prev2.js +58 -19
  390. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  391. package/lib/components/pagination/src/components/sizes.js +68 -22
  392. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  393. package/lib/components/pagination/src/components/sizes2.js +22 -68
  394. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  395. package/lib/components/pagination/src/pagination.js +5 -5
  396. package/lib/components/popover/src/popover.js +1 -1
  397. package/lib/components/popper/index.js +4 -4
  398. package/lib/components/popper/src/arrow.js +9 -37
  399. package/lib/components/popper/src/arrow.js.map +1 -1
  400. package/lib/components/popper/src/arrow2.js +37 -9
  401. package/lib/components/popper/src/arrow2.js.map +1 -1
  402. package/lib/components/popper/src/trigger.js +32 -119
  403. package/lib/components/popper/src/trigger.js.map +1 -1
  404. package/lib/components/popper/src/trigger2.js +119 -32
  405. package/lib/components/popper/src/trigger2.js.map +1 -1
  406. package/lib/components/progress/index.js +2 -2
  407. package/lib/components/progress/src/progress.js +202 -57
  408. package/lib/components/progress/src/progress.js.map +1 -1
  409. package/lib/components/progress/src/progress2.js +57 -202
  410. package/lib/components/progress/src/progress2.js.map +1 -1
  411. package/lib/components/radio/index.js +2 -2
  412. package/lib/components/radio/src/radio-button.js +9 -64
  413. package/lib/components/radio/src/radio-button.js.map +1 -1
  414. package/lib/components/radio/src/radio-button2.js +64 -9
  415. package/lib/components/radio/src/radio-button2.js.map +1 -1
  416. package/lib/components/result/index.js +2 -2
  417. package/lib/components/result/src/result.js +63 -31
  418. package/lib/components/result/src/result.js.map +1 -1
  419. package/lib/components/result/src/result2.js +31 -63
  420. package/lib/components/result/src/result2.js.map +1 -1
  421. package/lib/components/roving-focus-group/index.js +2 -2
  422. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  423. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  424. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  425. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  426. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  427. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  428. package/lib/components/row/index.js +2 -2
  429. package/lib/components/row/src/row.js +45 -32
  430. package/lib/components/row/src/row.js.map +1 -1
  431. package/lib/components/row/src/row2.js +32 -45
  432. package/lib/components/row/src/row2.js.map +1 -1
  433. package/lib/components/scrollbar/index.js +3 -3
  434. package/lib/components/scrollbar/src/bar2.js +1 -1
  435. package/lib/components/scrollbar/src/scrollbar.js +174 -47
  436. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  437. package/lib/components/scrollbar/src/scrollbar2.js +47 -174
  438. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  439. package/lib/components/scrollbar/src/thumb.js +130 -11
  440. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  441. package/lib/components/scrollbar/src/thumb2.js +11 -130
  442. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  443. package/lib/components/select/src/select.js +1 -1
  444. package/lib/components/skeleton/index.js +2 -2
  445. package/lib/components/skeleton/src/skeleton-item.js +23 -18
  446. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  447. package/lib/components/skeleton/src/skeleton-item2.js +18 -23
  448. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  449. package/lib/components/skeleton/src/skeleton2.js +1 -1
  450. package/lib/components/slider/src/button.js +93 -22
  451. package/lib/components/slider/src/button.js.map +1 -1
  452. package/lib/components/slider/src/button2.js +22 -93
  453. package/lib/components/slider/src/button2.js.map +1 -1
  454. package/lib/components/slider/src/slider2.js +1 -1
  455. package/lib/components/statistic/index.js +2 -2
  456. package/lib/components/statistic/src/statistic.js +70 -25
  457. package/lib/components/statistic/src/statistic.js.map +1 -1
  458. package/lib/components/statistic/src/statistic2.js +25 -70
  459. package/lib/components/statistic/src/statistic2.js.map +1 -1
  460. package/lib/components/steps/index.js +4 -4
  461. package/lib/components/steps/src/item.js +19 -188
  462. package/lib/components/steps/src/item.js.map +1 -1
  463. package/lib/components/steps/src/item2.js +188 -19
  464. package/lib/components/steps/src/item2.js.map +1 -1
  465. package/lib/components/steps/src/steps.js +34 -37
  466. package/lib/components/steps/src/steps.js.map +1 -1
  467. package/lib/components/steps/src/steps2.js +37 -34
  468. package/lib/components/steps/src/steps2.js.map +1 -1
  469. package/lib/components/table/src/table-header/event-helper.js +2 -1
  470. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  471. package/lib/components/tag/index.js +2 -2
  472. package/lib/components/tag/src/tag.js +34 -94
  473. package/lib/components/tag/src/tag.js.map +1 -1
  474. package/lib/components/tag/src/tag2.js +94 -34
  475. package/lib/components/tag/src/tag2.js.map +1 -1
  476. package/lib/components/teleport/index.js +2 -2
  477. package/lib/components/teleport/src/teleport.js +44 -18
  478. package/lib/components/teleport/src/teleport.js.map +1 -1
  479. package/lib/components/teleport/src/teleport2.js +18 -44
  480. package/lib/components/teleport/src/teleport2.js.map +1 -1
  481. package/lib/components/tooltip/index.js +2 -2
  482. package/lib/components/tooltip/src/tooltip.js +34 -168
  483. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  484. package/lib/components/tooltip/src/tooltip2.js +168 -34
  485. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  486. package/lib/components/tooltip/src/trigger.js +1 -1
  487. package/lib/components/tooltip/src/trigger2.js +1 -1
  488. package/lib/components/tooltip-v2/index.js +2 -2
  489. package/lib/components/tooltip-v2/src/content.js +50 -112
  490. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  491. package/lib/components/tooltip-v2/src/content2.js +112 -50
  492. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  493. package/lib/components/tooltip-v2/src/root.js +80 -17
  494. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  495. package/lib/components/tooltip-v2/src/root2.js +17 -80
  496. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  497. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  498. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  499. package/lib/components/transfer/src/composables/use-check.js +1 -1
  500. package/lib/components/transfer/src/transfer-panel.js +21 -128
  501. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  502. package/lib/components/transfer/src/transfer-panel2.js +128 -21
  503. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  504. package/lib/components/transfer/src/transfer2.js +1 -1
  505. package/lib/components/upload/index.js +2 -2
  506. package/lib/components/upload/src/upload-content.js +32 -172
  507. package/lib/components/upload/src/upload-content.js.map +1 -1
  508. package/lib/components/upload/src/upload-content2.js +172 -32
  509. package/lib/components/upload/src/upload-content2.js.map +1 -1
  510. package/lib/components/upload/src/upload-dragger.js +12 -72
  511. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  512. package/lib/components/upload/src/upload-dragger2.js +72 -12
  513. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  514. package/lib/components/upload/src/upload.js +1 -1
  515. package/lib/index.js +39 -39
  516. package/lib/utils/index.js +1 -0
  517. package/lib/utils/index.js.map +1 -1
  518. package/lib/utils/vue/index.js +1 -0
  519. package/lib/utils/vue/index.js.map +1 -1
  520. package/lib/utils/vue/size.d.ts +1 -0
  521. package/lib/utils/vue/size.js +14 -0
  522. package/lib/utils/vue/size.js.map +1 -1
  523. package/package.json +1 -1
  524. package/web-types.json +1 -1
@@ -1,75 +1,153 @@
1
+ import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createElementBlock, Fragment, vShow, withModifiers, createVNode } from 'vue';
2
+ import { useTimeoutFn, useEventListener } from '@vueuse/core';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
- import { iconPropType } from '../../../utils/vue/icon.mjs';
4
+ import '../../../constants/index.mjs';
5
+ import { ElIcon } from '../../icon/index.mjs';
6
+ import '../../config-provider/index.mjs';
7
+ import { notificationProps, notificationEmits } from './notification2.mjs';
8
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
+ import { useGlobalComponentSettings } from '../../config-provider/src/hooks/use-global-config.mjs';
10
+ import { CloseComponents, TypeComponentsMap } from '../../../utils/vue/icon.mjs';
11
+ import { EVENT_CODE } from '../../../constants/aria.mjs';
4
12
 
5
- const notificationTypes = [
6
- "success",
7
- "info",
8
- "warning",
9
- "error"
10
- ];
11
- const notificationProps = buildProps({
12
- customClass: {
13
- type: String,
14
- default: ""
15
- },
16
- dangerouslyUseHTMLString: {
17
- type: Boolean,
18
- default: false
19
- },
20
- duration: {
21
- type: Number,
22
- default: 4500
23
- },
24
- icon: {
25
- type: iconPropType
26
- },
27
- id: {
28
- type: String,
29
- default: ""
30
- },
31
- message: {
32
- type: definePropType([String, Object]),
33
- default: ""
34
- },
35
- offset: {
36
- type: Number,
37
- default: 0
38
- },
39
- onClick: {
40
- type: definePropType(Function),
41
- default: () => void 0
42
- },
43
- onClose: {
44
- type: definePropType(Function),
45
- required: true
46
- },
47
- position: {
48
- type: String,
49
- values: ["top-right", "top-left", "bottom-right", "bottom-left"],
50
- default: "top-right"
51
- },
52
- showClose: {
53
- type: Boolean,
54
- default: true
55
- },
56
- title: {
57
- type: String,
58
- default: ""
59
- },
60
- type: {
61
- type: String,
62
- values: [...notificationTypes, ""],
63
- default: ""
64
- },
65
- zIndex: {
66
- type: Number,
67
- default: 0
13
+ const _hoisted_1 = ["id"];
14
+ const _hoisted_2 = ["textContent"];
15
+ const _hoisted_3 = { key: 0 };
16
+ const _hoisted_4 = ["innerHTML"];
17
+ const __default__ = defineComponent({
18
+ name: "ElNotification"
19
+ });
20
+ const _sfc_main = /* @__PURE__ */ defineComponent({
21
+ ...__default__,
22
+ props: notificationProps,
23
+ emits: notificationEmits,
24
+ setup(__props, { expose }) {
25
+ const props = __props;
26
+ const { ns, zIndex } = useGlobalComponentSettings("notification");
27
+ const { nextZIndex, currentZIndex } = zIndex;
28
+ const { Close } = CloseComponents;
29
+ const visible = ref(false);
30
+ let timer = void 0;
31
+ const typeClass = computed(() => {
32
+ const type = props.type;
33
+ return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
34
+ });
35
+ const iconComponent = computed(() => {
36
+ if (!props.type)
37
+ return props.icon;
38
+ return TypeComponentsMap[props.type] || props.icon;
39
+ });
40
+ const horizontalClass = computed(() => props.position.endsWith("right") ? "right" : "left");
41
+ const verticalProperty = computed(() => props.position.startsWith("top") ? "top" : "bottom");
42
+ const positionStyle = computed(() => {
43
+ return {
44
+ [verticalProperty.value]: `${props.offset}px`,
45
+ zIndex: currentZIndex.value
46
+ };
47
+ });
48
+ function startTimer() {
49
+ if (props.duration > 0) {
50
+ ;
51
+ ({ stop: timer } = useTimeoutFn(() => {
52
+ if (visible.value)
53
+ close();
54
+ }, props.duration));
55
+ }
56
+ }
57
+ function clearTimer() {
58
+ timer == null ? void 0 : timer();
59
+ }
60
+ function close() {
61
+ visible.value = false;
62
+ }
63
+ function onKeydown({ code }) {
64
+ if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {
65
+ clearTimer();
66
+ } else if (code === EVENT_CODE.esc) {
67
+ if (visible.value) {
68
+ close();
69
+ }
70
+ } else {
71
+ startTimer();
72
+ }
73
+ }
74
+ onMounted(() => {
75
+ startTimer();
76
+ nextZIndex();
77
+ visible.value = true;
78
+ });
79
+ useEventListener(document, "keydown", onKeydown);
80
+ expose({
81
+ visible,
82
+ close
83
+ });
84
+ return (_ctx, _cache) => {
85
+ return openBlock(), createBlock(Transition, {
86
+ name: unref(ns).b("fade"),
87
+ onBeforeLeave: _ctx.onClose,
88
+ onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("destroy")),
89
+ persisted: ""
90
+ }, {
91
+ default: withCtx(() => [
92
+ withDirectives(createElementVNode("div", {
93
+ id: _ctx.id,
94
+ class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
95
+ style: normalizeStyle(unref(positionStyle)),
96
+ role: "alert",
97
+ onMouseenter: clearTimer,
98
+ onMouseleave: startTimer,
99
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
100
+ }, [
101
+ unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
102
+ key: 0,
103
+ class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
104
+ }, {
105
+ default: withCtx(() => [
106
+ (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
107
+ ]),
108
+ _: 1
109
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
110
+ createElementVNode("div", {
111
+ class: normalizeClass(unref(ns).e("group"))
112
+ }, [
113
+ createElementVNode("h2", {
114
+ class: normalizeClass(unref(ns).e("title")),
115
+ textContent: toDisplayString(_ctx.title)
116
+ }, null, 10, _hoisted_2),
117
+ withDirectives(createElementVNode("div", {
118
+ class: normalizeClass(unref(ns).e("content")),
119
+ style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
120
+ }, [
121
+ renderSlot(_ctx.$slots, "default", {}, () => [
122
+ !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
123
+ createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
124
+ createElementVNode("p", { innerHTML: _ctx.message }, null, 8, _hoisted_4)
125
+ ], 2112))
126
+ ])
127
+ ], 6), [
128
+ [vShow, _ctx.message]
129
+ ]),
130
+ _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
131
+ key: 0,
132
+ class: normalizeClass(unref(ns).e("closeBtn")),
133
+ onClick: withModifiers(close, ["stop"])
134
+ }, {
135
+ default: withCtx(() => [
136
+ createVNode(unref(Close))
137
+ ]),
138
+ _: 1
139
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
140
+ ], 2)
141
+ ], 46, _hoisted_1), [
142
+ [vShow, visible.value]
143
+ ])
144
+ ]),
145
+ _: 3
146
+ }, 8, ["name", "onBeforeLeave"]);
147
+ };
68
148
  }
69
149
  });
70
- const notificationEmits = {
71
- destroy: () => true
72
- };
150
+ var NotificationConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\notification\\src\\notification.vue"]]);
73
151
 
74
- export { notificationEmits, notificationProps, notificationTypes };
152
+ export { NotificationConstructor as default };
75
153
  //# sourceMappingURL=notification.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.mjs","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNode } from 'vue'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const notificationProps = buildProps({\n customClass: {\n type: String,\n default: '',\n },\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: false,\n },\n duration: {\n type: Number,\n default: 4500,\n },\n icon: {\n type: iconPropType,\n },\n id: {\n type: String,\n default: '',\n },\n message: {\n type: definePropType<string | VNode>([String, Object]),\n default: '',\n },\n offset: {\n type: Number,\n default: 0,\n },\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n zIndex: {\n type: Number,\n default: 0,\n },\n} as const)\nexport type NotificationProps = ExtractPropTypes<typeof notificationProps>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification>\n\nexport type NotificationOptions = Omit<NotificationProps, 'id'> & {\n appendTo?: HTMLElement | string\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport type NotifyFn = ((\n options?: NotificationParams\n) => NotificationHandle) & { closeAll: () => void }\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":[],"mappings":";;;;AACY,MAAC,iBAAiB,GAAG;AACjC,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE;AACU,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,wBAAwB,EAAE;AAC5B,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC;AACpE,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,CAAC;AACtC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAE,MAAM,IAAI;AACrB;;;;"}
1
+ {"version":3,"file":"notification.mjs","sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <Close />\n </el-icon>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref } from 'vue'\nimport { useEventListener, useTimeoutFn } from '@vueuse/core'\nimport { CloseComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { notificationEmits, notificationProps } from './notification'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = defineProps(notificationProps)\ndefineEmits(notificationEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('notification')\nconst { nextZIndex, currentZIndex } = zIndex\n\nconst { Close } = CloseComponents\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst iconComponent = computed(() => {\n if (!props.type) return props.icon\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: currentZIndex.value,\n }\n})\n\nfunction startTimer() {\n if (props.duration > 0) {\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, props.duration))\n }\n}\n\nfunction clearTimer() {\n timer?.()\n}\n\nfunction close() {\n visible.value = false\n}\n\nfunction onKeydown({ code }: KeyboardEvent) {\n if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {\n clearTimer() // press delete/backspace clear timer\n } else if (code === EVENT_CODE.esc) {\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n } else {\n startTimer() // resume timer\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;mCAkDc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,EAAE,EAAA,EAAI,MAAW,EAAA,GAAA,0BAAA,CAA2B,cAAc,CAAA,CAAA;AAChE,IAAM,MAAA,EAAE,YAAY,aAAkB,EAAA,GAAA,MAAA,CAAA;AAEtC,IAAA,MAAM,EAAE,KAAU,EAAA,GAAA,eAAA,CAAA;AAElB,IAAM,MAAA,OAAA,GAAU,IAAI,KAAK,CAAA,CAAA;AACzB,IAAA,IAAI,KAAkC,GAAA,KAAA,CAAA,CAAA;AAEtC,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,OAAO,QAAQ,iBAAkB,CAAA,KAAA,CAAM,QAAQ,EAAG,CAAA,CAAA,CAAE,IAAI,CAAI,GAAA,EAAA,CAAA;AAAA,KAC7D,CAAA,CAAA;AAED,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,IAAI,CAAC,KAAM,CAAA,IAAA;AAAM,QAAA,OAAO,KAAM,CAAA,IAAA,CAAA;AAC9B,MAAO,OAAA,iBAAA,CAAkB,KAAM,CAAA,IAAA,CAAA,IAAS,KAAM,CAAA,IAAA,CAAA;AAAA,KAC/C,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkB,SAAS,MAC/B,KAAA,CAAM,SAAS,QAAS,CAAA,OAAO,CAAI,GAAA,OAAA,GAAU,MAC/C,CAAA,CAAA;AAEA,IAAM,MAAA,gBAAA,GAAmB,SAAS,MAChC,KAAA,CAAM,SAAS,UAAW,CAAA,KAAK,CAAI,GAAA,KAAA,GAAQ,QAC7C,CAAA,CAAA;AAEA,IAAM,MAAA,aAAA,GAAgB,SAAwB,MAAM;AAClD,MAAO,OAAA;AAAA,QACL,CAAC,gBAAA,CAAiB,KAAQ,GAAA,CAAA,EAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,QACnC,QAAQ,aAAc,CAAA,KAAA;AAAA,OACxB,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAsB,SAAA,UAAA,GAAA;AACpB,MAAI,IAAA,KAAA,CAAM,WAAW,CAAG,EAAA;AACtB,QAAA,CAAA;AAAC,QAAC,CAAE,EAAA,IAAA,EAAM,KAAM,EAAA,GAAI,aAAa,MAAM;AACrC,UAAA,IAAI,OAAQ,CAAA,KAAA;AAAO,YAAM,KAAA,EAAA,CAAA;AAAA,SAC3B,EAAG,MAAM,QAAQ,CAAA,EAAA;AAAA,OACnB;AAAA,KACF;AAEA,IAAsB,SAAA,UAAA,GAAA;AACpB,MAAQ,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,EAAA,CAAA;AAAA,KACV;AAEA,IAAiB,SAAA,KAAA,GAAA;AACf,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAAA,KAClB;AAEA,IAAA,SAAA,SAAA,CAAmB,EAAE,IAAuB,EAAA,EAAA;AAC1C,MAAA,IAAI,IAAS,KAAA,UAAA,CAAW,MAAU,IAAA,IAAA,KAAS,WAAW,SAAW,EAAA;AAC/D,QAAW,UAAA,EAAA,CAAA;AAAA,OACb,MAAA,IAAW,IAAS,KAAA,UAAA,CAAW,GAAK,EAAA;AAElC,QAAA,IAAI,QAAQ,KAAO,EAAA;AACjB,UAAM,KAAA,EAAA,CAAA;AAAA,SACR;AAAA,OACK,MAAA;AACL,QAAW,UAAA,EAAA,CAAA;AAAA,OACb;AAAA,KACF;AAGA,IAAA,SAAA,CAAU,MAAM;AACd,MAAW,UAAA,EAAA,CAAA;AACX,MAAW,UAAA,EAAA,CAAA;AACX,MAAA,OAAA,CAAQ,KAAQ,GAAA,IAAA,CAAA;AAAA,KACjB,CAAA,CAAA;AAED,IAAiB,gBAAA,CAAA,QAAA,EAAU,WAAW,SAAS,CAAA,CAAA;AAE/C,IAAa,MAAA,CAAA;AAAA,MACX,OAAA;AAAA,MAEA,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,153 +1,75 @@
1
- import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createElementBlock, Fragment, vShow, withModifiers, createVNode } from 'vue';
2
- import { useTimeoutFn, useEventListener } from '@vueuse/core';
3
1
  import '../../../utils/index.mjs';
4
- import '../../../constants/index.mjs';
5
- import { ElIcon } from '../../icon/index.mjs';
6
- import '../../config-provider/index.mjs';
7
- import { notificationProps, notificationEmits } from './notification.mjs';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { useGlobalComponentSettings } from '../../config-provider/src/hooks/use-global-config.mjs';
10
- import { CloseComponents, TypeComponentsMap } from '../../../utils/vue/icon.mjs';
11
- import { EVENT_CODE } from '../../../constants/aria.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
12
4
 
13
- const _hoisted_1 = ["id"];
14
- const _hoisted_2 = ["textContent"];
15
- const _hoisted_3 = { key: 0 };
16
- const _hoisted_4 = ["innerHTML"];
17
- const __default__ = defineComponent({
18
- name: "ElNotification"
19
- });
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- ...__default__,
22
- props: notificationProps,
23
- emits: notificationEmits,
24
- setup(__props, { expose }) {
25
- const props = __props;
26
- const { ns, zIndex } = useGlobalComponentSettings("notification");
27
- const { nextZIndex, currentZIndex } = zIndex;
28
- const { Close } = CloseComponents;
29
- const visible = ref(false);
30
- let timer = void 0;
31
- const typeClass = computed(() => {
32
- const type = props.type;
33
- return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
34
- });
35
- const iconComponent = computed(() => {
36
- if (!props.type)
37
- return props.icon;
38
- return TypeComponentsMap[props.type] || props.icon;
39
- });
40
- const horizontalClass = computed(() => props.position.endsWith("right") ? "right" : "left");
41
- const verticalProperty = computed(() => props.position.startsWith("top") ? "top" : "bottom");
42
- const positionStyle = computed(() => {
43
- return {
44
- [verticalProperty.value]: `${props.offset}px`,
45
- zIndex: currentZIndex.value
46
- };
47
- });
48
- function startTimer() {
49
- if (props.duration > 0) {
50
- ;
51
- ({ stop: timer } = useTimeoutFn(() => {
52
- if (visible.value)
53
- close();
54
- }, props.duration));
55
- }
56
- }
57
- function clearTimer() {
58
- timer == null ? void 0 : timer();
59
- }
60
- function close() {
61
- visible.value = false;
62
- }
63
- function onKeydown({ code }) {
64
- if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {
65
- clearTimer();
66
- } else if (code === EVENT_CODE.esc) {
67
- if (visible.value) {
68
- close();
69
- }
70
- } else {
71
- startTimer();
72
- }
73
- }
74
- onMounted(() => {
75
- startTimer();
76
- nextZIndex();
77
- visible.value = true;
78
- });
79
- useEventListener(document, "keydown", onKeydown);
80
- expose({
81
- visible,
82
- close
83
- });
84
- return (_ctx, _cache) => {
85
- return openBlock(), createBlock(Transition, {
86
- name: unref(ns).b("fade"),
87
- onBeforeLeave: _ctx.onClose,
88
- onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("destroy")),
89
- persisted: ""
90
- }, {
91
- default: withCtx(() => [
92
- withDirectives(createElementVNode("div", {
93
- id: _ctx.id,
94
- class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
95
- style: normalizeStyle(unref(positionStyle)),
96
- role: "alert",
97
- onMouseenter: clearTimer,
98
- onMouseleave: startTimer,
99
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
100
- }, [
101
- unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
102
- key: 0,
103
- class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
104
- }, {
105
- default: withCtx(() => [
106
- (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
107
- ]),
108
- _: 1
109
- }, 8, ["class"])) : createCommentVNode("v-if", true),
110
- createElementVNode("div", {
111
- class: normalizeClass(unref(ns).e("group"))
112
- }, [
113
- createElementVNode("h2", {
114
- class: normalizeClass(unref(ns).e("title")),
115
- textContent: toDisplayString(_ctx.title)
116
- }, null, 10, _hoisted_2),
117
- withDirectives(createElementVNode("div", {
118
- class: normalizeClass(unref(ns).e("content")),
119
- style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
120
- }, [
121
- renderSlot(_ctx.$slots, "default", {}, () => [
122
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
123
- createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
124
- createElementVNode("p", { innerHTML: _ctx.message }, null, 8, _hoisted_4)
125
- ], 2112))
126
- ])
127
- ], 6), [
128
- [vShow, _ctx.message]
129
- ]),
130
- _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
131
- key: 0,
132
- class: normalizeClass(unref(ns).e("closeBtn")),
133
- onClick: withModifiers(close, ["stop"])
134
- }, {
135
- default: withCtx(() => [
136
- createVNode(unref(Close))
137
- ]),
138
- _: 1
139
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
140
- ], 2)
141
- ], 46, _hoisted_1), [
142
- [vShow, visible.value]
143
- ])
144
- ]),
145
- _: 3
146
- }, 8, ["name", "onBeforeLeave"]);
147
- };
5
+ const notificationTypes = [
6
+ "success",
7
+ "info",
8
+ "warning",
9
+ "error"
10
+ ];
11
+ const notificationProps = buildProps({
12
+ customClass: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ dangerouslyUseHTMLString: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ duration: {
21
+ type: Number,
22
+ default: 4500
23
+ },
24
+ icon: {
25
+ type: iconPropType
26
+ },
27
+ id: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ message: {
32
+ type: definePropType([String, Object]),
33
+ default: ""
34
+ },
35
+ offset: {
36
+ type: Number,
37
+ default: 0
38
+ },
39
+ onClick: {
40
+ type: definePropType(Function),
41
+ default: () => void 0
42
+ },
43
+ onClose: {
44
+ type: definePropType(Function),
45
+ required: true
46
+ },
47
+ position: {
48
+ type: String,
49
+ values: ["top-right", "top-left", "bottom-right", "bottom-left"],
50
+ default: "top-right"
51
+ },
52
+ showClose: {
53
+ type: Boolean,
54
+ default: true
55
+ },
56
+ title: {
57
+ type: String,
58
+ default: ""
59
+ },
60
+ type: {
61
+ type: String,
62
+ values: [...notificationTypes, ""],
63
+ default: ""
64
+ },
65
+ zIndex: {
66
+ type: Number,
67
+ default: 0
148
68
  }
149
69
  });
150
- var NotificationConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\notification\\src\\notification.vue"]]);
70
+ const notificationEmits = {
71
+ destroy: () => true
72
+ };
151
73
 
152
- export { NotificationConstructor as default };
74
+ export { notificationEmits, notificationProps, notificationTypes };
153
75
  //# sourceMappingURL=notification2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification2.mjs","sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <Close />\n </el-icon>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref } from 'vue'\nimport { useEventListener, useTimeoutFn } from '@vueuse/core'\nimport { CloseComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { notificationEmits, notificationProps } from './notification'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = defineProps(notificationProps)\ndefineEmits(notificationEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('notification')\nconst { nextZIndex, currentZIndex } = zIndex\n\nconst { Close } = CloseComponents\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst iconComponent = computed(() => {\n if (!props.type) return props.icon\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: currentZIndex.value,\n }\n})\n\nfunction startTimer() {\n if (props.duration > 0) {\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, props.duration))\n }\n}\n\nfunction clearTimer() {\n timer?.()\n}\n\nfunction close() {\n visible.value = false\n}\n\nfunction onKeydown({ code }: KeyboardEvent) {\n if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {\n clearTimer() // press delete/backspace clear timer\n } else if (code === EVENT_CODE.esc) {\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n } else {\n startTimer() // resume timer\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"notification2.mjs","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNode } from 'vue'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const notificationProps = buildProps({\n customClass: {\n type: String,\n default: '',\n },\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: false,\n },\n duration: {\n type: Number,\n default: 4500,\n },\n icon: {\n type: iconPropType,\n },\n id: {\n type: String,\n default: '',\n },\n message: {\n type: definePropType<string | VNode>([String, Object]),\n default: '',\n },\n offset: {\n type: Number,\n default: 0,\n },\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n zIndex: {\n type: Number,\n default: 0,\n },\n} as const)\nexport type NotificationProps = ExtractPropTypes<typeof notificationProps>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification>\n\nexport type NotificationOptions = Omit<NotificationProps, 'id'> & {\n appendTo?: HTMLElement | string\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport type NotifyFn = ((\n options?: NotificationParams\n) => NotificationHandle) & { closeAll: () => void }\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":[],"mappings":";;;;AACY,MAAC,iBAAiB,GAAG;AACjC,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE;AACU,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,wBAAwB,EAAE;AAC5B,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC;AACpE,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,CAAC;AACtC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAE,MAAM,IAAI;AACrB;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { isVNode, createVNode, render } from 'vue';
2
2
  import { isClient } from '@vueuse/core';
3
3
  import '../../../utils/index.mjs';
4
- import NotificationConstructor from './notification2.mjs';
5
- import { notificationTypes } from './notification.mjs';
4
+ import NotificationConstructor from './notification.mjs';
5
+ import { notificationTypes } from './notification2.mjs';
6
6
  import { isElement } from '../../../utils/types.mjs';
7
7
  import { isString } from '@vue/shared';
8
8
  import { debugWarn } from '../../../utils/error.mjs';
@@ -1,65 +1,14 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode } from 'vue';
2
- import '../../../../hooks/index.mjs';
3
- import { ElInput } from '../../../input/index.mjs';
4
- import { usePagination } from '../usePagination.mjs';
5
- import { paginationJumperProps } from './jumper2.mjs';
6
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useLocale } from '../../../../hooks/use-locale/index.mjs';
8
- import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
1
+ import '../../../../utils/index.mjs';
2
+ import '../../../../constants/index.mjs';
3
+ import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
4
+ import { componentSizes } from '../../../../constants/size.mjs';
9
5
 
10
- const _hoisted_1 = ["disabled"];
11
- const __default__ = defineComponent({
12
- name: "ElPaginationJumper"
13
- });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: paginationJumperProps,
17
- setup(__props) {
18
- const { t } = useLocale();
19
- const ns = useNamespace("pagination");
20
- const { pageCount, disabled, currentPage, changeEvent } = usePagination();
21
- const userInput = ref();
22
- const innerValue = computed(() => {
23
- var _a;
24
- return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
25
- });
26
- function handleInput(val) {
27
- userInput.value = +val;
28
- }
29
- function handleChange(val) {
30
- val = Math.trunc(+val);
31
- changeEvent == null ? void 0 : changeEvent(+val);
32
- userInput.value = void 0;
33
- }
34
- return (_ctx, _cache) => {
35
- return openBlock(), createElementBlock("span", {
36
- class: normalizeClass(unref(ns).e("jump")),
37
- disabled: unref(disabled)
38
- }, [
39
- createElementVNode("span", {
40
- class: normalizeClass([unref(ns).e("goto")])
41
- }, toDisplayString(unref(t)("el.pagination.goto")), 3),
42
- createVNode(unref(ElInput), {
43
- size: _ctx.size,
44
- class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
45
- min: 1,
46
- max: unref(pageCount),
47
- disabled: unref(disabled),
48
- "model-value": unref(innerValue),
49
- "validate-event": false,
50
- label: unref(t)("el.pagination.page"),
51
- type: "number",
52
- "onUpdate:modelValue": handleInput,
53
- onChange: handleChange
54
- }, null, 8, ["size", "class", "max", "disabled", "model-value", "label"]),
55
- createElementVNode("span", {
56
- class: normalizeClass([unref(ns).e("classifier")])
57
- }, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
58
- ], 10, _hoisted_1);
59
- };
6
+ const paginationJumperProps = buildProps({
7
+ size: {
8
+ type: String,
9
+ values: componentSizes
60
10
  }
61
11
  });
62
- var Jumper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\pagination\\src\\components\\jumper.vue"]]);
63
12
 
64
- export { Jumper as default };
13
+ export { paginationJumperProps };
65
14
  //# sourceMappingURL=jumper.mjs.map