@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 CHANGED
@@ -1 +1 @@
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}
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 { 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 = {
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
- }, _ = /* @__PURE__ */ M({
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(), l(
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
- }), D = /* @__PURE__ */ M({
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(), l(
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
- }), I = { class: "mc-bubble-avatar-wrapper" }, z = ["src"], P = /* @__PURE__ */ M({
269
+ }), q = { class: "mc-bubble-avatar-wrapper" }, J = ["src"], K = /* @__PURE__ */ Z({
214
270
  __name: "Avatar",
215
- props: T,
271
+ props: j,
216
272
  setup(i) {
217
- const a = i, s = p(!1), n = p(!0), g = p(1), t = p(12), o = p(), C = (e) => {
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" ? g.value = 1 : a.gender.toLowerCase() === "female" && (g.value = 0);
275
+ a.gender.toLowerCase() === "male" ? c.value = 1 : a.gender.toLowerCase() === "female" && (c.value = 0);
220
276
  return;
221
277
  }
222
- const u = e.charCodeAt(0);
223
- g.value = u % 2;
224
- }, L = (e, u) => {
278
+ const d = e.charCodeAt(0);
279
+ c.value = d % 2;
280
+ }, m = (e, d) => {
225
281
  if (e.length < 2)
226
- o.value = e;
282
+ l.value = e;
227
283
  else if (/^[\u4e00-\u9fa5]/.test(e))
228
- o.value = e.substr(e.length - 2, 2);
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 c = e.split(/_|-|\s+/)[0], m = e.split(/_|-|\s+/)[1];
232
- o.value = c.substr(0, 1).toUpperCase() + m.substr(0, 1).toUpperCase();
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
- o.value = e.substr(0, 2).toUpperCase();
290
+ l.value = e.substr(0, 2).toUpperCase();
235
291
  else
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;
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 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", {
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: u[0] || (u[0] = () => s.value = !0),
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, z)) : d("v-if", !0),
258
- !e.imgSrc && !n.value && ((c = o.value) == null ? void 0 : c.length) !== 0 ? (r(), l(
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: b(["mc-bubble-avatar-style", `mc-bubble-avatar-background-${g.value}`]),
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(o.value),
327
+ A(l.value),
272
328
  7
273
329
  /* TEXT, CLASS, STYLE */
274
- )) : d("v-if", !0),
275
- !e.imgSrc && !n.value && ((m = o.value) == null ? void 0 : m.length) === 0 ? (r(), l(
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
- w(_, {
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
- )) : d("v-if", !0),
291
- !e.imgSrc && n.value || e.imgSrc && s.value ? (r(), l(
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
- w(D, {
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
- )) : d("v-if", !0)
362
+ )) : u("v-if", !0)
307
363
  ]);
308
364
  };
309
365
  }
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 = {
366
+ }), Q = {
366
367
  key: 0,
367
- class: "mc-bubble-avatar-name"
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
- }, Y = /* @__PURE__ */ M({
375
+ }, V = /* @__PURE__ */ Z({
372
376
  __name: "Bubble",
373
- props: U,
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
- ]), g = $(() => {
383
+ ]), c = $(() => {
380
384
  if (s.avatarConfig) {
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;
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, o) => {
387
- var C, L, f;
388
- return r(), l(
390
+ return (t, l) => {
391
+ var g, m, b;
392
+ return r(), o(
389
393
  "div",
390
394
  {
391
- class: b(["mc-bubble", n.value])
395
+ class: L(["mc-bubble", n.value])
392
396
  },
393
397
  [
394
- t.avatarConfig ? (r(), l(
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: 0,
398
- class: b(["mc-bubble-avatar", { "empty-avatar": g.value }])
403
+ key: 1,
404
+ class: L(["mc-bubble-avatar", { "empty-avatar": c.value }])
399
405
  },
400
406
  [
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)
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(), l(
419
+ t.avatarPosition === "top" ? (r(), o(
414
420
  "span",
415
- Q,
416
- A((f = t.avatarConfig) == null ? void 0 : f.displayName),
421
+ X,
422
+ A((b = t.avatarConfig) == null ? void 0 : b.displayName),
417
423
  1
418
424
  /* TEXT */
419
- )) : d("v-if", !0)
425
+ )) : u("v-if", !0)
420
426
  ],
421
427
  2
422
428
  /* CLASS */
423
- )) : d("v-if", !0),
429
+ )) : u("v-if", !0),
424
430
  v(
425
431
  "div",
426
432
  {
427
- class: b(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
433
+ class: L(["mc-bubble-content-container", { "with-avatar": t.avatarConfig }])
428
434
  },
429
435
  [
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)
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
- ])) : d("v-if", !0),
436
- (Z(a).default || t.content) && !t.loading ? (r(), l(
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: b(["mc-bubble-content", [t.variant]])
446
+ class: L(["mc-bubble-content", [t.variant]])
441
447
  },
442
448
  [
443
- y(t.$slots, "default", {}, () => [
444
- F(
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
- )) : d("v-if", !0),
454
- t.loading ? d("v-if", !0) : y(t.$slots, "bottom", { key: 3 }, void 0, !0)
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(Y, [["__scopeId", "data-v-7e509691"]]);
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
@@ -1,3 +1,4 @@
1
+ import "./index.css";
1
2
  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";
2
3
  const k = {
3
4
  logoImg: {
package/Input/index.css CHANGED
@@ -1 +1 @@
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)}
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)}