@mobilon-dev/chotto 0.0.61 → 0.0.63
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/README.md
CHANGED
@@ -1,27 +1,31 @@
|
|
1
1
|
# chotto
|
2
|
-
Vue3 Chat UI components - собери свой интерфейс чата
|
3
2
|
|
4
|
-
|
3
|
+
Vue3 UI components for chats, conversations, ai
|
5
4
|
|
6
|
-
|
5
|
+
# usage
|
6
|
+
|
7
|
+
## docs
|
7
8
|
|
8
9
|
- [storybook](https://mobilon-dev.github.io/chotto/)
|
9
10
|
|
10
|
-
##
|
11
|
+
## screnshots
|
11
12
|
|
12
|
-

|
13
14
|
|
14
|
-
## пример
|
15
15
|
|
16
|
-
|
16
|
+
## examples
|
17
17
|
|
18
|
-
|
18
|
+
[simple](https://github.com/antirek/chotto-sample)
|
19
19
|
|
20
|
-
|
20
|
+
[demo1: 1 manager + 3 site users](https://determaer.github.io/chat-demo/) ([source](https://github.com/determaer/chat-demo))
|
21
21
|
|
22
22
|
|
23
|
-
# разработка
|
24
23
|
|
24
|
+
# development
|
25
|
+
|
26
|
+
## scheme
|
27
|
+
|
28
|
+

|
25
29
|
|
26
30
|
## install
|
27
31
|
|
@@ -40,13 +44,14 @@ Vue3 Chat UI components - собери свой интерфейс чата
|
|
40
44
|
> npm run build
|
41
45
|
|
42
46
|
|
43
|
-
# Дополнительно
|
44
47
|
|
45
|
-
|
48
|
+
# Links
|
49
|
+
|
50
|
+
### screenshots
|
46
51
|
|
47
52
|
[samples](/samples)
|
48
53
|
|
49
|
-
###
|
54
|
+
### same projects
|
50
55
|
|
51
56
|
- https://github.com/sendbird/sendbird-uikit-react
|
52
57
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, openBlock as n, createElementBlock as s, createElementVNode as t, toDisplayString as a, Fragment as m, renderList as _, withDirectives as h, vModelCheckbox as v } from "vue";
|
2
|
-
import { _ as f } from "./index-
|
2
|
+
import { _ as f } from "./index-nWkbq3BI.js";
|
3
3
|
const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
|
4
4
|
__name: "SelectUser2",
|
5
5
|
props: {
|
@@ -1031,7 +1031,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1031
1031
|
const v = C(n);
|
1032
1032
|
v.scrollHeight - v.scrollTop - v.clientHeight < 100 ? a.value = !1 : a.value = !0, v.scrollTop === 0 && y && i("loadMore");
|
1033
1033
|
}, u = (y) => ({
|
1034
|
-
"message.text":
|
1034
|
+
"message.text": mr,
|
1035
1035
|
"message.image": Ar,
|
1036
1036
|
"message.file": $1,
|
1037
1037
|
"message.audio": Sr,
|
@@ -16151,7 +16151,7 @@ const k1 = {
|
|
16151
16151
|
], 32)
|
16152
16152
|
], 42, x1));
|
16153
16153
|
}
|
16154
|
-
}), $1 = /* @__PURE__ */ Q(q1, [["__scopeId", "data-v-
|
16154
|
+
}), $1 = /* @__PURE__ */ Q(q1, [["__scopeId", "data-v-a5e98d5f"]]), H1 = ["messageId"], F1 = ["src"], P1 = {
|
16155
16155
|
key: 1,
|
16156
16156
|
class: "image-message__subtext"
|
16157
16157
|
}, W1 = { class: "image-message__content" }, K1 = ["src", "alt"], J1 = {
|
@@ -16319,16 +16319,16 @@ const k1 = {
|
|
16319
16319
|
]))
|
16320
16320
|
], 42, H1));
|
16321
16321
|
}
|
16322
|
-
}), Ar = /* @__PURE__ */ Q(sr, [["__scopeId", "data-v-
|
16322
|
+
}), Ar = /* @__PURE__ */ Q(sr, [["__scopeId", "data-v-9dbe96e3"]]), ir = ["messageId"], or = ["src"], lr = {
|
16323
16323
|
key: 1,
|
16324
16324
|
class: "text-message__subtext"
|
16325
|
-
},
|
16325
|
+
}, rr = ["innerHTML"], ur = { class: "text-message__info-container" }, cr = {
|
16326
16326
|
key: 1,
|
16327
16327
|
class: "text-message__time"
|
16328
|
-
},
|
16328
|
+
}, dr = {
|
16329
16329
|
key: 0,
|
16330
16330
|
class: "pi pi-check"
|
16331
|
-
},
|
16331
|
+
}, gr = /* @__PURE__ */ Z({
|
16332
16332
|
__name: "TextMessage",
|
16333
16333
|
props: {
|
16334
16334
|
message: {
|
@@ -16361,83 +16361,81 @@ const k1 = {
|
|
16361
16361
|
function m(h) {
|
16362
16362
|
return h.position === "left" ? "text-message__left" : "text-message__right";
|
16363
16363
|
}
|
16364
|
-
return (h, M) => (r(), c("div",
|
16364
|
+
return (h, M) => (r(), c("div", {
|
16365
|
+
class: L(["text-message", m(e.message)]),
|
16366
|
+
messageId: e.message.messageId,
|
16367
|
+
onMouseleave: u
|
16368
|
+
}, [
|
16369
|
+
e.message.avatar ? (r(), c("img", {
|
16370
|
+
key: 0,
|
16371
|
+
class: "text-message__avatar",
|
16372
|
+
src: e.message.avatar,
|
16373
|
+
height: "32",
|
16374
|
+
width: "32",
|
16375
|
+
style: J({ gridRow: e.message.subText ? "2" : "1" })
|
16376
|
+
}, null, 12, or)) : b("", !0),
|
16377
|
+
e.message.subText ? (r(), c("p", lr, D(e.message.subText), 1)) : b("", !0),
|
16365
16378
|
o("div", {
|
16366
|
-
class:
|
16367
|
-
|
16368
|
-
onMouseleave: u
|
16379
|
+
class: "text-message__content",
|
16380
|
+
onMouseenter: l
|
16369
16381
|
}, [
|
16370
|
-
|
16382
|
+
o("p", {
|
16383
|
+
innerHTML: A.value,
|
16384
|
+
class: "text-message__text",
|
16385
|
+
onClick: i
|
16386
|
+
}, null, 8, rr),
|
16387
|
+
o("div", ur, [
|
16388
|
+
e.message.views ? (r(), c("div", {
|
16389
|
+
key: 0,
|
16390
|
+
class: "text-message__views",
|
16391
|
+
onClick: p
|
16392
|
+
}, [
|
16393
|
+
M[1] || (M[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16394
|
+
o("p", null, D(e.message.views), 1)
|
16395
|
+
])) : b("", !0),
|
16396
|
+
e.message.time ? (r(), c("span", cr, D(e.message.time), 1)) : b("", !0),
|
16397
|
+
m(e.message) === "text-message__right" && C(Ke).includes(e.message.status) ? (r(), c("div", {
|
16398
|
+
key: 2,
|
16399
|
+
class: L(["text-message__status", g.value])
|
16400
|
+
}, [
|
16401
|
+
e.message.status !== "sent" ? (r(), c("span", dr)) : b("", !0),
|
16402
|
+
M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
|
16403
|
+
], 2)) : b("", !0)
|
16404
|
+
]),
|
16405
|
+
s.value && e.message.actions ? (r(), c("button", {
|
16371
16406
|
key: 0,
|
16372
|
-
class: "text-
|
16373
|
-
|
16374
|
-
|
16375
|
-
|
16376
|
-
|
16377
|
-
|
16378
|
-
|
16379
|
-
|
16380
|
-
class: "text-message__content",
|
16381
|
-
onMouseenter: l
|
16382
|
-
}, [
|
16383
|
-
o("p", {
|
16384
|
-
innerHTML: A.value,
|
16385
|
-
class: "text-message__text",
|
16386
|
-
onClick: i
|
16387
|
-
}, null, 8, ur),
|
16388
|
-
o("div", cr, [
|
16389
|
-
e.message.views ? (r(), c("div", {
|
16407
|
+
class: "text-message__menu-button",
|
16408
|
+
onClick: M[0] || (M[0] = (y) => a.value = !a.value)
|
16409
|
+
}, M[3] || (M[3] = [
|
16410
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16411
|
+
]))) : b("", !0),
|
16412
|
+
R(P, null, {
|
16413
|
+
default: W(() => [
|
16414
|
+
a.value && e.message.actions ? (r(), K(C(Ve), {
|
16390
16415
|
key: 0,
|
16391
|
-
class: "text-
|
16392
|
-
|
16393
|
-
|
16394
|
-
|
16395
|
-
o("p", null, D(e.message.views), 1)
|
16396
|
-
])) : b("", !0),
|
16397
|
-
e.message.time ? (r(), c("span", dr, D(e.message.time), 1)) : b("", !0),
|
16398
|
-
m(e.message) === "text-message__right" && C(Ke).includes(e.message.status) ? (r(), c("div", {
|
16399
|
-
key: 2,
|
16400
|
-
class: L(["text-message__status", g.value])
|
16401
|
-
}, [
|
16402
|
-
e.message.status !== "sent" ? (r(), c("span", gr)) : b("", !0),
|
16403
|
-
M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
|
16404
|
-
], 2)) : b("", !0)
|
16416
|
+
class: "text-message__context-menu",
|
16417
|
+
actions: e.message.actions,
|
16418
|
+
onClick: d
|
16419
|
+
}, null, 8, ["actions"])) : b("", !0)
|
16405
16420
|
]),
|
16406
|
-
|
16407
|
-
|
16408
|
-
|
16409
|
-
|
16410
|
-
}, M[3] || (M[3] = [
|
16411
|
-
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16412
|
-
]))) : b("", !0),
|
16413
|
-
R(P, null, {
|
16414
|
-
default: W(() => [
|
16415
|
-
a.value && e.message.actions ? (r(), K(C(Ve), {
|
16416
|
-
key: 0,
|
16417
|
-
class: "text-message__context-menu",
|
16418
|
-
actions: e.message.actions,
|
16419
|
-
onClick: d
|
16420
|
-
}, null, 8, ["actions"])) : b("", !0)
|
16421
|
-
]),
|
16422
|
-
_: 1
|
16423
|
-
})
|
16424
|
-
], 32)
|
16425
|
-
], 42, or)
|
16426
|
-
]));
|
16421
|
+
_: 1
|
16422
|
+
})
|
16423
|
+
], 32)
|
16424
|
+
], 42, ir));
|
16427
16425
|
}
|
16428
|
-
}),
|
16426
|
+
}), mr = /* @__PURE__ */ Q(gr, [["__scopeId", "data-v-329a2e3c"]]), pr = ["messageId"], hr = ["src"], yr = {
|
16429
16427
|
key: 1,
|
16430
16428
|
class: "audio-message__subtext"
|
16431
|
-
},
|
16429
|
+
}, Mr = ["src"], vr = { class: "audio-message__progress-bar-container" }, br = { class: "audio-message__remaining-time" }, _r = { class: "audio-message__info-container" }, Ir = { class: "audio-message__time" }, wr = {
|
16432
16430
|
key: 0,
|
16433
16431
|
class: "pi pi-check"
|
16434
|
-
},
|
16432
|
+
}, kr = ["href"], Nr = {
|
16435
16433
|
key: 1,
|
16436
16434
|
class: "audio-message__transcript-container"
|
16437
|
-
},
|
16435
|
+
}, Dr = {
|
16438
16436
|
key: 0,
|
16439
16437
|
class: "audio-message__modal-overlay"
|
16440
|
-
},
|
16438
|
+
}, jr = { class: "audio-message__modal" }, Er = { style: { "word-wrap": "break-word", "max-width": "25rem" } }, Tr = {
|
16441
16439
|
key: 2,
|
16442
16440
|
class: "audio-message__text-container"
|
16443
16441
|
}, Vr = ["innerHTML"], xr = /* @__PURE__ */ Z({
|
@@ -16499,8 +16497,8 @@ const k1 = {
|
|
16499
16497
|
height: "32",
|
16500
16498
|
width: "32",
|
16501
16499
|
style: J({ gridRow: e.message.subText ? "2" : "1" })
|
16502
|
-
}, null, 12,
|
16503
|
-
e.message.subText ? (r(), c("p",
|
16500
|
+
}, null, 12, hr)) : b("", !0),
|
16501
|
+
e.message.subText ? (r(), c("p", yr, D(e.message.subText), 1)) : b("", !0),
|
16504
16502
|
o("div", {
|
16505
16503
|
class: "audio-message__content",
|
16506
16504
|
onMouseenter: m
|
@@ -16509,7 +16507,7 @@ const k1 = {
|
|
16509
16507
|
ref_key: "player",
|
16510
16508
|
ref: a,
|
16511
16509
|
src: e.message.url
|
16512
|
-
}, null, 8,
|
16510
|
+
}, null, 8, Mr),
|
16513
16511
|
ce(o("button", {
|
16514
16512
|
class: "audio-message__play",
|
16515
16513
|
onClick: k
|
@@ -16526,14 +16524,14 @@ const k1 = {
|
|
16526
16524
|
]), 512), [
|
16527
16525
|
[Lf, s.value]
|
16528
16526
|
]),
|
16529
|
-
o("div",
|
16527
|
+
o("div", vr, [
|
16530
16528
|
o("div", {
|
16531
16529
|
class: "audio-message__progress-bar",
|
16532
16530
|
style: J({ width: B.value + "%" })
|
16533
16531
|
}, null, 4)
|
16534
16532
|
]),
|
16535
|
-
o("p",
|
16536
|
-
o("div",
|
16533
|
+
o("p", br, D(`${w.value} / ${j.value}`), 1),
|
16534
|
+
o("div", _r, [
|
16537
16535
|
e.message.views ? (r(), c("div", {
|
16538
16536
|
key: 0,
|
16539
16537
|
onClick: M,
|
@@ -16542,12 +16540,12 @@ const k1 = {
|
|
16542
16540
|
T[5] || (T[5] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16543
16541
|
o("p", null, D(e.message.views), 1)
|
16544
16542
|
])) : b("", !0),
|
16545
|
-
o("span",
|
16543
|
+
o("span", Ir, D(e.message.time), 1),
|
16546
16544
|
E(e.message) === "audio-message__right" && C(Ke).includes(e.message.status) ? (r(), c("div", {
|
16547
16545
|
key: 1,
|
16548
16546
|
class: L(["audio-message__status", v.value])
|
16549
16547
|
}, [
|
16550
|
-
e.message.status !== "sent" ? (r(), c("span",
|
16548
|
+
e.message.status !== "sent" ? (r(), c("span", wr)) : b("", !0),
|
16551
16549
|
T[6] || (T[6] = o("span", { class: "pi pi-check" }, null, -1))
|
16552
16550
|
], 2)) : b("", !0)
|
16553
16551
|
]),
|
@@ -16566,7 +16564,7 @@ const k1 = {
|
|
16566
16564
|
target: "_blank"
|
16567
16565
|
}, T[8] || (T[8] = [
|
16568
16566
|
o("span", { class: "pi pi-download" }, null, -1)
|
16569
|
-
]), 8,
|
16567
|
+
]), 8, kr),
|
16570
16568
|
R(P, null, {
|
16571
16569
|
default: W(() => [
|
16572
16570
|
l.value && e.message.actions ? (r(), K(C(Ve), {
|
@@ -16578,7 +16576,7 @@ const k1 = {
|
|
16578
16576
|
]),
|
16579
16577
|
_: 1
|
16580
16578
|
}),
|
16581
|
-
(U = e.message.transcript) != null && U.text ? (r(), c("div",
|
16579
|
+
(U = e.message.transcript) != null && U.text ? (r(), c("div", Nr, [
|
16582
16580
|
o("p", {
|
16583
16581
|
onClick: T[1] || (T[1] = (N) => d.value = !d.value)
|
16584
16582
|
}, D(e.message.transcript.text), 1)
|
@@ -16588,8 +16586,8 @@ const k1 = {
|
|
16588
16586
|
default: W(() => {
|
16589
16587
|
var N;
|
16590
16588
|
return [
|
16591
|
-
d.value ? (r(), c("div",
|
16592
|
-
o("div",
|
16589
|
+
d.value ? (r(), c("div", Dr, [
|
16590
|
+
o("div", jr, [
|
16593
16591
|
o("button", {
|
16594
16592
|
class: "audio-message__modal-close-button",
|
16595
16593
|
onClick: T[2] || (T[2] = (V) => d.value = !1)
|
@@ -16598,7 +16596,7 @@ const k1 = {
|
|
16598
16596
|
o("i", { class: "pi pi-times" })
|
16599
16597
|
], -1)
|
16600
16598
|
])),
|
16601
|
-
o("p",
|
16599
|
+
o("p", Er, D((N = e.message.transcript) == null ? void 0 : N.text), 1)
|
16602
16600
|
])
|
16603
16601
|
])) : b("", !0)
|
16604
16602
|
];
|
@@ -16613,10 +16611,10 @@ const k1 = {
|
|
16613
16611
|
}, null, 8, Vr)
|
16614
16612
|
])) : b("", !0)
|
16615
16613
|
], 32)
|
16616
|
-
], 42,
|
16614
|
+
], 42, pr);
|
16617
16615
|
};
|
16618
16616
|
}
|
16619
|
-
}), Sr = /* @__PURE__ */ Q(xr, [["__scopeId", "data-v-
|
16617
|
+
}), Sr = /* @__PURE__ */ Q(xr, [["__scopeId", "data-v-eaa9933c"]]), Cr = { class: "date-message" }, zr = { class: "date-message__container" }, Or = { class: "date-message__text" }, Lr = /* @__PURE__ */ Z({
|
16620
16618
|
__name: "DateMessage",
|
16621
16619
|
props: {
|
16622
16620
|
message: {
|
@@ -16814,7 +16812,7 @@ const k1 = {
|
|
16814
16812
|
]))
|
16815
16813
|
], 42, Br));
|
16816
16814
|
}
|
16817
|
-
}), eu = /* @__PURE__ */ Q(Xr, [["__scopeId", "data-v-
|
16815
|
+
}), eu = /* @__PURE__ */ Q(Xr, [["__scopeId", "data-v-7cae93d0"]]), fu = { class: "call-message" }, tu = ["messageId"], nu = ["src"], au = {
|
16818
16816
|
key: 1,
|
16819
16817
|
class: "call-message__subtext"
|
16820
16818
|
}, su = { class: "call-message__content" }, Au = {
|
@@ -17049,7 +17047,7 @@ function on({ component: e, attrs: f }) {
|
|
17049
17047
|
const vc = async (e, f) => {
|
17050
17048
|
const t = await on({
|
17051
17049
|
//в component должен быть встроен emit change(key: value)
|
17052
|
-
component: import("./SelectUser2-
|
17050
|
+
component: import("./SelectUser2-DwuGsdVS.js"),
|
17053
17051
|
attrs: {
|
17054
17052
|
title: e,
|
17055
17053
|
users: f
|
@@ -17289,7 +17287,7 @@ export {
|
|
17289
17287
|
Ke as L,
|
17290
17288
|
Je as M,
|
17291
17289
|
bu as S,
|
17292
|
-
|
17290
|
+
mr as T,
|
17293
17291
|
ic as U,
|
17294
17292
|
eu as V,
|
17295
17293
|
Q as _,
|