element-ai-vue 0.0.6 → 0.0.7

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 (34) hide show
  1. package/es/component.mjs +2 -2
  2. package/es/index.mjs +2 -2
  3. package/es/packages/components/files-upload/index.mjs +5 -62
  4. package/es/packages/components/files-upload/index.mjs.map +1 -1
  5. package/es/packages/components/files-upload/index2.mjs +62 -5
  6. package/es/packages/components/files-upload/index2.mjs.map +1 -1
  7. package/es/packages/components/index.mjs +2 -2
  8. package/es/packages/components/popover/index.mjs +4 -305
  9. package/es/packages/components/popover/index.mjs.map +1 -1
  10. package/es/packages/components/popover/index2.mjs +305 -4
  11. package/es/packages/components/popover/index2.mjs.map +1 -1
  12. package/es/packages/components/sender/select-slot/index2.mjs +1 -1
  13. package/es/packages/components/thinking/index.mjs +189 -4
  14. package/es/packages/components/thinking/index.mjs.map +1 -1
  15. package/es/packages/components/thinking/index2.mjs +4 -189
  16. package/es/packages/components/thinking/index2.mjs.map +1 -1
  17. package/lib/component.js +2 -2
  18. package/lib/index.js +2 -2
  19. package/lib/packages/components/files-upload/index.js +6 -61
  20. package/lib/packages/components/files-upload/index.js.map +1 -1
  21. package/lib/packages/components/files-upload/index2.js +61 -6
  22. package/lib/packages/components/files-upload/index2.js.map +1 -1
  23. package/lib/packages/components/index.js +2 -2
  24. package/lib/packages/components/popover/index.js +5 -305
  25. package/lib/packages/components/popover/index.js.map +1 -1
  26. package/lib/packages/components/popover/index2.js +305 -5
  27. package/lib/packages/components/popover/index2.js.map +1 -1
  28. package/lib/packages/components/sender/select-slot/index2.js +1 -1
  29. package/lib/packages/components/thinking/index.js +189 -5
  30. package/lib/packages/components/thinking/index.js.map +1 -1
  31. package/lib/packages/components/thinking/index2.js +5 -189
  32. package/lib/packages/components/thinking/index2.js.map +1 -1
  33. package/package.json +6 -2
  34. package/web-types.json +1 -1
package/es/component.mjs CHANGED
@@ -5,10 +5,10 @@ import { ElABubble } from './packages/components/bubble/index.mjs';
5
5
  import { ElACodeMermaid } from './packages/components/code-mermaid/index.mjs';
6
6
  import { ElADragUpload } from './packages/components/drag-upload/index.mjs';
7
7
  import { ElAFilesCard } from './packages/components/files-card/index.mjs';
8
- import { ElAFilesUpload } from './packages/components/files-upload/index2.mjs';
8
+ import { ElAFilesUpload } from './packages/components/files-upload/index.mjs';
9
9
  import { ElAPpt } from './packages/components/ppt/index.mjs';
10
10
  import { ElASender } from './packages/components/sender/index2.mjs';
11
- import { ElAThinking } from './packages/components/thinking/index.mjs';
11
+ import { ElAThinking } from './packages/components/thinking/index2.mjs';
12
12
  import { ElAThoughtChain } from './packages/components/thought-chain/index2.mjs';
13
13
  import { ElAConfigProvider } from './packages/components/config-provider/index.mjs';
14
14
 
package/es/index.mjs CHANGED
@@ -13,11 +13,11 @@ export { ElACodeMermaid } from './packages/components/code-mermaid/index.mjs';
13
13
  export { ElADragUpload } from './packages/components/drag-upload/index.mjs';
14
14
  export { ElAFilesCard } from './packages/components/files-card/index.mjs';
15
15
  export { filesUploadProps } from './packages/components/files-upload/props.mjs';
16
- export { ElAFilesUpload } from './packages/components/files-upload/index2.mjs';
16
+ export { ElAFilesUpload } from './packages/components/files-upload/index.mjs';
17
17
  export { ElAPpt } from './packages/components/ppt/index.mjs';
18
18
  export { senderProps } from './packages/components/sender/props.mjs';
19
19
  export { ElASender } from './packages/components/sender/index2.mjs';
20
- export { ElAThinking } from './packages/components/thinking/index.mjs';
20
+ export { ElAThinking } from './packages/components/thinking/index2.mjs';
21
21
  export { thoughtChainProps } from './packages/components/thought-chain/props.mjs';
22
22
  export { ElAThoughtChain } from './packages/components/thought-chain/index2.mjs';
23
23
  export { ElATooltip } from './packages/components/tooltip/index.mjs';
