element-plus-secondary 0.5.12 → 0.6.1

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 (567) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/index.mjs +2 -2
  3. package/es/components/affix/src/affix.mjs +26 -117
  4. package/es/components/affix/src/affix.mjs.map +1 -1
  5. package/es/components/affix/src/affix2.mjs +117 -26
  6. package/es/components/affix/src/affix2.mjs.map +1 -1
  7. package/es/components/autocomplete/index.mjs +2 -2
  8. package/es/components/autocomplete/src/autocomplete.mjs +71 -353
  9. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  10. package/es/components/autocomplete/src/autocomplete2.mjs +353 -71
  11. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  12. package/es/components/badge/index.mjs +2 -2
  13. package/es/components/badge/src/badge.mjs +17 -55
  14. package/es/components/badge/src/badge.mjs.map +1 -1
  15. package/es/components/badge/src/badge2.mjs +55 -17
  16. package/es/components/badge/src/badge2.mjs.map +1 -1
  17. package/es/components/breadcrumb/index.mjs +4 -4
  18. package/es/components/breadcrumb/src/breadcrumb-item.mjs +57 -11
  19. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  20. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -57
  21. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  22. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -37
  23. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  24. package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -11
  25. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  26. package/es/components/button/index.mjs +3 -3
  27. package/es/components/button/src/button-group.mjs +31 -6
  28. package/es/components/button/src/button-group.mjs.map +1 -1
  29. package/es/components/button/src/button-group2.mjs +6 -31
  30. package/es/components/button/src/button-group2.mjs.map +1 -1
  31. package/es/components/button/src/button.mjs +54 -78
  32. package/es/components/button/src/button.mjs.map +1 -1
  33. package/es/components/button/src/button2.mjs +78 -54
  34. package/es/components/button/src/button2.mjs.map +1 -1
  35. package/es/components/calendar/index.mjs +2 -2
  36. package/es/components/calendar/src/calendar.mjs +18 -131
  37. package/es/components/calendar/src/calendar.mjs.map +1 -1
  38. package/es/components/calendar/src/calendar2.mjs +131 -18
  39. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  40. package/es/components/calendar/src/date-table.mjs +87 -33
  41. package/es/components/calendar/src/date-table.mjs.map +1 -1
  42. package/es/components/calendar/src/date-table2.mjs +33 -87
  43. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  44. package/es/components/calendar/src/use-date-table.mjs +1 -1
  45. package/es/components/card/index.mjs +2 -2
  46. package/es/components/card/src/card.mjs +35 -16
  47. package/es/components/card/src/card.mjs.map +1 -1
  48. package/es/components/card/src/card2.mjs +16 -35
  49. package/es/components/card/src/card2.mjs.map +1 -1
  50. package/es/components/cascader/src/index.mjs +1 -1
  51. package/es/components/check-tag/index.mjs +2 -2
  52. package/es/components/check-tag/src/check-tag.mjs +12 -30
  53. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  54. package/es/components/check-tag/src/check-tag2.mjs +30 -12
  55. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  56. package/es/components/checkbox/index.mjs +2 -2
  57. package/es/components/checkbox/src/checkbox-group.mjs +28 -72
  58. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  59. package/es/components/checkbox/src/checkbox-group2.mjs +72 -28
  60. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  61. package/es/components/col/index.mjs +2 -2
  62. package/es/components/col/src/col.mjs +43 -66
  63. package/es/components/col/src/col.mjs.map +1 -1
  64. package/es/components/col/src/col2.mjs +66 -43
  65. package/es/components/col/src/col2.mjs.map +1 -1
  66. package/es/components/collapse/index.mjs +2 -2
  67. package/es/components/collapse/src/collapse-item.mjs +19 -97
  68. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  69. package/es/components/collapse/src/collapse-item2.mjs +97 -19
  70. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  71. package/es/components/collection/index.mjs +1 -1
  72. package/es/components/collection/src/collection.mjs +62 -10
  73. package/es/components/collection/src/collection.mjs.map +1 -1
  74. package/es/components/collection/src/collection2.mjs +10 -62
  75. package/es/components/collection/src/collection2.mjs.map +1 -1
  76. package/es/components/color-picker/index.mjs +2 -2
  77. package/es/components/color-picker/src/color-picker.mjs +408 -54
  78. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  79. package/es/components/color-picker/src/color-picker2.mjs +54 -408
  80. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  81. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  82. package/es/components/dialog/src/dialog-content.mjs +37 -87
  83. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  84. package/es/components/dialog/src/dialog-content2.mjs +87 -37
  85. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  86. package/es/components/dialog/src/dialog.mjs +1 -1
  87. package/es/components/dialog/src/dialog2.mjs +1 -1
  88. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  89. package/es/components/dropdown/src/dropdown2.mjs +2 -2
  90. package/es/components/empty/index.mjs +2 -2
  91. package/es/components/empty/src/empty.mjs +11 -56
  92. package/es/components/empty/src/empty.mjs.map +1 -1
  93. package/es/components/empty/src/empty2.mjs +56 -11
  94. package/es/components/empty/src/empty2.mjs.map +1 -1
  95. package/es/components/icon/index.mjs +2 -2
  96. package/es/components/icon/src/icon.mjs +36 -8
  97. package/es/components/icon/src/icon.mjs.map +1 -1
  98. package/es/components/icon/src/icon2.mjs +8 -36
  99. package/es/components/icon/src/icon2.mjs.map +1 -1
  100. package/es/components/index.mjs +45 -45
  101. package/es/components/input/index.mjs +2 -2
  102. package/es/components/input/src/input.mjs +116 -442
  103. package/es/components/input/src/input.mjs.map +1 -1
  104. package/es/components/input/src/input2.mjs +442 -116
  105. package/es/components/input/src/input2.mjs.map +1 -1
  106. package/es/components/input-number/index.mjs +2 -2
  107. package/es/components/input-number/src/input-number.mjs +322 -62
  108. package/es/components/input-number/src/input-number.mjs.map +1 -1
  109. package/es/components/input-number/src/input-number2.mjs +62 -322
  110. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  111. package/es/components/link/index.mjs +2 -2
  112. package/es/components/link/src/link.mjs +49 -21
  113. package/es/components/link/src/link.mjs.map +1 -1
  114. package/es/components/link/src/link2.mjs +21 -49
  115. package/es/components/link/src/link2.mjs.map +1 -1
  116. package/es/components/menu/index.mjs +2 -2
  117. package/es/components/menu/src/menu-item.mjs +14 -100
  118. package/es/components/menu/src/menu-item.mjs.map +1 -1
  119. package/es/components/menu/src/menu-item2.mjs +100 -14
  120. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  121. package/es/components/message/index.mjs +1 -1
  122. package/es/components/message/src/message.mjs +86 -146
  123. package/es/components/message/src/message.mjs.map +1 -1
  124. package/es/components/message/src/message2.mjs +146 -86
  125. package/es/components/message/src/message2.mjs.map +1 -1
  126. package/es/components/message/src/method.mjs +2 -2
  127. package/es/components/notification/index.mjs +1 -1
  128. package/es/components/notification/src/notification.mjs +145 -69
  129. package/es/components/notification/src/notification.mjs.map +1 -1
  130. package/es/components/notification/src/notification2.mjs +69 -145
  131. package/es/components/notification/src/notification2.mjs.map +1 -1
  132. package/es/components/notification/src/notify.mjs +2 -2
  133. package/es/components/page-header/index.mjs +2 -2
  134. package/es/components/page-header/src/page-header.mjs +102 -17
  135. package/es/components/page-header/src/page-header.mjs.map +1 -1
  136. package/es/components/page-header/src/page-header2.mjs +17 -102
  137. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  138. package/es/components/pagination/src/components/sizes.mjs +22 -68
  139. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  140. package/es/components/pagination/src/components/sizes.vue.d.ts +4 -0
  141. package/es/components/pagination/src/components/sizes2.mjs +68 -22
  142. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  143. package/es/components/pagination/src/pagination.mjs +1 -1
  144. package/es/components/popconfirm/index.mjs +2 -2
  145. package/es/components/popconfirm/src/popconfirm.mjs +49 -111
  146. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  147. package/es/components/popconfirm/src/popconfirm2.mjs +111 -49
  148. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  149. package/es/components/popover/index.mjs +2 -2
  150. package/es/components/popover/src/popover.mjs +66 -111
  151. package/es/components/popover/src/popover.mjs.map +1 -1
  152. package/es/components/popover/src/popover2.mjs +111 -66
  153. package/es/components/popover/src/popover2.mjs.map +1 -1
  154. package/es/components/popper/index.mjs +6 -6
  155. package/es/components/popper/src/arrow.mjs +44 -8
  156. package/es/components/popper/src/arrow.mjs.map +1 -1
  157. package/es/components/popper/src/arrow2.mjs +8 -44
  158. package/es/components/popper/src/arrow2.mjs.map +1 -1
  159. package/es/components/popper/src/content.mjs +212 -94
  160. package/es/components/popper/src/content.mjs.map +1 -1
  161. package/es/components/popper/src/content2.mjs +94 -212
  162. package/es/components/popper/src/content2.mjs.map +1 -1
  163. package/es/components/popper/src/trigger.mjs +31 -120
  164. package/es/components/popper/src/trigger.mjs.map +1 -1
  165. package/es/components/popper/src/trigger2.mjs +120 -31
  166. package/es/components/popper/src/trigger2.mjs.map +1 -1
  167. package/es/components/progress/index.mjs +2 -2
  168. package/es/components/progress/src/progress.mjs +57 -202
  169. package/es/components/progress/src/progress.mjs.map +1 -1
  170. package/es/components/progress/src/progress2.mjs +202 -57
  171. package/es/components/progress/src/progress2.mjs.map +1 -1
  172. package/es/components/radio/index.mjs +6 -6
  173. package/es/components/radio/src/radio-button.mjs +9 -68
  174. package/es/components/radio/src/radio-button.mjs.map +1 -1
  175. package/es/components/radio/src/radio-button2.mjs +68 -9
  176. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  177. package/es/components/radio/src/radio-group.mjs +68 -36
  178. package/es/components/radio/src/radio-group.mjs.map +1 -1
  179. package/es/components/radio/src/radio-group2.mjs +36 -68
  180. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  181. package/es/components/radio/src/radio.mjs +78 -34
  182. package/es/components/radio/src/radio.mjs.map +1 -1
  183. package/es/components/radio/src/radio2.mjs +34 -78
  184. package/es/components/radio/src/radio2.mjs.map +1 -1
  185. package/es/components/rate/index.mjs +2 -2
  186. package/es/components/rate/src/rate.mjs +98 -256
  187. package/es/components/rate/src/rate.mjs.map +1 -1
  188. package/es/components/rate/src/rate2.mjs +256 -98
  189. package/es/components/rate/src/rate2.mjs.map +1 -1
  190. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  191. package/es/components/scrollbar/index.mjs +3 -3
  192. package/es/components/scrollbar/src/bar.mjs +42 -17
  193. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  194. package/es/components/scrollbar/src/bar2.mjs +17 -42
  195. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  196. package/es/components/scrollbar/src/scrollbar.mjs +47 -175
  197. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  198. package/es/components/scrollbar/src/scrollbar2.mjs +175 -47
  199. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  200. package/es/components/scrollbar/src/thumb.mjs +131 -11
  201. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  202. package/es/components/scrollbar/src/thumb2.mjs +11 -131
  203. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  204. package/es/components/select/index.d.ts +4 -0
  205. package/es/components/select/src/select.mjs +18 -6
  206. package/es/components/select/src/select.mjs.map +1 -1
  207. package/es/components/select/src/select.vue.d.ts +4 -0
  208. package/es/components/select/src/token.d.ts +1 -0
  209. package/es/components/select/src/token.mjs.map +1 -1
  210. package/es/components/slider/index.mjs +2 -2
  211. package/es/components/slider/src/button.mjs +21 -95
  212. package/es/components/slider/src/button.mjs.map +1 -1
  213. package/es/components/slider/src/button2.mjs +95 -21
  214. package/es/components/slider/src/button2.mjs.map +1 -1
  215. package/es/components/slider/src/slider.mjs +95 -233
  216. package/es/components/slider/src/slider.mjs.map +1 -1
  217. package/es/components/slider/src/slider2.mjs +233 -95
  218. package/es/components/slider/src/slider2.mjs.map +1 -1
  219. package/es/components/steps/index.mjs +2 -2
  220. package/es/components/steps/src/steps.mjs +34 -36
  221. package/es/components/steps/src/steps.mjs.map +1 -1
  222. package/es/components/steps/src/steps2.mjs +36 -34
  223. package/es/components/steps/src/steps2.mjs.map +1 -1
  224. package/es/components/switch/index.mjs +2 -2
  225. package/es/components/switch/src/switch.mjs +88 -240
  226. package/es/components/switch/src/switch.mjs.map +1 -1
  227. package/es/components/switch/src/switch2.mjs +240 -88
  228. package/es/components/switch/src/switch2.mjs.map +1 -1
  229. package/es/components/tabs/index.mjs +2 -2
  230. package/es/components/tabs/src/tab-pane.mjs +13 -73
  231. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  232. package/es/components/tabs/src/tab-pane2.mjs +73 -13
  233. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  234. package/es/components/tag/index.mjs +2 -2
  235. package/es/components/tag/src/tag.mjs +96 -32
  236. package/es/components/tag/src/tag.mjs.map +1 -1
  237. package/es/components/tag/src/tag2.mjs +32 -96
  238. package/es/components/tag/src/tag2.mjs.map +1 -1
  239. package/es/components/time-select/index.d.ts +16 -0
  240. package/es/components/time-select/src/time-select.vue.d.ts +8 -0
  241. package/es/components/timeline/index.mjs +2 -2
  242. package/es/components/timeline/src/timeline-item.mjs +42 -70
  243. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  244. package/es/components/timeline/src/timeline-item2.mjs +70 -42
  245. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  246. package/es/components/tooltip/index.mjs +1 -1
  247. package/es/components/tooltip/src/content.mjs +1 -1
  248. package/es/components/tooltip/src/content2.mjs +1 -1
  249. package/es/components/tooltip/src/tooltip.mjs +2 -2
  250. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  251. package/es/components/tooltip/src/trigger.mjs +74 -16
  252. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  253. package/es/components/tooltip/src/trigger2.mjs +16 -74
  254. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  255. package/es/components/tooltip-v2/index.mjs +5 -5
  256. package/es/components/tooltip-v2/src/arrow.mjs +22 -38
  257. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  258. package/es/components/tooltip-v2/src/arrow2.mjs +38 -22
  259. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  260. package/es/components/tooltip-v2/src/content.mjs +113 -50
  261. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  262. package/es/components/tooltip-v2/src/content2.mjs +50 -113
  263. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  264. package/es/components/tooltip-v2/src/tooltip.mjs +74 -21
  265. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  266. package/es/components/tooltip-v2/src/tooltip2.mjs +21 -74
  267. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  268. package/es/components/tooltip-v2/src/trigger.mjs +12 -90
  269. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  270. package/es/components/tooltip-v2/src/trigger2.mjs +90 -12
  271. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  272. package/es/components/transfer/index.mjs +2 -2
  273. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  274. package/es/components/transfer/src/transfer-panel2.mjs +1 -1
  275. package/es/components/transfer/src/transfer.mjs +159 -69
  276. package/es/components/transfer/src/transfer.mjs.map +1 -1
  277. package/es/components/transfer/src/transfer2.mjs +69 -159
  278. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  279. package/es/components/tree-select/src/tree-select.mjs +0 -1
  280. package/es/components/tree-select/src/tree-select.mjs.map +1 -1
  281. package/es/index.mjs +45 -45
  282. package/lib/components/affix/index.js +2 -2
  283. package/lib/components/affix/src/affix.js +27 -117
  284. package/lib/components/affix/src/affix.js.map +1 -1
  285. package/lib/components/affix/src/affix2.js +117 -27
  286. package/lib/components/affix/src/affix2.js.map +1 -1
  287. package/lib/components/autocomplete/index.js +2 -2
  288. package/lib/components/autocomplete/src/autocomplete.js +71 -352
  289. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  290. package/lib/components/autocomplete/src/autocomplete2.js +352 -71
  291. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  292. package/lib/components/badge/index.js +2 -2
  293. package/lib/components/badge/src/badge.js +17 -55
  294. package/lib/components/badge/src/badge.js.map +1 -1
  295. package/lib/components/badge/src/badge2.js +55 -17
  296. package/lib/components/badge/src/badge2.js.map +1 -1
  297. package/lib/components/breadcrumb/index.js +4 -4
  298. package/lib/components/breadcrumb/src/breadcrumb-item.js +57 -11
  299. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  300. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -57
  301. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  302. package/lib/components/breadcrumb/src/breadcrumb.js +11 -37
  303. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  304. package/lib/components/breadcrumb/src/breadcrumb2.js +37 -11
  305. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  306. package/lib/components/button/index.js +3 -3
  307. package/lib/components/button/src/button-group.js +31 -6
  308. package/lib/components/button/src/button-group.js.map +1 -1
  309. package/lib/components/button/src/button-group2.js +6 -31
  310. package/lib/components/button/src/button-group2.js.map +1 -1
  311. package/lib/components/button/src/button.js +57 -78
  312. package/lib/components/button/src/button.js.map +1 -1
  313. package/lib/components/button/src/button2.js +78 -57
  314. package/lib/components/button/src/button2.js.map +1 -1
  315. package/lib/components/calendar/index.js +2 -2
  316. package/lib/components/calendar/src/calendar.js +19 -131
  317. package/lib/components/calendar/src/calendar.js.map +1 -1
  318. package/lib/components/calendar/src/calendar2.js +131 -19
  319. package/lib/components/calendar/src/calendar2.js.map +1 -1
  320. package/lib/components/calendar/src/date-table.js +87 -37
  321. package/lib/components/calendar/src/date-table.js.map +1 -1
  322. package/lib/components/calendar/src/date-table2.js +37 -87
  323. package/lib/components/calendar/src/date-table2.js.map +1 -1
  324. package/lib/components/calendar/src/use-date-table.js +1 -1
  325. package/lib/components/card/index.js +2 -2
  326. package/lib/components/card/src/card.js +35 -16
  327. package/lib/components/card/src/card.js.map +1 -1
  328. package/lib/components/card/src/card2.js +16 -35
  329. package/lib/components/card/src/card2.js.map +1 -1
  330. package/lib/components/cascader/src/index.js +1 -1
  331. package/lib/components/check-tag/index.js +2 -2
  332. package/lib/components/check-tag/src/check-tag.js +13 -30
  333. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  334. package/lib/components/check-tag/src/check-tag2.js +30 -13
  335. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  336. package/lib/components/checkbox/index.js +2 -2
  337. package/lib/components/checkbox/src/checkbox-group.js +29 -72
  338. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  339. package/lib/components/checkbox/src/checkbox-group2.js +72 -29
  340. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  341. package/lib/components/col/index.js +2 -2
  342. package/lib/components/col/src/col.js +43 -66
  343. package/lib/components/col/src/col.js.map +1 -1
  344. package/lib/components/col/src/col2.js +66 -43
  345. package/lib/components/col/src/col2.js.map +1 -1
  346. package/lib/components/collapse/index.js +2 -2
  347. package/lib/components/collapse/src/collapse-item.js +19 -97
  348. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  349. package/lib/components/collapse/src/collapse-item2.js +97 -19
  350. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  351. package/lib/components/collection/index.js +1 -1
  352. package/lib/components/collection/src/collection.js +62 -9
  353. package/lib/components/collection/src/collection.js.map +1 -1
  354. package/lib/components/collection/src/collection2.js +9 -62
  355. package/lib/components/collection/src/collection2.js.map +1 -1
  356. package/lib/components/color-picker/index.js +2 -2
  357. package/lib/components/color-picker/src/color-picker.js +406 -54
  358. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  359. package/lib/components/color-picker/src/color-picker2.js +54 -406
  360. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  361. package/lib/components/color-picker/src/components/predefine.js +1 -1
  362. package/lib/components/dialog/src/dialog-content.js +37 -86
  363. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  364. package/lib/components/dialog/src/dialog-content2.js +86 -37
  365. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  366. package/lib/components/dialog/src/dialog.js +1 -1
  367. package/lib/components/dialog/src/dialog2.js +1 -1
  368. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  369. package/lib/components/dropdown/src/dropdown2.js +2 -2
  370. package/lib/components/empty/index.js +2 -2
  371. package/lib/components/empty/src/empty.js +11 -56
  372. package/lib/components/empty/src/empty.js.map +1 -1
  373. package/lib/components/empty/src/empty2.js +56 -11
  374. package/lib/components/empty/src/empty2.js.map +1 -1
  375. package/lib/components/icon/index.js +2 -2
  376. package/lib/components/icon/src/icon.js +36 -8
  377. package/lib/components/icon/src/icon.js.map +1 -1
  378. package/lib/components/icon/src/icon2.js +8 -36
  379. package/lib/components/icon/src/icon2.js.map +1 -1
  380. package/lib/components/index.js +45 -45
  381. package/lib/components/input/index.js +2 -2
  382. package/lib/components/input/src/input.js +116 -441
  383. package/lib/components/input/src/input.js.map +1 -1
  384. package/lib/components/input/src/input2.js +441 -116
  385. package/lib/components/input/src/input2.js.map +1 -1
  386. package/lib/components/input-number/index.js +2 -2
  387. package/lib/components/input-number/src/input-number.js +321 -62
  388. package/lib/components/input-number/src/input-number.js.map +1 -1
  389. package/lib/components/input-number/src/input-number2.js +62 -321
  390. package/lib/components/input-number/src/input-number2.js.map +1 -1
  391. package/lib/components/link/index.js +2 -2
  392. package/lib/components/link/src/link.js +49 -22
  393. package/lib/components/link/src/link.js.map +1 -1
  394. package/lib/components/link/src/link2.js +22 -49
  395. package/lib/components/link/src/link2.js.map +1 -1
  396. package/lib/components/menu/index.js +2 -2
  397. package/lib/components/menu/src/menu-item.js +15 -100
  398. package/lib/components/menu/src/menu-item.js.map +1 -1
  399. package/lib/components/menu/src/menu-item2.js +100 -15
  400. package/lib/components/menu/src/menu-item2.js.map +1 -1
  401. package/lib/components/message/index.js +1 -1
  402. package/lib/components/message/src/message.js +87 -144
  403. package/lib/components/message/src/message.js.map +1 -1
  404. package/lib/components/message/src/message2.js +144 -87
  405. package/lib/components/message/src/message2.js.map +1 -1
  406. package/lib/components/message/src/method.js +2 -2
  407. package/lib/components/notification/index.js +1 -1
  408. package/lib/components/notification/src/notification.js +144 -70
  409. package/lib/components/notification/src/notification.js.map +1 -1
  410. package/lib/components/notification/src/notification2.js +70 -144
  411. package/lib/components/notification/src/notification2.js.map +1 -1
  412. package/lib/components/notification/src/notify.js +2 -2
  413. package/lib/components/page-header/index.js +2 -2
  414. package/lib/components/page-header/src/page-header.js +102 -18
  415. package/lib/components/page-header/src/page-header.js.map +1 -1
  416. package/lib/components/page-header/src/page-header2.js +18 -102
  417. package/lib/components/page-header/src/page-header2.js.map +1 -1
  418. package/lib/components/pagination/src/components/sizes.js +22 -68
  419. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  420. package/lib/components/pagination/src/components/sizes.vue.d.ts +4 -0
  421. package/lib/components/pagination/src/components/sizes2.js +68 -22
  422. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  423. package/lib/components/pagination/src/pagination.js +1 -1
  424. package/lib/components/popconfirm/index.js +2 -2
  425. package/lib/components/popconfirm/src/popconfirm.js +49 -111
  426. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  427. package/lib/components/popconfirm/src/popconfirm2.js +111 -49
  428. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  429. package/lib/components/popover/index.js +2 -2
  430. package/lib/components/popover/src/popover.js +67 -111
  431. package/lib/components/popover/src/popover.js.map +1 -1
  432. package/lib/components/popover/src/popover2.js +111 -67
  433. package/lib/components/popover/src/popover2.js.map +1 -1
  434. package/lib/components/popper/index.js +6 -6
  435. package/lib/components/popper/src/arrow.js +44 -9
  436. package/lib/components/popper/src/arrow.js.map +1 -1
  437. package/lib/components/popper/src/arrow2.js +9 -44
  438. package/lib/components/popper/src/arrow2.js.map +1 -1
  439. package/lib/components/popper/src/content.js +212 -99
  440. package/lib/components/popper/src/content.js.map +1 -1
  441. package/lib/components/popper/src/content2.js +99 -212
  442. package/lib/components/popper/src/content2.js.map +1 -1
  443. package/lib/components/popper/src/trigger.js +32 -120
  444. package/lib/components/popper/src/trigger.js.map +1 -1
  445. package/lib/components/popper/src/trigger2.js +120 -32
  446. package/lib/components/popper/src/trigger2.js.map +1 -1
  447. package/lib/components/progress/index.js +2 -2
  448. package/lib/components/progress/src/progress.js +57 -202
  449. package/lib/components/progress/src/progress.js.map +1 -1
  450. package/lib/components/progress/src/progress2.js +202 -57
  451. package/lib/components/progress/src/progress2.js.map +1 -1
  452. package/lib/components/radio/index.js +6 -6
  453. package/lib/components/radio/src/radio-button.js +9 -68
  454. package/lib/components/radio/src/radio-button.js.map +1 -1
  455. package/lib/components/radio/src/radio-button2.js +68 -9
  456. package/lib/components/radio/src/radio-button2.js.map +1 -1
  457. package/lib/components/radio/src/radio-group.js +68 -37
  458. package/lib/components/radio/src/radio-group.js.map +1 -1
  459. package/lib/components/radio/src/radio-group2.js +37 -68
  460. package/lib/components/radio/src/radio-group2.js.map +1 -1
  461. package/lib/components/radio/src/radio.js +78 -36
  462. package/lib/components/radio/src/radio.js.map +1 -1
  463. package/lib/components/radio/src/radio2.js +36 -78
  464. package/lib/components/radio/src/radio2.js.map +1 -1
  465. package/lib/components/rate/index.js +2 -2
  466. package/lib/components/rate/src/rate.js +98 -255
  467. package/lib/components/rate/src/rate.js.map +1 -1
  468. package/lib/components/rate/src/rate2.js +255 -98
  469. package/lib/components/rate/src/rate2.js.map +1 -1
  470. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  471. package/lib/components/scrollbar/index.js +3 -3
  472. package/lib/components/scrollbar/src/bar.js +42 -17
  473. package/lib/components/scrollbar/src/bar.js.map +1 -1
  474. package/lib/components/scrollbar/src/bar2.js +17 -42
  475. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  476. package/lib/components/scrollbar/src/scrollbar.js +48 -175
  477. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  478. package/lib/components/scrollbar/src/scrollbar2.js +175 -48
  479. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  480. package/lib/components/scrollbar/src/thumb.js +131 -11
  481. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  482. package/lib/components/scrollbar/src/thumb2.js +11 -131
  483. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  484. package/lib/components/select/index.d.ts +4 -0
  485. package/lib/components/select/src/select.js +18 -6
  486. package/lib/components/select/src/select.js.map +1 -1
  487. package/lib/components/select/src/select.vue.d.ts +4 -0
  488. package/lib/components/select/src/token.d.ts +1 -0
  489. package/lib/components/select/src/token.js.map +1 -1
  490. package/lib/components/slider/index.js +2 -2
  491. package/lib/components/slider/src/button.js +22 -95
  492. package/lib/components/slider/src/button.js.map +1 -1
  493. package/lib/components/slider/src/button2.js +95 -22
  494. package/lib/components/slider/src/button2.js.map +1 -1
  495. package/lib/components/slider/src/slider.js +96 -233
  496. package/lib/components/slider/src/slider.js.map +1 -1
  497. package/lib/components/slider/src/slider2.js +233 -96
  498. package/lib/components/slider/src/slider2.js.map +1 -1
  499. package/lib/components/steps/index.js +2 -2
  500. package/lib/components/steps/src/steps.js +34 -37
  501. package/lib/components/steps/src/steps.js.map +1 -1
  502. package/lib/components/steps/src/steps2.js +37 -34
  503. package/lib/components/steps/src/steps2.js.map +1 -1
  504. package/lib/components/switch/index.js +2 -2
  505. package/lib/components/switch/src/switch.js +88 -239
  506. package/lib/components/switch/src/switch.js.map +1 -1
  507. package/lib/components/switch/src/switch2.js +239 -88
  508. package/lib/components/switch/src/switch2.js.map +1 -1
  509. package/lib/components/tabs/index.js +2 -2
  510. package/lib/components/tabs/src/tab-pane.js +13 -73
  511. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  512. package/lib/components/tabs/src/tab-pane2.js +73 -13
  513. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  514. package/lib/components/tag/index.js +2 -2
  515. package/lib/components/tag/src/tag.js +96 -33
  516. package/lib/components/tag/src/tag.js.map +1 -1
  517. package/lib/components/tag/src/tag2.js +33 -96
  518. package/lib/components/tag/src/tag2.js.map +1 -1
  519. package/lib/components/time-select/index.d.ts +16 -0
  520. package/lib/components/time-select/src/time-select.vue.d.ts +8 -0
  521. package/lib/components/timeline/index.js +2 -2
  522. package/lib/components/timeline/src/timeline-item.js +42 -70
  523. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  524. package/lib/components/timeline/src/timeline-item2.js +70 -42
  525. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  526. package/lib/components/tooltip/index.js +1 -1
  527. package/lib/components/tooltip/src/content.js +1 -1
  528. package/lib/components/tooltip/src/content2.js +1 -1
  529. package/lib/components/tooltip/src/tooltip.js +2 -2
  530. package/lib/components/tooltip/src/tooltip2.js +2 -2
  531. package/lib/components/tooltip/src/trigger.js +74 -16
  532. package/lib/components/tooltip/src/trigger.js.map +1 -1
  533. package/lib/components/tooltip/src/trigger2.js +16 -74
  534. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  535. package/lib/components/tooltip-v2/index.js +5 -5
  536. package/lib/components/tooltip-v2/src/arrow.js +23 -38
  537. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  538. package/lib/components/tooltip-v2/src/arrow2.js +38 -23
  539. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  540. package/lib/components/tooltip-v2/src/content.js +113 -50
  541. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  542. package/lib/components/tooltip-v2/src/content2.js +50 -113
  543. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  544. package/lib/components/tooltip-v2/src/tooltip.js +74 -21
  545. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  546. package/lib/components/tooltip-v2/src/tooltip2.js +21 -74
  547. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  548. package/lib/components/tooltip-v2/src/trigger.js +12 -90
  549. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  550. package/lib/components/tooltip-v2/src/trigger2.js +90 -12
  551. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  552. package/lib/components/transfer/index.js +2 -2
  553. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  554. package/lib/components/transfer/src/transfer-panel2.js +1 -1
  555. package/lib/components/transfer/src/transfer.js +159 -73
  556. package/lib/components/transfer/src/transfer.js.map +1 -1
  557. package/lib/components/transfer/src/transfer2.js +73 -159
  558. package/lib/components/transfer/src/transfer2.js.map +1 -1
  559. package/lib/components/tree-select/src/tree-select.js +0 -1
  560. package/lib/components/tree-select/src/tree-select.js.map +1 -1
  561. package/lib/index.js +45 -45
  562. package/package.json +1 -1
  563. package/theme-chalk/el-option.css +1 -1
  564. package/theme-chalk/el-tree-select.css +1 -1
  565. package/theme-chalk/index.css +1 -1
  566. package/theme-chalk/src/option.scss +1 -0
  567. package/theme-chalk/src/tree-select.scss +5 -1
