ep-craft 0.1.37 → 0.1.38

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 (286) hide show
  1. package/dist/components/badge/index.js +6 -5
  2. package/dist/components/calendar/EpCalendar.vue.d.ts +50 -0
  3. package/dist/components/calendar/EpCalendar.vue.js +154 -0
  4. package/dist/components/calendar/EpCalendar2.vue.js +4 -0
  5. package/dist/components/calendar/EpDateTable.vue.d.ts +27 -0
  6. package/dist/components/calendar/EpDateTable.vue.js +89 -0
  7. package/dist/components/calendar/EpDateTable2.vue.js +4 -0
  8. package/dist/components/calendar/EpSelectController.vue.d.ts +8 -0
  9. package/dist/components/calendar/EpSelectController.vue.js +88 -0
  10. package/dist/components/calendar/EpSelectController2.vue.js +4 -0
  11. package/dist/components/calendar/calendar.d.ts +54 -0
  12. package/dist/components/calendar/calendar.js +45 -0
  13. package/dist/components/calendar/date-table.d.ts +53 -0
  14. package/dist/components/calendar/date-table.js +41 -0
  15. package/dist/components/calendar/index.d.ts +13 -2
  16. package/dist/components/calendar/index.js +9 -4
  17. package/dist/components/calendar/instance.d.ts +5 -0
  18. package/dist/components/calendar/select-controller.d.ts +31 -0
  19. package/dist/components/calendar/select-controller.js +21 -0
  20. package/dist/components/calendar/use-calendar.d.ts +13 -0
  21. package/dist/components/calendar/use-calendar.js +84 -0
  22. package/dist/components/calendar/use-date-table.d.ts +18 -0
  23. package/dist/components/calendar/use-date-table.js +99 -0
  24. package/dist/components/carousel/EpCarousel.vue.d.ts +1 -1
  25. package/dist/components/cascader/EpCascader.vue.d.ts +4 -4
  26. package/dist/components/config-provider/index.js +5 -4
  27. package/dist/components/config-provider/src/config-provider-props.d.ts +3 -6
  28. package/dist/components/config-provider/src/config-provider-props.js +1 -1
  29. package/dist/components/config-provider/src/hooks/use-global-config.js +75 -47
  30. package/dist/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  31. package/dist/components/date-picker-panel/src/date-picker-panel.d.ts +1 -1
  32. package/dist/components/dialog/EpDialog.vue.d.ts +61 -0
  33. package/dist/components/dialog/EpDialog.vue.js +214 -0
  34. package/dist/components/dialog/EpDialog2.vue.js +4 -0
  35. package/dist/components/dialog/EpDialogContent.vue.d.ts +31 -0
  36. package/dist/components/dialog/EpDialogContent.vue.js +108 -0
  37. package/dist/components/dialog/EpDialogContent2.vue.js +4 -0
  38. package/dist/components/dialog/constants.d.ts +12 -0
  39. package/dist/components/dialog/constants.js +5 -0
  40. package/dist/components/dialog/dialog-content.d.ts +84 -0
  41. package/dist/components/dialog/dialog-content.js +90 -0
  42. package/dist/components/dialog/dialog.d.ts +173 -0
  43. package/dist/components/dialog/dialog.js +156 -0
  44. package/dist/components/dialog/index.d.ts +20 -2
  45. package/dist/components/dialog/index.js +24 -4
  46. package/dist/components/dialog/instance.d.ts +2 -0
  47. package/dist/components/dialog/use-dialog.d.ts +35 -0
  48. package/dist/components/dialog/use-dialog.js +176 -0
  49. package/dist/components/drawer/EpDrawer.vue.d.ts +67 -0
  50. package/dist/components/drawer/EpDrawer.vue.js +234 -0
  51. package/dist/components/drawer/EpDrawer2.vue.js +4 -0
  52. package/dist/components/drawer/drawer.d.ts +105 -0
  53. package/dist/components/drawer/drawer.js +42 -0
  54. package/dist/components/drawer/index.d.ts +14 -2
  55. package/dist/components/drawer/index.js +9 -4
  56. package/dist/components/drawer/instance.d.ts +2 -0
  57. package/dist/components/drawer/useResizable.d.ts +7 -0
  58. package/dist/components/drawer/useResizable.js +50 -0
  59. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +2 -2
  60. package/dist/components/dropdown/src/dropdown-item2.vue.js +2 -2
  61. package/dist/components/dropdown/src/dropdown-menu2.vue.js +2 -2
  62. package/dist/components/dropdown/src/dropdown2.vue.js +2 -2
  63. package/dist/components/empty/index.js +2 -1
  64. package/dist/components/form/index.js +11 -9
  65. package/dist/components/form/src/form-item.js +5 -5
  66. package/dist/components/form/src/form.js +5 -6
  67. package/dist/components/form-item/index.js +6 -5
  68. package/dist/components/infinite-scroll/index.d.ts +26 -0
  69. package/dist/components/infinite-scroll/index.js +15 -0
  70. package/dist/components/infinite-scroll/src/index.d.ts +20 -0
  71. package/dist/components/infinite-scroll/src/index.js +109 -0
  72. package/dist/components/loading/index.d.ts +15 -0
  73. package/dist/components/loading/index.js +13 -0
  74. package/dist/components/loading/src/directive.d.ts +13 -0
  75. package/dist/components/loading/src/directive.js +62 -0
  76. package/dist/components/loading/src/loading.d.ts +34 -0
  77. package/dist/components/loading/src/loading.js +121 -0
  78. package/dist/components/loading/src/service.d.ts +8 -0
  79. package/dist/components/loading/src/service.js +67 -0
  80. package/dist/components/loading/src/types.d.ts +47 -0
  81. package/dist/components/message/index.d.ts +3 -0
  82. package/dist/components/message/index.js +18 -0
  83. package/dist/components/message/src/instance.d.ts +18 -0
  84. package/dist/components/message/src/instance.js +18 -0
  85. package/dist/components/message/src/message.d.ts +175 -0
  86. package/dist/components/message/src/message.js +160 -0
  87. package/dist/components/message/src/message.vue.d.ts +38 -0
  88. package/dist/components/message/src/message.vue.js +156 -0
  89. package/dist/components/message/src/message2.vue.js +4 -0
  90. package/dist/components/message/src/method.d.ts +5 -0
  91. package/dist/components/message/src/method.js +123 -0
  92. package/dist/components/message-box/index.d.ts +6 -0
  93. package/dist/components/message-box/index.js +9 -0
  94. package/dist/components/message-box/src/index.vue.d.ts +5517 -0
  95. package/dist/components/message-box/src/index.vue.js +203 -0
  96. package/dist/components/message-box/src/index2.vue.js +237 -0
  97. package/dist/components/message-box/src/message-box.type.d.ts +167 -0
  98. package/dist/components/message-box/src/messageBox.d.ts +3 -0
  99. package/dist/components/message-box/src/messageBox.js +102 -0
  100. package/dist/components/notification/index.d.ts +3 -0
  101. package/dist/components/notification/index.js +15 -0
  102. package/dist/components/notification/src/notification.d.ts +157 -0
  103. package/dist/components/notification/src/notification.js +127 -0
  104. package/dist/components/notification/src/notification.vue.d.ts +34 -0
  105. package/dist/components/notification/src/notification.vue.js +146 -0
  106. package/dist/components/notification/src/notification2.vue.js +4 -0
  107. package/dist/components/notification/src/notify.d.ts +15 -0
  108. package/dist/components/notification/src/notify.js +100 -0
  109. package/dist/components/option/index.js +3 -3
  110. package/dist/components/overlay/index.d.ts +8 -0
  111. package/dist/components/overlay/overlay.d.ts +73 -0
  112. package/dist/components/overlay/overlay.js +80 -0
  113. package/dist/components/page-header/EpPageHeader.vue.d.ts +30 -0
  114. package/dist/components/page-header/EpPageHeader.vue.js +109 -0
  115. package/dist/components/page-header/EpPageHeader2.vue.js +4 -0
  116. package/dist/components/page-header/index.d.ts +13 -2
  117. package/dist/components/page-header/index.js +9 -4
  118. package/dist/components/page-header/instance.d.ts +2 -0
  119. package/dist/components/page-header/page-header.d.ts +26 -0
  120. package/dist/components/page-header/page-header.js +33 -0
  121. package/dist/components/popconfirm/EpPopconfirm.vue.d.ts +36 -0
  122. package/dist/components/popconfirm/EpPopconfirm.vue.js +146 -0
  123. package/dist/components/popconfirm/EpPopconfirm2.vue.js +4 -0
  124. package/dist/components/popconfirm/index.d.ts +14 -2
  125. package/dist/components/popconfirm/index.js +9 -4
  126. package/dist/components/popconfirm/instance.d.ts +2 -0
  127. package/dist/components/popconfirm/popconfirm.d.ts +106 -0
  128. package/dist/components/popconfirm/popconfirm.js +103 -0
  129. package/dist/components/progress/src/progress.vue.d.ts +1 -1
  130. package/dist/components/roving-focus-group/index.js +2 -2
  131. package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +19 -11
  132. package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +11 -19
  133. package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +76 -18
  134. package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +18 -76
  135. package/dist/components/select/index.d.ts +21 -21
  136. package/dist/components/select/select.vue.d.ts +7 -7
  137. package/dist/components/select/select2.vue.js +12 -12
  138. package/dist/components/select/src/option.vue.js +5 -5
  139. package/dist/components/select-v2/src/select.vue.d.ts +8 -8
  140. package/dist/components/table-v2/index.d.ts +21 -2
  141. package/dist/components/table-v2/index.js +11 -4
  142. package/dist/components/table-v2/src/EpTableV2.d.ts +359 -0
  143. package/dist/components/table-v2/src/EpTableV2.js +287 -0
  144. package/dist/components/table-v2/src/cell.d.ts +27 -0
  145. package/dist/components/table-v2/src/common.d.ts +42 -0
  146. package/dist/components/table-v2/src/common.js +38 -0
  147. package/dist/components/table-v2/src/components/cell.d.ts +4 -0
  148. package/dist/components/table-v2/src/components/cell.js +20 -0
  149. package/dist/components/table-v2/src/components/expand-icon.d.ts +15 -0
  150. package/dist/components/table-v2/src/components/expand-icon.js +30 -0
  151. package/dist/components/table-v2/src/components/header-cell.d.ts +4 -0
  152. package/dist/components/table-v2/src/components/header-cell.js +15 -0
  153. package/dist/components/table-v2/src/components/header-row.d.ts +59 -0
  154. package/dist/components/table-v2/src/components/header-row.js +41 -0
  155. package/dist/components/table-v2/src/components/header.d.ts +105 -0
  156. package/dist/components/table-v2/src/components/header.js +98 -0
  157. package/dist/components/table-v2/src/components/index.d.ts +11 -0
  158. package/dist/components/table-v2/src/components/row.d.ts +166 -0
  159. package/dist/components/table-v2/src/components/row.js +176 -0
  160. package/dist/components/table-v2/src/components/sort-icon.d.ts +9 -0
  161. package/dist/components/table-v2/src/components/sort-icon.js +21 -0
  162. package/dist/components/table-v2/src/composables/index.d.ts +11 -0
  163. package/dist/components/table-v2/src/composables/use-columns.d.ts +128 -0
  164. package/dist/components/table-v2/src/composables/use-columns.js +73 -0
  165. package/dist/components/table-v2/src/composables/use-data.d.ts +14 -0
  166. package/dist/components/table-v2/src/composables/use-data.js +33 -0
  167. package/dist/components/table-v2/src/composables/use-row.d.ts +31 -0
  168. package/dist/components/table-v2/src/composables/use-row.js +83 -0
  169. package/dist/components/table-v2/src/composables/use-scrollbar.d.ts +31 -0
  170. package/dist/components/table-v2/src/composables/use-scrollbar.js +53 -0
  171. package/dist/components/table-v2/src/composables/use-styles.d.ts +23 -0
  172. package/dist/components/table-v2/src/composables/use-styles.js +66 -0
  173. package/dist/components/table-v2/src/composables/utils.d.ts +3 -0
  174. package/dist/components/table-v2/src/composables/utils.js +19 -0
  175. package/dist/components/table-v2/src/constants.d.ts +18 -0
  176. package/dist/components/table-v2/src/constants.js +12 -0
  177. package/dist/components/table-v2/src/grid.d.ts +105 -0
  178. package/dist/components/table-v2/src/grid.js +56 -0
  179. package/dist/components/table-v2/src/header-cell.d.ts +13 -0
  180. package/dist/components/table-v2/src/header-row.d.ts +26 -0
  181. package/dist/components/table-v2/src/header-row.js +20 -0
  182. package/dist/components/table-v2/src/header.d.ts +44 -0
  183. package/dist/components/table-v2/src/header.js +35 -0
  184. package/dist/components/table-v2/src/private.d.ts +1 -0
  185. package/dist/components/table-v2/src/private.js +4 -0
  186. package/dist/components/table-v2/src/renderers/cell.d.ts +11 -0
  187. package/dist/components/table-v2/src/renderers/cell.js +101 -0
  188. package/dist/components/table-v2/src/renderers/empty.d.ts +7 -0
  189. package/dist/components/table-v2/src/renderers/empty.js +15 -0
  190. package/dist/components/table-v2/src/renderers/footer.d.ts +7 -0
  191. package/dist/components/table-v2/src/renderers/footer.js +14 -0
  192. package/dist/components/table-v2/src/renderers/header-cell.d.ts +14 -0
  193. package/dist/components/table-v2/src/renderers/header-cell.js +77 -0
  194. package/dist/components/table-v2/src/renderers/header.d.ts +9 -0
  195. package/dist/components/table-v2/src/renderers/header.js +53 -0
  196. package/dist/components/table-v2/src/renderers/left-table.d.ts +8 -0
  197. package/dist/components/table-v2/src/renderers/left-table.js +22 -0
  198. package/dist/components/table-v2/src/renderers/main-table.d.ts +8 -0
  199. package/dist/components/table-v2/src/renderers/main-table.js +21 -0
  200. package/dist/components/table-v2/src/renderers/overlay.d.ts +3 -0
  201. package/dist/components/table-v2/src/renderers/overlay.js +14 -0
  202. package/dist/components/table-v2/src/renderers/right-table.d.ts +8 -0
  203. package/dist/components/table-v2/src/renderers/right-table.js +22 -0
  204. package/dist/components/table-v2/src/renderers/row.d.ts +11 -0
  205. package/dist/components/table-v2/src/renderers/row.js +98 -0
  206. package/dist/components/table-v2/src/row.d.ts +101 -0
  207. package/dist/components/table-v2/src/row.js +53 -0
  208. package/dist/components/table-v2/src/table-grid.d.ts +236 -0
  209. package/dist/components/table-v2/src/table-grid.js +240 -0
  210. package/dist/components/table-v2/src/table.d.ts +194 -0
  211. package/dist/components/table-v2/src/table.js +134 -0
  212. package/dist/components/table-v2/src/tokens.d.ts +9 -0
  213. package/dist/components/table-v2/src/tokens.js +5 -0
  214. package/dist/components/table-v2/src/types.d.ts +99 -0
  215. package/dist/components/table-v2/src/use-table.d.ts +98 -0
  216. package/dist/components/table-v2/src/use-table.js +162 -0
  217. package/dist/components/table-v2/src/utils.d.ts +8 -0
  218. package/dist/components/table-v2/src/utils.js +15 -0
  219. package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  220. package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  221. package/dist/components/tour/EpTour.vue.d.ts +1 -1
  222. package/dist/components/tree-select/src/tree-select.vue.d.ts +10 -10
  223. package/dist/components/tree-v2/EpTreeNode.vue.d.ts +17 -0
  224. package/dist/components/tree-v2/EpTreeNode.vue.js +127 -0
  225. package/dist/components/tree-v2/EpTreeNode2.vue.js +4 -0
  226. package/dist/components/tree-v2/EpTreeV2.vue.d.ts +61 -0
  227. package/dist/components/tree-v2/EpTreeV2.vue.js +168 -0
  228. package/dist/components/tree-v2/EpTreeV22.vue.js +4 -0
  229. package/dist/components/tree-v2/composables/useCheck.d.ts +15 -0
  230. package/dist/components/tree-v2/composables/useCheck.js +142 -0
  231. package/dist/components/tree-v2/composables/useFilter.d.ts +8 -0
  232. package/dist/components/tree-v2/composables/useFilter.js +50 -0
  233. package/dist/components/tree-v2/composables/useTree.d.ts +404 -0
  234. package/dist/components/tree-v2/composables/useTree.js +228 -0
  235. package/dist/components/tree-v2/index.d.ts +11 -2
  236. package/dist/components/tree-v2/index.js +5 -2
  237. package/dist/components/tree-v2/instance.d.ts +2 -0
  238. package/dist/components/tree-v2/tree-node-content.d.ts +20 -0
  239. package/dist/components/tree-v2/tree-node-content.js +33 -0
  240. package/dist/components/tree-v2/types.d.ts +97 -0
  241. package/dist/components/tree-v2/virtual-tree.d.ts +122 -0
  242. package/dist/components/tree-v2/virtual-tree.js +140 -0
  243. package/dist/components/virtual-list/src/builders/build-grid.d.ts +211 -0
  244. package/dist/components/virtual-list/src/builders/build-grid.js +449 -0
  245. package/dist/components/virtual-list/src/components/dynamic-size-grid.d.ts +212 -0
  246. package/dist/components/virtual-list/src/components/dynamic-size-grid.js +200 -0
  247. package/dist/components/virtual-list/src/components/fixed-size-grid.d.ts +199 -0
  248. package/dist/components/virtual-list/src/components/fixed-size-grid.js +126 -0
  249. package/dist/components/virtual-list/src/hooks/use-grid-touch.d.ts +8 -0
  250. package/dist/components/virtual-list/src/hooks/use-grid-touch.js +40 -0
  251. package/dist/components/virtual-list/src/hooks/use-grid-wheel.d.ts +13 -0
  252. package/dist/components/virtual-list/src/hooks/use-grid-wheel.js +30 -0
  253. package/dist/components/virtual-list/src/props.js +16 -17
  254. package/dist/components/virtual-list/src/utils.js +14 -13
  255. package/dist/components/watermark/EpWatermark.vue.d.ts +18 -0
  256. package/dist/components/watermark/EpWatermark.vue.js +174 -0
  257. package/dist/components/watermark/EpWatermark2.vue.js +4 -0
  258. package/dist/components/watermark/index.d.ts +13 -2
  259. package/dist/components/watermark/index.js +8 -4
  260. package/dist/components/watermark/instance.d.ts +2 -0
  261. package/dist/components/watermark/useClips.d.ts +6 -0
  262. package/dist/components/watermark/useClips.js +91 -0
  263. package/dist/components/watermark/utils.d.ts +8 -0
  264. package/dist/components/watermark/utils.js +21 -0
  265. package/dist/components/watermark/watermark.d.ts +71 -0
  266. package/dist/components/watermark/watermark.js +60 -0
  267. package/dist/constants/date.js +9 -0
  268. package/dist/directives/index.d.ts +11 -0
  269. package/dist/directives/index.js +25 -0
  270. package/dist/directives/trap-focus/index.js +40 -0
  271. package/dist/ep-craft.js +410 -373
  272. package/dist/hooks/index.d.ts +2 -0
  273. package/dist/hooks/use-draggable/index.d.ts +6 -0
  274. package/dist/hooks/use-draggable/index.js +51 -0
  275. package/dist/hooks/use-locale/index.js +12 -12
  276. package/dist/hooks/use-namespace/index.js +23 -23
  277. package/dist/hooks/use-same-target/index.d.ts +5 -0
  278. package/dist/hooks/use-same-target/index.js +20 -0
  279. package/dist/hooks/use-z-index/index.js +15 -15
  280. package/dist/index.d.ts +32 -2
  281. package/dist/utils/dom/aria.js +16 -12
  282. package/dist/utils/vue/icon.js +10 -6
  283. package/dist/utils/vue/install.js +23 -20
  284. package/dist/vendored-components.d.ts +1 -1
  285. package/dist/vendored-components.js +23 -3
  286. package/package.json +1 -1
