tuikit-atomicx-vue3 4.4.0-beta.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 +2 -2
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as
|
|
1
|
+
import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as o, createElementVNode as c, createBlock as i, createCommentVNode as K, mergeProps as l, unref as t, renderSlot as j, normalizeClass as u, resolveDynamicComponent as a } from "vue";
|
|
2
2
|
import P from "@tencentcloud/chat-uikit-engine";
|
|
3
3
|
import F from "../../Avatar/Avatar.js";
|
|
4
4
|
import z from "./ConversationPreviewAbstract.js";
|
|
@@ -29,7 +29,7 @@ const ne = /* @__PURE__ */ O({
|
|
|
29
29
|
style: {},
|
|
30
30
|
children: {}
|
|
31
31
|
},
|
|
32
|
-
emits: ["
|
|
32
|
+
emits: ["selectConversation"],
|
|
33
33
|
setup(e, { emit: $ }) {
|
|
34
34
|
const m = e, N = $, { activeConversation: h, setActiveConversation: R } = p(), _ = U(), s = U(!1), { isHovered: S } = X(_), { getEventHandlers: I } = Z(() => {
|
|
35
35
|
r && (s.value = !0);
|
|
@@ -38,53 +38,53 @@ const ne = /* @__PURE__ */ O({
|
|
|
38
38
|
r || (s.value = n);
|
|
39
39
|
});
|
|
40
40
|
const B = () => {
|
|
41
|
-
N("
|
|
41
|
+
N("selectConversation", m.conversation), R(m.conversation.conversationID);
|
|
42
42
|
}, d = () => {
|
|
43
43
|
s.value = !1;
|
|
44
44
|
};
|
|
45
45
|
return (n, de) => {
|
|
46
46
|
var w, f, C, A, y, M, g, q;
|
|
47
|
-
return
|
|
47
|
+
return o(), H("div", null, [
|
|
48
48
|
c("div", l({
|
|
49
49
|
ref_key: "conversationPreviewRef",
|
|
50
50
|
ref: _,
|
|
51
51
|
class: [
|
|
52
52
|
n.$style.conversationPreview,
|
|
53
53
|
e.className,
|
|
54
|
-
|
|
55
|
-
(e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f =
|
|
56
|
-
!((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(
|
|
54
|
+
t(r) && [n.$style["conversationPreview--mobile"]],
|
|
55
|
+
(e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f = t(h)) == null ? void 0 : f.conversationID)) && [n.$style["conversationPreview--active"]],
|
|
56
|
+
!((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))) && [n.$style["conversationPreview--unread"]],
|
|
57
57
|
((g = e.conversation) == null ? void 0 : g.isPinned) && [n.$style["conversationPreview--pin"]],
|
|
58
58
|
((q = e.conversation) == null ? void 0 : q.isMuted) && [n.$style["conversationPreview--mute"]]
|
|
59
59
|
],
|
|
60
60
|
style: e.style
|
|
61
|
-
},
|
|
61
|
+
}, t(Y), { onClick: B }), [
|
|
62
62
|
j(n.$slots, "default", {}, () => {
|
|
63
63
|
var v, E, D, T, b, k, x, L;
|
|
64
64
|
return [
|
|
65
65
|
c("div", {
|
|
66
66
|
class: u(n.$style.conversationPreview__avatar)
|
|
67
67
|
}, [
|
|
68
|
-
(
|
|
68
|
+
(o(), i(a(e.Avatar), {
|
|
69
69
|
src: (E = (v = e.conversation) == null ? void 0 : v.getAvatar) == null ? void 0 : E.call(v),
|
|
70
|
-
unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(
|
|
71
|
-
isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(
|
|
70
|
+
unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD)) ? 1 : void 0,
|
|
71
|
+
isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))
|
|
72
72
|
}, null, 8, ["src", "unreadCount", "isDotUnreadCount"]))
|
|
73
73
|
], 2),
|
|
74
74
|
c("div", {
|
|
75
75
|
class: u(n.$style.conversationPreview__content)
|
|
76
76
|
}, [
|
|
77
|
-
(
|
|
78
|
-
(
|
|
77
|
+
(o(), i(a(e.Title), { conversation: e.conversation }, null, 8, ["conversation"])),
|
|
78
|
+
(o(), i(a(e.LastMessageAbstract), { conversation: e.conversation }, null, 8, ["conversation"]))
|
|
79
79
|
], 2),
|
|
80
80
|
c("div", {
|
|
81
81
|
class: u(n.$style.conversationPreview__external)
|
|
82
82
|
}, [
|
|
83
|
-
(
|
|
84
|
-
e.enableActions && s.value && !
|
|
83
|
+
(o(), i(a(e.Unread), { conversation: e.conversation }, null, 8, ["conversation"])),
|
|
84
|
+
e.enableActions && s.value && !t(r) ? (o(), i(a(e.ConversationActions), l({
|
|
85
85
|
key: 0,
|
|
86
86
|
conversation: e.conversation
|
|
87
|
-
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (
|
|
87
|
+
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (o(), i(a(e.LastMessageTimestamp), {
|
|
88
88
|
key: 1,
|
|
89
89
|
conversation: e.conversation
|
|
90
90
|
}, null, 8, ["conversation"]))
|
|
@@ -92,18 +92,18 @@ const ne = /* @__PURE__ */ O({
|
|
|
92
92
|
];
|
|
93
93
|
})
|
|
94
94
|
], 16),
|
|
95
|
-
|
|
95
|
+
t(r) && e.enableActions && s.value ? (o(), i(a(e.ConversationActions), l({
|
|
96
96
|
key: 0,
|
|
97
97
|
conversation: e.conversation
|
|
98
98
|
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : K("", !0)
|
|
99
99
|
]);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
103
|
-
conversationPreview:
|
|
102
|
+
}), oe = "_conversationPreview_29xqv_12", te = "_conversationPreview__avatar_29xqv_34", ie = "_conversationPreview__content_29xqv_38", ae = "_conversationPreview__header_29xqv_42", se = "_conversationPreview__title_29xqv_48", re = "_conversationPreview__time_29xqv_58", ve = "_conversationPreview__footer_29xqv_65", ce = "_conversationPreview__abstract_29xqv_70", le = "_conversationPreview__external_29xqv_79", ue = "_conversationPreview__unread_29xqv_88", Pe = "_conversationPreview__actions_29xqv_108", me = {
|
|
103
|
+
conversationPreview: oe,
|
|
104
104
|
"conversationPreview--active": "_conversationPreview--active_29xqv_28",
|
|
105
105
|
"conversationPreview--pin": "_conversationPreview--pin_29xqv_31",
|
|
106
|
-
conversationPreview__avatar:
|
|
106
|
+
conversationPreview__avatar: te,
|
|
107
107
|
conversationPreview__content: ie,
|
|
108
108
|
conversationPreview__header: ae,
|
|
109
109
|
conversationPreview__title: se,
|
|
@@ -276,7 +276,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
276
276
|
};
|
|
277
277
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
278
278
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
279
|
-
|
|
279
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
280
280
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConversationPreviewUIProps>, {
|
|
281
281
|
isSelected: boolean;
|
|
282
282
|
enableActions: boolean;
|
|
@@ -550,7 +550,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
550
550
|
};
|
|
551
551
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
552
552
|
}>>> & Readonly<{
|
|
553
|
-
|
|
553
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
554
554
|
}>, {
|
|
555
555
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
556
556
|
isSelected: boolean;
|
|
@@ -433,9 +433,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
433
433
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
434
434
|
};
|
|
435
435
|
}>> & Readonly<{
|
|
436
|
-
|
|
436
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
437
437
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
438
|
-
|
|
438
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
439
439
|
}, import('vue').PublicProps, {
|
|
440
440
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
441
441
|
isSelected: boolean;
|
|
@@ -768,7 +768,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
768
768
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
769
769
|
};
|
|
770
770
|
}>> & Readonly<{
|
|
771
|
-
|
|
771
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
772
772
|
}>, {}, {}, {}, {}, {
|
|
773
773
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
774
774
|
isSelected: boolean;
|
|
@@ -1098,9 +1098,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
1098
1098
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
1099
1099
|
};
|
|
1100
1100
|
}>> & Readonly<{
|
|
1101
|
-
|
|
1101
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
1102
1102
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1103
|
-
|
|
1103
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
1104
1104
|
}, string, {
|
|
1105
1105
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
1106
1106
|
isSelected: boolean;
|
|
@@ -4108,9 +4108,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
4108
4108
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
4109
4109
|
};
|
|
4110
4110
|
}>> & Readonly<{
|
|
4111
|
-
|
|
4111
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
4112
4112
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4113
|
-
|
|
4113
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
4114
4114
|
}, import('vue').PublicProps, {
|
|
4115
4115
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4116
4116
|
isSelected: boolean;
|
|
@@ -4443,7 +4443,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
4443
4443
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
4444
4444
|
};
|
|
4445
4445
|
}>> & Readonly<{
|
|
4446
|
-
|
|
4446
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
4447
4447
|
}>, {}, {}, {}, {}, {
|
|
4448
4448
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4449
4449
|
isSelected: boolean;
|
|
@@ -4773,9 +4773,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
|
|
|
4773
4773
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
4774
4774
|
};
|
|
4775
4775
|
}>> & Readonly<{
|
|
4776
|
-
|
|
4776
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
4777
4777
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4778
|
-
|
|
4778
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
4779
4779
|
}, string, {
|
|
4780
4780
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4781
4781
|
isSelected: boolean;
|
|
@@ -8265,9 +8265,9 @@ declare const ConversationPreview: {
|
|
|
8265
8265
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
8266
8266
|
};
|
|
8267
8267
|
}>> & Readonly<{
|
|
8268
|
-
|
|
8268
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
8269
8269
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8270
|
-
|
|
8270
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
8271
8271
|
}, import('vue').PublicProps, {
|
|
8272
8272
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
8273
8273
|
isSelected: boolean;
|
|
@@ -8600,7 +8600,7 @@ declare const ConversationPreview: {
|
|
|
8600
8600
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
8601
8601
|
};
|
|
8602
8602
|
}>> & Readonly<{
|
|
8603
|
-
|
|
8603
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
8604
8604
|
}>, {}, {}, {}, {}, {
|
|
8605
8605
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
8606
8606
|
isSelected: boolean;
|
|
@@ -8930,9 +8930,9 @@ declare const ConversationPreview: {
|
|
|
8930
8930
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
8931
8931
|
};
|
|
8932
8932
|
}>> & Readonly<{
|
|
8933
|
-
|
|
8933
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
8934
8934
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8935
|
-
|
|
8935
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
8936
8936
|
}, string, {
|
|
8937
8937
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
8938
8938
|
isSelected: boolean;
|
|
@@ -9555,9 +9555,9 @@ declare const ConversationPreview: {
|
|
|
9555
9555
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
9556
9556
|
};
|
|
9557
9557
|
}>> & Readonly<{
|
|
9558
|
-
|
|
9558
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
9559
9559
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9560
|
-
|
|
9560
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
9561
9561
|
}, import('vue').PublicProps, {
|
|
9562
9562
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
9563
9563
|
isSelected: boolean;
|
|
@@ -9890,7 +9890,7 @@ declare const ConversationPreview: {
|
|
|
9890
9890
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
9891
9891
|
};
|
|
9892
9892
|
}>> & Readonly<{
|
|
9893
|
-
|
|
9893
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
9894
9894
|
}>, {}, {}, {}, {}, {
|
|
9895
9895
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
9896
9896
|
isSelected: boolean;
|
|
@@ -10220,9 +10220,9 @@ declare const ConversationPreview: {
|
|
|
10220
10220
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
10221
10221
|
};
|
|
10222
10222
|
}>> & Readonly<{
|
|
10223
|
-
|
|
10223
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
10224
10224
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10225
|
-
|
|
10225
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
10226
10226
|
}, string, {
|
|
10227
10227
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
10228
10228
|
isSelected: boolean;
|
|
@@ -10840,9 +10840,9 @@ declare const ConversationPreview: {
|
|
|
10840
10840
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
10841
10841
|
};
|
|
10842
10842
|
}>> & Readonly<{
|
|
10843
|
-
|
|
10843
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
10844
10844
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10845
|
-
|
|
10845
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
10846
10846
|
}, import('vue').PublicProps, {
|
|
10847
10847
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
10848
10848
|
isSelected: boolean;
|
|
@@ -11175,7 +11175,7 @@ declare const ConversationPreview: {
|
|
|
11175
11175
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
11176
11176
|
};
|
|
11177
11177
|
}>> & Readonly<{
|
|
11178
|
-
|
|
11178
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
11179
11179
|
}>, {}, {}, {}, {}, {
|
|
11180
11180
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
11181
11181
|
isSelected: boolean;
|
|
@@ -11505,9 +11505,9 @@ declare const ConversationPreview: {
|
|
|
11505
11505
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
11506
11506
|
};
|
|
11507
11507
|
}>> & Readonly<{
|
|
11508
|
-
|
|
11508
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
11509
11509
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11510
|
-
|
|
11510
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
11511
11511
|
}, string, {
|
|
11512
11512
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
11513
11513
|
isSelected: boolean;
|
|
@@ -12008,9 +12008,9 @@ declare const ConversationPreviewUI: {
|
|
|
12008
12008
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
12009
12009
|
};
|
|
12010
12010
|
}>> & Readonly<{
|
|
12011
|
-
|
|
12011
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
12012
12012
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12013
|
-
|
|
12013
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
12014
12014
|
}, import('vue').PublicProps, {
|
|
12015
12015
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
12016
12016
|
isSelected: boolean;
|
|
@@ -12343,7 +12343,7 @@ declare const ConversationPreviewUI: {
|
|
|
12343
12343
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
12344
12344
|
};
|
|
12345
12345
|
}>> & Readonly<{
|
|
12346
|
-
|
|
12346
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
12347
12347
|
}>, {}, {}, {}, {}, {
|
|
12348
12348
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
12349
12349
|
isSelected: boolean;
|
|
@@ -12673,9 +12673,9 @@ declare const ConversationPreviewUI: {
|
|
|
12673
12673
|
type: import('vue').PropType<import('../..').ConversationActionsConfig>;
|
|
12674
12674
|
};
|
|
12675
12675
|
}>> & Readonly<{
|
|
12676
|
-
|
|
12676
|
+
onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
|
|
12677
12677
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12678
|
-
|
|
12678
|
+
selectConversation: (conversation: import('../..').ConversationModel) => void;
|
|
12679
12679
|
}, string, {
|
|
12680
12680
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
12681
12681
|
isSelected: boolean;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as g, ref as C, useCssModule as E, onMounted as P,
|
|
2
|
-
import { useUIKit as z, IconEmoji as
|
|
3
|
-
import { c as
|
|
4
|
-
import { P as
|
|
1
|
+
import { defineComponent as g, ref as C, useCssModule as E, onMounted as P, createBlock as h, openBlock as _, unref as e, withCtx as s, createVNode as i, createElementVNode as n, mergeProps as x, renderSlot as M, normalizeClass as a, createElementBlock as u, Fragment as I, renderList as $ } from "vue";
|
|
2
|
+
import { useUIKit as z, IconEmoji as B } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { c as O } from "../../../index-DPczIrgX.js";
|
|
4
|
+
import { P as T, a as y, b as S, c as U } from "../../../PopoverTrigger-L8abAry7.js";
|
|
5
|
+
import { View as w } from "../../../baseComp/View/index.js";
|
|
5
6
|
import { emojiUrlMap as c, emojiBaseUrl as m } from "../../../constants/emoji.js";
|
|
6
|
-
import { transformTextWithEmojiKeyToName as
|
|
7
|
-
import { useMessageInputState as
|
|
8
|
-
import { MessageContentType as
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
7
|
+
import { transformTextWithEmojiKeyToName as N } from "../../../utils/emoji.js";
|
|
8
|
+
import { useMessageInputState as V } from "../../../states/MessageInputState/MessageInputState.js";
|
|
9
|
+
import { MessageContentType as A } from "../../../states/MessageInputState/type.js";
|
|
10
|
+
import { _ as F } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const J = ["onClick"], L = ["src", "alt"], R = /* @__PURE__ */ g({
|
|
11
12
|
name: "EmojiPicker",
|
|
12
13
|
inheritAttrs: !1,
|
|
13
14
|
__name: "EmojiPicker",
|
|
@@ -17,103 +18,106 @@ const A = ["onClick"], F = ["src", "alt"], J = /* @__PURE__ */ g({
|
|
|
17
18
|
disabled: { type: Boolean, default: !1 }
|
|
18
19
|
},
|
|
19
20
|
setup(f) {
|
|
20
|
-
const
|
|
21
|
+
const l = f, d = C(!1), o = E(), { t: k } = z(), { insertContent: j } = V();
|
|
21
22
|
P(() => {
|
|
22
23
|
Object.values(c).forEach((t) => {
|
|
23
|
-
const
|
|
24
|
-
|
|
24
|
+
const p = new Image();
|
|
25
|
+
p.src = m + t;
|
|
25
26
|
});
|
|
26
27
|
});
|
|
27
28
|
const b = (t) => {
|
|
28
|
-
|
|
29
|
+
l.disabled || (d.value = t);
|
|
29
30
|
};
|
|
30
31
|
function v(t) {
|
|
31
32
|
t && j([
|
|
32
33
|
{
|
|
33
|
-
type:
|
|
34
|
+
type: A.EMOJI,
|
|
34
35
|
content: {
|
|
35
36
|
url: m + c[t],
|
|
36
37
|
key: t,
|
|
37
|
-
text:
|
|
38
|
+
text: N(t)
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
]);
|
|
41
42
|
}
|
|
42
|
-
return (t,
|
|
43
|
-
s(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
s(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
e(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
s(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(d(!0), _(M, null, I(Object.keys(e(c)), (l) => (d(), _("div", {
|
|
85
|
-
key: l,
|
|
86
|
-
class: a(e(o)["emoji-picker__list-item"]),
|
|
87
|
-
onClick: (q) => v(l)
|
|
43
|
+
return (t, p) => (_(), h(e(w), null, {
|
|
44
|
+
default: s(() => [
|
|
45
|
+
i(e(T), {
|
|
46
|
+
open: d.value,
|
|
47
|
+
"onUpdate:open": b
|
|
48
|
+
}, {
|
|
49
|
+
default: s(() => [
|
|
50
|
+
i(e(y), {
|
|
51
|
+
as: "div",
|
|
52
|
+
disabled: l.disabled
|
|
53
|
+
}, {
|
|
54
|
+
default: s(() => [
|
|
55
|
+
n("div", x({
|
|
56
|
+
"data-test": "test",
|
|
57
|
+
class: e(O)(
|
|
58
|
+
e(o)["emoji-picker__button"],
|
|
59
|
+
{
|
|
60
|
+
[e(o).disabled]: l.disabled
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}, t.$attrs), [
|
|
64
|
+
M(t.$slots, "default", {}, () => [
|
|
65
|
+
i(e(B), {
|
|
66
|
+
class: a(e(o)["emoji-picker__icon"]),
|
|
67
|
+
size: l.iconSize
|
|
68
|
+
}, null, 8, ["class", "size"])
|
|
69
|
+
])
|
|
70
|
+
], 16)
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 8, ["disabled"]),
|
|
74
|
+
i(e(S), null, {
|
|
75
|
+
default: s(() => [
|
|
76
|
+
i(e(U), {
|
|
77
|
+
side: "top",
|
|
78
|
+
align: "start",
|
|
79
|
+
"side-offset": 5
|
|
80
|
+
}, {
|
|
81
|
+
default: s(() => [
|
|
82
|
+
n("div", null, [
|
|
83
|
+
n("div", {
|
|
84
|
+
class: a(e(o)["emoji-picker__list"])
|
|
88
85
|
}, [
|
|
89
|
-
r("
|
|
86
|
+
(_(!0), u(I, null, $(Object.keys(e(c)), (r) => (_(), u("div", {
|
|
87
|
+
key: r,
|
|
90
88
|
class: a(e(o)["emoji-picker__list-item"]),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
89
|
+
onClick: (G) => v(r)
|
|
90
|
+
}, [
|
|
91
|
+
n("img", {
|
|
92
|
+
class: a(e(o)["emoji-picker__list-item"]),
|
|
93
|
+
src: e(m) + e(c)[r],
|
|
94
|
+
alt: e(k)(`Emoji.${r}`)
|
|
95
|
+
}, null, 10, L)
|
|
96
|
+
], 10, J))), 128))
|
|
97
|
+
], 2)
|
|
98
|
+
])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["open"])
|
|
108
|
+
]),
|
|
109
|
+
_: 3
|
|
110
|
+
}));
|
|
107
111
|
}
|
|
108
|
-
}),
|
|
112
|
+
}), W = "_disabled_kxj4t_16", q = {
|
|
109
113
|
"emoji-picker__button": "_emoji-picker__button_kxj4t_1",
|
|
110
|
-
disabled:
|
|
114
|
+
disabled: W,
|
|
111
115
|
"emoji-picker__icon": "_emoji-picker__icon_kxj4t_22",
|
|
112
116
|
"emoji-picker__list": "_emoji-picker__list_kxj4t_25",
|
|
113
117
|
"emoji-picker__list-item": "_emoji-picker__list-item_kxj4t_36"
|
|
114
|
-
},
|
|
115
|
-
$style:
|
|
116
|
-
},
|
|
118
|
+
}, D = {
|
|
119
|
+
$style: q
|
|
120
|
+
}, ie = /* @__PURE__ */ F(R, [["__cssModules", D]]);
|
|
117
121
|
export {
|
|
118
|
-
|
|
122
|
+
ie as default
|
|
119
123
|
};
|
|
@@ -13,14 +13,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
13
13
|
autoFocus: boolean;
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
hideSendButton: boolean;
|
|
16
|
-
placeholder:
|
|
16
|
+
placeholder: undefined;
|
|
17
17
|
attachmentPickerMode: string;
|
|
18
18
|
actions: () => string[];
|
|
19
19
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MessageInputProps>, {
|
|
20
20
|
autoFocus: boolean;
|
|
21
21
|
disabled: boolean;
|
|
22
22
|
hideSendButton: boolean;
|
|
23
|
-
placeholder:
|
|
23
|
+
placeholder: undefined;
|
|
24
24
|
attachmentPickerMode: string;
|
|
25
25
|
actions: () => string[];
|
|
26
26
|
}>>> & Readonly<{}>, {
|
|
@@ -6,11 +6,12 @@ interface EditorOptions {
|
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
autoFocus?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
isPlaceholderOnlyShowWhenEditable?: boolean;
|
|
9
10
|
onUpdate?: (content: InputContent[]) => void;
|
|
10
11
|
onEnter?: () => void;
|
|
11
12
|
onFocus?: () => void;
|
|
12
13
|
onBlur?: () => void;
|
|
13
14
|
}
|
|
14
|
-
declare function createEditor({ element, placeholder, autoFocus, disabled, onUpdate, onEnter, onFocus, onBlur, }: EditorOptions): Editor;
|
|
15
|
+
declare function createEditor({ element, placeholder, autoFocus, disabled, isPlaceholderOnlyShowWhenEditable, onUpdate, onEnter, onFocus, onBlur, }: EditorOptions): Editor;
|
|
15
16
|
export { createEditor, };
|
|
16
17
|
export type { Editor, };
|