@@ -1,96 +1,248 @@
1
+ import { defineComponent, getCurrentInstance, computed, ref, watch, nextTick, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, withModifiers, createElementVNode, withKeys, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, toDisplayString, createVNode } from 'vue';
2
+ import { isPromise } from '@vue/shared';
1
3
  import '../../../utils/index.mjs';
4
+ import { ElIcon } from '../../icon/index.mjs';
5
+ import { Loading } from '@element-plus/icons-vue';
2
6
  import '../../../constants/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { iconPropType } from '../../../utils/vue/icon.mjs';
5
- import { isValidComponentSize } from '../../../utils/vue/validator.mjs';
7
+ import '../../../hooks/index.mjs';
8
+ import { switchProps, switchEmits } from './switch.mjs';
9
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
10
+ import { useFormItem, useFormItemInputId } from '../../../hooks/use-form-item/index.mjs';
11
+ import { useSize, useDisabled } from '../../../hooks/use-common-props/index.mjs';
12
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
13
+ import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
14
+ import { addUnit } from '../../../utils/dom/style.mjs';
6
15
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
7
- import { isBoolean, isNumber } from '@vueuse/core';
8
- import { isString } from '@vue/shared';
16
+ import { debugWarn, throwError } from '../../../utils/error.mjs';
17
+ import { isBoolean } from '@vueuse/core';
9
18
 
