element-pe 2.2.99 → 2.2.101

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 (442) hide show
  1. package/dist/index.full.js +73 -44
  2. package/dist/index.full.min.js +13 -13
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +13 -13
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +73 -44
  7. package/es/components/affix/index.mjs +2 -2
  8. package/es/components/affix/src/affix.mjs +26 -119
  9. package/es/components/affix/src/affix.mjs.map +1 -1
  10. package/es/components/affix/src/affix2.mjs +119 -26
  11. package/es/components/affix/src/affix2.mjs.map +1 -1
  12. package/es/components/alert/index.mjs +2 -2
  13. package/es/components/alert/src/alert.mjs +103 -38
  14. package/es/components/alert/src/alert.mjs.map +1 -1
  15. package/es/components/alert/src/alert2.mjs +38 -103
  16. package/es/components/alert/src/alert2.mjs.map +1 -1
  17. package/es/components/autocomplete/src/autocomplete.mjs +1 -1
  18. package/es/components/backtop/index.mjs +2 -2
  19. package/es/components/backtop/src/backtop.mjs +61 -23
  20. package/es/components/backtop/src/backtop.mjs.map +1 -1
  21. package/es/components/backtop/src/backtop2.mjs +23 -61
  22. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  23. package/es/components/badge/index.mjs +2 -2
  24. package/es/components/badge/src/badge.mjs +17 -59
  25. package/es/components/badge/src/badge.mjs.map +1 -1
  26. package/es/components/badge/src/badge2.mjs +59 -17
  27. package/es/components/badge/src/badge2.mjs.map +1 -1
  28. package/es/components/breadcrumb/index.mjs +2 -2
  29. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -11
  30. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  31. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -56
  32. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  33. package/es/components/carousel/index.mjs +2 -2
  34. package/es/components/carousel/src/carousel-item.mjs +8 -69
  35. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  36. package/es/components/carousel/src/carousel-item2.mjs +69 -8
  37. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  38. package/es/components/cascader/index.mjs +2 -2
  39. package/es/components/cascader/src/cascader.mjs +647 -86
  40. package/es/components/cascader/src/cascader.mjs.map +1 -1
  41. package/es/components/cascader/src/cascader2.mjs +86 -647
  42. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  43. package/es/components/cascader-panel/src/index.mjs +1 -1
  44. package/es/components/cascader-panel/src/menu.mjs +1 -1
  45. package/es/components/cascader-panel/src/node.mjs +116 -209
  46. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  47. package/es/components/cascader-panel/src/node2.mjs +209 -116
  48. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  49. package/es/components/cascader-panel/src/store.mjs +1 -1
  50. package/es/components/collection/index.mjs +1 -1
  51. package/es/components/collection/src/collection.mjs +66 -10
  52. package/es/components/collection/src/collection.mjs.map +1 -1
  53. package/es/components/collection/src/collection2.mjs +10 -66
  54. package/es/components/collection/src/collection2.mjs.map +1 -1
  55. package/es/components/color-picker/src/color-picker.mjs +1 -1
  56. package/es/components/descriptions/src/description2.mjs +1 -1
  57. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  58. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  59. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  60. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  61. package/es/components/dialog/index.mjs +2 -2
  62. package/es/components/dialog/src/dialog.mjs +175 -72
  63. package/es/components/dialog/src/dialog.mjs.map +1 -1
  64. package/es/components/dialog/src/dialog2.mjs +72 -175
  65. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  66. package/es/components/divider/index.mjs +2 -2
  67. package/es/components/divider/src/divider.mjs +35 -17
  68. package/es/components/divider/src/divider.mjs.map +1 -1
  69. package/es/components/divider/src/divider2.mjs +17 -35
  70. package/es/components/divider/src/divider2.mjs.map +1 -1
  71. package/es/components/drawer/index.mjs +2 -2
  72. package/es/components/drawer/src/drawer.mjs +29 -187
  73. package/es/components/drawer/src/drawer.mjs.map +1 -1
  74. package/es/components/drawer/src/drawer2.mjs +187 -29
  75. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  76. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  77. package/es/components/dropdown/src/dropdown.mjs +3 -3
  78. package/es/components/form/index.mjs +2 -2
  79. package/es/components/form/src/form-item.mjs +46 -328
  80. package/es/components/form/src/form-item.mjs.map +1 -1
  81. package/es/components/form/src/form-item2.mjs +328 -46
  82. package/es/components/form/src/form-item2.mjs.map +1 -1
  83. package/es/components/icon/index.mjs +2 -2
  84. package/es/components/icon/src/icon.mjs +8 -36
  85. package/es/components/icon/src/icon.mjs.map +1 -1
  86. package/es/components/icon/src/icon2.mjs +36 -8
  87. package/es/components/icon/src/icon2.mjs.map +1 -1
  88. package/es/components/index.mjs +33 -33
  89. package/es/components/link/index.mjs +2 -2
  90. package/es/components/link/src/link.mjs +50 -21
  91. package/es/components/link/src/link.mjs.map +1 -1
  92. package/es/components/link/src/link2.mjs +21 -50
  93. package/es/components/link/src/link2.mjs.map +1 -1
  94. package/es/components/menu/index.mjs +2 -2
  95. package/es/components/menu/src/menu-item.mjs +14 -97
  96. package/es/components/menu/src/menu-item.mjs.map +1 -1
  97. package/es/components/menu/src/menu-item2.mjs +97 -14
  98. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  99. package/es/components/message/index.mjs +1 -1
  100. package/es/components/message/src/message.mjs +86 -151
  101. package/es/components/message/src/message.mjs.map +1 -1
  102. package/es/components/message/src/message2.mjs +151 -86
  103. package/es/components/message/src/message2.mjs.map +1 -1
  104. package/es/components/message/src/method.mjs +2 -2
  105. package/es/components/notification/index.mjs +1 -1
  106. package/es/components/notification/src/notification.mjs +67 -151
  107. package/es/components/notification/src/notification.mjs.map +1 -1
  108. package/es/components/notification/src/notification2.mjs +151 -67
  109. package/es/components/notification/src/notification2.mjs.map +1 -1
  110. package/es/components/notification/src/notify.mjs +2 -2
  111. package/es/components/pagination/src/components/pager.mjs +17 -218
  112. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  113. package/es/components/pagination/src/components/pager2.mjs +218 -17
  114. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  115. package/es/components/pagination/src/components/sizes.mjs +71 -23
  116. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  117. package/es/components/pagination/src/components/sizes2.mjs +23 -71
  118. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  119. package/es/components/pagination/src/components/total.mjs +7 -28
  120. package/es/components/pagination/src/components/total.mjs.map +1 -1
  121. package/es/components/pagination/src/components/total2.mjs +28 -7
  122. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  123. package/es/components/pagination/src/pagination.mjs +3 -3
  124. package/es/components/popconfirm/index.mjs +2 -2
  125. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  126. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  127. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  128. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  129. package/es/components/popover/src/popover.mjs +2 -2
  130. package/es/components/popper/index.mjs +4 -4
  131. package/es/components/popper/src/arrow.mjs +8 -39
  132. package/es/components/popper/src/arrow.mjs.map +1 -1
  133. package/es/components/popper/src/arrow2.mjs +39 -8
  134. package/es/components/popper/src/arrow2.mjs.map +1 -1
  135. package/es/components/popper/src/trigger.mjs +31 -121
  136. package/es/components/popper/src/trigger.mjs.map +1 -1
  137. package/es/components/popper/src/trigger2.mjs +121 -31
  138. package/es/components/popper/src/trigger2.mjs.map +1 -1
  139. package/es/components/progress/index.mjs +2 -2
  140. package/es/components/progress/src/progress.mjs +205 -59
  141. package/es/components/progress/src/progress.mjs.map +1 -1
  142. package/es/components/progress/src/progress2.mjs +59 -205
  143. package/es/components/progress/src/progress2.mjs.map +1 -1
  144. package/es/components/resizable-columns/index.mjs +2 -2
  145. package/es/components/resizable-columns/src/resizable-columns.mjs +264 -21
  146. package/es/components/resizable-columns/src/resizable-columns.mjs.map +1 -1
  147. package/es/components/resizable-columns/src/resizable-columns2.mjs +21 -264
  148. package/es/components/resizable-columns/src/resizable-columns2.mjs.map +1 -1
  149. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  150. package/es/components/row/index.mjs +2 -2
  151. package/es/components/row/src/row.mjs +45 -29
  152. package/es/components/row/src/row.mjs.map +1 -1
  153. package/es/components/row/src/row2.mjs +29 -45
  154. package/es/components/row/src/row2.mjs.map +1 -1
  155. package/es/components/scrollbar/src/bar.mjs +17 -42
  156. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  157. package/es/components/scrollbar/src/bar2.mjs +42 -17
  158. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  159. package/es/components/scrollbar/src/scrollbar.mjs +1 -1
  160. package/es/components/select/src/select.mjs +1 -1
  161. package/es/components/select-v2/src/defaults.mjs +1 -1
  162. package/es/components/select-v2/src/useSelect.mjs +1 -1
  163. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  164. package/es/components/steps/index.mjs +2 -2
  165. package/es/components/steps/src/steps.mjs +36 -39
  166. package/es/components/steps/src/steps.mjs.map +1 -1
  167. package/es/components/steps/src/steps2.mjs +39 -36
  168. package/es/components/steps/src/steps2.mjs.map +1 -1
  169. package/es/components/switch/index.mjs +2 -2
  170. package/es/components/switch/src/switch.mjs +268 -103
  171. package/es/components/switch/src/switch.mjs.map +1 -1
  172. package/es/components/switch/src/switch2.mjs +103 -268
  173. package/es/components/switch/src/switch2.mjs.map +1 -1
  174. package/es/components/table/src/store/watcher.mjs +42 -15
  175. package/es/components/table/src/store/watcher.mjs.map +1 -1
  176. package/es/components/table/src/table-body/defaults.d.ts +2 -1
  177. package/es/components/table/src/table-body/defaults.mjs +2 -1
  178. package/es/components/table/src/table-body/defaults.mjs.map +1 -1
  179. package/es/components/table/src/table-body/render-helper.mjs +6 -4
  180. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  181. package/es/components/text/index.mjs +2 -2
  182. package/es/components/text/src/text.mjs +38 -24
  183. package/es/components/text/src/text.mjs.map +1 -1
  184. package/es/components/text/src/text2.mjs +24 -38
  185. package/es/components/text/src/text2.mjs.map +1 -1
  186. package/es/components/timeline/index.mjs +2 -2
  187. package/es/components/timeline/src/timeline-item.mjs +72 -42
  188. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  189. package/es/components/timeline/src/timeline-item2.mjs +42 -72
  190. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  191. package/es/components/tooltip/index.mjs +4 -4
  192. package/es/components/tooltip/src/content.mjs +31 -179
  193. package/es/components/tooltip/src/content.mjs.map +1 -1
  194. package/es/components/tooltip/src/content2.mjs +179 -31
  195. package/es/components/tooltip/src/content2.mjs.map +1 -1
  196. package/es/components/tooltip/src/tooltip.mjs +31 -175
  197. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  198. package/es/components/tooltip/src/tooltip2.mjs +175 -31
  199. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  200. package/es/components/tooltip/src/trigger.mjs +16 -73
  201. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  202. package/es/components/tooltip/src/trigger2.mjs +73 -16
  203. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  204. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  205. package/es/components/upload/index.mjs +3 -3
  206. package/es/components/upload/src/upload-content.mjs +1 -1
  207. package/es/components/upload/src/upload-content2.mjs +2 -2
  208. package/es/components/upload/src/upload-dragger.mjs +11 -72
  209. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  210. package/es/components/upload/src/upload-dragger2.mjs +72 -11
  211. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  212. package/es/components/upload/src/upload-list.mjs +1 -1
  213. package/es/components/upload/src/upload.mjs +102 -116
  214. package/es/components/upload/src/upload.mjs.map +1 -1
  215. package/es/components/upload/src/upload2.mjs +116 -102
  216. package/es/components/upload/src/upload2.mjs.map +1 -1
  217. package/es/components/upload/src/use-handlers.mjs +1 -1
  218. package/es/components/visual-hidden/index.mjs +3 -3
  219. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  220. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  221. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  222. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  223. package/es/index.mjs +33 -33
  224. package/lib/components/affix/index.js +2 -2
  225. package/lib/components/affix/src/affix.js +27 -119
  226. package/lib/components/affix/src/affix.js.map +1 -1
  227. package/lib/components/affix/src/affix2.js +119 -27
  228. package/lib/components/affix/src/affix2.js.map +1 -1
  229. package/lib/components/alert/index.js +2 -2
  230. package/lib/components/alert/src/alert.js +102 -39
  231. package/lib/components/alert/src/alert.js.map +1 -1
  232. package/lib/components/alert/src/alert2.js +39 -102
  233. package/lib/components/alert/src/alert2.js.map +1 -1
  234. package/lib/components/autocomplete/src/autocomplete.js +1 -1
  235. package/lib/components/backtop/index.js +2 -2
  236. package/lib/components/backtop/src/backtop.js +61 -24
  237. package/lib/components/backtop/src/backtop.js.map +1 -1
  238. package/lib/components/backtop/src/backtop2.js +24 -61
  239. package/lib/components/backtop/src/backtop2.js.map +1 -1
  240. package/lib/components/badge/index.js +2 -2
  241. package/lib/components/badge/src/badge.js +17 -59
  242. package/lib/components/badge/src/badge.js.map +1 -1
  243. package/lib/components/badge/src/badge2.js +59 -17
  244. package/lib/components/badge/src/badge2.js.map +1 -1
  245. package/lib/components/breadcrumb/index.js +2 -2
  246. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -11
  247. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  248. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -56
  249. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  250. package/lib/components/carousel/index.js +2 -2
  251. package/lib/components/carousel/src/carousel-item.js +8 -69
  252. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  253. package/lib/components/carousel/src/carousel-item2.js +69 -8
  254. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  255. package/lib/components/cascader/index.js +2 -2
  256. package/lib/components/cascader/src/cascader.js +647 -87
  257. package/lib/components/cascader/src/cascader.js.map +1 -1
  258. package/lib/components/cascader/src/cascader2.js +87 -647
  259. package/lib/components/cascader/src/cascader2.js.map +1 -1
  260. package/lib/components/cascader-panel/src/index.js +1 -1
  261. package/lib/components/cascader-panel/src/menu.js +1 -1
  262. package/lib/components/cascader-panel/src/node.js +116 -209
  263. package/lib/components/cascader-panel/src/node.js.map +1 -1
  264. package/lib/components/cascader-panel/src/node2.js +209 -116
  265. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  266. package/lib/components/cascader-panel/src/store.js +1 -1
  267. package/lib/components/collection/index.js +1 -1
  268. package/lib/components/collection/src/collection.js +66 -9
  269. package/lib/components/collection/src/collection.js.map +1 -1
  270. package/lib/components/collection/src/collection2.js +9 -66
  271. package/lib/components/collection/src/collection2.js.map +1 -1
  272. package/lib/components/color-picker/src/color-picker.js +1 -1
  273. package/lib/components/descriptions/src/description2.js +1 -1
  274. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  275. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  276. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  277. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  278. package/lib/components/dialog/index.js +2 -2
  279. package/lib/components/dialog/src/dialog.js +175 -73
  280. package/lib/components/dialog/src/dialog.js.map +1 -1
  281. package/lib/components/dialog/src/dialog2.js +73 -175
  282. package/lib/components/dialog/src/dialog2.js.map +1 -1
  283. package/lib/components/divider/index.js +2 -2
  284. package/lib/components/divider/src/divider.js +35 -17
  285. package/lib/components/divider/src/divider.js.map +1 -1
  286. package/lib/components/divider/src/divider2.js +17 -35
  287. package/lib/components/divider/src/divider2.js.map +1 -1
  288. package/lib/components/drawer/index.js +2 -2
  289. package/lib/components/drawer/src/drawer.js +30 -187
  290. package/lib/components/drawer/src/drawer.js.map +1 -1
  291. package/lib/components/drawer/src/drawer2.js +187 -30
  292. package/lib/components/drawer/src/drawer2.js.map +1 -1
  293. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  294. package/lib/components/dropdown/src/dropdown.js +3 -3
  295. package/lib/components/form/index.js +2 -2
  296. package/lib/components/form/src/form-item.js +47 -332
  297. package/lib/components/form/src/form-item.js.map +1 -1
  298. package/lib/components/form/src/form-item2.js +332 -47
  299. package/lib/components/form/src/form-item2.js.map +1 -1
  300. package/lib/components/icon/index.js +2 -2
  301. package/lib/components/icon/src/icon.js +8 -36
  302. package/lib/components/icon/src/icon.js.map +1 -1
  303. package/lib/components/icon/src/icon2.js +36 -8
  304. package/lib/components/icon/src/icon2.js.map +1 -1
  305. package/lib/components/index.js +33 -33
  306. package/lib/components/link/index.js +2 -2
  307. package/lib/components/link/src/link.js +50 -22
  308. package/lib/components/link/src/link.js.map +1 -1
  309. package/lib/components/link/src/link2.js +22 -50
  310. package/lib/components/link/src/link2.js.map +1 -1
  311. package/lib/components/menu/index.js +2 -2
  312. package/lib/components/menu/src/menu-item.js +15 -97
  313. package/lib/components/menu/src/menu-item.js.map +1 -1
  314. package/lib/components/menu/src/menu-item2.js +97 -15
  315. package/lib/components/menu/src/menu-item2.js.map +1 -1
  316. package/lib/components/message/index.js +1 -1
  317. package/lib/components/message/src/message.js +88 -150
  318. package/lib/components/message/src/message.js.map +1 -1
  319. package/lib/components/message/src/message2.js +150 -88
  320. package/lib/components/message/src/message2.js.map +1 -1
  321. package/lib/components/message/src/method.js +2 -2
  322. package/lib/components/notification/index.js +1 -1
  323. package/lib/components/notification/src/notification.js +68 -150
  324. package/lib/components/notification/src/notification.js.map +1 -1
  325. package/lib/components/notification/src/notification2.js +150 -68
  326. package/lib/components/notification/src/notification2.js.map +1 -1
  327. package/lib/components/notification/src/notify.js +2 -2
  328. package/lib/components/pagination/src/components/pager.js +17 -218
  329. package/lib/components/pagination/src/components/pager.js.map +1 -1
  330. package/lib/components/pagination/src/components/pager2.js +218 -17
  331. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  332. package/lib/components/pagination/src/components/sizes.js +71 -23
  333. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  334. package/lib/components/pagination/src/components/sizes2.js +23 -71
  335. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  336. package/lib/components/pagination/src/components/total.js +7 -28
  337. package/lib/components/pagination/src/components/total.js.map +1 -1
  338. package/lib/components/pagination/src/components/total2.js +28 -7
  339. package/lib/components/pagination/src/components/total2.js.map +1 -1
  340. package/lib/components/pagination/src/pagination.js +3 -3
  341. package/lib/components/popconfirm/index.js +2 -2
  342. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  343. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  344. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  345. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  346. package/lib/components/popover/src/popover.js +2 -2
  347. package/lib/components/popper/index.js +4 -4
  348. package/lib/components/popper/src/arrow.js +9 -39
  349. package/lib/components/popper/src/arrow.js.map +1 -1
  350. package/lib/components/popper/src/arrow2.js +39 -9
  351. package/lib/components/popper/src/arrow2.js.map +1 -1
  352. package/lib/components/popper/src/trigger.js +32 -121
  353. package/lib/components/popper/src/trigger.js.map +1 -1
  354. package/lib/components/popper/src/trigger2.js +121 -32
  355. package/lib/components/popper/src/trigger2.js.map +1 -1
  356. package/lib/components/progress/index.js +2 -2
  357. package/lib/components/progress/src/progress.js +205 -59
  358. package/lib/components/progress/src/progress.js.map +1 -1
  359. package/lib/components/progress/src/progress2.js +59 -205
  360. package/lib/components/progress/src/progress2.js.map +1 -1
  361. package/lib/components/resizable-columns/index.js +2 -2
  362. package/lib/components/resizable-columns/src/resizable-columns.js +264 -21
  363. package/lib/components/resizable-columns/src/resizable-columns.js.map +1 -1
  364. package/lib/components/resizable-columns/src/resizable-columns2.js +21 -264
  365. package/lib/components/resizable-columns/src/resizable-columns2.js.map +1 -1
  366. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  367. package/lib/components/row/index.js +2 -2
  368. package/lib/components/row/src/row.js +45 -31
  369. package/lib/components/row/src/row.js.map +1 -1
  370. package/lib/components/row/src/row2.js +31 -45
  371. package/lib/components/row/src/row2.js.map +1 -1
  372. package/lib/components/scrollbar/src/bar.js +17 -42
  373. package/lib/components/scrollbar/src/bar.js.map +1 -1
  374. package/lib/components/scrollbar/src/bar2.js +42 -17
  375. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  376. package/lib/components/scrollbar/src/scrollbar.js +1 -1
  377. package/lib/components/select/src/select.js +1 -1
  378. package/lib/components/select-v2/src/defaults.js +1 -1
  379. package/lib/components/select-v2/src/useSelect.js +1 -1
  380. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  381. package/lib/components/steps/index.js +2 -2
  382. package/lib/components/steps/src/steps.js +37 -39
  383. package/lib/components/steps/src/steps.js.map +1 -1
  384. package/lib/components/steps/src/steps2.js +39 -37
  385. package/lib/components/steps/src/steps2.js.map +1 -1
  386. package/lib/components/switch/index.js +2 -2
  387. package/lib/components/switch/src/switch.js +267 -103
  388. package/lib/components/switch/src/switch.js.map +1 -1
  389. package/lib/components/switch/src/switch2.js +103 -267
  390. package/lib/components/switch/src/switch2.js.map +1 -1
  391. package/lib/components/table/src/store/watcher.js +42 -15
  392. package/lib/components/table/src/store/watcher.js.map +1 -1
  393. package/lib/components/table/src/table-body/defaults.d.ts +2 -1
  394. package/lib/components/table/src/table-body/defaults.js +2 -0
  395. package/lib/components/table/src/table-body/defaults.js.map +1 -1
  396. package/lib/components/table/src/table-body/render-helper.js +6 -4
  397. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  398. package/lib/components/text/index.js +2 -2
  399. package/lib/components/text/src/text.js +38 -24
  400. package/lib/components/text/src/text.js.map +1 -1
  401. package/lib/components/text/src/text2.js +24 -38
  402. package/lib/components/text/src/text2.js.map +1 -1
  403. package/lib/components/timeline/index.js +2 -2
  404. package/lib/components/timeline/src/timeline-item.js +72 -42
  405. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  406. package/lib/components/timeline/src/timeline-item2.js +42 -72
  407. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  408. package/lib/components/tooltip/index.js +4 -4
  409. package/lib/components/tooltip/src/content.js +31 -179
  410. package/lib/components/tooltip/src/content.js.map +1 -1
  411. package/lib/components/tooltip/src/content2.js +179 -31
  412. package/lib/components/tooltip/src/content2.js.map +1 -1
  413. package/lib/components/tooltip/src/tooltip.js +33 -173
  414. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  415. package/lib/components/tooltip/src/tooltip2.js +173 -33
  416. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  417. package/lib/components/tooltip/src/trigger.js +16 -73
  418. package/lib/components/tooltip/src/trigger.js.map +1 -1
  419. package/lib/components/tooltip/src/trigger2.js +73 -16
  420. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  421. package/lib/components/tooltip-v2/src/content2.js +1 -1
  422. package/lib/components/upload/index.js +3 -3
  423. package/lib/components/upload/src/upload-content.js +1 -1
  424. package/lib/components/upload/src/upload-content2.js +2 -2
  425. package/lib/components/upload/src/upload-dragger.js +12 -72
  426. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  427. package/lib/components/upload/src/upload-dragger2.js +72 -12
  428. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  429. package/lib/components/upload/src/upload-list.js +1 -1
  430. package/lib/components/upload/src/upload.js +105 -116
  431. package/lib/components/upload/src/upload.js.map +1 -1
  432. package/lib/components/upload/src/upload2.js +116 -105
  433. package/lib/components/upload/src/upload2.js.map +1 -1
  434. package/lib/components/upload/src/use-handlers.js +1 -1
  435. package/lib/components/visual-hidden/index.js +2 -2
  436. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  437. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  438. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  439. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  440. package/lib/index.js +33 -33
  441. package/package.json +1 -1
  442. package/web-types.json +1 -1
