@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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref as a, createElementBlock as n, openBlock as s, createElementVNode as i, createCommentVNode as f, createVNode as p, unref as c } 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,42 +14,36 @@ 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(r, { emit: u }) {
|
|
18
|
+
const t = a(""), l = u, o = a(""), d = () => {
|
|
19
|
+
const e = c(t);
|
|
20
|
+
o.value = e.value, l("update", e.value);
|
|
21
|
+
}, _ = () => {
|
|
22
|
+
const e = c(t);
|
|
23
|
+
e.value = "", o.value = "", l("update", ""), e.focus();
|
|
24
|
+
};
|
|
25
|
+
return (e, V) => (s(), n("div", C, [
|
|
26
|
+
i("div", k, [
|
|
27
|
+
p(h)
|
|
28
|
+
]),
|
|
29
|
+
i("input", {
|
|
30
|
+
ref_key: "refInput",
|
|
31
|
+
ref: t,
|
|
32
|
+
class: "chat-filter__input",
|
|
33
|
+
type: "text",
|
|
34
|
+
placeholder: r.placeholder ? r.placeholder : c(m)("component.ChatFilter.InputPlaceholder"),
|
|
35
|
+
onInput: d
|
|
36
|
+
}, null, 40, x),
|
|
37
|
+
o.value ? (s(), n("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "chat-filter__clear",
|
|
40
|
+
onClick: _
|
|
41
|
+
}, [
|
|
42
|
+
p(v)
|
|
43
|
+
])) : f("", !0)
|
|
44
|
+
]));
|
|
29
45
|
}
|
|
30
|
-
},
|
|
31
|
-
function k(l, s, o, e, i, 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
|
-
type: "text",
|
|
40
|
-
placeholder: o.placeholder ? o.placeholder : e.t("component.ChatFilter.InputPlaceholder"),
|
|
41
|
-
onInput: e.update
|
|
42
|
-
}, null, 40, V),
|
|
43
|
-
e.inputValue ? (_(), u("div", {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "chat-filter__clear",
|
|
46
|
-
onClick: e.clear
|
|
47
|
-
}, [
|
|
48
|
-
f(e.CloseButtonIcon)
|
|
49
|
-
])) : h("v-if", !0)
|
|
50
|
-
]);
|
|
51
|
-
}
|
|
52
|
-
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"]]);
|
|
46
|
+
}, q = /* @__PURE__ */ I(y, [["__scopeId", "data-v-21a6c84e"]]);
|
|
53
47
|
export {
|
|
54
48
|
q as default
|
|
55
49
|
};
|
|
@@ -1,309 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as i, openBlock as e, createElementVNode as o, createCommentVNode as n, withModifiers as k, normalizeClass as r, normalizeStyle as m, createVNode as d, withCtx as h, toDisplayString as _, createBlock as l, resolveDynamicComponent as v, Teleport as u, Fragment as f, renderList as y } 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
|
-
}, I = { class: "chat-item__info-container" }, T = ["innerHTML"], w = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "chat-item__name"
|
|
11
|
-
}, L = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "chat-item__last-message"
|
|
14
|
-
}, S = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "chat-item__last-message-text chat-item__last-message-text--draft"
|
|
17
|
-
}, D = { class: "chat-item__draft-label" }, B = ["innerHTML"], E = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "chat-item__draft-text"
|
|
20
|
-
}, A = ["innerHTML"], H = {
|
|
21
|
-
key: 3,
|
|
22
|
-
class: "chat-item__last-message-text"
|
|
23
|
-
}, U = { class: "chat-item__details-container" }, P = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "chat-item__time"
|
|
26
|
-
}, V = { class: "chat-item__status-unread-container" }, F = {
|
|
27
|
-
key: 1,
|
|
28
|
-
class: "chat-item__unread"
|
|
29
|
-
}, j = {
|
|
30
|
-
key: 2,
|
|
31
|
-
class: "chat-item__status-chat-container"
|
|
32
|
-
}, N = {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "chat-item__fixed pi pi-thumbtack"
|
|
35
|
-
}, R = {
|
|
36
|
-
key: 0,
|
|
37
|
-
id: "noSelectButton",
|
|
38
|
-
class: "chat-item__menu-button"
|
|
39
|
-
}, z = {
|
|
40
|
-
key: 1,
|
|
41
|
-
id: "noSelectButton",
|
|
42
|
-
class: "chat-item__menu-button"
|
|
43
|
-
}, q = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "dialog__container"
|
|
46
|
-
}, G = ["onClick"], J = ["src"], K = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "dialog__icon pi pi-user"
|
|
49
|
-
}, O = { class: "dialog__text-container" }, Q = { class: "dialog__name" }, W = { class: "dialog__time" };
|
|
50
|
-
function X(Y, c, a, t, Z, p) {
|
|
51
|
-
return e(), i("div", null, [
|
|
52
|
-
o(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
ref: "containerRef",
|
|
56
|
-
class: r(["chat-item__container", t.getClass()]),
|
|
57
|
-
onMouseenter: t.onMouseEnter,
|
|
58
|
-
onMouseleave: t.onMouseLeave,
|
|
59
|
-
onClick: t.selectChat,
|
|
60
|
-
onContextmenu: k(t.onRightClick, ["prevent"])
|
|
61
|
-
},
|
|
62
|
-
[
|
|
63
|
-
o("div", x, [
|
|
64
|
-
o(
|
|
65
|
-
"span",
|
|
66
|
-
{
|
|
67
|
-
class: "chat-item__status-user",
|
|
68
|
-
style: m({ backgroundColor: t.props.chat.status })
|
|
69
|
-
},
|
|
70
|
-
null,
|
|
71
|
-
4
|
|
72
|
-
/* STYLE */
|
|
73
|
-
),
|
|
74
|
-
t.props.chat.avatar ? (e(), i("img", {
|
|
75
|
-
key: 0,
|
|
76
|
-
src: t.props.chat.avatar,
|
|
77
|
-
height: "48",
|
|
78
|
-
width: "48"
|
|
79
|
-
}, null, 8, C)) : (e(), i("div", b, [
|
|
80
|
-
d(t.AvatarIcon)
|
|
81
|
-
]))
|
|
82
|
-
]),
|
|
83
|
-
o("div", I, [
|
|
84
|
-
d(t.Tooltip, {
|
|
85
|
-
text: a.chat.name,
|
|
86
|
-
position: "bottom"
|
|
87
|
-
}, {
|
|
88
|
-
default: h(() => [
|
|
89
|
-
t.useAppleEmojisInName ? (e(), i("div", {
|
|
90
|
-
key: 0,
|
|
91
|
-
class: "chat-item__name",
|
|
92
|
-
innerHTML: t.nameHtml
|
|
93
|
-
}, null, 8, T)) : (e(), i(
|
|
94
|
-
"div",
|
|
95
|
-
w,
|
|
96
|
-
_(a.chat.name),
|
|
97
|
-
1
|
|
98
|
-
/* TEXT */
|
|
99
|
-
))
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
/* STABLE */
|
|
103
|
-
}, 8, ["text"]),
|
|
104
|
-
d(t.Tooltip, {
|
|
105
|
-
text: t.lastMessageText,
|
|
106
|
-
position: "bottom"
|
|
107
|
-
}, {
|
|
108
|
-
default: h(() => [
|
|
109
|
-
a.chat.lastMessage || a.chat.typing || t.hasDraftPreview ? (e(), i("div", L, [
|
|
110
|
-
t.messageIcon && !t.hasDraftPreview ? (e(), l(v(t.messageIcon), {
|
|
111
|
-
key: 0,
|
|
112
|
-
class: "chat-item__message-icon"
|
|
113
|
-
})) : n("v-if", !0),
|
|
114
|
-
t.hasDraftPreview ? (e(), i("span", S, [
|
|
115
|
-
o(
|
|
116
|
-
"span",
|
|
117
|
-
D,
|
|
118
|
-
_(t.draftLabel),
|
|
119
|
-
1
|
|
120
|
-
/* TEXT */
|
|
121
|
-
),
|
|
122
|
-
t.draftFileIcon ? (e(), l(v(t.draftFileIcon), {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: "chat-item__message-icon"
|
|
125
|
-
})) : n("v-if", !0),
|
|
126
|
-
t.draftPreview && t.useAppleEmojisInLastMessage ? (e(), i("span", {
|
|
127
|
-
key: 1,
|
|
128
|
-
class: "chat-item__draft-text",
|
|
129
|
-
innerHTML: t.draftTextHtml
|
|
130
|
-
}, null, 8, B)) : t.draftPreview ? (e(), i(
|
|
131
|
-
"span",
|
|
132
|
-
E,
|
|
133
|
-
_(t.draftPreview),
|
|
134
|
-
1
|
|
135
|
-
/* TEXT */
|
|
136
|
-
)) : n("v-if", !0)
|
|
137
|
-
])) : t.useAppleEmojisInLastMessage ? (e(), i("span", {
|
|
138
|
-
key: 2,
|
|
139
|
-
class: "chat-item__last-message-text",
|
|
140
|
-
innerHTML: t.lastMessageHtml
|
|
141
|
-
}, null, 8, A)) : (e(), i(
|
|
142
|
-
"span",
|
|
143
|
-
H,
|
|
144
|
-
_(t.showText),
|
|
145
|
-
1
|
|
146
|
-
/* TEXT */
|
|
147
|
-
))
|
|
148
|
-
])) : n("v-if", !0)
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
/* STABLE */
|
|
152
|
-
}, 8, ["text"])
|
|
153
|
-
]),
|
|
154
|
-
o("div", U, [
|
|
155
|
-
a.chat["lastActivity.time"] && (!a.chat.actions || !t.buttonMenuVisible) ? (e(), i(
|
|
156
|
-
"div",
|
|
157
|
-
P,
|
|
158
|
-
_(a.chat["lastActivity.time"]),
|
|
159
|
-
1
|
|
160
|
-
/* TEXT */
|
|
161
|
-
)) : n("v-if", !0),
|
|
162
|
-
n(" Кнопка меню размещена выше статуса и индикатора "),
|
|
163
|
-
t.buttonMenuVisible && a.chat.actions && a.contextMenuTrigger === "hover" ? (e(), l(t.ButtonContextMenu, {
|
|
164
|
-
key: 1,
|
|
165
|
-
mode: "click",
|
|
166
|
-
"menu-side": "bottom-right",
|
|
167
|
-
actions: a.chat.actions,
|
|
168
|
-
onClick: t.clickAction,
|
|
169
|
-
onButtonClick: t.BCMclick,
|
|
170
|
-
onMenuMouseLeave: c[0] || (c[0] = (s) => t.buttonMenuVisible = !1)
|
|
171
|
-
}, {
|
|
172
|
-
default: h(() => [...c[2] || (c[2] = [
|
|
173
|
-
o(
|
|
174
|
-
"span",
|
|
175
|
-
{ class: "pi pi-ellipsis-h chat-item__actions-trigger" },
|
|
176
|
-
null,
|
|
177
|
-
-1
|
|
178
|
-
/* CACHED */
|
|
179
|
-
)
|
|
180
|
-
])]),
|
|
181
|
-
_: 1
|
|
182
|
-
/* STABLE */
|
|
183
|
-
}, 8, ["actions"])) : n("v-if", !0),
|
|
184
|
-
n(" Контекстное меню для режима rightClick "),
|
|
185
|
-
(e(), l(u, { to: "body" }, [
|
|
186
|
-
a.contextMenuTrigger === "rightClick" && a.chat.actions && t.contextMenuVisible ? (e(), l(t.ContextMenu, {
|
|
187
|
-
key: 0,
|
|
188
|
-
id: "context-menu-rightclick-" + t.contextMenuId,
|
|
189
|
-
actions: a.chat.actions,
|
|
190
|
-
"data-theme": t.getTheme().theme ? t.getTheme().theme : "light",
|
|
191
|
-
onClick: t.clickAction,
|
|
192
|
-
onMouseenter: t.onContextMenuMouseEnter,
|
|
193
|
-
onMouseleave: t.onContextMenuMouseLeave
|
|
194
|
-
}, null, 8, ["id", "actions", "data-theme"])) : n("v-if", !0)
|
|
195
|
-
])),
|
|
196
|
-
n(" Контейнер для статуса и непрочитанных "),
|
|
197
|
-
o("div", V, [
|
|
198
|
-
t.statuses.includes(a.chat["lastMessage.status"]) ? (e(), i(
|
|
199
|
-
"div",
|
|
200
|
-
{
|
|
201
|
-
key: 0,
|
|
202
|
-
class: r(["chat-item__status-message", t.status])
|
|
203
|
-
},
|
|
204
|
-
[
|
|
205
|
-
a.chat["lastMessage.status"] === "pending" ? (e(), l(t.PendingStatusIcon, { key: 0 })) : a.chat["lastMessage.status"] === "error" ? (e(), l(t.ErrorStatusIcon, { key: 1 })) : a.chat["lastMessage.status"] === "read" ? (e(), l(t.ReadStatusIcon, { key: 2 })) : a.chat["lastMessage.status"] === "received" ? (e(), l(t.ReceivedStatusIcon, { key: 3 })) : (e(), l(t.SentStatusIcon, { key: 4 }))
|
|
206
|
-
],
|
|
207
|
-
2
|
|
208
|
-
/* CLASS */
|
|
209
|
-
)) : n("v-if", !0),
|
|
210
|
-
t.showChatUnread ? (e(), i(
|
|
211
|
-
"div",
|
|
212
|
-
F,
|
|
213
|
-
_(t.chatUnreadText),
|
|
214
|
-
1
|
|
215
|
-
/* TEXT */
|
|
216
|
-
)) : n("v-if", !0)
|
|
217
|
-
]),
|
|
218
|
-
a.chat.countUnread < 1 ? (e(), i("div", j, [
|
|
219
|
-
a.chat.isFixedTop || a.chat.isFixedBottom ? (e(), i("span", N)) : n("v-if", !0)
|
|
220
|
-
])) : n("v-if", !0)
|
|
221
|
-
]),
|
|
222
|
-
t.props.showDialogs && a.chat.dialogs ? (e(), i("div", {
|
|
223
|
-
key: 0,
|
|
224
|
-
class: "chat-item__dialog-buttons",
|
|
225
|
-
onClick: c[1] || (c[1] = (s) => t.emit("expand", t.props.chat))
|
|
226
|
-
}, [
|
|
227
|
-
t.props.showDialogs && !a.chat.dialogsExpanded ? (e(), i("button", R, [...c[3] || (c[3] = [
|
|
228
|
-
o(
|
|
229
|
-
"span",
|
|
230
|
-
{
|
|
231
|
-
id: "noSelectButton",
|
|
232
|
-
class: "pi pi-angle-down"
|
|
233
|
-
},
|
|
234
|
-
null,
|
|
235
|
-
-1
|
|
236
|
-
/* CACHED */
|
|
237
|
-
)
|
|
238
|
-
])])) : n("v-if", !0),
|
|
239
|
-
t.props.showDialogs && a.chat.dialogsExpanded ? (e(), i("button", z, [...c[4] || (c[4] = [
|
|
240
|
-
o(
|
|
241
|
-
"span",
|
|
242
|
-
{
|
|
243
|
-
id: "noSelectButton",
|
|
244
|
-
class: "pi pi-angle-up"
|
|
245
|
-
},
|
|
246
|
-
null,
|
|
247
|
-
-1
|
|
248
|
-
/* CACHED */
|
|
249
|
-
)
|
|
250
|
-
])])) : n("v-if", !0)
|
|
251
|
-
])) : n("v-if", !0)
|
|
252
|
-
],
|
|
253
|
-
34
|
|
254
|
-
/* CLASS, NEED_HYDRATION */
|
|
255
|
-
),
|
|
256
|
-
t.props.showDialogs && a.chat.dialogsExpanded ? (e(), i("div", q, [
|
|
257
|
-
(e(!0), i(
|
|
258
|
-
f,
|
|
259
|
-
null,
|
|
260
|
-
y(t.getSortedDialogs(), (s) => (e(), i("div", {
|
|
261
|
-
key: s.dialogId,
|
|
262
|
-
class: r(["dialog__item", t.getDialogClass(s)]),
|
|
263
|
-
onClick: ($) => t.selectDialog(s)
|
|
264
|
-
}, [
|
|
265
|
-
s.icon ? (e(), i("img", {
|
|
266
|
-
key: 0,
|
|
267
|
-
class: "dialog__icon",
|
|
268
|
-
src: s.icon,
|
|
269
|
-
height: "16",
|
|
270
|
-
width: "16"
|
|
271
|
-
}, null, 8, J)) : (e(), i("span", K)),
|
|
272
|
-
o("div", O, [
|
|
273
|
-
o(
|
|
274
|
-
"div",
|
|
275
|
-
Q,
|
|
276
|
-
_(s.name),
|
|
277
|
-
1
|
|
278
|
-
/* TEXT */
|
|
279
|
-
),
|
|
280
|
-
o(
|
|
281
|
-
"div",
|
|
282
|
-
W,
|
|
283
|
-
_(s["lastActivity.time"]),
|
|
284
|
-
1
|
|
285
|
-
/* TEXT */
|
|
286
|
-
)
|
|
287
|
-
]),
|
|
288
|
-
s.countUnread > 0 ? (e(), i(
|
|
289
|
-
"div",
|
|
290
|
-
{
|
|
291
|
-
key: 2,
|
|
292
|
-
class: "chat-item__unread",
|
|
293
|
-
style: m(s.colorUnread ? { backgroundColor: s.colorUnread } : {})
|
|
294
|
-
},
|
|
295
|
-
_(s.countUnread > 99 ? "99+" : s.countUnread),
|
|
296
|
-
5
|
|
297
|
-
/* TEXT, STYLE */
|
|
298
|
-
)) : n("v-if", !0)
|
|
299
|
-
], 10, G))),
|
|
300
|
-
128
|
|
301
|
-
/* KEYED_FRAGMENT */
|
|
302
|
-
))
|
|
303
|
-
])) : n("v-if", !0)
|
|
304
|
-
]);
|
|
305
|
-
}
|
|
306
|
-
const nt = /* @__PURE__ */ M(g, [["render", X], ["__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-50654e81"]]);
|
|
307
5
|
export {
|
|
308
|
-
|
|
6
|
+
e as default
|
|
309
7
|
};
|