@@ -1,65 +1,8 @@
1
- import { defineComponent, useTemplateRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode } from 'vue';
2
- import { filesUploadProps } from './props.mjs';
3
- import { useVModel } from '../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.25_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useFileOperation } from '../../hooks/use-file-operation/index.mjs';
6
- import { useNamespace } from '../../hooks/use-namespace/index.mjs';
1
+ import FilesUpload from './index2.mjs';
2
+ export { filesUploadProps } from './props.mjs';
3
+ import { withInstall } from '../../utils/vue/install.mjs';
7
4
 
8
- const __default__ = defineComponent({
9
- name: "ElAFilesUpload"
10
- });
11
- const _sfc_main = defineComponent({
12
- ...__default__,
13
- props: {
14
- ...filesUploadProps
15
- },
16
- emits: ["update:modelValue"],
17
- setup(__props, { emit: __emit }) {
18
- const props = __props;
19
- const inputRef = useTemplateRef("inputRef");
20
- const fileList = useVModel(props, "modelValue");
21
- const ns = useNamespace("files-upload");
22
- const { handleFileUpload } = useFileOperation(props, fileList);
23
- const onUploadFile = () => {
24
- if (props.disabled)
25
- return;
26
- const fileInput = inputRef.value;
27
- if (fileInput) {
28
- fileInput.click();
29
- }
30
- };
31
- const onChange = async (e) => {
32
- const target = e.target;
33
- if (target.files) {
34
- await handleFileUpload(target.files);
35
- }
36
- const fileInput = inputRef.value;
37
- if (fileInput) {
38
- fileInput.value = "";
39
- }
40
- };
41
- return (_ctx, _cache) => {
42
- var _a;
43
- return openBlock(), createElementBlock("div", {
44
- class: normalizeClass(unref(ns).b()),
45
- onClick: ($event) => onUploadFile()
46
- }, [
47
- renderSlot(_ctx.$slots, "default"),
48
- createElementVNode("input", {
49
- ref_key: "inputRef",
50
- ref: inputRef,
51
- class: "upload-input",
52
- type: "file",
53
- hidden: "",
54
- multiple: _ctx.multiple,
55
- accept: (_a = _ctx.accept) == null ? void 0 : _a.join(),
56
- onChange
57
- }, null, 40, ["multiple", "accept"])
58
- ], 10, ["onClick"]);
59
- };
60
- }
61
- });
62
- var FilesUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
5
+ const ElAFilesUpload = withInstall(FilesUpload);
63
6
 
64
- export { FilesUpload as default };
7
+ export { ElAFilesUpload, ElAFilesUpload as default };
65
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/files-upload/index.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\" @click=\"onUploadFile()\">\n <slot></slot>\n <input\n ref=\"inputRef\"\n class=\"upload-input\"\n type=\"file\"\n hidden\n :multiple\n :accept=\"accept?.join()\"\n @change=\"onChange\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { useFileOperation, useNamespace } from '@element-ai-vue/hooks'\nimport { FilesUploadEmitsType, filesUploadProps } from './props'\nimport { useVModel } from '@vueuse/core'\nimport { useTemplateRef } from 'vue'\n\ndefineOptions({\n name: 'ElAFilesUpload',\n})\nconst props = defineProps({\n ...filesUploadProps,\n})\nconst emits = defineEmits<FilesUploadEmitsType>()\nconst inputRef = useTemplateRef('inputRef')\nconst fileList = useVModel(props, 'modelValue')\n\nconst ns = useNamespace('files-upload')\n\nconst { handleFileUpload } = useFileOperation(props, fileList)\n\nconst onUploadFile = () => {\n if (props.disabled) return\n const fileInput = inputRef.value\n if (fileInput) {\n fileInput.click()\n }\n}\n\nconst onChange = async (e: Event) => {\n const target = e.target as HTMLInputElement\n if (target.files) {\n await handleFileUpload(target.files as unknown as File[])\n }\n const fileInput = inputRef.value\n if (fileInput) {\n fileInput.value = ''\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;mCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;AACA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAIR,IAAA,MAAA,QAAA,GAAW,eAAe,UAAU,CAAA,CAAA;AACpC,IAAA,MAAA,QAAA,GAAW,SAAU,CAAA,KAAA,EAAO,YAAY,CAAA,CAAA;AAExC,IAAA,MAAA,EAAA,GAAK,aAAa,cAAc,CAAA,CAAA;AAEtC,IAAA,MAAM,EAAE,gBAAA,EAAqB,GAAA,gBAAA,CAAiB,OAAO,QAAQ,CAAA,CAAA;AAE7D,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,IAAI,KAAM,CAAA,QAAA;AAAU,QAAA,OAAA;AACpB,MAAA,MAAM,YAAY,QAAS,CAAA,KAAA,CAAA;AAC3B,MAAA,IAAI,SAAW,EAAA;AACb,QAAA,SAAA,CAAU,KAAM,EAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;AAEM,IAAA,MAAA,QAAA,GAAW,OAAO,CAAa,KAAA;AACnC,MAAA,MAAM,SAAS,CAAE,CAAA,MAAA,CAAA;AACjB,MAAA,IAAI,OAAO,KAAO,EAAA;AACV,QAAA,MAAA,gBAAA,CAAiB,OAAO,KAA0B,CAAA,CAAA;AAAA,OAC1D;AACA,MAAA,MAAM,YAAY,QAAS,CAAA,KAAA,CAAA;AAC3B,MAAA,IAAI,SAAW,EAAA;AACb,QAAA,SAAA,CAAU,KAAQ,GAAA,EAAA,CAAA;AAAA,OACpB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/files-upload/index.ts"],"sourcesContent":["import { withInstall } from '@element-ai-vue/utils'\nimport FilesUpload from './index.vue'\n\nexport const ElAFilesUpload = withInstall(FilesUpload)\nexport * from './props'\n\nexport default ElAFilesUpload\n"],"names":[],"mappings":";;;;AAGa,MAAA,cAAA,GAAiB,YAAY,WAAW;;;;"}
@@ -1,8 +1,65 @@
1
- import FilesUpload from './index.mjs';
2
- export { filesUploadProps } from './props.mjs';
3
- import { withInstall } from '../../utils/vue/install.mjs';
1
+ import { defineComponent, useTemplateRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode } from 'vue';
2
+ import { filesUploadProps } from './props.mjs';
3
+ import { useVModel } from '../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.25_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useFileOperation } from '../../hooks/use-file-operation/index.mjs';
6
+ import { useNamespace } from '../../hooks/use-namespace/index.mjs';
4
7
 