@@ -1,111 +1,276 @@
1
+ import { defineComponent, getCurrentInstance, computed, ref, nextTick, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, withModifiers, createElementVNode, withKeys, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, toDisplayString, createVNode } from 'vue';
2
+ import '../../config-provider/index.mjs';
3
+ import { isPromise } from '@vue/shared';
1
4
  import '../../../utils/index.mjs';
5
+ import { ElIcon } from '../../icon/index.mjs';
6
+ import '../../form/index.mjs';
7
+ import { Loading } from '@element-plus/icons-vue';
2
8
  import '../../../constants/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { viewModes } from '../../../constants/size.mjs';
5
- import { isValidComponentSize } from '../../../utils/vue/validator.mjs';
6
- import { iconPropType } from '../../../utils/vue/icon.mjs';
9
+ import '../../../hooks/index.mjs';
10
+ import { switchProps, switchEmits } from './switch2.mjs';
11
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
12
+ import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
13
+ import { useFormSize, useFormDisabled, useFormViewMode } from '../../form/src/hooks/use-form-common-props.mjs';
14
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
15
+ import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
16
+ import { addUnit } from '../../../utils/dom/style.mjs';
17
+ import { watch } from '../../config-provider/src/for-editor.mjs';
7
18
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
8
- import { isBoolean, isNumber } from '../../../utils/types.mjs';
9
- import { isString } from '@vue/shared';
19
+ import { debugWarn, throwError } from '../../../utils/error.mjs';
20
+ import { isBoolean } from '../../../utils/types.mjs';
10
21
 
