tuikit-atomicx-vue3 3.4.1 → 3.5.0-beta.7
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/.eslintrc.cjs +1 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
- package/dist/baseComp/Modal/Modal.js +431 -23
- package/dist/chat/index.d.ts +68 -53
- package/dist/chat/server.js +15 -15
- package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
- package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
- package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
- package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
- package/dist/components/AudioSettingPanel/index.js +81 -73
- package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
- package/dist/components/BarrageInput/MessageInputState.js +82 -0
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/index.js +7 -7
- package/dist/components/BarrageInput/type.d.ts +17 -0
- package/dist/components/BarrageInput/type.js +4 -0
- package/dist/components/BarrageInput/utils.d.ts +30 -0
- package/dist/components/BarrageInput/utils.js +41 -0
- package/dist/components/BarrageList/BarrageList.js +80 -110
- package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListH5.js +95 -122
- package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
- package/dist/components/BarrageList/BarrageListState.js +106 -0
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
- package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
- package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
- package/dist/components/BarrageList/index.d.ts +0 -36
- package/dist/components/CameraButton/index.js +18 -19
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
- package/dist/components/CoHostPanel/BattlePanel.js +25 -25
- package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +129 -120
- package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
- package/dist/components/CoHostPanel/constants.d.ts +3 -0
- package/dist/components/CoHostPanel/constants.js +6 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
- package/dist/components/ContactList/ContactList.js +7 -7
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
- package/dist/components/ConversationList/ConversationList.js +4 -4
- package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
- package/dist/components/ConversationList/index.d.ts +30 -30
- package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
- package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
- package/dist/components/LiveList/LiveList.js +23 -23
- package/dist/components/LiveList/LiveListH5.js +38 -38
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
- package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
- package/dist/components/LiveScenePanel/index.js +4 -4
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +58 -58
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +6 -6
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +46 -43
- package/dist/components/LiveView/PlayerControl/AudioControl.js +133 -0
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +73 -0
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +168 -0
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +2 -2
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +222 -0
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +8 -1
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +132 -0
- package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +3 -2
- package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +4 -3
- package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +3 -2
- package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +4 -3
- package/dist/components/LiveView/index.d.ts +79 -0
- package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +5 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +6 -2
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +45 -35
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +36 -6
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/MessageList.js +8 -6
- package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MessageList/index.d.ts +20 -20
- package/dist/components/MicButton/index.js +11 -11
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
- package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
- package/dist/components/StreamMixer/index.js +6 -6
- package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
- package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
- package/dist/components/StreamView/Layout/GridLayout.js +5 -5
- package/dist/components/StreamView/index.js +25 -33
- package/dist/components/StreamView/manager/mediaManager.js +54 -60
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +1 -0
- package/dist/components/UIKitModal/index.js +4 -0
- package/dist/components/{BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -14
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +8 -8
- package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
- package/dist/components/VideoSetting/VideoPreview.js +9 -9
- package/dist/components/VideoSetting/VideoProfile.js +6 -6
- package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
- package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
- package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
- package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
- package/dist/hooks/useAudioControl.d.ts +3 -3
- package/dist/hooks/useAudioControl.js +32 -30
- package/dist/hooks/useRoomEngine.js +6 -6
- package/dist/index-B_-9wgM4.js +64 -0
- package/dist/{index-D-KJvDvy.js → index-DMfTuy0v.js} +574 -631
- package/dist/{index-D88ja_7_.js → index-DV6o6s43.js} +1691 -1660
- package/dist/index.d.ts +3 -1
- package/dist/index.js +180 -156
- package/dist/report/MetricsKey.d.ts +16 -0
- package/dist/report/MetricsKey.js +4 -0
- package/dist/report/dataReport.d.ts +12 -0
- package/dist/report/dataReport.js +45 -0
- package/dist/report/index.d.ts +4 -0
- package/dist/report/index.js +6 -0
- package/dist/rtc/index.d.ts +6 -81
- package/dist/rtc/index.js +53 -52
- package/dist/rtc/server.js +45 -40
- package/dist/states/BarrageState/BarrageState.d.ts +74 -0
- package/dist/states/BarrageState/BarrageState.js +80 -0
- package/dist/states/BarrageState/index.d.ts +1 -0
- package/dist/states/BarrageState/index.js +5 -0
- package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
- package/dist/states/BattleState/BattleState.js +203 -0
- package/dist/states/BattleState/index.d.ts +1 -0
- package/dist/states/BattleState/index.js +4 -0
- package/dist/states/CoGuestState.d.ts +24 -94
- package/dist/states/CoGuestState.js +297 -189
- package/dist/states/CoHostState/CoHostState.d.ts +2 -2
- package/dist/states/CoHostState/CoHostState.js +135 -131
- package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
- package/dist/states/DeviceState/DeviceState.js +314 -0
- package/dist/states/DeviceState/index.d.ts +1 -0
- package/dist/states/DeviceState/index.js +4 -0
- package/dist/states/LiveAudienceState.d.ts +3 -1
- package/dist/states/LiveAudienceState.js +106 -63
- package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
- package/dist/states/LiveListState/LiveListState.js +285 -0
- package/dist/states/LiveListState/index.d.ts +1 -0
- package/dist/states/LiveListState/index.js +4 -0
- package/dist/states/LiveMonitorState/api/http.js +147 -129
- package/dist/states/LiveMonitorState/index.js +67 -62
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +46 -11
- package/dist/states/LiveSeatState/index.js +34 -15
- package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
- package/dist/states/LiveSeatState/seatEventManager.js +63 -42
- package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
- package/dist/states/LiveSeatState/seatManager.js +131 -29
- package/dist/states/LiveSeatState/store.d.ts +5 -5
- package/dist/states/LiveSeatState/store.js +12 -10
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
- package/dist/states/LoginState.d.ts +23 -0
- package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
- package/dist/states/MessageInputState/MessageInputState.js +60 -59
- package/dist/states/MessageInputState/utils.d.ts +8 -1
- package/dist/states/MessageInputState/utils.js +30 -10
- package/dist/states/SeatStore.js +82 -83
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/audience.d.ts +21 -0
- package/dist/types/audience.js +4 -1
- package/dist/types/battle.d.ts +75 -3
- package/dist/types/battle.js +5 -1
- package/dist/types/coGuest.d.ts +72 -5
- package/dist/types/coGuest.js +4 -2
- package/dist/types/device.d.ts +38 -17
- package/dist/types/device.js +10 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +96 -80
- package/dist/types/live.d.ts +36 -21
- package/dist/types/live.js +6 -4
- package/dist/types/seat.d.ts +23 -4
- package/dist/types/seat.js +7 -1
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/eventCenter.d.ts +88 -0
- package/dist/utils/eventCenter.js +161 -0
- package/package.json +4 -3
- package/src/chat/server.ts +0 -1
- package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
- package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
- package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
- package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
- package/src/components/AudioSettingPanel/index.vue +4 -2
- package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/MessageInputState.ts +160 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
- package/src/components/BarrageInput/type.ts +26 -0
- package/src/components/BarrageInput/utils.ts +45 -0
- package/src/components/BarrageList/BarrageList.vue +61 -117
- package/src/components/BarrageList/BarrageListH5.vue +75 -159
- package/src/components/BarrageList/BarrageListState.ts +223 -0
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
- package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
- package/src/components/CameraButton/index.vue +0 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
- package/src/components/CoHostPanel/BattlePanel.vue +4 -7
- package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
- package/src/components/CoHostPanel/ConnectionPanel.vue +41 -37
- package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
- package/src/components/CoHostPanel/constants.ts +3 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
- package/src/components/ContactList/ContactList.vue +1 -1
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
- package/src/components/ConversationList/ConversationList.vue +2 -2
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
- package/src/components/LiveList/LiveList.vue +5 -5
- package/src/components/LiveList/LiveListH5.vue +6 -6
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +10 -15
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +30 -31
- package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +5 -3
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +72 -80
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +30 -21
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +26 -42
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +516 -0
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +68 -4
- package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +3 -2
- package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +3 -2
- package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
- package/src/components/{LiveCoreView → LiveView}/index.vue +4 -3
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +3 -1
- package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
- package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/Message.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/MessageList.vue +2 -0
- package/src/components/MessageList/i18n/en-US.ts +66 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +66 -0
- package/src/components/MicButton/index.vue +3 -3
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/Search/SearchBar/SearchBar.vue +1 -1
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
- package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
- package/src/components/Search/SearchResults/SearchResults.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
- package/src/components/StreamMixer/index.vue +1 -1
- package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
- package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
- package/src/components/StreamView/index.vue +28 -14
- package/src/components/StreamView/manager/mediaManager.ts +38 -42
- package/src/components/UIKitModal/UIKitModal.ts +71 -0
- package/src/components/UIKitModal/index.scss +134 -0
- package/src/components/UIKitModal/index.ts +1 -0
- package/src/components/UIKitModal/index.vue +160 -0
- package/src/components/UIKitModal/type.ts +24 -0
- package/src/components/UserPicker/UserPicker.vue +1 -1
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
- package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
- package/src/components/UserPicker/i18n/en-US.ts +1 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
- package/src/components/UserPicker/type.ts +1 -1
- package/src/components/VideoSetting/CameraSelect.vue +1 -2
- package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
- package/src/components/VideoSetting/VideoPreview.vue +1 -2
- package/src/components/VideoSetting/VideoProfile.vue +1 -1
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
- package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
- package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
- package/src/hooks/useAudioControl.ts +17 -4
- package/src/hooks/useRoomEngine.ts +1 -1
- package/src/index.ts +3 -0
- package/src/report/MetricsKey.ts +16 -0
- package/src/report/dataReport.ts +55 -0
- package/src/report/index.ts +7 -0
- package/src/rtc/index.ts +8 -10
- package/src/rtc/server.ts +4 -0
- package/src/types/audience.ts +27 -1
- package/src/types/battle.ts +87 -4
- package/src/types/coGuest.ts +87 -5
- package/src/types/device.ts +41 -16
- package/src/types/index.ts +2 -2
- package/src/types/live.ts +41 -22
- package/src/types/seat.ts +28 -4
- package/src/utils/call.ts +26 -27
- package/src/utils/eventCenter.ts +249 -0
- package/dist/DialogPortal-CvJcEAsn.js +0 -417
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
- package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
- package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
- package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
- package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
- package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
- package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
- package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
- package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
- package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
- package/dist/components/BarrageList/MessageForward/index.js +0 -4
- package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +0 -129
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +0 -78
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -168
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -267
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -99
- package/dist/components/LiveCoreView/index.d.ts +0 -4
- package/dist/components/StreamView/Layout/MixLayout.js +0 -89
- package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
- package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
- package/dist/states/BarrageListState/BarrageListState.js +0 -122
- package/dist/states/BarrageListState/index.d.ts +0 -1
- package/dist/states/BarrageListState/index.js +0 -4
- package/dist/states/BattleState.js +0 -117
- package/dist/states/DeviceState.js +0 -296
- package/dist/states/LiveState/index.js +0 -254
- package/dist/states/VideoMixerState.js +0 -260
- package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
- package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
- package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
- package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
- package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
- package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
- package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
- package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
- package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
- package/src/components/BarrageList/MessageForward/index.ts +0 -3
- package/src/components/LiveCoreView/PlayerControl/PlayerControlState.ts +0 -718
- package/src/components/StreamView/Layout/MixLayout.vue +0 -144
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
|
@@ -37,7 +37,7 @@ const k = { class: "group-item__avatar" }, h = { class: "group-item__content" },
|
|
|
37
37
|
])
|
|
38
38
|
], 34));
|
|
39
39
|
}
|
|
40
|
-
}), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-
|
|
40
|
+
}), w = /* @__PURE__ */ f(I, [["__scopeId", "data-v-4dc91a15"]]);
|
|
41
41
|
export {
|
|
42
42
|
w as default
|
|
43
43
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as
|
|
2
|
-
import { useUIKit as
|
|
1
|
+
import { defineComponent as y, ref as v, createElementBlock as l, openBlock as o, normalizeClass as R, createBlock as I, createElementVNode as h, createVNode as g, unref as c, toDisplayString as E, h as s } from "vue";
|
|
2
|
+
import { useUIKit as U, IconSearchMore as b } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { useSearchState as w } from "../../../states/SearchState.js";
|
|
4
4
|
import { Search as B, SearchBar as T } from "../../Search/index.js";
|
|
5
5
|
import { VariantType as x } from "../../../types/search.js";
|
|
@@ -13,7 +13,7 @@ const K = {
|
|
|
13
13
|
__name: "ContactSearch",
|
|
14
14
|
emits: ["result-click", "keyword-change"],
|
|
15
15
|
setup(G, { emit: m }) {
|
|
16
|
-
const t = m, { t: n } =
|
|
16
|
+
const t = m, { t: n } = U(), { setKeyword: p } = w(), a = v(!1), d = (e, r) => {
|
|
17
17
|
r === i.USER && t("result-click", {
|
|
18
18
|
type: _.SEARCH_USER,
|
|
19
19
|
data: e.profile
|
|
@@ -53,13 +53,13 @@ const K = {
|
|
|
53
53
|
onClick: f
|
|
54
54
|
}, [
|
|
55
55
|
h("label", K, [
|
|
56
|
-
|
|
56
|
+
g(c(b))
|
|
57
57
|
]),
|
|
58
|
-
h("span", P,
|
|
58
|
+
h("span", P, E(c(n)("TUIContact.Add friend/group")), 1)
|
|
59
59
|
]))
|
|
60
60
|
], 2));
|
|
61
61
|
}
|
|
62
|
-
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-
|
|
62
|
+
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-7c64a2df"]]);
|
|
63
63
|
export {
|
|
64
64
|
j as default
|
|
65
65
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useUIKit as
|
|
4
|
-
import { isH5 as
|
|
5
|
-
import { useConversationListState as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as k, computed as D, watch as f, createElementBlock as r, openBlock as a, normalizeStyle as z, normalizeClass as l, unref as u, createBlock as $, withModifiers as E, Fragment as b, renderList as U, toDisplayString as h, withCtx as M, createElementVNode as B, createVNode as q } from "vue";
|
|
2
|
+
import N from "@tencentcloud/chat-uikit-engine";
|
|
3
|
+
import { useUIKit as S, TUIDropdown as R, IconEllipsis as V } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
|
+
import { isH5 as C } from "../../../utils/env.js";
|
|
5
|
+
import { useConversationListState as L } from "../../../states/ConversationListState/ConversationListState.js";
|
|
6
|
+
import { _ as K } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const O = ["onClick"], Y = ["onClick"], j = /* @__PURE__ */ g({
|
|
8
8
|
__name: "ConversationActions",
|
|
9
9
|
props: {
|
|
10
10
|
conversation: {},
|
|
@@ -25,8 +25,8 @@ const j = ["onClick"], w = ["onClick"], F = /* @__PURE__ */ z({
|
|
|
25
25
|
enableMarkUnread: { type: Boolean, default: !0 }
|
|
26
26
|
},
|
|
27
27
|
emits: ["click", "close", "markConversationUnread", "conversationPin", "conversationMute", "conversationDelete"],
|
|
28
|
-
setup(_, { emit:
|
|
29
|
-
const o = _, c =
|
|
28
|
+
setup(_, { emit: y }) {
|
|
29
|
+
const o = _, c = y, { t: i } = S(), { markConversationUnread: I } = L(), v = k(!0), d = k({}), p = D(() => Object.entries(d.value).filter(([, e]) => e.enable !== !1).reduce((e, [n, t]) => (e[n] = t, e), {})), P = () => ({
|
|
30
30
|
pin: {
|
|
31
31
|
enable: !!o.enablePin,
|
|
32
32
|
label: o.conversation.isPinned ? i("TUIConversation.Unpin") : i("TUIConversation.Pin"),
|
|
@@ -43,9 +43,9 @@ const j = ["onClick"], w = ["onClick"], F = /* @__PURE__ */ z({
|
|
|
43
43
|
},
|
|
44
44
|
markUnread: {
|
|
45
45
|
enable: !!o.enableMarkUnread,
|
|
46
|
-
label:
|
|
46
|
+
label: v.value ? i("TUIConversation.MarkRead") : i("TUIConversation.MarkUnRead"),
|
|
47
47
|
onClick: (e, n) => {
|
|
48
|
-
|
|
48
|
+
I(e.conversationID, !v.value), c("markConversationUnread", e, n);
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
delete: {
|
|
@@ -56,93 +56,91 @@ const j = ["onClick"], w = ["onClick"], F = /* @__PURE__ */ z({
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
f(
|
|
60
60
|
() => o.conversation,
|
|
61
61
|
(e) => {
|
|
62
62
|
var n;
|
|
63
63
|
if (e.unreadCount > 0)
|
|
64
|
-
|
|
64
|
+
v.value = !0;
|
|
65
65
|
else {
|
|
66
|
-
const t =
|
|
67
|
-
|
|
66
|
+
const t = N.TYPES.CONV_MARK_TYPE_UNREAD, s = (n = e == null ? void 0 : e.markList) == null ? void 0 : n.includes(t);
|
|
67
|
+
v.value = s;
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
{ immediate: !0 }
|
|
71
|
-
),
|
|
71
|
+
), f(
|
|
72
72
|
[() => o.conversation, () => o.customConversationActions],
|
|
73
73
|
([e, n]) => {
|
|
74
|
-
|
|
74
|
+
d.value = {
|
|
75
75
|
...P(),
|
|
76
76
|
...n || {}
|
|
77
77
|
};
|
|
78
78
|
},
|
|
79
79
|
{ immediate: !0, deep: !0 }
|
|
80
80
|
);
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
f(e), c("click", e, n, o.conversation);
|
|
85
|
-
const t = m.value[n];
|
|
81
|
+
const A = (e, n) => {
|
|
82
|
+
c("click", e, n, o.conversation);
|
|
83
|
+
const t = d.value[n];
|
|
86
84
|
t && t.onClick(o.conversation, e), o.onClose && o.onClose();
|
|
87
|
-
},
|
|
88
|
-
e.stopPropagation(), e.target === e.currentTarget &&
|
|
85
|
+
}, T = (e) => {
|
|
86
|
+
e.stopPropagation(), e.target === e.currentTarget && C && o.onClose && o.onClose();
|
|
89
87
|
};
|
|
90
88
|
return (e, n) => (a(), r("div", {
|
|
91
89
|
class: l([e.$style.conversationActions, {
|
|
92
|
-
[e.$style.conversationActions__h5]:
|
|
90
|
+
[e.$style.conversationActions__h5]: u(C)
|
|
93
91
|
}, _.className]),
|
|
94
|
-
style:
|
|
95
|
-
onClick:
|
|
92
|
+
style: z(_.style),
|
|
93
|
+
onClick: T
|
|
96
94
|
}, [
|
|
97
|
-
|
|
95
|
+
u(C) ? (a(), r("div", {
|
|
98
96
|
key: 0,
|
|
99
97
|
class: l(e.$style.conversationActions__h5__container),
|
|
100
|
-
onClick: n[0] || (n[0] =
|
|
98
|
+
onClick: n[0] || (n[0] = E(() => {
|
|
101
99
|
}, ["stop"]))
|
|
102
100
|
}, [
|
|
103
|
-
(a(!0), r(
|
|
101
|
+
(a(!0), r(b, null, U(p.value, (t, s) => (a(), r("div", {
|
|
104
102
|
key: s,
|
|
105
103
|
class: l([e.$style.conversationActions__item, {
|
|
106
104
|
[e.$style["conversationActions__item--delete"]]: s === "delete"
|
|
107
105
|
}]),
|
|
108
|
-
onClick: (
|
|
109
|
-
},
|
|
110
|
-
], 2)) : (a(),
|
|
106
|
+
onClick: (m) => A(m, s)
|
|
107
|
+
}, h(t.label), 11, O))), 128))
|
|
108
|
+
], 2)) : (a(), $(u(R), {
|
|
111
109
|
key: 1,
|
|
112
110
|
trigger: "click",
|
|
111
|
+
teleported: !1,
|
|
113
112
|
placement: "bottom-end"
|
|
114
113
|
}, {
|
|
115
|
-
dropdown:
|
|
116
|
-
(a(!0), r(
|
|
114
|
+
dropdown: M(() => [
|
|
115
|
+
(a(!0), r(b, null, U(p.value, (t, s) => (a(), r("div", {
|
|
117
116
|
key: s,
|
|
118
117
|
class: l([e.$style.conversationActions__item, {
|
|
119
118
|
[e.$style["conversationActions__item--delete"]]: s === "delete"
|
|
120
119
|
}]),
|
|
121
|
-
onClick: (
|
|
122
|
-
},
|
|
120
|
+
onClick: (m) => A(m, s)
|
|
121
|
+
}, h(t.label), 11, Y))), 128))
|
|
123
122
|
]),
|
|
124
|
-
default:
|
|
125
|
-
|
|
126
|
-
class: l(e.$style["conversationActions__popup-icon"])
|
|
127
|
-
onClick: f
|
|
123
|
+
default: M(() => [
|
|
124
|
+
B("div", {
|
|
125
|
+
class: l(e.$style["conversationActions__popup-icon"])
|
|
128
126
|
}, [
|
|
129
|
-
|
|
127
|
+
q(u(V), { size: "18px" })
|
|
130
128
|
], 2)
|
|
131
129
|
]),
|
|
132
130
|
_: 1
|
|
133
131
|
}))
|
|
134
132
|
], 6));
|
|
135
133
|
}
|
|
136
|
-
}),
|
|
137
|
-
conversationActions:
|
|
134
|
+
}), w = "_conversationActions_qrz2h_1", F = "_conversationActions__h5_qrz2h_10", H = "_conversationActions__h5__container_qrz2h_22", G = "_conversationActions__item_qrz2h_27", J = {
|
|
135
|
+
conversationActions: w,
|
|
138
136
|
"conversationActions__popup-icon": "_conversationActions__popup-icon_qrz2h_5",
|
|
139
|
-
conversationActions__h5:
|
|
140
|
-
conversationActions__h5__container:
|
|
141
|
-
conversationActions__item:
|
|
137
|
+
conversationActions__h5: F,
|
|
138
|
+
conversationActions__h5__container: H,
|
|
139
|
+
conversationActions__item: G,
|
|
142
140
|
"conversationActions__item--delete": "_conversationActions__item--delete_qrz2h_52"
|
|
143
|
-
},
|
|
144
|
-
$style:
|
|
145
|
-
},
|
|
141
|
+
}, Q = {
|
|
142
|
+
$style: J
|
|
143
|
+
}, oe = /* @__PURE__ */ K(j, [["__cssModules", Q]]);
|
|
146
144
|
export {
|
|
147
|
-
|
|
145
|
+
oe as default
|
|
148
146
|
};
|
|
@@ -59,9 +59,9 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
59
59
|
[t.USER_SELECT]: o("TUIConversation.Cancel"),
|
|
60
60
|
[t.CREATE_DETAIL]: o("TUIConversation.Prev"),
|
|
61
61
|
[t.GROUP_TYPE]: o("TUIConversation.Prev")
|
|
62
|
-
}, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")),
|
|
62
|
+
}, F = I(() => c.value ? Y[n.value] : o("TUIConversation.Cancel")), M = I(() => c.value ? K[n.value] : o("TUIConversation.Start chat")), $ = I(() => c.value ? W[n.value] : o("TUIConversation.Start chat")), j = (e) => {
|
|
63
63
|
v.value = e;
|
|
64
|
-
},
|
|
64
|
+
}, z = async () => {
|
|
65
65
|
var r;
|
|
66
66
|
const { userID: e } = l.value[0];
|
|
67
67
|
T("beforeCreateConversation", e), (r = s.onBeforeCreateConversation) == null || r.call(s, e);
|
|
@@ -71,7 +71,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
71
71
|
} catch (a) {
|
|
72
72
|
U.error({ message: a.message });
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, H = async () => {
|
|
75
75
|
var r;
|
|
76
76
|
const e = {
|
|
77
77
|
...v.value,
|
|
@@ -86,16 +86,16 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
86
86
|
} catch (a) {
|
|
87
87
|
U.error({ message: a.message });
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, V = (e) => {
|
|
90
90
|
var A, D;
|
|
91
|
-
const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}
|
|
91
|
+
const a = `${((A = d.value) == null ? void 0 : A.userName) || ((D = d.value) == null ? void 0 : D.userId) || ""}、${e.map((i) => (i == null ? void 0 : i.remark) || (i == null ? void 0 : i.nick) || (i == null ? void 0 : i.userID)).join("、")}`;
|
|
92
92
|
return a.length >= G ? a.slice(0, G) : a;
|
|
93
93
|
}, q = () => {
|
|
94
94
|
if (l.value.length === 0) {
|
|
95
95
|
U.error({ message: o("TUIConversation.Participant cannot be empty") });
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
c.value ? n.value === t.USER_SELECT ? (v.value.name =
|
|
98
|
+
c.value ? n.value === t.USER_SELECT ? (v.value.name = V(l.value), C(t.CREATE_DETAIL)) : n.value === t.CREATE_DETAIL ? (H(), f(!1)) : C(t.CREATE_DETAIL) : (z(), f(!1));
|
|
99
99
|
}, J = () => {
|
|
100
100
|
n.value === t.USER_SELECT ? (f(!1), _()) : n.value === t.CREATE_DETAIL ? C(t.USER_SELECT) : n.value === t.GROUP_TYPE && C(t.CREATE_DETAIL);
|
|
101
101
|
};
|
|
@@ -107,7 +107,7 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
107
107
|
appendTo: "body",
|
|
108
108
|
visible: m.value,
|
|
109
109
|
title: M.value,
|
|
110
|
-
"confirm-text":
|
|
110
|
+
"confirm-text": $.value,
|
|
111
111
|
"cancel-text": F.value,
|
|
112
112
|
"custom-classes": [p(re) ? "conversationCreate__dialog" : ""],
|
|
113
113
|
onConfirm: q,
|
|
@@ -127,14 +127,14 @@ const G = 20, pe = /* @__PURE__ */ Q({
|
|
|
127
127
|
"profile-list": l.value,
|
|
128
128
|
"group-info": v.value,
|
|
129
129
|
"set-page-state": C,
|
|
130
|
-
onUpdateGroupInfo:
|
|
130
|
+
onUpdateGroupInfo: j
|
|
131
131
|
}, null, 8, ["page-state", "profile-list", "group-info"]))
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["visible", "title", "confirm-text", "cancel-text", "custom-classes"])
|
|
135
135
|
], 2));
|
|
136
136
|
}
|
|
137
|
-
}), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-
|
|
137
|
+
}), Ge = /* @__PURE__ */ fe(pe, [["__scopeId", "data-v-4707a253"]]);
|
|
138
138
|
export {
|
|
139
139
|
Ge as default
|
|
140
140
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, ref as
|
|
1
|
+
import { defineComponent as z, ref as C, computed as u, watch as x, createElementBlock as S, openBlock as n, normalizeStyle as V, normalizeClass as E, unref as i, createBlock as s, createCommentVNode as f, resolveDynamicComponent as c, withCtx as A, Fragment as q, renderList as G } from "vue";
|
|
2
2
|
import J from "../Avatar/Avatar.js";
|
|
3
3
|
import { useConversation as K } from "./hooks/useConversation.js";
|
|
4
4
|
import Q from "./ConversationActions/ConversationActions.js";
|
|
@@ -46,12 +46,12 @@ const oe = /* @__PURE__ */ z({
|
|
|
46
46
|
enableSearch: j,
|
|
47
47
|
onBeforeCreateConversation: m,
|
|
48
48
|
onConversationCreated: h
|
|
49
|
-
} = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I =
|
|
49
|
+
} = o, { conversationList: l, setActiveConversation: O } = _(), { setEnableCreate: w, setEnableSearch: H } = K(), I = C([]), y = u(() => {
|
|
50
50
|
if (!l.value)
|
|
51
51
|
return [];
|
|
52
52
|
let e = l.value;
|
|
53
53
|
return o.filter && typeof o.filter == "function" && (e = o.filter(e)), o.sort && typeof o.sort == "function" && (e = o.sort(e)), e;
|
|
54
|
-
}), p =
|
|
54
|
+
}), p = C(!1), d = C({}), L = u(() => $), b = u(() => j);
|
|
55
55
|
w(L.value), H(b.value), x(
|
|
56
56
|
() => [F, I.value],
|
|
57
57
|
([e, r]) => {
|
|
@@ -119,7 +119,7 @@ const oe = /* @__PURE__ */ z({
|
|
|
119
119
|
Preview: t.Preview,
|
|
120
120
|
ConversationActions: t.ConversationActions,
|
|
121
121
|
"actions-config": d.value,
|
|
122
|
-
|
|
122
|
+
onSelectConversation: M
|
|
123
123
|
}, null, 8, ["conversation", "enable-actions", "Avatar", "Preview", "ConversationActions", "actions-config"]))), 128))
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
@@ -576,9 +576,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
576
576
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
577
577
|
};
|
|
578
578
|
}>> & Readonly<{
|
|
579
|
-
|
|
579
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
580
580
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
581
|
-
|
|
581
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
582
582
|
}, import('vue').PublicProps, {
|
|
583
583
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
584
584
|
isSelected: boolean;
|
|
@@ -911,7 +911,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
911
911
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
912
912
|
};
|
|
913
913
|
}>> & Readonly<{
|
|
914
|
-
|
|
914
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
915
915
|
}>, {}, {}, {}, {}, {
|
|
916
916
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
917
917
|
isSelected: boolean;
|
|
@@ -1241,9 +1241,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1241
1241
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
1242
1242
|
};
|
|
1243
1243
|
}>> & Readonly<{
|
|
1244
|
-
|
|
1244
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1245
1245
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1246
|
-
|
|
1246
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
1247
1247
|
}, string, {
|
|
1248
1248
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
1249
1249
|
isSelected: boolean;
|
|
@@ -4185,9 +4185,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4185
4185
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4186
4186
|
};
|
|
4187
4187
|
}>> & Readonly<{
|
|
4188
|
-
|
|
4188
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4189
4189
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4190
|
-
|
|
4190
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
4191
4191
|
}, import('vue').PublicProps, {
|
|
4192
4192
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4193
4193
|
isSelected: boolean;
|
|
@@ -4520,7 +4520,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4520
4520
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4521
4521
|
};
|
|
4522
4522
|
}>> & Readonly<{
|
|
4523
|
-
|
|
4523
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4524
4524
|
}>, {}, {}, {}, {}, {
|
|
4525
4525
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4526
4526
|
isSelected: boolean;
|
|
@@ -4850,9 +4850,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4850
4850
|
type: import('vue').PropType<ConversationActionsConfig>;
|
|
4851
4851
|
};
|
|
4852
4852
|
}>> & Readonly<{
|
|
4853
|
-
|
|
4853
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
4854
4854
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4855
|
-
|
|
4855
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
4856
4856
|
}, string, {
|
|
4857
4857
|
Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
|
|
4858
4858
|
isSelected: boolean;
|
|
@@ -323,9 +323,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
323
323
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
324
324
|
};
|
|
325
325
|
}>> & Readonly<{
|
|
326
|
-
|
|
326
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
327
327
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
328
|
-
|
|
328
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
329
329
|
}, import('vue').PublicProps, {
|
|
330
330
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
331
331
|
isSelected: boolean;
|
|
@@ -658,7 +658,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
658
658
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
659
659
|
};
|
|
660
660
|
}>> & Readonly<{
|
|
661
|
-
|
|
661
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
662
662
|
}>, {}, {}, {}, {}, {
|
|
663
663
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
664
664
|
isSelected: boolean;
|
|
@@ -988,9 +988,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
988
988
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
989
989
|
};
|
|
990
990
|
}>> & Readonly<{
|
|
991
|
-
|
|
991
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
992
992
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
993
|
-
|
|
993
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
994
994
|
}, string, {
|
|
995
995
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
996
996
|
isSelected: boolean;
|
|
@@ -1552,9 +1552,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1552
1552
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
1553
1553
|
};
|
|
1554
1554
|
}>> & Readonly<{
|
|
1555
|
-
|
|
1555
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1556
1556
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1557
|
-
|
|
1557
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
1558
1558
|
}, import('vue').PublicProps, {
|
|
1559
1559
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
1560
1560
|
isSelected: boolean;
|
|
@@ -1887,7 +1887,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1887
1887
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
1888
1888
|
};
|
|
1889
1889
|
}>> & Readonly<{
|
|
1890
|
-
|
|
1890
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
1891
1891
|
}>, {}, {}, {}, {}, {
|
|
1892
1892
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
1893
1893
|
isSelected: boolean;
|
|
@@ -2217,9 +2217,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
2217
2217
|
type: import('vue').PropType<import('../../..').ConversationActionsConfig>;
|
|
2218
2218
|
};
|
|
2219
2219
|
}>> & Readonly<{
|
|
2220
|
-
|
|
2220
|
+
onSelectConversation?: ((conversation: ConversationModel) => any) | undefined;
|
|
2221
2221
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2222
|
-
|
|
2222
|
+
selectConversation: (conversation: ConversationModel) => void;
|
|
2223
2223
|
}, string, {
|
|
2224
2224
|
Avatar: import('vue').Component<import('../../Avatar').AvatarProps>;
|
|
2225
2225
|
isSelected: boolean;
|
package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { defineComponent as v, createElementBlock as a, openBlock as s, normalizeClass as c, toDisplayString as w
|
|
2
|
-
import { useUIKit as
|
|
3
|
-
import { getTimeStamp as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as i, computed as v, createElementBlock as a, openBlock as s, normalizeClass as c, toDisplayString as w } from "vue";
|
|
2
|
+
import { useUIKit as P } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { getTimeStamp as m } from "../../../utils/time.js";
|
|
4
|
+
import { _ as l } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const u = /* @__PURE__ */ i({
|
|
6
6
|
__name: "ConversationPreviewTimestamp",
|
|
7
7
|
props: {
|
|
8
8
|
conversation: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
setup(n) {
|
|
11
|
+
const t = n, { language: r } = P(), _ = v(() => {
|
|
12
|
+
var e, o;
|
|
13
|
+
return m({
|
|
14
|
+
time: Number(((o = (e = t.conversation) == null ? void 0 : e.lastMessage) == null ? void 0 : o.lastTime) || 0) * 1e3,
|
|
15
|
+
language: r.value
|
|
16
|
+
}) || "";
|
|
17
|
+
});
|
|
18
|
+
return (e, o) => (s(), a("div", {
|
|
19
|
+
class: c(e.$style.conversationPreview__time)
|
|
20
|
+
}, w(_.value), 3));
|
|
19
21
|
}
|
|
20
|
-
}),
|
|
21
|
-
conversationPreview:
|
|
22
|
+
}), p = "_conversationPreview_29xqv_12", x = "_conversationPreview__avatar_29xqv_34", d = "_conversationPreview__content_29xqv_38", q = "_conversationPreview__header_29xqv_42", f = "_conversationPreview__title_29xqv_48", g = "_conversationPreview__time_29xqv_58", b = "_conversationPreview__footer_29xqv_65", h = "_conversationPreview__abstract_29xqv_70", y = "_conversationPreview__external_29xqv_79", M = "_conversationPreview__unread_29xqv_88", T = "_conversationPreview__actions_29xqv_108", C = {
|
|
23
|
+
conversationPreview: p,
|
|
22
24
|
"conversationPreview--active": "_conversationPreview--active_29xqv_28",
|
|
23
25
|
"conversationPreview--pin": "_conversationPreview--pin_29xqv_31",
|
|
24
|
-
conversationPreview__avatar:
|
|
26
|
+
conversationPreview__avatar: x,
|
|
25
27
|
conversationPreview__content: d,
|
|
26
|
-
conversationPreview__header:
|
|
27
|
-
conversationPreview__title:
|
|
28
|
-
conversationPreview__time:
|
|
29
|
-
conversationPreview__footer:
|
|
30
|
-
conversationPreview__abstract:
|
|
31
|
-
conversationPreview__external:
|
|
32
|
-
conversationPreview__unread:
|
|
28
|
+
conversationPreview__header: q,
|
|
29
|
+
conversationPreview__title: f,
|
|
30
|
+
conversationPreview__time: g,
|
|
31
|
+
conversationPreview__footer: b,
|
|
32
|
+
conversationPreview__abstract: h,
|
|
33
|
+
conversationPreview__external: y,
|
|
34
|
+
conversationPreview__unread: M,
|
|
33
35
|
"unread-count": "_unread-count_29xqv_95",
|
|
34
|
-
conversationPreview__actions:
|
|
35
|
-
},
|
|
36
|
-
$style:
|
|
37
|
-
},
|
|
36
|
+
conversationPreview__actions: T
|
|
37
|
+
}, k = {
|
|
38
|
+
$style: C
|
|
39
|
+
}, z = /* @__PURE__ */ l(u, [["__cssModules", k]]);
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
z as default
|
|
40
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as
|
|
1
|
+
import { defineComponent as O, ref as U, watch as V, createElementBlock as H, openBlock as o, createElementVNode as c, createBlock as i, createCommentVNode as K, mergeProps as l, unref as t, renderSlot as j, normalizeClass as u, resolveDynamicComponent as a } from "vue";
|
|
2
2
|
import P from "@tencentcloud/chat-uikit-engine";
|
|
3
3
|
import F from "../../Avatar/Avatar.js";
|
|
4
4
|
import z from "./ConversationPreviewAbstract.js";
|
|
@@ -29,7 +29,7 @@ const ne = /* @__PURE__ */ O({
|
|
|
29
29
|
style: {},
|
|
30
30
|
children: {}
|
|
31
31
|
},
|
|
32
|
-
emits: ["
|
|
32
|
+
emits: ["selectConversation"],
|
|
33
33
|
setup(e, { emit: $ }) {
|
|
34
34
|
const m = e, N = $, { activeConversation: h, setActiveConversation: R } = p(), _ = U(), s = U(!1), { isHovered: S } = X(_), { getEventHandlers: I } = Z(() => {
|
|
35
35
|
r && (s.value = !0);
|
|
@@ -38,53 +38,53 @@ const ne = /* @__PURE__ */ O({
|
|
|
38
38
|
r || (s.value = n);
|
|
39
39
|
});
|
|
40
40
|
const B = () => {
|
|
41
|
-
N("
|
|
41
|
+
N("selectConversation", m.conversation), R(m.conversation.conversationID);
|
|
42
42
|
}, d = () => {
|
|
43
43
|
s.value = !1;
|
|
44
44
|
};
|
|
45
45
|
return (n, de) => {
|
|
46
46
|
var w, f, C, A, y, M, g, q;
|
|
47
|
-
return
|
|
47
|
+
return o(), H("div", null, [
|
|
48
48
|
c("div", l({
|
|
49
49
|
ref_key: "conversationPreviewRef",
|
|
50
50
|
ref: _,
|
|
51
51
|
class: [
|
|
52
52
|
n.$style.conversationPreview,
|
|
53
53
|
e.className,
|
|
54
|
-
|
|
55
|
-
(e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f =
|
|
56
|
-
!((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(
|
|
54
|
+
t(r) && [n.$style["conversationPreview--mobile"]],
|
|
55
|
+
(e.isSelected || ((w = e.conversation) == null ? void 0 : w.conversationID) === ((f = t(h)) == null ? void 0 : f.conversationID)) && [n.$style["conversationPreview--active"]],
|
|
56
|
+
!((C = e.conversation) != null && C.isMuted) && (((A = e.conversation) == null ? void 0 : A.unreadCount) > 0 || ((M = (y = e.conversation) == null ? void 0 : y.markList) == null ? void 0 : M.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))) && [n.$style["conversationPreview--unread"]],
|
|
57
57
|
((g = e.conversation) == null ? void 0 : g.isPinned) && [n.$style["conversationPreview--pin"]],
|
|
58
58
|
((q = e.conversation) == null ? void 0 : q.isMuted) && [n.$style["conversationPreview--mute"]]
|
|
59
59
|
],
|
|
60
60
|
style: e.style
|
|
61
|
-
},
|
|
61
|
+
}, t(Y), { onClick: B }), [
|
|
62
62
|
j(n.$slots, "default", {}, () => {
|
|
63
63
|
var v, E, D, T, b, k, x, L;
|
|
64
64
|
return [
|
|
65
65
|
c("div", {
|
|
66
66
|
class: u(n.$style.conversationPreview__avatar)
|
|
67
67
|
}, [
|
|
68
|
-
(
|
|
68
|
+
(o(), i(a(e.Avatar), {
|
|
69
69
|
src: (E = (v = e.conversation) == null ? void 0 : v.getAvatar) == null ? void 0 : E.call(v),
|
|
70
|
-
unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(
|
|
71
|
-
isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(
|
|
70
|
+
unreadCount: (D = e.conversation) != null && D.isMuted && ((b = (T = e.conversation) == null ? void 0 : T.markList) != null && b.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD)) ? 1 : void 0,
|
|
71
|
+
isDotUnreadCount: ((k = e.conversation) == null ? void 0 : k.isMuted) && ((L = (x = e.conversation) == null ? void 0 : x.markList) == null ? void 0 : L.includes(t(P).TYPES.CONV_MARK_TYPE_UNREAD))
|
|
72
72
|
}, null, 8, ["src", "unreadCount", "isDotUnreadCount"]))
|
|
73
73
|
], 2),
|
|
74
74
|
c("div", {
|
|
75
75
|
class: u(n.$style.conversationPreview__content)
|
|
76
76
|
}, [
|
|
77
|
-
(
|
|
78
|
-
(
|
|
77
|
+
(o(), i(a(e.Title), { conversation: e.conversation }, null, 8, ["conversation"])),
|
|
78
|
+
(o(), i(a(e.LastMessageAbstract), { conversation: e.conversation }, null, 8, ["conversation"]))
|
|
79
79
|
], 2),
|
|
80
80
|
c("div", {
|
|
81
81
|
class: u(n.$style.conversationPreview__external)
|
|
82
82
|
}, [
|
|
83
|
-
(
|
|
84
|
-
e.enableActions && s.value && !
|
|
83
|
+
(o(), i(a(e.Unread), { conversation: e.conversation }, null, 8, ["conversation"])),
|
|
84
|
+
e.enableActions && s.value && !t(r) ? (o(), i(a(e.ConversationActions), l({
|
|
85
85
|
key: 0,
|
|
86
86
|
conversation: e.conversation
|
|
87
|
-
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (
|
|
87
|
+
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : (o(), i(a(e.LastMessageTimestamp), {
|
|
88
88
|
key: 1,
|
|
89
89
|
conversation: e.conversation
|
|
90
90
|
}, null, 8, ["conversation"]))
|
|
@@ -92,18 +92,18 @@ const ne = /* @__PURE__ */ O({
|
|
|
92
92
|
];
|
|
93
93
|
})
|
|
94
94
|
], 16),
|
|
95
|
-
|
|
95
|
+
t(r) && e.enableActions && s.value ? (o(), i(a(e.ConversationActions), l({
|
|
96
96
|
key: 0,
|
|
97
97
|
conversation: e.conversation
|
|
98
98
|
}, e.actionsConfig, { onClose: d }), null, 16, ["conversation"])) : K("", !0)
|
|
99
99
|
]);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
103
|
-
conversationPreview:
|
|
102
|
+
}), oe = "_conversationPreview_29xqv_12", te = "_conversationPreview__avatar_29xqv_34", ie = "_conversationPreview__content_29xqv_38", ae = "_conversationPreview__header_29xqv_42", se = "_conversationPreview__title_29xqv_48", re = "_conversationPreview__time_29xqv_58", ve = "_conversationPreview__footer_29xqv_65", ce = "_conversationPreview__abstract_29xqv_70", le = "_conversationPreview__external_29xqv_79", ue = "_conversationPreview__unread_29xqv_88", Pe = "_conversationPreview__actions_29xqv_108", me = {
|
|
103
|
+
conversationPreview: oe,
|
|
104
104
|
"conversationPreview--active": "_conversationPreview--active_29xqv_28",
|
|
105
105
|
"conversationPreview--pin": "_conversationPreview--pin_29xqv_31",
|
|
106
|
-
conversationPreview__avatar:
|
|
106
|
+
conversationPreview__avatar: te,
|
|
107
107
|
conversationPreview__content: ie,
|
|
108
108
|
conversationPreview__header: ae,
|
|
109
109
|
conversationPreview__title: se,
|