@mobilon-dev/chotto 0.3.119 → 0.3.121
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 +40 -59
- 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 -35
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -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/DeletedMessageIcon.vue.js +27 -0
- 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/VerifiedBadge.vue.js +25 -19
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
- 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 +12 -46
- 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 +62 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
- 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 +76 -45
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
- 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 +32 -58
- 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 +41 -35
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
- 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 +36 -68
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
- 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 +22 -42
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
- 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/DelimiterMessage/DelimiterMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
- 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/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
- 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 +57 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
- 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 +34 -118
- 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 +94 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
- 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 +348 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
- 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 +308 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
- 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 +321 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
- 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 +36 -19
- 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 +170 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
- 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 +256 -166
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
- 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 +33 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
- package/dist/types/src/apps/data/chats.d.ts +9 -2
- package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/dist/types/src/components/2_feed_elements/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
- /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
|
@@ -1,7 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./MessageKeyboard.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = ["onClick"];
|
|
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"]]);
|
|
5
40
|
export {
|
|
6
|
-
|
|
41
|
+
K as default
|
|
7
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, useTemplateRef as
|
|
2
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as u, useTemplateRef as d, inject as f } from "vue";
|
|
2
|
+
import { useMessageDraft as l } 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 K = /* @__PURE__ */ u({
|
|
11
11
|
__name: "MessageKeyboard",
|
|
12
12
|
props: {
|
|
13
13
|
keyboard: {
|
|
@@ -21,27 +21,17 @@ const v = ["onClick"], $ = /* @__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: p, emit: c }) {
|
|
25
|
+
const r = d("keyboard"), o = c, i = f("chatAppId"), { setMessageText: n, setForceSendMessage: a } = l(i), m = (e) => {
|
|
26
|
+
e.action && typeof e.action == "function" ? e.action() : e.action != null ? o("action", e.action) : (n(e.text), a(!0));
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
refKeyboard:
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
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));
|
|
28
|
+
p({
|
|
29
|
+
refKeyboard: r
|
|
30
|
+
});
|
|
31
|
+
const s = { refKeyboard: r, emit: o, chatAppId: i, setMessageText: n, setForceSendMessage: a, handleClickKey: m };
|
|
32
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
43
33
|
}
|
|
44
34
|
});
|
|
45
35
|
export {
|
|
46
|
-
|
|
36
|
+
K as default
|
|
47
37
|
};
|
|
@@ -1,7 +1,60 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./MessageReactions.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const p = ["onClick"], k = { class: "message-reactions__emoji" }, y = {
|
|
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"]]);
|
|
5
58
|
export {
|
|
6
|
-
|
|
59
|
+
N as default
|
|
7
60
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MESSAGE_REACTIONS_PATCH_KEY as
|
|
1
|
+
import { defineComponent as A, inject as p, ref as q, computed as o, unref as T } from "vue";
|
|
2
|
+
import { MESSAGE_REACTIONS_PATCH_KEY as G } 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
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "message-reactions__count"
|
|
11
|
-
}, ce = /* @__PURE__ */ V({
|
|
4
|
+
import w from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
5
|
+
import { buildReactionTooltipText as B } from "./utils/reactionTooltip.js";
|
|
6
|
+
import { isRightMessage as H } from "./composables/usePositioning.js";
|
|
7
|
+
import { useReactionsState as Y } from "./composables/useReactionsState.js";
|
|
8
|
+
const W = /* @__PURE__ */ A({
|
|
12
9
|
__name: "MessageReactions",
|
|
13
10
|
props: {
|
|
14
11
|
reactions: {
|
|
@@ -43,80 +40,55 @@ const X = ["onClick"], Z = { class: "message-reactions__emoji" }, ee = {
|
|
|
43
40
|
}
|
|
44
41
|
},
|
|
45
42
|
emits: ["toggle-reaction", "add-reaction", "remove-reaction"],
|
|
46
|
-
setup(a, { expose:
|
|
47
|
-
const
|
|
48
|
-
var
|
|
49
|
-
const e = (
|
|
43
|
+
setup(a, { expose: j, emit: h }) {
|
|
44
|
+
const t = a, n = h, f = p("currentUserId", void 0), g = p("reactionUserNames", void 0), c = q(null), v = o(() => t.mode), i = o(() => t.currentUserId ?? T(f)), m = o(() => t.reactionUserNames ?? T(g)), R = o(() => {
|
|
45
|
+
var s, b;
|
|
46
|
+
const e = (s = t.currentUserName) == null ? void 0 : s.trim();
|
|
50
47
|
if (e) return e;
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
return (
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
), { displayedReactions:
|
|
60
|
-
function
|
|
61
|
-
const e =
|
|
62
|
-
!
|
|
48
|
+
const r = i.value;
|
|
49
|
+
if (r != null)
|
|
50
|
+
return (b = m.value) == null ? void 0 : b[String(r)];
|
|
51
|
+
}), M = o(() => t.mode === "multi"), d = Y(
|
|
52
|
+
o(() => t.reactions),
|
|
53
|
+
v,
|
|
54
|
+
i,
|
|
55
|
+
R
|
|
56
|
+
), { displayedReactions: C, hasReactions: E, addReaction: I, removeReaction: y, toggleReaction: U, localReactions: _ } = d, u = p(G, null);
|
|
57
|
+
function l() {
|
|
58
|
+
const e = _.value;
|
|
59
|
+
!u || !e || u({
|
|
63
60
|
...e,
|
|
64
|
-
items: e.items.map((
|
|
61
|
+
items: e.items.map((r) => ({ ...r })),
|
|
65
62
|
meta: e.meta ? { ...e.meta } : void 0
|
|
66
63
|
});
|
|
67
64
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
65
|
+
function K(e) {
|
|
66
|
+
return B(e.events, m.value);
|
|
70
67
|
}
|
|
71
|
-
const
|
|
72
|
-
function
|
|
73
|
-
return
|
|
68
|
+
const x = o(() => H(c.value));
|
|
69
|
+
function S() {
|
|
70
|
+
return t.enabled && i.value != null;
|
|
74
71
|
}
|
|
75
72
|
function O(e) {
|
|
76
|
-
if (
|
|
77
|
-
if (
|
|
78
|
-
if (
|
|
79
|
-
|
|
73
|
+
if (S()) {
|
|
74
|
+
if (t.mode === "single") {
|
|
75
|
+
if (d.myReactionKey.value === e)
|
|
76
|
+
y(e), n("remove-reaction", { messageId: t.messageId, key: e });
|
|
80
77
|
else {
|
|
81
|
-
const
|
|
82
|
-
|
|
78
|
+
const s = I(e);
|
|
79
|
+
s && n("remove-reaction", { messageId: t.messageId, key: s }), n("add-reaction", { messageId: t.messageId, key: e });
|
|
83
80
|
}
|
|
84
|
-
|
|
81
|
+
l();
|
|
85
82
|
return;
|
|
86
83
|
}
|
|
87
|
-
|
|
84
|
+
U(e), n("toggle-reaction", { messageId: t.messageId, key: e }), l();
|
|
88
85
|
}
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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));
|
|
87
|
+
j({ reactionsContainerRef: c });
|
|
88
|
+
const N = { props: t, emit: n, injectedUserId: f, injectedUserNames: g, reactionsContainerRef: c, reactionsMode: v, resolvedUserId: i, resolvedUserNames: m, resolvedUserName: R, showCount: M, reactionsState: d, displayedReactions: C, hasReactions: E, addReaction: I, removeReaction: y, toggleReaction: U, localReactions: _, patchReactions: u, syncReactionsToMessage: l, getReactionTooltip: K, isRight: x, canMutate: S, onToggle: O, EmojiGlyph: P, Tooltip: w };
|
|
89
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
118
90
|
}
|
|
119
91
|
});
|
|
120
92
|
export {
|
|
121
|
-
|
|
93
|
+
W as default
|
|
122
94
|
};
|
|
@@ -1,7 +1,100 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from "./MessageReactionsOverlay.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import M from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const u = ["title", "onClick"];
|
|
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"]]);
|
|
5
98
|
export {
|
|
6
|
-
|
|
99
|
+
Q as default
|
|
7
100
|
};
|