@mobilon-dev/chotto 0.3.73 → 0.3.74
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/CallMessage/CallMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +66 -53
- package/dist/components/3_compounds/Feed/Feed.vue.js +3 -3
- package/dist/components/3_compounds/Feed/Feed.vue2.js +146 -133
- package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +21 -0
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useFeedButton as
|
|
9
|
-
import { useFeedComponents as
|
|
10
|
-
import { useFeedGrouping as
|
|
11
|
-
import { useFeedKeyboard as
|
|
1
|
+
import { defineComponent as fe, ref as k, computed as i, inject as w, unref as s, watch as ge, nextTick as K, onMounted as ye, createElementBlock as c, openBlock as l, createVNode as g, createBlock as f, createCommentVNode as u, normalizeStyle as O, renderSlot as j, withDirectives as pe, createElementVNode as h, vShow as be, Transition as v, withCtx as S, Fragment as ke, renderList as he, resolveDynamicComponent as ve, mergeProps as Se, toDisplayString as Re, Teleport as Me } from "vue";
|
|
2
|
+
import Be from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
|
|
3
|
+
import Ie from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
4
|
+
import Te from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
5
|
+
import Ae from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
|
|
6
|
+
import Ce from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
|
|
7
|
+
import Fe from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
|
|
8
|
+
import { useFeedButton as De } from "./composables/useFeedButton.js";
|
|
9
|
+
import { useFeedComponents as we } from "./composables/useFeedComponents.js";
|
|
10
|
+
import { useFeedGrouping as Ke } from "./composables/useFeedGrouping.js";
|
|
11
|
+
import { useFeedKeyboard as Oe } from "./composables/useFeedKeyboard.js";
|
|
12
12
|
import { useFeedLoadMore as je } from "./composables/useFeedLoadMore.js";
|
|
13
|
-
import { useFeedMessageVisibility as
|
|
14
|
-
import { useFeedReply as
|
|
15
|
-
import { useFeedScroll as
|
|
16
|
-
import { useFeedScrollTo as
|
|
17
|
-
import { useStickyDate as
|
|
18
|
-
import { throttle as
|
|
19
|
-
import
|
|
20
|
-
const
|
|
13
|
+
import { useFeedMessageVisibility as xe } from "./composables/useFeedMessageVisibility.js";
|
|
14
|
+
import { useFeedReply as Le } from "./composables/useFeedReply.js";
|
|
15
|
+
import { useFeedScroll as Ve } from "./composables/useFeedScroll.js";
|
|
16
|
+
import { useFeedScrollTo as $e } from "./composables/useFeedScrollTo.js";
|
|
17
|
+
import { useStickyDate as qe } from "./composables/useStickyDate.js";
|
|
18
|
+
import { throttle as Pe } from "./functions/throttle.js";
|
|
19
|
+
import ze from "./assets/chat-background.svg.js";
|
|
20
|
+
const Ee = { class: "message-feed-wrapper" }, We = ["id"], Ne = { class: "message-feed__loading" }, Ge = ["id", "data-timestamp", "onDblclick"], Ue = { style: { margin: "auto" } }, He = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "message-feed__unread-amount"
|
|
23
|
-
},
|
|
23
|
+
}, ft = /* @__PURE__ */ fe({
|
|
24
24
|
__name: "Feed",
|
|
25
25
|
props: {
|
|
26
26
|
objects: {
|
|
@@ -84,6 +84,15 @@ const ze = { class: "message-feed-wrapper" }, Ee = ["id"], Pe = { class: "messag
|
|
|
84
84
|
type: Object,
|
|
85
85
|
required: !1,
|
|
86
86
|
default: () => ({})
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Позволяет переопределить действие "Перезвонить" для `message.call`.
|
|
90
|
+
* Будет передано внутрь `CallMessage` как проп `onCall`.
|
|
91
|
+
*/
|
|
92
|
+
callMessageOnCallback: {
|
|
93
|
+
type: Function,
|
|
94
|
+
required: !1,
|
|
95
|
+
default: void 0
|
|
87
96
|
}
|
|
88
97
|
},
|
|
89
98
|
emits: [
|
|
@@ -98,185 +107,189 @@ const ze = { class: "message-feed-wrapper" }, Ee = ["id"], Pe = { class: "messag
|
|
|
98
107
|
"smsInvite",
|
|
99
108
|
"delimiterRead"
|
|
100
109
|
],
|
|
101
|
-
setup(e, { emit:
|
|
110
|
+
setup(e, { emit: x }) {
|
|
102
111
|
const a = e, b = k(), r = k(), R = k(), {
|
|
103
|
-
isShowButton:
|
|
112
|
+
isShowButton: L,
|
|
104
113
|
isKeyboardPlace: V,
|
|
105
114
|
checkButtonVisibility: $
|
|
106
|
-
} =
|
|
115
|
+
} = De({
|
|
107
116
|
feedRef: r,
|
|
108
117
|
keyboardRef: R
|
|
109
|
-
}), { componentsMap: q } =
|
|
110
|
-
objects:
|
|
111
|
-
}), y = w("chatAppId"),
|
|
112
|
-
if (
|
|
113
|
-
return
|
|
118
|
+
}), { componentsMap: q } = we(), P = i(() => a.reactionsEnabled), { groupedObjects: z } = Ke({
|
|
119
|
+
objects: i(() => a.objects)
|
|
120
|
+
}), y = w("chatAppId"), M = w("selectedChat", void 0), B = i(() => {
|
|
121
|
+
if (M)
|
|
122
|
+
return s(M);
|
|
114
123
|
});
|
|
115
|
-
function
|
|
116
|
-
return
|
|
124
|
+
function E(o) {
|
|
125
|
+
return o.timestamp;
|
|
117
126
|
}
|
|
118
|
-
function W(
|
|
127
|
+
function W(o) {
|
|
119
128
|
var m;
|
|
120
|
-
const n =
|
|
121
|
-
if (!n.dialogId || !((m =
|
|
129
|
+
const n = o;
|
|
130
|
+
if (!n.dialogId || !((m = B.value) != null && m.dialogs))
|
|
122
131
|
return;
|
|
123
|
-
const t =
|
|
132
|
+
const t = B.value.dialogs.find((p) => p.dialogId === n.dialogId);
|
|
124
133
|
return t == null ? void 0 : t.channelId;
|
|
125
134
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
function N(o) {
|
|
136
|
+
return o.type === "message.call" && typeof a.callMessageOnCallback == "function" ? { onCall: a.callMessageOnCallback } : {};
|
|
137
|
+
}
|
|
138
|
+
const d = x, {
|
|
139
|
+
checkScrollPosition: G,
|
|
140
|
+
startScrollWatch: I,
|
|
141
|
+
stopScrollWatch: T,
|
|
142
|
+
resetAllowFlags: U
|
|
131
143
|
} = je({
|
|
132
144
|
feedRef: r,
|
|
133
145
|
emit: d,
|
|
134
|
-
isLoadingMoreRef:
|
|
146
|
+
isLoadingMoreRef: i(() => a.isLoadingMore)
|
|
135
147
|
}), {
|
|
136
|
-
getMessage:
|
|
137
|
-
messageAction:
|
|
138
|
-
handleClickReplied:
|
|
139
|
-
feedObjectDoubleClick:
|
|
140
|
-
handleResetReply:
|
|
141
|
-
} =
|
|
148
|
+
getMessage: A,
|
|
149
|
+
messageAction: H,
|
|
150
|
+
handleClickReplied: J,
|
|
151
|
+
feedObjectDoubleClick: Q,
|
|
152
|
+
handleResetReply: X
|
|
153
|
+
} = Le({
|
|
142
154
|
enableDoubleClickReply: a.enableDoubleClickReply,
|
|
143
155
|
emit: d
|
|
144
156
|
});
|
|
145
|
-
function
|
|
146
|
-
d("smsInvite",
|
|
157
|
+
function Y(o) {
|
|
158
|
+
d("smsInvite", o);
|
|
147
159
|
}
|
|
148
|
-
function
|
|
149
|
-
d("delimiterRead",
|
|
160
|
+
function Z(o) {
|
|
161
|
+
d("delimiterRead", o);
|
|
150
162
|
}
|
|
151
163
|
const {
|
|
152
|
-
showKeyboard:
|
|
153
|
-
keyboardAction:
|
|
154
|
-
feedKeyboardAction:
|
|
155
|
-
} =
|
|
164
|
+
showKeyboard: _,
|
|
165
|
+
keyboardAction: ee,
|
|
166
|
+
feedKeyboardAction: te
|
|
167
|
+
} = Oe({
|
|
156
168
|
isKeyboardPlace: V,
|
|
157
|
-
objects:
|
|
169
|
+
objects: i(() => a.objects),
|
|
158
170
|
emit: d
|
|
159
171
|
}), {
|
|
160
|
-
showStickyDate:
|
|
161
|
-
stickyDateText:
|
|
162
|
-
show:
|
|
163
|
-
} =
|
|
172
|
+
showStickyDate: oe,
|
|
173
|
+
stickyDateText: se,
|
|
174
|
+
show: ae
|
|
175
|
+
} = qe({
|
|
164
176
|
feedRef: r,
|
|
165
177
|
trackingObjects: b
|
|
166
178
|
}), {
|
|
167
179
|
isInitialized: ne,
|
|
168
|
-
performScrollToBottom:
|
|
169
|
-
ensureScrollToBottom:
|
|
180
|
+
performScrollToBottom: le,
|
|
181
|
+
ensureScrollToBottom: C,
|
|
170
182
|
initializeScroll: ie,
|
|
171
|
-
smoothScrollToBottom:
|
|
172
|
-
} =
|
|
183
|
+
smoothScrollToBottom: re
|
|
184
|
+
} = Ve({
|
|
173
185
|
feedRef: r,
|
|
174
|
-
objectsRef:
|
|
175
|
-
scrollToBottomRef:
|
|
176
|
-
}),
|
|
177
|
-
function D(
|
|
178
|
-
$(),
|
|
186
|
+
objectsRef: i(() => a.objects),
|
|
187
|
+
scrollToBottomRef: i(() => a.scrollToBottom)
|
|
188
|
+
}), F = i(() => a.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(ze)}`);
|
|
189
|
+
function D(o = !0) {
|
|
190
|
+
$(), G(o), ae();
|
|
179
191
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
182
|
-
d("forceScrollToBottom"),
|
|
192
|
+
const de = Pe(() => D(), 250);
|
|
193
|
+
function ce() {
|
|
194
|
+
d("forceScrollToBottom"), re();
|
|
183
195
|
}
|
|
184
|
-
function
|
|
196
|
+
function ue(o) {
|
|
185
197
|
const n = a.objects;
|
|
186
|
-
if (
|
|
187
|
-
const t = parseInt(
|
|
198
|
+
if (o.startsWith("mid-")) {
|
|
199
|
+
const t = parseInt(o.slice(4), 10);
|
|
188
200
|
return n[t];
|
|
189
201
|
}
|
|
190
|
-
return n.find((t) => t.messageId ===
|
|
202
|
+
return n.find((t) => t.messageId === o);
|
|
191
203
|
}
|
|
192
|
-
const { restartObserving:
|
|
204
|
+
const { restartObserving: me } = xe({
|
|
193
205
|
trackingObjects: b,
|
|
194
206
|
chatAppId: y,
|
|
195
|
-
getMessageById:
|
|
196
|
-
onMessageVisible: (
|
|
207
|
+
getMessageById: ue,
|
|
208
|
+
onMessageVisible: (o) => d("messageVisible", o)
|
|
197
209
|
});
|
|
198
|
-
return
|
|
210
|
+
return ge(
|
|
199
211
|
() => a.objects,
|
|
200
212
|
() => {
|
|
201
|
-
|
|
213
|
+
K(() => {
|
|
202
214
|
requestAnimationFrame(() => {
|
|
203
|
-
|
|
215
|
+
U(), D(!1), b.value = document.querySelectorAll(".tracking-message"), me();
|
|
204
216
|
});
|
|
205
217
|
});
|
|
206
218
|
},
|
|
207
219
|
{ immediate: !0 }
|
|
208
|
-
),
|
|
209
|
-
targetIdRef:
|
|
220
|
+
), $e({
|
|
221
|
+
targetIdRef: i(() => a.scrollTo),
|
|
210
222
|
feedContainerId: `feed-container-${y}`
|
|
211
|
-
}),
|
|
212
|
-
|
|
223
|
+
}), ye(() => {
|
|
224
|
+
K(() => {
|
|
213
225
|
a.objects.length > 0 && !ne.value && ie();
|
|
214
|
-
const
|
|
215
|
-
a.scrollToBottom && (
|
|
216
|
-
|
|
226
|
+
const o = new ResizeObserver(() => {
|
|
227
|
+
a.scrollToBottom && (le(), setTimeout(() => {
|
|
228
|
+
C();
|
|
217
229
|
}, 200), setTimeout(() => {
|
|
218
|
-
|
|
230
|
+
C();
|
|
219
231
|
}, 800));
|
|
220
232
|
});
|
|
221
|
-
r.value &&
|
|
233
|
+
r.value && o.observe(r.value);
|
|
222
234
|
});
|
|
223
|
-
}), (
|
|
224
|
-
e.objects.length > 0 || e.typing ? (
|
|
235
|
+
}), (o, n) => (l(), c("div", Ee, [
|
|
236
|
+
e.objects.length > 0 || e.typing ? (l(), c("div", {
|
|
225
237
|
key: 0,
|
|
226
|
-
id: "feed-container-" +
|
|
238
|
+
id: "feed-container-" + s(y),
|
|
227
239
|
ref_key: "refFeed",
|
|
228
240
|
ref: r,
|
|
229
241
|
class: "message-feed",
|
|
230
|
-
style:
|
|
231
|
-
onScroll: n[0] || (n[0] = (t) =>
|
|
242
|
+
style: O({ backgroundImage: `url(${F.value})` }),
|
|
243
|
+
onScroll: n[0] || (n[0] = (t) => s(de)()),
|
|
232
244
|
onMousedown: n[1] || (n[1] = //@ts-ignore
|
|
233
|
-
(...t) =>
|
|
245
|
+
(...t) => s(I) && s(I)(...t)),
|
|
234
246
|
onMouseup: n[2] || (n[2] = //@ts-ignore
|
|
235
|
-
(...t) =>
|
|
247
|
+
(...t) => s(T) && s(T)(...t))
|
|
236
248
|
}, [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
g(
|
|
249
|
+
j(o.$slots, "prepend", {}, void 0, !0),
|
|
250
|
+
pe(h("div", Ne, [
|
|
251
|
+
g(Fe, {
|
|
240
252
|
"is-loading": e.isLoadingMore,
|
|
241
253
|
size: "small",
|
|
242
254
|
position: "top"
|
|
243
255
|
}, null, 8, ["is-loading"])
|
|
244
256
|
], 512), [
|
|
245
|
-
[
|
|
257
|
+
[be, e.isLoadingMore]
|
|
246
258
|
]),
|
|
247
259
|
g(v, null, {
|
|
248
260
|
default: S(() => [
|
|
249
|
-
|
|
261
|
+
s(oe) && !e.isLoadingMore ? (l(), f(Be, {
|
|
250
262
|
key: 0,
|
|
251
263
|
class: "message-feed__sticky-date",
|
|
252
|
-
text:
|
|
264
|
+
text: s(se)
|
|
253
265
|
}, null, 8, ["text"])) : u("", !0)
|
|
254
266
|
]),
|
|
255
267
|
_: 1
|
|
256
268
|
}),
|
|
257
|
-
(
|
|
269
|
+
(l(!0), c(ke, null, he(s(z), (t, m) => (l(), c("div", {
|
|
258
270
|
id: "msg-" + (t.messageId ?? "mid-" + m),
|
|
259
271
|
key: t.messageId ?? "mid-" + m,
|
|
260
|
-
"data-timestamp":
|
|
272
|
+
"data-timestamp": E(t),
|
|
261
273
|
class: "tracking-message",
|
|
262
|
-
onDblclick: (p) =>
|
|
274
|
+
onDblclick: (p) => s(Q)(p, t)
|
|
263
275
|
}, [
|
|
264
|
-
(
|
|
276
|
+
(l(), f(ve(s(q)(t.type)), Se({
|
|
265
277
|
key: t.messageId ?? "mid-" + m,
|
|
266
278
|
class: "message-feed__message",
|
|
267
279
|
message: t,
|
|
268
280
|
"apply-style": e.applyStyle,
|
|
269
281
|
"is-first-in-series": t.isFirstInSeries,
|
|
270
|
-
"reactions-enabled":
|
|
282
|
+
"reactions-enabled": P.value,
|
|
271
283
|
"subtext-tooltip-data": e.subtextTooltipData,
|
|
272
|
-
channel: W(t)
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
284
|
+
channel: W(t)
|
|
285
|
+
}, { ref_for: !0 }, N(t), {
|
|
286
|
+
onAction: s(H),
|
|
287
|
+
onReply: s(J),
|
|
288
|
+
onSmsInvite: (p) => Y(t),
|
|
289
|
+
onRead: Z
|
|
290
|
+
}), null, 16, ["message", "apply-style", "is-first-in-series", "reactions-enabled", "subtext-tooltip-data", "channel", "onAction", "onReply", "onSmsInvite"]))
|
|
291
|
+
], 40, Ge))), 128)),
|
|
292
|
+
e.typing ? (l(), f(Ce, {
|
|
280
293
|
key: 0,
|
|
281
294
|
message: {
|
|
282
295
|
subText: e.typing.title,
|
|
@@ -285,61 +298,61 @@ const ze = { class: "message-feed-wrapper" }, Ee = ["id"], Pe = { class: "messag
|
|
|
285
298
|
}, null, 8, ["message"])) : u("", !0),
|
|
286
299
|
g(v, null, {
|
|
287
300
|
default: S(() => [
|
|
288
|
-
|
|
301
|
+
s(_) ? (l(), f(Te, {
|
|
289
302
|
key: 0,
|
|
290
303
|
ref_key: "keyboardRef",
|
|
291
304
|
ref: R,
|
|
292
305
|
class: "message-feed__keyboard",
|
|
293
306
|
keyboard: e.objects[e.objects.length - 1].keyboard,
|
|
294
307
|
align: e.keyboardAlign,
|
|
295
|
-
onAction:
|
|
308
|
+
onAction: s(ee)
|
|
296
309
|
}, null, 8, ["keyboard", "align", "onAction"])) : u("", !0)
|
|
297
310
|
]),
|
|
298
311
|
_: 1
|
|
299
312
|
}),
|
|
300
|
-
e.feedKeyboards && e.feedKeyboards.length > 0 ? (
|
|
313
|
+
e.feedKeyboards && e.feedKeyboards.length > 0 ? (l(), f(Ae, {
|
|
301
314
|
key: 1,
|
|
302
315
|
buttons: e.feedKeyboards,
|
|
303
316
|
align: e.feedKeyboardAlign,
|
|
304
|
-
onAction:
|
|
317
|
+
onAction: s(te)
|
|
305
318
|
}, null, 8, ["buttons", "align", "onAction"])) : u("", !0)
|
|
306
|
-
], 44,
|
|
319
|
+
], 44, We)) : (l(), c("div", {
|
|
307
320
|
key: 1,
|
|
308
321
|
ref_key: "refFeed",
|
|
309
322
|
ref: r,
|
|
310
323
|
class: "message-feed",
|
|
311
|
-
style:
|
|
324
|
+
style: O({ backgroundImage: `url(${F.value})` })
|
|
312
325
|
}, [
|
|
313
|
-
h("div",
|
|
314
|
-
|
|
326
|
+
h("div", Ue, [
|
|
327
|
+
j(o.$slots, "empty-feed", {}, void 0, !0)
|
|
315
328
|
])
|
|
316
329
|
], 4)),
|
|
317
330
|
g(v, null, {
|
|
318
331
|
default: S(() => [
|
|
319
|
-
|
|
332
|
+
s(L) ? (l(), c("button", {
|
|
320
333
|
key: 0,
|
|
321
334
|
class: "message-feed__button-down",
|
|
322
|
-
onClick:
|
|
335
|
+
onClick: ce
|
|
323
336
|
}, [
|
|
324
|
-
e.buttonParams ? (
|
|
337
|
+
e.buttonParams ? (l(), c("div", He, Re(e.buttonParams.unreadAmount), 1)) : u("", !0),
|
|
325
338
|
n[3] || (n[3] = h("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
|
326
339
|
])) : u("", !0)
|
|
327
340
|
]),
|
|
328
341
|
_: 1
|
|
329
342
|
}),
|
|
330
|
-
|
|
343
|
+
s(A)().reply ? (l(), f(Me, {
|
|
331
344
|
key: 2,
|
|
332
|
-
to: "#chat-input-reply-line-" +
|
|
345
|
+
to: "#chat-input-reply-line-" + s(y)
|
|
333
346
|
}, [
|
|
334
|
-
g(
|
|
347
|
+
g(Ie, {
|
|
335
348
|
class: "chat-input-reply",
|
|
336
|
-
message:
|
|
337
|
-
onReset:
|
|
349
|
+
message: s(A)().reply,
|
|
350
|
+
onReset: s(X)
|
|
338
351
|
}, null, 8, ["message", "onReset"])
|
|
339
352
|
], 8, ["to"])) : u("", !0)
|
|
340
353
|
]));
|
|
341
354
|
}
|
|
342
355
|
});
|
|
343
356
|
export {
|
|
344
|
-
|
|
357
|
+
ft as default
|
|
345
358
|
};
|
|
@@ -4,6 +4,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4
4
|
type: () => ICallMessage;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Позволяет переопределить действие кнопки "Перезвонить" снаружи (например, из feed).
|
|
9
|
+
* Если не задано, компонент эмитит событие `call`.
|
|
10
|
+
*/
|
|
11
|
+
onCall: {
|
|
12
|
+
type: () => ((message: ICallMessage) => void) | undefined;
|
|
13
|
+
required: false;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
7
16
|
applyStyle: {
|
|
8
17
|
type: FunctionConstructor;
|
|
9
18
|
default: () => null;
|
|
@@ -16,11 +25,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
25
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
26
|
action: (...args: any[]) => void;
|
|
18
27
|
reply: (...args: any[]) => void;
|
|
28
|
+
call: (...args: any[]) => void;
|
|
19
29
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
30
|
message: {
|
|
21
31
|
type: () => ICallMessage;
|
|
22
32
|
required: true;
|
|
23
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Позволяет переопределить действие кнопки "Перезвонить" снаружи (например, из feed).
|
|
36
|
+
* Если не задано, компонент эмитит событие `call`.
|
|
37
|
+
*/
|
|
38
|
+
onCall: {
|
|
39
|
+
type: () => ((message: ICallMessage) => void) | undefined;
|
|
40
|
+
required: false;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
24
43
|
applyStyle: {
|
|
25
44
|
type: FunctionConstructor;
|
|
26
45
|
default: () => null;
|
|
@@ -33,8 +52,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
52
|
}>> & Readonly<{
|
|
34
53
|
onAction?: ((...args: any[]) => any) | undefined;
|
|
35
54
|
onReply?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onCall?: ((...args: any[]) => any) | undefined;
|
|
36
56
|
}>, {
|
|
37
57
|
applyStyle: Function;
|
|
38
58
|
subtextTooltipData: Record<string, string>;
|
|
59
|
+
onCall: ((message: ICallMessage) => void) | undefined;
|
|
39
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
61
|
export default _default;
|
|
@@ -80,6 +80,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
80
80
|
required: false;
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* Позволяет переопределить действие "Перезвонить" для `message.call`.
|
|
85
|
+
* Будет передано внутрь `CallMessage` как проп `onCall`.
|
|
86
|
+
*/
|
|
87
|
+
callMessageOnCallback: {
|
|
88
|
+
type: () => ((message: IFeedObject) => void) | undefined;
|
|
89
|
+
required: false;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
83
92
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
93
|
loadMore: (...args: any[]) => void;
|
|
85
94
|
smsInvite: (...args: any[]) => void;
|
|
@@ -166,6 +175,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
166
175
|
required: false;
|
|
167
176
|
default: () => {};
|
|
168
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
* Позволяет переопределить действие "Перезвонить" для `message.call`.
|
|
180
|
+
* Будет передано внутрь `CallMessage` как проп `onCall`.
|
|
181
|
+
*/
|
|
182
|
+
callMessageOnCallback: {
|
|
183
|
+
type: () => ((message: IFeedObject) => void) | undefined;
|
|
184
|
+
required: false;
|
|
185
|
+
default: undefined;
|
|
186
|
+
};
|
|
169
187
|
}>> & Readonly<{
|
|
170
188
|
onLoadMore?: ((...args: any[]) => any) | undefined;
|
|
171
189
|
onSmsInvite?: ((...args: any[]) => any) | undefined;
|
|
@@ -191,6 +209,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
191
209
|
feedKeyboards: IFeedKeyboard[];
|
|
192
210
|
feedKeyboardAlign: "left" | "right" | "center";
|
|
193
211
|
isLoadingMore: boolean;
|
|
212
|
+
callMessageOnCallback: ((message: IFeedObject) => void) | undefined;
|
|
194
213
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
195
214
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
196
215
|
export default _default;
|