element-pe 2.2.67 → 2.2.69

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 (488) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +64 -54
  3. package/dist/index.full.min.js +2 -2
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +2 -2
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +64 -54
  8. package/es/components/affix/index.mjs +2 -2
  9. package/es/components/affix/src/affix.mjs +119 -26
  10. package/es/components/affix/src/affix.mjs.map +1 -1
  11. package/es/components/affix/src/affix2.mjs +26 -119
  12. package/es/components/affix/src/affix2.mjs.map +1 -1
  13. package/es/components/autocomplete/index.mjs +2 -2
  14. package/es/components/autocomplete/src/autocomplete.mjs +99 -379
  15. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  16. package/es/components/autocomplete/src/autocomplete2.mjs +379 -99
  17. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  18. package/es/components/avatar/index.mjs +2 -2
  19. package/es/components/avatar/src/avatar.mjs +35 -76
  20. package/es/components/avatar/src/avatar.mjs.map +1 -1
  21. package/es/components/avatar/src/avatar2.mjs +76 -35
  22. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  23. package/es/components/backtop/index.mjs +2 -2
  24. package/es/components/backtop/src/backtop.mjs +61 -23
  25. package/es/components/backtop/src/backtop.mjs.map +1 -1
  26. package/es/components/backtop/src/backtop2.mjs +23 -61
  27. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  28. package/es/components/breadcrumb/index.mjs +2 -2
  29. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  30. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  31. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  32. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  33. package/es/components/calendar/index.mjs +2 -2
  34. package/es/components/calendar/src/calendar.mjs +131 -18
  35. package/es/components/calendar/src/calendar.mjs.map +1 -1
  36. package/es/components/calendar/src/calendar2.mjs +18 -131
  37. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  38. package/es/components/calendar/src/date-table.mjs +87 -33
  39. package/es/components/calendar/src/date-table.mjs.map +1 -1
  40. package/es/components/calendar/src/date-table2.mjs +33 -87
  41. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  42. package/es/components/calendar/src/use-date-table.mjs +1 -1
  43. package/es/components/card/index.mjs +2 -2
  44. package/es/components/card/src/card.mjs +35 -16
  45. package/es/components/card/src/card.mjs.map +1 -1
  46. package/es/components/card/src/card2.mjs +16 -35
  47. package/es/components/card/src/card2.mjs.map +1 -1
  48. package/es/components/carousel/index.mjs +4 -4
  49. package/es/components/carousel/src/carousel-item.mjs +69 -8
  50. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  51. package/es/components/carousel/src/carousel-item2.mjs +8 -69
  52. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  53. package/es/components/carousel/src/carousel.mjs +56 -169
  54. package/es/components/carousel/src/carousel.mjs.map +1 -1
  55. package/es/components/carousel/src/carousel2.mjs +169 -56
  56. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  57. package/es/components/cascader/src/cascader.mjs +0 -1
  58. package/es/components/cascader/src/cascader.mjs.map +1 -1
  59. package/es/components/cascader-panel/src/index.mjs +1 -1
  60. package/es/components/cascader-panel/src/menu.mjs +1 -1
  61. package/es/components/cascader-panel/src/node.mjs +209 -116
  62. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  63. package/es/components/cascader-panel/src/node2.mjs +116 -209
  64. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  65. package/es/components/cascader-panel/src/store.mjs +1 -1
  66. package/es/components/collection/index.mjs +1 -1
  67. package/es/components/collection/src/collection.mjs +10 -66
  68. package/es/components/collection/src/collection.mjs.map +1 -1
  69. package/es/components/collection/src/collection2.mjs +66 -10
  70. package/es/components/collection/src/collection2.mjs.map +1 -1
  71. package/es/components/countdown/index.mjs +2 -2
  72. package/es/components/countdown/src/countdown.mjs +76 -23
  73. package/es/components/countdown/src/countdown.mjs.map +1 -1
  74. package/es/components/countdown/src/countdown2.mjs +23 -76
  75. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  76. package/es/components/descriptions/index.mjs +2 -2
  77. package/es/components/descriptions/src/description.mjs +120 -27
  78. package/es/components/descriptions/src/description.mjs.map +1 -1
  79. package/es/components/descriptions/src/description2.mjs +27 -120
  80. package/es/components/descriptions/src/description2.mjs.map +1 -1
  81. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  82. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  83. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  84. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  85. package/es/components/dialog/index.mjs +2 -2
  86. package/es/components/dialog/src/dialog.mjs +73 -174
  87. package/es/components/dialog/src/dialog.mjs.map +1 -1
  88. package/es/components/dialog/src/dialog2.mjs +174 -73
  89. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  90. package/es/components/drawer/src/drawer.mjs +1 -1
  91. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  92. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  93. package/es/components/dropdown/src/dropdown.mjs +1 -1
  94. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  95. package/es/components/form/index.mjs +2 -2
  96. package/es/components/form/src/form.mjs +61 -150
  97. package/es/components/form/src/form.mjs.map +1 -1
  98. package/es/components/form/src/form2.mjs +150 -61
  99. package/es/components/form/src/form2.mjs.map +1 -1
  100. package/es/components/index.mjs +33 -33
  101. package/es/components/link/index.mjs +2 -2
  102. package/es/components/link/src/link.mjs +50 -21
  103. package/es/components/link/src/link.mjs.map +1 -1
  104. package/es/components/link/src/link2.mjs +21 -50
  105. package/es/components/link/src/link2.mjs.map +1 -1
  106. package/es/components/menu/index.mjs +2 -2
  107. package/es/components/menu/src/menu-item.mjs +14 -97
  108. package/es/components/menu/src/menu-item.mjs.map +1 -1
  109. package/es/components/menu/src/menu-item2.mjs +97 -14
  110. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  111. package/es/components/notification/index.mjs +1 -1
  112. package/es/components/notification/src/notification.mjs +67 -151
  113. package/es/components/notification/src/notification.mjs.map +1 -1
  114. package/es/components/notification/src/notification2.mjs +151 -67
  115. package/es/components/notification/src/notification2.mjs.map +1 -1
  116. package/es/components/notification/src/notify.mjs +2 -2
  117. package/es/components/pagination/src/components/jumper.mjs +9 -60
  118. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  119. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  120. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  121. package/es/components/pagination/src/components/sizes.mjs +22 -70
  122. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  123. package/es/components/pagination/src/components/sizes2.mjs +70 -22
  124. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  125. package/es/components/pagination/src/pagination.mjs +2 -2
  126. package/es/components/popover/index.mjs +2 -2
  127. package/es/components/popover/src/popover.mjs +111 -66
  128. package/es/components/popover/src/popover.mjs.map +1 -1
  129. package/es/components/popover/src/popover2.mjs +66 -111
  130. package/es/components/popover/src/popover2.mjs.map +1 -1
  131. package/es/components/popper/index.mjs +2 -2
  132. package/es/components/popper/src/arrow.mjs +39 -8
  133. package/es/components/popper/src/arrow.mjs.map +1 -1
  134. package/es/components/popper/src/arrow2.mjs +8 -39
  135. package/es/components/popper/src/arrow2.mjs.map +1 -1
  136. package/es/components/progress/index.mjs +2 -2
  137. package/es/components/progress/src/progress.mjs +204 -59
  138. package/es/components/progress/src/progress.mjs.map +1 -1
  139. package/es/components/progress/src/progress2.mjs +59 -204
  140. package/es/components/progress/src/progress2.mjs.map +1 -1
  141. package/es/components/radio/index.mjs +2 -2
  142. package/es/components/radio/src/radio-button.mjs +1 -1
  143. package/es/components/radio/src/radio-group.mjs +1 -1
  144. package/es/components/radio/src/radio.mjs +74 -35
  145. package/es/components/radio/src/radio.mjs.map +1 -1
  146. package/es/components/radio/src/radio2.mjs +35 -74
  147. package/es/components/radio/src/radio2.mjs.map +1 -1
  148. package/es/components/resizable-columns/index.d.ts +2 -2
  149. package/es/components/resizable-columns/index.mjs +4 -4
  150. package/es/components/resizable-columns/src/constants.d.ts +1 -2
  151. package/es/components/resizable-columns/src/constants.mjs.map +1 -1
  152. package/es/components/resizable-columns/src/resizable-column.mjs +7 -111
  153. package/es/components/resizable-columns/src/resizable-column.mjs.map +1 -1
  154. package/es/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  155. package/es/components/resizable-columns/src/resizable-column2.mjs +114 -7
  156. package/es/components/resizable-columns/src/resizable-column2.mjs.map +1 -1
  157. package/es/components/resizable-columns/src/resizable-columns.mjs +237 -12
  158. package/es/components/resizable-columns/src/resizable-columns.mjs.map +1 -1
  159. package/es/components/resizable-columns/src/resizable-columns2.mjs +12 -229
  160. package/es/components/resizable-columns/src/resizable-columns2.mjs.map +1 -1
  161. package/es/components/roving-focus-group/index.mjs +3 -3
  162. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  163. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  164. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  165. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  166. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  167. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  168. package/es/components/row/index.mjs +2 -2
  169. package/es/components/row/src/row.mjs +45 -30
  170. package/es/components/row/src/row.mjs.map +1 -1
  171. package/es/components/row/src/row2.mjs +30 -45
  172. package/es/components/row/src/row2.mjs.map +1 -1
  173. package/es/components/scrollbar/index.mjs +3 -3
  174. package/es/components/scrollbar/src/bar.mjs +1 -1
  175. package/es/components/scrollbar/src/scrollbar.mjs +46 -176
  176. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  177. package/es/components/scrollbar/src/scrollbar2.mjs +176 -46
  178. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  179. package/es/components/scrollbar/src/thumb.mjs +11 -134
  180. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  181. package/es/components/scrollbar/src/thumb2.mjs +134 -11
  182. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  183. package/es/components/statistic/index.mjs +2 -2
  184. package/es/components/statistic/src/statistic.mjs +70 -25
  185. package/es/components/statistic/src/statistic.mjs.map +1 -1
  186. package/es/components/statistic/src/statistic2.mjs +25 -70
  187. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  188. package/es/components/switch/index.mjs +2 -2
  189. package/es/components/switch/src/switch.mjs +245 -93
  190. package/es/components/switch/src/switch.mjs.map +1 -1
  191. package/es/components/switch/src/switch2.mjs +93 -245
  192. package/es/components/switch/src/switch2.mjs.map +1 -1
  193. package/es/components/tabs/index.mjs +1 -1
  194. package/es/components/tabs/src/tab-bar.mjs +7 -75
  195. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  196. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  197. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  198. package/es/components/tabs/src/tab-nav.mjs +1 -1
  199. package/es/components/teleport/index.mjs +2 -2
  200. package/es/components/teleport/src/teleport.mjs +44 -18
  201. package/es/components/teleport/src/teleport.mjs.map +1 -1
  202. package/es/components/teleport/src/teleport2.mjs +18 -44
  203. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  204. package/es/components/text/index.mjs +2 -2
  205. package/es/components/text/src/text.mjs +22 -35
  206. package/es/components/text/src/text.mjs.map +1 -1
  207. package/es/components/text/src/text2.mjs +35 -22
  208. package/es/components/text/src/text2.mjs.map +1 -1
  209. package/es/components/timeline/index.mjs +2 -2
  210. package/es/components/timeline/src/timeline-item.mjs +72 -42
  211. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  212. package/es/components/timeline/src/timeline-item2.mjs +42 -72
  213. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  214. package/es/components/tooltip/src/tooltip.mjs +1 -1
  215. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  216. package/es/components/tooltip-v2/index.mjs +2 -2
  217. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  218. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  219. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  220. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  221. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  222. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  223. package/es/components/tooltip-v2/src/trigger.mjs +91 -12
  224. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  225. package/es/components/tooltip-v2/src/trigger2.mjs +12 -91
  226. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  227. package/es/components/upload/index.mjs +3 -3
  228. package/es/components/upload/src/upload-content.mjs +1 -1
  229. package/es/components/upload/src/upload-content2.mjs +1 -1
  230. package/es/components/upload/src/upload-list.mjs +177 -26
  231. package/es/components/upload/src/upload-list.mjs.map +1 -1
  232. package/es/components/upload/src/upload-list2.mjs +26 -177
  233. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  234. package/es/components/upload/src/upload.mjs +105 -119
  235. package/es/components/upload/src/upload.mjs.map +1 -1
  236. package/es/components/upload/src/upload2.mjs +119 -105
  237. package/es/components/upload/src/upload2.mjs.map +1 -1
  238. package/es/components/upload/src/use-handlers.mjs +1 -1
  239. package/es/index.mjs +33 -33
  240. package/lib/components/affix/index.js +2 -2
  241. package/lib/components/affix/src/affix.js +119 -27
  242. package/lib/components/affix/src/affix.js.map +1 -1
  243. package/lib/components/affix/src/affix2.js +27 -119
  244. package/lib/components/affix/src/affix2.js.map +1 -1
  245. package/lib/components/autocomplete/index.js +2 -2
  246. package/lib/components/autocomplete/src/autocomplete.js +99 -378
  247. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  248. package/lib/components/autocomplete/src/autocomplete2.js +378 -99
  249. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  250. package/lib/components/avatar/index.js +2 -2
  251. package/lib/components/avatar/src/avatar.js +35 -75
  252. package/lib/components/avatar/src/avatar.js.map +1 -1
  253. package/lib/components/avatar/src/avatar2.js +75 -35
  254. package/lib/components/avatar/src/avatar2.js.map +1 -1
  255. package/lib/components/backtop/index.js +2 -2
  256. package/lib/components/backtop/src/backtop.js +61 -24
  257. package/lib/components/backtop/src/backtop.js.map +1 -1
  258. package/lib/components/backtop/src/backtop2.js +24 -61
  259. package/lib/components/backtop/src/backtop2.js.map +1 -1
  260. package/lib/components/breadcrumb/index.js +2 -2
  261. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  262. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  263. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  264. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  265. package/lib/components/calendar/index.js +2 -2
  266. package/lib/components/calendar/src/calendar.js +131 -19
  267. package/lib/components/calendar/src/calendar.js.map +1 -1
  268. package/lib/components/calendar/src/calendar2.js +19 -131
  269. package/lib/components/calendar/src/calendar2.js.map +1 -1
  270. package/lib/components/calendar/src/date-table.js +87 -37
  271. package/lib/components/calendar/src/date-table.js.map +1 -1
  272. package/lib/components/calendar/src/date-table2.js +37 -87
  273. package/lib/components/calendar/src/date-table2.js.map +1 -1
  274. package/lib/components/calendar/src/use-date-table.js +1 -1
  275. package/lib/components/card/index.js +2 -2
  276. package/lib/components/card/src/card.js +35 -16
  277. package/lib/components/card/src/card.js.map +1 -1
  278. package/lib/components/card/src/card2.js +16 -35
  279. package/lib/components/card/src/card2.js.map +1 -1
  280. package/lib/components/carousel/index.js +4 -4
  281. package/lib/components/carousel/src/carousel-item.js +69 -8
  282. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  283. package/lib/components/carousel/src/carousel-item2.js +8 -69
  284. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  285. package/lib/components/carousel/src/carousel.js +57 -169
  286. package/lib/components/carousel/src/carousel.js.map +1 -1
  287. package/lib/components/carousel/src/carousel2.js +169 -57
  288. package/lib/components/carousel/src/carousel2.js.map +1 -1
  289. package/lib/components/cascader/src/cascader.js +0 -1
  290. package/lib/components/cascader/src/cascader.js.map +1 -1
  291. package/lib/components/cascader-panel/src/index.js +1 -1
  292. package/lib/components/cascader-panel/src/menu.js +1 -1
  293. package/lib/components/cascader-panel/src/node.js +209 -116
  294. package/lib/components/cascader-panel/src/node.js.map +1 -1
  295. package/lib/components/cascader-panel/src/node2.js +116 -209
  296. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  297. package/lib/components/cascader-panel/src/store.js +1 -1
  298. package/lib/components/collection/index.js +1 -1
  299. package/lib/components/collection/src/collection.js +9 -66
  300. package/lib/components/collection/src/collection.js.map +1 -1
  301. package/lib/components/collection/src/collection2.js +66 -9
  302. package/lib/components/collection/src/collection2.js.map +1 -1
  303. package/lib/components/countdown/index.js +2 -2
  304. package/lib/components/countdown/src/countdown.js +76 -24
  305. package/lib/components/countdown/src/countdown.js.map +1 -1
  306. package/lib/components/countdown/src/countdown2.js +24 -76
  307. package/lib/components/countdown/src/countdown2.js.map +1 -1
  308. package/lib/components/descriptions/index.js +2 -2
  309. package/lib/components/descriptions/src/description.js +120 -27
  310. package/lib/components/descriptions/src/description.js.map +1 -1
  311. package/lib/components/descriptions/src/description2.js +27 -120
  312. package/lib/components/descriptions/src/description2.js.map +1 -1
  313. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  314. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  315. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  316. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  317. package/lib/components/dialog/index.js +2 -2
  318. package/lib/components/dialog/src/dialog.js +74 -174
  319. package/lib/components/dialog/src/dialog.js.map +1 -1
  320. package/lib/components/dialog/src/dialog2.js +174 -74
  321. package/lib/components/dialog/src/dialog2.js.map +1 -1
  322. package/lib/components/drawer/src/drawer.js +1 -1
  323. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  324. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  325. package/lib/components/dropdown/src/dropdown.js +1 -1
  326. package/lib/components/dropdown/src/dropdown2.js +1 -1
  327. package/lib/components/form/index.js +2 -2
  328. package/lib/components/form/src/form.js +61 -149
  329. package/lib/components/form/src/form.js.map +1 -1
  330. package/lib/components/form/src/form2.js +149 -61
  331. package/lib/components/form/src/form2.js.map +1 -1
  332. package/lib/components/index.js +33 -33
  333. package/lib/components/link/index.js +2 -2
  334. package/lib/components/link/src/link.js +50 -22
  335. package/lib/components/link/src/link.js.map +1 -1
  336. package/lib/components/link/src/link2.js +22 -50
  337. package/lib/components/link/src/link2.js.map +1 -1
  338. package/lib/components/menu/index.js +2 -2
  339. package/lib/components/menu/src/menu-item.js +15 -97
  340. package/lib/components/menu/src/menu-item.js.map +1 -1
  341. package/lib/components/menu/src/menu-item2.js +97 -15
  342. package/lib/components/menu/src/menu-item2.js.map +1 -1
  343. package/lib/components/notification/index.js +1 -1
  344. package/lib/components/notification/src/notification.js +68 -150
  345. package/lib/components/notification/src/notification.js.map +1 -1
  346. package/lib/components/notification/src/notification2.js +150 -68
  347. package/lib/components/notification/src/notification2.js.map +1 -1
  348. package/lib/components/notification/src/notify.js +2 -2
  349. package/lib/components/pagination/src/components/jumper.js +9 -60
  350. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  351. package/lib/components/pagination/src/components/jumper2.js +60 -9
  352. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  353. package/lib/components/pagination/src/components/sizes.js +22 -70
  354. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  355. package/lib/components/pagination/src/components/sizes2.js +70 -22
  356. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  357. package/lib/components/pagination/src/pagination.js +2 -2
  358. package/lib/components/popover/index.js +2 -2
  359. package/lib/components/popover/src/popover.js +111 -67
  360. package/lib/components/popover/src/popover.js.map +1 -1
  361. package/lib/components/popover/src/popover2.js +67 -111
  362. package/lib/components/popover/src/popover2.js.map +1 -1
  363. package/lib/components/popper/index.js +2 -2
  364. package/lib/components/popper/src/arrow.js +39 -9
  365. package/lib/components/popper/src/arrow.js.map +1 -1
  366. package/lib/components/popper/src/arrow2.js +9 -39
  367. package/lib/components/popper/src/arrow2.js.map +1 -1
  368. package/lib/components/progress/index.js +2 -2
  369. package/lib/components/progress/src/progress.js +204 -59
  370. package/lib/components/progress/src/progress.js.map +1 -1
  371. package/lib/components/progress/src/progress2.js +59 -204
  372. package/lib/components/progress/src/progress2.js.map +1 -1
  373. package/lib/components/radio/index.js +2 -2
  374. package/lib/components/radio/src/radio-button.js +1 -1
  375. package/lib/components/radio/src/radio-group.js +1 -1
  376. package/lib/components/radio/src/radio.js +74 -37
  377. package/lib/components/radio/src/radio.js.map +1 -1
  378. package/lib/components/radio/src/radio2.js +37 -74
  379. package/lib/components/radio/src/radio2.js.map +1 -1
  380. package/lib/components/resizable-columns/index.d.ts +2 -2
  381. package/lib/components/resizable-columns/index.js +4 -4
  382. package/lib/components/resizable-columns/src/constants.d.ts +1 -2
  383. package/lib/components/resizable-columns/src/constants.js.map +1 -1
  384. package/lib/components/resizable-columns/src/resizable-column.js +7 -111
  385. package/lib/components/resizable-columns/src/resizable-column.js.map +1 -1
  386. package/lib/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  387. package/lib/components/resizable-columns/src/resizable-column2.js +114 -7
  388. package/lib/components/resizable-columns/src/resizable-column2.js.map +1 -1
  389. package/lib/components/resizable-columns/src/resizable-columns.js +237 -12
  390. package/lib/components/resizable-columns/src/resizable-columns.js.map +1 -1
  391. package/lib/components/resizable-columns/src/resizable-columns2.js +12 -229
  392. package/lib/components/resizable-columns/src/resizable-columns2.js.map +1 -1
  393. package/lib/components/roving-focus-group/index.js +2 -2
  394. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  395. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  396. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  397. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  398. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  399. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  400. package/lib/components/row/index.js +2 -2
  401. package/lib/components/row/src/row.js +45 -32
  402. package/lib/components/row/src/row.js.map +1 -1
  403. package/lib/components/row/src/row2.js +32 -45
  404. package/lib/components/row/src/row2.js.map +1 -1
  405. package/lib/components/scrollbar/index.js +3 -3
  406. package/lib/components/scrollbar/src/bar.js +1 -1
  407. package/lib/components/scrollbar/src/scrollbar.js +47 -176
  408. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  409. package/lib/components/scrollbar/src/scrollbar2.js +176 -47
  410. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  411. package/lib/components/scrollbar/src/thumb.js +11 -134
  412. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  413. package/lib/components/scrollbar/src/thumb2.js +134 -11
  414. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  415. package/lib/components/statistic/index.js +2 -2
  416. package/lib/components/statistic/src/statistic.js +70 -25
  417. package/lib/components/statistic/src/statistic.js.map +1 -1
  418. package/lib/components/statistic/src/statistic2.js +25 -70
  419. package/lib/components/statistic/src/statistic2.js.map +1 -1
  420. package/lib/components/switch/index.js +2 -2
  421. package/lib/components/switch/src/switch.js +244 -93
  422. package/lib/components/switch/src/switch.js.map +1 -1
  423. package/lib/components/switch/src/switch2.js +93 -244
  424. package/lib/components/switch/src/switch2.js.map +1 -1
  425. package/lib/components/tabs/index.js +1 -1
  426. package/lib/components/tabs/src/tab-bar.js +7 -75
  427. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  428. package/lib/components/tabs/src/tab-bar2.js +75 -7
  429. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  430. package/lib/components/tabs/src/tab-nav.js +1 -1
  431. package/lib/components/teleport/index.js +2 -2
  432. package/lib/components/teleport/src/teleport.js +44 -18
  433. package/lib/components/teleport/src/teleport.js.map +1 -1
  434. package/lib/components/teleport/src/teleport2.js +18 -44
  435. package/lib/components/teleport/src/teleport2.js.map +1 -1
  436. package/lib/components/text/index.js +2 -2
  437. package/lib/components/text/src/text.js +22 -35
  438. package/lib/components/text/src/text.js.map +1 -1
  439. package/lib/components/text/src/text2.js +35 -22
  440. package/lib/components/text/src/text2.js.map +1 -1
  441. package/lib/components/timeline/index.js +2 -2
  442. package/lib/components/timeline/src/timeline-item.js +72 -42
  443. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  444. package/lib/components/timeline/src/timeline-item2.js +42 -72
  445. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  446. package/lib/components/tooltip/src/tooltip.js +1 -1
  447. package/lib/components/tooltip/src/tooltip2.js +1 -1
  448. package/lib/components/tooltip-v2/index.js +2 -2
  449. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  450. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  451. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  452. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  453. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  454. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  455. package/lib/components/tooltip-v2/src/trigger.js +91 -12
  456. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  457. package/lib/components/tooltip-v2/src/trigger2.js +12 -91
  458. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  459. package/lib/components/upload/index.js +3 -3
  460. package/lib/components/upload/src/upload-content.js +1 -1
  461. package/lib/components/upload/src/upload-content2.js +1 -1
  462. package/lib/components/upload/src/upload-list.js +177 -27
  463. package/lib/components/upload/src/upload-list.js.map +1 -1
  464. package/lib/components/upload/src/upload-list2.js +27 -177
  465. package/lib/components/upload/src/upload-list2.js.map +1 -1
  466. package/lib/components/upload/src/upload.js +108 -119
  467. package/lib/components/upload/src/upload.js.map +1 -1
  468. package/lib/components/upload/src/upload2.js +119 -108
  469. package/lib/components/upload/src/upload2.js.map +1 -1
  470. package/lib/components/upload/src/use-handlers.js +1 -1
  471. package/lib/index.js +33 -33
  472. package/package.json +1 -1
  473. package/theme-chalk/el-checkbox.css +1 -1
  474. package/theme-chalk/el-color-picker.css +1 -1
  475. package/theme-chalk/el-input.css +1 -1
  476. package/theme-chalk/el-radio.css +1 -1
  477. package/theme-chalk/el-rate.css +1 -1
  478. package/theme-chalk/el-select-v2.css +1 -1
  479. package/theme-chalk/el-switch.css +1 -1
  480. package/theme-chalk/index.css +1 -1
  481. package/theme-chalk/src/checkbox.scss +5 -0
  482. package/theme-chalk/src/color-picker.scss +4 -0
  483. package/theme-chalk/src/input.scss +30 -4
  484. package/theme-chalk/src/radio.scss +11 -0
  485. package/theme-chalk/src/rate.scss +1 -0
  486. package/theme-chalk/src/select-v2.scss +1 -0
  487. package/theme-chalk/src/switch.scss +1 -0
  488. package/web-types.json +1 -1
