@matechat/core 1.10.0 → 1.11.0-alpha.0
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/Attachment/Attachment.vue.d.ts +121 -0
- package/Attachment/attachment-types.d.ts +103 -0
- package/Attachment/drop-area.vue.d.ts +13 -0
- package/Attachment/index.css +1 -1
- package/Attachment/index.d.ts +2 -0
- package/Attachment/index.js +211 -311
- package/Attachment/uploader.d.ts +11 -0
- package/Attachment/use-upload.d.ts +8 -0
- package/Bubble/Bubble.vue.d.ts +75 -0
- package/Bubble/BubbleLoading.vue.d.ts +3 -0
- package/Bubble/bubble-constants.d.ts +4 -0
- package/Bubble/bubble-types.d.ts +38 -0
- package/Bubble/components/Avatar.vue.d.ts +57 -0
- package/Bubble/components/AvatarBodyIcon.vue.d.ts +24 -0
- package/Bubble/components/AvatarNoBodyIcon.vue.d.ts +24 -0
- package/Bubble/components/avatar-types.d.ts +25 -0
- package/Bubble/index.css +1 -1
- package/Bubble/index.d.ts +2 -0
- package/Bubble/index.js +142 -148
- package/FileList/FileIcon/CodeFile.vue.d.ts +10 -0
- package/FileList/FileIcon/CompressedFile.vue.d.ts +10 -0
- package/FileList/FileIcon/DefaultFileIcon.vue.d.ts +10 -0
- package/FileList/FileIcon/Document.vue.d.ts +10 -0
- package/FileList/FileIcon/DrawingBoard.vue.d.ts +10 -0
- package/FileList/FileIcon/EmailFile.vue.d.ts +10 -0
- package/FileList/FileIcon/Excel.vue.d.ts +10 -0
- package/FileList/FileIcon/FlowChart.vue.d.ts +10 -0
- package/FileList/FileIcon/FolderClosed.vue.d.ts +10 -0
- package/FileList/FileIcon/FolderOpen.vue.d.ts +10 -0
- package/FileList/FileIcon/Image.vue.d.ts +10 -0
- package/FileList/FileIcon/Markdown.vue.d.ts +10 -0
- package/FileList/FileIcon/Mind.vue.d.ts +10 -0
- package/FileList/FileIcon/Mp4.vue.d.ts +10 -0
- package/FileList/FileIcon/MultidimentionalTable.vue.d.ts +10 -0
- package/FileList/FileIcon/Page.vue.d.ts +10 -0
- package/FileList/FileIcon/Pdf.vue.d.ts +10 -0
- package/FileList/FileIcon/Ppt.vue.d.ts +10 -0
- package/FileList/FileIcon/Unknown.vue.d.ts +10 -0
- package/FileList/FileIcon/Wrong.vue.d.ts +10 -0
- package/FileList/FileList.vue.d.ts +36 -0
- package/FileList/fileList-types.d.ts +21 -0
- package/FileList/index.d.ts +2 -0
- package/FileList/index.js +220 -228
- package/Header/Header.vue.d.ts +47 -0
- package/Header/header-types.d.ts +14 -0
- package/Header/index.d.ts +2 -0
- package/Header/index.js +0 -1
- package/Input/Input.vue.d.ts +165 -0
- package/Input/components/EditableBlock.vue.d.ts +101 -0
- package/Input/components/InputTag.vue.d.ts +30 -0
- package/Input/components/LoadingIcon.vue.d.ts +3 -0
- package/Input/components/SendIcon.vue.d.ts +3 -0
- package/Input/components/button.vue.d.ts +3 -0
- package/Input/components/textarea-utils.d.ts +17 -0
- package/Input/components/textarea.vue.d.ts +3 -0
- package/Input/components/use-textarea-autosize.d.ts +12 -0
- package/Input/components/util.d.ts +3 -0
- package/Input/index.css +1 -1
- package/Input/index.d.ts +2 -0
- package/Input/index.js +114 -252
- package/Input/input-types.d.ts +118 -0
- package/Introduction/Introduction.vue.d.ts +88 -0
- package/Introduction/index.css +1 -1
- package/Introduction/index.d.ts +2 -0
- package/Introduction/index.js +8 -9
- package/Introduction/introduction-types.d.ts +37 -0
- package/Layout/Aside.vue.d.ts +13 -0
- package/Layout/Content.vue.d.ts +13 -0
- package/Layout/Header.vue.d.ts +13 -0
- package/Layout/Layout.vue.d.ts +13 -0
- package/Layout/Sender.vue.d.ts +13 -0
- package/Layout/index.d.ts +6 -0
- package/Layout/index.js +0 -1
- package/List/List.vue.d.ts +98 -0
- package/List/const.d.ts +5 -0
- package/List/index.css +1 -1
- package/List/index.d.ts +3 -0
- package/List/index.js +51 -54
- package/List/list-types.d.ts +52 -0
- package/List/use-list.d.ts +13 -0
- package/Locale/i18n.d.ts +21 -0
- package/Locale/index.d.ts +7 -0
- package/Locale/index.js +35 -103
- package/Locale/lang/en-us.d.ts +34 -0
- package/Locale/lang/zh-cn.d.ts +34 -0
- package/MarkdownCard/CodeBlock.vue.d.ts +76 -0
- package/MarkdownCard/MDCardParser.d.ts +12 -0
- package/MarkdownCard/MDCardService.d.ts +14 -0
- package/MarkdownCard/MermaidService.d.ts +22 -0
- package/MarkdownCard/index.css +1 -1
- package/MarkdownCard/index.d.ts +2 -0
- package/MarkdownCard/index.js +205 -559
- package/MarkdownCard/mdCard.types.d.ts +88 -0
- package/MarkdownCard/mdCard.vue.d.ts +29 -0
- package/Mention/Mention.vue.d.ts +51 -0
- package/Mention/const.d.ts +4 -0
- package/Mention/index.d.ts +2 -0
- package/Mention/index.js +0 -1
- package/Mention/mention-types.d.ts +24 -0
- package/Mention/use-mention.d.ts +10 -0
- package/Prompt/Prompt.vue.d.ts +38 -0
- package/Prompt/PromptItem.vue.d.ts +11 -0
- package/Prompt/components/Icon.vue.d.ts +42 -0
- package/Prompt/components/icon-types.d.ts +18 -0
- package/Prompt/index.d.ts +2 -0
- package/Prompt/prompt-types.d.ts +33 -0
- package/README.md +12 -8
- package/Toolbar/Toolbar.vue.d.ts +68 -0
- package/Toolbar/icon/CopyIcon.vue.d.ts +42 -0
- package/Toolbar/icon/DeleteIcon.vue.d.ts +42 -0
- package/Toolbar/icon/DislikeIcon.vue.d.ts +46 -0
- package/Toolbar/icon/LikeIcon.vue.d.ts +46 -0
- package/Toolbar/icon/RefreshIcon.vue.d.ts +42 -0
- package/Toolbar/icon/ShareIcon.vue.d.ts +42 -0
- package/Toolbar/index.css +1 -0
- package/Toolbar/index.d.ts +8 -0
- package/Toolbar/index.js +519 -0
- package/Toolbar/toolbar.types.d.ts +60 -0
- package/mate-chat.js +0 -6
- package/package.json +4 -1
package/Bubble/index.js
CHANGED
|
@@ -1,61 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
const k = (i, a) => {
|
|
4
|
-
const s = i.__vccOpts || i;
|
|
5
|
-
for (const [n, c] of a)
|
|
6
|
-
s[n] = c;
|
|
7
|
-
return s;
|
|
8
|
-
}, F = {}, T = { class: "mc-bubble-loading" };
|
|
9
|
-
function D(i, a) {
|
|
10
|
-
return r(), o("div", T, [...a[0] || (a[0] = [
|
|
11
|
-
v(
|
|
12
|
-
"div",
|
|
13
|
-
{ class: "loading-dot dot-start" },
|
|
14
|
-
null,
|
|
15
|
-
-1
|
|
16
|
-
/* CACHED */
|
|
17
|
-
),
|
|
18
|
-
v(
|
|
19
|
-
"div",
|
|
20
|
-
{ class: "loading-dot dot-middle" },
|
|
21
|
-
null,
|
|
22
|
-
-1
|
|
23
|
-
/* CACHED */
|
|
24
|
-
),
|
|
25
|
-
v(
|
|
26
|
-
"div",
|
|
27
|
-
{ class: "loading-dot dot-end" },
|
|
28
|
-
null,
|
|
29
|
-
-1
|
|
30
|
-
/* CACHED */
|
|
31
|
-
)
|
|
32
|
-
])]);
|
|
33
|
-
}
|
|
34
|
-
const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]), z = 36, P = 36, U = "name", H = "imgSrc", O = {
|
|
35
|
-
content: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
loading: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
align: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "left"
|
|
46
|
-
},
|
|
47
|
-
avatarPosition: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "side"
|
|
50
|
-
},
|
|
51
|
-
variant: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "filled"
|
|
54
|
-
},
|
|
55
|
-
avatarConfig: {
|
|
56
|
-
type: Object
|
|
57
|
-
}
|
|
58
|
-
}, j = {
|
|
1
|
+
import { defineComponent as M, createElementBlock as l, openBlock as r, normalizeStyle as h, createElementVNode as v, ref as p, watch as N, createCommentVNode as d, normalizeClass as b, toDisplayString as A, createVNode as w, useSlots as B, computed as $, normalizeProps as R, guardReactiveProps as E, unref as Z, renderSlot as y, createTextVNode as F } from "vue";
|
|
2
|
+
const T = {
|
|
59
3
|
name: {
|
|
60
4
|
type: String,
|
|
61
5
|
default: ""
|
|
@@ -79,7 +23,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
79
23
|
type: String,
|
|
80
24
|
default: ""
|
|
81
25
|
}
|
|
82
|
-
},
|
|
26
|
+
}, _ = /* @__PURE__ */ M({
|
|
83
27
|
__name: "AvatarBodyIcon",
|
|
84
28
|
props: {
|
|
85
29
|
width: {
|
|
@@ -92,7 +36,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
92
36
|
}
|
|
93
37
|
},
|
|
94
38
|
setup(i) {
|
|
95
|
-
return (a, s) => (r(),
|
|
39
|
+
return (a, s) => (r(), l(
|
|
96
40
|
"svg",
|
|
97
41
|
{
|
|
98
42
|
style: h({
|
|
@@ -104,7 +48,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
104
48
|
version: "1.1",
|
|
105
49
|
xmlns: "http://www.w3.org/2000/svg"
|
|
106
50
|
},
|
|
107
|
-
|
|
51
|
+
s[0] || (s[0] = [
|
|
108
52
|
v(
|
|
109
53
|
"g",
|
|
110
54
|
{
|
|
@@ -127,14 +71,14 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
127
71
|
})
|
|
128
72
|
],
|
|
129
73
|
-1
|
|
130
|
-
/*
|
|
74
|
+
/* HOISTED */
|
|
131
75
|
)
|
|
132
|
-
])
|
|
76
|
+
]),
|
|
133
77
|
4
|
|
134
78
|
/* STYLE */
|
|
135
79
|
));
|
|
136
80
|
}
|
|
137
|
-
}),
|
|
81
|
+
}), D = /* @__PURE__ */ M({
|
|
138
82
|
__name: "AvatarNoBodyIcon",
|
|
139
83
|
props: {
|
|
140
84
|
width: {
|
|
@@ -147,7 +91,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
147
91
|
}
|
|
148
92
|
},
|
|
149
93
|
setup(i) {
|
|
150
|
-
return (a, s) => (r(),
|
|
94
|
+
return (a, s) => (r(), l(
|
|
151
95
|
"svg",
|
|
152
96
|
{
|
|
153
97
|
style: h({
|
|
@@ -159,7 +103,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
159
103
|
version: "1.1",
|
|
160
104
|
xmlns: "http://www.w3.org/2000/svg"
|
|
161
105
|
},
|
|
162
|
-
|
|
106
|
+
s[0] || (s[0] = [
|
|
163
107
|
v(
|
|
164
108
|
"g",
|
|
165
109
|
{
|
|
@@ -259,63 +203,63 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
259
203
|
})
|
|
260
204
|
],
|
|
261
205
|
-1
|
|
262
|
-
/*
|
|
206
|
+
/* HOISTED */
|
|
263
207
|
)
|
|
264
|
-
])
|
|
208
|
+
]),
|
|
265
209
|
4
|
|
266
210
|
/* STYLE */
|
|
267
211
|
));
|
|
268
212
|
}
|
|
269
|
-
}),
|
|
213
|
+
}), I = { class: "mc-bubble-avatar-wrapper" }, z = ["src"], P = /* @__PURE__ */ M({
|
|
270
214
|
__name: "Avatar",
|
|
271
|
-
props:
|
|
215
|
+
props: T,
|
|
272
216
|
setup(i) {
|
|
273
|
-
const a = i, s =
|
|
217
|
+
const a = i, s = p(!1), n = p(!0), g = p(1), t = p(12), o = p(), C = (e) => {
|
|
274
218
|
if (a.gender) {
|
|
275
|
-
a.gender.toLowerCase() === "male" ?
|
|
219
|
+
a.gender.toLowerCase() === "male" ? g.value = 1 : a.gender.toLowerCase() === "female" && (g.value = 0);
|
|
276
220
|
return;
|
|
277
221
|
}
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
},
|
|
222
|
+
const u = e.charCodeAt(0);
|
|
223
|
+
g.value = u % 2;
|
|
224
|
+
}, L = (e, u) => {
|
|
281
225
|
if (e.length < 2)
|
|
282
|
-
|
|
226
|
+
o.value = e;
|
|
283
227
|
else if (/^[\u4e00-\u9fa5]/.test(e))
|
|
284
|
-
|
|
228
|
+
o.value = e.substr(e.length - 2, 2);
|
|
285
229
|
else if (/^[A-Za-z]/.test(e))
|
|
286
230
|
if (/[_ -]/.test(e)) {
|
|
287
|
-
const
|
|
288
|
-
|
|
231
|
+
const c = e.split(/_|-|\s+/)[0], m = e.split(/_|-|\s+/)[1];
|
|
232
|
+
o.value = c.substr(0, 1).toUpperCase() + m.substr(0, 1).toUpperCase();
|
|
289
233
|
} else
|
|
290
|
-
|
|
234
|
+
o.value = e.substr(0, 2).toUpperCase();
|
|
291
235
|
else
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
const
|
|
296
|
-
|
|
236
|
+
o.value = e.substr(0, 2);
|
|
237
|
+
u < 30 && (o.value = e.substr(0, 1).toUpperCase()), C(e.substr(0, 1));
|
|
238
|
+
}, f = (e) => {
|
|
239
|
+
const u = e, c = Math.min(a.width, a.height);
|
|
240
|
+
u ? (n.value = !1, L(u, c)) : u === "" ? (n.value = !1, o.value = "") : n.value = !0, t.value = c / 4 + 3;
|
|
297
241
|
};
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
}), (e,
|
|
301
|
-
var
|
|
302
|
-
return r(),
|
|
303
|
-
e.imgSrc && !s.value ? (r(),
|
|
242
|
+
return f(a.name), N([() => a.name, () => a.width, () => a.height, () => a.gender], () => {
|
|
243
|
+
f(a.name);
|
|
244
|
+
}), (e, u) => {
|
|
245
|
+
var c, m;
|
|
246
|
+
return r(), l("span", I, [
|
|
247
|
+
e.imgSrc && !s.value ? (r(), l("img", {
|
|
304
248
|
key: 0,
|
|
305
249
|
src: e.imgSrc,
|
|
306
250
|
alt: "",
|
|
307
|
-
onError:
|
|
251
|
+
onError: u[0] || (u[0] = () => s.value = !0),
|
|
308
252
|
style: h({
|
|
309
253
|
height: `${e.height}px`,
|
|
310
254
|
width: `${e.width}px`,
|
|
311
255
|
borderRadius: e.isRound ? "100%" : "0"
|
|
312
256
|
})
|
|
313
|
-
}, null, 44,
|
|
314
|
-
!e.imgSrc && !n.value && ((
|
|
257
|
+
}, null, 44, z)) : d("v-if", !0),
|
|
258
|
+
!e.imgSrc && !n.value && ((c = o.value) == null ? void 0 : c.length) !== 0 ? (r(), l(
|
|
315
259
|
"span",
|
|
316
260
|
{
|
|
317
261
|
key: 1,
|
|
318
|
-
class:
|
|
262
|
+
class: b(["mc-bubble-avatar-style", `mc-bubble-avatar-background-${g.value}`]),
|
|
319
263
|
style: h({
|
|
320
264
|
height: `${e.height}px`,
|
|
321
265
|
width: `${e.width}px`,
|
|
@@ -324,11 +268,11 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
324
268
|
borderRadius: e.isRound ? "100%" : "0"
|
|
325
269
|
})
|
|
326
270
|
},
|
|
327
|
-
A(
|
|
271
|
+
A(o.value),
|
|
328
272
|
7
|
|
329
273
|
/* TEXT, CLASS, STYLE */
|
|
330
|
-
)) :
|
|
331
|
-
!e.imgSrc && !n.value && ((
|
|
274
|
+
)) : d("v-if", !0),
|
|
275
|
+
!e.imgSrc && !n.value && ((m = o.value) == null ? void 0 : m.length) === 0 ? (r(), l(
|
|
332
276
|
"span",
|
|
333
277
|
{
|
|
334
278
|
key: 2,
|
|
@@ -336,15 +280,15 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
336
280
|
style: h({ borderRadius: e.isRound ? "100%" : "0" })
|
|
337
281
|
},
|
|
338
282
|
[
|
|
339
|
-
|
|
283
|
+
w(_, {
|
|
340
284
|
width: e.width,
|
|
341
285
|
height: e.height
|
|
342
286
|
}, null, 8, ["width", "height"])
|
|
343
287
|
],
|
|
344
288
|
4
|
|
345
289
|
/* STYLE */
|
|
346
|
-
)) :
|
|
347
|
-
!e.imgSrc && n.value || e.imgSrc && s.value ? (r(),
|
|
290
|
+
)) : d("v-if", !0),
|
|
291
|
+
!e.imgSrc && n.value || e.imgSrc && s.value ? (r(), l(
|
|
348
292
|
"span",
|
|
349
293
|
{
|
|
350
294
|
key: 3,
|
|
@@ -352,102 +296,152 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
352
296
|
style: h({ borderRadius: e.isRound ? "100%" : "0" })
|
|
353
297
|
},
|
|
354
298
|
[
|
|
355
|
-
|
|
299
|
+
w(D, {
|
|
356
300
|
width: e.width,
|
|
357
301
|
height: e.height
|
|
358
302
|
}, null, 8, ["width", "height"])
|
|
359
303
|
],
|
|
360
304
|
4
|
|
361
305
|
/* STYLE */
|
|
362
|
-
)) :
|
|
306
|
+
)) : d("v-if", !0)
|
|
363
307
|
]);
|
|
364
308
|
};
|
|
365
309
|
}
|
|
366
|
-
}),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
310
|
+
}), U = {
|
|
311
|
+
content: {
|
|
312
|
+
type: String,
|
|
313
|
+
default: ""
|
|
314
|
+
},
|
|
315
|
+
loading: {
|
|
316
|
+
type: Boolean,
|
|
317
|
+
default: !1
|
|
318
|
+
},
|
|
319
|
+
align: {
|
|
320
|
+
type: String,
|
|
321
|
+
default: "left"
|
|
322
|
+
},
|
|
323
|
+
avatarPosition: {
|
|
324
|
+
type: String,
|
|
325
|
+
default: "side"
|
|
326
|
+
},
|
|
327
|
+
variant: {
|
|
328
|
+
type: String,
|
|
329
|
+
default: "filled"
|
|
330
|
+
},
|
|
331
|
+
avatarConfig: {
|
|
332
|
+
type: Object
|
|
333
|
+
}
|
|
334
|
+
}, H = 36, O = 36, j = "name", G = "imgSrc", k = (i, a) => {
|
|
335
|
+
const s = i.__vccOpts || i;
|
|
336
|
+
for (const [n, g] of a)
|
|
337
|
+
s[n] = g;
|
|
338
|
+
return s;
|
|
339
|
+
}, W = {}, q = { class: "mc-bubble-loading" };
|
|
340
|
+
function J(i, a) {
|
|
341
|
+
return r(), l("div", q, a[0] || (a[0] = [
|
|
342
|
+
v(
|
|
343
|
+
"div",
|
|
344
|
+
{ class: "loading-dot dot-start" },
|
|
345
|
+
null,
|
|
346
|
+
-1
|
|
347
|
+
/* HOISTED */
|
|
348
|
+
),
|
|
349
|
+
v(
|
|
350
|
+
"div",
|
|
351
|
+
{ class: "loading-dot dot-middle" },
|
|
352
|
+
null,
|
|
353
|
+
-1
|
|
354
|
+
/* HOISTED */
|
|
355
|
+
),
|
|
356
|
+
v(
|
|
357
|
+
"div",
|
|
358
|
+
{ class: "loading-dot dot-end" },
|
|
359
|
+
null,
|
|
360
|
+
-1
|
|
361
|
+
/* HOISTED */
|
|
362
|
+
)
|
|
363
|
+
]));
|
|
364
|
+
}
|
|
365
|
+
const K = /* @__PURE__ */ k(W, [["render", J], ["__scopeId", "data-v-395fc568"]]), Q = {
|
|
370
366
|
key: 0,
|
|
371
367
|
class: "mc-bubble-avatar-name"
|
|
372
|
-
},
|
|
368
|
+
}, X = {
|
|
373
369
|
key: 1,
|
|
374
370
|
class: "loading-container"
|
|
375
|
-
},
|
|
371
|
+
}, Y = /* @__PURE__ */ M({
|
|
376
372
|
__name: "Bubble",
|
|
377
|
-
props:
|
|
373
|
+
props: U,
|
|
378
374
|
setup(i) {
|
|
379
375
|
const a = B(), s = i, n = $(() => [
|
|
380
376
|
`mc-bubble-avatar-${s.avatarPosition}`,
|
|
381
377
|
`mc-bubble-${s.align}`,
|
|
382
378
|
s.loading ? "mc-bubble-loading" : ""
|
|
383
|
-
]),
|
|
379
|
+
]), g = $(() => {
|
|
384
380
|
if (s.avatarConfig) {
|
|
385
|
-
const t = Object.keys(s.avatarConfig),
|
|
386
|
-
return t.length < 1 || !
|
|
387
|
-
}
|
|
388
|
-
|
|
381
|
+
const t = Object.keys(s.avatarConfig), o = t.some((C) => C === j || C === G);
|
|
382
|
+
return t.length < 1 || !o;
|
|
383
|
+
} else
|
|
384
|
+
return !0;
|
|
389
385
|
});
|
|
390
|
-
return (t,
|
|
391
|
-
var
|
|
392
|
-
return r(),
|
|
386
|
+
return (t, o) => {
|
|
387
|
+
var C, L, f;
|
|
388
|
+
return r(), l(
|
|
393
389
|
"div",
|
|
394
390
|
{
|
|
395
|
-
class:
|
|
391
|
+
class: b(["mc-bubble", n.value])
|
|
396
392
|
},
|
|
397
393
|
[
|
|
398
|
-
|
|
399
|
-
p(t.$slots, "avatar", {}, void 0, !0)
|
|
400
|
-
])) : t.avatarConfig ? (r(), o(
|
|
394
|
+
t.avatarConfig ? (r(), l(
|
|
401
395
|
"div",
|
|
402
396
|
{
|
|
403
|
-
key:
|
|
404
|
-
class:
|
|
397
|
+
key: 0,
|
|
398
|
+
class: b(["mc-bubble-avatar", { "empty-avatar": g.value }])
|
|
405
399
|
},
|
|
406
400
|
[
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
R(
|
|
410
|
-
|
|
411
|
-
width: ((
|
|
412
|
-
height: ((
|
|
401
|
+
w(
|
|
402
|
+
P,
|
|
403
|
+
R(E(
|
|
404
|
+
g.value ? {
|
|
405
|
+
width: ((C = t.avatarConfig) == null ? void 0 : C.width) || Z(H),
|
|
406
|
+
height: ((L = t.avatarConfig) == null ? void 0 : L.height) || Z(O)
|
|
413
407
|
} : t.avatarConfig
|
|
414
408
|
)),
|
|
415
409
|
null,
|
|
416
410
|
16
|
|
417
411
|
/* FULL_PROPS */
|
|
418
412
|
),
|
|
419
|
-
t.avatarPosition === "top" ? (r(),
|
|
413
|
+
t.avatarPosition === "top" ? (r(), l(
|
|
420
414
|
"span",
|
|
421
|
-
|
|
422
|
-
A((
|
|
415
|
+
Q,
|
|
416
|
+
A((f = t.avatarConfig) == null ? void 0 : f.displayName),
|
|
423
417
|
1
|
|
424
418
|
/* TEXT */
|
|
425
|
-
)) :
|
|
419
|
+
)) : d("v-if", !0)
|
|
426
420
|
],
|
|
427
421
|
2
|
|
428
422
|
/* CLASS */
|
|
429
|
-
)) :
|
|
423
|
+
)) : d("v-if", !0),
|
|
430
424
|
v(
|
|
431
425
|
"div",
|
|
432
426
|
{
|
|
433
|
-
class:
|
|
427
|
+
class: b(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
|
|
434
428
|
},
|
|
435
429
|
[
|
|
436
|
-
t.loading ?
|
|
437
|
-
t.loading ? (r(),
|
|
438
|
-
|
|
439
|
-
|
|
430
|
+
t.loading ? d("v-if", !0) : y(t.$slots, "top", { key: 0 }, void 0, !0),
|
|
431
|
+
t.loading ? (r(), l("div", X, [
|
|
432
|
+
y(t.$slots, "loadingTpl", {}, () => [
|
|
433
|
+
w(K)
|
|
440
434
|
], !0)
|
|
441
|
-
])) :
|
|
442
|
-
(
|
|
435
|
+
])) : d("v-if", !0),
|
|
436
|
+
(Z(a).default || t.content) && !t.loading ? (r(), l(
|
|
443
437
|
"div",
|
|
444
438
|
{
|
|
445
439
|
key: 2,
|
|
446
|
-
class:
|
|
440
|
+
class: b(["mc-bubble-content", [t.variant]])
|
|
447
441
|
},
|
|
448
442
|
[
|
|
449
|
-
|
|
450
|
-
|
|
443
|
+
y(t.$slots, "default", {}, () => [
|
|
444
|
+
F(
|
|
451
445
|
A(t.content),
|
|
452
446
|
1
|
|
453
447
|
/* TEXT */
|
|
@@ -456,8 +450,8 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
456
450
|
],
|
|
457
451
|
2
|
|
458
452
|
/* CLASS */
|
|
459
|
-
)) :
|
|
460
|
-
t.loading ?
|
|
453
|
+
)) : d("v-if", !0),
|
|
454
|
+
t.loading ? d("v-if", !0) : y(t.$slots, "bottom", { key: 3 }, void 0, !0)
|
|
461
455
|
],
|
|
462
456
|
2
|
|
463
457
|
/* CLASS */
|
|
@@ -468,7 +462,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
|
|
|
468
462
|
);
|
|
469
463
|
};
|
|
470
464
|
}
|
|
471
|
-
}), S = /* @__PURE__ */ k(
|
|
465
|
+
}), S = /* @__PURE__ */ k(Y, [["__scopeId", "data-v-7e509691"]]);
|
|
472
466
|
S.install = (i) => {
|
|
473
467
|
i.component("McBubble", S);
|
|
474
468
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
size: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|