ep-craft 0.1.35 → 0.1.37

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 (195) hide show
  1. package/dist/components/avatar/EpAvatar.vue.d.ts +20 -0
  2. package/dist/components/avatar/EpAvatar.vue.js +72 -0
  3. package/dist/components/avatar/EpAvatar2.vue.js +4 -0
  4. package/dist/components/avatar/avatar.d.ts +68 -0
  5. package/dist/components/avatar/avatar.js +59 -0
  6. package/dist/components/avatar/constants.d.ts +7 -0
  7. package/dist/components/avatar/constants.js +6 -0
  8. package/dist/components/avatar/index.d.ts +13 -2
  9. package/dist/components/avatar/index.js +8 -3
  10. package/dist/components/avatar/instance.d.ts +2 -0
  11. package/dist/components/badge/EpBadge.vue.d.ts +28 -0
  12. package/dist/components/badge/EpBadge.vue.js +75 -0
  13. package/dist/components/badge/EpBadge2.vue.js +4 -0
  14. package/dist/components/badge/badge.d.ts +67 -0
  15. package/dist/components/badge/badge.js +69 -0
  16. package/dist/components/badge/index.d.ts +11 -2
  17. package/dist/components/badge/index.js +8 -4
  18. package/dist/components/badge/instance.d.ts +2 -0
  19. package/dist/components/breadcrumb/EpBreadcrumb.vue.d.ts +15 -0
  20. package/dist/components/breadcrumb/EpBreadcrumb.vue.js +41 -0
  21. package/dist/components/breadcrumb/EpBreadcrumb2.vue.js +4 -0
  22. package/dist/components/breadcrumb/breadcrumb.d.ts +28 -0
  23. package/dist/components/breadcrumb/breadcrumb.js +21 -0
  24. package/dist/components/breadcrumb/constants.d.ts +3 -0
  25. package/dist/components/breadcrumb/constants.js +4 -0
  26. package/dist/components/breadcrumb/index.d.ts +20 -2
  27. package/dist/components/breadcrumb/index.js +10 -4
  28. package/dist/components/breadcrumb/instance.d.ts +2 -0
  29. package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.d.ts +15 -0
  30. package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.js +58 -0
  31. package/dist/components/breadcrumb-item/EpBreadcrumbItem2.vue.js +4 -0
  32. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +23 -0
  33. package/dist/components/breadcrumb-item/breadcrumb-item.js +19 -0
  34. package/dist/components/breadcrumb-item/index.d.ts +11 -2
  35. package/dist/components/breadcrumb-item/index.js +8 -4
  36. package/dist/components/breadcrumb-item/instance.d.ts +2 -0
  37. package/dist/components/card/EpCard.vue.d.ts +22 -0
  38. package/dist/components/card/EpCard.vue.js +64 -0
  39. package/dist/components/card/EpCard2.vue.js +4 -0
  40. package/dist/components/card/card.d.ts +51 -0
  41. package/dist/components/card/card.js +49 -0
  42. package/dist/components/card/index.d.ts +11 -2
  43. package/dist/components/card/index.js +5 -4
  44. package/dist/components/card/instance.d.ts +2 -0
  45. package/dist/components/col/EpCol.vue.d.ts +24 -0
  46. package/dist/components/col/EpCol.vue.js +61 -0
  47. package/dist/components/col/EpCol2.vue.js +4 -0
  48. package/dist/components/col/col.d.ts +71 -0
  49. package/dist/components/col/col.js +79 -0
  50. package/dist/components/col/index.d.ts +10 -2
  51. package/dist/components/col/index.js +5 -4
  52. package/dist/components/collapse/EpCollapse.vue.d.ts +27 -0
  53. package/dist/components/collapse/EpCollapse.vue.js +30 -0
  54. package/dist/components/collapse/EpCollapse2.vue.js +4 -0
  55. package/dist/components/collapse/collapse.d.ts +47 -0
  56. package/dist/components/collapse/collapse.js +46 -0
  57. package/dist/components/collapse/constants.d.ts +7 -0
  58. package/dist/components/collapse/constants.js +4 -0
  59. package/dist/components/collapse/index.d.ts +21 -2
  60. package/dist/components/collapse/index.js +11 -3
  61. package/dist/components/collapse/instance.d.ts +2 -0
  62. package/dist/components/collapse/use-collapse-item.d.ts +21 -0
  63. package/dist/components/collapse/use-collapse-item.js +66 -0
  64. package/dist/components/collapse/use-collapse.d.ts +9 -0
  65. package/dist/components/collapse/use-collapse.js +72 -0
  66. package/dist/components/collapse-item/EpCollapseItem.vue.d.ts +27 -0
  67. package/dist/components/collapse-item/EpCollapseItem.vue.js +102 -0
  68. package/dist/components/collapse-item/EpCollapseItem2.vue.js +4 -0
  69. package/dist/components/collapse-item/collapse-item.d.ts +34 -0
  70. package/dist/components/collapse-item/collapse-item.js +34 -0
  71. package/dist/components/collapse-item/index.d.ts +11 -2
  72. package/dist/components/collapse-item/index.js +8 -4
  73. package/dist/components/collapse-item/instance.d.ts +2 -0
  74. package/dist/components/countdown/EpCountdown.vue.d.ts +28 -0
  75. package/dist/components/countdown/EpCountdown.vue.js +71 -0
  76. package/dist/components/countdown/EpCountdown2.vue.js +4 -0
  77. package/dist/components/countdown/countdown.d.ts +48 -0
  78. package/dist/components/countdown/countdown.js +50 -0
  79. package/dist/components/countdown/index.d.ts +11 -2
  80. package/dist/components/countdown/index.js +9 -4
  81. package/dist/components/countdown/instance.d.ts +2 -0
  82. package/dist/components/countdown/utils.d.ts +3 -0
  83. package/dist/components/countdown/utils.js +40 -0
  84. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +1 -1
  85. package/dist/components/dropdown/src/dropdown-item2.vue.js +1 -1
  86. package/dist/components/dropdown/src/dropdown-menu2.vue.js +1 -1
  87. package/dist/components/dropdown/src/dropdown2.vue.js +1 -1
  88. package/dist/components/empty/EpEmpty.vue.d.ts +20 -0
  89. package/dist/components/empty/EpEmpty.vue.js +62 -0
  90. package/dist/components/empty/EpEmpty2.vue.js +4 -0
  91. package/dist/components/empty/empty.d.ts +27 -0
  92. package/dist/components/empty/empty.js +26 -0
  93. package/dist/components/empty/img-empty.vue.d.ts +2 -0
  94. package/dist/components/empty/img-empty.vue.js +141 -0
  95. package/dist/components/empty/img-empty2.vue.js +4 -0
  96. package/dist/components/empty/index.d.ts +11 -2
  97. package/dist/components/empty/index.js +8 -4
  98. package/dist/components/empty/instance.d.ts +2 -0
  99. package/dist/components/image/EpImage.vue.d.ts +63 -0
  100. package/dist/components/image/EpImage.vue.js +207 -0
  101. package/dist/components/image/EpImage2.vue.js +4 -0
  102. package/dist/components/image/image.d.ts +132 -0
  103. package/dist/components/image/image.js +132 -0
  104. package/dist/components/image/index.d.ts +11 -2
  105. package/dist/components/image/index.js +9 -4
  106. package/dist/components/image/instance.d.ts +2 -0
  107. package/dist/components/image-viewer/EpImageViewer.vue.d.ts +61 -0
  108. package/dist/components/image-viewer/EpImageViewer.vue.js +421 -0
  109. package/dist/components/image-viewer/EpImageViewer2.vue.js +4 -0
  110. package/dist/components/image-viewer/image-viewer.d.ts +100 -0
  111. package/dist/components/image-viewer/image-viewer.js +99 -0
  112. package/dist/components/image-viewer/index.d.ts +11 -2
  113. package/dist/components/image-viewer/index.js +9 -4
  114. package/dist/components/image-viewer/instance.d.ts +2 -0
  115. package/dist/components/link/EpLink.vue.d.ts +24 -0
  116. package/dist/components/link/EpLink.vue.js +86 -0
  117. package/dist/components/link/EpLink2.vue.js +4 -0
  118. package/dist/components/link/index.d.ts +11 -2
  119. package/dist/components/link/index.js +5 -3
  120. package/dist/components/link/instance.d.ts +2 -0
  121. package/dist/components/link/link.d.ts +56 -0
  122. package/dist/components/link/link.js +51 -0
  123. package/dist/components/result/EpResult.vue.d.ts +23 -0
  124. package/dist/components/result/EpResult.vue.js +71 -0
  125. package/dist/components/result/EpResult2.vue.js +4 -0
  126. package/dist/components/result/index.d.ts +11 -2
  127. package/dist/components/result/index.js +10 -4
  128. package/dist/components/result/instance.d.ts +2 -0
  129. package/dist/components/result/result.d.ts +35 -0
  130. package/dist/components/result/result.js +47 -0
  131. package/dist/components/roving-focus-group/index.js +1 -1
  132. package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +18 -76
  133. package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +76 -18
  134. package/dist/components/row/EpRow.vue.d.ts +17 -0
  135. package/dist/components/row/EpRow.vue.js +50 -0
  136. package/dist/components/row/EpRow2.vue.js +4 -0
  137. package/dist/components/row/constants.d.ts +5 -0
  138. package/dist/components/row/constants.js +4 -0
  139. package/dist/components/row/index.d.ts +12 -2
  140. package/dist/components/row/index.js +7 -4
  141. package/dist/components/row/row.d.ts +41 -0
  142. package/dist/components/row/row.js +49 -0
  143. package/dist/components/skeleton/EpSkeleton.vue.d.ts +24 -0
  144. package/dist/components/skeleton/EpSkeleton.vue.js +56 -0
  145. package/dist/components/skeleton/EpSkeleton2.vue.js +4 -0
  146. package/dist/components/skeleton/index.d.ts +16 -2
  147. package/dist/components/skeleton/index.js +9 -3
  148. package/dist/components/skeleton/skeleton.d.ts +53 -0
  149. package/dist/components/skeleton/skeleton.js +39 -0
  150. package/dist/components/skeleton-item/EpSkeletonItem.vue.d.ts +5 -0
  151. package/dist/components/skeleton-item/EpSkeletonItem.vue.js +31 -0
  152. package/dist/components/skeleton-item/EpSkeletonItem2.vue.js +4 -0
  153. package/dist/components/skeleton-item/index.d.ts +8 -2
  154. package/dist/components/skeleton-item/index.js +7 -3
  155. package/dist/components/skeleton-item/skeleton-item.d.ts +19 -0
  156. package/dist/components/skeleton-item/skeleton-item.js +26 -0
  157. package/dist/components/space/index.d.ts +15 -2
  158. package/dist/components/space/index.js +23 -4
  159. package/dist/components/space/instance.d.ts +2 -0
  160. package/dist/components/space/item.d.ts +29 -0
  161. package/dist/components/space/item.js +30 -0
  162. package/dist/components/space/space.d.ts +92 -0
  163. package/dist/components/space/space.js +182 -0
  164. package/dist/components/space/use-space.d.ts +7 -0
  165. package/dist/components/space/use-space.js +47 -0
  166. package/dist/components/statistic/EpStatistic.vue.d.ts +28 -0
  167. package/dist/components/statistic/EpStatistic.vue.js +82 -0
  168. package/dist/components/statistic/EpStatistic2.vue.js +4 -0
  169. package/dist/components/statistic/index.d.ts +11 -2
  170. package/dist/components/statistic/index.js +8 -4
  171. package/dist/components/statistic/instance.d.ts +2 -0
  172. package/dist/components/statistic/statistic.d.ts +58 -0
  173. package/dist/components/statistic/statistic.js +59 -0
  174. package/dist/components/timeline/index.d.ts +21 -2
  175. package/dist/components/timeline/index.js +10 -3
  176. package/dist/components/timeline/instance.d.ts +2 -0
  177. package/dist/components/timeline/timeline.d.ts +20 -0
  178. package/dist/components/timeline/timeline.js +53 -0
  179. package/dist/components/timeline/tokens.d.ts +7 -0
  180. package/dist/components/timeline/tokens.js +4 -0
  181. package/dist/components/timeline-item/EpTimelineItem.vue.d.ts +21 -0
  182. package/dist/components/timeline-item/EpTimelineItem.vue.js +94 -0
  183. package/dist/components/timeline-item/EpTimelineItem2.vue.js +4 -0
  184. package/dist/components/timeline-item/index.d.ts +12 -2
  185. package/dist/components/timeline-item/index.js +7 -3
  186. package/dist/components/timeline-item/instance.d.ts +2 -0
  187. package/dist/components/timeline-item/timeline-item.d.ts +63 -0
  188. package/dist/components/timeline-item/timeline-item.js +64 -0
  189. package/dist/hooks/index.d.ts +1 -0
  190. package/dist/hooks/use-throttle-render/index.d.ts +7 -0
  191. package/dist/hooks/use-throttle-render/index.js +31 -0
  192. package/dist/utils/vue/vnode.js +32 -22
  193. package/dist/vendored-components.d.ts +1 -1
  194. package/dist/vendored-components.js +33 -3
  195. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import { iconPropType as r } from "../../utils/vue/icon.js";
