element-pe 2.2.57 → 2.2.58

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 (410) hide show
  1. package/dist/index.full.js +9 -5
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +1 -1
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +9 -5
  7. package/es/components/alert/index.mjs +2 -2
  8. package/es/components/alert/src/alert.mjs +38 -103
  9. package/es/components/alert/src/alert.mjs.map +1 -1
  10. package/es/components/alert/src/alert2.mjs +103 -38
  11. package/es/components/alert/src/alert2.mjs.map +1 -1
  12. package/es/components/avatar/index.mjs +2 -2
  13. package/es/components/avatar/src/avatar.mjs +35 -76
  14. package/es/components/avatar/src/avatar.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar2.mjs +76 -35
  16. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  17. package/es/components/badge/index.mjs +2 -2
  18. package/es/components/badge/src/badge.mjs +59 -17
  19. package/es/components/badge/src/badge.mjs.map +1 -1
  20. package/es/components/badge/src/badge2.mjs +17 -59
  21. package/es/components/badge/src/badge2.mjs.map +1 -1
  22. package/es/components/breadcrumb/index.mjs +4 -4
  23. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -11
  24. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -56
  26. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  27. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  28. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  29. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  30. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  31. package/es/components/calendar/src/calendar2.mjs +1 -1
  32. package/es/components/calendar/src/date-table.mjs +87 -33
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +33 -87
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/carousel/index.mjs +2 -2
  38. package/es/components/carousel/src/carousel.mjs +56 -169
  39. package/es/components/carousel/src/carousel.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel2.mjs +169 -56
  41. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  42. package/es/components/cascader/index.mjs +2 -2
  43. package/es/components/cascader/src/cascader.mjs +622 -63
  44. package/es/components/cascader/src/cascader.mjs.map +1 -1
  45. package/es/components/cascader/src/cascader2.mjs +63 -622
  46. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  47. package/es/components/checkbox/index.mjs +2 -2
  48. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  49. package/es/components/checkbox/src/checkbox.mjs +49 -117
  50. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  51. package/es/components/checkbox/src/checkbox2.mjs +117 -49
  52. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  53. package/es/components/col/index.mjs +2 -2
  54. package/es/components/col/src/col.mjs +66 -43
  55. package/es/components/col/src/col.mjs.map +1 -1
  56. package/es/components/col/src/col2.mjs +43 -66
  57. package/es/components/col/src/col2.mjs.map +1 -1
  58. package/es/components/collection/src/collection.mjs +9 -5
  59. package/es/components/collection/src/collection.mjs.map +1 -1
  60. package/es/components/descriptions/src/description.mjs +1 -1
  61. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  62. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  63. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  64. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  65. package/es/components/dialog/index.mjs +2 -2
  66. package/es/components/dialog/src/dialog.mjs +174 -73
  67. package/es/components/dialog/src/dialog.mjs.map +1 -1
  68. package/es/components/dialog/src/dialog2.mjs +73 -174
  69. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  70. package/es/components/divider/index.mjs +2 -2
  71. package/es/components/divider/src/divider.mjs +17 -35
  72. package/es/components/divider/src/divider.mjs.map +1 -1
  73. package/es/components/divider/src/divider2.mjs +35 -17
  74. package/es/components/divider/src/divider2.mjs.map +1 -1
  75. package/es/components/drawer/index.mjs +2 -2
  76. package/es/components/drawer/src/drawer.mjs +25 -186
  77. package/es/components/drawer/src/drawer.mjs.map +1 -1
  78. package/es/components/drawer/src/drawer2.mjs +186 -25
  79. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  80. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  81. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  82. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  83. package/es/components/form/index.mjs +2 -2
  84. package/es/components/form/src/form.mjs +57 -150
  85. package/es/components/form/src/form.mjs.map +1 -1
  86. package/es/components/form/src/form2.mjs +150 -57
  87. package/es/components/form/src/form2.mjs.map +1 -1
  88. package/es/components/image-viewer/index.mjs +2 -2
  89. package/es/components/image-viewer/src/image-viewer.mjs +38 -401
  90. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  91. package/es/components/image-viewer/src/image-viewer2.mjs +401 -38
  92. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  93. package/es/components/index.mjs +31 -31
  94. package/es/components/input/index.mjs +2 -2
  95. package/es/components/input/src/input.mjs +458 -108
  96. package/es/components/input/src/input.mjs.map +1 -1
  97. package/es/components/input/src/input2.mjs +108 -458
  98. package/es/components/input/src/input2.mjs.map +1 -1
  99. package/es/components/input-number/index.mjs +2 -2
  100. package/es/components/input-number/src/input-number.mjs +58 -318
  101. package/es/components/input-number/src/input-number.mjs.map +1 -1
  102. package/es/components/input-number/src/input-number2.mjs +318 -58
  103. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  104. package/es/components/link/index.mjs +2 -2
  105. package/es/components/link/src/link.mjs +21 -50
  106. package/es/components/link/src/link.mjs.map +1 -1
  107. package/es/components/link/src/link2.mjs +50 -21
  108. package/es/components/link/src/link2.mjs.map +1 -1
  109. package/es/components/pagination/src/components/sizes.mjs +70 -22
  110. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  111. package/es/components/pagination/src/components/sizes2.mjs +22 -70
  112. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  113. package/es/components/pagination/src/pagination.mjs +1 -1
  114. package/es/components/popconfirm/index.mjs +2 -2
  115. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  116. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  117. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  118. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  119. package/es/components/popper/index.mjs +2 -2
  120. package/es/components/popper/src/arrow.mjs +39 -8
  121. package/es/components/popper/src/arrow.mjs.map +1 -1
  122. package/es/components/popper/src/arrow2.mjs +8 -39
  123. package/es/components/popper/src/arrow2.mjs.map +1 -1
  124. package/es/components/radio/index.mjs +2 -2
  125. package/es/components/radio/src/radio-button.mjs +1 -1
  126. package/es/components/radio/src/radio-group.mjs +1 -1
  127. package/es/components/radio/src/radio.mjs +30 -71
  128. package/es/components/radio/src/radio.mjs.map +1 -1
  129. package/es/components/radio/src/radio2.mjs +71 -30
  130. package/es/components/radio/src/radio2.mjs.map +1 -1
  131. package/es/components/rate/index.mjs +2 -2
  132. package/es/components/rate/src/rate.mjs +87 -257
  133. package/es/components/rate/src/rate.mjs.map +1 -1
  134. package/es/components/rate/src/rate2.mjs +257 -87
  135. package/es/components/rate/src/rate2.mjs.map +1 -1
  136. package/es/components/result/index.mjs +2 -2
  137. package/es/components/result/src/result.mjs +63 -29
  138. package/es/components/result/src/result.mjs.map +1 -1
  139. package/es/components/result/src/result2.mjs +29 -63
  140. package/es/components/result/src/result2.mjs.map +1 -1
  141. package/es/components/roving-focus-group/index.mjs +3 -3
  142. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  143. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  144. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  145. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  146. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  147. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  148. package/es/components/skeleton/index.mjs +2 -2
  149. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  150. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  151. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  152. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  153. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  154. package/es/components/slider/index.mjs +2 -2
  155. package/es/components/slider/src/button.mjs +93 -21
  156. package/es/components/slider/src/button.mjs.map +1 -1
  157. package/es/components/slider/src/button2.mjs +21 -93
  158. package/es/components/slider/src/button2.mjs.map +1 -1
  159. package/es/components/slider/src/slider.mjs +91 -233
  160. package/es/components/slider/src/slider.mjs.map +1 -1
  161. package/es/components/slider/src/slider2.mjs +233 -91
  162. package/es/components/slider/src/slider2.mjs.map +1 -1
  163. package/es/components/steps/index.mjs +2 -2
  164. package/es/components/steps/src/item.mjs +19 -193
  165. package/es/components/steps/src/item.mjs.map +1 -1
  166. package/es/components/steps/src/item2.mjs +193 -19
  167. package/es/components/steps/src/item2.mjs.map +1 -1
  168. package/es/components/switch/index.mjs +2 -2
  169. package/es/components/switch/src/switch.mjs +243 -88
  170. package/es/components/switch/src/switch.mjs.map +1 -1
  171. package/es/components/switch/src/switch2.mjs +88 -243
  172. package/es/components/switch/src/switch2.mjs.map +1 -1
  173. package/es/components/tabs/index.mjs +3 -3
  174. package/es/components/tabs/src/tab-bar.mjs +7 -75
  175. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  176. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  177. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  178. package/es/components/tabs/src/tab-nav.mjs +1 -1
  179. package/es/components/tabs/src/tab-pane.mjs +73 -14
  180. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  181. package/es/components/tabs/src/tab-pane2.mjs +14 -73
  182. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  183. package/es/components/text/index.mjs +2 -2
  184. package/es/components/text/src/text.mjs +35 -22
  185. package/es/components/text/src/text.mjs.map +1 -1
  186. package/es/components/text/src/text2.mjs +22 -35
  187. package/es/components/text/src/text2.mjs.map +1 -1
  188. package/es/components/tooltip/src/tooltip.mjs +1 -1
  189. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  190. package/es/components/tooltip-v2/index.mjs +2 -2
  191. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  192. package/es/components/tooltip-v2/src/tooltip.mjs +20 -77
  193. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  194. package/es/components/tooltip-v2/src/tooltip2.mjs +77 -20
  195. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  196. package/es/components/upload/index.mjs +1 -1
  197. package/es/components/upload/src/upload-content.mjs +33 -182
  198. package/es/components/upload/src/upload-content.mjs.map +1 -1
  199. package/es/components/upload/src/upload-content2.mjs +182 -33
  200. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  201. package/es/components/upload/src/upload2.mjs +1 -1
  202. package/es/components/visual-hidden/index.mjs +3 -3
  203. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  204. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  205. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  206. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  207. package/es/index.mjs +31 -31
  208. package/lib/components/alert/index.js +2 -2
  209. package/lib/components/alert/src/alert.js +39 -102
  210. package/lib/components/alert/src/alert.js.map +1 -1
  211. package/lib/components/alert/src/alert2.js +102 -39
  212. package/lib/components/alert/src/alert2.js.map +1 -1
  213. package/lib/components/avatar/index.js +2 -2
  214. package/lib/components/avatar/src/avatar.js +35 -75
  215. package/lib/components/avatar/src/avatar.js.map +1 -1
  216. package/lib/components/avatar/src/avatar2.js +75 -35
  217. package/lib/components/avatar/src/avatar2.js.map +1 -1
  218. package/lib/components/badge/index.js +2 -2
  219. package/lib/components/badge/src/badge.js +59 -17
  220. package/lib/components/badge/src/badge.js.map +1 -1
  221. package/lib/components/badge/src/badge2.js +17 -59
  222. package/lib/components/badge/src/badge2.js.map +1 -1
  223. package/lib/components/breadcrumb/index.js +4 -4
  224. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -11
  225. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  226. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -56
  227. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  228. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  229. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  230. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  231. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  232. package/lib/components/calendar/src/calendar2.js +1 -1
  233. package/lib/components/calendar/src/date-table.js +87 -37
  234. package/lib/components/calendar/src/date-table.js.map +1 -1
  235. package/lib/components/calendar/src/date-table2.js +37 -87
  236. package/lib/components/calendar/src/date-table2.js.map +1 -1
  237. package/lib/components/calendar/src/use-date-table.js +1 -1
  238. package/lib/components/carousel/index.js +2 -2
  239. package/lib/components/carousel/src/carousel.js +57 -169
  240. package/lib/components/carousel/src/carousel.js.map +1 -1
  241. package/lib/components/carousel/src/carousel2.js +169 -57
  242. package/lib/components/carousel/src/carousel2.js.map +1 -1
  243. package/lib/components/cascader/index.js +2 -2
  244. package/lib/components/cascader/src/cascader.js +622 -64
  245. package/lib/components/cascader/src/cascader.js.map +1 -1
  246. package/lib/components/cascader/src/cascader2.js +64 -622
  247. package/lib/components/cascader/src/cascader2.js.map +1 -1
  248. package/lib/components/checkbox/index.js +2 -2
  249. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  250. package/lib/components/checkbox/src/checkbox.js +50 -117
  251. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  252. package/lib/components/checkbox/src/checkbox2.js +117 -50
  253. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  254. package/lib/components/col/index.js +2 -2
  255. package/lib/components/col/src/col.js +66 -43
  256. package/lib/components/col/src/col.js.map +1 -1
  257. package/lib/components/col/src/col2.js +43 -66
  258. package/lib/components/col/src/col2.js.map +1 -1
  259. package/lib/components/collection/src/collection.js +9 -5
  260. package/lib/components/collection/src/collection.js.map +1 -1
  261. package/lib/components/descriptions/src/description.js +1 -1
  262. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  263. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  264. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  265. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  266. package/lib/components/dialog/index.js +2 -2
  267. package/lib/components/dialog/src/dialog.js +174 -74
  268. package/lib/components/dialog/src/dialog.js.map +1 -1
  269. package/lib/components/dialog/src/dialog2.js +74 -174
  270. package/lib/components/dialog/src/dialog2.js.map +1 -1
  271. package/lib/components/divider/index.js +2 -2
  272. package/lib/components/divider/src/divider.js +17 -35
  273. package/lib/components/divider/src/divider.js.map +1 -1
  274. package/lib/components/divider/src/divider2.js +35 -17
  275. package/lib/components/divider/src/divider2.js.map +1 -1
  276. package/lib/components/drawer/index.js +2 -2
  277. package/lib/components/drawer/src/drawer.js +26 -186
  278. package/lib/components/drawer/src/drawer.js.map +1 -1
  279. package/lib/components/drawer/src/drawer2.js +186 -26
  280. package/lib/components/drawer/src/drawer2.js.map +1 -1
  281. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  282. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  283. package/lib/components/dropdown/src/dropdown2.js +1 -1
  284. package/lib/components/form/index.js +2 -2
  285. package/lib/components/form/src/form.js +57 -149
  286. package/lib/components/form/src/form.js.map +1 -1
  287. package/lib/components/form/src/form2.js +149 -57
  288. package/lib/components/form/src/form2.js.map +1 -1
  289. package/lib/components/image-viewer/index.js +2 -2
  290. package/lib/components/image-viewer/src/image-viewer.js +39 -401
  291. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  292. package/lib/components/image-viewer/src/image-viewer2.js +401 -39
  293. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  294. package/lib/components/index.js +31 -31
  295. package/lib/components/input/index.js +2 -2
  296. package/lib/components/input/src/input.js +457 -108
  297. package/lib/components/input/src/input.js.map +1 -1
  298. package/lib/components/input/src/input2.js +108 -457
  299. package/lib/components/input/src/input2.js.map +1 -1
  300. package/lib/components/input-number/index.js +2 -2
  301. package/lib/components/input-number/src/input-number.js +57 -316
  302. package/lib/components/input-number/src/input-number.js.map +1 -1
  303. package/lib/components/input-number/src/input-number2.js +316 -57
  304. package/lib/components/input-number/src/input-number2.js.map +1 -1
  305. package/lib/components/link/index.js +2 -2
  306. package/lib/components/link/src/link.js +22 -50
  307. package/lib/components/link/src/link.js.map +1 -1
  308. package/lib/components/link/src/link2.js +50 -22
  309. package/lib/components/link/src/link2.js.map +1 -1
  310. package/lib/components/pagination/src/components/sizes.js +70 -22
  311. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  312. package/lib/components/pagination/src/components/sizes2.js +22 -70
  313. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  314. package/lib/components/pagination/src/pagination.js +1 -1
  315. package/lib/components/popconfirm/index.js +2 -2
  316. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  317. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  318. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  319. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  320. package/lib/components/popper/index.js +2 -2
  321. package/lib/components/popper/src/arrow.js +39 -9
  322. package/lib/components/popper/src/arrow.js.map +1 -1
  323. package/lib/components/popper/src/arrow2.js +9 -39
  324. package/lib/components/popper/src/arrow2.js.map +1 -1
  325. package/lib/components/radio/index.js +2 -2
  326. package/lib/components/radio/src/radio-button.js +1 -1
  327. package/lib/components/radio/src/radio-group.js +1 -1
  328. package/lib/components/radio/src/radio.js +32 -71
  329. package/lib/components/radio/src/radio.js.map +1 -1
  330. package/lib/components/radio/src/radio2.js +71 -32
  331. package/lib/components/radio/src/radio2.js.map +1 -1
  332. package/lib/components/rate/index.js +2 -2
  333. package/lib/components/rate/src/rate.js +87 -256
  334. package/lib/components/rate/src/rate.js.map +1 -1
  335. package/lib/components/rate/src/rate2.js +256 -87
  336. package/lib/components/rate/src/rate2.js.map +1 -1
  337. package/lib/components/result/index.js +2 -2
  338. package/lib/components/result/src/result.js +63 -31
  339. package/lib/components/result/src/result.js.map +1 -1
  340. package/lib/components/result/src/result2.js +31 -63
  341. package/lib/components/result/src/result2.js.map +1 -1
  342. package/lib/components/roving-focus-group/index.js +2 -2
  343. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  344. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  345. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  346. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  347. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  348. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  349. package/lib/components/skeleton/index.js +2 -2
  350. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  351. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  352. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  353. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  354. package/lib/components/skeleton/src/skeleton2.js +1 -1
  355. package/lib/components/slider/index.js +2 -2
  356. package/lib/components/slider/src/button.js +93 -22
  357. package/lib/components/slider/src/button.js.map +1 -1
  358. package/lib/components/slider/src/button2.js +22 -93
  359. package/lib/components/slider/src/button2.js.map +1 -1
  360. package/lib/components/slider/src/slider.js +92 -233
  361. package/lib/components/slider/src/slider.js.map +1 -1
  362. package/lib/components/slider/src/slider2.js +233 -92
  363. package/lib/components/slider/src/slider2.js.map +1 -1
  364. package/lib/components/steps/index.js +2 -2
  365. package/lib/components/steps/src/item.js +19 -193
  366. package/lib/components/steps/src/item.js.map +1 -1
  367. package/lib/components/steps/src/item2.js +193 -19
  368. package/lib/components/steps/src/item2.js.map +1 -1
  369. package/lib/components/switch/index.js +2 -2
  370. package/lib/components/switch/src/switch.js +242 -88
  371. package/lib/components/switch/src/switch.js.map +1 -1
  372. package/lib/components/switch/src/switch2.js +88 -242
  373. package/lib/components/switch/src/switch2.js.map +1 -1
  374. package/lib/components/tabs/index.js +3 -3
  375. package/lib/components/tabs/src/tab-bar.js +7 -75
  376. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  377. package/lib/components/tabs/src/tab-bar2.js +75 -7
  378. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  379. package/lib/components/tabs/src/tab-nav.js +1 -1
  380. package/lib/components/tabs/src/tab-pane.js +73 -14
  381. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  382. package/lib/components/tabs/src/tab-pane2.js +14 -73
  383. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  384. package/lib/components/text/index.js +2 -2
  385. package/lib/components/text/src/text.js +35 -22
  386. package/lib/components/text/src/text.js.map +1 -1
  387. package/lib/components/text/src/text2.js +22 -35
  388. package/lib/components/text/src/text2.js.map +1 -1
  389. package/lib/components/tooltip/src/tooltip.js +1 -1
  390. package/lib/components/tooltip/src/tooltip2.js +1 -1
  391. package/lib/components/tooltip-v2/index.js +2 -2
  392. package/lib/components/tooltip-v2/src/content2.js +1 -1
  393. package/lib/components/tooltip-v2/src/tooltip.js +20 -77
  394. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  395. package/lib/components/tooltip-v2/src/tooltip2.js +77 -20
  396. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  397. package/lib/components/upload/index.js +1 -1
  398. package/lib/components/upload/src/upload-content.js +31 -180
  399. package/lib/components/upload/src/upload-content.js.map +1 -1
  400. package/lib/components/upload/src/upload-content2.js +180 -31
  401. package/lib/components/upload/src/upload-content2.js.map +1 -1
  402. package/lib/components/upload/src/upload2.js +1 -1
  403. package/lib/components/visual-hidden/index.js +2 -2
  404. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  405. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  406. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  407. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  408. package/lib/index.js +31 -31
  409. package/package.json +1 -1
  410. package/web-types.json +1 -1