5
- const ElAFilesUpload = withInstall(FilesUpload);
8
+ const __default__ = defineComponent({
9
+ name: "ElAFilesUpload"
10
+ });
11
+ const _sfc_main = defineComponent({
12
+ ...__default__,
13
+ props: {
14
+ ...filesUploadProps
15
+ },
16
+ emits: ["update:modelValue"],
17
+ setup(__props, { emit: __emit }) {
18
+ const props = __props;
19
+ const inputRef = useTemplateRef("inputRef");
20
+ const fileList = useVModel(props, "modelValue");
21
+ const ns = useNamespace("files-upload");
22
+ const { handleFileUpload } = useFileOperation(props, fileList);
23
+ const onUploadFile = () => {
24
+ if (props.disabled)
25
+ return;
26
+ const fileInput = inputRef.value;
27
+ if (fileInput) {
28
+ fileInput.click();
29
+ }
30
+ };
31
+ const onChange = async (e) => {
32
+ const target = e.target;
33
+ if (target.files) {
34
+ await handleFileUpload(target.files);
35
+ }
36
+ const fileInput = inputRef.value;
37
+ if (fileInput) {
38
+ fileInput.value = "";
39
+ }
40
+ };
41
+ return (_ctx, _cache) => {
42
+ var _a;
43
+ return openBlock(), createElementBlock("div", {
44
+ class: normalizeClass(unref(ns).b()),
45
+ onClick: ($event) => onUploadFile()
46
+ }, [
47
+ renderSlot(_ctx.$slots, "default"),
48
+ createElementVNode("input", {
49
+ ref_key: "inputRef",
50
+ ref: inputRef,
51
+ class: "upload-input",
52
+ type: "file",
53
+ hidden: "",
54
+ multiple: _ctx.multiple,
55
+ accept: (_a = _ctx.accept) == null ? void 0 : _a.join(),
56
+ onChange
57
+ }, null, 40, ["multiple", "accept"])
58
+ ], 10, ["onClick"]);
59
+ };
60
+ }
61
+ });
62
+ var FilesUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
6
63
 
7
- export { ElAFilesUpload, ElAFilesUpload as default };
64
+ export { FilesUpload as default };
8
65
  //# sourceMappingURL=index2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index2.mjs","sources":["../../../../../../packages/components/files-upload/index.ts"],"sourcesContent":["import { withInstall } from '@element-ai-vue/utils'\nimport FilesUpload from './index.vue'\n\nexport const ElAFilesUpload = withInstall(FilesUpload)\nexport * from './props'\n\nexport default ElAFilesUpload\n"],"names":[],"mappings":";;;;AAGa,MAAA,cAAA,GAAiB,YAAY,WAAW;;;;"}
