beyond-webui 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/dist/index.full.js +17 -8
  2. package/dist/index.full.min.js +11 -11
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +8 -8
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +17 -8
  7. package/es/components/autocomplete/index.d.ts +23 -49
  8. package/es/components/autocomplete/src/autocomplete.vue.d.ts +23 -49
  9. package/es/components/avatar/index.mjs +2 -2
  10. package/es/components/avatar/src/avatar.mjs +32 -67
  11. package/es/components/avatar/src/avatar.mjs.map +1 -1
  12. package/es/components/avatar/src/avatar2.mjs +67 -32
  13. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  14. package/es/components/backtop/index.mjs +2 -2
  15. package/es/components/backtop/src/backtop.mjs +54 -21
  16. package/es/components/backtop/src/backtop.mjs.map +1 -1
  17. package/es/components/backtop/src/backtop2.mjs +21 -54
  18. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  19. package/es/components/badge/index.mjs +2 -2
  20. package/es/components/badge/src/badge.mjs +17 -55
  21. package/es/components/badge/src/badge.mjs.map +1 -1
  22. package/es/components/badge/src/badge2.mjs +55 -17
  23. package/es/components/badge/src/badge2.mjs.map +1 -1
  24. package/es/components/breadcrumb/index.mjs +2 -2
  25. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
  26. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  27. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
  28. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  29. package/es/components/button/index.mjs +1 -1
  30. package/es/components/button/src/button-group.mjs +6 -30
  31. package/es/components/button/src/button-group.mjs.map +1 -1
  32. package/es/components/button/src/button-group2.mjs +30 -6
  33. package/es/components/button/src/button-group2.mjs.map +1 -1
  34. package/es/components/carousel/index.mjs +4 -4
  35. package/es/components/carousel/src/carousel-item.mjs +63 -8
  36. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  37. package/es/components/carousel/src/carousel-item2.mjs +8 -63
  38. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  39. package/es/components/carousel/src/carousel.mjs +56 -159
  40. package/es/components/carousel/src/carousel.mjs.map +1 -1
  41. package/es/components/carousel/src/carousel2.mjs +159 -56
  42. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  43. package/es/components/cascader/index.d.ts +46 -98
  44. package/es/components/cascader/src/cascader.mjs +1 -1
  45. package/es/components/cascader/src/cascader.vue.d.ts +23 -49
  46. package/es/components/check-tag/index.mjs +2 -2
  47. package/es/components/check-tag/src/check-tag.mjs +12 -30
  48. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  49. package/es/components/check-tag/src/check-tag2.mjs +30 -12
  50. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  51. package/es/components/color-picker/index.d.ts +8 -18
  52. package/es/components/color-picker/index.mjs +2 -2
  53. package/es/components/color-picker/src/color-picker.mjs +321 -38
  54. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  55. package/es/components/color-picker/src/color-picker.vue.d.ts +8 -18
  56. package/es/components/color-picker/src/color-picker2.mjs +38 -321
  57. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  58. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  59. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +8 -18
  60. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +8 -18
  61. package/es/components/date-picker/src/panel-utils.d.ts +16 -36
  62. package/es/components/descriptions/src/description.mjs +1 -1
  63. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  64. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  65. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  66. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  67. package/es/components/divider/index.mjs +2 -2
  68. package/es/components/divider/src/divider.mjs +17 -35
  69. package/es/components/divider/src/divider.mjs.map +1 -1
  70. package/es/components/divider/src/divider2.mjs +35 -17
  71. package/es/components/divider/src/divider2.mjs.map +1 -1
  72. package/es/components/drawer/index.mjs +2 -2
  73. package/es/components/drawer/src/drawer.mjs +176 -22
  74. package/es/components/drawer/src/drawer.mjs.map +1 -1
  75. package/es/components/drawer/src/drawer2.mjs +22 -176
  76. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  77. package/es/components/dropdown/index.mjs +2 -2
  78. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  79. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  80. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  81. package/es/components/dropdown/src/dropdown.mjs +307 -97
  82. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  83. package/es/components/dropdown/src/dropdown2.mjs +97 -307
  84. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  85. package/es/components/form/index.mjs +4 -4
  86. package/es/components/form/src/form-item.mjs +43 -316
  87. package/es/components/form/src/form-item.mjs.map +1 -1
  88. package/es/components/form/src/form-item2.mjs +316 -43
  89. package/es/components/form/src/form-item2.mjs.map +1 -1
  90. package/es/components/form/src/form.mjs +55 -149
  91. package/es/components/form/src/form.mjs.map +1 -1
  92. package/es/components/form/src/form2.mjs +149 -55
  93. package/es/components/form/src/form2.mjs.map +1 -1
  94. package/es/components/image/index.mjs +2 -2
  95. package/es/components/image/src/image.mjs +62 -220
  96. package/es/components/image/src/image.mjs.map +1 -1
  97. package/es/components/image/src/image2.mjs +220 -62
  98. package/es/components/image/src/image2.mjs.map +1 -1
  99. package/es/components/image-viewer/index.mjs +2 -2
  100. package/es/components/image-viewer/src/image-viewer.mjs +39 -396
  101. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  102. package/es/components/image-viewer/src/image-viewer2.mjs +396 -39
  103. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  104. package/es/components/index.mjs +40 -40
  105. package/es/components/input/index.d.ts +8 -18
  106. package/es/components/input/index.mjs +2 -2
  107. package/es/components/input/src/input.d.ts +2 -6
  108. package/es/components/input/src/input.mjs +508 -126
  109. package/es/components/input/src/input.mjs.map +1 -1
  110. package/es/components/input/src/input.vue.d.ts +8 -18
  111. package/es/components/input/src/input2.mjs +131 -505
  112. package/es/components/input/src/input2.mjs.map +1 -1
  113. package/es/components/input-number/index.d.ts +23 -49
  114. package/es/components/input-number/index.mjs +2 -2
  115. package/es/components/input-number/src/input-number.mjs +57 -311
  116. package/es/components/input-number/src/input-number.mjs.map +1 -1
  117. package/es/components/input-number/src/input-number.vue.d.ts +23 -49
  118. package/es/components/input-number/src/input-number2.mjs +311 -57
  119. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  120. package/es/components/notification/index.mjs +1 -1
  121. package/es/components/notification/src/notification.mjs +69 -147
  122. package/es/components/notification/src/notification.mjs.map +1 -1
  123. package/es/components/notification/src/notification2.mjs +147 -69
  124. package/es/components/notification/src/notification2.mjs.map +1 -1
  125. package/es/components/notification/src/notify.mjs +2 -2
  126. package/es/components/pagination/src/components/jumper.mjs +60 -9
  127. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  128. package/es/components/pagination/src/components/jumper.vue.d.ts +8 -18
  129. package/es/components/pagination/src/components/jumper2.mjs +9 -60
  130. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  131. package/es/components/pagination/src/components/next.mjs +19 -38
  132. package/es/components/pagination/src/components/next.mjs.map +1 -1
  133. package/es/components/pagination/src/components/next2.mjs +38 -19
  134. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  135. package/es/components/pagination/src/components/pager.mjs +214 -17
  136. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  137. package/es/components/pagination/src/components/pager2.mjs +17 -214
  138. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  139. package/es/components/pagination/src/components/sizes.mjs +68 -22
  140. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  141. package/es/components/pagination/src/components/sizes2.mjs +22 -68
  142. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  143. package/es/components/pagination/src/components/total.mjs +28 -7
  144. package/es/components/pagination/src/components/total.mjs.map +1 -1
  145. package/es/components/pagination/src/components/total2.mjs +7 -28
  146. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  147. package/es/components/pagination/src/pagination.mjs +5 -5
  148. package/es/components/popconfirm/index.mjs +2 -2
  149. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  150. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  151. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  152. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  153. package/es/components/popover/index.mjs +2 -2
  154. package/es/components/popover/src/popover.mjs +111 -66
  155. package/es/components/popover/src/popover.mjs.map +1 -1
  156. package/es/components/popover/src/popover2.mjs +66 -111
  157. package/es/components/popover/src/popover2.mjs.map +1 -1
  158. package/es/components/popper/index.mjs +8 -8
  159. package/es/components/popper/src/arrow.mjs +8 -37
  160. package/es/components/popper/src/arrow.mjs.map +1 -1
  161. package/es/components/popper/src/arrow2.mjs +37 -8
  162. package/es/components/popper/src/arrow2.mjs.map +1 -1
  163. package/es/components/popper/src/content.mjs +94 -137
  164. package/es/components/popper/src/content.mjs.map +1 -1
  165. package/es/components/popper/src/content2.mjs +137 -94
  166. package/es/components/popper/src/content2.mjs.map +1 -1
  167. package/es/components/popper/src/popper.mjs +25 -32
  168. package/es/components/popper/src/popper.mjs.map +1 -1
  169. package/es/components/popper/src/popper2.mjs +32 -25
  170. package/es/components/popper/src/popper2.mjs.map +1 -1
  171. package/es/components/popper/src/trigger.mjs +119 -31
  172. package/es/components/popper/src/trigger.mjs.map +1 -1
  173. package/es/components/popper/src/trigger2.mjs +31 -119
  174. package/es/components/popper/src/trigger2.mjs.map +1 -1
  175. package/es/components/progress/index.mjs +2 -2
  176. package/es/components/progress/src/progress.mjs +57 -202
  177. package/es/components/progress/src/progress.mjs.map +1 -1
  178. package/es/components/progress/src/progress2.mjs +202 -57
  179. package/es/components/progress/src/progress2.mjs.map +1 -1
  180. package/es/components/rate/index.mjs +2 -2
  181. package/es/components/rate/src/rate.mjs +87 -255
  182. package/es/components/rate/src/rate.mjs.map +1 -1
  183. package/es/components/rate/src/rate2.mjs +255 -87
  184. package/es/components/rate/src/rate2.mjs.map +1 -1
  185. package/es/components/row/index.mjs +2 -2
  186. package/es/components/row/src/row.mjs +30 -45
  187. package/es/components/row/src/row.mjs.map +1 -1
  188. package/es/components/row/src/row2.mjs +45 -30
  189. package/es/components/row/src/row2.mjs.map +1 -1
  190. package/es/components/scrollbar/index.mjs +2 -2
  191. package/es/components/scrollbar/src/bar.mjs +17 -42
  192. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  193. package/es/components/scrollbar/src/bar2.mjs +42 -17
  194. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  195. package/es/components/scrollbar/src/scrollbar.mjs +47 -174
  196. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  197. package/es/components/scrollbar/src/scrollbar2.mjs +174 -47
  198. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  199. package/es/components/select/src/select.mjs +5 -4
  200. package/es/components/select/src/select.mjs.map +1 -1
  201. package/es/components/select/src/useSelect.mjs.map +1 -1
  202. package/es/components/skeleton/index.mjs +2 -2
  203. package/es/components/skeleton/src/skeleton.mjs +22 -49
  204. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  205. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  206. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  207. package/es/components/slider/index.d.ts +23 -49
  208. package/es/components/slider/src/button.mjs +21 -93
  209. package/es/components/slider/src/button.mjs.map +1 -1
  210. package/es/components/slider/src/button2.mjs +93 -21
  211. package/es/components/slider/src/button2.mjs.map +1 -1
  212. package/es/components/slider/src/slider.mjs +1 -1
  213. package/es/components/slider/src/slider.vue.d.ts +23 -49
  214. package/es/components/steps/index.mjs +2 -2
  215. package/es/components/steps/src/steps.mjs +34 -36
  216. package/es/components/steps/src/steps.mjs.map +1 -1
  217. package/es/components/steps/src/steps2.mjs +36 -34
  218. package/es/components/steps/src/steps2.mjs.map +1 -1
  219. package/es/components/switch/index.mjs +2 -2
  220. package/es/components/switch/src/switch.mjs +88 -241
  221. package/es/components/switch/src/switch.mjs.map +1 -1
  222. package/es/components/switch/src/switch2.mjs +241 -88
  223. package/es/components/switch/src/switch2.mjs.map +1 -1
  224. package/es/components/tabs/index.mjs +2 -2
  225. package/es/components/tabs/src/tab-pane.mjs +13 -72
  226. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  227. package/es/components/tabs/src/tab-pane2.mjs +72 -13
  228. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  229. package/es/components/tag/index.mjs +2 -2
  230. package/es/components/tag/src/tag.mjs +94 -33
  231. package/es/components/tag/src/tag.mjs.map +1 -1
  232. package/es/components/tag/src/tag2.mjs +33 -94
  233. package/es/components/tag/src/tag2.mjs.map +1 -1
  234. package/es/components/time-picker/src/common/picker.vue.d.ts +8 -18
  235. package/es/components/time-select/index.mjs +1 -1
  236. package/es/components/time-select/src/time-select.mjs +48 -118
  237. package/es/components/time-select/src/time-select.mjs.map +1 -1
  238. package/es/components/time-select/src/time-select2.mjs +118 -48
  239. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  240. package/es/components/tooltip/index.mjs +1 -1
  241. package/es/components/tooltip/src/content.mjs +1 -1
  242. package/es/components/tooltip/src/content2.mjs +1 -1
  243. package/es/components/tooltip/src/tooltip.mjs +3 -3
  244. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  245. package/es/components/tooltip/src/trigger.mjs +16 -73
  246. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  247. package/es/components/tooltip/src/trigger2.mjs +73 -16
  248. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  249. package/es/components/tooltip-v2/index.mjs +6 -6
  250. package/es/components/tooltip-v2/src/arrow.mjs +37 -22
  251. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  252. package/es/components/tooltip-v2/src/arrow2.mjs +22 -37
  253. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  254. package/es/components/tooltip-v2/src/content.mjs +112 -50
  255. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  256. package/es/components/tooltip-v2/src/content2.mjs +50 -112
  257. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  258. package/es/components/tooltip-v2/src/root.mjs +17 -80
  259. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  260. package/es/components/tooltip-v2/src/root2.mjs +80 -17
  261. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  262. package/es/components/tooltip-v2/src/tooltip.mjs +75 -22
  263. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  264. package/es/components/tooltip-v2/src/tooltip2.mjs +22 -75
  265. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  266. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  267. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  268. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  269. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  270. package/es/components/transfer/index.d.ts +40 -90
  271. package/es/components/transfer/index.mjs +2 -2
  272. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  273. package/es/components/transfer/src/transfer-panel.mjs +1 -1
  274. package/es/components/transfer/src/transfer-panel.vue.d.ts +8 -18
  275. package/es/components/transfer/src/transfer.mjs +69 -160
  276. package/es/components/transfer/src/transfer.mjs.map +1 -1
  277. package/es/components/transfer/src/transfer.vue.d.ts +40 -90
  278. package/es/components/transfer/src/transfer2.mjs +160 -69
  279. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  280. package/es/components/upload/index.mjs +2 -2
  281. package/es/components/upload/src/upload-content2.mjs +1 -1
  282. package/es/components/upload/src/upload-dragger.mjs +72 -11
  283. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  284. package/es/components/upload/src/upload-dragger2.mjs +11 -72
  285. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  286. package/es/components/upload/src/upload-list.mjs +26 -173
  287. package/es/components/upload/src/upload-list.mjs.map +1 -1
  288. package/es/components/upload/src/upload-list2.mjs +173 -26
  289. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  290. package/es/components/upload/src/upload.mjs +1 -1
  291. package/es/index.mjs +40 -40
  292. package/lib/components/autocomplete/index.d.ts +23 -49
  293. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +23 -49
  294. package/lib/components/avatar/index.js +2 -2
  295. package/lib/components/avatar/src/avatar.js +33 -67
  296. package/lib/components/avatar/src/avatar.js.map +1 -1
  297. package/lib/components/avatar/src/avatar2.js +67 -33
  298. package/lib/components/avatar/src/avatar2.js.map +1 -1
  299. package/lib/components/backtop/index.js +2 -2
  300. package/lib/components/backtop/src/backtop.js +54 -22
  301. package/lib/components/backtop/src/backtop.js.map +1 -1
  302. package/lib/components/backtop/src/backtop2.js +22 -54
  303. package/lib/components/backtop/src/backtop2.js.map +1 -1
  304. package/lib/components/badge/index.js +2 -2
  305. package/lib/components/badge/src/badge.js +17 -55
  306. package/lib/components/badge/src/badge.js.map +1 -1
  307. package/lib/components/badge/src/badge2.js +55 -17
  308. package/lib/components/badge/src/badge2.js.map +1 -1
  309. package/lib/components/breadcrumb/index.js +2 -2
  310. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
  311. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  312. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
  313. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  314. package/lib/components/button/index.js +1 -1
  315. package/lib/components/button/src/button-group.js +6 -30
  316. package/lib/components/button/src/button-group.js.map +1 -1
  317. package/lib/components/button/src/button-group2.js +30 -6
  318. package/lib/components/button/src/button-group2.js.map +1 -1
  319. package/lib/components/carousel/index.js +4 -4
  320. package/lib/components/carousel/src/carousel-item.js +63 -8
  321. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  322. package/lib/components/carousel/src/carousel-item2.js +8 -63
  323. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  324. package/lib/components/carousel/src/carousel.js +57 -159
  325. package/lib/components/carousel/src/carousel.js.map +1 -1
  326. package/lib/components/carousel/src/carousel2.js +159 -57
  327. package/lib/components/carousel/src/carousel2.js.map +1 -1
  328. package/lib/components/cascader/index.d.ts +46 -98
  329. package/lib/components/cascader/src/cascader.js +1 -1
  330. package/lib/components/cascader/src/cascader.vue.d.ts +23 -49
  331. package/lib/components/check-tag/index.js +2 -2
  332. package/lib/components/check-tag/src/check-tag.js +13 -30
  333. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  334. package/lib/components/check-tag/src/check-tag2.js +30 -13
  335. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  336. package/lib/components/color-picker/index.d.ts +8 -18
  337. package/lib/components/color-picker/index.js +2 -2
  338. package/lib/components/color-picker/src/color-picker.js +319 -38
  339. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  340. package/lib/components/color-picker/src/color-picker.vue.d.ts +8 -18
  341. package/lib/components/color-picker/src/color-picker2.js +38 -319
  342. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  343. package/lib/components/color-picker/src/components/predefine.js +1 -1
  344. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +8 -18
  345. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +8 -18
  346. package/lib/components/date-picker/src/panel-utils.d.ts +16 -36
  347. package/lib/components/descriptions/src/description.js +1 -1
  348. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  349. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  350. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  351. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  352. package/lib/components/divider/index.js +2 -2
  353. package/lib/components/divider/src/divider.js +17 -35
  354. package/lib/components/divider/src/divider.js.map +1 -1
  355. package/lib/components/divider/src/divider2.js +35 -17
  356. package/lib/components/divider/src/divider2.js.map +1 -1
  357. package/lib/components/drawer/index.js +2 -2
  358. package/lib/components/drawer/src/drawer.js +176 -23
  359. package/lib/components/drawer/src/drawer.js.map +1 -1
  360. package/lib/components/drawer/src/drawer2.js +23 -176
  361. package/lib/components/drawer/src/drawer2.js.map +1 -1
  362. package/lib/components/dropdown/index.js +2 -2
  363. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  364. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  365. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  366. package/lib/components/dropdown/src/dropdown.js +307 -106
  367. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  368. package/lib/components/dropdown/src/dropdown2.js +106 -307
  369. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  370. package/lib/components/form/index.js +4 -4
  371. package/lib/components/form/src/form-item.js +44 -320
  372. package/lib/components/form/src/form-item.js.map +1 -1
  373. package/lib/components/form/src/form-item2.js +320 -44
  374. package/lib/components/form/src/form-item2.js.map +1 -1
  375. package/lib/components/form/src/form.js +55 -148
  376. package/lib/components/form/src/form.js.map +1 -1
  377. package/lib/components/form/src/form2.js +148 -55
  378. package/lib/components/form/src/form2.js.map +1 -1
  379. package/lib/components/image/index.js +2 -2
  380. package/lib/components/image/src/image.js +63 -220
  381. package/lib/components/image/src/image.js.map +1 -1
  382. package/lib/components/image/src/image2.js +220 -63
  383. package/lib/components/image/src/image2.js.map +1 -1
  384. package/lib/components/image-viewer/index.js +2 -2
  385. package/lib/components/image-viewer/src/image-viewer.js +40 -396
  386. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  387. package/lib/components/image-viewer/src/image-viewer2.js +396 -40
  388. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  389. package/lib/components/index.js +40 -40
  390. package/lib/components/input/index.d.ts +8 -18
  391. package/lib/components/input/index.js +2 -2
  392. package/lib/components/input/src/input.d.ts +2 -6
  393. package/lib/components/input/src/input.js +507 -126
  394. package/lib/components/input/src/input.js.map +1 -1
  395. package/lib/components/input/src/input.vue.d.ts +8 -18
  396. package/lib/components/input/src/input2.js +131 -504
  397. package/lib/components/input/src/input2.js.map +1 -1
  398. package/lib/components/input-number/index.d.ts +23 -49
  399. package/lib/components/input-number/index.js +2 -2
  400. package/lib/components/input-number/src/input-number.js +57 -310
  401. package/lib/components/input-number/src/input-number.js.map +1 -1
  402. package/lib/components/input-number/src/input-number.vue.d.ts +23 -49
  403. package/lib/components/input-number/src/input-number2.js +310 -57
  404. package/lib/components/input-number/src/input-number2.js.map +1 -1
  405. package/lib/components/notification/index.js +1 -1
  406. package/lib/components/notification/src/notification.js +70 -146
  407. package/lib/components/notification/src/notification.js.map +1 -1
  408. package/lib/components/notification/src/notification2.js +146 -70
  409. package/lib/components/notification/src/notification2.js.map +1 -1
  410. package/lib/components/notification/src/notify.js +2 -2
  411. package/lib/components/pagination/src/components/jumper.js +60 -9
  412. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  413. package/lib/components/pagination/src/components/jumper.vue.d.ts +8 -18
  414. package/lib/components/pagination/src/components/jumper2.js +9 -60
  415. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  416. package/lib/components/pagination/src/components/next.js +19 -38
  417. package/lib/components/pagination/src/components/next.js.map +1 -1
  418. package/lib/components/pagination/src/components/next2.js +38 -19
  419. package/lib/components/pagination/src/components/next2.js.map +1 -1
  420. package/lib/components/pagination/src/components/pager.js +214 -17
  421. package/lib/components/pagination/src/components/pager.js.map +1 -1
  422. package/lib/components/pagination/src/components/pager2.js +17 -214
  423. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  424. package/lib/components/pagination/src/components/sizes.js +68 -22
  425. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  426. package/lib/components/pagination/src/components/sizes2.js +22 -68
  427. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  428. package/lib/components/pagination/src/components/total.js +28 -7
  429. package/lib/components/pagination/src/components/total.js.map +1 -1
  430. package/lib/components/pagination/src/components/total2.js +7 -28
  431. package/lib/components/pagination/src/components/total2.js.map +1 -1
  432. package/lib/components/pagination/src/pagination.js +5 -5
  433. package/lib/components/popconfirm/index.js +2 -2
  434. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  435. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  436. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  437. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  438. package/lib/components/popover/index.js +2 -2
  439. package/lib/components/popover/src/popover.js +111 -67
  440. package/lib/components/popover/src/popover.js.map +1 -1
  441. package/lib/components/popover/src/popover2.js +67 -111
  442. package/lib/components/popover/src/popover2.js.map +1 -1
  443. package/lib/components/popper/index.js +8 -8
  444. package/lib/components/popper/src/arrow.js +9 -37
  445. package/lib/components/popper/src/arrow.js.map +1 -1
  446. package/lib/components/popper/src/arrow2.js +37 -9
  447. package/lib/components/popper/src/arrow2.js.map +1 -1
  448. package/lib/components/popper/src/content.js +99 -137
  449. package/lib/components/popper/src/content.js.map +1 -1
  450. package/lib/components/popper/src/content2.js +137 -99
  451. package/lib/components/popper/src/content2.js.map +1 -1
  452. package/lib/components/popper/src/popper.js +28 -32
  453. package/lib/components/popper/src/popper.js.map +1 -1
  454. package/lib/components/popper/src/popper2.js +32 -28
  455. package/lib/components/popper/src/popper2.js.map +1 -1
  456. package/lib/components/popper/src/trigger.js +119 -32
  457. package/lib/components/popper/src/trigger.js.map +1 -1
  458. package/lib/components/popper/src/trigger2.js +32 -119
  459. package/lib/components/popper/src/trigger2.js.map +1 -1
  460. package/lib/components/progress/index.js +2 -2
  461. package/lib/components/progress/src/progress.js +57 -202
  462. package/lib/components/progress/src/progress.js.map +1 -1
  463. package/lib/components/progress/src/progress2.js +202 -57
  464. package/lib/components/progress/src/progress2.js.map +1 -1
  465. package/lib/components/rate/index.js +2 -2
  466. package/lib/components/rate/src/rate.js +87 -254
  467. package/lib/components/rate/src/rate.js.map +1 -1
  468. package/lib/components/rate/src/rate2.js +254 -87
  469. package/lib/components/rate/src/rate2.js.map +1 -1
  470. package/lib/components/row/index.js +2 -2
  471. package/lib/components/row/src/row.js +32 -45
  472. package/lib/components/row/src/row.js.map +1 -1
  473. package/lib/components/row/src/row2.js +45 -32
  474. package/lib/components/row/src/row2.js.map +1 -1
  475. package/lib/components/scrollbar/index.js +2 -2
  476. package/lib/components/scrollbar/src/bar.js +17 -42
  477. package/lib/components/scrollbar/src/bar.js.map +1 -1
  478. package/lib/components/scrollbar/src/bar2.js +42 -17
  479. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  480. package/lib/components/scrollbar/src/scrollbar.js +48 -174
  481. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  482. package/lib/components/scrollbar/src/scrollbar2.js +174 -48
  483. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  484. package/lib/components/select/src/select.js +5 -4
  485. package/lib/components/select/src/select.js.map +1 -1
  486. package/lib/components/select/src/useSelect.js.map +1 -1
  487. package/lib/components/skeleton/index.js +2 -2
  488. package/lib/components/skeleton/src/skeleton.js +22 -49
  489. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  490. package/lib/components/skeleton/src/skeleton2.js +49 -22
  491. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  492. package/lib/components/slider/index.d.ts +23 -49
  493. package/lib/components/slider/src/button.js +22 -93
  494. package/lib/components/slider/src/button.js.map +1 -1
  495. package/lib/components/slider/src/button2.js +93 -22
  496. package/lib/components/slider/src/button2.js.map +1 -1
  497. package/lib/components/slider/src/slider.js +1 -1
  498. package/lib/components/slider/src/slider.vue.d.ts +23 -49
  499. package/lib/components/steps/index.js +2 -2
  500. package/lib/components/steps/src/steps.js +34 -37
  501. package/lib/components/steps/src/steps.js.map +1 -1
  502. package/lib/components/steps/src/steps2.js +37 -34
  503. package/lib/components/steps/src/steps2.js.map +1 -1
  504. package/lib/components/switch/index.js +2 -2
  505. package/lib/components/switch/src/switch.js +88 -240
  506. package/lib/components/switch/src/switch.js.map +1 -1
  507. package/lib/components/switch/src/switch2.js +240 -88
  508. package/lib/components/switch/src/switch2.js.map +1 -1
  509. package/lib/components/tabs/index.js +2 -2
  510. package/lib/components/tabs/src/tab-pane.js +13 -72
  511. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  512. package/lib/components/tabs/src/tab-pane2.js +72 -13
  513. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  514. package/lib/components/tag/index.js +2 -2
  515. package/lib/components/tag/src/tag.js +94 -34
  516. package/lib/components/tag/src/tag.js.map +1 -1
  517. package/lib/components/tag/src/tag2.js +34 -94
  518. package/lib/components/tag/src/tag2.js.map +1 -1
  519. package/lib/components/time-picker/src/common/picker.vue.d.ts +8 -18
  520. package/lib/components/time-select/index.js +1 -1
  521. package/lib/components/time-select/src/time-select.js +48 -123
  522. package/lib/components/time-select/src/time-select.js.map +1 -1
  523. package/lib/components/time-select/src/time-select2.js +123 -48
  524. package/lib/components/time-select/src/time-select2.js.map +1 -1
  525. package/lib/components/tooltip/index.js +1 -1
  526. package/lib/components/tooltip/src/content.js +1 -1
  527. package/lib/components/tooltip/src/content2.js +1 -1
  528. package/lib/components/tooltip/src/tooltip.js +3 -3
  529. package/lib/components/tooltip/src/tooltip2.js +2 -2
  530. package/lib/components/tooltip/src/trigger.js +16 -73
  531. package/lib/components/tooltip/src/trigger.js.map +1 -1
  532. package/lib/components/tooltip/src/trigger2.js +73 -16
  533. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  534. package/lib/components/tooltip-v2/index.js +6 -6
  535. package/lib/components/tooltip-v2/src/arrow.js +37 -23
  536. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  537. package/lib/components/tooltip-v2/src/arrow2.js +23 -37
  538. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  539. package/lib/components/tooltip-v2/src/content.js +112 -50
  540. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  541. package/lib/components/tooltip-v2/src/content2.js +50 -112
  542. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  543. package/lib/components/tooltip-v2/src/root.js +17 -80
  544. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  545. package/lib/components/tooltip-v2/src/root2.js +80 -17
  546. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  547. package/lib/components/tooltip-v2/src/tooltip.js +75 -22
  548. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  549. package/lib/components/tooltip-v2/src/tooltip2.js +22 -75
  550. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  551. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  552. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  553. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  554. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  555. package/lib/components/transfer/index.d.ts +40 -90
  556. package/lib/components/transfer/index.js +2 -2
  557. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  558. package/lib/components/transfer/src/transfer-panel.js +1 -1
  559. package/lib/components/transfer/src/transfer-panel.vue.d.ts +8 -18
  560. package/lib/components/transfer/src/transfer.js +73 -160
  561. package/lib/components/transfer/src/transfer.js.map +1 -1
  562. package/lib/components/transfer/src/transfer.vue.d.ts +40 -90
  563. package/lib/components/transfer/src/transfer2.js +160 -73
  564. package/lib/components/transfer/src/transfer2.js.map +1 -1
  565. package/lib/components/upload/index.js +2 -2
  566. package/lib/components/upload/src/upload-content2.js +1 -1
  567. package/lib/components/upload/src/upload-dragger.js +72 -12
  568. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  569. package/lib/components/upload/src/upload-dragger2.js +12 -72
  570. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  571. package/lib/components/upload/src/upload-list.js +27 -173
  572. package/lib/components/upload/src/upload-list.js.map +1 -1
  573. package/lib/components/upload/src/upload-list2.js +173 -27
  574. package/lib/components/upload/src/upload-list2.js.map +1 -1
  575. package/lib/components/upload/src/upload.js +1 -1
  576. package/lib/index.js +40 -40
  577. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