@@ -2,28 +2,202 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ require('../../config-provider/index.js');
7
+ require('../../../hooks/index.js');
8
+ var index$1 = require('../../icon/index.js');
9
+ var iconsVue = require('@element-plus/icons-vue');
5
10
  require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
7
- var icon = require('../../../utils/vue/icon.js');
11
+ var item = require('./item.js');
12
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
+ var index = require('../../../hooks/use-namespace/index.js');
14
+ var forEditor = require('../../config-provider/src/for-editor.js');
15
+ var types = require('../../../utils/types.js');
8
16
 
9
- const stepProps = runtime.buildProps({
10
- title: {
11
- type: String,
12
- default: ""
13
- },
14
- icon: {
15
- type: icon.iconPropType
16
- },
17
- description: {
18
- type: String,
19
- default: ""
20
- },
21
- status: {
22
- type: String,
23
- values: ["", "wait", "process", "finish", "error", "success"],
24
- default: ""
17
+ const __default__ = vue.defineComponent({
18
+ name: "ElStep"
19
+ });
20
+ const _sfc_main = vue.defineComponent({
21
+ ...__default__,
22
+ props: item.stepProps,
23
+ setup(__props) {
24
+ const props = __props;
25
+ const ns = index.useNamespace("step");
26
+ const index$2 = vue.ref(-1);
27
+ const lineStyle = vue.ref({});
28
+ const internalStatus = vue.ref("");
29
+ const parent = vue.inject("ElSteps");
30
+ const currentInstance = vue.getCurrentInstance();
31
+ vue.onMounted(() => {
32
+ forEditor.watch([
33
+ () => parent.props.active,
34
+ () => parent.props.processStatus,
35
+ () => parent.props.finishStatus
36
+ ], ([active]) => {
37
+ updateStatus(active);
38
+ }, { immediate: true });
39
+ });
40
+ vue.onBeforeUnmount(() => {
41
+ parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
42
+ });
43
+ const currentStatus = vue.computed(() => {
44
+ return props.status || internalStatus.value;
45
+ });
46
+ const prevStatus = vue.computed(() => {
47
+ const prevStep = parent.steps.value[index$2.value - 1];
48
+ return prevStep ? prevStep.currentStatus : "wait";
49
+ });
50
+ const isCenter = vue.computed(() => {
51
+ return parent.props.alignCenter;
52
+ });
53
+ const isVertical = vue.computed(() => {
54
+ return parent.props.direction === "vertical";
55
+ });
56
+ const isSimple = vue.computed(() => {
57
+ return parent.props.simple;
58
+ });
59
+ const stepsCount = vue.computed(() => {
60
+ return parent.steps.value.length;
61
+ });
62
+ const isLast = vue.computed(() => {
63
+ var _a;
64
+ return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
65
+ });
66
+ const space = vue.computed(() => {
67
+ return isSimple.value ? "" : parent.props.space;
68
+ });
69
+ const containerKls = vue.computed(() => {
70
+ return [
71
+ ns.b(),
72
+ ns.is(isSimple.value ? "simple" : parent.props.direction),
73
+ ns.is("flex", isLast.value && !space.value && !isCenter.value),
74
+ ns.is("center", isCenter.value && !isVertical.value && !isSimple.value)
75
+ ];
76
+ });
77
+ const style = vue.computed(() => {
78
+ const style2 = {
79
+ flexBasis: types.isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
80
+ };
81
+ if (isVertical.value)
82
+ return style2;
83
+ if (isLast.value) {
84
+ style2.maxWidth = `${100 / stepsCount.value}%`;
85
+ }
86
+ return style2;
87
+ });
88
+ const setIndex = (val) => {
89
+ index$2.value = val;
90
+ };
91
+ const calcProgress = (status) => {
92
+ const isWait = status === "wait";
93
+ const style2 = {
94
+ transitionDelay: `${isWait ? "-" : ""}${150 * index$2.value}ms`
95
+ };
96
+ const step = status === parent.props.processStatus || isWait ? 0 : 100;
97
+ style2.borderWidth = step && !isSimple.value ? "1px" : 0;
98
+ style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
99
+ lineStyle.value = style2;
100
+ };
101
+ const updateStatus = (activeIndex) => {
102
+ if (activeIndex > index$2.value) {
103
+ internalStatus.value = parent.props.finishStatus;
104
+ } else if (activeIndex === index$2.value && prevStatus.value !== "error") {
105
+ internalStatus.value = parent.props.processStatus;
106
+ } else {
107
+ internalStatus.value = "wait";
108
+ }
109
+ const prevChild = parent.steps.value[index$2.value - 1];
110
+ if (prevChild)
111
+ prevChild.calcProgress(internalStatus.value);
112
+ };
113
+ const stepItemState = vue.reactive({
114
+ uid: vue.computed(() => currentInstance == null ? void 0 : currentInstance.uid),
115
+ currentStatus,
116
+ setIndex,
117
+ calcProgress
118
+ });
119
+ parent.steps.value = [...parent.steps.value, stepItemState];
120
+ return (_ctx, _cache) => {
121
+ return vue.openBlock(), vue.createElementBlock("div", {
122
+ style: vue.normalizeStyle(vue.unref(style)),
123
+ class: vue.normalizeClass(vue.unref(containerKls))
124
+ }, [
125
+ vue.createCommentVNode(" icon & line "),
126
+ vue.createElementVNode("div", {
127
+ class: vue.normalizeClass([vue.unref(ns).e("head"), vue.unref(ns).is(vue.unref(currentStatus))])
128
+ }, [
129
+ !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
130
+ key: 0,
131
+ class: vue.normalizeClass(vue.unref(ns).e("line"))
132
+ }, [
133
+ vue.createElementVNode("i", {
134
+ class: vue.normalizeClass(vue.unref(ns).e("line-inner")),
135
+ style: vue.normalizeStyle(lineStyle.value)
136
+ }, null, 6)
137
+ ], 2)) : vue.createCommentVNode("v-if", true),
138
+ vue.createElementVNode("div", {
139
+ class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
140
+ }, [
141
+ vue.renderSlot(_ctx.$slots, "icon", {}, () => [
142
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
143
+ key: 0,
144
+ class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
145
+ }, {
146
+ default: vue.withCtx(() => [
147
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
148
+ ]),
149
+ _: 1
150
+ }, 8, ["class"])) : vue.unref(currentStatus) === "success" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
151
+ key: 1,
152
+ class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
153
+ }, {
154
+ default: vue.withCtx(() => [
155
+ vue.createVNode(vue.unref(iconsVue.Check))
156
+ ]),
157
+ _: 1
158
+ }, 8, ["class"])) : vue.unref(currentStatus) === "error" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
159
+ key: 2,
160
+ class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
161
+ }, {
162
+ default: vue.withCtx(() => [
163
+ vue.createVNode(vue.unref(iconsVue.Close))
164
+ ]),
165
+ _: 1
166
+ }, 8, ["class"])) : !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
167
+ key: 3,
168
+ class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
169
+ }, vue.toDisplayString(index$2.value + 1), 3)) : vue.createCommentVNode("v-if", true)
170
+ ])
171
+ ], 2)
172
+ ], 2),
173
+ vue.createCommentVNode(" title & description "),
174
+ vue.createElementVNode("div", {
175
+ class: vue.normalizeClass(vue.unref(ns).e("main"))
176
+ }, [
177
+ vue.createElementVNode("div", {
178
+ class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(ns).is(vue.unref(currentStatus))])
179
+ }, [
180
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
181
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
182
+ ])
183
+ ], 2),
184
+ vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
185
+ key: 0,
186
+ class: vue.normalizeClass(vue.unref(ns).e("arrow"))
187
+ }, null, 2)) : (vue.openBlock(), vue.createElementBlock("div", {
188
+ key: 1,
189
+ class: vue.normalizeClass([vue.unref(ns).e("description"), vue.unref(ns).is(vue.unref(currentStatus))])
190
+ }, [
191
+ vue.renderSlot(_ctx.$slots, "description", {}, () => [
192
+ vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
193
+ ])
194
+ ], 2))
195
+ ], 2)
196
+ ], 6);
197
+ };
25
198
  }
