ep-craft 0.1.36 → 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 (93) 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/card/EpCard.vue.d.ts +22 -0
  20. package/dist/components/card/EpCard.vue.js +64 -0
  21. package/dist/components/card/EpCard2.vue.js +4 -0
  22. package/dist/components/card/card.d.ts +51 -0
  23. package/dist/components/card/card.js +49 -0
  24. package/dist/components/card/index.d.ts +11 -2
  25. package/dist/components/card/index.js +5 -4
  26. package/dist/components/card/instance.d.ts +2 -0
  27. package/dist/components/countdown/EpCountdown.vue.d.ts +28 -0
  28. package/dist/components/countdown/EpCountdown.vue.js +71 -0
  29. package/dist/components/countdown/EpCountdown2.vue.js +4 -0
  30. package/dist/components/countdown/countdown.d.ts +48 -0
  31. package/dist/components/countdown/countdown.js +50 -0
  32. package/dist/components/countdown/index.d.ts +11 -2
  33. package/dist/components/countdown/index.js +9 -4
  34. package/dist/components/countdown/instance.d.ts +2 -0
  35. package/dist/components/countdown/utils.d.ts +3 -0
  36. package/dist/components/countdown/utils.js +40 -0
  37. package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +2 -2
  38. package/dist/components/dropdown/src/dropdown-item2.vue.js +2 -2
  39. package/dist/components/dropdown/src/dropdown-menu2.vue.js +2 -2
  40. package/dist/components/dropdown/src/dropdown2.vue.js +2 -2
  41. package/dist/components/empty/EpEmpty.vue.d.ts +20 -0
  42. package/dist/components/empty/EpEmpty.vue.js +62 -0
  43. package/dist/components/empty/EpEmpty2.vue.js +4 -0
  44. package/dist/components/empty/empty.d.ts +27 -0
  45. package/dist/components/empty/empty.js +26 -0
  46. package/dist/components/empty/img-empty.vue.d.ts +2 -0
  47. package/dist/components/empty/img-empty.vue.js +141 -0
  48. package/dist/components/empty/img-empty2.vue.js +4 -0
  49. package/dist/components/empty/index.d.ts +11 -2
  50. package/dist/components/empty/index.js +8 -4
  51. package/dist/components/empty/instance.d.ts +2 -0
  52. package/dist/components/link/EpLink.vue.d.ts +24 -0
  53. package/dist/components/link/EpLink.vue.js +86 -0
  54. package/dist/components/link/EpLink2.vue.js +4 -0
  55. package/dist/components/link/index.d.ts +11 -2
  56. package/dist/components/link/index.js +5 -3
  57. package/dist/components/link/instance.d.ts +2 -0
  58. package/dist/components/link/link.d.ts +56 -0
  59. package/dist/components/link/link.js +51 -0
  60. package/dist/components/result/EpResult.vue.d.ts +23 -0
  61. package/dist/components/result/EpResult.vue.js +71 -0
  62. package/dist/components/result/EpResult2.vue.js +4 -0
  63. package/dist/components/result/index.d.ts +11 -2
  64. package/dist/components/result/index.js +10 -4
  65. package/dist/components/result/instance.d.ts +2 -0
  66. package/dist/components/result/result.d.ts +35 -0
  67. package/dist/components/result/result.js +47 -0
  68. package/dist/components/roving-focus-group/index.js +2 -2
  69. package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +11 -19
  70. package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +19 -11
  71. package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +18 -76
  72. package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +76 -18
  73. package/dist/components/space/index.d.ts +15 -2
  74. package/dist/components/space/index.js +23 -4
  75. package/dist/components/space/instance.d.ts +2 -0
  76. package/dist/components/space/item.d.ts +29 -0
  77. package/dist/components/space/item.js +30 -0
  78. package/dist/components/space/space.d.ts +92 -0
  79. package/dist/components/space/space.js +182 -0
  80. package/dist/components/space/use-space.d.ts +7 -0
  81. package/dist/components/space/use-space.js +47 -0
  82. package/dist/components/statistic/EpStatistic.vue.d.ts +28 -0
  83. package/dist/components/statistic/EpStatistic.vue.js +82 -0
  84. package/dist/components/statistic/EpStatistic2.vue.js +4 -0
  85. package/dist/components/statistic/index.d.ts +11 -2
  86. package/dist/components/statistic/index.js +8 -4
  87. package/dist/components/statistic/instance.d.ts +2 -0
  88. package/dist/components/statistic/statistic.d.ts +58 -0
  89. package/dist/components/statistic/statistic.js +59 -0
  90. package/dist/utils/vue/vnode.js +32 -22
  91. package/dist/vendored-components.d.ts +1 -1
  92. package/dist/vendored-components.js +16 -3
  93. package/package.json +1 -1