@@ -1,31 +1,76 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
+ import '../../../hooks/index.mjs';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { statisticProps } from './statistic2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { isFunction } from '@vue/shared';
8
+ import { isNumber } from '../../../utils/types.mjs';
3
9
 
4
- const statisticProps = buildProps({
5
- decimalSeparator: {
6
- type: String,
7
- default: "."
8
- },
9
- groupSeparator: {
10
- type: String,
11
- default: ","
12
- },
13
- precision: {
14
- type: Number,
15
- default: 0
16
- },
17
- formatter: Function,
18
- value: {
19
- type: definePropType([Number, Object]),
20
- default: 0
21
- },
22
- prefix: String,
23
- suffix: String,
24
- title: String,
25
- valueStyle: {
26
- type: definePropType([String, Object, Array])
10
+ const __default__ = defineComponent({
11
+ name: "ElStatistic"
12
+ });
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: statisticProps,
16
+ setup(__props, { expose }) {
17
+ const props = __props;
18
+ const ns = useNamespace("statistic");
19
+ const displayValue = computed(() => {
20
+ const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
21
+ if (isFunction(formatter))
22
+ return formatter(value);
23
+ if (!isNumber(value))
24
+ return value;
25
+ let [integer, decimal = ""] = String(value).split(".");
26
+ decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
27
+ integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
28
+ return [integer, decimal].join(decimal ? decimalSeparator : "");
29
+ });
30
+ expose({
31
+ displayValue
32
+ });
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock("div", {
35
+ class: normalizeClass(unref(ns).b())
36
+ }, [
37
+ _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
38
+ key: 0,
39
+ class: normalizeClass(unref(ns).e("head"))
40
+ }, [
41
+ renderSlot(_ctx.$slots, "title", {}, () => [
42
+ createTextVNode(toDisplayString(_ctx.title), 1)
43
+ ])
44
+ ], 2)) : createCommentVNode("v-if", true),
45
+ createElementVNode("div", {
46
+ class: normalizeClass(unref(ns).e("content"))
47
+ }, [
48
+ _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
49
+ key: 0,
50
+ class: normalizeClass(unref(ns).e("prefix"))
51
+ }, [
52
+ renderSlot(_ctx.$slots, "prefix", {}, () => [
53
+ createElementVNode("span", null, toDisplayString(_ctx.prefix), 1)
54
+ ])
55
+ ], 2)) : createCommentVNode("v-if", true),
56
+ createElementVNode("span", {
57
+ class: normalizeClass(unref(ns).e("number")),
58
+ style: normalizeStyle(_ctx.valueStyle)
59
+ }, toDisplayString(unref(displayValue)), 7),
60
+ _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
61
+ key: 1,
62
+ class: normalizeClass(unref(ns).e("suffix"))
63
+ }, [
64
+ renderSlot(_ctx.$slots, "suffix", {}, () => [
65
+ createElementVNode("span", null, toDisplayString(_ctx.suffix), 1)
66
+ ])
67
+ ], 2)) : createCommentVNode("v-if", true)
68
+ ], 2)
69
+ ], 2);
70
+ };
27
71
  }