11
- const switchProps = buildProps({
12
- modelValue: {
13
- type: [Boolean, String, Number],
14
- default: false
15
- },
16
- disabled: {
17
- type: Boolean,
18
- default: false
19
- },
20
- viewMode: {
21
- type: String,
22
- values: viewModes
23
- },
24
- loading: {
25
- type: Boolean,
26
- default: false
27
- },
28
- size: {
29
- type: String,
30
- validator: isValidComponentSize
31
- },
32
- width: {
33
- type: [String, Number],
34
- default: ""
35
- },
36
- inlinePrompt: {
37
- type: Boolean,
38
- default: false
39
- },
40
- inactiveActionIcon: {
41
- type: iconPropType
42
- },
43
- activeActionIcon: {
44
- type: iconPropType
45
- },
46
- activeIcon: {
47
- type: iconPropType
48
- },
49
- inactiveIcon: {
50
- type: iconPropType
51
- },
52
- activeText: {
53
- type: String,
54
- default: ""
55
- },
56
- inactiveText: {
57
- type: String,
58
- default: ""
59
- },
60
- activeValue: {
61
- type: [Boolean, String, Number],
62
- default: true
63
- },
64
- inactiveValue: {
65
- type: [Boolean, String, Number],
66
- default: false
67
- },
68
- activeColor: {
69
- type: String,
70
- default: ""
71
- },
72
- inactiveColor: {
73
- type: String,
74
- default: ""
75
- },
76
- borderColor: {
77
- type: String,
78
- default: ""
79
- },
80
- name: {
81
- type: String,
82
- default: ""
83
- },
84
- validateEvent: {
85
- type: Boolean,
86
- default: true
87
- },
88
- beforeChange: {
89
- type: definePropType(Function)
90
- },
91
- id: String,
92
- tabindex: {
93
- type: [String, Number]
94
- },
95
- value: {
96
- type: [Boolean, String, Number],
97
- default: false
98
- },
99
- label: {
100
- type: String,
101
- default: void 0
22
+ const _hoisted_1 = ["onClick"];
23
+ const _hoisted_2 = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
24
+ const _hoisted_3 = ["aria-hidden"];
25
+ const _hoisted_4 = ["aria-hidden"];
26
+ const _hoisted_5 = ["aria-hidden"];
27
+ const COMPONENT_NAME = "ElSwitch";
28
+ const __default__ = defineComponent({
29
+ name: COMPONENT_NAME
30
+ });
31
+ const _sfc_main = /* @__PURE__ */ defineComponent({
32
+ ...__default__,
33
+ props: switchProps,
34
+ emits: switchEmits,
35
+ setup(__props, { expose, emit }) {
36
+ const props = __props;
37
+ const vm = getCurrentInstance();
38
+ const { formItem } = useFormItem();
39
+ const switchSize = useFormSize();
40
+ const ns = useNamespace("switch");
41
+ const useBatchDeprecated = (list) => {
42
+ list.forEach((param) => {
43
+ useDeprecated({
44
+ from: param[0],
45
+ replacement: param[1],
46
+ scope: COMPONENT_NAME,
47
+ version: "2.3.0",
48
+ ref: "https://element-plus.org/en-US/component/switch.html#attributes",
49
+ type: "Attribute"
50
+ }, computed(() => {
51
+ var _a;
52
+ return !!((_a = vm.vnode.props) == null ? void 0 : _a[param[2]]);
53
+ }));
54
+ });
55
+ };
56
+ useBatchDeprecated([
57
+ ['"value"', '"model-value" or "v-model"', "value"],
58
+ ['"active-color"', "CSS var `--el-switch-on-color`", "activeColor"],
59
+ ['"inactive-color"', "CSS var `--el-switch-off-color`", "inactiveColor"],
60
+ ['"border-color"', "CSS var `--el-switch-border-color`", "borderColor"]
61
+ ]);
62
+ const { inputId } = useFormItemInputId(props, {
63
+ formItemContext: formItem
64
+ });
65
+ const switchDisabled = useFormDisabled(computed(() => props.loading));
66
+ const switchViewMode = useFormViewMode();
67
+ const isControlled = ref(props.modelValue !== false);
68
+ const input = ref();
69
+ const core = ref();
70
+ const switchKls = computed(() => [
71
+ ns.b(),
72
+ ns.m(switchSize.value),
73
+ ns.is("disabled", switchDisabled.value),
74
+ ns.is("view-mode", !!switchViewMode.value),
75
+ ns.is("checked", checked.value)
76
+ ]);
77
+ const labelLeftKls = computed(() => [
78
+ ns.e("label"),
79
+ ns.em("label", "left"),
80
+ ns.is("active", !checked.value)
81
+ ]);
82
+ const labelRightKls = computed(() => [
83
+ ns.e("label"),
84
+ ns.em("label", "right"),
85
+ ns.is("active", checked.value)
86
+ ]);
87
+ const coreStyle = computed(() => ({
88
+ width: addUnit(props.width)
89
+ }));
90
+ watch(() => props.modelValue, () => {
91
+ isControlled.value = true;
92
+ });
93
+ watch(() => props.value, () => {
94
+ isControlled.value = false;
95
+ });
96
+ const actualValue = computed(() => {
97
+ return isControlled.value ? props.modelValue : props.value;
98
+ });
99
+ const checked = computed(() => actualValue.value === props.activeValue);
100
+ if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
101
+ emit(UPDATE_MODEL_EVENT, props.inactiveValue);
102
+ emit(CHANGE_EVENT, props.inactiveValue);
103
+ emit(INPUT_EVENT, props.inactiveValue);
104
+ }
105
+ watch(checked, (val) => {
106
+ var _a;
107
+ input.value.checked = val;
108
+ if (props.validateEvent) {
109
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
110
+ }
111
+ });
112
+ const handleChange = () => {
113
+ const val = checked.value ? props.inactiveValue : props.activeValue;
114
+ emit(UPDATE_MODEL_EVENT, val);
115
+ emit(CHANGE_EVENT, val);
116
+ emit(INPUT_EVENT, val);
117
+ nextTick(() => {
118
+ input.value.checked = checked.value;
119
+ });
120
+ };
121
+ const switchValue = () => {
122
+ if (switchDisabled.value || switchViewMode.value)
123
+ return;
124
+ const { beforeChange } = props;
125
+ if (!beforeChange) {
126
+ handleChange();
127
+ return;
128
+ }
129
+ const shouldChange = beforeChange();
130
+ const isPromiseOrBool = [
131
+ isPromise(shouldChange),
132
+ isBoolean(shouldChange)
133
+ ].includes(true);
134
+ if (!isPromiseOrBool) {
135
+ throwError(COMPONENT_NAME, "beforeChange must return type `Promise<boolean>` or `boolean`");
136
+ }
137
+ if (isPromise(shouldChange)) {
138
+ shouldChange.then((result) => {
139
+ if (result) {
140
+ handleChange();
141
+ }
142
+ }).catch((e) => {
143
+ debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
144
+ });
145
+ } else if (shouldChange) {
146
+ handleChange();
147
+ }
148
+ };
149
+ const styles = computed(() => {
150
+ return ns.cssVarBlock({
151
+ ...props.activeColor ? { "on-color": props.activeColor } : null,
152
+ ...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
153
+ ...props.borderColor ? { "border-color": props.borderColor } : null
154
+ });
155
+ });
156
+ const focus = () => {
157
+ var _a, _b;
158
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
159
+ };
160
+ onMounted(() => {
161
+ input.value.checked = checked.value;
162
+ });
163
+ expose({
164
+ focus,
165
+ checked
166
+ });
167
+ return (_ctx, _cache) => {
168
+ return openBlock(), createElementBlock("div", {
169
+ class: normalizeClass(unref(switchKls)),
170
+ style: normalizeStyle(unref(styles)),
171
+ onClick: withModifiers(switchValue, ["prevent"])
172
+ }, [
173
+ createElementVNode("input", {
174
+ id: unref(inputId),
175
+ ref_key: "input",
176
+ ref: input,
177
+ class: normalizeClass(unref(ns).e("input")),
178
+ type: "checkbox",
179
+ role: "switch",
180
+ "aria-checked": unref(checked),
181
+ "aria-disabled": unref(switchDisabled),
182
+ "aria-label": _ctx.label,
183
+ name: _ctx.name,
184
+ "true-value": _ctx.activeValue,
185
+ "false-value": _ctx.inactiveValue,
186
+ disabled: unref(switchDisabled) || unref(switchViewMode),
187
+ tabindex: _ctx.tabindex,
188
+ onChange: handleChange,
189
+ onKeydown: withKeys(switchValue, ["enter"])
190
+ }, null, 42, _hoisted_2),
191
+ !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
192
+ key: 0,
193
+ class: normalizeClass(unref(labelLeftKls))
194
+ }, [
195
+ _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
196
+ default: withCtx(() => [
197
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
198
+ ]),
199
+ _: 1
200
+ })) : createCommentVNode("v-if", true),
201
+ !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
202
+ key: 1,
203
+ "aria-hidden": unref(checked)
204
+ }, toDisplayString(_ctx.inactiveText), 9, _hoisted_3)) : createCommentVNode("v-if", true)
205
+ ], 2)) : createCommentVNode("v-if", true),
206
+ createElementVNode("span", {
207
+ ref_key: "core",
208
+ ref: core,
209
+ class: normalizeClass(unref(ns).e("core")),
210
+ style: normalizeStyle(unref(coreStyle))
211
+ }, [
212
+ _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
213
+ key: 0,
214
+ class: normalizeClass(unref(ns).e("inner"))
215
+ }, [
216
+ _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
217
+ key: 0,
218
+ class: normalizeClass(unref(ns).is("icon"))
219
+ }, {
220
+ default: withCtx(() => [
221
+ (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
222
+ ]),
223
+ _: 1
224
+ }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
225
+ key: 1,
226
+ class: normalizeClass(unref(ns).is("text")),
227
+ "aria-hidden": !unref(checked)
228
+ }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4)) : createCommentVNode("v-if", true)
229
+ ], 2)) : createCommentVNode("v-if", true),
230
+ createElementVNode("div", {
231
+ class: normalizeClass(unref(ns).e("action"))
232
+ }, [
233
+ _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
234
+ key: 0,
235
+ class: normalizeClass(unref(ns).is("loading"))
236
+ }, {
237
+ default: withCtx(() => [
238
+ createVNode(unref(Loading))
239
+ ]),
240
+ _: 1
241
+ }, 8, ["class"])) : _ctx.activeActionIcon && unref(checked) ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
242
+ default: withCtx(() => [
243
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
244
+ ]),
245
+ _: 1
246
+ })) : _ctx.inactiveActionIcon && !unref(checked) ? (openBlock(), createBlock(unref(ElIcon), { key: 2 }, {
247
+ default: withCtx(() => [
248
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
249
+ ]),
250
+ _: 1
251
+ })) : createCommentVNode("v-if", true)
252
+ ], 2)
253
+ ], 6),
254
+ !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
255
+ key: 1,
256
+ class: normalizeClass(unref(labelRightKls))
257
+ }, [
258
+ _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
259
+ default: withCtx(() => [
260
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
261
+ ]),
262
+ _: 1
263
+ })) : createCommentVNode("v-if", true),
264
+ !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
265
+ key: 1,
266
+ "aria-hidden": !unref(checked)
267
+ }, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
268
+ ], 2)) : createCommentVNode("v-if", true)
269
+ ], 14, _hoisted_1);
270
+ };
102
271
  }