26
199
  });
200
+ var Step = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\steps\\src\\item.vue"]]);
27
201
 
28
- exports.stepProps = stepProps;
202
+ exports["default"] = Step;
29
203
  //# sourceMappingURL=item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item2.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"item2.js","sources":["../../../../../../packages/components/steps/src/item.vue"],"sourcesContent":["<template>\n <div :style=\"style\" :class=\"containerKls\">\n <!-- icon & line -->\n <div :class=\"[ns.e('head'), ns.is(currentStatus)]\">\n <div v-if=\"!isSimple\" :class=\"ns.e('line')\">\n <i :class=\"ns.e('line-inner')\" :style=\"lineStyle\" />\n </div>\n\n <div\n :class=\"[ns.e('icon'), ns.is(icon || $slots.icon ? 'icon' : 'text')]\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\" :class=\"ns.e('icon-inner')\">\n <component :is=\"icon\" />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'success'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Check />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'error'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Close />\n </el-icon>\n <div v-else-if=\"!isSimple\" :class=\"ns.e('icon-inner')\">\n {{ index + 1 }}\n </div>\n </slot>\n </div>\n </div>\n <!-- title & description -->\n <div :class=\"ns.e('main')\">\n <div :class=\"[ns.e('title'), ns.is(currentStatus)]\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div v-if=\"isSimple\" :class=\"ns.e('arrow')\" />\n <div v-else :class=\"[ns.e('description'), ns.is(currentStatus)]\">\n <slot name=\"description\">{{ description }}</slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n} from 'vue'\nimport { watch } from '../../config-provider'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { Check, Close } from '@element-plus/icons-vue'\nimport { isNumber } from '@element-plus/utils'\nimport { stepProps } from './item'\n\nimport type { CSSProperties, Ref } from 'vue'\n\nexport interface IStepsProps {\n space: number | string\n active: number\n direction: string\n alignCenter: boolean\n simple: boolean\n finishStatus: string\n processStatus: string\n}\n\nexport interface StepItemState {\n uid: number | undefined\n currentStatus: string\n setIndex: (val: number) => void\n calcProgress: (status: string) => void\n}\n\nexport interface IStepsInject {\n props: IStepsProps\n steps: Ref<StepItemState[]>\n}\n\ndefineOptions({\n name: 'ElStep',\n})\n\nconst props = defineProps(stepProps)\nconst ns = useNamespace('step')\nconst index = ref(-1)\nconst lineStyle = ref({})\nconst internalStatus = ref('')\nconst parent = inject('ElSteps') as IStepsInject\nconst currentInstance = getCurrentInstance()\n\nonMounted(() => {\n watch(\n [\n () => parent.props.active,\n () => parent.props.processStatus,\n () => parent.props.finishStatus,\n ],\n ([active]) => {\n updateStatus(active)\n },\n { immediate: true }\n )\n})\n\nonBeforeUnmount(() => {\n parent.steps.value = parent.steps.value.filter(\n (instance) => instance.uid !== currentInstance?.uid\n )\n})\n\nconst currentStatus = computed(() => {\n return props.status || internalStatus.value\n})\n\nconst prevStatus = computed(() => {\n const prevStep = parent.steps.value[index.value - 1]\n return prevStep ? prevStep.currentStatus : 'wait'\n})\n\nconst isCenter = computed(() => {\n return parent.props.alignCenter\n})\n\nconst isVertical = computed(() => {\n return parent.props.direction === 'vertical'\n})\n\nconst isSimple = computed(() => {\n return parent.props.simple\n})\n\nconst stepsCount = computed(() => {\n return parent.steps.value.length\n})\n\nconst isLast = computed(() => {\n return parent.steps.value[stepsCount.value - 1]?.uid === currentInstance?.uid\n})\n\nconst space = computed(() => {\n return isSimple.value ? '' : parent.props.space\n})\n\nconst containerKls = computed(() => {\n return [\n ns.b(),\n ns.is(isSimple.value ? 'simple' : parent.props.direction),\n ns.is('flex', isLast.value && !space.value && !isCenter.value),\n ns.is('center', isCenter.value && !isVertical.value && !isSimple.value),\n ]\n})\n\nconst style = computed(() => {\n const style: CSSProperties = {\n flexBasis: isNumber(space.value)\n ? `${space.value}px`\n : space.value\n ? space.value\n : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`,\n }\n if (isVertical.value) return style\n if (isLast.value) {\n style.maxWidth = `${100 / stepsCount.value}%`\n }\n return style\n})\n\nconst setIndex = (val: number) => {\n index.value = val\n}\n\nconst calcProgress = (status: string) => {\n const isWait = status === 'wait'\n const style: CSSProperties = {\n transitionDelay: `${isWait ? '-' : ''}${150 * index.value}ms`,\n }\n const step = status === parent.props.processStatus || isWait ? 0 : 100\n\n style.borderWidth = step && !isSimple.value ? '1px' : 0\n style[parent.props.direction === 'vertical' ? 'height' : 'width'] = `${step}%`\n lineStyle.value = style\n}\n\nconst updateStatus = (activeIndex: number) => {\n if (activeIndex > index.value) {\n internalStatus.value = parent.props.finishStatus\n } else if (activeIndex === index.value && prevStatus.value !== 'error') {\n internalStatus.value = parent.props.processStatus\n } else {\n internalStatus.value = 'wait'\n }\n const prevChild = parent.steps.value[index.value - 1]\n if (prevChild) prevChild.calcProgress(internalStatus.value)\n}\n\nconst stepItemState = reactive({\n uid: computed(() => currentInstance?.uid),\n currentStatus,\n setIndex,\n calcProgress,\n})\n\nparent.steps.value = [...parent.steps.value, stepItemState]\n</script>\n"],"names":["useNamespace","index","ref","inject","getCurrentInstance","onMounted","watch","onBeforeUnmount","computed","isNumber","reactive"],"mappings":";;;;;;;;;;;;;;;;uCAuFc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAC9B,IAAM,MAAAC,OAAA,GAAQC,QAAI,CAAE,CAAA,CAAA,CAAA;AACpB,IAAM,MAAA,SAAA,GAAYA,OAAI,CAAA,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,cAAA,GAAiBA,QAAI,EAAE,CAAA,CAAA;AAC7B,IAAM,MAAA,MAAA,GAASC,WAAO,SAAS,CAAA,CAAA;AAC/B,IAAA,MAAM,kBAAkBC,sBAAmB,EAAA,CAAA;AAE3C,IAAAC,aAAA,CAAU,MAAM;AACd,MACEC,eAAA,CAAA;AAAA,QACE,MAAM,OAAO,KAAM,CAAA,MAAA;AAAA,QACnB,MAAM,OAAO,KAAM,CAAA,aAAA;AAAA,QACnB,MAAM,OAAO,KAAM,CAAA,YAAA;AAAA,OACrB,EACA,CAAC,CAAC,MAAY,CAAA,KAAA;AACZ,QAAA,YAAA,CAAa,MAAM,CAAA,CAAA;AAAA,OAErB,EAAA,EAAE,SAAW,EAAA,IAAA,EACf,CAAA,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAO,MAAA,CAAA,KAAA,CAAM,KAAQ,GAAA,MAAA,CAAO,KAAM,CAAA,KAAA,CAAM,MACtC,CAAA,CAAC,QAAa,KAAA,QAAA,CAAS,GAAQ,MAAA,eAAA,IACjC,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,aAAA,GAAgBC,aAAS,MAAM;AACnC,MAAO,OAAA,KAAA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CAAA,KAAA,CAAAA,OAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA;AAAW,MAAU,IAAA,SAAA;AAAiC,QAC5D,SAAA,CAAA,YAAA,CAAA,cAAA,CAAA,KAAA,CAAA,CAAA;AAEA,KAAA,CAAA;AAA+B,IAAA,MACxB,aAAe,GAAAS,YAAA,CAAA;AAAoB,MACxC,GAAA,EAAAF,YAAA,CAAA,MAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,GAAA,CAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACD,YAAA;AAED,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var _switch$1 = require('./src/switch2.js');