28
72
  });
73
+ var Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\statistic\\src\\statistic.vue"]]);
29
74
 
30
- export { statisticProps };
75
+ export { Statistic as default };
31
76
  //# sourceMappingURL=statistic.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":[],"mappings":";;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"statistic.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAI,WAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAAC,SAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,76 +1,31 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
- import '../../../hooks/index.mjs';
3
1
  import '../../../utils/index.mjs';
4
- import { statisticProps } from './statistic.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
- import { isFunction } from '@vue/shared';
8
- import { isNumber } from '../../../utils/types.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
9
3
 
10
- const __default__ = defineComponent({
11
- name: "ElStatistic"
12
- });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: statisticProps,
16
- setup(__props, { expose }) {
17
- const props = __props;
18
- const ns = useNamespace("statistic");
19
- const displayValue = computed(() => {
20
- const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
21
- if (isFunction(formatter))
22
- return formatter(value);
23
- if (!isNumber(value))
24
- return value;
25
- let [integer, decimal = ""] = String(value).split(".");
26
- decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
27
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
28
- return [integer, decimal].join(decimal ? decimalSeparator : "");
29
- });
30
- expose({
31
- displayValue
32
- });
33
- return (_ctx, _cache) => {
34
- return openBlock(), createElementBlock("div", {
35
- class: normalizeClass(unref(ns).b())
36
- }, [
37
- _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
38
- key: 0,
39
- class: normalizeClass(unref(ns).e("head"))
40
- }, [
41
- renderSlot(_ctx.$slots, "title", {}, () => [
42
- createTextVNode(toDisplayString(_ctx.title), 1)
43
- ])
44
- ], 2)) : createCommentVNode("v-if", true),
45
- createElementVNode("div", {
46
- class: normalizeClass(unref(ns).e("content"))
47
- }, [
48
- _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
49
- key: 0,
50
- class: normalizeClass(unref(ns).e("prefix"))
51
- }, [
52
- renderSlot(_ctx.$slots, "prefix", {}, () => [
53
- createElementVNode("span", null, toDisplayString(_ctx.prefix), 1)
54
- ])
55
- ], 2)) : createCommentVNode("v-if", true),
56
- createElementVNode("span", {
57
- class: normalizeClass(unref(ns).e("number")),
58
- style: normalizeStyle(_ctx.valueStyle)
59
- }, toDisplayString(unref(displayValue)), 7),
60
- _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
61
- key: 1,
62
- class: normalizeClass(unref(ns).e("suffix"))
63
- }, [
64
- renderSlot(_ctx.$slots, "suffix", {}, () => [
65
- createElementVNode("span", null, toDisplayString(_ctx.suffix), 1)
66
- ])
67
- ], 2)) : createCommentVNode("v-if", true)
68
- ], 2)
69
- ], 2);
70
- };
4
+ const statisticProps = buildProps({
5
+ decimalSeparator: {
6
+ type: String,
7
+ default: "."
8
+ },
9
+ groupSeparator: {
10
+ type: String,
11
+ default: ","
12
+ },
13
+ precision: {
14
+ type: Number,
15
+ default: 0
16
+ },
17
+ formatter: Function,
18
+ value: {
19
+ type: definePropType([Number, Object]),
20
+ default: 0
21
+ },
22
+ prefix: String,
23
+ suffix: String,
24
+ title: String,
25
+ valueStyle: {
26
+ type: definePropType([String, Object, Array])
71
27
  }
72
28
  });
