@mobilon-dev/chotto 0.3.113 → 0.3.116
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/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +34 -42
- package/dist/components/3_compounds/Feed/Feed.vue.js +1 -1
- package/dist/components/3_compounds/Feed/Feed.vue2.js +1 -0
- 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/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.d.ts +2 -2
- package/dist/types/src/components/2_feed_elements/MessageReactions/styles/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./DelimiterMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e7027153"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const k = {
|
|
4
|
-
key:
|
|
5
|
-
class: "delimiter-
|
|
6
|
-
}, N =
|
|
1
|
+
import { defineComponent as v, computed as T, ref as c, onMounted as y, onBeforeUnmount as x, watch as _, createElementBlock as u, openBlock as n, normalizeClass as R, createBlock as b, withCtx as D, createElementVNode as O, toDisplayString as f } from "vue";
|
|
2
|
+
import h from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
3
|
+
const k = { class: "delimiter-message__text" }, I = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "delimiter-message__text"
|
|
6
|
+
}, N = 3e3, A = 400, U = /* @__PURE__ */ v({
|
|
7
7
|
__name: "DelimiterMessage",
|
|
8
8
|
props: {
|
|
9
9
|
message: {
|
|
@@ -15,10 +15,10 @@ const k = {
|
|
|
15
15
|
type: String,
|
|
16
16
|
default: ""
|
|
17
17
|
},
|
|
18
|
-
/** Позиция тултипа: top | right | bottom | left | bottom-left | top-center */
|
|
18
|
+
/** Позиция тултипа: top | right | bottom | bottom-center | left | bottom-left | top-center */
|
|
19
19
|
tooltipPosition: {
|
|
20
20
|
type: String,
|
|
21
|
-
default: "
|
|
21
|
+
default: "bottom-center"
|
|
22
22
|
},
|
|
23
23
|
/** Отступ тултипа от элемента (px) */
|
|
24
24
|
tooltipOffset: {
|
|
@@ -32,19 +32,19 @@ const k = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["read"],
|
|
35
|
-
setup(o, { emit:
|
|
36
|
-
const i = o,
|
|
35
|
+
setup(o, { emit: d }) {
|
|
36
|
+
const i = o, a = T(
|
|
37
37
|
() => i.tooltipText || i.message.tooltipText || ""
|
|
38
|
-
),
|
|
38
|
+
), p = d, s = c(null), r = c(!1);
|
|
39
39
|
let t = null, e = null;
|
|
40
40
|
const m = () => {
|
|
41
41
|
!i.message.autoRemove || !s.value || (t = new IntersectionObserver(
|
|
42
|
-
(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
},
|
|
42
|
+
(l) => {
|
|
43
|
+
l[0].isIntersecting ? (e && clearTimeout(e), e = setTimeout(() => {
|
|
44
|
+
r.value = !0, t && s.value && (t.disconnect(), t = null), setTimeout(() => {
|
|
45
|
+
p("read", i.message.messageId);
|
|
46
|
+
}, A);
|
|
47
|
+
}, N)) : e && (clearTimeout(e), e = null);
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
threshold: 0.75,
|
|
@@ -53,47 +53,39 @@ const k = {
|
|
|
53
53
|
}
|
|
54
54
|
), t.observe(s.value));
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return y(() => {
|
|
57
57
|
i.message.autoRemove && setTimeout(() => {
|
|
58
58
|
m();
|
|
59
59
|
}, 100);
|
|
60
|
-
}),
|
|
60
|
+
}), x(() => {
|
|
61
61
|
e && (clearTimeout(e), e = null), t && (t.disconnect(), t = null);
|
|
62
|
-
}),
|
|
62
|
+
}), _(
|
|
63
63
|
() => i.message.autoRemove,
|
|
64
|
-
(
|
|
65
|
-
t && (t.disconnect(), t = null), e && (clearTimeout(e), e = null),
|
|
64
|
+
(l) => {
|
|
65
|
+
t && (t.disconnect(), t = null), e && (clearTimeout(e), e = null), l && setTimeout(() => {
|
|
66
66
|
m();
|
|
67
67
|
}, 100);
|
|
68
68
|
}
|
|
69
|
-
), (
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
), (l, g) => (n(), u("div", {
|
|
70
|
+
ref_key: "containerRef",
|
|
71
|
+
ref: s,
|
|
72
|
+
class: R(["delimiter-message__container", { "delimiter-message__container--removing": r.value }])
|
|
73
|
+
}, [
|
|
74
|
+
a.value ? (n(), b(h, {
|
|
75
|
+
key: 0,
|
|
76
|
+
text: a.value,
|
|
72
77
|
position: o.tooltipPosition,
|
|
73
78
|
offset: o.tooltipOffset,
|
|
74
79
|
delay: o.tooltipDelay
|
|
75
80
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
78
|
-
ref_key: "containerRef",
|
|
79
|
-
ref: s,
|
|
80
|
-
class: d(["delimiter-message__container", { "delimiter-message__container--removing": l.value }])
|
|
81
|
-
}, [
|
|
82
|
-
a("p", N, p(o.message.text), 1)
|
|
83
|
-
], 2)
|
|
81
|
+
default: D(() => [
|
|
82
|
+
O("p", k, f(o.message.text), 1)
|
|
84
83
|
]),
|
|
85
84
|
_: 1
|
|
86
|
-
}, 8, ["text", "position", "offset", "delay"])
|
|
87
|
-
])) : (f(), u("div", {
|
|
88
|
-
key: 1,
|
|
89
|
-
ref_key: "containerRef",
|
|
90
|
-
ref: s,
|
|
91
|
-
class: d(["delimiter-message__container", { "delimiter-message__container--removing": l.value }])
|
|
92
|
-
}, [
|
|
93
|
-
a("p", I, p(o.message.text), 1)
|
|
85
|
+
}, 8, ["text", "position", "offset", "delay"])) : (n(), u("p", I, f(o.message.text), 1))
|
|
94
86
|
], 2));
|
|
95
87
|
}
|
|
96
88
|
});
|
|
97
89
|
export {
|
|
98
|
-
|
|
90
|
+
U as default
|
|
99
91
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Feed.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9221fdb9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|