5
+ import "vue";
6
+ import { buildProps as o } from "../../utils/vue/props/runtime.js";
7
+ o({
8
+ /**
9
+ * @description separator character
10
+ */
11
+ separator: {
12
+ type: String,
13
+ default: "/"
14
+ },
15
+ /**
16
+ * @description icon component of icon separator
17
+ */
18
+ separatorIcon: {
19
+ type: r
20
+ }
21
+ });
@@ -0,0 +1,3 @@
1
+ import type { InjectionKey } from 'vue';
2
+ import type { BreadcrumbProps } from './breadcrumb';
3
+ export declare const breadcrumbKey: InjectionKey<BreadcrumbProps>;
@@ -0,0 +1,4 @@
1
+ const b = Symbol("breadcrumbKey");
2
+ export {
3
+ b as breadcrumbKey
4
+ };
@@ -1,4 +1,22 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElBreadcrumb } from 'element-plus';
3
- export declare const EpBreadcrumb: typeof ElBreadcrumb & Plugin;
2
+ import _EpBreadcrumb from './EpBreadcrumb.vue';
3
+ import _EpBreadcrumbItem from '../breadcrumb-item/EpBreadcrumbItem.vue';
4
+ /**
5
+ * breadcrumb 自持 barrel(vendor-batch-4 产出)。
6
+ *
7
+ * `.BreadcrumbItem` 是对外公开面的一部分(迁移前包装态经 `Object.assign`
8
+ * 继承自上游),此处挂载**未安装本体**,与上游形态一致。
9
+ * 上下文键 `breadcrumbKey` 由本入口导出,子项从 ./constants 读取同一 Symbol。
10
+ * 不导出 `ElBreadcrumb` / `ElBreadcrumbItem` 别名。
11
+ */
12
+ export declare const EpBreadcrumb: typeof _EpBreadcrumb & Plugin & {
13
+ BreadcrumbItem: typeof _EpBreadcrumbItem;
14
+ };
4
15
  export default EpBreadcrumb;