- import Steps from './src/steps2.mjs';
2
+ import Steps from './src/steps.mjs';
3
3
  import Step from './src/item2.mjs';
4
4
  export { stepProps } from './src/item.mjs';
5
- export { stepsEmits, stepsProps } from './src/steps.mjs';
5
+ export { stepsEmits, stepsProps } from './src/steps2.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
8
8
  const ElSteps = withInstall(Steps, {
@@ -1,43 +1,41 @@
1
+ import { defineComponent, ref, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
2
  import '../../../constants/index.mjs';
2
- import '../../../utils/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import { stepsProps, stepsEmits } from './steps2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
4
7
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
5
- import { isNumber } from '@vueuse/core';
6
8
 
7
- const stepsProps = buildProps({
8
- space: {
9
- type: [Number, String],
10
- default: ""
11
- },
12
- active: {
13
- type: Number,
14
- default: 0
15
- },
16
- direction: {
17
- type: String,
18
- default: "horizontal",
19
- values: ["horizontal", "vertical"]
20
- },
21
- alignCenter: {
22
- type: Boolean
23
- },
24
- simple: {
25
- type: Boolean
26
- },
27
- finishStatus: {
28
- type: String,
29
- values: ["wait", "process", "finish", "error", "success"],
30
- default: "finish"
31
- },
32
- processStatus: {
33
- type: String,
34
- values: ["wait", "process", "finish", "error", "success"],
35
- default: "process"
9
+ const __default__ = defineComponent({
10
+ name: "ElSteps"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: stepsProps,
15
+ emits: stepsEmits,
16
+ setup(__props, { emit }) {
17
+ const props = __props;
18
+ const ns = useNamespace("steps");
19
+ const steps = ref([]);
20
+ watch(steps, () => {
21
+ steps.value.forEach((instance, index) => {
22
+ instance.setIndex(index);
23
+ });
24
+ });
25
+ provide("ElSteps", { props, steps });
26
+ watch(() => props.active, (newVal, oldVal) => {
27
+ emit(CHANGE_EVENT, newVal, oldVal);
28
+ });
29
+ return (_ctx, _cache) => {
30
+ return openBlock(), createElementBlock("div", {
31
+ class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
32
+ }, [
33
+ renderSlot(_ctx.$slots, "default")
34
+ ], 2);
35
+ };
36
36
  }
37
37
  });
38
- const stepsEmits = {
39
- [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
40
- };
38
+ var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\steps\\src\\steps.vue"]]);
41
39
 
42
- export { stepsEmits, stepsProps };
40
+ export { Steps as default };
43
41
  //# sourceMappingURL=steps.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n space: {\n type: [Number, String],\n default: '',\n },\n active: {\n type: Number,\n default: 0,\n },\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n alignCenter: {\n type: Boolean,\n },\n simple: {\n type: Boolean,\n },\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps>\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
1
+ {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { provide, ref, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { Ref } from 'vue'\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\n\nconst steps: Ref<StepItemState[]> = ref([])\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAec,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,KAAA,GAA8B,GAAI,CAAA,EAAE,CAAA,CAAA;AAE1C,IAAA,KAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,SAAW,EAAA,EAAE,KAAO,EAAA,KAAA,EAAO,CAAA,CAAA;AAEnC,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,MACZ,EAAA,CAAC,QAAgB,MAAmB,KAAA;AAClC,MAAK,IAAA,CAAA,YAAA,EAAc,QAAQ,MAAM,CAAA,CAAA;AAAA,KAErC,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,41 +1,43 @@
1
- import { defineComponent, ref, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
1
  import '../../../constants/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { stepsProps, stepsEmits } from './steps.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
+ import '../../../utils/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
7
4
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
5
+ import { isNumber } from '@vueuse/core';
8
6
 
9
- const __default__ = defineComponent({
10
- name: "ElSteps"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: stepsProps,
15
- emits: stepsEmits,
16
- setup(__props, { emit }) {
17
- const props = __props;
18
- const ns = useNamespace("steps");
19
- const steps = ref([]);
20
- watch(steps, () => {
21
- steps.value.forEach((instance, index) => {
22
- instance.setIndex(index);
23
- });
24
- });
25
- provide("ElSteps", { props, steps });
26
- watch(() => props.active, (newVal, oldVal) => {
27
- emit(CHANGE_EVENT, newVal, oldVal);
28
- });
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("div", {
31
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
32
- }, [
33
- renderSlot(_ctx.$slots, "default")
34
- ], 2);
35
- };
7
+ const stepsProps = buildProps({
8
+ space: {
9
+ type: [Number, String],
10
+ default: ""
11
+ },
12
+ active: {
13
+ type: Number,
14
+ default: 0
15
+ },
16
+ direction: {
17
+ type: String,
18
+ default: "horizontal",
19
+ values: ["horizontal", "vertical"]
20
+ },
21
+ alignCenter: {
22
+ type: Boolean
23
+ },
24
+ simple: {
25
+ type: Boolean
26
+ },
27
+ finishStatus: {
28
+ type: String,
29
+ values: ["wait", "process", "finish", "error", "success"],
30
+ default: "finish"
31
+ },
32
+ processStatus: {
33
+ type: String,
34
+ values: ["wait", "process", "finish", "error", "success"],
35
+ default: "process"
36
36
  }
37
37
  });
38
- var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\steps\\src\\steps.vue"]]);
38
+ const stepsEmits = {
39
+ [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
40
+ };
39
41
 
40
- export { Steps as default };
42
+ export { stepsEmits, stepsProps };
41
43
  //# sourceMappingURL=steps2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { provide, ref, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { Ref } from 'vue'\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\n\nconst steps: Ref<StepItemState[]> = ref([])\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAec,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,KAAA,GAA8B,GAAI,CAAA,EAAE,CAAA,CAAA;AAE1C,IAAA,KAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,SAAW,EAAA,EAAE,KAAO,EAAA,KAAA,EAAO,CAAA,CAAA;AAEnC,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,MACZ,EAAA,CAAC,QAAgB,MAAmB,KAAA;AAClC,MAAK,IAAA,CAAA,YAAA,EAAc,QAAQ,MAAM,CAAA,CAAA;AAAA,KAErC,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n space: {\n type: [Number, String],\n default: '',\n },\n active: {\n type: Number,\n default: 0,\n },\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n alignCenter: {\n type: Boolean,\n },\n simple: {\n type: Boolean,\n },\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps>\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Switch from './src/switch.mjs';
3
- export { switchEmits, switchProps } from './src/switch2.mjs';
2
+ import Switch from './src/switch2.mjs';
3
+ export { switchEmits, switchProps } from './src/switch.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElSwitch = withInstall(Switch);
@@ -1,249 +1,96 @@
1
- import { defineComponent, getCurrentInstance, computed, ref, watch, nextTick, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, withModifiers, createElementVNode, withKeys, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, toDisplayString, createVNode } from 'vue';
2
- import { isPromise } from '@vue/shared';
3
1
  import '../../../utils/index.mjs';
4
- import { ElIcon } from '../../icon/index.mjs';
5
- import '../../form/index.mjs';
6
- import { Loading } from '@element-plus/icons-vue';
7
2
  import '../../../constants/index.mjs';
8
- import '../../../hooks/index.mjs';
9
- import { switchProps, switchEmits } from './switch2.mjs';
10
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
- import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
12
- import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
13
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
14
- import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
15
- import { addUnit } from '../../../utils/dom/style.mjs';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
5
+ import { isValidComponentSize } from '../../../utils/vue/validator.mjs';
16
6
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
17
- import { debugWarn, throwError } from '../../../utils/error.mjs';
18
- import { isBoolean } from '@vueuse/core';
7
+ import { isBoolean, isNumber } from '@vueuse/core';
8
+ import { isString } from '@vue/shared';
19
9
 
20
- const _hoisted_1 = ["onClick"];
21
- const _hoisted_2 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
22
- const _hoisted_3 = ["aria-hidden"];
23
- const _hoisted_4 = ["aria-hidden"];
24
- const _hoisted_5 = ["aria-hidden"];
25
- const COMPONENT_NAME = "ElSwitch";
26
- const __default__ = defineComponent({
27
- name: COMPONENT_NAME
28
- });
29
- const _sfc_main = /* @__PURE__ */ defineComponent({
30
- ...__default__,
31
- props: switchProps,
32
- emits: switchEmits,
33
- setup(__props, { expose, emit }) {
34
- const props = __props;
35
- const vm = getCurrentInstance();
36
- const { formItem } = useFormItem();
37
- const switchSize = useFormSize();
38
- const ns = useNamespace("switch");
39
- useDeprecated({
40
- from: '"value"',
41
- replacement: '"model-value" or "v-model"',
42
- scope: COMPONENT_NAME,
43
- version: "2.3.0",
44
- ref: "https://element-plus.org/en-US/component/switch.html#attributes",
45
- type: "Attribute"
46
- }, computed(() => {
47
- var _a;
48
- return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
49
- }));
50
- const { inputId } = useFormItemInputId(props, {
51
- formItemContext: formItem
52
- });
53
- const switchDisabled = useFormDisabled(computed(() => props.loading));
54
- const isControlled = ref(props.modelValue !== false);
55
- const input = ref();
56
- const core = ref();
57
- const switchKls = computed(() => [
58
- ns.b(),
59
- ns.m(switchSize.value),
60
- ns.is("disabled", switchDisabled.value),
61
- ns.is("checked", checked.value)
62
- ]);
63
- const coreStyle = computed(() => ({
64
- width: addUnit(props.width)
65
- }));
66
- watch(() => props.modelValue, () => {
67
- isControlled.value = true;
68
- });
69
- watch(() => props.value, () => {
70
- isControlled.value = false;
71
- });
72
- const actualValue = computed(() => {
73
- return isControlled.value ? props.modelValue : props.value;
74
- });
75
- const checked = computed(() => actualValue.value === props.activeValue);
76
- if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
77
- emit(UPDATE_MODEL_EVENT, props.inactiveValue);
78
- emit(CHANGE_EVENT, props.inactiveValue);
79
- emit(INPUT_EVENT, props.inactiveValue);
80
- }
81
- watch(checked, (val) => {
82
- var _a;
83
- input.value.checked = val;
84
- if (props.validateEvent) {
85
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
86
- }
87
- });
88
- const handleChange = () => {
89
- const val = checked.value ? props.inactiveValue : props.activeValue;
90
- emit(UPDATE_MODEL_EVENT, val);
91
- emit(CHANGE_EVENT, val);
92
- emit(INPUT_EVENT, val);
93
- nextTick(() => {
94
- input.value.checked = checked.value;
95
- });
96
- };
97
- const switchValue = () => {
98
- if (switchDisabled.value)
99
- return;
100
- const { beforeChange } = props;
101
- if (!beforeChange) {
102
- handleChange();
103
- return;
104
- }
105
- const shouldChange = beforeChange();
106
- const isPromiseOrBool = [
107
- isPromise(shouldChange),
108
- isBoolean(shouldChange)
109
- ].includes(true);
110
- if (!isPromiseOrBool) {
111
- throwError(COMPONENT_NAME, "beforeChange must return type `Promise<boolean>` or `boolean`");
112
- }
113
- if (isPromise(shouldChange)) {
114
- shouldChange.then((result) => {
115
- if (result) {
116
- handleChange();
117
- }
118
- }).catch((e) => {
119
- debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
120
- });
121
- } else if (shouldChange) {
122
- handleChange();
123
- }
124
- };
125
- const styles = computed(() => {
126
- return ns.cssVarBlock({
127
- ...props.activeColor ? { "on-color": props.activeColor } : null,
128
- ...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
129
- ...props.borderColor ? { "border-color": props.borderColor } : null
130
- });
131
- });
132
- const focus = () => {
133
- var _a, _b;
134
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
135
- };
136
- onMounted(() => {
137
- input.value.checked = checked.value;
138
- });
139
- expose({
140
- focus,
141
- checked
142
- });
143
- return (_ctx, _cache) => {
144
- return openBlock(), createElementBlock("div", {
145
- class: normalizeClass(unref(switchKls)),
146
- style: normalizeStyle(unref(styles)),
147
- onClick: withModifiers(switchValue, ["prevent"])
148
- }, [
149
- createElementVNode("input", {
150
- id: unref(inputId),
151
- ref_key: "input",
152
- ref: input,
153
- class: normalizeClass(unref(ns).e("input")),
154
- type: "checkbox",
155
- role: "switch",
156
- "aria-checked": unref(checked),
157
- "aria-disabled": unref(switchDisabled),
158
- name: _ctx.name,
159
- "true-value": _ctx.activeValue,
160
- "false-value": _ctx.inactiveValue,
161
- disabled: unref(switchDisabled),
162
- tabindex: _ctx.tabindex,
163
- onChange: handleChange,
164
- onKeydown: withKeys(switchValue, ["enter"])
165
- }, null, 42, _hoisted_2),
166
- !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText) ? (openBlock(), createElementBlock("span", {
167
- key: 0,
168
- class: normalizeClass([
169
- unref(ns).e("label"),
170
- unref(ns).em("label", "left"),
171
- unref(ns).is("active", !unref(checked))
172
- ])
173
- }, [
174
- _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
175
- default: withCtx(() => [
176
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
177
- ]),
178
- _: 1
179
- })) : createCommentVNode("v-if", true),
180
- !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
181
- key: 1,
182
- "aria-hidden": unref(checked)
183
- }, toDisplayString(_ctx.inactiveText), 9, _hoisted_3)) : createCommentVNode("v-if", true)
184
- ], 2)) : createCommentVNode("v-if", true),
185
- createElementVNode("span", {
186
- ref_key: "core",
187
- ref: core,
188
- class: normalizeClass(unref(ns).e("core")),
189
- style: normalizeStyle(unref(coreStyle))
190
- }, [
191
- _ctx.inlinePrompt ? (openBlock(), createElementBlock("div", {
192
- key: 0,
193
- class: normalizeClass(unref(ns).e("inner"))
194
- }, [
195
- _ctx.activeIcon || _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), {
196
- key: 0,
197
- class: normalizeClass(unref(ns).is("icon"))
198
- }, {
199
- default: withCtx(() => [
200
- (openBlock(), createBlock(resolveDynamicComponent(unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
201
- ]),
202
- _: 1
203
- }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
204
- key: 1,
205
- class: normalizeClass(unref(ns).is("text")),
206
- "aria-hidden": !unref(checked)
207
- }, toDisplayString(unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4)) : createCommentVNode("v-if", true)
208
- ], 2)) : createCommentVNode("v-if", true),
209
- createElementVNode("div", {
210
- class: normalizeClass(unref(ns).e("action"))
211
- }, [
212
- _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
213
- key: 0,
214
- class: normalizeClass(unref(ns).is("loading"))
215
- }, {
216
- default: withCtx(() => [
217
- createVNode(unref(Loading))
218
- ]),
219
- _: 1
220
- }, 8, ["class"])) : createCommentVNode("v-if", true)
221
- ], 2)
222
- ], 6),
223
- !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
224
- key: 1,
225
- class: normalizeClass([
226
- unref(ns).e("label"),
227
- unref(ns).em("label", "right"),
228
- unref(ns).is("active", unref(checked))
229
- ])
230
- }, [
231
- _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
232
- default: withCtx(() => [
233
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
234
- ]),
235
- _: 1
236
- })) : createCommentVNode("v-if", true),
237
- !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
238
- key: 1,
239
- "aria-hidden": !unref(checked)
240
- }, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
241
- ], 2)) : createCommentVNode("v-if", true)
242
- ], 14, _hoisted_1);
243
- };
10
+ const switchProps = buildProps({
11
+ modelValue: {
12
+ type: [Boolean, String, Number],
13
+ default: false
14
+ },
15
+ value: {
16
+ type: [Boolean, String, Number],
17
+ default: false
18
+ },
19
+ disabled: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ width: {
24
+ type: [String, Number],
25
+ default: ""
26
+ },
27
+ inlinePrompt: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ activeIcon: {
32
+ type: iconPropType
33
+ },
34
+ inactiveIcon: {
35
+ type: iconPropType
36
+ },
37
+ activeText: {
38
+ type: String,
39
+ default: ""
40
+ },
41
+ inactiveText: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ activeColor: {
46
+ type: String,
47
+ default: ""
48
+ },
49
+ inactiveColor: {
50
+ type: String,
51
+ default: ""
52
+ },
53
+ borderColor: {
54
+ type: String,
55
+ default: ""
56
+ },
57
+ activeValue: {
58
+ type: [Boolean, String, Number],
59
+ default: true
60
+ },
61
+ inactiveValue: {
62
+ type: [Boolean, String, Number],
63
+ default: false
64
+ },
65
+ name: {
66
+ type: String,
67
+ default: ""
68
+ },
69
+ validateEvent: {
70
+ type: Boolean,
71
+ default: true
72
+ },
73
+ id: String,
74
+ loading: {
75
+ type: Boolean,
76
+ default: false
77
+ },
78
+ beforeChange: {
79
+ type: definePropType(Function)
80
+ },
81
+ size: {
82
+ type: String,
83
+ validator: isValidComponentSize
84
+ },
85
+ tabindex: {
86
+ type: [String, Number]
244
87
  }
245
88
  });
