@mobilon-dev/chotto 0.3.98 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
- package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -31
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
- package/package.json +1 -1
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useFeedButton as
|
|
10
|
-
import { useFeedComponents as
|
|
11
|
-
import { useFeedGrouping as
|
|
12
|
-
import { useFeedKeyboard as
|
|
13
|
-
import { useFeedLoadMore as
|
|
14
|
-
import { useFeedMessageVisibility as
|
|
15
|
-
import { useFeedReply as
|
|
16
|
-
import { useFeedScroll as
|
|
17
|
-
import { useFeedScrollTo as
|
|
18
|
-
import { useStickyDate as
|
|
19
|
-
import { throttle as
|
|
20
|
-
import { getDefaultMessageMenuActions as
|
|
21
|
-
import
|
|
22
|
-
const Ye =
|
|
1
|
+
import { defineComponent as be, ref as h, computed as r, provide as v, inject as K, unref as t, watch as ke, nextTick as x, onMounted as he, createElementBlock as c, openBlock as i, createVNode as g, createBlock as u, createCommentVNode as l, normalizeStyle as O, renderSlot as L, withDirectives as ve, createElementVNode as M, vShow as Me, Transition as S, withCtx as R, Fragment as Se, renderList as Re, resolveDynamicComponent as Ie, mergeProps as Ae, toDisplayString as Be, Teleport as U } from "vue";
|
|
2
|
+
import Ce from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
|
|
3
|
+
import Fe from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
4
|
+
import Te from "../../2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
|
|
5
|
+
import De from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
6
|
+
import we from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
|
|
7
|
+
import je from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
|
|
8
|
+
import Ke from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
|
|
9
|
+
import { useFeedButton as xe } from "./composables/useFeedButton.js";
|
|
10
|
+
import { useFeedComponents as Oe } from "./composables/useFeedComponents.js";
|
|
11
|
+
import { useFeedGrouping as Le } from "./composables/useFeedGrouping.js";
|
|
12
|
+
import { useFeedKeyboard as Ue } from "./composables/useFeedKeyboard.js";
|
|
13
|
+
import { useFeedLoadMore as Ee } from "./composables/useFeedLoadMore.js";
|
|
14
|
+
import { useFeedMessageVisibility as Ne } from "./composables/useFeedMessageVisibility.js";
|
|
15
|
+
import { useFeedReply as Ve } from "./composables/useFeedReply.js";
|
|
16
|
+
import { useFeedScroll as $e } from "./composables/useFeedScroll.js";
|
|
17
|
+
import { useFeedScrollTo as qe } from "./composables/useFeedScrollTo.js";
|
|
18
|
+
import { useStickyDate as Pe } from "./composables/useStickyDate.js";
|
|
19
|
+
import { throttle as ze } from "./functions/throttle.js";
|
|
20
|
+
import { getDefaultMessageMenuActions as We } from "./utils/getDefaultMessageMenuActions.js";
|
|
21
|
+
import Ge from "./assets/chat-background.svg.js";
|
|
22
|
+
const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "message-feed__loading" }, Xe = ["id", "data-timestamp", "onDblclick"], Ye = { style: { margin: "auto" } }, Ze = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "message-feed__unread-amount"
|
|
25
|
+
}, vt = /* @__PURE__ */ be({
|
|
23
26
|
__name: "Feed",
|
|
24
27
|
props: {
|
|
25
28
|
objects: {
|
|
@@ -55,7 +58,7 @@ const Ye = /* @__PURE__ */ ie({
|
|
|
55
58
|
keyboardAlign: {
|
|
56
59
|
type: String,
|
|
57
60
|
default: "right",
|
|
58
|
-
validator: (
|
|
61
|
+
validator: (e) => ["left", "center", "right"].includes(e)
|
|
59
62
|
},
|
|
60
63
|
feedKeyboards: {
|
|
61
64
|
type: Array,
|
|
@@ -65,7 +68,7 @@ const Ye = /* @__PURE__ */ ie({
|
|
|
65
68
|
feedKeyboardAlign: {
|
|
66
69
|
type: String,
|
|
67
70
|
default: "right",
|
|
68
|
-
validator: (
|
|
71
|
+
validator: (e) => ["left", "center", "right"].includes(e)
|
|
69
72
|
},
|
|
70
73
|
chatBackground: {
|
|
71
74
|
type: String,
|
|
@@ -82,7 +85,7 @@ const Ye = /* @__PURE__ */ ie({
|
|
|
82
85
|
reactionsMode: {
|
|
83
86
|
type: String,
|
|
84
87
|
default: "single",
|
|
85
|
-
validator: (
|
|
88
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
86
89
|
},
|
|
87
90
|
/** Id текущего пользователя — для расчёта «моих» реакций */
|
|
88
91
|
currentUserId: {
|
|
@@ -114,7 +117,7 @@ const Ye = /* @__PURE__ */ ie({
|
|
|
114
117
|
*/
|
|
115
118
|
messageMenuActions: {
|
|
116
119
|
type: Array,
|
|
117
|
-
default: () =>
|
|
120
|
+
default: () => We()
|
|
118
121
|
}
|
|
119
122
|
},
|
|
120
123
|
emits: [
|
|
@@ -129,133 +132,261 @@ const Ye = /* @__PURE__ */ ie({
|
|
|
129
132
|
"smsInvite",
|
|
130
133
|
"delimiterRead"
|
|
131
134
|
],
|
|
132
|
-
setup(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
p("currentUserId", h), p("reactionUserNames", M), p(
|
|
135
|
+
setup(e, { emit: E }) {
|
|
136
|
+
const a = e, k = h(), m = h(), I = h(), {
|
|
137
|
+
isShowButton: N,
|
|
138
|
+
isKeyboardPlace: V,
|
|
139
|
+
checkButtonVisibility: $
|
|
140
|
+
} = xe({
|
|
141
|
+
feedRef: m,
|
|
142
|
+
keyboardRef: I
|
|
143
|
+
}), { componentsMap: q } = Oe(), P = r(() => a.reactionsEnabled), z = r(() => a.reactionsMode), A = r(() => a.currentUserId), B = r(() => a.reactionUserNames);
|
|
144
|
+
v("currentUserId", A), v("reactionUserNames", B), v(
|
|
143
145
|
"messageMenuActions",
|
|
144
|
-
|
|
146
|
+
r(() => a.messageMenuActions)
|
|
145
147
|
);
|
|
146
|
-
const { groupedObjects:
|
|
147
|
-
objects:
|
|
148
|
-
}),
|
|
149
|
-
if (
|
|
150
|
-
return
|
|
148
|
+
const { groupedObjects: W } = Le({
|
|
149
|
+
objects: r(() => a.objects)
|
|
150
|
+
}), y = K("chatAppId"), C = K("selectedChat", void 0), F = r(() => {
|
|
151
|
+
if (C)
|
|
152
|
+
return t(C);
|
|
151
153
|
});
|
|
152
|
-
function
|
|
153
|
-
return
|
|
154
|
+
function G(s) {
|
|
155
|
+
return s.timestamp;
|
|
154
156
|
}
|
|
155
|
-
function
|
|
156
|
-
var
|
|
157
|
-
const
|
|
158
|
-
if (!
|
|
157
|
+
function H(s) {
|
|
158
|
+
var f;
|
|
159
|
+
const n = s;
|
|
160
|
+
if (!n.dialogId || !((f = F.value) != null && f.dialogs))
|
|
159
161
|
return;
|
|
160
|
-
const
|
|
161
|
-
return
|
|
162
|
+
const o = F.value.dialogs.find((b) => b.dialogId === n.dialogId);
|
|
163
|
+
return o == null ? void 0 : o.channelId;
|
|
162
164
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
165
|
+
function J(s) {
|
|
166
|
+
return s.type === "message.call" && typeof a.callMessageOnCallback == "function" ? { onCall: a.callMessageOnCallback } : {};
|
|
165
167
|
}
|
|
166
|
-
const
|
|
167
|
-
checkScrollPosition:
|
|
168
|
-
startScrollWatch:
|
|
169
|
-
stopScrollWatch:
|
|
170
|
-
resetAllowFlags:
|
|
171
|
-
} =
|
|
172
|
-
feedRef:
|
|
173
|
-
emit:
|
|
174
|
-
isLoadingMoreRef:
|
|
168
|
+
const d = E, {
|
|
169
|
+
checkScrollPosition: Q,
|
|
170
|
+
startScrollWatch: T,
|
|
171
|
+
stopScrollWatch: D,
|
|
172
|
+
resetAllowFlags: X
|
|
173
|
+
} = Ee({
|
|
174
|
+
feedRef: m,
|
|
175
|
+
emit: d,
|
|
176
|
+
isLoadingMoreRef: r(() => a.isLoadingMore)
|
|
175
177
|
}), {
|
|
176
|
-
getMessage:
|
|
177
|
-
messageAction:
|
|
178
|
-
handleClickReplied:
|
|
179
|
-
feedObjectDoubleClick:
|
|
180
|
-
handleResetReply:
|
|
181
|
-
handleResetEdit:
|
|
182
|
-
} =
|
|
183
|
-
enableDoubleClickReply:
|
|
184
|
-
emit:
|
|
178
|
+
getMessage: p,
|
|
179
|
+
messageAction: Y,
|
|
180
|
+
handleClickReplied: Z,
|
|
181
|
+
feedObjectDoubleClick: _,
|
|
182
|
+
handleResetReply: ee,
|
|
183
|
+
handleResetEdit: te
|
|
184
|
+
} = Ve({
|
|
185
|
+
enableDoubleClickReply: a.enableDoubleClickReply,
|
|
186
|
+
emit: d
|
|
185
187
|
});
|
|
186
|
-
function
|
|
187
|
-
|
|
188
|
+
function oe(s) {
|
|
189
|
+
d("smsInvite", s);
|
|
188
190
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
+
function se(s) {
|
|
192
|
+
d("delimiterRead", s);
|
|
191
193
|
}
|
|
192
194
|
const {
|
|
193
|
-
showKeyboard:
|
|
194
|
-
keyboardAction:
|
|
195
|
-
feedKeyboardAction:
|
|
196
|
-
} =
|
|
197
|
-
isKeyboardPlace:
|
|
198
|
-
objects:
|
|
199
|
-
emit:
|
|
195
|
+
showKeyboard: ae,
|
|
196
|
+
keyboardAction: ne,
|
|
197
|
+
feedKeyboardAction: ie
|
|
198
|
+
} = Ue({
|
|
199
|
+
isKeyboardPlace: V,
|
|
200
|
+
objects: r(() => a.objects),
|
|
201
|
+
emit: d
|
|
200
202
|
}), {
|
|
201
|
-
showStickyDate:
|
|
202
|
-
stickyDateText:
|
|
203
|
-
show:
|
|
204
|
-
} =
|
|
205
|
-
feedRef:
|
|
206
|
-
trackingObjects:
|
|
203
|
+
showStickyDate: re,
|
|
204
|
+
stickyDateText: le,
|
|
205
|
+
show: de
|
|
206
|
+
} = Pe({
|
|
207
|
+
feedRef: m,
|
|
208
|
+
trackingObjects: k
|
|
207
209
|
}), {
|
|
208
|
-
isInitialized:
|
|
209
|
-
initializeScroll:
|
|
210
|
-
smoothScrollToBottom:
|
|
211
|
-
} =
|
|
212
|
-
feedRef:
|
|
213
|
-
objectsRef:
|
|
214
|
-
scrollToBottomRef:
|
|
215
|
-
}),
|
|
216
|
-
function
|
|
217
|
-
|
|
210
|
+
isInitialized: ce,
|
|
211
|
+
initializeScroll: ue,
|
|
212
|
+
smoothScrollToBottom: me
|
|
213
|
+
} = $e({
|
|
214
|
+
feedRef: m,
|
|
215
|
+
objectsRef: r(() => a.objects),
|
|
216
|
+
scrollToBottomRef: r(() => a.scrollToBottom)
|
|
217
|
+
}), w = r(() => a.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(Ge)}`);
|
|
218
|
+
function j(s = !0) {
|
|
219
|
+
$(), Q(s), de();
|
|
218
220
|
}
|
|
219
|
-
const
|
|
220
|
-
function
|
|
221
|
-
|
|
221
|
+
const fe = ze(() => j(), 250);
|
|
222
|
+
function ge() {
|
|
223
|
+
d("forceScrollToBottom"), me();
|
|
222
224
|
}
|
|
223
|
-
function
|
|
224
|
-
const
|
|
225
|
-
if (
|
|
226
|
-
const
|
|
227
|
-
return
|
|
225
|
+
function ye(s) {
|
|
226
|
+
const n = a.objects;
|
|
227
|
+
if (s.startsWith("mid-")) {
|
|
228
|
+
const o = parseInt(s.slice(4), 10);
|
|
229
|
+
return n[o];
|
|
228
230
|
}
|
|
229
|
-
return
|
|
231
|
+
return n.find((o) => o.messageId === s);
|
|
230
232
|
}
|
|
231
|
-
const { restartObserving:
|
|
232
|
-
trackingObjects:
|
|
233
|
-
chatAppId:
|
|
234
|
-
getMessageById:
|
|
235
|
-
onMessageVisible: (
|
|
233
|
+
const { restartObserving: pe } = Ne({
|
|
234
|
+
trackingObjects: k,
|
|
235
|
+
chatAppId: y,
|
|
236
|
+
getMessageById: ye,
|
|
237
|
+
onMessageVisible: (s) => d("messageVisible", s)
|
|
236
238
|
});
|
|
237
|
-
|
|
238
|
-
() =>
|
|
239
|
+
return ke(
|
|
240
|
+
() => a.objects,
|
|
239
241
|
() => {
|
|
240
|
-
|
|
242
|
+
x(() => {
|
|
241
243
|
requestAnimationFrame(() => {
|
|
242
|
-
|
|
244
|
+
X(), j(!1), k.value = document.querySelectorAll(".tracking-message"), pe();
|
|
243
245
|
});
|
|
244
246
|
});
|
|
245
247
|
},
|
|
246
248
|
{ immediate: !0 }
|
|
247
|
-
),
|
|
248
|
-
targetIdRef:
|
|
249
|
-
feedContainerId: `feed-container-${
|
|
250
|
-
}),
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
), qe({
|
|
250
|
+
targetIdRef: r(() => a.scrollTo),
|
|
251
|
+
feedContainerId: `feed-container-${y}`
|
|
252
|
+
}), he(() => {
|
|
253
|
+
x(() => {
|
|
254
|
+
a.objects.length > 0 && !ce.value && ue();
|
|
253
255
|
});
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
}), (s, n) => (i(), c("div", He, [
|
|
257
|
+
e.objects.length > 0 || e.typing ? (i(), c("div", {
|
|
258
|
+
key: 0,
|
|
259
|
+
id: "feed-container-" + t(y),
|
|
260
|
+
ref_key: "refFeed",
|
|
261
|
+
ref: m,
|
|
262
|
+
class: "message-feed",
|
|
263
|
+
style: O({ backgroundImage: `url(${w.value})` }),
|
|
264
|
+
onScroll: n[0] || (n[0] = (o) => t(fe)()),
|
|
265
|
+
onMousedown: n[1] || (n[1] = //@ts-ignore
|
|
266
|
+
(...o) => t(T) && t(T)(...o)),
|
|
267
|
+
onMouseup: n[2] || (n[2] = //@ts-ignore
|
|
268
|
+
(...o) => t(D) && t(D)(...o))
|
|
269
|
+
}, [
|
|
270
|
+
L(s.$slots, "prepend", {}, void 0, !0),
|
|
271
|
+
ve(M("div", Qe, [
|
|
272
|
+
g(Ke, {
|
|
273
|
+
"is-loading": e.isLoadingMore,
|
|
274
|
+
size: "small",
|
|
275
|
+
position: "top"
|
|
276
|
+
}, null, 8, ["is-loading"])
|
|
277
|
+
], 512), [
|
|
278
|
+
[Me, e.isLoadingMore]
|
|
279
|
+
]),
|
|
280
|
+
g(S, null, {
|
|
281
|
+
default: R(() => [
|
|
282
|
+
t(re) && !e.isLoadingMore ? (i(), u(Ce, {
|
|
283
|
+
key: 0,
|
|
284
|
+
class: "message-feed__sticky-date",
|
|
285
|
+
text: t(le)
|
|
286
|
+
}, null, 8, ["text"])) : l("", !0)
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}),
|
|
290
|
+
(i(!0), c(Se, null, Re(t(W), (o, f) => (i(), c("div", {
|
|
291
|
+
id: "msg-" + (o.messageId ?? "mid-" + f),
|
|
292
|
+
key: o.messageId ?? "mid-" + f,
|
|
293
|
+
"data-timestamp": G(o),
|
|
294
|
+
class: "tracking-message",
|
|
295
|
+
onDblclick: (b) => t(_)(b, o)
|
|
296
|
+
}, [
|
|
297
|
+
(i(), u(Ie(t(q)(o)), Ae({
|
|
298
|
+
key: o.messageId ?? "mid-" + f,
|
|
299
|
+
class: "message-feed__message",
|
|
300
|
+
message: o,
|
|
301
|
+
"apply-style": e.applyStyle,
|
|
302
|
+
"is-first-in-series": o.isFirstInSeries,
|
|
303
|
+
"reactions-enabled": P.value,
|
|
304
|
+
"reactions-mode": z.value,
|
|
305
|
+
"current-user-id": A.value,
|
|
306
|
+
"reaction-user-names": B.value,
|
|
307
|
+
"subtext-tooltip-data": e.subtextTooltipData,
|
|
308
|
+
channel: H(o)
|
|
309
|
+
}, { ref_for: !0 }, J(o), {
|
|
310
|
+
onAction: t(Y),
|
|
311
|
+
onReply: t(Z),
|
|
312
|
+
onSmsInvite: (b) => oe(o),
|
|
313
|
+
onRead: se
|
|
314
|
+
}), null, 16, ["message", "apply-style", "is-first-in-series", "reactions-enabled", "reactions-mode", "current-user-id", "reaction-user-names", "subtext-tooltip-data", "channel", "onAction", "onReply", "onSmsInvite"]))
|
|
315
|
+
], 40, Xe))), 128)),
|
|
316
|
+
e.typing ? (i(), u(je, {
|
|
317
|
+
key: 0,
|
|
318
|
+
message: {
|
|
319
|
+
subText: e.typing.title,
|
|
320
|
+
avatar: e.typing.avatar
|
|
321
|
+
}
|
|
322
|
+
}, null, 8, ["message"])) : l("", !0),
|
|
323
|
+
g(S, null, {
|
|
324
|
+
default: R(() => [
|
|
325
|
+
t(ae) ? (i(), u(De, {
|
|
326
|
+
key: 0,
|
|
327
|
+
ref_key: "keyboardRef",
|
|
328
|
+
ref: I,
|
|
329
|
+
class: "message-feed__keyboard",
|
|
330
|
+
keyboard: e.objects[e.objects.length - 1].keyboard,
|
|
331
|
+
align: e.keyboardAlign,
|
|
332
|
+
onAction: t(ne)
|
|
333
|
+
}, null, 8, ["keyboard", "align", "onAction"])) : l("", !0)
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}),
|
|
337
|
+
e.feedKeyboards && e.feedKeyboards.length > 0 ? (i(), u(we, {
|
|
338
|
+
key: 1,
|
|
339
|
+
buttons: e.feedKeyboards,
|
|
340
|
+
align: e.feedKeyboardAlign,
|
|
341
|
+
onAction: t(ie)
|
|
342
|
+
}, null, 8, ["buttons", "align", "onAction"])) : l("", !0)
|
|
343
|
+
], 44, Je)) : (i(), c("div", {
|
|
344
|
+
key: 1,
|
|
345
|
+
ref_key: "refFeed",
|
|
346
|
+
ref: m,
|
|
347
|
+
class: "message-feed",
|
|
348
|
+
style: O({ backgroundImage: `url(${w.value})` })
|
|
349
|
+
}, [
|
|
350
|
+
M("div", Ye, [
|
|
351
|
+
L(s.$slots, "empty-feed", {}, void 0, !0)
|
|
352
|
+
])
|
|
353
|
+
], 4)),
|
|
354
|
+
g(S, null, {
|
|
355
|
+
default: R(() => [
|
|
356
|
+
t(N) ? (i(), c("button", {
|
|
357
|
+
key: 0,
|
|
358
|
+
class: "message-feed__button-down",
|
|
359
|
+
onClick: ge
|
|
360
|
+
}, [
|
|
361
|
+
e.buttonParams ? (i(), c("div", Ze, Be(e.buttonParams.unreadAmount), 1)) : l("", !0),
|
|
362
|
+
n[3] || (n[3] = M("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
|
363
|
+
])) : l("", !0)
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
}),
|
|
367
|
+
t(p)().reply ? (i(), u(U, {
|
|
368
|
+
key: 2,
|
|
369
|
+
to: "#chat-input-reply-line-" + t(y)
|
|
370
|
+
}, [
|
|
371
|
+
g(Fe, {
|
|
372
|
+
class: "chat-input-reply",
|
|
373
|
+
message: t(p)().reply,
|
|
374
|
+
onReset: t(ee)
|
|
375
|
+
}, null, 8, ["message", "onReset"])
|
|
376
|
+
], 8, ["to"])) : l("", !0),
|
|
377
|
+
t(p)().edit ? (i(), u(U, {
|
|
378
|
+
key: 3,
|
|
379
|
+
to: "#chat-input-reply-line-" + t(y)
|
|
380
|
+
}, [
|
|
381
|
+
g(Te, {
|
|
382
|
+
class: "chat-input-reply",
|
|
383
|
+
message: t(p)().edit,
|
|
384
|
+
onReset: t(te)
|
|
385
|
+
}, null, 8, ["message", "onReset"])
|
|
386
|
+
], 8, ["to"])) : l("", !0)
|
|
387
|
+
]));
|
|
257
388
|
}
|
|
258
389
|
});
|
|
259
390
|
export {
|
|
260
|
-
|
|
391
|
+
vt as default
|
|
261
392
|
};
|