@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.
@@ -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 m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-75a5769e"]]);
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e7027153"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as T, computed as y, ref as c, onMounted as x, onBeforeUnmount as R, watch as h, createElementBlock as u, openBlock as f, createVNode as D, withCtx as O, createElementVNode as a, normalizeClass as d, toDisplayString as p } from "vue";
2
- import b from "../../1_atoms/Tooltip/Tooltip.vue.js";
3
- const k = {
4
- key: 0,
5
- class: "delimiter-message__tooltip-root"
6
- }, N = { class: "delimiter-message__text" }, I = { class: "delimiter-message__text" }, A = 3e3, E = 400, B = /* @__PURE__ */ T({
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: "top-center"
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: g }) {
36
- const i = o, r = y(
35
+ setup(o, { emit: d }) {
36
+ const i = o, a = T(
37
37
  () => i.tooltipText || i.message.tooltipText || ""
38
- ), v = g, s = c(null), l = c(!1);
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
- (n) => {
43
- n[0].isIntersecting ? (e && clearTimeout(e), e = setTimeout(() => {
44
- l.value = !0, t && s.value && (t.disconnect(), t = null), setTimeout(() => {
45
- v("read", i.message.messageId);
46
- }, E);
47
- }, A)) : e && (clearTimeout(e), e = null);
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 x(() => {
56
+ return y(() => {
57
57
  i.message.autoRemove && setTimeout(() => {
58
58
  m();
59
59
  }, 100);
60
- }), R(() => {
60
+ }), x(() => {
61
61
  e && (clearTimeout(e), e = null), t && (t.disconnect(), t = null);
62
- }), h(
62
+ }), _(
63
63
  () => i.message.autoRemove,
64
- (n) => {
65
- t && (t.disconnect(), t = null), e && (clearTimeout(e), e = null), n && setTimeout(() => {
64
+ (l) => {
65
+ t && (t.disconnect(), t = null), e && (clearTimeout(e), e = null), l && setTimeout(() => {
66
66
  m();
67
67
  }, 100);
68
68
  }
69
- ), (n, _) => r.value ? (f(), u("div", k, [
70
- D(b, {
71
- text: r.value,
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: O(() => [
77
- a("div", {
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
- B as default
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-f5bc4663"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9221fdb9"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -393,6 +393,7 @@ const dt = {
393
393
  }),
394
394
  a.feedKeyboards && a.feedKeyboards.length > 0 ? (i(), f(Ve, {
395
395
  key: 1,
396
+ class: "message-feed__feed-keyboard",
396
397
  buttons: a.feedKeyboards,
397
398
  align: a.feedKeyboardAlign,
398
399
  onAction: o(he)