tuikit-atomicx-vue3 3.3.0-beta.3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AttachmentPicker.module-BesmtGyl.js +11 -0
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +76 -0
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +76 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js → MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js} +23 -18
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +76 -0
- package/dist/chat/index.d.ts +3747 -2386
- package/dist/chat/index.js +12 -11
- package/dist/components/BarrageInput/BarrageInputH5.js +32 -8
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -5
- package/dist/components/BarrageInput/TextEditor/index.js +14 -6
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +12 -4
- package/dist/components/BarrageList/i18n/en-US/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/en-US/index.js +2 -1
- package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/BarrageList/i18n/zh-CN/index.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +5 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +3 -3
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +21 -21
- package/dist/components/ChatSetting/i18n/en-US.js +3 -3
- package/dist/components/ChatSetting/i18n/zh-CN.js +3 -3
- package/dist/components/ChatSetting/index.d.ts +1 -4
- package/dist/components/ChatSetting/index.js +3 -6
- package/dist/components/CoGuestPanel/CoGuestPanel.js +1 -1
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +17 -17
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +26 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +2 -1
- package/dist/components/ContactList/ContactList.js +19 -10
- package/dist/components/ContactList/ContactList.vue.d.ts +109 -1
- package/dist/components/ContactList/index.d.ts +158 -26
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +8 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +8 -8
- package/dist/components/ConversationList/ConversationList.js +18 -44
- package/dist/components/ConversationList/ConversationList.vue.d.ts +197 -1535
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +8 -11
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +22 -340
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +80 -134
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +19 -30
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +0 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +14 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +12 -24
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/index.js +17 -21
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -0
- package/dist/components/ConversationList/index.d.ts +468 -2400
- package/dist/components/ConversationList/index.js +1 -1
- package/dist/components/LiveCoreView/index.js +113 -58
- package/dist/components/LiveCoreView/index.vue.d.ts +9 -0
- package/dist/components/LiveList/LiveList.js +7 -5
- package/dist/components/LiveList/LiveListH5.js +77 -71
- package/dist/components/LiveList/i18n/en-US/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/en-US/index.js +6 -1
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/LiveList/i18n/zh-CN/index.js +6 -1
- package/dist/components/LiveList/pullToRefresh.js +204 -0
- package/dist/components/LiveList/pullToRefresh.vue.d.ts +86 -0
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +6 -5
- package/dist/components/LiveScenePanel/index.js +3 -3
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +0 -4
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/index.js +14 -19
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -9
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +18 -9
- package/dist/components/MessageInput/index.d.ts +5 -41
- package/dist/components/MessageInput/index.js +4 -4
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +7 -5
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +2 -1
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +2 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +12 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +3 -3
- package/dist/components/MessageList/MessageForward/MessageForward.js +2 -3
- package/dist/components/MessageList/MessageList.js +14 -7
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +5 -5
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +10 -10
- package/dist/components/MessageList/index.d.ts +143 -5
- package/dist/components/MessageList/index.js +5 -5
- package/dist/components/Search/Search.js +1 -3
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +4 -6
- package/dist/components/Search/SearchResults/Loading/Loading.js +2 -4
- package/dist/components/Search/SearchResults/SearchResults.js +20 -22
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +6 -8
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +5 -7
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +19 -21
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +1 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +5 -7
- package/dist/components/StreamMixer/LocalMixer/index.js +11 -5
- package/dist/components/StreamView/manager/mediaManager.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/UserPicker.vue.d.ts +7 -8
- package/dist/components/UserPicker/components/ListMode/ListMode.js +14 -17
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.vue.d.ts +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.vue.d.ts +3 -3
- package/dist/components/UserPicker/components/TreeMode/TreeNode.vue.d.ts +4 -4
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +3 -3
- package/dist/components/UserPicker/hooks/useSelection.d.ts +8 -8
- package/dist/components/UserPicker/hooks/useTreeState.d.ts +3 -3
- package/dist/components/UserPicker/index.d.ts +134 -3
- package/dist/components/UserPicker/index.js +3 -2
- package/dist/components/UserPicker/type.d.ts +18 -18
- package/dist/index.js +6 -3
- package/dist/rtc/index.d.ts +9 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +3 -3
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +3 -0
- package/dist/states/LoginState.js +1 -0
- package/dist/states/MessageInputState/MessageInputState.js +25 -5
- package/dist/styles/index.css +1275 -3559
- package/dist/types/contact.d.ts +13 -12
- package/dist/types/conversation.d.ts +12 -14
- package/dist/types/engine.d.ts +12 -0
- package/dist/types/engine.js +15 -0
- package/dist/types/index.js +2 -1
- package/dist/utils/json.js +0 -1
- package/package.json +7 -3
- package/src/chat/index.ts +12 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +50 -4
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/Editor.scss +1 -1
- package/src/components/BarrageInput/TextEditor/TextEditor.module.scss +2 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +6 -0
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +8 -8
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +10 -0
- package/src/components/BarrageList/i18n/en-US/index.ts +1 -0
- package/src/components/BarrageList/i18n/zh-CN/index.ts +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +5 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -4
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +2 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +3 -2
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +3 -3
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +10 -7
- package/src/components/ChatSetting/i18n/en-US.ts +3 -3
- package/src/components/ChatSetting/i18n/zh-CN.ts +3 -3
- package/src/components/ChatSetting/index.ts +3 -3
- package/src/components/CoGuestPanel/CoGuestPanel.vue +9 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +17 -9
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +4 -3
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +2 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +2 -2
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +3 -2
- package/src/components/ContactList/ContactList.scss +2 -1
- package/src/components/ContactList/ContactList.vue +18 -3
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +3 -3
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +5 -6
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +3 -3
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +2 -12
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +2 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +2 -1
- package/src/components/ConversationList/ConversationList.scss +0 -5
- package/src/components/ConversationList/ConversationList.vue +15 -41
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +13 -18
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +11 -9
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +14 -16
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +2 -14
- package/src/components/ConversationList/ConversationPreview/index.ts +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveCoreView/index.vue +144 -78
- package/src/components/LiveList/LiveList.vue +3 -0
- package/src/components/LiveList/LiveListH5.vue +60 -85
- package/src/components/LiveList/i18n/en-US/index.ts +5 -0
- package/src/components/LiveList/i18n/zh-CN/index.ts +5 -0
- package/src/components/LiveList/pullToRefresh.vue +364 -0
- package/src/components/LiveScenePanel/CameraSettingDialog.vue +6 -5
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.module.scss +4 -0
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +12 -17
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +3 -2
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +21 -15
- package/src/components/MessageInput/TextEditor/Editor.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +16 -6
- package/src/components/MessageInput/types.d.ts +3 -4
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +1 -1
- package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +10 -7
- package/src/components/MessageList/Message/LocationMessage/LocationMessage.vue +3 -1
- package/src/components/MessageList/Message/MergerMessage/MergerMessage.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +2 -2
- package/src/components/MessageList/MessageForward/MessageForward.vue +3 -3
- package/src/components/MessageList/MessageList.vue +17 -5
- package/src/components/MessageList/MessageTimeDivider/MessageTimeDivider.vue +9 -9
- package/src/components/MessageList/index.ts +5 -4
- package/src/components/Search/Search.scss +0 -3
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +0 -3
- package/src/components/Search/SearchResults/Loading/Loading.scss +0 -3
- package/src/components/Search/SearchResults/SearchResults.scss +7 -16
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +5 -11
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +0 -3
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +5 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +9 -4
- package/src/components/StreamView/manager/mediaManager.ts +1 -1
- package/src/components/UserPicker/UserPicker.vue +6 -9
- package/src/components/UserPicker/components/ListMode/ListMode.vue +3 -7
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +2 -2
- package/src/components/UserPicker/components/TreeMode/TreeMode.vue +3 -3
- package/src/components/UserPicker/components/TreeMode/TreeNode.vue +3 -3
- package/src/components/UserPicker/hooks/useSearchFilter.ts +15 -14
- package/src/components/UserPicker/hooks/useSelection.ts +32 -32
- package/src/components/UserPicker/hooks/useTreeState.ts +4 -4
- package/src/components/UserPicker/index.ts +16 -14
- package/src/components/UserPicker/type.ts +18 -18
- package/src/types/contact.ts +13 -12
- package/src/types/conversation.ts +12 -14
- package/src/types/engine.ts +15 -0
- package/src/utils/json.ts +0 -4
- package/dist/AttachmentPicker.module-0_DWsAtr.js +0 -11
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js +0 -72
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js +0 -72
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js +0 -72
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +0 -15
- package/dist/states/UIOpenControlState/UIOpenControlState.js +0 -28
- package/dist/states/UIOpenControlState/index.d.ts +0 -1
- package/dist/states/UIOpenControlState/index.js +0 -4
package/dist/chat/index.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { View as _sfc_main } from "../baseComp/View/index.js";
|
|
2
|
-
import "../components/ChatSetting/index.js";
|
|
2
|
+
import { ChatSetting as ChatSetting$1 } from "../components/ChatSetting/index.js";
|
|
3
3
|
import { ContactList as ContactList$1, ContactListItem as ContactListItem$1, ContactInfo as ContactInfo$1 } from "../components/ContactList/index.js";
|
|
4
|
-
import { ConversationList as ConversationList$1, ConversationActions as ConversationActions$1, ConversationListHeader as ConversationListHeader$1, ConversationListContent as ConversationListContent$1, ConversationPreview as ConversationPreview$1 } from "../components/ConversationList/index.js";
|
|
4
|
+
import { ConversationList as ConversationList$1, ConversationActions as ConversationActions$1, ConversationListHeader as ConversationListHeader$1, ConversationListContent as ConversationListContent$1, ConversationPreview as ConversationPreview$1, ConversationPreviewUI as ConversationPreviewUI$1, ConversationSearch as ConversationSearch$1 } from "../components/ConversationList/index.js";
|
|
5
5
|
import { MessageInput as MessageInput$1, EmojiPicker as EmojiPicker$1 } from "../components/MessageInput/index.js";
|
|
6
|
-
import "../components/MessageList/index.js";
|
|
6
|
+
import { MessageList as MessageList$1, Message as Message$1 } from "../components/MessageList/index.js";
|
|
7
7
|
import { Search as Search$1, SearchAdvanced as SearchAdvanced$1, UserAdvanced as UserAdvanced$1, MessageAdvanced as MessageAdvanced$1, SearchResults as SearchResults$1, SearchResultItem as SearchResultItem$1, SearchBar as SearchBar$1 } from "../components/Search/index.js";
|
|
8
8
|
import { useMessageActions as useMessageActions$1 } from "../hooks/useMessageActions.js";
|
|
9
9
|
import { useSearchState as useSearchState$1 } from "../states/SearchState.js";
|
|
10
10
|
import ChatLoginServer from "./server.js";
|
|
11
|
-
import MessageListComponent from "../components/MessageList/MessageList.js";
|
|
12
|
-
import ChatSettingComponent from "../components/ChatSetting/ChatSetting.js";
|
|
13
|
-
import { useUIOpenControlState as useUIOpenControlState$1 } from "../states/UIOpenControlState/UIOpenControlState.js";
|
|
14
11
|
import { useMessageListState as useMessageListState$1 } from "../states/MessageListState/MessageListState.js";
|
|
15
12
|
import { useMessageInputState as useMessageInputState$1 } from "../states/MessageInputState/MessageInputState.js";
|
|
16
13
|
import { useMessageActionState as useMessageActionState$1 } from "../states/MessageActionState/MessageActionState.js";
|
|
@@ -28,13 +25,16 @@ const ConversationActions = ConversationActions$1;
|
|
|
28
25
|
const ConversationListHeader = ConversationListHeader$1;
|
|
29
26
|
const ConversationListContent = ConversationListContent$1;
|
|
30
27
|
const ConversationPreview = ConversationPreview$1;
|
|
28
|
+
const ConversationPreviewUI = ConversationPreviewUI$1;
|
|
29
|
+
const ConversationSearch = ConversationSearch$1;
|
|
31
30
|
const ContactList = ContactList$1;
|
|
32
31
|
const ContactListItem = ContactListItem$1;
|
|
33
32
|
const ContactInfo = ContactInfo$1;
|
|
34
|
-
const MessageList =
|
|
33
|
+
const MessageList = MessageList$1;
|
|
34
|
+
const Message = Message$1;
|
|
35
35
|
const MessageInput = MessageInput$1;
|
|
36
36
|
const EmojiPicker = EmojiPicker$1;
|
|
37
|
-
const ChatSetting =
|
|
37
|
+
const ChatSetting = ChatSetting$1;
|
|
38
38
|
const View = _sfc_main;
|
|
39
39
|
const useMessageActions = useMessageActions$1;
|
|
40
40
|
const useConversationListState = useConversationListState$1;
|
|
@@ -42,7 +42,6 @@ const useMessageActionState = useMessageActionState$1;
|
|
|
42
42
|
const useMessageInputState = useMessageInputState$1;
|
|
43
43
|
const useMessageListState = useMessageListState$1;
|
|
44
44
|
const useSearchState = useSearchState$1;
|
|
45
|
-
const useUIOpenControlState = useUIOpenControlState$1;
|
|
46
45
|
export {
|
|
47
46
|
ChatSetting,
|
|
48
47
|
ContactInfo,
|
|
@@ -53,7 +52,10 @@ export {
|
|
|
53
52
|
ConversationListContent,
|
|
54
53
|
ConversationListHeader,
|
|
55
54
|
ConversationPreview,
|
|
55
|
+
ConversationPreviewUI,
|
|
56
|
+
ConversationSearch,
|
|
56
57
|
EmojiPicker,
|
|
58
|
+
Message,
|
|
57
59
|
MessageAdvanced,
|
|
58
60
|
MessageInput,
|
|
59
61
|
MessageList,
|
|
@@ -69,6 +71,5 @@ export {
|
|
|
69
71
|
useMessageActions,
|
|
70
72
|
useMessageInputState,
|
|
71
73
|
useMessageListState,
|
|
72
|
-
useSearchState
|
|
73
|
-
useUIOpenControlState
|
|
74
|
+
useSearchState
|
|
74
75
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, computed, ref, createElementBlock, openBlock, createCommentVNode, createBlock, normalizeStyle, createElementVNode, createVNode, toDisplayString, unref, withCtx, createTextVNode, nextTick } from "vue";
|
|
2
2
|
import { useUIKit, TUIButton, TUIToast } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { useLiveAudienceState } from "../../states/LiveAudienceState.js";
|
|
4
4
|
import { useLoginState } from "../../states/LoginState.js";
|
|
5
5
|
import BarrageInputPC from "./BarrageInput.js";
|
|
6
|
+
import EmojiPicker from "./EmojiPicker/EmojiPicker.js";
|
|
6
7
|
import { ERROR_MESSAGE } from "./constants.js";
|
|
7
8
|
import { useMessageInputState } from "../../states/MessageInputState/MessageInputState.js";
|
|
8
9
|
import { _ as _export_sfc } from "../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
9
10
|
const _hoisted_1 = { class: "live-message-input-h5" };
|
|
11
|
+
const _hoisted_2 = { class: "input-actions" };
|
|
10
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
13
|
__name: "BarrageInputH5",
|
|
12
14
|
props: {
|
|
@@ -24,7 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
26
|
emits: ["focus", "blur"],
|
|
25
27
|
setup(__props, { emit: __emit }) {
|
|
26
28
|
const emit = __emit;
|
|
29
|
+
const { t } = useUIKit();
|
|
27
30
|
const props = __props;
|
|
31
|
+
const placeholderText = computed(() => props.placeholder || t("Say something"));
|
|
28
32
|
const { loginUserInfo } = useLoginState();
|
|
29
33
|
const { audienceList } = useLiveAudienceState();
|
|
30
34
|
const inputClass = computed(() => ["message-input-container-h5", props.containerClass].join(" "));
|
|
@@ -35,9 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
39
|
});
|
|
36
40
|
return props.disabled || (localUser == null ? void 0 : localUser.isMessageDisabled);
|
|
37
41
|
});
|
|
38
|
-
const {
|
|
39
|
-
const { inputRawValue, setContent, sendMessage, blurEditor } = useMessageInputState();
|
|
42
|
+
const { inputRawValue, setContent, sendMessage, blurEditor, focusEditor } = useMessageInputState();
|
|
40
43
|
const isFocus = ref(false);
|
|
44
|
+
const editorShow = ref(false);
|
|
41
45
|
const isTouching = ref(false);
|
|
42
46
|
const handleTouchStart = () => {
|
|
43
47
|
isTouching.value = true;
|
|
@@ -71,9 +75,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
75
|
isFocus.value = false;
|
|
72
76
|
emit("blur");
|
|
73
77
|
};
|
|
78
|
+
const handleShowEditor = async () => {
|
|
79
|
+
editorShow.value = true;
|
|
80
|
+
await nextTick();
|
|
81
|
+
focusEditor();
|
|
82
|
+
};
|
|
74
83
|
return (_ctx, _cache) => {
|
|
75
84
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
76
|
-
|
|
85
|
+
!editorShow.value ? (openBlock(), createElementBlock("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "placeholder-container",
|
|
88
|
+
style: normalizeStyle({ width: props.width }),
|
|
89
|
+
onClick: handleShowEditor
|
|
90
|
+
}, [
|
|
91
|
+
createElementVNode("div", _hoisted_2, [
|
|
92
|
+
createVNode(EmojiPicker, {
|
|
93
|
+
disabled: disabled.value,
|
|
94
|
+
"trigger-style": { display: "flex" }
|
|
95
|
+
}, null, 8, ["disabled"])
|
|
96
|
+
]),
|
|
97
|
+
createElementVNode("span", null, toDisplayString(placeholderText.value), 1)
|
|
98
|
+
], 4)) : createCommentVNode("", true),
|
|
99
|
+
editorShow.value ? (openBlock(), createBlock(BarrageInputPC, {
|
|
100
|
+
key: 1,
|
|
77
101
|
autoFocus: props.autoFocus,
|
|
78
102
|
containerClass: inputClass.value,
|
|
79
103
|
containerStyle: props.containerStyle,
|
|
@@ -81,14 +105,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
105
|
height: props.height,
|
|
82
106
|
minHeight: props.minHeight,
|
|
83
107
|
maxHeight: props.maxHeight,
|
|
84
|
-
placeholder:
|
|
108
|
+
placeholder: placeholderText.value,
|
|
85
109
|
disabled: disabled.value,
|
|
86
110
|
maxLength: props.maxLength,
|
|
87
111
|
onFocus: handleFocus,
|
|
88
112
|
onBlur: handleBlur
|
|
89
|
-
}, null, 8, ["autoFocus", "containerClass", "containerStyle", "width", "height", "minHeight", "maxHeight", "placeholder", "disabled", "maxLength"]),
|
|
113
|
+
}, null, 8, ["autoFocus", "containerClass", "containerStyle", "width", "height", "minHeight", "maxHeight", "placeholder", "disabled", "maxLength"])) : createCommentVNode("", true),
|
|
90
114
|
isFocus.value ? (openBlock(), createBlock(unref(TUIButton), {
|
|
91
|
-
key:
|
|
115
|
+
key: 2,
|
|
92
116
|
type: "primary",
|
|
93
117
|
onTouchstart: handleTouchStart,
|
|
94
118
|
onTouchend: handleTouchEnd
|
|
@@ -102,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
126
|
};
|
|
103
127
|
}
|
|
104
128
|
});
|
|
105
|
-
const BarrageInputH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
129
|
+
const BarrageInputH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9fd6640c"]]);
|
|
106
130
|
export {
|
|
107
131
|
BarrageInputH5 as default
|
|
108
132
|
};
|
|
@@ -7,11 +7,15 @@ import { useMessageInputState } from "../../../states/MessageInputState/MessageI
|
|
|
7
7
|
import { MessageContentType } from "../../../states/MessageInputState/type.js";
|
|
8
8
|
import { _ as _export_sfc } from "../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
9
9
|
const styles = {
|
|
10
|
-
"emoji-picker__icon": "_emoji-
|
|
11
|
-
"emoji-picker__list": "_emoji-
|
|
12
|
-
"emoji-picker__list-item": "_emoji-picker__list-
|
|
10
|
+
"emoji-picker__icon": "_emoji-picker__icon_77iku_1",
|
|
11
|
+
"emoji-picker__list": "_emoji-picker__list_77iku_4",
|
|
12
|
+
"emoji-picker__list-item": "_emoji-picker__list-item_77iku_16"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_1 = {
|
|
15
|
+
class: "flex flex-col gap-2.5",
|
|
16
|
+
tabindex: "-1",
|
|
17
|
+
style: { "outline": "none" }
|
|
13
18
|
};
|
|
14
|
-
const _hoisted_1 = { class: "flex flex-col gap-2.5" };
|
|
15
19
|
const _hoisted_2 = ["onClick"];
|
|
16
20
|
const _hoisted_3 = ["src", "alt"];
|
|
17
21
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -105,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
109
|
};
|
|
106
110
|
}
|
|
107
111
|
});
|
|
108
|
-
const EmojiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
112
|
+
const EmojiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6d8acff6"]]);
|
|
109
113
|
export {
|
|
110
114
|
EmojiPicker as default
|
|
111
115
|
};
|
|
@@ -4,15 +4,15 @@ import { ERROR_MESSAGE } from "../constants.js";
|
|
|
4
4
|
import { createEditor } from "./EditorCore.js";
|
|
5
5
|
import { useConversationListState } from "../../../states/ConversationListState/ConversationListState.js";
|
|
6
6
|
import { useMessageInputState } from "../../../states/MessageInputState/MessageInputState.js";
|
|
7
|
-
const disabled = "
|
|
8
|
-
const editor = "
|
|
7
|
+
const disabled = "_disabled_jp6u3_13";
|
|
8
|
+
const editor = "_editor_jp6u3_30";
|
|
9
9
|
const styles = {
|
|
10
|
-
"input-wrapper": "_input-
|
|
10
|
+
"input-wrapper": "_input-wrapper_jp6u3_1",
|
|
11
11
|
disabled,
|
|
12
|
-
"input-prefix": "_input-
|
|
13
|
-
"input-suffix": "_input-
|
|
12
|
+
"input-prefix": "_input-prefix_jp6u3_17",
|
|
13
|
+
"input-suffix": "_input-suffix_jp6u3_23",
|
|
14
14
|
editor,
|
|
15
|
-
"disabled-editor": "_disabled-
|
|
15
|
+
"disabled-editor": "_disabled-editor_jp6u3_39"
|
|
16
16
|
};
|
|
17
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
__name: "TextEditor",
|
|
@@ -60,11 +60,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
onFocus: () => {
|
|
63
|
+
var _a;
|
|
63
64
|
isFocused.value = true;
|
|
65
|
+
if (navigator && "virtualKeyboard" in navigator) {
|
|
66
|
+
(_a = navigator == null ? void 0 : navigator.virtualKeyboard) == null ? void 0 : _a.show();
|
|
67
|
+
}
|
|
64
68
|
emit("focus");
|
|
65
69
|
},
|
|
66
70
|
onBlur: () => {
|
|
71
|
+
var _a;
|
|
67
72
|
isFocused.value = false;
|
|
73
|
+
if (navigator && "virtualKeyboard" in navigator) {
|
|
74
|
+
(_a = navigator == null ? void 0 : navigator.virtualKeyboard) == null ? void 0 : _a.hide();
|
|
75
|
+
}
|
|
68
76
|
emit("blur");
|
|
69
77
|
}
|
|
70
78
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IMessageModel } from '@tencentcloud/chat-uikit-engine';
|
|
1
|
+
import { IMessageModel as MessageModel } from '@tencentcloud/chat-uikit-engine';
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
message:
|
|
3
|
+
interface GroupTipMessageProps {
|
|
4
|
+
message: MessageModel;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<GroupTipMessageProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<GroupTipMessageProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
7
|
export default _default;
|
|
8
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
9
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -3,6 +3,7 @@ import { TUIStore } from "@tencentcloud/chat-uikit-engine";
|
|
|
3
3
|
import { useUIKit, TUIToast } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
4
|
import { c as cs } from "../../../../index-BF6QB9jF.js";
|
|
5
5
|
import { useScroll } from "../../../../hooks/useScroll.js";
|
|
6
|
+
import { useLiveState } from "../../../../states/LiveState/index.js";
|
|
6
7
|
import { safeJSONParse } from "../../../../utils/json.js";
|
|
7
8
|
import { useMessageListContext } from "../../MessageListContext.js";
|
|
8
9
|
import { useBarrageListState } from "../../../../states/BarrageListState/BarrageListState.js";
|
|
@@ -12,10 +13,14 @@ const _hoisted_2 = { class: "text-message__reference__header" };
|
|
|
12
13
|
const _hoisted_3 = { class: "text-message__reference__content" };
|
|
13
14
|
const _hoisted_4 = { class: "text-message__content" };
|
|
14
15
|
const _hoisted_5 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "user-badge"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_6 = {
|
|
15
20
|
key: 0,
|
|
16
21
|
class: "text-message__content__text"
|
|
17
22
|
};
|
|
18
|
-
const
|
|
23
|
+
const _hoisted_7 = ["src", "alt"];
|
|
19
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
25
|
__name: "TextMessage",
|
|
21
26
|
props: {
|
|
@@ -23,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
28
|
isLastInChunk: { type: Boolean, default: false }
|
|
24
29
|
},
|
|
25
30
|
setup(__props) {
|
|
31
|
+
const { currentLive } = useLiveState();
|
|
26
32
|
const context = useMessageListContext("");
|
|
27
33
|
const props = __props;
|
|
28
34
|
const { t } = useUIKit();
|
|
@@ -76,6 +82,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
82
|
});
|
|
77
83
|
};
|
|
78
84
|
return (_ctx, _cache) => {
|
|
85
|
+
var _a;
|
|
79
86
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
80
87
|
referencedInfo.value.content ? (openBlock(), createElementBlock("div", {
|
|
81
88
|
key: 0,
|
|
@@ -95,18 +102,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
102
|
], 2)) : createCommentVNode("", true),
|
|
96
103
|
createElementVNode("div", _hoisted_4, [
|
|
97
104
|
(openBlock(), createBlock(resolveDynamicComponent(unref(context).slots["user-badge"]), { message: _ctx.message }, null, 8, ["message"])),
|
|
105
|
+
_ctx.message.from === ((_a = unref(currentLive)) == null ? void 0 : _a.liveOwner.userId) && !unref(context).slots["user-badge"] ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(unref(t)("Anchor")), 1)) : createCommentVNode("", true),
|
|
98
106
|
createElementVNode("span", {
|
|
99
107
|
class: "text-message__content__nick",
|
|
100
108
|
onClick: handleNickClick
|
|
101
109
|
}, toDisplayString(`${_ctx.message.nick || _ctx.message.from}: `), 1),
|
|
102
110
|
(openBlock(true), createElementBlock(Fragment, null, renderList(messageContent.value.text, (item, index) => {
|
|
103
111
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
104
|
-
item.name === "text" ? (openBlock(), createElementBlock("span",
|
|
112
|
+
item.name === "text" ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.text), 1)) : (openBlock(), createElementBlock("img", {
|
|
105
113
|
key: 1,
|
|
106
114
|
class: "text-message__content__img",
|
|
107
115
|
src: item.src,
|
|
108
116
|
alt: item.emojiKey || ""
|
|
109
|
-
}, null, 8,
|
|
117
|
+
}, null, 8, _hoisted_7))
|
|
110
118
|
], 64);
|
|
111
119
|
}), 128))
|
|
112
120
|
])
|
|
@@ -114,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
122
|
};
|
|
115
123
|
}
|
|
116
124
|
});
|
|
117
|
-
const TextMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
125
|
+
const TextMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1614054f"]]);
|
|
118
126
|
export {
|
|
119
127
|
TextMessage as default
|
|
120
128
|
};
|
|
@@ -6,7 +6,8 @@ const resource = {
|
|
|
6
6
|
Unmute: "Unmute",
|
|
7
7
|
"Operation Successful": "Operation successful",
|
|
8
8
|
"Operation Failed": "Operation failed",
|
|
9
|
-
"This message contains risky content": "This message contains risky content"
|
|
9
|
+
"This message contains risky content": "This message contains risky content",
|
|
10
|
+
"Anchor": "ANCHOR"
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
13
|
resource
|
|
@@ -8,7 +8,8 @@ const resource = {
|
|
|
8
8
|
"Operation Failed": "操作失败",
|
|
9
9
|
"Mute Success": "禁言成功",
|
|
10
10
|
"Unmute Success": "解除禁言成功",
|
|
11
|
-
"This message contains risky content": "该消息包含风险内容"
|
|
11
|
+
"This message contains risky content": "该消息包含风险内容",
|
|
12
|
+
"Anchor": "主播"
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
15
|
resource
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
2
|
import { useUIKit, TUIButton, TUIDialog, TUIToast } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
-
import "../../../UserPicker/index.js";
|
|
3
|
+
import { UserPicker } from "../../../UserPicker/index.js";
|
|
4
4
|
import { useGroupSettingState } from "../../../../states/GroupSettingState/GroupSettingState.js";
|
|
5
5
|
import { GroupPermission } from "../../../../states/GroupSettingState/types.js";
|
|
6
|
-
import UserPicker from "../../../UserPicker/UserPicker.js";
|
|
7
6
|
import { _ as _export_sfc } from "../../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
8
7
|
const _hoisted_1 = {
|
|
9
8
|
class: /* @__PURE__ */ normalizeClass([
|
|
@@ -129,6 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
128
|
_: 1
|
|
130
129
|
})) : createCommentVNode("", true),
|
|
131
130
|
createVNode(unref(TUIDialog), {
|
|
131
|
+
appendTo: "body",
|
|
132
132
|
visible: isShowTransferDialog.value,
|
|
133
133
|
title: unref(t)("ChatSetting.transfer_group_owner"),
|
|
134
134
|
"custom-classes": ["user-picker-dialog"],
|
|
@@ -154,6 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
154
|
_: 1
|
|
155
155
|
}, 8, ["visible", "title"]),
|
|
156
156
|
createVNode(unref(TUIDialog), {
|
|
157
|
+
appendTo: "body",
|
|
157
158
|
visible: isShowDismissDialog.value,
|
|
158
159
|
title: unref(t)("ChatSetting.dismiss_group"),
|
|
159
160
|
onClose: _cache[5] || (_cache[5] = () => isShowDismissDialog.value = false),
|
|
@@ -161,6 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
162
|
onConfirm: handleDismissGroup
|
|
162
163
|
}, null, 8, ["visible", "title"]),
|
|
163
164
|
createVNode(unref(TUIDialog), {
|
|
165
|
+
appendTo: "body",
|
|
164
166
|
visible: isShowQuitDialog.value,
|
|
165
167
|
title: unref(t)("ChatSetting.quit_group"),
|
|
166
168
|
onClose: _cache[7] || (_cache[7] = () => isShowQuitDialog.value = false),
|
|
@@ -176,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
});
|
|
179
|
-
const GroupActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
181
|
+
const GroupActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-21a17b84"]]);
|
|
180
182
|
export {
|
|
181
183
|
GroupActions as default
|
|
182
184
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, watch, computed, createBlock, createCommentVNode, openBlock, unref, normalizeClass, withCtx, createVNode, createElementBlock, Fragment } from "vue";
|
|
2
2
|
import { useUIKit, TUIDialog, TUIToast } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { View as _sfc_main$1 } from "../../../baseComp/View/index.js";
|
|
4
|
-
import "../../UserPicker/index.js";
|
|
4
|
+
import { UserPicker } from "../../UserPicker/index.js";
|
|
5
5
|
import GroupActions from "./GroupActions/GroupActions.js";
|
|
6
6
|
import GroupInfo from "./GroupInfo/GroupInfo.js";
|
|
7
7
|
import GroupManagement from "./GroupManagement/GroupManagement.js";
|
|
@@ -10,7 +10,6 @@ import GroupMembers from "./GroupMembers/GroupMembers.js";
|
|
|
10
10
|
import PersonalSettings from "./PersonalSettings/PersonalSettings.js";
|
|
11
11
|
import { useGroupSettingState } from "../../../states/GroupSettingState/GroupSettingState.js";
|
|
12
12
|
import { GroupPermission, GroupInviteType, GroupMemberRole } from "../../../states/GroupSettingState/types.js";
|
|
13
|
-
import UserPicker from "../../UserPicker/UserPicker.js";
|
|
14
13
|
import { useContactListState } from "../../../states/ContactListState/ContactListState.js";
|
|
15
14
|
import { _ as _export_sfc } from "../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
16
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -228,6 +227,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
227
|
createVNode(unref(PersonalSettings)),
|
|
229
228
|
createVNode(unref(GroupActions)),
|
|
230
229
|
createVNode(unref(TUIDialog), {
|
|
230
|
+
appendTo: "body",
|
|
231
231
|
visible: isShowUserPickerDialog.value,
|
|
232
232
|
title: userPickerDialogTitle.value,
|
|
233
233
|
"custom-classes": ["user-picker-dialog"],
|
|
@@ -256,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
|
-
const GroupChatSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
259
|
+
const GroupChatSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-358c1266"]]);
|
|
260
260
|
export {
|
|
261
261
|
GroupChatSetting as default
|
|
262
262
|
};
|
|
@@ -43,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
if (value.length === 0) {
|
|
44
44
|
return t("ChatSetting.group_name_required");
|
|
45
45
|
}
|
|
46
|
-
if (value.length >
|
|
46
|
+
if (value.length > 30) {
|
|
47
47
|
return t("ChatSetting.group_name_max_length");
|
|
48
48
|
}
|
|
49
49
|
if (value === (originalValue || "")) {
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
if (typeof value !== "string") {
|
|
56
56
|
return t("ChatSetting.group_notification_required_string");
|
|
57
57
|
}
|
|
58
|
-
if (value.length >
|
|
58
|
+
if (value.length > 130) {
|
|
59
59
|
return t("ChatSetting.group_notification_max_length");
|
|
60
60
|
}
|
|
61
61
|
if (value === (originalValue || "")) {
|
|
@@ -187,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
const GroupInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
190
|
+
const GroupInfo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b84a613"]]);
|
|
191
191
|
export {
|
|
192
192
|
GroupInfo as default
|
|
193
193
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createBlock, createCommentVNode, unref, openBlock, normalizeClass, withCtx, createVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useUIKit, IconArrowStrokeBack, TUIDialog, TUIToast } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { View as _sfc_main$1 } from "../../../../baseComp/View/index.js";
|
|
4
|
-
import "../../../UserPicker/index.js";
|
|
4
|
+
import { UserPicker } from "../../../UserPicker/index.js";
|
|
5
5
|
import SettingItem from "../../SettingItem/SettingItem.js";
|
|
6
6
|
import GroupMembers from "../GroupMembers/GroupMembers.js";
|
|
7
7
|
import { useGroupSettingState } from "../../../../states/GroupSettingState/GroupSettingState.js";
|
|
8
8
|
import { GroupMemberRole, GroupPermission } from "../../../../states/GroupSettingState/types.js";
|
|
9
|
-
import UserPicker from "../../../UserPicker/UserPicker.js";
|
|
10
9
|
import { _ as _export_sfc } from "../../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
11
10
|
const _hoisted_1 = { class: "group-management__title" };
|
|
12
11
|
const _hoisted_2 = { class: "group-management__mute-all-desc" };
|
|
@@ -254,6 +253,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
253
|
_: 1
|
|
255
254
|
})) : createCommentVNode("", true),
|
|
256
255
|
createVNode(unref(TUIDialog), {
|
|
256
|
+
appendTo: "body",
|
|
257
257
|
"custom-classes": ["user-picker-dialog"],
|
|
258
258
|
visible: isShowUserPickerDialog.value,
|
|
259
259
|
title: userPickerTitle.value,
|
|
@@ -279,7 +279,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
const GroupManagement = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
282
|
+
const GroupManagement = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91345f9d"]]);
|
|
283
283
|
export {
|
|
284
284
|
GroupManagement as default
|
|
285
285
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, onUnmounted, createElementBlock, createCommentVNode, unref, openBlock, normalizeClass, createElementVNode, createBlock, createTextVNode, toDisplayString, Fragment, renderList, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
-
import { useUIKit, IconArrowStrokeRight,
|
|
2
|
+
import { useUIKit, IconArrowStrokeRight, IconPlus, IconMinus } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import Avatar from "../../../Avatar/Avatar.js";
|
|
4
4
|
import { useGroupSettingState } from "../../../../states/GroupSettingState/GroupSettingState.js";
|
|
5
5
|
import { GroupPermission, GroupMemberRole } from "../../../../states/GroupSettingState/types.js";
|
|
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
210
210
|
onClick: handleAddMember
|
|
211
211
|
}, [
|
|
212
212
|
createElementVNode("div", _hoisted_6, [
|
|
213
|
-
createVNode(unref(
|
|
213
|
+
createVNode(unref(IconPlus))
|
|
214
214
|
]),
|
|
215
215
|
createElementVNode("div", _hoisted_7, toDisplayString(unref(t)("ChatSetting.add")), 1)
|
|
216
216
|
])) : createCommentVNode("", true),
|
|
@@ -244,7 +244,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
const GroupMembers = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
247
|
+
const GroupMembers = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8bb019f4"]]);
|
|
248
248
|
export {
|
|
249
249
|
GroupMembers as default
|
|
250
250
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, useCssModule, ref, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, toDisplayString, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode, createBlock, normalizeStyle, nextTick } from "vue";
|
|
2
|
-
import { c as cs } from "../../../index-BF6QB9jF.js";
|
|
3
2
|
import { useUIKit, TUIButton, IconEditNameCard } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { c as cs } from "../../../index-BF6QB9jF.js";
|
|
4
4
|
import { _ as _export_sfc } from "../../../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
const _hoisted_1 = ["checked", "disabled"];
|
|
6
6
|
const _hoisted_2 = ["value", "placeholder", "disabled"];
|
|
@@ -265,26 +265,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
const style0 = {
|
|
268
|
-
"setting-item": "_setting-
|
|
269
|
-
"setting-item--disabled": "_setting-item--
|
|
270
|
-
"setting-item__switch-slider": "_setting-item__switch-
|
|
271
|
-
"setting-item--switch": "_setting-item--
|
|
272
|
-
"setting-item__label": "_setting-
|
|
273
|
-
"setting-item__content-wrapper": "_setting-item__content-
|
|
274
|
-
"setting-item__content": "_setting-
|
|
275
|
-
"setting-item__value": "_setting-
|
|
276
|
-
"setting-item__value--placeholder": "_setting-item__value--
|
|
277
|
-
"setting-item__switch": "_setting-
|
|
278
|
-
"setting-item__switch-input": "_setting-item__switch-
|
|
279
|
-
"setting-item__edit-container": "_setting-item__edit-
|
|
280
|
-
"setting-item__input": "_setting-
|
|
281
|
-
"setting-item__textarea": "_setting-
|
|
282
|
-
"setting-item__input--error": "_setting-item__input--
|
|
283
|
-
"setting-item__textarea--error": "_setting-item__textarea--
|
|
284
|
-
"setting-item__error": "_setting-
|
|
285
|
-
"setting-item__actions": "_setting-
|
|
286
|
-
"setting-item__btn--cancel": "_setting-item__btn--
|
|
287
|
-
"setting-item__btn--confirm": "_setting-item__btn--
|
|
268
|
+
"setting-item": "_setting-item_j0ui4_1",
|
|
269
|
+
"setting-item--disabled": "_setting-item--disabled_j0ui4_13",
|
|
270
|
+
"setting-item__switch-slider": "_setting-item__switch-slider_j0ui4_17",
|
|
271
|
+
"setting-item--switch": "_setting-item--switch_j0ui4_20",
|
|
272
|
+
"setting-item__label": "_setting-item__label_j0ui4_25",
|
|
273
|
+
"setting-item__content-wrapper": "_setting-item__content-wrapper_j0ui4_30",
|
|
274
|
+
"setting-item__content": "_setting-item__content_j0ui4_30",
|
|
275
|
+
"setting-item__value": "_setting-item__value_j0ui4_43",
|
|
276
|
+
"setting-item__value--placeholder": "_setting-item__value--placeholder_j0ui4_49",
|
|
277
|
+
"setting-item__switch": "_setting-item__switch_j0ui4_17",
|
|
278
|
+
"setting-item__switch-input": "_setting-item__switch-input_j0ui4_60",
|
|
279
|
+
"setting-item__edit-container": "_setting-item__edit-container_j0ui4_97",
|
|
280
|
+
"setting-item__input": "_setting-item__input_j0ui4_103",
|
|
281
|
+
"setting-item__textarea": "_setting-item__textarea_j0ui4_103",
|
|
282
|
+
"setting-item__input--error": "_setting-item__input--error_j0ui4_120",
|
|
283
|
+
"setting-item__textarea--error": "_setting-item__textarea--error_j0ui4_120",
|
|
284
|
+
"setting-item__error": "_setting-item__error_j0ui4_130",
|
|
285
|
+
"setting-item__actions": "_setting-item__actions_j0ui4_135",
|
|
286
|
+
"setting-item__btn--cancel": "_setting-item__btn--cancel_j0ui4_140",
|
|
287
|
+
"setting-item__btn--confirm": "_setting-item__btn--confirm_j0ui4_140"
|
|
288
288
|
};
|
|
289
289
|
const cssModules = {
|
|
290
290
|
"$style": style0
|
|
@@ -40,13 +40,13 @@ const ChatSetting = {
|
|
|
40
40
|
// Validation messages
|
|
41
41
|
group_name_required_string: "Group name must be a string",
|
|
42
42
|
group_name_required: "Group name cannot be empty",
|
|
43
|
-
group_name_max_length: "Group name cannot exceed
|
|
43
|
+
group_name_max_length: "Group name cannot exceed 30 characters",
|
|
44
44
|
group_name_unchanged: "Please modify the group name before submitting",
|
|
45
45
|
group_introduction_required_string: "Group introduction must be a string",
|
|
46
|
-
group_introduction_max_length: "Group introduction cannot exceed
|
|
46
|
+
group_introduction_max_length: "Group introduction cannot exceed 130 characters",
|
|
47
47
|
group_introduction_unchanged: "Please modify the group introduction before submitting",
|
|
48
48
|
group_notification_required_string: "Group notification must be a string",
|
|
49
|
-
group_notification_max_length: "Group notification cannot exceed
|
|
49
|
+
group_notification_max_length: "Group notification cannot exceed 130 characters",
|
|
50
50
|
group_notification_unchanged: "Please modify the group notification before submitting",
|
|
51
51
|
group_name_card_required_string: "Name card must be a string",
|
|
52
52
|
group_name_card_unchanged: "Please modify the name card before submitting",
|
|
@@ -40,13 +40,13 @@ const ChatSetting = {
|
|
|
40
40
|
// Validation messages
|
|
41
41
|
group_name_required_string: "群名称必须是字符串",
|
|
42
42
|
group_name_required: "群名称不能为空",
|
|
43
|
-
group_name_max_length: "群名称不能超过
|
|
43
|
+
group_name_max_length: "群名称不能超过30个字符",
|
|
44
44
|
group_name_unchanged: "请修改群名称后再提交",
|
|
45
45
|
group_introduction_required_string: "群简介必须是字符串",
|
|
46
|
-
group_introduction_max_length: "群简介不能超过
|
|
46
|
+
group_introduction_max_length: "群简介不能超过130个字符",
|
|
47
47
|
group_introduction_unchanged: "请修改群简介后再提交",
|
|
48
48
|
group_notification_required_string: "群公告必须是字符串",
|
|
49
|
-
group_notification_max_length: "群公告不能超过
|
|
49
|
+
group_notification_max_length: "群公告不能超过130个字符",
|
|
50
50
|
group_notification_unchanged: "请修改群公告后再提交",
|
|
51
51
|
group_name_card_required_string: "群名片必须是字符串",
|
|
52
52
|
group_name_card_unchanged: "请修改群名片后再提交",
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
declare const ChatSetting: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export { ChatSetting };
|
|
4
|
-
export { C2CChatSetting } from './C2CChatSetting';
|
|
5
|
-
export { GroupChatSetting } from './GroupChatSetting';
|