@mobilon-dev/chotto 0.3.40 → 0.3.42
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/LICENSE +21 -21
- package/README.md +392 -392
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +1 -1
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +2 -2
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +1 -1
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +3 -3
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +8 -8
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +60 -52
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +14 -14
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +1 -1
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +1 -1
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +1 -1
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +2 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +2 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +1 -1
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +2 -2
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +1 -1
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +11 -11
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +2 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +1 -1
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +2 -2
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +5 -5
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +2 -2
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +2 -2
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +2 -2
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +1 -1
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +3 -3
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +2 -2
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +1 -1
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +9 -9
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +1 -1
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +1 -1
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +2 -2
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +4 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +1 -1
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +1 -1
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +1 -1
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +2 -2
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +2 -2
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +109 -0
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -0
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +2 -2
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +2 -2
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +6 -6
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +1 -1
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +10 -10
- package/dist/components/2_modals/Modal/Modal.vue.js +1 -1
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +1 -1
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +1 -1
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +1 -1
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +1 -1
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +11 -11
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +1 -1
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +5 -5
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +43 -10
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +19 -0
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +82 -81
- package/dist/components/3_compounds/Feed/assets/chat-background.svg.js +3 -3
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +10 -8
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +1 -1
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +2 -2
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +1 -1
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +2 -2
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +1 -1
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +5 -5
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +3 -3
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +1 -1
- package/dist/index.js +147 -145
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +31 -0
- package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +9 -0
- package/dist/types/components/1_atoms/Tooltip/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.d.ts +40 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/stories/MissedCallMessage.stories.d.ts +12 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +10 -0
- package/dist/types/components/3_compounds/ChatList/ChatListHeader.vue.d.ts +6 -0
- package/dist/types/components/3_compounds/ChatList/icons/LogoIcon.vue.d.ts +2 -0
- package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +44 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/main.d.ts +3 -0
- package/package.json +72 -72
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as m, createElementBlock as p, openBlock as s, createElementVNode as n, withDirectives as c, toDisplayString as u, vModelText as d } from "vue";
|
|
2
2
|
import "./CreateChat.vue2.js";
|
|
3
3
|
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = {
|
|
5
5
|
__name: "CreateChat",
|
|
6
6
|
props: {
|
|
7
7
|
title: {
|
|
@@ -11,12 +11,12 @@ const v = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["change"],
|
|
13
13
|
setup(a, { emit: o }) {
|
|
14
|
-
const e =
|
|
14
|
+
const e = m(""), r = o, l = () => {
|
|
15
15
|
r("change", { name: e.value });
|
|
16
16
|
};
|
|
17
|
-
return (
|
|
17
|
+
return (v, t) => (s(), p("div", null, [
|
|
18
18
|
n("h2", null, u(a.title), 1),
|
|
19
|
-
|
|
19
|
+
c(n("input", {
|
|
20
20
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value = i),
|
|
21
21
|
type: "text",
|
|
22
22
|
class: "name",
|
|
@@ -26,7 +26,7 @@ const v = {
|
|
|
26
26
|
])
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
|
-
}, C = /* @__PURE__ */ _(
|
|
29
|
+
}, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
|
|
30
30
|
export {
|
|
31
31
|
C as default
|
|
32
32
|
};
|
|
@@ -124,7 +124,7 @@ const N = { class: "create-chat-form" }, S = { class: "create-chat-title" }, T =
|
|
|
124
124
|
])
|
|
125
125
|
]));
|
|
126
126
|
}
|
|
127
|
-
}, G = /* @__PURE__ */ z(M, [["__scopeId", "data-v-
|
|
127
|
+
}, G = /* @__PURE__ */ z(M, [["__scopeId", "data-v-3302f415"]]);
|
|
128
128
|
export {
|
|
129
129
|
G as default
|
|
130
130
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as v, computed as d, createElementBlock as
|
|
1
|
+
import { ref as v, computed as d, createElementBlock as a, openBlock as i, createElementVNode as t, toDisplayString as u, withDirectives as m, Fragment as f, renderList as p, vModelSelect as _ } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__channel-line" }, w = ["disabled"], x = ["value"], V = ["disabled"], A = {
|
|
@@ -28,24 +28,24 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["change", "submit"],
|
|
30
30
|
setup(o, { emit: g }) {
|
|
31
|
-
const
|
|
32
|
-
c("change", { channel: s.value, contact:
|
|
31
|
+
const r = o, s = v(), n = v(), y = d(() => !!(s.value && n.value)), b = d(() => !!(r.filter && n.value || !r.filter)), h = d(() => r.filter && n.value ? r.filter(n.value, r.channels) : r.channels), c = g, C = () => {
|
|
32
|
+
c("change", { channel: s.value, contact: n.value }), c("submit");
|
|
33
33
|
};
|
|
34
|
-
return (B, l) => (i(),
|
|
34
|
+
return (B, l) => (i(), a("div", null, [
|
|
35
35
|
t("h3", null, u(o.title), 1),
|
|
36
36
|
t("div", null, " Контакт: " + u(o.name), 1),
|
|
37
37
|
t("div", S, [
|
|
38
38
|
l[2] || (l[2] = t("h3", { style: { margin: "0" } }, " Куда пишем ", -1)),
|
|
39
39
|
m(t("select", {
|
|
40
40
|
id: "folder",
|
|
41
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) =>
|
|
41
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => n.value = e)
|
|
42
42
|
}, [
|
|
43
|
-
(i(!0),
|
|
43
|
+
(i(!0), a(f, null, p(o.contacts, (e) => (i(), a("option", {
|
|
44
44
|
key: e.id || e.value,
|
|
45
45
|
value: e
|
|
46
46
|
}, u(e.value), 9, k))), 128))
|
|
47
47
|
], 512), [
|
|
48
|
-
[_,
|
|
48
|
+
[_, n.value]
|
|
49
49
|
])
|
|
50
50
|
]),
|
|
51
51
|
t("div", q, [
|
|
@@ -53,9 +53,9 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
|
|
|
53
53
|
m(t("select", {
|
|
54
54
|
id: "folder",
|
|
55
55
|
"onUpdate:modelValue": l[1] || (l[1] = (e) => s.value = e),
|
|
56
|
-
disabled: !
|
|
56
|
+
disabled: !b.value
|
|
57
57
|
}, [
|
|
58
|
-
(i(!0),
|
|
58
|
+
(i(!0), a(f, null, p(h.value, (e) => (i(), a("option", {
|
|
59
59
|
key: e.id || e.title,
|
|
60
60
|
value: e
|
|
61
61
|
}, u(e.title), 9, x))), 128))
|
|
@@ -72,7 +72,7 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
|
|
|
72
72
|
}, " Начать диалог ", 8, V)
|
|
73
73
|
]));
|
|
74
74
|
}
|
|
75
|
-
}, I = /* @__PURE__ */ D(A, [["__scopeId", "data-v-
|
|
75
|
+
}, I = /* @__PURE__ */ D(A, [["__scopeId", "data-v-c9b375bd"]]);
|
|
76
76
|
export {
|
|
77
77
|
I as default
|
|
78
78
|
};
|
|
@@ -40,7 +40,7 @@ const v = ["data-theme"], y = { class: "modal__container" }, k = {
|
|
|
40
40
|
])
|
|
41
41
|
], 40, v));
|
|
42
42
|
}
|
|
43
|
-
}, g = /* @__PURE__ */ f(k, [["__scopeId", "data-v-
|
|
43
|
+
}, g = /* @__PURE__ */ f(k, [["__scopeId", "data-v-cfd44dde"]]);
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
46
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModalVideoRecorder.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-47304124"]]);
|
|
5
5
|
export {
|
|
6
6
|
d as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as p, createElementBlock as n, openBlock as s, createElementVNode as t, toDisplayString as
|
|
1
|
+
import { ref as p, createElementBlock as n, openBlock as s, createElementVNode as t, toDisplayString as c, Fragment as m, renderList as _, withDirectives as h, vModelCheckbox as v } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"],
|
|
4
|
+
const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], b = {
|
|
5
5
|
__name: "SelectUser2",
|
|
6
6
|
props: {
|
|
7
7
|
users: {
|
|
@@ -14,12 +14,12 @@ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
emits: ["change"],
|
|
17
|
-
setup(o, { emit:
|
|
18
|
-
const r = p([]),
|
|
19
|
-
console.log("check"),
|
|
17
|
+
setup(o, { emit: i }) {
|
|
18
|
+
const r = p([]), a = i, u = () => {
|
|
19
|
+
console.log("check"), a("change", { selectedUsers: r.value });
|
|
20
20
|
};
|
|
21
|
-
return (
|
|
22
|
-
t("h2", null,
|
|
21
|
+
return (x, l) => (s(), n("div", null, [
|
|
22
|
+
t("h2", null, c(o.title), 1),
|
|
23
23
|
t("div", g, [
|
|
24
24
|
(s(!0), n(m, null, _(o.users, (e) => (s(), n("div", {
|
|
25
25
|
key: e.userId,
|
|
@@ -27,21 +27,21 @@ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
|
|
|
27
27
|
}, [
|
|
28
28
|
h(t("input", {
|
|
29
29
|
id: e.userId,
|
|
30
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
30
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => r.value = d),
|
|
31
31
|
type: "checkbox",
|
|
32
32
|
value: e.userId,
|
|
33
|
-
onChange:
|
|
33
|
+
onChange: u
|
|
34
34
|
}, null, 40, k), [
|
|
35
35
|
[v, r.value]
|
|
36
36
|
]),
|
|
37
37
|
t("label", {
|
|
38
38
|
for: e.userId
|
|
39
|
-
},
|
|
39
|
+
}, c(e.name || "unknown username"), 9, y)
|
|
40
40
|
]))), 128))
|
|
41
41
|
])
|
|
42
42
|
]));
|
|
43
43
|
}
|
|
44
|
-
}, C = /* @__PURE__ */ f(
|
|
44
|
+
}, C = /* @__PURE__ */ f(b, [["__scopeId", "data-v-368cbcb0"]]);
|
|
45
45
|
export {
|
|
46
46
|
C as default
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ChatInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-efefc137"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -90,8 +90,8 @@ const R = { class: "chat-list" }, z = {
|
|
|
90
90
|
isShowButton: B,
|
|
91
91
|
scrollToTopForce: C,
|
|
92
92
|
scrollCheck: _,
|
|
93
|
-
startScrollWatch:
|
|
94
|
-
stopScrollWatch:
|
|
93
|
+
startScrollWatch: b,
|
|
94
|
+
stopScrollWatch: T
|
|
95
95
|
} = P({ refChatList: S, chats: k, emit: d }), {
|
|
96
96
|
selectChat: g
|
|
97
97
|
} = U({ chats: k, emit: d }), {
|
|
@@ -150,8 +150,8 @@ const R = { class: "chat-list" }, z = {
|
|
|
150
150
|
ref: S,
|
|
151
151
|
class: "chat-list__items",
|
|
152
152
|
onScroll: o[1] || (o[1] = (...t) => e(_) && e(_)(...t)),
|
|
153
|
-
onMousedown: o[2] || (o[2] = (...t) => e(
|
|
154
|
-
onMouseup: o[3] || (o[3] = (...t) => e(
|
|
153
|
+
onMousedown: o[2] || (o[2] = (...t) => e(b) && e(b)(...t)),
|
|
154
|
+
onMouseup: o[3] || (o[3] = (...t) => e(T) && e(T)(...t))
|
|
155
155
|
}, [
|
|
156
156
|
w(q, {
|
|
157
157
|
class: "chat-list__loading-indicator",
|
|
@@ -199,7 +199,7 @@ const R = { class: "chat-list" }, z = {
|
|
|
199
199
|
})
|
|
200
200
|
]));
|
|
201
201
|
}
|
|
202
|
-
}, gt = /* @__PURE__ */ O(et, [["__scopeId", "data-v-
|
|
202
|
+
}, gt = /* @__PURE__ */ O(et, [["__scopeId", "data-v-60e0e8be"]]);
|
|
203
203
|
export {
|
|
204
204
|
gt as default
|
|
205
205
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
|
|
1
|
+
import { createElementBlock as l, openBlock as e, createElementVNode as i, renderSlot as d, createCommentVNode as o, createBlock as s, toDisplayString as c, withCtx as p } from "vue";
|
|
2
|
+
import _ from "./icons/LogoIcon.vue.js";
|
|
3
|
+
import u from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const b = { class: "chat-list__title-container" }, f = { class: "chat-list__title-block" }, h = {
|
|
3
7
|
key: 0,
|
|
4
8
|
class: "chat-list__title"
|
|
5
|
-
},
|
|
9
|
+
}, y = {
|
|
6
10
|
__name: "ChatListHeader",
|
|
7
11
|
props: {
|
|
8
12
|
title: {
|
|
@@ -12,16 +16,45 @@ const r = { class: "chat-list__title-container" }, c = {
|
|
|
12
16
|
titleEnabled: {
|
|
13
17
|
type: Boolean,
|
|
14
18
|
default: !0
|
|
19
|
+
},
|
|
20
|
+
logoEnabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
betaEnabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
betaTooltipText: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: `Мы постоянно улучшаем платформу.
|
|
31
|
+
Некоторые функции находятся в разработке.`
|
|
15
32
|
}
|
|
16
33
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const t =
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
setup(r) {
|
|
35
|
+
const t = r;
|
|
36
|
+
return (n, a) => (e(), l("div", b, [
|
|
37
|
+
i("div", f, [
|
|
38
|
+
t.titleEnabled ? (e(), l("h2", h, c(t.title), 1)) : o("", !0),
|
|
39
|
+
t.logoEnabled ? (e(), s(_, {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "chat-list__title-logo"
|
|
42
|
+
})) : o("", !0),
|
|
43
|
+
t.betaEnabled ? (e(), s(u, {
|
|
44
|
+
key: 2,
|
|
45
|
+
text: t.betaTooltipText,
|
|
46
|
+
position: "bottom"
|
|
47
|
+
}, {
|
|
48
|
+
default: p(() => [...a[0] || (a[0] = [
|
|
49
|
+
i("div", { class: "chat-list__title-beta-badge" }, " beta ", -1)
|
|
50
|
+
])]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["text"])) : o("", !0)
|
|
53
|
+
]),
|
|
54
|
+
d(n.$slots, "actions", {}, void 0, !0)
|
|
22
55
|
]));
|
|
23
56
|
}
|
|
24
|
-
};
|
|
57
|
+
}, T = /* @__PURE__ */ m(y, [["__scopeId", "data-v-892a8a18"]]);
|
|
25
58
|
export {
|
|
26
|
-
|
|
59
|
+
T as default
|
|
27
60
|
};
|