ep-craft 0.1.35 → 0.1.36

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 (114) hide show
  1. package/dist/components/breadcrumb/EpBreadcrumb.vue.d.ts +15 -0
  2. package/dist/components/breadcrumb/EpBreadcrumb.vue.js +41 -0
  3. package/dist/components/breadcrumb/EpBreadcrumb2.vue.js +4 -0
  4. package/dist/components/breadcrumb/breadcrumb.d.ts +28 -0
  5. package/dist/components/breadcrumb/breadcrumb.js +21 -0
  6. package/dist/components/breadcrumb/constants.d.ts +3 -0
  7. package/dist/components/breadcrumb/constants.js +4 -0
  8. package/dist/components/breadcrumb/index.d.ts +20 -2
  9. package/dist/components/breadcrumb/index.js +10 -4
  10. package/dist/components/breadcrumb/instance.d.ts +2 -0
  11. package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.d.ts +15 -0
  12. package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.js +58 -0
  13. package/dist/components/breadcrumb-item/EpBreadcrumbItem2.vue.js +4 -0
  14. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +23 -0
  15. package/dist/components/breadcrumb-item/breadcrumb-item.js +19 -0
  16. package/dist/components/breadcrumb-item/index.d.ts +11 -2
  17. package/dist/components/breadcrumb-item/index.js +8 -4
  18. package/dist/components/breadcrumb-item/instance.d.ts +2 -0
  19. package/dist/components/col/EpCol.vue.d.ts +24 -0
  20. package/dist/components/col/EpCol.vue.js +61 -0
  21. package/dist/components/col/EpCol2.vue.js +4 -0
  22. package/dist/components/col/col.d.ts +71 -0
  23. package/dist/components/col/col.js +79 -0
  24. package/dist/components/col/index.d.ts +10 -2
  25. package/dist/components/col/index.js +5 -4
  26. package/dist/components/collapse/EpCollapse.vue.d.ts +27 -0
  27. package/dist/components/collapse/EpCollapse.vue.js +30 -0
  28. package/dist/components/collapse/EpCollapse2.vue.js +4 -0
  29. package/dist/components/collapse/collapse.d.ts +47 -0
  30. package/dist/components/collapse/collapse.js +46 -0
  31. package/dist/components/collapse/constants.d.ts +7 -0
  32. package/dist/components/collapse/constants.js +4 -0
  33. package/dist/components/collapse/index.d.ts +21 -2
  34. package/dist/components/collapse/index.js +11 -3
  35. package/dist/components/collapse/instance.d.ts +2 -0
  36. package/dist/components/collapse/use-collapse-item.d.ts +21 -0
  37. package/dist/components/collapse/use-collapse-item.js +66 -0
  38. package/dist/components/collapse/use-collapse.d.ts +9 -0
  39. package/dist/components/collapse/use-collapse.js +72 -0
  40. package/dist/components/collapse-item/EpCollapseItem.vue.d.ts +27 -0
  41. package/dist/components/collapse-item/EpCollapseItem.vue.js +102 -0
  42. package/dist/components/collapse-item/EpCollapseItem2.vue.js +4 -0
  43. package/dist/components/collapse-item/collapse-item.d.ts +34 -0
  44. package/dist/components/collapse-item/collapse-item.js +34 -0
  45. package/dist/components/collapse-item/index.d.ts +11 -2
  46. package/dist/components/collapse-item/index.js +8 -4
  47. package/dist/components/collapse-item/instance.d.ts +2 -0
  48. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +1 -1
  49. package/dist/components/dropdown/src/dropdown-item2.vue.js +1 -1
  50. package/dist/components/dropdown/src/dropdown-menu2.vue.js +1 -1
  51. package/dist/components/dropdown/src/dropdown2.vue.js +1 -1
  52. package/dist/components/image/EpImage.vue.d.ts +63 -0
  53. package/dist/components/image/EpImage.vue.js +207 -0
  54. package/dist/components/image/EpImage2.vue.js +4 -0
  55. package/dist/components/image/image.d.ts +132 -0
  56. package/dist/components/image/image.js +132 -0
  57. package/dist/components/image/index.d.ts +11 -2
  58. package/dist/components/image/index.js +9 -4
  59. package/dist/components/image/instance.d.ts +2 -0
  60. package/dist/components/image-viewer/EpImageViewer.vue.d.ts +61 -0
  61. package/dist/components/image-viewer/EpImageViewer.vue.js +421 -0
  62. package/dist/components/image-viewer/EpImageViewer2.vue.js +4 -0
  63. package/dist/components/image-viewer/image-viewer.d.ts +100 -0
  64. package/dist/components/image-viewer/image-viewer.js +99 -0
  65. package/dist/components/image-viewer/index.d.ts +11 -2
  66. package/dist/components/image-viewer/index.js +9 -4
  67. package/dist/components/image-viewer/instance.d.ts +2 -0
  68. package/dist/components/roving-focus-group/index.js +1 -1
  69. package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +19 -11
  70. package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +11 -19
  71. package/dist/components/row/EpRow.vue.d.ts +17 -0
  72. package/dist/components/row/EpRow.vue.js +50 -0
  73. package/dist/components/row/EpRow2.vue.js +4 -0
  74. package/dist/components/row/constants.d.ts +5 -0
  75. package/dist/components/row/constants.js +4 -0
  76. package/dist/components/row/index.d.ts +12 -2
  77. package/dist/components/row/index.js +7 -4
  78. package/dist/components/row/row.d.ts +41 -0
  79. package/dist/components/row/row.js +49 -0
  80. package/dist/components/skeleton/EpSkeleton.vue.d.ts +24 -0
  81. package/dist/components/skeleton/EpSkeleton.vue.js +56 -0
  82. package/dist/components/skeleton/EpSkeleton2.vue.js +4 -0
  83. package/dist/components/skeleton/index.d.ts +16 -2
  84. package/dist/components/skeleton/index.js +9 -3
  85. package/dist/components/skeleton/skeleton.d.ts +53 -0
  86. package/dist/components/skeleton/skeleton.js +39 -0
  87. package/dist/components/skeleton-item/EpSkeletonItem.vue.d.ts +5 -0
  88. package/dist/components/skeleton-item/EpSkeletonItem.vue.js +31 -0
  89. package/dist/components/skeleton-item/EpSkeletonItem2.vue.js +4 -0
  90. package/dist/components/skeleton-item/index.d.ts +8 -2
  91. package/dist/components/skeleton-item/index.js +7 -3
  92. package/dist/components/skeleton-item/skeleton-item.d.ts +19 -0
  93. package/dist/components/skeleton-item/skeleton-item.js +26 -0
  94. package/dist/components/timeline/index.d.ts +21 -2
  95. package/dist/components/timeline/index.js +10 -3
  96. package/dist/components/timeline/instance.d.ts +2 -0
  97. package/dist/components/timeline/timeline.d.ts +20 -0
  98. package/dist/components/timeline/timeline.js +53 -0
  99. package/dist/components/timeline/tokens.d.ts +7 -0
  100. package/dist/components/timeline/tokens.js +4 -0
  101. package/dist/components/timeline-item/EpTimelineItem.vue.d.ts +21 -0
  102. package/dist/components/timeline-item/EpTimelineItem.vue.js +94 -0
  103. package/dist/components/timeline-item/EpTimelineItem2.vue.js +4 -0
  104. package/dist/components/timeline-item/index.d.ts +12 -2
  105. package/dist/components/timeline-item/index.js +7 -3
  106. package/dist/components/timeline-item/instance.d.ts +2 -0
  107. package/dist/components/timeline-item/timeline-item.d.ts +63 -0
  108. package/dist/components/timeline-item/timeline-item.js +64 -0
  109. package/dist/hooks/index.d.ts +1 -0
  110. package/dist/hooks/use-throttle-render/index.d.ts +7 -0
  111. package/dist/hooks/use-throttle-render/index.js +31 -0
  112. package/dist/vendored-components.d.ts +1 -1
  113. package/dist/vendored-components.js +18 -1
  114. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ import type { BreadcrumbProps } from './breadcrumb';
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<BreadcrumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {
7
+ separator: string;
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,41 @@
1
+ import { defineComponent as p, ref as n, provide as s, onMounted as c, openBlock as l, createElementBlock as u, unref as o, normalizeClass as b, renderSlot as d } from "vue";
2
+ import { useNamespace as f } 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 { useLocale as _ } from "../../hooks/use-locale/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 { breadcrumbKey as g } from "./constants.js";
16
+ const h = ["aria-label"], N = /* @__PURE__ */ p({
17
+ name: "EpBreadcrumb",
18
+ __name: "EpBreadcrumb",
19
+ props: {
20
+ separator: { default: "/" },
21
+ separatorIcon: {}
22
+ },
23
+ setup(a) {
24
+ const { t: m } = _(), i = a, r = f("breadcrumb"), t = n();
25
+ return s(g, i), c(() => {
26
+ const e = t.value.querySelectorAll(`.${r.e("item")}`);
27
+ e.length && e[e.length - 1].setAttribute("aria-current", "page");
28
+ }), (e, v) => (l(), u("div", {
29
+ ref_key: "breadcrumb",
30
+ ref: t,
31
+ class: b(o(r).b()),
32
+ "aria-label": o(m)("el.breadcrumb.label"),
33
+ role: "navigation"
34
+ }, [
35
+ d(e.$slots, "default")
36
+ ], 10, h));
37
+ }
38
+ });
39
+ export {
40
+ N as default
41
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpBreadcrumb.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,28 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { IconPropType } from '@element-plus/utils';
3
+ export interface BreadcrumbProps {
4
+ /**
5
+ * @description separator character
6
+ */
7
+ separator?: string;
8
+ /**
9
+ * @description icon component of icon separator
10
+ */
11
+ separatorIcon?: IconPropType;
12
+ }
13
+ /**
14
+ * @deprecated Removed after 3.0.0, Use `BreadcrumbProps` instead.
15
+ */
16
+ export declare const breadcrumbProps: {
17
+ readonly separator: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "/", boolean>;
18
+ readonly separatorIcon: {
19
+ readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(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>>;
20
+ readonly required: false;
21
+ readonly validator: ((val: unknown) => boolean) | undefined;
22
+ __epPropKey: true;
23
+ };
24
+ };
25
+ /**
26
+ * @deprecated Removed after 3.0.0, Use `BreadcrumbProps` instead.
27
+ */
28
+ export type BreadcrumbPropsPublic = ExtractPublicPropTypes<typeof breadcrumbProps>;
@@ -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,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;
@@ -0,0 +1,79 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import { mutable as e } from "../../utils/typescript.js";
5
+ import "@element-plus/icons-vue";
6
+ import { buildProps as p, definePropType as t } from "../../utils/vue/props/runtime.js";
7
+ import "vue";
8
+ p({
9
+ /**
10
+ * @description custom element tag
11
+ */
12
+ tag: {
13
+ type: String,
14
+ default: "div"
15
+ },
16
+ /**
17
+ * @description number of column the grid spans
18
+ */
19
+ span: {
20
+ type: Number,
21
+ default: 24
22
+ },
23
+ /**
24
+ * @description number of spacing on the left side of the grid
25
+ */
26
+ offset: {
27
+ type: Number,
28
+ default: 0
29
+ },
30
+ /**
31
+ * @description number of columns that grid moves to the left
32
+ */
33
+ pull: {
34
+ type: Number,
35
+ default: 0
36
+ },
37
+ /**
38
+ * @description number of columns that grid moves to the right
39
+ */
40
+ push: {
41
+ type: Number,
42
+ default: 0
43
+ },
44
+ /**
45
+ * @description `<768px` Responsive columns or column props object
46
+ */
47
+ xs: {
48
+ type: t([Number, Object]),
49
+ default: () => e({})
50
+ },
51
+ /**
52
+ * @description `≥768px` Responsive columns or column props object
53
+ */
54
+ sm: {
55
+ type: t([Number, Object]),
56
+ default: () => e({})
57
+ },
58
+ /**
59
+ * @description `≥992px` Responsive columns or column props object
60
+ */
61
+ md: {
62
+ type: t([Number, Object]),
63
+ default: () => e({})
64
+ },
65
+ /**
66
+ * @description `≥1200px` Responsive columns or column props object
67
+ */
68
+ lg: {
69
+ type: t([Number, Object]),
70
+ default: () => e({})
71
+ },
72
+ /**
73
+ * @description `≥1920px` Responsive columns or column props object
74
+ */
75
+ xl: {
76
+ type: t([Number, Object]),
77
+ default: () => e({})
78
+ }
79
+ });
@@ -1,4 +1,12 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElCol } from 'element-plus';
3
- export declare const EpCol: typeof ElCol & Plugin;
2
+ import _EpCol from './EpCol.vue';
3
+ /**
4
+ * col 自持 barrel(vendor-batch-4 产出)。
5
+ *
6
+ * 列通过 `../row/constants` 的本地 `rowContextKey` 读取父级 gutter;
7
+ * 这是本批唯一允许的跨族 constants 依赖。不导出 `ElCol` 别名。
8
+ */
9
+ export declare const EpCol: typeof _EpCol & Plugin;
4
10
  export default EpCol;
11
+ export { colProps } from './col';
12
+ export type { ColInstance, ColProps, ColPropsPublic, ColSize, ColSizeObject, } from './col';
@@ -1,6 +1,7 @@
1
- import { ElCol as o } from "element-plus";
2
- import { withInstall as l } from "../../utils/with-install.js";
3
- const t = Object.assign({}, o, { name: "EpCol" }), n = l(t, "ep-col");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import t from "./EpCol.vue.js";
3
+ import "./col.js";
4
+ const i = o(t, "ep-col");
4
5
  export {
5
- n as EpCol
6
+ i as EpCol
6
7
  };
@@ -0,0 +1,27 @@
1
+ import type { CollapseProps } from './collapse';
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<CollapseProps, {
7
+ /** @description active names */
8
+ activeNames: import("vue").Ref<(string | number)[], (string | number)[]>;
9
+ /** @description set active names */
10
+ setActiveNames: (_activeNames: import("./collapse").CollapseActiveName[]) => void;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: import("./collapse").CollapseModelValue) => void;
13
+ change: (value: import("./collapse").CollapseModelValue) => void;
14
+ }, string, import("vue").PublicProps, Readonly<CollapseProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: import("./collapse").CollapseModelValue) => any) | undefined;
16
+ onChange?: ((value: import("./collapse").CollapseModelValue) => any) | undefined;
17
+ }>, {
18
+ modelValue: import("./collapse").CollapseModelValue;
19
+ expandIconPosition: import("./collapse").CollapseIconPositionType;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };