element-pe 2.2.40 → 2.2.41

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 (752) hide show
  1. package/dist/index.full.js +5 -5
  2. package/dist/index.full.min.js +8 -8
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +9 -9
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +5 -5
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/ckb.js +1 -1
  32. package/dist/locale/ckb.min.js +1 -1
  33. package/dist/locale/ckb.min.mjs +1 -1
  34. package/dist/locale/ckb.mjs +1 -1
  35. package/dist/locale/cs.js +1 -1
  36. package/dist/locale/cs.min.js +1 -1
  37. package/dist/locale/cs.min.mjs +1 -1
  38. package/dist/locale/cs.mjs +1 -1
  39. package/dist/locale/da.js +1 -1
  40. package/dist/locale/da.min.js +1 -1
  41. package/dist/locale/da.min.mjs +1 -1
  42. package/dist/locale/da.mjs +1 -1
  43. package/dist/locale/de.js +1 -1
  44. package/dist/locale/de.min.js +1 -1
  45. package/dist/locale/de.min.mjs +1 -1
  46. package/dist/locale/de.mjs +1 -1
  47. package/dist/locale/el.js +1 -1
  48. package/dist/locale/el.min.js +1 -1
  49. package/dist/locale/el.min.mjs +1 -1
  50. package/dist/locale/el.mjs +1 -1
  51. package/dist/locale/en.js +1 -1
  52. package/dist/locale/en.min.js +1 -1
  53. package/dist/locale/en.min.mjs +1 -1
  54. package/dist/locale/en.mjs +1 -1
  55. package/dist/locale/eo.js +1 -1
  56. package/dist/locale/eo.min.js +1 -1
  57. package/dist/locale/eo.min.mjs +1 -1
  58. package/dist/locale/eo.mjs +1 -1
  59. package/dist/locale/es.js +1 -1
  60. package/dist/locale/es.min.js +1 -1
  61. package/dist/locale/es.min.mjs +1 -1
  62. package/dist/locale/es.mjs +1 -1
  63. package/dist/locale/et.js +1 -1
  64. package/dist/locale/et.min.js +1 -1
  65. package/dist/locale/et.min.mjs +1 -1
  66. package/dist/locale/et.mjs +1 -1
  67. package/dist/locale/eu.js +1 -1
  68. package/dist/locale/eu.min.js +1 -1
  69. package/dist/locale/eu.min.mjs +1 -1
  70. package/dist/locale/eu.mjs +1 -1
  71. package/dist/locale/fa.js +1 -1
  72. package/dist/locale/fa.min.js +1 -1
  73. package/dist/locale/fa.min.mjs +1 -1
  74. package/dist/locale/fa.mjs +1 -1
  75. package/dist/locale/fi.js +1 -1
  76. package/dist/locale/fi.min.js +1 -1
  77. package/dist/locale/fi.min.mjs +1 -1
  78. package/dist/locale/fi.mjs +1 -1
  79. package/dist/locale/fr.js +1 -1
  80. package/dist/locale/fr.min.js +1 -1
  81. package/dist/locale/fr.min.mjs +1 -1
  82. package/dist/locale/fr.mjs +1 -1
  83. package/dist/locale/he.js +1 -1
  84. package/dist/locale/he.min.js +1 -1
  85. package/dist/locale/he.min.mjs +1 -1
  86. package/dist/locale/he.mjs +1 -1
  87. package/dist/locale/hr.js +1 -1
  88. package/dist/locale/hr.min.js +1 -1
  89. package/dist/locale/hr.min.mjs +1 -1
  90. package/dist/locale/hr.mjs +1 -1
  91. package/dist/locale/hu.js +1 -1
  92. package/dist/locale/hu.min.js +1 -1
  93. package/dist/locale/hu.min.mjs +1 -1
  94. package/dist/locale/hu.mjs +1 -1
  95. package/dist/locale/hy-am.js +1 -1
  96. package/dist/locale/hy-am.min.js +1 -1
  97. package/dist/locale/hy-am.min.mjs +1 -1
  98. package/dist/locale/hy-am.mjs +1 -1
  99. package/dist/locale/id.js +1 -1
  100. package/dist/locale/id.min.js +1 -1
  101. package/dist/locale/id.min.mjs +1 -1
  102. package/dist/locale/id.mjs +1 -1
  103. package/dist/locale/it.js +1 -1
  104. package/dist/locale/it.min.js +1 -1
  105. package/dist/locale/it.min.mjs +1 -1
  106. package/dist/locale/it.mjs +1 -1
  107. package/dist/locale/ja.js +1 -1
  108. package/dist/locale/ja.min.js +1 -1
  109. package/dist/locale/ja.min.mjs +1 -1
  110. package/dist/locale/ja.mjs +1 -1
  111. package/dist/locale/kk.js +1 -1
  112. package/dist/locale/kk.min.js +1 -1
  113. package/dist/locale/kk.min.mjs +1 -1
  114. package/dist/locale/kk.mjs +1 -1
  115. package/dist/locale/km.js +1 -1
  116. package/dist/locale/km.min.js +1 -1
  117. package/dist/locale/km.min.mjs +1 -1
  118. package/dist/locale/km.mjs +1 -1
  119. package/dist/locale/ko.js +1 -1
  120. package/dist/locale/ko.min.js +1 -1
  121. package/dist/locale/ko.min.mjs +1 -1
  122. package/dist/locale/ko.mjs +1 -1
  123. package/dist/locale/ku.js +1 -1
  124. package/dist/locale/ku.min.js +1 -1
  125. package/dist/locale/ku.min.mjs +1 -1
  126. package/dist/locale/ku.mjs +1 -1
  127. package/dist/locale/ky.js +1 -1
  128. package/dist/locale/ky.min.js +1 -1
  129. package/dist/locale/ky.min.mjs +1 -1
  130. package/dist/locale/ky.mjs +1 -1
  131. package/dist/locale/lt.js +1 -1
  132. package/dist/locale/lt.min.js +1 -1
  133. package/dist/locale/lt.min.mjs +1 -1
  134. package/dist/locale/lt.mjs +1 -1
  135. package/dist/locale/lv.js +1 -1
  136. package/dist/locale/lv.min.js +1 -1
  137. package/dist/locale/lv.min.mjs +1 -1
  138. package/dist/locale/lv.mjs +1 -1
  139. package/dist/locale/mg.js +1 -1
  140. package/dist/locale/mg.min.js +1 -1
  141. package/dist/locale/mg.min.mjs +1 -1
  142. package/dist/locale/mg.mjs +1 -1
  143. package/dist/locale/mn.js +1 -1
  144. package/dist/locale/mn.min.js +1 -1
  145. package/dist/locale/mn.min.mjs +1 -1
  146. package/dist/locale/mn.mjs +1 -1
  147. package/dist/locale/nb-no.js +1 -1
  148. package/dist/locale/nb-no.min.js +1 -1
  149. package/dist/locale/nb-no.min.mjs +1 -1
  150. package/dist/locale/nb-no.mjs +1 -1
  151. package/dist/locale/nl.js +1 -1
  152. package/dist/locale/nl.min.js +1 -1
  153. package/dist/locale/nl.min.mjs +1 -1
  154. package/dist/locale/nl.mjs +1 -1
  155. package/dist/locale/pa.js +1 -1
  156. package/dist/locale/pa.min.js +1 -1
  157. package/dist/locale/pa.min.mjs +1 -1
  158. package/dist/locale/pa.mjs +1 -1
  159. package/dist/locale/pl.js +1 -1
  160. package/dist/locale/pl.min.js +1 -1
  161. package/dist/locale/pl.min.mjs +1 -1
  162. package/dist/locale/pl.mjs +1 -1
  163. package/dist/locale/pt-br.js +1 -1
  164. package/dist/locale/pt-br.min.js +1 -1
  165. package/dist/locale/pt-br.min.mjs +1 -1
  166. package/dist/locale/pt-br.mjs +1 -1
  167. package/dist/locale/pt.js +1 -1
  168. package/dist/locale/pt.min.js +1 -1
  169. package/dist/locale/pt.min.mjs +1 -1
  170. package/dist/locale/pt.mjs +1 -1
  171. package/dist/locale/ro.js +1 -1
  172. package/dist/locale/ro.min.js +1 -1
  173. package/dist/locale/ro.min.mjs +1 -1
  174. package/dist/locale/ro.mjs +1 -1
  175. package/dist/locale/ru.js +1 -1
  176. package/dist/locale/ru.min.js +1 -1
  177. package/dist/locale/ru.min.mjs +1 -1
  178. package/dist/locale/ru.mjs +1 -1
  179. package/dist/locale/sk.js +1 -1
  180. package/dist/locale/sk.min.js +1 -1
  181. package/dist/locale/sk.min.mjs +1 -1
  182. package/dist/locale/sk.mjs +1 -1
  183. package/dist/locale/sl.js +1 -1
  184. package/dist/locale/sl.min.js +1 -1
  185. package/dist/locale/sl.min.mjs +1 -1
  186. package/dist/locale/sl.mjs +1 -1
  187. package/dist/locale/sr.js +1 -1
  188. package/dist/locale/sr.min.js +1 -1
  189. package/dist/locale/sr.min.mjs +1 -1
  190. package/dist/locale/sr.mjs +1 -1
  191. package/dist/locale/sv.js +1 -1
  192. package/dist/locale/sv.min.js +1 -1
  193. package/dist/locale/sv.min.mjs +1 -1
  194. package/dist/locale/sv.mjs +1 -1
  195. package/dist/locale/ta.js +1 -1
  196. package/dist/locale/ta.min.js +1 -1
  197. package/dist/locale/ta.min.mjs +1 -1
  198. package/dist/locale/ta.mjs +1 -1
  199. package/dist/locale/th.js +1 -1
  200. package/dist/locale/th.min.js +1 -1
  201. package/dist/locale/th.min.mjs +1 -1
  202. package/dist/locale/th.mjs +1 -1
  203. package/dist/locale/tk.js +1 -1
  204. package/dist/locale/tk.min.js +1 -1
  205. package/dist/locale/tk.min.mjs +1 -1
  206. package/dist/locale/tk.mjs +1 -1
  207. package/dist/locale/tr.js +1 -1
  208. package/dist/locale/tr.min.js +1 -1
  209. package/dist/locale/tr.min.mjs +1 -1
  210. package/dist/locale/tr.mjs +1 -1
  211. package/dist/locale/ug-cn.js +1 -1
  212. package/dist/locale/ug-cn.min.js +1 -1
  213. package/dist/locale/ug-cn.min.mjs +1 -1
  214. package/dist/locale/ug-cn.mjs +1 -1
  215. package/dist/locale/uk.js +1 -1
  216. package/dist/locale/uk.min.js +1 -1
  217. package/dist/locale/uk.min.mjs +1 -1
  218. package/dist/locale/uk.mjs +1 -1
  219. package/dist/locale/uz-uz.js +1 -1
  220. package/dist/locale/uz-uz.min.js +1 -1
  221. package/dist/locale/uz-uz.min.mjs +1 -1
  222. package/dist/locale/uz-uz.mjs +1 -1
  223. package/dist/locale/vi.js +1 -1
  224. package/dist/locale/vi.min.js +1 -1
  225. package/dist/locale/vi.min.mjs +1 -1
  226. package/dist/locale/vi.mjs +1 -1
  227. package/dist/locale/zh-cn.js +1 -1
  228. package/dist/locale/zh-cn.min.js +1 -1
  229. package/dist/locale/zh-cn.min.mjs +1 -1
  230. package/dist/locale/zh-cn.mjs +1 -1
  231. package/dist/locale/zh-tw.js +1 -1
  232. package/dist/locale/zh-tw.min.js +1 -1
  233. package/dist/locale/zh-tw.min.mjs +1 -1
  234. package/dist/locale/zh-tw.mjs +1 -1
  235. package/es/components/affix/index.mjs +2 -2
  236. package/es/components/affix/src/affix.mjs +26 -119
  237. package/es/components/affix/src/affix.mjs.map +1 -1
  238. package/es/components/affix/src/affix2.mjs +119 -26
  239. package/es/components/affix/src/affix2.mjs.map +1 -1
  240. package/es/components/backtop/index.mjs +2 -2
  241. package/es/components/backtop/src/backtop.mjs +23 -61
  242. package/es/components/backtop/src/backtop.mjs.map +1 -1
  243. package/es/components/backtop/src/backtop2.mjs +61 -23
  244. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  245. package/es/components/badge/index.mjs +2 -2
  246. package/es/components/badge/src/badge.mjs +59 -17
  247. package/es/components/badge/src/badge.mjs.map +1 -1
  248. package/es/components/badge/src/badge2.mjs +17 -59
  249. package/es/components/badge/src/badge2.mjs.map +1 -1
  250. package/es/components/breadcrumb/index.mjs +2 -2
  251. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  252. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  253. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  254. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  255. package/es/components/button/index.mjs +1 -1
  256. package/es/components/button/src/button-group.mjs +6 -30
  257. package/es/components/button/src/button-group.mjs.map +1 -1
  258. package/es/components/button/src/button-group2.mjs +30 -6
  259. package/es/components/button/src/button-group2.mjs.map +1 -1
  260. package/es/components/calendar/index.mjs +2 -2
  261. package/es/components/calendar/src/calendar.mjs +18 -131
  262. package/es/components/calendar/src/calendar.mjs.map +1 -1
  263. package/es/components/calendar/src/calendar2.mjs +131 -18
  264. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  265. package/es/components/calendar/src/date-table.mjs +33 -87
  266. package/es/components/calendar/src/date-table.mjs.map +1 -1
  267. package/es/components/calendar/src/date-table2.mjs +87 -33
  268. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  269. package/es/components/calendar/src/use-date-table.mjs +1 -1
  270. package/es/components/cascader/src/cascader.mjs +1 -1
  271. package/es/components/checkbox/index.mjs +2 -2
  272. package/es/components/checkbox/src/checkbox-group.mjs +28 -72
  273. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  274. package/es/components/checkbox/src/checkbox-group2.mjs +72 -28
  275. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  276. package/es/components/col/index.mjs +2 -2
  277. package/es/components/col/src/col.mjs +43 -66
  278. package/es/components/col/src/col.mjs.map +1 -1
  279. package/es/components/col/src/col2.mjs +66 -43
  280. package/es/components/col/src/col2.mjs.map +1 -1
  281. package/es/components/collapse/index.mjs +4 -4
  282. package/es/components/collapse/src/collapse-item.mjs +14 -96
  283. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  284. package/es/components/collapse/src/collapse-item2.mjs +96 -14
  285. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  286. package/es/components/collapse/src/collapse.mjs +30 -17
  287. package/es/components/collapse/src/collapse.mjs.map +1 -1
  288. package/es/components/collapse/src/collapse2.mjs +17 -30
  289. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  290. package/es/components/collection/index.mjs +1 -1
  291. package/es/components/collection/src/collection.mjs +10 -62
  292. package/es/components/collection/src/collection.mjs.map +1 -1
  293. package/es/components/collection/src/collection2.mjs +62 -10
  294. package/es/components/collection/src/collection2.mjs.map +1 -1
  295. package/es/components/countdown/index.mjs +2 -2
  296. package/es/components/countdown/src/countdown.mjs +23 -76
  297. package/es/components/countdown/src/countdown.mjs.map +1 -1
  298. package/es/components/countdown/src/countdown2.mjs +76 -23
  299. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  300. package/es/components/descriptions/index.mjs +2 -2
  301. package/es/components/descriptions/src/description.mjs +27 -120
  302. package/es/components/descriptions/src/description.mjs.map +1 -1
  303. package/es/components/descriptions/src/description2.mjs +120 -27
  304. package/es/components/descriptions/src/description2.mjs.map +1 -1
  305. package/es/components/dialog/index.mjs +2 -2
  306. package/es/components/dialog/src/dialog.mjs +174 -73
  307. package/es/components/dialog/src/dialog.mjs.map +1 -1
  308. package/es/components/dialog/src/dialog2.mjs +73 -174
  309. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  310. package/es/components/dialog/src/use-dialog.mjs +3 -3
  311. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  312. package/es/components/drawer/index.mjs +2 -2
  313. package/es/components/drawer/src/drawer.mjs +181 -25
  314. package/es/components/drawer/src/drawer.mjs.map +1 -1
  315. package/es/components/drawer/src/drawer2.mjs +25 -181
  316. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  317. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  318. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  319. package/es/components/dropdown/src/dropdown.mjs +2 -2
  320. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  321. package/es/components/form/index.mjs +2 -2
  322. package/es/components/form/src/form-item.mjs +323 -46
  323. package/es/components/form/src/form-item.mjs.map +1 -1
  324. package/es/components/form/src/form-item2.mjs +46 -323
  325. package/es/components/form/src/form-item2.mjs.map +1 -1
  326. package/es/components/icon/index.mjs +2 -2
  327. package/es/components/icon/src/icon.mjs +36 -8
  328. package/es/components/icon/src/icon.mjs.map +1 -1
  329. package/es/components/icon/src/icon2.mjs +8 -36
  330. package/es/components/icon/src/icon2.mjs.map +1 -1
  331. package/es/components/index.mjs +37 -37
  332. package/es/components/input/index.mjs +2 -2
  333. package/es/components/input/src/input.mjs +458 -108
  334. package/es/components/input/src/input.mjs.map +1 -1
  335. package/es/components/input/src/input2.mjs +108 -458
  336. package/es/components/input/src/input2.mjs.map +1 -1
  337. package/es/components/menu/index.mjs +2 -2
  338. package/es/components/menu/src/menu-item-group.mjs +35 -4
  339. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  340. package/es/components/menu/src/menu-item-group2.mjs +4 -35
  341. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  342. package/es/components/message/index.mjs +1 -1
  343. package/es/components/message/src/message.mjs +86 -149
  344. package/es/components/message/src/message.mjs.map +1 -1
  345. package/es/components/message/src/message2.mjs +149 -86
  346. package/es/components/message/src/message2.mjs.map +1 -1
  347. package/es/components/message/src/method.mjs +2 -2
  348. package/es/components/notification/index.mjs +1 -1
  349. package/es/components/notification/src/notification.mjs +69 -147
  350. package/es/components/notification/src/notification.mjs.map +1 -1
  351. package/es/components/notification/src/notification2.mjs +147 -69
  352. package/es/components/notification/src/notification2.mjs.map +1 -1
  353. package/es/components/notification/src/notify.mjs +2 -2
  354. package/es/components/pagination/src/components/pager.mjs +216 -17
  355. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  356. package/es/components/pagination/src/components/pager2.mjs +17 -216
  357. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  358. package/es/components/pagination/src/components/prev.mjs +18 -38
  359. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  360. package/es/components/pagination/src/components/prev2.mjs +38 -18
  361. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  362. package/es/components/pagination/src/components/sizes.mjs +22 -70
  363. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  364. package/es/components/pagination/src/components/sizes2.mjs +70 -22
  365. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  366. package/es/components/pagination/src/pagination.mjs +3 -3
  367. package/es/components/popconfirm/index.mjs +2 -2
  368. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  369. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  370. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  371. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  372. package/es/components/popover/index.mjs +2 -2
  373. package/es/components/popover/src/popover.mjs +66 -111
  374. package/es/components/popover/src/popover.mjs.map +1 -1
  375. package/es/components/popover/src/popover2.mjs +111 -66
  376. package/es/components/popover/src/popover2.mjs.map +1 -1
  377. package/es/components/popper/index.mjs +6 -6
  378. package/es/components/popper/src/arrow.mjs +39 -8
  379. package/es/components/popper/src/arrow.mjs.map +1 -1
  380. package/es/components/popper/src/arrow2.mjs +8 -39
  381. package/es/components/popper/src/arrow2.mjs.map +1 -1
  382. package/es/components/popper/src/content.mjs +94 -139
  383. package/es/components/popper/src/content.mjs.map +1 -1
  384. package/es/components/popper/src/content2.mjs +139 -94
  385. package/es/components/popper/src/content2.mjs.map +1 -1
  386. package/es/components/popper/src/popper.mjs +32 -25
  387. package/es/components/popper/src/popper.mjs.map +1 -1
  388. package/es/components/popper/src/popper2.mjs +25 -32
  389. package/es/components/popper/src/popper2.mjs.map +1 -1
  390. package/es/components/radio/index.mjs +2 -2
  391. package/es/components/radio/src/radio-group.mjs +70 -36
  392. package/es/components/radio/src/radio-group.mjs.map +1 -1
  393. package/es/components/radio/src/radio-group2.mjs +36 -70
  394. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  395. package/es/components/roving-focus-group/index.mjs +3 -3
  396. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  397. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  398. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  399. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  400. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  401. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  402. package/es/components/row/index.mjs +2 -2
  403. package/es/components/row/src/row.mjs +45 -30
  404. package/es/components/row/src/row.mjs.map +1 -1
  405. package/es/components/row/src/row2.mjs +30 -45
  406. package/es/components/row/src/row2.mjs.map +1 -1
  407. package/es/components/select/src/select.mjs +1 -1
  408. package/es/components/skeleton/index.mjs +4 -4
  409. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  410. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  411. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  412. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  413. package/es/components/skeleton/src/skeleton.mjs +22 -49
  414. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  415. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  416. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  417. package/es/components/tabs/index.mjs +2 -2
  418. package/es/components/tabs/src/tab-pane.mjs +75 -14
  419. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  420. package/es/components/tabs/src/tab-pane2.mjs +14 -75
  421. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  422. package/es/components/tabs/src/tabs.mjs +2 -4
  423. package/es/components/tabs/src/tabs.mjs.map +1 -1
  424. package/es/components/tag/index.mjs +2 -2
  425. package/es/components/tag/src/tag.mjs +33 -94
  426. package/es/components/tag/src/tag.mjs.map +1 -1
  427. package/es/components/tag/src/tag2.mjs +94 -33
  428. package/es/components/tag/src/tag2.mjs.map +1 -1
  429. package/es/components/teleport/index.mjs +2 -2
  430. package/es/components/teleport/src/teleport.mjs +18 -44
  431. package/es/components/teleport/src/teleport.mjs.map +1 -1
  432. package/es/components/teleport/src/teleport2.mjs +44 -18
  433. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  434. package/es/components/time-select/index.mjs +1 -1
  435. package/es/components/time-select/src/time-select.mjs +48 -118
  436. package/es/components/time-select/src/time-select.mjs.map +1 -1
  437. package/es/components/time-select/src/time-select2.mjs +118 -48
  438. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  439. package/es/components/tooltip/index.mjs +3 -3
  440. package/es/components/tooltip/src/content.mjs +1 -1
  441. package/es/components/tooltip/src/content2.mjs +1 -1
  442. package/es/components/tooltip/src/tooltip.mjs +31 -174
  443. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  444. package/es/components/tooltip/src/tooltip2.mjs +174 -31
  445. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  446. package/es/components/tooltip/src/trigger.mjs +16 -73
  447. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  448. package/es/components/tooltip/src/trigger2.mjs +73 -16
  449. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  450. package/es/components/tooltip-v2/index.mjs +3 -3
  451. package/es/components/tooltip-v2/src/content.mjs +114 -50
  452. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  453. package/es/components/tooltip-v2/src/content2.mjs +50 -114
  454. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  455. package/es/components/tooltip-v2/src/root.mjs +82 -17
  456. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  457. package/es/components/tooltip-v2/src/root2.mjs +17 -82
  458. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  459. package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
  460. package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
  461. package/es/components/tooltip-v2/src/trigger.mjs +12 -91
  462. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  463. package/es/components/tooltip-v2/src/trigger2.mjs +91 -12
  464. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  465. package/es/components/transfer/index.mjs +2 -2
  466. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  467. package/es/components/transfer/src/transfer-panel2.mjs +1 -1
  468. package/es/components/transfer/src/transfer.mjs +69 -162
  469. package/es/components/transfer/src/transfer.mjs.map +1 -1
  470. package/es/components/transfer/src/transfer2.mjs +162 -69
  471. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  472. package/es/components/upload/index.mjs +3 -3
  473. package/es/components/upload/src/upload-content.mjs +1 -1
  474. package/es/components/upload/src/upload-content2.mjs +1 -1
  475. package/es/components/upload/src/upload-list.mjs +26 -173
  476. package/es/components/upload/src/upload-list.mjs.map +1 -1
  477. package/es/components/upload/src/upload-list2.mjs +173 -26
  478. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  479. package/es/components/upload/src/upload.mjs +119 -105
  480. package/es/components/upload/src/upload.mjs.map +1 -1
  481. package/es/components/upload/src/upload2.mjs +105 -119
  482. package/es/components/upload/src/upload2.mjs.map +1 -1
  483. package/es/components/upload/src/use-handlers.mjs +1 -1
  484. package/es/components/visual-hidden/index.mjs +3 -3
  485. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  486. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  487. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  488. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  489. package/es/index.mjs +37 -37
  490. package/es/version.d.ts +1 -1
  491. package/es/version.mjs +1 -1
  492. package/es/version.mjs.map +1 -1
  493. package/lib/components/affix/index.js +2 -2
  494. package/lib/components/affix/src/affix.js +27 -119
  495. package/lib/components/affix/src/affix.js.map +1 -1
  496. package/lib/components/affix/src/affix2.js +119 -27
  497. package/lib/components/affix/src/affix2.js.map +1 -1
  498. package/lib/components/backtop/index.js +2 -2
  499. package/lib/components/backtop/src/backtop.js +24 -61
  500. package/lib/components/backtop/src/backtop.js.map +1 -1
  501. package/lib/components/backtop/src/backtop2.js +61 -24
  502. package/lib/components/backtop/src/backtop2.js.map +1 -1
  503. package/lib/components/badge/index.js +2 -2
  504. package/lib/components/badge/src/badge.js +59 -17
  505. package/lib/components/badge/src/badge.js.map +1 -1
  506. package/lib/components/badge/src/badge2.js +17 -59
  507. package/lib/components/badge/src/badge2.js.map +1 -1
  508. package/lib/components/breadcrumb/index.js +2 -2
  509. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  510. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  511. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  512. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  513. package/lib/components/button/index.js +1 -1
  514. package/lib/components/button/src/button-group.js +6 -30
  515. package/lib/components/button/src/button-group.js.map +1 -1
  516. package/lib/components/button/src/button-group2.js +30 -6
  517. package/lib/components/button/src/button-group2.js.map +1 -1
  518. package/lib/components/calendar/index.js +2 -2
  519. package/lib/components/calendar/src/calendar.js +19 -131
  520. package/lib/components/calendar/src/calendar.js.map +1 -1
  521. package/lib/components/calendar/src/calendar2.js +131 -19
  522. package/lib/components/calendar/src/calendar2.js.map +1 -1
  523. package/lib/components/calendar/src/date-table.js +37 -87
  524. package/lib/components/calendar/src/date-table.js.map +1 -1
  525. package/lib/components/calendar/src/date-table2.js +87 -37
  526. package/lib/components/calendar/src/date-table2.js.map +1 -1
  527. package/lib/components/calendar/src/use-date-table.js +1 -1
  528. package/lib/components/cascader/src/cascader.js +1 -1
  529. package/lib/components/checkbox/index.js +2 -2
  530. package/lib/components/checkbox/src/checkbox-group.js +29 -72
  531. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  532. package/lib/components/checkbox/src/checkbox-group2.js +72 -29
  533. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  534. package/lib/components/col/index.js +2 -2
  535. package/lib/components/col/src/col.js +43 -66
  536. package/lib/components/col/src/col.js.map +1 -1
  537. package/lib/components/col/src/col2.js +66 -43
  538. package/lib/components/col/src/col2.js.map +1 -1
  539. package/lib/components/collapse/index.js +4 -4
  540. package/lib/components/collapse/src/collapse-item.js +14 -96
  541. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  542. package/lib/components/collapse/src/collapse-item2.js +96 -14
  543. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  544. package/lib/components/collapse/src/collapse.js +30 -19
  545. package/lib/components/collapse/src/collapse.js.map +1 -1
  546. package/lib/components/collapse/src/collapse2.js +19 -30
  547. package/lib/components/collapse/src/collapse2.js.map +1 -1
  548. package/lib/components/collection/index.js +1 -1
  549. package/lib/components/collection/src/collection.js +9 -62
  550. package/lib/components/collection/src/collection.js.map +1 -1
  551. package/lib/components/collection/src/collection2.js +62 -9
  552. package/lib/components/collection/src/collection2.js.map +1 -1
  553. package/lib/components/countdown/index.js +2 -2
  554. package/lib/components/countdown/src/countdown.js +24 -76
  555. package/lib/components/countdown/src/countdown.js.map +1 -1
  556. package/lib/components/countdown/src/countdown2.js +76 -24
  557. package/lib/components/countdown/src/countdown2.js.map +1 -1
  558. package/lib/components/descriptions/index.js +2 -2
  559. package/lib/components/descriptions/src/description.js +27 -120
  560. package/lib/components/descriptions/src/description.js.map +1 -1
  561. package/lib/components/descriptions/src/description2.js +120 -27
  562. package/lib/components/descriptions/src/description2.js.map +1 -1
  563. package/lib/components/dialog/index.js +2 -2
  564. package/lib/components/dialog/src/dialog.js +174 -74
  565. package/lib/components/dialog/src/dialog.js.map +1 -1
  566. package/lib/components/dialog/src/dialog2.js +74 -174
  567. package/lib/components/dialog/src/dialog2.js.map +1 -1
  568. package/lib/components/dialog/src/use-dialog.js +1 -1
  569. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  570. package/lib/components/drawer/index.js +2 -2
  571. package/lib/components/drawer/src/drawer.js +181 -26
  572. package/lib/components/drawer/src/drawer.js.map +1 -1
  573. package/lib/components/drawer/src/drawer2.js +26 -181
  574. package/lib/components/drawer/src/drawer2.js.map +1 -1
  575. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  576. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  577. package/lib/components/dropdown/src/dropdown.js +2 -2
  578. package/lib/components/dropdown/src/dropdown2.js +1 -1
  579. package/lib/components/form/index.js +2 -2
  580. package/lib/components/form/src/form-item.js +327 -47
  581. package/lib/components/form/src/form-item.js.map +1 -1
  582. package/lib/components/form/src/form-item2.js +47 -327
  583. package/lib/components/form/src/form-item2.js.map +1 -1
  584. package/lib/components/icon/index.js +2 -2
  585. package/lib/components/icon/src/icon.js +36 -8
  586. package/lib/components/icon/src/icon.js.map +1 -1
  587. package/lib/components/icon/src/icon2.js +8 -36
  588. package/lib/components/icon/src/icon2.js.map +1 -1
  589. package/lib/components/index.js +37 -37
  590. package/lib/components/input/index.js +2 -2
  591. package/lib/components/input/src/input.js +457 -108
  592. package/lib/components/input/src/input.js.map +1 -1
  593. package/lib/components/input/src/input2.js +108 -457
  594. package/lib/components/input/src/input2.js.map +1 -1
  595. package/lib/components/menu/index.js +2 -2
  596. package/lib/components/menu/src/menu-item-group.js +35 -4
  597. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  598. package/lib/components/menu/src/menu-item-group2.js +4 -35
  599. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  600. package/lib/components/message/index.js +1 -1
  601. package/lib/components/message/src/message.js +88 -148
  602. package/lib/components/message/src/message.js.map +1 -1
  603. package/lib/components/message/src/message2.js +148 -88
  604. package/lib/components/message/src/message2.js.map +1 -1
  605. package/lib/components/message/src/method.js +2 -2
  606. package/lib/components/notification/index.js +1 -1
  607. package/lib/components/notification/src/notification.js +70 -146
  608. package/lib/components/notification/src/notification.js.map +1 -1
  609. package/lib/components/notification/src/notification2.js +146 -70
  610. package/lib/components/notification/src/notification2.js.map +1 -1
  611. package/lib/components/notification/src/notify.js +2 -2
  612. package/lib/components/pagination/src/components/pager.js +216 -17
  613. package/lib/components/pagination/src/components/pager.js.map +1 -1
  614. package/lib/components/pagination/src/components/pager2.js +17 -216
  615. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  616. package/lib/components/pagination/src/components/prev.js +19 -38
  617. package/lib/components/pagination/src/components/prev.js.map +1 -1
  618. package/lib/components/pagination/src/components/prev2.js +38 -19
  619. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  620. package/lib/components/pagination/src/components/sizes.js +22 -70
  621. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  622. package/lib/components/pagination/src/components/sizes2.js +70 -22
  623. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  624. package/lib/components/pagination/src/pagination.js +3 -3
  625. package/lib/components/popconfirm/index.js +2 -2
  626. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  627. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  628. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  629. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  630. package/lib/components/popover/index.js +2 -2
  631. package/lib/components/popover/src/popover.js +67 -111
  632. package/lib/components/popover/src/popover.js.map +1 -1
  633. package/lib/components/popover/src/popover2.js +111 -67
  634. package/lib/components/popover/src/popover2.js.map +1 -1
  635. package/lib/components/popper/index.js +6 -6
  636. package/lib/components/popper/src/arrow.js +39 -9
  637. package/lib/components/popper/src/arrow.js.map +1 -1
  638. package/lib/components/popper/src/arrow2.js +9 -39
  639. package/lib/components/popper/src/arrow2.js.map +1 -1
  640. package/lib/components/popper/src/content.js +99 -139
  641. package/lib/components/popper/src/content.js.map +1 -1
  642. package/lib/components/popper/src/content2.js +139 -99
  643. package/lib/components/popper/src/content2.js.map +1 -1
  644. package/lib/components/popper/src/popper.js +32 -28
  645. package/lib/components/popper/src/popper.js.map +1 -1
  646. package/lib/components/popper/src/popper2.js +28 -32
  647. package/lib/components/popper/src/popper2.js.map +1 -1
  648. package/lib/components/radio/index.js +2 -2
  649. package/lib/components/radio/src/radio-group.js +70 -37
  650. package/lib/components/radio/src/radio-group.js.map +1 -1
  651. package/lib/components/radio/src/radio-group2.js +37 -70
  652. package/lib/components/radio/src/radio-group2.js.map +1 -1
  653. package/lib/components/roving-focus-group/index.js +2 -2
  654. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  655. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  656. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  657. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  658. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  659. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  660. package/lib/components/row/index.js +2 -2
  661. package/lib/components/row/src/row.js +45 -32
  662. package/lib/components/row/src/row.js.map +1 -1
  663. package/lib/components/row/src/row2.js +32 -45
  664. package/lib/components/row/src/row2.js.map +1 -1
  665. package/lib/components/select/src/select.js +1 -1
  666. package/lib/components/skeleton/index.js +4 -4
  667. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  668. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  669. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  670. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  671. package/lib/components/skeleton/src/skeleton.js +22 -49
  672. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  673. package/lib/components/skeleton/src/skeleton2.js +49 -22
  674. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  675. package/lib/components/tabs/index.js +2 -2
  676. package/lib/components/tabs/src/tab-pane.js +75 -14
  677. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  678. package/lib/components/tabs/src/tab-pane2.js +14 -75
  679. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  680. package/lib/components/tabs/src/tabs.js +2 -4
  681. package/lib/components/tabs/src/tabs.js.map +1 -1
  682. package/lib/components/tag/index.js +2 -2
  683. package/lib/components/tag/src/tag.js +34 -94
  684. package/lib/components/tag/src/tag.js.map +1 -1
  685. package/lib/components/tag/src/tag2.js +94 -34
  686. package/lib/components/tag/src/tag2.js.map +1 -1
  687. package/lib/components/teleport/index.js +2 -2
  688. package/lib/components/teleport/src/teleport.js +18 -44
  689. package/lib/components/teleport/src/teleport.js.map +1 -1
  690. package/lib/components/teleport/src/teleport2.js +44 -18
  691. package/lib/components/teleport/src/teleport2.js.map +1 -1
  692. package/lib/components/time-select/index.js +1 -1
  693. package/lib/components/time-select/src/time-select.js +48 -123
  694. package/lib/components/time-select/src/time-select.js.map +1 -1
  695. package/lib/components/time-select/src/time-select2.js +123 -48
  696. package/lib/components/time-select/src/time-select2.js.map +1 -1
  697. package/lib/components/tooltip/index.js +3 -3
  698. package/lib/components/tooltip/src/content.js +1 -1
  699. package/lib/components/tooltip/src/content2.js +1 -1
  700. package/lib/components/tooltip/src/tooltip.js +33 -172
  701. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  702. package/lib/components/tooltip/src/tooltip2.js +172 -33
  703. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  704. package/lib/components/tooltip/src/trigger.js +16 -73
  705. package/lib/components/tooltip/src/trigger.js.map +1 -1
  706. package/lib/components/tooltip/src/trigger2.js +73 -16
  707. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  708. package/lib/components/tooltip-v2/index.js +3 -3
  709. package/lib/components/tooltip-v2/src/content.js +114 -50
  710. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  711. package/lib/components/tooltip-v2/src/content2.js +50 -114
  712. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  713. package/lib/components/tooltip-v2/src/root.js +82 -17
  714. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  715. package/lib/components/tooltip-v2/src/root2.js +17 -82
  716. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  717. package/lib/components/tooltip-v2/src/tooltip.js +3 -3
  718. package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
  719. package/lib/components/tooltip-v2/src/trigger.js +12 -91
  720. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  721. package/lib/components/tooltip-v2/src/trigger2.js +91 -12
  722. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  723. package/lib/components/transfer/index.js +2 -2
  724. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  725. package/lib/components/transfer/src/transfer-panel2.js +1 -1
  726. package/lib/components/transfer/src/transfer.js +73 -162
  727. package/lib/components/transfer/src/transfer.js.map +1 -1
  728. package/lib/components/transfer/src/transfer2.js +162 -73
  729. package/lib/components/transfer/src/transfer2.js.map +1 -1
  730. package/lib/components/upload/index.js +3 -3
  731. package/lib/components/upload/src/upload-content.js +1 -1
  732. package/lib/components/upload/src/upload-content2.js +1 -1
  733. package/lib/components/upload/src/upload-list.js +27 -173
  734. package/lib/components/upload/src/upload-list.js.map +1 -1
  735. package/lib/components/upload/src/upload-list2.js +173 -27
  736. package/lib/components/upload/src/upload-list2.js.map +1 -1
  737. package/lib/components/upload/src/upload.js +119 -108
  738. package/lib/components/upload/src/upload.js.map +1 -1
  739. package/lib/components/upload/src/upload2.js +108 -119
  740. package/lib/components/upload/src/upload2.js.map +1 -1
  741. package/lib/components/upload/src/use-handlers.js +1 -1
  742. package/lib/components/visual-hidden/index.js +2 -2
  743. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  744. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  745. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  746. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  747. package/lib/index.js +37 -37
  748. package/lib/version.d.ts +1 -1
  749. package/lib/version.js +1 -1
  750. package/lib/version.js.map +1 -1
  751. package/package.json +1 -1
  752. package/web-types.json +1 -1