73
- var Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\statistic\\src\\statistic.vue"]]);
74
29
 
75
- export { Statistic as default };
30
+ export { statisticProps };
76
31
  //# sourceMappingURL=statistic2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAI,WAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAAC,SAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":[],"mappings":";;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Switch from './src/switch2.mjs';
3
- export { switchEmits, switchProps } from './src/switch.mjs';
2
+ import Switch from './src/switch.mjs';
3
+ export { switchEmits, switchProps } from './src/switch2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElSwitch = withInstall(Switch);
@@ -1,101 +1,253 @@
1
+ import { defineComponent, getCurrentInstance, computed, ref, nextTick, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, withModifiers, createElementVNode, withKeys, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, toDisplayString, createVNode } from 'vue';
2
+ import '../../config-provider/index.mjs';
3
+ import { isPromise } from '@vue/shared';
1
4
  import '../../../utils/index.mjs';
5
+ import { ElIcon } from '../../icon/index.mjs';
6
+ import '../../form/index.mjs';
7
+ import { Loading } from '@element-plus/icons-vue';
2
8
  import '../../../constants/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { viewModes } from '../../../constants/size.mjs';
5
- import { iconPropType } from '../../../utils/vue/icon.mjs';
6
- import { isValidComponentSize } from '../../../utils/vue/validator.mjs';
9
+ import '../../../hooks/index.mjs';
10
+ import { switchProps, switchEmits } from './switch2.mjs';
11
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
12
+ import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
13
+ import { useFormSize, useFormDisabled, useFormViewMode } from '../../form/src/hooks/use-form-common-props.mjs';
14
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
15
+ import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
16
+ import { addUnit } from '../../../utils/dom/style.mjs';
17
+ import { watch } from '../../config-provider/src/for-editor.mjs';
7
18
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
8
- import { isBoolean, isNumber } from '../../../utils/types.mjs';
9
- import { isString } from '@vue/shared';
19
+ import { debugWarn, throwError } from '../../../utils/error.mjs';
20
+ import { isBoolean } from '../../../utils/types.mjs';
10
21
 
