@matechat/core 1.11.0-alpha.0 → 1.11.0-alpha.1
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/Bubble/index.css +1 -1
- package/Bubble/index.js +142 -136
- package/Header/index.js +1 -0
- package/Input/index.css +1 -1
- package/Input/index.js +673 -107
- package/Introduction/index.css +1 -1
- package/Introduction/index.js +42 -32
- package/Layout/index.js +1 -0
- package/List/index.css +1 -1
- package/List/index.js +54 -51
- package/Locale/index.js +85 -35
- package/MarkdownCard/index.css +1 -1
- package/MarkdownCard/index.js +558 -204
- package/Mention/index.js +1 -0
- package/README.md +8 -12
- package/Toolbar/index.d.ts +2 -1
- package/Toolbar/index.js +1 -0
- package/index.d.ts +18 -6
- package/mate-chat.js +17 -2
- package/package.json +1 -4
package/Bubble/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-bubble-
|
|
1
|
+
.mc-bubble-loading[data-v-395fc568]{display:flex;align-items:center;gap:8px}.mc-bubble-loading .loading-dot[data-v-395fc568]{width:8px;height:8px;border-radius:5px;background-color:#9880ff}.mc-bubble-loading .loading-dot.dot-start[data-v-395fc568]{animation:dotFlashing-395fc568 1s infinite linear alternate;animation-delay:0s}.mc-bubble-loading .loading-dot.dot-middle[data-v-395fc568]{animation:dotFlashing-395fc568 1s infinite linear alternate;animation-delay:.5s}.mc-bubble-loading .loading-dot.dot-end[data-v-395fc568]{animation:dotFlashing-395fc568 1s infinite linear alternate;animation-delay:1s}@keyframes dotFlashing-395fc568{0%{background-color:#9880ff}to{background-color:#ebe6ff}}.mc-bubble-avatar-wrapper{display:inline-block}.mc-bubble-avatar-wrapper .mc-bubble-avatar-style{display:inline-block;text-align:center;color:var(--devui-light-text, #ffffff)}.mc-bubble-avatar-wrapper .mc-bubble-avatar-background-0{background-color:#ff8b87}.mc-bubble-avatar-wrapper .mc-bubble-avatar-background-1{background-color:#7693f5}.mc-bubble[data-v-f104b241]{display:flex;gap:4px;font-size:var(--devui-font-size, 14px)}.mc-bubble .mc-bubble-content[data-v-f104b241]{word-wrap:break-word;word-break:break-all}.mc-bubble .mc-bubble-content.filled[data-v-f104b241],.mc-bubble .mc-bubble-content.bordered[data-v-f104b241]{padding:12px 16px;border-radius:12px}.mc-bubble .mc-bubble-content.filled[data-v-f104b241]{background-color:var(--devui-global-bg, #f6f6f8)}.mc-bubble .mc-bubble-content.bordered[data-v-f104b241]{border:1px solid var(--devui-dividing-line, #f2f2f3)}.mc-bubble .mc-bubble-avatar[data-v-f104b241]{flex-shrink:0;display:flex;gap:4px}.mc-bubble .mc-bubble-avatar .mc-bubble-avatar-name[data-v-f104b241]{font-size:14px}.mc-bubble .mc-bubble-avatar.empty-avatar[data-v-f104b241]{visibility:hidden}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-f104b241]{align-items:center}.mc-bubble .mc-bubble-content-container[data-v-f104b241]{max-width:100%}.mc-bubble.mc-bubble-avatar-top[data-v-f104b241]{flex-direction:column}.mc-bubble.mc-bubble-avatar-top .mc-bubble-content-container[data-v-f104b241]{align-items:flex-start;flex-direction:column}.mc-bubble.mc-bubble-loading.mc-bubble-avatar-side[data-v-f104b241]{align-items:center}.mc-bubble.mc-bubble-avatar-side.mc-bubble-right[data-v-f104b241]{flex-direction:row-reverse;justify-content:end}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-f104b241],.mc-bubble.mc-bubble-avatar-top .mc-bubble-content-container[data-v-f104b241]{display:flex}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-f104b241],.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-content-container[data-v-f104b241]{align-items:flex-end}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-f104b241]{flex-direction:row-reverse}
|
package/Bubble/index.js
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import { createElementBlock as o, openBlock as r, createElementVNode as v, defineComponent as Z, normalizeStyle as h, ref as f, watch as N, createCommentVNode as u, normalizeClass as L, toDisplayString as A, createVNode as M, useSlots as B, computed as $, unref as w, renderSlot as p, normalizeProps as R, guardReactiveProps as _, createTextVNode as E } from "vue";
|
|
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
|
+
/* HOISTED */
|
|
17
|
+
),
|
|
18
|
+
v(
|
|
19
|
+
"div",
|
|
20
|
+
{ class: "loading-dot dot-middle" },
|
|
21
|
+
null,
|
|
22
|
+
-1
|
|
23
|
+
/* HOISTED */
|
|
24
|
+
),
|
|
25
|
+
v(
|
|
26
|
+
"div",
|
|
27
|
+
{ class: "loading-dot dot-end" },
|
|
28
|
+
null,
|
|
29
|
+
-1
|
|
30
|
+
/* HOISTED */
|
|
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 = {
|
|
3
59
|
name: {
|
|
4
60
|
type: String,
|
|
5
61
|
default: ""
|
|
@@ -23,7 +79,7 @@ const T = {
|
|
|
23
79
|
type: String,
|
|
24
80
|
default: ""
|
|
25
81
|
}
|
|
26
|
-
},
|
|
82
|
+
}, G = /* @__PURE__ */ Z({
|
|
27
83
|
__name: "AvatarBodyIcon",
|
|
28
84
|
props: {
|
|
29
85
|
width: {
|
|
@@ -36,7 +92,7 @@ const T = {
|
|
|
36
92
|
}
|
|
37
93
|
},
|
|
38
94
|
setup(i) {
|
|
39
|
-
return (a, s) => (r(),
|
|
95
|
+
return (a, s) => (r(), o(
|
|
40
96
|
"svg",
|
|
41
97
|
{
|
|
42
98
|
style: h({
|
|
@@ -78,7 +134,7 @@ const T = {
|
|
|
78
134
|
/* STYLE */
|
|
79
135
|
));
|
|
80
136
|
}
|
|
81
|
-
}),
|
|
137
|
+
}), W = /* @__PURE__ */ Z({
|
|
82
138
|
__name: "AvatarNoBodyIcon",
|
|
83
139
|
props: {
|
|
84
140
|
width: {
|
|
@@ -91,7 +147,7 @@ const T = {
|
|
|
91
147
|
}
|
|
92
148
|
},
|
|
93
149
|
setup(i) {
|
|
94
|
-
return (a, s) => (r(),
|
|
150
|
+
return (a, s) => (r(), o(
|
|
95
151
|
"svg",
|
|
96
152
|
{
|
|
97
153
|
style: h({
|
|
@@ -210,56 +266,56 @@ const T = {
|
|
|
210
266
|
/* STYLE */
|
|
211
267
|
));
|
|
212
268
|
}
|
|
213
|
-
}),
|
|
269
|
+
}), q = { class: "mc-bubble-avatar-wrapper" }, J = ["src"], K = /* @__PURE__ */ Z({
|
|
214
270
|
__name: "Avatar",
|
|
215
|
-
props:
|
|
271
|
+
props: j,
|
|
216
272
|
setup(i) {
|
|
217
|
-
const a = i, s =
|
|
273
|
+
const a = i, s = f(!1), n = f(!0), c = f(1), t = f(12), l = f(), g = (e) => {
|
|
218
274
|
if (a.gender) {
|
|
219
|
-
a.gender.toLowerCase() === "male" ?
|
|
275
|
+
a.gender.toLowerCase() === "male" ? c.value = 1 : a.gender.toLowerCase() === "female" && (c.value = 0);
|
|
220
276
|
return;
|
|
221
277
|
}
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
},
|
|
278
|
+
const d = e.charCodeAt(0);
|
|
279
|
+
c.value = d % 2;
|
|
280
|
+
}, m = (e, d) => {
|
|
225
281
|
if (e.length < 2)
|
|
226
|
-
|
|
282
|
+
l.value = e;
|
|
227
283
|
else if (/^[\u4e00-\u9fa5]/.test(e))
|
|
228
|
-
|
|
284
|
+
l.value = e.substr(e.length - 2, 2);
|
|
229
285
|
else if (/^[A-Za-z]/.test(e))
|
|
230
286
|
if (/[_ -]/.test(e)) {
|
|
231
|
-
const
|
|
232
|
-
|
|
287
|
+
const C = e.split(/_|-|\s+/)[0], y = e.split(/_|-|\s+/)[1];
|
|
288
|
+
l.value = C.substr(0, 1).toUpperCase() + y.substr(0, 1).toUpperCase();
|
|
233
289
|
} else
|
|
234
|
-
|
|
290
|
+
l.value = e.substr(0, 2).toUpperCase();
|
|
235
291
|
else
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
const
|
|
240
|
-
|
|
292
|
+
l.value = e.substr(0, 2);
|
|
293
|
+
d < 30 && (l.value = e.substr(0, 1).toUpperCase()), g(e.substr(0, 1));
|
|
294
|
+
}, b = (e) => {
|
|
295
|
+
const d = e, C = Math.min(a.width, a.height);
|
|
296
|
+
d ? (n.value = !1, m(d, C)) : d === "" ? (n.value = !1, l.value = "") : n.value = !0, t.value = C / 4 + 3;
|
|
241
297
|
};
|
|
242
|
-
return
|
|
243
|
-
|
|
244
|
-
}), (e,
|
|
245
|
-
var
|
|
246
|
-
return r(),
|
|
247
|
-
e.imgSrc && !s.value ? (r(),
|
|
298
|
+
return b(a.name), N([() => a.name, () => a.width, () => a.height, () => a.gender], () => {
|
|
299
|
+
b(a.name);
|
|
300
|
+
}), (e, d) => {
|
|
301
|
+
var C, y;
|
|
302
|
+
return r(), o("span", q, [
|
|
303
|
+
e.imgSrc && !s.value ? (r(), o("img", {
|
|
248
304
|
key: 0,
|
|
249
305
|
src: e.imgSrc,
|
|
250
306
|
alt: "",
|
|
251
|
-
onError:
|
|
307
|
+
onError: d[0] || (d[0] = () => s.value = !0),
|
|
252
308
|
style: h({
|
|
253
309
|
height: `${e.height}px`,
|
|
254
310
|
width: `${e.width}px`,
|
|
255
311
|
borderRadius: e.isRound ? "100%" : "0"
|
|
256
312
|
})
|
|
257
|
-
}, null, 44,
|
|
258
|
-
!e.imgSrc && !n.value && ((
|
|
313
|
+
}, null, 44, J)) : u("v-if", !0),
|
|
314
|
+
!e.imgSrc && !n.value && ((C = l.value) == null ? void 0 : C.length) !== 0 ? (r(), o(
|
|
259
315
|
"span",
|
|
260
316
|
{
|
|
261
317
|
key: 1,
|
|
262
|
-
class:
|
|
318
|
+
class: L(["mc-bubble-avatar-style", `mc-bubble-avatar-background-${c.value}`]),
|
|
263
319
|
style: h({
|
|
264
320
|
height: `${e.height}px`,
|
|
265
321
|
width: `${e.width}px`,
|
|
@@ -268,11 +324,11 @@ const T = {
|
|
|
268
324
|
borderRadius: e.isRound ? "100%" : "0"
|
|
269
325
|
})
|
|
270
326
|
},
|
|
271
|
-
A(
|
|
327
|
+
A(l.value),
|
|
272
328
|
7
|
|
273
329
|
/* TEXT, CLASS, STYLE */
|
|
274
|
-
)) :
|
|
275
|
-
!e.imgSrc && !n.value && ((
|
|
330
|
+
)) : u("v-if", !0),
|
|
331
|
+
!e.imgSrc && !n.value && ((y = l.value) == null ? void 0 : y.length) === 0 ? (r(), o(
|
|
276
332
|
"span",
|
|
277
333
|
{
|
|
278
334
|
key: 2,
|
|
@@ -280,15 +336,15 @@ const T = {
|
|
|
280
336
|
style: h({ borderRadius: e.isRound ? "100%" : "0" })
|
|
281
337
|
},
|
|
282
338
|
[
|
|
283
|
-
|
|
339
|
+
M(G, {
|
|
284
340
|
width: e.width,
|
|
285
341
|
height: e.height
|
|
286
342
|
}, null, 8, ["width", "height"])
|
|
287
343
|
],
|
|
288
344
|
4
|
|
289
345
|
/* STYLE */
|
|
290
|
-
)) :
|
|
291
|
-
!e.imgSrc && n.value || e.imgSrc && s.value ? (r(),
|
|
346
|
+
)) : u("v-if", !0),
|
|
347
|
+
!e.imgSrc && n.value || e.imgSrc && s.value ? (r(), o(
|
|
292
348
|
"span",
|
|
293
349
|
{
|
|
294
350
|
key: 3,
|
|
@@ -296,152 +352,102 @@ const T = {
|
|
|
296
352
|
style: h({ borderRadius: e.isRound ? "100%" : "0" })
|
|
297
353
|
},
|
|
298
354
|
[
|
|
299
|
-
|
|
355
|
+
M(W, {
|
|
300
356
|
width: e.width,
|
|
301
357
|
height: e.height
|
|
302
358
|
}, null, 8, ["width", "height"])
|
|
303
359
|
],
|
|
304
360
|
4
|
|
305
361
|
/* STYLE */
|
|
306
|
-
)) :
|
|
362
|
+
)) : u("v-if", !0)
|
|
307
363
|
]);
|
|
308
364
|
};
|
|
309
365
|
}
|
|
310
|
-
}),
|
|
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 = {
|
|
366
|
+
}), Q = {
|
|
366
367
|
key: 0,
|
|
367
|
-
class: "mc-bubble-avatar
|
|
368
|
+
class: "mc-bubble-avatar"
|
|
368
369
|
}, X = {
|
|
370
|
+
key: 0,
|
|
371
|
+
class: "mc-bubble-avatar-name"
|
|
372
|
+
}, Y = {
|
|
369
373
|
key: 1,
|
|
370
374
|
class: "loading-container"
|
|
371
|
-
},
|
|
375
|
+
}, V = /* @__PURE__ */ Z({
|
|
372
376
|
__name: "Bubble",
|
|
373
|
-
props:
|
|
377
|
+
props: O,
|
|
374
378
|
setup(i) {
|
|
375
379
|
const a = B(), s = i, n = $(() => [
|
|
376
380
|
`mc-bubble-avatar-${s.avatarPosition}`,
|
|
377
381
|
`mc-bubble-${s.align}`,
|
|
378
382
|
s.loading ? "mc-bubble-loading" : ""
|
|
379
|
-
]),
|
|
383
|
+
]), c = $(() => {
|
|
380
384
|
if (s.avatarConfig) {
|
|
381
|
-
const t = Object.keys(s.avatarConfig),
|
|
382
|
-
return t.length < 1 || !
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
+
const t = Object.keys(s.avatarConfig), l = t.some((g) => g === U || g === H);
|
|
386
|
+
return t.length < 1 || !l;
|
|
387
|
+
}
|
|
388
|
+
return !0;
|
|
385
389
|
});
|
|
386
|
-
return (t,
|
|
387
|
-
var
|
|
388
|
-
return r(),
|
|
390
|
+
return (t, l) => {
|
|
391
|
+
var g, m, b;
|
|
392
|
+
return r(), o(
|
|
389
393
|
"div",
|
|
390
394
|
{
|
|
391
|
-
class:
|
|
395
|
+
class: L(["mc-bubble", n.value])
|
|
392
396
|
},
|
|
393
397
|
[
|
|
394
|
-
|
|
398
|
+
w(a).avatar ? (r(), o("div", Q, [
|
|
399
|
+
p(t.$slots, "avatar", {}, void 0, !0)
|
|
400
|
+
])) : t.avatarConfig ? (r(), o(
|
|
395
401
|
"div",
|
|
396
402
|
{
|
|
397
|
-
key:
|
|
398
|
-
class:
|
|
403
|
+
key: 1,
|
|
404
|
+
class: L(["mc-bubble-avatar", { "empty-avatar": c.value }])
|
|
399
405
|
},
|
|
400
406
|
[
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
R(
|
|
404
|
-
|
|
405
|
-
width: ((
|
|
406
|
-
height: ((
|
|
407
|
+
M(
|
|
408
|
+
K,
|
|
409
|
+
R(_(
|
|
410
|
+
c.value ? {
|
|
411
|
+
width: ((g = t.avatarConfig) == null ? void 0 : g.width) || w(z),
|
|
412
|
+
height: ((m = t.avatarConfig) == null ? void 0 : m.height) || w(P)
|
|
407
413
|
} : t.avatarConfig
|
|
408
414
|
)),
|
|
409
415
|
null,
|
|
410
416
|
16
|
|
411
417
|
/* FULL_PROPS */
|
|
412
418
|
),
|
|
413
|
-
t.avatarPosition === "top" ? (r(),
|
|
419
|
+
t.avatarPosition === "top" ? (r(), o(
|
|
414
420
|
"span",
|
|
415
|
-
|
|
416
|
-
A((
|
|
421
|
+
X,
|
|
422
|
+
A((b = t.avatarConfig) == null ? void 0 : b.displayName),
|
|
417
423
|
1
|
|
418
424
|
/* TEXT */
|
|
419
|
-
)) :
|
|
425
|
+
)) : u("v-if", !0)
|
|
420
426
|
],
|
|
421
427
|
2
|
|
422
428
|
/* CLASS */
|
|
423
|
-
)) :
|
|
429
|
+
)) : u("v-if", !0),
|
|
424
430
|
v(
|
|
425
431
|
"div",
|
|
426
432
|
{
|
|
427
|
-
class:
|
|
433
|
+
class: L(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
|
|
428
434
|
},
|
|
429
435
|
[
|
|
430
|
-
t.loading ?
|
|
431
|
-
t.loading ? (r(),
|
|
432
|
-
|
|
433
|
-
|
|
436
|
+
t.loading ? u("v-if", !0) : p(t.$slots, "top", { key: 0 }, void 0, !0),
|
|
437
|
+
t.loading ? (r(), o("div", Y, [
|
|
438
|
+
p(t.$slots, "loadingTpl", {}, () => [
|
|
439
|
+
M(I)
|
|
434
440
|
], !0)
|
|
435
|
-
])) :
|
|
436
|
-
(
|
|
441
|
+
])) : u("v-if", !0),
|
|
442
|
+
(w(a).default || t.content) && !t.loading ? (r(), o(
|
|
437
443
|
"div",
|
|
438
444
|
{
|
|
439
445
|
key: 2,
|
|
440
|
-
class:
|
|
446
|
+
class: L(["mc-bubble-content", [t.variant]])
|
|
441
447
|
},
|
|
442
448
|
[
|
|
443
|
-
|
|
444
|
-
|
|
449
|
+
p(t.$slots, "default", {}, () => [
|
|
450
|
+
E(
|
|
445
451
|
A(t.content),
|
|
446
452
|
1
|
|
447
453
|
/* TEXT */
|
|
@@ -450,8 +456,8 @@ const K = /* @__PURE__ */ k(W, [["render", J], ["__scopeId", "data-v-395fc568"]]
|
|
|
450
456
|
],
|
|
451
457
|
2
|
|
452
458
|
/* CLASS */
|
|
453
|
-
)) :
|
|
454
|
-
t.loading ?
|
|
459
|
+
)) : u("v-if", !0),
|
|
460
|
+
t.loading ? u("v-if", !0) : p(t.$slots, "bottom", { key: 3 }, void 0, !0)
|
|
455
461
|
],
|
|
456
462
|
2
|
|
457
463
|
/* CLASS */
|
|
@@ -462,7 +468,7 @@ const K = /* @__PURE__ */ k(W, [["render", J], ["__scopeId", "data-v-395fc568"]]
|
|
|
462
468
|
);
|
|
463
469
|
};
|
|
464
470
|
}
|
|
465
|
-
}), S = /* @__PURE__ */ k(
|
|
471
|
+
}), S = /* @__PURE__ */ k(V, [["__scopeId", "data-v-f104b241"]]);
|
|
466
472
|
S.install = (i) => {
|
|
467
473
|
i.component("McBubble", S);
|
|
468
474
|
};
|
package/Header/index.js
CHANGED
package/Input/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
@charset "UTF-8";.mc-textarea{width:100%;height:64px;padding:4px 0;color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);background-color:var(--devui-form-control-bg, #ffffff);vertical-align:middle;outline:none;box-sizing:border-box;resize:none;border:none}.mc-textarea.mc-textarea-simple{height:32px}.mc-textarea.mc-textarea-disabled{color:var(--devui-disabled-text, #cfd0d3);background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-textarea::placeholder{color:var(--devui-placeholder, #babbc0)}.input-custom-item[data-v-967e21e0]{display:inline-block;border:none;padding:0 8px;outline:none;width:auto;max-width:100%;border-radius:8px;background-color:var(--devui-list-item-hover-bg, #f2f2f3);color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);font-weight:400;line-height:22px;letter-spacing:0px;text-align:left;margin:0 2px}.input-custom-placeholder[data-v-967e21e0]:after{color:var(--devui-placeholder, #babbc0);content:attr(placeholder);cursor:text}.inline-text[data-v-967e21e0]{display:inline;padding:2px 8px}.editable-container[data-v-86573c82]{outline:unset;min-height:64px;line-height:24px;padding-top:4px;word-break:break-all;white-space:pre-wrap;font-size:14px;caret-color:var(--devui-text, #252b3a);background:var(--devui-form-control-bg, #ffffff);color:var(--devui-text, #252b3a)}.editable-container.mc-input-simple[data-v-86573c82]{min-height:32px}.editable-container.mc-input-disabled[data-v-86573c82]{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.editable-container[data-v-86573c82]>*{text-indent:0}.editable-container[placeholder][data-v-86573c82]:empty:before{content:attr(placeholder);color:var(--devui-placeholder, #babbc0);position:absolute;pointer-events:none;left:8px}.editable-container .ai-input-prefix-wrapper[data-v-86573c82]{border-radius:8px;background-color:var(--devui-list-item-hover-bg, #f2f2f3);color:var(--devui-primary, #5e7ce0);height:24px;padding:0 8px;font-size:14px;font-weight:600;line-height:24px;z-index:10;position:sticky;display:inline-block;cursor:pointer}.en-editable-container[data-v-86573c82]{text-indent:140px}.editable-container[data-v-86573c82]:focus{border-color:#409eff}.mc-button[data-v-dbbf3b38]{position:relative;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;height:32px;line-height:1.5;color:var(--devui-light-text, #ffffff);font-size:var(--devui-font-size, 14px);padding:0 12px;border-radius:20px;background-color:var(--devui-primary, #5e7ce0);overflow:hidden;border:none;cursor:pointer;transition:background-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),border-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-button.mc-button-loading svg[data-v-dbbf3b38]{animation:rotating-dbbf3b38 1s linear infinite}.mc-button.mousedown[data-v-dbbf3b38]:not(:disabled){transform:scale(.95)}.mc-button.mc-button-simple[data-v-dbbf3b38]{width:32px;padding:6px;flex-shrink:0;border-radius:100%}.mc-button.mc-button-simple svg[data-v-dbbf3b38]{margin-right:0}.mc-button[data-v-dbbf3b38]:hover{background-color:var(--devui-primary-hover, #7693f5)}.mc-button[data-v-dbbf3b38]:active{background-color:var(--devui-primary-active, #344899)}.mc-button[data-v-dbbf3b38]:disabled{color:var(--devui-light-text, #ffffff);background-color:var(--devui-primary-disabled, #beccfa);cursor:not-allowed}.mc-button .mc-button-content[data-v-dbbf3b38]{display:inline-flex;align-items:center;font-size:var(--devui-font-size, 14px)}.mc-button .mc-button-water-wave[data-v-dbbf3b38]{position:absolute;background-color:var(--devui-base-bg, #ffffff);border-radius:50%;opacity:0;width:20px;height:20px;transform:translate(-50%,-50%);animation:waterWave-dbbf3b38 var(--devui-animation-duration-slow, .3s) var(--devui-animation-linear, cubic-bezier(0, 0, 1, 1))}.mc-button svg[data-v-dbbf3b38]{margin-right:4px}.mc-button svg[data-v-dbbf3b38] path{fill:var(--devui-light-text, #ffffff)}@keyframes rotating-dbbf3b38{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes waterWave-dbbf3b38{0%{opacity:.2;width:30px;height:30px}to{opacity:0;width:200px;height:200px}}body[ui-theme=infinity-theme]{--mc-text: #aeaeae;--mc-box-shadow: rgba(25, 25, 25, .06)}body[ui-theme=galaxy-theme]{--mc-text: #4e5057;--mc-box-shadow: rgba(206, 209, 219, .06)}.mc-input{display:flex;flex-direction:column;width:100%;padding:12px 0;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:16px;box-sizing:border-box;background-color:var(--devui-base-bg, #ffffff)}.mc-input.mc-input-simple{border-radius:24px}.mc-input.mc-input-simple .mc-input-content{padding:0 20px}.mc-input.mc-input-borderless{border:none;box-shadow:0 1px 8px 0 var(--mc-box-shadow, rgba(25, 25, 25, .06))}.mc-input.mc-input-disabled{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-input .mc-input-content{display:flex;align-items:flex-end;padding:0 16px}.mc-input .mc-input-content .editable-block-container{width:100%}.mc-input .mc-input-foot{display:flex;justify-content:space-between;align-items:center;height:32px;padding:0 16px}.mc-input .mc-input-foot .mc-input-foot-left{flex:1;height:100%;display:flex;align-items:center}.mc-input .mc-input-foot .mc-input-foot-left .mc-input-foot-count{color:var(--mc-text, #aeaeae);font-size:var(--devui-font-size-sm, 12px)}
|