@mobilon-dev/chotto 0.3.98 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
- package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -31
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t } from "vue";
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t, createElementBlock as l, openBlock as r } from "vue";
|
|
2
|
+
const o = { class: "embed-preview" }, c = ["src"], a = ["src"], s = ["src"], m = /* @__PURE__ */ t({
|
|
3
3
|
__name: "EmbedPreview",
|
|
4
4
|
props: {
|
|
5
5
|
embed: {
|
|
@@ -7,12 +7,33 @@ const n = /* @__PURE__ */ t({
|
|
|
7
7
|
required: !0
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
r()
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (u, d) => (r(), l("div", o, [
|
|
12
|
+
e.embed.type == "youtube" ? (r(), l("iframe", {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "embed-preview__player",
|
|
15
|
+
src: e.embed.url,
|
|
16
|
+
title: "YouTube video player",
|
|
17
|
+
frameborder: "0",
|
|
18
|
+
allowfullscreen: ""
|
|
19
|
+
}, null, 8, c)) : e.embed.type == "rutube" ? (r(), l("iframe", {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "embed-preview__player",
|
|
22
|
+
src: e.embed.url,
|
|
23
|
+
title: "YouTube video player",
|
|
24
|
+
frameborder: "0",
|
|
25
|
+
allow: "clipboard-write; autoplay",
|
|
26
|
+
webkitAllowFullScreen: "",
|
|
27
|
+
mozallowfullscreen: "",
|
|
28
|
+
allowFullScreen: ""
|
|
29
|
+
}, null, 8, a)) : (r(), l("iframe", {
|
|
30
|
+
key: 2,
|
|
31
|
+
class: "embed-preview__player",
|
|
32
|
+
src: e.embed.url
|
|
33
|
+
}, null, 8, s))
|
|
34
|
+
]));
|
|
14
35
|
}
|
|
15
36
|
});
|
|
16
37
|
export {
|
|
17
|
-
|
|
38
|
+
m as default
|
|
18
39
|
};
|
|
@@ -1,24 +1,40 @@
|
|
|
1
|
-
import c from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
1
|
+
import { defineComponent as f, inject as j, computed as m, createElementBlock as c, unref as g, openBlock as p, toDisplayString as d } from "vue";
|
|
2
|
+
import "../../../hooks/useMessageDraft.js";
|
|
3
|
+
import "../../../hooks/useSearchModel.js";
|
|
4
|
+
import "../../../hooks/useTheme.js";
|
|
5
|
+
import { useEmojiNative as h } from "../../../hooks/useEmojiNative.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
import "../../../locale/useLocale.js";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
11
|
+
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
12
|
+
import "../../../functions/parseMarkdown.js";
|
|
13
|
+
import { getAppleEmojiUrl as k, getAppleEmojiFallbackUrl as E } from "../../../functions/renderAppleEmojis.js";
|
|
14
|
+
const _ = ["src", "alt"], y = { key: 1 }, G = /* @__PURE__ */ f({
|
|
15
|
+
__name: "EmojiGlyph",
|
|
16
|
+
props: {
|
|
17
|
+
emoji: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: !0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(t) {
|
|
23
|
+
const r = t, n = j("chatAppId", ""), { isNative: a } = h(n), s = m(() => k(r.emoji)), l = m(() => E(r.emoji));
|
|
24
|
+
function u(i) {
|
|
25
|
+
const o = i.target, e = l.value;
|
|
26
|
+
e && o.src !== e && (o.src = e);
|
|
27
|
+
}
|
|
28
|
+
return (i, o) => g(a) ? (p(), c("span", y, d(t.emoji), 1)) : (p(), c("img", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "chotto-emoji",
|
|
31
|
+
src: s.value,
|
|
32
|
+
alt: t.emoji,
|
|
33
|
+
draggable: "false",
|
|
34
|
+
onError: u
|
|
35
|
+
}, null, 40, _));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
22
38
|
export {
|
|
23
|
-
|
|
39
|
+
G as default
|
|
24
40
|
};
|
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../../hooks/useMessageDraft.js";
|
|
3
|
-
import "../../../hooks/useSearchModel.js";
|
|
4
|
-
import "../../../hooks/useTheme.js";
|
|
5
|
-
import { useEmojiNative as j } from "../../../hooks/useEmojiNative.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
import "../../../locale/useLocale.js";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
11
|
-
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
12
|
-
import "../../../functions/parseMarkdown.js";
|
|
13
|
-
import { getAppleEmojiUrl as d, getAppleEmojiFallbackUrl as g } from "../../../functions/renderAppleEmojis.js";
|
|
14
|
-
const C = /* @__PURE__ */ f({
|
|
15
|
-
__name: "EmojiGlyph",
|
|
16
|
-
props: {
|
|
17
|
-
emoji: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: !0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(c, { expose: n }) {
|
|
23
|
-
n();
|
|
24
|
-
const t = c, r = _("chatAppId", ""), { isNative: s } = j(r), a = m(() => d(t.emoji)), e = m(() => g(t.emoji));
|
|
25
|
-
function l(u) {
|
|
26
|
-
const i = u.target, o = e.value;
|
|
27
|
-
o && i.src !== o && (i.src = o);
|
|
28
|
-
}
|
|
29
|
-
const p = { props: t, chatAppId: r, isNative: s, src: a, fallbackSrc: e, onImgError: l };
|
|
30
|
-
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
1
|
+
import f from "./EmojiGlyph.vue.js";
|
|
33
2
|
export {
|
|
34
|
-
|
|
3
|
+
f as default
|
|
35
4
|
};
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as n, openBlock as o, createElementVNode as i, toDisplayString as t } from "vue";
|
|
1
|
+
import o from "./LinkPreview.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function k(p, m, e, w, f, h) {
|
|
7
|
-
return o(), n("div", c, [
|
|
8
|
-
i("div", _, [
|
|
9
|
-
i("a", {
|
|
10
|
-
class: "link-preview__link-container",
|
|
11
|
-
href: e.linkPreview.url,
|
|
12
|
-
target: "_blank"
|
|
13
|
-
}, [
|
|
14
|
-
i(
|
|
15
|
-
"p",
|
|
16
|
-
a,
|
|
17
|
-
t(e.linkPreview.title),
|
|
18
|
-
1
|
|
19
|
-
/* TEXT */
|
|
20
|
-
),
|
|
21
|
-
i(
|
|
22
|
-
"p",
|
|
23
|
-
v,
|
|
24
|
-
t(e.linkPreview.description),
|
|
25
|
-
1
|
|
26
|
-
/* TEXT */
|
|
27
|
-
),
|
|
28
|
-
i("img", {
|
|
29
|
-
class: "link-preview__image",
|
|
30
|
-
src: e.linkPreview.imageUrl,
|
|
31
|
-
alt: e.linkPreview.title
|
|
32
|
-
}, null, 8, d)
|
|
33
|
-
], 8, l)
|
|
34
|
-
])
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
const L = /* @__PURE__ */ s(r, [["render", k], ["__scopeId", "data-v-81eeb7f4"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/LinkPreview/LinkPreview.vue"]]);
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e9834d72"]]);
|
|
38
5
|
export {
|
|
39
|
-
|
|
6
|
+
m as default
|
|
40
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t } from "vue";
|
|
2
|
-
const _ = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as n, createElementBlock as l, openBlock as r, createElementVNode as i, toDisplayString as t } from "vue";
|
|
2
|
+
const s = { class: "link-preview" }, c = { class: "link-preview__container" }, o = ["href"], a = { class: "link-preview__title" }, _ = { class: "link-preview__description" }, k = ["src", "alt"], p = /* @__PURE__ */ n({
|
|
3
3
|
__name: "LinkPreview",
|
|
4
4
|
props: {
|
|
5
5
|
linkPreview: {
|
|
@@ -7,12 +7,26 @@ const _ = /* @__PURE__ */ t({
|
|
|
7
7
|
required: !0
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
r()
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (v, d) => (r(), l("div", s, [
|
|
12
|
+
i("div", c, [
|
|
13
|
+
i("a", {
|
|
14
|
+
class: "link-preview__link-container",
|
|
15
|
+
href: e.linkPreview.url,
|
|
16
|
+
target: "_blank"
|
|
17
|
+
}, [
|
|
18
|
+
i("p", a, t(e.linkPreview.title), 1),
|
|
19
|
+
i("p", _, t(e.linkPreview.description), 1),
|
|
20
|
+
i("img", {
|
|
21
|
+
class: "link-preview__image",
|
|
22
|
+
src: e.linkPreview.imageUrl,
|
|
23
|
+
alt: e.linkPreview.title
|
|
24
|
+
}, null, 8, k)
|
|
25
|
+
], 8, o)
|
|
26
|
+
])
|
|
27
|
+
]));
|
|
14
28
|
}
|
|
15
29
|
});
|
|
16
30
|
export {
|
|
17
|
-
|
|
31
|
+
p as default
|
|
18
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as o, createElementBlock as i, createCommentVNode as l, openBlock as r, normalizeClass as d, createStaticVNode as c } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const v = {
|
|
3
|
+
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = ["width", "height"], v = {
|
|
5
5
|
__name: "LoadingIndicator",
|
|
6
6
|
props: {
|
|
7
7
|
isLoading: {
|
|
@@ -11,46 +11,35 @@ const v = {
|
|
|
11
11
|
size: {
|
|
12
12
|
type: String,
|
|
13
13
|
default: "normal",
|
|
14
|
-
validator: (
|
|
14
|
+
validator: (t) => ["normal", "small"].includes(t)
|
|
15
15
|
},
|
|
16
16
|
position: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: "center",
|
|
19
|
-
validator: (
|
|
19
|
+
validator: (t) => ["center", "top"].includes(t)
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
26
|
-
}
|
|
27
|
-
}, f = ["width", "height"];
|
|
28
|
-
function u(a, e, t, o, s, r) {
|
|
29
|
-
return t.isLoading ? (n(), c(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
22
|
+
setup(t) {
|
|
23
|
+
const a = t, s = o(() => a.size === "small" ? "36px" : "120px"), n = o(() => a.size === "small" ? "35px" : "116px");
|
|
24
|
+
return (x, e) => t.isLoading ? (r(), i("div", {
|
|
32
25
|
key: 0,
|
|
33
|
-
class:
|
|
26
|
+
class: d([
|
|
34
27
|
"loading-indicator",
|
|
35
28
|
{ "loading-indicator--small": t.size === "small" }
|
|
36
29
|
])
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
height: o.svgHeight,
|
|
30
|
+
}, [
|
|
31
|
+
(r(), i("svg", {
|
|
32
|
+
width: s.value,
|
|
33
|
+
height: n.value,
|
|
42
34
|
viewBox: "-8 -8 120 116",
|
|
43
35
|
fill: "none",
|
|
44
36
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45
37
|
}, [...e[0] || (e[0] = [
|
|
46
|
-
|
|
47
|
-
])], 8,
|
|
48
|
-
],
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)) : d("v-if", !0);
|
|
52
|
-
}
|
|
53
|
-
const y = /* @__PURE__ */ _(v, [["render", u], ["__scopeId", "data-v-894a78ac"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/LoadingIndicator/LoadingIndicator.vue"]]);
|
|
38
|
+
c('<circle class="dot dot-1" cx="84.71" cy="43.91" r="12.18" stroke="url(#paint0_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-2" cx="73.05" cy="82.12" r="12.18" stroke="url(#paint1_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-3" cx="32.24" cy="82.12" r="12.18" stroke="url(#paint2_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-4" cx="19.29" cy="43.91" r="12.18" stroke="url(#paint3_linear_10781_5111)" data-v-53892888></circle><circle class="dot dot-5" cx="52.76" cy="19.29" r="12.18" stroke="url(#paint4_linear_10781_5111)" data-v-53892888></circle><defs data-v-53892888><linearGradient id="paint0_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint1_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint2_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint3_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient><linearGradient id="paint4_linear_10781_5111" x1="18.12" y1="10.7" x2="85.37" y2="100" gradientUnits="userSpaceOnUse" data-v-53892888><stop stop-color="#426CFF" data-v-53892888></stop><stop offset="1" stop-color="#734AFD" data-v-53892888></stop></linearGradient></defs>', 6)
|
|
39
|
+
])], 8, _))
|
|
40
|
+
], 2)) : l("", !0);
|
|
41
|
+
}
|
|
42
|
+
}, m = /* @__PURE__ */ p(v, [["__scopeId", "data-v-53892888"]]);
|
|
54
43
|
export {
|
|
55
|
-
|
|
44
|
+
m as default
|
|
56
45
|
};
|
|
@@ -1,73 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as t, openBlock as o, Fragment as r, createElementVNode as d, createBlock as c, renderSlot as a, Teleport as m, createVNode as h, Transition as p, withCtx as _, createCommentVNode as f, renderList as v, normalizeStyle as T, normalizeClass as y, createTextVNode as g, toDisplayString as u } from "vue";
|
|
1
|
+
import o from "./Tooltip.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function B(l, E, M, e, N, V) {
|
|
7
|
-
return o(), t(
|
|
8
|
-
r,
|
|
9
|
-
null,
|
|
10
|
-
[
|
|
11
|
-
d(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
ref: "container",
|
|
15
|
-
class: "tooltip-wrapper",
|
|
16
|
-
onMouseenter: e.handleTriggerEnter,
|
|
17
|
-
onMouseleave: e.handleTriggerLeave
|
|
18
|
-
},
|
|
19
|
-
[
|
|
20
|
-
a(l.$slots, "default", {}, void 0, !0)
|
|
21
|
-
],
|
|
22
|
-
544
|
|
23
|
-
/* NEED_HYDRATION, NEED_PATCH */
|
|
24
|
-
),
|
|
25
|
-
(o(), c(m, { to: "body" }, [
|
|
26
|
-
h(p, null, {
|
|
27
|
-
default: _(() => [
|
|
28
|
-
e.show && e.hasTooltipBody ? (o(), t("div", C, [
|
|
29
|
-
(o(!0), t(
|
|
30
|
-
r,
|
|
31
|
-
null,
|
|
32
|
-
v(e.displayItems, (n, i) => (o(), t("span", {
|
|
33
|
-
key: `${n}-${i}`,
|
|
34
|
-
ref_for: !0,
|
|
35
|
-
ref: "tooltipItems",
|
|
36
|
-
"data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
|
|
37
|
-
class: y(e.tooltipClasses),
|
|
38
|
-
style: T(e.tooltipStyle),
|
|
39
|
-
onMouseenter: e.handleTooltipEnter,
|
|
40
|
-
onMouseleave: e.handleTooltipLeave
|
|
41
|
-
}, [
|
|
42
|
-
e.hasContentSlot ? a(l.$slots, "content", { key: 0 }, void 0, !0) : (o(), t(
|
|
43
|
-
r,
|
|
44
|
-
{ key: 1 },
|
|
45
|
-
[
|
|
46
|
-
g(
|
|
47
|
-
u(n),
|
|
48
|
-
1
|
|
49
|
-
/* TEXT */
|
|
50
|
-
)
|
|
51
|
-
],
|
|
52
|
-
64
|
|
53
|
-
/* STABLE_FRAGMENT */
|
|
54
|
-
))
|
|
55
|
-
], 46, S))),
|
|
56
|
-
128
|
|
57
|
-
/* KEYED_FRAGMENT */
|
|
58
|
-
))
|
|
59
|
-
])) : f("v-if", !0)
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
/* FORWARDED */
|
|
63
|
-
})
|
|
64
|
-
]))
|
|
65
|
-
],
|
|
66
|
-
64
|
|
67
|
-
/* STABLE_FRAGMENT */
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
const z = /* @__PURE__ */ k(s, [["render", B], ["__scopeId", "data-v-01043e04"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/Tooltip/Tooltip.vue"]]);
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11bc5009"]]);
|
|
71
5
|
export {
|
|
72
|
-
|
|
6
|
+
_ as default
|
|
73
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as nt, inject as ut, useSlots as ft, ref as u, computed as s, onMounted as st, onUnmounted as ct, createElementBlock as m, openBlock as c, Fragment as C, createElementVNode as mt, createBlock as ht, renderSlot as W, Teleport as pt, createVNode as vt, Transition as gt, withCtx as dt, createCommentVNode as Tt, renderList as yt, normalizeStyle as wt, normalizeClass as xt, unref as M, createTextVNode as _t, toDisplayString as St, nextTick as L } from "vue";
|
|
2
2
|
import "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as kt } from "../../../hooks/useTheme.js";
|
|
5
5
|
import "../../../hooks/useEmojiNative.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
@@ -10,7 +10,7 @@ import "../../../locale/useLocale.js";
|
|
|
10
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
11
11
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
12
12
|
import "../../../functions/parseMarkdown.js";
|
|
13
|
-
const
|
|
13
|
+
const Ct = { key: 0 }, Mt = ["data-theme"], Lt = 6, At = 120, qt = /* @__PURE__ */ nt({
|
|
14
14
|
__name: "Tooltip",
|
|
15
15
|
props: {
|
|
16
16
|
text: {
|
|
@@ -56,121 +56,153 @@ const j = 6, H = 120, At = /* @__PURE__ */ rt({
|
|
|
56
56
|
default: () => ({})
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
59
|
+
setup(R, { expose: V }) {
|
|
60
|
+
const y = ut("chatAppId"), { getTheme: A } = kt(y), H = ft(), w = u(), h = u([]), f = u(!1), p = u(null), n = u(null), r = u(null), v = u(!1), g = u(!1), e = R, x = s(() => typeof H.content == "function"), j = s(() => ({
|
|
61
61
|
tooltip__text: !0,
|
|
62
62
|
[`tooltip--${e.position}`]: !0
|
|
63
|
-
})),
|
|
63
|
+
})), q = s(() => ({
|
|
64
64
|
maxWidth: e.maxWidth || void 0,
|
|
65
65
|
...e.bubbleStyle
|
|
66
|
-
})),
|
|
66
|
+
})), E = s(() => {
|
|
67
67
|
const t = Array.isArray(e.texts) ? e.texts.map((o) => String(o ?? "").trim()).filter(Boolean) : [];
|
|
68
68
|
return t.length > 0 ? t : e.text ? [e.text] : [];
|
|
69
|
-
}),
|
|
70
|
-
const
|
|
69
|
+
}), z = s(() => x.value ? ["__content__"] : E.value), F = s(() => x.value ? !0 : E.value.length > 0), G = (t, o) => {
|
|
70
|
+
const l = o.left < 0 ? o.left : 0, i = o.top < 0 ? o.top : 0;
|
|
71
71
|
return {
|
|
72
72
|
left: {
|
|
73
|
-
top: t.top - (o.height - t.height) / 2 -
|
|
74
|
-
left: t.left - o.width -
|
|
73
|
+
top: t.top - (o.height - t.height) / 2 - i,
|
|
74
|
+
left: t.left - o.width - l - e.offset
|
|
75
75
|
},
|
|
76
76
|
right: {
|
|
77
|
-
top: t.top - (o.height - t.height) / 2 -
|
|
78
|
-
left: t.left + t.width -
|
|
77
|
+
top: t.top - (o.height - t.height) / 2 - i,
|
|
78
|
+
left: t.left + t.width - l + e.offset
|
|
79
79
|
},
|
|
80
80
|
bottom: {
|
|
81
|
-
top: t.bottom -
|
|
82
|
-
left: t.left -
|
|
81
|
+
top: t.bottom - i + e.offset,
|
|
82
|
+
left: t.left - l
|
|
83
83
|
},
|
|
84
84
|
"bottom-center": {
|
|
85
|
-
top: t.bottom -
|
|
86
|
-
left: t.left + t.width / 2 - o.width / 2 -
|
|
85
|
+
top: t.bottom - i + e.offset,
|
|
86
|
+
left: t.left + t.width / 2 - o.width / 2 - l
|
|
87
87
|
},
|
|
88
88
|
top: {
|
|
89
|
-
top: t.top - o.height - e.offset -
|
|
90
|
-
left: t.left -
|
|
89
|
+
top: t.top - o.height - e.offset - i,
|
|
90
|
+
left: t.left - l
|
|
91
91
|
},
|
|
92
92
|
"top-center": {
|
|
93
|
-
top: t.top - o.height - e.offset -
|
|
94
|
-
left: t.left + t.width / 2 - o.width / 2 -
|
|
93
|
+
top: t.top - o.height - e.offset - i,
|
|
94
|
+
left: t.left + t.width / 2 - o.width / 2 - l
|
|
95
95
|
},
|
|
96
96
|
"top-left": {
|
|
97
|
-
top: t.top - o.height - e.offset -
|
|
98
|
-
left: t.left + t.width - o.width -
|
|
97
|
+
top: t.top - o.height - e.offset - i,
|
|
98
|
+
left: t.left + t.width - o.width - l
|
|
99
99
|
},
|
|
100
100
|
"top-right": {
|
|
101
|
-
top: t.top - o.height - e.offset -
|
|
102
|
-
left: t.left -
|
|
101
|
+
top: t.top - o.height - e.offset - i,
|
|
102
|
+
left: t.left - l
|
|
103
103
|
},
|
|
104
104
|
"bottom-left": {
|
|
105
|
-
top: t.bottom -
|
|
106
|
-
left: t.left + t.width - o.width -
|
|
105
|
+
top: t.bottom - i + e.offset,
|
|
106
|
+
left: t.left + t.width - o.width - l
|
|
107
107
|
},
|
|
108
108
|
"bottom-right": {
|
|
109
|
-
top: t.bottom -
|
|
110
|
-
left: t.left -
|
|
109
|
+
top: t.bottom - i + e.offset,
|
|
110
|
+
left: t.left - l
|
|
111
111
|
}
|
|
112
112
|
}[e.position];
|
|
113
|
-
}, _ = () => {
|
|
114
|
-
if (!y.value || g.value.length === 0) return;
|
|
115
|
-
const t = y.value.getBoundingClientRect(), o = e.position.startsWith("top"), i = 8, r = v ? document.getElementById(v) : null, a = r == null ? void 0 : r.getBoundingClientRect(), J = (a == null ? void 0 : a.top) ?? 0, Q = (a == null ? void 0 : a.left) ?? 0, V = (a == null ? void 0 : a.right) ?? window.innerWidth, Z = (a == null ? void 0 : a.bottom) ?? window.innerHeight;
|
|
116
|
-
g.value.forEach((C, B) => {
|
|
117
|
-
const d = C.getBoundingClientRect(), L = O(t, d), k = B * (d.height + j), tt = o ? L.top - k : L.top + k, W = J + i, et = Z - d.height - i, R = Q + i, ot = V - d.width - i, lt = Math.min(Math.max(tt, W), Math.max(W, et)), it = Math.min(Math.max(L.left, R), Math.max(R, ot));
|
|
118
|
-
C.style.top = `${lt}px`, C.style.left = `${it}px`;
|
|
119
|
-
});
|
|
120
113
|
}, D = () => {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if (!w.value || h.value.length === 0) return;
|
|
115
|
+
const t = w.value.getBoundingClientRect(), o = e.position.startsWith("top"), l = 8, i = y ? document.getElementById(y) : null, a = i == null ? void 0 : i.getBoundingClientRect(), Z = (a == null ? void 0 : a.top) ?? 0, b = (a == null ? void 0 : a.left) ?? 0, B = (a == null ? void 0 : a.right) ?? window.innerWidth, tt = (a == null ? void 0 : a.bottom) ?? window.innerHeight;
|
|
116
|
+
h.value.forEach((S, et) => {
|
|
117
|
+
const T = S.getBoundingClientRect(), k = G(t, T), O = et * (T.height + Lt), ot = o ? k.top - O : k.top + O, $ = Z + l, lt = tt - T.height - l, P = b + l, it = B - T.width - l, rt = Math.min(Math.max(ot, $), Math.max($, lt)), at = Math.min(Math.max(k.left, P), Math.max(P, it));
|
|
118
|
+
S.style.top = `${rt}px`, S.style.left = `${at}px`;
|
|
119
|
+
});
|
|
120
|
+
}, K = () => {
|
|
121
|
+
e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), r.value && (clearTimeout(r.value), r.value = null), n.value = setTimeout(() => {
|
|
122
|
+
f.value = !0, L(() => {
|
|
123
|
+
D();
|
|
124
124
|
}), n.value = null;
|
|
125
125
|
}, e.delay));
|
|
126
|
-
},
|
|
127
|
-
e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null),
|
|
128
|
-
|
|
126
|
+
}, _ = () => {
|
|
127
|
+
e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), r.value && (clearTimeout(r.value), r.value = null), f.value = !1, L(() => {
|
|
128
|
+
M(h).forEach((o) => {
|
|
129
129
|
o.style.top = "0", o.style.left = "0";
|
|
130
130
|
});
|
|
131
131
|
}));
|
|
132
|
-
},
|
|
133
|
-
e.trigger !== "auto" && (
|
|
134
|
-
!
|
|
135
|
-
},
|
|
132
|
+
}, I = () => {
|
|
133
|
+
e.trigger !== "auto" && (r.value && clearTimeout(r.value), r.value = setTimeout(() => {
|
|
134
|
+
!v.value && !g.value && _();
|
|
135
|
+
}, At));
|
|
136
|
+
}, U = () => {
|
|
137
|
+
v.value = !0, K();
|
|
138
|
+
}, X = () => {
|
|
139
|
+
v.value = !1, I();
|
|
136
140
|
}, Y = () => {
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
h.value = !0, l.value && (clearTimeout(l.value), l.value = null);
|
|
142
|
-
}, F = () => {
|
|
143
|
-
h.value = !1, S();
|
|
144
|
-
}, A = () => {
|
|
141
|
+
g.value = !0, r.value && (clearTimeout(r.value), r.value = null);
|
|
142
|
+
}, J = () => {
|
|
143
|
+
g.value = !1, I();
|
|
144
|
+
}, N = () => {
|
|
145
145
|
if (e.hideOnClick) {
|
|
146
|
-
if (
|
|
147
|
-
|
|
146
|
+
if (v.value = !1, g.value = !1, e.trigger === "auto") {
|
|
147
|
+
d(), f.value = !1;
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
T();
|
|
151
|
-
}
|
|
152
|
-
}, P = () => {
|
|
153
|
-
m(), u.value = !0, M(() => {
|
|
154
150
|
_();
|
|
155
|
-
}
|
|
156
|
-
|
|
151
|
+
}
|
|
152
|
+
}, Q = () => {
|
|
153
|
+
d(), f.value = !0, L(() => {
|
|
154
|
+
D();
|
|
155
|
+
}), e.autoShowDuration > 0 && (p.value = setTimeout(() => {
|
|
156
|
+
f.value = !1;
|
|
157
157
|
}, e.autoShowDuration));
|
|
158
|
-
},
|
|
159
|
-
|
|
158
|
+
}, d = () => {
|
|
159
|
+
p.value && (clearTimeout(p.value), p.value = null);
|
|
160
160
|
};
|
|
161
|
-
|
|
162
|
-
e.hideOnClick && document.addEventListener("mousedown",
|
|
163
|
-
}),
|
|
164
|
-
e.hideOnClick && document.removeEventListener("mousedown",
|
|
165
|
-
}),
|
|
166
|
-
startAutoShow:
|
|
167
|
-
clearAutoTimer:
|
|
168
|
-
hide:
|
|
169
|
-
})
|
|
170
|
-
|
|
171
|
-
|
|
161
|
+
return st(() => {
|
|
162
|
+
e.hideOnClick && document.addEventListener("mousedown", N, !0);
|
|
163
|
+
}), ct(() => {
|
|
164
|
+
e.hideOnClick && document.removeEventListener("mousedown", N, !0), n.value && clearTimeout(n.value), r.value && clearTimeout(r.value), d();
|
|
165
|
+
}), V({
|
|
166
|
+
startAutoShow: Q,
|
|
167
|
+
clearAutoTimer: d,
|
|
168
|
+
hide: _
|
|
169
|
+
}), (t, o) => (c(), m(C, null, [
|
|
170
|
+
mt("div", {
|
|
171
|
+
ref_key: "container",
|
|
172
|
+
ref: w,
|
|
173
|
+
class: "tooltip-wrapper",
|
|
174
|
+
onMouseenter: U,
|
|
175
|
+
onMouseleave: X
|
|
176
|
+
}, [
|
|
177
|
+
W(t.$slots, "default", {}, void 0, !0)
|
|
178
|
+
], 544),
|
|
179
|
+
(c(), ht(pt, { to: "body" }, [
|
|
180
|
+
vt(gt, null, {
|
|
181
|
+
default: dt(() => [
|
|
182
|
+
f.value && F.value ? (c(), m("div", Ct, [
|
|
183
|
+
(c(!0), m(C, null, yt(z.value, (l, i) => (c(), m("span", {
|
|
184
|
+
key: `${l}-${i}`,
|
|
185
|
+
ref_for: !0,
|
|
186
|
+
ref_key: "tooltipItems",
|
|
187
|
+
ref: h,
|
|
188
|
+
"data-theme": M(A)().theme ? M(A)().theme : "light",
|
|
189
|
+
class: xt(j.value),
|
|
190
|
+
style: wt(q.value),
|
|
191
|
+
onMouseenter: Y,
|
|
192
|
+
onMouseleave: J
|
|
193
|
+
}, [
|
|
194
|
+
x.value ? W(t.$slots, "content", { key: 0 }, void 0, !0) : (c(), m(C, { key: 1 }, [
|
|
195
|
+
_t(St(l), 1)
|
|
196
|
+
], 64))
|
|
197
|
+
], 46, Mt))), 128))
|
|
198
|
+
])) : Tt("", !0)
|
|
199
|
+
]),
|
|
200
|
+
_: 3
|
|
201
|
+
})
|
|
202
|
+
]))
|
|
203
|
+
], 64));
|
|
172
204
|
}
|
|
173
205
|
});
|
|
174
206
|
export {
|
|
175
|
-
|
|
207
|
+
qt as default
|
|
176
208
|
};
|