@@ -2,99 +2,159 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- var typescript = require('../../../utils/typescript.js');
5
+ var vue = require('vue');
6
+ require('../../config-provider/index.js');
7
7
  var core = require('@vueuse/core');
8
- var runtime = require('../../../utils/vue/props/runtime.js');
8
+ require('../../../utils/index.js');
9
+ require('../../../constants/index.js');
10
+ var index = require('../../badge/index.js');
11
+ var index$1 = require('../../icon/index.js');
12
+ var message = require('./message.js');
13
+ var instance = require('./instance.js');
14
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
15
  var icon = require('../../../utils/vue/icon.js');
16
+ var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
17
+ var aria = require('../../../constants/aria.js');
18
+ var forEditor = require('../../config-provider/src/for-editor.js');
10
19
 
11
- const messageTypes = ["success", "info", "warning", "error"];
12
- const messageDefaults = typescript.mutable({
13
- customClass: "",
14
- center: false,
15
- dangerouslyUseHTMLString: false,
16
- duration: 3e3,
17
- icon: void 0,
18
- id: "",
19
- message: "",
20
- onClose: void 0,
21
- showClose: false,
22
- type: "info",
23
- offset: 16,
24
- zIndex: 0,
25
- grouping: false,
26
- repeatNum: 1,
27
- appendTo: core.isClient ? document.body : void 0
20
+ const _hoisted_1 = ["id"];
21
+ const _hoisted_2 = ["innerHTML"];
22
+ const __default__ = vue.defineComponent({
23
+ name: "ElMessage"
28
24
  });
29
- const messageProps = runtime.buildProps({
30
- customClass: {
31
- type: String,
32
- default: messageDefaults.customClass
33
- },
34
- center: {
35
- type: Boolean,
36
- default: messageDefaults.center
37
- },
38
- dangerouslyUseHTMLString: {
39
- type: Boolean,
40
- default: messageDefaults.dangerouslyUseHTMLString
41
- },
42
- duration: {
43
- type: Number,
44
- default: messageDefaults.duration
45
- },
46
- icon: {
47
- type: icon.iconPropType,
48
- default: messageDefaults.icon
49
- },
50
- id: {
51
- type: String,
52
- default: messageDefaults.id
53
- },
54
- message: {
55
- type: runtime.definePropType([
56
- String,
57
- Object,
58
- Function
59
- ]),
60
- default: messageDefaults.message
61
- },
62
- onClose: {
63
- type: runtime.definePropType(Function),
64
- required: false
65
- },
66
- showClose: {
67
- type: Boolean,
68
- default: messageDefaults.showClose
69
- },
70
- type: {
71
- type: String,
72
- values: messageTypes,
73
- default: messageDefaults.type
74
- },
75
- offset: {
76
- type: Number,
77
- default: messageDefaults.offset
78
- },
79
- zIndex: {
80
- type: Number,
81
- default: messageDefaults.zIndex
82
- },
83
- grouping: {
84
- type: Boolean,
85
- default: messageDefaults.grouping
86
- },
87
- repeatNum: {
88
- type: Number,
89
- default: messageDefaults.repeatNum
25
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26
+ ...__default__,
27
+ props: message.messageProps,
28
+ emits: message.messageEmits,
29
+ setup(__props, { expose }) {
30
+ const props = __props;
31
+ const { Close } = icon.TypeComponents;
32
+ const { ns, zIndex } = useGlobalConfig.useGlobalComponentSettings("message");
33
+ const { currentZIndex, nextZIndex } = zIndex;
34
+ const messageRef = vue.ref();
35
+ const visible = vue.ref(false);
36
+ const height = vue.ref(0);
37
+ let stopTimer = void 0;
38
+ const badgeType = vue.computed(() => props.type ? props.type === "error" ? "danger" : props.type : "info");
39
+ const typeClass = vue.computed(() => {
40
+ const type = props.type;
41
+ return { [ns.bm("icon", type)]: type && icon.TypeComponentsMap[type] };
42
+ });
43
+ const iconComponent = vue.computed(() => props.icon || icon.TypeComponentsMap[props.type] || "");
44
+ const lastOffset = vue.computed(() => instance.getLastOffset(props.id));
45
+ const offset = vue.computed(() => instance.getOffsetOrSpace(props.id, props.offset) + lastOffset.value);
46
+ const bottom = vue.computed(() => height.value + offset.value);
47
+ const customStyle = vue.computed(() => ({
48
+ top: `${offset.value}px`,
49
+ zIndex: currentZIndex.value
50
+ }));
51
+ function startTimer() {
52
+ if (props.duration === 0)
53
+ return;
54
+ ({ stop: stopTimer } = core.useTimeoutFn(() => {
55
+ close();
56
+ }, props.duration));
57
+ }
58
+ function clearTimer() {
59
+ stopTimer == null ? void 0 : stopTimer();
60
+ }
61
+ function close() {
62
+ visible.value = false;
63
+ }
64
+ function keydown({ code }) {
65
+ if (code === aria.EVENT_CODE.esc) {
66
+ close();
67
+ }
68
+ }
69
+ vue.onMounted(() => {
70
+ startTimer();
71
+ nextZIndex();
72
+ visible.value = true;
73
+ });
74
+ forEditor.watch(() => props.repeatNum, () => {
75
+ clearTimer();
76
+ startTimer();
77
+ });
78
+ core.useEventListener(document, "keydown", keydown);
79
+ core.useResizeObserver(messageRef, () => {
80
+ height.value = messageRef.value.getBoundingClientRect().height;
81
+ });
82
+ expose({
83
+ visible,
84
+ bottom,
85
+ close
86
+ });
87
+ return (_ctx, _cache) => {
88
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
89
+ name: vue.unref(ns).b("fade"),
90
+ onBeforeLeave: _ctx.onClose,
91
+ onAfterLeave: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("destroy")),
92
+ persisted: ""
93
+ }, {
94
+ default: vue.withCtx(() => [
95
+ vue.withDirectives(vue.createElementVNode("div", {
96
+ id: _ctx.id,
97
+ ref_key: "messageRef",
98
+ ref: messageRef,
99
+ class: vue.normalizeClass([
100
+ vue.unref(ns).b(),
101
+ { [vue.unref(ns).m(_ctx.type)]: _ctx.type && !_ctx.icon },
102
+ vue.unref(ns).is("center", _ctx.center),
103
+ vue.unref(ns).is("closable", _ctx.showClose),
104
+ _ctx.customClass
105
+ ]),
106
+ style: vue.normalizeStyle(vue.unref(customStyle)),
107
+ role: "alert",
108
+ onMouseenter: clearTimer,
109
+ onMouseleave: startTimer
110
+ }, [
111
+ _ctx.repeatNum > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index.ElBadge), {
112
+ key: 0,
113
+ value: _ctx.repeatNum,
114
+ type: vue.unref(badgeType),
115
+ class: vue.normalizeClass(vue.unref(ns).e("badge"))
116
+ }, null, 8, ["value", "type", "class"])) : vue.createCommentVNode("v-if", true),
117
+ vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
118
+ key: 1,
119
+ class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(typeClass)])
120
+ }, {
121
+ default: vue.withCtx(() => [
122
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
123
+ ]),
124
+ _: 1
125
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
126
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
127
+ !_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", {
128
+ key: 0,
129
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
130
+ }, vue.toDisplayString(_ctx.message), 3)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
131
+ vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
132
+ vue.createElementVNode("p", {
133
+ class: vue.normalizeClass(vue.unref(ns).e("content")),
134
+ innerHTML: _ctx.message
135
+ }, null, 10, _hoisted_2)
136
+ ], 2112))
137
+ ]),
138
+ _ctx.showClose ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
139
+ key: 2,
140
+ class: vue.normalizeClass(vue.unref(ns).e("closeBtn")),
141
+ onClick: vue.withModifiers(close, ["stop"])
142
+ }, {
143
+ default: vue.withCtx(() => [
144
+ vue.createVNode(vue.unref(Close))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
148
+ ], 46, _hoisted_1), [
149
+ [vue.vShow, visible.value]
150
+ ])
151
+ ]),
152
+ _: 3
153
+ }, 8, ["name", "onBeforeLeave"]);
154
+ };
90
155
  }