16
+ export { breadcrumbKey } from './constants';
17
+ export { breadcrumbProps } from './breadcrumb';
18
+ export { breadcrumbItemProps } from '../breadcrumb-item';
19
+ export type { BreadcrumbProps, BreadcrumbPropsPublic } from './breadcrumb';
20
+ export type { BreadcrumbInstance } from './instance';
21
+ export type { BreadcrumbItemProps, BreadcrumbItemPropsPublic, } from '../breadcrumb-item';
22
+ export type { BreadcrumbItemInstance } from '../breadcrumb-item/instance';
@@ -1,6 +1,12 @@
1
- import { ElBreadcrumb as r } from "element-plus";
2
- import { withInstall as m } from "../../utils/with-install.js";
3
- const e = Object.assign({}, r, { name: "EpBreadcrumb" }), t = m(e, "ep-breadcrumb");
1
+ import { withInstall as r } from "../../utils/with-install.js";
2
+ import m from "./EpBreadcrumb.vue.js";
3
+ import t from "../breadcrumb-item/EpBreadcrumbItem.vue.js";
4
+ import "./breadcrumb.js";
5
+ import "../breadcrumb-item/index.js";
6
+ const e = Object.assign(
7
+ r(m, "ep-breadcrumb"),
8
+ { BreadcrumbItem: t }
9
+ );
4
10
  export {
5
- t as EpBreadcrumb
11
+ e as EpBreadcrumb
6
12
  };
