@mobilon-dev/chotto 0.3.97 → 0.3.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,28 +1,25 @@
|
|
|
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
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "message-feed__unread-amount"
|
|
25
|
-
}, vt = /* @__PURE__ */ be({
|
|
1
|
+
import { defineComponent as ie, ref as m, computed as o, provide as p, inject as T, unref as le, watch as ce, nextTick as D, onMounted as de } from "vue";
|
|
2
|
+
import ue from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
|
|
3
|
+
import fe from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
4
|
+
import me from "../../2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
|
|
5
|
+
import pe from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
6
|
+
import ge from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
|
|
7
|
+
import ye from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
|
|
8
|
+
import be from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
|
|
9
|
+
import { useFeedButton as he } from "./composables/useFeedButton.js";
|
|
10
|
+
import { useFeedComponents as Me } from "./composables/useFeedComponents.js";
|
|
11
|
+
import { useFeedGrouping as ke } from "./composables/useFeedGrouping.js";
|
|
12
|
+
import { useFeedKeyboard as Se } from "./composables/useFeedKeyboard.js";
|
|
13
|
+
import { useFeedLoadMore as Re } from "./composables/useFeedLoadMore.js";
|
|
14
|
+
import { useFeedMessageVisibility as ve } from "./composables/useFeedMessageVisibility.js";
|
|
15
|
+
import { useFeedReply as Be } from "./composables/useFeedReply.js";
|
|
16
|
+
import { useFeedScroll as Ie } from "./composables/useFeedScroll.js";
|
|
17
|
+
import { useFeedScrollTo as je } from "./composables/useFeedScrollTo.js";
|
|
18
|
+
import { useStickyDate as Ae } from "./composables/useStickyDate.js";
|
|
19
|
+
import { throttle as Ce } from "./functions/throttle.js";
|
|
20
|
+
import { getDefaultMessageMenuActions as Fe } from "./utils/getDefaultMessageMenuActions.js";
|
|
21
|
+
import Te from "./assets/chat-background.svg.js";
|
|
22
|
+
const Ye = /* @__PURE__ */ ie({
|
|
26
23
|
__name: "Feed",
|
|
27
24
|
props: {
|
|
28
25
|
objects: {
|
|
@@ -58,7 +55,7 @@ const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "messag
|
|
|
58
55
|
keyboardAlign: {
|
|
59
56
|
type: String,
|
|
60
57
|
default: "right",
|
|
61
|
-
validator: (
|
|
58
|
+
validator: (s) => ["left", "center", "right"].includes(s)
|
|
62
59
|
},
|
|
63
60
|
feedKeyboards: {
|
|
64
61
|
type: Array,
|
|
@@ -68,7 +65,7 @@ const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "messag
|
|
|
68
65
|
feedKeyboardAlign: {
|
|
69
66
|
type: String,
|
|
70
67
|
default: "right",
|
|
71
|
-
validator: (
|
|
68
|
+
validator: (s) => ["left", "center", "right"].includes(s)
|
|
72
69
|
},
|
|
73
70
|
chatBackground: {
|
|
74
71
|
type: String,
|
|
@@ -85,7 +82,7 @@ const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "messag
|
|
|
85
82
|
reactionsMode: {
|
|
86
83
|
type: String,
|
|
87
84
|
default: "single",
|
|
88
|
-
validator: (
|
|
85
|
+
validator: (s) => ["single", "multi"].includes(s)
|
|
89
86
|
},
|
|
90
87
|
/** Id текущего пользователя — для расчёта «моих» реакций */
|
|
91
88
|
currentUserId: {
|
|
@@ -117,7 +114,7 @@ const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "messag
|
|
|
117
114
|
*/
|
|
118
115
|
messageMenuActions: {
|
|
119
116
|
type: Array,
|
|
120
|
-
default: () =>
|
|
117
|
+
default: () => Fe()
|
|
121
118
|
}
|
|
122
119
|
},
|
|
123
120
|
emits: [
|
|
@@ -132,261 +129,133 @@ const He = { class: "message-feed-wrapper" }, Je = ["id"], Qe = { class: "messag
|
|
|
132
129
|
"smsInvite",
|
|
133
130
|
"delimiterRead"
|
|
134
131
|
],
|
|
135
|
-
setup(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
132
|
+
setup(s, { expose: O, emit: _ }) {
|
|
133
|
+
O();
|
|
134
|
+
const e = s, l = m(), n = m(), g = m(), {
|
|
135
|
+
isShowButton: w,
|
|
136
|
+
isKeyboardPlace: y,
|
|
137
|
+
checkButtonVisibility: b
|
|
138
|
+
} = he({
|
|
139
|
+
feedRef: n,
|
|
140
|
+
keyboardRef: g
|
|
141
|
+
}), { componentsMap: U } = Me(), x = o(() => e.reactionsEnabled), K = o(() => e.reactionsMode), h = o(() => e.currentUserId), M = o(() => e.reactionUserNames);
|
|
142
|
+
p("currentUserId", h), p("reactionUserNames", M), p(
|
|
145
143
|
"messageMenuActions",
|
|
146
|
-
|
|
144
|
+
o(() => e.messageMenuActions)
|
|
147
145
|
);
|
|
148
|
-
const { groupedObjects:
|
|
149
|
-
objects:
|
|
150
|
-
}),
|
|
151
|
-
if (
|
|
152
|
-
return
|
|
146
|
+
const { groupedObjects: q } = ke({
|
|
147
|
+
objects: o(() => e.objects)
|
|
148
|
+
}), c = T("chatAppId"), d = T("selectedChat", void 0), u = o(() => {
|
|
149
|
+
if (d)
|
|
150
|
+
return le(d);
|
|
153
151
|
});
|
|
154
|
-
function
|
|
155
|
-
return
|
|
152
|
+
function E(t) {
|
|
153
|
+
return t.timestamp;
|
|
156
154
|
}
|
|
157
|
-
function
|
|
158
|
-
var
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
155
|
+
function L(t) {
|
|
156
|
+
var F;
|
|
157
|
+
const i = t;
|
|
158
|
+
if (!i.dialogId || !((F = u.value) != null && F.dialogs))
|
|
161
159
|
return;
|
|
162
|
-
const
|
|
163
|
-
return
|
|
160
|
+
const a = u.value.dialogs.find((ne) => ne.dialogId === i.dialogId);
|
|
161
|
+
return a == null ? void 0 : a.channelId;
|
|
164
162
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
163
|
+
function N(t) {
|
|
164
|
+
return t.type === "message.call" && typeof e.callMessageOnCallback == "function" ? { onCall: e.callMessageOnCallback } : {};
|
|
167
165
|
}
|
|
168
|
-
const
|
|
169
|
-
checkScrollPosition:
|
|
170
|
-
startScrollWatch:
|
|
171
|
-
stopScrollWatch:
|
|
172
|
-
resetAllowFlags:
|
|
173
|
-
} =
|
|
174
|
-
feedRef:
|
|
175
|
-
emit:
|
|
176
|
-
isLoadingMoreRef:
|
|
166
|
+
const r = _, {
|
|
167
|
+
checkScrollPosition: k,
|
|
168
|
+
startScrollWatch: P,
|
|
169
|
+
stopScrollWatch: V,
|
|
170
|
+
resetAllowFlags: S
|
|
171
|
+
} = Re({
|
|
172
|
+
feedRef: n,
|
|
173
|
+
emit: r,
|
|
174
|
+
isLoadingMoreRef: o(() => e.isLoadingMore)
|
|
177
175
|
}), {
|
|
178
|
-
getMessage:
|
|
179
|
-
messageAction:
|
|
180
|
-
handleClickReplied:
|
|
181
|
-
feedObjectDoubleClick:
|
|
182
|
-
handleResetReply:
|
|
183
|
-
handleResetEdit:
|
|
184
|
-
} =
|
|
185
|
-
enableDoubleClickReply:
|
|
186
|
-
emit:
|
|
176
|
+
getMessage: W,
|
|
177
|
+
messageAction: z,
|
|
178
|
+
handleClickReplied: $,
|
|
179
|
+
feedObjectDoubleClick: G,
|
|
180
|
+
handleResetReply: H,
|
|
181
|
+
handleResetEdit: J
|
|
182
|
+
} = Be({
|
|
183
|
+
enableDoubleClickReply: e.enableDoubleClickReply,
|
|
184
|
+
emit: r
|
|
187
185
|
});
|
|
188
|
-
function
|
|
189
|
-
|
|
186
|
+
function Q(t) {
|
|
187
|
+
r("smsInvite", t);
|
|
190
188
|
}
|
|
191
|
-
function
|
|
192
|
-
|
|
189
|
+
function X(t) {
|
|
190
|
+
r("delimiterRead", t);
|
|
193
191
|
}
|
|
194
192
|
const {
|
|
195
|
-
showKeyboard:
|
|
196
|
-
keyboardAction:
|
|
197
|
-
feedKeyboardAction:
|
|
198
|
-
} =
|
|
199
|
-
isKeyboardPlace:
|
|
200
|
-
objects:
|
|
201
|
-
emit:
|
|
193
|
+
showKeyboard: Y,
|
|
194
|
+
keyboardAction: Z,
|
|
195
|
+
feedKeyboardAction: ee
|
|
196
|
+
} = Se({
|
|
197
|
+
isKeyboardPlace: y,
|
|
198
|
+
objects: o(() => e.objects),
|
|
199
|
+
emit: r
|
|
202
200
|
}), {
|
|
203
|
-
showStickyDate:
|
|
204
|
-
stickyDateText:
|
|
205
|
-
show:
|
|
206
|
-
} =
|
|
207
|
-
feedRef:
|
|
208
|
-
trackingObjects:
|
|
201
|
+
showStickyDate: te,
|
|
202
|
+
stickyDateText: oe,
|
|
203
|
+
show: R
|
|
204
|
+
} = Ae({
|
|
205
|
+
feedRef: n,
|
|
206
|
+
trackingObjects: l
|
|
209
207
|
}), {
|
|
210
|
-
isInitialized:
|
|
211
|
-
initializeScroll:
|
|
212
|
-
smoothScrollToBottom:
|
|
213
|
-
} =
|
|
214
|
-
feedRef:
|
|
215
|
-
objectsRef:
|
|
216
|
-
scrollToBottomRef:
|
|
217
|
-
}),
|
|
218
|
-
function
|
|
219
|
-
|
|
208
|
+
isInitialized: v,
|
|
209
|
+
initializeScroll: B,
|
|
210
|
+
smoothScrollToBottom: I
|
|
211
|
+
} = Ie({
|
|
212
|
+
feedRef: n,
|
|
213
|
+
objectsRef: o(() => e.objects),
|
|
214
|
+
scrollToBottomRef: o(() => e.scrollToBottom)
|
|
215
|
+
}), re = o(() => e.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(Te)}`);
|
|
216
|
+
function f(t = !0) {
|
|
217
|
+
b(), k(t), R();
|
|
220
218
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
223
|
-
|
|
219
|
+
const se = Ce(() => f(), 250);
|
|
220
|
+
function ae() {
|
|
221
|
+
r("forceScrollToBottom"), I();
|
|
224
222
|
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
const
|
|
229
|
-
return
|
|
223
|
+
function j(t) {
|
|
224
|
+
const i = e.objects;
|
|
225
|
+
if (t.startsWith("mid-")) {
|
|
226
|
+
const a = parseInt(t.slice(4), 10);
|
|
227
|
+
return i[a];
|
|
230
228
|
}
|
|
231
|
-
return
|
|
229
|
+
return i.find((a) => a.messageId === t);
|
|
232
230
|
}
|
|
233
|
-
const { restartObserving:
|
|
234
|
-
trackingObjects:
|
|
235
|
-
chatAppId:
|
|
236
|
-
getMessageById:
|
|
237
|
-
onMessageVisible: (
|
|
231
|
+
const { restartObserving: A } = ve({
|
|
232
|
+
trackingObjects: l,
|
|
233
|
+
chatAppId: c,
|
|
234
|
+
getMessageById: j,
|
|
235
|
+
onMessageVisible: (t) => r("messageVisible", t)
|
|
238
236
|
});
|
|
239
|
-
|
|
240
|
-
() =>
|
|
237
|
+
ce(
|
|
238
|
+
() => e.objects,
|
|
241
239
|
() => {
|
|
242
|
-
|
|
240
|
+
D(() => {
|
|
243
241
|
requestAnimationFrame(() => {
|
|
244
|
-
|
|
242
|
+
S(), f(!1), l.value = document.querySelectorAll(".tracking-message"), A();
|
|
245
243
|
});
|
|
246
244
|
});
|
|
247
245
|
},
|
|
248
246
|
{ immediate: !0 }
|
|
249
|
-
),
|
|
250
|
-
targetIdRef:
|
|
251
|
-
feedContainerId: `feed-container-${
|
|
252
|
-
}),
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
), je({
|
|
248
|
+
targetIdRef: o(() => e.scrollTo),
|
|
249
|
+
feedContainerId: `feed-container-${c}`
|
|
250
|
+
}), de(() => {
|
|
251
|
+
D(() => {
|
|
252
|
+
e.objects.length > 0 && !v.value && B();
|
|
255
253
|
});
|
|
256
|
-
})
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
]));
|
|
254
|
+
});
|
|
255
|
+
const C = { props: e, trackingObjects: l, refFeed: n, keyboardRef: g, isShowButton: w, isKeyboardPlace: y, checkButtonVisibility: b, componentsMap: U, reactionsEnabled: x, reactionsMode: K, currentUserId: h, reactionUserNames: M, groupedObjects: q, chatAppId: c, selectedChatInjected: d, selectedChat: u, getMessageTimestamp: E, getChannelForMessage: L, getExtraMessageProps: N, emit: r, checkScrollPosition: k, startScrollWatch: P, stopScrollWatch: V, resetAllowFlags: S, getMessage: W, messageAction: z, handleClickReplied: $, feedObjectDoubleClick: G, handleResetReply: H, handleResetEdit: J, handleSmsInvite: Q, handleDelimiterRead: X, showKeyboard: Y, keyboardAction: Z, feedKeyboardAction: ee, showStickyDate: te, stickyDateText: oe, showStickyDateComponent: R, isInitialized: v, initializeScroll: B, smoothScrollToBottom: I, defaultBackground: re, scrollTopCheck: f, throttledScrollTopCheck: se, scrollToBottomForce: ae, getMessageById: j, restartObserving: A, DateMessageSticky: ue, BaseReplyMessage: fe, BaseEditMessage: me, MessageKeyboard: pe, FeedKeyboard: ge, TypingMessage: ye, LoadingIndicator: be };
|
|
256
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
388
257
|
}
|
|
389
258
|
});
|
|
390
259
|
export {
|
|
391
|
-
|
|
260
|
+
Ye as default
|
|
392
261
|
};
|