tuikit-atomicx-vue3 0.1.1 → 3.3.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/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-wUJPjWbx.js +128 -0
- package/dist/{PopoverTrigger-ByOI-vdB.js → PopoverTrigger-BKOIHfdS.js} +1 -1
- package/dist/{PopperContent-BaiCn-CA.js → PopperContent-DtL7HVWz.js} +29 -21
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
- package/dist/baseComp/TuiSwitch.js +2 -2
- package/dist/baseComp/index.d.ts +0 -1
- package/dist/baseComp/index.js +1 -3
- package/dist/chat/index.d.ts +5677 -6176
- package/dist/chat/index.js +24 -15
- package/dist/components/Avatar/Avatar.js +35 -10
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/BarrageInput/BarrageInput.vue.d.ts +2 -2
- package/dist/components/BarrageInput/BarrageInputH5.js +60 -16
- package/dist/components/BarrageInput/BarrageInputH5.vue.d.ts +2 -2
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -6
- package/dist/components/BarrageInput/TextEditor/index.js +27 -11
- package/dist/components/BarrageInput/constants.d.ts +3 -0
- package/dist/components/BarrageInput/constants.js +6 -0
- package/dist/components/BarrageInput/i18n/en-US/index.d.ts +2 -0
- package/dist/components/BarrageInput/i18n/en-US/index.js +3 -1
- package/dist/components/BarrageInput/i18n/zh-CN/index.d.ts +2 -0
- package/dist/components/BarrageInput/i18n/zh-CN/index.js +3 -1
- package/dist/components/BarrageInput/index.d.ts +18 -18
- package/dist/components/BarrageList/BarrageList.js +5 -6
- package/dist/components/BarrageList/BarrageListH5.js +5 -6
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +5 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +7 -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/ChatSetting.js +8 -11
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +5 -5
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +116 -89
- package/dist/components/ChatSetting/i18n/en-US.js +3 -3
- package/dist/components/ChatSetting/i18n/index.d.ts +191 -1
- package/dist/components/ChatSetting/i18n/index.js +3 -4
- 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 +7 -6
- package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +78 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue.d.ts +33 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +257 -0
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +80 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +96 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +228 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue.d.ts +39 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +101 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +155 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +141 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue.d.ts +32 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +122 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue.d.ts +33 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/index.d.ts +8 -0
- package/dist/components/ContactList/ContactInfo/index.js +18 -0
- package/dist/components/ContactList/ContactList.js +290 -0
- package/dist/components/ContactList/ContactList.vue.d.ts +149 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +52 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/ContactListItem.js +4 -0
- package/dist/components/ContactList/ContactListItem/ContactListItem.vue.d.ts +30 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +76 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue.d.ts +27 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +53 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +79 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue.d.ts +27 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +52 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/index.d.ts +6 -0
- package/dist/components/ContactList/ContactListItem/index.js +95 -0
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +85 -0
- package/dist/components/ContactList/ContactSearch/ContactSearch.vue.d.ts +8 -0
- package/dist/components/ContactList/ContactSearch/index.d.ts +1 -0
- package/dist/components/ContactList/ContactSearch/index.js +4 -0
- package/dist/components/ContactList/constants/const.d.ts +3 -0
- package/dist/components/ContactList/constants/const.js +6 -0
- package/dist/components/ContactList/hooks/index.d.ts +1 -0
- package/dist/components/ContactList/hooks/index.js +4 -0
- package/dist/components/ContactList/hooks/useContactList.d.ts +9 -0
- package/dist/components/ContactList/hooks/useContactList.js +18 -0
- package/dist/components/ContactList/i18n/en-US.d.ts +77 -0
- package/dist/components/ContactList/i18n/en-US.js +80 -0
- package/dist/components/ContactList/i18n/index.d.ts +4 -0
- package/dist/components/ContactList/i18n/index.js +6 -0
- package/dist/components/ContactList/i18n/zh-CN.d.ts +77 -0
- package/dist/components/ContactList/i18n/zh-CN.js +80 -0
- package/dist/components/ContactList/index.d.ts +442 -0
- package/dist/components/ContactList/index.js +16 -0
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +30 -46
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +1 -10
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +161 -100
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.vue.d.ts +0 -3
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +79 -17
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue.d.ts +6 -12
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +78 -158
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue.d.ts +5 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +37 -207
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue.d.ts +3 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +35 -23
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue.d.ts +2 -11
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.d.ts +2 -7
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +6 -14
- package/dist/components/ConversationList/ConversationCreate/index.d.ts +0 -2
- package/dist/components/ConversationList/ConversationCreate/index.js +5 -9
- package/dist/components/ConversationList/ConversationList.js +61 -75
- package/dist/components/ConversationList/ConversationList.vue.d.ts +844 -3038
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +12 -15
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +654 -1516
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +15 -15
- 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 +27 -44
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +154 -368
- 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 +20 -24
- package/dist/components/ConversationList/ConversationPreview/utils.js +8 -8
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +6 -5
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +8 -8
- package/dist/components/ConversationList/hooks/useConversation.d.ts +6 -0
- package/dist/components/ConversationList/hooks/useConversation.js +20 -0
- package/dist/components/ConversationList/hooks/useConversationCreate.d.ts +5 -0
- package/dist/components/ConversationList/hooks/useConversationCreate.js +24 -0
- package/dist/components/ConversationList/i18n/en-US.d.ts +16 -0
- package/dist/components/ConversationList/i18n/en-US.js +25 -7
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +16 -0
- package/dist/components/ConversationList/i18n/zh-CN.js +24 -6
- package/dist/components/ConversationList/index.d.ts +2231 -6662
- package/dist/components/ConversationList/index.js +1 -1
- package/dist/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.js +1 -1
- package/dist/components/LiveCoreView/index.d.ts +4 -0
- package/dist/components/{LiveStreamView → LiveCoreView}/index.js +154 -105
- package/dist/components/{LiveStreamView → LiveCoreView}/index.vue.d.ts +9 -0
- package/dist/components/LiveList/LiveList.js +73 -45
- package/dist/components/LiveList/LiveListH5.js +80 -75
- 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 +7 -7
- package/dist/components/LiveScenePanel/icons/AddIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraMirror.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +2 -2
- package/dist/components/LiveScenePanel/icons/ImageIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/MoreIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/ScreenIcon.js +2 -2
- 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 +15 -20
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +4 -4
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +2 -2
- package/dist/components/MessageInput/SendButton/index.js +1 -1
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +24 -14
- package/dist/components/MessageInput/i18n/index.d.ts +24 -1
- package/dist/components/MessageInput/i18n/index.js +7 -8
- package/dist/components/MessageInput/index.d.ts +373 -6
- package/dist/components/MessageInput/index.js +23 -125
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +3 -3
- 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/ImageMessage/ImageMessage.js +2 -2
- 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 +14 -6
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +8 -8
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +34 -30
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -10
- package/dist/components/MessageList/MessageForward/MessageForward.js +4 -5
- package/dist/components/MessageList/MessageList.js +76 -63
- package/dist/components/MessageList/MessageList.vue.d.ts +4 -4
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +32 -0
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.vue.d.ts +6 -0
- package/dist/components/MessageList/ScrollToBottom/index.d.ts +3 -0
- package/dist/components/MessageList/ScrollToBottom/index.js +4 -0
- package/dist/components/MessageList/i18n/en-US.d.ts +5 -0
- package/dist/components/MessageList/i18n/en-US.js +6 -1
- package/dist/components/MessageList/i18n/index.d.ts +85 -1
- package/dist/components/MessageList/i18n/index.js +7 -8
- package/dist/components/MessageList/i18n/zh-CN.d.ts +5 -0
- package/dist/components/MessageList/i18n/zh-CN.js +6 -1
- package/dist/components/MessageList/index.d.ts +143 -5
- package/dist/components/MessageList/index.js +9 -5
- package/dist/components/Search/Search.js +5 -7
- package/dist/components/Search/Search.vue.d.ts +4 -4
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +15 -9
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +12 -7
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +2 -2
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +10 -5
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +10 -10
- package/dist/components/Search/SearchBar/SearchBar.js +3 -2
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +5 -7
- package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
- package/dist/components/Search/SearchResults/SearchResults.js +80 -69
- 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/Search/SearchResults/SearchResultsItem/utils/highlightText.d.ts +5 -6
- package/dist/components/Search/i18n/en-US/Search.js +9 -9
- package/dist/components/Search/i18n/zh-CN/Search.js +13 -13
- package/dist/components/Search/index.d.ts +6 -6
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +14 -10
- package/dist/components/StreamMixer/LocalMixer/index.js +90 -59
- package/dist/components/StreamMixer/icons/CameraMirror.js +2 -2
- package/dist/components/StreamMixer/icons/Delete.js +2 -2
- package/dist/components/StreamMixer/icons/Down.js +2 -2
- package/dist/components/StreamMixer/icons/Rotation.js +2 -2
- package/dist/components/StreamMixer/icons/Up.js +2 -2
- package/dist/components/StreamMixer/index.js +2 -2
- package/dist/components/StreamView/common/StreamCover/index.js +2 -2
- 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.js +2 -2
- 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/i18n/index.d.ts +15 -1
- package/dist/components/UserPicker/i18n/index.js +3 -4
- package/dist/components/UserPicker/index.d.ts +134 -4
- package/dist/components/UserPicker/index.js +7 -3
- package/dist/components/UserPicker/type.d.ts +18 -18
- package/dist/components/VideoSettingPanel/VideoPreview.js +3 -4
- package/dist/components/VideoSettingPanel/VideoProfile.js +3 -4
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +5 -0
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +8 -3
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +8 -3
- package/dist/components/VideoSettingPanel/index.js +3 -3
- package/dist/hooks/useLongPress.d.ts +4 -4
- package/dist/hooks/useMessageActions.js +5 -5
- package/dist/hooks/useMouseHover.d.ts +7 -5
- package/dist/hooks/useMouseHover.js +3 -1
- package/dist/index.js +17 -8
- package/dist/rtc/index.d.ts +31 -20
- package/dist/rtc/index.js +6 -3
- package/dist/states/BarrageListState/BarrageListState.js +3 -2
- package/dist/states/CoHostState.d.ts +1 -1
- package/dist/states/CoHostState.js +59 -62
- package/dist/states/ContactListState/ContactListState.d.ts +16 -16
- package/dist/states/ContactListState/ContactListState.js +20 -20
- package/dist/states/ConversationListState/ConversationListState.d.ts +13 -12
- package/dist/states/ConversationListState/ConversationListState.js +19 -19
- package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
- package/dist/states/LiveSeatState/seatEventManager.js +3 -5
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +12 -0
- package/dist/states/LiveState/index.d.ts +4 -4
- package/dist/states/LiveState/index.js +4 -2
- package/dist/states/LoginState.js +2 -3
- package/dist/states/MessageInputState/MessageInputState.js +39 -19
- package/dist/states/SearchState.d.ts +2 -2
- package/dist/states/SearchState.js +124 -127
- package/dist/styles/index.css +2814 -4214
- package/dist/types/contact.d.ts +146 -9
- package/dist/types/conversation.d.ts +48 -42
- package/dist/types/conversation.js +22 -0
- package/dist/types/engine.d.ts +12 -0
- package/dist/types/engine.js +15 -0
- package/dist/types/index.js +7 -4
- package/dist/types/live.d.ts +2 -3
- package/dist/types/types.d.ts +0 -8
- package/dist/types/types.js +0 -10
- package/dist/utils/json.js +0 -1
- package/dist/utils/time.d.ts +2 -2
- package/dist/utils/time.js +253 -1471
- package/package.json +27 -5
- package/src/baseComp/View/View.vue +1 -2
- package/src/baseComp/index.ts +1 -2
- package/src/chat/index.ts +23 -4
- package/src/components/Avatar/Avatar.vue +12 -11
- package/src/components/BarrageInput/BarrageInputH5.vue +85 -12
- 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 +19 -5
- package/src/components/BarrageInput/constants.ts +3 -0
- package/src/components/BarrageInput/i18n/en-US/index.ts +2 -0
- package/src/components/BarrageInput/i18n/zh-CN/index.ts +2 -0
- package/src/components/BarrageList/BarrageList.vue +2 -2
- package/src/components/BarrageList/BarrageListH5.vue +2 -2
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +0 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +5 -2
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +7 -3
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +13 -3
- 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/ChatSetting.vue +6 -10
- 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 +3 -3
- 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 +48 -41
- package/src/components/ChatSetting/i18n/en-US.ts +3 -3
- package/src/components/ChatSetting/i18n/index.ts +3 -5
- package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
- package/src/components/ChatSetting/index.ts +8 -4
- package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +52 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +71 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.scss +33 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +264 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +84 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +88 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +93 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +219 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +84 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +99 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +54 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +147 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +111 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +147 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +112 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +128 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/index.ts +8 -0
- package/src/components/ContactList/ContactList.scss +125 -0
- package/src/components/ContactList/ContactList.vue +314 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/ContactListItem.vue +98 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +57 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +70 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/FriendItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +56 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +78 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/GroupItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/index.ts +6 -0
- package/src/components/ContactList/ContactSearch/ContactSearch.scss +58 -0
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +98 -0
- package/src/components/ContactList/ContactSearch/index.ts +1 -0
- package/src/components/ContactList/constants/const.ts +7 -0
- package/src/components/ContactList/hooks/index.ts +1 -0
- package/src/components/ContactList/hooks/useContactList.ts +21 -0
- package/src/components/ContactList/i18n/en-US.ts +77 -0
- package/src/components/ContactList/i18n/index.ts +4 -0
- package/src/components/ContactList/i18n/zh-CN.ts +77 -0
- package/src/components/ContactList/index.ts +18 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +36 -47
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +15 -29
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.scss +11 -37
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +155 -69
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.scss +37 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +70 -15
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +20 -66
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +72 -139
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.scss +5 -129
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +42 -183
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +15 -11
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +23 -18
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.ts +2 -8
- package/src/components/ConversationList/ConversationCreate/index.ts +0 -2
- package/src/components/ConversationList/ConversationList.scss +1 -5
- package/src/components/ConversationList/ConversationList.vue +53 -60
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +3 -5
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +2 -2
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +6 -19
- package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
- package/src/components/ConversationList/ConversationPreview/utils.ts +11 -11
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/ConversationList/hooks/useConversation.ts +21 -0
- package/src/components/ConversationList/hooks/useConversationCreate.ts +29 -0
- package/src/components/ConversationList/i18n/en-US.ts +26 -6
- package/src/components/ConversationList/i18n/zh-CN.ts +25 -5
- package/src/components/{LiveStreamView → LiveCoreView}/index.ts +4 -3
- package/src/components/LiveCoreView/index.vue +420 -0
- package/src/components/LiveList/LiveList.vue +97 -38
- package/src/components/LiveList/LiveListH5.vue +65 -66
- 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.module.scss +1 -1
- package/src/components/MessageInput/MessageInput.vue +21 -15
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +2 -2
- package/src/components/MessageInput/SendButton/SendButton.vue +1 -1
- package/src/components/MessageInput/TextEditor/Editor.scss +4 -2
- package/src/components/MessageInput/TextEditor/TextEditor.module.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +18 -6
- package/src/components/MessageInput/i18n/index.ts +1 -7
- package/src/components/MessageInput/index.ts +25 -8
- 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 +6 -6
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +0 -1
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +16 -17
- package/src/components/MessageList/MessageForward/MessageForward.vue +5 -5
- package/src/components/MessageList/MessageList.vue +37 -9
- package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
- package/src/components/MessageList/ScrollToBottom/ScrollToBottom.vue +50 -0
- package/src/components/MessageList/ScrollToBottom/index.ts +5 -0
- package/src/components/MessageList/i18n/en-US.ts +5 -0
- package/src/components/MessageList/i18n/index.ts +1 -5
- package/src/components/MessageList/i18n/zh-CN.ts +5 -0
- package/src/components/MessageList/index.ts +9 -5
- package/src/components/Search/Search.scss +0 -3
- package/src/components/Search/Search.vue +0 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +125 -38
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +24 -16
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +9 -7
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +4 -3
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +0 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +57 -23
- package/src/components/Search/SearchBar/SearchBar.scss +0 -2
- package/src/components/Search/SearchBar/SearchBar.vue +7 -5
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +4 -2
- package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
- package/src/components/Search/SearchResults/SearchResults.scss +12 -27
- package/src/components/Search/SearchResults/SearchResults.vue +25 -29
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -19
- 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/Search/SearchResults/SearchResultsItem/utils/highlightText.ts +15 -16
- package/src/components/Search/i18n/en-US/Search.ts +9 -9
- package/src/components/Search/i18n/zh-CN/Search.ts +13 -13
- package/src/components/StreamMixer/LocalMixer/MixerControl.vue +20 -15
- package/src/components/StreamMixer/LocalMixer/index.vue +138 -60
- package/src/components/StreamMixer/index.vue +3 -3
- 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/i18n/index.ts +1 -5
- package/src/components/UserPicker/index.ts +20 -17
- package/src/components/UserPicker/type.ts +18 -18
- package/src/components/VideoSettingPanel/VideoPreview.vue +13 -8
- package/src/components/VideoSettingPanel/VideoProfile.vue +5 -5
- package/src/components/VideoSettingPanel/i18n/en-US/index.ts +8 -3
- package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +8 -3
- package/src/components/VideoSettingPanel/index.vue +15 -9
- package/src/hooks/useLongPress.ts +7 -18
- package/src/hooks/useMessageActions.ts +5 -5
- package/src/hooks/useMouseHover.ts +9 -7
- package/src/rtc/index.ts +6 -3
- package/src/types/contact.ts +176 -12
- package/src/types/conversation.ts +54 -46
- package/src/types/engine.ts +15 -0
- package/src/types/live.ts +3 -5
- package/src/types/types.ts +0 -28
- package/src/utils/json.ts +0 -4
- package/src/utils/time.ts +8 -10
- 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/baseComp/Popup/Popup.js +0 -132
- package/dist/baseComp/Popup/Popup.vue.d.ts +0 -54
- package/dist/baseComp/Popup/index.d.ts +0 -2
- package/dist/baseComp/Popup/index.js +0 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.js +0 -65
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue.d.ts +0 -17
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.d.ts +0 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.js +0 -4
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.d.ts +0 -9
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.js +0 -96
- package/dist/components/ConversationList/ConversationCreate/static/word.d.ts +0 -6
- package/dist/components/ConversationList/ConversationCreate/static/word.js +0 -4
- package/dist/components/LiveStreamView/index.d.ts +0 -4
- 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
- package/src/baseComp/Popup/Popup.vue +0 -156
- package/src/baseComp/Popup/index.ts +0 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.scss +0 -36
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue +0 -44
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.ts +0 -1
- package/src/components/ConversationList/ConversationCreate/hooks/useConversationCreate.ts +0 -132
- package/src/components/ConversationList/ConversationCreate/static/word.ts +0 -300
- package/src/components/LiveStreamView/index.vue +0 -333
- /package/dist/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.js +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.js +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.js +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.vue +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.ts +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/index.ts +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.ts +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="contact-blacklist-info">
|
|
3
|
+
<div class="contact-blacklist-info__header">
|
|
4
|
+
<div class="contact-blacklist-info__main-info">
|
|
5
|
+
<div class="contact-blacklist-info__name">
|
|
6
|
+
{{ displayName }}
|
|
7
|
+
</div>
|
|
8
|
+
<div class="contact-blacklist-info__id">
|
|
9
|
+
{{ t('TUIContact.ID') }}:{{ profile?.userID }}
|
|
10
|
+
</div>
|
|
11
|
+
<div class="contact-blacklist-info__intro">
|
|
12
|
+
{{ t('TUIContact.Personal signature') }}:{{ profile?.selfSignature || '' }}
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<Avatar
|
|
16
|
+
:src="profile?.avatar"
|
|
17
|
+
:alt="displayName"
|
|
18
|
+
size="xl"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div
|
|
23
|
+
v-if="showActions"
|
|
24
|
+
class="contact-blacklist-info__actions"
|
|
25
|
+
>
|
|
26
|
+
<TUIButton
|
|
27
|
+
type="primary"
|
|
28
|
+
size="big"
|
|
29
|
+
@click="handleRemoveFromBlacklist"
|
|
30
|
+
>
|
|
31
|
+
{{ t('TUIContact.Remove from blacklist') }}
|
|
32
|
+
</TUIButton>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup lang="ts">
|
|
38
|
+
import { computed } from 'vue';
|
|
39
|
+
import { useUIKit, TUIButton } from '@tencentcloud/uikit-base-component-vue3';
|
|
40
|
+
import { useContactListState } from '../../../../states/ContactListState';
|
|
41
|
+
import { Avatar } from '../../../Avatar';
|
|
42
|
+
import type { BlacklistInfoProps, UserProfile } from '../../../../types/contact';
|
|
43
|
+
|
|
44
|
+
const props = withDefaults(defineProps<BlacklistInfoProps>(), {
|
|
45
|
+
showActions: true,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const emit = defineEmits<{
|
|
49
|
+
removeFromBlacklist: [profile: UserProfile];
|
|
50
|
+
close: [];
|
|
51
|
+
}>();
|
|
52
|
+
|
|
53
|
+
const { t } = useUIKit();
|
|
54
|
+
const { removeFromBlacklist } = useContactListState();
|
|
55
|
+
|
|
56
|
+
const displayName = computed(() => props.profile?.nick || props.profile?.userID);
|
|
57
|
+
|
|
58
|
+
const handleRemoveFromBlacklist = async () => {
|
|
59
|
+
try {
|
|
60
|
+
await removeFromBlacklist([props.profile?.userID]);
|
|
61
|
+
emit('removeFromBlacklist', props.profile);
|
|
62
|
+
emit('close');
|
|
63
|
+
} catch (err) {
|
|
64
|
+
console.error('[ContactInfo removeFromBlacklist] error', err);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style scoped lang="scss">
|
|
70
|
+
@import './BlacklistInfo.scss';
|
|
71
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BlacklistInfo } from './BlacklistInfo.vue';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.contact-info {
|
|
2
|
+
flex: 1;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: var(--bg-color-operate);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.contact-info__empty {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
height: 100%;
|
|
16
|
+
color: var(--text-color-secondary);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.contact-info__header {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
padding: 10px 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.contact-info__title {
|
|
26
|
+
flex: 1;
|
|
27
|
+
text-align: center;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
line-height: 100%;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
padding-right: 24px;
|
|
32
|
+
color: var(--text-color-primary);
|
|
33
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="contact-info">
|
|
3
|
+
<header
|
|
4
|
+
v-if="isH5 && contactInfo"
|
|
5
|
+
class="contact-info__header"
|
|
6
|
+
>
|
|
7
|
+
<IconChevronLeft
|
|
8
|
+
size="24px"
|
|
9
|
+
@click="handleCloseContactInfo"
|
|
10
|
+
/>
|
|
11
|
+
<h1 class="contact-info__title">
|
|
12
|
+
{{ contactGroupTitles[contactInfo?.type] }}
|
|
13
|
+
</h1>
|
|
14
|
+
</header>
|
|
15
|
+
<component
|
|
16
|
+
:is="getComponentByType(contactInfo?.type)"
|
|
17
|
+
v-if="contactInfo"
|
|
18
|
+
v-bind="getComponentProps(contactInfo.type)"
|
|
19
|
+
:show-actions="showActions"
|
|
20
|
+
@close="handleCloseContactInfo"
|
|
21
|
+
@send-message="handleSendMessage"
|
|
22
|
+
@delete-friend="handleDeleteFriend"
|
|
23
|
+
@add-to-blacklist="handleAddToBlacklist"
|
|
24
|
+
@remove-from-blacklist="handleRemoveFromBlacklist"
|
|
25
|
+
@update-friend-remark="handleUpdateFriendRemark"
|
|
26
|
+
@enter-group="handleEnterGroup"
|
|
27
|
+
@leave-group="handleLeaveGroup"
|
|
28
|
+
@dismiss-group="handleDismissGroup"
|
|
29
|
+
@friend-application-action="handleFriendApplicationAction"
|
|
30
|
+
@group-application-action="handleGroupApplicationAction"
|
|
31
|
+
@add-friend="handleAddFriend"
|
|
32
|
+
@join-group="handleJoinGroup"
|
|
33
|
+
/>
|
|
34
|
+
<div
|
|
35
|
+
v-else-if="PlaceholderEmpty"
|
|
36
|
+
class="contact-info__empty"
|
|
37
|
+
>
|
|
38
|
+
<component :is="PlaceholderEmpty" />
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script setup lang="ts">
|
|
44
|
+
import { watch, ref } from 'vue';
|
|
45
|
+
import { IconChevronLeft } from '@tencentcloud/uikit-base-component-vue3';
|
|
46
|
+
import { useContactListState } from '../../../states/ContactListState';
|
|
47
|
+
import { ContactItemType } from '../../../types/contact';
|
|
48
|
+
import { isH5 } from '../../../utils/env';
|
|
49
|
+
import { useContactList } from '../hooks';
|
|
50
|
+
import { BlacklistInfo } from './BlacklistInfo';
|
|
51
|
+
import { FriendApplicationInfo } from './FriendApplicationInfo';
|
|
52
|
+
import { FriendInfo } from './FriendInfo';
|
|
53
|
+
import { GroupApplicationInfo } from './GroupApplicationInfo';
|
|
54
|
+
import { GroupInfo } from './GroupInfo';
|
|
55
|
+
import { SearchGroupInfo } from './SearchGroupInfo';
|
|
56
|
+
import { SearchUserInfo } from './SearchUserInfo';
|
|
57
|
+
import type { Friend, GroupModel, UserProfile } from '../../../types';
|
|
58
|
+
import type { ContactInfoProps, ContactGroupItem, FriendApplication, GroupApplication } from '../../../types/contact';
|
|
59
|
+
|
|
60
|
+
const props = withDefaults(defineProps<ContactInfoProps>(), {
|
|
61
|
+
showActions: true,
|
|
62
|
+
PlaceholderEmpty: undefined,
|
|
63
|
+
FriendInfoComponent: undefined,
|
|
64
|
+
GroupInfoComponent: undefined,
|
|
65
|
+
BlacklistInfoComponent: undefined,
|
|
66
|
+
FriendApplicationInfoComponent: undefined,
|
|
67
|
+
GroupApplicationInfoComponent: undefined,
|
|
68
|
+
SearchGroupInfoComponent: undefined,
|
|
69
|
+
SearchUserInfoComponent: undefined,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
const emit = defineEmits<{
|
|
73
|
+
close: [];
|
|
74
|
+
sendMessage: [data: Friend];
|
|
75
|
+
deleteFriend: [data: Friend];
|
|
76
|
+
addToBlacklist: [data: Friend];
|
|
77
|
+
removeFromBlacklist: [data: UserProfile];
|
|
78
|
+
updateFriendRemark: [data: Friend, remark: string];
|
|
79
|
+
enterGroup: [data: GroupModel];
|
|
80
|
+
leaveGroup: [data: GroupModel];
|
|
81
|
+
dismissGroup: [data: GroupModel];
|
|
82
|
+
friendApplicationAction: [action: 'accept' | 'refuse', application: FriendApplication];
|
|
83
|
+
groupApplicationAction: [action: 'accept' | 'refuse', application: GroupApplication];
|
|
84
|
+
addFriend: [data: UserProfile, wording: string];
|
|
85
|
+
joinGroup: [data: GroupModel, note: string];
|
|
86
|
+
}>();
|
|
87
|
+
|
|
88
|
+
const { friendList, groupList, blackList } = useContactListState();
|
|
89
|
+
const { activeContact, setActiveContact, contactGroupTitles } = useContactList();
|
|
90
|
+
|
|
91
|
+
const contactInfo = ref<ContactGroupItem | undefined>(undefined);
|
|
92
|
+
|
|
93
|
+
const handleContactInfo = (contactGroupItem?: ContactGroupItem) => {
|
|
94
|
+
const newContactInfo = contactGroupItem ? { ...contactGroupItem } : undefined;
|
|
95
|
+
|
|
96
|
+
if (contactGroupItem?.type === ContactItemType.SEARCH_USER) {
|
|
97
|
+
const blackUser = blackList.value.find(
|
|
98
|
+
userInfo => userInfo.userID === (contactGroupItem?.data as UserProfile).userID,
|
|
99
|
+
);
|
|
100
|
+
const friend = friendList.value.find(
|
|
101
|
+
userInfo => userInfo.userID === (contactGroupItem?.data as UserProfile).userID,
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
if (blackUser && newContactInfo) {
|
|
105
|
+
newContactInfo.type = ContactItemType.BLACK;
|
|
106
|
+
newContactInfo.data = blackUser;
|
|
107
|
+
} else if (friend && newContactInfo) {
|
|
108
|
+
newContactInfo.type = ContactItemType.FRIEND;
|
|
109
|
+
newContactInfo.data = friend;
|
|
110
|
+
}
|
|
111
|
+
} else if (contactGroupItem?.type === ContactItemType.SEARCH_GROUP) {
|
|
112
|
+
const group = groupList.value.find(
|
|
113
|
+
g => g.groupID === (contactGroupItem?.data as GroupModel).groupID,
|
|
114
|
+
);
|
|
115
|
+
if (group && newContactInfo) {
|
|
116
|
+
newContactInfo.type = ContactItemType.GROUP;
|
|
117
|
+
newContactInfo.data = group;
|
|
118
|
+
}
|
|
119
|
+
} else if (contactGroupItem?.type === ContactItemType.FRIEND) {
|
|
120
|
+
const blackUser = blackList.value.find(
|
|
121
|
+
userInfo => userInfo.userID === (contactGroupItem?.data as Friend).userID,
|
|
122
|
+
);
|
|
123
|
+
if (blackUser && newContactInfo) {
|
|
124
|
+
newContactInfo.type = ContactItemType.BLACK;
|
|
125
|
+
newContactInfo.data = blackUser;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
contactInfo.value = newContactInfo;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
watch(
|
|
133
|
+
() => props.contactItem,
|
|
134
|
+
(newContactItem, oldContactItem) => {
|
|
135
|
+
if (newContactItem !== oldContactItem) {
|
|
136
|
+
setActiveContact(newContactItem);
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{ immediate: true },
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
watch(
|
|
143
|
+
() => activeContact.value,
|
|
144
|
+
(newActiveContact) => {
|
|
145
|
+
handleContactInfo(newActiveContact || undefined);
|
|
146
|
+
},
|
|
147
|
+
{ immediate: true },
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
watch(
|
|
151
|
+
(): [GroupModel[], ContactGroupItem | undefined] => [groupList.value, activeContact.value],
|
|
152
|
+
([newGroupList, newActiveContact]) => {
|
|
153
|
+
if (newGroupList.length > 0 && newActiveContact && newActiveContact.type === ContactItemType.GROUP) {
|
|
154
|
+
const group = newGroupList.find(
|
|
155
|
+
g => g?.groupID === (newActiveContact?.data as GroupModel)?.groupID,
|
|
156
|
+
);
|
|
157
|
+
if (group) {
|
|
158
|
+
if (newActiveContact?.data !== group) {
|
|
159
|
+
setActiveContact({
|
|
160
|
+
type: ContactItemType.GROUP,
|
|
161
|
+
data: group,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
} else {
|
|
165
|
+
setActiveContact(undefined);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
watch(
|
|
172
|
+
(): [UserProfile[], Friend[], ContactGroupItem | undefined] => [blackList.value, friendList.value, activeContact.value],
|
|
173
|
+
([newBlackList, newFriendList, newActiveContact]) => {
|
|
174
|
+
if (newActiveContact) {
|
|
175
|
+
const blackUser = newBlackList?.find(
|
|
176
|
+
userInfo => userInfo?.userID === (newActiveContact?.data as UserProfile)?.userID,
|
|
177
|
+
);
|
|
178
|
+
const user = newFriendList?.find(
|
|
179
|
+
userInfo => userInfo?.userID === (newActiveContact?.data as UserProfile)?.userID,
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
if (blackUser && newActiveContact.type !== ContactItemType.BLACK) {
|
|
183
|
+
setActiveContact({
|
|
184
|
+
type: ContactItemType.BLACK,
|
|
185
|
+
data: blackUser,
|
|
186
|
+
});
|
|
187
|
+
} else if (user && newActiveContact.type === ContactItemType.FRIEND && newActiveContact.data !== user) {
|
|
188
|
+
setActiveContact({
|
|
189
|
+
type: ContactItemType.FRIEND,
|
|
190
|
+
data: user,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
const getComponentByType = (type?: ContactItemType) => {
|
|
198
|
+
switch (type) {
|
|
199
|
+
case ContactItemType.FRIEND:
|
|
200
|
+
return props.FriendInfoComponent || FriendInfo;
|
|
201
|
+
case ContactItemType.GROUP:
|
|
202
|
+
return props.GroupInfoComponent || GroupInfo;
|
|
203
|
+
case ContactItemType.BLACK:
|
|
204
|
+
return props.BlacklistInfoComponent || BlacklistInfo;
|
|
205
|
+
case ContactItemType.FRIEND_REQUEST:
|
|
206
|
+
return props.FriendApplicationInfoComponent || FriendApplicationInfo;
|
|
207
|
+
case ContactItemType.GROUP_REQUEST:
|
|
208
|
+
return props.GroupApplicationInfoComponent || GroupApplicationInfo;
|
|
209
|
+
case ContactItemType.SEARCH_USER:
|
|
210
|
+
return props.SearchUserInfoComponent || SearchUserInfo;
|
|
211
|
+
case ContactItemType.SEARCH_GROUP:
|
|
212
|
+
return props.SearchGroupInfoComponent || SearchGroupInfo;
|
|
213
|
+
default:
|
|
214
|
+
return 'div';
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const getComponentProps = (type?: ContactItemType) => {
|
|
219
|
+
if (!contactInfo.value) {
|
|
220
|
+
return {};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
switch (type) {
|
|
224
|
+
case ContactItemType.FRIEND:
|
|
225
|
+
return { friend: contactInfo.value.data };
|
|
226
|
+
case ContactItemType.GROUP:
|
|
227
|
+
return { group: contactInfo.value.data };
|
|
228
|
+
case ContactItemType.BLACK:
|
|
229
|
+
return { profile: contactInfo.value.data };
|
|
230
|
+
case ContactItemType.FRIEND_REQUEST:
|
|
231
|
+
return { application: contactInfo.value.data };
|
|
232
|
+
case ContactItemType.GROUP_REQUEST:
|
|
233
|
+
return { application: contactInfo.value.data };
|
|
234
|
+
case ContactItemType.SEARCH_USER:
|
|
235
|
+
return { user: contactInfo.value.data };
|
|
236
|
+
case ContactItemType.SEARCH_GROUP:
|
|
237
|
+
return { group: contactInfo.value.data };
|
|
238
|
+
default:
|
|
239
|
+
return {};
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
const handleCloseContactInfo = () => {
|
|
244
|
+
setActiveContact(undefined);
|
|
245
|
+
emit('close');
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const handleSendMessage = (data: Friend) => emit('sendMessage', data);
|
|
249
|
+
const handleDeleteFriend = (data: Friend) => emit('deleteFriend', data);
|
|
250
|
+
const handleAddToBlacklist = (data: Friend) => emit('addToBlacklist', data);
|
|
251
|
+
const handleRemoveFromBlacklist = (data: UserProfile) => emit('removeFromBlacklist', data);
|
|
252
|
+
const handleUpdateFriendRemark = (data: Friend, remark: string) => emit('updateFriendRemark', data, remark);
|
|
253
|
+
const handleEnterGroup = (data: GroupModel) => emit('enterGroup', data);
|
|
254
|
+
const handleLeaveGroup = (data: GroupModel) => emit('leaveGroup', data);
|
|
255
|
+
const handleDismissGroup = (data: GroupModel) => emit('dismissGroup', data);
|
|
256
|
+
const handleFriendApplicationAction = (action: 'accept' | 'refuse', application: FriendApplication) => emit('friendApplicationAction', action, application);
|
|
257
|
+
const handleGroupApplicationAction = (action: 'accept' | 'refuse', application: GroupApplication) => emit('groupApplicationAction', action, application);
|
|
258
|
+
const handleAddFriend = (data: UserProfile, wording: string) => emit('addFriend', data, wording);
|
|
259
|
+
const handleJoinGroup = (data: GroupModel, note: string) => emit('joinGroup', data, note);
|
|
260
|
+
</script>
|
|
261
|
+
|
|
262
|
+
<style scoped lang="scss">
|
|
263
|
+
@import './ContactInfo.scss';
|
|
264
|
+
</style>
|
package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use '../../../../styles/mixins' as mixins;
|
|
2
|
+
.contact-friend-application-info {
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: var(--bg-color-topbar);
|
|
9
|
+
padding: 48px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.contact-friend-application-info__header {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
gap: 20px;
|
|
17
|
+
margin-bottom: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.contact-friend-application-info__main-info {
|
|
21
|
+
flex: 1;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: 20px;
|
|
25
|
+
width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.contact-friend-application-info__name {
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
color: var(--text-color-primary);
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
|
|
34
|
+
@include mixins.text-ellipsis();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.contact-friend-application-info__id,
|
|
38
|
+
.contact-friend-application-info__intro {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
color: var(--text-color-tertiary);
|
|
41
|
+
width: 100%;
|
|
42
|
+
word-break: break-word;
|
|
43
|
+
|
|
44
|
+
@include mixins.multi-line-ellipsis(3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.contact-friend-application-info__rows {
|
|
48
|
+
border-top: 1px solid var(--stroke-color-secondary);
|
|
49
|
+
padding: 32px 0 64px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.contact-friend-application-info__row {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
line-height: 32px;
|
|
59
|
+
gap: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.contact-friend-application-info__row-label {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
color: var(--text-color-tertiary);
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.contact-friend-application-info__row-value {
|
|
69
|
+
flex: 1;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
color: var(--text-color-secondary);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.contact-friend-application-info__actions {
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: 12px;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="contact-friend-application-info">
|
|
3
|
+
<div class="contact-friend-application-info__header">
|
|
4
|
+
<div class="contact-friend-application-info__main-info">
|
|
5
|
+
<div class="contact-friend-application-info__name">
|
|
6
|
+
{{ application?.nick || application?.userID }}
|
|
7
|
+
</div>
|
|
8
|
+
<div class="contact-friend-application-info__id">
|
|
9
|
+
{{ t('TUIContact.ID') }}:{{ application?.userID }}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<Avatar
|
|
13
|
+
:src="application.avatar"
|
|
14
|
+
:alt="application?.nick || application.userID"
|
|
15
|
+
size="xl"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="contact-friend-application-info__rows">
|
|
19
|
+
<div class="contact-friend-application-info__row">
|
|
20
|
+
<div class="contact-friend-application-info__row-label">
|
|
21
|
+
{{ t('TUIContact.Verification info') }}:
|
|
22
|
+
</div>
|
|
23
|
+
<div class="contact-friend-application-info__row-value">
|
|
24
|
+
{{ application?.wording || t('TUIContact.None') }}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div
|
|
29
|
+
v-if="showActions"
|
|
30
|
+
class="contact-friend-application-info__actions"
|
|
31
|
+
>
|
|
32
|
+
<TUIButton
|
|
33
|
+
type="default"
|
|
34
|
+
size="big"
|
|
35
|
+
color="red"
|
|
36
|
+
@click="handleRefuse"
|
|
37
|
+
>
|
|
38
|
+
{{ t('TUIContact.Refuse') }}
|
|
39
|
+
</TUIButton>
|
|
40
|
+
<TUIButton
|
|
41
|
+
type="primary"
|
|
42
|
+
size="big"
|
|
43
|
+
@click="handleAccept"
|
|
44
|
+
>
|
|
45
|
+
{{ t('TUIContact.Agree') }}
|
|
46
|
+
</TUIButton>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script setup lang="ts">
|
|
52
|
+
import { useUIKit, TUIButton } from '@tencentcloud/uikit-base-component-vue3';
|
|
53
|
+
import { useContactListState } from '../../../../states/ContactListState';
|
|
54
|
+
import { Avatar } from '../../../Avatar';
|
|
55
|
+
import type { FriendApplication, FriendApplicationInfoProps } from '../../../../types/contact';
|
|
56
|
+
|
|
57
|
+
const props = withDefaults(defineProps<FriendApplicationInfoProps>(), {
|
|
58
|
+
showActions: true,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const emit = defineEmits<{
|
|
62
|
+
accept: [application: FriendApplication];
|
|
63
|
+
refuse: [application: FriendApplication];
|
|
64
|
+
friendApplicationAction: [action: 'accept' | 'refuse', application: FriendApplication];
|
|
65
|
+
close: [];
|
|
66
|
+
}>();
|
|
67
|
+
|
|
68
|
+
const { t } = useUIKit();
|
|
69
|
+
const { acceptFriendApplication, refuseFriendApplication } = useContactListState();
|
|
70
|
+
|
|
71
|
+
const handleAccept = () => {
|
|
72
|
+
emit('accept', props.application);
|
|
73
|
+
emit('friendApplicationAction', 'accept', props.application);
|
|
74
|
+
acceptFriendApplication(props.application);
|
|
75
|
+
emit('close');
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const handleRefuse = () => {
|
|
79
|
+
emit('refuse', props.application);
|
|
80
|
+
emit('friendApplicationAction', 'refuse', props.application);
|
|
81
|
+
refuseFriendApplication(props.application.userID);
|
|
82
|
+
emit('close');
|
|
83
|
+
};
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<style scoped lang="scss">
|
|
87
|
+
@import './FriendApplicationInfo.scss';
|
|
88
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FriendApplicationInfo } from './FriendApplicationInfo.vue';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use '../../../../styles/mixins' as mixins;
|
|
2
|
+
.contact-friend-info {
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: var(--bg-color-topbar);
|
|
9
|
+
padding: 48px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.contact-friend-info__header {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
gap: 20px;
|
|
17
|
+
margin-bottom: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.contact-friend-info__main-info {
|
|
21
|
+
flex: 1;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: 20px;
|
|
25
|
+
width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.contact-friend-info__name {
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
color: var(--text-color-primary);
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
|
|
34
|
+
@include mixins.text-ellipsis();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.contact-friend-info__id,
|
|
38
|
+
.contact-friend-info__intro {
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
color: var(--text-color-tertiary);
|
|
41
|
+
width: 100%;
|
|
42
|
+
word-break: break-word;
|
|
43
|
+
|
|
44
|
+
@include mixins.multi-line-ellipsis(3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.contact-friend-info__rows {
|
|
48
|
+
border-top: 1px solid var(--stroke-color-secondary);
|
|
49
|
+
padding: 32px 0 64px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.contact-friend-info__row {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
line-height: 32px;
|
|
59
|
+
gap: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.contact-friend-info__row-label {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
color: var(--text-color-tertiary);
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.contact-friend-info__row-value {
|
|
69
|
+
flex: 1;
|
|
70
|
+
width: 0;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
color: var(--text-color-secondary);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.remark-edit {
|
|
80
|
+
max-width: 100%;
|
|
81
|
+
word-break: break-all;
|
|
82
|
+
|
|
83
|
+
@include mixins.text-ellipsis();
|
|
84
|
+
}
|
|
85
|
+
.remark-edit-icon {
|
|
86
|
+
min-width: 16px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.contact-friend-info__actions {
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: 12px;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
}
|