tuikit-atomicx-vue3 4.3.1 → 4.4.0
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/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js} +31 -31
- package/dist/chat/index.d.ts +35 -35
- package/dist/chat/server.js +15 -15
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
- package/dist/components/ContactList/ContactList.js +7 -7
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
- package/dist/components/ConversationList/ConversationList.js +4 -4
- package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
- package/dist/components/ConversationList/index.d.ts +30 -30
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +23 -21
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +32 -31
- package/dist/components/MessageInput/index.d.ts +6 -6
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
- package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageList.js +8 -6
- package/dist/components/MessageList/index.d.ts +2 -2
- package/dist/hooks/useAudioControl.d.ts +3 -3
- package/dist/hooks/useAudioControl.js +32 -30
- package/dist/rtc/server.js +45 -40
- package/dist/states/LoginState.d.ts +23 -0
- package/dist/states/LoginState.js +34 -39
- package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
- package/dist/states/MessageInputState/MessageInputState.js +60 -59
- package/dist/states/MessageInputState/utils.d.ts +8 -1
- package/dist/states/MessageInputState/utils.js +30 -10
- package/dist/styles/index.css +1 -1
- package/dist/utils/call.js +1 -1
- package/package.json +1 -1
- package/src/chat/server.ts +0 -1
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
- package/src/components/ContactList/ContactList.vue +1 -1
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
- package/src/components/ConversationList/ConversationList.vue +2 -2
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +1 -1
- package/src/components/MessageInput/TextEditor/EditorCore.ts +4 -2
- package/src/components/MessageInput/TextEditor/TextEditor.vue +3 -4
- package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +1 -1
- package/src/components/MessageList/Message/Message.vue +1 -1
- package/src/components/MessageList/MessageList.vue +2 -0
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchBar/SearchBar.vue +1 -1
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
- package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
- package/src/components/Search/SearchResults/SearchResults.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- package/src/hooks/useAudioControl.ts +17 -4
- package/src/rtc/server.ts +4 -0
- package/src/utils/call.ts +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as N, ref as _, computed as h, createElementBlock as d, openBlock as g, createElementVNode as a, createCommentVNode as x, createVNode as v, toDisplayString as t, unref as e, normalizeClass as A, withDirectives as w, vModelText as M, withCtx as S, createTextVNode as k } from "vue";
|
|
2
2
|
import i from "@tencentcloud/chat-uikit-engine";
|
|
3
3
|
import { useUIKit as R, TUIButton as D } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
|
-
import
|
|
4
|
+
import j from "../../../Avatar/Avatar.js";
|
|
5
5
|
import { TEXTAREA_LENGTH_LIMIT as T } from "../../constants/const.js";
|
|
6
|
-
import { useContactListState as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
6
|
+
import { useContactListState as V } from "../../../../states/ContactListState/ContactListState.js";
|
|
7
|
+
import { _ as Y } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const b = { class: "contact-search-group-info" }, B = { class: "contact-search-group-info__header" }, L = { class: "contact-search-group-info__main-info" }, O = { class: "contact-search-group-info__name" }, z = { class: "contact-search-group-info__id" }, H = { class: "contact-search-group-info__intro" }, J = { class: "contact-search-group-info__intro" }, K = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "contact-search-group-info__form"
|
|
11
11
|
}, W = { class: "contact-search-group-info__form-label" }, X = { class: "contact-search-group-info__form-input-wrapper" }, $ = ["placeholder", "maxlength"], q = { class: "contact-search-group-info__form-counter" }, F = {
|
|
@@ -21,7 +21,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["joinGroup"],
|
|
23
23
|
setup(c, { emit: I }) {
|
|
24
|
-
const u = c, C = I, { t: o } = R(), { joinGroup: U } =
|
|
24
|
+
const u = c, C = I, { t: o } = R(), { joinGroup: U } = V(), l = _(""), p = _(!1), n = _("idle"), f = _(""), m = h(() => u.group.name || u.group.groupID), G = h(() => [
|
|
25
25
|
"contact-search-group-info__status",
|
|
26
26
|
`contact-search-group-info__status--${n.value}`
|
|
27
27
|
]), y = (r) => {
|
|
@@ -56,7 +56,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
|
|
|
56
56
|
p.value = !1;
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
return (r, s) => (g(), d("div",
|
|
59
|
+
return (r, s) => (g(), d("div", b, [
|
|
60
60
|
a("div", B, [
|
|
61
61
|
a("div", L, [
|
|
62
62
|
a("div", O, t(m.value), 1),
|
|
@@ -64,7 +64,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
|
|
|
64
64
|
a("div", H, t(e(o)("TUIContact.Group type")) + ":" + t(y(c.group.type)), 1),
|
|
65
65
|
a("div", J, t(e(o)("TUIContact.Group introduction")) + ":" + t(c.group.introduction || e(o)("TUIContact.No introduction")), 1)
|
|
66
66
|
]),
|
|
67
|
-
v(e(
|
|
67
|
+
v(e(j), {
|
|
68
68
|
src: c.group.avatar,
|
|
69
69
|
alt: m.value,
|
|
70
70
|
size: "xl"
|
|
@@ -103,7 +103,7 @@ const Y = { class: "contact-search-group-info" }, B = { class: "contact-search-g
|
|
|
103
103
|
])) : x("", !0)
|
|
104
104
|
]));
|
|
105
105
|
}
|
|
106
|
-
}), so = /* @__PURE__ */
|
|
106
|
+
}), so = /* @__PURE__ */ Y(Q, [["__scopeId", "data-v-484352b6"]]);
|
|
107
107
|
export {
|
|
108
108
|
so as default
|
|
109
109
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as U, ref as d, computed as A, createElementBlock as u, openBlock as _, createElementVNode as s, createCommentVNode as x, createVNode as v, toDisplayString as e, unref as t, normalizeClass as w, withDirectives as k, vModelText as D, withCtx as F, createTextVNode as S } from "vue";
|
|
2
|
-
import { useUIKit as N, TUIButton as
|
|
3
|
-
import
|
|
2
|
+
import { useUIKit as N, TUIButton as b } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import E from "../../../Avatar/Avatar.js";
|
|
4
4
|
import { TEXTAREA_LENGTH_LIMIT as p } from "../../constants/const.js";
|
|
5
|
-
import { useContactListState as
|
|
5
|
+
import { useContactListState as V } from "../../../../states/ContactListState/ContactListState.js";
|
|
6
6
|
import { _ as B } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const z = { class: "contact-search-user-info" }, L = { class: "contact-search-user-info__header" }, M = { class: "contact-search-user-info__main-info" }, W = { class: "contact-search-user-info__name" }, P = { class: "contact-search-user-info__id" }, q = { class: "contact-search-user-info__intro" }, G = {
|
|
8
8
|
key: 1,
|
|
@@ -20,7 +20,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["addFriend", "close"],
|
|
22
22
|
setup(c, { emit: I }) {
|
|
23
|
-
const r = c, g = I, { t: a } = N(), { addFriend: T } =
|
|
23
|
+
const r = c, g = I, { t: a } = N(), { addFriend: T } = V(), i = d(""), l = d(!1), o = d("idle"), f = d(""), h = A(() => r.user.nick || r.user.userID), C = async () => {
|
|
24
24
|
if (l.value)
|
|
25
25
|
return;
|
|
26
26
|
l.value = !0, o.value = "idle", f.value = "";
|
|
@@ -45,7 +45,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
|
|
|
45
45
|
s("div", P, e(t(a)("TUIContact.ID")) + ":" + e(c.user.userID), 1),
|
|
46
46
|
s("div", q, e(t(a)("TUIContact.Personal signature")) + ":" + e(c.user.selfSignature || ""), 1)
|
|
47
47
|
]),
|
|
48
|
-
v(t(
|
|
48
|
+
v(t(E), {
|
|
49
49
|
src: c.user.avatar,
|
|
50
50
|
alt: h.value,
|
|
51
51
|
size: "xl"
|
|
@@ -73,7 +73,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
|
|
|
73
73
|
])
|
|
74
74
|
])),
|
|
75
75
|
c.showActions && o.value !== "success" ? (_(), u("div", $, [
|
|
76
|
-
v(t(
|
|
76
|
+
v(t(b), {
|
|
77
77
|
type: "primary",
|
|
78
78
|
size: "big",
|
|
79
79
|
loading: l.value,
|
|
@@ -87,7 +87,7 @@ const z = { class: "contact-search-user-info" }, L = { class: "contact-search-us
|
|
|
87
87
|
])) : x("", !0)
|
|
88
88
|
]));
|
|
89
89
|
}
|
|
90
|
-
}), te = /* @__PURE__ */ B(j, [["__scopeId", "data-v-
|
|
90
|
+
}), te = /* @__PURE__ */ B(j, [["__scopeId", "data-v-af3b5264"]]);
|
|
91
91
|
export {
|
|
92
92
|
te as default
|
|
93
93
|
};
|
|
@@ -39,10 +39,10 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
|
|
|
39
39
|
friendList: w,
|
|
40
40
|
groupList: P,
|
|
41
41
|
blackList: $,
|
|
42
|
-
friendApplicationList:
|
|
43
|
-
groupApplicationList:
|
|
42
|
+
friendApplicationList: b,
|
|
43
|
+
groupApplicationList: B,
|
|
44
44
|
friendApplicationUnreadCount: E,
|
|
45
|
-
acceptFriendApplication:
|
|
45
|
+
acceptFriendApplication: O,
|
|
46
46
|
refuseFriendApplication: Q,
|
|
47
47
|
acceptGroupApplication: K,
|
|
48
48
|
refuseGroupApplication: M,
|
|
@@ -72,7 +72,7 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
|
|
|
72
72
|
h("contact-item-click", t), T(t), i.onContactItemClick && i.onContactItemClick(t);
|
|
73
73
|
}, j = async (e, o) => {
|
|
74
74
|
try {
|
|
75
|
-
e === "accept" ? await
|
|
75
|
+
e === "accept" ? await O({
|
|
76
76
|
userID: o.userID,
|
|
77
77
|
type: o.type
|
|
78
78
|
}) : await Q(o.userID), h("friend-application-action", e, o), i.onFriendApplicationAction && i.onFriendApplicationAction(e, o);
|
|
@@ -107,14 +107,14 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
|
|
|
107
107
|
{
|
|
108
108
|
type: a.FRIEND_REQUEST,
|
|
109
109
|
title: l.value[a.FRIEND_REQUEST],
|
|
110
|
-
items:
|
|
110
|
+
items: b.value,
|
|
111
111
|
unreadCount: E.value,
|
|
112
112
|
order: 1
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
type: a.GROUP_REQUEST,
|
|
116
116
|
title: l.value[a.GROUP_REQUEST],
|
|
117
|
-
items:
|
|
117
|
+
items: B.value,
|
|
118
118
|
order: 2
|
|
119
119
|
},
|
|
120
120
|
{
|
|
@@ -213,7 +213,7 @@ const rt = { class: "contact-list" }, st = { class: "contact-list__container" },
|
|
|
213
213
|
])
|
|
214
214
|
]));
|
|
215
215
|
}
|
|
216
|
-
}), Lt = /* @__PURE__ */ it(ht, [["__scopeId", "data-v-
|
|
216
|
+
}), Lt = /* @__PURE__ */ it(ht, [["__scopeId", "data-v-ba745c86"]]);
|
|
217
217
|
export {
|
|
218
218
|
Lt as default
|
|
219
219
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as r, createElementBlock as m, openBlock as k, withKeys as l, normalizeClass as d, createElementVNode as
|
|
1
|
+
import { defineComponent as n, computed as r, createElementBlock as m, openBlock as k, withKeys as l, normalizeClass as d, createElementVNode as c, createVNode as f, unref as p, toDisplayString as _ } from "vue";
|
|
2
2
|
import v from "../../../Avatar/Avatar.js";
|
|
3
3
|
import { _ as u } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__content" }, C = { class: "blacklist-item__name" }, I = /* @__PURE__ */ n({
|
|
@@ -10,13 +10,13 @@ const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__con
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["click"],
|
|
12
12
|
setup(e, { emit: s }) {
|
|
13
|
-
const
|
|
13
|
+
const i = e, a = s, o = r(() => [
|
|
14
14
|
"blacklist-item",
|
|
15
15
|
{
|
|
16
|
-
"blacklist-item--active":
|
|
16
|
+
"blacklist-item--active": i.isActive
|
|
17
17
|
}
|
|
18
18
|
]), t = () => {
|
|
19
|
-
a("click",
|
|
19
|
+
a("click", i.profile);
|
|
20
20
|
};
|
|
21
21
|
return (B, y) => (k(), m("div", {
|
|
22
22
|
class: d(o.value),
|
|
@@ -26,18 +26,18 @@ const b = { class: "blacklist-item__avatar" }, h = { class: "blacklist-item__con
|
|
|
26
26
|
l(t, ["space"])
|
|
27
27
|
]
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
c("div", b, [
|
|
30
30
|
f(p(v), {
|
|
31
31
|
src: e.profile.avatar,
|
|
32
32
|
alt: e.profile.nick || e.profile.userID
|
|
33
33
|
}, null, 8, ["src", "alt"])
|
|
34
34
|
]),
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
c("div", h, [
|
|
36
|
+
c("div", C, _(e.profile.nick || e.profile.userID), 1)
|
|
37
37
|
])
|
|
38
38
|
], 34));
|
|
39
39
|
}
|
|
40
|
-
}), w = /* @__PURE__ */ u(I, [["__scopeId", "data-v-
|
|
40
|
+
}), w = /* @__PURE__ */ u(I, [["__scopeId", "data-v-ab6cc82a"]]);
|
|
41
41
|
export {
|
|
42
42
|
w as default
|
|
43
43
|
};
|
package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as A, createElementBlock as I, openBlock as u, withKeys as p, normalizeClass as v, createElementVNode as i, createVNode as l, unref as c, toDisplayString as a, withModifiers as h, withCtx as C, createTextVNode as k } from "vue";
|
|
2
2
|
import { useUIKit as y, TUIButton as x } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import w from "../../../Avatar/Avatar.js";
|
|
4
4
|
import { useContactListState as B } from "../../../../states/ContactListState/ContactListState.js";
|
|
5
5
|
import { _ as T } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplicationItem__content" }, F = { class: "friendApplicationItem__name" }, K = { class: "friendApplicationItem__text" }, N = { class: "friendApplicationItem__actions" }, V = /* @__PURE__ */
|
|
6
|
+
const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplicationItem__content" }, F = { class: "friendApplicationItem__name" }, K = { class: "friendApplicationItem__text" }, N = { class: "friendApplicationItem__actions" }, V = /* @__PURE__ */ f({
|
|
7
7
|
__name: "FriendApplicationItem",
|
|
8
8
|
props: {
|
|
9
9
|
application: {},
|
|
@@ -20,7 +20,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
|
|
|
20
20
|
}
|
|
21
21
|
]), n = () => {
|
|
22
22
|
o("click", e.application);
|
|
23
|
-
},
|
|
23
|
+
}, _ = () => {
|
|
24
24
|
d(e.application), o("action", "accept", e.application);
|
|
25
25
|
};
|
|
26
26
|
return (g, z) => (u(), I("div", {
|
|
@@ -45,7 +45,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
|
|
|
45
45
|
l(c(x), {
|
|
46
46
|
type: "primary",
|
|
47
47
|
size: "small",
|
|
48
|
-
onClick: h(
|
|
48
|
+
onClick: h(_, ["stop"])
|
|
49
49
|
}, {
|
|
50
50
|
default: C(() => [
|
|
51
51
|
k(a(c(s)("TUIContact.Agree")), 1)
|
|
@@ -55,7 +55,7 @@ const U = { class: "friendApplicationItem__avatar" }, D = { class: "friendApplic
|
|
|
55
55
|
])
|
|
56
56
|
], 34));
|
|
57
57
|
}
|
|
58
|
-
}), R = /* @__PURE__ */ T(V, [["__scopeId", "data-v-
|
|
58
|
+
}), R = /* @__PURE__ */ T(V, [["__scopeId", "data-v-2e3117d1"]]);
|
|
59
59
|
export {
|
|
60
60
|
R as default
|
|
61
61
|
};
|
|
@@ -19,7 +19,7 @@ const y = { class: "friend-item__avatar" }, p = { class: "friend-item__content"
|
|
|
19
19
|
d("click", n.friend);
|
|
20
20
|
};
|
|
21
21
|
return (B, D) => {
|
|
22
|
-
var
|
|
22
|
+
var r, c;
|
|
23
23
|
return v(), f("div", {
|
|
24
24
|
class: k(o.value),
|
|
25
25
|
onClick: t,
|
|
@@ -31,16 +31,16 @@ const y = { class: "friend-item__avatar" }, p = { class: "friend-item__content"
|
|
|
31
31
|
i("div", y, [
|
|
32
32
|
u(_(C), {
|
|
33
33
|
src: e.friend.avatar,
|
|
34
|
-
alt: e.friend.remark || ((
|
|
34
|
+
alt: e.friend.remark || ((r = e.friend) == null ? void 0 : r.nick) || e.friend.userID
|
|
35
35
|
}, null, 8, ["src", "alt"])
|
|
36
36
|
]),
|
|
37
37
|
i("div", p, [
|
|
38
|
-
i("div", x, h(e.friend.remark || ((
|
|
38
|
+
i("div", x, h(e.friend.remark || ((c = e.friend) == null ? void 0 : c.nick) || e.friend.userID), 1)
|
|
39
39
|
])
|
|
40
40
|
], 34);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), F = /* @__PURE__ */ I(A, [["__scopeId", "data-v-0a8bf3bd"]]);
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
F as default
|
|
46
46
|
};
|
package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js
CHANGED
|
@@ -54,7 +54,7 @@ const V = { class: "groupApplicationItem__avatar" }, j = { class: "groupApplicat
|
|
|
54
54
|
])
|
|
55
55
|
], 34));
|
|
56
56
|
}
|
|
57
|
-
}), F = /* @__PURE__ */ K(S, [["__scopeId", "data-v-
|
|
57
|
+
}), F = /* @__PURE__ */ K(S, [["__scopeId", "data-v-185beed6"]]);
|
|
58
58
|
export {
|
|
59
59
|
F as default
|
|
60
60
|
};
|
|
@@ -37,7 +37,7 @@ const k = { class: "group-item__avatar" }, h = { class: "group-item__content" },
|
|
|
37
37
|
])
|
|
38
38
|
], 34));
|
|
39
39
|
}
|
|
40
|
-
}), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-
|
|
40
|
+
}), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-4dc91a15"]]);
|
|
41
41
|
export {
|
|
42
42
|
w as default
|
|
43
43
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as
|
|
2
|
-
import { useUIKit as
|
|
1
|
+
import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as g, unref as c, toDisplayString as E, h as s } from "vue";
|
|
2
|
+
import { useUIKit as U, IconSearchMore as b } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { useSearchState as w } from "../../../states/SearchState.js";
|
|
4
4
|
import { Search as B, SearchBar as T } from "../../Search/index.js";
|
|
5
5
|
import { VariantType as x } from "../../../types/search.js";
|
|
@@ -13,7 +13,7 @@ const K = {
|
|
|
13
13
|
__name: "ContactSearch",
|
|
14
14
|
emits: ["result-click", "keyword-change"],
|
|
15
15
|
setup(G, { emit: m }) {
|
|
16
|
-
const t = m, { t: n } =
|
|
16
|
+
const t = m, { t: n } = U(), { setKeyword: p } = w(), a = v(!1), d = (e, r) => {
|
|
17
17
|
r === i.USER && t("result-click", {
|
|
18
18
|
type: _.SEARCH_USER,
|
|
19
19
|
data: e.profile
|
|
@@ -53,13 +53,13 @@ const K = {
|
|
|
53
53
|
onClick: f
|
|
54
54
|
}, [
|
|
55
55
|
h("label", K, [
|
|
56
|
-
|
|
56
|
+
g(c(b))
|
|
57
57
|
]),
|
|
58
|
-
h("span", P,
|
|
58
|
+
h("span", P, E(c(n)("TUIContact.Add friend/group")), 1)
|
|
59
59
|
]))
|
|
60
60
|
], 2));
|
|
61
61
|
}
|
|
62
|
-
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-
|
|
62
|
+
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-7c64a2df"]]);
|
|
63
63
|
export {
|
|
64
64
|
j as default
|
|
65
65
|
};
|
|
@@ -59,9 +59,9 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
59
59
|
[t.USER_SELECT]: o("TUIConversation.Cancel"),
|
|
60
60
|
[t.CREATE_DETAIL]: o("TUIConversation.Prev"),
|
|
61
61
|
[t.GROUP_TYPE]: o("TUIConversation.Prev")
|
|
62
|
-
}, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")),
|
|
62
|
+
}, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), $ = I(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), j = (e) => {
|
|
63
63
|
v.value = e;
|
|
64
|
-
},
|
|
64
|
+
}, z = async () => {
|
|
65
65
|
var r;
|
|
66
66
|
const { userID: e } = l.value[0];
|
|
67
67
|
T("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
|
|
@@ -71,7 +71,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
71
71
|
} catch (a) {
|
|
72
72
|
U.error({ message: a.message });
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, H = async () => {
|
|
75
75
|
var r;
|
|
76
76
|
const e = {
|
|
77
77
|
...v.value,
|
|
@@ -86,16 +86,16 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
86
86
|
} catch (a) {
|
|
87
87
|
U.error({ message: a.message });
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, V = (e) => {
|
|
90
90
|
var A, D;
|
|
91
|
-
const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}
|
|
91
|
+
const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}、${e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、")}`;
|
|
92
92
|
return a.length >= G ? a.slice(0, G) : a;
|
|
93
93
|
}, q = () => {
|
|
94
94
|
if (l.value.length === 0) {
|
|
95
95
|
U.error({ message: o("TUIConversation.Participant cannot be empty") });
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
c.value ? n.value === t.USER_SELECT ? (v.value.name =
|
|
98
|
+
c.value ? n.value === t.USER_SELECT ? (v.value.name = V(l.value), C(t.CREATE_DETAIL)) : n.value === t.CREATE_DETAIL ? (H(), f(!1)) : C(t.CREATE_DETAIL) : (z(), f(!1));
|
|
99
99
|
}, J = () => {
|
|
100
100
|
n.value === t.USER_SELECT ? (f(!1), _()) : n.value === t.CREATE_DETAIL ? C(t.USER_SELECT) : n.value === t.GROUP_TYPE && C(t.CREATE_DETAIL);
|
|
101
101
|
};
|
|
@@ -107,7 +107,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
107
107
|
appendTo: "body",
|
|
108
108
|
visible: m.value,
|
|
109
109
|
title: M.value,
|
|
110
|
-
"confirm-text":
|
|
110
|
+
"confirm-text": $.value,
|
|
111
111
|
"cancel-text": F.value,
|
|
112
112
|
"custom-classes": [p(re) ? "conversationCreate__dialog" : ""],
|
|
113
113
|
onConfirm: q,
|
|
@@ -127,14 +127,14 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
127
127
|
"profile-list": l.value,
|
|
128
128
|
"group-info": v.value,
|
|
129
129
|
"set-page-state": C,
|
|
130
|
-
onUpdateGroupInfo:
|
|
130
|
+
onUpdateGroupInfo: j
|
|
131
131
|
}, null, 8, ["page-state", "profile-list", "group-info"]))
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["visible", "title", "confirm-text", "cancel-text", "custom-classes"])
|
|
135
135
|
], 2));
|
|
136
136
|
}
|
|
137
|
-
}), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-
|
|
137
|
+
}), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-4707a253"]]);
|
|
138
138
|
export {
|
|
139
139
|
Ge as default
|
|
140
140
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, ref as
|
|
1
|
+
import { defineComponent as z, ref as C, computed as u, watch as x, createElementBlock as S, openBlock as n, normalizeStyle as V, normalizeClass as E, unref as i, createBlock as s, createCommentVNode as f, resolveDynamicComponent as c, withCtx as A, Fragment as q, renderList as G } from "vue";
|
|
2
2
|
import J from "../Avatar/Avatar.js";
|
|
3
3
|
import { useConversation as K } from "./hooks/useConversation.js";
|
|
4
4
|
import Q from "./ConversationActions/ConversationActions.js";
|
|
@@ -46,12 +46,12 @@ const oe = /* @__PURE__ */ z({
|
|
|
46
46
|
enableSearch: j,
|
|
47
47
|
onBeforeCreateConversation: m,
|
|
48
48
|
onConversationCreated: h
|
|
49
|
-
} = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I =
|
|
49
|
+
} = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I = C([]), y = u(() => {
|
|
50
50
|
if (!l.value)
|
|
51
51
|
return [];
|
|
52
52
|
let e = l.value;
|
|
53
53
|
return o.filter && typeof o.filter == "function" && (e = o.filter(e)), o.sort && typeof o.sort == "function" && (e = o.sort(e)), e;
|
|
54
|
-
}), p =
|
|
54
|
+
}), p = C(!1), d = C({}), L = u(() => $), b = u(() => j);
|
|
55
55
|
w(L.value), H(b.value), x(
|
|
56
56
|
() => [F, I.value],
|
|
57
57
|
([e, r]) => {
|
|
@@ -119,7 +119,7 @@ const oe = /* @__PURE__ */ z({
|
|
|
119
119
|
Preview: t.Preview,
|
|
120
120
|
ConversationActions: t.ConversationActions,
|
|
121
121
|
"actions-config": d.value,
|
|
122
|
-
|
|
122
|
+
onSelectConversation: M
|
|
123
123
|
}, null, 8, ["conversation", "enable-actions", "Avatar", "Preview", "ConversationActions", "actions-config"]))), 128))
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
@@ -576,9 +576,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
576
576
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
577
577
|
};
|
|
578
578
|
}>> & Readonly<{
|
|
579
|
-
|
|
579
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
580
580
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
581
|
-
|
|
581
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
582
582
|
}, import('vue').PublicProps, {
|
|
583
583
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
584
584
|
isSelected: boolean;
|
|
@@ -911,7 +911,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
911
911
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
912
912
|
};
|
|
913
913
|
}>> & Readonly<{
|
|
914
|
-
|
|
914
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
915
915
|
}>, {}, {}, {}, {}, {
|
|
916
916
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
917
917
|
isSelected: boolean;
|
|
@@ -1241,9 +1241,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1241
1241
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
1242
1242
|
};
|
|
1243
1243
|
}>> & Readonly<{
|
|
1244
|
-
|
|
1244
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1245
1245
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1246
|
-
|
|
1246
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
1247
1247
|
}, string, {
|
|
1248
1248
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
1249
1249
|
isSelected: boolean;
|
|
@@ -4185,9 +4185,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4185
4185
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4186
4186
|
};
|
|
4187
4187
|
}>> & Readonly<{
|
|
4188
|
-
|
|
4188
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4189
4189
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4190
|
-
|
|
4190
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
4191
4191
|
}, import('vue').PublicProps, {
|
|
4192
4192
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4193
4193
|
isSelected: boolean;
|
|
@@ -4520,7 +4520,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4520
4520
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4521
4521
|
};
|
|
4522
4522
|
}>> & Readonly<{
|
|
4523
|
-
|
|
4523
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4524
4524
|
}>, {}, {}, {}, {}, {
|
|
4525
4525
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4526
4526
|
isSelected: boolean;
|
|
@@ -4850,9 +4850,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4850
4850
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4851
4851
|
};
|
|
4852
4852
|
}>> & Readonly<{
|
|
4853
|
-
|
|
4853
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4854
4854
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4855
|
-
|
|
4855
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
4856
4856
|
}, string, {
|
|
4857
4857
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4858
4858
|
isSelected: boolean;
|
|
@@ -323,9 +323,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
323
323
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
324
324
|
};
|
|
325
325
|
}>> & Readonly<{
|
|
326
|
-
|
|
326
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
327
327
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
328
|
-
|
|
328
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
329
329
|
}, import('vue').PublicProps, {
|
|
330
330
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
331
331
|
isSelected: boolean;
|
|
@@ -658,7 +658,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
658
658
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
659
659
|
};
|
|
660
660
|
}>> & Readonly<{
|
|
661
|
-
|
|
661
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
662
662
|
}>, {}, {}, {}, {}, {
|
|
663
663
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
664
664
|
isSelected: boolean;
|
|
@@ -988,9 +988,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
988
988
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
989
989
|
};
|
|
990
990
|
}>> & Readonly<{
|
|
991
|
-
|
|
991
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
992
992
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
993
|
-
|
|
993
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
994
994
|
}, string, {
|
|
995
995
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
996
996
|
isSelected: boolean;
|
|
@@ -1552,9 +1552,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1552
1552
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
1553
1553
|
};
|
|
1554
1554
|
}>> & Readonly<{
|
|
1555
|
-
|
|
1555
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1556
1556
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1557
|
-
|
|
1557
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
1558
1558
|
}, import('vue').PublicProps, {
|
|
1559
1559
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
1560
1560
|
isSelected: boolean;
|
|
@@ -1887,7 +1887,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1887
1887
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
1888
1888
|
};
|
|
1889
1889
|
}>> & Readonly<{
|
|
1890
|
-
|
|
1890
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1891
1891
|
}>, {}, {}, {}, {}, {
|
|
1892
1892
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
1893
1893
|
isSelected: boolean;
|
|
@@ -2217,9 +2217,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2217
2217
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
2218
2218
|
};
|
|
2219
2219
|
}>> & Readonly<{
|
|
2220
|
-
|
|
2220
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
2221
2221
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2222
|
-
|
|
2222
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
2223
2223
|
}, string, {
|
|
2224
2224
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
2225
2225
|
isSelected: boolean;
|