ep-craft 0.1.34 → 0.1.35

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 (347) hide show
  1. package/dist/components/carousel/EpCarousel.vue.d.ts +39 -0
  2. package/dist/components/carousel/EpCarousel.vue.js +227 -0
  3. package/dist/components/carousel/EpCarousel2.vue.js +4 -0
  4. package/dist/components/carousel/carousel.d.ts +86 -0
  5. package/dist/components/carousel/carousel.js +113 -0
  6. package/dist/components/carousel/constants.d.ts +32 -0
  7. package/dist/components/carousel/constants.js +5 -0
  8. package/dist/components/carousel/index.d.ts +28 -2
  9. package/dist/components/carousel/index.js +11 -4
  10. package/dist/components/carousel/instance.d.ts +8 -0
  11. package/dist/components/carousel/use-carousel.d.ts +41 -0
  12. package/dist/components/carousel/use-carousel.js +200 -0
  13. package/dist/components/carousel-item/EpCarouselItem.vue.d.ts +16 -0
  14. package/dist/components/carousel-item/EpCarouselItem.vue.js +74 -0
  15. package/dist/components/carousel-item/EpCarouselItem2.vue.js +4 -0
  16. package/dist/components/carousel-item/carousel-item.d.ts +22 -0
  17. package/dist/components/carousel-item/carousel-item.js +22 -0
  18. package/dist/components/carousel-item/index.d.ts +14 -2
  19. package/dist/components/carousel-item/index.js +9 -4
  20. package/dist/components/carousel-item/use-carousel-item.d.ts +14 -0
  21. package/dist/components/carousel-item/use-carousel-item.js +79 -0
  22. package/dist/components/cascader/EpCascader.vue.d.ts +232 -0
  23. package/dist/components/cascader/EpCascader.vue.js +757 -0
  24. package/dist/components/cascader/EpCascader2.vue.js +4 -0
  25. package/dist/components/cascader/cascader.d.ts +313 -0
  26. package/dist/components/cascader/cascader.js +210 -0
  27. package/dist/components/cascader/index.d.ts +17 -2
  28. package/dist/components/cascader/index.js +9 -3
  29. package/dist/components/cascader/instances.d.ts +2 -0
  30. package/dist/components/cascader-panel/EpCascaderMenu.vue.d.ts +32 -0
  31. package/dist/components/cascader-panel/EpCascaderMenu.vue.js +204 -0
  32. package/dist/components/cascader-panel/EpCascaderMenu2.vue.js +4 -0
  33. package/dist/components/cascader-panel/EpCascaderNode.vue.d.ts +11 -0
  34. package/dist/components/cascader-panel/EpCascaderNode.vue.js +134 -0
  35. package/dist/components/cascader-panel/EpCascaderNode2.vue.js +4 -0
  36. package/dist/components/cascader-panel/EpCascaderPanel.vue.d.ts +290 -0
  37. package/dist/components/cascader-panel/EpCascaderPanel.vue.js +266 -0
  38. package/dist/components/cascader-panel/EpCascaderPanel2.vue.js +4 -0
  39. package/dist/components/cascader-panel/config.d.ts +102 -0
  40. package/dist/components/cascader-panel/config.js +136 -0
  41. package/dist/components/cascader-panel/index.d.ts +17 -2
  42. package/dist/components/cascader-panel/index.js +21 -4
  43. package/dist/components/cascader-panel/instance.d.ts +4 -0
  44. package/dist/components/cascader-panel/node-content.d.ts +14 -0
  45. package/dist/components/cascader-panel/node-content.js +50 -0
  46. package/dist/components/cascader-panel/node.d.ts +50 -0
  47. package/dist/components/cascader-panel/node.js +75 -0
  48. package/dist/components/cascader-panel/store.d.ts +17 -0
  49. package/dist/components/cascader-panel/store.js +49 -0
  50. package/dist/components/cascader-panel/types.d.ts +64 -0
  51. package/dist/components/cascader-panel/types.js +4 -0
  52. package/dist/components/cascader-panel/utils.d.ts +4 -0
  53. package/dist/components/cascader-panel/utils.js +26 -0
  54. package/dist/components/checkbox/EpCheckbox.vue.d.ts +1 -1
  55. package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +1 -1
  56. package/dist/components/checkbox-group/index.js +4 -3
  57. package/dist/components/collapse-transition/index.js +4 -3
  58. package/dist/components/color-picker/EpColorPicker.vue.d.ts +53 -0
  59. package/dist/components/color-picker/EpColorPicker.vue.js +318 -0
  60. package/dist/components/color-picker/EpColorPicker2.vue.js +4 -0
  61. package/dist/components/color-picker/color-picker.d.ts +240 -0
  62. package/dist/components/color-picker/color-picker.js +124 -0
  63. package/dist/components/color-picker/index.d.ts +16 -2
  64. package/dist/components/color-picker/index.js +11 -4
  65. package/dist/components/color-picker-panel/EpColorPickerPanel.vue.d.ts +413 -0
  66. package/dist/components/color-picker-panel/EpColorPickerPanel.vue.js +142 -0
  67. package/dist/components/color-picker-panel/EpColorPickerPanel2.vue.js +4 -0
  68. package/dist/components/color-picker-panel/color-picker-panel.d.ts +91 -0
  69. package/dist/components/color-picker-panel/color-picker-panel.js +71 -0
  70. package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.d.ts +19 -0
  71. package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.js +92 -0
  72. package/dist/components/color-picker-panel/components/EpAlphaSlider2.vue.js +4 -0
  73. package/dist/components/color-picker-panel/components/EpHueSlider.vue.d.ts +20 -0
  74. package/dist/components/color-picker-panel/components/EpHueSlider.vue.js +84 -0
  75. package/dist/components/color-picker-panel/components/EpHueSlider2.vue.js +4 -0
  76. package/dist/components/color-picker-panel/components/EpPredefine.vue.d.ts +3 -0
  77. package/dist/components/color-picker-panel/components/EpPredefine.vue.js +39 -0
  78. package/dist/components/color-picker-panel/components/EpPredefine2.vue.js +4 -0
  79. package/dist/components/color-picker-panel/components/EpSvPanel.vue.d.ts +8 -0
  80. package/dist/components/color-picker-panel/components/EpSvPanel.vue.js +67 -0
  81. package/dist/components/color-picker-panel/components/EpSvPanel2.vue.js +4 -0
  82. package/dist/components/color-picker-panel/composables/use-common-color.d.ts +11 -0
  83. package/dist/components/color-picker-panel/composables/use-common-color.js +23 -0
  84. package/dist/components/color-picker-panel/composables/use-predefine.d.ts +14 -0
  85. package/dist/components/color-picker-panel/composables/use-predefine.js +66 -0
  86. package/dist/components/color-picker-panel/composables/use-slider.d.ts +35 -0
  87. package/dist/components/color-picker-panel/composables/use-slider.js +152 -0
  88. package/dist/components/color-picker-panel/composables/use-sv-panel.d.ts +25 -0
  89. package/dist/components/color-picker-panel/composables/use-sv-panel.js +123 -0
  90. package/dist/components/color-picker-panel/index.d.ts +4 -0
  91. package/dist/components/color-picker-panel/props/predefine.d.ts +36 -0
  92. package/dist/components/color-picker-panel/props/slider.d.ts +39 -0
  93. package/dist/components/color-picker-panel/props/sv-panel.d.ts +22 -0
  94. package/dist/components/color-picker-panel/utils/color.d.ts +28 -0
  95. package/dist/components/color-picker-panel/utils/color.js +62 -0
  96. package/dist/components/color-picker-panel/utils/draggable.d.ts +6 -0
  97. package/dist/components/color-picker-panel/utils/draggable.js +23 -0
  98. package/dist/components/descriptions/EpDescriptions.vue.d.ts +20 -0
  99. package/dist/components/descriptions/EpDescriptions.vue.js +100 -0
  100. package/dist/components/descriptions/EpDescriptions2.vue.js +4 -0
  101. package/dist/components/descriptions/EpDescriptionsRow.vue.d.ts +5 -0
  102. package/dist/components/descriptions/EpDescriptionsRow.vue.js +56 -0
  103. package/dist/components/descriptions/EpDescriptionsRow2.vue.js +4 -0
  104. package/dist/components/descriptions/constants.d.ts +1 -0
  105. package/dist/components/descriptions/constants.js +4 -0
  106. package/dist/components/descriptions/description.d.ts +66 -0
  107. package/dist/components/descriptions/description.js +61 -0
  108. package/dist/components/descriptions/descriptions-cell.d.ts +31 -0
  109. package/dist/components/descriptions/descriptions-cell.js +133 -0
  110. package/dist/components/descriptions/descriptions-row.d.ts +10 -0
  111. package/dist/components/descriptions/descriptions.type.d.ts +29 -0
  112. package/dist/components/descriptions/index.d.ts +22 -2
  113. package/dist/components/descriptions/index.js +9 -3
  114. package/dist/components/descriptions/token.d.ts +3 -0
  115. package/dist/components/descriptions/token.js +4 -0
  116. package/dist/components/descriptions-item/description-item.d.ts +84 -0
  117. package/dist/components/descriptions-item/description-item.js +87 -0
  118. package/dist/components/descriptions-item/index.d.ts +14 -2
  119. package/dist/components/descriptions-item/index.js +6 -4
  120. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +1 -1
  121. package/dist/components/dropdown/src/dropdown-item2.vue.js +1 -1
  122. package/dist/components/dropdown/src/dropdown-menu2.vue.js +1 -1
  123. package/dist/components/dropdown/src/dropdown2.vue.js +1 -1
  124. package/dist/components/input-number/index.js +3 -2
  125. package/dist/components/mention/EpMention.vue.d.ts +430 -0
  126. package/dist/components/mention/EpMention.vue.js +303 -0
  127. package/dist/components/mention/EpMention2.vue.js +4 -0
  128. package/dist/components/mention/EpMentionDropdown.vue.d.ts +34 -0
  129. package/dist/components/mention/EpMentionDropdown.vue.js +140 -0
  130. package/dist/components/mention/EpMentionDropdown2.vue.js +4 -0
  131. package/dist/components/mention/helper.d.ts +32 -0
  132. package/dist/components/mention/helper.js +112 -0
  133. package/dist/components/mention/index.d.ts +13 -2
  134. package/dist/components/mention/index.js +11 -4
  135. package/dist/components/mention/mention-dropdown.d.ts +21 -0
  136. package/dist/components/mention/mention-dropdown.js +22 -0
  137. package/dist/components/mention/mention.d.ts +313 -0
  138. package/dist/components/mention/mention.js +123 -0
  139. package/dist/components/mention/types.d.ts +19 -0
  140. package/dist/components/radio/index.js +4 -3
  141. package/dist/components/rate/EpRate.vue.d.ts +32 -0
  142. package/dist/components/rate/EpRate.vue.js +229 -0
  143. package/dist/components/rate/EpRate2.vue.js +4 -0
  144. package/dist/components/rate/index.d.ts +15 -2
  145. package/dist/components/rate/index.js +7 -4
  146. package/dist/components/rate/rate.d.ts +131 -0
  147. package/dist/components/rate/rate.js +158 -0
  148. package/dist/components/roving-focus-group/index.js +1 -1
  149. package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +76 -18
  150. package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +18 -76
  151. package/dist/components/segmented/EpSegmented.vue.d.ts +22 -0
  152. package/dist/components/segmented/EpSegmented.vue.js +136 -0
  153. package/dist/components/segmented/EpSegmented2.vue.js +4 -0
  154. package/dist/components/segmented/index.d.ts +14 -2
  155. package/dist/components/segmented/index.js +11 -4
  156. package/dist/components/segmented/segmented.d.ts +85 -0
  157. package/dist/components/segmented/segmented.js +85 -0
  158. package/dist/components/segmented/types.d.ts +1 -0
  159. package/dist/components/select/index.d.ts +4 -2
  160. package/dist/components/select/index.js +3 -2
  161. package/dist/components/select/select2.vue.js +60 -61
  162. package/dist/components/select-v2/src/select.vue.d.ts +1 -1
  163. package/dist/components/slider/EpSlider.vue.d.ts +175 -0
  164. package/dist/components/slider/EpSlider.vue.js +211 -0
  165. package/dist/components/slider/EpSlider2.vue.js +4 -0
  166. package/dist/components/slider/EpSliderButton.vue.d.ts +26 -0
  167. package/dist/components/slider/EpSliderButton.vue.js +103 -0
  168. package/dist/components/slider/EpSliderButton2.vue.js +4 -0
  169. package/dist/components/slider/button.d.ts +28 -0
  170. package/dist/components/slider/button.js +28 -0
  171. package/dist/components/slider/composables/index.d.ts +7 -0
  172. package/dist/components/slider/composables/use-lifecycle.d.ts +4 -0
  173. package/dist/components/slider/composables/use-lifecycle.js +20 -0
  174. package/dist/components/slider/composables/use-marks.d.ts +7 -0
  175. package/dist/components/slider/composables/use-marks.js +30 -0
  176. package/dist/components/slider/composables/use-slide.d.ts +23 -0
  177. package/dist/components/slider/composables/use-slide.js +92 -0
  178. package/dist/components/slider/composables/use-slider-button.d.ts +18 -0
  179. package/dist/components/slider/composables/use-slider-button.js +179 -0
  180. package/dist/components/slider/composables/use-stops.d.ts +8 -0
  181. package/dist/components/slider/composables/use-stops.js +23 -0
  182. package/dist/components/slider/composables/use-watch.d.ts +4 -0
  183. package/dist/components/slider/composables/use-watch.js +42 -0
  184. package/dist/components/slider/constants.d.ts +17 -0
  185. package/dist/components/slider/constants.js +4 -0
  186. package/dist/components/slider/index.d.ts +18 -2
  187. package/dist/components/slider/index.js +10 -4
  188. package/dist/components/slider/marker.d.ts +64 -0
  189. package/dist/components/slider/marker.js +40 -0
  190. package/dist/components/slider/slider.d.ts +80 -0
  191. package/dist/components/slider/slider.js +170 -0
  192. package/dist/components/step/EpStep.vue.d.ts +38 -0
  193. package/dist/components/step/EpStep.vue.js +157 -0
  194. package/dist/components/step/EpStep2.vue.js +4 -0
  195. package/dist/components/step/index.d.ts +12 -2
  196. package/dist/components/step/index.js +8 -3
  197. package/dist/components/step/step.d.ts +42 -0
  198. package/dist/components/step/step.js +39 -0
  199. package/dist/components/steps/EpSteps.vue.d.ts +23 -0
  200. package/dist/components/steps/EpSteps.vue.js +57 -0
  201. package/dist/components/steps/EpSteps2.vue.js +4 -0
  202. package/dist/components/steps/index.d.ts +20 -2
  203. package/dist/components/steps/index.js +8 -4
  204. package/dist/components/steps/steps.d.ts +69 -0
  205. package/dist/components/steps/steps.js +66 -0
  206. package/dist/components/steps/tokens.d.ts +1 -0
  207. package/dist/components/steps/tokens.js +4 -0
  208. package/dist/components/switch/EpSwitch.vue.d.ts +50 -0
  209. package/dist/components/switch/EpSwitch.vue.js +251 -0
  210. package/dist/components/switch/EpSwitch2.vue.js +4 -0
  211. package/dist/components/switch/index.d.ts +15 -2
  212. package/dist/components/switch/index.js +10 -4
  213. package/dist/components/switch/switch.d.ts +157 -0
  214. package/dist/components/switch/switch.js +145 -0
  215. package/dist/components/table/src/filter-panel.vue.d.ts +3 -3
  216. package/dist/components/table/src/table-header/index.d.ts +3 -3
  217. package/dist/components/text/index.d.ts +4 -2
  218. package/dist/components/text/index.js +7 -4
  219. package/dist/components/text/src/text.d.ts +43 -0
  220. package/dist/components/text/src/text.js +45 -0
  221. package/dist/components/text/src/text.vue.d.ts +17 -0
  222. package/dist/components/text/src/text.vue.js +63 -0
  223. package/dist/components/text/src/text2.vue.js +4 -0
  224. package/dist/components/time-select/EpTimeSelect.vue.d.ts +38 -0
  225. package/dist/components/time-select/EpTimeSelect.vue.js +154 -0
  226. package/dist/components/time-select/EpTimeSelect2.vue.js +4 -0
  227. package/dist/components/time-select/index.d.ts +17 -2
  228. package/dist/components/time-select/index.js +12 -4
  229. package/dist/components/time-select/time-select.d.ts +143 -0
  230. package/dist/components/time-select/time-select.js +139 -0
  231. package/dist/components/time-select/utils.d.ts +11 -0
  232. package/dist/components/time-select/utils.js +39 -0
  233. package/dist/components/tour/EpTour.vue.d.ts +40 -0
  234. package/dist/components/tour/EpTour.vue.js +174 -0
  235. package/dist/components/tour/EpTour2.vue.js +4 -0
  236. package/dist/components/tour/EpTourContent.vue.d.ts +23 -0
  237. package/dist/components/tour/EpTourContent.vue.js +72 -0
  238. package/dist/components/tour/EpTourContent2.vue.js +4 -0
  239. package/dist/components/tour/EpTourMask.vue.d.ts +7 -0
  240. package/dist/components/tour/EpTourMask.vue.js +76 -0
  241. package/dist/components/tour/EpTourMask2.vue.js +4 -0
  242. package/dist/components/tour/constants.d.ts +10 -0
  243. package/dist/components/tour/constants.js +4 -0
  244. package/dist/components/tour/content.d.ts +49 -0
  245. package/dist/components/tour/content.js +70 -0
  246. package/dist/components/tour/helper.d.ts +36 -0
  247. package/dist/components/tour/helper.js +161 -0
  248. package/dist/components/tour/index.d.ts +28 -2
  249. package/dist/components/tour/index.js +19 -4
  250. package/dist/components/tour/mask.d.ts +43 -0
  251. package/dist/components/tour/steps.d.ts +19 -0
  252. package/dist/components/tour/steps.js +35 -0
  253. package/dist/components/tour/tour.d.ts +136 -0
  254. package/dist/components/tour/tour.js +120 -0
  255. package/dist/components/tour/types.d.ts +21 -0
  256. package/dist/components/tour-step/EpTourStep.vue.d.ts +25 -0
  257. package/dist/components/tour-step/EpTourStep.vue.js +179 -0
  258. package/dist/components/tour-step/EpTourStep2.vue.js +4 -0
  259. package/dist/components/tour-step/index.d.ts +13 -2
  260. package/dist/components/tour-step/index.js +10 -4
  261. package/dist/components/tour-step/step.d.ts +120 -0
  262. package/dist/components/tour-step/step.js +91 -0
  263. package/dist/components/transfer/EpTransfer.vue.d.ts +36 -0
  264. package/dist/components/transfer/EpTransfer.vue.js +195 -0
  265. package/dist/components/transfer/EpTransfer2.vue.js +4 -0
  266. package/dist/components/transfer/EpTransferPanel.vue.d.ts +24 -0
  267. package/dist/components/transfer/EpTransferPanel.vue.js +191 -0
  268. package/dist/components/transfer/EpTransferPanel2.vue.js +4 -0
  269. package/dist/components/transfer/composables/index.d.ts +5 -0
  270. package/dist/components/transfer/composables/use-check.d.ts +286 -0
  271. package/dist/components/transfer/composables/use-check.js +89 -0
  272. package/dist/components/transfer/composables/use-checked-change.d.ts +6 -0
  273. package/dist/components/transfer/composables/use-checked-change.js +12 -0
  274. package/dist/components/transfer/composables/use-computed-data.d.ts +5 -0
  275. package/dist/components/transfer/composables/use-computed-data.js +26 -0
  276. package/dist/components/transfer/composables/use-move.d.ts +6 -0
  277. package/dist/components/transfer/composables/use-move.js +27 -0
  278. package/dist/components/transfer/composables/use-props-alias.d.ts +8 -0
  279. package/dist/components/transfer/composables/use-props-alias.js +15 -0
  280. package/dist/components/transfer/index.d.ts +19 -2
  281. package/dist/components/transfer/index.js +13 -4
  282. package/dist/components/transfer/transfer-panel.d.ts +63 -0
  283. package/dist/components/transfer/transfer-panel.js +32 -0
  284. package/dist/components/transfer/transfer.d.ts +136 -0
  285. package/dist/components/transfer/transfer.js +130 -0
  286. package/dist/components/tree/index.d.ts +7 -2
  287. package/dist/components/tree/index.js +8 -4
  288. package/dist/components/tree/src/instance.d.ts +2 -0
  289. package/dist/components/tree/src/model/node.d.ts +63 -0
  290. package/dist/components/tree/src/model/node.js +263 -0
  291. package/dist/components/tree/src/model/tree-store.d.ts +51 -0
  292. package/dist/components/tree/src/model/tree-store.js +223 -0
  293. package/dist/components/tree/src/model/useDragNode.d.ts +459 -0
  294. package/dist/components/tree/src/model/useDragNode.js +98 -0
  295. package/dist/components/tree/src/model/useKeydown.d.ts +7 -0
  296. package/dist/components/tree/src/model/useKeydown.js +93 -0
  297. package/dist/components/tree/src/model/useNodeExpandEventBroadcast.d.ts +9 -0
  298. package/dist/components/tree/src/model/useNodeExpandEventBroadcast.js +27 -0
  299. package/dist/components/tree/src/model/util.d.ts +7 -0
  300. package/dist/components/tree/src/model/util.js +19 -0
  301. package/dist/components/tree/src/tokens.d.ts +3 -0
  302. package/dist/components/tree/src/tokens.js +6 -0
  303. package/dist/components/tree/src/tree-node-content.vue.d.ts +14 -0
  304. package/dist/components/tree/src/tree-node-content.vue.js +43 -0
  305. package/dist/components/tree/src/tree-node-content2.vue.js +4 -0
  306. package/dist/components/tree/src/tree-node.vue.d.ts +377 -0
  307. package/dist/components/tree/src/tree-node.vue.js +108 -0
  308. package/dist/components/tree/src/tree-node2.vue.js +166 -0
  309. package/dist/components/tree/src/tree.d.ts +103 -0
  310. package/dist/components/tree/src/tree.js +99 -0
  311. package/dist/components/tree/src/tree.type.d.ts +112 -0
  312. package/dist/components/tree/src/tree.vue.d.ts +1745 -0
  313. package/dist/components/tree/src/tree.vue.js +48 -0
  314. package/dist/components/tree/src/tree2.vue.js +192 -0
  315. package/dist/components/tree-select/index.d.ts +3 -2
  316. package/dist/components/tree-select/index.js +7 -4
  317. package/dist/components/tree-select/src/cache-options.d.ts +20 -0
  318. package/dist/components/tree-select/src/cache-options.js +36 -0
  319. package/dist/components/tree-select/src/instance.d.ts +6 -0
  320. package/dist/components/tree-select/src/select.d.ts +11 -0
  321. package/dist/components/tree-select/src/select.js +92 -0
  322. package/dist/components/tree-select/src/tree-select-option.d.ts +364 -0
  323. package/dist/components/tree-select/src/tree-select-option.js +32 -0
  324. package/dist/components/tree-select/src/tree-select.vue.d.ts +412 -0
  325. package/dist/components/tree-select/src/tree-select.vue.js +96 -0
  326. package/dist/components/tree-select/src/tree-select2.vue.js +4 -0
  327. package/dist/components/tree-select/src/tree.d.ts +12 -0
  328. package/dist/components/tree-select/src/tree.js +179 -0
  329. package/dist/components/tree-select/src/utils.d.ts +10 -0
  330. package/dist/components/tree-select/src/utils.js +49 -0
  331. package/dist/components/upload/src/upload-content.vue.d.ts +2 -2
  332. package/dist/components/upload/src/upload.vue.d.ts +2 -2
  333. package/dist/constants/column-alignment.js +4 -0
  334. package/dist/ep-craft.js +367 -279
  335. package/dist/hooks/index.d.ts +1 -0
  336. package/dist/hooks/use-lockscreen/index.d.ts +11 -0
  337. package/dist/hooks/use-lockscreen/index.js +34 -0
  338. package/dist/index.d.ts +98 -0
  339. package/dist/utils/arrays.js +4 -3
  340. package/dist/utils/dom/aria.js +23 -13
  341. package/dist/utils/dom/scroll.js +61 -46
  342. package/dist/utils/vue/icon.js +17 -14
  343. package/dist/utils/vue/validator.js +5 -0
  344. package/dist/utils/vue/vnode.js +24 -12
  345. package/dist/vendored-components.d.ts +1 -1
  346. package/dist/vendored-components.js +69 -5
  347. package/package.json +3 -2
