@mobilon-dev/chotto 0.3.121 → 0.3.123
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 +59 -40
- 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 +35 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
- 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/DeletedMessageIcon.vue.js +11 -17
- 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/VerifiedBadge.vue.js +19 -25
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
- 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 +46 -12
- 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 -62
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
- 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 +45 -76
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
- 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 +58 -32
- 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 +35 -41
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
- 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 +68 -36
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
- 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 +42 -22
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
- 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/DelimiterMessage/DelimiterMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
- 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/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
- 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 -57
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
- 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 +118 -34
- 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 -94
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -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 -348
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
- 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 -308
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
- 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 -321
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
- 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 +19 -36
- 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 -170
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
- 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 +166 -256
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
- package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
- package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
- 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 -33
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
- package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,42 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as o, openBlock as t, normalizeClass as s, Fragment as c, renderList as l, normalizeStyle as d, createElementVNode as i, toDisplayString as _ } from "vue";
|
|
1
|
+
import o from "./MessageKeyboard.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function f(y, b, r, a, x, k) {
|
|
7
|
-
return t(), o(
|
|
8
|
-
"div",
|
|
9
|
-
{
|
|
10
|
-
ref: "keyboard",
|
|
11
|
-
class: s(["keyboard__container", [`keyboard__container--${r.align}`]])
|
|
12
|
-
},
|
|
13
|
-
[
|
|
14
|
-
(t(!0), o(
|
|
15
|
-
c,
|
|
16
|
-
null,
|
|
17
|
-
l(r.keyboard, (e) => (t(), o("div", {
|
|
18
|
-
key: e.text,
|
|
19
|
-
class: "keyboard__key",
|
|
20
|
-
style: d({ "box-shadow": "0px 0px 10px 5px " + e.color }),
|
|
21
|
-
onClick: (u) => a.handleClickKey(e)
|
|
22
|
-
}, [
|
|
23
|
-
i(
|
|
24
|
-
"p",
|
|
25
|
-
null,
|
|
26
|
-
_(e.text),
|
|
27
|
-
1
|
|
28
|
-
/* TEXT */
|
|
29
|
-
)
|
|
30
|
-
], 12, m))),
|
|
31
|
-
128
|
|
32
|
-
/* KEYED_FRAGMENT */
|
|
33
|
-
))
|
|
34
|
-
],
|
|
35
|
-
2
|
|
36
|
-
/* CLASS */
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
const K = /* @__PURE__ */ p(n, [["render", f], ["__scopeId", "data-v-ef794b11"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue"]]);
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-973cd877"]]);
|
|
40
5
|
export {
|
|
41
|
-
|
|
6
|
+
s as default
|
|
42
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, useTemplateRef as
|
|
2
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as u, useTemplateRef as f, inject as x, createElementBlock as r, openBlock as n, normalizeClass as _, Fragment as g, renderList as y, normalizeStyle as b, createElementVNode as h, toDisplayString as k } from "vue";
|
|
2
|
+
import { useMessageDraft as C } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "../../../locale/useLocale.js";
|
|
@@ -7,7 +7,7 @@ import "../../../locale/useLocale.js";
|
|
|
7
7
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
8
8
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
9
9
|
import "../../../functions/parseMarkdown.js";
|
|
10
|
-
const
|
|
10
|
+
const v = ["onClick"], $ = /* @__PURE__ */ u({
|
|
11
11
|
__name: "MessageKeyboard",
|
|
12
12
|
props: {
|
|
13
13
|
keyboard: {
|
|
@@ -21,17 +21,27 @@ const K = /* @__PURE__ */ u({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
emits: ["action"],
|
|
24
|
-
setup(t, { expose:
|
|
25
|
-
const
|
|
26
|
-
e.action && typeof e.action == "function" ? e.action() : e.action != null ?
|
|
24
|
+
setup(t, { expose: a, emit: i }) {
|
|
25
|
+
const s = f("keyboard"), c = i, l = x("chatAppId"), { setMessageText: p, setForceSendMessage: d } = C(l), m = (e) => {
|
|
26
|
+
e.action && typeof e.action == "function" ? e.action() : e.action != null ? c("action", e.action) : (p(e.text), d(!0));
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
refKeyboard:
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
return a({
|
|
29
|
+
refKeyboard: s
|
|
30
|
+
}), (e, M) => (n(), r("div", {
|
|
31
|
+
ref: "keyboard",
|
|
32
|
+
class: _(["keyboard__container", [`keyboard__container--${t.align}`]])
|
|
33
|
+
}, [
|
|
34
|
+
(n(!0), r(g, null, y(t.keyboard, (o) => (n(), r("div", {
|
|
35
|
+
key: o.text,
|
|
36
|
+
class: "keyboard__key",
|
|
37
|
+
style: b({ "box-shadow": "0px 0px 10px 5px " + o.color }),
|
|
38
|
+
onClick: (S) => m(o)
|
|
39
|
+
}, [
|
|
40
|
+
h("p", null, k(o.text), 1)
|
|
41
|
+
], 12, v))), 128))
|
|
42
|
+
], 2));
|
|
33
43
|
}
|
|
34
44
|
});
|
|
35
45
|
export {
|
|
36
|
-
|
|
46
|
+
$ as default
|
|
37
47
|
};
|
|
@@ -1,60 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as s, openBlock as t, normalizeClass as a, Fragment as r, renderList as l, createBlock as _, withCtx as d, createElementVNode as n, createCommentVNode as m, createVNode as f, toDisplayString as g } from "vue";
|
|
1
|
+
import o from "./MessageReactions.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "message-reactions__count"
|
|
8
|
-
};
|
|
9
|
-
function u(v, R, c, e, C, x) {
|
|
10
|
-
return t(), s(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
ref: "reactionsContainerRef",
|
|
14
|
-
class: a(["message-reactions", { "has-reactions": e.hasReactions, "is-right-message": e.isRight, "is-disabled": !c.enabled }])
|
|
15
|
-
},
|
|
16
|
-
[
|
|
17
|
-
(t(!0), s(
|
|
18
|
-
r,
|
|
19
|
-
null,
|
|
20
|
-
l(e.displayedReactions, (o) => (t(), _(e.Tooltip, {
|
|
21
|
-
key: o.key,
|
|
22
|
-
text: e.getReactionTooltip(o),
|
|
23
|
-
position: "bottom-right",
|
|
24
|
-
offset: 6,
|
|
25
|
-
delay: 400
|
|
26
|
-
}, {
|
|
27
|
-
default: d(() => [
|
|
28
|
-
n("button", {
|
|
29
|
-
class: a(["message-reactions__chip", { "is-active": o.reactedByMe && o.count === 1 }]),
|
|
30
|
-
onClick: (j) => e.onToggle(o.key)
|
|
31
|
-
}, [
|
|
32
|
-
n("span", k, [
|
|
33
|
-
f(e.EmojiGlyph, {
|
|
34
|
-
emoji: o.key
|
|
35
|
-
}, null, 8, ["emoji"])
|
|
36
|
-
]),
|
|
37
|
-
e.showCount || o.count > 1 ? (t(), s(
|
|
38
|
-
"span",
|
|
39
|
-
y,
|
|
40
|
-
g(o.count),
|
|
41
|
-
1
|
|
42
|
-
/* TEXT */
|
|
43
|
-
)) : m("v-if", !0)
|
|
44
|
-
], 10, p)
|
|
45
|
-
]),
|
|
46
|
-
_: 2
|
|
47
|
-
/* DYNAMIC */
|
|
48
|
-
}, 1032, ["text"]))),
|
|
49
|
-
128
|
|
50
|
-
/* KEYED_FRAGMENT */
|
|
51
|
-
))
|
|
52
|
-
],
|
|
53
|
-
2
|
|
54
|
-
/* CLASS */
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const N = /* @__PURE__ */ h(i, [["render", u], ["__scopeId", "data-v-254a0217"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageReactions/MessageReactions.vue"]]);
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3923074b"]]);
|
|
58
5
|
export {
|
|
59
|
-
|
|
6
|
+
r as default
|
|
60
7
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MESSAGE_REACTIONS_PATCH_KEY as
|
|
1
|
+
import { defineComponent as V, inject as u, ref as q, computed as s, unref as i, createElementBlock as g, openBlock as c, normalizeClass as y, Fragment as w, renderList as $, createBlock as z, withCtx as D, createElementVNode as R, createCommentVNode as F, createVNode as G, toDisplayString as H } from "vue";
|
|
2
|
+
import { MESSAGE_REACTIONS_PATCH_KEY as L } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
3
3
|
import P from "../../1_atoms/EmojiGlyph/EmojiGlyph.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { buildReactionTooltipText as
|
|
6
|
-
import { isRightMessage as
|
|
7
|
-
import { useReactionsState as
|
|
8
|
-
const
|
|
4
|
+
import Y from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
5
|
+
import { buildReactionTooltipText as J } from "./utils/reactionTooltip.js";
|
|
6
|
+
import { isRightMessage as Q } from "./composables/usePositioning.js";
|
|
7
|
+
import { useReactionsState as W } from "./composables/useReactionsState.js";
|
|
8
|
+
const X = ["onClick"], Z = { class: "message-reactions__emoji" }, ee = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "message-reactions__count"
|
|
11
|
+
}, ce = /* @__PURE__ */ V({
|
|
9
12
|
__name: "MessageReactions",
|
|
10
13
|
props: {
|
|
11
14
|
reactions: {
|
|
@@ -40,55 +43,80 @@ const W = /* @__PURE__ */ A({
|
|
|
40
43
|
}
|
|
41
44
|
},
|
|
42
45
|
emits: ["toggle-reaction", "add-reaction", "remove-reaction"],
|
|
43
|
-
setup(a, { expose:
|
|
44
|
-
const
|
|
45
|
-
var
|
|
46
|
-
const e = (
|
|
46
|
+
setup(a, { expose: I, emit: h }) {
|
|
47
|
+
const o = a, r = h, N = u("currentUserId", void 0), U = u("reactionUserNames", void 0), l = q(null), b = s(() => o.mode), d = s(() => o.currentUserId ?? i(N)), f = s(() => o.reactionUserNames ?? i(U)), C = s(() => {
|
|
48
|
+
var t, m;
|
|
49
|
+
const e = (t = o.currentUserName) == null ? void 0 : t.trim();
|
|
47
50
|
if (e) return e;
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return (
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
), { displayedReactions:
|
|
57
|
-
function
|
|
58
|
-
const e =
|
|
59
|
-
!
|
|
51
|
+
const n = d.value;
|
|
52
|
+
if (n != null)
|
|
53
|
+
return (m = f.value) == null ? void 0 : m[String(n)];
|
|
54
|
+
}), S = s(() => o.mode === "multi"), p = W(
|
|
55
|
+
s(() => o.reactions),
|
|
56
|
+
b,
|
|
57
|
+
d,
|
|
58
|
+
C
|
|
59
|
+
), { displayedReactions: j, hasReactions: x, addReaction: T, removeReaction: M, toggleReaction: k, localReactions: E } = p, v = u(L, null);
|
|
60
|
+
function _() {
|
|
61
|
+
const e = E.value;
|
|
62
|
+
!v || !e || v({
|
|
60
63
|
...e,
|
|
61
|
-
items: e.items.map((
|
|
64
|
+
items: e.items.map((n) => ({ ...n })),
|
|
62
65
|
meta: e.meta ? { ...e.meta } : void 0
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
68
|
+
function B(e) {
|
|
69
|
+
return J(e.events, f.value);
|
|
67
70
|
}
|
|
68
|
-
const
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
+
const K = s(() => Q(l.value));
|
|
72
|
+
function A() {
|
|
73
|
+
return o.enabled && d.value != null;
|
|
71
74
|
}
|
|
72
75
|
function O(e) {
|
|
73
|
-
if (
|
|
74
|
-
if (
|
|
75
|
-
if (
|
|
76
|
-
|
|
76
|
+
if (A()) {
|
|
77
|
+
if (o.mode === "single") {
|
|
78
|
+
if (p.myReactionKey.value === e)
|
|
79
|
+
M(e), r("remove-reaction", { messageId: o.messageId, key: e });
|
|
77
80
|
else {
|
|
78
|
-
const
|
|
79
|
-
|
|
81
|
+
const t = T(e);
|
|
82
|
+
t && r("remove-reaction", { messageId: o.messageId, key: t }), r("add-reaction", { messageId: o.messageId, key: e });
|
|
80
83
|
}
|
|
81
|
-
|
|
84
|
+
_();
|
|
82
85
|
return;
|
|
83
86
|
}
|
|
84
|
-
|
|
87
|
+
k(e), r("toggle-reaction", { messageId: o.messageId, key: e }), _();
|
|
85
88
|
}
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
return I({ reactionsContainerRef: l }), (e, n) => (c(), g("div", {
|
|
91
|
+
ref_key: "reactionsContainerRef",
|
|
92
|
+
ref: l,
|
|
93
|
+
class: y(["message-reactions", { "has-reactions": i(x), "is-right-message": K.value, "is-disabled": !a.enabled }])
|
|
94
|
+
}, [
|
|
95
|
+
(c(!0), g(w, null, $(i(j), (t) => (c(), z(Y, {
|
|
96
|
+
key: t.key,
|
|
97
|
+
text: B(t),
|
|
98
|
+
position: "bottom-right",
|
|
99
|
+
offset: 6,
|
|
100
|
+
delay: 400
|
|
101
|
+
}, {
|
|
102
|
+
default: D(() => [
|
|
103
|
+
R("button", {
|
|
104
|
+
class: y(["message-reactions__chip", { "is-active": t.reactedByMe && t.count === 1 }]),
|
|
105
|
+
onClick: (m) => O(t.key)
|
|
106
|
+
}, [
|
|
107
|
+
R("span", Z, [
|
|
108
|
+
G(P, {
|
|
109
|
+
emoji: t.key
|
|
110
|
+
}, null, 8, ["emoji"])
|
|
111
|
+
]),
|
|
112
|
+
S.value || t.count > 1 ? (c(), g("span", ee, H(t.count), 1)) : F("", !0)
|
|
113
|
+
], 10, X)
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["text"]))), 128))
|
|
117
|
+
], 2));
|
|
90
118
|
}
|
|
91
119
|
});
|
|
92
120
|
export {
|
|
93
|
-
|
|
121
|
+
ce as default
|
|
94
122
|
};
|
|
@@ -1,100 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createBlock as c, openBlock as i, Teleport as v, createVNode as t, Transition as s, withCtx as m, createElementBlock as a, createCommentVNode as r, normalizeStyle as k, createElementVNode as _, Fragment as f, renderList as y, withModifiers as l, resolveDynamicComponent as g } from "vue";
|
|
1
|
+
import o from "./MessageReactionsOverlay.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function E(C, n, P, e, p, h) {
|
|
7
|
-
return i(), c(v, { to: "body" }, [
|
|
8
|
-
t(s, { name: "message-reactions-popover" }, {
|
|
9
|
-
default: m(() => [
|
|
10
|
-
e.isQuickReactionsOpen && e.target ? (i(), a(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
key: 0,
|
|
14
|
-
ref: "quickReactionsRef",
|
|
15
|
-
class: "message-reactions__quick-panel",
|
|
16
|
-
style: k(e.quickPanelStyle),
|
|
17
|
-
onMouseenter: n[0] || (n[0] = (...o) => e.handleQuickPanelMouseEnter && e.handleQuickPanelMouseEnter(...o)),
|
|
18
|
-
onMouseleave: n[1] || (n[1] = (...o) => e.handleQuickPanelMouseLeave && e.handleQuickPanelMouseLeave(...o))
|
|
19
|
-
},
|
|
20
|
-
[
|
|
21
|
-
(i(!0), a(
|
|
22
|
-
f,
|
|
23
|
-
null,
|
|
24
|
-
y(e.quickEmojis, (o) => (i(), a("button", {
|
|
25
|
-
key: o,
|
|
26
|
-
class: "message-reactions__quick-item",
|
|
27
|
-
title: o,
|
|
28
|
-
onClick: l((R) => e.onQuickEmojiClick(o), ["stop"])
|
|
29
|
-
}, [
|
|
30
|
-
t(e.EmojiGlyph, { emoji: o }, null, 8, ["emoji"])
|
|
31
|
-
], 8, u))),
|
|
32
|
-
128
|
|
33
|
-
/* KEYED_FRAGMENT */
|
|
34
|
-
)),
|
|
35
|
-
_("button", {
|
|
36
|
-
class: "message-reactions__expand",
|
|
37
|
-
title: "Развернуть",
|
|
38
|
-
onClick: l(e.onExpandClick, ["stop"])
|
|
39
|
-
}, [
|
|
40
|
-
t(e.ExpandReactionsIcon)
|
|
41
|
-
]),
|
|
42
|
-
e.target.replyEnabled && e.target.reply ? (i(), a("button", {
|
|
43
|
-
key: 0,
|
|
44
|
-
class: "message-reactions__quick-item",
|
|
45
|
-
title: "Ответить",
|
|
46
|
-
onClick: l(e.onReplyClick, ["stop"])
|
|
47
|
-
}, [
|
|
48
|
-
t(e.ReplyIcon)
|
|
49
|
-
])) : r("v-if", !0),
|
|
50
|
-
e.target.menuEnabled ? (i(), a("button", {
|
|
51
|
-
key: 1,
|
|
52
|
-
class: "message-reactions__quick-item",
|
|
53
|
-
title: "Действия",
|
|
54
|
-
onClick: l(e.onMenuClick, ["stop"])
|
|
55
|
-
}, [
|
|
56
|
-
t(e.MessageActionsIcon)
|
|
57
|
-
])) : r("v-if", !0)
|
|
58
|
-
],
|
|
59
|
-
36
|
|
60
|
-
/* STYLE, NEED_HYDRATION */
|
|
61
|
-
)) : r("v-if", !0)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
/* STABLE */
|
|
65
|
-
}),
|
|
66
|
-
t(s, { name: "message-reactions-popover" }, {
|
|
67
|
-
default: m(() => [
|
|
68
|
-
e.isFullPickerOpen && e.target && e.EmojiPicker ? (i(), a(
|
|
69
|
-
"div",
|
|
70
|
-
{
|
|
71
|
-
key: 0,
|
|
72
|
-
ref: "pickerRef",
|
|
73
|
-
class: "message-reactions__picker",
|
|
74
|
-
style: k(e.pickerStyle),
|
|
75
|
-
onMouseenter: n[2] || (n[2] = (...o) => e.handlePickerMouseEnter && e.handlePickerMouseEnter(...o)),
|
|
76
|
-
onMouseleave: n[3] || (n[3] = (...o) => e.handlePickerMouseLeave && e.handlePickerMouseLeave(...o))
|
|
77
|
-
},
|
|
78
|
-
[
|
|
79
|
-
(i(), c(g(e.EmojiPicker), {
|
|
80
|
-
native: e.isNative,
|
|
81
|
-
"emoji-src": e.emojiSrc,
|
|
82
|
-
theme: e.emojiTheme,
|
|
83
|
-
"display-recent": !0,
|
|
84
|
-
"picker-type": "",
|
|
85
|
-
onSelect: e.onSelectEmoji
|
|
86
|
-
}, null, 40, ["native", "emoji-src", "theme"]))
|
|
87
|
-
],
|
|
88
|
-
36
|
|
89
|
-
/* STYLE, NEED_HYDRATION */
|
|
90
|
-
)) : r("v-if", !0)
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
/* STABLE */
|
|
94
|
-
})
|
|
95
|
-
]);
|
|
96
|
-
}
|
|
97
|
-
const Q = /* @__PURE__ */ M(d, [["render", E], ["__scopeId", "data-v-a5109620"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue"]]);
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a775882f"]]);
|
|
98
5
|
export {
|
|
99
|
-
|
|
6
|
+
s as default
|
|
100
7
|
};
|