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,34 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { IconPropType } from '@element-plus/utils';
3
+ import type { CollapseActiveName } from '../collapse/collapse';
4
+ export interface CollapseItemProps {
5
+ /**
6
+ * @description title of the panel
7
+ */
8
+ title?: string;
9
+ /**
10
+ * @description unique identification of the panel
11
+ */
12
+ name?: CollapseActiveName;
13
+ /**
14
+ * @description icon of the collapse item
15
+ */
16
+ icon?: IconPropType;
17
+ /**
18
+ * @description disable the collapse item
19
+ */
20
+ disabled?: boolean;
21
+ }
22
+ /**
23
+ * @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.
24
+ */
25
+ export declare const collapseItemProps: {
26
+ readonly title: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
27
+ readonly name: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => CollapseActiveName) | (((new (...args: any[]) => string | number) | (() => CollapseActiveName)) | null)[], unknown, unknown, undefined, boolean>;
28
+ readonly icon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
29
+ readonly disabled: BooleanConstructor;
30
+ };
31
+ /**
32
+ * @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.
33
+ */
34
+ export type CollapseItemPropsPublic = ExtractPublicPropTypes<typeof collapseItemProps>;
@@ -0,0 +1,34 @@
1
+ import "@vue/shared";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import { iconPropType as o } from "../../utils/vue/icon.js";
5
+ import "vue";
6
+ import { buildProps as r, definePropType as t } from "../../utils/vue/props/runtime.js";
7
+ import { ArrowRight as i } from "@element-plus/icons-vue";
8
+ r({
9
+ /**
10
+ * @description title of the panel
11
+ */
12
+ title: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ /**
17
+ * @description unique identification of the panel
18
+ */
19
+ name: {
20
+ type: t([String, Number]),
21
+ default: void 0
22
+ },
23
+ /**
24
+ * @description icon of the collapse item
25
+ */
26
+ icon: {
27
+ type: o,
28
+ default: i
29
+ },
30
+ /**
31
+ * @description disable the collapse item
32
+ */
33
+ disabled: Boolean
34
+ });
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElCollapseItem } from 'element-plus';
3
- export declare const EpCollapseItem: typeof ElCollapseItem & Plugin;
2
+ import _EpCollapseItem from './EpCollapseItem.vue';
3
+ /**
4
+ * collapse-item 自持 barrel(vendor-batch-4 产出)。
5
+ *
6
+ * 子项通过 `../collapse/constants` 的本地 `collapseContextKey` 注入父上下文;
7
+ * 父入口以本文件所在目录的本体挂载 `.CollapseItem`。不导出 `ElCollapseItem` 别名。
8
+ */
9
+ export declare const EpCollapseItem: typeof _EpCollapseItem & Plugin;
4
10
  export default EpCollapseItem;
11
+ export { collapseItemProps } from './collapse-item';
12
+ export type { CollapseItemProps, CollapseItemPropsPublic, } from './collapse-item';
13
+ export type { CollapseItemInstance } from './instance';
@@ -1,6 +1,10 @@
1
- import { ElCollapseItem as e } from "element-plus";
2
- import { withInstall as l } from "../../utils/with-install.js";
3
- const t = Object.assign({}, e, { name: "EpCollapseItem" }), m = l(t, "ep-collapse-item");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import t from "./EpCollapseItem.vue.js";
3
+ import "./collapse-item.js";
4
+ const i = o(
5
+ t,
6
+ "ep-collapse-item"
7
+ );
4
8
  export {
5
- m as EpCollapseItem
9
+ i as EpCollapseItem
6
10
  };
@@ -0,0 +1,2 @@
1
+ import type EpCollapseItem from './EpCollapseItem.vue';
2
+ export type CollapseItemInstance = InstanceType<typeof EpCollapseItem> & 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
2
  import "../../roving-focus-group/src/roving-focus-group.vue.js";
3
- import "../../roving-focus-group/src/roving-focus-item.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
2
  import "../../roving-focus-group/src/roving-focus-group.vue.js";
3
- import C from "../../roving-focus-group/src/roving-focus-item2.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";
@@ -7,7 +7,7 @@ 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
9
  import "../../roving-focus-group/src/roving-focus-group.vue.js";
10
- import "../../roving-focus-group/src/roving-focus-item.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";
@@ -5,7 +5,7 @@ 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
7
  import L from "../../roving-focus-group/src/roving-focus-group2.vue.js";
8
- import "../../roving-focus-group/src/roving-focus-item.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;