@mobilon-dev/chotto 0.3.96 → 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,31 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as a, openBlock as n, normalizeClass as c, createCommentVNode as l, createElementVNode as u, normalizeStyle as Z, Fragment as V, renderList as H, createBlock as v, withCtx as y, toDisplayString as j, createVNode as P, toRef as q, computed as p, ref as m, onMounted as Y, nextTick as S, onUnmounted as D, watch as M } from "vue";
|
|
2
2
|
import $ from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import tt from "../../1_icons/SettingsIcon.vue.js";
|
|
4
|
+
import et from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "sidebar__notification-count"
|
|
10
|
-
}, nt = { class: "sidebar__scroll-container" }, st = ["onClick"], at = ["src", "alt"], rt = ["src"], lt = { key: 2 }, ct = {
|
|
11
|
-
key: 2,
|
|
12
|
-
class: "sidebar__settings-container"
|
|
13
|
-
}, ut = {
|
|
14
|
-
class: "sidebar__settings-btn",
|
|
15
|
-
type: "button"
|
|
16
|
-
}, dt = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "sidebar__settings-indicator-anchor"
|
|
19
|
-
}, ft = {
|
|
20
|
-
key: 1,
|
|
21
|
-
class: "sidebar__settings-indicator"
|
|
22
|
-
}, mt = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "sidebar__settings-indicator-anchor"
|
|
25
|
-
}, gt = {
|
|
26
|
-
key: 1,
|
|
27
|
-
class: "sidebar__settings-indicator"
|
|
28
|
-
}, _t = {
|
|
6
|
+
import ot from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const it = {
|
|
29
8
|
__name: "SideBar",
|
|
30
9
|
props: {
|
|
31
10
|
sidebarItems: {
|
|
@@ -78,221 +57,319 @@ const et = ["onClick"], ot = ["src", "alt"], it = {
|
|
|
78
57
|
}
|
|
79
58
|
},
|
|
80
59
|
emits: ["selectItem", "settingsClick"],
|
|
81
|
-
setup(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
60
|
+
setup(E, { expose: d, emit: s }) {
|
|
61
|
+
d();
|
|
62
|
+
const e = E, g = q(e, "sidebarItems"), C = q(e, "menuActions"), i = s, h = p(
|
|
63
|
+
() => Array.isArray(e.settingsIndicatorTooltipItems) ? e.settingsIndicatorTooltipItems.map((t) => String(t ?? "").trim()).filter(Boolean) : []
|
|
64
|
+
), b = p(
|
|
65
|
+
() => h.value.length > 0 || !!e.settingsIndicatorTooltip.trim()
|
|
66
|
+
), G = p(
|
|
67
|
+
() => g.value.filter((t) => t.isFixedBottom).sort((t, o) => o.notificationCount - t.notificationCount)
|
|
68
|
+
), O = p(
|
|
69
|
+
() => g.value.filter((t) => !t.isFixedBottom).sort((t, o) => o.notificationCount - t.notificationCount)
|
|
70
|
+
), R = (t) => {
|
|
71
|
+
const o = g.value.find((r) => r.itemId === t);
|
|
72
|
+
i("selectItem", o);
|
|
73
|
+
}, U = (t, o) => {
|
|
74
|
+
F(t.currentTarget), R(o);
|
|
75
|
+
}, W = (t) => {
|
|
76
|
+
const o = t.split(" ");
|
|
77
|
+
return o.length > 2 ? o.slice(0, 2).join(" ") : t;
|
|
78
|
+
}, J = (t) => {
|
|
99
79
|
console.log("Выбрано действие:", t), typeof t.action == "function" && t.action();
|
|
100
|
-
},
|
|
80
|
+
}, K = () => {
|
|
101
81
|
console.log("Кнопка меню была нажата");
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
const t = (
|
|
82
|
+
}, Q = () => {
|
|
83
|
+
var o;
|
|
84
|
+
i("settingsClick");
|
|
85
|
+
const t = (o = C.value) == null ? void 0 : o[0];
|
|
106
86
|
t && typeof t.action == "function" && !t.disabled && t.action();
|
|
107
|
-
},
|
|
108
|
-
const
|
|
109
|
-
if (!
|
|
110
|
-
const
|
|
111
|
-
return Math.max(0,
|
|
112
|
-
},
|
|
113
|
-
if (!
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
},
|
|
87
|
+
}, _ = m(null), N = m(null), T = m(!1), x = m(0), k = m(40), z = m(!1), B = (t) => {
|
|
88
|
+
const o = _.value;
|
|
89
|
+
if (!o || !t) return 0;
|
|
90
|
+
const r = o.getBoundingClientRect(), f = t.getBoundingClientRect(), X = f.top + f.height / 2 - r.top - k.value / 2;
|
|
91
|
+
return Math.max(0, X);
|
|
92
|
+
}, I = () => {
|
|
93
|
+
if (!_.value) return;
|
|
94
|
+
const o = _.value.querySelector(".sidebar__image--active");
|
|
95
|
+
o ? (x.value = B(o), T.value = !0) : T.value = !1;
|
|
96
|
+
}, F = (t) => {
|
|
117
97
|
try {
|
|
118
|
-
if (!t || !
|
|
119
|
-
const
|
|
120
|
-
if (!
|
|
121
|
-
const
|
|
122
|
-
z.value = !0,
|
|
123
|
-
|
|
124
|
-
|
|
98
|
+
if (!t || !_.value) return;
|
|
99
|
+
const o = t.querySelector(".sidebar__image");
|
|
100
|
+
if (!o) return;
|
|
101
|
+
const r = B(o), f = 12, A = 160;
|
|
102
|
+
z.value = !0, k.value = f, setTimeout(() => {
|
|
103
|
+
x.value = r, requestAnimationFrame(() => {
|
|
104
|
+
k.value = 40, setTimeout(() => {
|
|
125
105
|
z.value = !1;
|
|
126
|
-
},
|
|
106
|
+
}, A);
|
|
127
107
|
});
|
|
128
|
-
},
|
|
108
|
+
}, A);
|
|
129
109
|
} catch {
|
|
130
110
|
}
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
const t = (
|
|
136
|
-
t && t.addEventListener("scroll",
|
|
137
|
-
}),
|
|
138
|
-
var
|
|
139
|
-
window.removeEventListener("resize",
|
|
140
|
-
const t = (
|
|
141
|
-
t && t.removeEventListener("scroll",
|
|
142
|
-
}),
|
|
143
|
-
() =>
|
|
144
|
-
(t,
|
|
145
|
-
!t ||
|
|
146
|
-
|
|
147
|
-
var
|
|
148
|
-
(
|
|
111
|
+
}, w = () => I();
|
|
112
|
+
Y(() => {
|
|
113
|
+
var o;
|
|
114
|
+
S(I), window.addEventListener("resize", w);
|
|
115
|
+
const t = (o = _.value) == null ? void 0 : o.querySelector(".sidebar__scroll-container");
|
|
116
|
+
t && t.addEventListener("scroll", I);
|
|
117
|
+
}), D(() => {
|
|
118
|
+
var o;
|
|
119
|
+
window.removeEventListener("resize", w);
|
|
120
|
+
const t = (o = _.value) == null ? void 0 : o.querySelector(".sidebar__scroll-container");
|
|
121
|
+
t && t.removeEventListener("scroll", I);
|
|
122
|
+
}), M(() => g.value.map((t) => t.selected), () => S(I)), M(
|
|
123
|
+
() => e.showSettings && e.showSettingsIndicator && b.value,
|
|
124
|
+
(t, o) => {
|
|
125
|
+
!t || o === !0 || S(() => {
|
|
126
|
+
S(() => {
|
|
127
|
+
var r, f;
|
|
128
|
+
(f = (r = N.value) == null ? void 0 : r.startAutoShow) == null || f.call(r);
|
|
149
129
|
});
|
|
150
130
|
});
|
|
151
131
|
},
|
|
152
132
|
{ flush: "post", immediate: !0 }
|
|
153
|
-
)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
133
|
+
);
|
|
134
|
+
const L = { props: e, items: g, menuActions: C, emit: i, normalizedSettingsIndicatorTooltipItems: h, hasSettingsIndicatorTooltipContent: b, fixedItems: G, regularItems: O, selectItem: R, onItemClick: U, getName: W, handleMenuAction: J, handleButtonClick: K, handleSettingsImmediateClick: Q, containerRef: _, settingsIndicatorTooltipRef: N, barVisible: T, barTop: x, barHeight: k, isAnimating: z, computeTopForAvatar: B, syncBarWithSelected: I, animateBarToTarget: F, handleResize: w, toRef: q, computed: p, ref: m, onMounted: Y, onUnmounted: D, nextTick: S, watch: M, ButtonContextMenu: $, SettingsIcon: tt, Tooltip: et };
|
|
135
|
+
return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
|
|
136
|
+
}
|
|
137
|
+
}, nt = ["onClick"], st = ["src", "alt"], at = {
|
|
138
|
+
key: 1,
|
|
139
|
+
class: "sidebar__notification-count"
|
|
140
|
+
}, rt = { class: "sidebar__scroll-container" }, lt = ["onClick"], ct = ["src", "alt"], dt = ["src"], ut = { key: 2 }, _t = {
|
|
141
|
+
key: 2,
|
|
142
|
+
class: "sidebar__settings-container"
|
|
143
|
+
}, ft = {
|
|
144
|
+
class: "sidebar__settings-btn",
|
|
145
|
+
type: "button"
|
|
146
|
+
}, mt = {
|
|
147
|
+
key: 0,
|
|
148
|
+
class: "sidebar__settings-indicator-anchor"
|
|
149
|
+
}, gt = {
|
|
150
|
+
key: 1,
|
|
151
|
+
class: "sidebar__settings-indicator"
|
|
152
|
+
}, ht = {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "sidebar__settings-indicator-anchor"
|
|
155
|
+
}, bt = {
|
|
156
|
+
key: 1,
|
|
157
|
+
class: "sidebar__settings-indicator"
|
|
158
|
+
};
|
|
159
|
+
function It(E, d, s, e, g, C) {
|
|
160
|
+
return n(), a(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
ref: "containerRef",
|
|
164
|
+
class: c(["sidebar__container", { "sidebar-horizontal__container": s.horizontal }])
|
|
165
|
+
},
|
|
166
|
+
[
|
|
167
|
+
!s.horizontal && e.barVisible ? (n(), a(
|
|
168
|
+
"span",
|
|
169
|
+
{
|
|
170
|
+
key: 0,
|
|
171
|
+
class: c(["sidebar__selected-bar", { "is-animating": e.isAnimating }]),
|
|
172
|
+
style: Z({ top: e.barTop + "px", height: e.barHeight + "px" })
|
|
173
|
+
},
|
|
174
|
+
null,
|
|
175
|
+
6
|
|
176
|
+
/* CLASS, STYLE */
|
|
177
|
+
)) : l("v-if", !0),
|
|
178
|
+
l(" Закреплённые элементы (вне скролла) "),
|
|
179
|
+
e.fixedItems.length > 0 ? (n(), a(
|
|
180
|
+
"ul",
|
|
181
|
+
{
|
|
182
|
+
key: 1,
|
|
183
|
+
class: c(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": s.horizontal }])
|
|
184
|
+
},
|
|
185
|
+
[
|
|
186
|
+
(n(!0), a(
|
|
187
|
+
V,
|
|
188
|
+
null,
|
|
189
|
+
H(e.fixedItems, (i, h) => (n(), a("li", {
|
|
190
|
+
key: h,
|
|
191
|
+
class: c(["sidebar__item-fixed", { "sidebar-horizontal__item": s.horizontal }]),
|
|
192
|
+
onClick: (b) => e.onItemClick(b, i.itemId)
|
|
193
|
+
}, [
|
|
194
|
+
i.name ? (n(), v(e.Tooltip, {
|
|
195
|
+
key: 0,
|
|
196
|
+
text: e.getName(i.name),
|
|
197
|
+
position: "right",
|
|
198
|
+
offset: 8
|
|
199
|
+
}, {
|
|
200
|
+
default: y(() => [
|
|
201
|
+
u("img", {
|
|
202
|
+
src: i.icon,
|
|
203
|
+
alt: i.name,
|
|
204
|
+
class: c(["sidebar__image", {
|
|
205
|
+
"sidebar__image--active": i.selected === !0,
|
|
206
|
+
"sidebar-horizontal__image": s.horizontal
|
|
207
|
+
}])
|
|
208
|
+
}, null, 10, st),
|
|
209
|
+
d[0] || (d[0] = u(
|
|
210
|
+
"p",
|
|
211
|
+
null,
|
|
212
|
+
"Мои",
|
|
213
|
+
-1
|
|
214
|
+
/* CACHED */
|
|
215
|
+
))
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
/* DYNAMIC */
|
|
219
|
+
}, 1032, ["text"])) : l("v-if", !0),
|
|
220
|
+
i.notificationCount ? (n(), a(
|
|
221
|
+
"span",
|
|
222
|
+
at,
|
|
223
|
+
j(i.notificationCount > 99 ? "99+" : i.notificationCount),
|
|
224
|
+
1
|
|
225
|
+
/* TEXT */
|
|
226
|
+
)) : l("v-if", !0)
|
|
227
|
+
], 10, nt))),
|
|
228
|
+
128
|
|
229
|
+
/* KEYED_FRAGMENT */
|
|
230
|
+
))
|
|
231
|
+
],
|
|
232
|
+
2
|
|
233
|
+
/* CLASS */
|
|
234
|
+
)) : l("v-if", !0),
|
|
235
|
+
l(" Скроллируемая область с обычными элементами "),
|
|
236
|
+
u("div", rt, [
|
|
237
|
+
u(
|
|
238
|
+
"ul",
|
|
239
|
+
{
|
|
240
|
+
class: c(["sidebar__list", { "sidebar-horizontal__list": s.horizontal }])
|
|
241
|
+
},
|
|
242
|
+
[
|
|
243
|
+
(n(!0), a(
|
|
244
|
+
V,
|
|
245
|
+
null,
|
|
246
|
+
H(e.regularItems, (i, h) => (n(), a("li", {
|
|
247
|
+
key: h,
|
|
248
|
+
class: c(["sidebar__item", { "sidebar-horizontal__item": s.horizontal }]),
|
|
249
|
+
onClick: (b) => e.onItemClick(b, i.itemId)
|
|
250
|
+
}, [
|
|
251
|
+
i.name ? (n(), v(e.Tooltip, {
|
|
252
|
+
key: 0,
|
|
253
|
+
text: i.name,
|
|
254
|
+
position: "right",
|
|
255
|
+
offset: 8
|
|
256
|
+
}, {
|
|
257
|
+
default: y(() => [
|
|
258
|
+
u("img", {
|
|
259
|
+
src: i.icon,
|
|
260
|
+
alt: i.name,
|
|
261
|
+
class: c(["sidebar__image", {
|
|
262
|
+
"sidebar__image--active": i.selected === !0,
|
|
263
|
+
"sidebar-horizontal__image": s.horizontal
|
|
264
|
+
}])
|
|
265
|
+
}, null, 10, ct)
|
|
266
|
+
]),
|
|
267
|
+
_: 2
|
|
268
|
+
/* DYNAMIC */
|
|
269
|
+
}, 1032, ["text"])) : (n(), a("img", {
|
|
270
|
+
key: 1,
|
|
271
|
+
src: i.icon,
|
|
272
|
+
alt: "icon",
|
|
273
|
+
class: c(["sidebar__image", {
|
|
274
|
+
"sidebar__image--active": i.selected === !0,
|
|
275
|
+
"sidebar-horizontal__image": s.horizontal
|
|
216
276
|
}])
|
|
217
|
-
}, null, 10,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
277
|
+
}, null, 10, dt)),
|
|
278
|
+
i.notificationCount ? (n(), a(
|
|
279
|
+
"span",
|
|
280
|
+
ut,
|
|
281
|
+
j(i.notificationCount > 99 ? "99+" : i.notificationCount),
|
|
282
|
+
1
|
|
283
|
+
/* TEXT */
|
|
284
|
+
)) : l("v-if", !0)
|
|
285
|
+
], 10, lt))),
|
|
286
|
+
128
|
|
287
|
+
/* KEYED_FRAGMENT */
|
|
288
|
+
))
|
|
289
|
+
],
|
|
290
|
+
2
|
|
291
|
+
/* CLASS */
|
|
292
|
+
)
|
|
232
293
|
]),
|
|
233
|
-
|
|
234
|
-
|
|
294
|
+
s.showSettings ? (n(), a("div", _t, [
|
|
295
|
+
s.settingsButtonMode === "menu" ? (n(), v(e.ButtonContextMenu, {
|
|
235
296
|
key: 0,
|
|
236
|
-
actions:
|
|
297
|
+
actions: e.menuActions,
|
|
237
298
|
mode: "click",
|
|
238
299
|
"menu-side": "top-right",
|
|
239
|
-
onClick:
|
|
240
|
-
onButtonClick:
|
|
300
|
+
onClick: e.handleMenuAction,
|
|
301
|
+
onButtonClick: e.handleButtonClick
|
|
241
302
|
}, {
|
|
242
|
-
default:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
303
|
+
default: y(() => [
|
|
304
|
+
u("button", ft, [
|
|
305
|
+
P(e.SettingsIcon),
|
|
306
|
+
s.showSettingsIndicator ? (n(), a("span", mt, [
|
|
307
|
+
e.hasSettingsIndicatorTooltipContent ? (n(), v(e.Tooltip, {
|
|
247
308
|
key: 0,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
texts: k.value,
|
|
309
|
+
ref: "settingsIndicatorTooltipRef",
|
|
310
|
+
text: s.settingsIndicatorTooltip,
|
|
311
|
+
texts: e.normalizedSettingsIndicatorTooltipItems,
|
|
252
312
|
position: "top",
|
|
253
313
|
offset: 8,
|
|
254
314
|
"max-width": "460px",
|
|
255
|
-
"auto-show-duration":
|
|
315
|
+
"auto-show-duration": s.settingsIndicatorTooltipAutoShowMs
|
|
256
316
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
317
|
+
default: y(() => [...d[1] || (d[1] = [
|
|
318
|
+
u(
|
|
319
|
+
"span",
|
|
320
|
+
{ class: "sidebar__settings-indicator" },
|
|
321
|
+
null,
|
|
322
|
+
-1
|
|
323
|
+
/* CACHED */
|
|
324
|
+
)
|
|
259
325
|
])]),
|
|
260
326
|
_: 1
|
|
261
|
-
|
|
262
|
-
|
|
327
|
+
/* STABLE */
|
|
328
|
+
}, 8, ["text", "texts", "auto-show-duration"])) : (n(), a("span", gt))
|
|
329
|
+
])) : l("v-if", !0)
|
|
263
330
|
])
|
|
264
331
|
]),
|
|
265
332
|
_: 1
|
|
266
|
-
|
|
333
|
+
/* STABLE */
|
|
334
|
+
}, 8, ["actions"])) : (n(), a("button", {
|
|
267
335
|
key: 1,
|
|
268
336
|
class: "sidebar__settings-btn",
|
|
269
337
|
type: "button",
|
|
270
|
-
onClick:
|
|
338
|
+
onClick: e.handleSettingsImmediateClick
|
|
271
339
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
340
|
+
P(e.SettingsIcon),
|
|
341
|
+
s.showSettingsIndicator ? (n(), a("span", ht, [
|
|
342
|
+
e.hasSettingsIndicatorTooltipContent ? (n(), v(e.Tooltip, {
|
|
275
343
|
key: 0,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
texts: k.value,
|
|
344
|
+
ref: "settingsIndicatorTooltipRef",
|
|
345
|
+
text: s.settingsIndicatorTooltip,
|
|
346
|
+
texts: e.normalizedSettingsIndicatorTooltipItems,
|
|
280
347
|
position: "top",
|
|
281
348
|
offset: 8,
|
|
282
349
|
"max-width": "460px",
|
|
283
|
-
"auto-show-duration":
|
|
350
|
+
"auto-show-duration": s.settingsIndicatorTooltipAutoShowMs
|
|
284
351
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
352
|
+
default: y(() => [...d[2] || (d[2] = [
|
|
353
|
+
u(
|
|
354
|
+
"span",
|
|
355
|
+
{ class: "sidebar__settings-indicator" },
|
|
356
|
+
null,
|
|
357
|
+
-1
|
|
358
|
+
/* CACHED */
|
|
359
|
+
)
|
|
287
360
|
])]),
|
|
288
361
|
_: 1
|
|
289
|
-
|
|
290
|
-
|
|
362
|
+
/* STABLE */
|
|
363
|
+
}, 8, ["text", "texts", "auto-show-duration"])) : (n(), a("span", bt))
|
|
364
|
+
])) : l("v-if", !0)
|
|
291
365
|
]))
|
|
292
|
-
])) : l("", !0)
|
|
293
|
-
],
|
|
294
|
-
|
|
295
|
-
|
|
366
|
+
])) : l("v-if", !0)
|
|
367
|
+
],
|
|
368
|
+
2
|
|
369
|
+
/* CLASS */
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
const Tt = /* @__PURE__ */ ot(it, [["render", It], ["__scopeId", "data-v-49e8cce4"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/3_compounds/SideBar/SideBar.vue"]]);
|
|
296
373
|
export {
|
|
297
|
-
|
|
374
|
+
Tt as default
|
|
298
375
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as h, openBlock as _, createElementVNode as s, renderSlot as l, watch as a, inject as p, onMounted as y } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import x from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f =
|
|
4
|
+
const f = {
|
|
5
5
|
__name: "AdaptiveExtendedLayout",
|
|
6
6
|
props: {
|
|
7
7
|
isSecondColVisible: {
|
|
@@ -13,51 +13,58 @@ const f = ["id"], _ = ["id"], m = ["id"], v = ["id"], b = {
|
|
|
13
13
|
required: !0
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
|
|
16
|
+
setup(d, { expose: c }) {
|
|
17
|
+
c();
|
|
18
|
+
const o = d;
|
|
18
19
|
a(
|
|
19
20
|
() => [o.isSecondColVisible, o.isThirdColVisible],
|
|
20
21
|
() => {
|
|
21
|
-
o.isSecondColVisible &&
|
|
22
|
+
o.isSecondColVisible && i(), o.isThirdColVisible && n();
|
|
22
23
|
},
|
|
23
24
|
{ immediate: !0 }
|
|
24
25
|
);
|
|
25
|
-
const t =
|
|
26
|
+
const t = p("chatAppId"), n = () => {
|
|
26
27
|
const e = document.getElementById("extern-layout-container-" + t);
|
|
27
28
|
e.style.setProperty("--chotto-adaptive-extended-layout-second-col-display", "none"), e.style.setProperty("--chotto-adaptive-extended-layout-third-col-display", "flex"), e.style.setProperty("--chotto-adaptive-extended-layout-second-col-width", "0%"), e.style.setProperty("--chotto-adaptive-extended-layout-third-col-width", "100%");
|
|
28
|
-
},
|
|
29
|
+
}, i = () => {
|
|
29
30
|
const e = document.getElementById("extern-layout-container-" + t);
|
|
30
31
|
e.style.setProperty("--chotto-adaptive-extended-layout-second-col-display", "flex"), e.style.setProperty("--chotto-adaptive-extended-layout-third-col-display", "none"), e.style.setProperty("--chotto-adaptive-extended-layout-second-col-width", "100%"), e.style.setProperty("--chotto-adaptive-extended-layout-third-col-width", "0%");
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
-
const e = document.getElementById("extern-layout-container-" + t),
|
|
34
|
-
e.style.setProperty("--chotto-adaptive-extended-layout-first-col-width",
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class: "extend-layout__container"
|
|
39
|
-
}, [
|
|
40
|
-
i("div", {
|
|
41
|
-
id: "extend-layout-first-col-" + d(t),
|
|
42
|
-
class: "extend-layout__first-col"
|
|
43
|
-
}, [
|
|
44
|
-
n(e.$slots, "first-col", {}, void 0, !0)
|
|
45
|
-
], 8, _),
|
|
46
|
-
i("div", {
|
|
47
|
-
id: "extend-layout-second-col-" + d(t),
|
|
48
|
-
class: "extend-layout__second-col"
|
|
49
|
-
}, [
|
|
50
|
-
n(e.$slots, "second-col", {}, void 0, !0)
|
|
51
|
-
], 8, m),
|
|
52
|
-
i("div", {
|
|
53
|
-
id: "extend-layout-third-col-" + d(t),
|
|
54
|
-
class: "extend-layout__third-col"
|
|
55
|
-
}, [
|
|
56
|
-
n(e.$slots, "third-col", {}, void 0, !0)
|
|
57
|
-
], 8, v)
|
|
58
|
-
], 8, f));
|
|
33
|
+
y(() => {
|
|
34
|
+
const e = document.getElementById("extern-layout-container-" + t), u = document.getElementById("extend-layout-first-col-" + t);
|
|
35
|
+
e.style.setProperty("--chotto-adaptive-extended-layout-first-col-width", u.offsetWidth + "px");
|
|
36
|
+
});
|
|
37
|
+
const r = { props: o, chatAppId: t, setThirdColVisible: n, setSecondColVisible: i, inject: p, watch: a, onMounted: y };
|
|
38
|
+
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
59
39
|
}
|
|
60
|
-
},
|
|
40
|
+
}, v = ["id"], m = ["id"], I = ["id"], b = ["id"];
|
|
41
|
+
function A(d, c, o, t, n, i) {
|
|
42
|
+
return _(), h("div", {
|
|
43
|
+
id: "extern-layout-container-" + t.chatAppId,
|
|
44
|
+
ref: "refContainer",
|
|
45
|
+
class: "extend-layout__container"
|
|
46
|
+
}, [
|
|
47
|
+
s("div", {
|
|
48
|
+
id: "extend-layout-first-col-" + t.chatAppId,
|
|
49
|
+
class: "extend-layout__first-col"
|
|
50
|
+
}, [
|
|
51
|
+
l(d.$slots, "first-col", {}, void 0, !0)
|
|
52
|
+
], 8, m),
|
|
53
|
+
s("div", {
|
|
54
|
+
id: "extend-layout-second-col-" + t.chatAppId,
|
|
55
|
+
class: "extend-layout__second-col"
|
|
56
|
+
}, [
|
|
57
|
+
l(d.$slots, "second-col", {}, void 0, !0)
|
|
58
|
+
], 8, I),
|
|
59
|
+
s("div", {
|
|
60
|
+
id: "extend-layout-third-col-" + t.chatAppId,
|
|
61
|
+
class: "extend-layout__third-col"
|
|
62
|
+
}, [
|
|
63
|
+
l(d.$slots, "third-col", {}, void 0, !0)
|
|
64
|
+
], 8, b)
|
|
65
|
+
], 8, v);
|
|
66
|
+
}
|
|
67
|
+
const V = /* @__PURE__ */ x(f, [["render", A], ["__scopeId", "data-v-2399a1d0"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue"]]);
|
|
61
68
|
export {
|
|
62
|
-
|
|
69
|
+
V as default
|
|
63
70
|
};
|