@@ -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,28 @@
1
+ import type { CountdownProps } from './countdown';
2
+ declare var __VLS_6: string | number, __VLS_7: {};
3
+ type __VLS_Slots = {} & {
4
+ [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<CountdownProps, {
7
+ /**
8
+ * @description current display value
9
+ */
10
+ displayValue: import("vue").ComputedRef<string>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ change: (value: number) => void;
13
+ finish: () => void;
14
+ }, string, import("vue").PublicProps, Readonly<CountdownProps> & Readonly<{
15
+ onChange?: ((value: number) => any) | undefined;
16
+ onFinish?: (() => any) | undefined;
17
+ }>, {
18
+ value: number | import("dayjs").Dayjs;
19
+ format: string;
20
+ valueStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,71 @@
1
+ import { defineComponent as y, ref as E, computed as C, onMounted as S, watch as T, onBeforeUnmount as h, openBlock as A, createBlock as B, createSlots as F, renderList as H, withCtx as V, renderSlot as $ } from "vue";
2
+ import "@vue/shared";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { rAF as u, cAF as g } from "../../utils/raf.js";
6
+ import { CHANGE_EVENT as k } from "../../constants/event.js";
7
+ import "@element-plus/icons-vue";
8
+ import D from "../statistic/EpStatistic.vue.js";
9
+ import { countdownEmits as N } from "./countdown.js";
10
+ import { formatTime as s, getTime as c } from "./utils.js";
11
+ const I = /* @__PURE__ */ y({
12
+ name: "EpCountdown",
13
+ __name: "EpCountdown",
14
+ props: {
15
+ format: { default: "HH:mm:ss" },
16
+ prefix: {},
17
+ suffix: {},
18
+ title: {},
19
+ value: { default: 0 },
20
+ valueStyle: { type: [Boolean, null, String, Object, Array], default: void 0 }
21
+ },
22
+ emits: N,
23
+ setup(o, { expose: p, emit: d }) {
24
+ const t = o, n = d;
25
+ let r;
26
+ const a = E(0), v = C(() => s(a.value, t.format)), x = (e) => s(e, t.format), m = () => {
27
+ r && (g(r), r = void 0);
28
+ }, w = () => {
29
+ const e = c(t.value), l = () => {
30
+ let i = e - Date.now();
31
+ n(k, i), i <= 0 ? (i = 0, m(), n("finish")) : r = u(l), a.value = i;
32
+ };
33
+ r = u(l);
34
+ };
35
+ return S(() => {
36
+ a.value = c(t.value) - Date.now(), T(
37
+ () => [t.value, t.format],
38
+ () => {
39
+ m(), w();
40
+ },
41
+ {
42
+ immediate: !0
43
+ }
44
+ );
45
+ }), h(() => {
46
+ m();
47
+ }), p({
48
+ /**
49
+ * @description current display value
50
+ */
51
+ displayValue: v
52
+ }), (e, l) => (A(), B(D, {
53
+ value: a.value,
54
+ title: o.title,
55
+ prefix: o.prefix,
56
+ suffix: o.suffix,
57
+ "value-style": o.valueStyle,
58
+ formatter: x
59
+ }, F({ _: 2 }, [
60
+ H(e.$slots, (i, f) => ({
61
+ name: f,
62
+ fn: V(() => [
63
+ $(e.$slots, f)
64
+ ])
65
+ }))
66
+ ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]));
67
+ }
68
+ });
69
+ export {
70
+ I as default
71
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpCountdown.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,48 @@
1
+ import type { ExtractPublicPropTypes, StyleValue } from 'vue';
2
+ import type { Dayjs } from 'dayjs';
3
+ export interface CountdownProps {
4
+ /**
5
+ * @description Formatting the countdown display
6
+ */
7
+ format?: string;
8
+ /**
9
+ * @description Sets the prefix of a countdown
10
+ */
11
+ prefix?: string;
12
+ /**
13
+ * @description Sets the suffix of a countdown
14
+ */
15
+ suffix?: string;
16
+ /**
17
+ * @description countdown titles
18
+ */
19
+ title?: string;
20
+ /**
21
+ * @description target time
22
+ */
23
+ value?: number | Dayjs;
24
+ /**
25
+ * @description Styles countdown values
26
+ */
27
+ valueStyle?: StyleValue;
28
+ }
29
+ /**
30
+ * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
31
+ */
32
+ export declare const countdownProps: {
33
+ readonly format: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
34
+ readonly prefix: StringConstructor;
35
+ readonly suffix: StringConstructor;
36
+ readonly title: StringConstructor;
37
+ readonly value: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | (((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs)) | null)[], unknown, unknown, 0, boolean>;
38
+ readonly valueStyle: 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, undefined, boolean>;
39
+ };
40
+ /**
41
+ * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
42
+ */
43
+ export type CountdownPropsPublic = ExtractPublicPropTypes<typeof countdownProps>;
44
+ export declare const countdownEmits: {
45
+ finish: () => boolean;
46
+ change: (value: number) => boolean;
47
+ };
48
+ export type CountdownEmits = typeof countdownEmits;
@@ -0,0 +1,50 @@
1
+ import { isNumber as i } from "../../utils/types.js";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@vue/shared";
5
+ import { CHANGE_EVENT as e } from "../../constants/event.js";
6
+ import "@element-plus/icons-vue";
7
+ import { buildProps as o, definePropType as t } from "../../utils/vue/props/runtime.js";
8
+ import "vue";
9
+ o({
10
+ /**
11
+ * @description Formatting the countdown display
12
+ */
13
+ format: {
14
+ type: String,
15
+ default: "HH:mm:ss"
16
+ },
17
+ /**
18
+ * @description Sets the prefix of a countdown
19
+ */
20
+ prefix: String,
21
+ /**
22
+ * @description Sets the suffix of a countdown
23
+ */
24
+ suffix: String,
25
+ /**
26
+ * @description countdown titles
27
+ */
28
+ title: String,
29
+ /**
30
+ * @description target time
31
+ */
32
+ value: {
33
+ type: t([Number, Object]),
34
+ default: 0
35
+ },
36
+ /**
37
+ * @description Styles countdown values
38
+ */
39
+ valueStyle: {
40
+ type: t([String, Object, Array, Boolean]),
41
+ default: void 0
42
+ }
43
+ });
44
+ const d = {
45
+ finish: () => !0,
46
+ [e]: (r) => i(r)
47
+ };
48
+ export {
49
+ d as countdownEmits
50
+ };
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElCountdown } from 'element-plus';
3
- export declare const EpCountdown: typeof ElCountdown & Plugin;
2
+ import _EpCountdown from './EpCountdown.vue';
3
+ /**
4
+ * countdown 自持 barrel(vendor-batch-5 产出)。
5
+ *
6
+ * 统计数值外观消费本地 `EpStatistic`,不再引入上游对应组件。
7
+ * 保留 `displayValue` 暴露契约,不导出 `ElCountdown` 别名。
8
+ */
9
+ export declare const EpCountdown: typeof _EpCountdown & Plugin;
4
10
  export default EpCountdown;
11
+ export { countdownEmits, countdownProps } from './countdown';
12
+ export type { CountdownEmits, CountdownProps, CountdownPropsPublic, } from './countdown';
13
+ export type { CountdownInstance } from './instance';
@@ -1,6 +1,11 @@
1
- import { ElCountdown as o } from "element-plus";
2
- import { withInstall as n } from "../../utils/with-install.js";
3
- const t = Object.assign({}, o, { name: "EpCountdown" }), d = n(t, "ep-countdown");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import t from "./EpCountdown.vue.js";
3
+ import { countdownEmits as c } from "./countdown.js";
4
+ const r = o(
5
+ t,
6
+ "ep-countdown"
7
+ );
4
8
  export {
5
- d as EpCountdown
9
+ r as EpCountdown,
10
+ c as countdownEmits
6
11
  };
@@ -0,0 +1,2 @@
1
+ import type Countdown from './EpCountdown.vue';
2
+ export type CountdownInstance = InstanceType<typeof Countdown> & unknown;
@@ -0,0 +1,3 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ export declare const getTime: (value: number | Dayjs) => number;
3
+ export declare const formatTime: (timestamp: number, format: string) => string;
@@ -0,0 +1,40 @@
1
+ import { isNumber as a } from "../../utils/types.js";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@vue/shared";
5
+ import "@element-plus/icons-vue";
6
+ import "vue";
7
+ const g = [
8
+ ["Y", 1e3 * 60 * 60 * 24 * 365],
9
+ // years
10
+ ["M", 1e3 * 60 * 60 * 24 * 30],
11
+ // months
12
+ ["D", 1e3 * 60 * 60 * 24],
13
+ // days
14
+ ["H", 1e3 * 60 * 60],
15
+ // hours
16
+ ["m", 1e3 * 60],
17
+ // minutes
18
+ ["s", 1e3],
19
+ // seconds
20
+ ["S", 1]
21
+ // million seconds
22
+ ], S = (e) => a(e) ? new Date(e).getTime() : e.valueOf(), h = (e, i) => {
23
+ let r = e;
24
+ const n = /\[([^\]]*)]/g;
25
+ return g.reduce((t, [c, o]) => {
26
+ const m = new RegExp(`${c}+(?![^\\[\\]]*\\])`, "g");
27
+ if (m.test(t)) {
28
+ const p = Math.floor(r / o);
29
+ return r -= p * o, t.replace(
30
+ m,
31
+ (s) => String(p).padStart(s.length, "0")
32
+ );
33
+ }
34
+ return t;
35
+ }, i).replace(n, "$1");
36
+ };
37
+ export {
38
+ h as formatTime,
39
+ S as getTime
40
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as E, inject as e, computed as _ } from "vue";
2
- import "../../roving-focus-group/src/roving-focus-group2.vue.js";
3
- import "../../roving-focus-group/src/roving-focus-item.vue.js";
2
+ import "../../roving-focus-group/src/roving-focus-group.vue.js";
3
+ import "../../roving-focus-group/src/roving-focus-item2.vue.js";
4
4
  import { ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY as O } from "../../roving-focus-group/src/tokens.js";
5
5
  import { EVENT_CODE as t } from "../../../constants/aria.js";
6
6
  import "@vue/shared";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as E, getCurrentInstance as P, inject as h, computed as k } from "vue";
2
- import "../../roving-focus-group/src/roving-focus-group2.vue.js";
3
- import C from "../../roving-focus-group/src/roving-focus-item2.vue.js";
2
+ import "../../roving-focus-group/src/roving-focus-group.vue.js";
3
+ import C from "../../roving-focus-group/src/roving-focus-item.vue.js";
4
4
  import "@vue/shared";
5
5
  import "lodash-unified";
6
6
  import "@vueuse/core";
@@ -6,8 +6,8 @@ import { composeEventHandlers as F, getEventCode as D } from "../../../utils/dom
6
6
  import "@element-plus/icons-vue";
7
7
  import { composeRefs as G } from "../../../utils/vue/refs.js";
8
8
  import { EVENT_CODE as y } from "../../../constants/aria.js";
9
- import "../../roving-focus-group/src/roving-focus-group2.vue.js";
10
- import "../../roving-focus-group/src/roving-focus-item.vue.js";
9
+ import "../../roving-focus-group/src/roving-focus-group.vue.js";
10
+ import "../../roving-focus-group/src/roving-focus-item2.vue.js";
11
11
  import { ROVING_FOCUS_GROUP_INJECTION_KEY as L } from "../../roving-focus-group/src/tokens.js";
12
12
  import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as b } from "../../roving-focus-group/src/roving-focus-group.js";
13
13
  import { useNamespace as J } from "../../../hooks/use-namespace/index.js";
@@ -4,8 +4,8 @@ import { EpButtonGroup as G } from "../../button-group/index.js";
4
4
  import { EpTooltip as P } from "../../tooltip/index.js";
5
5
  import { EpScrollbar as z } from "../../scrollbar/index.js";
6
6
  import { EpIcon as J } from "../../icon/index.js";
7
- import L from "../../roving-focus-group/src/roving-focus-group.vue.js";
8
- import "../../roving-focus-group/src/roving-focus-item.vue.js";
7
+ import L from "../../roving-focus-group/src/roving-focus-group2.vue.js";
8
+ import "../../roving-focus-group/src/roving-focus-item2.vue.js";
9
9
  import "@vue/shared";
10
10
  import { castArray as M } from "lodash-unified";
11
11
  import "@vueuse/core";
@@ -0,0 +1,20 @@
1
+ import type { EmptyProps } from './empty';
2
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ image?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ description?: (props: typeof __VLS_6) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
11
+ description: string;
12
+ image: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as f, computed as p, openBlock as o, createElementBlock as i, normalizeClass as s, unref as m, createElementVNode as l, normalizeStyle as y, renderSlot as a, createVNode as g, toDisplayString as v, createCommentVNode as E } from "vue";
2
+ import { useNamespace as S } from "../../hooks/use-namespace/index.js";
3
+ import "@vue/shared";
4
+ import "lodash-unified";
5
+ import "@vueuse/core";
6
+ import { addUnit as $ } from "../../utils/dom/style.js";
7
+ import "@element-plus/icons-vue";
8
+ import { useLocale as k } from "../../hooks/use-locale/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 h from "./img-empty.vue.js";
17
+ const z = ["src"], N = { key: 1 }, J = /* @__PURE__ */ f({
18
+ name: "EpEmpty",
19
+ __name: "EpEmpty",
20
+ props: {
21
+ image: { default: "" },
22
+ imageSize: {},
23
+ description: { default: "" }
24
+ },
25
+ setup(r) {
26
+ const n = r, { t: c } = k(), t = S("empty"), d = p(
27
+ () => n.description || c("el.table.emptyText")
28
+ ), u = p(() => ({
29
+ width: $(n.imageSize)
30
+ }));
31
+ return (e, b) => (o(), i("div", {
32
+ class: s(m(t).b())
33
+ }, [
34
+ l("div", {
35
+ class: s(m(t).e("image")),
36
+ style: y(u.value)
37
+ }, [
38
+ r.image ? (o(), i("img", {
39
+ key: 0,
40
+ src: r.image,
41
+ ondragstart: "return false"
42
+ }, null, 8, z)) : a(e.$slots, "image", {}, () => [
43
+ g(h)
44
+ ], void 0, 1)
45
+ ], 6),
46
+ l("div", {
47
+ class: s(m(t).e("description"))
48
+ }, [
49
+ e.$slots.description ? a(e.$slots, "description", {}, void 0, void 0, 0) : (o(), i("p", N, v(d.value), 1))
50
+ ], 2),
51
+ e.$slots.default ? (o(), i("div", {
52
+ key: 0,
53
+ class: s(m(t).e("bottom"))
54
+ }, [
55
+ a(e.$slots, "default")
56
+ ], 2)) : E("", !0)
57
+ ], 2));
58
+ }
59
+ });
60
+ export {
61
+ J as default
62
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpEmpty.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,27 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ export interface EmptyProps {
3
+ /**
4
+ * @description image URL of empty
5
+ */
6
+ image?: string;
7
+ /**
8
+ * @description image size (width) of empty
9
+ */
10
+ imageSize?: number;
11
+ /**
12
+ * @description description of empty
13
+ */
14
+ description?: string;
15
+ }
16
+ /**
17
+ * @deprecated Removed after 3.0.0, Use `EmptyProps` instead.
18
+ */
19
+ export declare const emptyProps: {
20
+ readonly image: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
21
+ readonly imageSize: NumberConstructor;
22
+ readonly description: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
23
+ };
24
+ /**
25
+ * @deprecated Removed after 3.0.0, Use `EmptyProps` instead.
26
+ */
27
+ export type EmptyPropsPublic = ExtractPublicPropTypes<typeof emptyProps>;
@@ -0,0 +1,26 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@element-plus/icons-vue";
5
+ import { buildProps as i } from "../../utils/vue/props/runtime.js";
6
+ import "vue";
7
+ i({
8
+ /**
9
+ * @description image URL of empty
10
+ */
11
+ image: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ /**
16
+ * @description image size (width) of empty
17
+ */
18
+ imageSize: Number,
19
+ /**
20
+ * @description description of empty
21
+ */
22
+ description: {
23
+ type: String,
24
+ default: ""
25
+ }
26
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;