@@ -0,0 +1,39 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import { iconPropType as t } from "../../utils/vue/icon.js";
5
+ import "vue";
6
+ import { buildProps as r } from "../../utils/vue/props/runtime.js";
7
+ const n = r({
8
+ /**
9
+ * @description step title
10
+ */
11
+ title: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ /**
16
+ * @description step custom icon. Icons can be passed via named slot as well
17
+ */
18
+ icon: {
19
+ type: t
20
+ },
21
+ /**
22
+ * @description step description
23
+ */
24
+ description: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ /**
29
+ * @description current status. It will be automatically set by Steps if not configured.
30
+ */
31
+ status: {
32
+ type: String,
33
+ values: ["", "wait", "process", "finish", "error", "success"],
34
+ default: ""
35
+ }
36
+ });
37
+ export {
38
+ n as stepProps
39
+ };
@@ -0,0 +1,23 @@
1
+ import type { StepsProps } from './steps';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<StepsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ change: (newVal: number, oldVal: number) => void;
8
+ }, string, import("vue").PublicProps, Readonly<StepsProps> & Readonly<{
9
+ onChange?: ((newVal: number, oldVal: number) => any) | undefined;
10
+ }>, {
11
+ space: number | string;
12
+ direction: "horizontal" | "vertical";
13
+ active: number;
14
+ finishStatus: import("./steps").StepsStatus;
15
+ processStatus: import("./steps").StepsStatus;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,57 @@
1
+ import { defineComponent as f, getCurrentInstance as u, watch as m, provide as S, openBlock as E, createElementBlock as h, normalizeClass as C, unref as i, renderSlot as v, createVNode as N } from "vue";
2
+ import { CHANGE_EVENT as B } from "../../constants/event.js";
3
+ import { useNamespace as I } from "../../hooks/use-namespace/index.js";
4
+ import { useOrderedChildren as _ } from "../../hooks/use-ordered-children/index.js";
5
+ import "lodash-unified";
6
+ import "@vueuse/core";
7
+ import "@vue/shared";
8
+ import "@element-plus/icons-vue";
9
+ import "../../hooks/use-size/index.js";
10
+ import "@popperjs/core";
11
+ import "../../hooks/use-z-index/index.js";
12
+ import "../../hooks/use-delayed-toggle/index.js";
13
+ import "../../hooks/use-aria/index.js";
14
+ import "../../hooks/use-model-toggle/index.js";
15
+ import "../../hooks/use-empty-values/index.js";
16
+ import { stepsEmits as T } from "./steps.js";
17
+ import { STEPS_INJECTION_KEY as g } from "./tokens.js";
18
+ const q = /* @__PURE__ */ f({
19
+ name: "EpSteps",
20
+ __name: "EpSteps",
21
+ props: {
22
+ space: { default: "" },
23
+ active: { default: 0 },
24
+ direction: { default: "horizontal" },
25
+ alignCenter: { type: Boolean },
26
+ simple: { type: Boolean },
27
+ finishStatus: { default: "finish" },
28
+ processStatus: { default: "process" }
29
+ },
30
+ emits: T,
31
+ setup(r, { emit: n }) {
32
+ const p = r, a = n, s = I("steps"), {
33
+ children: o,
34
+ addChild: l,
35
+ removeChild: d,
36
+ ChildrenSorter: c
37
+ } = _(u(), "EpStep");
38
+ return m(o, () => {
39
+ o.value.forEach((e, t) => {
40
+ e.setIndex(t);
41
+ });
42
+ }), S(g, { props: p, steps: o, addStep: l, removeStep: d }), m(
43
+ () => p.active,
44
+ (e, t) => {
45
+ a(B, e, t);
46
+ }
47
+ ), (e, t) => (E(), h("div", {
48
+ class: C([i(s).b(), i(s).m(r.simple ? "simple" : r.direction)])
49
+ }, [
50
+ v(e.$slots, "default"),
51
+ N(i(c))
52
+ ], 2));
53
+ }
54
+ });
55
+ export {
56
+ q as default
57
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpSteps.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,22 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElSteps } from 'element-plus';
3
- export declare const EpSteps: typeof ElSteps & Plugin;
2
+ import _EpSteps from './EpSteps.vue';
3
+ import _EpStep from '../step/EpStep.vue';
4
+ /**
5
+ * steps 自持 barrel(vendor-batch-1 产出)。
6
+ *
7
+ * 子项识别契约:`EpSteps.vue` 以 `'EpStep'` 调用本地 `useOrderedChildren`,
8
+ * 而 `EpStep.vue` 的 `defineOptions({ name: 'EpStep' })` 使用同一字面量。
9
+ * 两者必须同步修改;不引入跨组件共享常量,避免 Step 反向依赖 Steps 模块。
10
+ *
11
+ * `.Step` 子组件属性是对外公开面的一部分(迁移前包装态经 `Object.assign`
12
+ * 继承自上游),此处以同一形态挂载**本体**,不挂载已安装包装。
13
+ *
14
+ * 不导出 `ElSteps` / `ElStep` 别名;`EpStep` 由 `src/components/step` 独立提供。
15
+ */
16
+ export declare const EpSteps: typeof _EpSteps & Plugin & {
17
+ Step: typeof _EpStep;
18
+ };
4
19
  export default EpSteps;
20
+ export { STEPS_INJECTION_KEY } from './tokens';
21
+ export { stepsEmits, stepsProps } from './steps';
22
+ export type { StepsEmits, StepsInstance, StepsProps, StepsPropsPublic, StepsStatus, } from './steps';
@@ -1,6 +1,10 @@
1
- import { ElSteps as t } from "element-plus";
2
- import { withInstall as p } from "../../utils/with-install.js";
3
- const s = Object.assign({}, t, { name: "EpSteps" }), m = p(s, "ep-steps");
1
+ import { withInstall as s } from "../../utils/with-install.js";
2
+ import t from "./EpSteps.vue.js";
3
+ import p from "../step/EpStep.vue.js";
4
+ import { stepsEmits as n, stepsProps as a } from "./steps.js";
5
+ const e = Object.assign(s(t, "ep-steps"), { Step: p });
4
6
  export {
5
- m as EpSteps
7
+ e as EpSteps,
8
+ n as stepsEmits,
9
+ a as stepsProps
6
10
  };
@@ -0,0 +1,69 @@
1
+ import type Steps from './EpSteps.vue';
2
+ import type { ExtractPublicPropTypes } from 'vue';
3
+ export type StepsStatus = 'wait' | 'process' | 'finish' | 'error' | 'success';
4
+ export interface StepsProps {
5
+ /**
6
+ * @description the spacing of each step, will be responsive if omitted. Supports percentage.
7
+ * @default ''
8
+ */
9
+ space?: number | string;
10
+ /**
11
+ * @description current activation step
12
+ * @default 0
13
+ */
14
+ active?: number;
15
+ /**
16
+ * @description display direction
17
+ * @default 'horizontal'
18
+ */
19
+ direction?: 'horizontal' | 'vertical';
20
+ /**
21
+ * @description center title and description
22
+ */
23
+ alignCenter?: boolean;
24
+ /**
25
+ * @description whether to apply simple theme
26
+ */
27
+ simple?: boolean;
28
+ /**
29
+ * @description status of end step
30
+ * @default 'finish'
31
+ */
32
+ finishStatus?: StepsStatus;
33
+ /**
34
+ * @description status of current step
35
+ * @default 'process'
36
+ */
37
+ processStatus?: StepsStatus;
38
+ }
39
+ /**
40
+ * @deprecated Removed after 3.0.0, Use `StepsProps` instead.
41
+ */
42
+ export declare const stepsProps: {
43
+ readonly space: import("@element-plus/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
44
+ readonly active: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
45
+ readonly direction: import("@element-plus/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
46
+ readonly alignCenter: {
47
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
48
+ readonly required: false;
49
+ readonly validator: ((val: unknown) => boolean) | undefined;
50
+ __epPropKey: true;
51
+ };
52
+ readonly simple: {
53
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
54
+ readonly required: false;
55
+ readonly validator: ((val: unknown) => boolean) | undefined;
56
+ __epPropKey: true;
57
+ };
58
+ readonly finishStatus: import("@element-plus/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "finish", boolean>;
59
+ readonly processStatus: import("@element-plus/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "process", boolean>;
60
+ };
61
+ /**
62
+ * @deprecated Removed after 3.0.0, Use `StepsProps` instead.
63
+ */
64
+ export type StepsPropsPublic = ExtractPublicPropTypes<typeof stepsProps>;
65
+ export declare const stepsEmits: {
66
+ change: (newVal: number, oldVal: number) => boolean;
67
+ };
68
+ export type StepsEmits = typeof stepsEmits;
69
+ export type StepsInstance = InstanceType<typeof Steps> & unknown;
@@ -0,0 +1,66 @@
1
+ import { CHANGE_EVENT as r } from "../../constants/event.js";
2
+ import { isNumber as s } from "../../utils/types.js";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import "@vue/shared";
6
+ import "@element-plus/icons-vue";
7
+ import { buildProps as i } from "../../utils/vue/props/runtime.js";
8
+ import "vue";
9
+ const f = i({
10
+ /**
11
+ * @description the spacing of each step, will be responsive if omitted. Supports percentage.
12
+ */
13
+ space: {
14
+ type: [Number, String],
15
+ default: ""
16
+ },
17
+ /**
18
+ * @description current activation step
19
+ */
20
+ active: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ /**
25
+ * @description display direction
26
+ */
27
+ direction: {
28
+ type: String,
29
+ default: "horizontal",
30
+ values: ["horizontal", "vertical"]
31
+ },
32
+ /**
33
+ * @description center title and description
34
+ */
35
+ alignCenter: {
36
+ type: Boolean
37
+ },
38
+ /**
39
+ * @description whether to apply simple theme
40
+ */
41
+ simple: {
42
+ type: Boolean
43
+ },
44
+ /**
45
+ * @description status of end step
46
+ */
47
+ finishStatus: {
48
+ type: String,
49
+ values: ["wait", "process", "finish", "error", "success"],
50
+ default: "finish"
51
+ },
52
+ /**
53
+ * @description status of current step
54
+ */
55
+ processStatus: {
56
+ type: String,
57
+ values: ["wait", "process", "finish", "error", "success"],
58
+ default: "process"
59
+ }
60
+ }), y = {
61
+ [r]: (t, e) => [t, e].every(s)
62
+ };
63
+ export {
64
+ y as stepsEmits,
65
+ f as stepsProps
66
+ };
@@ -0,0 +1 @@
1
+ export declare const STEPS_INJECTION_KEY = "ElSteps";
@@ -0,0 +1,4 @@
1
+ const E = "ElSteps";
2
+ export {
3
+ E as STEPS_INJECTION_KEY
4
+ };
@@ -0,0 +1,50 @@
1
+ import type { SwitchProps } from './switch';
2
+ declare var __VLS_1: {}, __VLS_11: {}, __VLS_21: {}, __VLS_39: {}, __VLS_49: {}, __VLS_59: {};
3
+ type __VLS_Slots = {} & {
4
+ inactive?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ inactive?: (props: typeof __VLS_11) => any;
7
+ } & {
8
+ active?: (props: typeof __VLS_21) => any;
9
+ } & {
10
+ 'active-action'?: (props: typeof __VLS_39) => any;
11
+ } & {
12
+ 'inactive-action'?: (props: typeof __VLS_49) => any;
13
+ } & {
14
+ active?: (props: typeof __VLS_59) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<SwitchProps, {
17
+ /**
18
+ * @description manual focus to the switch component
19
+ **/
20
+ focus: () => void;
21
+ /**
22
+ * @description whether Switch is checked
23
+ */
24
+ checked: import("vue").ComputedRef<boolean>;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:modelValue": (val: string | number | boolean) => void;
27
+ change: (val: string | number | boolean) => void;
28
+ input: (val: string | number | boolean) => void;
29
+ }, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
30
+ "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
31
+ onChange?: ((val: string | number | boolean) => any) | undefined;
32
+ onInput?: ((val: string | number | boolean) => any) | undefined;
33
+ }>, {
34
+ name: string;
35
+ width: string | number;
36
+ disabled: boolean;
37
+ modelValue: boolean | string | number;
38
+ validateEvent: boolean;
39
+ activeText: string;
40
+ inactiveText: string;
41
+ activeValue: boolean | string | number;
42
+ inactiveValue: boolean | string | number;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,251 @@
1
+ import { defineComponent as W, computed as d, ref as j, shallowRef as q, watch as P, onMounted as J, openBlock as t, createElementBlock as r, withModifiers as Q, normalizeClass as v, createElementVNode as C, withKeys as X, unref as i, renderSlot as y, createBlock as u, withCtx as m, resolveDynamicComponent as k, createCommentVNode as o, toDisplayString as E, normalizeStyle as Y, createVNode as Z, nextTick as p } from "vue";
2
+ import { isBoolean as _ } from "../../utils/types.js";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { debugWarn as S, throwError as ee } from "../../utils/error.js";
6
+ import { NOOP as te, isPromise as A } from "@vue/shared";
7
+ import { UPDATE_MODEL_EVENT as $, CHANGE_EVENT as O, INPUT_EVENT as D } from "../../constants/event.js";
8
+ import { addUnit as ae } from "../../utils/dom/style.js";
9
+ import { Loading as ie } from "@element-plus/icons-vue";
10
+ import { EpIcon as f } from "../icon/index.js";
11
+ import "../form/index.js";
12
+ import { useNamespace as ne } from "../../hooks/use-namespace/index.js";
13
+ import "../../hooks/use-size/index.js";
14
+ import "@popperjs/core";
15
+ import "../../hooks/use-z-index/index.js";
16
+ import "../../hooks/use-delayed-toggle/index.js";
17
+ import "../../hooks/use-aria/index.js";
18
+ import "../../hooks/use-model-toggle/index.js";
19
+ import "../../hooks/use-empty-values/index.js";
20
+ import { switchEmits as le } from "./switch.js";
21
+ import { useFormItem as ce, useFormItemInputId as oe } from "../form/src/hooks/use-form-item.js";
22
+ import { useFormSize as ue, useFormDisabled as se } from "../form/src/hooks/use-form-common-props.js";
23
+ const re = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex"], ve = ["aria-hidden"], de = { key: 1 }, me = { key: 1 }, fe = ["aria-hidden"], g = "EpSwitch", Me = /* @__PURE__ */ W({
24
+ name: g,
25
+ __name: "EpSwitch",
26
+ props: {
27
+ modelValue: { type: [Boolean, String, Number], default: !1 },
28
+ disabled: { type: Boolean, default: void 0 },
29
+ loading: { type: Boolean },
30
+ size: {},
31
+ width: { default: "" },
32
+ inlinePrompt: { type: Boolean },
33
+ inactiveActionIcon: {},
34
+ activeActionIcon: {},
35
+ activeIcon: {},
36
+ inactiveIcon: {},
37
+ activeText: { default: "" },
38
+ inactiveText: { default: "" },
39
+ activeValue: { type: [Boolean, String, Number], default: !0 },
40
+ inactiveValue: { type: [Boolean, String, Number], default: !1 },
41
+ name: { default: "" },
42
+ validateEvent: { type: Boolean, default: !0 },
43
+ beforeChange: {},
44
+ id: {},
45
+ tabindex: {},
46
+ ariaLabel: {}
47
+ },
48
+ emits: le,
49
+ setup(e, { expose: z, emit: K }) {
50
+ const l = e, h = K, { formItem: b } = ce(), L = ue(), n = ne("switch"), { inputId: M } = oe(l, {
51
+ formItemContext: b
52
+ }), V = se(
53
+ d(() => {
54
+ if (l.loading)
55
+ return !0;
56
+ })
57
+ ), N = j(l.modelValue !== !1), I = q(), F = d(() => [
58
+ n.b(),
59
+ n.m(L.value),
60
+ n.is("disabled", V.value),
61
+ n.is("checked", c.value)
62
+ ]), U = d(() => [
63
+ n.e("label"),
64
+ n.em("label", "left"),
65
+ n.is("active", !c.value)
66
+ ]), R = d(() => [
67
+ n.e("label"),
68
+ n.em("label", "right"),
69
+ n.is("active", c.value)
70
+ ]), G = d(() => ({
71
+ width: ae(l.width)
72
+ }));
73
+ P(
74
+ () => l.modelValue,
75
+ () => {
76
+ N.value = !0;
77
+ }
78
+ );
79
+ const x = d(() => N.value ? l.modelValue : !1), c = d(() => x.value === l.activeValue);
80
+ [l.activeValue, l.inactiveValue].includes(x.value) || (S(
81
+ g,
82
+ "model-value must be active-value or inactive-value"
83
+ ), h($, l.inactiveValue), h(O, l.inactiveValue), h(D, l.inactiveValue)), P(c, (a) => {
84
+ var s;
85
+ I.value.checked = a, l.validateEvent && ((s = b == null ? void 0 : b.validate) == null || s.call(b, "change").catch(te));
86
+ });
87
+ const w = () => {
88
+ const a = c.value ? l.inactiveValue : l.activeValue;
89
+ h($, a), h(O, a), h(D, a), p(() => {
90
+ I.value.checked = c.value;
91
+ });
92
+ }, B = () => {
93
+ if (V.value) return;
94
+ const { beforeChange: a } = l;
95
+ if (!a) {
96
+ w();
97
+ return;
98
+ }
99
+ const s = a();
100
+ [
101
+ A(s),
102
+ _(s)
103
+ ].includes(!0) || ee(
104
+ g,
105
+ "beforeChange must return type `Promise<boolean>` or `boolean`"
106
+ ), A(s) ? s.then((T) => {
107
+ T && w();
108
+ }).catch((T) => {
109
+ S(g, `some error occurred: ${T}`);
110
+ }) : s && w();
111
+ }, H = () => {
112
+ var a, s;
113
+ (s = (a = I.value) == null ? void 0 : a.focus) == null || s.call(a);
114
+ };
115
+ return J(() => {
116
+ I.value.checked = c.value;
117
+ }), z({
118
+ /**
119
+ * @description manual focus to the switch component
120
+ **/
121
+ focus: H,
122
+ /**
123
+ * @description whether Switch is checked
124
+ */
125
+ checked: c
126
+ }), (a, s) => (t(), r("div", {
127
+ class: v(F.value),
128
+ onClick: Q(B, ["prevent"])
129
+ }, [
130
+ C("input", {
131
+ id: i(M),
132
+ ref_key: "input",
133
+ ref: I,
134
+ class: v(i(n).e("input")),
135
+ type: "checkbox",
136
+ role: "switch",
137
+ "aria-checked": c.value,
138
+ "aria-disabled": i(V),
139
+ "aria-label": e.ariaLabel,
140
+ name: e.name,
141
+ "true-value": e.activeValue,
142
+ "false-value": e.inactiveValue,
143
+ disabled: i(V),
144
+ tabindex: e.tabindex,
145
+ onChange: w,
146
+ onKeydown: X(B, ["enter"])
147
+ }, null, 42, re),
148
+ !e.inlinePrompt && (e.inactiveIcon || e.inactiveText || a.$slots.inactive) ? (t(), r("span", {
149
+ key: 0,
150
+ class: v(U.value)
151
+ }, [
152
+ y(a.$slots, "inactive", {}, () => [
153
+ e.inactiveIcon ? (t(), u(i(f), { key: 0 }, {
154
+ default: m(() => [
155
+ (t(), u(k(e.inactiveIcon)))
156
+ ]),
157
+ _: 1
158
+ })) : o("", !0),
159
+ !e.inactiveIcon && e.inactiveText ? (t(), r("span", {
160
+ key: 1,
161
+ "aria-hidden": c.value
162
+ }, E(e.inactiveText), 9, ve)) : o("", !0)
163
+ ])
164
+ ], 2)) : o("", !0),
165
+ C("span", {
166
+ class: v(i(n).e("core")),
167
+ style: Y(G.value)
168
+ }, [
169
+ e.inlinePrompt ? (t(), r("div", {
170
+ key: 0,
171
+ class: v(i(n).e("inner"))
172
+ }, [
173
+ c.value ? (t(), r("div", {
174
+ key: 1,
175
+ class: v(i(n).e("inner-wrapper"))
176
+ }, [
177
+ y(a.$slots, "active", {}, () => [
178
+ e.activeIcon ? (t(), u(i(f), { key: 0 }, {
179
+ default: m(() => [
180
+ (t(), u(k(e.activeIcon)))
181
+ ]),
182
+ _: 1
183
+ })) : o("", !0),
184
+ !e.activeIcon && e.activeText ? (t(), r("span", me, E(e.activeText), 1)) : o("", !0)
185
+ ])
186
+ ], 2)) : (t(), r("div", {
187
+ key: 0,
188
+ class: v(i(n).e("inner-wrapper"))
189
+ }, [
190
+ y(a.$slots, "inactive", {}, () => [
191
+ e.inactiveIcon ? (t(), u(i(f), { key: 0 }, {
192
+ default: m(() => [
193
+ (t(), u(k(e.inactiveIcon)))
194
+ ]),
195
+ _: 1
196
+ })) : o("", !0),
197
+ !e.inactiveIcon && e.inactiveText ? (t(), r("span", de, E(e.inactiveText), 1)) : o("", !0)
198
+ ])
199
+ ], 2))
200
+ ], 2)) : o("", !0),
201
+ C("div", {
202
+ class: v(i(n).e("action"))
203
+ }, [
204
+ e.loading ? (t(), u(i(f), {
205
+ key: 0,
206
+ class: v(i(n).is("loading"))
207
+ }, {
208
+ default: m(() => [
209
+ Z(i(ie))
210
+ ]),
211
+ _: 1
212
+ }, 8, ["class"])) : c.value ? y(a.$slots, "active-action", {}, () => [
213
+ e.activeActionIcon ? (t(), u(i(f), { key: 0 }, {
214
+ default: m(() => [
215
+ (t(), u(k(e.activeActionIcon)))
216
+ ]),
217
+ _: 1
218
+ })) : o("", !0)
219
+ ], void 0, 1) : c.value ? o("", !0) : y(a.$slots, "inactive-action", {}, () => [
220
+ e.inactiveActionIcon ? (t(), u(i(f), { key: 0 }, {
221
+ default: m(() => [
222
+ (t(), u(k(e.inactiveActionIcon)))
223
+ ]),
224
+ _: 1
225
+ })) : o("", !0)
226
+ ], void 0, 2)
227
+ ], 2)
228
+ ], 6),
229
+ !e.inlinePrompt && (e.activeIcon || e.activeText || a.$slots.active) ? (t(), r("span", {
230
+ key: 1,
231
+ class: v(R.value)
232
+ }, [
233
+ y(a.$slots, "active", {}, () => [
234
+ e.activeIcon ? (t(), u(i(f), { key: 0 }, {
235
+ default: m(() => [
236
+ (t(), u(k(e.activeIcon)))
237
+ ]),
238
+ _: 1
239
+ })) : o("", !0),
240
+ !e.activeIcon && e.activeText ? (t(), r("span", {
241
+ key: 1,
242
+ "aria-hidden": !c.value
243
+ }, E(e.activeText), 9, fe)) : o("", !0)
244
+ ])
245
+ ], 2)) : o("", !0)
246
+ ], 2));
247
+ }
248
+ });
249
+ export {
250
+ Me as default
251
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpSwitch.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,17 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElSwitch } from 'element-plus';
3
- export declare const EpSwitch: typeof ElSwitch & Plugin;
2
+ import _EpSwitch from './EpSwitch.vue';
3
+ /**
4
+ * switch 自持 barrel(vendor-batch-1 产出)。
5
+ *
6
+ * 本体来自本地 `EpSwitch.vue`,不再引用 element-plus 包对象。修复的关键不在
7
+ * barrel,而在本体的跨包导入:`@element-plus/components/form` 经 Vite alias
8
+ * 解析到本地 form 中枢,因此 `useFormDisabled` / `useFormSize` /
9
+ * `useFormItemInputId` 读的是本地 Symbol,与 `<ep-form>` / `<ep-form-item>`
10
+ * 的 provide 一致(迁移前包装态读的是 element-plus 包内 Symbol,永不匹配)。
11
+ *
12
+ * 不使用 `export *`,公开面按上游组件级 barrel 显式列出;不导出 `ElSwitch` 别名。
13
+ */
14
+ export declare const EpSwitch: typeof _EpSwitch & Plugin;
4
15
  export default EpSwitch;
16
+ export { switchEmits, switchProps } from './switch';
17
+ export type { SwitchEmits, SwitchInstance, SwitchProps, SwitchPropsPublic, } from './switch';
@@ -1,6 +1,12 @@
1
- import { ElSwitch as t } from "element-plus";
2
- import { withInstall as i } from "../../utils/with-install.js";
3
- const c = Object.assign({}, t, { name: "EpSwitch" }), h = i(c, "ep-switch");
1
+ import { withInstall as t } from "../../utils/with-install.js";
2
+ import i from "./EpSwitch.vue.js";
3
+ import { switchEmits as c, switchProps as h } from "./switch.js";
4
+ const s = t(
5
+ i,
6
+ "ep-switch"
7
+ );
4
8
  export {
5
- h as EpSwitch
9
+ s as EpSwitch,
10
+ c as switchEmits,
11
+ h as switchProps
6
12
  };