@mobilon-dev/chotto 0.3.97 → 0.3.98
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 +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- 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 +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- 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 +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- 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 +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./ButtonContextMenu.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const s = ["id"];
|
|
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"]]);
|
|
5
30
|
export {
|
|
6
|
-
|
|
31
|
+
g as default
|
|
7
32
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as B, inject as E, useId as I, ref as a, onMounted as O, nextTick as v, onUnmounted as q } from "vue";
|
|
2
|
+
import L 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 A } 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 Q = /* @__PURE__ */ B({
|
|
15
15
|
__name: "ButtonContextMenu",
|
|
16
16
|
props: {
|
|
17
17
|
actions: {
|
|
@@ -35,77 +35,58 @@ const $ = ["id"], te = /* @__PURE__ */ _({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
l(),
|
|
38
|
+
setup(y, { expose: g, emit: k }) {
|
|
39
|
+
const u = E("chatAppId"), { getTheme: M } = A(u), i = y, f = I(), s = k, n = a(), r = a(), c = a(!1), C = (o) => {
|
|
40
|
+
l(), s("click", o);
|
|
41
|
+
}, b = () => {
|
|
42
|
+
i.disabled || (i.mode == "click" && !c.value ? p() : i.mode == "click" && c.value && l(), s("buttonClick"));
|
|
41
43
|
}, x = () => {
|
|
42
|
-
i.disabled ||
|
|
43
|
-
},
|
|
44
|
-
i.disabled || i.mode == "hover" && u();
|
|
45
|
-
}, B = () => {
|
|
44
|
+
i.disabled || i.mode == "hover" && p();
|
|
45
|
+
}, _ = () => {
|
|
46
46
|
i.disabled || i.mode == "hover" && l();
|
|
47
|
+
}, w = () => {
|
|
48
|
+
s("menuMouseEnter"), i.disabled || i.mode == "hover" && p();
|
|
47
49
|
}, S = () => {
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
d("menuMouseLeave"), i.disabled || i.mode == "hover" && l();
|
|
51
|
-
}, u = () => {
|
|
50
|
+
s("menuMouseLeave"), i.disabled || i.mode == "hover" && l();
|
|
51
|
+
}, p = () => {
|
|
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 o = n.value, e = r.value.getBoundingClientRect();
|
|
54
|
+
o.style.display = "inherit";
|
|
55
|
+
const t = n.value.getBoundingClientRect();
|
|
56
|
+
o.style.display = "none", v(() => {
|
|
57
|
+
const h = {
|
|
58
|
+
left: { top: e.top - (t.height - e.height) / 2 - t.top, left: e.left - t.width - t.left },
|
|
59
|
+
right: { top: e.top - (t.height - e.height) / 2 - t.top, left: e.left + e.width - t.left },
|
|
60
|
+
bottom: { top: (e == null ? void 0 : e.bottom) - t.top, left: (e == null ? void 0 : e.left) - (t.width - e.width) / 2 - t.left },
|
|
61
|
+
top: { top: e.top - t.height - t.top, left: (e == null ? void 0 : e.left) - (t.width - e.width) / 2 - t.left },
|
|
62
|
+
"top-right": { top: e.top - t.height, left: e.right - t.width / 2 },
|
|
63
|
+
"bottom-right": { top: e.bottom, left: e.right - t.width }
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
o.style.top = h[i.menuSide].top + "px", o.style.left = h[i.menuSide].left + "px", o.style.opacity = "1", o.style.display = "inherit", c.value = !0;
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}, l = () => {
|
|
69
69
|
if (n.value) {
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const o = n.value;
|
|
71
|
+
o && (o.style.top = "0", o.style.left = "0", o.style.opacity = "0", o.style.display = "none", c.value = !1);
|
|
72
72
|
}
|
|
73
|
-
},
|
|
74
|
-
i.mode == "click" && r.value && !r.value.contains(
|
|
73
|
+
}, d = (o) => {
|
|
74
|
+
i.mode == "click" && r.value && !r.value.contains(o.target) && l();
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
n.value = document.getElementById("context-menu-" +
|
|
76
|
+
O(() => {
|
|
77
|
+
v(() => {
|
|
78
|
+
n.value = document.getElementById("context-menu-" + f + u), n.value && (l(), document.addEventListener("click", d));
|
|
79
79
|
});
|
|
80
|
-
}),
|
|
81
|
-
document.removeEventListener("click",
|
|
82
|
-
}),
|
|
83
|
-
updatePosition:
|
|
80
|
+
}), q(() => {
|
|
81
|
+
document.removeEventListener("click", d);
|
|
82
|
+
}), g({
|
|
83
|
+
updatePosition: p,
|
|
84
84
|
hideMenu: l
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
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, $));
|
|
85
|
+
});
|
|
86
|
+
const m = { chatAppId: u, getTheme: M, props: i, buttonContextMenuId: f, emit: s, contextMenu: n, actionScope: r, isOpened: c, click: C, toggle: b, hover: x, hoverOut: _, hoverCM: w, hoverOutCM: S, updatePosition: p, hideMenu: l, handleClickOutside: d, ContextMenu: L };
|
|
87
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
107
88
|
}
|
|
108
89
|
});
|
|
109
90
|
export {
|
|
110
|
-
|
|
91
|
+
Q as default
|
|
111
92
|
};
|
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./ContactContextMenu.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const l = { class: "contact-context-menu__wrapper" }, h = ["id"];
|
|
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"]]);
|
|
5
48
|
export {
|
|
6
|
-
|
|
49
|
+
g as default
|
|
7
50
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as B, inject as k, useId as q, ref as m, computed as T, onMounted as j, watch as P, onUnmounted as R, nextTick as M } from "vue";
|
|
2
|
+
import U 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 z } 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 D from "../../1_icons/MenuIcon.vue.js";
|
|
15
|
+
const te = /* @__PURE__ */ B({
|
|
16
16
|
__name: "ContactContextMenu",
|
|
17
17
|
props: {
|
|
18
18
|
actions: {
|
|
@@ -36,99 +36,72 @@ const W = { class: "contact-context-menu__wrapper" }, X = ["id"], de = /* @__PUR
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
const
|
|
43
|
-
l(),
|
|
44
|
-
},
|
|
45
|
-
!
|
|
39
|
+
setup(x, { expose: A, emit: b }) {
|
|
40
|
+
const h = k("chatAppId"), v = k("extChatAppId", ""), { getTheme: _ } = z(h), o = x, y = q(), r = b, n = m(null), a = m(), u = m(!1), s = T(() => Array.isArray(o.actions) && o.actions.length > 0);
|
|
41
|
+
let c = !1;
|
|
42
|
+
const w = (t) => {
|
|
43
|
+
l(), r("click", t);
|
|
44
|
+
}, I = () => {
|
|
45
|
+
!o.disabled && s.value && (o.mode == "click" && !u.value ? d() : o.mode == "click" && u.value && l(), r("buttonClick"));
|
|
46
46
|
}, O = () => {
|
|
47
|
-
!
|
|
48
|
-
},
|
|
49
|
-
!
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
if (
|
|
56
|
-
const t =
|
|
47
|
+
!o.disabled && s.value && o.mode == "hover" && d();
|
|
48
|
+
}, S = () => {
|
|
49
|
+
!o.disabled && s.value && o.mode == "hover" && l();
|
|
50
|
+
}, L = () => {
|
|
51
|
+
r("menuMouseEnter"), !o.disabled && s.value && o.mode == "hover" && d();
|
|
52
|
+
}, E = () => {
|
|
53
|
+
r("menuMouseLeave"), !o.disabled && s.value && o.mode == "hover" && l();
|
|
54
|
+
}, d = () => {
|
|
55
|
+
if (s.value && a.value && n.value) {
|
|
56
|
+
const t = n.value, e = a.value.getBoundingClientRect();
|
|
57
57
|
t.style.display = "inherit";
|
|
58
|
-
const
|
|
59
|
-
t.style.display = "none",
|
|
58
|
+
const i = n.value.getBoundingClientRect();
|
|
59
|
+
t.style.display = "none", M(() => {
|
|
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 - (i.height - e.height) / 2 - i.top, left: e.left - i.width - i.left },
|
|
62
|
+
right: { top: e.top - (i.height - e.height) / 2 - i.top, left: e.left + e.width - i.left },
|
|
63
|
+
bottom: { top: (e == null ? void 0 : e.bottom) - i.top, left: (e == null ? void 0 : e.left) - (i.width - e.width) / 2 - i.left },
|
|
64
|
+
top: { top: e.top - i.height - i.top, left: (e == null ? void 0 : e.left) - (i.width - e.width) / 2 - i.left },
|
|
65
|
+
"top-right": { top: e.top - i.height, left: e.right - i.width / 2 },
|
|
66
|
+
"bottom-left": { top: (e == null ? void 0 : e.bottom) - i.top + 10, left: e.left - i.width - i.left + 50 }
|
|
67
67
|
};
|
|
68
|
-
t.style.top = C[
|
|
68
|
+
t.style.top = C[o.menuSide].top + "px", t.style.left = C[o.menuSide].left + "px", t.style.opacity = "1", t.style.visibility = "visible", t.style.display = "inherit", u.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 (n.value) {
|
|
73
|
+
const t = n.value;
|
|
74
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.visibility = "hidden", t.style.display = "none", u.value = !1);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
}, p = (t) => {
|
|
77
|
+
o.mode == "click" && a.value && !a.value.contains(t.target) && l();
|
|
78
|
+
}, f = () => {
|
|
79
|
+
M(() => {
|
|
80
|
+
n.value = document.getElementById("context-menu-" + y + v), n.value && (l(), c || (document.addEventListener("click", p), c = !0));
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}), P(
|
|
83
|
+
j(() => {
|
|
84
|
+
f();
|
|
85
|
+
}), P(s, (t) => {
|
|
86
86
|
if (t) {
|
|
87
|
-
|
|
87
|
+
f();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
l();
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
updatePosition:
|
|
91
|
+
}), R(() => {
|
|
92
|
+
c && (document.removeEventListener("click", p), c = !1), n.value && l();
|
|
93
|
+
}), A({
|
|
94
|
+
updatePosition: d,
|
|
95
95
|
hideMenu: l
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
]));
|
|
96
|
+
});
|
|
97
|
+
const g = { chatAppId: h, extChatAppId: v, getTheme: _, props: o, contextMenuId: y, emit: r, contextMenu: n, actionScope: a, isOpened: u, hasActions: s, get isOutsideClickListenerAttached() {
|
|
98
|
+
return c;
|
|
99
|
+
}, set isOutsideClickListenerAttached(t) {
|
|
100
|
+
c = t;
|
|
101
|
+
}, click: w, toggle: I, hover: O, hoverOut: S, hoverCM: L, hoverOutCM: E, updatePosition: d, hideMenu: l, handleClickOutside: p, syncContextMenuEl: f, ContextMenu: U, MenuIcon: D };
|
|
102
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
130
103
|
}
|
|
131
104
|
});
|
|
132
105
|
export {
|
|
133
|
-
|
|
106
|
+
te as default
|
|
134
107
|
};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as o, openBlock as t, createElementVNode as k, Fragment as m, renderList as f, normalizeClass as a, createBlock as y, createCommentVNode as _, resolveDynamicComponent as v, toDisplayString as d } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
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 }, $ = {
|
|
3
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const x = {
|
|
12
5
|
__name: "ContextMenu",
|
|
13
6
|
props: {
|
|
14
7
|
actions: {
|
|
@@ -21,48 +14,90 @@ const f = ["id"], v = { class: "context-menu__list" }, C = {
|
|
|
21
14
|
}
|
|
22
15
|
},
|
|
23
16
|
emits: ["click", "mouseenter", "mouseleave"],
|
|
24
|
-
setup(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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), {
|
|
51
|
-
key: 1,
|
|
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));
|
|
17
|
+
setup(p, { expose: n, emit: c }) {
|
|
18
|
+
n();
|
|
19
|
+
const s = p, l = c, e = { props: s, emit: l, click: (i) => {
|
|
20
|
+
const r = s.actions[i];
|
|
21
|
+
r != null && r.separator || l("click", r);
|
|
22
|
+
} };
|
|
23
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
64
24
|
}
|
|
65
|
-
},
|
|
25
|
+
}, g = ["id"], C = { class: "context-menu__list" }, M = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "context-menu__separator",
|
|
28
|
+
role: "separator"
|
|
29
|
+
}, b = ["onClick"], w = ["src"], S = {
|
|
30
|
+
key: 3,
|
|
31
|
+
style: { "white-space": "nowrap" }
|
|
32
|
+
}, B = { key: 4 };
|
|
33
|
+
function j(p, n, c, s, l, u) {
|
|
34
|
+
return t(), o("div", {
|
|
35
|
+
id: c.id,
|
|
36
|
+
class: "context-menu__container",
|
|
37
|
+
onMouseenter: n[0] || (n[0] = (e) => s.emit("mouseenter")),
|
|
38
|
+
onMouseleave: n[1] || (n[1] = (e) => s.emit("mouseleave"))
|
|
39
|
+
}, [
|
|
40
|
+
k("ul", C, [
|
|
41
|
+
(t(!0), o(
|
|
42
|
+
m,
|
|
43
|
+
null,
|
|
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", {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: a(["context-menu__item", {
|
|
51
|
+
"context-menu__item--disabled": e.disabled,
|
|
52
|
+
"context-menu__item--danger": e.danger
|
|
53
|
+
}]),
|
|
54
|
+
onClick: (r) => !e.disabled && s.click(i)
|
|
55
|
+
}, [
|
|
56
|
+
e.icon && typeof e.icon == "string" ? (t(), o("img", {
|
|
57
|
+
key: 0,
|
|
58
|
+
src: e.icon,
|
|
59
|
+
width: "18",
|
|
60
|
+
height: "18"
|
|
61
|
+
}, null, 8, w)) : e.icon && typeof e.icon != "string" ? (t(), y(v(e.icon), {
|
|
62
|
+
key: 1,
|
|
63
|
+
width: "18",
|
|
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"]]);
|
|
66
101
|
export {
|
|
67
102
|
V as default
|
|
68
103
|
};
|
|
@@ -1,7 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "./EmbedPreview.vue2.js";
|
|
2
|
+
import { createElementBlock as r, openBlock as o } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const c = { class: "embed-preview" }, s = ["src"], a = ["src"], i = ["src"];
|
|
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"]]);
|
|
5
33
|
export {
|
|
6
|
-
|
|
34
|
+
y as default
|
|
7
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ t({
|
|
3
3
|
__name: "EmbedPreview",
|
|
4
4
|
props: {
|
|
5
5
|
embed: {
|
|
@@ -7,33 +7,12 @@ const o = { class: "embed-preview" }, c = ["src"], a = ["src"], s = ["src"], m =
|
|
|
7
7
|
required: !0
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
]));
|
|
10
|
+
setup(p, { expose: r }) {
|
|
11
|
+
r();
|
|
12
|
+
const e = {};
|
|
13
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
35
14
|
}
|
|
36
15
|
});
|
|
37
16
|
export {
|
|
38
|
-
|
|
17
|
+
n as default
|
|
39
18
|
};
|