@mobilon-dev/chotto 0.3.116 → 0.3.118
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_icons/VerifiedBadge.vue.js +31 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationRecentSelection.js +12 -15
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +197 -187
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +43 -40
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +1 -1
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +243 -232
- package/dist/index.js +325 -323
- 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/src/components/1_icons/VerifiedBadge.vue.d.ts +2 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +11 -1
- package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/styles/types.d.ts +35 -3
- package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/ChatInfo.vue.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/stories/ChatInfo.stories.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/styles/types.d.ts +20 -0
- package/dist/types/src/components/3_compounds/ChatInput/styles/types.d.ts +32 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/test-utils/withSetup.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
1
|
+
import { inject as _, computed as p, createElementBlock as n, createCommentVNode as s, openBlock as i, createElementVNode as a, createVNode as m, createBlock as v, renderSlot as c, toDisplayString as r, createTextVNode as y, unref as k } from "vue";
|
|
2
|
+
import B from "../../1_icons/AvatarIcon.vue.js";
|
|
3
|
+
import T from "../../1_icons/VerifiedBadge.vue.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import g from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const A = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "chat-info__container"
|
|
8
|
-
},
|
|
9
|
+
}, C = { class: "chat-info__base-line" }, I = { class: "chat-info__avatar-container" }, q = ["src"], V = {
|
|
9
10
|
key: 1,
|
|
10
11
|
class: ""
|
|
11
|
-
},
|
|
12
|
-
key:
|
|
12
|
+
}, $ = { class: "chat-info__info-container" }, w = { class: "chat-info__title" }, N = { class: "chat-info__name" }, S = {
|
|
13
|
+
key: 1,
|
|
13
14
|
class: "chat-info__additional-title"
|
|
14
|
-
},
|
|
15
|
+
}, b = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "chat-info__time"
|
|
17
|
-
},
|
|
18
|
+
}, j = { class: "chat-info__actions" }, D = ["id"], E = {
|
|
18
19
|
__name: "ChatInfo",
|
|
19
20
|
props: {
|
|
20
21
|
chat: {
|
|
@@ -43,51 +44,53 @@ const g = {
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
emits: ["returnToChats"],
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
if (!
|
|
47
|
+
setup(t, { emit: f }) {
|
|
48
|
+
const e = t, u = f, h = _("chatAppId"), d = p(() => {
|
|
49
|
+
if (e.description) return e.description;
|
|
50
|
+
if (!e.description && e.defaultLastActivityTime) return e.chat["lastActivity.time"];
|
|
50
51
|
});
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
return (o, l) => t.chat ? (i(), n("div", A, [
|
|
53
|
+
a("div", C, [
|
|
54
|
+
t.showReturnButton ? (i(), n("span", {
|
|
54
55
|
key: 0,
|
|
55
56
|
class: "pi pi-arrow-left chat-info__return-button",
|
|
56
|
-
onClick: l[0] || (l[0] = (
|
|
57
|
-
})) :
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
onClick: l[0] || (l[0] = (L) => u("returnToChats"))
|
|
58
|
+
})) : s("", !0),
|
|
59
|
+
a("div", I, [
|
|
60
|
+
e.chat.avatar ? (i(), n("img", {
|
|
60
61
|
key: 0,
|
|
61
|
-
src:
|
|
62
|
+
src: e.chat.avatar,
|
|
62
63
|
width: "40",
|
|
63
64
|
height: "40"
|
|
64
|
-
}, null, 8,
|
|
65
|
-
|
|
65
|
+
}, null, 8, q)) : (i(), n("span", V, [
|
|
66
|
+
m(B, { size: 40 })
|
|
66
67
|
]))
|
|
67
68
|
]),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
a("div", $, [
|
|
70
|
+
a("span", w, [
|
|
71
|
+
a("span", N, r(t.chat.name), 1),
|
|
72
|
+
t.chat.verified ? (i(), v(T, { key: 0 })) : s("", !0),
|
|
73
|
+
c(o.$slots, "name-suffix", {}, void 0, !0),
|
|
74
|
+
t.additionalTitle ? (i(), n("span", S, r(t.additionalTitle), 1)) : s("", !0)
|
|
72
75
|
]),
|
|
73
|
-
d.value ? (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
])) :
|
|
76
|
+
d.value ? (i(), n("p", b, [
|
|
77
|
+
c(o.$slots, "img-description", {}, void 0, !0),
|
|
78
|
+
y(" " + r(d.value), 1)
|
|
79
|
+
])) : s("", !0)
|
|
77
80
|
]),
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
a("div", j, [
|
|
82
|
+
c(o.$slots, "actions", {}, void 0, !0)
|
|
80
83
|
])
|
|
81
84
|
]),
|
|
82
|
-
|
|
83
|
-
id: "chat-info-search-panel-" +
|
|
85
|
+
a("div", {
|
|
86
|
+
id: "chat-info-search-panel-" + k(h),
|
|
84
87
|
class: "chat-info__search-panel"
|
|
85
88
|
}, [
|
|
86
|
-
|
|
87
|
-
], 8,
|
|
88
|
-
])) :
|
|
89
|
+
c(o.$slots, "search", {}, void 0, !0)
|
|
90
|
+
], 8, D)
|
|
91
|
+
])) : s("", !0);
|
|
89
92
|
}
|
|
90
|
-
},
|
|
93
|
+
}, G = /* @__PURE__ */ g(E, [["__scopeId", "data-v-d6edd1f9"]]);
|
|
91
94
|
export {
|
|
92
|
-
|
|
95
|
+
G as default
|
|
93
96
|
};
|
|
@@ -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 m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-838169bb"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|