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