@@ -0,0 +1,2 @@
1
+ import type EpBreadcrumb from './EpBreadcrumb.vue';
2
+ export type BreadcrumbInstance = InstanceType<typeof EpBreadcrumb> & unknown;
@@ -0,0 +1,15 @@
1
+ import type { BreadcrumbItemProps } from './breadcrumb-item';
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<BreadcrumbItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbItemProps> & Readonly<{}>, {
7
+ to: import("vue-router").RouteLocationRaw;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as b, getCurrentInstance as k, inject as C, openBlock as o, createElementBlock as i, normalizeClass as a, unref as e, createElementVNode as y, renderSlot as B, createBlock as l, withCtx as I, resolveDynamicComponent as E, toDisplayString as g } from "vue";
2
+ import { EpIcon as x } from "../icon/index.js";
3
+ import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
4
+ import "@vue/shared";
5
+ import "lodash-unified";
6
+ import "@vueuse/core";
7
+ import "@element-plus/icons-vue";
8
+ import "../../hooks/use-size/index.js";
9
+ import "@popperjs/core";
10
+ import "../../hooks/use-z-index/index.js";
11
+ import "../../hooks/use-delayed-toggle/index.js";
12
+ import "../../hooks/use-aria/index.js";
13
+ import "../../hooks/use-model-toggle/index.js";
14
+ import "../../hooks/use-empty-values/index.js";
15
+ import { breadcrumbKey as h } from "../breadcrumb/constants.js";
16
+ const J = /* @__PURE__ */ b({
17
+ name: "EpBreadcrumbItem",
18
+ __name: "EpBreadcrumbItem",
19
+ props: {
20
+ to: { default: "" },
21
+ replace: { type: Boolean }
22
+ },
23
+ setup(s) {
24
+ const r = s, u = k(), n = C(h, void 0), t = _("breadcrumb"), p = u.appContext.config.globalProperties.$router, d = () => {
25
+ !r.to || !p || (r.replace ? p.replace(r.to) : p.push(r.to));
26
+ };
27
+ return (f, v) => {
28
+ var c, m;
29
+ return o(), i("span", {
30
+ class: a(e(t).e("item"))
31
+ }, [
32
+ y("span", {
33
+ class: a([e(t).e("inner"), e(t).is("link", !!s.to)]),
34
+ role: "link",
35
+ onClick: d
36
+ }, [
37
+ B(f.$slots, "default")
38
+ ], 2),
39
+ (c = e(n)) != null && c.separatorIcon ? (o(), l(e(x), {
40
+ key: 0,
41
+ class: a(e(t).e("separator"))
42
+ }, {
43
+ default: I(() => [
44
+ (o(), l(E(e(n).separatorIcon)))
45
+ ]),
46
+ _: 1
47
+ }, 8, ["class"])) : (o(), i("span", {
48
+ key: 1,
49
+ class: a(e(t).e("separator")),
50
+ role: "presentation"
51
+ }, g((m = e(n)) == null ? void 0 : m.separator), 3))
52
+ ], 2);
53
+ };
54
+ }
55
+ });
56
+ export {
57
+ J as default
58
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpBreadcrumbItem.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,23 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { RouteLocationRaw } from 'vue-router';
3
+ export interface BreadcrumbItemProps {
4
+ /**
5
+ * @description target route of the link, same as `to` of `vue-router`
6
+ */
7
+ to?: RouteLocationRaw;
8
+ /**
9
+ * @description if `true`, the navigation will not leave a history record
10
+ */
11
+ replace?: boolean;
12
+ }
13
+ /**
14
+ * @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.
15
+ */
16
+ export declare const breadcrumbItemProps: {
17
+ readonly to: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (((new (...args: any[]) => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric) | (() => string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric)) | null)[], unknown, unknown, "", boolean>;
18
+ readonly replace: BooleanConstructor;
19
+ };
20
+ /**
21
+ * @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.
22
+ */
23
+ export type BreadcrumbItemPropsPublic = ExtractPublicPropTypes<typeof breadcrumbItemProps>;
@@ -0,0 +1,19 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@element-plus/icons-vue";
5
+ import { buildProps as o, definePropType as p } from "../../utils/vue/props/runtime.js";
6
+ import "vue";
7
+ o({
8
+ /**
9
+ * @description target route of the link, same as `to` of `vue-router`
10
+ */
11
+ to: {
12
+ type: p([String, Object]),
13
+ default: ""
14
+ },
15
+ /**
16
+ * @description if `true`, the navigation will not leave a history record
17
+ */
18
+ replace: Boolean
19
+ });
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElBreadcrumbItem } from 'element-plus';
3
- export declare const EpBreadcrumbItem: typeof ElBreadcrumbItem & Plugin;
2
+ import _EpBreadcrumbItem from './EpBreadcrumbItem.vue';
3
+ /**
4
+ * breadcrumb-item 自持 barrel(vendor-batch-4 产出)。
5
+ *
6
+ * 子项通过 `../breadcrumb/constants` 的本地 `breadcrumbKey` 注入父上下文;
7
+ * 父入口以本体挂载 `.BreadcrumbItem`。不导出 `ElBreadcrumbItem` 别名。
8
+ */
9
+ export declare const EpBreadcrumbItem: typeof _EpBreadcrumbItem & Plugin;
4
10
  export default EpBreadcrumbItem;