11
- const switchProps = buildProps({
12
- modelValue: {
13
- type: [Boolean, String, Number],
14
- default: false
15
- },
16
- value: {
17
- type: [Boolean, String, Number],
18
- default: false
19
- },
20
- disabled: {
21
- type: Boolean,
22
- default: false
23
- },
24
- viewMode: {
25
- type: String,
26
- values: viewModes
27
- },
28
- width: {
29
- type: [String, Number],
30
- default: ""
31
- },
32
- inlinePrompt: {
33
- type: Boolean,
34
- default: false
35
- },
36
- activeIcon: {
37
- type: iconPropType
38
- },
39
- inactiveIcon: {
40
- type: iconPropType
41
- },
42
- activeText: {
43
- type: String,
44
- default: ""
45
- },
46
- inactiveText: {
47
- type: String,
48
- default: ""
49
- },
50
- activeColor: {
51
- type: String,
52
- default: ""
53
- },
54
- inactiveColor: {
55
- type: String,
56
- default: ""
57
- },
58
- borderColor: {
59
- type: String,
60
- default: ""
61
- },
62
- activeValue: {
63
- type: [Boolean, String, Number],
64
- default: true
65
- },
66
- inactiveValue: {
67
- type: [Boolean, String, Number],
68
- default: false
69
- },
70
- name: {
71
- type: String,
72
- default: ""
73
- },
74
- validateEvent: {
75
- type: Boolean,
76
- default: true
77
- },
78
- id: String,
79
- loading: {
80
- type: Boolean,
81
- default: false
82
- },
83
- beforeChange: {
84
- type: definePropType(Function)
85
- },
86
- size: {
87
- type: String,
88
- validator: isValidComponentSize
89
- },
90
- tabindex: {
91
- type: [String, Number]
22
+ const _hoisted_1 = ["onClick"];
23
+ const _hoisted_2 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
24
+ const _hoisted_3 = ["aria-hidden"];
25
+ const _hoisted_4 = ["aria-hidden"];
26
+ const _hoisted_5 = ["aria-hidden"];
27
+ const COMPONENT_NAME = "ElSwitch";
28
+ const __default__ = defineComponent({
29
+ name: COMPONENT_NAME
30
+ });
31
+ const _sfc_main = /* @__PURE__ */ defineComponent({
32
+ ...__default__,
33
+ props: switchProps,
34
+ emits: switchEmits,
35
+ setup(__props, { expose, emit }) {
36
+ const props = __props;
37
+ const vm = getCurrentInstance();
38
+ const { formItem } = useFormItem();
39
+ const switchSize = useFormSize();
40
+ const ns = useNamespace("switch");
41
+ useDeprecated({
42
+ from: '"value"',
43
+ replacement: '"model-value" or "v-model"',
44
+ scope: COMPONENT_NAME,
45
+ version: "2.3.0",
46
+ ref: "https://element-plus.org/en-US/component/switch.html#attributes",
47
+ type: "Attribute"
48
+ }, computed(() => {
49
+ var _a;
50
+ return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
51
+ }));
52
+ const { inputId } = useFormItemInputId(props, {
53
+ formItemContext: formItem
54
+ });
55
+ const switchDisabled = useFormDisabled(computed(() => props.loading));
56
+ const switchViewMode = useFormViewMode();
57
+ const isControlled = ref(props.modelValue !== false);
58
+ const input = ref();
59
+ const core = ref();
60
+ const switchKls = computed(() => [
61
+ ns.b(),
62
+ ns.m(switchSize.value),
63
+ ns.is("disabled", switchDisabled.value),
64
+ ns.is("view-mode", !!switchViewMode.value),
65
+ ns.is("checked", checked.value)
66
+ ]);
67
+ const coreStyle = computed(() => ({
68
+ width: addUnit(props.width)
69
+ }));
70
+ watch(() => props.modelValue, () => {
71
+ isControlled.value = true;
72
+ });
73
+ watch(() => props.value, () => {
74
+ isControlled.value = false;
75
+ });
76
+ const actualValue = computed(() => {
77
+ return isControlled.value ? props.modelValue : props.value;
78
+ });
79
+ const checked = computed(() => actualValue.value === props.activeValue);
80
+ if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
81
+ emit(UPDATE_MODEL_EVENT, props.inactiveValue);
82
+ emit(CHANGE_EVENT, props.inactiveValue);
83
+ emit(INPUT_EVENT, props.inactiveValue);
84
+ }
85
+ watch(checked, (val) => {
86
+ var _a;
87
+ input.value.checked = val;
88
+ if (props.validateEvent) {
89
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
90
+ }
91
+ });
92
+ const handleChange = () => {
93
+ const val = checked.value ? props.inactiveValue : props.activeValue;
94
+ emit(UPDATE_MODEL_EVENT, val);
95
+ emit(CHANGE_EVENT, val);
96
+ emit(INPUT_EVENT, val);
97
+ nextTick(() => {
98
+ input.value.checked = checked.value;
99
+ });
100
+ };
101
+ const switchValue = () => {
102
+ if (switchDisabled.value || switchViewMode.value)
103
+ return;
104
+ const { beforeChange } = props;
105
+ if (!beforeChange) {
106
+ handleChange();
107
+ return;
108
+ }
109
+ const shouldChange = beforeChange();
110
+ const isPromiseOrBool = [
111
+ isPromise(shouldChange),
112
+ isBoolean(shouldChange)
113
+ ].includes(true);
114
+ if (!isPromiseOrBool) {
115
+ throwError(COMPONENT_NAME, "beforeChange must return type `Promise<boolean>` or `boolean`");
116
+ }
117
+ if (isPromise(shouldChange)) {
118
+ shouldChange.then((result) => {
119
+ if (result) {
120
+ handleChange();
121
+ }
122
+ }).catch((e) => {
123
+ debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
124
+ });
125
+ } else if (shouldChange) {
126
+ handleChange();
127
+ }
128
+ };
129
+ const styles = computed(() => {
130
+ return ns.cssVarBlock({
131
+ ...props.activeColor ? { "on-color": props.activeColor } : null,
132
+ ...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
133
+ ...props.borderColor ? { "border-color": props.borderColor } : null
134
+ });
135
+ });
136
+ const focus = () => {
137
+ var _a, _b;
138
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
139
+ };
140
+ onMounted(() => {
141
+ input.value.checked = checked.value;
142
+ });
143
+ expose({
144
+ focus,
145
+ checked
146
+ });
147
+ return (_ctx, _cache) => {
148
+ return openBlock(), createElementBlock("div", {
149
+ class: normalizeClass(unref(switchKls)),
150
+ style: normalizeStyle(unref(styles)),
151
+ onClick: withModifiers(switchValue, ["prevent"])
152
+ }, [
153
+ createElementVNode("input", {
154
+ id: unref(inputId),
155
+ ref_key: "input",
156
+ ref: input,
157
+ class: normalizeClass(unref(ns).e("input")),
158
+ type: "checkbox",
159
+ role: "switch",
160
+ "aria-checked": unref(checked),
161
+ "aria-disabled": unref(switchDisabled),
162
+ name: _ctx.name,
163
+ "true-value": _ctx.activeValue,
164
+ "false-value": _ctx.inactiveValue,
165
+ disabled: unref(switchDisabled) || unref(switchViewMode),
166
+ tabindex: _ctx.tabindex,
167
+ onChange: handleChange,
168
+ onKeydown: withKeys(switchValue, ["enter"])
169
+ }, null, 42, _hoisted_2),
170
+ !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
171
+ key: 0,
172
+ class: normalizeClass([
173
+ unref(ns).e("label"),
174
+ unref(ns).em("label", "left"),
175
+ unref(ns).is("active", !unref(checked))
176
+ ])
177
+ }, [
178
+ _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
179
+ default: withCtx(() => [
180
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
181
+ ]),
182
+ _: 1
183
+ })) : createCommentVNode("v-if", true),
184
+ !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
185
+ key: 1,
186
+ "aria-hidden": unref(checked)
187
+ }, toDisplayString(_ctx.inactiveText), 9, _hoisted_3)) : createCommentVNode("v-if", true)
188
+ ], 2)) : createCommentVNode("v-if", true),
189
+ createElementVNode("span", {
190
+ ref_key: "core",
191
+ ref: core,
192
+ class: normalizeClass(unref(ns).e("core")),
193
+ style: normalizeStyle(unref(coreStyle))
194
+ }, [
195
+ _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
196
+ key: 0,
197
+ class: normalizeClass(unref(ns).e("inner"))
198
+ }, [
199
+ _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
200
+ key: 0,
201
+ class: normalizeClass(unref(ns).is("icon"))
202
+ }, {
203
+ default: withCtx(() => [
204
+ (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
205
+ ]),
206
+ _: 1
207
+ }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
208
+ key: 1,
209
+ class: normalizeClass(unref(ns).is("text")),
210
+ "aria-hidden": !unref(checked)
211
+ }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4)) : createCommentVNode("v-if", true)
212
+ ], 2)) : createCommentVNode("v-if", true),
213
+ createElementVNode("div", {
214
+ class: normalizeClass(unref(ns).e("action"))
215
+ }, [
216
+ _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
217
+ key: 0,
218
+ class: normalizeClass(unref(ns).is("loading"))
219
+ }, {
220
+ default: withCtx(() => [
221
+ createVNode(unref(Loading))
222
+ ]),
223
+ _: 1
224
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
225
+ ], 2)
226
+ ], 6),
227
+ !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
228
+ key: 1,
229
+ class: normalizeClass([
230
+ unref(ns).e("label"),
231
+ unref(ns).em("label", "right"),
232
+ unref(ns).is("active", unref(checked))
233
+ ])
234
+ }, [
235
+ _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
236
+ default: withCtx(() => [
237
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
238
+ ]),
239
+ _: 1
240
+ })) : createCommentVNode("v-if", true),
241
+ !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
242
+ key: 1,
243
+ "aria-hidden": !unref(checked)
244
+ }, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
245
+ ], 2)) : createCommentVNode("v-if", true)
246
+ ], 14, _hoisted_1);
247
+ };
92
248
  }
93
249
  });
94
- const switchEmits = {
95
- [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
96
- [CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
97
- [INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
98
- };
250
+ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\switch\\src\\switch.vue"]]);
99
251
 
100
- export { switchEmits, switchProps };
252
+ export { Switch as default };
101
253
  //# sourceMappingURL=switch.mjs.map