10
- const switchProps = buildProps({
11
- modelValue: {
12
- type: [Boolean, String, Number],
13
- default: false
14
- },
15
- value: {
16
- type: [Boolean, String, Number],
17
- default: false
18
- },
19
- disabled: {
20
- type: Boolean,
21
- default: false
22
- },
23
- width: {
24
- type: [String, Number],
25
- default: ""
26
- },
27
- inlinePrompt: {
28
- type: Boolean,
29
- default: false
30
- },
31
- activeIcon: {
32
- type: iconPropType
33
- },
34
- inactiveIcon: {
35
- type: iconPropType
36
- },
37
- activeText: {
38
- type: String,
39
- default: ""
40
- },
41
- inactiveText: {
42
- type: String,
43
- default: ""
44
- },
45
- activeColor: {
46
- type: String,
47
- default: ""
48
- },
49
- inactiveColor: {
50
- type: String,
51
- default: ""
52
- },
53
- borderColor: {
54
- type: String,
55
- default: ""
56
- },
57
- activeValue: {
58
- type: [Boolean, String, Number],
59
- default: true
60
- },
61
- inactiveValue: {
62
- type: [Boolean, String, Number],
63
- default: false
64
- },
65
- name: {
66
- type: String,
67
- default: ""
68
- },
69
- validateEvent: {
70
- type: Boolean,
71
- default: true
72
- },
73
- id: String,
74
- loading: {
75
- type: Boolean,
76
- default: false
77
- },
78
- beforeChange: {
79
- type: definePropType(Function)
80
- },
81
- size: {
82
- type: String,
83
- validator: isValidComponentSize
84
- },
85
- tabindex: {
86
- type: [String, Number]
19
+ const _hoisted_1 = ["onClick"];
20
+ const _hoisted_2 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
21
+ const _hoisted_3 = ["aria-hidden"];
22
+ const _hoisted_4 = ["aria-hidden"];
23
+ const _hoisted_5 = ["aria-hidden"];
24
+ const COMPONENT_NAME = "ElSwitch";
25
+ const __default__ = defineComponent({
26
+ name: COMPONENT_NAME
27
+ });
28
+ const _sfc_main = /* @__PURE__ */ defineComponent({
29
+ ...__default__,
30
+ props: switchProps,
31
+ emits: switchEmits,
32
+ setup(__props, { expose, emit }) {
33
+ const props = __props;
34
+ const vm = getCurrentInstance();
35
+ const { formItem } = useFormItem();
36
+ const switchSize = useSize();
37
+ const ns = useNamespace("switch");
38
+ useDeprecated({
39
+ from: '"value"',
40
+ replacement: '"model-value" or "v-model"',
41
+ scope: COMPONENT_NAME,
42
+ version: "2.3.0",
43
+ ref: "https://element-plus.org/en-US/component/switch.html#attributes",
44
+ type: "Attribute"
45
+ }, computed(() => {
46
+ var _a;
47
+ return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
48
+ }));
49
+ const { inputId } = useFormItemInputId(props, {
50
+ formItemContext: formItem
51
+ });
52
+ const switchDisabled = useDisabled(computed(() => props.loading));
53
+ const isControlled = ref(props.modelValue !== false);
54
+ const input = ref();
55
+ const core = ref();
56
+ const switchKls = computed(() => [
57
+ ns.b(),
58
+ ns.m(switchSize.value),
59
+ ns.is("disabled", switchDisabled.value),
60
+ ns.is("checked", checked.value)
61
+ ]);
62
+ const coreStyle = computed(() => ({
63
+ width: addUnit(props.width)
64
+ }));
65
+ watch(() => props.modelValue, () => {
66
+ isControlled.value = true;
67
+ });
68
+ watch(() => props.value, () => {
69
+ isControlled.value = false;
70
+ });
71
+ const actualValue = computed(() => {
72
+ return isControlled.value ? props.modelValue : props.value;
73
+ });
74
+ const checked = computed(() => actualValue.value === props.activeValue);
75
+ if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
76
+ emit(UPDATE_MODEL_EVENT, props.inactiveValue);
77
+ emit(CHANGE_EVENT, props.inactiveValue);
78
+ emit(INPUT_EVENT, props.inactiveValue);
79
+ }
80
+ watch(checked, (val) => {
81
+ var _a;
82
+ input.value.checked = val;
83
+ if (props.validateEvent) {
84
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
85
+ }
86
+ });
87
+ const handleChange = () => {
88
+ const val = checked.value ? props.inactiveValue : props.activeValue;
89
+ emit(UPDATE_MODEL_EVENT, val);
90
+ emit(CHANGE_EVENT, val);
91
+ emit(INPUT_EVENT, val);
92
+ nextTick(() => {
93
+ input.value.checked = checked.value;
94
+ });
95
+ };
96
+ const switchValue = () => {
97
+ if (switchDisabled.value)
98
+ return;
99
+ const { beforeChange } = props;
100
+ if (!beforeChange) {
101
+ handleChange();
102
+ return;
103
+ }
104
+ const shouldChange = beforeChange();
105
+ const isPromiseOrBool = [
106
+ isPromise(shouldChange),
107
+ isBoolean(shouldChange)
108
+ ].includes(true);
109
+ if (!isPromiseOrBool) {
110
+ throwError(COMPONENT_NAME, "beforeChange must return type `Promise<boolean>` or `boolean`");
111
+ }
112
+ if (isPromise(shouldChange)) {
113
+ shouldChange.then((result) => {
114
+ if (result) {
115
+ handleChange();
116
+ }
117
+ }).catch((e) => {
118
+ debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
119
+ });
120
+ } else if (shouldChange) {
121
+ handleChange();
122
+ }
123
+ };
124
+ const styles = computed(() => {
125
+ return ns.cssVarBlock({
126
+ ...props.activeColor ? { "on-color": props.activeColor } : null,
127
+ ...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
128
+ ...props.borderColor ? { "border-color": props.borderColor } : null
129
+ });
130
+ });
131
+ const focus = () => {
132
+ var _a, _b;
133
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
134
+ };
135
+ onMounted(() => {
136
+ input.value.checked = checked.value;
137
+ });
138
+ expose({
139
+ focus,
140
+ checked
141
+ });
142
+ return (_ctx, _cache) => {
143
+ return openBlock(), createElementBlock("div", {
144
+ class: normalizeClass(unref(switchKls)),
145
+ style: normalizeStyle(unref(styles)),
146
+ onClick: withModifiers(switchValue, ["prevent"])
147
+ }, [
148
+ createElementVNode("input", {
149
+ id: unref(inputId),
150
+ ref_key: "input",
151
+ ref: input,
152
+ class: normalizeClass(unref(ns).e("input")),
153
+ type: "checkbox",
154
+ role: "switch",
155
+ "aria-checked": unref(checked),
156
+ "aria-disabled": unref(switchDisabled),
157
+ name: _ctx.name,
158
+ "true-value": _ctx.activeValue,
159
+ "false-value": _ctx.inactiveValue,
160
+ disabled: unref(switchDisabled),
161
+ tabindex: _ctx.tabindex,
162
+ onChange: handleChange,
163
+ onKeydown: withKeys(switchValue, ["enter"])
164
+ }, null, 42, _hoisted_2),
165
+ !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
166
+ key: 0,
167
+ class: normalizeClass([
168
+ unref(ns).e("label"),
169
+ unref(ns).em("label", "left"),
170
+ unref(ns).is("active", !unref(checked))
171
+ ])
172
+ }, [
173
+ _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
174
+ default: withCtx(() => [
175
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
176
+ ]),
177
+ _: 1
178
+ })) : createCommentVNode("v-if", true),
179
+ !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
180
+ key: 1,
181
+ "aria-hidden": unref(checked)
182
+ }, toDisplayString(_ctx.inactiveText), 9, _hoisted_3)) : createCommentVNode("v-if", true)
183
+ ], 2)) : createCommentVNode("v-if", true),
184
+ createElementVNode("span", {
185
+ ref_key: "core",
186
+ ref: core,
187
+ class: normalizeClass(unref(ns).e("core")),
188
+ style: normalizeStyle(unref(coreStyle))
189
+ }, [
190
+ _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
191
+ key: 0,
192
+ class: normalizeClass(unref(ns).e("inner"))
193
+ }, [
194
+ _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
195
+ key: 0,
196
+ class: normalizeClass(unref(ns).is("icon"))
197
+ }, {
198
+ default: withCtx(() => [
199
+ (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
200
+ ]),
201
+ _: 1
202
+ }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
203
+ key: 1,
204
+ class: normalizeClass(unref(ns).is("text")),
205
+ "aria-hidden": !unref(checked)
206
+ }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4)) : createCommentVNode("v-if", true)
207
+ ], 2)) : createCommentVNode("v-if", true),
208
+ createElementVNode("div", {
209
+ class: normalizeClass(unref(ns).e("action"))
210
+ }, [
211
+ _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
212
+ key: 0,
213
+ class: normalizeClass(unref(ns).is("loading"))
214
+ }, {
215
+ default: withCtx(() => [
216
+ createVNode(unref(Loading))
217
+ ]),
218
+ _: 1
219
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
220
+ ], 2)
221
+ ], 6),
222
+ !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
223
+ key: 1,
224
+ class: normalizeClass([
225
+ unref(ns).e("label"),
226
+ unref(ns).em("label", "right"),
227
+ unref(ns).is("active", unref(checked))
228
+ ])
229
+ }, [
230
+ _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
231
+ default: withCtx(() => [
232
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
233
+ ]),
234
+ _: 1
235
+ })) : createCommentVNode("v-if", true),
236
+ !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
237
+ key: 1,
238
+ "aria-hidden": !unref(checked)
239
+ }, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
240
+ ], 2)) : createCommentVNode("v-if", true)
241
+ ], 14, _hoisted_1);
242
+ };
87
243
  }
