@mobilon-dev/chotto 0.3.121 → 0.3.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +59 -40
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +35 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/DeletedMessageIcon.vue.js +11 -17
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/VerifiedBadge.vue.js +19 -25
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +46 -12
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -62
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +45 -76
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +58 -32
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +35 -41
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +68 -36
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +42 -22
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -57
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +118 -34
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -94
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -348
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -308
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -321
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +19 -36
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -170
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +166 -256
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
- package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
- package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -33
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
- package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref as l, createElementBlock as n, openBlock as i, createElementVNode as s, createCommentVNode as f, createVNode as p, unref as a } from "vue";
|
|
2
2
|
import { t as m } from "../../../locale/useLocale.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import h from "../../1_icons/SearchIcon.vue.js";
|
|
4
|
+
import v from "../../1_icons/CloseButtonIcon.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import I from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const x = {
|
|
7
|
+
const C = { class: "chat-filter__container" }, k = { class: "chat-filter__icon" }, x = ["placeholder"], y = {
|
|
8
8
|
__name: "ChatFilter",
|
|
9
9
|
props: {
|
|
10
10
|
placeholder: {
|
|
@@ -14,43 +14,37 @@ const x = {
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update"],
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
setup(c, { emit: u }) {
|
|
18
|
+
const t = l(""), r = u, o = l(""), d = () => {
|
|
19
|
+
const e = a(t);
|
|
20
|
+
o.value = e.value, r("update", e.value);
|
|
21
|
+
}, _ = () => {
|
|
22
|
+
const e = a(t);
|
|
23
|
+
e.value = "", o.value = "", r("update", ""), e.focus();
|
|
24
|
+
};
|
|
25
|
+
return (e, V) => (i(), n("div", C, [
|
|
26
|
+
s("div", k, [
|
|
27
|
+
p(h)
|
|
28
|
+
]),
|
|
29
|
+
s("input", {
|
|
30
|
+
ref_key: "refInput",
|
|
31
|
+
ref: t,
|
|
32
|
+
class: "chat-filter__input",
|
|
33
|
+
"data-testid": "chat-filter-input",
|
|
34
|
+
type: "text",
|
|
35
|
+
placeholder: c.placeholder ? c.placeholder : a(m)("component.ChatFilter.InputPlaceholder"),
|
|
36
|
+
onInput: d
|
|
37
|
+
}, null, 40, x),
|
|
38
|
+
o.value ? (i(), n("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "chat-filter__clear",
|
|
41
|
+
onClick: _
|
|
42
|
+
}, [
|
|
43
|
+
p(v)
|
|
44
|
+
])) : f("", !0)
|
|
45
|
+
]));
|
|
29
46
|
}
|
|
30
|
-
},
|
|
31
|
-
function k(l, i, o, e, s, r) {
|
|
32
|
-
return _(), u("div", F, [
|
|
33
|
-
d("div", S, [
|
|
34
|
-
f(e.SearchIcon)
|
|
35
|
-
]),
|
|
36
|
-
d("input", {
|
|
37
|
-
ref: "refInput",
|
|
38
|
-
class: "chat-filter__input",
|
|
39
|
-
"data-testid": "chat-filter-input",
|
|
40
|
-
type: "text",
|
|
41
|
-
placeholder: o.placeholder ? o.placeholder : e.t("component.ChatFilter.InputPlaceholder"),
|
|
42
|
-
onInput: e.update
|
|
43
|
-
}, null, 40, V),
|
|
44
|
-
e.inputValue ? (_(), u("div", {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "chat-filter__clear",
|
|
47
|
-
onClick: e.clear
|
|
48
|
-
}, [
|
|
49
|
-
f(e.CloseButtonIcon)
|
|
50
|
-
])) : h("v-if", !0)
|
|
51
|
-
]);
|
|
52
|
-
}
|
|
53
|
-
const q = /* @__PURE__ */ I(x, [["render", k], ["__scopeId", "data-v-16b0c439"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatFilter/ChatFilter.vue"]]);
|
|
47
|
+
}, g = /* @__PURE__ */ I(y, [["__scopeId", "data-v-11403dab"]]);
|
|
54
48
|
export {
|
|
55
|
-
|
|
49
|
+
g as default
|
|
56
50
|
};
|
|
@@ -1,309 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as a, openBlock as e, createElementVNode as o, createCommentVNode as s, withModifiers as k, normalizeClass as _, normalizeStyle as m, createVNode as r, createBlock as c, renderSlot as u, withCtx as h, toDisplayString as d, resolveDynamicComponent as v, Teleport as y, Fragment as M, renderList as x } from "vue";
|
|
1
|
+
import t from "./ChatItem.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "chat-item__avatar-placeholder"
|
|
8
|
-
}, S = { class: "chat-item__info-container" }, L = { class: "chat-item__title-row" }, A = ["innerHTML"], B = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "chat-item__name"
|
|
11
|
-
}, D = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "chat-item__last-message"
|
|
14
|
-
}, E = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "chat-item__last-message-text chat-item__last-message-text--draft"
|
|
17
|
-
}, H = { class: "chat-item__draft-label" }, U = ["innerHTML"], V = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "chat-item__draft-text"
|
|
20
|
-
}, P = ["innerHTML"], F = {
|
|
21
|
-
key: 3,
|
|
22
|
-
class: "chat-item__last-message-text"
|
|
23
|
-
}, j = { class: "chat-item__details-container" }, N = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "chat-item__time"
|
|
26
|
-
}, R = { class: "chat-item__status-unread-container" }, z = {
|
|
27
|
-
key: 1,
|
|
28
|
-
class: "chat-item__unread"
|
|
29
|
-
}, q = {
|
|
30
|
-
key: 2,
|
|
31
|
-
class: "chat-item__status-chat-container"
|
|
32
|
-
}, G = {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "chat-item__fixed pi pi-thumbtack"
|
|
35
|
-
}, J = {
|
|
36
|
-
key: 0,
|
|
37
|
-
id: "noSelectButton",
|
|
38
|
-
class: "chat-item__menu-button"
|
|
39
|
-
}, K = {
|
|
40
|
-
key: 1,
|
|
41
|
-
id: "noSelectButton",
|
|
42
|
-
class: "chat-item__menu-button"
|
|
43
|
-
}, O = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "dialog__container"
|
|
46
|
-
}, Q = ["onClick"], W = ["src"], X = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "dialog__icon pi pi-user"
|
|
49
|
-
}, Y = { class: "dialog__text-container" }, Z = { class: "dialog__name" }, p = { class: "dialog__time" };
|
|
50
|
-
function $(g, l, i, t, tt, et) {
|
|
51
|
-
return e(), a("div", null, [
|
|
52
|
-
o("div", {
|
|
53
|
-
ref: "containerRef",
|
|
54
|
-
class: _(["chat-item__container", t.getClass()]),
|
|
55
|
-
"data-testid": "chat-item",
|
|
56
|
-
"data-chat-id": t.props.chat.chatId,
|
|
57
|
-
onMouseenter: t.onMouseEnter,
|
|
58
|
-
onMouseleave: t.onMouseLeave,
|
|
59
|
-
onClick: t.selectChat,
|
|
60
|
-
onContextmenu: k(t.onRightClick, ["prevent"])
|
|
61
|
-
}, [
|
|
62
|
-
o("div", I, [
|
|
63
|
-
o(
|
|
64
|
-
"span",
|
|
65
|
-
{
|
|
66
|
-
class: "chat-item__status-user",
|
|
67
|
-
style: m({ backgroundColor: t.props.chat.status })
|
|
68
|
-
},
|
|
69
|
-
null,
|
|
70
|
-
4
|
|
71
|
-
/* STYLE */
|
|
72
|
-
),
|
|
73
|
-
t.props.chat.avatar ? (e(), a("img", {
|
|
74
|
-
key: 0,
|
|
75
|
-
src: t.props.chat.avatar,
|
|
76
|
-
height: "48",
|
|
77
|
-
width: "48"
|
|
78
|
-
}, null, 8, T)) : (e(), a("div", w, [
|
|
79
|
-
r(t.AvatarIcon)
|
|
80
|
-
]))
|
|
81
|
-
]),
|
|
82
|
-
o("div", S, [
|
|
83
|
-
o("div", L, [
|
|
84
|
-
r(t.Tooltip, {
|
|
85
|
-
text: i.chat.name,
|
|
86
|
-
position: "bottom"
|
|
87
|
-
}, {
|
|
88
|
-
default: h(() => [
|
|
89
|
-
t.useAppleEmojisInName ? (e(), a("div", {
|
|
90
|
-
key: 0,
|
|
91
|
-
class: "chat-item__name",
|
|
92
|
-
innerHTML: t.nameHtml
|
|
93
|
-
}, null, 8, A)) : (e(), a(
|
|
94
|
-
"div",
|
|
95
|
-
B,
|
|
96
|
-
d(i.chat.name),
|
|
97
|
-
1
|
|
98
|
-
/* TEXT */
|
|
99
|
-
))
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
/* STABLE */
|
|
103
|
-
}, 8, ["text"]),
|
|
104
|
-
i.chat.verified ? (e(), c(t.VerifiedBadge, { key: 0 })) : s("v-if", !0),
|
|
105
|
-
u(g.$slots, "name-suffix", {}, void 0, !0)
|
|
106
|
-
]),
|
|
107
|
-
r(t.Tooltip, {
|
|
108
|
-
text: t.lastMessageTooltipText,
|
|
109
|
-
position: "bottom"
|
|
110
|
-
}, {
|
|
111
|
-
default: h(() => [
|
|
112
|
-
i.chat.lastMessage || i.chat.typing || t.hasDraftPreview ? (e(), a("div", D, [
|
|
113
|
-
t.messageIcon && !t.hasDraftPreview ? (e(), c(v(t.messageIcon), {
|
|
114
|
-
key: 0,
|
|
115
|
-
class: "chat-item__message-icon"
|
|
116
|
-
})) : s("v-if", !0),
|
|
117
|
-
t.hasDraftPreview ? (e(), a("span", E, [
|
|
118
|
-
o(
|
|
119
|
-
"span",
|
|
120
|
-
H,
|
|
121
|
-
d(t.draftLabel),
|
|
122
|
-
1
|
|
123
|
-
/* TEXT */
|
|
124
|
-
),
|
|
125
|
-
t.draftFileIcon ? (e(), c(v(t.draftFileIcon), {
|
|
126
|
-
key: 0,
|
|
127
|
-
class: "chat-item__message-icon"
|
|
128
|
-
})) : s("v-if", !0),
|
|
129
|
-
t.draftPreview && t.useAppleEmojisInLastMessage ? (e(), a("span", {
|
|
130
|
-
key: 1,
|
|
131
|
-
class: "chat-item__draft-text",
|
|
132
|
-
innerHTML: t.draftTextHtml
|
|
133
|
-
}, null, 8, U)) : t.draftPreview ? (e(), a(
|
|
134
|
-
"span",
|
|
135
|
-
V,
|
|
136
|
-
d(t.draftPreview),
|
|
137
|
-
1
|
|
138
|
-
/* TEXT */
|
|
139
|
-
)) : s("v-if", !0)
|
|
140
|
-
])) : t.useAppleEmojisInLastMessage ? (e(), a("span", {
|
|
141
|
-
key: 2,
|
|
142
|
-
class: "chat-item__last-message-text",
|
|
143
|
-
innerHTML: t.lastMessageHtml
|
|
144
|
-
}, null, 8, P)) : (e(), a(
|
|
145
|
-
"span",
|
|
146
|
-
F,
|
|
147
|
-
d(t.showText),
|
|
148
|
-
1
|
|
149
|
-
/* TEXT */
|
|
150
|
-
))
|
|
151
|
-
])) : s("v-if", !0)
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
/* STABLE */
|
|
155
|
-
}, 8, ["text"])
|
|
156
|
-
]),
|
|
157
|
-
o("div", j, [
|
|
158
|
-
i.chat["lastActivity.time"] && (!t.hasChatActions || !t.buttonMenuVisible) ? (e(), a(
|
|
159
|
-
"div",
|
|
160
|
-
N,
|
|
161
|
-
d(i.chat["lastActivity.time"]),
|
|
162
|
-
1
|
|
163
|
-
/* TEXT */
|
|
164
|
-
)) : s("v-if", !0),
|
|
165
|
-
s(" Кнопка меню размещена выше статуса и индикатора "),
|
|
166
|
-
t.buttonMenuVisible && t.hasChatActions && i.contextMenuTrigger === "hover" ? (e(), c(t.ButtonContextMenu, {
|
|
167
|
-
key: 1,
|
|
168
|
-
mode: "click",
|
|
169
|
-
"menu-side": "bottom-right",
|
|
170
|
-
actions: i.chat.actions,
|
|
171
|
-
onClick: t.clickAction,
|
|
172
|
-
onButtonClick: t.BCMclick,
|
|
173
|
-
onMenuMouseLeave: l[0] || (l[0] = (n) => t.buttonMenuVisible = !1)
|
|
174
|
-
}, {
|
|
175
|
-
default: h(() => [...l[2] || (l[2] = [
|
|
176
|
-
o(
|
|
177
|
-
"span",
|
|
178
|
-
{ class: "pi pi-ellipsis-h chat-item__actions-trigger" },
|
|
179
|
-
null,
|
|
180
|
-
-1
|
|
181
|
-
/* CACHED */
|
|
182
|
-
)
|
|
183
|
-
])]),
|
|
184
|
-
_: 1
|
|
185
|
-
/* STABLE */
|
|
186
|
-
}, 8, ["actions"])) : s("v-if", !0),
|
|
187
|
-
s(" Контекстное меню для режима rightClick "),
|
|
188
|
-
(e(), c(y, { to: "body" }, [
|
|
189
|
-
i.contextMenuTrigger === "rightClick" && t.hasChatActions && t.contextMenuVisible ? (e(), c(t.ContextMenu, {
|
|
190
|
-
key: 0,
|
|
191
|
-
id: "context-menu-rightclick-" + t.contextMenuId,
|
|
192
|
-
actions: i.chat.actions,
|
|
193
|
-
"data-theme": t.getTheme().theme ? t.getTheme().theme : "light",
|
|
194
|
-
onClick: t.clickAction,
|
|
195
|
-
onMouseenter: t.onContextMenuMouseEnter,
|
|
196
|
-
onMouseleave: t.onContextMenuMouseLeave
|
|
197
|
-
}, null, 8, ["id", "actions", "data-theme"])) : s("v-if", !0)
|
|
198
|
-
])),
|
|
199
|
-
s(" Контейнер для статуса и непрочитанных "),
|
|
200
|
-
o("div", R, [
|
|
201
|
-
t.statuses.includes(i.chat["lastMessage.status"]) ? (e(), a(
|
|
202
|
-
"div",
|
|
203
|
-
{
|
|
204
|
-
key: 0,
|
|
205
|
-
class: _(["chat-item__status-message", t.status])
|
|
206
|
-
},
|
|
207
|
-
[
|
|
208
|
-
i.chat["lastMessage.status"] === "pending" ? (e(), c(t.PendingStatusIcon, { key: 0 })) : i.chat["lastMessage.status"] === "error" ? (e(), c(t.ErrorStatusIcon, { key: 1 })) : i.chat["lastMessage.status"] === "read" ? (e(), c(t.ReadStatusIcon, { key: 2 })) : i.chat["lastMessage.status"] === "received" ? (e(), c(t.ReceivedStatusIcon, { key: 3 })) : (e(), c(t.SentStatusIcon, { key: 4 }))
|
|
209
|
-
],
|
|
210
|
-
2
|
|
211
|
-
/* CLASS */
|
|
212
|
-
)) : s("v-if", !0),
|
|
213
|
-
t.showChatUnread ? (e(), a(
|
|
214
|
-
"div",
|
|
215
|
-
z,
|
|
216
|
-
d(t.chatUnreadText),
|
|
217
|
-
1
|
|
218
|
-
/* TEXT */
|
|
219
|
-
)) : s("v-if", !0)
|
|
220
|
-
]),
|
|
221
|
-
i.chat.countUnread < 1 ? (e(), a("div", q, [
|
|
222
|
-
i.chat.isFixedTop || i.chat.isFixedBottom ? (e(), a("span", G)) : s("v-if", !0)
|
|
223
|
-
])) : s("v-if", !0)
|
|
224
|
-
]),
|
|
225
|
-
t.props.showDialogs && i.chat.dialogs ? (e(), a("div", {
|
|
226
|
-
key: 0,
|
|
227
|
-
class: "chat-item__dialog-buttons",
|
|
228
|
-
onClick: l[1] || (l[1] = (n) => t.emit("expand", t.props.chat))
|
|
229
|
-
}, [
|
|
230
|
-
t.props.showDialogs && !i.chat.dialogsExpanded ? (e(), a("button", J, [...l[3] || (l[3] = [
|
|
231
|
-
o(
|
|
232
|
-
"span",
|
|
233
|
-
{
|
|
234
|
-
id: "noSelectButton",
|
|
235
|
-
class: "pi pi-angle-down"
|
|
236
|
-
},
|
|
237
|
-
null,
|
|
238
|
-
-1
|
|
239
|
-
/* CACHED */
|
|
240
|
-
)
|
|
241
|
-
])])) : s("v-if", !0),
|
|
242
|
-
t.props.showDialogs && i.chat.dialogsExpanded ? (e(), a("button", K, [...l[4] || (l[4] = [
|
|
243
|
-
o(
|
|
244
|
-
"span",
|
|
245
|
-
{
|
|
246
|
-
id: "noSelectButton",
|
|
247
|
-
class: "pi pi-angle-up"
|
|
248
|
-
},
|
|
249
|
-
null,
|
|
250
|
-
-1
|
|
251
|
-
/* CACHED */
|
|
252
|
-
)
|
|
253
|
-
])])) : s("v-if", !0)
|
|
254
|
-
])) : s("v-if", !0)
|
|
255
|
-
], 42, b),
|
|
256
|
-
t.props.showDialogs && i.chat.dialogsExpanded ? (e(), a("div", O, [
|
|
257
|
-
(e(!0), a(
|
|
258
|
-
M,
|
|
259
|
-
null,
|
|
260
|
-
x(t.getSortedDialogs(), (n) => (e(), a("div", {
|
|
261
|
-
key: n.dialogId,
|
|
262
|
-
class: _(["dialog__item", t.getDialogClass(n)]),
|
|
263
|
-
onClick: (at) => t.selectDialog(n)
|
|
264
|
-
}, [
|
|
265
|
-
n.icon ? (e(), a("img", {
|
|
266
|
-
key: 0,
|
|
267
|
-
class: "dialog__icon",
|
|
268
|
-
src: n.icon,
|
|
269
|
-
height: "16",
|
|
270
|
-
width: "16"
|
|
271
|
-
}, null, 8, W)) : (e(), a("span", X)),
|
|
272
|
-
o("div", Y, [
|
|
273
|
-
o(
|
|
274
|
-
"div",
|
|
275
|
-
Z,
|
|
276
|
-
d(n.name),
|
|
277
|
-
1
|
|
278
|
-
/* TEXT */
|
|
279
|
-
),
|
|
280
|
-
o(
|
|
281
|
-
"div",
|
|
282
|
-
p,
|
|
283
|
-
d(n["lastActivity.time"]),
|
|
284
|
-
1
|
|
285
|
-
/* TEXT */
|
|
286
|
-
)
|
|
287
|
-
]),
|
|
288
|
-
n.countUnread > 0 ? (e(), a(
|
|
289
|
-
"div",
|
|
290
|
-
{
|
|
291
|
-
key: 2,
|
|
292
|
-
class: "chat-item__unread",
|
|
293
|
-
style: m(n.colorUnread ? { backgroundColor: n.colorUnread } : {})
|
|
294
|
-
},
|
|
295
|
-
d(n.countUnread > 99 ? "99+" : n.countUnread),
|
|
296
|
-
5
|
|
297
|
-
/* TEXT, STYLE */
|
|
298
|
-
)) : s("v-if", !0)
|
|
299
|
-
], 10, Q))),
|
|
300
|
-
128
|
|
301
|
-
/* KEYED_FRAGMENT */
|
|
302
|
-
))
|
|
303
|
-
])) : s("v-if", !0)
|
|
304
|
-
]);
|
|
305
|
-
}
|
|
306
|
-
const ct = /* @__PURE__ */ C(f, [["render", $], ["__scopeId", "data-v-c1f8f6a0"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/ChatItem.vue"]]);
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3d817d5e"]]);
|
|
307
5
|
export {
|
|
308
|
-
|
|
6
|
+
e as default
|
|
309
7
|
};
|