91
156
  });
92
- const messageEmits = {
93
- destroy: () => true
94
- };
157
+ var MessageConstructor = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/message/src/message.vue"]]);
95
158
 
96
- exports.messageDefaults = messageDefaults;
97
- exports.messageEmits = messageEmits;
98
- exports.messageProps = messageProps;
99
- exports.messageTypes = messageTypes;
159
+ exports["default"] = MessageConstructor;
100
160
  //# sourceMappingURL=message2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"message2.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\nimport type { AppContext, ExtractPropTypes, VNode } from 'vue'\nimport type { Mutable } from '@element-plus/utils'\nimport type MessageConstructor from './message.vue'\n\nexport const messageTypes = ['success', 'info', 'warning', 'error'] as const\n\nexport type messageType = typeof messageTypes[number]\n\nexport interface MessageConfigContext {\n max?: number\n}\n\nexport const messageDefaults = mutable({\n customClass: '',\n center: false,\n dangerouslyUseHTMLString: false,\n duration: 3000,\n icon: undefined,\n id: '',\n message: '',\n onClose: undefined,\n showClose: false,\n type: 'info',\n offset: 16,\n zIndex: 0,\n grouping: false,\n repeatNum: 1,\n appendTo: isClient ? document.body : (undefined as never),\n} as const)\n\nexport const messageProps = buildProps({\n /**\n * @description custom class name for Message\n */\n customClass: {\n type: String,\n default: messageDefaults.customClass,\n },\n /**\n * @description whether to center the text\n */\n center: {\n type: Boolean,\n default: messageDefaults.center,\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: messageDefaults.dangerouslyUseHTMLString,\n },\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration: {\n type: Number,\n default: messageDefaults.duration,\n },\n /**\n * @description custom icon component, overrides `type`\n */\n icon: {\n type: iconPropType,\n default: messageDefaults.icon,\n },\n /**\n * @description message dom id\n */\n id: {\n type: String,\n default: messageDefaults.id,\n },\n /**\n * @description message text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: messageDefaults.message,\n },\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: false,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: messageDefaults.showClose,\n },\n /**\n * @description message type\n */\n type: {\n type: String,\n values: messageTypes,\n default: messageDefaults.type,\n },\n /**\n * @description set the distance to the top of viewport\n */\n offset: {\n type: Number,\n default: messageDefaults.offset,\n },\n /**\n * @description input box size\n */\n zIndex: {\n type: Number,\n default: messageDefaults.zIndex,\n },\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping: {\n type: Boolean,\n default: messageDefaults.grouping,\n },\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum: {\n type: Number,\n default: messageDefaults.repeatNum,\n },\n} as const)\nexport type MessageProps = ExtractPropTypes<typeof messageProps>\n\nexport const messageEmits = {\n destroy: () => true,\n}\nexport type MessageEmits = typeof messageEmits\n\nexport type MessageInstance = InstanceType<typeof MessageConstructor>\n\nexport type MessageOptions = Partial<\n Mutable<\n Omit<MessageProps, 'id'> & {\n appendTo?: HTMLElement | string\n }\n >\n>\nexport type MessageParams = MessageOptions | MessageOptions['message']\nexport type MessageParamsNormalized = Omit<MessageProps, 'id'> & {\n /**\n * @description set the root element for the message, default to `document.body`\n */\n appendTo: HTMLElement\n}\nexport type MessageOptionsWithType = Omit<MessageOptions, 'type'>\nexport type MessageParamsWithType =\n | MessageOptionsWithType\n | MessageOptions['message']\n\nexport interface MessageHandler {\n /**\n * @description close the Message\n */\n close: () => void\n}\n\nexport type MessageFn = {\n (options?: MessageParams, appContext?: null | AppContext): MessageHandler\n closeAll(type?: messageType): void\n}\nexport type MessageTypedFn = (\n options?: MessageParamsWithType,\n appContext?: null | AppContext\n) => MessageHandler\n\nexport interface Message extends MessageFn {\n success: MessageTypedFn\n warning: MessageTypedFn\n info: MessageTypedFn\n error: MessageTypedFn\n}\n"],"names":["mutable","isClient","buildProps","iconPropType","definePropType"],"mappings":"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"}
