tuikit-atomicx-vue3 3.3.3 → 3.4.1
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 +1427 -990
- package/dist/chat/index.js +57 -73
- package/dist/chat/server.js +60 -79
- 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 +109 -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/LiveCoreView/CoreViewDecorate/BattleDecorate.js +152 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.js +66 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.js +54 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/DefaultStreamViewUI.js +101 -154
- package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +113 -236
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +78 -0
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +150 -261
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.d.ts +11 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +234 -379
- package/dist/components/LiveCoreView/PlayerControl/index.js +6 -6
- package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +37 -121
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +32 -53
- package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +107 -177
- package/dist/components/LiveCoreView/i18n/en-US/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/en-US/index.js +14 -8
- package/dist/components/LiveCoreView/i18n/index.js +4 -4
- package/dist/components/LiveCoreView/i18n/zh-CN/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/zh-CN/index.js +14 -8
- package/dist/components/LiveCoreView/index.js +176 -301
- 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/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/RecalledMessage.vue.d.ts +2 -2
- 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 +27 -1
- package/dist/components/MessageList/i18n/en-US.js +29 -3
- package/dist/components/MessageList/i18n/index.d.ts +134 -78
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +27 -1
- package/dist/components/MessageList/i18n/zh-CN.js +29 -3
- 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 +249 -355
- 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-CeQ4nl87.js +44 -0
- package/dist/index-D-KJvDvy.js +5125 -0
- package/dist/index-D88ja_7_.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 +178 -152
- 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 +34 -2
- package/dist/rtc/index.js +63 -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 -59
- 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 +230 -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.d.ts +4 -0
- package/dist/statistical/const.js +4 -0
- package/dist/statistical/index.d.ts +2 -0
- package/dist/statistical/index.js +6 -0
- package/dist/statistical/statistical.d.ts +10 -0
- package/dist/statistical/statistical.js +19 -0
- package/dist/styles/index.css +1 -13144
- 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.d.ts +1 -0
- package/dist/types/chatSetting.js +6 -0
- 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 -5
- package/dist/types/index.js +92 -80
- 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 +27 -0
- package/src/chat/server.ts +5 -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 +218 -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 +2 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue +420 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue +141 -0
- package/src/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue +116 -0
- package/src/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
- package/src/components/LiveCoreView/PlayerControl/MultiResolution.vue +130 -0
- package/src/components/LiveCoreView/PlayerControl/PlayerControl.vue +10 -8
- package/src/components/LiveCoreView/PlayerControl/PlayerControlState.ts +117 -1
- package/src/components/LiveCoreView/assets/img/defeat.png +0 -0
- package/src/components/LiveCoreView/assets/img/draw.png +0 -0
- package/src/components/LiveCoreView/assets/img/victory.png +0 -0
- package/src/components/LiveCoreView/assets/svg/BattleOrdinaryBadge.svg +20 -0
- package/src/components/LiveCoreView/assets/svg/BattleTopBadge.svg +16 -0
- package/src/components/LiveCoreView/assets/svg/blueBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/redBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/s.svg +17 -0
- package/src/components/LiveCoreView/assets/svg/v.svg +17 -0
- package/src/components/LiveCoreView/i18n/en-US/index.ts +6 -0
- package/src/components/LiveCoreView/i18n/zh-CN/index.ts +6 -0
- package/src/components/LiveCoreView/index.vue +4 -1
- 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/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/Message/RecalledMessage/RecalledMessage.vue +10 -18
- package/src/components/MessageList/i18n/en-US.ts +32 -1
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +32 -1
- package/src/components/MessageList/index.ts +2 -2
- package/src/components/Search/SearchResults/SearchResults.scss +1 -0
- package/src/components/UserPicker/UserPicker.vue +0 -2
- package/src/hooks/index.ts +1 -2
- package/src/hooks/useMessageActions.ts +9 -9
- package/src/index.ts +2 -1
- package/src/rtc/index.ts +5 -0
- package/src/statistical/const.ts +5 -0
- package/src/statistical/index.ts +2 -0
- package/src/statistical/statistical.ts +23 -0
- package/src/types/battle.ts +12 -0
- package/src/types/call.ts +62 -0
- package/src/types/chatSetting.ts +5 -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 -5
- 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/index-BF6QB9jF.js +0 -63
- package/dist/index-CX1Zs9En.js +0 -44
- package/dist/index-DRcLhqhU.js +0 -38
- package/dist/index-ex2Jv3Tj.js +0 -7655
- package/dist/index-t9cbWbGG.js +0 -15913
- 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
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import { inject as Ee, provide as be, Fragment as we, effectScope as ue, getCurrentScope as Oe, onScopeDispose as Se, onBeforeUnmount as Ae, getCurrentInstance as x, computed as S, shallowRef as ae, watchEffect as L, readonly as Pe, customRef as _e, toValue as w, watch as T, isRef as K, reactive as W, unref as P, toRefs as G, ref as b, nextTick as M, onMounted as Ce, toHandlerKey as De, camelize as Te, onUnmounted as le, defineComponent as B, h as R, Comment as Le, mergeProps as Me, cloneVNode as Fe, createBlock as X, openBlock as Q, normalizeStyle as Ne, withCtx as ce, renderSlot as Z, createCommentVNode as Ie, Teleport as xe } from "vue";
|
|
2
|
+
function Be(e, t) {
|
|
3
|
+
const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
4
|
+
return [(s) => {
|
|
5
|
+
const a = Ee(r, s);
|
|
6
|
+
if (a || a === null) return a;
|
|
7
|
+
throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
8
|
+
}, (s) => (be(r, s), s)];
|
|
9
|
+
}
|
|
10
|
+
function I() {
|
|
11
|
+
let e = document.activeElement;
|
|
12
|
+
if (e == null) return null;
|
|
13
|
+
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null; ) e = e.shadowRoot.activeElement;
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
function fe(e, t, n) {
|
|
17
|
+
const r = n.originalEvent.target, o = new CustomEvent(e, {
|
|
18
|
+
bubbles: !1,
|
|
19
|
+
cancelable: !0,
|
|
20
|
+
detail: n
|
|
21
|
+
});
|
|
22
|
+
t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(o);
|
|
23
|
+
}
|
|
24
|
+
function ee(e) {
|
|
25
|
+
return e ? e.flatMap((t) => t.type === we ? ee(t.children) : [t]) : [];
|
|
26
|
+
}
|
|
27
|
+
const [ke] = Be("ConfigProvider");
|
|
28
|
+
function Ct(e, t) {
|
|
29
|
+
var n;
|
|
30
|
+
const r = ae();
|
|
31
|
+
return L(() => {
|
|
32
|
+
r.value = e();
|
|
33
|
+
}, {
|
|
34
|
+
...t,
|
|
35
|
+
flush: (n = void 0) != null ? n : "sync"
|
|
36
|
+
}), Pe(r);
|
|
37
|
+
}
|
|
38
|
+
function te(e) {
|
|
39
|
+
return Oe() ? (Se(e), !0) : !1;
|
|
40
|
+
}
|
|
41
|
+
function Ue(e) {
|
|
42
|
+
let t = !1, n;
|
|
43
|
+
const r = ue(!0);
|
|
44
|
+
return (...o) => (t || (n = r.run(() => e(...o)), t = !0), n);
|
|
45
|
+
}
|
|
46
|
+
function je(e) {
|
|
47
|
+
let t = 0, n, r;
|
|
48
|
+
const o = () => {
|
|
49
|
+
t -= 1, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
50
|
+
};
|
|
51
|
+
return (...i) => (t += 1, r || (r = ue(!0), n = r.run(() => e(...i))), te(o), n);
|
|
52
|
+
}
|
|
53
|
+
function Re(e) {
|
|
54
|
+
if (!K(e))
|
|
55
|
+
return W(e);
|
|
56
|
+
const t = new Proxy({}, {
|
|
57
|
+
get(n, r, o) {
|
|
58
|
+
return P(Reflect.get(e.value, r, o));
|
|
59
|
+
},
|
|
60
|
+
set(n, r, o) {
|
|
61
|
+
return K(e.value[r]) && !K(o) ? e.value[r].value = o : e.value[r] = o, !0;
|
|
62
|
+
},
|
|
63
|
+
deleteProperty(n, r) {
|
|
64
|
+
return Reflect.deleteProperty(e.value, r);
|
|
65
|
+
},
|
|
66
|
+
has(n, r) {
|
|
67
|
+
return Reflect.has(e.value, r);
|
|
68
|
+
},
|
|
69
|
+
ownKeys() {
|
|
70
|
+
return Object.keys(e.value);
|
|
71
|
+
},
|
|
72
|
+
getOwnPropertyDescriptor() {
|
|
73
|
+
return {
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
configurable: !0
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return W(t);
|
|
80
|
+
}
|
|
81
|
+
function We(e) {
|
|
82
|
+
return Re(S(e));
|
|
83
|
+
}
|
|
84
|
+
function Dt(e, ...t) {
|
|
85
|
+
const n = t.flat(), r = n[0];
|
|
86
|
+
return We(() => Object.fromEntries(typeof r == "function" ? Object.entries(G(e)).filter(([o, i]) => !r(w(i), o)) : Object.entries(G(e)).filter((o) => !n.includes(o[0]))));
|
|
87
|
+
}
|
|
88
|
+
const F = typeof window < "u" && typeof document < "u", $e = (e) => typeof e < "u", Ke = Object.prototype.toString, qe = (e) => Ke.call(e) === "[object Object]", re = /* @__PURE__ */ He();
|
|
89
|
+
function He() {
|
|
90
|
+
var e, t;
|
|
91
|
+
return F && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
92
|
+
}
|
|
93
|
+
function Ve(e) {
|
|
94
|
+
return x();
|
|
95
|
+
}
|
|
96
|
+
function q(e) {
|
|
97
|
+
return Array.isArray(e) ? e : [e];
|
|
98
|
+
}
|
|
99
|
+
function Tt(e, t = 1e4) {
|
|
100
|
+
return _e((n, r) => {
|
|
101
|
+
let o = w(e), i;
|
|
102
|
+
const s = () => setTimeout(() => {
|
|
103
|
+
o = w(e), r();
|
|
104
|
+
}, w(t));
|
|
105
|
+
return te(() => {
|
|
106
|
+
clearTimeout(i);
|
|
107
|
+
}), {
|
|
108
|
+
get() {
|
|
109
|
+
return n(), o;
|
|
110
|
+
},
|
|
111
|
+
set(a) {
|
|
112
|
+
o = a, r(), clearTimeout(i), i = s();
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function ze(e, t) {
|
|
118
|
+
Ve() && Ae(e, t);
|
|
119
|
+
}
|
|
120
|
+
function Ye(e, t, n) {
|
|
121
|
+
return T(
|
|
122
|
+
e,
|
|
123
|
+
t,
|
|
124
|
+
{
|
|
125
|
+
...n,
|
|
126
|
+
immediate: !0
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
const ne = F ? window : void 0;
|
|
131
|
+
function $(e) {
|
|
132
|
+
var t;
|
|
133
|
+
const n = w(e);
|
|
134
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
135
|
+
}
|
|
136
|
+
function de(...e) {
|
|
137
|
+
const t = [], n = () => {
|
|
138
|
+
t.forEach((a) => a()), t.length = 0;
|
|
139
|
+
}, r = (a, c, v, l) => (a.addEventListener(c, v, l), () => a.removeEventListener(c, v, l)), o = S(() => {
|
|
140
|
+
const a = q(w(e[0])).filter((c) => c != null);
|
|
141
|
+
return a.every((c) => typeof c != "string") ? a : void 0;
|
|
142
|
+
}), i = Ye(
|
|
143
|
+
() => {
|
|
144
|
+
var a, c;
|
|
145
|
+
return [
|
|
146
|
+
(c = (a = o.value) == null ? void 0 : a.map((v) => $(v))) != null ? c : [ne].filter((v) => v != null),
|
|
147
|
+
q(w(o.value ? e[1] : e[0])),
|
|
148
|
+
q(P(o.value ? e[2] : e[1])),
|
|
149
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
150
|
+
w(o.value ? e[3] : e[2])
|
|
151
|
+
];
|
|
152
|
+
},
|
|
153
|
+
([a, c, v, l]) => {
|
|
154
|
+
if (n(), !(a != null && a.length) || !(c != null && c.length) || !(v != null && v.length))
|
|
155
|
+
return;
|
|
156
|
+
const u = qe(l) ? { ...l } : l;
|
|
157
|
+
t.push(
|
|
158
|
+
...a.flatMap(
|
|
159
|
+
(d) => c.flatMap(
|
|
160
|
+
(p) => v.map((f) => r(d, p, f, u))
|
|
161
|
+
)
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
},
|
|
165
|
+
{ flush: "post" }
|
|
166
|
+
), s = () => {
|
|
167
|
+
i(), n();
|
|
168
|
+
};
|
|
169
|
+
return te(n), s;
|
|
170
|
+
}
|
|
171
|
+
function Ge() {
|
|
172
|
+
const e = ae(!1), t = x();
|
|
173
|
+
return t && Ce(() => {
|
|
174
|
+
e.value = !0;
|
|
175
|
+
}, t), e;
|
|
176
|
+
}
|
|
177
|
+
function Je(e) {
|
|
178
|
+
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
179
|
+
}
|
|
180
|
+
function Xe(...e) {
|
|
181
|
+
let t, n, r = {};
|
|
182
|
+
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
183
|
+
const {
|
|
184
|
+
target: o = ne,
|
|
185
|
+
eventName: i = "keydown",
|
|
186
|
+
passive: s = !1,
|
|
187
|
+
dedupe: a = !1
|
|
188
|
+
} = r, c = Je(t);
|
|
189
|
+
return de(o, i, (l) => {
|
|
190
|
+
l.repeat && w(a) || c(l) && n(l);
|
|
191
|
+
}, s);
|
|
192
|
+
}
|
|
193
|
+
function Qe(e) {
|
|
194
|
+
return JSON.parse(JSON.stringify(e));
|
|
195
|
+
}
|
|
196
|
+
function Lt(e, t, n, r = {}) {
|
|
197
|
+
var o, i, s;
|
|
198
|
+
const {
|
|
199
|
+
clone: a = !1,
|
|
200
|
+
passive: c = !1,
|
|
201
|
+
eventName: v,
|
|
202
|
+
deep: l = !1,
|
|
203
|
+
defaultValue: u,
|
|
204
|
+
shouldEmit: d
|
|
205
|
+
} = r, p = x(), f = n || (p == null ? void 0 : p.emit) || ((o = p == null ? void 0 : p.$emit) == null ? void 0 : o.bind(p)) || ((s = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(p == null ? void 0 : p.proxy));
|
|
206
|
+
let h = v;
|
|
207
|
+
t || (t = "modelValue"), h = h || `update:${t.toString()}`;
|
|
208
|
+
const y = (E) => a ? typeof a == "function" ? a(E) : Qe(E) : E, m = () => $e(e[t]) ? y(e[t]) : u, g = (E) => {
|
|
209
|
+
d ? d(E) && f(h, E) : f(h, E);
|
|
210
|
+
};
|
|
211
|
+
if (c) {
|
|
212
|
+
const E = m(), _ = b(E);
|
|
213
|
+
let C = !1;
|
|
214
|
+
return T(
|
|
215
|
+
() => e[t],
|
|
216
|
+
(O) => {
|
|
217
|
+
C || (C = !0, _.value = y(O), M(() => C = !1));
|
|
218
|
+
}
|
|
219
|
+
), T(
|
|
220
|
+
_,
|
|
221
|
+
(O) => {
|
|
222
|
+
!C && (O !== e[t] || l) && g(O);
|
|
223
|
+
},
|
|
224
|
+
{ deep: l }
|
|
225
|
+
), _;
|
|
226
|
+
} else
|
|
227
|
+
return S({
|
|
228
|
+
get() {
|
|
229
|
+
return m();
|
|
230
|
+
},
|
|
231
|
+
set(E) {
|
|
232
|
+
g(E);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function H(e) {
|
|
237
|
+
if (e === null || typeof e != "object")
|
|
238
|
+
return !1;
|
|
239
|
+
const t = Object.getPrototypeOf(e);
|
|
240
|
+
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
241
|
+
}
|
|
242
|
+
function J(e, t, n = ".", r) {
|
|
243
|
+
if (!H(t))
|
|
244
|
+
return J(e, {}, n, r);
|
|
245
|
+
const o = Object.assign({}, t);
|
|
246
|
+
for (const i in e) {
|
|
247
|
+
if (i === "__proto__" || i === "constructor")
|
|
248
|
+
continue;
|
|
249
|
+
const s = e[i];
|
|
250
|
+
s != null && (r && r(o, i, s, n) || (Array.isArray(s) && Array.isArray(o[i]) ? o[i] = [...s, ...o[i]] : H(s) && H(o[i]) ? o[i] = J(
|
|
251
|
+
s,
|
|
252
|
+
o[i],
|
|
253
|
+
(n ? `${n}.` : "") + i.toString(),
|
|
254
|
+
r
|
|
255
|
+
) : o[i] = s));
|
|
256
|
+
}
|
|
257
|
+
return o;
|
|
258
|
+
}
|
|
259
|
+
function Ze(e) {
|
|
260
|
+
return (...t) => (
|
|
261
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
262
|
+
t.reduce((n, r) => J(n, r, "", e), {})
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
const et = Ze(), tt = je(() => {
|
|
266
|
+
const e = b(/* @__PURE__ */ new Map()), t = b(), n = S(() => {
|
|
267
|
+
for (const s of e.value.values()) if (s) return !0;
|
|
268
|
+
return !1;
|
|
269
|
+
}), r = ke({ scrollBody: b(!0) });
|
|
270
|
+
let o = null;
|
|
271
|
+
const i = () => {
|
|
272
|
+
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", re && (o == null || o()), t.value = void 0;
|
|
273
|
+
};
|
|
274
|
+
return T(n, (s, a) => {
|
|
275
|
+
var u;
|
|
276
|
+
if (!F) return;
|
|
277
|
+
if (!s) {
|
|
278
|
+
a && i();
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
t.value === void 0 && (t.value = document.body.style.overflow);
|
|
282
|
+
const c = window.innerWidth - document.documentElement.clientWidth, v = {
|
|
283
|
+
padding: c,
|
|
284
|
+
margin: 0
|
|
285
|
+
}, l = (u = r.scrollBody) != null && u.value ? typeof r.scrollBody.value == "object" ? et({
|
|
286
|
+
padding: r.scrollBody.value.padding === !0 ? c : r.scrollBody.value.padding,
|
|
287
|
+
margin: r.scrollBody.value.margin === !0 ? c : r.scrollBody.value.margin
|
|
288
|
+
}, v) : v : {
|
|
289
|
+
padding: 0,
|
|
290
|
+
margin: 0
|
|
291
|
+
};
|
|
292
|
+
c > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), re && (o = de(document, "touchmove", (d) => nt(d), { passive: !1 })), M(() => {
|
|
293
|
+
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
|
|
294
|
+
});
|
|
295
|
+
}, {
|
|
296
|
+
immediate: !0,
|
|
297
|
+
flush: "sync"
|
|
298
|
+
}), e;
|
|
299
|
+
});
|
|
300
|
+
function Mt(e) {
|
|
301
|
+
const t = Math.random().toString(36).substring(2, 7), n = tt();
|
|
302
|
+
n.value.set(t, e ?? !1);
|
|
303
|
+
const r = S({
|
|
304
|
+
get: () => n.value.get(t) ?? !1,
|
|
305
|
+
set: (o) => n.value.set(t, o)
|
|
306
|
+
});
|
|
307
|
+
return ze(() => {
|
|
308
|
+
n.value.delete(t);
|
|
309
|
+
}), r;
|
|
310
|
+
}
|
|
311
|
+
function ve(e) {
|
|
312
|
+
const t = window.getComputedStyle(e);
|
|
313
|
+
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
314
|
+
{
|
|
315
|
+
const n = e.parentNode;
|
|
316
|
+
return !(n instanceof Element) || n.tagName === "BODY" ? !1 : ve(n);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function nt(e) {
|
|
320
|
+
const t = e || window.event, n = t.target;
|
|
321
|
+
return n instanceof Element && ve(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
322
|
+
}
|
|
323
|
+
function Ft(e) {
|
|
324
|
+
const t = x(), n = t == null ? void 0 : t.type.emits, r = {};
|
|
325
|
+
return n != null && n.length || console.warn(`No emitted event found. Please check component: ${t == null ? void 0 : t.type.__name}`), n == null || n.forEach((o) => {
|
|
326
|
+
r[De(Te(o))] = (...i) => e(o, ...i);
|
|
327
|
+
}), r;
|
|
328
|
+
}
|
|
329
|
+
function pe() {
|
|
330
|
+
const e = x(), t = b(), n = S(() => {
|
|
331
|
+
var s, a;
|
|
332
|
+
return ["#text", "#comment"].includes((s = t.value) == null ? void 0 : s.$el.nodeName) ? (a = t.value) == null ? void 0 : a.$el.nextElementSibling : $(t);
|
|
333
|
+
}), r = Object.assign({}, e.exposed), o = {};
|
|
334
|
+
for (const s in e.props) Object.defineProperty(o, s, {
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
configurable: !0,
|
|
337
|
+
get: () => e.props[s]
|
|
338
|
+
});
|
|
339
|
+
if (Object.keys(r).length > 0) for (const s in r) Object.defineProperty(o, s, {
|
|
340
|
+
enumerable: !0,
|
|
341
|
+
configurable: !0,
|
|
342
|
+
get: () => r[s]
|
|
343
|
+
});
|
|
344
|
+
Object.defineProperty(o, "$el", {
|
|
345
|
+
enumerable: !0,
|
|
346
|
+
configurable: !0,
|
|
347
|
+
get: () => e.vnode.el
|
|
348
|
+
}), e.exposed = o;
|
|
349
|
+
function i(s) {
|
|
350
|
+
t.value = s, s && (Object.defineProperty(o, "$el", {
|
|
351
|
+
enumerable: !0,
|
|
352
|
+
configurable: !0,
|
|
353
|
+
get: () => s instanceof Element ? s : s.$el
|
|
354
|
+
}), e.exposed = o);
|
|
355
|
+
}
|
|
356
|
+
return {
|
|
357
|
+
forwardRef: i,
|
|
358
|
+
currentRef: t,
|
|
359
|
+
currentElement: n
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
var rt = function(e) {
|
|
363
|
+
if (typeof document > "u")
|
|
364
|
+
return null;
|
|
365
|
+
var t = Array.isArray(e) ? e[0] : e;
|
|
366
|
+
return t.ownerDocument.body;
|
|
367
|
+
}, N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), U = {}, V = 0, me = function(e) {
|
|
368
|
+
return e && (e.host || me(e.parentNode));
|
|
369
|
+
}, ot = function(e, t) {
|
|
370
|
+
return t.map(function(n) {
|
|
371
|
+
if (e.contains(n))
|
|
372
|
+
return n;
|
|
373
|
+
var r = me(n);
|
|
374
|
+
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
375
|
+
}).filter(function(n) {
|
|
376
|
+
return !!n;
|
|
377
|
+
});
|
|
378
|
+
}, it = function(e, t, n, r) {
|
|
379
|
+
var o = ot(t, Array.isArray(e) ? e : [e]);
|
|
380
|
+
U[n] || (U[n] = /* @__PURE__ */ new WeakMap());
|
|
381
|
+
var i = U[n], s = [], a = /* @__PURE__ */ new Set(), c = new Set(o), v = function(u) {
|
|
382
|
+
!u || a.has(u) || (a.add(u), v(u.parentNode));
|
|
383
|
+
};
|
|
384
|
+
o.forEach(v);
|
|
385
|
+
var l = function(u) {
|
|
386
|
+
!u || c.has(u) || Array.prototype.forEach.call(u.children, function(d) {
|
|
387
|
+
if (a.has(d))
|
|
388
|
+
l(d);
|
|
389
|
+
else
|
|
390
|
+
try {
|
|
391
|
+
var p = d.getAttribute(r), f = p !== null && p !== "false", h = (N.get(d) || 0) + 1, y = (i.get(d) || 0) + 1;
|
|
392
|
+
N.set(d, h), i.set(d, y), s.push(d), h === 1 && f && k.set(d, !0), y === 1 && d.setAttribute(n, "true"), f || d.setAttribute(r, "true");
|
|
393
|
+
} catch (m) {
|
|
394
|
+
console.error("aria-hidden: cannot operate on ", d, m);
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
};
|
|
398
|
+
return l(t), a.clear(), V++, function() {
|
|
399
|
+
s.forEach(function(u) {
|
|
400
|
+
var d = N.get(u) - 1, p = i.get(u) - 1;
|
|
401
|
+
N.set(u, d), i.set(u, p), d || (k.has(u) || u.removeAttribute(r), k.delete(u)), p || u.removeAttribute(n);
|
|
402
|
+
}), V--, V || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), U = {});
|
|
403
|
+
};
|
|
404
|
+
}, st = function(e, t, n) {
|
|
405
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
406
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = rt(e);
|
|
407
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), it(r, o, n, "aria-hidden")) : function() {
|
|
408
|
+
return null;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
function Nt(e) {
|
|
412
|
+
let t;
|
|
413
|
+
T(() => $(e), (n) => {
|
|
414
|
+
n ? t = st(n) : t && t();
|
|
415
|
+
}), le(() => {
|
|
416
|
+
t && t();
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
function ut(e, t) {
|
|
420
|
+
const n = b(e);
|
|
421
|
+
function r(i) {
|
|
422
|
+
return t[n.value][i] ?? n.value;
|
|
423
|
+
}
|
|
424
|
+
return {
|
|
425
|
+
state: n,
|
|
426
|
+
dispatch: (i) => {
|
|
427
|
+
n.value = r(i);
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function at(e, t) {
|
|
432
|
+
var y;
|
|
433
|
+
const n = b({}), r = b("none"), o = b(e), i = e.value ? "mounted" : "unmounted";
|
|
434
|
+
let s;
|
|
435
|
+
const a = ((y = t.value) == null ? void 0 : y.ownerDocument.defaultView) ?? ne, { state: c, dispatch: v } = ut(i, {
|
|
436
|
+
mounted: {
|
|
437
|
+
UNMOUNT: "unmounted",
|
|
438
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
439
|
+
},
|
|
440
|
+
unmountSuspended: {
|
|
441
|
+
MOUNT: "mounted",
|
|
442
|
+
ANIMATION_END: "unmounted"
|
|
443
|
+
},
|
|
444
|
+
unmounted: { MOUNT: "mounted" }
|
|
445
|
+
}), l = (m) => {
|
|
446
|
+
var g;
|
|
447
|
+
if (F) {
|
|
448
|
+
const E = new CustomEvent(m, {
|
|
449
|
+
bubbles: !1,
|
|
450
|
+
cancelable: !1
|
|
451
|
+
});
|
|
452
|
+
(g = t.value) == null || g.dispatchEvent(E);
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
T(e, async (m, g) => {
|
|
456
|
+
var _;
|
|
457
|
+
const E = g !== m;
|
|
458
|
+
if (await M(), E) {
|
|
459
|
+
const C = r.value, O = j(t.value);
|
|
460
|
+
m ? (v("MOUNT"), l("enter"), O === "none" && l("after-enter")) : O === "none" || O === "undefined" || ((_ = n.value) == null ? void 0 : _.display) === "none" ? (v("UNMOUNT"), l("leave"), l("after-leave")) : g && C !== O ? (v("ANIMATION_OUT"), l("leave")) : (v("UNMOUNT"), l("after-leave"));
|
|
461
|
+
}
|
|
462
|
+
}, { immediate: !0 });
|
|
463
|
+
const u = (m) => {
|
|
464
|
+
const g = j(t.value), E = g.includes(CSS.escape(m.animationName)), _ = c.value === "mounted" ? "enter" : "leave";
|
|
465
|
+
if (m.target === t.value && E && (l(`after-${_}`), v("ANIMATION_END"), !o.value)) {
|
|
466
|
+
const C = t.value.style.animationFillMode;
|
|
467
|
+
t.value.style.animationFillMode = "forwards", s = a == null ? void 0 : a.setTimeout(() => {
|
|
468
|
+
var O;
|
|
469
|
+
((O = t.value) == null ? void 0 : O.style.animationFillMode) === "forwards" && (t.value.style.animationFillMode = C);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
m.target === t.value && g === "none" && v("ANIMATION_END");
|
|
473
|
+
}, d = (m) => {
|
|
474
|
+
m.target === t.value && (r.value = j(t.value));
|
|
475
|
+
}, p = T(t, (m, g) => {
|
|
476
|
+
m ? (n.value = getComputedStyle(m), m.addEventListener("animationstart", d), m.addEventListener("animationcancel", u), m.addEventListener("animationend", u)) : (v("ANIMATION_END"), s !== void 0 && (a == null || a.clearTimeout(s)), g == null || g.removeEventListener("animationstart", d), g == null || g.removeEventListener("animationcancel", u), g == null || g.removeEventListener("animationend", u));
|
|
477
|
+
}, { immediate: !0 }), f = T(c, () => {
|
|
478
|
+
const m = j(t.value);
|
|
479
|
+
r.value = c.value === "mounted" ? m : "none";
|
|
480
|
+
});
|
|
481
|
+
return le(() => {
|
|
482
|
+
p(), f();
|
|
483
|
+
}), { isPresent: S(() => ["mounted", "unmountSuspended"].includes(c.value)) };
|
|
484
|
+
}
|
|
485
|
+
function j(e) {
|
|
486
|
+
return e && getComputedStyle(e).animationName || "none";
|
|
487
|
+
}
|
|
488
|
+
var It = B({
|
|
489
|
+
name: "Presence",
|
|
490
|
+
props: {
|
|
491
|
+
present: {
|
|
492
|
+
type: Boolean,
|
|
493
|
+
required: !0
|
|
494
|
+
},
|
|
495
|
+
forceMount: { type: Boolean }
|
|
496
|
+
},
|
|
497
|
+
slots: {},
|
|
498
|
+
setup(e, { slots: t, expose: n }) {
|
|
499
|
+
var v;
|
|
500
|
+
const { present: r, forceMount: o } = G(e), i = b(), { isPresent: s } = at(r, i);
|
|
501
|
+
n({ present: s });
|
|
502
|
+
let a = t.default({ present: s.value });
|
|
503
|
+
a = ee(a || []);
|
|
504
|
+
const c = x();
|
|
505
|
+
if (a && (a == null ? void 0 : a.length) > 1) {
|
|
506
|
+
const l = (v = c == null ? void 0 : c.parent) != null && v.type.name ? `<${c.parent.type.name} />` : "component";
|
|
507
|
+
throw new Error([
|
|
508
|
+
`Detected an invalid children for \`${l}\` for \`Presence\` component.`,
|
|
509
|
+
"",
|
|
510
|
+
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
511
|
+
"You can apply a few solutions:",
|
|
512
|
+
["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((u) => ` - ${u}`).join(`
|
|
513
|
+
`)
|
|
514
|
+
].join(`
|
|
515
|
+
`));
|
|
516
|
+
}
|
|
517
|
+
return () => o.value || r.value || s.value ? R(t.default({ present: s.value })[0], { ref: (l) => {
|
|
518
|
+
const u = $(l);
|
|
519
|
+
return typeof (u == null ? void 0 : u.hasAttribute) > "u" || (u != null && u.hasAttribute("data-reka-popper-content-wrapper") ? i.value = u.firstElementChild : i.value = u), u;
|
|
520
|
+
} }) : null;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
const lt = B({
|
|
524
|
+
name: "PrimitiveSlot",
|
|
525
|
+
inheritAttrs: !1,
|
|
526
|
+
setup(e, { attrs: t, slots: n }) {
|
|
527
|
+
return () => {
|
|
528
|
+
var c;
|
|
529
|
+
if (!n.default) return null;
|
|
530
|
+
const r = ee(n.default()), o = r.findIndex((v) => v.type !== Le);
|
|
531
|
+
if (o === -1) return r;
|
|
532
|
+
const i = r[o];
|
|
533
|
+
(c = i.props) == null || delete c.ref;
|
|
534
|
+
const s = i.props ? Me(t, i.props) : t, a = Fe({
|
|
535
|
+
...i,
|
|
536
|
+
props: {}
|
|
537
|
+
}, s);
|
|
538
|
+
return r.length === 1 ? a : (r[o] = a, r);
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
}), ct = [
|
|
542
|
+
"area",
|
|
543
|
+
"img",
|
|
544
|
+
"input"
|
|
545
|
+
], ye = B({
|
|
546
|
+
name: "Primitive",
|
|
547
|
+
inheritAttrs: !1,
|
|
548
|
+
props: {
|
|
549
|
+
asChild: {
|
|
550
|
+
type: Boolean,
|
|
551
|
+
default: !1
|
|
552
|
+
},
|
|
553
|
+
as: {
|
|
554
|
+
type: [String, Object],
|
|
555
|
+
default: "div"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
setup(e, { attrs: t, slots: n }) {
|
|
559
|
+
const r = e.asChild ? "template" : e.as;
|
|
560
|
+
return typeof r == "string" && ct.includes(r) ? () => R(r, t) : r !== "template" ? () => R(e.as, t, { default: n.default }) : () => R(lt, t, { default: n.default });
|
|
561
|
+
}
|
|
562
|
+
}), ft = "dismissableLayer.pointerDownOutside", dt = "dismissableLayer.focusOutside";
|
|
563
|
+
function he(e, t) {
|
|
564
|
+
const n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), o = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
565
|
+
return !!(n && (r === n || o.indexOf(r) < o.indexOf(n)));
|
|
566
|
+
}
|
|
567
|
+
function vt(e, t, n = !0) {
|
|
568
|
+
var s;
|
|
569
|
+
const r = ((s = t == null ? void 0 : t.value) == null ? void 0 : s.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), o = b(!1), i = b(() => {
|
|
570
|
+
});
|
|
571
|
+
return L((a) => {
|
|
572
|
+
if (!F || !w(n)) return;
|
|
573
|
+
const c = async (l) => {
|
|
574
|
+
const u = l.target;
|
|
575
|
+
if (!(!(t != null && t.value) || !u)) {
|
|
576
|
+
if (he(t.value, u)) {
|
|
577
|
+
o.value = !1;
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
if (l.target && !o.value) {
|
|
581
|
+
let p = function() {
|
|
582
|
+
fe(ft, e, d);
|
|
583
|
+
};
|
|
584
|
+
const d = { originalEvent: l };
|
|
585
|
+
l.pointerType === "touch" ? (r.removeEventListener("click", i.value), i.value = p, r.addEventListener("click", i.value, { once: !0 })) : p();
|
|
586
|
+
} else r.removeEventListener("click", i.value);
|
|
587
|
+
o.value = !1;
|
|
588
|
+
}
|
|
589
|
+
}, v = window.setTimeout(() => {
|
|
590
|
+
r.addEventListener("pointerdown", c);
|
|
591
|
+
}, 0);
|
|
592
|
+
a(() => {
|
|
593
|
+
window.clearTimeout(v), r.removeEventListener("pointerdown", c), r.removeEventListener("click", i.value);
|
|
594
|
+
});
|
|
595
|
+
}), { onPointerDownCapture: () => {
|
|
596
|
+
w(n) && (o.value = !0);
|
|
597
|
+
} };
|
|
598
|
+
}
|
|
599
|
+
function pt(e, t, n = !0) {
|
|
600
|
+
var i;
|
|
601
|
+
const r = ((i = t == null ? void 0 : t.value) == null ? void 0 : i.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), o = b(!1);
|
|
602
|
+
return L((s) => {
|
|
603
|
+
if (!F || !w(n)) return;
|
|
604
|
+
const a = async (c) => {
|
|
605
|
+
if (!(t != null && t.value)) return;
|
|
606
|
+
await M(), await M();
|
|
607
|
+
const v = c.target;
|
|
608
|
+
!t.value || !v || he(t.value, v) || c.target && !o.value && fe(dt, e, { originalEvent: c });
|
|
609
|
+
};
|
|
610
|
+
r.addEventListener("focusin", a), s(() => r.removeEventListener("focusin", a));
|
|
611
|
+
}), {
|
|
612
|
+
onFocusCapture: () => {
|
|
613
|
+
w(n) && (o.value = !0);
|
|
614
|
+
},
|
|
615
|
+
onBlurCapture: () => {
|
|
616
|
+
w(n) && (o.value = !1);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
const A = W({
|
|
621
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
622
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
623
|
+
branches: /* @__PURE__ */ new Set()
|
|
624
|
+
});
|
|
625
|
+
var mt = /* @__PURE__ */ B({
|
|
626
|
+
__name: "DismissableLayer",
|
|
627
|
+
props: {
|
|
628
|
+
disableOutsidePointerEvents: {
|
|
629
|
+
type: Boolean,
|
|
630
|
+
required: !1,
|
|
631
|
+
default: !1
|
|
632
|
+
},
|
|
633
|
+
asChild: {
|
|
634
|
+
type: Boolean,
|
|
635
|
+
required: !1
|
|
636
|
+
},
|
|
637
|
+
as: {
|
|
638
|
+
type: null,
|
|
639
|
+
required: !1
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
emits: [
|
|
643
|
+
"escapeKeyDown",
|
|
644
|
+
"pointerDownOutside",
|
|
645
|
+
"focusOutside",
|
|
646
|
+
"interactOutside",
|
|
647
|
+
"dismiss"
|
|
648
|
+
],
|
|
649
|
+
setup(e, { emit: t }) {
|
|
650
|
+
const n = e, r = t, { forwardRef: o, currentElement: i } = pe(), s = S(() => {
|
|
651
|
+
var f;
|
|
652
|
+
return ((f = i.value) == null ? void 0 : f.ownerDocument) ?? globalThis.document;
|
|
653
|
+
}), a = S(() => A.layersRoot), c = S(() => i.value ? Array.from(a.value).indexOf(i.value) : -1), v = S(() => A.layersWithOutsidePointerEventsDisabled.size > 0), l = S(() => {
|
|
654
|
+
const f = Array.from(a.value), [h] = [...A.layersWithOutsidePointerEventsDisabled].slice(-1), y = f.indexOf(h);
|
|
655
|
+
return c.value >= y;
|
|
656
|
+
}), u = vt(async (f) => {
|
|
657
|
+
const h = [...A.branches].some((y) => y == null ? void 0 : y.contains(f.target));
|
|
658
|
+
!l.value || h || (r("pointerDownOutside", f), r("interactOutside", f), await M(), f.defaultPrevented || r("dismiss"));
|
|
659
|
+
}, i), d = pt((f) => {
|
|
660
|
+
[...A.branches].some((y) => y == null ? void 0 : y.contains(f.target)) || (r("focusOutside", f), r("interactOutside", f), f.defaultPrevented || r("dismiss"));
|
|
661
|
+
}, i);
|
|
662
|
+
Xe("Escape", (f) => {
|
|
663
|
+
c.value === a.value.size - 1 && (r("escapeKeyDown", f), f.defaultPrevented || r("dismiss"));
|
|
664
|
+
});
|
|
665
|
+
let p;
|
|
666
|
+
return L((f) => {
|
|
667
|
+
i.value && (n.disableOutsidePointerEvents && (A.layersWithOutsidePointerEventsDisabled.size === 0 && (p = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), A.layersWithOutsidePointerEventsDisabled.add(i.value)), a.value.add(i.value), f(() => {
|
|
668
|
+
n.disableOutsidePointerEvents && A.layersWithOutsidePointerEventsDisabled.size === 1 && (s.value.body.style.pointerEvents = p);
|
|
669
|
+
}));
|
|
670
|
+
}), L((f) => {
|
|
671
|
+
f(() => {
|
|
672
|
+
i.value && (a.value.delete(i.value), A.layersWithOutsidePointerEventsDisabled.delete(i.value));
|
|
673
|
+
});
|
|
674
|
+
}), (f, h) => (Q(), X(P(ye), {
|
|
675
|
+
ref: P(o),
|
|
676
|
+
"as-child": f.asChild,
|
|
677
|
+
as: f.as,
|
|
678
|
+
"data-dismissable-layer": "",
|
|
679
|
+
style: Ne({ pointerEvents: v.value ? l.value ? "auto" : "none" : void 0 }),
|
|
680
|
+
onFocusCapture: P(d).onFocusCapture,
|
|
681
|
+
onBlurCapture: P(d).onBlurCapture,
|
|
682
|
+
onPointerdownCapture: P(u).onPointerDownCapture
|
|
683
|
+
}, {
|
|
684
|
+
default: ce(() => [Z(f.$slots, "default")]),
|
|
685
|
+
_: 3
|
|
686
|
+
}, 8, [
|
|
687
|
+
"as-child",
|
|
688
|
+
"as",
|
|
689
|
+
"style",
|
|
690
|
+
"onFocusCapture",
|
|
691
|
+
"onBlurCapture",
|
|
692
|
+
"onPointerdownCapture"
|
|
693
|
+
]));
|
|
694
|
+
}
|
|
695
|
+
}), xt = mt;
|
|
696
|
+
const yt = Ue(() => b([]));
|
|
697
|
+
function ht() {
|
|
698
|
+
const e = yt();
|
|
699
|
+
return {
|
|
700
|
+
add(t) {
|
|
701
|
+
const n = e.value[0];
|
|
702
|
+
t !== n && (n == null || n.pause()), e.value = oe(e.value, t), e.value.unshift(t);
|
|
703
|
+
},
|
|
704
|
+
remove(t) {
|
|
705
|
+
var n;
|
|
706
|
+
e.value = oe(e.value, t), (n = e.value[0]) == null || n.resume();
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function oe(e, t) {
|
|
711
|
+
const n = [...e], r = n.indexOf(t);
|
|
712
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
713
|
+
}
|
|
714
|
+
function gt(e) {
|
|
715
|
+
return e.filter((t) => t.tagName !== "A");
|
|
716
|
+
}
|
|
717
|
+
const z = "focusScope.autoFocusOnMount", Y = "focusScope.autoFocusOnUnmount", ie = {
|
|
718
|
+
bubbles: !1,
|
|
719
|
+
cancelable: !0
|
|
720
|
+
};
|
|
721
|
+
function Et(e, { select: t = !1 } = {}) {
|
|
722
|
+
const n = I();
|
|
723
|
+
for (const r of e)
|
|
724
|
+
if (D(r, { select: t }), I() !== n) return !0;
|
|
725
|
+
}
|
|
726
|
+
function bt(e) {
|
|
727
|
+
const t = ge(e), n = se(t, e), r = se(t.reverse(), e);
|
|
728
|
+
return [n, r];
|
|
729
|
+
}
|
|
730
|
+
function ge(e) {
|
|
731
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (r) => {
|
|
732
|
+
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
733
|
+
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
734
|
+
} });
|
|
735
|
+
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
736
|
+
return t;
|
|
737
|
+
}
|
|
738
|
+
function se(e, t) {
|
|
739
|
+
for (const n of e) if (!wt(n, { upTo: t })) return n;
|
|
740
|
+
}
|
|
741
|
+
function wt(e, { upTo: t }) {
|
|
742
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
743
|
+
for (; e; ) {
|
|
744
|
+
if (t !== void 0 && e === t) return !1;
|
|
745
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
746
|
+
e = e.parentElement;
|
|
747
|
+
}
|
|
748
|
+
return !1;
|
|
749
|
+
}
|
|
750
|
+
function Ot(e) {
|
|
751
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
752
|
+
}
|
|
753
|
+
function D(e, { select: t = !1 } = {}) {
|
|
754
|
+
if (e && e.focus) {
|
|
755
|
+
const n = I();
|
|
756
|
+
e.focus({ preventScroll: !0 }), e !== n && Ot(e) && t && e.select();
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
var St = /* @__PURE__ */ B({
|
|
760
|
+
__name: "FocusScope",
|
|
761
|
+
props: {
|
|
762
|
+
loop: {
|
|
763
|
+
type: Boolean,
|
|
764
|
+
required: !1,
|
|
765
|
+
default: !1
|
|
766
|
+
},
|
|
767
|
+
trapped: {
|
|
768
|
+
type: Boolean,
|
|
769
|
+
required: !1,
|
|
770
|
+
default: !1
|
|
771
|
+
},
|
|
772
|
+
asChild: {
|
|
773
|
+
type: Boolean,
|
|
774
|
+
required: !1
|
|
775
|
+
},
|
|
776
|
+
as: {
|
|
777
|
+
type: null,
|
|
778
|
+
required: !1
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
782
|
+
setup(e, { emit: t }) {
|
|
783
|
+
const n = e, r = t, { currentRef: o, currentElement: i } = pe(), s = b(null), a = ht(), c = W({
|
|
784
|
+
paused: !1,
|
|
785
|
+
pause() {
|
|
786
|
+
this.paused = !0;
|
|
787
|
+
},
|
|
788
|
+
resume() {
|
|
789
|
+
this.paused = !1;
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
L((l) => {
|
|
793
|
+
if (!F) return;
|
|
794
|
+
const u = i.value;
|
|
795
|
+
if (!n.trapped) return;
|
|
796
|
+
function d(y) {
|
|
797
|
+
if (c.paused || !u) return;
|
|
798
|
+
const m = y.target;
|
|
799
|
+
u.contains(m) ? s.value = m : D(s.value, { select: !0 });
|
|
800
|
+
}
|
|
801
|
+
function p(y) {
|
|
802
|
+
if (c.paused || !u) return;
|
|
803
|
+
const m = y.relatedTarget;
|
|
804
|
+
m !== null && (u.contains(m) || D(s.value, { select: !0 }));
|
|
805
|
+
}
|
|
806
|
+
function f(y) {
|
|
807
|
+
u.contains(s.value) || D(u);
|
|
808
|
+
}
|
|
809
|
+
document.addEventListener("focusin", d), document.addEventListener("focusout", p);
|
|
810
|
+
const h = new MutationObserver(f);
|
|
811
|
+
u && h.observe(u, {
|
|
812
|
+
childList: !0,
|
|
813
|
+
subtree: !0
|
|
814
|
+
}), l(() => {
|
|
815
|
+
document.removeEventListener("focusin", d), document.removeEventListener("focusout", p), h.disconnect();
|
|
816
|
+
});
|
|
817
|
+
}), L(async (l) => {
|
|
818
|
+
const u = i.value;
|
|
819
|
+
if (await M(), !u) return;
|
|
820
|
+
a.add(c);
|
|
821
|
+
const d = I();
|
|
822
|
+
if (!u.contains(d)) {
|
|
823
|
+
const f = new CustomEvent(z, ie);
|
|
824
|
+
u.addEventListener(z, (h) => r("mountAutoFocus", h)), u.dispatchEvent(f), f.defaultPrevented || (Et(gt(ge(u)), { select: !0 }), I() === d && D(u));
|
|
825
|
+
}
|
|
826
|
+
l(() => {
|
|
827
|
+
u.removeEventListener(z, (y) => r("mountAutoFocus", y));
|
|
828
|
+
const f = new CustomEvent(Y, ie), h = (y) => {
|
|
829
|
+
r("unmountAutoFocus", y);
|
|
830
|
+
};
|
|
831
|
+
u.addEventListener(Y, h), u.dispatchEvent(f), setTimeout(() => {
|
|
832
|
+
f.defaultPrevented || D(d ?? document.body, { select: !0 }), u.removeEventListener(Y, h), a.remove(c);
|
|
833
|
+
}, 0);
|
|
834
|
+
});
|
|
835
|
+
});
|
|
836
|
+
function v(l) {
|
|
837
|
+
if (!n.loop && !n.trapped || c.paused) return;
|
|
838
|
+
const u = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, d = I();
|
|
839
|
+
if (u && d) {
|
|
840
|
+
const p = l.currentTarget, [f, h] = bt(p);
|
|
841
|
+
f && h ? !l.shiftKey && d === h ? (l.preventDefault(), n.loop && D(f, { select: !0 })) : l.shiftKey && d === f && (l.preventDefault(), n.loop && D(h, { select: !0 })) : d === p && l.preventDefault();
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return (l, u) => (Q(), X(P(ye), {
|
|
845
|
+
ref_key: "currentRef",
|
|
846
|
+
ref: o,
|
|
847
|
+
tabindex: "-1",
|
|
848
|
+
"as-child": l.asChild,
|
|
849
|
+
as: l.as,
|
|
850
|
+
onKeydown: v
|
|
851
|
+
}, {
|
|
852
|
+
default: ce(() => [Z(l.$slots, "default")]),
|
|
853
|
+
_: 3
|
|
854
|
+
}, 8, ["as-child", "as"]));
|
|
855
|
+
}
|
|
856
|
+
}), Bt = St, At = /* @__PURE__ */ B({
|
|
857
|
+
__name: "Teleport",
|
|
858
|
+
props: {
|
|
859
|
+
to: {
|
|
860
|
+
type: null,
|
|
861
|
+
required: !1,
|
|
862
|
+
default: "body"
|
|
863
|
+
},
|
|
864
|
+
disabled: {
|
|
865
|
+
type: Boolean,
|
|
866
|
+
required: !1
|
|
867
|
+
},
|
|
868
|
+
defer: {
|
|
869
|
+
type: Boolean,
|
|
870
|
+
required: !1
|
|
871
|
+
},
|
|
872
|
+
forceMount: {
|
|
873
|
+
type: Boolean,
|
|
874
|
+
required: !1
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
setup(e) {
|
|
878
|
+
const t = Ge();
|
|
879
|
+
return (n, r) => P(t) || n.forceMount ? (Q(), X(xe, {
|
|
880
|
+
key: 0,
|
|
881
|
+
to: n.to,
|
|
882
|
+
disabled: n.disabled,
|
|
883
|
+
defer: n.defer
|
|
884
|
+
}, [Z(n.$slots, "default")], 8, [
|
|
885
|
+
"to",
|
|
886
|
+
"disabled",
|
|
887
|
+
"defer"
|
|
888
|
+
])) : Ie("v-if", !0);
|
|
889
|
+
}
|
|
890
|
+
}), kt = At;
|
|
891
|
+
export {
|
|
892
|
+
xt as D,
|
|
893
|
+
Bt as F,
|
|
894
|
+
It as P,
|
|
895
|
+
lt as S,
|
|
896
|
+
kt as T,
|
|
897
|
+
pe as a,
|
|
898
|
+
Mt as b,
|
|
899
|
+
Be as c,
|
|
900
|
+
Nt as d,
|
|
901
|
+
ye as e,
|
|
902
|
+
Ft as f,
|
|
903
|
+
I as g,
|
|
904
|
+
F as h,
|
|
905
|
+
ke as i,
|
|
906
|
+
$ as j,
|
|
907
|
+
Ct as k,
|
|
908
|
+
Tt as l,
|
|
909
|
+
je as m,
|
|
910
|
+
de as n,
|
|
911
|
+
Dt as r,
|
|
912
|
+
Lt as u
|
|
913
|
+
};
|