tuikit-atomicx-vue3 0.1.0 → 3.3.0-beta.3
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/{DialogPortal-8bLejP4P.js → DialogPortal-DWeT-J6v.js} +3 -3
- package/dist/{FilePicker.vue_vue_type_script_setup_true_lang-D0cP-aFi.js → FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js} +2 -1
- package/dist/{ImagePicker.vue_vue_type_script_setup_true_lang-DzBHwcSi.js → ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js} +2 -1
- package/dist/{MaterialRenameDialog.vue_vue_type_script_setup_true_lang-Cmhf2QX4.js → MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ca6-JH93.js → MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js} +16 -16
- package/dist/{PopoverTrigger-BhQt39dx.js → PopoverTrigger-BKOIHfdS.js} +3 -3
- package/dist/{PopperContent-C59duB_H.js → PopperContent-DtL7HVWz.js} +30 -22
- package/dist/{Teleport-BnT1MTUO.js → Teleport-CMvGsENT.js} +4 -5
- package/dist/{VideoPicker.vue_vue_type_script_setup_true_lang-DAv8_NWh.js → VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js} +2 -1
- package/dist/baseComp/AudioIcon.js +1 -1
- package/dist/baseComp/Modal/Modal.js +1 -1
- package/dist/baseComp/TuiSwitch.js +2 -2
- package/dist/baseComp/View/View.js +2 -40
- package/dist/baseComp/View/View.vue.d.ts +4 -10
- package/dist/baseComp/View/index.js +37 -2
- package/dist/baseComp/index.d.ts +1 -0
- package/dist/baseComp/index.js +4 -0
- package/dist/chat/index.d.ts +15494 -0
- package/dist/chat/index.js +74 -0
- package/dist/chat/server.d.ts +19 -0
- package/dist/chat/server.js +108 -0
- package/dist/components/AudioSetting/AudioMediaControl.js +1 -1
- package/dist/components/AudioSetting/index.js +1 -33
- package/dist/components/AudioSettingPanel/index.js +19 -5
- package/dist/components/Avatar/Avatar.js +37 -12
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/Avatar/constants/avatar.d.ts +7 -0
- package/dist/components/Avatar/constants/avatar.js +14 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/Avatar/index.js +8 -1
- package/dist/components/BarrageInput/BarrageInput.js +13 -7
- package/dist/components/BarrageInput/BarrageInput.vue.d.ts +5 -0
- package/dist/components/BarrageInput/BarrageInputH5.js +42 -14
- package/dist/components/BarrageInput/BarrageInputH5.vue.d.ts +13 -2
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -8
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.d.ts +18 -0
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +93 -0
- package/dist/components/BarrageInput/TextEditor/EditorCore.d.ts +4 -3
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +8 -2
- package/dist/components/BarrageInput/TextEditor/TextEditor.js +1 -1
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -0
- package/dist/components/BarrageInput/TextEditor/index.js +133 -2
- 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 +15 -72
- package/dist/components/BarrageList/BarrageList.js +7 -8
- package/dist/components/BarrageList/BarrageListH5.js +7 -8
- package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +1 -1
- package/dist/components/BarrageList/Message/CustomMessage/index.js +10 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +28 -2
- package/dist/components/BarrageList/Message/Message.js +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +3 -3
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +12 -12
- 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/RecalledMessage/RecalledMessage.js +2 -2
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +2 -2
- package/dist/components/BarrageList/Message/index.js +21 -2
- package/dist/components/BarrageList/MessageForward/MessageForward.js +4 -4
- package/dist/components/CameraButton/index.js +48 -2
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +123 -0
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/C2CChatSetting/index.d.ts +4 -0
- package/dist/components/ChatSetting/C2CChatSetting/index.js +5 -0
- package/dist/components/ChatSetting/ChatSetting.js +30 -0
- package/dist/components/ChatSetting/ChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +182 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +262 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +193 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +285 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue.d.ts +6 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +38 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue.d.ts +6 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +250 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue.d.ts +66 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +46 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/index.js +4 -0
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +295 -0
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +26 -0
- package/dist/components/ChatSetting/SettingItem/index.d.ts +3 -0
- package/dist/components/ChatSetting/SettingItem/index.js +4 -0
- package/dist/components/ChatSetting/i18n/en-US.d.ts +95 -0
- package/dist/components/ChatSetting/i18n/en-US.js +107 -0
- package/dist/components/ChatSetting/i18n/index.d.ts +191 -0
- package/dist/components/ChatSetting/i18n/index.js +9 -0
- package/dist/components/ChatSetting/i18n/zh-CN.d.ts +95 -0
- package/dist/components/ChatSetting/i18n/zh-CN.js +107 -0
- package/dist/components/ChatSetting/index.d.ts +5 -0
- package/dist/components/ChatSetting/index.js +12 -0
- package/dist/components/CoGuestPanel/CoGuestPanel.js +38 -113
- package/dist/components/CoGuestPanel/constants.d.ts +4 -0
- package/dist/components/CoGuestPanel/constants.js +7 -0
- package/dist/components/CoGuestPanel/i18n/en-US/index.d.ts +5 -0
- package/dist/components/CoGuestPanel/i18n/en-US/index.js +12 -7
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +12 -7
- package/dist/components/CoGuestPanel/index.d.ts +1 -2
- package/dist/components/CoGuestPanel/index.js +3 -2
- 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 +56 -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 +154 -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 +281 -0
- package/dist/components/ContactList/ContactList.vue.d.ts +41 -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 +310 -0
- package/dist/components/ContactList/index.js +16 -0
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +192 -0
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +50 -0
- package/dist/components/ConversationList/ConversationActions/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationActions/index.js +4 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +217 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.vue.d.ts +35 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +103 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue.d.ts +31 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +146 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue.d.ts +23 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +69 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue.d.ts +19 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +91 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue.d.ts +13 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.d.ts +5 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +6 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.d.ts +8 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +11 -0
- package/dist/components/ConversationList/ConversationCreate/index.d.ts +6 -0
- package/dist/components/ConversationList/ConversationCreate/index.js +14 -0
- package/dist/components/ConversationList/ConversationList.js +193 -25
- package/dist/components/ConversationList/ConversationList.vue.d.ts +8593 -1
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +51 -0
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +381 -0
- package/dist/components/ConversationList/ConversationListContent/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationListContent/index.js +4 -0
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +51 -0
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.vue.d.ts +47 -0
- package/dist/components/ConversationList/ConversationListHeader/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationListHeader/index.js +4 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +103 -0
- package/dist/components/{LiveStreamView/DefaultStreamViewUI.vue.d.ts → ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue.d.ts} +18 -30
- package/dist/components/ConversationList/ConversationPlaceHolder/index.d.ts +4 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/index.js +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +2548 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +69 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +58 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +63 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +19 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +150 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +599 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +68 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +7 -0
- package/dist/components/ConversationList/ConversationPreview/index.js +86 -0
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +7 -0
- package/dist/components/ConversationList/ConversationPreview/utils.js +49 -0
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +197 -0
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +2006 -0
- package/dist/components/ConversationList/ConversationSearch/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationSearch/index.js +4 -0
- 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 +54 -0
- package/dist/components/ConversationList/i18n/en-US.js +65 -0
- package/dist/components/ConversationList/i18n/index.d.ts +4 -0
- package/dist/components/ConversationList/i18n/index.js +6 -0
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +54 -0
- package/dist/components/ConversationList/i18n/zh-CN.js +65 -0
- package/dist/components/ConversationList/index.d.ts +16714 -3
- package/dist/components/ConversationList/index.js +32 -2
- package/dist/components/LiveAudienceList/LiveAudienceList.js +3 -3
- package/dist/components/LiveAudienceList/UserActionMenu.js +4 -37
- package/dist/components/LiveCoreView/DefaultStreamViewUI.js +177 -0
- package/dist/components/LiveCoreView/DefaultStreamViewUI.vue.d.ts +26 -0
- package/dist/components/LiveCoreView/index.d.ts +4 -0
- package/dist/components/{LiveStreamView → LiveCoreView}/index.js +71 -77
- package/dist/components/{LiveStreamView → LiveCoreView}/index.vue.d.ts +3 -1
- package/dist/components/LiveList/LiveList.js +88 -49
- package/dist/components/LiveList/LiveListH5.js +35 -23
- package/dist/components/LiveMonitorView/LiveMonitorView.js +63 -53
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +1 -2
- package/dist/components/LiveScenePanel/MaterialRenameDialog.js +1 -1
- package/dist/components/LiveScenePanel/i18n/en-US/index.d.ts +2 -0
- package/dist/components/LiveScenePanel/i18n/en-US/index.js +3 -1
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.d.ts +2 -0
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +3 -1
- 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 +14 -6
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +1 -1
- 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 +90 -8
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +5 -4
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +89 -2
- package/dist/components/MessageInput/SendButton/SendButton.js +1 -1
- package/dist/components/MessageInput/SendButton/SendButton.vue.d.ts +3 -3
- package/dist/components/MessageInput/SendButton/index.js +33 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.js +3 -2
- package/dist/components/MessageInput/TextEditor/TextEditor.js +1 -1
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +3 -3
- package/dist/components/MessageInput/TextEditor/index.js +97 -2
- package/dist/components/MessageInput/i18n/en-US.d.ts +12 -0
- package/dist/components/MessageInput/i18n/en-US.js +14 -0
- package/dist/components/MessageInput/i18n/index.d.ts +24 -0
- package/dist/components/MessageInput/i18n/index.js +9 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +12 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +14 -0
- package/dist/components/MessageInput/index.d.ts +409 -6
- package/dist/components/MessageInput/index.js +25 -14
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +4 -4
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +3 -3
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +1 -1
- package/dist/components/MessageList/Message/CustomMessage/index.js +10 -2
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +9 -9
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +29 -2
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +6 -0
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +85 -0
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +2 -2
- package/dist/components/MessageList/Message/Message.js +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +5 -5
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +5 -5
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +21 -20
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +41 -36
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +4 -10
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +2 -2
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +9 -9
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +10 -10
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +2 -2
- package/dist/components/MessageList/Message/index.js +30 -2
- package/dist/components/MessageList/MessageForward/ForwardListItem.js +5 -5
- package/dist/components/MessageList/MessageForward/MessageForward.js +14 -14
- package/dist/components/MessageList/MessageList.js +69 -62
- package/dist/components/MessageList/MessageList.vue.d.ts +3 -3
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +37 -37
- 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 +42 -0
- package/dist/components/MessageList/i18n/en-US.js +46 -0
- package/dist/components/MessageList/i18n/index.d.ts +85 -0
- package/dist/components/MessageList/i18n/index.js +9 -0
- package/dist/components/MessageList/i18n/zh-CN.d.ts +42 -0
- package/dist/components/MessageList/i18n/zh-CN.js +46 -0
- package/dist/components/MessageList/index.js +6 -2
- package/dist/components/MicButton/index.js +56 -2
- package/dist/components/Search/Search.js +191 -0
- package/dist/components/Search/Search.vue.d.ts +809 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +570 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue.d.ts +16 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +267 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue.d.ts +17 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +76 -0
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.vue.d.ts +30 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +64 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.vue.d.ts +20 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +97 -0
- package/dist/components/Search/SearchAdvanced/Slider/Slider.vue.d.ts +34 -0
- package/dist/components/Search/SearchAdvanced/Slider/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/Slider/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +449 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue.d.ts +17 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/index.d.ts +8 -0
- package/dist/components/Search/SearchAdvanced/index.js +14 -0
- package/dist/components/Search/SearchBar/SearchBar.js +155 -0
- package/dist/components/Search/SearchBar/SearchBar.vue.d.ts +39 -0
- package/dist/components/Search/SearchBar/index.d.ts +4 -0
- package/dist/components/Search/SearchBar/index.js +4 -0
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +47 -0
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.vue.d.ts +28 -0
- package/dist/components/Search/SearchResults/EmptyResult/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/EmptyResult/index.js +4 -0
- package/dist/components/Search/SearchResults/Loading/Loading.js +29 -0
- package/dist/components/Search/SearchResults/Loading/Loading.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/Loading/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/Loading/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResults.js +429 -0
- package/dist/components/Search/SearchResults/SearchResults.vue.d.ts +173 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +107 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +76 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +311 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +59 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue.d.ts +34 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +102 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/index.d.ts +9 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/index.js +13 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.d.ts +9 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +43 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.d.ts +1 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +4 -0
- package/dist/components/Search/SearchResults/index.d.ts +6 -0
- package/dist/components/Search/SearchResults/index.js +18 -0
- package/dist/components/Search/i18n/en-US/DateRangePicker.d.ts +23 -0
- package/dist/components/Search/i18n/en-US/DateRangePicker.js +26 -0
- package/dist/components/Search/i18n/en-US/Search.d.ts +42 -0
- package/dist/components/Search/i18n/en-US/Search.js +54 -0
- package/dist/components/Search/i18n/en-US/index.d.ts +66 -0
- package/dist/components/Search/i18n/en-US/index.js +10 -0
- package/dist/components/Search/i18n/index.d.ts +4 -0
- package/dist/components/Search/i18n/index.js +6 -0
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.d.ts +23 -0
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +26 -0
- package/dist/components/Search/i18n/zh-CN/Search.d.ts +42 -0
- package/dist/components/Search/i18n/zh-CN/Search.js +54 -0
- package/dist/components/Search/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/Search/i18n/zh-CN/index.js +10 -0
- package/dist/components/Search/index.d.ts +1335 -0
- package/dist/components/Search/index.js +28 -0
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +14 -10
- package/dist/components/StreamMixer/LocalMixer/index.js +82 -57
- 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 +3 -3
- package/dist/components/StreamView/Layout/FloatLayout.js +4 -4
- package/dist/components/StreamView/Layout/GridLayout.js +1 -1
- package/dist/components/StreamView/Layout/MeetingLayout.js +2 -2
- package/dist/components/StreamView/common/StreamCover/index.js +2 -2
- package/dist/components/StreamView/common/StreamPlay/index.js +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +2 -4
- package/dist/components/UserList/UserItem/UserAction/indexPC.js +1 -1
- package/dist/components/UserList/UserItem/UserInfo/index.js +2 -2
- package/dist/components/UserList/UserItem/indexPC.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/components/ListMode/ListMode.js +1 -1
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +1 -1
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +1 -1
- package/dist/components/UserPicker/components/TreeMode/TreeNode.js +2 -2
- package/dist/components/UserPicker/i18n/en-US.d.ts +7 -0
- package/dist/components/UserPicker/i18n/en-US.js +9 -0
- package/dist/components/UserPicker/i18n/index.d.ts +15 -0
- package/dist/components/UserPicker/i18n/index.js +9 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +7 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +9 -0
- package/dist/components/UserPicker/index.d.ts +0 -1
- package/dist/components/UserPicker/index.js +6 -3
- package/dist/components/VideoSetting/VideoMediaControl.js +1 -1
- package/dist/components/VideoSetting/index.js +3 -37
- 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.d.ts +31 -2
- package/dist/components/VideoSettingPanel/index.js +5 -4
- package/dist/constants/avatar.d.ts +0 -0
- package/dist/constants/avatar.js +1 -0
- package/dist/handler/translator.js +2 -2
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/useLongPress.d.ts +18 -0
- package/dist/hooks/useLongPress.js +82 -0
- package/dist/hooks/useMessageActions.js +8 -8
- package/dist/hooks/useMouseHover.d.ts +11 -0
- package/dist/hooks/useMouseHover.js +31 -0
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +1 -1
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +1 -1
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +1 -1
- package/dist/hooks/useUserActions/index.js +2 -2
- package/dist/hooks/useUserActions/useAdminAction.js +2 -2
- package/dist/hooks/useUserActions/useAudioAction.js +2 -2
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +1 -1
- package/dist/hooks/useUserActions/useKickUserAction.js +1 -1
- package/dist/hooks/useUserActions/useMemberInviteAction.js +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +1 -1
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +3 -8
- package/dist/hooks/useUserActions/useVideoAction.js +2 -2
- package/dist/{index-BREVQgBq.js → index-CX1Zs9En.js} +3 -5
- package/dist/index-DRcLhqhU.js +38 -0
- package/dist/index-ex2Jv3Tj.js +7655 -0
- package/dist/{index-oR-rgHxX.js → index-t9cbWbGG.js} +1027 -6459
- package/dist/index.d.ts +5 -34
- package/dist/index.js +57 -69
- package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +36 -0
- package/dist/rtc/index.d.ts +535 -0
- package/dist/rtc/index.js +89 -0
- package/dist/rtc/server.d.ts +19 -0
- package/dist/rtc/server.js +115 -0
- package/dist/states/BarrageListState/BarrageListState.js +3 -4
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +19 -0
- package/dist/states/C2CSettingState/C2CSettingState.js +112 -0
- package/dist/states/C2CSettingState/index.d.ts +1 -0
- package/dist/states/C2CSettingState/index.js +4 -0
- package/dist/states/CoGuestState.js +2 -2
- package/dist/states/CoHostState.d.ts +1 -1
- package/dist/states/CoHostState.js +60 -63
- package/dist/states/ContactListState/ContactListState.d.ts +40 -0
- package/dist/states/ContactListState/ContactListState.js +321 -0
- package/dist/states/ContactListState/index.d.ts +1 -0
- package/dist/states/ContactListState/index.js +4 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +23 -8
- package/dist/states/ConversationListState/ConversationListState.js +105 -21
- package/dist/states/DeviceState.js +21 -14
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +20 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +456 -0
- package/dist/states/GroupSettingState/index.d.ts +2 -0
- package/dist/states/GroupSettingState/index.js +9 -0
- package/dist/states/GroupSettingState/permissions.d.ts +3 -0
- package/dist/states/GroupSettingState/permissions.js +305 -0
- package/dist/states/GroupSettingState/types.d.ts +126 -0
- package/dist/states/GroupSettingState/types.js +43 -0
- package/dist/states/LiveAudienceState.js +3 -4
- package/dist/states/LiveMonitorState/api/http.js +91 -109
- package/dist/states/LiveMonitorState/index.d.ts +1 -0
- package/dist/states/LiveMonitorState/index.js +4 -3
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +8 -16
- package/dist/states/LiveMonitorState/player/manager/playerManager.js +2 -0
- package/dist/states/LiveSeatState/seatEventManager.js +7 -9
- package/dist/states/LiveSeatState/store.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +9 -0
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +7 -4
- package/dist/states/LiveSeatState/usePlayStream/index.js +81 -93
- package/dist/states/LiveState/index.d.ts +5 -11
- package/dist/states/LiveState/index.js +40 -62
- package/dist/states/LoginState.d.ts +6 -15
- package/dist/states/LoginState.js +49 -39
- package/dist/states/MessageActionState/MessageActionState.js +1 -2
- package/dist/states/MessageInputState/MessageInputState.d.ts +11 -28
- package/dist/states/MessageInputState/MessageInputState.js +115 -165
- package/dist/states/MessageInputState/index.js +2 -1
- package/dist/states/MessageInputState/type.d.ts +21 -0
- package/dist/states/MessageInputState/type.js +12 -0
- package/dist/states/MessageInputState/utils.d.ts +30 -0
- package/dist/states/MessageInputState/utils.js +42 -0
- package/dist/states/RoomState.js +5 -3
- package/dist/states/SearchState.d.ts +267 -0
- package/dist/states/SearchState.js +434 -0
- package/dist/states/SeatStore.js +3 -3
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +15 -0
- package/dist/states/UIOpenControlState/UIOpenControlState.js +28 -0
- package/dist/states/UIOpenControlState/index.d.ts +1 -0
- package/dist/states/UIOpenControlState/index.js +4 -0
- package/dist/states/UserState/index.js +1 -1
- package/dist/states/UserState/store.js +2 -2
- package/dist/states/UserState/userEventManager.js +2 -2
- package/dist/states/UserState/userManager.js +2 -2
- package/dist/states/VideoMixerState.js +15 -5
- package/dist/styles/index.css +12948 -4461
- package/dist/types/contact.d.ts +247 -0
- package/dist/types/contact.js +19 -0
- package/dist/types/conversation.d.ts +235 -0
- package/dist/types/conversation.js +38 -0
- package/dist/types/device.d.ts +3 -1
- package/dist/types/device.js +2 -0
- package/dist/types/engine.d.ts +7 -0
- package/dist/types/engine.js +10 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +15 -1
- package/dist/types/live.d.ts +3 -3
- package/dist/types/login.d.ts +23 -0
- package/dist/types/login.js +1 -0
- package/dist/types/monitor.d.ts +1 -0
- package/dist/types/search.d.ts +90 -0
- package/dist/types/search.js +18 -0
- package/dist/{useId-DlA8vN1W.js → useId-CsgLY8y3.js} +1 -1
- package/dist/utils/env.js +1 -1
- package/dist/utils/environment.js +1 -1
- package/dist/utils/index.js +6 -2
- package/dist/utils/json.d.ts +23 -2
- package/dist/utils/json.js +48 -1
- package/dist/utils/lodash.d.ts +8 -6
- package/dist/utils/lodash.js +26 -2
- package/dist/utils/riseInput.js +1 -1
- package/dist/utils/time.d.ts +2 -2
- package/dist/utils/time.js +253 -1471
- package/dist/{utils-CnPWv_hZ.js → utils-KP1QpeUS.js} +1 -5
- package/package.json +45 -5
- package/src/baseComp/AudioIcon.vue +1 -1
- package/src/baseComp/View/View.vue +12 -17
- package/src/baseComp/index.ts +1 -0
- package/src/chat/index.ts +109 -0
- package/src/chat/server.ts +113 -0
- package/src/components/AudioSettingPanel/index.vue +53 -16
- package/src/components/Avatar/Avatar.vue +15 -15
- package/src/components/Avatar/constants/avatar.ts +15 -0
- package/src/components/Avatar/index.ts +17 -1
- package/src/components/BarrageInput/BarrageInput.vue +15 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +48 -9
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +2 -2
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/CharacterCountExtension.ts +129 -0
- package/src/components/BarrageInput/TextEditor/EditorCore.ts +9 -3
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +37 -18
- 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/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 +3 -3
- package/src/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue +223 -0
- package/src/components/ChatSetting/C2CChatSetting/index.ts +3 -0
- package/src/components/ChatSetting/ChatSetting.vue +39 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +204 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +295 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +227 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +364 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue +69 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +515 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue +50 -0
- package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/index.ts +5 -0
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +528 -0
- package/src/components/ChatSetting/SettingItem/index.ts +3 -0
- package/src/components/ChatSetting/i18n/en-US.ts +115 -0
- package/src/components/ChatSetting/i18n/index.ts +11 -0
- package/src/components/ChatSetting/i18n/zh-CN.ts +115 -0
- package/src/components/ChatSetting/index.ts +10 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +52 -13
- package/src/components/CoGuestPanel/constants.ts +4 -0
- package/src/components/CoGuestPanel/i18n/en-US/index.ts +12 -7
- package/src/components/CoGuestPanel/i18n/zh-CN/index.ts +12 -7
- package/src/components/CoGuestPanel/index.ts +2 -2
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +50 -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 +256 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +82 -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 +92 -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 +82 -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 +52 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +146 -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 +111 -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 +124 -0
- package/src/components/ContactList/ContactList.vue +299 -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 +58 -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 +57 -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 +72 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +182 -0
- package/src/components/ConversationList/ConversationActions/index.ts +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.scss +21 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +234 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.scss +43 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +87 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +55 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +124 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.scss +11 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +65 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +66 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +61 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.ts +5 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.ts +15 -0
- package/src/components/ConversationList/ConversationCreate/index.ts +6 -0
- package/src/components/ConversationList/ConversationList.scss +19 -0
- package/src/components/ConversationList/ConversationList.vue +206 -36
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +21 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +55 -0
- package/src/components/ConversationList/ConversationListContent/index.ts +1 -0
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +25 -0
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +51 -0
- package/src/components/ConversationList/ConversationListHeader/index.ts +1 -0
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.scss +51 -0
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +78 -0
- package/src/components/ConversationList/ConversationPlaceHolder/images/cry.png +0 -0
- package/src/components/ConversationList/ConversationPlaceHolder/images/effort.png +0 -0
- package/src/components/ConversationList/ConversationPlaceHolder/index.ts +4 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +116 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +72 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +37 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +27 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +31 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +134 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +34 -0
- package/src/components/ConversationList/ConversationPreview/index.ts +7 -0
- package/src/components/ConversationList/ConversationPreview/utils.ts +55 -0
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.scss +51 -0
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +191 -0
- package/src/components/ConversationList/ConversationSearch/index.ts +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 +70 -0
- package/src/components/ConversationList/i18n/index.ts +4 -0
- package/src/components/ConversationList/i18n/zh-CN.ts +70 -0
- package/src/components/ConversationList/index.ts +32 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +1 -1
- package/src/components/LiveAudienceList/UserActionMenu.vue +30 -30
- package/src/components/LiveCoreView/DefaultStreamViewUI.vue +244 -0
- package/src/components/{LiveStreamView → LiveCoreView}/index.ts +4 -3
- package/src/components/{LiveStreamView → LiveCoreView}/index.vue +109 -87
- package/src/components/LiveList/LiveList.vue +116 -46
- package/src/components/LiveList/LiveListH5.vue +71 -27
- package/src/components/LiveMonitorView/LiveMonitorView.vue +117 -93
- package/src/components/LiveScenePanel/MaterialRenameDialog.vue +1 -1
- package/src/components/LiveScenePanel/i18n/en-US/index.ts +2 -0
- package/src/components/LiveScenePanel/i18n/zh-CN/index.ts +2 -0
- package/src/components/LiveScenePanel/index.vue +7 -1
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +4 -4
- package/src/components/MessageInput/MessageInput.module.scss +1 -1
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +9 -9
- package/src/components/MessageInput/SendButton/SendButton.vue +8 -6
- package/src/components/MessageInput/TextEditor/Editor.scss +3 -2
- package/src/components/MessageInput/TextEditor/EditorCore.ts +3 -3
- package/src/components/MessageInput/TextEditor/TextEditor.module.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +15 -10
- package/src/components/MessageInput/i18n/en-US.ts +13 -0
- package/src/components/MessageInput/i18n/index.ts +7 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +13 -0
- package/src/components/MessageInput/index.ts +26 -7
- package/src/components/MessageList/Message/FileMessage/FileMessage.vue +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +10 -10
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +97 -0
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +4 -4
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +26 -23
- package/src/components/MessageList/Message/RecalledMessage/RecalledMessage.vue +3 -3
- package/src/components/MessageList/Message/TextMessage/TextMessage.vue +4 -11
- package/src/components/MessageList/MessageForward/MessageForward.vue +7 -7
- package/src/components/MessageList/MessageList.vue +21 -5
- package/src/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.vue +11 -11
- 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 +47 -0
- package/src/components/MessageList/i18n/index.ts +9 -0
- package/src/components/MessageList/i18n/zh-CN.ts +46 -0
- package/src/components/MessageList/index.ts +5 -0
- package/src/components/Search/Search.scss +12 -0
- package/src/components/Search/Search.vue +192 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +308 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +558 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +84 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +263 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +56 -0
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +62 -0
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +40 -0
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +57 -0
- package/src/components/Search/SearchAdvanced/SearchTab/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +47 -0
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +82 -0
- package/src/components/Search/SearchAdvanced/Slider/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +309 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +382 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/index.ts +9 -0
- package/src/components/Search/SearchBar/SearchBar.scss +120 -0
- package/src/components/Search/SearchBar/SearchBar.vue +132 -0
- package/src/components/Search/SearchBar/index.ts +5 -0
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +27 -0
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +32 -0
- package/src/components/Search/SearchResults/EmptyResult/index.ts +2 -0
- package/src/components/Search/SearchResults/Loading/Loading.scss +29 -0
- package/src/components/Search/SearchResults/Loading/Loading.vue +17 -0
- package/src/components/Search/SearchResults/Loading/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResults.scss +191 -0
- package/src/components/Search/SearchResults/SearchResults.vue +400 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +47 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +58 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +54 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +39 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +169 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +263 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +17 -0
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +63 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +53 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +72 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/index.ts +10 -0
- package/src/components/Search/SearchResults/SearchResultsItem/utils/highlightText.ts +75 -0
- package/src/components/Search/SearchResults/SearchResultsItem/utils/index.ts +1 -0
- package/src/components/Search/SearchResults/index.ts +7 -0
- package/src/components/Search/i18n/en-US/DateRangePicker.ts +24 -0
- package/src/components/Search/i18n/en-US/Search.ts +60 -0
- package/src/components/Search/i18n/en-US/index.ts +9 -0
- package/src/components/Search/i18n/index.ts +4 -0
- package/src/components/Search/i18n/zh-CN/DateRangePicker.ts +24 -0
- package/src/components/Search/i18n/zh-CN/Search.ts +60 -0
- package/src/components/Search/i18n/zh-CN/index.ts +9 -0
- package/src/components/Search/index.ts +34 -0
- package/src/components/StreamMixer/LocalMixer/MixerControl.vue +20 -15
- package/src/components/StreamMixer/LocalMixer/index.vue +130 -57
- package/src/components/StreamMixer/index.vue +3 -3
- package/src/components/UserPicker/UserPicker.vue +5 -5
- package/src/components/UserPicker/components/ListMode/ListMode.vue +2 -2
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -1
- package/src/components/UserPicker/i18n/en-US.ts +8 -0
- package/src/components/UserPicker/i18n/index.ts +9 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +8 -0
- package/src/components/UserPicker/index.ts +5 -2
- 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.ts +3 -1
- package/src/components/VideoSettingPanel/index.vue +15 -9
- package/src/constants/avatar.ts +0 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useLongPress.ts +113 -0
- package/src/hooks/useMessageActions.ts +5 -5
- package/src/hooks/useMouseHover.ts +42 -0
- package/src/index.ts +6 -69
- package/src/rtc/index.ts +97 -0
- package/src/rtc/server.ts +119 -0
- package/src/types/contact.ts +309 -0
- package/src/types/conversation.ts +259 -0
- package/src/types/device.ts +2 -0
- package/src/types/engine.ts +18 -0
- package/src/types/index.ts +5 -0
- package/src/types/live.ts +4 -5
- package/src/types/login.ts +26 -0
- package/src/types/monitor.ts +5 -4
- package/src/types/search.ts +126 -0
- package/src/utils/json.ts +67 -4
- package/src/utils/lodash.ts +38 -21
- package/src/utils/time.ts +8 -10
- package/dist/AttachmentPicker.vue_vue_type_script_setup_true_lang-B9tVChd9.js +0 -89
- package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-By3MsAd0.js +0 -12
- package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-CoK94Qxs.js +0 -12
- package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-BqyPcZln.js +0 -30
- package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-Dw2-5Ner.js +0 -30
- package/dist/Message.vue_vue_type_script_setup_true_lang-BV0PxtjX.js +0 -32
- package/dist/Message.vue_vue_type_script_setup_true_lang-mEw2syBo.js +0 -23
- package/dist/QuotedMessagePreview.vue_vue_type_script_setup_true_lang-C8lXN2Qm.js +0 -91
- package/dist/SendButton.vue_vue_type_script_setup_true_lang-BqIeqUyN.js +0 -35
- package/dist/TextEditor.vue_vue_type_script_setup_true_lang-w_I4bsmJ.js +0 -126
- package/dist/TextEditor.vue_vue_type_script_setup_true_lang-yXW1iVZ1.js +0 -98
- package/dist/components/LiveStreamView/DefaultStreamViewUI.js +0 -90
- package/dist/components/LiveStreamView/index.d.ts +0 -4
- package/dist/index-BlyS4ObG.js +0 -50
- package/dist/index-NFANFVi5.js +0 -58
- package/src/components/LiveStreamView/DefaultStreamViewUI.vue +0 -145
- /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}/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,39 @@
|
|
|
1
|
+
import { VariantType, SearchBarProps } from '../../../types/search';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SearchBarProps>, {
|
|
4
|
+
value: string;
|
|
5
|
+
className: string;
|
|
6
|
+
style: () => {};
|
|
7
|
+
autoFocus: boolean;
|
|
8
|
+
variant: VariantType;
|
|
9
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SearchBarProps>, {
|
|
10
|
+
value: string;
|
|
11
|
+
className: string;
|
|
12
|
+
style: () => {};
|
|
13
|
+
autoFocus: boolean;
|
|
14
|
+
variant: VariantType;
|
|
15
|
+
}>>> & Readonly<{}>, {
|
|
16
|
+
style: import('vue').CSSProperties;
|
|
17
|
+
value: string;
|
|
18
|
+
className: string;
|
|
19
|
+
autoFocus: boolean;
|
|
20
|
+
variant: VariantType;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createVNode, createElementVNode, unref, toDisplayString } from "vue";
|
|
2
|
+
import { useUIKit, IconSearchDefault } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { _ as _export_sfc } from "../../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "EmptyResult",
|
|
6
|
+
props: {
|
|
7
|
+
text: { default: "" }
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const { t } = useUIKit();
|
|
12
|
+
const text = computed(() => props.text || t("Search.status.noContent"));
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createElementBlock("div", {
|
|
15
|
+
class: normalizeClass(_ctx.$style.SearchEmpty)
|
|
16
|
+
}, [
|
|
17
|
+
createVNode(unref(IconSearchDefault), { size: "88px" }),
|
|
18
|
+
createElementVNode("div", {
|
|
19
|
+
class: normalizeClass(_ctx.$style["SearchEmpty__text"])
|
|
20
|
+
}, [
|
|
21
|
+
createElementVNode("p", {
|
|
22
|
+
class: normalizeClass(_ctx.$style["SearchEmpty__title"])
|
|
23
|
+
}, toDisplayString(text.value), 3)
|
|
24
|
+
], 2)
|
|
25
|
+
], 2);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const SearchEmpty = "_SearchEmpty_1ldau_295";
|
|
30
|
+
const SearchEmpty__icon = "_SearchEmpty__icon_1ldau_305";
|
|
31
|
+
const SearchEmpty__text = "_SearchEmpty__text_1ldau_311";
|
|
32
|
+
const SearchEmpty__title = "_SearchEmpty__title_1ldau_315";
|
|
33
|
+
const style0 = {
|
|
34
|
+
"tui-theme-dark": "_tui-theme-dark_1ldau_2",
|
|
35
|
+
"tui-theme-light": "_tui-theme-light_1ldau_140",
|
|
36
|
+
SearchEmpty,
|
|
37
|
+
SearchEmpty__icon,
|
|
38
|
+
SearchEmpty__text,
|
|
39
|
+
SearchEmpty__title
|
|
40
|
+
};
|
|
41
|
+
const cssModules = {
|
|
42
|
+
"$style": style0
|
|
43
|
+
};
|
|
44
|
+
const EmptyResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
45
|
+
export {
|
|
46
|
+
EmptyResult as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface IEmptyResultProps {
|
|
2
|
+
text?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IEmptyResultProps>, {
|
|
5
|
+
text: string;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IEmptyResultProps>, {
|
|
7
|
+
text: string;
|
|
8
|
+
}>>> & Readonly<{}>, {
|
|
9
|
+
text: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
}> : P[K];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Prettify<T> = {
|
|
27
|
+
[K in keyof T]: T[K];
|
|
28
|
+
} & {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _export_sfc } from "../../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Loading",
|
|
5
|
+
props: {
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("div", {
|
|
11
|
+
class: normalizeClass(_ctx.$style.SearchLoading)
|
|
12
|
+
}, toDisplayString(_ctx.text), 3);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const SearchLoading = "_SearchLoading_14y18_295";
|
|
17
|
+
const style0 = {
|
|
18
|
+
"tui-theme-dark": "_tui-theme-dark_14y18_2",
|
|
19
|
+
"tui-theme-light": "_tui-theme-light_14y18_140",
|
|
20
|
+
SearchLoading,
|
|
21
|
+
"SearchLoading-spin": "_SearchLoading-spin_14y18_1"
|
|
22
|
+
};
|
|
23
|
+
const cssModules = {
|
|
24
|
+
"$style": style0
|
|
25
|
+
};
|
|
26
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
27
|
+
export {
|
|
28
|
+
Loading as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface ILoadingProps {
|
|
2
|
+
text?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ILoadingProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ILoadingProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
8
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
+
} : {
|
|
11
|
+
type: import('vue').PropType<T[K]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { defineComponent, useCssModule, ref, watch, computed, createElementBlock, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, createVNode, createTextVNode, Fragment, renderList, mergeProps, withCtx } from "vue";
|
|
2
|
+
import { useUIKit, IconBack, TUIButton, IconChevronRight } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { SearchType } from "../../../types/engine.js";
|
|
4
|
+
import { VariantType, defaultTypeLabels } from "../../../types/search.js";
|
|
5
|
+
import SearchResultItemComponent from "./SearchResultsItem/SearchResultsItem.js";
|
|
6
|
+
import EmptyResult from "./EmptyResult/EmptyResult.js";
|
|
7
|
+
import Loading from "./Loading/Loading.js";
|
|
8
|
+
import { isH5 } from "../../../utils/env.js";
|
|
9
|
+
import { _ as _export_sfc } from "../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
10
|
+
const _hoisted_1 = { key: 0 };
|
|
11
|
+
const _hoisted_2 = { key: 2 };
|
|
12
|
+
const _hoisted_3 = { key: 3 };
|
|
13
|
+
const _hoisted_4 = { key: 4 };
|
|
14
|
+
const _hoisted_5 = { key: 5 };
|
|
15
|
+
const _hoisted_6 = { key: 1 };
|
|
16
|
+
const _hoisted_7 = { key: 0 };
|
|
17
|
+
const _hoisted_8 = { key: 1 };
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "SearchResults",
|
|
20
|
+
props: {
|
|
21
|
+
results: {},
|
|
22
|
+
isLoading: { type: Boolean, default: false },
|
|
23
|
+
error: {},
|
|
24
|
+
keyword: { default: "" },
|
|
25
|
+
typeLabels: { default: () => defaultTypeLabels },
|
|
26
|
+
onLoadMore: {},
|
|
27
|
+
onResultItemClick: {},
|
|
28
|
+
SearchResultsPresearch: {},
|
|
29
|
+
SearchResultsLoading: { default: Loading },
|
|
30
|
+
SearchResultsEmpty: { default: EmptyResult },
|
|
31
|
+
SearchResultItem: { type: [Object, Function], default: SearchResultItemComponent },
|
|
32
|
+
variant: { default: VariantType.STANDARD },
|
|
33
|
+
searchType: { default: "all" }
|
|
34
|
+
},
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const $style = useCssModule();
|
|
38
|
+
const { t } = useUIKit();
|
|
39
|
+
const defaultMiniInitLimits = /* @__PURE__ */ new Map([
|
|
40
|
+
[SearchType.MESSAGE, 3],
|
|
41
|
+
[SearchType.USER, 3],
|
|
42
|
+
[SearchType.GROUP, 3]
|
|
43
|
+
]);
|
|
44
|
+
const miniInitLimits = ref(defaultMiniInitLimits);
|
|
45
|
+
const loadingType = ref("");
|
|
46
|
+
const showMessageDetail = ref(false);
|
|
47
|
+
const activeConversation = ref(void 0);
|
|
48
|
+
function updateActiveConversation() {
|
|
49
|
+
var _a;
|
|
50
|
+
const newResults = props.results;
|
|
51
|
+
const { conversation } = ((_a = newResults == null ? void 0 : newResults.get(SearchType.CHAT_MESSAGE)) == null ? void 0 : _a.resultList[0]) || {};
|
|
52
|
+
const { resultList = [] } = (newResults == null ? void 0 : newResults.get(SearchType.MESSAGE)) || {};
|
|
53
|
+
const existConversation = resultList.find((item) => {
|
|
54
|
+
const { conversationID } = item.conversation || {};
|
|
55
|
+
return conversationID === (conversation == null ? void 0 : conversation.conversationID);
|
|
56
|
+
});
|
|
57
|
+
const showStandardMessageList = props.variant === VariantType.STANDARD && props.searchType === SearchType.MESSAGE;
|
|
58
|
+
const isEmbedded = props.variant === VariantType.EMBEDDED;
|
|
59
|
+
const shouldSetConversation = showStandardMessageList && existConversation && !isH5;
|
|
60
|
+
const currentConversation = shouldSetConversation || isEmbedded ? conversation : void 0;
|
|
61
|
+
activeConversation.value = currentConversation;
|
|
62
|
+
if (isEmbedded && isH5) {
|
|
63
|
+
showMessageDetail.value = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
watch([() => props.results, () => props.searchType, () => props.variant], updateActiveConversation, { deep: true });
|
|
67
|
+
watch(
|
|
68
|
+
() => props.keyword,
|
|
69
|
+
() => {
|
|
70
|
+
if (props.variant === VariantType.MINI) {
|
|
71
|
+
miniInitLimits.value = new Map(defaultMiniInitLimits);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
watch(
|
|
76
|
+
() => props.isLoading,
|
|
77
|
+
(newIsLoading) => {
|
|
78
|
+
if (newIsLoading === false) {
|
|
79
|
+
loadingType.value = "";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
const allZero = computed(() => {
|
|
84
|
+
if (!props.results) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return Array.from(props.results.values()).every((value) => value.totalCount === 0);
|
|
88
|
+
});
|
|
89
|
+
const currentResults = computed(() => {
|
|
90
|
+
if (!props.results || props.variant === VariantType.EMBEDDED) {
|
|
91
|
+
return /* @__PURE__ */ new Map();
|
|
92
|
+
}
|
|
93
|
+
if (props.variant === VariantType.MINI) {
|
|
94
|
+
const limitedResults = /* @__PURE__ */ new Map();
|
|
95
|
+
props.results.forEach((value, key) => {
|
|
96
|
+
const limitedNum = miniInitLimits.value.get(key) || 0;
|
|
97
|
+
if (key !== SearchType.CHAT_MESSAGE) {
|
|
98
|
+
limitedResults.set(key, {
|
|
99
|
+
...value,
|
|
100
|
+
resultList: limitedNum !== 0 ? value.resultList.slice(0, limitedNum) : value.resultList,
|
|
101
|
+
hasMore: limitedNum !== 0 ? value.resultList.length > limitedNum : value.hasMore
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
return limitedResults;
|
|
106
|
+
}
|
|
107
|
+
const filtered = /* @__PURE__ */ new Map();
|
|
108
|
+
if (props.searchType === "all") {
|
|
109
|
+
props.results.forEach((value, key) => {
|
|
110
|
+
if (key !== SearchType.CHAT_MESSAGE) {
|
|
111
|
+
filtered.set(key, value);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
} else if (props.results.has(props.searchType)) {
|
|
115
|
+
filtered.set(props.searchType, props.results.get(props.searchType));
|
|
116
|
+
} else if (props.searchType === SearchType.MESSAGE && props.results.has(SearchType.CHAT_MESSAGE)) {
|
|
117
|
+
filtered.set(props.searchType, props.results.get(SearchType.CHAT_MESSAGE));
|
|
118
|
+
}
|
|
119
|
+
return filtered;
|
|
120
|
+
});
|
|
121
|
+
const chatMessageResult = computed(
|
|
122
|
+
() => {
|
|
123
|
+
var _a, _b;
|
|
124
|
+
return (_b = (_a = props.results) == null ? void 0 : _a.get(SearchType.CHAT_MESSAGE)) == null ? void 0 : _b.resultList[0];
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
const renderOrder = computed(() => {
|
|
128
|
+
if (props.variant !== VariantType.EXACT) {
|
|
129
|
+
return [SearchType.MESSAGE, SearchType.USER, SearchType.GROUP];
|
|
130
|
+
}
|
|
131
|
+
return [SearchType.USER, SearchType.GROUP];
|
|
132
|
+
});
|
|
133
|
+
const getLoadMoreText = (type) => {
|
|
134
|
+
if (type === SearchType.CHAT_MESSAGE) {
|
|
135
|
+
return t("Search.loadMore.messages");
|
|
136
|
+
}
|
|
137
|
+
if (type === SearchType.MESSAGE) {
|
|
138
|
+
return t("Search.loadMore.messages");
|
|
139
|
+
}
|
|
140
|
+
if (type === SearchType.USER) {
|
|
141
|
+
return t("Search.loadMore.users");
|
|
142
|
+
}
|
|
143
|
+
if (type === SearchType.GROUP) {
|
|
144
|
+
return t("Search.loadMore.groups");
|
|
145
|
+
}
|
|
146
|
+
return t("Search.loadMore.default");
|
|
147
|
+
};
|
|
148
|
+
const generateActiveItemClassName = (type, item) => {
|
|
149
|
+
if (type !== SearchType.MESSAGE || !chatMessageResult.value) {
|
|
150
|
+
return "";
|
|
151
|
+
}
|
|
152
|
+
const { conversationID } = item.conversation || {};
|
|
153
|
+
const { conversationID: currentConversationID } = chatMessageResult.value.conversation || {};
|
|
154
|
+
return conversationID === currentConversationID ? $style["SearchResults__item--active"] : "";
|
|
155
|
+
};
|
|
156
|
+
const handleLoadMore = (type) => {
|
|
157
|
+
var _a;
|
|
158
|
+
if (props.variant === VariantType.MINI) {
|
|
159
|
+
miniInitLimits.value = new Map(miniInitLimits.value).set(type, 0);
|
|
160
|
+
}
|
|
161
|
+
loadingType.value = type;
|
|
162
|
+
(_a = props.onLoadMore) == null ? void 0 : _a.call(props, type);
|
|
163
|
+
};
|
|
164
|
+
const handleClickItem = (data, type) => {
|
|
165
|
+
var _a;
|
|
166
|
+
if (type === SearchType.MESSAGE) {
|
|
167
|
+
showMessageDetail.value = true;
|
|
168
|
+
loadingType.value = SearchType.CHAT_MESSAGE;
|
|
169
|
+
}
|
|
170
|
+
(_a = props.onResultItemClick) == null ? void 0 : _a.call(props, data, type);
|
|
171
|
+
};
|
|
172
|
+
const handleBack = () => {
|
|
173
|
+
showMessageDetail.value = false;
|
|
174
|
+
};
|
|
175
|
+
const generateKey = (type, item, index) => {
|
|
176
|
+
var _a;
|
|
177
|
+
if (type === SearchType.MESSAGE) {
|
|
178
|
+
return `${type}-${(_a = item.conversation) == null ? void 0 : _a.conversationID}-${index}`;
|
|
179
|
+
}
|
|
180
|
+
if (type === SearchType.CHAT_MESSAGE) {
|
|
181
|
+
return `${type}-${item == null ? void 0 : item.ID}-${index}`;
|
|
182
|
+
}
|
|
183
|
+
if (type === SearchType.USER) {
|
|
184
|
+
return `${type}-${item == null ? void 0 : item.profile.userID}-${index}`;
|
|
185
|
+
}
|
|
186
|
+
if (type === SearchType.GROUP) {
|
|
187
|
+
return `${type}-${item == null ? void 0 : item.groupInfo.groupID}-${index}`;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return (_ctx, _cache) => {
|
|
191
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
192
|
+
return !_ctx.keyword ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
193
|
+
_ctx.SearchResultsPresearch ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsPresearch), { key: 0 })) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsEmpty), {
|
|
194
|
+
key: 1,
|
|
195
|
+
text: unref(t)("Search.input.placeholder.keywords")
|
|
196
|
+
}, null, 8, ["text"]))
|
|
197
|
+
])) : _ctx.error ? (openBlock(), createElementBlock("div", {
|
|
198
|
+
key: 1,
|
|
199
|
+
class: normalizeClass(unref($style)["SearchResults__error"])
|
|
200
|
+
}, toDisplayString(_ctx.error.message), 3)) : !((_a = _ctx.results) == null ? void 0 : _a.size) && _ctx.isLoading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
201
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsLoading)))
|
|
202
|
+
])) : !((_b = _ctx.results) == null ? void 0 : _b.size) && !_ctx.isLoading ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
203
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsEmpty)))
|
|
204
|
+
])) : _ctx.results.size > 0 && allZero.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
205
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsEmpty)))
|
|
206
|
+
])) : _ctx.searchType !== "all" && ((_d = (_c = _ctx.results) == null ? void 0 : _c.get(_ctx.searchType)) == null ? void 0 : _d.totalCount) === 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
207
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsEmpty)))
|
|
208
|
+
])) : showMessageDetail.value && unref(isH5) ? (openBlock(), createElementBlock("div", {
|
|
209
|
+
key: 6,
|
|
210
|
+
class: normalizeClass([
|
|
211
|
+
_ctx.variant === unref(VariantType).EMBEDDED ? unref($style)["SearchResults--embedded"] : unref($style)["SearchResults__message-detail-page"]
|
|
212
|
+
])
|
|
213
|
+
}, [
|
|
214
|
+
loadingType.value === unref(SearchType).CHAT_MESSAGE ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsLoading), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
215
|
+
_ctx.variant !== unref(VariantType).EMBEDDED ? (openBlock(), createElementBlock("div", {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: normalizeClass(unref($style)["SearchResults__message-detail-header"])
|
|
218
|
+
}, [
|
|
219
|
+
createVNode(unref(IconBack), { onClick: handleBack }),
|
|
220
|
+
createElementVNode("span", {
|
|
221
|
+
class: normalizeClass(unref($style)["SearchResults__message-detail-title"])
|
|
222
|
+
}, [
|
|
223
|
+
createTextVNode(toDisplayString(unref(t)("Search.results.relatedTo", { count: ((_f = (_e = _ctx.results) == null ? void 0 : _e.get(unref(SearchType).CHAT_MESSAGE)) == null ? void 0 : _f.totalCount) || 0 })) + " " + toDisplayString(unref(t)("Search.results.relatedToSuffix")) + " ", 1),
|
|
224
|
+
createElementVNode("span", {
|
|
225
|
+
class: normalizeClass(unref($style).SearchResults__highlight)
|
|
226
|
+
}, " " + toDisplayString(_ctx.keyword) + " ", 3)
|
|
227
|
+
], 2)
|
|
228
|
+
], 2)) : createCommentVNode("", true),
|
|
229
|
+
createElementVNode("div", {
|
|
230
|
+
class: normalizeClass(unref($style)["SearchResults__message-detail-content"])
|
|
231
|
+
}, [
|
|
232
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_g = chatMessageResult.value) == null ? void 0 : _g.messageList, (item, index) => {
|
|
233
|
+
return openBlock(), createElementBlock("div", {
|
|
234
|
+
key: `${item.ID}-${index}`
|
|
235
|
+
}, [
|
|
236
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultItem), mergeProps({
|
|
237
|
+
data: item,
|
|
238
|
+
type: unref(SearchType).CHAT_MESSAGE,
|
|
239
|
+
keyword: _ctx.keyword
|
|
240
|
+
}, { ref_for: true }, _ctx.onResultItemClick && { onClick: _ctx.onResultItemClick }), null, 16, ["data", "type", "keyword"]))
|
|
241
|
+
]);
|
|
242
|
+
}), 128)),
|
|
243
|
+
((_i = (_h = _ctx.results) == null ? void 0 : _h.get(unref(SearchType).CHAT_MESSAGE)) == null ? void 0 : _i.hasMore) ? (openBlock(), createElementBlock("div", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: normalizeClass(unref($style)["SearchResults__section-footer"])
|
|
246
|
+
}, [
|
|
247
|
+
createVNode(unref(TUIButton), {
|
|
248
|
+
class: normalizeClass(unref($style)["SearchResults__load-more-button"]),
|
|
249
|
+
type: "text",
|
|
250
|
+
disabled: _ctx.isLoading,
|
|
251
|
+
onClick: _cache[0] || (_cache[0] = () => {
|
|
252
|
+
var _a2;
|
|
253
|
+
return (_a2 = _ctx.onLoadMore) == null ? void 0 : _a2.call(_ctx, unref(SearchType).CHAT_MESSAGE);
|
|
254
|
+
})
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
createTextVNode(toDisplayString(_ctx.isLoading ? unref(t)("Search.status.loading") : getLoadMoreText(unref(SearchType).CHAT_MESSAGE)), 1)
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["class", "disabled"])
|
|
261
|
+
], 2)) : createCommentVNode("", true)
|
|
262
|
+
], 2)
|
|
263
|
+
]))
|
|
264
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
265
|
+
key: 7,
|
|
266
|
+
class: normalizeClass(unref($style).SearchResults)
|
|
267
|
+
}, [
|
|
268
|
+
((_j = currentResults.value) == null ? void 0 : _j.size) > 0 ? (openBlock(), createElementBlock("div", {
|
|
269
|
+
key: 0,
|
|
270
|
+
class: normalizeClass(unref($style).SearchResults__list)
|
|
271
|
+
}, [
|
|
272
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderOrder.value, (type) => {
|
|
273
|
+
return openBlock(), createElementBlock("div", {
|
|
274
|
+
key: type,
|
|
275
|
+
class: normalizeClass(unref($style)["SearchResults__result-section"])
|
|
276
|
+
}, [
|
|
277
|
+
currentResults.value.get(type) && currentResults.value.get(type).totalCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
278
|
+
_ctx.searchType === "all" ? (openBlock(), createElementBlock("div", {
|
|
279
|
+
key: 0,
|
|
280
|
+
class: normalizeClass(unref($style)["SearchResults__section-header"])
|
|
281
|
+
}, [
|
|
282
|
+
createElementVNode("h3", null, toDisplayString(unref(t)(_ctx.typeLabels[type])), 1)
|
|
283
|
+
], 2)) : createCommentVNode("", true),
|
|
284
|
+
createElementVNode("div", {
|
|
285
|
+
class: normalizeClass(unref($style)["SearchResults__result-items"])
|
|
286
|
+
}, [
|
|
287
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(currentResults.value.get(type).resultList, (item, index) => {
|
|
288
|
+
return openBlock(), createElementBlock("div", {
|
|
289
|
+
key: generateKey(type, item, index),
|
|
290
|
+
class: normalizeClass(generateActiveItemClassName(type, item))
|
|
291
|
+
}, [
|
|
292
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultItem), {
|
|
293
|
+
data: item,
|
|
294
|
+
type,
|
|
295
|
+
keyword: _ctx.keyword,
|
|
296
|
+
class: normalizeClass(unref($style)["SearchResults__item-border"]),
|
|
297
|
+
onClick: handleClickItem
|
|
298
|
+
}, null, 8, ["data", "type", "keyword", "class"]))
|
|
299
|
+
], 2);
|
|
300
|
+
}), 128))
|
|
301
|
+
], 2),
|
|
302
|
+
currentResults.value.get(type).hasMore ? (openBlock(), createElementBlock("div", {
|
|
303
|
+
key: 1,
|
|
304
|
+
class: normalizeClass(unref($style)["SearchResults__section-footer"])
|
|
305
|
+
}, [
|
|
306
|
+
createVNode(unref(TUIButton), {
|
|
307
|
+
class: normalizeClass(unref($style)["SearchResults__load-more-button"]),
|
|
308
|
+
type: "text",
|
|
309
|
+
disabled: loadingType.value === type,
|
|
310
|
+
onClick: () => handleLoadMore(type)
|
|
311
|
+
}, {
|
|
312
|
+
default: withCtx(() => [
|
|
313
|
+
createTextVNode(toDisplayString(loadingType.value === type ? unref(t)("Search.status.loading") : getLoadMoreText(type)), 1)
|
|
314
|
+
]),
|
|
315
|
+
_: 2
|
|
316
|
+
}, 1032, ["class", "disabled", "onClick"])
|
|
317
|
+
], 2)) : createCommentVNode("", true)
|
|
318
|
+
])) : createCommentVNode("", true)
|
|
319
|
+
], 2);
|
|
320
|
+
}), 128))
|
|
321
|
+
], 2)) : createCommentVNode("", true),
|
|
322
|
+
activeConversation.value && !unref(isH5) ? (openBlock(), createElementBlock("div", {
|
|
323
|
+
key: 1,
|
|
324
|
+
class: normalizeClass(unref($style).SearchResults__list)
|
|
325
|
+
}, [
|
|
326
|
+
loadingType.value === unref(SearchType).CHAT_MESSAGE ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultsLoading), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
327
|
+
_ctx.variant === unref(VariantType).STANDARD ? (openBlock(), createElementBlock("div", {
|
|
328
|
+
key: 0,
|
|
329
|
+
class: normalizeClass(unref($style)["SearchResults__section-header"])
|
|
330
|
+
}, [
|
|
331
|
+
createElementVNode("span", {
|
|
332
|
+
class: normalizeClass(unref($style)["SearchResults__section-header-title"])
|
|
333
|
+
}, [
|
|
334
|
+
createTextVNode(toDisplayString(unref(t)("Search.results.relatedTo", { count: ((_l = (_k = _ctx.results) == null ? void 0 : _k.get(unref(SearchType).CHAT_MESSAGE)) == null ? void 0 : _l.totalCount) || 0 })) + " ", 1),
|
|
335
|
+
createElementVNode("span", {
|
|
336
|
+
class: normalizeClass(unref($style).SearchResults__highlight)
|
|
337
|
+
}, " " + toDisplayString(_ctx.keyword) + " ", 3),
|
|
338
|
+
createTextVNode(" " + toDisplayString(unref(t)("Search.results.relatedToSuffix")), 1)
|
|
339
|
+
], 2),
|
|
340
|
+
createVNode(unref(TUIButton), {
|
|
341
|
+
class: normalizeClass(unref($style)["SearchResults__section-header-action"]),
|
|
342
|
+
type: "text",
|
|
343
|
+
onClick: _cache[1] || (_cache[1] = () => handleClickItem(chatMessageResult.value, unref(SearchType).CHAT_MESSAGE))
|
|
344
|
+
}, {
|
|
345
|
+
default: withCtx(() => [
|
|
346
|
+
createTextVNode(toDisplayString(unref(t)("Search.action.enterChat")) + " ", 1),
|
|
347
|
+
createVNode(unref(IconChevronRight), {
|
|
348
|
+
class: normalizeClass(unref($style).SearchResults__highlight)
|
|
349
|
+
}, null, 8, ["class"])
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["class"])
|
|
353
|
+
], 2)) : createCommentVNode("", true),
|
|
354
|
+
createElementVNode("div", {
|
|
355
|
+
class: normalizeClass(unref($style)["SearchResults__result-items"])
|
|
356
|
+
}, [
|
|
357
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_m = chatMessageResult.value) == null ? void 0 : _m.messageList, (item, index) => {
|
|
358
|
+
return openBlock(), createElementBlock("div", {
|
|
359
|
+
key: `${item.ID}-${index}`
|
|
360
|
+
}, [
|
|
361
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.SearchResultItem), {
|
|
362
|
+
data: item,
|
|
363
|
+
type: unref(SearchType).CHAT_MESSAGE,
|
|
364
|
+
keyword: _ctx.keyword,
|
|
365
|
+
onClick: handleClickItem
|
|
366
|
+
}, null, 8, ["data", "type", "keyword"]))
|
|
367
|
+
]);
|
|
368
|
+
}), 128))
|
|
369
|
+
], 2),
|
|
370
|
+
((_o = (_n = _ctx.results) == null ? void 0 : _n.get(unref(SearchType).CHAT_MESSAGE)) == null ? void 0 : _o.hasMore) ? (openBlock(), createElementBlock("div", {
|
|
371
|
+
key: 1,
|
|
372
|
+
class: normalizeClass(unref($style)["SearchResults__section-footer"])
|
|
373
|
+
}, [
|
|
374
|
+
createVNode(unref(TUIButton), {
|
|
375
|
+
class: normalizeClass(unref($style)["SearchResults__load-more-button"]),
|
|
376
|
+
type: "text",
|
|
377
|
+
disabled: _ctx.isLoading,
|
|
378
|
+
onClick: _cache[2] || (_cache[2] = () => {
|
|
379
|
+
var _a2;
|
|
380
|
+
return (_a2 = _ctx.onLoadMore) == null ? void 0 : _a2.call(_ctx, unref(SearchType).CHAT_MESSAGE);
|
|
381
|
+
})
|
|
382
|
+
}, {
|
|
383
|
+
default: withCtx(() => [
|
|
384
|
+
createTextVNode(toDisplayString(_ctx.isLoading ? unref(t)("Search.status.loading") : getLoadMoreText(unref(SearchType).CHAT_MESSAGE)), 1)
|
|
385
|
+
]),
|
|
386
|
+
_: 1
|
|
387
|
+
}, 8, ["class", "disabled"])
|
|
388
|
+
], 2)) : createCommentVNode("", true)
|
|
389
|
+
]))
|
|
390
|
+
], 2)) : createCommentVNode("", true)
|
|
391
|
+
], 2));
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
const SearchResults = "_SearchResults_o1nv0_295";
|
|
396
|
+
const SearchResults__list = "_SearchResults__list_o1nv0_350";
|
|
397
|
+
const SearchResults__error = "_SearchResults__error_o1nv0_363";
|
|
398
|
+
const SearchResults__highlight = "_SearchResults__highlight_o1nv0_389";
|
|
399
|
+
const style0 = {
|
|
400
|
+
"tui-theme-dark": "_tui-theme-dark_o1nv0_2",
|
|
401
|
+
"tui-theme-light": "_tui-theme-light_o1nv0_140",
|
|
402
|
+
SearchResults,
|
|
403
|
+
"SearchResults__section-header": "_SearchResults__section-header_o1nv0_305",
|
|
404
|
+
"SearchResults__item-border": "_SearchResults__item-border_o1nv0_322",
|
|
405
|
+
"SearchResults__load-more-button": "_SearchResults__load-more-button_o1nv0_335",
|
|
406
|
+
SearchResults__list,
|
|
407
|
+
SearchResults__error,
|
|
408
|
+
"SearchResults__load-more-container": "_SearchResults__load-more-container_o1nv0_369",
|
|
409
|
+
"SearchResults__load-more-error": "_SearchResults__load-more-error_o1nv0_376",
|
|
410
|
+
"SearchResults__section-header-title": "_SearchResults__section-header-title_o1nv0_382",
|
|
411
|
+
SearchResults__highlight,
|
|
412
|
+
"SearchResults__item--active": "_SearchResults__item--active_o1nv0_394",
|
|
413
|
+
"SearchResults__section-header-action": "_SearchResults__section-header-action_o1nv0_398",
|
|
414
|
+
"SearchResults--embedded": "_SearchResults--embedded_o1nv0_409",
|
|
415
|
+
"SearchResults__message-detail-page": "_SearchResults__message-detail-page_o1nv0_417",
|
|
416
|
+
"SearchResults__message-detail-header": "_SearchResults__message-detail-header_o1nv0_429",
|
|
417
|
+
"SearchResults__message-detail-title": "_SearchResults__message-detail-title_o1nv0_440",
|
|
418
|
+
"SearchResults__message-detail-content": "_SearchResults__message-detail-content_o1nv0_452",
|
|
419
|
+
"SearchResults__result-section": "_SearchResults__result-section_o1nv0_462",
|
|
420
|
+
"SearchResults__result-items": "_SearchResults__result-items_o1nv0_467",
|
|
421
|
+
"SearchResults__section-footer": "_SearchResults__section-footer_o1nv0_472"
|
|
422
|
+
};
|
|
423
|
+
const cssModules = {
|
|
424
|
+
"$style": style0
|
|
425
|
+
};
|
|
426
|
+
const SearchResultsComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
427
|
+
export {
|
|
428
|
+
SearchResultsComponent as default
|
|
429
|
+
};
|