tuikit-atomicx-vue3 3.3.0-beta.3 → 3.3.1
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/AttachmentPicker.module-BesmtGyl.js +11 -0
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +76 -0
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +76 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js → MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js} +23 -18
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
- package/dist/chat/index.d.ts +3747 -2386
- package/dist/chat/index.js +12 -11
- package/dist/components/BarrageInput/BarrageInputH5.js +32 -8
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -5
- package/dist/components/BarrageInput/TextEditor/index.js +14 -6
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +12 -4
- package/dist/components/BarrageList/i18n/en-US/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/en-US/index.js +2 -1
- package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/zh-CN/index.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +3 -3
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +21 -21
- package/dist/components/ChatSetting/i18n/en-US.js +3 -3
- package/dist/components/ChatSetting/i18n/zh-CN.js +3 -3
- package/dist/components/ChatSetting/index.d.ts +1 -4
- package/dist/components/ChatSetting/index.js +3 -6
- package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +17 -17
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +26 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +2 -1
- package/dist/components/ContactList/ContactList.js +19 -10
- package/dist/components/ContactList/ContactList.vue.d.ts +109 -1
- package/dist/components/ContactList/index.d.ts +158 -26
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +8 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +8 -8
- package/dist/components/ConversationList/ConversationList.js +18 -44
- package/dist/components/ConversationList/ConversationList.vue.d.ts +197 -1535
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +8 -11
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +80 -134
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +19 -30
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +0 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +12 -24
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/index.js +17 -21
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -0
- package/dist/components/ConversationList/index.d.ts +468 -2400
- package/dist/components/ConversationList/index.js +1 -1
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +1 -1
- package/dist/components/LiveCoreView/index.js +113 -58
- package/dist/components/LiveCoreView/index.vue.d.ts +9 -0
- package/dist/components/LiveList/LiveList.js +7 -5
- package/dist/components/LiveList/LiveListH5.js +77 -71
- package/dist/components/LiveList/i18n/en-US/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/en-US/index.js +6 -1
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/zh-CN/index.js +6 -1
- package/dist/components/LiveList/pullToRefresh.js +204 -0
- package/dist/components/LiveList/pullToRefresh.vue.d.ts +86 -0
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +6 -5
- package/dist/components/LiveScenePanel/index.js +3 -3
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +0 -4
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/index.js +14 -19
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +18 -9
- package/dist/components/MessageInput/index.d.ts +5 -41
- package/dist/components/MessageInput/index.js +4 -4
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +7 -5
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +2 -1
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +2 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +12 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +3 -3
- package/dist/components/MessageList/MessageForward/MessageForward.js +2 -3
- package/dist/components/MessageList/MessageList.js +14 -7
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
- package/dist/components/MessageList/index.d.ts +143 -5
- package/dist/components/MessageList/index.js +5 -5
- package/dist/components/Search/Search.js +1 -3
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +4 -6
- package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
- package/dist/components/Search/SearchResults/SearchResults.js +20 -22
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +6 -8
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +5 -7
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +19 -21
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +1 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +5 -7
- package/dist/components/StreamMixer/LocalMixer/index.js +11 -5
- package/dist/components/StreamView/manager/mediaManager.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/UserPicker.vue.d.ts +7 -8
- package/dist/components/UserPicker/components/ListMode/ListMode.js +14 -17
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.vue.d.ts +3 -3
- package/dist/components/UserPicker/components/TreeMode/TreeNode.vue.d.ts +4 -4
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +3 -3
- package/dist/components/UserPicker/hooks/useSelection.d.ts +8 -8
- package/dist/components/UserPicker/hooks/useTreeState.d.ts +3 -3
- package/dist/components/UserPicker/index.d.ts +134 -3
- package/dist/components/UserPicker/index.js +3 -2
- package/dist/components/UserPicker/type.d.ts +18 -18
- package/dist/index.js +6 -3
- package/dist/rtc/index.d.ts +9 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +3 -0
- package/dist/states/LoginState.js +1 -0
- package/dist/states/MessageInputState/MessageInputState.js +25 -5
- package/dist/styles/index.css +1294 -3578
- package/dist/types/contact.d.ts +13 -12
- package/dist/types/conversation.d.ts +12 -14
- package/dist/types/engine.d.ts +12 -0
- package/dist/types/engine.js +15 -0
- package/dist/types/index.js +2 -1
- package/dist/utils/json.js +0 -1
- package/package.json +7 -3
- package/src/chat/index.ts +12 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +50 -4
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/Editor.scss +1 -1
- package/src/components/BarrageInput/TextEditor/TextEditor.module.scss +2 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +6 -0
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +10 -0
- package/src/components/BarrageList/i18n/en-US/index.ts +1 -0
- package/src/components/BarrageList/i18n/zh-CN/index.ts +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +5 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -4
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +2 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +3 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +3 -3
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +10 -7
- package/src/components/ChatSetting/i18n/en-US.ts +3 -3
- package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
- package/src/components/ChatSetting/index.ts +3 -3
- package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +17 -9
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +4 -3
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +2 -2
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +3 -2
- package/src/components/ContactList/ContactList.scss +2 -1
- package/src/components/ContactList/ContactList.vue +18 -3
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +3 -3
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +2 -12
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +2 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +2 -1
- package/src/components/ConversationList/ConversationList.scss +0 -5
- package/src/components/ConversationList/ConversationList.vue +15 -41
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
- package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveCoreView/index.vue +145 -79
- package/src/components/LiveList/LiveList.vue +3 -0
- package/src/components/LiveList/LiveListH5.vue +60 -85
- package/src/components/LiveList/i18n/en-US/index.ts +5 -0
- package/src/components/LiveList/i18n/zh-CN/index.ts +5 -0
- package/src/components/LiveList/pullToRefresh.vue +364 -0
- package/src/components/LiveScenePanel/CameraSettingDialog.vue +6 -5
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.module.scss +4 -0
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +12 -17
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +3 -2
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +21 -15
- package/src/components/MessageInput/TextEditor/Editor.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +16 -6
- package/src/components/MessageInput/types.d.ts +3 -4
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +1 -1
- package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +10 -7
- package/src/components/MessageList/Message/LocationMessage/LocationMessage.vue +3 -1
- package/src/components/MessageList/Message/MergerMessage/MergerMessage.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +2 -2
- package/src/components/MessageList/MessageForward/MessageForward.vue +3 -3
- package/src/components/MessageList/MessageList.vue +17 -5
- package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
- package/src/components/MessageList/index.ts +5 -4
- package/src/components/Search/Search.scss +0 -3
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
- package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
- package/src/components/Search/SearchResults/SearchResults.scss +7 -16
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +0 -3
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +5 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +9 -4
- package/src/components/StreamView/manager/mediaManager.ts +1 -1
- package/src/components/UserPicker/UserPicker.vue +6 -9
- package/src/components/UserPicker/components/ListMode/ListMode.vue +3 -7
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +2 -2
- package/src/components/UserPicker/components/TreeMode/TreeMode.vue +3 -3
- package/src/components/UserPicker/components/TreeMode/TreeNode.vue +3 -3
- package/src/components/UserPicker/hooks/useSearchFilter.ts +15 -14
- package/src/components/UserPicker/hooks/useSelection.ts +32 -32
- package/src/components/UserPicker/hooks/useTreeState.ts +4 -4
- package/src/components/UserPicker/index.ts +16 -14
- package/src/components/UserPicker/type.ts +18 -18
- package/src/types/contact.ts +13 -12
- package/src/types/conversation.ts +12 -14
- package/src/types/engine.ts +15 -0
- package/src/utils/json.ts +0 -4
- package/dist/AttachmentPicker.module-0_DWsAtr.js +0 -11
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js +0 -72
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js +0 -72
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js +0 -72
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +0 -15
- package/dist/states/UIOpenControlState/UIOpenControlState.js +0 -28
- package/dist/states/UIOpenControlState/index.d.ts +0 -1
- package/dist/states/UIOpenControlState/index.js +0 -4
|
@@ -49,28 +49,36 @@ declare const ContactInfo: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
49
49
|
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
50
50
|
};
|
|
51
51
|
PlaceholderEmpty: {
|
|
52
|
-
type: import('vue').PropType<
|
|
52
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
53
|
+
default: undefined;
|
|
53
54
|
};
|
|
54
55
|
FriendInfoComponent: {
|
|
55
|
-
type: import('vue').PropType<
|
|
56
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
57
|
+
default: undefined;
|
|
56
58
|
};
|
|
57
59
|
GroupInfoComponent: {
|
|
58
|
-
type: import('vue').PropType<
|
|
60
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
61
|
+
default: undefined;
|
|
59
62
|
};
|
|
60
63
|
BlacklistInfoComponent: {
|
|
61
|
-
type: import('vue').PropType<
|
|
64
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
65
|
+
default: undefined;
|
|
62
66
|
};
|
|
63
67
|
FriendApplicationInfoComponent: {
|
|
64
|
-
type: import('vue').PropType<
|
|
68
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
69
|
+
default: undefined;
|
|
65
70
|
};
|
|
66
71
|
GroupApplicationInfoComponent: {
|
|
67
|
-
type: import('vue').PropType<
|
|
72
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
73
|
+
default: undefined;
|
|
68
74
|
};
|
|
69
75
|
SearchGroupInfoComponent: {
|
|
70
|
-
type: import('vue').PropType<
|
|
76
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
77
|
+
default: undefined;
|
|
71
78
|
};
|
|
72
79
|
SearchUserInfoComponent: {
|
|
73
|
-
type: import('vue').PropType<
|
|
80
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
81
|
+
default: undefined;
|
|
74
82
|
};
|
|
75
83
|
onSendMessage: {
|
|
76
84
|
type: import('vue').PropType<(friend: import('../..').Friend) => void>;
|
|
@@ -122,7 +130,7 @@ declare const ContactInfo: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
122
130
|
joinGroup: (data: import('@tencentcloud/chat-uikit-engine').IGroupModel, note: string) => void;
|
|
123
131
|
dismissGroup: (data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => void;
|
|
124
132
|
friendApplicationAction: (action: "accept" | "refuse", application: import('../..').FriendApplication) => void;
|
|
125
|
-
updateFriendRemark: (data: import('../..').Friend) => void;
|
|
133
|
+
updateFriendRemark: (data: import('../..').Friend, remark: string) => void;
|
|
126
134
|
groupApplicationAction: (action: "accept" | "refuse", application: import('../..').GroupApplication) => void;
|
|
127
135
|
enterGroup: (data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => void;
|
|
128
136
|
leaveGroup: (data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => void;
|
|
@@ -134,28 +142,36 @@ declare const ContactInfo: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
134
142
|
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
135
143
|
};
|
|
136
144
|
PlaceholderEmpty: {
|
|
137
|
-
type: import('vue').PropType<
|
|
145
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
146
|
+
default: undefined;
|
|
138
147
|
};
|
|
139
148
|
FriendInfoComponent: {
|
|
140
|
-
type: import('vue').PropType<
|
|
149
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
150
|
+
default: undefined;
|
|
141
151
|
};
|
|
142
152
|
GroupInfoComponent: {
|
|
143
|
-
type: import('vue').PropType<
|
|
153
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
154
|
+
default: undefined;
|
|
144
155
|
};
|
|
145
156
|
BlacklistInfoComponent: {
|
|
146
|
-
type: import('vue').PropType<
|
|
157
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
158
|
+
default: undefined;
|
|
147
159
|
};
|
|
148
160
|
FriendApplicationInfoComponent: {
|
|
149
|
-
type: import('vue').PropType<
|
|
161
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
162
|
+
default: undefined;
|
|
150
163
|
};
|
|
151
164
|
GroupApplicationInfoComponent: {
|
|
152
|
-
type: import('vue').PropType<
|
|
165
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
166
|
+
default: undefined;
|
|
153
167
|
};
|
|
154
168
|
SearchGroupInfoComponent: {
|
|
155
|
-
type: import('vue').PropType<
|
|
169
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
170
|
+
default: undefined;
|
|
156
171
|
};
|
|
157
172
|
SearchUserInfoComponent: {
|
|
158
|
-
type: import('vue').PropType<
|
|
173
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
174
|
+
default: undefined;
|
|
159
175
|
};
|
|
160
176
|
onSendMessage: {
|
|
161
177
|
type: import('vue').PropType<(friend: import('../..').Friend) => void>;
|
|
@@ -207,11 +223,19 @@ declare const ContactInfo: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
207
223
|
onJoinGroup?: ((data: import('@tencentcloud/chat-uikit-engine').IGroupModel, note: string) => any) | undefined;
|
|
208
224
|
onDismissGroup?: ((data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => any) | undefined;
|
|
209
225
|
onFriendApplicationAction?: ((action: "accept" | "refuse", application: import('../..').FriendApplication) => any) | undefined;
|
|
210
|
-
onUpdateFriendRemark?: ((data: import('../..').Friend) => any) | undefined;
|
|
226
|
+
onUpdateFriendRemark?: ((data: import('../..').Friend, remark: string) => any) | undefined;
|
|
211
227
|
onGroupApplicationAction?: ((action: "accept" | "refuse", application: import('../..').GroupApplication) => any) | undefined;
|
|
212
228
|
onEnterGroup?: ((data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => any) | undefined;
|
|
213
229
|
onLeaveGroup?: ((data: import('@tencentcloud/chat-uikit-engine').IGroupModel) => any) | undefined;
|
|
214
230
|
}>, {
|
|
231
|
+
PlaceholderEmpty: import('vue').Component;
|
|
232
|
+
FriendInfoComponent: import('vue').Component;
|
|
233
|
+
GroupInfoComponent: import('vue').Component;
|
|
234
|
+
BlacklistInfoComponent: import('vue').Component;
|
|
235
|
+
FriendApplicationInfoComponent: import('vue').Component;
|
|
236
|
+
GroupApplicationInfoComponent: import('vue').Component;
|
|
237
|
+
SearchGroupInfoComponent: import('vue').Component;
|
|
238
|
+
SearchUserInfoComponent: import('vue').Component;
|
|
215
239
|
showActions: boolean;
|
|
216
240
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
217
241
|
declare const ContactList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -240,16 +264,68 @@ declare const ContactList: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
240
264
|
default: undefined;
|
|
241
265
|
};
|
|
242
266
|
ContactItem: {
|
|
243
|
-
type: import('vue').PropType<
|
|
267
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
268
|
+
default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
269
|
+
onClick: {
|
|
270
|
+
type: import('vue').PropType<(type: import('../..').ContactItemType, item: import('../..').ContactItem) => void>;
|
|
271
|
+
};
|
|
272
|
+
contactItem: {
|
|
273
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
274
|
+
required: true;
|
|
275
|
+
};
|
|
276
|
+
onFriendApplicationAction: {
|
|
277
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').FriendApplication) => void>;
|
|
278
|
+
};
|
|
279
|
+
onGroupApplicationAction: {
|
|
280
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').GroupApplication) => void>;
|
|
281
|
+
};
|
|
282
|
+
activeContactItem: {
|
|
283
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
284
|
+
};
|
|
285
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
286
|
+
click: (type: import('../..').ContactItemType, item: any) => void;
|
|
287
|
+
"friend-application-action": (action: "accept" | "refuse", application: import('../..').FriendApplication) => void;
|
|
288
|
+
"group-application-action": (action: "accept" | "refuse", application: import('../..').GroupApplication) => void;
|
|
289
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
290
|
+
onClick: {
|
|
291
|
+
type: import('vue').PropType<(type: import('../..').ContactItemType, item: import('../..').ContactItem) => void>;
|
|
292
|
+
};
|
|
293
|
+
contactItem: {
|
|
294
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
295
|
+
required: true;
|
|
296
|
+
};
|
|
297
|
+
onFriendApplicationAction: {
|
|
298
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').FriendApplication) => void>;
|
|
299
|
+
};
|
|
300
|
+
onGroupApplicationAction: {
|
|
301
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').GroupApplication) => void>;
|
|
302
|
+
};
|
|
303
|
+
activeContactItem: {
|
|
304
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
305
|
+
};
|
|
306
|
+
}>> & Readonly<{
|
|
307
|
+
onClick?: ((type: import('../..').ContactItemType, item: any) => any) | undefined;
|
|
308
|
+
"onFriend-application-action"?: ((action: "accept" | "refuse", application: import('../..').FriendApplication) => any) | undefined;
|
|
309
|
+
"onGroup-application-action"?: ((action: "accept" | "refuse", application: import('../..').GroupApplication) => any) | undefined;
|
|
310
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
244
311
|
};
|
|
245
312
|
ContactSearchComponent: {
|
|
246
|
-
type: import('vue').PropType<
|
|
313
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
314
|
+
default: () => import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
315
|
+
"result-click": (item: any) => void;
|
|
316
|
+
"keyword-change": (keyword: string) => void;
|
|
317
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
318
|
+
"onResult-click"?: ((item: any) => any) | undefined;
|
|
319
|
+
"onKeyword-change"?: ((keyword: string) => any) | undefined;
|
|
320
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
247
321
|
};
|
|
248
322
|
GroupHeader: {
|
|
249
|
-
type: import('vue').PropType<
|
|
323
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
324
|
+
default: undefined;
|
|
250
325
|
};
|
|
251
326
|
PlaceholderEmptyList: {
|
|
252
|
-
type: import('vue').PropType<
|
|
327
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
328
|
+
default: () => undefined;
|
|
253
329
|
};
|
|
254
330
|
onContactItemClick: {
|
|
255
331
|
type: import('vue').PropType<(item: import('../..').ContactGroupItem) => void>;
|
|
@@ -284,16 +360,68 @@ declare const ContactList: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
284
360
|
default: undefined;
|
|
285
361
|
};
|
|
286
362
|
ContactItem: {
|
|
287
|
-
type: import('vue').PropType<
|
|
363
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
364
|
+
default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
365
|
+
onClick: {
|
|
366
|
+
type: import('vue').PropType<(type: import('../..').ContactItemType, item: import('../..').ContactItem) => void>;
|
|
367
|
+
};
|
|
368
|
+
contactItem: {
|
|
369
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
370
|
+
required: true;
|
|
371
|
+
};
|
|
372
|
+
onFriendApplicationAction: {
|
|
373
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').FriendApplication) => void>;
|
|
374
|
+
};
|
|
375
|
+
onGroupApplicationAction: {
|
|
376
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').GroupApplication) => void>;
|
|
377
|
+
};
|
|
378
|
+
activeContactItem: {
|
|
379
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
380
|
+
};
|
|
381
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
382
|
+
click: (type: import('../..').ContactItemType, item: any) => void;
|
|
383
|
+
"friend-application-action": (action: "accept" | "refuse", application: import('../..').FriendApplication) => void;
|
|
384
|
+
"group-application-action": (action: "accept" | "refuse", application: import('../..').GroupApplication) => void;
|
|
385
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
386
|
+
onClick: {
|
|
387
|
+
type: import('vue').PropType<(type: import('../..').ContactItemType, item: import('../..').ContactItem) => void>;
|
|
388
|
+
};
|
|
389
|
+
contactItem: {
|
|
390
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
391
|
+
required: true;
|
|
392
|
+
};
|
|
393
|
+
onFriendApplicationAction: {
|
|
394
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').FriendApplication) => void>;
|
|
395
|
+
};
|
|
396
|
+
onGroupApplicationAction: {
|
|
397
|
+
type: import('vue').PropType<(action: "accept" | "refuse", application: import('../..').GroupApplication) => void>;
|
|
398
|
+
};
|
|
399
|
+
activeContactItem: {
|
|
400
|
+
type: import('vue').PropType<import('../..').ContactGroupItem>;
|
|
401
|
+
};
|
|
402
|
+
}>> & Readonly<{
|
|
403
|
+
onClick?: ((type: import('../..').ContactItemType, item: any) => any) | undefined;
|
|
404
|
+
"onFriend-application-action"?: ((action: "accept" | "refuse", application: import('../..').FriendApplication) => any) | undefined;
|
|
405
|
+
"onGroup-application-action"?: ((action: "accept" | "refuse", application: import('../..').GroupApplication) => any) | undefined;
|
|
406
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
288
407
|
};
|
|
289
408
|
ContactSearchComponent: {
|
|
290
|
-
type: import('vue').PropType<
|
|
409
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
410
|
+
default: () => import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
411
|
+
"result-click": (item: any) => void;
|
|
412
|
+
"keyword-change": (keyword: string) => void;
|
|
413
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
414
|
+
"onResult-click"?: ((item: any) => any) | undefined;
|
|
415
|
+
"onKeyword-change"?: ((keyword: string) => any) | undefined;
|
|
416
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
291
417
|
};
|
|
292
418
|
GroupHeader: {
|
|
293
|
-
type: import('vue').PropType<
|
|
419
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
420
|
+
default: undefined;
|
|
294
421
|
};
|
|
295
422
|
PlaceholderEmptyList: {
|
|
296
|
-
type: import('vue').PropType<
|
|
423
|
+
type: import('vue').PropType<import('vue').Component>;
|
|
424
|
+
default: () => undefined;
|
|
297
425
|
};
|
|
298
426
|
onContactItemClick: {
|
|
299
427
|
type: import('vue').PropType<(item: import('../..').ContactGroupItem) => void>;
|
|
@@ -306,5 +434,9 @@ declare const ContactList: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
306
434
|
enableSearch: boolean;
|
|
307
435
|
searchPlaceholder: string;
|
|
308
436
|
emptyText: string;
|
|
437
|
+
ContactItem: import('vue').Component;
|
|
438
|
+
ContactSearchComponent: import('vue').Component;
|
|
439
|
+
GroupHeader: import('vue').Component;
|
|
440
|
+
PlaceholderEmptyList: import('vue').Component;
|
|
309
441
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
310
442
|
export { ContactList, ContactListItem, ContactInfo, };
|
|
@@ -158,10 +158,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
]),
|
|
159
159
|
default: withCtx(() => [
|
|
160
160
|
createElementVNode("div", {
|
|
161
|
-
class: normalizeClass(_ctx.$style
|
|
161
|
+
class: normalizeClass(_ctx.$style["conversationActions__popup-icon"]),
|
|
162
162
|
onClick: toggleClick
|
|
163
163
|
}, [
|
|
164
|
-
createVNode(unref(IconEllipsis))
|
|
164
|
+
createVNode(unref(IconEllipsis), { size: "18px" })
|
|
165
165
|
], 2)
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
@@ -170,18 +170,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
const conversationActions = "
|
|
174
|
-
const conversationActions__h5 = "
|
|
175
|
-
const conversationActions__h5__container = "
|
|
176
|
-
const conversationActions__item = "
|
|
173
|
+
const conversationActions = "_conversationActions_qrz2h_1";
|
|
174
|
+
const conversationActions__h5 = "_conversationActions__h5_qrz2h_10";
|
|
175
|
+
const conversationActions__h5__container = "_conversationActions__h5__container_qrz2h_22";
|
|
176
|
+
const conversationActions__item = "_conversationActions__item_qrz2h_27";
|
|
177
177
|
const style0 = {
|
|
178
178
|
conversationActions,
|
|
179
|
-
"conversationActions__popup-icon": "_conversationActions__popup-
|
|
180
|
-
"more-icon": "_more-icon_1whlo_13",
|
|
179
|
+
"conversationActions__popup-icon": "_conversationActions__popup-icon_qrz2h_5",
|
|
181
180
|
conversationActions__h5,
|
|
182
181
|
conversationActions__h5__container,
|
|
183
182
|
conversationActions__item,
|
|
184
|
-
"conversationActions__item--delete": "_conversationActions__item--
|
|
183
|
+
"conversationActions__item--delete": "_conversationActions__item--delete_qrz2h_52"
|
|
185
184
|
};
|
|
186
185
|
const cssModules = {
|
|
187
186
|
"$style": style0
|
|
@@ -180,6 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
180
|
}, [
|
|
181
181
|
createVNode(ConversationCreateButton, { onClick: openCreateConversation }),
|
|
182
182
|
createVNode(unref(TUIDialog), {
|
|
183
|
+
appendTo: "body",
|
|
183
184
|
visible: showCreateConversation.value,
|
|
184
185
|
title: dialogTitles.value,
|
|
185
186
|
"confirm-text": dialogConfirmText.value,
|
|
@@ -211,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
212
|
};
|
|
212
213
|
}
|
|
213
214
|
});
|
|
214
|
-
const ConversationCreateComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
215
|
+
const ConversationCreateComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87d3c1d2"]]);
|
|
215
216
|
export {
|
|
216
217
|
ConversationCreateComponent as default
|
|
217
218
|
};
|
|
@@ -120,16 +120,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
const conversationCreateGroupDetail = "
|
|
124
|
-
const conversationCreateGroupDetail__nextContainer = "
|
|
125
|
-
const conversationCreateGroupDetail__next = "
|
|
126
|
-
const conversationCreateGroupDetail__main = "
|
|
127
|
-
const conversationCreateGroupDetail__box = "
|
|
128
|
-
const conversationCreateGroupDetail__inputText = "
|
|
129
|
-
const from__label = "
|
|
123
|
+
const conversationCreateGroupDetail = "_conversationCreateGroupDetail_2btfa_1";
|
|
124
|
+
const conversationCreateGroupDetail__nextContainer = "_conversationCreateGroupDetail__nextContainer_2btfa_9";
|
|
125
|
+
const conversationCreateGroupDetail__next = "_conversationCreateGroupDetail__next_2btfa_9";
|
|
126
|
+
const conversationCreateGroupDetail__main = "_conversationCreateGroupDetail__main_2btfa_23";
|
|
127
|
+
const conversationCreateGroupDetail__box = "_conversationCreateGroupDetail__box_2btfa_40";
|
|
128
|
+
const conversationCreateGroupDetail__inputText = "_conversationCreateGroupDetail__inputText_2btfa_48";
|
|
129
|
+
const from__label = "_from__label_2btfa_54";
|
|
130
130
|
const style0 = {
|
|
131
131
|
conversationCreateGroupDetail,
|
|
132
|
-
"conversationCreateGroupDetail--h5": "_conversationCreateGroupDetail--
|
|
132
|
+
"conversationCreateGroupDetail--h5": "_conversationCreateGroupDetail--h5_2btfa_6",
|
|
133
133
|
conversationCreateGroupDetail__nextContainer,
|
|
134
134
|
conversationCreateGroupDetail__next,
|
|
135
135
|
conversationCreateGroupDetail__main,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
2
|
import { isH5 } from "../../../../utils/env.js";
|
|
3
|
-
import "../../../UserPicker/index.js";
|
|
3
|
+
import { UserPicker } from "../../../UserPicker/index.js";
|
|
4
4
|
import { useContactListState } from "../../../../states/ContactListState/ContactListState.js";
|
|
5
|
-
import UserPicker from "../../../UserPicker/UserPicker.js";
|
|
6
5
|
import { _ as _export_sfc } from "../../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
__name: "ConversationCreateUserSelectList",
|
|
@@ -65,17 +65,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
const conversationGroupTypeInfo = "
|
|
69
|
-
const conversationGroupTypeInfo__box = "
|
|
70
|
-
const conversationGroupTypeInfo__header = "
|
|
71
|
-
const conversationGroupTypeInfo__title = "
|
|
72
|
-
const conversationGroupTypeInfo__description = "
|
|
73
|
-
const conversationGroupTypeInfo__document = "
|
|
74
|
-
const conversationGroupTypeInfo__activeIcon = "
|
|
68
|
+
const conversationGroupTypeInfo = "_conversationGroupTypeInfo_5gwpz_1";
|
|
69
|
+
const conversationGroupTypeInfo__box = "_conversationGroupTypeInfo__box_5gwpz_19";
|
|
70
|
+
const conversationGroupTypeInfo__header = "_conversationGroupTypeInfo__header_5gwpz_35";
|
|
71
|
+
const conversationGroupTypeInfo__title = "_conversationGroupTypeInfo__title_5gwpz_40";
|
|
72
|
+
const conversationGroupTypeInfo__description = "_conversationGroupTypeInfo__description_5gwpz_46";
|
|
73
|
+
const conversationGroupTypeInfo__document = "_conversationGroupTypeInfo__document_5gwpz_52";
|
|
74
|
+
const conversationGroupTypeInfo__activeIcon = "_conversationGroupTypeInfo__activeIcon_5gwpz_60";
|
|
75
75
|
const style0 = {
|
|
76
76
|
conversationGroupTypeInfo,
|
|
77
77
|
conversationGroupTypeInfo__box,
|
|
78
|
-
"conversationGroupTypeInfo__box--active": "_conversationGroupTypeInfo__box--
|
|
78
|
+
"conversationGroupTypeInfo__box--active": "_conversationGroupTypeInfo__box--active_5gwpz_32",
|
|
79
79
|
conversationGroupTypeInfo__header,
|
|
80
80
|
conversationGroupTypeInfo__title,
|
|
81
81
|
conversationGroupTypeInfo__description,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, Fragment, renderList } from "vue";
|
|
2
2
|
import Avatar from "../Avatar/Avatar.js";
|
|
3
|
-
import ConversationPlaceHolder from "./ConversationPlaceHolder/ConversationPlaceHolder.js";
|
|
4
3
|
import { useConversation } from "./hooks/useConversation.js";
|
|
5
4
|
import ConversationActionsComponent from "./ConversationActions/ConversationActions.js";
|
|
6
5
|
import ConversationSearchComponent from "./ConversationSearch/ConversationSearch.js";
|
|
@@ -9,7 +8,6 @@ import ConversationPreviewUIComponent from "./ConversationPreview/ConversationPr
|
|
|
9
8
|
import ConversationListContentComponent from "./ConversationListContent/ConversationListContent.js";
|
|
10
9
|
import ConversationListHeaderComponent from "./ConversationListHeader/ConversationListHeader.js";
|
|
11
10
|
import { ConversationPreview as _sfc_main$1 } from "./ConversationPreview/index.js";
|
|
12
|
-
import { PlaceHolderTypes } from "../../types/conversation.js";
|
|
13
11
|
import { useConversationListState } from "../../states/ConversationListState/ConversationListState.js";
|
|
14
12
|
import { isH5 } from "../../utils/env.js";
|
|
15
13
|
import { _ as _export_sfc } from "../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
@@ -27,18 +25,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
25
|
ConversationCreate: { type: [Object, Function], default: () => ConversationCreateComponent },
|
|
28
26
|
ConversationSearch: { default: () => ConversationSearchComponent },
|
|
29
27
|
ConversationActions: { type: [Object, Function], default: () => ConversationActionsComponent },
|
|
30
|
-
PlaceholderEmptyList: { default:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}) },
|
|
34
|
-
PlaceholderLoading: { default: () => ({
|
|
35
|
-
component: ConversationPlaceHolder,
|
|
36
|
-
props: { type: PlaceHolderTypes.LOADING }
|
|
37
|
-
}) },
|
|
38
|
-
PlaceholderLoadError: { default: () => ({
|
|
39
|
-
component: ConversationPlaceHolder,
|
|
40
|
-
props: { type: PlaceHolderTypes.WRONG }
|
|
41
|
-
}) },
|
|
28
|
+
PlaceholderEmptyList: { default: void 0 },
|
|
29
|
+
PlaceholderLoading: { default: void 0 },
|
|
30
|
+
PlaceholderLoadError: { default: void 0 },
|
|
42
31
|
Avatar: { type: [Object, Function], default: () => Avatar },
|
|
43
32
|
filter: {},
|
|
44
33
|
sort: {},
|
|
@@ -53,8 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
42
|
const props = __props;
|
|
54
43
|
const emit = __emit;
|
|
55
44
|
const {
|
|
56
|
-
filter,
|
|
57
|
-
sort,
|
|
58
45
|
enableActions,
|
|
59
46
|
actionsConfig: propActionsConfig,
|
|
60
47
|
enableCreate: propEnableCreate,
|
|
@@ -70,21 +57,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
57
|
return [];
|
|
71
58
|
}
|
|
72
59
|
let _conversationList = conversationList2.value;
|
|
73
|
-
if (filter && typeof filter === "function") {
|
|
74
|
-
_conversationList = filter(_conversationList);
|
|
60
|
+
if (props.filter && typeof props.filter === "function") {
|
|
61
|
+
_conversationList = props.filter(_conversationList);
|
|
75
62
|
}
|
|
76
|
-
if (sort && typeof sort === "function") {
|
|
77
|
-
_conversationList = sort(_conversationList);
|
|
63
|
+
if (props.sort && typeof props.sort === "function") {
|
|
64
|
+
_conversationList = props.sort(_conversationList);
|
|
78
65
|
}
|
|
79
66
|
return _conversationList;
|
|
80
67
|
});
|
|
81
68
|
const isCreateModelShow = ref(false);
|
|
82
|
-
const actionsConfig = ref({
|
|
83
|
-
enableDelete: true,
|
|
84
|
-
enableMute: true,
|
|
85
|
-
enableMarkUnread: true,
|
|
86
|
-
enablePin: true
|
|
87
|
-
});
|
|
69
|
+
const actionsConfig = ref({});
|
|
88
70
|
const enableCreate = computed(() => propEnableCreate);
|
|
89
71
|
const enableSearch = computed(() => propEnableSearch);
|
|
90
72
|
setEnableCreate(enableCreate.value);
|
|
@@ -93,12 +75,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
75
|
() => [propActionsConfig, conversationActionList.value],
|
|
94
76
|
([newActionsConfig, newConversationActionList]) => {
|
|
95
77
|
if (!newActionsConfig && !newConversationActionList) {
|
|
96
|
-
actionsConfig.value = {
|
|
97
|
-
enableDelete: true,
|
|
98
|
-
enableMute: true,
|
|
99
|
-
enableMarkUnread: true,
|
|
100
|
-
enablePin: true
|
|
101
|
-
};
|
|
102
78
|
return;
|
|
103
79
|
}
|
|
104
80
|
if (newActionsConfig) {
|
|
@@ -165,9 +141,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
141
|
empty: renderConversationList.value.length === 0,
|
|
166
142
|
loading: !unref(conversationList2),
|
|
167
143
|
error: false,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
144
|
+
PlaceholderEmptyList: _ctx.PlaceholderEmptyList,
|
|
145
|
+
PlaceholderLoading: _ctx.PlaceholderLoading,
|
|
146
|
+
PlaceholderLoadError: _ctx.PlaceholderLoadError
|
|
171
147
|
}, {
|
|
172
148
|
default: withCtx(() => [
|
|
173
149
|
(openBlock(true), createElementBlock(Fragment, null, renderList(renderConversationList.value, (conversation) => {
|
|
@@ -175,25 +151,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
151
|
key: conversation.conversationID,
|
|
176
152
|
conversation,
|
|
177
153
|
"enable-actions": unref(enableActions),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
154
|
+
Avatar: _ctx.Avatar,
|
|
155
|
+
Preview: _ctx.Preview,
|
|
156
|
+
ConversationActions: _ctx.ConversationActions,
|
|
181
157
|
"actions-config": actionsConfig.value,
|
|
182
158
|
onSelect: handleSelectConversation
|
|
183
|
-
}, null, 8, ["conversation", "enable-actions", "
|
|
159
|
+
}, null, 8, ["conversation", "enable-actions", "Avatar", "Preview", "ConversationActions", "actions-config"]);
|
|
184
160
|
}), 128))
|
|
185
161
|
]),
|
|
186
162
|
_: 1
|
|
187
|
-
}, 8, ["empty", "loading", "
|
|
163
|
+
}, 8, ["empty", "loading", "PlaceholderEmptyList", "PlaceholderLoading", "PlaceholderLoadError"]))
|
|
188
164
|
], 6);
|
|
189
165
|
};
|
|
190
166
|
}
|
|
191
167
|
});
|
|
192
|
-
const conversationList = "
|
|
193
|
-
const conversationList__content = "_conversationList__content_y4ydr_15";
|
|
168
|
+
const conversationList = "_conversationList_chbuy_1";
|
|
194
169
|
const style0 = {
|
|
195
|
-
conversationList
|
|
196
|
-
conversationList__content
|
|
170
|
+
conversationList
|
|
197
171
|
};
|
|
198
172
|
const cssModules = {
|
|
199
173
|
"$style": style0
|