tuikit-atomicx-vue3 3.4.2 → 3.5.0-beta.8
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/{PopoverTrigger-L8abAry7.js → PopoverTrigger-CglNN8IV.js} +3 -3
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-CQa08BXt.js} +1 -1
- package/dist/{Teleport-CSEuZbpM.js → Teleport-D3gvcBbZ.js} +278 -268
- 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 +4 -4
- 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 +11 -11
- package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
- 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 +28 -27
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
- package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
- package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +57 -62
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +79 -79
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +2 -2
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +164 -209
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +8 -1
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +57 -24
- package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
- package/dist/components/LiveView/i18n/en-US/index.js +2 -2
- package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
- package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveView/index.js +17 -17
- package/dist/components/MessageInput/AttachmentPicker/index.js +1 -1
- 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/MessageActionDropdown/MessageActionDropdown.js +3 -3
- 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/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/FaceMessage/FaceMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -9
- 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-Bm-QfV5o.js → index-DMfTuy0v.js} +574 -631
- package/dist/{index-D2OVtqc8.js → index-DV6o6s43.js} +946 -915
- package/dist/index.d.ts +3 -1
- package/dist/index.js +164 -142
- 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 +5 -43
- package/dist/rtc/index.js +48 -48
- 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/{useId-CtirfF0W.js → useId-oQ5JZeuH.js} +1 -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/dist/{utils-DaB7eSu5.js → utils-DuzSgmS6.js} +1 -1
- 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 +1 -4
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
- package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
- 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 +3 -2
- package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
- package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
- package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
- package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +30 -21
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +26 -42
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +253 -455
- package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +68 -4
- package/src/components/LiveView/i18n/en-US/index.ts +2 -2
- package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
- package/src/components/LiveView/index.vue +3 -2
- 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/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 +7 -9
- 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/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/RecalledMessage.vue.d.ts +0 -35
- 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/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/StreamView/Layout/MixLayout.vue +0 -144
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useUIKit as
|
|
1
|
+
import { defineComponent as R, ref as m, onMounted as F, onUnmounted as L, watch as T, createElementBlock as f, openBlock as S, normalizeClass as i, createElementVNode as u, createCommentVNode as B, toDisplayString as M, unref as y, Fragment as N, renderList as V, createVNode as C, withCtx as G, createTextVNode as Q } from "vue";
|
|
2
|
+
import { useUIKit as U, TUIButton as H } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { SearchType as A } from "../../../../types/engine.js";
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const J = /* @__PURE__ */
|
|
4
|
+
import I from "../DateRangePicker/DateRangePicker.js";
|
|
5
|
+
import { _ as K } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const J = /* @__PURE__ */ R({
|
|
7
7
|
__name: "MessageAdvanced",
|
|
8
8
|
props: {
|
|
9
9
|
advancedParams: {},
|
|
10
10
|
onAdvancedParamsChange: { type: Function }
|
|
11
11
|
},
|
|
12
12
|
setup(P) {
|
|
13
|
-
const v = P, { t:
|
|
14
|
-
{ label:
|
|
15
|
-
{ label:
|
|
16
|
-
{ label:
|
|
13
|
+
const v = P, { t: _ } = U(), r = m(!1), l = m([null, null]), h = m(), d = m(""), $ = [
|
|
14
|
+
{ label: _("Search.timeFilter.today"), value: "today" },
|
|
15
|
+
{ label: _("Search.timeFilter.last3Days"), value: "last3days" },
|
|
16
|
+
{ label: _("Search.timeFilter.last7Days"), value: "last7days" }
|
|
17
17
|
], k = (e) => {
|
|
18
|
-
|
|
18
|
+
h.value && !h.value.contains(e.target) && (r.value = !1);
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
F(() => {
|
|
21
21
|
document.addEventListener("mousedown", k);
|
|
22
|
-
}),
|
|
22
|
+
}), L(() => {
|
|
23
23
|
document.removeEventListener("mousedown", k);
|
|
24
24
|
});
|
|
25
25
|
const g = (e) => {
|
|
26
26
|
const a = new Date(e);
|
|
27
27
|
return a.setHours(0, 0, 0, 0), a;
|
|
28
|
-
},
|
|
28
|
+
}, p = (e) => {
|
|
29
29
|
const a = new Date(e);
|
|
30
30
|
return a.setHours(23, 59, 59, 999), a;
|
|
31
31
|
};
|
|
@@ -42,10 +42,10 @@ const J = /* @__PURE__ */ L({
|
|
|
42
42
|
},
|
|
43
43
|
{ immediate: !0 }
|
|
44
44
|
);
|
|
45
|
-
const
|
|
45
|
+
const w = (e, a, t) => {
|
|
46
46
|
if (!e || !a)
|
|
47
47
|
return !1;
|
|
48
|
-
const n =
|
|
48
|
+
const n = p(/* @__PURE__ */ new Date()).getTime(), c = /* @__PURE__ */ new Date();
|
|
49
49
|
c.setDate(c.getDate() - (t - 1));
|
|
50
50
|
const o = g(c).getTime();
|
|
51
51
|
return a === n && e === o;
|
|
@@ -55,7 +55,7 @@ const J = /* @__PURE__ */ L({
|
|
|
55
55
|
{ option: "today", days: 1 },
|
|
56
56
|
{ option: "last3days", days: 3 },
|
|
57
57
|
{ option: "last7days", days: 7 }
|
|
58
|
-
].find(({ days: o }) =>
|
|
58
|
+
].find(({ days: o }) => w(t, s, o));
|
|
59
59
|
return (c == null ? void 0 : c.option) || "";
|
|
60
60
|
}
|
|
61
61
|
T(
|
|
@@ -67,18 +67,18 @@ const J = /* @__PURE__ */ L({
|
|
|
67
67
|
{ option: "today", days: 1 },
|
|
68
68
|
{ option: "last3days", days: 3 },
|
|
69
69
|
{ option: "last7days", days: 7 }
|
|
70
|
-
].find(({ days:
|
|
70
|
+
].find(({ days: j }) => w(s, n, j));
|
|
71
71
|
d.value = (o == null ? void 0 : o.option) || "";
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
{ immediate: !0 }
|
|
75
75
|
);
|
|
76
|
-
const
|
|
76
|
+
const z = () => {
|
|
77
77
|
const [e, a] = l.value;
|
|
78
|
-
return !e || !a ?
|
|
79
|
-
},
|
|
78
|
+
return !e || !a ? _("Search.timeFilter.allTime") : `${e.toLocaleDateString()} - ${a.toLocaleDateString()}`;
|
|
79
|
+
}, E = () => {
|
|
80
80
|
r.value = !r.value;
|
|
81
|
-
},
|
|
81
|
+
}, D = (e, a) => {
|
|
82
82
|
const [t, s] = e, n = {
|
|
83
83
|
timePosition: 0,
|
|
84
84
|
timePeriod: 0
|
|
@@ -94,110 +94,108 @@ const J = /* @__PURE__ */ L({
|
|
|
94
94
|
...n
|
|
95
95
|
}), v.onAdvancedParamsChange(c);
|
|
96
96
|
}
|
|
97
|
-
},
|
|
97
|
+
}, O = (e) => {
|
|
98
98
|
var c, o;
|
|
99
99
|
const [a, t] = e;
|
|
100
100
|
if (!a && !t && (r.value = !1), !a || !t)
|
|
101
101
|
return;
|
|
102
102
|
r.value = !1;
|
|
103
103
|
const s = (a == null ? void 0 : a.getTime()) === ((c = l.value[0]) == null ? void 0 : c.getTime()), n = (t == null ? void 0 : t.getTime()) === ((o = l.value[1]) == null ? void 0 : o.getTime());
|
|
104
|
-
s && n || (
|
|
105
|
-
},
|
|
104
|
+
s && n || (D(e), d.value = q(e));
|
|
105
|
+
}, b = (e) => {
|
|
106
106
|
const a = e === d.value ? "" : e, t = /* @__PURE__ */ new Date();
|
|
107
107
|
let s = null, n = null;
|
|
108
108
|
if (e !== d.value)
|
|
109
109
|
switch (e) {
|
|
110
110
|
case "today":
|
|
111
|
-
s = g(t), n =
|
|
111
|
+
s = g(t), n = p(t);
|
|
112
112
|
break;
|
|
113
113
|
case "last3days": {
|
|
114
114
|
const o = new Date(t);
|
|
115
|
-
o.setDate(t.getDate() - 2), s = g(o), n =
|
|
115
|
+
o.setDate(t.getDate() - 2), s = g(o), n = p(t);
|
|
116
116
|
break;
|
|
117
117
|
}
|
|
118
118
|
case "last7days": {
|
|
119
119
|
const o = new Date(t);
|
|
120
|
-
o.setDate(t.getDate() - 6), s = g(o), n =
|
|
120
|
+
o.setDate(t.getDate() - 6), s = g(o), n = p(t);
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
default:
|
|
124
124
|
s = null, n = null;
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
D([s, n], a);
|
|
128
128
|
};
|
|
129
|
-
return (e, a) => (
|
|
129
|
+
return (e, a) => (S(), f("div", {
|
|
130
130
|
class: i(e.$style.SearchMessageAdvanced)
|
|
131
131
|
}, [
|
|
132
|
-
|
|
132
|
+
u("div", {
|
|
133
133
|
ref_key: "datePickerRef",
|
|
134
|
-
ref:
|
|
134
|
+
ref: h,
|
|
135
135
|
class: i(e.$style["SearchMessageAdvanced__filter-row"])
|
|
136
136
|
}, [
|
|
137
|
-
|
|
137
|
+
u("div", {
|
|
138
138
|
class: i(e.$style["SearchMessageAdvanced__filter-select"]),
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: E
|
|
140
140
|
}, [
|
|
141
|
-
|
|
141
|
+
u("span", {
|
|
142
142
|
class: i(e.$style["SearchMessageAdvanced__filter-label"])
|
|
143
|
-
}, M(y(
|
|
144
|
-
|
|
143
|
+
}, M(y(_)("Search.input.selectTime")) + ": ", 3),
|
|
144
|
+
u("span", {
|
|
145
145
|
class: i(e.$style["SearchMessageAdvanced__filter-value"])
|
|
146
|
-
}, M(
|
|
147
|
-
|
|
146
|
+
}, M(z()), 3),
|
|
147
|
+
u("span", {
|
|
148
148
|
class: i([
|
|
149
149
|
e.$style.SearchMessageAdvanced__arrow,
|
|
150
150
|
{ [e.$style["SearchMessageAdvanced__arrow--up"]]: r.value }
|
|
151
151
|
])
|
|
152
152
|
}, " ▼ ", 2)
|
|
153
153
|
], 2),
|
|
154
|
-
|
|
154
|
+
u("div", {
|
|
155
155
|
class: i(e.$style["SearchMessageAdvanced__quick-options"])
|
|
156
156
|
}, [
|
|
157
|
-
(
|
|
157
|
+
(S(), f(N, null, V($, (t) => C(y(H), {
|
|
158
158
|
key: t.value,
|
|
159
159
|
type: "text",
|
|
160
160
|
class: i([
|
|
161
161
|
e.$style["SearchMessageAdvanced__quick-option"],
|
|
162
162
|
{ [e.$style["SearchMessageAdvanced__quick-option--active"]]: d.value === t.value }
|
|
163
163
|
]),
|
|
164
|
-
onClick: (s) =>
|
|
164
|
+
onClick: (s) => b(t.value)
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
166
|
+
default: G(() => [
|
|
167
|
+
Q(M(t.label), 1)
|
|
168
168
|
]),
|
|
169
169
|
_: 2
|
|
170
170
|
}, 1032, ["class", "onClick"])), 64))
|
|
171
171
|
], 2),
|
|
172
|
-
r.value ? (
|
|
172
|
+
r.value ? (S(), f("div", {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: i(e.$style["SearchMessageAdvanced__date-picker-dropdown"])
|
|
175
175
|
}, [
|
|
176
|
-
C(y(
|
|
176
|
+
C(y(I), {
|
|
177
177
|
value: l.value,
|
|
178
|
-
onChange:
|
|
178
|
+
onChange: O
|
|
179
179
|
}, null, 8, ["value"])
|
|
180
|
-
], 2)) :
|
|
180
|
+
], 2)) : B("", !0)
|
|
181
181
|
], 2)
|
|
182
182
|
], 2));
|
|
183
183
|
}
|
|
184
|
-
}), W = "
|
|
185
|
-
"tui-theme-dark": "_tui-theme-dark_14t80_2",
|
|
186
|
-
"tui-theme-light": "_tui-theme-light_14t80_140",
|
|
184
|
+
}), W = "_SearchMessageAdvanced_pcwzj_1", X = "_SearchMessageAdvanced__arrow_pcwzj_35", Y = {
|
|
187
185
|
SearchMessageAdvanced: W,
|
|
188
|
-
"SearchMessageAdvanced__filter-row": "_SearchMessageAdvanced__filter-
|
|
189
|
-
"SearchMessageAdvanced__filter-select": "_SearchMessageAdvanced__filter-
|
|
190
|
-
"SearchMessageAdvanced__filter-label": "_SearchMessageAdvanced__filter-
|
|
191
|
-
"SearchMessageAdvanced__filter-value": "_SearchMessageAdvanced__filter-
|
|
186
|
+
"SearchMessageAdvanced__filter-row": "_SearchMessageAdvanced__filter-row_pcwzj_8",
|
|
187
|
+
"SearchMessageAdvanced__filter-select": "_SearchMessageAdvanced__filter-select_pcwzj_15",
|
|
188
|
+
"SearchMessageAdvanced__filter-label": "_SearchMessageAdvanced__filter-label_pcwzj_24",
|
|
189
|
+
"SearchMessageAdvanced__filter-value": "_SearchMessageAdvanced__filter-value_pcwzj_29",
|
|
192
190
|
SearchMessageAdvanced__arrow: X,
|
|
193
|
-
"SearchMessageAdvanced__arrow--up": "_SearchMessageAdvanced__arrow--
|
|
194
|
-
"SearchMessageAdvanced__quick-options": "_SearchMessageAdvanced__quick-
|
|
195
|
-
"SearchMessageAdvanced__quick-option": "_SearchMessageAdvanced__quick-
|
|
196
|
-
"SearchMessageAdvanced__quick-option--active": "_SearchMessageAdvanced__quick-option--
|
|
197
|
-
"SearchMessageAdvanced__date-picker-dropdown": "_SearchMessageAdvanced__date-picker-
|
|
191
|
+
"SearchMessageAdvanced__arrow--up": "_SearchMessageAdvanced__arrow--up_pcwzj_41",
|
|
192
|
+
"SearchMessageAdvanced__quick-options": "_SearchMessageAdvanced__quick-options_pcwzj_45",
|
|
193
|
+
"SearchMessageAdvanced__quick-option": "_SearchMessageAdvanced__quick-option_pcwzj_45",
|
|
194
|
+
"SearchMessageAdvanced__quick-option--active": "_SearchMessageAdvanced__quick-option--active_pcwzj_68",
|
|
195
|
+
"SearchMessageAdvanced__date-picker-dropdown": "_SearchMessageAdvanced__date-picker-dropdown_pcwzj_73"
|
|
198
196
|
}, Z = {
|
|
199
197
|
$style: Y
|
|
200
|
-
}, ne = /* @__PURE__ */
|
|
198
|
+
}, ne = /* @__PURE__ */ K(J, [["__cssModules", Z]]);
|
|
201
199
|
export {
|
|
202
200
|
ne as default
|
|
203
201
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useSearchState as
|
|
1
|
+
import { defineComponent as i, createElementBlock as S, openBlock as r, normalizeClass as u, createBlock as s, createCommentVNode as m, unref as e } from "vue";
|
|
2
|
+
import { useSearchState as g } from "../../../states/SearchState.js";
|
|
3
3
|
import { SearchType as c } from "../../../types/engine.js";
|
|
4
4
|
import { VariantType as t } from "../../../types/search.js";
|
|
5
|
-
import
|
|
5
|
+
import _ from "./SearchTab/SearchTab.js";
|
|
6
6
|
import f from "./MessageAdvanced/MessageAdvanced.js";
|
|
7
7
|
import p from "./UserAdvanced/UserAdvanced.js";
|
|
8
8
|
import { _ as C } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const T = /* @__PURE__ */
|
|
9
|
+
const T = /* @__PURE__ */ i({
|
|
10
10
|
__name: "SearchAdvanced",
|
|
11
11
|
props: {
|
|
12
12
|
variant: { default: t.STANDARD },
|
|
@@ -14,49 +14,47 @@ const T = /* @__PURE__ */ l({
|
|
|
14
14
|
advancedParams: {},
|
|
15
15
|
onAdvancedParamsChange: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const o =
|
|
17
|
+
setup(a) {
|
|
18
|
+
const o = a, { setSelectedType: v } = g(o.variant), h = (n) => {
|
|
19
19
|
v(n);
|
|
20
|
-
},
|
|
20
|
+
}, A = (n) => {
|
|
21
21
|
const d = n.get(c.MESSAGE);
|
|
22
22
|
d && o.onAdvancedParamsChange(c.MESSAGE, d);
|
|
23
|
-
},
|
|
23
|
+
}, l = (n) => {
|
|
24
24
|
const d = n.get(c.USER);
|
|
25
25
|
d && o.onAdvancedParamsChange(c.USER, d);
|
|
26
26
|
};
|
|
27
|
-
return (n, d) => (r(),
|
|
28
|
-
class:
|
|
27
|
+
return (n, d) => (r(), S("div", {
|
|
28
|
+
class: u(n.$style.SearchAdvanced)
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
a.variant === e(t).STANDARD ? (r(), s(e(_), {
|
|
31
31
|
key: 0,
|
|
32
|
-
"active-tab":
|
|
32
|
+
"active-tab": a.searchType,
|
|
33
33
|
onTabChange: h
|
|
34
34
|
}, null, 8, ["active-tab"])) : m("", !0),
|
|
35
|
-
|
|
35
|
+
a.variant === e(t).STANDARD && a.searchType === e(c).MESSAGE ? (r(), s(e(f), {
|
|
36
36
|
key: 1,
|
|
37
|
-
variant:
|
|
38
|
-
"advanced-params":
|
|
39
|
-
onAdvancedParamsChange:
|
|
37
|
+
variant: a.variant,
|
|
38
|
+
"advanced-params": a.advancedParams,
|
|
39
|
+
onAdvancedParamsChange: A
|
|
40
40
|
}, null, 8, ["variant", "advanced-params"])) : m("", !0),
|
|
41
|
-
|
|
41
|
+
a.variant === e(t).STANDARD && a.searchType === e(c).USER ? (r(), s(e(p), {
|
|
42
42
|
key: 2,
|
|
43
|
-
variant:
|
|
44
|
-
"advanced-params":
|
|
45
|
-
onAdvancedParamsChange:
|
|
43
|
+
variant: a.variant,
|
|
44
|
+
"advanced-params": a.advancedParams,
|
|
45
|
+
onAdvancedParamsChange: l
|
|
46
46
|
}, null, 8, ["variant", "advanced-params"])) : m("", !0)
|
|
47
47
|
], 2));
|
|
48
48
|
}
|
|
49
|
-
}), y = "
|
|
50
|
-
"tui-theme-dark": "_tui-theme-dark_1gxzr_2",
|
|
51
|
-
"tui-theme-light": "_tui-theme-light_1gxzr_140",
|
|
49
|
+
}), y = "_SearchAdvanced_ubuea_1", b = {
|
|
52
50
|
SearchAdvanced: y,
|
|
53
|
-
"SearchAdvanced__mode-toggle": "_SearchAdvanced__mode-
|
|
54
|
-
"SearchAdvanced__mode-toggle-icon": "_SearchAdvanced__mode-toggle-
|
|
55
|
-
"SearchAdvanced__mode-toggle-desc": "_SearchAdvanced__mode-toggle-
|
|
56
|
-
"SearchAdvanced__date-picker-dropdown": "_SearchAdvanced__date-picker-
|
|
51
|
+
"SearchAdvanced__mode-toggle": "_SearchAdvanced__mode-toggle_ubuea_5",
|
|
52
|
+
"SearchAdvanced__mode-toggle-icon": "_SearchAdvanced__mode-toggle-icon_ubuea_17",
|
|
53
|
+
"SearchAdvanced__mode-toggle-desc": "_SearchAdvanced__mode-toggle-desc_ubuea_27",
|
|
54
|
+
"SearchAdvanced__date-picker-dropdown": "_SearchAdvanced__date-picker-dropdown_ubuea_41"
|
|
57
55
|
}, E = {
|
|
58
|
-
$style:
|
|
59
|
-
},
|
|
56
|
+
$style: b
|
|
57
|
+
}, G = /* @__PURE__ */ C(T, [["__cssModules", E]]);
|
|
60
58
|
export {
|
|
61
|
-
|
|
59
|
+
G as default
|
|
62
60
|
};
|
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
import { defineComponent as h, computed as S, createElementBlock as r, openBlock as c, normalizeClass as
|
|
2
|
-
import { useUIKit as f, TUIButton as
|
|
1
|
+
import { defineComponent as h, computed as S, createElementBlock as r, openBlock as c, normalizeClass as l, Fragment as b, renderList as p, createBlock as y, unref as T, withCtx as k, createTextVNode as u, toDisplayString as d } from "vue";
|
|
2
|
+
import { useUIKit as f, TUIButton as v } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { SearchType as s } from "../../../../types/engine.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as g } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const C = /* @__PURE__ */ h({
|
|
6
6
|
__name: "SearchTab",
|
|
7
7
|
props: {
|
|
8
8
|
activeTab: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["tab-change"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
{ key: "all", label:
|
|
14
|
-
{ key: s.MESSAGE, label:
|
|
15
|
-
{ key: s.USER, label:
|
|
16
|
-
{ key: s.GROUP, label:
|
|
17
|
-
]),
|
|
18
|
-
|
|
11
|
+
setup(o, { emit: n }) {
|
|
12
|
+
const _ = n, { t: a } = f(), i = S(() => [
|
|
13
|
+
{ key: "all", label: a("Search.type.all") },
|
|
14
|
+
{ key: s.MESSAGE, label: a("Search.type.messages") },
|
|
15
|
+
{ key: s.USER, label: a("Search.type.users") },
|
|
16
|
+
{ key: s.GROUP, label: a("Search.type.groups") }
|
|
17
|
+
]), m = (e) => {
|
|
18
|
+
_("tab-change", e);
|
|
19
19
|
};
|
|
20
20
|
return (e, x) => (c(), r("div", {
|
|
21
|
-
class:
|
|
21
|
+
class: l(e.$style.SearchTab)
|
|
22
22
|
}, [
|
|
23
|
-
(c(!0), r(b, null,
|
|
24
|
-
key:
|
|
23
|
+
(c(!0), r(b, null, p(i.value, (t) => (c(), y(T(v), {
|
|
24
|
+
key: t.key,
|
|
25
25
|
type: "text",
|
|
26
|
-
class:
|
|
26
|
+
class: l([
|
|
27
27
|
e.$style.SearchTab__item,
|
|
28
28
|
{
|
|
29
|
-
[e.$style["SearchTab__item--active"]]:
|
|
29
|
+
[e.$style["SearchTab__item--active"]]: o.activeTab === t.key
|
|
30
30
|
}
|
|
31
31
|
]),
|
|
32
|
-
onClick: (M) =>
|
|
32
|
+
onClick: (M) => m(t.key)
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
34
|
+
default: k(() => [
|
|
35
|
+
u(d(t.label), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 2
|
|
38
38
|
}, 1032, ["class", "onClick"]))), 128))
|
|
39
39
|
], 2));
|
|
40
40
|
}
|
|
41
|
-
}), $ = "
|
|
42
|
-
"tui-theme-dark": "_tui-theme-dark_1ismi_2",
|
|
43
|
-
"tui-theme-light": "_tui-theme-light_1ismi_140",
|
|
41
|
+
}), $ = "_SearchTab_1ksml_1", B = "_SearchTab__item_1ksml_11", E = {
|
|
44
42
|
SearchTab: $,
|
|
45
43
|
SearchTab__item: B,
|
|
46
|
-
"SearchTab__item--active": "_SearchTab__item--
|
|
44
|
+
"SearchTab__item--active": "_SearchTab__item--active_1ksml_29"
|
|
47
45
|
}, U = {
|
|
48
46
|
$style: E
|
|
49
|
-
}, z = /* @__PURE__ */
|
|
47
|
+
}, z = /* @__PURE__ */ g(C, [["__cssModules", U]]);
|
|
50
48
|
export {
|
|
51
49
|
z as default
|
|
52
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as k, createElementBlock as E, openBlock as $, normalizeClass as i, createElementVNode as c, normalizeStyle as S } from "vue";
|
|
2
|
+
import { _ as L } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const M = /* @__PURE__ */ y({
|
|
4
4
|
__name: "Slider",
|
|
5
5
|
props: {
|
|
6
6
|
value: {},
|
|
@@ -8,61 +8,59 @@ const L = /* @__PURE__ */ k({
|
|
|
8
8
|
max: { default: 99 },
|
|
9
9
|
onChange: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
11
|
+
setup(a) {
|
|
12
|
+
const e = a, v = k(), u = (t, l, n) => Math.max(l, Math.min(n, t)), o = (t) => (t - e.min) / (e.max - e.min) * 100, h = (t, l) => {
|
|
13
13
|
var w;
|
|
14
|
-
const n = "touches" in t ? t.touches[0].clientX : t.clientX,
|
|
15
|
-
if (!
|
|
16
|
-
const d =
|
|
14
|
+
const n = "touches" in t ? t.touches[0].clientX : t.clientX, r = v.value;
|
|
15
|
+
if (!r) return;
|
|
16
|
+
const d = r.getBoundingClientRect(), f = u((n - d.left) / d.width, 0, 1), _ = Math.round(f * (e.max - e.min) + e.min);
|
|
17
17
|
let m = e.value;
|
|
18
18
|
l === "min" ? m = [u(_, e.min, e.value[1]), e.value[1]] : m = [e.value[0], u(_, e.value[0], e.max)], (w = e.onChange) == null || w.call(e, m);
|
|
19
19
|
}, s = (t, l) => {
|
|
20
|
-
|
|
21
|
-
const n = (d) =>
|
|
22
|
-
window.removeEventListener("mousemove", n), window.removeEventListener("touchmove", n), window.removeEventListener("mouseup",
|
|
20
|
+
h(l, t);
|
|
21
|
+
const n = (d) => h(d, t), r = () => {
|
|
22
|
+
window.removeEventListener("mousemove", n), window.removeEventListener("touchmove", n), window.removeEventListener("mouseup", r), window.removeEventListener("touchend", r);
|
|
23
23
|
};
|
|
24
|
-
window.addEventListener("mousemove", n), window.addEventListener("touchmove", n), window.addEventListener("mouseup",
|
|
24
|
+
window.addEventListener("mousemove", n), window.addEventListener("touchmove", n), window.addEventListener("mouseup", r), window.addEventListener("touchend", r);
|
|
25
25
|
};
|
|
26
26
|
return (t, l) => ($(), E("div", {
|
|
27
|
-
class:
|
|
27
|
+
class: i(t.$style.SearchSlider)
|
|
28
28
|
}, [
|
|
29
29
|
c("div", {
|
|
30
|
-
class:
|
|
30
|
+
class: i(t.$style.SearchSlider__rail),
|
|
31
31
|
ref_key: "trackRef",
|
|
32
|
-
ref:
|
|
32
|
+
ref: v
|
|
33
33
|
}, [
|
|
34
34
|
c("div", {
|
|
35
|
-
class:
|
|
36
|
-
style:
|
|
37
|
-
left: `${
|
|
38
|
-
width: `${
|
|
35
|
+
class: i(t.$style.SearchSlider__track),
|
|
36
|
+
style: S({
|
|
37
|
+
left: `${o(a.value[0])}%`,
|
|
38
|
+
width: `${o(a.value[1]) - o(a.value[0])}%`
|
|
39
39
|
})
|
|
40
40
|
}, null, 6),
|
|
41
41
|
c("div", {
|
|
42
|
-
class:
|
|
43
|
-
style:
|
|
42
|
+
class: i(t.$style.SearchSlider__thumb),
|
|
43
|
+
style: S({ left: `${o(a.value[0])}%` }),
|
|
44
44
|
onMousedown: l[0] || (l[0] = (n) => s("min", n)),
|
|
45
45
|
onTouchstart: l[1] || (l[1] = (n) => s("min", n))
|
|
46
46
|
}, null, 38),
|
|
47
47
|
c("div", {
|
|
48
|
-
class:
|
|
49
|
-
style:
|
|
48
|
+
class: i(t.$style.SearchSlider__thumb),
|
|
49
|
+
style: S({ left: `${o(a.value[1])}%` }),
|
|
50
50
|
onMousedown: l[2] || (l[2] = (n) => s("max", n)),
|
|
51
51
|
onTouchstart: l[3] || (l[3] = (n) => s("max", n))
|
|
52
52
|
}, null, 38)
|
|
53
53
|
], 2)
|
|
54
54
|
], 2));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
"tui-theme-light": "_tui-theme-light_150a9_140",
|
|
59
|
-
SearchSlider: M,
|
|
56
|
+
}), g = "_SearchSlider_1at06_1", b = "_SearchSlider__rail_1at06_5", x = "_SearchSlider__track_1at06_13", C = "_SearchSlider__thumb_1at06_21", B = {
|
|
57
|
+
SearchSlider: g,
|
|
60
58
|
SearchSlider__rail: b,
|
|
61
59
|
SearchSlider__track: x,
|
|
62
60
|
SearchSlider__thumb: C
|
|
63
61
|
}, R = {
|
|
64
62
|
$style: B
|
|
65
|
-
}, H = /* @__PURE__ */
|
|
63
|
+
}, H = /* @__PURE__ */ L(M, [["__cssModules", R]]);
|
|
66
64
|
export {
|
|
67
65
|
H as default
|
|
68
66
|
};
|