88
244
  });
89
- const switchEmits = {
90
- [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
91
- [CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
92
- [INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
93
- };
245
+ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/switch/src/switch.vue"]]);
94
246
 
95
- export { switchEmits, switchProps };
247
+ export { Switch as default };
96
248
  //# sourceMappingURL=switch2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch2.mjs","sources":["../../../../../../packages/components/switch/src/switch.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n isString,\n isValidComponentSize,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Switch from './switch.vue'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport const switchProps = buildProps({\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n value: {\n type: [Boolean, String, Number],\n default: false,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n width: {\n type: [String, Number],\n default: '',\n },\n inlinePrompt: {\n type: Boolean,\n default: false,\n },\n activeIcon: {\n type: iconPropType,\n },\n inactiveIcon: {\n type: iconPropType,\n },\n activeText: {\n type: String,\n default: '',\n },\n inactiveText: {\n type: String,\n default: '',\n },\n activeColor: {\n type: String,\n default: '',\n },\n inactiveColor: {\n type: String,\n default: '',\n },\n borderColor: {\n type: String,\n default: '',\n },\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n name: {\n type: String,\n default: '',\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n id: String,\n loading: {\n type: Boolean,\n default: false,\n },\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n tabindex: {\n type: [String, Number],\n },\n} as const)\n\nexport type SwitchProps = ExtractPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch>\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"switch2.mjs","sources":["../../../../../../packages/components/switch/src/switch.vue"],"sourcesContent":["<template>\n <div :class=\"switchKls\" :style=\"styles\" @click.prevent=\"switchValue\">\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"ns.e('input')\"\n type=\"checkbox\"\n role=\"switch\"\n :aria-checked=\"checked\"\n :aria-disabled=\"switchDisabled\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText)\"\n :class=\"[\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked),\n ]\"\n >\n <el-icon v-if=\"inactiveIcon\"><component :is=\"inactiveIcon\" /></el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\" :aria-hidden=\"checked\">{{\n inactiveText\n }}</span>\n </span>\n <span ref=\"core\" :class=\"ns.e('core')\" :style=\"coreStyle\">\n <div v-if=\"inlinePrompt\" :class=\"ns.e('inner')\">\n <template v-if=\"activeIcon || inactiveIcon\">\n <el-icon :class=\"ns.is('icon')\">\n <component :is=\"checked ? activeIcon : inactiveIcon\" />\n </el-icon>\n </template>\n <template v-else-if=\"activeText || inactiveText\">\n <span :class=\"ns.is('text')\" :aria-hidden=\"!checked\">\n {{ checked ? activeText : inactiveText }}\n </span>\n </template>\n </div>\n <div :class=\"ns.e('action')\">\n <el-icon v-if=\"loading\" :class=\"ns.is('loading')\"><loading /></el-icon>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText)\"\n :class=\"[\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', checked),\n ]\"\n >\n <el-icon v-if=\"activeIcon\"><component :is=\"activeIcon\" /></el-icon>\n <span v-if=\"!activeIcon && activeText\" :aria-hidden=\"!checked\">{{\n activeText\n }}</span>\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n onMounted,\n ref,\n watch,\n} from 'vue'\nimport { isPromise } from '@vue/shared'\nimport { addUnit, debugWarn, isBoolean, throwError } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport {\n useDeprecated,\n useDisabled,\n useFormItem,\n useFormItemInputId,\n useNamespace,\n useSize,\n} from '@element-plus/hooks'\nimport { switchEmits, switchProps } from './switch'\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElSwitch'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(switchProps)\nconst emit = defineEmits(switchEmits)\n\nconst vm = getCurrentInstance()!\nconst { formItem } = useFormItem()\nconst switchSize = useSize()\nconst ns = useNamespace('switch')\n\nuseDeprecated(\n {\n from: '\"value\"',\n replacement: '\"model-value\" or \"v-model\"',\n scope: COMPONENT_NAME,\n version: '2.3.0',\n ref: 'https://element-plus.org/en-US/component/switch.html#attributes',\n type: 'Attribute',\n },\n computed(() => !!vm.vnode.props?.value)\n)\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useDisabled(computed(() => props.loading))\nconst isControlled = ref(props.modelValue !== false)\nconst input = ref<HTMLInputElement>()\nconst core = ref<HTMLSpanElement>()\n\nconst switchKls = computed(() => [\n ns.b(),\n ns.m(switchSize.value),\n ns.is('disabled', switchDisabled.value),\n ns.is('checked', checked.value),\n])\n\nconst coreStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.width),\n}))\n\nwatch(\n () => props.modelValue,\n () => {\n isControlled.value = true\n }\n)\n\nwatch(\n () => props.value,\n () => {\n isControlled.value = false\n }\n)\n\nconst actualValue = computed(() => {\n return isControlled.value ? props.modelValue : props.value\n})\n\nconst checked = computed(() => actualValue.value === props.activeValue)\n\nif (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {\n emit(UPDATE_MODEL_EVENT, props.inactiveValue)\n emit(CHANGE_EVENT, props.inactiveValue)\n emit(INPUT_EVENT, props.inactiveValue)\n}\n\nwatch(checked, (val) => {\n input.value!.checked = val\n\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n})\n\nconst handleChange = () => {\n const val = checked.value ? props.inactiveValue : props.activeValue\n emit(UPDATE_MODEL_EVENT, val)\n emit(CHANGE_EVENT, val)\n emit(INPUT_EVENT, val)\n nextTick(() => {\n input.value!.checked = checked.value\n })\n}\n\nconst switchValue = () => {\n if (switchDisabled.value) return\n\n const { beforeChange } = props\n if (!beforeChange) {\n handleChange()\n return\n }\n\n const shouldChange = beforeChange()\n\n const isPromiseOrBool = [\n isPromise(shouldChange),\n isBoolean(shouldChange),\n ].includes(true)\n if (!isPromiseOrBool) {\n throwError(\n COMPONENT_NAME,\n 'beforeChange must return type `Promise<boolean>` or `boolean`'\n )\n }\n\n if (isPromise(shouldChange)) {\n shouldChange\n .then((result) => {\n if (result) {\n handleChange()\n }\n })\n .catch((e) => {\n debugWarn(COMPONENT_NAME, `some error occurred: ${e}`)\n })\n } else if (shouldChange) {\n handleChange()\n }\n}\n\nconst styles = computed(() => {\n return ns.cssVarBlock({\n ...(props.activeColor ? { 'on-color': props.activeColor } : null),\n ...(props.inactiveColor ? { 'off-color': props.inactiveColor } : null),\n ...(props.borderColor ? { 'border-color': props.borderColor } : null),\n })\n})\n\nconst focus = (): void => {\n input.value?.focus?.()\n}\n\nonMounted(() => {\n input.value!.checked = checked.value\n})\n\ndefineExpose({\n /**\n * @description manual focus to the switch component\n **/\n focus,\n /**\n * @description whether Switch is checked\n */\n checked,\n})\n</script>\n"],"names":[],"mappings":"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"}
@@ -1,10 +1,10 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Tabs from './src/tabs.mjs';
3
3
  export { tabsEmits, tabsProps } from './src/tabs.mjs';
4
- import TabPane from './src/tab-pane.mjs';
4
+ import TabPane from './src/tab-pane2.mjs';
5
5
  export { tabBarProps } from './src/tab-bar.mjs';
6
6
  export { tabNavEmits, tabNavProps } from './src/tab-nav.mjs';
7
- export { tabPaneProps } from './src/tab-pane2.mjs';
7
+ export { tabPaneProps } from './src/tab-pane.mjs';
8
8
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
9
9
 
10
10
  const ElTabs = withInstall(Tabs, {
@@ -1,78 +1,18 @@
1
- import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
2
- import { eagerComputed } from '@vueuse/core';
3
- import '../../../tokens/index.mjs';
4
1
  import '../../../utils/index.mjs';
5
- import '../../../hooks/index.mjs';
6
- import { tabPaneProps } from './tab-pane2.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
- import { throwError } from '../../../utils/error.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
11
3
 
12
- const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
13
- const COMPONENT_NAME = "ElTabPane";
14
- const __default__ = defineComponent({
15
- name: COMPONENT_NAME
4
+ const tabPaneProps = buildProps({
5
+ label: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ name: {
10
+ type: [String, Number]
11
+ },
12
+ closable: Boolean,
13
+ disabled: Boolean,
14
+ lazy: Boolean
16
15
  });
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- ...__default__,
19
- props: tabPaneProps,
20
- setup(__props) {
21
- const props = __props;
22
- const instance = getCurrentInstance();
23
- const slots = useSlots();
24
- const tabsRoot = inject(tabsRootContextKey);
25
- if (!tabsRoot)
26
- throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
27
- const ns = useNamespace("tab-pane");
28
- const index = ref();
29
- const isClosable = computed(() => props.closable || tabsRoot.props.closable);
30
- const active = eagerComputed(() => {
31
- var _a;
32
- return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
33
- });
34
- const loaded = ref(active.value);
35
- const paneName = computed(() => {
36
- var _a;
37
- return (_a = props.name) != null ? _a : index.value;
38
- });
39
- const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
40
- watch(active, (val) => {
41
- if (val)
42
- loaded.value = true;
43
- });
44
- const pane = reactive({
45
- uid: instance.uid,
46
- slots,
47
- props,
48
- paneName,
49
- active,
50
- index,
51
- isClosable
52
- });
53
- onMounted(() => {
54
- tabsRoot.registerPane(pane);
55
- });
56
- onUnmounted(() => {
57
- tabsRoot.unregisterPane(pane.uid);
58
- });
59
- return (_ctx, _cache) => {
60
- return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
61
- key: 0,
62
- id: `pane-${unref(paneName)}`,
63
- class: normalizeClass(unref(ns).b()),
64
- role: "tabpanel",
65
- "aria-hidden": !unref(active),
66
- "aria-labelledby": `tab-${unref(paneName)}`
67
- }, [
68
- renderSlot(_ctx.$slots, "default")
69
- ], 10, _hoisted_1)), [
70
- [vShow, unref(active)]
71
- ]) : createCommentVNode("v-if", true);
72
- };
73
- }
74
- });
75
- var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/tabs/src/tab-pane.vue"]]);
76
16
 
77
- export { TabPane as default };
17
+ export { tabPaneProps };
78
18
  //# sourceMappingURL=tab-pane.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { eagerComputed } from '@vueuse/core'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabPaneProps)\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable || tabsRoot.props.closable)\nconst active = eagerComputed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = eagerComputed(\n () => !props.lazy || loaded.value || active.value\n)\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n})\n\nonMounted(() => {\n tabsRoot.registerPane(pane)\n})\n\nonUnmounted(() => {\n tabsRoot.unregisterPane(pane.uid)\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;AAGA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,QAAA,GAAW,OAAO,kBAAkB,CAAA,CAAA;AAC1C,IAAA,IAAI,CAAC,QAAA;AACH,MAAA,UAAA,CAAW,gBAAgB,4CAA4C,CAAA,CAAA;AAEzE,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAA,MAAM,QAAQ,GAAY,EAAA,CAAA;AAC1B,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM,MAAM,QAAY,IAAA,QAAA,CAAS,MAAM,QAAQ,CAAA,CAAA;AAC3E,IAAM,MAAA,MAAA,GAAS,cACb,MAAM;AAER,MAAM,IAAA,EAAA,CAAA;AACN,MAAA,eAAiB,CAAS,WAAA,CAAA,KAAY,MAAA,CAAA,EAAA,QAAc,CAAK,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,CAAA;AACzD,KAAM,CAAA,CAAA;AAIN,IAAM,MAAA,MAAA,GAAS,GAAQ,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AACrB,IAAI,MAAA,QAAA,GAAA,QAAA,CAAA,MAAA;AAAK,MAAA,IAAA,EAAA,CAAA;AAAe,MACzB,OAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA;AAED,KAAA,CAAA,CAAA;AAAsB,IAAA,oBACN,GAAA,aAAA,CAAA,MAAA,CAAA,KAAA,CAAA,IAAA,IAAA,MAAA,CAAA,KAAA,IAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IACd,KAAA,CAAA,MAAA,EAAA,CAAA,GAAA,KAAA;AAAA,MACA,IAAA,GAAA;AAAA,QACA,MAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,IAAA,GAAA,QAAA,CAAA;AAAA,MACA,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,MAAA,KAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\nexport const tabPaneProps = buildProps({\n label: {\n type: String,\n default: '',\n },\n name: {\n type: [String, Number],\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,OAAO;AACf,CAAC;;;;"}
@@ -1,18 +1,78 @@
1
+ import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
2
+ import { eagerComputed } from '@vueuse/core';
3
+ import '../../../tokens/index.mjs';
1
4
  import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import { tabPaneProps } from './tab-pane.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
+ import { throwError } from '../../../utils/error.mjs';
10
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
11
 
4
- const tabPaneProps = buildProps({
5
- label: {
6
- type: String,
7
- default: ""
8
- },
9
- name: {
10
- type: [String, Number]
11
- },
12
- closable: Boolean,
13
- disabled: Boolean,
14
- lazy: Boolean
12
+ const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
13
+ const COMPONENT_NAME = "ElTabPane";
14
+ const __default__ = defineComponent({
15
+ name: COMPONENT_NAME
15
16
  });
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...__default__,
19
+ props: tabPaneProps,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const instance = getCurrentInstance();
23
+ const slots = useSlots();
24
+ const tabsRoot = inject(tabsRootContextKey);
25
+ if (!tabsRoot)
26
+ throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
27
+ const ns = useNamespace("tab-pane");
28
+ const index = ref();
29
+ const isClosable = computed(() => props.closable || tabsRoot.props.closable);
30
+ const active = eagerComputed(() => {
31
+ var _a;
32
+ return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
33
+ });
34
+ const loaded = ref(active.value);
35
+ const paneName = computed(() => {
36
+ var _a;
37
+ return (_a = props.name) != null ? _a : index.value;
38
+ });
39
+ const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
40
+ watch(active, (val) => {
41
+ if (val)
42
+ loaded.value = true;
43
+ });
44
+ const pane = reactive({
45
+ uid: instance.uid,
46
+ slots,
47
+ props,
48
+ paneName,
49
+ active,
50
+ index,
51
+ isClosable
52
+ });
53
+ onMounted(() => {
54
+ tabsRoot.registerPane(pane);
55
+ });
56
+ onUnmounted(() => {
57
+ tabsRoot.unregisterPane(pane.uid);
58
+ });
59
+ return (_ctx, _cache) => {
60
+ return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
61
+ key: 0,
62
+ id: `pane-${unref(paneName)}`,
63
+ class: normalizeClass(unref(ns).b()),
64
+ role: "tabpanel",
65
+ "aria-hidden": !unref(active),
66
+ "aria-labelledby": `tab-${unref(paneName)}`
67
+ }, [
68
+ renderSlot(_ctx.$slots, "default")
69
+ ], 10, _hoisted_1)), [
70
+ [vShow, unref(active)]
71
+ ]) : createCommentVNode("v-if", true);
72
+ };
73
+ }
74
+ });
75
+ var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/tabs/src/tab-pane.vue"]]);
16
76
 
