@vtj/designer 0.12.1 → 0.12.2
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.
@@ -2,7 +2,7 @@ var tl = Object.defineProperty;
|
|
2
2
|
var nl = (r, t, e) => t in r ? tl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
3
3
|
var Q = (r, t, e) => nl(r, typeof t != "symbol" ? t + "" : t, e);
|
4
4
|
import { computed as V, unref as n, ref as C, watch as Z, reactive as zt, toValue as it, shallowRef as mt, shallowReadonly as sl, onMounted as nn, nextTick as at, getCurrentScope as ol, onScopeDispose as al, getCurrentInstance as As, toRaw as Ao, defineComponent as $, createElementBlock as R, openBlock as u, toDisplayString as ne, createVNode as p, withCtx as h, createElementVNode as T, createBlock as y, createCommentVNode as I, createTextVNode as X, mergeProps as Pe, h as Ut, Fragment as q, renderList as se, normalizeClass as pe, defineAsyncComponent as ll, resolveDynamicComponent as Vo, createSlots as To, renderSlot as At, withDirectives as Ot, vShow as Zt, withModifiers as lt, isRef as Mn, normalizeStyle as cn, inject as Vs, provide as il, withKeys as yt, normalizeProps as Ro, guardReactiveProps as Io, onUnmounted as Ts, markRaw as ws, createApp as jo, shallowReactive as rl, triggerRef as Mt, KeepAlive as Oo } from "vue";
|
5
|
-
import { ElNotification as Rs, ElMessage as wt, ElMessageBox as Vt, ElButton as ve, ElDivider as rt, ElInput as Me, ElRadioGroup as Do, ElRadioButton as _n, ElButtonGroup as cl, ElSwitch as Is, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Nn, ElEmpty as De, ElAlert as Ft, ElTooltip as Mo, ElTag as js, ElTree as Os, ElCollapse as Hn, ElCollapseItem as Gn, ElRow as Bn, ElCol as Ln, ElDrawer as Ds, ElForm as
|
5
|
+
import { ElNotification as Rs, ElMessage as wt, ElMessageBox as Vt, ElButton as ve, ElDivider as rt, ElInput as Me, ElRadioGroup as Do, ElRadioButton as _n, ElButtonGroup as cl, ElSwitch as Is, ElImage as $o, ElDropdown as No, ElDropdownMenu as Po, ElDropdownItem as Nn, ElEmpty as De, ElAlert as Ft, ElTooltip as Mo, ElTag as js, ElTree as Os, ElCollapse as Hn, ElCollapseItem as Gn, ElRow as Bn, ElCol as Ln, ElDrawer as Ds, ElForm as et, ElFormItem as un, ElBreadcrumb as ul, ElBreadcrumbItem as dl, ElLoading as pl, ElBadge as ml, ElAvatar as qn, vLoading as vl, ElSelect as Bo, ElOption as Lo, ElCheckbox as gl, ElDialog as fl, ElSteps as hl, ElStep as ps, ElInputNumber as bl, ElColorPicker as yl, ElUpload as _l, ElSlider as wl, ElConfigProvider as kl, ElContainer as io, ElHeader as Sl, ElAside as ro, ElMain as xl, ElFooter as Cl } from "element-plus";
|
6
6
|
import El from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XDialogForm as Rt, XField as F, createDialog as zo, XIcon as Tt, XDialog as kt, XPanel as Kn, XAction as Ve, XTabs as Xn, XContainer as de, XForm as $s, XAttachment as Al, XActionBar as Uo, XInputUnit as Fo, vResizable as co } from "@vtj/ui";
|
8
8
|
import { kebabCase as Vl, jsonp as Lt, groupBy as kn, storage as pn, delay as en, dataURLtoBlob as Tl, upperFirstCamelCase as Wo, toRawType as ms, cloneDeep as En, logger as Dt, isPlainObject as Rl, fileToBase64 as Il, merge as Ns, toArray as Ps, debounce as Jo, uuid as jl, getClientInfo as Ol, base64 as Dl, arrayToMap as $l } from "@vtj/utils";
|
@@ -18,10 +18,10 @@ import { editor as lc } from "monaco-editor";
|
|
18
18
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
19
19
|
* @name @vtj/designer
|
20
20
|
* @author CHC chenhuachun1549@dingtalk.com
|
21
|
-
* @version 0.12.
|
21
|
+
* @version 0.12.2
|
22
22
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
23
23
|
*/
|
24
|
-
const Cn = "0.12.
|
24
|
+
const Cn = "0.12.2", ic = {
|
25
25
|
width: 390,
|
26
26
|
height: 844
|
27
27
|
}, rc = {
|
@@ -892,9 +892,9 @@ function Ht() {
|
|
892
892
|
L && L(null, !0);
|
893
893
|
break;
|
894
894
|
}
|
895
|
-
const
|
895
|
+
const tt = Ge.decode(qe).split(`
|
896
896
|
`);
|
897
|
-
for (const st of
|
897
|
+
for (const st of tt)
|
898
898
|
if (st.startsWith("data: "))
|
899
899
|
try {
|
900
900
|
const vt = JSON.parse(st.slice(6));
|
@@ -1432,96 +1432,102 @@ function nu() {
|
|
1432
1432
|
createOrder: g,
|
1433
1433
|
cancelOrder: b,
|
1434
1434
|
getOrder: f
|
1435
|
-
} = Ht(), x = "CHAT_HIDE_CODE", w = t.skeleton?.getRegion("Apps").regionRef, k = C(!1), _ = C(!1), A = C(!0), E = C(!1), j = eu("LLM", e), O = C([]), B = C([]), N = C(null), W = C(null), z = C(), D = C(), L = C(!!pn.get(x, { type: "local" })), P = C(""), te = C(), ue = V(() => B.value.some((
|
1436
|
-
const fe = await i(
|
1435
|
+
} = Ht(), x = "CHAT_HIDE_CODE", w = t.skeleton?.getRegion("Apps").regionRef, k = C(!1), _ = C(!1), A = C(!0), E = C(!1), j = eu("LLM", e), O = C([]), B = C([]), N = C(null), W = C(null), z = C(), D = C(), L = C(!!pn.get(x, { type: "local" })), P = C(""), te = C(), ue = V(() => B.value.some((J) => J.status === "Pending")), Ue = V(() => te.value ? te.value.mode === 2 && !te.value.invited : !0), { height: _e } = vn(z), be = async (J) => {
|
1436
|
+
const fe = await i(J);
|
1437
1437
|
fe && fe.success && (B.value = fe.data);
|
1438
|
-
}, Ge = async (
|
1439
|
-
if (k.value = !1, te.value = await m(), !te.value || !
|
1438
|
+
}, Ge = async (J) => {
|
1439
|
+
if (k.value = !1, te.value = await m(), !te.value || !J || J.id === N.value?.fileId) return;
|
1440
1440
|
O.value = [], B.value = [], A.value = !0;
|
1441
|
-
const fe = await o(
|
1441
|
+
const fe = await o(J.id).catch(() => null);
|
1442
1442
|
fe && fe.success && (O.value = fe.data), O.value.length && (A.value = !1, N.value = O.value[0], await be(N.value.id)), k.value = !0;
|
1443
|
-
}, Fe = async (
|
1443
|
+
}, Fe = async (J) => {
|
1444
1444
|
_.value = !0;
|
1445
|
-
const fe = await tu(
|
1445
|
+
const fe = await tu(J, t), Re = await s(fe).catch(() => null);
|
1446
1446
|
if (_.value = !1, Re && Re.success) {
|
1447
|
-
const { topic:
|
1448
|
-
B.value = [], O.value.unshift(
|
1447
|
+
const { topic: nt, chat: Le } = Re.data;
|
1448
|
+
B.value = [], O.value.unshift(nt), A.value = !1, N.value = nt;
|
1449
1449
|
const xt = zt(Le);
|
1450
1450
|
B.value.push(xt), vt(xt, (bn) => {
|
1451
|
-
|
1451
|
+
J.auto && hn(bn);
|
1452
1452
|
}), await en(0), D.value && D.value.scrollToBottom();
|
1453
1453
|
} else
|
1454
1454
|
await Ge(null);
|
1455
1455
|
return Re;
|
1456
|
-
}, qe = async (
|
1456
|
+
}, qe = async (J) => {
|
1457
1457
|
if (!N.value) return;
|
1458
1458
|
_.value = !0;
|
1459
1459
|
const fe = {
|
1460
1460
|
topicId: N.value.id,
|
1461
|
-
prompt:
|
1461
|
+
prompt: J.prompt
|
1462
1462
|
}, Re = await a(fe).catch(() => null);
|
1463
1463
|
if (_.value = !1, Re && Re.success) {
|
1464
|
-
const
|
1465
|
-
B.value.push(
|
1466
|
-
|
1464
|
+
const nt = zt(Re.data);
|
1465
|
+
B.value.push(nt), vt(nt, (Le) => {
|
1466
|
+
J.auto && hn(Le);
|
1467
1467
|
}), await en(0), D.value && D.value.scrollToBottom();
|
1468
1468
|
} else
|
1469
1469
|
await Ge(null);
|
1470
1470
|
return Re;
|
1471
|
-
},
|
1472
|
-
const fe = await l(
|
1473
|
-
fe && fe.success && (O.value = O.value.filter((Re) => Re.id !==
|
1474
|
-
}, st = async (
|
1471
|
+
}, tt = async (J) => {
|
1472
|
+
const fe = await l(J.id).catch(() => null);
|
1473
|
+
fe && fe.success && (O.value = O.value.filter((Re) => Re.id !== J.id), J.id === N.value?.id && (B.value = [], N.value = null, A.value = !0));
|
1474
|
+
}, st = async (J) => {
|
1475
1475
|
if (!N.value) return;
|
1476
|
-
const fe = N.value?.fileId, Re = t.project.value?.toDsl(), { name:
|
1476
|
+
const fe = N.value?.fileId, Re = t.project.value?.toDsl(), { name: nt = "" } = t.current.value || {}, Le = ut(J.content);
|
1477
1477
|
return await t.service.parseVue(Re, {
|
1478
1478
|
id: fe,
|
1479
|
-
name:
|
1479
|
+
name: nt,
|
1480
1480
|
source: Le
|
1481
1481
|
});
|
1482
|
-
}, vt = (
|
1483
|
-
P.value = "",
|
1482
|
+
}, vt = (J, fe) => {
|
1483
|
+
P.value = "", J.content = "", J.reasoning = "", J.status = "Pending", J.reasoning = "", J.message = "";
|
1484
1484
|
let Re = 0;
|
1485
|
-
const
|
1485
|
+
const nt = Date.now();
|
1486
1486
|
return c(
|
1487
|
-
|
1488
|
-
|
1487
|
+
J.topicId,
|
1488
|
+
J.id,
|
1489
1489
|
async (Le, xt) => {
|
1490
1490
|
const ft = Le?.choices?.[0]?.delta;
|
1491
1491
|
if (ft) {
|
1492
|
-
const $t = ft.content || "",
|
1493
|
-
$t && (
|
1492
|
+
const $t = ft.content || "", Ye = ft.reasoning_content || "";
|
1493
|
+
$t && (J.content += $t), Ye && (J.reasoning += Ye, Re += Date.now() - nt);
|
1494
1494
|
}
|
1495
|
-
if (Le?.usage && (
|
1496
|
-
|
1497
|
-
const $t = await st(
|
1498
|
-
if (Array.isArray(
|
1499
|
-
|
1495
|
+
if (Le?.usage && (J.tokens = Le.usage.total_tokens || 0), xt && J.status === "Pending") {
|
1496
|
+
J.status = "Success", J.thinking = Math.ceil(Re / 1e3), J.vue = ut(J.content);
|
1497
|
+
const $t = await st(J).catch((Ye) => {
|
1498
|
+
if (Array.isArray(Ye))
|
1499
|
+
J.message = Ye.join(`
|
1500
1500
|
`);
|
1501
1501
|
else {
|
1502
|
-
const Xt =
|
1503
|
-
|
1502
|
+
const Xt = Ye?.data || Ye?.message;
|
1503
|
+
J.message = Array.isArray(Xt) ? Xt.join(`
|
1504
1504
|
`) : "代码有错误。";
|
1505
1505
|
}
|
1506
|
-
return
|
1506
|
+
return J.status = "Error", null;
|
1507
1507
|
});
|
1508
|
-
|
1508
|
+
if ($t)
|
1509
|
+
try {
|
1510
|
+
J.dsl = $t;
|
1511
|
+
} catch (Ye) {
|
1512
|
+
J.status = "Error", J.message = Ye?.message;
|
1513
|
+
}
|
1514
|
+
await d(J), fe && fe(J);
|
1509
1515
|
}
|
1510
1516
|
},
|
1511
1517
|
async (Le) => {
|
1512
1518
|
const xt = Le.message || Le.name || "未知错误";
|
1513
|
-
|
1519
|
+
J.message = xt, J.status = "Failed", await d(J), fe && fe(J);
|
1514
1520
|
}
|
1515
1521
|
);
|
1516
|
-
}, ut = (
|
1522
|
+
}, ut = (J) => {
|
1517
1523
|
const fe = /```vue\n([\w\W]*)```/;
|
1518
|
-
return
|
1519
|
-
}, an = async (
|
1524
|
+
return J.match(fe)?.[1] ?? "";
|
1525
|
+
}, an = async (J) => {
|
1520
1526
|
if (!N.value || !W.value) return;
|
1521
|
-
const fe = N.value?.fileId, Re = t.project.value?.toDsl(), { name:
|
1527
|
+
const fe = N.value?.fileId, Re = t.project.value?.toDsl(), { name: nt = "" } = t.current.value || {}, Le = await t.service.parseVue(Re, {
|
1522
1528
|
id: fe,
|
1523
|
-
name:
|
1524
|
-
source:
|
1529
|
+
name: nt,
|
1530
|
+
source: J
|
1525
1531
|
}).catch((xt) => xt);
|
1526
1532
|
return Array.isArray(Le) ? Promise.reject(Le) : (W.value.dsl = Le, await d(W.value), Le);
|
1527
1533
|
}, fn = () => {
|
@@ -1529,41 +1535,41 @@ function nu() {
|
|
1529
1535
|
}, qt = () => {
|
1530
1536
|
D.value && !A.value && D.value.scrollToBottom();
|
1531
1537
|
}, gt = () => {
|
1532
|
-
A.value || ue.value || B.value.map((
|
1533
|
-
|
1538
|
+
A.value || ue.value || B.value.map((J) => {
|
1539
|
+
J.collapsed = !1;
|
1534
1540
|
});
|
1535
1541
|
}, We = () => {
|
1536
|
-
A.value || ue.value || B.value.map((
|
1537
|
-
|
1542
|
+
A.value || ue.value || B.value.map((J) => {
|
1543
|
+
J.collapsed = !0;
|
1538
1544
|
});
|
1539
|
-
}, Kt = (
|
1545
|
+
}, Kt = (J) => {
|
1540
1546
|
if (!ue.value)
|
1541
|
-
return vt(
|
1542
|
-
}, hn = (
|
1543
|
-
|
1544
|
-
}, ns = (
|
1545
|
-
|
1546
|
-
}, ss = (
|
1547
|
+
return vt(J);
|
1548
|
+
}, hn = (J) => {
|
1549
|
+
J.dsl && t.applyAI(J.dsl), E.value = !1, W.value = null;
|
1550
|
+
}, ns = (J) => {
|
1551
|
+
J.vue = ut(J.content), W.value = J, E.value = !0;
|
1552
|
+
}, ss = (J) => {
|
1547
1553
|
if (!N.value) return;
|
1548
|
-
const fe =
|
1549
|
-
${
|
1554
|
+
const fe = J.message ? `页面存在以下问题:
|
1555
|
+
${J.message}
|
1550
1556
|
请检查代码并修复` : "请检查代码是否有错误,是否符合规则要求,并改正";
|
1551
1557
|
Vn(fe);
|
1552
|
-
}, Vn = (
|
1553
|
-
P.value =
|
1558
|
+
}, Vn = (J, fe) => {
|
1559
|
+
P.value = J, fe && (A.value = fe);
|
1554
1560
|
}, os = () => {
|
1555
1561
|
A.value || (L.value = !L.value, pn.save(x, L.value, { type: "local" }));
|
1556
1562
|
};
|
1557
1563
|
return Z(
|
1558
1564
|
() => w?.active,
|
1559
|
-
(
|
1560
|
-
|
1565
|
+
(J) => {
|
1566
|
+
J.name === "AI" && Ge(t.current.value);
|
1561
1567
|
},
|
1562
1568
|
{
|
1563
1569
|
immediate: !0
|
1564
1570
|
}
|
1565
|
-
), Z(t.current, (
|
1566
|
-
|
1571
|
+
), Z(t.current, (J, fe) => {
|
1572
|
+
J?.id !== fe?.id && (N.value = null);
|
1567
1573
|
}), Z(_e, () => {
|
1568
1574
|
D.value && ue.value && D.value.autoScrollToBottom();
|
1569
1575
|
}), {
|
@@ -1580,7 +1586,7 @@ function nu() {
|
|
1580
1586
|
currentTopic: N,
|
1581
1587
|
onPostChat: qe,
|
1582
1588
|
loadChats: be,
|
1583
|
-
onRemoveTopic:
|
1589
|
+
onRemoveTopic: tt,
|
1584
1590
|
getVueCode: ut,
|
1585
1591
|
vue2Dsl: st,
|
1586
1592
|
onRefresh: Kt,
|
@@ -2254,7 +2260,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2254
2260
|
]));
|
2255
2261
|
}
|
2256
2262
|
}), Ae = ll({
|
2257
|
-
loader: () => import("./Editor
|
2263
|
+
loader: () => import("./Editor-DCEQmAKC.js"),
|
2258
2264
|
loadingComponent: $({
|
2259
2265
|
render() {
|
2260
2266
|
return Ut("div", "正在拼命加载...");
|
@@ -5461,7 +5467,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5461
5467
|
fit: !1
|
5462
5468
|
}, {
|
5463
5469
|
default: h(() => [
|
5464
|
-
p(n(
|
5470
|
+
p(n(et), {
|
5465
5471
|
class: "v-properties-widget__form",
|
5466
5472
|
size: "small",
|
5467
5473
|
"label-position": "right",
|
@@ -5859,7 +5865,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5859
5865
|
fit: !1
|
5860
5866
|
}, {
|
5861
5867
|
default: h(() => [
|
5862
|
-
p(n(
|
5868
|
+
p(n(et), {
|
5863
5869
|
size: "small",
|
5864
5870
|
"label-width": "80px",
|
5865
5871
|
onKeydown: A[0] || (A[0] = yt(lt(() => {
|
@@ -5915,7 +5921,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5915
5921
|
fit: !1
|
5916
5922
|
}, {
|
5917
5923
|
default: h(() => [
|
5918
|
-
p(n(
|
5924
|
+
p(n(et), {
|
5919
5925
|
size: "small",
|
5920
5926
|
"label-width": "80px",
|
5921
5927
|
onKeydown: A[1] || (A[1] = yt(lt(() => {
|
@@ -5978,7 +5984,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5978
5984
|
fit: !1
|
5979
5985
|
}, {
|
5980
5986
|
default: h(() => [
|
5981
|
-
p(n(
|
5987
|
+
p(n(et), {
|
5982
5988
|
size: "small",
|
5983
5989
|
"label-width": "60px",
|
5984
5990
|
onKeydown: A[2] || (A[2] = yt(lt(() => {
|
@@ -6031,7 +6037,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6031
6037
|
onRemove: (O) => n(x)(E)
|
6032
6038
|
}, {
|
6033
6039
|
default: h(() => [
|
6034
|
-
p(n(
|
6040
|
+
p(n(et), {
|
6035
6041
|
size: "small",
|
6036
6042
|
"label-width": "60px",
|
6037
6043
|
onKeydown: A[3] || (A[3] = yt(lt(() => {
|
@@ -6976,7 +6982,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6976
6982
|
collapsable: ""
|
6977
6983
|
}, {
|
6978
6984
|
default: h(() => [
|
6979
|
-
p(n(
|
6985
|
+
p(n(et), {
|
6980
6986
|
size: "small",
|
6981
6987
|
"label-width": "80px"
|
6982
6988
|
}, {
|
@@ -7633,7 +7639,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7633
7639
|
collapsable: ""
|
7634
7640
|
}, {
|
7635
7641
|
default: h(() => [
|
7636
|
-
p(n(
|
7642
|
+
p(n(et), {
|
7637
7643
|
class: "v-style-widget__sizing",
|
7638
7644
|
size: "small",
|
7639
7645
|
"label-width": "60px",
|
@@ -7693,7 +7699,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7693
7699
|
}, {
|
7694
7700
|
default: h(() => [
|
7695
7701
|
T("div", mp, [
|
7696
|
-
p(n(
|
7702
|
+
p(n(et), {
|
7697
7703
|
"label-width": "60px",
|
7698
7704
|
size: "small"
|
7699
7705
|
}, {
|
@@ -7975,7 +7981,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7975
7981
|
collapsable: ""
|
7976
7982
|
}, {
|
7977
7983
|
default: h(() => [
|
7978
|
-
p(n(
|
7984
|
+
p(n(et), {
|
7979
7985
|
class: "v-style-widget__texting",
|
7980
7986
|
size: "small",
|
7981
7987
|
"label-width": "60px",
|
@@ -7994,7 +8000,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7994
8000
|
]),
|
7995
8001
|
_: 1
|
7996
8002
|
}),
|
7997
|
-
p(n(
|
8003
|
+
p(n(et), {
|
7998
8004
|
size: "small",
|
7999
8005
|
"label-width": "60px"
|
8000
8006
|
}, {
|
@@ -8080,7 +8086,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8080
8086
|
collapsable: ""
|
8081
8087
|
}, {
|
8082
8088
|
default: h(() => [
|
8083
|
-
p(n(
|
8089
|
+
p(n(et), {
|
8084
8090
|
"label-width": "60px",
|
8085
8091
|
size: "small"
|
8086
8092
|
}, {
|
@@ -8192,7 +8198,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8192
8198
|
collapsable: ""
|
8193
8199
|
}, {
|
8194
8200
|
default: h(() => [
|
8195
|
-
p(n(
|
8201
|
+
p(n(et), {
|
8196
8202
|
"label-width": "60px",
|
8197
8203
|
size: "small"
|
8198
8204
|
}, {
|
@@ -8310,7 +8316,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8310
8316
|
collapsable: ""
|
8311
8317
|
}, {
|
8312
8318
|
default: h(() => [
|
8313
|
-
p(n(
|
8319
|
+
p(n(et), {
|
8314
8320
|
"label-width": "60px",
|
8315
8321
|
size: "small"
|
8316
8322
|
}, {
|
@@ -8998,7 +9004,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8998
9004
|
])),
|
8999
9005
|
_: 1
|
9000
9006
|
}),
|
9001
|
-
p(n(
|
9007
|
+
p(n(et), {
|
9002
9008
|
size: "small",
|
9003
9009
|
"label-position": "top"
|
9004
9010
|
}, {
|
@@ -9054,7 +9060,7 @@ const su = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9054
9060
|
])),
|
9055
9061
|
_: 1
|
9056
9062
|
}),
|
9057
|
-
p(n(
|
9063
|
+
p(n(et), {
|
9058
9064
|
size: "small",
|
9059
9065
|
"label-position": "top"
|
9060
9066
|
}, {
|
@@ -9479,8 +9485,8 @@ function bm() {
|
|
9479
9485
|
} : S instanceof Set && (S.add = S.clear = S.delete = function() {
|
9480
9486
|
throw new Error("set is read-only");
|
9481
9487
|
}), Object.freeze(S), Object.getOwnPropertyNames(S).forEach((M) => {
|
9482
|
-
const
|
9483
|
-
(le === "object" || le === "function") && !Object.isFrozen(
|
9488
|
+
const H = S[M], le = typeof H;
|
9489
|
+
(le === "object" || le === "function") && !Object.isFrozen(H) && r(H);
|
9484
9490
|
}), S;
|
9485
9491
|
}
|
9486
9492
|
class t {
|
@@ -9498,23 +9504,23 @@ function bm() {
|
|
9498
9504
|
return S.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
9499
9505
|
}
|
9500
9506
|
function s(S, ...M) {
|
9501
|
-
const
|
9507
|
+
const H = /* @__PURE__ */ Object.create(null);
|
9502
9508
|
for (const le in S)
|
9503
|
-
|
9509
|
+
H[le] = S[le];
|
9504
9510
|
return M.forEach(function(le) {
|
9505
9511
|
for (const Ie in le)
|
9506
|
-
|
9512
|
+
H[Ie] = le[Ie];
|
9507
9513
|
}), /** @type {T} */
|
9508
|
-
|
9514
|
+
H;
|
9509
9515
|
}
|
9510
9516
|
const o = "</span>", i = (S) => !!S.scope, a = (S, { prefix: M }) => {
|
9511
9517
|
if (S.startsWith("language:"))
|
9512
9518
|
return S.replace("language:", "language-");
|
9513
9519
|
if (S.includes(".")) {
|
9514
|
-
const
|
9520
|
+
const H = S.split(".");
|
9515
9521
|
return [
|
9516
|
-
`${M}${
|
9517
|
-
...
|
9522
|
+
`${M}${H.shift()}`,
|
9523
|
+
...H.map((le, Ie) => `${le}${"_".repeat(Ie + 1)}`)
|
9518
9524
|
].join(" ");
|
9519
9525
|
}
|
9520
9526
|
return `${M}${S}`;
|
@@ -9526,8 +9532,8 @@ function bm() {
|
|
9526
9532
|
* @param {Tree} parseTree - the parse tree (must support `walk` API)
|
9527
9533
|
* @param {{classPrefix: string}} options
|
9528
9534
|
*/
|
9529
|
-
constructor(M,
|
9530
|
-
this.buffer = "", this.classPrefix =
|
9535
|
+
constructor(M, H) {
|
9536
|
+
this.buffer = "", this.classPrefix = H.classPrefix, M.walk(this);
|
9531
9537
|
}
|
9532
9538
|
/**
|
9533
9539
|
* Adds texts to the output stream
|
@@ -9542,11 +9548,11 @@ function bm() {
|
|
9542
9548
|
* @param {Node} node */
|
9543
9549
|
openNode(M) {
|
9544
9550
|
if (!i(M)) return;
|
9545
|
-
const
|
9551
|
+
const H = a(
|
9546
9552
|
M.scope,
|
9547
9553
|
{ prefix: this.classPrefix }
|
9548
9554
|
);
|
9549
|
-
this.span(
|
9555
|
+
this.span(H);
|
9550
9556
|
}
|
9551
9557
|
/**
|
9552
9558
|
* Adds a node close to the output stream (if needed)
|
@@ -9590,8 +9596,8 @@ function bm() {
|
|
9590
9596
|
}
|
9591
9597
|
/** @param {string} scope */
|
9592
9598
|
openNode(M) {
|
9593
|
-
const
|
9594
|
-
this.add(
|
9599
|
+
const H = c({ scope: M });
|
9600
|
+
this.add(H), this.stack.push(H);
|
9595
9601
|
}
|
9596
9602
|
closeNode() {
|
9597
9603
|
if (this.stack.length > 1)
|
@@ -9614,15 +9620,15 @@ function bm() {
|
|
9614
9620
|
* @param {Renderer} builder
|
9615
9621
|
* @param {Node} node
|
9616
9622
|
*/
|
9617
|
-
static _walk(M,
|
9618
|
-
return typeof
|
9623
|
+
static _walk(M, H) {
|
9624
|
+
return typeof H == "string" ? M.addText(H) : H.children && (M.openNode(H), H.children.forEach((le) => this._walk(M, le)), M.closeNode(H)), M;
|
9619
9625
|
}
|
9620
9626
|
/**
|
9621
9627
|
* @param {Node} node
|
9622
9628
|
*/
|
9623
9629
|
static _collapse(M) {
|
9624
|
-
typeof M != "string" && M.children && (M.children.every((
|
9625
|
-
d._collapse(
|
9630
|
+
typeof M != "string" && M.children && (M.children.every((H) => typeof H == "string") ? M.children = [M.children.join("")] : M.children.forEach((H) => {
|
9631
|
+
d._collapse(H);
|
9626
9632
|
}));
|
9627
9633
|
}
|
9628
9634
|
}
|
@@ -9650,9 +9656,9 @@ function bm() {
|
|
9650
9656
|
* @param {Emitter & {root: DataNode}} emitter
|
9651
9657
|
* @param {string} name
|
9652
9658
|
*/
|
9653
|
-
__addSublanguage(M,
|
9659
|
+
__addSublanguage(M, H) {
|
9654
9660
|
const le = M.root;
|
9655
|
-
|
9661
|
+
H && (le.scope = `language:${H}`), this.add(le);
|
9656
9662
|
}
|
9657
9663
|
toHTML() {
|
9658
9664
|
return new l(this, this.options).value();
|
@@ -9674,7 +9680,7 @@ function bm() {
|
|
9674
9680
|
return x("(?:", S, ")?");
|
9675
9681
|
}
|
9676
9682
|
function x(...S) {
|
9677
|
-
return S.map((
|
9683
|
+
return S.map((H) => m(H)).join("");
|
9678
9684
|
}
|
9679
9685
|
function w(S) {
|
9680
9686
|
const M = S[S.length - 1];
|
@@ -9687,15 +9693,15 @@ function bm() {
|
|
9687
9693
|
return new RegExp(S.toString() + "|").exec("").length - 1;
|
9688
9694
|
}
|
9689
9695
|
function A(S, M) {
|
9690
|
-
const
|
9691
|
-
return
|
9696
|
+
const H = S && S.exec(M);
|
9697
|
+
return H && H.index === 0;
|
9692
9698
|
}
|
9693
9699
|
const E = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
9694
9700
|
function j(S, { joinWith: M }) {
|
9695
|
-
let
|
9701
|
+
let H = 0;
|
9696
9702
|
return S.map((le) => {
|
9697
|
-
|
9698
|
-
const Ie =
|
9703
|
+
H += 1;
|
9704
|
+
const Ie = H;
|
9699
9705
|
let je = m(le), Y = "";
|
9700
9706
|
for (; je.length > 0; ) {
|
9701
9707
|
const K = E.exec(je);
|
@@ -9703,7 +9709,7 @@ function bm() {
|
|
9703
9709
|
Y += je;
|
9704
9710
|
break;
|
9705
9711
|
}
|
9706
|
-
Y += je.substring(0, K.index), je = je.substring(K.index + K[0].length), K[0][0] === "\\" && K[1] ? Y += "\\" + String(Number(K[1]) + Ie) : (Y += K[0], K[0] === "(" &&
|
9712
|
+
Y += je.substring(0, K.index), je = je.substring(K.index + K[0].length), K[0][0] === "\\" && K[1] ? Y += "\\" + String(Number(K[1]) + Ie) : (Y += K[0], K[0] === "(" && H++);
|
9707
9713
|
}
|
9708
9714
|
return Y;
|
9709
9715
|
}).map((le) => `(${le})`).join(M);
|
@@ -9721,8 +9727,8 @@ function bm() {
|
|
9721
9727
|
end: /$/,
|
9722
9728
|
relevance: 0,
|
9723
9729
|
/** @type {ModeCallback} */
|
9724
|
-
"on:begin": (
|
9725
|
-
|
9730
|
+
"on:begin": (H, le) => {
|
9731
|
+
H.index !== 0 && le.ignoreMatch();
|
9726
9732
|
}
|
9727
9733
|
}, S);
|
9728
9734
|
}, te = {
|
@@ -9742,7 +9748,7 @@ function bm() {
|
|
9742
9748
|
contains: [te]
|
9743
9749
|
}, _e = {
|
9744
9750
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
9745
|
-
}, be = function(S, M,
|
9751
|
+
}, be = function(S, M, H = {}) {
|
9746
9752
|
const le = s(
|
9747
9753
|
{
|
9748
9754
|
scope: "comment",
|
@@ -9750,7 +9756,7 @@ function bm() {
|
|
9750
9756
|
end: M,
|
9751
9757
|
contains: []
|
9752
9758
|
},
|
9753
|
-
|
9759
|
+
H
|
9754
9760
|
);
|
9755
9761
|
le.contains.push({
|
9756
9762
|
scope: "doctag",
|
@@ -9808,7 +9814,7 @@ function bm() {
|
|
9808
9814
|
// look for 3 words in a row
|
9809
9815
|
}
|
9810
9816
|
), le;
|
9811
|
-
}, Ge = be("//", "$"), Fe = be("/\\*", "\\*/"), qe = be("#", "$"),
|
9817
|
+
}, Ge = be("//", "$"), Fe = be("/\\*", "\\*/"), qe = be("#", "$"), tt = {
|
9812
9818
|
scope: "number",
|
9813
9819
|
begin: W,
|
9814
9820
|
relevance: 0
|
@@ -9862,12 +9868,12 @@ function bm() {
|
|
9862
9868
|
S,
|
9863
9869
|
{
|
9864
9870
|
/** @type {ModeCallback} */
|
9865
|
-
"on:begin": (M,
|
9866
|
-
|
9871
|
+
"on:begin": (M, H) => {
|
9872
|
+
H.data._beginMatch = M[1];
|
9867
9873
|
},
|
9868
9874
|
/** @type {ModeCallback} */
|
9869
|
-
"on:end": (M,
|
9870
|
-
|
9875
|
+
"on:end": (M, H) => {
|
9876
|
+
H.data._beginMatch !== M[1] && H.ignoreMatch();
|
9871
9877
|
}
|
9872
9878
|
}
|
9873
9879
|
);
|
@@ -9876,7 +9882,7 @@ function bm() {
|
|
9876
9882
|
IDENT_RE: B,
|
9877
9883
|
MATCH_NOTHING_RE: O,
|
9878
9884
|
METHOD_GUARD: qt,
|
9879
|
-
NUMBER_MODE:
|
9885
|
+
NUMBER_MODE: tt,
|
9880
9886
|
NUMBER_RE: W,
|
9881
9887
|
PHRASAL_WORDS_MODE: _e,
|
9882
9888
|
QUOTE_STRING_MODE: Ue,
|
@@ -9908,18 +9914,18 @@ function bm() {
|
|
9908
9914
|
function os(S, M) {
|
9909
9915
|
S.relevance === void 0 && (S.relevance = 1);
|
9910
9916
|
}
|
9911
|
-
const
|
9917
|
+
const J = (S, M) => {
|
9912
9918
|
if (!S.beforeMatch) return;
|
9913
9919
|
if (S.starts) throw new Error("beforeMatch cannot be used with starts");
|
9914
|
-
const
|
9920
|
+
const H = Object.assign({}, S);
|
9915
9921
|
Object.keys(S).forEach((le) => {
|
9916
9922
|
delete S[le];
|
9917
|
-
}), S.keywords =
|
9923
|
+
}), S.keywords = H.keywords, S.begin = x(H.beforeMatch, g(H.begin)), S.starts = {
|
9918
9924
|
relevance: 0,
|
9919
9925
|
contains: [
|
9920
|
-
Object.assign(
|
9926
|
+
Object.assign(H, { endsParent: !0 })
|
9921
9927
|
]
|
9922
|
-
}, S.relevance = 0, delete
|
9928
|
+
}, S.relevance = 0, delete H.beforeMatch;
|
9923
9929
|
}, fe = [
|
9924
9930
|
"of",
|
9925
9931
|
"and",
|
@@ -9936,12 +9942,12 @@ function bm() {
|
|
9936
9942
|
"value"
|
9937
9943
|
// common variable name
|
9938
9944
|
], Re = "keyword";
|
9939
|
-
function
|
9945
|
+
function nt(S, M, H = Re) {
|
9940
9946
|
const le = /* @__PURE__ */ Object.create(null);
|
9941
|
-
return typeof S == "string" ? Ie(
|
9947
|
+
return typeof S == "string" ? Ie(H, S.split(" ")) : Array.isArray(S) ? Ie(H, S) : Object.keys(S).forEach(function(je) {
|
9942
9948
|
Object.assign(
|
9943
9949
|
le,
|
9944
|
-
|
9950
|
+
nt(S[je], M, je)
|
9945
9951
|
);
|
9946
9952
|
}), le;
|
9947
9953
|
function Ie(je, Y) {
|
@@ -9961,15 +9967,15 @@ function bm() {
|
|
9961
9967
|
console.error(S);
|
9962
9968
|
}, $t = (S, ...M) => {
|
9963
9969
|
console.log(`WARN: ${S}`, ...M);
|
9964
|
-
},
|
9970
|
+
}, Ye = (S, M) => {
|
9965
9971
|
bn[`${S}/${M}`] || (console.log(`Deprecated as of ${S}. ${M}`), bn[`${S}/${M}`] = !0);
|
9966
9972
|
}, Xt = new Error();
|
9967
|
-
function qs(S, M, { key:
|
9973
|
+
function qs(S, M, { key: H }) {
|
9968
9974
|
let le = 0;
|
9969
|
-
const Ie = S[
|
9975
|
+
const Ie = S[H], je = {}, Y = {};
|
9970
9976
|
for (let K = 1; K <= M.length; K++)
|
9971
9977
|
Y[K + le] = Ie[K], je[K + le] = !0, le += _(M[K - 1]);
|
9972
|
-
S[
|
9978
|
+
S[H] = Y, S[H]._emit = je, S[H]._multi = !0;
|
9973
9979
|
}
|
9974
9980
|
function Va(S) {
|
9975
9981
|
if (Array.isArray(S.begin)) {
|
@@ -10002,7 +10008,7 @@ function bm() {
|
|
10002
10008
|
"m" + (S.case_insensitive ? "i" : "") + (S.unicodeRegex ? "u" : "") + (K ? "g" : "")
|
10003
10009
|
);
|
10004
10010
|
}
|
10005
|
-
class
|
10011
|
+
class H {
|
10006
10012
|
constructor() {
|
10007
10013
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
10008
10014
|
}
|
@@ -10032,7 +10038,7 @@ function bm() {
|
|
10032
10038
|
// @ts-ignore
|
10033
10039
|
getMatcher(K) {
|
10034
10040
|
if (this.multiRegexes[K]) return this.multiRegexes[K];
|
10035
|
-
const ae = new
|
10041
|
+
const ae = new H();
|
10036
10042
|
return this.rules.slice(K).forEach(([Je, $e]) => ae.addRule(Je, $e)), ae.compile(), this.multiRegexes[K] = ae, ae;
|
10037
10043
|
}
|
10038
10044
|
resumingScanAtSamePosition() {
|
@@ -10073,7 +10079,7 @@ function bm() {
|
|
10073
10079
|
// the distinction between match/begin
|
10074
10080
|
Vn,
|
10075
10081
|
Ia,
|
10076
|
-
|
10082
|
+
J
|
10077
10083
|
].forEach(($e) => $e(Y, K)), S.compilerExtensions.forEach(($e) => $e(Y, K)), Y.__beforeBegin = null, [
|
10078
10084
|
ns,
|
10079
10085
|
// do this later so compiler extensions that come earlier have access to the
|
@@ -10083,7 +10089,7 @@ function bm() {
|
|
10083
10089
|
os
|
10084
10090
|
].forEach(($e) => $e(Y, K)), Y.isCompiled = !0;
|
10085
10091
|
let Je = null;
|
10086
|
-
return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Je = Y.keywords.$pattern, delete Y.keywords.$pattern), Je = Je || /\w+/, Y.keywords && (Y.keywords =
|
10092
|
+
return typeof Y.keywords == "object" && Y.keywords.$pattern && (Y.keywords = Object.assign({}, Y.keywords), Je = Y.keywords.$pattern, delete Y.keywords.$pattern), Je = Je || /\w+/, Y.keywords && (Y.keywords = nt(Y.keywords, S.case_insensitive)), ae.keywordPatternRe = M(Je, !0), K && (Y.begin || (Y.begin = /\B|\b/), ae.beginRe = M(ae.begin), !Y.end && !Y.endsWithParent && (Y.end = /\B|\b/), Y.end && (ae.endRe = M(ae.end)), ae.terminatorEnd = m(ae.end) || "", Y.endsWithParent && K.terminatorEnd && (ae.terminatorEnd += (Y.end ? "|" : "") + K.terminatorEnd)), Y.illegal && (ae.illegalRe = M(
|
10087
10093
|
/** @type {RegExp | string} */
|
10088
10094
|
Y.illegal
|
10089
10095
|
)), Y.contains || (Y.contains = []), Y.contains = [].concat(...Y.contains.map(function($e) {
|
@@ -10113,12 +10119,12 @@ function bm() {
|
|
10113
10119
|
}
|
10114
10120
|
var Da = "11.11.1";
|
10115
10121
|
class $a extends Error {
|
10116
|
-
constructor(M,
|
10117
|
-
super(M), this.name = "HTMLInjectionError", this.html =
|
10122
|
+
constructor(M, H) {
|
10123
|
+
super(M), this.name = "HTMLInjectionError", this.html = H;
|
10118
10124
|
}
|
10119
10125
|
}
|
10120
10126
|
const as = e, Xs = s, Qs = Symbol("nomatch"), Na = 7, Ys = function(S) {
|
10121
|
-
const M = /* @__PURE__ */ Object.create(null),
|
10127
|
+
const M = /* @__PURE__ */ Object.create(null), H = /* @__PURE__ */ Object.create(null), le = [];
|
10122
10128
|
let Ie = !0;
|
10123
10129
|
const je = "Could not find the language '{}', did you forget to load/include a language module?", Y = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
10124
10130
|
let K = {
|
@@ -10148,7 +10154,7 @@ function bm() {
|
|
10148
10154
|
}
|
10149
10155
|
function $e(U, oe, ge) {
|
10150
10156
|
let we = "", ze = "";
|
10151
|
-
typeof oe == "object" ? (we = U, ge = oe.ignoreIllegals, ze = oe.language) : (
|
10157
|
+
typeof oe == "object" ? (we = U, ge = oe.ignoreIllegals, ze = oe.language) : (Ye("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ye("10.7.0", `Please use highlight(code, options) instead.
|
10152
10158
|
https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge === void 0 && (ge = !0);
|
10153
10159
|
const ht = {
|
10154
10160
|
code: we,
|
@@ -10173,9 +10179,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10173
10179
|
let ee = ie.keywordPatternRe.exec(ke), me = "";
|
10174
10180
|
for (; ee; ) {
|
10175
10181
|
me += ke.substring(G, ee.index);
|
10176
|
-
const ye = Et.case_insensitive ? ee[0].toLowerCase() : ee[0],
|
10177
|
-
if (
|
10178
|
-
const [jt, Za] =
|
10182
|
+
const ye = Et.case_insensitive ? ee[0].toLowerCase() : ee[0], Ze = ht(ie, ye);
|
10183
|
+
if (Ze) {
|
10184
|
+
const [jt, Za] = Ze;
|
10179
10185
|
if (Ke.addText(me), me = "", ze[ye] = (ze[ye] || 0) + 1, ze[ye] <= Na && (On += Za), jt.startsWith("_"))
|
10180
10186
|
me += ee[0];
|
10181
10187
|
else {
|
@@ -10216,8 +10222,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10216
10222
|
me++;
|
10217
10223
|
continue;
|
10218
10224
|
}
|
10219
|
-
const
|
10220
|
-
|
10225
|
+
const Ze = Et.classNameAliases[G[me]] || G[me], jt = ee[me];
|
10226
|
+
Ze ? Ct(jt, Ze) : (ke = jt, Pt(), ke = ""), me++;
|
10221
10227
|
}
|
10222
10228
|
}
|
10223
10229
|
function so(G, ee) {
|
@@ -10227,8 +10233,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10227
10233
|
let ye = A(G.endRe, me);
|
10228
10234
|
if (ye) {
|
10229
10235
|
if (G["on:end"]) {
|
10230
|
-
const
|
10231
|
-
G["on:end"](ee,
|
10236
|
+
const Ze = new t(G);
|
10237
|
+
G["on:end"](ee, Ze), Ze.isMatchIgnored && (ye = !1);
|
10232
10238
|
}
|
10233
10239
|
if (ye) {
|
10234
10240
|
for (; G.endsParent && G.parent; )
|
@@ -10243,8 +10249,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10243
10249
|
return ie.matcher.regexIndex === 0 ? (ke += G[0], 1) : (ds = !0, 0);
|
10244
10250
|
}
|
10245
10251
|
function Ka(G) {
|
10246
|
-
const ee = G[0], me = G.rule, ye = new t(me),
|
10247
|
-
for (const jt of
|
10252
|
+
const ee = G[0], me = G.rule, ye = new t(me), Ze = [me.__beforeBegin, me["on:begin"]];
|
10253
|
+
for (const jt of Ze)
|
10248
10254
|
if (jt && (jt(G, ye), ye.isMatchIgnored))
|
10249
10255
|
return qa(ee);
|
10250
10256
|
return me.skip ? ke += ee : (me.excludeBegin && (ke += ee), ot(), !me.returnBegin && !me.excludeBegin && (ke = ee)), so(me, G), me.returnBegin ? 0 : ee.length;
|
@@ -10253,12 +10259,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10253
10259
|
const ee = G[0], me = oe.substring(G.index), ye = oo(ie, G, me);
|
10254
10260
|
if (!ye)
|
10255
10261
|
return Qs;
|
10256
|
-
const
|
10257
|
-
ie.endScope && ie.endScope._wrap ? (ot(), Ct(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (ot(), no(ie.endScope, G)) :
|
10262
|
+
const Ze = ie;
|
10263
|
+
ie.endScope && ie.endScope._wrap ? (ot(), Ct(ee, ie.endScope._wrap)) : ie.endScope && ie.endScope._multi ? (ot(), no(ie.endScope, G)) : Ze.skip ? ke += ee : (Ze.returnEnd || Ze.excludeEnd || (ke += ee), ot(), Ze.excludeEnd && (ke = ee));
|
10258
10264
|
do
|
10259
10265
|
ie.scope && Ke.closeNode(), !ie.skip && !ie.subLanguage && (On += ie.relevance), ie = ie.parent;
|
10260
10266
|
while (ie !== ye.parent);
|
10261
|
-
return ye.starts && so(ye.starts, G),
|
10267
|
+
return ye.starts && so(ye.starts, G), Ze.returnEnd ? 0 : ee.length;
|
10262
10268
|
}
|
10263
10269
|
function Qa() {
|
10264
10270
|
const G = [];
|
@@ -10382,7 +10388,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10382
10388
|
return In.secondBest = Pt, In;
|
10383
10389
|
}
|
10384
10390
|
function Pa(U, oe, ge) {
|
10385
|
-
const we = oe &&
|
10391
|
+
const we = oe && H[oe] || ge;
|
10386
10392
|
U.classList.add("hljs"), U.classList.add(`language-${we}`);
|
10387
10393
|
}
|
10388
10394
|
function rs(U) {
|
@@ -10417,10 +10423,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10417
10423
|
K = Xs(K, U);
|
10418
10424
|
}
|
10419
10425
|
const Ba = () => {
|
10420
|
-
Tn(),
|
10426
|
+
Tn(), Ye("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
10421
10427
|
};
|
10422
10428
|
function La() {
|
10423
|
-
Tn(),
|
10429
|
+
Tn(), Ye("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
10424
10430
|
}
|
10425
10431
|
let Zs = !1;
|
10426
10432
|
function Tn() {
|
@@ -10448,18 +10454,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10448
10454
|
}
|
10449
10455
|
function Ua(U) {
|
10450
10456
|
delete M[U];
|
10451
|
-
for (const oe of Object.keys(
|
10452
|
-
|
10457
|
+
for (const oe of Object.keys(H))
|
10458
|
+
H[oe] === U && delete H[oe];
|
10453
10459
|
}
|
10454
10460
|
function Fa() {
|
10455
10461
|
return Object.keys(M);
|
10456
10462
|
}
|
10457
10463
|
function Nt(U) {
|
10458
|
-
return U = (U || "").toLowerCase(), M[U] || M[
|
10464
|
+
return U = (U || "").toLowerCase(), M[U] || M[H[U]];
|
10459
10465
|
}
|
10460
10466
|
function eo(U, { languageName: oe }) {
|
10461
10467
|
typeof U == "string" && (U = [U]), U.forEach((ge) => {
|
10462
|
-
|
10468
|
+
H[ge.toLowerCase()] = oe;
|
10463
10469
|
});
|
10464
10470
|
}
|
10465
10471
|
function to(U) {
|
@@ -10491,7 +10497,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = U, we = oe), ge
|
|
10491
10497
|
});
|
10492
10498
|
}
|
10493
10499
|
function Ga(U) {
|
10494
|
-
return
|
10500
|
+
return Ye("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ye("10.7.0", "Please use highlightElement now."), rs(U);
|
10495
10501
|
}
|
10496
10502
|
Object.assign(S, {
|
10497
10503
|
highlight: $e,
|
@@ -10921,13 +10927,13 @@ function Cm(r) {
|
|
10921
10927
|
return;
|
10922
10928
|
}
|
10923
10929
|
qe === ">" && (e(be, { after: Fe }) || Ge.ignoreMatch());
|
10924
|
-
let
|
10930
|
+
let tt;
|
10925
10931
|
const st = be.input.substring(Fe);
|
10926
|
-
if (
|
10932
|
+
if (tt = st.match(/^\s*=/)) {
|
10927
10933
|
Ge.ignoreMatch();
|
10928
10934
|
return;
|
10929
10935
|
}
|
10930
|
-
if ((
|
10936
|
+
if ((tt = st.match(/^\s+extends\s+/)) && tt.index === 0) {
|
10931
10937
|
Ge.ignoreMatch();
|
10932
10938
|
return;
|
10933
10939
|
}
|
@@ -13000,7 +13006,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13000
13006
|
cancelOrder: _e,
|
13001
13007
|
getOrder: be,
|
13002
13008
|
updateChatDsl: Ge
|
13003
|
-
} = nu(), Fe = C(!0), qe = C(!1),
|
13009
|
+
} = nu(), Fe = C(!0), qe = C(!1), tt = V(() => !t.current.value), st = V(() => z.value ? {
|
13004
13010
|
icon: Pr,
|
13005
13011
|
title: "显示代码块",
|
13006
13012
|
type: "warning"
|
@@ -13008,7 +13014,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13008
13014
|
icon: ua,
|
13009
13015
|
title: "隐藏代码块",
|
13010
13016
|
type: "default"
|
13011
|
-
}), vt = V(() => !Fe.value ||
|
13017
|
+
}), vt = V(() => !Fe.value || tt.value ? "hidden" : "auto");
|
13012
13018
|
nn(async () => {
|
13013
13019
|
Fe.value = await e();
|
13014
13020
|
});
|
@@ -13020,7 +13026,7 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13020
13026
|
);
|
13021
13027
|
return;
|
13022
13028
|
}
|
13023
|
-
if (
|
13029
|
+
if (tt.value) {
|
13024
13030
|
Ne(
|
13025
13031
|
"当前设计视图无任何文件,请新建或打开文件后再使用AI助",
|
13026
13032
|
"warning"
|
@@ -13106,8 +13112,8 @@ const $m = ["innerHTML"], Nm = /* @__PURE__ */ $({
|
|
13106
13112
|
]),
|
13107
13113
|
default: h(() => [
|
13108
13114
|
Fe.value ? I("", !0) : (u(), y(Hm, { key: 0 })),
|
13109
|
-
Fe.value &&
|
13110
|
-
|
13115
|
+
Fe.value && tt.value ? (u(), y(Qm, { key: 1 })) : I("", !0),
|
13116
|
+
tt.value || n(s) ? (u(), y(qm, {
|
13111
13117
|
key: 2,
|
13112
13118
|
models: n(i),
|
13113
13119
|
loading: n(o),
|
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-
|
1
|
+
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-DSCBQa1l.js";
|
2
2
|
export {
|
3
3
|
e as ACCESS,
|
4
4
|
E as API_METHOD_TYPES,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/designer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.12.
|
4
|
+
"version": "0.12.2",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"marked": "~15.0.8",
|
27
27
|
"mockjs": "~1.1.0",
|
28
28
|
"monaco-editor": "~0.52.0",
|
29
|
-
"@vtj/core": "~0.12.
|
30
|
-
"@vtj/icons": "~0.12.
|
31
|
-
"@vtj/renderer": "~0.12.
|
32
|
-
"@vtj/
|
33
|
-
"@vtj/
|
34
|
-
"@vtj/
|
29
|
+
"@vtj/core": "~0.12.2",
|
30
|
+
"@vtj/icons": "~0.12.2",
|
31
|
+
"@vtj/renderer": "~0.12.2",
|
32
|
+
"@vtj/uni": "~0.12.2",
|
33
|
+
"@vtj/utils": "~0.12.2",
|
34
|
+
"@vtj/ui": "~0.12.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@types/mockjs": "~1.0.10",
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/designer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.12.
|
5
|
+
* @version 0.12.1
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.1";
|
package/dist/Editor--u7oixuH.js
DELETED