@mobilon-dev/chotto 0.3.89 → 0.3.91
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/chotto.css +1 -1
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +2 -2
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +41 -33
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +3 -3
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +87 -103
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +171 -152
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +2 -2
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +52 -79
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +2 -2
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +35 -64
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +4 -0
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +4 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +33 -29
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +62 -58
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +27 -23
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +49 -41
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +105 -101
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +223 -149
- package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +18 -13
- package/dist/functions/renderAppleEmojis.js +127 -70
- package/dist/hooks/uploadFile/generatePreview.js +23 -11
- package/dist/hooks/useMessageDraft.js +61 -32
- package/dist/index.js +113 -112
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +52 -0
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -2
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -2
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +15 -0
- package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +34 -0
- package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +26 -0
- package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +30 -0
- package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +34 -0
- package/dist/types/components/2_feed_elements/StickerMessage/styles/types.d.ts +4 -0
- package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +38 -2
- package/dist/types/components/2_feed_elements/TypingMessage/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/VideoMessage/styles/types.d.ts +34 -0
- package/dist/types/components/3_compounds/ChatInput/ChatInput.vue.d.ts +3 -3
- package/dist/types/components/3_compounds/ChatInput/styles/types.d.ts +2 -0
- package/dist/types/components/3_compounds/Feed/composables/useFeedReply.d.ts +1 -27
- package/dist/types/functions/renderAppleEmojis.d.ts +17 -2
- package/dist/types/hooks/uploadFile/generatePreview.d.ts +2 -0
- package/dist/types/hooks/uploadFile/uploadFile.d.ts +9 -17
- package/dist/types/hooks/useMessageDraft.d.ts +27 -29
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonEmojiPicker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4bf1f08f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as r, inject as
|
|
1
|
+
import { defineComponent as D, ref as r, inject as R, watch as W, computed as z, watchEffect as U, onMounted as $, onUnmounted as q, createElementBlock as j, openBlock as C, Fragment as G, createCommentVNode as J, createVNode as g, unref as y, normalizeClass as K, createElementVNode as B, Transition as Q, withCtx as X, withDirectives as Y, vShow as Z } from "vue";
|
|
2
2
|
import ee from "../../../node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { useMessageDraft as te } from "../../../hooks/useMessageDraft.js";
|
|
@@ -13,7 +13,7 @@ import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
14
|
import "../../../functions/parseMarkdown.js";
|
|
15
15
|
import ne from "./icons/SmilesIcon.vue.js";
|
|
16
|
-
const
|
|
16
|
+
const ye = /* @__PURE__ */ D({
|
|
17
17
|
__name: "ButtonEmojiPicker",
|
|
18
18
|
props: {
|
|
19
19
|
state: {
|
|
@@ -33,11 +33,18 @@ const be = /* @__PURE__ */ D({
|
|
|
33
33
|
native: {
|
|
34
34
|
type: Boolean,
|
|
35
35
|
default: !0
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Показывать группу недавно использованных эмодзи.
|
|
39
|
+
*/
|
|
40
|
+
displayRecent: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
36
43
|
}
|
|
37
44
|
},
|
|
38
45
|
setup(l) {
|
|
39
|
-
const t = l, v = r(null), f = r(null),
|
|
40
|
-
|
|
46
|
+
const t = l, v = r(null), f = r(null), n = r(!1), b = r("light"), i = R("chatAppId"), { setMessageText: P, getMessage: E } = te(i), { setNative: w } = oe(i);
|
|
47
|
+
W(
|
|
41
48
|
() => t.native,
|
|
42
49
|
(e) => w(e),
|
|
43
50
|
{ immediate: !0 }
|
|
@@ -54,49 +61,49 @@ const be = /* @__PURE__ */ D({
|
|
|
54
61
|
c.value = "#5F5F5F", s.value = "#404040";
|
|
55
62
|
return;
|
|
56
63
|
}
|
|
57
|
-
const
|
|
64
|
+
const o = window.getComputedStyle(e), d = o.getPropertyValue("--chotto-buttonemojipicker-button-span-color").trim(), A = o.getPropertyValue("--chotto-buttonemojipicker-button-span-hover-color").trim();
|
|
58
65
|
c.value = d || "#5F5F5F", s.value = A || "#404040";
|
|
59
|
-
}, I =
|
|
66
|
+
}, I = z(() => p.value ? s.value : c.value);
|
|
60
67
|
U(() => {
|
|
61
68
|
h();
|
|
62
69
|
});
|
|
63
70
|
let u = !1, m = !1;
|
|
64
71
|
const N = () => {
|
|
65
|
-
var
|
|
72
|
+
var o;
|
|
66
73
|
const e = document.getElementById(i);
|
|
67
|
-
return (
|
|
74
|
+
return (o = e == null ? void 0 : e.getAttribute("data-theme")) != null && o.includes("dark") ? "dark" : "light";
|
|
68
75
|
}, S = (e) => {
|
|
69
|
-
P(
|
|
70
|
-
},
|
|
71
|
-
t.state === "active" && (
|
|
76
|
+
P(E().text + e.i);
|
|
77
|
+
}, M = () => {
|
|
78
|
+
t.state === "active" && (b.value = N(), n.value = !0);
|
|
72
79
|
}, k = () => {
|
|
73
|
-
|
|
74
|
-
}, _ = () => {
|
|
75
|
-
t.mode === "click" && (o.value = !o.value, o.value && y());
|
|
80
|
+
n.value = !1;
|
|
76
81
|
}, T = () => {
|
|
77
|
-
t.mode === "
|
|
82
|
+
t.mode === "click" && (n.value = !n.value, n.value && M());
|
|
78
83
|
}, V = () => {
|
|
84
|
+
t.mode === "hover" && (u = !0, M());
|
|
85
|
+
}, x = () => {
|
|
79
86
|
t.mode === "hover" && (u = !1, setTimeout(() => {
|
|
80
87
|
!m && !u && k();
|
|
81
88
|
}, 150));
|
|
82
|
-
}, x = () => {
|
|
83
|
-
p.value = !0, T();
|
|
84
89
|
}, L = () => {
|
|
85
|
-
p.value = !
|
|
90
|
+
p.value = !0, V();
|
|
86
91
|
}, O = () => {
|
|
92
|
+
p.value = !1, x();
|
|
93
|
+
}, _ = () => {
|
|
87
94
|
t.mode === "hover" && (m = !0);
|
|
88
95
|
}, H = () => {
|
|
89
96
|
t.mode === "hover" && (m = !1, setTimeout(() => {
|
|
90
97
|
!u && !m && k();
|
|
91
98
|
}, 150));
|
|
92
99
|
}, F = (e) => {
|
|
93
|
-
t.mode === "click" &&
|
|
100
|
+
t.mode === "click" && n.value && f.value && v.value && e.target instanceof Node && !f.value.contains(e.target) && !v.value.contains(e.target) && k();
|
|
94
101
|
};
|
|
95
102
|
return $(() => {
|
|
96
103
|
if (document.addEventListener("click", F), h(), i) {
|
|
97
104
|
const e = document.getElementById(i);
|
|
98
|
-
e && (a = new MutationObserver((
|
|
99
|
-
|
|
105
|
+
e && (a = new MutationObserver((o) => {
|
|
106
|
+
o.forEach((d) => {
|
|
100
107
|
d.type === "attributes" && d.attributeName === "data-theme" && h();
|
|
101
108
|
});
|
|
102
109
|
}), a.observe(e, {
|
|
@@ -106,18 +113,18 @@ const be = /* @__PURE__ */ D({
|
|
|
106
113
|
}
|
|
107
114
|
}), q(() => {
|
|
108
115
|
document.removeEventListener("click", F), a && (a.disconnect(), a = null);
|
|
109
|
-
}), (e,
|
|
110
|
-
|
|
116
|
+
}), (e, o) => (C(), j(G, null, [
|
|
117
|
+
y(E)().isRecording ? J("", !0) : (C(), j("button", {
|
|
111
118
|
key: 0,
|
|
112
119
|
ref_key: "emojiButton",
|
|
113
120
|
ref: f,
|
|
114
121
|
class: K(["button", { "button-disabled": l.state === "disabled" }]),
|
|
115
|
-
onClick:
|
|
116
|
-
onMouseenter:
|
|
117
|
-
onMouseleave:
|
|
122
|
+
onClick: T,
|
|
123
|
+
onMouseenter: L,
|
|
124
|
+
onMouseleave: O
|
|
118
125
|
}, [
|
|
119
126
|
B("span", null, [
|
|
120
|
-
g(
|
|
127
|
+
g(y(ne), { fill: I.value }, null, 8, ["fill"])
|
|
121
128
|
])
|
|
122
129
|
], 34)),
|
|
123
130
|
g(Q, null, {
|
|
@@ -126,17 +133,18 @@ const be = /* @__PURE__ */ D({
|
|
|
126
133
|
ref_key: "emoji",
|
|
127
134
|
ref: v,
|
|
128
135
|
class: "emoji",
|
|
129
|
-
onMouseenter:
|
|
136
|
+
onMouseenter: _,
|
|
130
137
|
onMouseleave: H
|
|
131
138
|
}, [
|
|
132
|
-
g(
|
|
139
|
+
g(y(ee), {
|
|
133
140
|
native: l.native,
|
|
134
|
-
theme:
|
|
141
|
+
theme: b.value,
|
|
142
|
+
"display-recent": l.displayRecent,
|
|
135
143
|
"picker-type": "",
|
|
136
144
|
onSelect: S
|
|
137
|
-
}, null, 8, ["native", "theme"])
|
|
145
|
+
}, null, 8, ["native", "theme", "display-recent"])
|
|
138
146
|
], 544), [
|
|
139
|
-
[Z,
|
|
147
|
+
[Z, n.value]
|
|
140
148
|
])
|
|
141
149
|
]),
|
|
142
150
|
_: 1
|
|
@@ -145,5 +153,5 @@ const be = /* @__PURE__ */ D({
|
|
|
145
153
|
}
|
|
146
154
|
});
|
|
147
155
|
export {
|
|
148
|
-
|
|
156
|
+
ye as default
|
|
149
157
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FileUploader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f82b23fd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { uploadFile as
|
|
4
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as D, ref as r, inject as x, computed as M, watchEffect as z, watch as A, onMounted as O, onUnmounted as P, createElementBlock as y, openBlock as b, Fragment as $, createCommentVNode as H, createElementVNode as a, normalizeClass as L, createVNode as j, unref as R } from "vue";
|
|
2
|
+
import { buildFilePreview as q } from "../../../hooks/uploadFile/generatePreview.js";
|
|
3
|
+
import { uploadFile as G } from "../../../hooks/uploadFile/uploadFile.js";
|
|
4
|
+
import { useMessageDraft as J } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
7
|
import "../../../hooks/useEmojiNative.js";
|
|
@@ -12,14 +12,14 @@ import "../../../locale/useLocale.js";
|
|
|
12
12
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
14
|
import "../../../functions/parseMarkdown.js";
|
|
15
|
-
import
|
|
16
|
-
const
|
|
15
|
+
import K from "./icons/FileUploaderIcon.vue.js";
|
|
16
|
+
const Q = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "file-uploader__status file-uploader__status--uploading"
|
|
19
|
-
},
|
|
19
|
+
}, T = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "file-uploader__status file-uploader__status--error"
|
|
22
|
-
},
|
|
22
|
+
}, W = ["disabled"], de = /* @__PURE__ */ D({
|
|
23
23
|
__name: "FileUploader",
|
|
24
24
|
props: {
|
|
25
25
|
filebumpUrl: {
|
|
@@ -32,124 +32,108 @@ const W = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["fileUploaded"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
let
|
|
40
|
-
const
|
|
41
|
-
if (!
|
|
42
|
-
|
|
35
|
+
setup(d, { emit: X }) {
|
|
36
|
+
const m = d, o = r(""), i = r(), _ = r();
|
|
37
|
+
_.value;
|
|
38
|
+
const n = x("chatAppId"), { setMessageFile: U, resetMessageFile: k, getMessage: w, setRecordingMessage: C } = J(n), u = r("#5F5F5F"), p = r("#404040"), v = r(!1);
|
|
39
|
+
let s = null;
|
|
40
|
+
const g = () => {
|
|
41
|
+
if (!n) {
|
|
42
|
+
u.value = "#5F5F5F", p.value = "#404040";
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
const l = document.getElementById(
|
|
45
|
+
const l = document.getElementById(n);
|
|
46
46
|
if (!l) {
|
|
47
|
-
|
|
47
|
+
u.value = "#5F5F5F", p.value = "#404040";
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
const e = window.getComputedStyle(l), t = e.getPropertyValue("--chotto-fileuploader-trigger-color").trim(), f = e.getPropertyValue("--chotto-fileuploader-trigger-hover-color").trim();
|
|
51
|
+
u.value = t || "#5F5F5F", p.value = f || "#404040";
|
|
52
|
+
}, S = M(() => v.value ? p.value : u.value);
|
|
53
|
+
z(() => {
|
|
54
|
+
g();
|
|
55
55
|
});
|
|
56
|
-
const F =
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (o.type.indexOf("image") !== -1) {
|
|
56
|
+
const F = M(() => !w().file), c = () => {
|
|
57
|
+
i.value && (i.value.value = "");
|
|
58
|
+
}, N = () => {
|
|
59
|
+
k(), o.value = "", c();
|
|
60
|
+
}, V = async () => {
|
|
61
|
+
var e, t;
|
|
62
|
+
const l = (t = (e = i.value) == null ? void 0 : e.files) == null ? void 0 : t[0];
|
|
63
|
+
N(), l && await E(l), c();
|
|
64
|
+
}, B = () => {
|
|
65
|
+
i.value && F.value && m.state == "active" && (c(), i.value.click());
|
|
66
|
+
}, h = async (l) => {
|
|
67
|
+
var t;
|
|
68
|
+
const e = (t = l.clipboardData) == null ? void 0 : t.items;
|
|
69
|
+
if (e) {
|
|
70
|
+
for (let f of e)
|
|
71
|
+
if (f.type.indexOf("image") !== -1) {
|
|
73
72
|
l.preventDefault();
|
|
74
|
-
const
|
|
75
|
-
|
|
73
|
+
const I = f.getAsFile();
|
|
74
|
+
I && E(I);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
await
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const o = document.getElementById("chat-input-file-line-" + i);
|
|
90
|
-
o && (o.style.display = "inherit"), e.preview && (f.value = {
|
|
91
|
-
previewUrl: e.preview.previewUrl,
|
|
92
|
-
isImage: e.preview.isImage,
|
|
93
|
-
isVideo: e.preview.isVideo,
|
|
94
|
-
isAudio: e.preview.isAudio,
|
|
95
|
-
fileName: e.name,
|
|
96
|
-
fileSize: e.preview.fileSize
|
|
97
|
-
});
|
|
98
|
-
}
|
|
77
|
+
}, E = async (l) => {
|
|
78
|
+
o.value = "uploading", C(!0);
|
|
79
|
+
const e = typeof m.filebumpUrl == "string" ? m.filebumpUrl : null;
|
|
80
|
+
await G(e, l).then((t) => {
|
|
81
|
+
C(!1), o.value = t.status, t.status == "success" && U({
|
|
82
|
+
url: t.url,
|
|
83
|
+
name: t.name,
|
|
84
|
+
size: t.size,
|
|
85
|
+
type: t.type,
|
|
86
|
+
preview: q(t.name, t.preview)
|
|
87
|
+
});
|
|
99
88
|
});
|
|
100
89
|
};
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
l
|
|
105
|
-
|
|
106
|
-
|
|
90
|
+
return A(
|
|
91
|
+
() => w().file,
|
|
92
|
+
(l) => {
|
|
93
|
+
l || (o.value = "", c());
|
|
94
|
+
}
|
|
95
|
+
), O(() => {
|
|
96
|
+
if (window.addEventListener("paste", h), g(), n) {
|
|
97
|
+
const l = document.getElementById(n);
|
|
98
|
+
l && (s = new MutationObserver((e) => {
|
|
99
|
+
e.forEach((t) => {
|
|
100
|
+
t.type === "attributes" && t.attributeName === "data-theme" && g();
|
|
107
101
|
});
|
|
108
|
-
}),
|
|
102
|
+
}), s.observe(l, {
|
|
109
103
|
attributes: !0,
|
|
110
104
|
attributeFilter: ["data-theme"]
|
|
111
105
|
}));
|
|
112
106
|
}
|
|
113
|
-
}),
|
|
114
|
-
window.removeEventListener("paste",
|
|
115
|
-
}), (l,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
])])) :
|
|
120
|
-
|
|
121
|
-
])])) :
|
|
122
|
-
|
|
107
|
+
}), P(() => {
|
|
108
|
+
window.removeEventListener("paste", h), s && (s.disconnect(), s = null);
|
|
109
|
+
}), (l, e) => (b(), y($, null, [
|
|
110
|
+
o.value === "uploading" ? (b(), y("div", Q, [...e[2] || (e[2] = [
|
|
111
|
+
a("span", null, "Загрузка", -1),
|
|
112
|
+
a("span", null, "файла...", -1)
|
|
113
|
+
])])) : o.value === "error" ? (b(), y("div", T, [...e[3] || (e[3] = [
|
|
114
|
+
a("span", null, "Ошибка при загрузке файла.", -1)
|
|
115
|
+
])])) : H("", !0),
|
|
116
|
+
a("span", {
|
|
123
117
|
ref_key: "triggerElement",
|
|
124
|
-
ref:
|
|
125
|
-
class:
|
|
126
|
-
disabled: !F.value ||
|
|
127
|
-
onClick:
|
|
128
|
-
onMouseenter:
|
|
129
|
-
onMouseleave:
|
|
118
|
+
ref: _,
|
|
119
|
+
class: L(["file-uploader__trigger", { "file-uploader__disabled": !F.value || d.state == "disabled" }]),
|
|
120
|
+
disabled: !F.value || d.state == "disabled",
|
|
121
|
+
onClick: B,
|
|
122
|
+
onMouseenter: e[0] || (e[0] = (t) => v.value = !0),
|
|
123
|
+
onMouseleave: e[1] || (e[1] = (t) => v.value = !1)
|
|
130
124
|
}, [
|
|
131
|
-
|
|
132
|
-
], 42,
|
|
133
|
-
|
|
125
|
+
j(R(K), { fill: S.value }, null, 8, ["fill"])
|
|
126
|
+
], 42, W),
|
|
127
|
+
a("input", {
|
|
134
128
|
ref_key: "fileInput",
|
|
135
|
-
ref:
|
|
129
|
+
ref: i,
|
|
136
130
|
style: { display: "none" },
|
|
137
131
|
type: "file",
|
|
138
|
-
onChange:
|
|
139
|
-
}, null, 544)
|
|
140
|
-
h(I)().file ? (u(), V(q, {
|
|
141
|
-
key: 2,
|
|
142
|
-
to: "#chat-input-file-line-" + h(i)
|
|
143
|
-
}, [
|
|
144
|
-
f.value ? (u(), V(G, {
|
|
145
|
-
key: 0,
|
|
146
|
-
"file-info": f.value,
|
|
147
|
-
onReset: k
|
|
148
|
-
}, null, 8, ["file-info"])) : b("", !0)
|
|
149
|
-
], 8, ["to"])) : b("", !0)
|
|
132
|
+
onChange: V
|
|
133
|
+
}, null, 544)
|
|
150
134
|
], 64));
|
|
151
135
|
}
|
|
152
136
|
});
|
|
153
137
|
export {
|
|
154
|
-
|
|
138
|
+
de as default
|
|
155
139
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ChatItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b432c634"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|