1
+ {"version":3,"file":"message2.js","sources":["../../../../../../packages/components/message/src/message.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 ref=\"messageRef\"\n :class=\"[\n ns.b(),\n { [ns.m(type)]: type && !icon },\n ns.is('center', center),\n ns.is('closable', showClose),\n customClass,\n ]\"\n :style=\"customStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n >\n <el-badge\n v-if=\"repeatNum > 1\"\n :value=\"repeatNum\"\n :type=\"badgeType\"\n :class=\"ns.e('badge')\"\n />\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\" :class=\"ns.e('content')\">\n {{ message }}\n </p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else :class=\"ns.e('content')\" v-html=\"message\" />\n </slot>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <Close />\n </el-icon>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref } from 'vue'\nimport { watch } from '../../config-provider'\nimport { useEventListener, useResizeObserver, useTimeoutFn } from '@vueuse/core'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport ElBadge from '@element-plus/components/badge'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { messageEmits, messageProps } from './message'\nimport { getLastOffset, getOffsetOrSpace } from './instance'\nimport type { BadgeProps } from '@element-plus/components/badge'\nimport type { CSSProperties } from 'vue'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElMessage',\n})\n\nconst props = defineProps(messageProps)\ndefineEmits(messageEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('message')\nconst { currentZIndex, nextZIndex } = zIndex\n\nconst messageRef = ref<HTMLDivElement>()\nconst visible = ref(false)\nconst height = ref(0)\n\nlet stopTimer: (() => void) | undefined = undefined\n\nconst badgeType = computed<BadgeProps['type']>(() =>\n props.type ? (props.type === 'error' ? 'danger' : props.type) : 'info'\n)\nconst typeClass = computed(() => {\n const type = props.type\n return { [ns.bm('icon', type)]: type && TypeComponentsMap[type] }\n})\nconst iconComponent = computed(\n () => props.icon || TypeComponentsMap[props.type] || ''\n)\n\nconst lastOffset = computed(() => getLastOffset(props.id))\nconst offset = computed(\n () => getOffsetOrSpace(props.id, props.offset) + lastOffset.value\n)\nconst bottom = computed((): number => height.value + offset.value)\nconst customStyle = computed<CSSProperties>(() => ({\n top: `${offset.value}px`,\n zIndex: currentZIndex.value,\n}))\n\nfunction startTimer() {\n if (props.duration === 0) return\n ;({ stop: stopTimer } = useTimeoutFn(() => {\n close()\n }, props.duration))\n}\n\nfunction clearTimer() {\n stopTimer?.()\n}\n\nfunction close() {\n visible.value = false\n}\n\nfunction keydown({ code }: KeyboardEvent) {\n if (code === EVENT_CODE.esc) {\n // press esc to close the message\n close()\n }\n}\n\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nwatch(\n () => props.repeatNum,\n () => {\n clearTimer()\n startTimer()\n }\n)\n\nuseEventListener(document, 'keydown', keydown)\n\nuseResizeObserver(messageRef, () => {\n height.value = messageRef.value!.getBoundingClientRect().height\n})\n\ndefineExpose({\n visible,\n bottom,\n close,\n})\n</script>\n"],"names":["TypeComponents","useGlobalComponentSettings","ref","computed","TypeComponentsMap","getLastOffset","getOffsetOrSpace","useTimeoutFn","EVENT_CODE","onMounted","watch","useEventListener","useResizeObserver"],"mappings":"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"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  require('../../../utils/index.js');
7
7
  require('../../config-provider/index.js');
8
- var message$2 = require('./message.js');
9
- var message$1 = require('./message2.js');
8
+ var message$2 = require('./message2.js');
9
+ var message$1 = require('./message.js');
10
10
  var instance = require('./instance.js');
11
11
  var shared = require('@vue/shared');
12
12
  var types = require('../../../utils/types.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
6
  var notify = require('./src/notify.js');
7
- var notification = require('./src/notification2.js');
7
+ var notification = require('./src/notification.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElNotification = install.withInstallFunction(notify["default"], "$notify");
@@ -2,156 +2,80 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var core = require('@vueuse/core');
7
5
  require('../../../utils/index.js');
8
- require('../../../constants/index.js');
9
- var index = require('../../icon/index.js');
10
- require('../../config-provider/index.js');
11
- var notification = require('./notification2.js');
12
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
- var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
14
7
  var icon = require('../../../utils/vue/icon.js');
15
- var aria = require('../../../constants/aria.js');
16
8
 
17
- const _hoisted_1 = ["id"];
18
- const _hoisted_2 = ["textContent"];
19
- const _hoisted_3 = { key: 0 };
20
- const _hoisted_4 = ["innerHTML"];
21
- const __default__ = vue.defineComponent({
22
- name: "ElNotification"
23
- });
24
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
- ...__default__,
26
- props: notification.notificationProps,
27
- emits: notification.notificationEmits,
28
- setup(__props, { expose }) {
29
- const props = __props;
30
- const { ns, zIndex } = useGlobalConfig.useGlobalComponentSettings("notification");
31
- const { nextZIndex, currentZIndex } = zIndex;
32
- const { Close } = icon.CloseComponents;
33
- const visible = vue.ref(false);
34
- let timer = void 0;
35
- const typeClass = vue.computed(() => {
36
- const type = props.type;
37
- return type && icon.TypeComponentsMap[props.type] ? ns.m(type) : "";
38
- });
39
- const iconComponent = vue.computed(() => {
40
- if (!props.type)
41
- return props.icon;
42
- return icon.TypeComponentsMap[props.type] || props.icon;
43
- });
44
- const horizontalClass = vue.computed(() => props.position.endsWith("right") ? "right" : "left");
45
- const verticalProperty = vue.computed(() => props.position.startsWith("top") ? "top" : "bottom");
46
- const positionStyle = vue.computed(() => {
47
- return {
48
- [verticalProperty.value]: `${props.offset}px`,
49
- zIndex: currentZIndex.value
50
- };
51
- });
52
- function startTimer() {
53
- if (props.duration > 0) {
54
- ;
55
- ({ stop: timer } = core.useTimeoutFn(() => {
56
- if (visible.value)
57
- close();
58
- }, props.duration));
59
- }
60
- }
61
- function clearTimer() {
62
- timer == null ? void 0 : timer();
63
- }
64
- function close() {
65
- visible.value = false;
66
- }
67
- function onKeydown({ code }) {
68
- if (code === aria.EVENT_CODE.delete || code === aria.EVENT_CODE.backspace) {
69
- clearTimer();
70
- } else if (code === aria.EVENT_CODE.esc) {
71
- if (visible.value) {
72
- close();
73
- }
74
- } else {
75
- startTimer();
76
- }
77
- }
78
- vue.onMounted(() => {
79
- startTimer();
80
- nextZIndex();
81
- visible.value = true;
82
- });
83
- core.useEventListener(document, "keydown", onKeydown);
84
- expose({
85
- visible,
86
- close
87
- });
88
- return (_ctx, _cache) => {
89
- return vue.openBlock(), vue.createBlock(vue.Transition, {
90
- name: vue.unref(ns).b("fade"),
91
- onBeforeLeave: _ctx.onClose,
92
- onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("destroy")),
93
- persisted: ""
94
- }, {
95
- default: vue.withCtx(() => [
96
- vue.withDirectives(vue.createElementVNode("div", {
97
- id: _ctx.id,
98
- class: vue.normalizeClass([vue.unref(ns).b(), _ctx.customClass, vue.unref(horizontalClass)]),
99
- style: vue.normalizeStyle(vue.unref(positionStyle)),
100
- role: "alert",
101
- onMouseenter: clearTimer,
102
- onMouseleave: startTimer,
103
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
104
- }, [
105
- vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index.ElIcon), {
106
- key: 0,
107
- class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(typeClass)])
108
- }, {
109
- default: vue.withCtx(() => [
110
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
111
- ]),
112
- _: 1
113
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
114
- vue.createElementVNode("div", {
115
- class: vue.normalizeClass(vue.unref(ns).e("group"))
116
- }, [
117
- vue.createElementVNode("h2", {
118
- class: vue.normalizeClass(vue.unref(ns).e("title")),
119
- textContent: vue.toDisplayString(_ctx.title)
120
- }, null, 10, _hoisted_2),
121
- vue.withDirectives(vue.createElementVNode("div", {
122
- class: vue.normalizeClass(vue.unref(ns).e("content")),
123
- style: vue.normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
124
- }, [
125
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
126
- !_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3, vue.toDisplayString(_ctx.message), 1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
127
- vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
128
- vue.createElementVNode("p", { innerHTML: _ctx.message }, null, 8, _hoisted_4)
129
- ], 2112))
130
- ])
131
- ], 6), [
132
- [vue.vShow, _ctx.message]
133
- ]),
134
- _ctx.showClose ? (vue.openBlock(), vue.createBlock(vue.unref(index.ElIcon), {
135
- key: 0,
136
- class: vue.normalizeClass(vue.unref(ns).e("closeBtn")),
137
- onClick: vue.withModifiers(close, ["stop"])
138
- }, {
139
- default: vue.withCtx(() => [
140
- vue.createVNode(vue.unref(Close))
141
- ]),
142
- _: 1
143
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
144
- ], 2)
145
- ], 46, _hoisted_1), [
146
- [vue.vShow, visible.value]
147
- ])
148
- ]),
149
- _: 3
150
- }, 8, ["name", "onBeforeLeave"]);
151
- };
9
+ const notificationTypes = [
10
+ "success",
11
+ "info",
12
+ "warning",
13
+ "error"
14
+ ];
15
+ const notificationProps = runtime.buildProps({
16
+ customClass: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ dangerouslyUseHTMLString: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ duration: {
25
+ type: Number,
26
+ default: 4500
27
+ },
28
+ icon: {
29
+ type: icon.iconPropType
30
+ },
31
+ id: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ message: {
36
+ type: runtime.definePropType([String, Object]),
37
+ default: ""
38
+ },
39
+ offset: {
40
+ type: Number,
41
+ default: 0
42
+ },
43
+ onClick: {
44
+ type: runtime.definePropType(Function),
45
+ default: () => void 0
46
+ },
47
+ onClose: {
48
+ type: runtime.definePropType(Function),
49
+ required: true
50
+ },
51
+ position: {
52
+ type: String,
53
+ values: ["top-right", "top-left", "bottom-right", "bottom-left"],
54
+ default: "top-right"
55
+ },
56
+ showClose: {
57
+ type: Boolean,
58
+ default: true
59
+ },
60
+ title: {
61
+ type: String,
62
+ default: ""
63
+ },
64
+ type: {
65
+ type: String,
66
+ values: [...notificationTypes, ""],
67
+ default: ""
68
+ },
69
+ zIndex: {
70
+ type: Number,
71
+ default: 0
152
72
  }
153
73
  });