7
- var _switch = require('./src/switch.js');
6
+ var _switch$1 = require('./src/switch.js');
7
+ var _switch = require('./src/switch2.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElSwitch = install.withInstall(_switch$1["default"]);
@@ -2,100 +2,254 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ require('../../config-provider/index.js');
7
+ var shared = require('@vue/shared');
5
8
  require('../../../utils/index.js');
9
+ var index$2 = require('../../icon/index.js');
10
+ require('../../form/index.js');
11
+ var iconsVue = require('@element-plus/icons-vue');
6
12
  require('../../../constants/index.js');
7
- var runtime = require('../../../utils/vue/props/runtime.js');
8
- var icon = require('../../../utils/vue/icon.js');
9
- var validator = require('../../../utils/vue/validator.js');
13
+ require('../../../hooks/index.js');
14
+ var _switch = require('./switch2.js');
15
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
16
+ var useFormItem = require('../../form/src/hooks/use-form-item.js');
17
+ var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
18
+ var index = require('../../../hooks/use-namespace/index.js');
19
+ var index$1 = require('../../../hooks/use-deprecated/index.js');
20
+ var style = require('../../../utils/dom/style.js');
21
+ var forEditor = require('../../config-provider/src/for-editor.js');
10
22
  var event = require('../../../constants/event.js');
23
+ var error = require('../../../utils/error.js');
11
24
  var types = require('../../../utils/types.js');
12
- var shared = require('@vue/shared');
13
25
 
14
- const switchProps = runtime.buildProps({
15
- modelValue: {
16
- type: [Boolean, String, Number],
17
- default: false
18
- },
19
- value: {
20
- type: [Boolean, String, Number],
21
- default: false
22
- },
23
- disabled: {
24
- type: Boolean,
25
- default: false
26
- },
27
- width: {
28
- type: [String, Number],
29
- default: ""
30
- },
31
- inlinePrompt: {
32
- type: Boolean,
33
- default: false
34
- },
35
- activeIcon: {
36
- type: icon.iconPropType
37
- },
38
- inactiveIcon: {
39
- type: icon.iconPropType
40
- },
41
- activeText: {
42
- type: String,
43
- default: ""
44
- },
45
- inactiveText: {
46
- type: String,
47
- default: ""
48
- },
49
- activeColor: {
50
- type: String,
51
- default: ""
52
- },
53
- inactiveColor: {
54
- type: String,
55
- default: ""
56
- },
57
- borderColor: {
58
- type: String,
59
- default: ""
60
- },
61
- activeValue: {
62
- type: [Boolean, String, Number],
63
- default: true
64
- },
65
- inactiveValue: {
66
- type: [Boolean, String, Number],
67
- default: false
68
- },
69
- name: {
70
- type: String,
71
- default: ""
72
- },
73
- validateEvent: {
74
- type: Boolean,
75
- default: true
76
- },
77
- id: String,
78
- loading: {
79
- type: Boolean,
80
- default: false
81
- },
82
- beforeChange: {
83
- type: runtime.definePropType(Function)
84
- },
85
- size: {
86
- type: String,
87
- validator: validator.isValidComponentSize
88
- },
89
- tabindex: {
90
- type: [String, Number]
26
+ const _hoisted_1 = ["onClick"];
27
+ const _hoisted_2 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
28
+ const _hoisted_3 = ["aria-hidden"];
29
+ const _hoisted_4 = ["aria-hidden"];
30
+ const _hoisted_5 = ["aria-hidden"];
31
+ const COMPONENT_NAME = "ElSwitch";
32
+ const __default__ = vue.defineComponent({
33
+ name: COMPONENT_NAME
34
+ });
35
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
+ ...__default__,
37
+ props: _switch.switchProps,
38
+ emits: _switch.switchEmits,
39
+ setup(__props, { expose, emit }) {
40
+ const props = __props;
41
+ const vm = vue.getCurrentInstance();
42
+ const { formItem } = useFormItem.useFormItem();
43
+ const switchSize = useFormCommonProps.useFormSize();
44
+ const ns = index.useNamespace("switch");
45
+ index$1.useDeprecated({
46
+ from: '"value"',
47
+ replacement: '"model-value" or "v-model"',
48
+ scope: COMPONENT_NAME,
49
+ version: "2.3.0",
50
+ ref: "https://element-plus.org/en-US/component/switch.html#attributes",
51
+ type: "Attribute"
52
+ }, vue.computed(() => {
53
+ var _a;
54
+ return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
55
+ }));
56
+ const { inputId } = useFormItem.useFormItemInputId(props, {
57
+ formItemContext: formItem
58
+ });
59
+ const switchDisabled = useFormCommonProps.useFormDisabled(vue.computed(() => props.loading));
60
+ const isControlled = vue.ref(props.modelValue !== false);
61
+ const input = vue.ref();
62
+ const core = vue.ref();
63
+ const switchKls = vue.computed(() => [
64
+ ns.b(),
65
+ ns.m(switchSize.value),
66
+ ns.is("disabled", switchDisabled.value),
67
+ ns.is("checked", checked.value)
68
+ ]);
69
+ const coreStyle = vue.computed(() => ({
70
+ width: style.addUnit(props.width)
71
+ }));
72
+ forEditor.watch(() => props.modelValue, () => {
73
+ isControlled.value = true;
74
+ });
75
+ forEditor.watch(() => props.value, () => {
76
+ isControlled.value = false;
77
+ });
78
+ const actualValue = vue.computed(() => {
79
+ return isControlled.value ? props.modelValue : props.value;
80
+ });
81
+ const checked = vue.computed(() => actualValue.value === props.activeValue);
82
+ if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
83
+ emit(event.UPDATE_MODEL_EVENT, props.inactiveValue);
84
+ emit(event.CHANGE_EVENT, props.inactiveValue);
85
+ emit(event.INPUT_EVENT, props.inactiveValue);
86
+ }
87
+ forEditor.watch(checked, (val) => {
88
+ var _a;
89
+ input.value.checked = val;
90
+ if (props.validateEvent) {
91
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
92
+ }
93
+ });
94
+ const handleChange = () => {
95
+ const val = checked.value ? props.inactiveValue : props.activeValue;
96
+ emit(event.UPDATE_MODEL_EVENT, val);
97
+ emit(event.CHANGE_EVENT, val);
98
+ emit(event.INPUT_EVENT, val);
99
+ vue.nextTick(() => {
100
+ input.value.checked = checked.value;
101
+ });
102
+ };
103
+ const switchValue = () => {
104
+ if (switchDisabled.value)
105
+ return;
106
+ const { beforeChange } = props;
107
+ if (!beforeChange) {
108
+ handleChange();
109
+ return;
110
+ }
111
+ const shouldChange = beforeChange();
112
+ const isPromiseOrBool = [
113
+ shared.isPromise(shouldChange),
114
+ types.isBoolean(shouldChange)
115
+ ].includes(true);
116
+ if (!isPromiseOrBool) {
117
+ error.throwError(COMPONENT_NAME, "beforeChange must return type `Promise<boolean>` or `boolean`");
118
+ }
119
+ if (shared.isPromise(shouldChange)) {
120
+ shouldChange.then((result) => {
121
+ if (result) {
122
+ handleChange();
123
+ }
124
+ }).catch((e) => {
125
+ error.debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
126
+ });
127
+ } else if (shouldChange) {
128
+ handleChange();
129
+ }
130
+ };
131
+ const styles = vue.computed(() => {
132
+ return ns.cssVarBlock({
133
+ ...props.activeColor ? { "on-color": props.activeColor } : null,
134
+ ...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
135
+ ...props.borderColor ? { "border-color": props.borderColor } : null
136
+ });
137
+ });
138
+ const focus = () => {
139
+ var _a, _b;
140
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
141
+ };
142
+ vue.onMounted(() => {
143
+ input.value.checked = checked.value;
144
+ });
145
+ expose({
146
+ focus,
147
+ checked
148
+ });
149
+ return (_ctx, _cache) => {
150
+ return vue.openBlock(), vue.createElementBlock("div", {
151
+ class: vue.normalizeClass(vue.unref(switchKls)),
152
+ style: vue.normalizeStyle(vue.unref(styles)),
153
+ onClick: vue.withModifiers(switchValue, ["prevent"])
154
+ }, [
155
+ vue.createElementVNode("input", {
156
+ id: vue.unref(inputId),
157
+ ref_key: "input",
158
+ ref: input,
159
+ class: vue.normalizeClass(vue.unref(ns).e("input")),
160
+ type: "checkbox",
161
+ role: "switch",
162
+ "aria-checked": vue.unref(checked),
163
+ "aria-disabled": vue.unref(switchDisabled),
164
+ name: _ctx.name,
165
+ "true-value": _ctx.activeValue,
166
+ "false-value": _ctx.inactiveValue,
167
+ disabled: vue.unref(switchDisabled),
168
+ tabindex: _ctx.tabindex,
169
+ onChange: handleChange,
170
+ onKeydown: vue.withKeys(switchValue, ["enter"])
171
+ }, null, 42, _hoisted_2),
172
+ !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (vue.openBlock(), vue.createElementBlock("span", {
173
+ key: 0,
174
+ class: vue.normalizeClass([
175
+ vue.unref(ns).e("label"),
176
+ vue.unref(ns).em("label", "left"),
177
+ vue.unref(ns).is("active", !vue.unref(checked))
178
+ ])
179
+ }, [
180
+ _ctx.inactiveIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
181
+ default: vue.withCtx(() => [
182
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.inactiveIcon)))
183
+ ]),
184
+ _: 1
185
+ })) : vue.createCommentVNode("v-if", true),
186
+ !_ctx.inactiveIcon && _ctx.inactiveText ? (vue.openBlock(), vue.createElementBlock("span", {
187
+ key: 1,
188
+ "aria-hidden": vue.unref(checked)
189
+ }, vue.toDisplayString(_ctx.inactiveText), 9, _hoisted_3)) : vue.createCommentVNode("v-if", true)
190
+ ], 2)) : vue.createCommentVNode("v-if", true),
191
+ vue.createElementVNode("span", {
192
+ ref_key: "core",
193
+ ref: core,
194
+ class: vue.normalizeClass(vue.unref(ns).e("core")),
195
+ style: vue.normalizeStyle(vue.unref(coreStyle))
196
+ }, [
197
+ _ctx.inlinePrompt ? (vue.openBlock(), vue.createElementBlock("div", {
198
+ key: 0,
199
+ class: vue.normalizeClass(vue.unref(ns).e("inner"))
200
+ }, [
201
+ _ctx.activeIcon || _ctx.inactiveIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
202
+ key: 0,
203
+ class: vue.normalizeClass(vue.unref(ns).is("icon"))
204
+ }, {
205
+ default: vue.withCtx(() => [
206
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
207
+ ]),
208
+ _: 1
209
+ }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (vue.openBlock(), vue.createElementBlock("span", {
210
+ key: 1,
211
+ class: vue.normalizeClass(vue.unref(ns).is("text")),
212
+ "aria-hidden": !vue.unref(checked)
213
+ }, vue.toDisplayString(vue.unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4)) : vue.createCommentVNode("v-if", true)
214
+ ], 2)) : vue.createCommentVNode("v-if", true),
215
+ vue.createElementVNode("div", {
216
+ class: vue.normalizeClass(vue.unref(ns).e("action"))
217
+ }, [
218
+ _ctx.loading ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
219
+ key: 0,
220
+ class: vue.normalizeClass(vue.unref(ns).is("loading"))
221
+ }, {
222
+ default: vue.withCtx(() => [
223
+ vue.createVNode(vue.unref(iconsVue.Loading))
224
+ ]),
225
+ _: 1
226
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
227
+ ], 2)
228
+ ], 6),
229
+ !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (vue.openBlock(), vue.createElementBlock("span", {
230
+ key: 1,
231
+ class: vue.normalizeClass([
232
+ vue.unref(ns).e("label"),
233
+ vue.unref(ns).em("label", "right"),
234
+ vue.unref(ns).is("active", vue.unref(checked))
235
+ ])
236
+ }, [
237
+ _ctx.activeIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
238
+ default: vue.withCtx(() => [
239
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.activeIcon)))
240
+ ]),
241
+ _: 1
242
+ })) : vue.createCommentVNode("v-if", true),
243
+ !_ctx.activeIcon && _ctx.activeText ? (vue.openBlock(), vue.createElementBlock("span", {
244
+ key: 1,
245
+ "aria-hidden": !vue.unref(checked)
246
+ }, vue.toDisplayString(_ctx.activeText), 9, _hoisted_5)) : vue.createCommentVNode("v-if", true)
247
+ ], 2)) : vue.createCommentVNode("v-if", true)
248
+ ], 14, _hoisted_1);
249
+ };
91
250
  }