1
+ {"version":3,"file":"index2.mjs","sources":["../../../../../../packages/components/files-upload/index.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\" @click=\"onUploadFile()\">\n <slot></slot>\n <input\n ref=\"inputRef\"\n class=\"upload-input\"\n type=\"file\"\n hidden\n :multiple\n :accept=\"accept?.join()\"\n @change=\"onChange\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { useFileOperation, useNamespace } from '@element-ai-vue/hooks'\nimport { FilesUploadEmitsType, filesUploadProps } from './props'\nimport { useVModel } from '@vueuse/core'\nimport { useTemplateRef } from 'vue'\n\ndefineOptions({\n name: 'ElAFilesUpload',\n})\nconst props = defineProps({\n ...filesUploadProps,\n})\nconst emits = defineEmits<FilesUploadEmitsType>()\nconst inputRef = useTemplateRef('inputRef')\nconst fileList = useVModel(props, 'modelValue')\n\nconst ns = useNamespace('files-upload')\n\nconst { handleFileUpload } = useFileOperation(props, fileList)\n\nconst onUploadFile = () => {\n if (props.disabled) return\n const fileInput = inputRef.value\n if (fileInput) {\n fileInput.click()\n }\n}\n\nconst onChange = async (e: Event) => {\n const target = e.target as HTMLInputElement\n if (target.files) {\n await handleFileUpload(target.files as unknown as File[])\n }\n const fileInput = inputRef.value\n if (fileInput) {\n fileInput.value = ''\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;mCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;AACA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAIR,IAAA,MAAA,QAAA,GAAW,eAAe,UAAU,CAAA,CAAA;AACpC,IAAA,MAAA,QAAA,GAAW,SAAU,CAAA,KAAA,EAAO,YAAY,CAAA,CAAA;AAExC,IAAA,MAAA,EAAA,GAAK,aAAa,cAAc,CAAA,CAAA;AAEtC,IAAA,MAAM,EAAE,gBAAA,EAAqB,GAAA,gBAAA,CAAiB,OAAO,QAAQ,CAAA,CAAA;AAE7D,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,IAAI,KAAM,CAAA,QAAA;AAAU,QAAA,OAAA;AACpB,MAAA,MAAM,YAAY,QAAS,CAAA,KAAA,CAAA;AAC3B,MAAA,IAAI,SAAW,EAAA;AACb,QAAA,SAAA,CAAU,KAAM,EAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;AAEM,IAAA,MAAA,QAAA,GAAW,OAAO,CAAa,KAAA;AACnC,MAAA,MAAM,SAAS,CAAE,CAAA,MAAA,CAAA;AACjB,MAAA,IAAI,OAAO,KAAO,EAAA;AACV,QAAA,MAAA,gBAAA,CAAiB,OAAO,KAA0B,CAAA,CAAA;AAAA,OAC1D;AACA,MAAA,MAAM,YAAY,QAAS,CAAA,KAAA,CAAA;AAC3B,MAAA,IAAI,SAAW,EAAA;AACb,QAAA,SAAA,CAAU,KAAQ,GAAA,EAAA,CAAA;AAAA,OACpB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,10 +5,10 @@ export { ElABubble } from './bubble/index.mjs';
5
5
  export { ElACodeMermaid } from './code-mermaid/index.mjs';
6
6
  export { ElADragUpload } from './drag-upload/index.mjs';
7
7
  export { ElAFilesCard } from './files-card/index.mjs';
8
- export { ElAFilesUpload } from './files-upload/index2.mjs';
8
+ export { ElAFilesUpload } from './files-upload/index.mjs';
9
9
  export { ElAPpt } from './ppt/index.mjs';
10
10
  export { ElASender } from './sender/index2.mjs';
11
- export { ElAThinking } from './thinking/index.mjs';
11
+ export { ElAThinking } from './thinking/index2.mjs';
12
12
  export { ElAThoughtChain } from './thought-chain/index2.mjs';
13
13
  export { ElATooltip } from './tooltip/index.mjs';
14
14
  export { ElAConfigProvider } from './config-provider/index.mjs';
@@ -1,308 +1,7 @@
1
- import { defineComponent, computed, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
2
- import { useFloating, autoUpdate, offset, flip, shift, arrow } from '@floating-ui/vue';
3
- import { popoverProps, popoverEmits } from './props.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace, defaultNamespace } from '../../hooks/use-namespace/index.mjs';
1
+ import Popover from './index2.mjs';
2
+ import { withInstall } from '../../utils/vue/install.mjs';
6
3
 
7
- const __default__ = defineComponent({
8
- name: "ElAPopover"
9
- });
10
- const _sfc_main = defineComponent({
11
- ...__default__,
12
- props: popoverProps,
13
- emits: popoverEmits,
14
- setup(__props, { expose: __expose, emit: __emit }) {
15
- const props = __props;
16
- const emit = __emit;
17
- const ns = useNamespace("popover");
18
- const teleportTo = computed(() => props.teleportTo || document.body);
19
- const referenceRef = ref(null);
20
- const floatingRef = ref(null);
21
- const arrowRef = ref(null);
22
- const isOpen = ref(false);
23
- let showTimer = null;
24
- let hideTimer = null;
25
- const isDark = computed(() => props.effect === "dark");
26
- const popoverWidthStyle = computed(() => {
27
- if (props.width === "auto")
28
- return {};
29
- const width = typeof props.width === "number" ? `${props.width}px` : props.width;
30
- return { width };
31
- });
32
- const {
33
- floatingStyles,
34
- middlewareData,
35
- placement: actualPlacement
36
- } = useFloating(referenceRef, floatingRef, {
37
- placement: computed(() => props.placement),
38
- whileElementsMounted: autoUpdate,
39
- middleware: computed(() => [
40
- offset(props.offset),
41
- flip({
42
- fallbackAxisSideDirection: "start"
43
- }),
44
- shift({ padding: 5 }),
45
- arrow({ element: arrowRef })
46
- ])
47
- });
48
- const arrowSide = computed(() => {
49
- return actualPlacement.value.split("-")[0];
50
- });
51
- const arrowStyles = computed(() => {
52
- const { x, y } = middlewareData.value.arrow || {};
53
- const staticSide = {
54
- top: "bottom",
55
- right: "left",
56
- bottom: "top",
57
- left: "right"
58
- }[arrowSide.value];
59
- return {
60
- left: x !== null && x !== void 0 ? `${x}px` : "",
61
- top: y !== null && y !== void 0 ? `${y}px` : "",
62
- [staticSide]: "-5px"
63
- };
64
- });
65
- const clearTimers = () => {
66
- if (showTimer) {
67
- clearTimeout(showTimer);
68
- showTimer = null;
69
- }
70
- if (hideTimer) {
71
- clearTimeout(hideTimer);
72
- hideTimer = null;
73
- }
74
- };
75
- const show = () => {
76
- if (props.disabled)
77
- return;
78
- clearTimers();
79
- showTimer = setTimeout(() => {
80
- isOpen.value = true;
81
- emit("update:visible", true);
82
- emit("show");
83
- }, props.showAfter);
84
- };
85
- const hide = () => {
86
- clearTimers();
87
- hideTimer = setTimeout(() => {
88
- isOpen.value = false;
89
- emit("update:visible", false);
90
- emit("hide");
91
- }, props.hideAfter);
92
- };
93
- const toggle = () => {
94
- if (isOpen.value) {
95
- hide();
96
- } else {
97
- show();
98
- }
99
- };
100
- const onMouseEnter = () => {
101
- if (props.trigger === "hover") {
102
- show();
103
- }
104
- };
105
- const onMouseLeave = () => {
106
- if (props.trigger === "hover") {
107
- hide();
108
- }
109
- };
110
- const onClick = (e) => {
111
- if (props.trigger === "click") {
112
- e.stopPropagation();
113
- toggle();
114
- }
115
- };
116
- const onFocus = () => {
117
- if (props.trigger === "focus") {
118
- show();
119
- }
120
- };
121
- const onBlur = () => {
122
- if (props.trigger === "focus") {
123
- hide();
124
- }
125
- };
126
- const onPopperMouseEnter = () => {
127
- if (props.trigger === "hover") {
128
- clearTimers();
129
- }
130
- };
131
- const onPopperMouseLeave = () => {
132
- if (props.trigger === "hover") {
133
- hide();
134
- }
135
- };
136
- const onBeforeEnter = () => {
137
- emit("before-enter");
138
- };
139
- const onBeforeLeave = () => {
140
- emit("before-leave");
141
- };
142
- const onAfterEnter = () => {
143
- emit("after-enter");
144
- };
145
- const onAfterLeave = () => {
146
- emit("after-leave");
147
- };
148
- const onClickOutside = (e) => {
149
- if (!props.closeOnClickOutside)
150
- return;
151
- if (!isOpen.value)
152
- return;
153
- const target = e.target;
154
- const reference = referenceRef.value;
155
- const floating = floatingRef.value;
156
- if ((reference == null ? void 0 : reference.contains(target)) || (floating == null ? void 0 : floating.contains(target))) {
157
- return;
158
- }
159
- hide();
160
- };
161
- const onKeydown = (e) => {
162
- if (!props.closeOnPressEscape)
163
- return;
164
- if (!isOpen.value)
165
- return;
166
- if (e.key === "Escape") {
167
- hide();
168
- }
169
- };
170
- watch(
171
- () => props.visible,
172
- (val) => {
173
- if (val !== void 0) {
174
- clearTimers();
175
- if (val) {
176
- isOpen.value = true;
177
- emit("show");
178
- } else {
179
- isOpen.value = false;
180
- emit("hide");
181
- }
182
- }
183
- }
184
- );
185
- const bindEvents = () => {
186
- const reference = referenceRef.value;
187
- if (!reference)
188
- return;
189
- reference.addEventListener("mouseenter", onMouseEnter);
190
- reference.addEventListener("mouseleave", onMouseLeave);
191
- reference.addEventListener("click", onClick);
192
- reference.addEventListener("focus", onFocus, true);
193
- reference.addEventListener("blur", onBlur, true);
194
- document.addEventListener("click", onClickOutside);
195
- document.addEventListener("keydown", onKeydown);
196
- };
197
- const unbindEvents = () => {
198
- const reference = referenceRef.value;
199
- if (!reference)
200
- return;
201
- reference.removeEventListener("mouseenter", onMouseEnter);
202
- reference.removeEventListener("mouseleave", onMouseLeave);
203
- reference.removeEventListener("click", onClick);
204
- reference.removeEventListener("focus", onFocus, true);
205
- reference.removeEventListener("blur", onBlur, true);
206
- document.removeEventListener("click", onClickOutside);
207
- document.removeEventListener("keydown", onKeydown);
208
- };
209
- onMounted(() => {
210
- bindEvents();
211
- });
212
- onBeforeUnmount(() => {
213
- clearTimers();
214
- unbindEvents();
215
- });
216
- __expose({
217
- show,
218
- hide,
219
- toggle
220
- });
221
- return (_ctx, _cache) => {
222
- return openBlock(), createElementBlock(
223
- Fragment,
224
- null,
225
- [
226
- createElementVNode(
227
- "div",
228
- {
229
- class: normalizeClass(unref(ns).b()),
230
- ref_key: "referenceRef",
231
- ref: referenceRef
232
- },
233
- [
234
- renderSlot(_ctx.$slots, "default")
235
- ],
236
- 2
237
- ),
238
- (openBlock(), createBlock(Teleport, { to: teleportTo.value }, [
239
- createVNode(Transition, {
240
- name: `${unref(defaultNamespace)}-popover-fade`,
241
- onBeforeEnter,
242
- onBeforeLeave,
243
- onAfterEnter,
244
- onAfterLeave
245
- }, {
246
- default: withCtx(() => [
247
- isOpen.value ? (openBlock(), createElementBlock(
248
- "div",
249
- {
250
- key: 0,
251
- ref_key: "floatingRef",
252
- ref: floatingRef,
253
- class: normalizeClass([unref(ns).e("popper"), unref(ns).is("dark", isDark.value)]),
254
- style: normalizeStyle([unref(floatingStyles), popoverWidthStyle.value]),
255
- role: "dialog",
256
- onMouseenter: onPopperMouseEnter,
257
- onMouseleave: onPopperMouseLeave
258
- },
259
- [
260
- createElementVNode(
261
- "div",
262
- {
263
- class: normalizeClass(unref(ns).e("inner"))
264
- },
265
- [
266
- createElementVNode(
267
- "div",
268
- {
269
- class: normalizeClass(unref(ns).e("content"))
270
- },
271
- [
272
- renderSlot(_ctx.$slots, "content", {}, () => [
273
- createTextVNode(
274
- toDisplayString(_ctx.content),
275
- 1
276
- )
277
- ])
278
- ],
279
- 2
280
- )
281
- ],
282
- 2
283
- ),
284
- _ctx.showArrow ? (openBlock(), createElementBlock("div", {
285
- key: 0,
286
- ref_key: "arrowRef",
287
- ref: arrowRef,
288
- class: normalizeClass(unref(ns).e("arrow")),
289
- style: normalizeStyle(arrowStyles.value),
290
- "data-side": arrowSide.value
291
- }, null, 14, ["data-side"])) : createCommentVNode("v-if", true)
292
- ],
293
- 38
294
- )) : createCommentVNode("v-if", true)
295
- ]),
296
- _: 3
297
- }, 8, ["name"])
298
- ], 8, ["to"]))
299
- ],
300
- 64
301
- );
302
- };
303
- }
304
- });
305
- var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
4
+ const ElAPopover = withInstall(Popover);
306
5
 
307
- export { Popover as default };
6
+ export { ElAPopover, ElAPopover as default };
308
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/popover/index.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\" ref=\"referenceRef\">\n <slot></slot>\n </div>\n <Teleport :to=\"teleportTo\">\n <Transition\n :name=\"`${defaultNamespace}-popover-fade`\"\n @before-enter=\"onBeforeEnter\"\n @before-leave=\"onBeforeLeave\"\n @after-enter=\"onAfterEnter\"\n @after-leave=\"onAfterLeave\"\n >\n <div\n v-if=\"isOpen\"\n ref=\"floatingRef\"\n :class=\"[ns.e('popper'), ns.is('dark', isDark)]\"\n :style=\"[floatingStyles, popoverWidthStyle]\"\n role=\"dialog\"\n @mouseenter=\"onPopperMouseEnter\"\n @mouseleave=\"onPopperMouseLeave\"\n >\n <div :class=\"ns.e('inner')\">\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n <div\n v-if=\"showArrow\"\n ref=\"arrowRef\"\n :class=\"ns.e('arrow')\"\n :style=\"arrowStyles\"\n :data-side=\"arrowSide\"\n ></div>\n </div>\n </Transition>\n </Teleport>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, onMounted, onBeforeUnmount } from 'vue'\nimport {\n useFloating,\n offset,\n flip,\n shift,\n arrow,\n autoUpdate,\n} from '@floating-ui/vue'\nimport { defaultNamespace, useNamespace } from '@element-ai-vue/hooks'\nimport { popoverProps, popoverEmits } from './props'\n\ndefineOptions({\n name: 'ElAPopover',\n})\n\nconst props = defineProps(popoverProps)\nconst emit = defineEmits(popoverEmits)\n\nconst ns = useNamespace('popover')\n\n// Teleport target\nconst teleportTo = computed(() => props.teleportTo || document.body)\n\n// Refs\nconst referenceRef = ref<HTMLElement | null>(null)\nconst floatingRef = ref<HTMLElement | null>(null)\nconst arrowRef = ref<HTMLElement | null>(null)\n\n// State\nconst isOpen = ref(false)\nlet showTimer: ReturnType<typeof setTimeout> | null = null\nlet hideTimer: ReturnType<typeof setTimeout> | null = null\n\n// Computed\nconst isDark = computed(() => props.effect === 'dark')\n\nconst popoverWidthStyle = computed(() => {\n if (props.width === 'auto') return {}\n const width =\n typeof props.width === 'number' ? `${props.width}px` : props.width\n return { width }\n})\n\n// Floating UI setup\nconst {\n floatingStyles,\n middlewareData,\n placement: actualPlacement,\n} = useFloating(referenceRef, floatingRef, {\n placement: computed(() => props.placement),\n whileElementsMounted: autoUpdate,\n middleware: computed(() => [\n offset(props.offset),\n flip({\n fallbackAxisSideDirection: 'start',\n }),\n shift({ padding: 5 }),\n arrow({ element: arrowRef }),\n ]),\n})\n\n// Arrow styles\nconst arrowSide = computed(() => {\n return actualPlacement.value.split('-')[0]\n})\n\nconst arrowStyles = computed(() => {\n const { x, y } = middlewareData.value.arrow || {}\n const staticSide = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right',\n }[arrowSide.value] as string\n\n return {\n left: x !== null && x !== undefined ? `${x}px` : '',\n top: y !== null && y !== undefined ? `${y}px` : '',\n [staticSide]: '-5px',\n }\n})\n\n// Methods\nconst clearTimers = () => {\n if (showTimer) {\n clearTimeout(showTimer)\n showTimer = null\n }\n if (hideTimer) {\n clearTimeout(hideTimer)\n hideTimer = null\n }\n}\n\nconst show = () => {\n if (props.disabled) return\n clearTimers()\n showTimer = setTimeout(() => {\n isOpen.value = true\n emit('update:visible', true)\n emit('show')\n }, props.showAfter)\n}\n\nconst hide = () => {\n clearTimers()\n hideTimer = setTimeout(() => {\n isOpen.value = false\n emit('update:visible', false)\n emit('hide')\n }, props.hideAfter)\n}\n\nconst toggle = () => {\n if (isOpen.value) {\n hide()\n } else {\n show()\n }\n}\n\nconst onMouseEnter = () => {\n if (props.trigger === 'hover') {\n show()\n }\n}\n\nconst onMouseLeave = () => {\n if (props.trigger === 'hover') {\n hide()\n }\n}\n\nconst onClick = (e: MouseEvent) => {\n if (props.trigger === 'click') {\n e.stopPropagation()\n toggle()\n }\n}\n\nconst onFocus = () => {\n if (props.trigger === 'focus') {\n show()\n }\n}\n\nconst onBlur = () => {\n if (props.trigger === 'focus') {\n hide()\n }\n}\n\nconst onPopperMouseEnter = () => {\n if (props.trigger === 'hover') {\n clearTimers()\n }\n}\n\nconst onPopperMouseLeave = () => {\n if (props.trigger === 'hover') {\n hide()\n }\n}\n\n// Transition hooks\nconst onBeforeEnter = () => {\n emit('before-enter')\n}\n\nconst onBeforeLeave = () => {\n emit('before-leave')\n}\n\nconst onAfterEnter = () => {\n emit('after-enter')\n}\n\nconst onAfterLeave = () => {\n emit('after-leave')\n}\n\n// Click outside handler\nconst onClickOutside = (e: MouseEvent) => {\n if (!props.closeOnClickOutside) return\n if (!isOpen.value) return\n\n const target = e.target as Node\n const reference = referenceRef.value\n const floating = floatingRef.value\n\n if (reference?.contains(target) || floating?.contains(target)) {\n return\n }\n\n hide()\n}\n\n// Escape key handler\nconst onKeydown = (e: KeyboardEvent) => {\n if (!props.closeOnPressEscape) return\n if (!isOpen.value) return\n\n if (e.key === 'Escape') {\n hide()\n }\n}\n\n// Watch for manual control\nwatch(\n () => props.visible,\n (val) => {\n if (val !== undefined) {\n clearTimers()\n if (val) {\n isOpen.value = true\n emit('show')\n } else {\n isOpen.value = false\n emit('hide')\n }\n }\n }\n)\n\n// Event binding\nconst bindEvents = () => {\n const reference = referenceRef.value\n if (!reference) return\n\n reference.addEventListener('mouseenter', onMouseEnter)\n reference.addEventListener('mouseleave', onMouseLeave)\n reference.addEventListener('click', onClick)\n reference.addEventListener('focus', onFocus, true)\n reference.addEventListener('blur', onBlur, true)\n\n document.addEventListener('click', onClickOutside)\n document.addEventListener('keydown', onKeydown)\n}\n\nconst unbindEvents = () => {\n const reference = referenceRef.value\n if (!reference) return\n\n reference.removeEventListener('mouseenter', onMouseEnter)\n reference.removeEventListener('mouseleave', onMouseLeave)\n reference.removeEventListener('click', onClick)\n reference.removeEventListener('focus', onFocus, true)\n reference.removeEventListener('blur', onBlur, true)\n\n document.removeEventListener('click', onClickOutside)\n document.removeEventListener('keydown', onKeydown)\n}\n\nonMounted(() => {\n bindEvents()\n})\n\nonBeforeUnmount(() => {\n clearTimers()\n unbindEvents()\n})\n\n// Expose methods\ndefineExpose({\n show,\n hide,\n toggle,\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCAmDc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAGjC,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM,KAAM,CAAA,UAAA,IAAc,SAAS,IAAI,CAAA,CAAA;AAG7D,IAAA,MAAA,YAAA,GAAe,IAAwB,IAAI,CAAA,CAAA;AAC3C,IAAA,MAAA,WAAA,GAAc,IAAwB,IAAI,CAAA,CAAA;AAC1C,IAAA,MAAA,QAAA,GAAW,IAAwB,IAAI,CAAA,CAAA;AAGvC,IAAA,MAAA,MAAA,GAAS,IAAI,KAAK,CAAA,CAAA;AACxB,IAAA,IAAI,SAAkD,GAAA,IAAA,CAAA;AACtD,IAAA,IAAI,SAAkD,GAAA,IAAA,CAAA;AAGtD,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,WAAW,MAAM,CAAA,CAAA;AAE/C,IAAA,MAAA,iBAAA,GAAoB,SAAS,MAAM;AACvC,MAAA,IAAI,MAAM,KAAU,KAAA,MAAA;AAAQ,QAAA,OAAO,EAAC,CAAA;AAC9B,MAAA,MAAA,KAAA,GACJ,OAAO,KAA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AA,CAAA;AAC9C,MAAA,SAAA,CAAA,mBAAA,CAAoB,SAAS,OAAO,CAAA,CAAA;AACpC,MAAA,SAAA,CAAA,mBAAA,CAAoB,OAAS,EAAA,OAAA,EAAS,IAAI,CAAA,CAAA;AAC1C,MAAA,SAAA,CAAA,mBAAA,CAAoB,MAAQ,EAAA,MAAA,EAAQ,IAAI,CAAA,CAAA;AAEzC,MAAA,QAAA,CAAA,mBAAA,CAAoB,SAAS,cAAc,CAAA,CAAA;AAC3C,MAAA,QAAA,CAAA,mBAAA,CAAoB,WAAW,SAAS,CAAA,CAAA;AAAA,KACnD,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACH,MAAA,UAAA,EAAA,CAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAA,eAAA,CAAgB,MAAM;AACR,MAAA,WAAA,EAAA,CAAA;AACC,MAAA,YAAA,EAAA,CAAA;AAAA,KACd,CAAA,CAAA;AAGY,IAAA,QAAA,CAAA;AAAA,MACX,IAAA;AAAA,MACA,IAAA;AAAA,MACA,MAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/popover/index.ts"],"sourcesContent":["import { withInstall } from '@element-ai-vue/utils'\nimport Popover from './index.vue'\n\nexport const ElAPopover = withInstall(Popover)\nexport default ElAPopover\n"],"names":[],"mappings":";;;AAGa,MAAA,UAAA,GAAa,YAAY,OAAO;;;;"}