ep-craft 0.1.19 → 0.1.21
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.
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/affix/affix.d.ts +55 -0
- package/dist/components/affix/affix.js +199 -0
- package/dist/components/affix/index.d.ts +2 -2
- package/dist/components/affix/index.js +3 -4
- package/dist/components/alert/alert.d.ts +39 -0
- package/dist/components/alert/alert.js +94 -0
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +3 -4
- package/dist/components/anchor/anchor.d.ts +54 -0
- package/dist/components/anchor/anchor.js +153 -0
- package/dist/components/anchor/index.d.ts +2 -2
- package/dist/components/anchor/index.js +3 -4
- package/dist/components/anchor-link/anchor-link.d.ts +17 -0
- package/dist/components/anchor-link/anchor-link.js +51 -0
- package/dist/components/anchor-link/index.d.ts +2 -2
- package/dist/components/anchor-link/index.js +6 -4
- package/dist/components/button/EpButton.vue.d.ts +11 -11
- package/dist/components/button/EpButton.vue.js +122 -0
- package/dist/components/button/EpButton2.vue.js +4 -0
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/button/button.js +95 -0
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +3 -4
- package/dist/components/button/use-button-custom.js +66 -0
- package/dist/components/check-tag/EpCheckTag.vue.d.ts +1 -1
- package/dist/components/check-tag/EpCheckTag.vue.js +29 -0
- package/dist/components/check-tag/EpCheckTag2.vue.js +4 -0
- package/dist/components/check-tag/check-tag.js +20 -0
- package/dist/components/check-tag/index.d.ts +2 -2
- package/dist/components/check-tag/index.js +3 -4
- package/dist/components/collapse-transition/index.d.ts +20 -3
- package/dist/components/collapse-transition/index.js +6 -4
- package/dist/components/collapse-transition/src/collapse-transition.vue.d.ts +12 -0
- package/dist/components/collapse-transition/src/collapse-transition.vue.js +55 -0
- package/dist/components/collapse-transition/src/collapse-transition2.vue.js +4 -0
- package/dist/components/config-provider/src/constants.d.ts +14 -0
- package/dist/components/config-provider/src/hooks/use-global-config.d.ts +32 -0
- package/dist/components/focus-trap/index.d.ts +81 -0
- package/dist/components/focus-trap/index.js +19 -0
- package/dist/components/focus-trap/src/focus-trap.vue.d.ts +32 -0
- package/dist/components/focus-trap/src/focus-trap.vue.js +10 -0
- package/dist/components/focus-trap/src/focus-trap2.vue.js +164 -0
- package/dist/components/focus-trap/src/tokens.d.ts +13 -0
- package/dist/components/focus-trap/src/tokens.js +17 -0
- package/dist/components/focus-trap/src/utils.d.ts +29 -0
- package/dist/components/focus-trap/src/utils.js +83 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.js +4 -2
- package/dist/components/form/src/constants.d.ts +4 -0
- package/dist/components/form/src/constants.js +4 -0
- package/dist/components/form/src/hooks/use-form-common-props.d.ts +6 -0
- package/dist/components/form/src/hooks/use-form-item.d.ts +19 -0
- package/dist/components/form/src/types.d.ts +24 -0
- package/dist/components/icon/index.d.ts +21 -3
- package/dist/components/icon/index.js +7 -4
- package/dist/components/icon/src/icon.d.ts +34 -0
- package/dist/components/icon/src/icon.js +16 -0
- package/dist/components/icon/src/icon.vue.d.ts +13 -0
- package/dist/components/icon/src/icon.vue.js +36 -0
- package/dist/components/icon/src/icon2.vue.js +4 -0
- package/dist/components/menu/menu.d.ts +8 -8
- package/dist/components/popper/index.d.ts +54 -3
- package/dist/components/popper/index.js +30 -5
- package/dist/components/popper/src/arrow.d.ts +30 -0
- package/dist/components/popper/src/arrow.js +14 -0
- package/dist/components/popper/src/arrow.vue.d.ts +7 -0
- package/dist/components/popper/src/arrow.vue.js +4 -0
- package/dist/components/popper/src/arrow2.vue.js +37 -0
- package/dist/components/popper/src/composables/index.d.ts +4 -0
- package/dist/components/popper/src/composables/use-content-dom.d.ts +40 -0
- package/dist/components/popper/src/composables/use-content-dom.js +45 -0
- package/dist/components/popper/src/composables/use-content.d.ts +77 -0
- package/dist/components/popper/src/composables/use-content.js +76 -0
- package/dist/components/popper/src/composables/use-focus-trap.d.ts +12 -0
- package/dist/components/popper/src/composables/use-focus-trap.js +29 -0
- package/dist/components/popper/src/constants.d.ts +23 -0
- package/dist/components/popper/src/constants.js +5 -0
- package/dist/components/popper/src/content.d.ts +234 -0
- package/dist/components/popper/src/content.js +129 -0
- package/dist/components/popper/src/content.vue.d.ts +61 -0
- package/dist/components/popper/src/content.vue.js +4 -0
- package/dist/components/popper/src/content2.vue.js +151 -0
- package/dist/components/popper/src/popper.d.ts +35 -0
- package/dist/components/popper/src/popper.js +22 -0
- package/dist/components/popper/src/popper.vue.d.ts +22 -0
- package/dist/components/popper/src/popper.vue.js +38 -0
- package/dist/components/popper/src/popper2.vue.js +4 -0
- package/dist/components/popper/src/trigger.d.ts +130 -0
- package/dist/components/popper/src/trigger.js +36 -0
- package/dist/components/popper/src/trigger.vue.d.ts +18 -0
- package/dist/components/popper/src/trigger.vue.js +4 -0
- package/dist/components/popper/src/trigger2.vue.js +134 -0
- package/dist/components/popper/src/utils.d.ts +48 -0
- package/dist/components/popper/src/utils.js +57 -0
- package/dist/components/radio/radio.d.ts +2 -2
- package/dist/components/radio-button/radio-button.d.ts +2 -2
- package/dist/components/radio-group/radio-group.d.ts +2 -2
- package/dist/components/slot/index.d.ts +3 -0
- package/dist/components/slot/src/only-child.d.ts +7 -0
- package/dist/components/slot/src/only-child.js +55 -0
- package/dist/components/tab-pane/tab-pane.d.ts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tag/EpTag.vue.d.ts +4 -4
- package/dist/components/tag/EpTag.vue.js +96 -0
- package/dist/components/tag/EpTag2.vue.js +4 -0
- package/dist/components/tag/index.d.ts +2 -2
- package/dist/components/tag/index.js +2 -3
- package/dist/components/tag/tag.js +38 -0
- package/dist/components/tooltip/index.d.ts +174 -3
- package/dist/components/tooltip/index.js +18 -5
- package/dist/components/tooltip/src/constants.d.ts +18 -0
- package/dist/components/tooltip/src/constants.js +4 -0
- package/dist/components/tooltip/src/content.d.ts +327 -0
- package/dist/components/tooltip/src/content.js +72 -0
- package/dist/components/tooltip/src/content.vue.d.ts +47 -0
- package/dist/components/tooltip/src/content.vue.js +188 -0
- package/dist/components/tooltip/src/content2.vue.js +4 -0
- package/dist/components/tooltip/src/tooltip.d.ts +346 -0
- package/dist/components/tooltip/src/tooltip.js +47 -0
- package/dist/components/tooltip/src/tooltip.vue.d.ts +90 -0
- package/dist/components/tooltip/src/tooltip.vue.js +236 -0
- package/dist/components/tooltip/src/tooltip2.vue.js +4 -0
- package/dist/components/tooltip/src/trigger.d.ts +94 -0
- package/dist/components/tooltip/src/trigger.js +41 -0
- package/dist/components/tooltip/src/trigger.vue.d.ts +26 -0
- package/dist/components/tooltip/src/trigger.vue.js +104 -0
- package/dist/components/tooltip/src/trigger2.vue.js +4 -0
- package/dist/components/tooltip/src/utils.d.ts +5 -0
- package/dist/components/tooltip/src/utils.js +9 -0
- package/dist/constants/aria.d.ts +17 -0
- package/dist/constants/aria.js +24 -0
- package/dist/constants/column-alignment.d.ts +2 -0
- package/dist/constants/date.d.ts +3 -0
- package/dist/constants/event.d.ts +3 -0
- package/dist/constants/form.d.ts +2 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/key.d.ts +1 -0
- package/dist/constants/size.d.ts +7 -0
- package/dist/constants/size.js +4 -0
- package/dist/directives/click-outside/index.d.ts +3 -0
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/mousewheel/index.d.ts +11 -0
- package/dist/directives/repeat-click/index.d.ts +17 -0
- package/dist/directives/trap-focus/index.d.ts +9 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/use-aria/index.d.ts +37 -0
- package/dist/hooks/use-aria/index.js +24 -0
- package/dist/hooks/use-delayed-toggle/index.d.ts +36 -0
- package/dist/hooks/use-delayed-toggle/index.js +63 -0
- package/dist/hooks/use-deprecated/index.d.ts +11 -0
- package/dist/hooks/use-empty-values/index.d.ts +29 -0
- package/dist/hooks/use-empty-values/index.js +23 -0
- package/dist/hooks/use-escape-keydown/index.d.ts +1 -0
- package/dist/hooks/use-escape-keydown/index.js +21 -0
- package/dist/hooks/use-forward-ref/index.d.ts +9 -0
- package/dist/hooks/use-forward-ref/index.js +23 -0
- package/dist/hooks/use-id/index.d.ts +8 -0
- package/dist/hooks/use-id/index.js +27 -0
- package/dist/hooks/use-locale/index.d.ts +17 -0
- package/dist/hooks/use-model-toggle/index.d.ts +46 -0
- package/dist/hooks/use-model-toggle/index.js +67 -0
- package/dist/hooks/use-namespace/index.d.ts +23 -0
- package/dist/hooks/use-namespace/index.js +45 -0
- package/dist/hooks/use-ordered-children/index.d.ts +14 -0
- package/dist/hooks/use-popper/index.d.ts +78 -0
- package/dist/hooks/use-popper/index.js +97 -0
- package/dist/hooks/use-popper-container/index.d.ts +8 -0
- package/dist/hooks/use-popper-container/index.js +26 -0
- package/dist/hooks/use-prop/index.d.ts +2 -0
- package/dist/hooks/use-size/index.d.ts +21 -0
- package/dist/hooks/use-size/index.js +8 -0
- package/dist/hooks/use-timeout/index.d.ts +4 -0
- package/dist/hooks/use-timeout/index.js +16 -0
- package/dist/hooks/use-z-index/index.d.ts +13 -0
- package/dist/hooks/use-z-index/index.js +27 -0
- package/dist/node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/anchor/src/anchor.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/button/index.js +2 -2
- package/dist/resolver.js +13 -12
- package/dist/utils/arrays.d.ts +6 -0
- package/dist/utils/arrays.js +5 -0
- package/dist/utils/browser.d.ts +4 -0
- package/dist/utils/browser.js +6 -0
- package/dist/utils/dom/aria.d.ts +26 -0
- package/dist/utils/dom/aria.js +26 -0
- package/dist/utils/dom/element.d.ts +3 -0
- package/dist/utils/dom/event.d.ts +8 -0
- package/dist/utils/dom/event.js +32 -0
- package/dist/utils/dom/index.d.ts +7 -0
- package/dist/utils/dom/position.d.ts +7 -0
- package/dist/utils/dom/scroll.d.ts +11 -0
- package/dist/utils/dom/style.d.ts +9 -0
- package/dist/utils/dom/style.js +15 -0
- package/dist/utils/easings.d.ts +1 -0
- package/dist/utils/error.d.ts +3 -0
- package/dist/utils/error.js +15 -0
- package/dist/utils/functions.d.ts +2 -0
- package/dist/utils/i18n.d.ts +4 -0
- package/dist/utils/index.d.ts +31 -0
- package/dist/utils/numbers.d.ts +6 -0
- package/dist/utils/objects.d.ts +7 -0
- package/dist/utils/raf.d.ts +2 -0
- package/dist/utils/rand.d.ts +12 -0
- package/dist/utils/strings.d.ts +8 -0
- package/dist/utils/throttleByRaf.d.ts +4 -0
- package/dist/utils/types.d.ts +9 -0
- package/dist/utils/types.js +16 -0
- package/dist/utils/typescript.d.ts +93 -0
- package/dist/utils/vue/global-node.d.ts +3 -0
- package/dist/utils/vue/icon.d.ts +27 -0
- package/dist/utils/vue/index.d.ts +9 -0
- package/dist/utils/vue/install.d.ts +7 -0
- package/dist/utils/vue/install.js +34 -0
- package/dist/utils/vue/props/index.d.ts +2 -0
- package/dist/utils/vue/props/runtime.d.ts +29 -0
- package/dist/utils/vue/props/runtime.js +36 -0
- package/dist/utils/vue/props/types.d.ts +85 -0
- package/dist/utils/vue/props/util.d.ts +7 -0
- package/dist/utils/vue/refs.d.ts +2 -0
- package/dist/utils/vue/size.d.ts +2 -0
- package/dist/utils/vue/typescript.d.ts +25 -0
- package/dist/utils/vue/validator.d.ts +3 -0
- package/dist/utils/vue/vnode.d.ts +48 -0
- package/dist/vendored-components.d.ts +13 -0
- package/dist/vendored-components.js +22 -0
- package/package.json +11 -3
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import type { PopperArrowProps, PopperProps } from '@element-plus/components/popper';
|
|
2
|
+
import type { ElTooltipContentProps } from './content';
|
|
3
|
+
import type { UseTooltipTriggerProps } from './trigger';
|
|
4
|
+
import type Tooltip from './tooltip.vue';
|
|
5
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
6
|
+
export declare const useTooltipModelToggleProps: import("@element-plus/hooks").UseModelTogglePropsRaw<"visible">, useTooltipModelToggleEmits: "update:visible"[], useTooltipModelToggle: ({ indicator, toggleReason, shouldHideWhenRouteChanges, shouldProceed, onShow, onHide, }: import("@element-plus/hooks").ModelToggleParams) => {
|
|
7
|
+
hide: (event?: Event) => void;
|
|
8
|
+
show: (event?: Event) => void;
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
hasUpdateHandler: import("vue").ComputedRef<boolean>;
|
|
11
|
+
};
|
|
12
|
+
export interface UseTooltipProps extends PopperProps, ElTooltipContentProps, UseTooltipTriggerProps, PopperArrowProps {
|
|
13
|
+
/**
|
|
14
|
+
* @description whether the tooltip content has an arrow
|
|
15
|
+
*/
|
|
16
|
+
showArrow?: boolean;
|
|
17
|
+
'onUpdate:visible'?: (value: boolean) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
21
|
+
*/
|
|
22
|
+
export declare const useTooltipProps: {
|
|
23
|
+
showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
24
|
+
arrowOffset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
25
|
+
disabled: BooleanConstructor;
|
|
26
|
+
trigger: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | import("./trigger").TooltipTriggerType[]) | (() => import("@element-plus/utils").Arrayable<import("./trigger").TooltipTriggerType>) | (((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | import("./trigger").TooltipTriggerType[]) | (() => import("@element-plus/utils").Arrayable<import("./trigger").TooltipTriggerType>)) | null)[], unknown, unknown, "hover", boolean>;
|
|
27
|
+
triggerKeys: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
|
28
|
+
focusOnTarget: BooleanConstructor;
|
|
29
|
+
virtualRef: {
|
|
30
|
+
readonly type: import("vue").PropType<import("@element-plus/components/popper").Measurable>;
|
|
31
|
+
readonly required: false;
|
|
32
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
|
+
__epPropKey: true;
|
|
34
|
+
};
|
|
35
|
+
virtualTriggering: BooleanConstructor;
|
|
36
|
+
onMouseenter: {
|
|
37
|
+
readonly type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
onMouseleave: {
|
|
43
|
+
readonly type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
onClick: {
|
|
49
|
+
readonly type: import("vue").PropType<(e: PointerEvent) => void>;
|
|
50
|
+
readonly required: false;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
+
__epPropKey: true;
|
|
53
|
+
};
|
|
54
|
+
onKeydown: {
|
|
55
|
+
readonly type: import("vue").PropType<(e: KeyboardEvent) => void>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
onFocus: {
|
|
61
|
+
readonly type: import("vue").PropType<(e: FocusEvent) => void>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
__epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
onBlur: {
|
|
67
|
+
readonly type: import("vue").PropType<(e: FocusEvent) => void>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
72
|
+
onContextmenu: {
|
|
73
|
+
readonly type: import("vue").PropType<(e: PointerEvent) => void>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
+
__epPropKey: true;
|
|
77
|
+
};
|
|
78
|
+
id: StringConstructor;
|
|
79
|
+
open: BooleanConstructor;
|
|
80
|
+
ariaLabel: StringConstructor;
|
|
81
|
+
appendTo: {
|
|
82
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
87
|
+
content: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
88
|
+
rawContent: BooleanConstructor;
|
|
89
|
+
persistent: BooleanConstructor;
|
|
90
|
+
visible: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | (((new (...args: any[]) => boolean) | (() => boolean | null)) | null)[], unknown, unknown, null, boolean>;
|
|
91
|
+
transition: StringConstructor;
|
|
92
|
+
teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
|
+
loop: BooleanConstructor;
|
|
94
|
+
style: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
95
|
+
className: {
|
|
96
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
97
|
+
[x: string]: boolean;
|
|
98
|
+
} | (string | {
|
|
99
|
+
[x: string]: boolean;
|
|
100
|
+
} | (string | {
|
|
101
|
+
[x: string]: boolean;
|
|
102
|
+
} | (string | {
|
|
103
|
+
[x: string]: boolean;
|
|
104
|
+
} | (string | {
|
|
105
|
+
[x: string]: boolean;
|
|
106
|
+
} | (string | {
|
|
107
|
+
[x: string]: boolean;
|
|
108
|
+
} | (string | {
|
|
109
|
+
[x: string]: boolean;
|
|
110
|
+
} | (string | {
|
|
111
|
+
[x: string]: boolean;
|
|
112
|
+
} | (string | {
|
|
113
|
+
[x: string]: boolean;
|
|
114
|
+
} | (string | {
|
|
115
|
+
[x: string]: boolean;
|
|
116
|
+
} | (string | {
|
|
117
|
+
[x: string]: boolean;
|
|
118
|
+
} | (string | {
|
|
119
|
+
[x: string]: boolean;
|
|
120
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
121
|
+
[x: string]: boolean;
|
|
122
|
+
} | (string | {
|
|
123
|
+
[x: string]: boolean;
|
|
124
|
+
} | (string | {
|
|
125
|
+
[x: string]: boolean;
|
|
126
|
+
} | (string | {
|
|
127
|
+
[x: string]: boolean;
|
|
128
|
+
} | (string | {
|
|
129
|
+
[x: string]: boolean;
|
|
130
|
+
} | (string | {
|
|
131
|
+
[x: string]: boolean;
|
|
132
|
+
} | (string | {
|
|
133
|
+
[x: string]: boolean;
|
|
134
|
+
} | (string | {
|
|
135
|
+
[x: string]: boolean;
|
|
136
|
+
} | (string | {
|
|
137
|
+
[x: string]: boolean;
|
|
138
|
+
} | (string | {
|
|
139
|
+
[x: string]: boolean;
|
|
140
|
+
} | (string | {
|
|
141
|
+
[x: string]: boolean;
|
|
142
|
+
} | (string | {
|
|
143
|
+
[x: string]: boolean;
|
|
144
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
145
|
+
[x: string]: boolean;
|
|
146
|
+
} | (string | {
|
|
147
|
+
[x: string]: boolean;
|
|
148
|
+
} | (string | {
|
|
149
|
+
[x: string]: boolean;
|
|
150
|
+
} | (string | {
|
|
151
|
+
[x: string]: boolean;
|
|
152
|
+
} | (string | {
|
|
153
|
+
[x: string]: boolean;
|
|
154
|
+
} | (string | {
|
|
155
|
+
[x: string]: boolean;
|
|
156
|
+
} | (string | {
|
|
157
|
+
[x: string]: boolean;
|
|
158
|
+
} | (string | {
|
|
159
|
+
[x: string]: boolean;
|
|
160
|
+
} | (string | {
|
|
161
|
+
[x: string]: boolean;
|
|
162
|
+
} | (string | {
|
|
163
|
+
[x: string]: boolean;
|
|
164
|
+
} | (string | {
|
|
165
|
+
[x: string]: boolean;
|
|
166
|
+
} | (string | {
|
|
167
|
+
[x: string]: boolean;
|
|
168
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
169
|
+
[x: string]: boolean;
|
|
170
|
+
} | (string | {
|
|
171
|
+
[x: string]: boolean;
|
|
172
|
+
} | (string | {
|
|
173
|
+
[x: string]: boolean;
|
|
174
|
+
} | (string | {
|
|
175
|
+
[x: string]: boolean;
|
|
176
|
+
} | (string | {
|
|
177
|
+
[x: string]: boolean;
|
|
178
|
+
} | (string | {
|
|
179
|
+
[x: string]: boolean;
|
|
180
|
+
} | (string | {
|
|
181
|
+
[x: string]: boolean;
|
|
182
|
+
} | (string | {
|
|
183
|
+
[x: string]: boolean;
|
|
184
|
+
} | (string | {
|
|
185
|
+
[x: string]: boolean;
|
|
186
|
+
} | (string | {
|
|
187
|
+
[x: string]: boolean;
|
|
188
|
+
} | (string | {
|
|
189
|
+
[x: string]: boolean;
|
|
190
|
+
} | (string | {
|
|
191
|
+
[x: string]: boolean;
|
|
192
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
193
|
+
readonly required: false;
|
|
194
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
195
|
+
__epPropKey: true;
|
|
196
|
+
};
|
|
197
|
+
effect: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect) | (((new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
198
|
+
enterable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
199
|
+
pure: BooleanConstructor;
|
|
200
|
+
focusOnShow: BooleanConstructor;
|
|
201
|
+
trapping: BooleanConstructor;
|
|
202
|
+
popperClass: {
|
|
203
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
204
|
+
[x: string]: boolean;
|
|
205
|
+
} | (string | {
|
|
206
|
+
[x: string]: boolean;
|
|
207
|
+
} | (string | {
|
|
208
|
+
[x: string]: boolean;
|
|
209
|
+
} | (string | {
|
|
210
|
+
[x: string]: boolean;
|
|
211
|
+
} | (string | {
|
|
212
|
+
[x: string]: boolean;
|
|
213
|
+
} | (string | {
|
|
214
|
+
[x: string]: boolean;
|
|
215
|
+
} | (string | {
|
|
216
|
+
[x: string]: boolean;
|
|
217
|
+
} | (string | {
|
|
218
|
+
[x: string]: boolean;
|
|
219
|
+
} | (string | {
|
|
220
|
+
[x: string]: boolean;
|
|
221
|
+
} | (string | {
|
|
222
|
+
[x: string]: boolean;
|
|
223
|
+
} | (string | {
|
|
224
|
+
[x: string]: boolean;
|
|
225
|
+
} | (string | {
|
|
226
|
+
[x: string]: boolean;
|
|
227
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
228
|
+
[x: string]: boolean;
|
|
229
|
+
} | (string | {
|
|
230
|
+
[x: string]: boolean;
|
|
231
|
+
} | (string | {
|
|
232
|
+
[x: string]: boolean;
|
|
233
|
+
} | (string | {
|
|
234
|
+
[x: string]: boolean;
|
|
235
|
+
} | (string | {
|
|
236
|
+
[x: string]: boolean;
|
|
237
|
+
} | (string | {
|
|
238
|
+
[x: string]: boolean;
|
|
239
|
+
} | (string | {
|
|
240
|
+
[x: string]: boolean;
|
|
241
|
+
} | (string | {
|
|
242
|
+
[x: string]: boolean;
|
|
243
|
+
} | (string | {
|
|
244
|
+
[x: string]: boolean;
|
|
245
|
+
} | (string | {
|
|
246
|
+
[x: string]: boolean;
|
|
247
|
+
} | (string | {
|
|
248
|
+
[x: string]: boolean;
|
|
249
|
+
} | (string | {
|
|
250
|
+
[x: string]: boolean;
|
|
251
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
252
|
+
[x: string]: boolean;
|
|
253
|
+
} | (string | {
|
|
254
|
+
[x: string]: boolean;
|
|
255
|
+
} | (string | {
|
|
256
|
+
[x: string]: boolean;
|
|
257
|
+
} | (string | {
|
|
258
|
+
[x: string]: boolean;
|
|
259
|
+
} | (string | {
|
|
260
|
+
[x: string]: boolean;
|
|
261
|
+
} | (string | {
|
|
262
|
+
[x: string]: boolean;
|
|
263
|
+
} | (string | {
|
|
264
|
+
[x: string]: boolean;
|
|
265
|
+
} | (string | {
|
|
266
|
+
[x: string]: boolean;
|
|
267
|
+
} | (string | {
|
|
268
|
+
[x: string]: boolean;
|
|
269
|
+
} | (string | {
|
|
270
|
+
[x: string]: boolean;
|
|
271
|
+
} | (string | {
|
|
272
|
+
[x: string]: boolean;
|
|
273
|
+
} | (string | {
|
|
274
|
+
[x: string]: boolean;
|
|
275
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
276
|
+
[x: string]: boolean;
|
|
277
|
+
} | (string | {
|
|
278
|
+
[x: string]: boolean;
|
|
279
|
+
} | (string | {
|
|
280
|
+
[x: string]: boolean;
|
|
281
|
+
} | (string | {
|
|
282
|
+
[x: string]: boolean;
|
|
283
|
+
} | (string | {
|
|
284
|
+
[x: string]: boolean;
|
|
285
|
+
} | (string | {
|
|
286
|
+
[x: string]: boolean;
|
|
287
|
+
} | (string | {
|
|
288
|
+
[x: string]: boolean;
|
|
289
|
+
} | (string | {
|
|
290
|
+
[x: string]: boolean;
|
|
291
|
+
} | (string | {
|
|
292
|
+
[x: string]: boolean;
|
|
293
|
+
} | (string | {
|
|
294
|
+
[x: string]: boolean;
|
|
295
|
+
} | (string | {
|
|
296
|
+
[x: string]: boolean;
|
|
297
|
+
} | (string | {
|
|
298
|
+
[x: string]: boolean;
|
|
299
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
300
|
+
readonly required: false;
|
|
301
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
302
|
+
__epPropKey: true;
|
|
303
|
+
};
|
|
304
|
+
popperStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
305
|
+
referenceEl: {
|
|
306
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
307
|
+
readonly required: false;
|
|
308
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
309
|
+
__epPropKey: true;
|
|
310
|
+
};
|
|
311
|
+
triggerTargetEl: {
|
|
312
|
+
readonly type: import("vue").PropType<HTMLElement>;
|
|
313
|
+
readonly required: false;
|
|
314
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
315
|
+
__epPropKey: true;
|
|
316
|
+
};
|
|
317
|
+
stopPopperMouseEvent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
318
|
+
zIndex: NumberConstructor;
|
|
319
|
+
boundariesPadding: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
320
|
+
fallbackPlacements: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, undefined, boolean>;
|
|
321
|
+
gpuAcceleration: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
322
|
+
offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
|
|
323
|
+
placement: import("@element-plus/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
324
|
+
popperOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | (((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
325
|
+
strategy: import("@element-plus/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
326
|
+
showAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
327
|
+
hideAfter: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
328
|
+
autoClose: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
329
|
+
"onUpdate:visible": {
|
|
330
|
+
readonly type: import("vue").PropType<(val: boolean) => void>;
|
|
331
|
+
readonly required: false;
|
|
332
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
333
|
+
__epPropKey: true;
|
|
334
|
+
};
|
|
335
|
+
role: import("@element-plus/utils").EpPropFinalized<StringConstructor, "dialog" | "menu" | "listbox" | "grid" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
|
|
336
|
+
};
|
|
337
|
+
export declare const tooltipEmits: readonly [..."update:visible"[], "before-show", "before-hide", "show", "hide", "open", "close"];
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
340
|
+
*/
|
|
341
|
+
export type ElTooltipProps = UseTooltipProps;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated Removed after 3.0.0, Use `UseTooltipProps` instead.
|
|
344
|
+
*/
|
|
345
|
+
export type ElTooltipPropsPublic = ExtractPublicPropTypes<typeof useTooltipProps>;
|
|
346
|
+
export type TooltipInstance = InstanceType<typeof Tooltip> & unknown;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { buildProps as o } from "../../../utils/vue/props/runtime.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "../../../hooks/use-size/index.js";
|
|
4
|
+
import "../../../hooks/use-z-index/index.js";
|
|
5
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
6
|
+
import "../../../hooks/use-aria/index.js";
|
|
7
|
+
import { createModelToggleComposable as e } from "../../../hooks/use-model-toggle/index.js";
|
|
8
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
9
|
+
import "../../popper/index.js";
|
|
10
|
+
import { useTooltipContentProps as r } from "./content.js";
|
|
11
|
+
import { useTooltipTriggerProps as p } from "./trigger.js";
|
|
12
|
+
import { popperArrowProps as t } from "../../popper/src/arrow.js";
|
|
13
|
+
import { popperProps as i } from "../../popper/src/popper.js";
|
|
14
|
+
const {
|
|
15
|
+
useModelToggleProps: l,
|
|
16
|
+
useModelToggleEmits: s,
|
|
17
|
+
useModelToggle: c
|
|
18
|
+
} = e("visible");
|
|
19
|
+
o({
|
|
20
|
+
...i,
|
|
21
|
+
...l,
|
|
22
|
+
...r,
|
|
23
|
+
...p,
|
|
24
|
+
...t,
|
|
25
|
+
/**
|
|
26
|
+
* @description whether the tooltip content has an arrow
|
|
27
|
+
*/
|
|
28
|
+
showArrow: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const E = [
|
|
34
|
+
...s,
|
|
35
|
+
"before-show",
|
|
36
|
+
"before-hide",
|
|
37
|
+
"show",
|
|
38
|
+
"hide",
|
|
39
|
+
"open",
|
|
40
|
+
"close"
|
|
41
|
+
];
|
|
42
|
+
export {
|
|
43
|
+
E as tooltipEmits,
|
|
44
|
+
c as useTooltipModelToggle,
|
|
45
|
+
s as useTooltipModelToggleEmits,
|
|
46
|
+
l as useTooltipModelToggleProps
|
|
47
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { TooltipContentInstance } from './content';
|
|
2
|
+
import type { UseTooltipProps } from './tooltip';
|
|
3
|
+
import type { PopperInstance } from '@element-plus/components/popper';
|
|
4
|
+
declare var __VLS_10: {}, __VLS_17: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_10) => any;
|
|
7
|
+
} & {
|
|
8
|
+
content?: (props: typeof __VLS_17) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<UseTooltipProps, {
|
|
11
|
+
/**
|
|
12
|
+
* @description el-popper component instance
|
|
13
|
+
*/
|
|
14
|
+
popperRef: import("vue").Ref<PopperInstance | undefined, PopperInstance | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* @description el-tooltip-content component instance
|
|
17
|
+
*/
|
|
18
|
+
contentRef: import("vue").Ref<TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* @description validate current focus event is trigger inside el-tooltip-content
|
|
21
|
+
*/
|
|
22
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* @description update el-popper component instance
|
|
25
|
+
*/
|
|
26
|
+
updatePopper: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* @description expose onOpen function to mange el-tooltip open state
|
|
29
|
+
*/
|
|
30
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
31
|
+
/**
|
|
32
|
+
* @description expose onClose function to manage el-tooltip close state
|
|
33
|
+
*/
|
|
34
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
35
|
+
/**
|
|
36
|
+
* @description expose hide function
|
|
37
|
+
*/
|
|
38
|
+
hide: (event?: Event) => void;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
close: (...args: any[]) => void;
|
|
41
|
+
open: (...args: any[]) => void;
|
|
42
|
+
hide: (...args: any[]) => void;
|
|
43
|
+
show: (...args: any[]) => void;
|
|
44
|
+
"update:visible": (...args: any[]) => void;
|
|
45
|
+
"before-show": (...args: any[]) => void;
|
|
46
|
+
"before-hide": (...args: any[]) => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<UseTooltipProps> & Readonly<{
|
|
48
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
offset: number;
|
|
57
|
+
teleported: boolean;
|
|
58
|
+
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
59
|
+
effect: import("@element-plus/components/popper").PopperEffect;
|
|
60
|
+
role: typeof import("@element-plus/components/popper").roleTypes[number];
|
|
61
|
+
content: string;
|
|
62
|
+
visible: boolean | null;
|
|
63
|
+
enterable: boolean;
|
|
64
|
+
pure: boolean;
|
|
65
|
+
focusOnShow: boolean;
|
|
66
|
+
trapping: boolean;
|
|
67
|
+
popperStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
68
|
+
stopPopperMouseEvent: boolean;
|
|
69
|
+
virtualTriggering: boolean;
|
|
70
|
+
loop: boolean;
|
|
71
|
+
boundariesPadding: number;
|
|
72
|
+
gpuAcceleration: boolean;
|
|
73
|
+
placement: import("element-plus").Placement;
|
|
74
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
75
|
+
strategy: "fixed" | "absolute";
|
|
76
|
+
arrowOffset: number;
|
|
77
|
+
showArrow: boolean;
|
|
78
|
+
showAfter: number;
|
|
79
|
+
hideAfter: number;
|
|
80
|
+
autoClose: number;
|
|
81
|
+
trigger: import("@element-plus/utils").Arrayable<import("./trigger").TooltipTriggerType>;
|
|
82
|
+
triggerKeys: string[];
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
84
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|