17
- export { tabPaneProps };
77
+ export { TabPane as default };
18
78
  //# sourceMappingURL=tab-pane2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\nexport const tabPaneProps = buildProps({\n label: {\n type: String,\n default: '',\n },\n name: {\n type: [String, Number],\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,OAAO;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { eagerComputed } from '@vueuse/core'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabPaneProps)\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable || tabsRoot.props.closable)\nconst active = eagerComputed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = eagerComputed(\n () => !props.lazy || loaded.value || active.value\n)\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n})\n\nonMounted(() => {\n tabsRoot.registerPane(pane)\n})\n\nonUnmounted(() => {\n tabsRoot.unregisterPane(pane.uid)\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;AAGA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,QAAA,GAAW,OAAO,kBAAkB,CAAA,CAAA;AAC1C,IAAA,IAAI,CAAC,QAAA;AACH,MAAA,UAAA,CAAW,gBAAgB,4CAA4C,CAAA,CAAA;AAEzE,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAA,MAAM,QAAQ,GAAY,EAAA,CAAA;AAC1B,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM,MAAM,QAAY,IAAA,QAAA,CAAS,MAAM,QAAQ,CAAA,CAAA;AAC3E,IAAM,MAAA,MAAA,GAAS,cACb,MAAM;AAER,MAAM,IAAA,EAAA,CAAA;AACN,MAAA,eAAiB,CAAS,WAAA,CAAA,KAAY,MAAA,CAAA,EAAA,QAAc,CAAK,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,CAAA;AACzD,KAAM,CAAA,CAAA;AAIN,IAAM,MAAA,MAAA,GAAS,GAAQ,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AACrB,IAAI,MAAA,QAAA,GAAA,QAAA,CAAA,MAAA;AAAK,MAAA,IAAA,EAAA,CAAA;AAAe,MACzB,OAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA;AAED,KAAA,CAAA,CAAA;AAAsB,IAAA,oBACN,GAAA,aAAA,CAAA,MAAA,CAAA,KAAA,CAAA,IAAA,IAAA,MAAA,CAAA,KAAA,IAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IACd,KAAA,CAAA,MAAA,EAAA,CAAA,GAAA,KAAA;AAAA,MACA,IAAA,GAAA;AAAA,QACA,MAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,IAAA,GAAA,QAAA,CAAA;AAAA,MACA,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,MAAA,KAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Tag from './src/tag2.mjs';
3
- export { tagEmits, tagProps } from './src/tag.mjs';
2
+ import Tag from './src/tag.mjs';
3
+ export { tagEmits, tagProps } from './src/tag2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElTag = withInstall(Tag);