92
251
  });
93
- const switchEmits = {
94
- [event.UPDATE_MODEL_EVENT]: (val) => types.isBoolean(val) || shared.isString(val) || types.isNumber(val),
95
- [event.CHANGE_EVENT]: (val) => types.isBoolean(val) || shared.isString(val) || types.isNumber(val),
96
- [event.INPUT_EVENT]: (val) => types.isBoolean(val) || shared.isString(val) || types.isNumber(val)
97
- };
252
+ var Switch = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\switch\\src\\switch.vue"]]);
98
253
 
99
- exports.switchEmits = switchEmits;
100
- exports.switchProps = switchProps;
254
+ exports["default"] = Switch;
101
255
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","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":["buildProps","iconPropType","definePropType","isValidComponentSize","UPDATE_MODEL_EVENT","isBoolean","isString","isNumber","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;;;;AAcY,MAAC,WAA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,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AAC1E;;;;;"}
1
+ {"version":3,"file":"switch.js","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\">\n <component :is=\"inactiveIcon\" />\n </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')\">\n <loading />\n </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\">\n <component :is=\"activeIcon\" />\n </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} from 'vue'\nimport { watch } from '../../config-provider'\nimport { isPromise } from '@vue/shared'\nimport { addUnit, debugWarn, isBoolean, throwError } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useDeprecated, useNamespace } 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 = useFormSize()\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 = useFormDisabled(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":["getCurrentInstance","useFormItem","useFormSize","useNamespace","useDeprecated","computed","useFormDisabled","ref","addUnit","watch","UPDATE_MODEL_EVENT","CHANGE_EVENT","INPUT_EVENT","debugWarn","nextTick","isPromise","isBoolean","throwError","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAmGc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAA,MAAM,KAAKA,sBAAmB,EAAA,CAAA;AAC9B,IAAM,MAAA,EAAE,aAAaC,uBAAY,EAAA,CAAA;AACjC,IAAA,MAAM,aAAaC,8BAAY,EAAA,CAAA;AAC/B,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAEhC,IACEC,qBAAA,CAAA;AAAA,MACE,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,4BAAA;AAAA,MACb,KAAO,EAAA,cAAA;AAAA,MACP,OAAS,EAAA,OAAA;AAAA,MACT,GAAK,EAAA,iEAAA;AAAA,MACL,IAAM,EAAA,WAAA;AAAA,KACR,EACAC,aAAS,MAAM;AAGjB,MAAM,IAAA,EAAE,CAAY;AAA0B,MAC5C,OAAiB,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,KAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,CAAA,CAAA;AAAA,KAClB,CAAA,CAAA,CAAA;AAED,IAAA,MAAM,4CAAiC,CAAA,KAAA,EAAA;AACvC,MAAA,eAAqB,EAAA,QAAU;AAC/B,KAAA,CAAA,CAAA;AACA,IAAA,MAAM,cAA4B,GAAAC,kCAAA,CAAAD,YAAA,CAAA,MAAA,KAAA,CAAA,OAAA,CAAA,CAAA,CAAA;AAElC,IAAM,MAAA,YAAY,gBAAe,CAAA,UAAA,KAAA,KAAA,CAAA,CAAA;AAAA,IAAA,MAC1B,KAAA,GAAAE,OAAA,EAAA,CAAA;AAAA,IACL,MAAK,IAAA,GAA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