@matechat/core 1.11.0-alpha.1 → 1.11.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/Bubble/index.css CHANGED
@@ -1 +1 @@
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}
1
+ .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-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[data-v-7e509691]{display:flex;gap:4px}.mc-bubble .mc-bubble-content[data-v-7e509691]{word-wrap:break-word}.mc-bubble .mc-bubble-content.filled[data-v-7e509691],.mc-bubble .mc-bubble-content.bordered[data-v-7e509691]{padding:12px 16px;border-radius:12px}.mc-bubble .mc-bubble-content.filled[data-v-7e509691]{background-color:var(--devui-global-bg, #f6f6f8)}.mc-bubble .mc-bubble-content.bordered[data-v-7e509691]{border:1px solid var(--devui-dividing-line, #f2f2f3)}.mc-bubble .mc-bubble-avatar[data-v-7e509691]{flex-shrink:0;display:flex;gap:4px}.mc-bubble .mc-bubble-avatar .mc-bubble-avatar-name[data-v-7e509691]{font-size:14px}.mc-bubble .mc-bubble-avatar.empty-avatar[data-v-7e509691]{visibility:hidden}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-7e509691]{align-items:center}.mc-bubble .mc-bubble-content-container[data-v-7e509691]{max-width:100%}.mc-bubble.mc-bubble-avatar-top[data-v-7e509691]{flex-direction:column}.mc-bubble.mc-bubble-loading.mc-bubble-avatar-side[data-v-7e509691]{align-items:center}.mc-bubble.mc-bubble-avatar-side.mc-bubble-right[data-v-7e509691]{flex-direction:row-reverse;justify-content:end}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-7e509691],.mc-bubble.mc-bubble-avatar-top .mc-bubble-content-container[data-v-7e509691]{display:flex}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-7e509691],.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-content-container[data-v-7e509691]{justify-content:end}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-7e509691]{flex-direction:row-reverse}
package/Bubble/index.js CHANGED
@@ -1,61 +1,5 @@
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 = {
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
- }, G = /* @__PURE__ */ Z({
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(), o(
39
+ return (a, s) => (r(), l(
96
40
  "svg",
97
41
  {
98
42
  style: h({
@@ -134,7 +78,7 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
134
78
  /* STYLE */
135
79
  ));
136
80
  }
137
- }), W = /* @__PURE__ */ Z({
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(), o(
94
+ return (a, s) => (r(), l(
151
95
  "svg",
152
96
  {
153
97
  style: h({
@@ -266,56 +210,56 @@ const I = /* @__PURE__ */ k(F, [["render", D], ["__scopeId", "data-v-395fc568"]]
266
210
  /* STYLE */
267
211
  ));
268
212
  }
269
- }), q = { class: "mc-bubble-avatar-wrapper" }, J = ["src"], K = /* @__PURE__ */ Z({
213
+ }), I = { class: "mc-bubble-avatar-wrapper" }, z = ["src"], P = /* @__PURE__ */ M({
270
214
  __name: "Avatar",
271
- props: j,
215
+ props: T,
272
216
  setup(i) {
273
- const a = i, s = f(!1), n = f(!0), c = f(1), t = f(12), l = f(), g = (e) => {
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" ? c.value = 1 : a.gender.toLowerCase() === "female" && (c.value = 0);
219
+ a.gender.toLowerCase() === "male" ? g.value = 1 : a.gender.toLowerCase() === "female" && (g.value = 0);
276
220
  return;
277
221
  }
278
- const d = e.charCodeAt(0);
279
- c.value = d % 2;
280
- }, m = (e, d) => {
222
+ const u = e.charCodeAt(0);
223
+ g.value = u % 2;
224
+ }, L = (e, u) => {
281
225
  if (e.length < 2)
282
- l.value = e;
226
+ o.value = e;
283
227
  else if (/^[\u4e00-\u9fa5]/.test(e))
284
- l.value = e.substr(e.length - 2, 2);
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 C = e.split(/_|-|\s+/)[0], y = e.split(/_|-|\s+/)[1];
288
- l.value = C.substr(0, 1).toUpperCase() + y.substr(0, 1).toUpperCase();
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
- l.value = e.substr(0, 2).toUpperCase();
234
+ o.value = e.substr(0, 2).toUpperCase();
291
235
  else
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;
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 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", {
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: d[0] || (d[0] = () => s.value = !0),
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, J)) : u("v-if", !0),
314
- !e.imgSrc && !n.value && ((C = l.value) == null ? void 0 : C.length) !== 0 ? (r(), o(
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: L(["mc-bubble-avatar-style", `mc-bubble-avatar-background-${c.value}`]),
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(l.value),
271
+ A(o.value),
328
272
  7
329
273
  /* TEXT, CLASS, STYLE */
330
- )) : u("v-if", !0),
331
- !e.imgSrc && !n.value && ((y = l.value) == null ? void 0 : y.length) === 0 ? (r(), o(
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
- M(G, {
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
- )) : u("v-if", !0),
347
- !e.imgSrc && n.value || e.imgSrc && s.value ? (r(), o(
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
- M(W, {
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
- )) : u("v-if", !0)
306
+ )) : d("v-if", !0)
363
307
  ]);
364
308
  };
365
309
  }
366
- }), Q = {
367
- key: 0,
368
- class: "mc-bubble-avatar"
369
- }, X = {
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
- }, Y = {
368
+ }, X = {
373
369
  key: 1,
374
370
  class: "loading-container"
375
- }, V = /* @__PURE__ */ Z({
371
+ }, Y = /* @__PURE__ */ M({
376
372
  __name: "Bubble",
377
- props: O,
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
- ]), c = $(() => {
379
+ ]), g = $(() => {
384
380
  if (s.avatarConfig) {
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;
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, l) => {
391
- var g, m, b;
392
- return r(), o(
386
+ return (t, o) => {
387
+ var C, L, f;
388
+ return r(), l(
393
389
  "div",
394
390
  {
395
- class: L(["mc-bubble", n.value])
391
+ class: b(["mc-bubble", n.value])
396
392
  },
397
393
  [
398
- w(a).avatar ? (r(), o("div", Q, [
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: 1,
404
- class: L(["mc-bubble-avatar", { "empty-avatar": c.value }])
397
+ key: 0,
398
+ class: b(["mc-bubble-avatar", { "empty-avatar": g.value }])
405
399
  },
406
400
  [
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)
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(), o(
413
+ t.avatarPosition === "top" ? (r(), l(
420
414
  "span",
421
- X,
422
- A((b = t.avatarConfig) == null ? void 0 : b.displayName),
415
+ Q,
416
+ A((f = t.avatarConfig) == null ? void 0 : f.displayName),
423
417
  1
424
418
  /* TEXT */
425
- )) : u("v-if", !0)
419
+ )) : d("v-if", !0)
426
420
  ],
427
421
  2
428
422
  /* CLASS */
429
- )) : u("v-if", !0),
423
+ )) : d("v-if", !0),
430
424
  v(
431
425
  "div",
432
426
  {
433
- class: L(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
427
+ class: b(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
434
428
  },
435
429
  [
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)
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
- ])) : u("v-if", !0),
442
- (w(a).default || t.content) && !t.loading ? (r(), o(
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: L(["mc-bubble-content", [t.variant]])
440
+ class: b(["mc-bubble-content", [t.variant]])
447
441
  },
448
442
  [
449
- p(t.$slots, "default", {}, () => [
450
- E(
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
- )) : u("v-if", !0),
460
- t.loading ? u("v-if", !0) : p(t.$slots, "bottom", { key: 3 }, void 0, !0)
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(V, [["__scopeId", "data-v-f104b241"]]);
465
+ }), S = /* @__PURE__ */ k(Y, [["__scopeId", "data-v-7e509691"]]);
472
466
  S.install = (i) => {
473
467
  i.component("McBubble", S);
474
468
  };
package/Header/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { defineComponent as d, createElementBlock as n, openBlock as r, createElementVNode as a, normalizeClass as m, createCommentVNode as g, toDisplayString as p, renderSlot as _ } from "vue";
3
2
  const k = {
4
3
  logoImg: {
package/Input/index.css CHANGED
@@ -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)}
1
+ .mc-textarea{width:100%;height:64px;padding:4px 0;color:var(--devui-text, #252b3a);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)}.mc-button[data-v-8051c2d3]{position:relative;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-width:64px;height:32px;line-height:1.5;color:var(--devui-light-text, #ffffff);font-size:var(--devui-font-size-md, 12px);padding:0 16px;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-8051c2d3]{animation:rotating-8051c2d3 1s linear infinite}.mc-button.mousedown[data-v-8051c2d3]:not(:disabled){transform:scale(.95)}.mc-button[data-v-8051c2d3]:hover{background-color:var(--devui-primary-hover, #7693f5)}.mc-button[data-v-8051c2d3]:active{background-color:var(--devui-primary-active, #344899)}.mc-button[data-v-8051c2d3]:disabled{color:var(--devui-light-text, #ffffff);background-color:var(--devui-primary-disabled, #beccfa);cursor:not-allowed}.mc-button .mc-button-content[data-v-8051c2d3]{display:inline-flex;align-items:center}.mc-button .mc-button-water-wave[data-v-8051c2d3]{position:absolute;background-color:var(--devui-base-bg, #ffffff);border-radius:50%;opacity:0;width:20px;height:20px;transform:translate(-50%,-50%);animation:waterWave-8051c2d3 var(--devui-animation-duration-slow, .3s) var(--devui-animation-linear, cubic-bezier(0, 0, 1, 1))}.mc-button svg[data-v-8051c2d3]{margin-right:4px}.mc-button svg[data-v-8051c2d3] path{fill:var(--devui-light-text, #ffffff)}@keyframes rotating-8051c2d3{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes waterWave-8051c2d3{0%{opacity:.2;width:30px;height:30px}to{opacity:0;width:200px;height:200px}}.mc-input{display:flex;flex-direction:column;width:100%;padding:4px 0;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:14px;box-sizing:border-box}.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 8px}.mc-input .mc-input-foot{display:flex;justify-content:space-between;align-items:center;height:32px;padding:0 8px}.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(--devui-text, #252b3a);font-size:var(--devui-font-size, 12px)}