11
+ export { breadcrumbItemProps } from './breadcrumb-item';
12
+ export type { BreadcrumbItemProps, BreadcrumbItemPropsPublic, } from './breadcrumb-item';
13
+ export type { BreadcrumbItemInstance } from './instance';
@@ -1,6 +1,10 @@
1
- import { ElBreadcrumbItem as m } from "element-plus";
2
- import { withInstall as r } from "../../utils/with-install.js";
3
- const e = Object.assign({}, m, { name: "EpBreadcrumbItem" }), c = r(e, "ep-breadcrumb-item");
1
+ import { withInstall as m } from "../../utils/with-install.js";
2
+ import r from "./EpBreadcrumbItem.vue.js";
3
+ import "./breadcrumb-item.js";
4
+ const i = m(
5
+ r,
6
+ "ep-breadcrumb-item"
7
+ );
4
8
  export {
5
- c as EpBreadcrumbItem
9
+ i as EpBreadcrumbItem
6
10
  };
@@ -0,0 +1,2 @@
1
+ import type EpBreadcrumbItem from './EpBreadcrumbItem.vue';
2
+ export type BreadcrumbItemInstance = InstanceType<typeof EpBreadcrumbItem> & unknown;
@@ -0,0 +1,22 @@
1
+ import type { CardProps } from './card';
2
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
3
+ type __VLS_Slots = {} & {
4
+ header?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_3) => any;
7
+ } & {
8
+ footer?: (props: typeof __VLS_5) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
11
+ footer: string;
12
+ header: string;
13
+ bodyStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
14
+ shadow: "always" | "hover" | "never";
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,64 @@
1
+ import { defineComponent as h, computed as p, openBlock as l, createElementBlock as d, normalizeClass as r, unref as a, renderSlot as i, createTextVNode as n, toDisplayString as m, createCommentVNode as f, createElementVNode as C, normalizeStyle as b } from "vue";
2
+ import { useNamespace as g } from "../../hooks/use-namespace/index.js";
3
+ import "@vue/shared";
4
+ import "lodash-unified";
5
+ import "@vueuse/core";
6
+ import "@element-plus/icons-vue";
7
+ import "../../hooks/use-size/index.js";
8
+ import "@popperjs/core";
9
+ import "../../hooks/use-z-index/index.js";
10
+ import "../../hooks/use-delayed-toggle/index.js";
11
+ import "../../hooks/use-aria/index.js";
12
+ import "../../hooks/use-model-toggle/index.js";
13
+ import "../../hooks/use-empty-values/index.js";
14
+ import "../config-provider/index.js";
15
+ import { useGlobalConfig as v } from "../config-provider/src/hooks/use-global-config.js";
16
+ const q = /* @__PURE__ */ h({
17
+ name: "EpCard",
18
+ __name: "EpCard",
19
+ props: {
20
+ header: { default: "" },
21
+ footer: { default: "" },
22
+ bodyStyle: { type: [Boolean, null, String, Object, Array], default: "" },
23
+ headerClass: {},
24
+ bodyClass: {},
25
+ footerClass: {},
26
+ shadow: { default: void 0 }
27
+ },
28
+ setup(e) {
29
+ const c = v("card"), u = e, y = p(() => {
30
+ var s;
31
+ const o = (s = c.value) == null ? void 0 : s.shadow;
32
+ return u.shadow || (typeof o == "string" ? o : "") || "always";
33
+ }), t = g("card");
34
+ return (o, s) => (l(), d("div", {
35
+ class: r([a(t).b(), a(t).is(`${y.value}-shadow`)])
36
+ }, [
37
+ o.$slots.header || e.header ? (l(), d("div", {
38
+ key: 0,
39
+ class: r([a(t).e("header"), e.headerClass])
40
+ }, [
41
+ i(o.$slots, "header", {}, () => [
42
+ n(m(e.header), 1)
43
+ ])
44
+ ], 2)) : f("", !0),
45
+ C("div", {
46
+ class: r([a(t).e("body"), e.bodyClass]),
47
+ style: b(e.bodyStyle)
48
+ }, [
49
+ i(o.$slots, "default")
50
+ ], 6),
51
+ o.$slots.footer || e.footer ? (l(), d("div", {
52
+ key: 1,
53
+ class: r([a(t).e("footer"), e.footerClass])
54
+ }, [
55
+ i(o.$slots, "footer", {}, () => [
56
+ n(m(e.footer), 1)
57
+ ])
58
+ ], 2)) : f("", !0)
59
+ ], 2));
60
+ }
61
+ });
62
+ export {
63
+ q as default
64
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpCard.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,51 @@
1
+ import type { ExtractPublicPropTypes, InjectionKey, StyleValue } from 'vue';
2
+ export interface CardProps {
3
+ /**
4
+ * @description title of the card. Also accepts a DOM passed by `slot#header`
5
+ */
6
+ header?: string;
7
+ /**
8
+ * @description content of footer. Also accepts a DOM passed by `slot#footer`
9
+ */
10
+ footer?: string;
11
+ /**
12
+ * @description CSS style of card body
13
+ */
14
+ bodyStyle?: StyleValue;
15
+ /**
16
+ * @description custom class name of card header
17
+ */
18
+ headerClass?: string;
19
+ /**
20
+ * @description custom class name of card body
21
+ */
22
+ bodyClass?: string;
23
+ /**
24
+ * @description custom class name of card footer
25
+ */
26
+ footerClass?: string;
27
+ /**
28
+ * @description when to show card shadows
29
+ */
30
+ shadow?: 'always' | 'hover' | 'never';
31
+ }
32
+ /**
33
+ * @deprecated Removed after 3.0.0, Use `CardProps` instead.
34
+ */
35
+ export declare const cardProps: {
36
+ readonly header: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
37
+ readonly footer: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
38
+ readonly bodyStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
39
+ readonly headerClass: StringConstructor;
40
+ readonly bodyClass: StringConstructor;
41
+ readonly footerClass: StringConstructor;
42
+ readonly shadow: import("@element-plus/utils").EpPropFinalized<StringConstructor, "always" | "never" | "hover", unknown, undefined, boolean>;
43
+ };
44
+ /**
45
+ * @deprecated Removed after 3.0.0, Use `CardProps` instead.
46
+ */
47
+ export type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>;
48
+ export interface CardConfigContext {
49
+ shadow?: CardProps['shadow'];
50
+ }
51
+ export declare const cardContextKey: InjectionKey<CardConfigContext>;
@@ -0,0 +1,49 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@element-plus/icons-vue";
5
+ import { buildProps as t, definePropType as e } from "../../utils/vue/props/runtime.js";
6
+ import "vue";
7
+ t({
8
+ /**
9
+ * @description title of the card. Also accepts a DOM passed by `slot#header`
10
+ */
11
+ header: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ /**
16
+ * @description content of footer. Also accepts a DOM passed by `slot#footer`
17
+ */
18
+ footer: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ /**
23
+ * @description CSS style of card body
24
+ */
25
+ bodyStyle: {
26
+ type: e([String, Object, Array, Boolean]),
27
+ default: ""
28
+ },
29
+ /**
30
+ * @description custom class name of card footer
31
+ */
32
+ headerClass: String,
33
+ /**
34
+ * @description custom class name of card body
35
+ */
36
+ bodyClass: String,
37
+ /**
38
+ * @description custom class name of card footer
39
+ */
40
+ footerClass: String,
41
+ /**
42
+ * @description when to show card shadows
43
+ */
44
+ shadow: {
45
+ type: String,
46
+ values: ["always", "hover", "never"],
47
+ default: void 0
48
+ }
49
+ });
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElCard } from 'element-plus';
3
- export declare const EpCard: typeof ElCard & Plugin;
2
+ import _EpCard from './EpCard.vue';
3
+ /**
4
+ * card 自持 barrel(vendor-batch-5 产出)。
5
+ *
6
+ * 阴影支持全局配置回退;`cardContextKey` 随本体落到本地,
7
+ * 供后续卡片子组件使用。本批不导出 `ElCard` 别名。
8
+ */
9
+ export declare const EpCard: typeof _EpCard & Plugin;
4
10
  export default EpCard;
11
+ export { cardContextKey, cardProps } from './card';
12
+ export type { CardConfigContext, CardProps, CardPropsPublic, } from './card';
13
+ export type { CardInstance } from './instance';
@@ -1,6 +1,7 @@
1
- import { ElCard as r } from "element-plus";
2
- import { withInstall as a } from "../../utils/with-install.js";
3
- const t = Object.assign({}, r, { name: "EpCard" }), d = a(t, "ep-card");
1
+ import { withInstall as r } from "../../utils/with-install.js";
2
+ import o from "./EpCard.vue.js";
3
+ import "./card.js";
4
+ const i = r(o, "ep-card");
4
5
  export {
5
- d as EpCard
6
+ i as EpCard
6
7
  };
@@ -0,0 +1,2 @@
1
+ import type Card from './EpCard.vue';
2
+ export type CardInstance = InstanceType<typeof Card> & unknown;
@@ -0,0 +1,24 @@
1
+ import type { ColProps } from './col';
2
+ declare var __VLS_6: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<ColProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColProps> & Readonly<{}>, {
7
+ push: number;
8
+ offset: number;
9
+ span: number;
10
+ tag: string;
11
+ pull: number;
12
+ xs: import("./col").ColSize;
13
+ sm: import("./col").ColSize;
14
+ md: import("./col").ColSize;
15
+ lg: import("./col").ColSize;
16
+ xl: import("./col").ColSize;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent as c, inject as d, computed as r, openBlock as h, createBlock as $, resolveDynamicComponent as g, normalizeStyle as b, normalizeClass as x, withCtx as v, renderSlot as y } from "vue";
2
+ import { isNumber as f } from "../../utils/types.js";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { isObject as C } from "@vue/shared";
6
+ import "@element-plus/icons-vue";
7
+ import { useNamespace as E } from "../../hooks/use-namespace/index.js";
8
+ import "../../hooks/use-size/index.js";
9
+ import "@popperjs/core";
10
+ import "../../hooks/use-z-index/index.js";
11
+ import "../../hooks/use-delayed-toggle/index.js";
12
+ import "../../hooks/use-aria/index.js";
13
+ import "../../hooks/use-model-toggle/index.js";
14
+ import "../../hooks/use-empty-values/index.js";
15
+ import { rowContextKey as _ } from "../row/constants.js";
16
+ const I = /* @__PURE__ */ c({
17
+ name: "EpCol",
18
+ __name: "EpCol",
19
+ props: {
20
+ tag: { default: "div" },
21
+ span: { default: 24 },
22
+ offset: { default: 0 },
23
+ pull: { default: 0 },
24
+ push: { default: 0 },
25
+ xs: { default: () => ({}) },
26
+ sm: { default: () => ({}) },
27
+ md: { default: () => ({}) },
28
+ lg: { default: () => ({}) },
29
+ xl: { default: () => ({}) }
30
+ },
31
+ setup(n) {
32
+ const s = n, { gutter: a } = d(_, { gutter: r(() => 0) }), o = E("col"), m = r(() => {
33
+ const e = {};
34
+ return a.value && (e.paddingLeft = e.paddingRight = `${a.value / 2}px`), e;
35
+ }), i = r(() => {
36
+ const e = [];
37
+ return ["span", "offset", "pull", "push"].forEach((t) => {
38
+ const l = s[t];
39
+ f(l) && (t === "span" ? e.push(o.b(`${s[t]}`)) : l > 0 && e.push(o.b(`${t}-${s[t]}`)));
40
+ }), ["xs", "sm", "md", "lg", "xl"].forEach((t) => {
41
+ f(s[t]) ? e.push(o.b(`${t}-${s[t]}`)) : C(s[t]) && Object.entries(s[t]).forEach(([l, u]) => {
42
+ e.push(
43
+ l !== "span" ? o.b(`${t}-${l}-${u}`) : o.b(`${t}-${u}`)
44
+ );
45
+ });
46
+ }), a.value && e.push(o.is("guttered")), [o.b(), e];
47
+ });
48
+ return (e, p) => (h(), $(g(n.tag), {
49
+ class: x(i.value),
50
+ style: b(m.value)
51
+ }, {
52
+ default: v(() => [
53
+ y(e.$slots, "default")
54
+ ]),
55
+ _: 3
56
+ }, 8, ["class", "style"]));
57
+ }
58
+ });
59
+ export {
60
+ I as default
61
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpCol.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,71 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type EpCol from './EpCol.vue';
3
+ export type ColSizeObject = {
4
+ span?: number;
5
+ offset?: number;
6
+ pull?: number;
7
+ push?: number;
8
+ };
9
+ export type ColSize = number | ColSizeObject;
10
+ export interface ColProps {
11
+ /**
12
+ * @description custom element tag
13
+ */
14
+ tag?: string;
15
+ /**
16
+ * @description number of column the grid spans
17
+ */
18
+ span?: number;
19
+ /**
20
+ * @description number of spacing on the left side of the grid
21
+ */
22
+ offset?: number;
23
+ /**
24
+ * @description number of columns that grid moves to the left
25
+ */
26
+ pull?: number;
27
+ /**
28
+ * @description number of columns that grid moves to the right
29
+ */
30
+ push?: number;
31
+ /**
32
+ * @description `<768px` Responsive columns or column props object
33
+ */
34
+ xs?: ColSize;
35
+ /**
36
+ * @description `≥768px` Responsive columns or column props object
37
+ */
38
+ sm?: ColSize;
39
+ /**
40
+ * @description `≥992px` Responsive columns or column props object
41
+ */
42
+ md?: ColSize;
43
+ /**
44
+ * @description `≥1200px` Responsive columns or column props object
45
+ */
46
+ lg?: ColSize;
47
+ /**
48
+ * @description `≥1920px` Responsive columns or column props object
49
+ */
50
+ xl?: ColSize;
51
+ }
52
+ /**
53
+ * @deprecated Removed after 3.0.0, Use `ColProps` instead.
54
+ */
55
+ export declare const colProps: {
56
+ readonly tag: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
57
+ readonly span: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
58
+ readonly offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
59
+ readonly pull: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
60
+ readonly push: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
61
+ readonly xs: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
62
+ readonly sm: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
63
+ readonly md: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
64
+ readonly lg: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
65
+ readonly xl: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | ColSizeObject) | (() => ColSize) | (((new (...args: any[]) => number | ColSizeObject) | (() => ColSize)) | null)[], unknown, unknown, () => import("@element-plus/utils").Mutable<{}>, boolean>;
66
+ };
67
+ /**
68
+ * @deprecated Removed after 3.0.0, Use `ColProps` instead.
69
+ */
70
+ export type ColPropsPublic = ExtractPublicPropTypes<typeof colProps>;
71
+ export type ColInstance = InstanceType<typeof EpCol> & unknown;