@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,32 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as c, openBlock as t, createElementVNode as a, createBlock as i, renderSlot as d, Teleport as l, createVNode as h } from "vue";
|
|
1
|
+
import t from "./ButtonContextMenu.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function u(o, _, n, e, f, v) {
|
|
7
|
-
return t(), c("button", {
|
|
8
|
-
id: "container-" + e.buttonContextMenuId + e.chatAppId,
|
|
9
|
-
ref: "actionScope",
|
|
10
|
-
style: { position: "relative", width: "fit-content", border: "none", background: "transparent", height: "fit-content" },
|
|
11
|
-
onMouseenter: e.hover,
|
|
12
|
-
onMouseleave: e.hoverOut
|
|
13
|
-
}, [
|
|
14
|
-
a("div", { onClick: e.toggle }, [
|
|
15
|
-
d(o.$slots, "default", {}, void 0, !0)
|
|
16
|
-
]),
|
|
17
|
-
(t(), i(l, { to: "body" }, [
|
|
18
|
-
h(e.ContextMenu, {
|
|
19
|
-
id: "context-menu-" + e.buttonContextMenuId + e.chatAppId,
|
|
20
|
-
actions: n.actions,
|
|
21
|
-
"data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
|
|
22
|
-
onMouseenter: e.hoverCM,
|
|
23
|
-
onMouseleave: e.hoverOutCM,
|
|
24
|
-
onClick: e.click
|
|
25
|
-
}, null, 8, ["id", "actions", "data-theme"])
|
|
26
|
-
]))
|
|
27
|
-
], 40, s);
|
|
28
|
-
}
|
|
29
|
-
const g = /* @__PURE__ */ m(r, [["render", u], ["__scopeId", "data-v-0c9e040c"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue"]]);
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4c932a06"]]);
|
|
30
5
|
export {
|
|
31
|
-
|
|
6
|
+
m as default
|
|
32
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as _, inject as I, useId as q, ref as m, onMounted as L, nextTick as y, onUnmounted as O, createElementBlock as T, openBlock as k, unref as c, createElementVNode as A, createBlock as N, renderSlot as R, Teleport as V, createVNode as j } from "vue";
|
|
2
|
+
import P from "../ContextMenu/ContextMenu.vue.js";
|
|
3
3
|
import "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
|
-
import { useTheme as
|
|
5
|
+
import { useTheme as U } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "../../../hooks/useEmojiNative.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
@@ -11,7 +11,7 @@ import "../../../locale/useLocale.js";
|
|
|
11
11
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
12
12
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
13
13
|
import "../../../functions/parseMarkdown.js";
|
|
14
|
-
const
|
|
14
|
+
const $ = ["id"], te = /* @__PURE__ */ _({
|
|
15
15
|
__name: "ButtonContextMenu",
|
|
16
16
|
props: {
|
|
17
17
|
actions: {
|
|
@@ -35,58 +35,77 @@ const Q = /* @__PURE__ */ B({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
l(),
|
|
41
|
-
}, b = () => {
|
|
42
|
-
i.disabled || (i.mode == "click" && !c.value ? p() : i.mode == "click" && c.value && l(), s("buttonClick"));
|
|
38
|
+
setup(f, { expose: M, emit: C }) {
|
|
39
|
+
const s = I("chatAppId"), { getTheme: h } = U(s), i = f, p = q(), d = C, n = m(), r = m(), a = m(!1), b = (t) => {
|
|
40
|
+
l(), d("click", t);
|
|
43
41
|
}, x = () => {
|
|
44
|
-
i.disabled || i.mode == "
|
|
45
|
-
}, _ = () => {
|
|
46
|
-
i.disabled || i.mode == "hover" && l();
|
|
42
|
+
i.disabled || (i.mode == "click" && !a.value ? u() : i.mode == "click" && a.value && l(), d("buttonClick"));
|
|
47
43
|
}, w = () => {
|
|
48
|
-
|
|
44
|
+
i.disabled || i.mode == "hover" && u();
|
|
45
|
+
}, B = () => {
|
|
46
|
+
i.disabled || i.mode == "hover" && l();
|
|
49
47
|
}, S = () => {
|
|
50
|
-
|
|
51
|
-
},
|
|
48
|
+
d("menuMouseEnter"), i.disabled || i.mode == "hover" && u();
|
|
49
|
+
}, E = () => {
|
|
50
|
+
d("menuMouseLeave"), i.disabled || i.mode == "hover" && l();
|
|
51
|
+
}, u = () => {
|
|
52
52
|
if (r.value && n.value) {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
left: { top: e.top - (
|
|
59
|
-
right: { top: e.top - (
|
|
60
|
-
bottom: { top: (e == null ? void 0 : e.bottom) -
|
|
61
|
-
top: { top: e.top -
|
|
62
|
-
"top-right": { top: e.top -
|
|
63
|
-
"bottom-right": { top: e.bottom, left: e.right -
|
|
53
|
+
const t = n.value, e = r.value.getBoundingClientRect();
|
|
54
|
+
t.style.display = "inherit";
|
|
55
|
+
const o = n.value.getBoundingClientRect();
|
|
56
|
+
t.style.display = "none", y(() => {
|
|
57
|
+
const g = {
|
|
58
|
+
left: { top: e.top - (o.height - e.height) / 2 - o.top, left: e.left - o.width - o.left },
|
|
59
|
+
right: { top: e.top - (o.height - e.height) / 2 - o.top, left: e.left + e.width - o.left },
|
|
60
|
+
bottom: { top: (e == null ? void 0 : e.bottom) - o.top, left: (e == null ? void 0 : e.left) - (o.width - e.width) / 2 - o.left },
|
|
61
|
+
top: { top: e.top - o.height - o.top, left: (e == null ? void 0 : e.left) - (o.width - e.width) / 2 - o.left },
|
|
62
|
+
"top-right": { top: e.top - o.height, left: e.right - o.width / 2 },
|
|
63
|
+
"bottom-right": { top: e.bottom, left: e.right - o.width }
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
t.style.top = g[i.menuSide].top + "px", t.style.left = g[i.menuSide].left + "px", t.style.opacity = "1", t.style.display = "inherit", a.value = !0;
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}, l = () => {
|
|
69
69
|
if (n.value) {
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const t = n.value;
|
|
71
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none", a.value = !1);
|
|
72
72
|
}
|
|
73
|
-
},
|
|
74
|
-
i.mode == "click" && r.value && !r.value.contains(
|
|
73
|
+
}, v = (t) => {
|
|
74
|
+
i.mode == "click" && r.value && !r.value.contains(t.target) && l();
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
n.value = document.getElementById("context-menu-" +
|
|
76
|
+
return L(() => {
|
|
77
|
+
y(() => {
|
|
78
|
+
n.value = document.getElementById("context-menu-" + p + s), n.value && (l(), document.addEventListener("click", v));
|
|
79
79
|
});
|
|
80
|
-
}),
|
|
81
|
-
document.removeEventListener("click",
|
|
82
|
-
}),
|
|
83
|
-
updatePosition:
|
|
80
|
+
}), O(() => {
|
|
81
|
+
document.removeEventListener("click", v);
|
|
82
|
+
}), M({
|
|
83
|
+
updatePosition: u,
|
|
84
84
|
hideMenu: l
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
}), (t, e) => (k(), T("button", {
|
|
86
|
+
id: "container-" + c(p) + c(s),
|
|
87
|
+
ref_key: "actionScope",
|
|
88
|
+
ref: r,
|
|
89
|
+
style: { position: "relative", width: "fit-content", border: "none", background: "transparent", height: "fit-content" },
|
|
90
|
+
onMouseenter: w,
|
|
91
|
+
onMouseleave: B
|
|
92
|
+
}, [
|
|
93
|
+
A("div", { onClick: x }, [
|
|
94
|
+
R(t.$slots, "default", {}, void 0, !0)
|
|
95
|
+
]),
|
|
96
|
+
(k(), N(V, { to: "body" }, [
|
|
97
|
+
j(P, {
|
|
98
|
+
id: "context-menu-" + c(p) + c(s),
|
|
99
|
+
actions: f.actions,
|
|
100
|
+
"data-theme": c(h)().theme ? c(h)().theme : "light",
|
|
101
|
+
onMouseenter: S,
|
|
102
|
+
onMouseleave: E,
|
|
103
|
+
onClick: b
|
|
104
|
+
}, null, 8, ["id", "actions", "data-theme"])
|
|
105
|
+
]))
|
|
106
|
+
], 40, $));
|
|
88
107
|
}
|
|
89
108
|
});
|
|
90
109
|
export {
|
|
91
|
-
|
|
110
|
+
te as default
|
|
92
111
|
};
|
|
@@ -1,50 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as i, openBlock as o, createElementVNode as e, normalizeClass as n, createBlock as c, createVNode as m, Teleport as _, createCommentVNode as s } from "vue";
|
|
1
|
+
import t from "./ContactContextMenu.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function x(C, M, a, t, u, v) {
|
|
7
|
-
return o(), i("div", l, [
|
|
8
|
-
e("button", {
|
|
9
|
-
id: "container-" + t.contextMenuId + t.extChatAppId,
|
|
10
|
-
ref: "actionScope",
|
|
11
|
-
class: n([
|
|
12
|
-
"contact-context-menu__button",
|
|
13
|
-
{ "contact-context-menu__button--no-actions": !t.hasActions }
|
|
14
|
-
]),
|
|
15
|
-
onMouseenter: t.hover,
|
|
16
|
-
onMouseleave: t.hoverOut,
|
|
17
|
-
onClick: t.toggle
|
|
18
|
-
}, [
|
|
19
|
-
e(
|
|
20
|
-
"span",
|
|
21
|
-
{
|
|
22
|
-
class: n([
|
|
23
|
-
"contact-context-menu__icon",
|
|
24
|
-
{ "contact-context-menu__icon--no-actions": !t.hasActions }
|
|
25
|
-
])
|
|
26
|
-
},
|
|
27
|
-
[
|
|
28
|
-
m(t.MenuIcon)
|
|
29
|
-
],
|
|
30
|
-
2
|
|
31
|
-
/* CLASS */
|
|
32
|
-
),
|
|
33
|
-
(o(), c(_, { to: "body" }, [
|
|
34
|
-
t.hasActions ? (o(), c(t.ContextMenu, {
|
|
35
|
-
key: 0,
|
|
36
|
-
id: "context-menu-" + t.contextMenuId + t.extChatAppId,
|
|
37
|
-
actions: a.actions,
|
|
38
|
-
"data-theme": t.getTheme().theme ? t.getTheme().theme : "light",
|
|
39
|
-
onMouseenter: t.hoverCM,
|
|
40
|
-
onMouseleave: t.hoverOutCM,
|
|
41
|
-
onClick: t.click
|
|
42
|
-
}, null, 8, ["id", "actions", "data-theme"])) : s("v-if", !0)
|
|
43
|
-
]))
|
|
44
|
-
], 42, h)
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
const g = /* @__PURE__ */ d(r, [["render", x], ["__scopeId", "data-v-4c04d0a0"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/ContactContextMenu/ContactContextMenu.vue"]]);
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-10e21295"]]);
|
|
48
5
|
export {
|
|
49
|
-
|
|
6
|
+
m as default
|
|
50
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as V, inject as _, useId as R, ref as h, computed as j, onMounted as z, watch as P, onUnmounted as U, createElementBlock as D, openBlock as v, createElementVNode as M, normalizeClass as b, unref as a, createBlock as w, createVNode as F, Teleport as G, createCommentVNode as H, nextTick as A } from "vue";
|
|
2
|
+
import J from "../ContextMenu/ContextMenu.vue.js";
|
|
3
3
|
import "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
|
-
import { useTheme as
|
|
5
|
+
import { useTheme as K } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "../../../hooks/useEmojiNative.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
@@ -11,8 +11,8 @@ import "../../../locale/useLocale.js";
|
|
|
11
11
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
12
12
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
13
13
|
import "../../../functions/parseMarkdown.js";
|
|
14
|
-
import
|
|
15
|
-
const
|
|
14
|
+
import Q from "../../1_icons/MenuIcon.vue.js";
|
|
15
|
+
const W = { class: "contact-context-menu__wrapper" }, X = ["id"], de = /* @__PURE__ */ V({
|
|
16
16
|
__name: "ContactContextMenu",
|
|
17
17
|
props: {
|
|
18
18
|
actions: {
|
|
@@ -36,72 +36,99 @@ const te = /* @__PURE__ */ B({
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
const
|
|
43
|
-
l(),
|
|
44
|
-
}, I = () => {
|
|
45
|
-
!o.disabled && s.value && (o.mode == "click" && !u.value ? d() : o.mode == "click" && u.value && l(), r("buttonClick"));
|
|
46
|
-
}, O = () => {
|
|
47
|
-
!o.disabled && s.value && o.mode == "hover" && d();
|
|
48
|
-
}, S = () => {
|
|
49
|
-
!o.disabled && s.value && o.mode == "hover" && l();
|
|
39
|
+
setup(y, { expose: B, emit: E }) {
|
|
40
|
+
const I = _("chatAppId"), m = _("extChatAppId", ""), { getTheme: g } = K(I), n = y, f = R(), u = E, c = h(null), s = h(), r = h(!1), i = j(() => Array.isArray(n.actions) && n.actions.length > 0);
|
|
41
|
+
let d = !1;
|
|
42
|
+
const S = (t) => {
|
|
43
|
+
l(), u("click", t);
|
|
50
44
|
}, L = () => {
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
45
|
+
!n.disabled && i.value && (n.mode == "click" && !r.value ? p() : n.mode == "click" && r.value && l(), u("buttonClick"));
|
|
46
|
+
}, O = () => {
|
|
47
|
+
!n.disabled && i.value && n.mode == "hover" && p();
|
|
48
|
+
}, q = () => {
|
|
49
|
+
!n.disabled && i.value && n.mode == "hover" && l();
|
|
50
|
+
}, T = () => {
|
|
51
|
+
u("menuMouseEnter"), !n.disabled && i.value && n.mode == "hover" && p();
|
|
52
|
+
}, N = () => {
|
|
53
|
+
u("menuMouseLeave"), !n.disabled && i.value && n.mode == "hover" && l();
|
|
54
|
+
}, p = () => {
|
|
55
|
+
if (i.value && s.value && c.value) {
|
|
56
|
+
const t = c.value, e = s.value.getBoundingClientRect();
|
|
57
57
|
t.style.display = "inherit";
|
|
58
|
-
const
|
|
59
|
-
t.style.display = "none",
|
|
58
|
+
const o = c.value.getBoundingClientRect();
|
|
59
|
+
t.style.display = "none", A(() => {
|
|
60
60
|
const C = {
|
|
61
|
-
left: { top: e.top - (
|
|
62
|
-
right: { top: e.top - (
|
|
63
|
-
bottom: { top: (e == null ? void 0 : e.bottom) -
|
|
64
|
-
top: { top: e.top -
|
|
65
|
-
"top-right": { top: e.top -
|
|
66
|
-
"bottom-left": { top: (e == null ? void 0 : e.bottom) -
|
|
61
|
+
left: { top: e.top - (o.height - e.height) / 2 - o.top, left: e.left - o.width - o.left },
|
|
62
|
+
right: { top: e.top - (o.height - e.height) / 2 - o.top, left: e.left + e.width - o.left },
|
|
63
|
+
bottom: { top: (e == null ? void 0 : e.bottom) - o.top, left: (e == null ? void 0 : e.left) - (o.width - e.width) / 2 - o.left },
|
|
64
|
+
top: { top: e.top - o.height - o.top, left: (e == null ? void 0 : e.left) - (o.width - e.width) / 2 - o.left },
|
|
65
|
+
"top-right": { top: e.top - o.height, left: e.right - o.width / 2 },
|
|
66
|
+
"bottom-left": { top: (e == null ? void 0 : e.bottom) - o.top + 10, left: e.left - o.width - o.left + 50 }
|
|
67
67
|
};
|
|
68
|
-
t.style.top = C[
|
|
68
|
+
t.style.top = C[n.menuSide].top + "px", t.style.left = C[n.menuSide].left + "px", t.style.opacity = "1", t.style.visibility = "visible", t.style.display = "inherit", r.value = !0;
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
}, l = () => {
|
|
72
|
-
if (
|
|
73
|
-
const t =
|
|
74
|
-
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.visibility = "hidden", t.style.display = "none",
|
|
72
|
+
if (c.value) {
|
|
73
|
+
const t = c.value;
|
|
74
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.visibility = "hidden", t.style.display = "none", r.value = !1);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
}, k = (t) => {
|
|
77
|
+
n.mode == "click" && s.value && !s.value.contains(t.target) && l();
|
|
78
|
+
}, x = () => {
|
|
79
|
+
A(() => {
|
|
80
|
+
c.value = document.getElementById("context-menu-" + f + m), c.value && (l(), d || (document.addEventListener("click", k), d = !0));
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}), P(
|
|
83
|
+
return z(() => {
|
|
84
|
+
x();
|
|
85
|
+
}), P(i, (t) => {
|
|
86
86
|
if (t) {
|
|
87
|
-
|
|
87
|
+
x();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
l();
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
updatePosition:
|
|
91
|
+
}), U(() => {
|
|
92
|
+
d && (document.removeEventListener("click", k), d = !1), c.value && l();
|
|
93
|
+
}), B({
|
|
94
|
+
updatePosition: p,
|
|
95
95
|
hideMenu: l
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
}), (t, e) => (v(), D("div", W, [
|
|
97
|
+
M("button", {
|
|
98
|
+
id: "container-" + a(f) + a(m),
|
|
99
|
+
ref_key: "actionScope",
|
|
100
|
+
ref: s,
|
|
101
|
+
class: b([
|
|
102
|
+
"contact-context-menu__button",
|
|
103
|
+
{ "contact-context-menu__button--no-actions": !i.value }
|
|
104
|
+
]),
|
|
105
|
+
onMouseenter: O,
|
|
106
|
+
onMouseleave: q,
|
|
107
|
+
onClick: L
|
|
108
|
+
}, [
|
|
109
|
+
M("span", {
|
|
110
|
+
class: b([
|
|
111
|
+
"contact-context-menu__icon",
|
|
112
|
+
{ "contact-context-menu__icon--no-actions": !i.value }
|
|
113
|
+
])
|
|
114
|
+
}, [
|
|
115
|
+
F(Q)
|
|
116
|
+
], 2),
|
|
117
|
+
(v(), w(G, { to: "body" }, [
|
|
118
|
+
i.value ? (v(), w(J, {
|
|
119
|
+
key: 0,
|
|
120
|
+
id: "context-menu-" + a(f) + a(m),
|
|
121
|
+
actions: y.actions,
|
|
122
|
+
"data-theme": a(g)().theme ? a(g)().theme : "light",
|
|
123
|
+
onMouseenter: T,
|
|
124
|
+
onMouseleave: N,
|
|
125
|
+
onClick: S
|
|
126
|
+
}, null, 8, ["id", "actions", "data-theme"])) : H("", !0)
|
|
127
|
+
]))
|
|
128
|
+
], 42, X)
|
|
129
|
+
]));
|
|
103
130
|
}
|
|
104
131
|
});
|
|
105
132
|
export {
|
|
106
|
-
|
|
133
|
+
de as default
|
|
107
134
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as n, openBlock as t, createElementVNode as k, Fragment as d, renderList as y, normalizeClass as u, createBlock as h, createCommentVNode as r, resolveDynamicComponent as g, toDisplayString as p } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import x from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = ["id"], v = { class: "context-menu__list" }, C = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "context-menu__separator",
|
|
7
|
+
role: "separator"
|
|
8
|
+
}, b = ["onClick"], w = ["src"], M = {
|
|
9
|
+
key: 3,
|
|
10
|
+
style: { "white-space": "nowrap" }
|
|
11
|
+
}, B = { key: 4 }, $ = {
|
|
5
12
|
__name: "ContextMenu",
|
|
6
13
|
props: {
|
|
7
14
|
actions: {
|
|
@@ -14,90 +21,48 @@ const x = {
|
|
|
14
21
|
}
|
|
15
22
|
},
|
|
16
23
|
emits: ["click", "mouseenter", "mouseleave"],
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
f(s.props.actions, (e, i) => (t(), o(
|
|
45
|
-
m,
|
|
46
|
-
{ key: i },
|
|
47
|
-
[
|
|
48
|
-
e.separator ? (t(), o("li", M)) : (t(), o("li", {
|
|
24
|
+
setup(i, { emit: _ }) {
|
|
25
|
+
const l = i, o = _, a = (c) => {
|
|
26
|
+
const s = l.actions[c];
|
|
27
|
+
s != null && s.separator || o("click", s);
|
|
28
|
+
};
|
|
29
|
+
return (c, s) => (t(), n("div", {
|
|
30
|
+
id: i.id,
|
|
31
|
+
class: "context-menu__container",
|
|
32
|
+
onMouseenter: s[0] || (s[0] = (e) => o("mouseenter")),
|
|
33
|
+
onMouseleave: s[1] || (s[1] = (e) => o("mouseleave"))
|
|
34
|
+
}, [
|
|
35
|
+
k("ul", v, [
|
|
36
|
+
(t(!0), n(d, null, y(l.actions, (e, m) => (t(), n(d, { key: m }, [
|
|
37
|
+
e.separator ? (t(), n("li", C)) : (t(), n("li", {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: u(["context-menu__item", {
|
|
40
|
+
"context-menu__item--disabled": e.disabled,
|
|
41
|
+
"context-menu__item--danger": e.danger
|
|
42
|
+
}]),
|
|
43
|
+
onClick: (D) => !e.disabled && a(m)
|
|
44
|
+
}, [
|
|
45
|
+
e.icon && typeof e.icon == "string" ? (t(), n("img", {
|
|
46
|
+
key: 0,
|
|
47
|
+
src: e.icon,
|
|
48
|
+
width: "18",
|
|
49
|
+
height: "18"
|
|
50
|
+
}, null, 8, w)) : e.icon && typeof e.icon != "string" ? (t(), h(g(e.icon), {
|
|
49
51
|
key: 1,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
height: "18"
|
|
65
|
-
})) : e.prime ? (t(), o(
|
|
66
|
-
"i",
|
|
67
|
-
{
|
|
68
|
-
key: 2,
|
|
69
|
-
class: a("pi pi-" + e.prime)
|
|
70
|
-
},
|
|
71
|
-
null,
|
|
72
|
-
2
|
|
73
|
-
/* CLASS */
|
|
74
|
-
)) : _("v-if", !0),
|
|
75
|
-
e.title ? (t(), o(
|
|
76
|
-
"span",
|
|
77
|
-
S,
|
|
78
|
-
d(e.title),
|
|
79
|
-
1
|
|
80
|
-
/* TEXT */
|
|
81
|
-
)) : _("v-if", !0),
|
|
82
|
-
e.description ? (t(), o(
|
|
83
|
-
"span",
|
|
84
|
-
B,
|
|
85
|
-
d(e.description),
|
|
86
|
-
1
|
|
87
|
-
/* TEXT */
|
|
88
|
-
)) : _("v-if", !0)
|
|
89
|
-
], 10, b))
|
|
90
|
-
],
|
|
91
|
-
64
|
|
92
|
-
/* STABLE_FRAGMENT */
|
|
93
|
-
))),
|
|
94
|
-
128
|
|
95
|
-
/* KEYED_FRAGMENT */
|
|
96
|
-
))
|
|
97
|
-
])
|
|
98
|
-
], 40, g);
|
|
99
|
-
}
|
|
100
|
-
const V = /* @__PURE__ */ h(x, [["render", j], ["__scopeId", "data-v-a2a83598"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/ContextMenu/ContextMenu.vue"]]);
|
|
52
|
+
width: "18",
|
|
53
|
+
height: "18"
|
|
54
|
+
})) : e.prime ? (t(), n("i", {
|
|
55
|
+
key: 2,
|
|
56
|
+
class: u("pi pi-" + e.prime)
|
|
57
|
+
}, null, 2)) : r("", !0),
|
|
58
|
+
e.title ? (t(), n("span", M, p(e.title), 1)) : r("", !0),
|
|
59
|
+
e.description ? (t(), n("span", B, p(e.description), 1)) : r("", !0)
|
|
60
|
+
], 10, b))
|
|
61
|
+
], 64))), 128))
|
|
62
|
+
])
|
|
63
|
+
], 40, f));
|
|
64
|
+
}
|
|
65
|
+
}, V = /* @__PURE__ */ x($, [["__scopeId", "data-v-e191b2ad"]]);
|
|
101
66
|
export {
|
|
102
67
|
V as default
|
|
103
68
|
};
|
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as r, openBlock as o } from "vue";
|
|
1
|
+
import o from "./EmbedPreview.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function d(m, _, e, u, n, b) {
|
|
7
|
-
return o(), r("div", c, [
|
|
8
|
-
e.embed.type == "youtube" ? (o(), r("iframe", {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "embed-preview__player",
|
|
11
|
-
src: e.embed.url,
|
|
12
|
-
title: "YouTube video player",
|
|
13
|
-
frameborder: "0",
|
|
14
|
-
allowfullscreen: ""
|
|
15
|
-
}, null, 8, s)) : e.embed.type == "rutube" ? (o(), r("iframe", {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "embed-preview__player",
|
|
18
|
-
src: e.embed.url,
|
|
19
|
-
title: "YouTube video player",
|
|
20
|
-
frameborder: "0",
|
|
21
|
-
allow: "clipboard-write; autoplay",
|
|
22
|
-
webkitAllowFullScreen: "",
|
|
23
|
-
mozallowfullscreen: "",
|
|
24
|
-
allowFullScreen: ""
|
|
25
|
-
}, null, 8, a)) : (o(), r("iframe", {
|
|
26
|
-
key: 2,
|
|
27
|
-
class: "embed-preview__player",
|
|
28
|
-
src: e.embed.url
|
|
29
|
-
}, null, 8, i))
|
|
30
|
-
]);
|
|
31
|
-
}
|
|
32
|
-
const y = /* @__PURE__ */ t(l, [["render", d], ["__scopeId", "data-v-2af659c6"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/1_atoms/EmbedPreview/EmbedPreview.vue"]]);
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ e(o, [["__scopeId", "data-v-78e87f87"]]);
|
|
33
5
|
export {
|
|
34
|
-
|
|
6
|
+
f as default
|
|
35
7
|
};
|