103
272
  });
104
- const switchEmits = {
105
- [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
106
- [CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
107
- [INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
108
- };
273
+ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\switch\\src\\switch.vue"]]);
109
274
 
110
- export { switchEmits, switchProps };
275
+ export { Switch as default };
111
276
  //# sourceMappingURL=switch.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.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, viewModes\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 /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description whether Switch is disabled\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * @description 浏览模式\n */\n viewMode: {\n type: String,\n values: viewModes\n },\n /**\n * @description whether Switch is in loading state\n */\n loading: {\n type: Boolean,\n default: false,\n },\n /**\n * @description size of Switch\n */\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n /**\n * @description width of Switch\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt: {\n type: Boolean,\n default: false,\n },\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon: {\n type: iconPropType,\n },\n /**\n * @description text displayed when in `on` state\n */\n activeText: {\n type: String,\n default: '',\n },\n /**\n * @description text displayed when in `off` state\n */\n inactiveText: {\n type: String,\n default: '',\n },\n /**\n * @description switch value when in `on` state\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n /**\n * @description switch value when in `off` state\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @deprecated background color when in `on` state ( deprecated, use CSS var `--el-switch-on-color` instead )\n */\n activeColor: {\n type: String,\n default: '',\n },\n /**\n * @deprecated background color when in `off` state ( deprecated, use CSS var `--el-switch-off-color` instead )\n */\n inactiveColor: {\n type: String,\n default: '',\n },\n /**\n * @deprecated border color of the switch ( deprecated, use CSS var `--el-switch-border-color` instead )\n */\n borderColor: {\n type: String,\n default: '',\n },\n /**\n * @description input name of Switch\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n /**\n * @description id for input\n */\n id: String,\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n },\n /**\n * @deprecated binding value ( deprecated, use `model-value / v-model` instead )\n */\n value: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description native input aria-label\n */\n label: {\n type: String,\n default: undefined,\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":";;;;;;;;;;AAeY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IA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C,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC;AAC1E;;;;"}
1
+ {"version":3,"file":"switch.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 :aria-label=\"label\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled || switchViewMode\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText)\"\n :class=\"labelLeftKls\"\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 <el-icon v-else-if=\"activeActionIcon && checked\">\n <component :is=\"activeActionIcon\" />\n </el-icon>\n <el-icon v-else-if=\"inactiveActionIcon && !checked\">\n <component :is=\"inactiveActionIcon\" />\n </el-icon>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText)\"\n :class=\"labelRightKls\"\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, useFormViewMode\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\nconst useBatchDeprecated = (list: string[][]) => {\n list.forEach((param) => {\n useDeprecated(\n {\n from: param[0],\n replacement: param[1],\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?.[param[2]])\n )\n })\n}\nuseBatchDeprecated([\n ['\"value\"', '\"model-value\" or \"v-model\"', 'value'],\n ['\"active-color\"', 'CSS var `--el-switch-on-color`', 'activeColor'],\n ['\"inactive-color\"', 'CSS var `--el-switch-off-color`', 'inactiveColor'],\n ['\"border-color\"', 'CSS var `--el-switch-border-color`', 'borderColor'],\n])\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useFormDisabled(computed(() => props.loading))\nconst switchViewMode = useFormViewMode()\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('view-mode', !!switchViewMode.value),\n ns.is('checked', checked.value),\n])\n\nconst labelLeftKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked.value),\n])\n\nconst labelRightKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', 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 || switchViewMode.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;mCAkGc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAA,MAAM,KAAK,kBAAmB,EAAA,CAAA;AAC9B,IAAM,MAAA,EAAE,aAAa,WAAY,EAAA,CAAA;AACjC,IAAA,MAAM,aAAa,WAAY,EAAA,CAAA;AAC/B,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,kBAAA,GAAqB,CAAC,IAAqB,KAAA;AAC/C,MAAK,IAAA,CAAA,OAAA,CAAQ,CAAC,KAAU,KAAA;AACtB,QACE,aAAA,CAAA;AAAA,UACE,MAAM,KAAM,CAAA,CAAA,CAAA;AAAA,UACZ,aAAa,KAAM,CAAA,CAAA,CAAA;AAAA,UACnB,KAAO,EAAA,cAAA;AAAA,UACP,OAAS,EAAA,OAAA;AAAA,UACT,GAAK,EAAA,iEAAA;AAAA,UACL,IAAM,EAAA,WAAA;AAAA,SACR,EACA,QAAS,CAAA,MAAM;AACjB,UACD,IAAA,EAAA,CAA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