246
- var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\switch\\src\\switch.vue"]]);
89
+ const switchEmits = {
90
+ [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
91
+ [CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
92
+ [INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
93
+ };
247
94
 
248
- export { Switch as default };
95
+ export { switchEmits, switchProps };
249
96
  //# sourceMappingURL=switch.mjs.map
@@ -1 +1 @@
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 :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 watch,\n} from 'vue'\nimport { isPromise } from '@vue/shared'\nimport { addUnit, debugWarn, isBoolean, throwError } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;mCAmGc,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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A;AAAA,UACf,SAAA,CAAA,cAAA,EAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,SACF,CAAA,CAAA;AAEA,OAAM,MAAA,IAAA,YAAwB,EAAA;AAC5B,QAAA,YAAsB,EAAA,CAAA;AAAA,OAAA;AACwC,KAAA,CAAA;AACK,IAAA,YACvD,GAAA,QAAA,CAAA,MAAgC;AAAsB,MAClE,OAAC,EAAA,CAAA,WAAA,CAAA;AAAA,QACF,GAAA,KAAA,CAAA,WAAA,GAAA,EAAA,UAAA,EAAA,KAAA,CAAA,WAAA,EAAA,GAAA,IAAA;AAED,QAAA,sBAA0B,GAAA,EAAA,WAAA,EAAA,KAAA,CAAA,aAAA,EAAA,GAAA,IAAA;AACxB,QAAA,GAAA,iBAAqB,GAAA,EAAA,cAAA,EAAA,KAAA,CAAA,WAAA,EAAA,GAAA,IAAA;AAAA,OACvB,CAAA,CAAA;AAEA,KAAA,CAAA,CAAA;AACE,IAAM,MAAA,KAAA,GAAO;AAAkB,MAChC,IAAA,EAAA,EAAA,EAAA,CAAA;AAED,MAAa,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA;AAAA,KAIX,CAAA;AAAA,IAIA,SAAA,CAAA,MAAA;AAAA,MACD,KAAA,CAAA,KAAA,CAAA,OAAA,GAAA,OAAA,CAAA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,\n} from '@element-plus/constants'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Switch from './switch.vue'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport const switchProps = buildProps({\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n value: {\n type: [Boolean, String, Number],\n default: false,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n width: {\n type: [String, Number],\n default: '',\n },\n inlinePrompt: {\n type: Boolean,\n default: false,\n },\n activeIcon: {\n type: iconPropType,\n },\n inactiveIcon: {\n type: iconPropType,\n },\n activeText: {\n type: String,\n default: '',\n },\n inactiveText: {\n type: String,\n default: '',\n },\n activeColor: {\n type: String,\n default: '',\n },\n inactiveColor: {\n type: String,\n default: '',\n },\n borderColor: {\n type: String,\n default: '',\n },\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n name: {\n type: String,\n default: '',\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n id: String,\n loading: {\n type: Boolean,\n default: false,\n },\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n tabindex: {\n type: [String, Number],\n },\n} as const)\n\nexport type SwitchProps = ExtractPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch>\n"],"names":[],"mappings":";;;;;;;;;AAcY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