154
- var NotificationConstructor = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/notification/src/notification.vue"]]);
74
+ const notificationEmits = {
75
+ destroy: () => true
76
+ };
155
77
 
156
- exports["default"] = NotificationConstructor;
78
+ exports.notificationEmits = notificationEmits;
79
+ exports.notificationProps = notificationProps;
80
+ exports.notificationTypes = notificationTypes;
157
81
  //# sourceMappingURL=notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","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":["useGlobalComponentSettings","CloseComponents","ref","computed","TypeComponentsMap","useTimeoutFn","EVENT_CODE","onMounted","useEventListener"],"mappings":"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"}
1
+ {"version":3,"file":"notification.js","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 /**\n * @description custom class name for Notification\n */\n customClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: false,\n },\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration: {\n type: Number,\n default: 4500,\n },\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description notification dom id\n */\n id: {\n type: String,\n default: '',\n },\n /**\n * @description description text\n */\n message: {\n type: definePropType<string | VNode>([String, Object]),\n default: '',\n },\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description callback function when notification clicked\n */\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n /**\n * @description callback function when closed\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n /**\n * @description custom position\n */\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description notification type\n */\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n /**\n * @description initial zIndex\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 /**\n * @description set the root element for the notification, default to `document.body`\n */\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":["buildProps","iconPropType","definePropType"],"mappings":";;;;;;;;AACY,MAAC,iBAAiB,GAAG;AACjC,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE;AACU,MAAC,iBAAiB,GAAGA,kBAAU,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,EAAEC,iBAAY;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,EAAEC,sBAAc,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,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,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;;;;;;"}