@@ -0,0 +1,146 @@
1
+ import { defineComponent as V, ref as h, computed as l, unref as o, openBlock as m, createBlock as s, mergeProps as I, withCtx as i, renderSlot as C, createCommentVNode as k, createElementVNode as u, normalizeClass as c, normalizeStyle as A, resolveDynamicComponent as D, createTextVNode as d, toDisplayString as y, createVNode as R } from "vue";
2
+ import { EpButton as E } from "../button/index.js";
3
+ import { EpIcon as F } from "../icon/index.js";
4
+ import { EpTooltip as L } from "../tooltip/index.js";
5
+ import { useNamespace as Q } from "../../hooks/use-namespace/index.js";
6
+ import "@vue/shared";
7
+ import "lodash-unified";
8
+ import "@vueuse/core";
9
+ import { addUnit as U } from "../../utils/dom/style.js";
10
+ import { QuestionFilled as j } from "@element-plus/icons-vue";
11
+ import { useLocale as q } from "../../hooks/use-locale/index.js";
12
+ import "../../hooks/use-size/index.js";
13
+ import "@popperjs/core";
14
+ import "../../hooks/use-z-index/index.js";
15
+ import "../../hooks/use-delayed-toggle/index.js";
16
+ import "../../hooks/use-aria/index.js";
17
+ import "../../hooks/use-model-toggle/index.js";
18
+ import "../../hooks/use-empty-values/index.js";
19
+ import { popconfirmEmits as G } from "./popconfirm.js";
20
+ const fe = /* @__PURE__ */ V({
21
+ name: "EpPopconfirm",
22
+ __name: "EpPopconfirm",
23
+ props: {
24
+ title: {},
25
+ confirmButtonText: {},
26
+ cancelButtonText: {},
27
+ confirmButtonType: { default: "primary" },
28
+ cancelButtonType: { default: "text" },
29
+ icon: { default: () => j },
30
+ iconColor: { default: "#f90" },
31
+ hideIcon: { type: Boolean },
32
+ hideAfter: { default: 200 },
33
+ effect: { default: "light" },
34
+ teleported: { type: Boolean, default: !0 },
35
+ persistent: { type: Boolean },
36
+ width: { default: 150 },
37
+ virtualTriggering: { type: Boolean },
38
+ virtualRef: {}
39
+ },
40
+ emits: G,
41
+ setup(t, { expose: w, emit: N }) {
42
+ const a = t, B = N, { t: v } = q(), r = Q("popconfirm"), f = h(), T = h(), P = l(() => {
43
+ var e;
44
+ return (e = o(f)) == null ? void 0 : e.popperRef;
45
+ }), $ = () => {
46
+ var e, n;
47
+ (n = (e = T.value) == null ? void 0 : e.focus) == null || n.call(e);
48
+ }, p = () => {
49
+ var e, n;
50
+ (n = (e = f.value) == null ? void 0 : e.onClose) == null || n.call(e);
51
+ }, b = l(() => ({
52
+ width: U(a.width)
53
+ })), x = (e) => {
54
+ B("confirm", e), p();
55
+ }, g = (e) => {
56
+ B("cancel", e), p();
57
+ }, z = l(
58
+ () => a.confirmButtonText || v("el.popconfirm.confirmButtonText")
59
+ ), S = l(
60
+ () => a.cancelButtonText || v("el.popconfirm.cancelButtonText")
61
+ );
62
+ return w({
63
+ popperRef: P,
64
+ hide: p
65
+ }), (e, n) => (m(), s(o(L), I({
66
+ ref_key: "tooltipRef",
67
+ ref: f,
68
+ trigger: "click",
69
+ effect: t.effect
70
+ }, e.$attrs, {
71
+ "virtual-triggering": t.virtualTriggering,
72
+ "virtual-ref": t.virtualRef,
73
+ "popper-class": `${o(r).namespace.value}-popover`,
74
+ "popper-style": b.value,
75
+ teleported: t.teleported,
76
+ "fallback-placements": ["bottom", "top", "right", "left"],
77
+ "hide-after": t.hideAfter,
78
+ persistent: t.persistent,
79
+ loop: "",
80
+ onShow: $
81
+ }), {
82
+ content: i(() => [
83
+ u("div", {
84
+ ref_key: "rootRef",
85
+ ref: T,
86
+ tabindex: "-1",
87
+ class: c(o(r).b())
88
+ }, [
89
+ u("div", {
90
+ class: c(o(r).e("main"))
91
+ }, [
92
+ !t.hideIcon && t.icon ? (m(), s(o(F), {
93
+ key: 0,
94
+ class: c(o(r).e("icon")),
95
+ style: A({ color: t.iconColor })
96
+ }, {
97
+ default: i(() => [
98
+ (m(), s(D(t.icon)))
99
+ ]),
100
+ _: 1
101
+ }, 8, ["class", "style"])) : k("", !0),
102
+ d(" " + y(t.title), 1)
103
+ ], 2),
104
+ u("div", {
105
+ class: c(o(r).e("action"))
106
+ }, [
107
+ C(e.$slots, "actions", {
108
+ confirm: x,
109
+ cancel: g
110
+ }, () => [
111
+ R(o(E), {
112
+ size: "small",
113
+ type: t.cancelButtonType === "text" ? "" : t.cancelButtonType,
114
+ text: t.cancelButtonType === "text",
115
+ onClick: g
116
+ }, {
117
+ default: i(() => [
118
+ d(y(S.value), 1)
119
+ ]),
120
+ _: 1
121
+ }, 8, ["type", "text"]),
122
+ R(o(E), {
123
+ size: "small",
124
+ type: t.confirmButtonType === "text" ? "" : t.confirmButtonType,
125
+ text: t.confirmButtonType === "text",
126
+ onClick: x
127
+ }, {
128
+ default: i(() => [
129
+ d(y(z.value), 1)
130
+ ]),
131
+ _: 1
132
+ }, 8, ["type", "text"])
133
+ ])
134
+ ], 2)
135
+ ], 2)
136
+ ]),
137
+ default: i(() => [
138
+ e.$slots.reference ? C(e.$slots, "reference", {}, void 0, void 0, 0) : k("", !0)
139
+ ]),
140
+ _: 3
141
+ }, 16, ["effect", "virtual-triggering", "virtual-ref", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
142
+ }
143
+ });
144
+ export {
145
+ fe as default
146
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpPopconfirm.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,16 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElPopconfirm } from 'element-plus';
3
- export declare const EpPopconfirm: typeof ElPopconfirm & Plugin;
2
+ import _EpPopconfirm from './EpPopconfirm.vue';
3
+ /**
4
+ * popconfirm 自持 barrel(vendor-batch-6 产出)。
5
+ *
6
+ * 气泡能力消费本地 `ElTooltip`,按钮消费本地 `EpButton`(默认导入),
7
+ * 图标消费本地 `ElIcon`;`buttonTypes` 因本地 button barrel 未再导出,
8
+ * 按「只改写本地 barrel 缺失的具名名」口径改为深路径导入。
9
+ *
10
+ * 不导出 `ElPopconfirm` 别名;保留 `popperRef` / `hide` 暴露契约。
11
+ */
12
+ export declare const EpPopconfirm: typeof _EpPopconfirm & Plugin;
4
13
  export default EpPopconfirm;
14
+ export { popconfirmEmits, popconfirmProps } from './popconfirm';
15
+ export type { PopconfirmEmits, PopconfirmProps, PopconfirmPropsPublic, } from './popconfirm';
16
+ export type { PopconfirmInstance } from './instance';
@@ -1,6 +1,11 @@
1
- import { ElPopconfirm as o } from "element-plus";
2
- import { withInstall as p } from "../../utils/with-install.js";
3
- const m = Object.assign({}, o, { name: "EpPopconfirm" }), i = p(m, "ep-popconfirm");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import p from "./EpPopconfirm.vue.js";
3
+ import { popconfirmEmits as n } from "./popconfirm.js";
4
+ const i = o(
5
+ p,
6
+ "ep-popconfirm"
7
+ );
4
8
  export {
5
- i as EpPopconfirm
9
+ i as EpPopconfirm,
10
+ n as popconfirmEmits
6
11
  };
@@ -0,0 +1,2 @@
1
+ import type EpPopconfirm from './EpPopconfirm.vue';
2
+ export type PopconfirmInstance = InstanceType<typeof EpPopconfirm> & unknown;
@@ -0,0 +1,106 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { ButtonType } from '@element-plus/components/button';
3
+ import type { ElTooltipContentProps, ElTooltipTriggerProps } from '@element-plus/components/tooltip';
4
+ import type { IconPropType } from '@element-plus/utils';
5
+ export interface PopconfirmProps {
6
+ /**
7
+ * @description Title
8
+ */
9
+ title?: string;
10
+ /**
11
+ * @description Confirm button text
12
+ */
13
+ confirmButtonText?: string;
14
+ /**
15
+ * @description Cancel button text
16
+ */
17
+ cancelButtonText?: string;
18
+ /**
19
+ * @description Confirm button type
20
+ */
21
+ confirmButtonType?: ButtonType;
22
+ /**
23
+ * @description Cancel button type
24
+ */
25
+ cancelButtonType?: ButtonType;
26
+ /**
27
+ * @description Icon Component
28
+ */
29
+ icon?: IconPropType;
30
+ /**
31
+ * @description Icon color
32
+ */
33
+ iconColor?: string;
34
+ /**
35
+ * @description is hide Icon
36
+ */
37
+ hideIcon?: boolean;
38
+ /**
39
+ * @description delay of disappear, in millisecond
40
+ */
41
+ hideAfter?: number;
42
+ /**
43
+ * @description Tooltip theme, built-in theme: `dark` / `light`
44
+ */
45
+ effect?: ElTooltipContentProps['effect'];
46
+ /**
47
+ * @description whether popconfirm is teleported to the body
48
+ */
49
+ teleported?: ElTooltipContentProps['teleported'];
50
+ /**
51
+ * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed
52
+ */
53
+ persistent?: ElTooltipContentProps['persistent'];
54
+ /**
55
+ * @description popconfirm width, min width 150px
56
+ */
57
+ width?: string | number;
58
+ /**
59
+ * @description Indicates whether virtual triggering is enabled
60
+ */
61
+ virtualTriggering?: ElTooltipTriggerProps['virtualTriggering'];
62
+ /**
63
+ * @description Indicates the reference element to which the popper is attached
64
+ */
65
+ virtualRef?: ElTooltipTriggerProps['virtualRef'];
66
+ }
67
+ export declare const popconfirmProps: {
68
+ readonly title: StringConstructor;
69
+ readonly confirmButtonText: StringConstructor;
70
+ readonly cancelButtonText: StringConstructor;
71
+ readonly confirmButtonType: import("@element-plus/utils").EpPropFinalized<StringConstructor, "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
72
+ readonly cancelButtonType: import("@element-plus/utils").EpPropFinalized<StringConstructor, "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", unknown, "text", boolean>;
73
+ readonly icon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
74
+ readonly iconColor: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
75
+ readonly hideIcon: BooleanConstructor;
76
+ readonly hideAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
77
+ readonly effect: {
78
+ readonly default: "light";
79
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("../popper").PopperEffect) | (((new (...args: any[]) => string) | (() => import("../popper").PopperEffect)) | null)[], unknown, unknown>>;
80
+ readonly required: false;
81
+ readonly validator: ((val: unknown) => boolean) | undefined;
82
+ readonly __epPropKey: true;
83
+ };
84
+ readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
85
+ readonly persistent: BooleanConstructor;
86
+ readonly width: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 150, boolean>;
87
+ readonly virtualTriggering: BooleanConstructor;
88
+ readonly virtualRef: {
89
+ readonly type: import("vue").PropType<import("../popper").Measurable>;
90
+ readonly required: false;
91
+ readonly validator: ((val: unknown) => boolean) | undefined;
92
+ __epPropKey: true;
93
+ };
94
+ };
95
+ export declare const popconfirmEmits: {
96
+ /**
97
+ * @description triggers when click confirm button
98
+ */
99
+ confirm: (e: MouseEvent) => boolean;
100
+ /**
101
+ * @description triggers when click cancel button
102
+ */
103
+ cancel: (e: MouseEvent) => boolean;
104
+ };
105
+ export type PopconfirmEmits = typeof popconfirmEmits;
106
+ export type PopconfirmPropsPublic = ExtractPublicPropTypes<typeof popconfirmProps>;
@@ -0,0 +1,103 @@
1
+ import { QuestionFilled as i } from "@element-plus/icons-vue";
2
+ import "@vue/shared";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { iconPropType as n } from "../../utils/vue/icon.js";
6
+ import "vue";
7
+ import { buildProps as p } from "../../utils/vue/props/runtime.js";
8
+ import { buttonTypes as o } from "../button/button.js";
9
+ import "../tooltip/index.js";
10
+ import { useTooltipTriggerProps as r } from "../tooltip/src/trigger.js";
11
+ import { useTooltipContentProps as e } from "../tooltip/src/content.js";
12
+ p({
13
+ /**
14
+ * @description Title
15
+ */
16
+ title: String,
17
+ /**
18
+ * @description Confirm button text
19
+ */
20
+ confirmButtonText: String,
21
+ /**
22
+ * @description Cancel button text
23
+ */
24
+ cancelButtonText: String,
25
+ /**
26
+ * @description Confirm button type
27
+ */
28
+ confirmButtonType: {
29
+ type: String,
30
+ values: o,
31
+ default: "primary"
32
+ },
33
+ /**
34
+ * @description Cancel button type
35
+ */
36
+ cancelButtonType: {
37
+ type: String,
38
+ values: o,
39
+ default: "text"
40
+ },
41
+ /**
42
+ * @description Icon Component
43
+ */
44
+ icon: {
45
+ type: n,
46
+ default: () => i
47
+ },
48
+ /**
49
+ * @description Icon color
50
+ */
51
+ iconColor: {
52
+ type: String,
53
+ default: "#f90"
54
+ },
55
+ /**
56
+ * @description is hide Icon
57
+ */
58
+ hideIcon: Boolean,
59
+ /**
60
+ * @description delay of disappear, in millisecond
61
+ */
62
+ hideAfter: {
63
+ type: Number,
64
+ default: 200
65
+ },
66
+ /**
67
+ * @description Tooltip theme, built-in theme: `dark` / `light`
68
+ */
69
+ effect: {
70
+ ...e.effect,
71
+ default: "light"
72
+ },
73
+ /**
74
+ * @description whether popconfirm is teleported to the body
75
+ */
76
+ teleported: e.teleported,
77
+ /**
78
+ * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed
79
+ */
80
+ persistent: e.persistent,
81
+ /**
82
+ * @description popconfirm width, min width 150px
83
+ */
84
+ width: {
85
+ type: [String, Number],
86
+ default: 150
87
+ },
88
+ virtualTriggering: r.virtualTriggering,
89
+ virtualRef: r.virtualRef
90
+ });
91
+ const v = {
92
+ /**
93
+ * @description triggers when click confirm button
94
+ */
95
+ confirm: (t) => t instanceof MouseEvent,
96
+ /**
97
+ * @description triggers when click cancel button
98
+ */
99
+ cancel: (t) => t instanceof MouseEvent
100
+ };
101
+ export {
102
+ v as popconfirmEmits
103
+ };
@@ -17,8 +17,8 @@ declare const __VLS_component: import("vue").DefineComponent<ProgressProps, {},
17
17
  type: "line" | "circle" | "dashboard";
18
18
  format: import("./progress").ProgressFn;
19
19
  duration: number;
20
- percentage: number;
21
20
  status: "" | "success" | "exception" | "warning";
21
+ percentage: number;
22
22
  showText: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,5 +1,5 @@
1
- import r from "./src/roving-focus-group2.vue.js";
2
- import "./src/roving-focus-item2.vue.js";
1
+ import r from "./src/roving-focus-group.vue.js";
2
+ import "./src/roving-focus-item.vue.js";
3
3
  import "vue";
4
4
  import "@vue/shared";
5
5
  import "lodash-unified";
@@ -1,13 +1,21 @@
1
- import { defineComponent as o } from "vue";
2
- import n from "./roving-focus-group-impl.vue.js";
3
- import { ElCollection as m } from "./roving-focus-group.js";
4
- const e = o({
5
- name: "EpRovingFocusGroup",
6
- components: {
7
- ElFocusGroupCollection: m,
8
- ElRovingFocusGroupImpl: n
9
- }
10
- });
1
+ import c from "./roving-focus-group2.vue.js";
2
+ import { resolveComponent as e, openBlock as p, createBlock as l, withCtx as r, createVNode as s, normalizeProps as u, guardReactiveProps as _, renderSlot as i } from "vue";
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ function f(o, m, d, g, $, v) {
5
+ const t = e("el-roving-focus-group-impl"), n = e("el-focus-group-collection");
6
+ return p(), l(n, null, {
7
+ default: r(() => [
8
+ s(t, u(_(o.$attrs)), {
9
+ default: r(() => [
10
+ i(o.$slots, "default")
11
+ ]),
12
+ _: 3
13
+ }, 16)
14
+ ]),
15
+ _: 3
16
+ });
17
+ }
18
+ const B = /* @__PURE__ */ a(c, [["render", f]]);
11
19
  export {
12
- e as default
20
+ B as default
13
21
  };
@@ -1,21 +1,13 @@
1
- import c from "./roving-focus-group.vue.js";
2
- import { resolveComponent as e, openBlock as p, createBlock as l, withCtx as r, createVNode as s, normalizeProps as u, guardReactiveProps as _, renderSlot as i } from "vue";
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- function f(o, m, d, g, $, v) {
5
- const t = e("el-roving-focus-group-impl"), n = e("el-focus-group-collection");
6
- return p(), l(n, null, {
7
- default: r(() => [
8
- s(t, u(_(o.$attrs)), {
9
- default: r(() => [
10
- i(o.$slots, "default")
11
- ]),
12
- _: 3
13
- }, 16)
14
- ]),
15
- _: 3
16
- });
17
- }
18
- const B = /* @__PURE__ */ a(c, [["render", f]]);
1
+ import { defineComponent as o } from "vue";
2
+ import n from "./roving-focus-group-impl.vue.js";
3
+ import { ElCollection as m } from "./roving-focus-group.js";
4
+ const e = o({
5
+ name: "EpRovingFocusGroup",
6
+ components: {
7
+ ElFocusGroupCollection: m,
8
+ ElRovingFocusGroupImpl: n
9
+ }
10
+ });
19
11
  export {
20
- B as default
12
+ e as default
21
13
  };
@@ -1,20 +1,78 @@
1
- import t from "./roving-focus-item2.vue.js";
2
- import { resolveComponent as c, openBlock as r, createBlock as i, withCtx as n, renderSlot as l } from "vue";
3
- import s from "../../../_virtual/_plugin-vue_export-helper.js";
4
- function a(o, f, m, p, u, _) {
5
- const e = c("el-roving-focus-collection-item");
6
- return r(), i(e, {
7
- id: o.id,
8
- focusable: o.focusable,
9
- active: o.active
10
- }, {
11
- default: n(() => [
12
- l(o.$slots, "default")
13
- ]),
14
- _: 3
15
- }, 8, ["id", "focusable", "active"]);
16
- }
17
- const b = /* @__PURE__ */ s(t, [["render", a]]);
1
+ import { defineComponent as C, inject as O, ref as b, unref as t, computed as p, provide as T } from "vue";
2
+ import "@vue/shared";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { composeEventHandlers as r, getEventCode as w } from "../../../utils/dom/event.js";
6
+ import "@element-plus/icons-vue";
7
+ import { EVENT_CODE as F } from "../../../constants/aria.js";
8
+ import { useId as N } from "../../../hooks/use-id/index.js";
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 { ElCollectionItem as R } from "./roving-focus-group.js";
17
+ import { ROVING_FOCUS_GROUP_INJECTION_KEY as g, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY as y } from "./tokens.js";
18
+ const A = C({
19
+ name: "EpRovingFocusItem",
20
+ components: {
21
+ ElRovingFocusCollectionItem: R
22
+ },
23
+ props: {
24
+ focusable: {
25
+ type: Boolean,
26
+ default: !0
27
+ },
28
+ active: Boolean
29
+ },
30
+ emits: ["mousedown", "focus", "keydown"],
31
+ setup(u, { emit: n }) {
32
+ const { currentTabbedId: d, onItemFocus: m, onItemShiftTab: a, onKeydown: f } = O(
33
+ g,
34
+ void 0
35
+ ), e = N(), l = b(), i = r(
36
+ (o) => {
37
+ n("mousedown", o);
38
+ },
39
+ (o) => {
40
+ u.focusable ? m(t(e)) : o.preventDefault();
41
+ }
42
+ ), s = r(
43
+ (o) => {
44
+ n("focus", o);
45
+ },
46
+ () => {
47
+ m(t(e));
48
+ }
49
+ ), c = r(
50
+ (o) => {
51
+ n("keydown", o);
52
+ },
53
+ (o) => {
54
+ const { shiftKey: E, target: _, currentTarget: v } = o;
55
+ if (w(o) === F.tab && E) {
56
+ a();
57
+ return;
58
+ }
59
+ _ === v && f(o);
60
+ }
61
+ ), I = p(() => d.value === t(e));
62
+ return T(y, {
63
+ rovingFocusGroupItemRef: l,
64
+ tabIndex: p(() => t(I) ? 0 : -1),
65
+ handleMousedown: i,
66
+ handleFocus: s,
67
+ handleKeydown: c
68
+ }), {
69
+ id: e,
70
+ handleKeydown: c,
71
+ handleFocus: s,
72
+ handleMousedown: i
73
+ };
74
+ }
75
+ });
18
76
  export {
19
- b as default
77
+ A as default
20
78
  };