tuikit-atomicx-vue3 3.3.4 → 3.4.2
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 +33 -0
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +89 -0
- package/dist/DialogPortal-CvJcEAsn.js +417 -0
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-C8oUv-KF.js +36 -0
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js +116 -0
- package/dist/PopoverTrigger-L8abAry7.js +607 -0
- package/dist/PopperContent-XdhqL8Y2.js +1603 -0
- package/dist/Teleport-CSEuZbpM.js +913 -0
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-DlROoquV.js +89 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/baseComp/ActionSheep.js +41 -51
- package/dist/baseComp/AudioIcon.js +27 -37
- package/dist/baseComp/Avatar.js +16 -28
- package/dist/baseComp/Dialog/DialogH5.js +56 -82
- package/dist/baseComp/Dialog/DialogPC.js +76 -118
- package/dist/baseComp/Dialog/index.js +2 -2
- package/dist/baseComp/IconButton.js +43 -56
- package/dist/baseComp/Input/InputH5.js +85 -128
- package/dist/baseComp/Input/InputPC.js +85 -128
- package/dist/baseComp/Input/InputWX.js +88 -131
- package/dist/baseComp/Input/index.js +5 -5
- package/dist/baseComp/MessageBox/index.js +120 -150
- package/dist/baseComp/Modal/Modal.js +38 -45
- package/dist/baseComp/Modal/index.js +3 -3
- package/dist/baseComp/ObserverView/ObserverView.js +50 -86
- package/dist/baseComp/ObserverView/index.js +2 -2
- package/dist/baseComp/Option/OptionH5.js +29 -40
- package/dist/baseComp/Option/OptionPC.js +34 -46
- package/dist/baseComp/Option/OptionWX.js +30 -41
- package/dist/baseComp/Option/index.js +2 -2
- package/dist/baseComp/Select/SelectH5.js +54 -86
- package/dist/baseComp/Select/SelectPC.js +78 -120
- package/dist/baseComp/Select/SelectWX.js +48 -79
- package/dist/baseComp/Select/index.js +2 -2
- package/dist/baseComp/SvgIcon.js +17 -22
- package/dist/baseComp/TuiSwitch.js +15 -19
- package/dist/baseComp/View/View.js +2 -2
- package/dist/baseComp/View/index.js +19 -24
- package/dist/baseComp/index.js +2 -2
- package/dist/baseComp/useZIndex.js +7 -12
- package/dist/chat/index.d.ts +1421 -990
- package/dist/chat/index.js +57 -82
- package/dist/chat/server.js +60 -84
- package/dist/components/AudioSetting/AudioMediaControl.js +52 -78
- package/dist/components/AudioSetting/AudioRequestDialog.js +2 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +72 -102
- package/dist/components/AudioSetting/MicrophoneSelect.js +45 -57
- package/dist/components/AudioSetting/SpeakerSelect.js +45 -57
- package/dist/components/AudioSetting/index.js +3 -3
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -2
- package/dist/components/AudioSettingPanel/i18n/index.js +4 -4
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/AudioSettingPanel/index.js +102 -147
- package/dist/components/Avatar/Avatar.js +88 -140
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/Avatar/AvatarBadge/AvatarBadge.js +25 -31
- package/dist/components/Avatar/AvatarBadge/index.js +2 -2
- package/dist/components/Avatar/constants/avatar.js +7 -12
- package/dist/components/Avatar/index.js +9 -9
- package/dist/components/BarrageInput/BarrageInput.js +50 -67
- package/dist/components/BarrageInput/BarrageInputH5.js +80 -111
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +84 -97
- package/dist/components/BarrageInput/EmojiPicker/index.js +2 -2
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +34 -62
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +79 -90
- package/dist/components/BarrageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/BarrageInput/TextEditor/index.js +81 -125
- package/dist/components/BarrageInput/constants.js +2 -2
- package/dist/components/BarrageInput/i18n/en-US/index.js +2 -2
- package/dist/components/BarrageInput/i18n/index.js +4 -4
- package/dist/components/BarrageInput/i18n/zh-CN/index.js +2 -2
- package/dist/components/BarrageInput/index.js +11 -11
- package/dist/components/BarrageList/BarrageList.js +97 -173
- package/dist/components/BarrageList/BarrageListH5.js +96 -171
- package/dist/components/BarrageList/ClickAction/UserActionMenu.js +64 -94
- package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +2 -2
- package/dist/components/BarrageList/Message/CustomMessage/index.js +5 -7
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +16 -21
- package/dist/components/BarrageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +13 -18
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +56 -80
- package/dist/components/BarrageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +5 -5
- package/dist/components/BarrageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/Message.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +28 -39
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +93 -101
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +26 -32
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +19 -22
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +31 -39
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +67 -96
- package/dist/components/BarrageList/Message/TextMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/index.js +11 -15
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +34 -43
- package/dist/components/BarrageList/MessageForward/MessageForward.js +158 -210
- package/dist/components/BarrageList/MessageForward/index.js +2 -2
- package/dist/components/BarrageList/MessageListContext.js +9 -10
- package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/BarrageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/BarrageList/i18n/en-US/index.js +3 -3
- package/dist/components/BarrageList/i18n/index.js +4 -4
- package/dist/components/BarrageList/i18n/zh-CN/index.js +3 -3
- package/dist/components/BarrageList/index.js +10 -10
- package/dist/components/CameraButton/index.js +34 -44
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +92 -108
- package/dist/components/ChatSetting/C2CChatSetting/index.js +3 -3
- package/dist/components/ChatSetting/ChatSetting.js +17 -23
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +133 -163
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +179 -245
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +124 -181
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +195 -259
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +23 -32
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +149 -212
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +35 -40
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/index.js +2 -2
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +201 -247
- package/dist/components/ChatSetting/SettingItem/index.js +2 -2
- package/dist/components/ChatSetting/i18n/en-US.js +2 -2
- package/dist/components/ChatSetting/i18n/index.js +6 -6
- package/dist/components/ChatSetting/i18n/zh-CN.js +2 -2
- package/dist/components/ChatSetting/index.js +7 -7
- package/dist/components/CoGuestPanel/CoGuestPanel.js +139 -180
- package/dist/components/CoGuestPanel/constants.js +2 -2
- package/dist/components/CoGuestPanel/i18n/en-US/index.js +9 -9
- package/dist/components/CoGuestPanel/i18n/index.js +4 -4
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +9 -9
- package/dist/components/CoGuestPanel/index.js +8 -8
- package/dist/components/CoHostPanel/BattlePanel.js +196 -0
- package/dist/components/CoHostPanel/BattlePanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/CoHostPanel.js +114 -0
- package/dist/components/CoHostPanel/CoHostPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +110 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.vue.d.ts +33 -0
- package/dist/components/CoHostPanel/ConnectionPanel.js +273 -0
- package/dist/components/CoHostPanel/ConnectionPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/RecommendHostList.js +113 -0
- package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +13 -0
- package/dist/components/CoHostPanel/UserList.js +34 -0
- package/dist/components/CoHostPanel/UserList.vue.d.ts +28 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +74 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +81 -0
- package/dist/components/CoHostPanel/i18n/index.d.ts +4 -0
- package/dist/components/CoHostPanel/i18n/index.js +6 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +75 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +82 -0
- package/dist/components/CoHostPanel/index.d.ts +16 -0
- package/dist/components/CoHostPanel/index.js +10 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +36 -51
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +141 -196
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +39 -61
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +109 -160
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +58 -86
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +99 -133
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +86 -118
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +72 -101
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/index.js +16 -16
- package/dist/components/ContactList/ContactList.js +164 -235
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/ContactListItem.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +46 -61
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +24 -31
- package/dist/components/ContactList/ContactListItem/FriendItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +45 -64
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/GroupItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/index.js +57 -66
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +53 -73
- package/dist/components/ContactList/ContactSearch/index.js +2 -2
- package/dist/components/ContactList/constants/const.js +3 -4
- package/dist/components/ContactList/hooks/index.js +2 -2
- package/dist/components/ContactList/hooks/useContactList.js +11 -15
- package/dist/components/ContactList/i18n/en-US.js +21 -21
- package/dist/components/ContactList/i18n/index.js +4 -4
- package/dist/components/ContactList/i18n/zh-CN.js +21 -21
- package/dist/components/ContactList/index.js +12 -14
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +107 -150
- package/dist/components/ConversationList/ConversationActions/index.js +2 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +116 -193
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +65 -80
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +108 -126
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +40 -52
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +61 -79
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +4 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/index.js +12 -12
- package/dist/components/ConversationList/ConversationList.js +112 -154
- package/dist/components/ConversationList/ConversationList.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +27 -33
- package/dist/components/ConversationList/ConversationListContent/index.js +2 -2
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +30 -39
- package/dist/components/ConversationList/ConversationListHeader/index.js +2 -2
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +65 -81
- package/dist/components/ConversationList/ConversationPlaceHolder/index.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +40 -59
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -47
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +25 -42
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -111
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +36 -51
- package/dist/components/ConversationList/ConversationPreview/index.js +55 -63
- package/dist/components/ConversationList/ConversationPreview/utils.js +36 -42
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +114 -160
- package/dist/components/ConversationList/ConversationSearch/index.js +2 -2
- package/dist/components/ConversationList/hooks/useConversation.js +12 -18
- package/dist/components/ConversationList/hooks/useConversationCreate.js +17 -18
- package/dist/components/ConversationList/i18n/en-US.js +32 -32
- package/dist/components/ConversationList/i18n/index.js +4 -4
- package/dist/components/ConversationList/i18n/zh-CN.js +32 -32
- package/dist/components/ConversationList/index.d.ts +989 -989
- package/dist/components/ConversationList/index.js +24 -32
- package/dist/components/LiveAudienceList/LiveAudienceList.js +85 -120
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +50 -72
- package/dist/components/LiveAudienceList/UserActionMenu.js +82 -124
- package/dist/components/LiveAudienceList/i18n/en-US/index.js +2 -2
- package/dist/components/LiveAudienceList/i18n/index.js +4 -4
- package/dist/components/LiveAudienceList/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveAudienceList/index.js +10 -10
- package/dist/components/LiveList/LiveList.js +109 -165
- package/dist/components/LiveList/LiveList.vue.d.ts +15 -3
- package/dist/components/LiveList/LiveListH5.js +109 -169
- package/dist/components/LiveList/i18n/en-US/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/en-US/index.js +4 -4
- package/dist/components/LiveList/i18n/index.js +4 -4
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/zh-CN/index.js +4 -4
- package/dist/components/LiveList/index.d.ts +17 -1
- package/dist/components/LiveList/index.js +10 -10
- package/dist/components/LiveList/pullToRefresh.js +88 -163
- package/dist/components/LiveMonitorView/LiveMonitorView.js +72 -110
- package/dist/components/LiveMonitorView/i18n/en-US/index.js +2 -2
- package/dist/components/LiveMonitorView/i18n/index.js +4 -4
- package/dist/components/LiveMonitorView/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveMonitorView/index.js +7 -7
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +126 -188
- package/dist/components/LiveScenePanel/LiveSceneSelect.js +79 -106
- package/dist/components/LiveScenePanel/MaterialDialog.js +78 -98
- package/dist/components/LiveScenePanel/MaterialItem.js +105 -142
- package/dist/components/LiveScenePanel/MaterialRenameDialog.js +2 -2
- package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -2
- package/dist/components/LiveScenePanel/i18n/index.js +4 -4
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveScenePanel/icons/AddIcon.js +10 -11
- package/dist/components/LiveScenePanel/icons/CameraIcon.js +9 -10
- package/dist/components/LiveScenePanel/icons/CameraMirror.js +13 -14
- package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +11 -12
- package/dist/components/LiveScenePanel/icons/ImageIcon.js +8 -9
- package/dist/components/LiveScenePanel/icons/MoreIcon.js +13 -14
- package/dist/components/LiveScenePanel/icons/ScreenIcon.js +8 -9
- package/dist/components/LiveScenePanel/index.js +142 -190
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +152 -0
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +73 -0
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
- package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +54 -0
- package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
- package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
- package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
- package/dist/components/LiveView/DefaultStreamViewUI.js +124 -0
- package/dist/components/LiveView/PlayerControl/AudioControl.js +129 -0
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +78 -0
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +2 -0
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +168 -0
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +11 -0
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +267 -0
- package/dist/components/LiveView/PlayerControl/index.js +8 -0
- package/dist/components/LiveView/PlayerControl/utils/deviceDetection.js +45 -0
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +99 -0
- package/dist/components/LiveView/PlayerControl/utils/fullscreenManager.js +241 -0
- package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +7 -0
- package/dist/components/LiveView/i18n/en-US/index.js +23 -0
- package/dist/components/LiveView/i18n/index.js +6 -0
- package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +7 -0
- package/dist/components/LiveView/i18n/zh-CN/index.js +23 -0
- package/dist/components/LiveView/index.d.ts +79 -0
- package/dist/components/LiveView/index.js +243 -0
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +2 -2
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +10 -1
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/index.js +70 -72
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +155 -0
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/AudioCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/AudioCallPicker/index.js +4 -0
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +108 -96
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.vue.d.ts +34 -6
- package/dist/components/MessageInput/EmojiPicker/index.js +2 -2
- package/dist/components/MessageInput/MessageInput.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +60 -74
- package/dist/components/MessageInput/SendButton/SendButton.js +2 -2
- package/dist/components/MessageInput/SendButton/index.js +20 -25
- package/dist/components/MessageInput/TextEditor/EditorCore.js +72 -79
- package/dist/components/MessageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +60 -95
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +158 -0
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/VideoCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/VideoCallPicker/index.js +4 -0
- package/dist/components/MessageInput/i18n/en-US.d.ts +4 -0
- package/dist/components/MessageInput/i18n/en-US.js +7 -3
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/index.js +6 -6
- package/dist/components/MessageInput/i18n/zh-CN.js +2 -2
- package/dist/components/MessageInput/index.d.ts +462 -191
- package/dist/components/MessageInput/index.js +23 -25
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +50 -65
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +31 -37
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +37 -52
- package/dist/components/MessageList/Message/AudioMessage/index.js +2 -2
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +60 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue.d.ts +16 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.d.ts +3 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.js +4 -0
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +49 -2
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.vue.d.ts +15 -1
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -10
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -20
- package/dist/components/MessageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +57 -70
- package/dist/components/MessageList/Message/FileMessage/index.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -23
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +41 -59
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +106 -169
- package/dist/components/MessageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +7 -7
- package/dist/components/MessageList/Message/LocationMessage/index.js +2 -2
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +7 -7
- package/dist/components/MessageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/MessageList/Message/Message.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +800 -1074
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +36 -44
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +116 -123
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +47 -73
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +24 -27
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +23 -28
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +39 -48
- package/dist/components/MessageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +80 -102
- package/dist/components/MessageList/Message/TextMessage/index.js +2 -2
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +68 -92
- package/dist/components/MessageList/Message/VideoMessage/index.js +2 -2
- package/dist/components/MessageList/Message/index.js +18 -20
- package/dist/components/MessageList/MessageForward/ForwardListItem.js +46 -53
- package/dist/components/MessageList/MessageForward/MessageForward.js +102 -124
- package/dist/components/MessageList/MessageForward/index.js +2 -2
- package/dist/components/MessageList/MessageList.js +129 -204
- package/dist/components/MessageList/MessageListContext.js +9 -10
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/MessageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +294 -379
- package/dist/components/MessageList/ReadReceiptInfo/index.js +2 -2
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +20 -25
- package/dist/components/MessageList/ScrollToBottom/index.js +2 -2
- package/dist/components/MessageList/i18n/en-US.d.ts +20 -1
- package/dist/components/MessageList/i18n/en-US.js +21 -2
- package/dist/components/MessageList/i18n/index.d.ts +134 -92
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +20 -1
- package/dist/components/MessageList/i18n/zh-CN.js +21 -2
- package/dist/components/MessageList/index.js +9 -10
- package/dist/components/MicButton/AudioIcon.js +27 -37
- package/dist/components/MicButton/index.js +37 -52
- package/dist/components/Search/Search.js +117 -156
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +378 -505
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +147 -211
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +46 -60
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +39 -51
- package/dist/components/Search/SearchAdvanced/SearchTab/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +53 -82
- package/dist/components/Search/SearchAdvanced/Slider/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +247 -317
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/index.js +12 -12
- package/dist/components/Search/SearchBar/SearchBar.js +98 -122
- package/dist/components/Search/SearchBar/index.js +2 -2
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +26 -37
- package/dist/components/Search/SearchResults/EmptyResult/index.js +2 -2
- package/dist/components/Search/SearchResults/Loading/Loading.js +13 -19
- package/dist/components/Search/SearchResults/Loading/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResults.js +233 -339
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +61 -83
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +40 -52
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +134 -181
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +40 -46
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +56 -75
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/index.js +11 -11
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +17 -36
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +2 -2
- package/dist/components/Search/SearchResults/index.js +16 -16
- package/dist/components/Search/i18n/en-US/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/en-US/Search.js +3 -3
- package/dist/components/Search/i18n/en-US/index.js +7 -7
- package/dist/components/Search/i18n/index.js +4 -4
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/zh-CN/Search.js +3 -3
- package/dist/components/Search/i18n/zh-CN/index.js +7 -7
- package/dist/components/Search/index.js +20 -26
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +68 -100
- package/dist/components/StreamMixer/LocalMixer/index.js +103 -171
- package/dist/components/StreamMixer/i18n/en-US/index.js +2 -2
- package/dist/components/StreamMixer/i18n/index.js +4 -4
- package/dist/components/StreamMixer/i18n/zh-CN/index.js +2 -2
- package/dist/components/StreamMixer/icons/CameraMirror.js +13 -14
- package/dist/components/StreamMixer/icons/Delete.js +13 -14
- package/dist/components/StreamMixer/icons/Down.js +10 -11
- package/dist/components/StreamMixer/icons/Rotation.js +11 -12
- package/dist/components/StreamMixer/icons/Up.js +10 -11
- package/dist/components/StreamMixer/index.js +19 -21
- package/dist/components/StreamView/Layout/CustomLayout.js +132 -209
- package/dist/components/StreamView/Layout/FloatLayout.js +136 -199
- package/dist/components/StreamView/Layout/GridLayout.js +117 -197
- package/dist/components/StreamView/Layout/MeetingLayout.js +129 -231
- package/dist/components/StreamView/Layout/MixLayout.js +70 -98
- package/dist/components/StreamView/common/ArrowStroke.js +26 -29
- package/dist/components/StreamView/common/LocalScreenView/index.js +82 -92
- package/dist/components/StreamView/common/StreamCover/index.js +33 -62
- package/dist/components/StreamView/common/StreamList/index.js +103 -163
- package/dist/components/StreamView/common/StreamPlay/index.js +58 -98
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.js +58 -90
- package/dist/components/StreamView/common/StreamRegion/index.js +2 -2
- package/dist/components/StreamView/index.js +64 -66
- package/dist/components/StreamView/manager/mediaManager.js +125 -236
- package/dist/components/UserList/AllUserActions/index.js +2 -2
- package/dist/components/UserList/AllUserActions/indexH5.js +59 -69
- package/dist/components/UserList/AllUserActions/indexPC.js +61 -73
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +32 -39
- package/dist/components/UserList/UserItem/UserAction/index.js +2 -2
- package/dist/components/UserList/UserItem/UserAction/indexH5.js +47 -61
- package/dist/components/UserList/UserItem/UserAction/indexPC.js +86 -130
- package/dist/components/UserList/UserItem/UserInfo/index.js +67 -117
- package/dist/components/UserList/UserItem/UserInvite/index.js +18 -21
- package/dist/components/UserList/UserItem/index.js +2 -2
- package/dist/components/UserList/UserItem/indexH5.js +42 -54
- package/dist/components/UserList/UserItem/indexPC.js +32 -37
- package/dist/components/UserList/UserListContent/index.js +30 -44
- package/dist/components/UserList/UserListSearch/index.js +20 -26
- package/dist/components/UserList/index.js +50 -63
- package/dist/components/UserPicker/UserPicker.js +110 -148
- package/dist/components/UserPicker/components/ListMode/ListMode.js +70 -96
- package/dist/components/UserPicker/components/ListMode/index.js +2 -2
- package/dist/components/UserPicker/components/SearchBar/SearchBar.js +43 -58
- package/dist/components/UserPicker/components/SearchBar/index.js +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +69 -94
- package/dist/components/UserPicker/components/SelectedPanel/index.js +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.js +33 -42
- package/dist/components/UserPicker/components/TreeMode/TreeNode.js +81 -106
- package/dist/components/UserPicker/components/TreeMode/index.js +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -80
- package/dist/components/UserPicker/hooks/useSelection.js +155 -313
- package/dist/components/UserPicker/hooks/useTreeState.js +17 -37
- package/dist/components/UserPicker/i18n/en-US.js +2 -2
- package/dist/components/UserPicker/i18n/index.js +6 -6
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -2
- package/dist/components/UserPicker/index.js +7 -7
- package/dist/components/VideoSetting/CameraSelect.js +46 -58
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -65
- package/dist/components/VideoSetting/VideoPreview.js +31 -40
- package/dist/components/VideoSetting/VideoProfile.js +38 -46
- package/dist/components/VideoSetting/VideoRequestDialog.js +2 -2
- package/dist/components/VideoSetting/VideoSettingTab.js +43 -55
- package/dist/components/VideoSetting/index.js +3 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +45 -57
- package/dist/components/VideoSettingPanel/VideoPreview.js +30 -39
- package/dist/components/VideoSettingPanel/VideoProfile.js +36 -44
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +5 -5
- package/dist/components/VideoSettingPanel/i18n/index.js +4 -4
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +5 -5
- package/dist/components/VideoSettingPanel/index.js +48 -63
- package/dist/constants/emoji.js +3 -4
- package/dist/directives/vClickOutside.js +9 -23
- package/dist/directives/vDblTouch.js +26 -51
- package/dist/directives/vTap.js +37 -68
- package/dist/directives/vTouchScale.js +83 -155
- package/dist/handler/index.js +4 -4
- package/dist/handler/translator.js +65 -97
- package/dist/handler/voiceConverter.js +21 -30
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/useAudioControl.js +44 -128
- package/dist/hooks/useLongPress.js +41 -75
- package/dist/hooks/useMessageActions.d.ts +1 -1
- package/dist/hooks/useMessageActions.js +46 -57
- package/dist/hooks/useMouseHover.js +16 -26
- package/dist/hooks/useReadReceipt/useReadReceipt.js +66 -114
- package/dist/hooks/useRoomActions/index.js +11 -14
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +39 -44
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +41 -48
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +38 -44
- package/dist/hooks/useRoomEngine.js +14 -17
- package/dist/hooks/useScroll.js +52 -89
- package/dist/hooks/useUserActions/index.js +81 -117
- package/dist/hooks/useUserActions/useAdminAction.js +29 -35
- package/dist/hooks/useUserActions/useAudioAction.js +36 -40
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardDialog.js +59 -69
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardInput.js +40 -49
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +43 -51
- package/dist/hooks/useUserActions/useChatAction.js +23 -25
- package/dist/hooks/useUserActions/useKickUserAction.js +27 -32
- package/dist/hooks/useUserActions/useMemberInviteAction.js +24 -40
- package/dist/hooks/useUserActions/useSeatAction.js +96 -108
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +40 -47
- package/dist/hooks/useUserActions/useVideoAction.js +35 -38
- package/dist/hooks/useZIndex.js +7 -12
- package/dist/i18n/index.js +4 -4
- package/dist/index-Bm-QfV5o.js +5125 -0
- package/dist/index-CeQ4nl87.js +44 -0
- package/dist/index-D2OVtqc8.js +12047 -0
- package/dist/index-DPczIrgX.js +42 -0
- package/dist/index-DTq2ybsB.js +33 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +180 -159
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +32 -0
- package/dist/locales/en-US.js +31 -31
- package/dist/locales/index.js +29 -34
- package/dist/locales/zh-CN.js +31 -31
- package/dist/rtc/index.d.ts +35 -40
- package/dist/rtc/index.js +64 -86
- package/dist/rtc/server.js +62 -85
- package/dist/states/BarrageListState/BarrageListState.js +98 -183
- package/dist/states/BarrageListState/index.js +2 -2
- package/dist/states/BattleState.d.ts +46 -0
- package/dist/states/BattleState.js +117 -0
- package/dist/states/C2CSettingState/C2CSettingState.js +52 -92
- package/dist/states/C2CSettingState/index.js +2 -2
- package/dist/states/CoGuestState.d.ts +1 -1
- package/dist/states/CoGuestState.js +191 -291
- package/dist/states/CoHostState/CoHostState.d.ts +30 -0
- package/dist/states/CoHostState/CoHostState.js +209 -0
- package/dist/states/CoHostState/index.d.ts +1 -0
- package/dist/states/CoHostState/index.js +4 -0
- package/dist/states/ContactListState/ContactListState.js +175 -271
- package/dist/states/ContactListState/index.js +2 -2
- package/dist/states/ConversationListState/ConversationListState.js +61 -112
- package/dist/states/ConversationListState/index.js +2 -2
- package/dist/states/DeviceState.js +240 -389
- package/dist/states/GroupSettingState/GroupSettingState.js +220 -378
- package/dist/states/GroupSettingState/index.js +7 -7
- package/dist/states/GroupSettingState/permissions.js +240 -250
- package/dist/states/GroupSettingState/types.js +5 -41
- package/dist/states/LiveAudienceState.js +100 -132
- package/dist/states/LiveMonitorState/api/http.js +1245 -1910
- package/dist/states/LiveMonitorState/index.js +92 -148
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +54 -106
- package/dist/states/LiveMonitorState/player/base/basePlayer.js +111 -169
- package/dist/states/LiveMonitorState/player/index.js +10 -10
- package/dist/states/LiveMonitorState/player/manager/playerManager.js +27 -33
- package/dist/states/LiveMonitorState/player/types/index.js +8 -8
- package/dist/states/LiveMonitorState/player/types/player.js +3 -13
- package/dist/states/LiveMonitorState/player/types/trtc.js +6 -20
- package/dist/states/LiveMonitorState/utils/index.js +17 -22
- package/dist/states/LiveSeatState/index.js +16 -16
- package/dist/states/LiveSeatState/seatEventManager.js +54 -75
- package/dist/states/LiveSeatState/seatManager.js +29 -36
- package/dist/states/LiveSeatState/store.js +18 -25
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +43 -65
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +55 -83
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +59 -97
- package/dist/states/LiveSeatState/usePlayStream/index.js +44 -96
- package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +43 -55
- package/dist/states/LiveState/index.js +190 -275
- package/dist/states/LoginState.js +48 -62
- package/dist/states/MessageActionState/MessageActionState.d.ts +6 -6
- package/dist/states/MessageActionState/MessageActionState.js +45 -56
- package/dist/states/MessageActionState/index.js +2 -2
- package/dist/states/MessageInputState/MessageInputState.js +90 -139
- package/dist/states/MessageInputState/index.js +4 -4
- package/dist/states/MessageInputState/type.js +2 -10
- package/dist/states/MessageInputState/utils.js +20 -21
- package/dist/states/MessageListState/MessageListState.js +65 -89
- package/dist/states/MessageListState/index.js +2 -2
- package/dist/states/RoomState.js +223 -332
- package/dist/states/SearchState.d.ts +2 -2
- package/dist/states/SearchState.js +229 -356
- package/dist/states/SeatStore.js +140 -213
- package/dist/states/UserState/index.js +31 -51
- package/dist/states/UserState/store.js +95 -147
- package/dist/states/UserState/userEventManager.js +85 -134
- package/dist/states/UserState/userManager.js +184 -232
- package/dist/states/VideoMixerState.js +181 -228
- package/dist/statistical/const.js +2 -6
- package/dist/statistical/index.js +4 -4
- package/dist/statistical/statistical.js +12 -12
- package/dist/styles/index.css +1 -13145
- package/dist/types/battle.d.ts +11 -0
- package/dist/types/battle.js +1 -0
- package/dist/types/call.d.ts +55 -0
- package/dist/types/call.js +4 -0
- package/dist/types/chatSetting.js +4 -4
- package/dist/types/coGuest.js +2 -8
- package/dist/types/coHost.d.ts +44 -4
- package/dist/types/coHost.js +4 -8
- package/dist/types/contact.js +3 -17
- package/dist/types/conversation.js +6 -36
- package/dist/types/device.d.ts +4 -0
- package/dist/types/device.js +8 -45
- package/dist/types/engine.d.ts +23 -7
- package/dist/types/engine.js +5 -23
- package/dist/types/index.d.ts +9 -6
- package/dist/types/index.js +92 -84
- package/dist/types/live.js +4 -21
- package/dist/types/message.js +4 -29
- package/dist/types/monitor.js +2 -6
- package/dist/types/room.js +3 -16
- package/dist/types/search.js +9 -15
- package/dist/types/seat.d.ts +4 -4
- package/dist/types/stream.js +3 -14
- package/dist/types/types.js +32 -329
- package/dist/types/user.d.ts +0 -3
- package/dist/types/user.js +8 -65
- package/dist/useId-CtirfF0W.js +12 -0
- package/dist/utils/call.d.ts +6 -2
- package/dist/utils/call.js +126 -11
- package/dist/utils/copyText.js +20 -33
- package/dist/utils/documentLink.js +2 -2
- package/dist/utils/domOperation.js +99 -122
- package/dist/utils/downFile.js +11 -19
- package/dist/utils/emoji.js +24 -31
- package/dist/utils/enableSampleTaskStatus.js +5 -8
- package/dist/utils/env.js +8 -13
- package/dist/utils/environment.js +14 -18
- package/dist/utils/index.js +36 -36
- package/dist/utils/json.js +34 -58
- package/dist/utils/lodash.js +63 -109
- package/dist/utils/riseInput.js +19 -36
- package/dist/utils/time.js +640 -934
- package/dist/utils/type-check.js +21 -46
- package/dist/utils/utils.js +131 -235
- package/dist/utils-DaB7eSu5.js +48 -0
- package/package.json +5 -4
- package/src/chat/index.ts +18 -0
- package/src/components/BarrageInput/TextEditor/Editor.scss +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/ChatSetting.vue +3 -3
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +3 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +1 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +2 -1
- package/src/components/CoHostPanel/BattlePanel.vue +271 -0
- package/src/components/CoHostPanel/CoHostPanel.vue +226 -0
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +264 -0
- package/src/components/CoHostPanel/ConnectionPanel.vue +549 -0
- package/src/components/CoHostPanel/RecommendHostList.vue +306 -0
- package/src/components/CoHostPanel/UserList.vue +93 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +78 -0
- package/src/components/CoHostPanel/i18n/index.ts +4 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +79 -0
- package/src/components/CoHostPanel/index.ts +7 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveList/LiveList.vue +61 -106
- package/src/components/LiveList/LiveListH5.vue +1 -1
- package/src/components/LiveList/i18n/en-US/index.ts +1 -1
- package/src/components/LiveList/i18n/zh-CN/index.ts +1 -1
- package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +420 -0
- package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +140 -0
- package/src/components/LiveView/CoreViewDecorate/CoHostDecorate.vue +116 -0
- package/src/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +130 -0
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -8
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +117 -1
- package/src/components/LiveView/assets/img/defeat.png +0 -0
- package/src/components/LiveView/assets/img/draw.png +0 -0
- package/src/components/LiveView/assets/img/victory.png +0 -0
- package/src/components/LiveView/assets/svg/BattleOrdinaryBadge.svg +20 -0
- package/src/components/LiveView/assets/svg/BattleTopBadge.svg +16 -0
- package/src/components/LiveView/assets/svg/blueBkg.svg +9 -0
- package/src/components/LiveView/assets/svg/redBkg.svg +9 -0
- package/src/components/LiveView/assets/svg/s.svg +17 -0
- package/src/components/LiveView/assets/svg/v.svg +17 -0
- package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +7 -0
- package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +7 -0
- package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
- package/src/components/{LiveCoreView → LiveView}/index.vue +5 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +10 -8
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +59 -31
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +58 -31
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +58 -31
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +240 -0
- package/src/components/MessageInput/AudioCallPicker/index.ts +3 -0
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +107 -18
- package/src/components/MessageInput/MessageInput.module.scss +1 -1
- package/src/components/MessageInput/MessageInput.vue +6 -2
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +246 -0
- package/src/components/MessageInput/VideoCallPicker/index.ts +3 -0
- package/src/components/MessageInput/i18n/en-US.ts +4 -0
- package/src/components/MessageInput/index.ts +10 -4
- package/src/components/MessageInput/types.d.ts +3 -1
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +67 -0
- package/src/components/MessageList/Message/CustomMessage/CallMessage/index.ts +3 -0
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +59 -2
- package/src/components/MessageList/Message/CustomMessage/index.ts +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +9 -10
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +30 -18
- package/src/components/MessageList/i18n/en-US.ts +24 -1
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +24 -1
- package/src/components/MessageList/index.ts +2 -2
- package/src/components/StreamMixer/index.vue +1 -1
- package/src/components/UserPicker/UserPicker.vue +0 -2
- package/src/hooks/index.ts +1 -2
- package/src/hooks/useMessageActions.ts +3 -3
- package/src/index.ts +2 -1
- package/src/rtc/index.ts +7 -2
- package/src/types/battle.ts +12 -0
- package/src/types/call.ts +62 -0
- package/src/types/coHost.ts +46 -4
- package/src/types/device.ts +5 -0
- package/src/types/engine.ts +45 -21
- package/src/types/index.ts +12 -6
- package/src/types/seat.ts +5 -5
- package/src/types/user.ts +0 -4
- package/src/utils/call.ts +233 -5
- package/src/utils/time.ts +1 -1
- package/dist/AttachmentPicker.module-BesmtGyl.js +0 -11
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-BmX-qsat.js +0 -108
- package/dist/DialogPortal-DWeT-J6v.js +0 -496
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +0 -76
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +0 -76
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js +0 -43
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js +0 -128
- package/dist/PopoverTrigger-BKOIHfdS.js +0 -679
- package/dist/PopperContent-DtL7HVWz.js +0 -2227
- package/dist/Teleport-CMvGsENT.js +0 -1365
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +0 -76
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-CnE-LwNh.js +0 -108
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
- package/dist/components/LiveCoreView/DefaultStreamViewUI.js +0 -177
- package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +0 -252
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -279
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -412
- package/dist/components/LiveCoreView/PlayerControl/index.js +0 -8
- package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +0 -129
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -120
- package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +0 -311
- package/dist/components/LiveCoreView/i18n/en-US/index.js +0 -16
- package/dist/components/LiveCoreView/i18n/index.js +0 -6
- package/dist/components/LiveCoreView/i18n/zh-CN/index.js +0 -16
- package/dist/components/LiveCoreView/index.d.ts +0 -4
- package/dist/components/LiveCoreView/index.js +0 -366
- package/dist/index-BF6QB9jF.js +0 -63
- package/dist/index-BPFJrNlA.js +0 -15915
- package/dist/index-CX1Zs9En.js +0 -44
- package/dist/index-DRcLhqhU.js +0 -38
- package/dist/index-v15JHz0-.js +0 -7655
- package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +0 -36
- package/dist/states/CoHostState.d.ts +0 -22
- package/dist/states/CoHostState.js +0 -178
- package/dist/useId-CsgLY8y3.js +0 -13
- package/dist/utils-KP1QpeUS.js +0 -59
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +0 -28
- /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.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/utils/deviceDetection.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.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/domHelpers.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
|
@@ -1,537 +1,412 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, onUnmounted, createElementBlock, unref, openBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
|
|
2
|
-
import { useUIKit } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
-
import { isH5 } from "../../../../utils/env.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
6
|
-
const _hoisted_2 = ["onClick"];
|
|
7
|
-
const _hoisted_3 = ["onClick"];
|
|
8
|
-
const _hoisted_4 = ["onClick"];
|
|
9
|
-
const _hoisted_5 = ["onClick"];
|
|
10
|
-
const _hoisted_6 = ["onClick"];
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as Q, ref as g, watch as X, onMounted as Z, onUnmounted as x, createElementBlock as i, unref as L, openBlock as k, normalizeClass as r, createElementVNode as c, withModifiers as ee, toDisplayString as l, createCommentVNode as W, Fragment as P, renderList as y } from "vue";
|
|
2
|
+
import { useUIKit as ae } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { isH5 as te } from "../../../../utils/env.js";
|
|
4
|
+
import { _ as re } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const ne = ["onClick"], ce = ["onClick"], se = ["onClick"], le = ["onClick"], ie = ["onClick"], ke = ["onClick"], oe = /* @__PURE__ */ Q({
|
|
12
6
|
__name: "DateRangePicker",
|
|
13
7
|
props: {
|
|
14
8
|
value: {},
|
|
15
9
|
onChange: { type: Function },
|
|
16
10
|
className: {}
|
|
17
11
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
const { t } = useUIKit();
|
|
21
|
-
const leftDate = ref(/* @__PURE__ */ new Date());
|
|
22
|
-
const rightDate = ref(
|
|
12
|
+
setup(B) {
|
|
13
|
+
const v = B, { t: s } = ae(), u = g(/* @__PURE__ */ new Date()), h = g(
|
|
23
14
|
(() => {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
return date;
|
|
15
|
+
const e = /* @__PURE__ */ new Date();
|
|
16
|
+
return e.setMonth(e.getMonth() + 1), e;
|
|
27
17
|
})()
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
t("DateRangePicker.Thursday"),
|
|
56
|
-
t("DateRangePicker.Friday"),
|
|
57
|
-
t("DateRangePicker.Saturday"),
|
|
58
|
-
t("DateRangePicker.Sunday")
|
|
59
|
-
];
|
|
60
|
-
const setStartOfDay = (date) => {
|
|
61
|
-
const newDate = new Date(date);
|
|
62
|
-
newDate.setHours(0, 0, 0, 0);
|
|
63
|
-
return newDate;
|
|
64
|
-
};
|
|
65
|
-
const setEndOfDay = (date) => {
|
|
66
|
-
const newDate = new Date(date);
|
|
67
|
-
newDate.setHours(23, 59, 59, 999);
|
|
68
|
-
return newDate;
|
|
18
|
+
), d = g([null, null]), S = g(!1), p = g(!1), R = g(u.value.getFullYear()), $ = g(h.value.getFullYear()), C = g(), Y = g(), K = g(!1), f = [
|
|
19
|
+
s("DateRangePicker.January"),
|
|
20
|
+
s("DateRangePicker.February"),
|
|
21
|
+
s("DateRangePicker.March"),
|
|
22
|
+
s("DateRangePicker.April"),
|
|
23
|
+
s("DateRangePicker.May"),
|
|
24
|
+
s("DateRangePicker.June"),
|
|
25
|
+
s("DateRangePicker.July"),
|
|
26
|
+
s("DateRangePicker.August"),
|
|
27
|
+
s("DateRangePicker.September"),
|
|
28
|
+
s("DateRangePicker.October"),
|
|
29
|
+
s("DateRangePicker.November"),
|
|
30
|
+
s("DateRangePicker.December")
|
|
31
|
+
], T = [
|
|
32
|
+
s("DateRangePicker.Monday"),
|
|
33
|
+
s("DateRangePicker.Tuesday"),
|
|
34
|
+
s("DateRangePicker.Wednesday"),
|
|
35
|
+
s("DateRangePicker.Thursday"),
|
|
36
|
+
s("DateRangePicker.Friday"),
|
|
37
|
+
s("DateRangePicker.Saturday"),
|
|
38
|
+
s("DateRangePicker.Sunday")
|
|
39
|
+
], F = (e) => {
|
|
40
|
+
const a = new Date(e);
|
|
41
|
+
return a.setHours(0, 0, 0, 0), a;
|
|
42
|
+
}, V = (e) => {
|
|
43
|
+
const a = new Date(e);
|
|
44
|
+
return a.setHours(23, 59, 59, 999), a;
|
|
69
45
|
};
|
|
70
|
-
|
|
71
|
-
() =>
|
|
72
|
-
(
|
|
73
|
-
|
|
46
|
+
X(
|
|
47
|
+
() => v.value,
|
|
48
|
+
(e) => {
|
|
49
|
+
d.value = e || [null, null];
|
|
74
50
|
},
|
|
75
|
-
{ immediate:
|
|
51
|
+
{ immediate: !0 }
|
|
76
52
|
);
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
isPickerOpenLeft.value = false;
|
|
80
|
-
}
|
|
81
|
-
if (pickerRefRight.value && !pickerRefRight.value.contains(event.target)) {
|
|
82
|
-
isPickerOpenRight.value = false;
|
|
83
|
-
}
|
|
53
|
+
const I = (e) => {
|
|
54
|
+
C.value && !C.value.contains(e.target) && (S.value = !1), Y.value && !Y.value.contains(e.target) && (p.value = !1);
|
|
84
55
|
};
|
|
85
|
-
|
|
86
|
-
document.addEventListener("mousedown",
|
|
56
|
+
Z(() => {
|
|
57
|
+
document.addEventListener("mousedown", I);
|
|
58
|
+
}), x(() => {
|
|
59
|
+
document.removeEventListener("mousedown", I);
|
|
87
60
|
});
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const month = date.getMonth();
|
|
94
|
-
const firstDay = new Date(year, month, 1);
|
|
95
|
-
const lastDay = new Date(year, month + 1, 0);
|
|
96
|
-
const days = [];
|
|
97
|
-
const firstDayWeek = firstDay.getDay() === 0 ? 6 : firstDay.getDay() - 1;
|
|
98
|
-
for (let i = firstDayWeek; i > 0; i -= 1) {
|
|
99
|
-
const prevDate = new Date(year, month, 1 - i);
|
|
100
|
-
days.push({ date: prevDate, isCurrentMonth: false });
|
|
101
|
-
}
|
|
102
|
-
for (let i = 1; i <= lastDay.getDate(); i += 1) {
|
|
103
|
-
days.push({ date: new Date(year, month, i), isCurrentMonth: true });
|
|
104
|
-
}
|
|
105
|
-
for (let i = 1; days.length < 42; i += 1) {
|
|
106
|
-
const nextDate = new Date(year, month + 1, i);
|
|
107
|
-
days.push({ date: nextDate, isCurrentMonth: false });
|
|
108
|
-
}
|
|
109
|
-
return days;
|
|
110
|
-
};
|
|
111
|
-
const handleDateClick = (date) => {
|
|
112
|
-
var _a;
|
|
113
|
-
let newDates;
|
|
114
|
-
if (!internalDates.value[0] || internalDates.value[0] && internalDates.value[1]) {
|
|
115
|
-
newDates = [setStartOfDay(date), null];
|
|
116
|
-
} else {
|
|
117
|
-
const [start] = internalDates.value;
|
|
118
|
-
if (start && date < start) {
|
|
119
|
-
newDates = [setStartOfDay(date), setEndOfDay(start)];
|
|
120
|
-
} else {
|
|
121
|
-
newDates = [setStartOfDay(start), setEndOfDay(date)];
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
isUpdatingRef.value = true;
|
|
125
|
-
internalDates.value = newDates;
|
|
126
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, newDates);
|
|
127
|
-
isUpdatingRef.value = false;
|
|
128
|
-
};
|
|
129
|
-
const updateDate = (newDate, isLeft) => {
|
|
130
|
-
const otherDate = isLeft ? rightDate.value : leftDate.value;
|
|
131
|
-
const normalizedNewDate = new Date(newDate.getFullYear(), newDate.getMonth(), 1);
|
|
132
|
-
const normalizedOtherDate = new Date(otherDate.getFullYear(), otherDate.getMonth(), 1);
|
|
133
|
-
if (isLeft && normalizedNewDate >= normalizedOtherDate) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (!isLeft && normalizedNewDate <= normalizedOtherDate) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
if (isLeft) {
|
|
140
|
-
leftDate.value = newDate;
|
|
141
|
-
} else {
|
|
142
|
-
rightDate.value = newDate;
|
|
61
|
+
const H = (e) => {
|
|
62
|
+
const a = e.getFullYear(), t = e.getMonth(), n = new Date(a, t, 1), o = new Date(a, t + 1, 0), _ = [], G = n.getDay() === 0 ? 6 : n.getDay() - 1;
|
|
63
|
+
for (let D = G; D > 0; D -= 1) {
|
|
64
|
+
const J = new Date(a, t, 1 - D);
|
|
65
|
+
_.push({ date: J, isCurrentMonth: !1 });
|
|
143
66
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
updateDate(newDate, isLeft);
|
|
150
|
-
};
|
|
151
|
-
const handleYearChange = (isLeft, increment) => {
|
|
152
|
-
const currentDate = isLeft ? leftDate.value : rightDate.value;
|
|
153
|
-
const newDate = new Date(currentDate);
|
|
154
|
-
newDate.setFullYear(newDate.getFullYear() + (increment ? 1 : -1));
|
|
155
|
-
updateDate(newDate, isLeft);
|
|
156
|
-
};
|
|
157
|
-
const handlePickerToggle = (isLeft) => {
|
|
158
|
-
if (isLeft) {
|
|
159
|
-
pickerYearLeft.value = leftDate.value.getFullYear();
|
|
160
|
-
isPickerOpenLeft.value = !isPickerOpenLeft.value;
|
|
161
|
-
isPickerOpenRight.value = false;
|
|
162
|
-
} else {
|
|
163
|
-
pickerYearRight.value = rightDate.value.getFullYear();
|
|
164
|
-
isPickerOpenRight.value = !isPickerOpenRight.value;
|
|
165
|
-
isPickerOpenLeft.value = false;
|
|
67
|
+
for (let D = 1; D <= o.getDate(); D += 1)
|
|
68
|
+
_.push({ date: new Date(a, t, D), isCurrentMonth: !0 });
|
|
69
|
+
for (let D = 1; _.length < 42; D += 1) {
|
|
70
|
+
const J = new Date(a, t + 1, D);
|
|
71
|
+
_.push({ date: J, isCurrentMonth: !1 });
|
|
166
72
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
73
|
+
return _;
|
|
74
|
+
}, M = (e) => {
|
|
75
|
+
var t;
|
|
76
|
+
let a;
|
|
77
|
+
if (!d.value[0] || d.value[0] && d.value[1])
|
|
78
|
+
a = [F(e), null];
|
|
79
|
+
else {
|
|
80
|
+
const [n] = d.value;
|
|
81
|
+
n && e < n ? a = [F(e), V(n)] : a = [F(n), V(e)];
|
|
173
82
|
}
|
|
83
|
+
K.value = !0, d.value = a, (t = v.onChange) == null || t.call(v, a), K.value = !1;
|
|
84
|
+
}, E = (e, a) => {
|
|
85
|
+
const t = a ? h.value : u.value, n = new Date(e.getFullYear(), e.getMonth(), 1), o = new Date(t.getFullYear(), t.getMonth(), 1);
|
|
86
|
+
a && n >= o || !a && n <= o || (a ? u.value = e : h.value = e);
|
|
87
|
+
}, m = (e, a) => {
|
|
88
|
+
const t = e ? u.value : h.value, n = new Date(t);
|
|
89
|
+
n.setMonth(n.getMonth() + (a ? 1 : -1)), E(n, e);
|
|
90
|
+
}, b = (e, a) => {
|
|
91
|
+
const t = e ? u.value : h.value, n = new Date(t);
|
|
92
|
+
n.setFullYear(n.getFullYear() + (a ? 1 : -1)), E(n, e);
|
|
93
|
+
}, O = (e) => {
|
|
94
|
+
e ? (R.value = u.value.getFullYear(), S.value = !S.value, p.value = !1) : ($.value = h.value.getFullYear(), p.value = !p.value, S.value = !1);
|
|
95
|
+
}, w = (e, a) => {
|
|
96
|
+
e ? R.value = a : $.value = a;
|
|
97
|
+
}, q = (e, a) => {
|
|
98
|
+
const t = e ? R.value : $.value, n = new Date(t, a, 1);
|
|
99
|
+
E(n, e), e ? S.value = !1 : p.value = !1;
|
|
100
|
+
}, U = (e) => {
|
|
101
|
+
const [a, t] = d.value;
|
|
102
|
+
if (!a || !t)
|
|
103
|
+
return !1;
|
|
104
|
+
const n = e.setHours(0, 0, 0, 0), o = new Date(a).setHours(0, 0, 0, 0), _ = new Date(t).setHours(0, 0, 0, 0);
|
|
105
|
+
return n >= o && n <= _;
|
|
106
|
+
}, N = (e) => {
|
|
107
|
+
const [a] = d.value;
|
|
108
|
+
if (!a)
|
|
109
|
+
return !1;
|
|
110
|
+
const t = e.setHours(0, 0, 0, 0);
|
|
111
|
+
return new Date(a).setHours(0, 0, 0, 0) === t;
|
|
112
|
+
}, A = (e) => {
|
|
113
|
+
const [, a] = d.value;
|
|
114
|
+
if (!a)
|
|
115
|
+
return !1;
|
|
116
|
+
const t = e.setHours(0, 0, 0, 0);
|
|
117
|
+
return new Date(a).setHours(0, 0, 0, 0) === t;
|
|
118
|
+
}, z = (e) => {
|
|
119
|
+
const a = /* @__PURE__ */ new Date(), t = e.setHours(0, 0, 0, 0), n = a.setHours(0, 0, 0, 0);
|
|
120
|
+
return t === n;
|
|
121
|
+
}, j = () => {
|
|
122
|
+
var e;
|
|
123
|
+
(e = v.onChange) == null || e.call(v, [null, null]);
|
|
174
124
|
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
};
|
|
185
|
-
const isDateSelected = (date) => {
|
|
186
|
-
const [start, end] = internalDates.value;
|
|
187
|
-
if (!start || !end) {
|
|
188
|
-
return false;
|
|
189
|
-
}
|
|
190
|
-
const dayTime = date.setHours(0, 0, 0, 0);
|
|
191
|
-
const startTime = new Date(start).setHours(0, 0, 0, 0);
|
|
192
|
-
const endTime = new Date(end).setHours(0, 0, 0, 0);
|
|
193
|
-
return dayTime >= startTime && dayTime <= endTime;
|
|
194
|
-
};
|
|
195
|
-
const isStartDate = (date) => {
|
|
196
|
-
const [start] = internalDates.value;
|
|
197
|
-
if (!start) {
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
|
-
const dayTime = date.setHours(0, 0, 0, 0);
|
|
201
|
-
const startTime = new Date(start).setHours(0, 0, 0, 0);
|
|
202
|
-
return startTime === dayTime;
|
|
203
|
-
};
|
|
204
|
-
const isEndDate = (date) => {
|
|
205
|
-
const [, end] = internalDates.value;
|
|
206
|
-
if (!end) {
|
|
207
|
-
return false;
|
|
208
|
-
}
|
|
209
|
-
const dayTime = date.setHours(0, 0, 0, 0);
|
|
210
|
-
const endTime = new Date(end).setHours(0, 0, 0, 0);
|
|
211
|
-
return endTime === dayTime;
|
|
212
|
-
};
|
|
213
|
-
const isToday = (date) => {
|
|
214
|
-
const today = /* @__PURE__ */ new Date();
|
|
215
|
-
const dayTime = date.setHours(0, 0, 0, 0);
|
|
216
|
-
const todayTime = today.setHours(0, 0, 0, 0);
|
|
217
|
-
return dayTime === todayTime;
|
|
218
|
-
};
|
|
219
|
-
const handleH5Cancel = () => {
|
|
220
|
-
var _a;
|
|
221
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, [null, null]);
|
|
222
|
-
};
|
|
223
|
-
return (_ctx, _cache) => {
|
|
224
|
-
return unref(isH5) ? (openBlock(), createElementBlock("div", {
|
|
225
|
-
key: 0,
|
|
226
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__h5-mask"]),
|
|
227
|
-
onClick: handleH5Cancel
|
|
125
|
+
return (e, a) => L(te) ? (k(), i("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: r(e.$style["SearchDateRangePicker__h5-mask"]),
|
|
128
|
+
onClick: j
|
|
129
|
+
}, [
|
|
130
|
+
c("div", {
|
|
131
|
+
class: r(e.$style["SearchDateRangePicker__h5-panel"]),
|
|
132
|
+
onClick: a[7] || (a[7] = ee(() => {
|
|
133
|
+
}, ["stop"]))
|
|
228
134
|
}, [
|
|
229
|
-
|
|
230
|
-
class:
|
|
231
|
-
|
|
232
|
-
|
|
135
|
+
c("div", {
|
|
136
|
+
class: r(e.$style["SearchDateRangePicker__h5-header"])
|
|
137
|
+
}, l(L(s)("DateRangePicker.Time")), 3),
|
|
138
|
+
c("div", {
|
|
139
|
+
class: r(e.$style.SearchDateRangePicker__calendar)
|
|
233
140
|
}, [
|
|
234
|
-
|
|
235
|
-
class:
|
|
236
|
-
}, toDisplayString(unref(t)("DateRangePicker.Time")), 3),
|
|
237
|
-
createElementVNode("div", {
|
|
238
|
-
class: normalizeClass(_ctx.$style.SearchDateRangePicker__calendar)
|
|
141
|
+
c("div", {
|
|
142
|
+
class: r(e.$style["SearchDateRangePicker__calendar-header"])
|
|
239
143
|
}, [
|
|
240
|
-
|
|
241
|
-
class:
|
|
144
|
+
c("button", {
|
|
145
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
146
|
+
onClick: a[0] || (a[0] = (t) => b(!0, !1))
|
|
147
|
+
}, " << ", 2),
|
|
148
|
+
c("button", {
|
|
149
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
150
|
+
onClick: a[1] || (a[1] = (t) => m(!0, !1))
|
|
151
|
+
}, " < ", 2),
|
|
152
|
+
c("span", {
|
|
153
|
+
class: r(e.$style["SearchDateRangePicker__current-month-year"]),
|
|
154
|
+
onClick: a[2] || (a[2] = (t) => O(!0))
|
|
155
|
+
}, l(u.value.getFullYear()) + " " + l(f[u.value.getMonth()]), 3),
|
|
156
|
+
c("button", {
|
|
157
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
158
|
+
onClick: a[3] || (a[3] = (t) => m(!0, !0))
|
|
159
|
+
}, " > ", 2),
|
|
160
|
+
c("button", {
|
|
161
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
162
|
+
onClick: a[4] || (a[4] = (t) => b(!0, !0))
|
|
163
|
+
}, " >> ", 2),
|
|
164
|
+
S.value ? (k(), i("div", {
|
|
165
|
+
key: 0,
|
|
166
|
+
ref_key: "pickerRefLeft",
|
|
167
|
+
ref: C,
|
|
168
|
+
class: r(e.$style["SearchDateRangePicker__picker-dropdown"])
|
|
242
169
|
}, [
|
|
243
|
-
|
|
244
|
-
class:
|
|
245
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handleYearChange(true, false))
|
|
246
|
-
}, " << ", 2),
|
|
247
|
-
createElementVNode("button", {
|
|
248
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
249
|
-
onClick: _cache[1] || (_cache[1] = ($event) => handleMonthChange(true, false))
|
|
250
|
-
}, " < ", 2),
|
|
251
|
-
createElementVNode("span", {
|
|
252
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__current-month-year"]),
|
|
253
|
-
onClick: _cache[2] || (_cache[2] = ($event) => handlePickerToggle(true))
|
|
254
|
-
}, toDisplayString(leftDate.value.getFullYear()) + " " + toDisplayString(MONTH_NAMES[leftDate.value.getMonth()]), 3),
|
|
255
|
-
createElementVNode("button", {
|
|
256
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
257
|
-
onClick: _cache[3] || (_cache[3] = ($event) => handleMonthChange(true, true))
|
|
258
|
-
}, " > ", 2),
|
|
259
|
-
createElementVNode("button", {
|
|
260
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
261
|
-
onClick: _cache[4] || (_cache[4] = ($event) => handleYearChange(true, true))
|
|
262
|
-
}, " >> ", 2),
|
|
263
|
-
isPickerOpenLeft.value ? (openBlock(), createElementBlock("div", {
|
|
264
|
-
key: 0,
|
|
265
|
-
ref_key: "pickerRefLeft",
|
|
266
|
-
ref: pickerRefLeft,
|
|
267
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__picker-dropdown"])
|
|
170
|
+
c("div", {
|
|
171
|
+
class: r(e.$style["SearchDateRangePicker__picker-header"])
|
|
268
172
|
}, [
|
|
269
|
-
|
|
270
|
-
class:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
[_ctx.$style["SearchDateRangePicker__day--start"]]: isStartDate(day) && isCurrentMonth,
|
|
318
|
-
[_ctx.$style["SearchDateRangePicker__day--end"]]: isEndDate(day) && isCurrentMonth,
|
|
319
|
-
[_ctx.$style["SearchDateRangePicker__day--other-month"]]: !isCurrentMonth,
|
|
320
|
-
[_ctx.$style["SearchDateRangePicker__day--today"]]: isToday(day) && isCurrentMonth
|
|
321
|
-
}
|
|
322
|
-
]),
|
|
323
|
-
onClick: ($event) => isCurrentMonth && handleDateClick(day)
|
|
324
|
-
}, toDisplayString(day.getDate()), 11, _hoisted_2);
|
|
325
|
-
}), 128))
|
|
326
|
-
], 2)
|
|
173
|
+
c("button", {
|
|
174
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
175
|
+
onClick: a[5] || (a[5] = (t) => w(!0, R.value - 1))
|
|
176
|
+
}, " < ", 2),
|
|
177
|
+
c("span", {
|
|
178
|
+
class: r(e.$style["SearchDateRangePicker__picker-year-text"])
|
|
179
|
+
}, l(R.value), 3),
|
|
180
|
+
c("button", {
|
|
181
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
182
|
+
onClick: a[6] || (a[6] = (t) => w(!0, R.value + 1))
|
|
183
|
+
}, " > ", 2)
|
|
184
|
+
], 2),
|
|
185
|
+
c("div", {
|
|
186
|
+
class: r(e.$style["SearchDateRangePicker__picker-months"])
|
|
187
|
+
}, [
|
|
188
|
+
(k(), i(P, null, y(f, (t, n) => c("button", {
|
|
189
|
+
key: t,
|
|
190
|
+
class: r(e.$style["SearchDateRangePicker__picker-month-button"]),
|
|
191
|
+
onClick: (o) => q(!0, n)
|
|
192
|
+
}, l(t), 11, ne)), 64))
|
|
193
|
+
], 2)
|
|
194
|
+
], 2)) : W("", !0)
|
|
195
|
+
], 2),
|
|
196
|
+
c("div", {
|
|
197
|
+
class: r(e.$style["SearchDateRangePicker__week-days"])
|
|
198
|
+
}, [
|
|
199
|
+
(k(), i(P, null, y(T, (t) => c("div", {
|
|
200
|
+
key: t,
|
|
201
|
+
class: r(e.$style["SearchDateRangePicker__week-day"])
|
|
202
|
+
}, l(t), 3)), 64))
|
|
203
|
+
], 2),
|
|
204
|
+
c("div", {
|
|
205
|
+
class: r(e.$style.SearchDateRangePicker__days)
|
|
206
|
+
}, [
|
|
207
|
+
(k(!0), i(P, null, y(H(u.value), ({ date: t, isCurrentMonth: n }, o) => (k(), i("div", {
|
|
208
|
+
key: o,
|
|
209
|
+
class: r([
|
|
210
|
+
e.$style.SearchDateRangePicker__day,
|
|
211
|
+
{
|
|
212
|
+
[e.$style["SearchDateRangePicker__day--selected"]]: U(t),
|
|
213
|
+
[e.$style["SearchDateRangePicker__day--start"]]: N(t) && n,
|
|
214
|
+
[e.$style["SearchDateRangePicker__day--end"]]: A(t) && n,
|
|
215
|
+
[e.$style["SearchDateRangePicker__day--other-month"]]: !n,
|
|
216
|
+
[e.$style["SearchDateRangePicker__day--today"]]: z(t) && n
|
|
217
|
+
}
|
|
218
|
+
]),
|
|
219
|
+
onClick: (_) => n && M(t)
|
|
220
|
+
}, l(t.getDate()), 11, ce))), 128))
|
|
327
221
|
], 2)
|
|
328
222
|
], 2)
|
|
329
|
-
], 2)
|
|
330
|
-
|
|
331
|
-
|
|
223
|
+
], 2)
|
|
224
|
+
], 2)) : (k(), i("div", {
|
|
225
|
+
key: 1,
|
|
226
|
+
class: r([e.$style.SearchDateRangePicker, B.className])
|
|
227
|
+
}, [
|
|
228
|
+
c("div", {
|
|
229
|
+
class: r(e.$style.SearchDateRangePicker__calendars)
|
|
332
230
|
}, [
|
|
333
|
-
|
|
334
|
-
class:
|
|
231
|
+
c("div", {
|
|
232
|
+
class: r(e.$style.SearchDateRangePicker__calendar)
|
|
335
233
|
}, [
|
|
336
|
-
|
|
337
|
-
class:
|
|
234
|
+
c("div", {
|
|
235
|
+
class: r(e.$style["SearchDateRangePicker__calendar-header"])
|
|
338
236
|
}, [
|
|
339
|
-
|
|
340
|
-
class:
|
|
237
|
+
c("button", {
|
|
238
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
239
|
+
onClick: a[8] || (a[8] = (t) => b(!0, !1))
|
|
240
|
+
}, " << ", 2),
|
|
241
|
+
c("button", {
|
|
242
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
243
|
+
onClick: a[9] || (a[9] = (t) => m(!0, !1))
|
|
244
|
+
}, " < ", 2),
|
|
245
|
+
c("span", {
|
|
246
|
+
class: r(e.$style["SearchDateRangePicker__current-month-year"]),
|
|
247
|
+
onClick: a[10] || (a[10] = (t) => O(!0))
|
|
248
|
+
}, l(u.value.getFullYear()) + " " + l(f[u.value.getMonth()]), 3),
|
|
249
|
+
c("button", {
|
|
250
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
251
|
+
onClick: a[11] || (a[11] = (t) => m(!0, !0))
|
|
252
|
+
}, " > ", 2),
|
|
253
|
+
c("button", {
|
|
254
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
255
|
+
onClick: a[12] || (a[12] = (t) => b(!0, !0))
|
|
256
|
+
}, " >> ", 2),
|
|
257
|
+
S.value ? (k(), i("div", {
|
|
258
|
+
key: 0,
|
|
259
|
+
ref_key: "pickerRefLeft",
|
|
260
|
+
ref: C,
|
|
261
|
+
class: r(e.$style["SearchDateRangePicker__picker-dropdown"])
|
|
341
262
|
}, [
|
|
342
|
-
|
|
343
|
-
class:
|
|
344
|
-
onClick: _cache[8] || (_cache[8] = ($event) => handleYearChange(true, false))
|
|
345
|
-
}, " << ", 2),
|
|
346
|
-
createElementVNode("button", {
|
|
347
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
348
|
-
onClick: _cache[9] || (_cache[9] = ($event) => handleMonthChange(true, false))
|
|
349
|
-
}, " < ", 2),
|
|
350
|
-
createElementVNode("span", {
|
|
351
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__current-month-year"]),
|
|
352
|
-
onClick: _cache[10] || (_cache[10] = ($event) => handlePickerToggle(true))
|
|
353
|
-
}, toDisplayString(leftDate.value.getFullYear()) + " " + toDisplayString(MONTH_NAMES[leftDate.value.getMonth()]), 3),
|
|
354
|
-
createElementVNode("button", {
|
|
355
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
356
|
-
onClick: _cache[11] || (_cache[11] = ($event) => handleMonthChange(true, true))
|
|
357
|
-
}, " > ", 2),
|
|
358
|
-
createElementVNode("button", {
|
|
359
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
360
|
-
onClick: _cache[12] || (_cache[12] = ($event) => handleYearChange(true, true))
|
|
361
|
-
}, " >> ", 2),
|
|
362
|
-
isPickerOpenLeft.value ? (openBlock(), createElementBlock("div", {
|
|
363
|
-
key: 0,
|
|
364
|
-
ref_key: "pickerRefLeft",
|
|
365
|
-
ref: pickerRefLeft,
|
|
366
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__picker-dropdown"])
|
|
263
|
+
c("div", {
|
|
264
|
+
class: r(e.$style["SearchDateRangePicker__picker-header"])
|
|
367
265
|
}, [
|
|
368
|
-
|
|
369
|
-
class:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
(
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}, [
|
|
399
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(WEEK_DAYS, (day) => {
|
|
400
|
-
return createElementVNode("div", {
|
|
401
|
-
key: day,
|
|
402
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__week-day"])
|
|
403
|
-
}, toDisplayString(day), 3);
|
|
404
|
-
}), 64))
|
|
405
|
-
], 2),
|
|
406
|
-
createElementVNode("div", {
|
|
407
|
-
class: normalizeClass(_ctx.$style.SearchDateRangePicker__days)
|
|
408
|
-
}, [
|
|
409
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getMonthData(leftDate.value), ({ date: day, isCurrentMonth }, index) => {
|
|
410
|
-
return openBlock(), createElementBlock("div", {
|
|
411
|
-
key: index,
|
|
412
|
-
class: normalizeClass([
|
|
413
|
-
_ctx.$style.SearchDateRangePicker__day,
|
|
414
|
-
{
|
|
415
|
-
[_ctx.$style["SearchDateRangePicker__day--selected"]]: isDateSelected(day),
|
|
416
|
-
[_ctx.$style["SearchDateRangePicker__day--start"]]: isStartDate(day) && isCurrentMonth,
|
|
417
|
-
[_ctx.$style["SearchDateRangePicker__day--end"]]: isEndDate(day) && isCurrentMonth,
|
|
418
|
-
[_ctx.$style["SearchDateRangePicker__day--other-month"]]: !isCurrentMonth,
|
|
419
|
-
[_ctx.$style["SearchDateRangePicker__day--today"]]: isToday(day) && isCurrentMonth
|
|
420
|
-
}
|
|
421
|
-
]),
|
|
422
|
-
onClick: ($event) => isCurrentMonth && handleDateClick(day)
|
|
423
|
-
}, toDisplayString(day.getDate()), 11, _hoisted_4);
|
|
424
|
-
}), 128))
|
|
425
|
-
], 2)
|
|
266
|
+
c("button", {
|
|
267
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
268
|
+
onClick: a[13] || (a[13] = (t) => w(!0, R.value - 1))
|
|
269
|
+
}, " < ", 2),
|
|
270
|
+
c("span", {
|
|
271
|
+
class: r(e.$style["SearchDateRangePicker__picker-year-text"])
|
|
272
|
+
}, l(R.value), 3),
|
|
273
|
+
c("button", {
|
|
274
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
275
|
+
onClick: a[14] || (a[14] = (t) => w(!0, R.value + 1))
|
|
276
|
+
}, " > ", 2)
|
|
277
|
+
], 2),
|
|
278
|
+
c("div", {
|
|
279
|
+
class: r(e.$style["SearchDateRangePicker__picker-months"])
|
|
280
|
+
}, [
|
|
281
|
+
(k(), i(P, null, y(f, (t, n) => c("button", {
|
|
282
|
+
key: t,
|
|
283
|
+
class: r(e.$style["SearchDateRangePicker__picker-month-button"]),
|
|
284
|
+
onClick: (o) => q(!0, n)
|
|
285
|
+
}, l(t), 11, se)), 64))
|
|
286
|
+
], 2)
|
|
287
|
+
], 2)) : W("", !0)
|
|
288
|
+
], 2),
|
|
289
|
+
c("div", {
|
|
290
|
+
class: r(e.$style["SearchDateRangePicker__week-days"])
|
|
291
|
+
}, [
|
|
292
|
+
(k(), i(P, null, y(T, (t) => c("div", {
|
|
293
|
+
key: t,
|
|
294
|
+
class: r(e.$style["SearchDateRangePicker__week-day"])
|
|
295
|
+
}, l(t), 3)), 64))
|
|
426
296
|
], 2),
|
|
427
|
-
|
|
428
|
-
class:
|
|
297
|
+
c("div", {
|
|
298
|
+
class: r(e.$style.SearchDateRangePicker__days)
|
|
429
299
|
}, [
|
|
430
|
-
|
|
431
|
-
|
|
300
|
+
(k(!0), i(P, null, y(H(u.value), ({ date: t, isCurrentMonth: n }, o) => (k(), i("div", {
|
|
301
|
+
key: o,
|
|
302
|
+
class: r([
|
|
303
|
+
e.$style.SearchDateRangePicker__day,
|
|
304
|
+
{
|
|
305
|
+
[e.$style["SearchDateRangePicker__day--selected"]]: U(t),
|
|
306
|
+
[e.$style["SearchDateRangePicker__day--start"]]: N(t) && n,
|
|
307
|
+
[e.$style["SearchDateRangePicker__day--end"]]: A(t) && n,
|
|
308
|
+
[e.$style["SearchDateRangePicker__day--other-month"]]: !n,
|
|
309
|
+
[e.$style["SearchDateRangePicker__day--today"]]: z(t) && n
|
|
310
|
+
}
|
|
311
|
+
]),
|
|
312
|
+
onClick: (_) => n && M(t)
|
|
313
|
+
}, l(t.getDate()), 11, le))), 128))
|
|
314
|
+
], 2)
|
|
315
|
+
], 2),
|
|
316
|
+
c("div", {
|
|
317
|
+
class: r(e.$style.SearchDateRangePicker__calendar)
|
|
318
|
+
}, [
|
|
319
|
+
c("div", {
|
|
320
|
+
class: r(e.$style["SearchDateRangePicker__calendar-header"])
|
|
321
|
+
}, [
|
|
322
|
+
c("button", {
|
|
323
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
324
|
+
onClick: a[15] || (a[15] = (t) => b(!1, !1))
|
|
325
|
+
}, " << ", 2),
|
|
326
|
+
c("button", {
|
|
327
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
328
|
+
onClick: a[16] || (a[16] = (t) => m(!1, !1))
|
|
329
|
+
}, " < ", 2),
|
|
330
|
+
c("span", {
|
|
331
|
+
class: r(e.$style["SearchDateRangePicker__current-month-year"]),
|
|
332
|
+
onClick: a[17] || (a[17] = (t) => O(!1))
|
|
333
|
+
}, l(h.value.getFullYear()) + " " + l(f[h.value.getMonth()]), 3),
|
|
334
|
+
c("button", {
|
|
335
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
336
|
+
onClick: a[18] || (a[18] = (t) => m(!1, !0))
|
|
337
|
+
}, " > ", 2),
|
|
338
|
+
c("button", {
|
|
339
|
+
class: r(e.$style["SearchDateRangePicker__nav-button"]),
|
|
340
|
+
onClick: a[19] || (a[19] = (t) => b(!1, !0))
|
|
341
|
+
}, " >> ", 2),
|
|
342
|
+
p.value ? (k(), i("div", {
|
|
343
|
+
key: 0,
|
|
344
|
+
ref_key: "pickerRefRight",
|
|
345
|
+
ref: Y,
|
|
346
|
+
class: r(e.$style["SearchDateRangePicker__picker-dropdown"])
|
|
432
347
|
}, [
|
|
433
|
-
|
|
434
|
-
class:
|
|
435
|
-
onClick: _cache[15] || (_cache[15] = ($event) => handleYearChange(false, false))
|
|
436
|
-
}, " << ", 2),
|
|
437
|
-
createElementVNode("button", {
|
|
438
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
439
|
-
onClick: _cache[16] || (_cache[16] = ($event) => handleMonthChange(false, false))
|
|
440
|
-
}, " < ", 2),
|
|
441
|
-
createElementVNode("span", {
|
|
442
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__current-month-year"]),
|
|
443
|
-
onClick: _cache[17] || (_cache[17] = ($event) => handlePickerToggle(false))
|
|
444
|
-
}, toDisplayString(rightDate.value.getFullYear()) + " " + toDisplayString(MONTH_NAMES[rightDate.value.getMonth()]), 3),
|
|
445
|
-
createElementVNode("button", {
|
|
446
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
447
|
-
onClick: _cache[18] || (_cache[18] = ($event) => handleMonthChange(false, true))
|
|
448
|
-
}, " > ", 2),
|
|
449
|
-
createElementVNode("button", {
|
|
450
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__nav-button"]),
|
|
451
|
-
onClick: _cache[19] || (_cache[19] = ($event) => handleYearChange(false, true))
|
|
452
|
-
}, " >> ", 2),
|
|
453
|
-
isPickerOpenRight.value ? (openBlock(), createElementBlock("div", {
|
|
454
|
-
key: 0,
|
|
455
|
-
ref_key: "pickerRefRight",
|
|
456
|
-
ref: pickerRefRight,
|
|
457
|
-
class: normalizeClass(_ctx.$style["SearchDateRangePicker__picker-dropdown"])
|
|
348
|
+
c("div", {
|
|
349
|
+
class: r(e.$style["SearchDateRangePicker__picker-header"])
|
|
458
350
|
}, [
|
|
459
|
-
|
|
460
|
-
class:
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
(
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
[_ctx.$style["SearchDateRangePicker__day--start"]]: isStartDate(day) && isCurrentMonth,
|
|
508
|
-
[_ctx.$style["SearchDateRangePicker__day--end"]]: isEndDate(day) && isCurrentMonth,
|
|
509
|
-
[_ctx.$style["SearchDateRangePicker__day--other-month"]]: !isCurrentMonth,
|
|
510
|
-
[_ctx.$style["SearchDateRangePicker__day--today"]]: isToday(day) && isCurrentMonth
|
|
511
|
-
}
|
|
512
|
-
]),
|
|
513
|
-
onClick: ($event) => isCurrentMonth && handleDateClick(day)
|
|
514
|
-
}, toDisplayString(day.getDate()), 11, _hoisted_6);
|
|
515
|
-
}), 128))
|
|
516
|
-
], 2)
|
|
351
|
+
c("button", {
|
|
352
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
353
|
+
onClick: a[20] || (a[20] = (t) => w(!1, $.value - 1))
|
|
354
|
+
}, " < ", 2),
|
|
355
|
+
c("span", {
|
|
356
|
+
class: r(e.$style["SearchDateRangePicker__picker-year-text"])
|
|
357
|
+
}, l($.value), 3),
|
|
358
|
+
c("button", {
|
|
359
|
+
class: r(e.$style["SearchDateRangePicker__picker-nav-button"]),
|
|
360
|
+
onClick: a[21] || (a[21] = (t) => w(!1, $.value + 1))
|
|
361
|
+
}, " > ", 2)
|
|
362
|
+
], 2),
|
|
363
|
+
c("div", {
|
|
364
|
+
class: r(e.$style["SearchDateRangePicker__picker-months"])
|
|
365
|
+
}, [
|
|
366
|
+
(k(), i(P, null, y(f, (t, n) => c("button", {
|
|
367
|
+
key: t,
|
|
368
|
+
class: r(e.$style["SearchDateRangePicker__picker-month-button"]),
|
|
369
|
+
onClick: (o) => q(!1, n)
|
|
370
|
+
}, l(t), 11, ie)), 64))
|
|
371
|
+
], 2)
|
|
372
|
+
], 2)) : W("", !0)
|
|
373
|
+
], 2),
|
|
374
|
+
c("div", {
|
|
375
|
+
class: r(e.$style["SearchDateRangePicker__week-days"])
|
|
376
|
+
}, [
|
|
377
|
+
(k(), i(P, null, y(T, (t) => c("div", {
|
|
378
|
+
key: t,
|
|
379
|
+
class: r(e.$style["SearchDateRangePicker__week-day"])
|
|
380
|
+
}, l(t), 3)), 64))
|
|
381
|
+
], 2),
|
|
382
|
+
c("div", {
|
|
383
|
+
class: r(e.$style.SearchDateRangePicker__days)
|
|
384
|
+
}, [
|
|
385
|
+
(k(!0), i(P, null, y(H(h.value), ({ date: t, isCurrentMonth: n }, o) => (k(), i("div", {
|
|
386
|
+
key: o,
|
|
387
|
+
class: r([
|
|
388
|
+
e.$style.SearchDateRangePicker__day,
|
|
389
|
+
{
|
|
390
|
+
[e.$style["SearchDateRangePicker__day--selected"]]: U(t),
|
|
391
|
+
[e.$style["SearchDateRangePicker__day--start"]]: N(t) && n,
|
|
392
|
+
[e.$style["SearchDateRangePicker__day--end"]]: A(t) && n,
|
|
393
|
+
[e.$style["SearchDateRangePicker__day--other-month"]]: !n,
|
|
394
|
+
[e.$style["SearchDateRangePicker__day--today"]]: z(t) && n
|
|
395
|
+
}
|
|
396
|
+
]),
|
|
397
|
+
onClick: (_) => n && M(t)
|
|
398
|
+
}, l(t.getDate()), 11, ke))), 128))
|
|
517
399
|
], 2)
|
|
518
400
|
], 2)
|
|
519
|
-
], 2)
|
|
520
|
-
|
|
401
|
+
], 2)
|
|
402
|
+
], 2));
|
|
521
403
|
}
|
|
522
|
-
})
|
|
523
|
-
const SearchDateRangePicker = "_SearchDateRangePicker_1pruk_295";
|
|
524
|
-
const SearchDateRangePicker__calendars = "_SearchDateRangePicker__calendars_1pruk_304";
|
|
525
|
-
const SearchDateRangePicker__calendar = "_SearchDateRangePicker__calendar_1pruk_304";
|
|
526
|
-
const SearchDateRangePicker__days = "_SearchDateRangePicker__days_1pruk_429";
|
|
527
|
-
const SearchDateRangePicker__day = "_SearchDateRangePicker__day_1pruk_429";
|
|
528
|
-
const slideUp = "_slideUp_1pruk_1";
|
|
529
|
-
const style0 = {
|
|
404
|
+
}), ue = "_SearchDateRangePicker_1pruk_295", _e = "_SearchDateRangePicker__calendars_1pruk_304", De = "_SearchDateRangePicker__calendar_1pruk_304", ge = "_SearchDateRangePicker__days_1pruk_429", he = "_SearchDateRangePicker__day_1pruk_429", de = "_slideUp_1pruk_1", Re = {
|
|
530
405
|
"tui-theme-dark": "_tui-theme-dark_1pruk_2",
|
|
531
406
|
"tui-theme-light": "_tui-theme-light_1pruk_140",
|
|
532
|
-
SearchDateRangePicker,
|
|
533
|
-
SearchDateRangePicker__calendars,
|
|
534
|
-
SearchDateRangePicker__calendar,
|
|
407
|
+
SearchDateRangePicker: ue,
|
|
408
|
+
SearchDateRangePicker__calendars: _e,
|
|
409
|
+
SearchDateRangePicker__calendar: De,
|
|
535
410
|
"SearchDateRangePicker__calendar-header": "_SearchDateRangePicker__calendar-header_1pruk_316",
|
|
536
411
|
"SearchDateRangePicker__current-month-year": "_SearchDateRangePicker__current-month-year_1pruk_325",
|
|
537
412
|
"SearchDateRangePicker__nav-button": "_SearchDateRangePicker__nav-button_1pruk_339",
|
|
@@ -543,8 +418,8 @@ const style0 = {
|
|
|
543
418
|
"SearchDateRangePicker__picker-month-button": "_SearchDateRangePicker__picker-month-button_1pruk_400",
|
|
544
419
|
"SearchDateRangePicker__week-days": "_SearchDateRangePicker__week-days_1pruk_416",
|
|
545
420
|
"SearchDateRangePicker__week-day": "_SearchDateRangePicker__week-day_1pruk_416",
|
|
546
|
-
SearchDateRangePicker__days,
|
|
547
|
-
SearchDateRangePicker__day,
|
|
421
|
+
SearchDateRangePicker__days: ge,
|
|
422
|
+
SearchDateRangePicker__day: he,
|
|
548
423
|
"SearchDateRangePicker__day--today": "_SearchDateRangePicker__day--today_1pruk_450",
|
|
549
424
|
"SearchDateRangePicker__day--other-month": "_SearchDateRangePicker__day--other-month_1pruk_454",
|
|
550
425
|
"SearchDateRangePicker__day--selected": "_SearchDateRangePicker__day--selected_1pruk_461",
|
|
@@ -552,7 +427,7 @@ const style0 = {
|
|
|
552
427
|
"SearchDateRangePicker__day--end": "_SearchDateRangePicker__day--end_1pruk_466",
|
|
553
428
|
"SearchDateRangePicker__h5-mask": "_SearchDateRangePicker__h5-mask_1pruk_498",
|
|
554
429
|
"SearchDateRangePicker__h5-panel": "_SearchDateRangePicker__h5-panel_1pruk_511",
|
|
555
|
-
slideUp,
|
|
430
|
+
slideUp: de,
|
|
556
431
|
"SearchDateRangePicker__h5-header": "_SearchDateRangePicker__h5-header_1pruk_524",
|
|
557
432
|
"SearchDateRangePicker__h5-footer": "_SearchDateRangePicker__h5-footer_1pruk_532",
|
|
558
433
|
"SearchDateRangePicker__h5-cancel": "_SearchDateRangePicker__h5-cancel_1pruk_540",
|
|
@@ -560,11 +435,9 @@ const style0 = {
|
|
|
560
435
|
"SearchDateRangePicker__h5-quick-options": "_SearchDateRangePicker__h5-quick-options_1pruk_565",
|
|
561
436
|
"SearchDateRangePicker__h5-quick-option": "_SearchDateRangePicker__h5-quick-option_1pruk_565",
|
|
562
437
|
"SearchDateRangePicker__h5-quick-option--active": "_SearchDateRangePicker__h5-quick-option--active_1pruk_584"
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
};
|
|
567
|
-
const DateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
438
|
+
}, Pe = {
|
|
439
|
+
$style: Re
|
|
440
|
+
}, $e = /* @__PURE__ */ re(oe, [["__cssModules", Pe]]);
|
|
568
441
|
export {
|
|
569
|
-
|
|
442
|
+
$e as default
|
|
570
443
|
};
|