@matechat/core 1.12.2 → 1.13.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 +2 -2
- package/Header/index.css +1 -1
- package/Header/index.js +1 -1
- package/Input/index.css +1 -1
- package/Input/index.js +48 -48
- package/Introduction/index.css +1 -1
- package/Introduction/index.js +6 -6
- package/Layout/Content.vue.d.ts +17 -1
- package/Layout/icon/arrow-down.vue.d.ts +3 -0
- package/Layout/icon/arrow-up.vue.d.ts +3 -0
- package/Layout/index.css +1 -1
- package/Layout/index.js +182 -35
- package/Layout/layout-types.d.ts +4 -0
- package/List/index.css +1 -1
- package/List/index.js +1 -1
- package/MarkdownCard/index.css +1 -1
- package/MarkdownCard/index.js +161 -161
- package/Mention/index.css +1 -1
- package/Mention/index.js +6 -6
- package/Prompt/index.css +1 -1
- package/Prompt/index.js +5 -5
- package/README.md +432 -432
- package/Toolbar/index.css +1 -1
- package/Toolbar/index.js +15 -15
- package/package.json +1 -1
package/Bubble/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-bubble-loading[data-v-
|
|
1
|
+
.mc-bubble-loading[data-v-3c6dad89]{display:flex;align-items:center;gap:8px}.mc-bubble-loading .loading-dot[data-v-3c6dad89]{width:8px;height:8px;border-radius:5px;background-color:#9880ff}.mc-bubble-loading .loading-dot.dot-start[data-v-3c6dad89]{animation:dotFlashing-3c6dad89 1s infinite linear alternate;animation-delay:0s}.mc-bubble-loading .loading-dot.dot-middle[data-v-3c6dad89]{animation:dotFlashing-3c6dad89 1s infinite linear alternate;animation-delay:.5s}.mc-bubble-loading .loading-dot.dot-end[data-v-3c6dad89]{animation:dotFlashing-3c6dad89 1s infinite linear alternate;animation-delay:1s}@keyframes dotFlashing-3c6dad89{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-6f5494c3]{display:flex;gap:4px;font-size:var(--devui-font-size, 14px)}.mc-bubble .mc-bubble-content[data-v-6f5494c3]{word-wrap:break-word;word-break:break-all}.mc-bubble .mc-bubble-content.filled[data-v-6f5494c3],.mc-bubble .mc-bubble-content.bordered[data-v-6f5494c3]{padding:12px 16px;border-radius:12px}.mc-bubble .mc-bubble-content.filled[data-v-6f5494c3]{background-color:var(--devui-global-bg, #f6f6f8)}.mc-bubble .mc-bubble-content.bordered[data-v-6f5494c3]{border:1px solid var(--devui-dividing-line, #f2f2f3)}.mc-bubble .mc-bubble-avatar[data-v-6f5494c3]{flex-shrink:0;display:flex;gap:4px}.mc-bubble .mc-bubble-avatar .mc-bubble-avatar-name[data-v-6f5494c3]{font-size:14px}.mc-bubble .mc-bubble-avatar.empty-avatar[data-v-6f5494c3]{visibility:hidden}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-6f5494c3]{align-items:center}.mc-bubble .mc-bubble-content-container[data-v-6f5494c3]{max-width:100%}.mc-bubble.mc-bubble-avatar-top[data-v-6f5494c3]{flex-direction:column}.mc-bubble.mc-bubble-avatar-top .mc-bubble-content-container[data-v-6f5494c3]{align-items:flex-start;flex-direction:column}.mc-bubble.mc-bubble-loading.mc-bubble-avatar-side[data-v-6f5494c3]{align-items:center}.mc-bubble.mc-bubble-avatar-side.mc-bubble-right[data-v-6f5494c3]{flex-direction:row-reverse;justify-content:end}.mc-bubble.mc-bubble-avatar-top .mc-bubble-avatar[data-v-6f5494c3],.mc-bubble.mc-bubble-avatar-top .mc-bubble-content-container[data-v-6f5494c3]{display:flex}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-6f5494c3],.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-content-container[data-v-6f5494c3]{align-items:flex-end}.mc-bubble.mc-bubble-avatar-top.mc-bubble-right .mc-bubble-avatar[data-v-6f5494c3]{flex-direction:row-reverse}
|
package/Bubble/index.js
CHANGED
|
@@ -34,7 +34,7 @@ function G(s, e) {
|
|
|
34
34
|
)
|
|
35
35
|
]));
|
|
36
36
|
}
|
|
37
|
-
const W = /* @__PURE__ */ P(O, [["render", G], ["__scopeId", "data-v-
|
|
37
|
+
const W = /* @__PURE__ */ P(O, [["render", G], ["__scopeId", "data-v-3c6dad89"]]), q = 36, J = 36, K = {
|
|
38
38
|
content: {
|
|
39
39
|
type: String,
|
|
40
40
|
default: ""
|
|
@@ -598,7 +598,7 @@ const i1 = {
|
|
|
598
598
|
);
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
}), B = /* @__PURE__ */ P(d1, [["__scopeId", "data-v-
|
|
601
|
+
}), B = /* @__PURE__ */ P(d1, [["__scopeId", "data-v-6f5494c3"]]);
|
|
602
602
|
B.install = (s) => {
|
|
603
603
|
s.component("McBubble", B);
|
|
604
604
|
};
|
package/Header/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-header[data-v-
|
|
1
|
+
.mc-header[data-v-2d390a1c]{display:flex;justify-content:space-between;align-items:center}.mc-header .mc-header-logo-container[data-v-2d390a1c]{display:flex;align-items:center;gap:4px}.mc-header .mc-header-logo-container.clickable[data-v-2d390a1c]{cursor:pointer}.mc-header .mc-header-logo-container .mc-header-title[data-v-2d390a1c]{letter-spacing:1px;font-weight:500;font-size:20px}
|
package/Header/index.js
CHANGED
|
@@ -56,7 +56,7 @@ const k = {
|
|
|
56
56
|
for (const [c, a] of l)
|
|
57
57
|
t[c] = a;
|
|
58
58
|
return t;
|
|
59
|
-
}, i = /* @__PURE__ */ y(v, [["__scopeId", "data-v-
|
|
59
|
+
}, i = /* @__PURE__ */ y(v, [["__scopeId", "data-v-2d390a1c"]]);
|
|
60
60
|
i.install = (e) => {
|
|
61
61
|
e.component("McHeader", i);
|
|
62
62
|
};
|
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-
|
|
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-3e457a8c]{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-3e457a8c]:after{color:var(--devui-placeholder, #babbc0);content:attr(placeholder);cursor:text}.inline-text[data-v-3e457a8c]{display:inline;padding:2px 8px}.editable-container[data-v-da51c4a6]{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-da51c4a6]{min-height:32px}.editable-container.mc-input-disabled[data-v-da51c4a6]{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.editable-container[data-v-da51c4a6]>*{text-indent:0}.editable-container[placeholder][data-v-da51c4a6]:empty:before{content:attr(placeholder);color:var(--devui-placeholder, #babbc0);pointer-events:none}.editable-container .ai-input-prefix-wrapper[data-v-da51c4a6]{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-da51c4a6]{text-indent:140px}.editable-container[data-v-da51c4a6]:focus{border-color:#409eff}.mc-button[data-v-99753f4e]{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-99753f4e]{animation:rotating-99753f4e 1s linear infinite}.mc-button.mousedown[data-v-99753f4e]:not(:disabled){transform:scale(.95)}.mc-button.mc-button-simple[data-v-99753f4e]{width:32px;padding:6px;flex-shrink:0;border-radius:100%}.mc-button.mc-button-simple svg[data-v-99753f4e]{margin-right:0}.mc-button[data-v-99753f4e]:hover{background-color:var(--devui-primary-hover, #7693f5)}.mc-button[data-v-99753f4e]:active{background-color:var(--devui-primary-active, #344899)}.mc-button[data-v-99753f4e]:disabled{color:var(--devui-light-text, #ffffff);background-color:var(--devui-primary-disabled, #beccfa);cursor:not-allowed}.mc-button .mc-button-content[data-v-99753f4e]{display:inline-flex;align-items:center;font-size:var(--devui-font-size, 14px)}.mc-button .mc-button-water-wave[data-v-99753f4e]{position:absolute;background-color:var(--devui-base-bg, #ffffff);border-radius:50%;opacity:0;width:20px;height:20px;transform:translate(-50%,-50%);animation:waterWave-99753f4e var(--devui-animation-duration-slow, .3s) var(--devui-animation-linear, cubic-bezier(0, 0, 1, 1))}.mc-button svg[data-v-99753f4e]{margin-right:4px}.mc-button svg[data-v-99753f4e] path{fill:var(--devui-light-text, #ffffff)}@keyframes rotating-99753f4e{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes waterWave-99753f4e{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)}
|
package/Input/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { ref as w, defineComponent as X, inject as oe, computed as ae, watch as Y, onMounted as te, withDirectives as be, openBlock as m, createElementBlock as x, normalizeClass as q, unref as g, normalizeStyle as ce, isRef as ye, vModelText as xe, nextTick as
|
|
2
|
+
import { ref as w, defineComponent as X, inject as oe, computed as ae, watch as Y, onMounted as te, withDirectives as be, openBlock as m, createElementBlock as x, normalizeClass as q, unref as g, normalizeStyle as ce, isRef as ye, vModelText as xe, nextTick as pe, createElementVNode as $, withModifiers as le, toDisplayString as Z, resolveComponent as Ce, createCommentVNode as _, createBlock as O, withCtx as de, renderSlot as A, Fragment as ee, renderList as Te, createTextVNode as Le, reactive as Se, provide as _e, createVNode as ie } from "vue";
|
|
3
3
|
import { useMcI18n as fe } from "@matechat/core/Locale";
|
|
4
4
|
var V = /* @__PURE__ */ ((n) => (n.Simple = "simple", n.Full = "full", n))(V || {}), me = /* @__PURE__ */ ((n) => (n.Bordered = "bordered", n.BorderLess = "borderless", n))(me || {}), ne = /* @__PURE__ */ ((n) => (n.Simple = "simple", n.Full = "full", n))(ne || {}), K = /* @__PURE__ */ ((n) => (n.Enter = "enter", n.ShiftEnter = "shiftEnter", n))(K || {});
|
|
5
5
|
const we = {
|
|
@@ -113,12 +113,12 @@ function Ne(n, a = 1, s) {
|
|
|
113
113
|
u.value = " ";
|
|
114
114
|
const C = u.scrollHeight - l;
|
|
115
115
|
if (a !== void 0) {
|
|
116
|
-
let
|
|
117
|
-
r === "border-box" && (
|
|
116
|
+
let p = C * a;
|
|
117
|
+
r === "border-box" && (p = p + l + i), f = Math.max(p, f), h.minHeight = `${p}px`;
|
|
118
118
|
}
|
|
119
119
|
if (s !== void 0) {
|
|
120
|
-
let
|
|
121
|
-
r === "border-box" && (
|
|
120
|
+
let p = C * s;
|
|
121
|
+
r === "border-box" && (p = p + l + i), f > p ? (f = p, h.overflowY = "auto") : h.overflowY = "hidden";
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
return h.height = `${f}px`, u.remove(), h;
|
|
@@ -168,17 +168,17 @@ const De = ["placeholder", "disabled", "maxlength"], Re = /* @__PURE__ */ X({
|
|
|
168
168
|
h();
|
|
169
169
|
});
|
|
170
170
|
let C = !1;
|
|
171
|
-
const
|
|
172
|
-
|
|
171
|
+
const p = () => {
|
|
172
|
+
pe(() => {
|
|
173
173
|
i("change", t.value);
|
|
174
174
|
});
|
|
175
175
|
}, T = () => {
|
|
176
|
-
C ||
|
|
176
|
+
C || p();
|
|
177
177
|
}, b = () => {
|
|
178
178
|
C = !0;
|
|
179
179
|
}, B = () => {
|
|
180
180
|
setTimeout(() => {
|
|
181
|
-
C = !1,
|
|
181
|
+
C = !1, p();
|
|
182
182
|
}, 10);
|
|
183
183
|
}, z = (v) => {
|
|
184
184
|
if (l.submitShortKey === null)
|
|
@@ -254,22 +254,22 @@ const Ae = (n) => {
|
|
|
254
254
|
const s = a, t = n, l = w(!1), i = w(t.content), r = w(null);
|
|
255
255
|
Y(
|
|
256
256
|
() => t.content,
|
|
257
|
-
(
|
|
258
|
-
i.value =
|
|
257
|
+
(p) => {
|
|
258
|
+
i.value = p;
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
const u = () => {
|
|
262
262
|
l.value = !t.disabled;
|
|
263
263
|
}, f = () => {
|
|
264
264
|
l.value = !1;
|
|
265
|
-
}, h = (
|
|
265
|
+
}, h = (p) => {
|
|
266
266
|
var b;
|
|
267
267
|
const T = ((b = r.value) == null ? void 0 : b.textContent) || "";
|
|
268
268
|
i.value = T, s("change", T);
|
|
269
|
-
}, C = (
|
|
270
|
-
Ae(
|
|
269
|
+
}, C = (p) => {
|
|
270
|
+
Ae(p), h();
|
|
271
271
|
};
|
|
272
|
-
return (
|
|
272
|
+
return (p, T) => {
|
|
273
273
|
var b, B;
|
|
274
274
|
return m(), x("span", Pe, [
|
|
275
275
|
$("span", {
|
|
@@ -292,7 +292,7 @@ const Ae = (n) => {
|
|
|
292
292
|
for (const [t, l] of a)
|
|
293
293
|
s[t] = l;
|
|
294
294
|
return s;
|
|
295
|
-
}, Ve = /* @__PURE__ */ W(Fe, [["__scopeId", "data-v-
|
|
295
|
+
}, Ve = /* @__PURE__ */ W(Fe, [["__scopeId", "data-v-3e457a8c"]]), Ze = ["contenteditable", "placeholder"], Oe = { contenteditable: "false" }, He = {
|
|
296
296
|
id: "ai-input-prefix",
|
|
297
297
|
class: "ai-input-prefix"
|
|
298
298
|
}, Ue = /* @__PURE__ */ X({
|
|
@@ -347,10 +347,10 @@ const Ae = (n) => {
|
|
|
347
347
|
const e = u.value;
|
|
348
348
|
e && (e.innerHTML = "", k());
|
|
349
349
|
}, C = () => {
|
|
350
|
-
var
|
|
351
|
-
const e = (
|
|
350
|
+
var d;
|
|
351
|
+
const e = (d = u.value) == null ? void 0 : d.textContent;
|
|
352
352
|
e.length > i.maxLength || (l("send", e), h());
|
|
353
|
-
},
|
|
353
|
+
}, p = () => {
|
|
354
354
|
var e;
|
|
355
355
|
(e = u.value) == null || e.focus(), Ke(u.value);
|
|
356
356
|
}, T = (e) => {
|
|
@@ -364,8 +364,8 @@ const Ae = (n) => {
|
|
|
364
364
|
}, k = () => {
|
|
365
365
|
B.value || E();
|
|
366
366
|
}, v = () => {
|
|
367
|
-
var
|
|
368
|
-
let e = (
|
|
367
|
+
var d, c;
|
|
368
|
+
let e = (d = u.value) == null ? void 0 : d.textContent;
|
|
369
369
|
if (r.value.themeTagText) {
|
|
370
370
|
const y = (c = u.value) == null ? void 0 : c.querySelector(
|
|
371
371
|
".ai-input-prefix-wrapper"
|
|
@@ -382,8 +382,8 @@ const Ae = (n) => {
|
|
|
382
382
|
l("input", e);
|
|
383
383
|
}, 50);
|
|
384
384
|
}, H = (e) => {
|
|
385
|
-
const
|
|
386
|
-
if (e.key === "Enter" &&
|
|
385
|
+
const d = i.submitShortKey === K.Enter ? !e.shiftKey : i.submitShortKey === K.ShiftEnter ? e.shiftKey : !1;
|
|
386
|
+
if (e.key === "Enter" && d && (e.preventDefault(), C()), ["ArrowLeft", "ArrowRight", "Backspace", "Delete"].includes(e.key)) {
|
|
387
387
|
const c = window.getSelection();
|
|
388
388
|
if (!(c != null && c.rangeCount) || !c.isCollapsed)
|
|
389
389
|
return;
|
|
@@ -416,10 +416,10 @@ const Ae = (n) => {
|
|
|
416
416
|
const e = window.getSelection();
|
|
417
417
|
if (!(e != null && e.rangeCount))
|
|
418
418
|
return !0;
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
419
|
+
const d = e.getRangeAt(0);
|
|
420
|
+
if (d.startOffset !== 0)
|
|
421
421
|
return !1;
|
|
422
|
-
let c =
|
|
422
|
+
let c = d.startContainer;
|
|
423
423
|
for (; c && !((y = c.classList) != null && y.contains("editable-container")); ) {
|
|
424
424
|
if (c.previousSibling)
|
|
425
425
|
return !1;
|
|
@@ -427,17 +427,17 @@ const Ae = (n) => {
|
|
|
427
427
|
}
|
|
428
428
|
return !0;
|
|
429
429
|
}
|
|
430
|
-
function L(e,
|
|
430
|
+
function L(e, d, c) {
|
|
431
431
|
var P;
|
|
432
432
|
if (!e)
|
|
433
433
|
return null;
|
|
434
434
|
let y = e;
|
|
435
435
|
const D = (P = e.classList) == null ? void 0 : P.contains("editable-container");
|
|
436
436
|
if (D) {
|
|
437
|
-
const N = e.childNodes, R = Math.min(
|
|
437
|
+
const N = e.childNodes, R = Math.min(d, N.length - 1);
|
|
438
438
|
y = N[R];
|
|
439
439
|
}
|
|
440
|
-
if (!D && c === "previous" &&
|
|
440
|
+
if (!D && c === "previous" && d !== 0 || !D && c === "next" && d !== e.textContent.length)
|
|
441
441
|
return null;
|
|
442
442
|
let J = null, S = y;
|
|
443
443
|
for (; S; )
|
|
@@ -450,13 +450,13 @@ const Ae = (n) => {
|
|
|
450
450
|
const I = (e) => {
|
|
451
451
|
var c;
|
|
452
452
|
e.preventDefault();
|
|
453
|
-
const
|
|
454
|
-
he(
|
|
455
|
-
}, M = (e,
|
|
453
|
+
const d = (c = (e.originalEvent || e).clipboardData) == null ? void 0 : c.getData("text/plain");
|
|
454
|
+
he(d), k();
|
|
455
|
+
}, M = (e, d, c) => {
|
|
456
456
|
i.disabled || (f.value.push({
|
|
457
457
|
key: e,
|
|
458
458
|
type: "input",
|
|
459
|
-
placeholder:
|
|
459
|
+
placeholder: d,
|
|
460
460
|
content: c
|
|
461
461
|
}), G(), k());
|
|
462
462
|
}, U = (e) => {
|
|
@@ -466,11 +466,11 @@ const Ae = (n) => {
|
|
|
466
466
|
type: "text",
|
|
467
467
|
content: e
|
|
468
468
|
}), G(), k());
|
|
469
|
-
}, ve = (e,
|
|
469
|
+
}, ve = (e, d, c) => {
|
|
470
470
|
i.disabled || (r.value = {
|
|
471
471
|
themeTagText: e,
|
|
472
472
|
clearInput: c || !1,
|
|
473
|
-
popoverContent:
|
|
473
|
+
popoverContent: d,
|
|
474
474
|
type: "themeTag"
|
|
475
475
|
});
|
|
476
476
|
}, se = () => {
|
|
@@ -481,8 +481,8 @@ const Ae = (n) => {
|
|
|
481
481
|
type: "themeTag"
|
|
482
482
|
}, E());
|
|
483
483
|
}, G = () => {
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
pe(() => {
|
|
485
|
+
p();
|
|
486
486
|
});
|
|
487
487
|
};
|
|
488
488
|
return te(() => {
|
|
@@ -490,13 +490,13 @@ const Ae = (n) => {
|
|
|
490
490
|
}), a({
|
|
491
491
|
clearInput: h,
|
|
492
492
|
getInput: v,
|
|
493
|
-
focusInput:
|
|
493
|
+
focusInput: p,
|
|
494
494
|
setMixTags: U,
|
|
495
495
|
setText: ge,
|
|
496
496
|
setInputTag: M,
|
|
497
497
|
openTipTag: ve,
|
|
498
498
|
closeTipTag: se
|
|
499
|
-
}), (e,
|
|
499
|
+
}), (e, d) => {
|
|
500
500
|
const c = Ce("d-popover");
|
|
501
501
|
return m(), x("div", {
|
|
502
502
|
ref_key: "editableDivRef",
|
|
@@ -519,7 +519,7 @@ const Ae = (n) => {
|
|
|
519
519
|
trigger: "hover",
|
|
520
520
|
content: r.value.popoverContent
|
|
521
521
|
}, {
|
|
522
|
-
default:
|
|
522
|
+
default: de(() => [
|
|
523
523
|
$("span", Oe, [
|
|
524
524
|
r.value.themeTagText ? (m(), x("span", {
|
|
525
525
|
key: 0,
|
|
@@ -537,7 +537,7 @@ const Ae = (n) => {
|
|
|
537
537
|
)
|
|
538
538
|
], !0)
|
|
539
539
|
])) : _("v-if", !0),
|
|
540
|
-
|
|
540
|
+
d[0] || (d[0] = $(
|
|
541
541
|
"span",
|
|
542
542
|
{
|
|
543
543
|
contenteditable: "false",
|
|
@@ -588,7 +588,7 @@ const Ae = (n) => {
|
|
|
588
588
|
], 42, Ze);
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
}), je = /* @__PURE__ */ W(Ue, [["__scopeId", "data-v-
|
|
591
|
+
}), je = /* @__PURE__ */ W(Ue, [["__scopeId", "data-v-da51c4a6"]]), Ye = {}, Xe = {
|
|
592
592
|
width: "16px",
|
|
593
593
|
height: "16px",
|
|
594
594
|
viewBox: "0 0 16 16",
|
|
@@ -655,13 +655,13 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
|
|
|
655
655
|
f.left = T.offsetX + "px", f.top = T.offsetY + "px", u.value = !0, setTimeout(() => {
|
|
656
656
|
u.value = !1;
|
|
657
657
|
}, 300);
|
|
658
|
-
},
|
|
658
|
+
}, p = (T) => {
|
|
659
659
|
C(T), t.loading ? l("cancel") : (l("submit", s.value), i(), l("change", s.value));
|
|
660
660
|
};
|
|
661
661
|
return (T, b) => (m(), x("button", {
|
|
662
662
|
disabled: g(t).disabled || !g(t).loading && !g(s),
|
|
663
663
|
class: q(h.value),
|
|
664
|
-
onClick:
|
|
664
|
+
onClick: p,
|
|
665
665
|
onMousedown: b[0] || (b[0] = () => r.value = !0),
|
|
666
666
|
onMouseup: b[1] || (b[1] = () => r.value = !1)
|
|
667
667
|
}, [
|
|
@@ -688,7 +688,7 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
|
|
|
688
688
|
)) : _("v-if", !0)
|
|
689
689
|
], 42, tt));
|
|
690
690
|
}
|
|
691
|
-
}), re = /* @__PURE__ */ W(at, [["__scopeId", "data-v-
|
|
691
|
+
}), re = /* @__PURE__ */ W(at, [["__scopeId", "data-v-99753f4e"]]), st = { class: "mc-input-content" }, lt = {
|
|
692
692
|
key: 0,
|
|
693
693
|
class: "editable-block-container"
|
|
694
694
|
}, it = {
|
|
@@ -712,7 +712,7 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
|
|
|
712
712
|
r.value ? (o = i.value) == null || o.clearInput() : u.value = "";
|
|
713
713
|
}, C = () => {
|
|
714
714
|
t.autoClear && h();
|
|
715
|
-
},
|
|
715
|
+
}, p = () => {
|
|
716
716
|
var o;
|
|
717
717
|
return r.value ? (o = i.value) == null ? void 0 : o.getInput() : u.value;
|
|
718
718
|
}, T = (o, L, I) => {
|
|
@@ -764,7 +764,7 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
|
|
|
764
764
|
B(M);
|
|
765
765
|
},
|
|
766
766
|
{ deep: !0 }
|
|
767
|
-
), a({ clearInput: h, getInput:
|
|
767
|
+
), a({ clearInput: h, getInput: p, setInputTag: T, setText: b, setMixTags: B, openTipTag: z, closeTipTag: F }), _e(Q, { inputValue: u, rootProps: t, rootEmits: l, clearInputAfterSubmit: C }), (o, L) => (m(), x(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
770
|
class: q(f.value)
|
|
@@ -790,7 +790,7 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
|
|
|
790
790
|
onBlur: E,
|
|
791
791
|
onFocus: H
|
|
792
792
|
}, {
|
|
793
|
-
themeTag:
|
|
793
|
+
themeTag: de(({ themeTag: I }) => [
|
|
794
794
|
A(o.$slots, "themeTag", { themeTag: I })
|
|
795
795
|
]),
|
|
796
796
|
_: 3
|
package/Introduction/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-introduction[data-v-
|
|
1
|
+
.mc-introduction[data-v-55ed77e8]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-55ed77e8]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-55ed77e8]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-55ed77e8]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-55ed77e8]{font-size:var(--devui-font-size, 12px)}.mc-introduction .mc-introduction-description>div[data-v-55ed77e8]{line-height:1.5}.mc-introduction.filled[data-v-55ed77e8]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-55ed77e8]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-55ed77e8]{text-align:center}.mc-introduction.left[data-v-55ed77e8]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-55ed77e8]{text-align:left}.mc-introduction.right[data-v-55ed77e8]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-55ed77e8]{text-align:right}
|
package/Introduction/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./index.css";
|
|
|
2
2
|
var m = Object.defineProperty;
|
|
3
3
|
var y = (r, t, e) => t in r ? m(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
4
4
|
var l = (r, t, e) => y(r, typeof t != "symbol" ? t + "" : t, e);
|
|
5
|
-
import { defineComponent as S, openBlock as a, createElementBlock as i, normalizeClass as C, unref as u, createElementVNode as p, normalizeStyle as P, createCommentVNode as c, toDisplayString as d, Fragment as
|
|
5
|
+
import { defineComponent as S, openBlock as a, createElementBlock as i, normalizeClass as C, unref as u, createElementVNode as p, normalizeStyle as P, createCommentVNode as c, toDisplayString as d, Fragment as v, renderList as b, renderSlot as k } from "vue";
|
|
6
6
|
const n = () => {
|
|
7
7
|
};
|
|
8
8
|
class g {
|
|
@@ -163,12 +163,12 @@ const T = {
|
|
|
163
163
|
)) : c("v-if", !0),
|
|
164
164
|
o.description.length ? (a(), i("div", L, [
|
|
165
165
|
(a(!0), i(
|
|
166
|
-
|
|
166
|
+
v,
|
|
167
167
|
null,
|
|
168
|
-
|
|
168
|
+
b(o.description, (_, f) => (a(), i(
|
|
169
169
|
"div",
|
|
170
|
-
{ key:
|
|
171
|
-
d(
|
|
170
|
+
{ key: f },
|
|
171
|
+
d(_),
|
|
172
172
|
1
|
|
173
173
|
/* TEXT */
|
|
174
174
|
))),
|
|
@@ -187,7 +187,7 @@ const T = {
|
|
|
187
187
|
for (const [s, o] of t)
|
|
188
188
|
e[s] = o;
|
|
189
189
|
return e;
|
|
190
|
-
}, h = /* @__PURE__ */ W(V, [["__scopeId", "data-v-
|
|
190
|
+
}, h = /* @__PURE__ */ W(V, [["__scopeId", "data-v-55ed77e8"]]);
|
|
191
191
|
h.install = (r) => {
|
|
192
192
|
r.component("McIntroduction", h);
|
|
193
193
|
};
|
package/Layout/Content.vue.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
import type { ILayoutContentProps } from './layout-types';
|
|
1
2
|
declare var __VLS_1: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
default?: (props: typeof __VLS_1) => any;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ILayoutContentProps, {
|
|
7
|
+
scrollerRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
8
|
+
updateScroll: (force?: boolean) => void;
|
|
9
|
+
scrollToPosition: (position: number) => void;
|
|
10
|
+
scrollToBottom: () => void;
|
|
11
|
+
scrollToTop: () => void;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
onScrollerWheel: (...args: any[]) => void;
|
|
14
|
+
onScrollerScroll: (...args: any[]) => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<ILayoutContentProps> & Readonly<{
|
|
16
|
+
onOnScrollerWheel?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onOnScrollerScroll?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
autoScroll: boolean;
|
|
20
|
+
showScrollArrow: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
23
|
declare const _default: typeof __VLS_export;
|
|
8
24
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
package/Layout/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-layout-content[data-v-
|
|
1
|
+
.mc-layout-content-container[data-v-9c27afee]{position:relative;flex:auto;display:flex;flex-direction:column;min-height:0;margin-right:-20px}.mc-layout-content-container .mc-layout-content-scroller[data-v-9c27afee]{flex:1;overflow:auto;padding-right:8px;scrollbar-width:thin;scrollbar-gutter:stable}.mc-layout-content-container .mc-layout-content-arrow[data-v-9c27afee]{position:absolute;left:50%;transform:translate(-50%);z-index:9;display:flex;justify-content:center;align-items:center;width:32px;height:32px;cursor:pointer}.mc-layout-content-container .mc-layout-content-arrow.up[data-v-9c27afee]{top:20px}.mc-layout-content-container .mc-layout-content-arrow.down[data-v-9c27afee]{bottom:20px}.mc-layout-content-container .mc-layout-content-arrow:hover>div[data-v-9c27afee]{transform:scale(1.3);box-shadow:var(--devui-shadow-length-connected-overlay, 0 2px 12px 0) var(--devui-shadow, rgba(37, 43, 58, .24))}.mc-layout-content-container .mc-layout-content-arrow div[data-v-9c27afee]{display:flex;justify-content:center;align-items:center;width:24px;height:24px;background-color:var(--devui-base-bg, #ffffff);border-radius:var(--devui-border-radius-full, 100px);box-shadow:var(--devui-box-shadow-length-base, 0 1px 6px 0) var(--devui-shadow, rgba(0, 0, 0, .16));transition:transform .3s var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),box-shadow .3s var(--devui-animation-duration-base, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-layout-header[data-v-05f64ad5]{flex:0 0 auto;min-height:40px}.mc-layout[data-v-f9e238c6]{display:flex;flex:auto;flex-direction:column}.mc-layout-aside[data-v-f9e238c6]{flex-direction:row}
|