ss-component-new 1.3.811 → 1.3.813
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/dist/{MTLLoader-Cr05Jq1r.js → MTLLoader-Cw11TWAL.js} +1 -1
- package/dist/{URDFLoader-BPUcMfaA.js → URDFLoader-DUzCZjnV.js} +2 -2
- package/dist/{animationData-BtDIT0yo.js → animationData-DwQetFQD.js} +11 -11
- package/dist/{array-CZ2eqPog.js → array-COidmpRY.js} +178 -178
- package/dist/{iconfont-CHWuGARa.js → iconfont-Ij2RVNFj.js} +1 -1
- package/dist/{index-BcHJqN_9.js → index-B4kaaRbF.js} +676 -676
- package/dist/{index-zu35Umcp.js → index-B7P0-Odj.js} +2 -2
- package/dist/{index-CfXO0Pxj.js → index-CCZspl83.js} +1 -1
- package/dist/{index-CdJWKd-e.js → index-CXY_sgN_.js} +4 -4
- package/dist/{index-CegJQbrk.js → index-CaLfl7ix.js} +1 -1
- package/dist/{index-0tYJ8yEe.js → index-CcBUPD0v.js} +3 -3
- package/dist/{index-CoZLxa8y.js → index-Cd11-eam.js} +7184 -7191
- package/dist/{index-qX9L_pmZ.js → index-Cv6rlCAH.js} +25178 -25153
- package/dist/{index-CH3rwMYW.js → index-D8-0gsl7.js} +4 -4
- package/dist/{index-Uu1cC9bk.js → index-DQryAYzQ.js} +1 -1
- package/dist/{index-BqMPhGJ9.js → index-DqizREJ2.js} +1 -1
- package/dist/{index-CjUeCJj8.js → index-Dsce3BX1.js} +3 -3
- package/dist/{index-B1Cs8tWO.js → index-KEw10uzh.js} +1 -1
- package/dist/{index-eCFjxwNX.js → index-ZhT8hVC2.js} +1 -1
- package/dist/{index-DVGwSP8U.js → index-dh1Gi7jC.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js} +30 -30
- package/dist/{main-BEjDbBqE.js → main-fNwMqnvv.js} +2 -2
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-B0w9UbIY.js → threeModel-BeCT-wuA.js} +49 -49
- package/dist/{threePreview-SOk-xO1D.js → threePreview-BnPPysvl.js} +1103 -1258
- package/dist/{threeSceneView-BJFsvwVj.js → threeSceneView-C_KAY9V1.js} +69 -71
- package/dist/{threeSceneViewForCPMPIP-FVUwqe08.js → threeSceneViewForCPMPIP-uac2fzAK.js} +7 -7
- package/dist/{threeTrackPathView-Bj3hHKs6.js → threeTrackPathView-Ugj5_KnE.js} +84 -84
- package/dist/{threeViewerHost-f9uhJUs0.js → threeViewerHost-Dv0JTTnu.js} +2 -2
- package/dist/{urdfTree-DvLm61lR.js → urdfTree-CLtWTrD6.js} +1 -1
- package/dist/{workpieceTreePanel-cpqQoDnb.js → workpieceTreePanel-Ch75Cqlr.js} +12 -12
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as R, resolveComponent as Q, createBlock as q, openBlock as _, defineComponent as c0, computed as X, watch as q2, createElementBlock as V, createVNode as Y, withCtx as L, createElementVNode as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as R, resolveComponent as Q, createBlock as q, openBlock as _, defineComponent as c0, computed as X, watch as q2, createElementBlock as V, createVNode as Y, withCtx as L, createElementVNode as n2, Fragment as D2, renderList as V2, withModifiers as Fe, normalizeClass as se, toDisplayString as $2, createSlots as be, renderSlot as B2, nextTick as K0, onMounted as Re, createTextVNode as r0, isRef as Kr, isReactive as Xr, toRaw as Qr, createCommentVNode as J, onBeforeUnmount as hn, normalizeStyle as p0, resolveDynamicComponent as Ot, normalizeProps as Jr, guardReactiveProps as Zr, watchEffect as rt, reactive as g6, onUnmounted as r1, unref as b0, withKeys as e9, mergeProps as j1, inject as P6, withDirectives as u4, vShow as di, resolveDirective as t9, h as ui, toRefs as n9 } from "vue";
|
|
2
|
+
import { a_ as i9, a5 as s9, a$ as l9, b0 as o9, b1 as r9, b2 as a9, b3 as c9, g as h9, b4 as d9, b5 as u9, b6 as f9, a6 as fi, b7 as pi, b8 as gi } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js";
|
|
3
3
|
import { _ as L2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { S as Jt } from "./index-BHtNKL1L.js";
|
|
5
5
|
import { F as Ml, G as zl, a2 as p9, a3 as vi, E as ce, p as dn, P as Vl, cj as Pl, aX as g9, aY as Al, y as Bl, av as Ll, cf as v9, q as m9, b as El, w as Hl, ci as w9 } from "./request-DzUsnuWu.js";
|
|
6
|
-
import { a0 as b9, a as un, p as Tt, s as Zt, u as v6, c as
|
|
6
|
+
import { a0 as b9, a as un, p as Tt, s as Zt, u as v6, c as T0, al as Ue, e as fn, aV as T1, C as B3, o as x9 } from "./index-DkDX7FWy.js";
|
|
7
7
|
import { _ as E0 } from "./index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js";
|
|
8
8
|
import { m as mi, B as _9, X as Gl } from "./index-xqFF6xBy.js";
|
|
9
9
|
import { t as Nl } from "./fileUtil-UOt_otFo.js";
|
|
10
10
|
import { s as pn } from "./index-11kpzK0A.js";
|
|
11
|
-
import { T as wi, a as y9 } from "./threeViewerHost-
|
|
11
|
+
import { T as wi, a as y9 } from "./threeViewerHost-Dv0JTTnu.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { A as S9 } from "./index-
|
|
13
|
+
import { A as S9 } from "./index-ZhT8hVC2.js";
|
|
14
14
|
var C9 = "[object Date]";
|
|
15
15
|
function k9(i) {
|
|
16
16
|
return Ml(i) && zl(i) == C9;
|
|
@@ -199,7 +199,7 @@ const O9 = {
|
|
|
199
199
|
]), 1032, ["modelValue", "disabled"])
|
|
200
200
|
]),
|
|
201
201
|
default: L(() => [
|
|
202
|
-
|
|
202
|
+
n2("div", {
|
|
203
203
|
class: "suggest-dropdown",
|
|
204
204
|
ref_key: "suggestDropdownRef",
|
|
205
205
|
ref: r
|
|
@@ -1049,7 +1049,7 @@ const bg = { class: "icon-popover" }, xg = ["onClick"], _g = /* @__PURE__ */ c0(
|
|
|
1049
1049
|
placement: "bottom"
|
|
1050
1050
|
}, {
|
|
1051
1051
|
default: L(() => [
|
|
1052
|
-
|
|
1052
|
+
n2("div", bg, [
|
|
1053
1053
|
(_(!0), V(D2, null, V2(o.value, (f, g) => (_(), V("div", {
|
|
1054
1054
|
key: g,
|
|
1055
1055
|
class: "icon-wrap",
|
|
@@ -1432,7 +1432,7 @@ const yi = async (i) => {
|
|
|
1432
1432
|
setup(i, { emit: e }) {
|
|
1433
1433
|
const t = i, n = e, s = R(t.modelValue), l = R(), o = R(!1), r = R(), a = R([]), c = R(/* @__PURE__ */ new Map()), h = R(null), d = R(void 0), u = R(!1), p = R(void 0), f = ["bottom-start", "top-start", "right-start", "left-start"];
|
|
1434
1434
|
Re(async () => {
|
|
1435
|
-
var z2,
|
|
1435
|
+
var z2, y2;
|
|
1436
1436
|
r.value = t == null ? void 0 : t.content, a.value = t == null ? void 0 : t.selectedTagList;
|
|
1437
1437
|
const $ = (z2 = t == null ? void 0 : t.optionUrl) == null ? void 0 : z2.filter;
|
|
1438
1438
|
if ($) {
|
|
@@ -1440,20 +1440,20 @@ const yi = async (i) => {
|
|
|
1440
1440
|
j2 && (s.value = j2[1]);
|
|
1441
1441
|
}
|
|
1442
1442
|
w2.value && (s.value = s9(s.value)), await K0();
|
|
1443
|
-
const f2 = (
|
|
1443
|
+
const f2 = (y2 = h.value) == null ? void 0 : y2.$el;
|
|
1444
1444
|
p.value = (f2 == null ? void 0 : f2.closest(".el-overlay")) ?? (f2 == null ? void 0 : f2.closest(".el-dialog")) ?? document.body;
|
|
1445
1445
|
});
|
|
1446
1446
|
const g = X(() => {
|
|
1447
|
-
var z2,
|
|
1447
|
+
var z2, y2;
|
|
1448
1448
|
const $ = (z2 = t.optionUrl) == null ? void 0 : z2.filter;
|
|
1449
1449
|
if (!$ || typeof $ != "string") return "";
|
|
1450
1450
|
const f2 = $.match(/@?MainKey\s*=\s*\(([^)]+)\)/);
|
|
1451
|
-
return ((
|
|
1451
|
+
return ((y2 = f2 == null ? void 0 : f2[1]) == null ? void 0 : y2.trim()) ?? "";
|
|
1452
1452
|
}), v = ($) => {
|
|
1453
1453
|
s.value !== $ && (s.value = $, n("update:modelValue", $), n("change", $), n("blurChange"));
|
|
1454
1454
|
}, m = ($) => $ == null || $ === "", b = async ($) => {
|
|
1455
|
-
var
|
|
1456
|
-
const f2 = (
|
|
1455
|
+
var y2;
|
|
1456
|
+
const f2 = (y2 = t.optionUrl) == null ? void 0 : y2.words, z2 = Array.isArray(f2) && f2.length > 0 ? f2[f2.length - 1] : "";
|
|
1457
1457
|
if (z2)
|
|
1458
1458
|
try {
|
|
1459
1459
|
const j2 = await yi({
|
|
@@ -1503,26 +1503,26 @@ const yi = async (i) => {
|
|
|
1503
1503
|
const $ = [];
|
|
1504
1504
|
return w2.value && $.push("multiple"), $;
|
|
1505
1505
|
}), j = ($) => {
|
|
1506
|
-
var
|
|
1506
|
+
var y2;
|
|
1507
1507
|
if (M2.value)
|
|
1508
1508
|
return "";
|
|
1509
1509
|
const { value: f2 } = $;
|
|
1510
|
-
return Array.isArray(a.value) || (a.value = []), ((
|
|
1510
|
+
return Array.isArray(a.value) || (a.value = []), ((y2 = a.value) == null ? void 0 : y2.find((j2) => f2 == j2)) && w2.value ? "active" : "";
|
|
1511
1511
|
}, I = ($) => {
|
|
1512
1512
|
let f2 = Ct(a.value);
|
|
1513
1513
|
const z2 = /* @__PURE__ */ new Set();
|
|
1514
|
-
for (let
|
|
1515
|
-
const j2 = $[
|
|
1514
|
+
for (let y2 = 0; y2 < $.length; y2++) {
|
|
1515
|
+
const j2 = $[y2];
|
|
1516
1516
|
z2.add(j2);
|
|
1517
1517
|
}
|
|
1518
|
-
f2 = f2.filter((
|
|
1519
|
-
},
|
|
1520
|
-
const { value: f2 } = $, z2 = Ct(a.value),
|
|
1521
|
-
return
|
|
1518
|
+
f2 = f2.filter((y2) => z2.has(y2)), Vl(a.value, f2) || (a.value = f2, n("tagChange", f2));
|
|
1519
|
+
}, r2 = ($) => {
|
|
1520
|
+
const { value: f2 } = $, z2 = Ct(a.value), y2 = z2.findIndex((j2) => j2 === f2);
|
|
1521
|
+
return y2 >= 0 ? z2.splice(y2, 1) : z2.push(f2), z2;
|
|
1522
1522
|
}, h2 = ($) => {
|
|
1523
1523
|
if (!w2.value || M2.value)
|
|
1524
1524
|
return;
|
|
1525
|
-
const f2 =
|
|
1525
|
+
const f2 = r2($);
|
|
1526
1526
|
a.value = f2, n("tagChange", f2);
|
|
1527
1527
|
};
|
|
1528
1528
|
q2(
|
|
@@ -1547,7 +1547,7 @@ const yi = async (i) => {
|
|
|
1547
1547
|
}), l0 = X(() => {
|
|
1548
1548
|
var $;
|
|
1549
1549
|
return ($ = r.value) == null ? void 0 : $.filter(
|
|
1550
|
-
(f2, z2,
|
|
1550
|
+
(f2, z2, y2) => z2 === y2.findIndex((j2) => j2.value === f2.value)
|
|
1551
1551
|
);
|
|
1552
1552
|
}), Z2 = ($) => {
|
|
1553
1553
|
if (!$) return "";
|
|
@@ -1561,15 +1561,15 @@ const yi = async (i) => {
|
|
|
1561
1561
|
"department_id",
|
|
1562
1562
|
"relatedId"
|
|
1563
1563
|
]);
|
|
1564
|
-
return Object.keys($).filter((
|
|
1564
|
+
return Object.keys($).filter((y2) => !f2.has(y2) && $[y2] !== void 0 && $[y2] !== "").map((y2) => `${y2}: ${$[y2]}`).join("<br/>");
|
|
1565
1565
|
}, h0 = ($) => {
|
|
1566
|
-
var
|
|
1567
|
-
if (!($ != null && $.value) || !(((
|
|
1566
|
+
var y2, j2, K2, W;
|
|
1567
|
+
if (!($ != null && $.value) || !(((y2 = t.optionUrl) == null ? void 0 : y2.mainKey) && Array.isArray((j2 = t.optionUrl) == null ? void 0 : j2.menus) && t.optionUrl.menus.length > 0) || !((W = (K2 = t.optionUrl) == null ? void 0 : K2.words) != null && W.length)) return "";
|
|
1568
1568
|
const z2 = c.value.get($.value);
|
|
1569
1569
|
return z2 !== void 0 ? z2 : "加载中...";
|
|
1570
1570
|
}, j0 = async ($) => {
|
|
1571
|
-
var
|
|
1572
|
-
if (!((j2 = (
|
|
1571
|
+
var y2, j2, K2, W, U, v2, c2, I2;
|
|
1572
|
+
if (!((j2 = (y2 = t.optionUrl) == null ? void 0 : y2.menus) != null && j2.length) || !((W = (K2 = t.optionUrl) == null ? void 0 : K2.words) != null && W.length) || !((I2 = (U = t.optionUrl) == null ? void 0 : U.words) == null ? void 0 : I2[((c2 = (v2 = t.optionUrl) == null ? void 0 : v2.words) == null ? void 0 : c2.length) - 1])) return;
|
|
1573
1573
|
const z2 = new Map(c.value);
|
|
1574
1574
|
$ == null || $.forEach((H2) => {
|
|
1575
1575
|
z2.has(H2) || z2.set(H2, "加载中...");
|
|
@@ -1586,17 +1586,17 @@ const yi = async (i) => {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
}, oe = async ($) => {
|
|
1589
|
-
var f2, z2,
|
|
1589
|
+
var f2, z2, y2, j2, K2, W, U, v2, c2, I2, H2, o0, Y2, O2;
|
|
1590
1590
|
if ($ === !1 && T(), ((z2 = (f2 = t.optionUrl) == null ? void 0 : f2.allSelectionContents) == null ? void 0 : z2.length) > 0) {
|
|
1591
|
-
let w = [],
|
|
1591
|
+
let w = [], _0 = [], n0 = (y2 = t.optionUrl) == null ? void 0 : y2.filterContent;
|
|
1592
1592
|
Array.isArray(n0) || (n0 = (K2 = (j2 = n0 == null ? void 0 : n0.replaceAll("(", "")) == null ? void 0 : j2.replaceAll(")", "")) == null ? void 0 : K2.split("||")), n0 == null || n0.forEach((p2) => {
|
|
1593
|
-
var S,
|
|
1594
|
-
(p2 == null ? void 0 : p2[0]) === "@" && (p2 = (
|
|
1593
|
+
var S, P0, D0;
|
|
1594
|
+
(p2 == null ? void 0 : p2[0]) === "@" && (p2 = (P0 = (S = p2 == null ? void 0 : p2.replace("(", "$R")) == null ? void 0 : S.split("$R")) == null ? void 0 : P0[1], p2 = p2 == null ? void 0 : p2.slice(0, (p2 == null ? void 0 : p2.length) - 1)), _0 == null || _0.push(mi("(" + p2 + ")")), w == null || w.push(Object.keys((D0 = mi("(" + p2 + ")")) == null ? void 0 : D0[0]));
|
|
1595
1595
|
}), w = w == null ? void 0 : w[0];
|
|
1596
1596
|
let U0 = [];
|
|
1597
1597
|
for (let p2 in (t == null ? void 0 : t.wholeValue) ?? ((W = t.optionUrl) == null ? void 0 : W.contactValue))
|
|
1598
1598
|
if (w != null && w.find((S) => S === p2) || w != null && w.find((S) => p2 == null ? void 0 : p2.includes("." + S))) {
|
|
1599
|
-
let S = (w == null ? void 0 : w.find((
|
|
1599
|
+
let S = (w == null ? void 0 : w.find((P0) => P0 === p2)) ?? (w == null ? void 0 : w.find((P0) => p2 == null ? void 0 : p2.includes("." + P0)));
|
|
1600
1600
|
U0.push({
|
|
1601
1601
|
[S]: (v2 = (t == null ? void 0 : t.wholeValue) ?? ((U = t.optionUrl) == null ? void 0 : U.contactValue)) == null ? void 0 : v2[p2]
|
|
1602
1602
|
});
|
|
@@ -1606,7 +1606,7 @@ const yi = async (i) => {
|
|
|
1606
1606
|
for (let S in p2)
|
|
1607
1607
|
y[S] = p2 == null ? void 0 : p2[S];
|
|
1608
1608
|
});
|
|
1609
|
-
let N0 =
|
|
1609
|
+
let N0 = _0 == null ? void 0 : _0.findIndex((p2) => JSON.stringify(p2 == null ? void 0 : p2[0]) === JSON.stringify(y));
|
|
1610
1610
|
N0 !== -1 ? r.value = (H2 = (I2 = (c2 = t.optionUrl) == null ? void 0 : c2.allSelectionContents) == null ? void 0 : I2[N0]) == null ? void 0 : H2.map((p2) => ({
|
|
1611
1611
|
label: p2,
|
|
1612
1612
|
value: p2
|
|
@@ -1618,7 +1618,7 @@ const yi = async (i) => {
|
|
|
1618
1618
|
await j0((O2 = r.value) == null ? void 0 : O2.map((w) => w == null ? void 0 : w.value)), n("click");
|
|
1619
1619
|
};
|
|
1620
1620
|
return ($, f2) => {
|
|
1621
|
-
const z2 = Q("el-tooltip"),
|
|
1621
|
+
const z2 = Q("el-tooltip"), y2 = Q("el-option"), j2 = Q("el-select");
|
|
1622
1622
|
return o.value ? o.value ? (_(), q(Ut, {
|
|
1623
1623
|
key: 1,
|
|
1624
1624
|
modelValue: l.value,
|
|
@@ -1654,15 +1654,15 @@ const yi = async (i) => {
|
|
|
1654
1654
|
"onUpdate:modelValue": M
|
|
1655
1655
|
}, {
|
|
1656
1656
|
label: L(({ label: K2, value: W }) => [
|
|
1657
|
-
|
|
1657
|
+
n2("div", {
|
|
1658
1658
|
class: se(["option", [j({ value: W })]]),
|
|
1659
1659
|
onClick: Fe((U) => h2({ value: W }), ["stop"])
|
|
1660
1660
|
}, [
|
|
1661
|
-
|
|
1661
|
+
n2("div", zg, $2(K2), 1)
|
|
1662
1662
|
], 10, Mg)
|
|
1663
1663
|
]),
|
|
1664
1664
|
default: L(() => [
|
|
1665
|
-
(_(!0), V(D2, null, V2(l0.value, (K2) => (_(), q(
|
|
1665
|
+
(_(!0), V(D2, null, V2(l0.value, (K2) => (_(), q(y2, {
|
|
1666
1666
|
key: K2.value,
|
|
1667
1667
|
label: K2.label,
|
|
1668
1668
|
value: K2.value
|
|
@@ -1677,7 +1677,7 @@ const yi = async (i) => {
|
|
|
1677
1677
|
offset: 50
|
|
1678
1678
|
}, {
|
|
1679
1679
|
default: L(() => [
|
|
1680
|
-
|
|
1680
|
+
n2("span", null, $2(K2.label), 1)
|
|
1681
1681
|
]),
|
|
1682
1682
|
_: 2
|
|
1683
1683
|
}, 1032, ["content"])) : (_(), V("span", Vg, $2(K2.label), 1))
|
|
@@ -1798,8 +1798,8 @@ const yi = async (i) => {
|
|
|
1798
1798
|
e({ getCurrentFormValue: () => {
|
|
1799
1799
|
var U, v2, c2;
|
|
1800
1800
|
const W = {
|
|
1801
|
-
...
|
|
1802
|
-
...
|
|
1801
|
+
...T0(f.value || {}),
|
|
1802
|
+
...T0(v.value || {})
|
|
1803
1803
|
};
|
|
1804
1804
|
return (c2 = (v2 = (U = u.value) == null ? void 0 : U.querySelectorAll) == null ? void 0 : v2.call(U, "[data-form-prop]")) == null || c2.forEach((I2) => {
|
|
1805
1805
|
const H2 = I2.getAttribute("data-form-prop"), o0 = Array.from(I2.querySelectorAll('input:not([type="hidden"]), textarea')), Y2 = o0.find((O2) => O2.value !== "" && O2.getClientRects().length > 0) || o0.find((O2) => O2.value !== "");
|
|
@@ -1887,7 +1887,7 @@ const yi = async (i) => {
|
|
|
1887
1887
|
flexDirection: n != null && n.isButtonRow ? "row" : "column"
|
|
1888
1888
|
};
|
|
1889
1889
|
return !Number.isNaN(W) && W && (v2["--ssform-label-fontSize"] = `${W}px`, v2["--ssform-input-fontSize"] = `${W}px`), U && (v2["--ssform-label-color"] = U), b.value && (v2.backgroundImage = `url(${b.value})`, v2.backgroundSize = "cover", v2.backgroundPosition = "center", v2.backgroundRepeat = "no-repeat"), v2;
|
|
1890
|
-
}),
|
|
1890
|
+
}), r2 = X(() => {
|
|
1891
1891
|
var W;
|
|
1892
1892
|
return (W = Gl) == null ? void 0 : W.map((U) => ({
|
|
1893
1893
|
value: U == null ? void 0 : U.key,
|
|
@@ -1941,7 +1941,7 @@ const yi = async (i) => {
|
|
|
1941
1941
|
c("changeVisible", W);
|
|
1942
1942
|
}, z2 = (W, U) => {
|
|
1943
1943
|
c("handleColEditChange", W, U);
|
|
1944
|
-
},
|
|
1944
|
+
}, y2 = async (W, U) => {
|
|
1945
1945
|
await K0(), c("handleColTypeChange", W, U);
|
|
1946
1946
|
};
|
|
1947
1947
|
q2(
|
|
@@ -1951,7 +1951,7 @@ const yi = async (i) => {
|
|
|
1951
1951
|
if (((U = n == null ? void 0 : n.rowContents) == null ? void 0 : U.length) === 0) return;
|
|
1952
1952
|
v.value = {};
|
|
1953
1953
|
const W = {};
|
|
1954
|
-
(v2 =
|
|
1954
|
+
(v2 = T0(n == null ? void 0 : n.rowContents)) == null || v2.forEach((c2) => {
|
|
1955
1955
|
var H2;
|
|
1956
1956
|
W[(c2 == null ? void 0 : c2.prop) ?? (c2 == null ? void 0 : c2.name)] = oe(c2 == null ? void 0 : c2.type, c2 == null ? void 0 : c2.value);
|
|
1957
1957
|
const { type: I2 } = c2 || {};
|
|
@@ -1973,9 +1973,9 @@ const yi = async (i) => {
|
|
|
1973
1973
|
), X(() => {
|
|
1974
1974
|
var U;
|
|
1975
1975
|
return (U = n == null ? void 0 : n.rowContents) == null ? void 0 : U.find((v2) => {
|
|
1976
|
-
const { type: c2, optionUrl: I2 = {} } = v2, { multiple: H2, multipleLimit: o0, menuFilter: Y2 = [] } = I2, O2 = c2 === "Select", w = H2,
|
|
1976
|
+
const { type: c2, optionUrl: I2 = {} } = v2, { multiple: H2, multipleLimit: o0, menuFilter: Y2 = [] } = I2, O2 = c2 === "Select", w = H2, _0 = "@Type:Manual", n0 = Y2 == null ? void 0 : Y2.find((y) => {
|
|
1977
1977
|
const { content: N0 } = y;
|
|
1978
|
-
return N0.includes(
|
|
1978
|
+
return N0.includes(_0);
|
|
1979
1979
|
}), U0 = o0 && o0 > 1;
|
|
1980
1980
|
return O2 && w && n0 && U0;
|
|
1981
1981
|
});
|
|
@@ -2033,21 +2033,21 @@ const yi = async (i) => {
|
|
|
2033
2033
|
class: "form-backGround-upload",
|
|
2034
2034
|
onClick: U[0] || (U[0] = Fe((O2) => j(), ["stop"]))
|
|
2035
2035
|
}, [
|
|
2036
|
-
|
|
2036
|
+
n2("input", {
|
|
2037
2037
|
type: "file",
|
|
2038
2038
|
accept: "image/*",
|
|
2039
2039
|
ref: "bgUploadRef",
|
|
2040
2040
|
style: { display: "none" },
|
|
2041
2041
|
onChange: N
|
|
2042
2042
|
}, null, 544),
|
|
2043
|
-
|
|
2043
|
+
n2("img", {
|
|
2044
2044
|
src: Tg,
|
|
2045
2045
|
class: "bg-upload-icon",
|
|
2046
2046
|
loading: D.value,
|
|
2047
2047
|
alt: "上传背景"
|
|
2048
2048
|
}, null, 8, Bg)
|
|
2049
2049
|
])) : J("", !0),
|
|
2050
|
-
|
|
2050
|
+
n2("div", Lg, [
|
|
2051
2051
|
k.value ? (_(), q(H2, {
|
|
2052
2052
|
key: 0,
|
|
2053
2053
|
ref_key: "formRef",
|
|
@@ -2058,10 +2058,10 @@ const yi = async (i) => {
|
|
|
2058
2058
|
class: se(i.formDisabled ? "form-noRegular-data disabled-form" : "form-noRegular-data")
|
|
2059
2059
|
}, {
|
|
2060
2060
|
default: L(() => {
|
|
2061
|
-
var O2, w,
|
|
2061
|
+
var O2, w, _0, n0, U0;
|
|
2062
2062
|
return [
|
|
2063
2063
|
(w = (O2 = A.value) == null ? void 0 : O2[bt]) != null && w.length ? (_(), V("div", Eg, [
|
|
2064
|
-
|
|
2064
|
+
n2("div", Hg, [
|
|
2065
2065
|
(_(!0), V(D2, null, V2(A.value[bt], (y, N0) => (_(), q(v2, {
|
|
2066
2066
|
key: y == null ? void 0 : y.prop,
|
|
2067
2067
|
class: se(["form-item", { "form-row-content": !i.isRowFlex }]),
|
|
@@ -2077,7 +2077,7 @@ const yi = async (i) => {
|
|
|
2077
2077
|
})
|
|
2078
2078
|
}, be({
|
|
2079
2079
|
default: L(() => {
|
|
2080
|
-
var p2, S,
|
|
2080
|
+
var p2, S, P0, D0, re, Se, Ce, ke, De, Oe, A0, vt, mt, wt;
|
|
2081
2081
|
return [
|
|
2082
2082
|
!(y != null && y.isFormColHidden) && (y == null ? void 0 : y.type) !== "Url" ? (_(), q(Ot(K((y == null ? void 0 : y.type) ?? "Input")), {
|
|
2083
2083
|
modelValue: f.value[(y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.name)],
|
|
@@ -2110,7 +2110,7 @@ const yi = async (i) => {
|
|
|
2110
2110
|
modelValue: "详情"
|
|
2111
2111
|
}, null, 8, ["onClickTrigger"])
|
|
2112
2112
|
])) : J("", !0),
|
|
2113
|
-
typeof f.value[(y == null ? void 0 : y.prop) ?? y.name] == "string" && ((p2 = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && p2.includes(".stl") || (S = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && S.includes(".obj") || (
|
|
2113
|
+
typeof f.value[(y == null ? void 0 : y.prop) ?? y.name] == "string" && ((p2 = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && p2.includes(".stl") || (S = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && S.includes(".obj") || (P0 = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && P0.includes(".urdf") || (D0 = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && D0.includes(".STL") || (re = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && re.includes(".ls") || (Se = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && Se.includes(".uv") || (Ce = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && Ce.includes(".UV") || (ke = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && ke.includes(".cpt") || (De = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && De.includes(".CPT") || (Oe = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && Oe.includes(".cyd") || (A0 = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && A0.includes(".CYD") || (vt = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && vt.includes(".nc") || (mt = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && mt.includes(".NC") || (wt = f.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && wt.includes(".csv")) ? (_(), q(E0, {
|
|
2114
2114
|
key: 2,
|
|
2115
2115
|
class: "calculator-content form-preview",
|
|
2116
2116
|
onClickTrigger: (ee) => w2(f.value[(y == null ? void 0 : y.prop) ?? y.name]),
|
|
@@ -2138,10 +2138,10 @@ const yi = async (i) => {
|
|
|
2138
2138
|
append: L(() => [
|
|
2139
2139
|
Y(x1, {
|
|
2140
2140
|
value: y == null ? void 0 : y.type,
|
|
2141
|
-
content:
|
|
2141
|
+
content: r2.value,
|
|
2142
2142
|
placeholder: "类型",
|
|
2143
2143
|
style: { width: "100%" },
|
|
2144
|
-
onChange: (p2) =>
|
|
2144
|
+
onChange: (p2) => y2(p2, y)
|
|
2145
2145
|
}, null, 8, ["value", "content", "onChange"])
|
|
2146
2146
|
]),
|
|
2147
2147
|
_: 2
|
|
@@ -2156,7 +2156,7 @@ const yi = async (i) => {
|
|
|
2156
2156
|
]), 1032, ["data-form-prop", "prop", "class", "disabled", "style"]))), 128))
|
|
2157
2157
|
])
|
|
2158
2158
|
])) : J("", !0),
|
|
2159
|
-
((n0 = (
|
|
2159
|
+
((n0 = (_0 = A.value) == null ? void 0 : _0.tabList) == null ? void 0 : n0.length) > 0 ? (_(), q(I2, {
|
|
2160
2160
|
key: 1,
|
|
2161
2161
|
class: "layer-tab",
|
|
2162
2162
|
modelValue: x.value,
|
|
@@ -2171,8 +2171,8 @@ const yi = async (i) => {
|
|
|
2171
2171
|
default: L(() => {
|
|
2172
2172
|
var N0, p2;
|
|
2173
2173
|
return [
|
|
2174
|
-
|
|
2175
|
-
!((N0 = W.layerFormItem) != null && N0.isFormColHidden) && !((p2 = W.layerFormItem) != null && p2.isHideInForm) ? (_(!0), V(D2, { key: 0 }, V2(y.rows, (S,
|
|
2174
|
+
n2("div", $g, [
|
|
2175
|
+
!((N0 = W.layerFormItem) != null && N0.isFormColHidden) && !((p2 = W.layerFormItem) != null && p2.isHideInForm) ? (_(!0), V(D2, { key: 0 }, V2(y.rows, (S, P0) => (_(), q(v2, {
|
|
2176
2176
|
key: S == null ? void 0 : S.prop,
|
|
2177
2177
|
class: se(["form-item", { "form-row-content": !i.isRowFlex }]),
|
|
2178
2178
|
"data-form-prop": (S == null ? void 0 : S.prop) ?? (S == null ? void 0 : S.name),
|
|
@@ -2187,7 +2187,7 @@ const yi = async (i) => {
|
|
|
2187
2187
|
})
|
|
2188
2188
|
}, be({
|
|
2189
2189
|
default: L(() => {
|
|
2190
|
-
var D0, re, Se, Ce, ke, De, Oe,
|
|
2190
|
+
var D0, re, Se, Ce, ke, De, Oe, A0, vt, mt, wt, ee, X1, Q1;
|
|
2191
2191
|
return [
|
|
2192
2192
|
!(S != null && S.isFormColHidden) && (S == null ? void 0 : S.type) !== "Url" ? (_(), q(Ot(K((S == null ? void 0 : S.type) ?? "Input")), {
|
|
2193
2193
|
modelValue: f.value[(S == null ? void 0 : S.prop) ?? (S == null ? void 0 : S.name)],
|
|
@@ -2220,7 +2220,7 @@ const yi = async (i) => {
|
|
|
2220
2220
|
modelValue: "详情"
|
|
2221
2221
|
}, null, 8, ["onClickTrigger"])
|
|
2222
2222
|
])) : J("", !0),
|
|
2223
|
-
typeof f.value[(S == null ? void 0 : S.prop) ?? S.name] == "string" && ((D0 = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && D0.includes(".stl") || (re = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && re.includes(".obj") || (Se = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Se.includes(".urdf") || (Ce = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Ce.includes(".STL") || (ke = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ke.includes(".ls") || (De = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && De.includes(".uv") || (Oe = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Oe.includes(".UV") || (
|
|
2223
|
+
typeof f.value[(S == null ? void 0 : S.prop) ?? S.name] == "string" && ((D0 = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && D0.includes(".stl") || (re = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && re.includes(".obj") || (Se = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Se.includes(".urdf") || (Ce = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Ce.includes(".STL") || (ke = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ke.includes(".ls") || (De = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && De.includes(".uv") || (Oe = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Oe.includes(".UV") || (A0 = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && A0.includes(".cpt") || (vt = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && vt.includes(".CPT") || (mt = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && mt.includes(".cyd") || (wt = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && wt.includes(".CYD") || (ee = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && ee.includes(".nc") || (X1 = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && X1.includes(".NC") || (Q1 = f.value[(S == null ? void 0 : S.prop) ?? S.name]) != null && Q1.includes(".csv")) ? (_(), q(E0, {
|
|
2224
2224
|
key: 2,
|
|
2225
2225
|
class: "calculator-content form-preview",
|
|
2226
2226
|
onClickTrigger: (e0) => w2(f.value[(S == null ? void 0 : S.prop) ?? S.name]),
|
|
@@ -2248,10 +2248,10 @@ const yi = async (i) => {
|
|
|
2248
2248
|
append: L(() => [
|
|
2249
2249
|
Y(x1, {
|
|
2250
2250
|
value: S == null ? void 0 : S.type,
|
|
2251
|
-
content:
|
|
2251
|
+
content: r2.value,
|
|
2252
2252
|
placeholder: "类型",
|
|
2253
2253
|
style: { width: "100%" },
|
|
2254
|
-
onChange: (D0) =>
|
|
2254
|
+
onChange: (D0) => y2(D0, S)
|
|
2255
2255
|
}, null, 8, ["value", "content", "onChange"])
|
|
2256
2256
|
]),
|
|
2257
2257
|
_: 2
|
|
@@ -2307,7 +2307,7 @@ const yi = async (i) => {
|
|
|
2307
2307
|
default: L(() => {
|
|
2308
2308
|
var O2;
|
|
2309
2309
|
return [
|
|
2310
|
-
(_(!0), V(D2, null, V2(n == null ? void 0 : n.rowContents, (w,
|
|
2310
|
+
(_(!0), V(D2, null, V2(n == null ? void 0 : n.rowContents, (w, _0) => (_(), q(v2, {
|
|
2311
2311
|
key: w == null ? void 0 : w.prop,
|
|
2312
2312
|
class: se(["form-item", { "form-row-content": !i.isRowFlex }]),
|
|
2313
2313
|
"data-form-prop": (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
@@ -2322,11 +2322,11 @@ const yi = async (i) => {
|
|
|
2322
2322
|
})
|
|
2323
2323
|
}, be({
|
|
2324
2324
|
default: L(() => {
|
|
2325
|
-
var n0, U0, y, N0, p2, S,
|
|
2325
|
+
var n0, U0, y, N0, p2, S, P0, D0, re, Se, Ce, ke, De, Oe;
|
|
2326
2326
|
return [
|
|
2327
2327
|
(w == null ? void 0 : w.type) !== "Url" ? (_(), q(Ot(K((w == null ? void 0 : w.type) ?? "Input")), {
|
|
2328
2328
|
modelValue: f.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
2329
|
-
"onUpdate:modelValue": (
|
|
2329
|
+
"onUpdate:modelValue": (A0) => f.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = A0,
|
|
2330
2330
|
isEdit: (n == null ? void 0 : n.isEdit) && !(w != null && w.isNoClick) && !(w != null && w.isReadonly),
|
|
2331
2331
|
disabled: w == null ? void 0 : w.disabled,
|
|
2332
2332
|
content: (w == null ? void 0 : w.contents) ?? [],
|
|
@@ -2340,10 +2340,10 @@ const yi = async (i) => {
|
|
|
2340
2340
|
key: w == null ? void 0 : w.prop,
|
|
2341
2341
|
optionUrl: w,
|
|
2342
2342
|
onChangeVisible: f2,
|
|
2343
|
-
onBlurChange: (
|
|
2343
|
+
onBlurChange: (A0) => Z2((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
2344
2344
|
wholeValue: f.value,
|
|
2345
|
-
onTagChange: (
|
|
2346
|
-
onCreate: (
|
|
2345
|
+
onTagChange: (A0) => l0(A0, (w == null ? void 0 : w.prop) ?? w.name),
|
|
2346
|
+
onCreate: (A0) => h0(w, A0),
|
|
2347
2347
|
config: w == null ? void 0 : w.config,
|
|
2348
2348
|
configModel: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
2349
2349
|
selectedTagList: (w == null ? void 0 : w.selectValue) ?? []
|
|
@@ -2351,14 +2351,14 @@ const yi = async (i) => {
|
|
|
2351
2351
|
(w == null ? void 0 : w.type) === "Url" && !(w != null && w.isFormColHidden) ? (_(), V("div", Yg, [
|
|
2352
2352
|
Y(E0, {
|
|
2353
2353
|
class: "calculator-content form-preview",
|
|
2354
|
-
onClickTrigger: (
|
|
2354
|
+
onClickTrigger: (A0) => h2(f.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
2355
2355
|
modelValue: "详情"
|
|
2356
2356
|
}, null, 8, ["onClickTrigger"])
|
|
2357
2357
|
])) : J("", !0),
|
|
2358
|
-
typeof f.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((n0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && n0.includes(".stl") || (U0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && U0.includes(".obj") || (y = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && y.includes(".urdf") || (N0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N0.includes(".STL") || (p2 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && p2.includes(".ls") || (S = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && S.includes(".uv") || (
|
|
2358
|
+
typeof f.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((n0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && n0.includes(".stl") || (U0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && U0.includes(".obj") || (y = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && y.includes(".urdf") || (N0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && N0.includes(".STL") || (p2 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && p2.includes(".ls") || (S = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && S.includes(".uv") || (P0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && P0.includes(".UV") || (D0 = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && D0.includes(".cpt") || (re = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && re.includes(".CPT") || (Se = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Se.includes(".cyd") || (Ce = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Ce.includes(".CYD") || (ke = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ke.includes(".nc") || (De = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && De.includes(".NC") || (Oe = f.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Oe.includes(".csv")) ? (_(), q(E0, {
|
|
2359
2359
|
key: 2,
|
|
2360
2360
|
class: "calculator-content form-preview",
|
|
2361
|
-
onClickTrigger: (
|
|
2361
|
+
onClickTrigger: (A0) => w2(f.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
2362
2362
|
modelValue: "预览"
|
|
2363
2363
|
}, null, 8, ["onClickTrigger"])) : J("", !0)
|
|
2364
2364
|
];
|
|
@@ -2383,10 +2383,10 @@ const yi = async (i) => {
|
|
|
2383
2383
|
append: L(() => [
|
|
2384
2384
|
Y(x1, {
|
|
2385
2385
|
value: w == null ? void 0 : w.type,
|
|
2386
|
-
content:
|
|
2386
|
+
content: r2.value,
|
|
2387
2387
|
placeholder: "类型",
|
|
2388
2388
|
style: { width: "100%" },
|
|
2389
|
-
onChange: (n0) =>
|
|
2389
|
+
onChange: (n0) => y2(n0, w)
|
|
2390
2390
|
}, null, 8, ["value", "content", "onChange"])
|
|
2391
2391
|
]),
|
|
2392
2392
|
_: 2
|
|
@@ -2400,8 +2400,8 @@ const yi = async (i) => {
|
|
|
2400
2400
|
} : void 0
|
|
2401
2401
|
]), 1032, ["data-form-prop", "prop", "class", "disabled", "style"]))), 128)),
|
|
2402
2402
|
((O2 = n.buttonValue) == null ? void 0 : O2.length) > 0 && i.isButtonRow ? (_(), V("div", Fg, [
|
|
2403
|
-
(_(!0), V(D2, null, V2(n == null ? void 0 : n.buttonValue, (w,
|
|
2404
|
-
key:
|
|
2403
|
+
(_(!0), V(D2, null, V2(n == null ? void 0 : n.buttonValue, (w, _0) => (_(), V("div", {
|
|
2404
|
+
key: _0,
|
|
2405
2405
|
class: "form-button-content"
|
|
2406
2406
|
}, [
|
|
2407
2407
|
w ? (_(), q(E0, {
|
|
@@ -2424,7 +2424,7 @@ const yi = async (i) => {
|
|
|
2424
2424
|
(_(!0), V(D2, null, V2(n == null ? void 0 : n.buttonValue, (O2, w) => (_(), V("div", {
|
|
2425
2425
|
key: w,
|
|
2426
2426
|
class: "form-button-content",
|
|
2427
|
-
onClick: (
|
|
2427
|
+
onClick: (_0) => j2(O2 == null ? void 0 : O2.label, n.isEnableWrap ? h.value : d.value)
|
|
2428
2428
|
}, [
|
|
2429
2429
|
Y(o0, {
|
|
2430
2430
|
id: "themeButton",
|
|
@@ -2632,7 +2632,7 @@ const yi = async (i) => {
|
|
|
2632
2632
|
style: p0({ width: i.isWrap ? "100%" : "auto", marginRight: i.isWrap ? 0 : "12px" })
|
|
2633
2633
|
}, {
|
|
2634
2634
|
default: L(() => [
|
|
2635
|
-
|
|
2635
|
+
n2("span", null, $2(d.label), 1),
|
|
2636
2636
|
B2(r.$slots, "append", {}, void 0, !0)
|
|
2637
2637
|
]),
|
|
2638
2638
|
_: 2
|
|
@@ -2718,7 +2718,7 @@ const lv = /* @__PURE__ */ L2(iv, [["render", sv]]), ov = { class: "docx-rendere
|
|
|
2718
2718
|
renderAltChunks: !0
|
|
2719
2719
|
});
|
|
2720
2720
|
}), (s, l) => (_(), V("div", ov, [
|
|
2721
|
-
|
|
2721
|
+
n2("div", {
|
|
2722
2722
|
ref_key: "docxPreview",
|
|
2723
2723
|
ref: n,
|
|
2724
2724
|
class: "render-docx-wrappper"
|
|
@@ -2742,7 +2742,7 @@ const lv = /* @__PURE__ */ L2(iv, [["render", sv]]), ov = { class: "docx-rendere
|
|
|
2742
2742
|
console.log("预览失败", o);
|
|
2743
2743
|
});
|
|
2744
2744
|
}), (s, l) => (_(), V("div", cv, l[0] || (l[0] = [
|
|
2745
|
-
|
|
2745
|
+
n2("div", { id: "excel" }, null, -1)
|
|
2746
2746
|
])));
|
|
2747
2747
|
}
|
|
2748
2748
|
}, dv = /* @__PURE__ */ L2(hv, [["__scopeId", "data-v-08dbfb73"]]), uv = { class: "csv-renderer" }, fv = { class: "csv-pagination" }, pv = {
|
|
@@ -2795,7 +2795,7 @@ const lv = /* @__PURE__ */ L2(iv, [["render", sv]]), ov = { class: "docx-rendere
|
|
|
2795
2795
|
]),
|
|
2796
2796
|
_: 1
|
|
2797
2797
|
}, 8, ["data"]),
|
|
2798
|
-
|
|
2798
|
+
n2("div", fv, [
|
|
2799
2799
|
Y(f, {
|
|
2800
2800
|
class: "pagination-self",
|
|
2801
2801
|
onCurrentChange: r,
|
|
@@ -2848,8 +2848,8 @@ const lv = /* @__PURE__ */ L2(iv, [["render", sv]]), ov = { class: "docx-rendere
|
|
|
2848
2848
|
n.value && URL.revokeObjectURL(n.value);
|
|
2849
2849
|
}), (l, o) => (_(), V("div", vv, [
|
|
2850
2850
|
s.value ? (_(), V("div", mv, o[0] || (o[0] = [
|
|
2851
|
-
|
|
2852
|
-
|
|
2851
|
+
n2("div", { class: "pdf-error-title" }, "PDF 加载失败", -1),
|
|
2852
|
+
n2("div", { class: "pdf-error-desc" }, "PDF 文件无法正常打开,请检查附件是否存在或稍后重试。", -1)
|
|
2853
2853
|
]))) : n.value ? (_(), V("iframe", {
|
|
2854
2854
|
key: 1,
|
|
2855
2855
|
src: n.value,
|
|
@@ -3505,7 +3505,7 @@ class Ne {
|
|
|
3505
3505
|
return new Ne(e);
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
|
-
class
|
|
3508
|
+
class w0 extends Ne {
|
|
3509
3509
|
constructor(e, t) {
|
|
3510
3510
|
super(e), this.inserted = t;
|
|
3511
3511
|
}
|
|
@@ -3540,7 +3540,7 @@ class m0 extends Ne {
|
|
|
3540
3540
|
}
|
|
3541
3541
|
l += o;
|
|
3542
3542
|
}
|
|
3543
|
-
return new
|
|
3543
|
+
return new w0(t, n);
|
|
3544
3544
|
}
|
|
3545
3545
|
/**
|
|
3546
3546
|
Combine two subsequent change sets into a single set. `other`
|
|
@@ -3610,7 +3610,7 @@ class m0 extends Ne {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
return {
|
|
3613
|
-
changes: new
|
|
3613
|
+
changes: new w0(t, n),
|
|
3614
3614
|
filtered: Ne.create(s)
|
|
3615
3615
|
};
|
|
3616
3616
|
}
|
|
@@ -3635,14 +3635,14 @@ class m0 extends Ne {
|
|
|
3635
3635
|
if (!h && !s.length)
|
|
3636
3636
|
return;
|
|
3637
3637
|
o < t && H0(s, t - o, -1);
|
|
3638
|
-
let d = new
|
|
3638
|
+
let d = new w0(s, l);
|
|
3639
3639
|
r = r ? r.compose(d.map(r)) : d, s = [], l = [], o = 0;
|
|
3640
3640
|
}
|
|
3641
3641
|
function c(h) {
|
|
3642
3642
|
if (Array.isArray(h))
|
|
3643
3643
|
for (let d of h)
|
|
3644
3644
|
c(d);
|
|
3645
|
-
else if (h instanceof
|
|
3645
|
+
else if (h instanceof w0) {
|
|
3646
3646
|
if (h.length != t)
|
|
3647
3647
|
throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);
|
|
3648
3648
|
a(), r = r ? r.compose(h.map(r)) : h;
|
|
@@ -3662,7 +3662,7 @@ class m0 extends Ne {
|
|
|
3662
3662
|
Create an empty changeset of the given length.
|
|
3663
3663
|
*/
|
|
3664
3664
|
static empty(e) {
|
|
3665
|
-
return new
|
|
3665
|
+
return new w0(e ? [e, -1] : [], []);
|
|
3666
3666
|
}
|
|
3667
3667
|
/**
|
|
3668
3668
|
Create a changeset from its JSON representation (as produced by
|
|
@@ -3688,13 +3688,13 @@ class m0 extends Ne {
|
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
|
-
return new
|
|
3691
|
+
return new w0(t, n);
|
|
3692
3692
|
}
|
|
3693
3693
|
/**
|
|
3694
3694
|
@internal
|
|
3695
3695
|
*/
|
|
3696
3696
|
static createSet(e, t) {
|
|
3697
|
-
return new
|
|
3697
|
+
return new w0(e, t);
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
function H0(i, e, t, n = !1) {
|
|
@@ -3757,7 +3757,7 @@ function m4(i, e, t, n = !1) {
|
|
|
3757
3757
|
H0(s, c, a < o.i ? o.ins : 0), l && a < o.i && st(l, s, o.text), a = o.i, o.forward(o.len - h);
|
|
3758
3758
|
} else {
|
|
3759
3759
|
if (o.done && r.done)
|
|
3760
|
-
return l ?
|
|
3760
|
+
return l ? w0.createSet(s, l) : Ne.create(s);
|
|
3761
3761
|
throw new Error("Mismatched change set lengths");
|
|
3762
3762
|
}
|
|
3763
3763
|
}
|
|
@@ -3766,7 +3766,7 @@ function ql(i, e, t = !1) {
|
|
|
3766
3766
|
let n = [], s = t ? [] : null, l = new M1(i), o = new M1(e);
|
|
3767
3767
|
for (let r = !1; ; ) {
|
|
3768
3768
|
if (l.done && o.done)
|
|
3769
|
-
return s ?
|
|
3769
|
+
return s ? w0.createSet(n, s) : Ne.create(n);
|
|
3770
3770
|
if (l.ins == 0)
|
|
3771
3771
|
H0(n, l.len, 0, r), l.next();
|
|
3772
3772
|
else if (o.len == 0 && !o.done)
|
|
@@ -4043,7 +4043,7 @@ function Yl(i, e) {
|
|
|
4043
4043
|
throw new RangeError("Selection points outside of document");
|
|
4044
4044
|
}
|
|
4045
4045
|
let vn = 0;
|
|
4046
|
-
class
|
|
4046
|
+
class o2 {
|
|
4047
4047
|
constructor(e, t, n, s, l) {
|
|
4048
4048
|
this.combine = e, this.compareInput = t, this.compare = n, this.isStatic = s, this.id = vn++, this.default = e([]), this.extensions = typeof l == "function" ? l(this) : l;
|
|
4049
4049
|
}
|
|
@@ -4058,7 +4058,7 @@ class l2 {
|
|
|
4058
4058
|
Define a new facet.
|
|
4059
4059
|
*/
|
|
4060
4060
|
static define(e = {}) {
|
|
4061
|
-
return new
|
|
4061
|
+
return new o2(e.combine || ((t) => t), e.compareInput || ((t, n) => t === n), e.compare || (e.combine ? (t, n) => t === n : mn), !!e.static, e.enables);
|
|
4062
4062
|
}
|
|
4063
4063
|
/**
|
|
4064
4064
|
Returns an extension that adds the given value to this facet.
|
|
@@ -4121,7 +4121,7 @@ class k3 {
|
|
|
4121
4121
|
let p, f = u.config.address[l];
|
|
4122
4122
|
if (f != null) {
|
|
4123
4123
|
let g = E3(u, f);
|
|
4124
|
-
if (this.dependencies.every((v) => v instanceof
|
|
4124
|
+
if (this.dependencies.every((v) => v instanceof o2 ? u.facet(v) === d.facet(v) : v instanceof V0 ? u.field(v, !1) == d.field(v, !1) : !0) || (r ? Mi(p = n(d), g, s) : s(p = n(d), g)))
|
|
4125
4125
|
return d.values[o] = g, 0;
|
|
4126
4126
|
} else
|
|
4127
4127
|
p = n(d);
|
|
@@ -4179,8 +4179,8 @@ function Mv(i, e, t) {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
4182
|
-
const e3 = /* @__PURE__ */
|
|
4183
|
-
class
|
|
4182
|
+
const e3 = /* @__PURE__ */ o2.define({ static: !0 });
|
|
4183
|
+
class V0 {
|
|
4184
4184
|
constructor(e, t, n, s, l) {
|
|
4185
4185
|
this.id = e, this.createF = t, this.updateF = n, this.compareF = s, this.spec = l, this.provides = void 0;
|
|
4186
4186
|
}
|
|
@@ -4188,7 +4188,7 @@ class P0 {
|
|
|
4188
4188
|
Define a state field.
|
|
4189
4189
|
*/
|
|
4190
4190
|
static define(e) {
|
|
4191
|
-
let t = new
|
|
4191
|
+
let t = new V0(vn++, e.create, e.update, e.compare || ((n, s) => n === s), e);
|
|
4192
4192
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
4193
4193
|
}
|
|
4194
4194
|
create(e) {
|
|
@@ -4307,7 +4307,7 @@ class L3 {
|
|
|
4307
4307
|
static resolve(e, t, n) {
|
|
4308
4308
|
let s = [], l = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map();
|
|
4309
4309
|
for (let u of zv(e, t, o))
|
|
4310
|
-
u instanceof
|
|
4310
|
+
u instanceof V0 ? s.push(u) : (l[u.facet.id] || (l[u.facet.id] = [])).push(u);
|
|
4311
4311
|
let r = /* @__PURE__ */ Object.create(null), a = [], c = [];
|
|
4312
4312
|
for (let u of s)
|
|
4313
4313
|
r[u.id] = c.length << 1, c.push((p) => u.slot(p));
|
|
@@ -4354,7 +4354,7 @@ function zv(i, e, t) {
|
|
|
4354
4354
|
t.set(o.compartment, c), l(c, r);
|
|
4355
4355
|
} else if (o instanceof Fl)
|
|
4356
4356
|
l(o.inner, o.prec);
|
|
4357
|
-
else if (o instanceof
|
|
4357
|
+
else if (o instanceof V0)
|
|
4358
4358
|
n[r].push(o), o.provides && l(o.provides, r);
|
|
4359
4359
|
else if (o instanceof k3)
|
|
4360
4360
|
n[r].push(o), o.facet.extensions && l(o.facet.extensions, yt.default);
|
|
@@ -4382,13 +4382,13 @@ function y1(i, e) {
|
|
|
4382
4382
|
function E3(i, e) {
|
|
4383
4383
|
return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
|
|
4384
4384
|
}
|
|
4385
|
-
const Kl = /* @__PURE__ */
|
|
4385
|
+
const Kl = /* @__PURE__ */ o2.define(), x4 = /* @__PURE__ */ o2.define({
|
|
4386
4386
|
combine: (i) => i.some((e) => e),
|
|
4387
4387
|
static: !0
|
|
4388
|
-
}), Xl = /* @__PURE__ */
|
|
4388
|
+
}), Xl = /* @__PURE__ */ o2.define({
|
|
4389
4389
|
combine: (i) => i.length ? i[0] : void 0,
|
|
4390
4390
|
static: !0
|
|
4391
|
-
}), Ql = /* @__PURE__ */
|
|
4391
|
+
}), Ql = /* @__PURE__ */ o2.define(), Jl = /* @__PURE__ */ o2.define(), Zl = /* @__PURE__ */ o2.define(), eo = /* @__PURE__ */ o2.define({
|
|
4392
4392
|
combine: (i) => i.length ? i[0] : !1
|
|
4393
4393
|
});
|
|
4394
4394
|
class Je {
|
|
@@ -4476,15 +4476,15 @@ class T2 {
|
|
|
4476
4476
|
}
|
|
4477
4477
|
T2.reconfigure = /* @__PURE__ */ T2.define();
|
|
4478
4478
|
T2.appendConfig = /* @__PURE__ */ T2.define();
|
|
4479
|
-
class
|
|
4479
|
+
class x0 {
|
|
4480
4480
|
constructor(e, t, n, s, l, o) {
|
|
4481
|
-
this.startState = e, this.changes = t, this.selection = n, this.effects = s, this.annotations = l, this.scrollIntoView = o, this._doc = null, this._state = null, n && Yl(n, t.newLength), l.some((r) => r.type ==
|
|
4481
|
+
this.startState = e, this.changes = t, this.selection = n, this.effects = s, this.annotations = l, this.scrollIntoView = o, this._doc = null, this._state = null, n && Yl(n, t.newLength), l.some((r) => r.type == x0.time) || (this.annotations = l.concat(x0.time.of(Date.now())));
|
|
4482
4482
|
}
|
|
4483
4483
|
/**
|
|
4484
4484
|
@internal
|
|
4485
4485
|
*/
|
|
4486
4486
|
static create(e, t, n, s, l, o) {
|
|
4487
|
-
return new
|
|
4487
|
+
return new x0(e, t, n, s, l, o);
|
|
4488
4488
|
}
|
|
4489
4489
|
/**
|
|
4490
4490
|
The new document produced by the transaction. Contrary to
|
|
@@ -4546,14 +4546,14 @@ class b0 {
|
|
|
4546
4546
|
`"select.pointer"` will match it.
|
|
4547
4547
|
*/
|
|
4548
4548
|
isUserEvent(e) {
|
|
4549
|
-
let t = this.annotation(
|
|
4549
|
+
let t = this.annotation(x0.userEvent);
|
|
4550
4550
|
return !!(t && (t == e || t.length > e.length && t.slice(0, e.length) == e && t[e.length] == "."));
|
|
4551
4551
|
}
|
|
4552
4552
|
}
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4553
|
+
x0.time = /* @__PURE__ */ Je.define();
|
|
4554
|
+
x0.userEvent = /* @__PURE__ */ Je.define();
|
|
4555
|
+
x0.addToHistory = /* @__PURE__ */ Je.define();
|
|
4556
|
+
x0.remote = /* @__PURE__ */ Je.define();
|
|
4557
4557
|
function Av(i, e) {
|
|
4558
4558
|
let t = [];
|
|
4559
4559
|
for (let n = 0, s = 0; ; ) {
|
|
@@ -4570,7 +4570,7 @@ function Av(i, e) {
|
|
|
4570
4570
|
function to(i, e, t) {
|
|
4571
4571
|
var n;
|
|
4572
4572
|
let s, l, o;
|
|
4573
|
-
return t ? (s = e.changes, l =
|
|
4573
|
+
return t ? (s = e.changes, l = w0.empty(e.changes.length), o = i.changes.compose(e.changes)) : (s = e.changes.map(i.changes), l = i.changes.mapDesc(e.changes, !0), o = i.changes.compose(s)), {
|
|
4574
4574
|
changes: o,
|
|
4575
4575
|
selection: e.selection ? e.selection.map(l) : (n = i.selection) === null || n === void 0 ? void 0 : n.map(s),
|
|
4576
4576
|
effects: T2.mapEffects(i.effects, s).concat(T2.mapEffects(e.effects, l)),
|
|
@@ -4580,8 +4580,8 @@ function to(i, e, t) {
|
|
|
4580
4580
|
}
|
|
4581
4581
|
function _4(i, e, t) {
|
|
4582
4582
|
let n = e.selection, s = It(e.annotations);
|
|
4583
|
-
return e.userEvent && (s = s.concat(
|
|
4584
|
-
changes: e.changes instanceof
|
|
4583
|
+
return e.userEvent && (s = s.concat(x0.userEvent.of(e.userEvent))), {
|
|
4584
|
+
changes: e.changes instanceof w0 ? e.changes : w0.of(e.changes || [], t, i.facet(Xl)),
|
|
4585
4585
|
selection: n && (n instanceof E ? n : E.single(n.anchor, n.head)),
|
|
4586
4586
|
effects: It(e.effects),
|
|
4587
4587
|
annotations: s,
|
|
@@ -4596,7 +4596,7 @@ function no(i, e, t) {
|
|
|
4596
4596
|
let o = !!e[l].sequential;
|
|
4597
4597
|
n = to(n, _4(i, e[l], o ? n.changes.newLength : i.doc.length), o);
|
|
4598
4598
|
}
|
|
4599
|
-
let s =
|
|
4599
|
+
let s = x0.create(i, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
4600
4600
|
return Lv(t ? Bv(s) : s);
|
|
4601
4601
|
}
|
|
4602
4602
|
function Bv(i) {
|
|
@@ -4612,17 +4612,17 @@ function Bv(i) {
|
|
|
4612
4612
|
if (t !== !0) {
|
|
4613
4613
|
let s, l;
|
|
4614
4614
|
if (t === !1)
|
|
4615
|
-
l = i.changes.invertedDesc, s =
|
|
4615
|
+
l = i.changes.invertedDesc, s = w0.empty(e.doc.length);
|
|
4616
4616
|
else {
|
|
4617
4617
|
let o = i.changes.filter(t);
|
|
4618
4618
|
s = o.changes, l = o.filtered.mapDesc(o.changes).invertedDesc;
|
|
4619
4619
|
}
|
|
4620
|
-
i =
|
|
4620
|
+
i = x0.create(e, s, i.selection && i.selection.map(l), T2.mapEffects(i.effects, l), i.annotations, i.scrollIntoView);
|
|
4621
4621
|
}
|
|
4622
4622
|
let n = e.facet(Jl);
|
|
4623
4623
|
for (let s = n.length - 1; s >= 0; s--) {
|
|
4624
4624
|
let l = n[s](i);
|
|
4625
|
-
l instanceof
|
|
4625
|
+
l instanceof x0 ? i = l : Array.isArray(l) && l.length == 1 && l[0] instanceof x0 ? i = l[0] : i = no(e, It(l), !1);
|
|
4626
4626
|
}
|
|
4627
4627
|
return i;
|
|
4628
4628
|
}
|
|
@@ -4632,7 +4632,7 @@ function Lv(i) {
|
|
|
4632
4632
|
let l = t[s](i);
|
|
4633
4633
|
l && Object.keys(l).length && (n = to(n, _4(e, l, i.changes.newLength), !0));
|
|
4634
4634
|
}
|
|
4635
|
-
return n == i ? i :
|
|
4635
|
+
return n == i ? i : x0.create(e, i.changes, i.selection, n.effects, n.annotations, n.scrollIntoView);
|
|
4636
4636
|
}
|
|
4637
4637
|
const Ev = [];
|
|
4638
4638
|
function It(i) {
|
|
@@ -4757,7 +4757,7 @@ class G2 {
|
|
|
4757
4757
|
separator into account.
|
|
4758
4758
|
*/
|
|
4759
4759
|
changes(e = []) {
|
|
4760
|
-
return e instanceof
|
|
4760
|
+
return e instanceof w0 ? e : w0.of(e, this.doc.length, this.facet(G2.lineSeparator));
|
|
4761
4761
|
}
|
|
4762
4762
|
/**
|
|
4763
4763
|
Using the state's [line
|
|
@@ -4794,7 +4794,7 @@ class G2 {
|
|
|
4794
4794
|
if (e)
|
|
4795
4795
|
for (let n in e) {
|
|
4796
4796
|
let s = e[n];
|
|
4797
|
-
s instanceof
|
|
4797
|
+
s instanceof V0 && this.config.address[s.id] != null && (t[n] = s.spec.toJSON(this.field(e[n]), this));
|
|
4798
4798
|
}
|
|
4799
4799
|
return t;
|
|
4800
4800
|
}
|
|
@@ -4937,12 +4937,12 @@ class G2 {
|
|
|
4937
4937
|
}
|
|
4938
4938
|
}
|
|
4939
4939
|
G2.allowMultipleSelections = x4;
|
|
4940
|
-
G2.tabSize = /* @__PURE__ */
|
|
4940
|
+
G2.tabSize = /* @__PURE__ */ o2.define({
|
|
4941
4941
|
combine: (i) => i.length ? i[0] : 4
|
|
4942
4942
|
});
|
|
4943
4943
|
G2.lineSeparator = Xl;
|
|
4944
4944
|
G2.readOnly = eo;
|
|
4945
|
-
G2.phrases = /* @__PURE__ */
|
|
4945
|
+
G2.phrases = /* @__PURE__ */ o2.define({
|
|
4946
4946
|
compare(i, e) {
|
|
4947
4947
|
let t = Object.keys(i), n = Object.keys(e);
|
|
4948
4948
|
return t.length == n.length && t.every((s) => i[s] == e[s]);
|
|
@@ -5726,10 +5726,10 @@ var ht = {
|
|
|
5726
5726
|
221: "}",
|
|
5727
5727
|
222: '"'
|
|
5728
5728
|
}, Wv = typeof navigator < "u" && /Mac/.test(navigator.platform), jv = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
5729
|
-
for (var
|
|
5730
|
-
for (var
|
|
5731
|
-
for (var
|
|
5732
|
-
ht[
|
|
5729
|
+
for (var M0 = 0; M0 < 10; M0++) ht[48 + M0] = ht[96 + M0] = String(M0);
|
|
5730
|
+
for (var M0 = 1; M0 <= 24; M0++) ht[M0 + 111] = "F" + M0;
|
|
5731
|
+
for (var M0 = 65; M0 <= 90; M0++)
|
|
5732
|
+
ht[M0] = String.fromCharCode(M0 + 32), V1[M0] = String.fromCharCode(M0);
|
|
5733
5733
|
for (var L6 in ht) V1.hasOwnProperty(L6) || (V1[L6] = ht[L6]);
|
|
5734
5734
|
function Uv(i) {
|
|
5735
5735
|
var e = Wv && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || jv && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? V1 : ht)[i.keyCode] || i.key || "Unidentified";
|
|
@@ -5761,7 +5761,7 @@ function lo(i, e) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
let R0 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, M4 = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
5763
5763
|
const z4 = /* @__PURE__ */ /Edge\/(\d+)/.exec(R0.userAgent), oo = /* @__PURE__ */ /MSIE \d/.test(R0.userAgent), V4 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(R0.userAgent), w6 = !!(oo || V4 || z4), Ei = !w6 && /* @__PURE__ */ /gecko\/(\d+)/i.test(R0.userAgent), E6 = !w6 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(R0.userAgent), Hi = "webkitFontSmoothing" in M4.documentElement.style, P4 = !w6 && /* @__PURE__ */ /Apple Computer/.test(R0.vendor), Gi = P4 && (/* @__PURE__ */ /Mobile\/\w+/.test(R0.userAgent) || R0.maxTouchPoints > 2);
|
|
5764
|
-
var
|
|
5764
|
+
var l2 = {
|
|
5765
5765
|
mac: Gi || /* @__PURE__ */ /Mac/.test(R0.platform),
|
|
5766
5766
|
windows: /* @__PURE__ */ /Win/.test(R0.platform),
|
|
5767
5767
|
linux: /* @__PURE__ */ /Linux|X11/.test(R0.platform),
|
|
@@ -5909,9 +5909,9 @@ class Ze {
|
|
|
5909
5909
|
destroy(e) {
|
|
5910
5910
|
}
|
|
5911
5911
|
}
|
|
5912
|
-
var
|
|
5912
|
+
var z0 = /* @__PURE__ */ function(i) {
|
|
5913
5913
|
return i[i.Text = 0] = "Text", i[i.WidgetBefore = 1] = "WidgetBefore", i[i.WidgetAfter = 2] = "WidgetAfter", i[i.WidgetRange = 3] = "WidgetRange", i;
|
|
5914
|
-
}(
|
|
5914
|
+
}(z0 || (z0 = {}));
|
|
5915
5915
|
class b2 extends at {
|
|
5916
5916
|
constructor(e, t, n, s) {
|
|
5917
5917
|
super(), this.startSide = e, this.endSide = t, this.widget = n, this.spec = s;
|
|
@@ -6015,7 +6015,7 @@ class Pt extends b2 {
|
|
|
6015
6015
|
}
|
|
6016
6016
|
// Only relevant when this.block == true
|
|
6017
6017
|
get type() {
|
|
6018
|
-
return this.startSide != this.endSide ?
|
|
6018
|
+
return this.startSide != this.endSide ? z0.WidgetRange : this.startSide <= 0 ? z0.WidgetBefore : z0.WidgetAfter;
|
|
6019
6019
|
}
|
|
6020
6020
|
get heightRelevant() {
|
|
6021
6021
|
return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
|
|
@@ -6226,7 +6226,7 @@ class Xv {
|
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
6228
|
let _t = null;
|
|
6229
|
-
|
|
6229
|
+
l2.safari && l2.safari_version >= 26 && (_t = !1);
|
|
6230
6230
|
function ho(i) {
|
|
6231
6231
|
if (i.setActive)
|
|
6232
6232
|
return i.setActive();
|
|
@@ -6610,11 +6610,11 @@ function rm(i, e, t) {
|
|
|
6610
6610
|
}
|
|
6611
6611
|
return At;
|
|
6612
6612
|
}
|
|
6613
|
-
const xo = /* @__PURE__ */
|
|
6613
|
+
const xo = /* @__PURE__ */ o2.define(), _o = /* @__PURE__ */ o2.define(), yo = /* @__PURE__ */ o2.define(), So = /* @__PURE__ */ o2.define(), H4 = /* @__PURE__ */ o2.define(), Co = /* @__PURE__ */ o2.define(), ko = /* @__PURE__ */ o2.define(), Sn = /* @__PURE__ */ o2.define(), Cn = /* @__PURE__ */ o2.define(), Do = /* @__PURE__ */ o2.define({
|
|
6614
6614
|
combine: (i) => i.some((e) => e)
|
|
6615
|
-
}), Oo = /* @__PURE__ */
|
|
6615
|
+
}), Oo = /* @__PURE__ */ o2.define({
|
|
6616
6616
|
combine: (i) => i.some((e) => e)
|
|
6617
|
-
}), To = /* @__PURE__ */
|
|
6617
|
+
}), To = /* @__PURE__ */ o2.define();
|
|
6618
6618
|
class Ft {
|
|
6619
6619
|
constructor(e, t, n, s, l, o = !1) {
|
|
6620
6620
|
this.range = e, this.y = t, this.x = n, this.yMargin = s, this.xMargin = l, this.isSnapshot = o;
|
|
@@ -6631,9 +6631,9 @@ function X0(i, e, t) {
|
|
|
6631
6631
|
let n = i.facet(So);
|
|
6632
6632
|
n.length ? n[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
|
|
6633
6633
|
}
|
|
6634
|
-
const qe = /* @__PURE__ */
|
|
6634
|
+
const qe = /* @__PURE__ */ o2.define({ combine: (i) => i.length ? i[0] : !0 });
|
|
6635
6635
|
let am = 0;
|
|
6636
|
-
const Rt = /* @__PURE__ */
|
|
6636
|
+
const Rt = /* @__PURE__ */ o2.define({
|
|
6637
6637
|
combine(i) {
|
|
6638
6638
|
return i.filter((e, t) => {
|
|
6639
6639
|
for (let n = 0; n < t; n++)
|
|
@@ -6719,7 +6719,7 @@ class H6 {
|
|
|
6719
6719
|
this.spec = this.value = null;
|
|
6720
6720
|
}
|
|
6721
6721
|
}
|
|
6722
|
-
const zo = /* @__PURE__ */
|
|
6722
|
+
const zo = /* @__PURE__ */ o2.define(), kn = /* @__PURE__ */ o2.define(), b6 = /* @__PURE__ */ o2.define(), Vo = /* @__PURE__ */ o2.define(), Dn = /* @__PURE__ */ o2.define(), q1 = /* @__PURE__ */ o2.define(), Po = /* @__PURE__ */ o2.define();
|
|
6723
6723
|
function Wi(i, e) {
|
|
6724
6724
|
let t = i.state.facet(Po);
|
|
6725
6725
|
if (!t.length)
|
|
@@ -6742,7 +6742,7 @@ function Wi(i, e) {
|
|
|
6742
6742
|
}
|
|
6743
6743
|
}), s;
|
|
6744
6744
|
}
|
|
6745
|
-
const Ao = /* @__PURE__ */
|
|
6745
|
+
const Ao = /* @__PURE__ */ o2.define();
|
|
6746
6746
|
function On(i) {
|
|
6747
6747
|
let e = 0, t = 0, n = 0, s = 0;
|
|
6748
6748
|
for (let l of i.state.facet(Ao)) {
|
|
@@ -6751,7 +6751,7 @@ function On(i) {
|
|
|
6751
6751
|
}
|
|
6752
6752
|
return { left: e, right: t, top: n, bottom: s };
|
|
6753
6753
|
}
|
|
6754
|
-
const m1 = /* @__PURE__ */
|
|
6754
|
+
const m1 = /* @__PURE__ */ o2.define();
|
|
6755
6755
|
class he {
|
|
6756
6756
|
constructor(e, t, n, s) {
|
|
6757
6757
|
this.fromA = e, this.toA = t, this.fromB = n, this.toB = s;
|
|
@@ -6804,7 +6804,7 @@ class he {
|
|
|
6804
6804
|
}
|
|
6805
6805
|
class R3 {
|
|
6806
6806
|
constructor(e, t, n) {
|
|
6807
|
-
this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes =
|
|
6807
|
+
this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = w0.empty(this.startState.doc.length);
|
|
6808
6808
|
for (let l of n)
|
|
6809
6809
|
this.changes = this.changes.compose(l.changes);
|
|
6810
6810
|
let s = [];
|
|
@@ -7169,12 +7169,12 @@ class kt extends a0 {
|
|
|
7169
7169
|
let n = this.dom.nodeValue.length;
|
|
7170
7170
|
e > n && (e = n);
|
|
7171
7171
|
let s = e, l = e, o = 0;
|
|
7172
|
-
e == 0 && t < 0 || e == n && t >= 0 ?
|
|
7172
|
+
e == 0 && t < 0 || e == n && t >= 0 ? l2.chrome || l2.gecko || (e ? (s--, o = 1) : l < n && (l++, o = -1)) : t < 0 ? s-- : l < n && l++;
|
|
7173
7173
|
let r = B1(this.dom, s, l).getClientRects();
|
|
7174
7174
|
if (!r.length)
|
|
7175
7175
|
return null;
|
|
7176
7176
|
let a = r[(o ? o < 0 : t >= 0) ? 0 : r.length - 1];
|
|
7177
|
-
return
|
|
7177
|
+
return l2.safari && !o && a.width == 0 && (a = Array.prototype.find.call(r, (c) => c.width) || a), o ? N3(a, o < 0) : a || null;
|
|
7178
7178
|
}
|
|
7179
7179
|
static of(e, t) {
|
|
7180
7180
|
let n = new kt(t || document.createTextNode(e), e);
|
|
@@ -7393,7 +7393,7 @@ class pm {
|
|
|
7393
7393
|
if (this.curLine) {
|
|
7394
7394
|
this.flushBuffer();
|
|
7395
7395
|
let e = this.curLine.lastChild;
|
|
7396
|
-
(!e || !Ui(this.curLine, !1) || e.dom.nodeName != "BR" && e.isWidget() && !(
|
|
7396
|
+
(!e || !Ui(this.curLine, !1) || e.dom.nodeName != "BR" && e.isWidget() && !(l2.ios && Ui(this.curLine, !0))) && this.curLine.append(this.cache.findWidget(
|
|
7397
7397
|
N6,
|
|
7398
7398
|
0,
|
|
7399
7399
|
32
|
|
@@ -7728,7 +7728,7 @@ class Ii {
|
|
|
7728
7728
|
let { from: h, to: d } = this.hasComposition;
|
|
7729
7729
|
n = new he(h, d, e.changes.mapPos(h, -1), e.changes.mapPos(d, 1)).addToSet(n.slice());
|
|
7730
7730
|
}
|
|
7731
|
-
this.hasComposition = l ? { from: l.range.fromB, to: l.range.toB } : null, (
|
|
7731
|
+
this.hasComposition = l ? { from: l.range.fromB, to: l.range.toB } : null, (l2.ie || l2.chrome) && !l && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
|
|
7732
7732
|
let o = this.decorations, r = this.blockWrappers;
|
|
7733
7733
|
this.updateDeco();
|
|
7734
7734
|
let a = km(o, this.decorations, e.changes);
|
|
@@ -7751,7 +7751,7 @@ class Ii {
|
|
|
7751
7751
|
), this.tile = r.run(e, t), G4(o, r.cache.reused);
|
|
7752
7752
|
}
|
|
7753
7753
|
this.tile.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.tile.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
7754
|
-
let l =
|
|
7754
|
+
let l = l2.chrome || l2.ios ? { node: n.selectionRange.focusNode, written: !1 } : void 0;
|
|
7755
7755
|
this.tile.sync(l), l && (l.written || n.selectionRange.focusNode != l.node || !this.tile.dom.contains(l.node)) && (this.forceSelection = !0), this.tile.dom.style.height = "";
|
|
7756
7756
|
});
|
|
7757
7757
|
let s = [];
|
|
@@ -7775,16 +7775,16 @@ class Ii {
|
|
|
7775
7775
|
let r = this.forceSelection;
|
|
7776
7776
|
this.forceSelection = !1;
|
|
7777
7777
|
let a = this.view.state.selection.main, c, h;
|
|
7778
|
-
if (a.empty ? h = c = this.inlineDOMNearPos(a.anchor, a.assoc || 1) : (h = this.inlineDOMNearPos(a.head, a.head == a.from ? 1 : -1), c = this.inlineDOMNearPos(a.anchor, a.anchor == a.from ? 1 : -1)),
|
|
7778
|
+
if (a.empty ? h = c = this.inlineDOMNearPos(a.anchor, a.assoc || 1) : (h = this.inlineDOMNearPos(a.head, a.head == a.from ? 1 : -1), c = this.inlineDOMNearPos(a.anchor, a.anchor == a.from ? 1 : -1)), l2.gecko && a.empty && !this.hasComposition && _m(c)) {
|
|
7779
7779
|
let u = document.createTextNode("");
|
|
7780
7780
|
this.view.observer.ignore(() => c.node.insertBefore(u, c.node.childNodes[c.offset] || null)), c = h = new me(u, 0), r = !0;
|
|
7781
7781
|
}
|
|
7782
7782
|
let d = this.view.observer.selectionRange;
|
|
7783
7783
|
(r || !d.focusNode || (!C1(c.node, c.offset, d.anchorNode, d.anchorOffset) || !C1(h.node, h.offset, d.focusNode, d.focusOffset)) && !this.suppressWidgetCursorChange(d, a)) && (this.view.observer.ignore(() => {
|
|
7784
|
-
|
|
7784
|
+
l2.android && l2.chrome && n.contains(d.focusNode) && Tm(d.focusNode, n) && (n.blur(), n.focus({ preventScroll: !0 }));
|
|
7785
7785
|
let u = A1(this.view.root);
|
|
7786
7786
|
if (u) if (a.empty) {
|
|
7787
|
-
if (
|
|
7787
|
+
if (l2.gecko) {
|
|
7788
7788
|
let p = Sm(c.node, c.offset);
|
|
7789
7789
|
if (p && p != 3) {
|
|
7790
7790
|
let f = (p == 1 ? fo : po)(c.node, c.offset);
|
|
@@ -8201,7 +8201,7 @@ function N4(i, e, t) {
|
|
|
8201
8201
|
if (!(l.to < e)) {
|
|
8202
8202
|
if (l.from < e && l.to > e)
|
|
8203
8203
|
return l;
|
|
8204
|
-
(!s || l.type ==
|
|
8204
|
+
(!s || l.type == z0.Text && (s.type != l.type || (t < 0 ? l.from < e : l.to > e))) && (s = l);
|
|
8205
8205
|
}
|
|
8206
8206
|
}
|
|
8207
8207
|
return s || n;
|
|
@@ -8209,7 +8209,7 @@ function N4(i, e, t) {
|
|
|
8209
8209
|
return n;
|
|
8210
8210
|
}
|
|
8211
8211
|
function Pm(i, e, t, n) {
|
|
8212
|
-
let s = N4(i, e.head, e.assoc || -1), l = !n || s.type !=
|
|
8212
|
+
let s = N4(i, e.head, e.assoc || -1), l = !n || s.type != z0.Text || !(i.lineWrapping || s.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > s.from ? e.head - 1 : e.head);
|
|
8213
8213
|
if (l) {
|
|
8214
8214
|
let o = i.dom.getBoundingClientRect(), r = i.textDirectionAt(s.from), a = i.posAtCoords({
|
|
8215
8215
|
x: t == (r == Q2.LTR) ? o.right - 1 : o.left + 1,
|
|
@@ -8316,7 +8316,7 @@ function R4(i, e, t, n) {
|
|
|
8316
8316
|
return new Le(i.state.doc.length, -1);
|
|
8317
8317
|
if (c = i.elementAtHeight(a), n == null)
|
|
8318
8318
|
break;
|
|
8319
|
-
if (c.type ==
|
|
8319
|
+
if (c.type == z0.Text) {
|
|
8320
8320
|
if (n < 0 ? c.to < i.viewport.from : c.from > i.viewport.to)
|
|
8321
8321
|
break;
|
|
8322
8322
|
let u = i.docView.coordsAt(n < 0 ? c.from : c.to, n > 0 ? -1 : 1);
|
|
@@ -8329,12 +8329,12 @@ function R4(i, e, t, n) {
|
|
|
8329
8329
|
if (i.viewport.from >= c.to || i.viewport.to <= c.from) {
|
|
8330
8330
|
if (t)
|
|
8331
8331
|
return null;
|
|
8332
|
-
if (c.type ==
|
|
8332
|
+
if (c.type == z0.Text) {
|
|
8333
8333
|
let d = Vm(i, s, c, o, r);
|
|
8334
8334
|
return new Le(d, d == c.from ? 1 : -1);
|
|
8335
8335
|
}
|
|
8336
8336
|
}
|
|
8337
|
-
if (c.type !=
|
|
8337
|
+
if (c.type != z0.Text)
|
|
8338
8338
|
return a < (c.top + c.bottom) / 2 ? new Le(c.from, 1) : new Le(c.to, -1);
|
|
8339
8339
|
let h = i.docView.lineAt(c.from, 2);
|
|
8340
8340
|
return (!h || h.length != c.length) && (h = i.docView.lineAt(c.from, -2)), new Lm(i, o, r, i.textDirectionAt(c.from)).scanTile(h, c.from);
|
|
@@ -8551,7 +8551,7 @@ class Nm {
|
|
|
8551
8551
|
c.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = c.text, this.newSel = Wm(a, this.bounds.from);
|
|
8552
8552
|
} else {
|
|
8553
8553
|
let a = e.observer.selectionRange, c = l && l.node == a.focusNode && l.offset == a.focusOffset || !A4(e.contentDOM, a.focusNode) ? r.main.head : e.docView.posFromDOM(a.focusNode, a.focusOffset), h = o && o.node == a.anchorNode && o.offset == a.anchorOffset || !A4(e.contentDOM, a.anchorNode) ? r.main.anchor : e.docView.posFromDOM(a.anchorNode, a.anchorOffset), d = e.viewport;
|
|
8554
|
-
if ((
|
|
8554
|
+
if ((l2.ios || l2.chrome) && c != h && Math.min(c, h) <= r.main.from && Math.max(c, h) >= r.main.to && (d.from > 0 || d.to < e.state.doc.length)) {
|
|
8555
8555
|
let u = Math.min(c, h), p = Math.max(c, h), f = d.from - u, g = d.to - p;
|
|
8556
8556
|
(f == 0 || f == 1 || u == 0) && (g == 0 || g == -1 || p == e.state.doc.length) && (c = 0, h = e.state.doc.length);
|
|
8557
8557
|
}
|
|
@@ -8590,13 +8590,13 @@ function Go(i, e) {
|
|
|
8590
8590
|
let t, { newSel: n } = e, { state: s } = i, l = s.selection.main, o = i.inputState.lastKeyTime > Date.now() - 100 ? i.inputState.lastKeyCode : -1;
|
|
8591
8591
|
if (e.bounds) {
|
|
8592
8592
|
let { from: r, to: a } = e.bounds, c = l.from, h = null;
|
|
8593
|
-
(o === 8 ||
|
|
8593
|
+
(o === 8 || l2.android && e.text.length < a - r) && (c = l.to, h = "end");
|
|
8594
8594
|
let d = s.doc.sliceString(r, a, Ht), u, p;
|
|
8595
8595
|
!l.empty && l.from >= r && l.to <= a && (e.typeOver || d != e.text) && d.slice(0, l.from - r) == e.text.slice(0, l.from - r) && d.slice(l.to - r) == e.text.slice(u = e.text.length - (d.length - (l.to - r))) ? t = {
|
|
8596
8596
|
from: l.from,
|
|
8597
8597
|
to: l.to,
|
|
8598
8598
|
insert: W2.of(e.text.slice(l.from - r, u).split(Ht))
|
|
8599
|
-
} : (p = No(d, e.text, c - r, h)) && (
|
|
8599
|
+
} : (p = No(d, e.text, c - r, h)) && (l2.chrome && o == 13 && p.toB == p.from + 2 && e.text.slice(p.from, p.toB) == Ht + Ht && p.toB--, t = {
|
|
8600
8600
|
from: r + p.from,
|
|
8601
8601
|
to: r + p.toA,
|
|
8602
8602
|
insert: W2.of(e.text.slice(p.from, p.toB).split(Ht))
|
|
@@ -8604,11 +8604,11 @@ function Go(i, e) {
|
|
|
8604
8604
|
} else n && (!i.hasFocus && s.facet(qe) || j3(n, l)) && (n = null);
|
|
8605
8605
|
if (!t && !n)
|
|
8606
8606
|
return !1;
|
|
8607
|
-
if ((
|
|
8607
|
+
if ((l2.mac || l2.android) && t && t.from == t.to && t.from == l.head - 1 && /^\. ?$/.test(t.insert.toString()) && i.contentDOM.getAttribute("autocorrect") == "off" ? (n && t.insert.length == 2 && (n = E.single(n.main.anchor - 1, n.main.head - 1)), t = { from: t.from, to: t.to, insert: W2.of([t.insert.toString().replace(".", " ")]) }) : s.doc.lineAt(l.from).to < l.to && i.docView.lineHasWidget(l.to) && i.inputState.insertingTextAt > Date.now() - 50 ? t = {
|
|
8608
8608
|
from: l.from,
|
|
8609
8609
|
to: l.to,
|
|
8610
8610
|
insert: s.toText(i.inputState.insertingText)
|
|
8611
|
-
} :
|
|
8611
|
+
} : l2.chrome && t && t.from == t.to && t.from == l.head && t.insert.toString() == `
|
|
8612
8612
|
` && i.lineWrapping && (n && (n = E.single(n.main.anchor - 1, n.main.head - 1)), t = { from: l.from, to: l.to, insert: W2.of([" "]) }), t)
|
|
8613
8613
|
return Tn(i, t, n, o);
|
|
8614
8614
|
if (n && !j3(n, l)) {
|
|
@@ -8618,10 +8618,10 @@ function Go(i, e) {
|
|
|
8618
8618
|
return !1;
|
|
8619
8619
|
}
|
|
8620
8620
|
function Tn(i, e, t, n = -1) {
|
|
8621
|
-
if (
|
|
8621
|
+
if (l2.ios && i.inputState.flushIOSKey(e))
|
|
8622
8622
|
return !0;
|
|
8623
8623
|
let s = i.state.selection.main;
|
|
8624
|
-
if (
|
|
8624
|
+
if (l2.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
|
|
8625
8625
|
// after a completion when you press enter
|
|
8626
8626
|
(e.from == s.from || e.from == s.from - 1 && i.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && Yt(i.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || n == 8 && e.insert.length < e.to - e.from && e.to > s.head) && Yt(i.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && Yt(i.contentDOM, "Delete", 46)))
|
|
8627
8627
|
return !0;
|
|
@@ -8722,7 +8722,7 @@ class jm {
|
|
|
8722
8722
|
this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
|
|
8723
8723
|
}
|
|
8724
8724
|
constructor(e) {
|
|
8725
|
-
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastTouchX = 0, this.lastTouchY = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus,
|
|
8725
|
+
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastTouchX = 0, this.lastTouchY = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, l2.safari && e.contentDOM.addEventListener("input", () => null), l2.gecko && lw(e.contentDOM.ownerDocument);
|
|
8726
8726
|
}
|
|
8727
8727
|
handleEvent(e) {
|
|
8728
8728
|
!Jm(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
|
|
@@ -8756,11 +8756,11 @@ class jm {
|
|
|
8756
8756
|
keydown(e) {
|
|
8757
8757
|
if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
|
|
8758
8758
|
return !0;
|
|
8759
|
-
if (this.tabFocusMode > 0 && e.keyCode != 27 && $o.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1),
|
|
8759
|
+
if (this.tabFocusMode > 0 && e.keyCode != 27 && $o.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), l2.android && l2.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
|
|
8760
8760
|
return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
|
|
8761
|
-
if (
|
|
8761
|
+
if (l2.ios && !e.synthetic && !e.altKey && !e.metaKey && (Ro.some((t) => t.keyCode == e.keyCode) && !e.ctrlKey || qm.indexOf(e.key) > -1 && e.ctrlKey)) {
|
|
8762
8762
|
let t = { ctrlKey: e.ctrlKey, altKey: e.altKey, metaKey: e.metaKey, shiftKey: e.shiftKey };
|
|
8763
|
-
return t.shiftKey &&
|
|
8763
|
+
return t.shiftKey && l2.ios && !/^(off|none)$/.test(this.view.contentDOM.autocapitalize) && Um(this.view.win) && (t.shiftKey = !1), this.pendingIOSKey = { key: e.key, keyCode: e.keyCode, mods: t }, setTimeout(() => this.flushIOSKey(), 250), !0;
|
|
8764
8764
|
}
|
|
8765
8765
|
return e.keyCode != 229 && this.view.observer.forceFlush(), !1;
|
|
8766
8766
|
}
|
|
@@ -8769,7 +8769,7 @@ class jm {
|
|
|
8769
8769
|
return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, Yt(this.view.contentDOM, t.key, t.keyCode, t.mods));
|
|
8770
8770
|
}
|
|
8771
8771
|
ignoreDuringComposition(e) {
|
|
8772
|
-
return !/^key/.test(e.type) || e.synthetic ? !1 : this.composing > 0 ? !0 :
|
|
8772
|
+
return !/^key/.test(e.type) || e.synthetic ? !1 : this.composing > 0 ? !0 : l2.safari && !l2.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1;
|
|
8773
8773
|
}
|
|
8774
8774
|
startMouseSelection(e) {
|
|
8775
8775
|
this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
|
|
@@ -8877,11 +8877,11 @@ class Fm {
|
|
|
8877
8877
|
}
|
|
8878
8878
|
function Km(i, e) {
|
|
8879
8879
|
let t = i.state.facet(xo);
|
|
8880
|
-
return t.length ? t[0](e) :
|
|
8880
|
+
return t.length ? t[0](e) : l2.mac ? e.metaKey : e.ctrlKey;
|
|
8881
8881
|
}
|
|
8882
8882
|
function Xm(i, e) {
|
|
8883
8883
|
let t = i.state.facet(_o);
|
|
8884
|
-
return t.length ? t[0](e) :
|
|
8884
|
+
return t.length ? t[0](e) : l2.mac ? !e.altKey : !e.ctrlKey;
|
|
8885
8885
|
}
|
|
8886
8886
|
function Qm(i, e) {
|
|
8887
8887
|
let { main: t } = i.state.selection;
|
|
@@ -8908,7 +8908,7 @@ function Jm(i, e) {
|
|
|
8908
8908
|
return !1;
|
|
8909
8909
|
return !0;
|
|
8910
8910
|
}
|
|
8911
|
-
const xe = /* @__PURE__ */ Object.create(null), J0 = /* @__PURE__ */ Object.create(null), Wo =
|
|
8911
|
+
const xe = /* @__PURE__ */ Object.create(null), J0 = /* @__PURE__ */ Object.create(null), Wo = l2.ie && l2.ie_version < 15 || l2.ios && l2.webkit_version < 604;
|
|
8912
8912
|
function Zm(i) {
|
|
8913
8913
|
let e = i.dom.parentNode;
|
|
8914
8914
|
if (!e)
|
|
@@ -8996,7 +8996,7 @@ function Ki(i, e, t, n) {
|
|
|
8996
8996
|
return r < i.state.doc.length && r == l.to && r++, E.undirectionalRange(o, r);
|
|
8997
8997
|
}
|
|
8998
8998
|
}
|
|
8999
|
-
const ew =
|
|
8999
|
+
const ew = l2.ie && l2.ie_version <= 11;
|
|
9000
9000
|
let Xi = null, Qi = 0, Ji = 0;
|
|
9001
9001
|
function Uo(i) {
|
|
9002
9002
|
if (!ew)
|
|
@@ -9148,7 +9148,7 @@ J0.compositionstart = J0.compositionupdate = (i) => {
|
|
|
9148
9148
|
i.observer.editContext || (i.inputState.compositionFirstChange == null && (i.inputState.compositionFirstChange = !0), i.inputState.composing < 0 && (i.inputState.composing = 0));
|
|
9149
9149
|
};
|
|
9150
9150
|
J0.compositionend = (i) => {
|
|
9151
|
-
i.observer.editContext || (i.inputState.composing = -1, i.inputState.compositionEndedAt = Date.now(), i.inputState.compositionPendingKey = !0, i.inputState.compositionPendingChange = i.observer.pendingRecords().length > 0, i.inputState.compositionFirstChange = null,
|
|
9151
|
+
i.observer.editContext || (i.inputState.composing = -1, i.inputState.compositionEndedAt = Date.now(), i.inputState.compositionPendingKey = !0, i.inputState.compositionPendingChange = i.observer.pendingRecords().length > 0, i.inputState.compositionFirstChange = null, l2.chrome && l2.android ? i.observer.flushSoon() : i.inputState.compositionPendingChange ? Promise.resolve().then(() => i.observer.flush()) : setTimeout(() => {
|
|
9152
9152
|
i.inputState.composing < 0 && i.docView.hasComposition && i.update([]);
|
|
9153
9153
|
}, 50));
|
|
9154
9154
|
};
|
|
@@ -9165,14 +9165,14 @@ xe.beforeinput = (i, e) => {
|
|
|
9165
9165
|
}
|
|
9166
9166
|
}
|
|
9167
9167
|
let s;
|
|
9168
|
-
if (
|
|
9168
|
+
if (l2.chrome && l2.android && (s = Ro.find((l) => l.inputType == e.inputType)) && (i.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
|
|
9169
9169
|
let l = ((n = window.visualViewport) === null || n === void 0 ? void 0 : n.height) || 0;
|
|
9170
9170
|
setTimeout(() => {
|
|
9171
9171
|
var o;
|
|
9172
9172
|
(((o = window.visualViewport) === null || o === void 0 ? void 0 : o.height) || 0) > l + 10 && i.hasFocus && (i.contentDOM.blur(), i.focus());
|
|
9173
9173
|
}, 100);
|
|
9174
9174
|
}
|
|
9175
|
-
return
|
|
9175
|
+
return l2.ios && e.inputType == "deleteContentForward" && i.observer.flushSoon(), l2.safari && e.inputType == "insertText" && i.inputState.composing >= 0 && setTimeout(() => J0.compositionend(i, e), 20), !1;
|
|
9176
9176
|
};
|
|
9177
9177
|
const es = /* @__PURE__ */ new Set();
|
|
9178
9178
|
function lw(i) {
|
|
@@ -9242,7 +9242,7 @@ class ve {
|
|
|
9242
9242
|
an array of all the blocks that make up the line.
|
|
9243
9243
|
*/
|
|
9244
9244
|
get type() {
|
|
9245
|
-
return typeof this._content == "number" ?
|
|
9245
|
+
return typeof this._content == "number" ? z0.Text : Array.isArray(this._content) ? this._content : this._content.type;
|
|
9246
9246
|
}
|
|
9247
9247
|
/**
|
|
9248
9248
|
The end of the element as a document position.
|
|
@@ -9394,7 +9394,7 @@ class ie extends Fo {
|
|
|
9394
9394
|
}
|
|
9395
9395
|
replace(e, t, n) {
|
|
9396
9396
|
let s = n[0];
|
|
9397
|
-
return n.length == 1 && (s instanceof ie || s instanceof
|
|
9397
|
+
return n.length == 1 && (s instanceof ie || s instanceof O0 && s.flags & 4) && Math.abs(this.length - s.length) < 10 ? (s instanceof O0 ? s = new ie(s.length, this.height, this.spaceAbove) : s.height = this.height, this.outdated || (s.outdated = !1), s) : W0.of(n);
|
|
9398
9398
|
}
|
|
9399
9399
|
updateHeight(e, t = 0, n = !1, s) {
|
|
9400
9400
|
return s && s.from <= t && s.more ? this.setMeasuredHeight(s) : (n || this.outdated) && (this.spaceAbove = 0, this.setHeight(Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight)), this.outdated = !1, this;
|
|
@@ -9403,7 +9403,7 @@ class ie extends Fo {
|
|
|
9403
9403
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
9404
9404
|
}
|
|
9405
9405
|
}
|
|
9406
|
-
class
|
|
9406
|
+
class O0 extends W0 {
|
|
9407
9407
|
constructor(e) {
|
|
9408
9408
|
super(e, 0);
|
|
9409
9409
|
}
|
|
@@ -9453,25 +9453,25 @@ class T0 extends W0 {
|
|
|
9453
9453
|
let s = this.length - t;
|
|
9454
9454
|
if (s > 0) {
|
|
9455
9455
|
let l = n[n.length - 1];
|
|
9456
|
-
l instanceof
|
|
9456
|
+
l instanceof O0 ? n[n.length - 1] = new O0(l.length + s) : n.push(null, new O0(s - 1));
|
|
9457
9457
|
}
|
|
9458
9458
|
if (e > 0) {
|
|
9459
9459
|
let l = n[0];
|
|
9460
|
-
l instanceof
|
|
9460
|
+
l instanceof O0 ? n[0] = new O0(e + l.length) : n.unshift(new O0(e - 1), null);
|
|
9461
9461
|
}
|
|
9462
9462
|
return W0.of(n);
|
|
9463
9463
|
}
|
|
9464
9464
|
decomposeLeft(e, t) {
|
|
9465
|
-
t.push(new
|
|
9465
|
+
t.push(new O0(e - 1), null);
|
|
9466
9466
|
}
|
|
9467
9467
|
decomposeRight(e, t) {
|
|
9468
|
-
t.push(null, new
|
|
9468
|
+
t.push(null, new O0(this.length - e - 1));
|
|
9469
9469
|
}
|
|
9470
9470
|
updateHeight(e, t = 0, n = !1, s) {
|
|
9471
9471
|
let l = t + this.length;
|
|
9472
9472
|
if (s && s.from <= t + this.length && s.more) {
|
|
9473
9473
|
let o = [], r = Math.max(t, s.from), a = -1;
|
|
9474
|
-
for (s.from > t && o.push(new
|
|
9474
|
+
for (s.from > t && o.push(new O0(s.from - t - 1).updateHeight(e, t)); r <= l && s.more; ) {
|
|
9475
9475
|
let h = e.doc.lineAt(r).length;
|
|
9476
9476
|
o.length && o.push(null);
|
|
9477
9477
|
let d = s.heights[s.index++], u = 0;
|
|
@@ -9479,7 +9479,7 @@ class T0 extends W0 {
|
|
|
9479
9479
|
let p = new ie(h, d, u);
|
|
9480
9480
|
p.outdated = !1, o.push(p), r += h + 1;
|
|
9481
9481
|
}
|
|
9482
|
-
r <= l && o.push(null, new
|
|
9482
|
+
r <= l && o.push(null, new O0(l - r).updateHeight(e, r));
|
|
9483
9483
|
let c = W0.of(o);
|
|
9484
9484
|
return (a < 0 || Math.abs(c.height - this.height) >= O3 || Math.abs(a - this.heightMetrics(e, t).perLine) >= O3) && (i1 = !0), U3(this, c);
|
|
9485
9485
|
} else (n || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
|
|
@@ -9558,7 +9558,7 @@ class cw extends W0 {
|
|
|
9558
9558
|
}
|
|
9559
9559
|
function is(i, e) {
|
|
9560
9560
|
let t, n;
|
|
9561
|
-
i[e] == null && (t = i[e - 1]) instanceof
|
|
9561
|
+
i[e] == null && (t = i[e - 1]) instanceof O0 && (n = i[e + 1]) instanceof O0 && i.splice(e - 1, 3, new O0(t.length + 1 + n.length));
|
|
9562
9562
|
}
|
|
9563
9563
|
const hw = 5;
|
|
9564
9564
|
class Mn {
|
|
@@ -9591,7 +9591,7 @@ class Mn {
|
|
|
9591
9591
|
this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new ie(this.pos - e, -1, 0)), this.writtenTo = this.pos;
|
|
9592
9592
|
}
|
|
9593
9593
|
blankContent(e, t) {
|
|
9594
|
-
let n = new
|
|
9594
|
+
let n = new O0(t - e);
|
|
9595
9595
|
return this.oracle.doc.lineAt(e).to == t && (n.flags |= 4), n;
|
|
9596
9596
|
}
|
|
9597
9597
|
ensureLine() {
|
|
@@ -9745,7 +9745,7 @@ class ss {
|
|
|
9745
9745
|
this.state = e.state;
|
|
9746
9746
|
let n = this.stateDeco;
|
|
9747
9747
|
this.stateDeco = os(this.state);
|
|
9748
|
-
let s = e.changedRanges, l = he.extendWithRanges(s, dw(n, this.stateDeco, e ? e.changes :
|
|
9748
|
+
let s = e.changedRanges, l = he.extendWithRanges(s, dw(n, this.stateDeco, e ? e.changes : w0.empty(this.state.doc.length))), o = this.heightMap.height, r = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollOffset);
|
|
9749
9749
|
ns(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), l), (this.heightMap.height != o || i1) && (e.flags |= 2), r ? (this.scrollAnchorPos = e.changes.mapPos(r.from, -1), this.scrollAnchorHeight = r.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = o);
|
|
9750
9750
|
let a = l.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
9751
9751
|
(t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
|
|
@@ -9867,7 +9867,7 @@ class ss {
|
|
|
9867
9867
|
}
|
|
9868
9868
|
r.push(v);
|
|
9869
9869
|
}, c = (h) => {
|
|
9870
|
-
if (h.length < o || h.type !=
|
|
9870
|
+
if (h.length < o || h.type != z0.Text)
|
|
9871
9871
|
return;
|
|
9872
9872
|
let d = mw(h.from, h.to, this.stateDeco);
|
|
9873
9873
|
if (d.total < o)
|
|
@@ -10051,7 +10051,7 @@ function w1(i, e) {
|
|
|
10051
10051
|
let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
|
|
10052
10052
|
return new ve(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((s) => w1(s, e)) : i._content);
|
|
10053
10053
|
}
|
|
10054
|
-
const c3 = /* @__PURE__ */
|
|
10054
|
+
const c3 = /* @__PURE__ */ o2.define({ combine: (i) => i.join(" ") }), W4 = /* @__PURE__ */ o2.define({ combine: (i) => i.indexOf(!0) > -1 }), j4 = /* @__PURE__ */ ct.newName(), Ko = /* @__PURE__ */ ct.newName(), Xo = /* @__PURE__ */ ct.newName(), Qo = { "&light": "." + Ko, "&dark": "." + Xo };
|
|
10055
10055
|
function U4(i, e, t) {
|
|
10056
10056
|
return new ct(e, {
|
|
10057
10057
|
finish(n) {
|
|
@@ -10356,15 +10356,15 @@ const bw = /* @__PURE__ */ U4("." + j4, {
|
|
|
10356
10356
|
subtree: !0,
|
|
10357
10357
|
attributes: !0,
|
|
10358
10358
|
characterDataOldValue: !0
|
|
10359
|
-
}, j6 =
|
|
10359
|
+
}, j6 = l2.ie && l2.ie_version <= 11;
|
|
10360
10360
|
class _w {
|
|
10361
10361
|
constructor(e) {
|
|
10362
10362
|
this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Xv(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
|
|
10363
10363
|
for (let n of t)
|
|
10364
10364
|
this.queue.push(n);
|
|
10365
|
-
(
|
|
10366
|
-
}), window.EditContext &&
|
|
10367
|
-
!(
|
|
10365
|
+
(l2.ie && l2.ie_version <= 11 || l2.ios && e.composing) && t.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
10366
|
+
}), window.EditContext && l2.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
|
|
10367
|
+
!(l2.chrome && l2.chrome_version < 126) && (this.editContext = new Sw(e), e.state.facet(qe) && (e.contentDOM.editContext = this.editContext.editContext)), j6 && (this.onCharData = (t) => {
|
|
10368
10368
|
this.queue.push({
|
|
10369
10369
|
target: t.target,
|
|
10370
10370
|
type: "characterData",
|
|
@@ -10415,14 +10415,14 @@ class _w {
|
|
|
10415
10415
|
t || (this.selectionChanged = !1);
|
|
10416
10416
|
return;
|
|
10417
10417
|
}
|
|
10418
|
-
(
|
|
10418
|
+
(l2.ie && l2.ie_version <= 11 || l2.android && l2.chrome) && !n.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
|
|
10419
10419
|
s.focusNode && C1(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
|
|
10420
10420
|
}
|
|
10421
10421
|
readSelectionRange() {
|
|
10422
10422
|
let { view: e } = this, t = A1(e.root);
|
|
10423
10423
|
if (!t)
|
|
10424
10424
|
return !1;
|
|
10425
|
-
let n =
|
|
10425
|
+
let n = l2.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && yw(this.view, t) || t;
|
|
10426
10426
|
if (!n || this.selectionRange.eq(n))
|
|
10427
10427
|
return !1;
|
|
10428
10428
|
let s = S1(this.dom, n);
|
|
@@ -10626,7 +10626,7 @@ class Sw {
|
|
|
10626
10626
|
insert: W2.of(n.text.slice(h.from, h.toB).split(`
|
|
10627
10627
|
`))
|
|
10628
10628
|
};
|
|
10629
|
-
if ((
|
|
10629
|
+
if ((l2.mac || l2.android) && d.from == o - 1 && /^\. ?$/.test(n.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (d = { from: r, to: a, insert: W2.of([n.text.replace(".", " ")]) }), this.pendingContextChange = d, !e.state.readOnly) {
|
|
10630
10630
|
let u = this.to - this.from + (d.to - d.from + d.insert.length);
|
|
10631
10631
|
Tn(e, d, E.single(this.toEditorPos(n.selectionStart, u), this.toEditorPos(n.selectionEnd, u)));
|
|
10632
10632
|
}
|
|
@@ -10735,7 +10735,7 @@ class Sw {
|
|
|
10735
10735
|
this.editContext.removeEventListener(e, this.handlers[e]);
|
|
10736
10736
|
}
|
|
10737
10737
|
}
|
|
10738
|
-
class
|
|
10738
|
+
class s2 {
|
|
10739
10739
|
/**
|
|
10740
10740
|
The current editor state.
|
|
10741
10741
|
*/
|
|
@@ -10816,7 +10816,7 @@ class i2 {
|
|
|
10816
10816
|
});
|
|
10817
10817
|
}
|
|
10818
10818
|
dispatch(...e) {
|
|
10819
|
-
let t = e.length == 1 && e[0] instanceof
|
|
10819
|
+
let t = e.length == 1 && e[0] instanceof x0 ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
|
|
10820
10820
|
this.dispatchTransactions(t, this);
|
|
10821
10821
|
}
|
|
10822
10822
|
/**
|
|
@@ -10851,7 +10851,7 @@ class i2 {
|
|
|
10851
10851
|
this.updateState = 2;
|
|
10852
10852
|
for (let u of e) {
|
|
10853
10853
|
if (d && (d = d.map(u.changes)), u.scrollIntoView) {
|
|
10854
|
-
let { main: p } = u.state.selection, { x: f, y: g } = this.state.facet(
|
|
10854
|
+
let { main: p } = u.state.selection, { x: f, y: g } = this.state.facet(s2.cursorScrollMargin);
|
|
10855
10855
|
d = new Ft(p.empty ? p : E.cursor(p.head, p.head > p.anchor ? -1 : 1), "nearest", "nearest", g, f);
|
|
10856
10856
|
}
|
|
10857
10857
|
for (let p of u.effects)
|
|
@@ -11021,7 +11021,7 @@ class i2 {
|
|
|
11021
11021
|
translate: "no",
|
|
11022
11022
|
contenteditable: this.state.facet(qe) ? "true" : "false",
|
|
11023
11023
|
class: "cm-content",
|
|
11024
|
-
style: `${
|
|
11024
|
+
style: `${l2.tabSize}: ${this.state.tabSize}`,
|
|
11025
11025
|
role: "textbox",
|
|
11026
11026
|
"aria-multiline": "true"
|
|
11027
11027
|
};
|
|
@@ -11036,7 +11036,7 @@ class i2 {
|
|
|
11036
11036
|
let t = !0;
|
|
11037
11037
|
for (let n of e)
|
|
11038
11038
|
for (let s of n.effects)
|
|
11039
|
-
if (s.is(
|
|
11039
|
+
if (s.is(s2.announce)) {
|
|
11040
11040
|
t && (this.announceDOM.textContent = ""), t = !1;
|
|
11041
11041
|
let l = this.announceDOM.appendChild(document.createElement("div"));
|
|
11042
11042
|
l.textContent = s.value;
|
|
@@ -11044,7 +11044,7 @@ class i2 {
|
|
|
11044
11044
|
}
|
|
11045
11045
|
mountStyles() {
|
|
11046
11046
|
this.styleModules = this.state.facet(m1);
|
|
11047
|
-
let e = this.state.facet(
|
|
11047
|
+
let e = this.state.facet(s2.cspNonce);
|
|
11048
11048
|
ct.mount(this.root, this.styleModules.concat(bw).reverse(), e ? { nonce: e } : void 0);
|
|
11049
11049
|
}
|
|
11050
11050
|
readMeasured() {
|
|
@@ -11340,7 +11340,7 @@ class i2 {
|
|
|
11340
11340
|
*/
|
|
11341
11341
|
get hasFocus() {
|
|
11342
11342
|
var e;
|
|
11343
|
-
return (this.dom.ownerDocument.hasFocus() ||
|
|
11343
|
+
return (this.dom.ownerDocument.hasFocus() || l2.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
|
|
11344
11344
|
}
|
|
11345
11345
|
/**
|
|
11346
11346
|
Put focus on the editor.
|
|
@@ -11476,25 +11476,25 @@ class i2 {
|
|
|
11476
11476
|
return ((t = s == null ? void 0 : s.root) === null || t === void 0 ? void 0 : t.view) || null;
|
|
11477
11477
|
}
|
|
11478
11478
|
}
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11479
|
+
s2.styleModule = m1;
|
|
11480
|
+
s2.inputHandler = Co;
|
|
11481
|
+
s2.clipboardInputFilter = Sn;
|
|
11482
|
+
s2.clipboardOutputFilter = Cn;
|
|
11483
|
+
s2.scrollHandler = To;
|
|
11484
|
+
s2.focusChangeEffect = ko;
|
|
11485
|
+
s2.perLineTextDirection = Do;
|
|
11486
|
+
s2.exceptionSink = So;
|
|
11487
|
+
s2.updateListener = H4;
|
|
11488
|
+
s2.editable = qe;
|
|
11489
|
+
s2.mouseSelectionStyle = yo;
|
|
11490
|
+
s2.dragMovesSelection = _o;
|
|
11491
|
+
s2.clickAddsSelectionRange = xo;
|
|
11492
|
+
s2.decorations = b6;
|
|
11493
|
+
s2.blockWrappers = Vo;
|
|
11494
|
+
s2.outerDecorations = Dn;
|
|
11495
|
+
s2.atomicRanges = q1;
|
|
11496
|
+
s2.bidiIsolatedRanges = Po;
|
|
11497
|
+
s2.cursorScrollMargin = /* @__PURE__ */ o2.define({
|
|
11498
11498
|
combine: (i) => {
|
|
11499
11499
|
let e = 5, t = 5;
|
|
11500
11500
|
for (let n of i)
|
|
@@ -11502,13 +11502,13 @@ i2.cursorScrollMargin = /* @__PURE__ */ l2.define({
|
|
|
11502
11502
|
return { x: e, y: t };
|
|
11503
11503
|
}
|
|
11504
11504
|
});
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11505
|
+
s2.scrollMargins = Ao;
|
|
11506
|
+
s2.darkTheme = W4;
|
|
11507
|
+
s2.cspNonce = /* @__PURE__ */ o2.define({ combine: (i) => i.length ? i[0] : "" });
|
|
11508
|
+
s2.contentAttributes = kn;
|
|
11509
|
+
s2.editorAttributes = zo;
|
|
11510
|
+
s2.lineWrapping = /* @__PURE__ */ s2.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
11511
|
+
s2.announce = /* @__PURE__ */ T2.define();
|
|
11512
11512
|
const Cw = 4096, cs = {};
|
|
11513
11513
|
class I3 {
|
|
11514
11514
|
constructor(e, t, n, s, l, o) {
|
|
@@ -11532,7 +11532,7 @@ function hs(i, e, t) {
|
|
|
11532
11532
|
}
|
|
11533
11533
|
return t;
|
|
11534
11534
|
}
|
|
11535
|
-
const kw =
|
|
11535
|
+
const kw = l2.mac ? "mac" : l2.windows ? "win" : l2.linux ? "linux" : "key";
|
|
11536
11536
|
function Dw(i, e) {
|
|
11537
11537
|
const t = i.split(/-(?!$)/);
|
|
11538
11538
|
let n = t[t.length - 1];
|
|
@@ -11558,11 +11558,11 @@ function Dw(i, e) {
|
|
|
11558
11558
|
function h3(i, e, t) {
|
|
11559
11559
|
return e.altKey && (i = "Alt-" + i), e.ctrlKey && (i = "Ctrl-" + i), e.metaKey && (i = "Meta-" + i), t !== !1 && e.shiftKey && (i = "Shift-" + i), i;
|
|
11560
11560
|
}
|
|
11561
|
-
const Ow = /* @__PURE__ */ Et.default(/* @__PURE__ */
|
|
11561
|
+
const Ow = /* @__PURE__ */ Et.default(/* @__PURE__ */ s2.domEventHandlers({
|
|
11562
11562
|
keydown(i, e) {
|
|
11563
11563
|
return Zo(Jo(e.state), i, e, "editor");
|
|
11564
11564
|
}
|
|
11565
|
-
})), Vn = /* @__PURE__ */
|
|
11565
|
+
})), Vn = /* @__PURE__ */ o2.define({ enables: Ow }), ds = /* @__PURE__ */ new WeakMap();
|
|
11566
11566
|
function Jo(i) {
|
|
11567
11567
|
let e = i.facet(Vn), t = ds.get(e);
|
|
11568
11568
|
return t || ds.set(e, t = zw(e.reduce((n, s) => n.concat(s), []))), t;
|
|
@@ -11636,8 +11636,8 @@ function Zo(i, e, t, n) {
|
|
|
11636
11636
|
return !1;
|
|
11637
11637
|
}, p = i[n], f, g;
|
|
11638
11638
|
return p && (u(p[r + h3(s, e, !o)]) ? a = !0 : o && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
11639
|
-
!(
|
|
11640
|
-
!(
|
|
11639
|
+
!(l2.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
11640
|
+
!(l2.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (f = ht[e.keyCode]) && f != s ? (u(p[r + h3(f, e, !0)]) || e.shiftKey && (g = V1[e.keyCode]) != s && g != f && u(p[r + h3(g, e, !1)])) && (a = !0) : o && e.shiftKey && u(p[r + h3(s, e, !0)]) && (a = !0), !a && u(p._any) && (a = !0)), c && (a = !0), a && h && e.stopPropagation(), I4 = null, a;
|
|
11641
11641
|
}
|
|
11642
11642
|
class Mt {
|
|
11643
11643
|
/**
|
|
@@ -11692,12 +11692,12 @@ function us(i, e, t, n) {
|
|
|
11692
11692
|
function Vw(i, e, t) {
|
|
11693
11693
|
if (t.to <= i.viewport.from || t.from >= i.viewport.to)
|
|
11694
11694
|
return [];
|
|
11695
|
-
let n = Math.max(t.from, i.viewport.from), s = Math.min(t.to, i.viewport.to), l = i.textDirection == Q2.LTR, o = i.contentDOM, r = o.getBoundingClientRect(), a = e8(i), c = o.querySelector(".cm-line"), h = c && window.getComputedStyle(c), d = r.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), u = r.right - (h ? parseInt(h.paddingRight) : 0), p = N4(i, n, 1), f = N4(i, s, -1), g = p.type ==
|
|
11695
|
+
let n = Math.max(t.from, i.viewport.from), s = Math.min(t.to, i.viewport.to), l = i.textDirection == Q2.LTR, o = i.contentDOM, r = o.getBoundingClientRect(), a = e8(i), c = o.querySelector(".cm-line"), h = c && window.getComputedStyle(c), d = r.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), u = r.right - (h ? parseInt(h.paddingRight) : 0), p = N4(i, n, 1), f = N4(i, s, -1), g = p.type == z0.Text ? p : null, v = f.type == z0.Text ? f : null;
|
|
11696
11696
|
if (g && (i.lineWrapping || p.widgetLineBreaks) && (g = us(i, n, 1, g)), v && (i.lineWrapping || f.widgetLineBreaks) && (v = us(i, s, -1, v)), g && v && g.from == v.from && g.to == v.to)
|
|
11697
11697
|
return b(D(t.from, t.to, g));
|
|
11698
11698
|
{
|
|
11699
11699
|
let T = g ? D(t.from, null, g) : M(p, !1), x = v ? D(null, t.to, v) : M(f, !0), k = [];
|
|
11700
|
-
return (g || p).to < (v || f).from - (g && v ? 1 : 0) || p.widgetLineBreaks > 1 && T.bottom + i.defaultLineHeight / 2 < x.top ? k.push(m(d, T.bottom, u, x.top)) : T.bottom < x.top && i.elementAtHeight((T.bottom + x.top) / 2).type ==
|
|
11700
|
+
return (g || p).to < (v || f).from - (g && v ? 1 : 0) || p.widgetLineBreaks > 1 && T.bottom + i.defaultLineHeight / 2 < x.top ? k.push(m(d, T.bottom, u, x.top)) : T.bottom < x.top && i.elementAtHeight((T.bottom + x.top) / 2).type == z0.Text && (T.bottom = x.top = (T.bottom + x.top) / 2), b(T).concat(k).concat(b(x));
|
|
11701
11701
|
}
|
|
11702
11702
|
function m(T, x, k, A) {
|
|
11703
11703
|
return new Mt(e, T - a.left, x - a.top, Math.max(0, k - T), A - x);
|
|
@@ -11710,14 +11710,14 @@ function Vw(i, e, t) {
|
|
|
11710
11710
|
}
|
|
11711
11711
|
function D(T, x, k) {
|
|
11712
11712
|
let A = 1e9, C = -1e9, N = [];
|
|
11713
|
-
function B(
|
|
11714
|
-
let w2 = i.coordsAtPos(
|
|
11713
|
+
function B(r2, h2, K, C2, M2) {
|
|
11714
|
+
let w2 = i.coordsAtPos(r2, r2 == k.to ? -2 : 2), E2 = i.coordsAtPos(K, K == k.from ? 2 : -2);
|
|
11715
11715
|
!w2 || !E2 || (A = Math.min(w2.top, E2.top, A), C = Math.max(w2.bottom, E2.bottom, C), M2 == Q2.LTR ? N.push(l && h2 ? d : w2.left, l && C2 ? u : E2.right) : N.push(!l && C2 ? d : E2.left, !l && h2 ? u : w2.right));
|
|
11716
11716
|
}
|
|
11717
11717
|
let j = T ?? k.from, I = x ?? k.to;
|
|
11718
|
-
for (let
|
|
11719
|
-
if (
|
|
11720
|
-
for (let h2 = Math.max(
|
|
11718
|
+
for (let r2 of i.visibleRanges)
|
|
11719
|
+
if (r2.to > j && r2.from < I)
|
|
11720
|
+
for (let h2 = Math.max(r2.from, j), K = Math.min(r2.to, I); ; ) {
|
|
11721
11721
|
let C2 = i.state.doc.lineAt(h2);
|
|
11722
11722
|
for (let M2 of i.bidiSpans(C2)) {
|
|
11723
11723
|
let w2 = M2.from + C2.from, E2 = M2.to + C2.from;
|
|
@@ -11770,21 +11770,21 @@ class Aw {
|
|
|
11770
11770
|
let s = t.nextSibling;
|
|
11771
11771
|
t.remove(), t = s;
|
|
11772
11772
|
}
|
|
11773
|
-
this.drawn = e,
|
|
11773
|
+
this.drawn = e, l2.webkit && (this.dom.style.display = this.dom.firstChild ? "" : "none");
|
|
11774
11774
|
}
|
|
11775
11775
|
}
|
|
11776
11776
|
destroy() {
|
|
11777
11777
|
this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
|
|
11778
11778
|
}
|
|
11779
11779
|
}
|
|
11780
|
-
const T3 = /* @__PURE__ */
|
|
11780
|
+
const T3 = /* @__PURE__ */ o2.define();
|
|
11781
11781
|
function t8(i) {
|
|
11782
11782
|
return [
|
|
11783
11783
|
v0.define((e) => new Aw(e, i)),
|
|
11784
11784
|
T3.of(i)
|
|
11785
11785
|
];
|
|
11786
11786
|
}
|
|
11787
|
-
const s1 = /* @__PURE__ */
|
|
11787
|
+
const s1 = /* @__PURE__ */ o2.define({
|
|
11788
11788
|
combine(i) {
|
|
11789
11789
|
return $e(i, {
|
|
11790
11790
|
cursorBlinkRate: 1200,
|
|
@@ -11814,7 +11814,7 @@ const Lw = /* @__PURE__ */ t8({
|
|
|
11814
11814
|
let { state: e } = i, t = e.facet(s1), n = [];
|
|
11815
11815
|
for (let s of e.selection.ranges) {
|
|
11816
11816
|
let l = s == e.selection.main;
|
|
11817
|
-
if (s.empty || t.drawRangeCursor && !(l &&
|
|
11817
|
+
if (s.empty || t.drawRangeCursor && !(l && l2.ios && t.iosSelectionHandles)) {
|
|
11818
11818
|
let o = l ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", r = s.empty ? s : E.cursor(s.head, s.assoc);
|
|
11819
11819
|
for (let a of Mt.forRange(i, o, r))
|
|
11820
11820
|
n.push(a);
|
|
@@ -11843,7 +11843,7 @@ const Ew = /* @__PURE__ */ t8({
|
|
|
11843
11843
|
if (!s.empty)
|
|
11844
11844
|
for (let l of Mt.forRange(i, "cm-selectionBackground", s))
|
|
11845
11845
|
e.push(l);
|
|
11846
|
-
if (
|
|
11846
|
+
if (l2.ios && !t.empty && i.state.facet(s1).iosSelectionHandles) {
|
|
11847
11847
|
for (let s of Mt.forRange(i, "cm-selectionHandle cm-selectionHandle-start", E.cursor(t.from, 1)))
|
|
11848
11848
|
e.push(s);
|
|
11849
11849
|
for (let s of Mt.forRange(i, "cm-selectionHandle cm-selectionHandle-end", E.cursor(t.to, 1)))
|
|
@@ -11855,7 +11855,7 @@ const Ew = /* @__PURE__ */ t8({
|
|
|
11855
11855
|
return i.docChanged || i.selectionSet || i.viewportChanged || n8(i);
|
|
11856
11856
|
},
|
|
11857
11857
|
class: "cm-selectionLayer"
|
|
11858
|
-
}), Hw = /* @__PURE__ */ Et.highest(/* @__PURE__ */
|
|
11858
|
+
}), Hw = /* @__PURE__ */ Et.highest(/* @__PURE__ */ s2.theme({
|
|
11859
11859
|
".cm-line": {
|
|
11860
11860
|
"& ::selection, &::selection": { backgroundColor: "transparent !important" },
|
|
11861
11861
|
caretColor: "transparent !important"
|
|
@@ -11873,7 +11873,7 @@ const Ew = /* @__PURE__ */ t8({
|
|
|
11873
11873
|
map(i, e) {
|
|
11874
11874
|
return i == null ? null : e.mapPos(i);
|
|
11875
11875
|
}
|
|
11876
|
-
}), b1 = /* @__PURE__ */
|
|
11876
|
+
}), b1 = /* @__PURE__ */ V0.define({
|
|
11877
11877
|
create() {
|
|
11878
11878
|
return null;
|
|
11879
11879
|
},
|
|
@@ -12052,7 +12052,7 @@ function Uw() {
|
|
|
12052
12052
|
}
|
|
12053
12053
|
return U6 || !1;
|
|
12054
12054
|
}
|
|
12055
|
-
const M3 = /* @__PURE__ */
|
|
12055
|
+
const M3 = /* @__PURE__ */ o2.define({
|
|
12056
12056
|
combine(i) {
|
|
12057
12057
|
let e = $e(i, {
|
|
12058
12058
|
render: null,
|
|
@@ -12203,7 +12203,7 @@ function nb(i, e) {
|
|
|
12203
12203
|
}
|
|
12204
12204
|
function ib(i) {
|
|
12205
12205
|
let e = (t) => t.altKey && t.button == 0;
|
|
12206
|
-
return
|
|
12206
|
+
return s2.mouseSelectionStyle.of((t, n) => e(n) ? nb(t, n) : null);
|
|
12207
12207
|
}
|
|
12208
12208
|
const sb = {
|
|
12209
12209
|
Alt: [18, (i) => !!i.altKey],
|
|
@@ -12234,7 +12234,7 @@ function ob(i = {}) {
|
|
|
12234
12234
|
});
|
|
12235
12235
|
return [
|
|
12236
12236
|
n,
|
|
12237
|
-
|
|
12237
|
+
s2.contentAttributes.of((s) => {
|
|
12238
12238
|
var l;
|
|
12239
12239
|
return !((l = s.plugin(n)) === null || l === void 0) && l.isDown ? lb : null;
|
|
12240
12240
|
})
|
|
@@ -12280,11 +12280,11 @@ function rb(i) {
|
|
|
12280
12280
|
let e = i.dom.ownerDocument.documentElement;
|
|
12281
12281
|
return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
|
|
12282
12282
|
}
|
|
12283
|
-
const I6 = /* @__PURE__ */
|
|
12283
|
+
const I6 = /* @__PURE__ */ o2.define({
|
|
12284
12284
|
combine: (i) => {
|
|
12285
12285
|
var e, t, n;
|
|
12286
12286
|
return {
|
|
12287
|
-
position:
|
|
12287
|
+
position: l2.ios ? "absolute" : ((e = i.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
|
|
12288
12288
|
parent: ((t = i.find((s) => s.parent)) === null || t === void 0 ? void 0 : t.parent) || null,
|
|
12289
12289
|
tooltipSpace: ((n = i.find((s) => s.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || rb
|
|
12290
12290
|
};
|
|
@@ -12352,7 +12352,7 @@ const I6 = /* @__PURE__ */ l2.define({
|
|
|
12352
12352
|
let i = 1, e = 1, t = !1;
|
|
12353
12353
|
if (this.position == "fixed" && this.manager.tooltipViews.length) {
|
|
12354
12354
|
let { dom: l } = this.manager.tooltipViews[0];
|
|
12355
|
-
if (
|
|
12355
|
+
if (l2.safari) {
|
|
12356
12356
|
let o = l.getBoundingClientRect();
|
|
12357
12357
|
t = Math.abs(o.top + 1e4) > 1 || Math.abs(o.left) > 1;
|
|
12358
12358
|
} else
|
|
@@ -12435,7 +12435,7 @@ function ws(i, e) {
|
|
|
12435
12435
|
let t = parseInt(i.style.left, 10);
|
|
12436
12436
|
(isNaN(t) || Math.abs(e - t) > 1) && (i.style.left = e + "px");
|
|
12437
12437
|
}
|
|
12438
|
-
const ab = /* @__PURE__ */
|
|
12438
|
+
const ab = /* @__PURE__ */ s2.baseTheme({
|
|
12439
12439
|
".cm-tooltip": {
|
|
12440
12440
|
zIndex: 500,
|
|
12441
12441
|
boxSizing: "border-box"
|
|
@@ -12496,9 +12496,9 @@ const ab = /* @__PURE__ */ i2.baseTheme({
|
|
|
12496
12496
|
borderBottomColor: "transparent"
|
|
12497
12497
|
}
|
|
12498
12498
|
}
|
|
12499
|
-
}), cb = { x: 0, y: 0 }, An = /* @__PURE__ */
|
|
12499
|
+
}), cb = { x: 0, y: 0 }, An = /* @__PURE__ */ o2.define({
|
|
12500
12500
|
enables: [Pn, ab]
|
|
12501
|
-
}), q3 = /* @__PURE__ */
|
|
12501
|
+
}), q3 = /* @__PURE__ */ o2.define({
|
|
12502
12502
|
combine: (i) => i.reduce((e, t) => e.concat(t), [])
|
|
12503
12503
|
});
|
|
12504
12504
|
class S6 {
|
|
@@ -12568,7 +12568,7 @@ const hb = /* @__PURE__ */ An.compute([q3], (i) => {
|
|
|
12568
12568
|
above: e[0].above,
|
|
12569
12569
|
arrow: e.some((t) => t.arrow)
|
|
12570
12570
|
};
|
|
12571
|
-
}), l8 = /* @__PURE__ */
|
|
12571
|
+
}), l8 = /* @__PURE__ */ o2.define();
|
|
12572
12572
|
class db {
|
|
12573
12573
|
constructor(e, t, n, s, l, o) {
|
|
12574
12574
|
this.view = e, this.source = t, this.field = n, this.locked = s, this.setHover = l, this.hoverTime = o, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this));
|
|
@@ -12669,7 +12669,7 @@ function fb(i, e, t, n, s, l) {
|
|
|
12669
12669
|
return a >= e && a <= t;
|
|
12670
12670
|
}
|
|
12671
12671
|
function pb(i, e = {}) {
|
|
12672
|
-
let t = T2.define(), n = /* @__PURE__ */ new WeakMap(), s =
|
|
12672
|
+
let t = T2.define(), n = /* @__PURE__ */ new WeakMap(), s = V0.define({
|
|
12673
12673
|
create() {
|
|
12674
12674
|
return [];
|
|
12675
12675
|
},
|
|
@@ -12728,7 +12728,7 @@ function o8(i, e) {
|
|
|
12728
12728
|
let n = t.manager.tooltips.indexOf(e);
|
|
12729
12729
|
return n < 0 ? null : t.manager.tooltipViews[n];
|
|
12730
12730
|
}
|
|
12731
|
-
const vb = /* @__PURE__ */ T2.define(), bs = /* @__PURE__ */
|
|
12731
|
+
const vb = /* @__PURE__ */ T2.define(), bs = /* @__PURE__ */ o2.define({
|
|
12732
12732
|
combine(i) {
|
|
12733
12733
|
let e, t;
|
|
12734
12734
|
for (let n of i)
|
|
@@ -12769,7 +12769,7 @@ const r8 = /* @__PURE__ */ v0.fromClass(class {
|
|
|
12769
12769
|
this.top.sync([]), this.bottom.sync([]);
|
|
12770
12770
|
}
|
|
12771
12771
|
}, {
|
|
12772
|
-
provide: (i) =>
|
|
12772
|
+
provide: (i) => s2.scrollMargins.of((e) => {
|
|
12773
12773
|
let t = e.plugin(i);
|
|
12774
12774
|
return t && { top: t.top.scrollMargin(), bottom: t.bottom.scrollMargin() };
|
|
12775
12775
|
})
|
|
@@ -12820,7 +12820,7 @@ function xs(i) {
|
|
|
12820
12820
|
let e = i.nextSibling;
|
|
12821
12821
|
return i.remove(), e;
|
|
12822
12822
|
}
|
|
12823
|
-
const L1 = /* @__PURE__ */
|
|
12823
|
+
const L1 = /* @__PURE__ */ o2.define({
|
|
12824
12824
|
enables: r8
|
|
12825
12825
|
});
|
|
12826
12826
|
function mb(i, e) {
|
|
@@ -12831,7 +12831,7 @@ function mb(i, e) {
|
|
|
12831
12831
|
i.state.field(q6).indexOf(s) > -1 && i.dispatch({ effects: l });
|
|
12832
12832
|
}), o)) };
|
|
12833
12833
|
}
|
|
12834
|
-
const q6 = /* @__PURE__ */
|
|
12834
|
+
const q6 = /* @__PURE__ */ V0.define({
|
|
12835
12835
|
create() {
|
|
12836
12836
|
return [];
|
|
12837
12837
|
},
|
|
@@ -12907,7 +12907,7 @@ Qe.prototype.toDOM = void 0;
|
|
|
12907
12907
|
Qe.prototype.mapMode = $0.TrackBefore;
|
|
12908
12908
|
Qe.prototype.startSide = Qe.prototype.endSide = -1;
|
|
12909
12909
|
Qe.prototype.point = !0;
|
|
12910
|
-
const z3 = /* @__PURE__ */
|
|
12910
|
+
const z3 = /* @__PURE__ */ o2.define(), bb = /* @__PURE__ */ o2.define(), xb = {
|
|
12911
12911
|
class: "",
|
|
12912
12912
|
renderEmptyElements: !1,
|
|
12913
12913
|
elementStyle: "",
|
|
@@ -12919,11 +12919,11 @@ const z3 = /* @__PURE__ */ l2.define(), bb = /* @__PURE__ */ l2.define(), xb = {
|
|
|
12919
12919
|
updateSpacer: null,
|
|
12920
12920
|
domEventHandlers: {},
|
|
12921
12921
|
side: "before"
|
|
12922
|
-
}, D1 = /* @__PURE__ */
|
|
12922
|
+
}, D1 = /* @__PURE__ */ o2.define();
|
|
12923
12923
|
function _b(i) {
|
|
12924
12924
|
return [h8(), D1.of({ ...xb, ...i })];
|
|
12925
12925
|
}
|
|
12926
|
-
const _s = /* @__PURE__ */
|
|
12926
|
+
const _s = /* @__PURE__ */ o2.define({
|
|
12927
12927
|
combine: (i) => i.some((e) => e)
|
|
12928
12928
|
});
|
|
12929
12929
|
function h8(i) {
|
|
@@ -12960,7 +12960,7 @@ const yb = /* @__PURE__ */ v0.fromClass(class {
|
|
|
12960
12960
|
if (n.length && (n = []), Array.isArray(l.type)) {
|
|
12961
12961
|
let o = !0;
|
|
12962
12962
|
for (let r of l.type)
|
|
12963
|
-
if (r.type ==
|
|
12963
|
+
if (r.type == z0.Text && o) {
|
|
12964
12964
|
F4(t, n, r.from);
|
|
12965
12965
|
for (let a of s)
|
|
12966
12966
|
a.line(this.view, r, n);
|
|
@@ -12968,7 +12968,7 @@ const yb = /* @__PURE__ */ v0.fromClass(class {
|
|
|
12968
12968
|
} else if (r.widget)
|
|
12969
12969
|
for (let a of s)
|
|
12970
12970
|
a.widget(this.view, r);
|
|
12971
|
-
} else if (l.type ==
|
|
12971
|
+
} else if (l.type == z0.Text) {
|
|
12972
12972
|
F4(t, n, l.from);
|
|
12973
12973
|
for (let o of s)
|
|
12974
12974
|
o.line(this.view, l, n);
|
|
@@ -13005,7 +13005,7 @@ const yb = /* @__PURE__ */ v0.fromClass(class {
|
|
|
13005
13005
|
this.dom.remove(), this.domAfter && this.domAfter.remove();
|
|
13006
13006
|
}
|
|
13007
13007
|
}, {
|
|
13008
|
-
provide: (i) =>
|
|
13008
|
+
provide: (i) => s2.scrollMargins.of((e) => {
|
|
13009
13009
|
let t = e.plugin(i);
|
|
13010
13010
|
if (!t || t.gutters.length == 0 || !t.fixed)
|
|
13011
13011
|
return null;
|
|
@@ -13136,7 +13136,7 @@ function Cb(i, e) {
|
|
|
13136
13136
|
return !1;
|
|
13137
13137
|
return !0;
|
|
13138
13138
|
}
|
|
13139
|
-
const kb = /* @__PURE__ */
|
|
13139
|
+
const kb = /* @__PURE__ */ o2.define(), Db = /* @__PURE__ */ o2.define(), $t = /* @__PURE__ */ o2.define({
|
|
13140
13140
|
combine(i) {
|
|
13141
13141
|
return $e(i, { formatNumber: String, domEventHandlers: {} }, {
|
|
13142
13142
|
domEventHandlers(e, t) {
|
|
@@ -14299,20 +14299,20 @@ function Hb(i) {
|
|
|
14299
14299
|
var e;
|
|
14300
14300
|
let { buffer: t, nodeSet: n, maxBufferLength: s = u8, reused: l = [], minRepeatType: o = n.types.length } = i, r = Array.isArray(t) ? new En(t, t.length) : t, a = n.types, c = 0, h = 0;
|
|
14301
14301
|
function d(T, x, k, A, C, N) {
|
|
14302
|
-
let { id: B, start: j, end: I, size:
|
|
14303
|
-
for (;
|
|
14304
|
-
if (r.next(),
|
|
14302
|
+
let { id: B, start: j, end: I, size: r2 } = r, h2 = h, K = c;
|
|
14303
|
+
for (; r2 < 0; )
|
|
14304
|
+
if (r.next(), r2 == -1) {
|
|
14305
14305
|
let l0 = l[B];
|
|
14306
14306
|
k.push(l0), A.push(j - T);
|
|
14307
14307
|
return;
|
|
14308
|
-
} else if (
|
|
14308
|
+
} else if (r2 == -3) {
|
|
14309
14309
|
c = B;
|
|
14310
14310
|
return;
|
|
14311
|
-
} else if (
|
|
14311
|
+
} else if (r2 == -4) {
|
|
14312
14312
|
h = B;
|
|
14313
14313
|
return;
|
|
14314
14314
|
} else
|
|
14315
|
-
throw new RangeError(`Unrecognized record size: ${
|
|
14315
|
+
throw new RangeError(`Unrecognized record size: ${r2}`);
|
|
14316
14316
|
let C2 = a[B], M2, w2, E2 = j - T;
|
|
14317
14317
|
if (I - j <= s && (w2 = v(r.pos - x, C))) {
|
|
14318
14318
|
let l0 = new Uint16Array(w2.size - w2.skip), Z2 = r.pos - w2.size, h0 = l0.length;
|
|
@@ -14320,7 +14320,7 @@ function Hb(i) {
|
|
|
14320
14320
|
h0 = m(w2.start, l0, h0);
|
|
14321
14321
|
M2 = new ut(l0, I - w2.start, n), E2 = w2.start - T;
|
|
14322
14322
|
} else {
|
|
14323
|
-
let l0 = r.pos -
|
|
14323
|
+
let l0 = r.pos - r2;
|
|
14324
14324
|
r.next();
|
|
14325
14325
|
let Z2 = [], h0 = [], j0 = B >= o ? B : -1, oe = 0, $ = I;
|
|
14326
14326
|
for (; r.pos > l0; )
|
|
@@ -14336,19 +14336,19 @@ function Hb(i) {
|
|
|
14336
14336
|
function u(T, x, k, A) {
|
|
14337
14337
|
let C = [], N = 0, B = -1;
|
|
14338
14338
|
for (; r.pos > x; ) {
|
|
14339
|
-
let { id: j, start: I, end:
|
|
14339
|
+
let { id: j, start: I, end: r2, size: h2 } = r;
|
|
14340
14340
|
if (h2 > 4)
|
|
14341
14341
|
r.next();
|
|
14342
14342
|
else {
|
|
14343
14343
|
if (B > -1 && I < B)
|
|
14344
14344
|
break;
|
|
14345
|
-
B < 0 && (B =
|
|
14345
|
+
B < 0 && (B = r2 - s), C.push(j, I, r2), N++, r.next();
|
|
14346
14346
|
}
|
|
14347
14347
|
}
|
|
14348
14348
|
if (N) {
|
|
14349
14349
|
let j = new Uint16Array(N * 4), I = C[C.length - 2];
|
|
14350
|
-
for (let
|
|
14351
|
-
j[h2++] = C[
|
|
14350
|
+
for (let r2 = C.length - 3, h2 = 0; r2 >= 0; r2 -= 3)
|
|
14351
|
+
j[h2++] = C[r2], j[h2++] = C[r2 + 1] - I, j[h2++] = C[r2 + 2] - I, j[h2++] = h2;
|
|
14352
14352
|
k.push(new ut(j, C[2] - I, n)), A.push(I - T);
|
|
14353
14353
|
}
|
|
14354
14354
|
}
|
|
@@ -14364,10 +14364,10 @@ function Hb(i) {
|
|
|
14364
14364
|
};
|
|
14365
14365
|
}
|
|
14366
14366
|
function f(T, x, k, A, C, N, B, j, I) {
|
|
14367
|
-
let
|
|
14367
|
+
let r2 = [], h2 = [];
|
|
14368
14368
|
for (; T.length > A; )
|
|
14369
|
-
|
|
14370
|
-
T.push(g(n.types[B],
|
|
14369
|
+
r2.push(T.pop()), h2.push(x.pop() + k - C);
|
|
14370
|
+
T.push(g(n.types[B], r2, h2, N - C, j - N, I)), x.push(C - k);
|
|
14371
14371
|
}
|
|
14372
14372
|
function g(T, x, k, A, C, N, B) {
|
|
14373
14373
|
if (N) {
|
|
@@ -14383,13 +14383,13 @@ function Hb(i) {
|
|
|
14383
14383
|
function v(T, x) {
|
|
14384
14384
|
let k = r.fork(), A = 0, C = 0, N = 0, B = k.end - s, j = { size: 0, start: 0, skip: 0 };
|
|
14385
14385
|
e: for (let I = k.pos - T; k.pos > I; ) {
|
|
14386
|
-
let
|
|
14387
|
-
if (k.id == x &&
|
|
14386
|
+
let r2 = k.size;
|
|
14387
|
+
if (k.id == x && r2 >= 0) {
|
|
14388
14388
|
j.size = A, j.start = C, j.skip = N, N += 4, A += 4, k.next();
|
|
14389
14389
|
continue;
|
|
14390
14390
|
}
|
|
14391
|
-
let h2 = k.pos -
|
|
14392
|
-
if (
|
|
14391
|
+
let h2 = k.pos - r2;
|
|
14392
|
+
if (r2 < 0 || h2 < I || k.start < B)
|
|
14393
14393
|
break;
|
|
14394
14394
|
let K = k.id >= o ? 4 : 0, C2 = k.start;
|
|
14395
14395
|
for (k.next(); k.pos > h2; ) {
|
|
@@ -14401,7 +14401,7 @@ function Hb(i) {
|
|
|
14401
14401
|
else k.id >= o && (K += 4);
|
|
14402
14402
|
k.next();
|
|
14403
14403
|
}
|
|
14404
|
-
C = C2, A +=
|
|
14404
|
+
C = C2, A += r2, N += K;
|
|
14405
14405
|
}
|
|
14406
14406
|
return (x < 0 || A == T) && (j.size = A, j.start = C, j.skip = N), j.size > 4 ? j : void 0;
|
|
14407
14407
|
}
|
|
@@ -14803,7 +14803,7 @@ function qb(i) {
|
|
|
14803
14803
|
e = e.next;
|
|
14804
14804
|
return e || null;
|
|
14805
14805
|
}
|
|
14806
|
-
const
|
|
14806
|
+
const t2 = ae.define, g3 = t2(), et = t2(), Ts = t2(et), Ms = t2(et), tt = t2(), v3 = t2(tt), X6 = t2(tt), Pe = t2(), xt = t2(Pe), ze = t2(), Ve = t2(), Q4 = t2(), p1 = t2(Q4), m3 = t2(), F = {
|
|
14807
14807
|
/**
|
|
14808
14808
|
A comment.
|
|
14809
14809
|
*/
|
|
@@ -14811,15 +14811,15 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14811
14811
|
/**
|
|
14812
14812
|
A line [comment](#highlight.tags.comment).
|
|
14813
14813
|
*/
|
|
14814
|
-
lineComment:
|
|
14814
|
+
lineComment: t2(g3),
|
|
14815
14815
|
/**
|
|
14816
14816
|
A block [comment](#highlight.tags.comment).
|
|
14817
14817
|
*/
|
|
14818
|
-
blockComment:
|
|
14818
|
+
blockComment: t2(g3),
|
|
14819
14819
|
/**
|
|
14820
14820
|
A documentation [comment](#highlight.tags.comment).
|
|
14821
14821
|
*/
|
|
14822
|
-
docComment:
|
|
14822
|
+
docComment: t2(g3),
|
|
14823
14823
|
/**
|
|
14824
14824
|
Any kind of identifier.
|
|
14825
14825
|
*/
|
|
@@ -14827,7 +14827,7 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14827
14827
|
/**
|
|
14828
14828
|
The [name](#highlight.tags.name) of a variable.
|
|
14829
14829
|
*/
|
|
14830
|
-
variableName:
|
|
14830
|
+
variableName: t2(et),
|
|
14831
14831
|
/**
|
|
14832
14832
|
A type [name](#highlight.tags.name).
|
|
14833
14833
|
*/
|
|
@@ -14835,7 +14835,7 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14835
14835
|
/**
|
|
14836
14836
|
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
14837
14837
|
*/
|
|
14838
|
-
tagName:
|
|
14838
|
+
tagName: t2(Ts),
|
|
14839
14839
|
/**
|
|
14840
14840
|
A property or field [name](#highlight.tags.name).
|
|
14841
14841
|
*/
|
|
@@ -14843,23 +14843,23 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14843
14843
|
/**
|
|
14844
14844
|
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
14845
14845
|
*/
|
|
14846
|
-
attributeName:
|
|
14846
|
+
attributeName: t2(Ms),
|
|
14847
14847
|
/**
|
|
14848
14848
|
The [name](#highlight.tags.name) of a class.
|
|
14849
14849
|
*/
|
|
14850
|
-
className:
|
|
14850
|
+
className: t2(et),
|
|
14851
14851
|
/**
|
|
14852
14852
|
A label [name](#highlight.tags.name).
|
|
14853
14853
|
*/
|
|
14854
|
-
labelName:
|
|
14854
|
+
labelName: t2(et),
|
|
14855
14855
|
/**
|
|
14856
14856
|
A namespace [name](#highlight.tags.name).
|
|
14857
14857
|
*/
|
|
14858
|
-
namespace:
|
|
14858
|
+
namespace: t2(et),
|
|
14859
14859
|
/**
|
|
14860
14860
|
The [name](#highlight.tags.name) of a macro.
|
|
14861
14861
|
*/
|
|
14862
|
-
macroName:
|
|
14862
|
+
macroName: t2(et),
|
|
14863
14863
|
/**
|
|
14864
14864
|
A literal value.
|
|
14865
14865
|
*/
|
|
@@ -14871,15 +14871,15 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14871
14871
|
/**
|
|
14872
14872
|
A documentation [string](#highlight.tags.string).
|
|
14873
14873
|
*/
|
|
14874
|
-
docString:
|
|
14874
|
+
docString: t2(v3),
|
|
14875
14875
|
/**
|
|
14876
14876
|
A character literal (subtag of [string](#highlight.tags.string)).
|
|
14877
14877
|
*/
|
|
14878
|
-
character:
|
|
14878
|
+
character: t2(v3),
|
|
14879
14879
|
/**
|
|
14880
14880
|
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
14881
14881
|
*/
|
|
14882
|
-
attributeValue:
|
|
14882
|
+
attributeValue: t2(v3),
|
|
14883
14883
|
/**
|
|
14884
14884
|
A number [literal](#highlight.tags.literal).
|
|
14885
14885
|
*/
|
|
@@ -14887,32 +14887,32 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14887
14887
|
/**
|
|
14888
14888
|
An integer [number](#highlight.tags.number) literal.
|
|
14889
14889
|
*/
|
|
14890
|
-
integer:
|
|
14890
|
+
integer: t2(X6),
|
|
14891
14891
|
/**
|
|
14892
14892
|
A floating-point [number](#highlight.tags.number) literal.
|
|
14893
14893
|
*/
|
|
14894
|
-
float:
|
|
14894
|
+
float: t2(X6),
|
|
14895
14895
|
/**
|
|
14896
14896
|
A boolean [literal](#highlight.tags.literal).
|
|
14897
14897
|
*/
|
|
14898
|
-
bool:
|
|
14898
|
+
bool: t2(tt),
|
|
14899
14899
|
/**
|
|
14900
14900
|
Regular expression [literal](#highlight.tags.literal).
|
|
14901
14901
|
*/
|
|
14902
|
-
regexp:
|
|
14902
|
+
regexp: t2(tt),
|
|
14903
14903
|
/**
|
|
14904
14904
|
An escape [literal](#highlight.tags.literal), for example a
|
|
14905
14905
|
backslash escape in a string.
|
|
14906
14906
|
*/
|
|
14907
|
-
escape:
|
|
14907
|
+
escape: t2(tt),
|
|
14908
14908
|
/**
|
|
14909
14909
|
A color [literal](#highlight.tags.literal).
|
|
14910
14910
|
*/
|
|
14911
|
-
color:
|
|
14911
|
+
color: t2(tt),
|
|
14912
14912
|
/**
|
|
14913
14913
|
A URL [literal](#highlight.tags.literal).
|
|
14914
14914
|
*/
|
|
14915
|
-
url:
|
|
14915
|
+
url: t2(tt),
|
|
14916
14916
|
/**
|
|
14917
14917
|
A language keyword.
|
|
14918
14918
|
*/
|
|
@@ -14921,40 +14921,40 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14921
14921
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
14922
14922
|
object.
|
|
14923
14923
|
*/
|
|
14924
|
-
self:
|
|
14924
|
+
self: t2(ze),
|
|
14925
14925
|
/**
|
|
14926
14926
|
The [keyword](#highlight.tags.keyword) for null.
|
|
14927
14927
|
*/
|
|
14928
|
-
null:
|
|
14928
|
+
null: t2(ze),
|
|
14929
14929
|
/**
|
|
14930
14930
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
14931
14931
|
*/
|
|
14932
|
-
atom:
|
|
14932
|
+
atom: t2(ze),
|
|
14933
14933
|
/**
|
|
14934
14934
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
14935
14935
|
*/
|
|
14936
|
-
unit:
|
|
14936
|
+
unit: t2(ze),
|
|
14937
14937
|
/**
|
|
14938
14938
|
A modifier [keyword](#highlight.tags.keyword).
|
|
14939
14939
|
*/
|
|
14940
|
-
modifier:
|
|
14940
|
+
modifier: t2(ze),
|
|
14941
14941
|
/**
|
|
14942
14942
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
14943
14943
|
*/
|
|
14944
|
-
operatorKeyword:
|
|
14944
|
+
operatorKeyword: t2(ze),
|
|
14945
14945
|
/**
|
|
14946
14946
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
14947
14947
|
*/
|
|
14948
|
-
controlKeyword:
|
|
14948
|
+
controlKeyword: t2(ze),
|
|
14949
14949
|
/**
|
|
14950
14950
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
14951
14951
|
*/
|
|
14952
|
-
definitionKeyword:
|
|
14952
|
+
definitionKeyword: t2(ze),
|
|
14953
14953
|
/**
|
|
14954
14954
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
14955
14955
|
interfacing with modules.
|
|
14956
14956
|
*/
|
|
14957
|
-
moduleKeyword:
|
|
14957
|
+
moduleKeyword: t2(ze),
|
|
14958
14958
|
/**
|
|
14959
14959
|
An operator.
|
|
14960
14960
|
*/
|
|
@@ -14962,39 +14962,39 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
14962
14962
|
/**
|
|
14963
14963
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
14964
14964
|
*/
|
|
14965
|
-
derefOperator:
|
|
14965
|
+
derefOperator: t2(Ve),
|
|
14966
14966
|
/**
|
|
14967
14967
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
14968
14968
|
*/
|
|
14969
|
-
arithmeticOperator:
|
|
14969
|
+
arithmeticOperator: t2(Ve),
|
|
14970
14970
|
/**
|
|
14971
14971
|
Logical [operator](#highlight.tags.operator).
|
|
14972
14972
|
*/
|
|
14973
|
-
logicOperator:
|
|
14973
|
+
logicOperator: t2(Ve),
|
|
14974
14974
|
/**
|
|
14975
14975
|
Bit [operator](#highlight.tags.operator).
|
|
14976
14976
|
*/
|
|
14977
|
-
bitwiseOperator:
|
|
14977
|
+
bitwiseOperator: t2(Ve),
|
|
14978
14978
|
/**
|
|
14979
14979
|
Comparison [operator](#highlight.tags.operator).
|
|
14980
14980
|
*/
|
|
14981
|
-
compareOperator:
|
|
14981
|
+
compareOperator: t2(Ve),
|
|
14982
14982
|
/**
|
|
14983
14983
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
14984
14984
|
*/
|
|
14985
|
-
updateOperator:
|
|
14985
|
+
updateOperator: t2(Ve),
|
|
14986
14986
|
/**
|
|
14987
14987
|
[Operator](#highlight.tags.operator) that defines something.
|
|
14988
14988
|
*/
|
|
14989
|
-
definitionOperator:
|
|
14989
|
+
definitionOperator: t2(Ve),
|
|
14990
14990
|
/**
|
|
14991
14991
|
Type-related [operator](#highlight.tags.operator).
|
|
14992
14992
|
*/
|
|
14993
|
-
typeOperator:
|
|
14993
|
+
typeOperator: t2(Ve),
|
|
14994
14994
|
/**
|
|
14995
14995
|
Control-flow [operator](#highlight.tags.operator).
|
|
14996
14996
|
*/
|
|
14997
|
-
controlOperator:
|
|
14997
|
+
controlOperator: t2(Ve),
|
|
14998
14998
|
/**
|
|
14999
14999
|
Program or markup punctuation.
|
|
15000
15000
|
*/
|
|
@@ -15003,7 +15003,7 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
15003
15003
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
15004
15004
|
things.
|
|
15005
15005
|
*/
|
|
15006
|
-
separator:
|
|
15006
|
+
separator: t2(Q4),
|
|
15007
15007
|
/**
|
|
15008
15008
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
15009
15009
|
*/
|
|
@@ -15012,22 +15012,22 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
15012
15012
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
15013
15013
|
tokens).
|
|
15014
15014
|
*/
|
|
15015
|
-
angleBracket:
|
|
15015
|
+
angleBracket: t2(p1),
|
|
15016
15016
|
/**
|
|
15017
15017
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
15018
15018
|
tokens).
|
|
15019
15019
|
*/
|
|
15020
|
-
squareBracket:
|
|
15020
|
+
squareBracket: t2(p1),
|
|
15021
15021
|
/**
|
|
15022
15022
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
15023
15023
|
[bracket](#highlight.tags.bracket).
|
|
15024
15024
|
*/
|
|
15025
|
-
paren:
|
|
15025
|
+
paren: t2(p1),
|
|
15026
15026
|
/**
|
|
15027
15027
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
15028
15028
|
[bracket](#highlight.tags.bracket).
|
|
15029
15029
|
*/
|
|
15030
|
-
brace:
|
|
15030
|
+
brace: t2(p1),
|
|
15031
15031
|
/**
|
|
15032
15032
|
Content, for example plain text in XML or markup documents.
|
|
15033
15033
|
*/
|
|
@@ -15039,77 +15039,77 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
15039
15039
|
/**
|
|
15040
15040
|
A level 1 [heading](#highlight.tags.heading).
|
|
15041
15041
|
*/
|
|
15042
|
-
heading1:
|
|
15042
|
+
heading1: t2(xt),
|
|
15043
15043
|
/**
|
|
15044
15044
|
A level 2 [heading](#highlight.tags.heading).
|
|
15045
15045
|
*/
|
|
15046
|
-
heading2:
|
|
15046
|
+
heading2: t2(xt),
|
|
15047
15047
|
/**
|
|
15048
15048
|
A level 3 [heading](#highlight.tags.heading).
|
|
15049
15049
|
*/
|
|
15050
|
-
heading3:
|
|
15050
|
+
heading3: t2(xt),
|
|
15051
15051
|
/**
|
|
15052
15052
|
A level 4 [heading](#highlight.tags.heading).
|
|
15053
15053
|
*/
|
|
15054
|
-
heading4:
|
|
15054
|
+
heading4: t2(xt),
|
|
15055
15055
|
/**
|
|
15056
15056
|
A level 5 [heading](#highlight.tags.heading).
|
|
15057
15057
|
*/
|
|
15058
|
-
heading5:
|
|
15058
|
+
heading5: t2(xt),
|
|
15059
15059
|
/**
|
|
15060
15060
|
A level 6 [heading](#highlight.tags.heading).
|
|
15061
15061
|
*/
|
|
15062
|
-
heading6:
|
|
15062
|
+
heading6: t2(xt),
|
|
15063
15063
|
/**
|
|
15064
15064
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
15065
15065
|
*/
|
|
15066
|
-
contentSeparator:
|
|
15066
|
+
contentSeparator: t2(Pe),
|
|
15067
15067
|
/**
|
|
15068
15068
|
[Content](#highlight.tags.content) that represents a list.
|
|
15069
15069
|
*/
|
|
15070
|
-
list:
|
|
15070
|
+
list: t2(Pe),
|
|
15071
15071
|
/**
|
|
15072
15072
|
[Content](#highlight.tags.content) that represents a quote.
|
|
15073
15073
|
*/
|
|
15074
|
-
quote:
|
|
15074
|
+
quote: t2(Pe),
|
|
15075
15075
|
/**
|
|
15076
15076
|
[Content](#highlight.tags.content) that is emphasized.
|
|
15077
15077
|
*/
|
|
15078
|
-
emphasis:
|
|
15078
|
+
emphasis: t2(Pe),
|
|
15079
15079
|
/**
|
|
15080
15080
|
[Content](#highlight.tags.content) that is styled strong.
|
|
15081
15081
|
*/
|
|
15082
|
-
strong:
|
|
15082
|
+
strong: t2(Pe),
|
|
15083
15083
|
/**
|
|
15084
15084
|
[Content](#highlight.tags.content) that is part of a link.
|
|
15085
15085
|
*/
|
|
15086
|
-
link:
|
|
15086
|
+
link: t2(Pe),
|
|
15087
15087
|
/**
|
|
15088
15088
|
[Content](#highlight.tags.content) that is styled as code or
|
|
15089
15089
|
monospace.
|
|
15090
15090
|
*/
|
|
15091
|
-
monospace:
|
|
15091
|
+
monospace: t2(Pe),
|
|
15092
15092
|
/**
|
|
15093
15093
|
[Content](#highlight.tags.content) that has a strike-through
|
|
15094
15094
|
style.
|
|
15095
15095
|
*/
|
|
15096
|
-
strikethrough:
|
|
15096
|
+
strikethrough: t2(Pe),
|
|
15097
15097
|
/**
|
|
15098
15098
|
Inserted text in a change-tracking format.
|
|
15099
15099
|
*/
|
|
15100
|
-
inserted:
|
|
15100
|
+
inserted: t2(),
|
|
15101
15101
|
/**
|
|
15102
15102
|
Deleted text.
|
|
15103
15103
|
*/
|
|
15104
|
-
deleted:
|
|
15104
|
+
deleted: t2(),
|
|
15105
15105
|
/**
|
|
15106
15106
|
Changed text.
|
|
15107
15107
|
*/
|
|
15108
|
-
changed:
|
|
15108
|
+
changed: t2(),
|
|
15109
15109
|
/**
|
|
15110
15110
|
An invalid or unsyntactic element.
|
|
15111
15111
|
*/
|
|
15112
|
-
invalid:
|
|
15112
|
+
invalid: t2(),
|
|
15113
15113
|
/**
|
|
15114
15114
|
Metadata or meta-instruction.
|
|
15115
15115
|
*/
|
|
@@ -15118,17 +15118,17 @@ const e2 = ae.define, g3 = e2(), et = e2(), Ts = e2(et), Ms = e2(et), tt = e2(),
|
|
|
15118
15118
|
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
15119
15119
|
document.
|
|
15120
15120
|
*/
|
|
15121
|
-
documentMeta:
|
|
15121
|
+
documentMeta: t2(m3),
|
|
15122
15122
|
/**
|
|
15123
15123
|
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
15124
15124
|
attributes to a given syntactic element.
|
|
15125
15125
|
*/
|
|
15126
|
-
annotation:
|
|
15126
|
+
annotation: t2(m3),
|
|
15127
15127
|
/**
|
|
15128
15128
|
Processing instruction or preprocessor directive. Subtag of
|
|
15129
15129
|
[meta](#highlight.tags.meta).
|
|
15130
15130
|
*/
|
|
15131
|
-
processingInstruction:
|
|
15131
|
+
processingInstruction: t2(m3),
|
|
15132
15132
|
/**
|
|
15133
15133
|
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
15134
15134
|
given element is being defined. Expected to be used with the
|
|
@@ -15208,7 +15208,7 @@ b8([
|
|
|
15208
15208
|
var Q6;
|
|
15209
15209
|
const Wt = /* @__PURE__ */ new P2();
|
|
15210
15210
|
function Yb(i) {
|
|
15211
|
-
return
|
|
15211
|
+
return o2.define({
|
|
15212
15212
|
combine: i ? (e) => e.concat(i) : void 0
|
|
15213
15213
|
});
|
|
15214
15214
|
}
|
|
@@ -15525,7 +15525,7 @@ class l1 {
|
|
|
15525
15525
|
return n.work(20, t) || n.takeTree(), new l1(n);
|
|
15526
15526
|
}
|
|
15527
15527
|
}
|
|
15528
|
-
we.state = /* @__PURE__ */
|
|
15528
|
+
we.state = /* @__PURE__ */ V0.define({
|
|
15529
15529
|
create: l1.init,
|
|
15530
15530
|
update(i, e) {
|
|
15531
15531
|
for (let t of e.effects)
|
|
@@ -15596,14 +15596,14 @@ const J6 = typeof navigator < "u" && (!((Q6 = navigator.scheduling) === null ||
|
|
|
15596
15596
|
eventHandlers: { focus() {
|
|
15597
15597
|
this.scheduleWork();
|
|
15598
15598
|
} }
|
|
15599
|
-
}), ft = /* @__PURE__ */
|
|
15599
|
+
}), ft = /* @__PURE__ */ o2.define({
|
|
15600
15600
|
combine(i) {
|
|
15601
15601
|
return i.length ? i[0] : null;
|
|
15602
15602
|
},
|
|
15603
15603
|
enables: (i) => [
|
|
15604
15604
|
we.state,
|
|
15605
15605
|
Xb,
|
|
15606
|
-
|
|
15606
|
+
s2.contentAttributes.compute([i], (e) => {
|
|
15607
15607
|
let t = e.facet(i);
|
|
15608
15608
|
return t && t.name ? { "data-language": t.name } : {};
|
|
15609
15609
|
})
|
|
@@ -15617,7 +15617,7 @@ class Qb {
|
|
|
15617
15617
|
this.language = e, this.support = t, this.extension = [e, t];
|
|
15618
15618
|
}
|
|
15619
15619
|
}
|
|
15620
|
-
const Jb = /* @__PURE__ */
|
|
15620
|
+
const Jb = /* @__PURE__ */ o2.define(), Nn = /* @__PURE__ */ o2.define({
|
|
15621
15621
|
combine: (i) => {
|
|
15622
15622
|
if (!i.length)
|
|
15623
15623
|
return " ";
|
|
@@ -15868,7 +15868,7 @@ function rx() {
|
|
|
15868
15868
|
return a.length ? [i, { changes: a, sequential: !0 }] : i;
|
|
15869
15869
|
});
|
|
15870
15870
|
}
|
|
15871
|
-
const ax = /* @__PURE__ */
|
|
15871
|
+
const ax = /* @__PURE__ */ o2.define(), S8 = /* @__PURE__ */ new P2();
|
|
15872
15872
|
function cx(i, e, t) {
|
|
15873
15873
|
let n = k0(i);
|
|
15874
15874
|
if (n.length < t)
|
|
@@ -15911,7 +15911,7 @@ function k8(i) {
|
|
|
15911
15911
|
e.some((n) => n.from <= t && n.to >= t) || e.push(i.lineBlockAt(t));
|
|
15912
15912
|
return e;
|
|
15913
15913
|
}
|
|
15914
|
-
const Lt = /* @__PURE__ */
|
|
15914
|
+
const Lt = /* @__PURE__ */ V0.define({
|
|
15915
15915
|
create() {
|
|
15916
15916
|
return b2.none;
|
|
15917
15917
|
},
|
|
@@ -15928,7 +15928,7 @@ const Lt = /* @__PURE__ */ P0.define({
|
|
|
15928
15928
|
}));
|
|
15929
15929
|
return e.selection && (i = Ps(i, e.selection.main.head)), i;
|
|
15930
15930
|
},
|
|
15931
|
-
provide: (i) =>
|
|
15931
|
+
provide: (i) => s2.decorations.from(i),
|
|
15932
15932
|
toJSON(i, e) {
|
|
15933
15933
|
let t = [];
|
|
15934
15934
|
return i.between(0, e.doc.length, (n, s) => {
|
|
@@ -15993,7 +15993,7 @@ const ux = (i) => {
|
|
|
15993
15993
|
};
|
|
15994
15994
|
function O8(i, e, t = !0) {
|
|
15995
15995
|
let n = i.state.doc.lineAt(e.from).number, s = i.state.doc.lineAt(e.to).number;
|
|
15996
|
-
return
|
|
15996
|
+
return s2.announce.of(`${i.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${n} ${i.state.phrase("to")} ${s}.`);
|
|
15997
15997
|
}
|
|
15998
15998
|
const px = (i) => {
|
|
15999
15999
|
let { state: e } = i, t = [];
|
|
@@ -16019,7 +16019,7 @@ const px = (i) => {
|
|
|
16019
16019
|
placeholderDOM: null,
|
|
16020
16020
|
preparePlaceholder: null,
|
|
16021
16021
|
placeholderText: "…"
|
|
16022
|
-
}, T8 = /* @__PURE__ */
|
|
16022
|
+
}, T8 = /* @__PURE__ */ o2.define({
|
|
16023
16023
|
combine(i) {
|
|
16024
16024
|
return $e(i, mx);
|
|
16025
16025
|
}
|
|
@@ -16118,7 +16118,7 @@ function xx(i = {}) {
|
|
|
16118
16118
|
M8()
|
|
16119
16119
|
];
|
|
16120
16120
|
}
|
|
16121
|
-
const _x = /* @__PURE__ */
|
|
16121
|
+
const _x = /* @__PURE__ */ s2.baseTheme({
|
|
16122
16122
|
".cm-foldPlaceholder": {
|
|
16123
16123
|
backgroundColor: "#eee",
|
|
16124
16124
|
border: "1px solid #ddd",
|
|
@@ -16168,7 +16168,7 @@ class D6 {
|
|
|
16168
16168
|
return new D6(e, t || {});
|
|
16169
16169
|
}
|
|
16170
16170
|
}
|
|
16171
|
-
const J4 = /* @__PURE__ */
|
|
16171
|
+
const J4 = /* @__PURE__ */ o2.define(), V8 = /* @__PURE__ */ o2.define({
|
|
16172
16172
|
combine(i) {
|
|
16173
16173
|
return i.length ? [i[0]] : null;
|
|
16174
16174
|
}
|
|
@@ -16179,7 +16179,7 @@ function e4(i) {
|
|
|
16179
16179
|
}
|
|
16180
16180
|
function yx(i, e) {
|
|
16181
16181
|
let t = [Cx], n;
|
|
16182
|
-
return i instanceof D6 && (i.module && t.push(
|
|
16182
|
+
return i instanceof D6 && (i.module && t.push(s2.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(V8.of(i)) : n ? t.push(J4.computeN([s2.darkTheme], (s) => s.facet(s2.darkTheme) == (n == "dark") ? [i] : [])) : t.push(J4.of(i)), t;
|
|
16183
16183
|
}
|
|
16184
16184
|
class Sx {
|
|
16185
16185
|
constructor(e) {
|
|
@@ -16280,10 +16280,10 @@ const Cx = /* @__PURE__ */ Et.high(/* @__PURE__ */ v0.fromClass(Sx, {
|
|
|
16280
16280
|
tag: F.invalid,
|
|
16281
16281
|
color: "#f00"
|
|
16282
16282
|
}
|
|
16283
|
-
]), Dx = /* @__PURE__ */
|
|
16283
|
+
]), Dx = /* @__PURE__ */ s2.baseTheme({
|
|
16284
16284
|
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
16285
16285
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
16286
|
-
}), P8 = 1e4, A8 = "()[]{}", B8 = /* @__PURE__ */
|
|
16286
|
+
}), P8 = 1e4, A8 = "()[]{}", B8 = /* @__PURE__ */ o2.define({
|
|
16287
16287
|
combine(i) {
|
|
16288
16288
|
return $e(i, {
|
|
16289
16289
|
afterCursor: !0,
|
|
@@ -16297,7 +16297,7 @@ function Mx(i) {
|
|
|
16297
16297
|
let e = [], t = i.matched ? Ox : Tx;
|
|
16298
16298
|
return e.push(t.range(i.start.from, i.start.to)), i.end && e.push(t.range(i.end.from, i.end.to)), e;
|
|
16299
16299
|
}
|
|
16300
|
-
const zx = /* @__PURE__ */
|
|
16300
|
+
const zx = /* @__PURE__ */ V0.define({
|
|
16301
16301
|
create() {
|
|
16302
16302
|
return b2.none;
|
|
16303
16303
|
},
|
|
@@ -16313,7 +16313,7 @@ const zx = /* @__PURE__ */ P0.define({
|
|
|
16313
16313
|
}
|
|
16314
16314
|
return b2.set(t, !0);
|
|
16315
16315
|
},
|
|
16316
|
-
provide: (i) =>
|
|
16316
|
+
provide: (i) => s2.decorations.from(i)
|
|
16317
16317
|
}), Vx = [
|
|
16318
16318
|
zx,
|
|
16319
16319
|
Dx
|
|
@@ -16557,7 +16557,7 @@ function Ux(i, e, t = e.selection.ranges) {
|
|
|
16557
16557
|
}
|
|
16558
16558
|
return null;
|
|
16559
16559
|
}
|
|
16560
|
-
const tn = /* @__PURE__ */ Je.define(), Ix = /* @__PURE__ */ Je.define(), qx = /* @__PURE__ */
|
|
16560
|
+
const tn = /* @__PURE__ */ Je.define(), Ix = /* @__PURE__ */ Je.define(), qx = /* @__PURE__ */ o2.define(), H8 = /* @__PURE__ */ o2.define({
|
|
16561
16561
|
combine(i) {
|
|
16562
16562
|
return $e(i, {
|
|
16563
16563
|
minDepth: 100,
|
|
@@ -16569,7 +16569,7 @@ const tn = /* @__PURE__ */ Je.define(), Ix = /* @__PURE__ */ Je.define(), qx = /
|
|
|
16569
16569
|
joinToEvent: (e, t) => (n, s) => e(n, s) || t(n, s)
|
|
16570
16570
|
});
|
|
16571
16571
|
}
|
|
16572
|
-
}), G8 = /* @__PURE__ */
|
|
16572
|
+
}), G8 = /* @__PURE__ */ V0.define({
|
|
16573
16573
|
create() {
|
|
16574
16574
|
return Ge.empty;
|
|
16575
16575
|
},
|
|
@@ -16580,9 +16580,9 @@ const tn = /* @__PURE__ */ Je.define(), Ix = /* @__PURE__ */ Je.define(), qx = /
|
|
|
16580
16580
|
return a ? h = t6(h, h.length, t.minDepth, a) : h = $8(h, e.startState.selection), new Ge(c == 0 ? n.rest : h, c == 0 ? h : n.rest);
|
|
16581
16581
|
}
|
|
16582
16582
|
let s = e.annotation(Ix);
|
|
16583
|
-
if ((s == "full" || s == "before") && (i = i.isolate()), e.annotation(
|
|
16583
|
+
if ((s == "full" || s == "before") && (i = i.isolate()), e.annotation(x0.addToHistory) === !1)
|
|
16584
16584
|
return e.changes.empty ? i : i.addMapping(e.changes.desc);
|
|
16585
|
-
let l = Q0.fromTransaction(e), o = e.annotation(
|
|
16585
|
+
let l = Q0.fromTransaction(e), o = e.annotation(x0.time), r = e.annotation(x0.userEvent);
|
|
16586
16586
|
return l ? i = i.addChanges(l, o, r, t, e) : e.selection && (i = i.addSelection(e.startState.selection, o, r, t.newGroupDelay)), (s == "full" || s == "after") && (i = i.isolate()), i;
|
|
16587
16587
|
},
|
|
16588
16588
|
toJSON(i) {
|
|
@@ -16596,7 +16596,7 @@ function Yx(i = {}) {
|
|
|
16596
16596
|
return [
|
|
16597
16597
|
G8,
|
|
16598
16598
|
H8.of(i),
|
|
16599
|
-
|
|
16599
|
+
s2.domEventHandlers({
|
|
16600
16600
|
beforeinput(e, t) {
|
|
16601
16601
|
let n = e.inputType == "historyUndo" ? N8 : e.inputType == "historyRedo" ? nn : null;
|
|
16602
16602
|
return n ? (e.preventDefault(), n(t)) : !1;
|
|
@@ -16633,7 +16633,7 @@ class Q0 {
|
|
|
16633
16633
|
};
|
|
16634
16634
|
}
|
|
16635
16635
|
static fromJSON(e) {
|
|
16636
|
-
return new Q0(e.changes &&
|
|
16636
|
+
return new Q0(e.changes && w0.fromJSON(e.changes), [], e.mapped && Ne.fromJSON(e.mapped), e.startSelection && E.fromJSON(e.startSelection), e.selectionsAfter.map(E.fromJSON));
|
|
16637
16637
|
}
|
|
16638
16638
|
// This does not check `addToHistory` and such, it assumes the
|
|
16639
16639
|
// transaction needs to be converted to an item. Returns null when
|
|
@@ -16811,7 +16811,7 @@ const Y8 = (i) => q8(i, !1), F8 = (i) => q8(i, !0);
|
|
|
16811
16811
|
function K8(i) {
|
|
16812
16812
|
let e = i.scrollDOM.clientHeight < i.scrollDOM.scrollHeight - 2, t = 0, n = 0, s;
|
|
16813
16813
|
if (e) {
|
|
16814
|
-
for (let l of i.state.facet(
|
|
16814
|
+
for (let l of i.state.facet(s2.scrollMargins)) {
|
|
16815
16815
|
let o = l(i);
|
|
16816
16816
|
o != null && o.top && (t = Math.max(o == null ? void 0 : o.top, t)), o != null && o.bottom && (n = Math.max(o == null ? void 0 : o.bottom, n));
|
|
16817
16817
|
}
|
|
@@ -16832,7 +16832,7 @@ function X8(i, e) {
|
|
|
16832
16832
|
let l;
|
|
16833
16833
|
if (t.selfScroll) {
|
|
16834
16834
|
let o = i.coordsAtPos(n.selection.main.head), r = i.scrollDOM.getBoundingClientRect(), a = r.top + t.marginTop, c = r.bottom - t.marginBottom;
|
|
16835
|
-
o && o.top > a && o.bottom < c && (l =
|
|
16835
|
+
o && o.top > a && o.bottom < c && (l = s2.scrollIntoView(s.main.head, { y: "start", yMargin: o.top - a }));
|
|
16836
16836
|
}
|
|
16837
16837
|
return i.dispatch(_e(n, s), { effects: l }), !0;
|
|
16838
16838
|
}
|
|
@@ -16950,12 +16950,12 @@ function F1(i, e) {
|
|
|
16950
16950
|
return s.changes.empty ? !1 : (i.dispatch(n.update(s, {
|
|
16951
16951
|
scrollIntoView: !0,
|
|
16952
16952
|
userEvent: t,
|
|
16953
|
-
effects: t == "delete.selection" ?
|
|
16953
|
+
effects: t == "delete.selection" ? s2.announce.of(n.phrase("Selection deleted")) : void 0
|
|
16954
16954
|
})), !0);
|
|
16955
16955
|
}
|
|
16956
16956
|
function w3(i, e, t) {
|
|
16957
|
-
if (i instanceof
|
|
16958
|
-
for (let n of i.state.facet(
|
|
16957
|
+
if (i instanceof s2)
|
|
16958
|
+
for (let n of i.state.facet(s2.atomicRanges).map((s) => s(i)))
|
|
16959
16959
|
n.between(e, e, (s, l) => {
|
|
16960
16960
|
s < e && l > e && (e = t ? l : s);
|
|
16961
16961
|
});
|
|
@@ -17406,7 +17406,7 @@ const Z_ = (i) => {
|
|
|
17406
17406
|
} else c && a && (p = p * (a == "-" ? -1 : 1) + r.number);
|
|
17407
17407
|
let f = e.doc.line(Math.max(1, Math.min(e.doc.lines, p))), g = E.cursor(f.from + Math.max(0, Math.min(u, f.length)));
|
|
17408
17408
|
i.dispatch({
|
|
17409
|
-
effects: [n,
|
|
17409
|
+
effects: [n, s2.scrollIntoView(g.from, { y: "center" })],
|
|
17410
17410
|
selection: g
|
|
17411
17411
|
});
|
|
17412
17412
|
}), !0;
|
|
@@ -17415,7 +17415,7 @@ const Z_ = (i) => {
|
|
|
17415
17415
|
minSelectionLength: 1,
|
|
17416
17416
|
maxMatches: 100,
|
|
17417
17417
|
wholeWords: !1
|
|
17418
|
-
}, ty = /* @__PURE__ */
|
|
17418
|
+
}, ty = /* @__PURE__ */ o2.define({
|
|
17419
17419
|
combine(i) {
|
|
17420
17420
|
return $e(i, ey, {
|
|
17421
17421
|
highlightWordAroundCursor: (e, t) => e || t,
|
|
@@ -17476,7 +17476,7 @@ const oy = /* @__PURE__ */ v0.fromClass(class {
|
|
|
17476
17476
|
}
|
|
17477
17477
|
}, {
|
|
17478
17478
|
decorations: (i) => i.decorations
|
|
17479
|
-
}), ry = /* @__PURE__ */
|
|
17479
|
+
}), ry = /* @__PURE__ */ s2.baseTheme({
|
|
17480
17480
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
17481
17481
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
17482
17482
|
}), ay = ({ state: i, dispatch: e }) => {
|
|
@@ -17511,9 +17511,9 @@ const hy = ({ state: i, dispatch: e }) => {
|
|
|
17511
17511
|
let s = cy(i, n);
|
|
17512
17512
|
return s ? (e(i.update({
|
|
17513
17513
|
selection: i.selection.addRange(E.range(s.from, s.to), !1),
|
|
17514
|
-
effects:
|
|
17514
|
+
effects: s2.scrollIntoView(s.to)
|
|
17515
17515
|
})), !0) : !1;
|
|
17516
|
-
}, h1 = /* @__PURE__ */
|
|
17516
|
+
}, h1 = /* @__PURE__ */ o2.define({
|
|
17517
17517
|
combine(i) {
|
|
17518
17518
|
return $e(i, {
|
|
17519
17519
|
top: !1,
|
|
@@ -17522,7 +17522,7 @@ const hy = ({ state: i, dispatch: e }) => {
|
|
|
17522
17522
|
regexp: !1,
|
|
17523
17523
|
wholeWord: !1,
|
|
17524
17524
|
createPanel: (e) => new Cy(e),
|
|
17525
|
-
scrollToMatch: (e) =>
|
|
17525
|
+
scrollToMatch: (e) => s2.scrollIntoView(e)
|
|
17526
17526
|
});
|
|
17527
17527
|
}
|
|
17528
17528
|
});
|
|
@@ -17701,7 +17701,7 @@ class vy extends mr {
|
|
|
17701
17701
|
s(l.value.from, l.value.to);
|
|
17702
17702
|
}
|
|
17703
17703
|
}
|
|
17704
|
-
const G1 = /* @__PURE__ */ T2.define(), qn = /* @__PURE__ */ T2.define(), ot = /* @__PURE__ */
|
|
17704
|
+
const G1 = /* @__PURE__ */ T2.define(), qn = /* @__PURE__ */ T2.define(), ot = /* @__PURE__ */ V0.define({
|
|
17705
17705
|
create(i) {
|
|
17706
17706
|
return new s4(on(i).create(), null);
|
|
17707
17707
|
},
|
|
@@ -17797,7 +17797,7 @@ const l6 = /* @__PURE__ */ K1((i, { query: e }) => {
|
|
|
17797
17797
|
if (!l)
|
|
17798
17798
|
return !1;
|
|
17799
17799
|
let o = l, r = [], a, c, h = [];
|
|
17800
|
-
o.precise ? o.from == n && o.to == s && (c = t.toText(e.getReplacement(o)), r.push({ from: o.from, to: o.to, insert: c }), o = e.nextMatch(t, o.from, o.to), h.push(
|
|
17800
|
+
o.precise ? o.from == n && o.to == s && (c = t.toText(e.getReplacement(o)), r.push({ from: o.from, to: o.to, insert: c }), o = e.nextMatch(t, o.from, o.to), h.push(s2.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(n).number) + "."))) : o = e.nextMatch(t, o.from, o.to);
|
|
17801
17801
|
let d = i.state.changes(r);
|
|
17802
17802
|
return o && (a = E.single(o.from, o.to).map(d), h.push(Fn(i, o)), h.push(t.facet(h1).scrollToMatch(a.main, i))), i.dispatch({
|
|
17803
17803
|
changes: d,
|
|
@@ -17818,7 +17818,7 @@ const l6 = /* @__PURE__ */ K1((i, { query: e }) => {
|
|
|
17818
17818
|
let n = i.state.phrase("replaced $ matches", t.length) + ".";
|
|
17819
17819
|
return i.dispatch({
|
|
17820
17820
|
changes: t,
|
|
17821
|
-
effects:
|
|
17821
|
+
effects: s2.announce.of(n),
|
|
17822
17822
|
userEvent: "input.replace.all"
|
|
17823
17823
|
}), !0;
|
|
17824
17824
|
});
|
|
@@ -17994,9 +17994,9 @@ function Fn(i, { from: e, to: t }) {
|
|
|
17994
17994
|
break;
|
|
17995
17995
|
}
|
|
17996
17996
|
}
|
|
17997
|
-
return
|
|
17997
|
+
return s2.announce.of(`${i.state.phrase("current match")}. ${r} ${i.state.phrase("on line")} ${n.number}.`);
|
|
17998
17998
|
}
|
|
17999
|
-
const ky = /* @__PURE__ */
|
|
17999
|
+
const ky = /* @__PURE__ */ s2.baseTheme({
|
|
18000
18000
|
".cm-panel.cm-search": {
|
|
18001
18001
|
padding: "2px 6px 4px",
|
|
18002
18002
|
position: "relative",
|
|
@@ -18217,7 +18217,7 @@ class Py {
|
|
|
18217
18217
|
return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
|
|
18218
18218
|
}
|
|
18219
18219
|
}
|
|
18220
|
-
const S0 = /* @__PURE__ */
|
|
18220
|
+
const S0 = /* @__PURE__ */ o2.define({
|
|
18221
18221
|
combine(i) {
|
|
18222
18222
|
return $e(i, {
|
|
18223
18223
|
activateOnTyping: !0,
|
|
@@ -18692,7 +18692,7 @@ const Kn = /* @__PURE__ */ T2.define({
|
|
|
18692
18692
|
map(i, e) {
|
|
18693
18693
|
return i.map((t) => t.map(e));
|
|
18694
18694
|
}
|
|
18695
|
-
}), Dr = /* @__PURE__ */ T2.define(), Y0 = /* @__PURE__ */
|
|
18695
|
+
}), Dr = /* @__PURE__ */ T2.define(), Y0 = /* @__PURE__ */ V0.define({
|
|
18696
18696
|
create() {
|
|
18697
18697
|
return a6.start();
|
|
18698
18698
|
},
|
|
@@ -18701,7 +18701,7 @@ const Kn = /* @__PURE__ */ T2.define({
|
|
|
18701
18701
|
},
|
|
18702
18702
|
provide: (i) => [
|
|
18703
18703
|
An.from(i, (e) => e.tooltip),
|
|
18704
|
-
|
|
18704
|
+
s2.contentAttributes.from(i, (e) => e.attrs)
|
|
18705
18705
|
]
|
|
18706
18706
|
});
|
|
18707
18707
|
function Xn(i, e) {
|
|
@@ -18838,7 +18838,7 @@ const Fy = 50, Ky = 1e3, Xy = /* @__PURE__ */ v0.fromClass(class {
|
|
|
18838
18838
|
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: r6.of(!1) }), 20), this.composing = 0;
|
|
18839
18839
|
}
|
|
18840
18840
|
}
|
|
18841
|
-
}), Qy = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), Jy = /* @__PURE__ */ Et.highest(/* @__PURE__ */
|
|
18841
|
+
}), Qy = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), Jy = /* @__PURE__ */ Et.highest(/* @__PURE__ */ s2.domEventHandlers({
|
|
18842
18842
|
keydown(i, e) {
|
|
18843
18843
|
let t = e.state.field(Y0, !1);
|
|
18844
18844
|
if (!t || !t.open || t.open.disabled || t.open.selected < 0 || i.key.length > 1 || i.ctrlKey && !(Qy && i.altKey) || i.metaKey)
|
|
@@ -18846,7 +18846,7 @@ const Fy = 50, Ky = 1e3, Xy = /* @__PURE__ */ v0.fromClass(class {
|
|
|
18846
18846
|
let n = t.open.options[t.open.selected], s = t.active.find((o) => o.source == n.source), l = n.completion.commitCharacters || s.result.commitCharacters;
|
|
18847
18847
|
return l && l.indexOf(i.key) > -1 && Xn(e, n), !1;
|
|
18848
18848
|
}
|
|
18849
|
-
})), Zy = /* @__PURE__ */
|
|
18849
|
+
})), Zy = /* @__PURE__ */ s2.baseTheme({
|
|
18850
18850
|
".cm-tooltip.cm-tooltip-autocomplete": {
|
|
18851
18851
|
"& > ul": {
|
|
18852
18852
|
fontFamily: "monospace",
|
|
@@ -18982,7 +18982,7 @@ const Fy = 50, Ky = 1e3, Xy = /* @__PURE__ */ v0.fromClass(class {
|
|
|
18982
18982
|
}();
|
|
18983
18983
|
Qn.startSide = 1;
|
|
18984
18984
|
Qn.endSide = -1;
|
|
18985
|
-
const Or = /* @__PURE__ */
|
|
18985
|
+
const Or = /* @__PURE__ */ V0.define({
|
|
18986
18986
|
create() {
|
|
18987
18987
|
return A2.empty;
|
|
18988
18988
|
},
|
|
@@ -19009,7 +19009,7 @@ function Tr(i) {
|
|
|
19009
19009
|
function Mr(i, e) {
|
|
19010
19010
|
return i.languageDataAt("closeBrackets", e)[0] || R1;
|
|
19011
19011
|
}
|
|
19012
|
-
const tS = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), nS = /* @__PURE__ */
|
|
19012
|
+
const tS = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), nS = /* @__PURE__ */ s2.inputHandler.of((i, e, t, n) => {
|
|
19013
19013
|
if ((tS ? i.composing : i.compositionStarted) || i.state.readOnly)
|
|
19014
19014
|
return !1;
|
|
19015
19015
|
let s = i.state.selection.main;
|
|
@@ -19285,7 +19285,7 @@ function fS(i, e) {
|
|
|
19285
19285
|
function pS(i, e) {
|
|
19286
19286
|
return i.field(le, !1) ? e : e.concat(T2.appendConfig.of(DS));
|
|
19287
19287
|
}
|
|
19288
|
-
const Pr = /* @__PURE__ */ T2.define(), Jn = /* @__PURE__ */ T2.define(), Ar = /* @__PURE__ */ T2.define(), le = /* @__PURE__ */
|
|
19288
|
+
const Pr = /* @__PURE__ */ T2.define(), Jn = /* @__PURE__ */ T2.define(), Ar = /* @__PURE__ */ T2.define(), le = /* @__PURE__ */ V0.define({
|
|
19289
19289
|
create() {
|
|
19290
19290
|
return new St(b2.none, null, null);
|
|
19291
19291
|
},
|
|
@@ -19307,7 +19307,7 @@ const Pr = /* @__PURE__ */ T2.define(), Jn = /* @__PURE__ */ T2.define(), Ar = /
|
|
|
19307
19307
|
},
|
|
19308
19308
|
provide: (i) => [
|
|
19309
19309
|
L1.from(i, (e) => e.panel),
|
|
19310
|
-
|
|
19310
|
+
s2.decorations.from(i, (e) => e.diagnostics)
|
|
19311
19311
|
]
|
|
19312
19312
|
}), gS = /* @__PURE__ */ b2.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
19313
19313
|
function vS(i, e, t) {
|
|
@@ -19349,7 +19349,7 @@ const wS = (i) => {
|
|
|
19349
19349
|
}, xS = [
|
|
19350
19350
|
{ key: "Mod-Shift-m", run: wS, preventDefault: !0 },
|
|
19351
19351
|
{ key: "F8", run: bS }
|
|
19352
|
-
], $1 = /* @__PURE__ */
|
|
19352
|
+
], $1 = /* @__PURE__ */ o2.define({
|
|
19353
19353
|
combine(i) {
|
|
19354
19354
|
return {
|
|
19355
19355
|
sources: i.map((e) => e.source).filter((e) => e != null),
|
|
@@ -19549,7 +19549,7 @@ function yS(i, e = 'viewBox="0 0 40 40"') {
|
|
|
19549
19549
|
function y3(i) {
|
|
19550
19550
|
return yS(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
|
|
19551
19551
|
}
|
|
19552
|
-
const SS = /* @__PURE__ */
|
|
19552
|
+
const SS = /* @__PURE__ */ s2.baseTheme({
|
|
19553
19553
|
".cm-diagnostic": {
|
|
19554
19554
|
padding: "3px 6px 3px 8px",
|
|
19555
19555
|
marginLeft: "-1px",
|
|
@@ -19659,7 +19659,7 @@ function kS(i) {
|
|
|
19659
19659
|
}
|
|
19660
19660
|
const Er = /* @__PURE__ */ pb(vS, { hideOn: fS }), DS = [
|
|
19661
19661
|
le,
|
|
19662
|
-
/* @__PURE__ */
|
|
19662
|
+
/* @__PURE__ */ s2.decorations.compute([le], (i) => {
|
|
19663
19663
|
let { selected: e, panel: t } = i.field(le);
|
|
19664
19664
|
return !e || !t || e.from == e.to ? b2.none : b2.set([
|
|
19665
19665
|
gS.range(e.from, e.to)
|
|
@@ -21245,7 +21245,7 @@ function bl(i, e, t = i.length) {
|
|
|
21245
21245
|
let n = e.firstChild, s = n && n.getChild("TagName");
|
|
21246
21246
|
return s ? i.sliceString(s.from, Math.min(s.to, t)) : "";
|
|
21247
21247
|
}
|
|
21248
|
-
const lC = /* @__PURE__ */
|
|
21248
|
+
const lC = /* @__PURE__ */ s2.inputHandler.of((i, e, t, n, s) => {
|
|
21249
21249
|
if (i.composing || i.state.readOnly || e != t || n != ">" && n != "/" || !cn.isActiveAt(i.state, e, -1))
|
|
21250
21250
|
return !1;
|
|
21251
21251
|
let l = s(), { state: o } = l, r = o.changeByRange((a) => {
|
|
@@ -21293,14 +21293,14 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21293
21293
|
n.value = r.target.result;
|
|
21294
21294
|
}, o.readAsText(l);
|
|
21295
21295
|
}), rt(() => {
|
|
21296
|
-
const s = new
|
|
21296
|
+
const s = new s2({
|
|
21297
21297
|
doc: n.value,
|
|
21298
|
-
extensions: [Hr, Nr(),
|
|
21298
|
+
extensions: [Hr, Nr(), s2.lineWrapping, G2.readOnly.of(!0)],
|
|
21299
21299
|
parent: document.querySelector("#xml-editor")
|
|
21300
21300
|
});
|
|
21301
21301
|
s.dom.style.width = "100%";
|
|
21302
21302
|
}), (s, l) => (_(), V("div", oC, [
|
|
21303
|
-
|
|
21303
|
+
n2("div", rC, null, 512)
|
|
21304
21304
|
]));
|
|
21305
21305
|
}
|
|
21306
21306
|
}, cC = /* @__PURE__ */ L2(aC, [["__scopeId", "data-v-5a7ea2b9"]]), hC = { class: "img-renderer" }, dC = {
|
|
@@ -21344,7 +21344,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21344
21344
|
}).preview(o);
|
|
21345
21345
|
});
|
|
21346
21346
|
}), (s, l) => (_(), V("div", fC, [
|
|
21347
|
-
|
|
21347
|
+
n2("div", {
|
|
21348
21348
|
ref_key: "pptxPreview",
|
|
21349
21349
|
ref: n,
|
|
21350
21350
|
class: "render-pptx-wrappper"
|
|
@@ -21365,7 +21365,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21365
21365
|
}), r1(() => {
|
|
21366
21366
|
n.value && URL.revokeObjectURL(n.value);
|
|
21367
21367
|
}), (s, l) => (_(), V("div", vC, [
|
|
21368
|
-
|
|
21368
|
+
n2("video", {
|
|
21369
21369
|
src: n.value,
|
|
21370
21370
|
class: "video-tag",
|
|
21371
21371
|
controls: ""
|
|
@@ -21435,8 +21435,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21435
21435
|
isNc: u.value
|
|
21436
21436
|
}));
|
|
21437
21437
|
const c = X(() => (r == null ? void 0 : r.value) === "cpt"), h = X(() => (r == null ? void 0 : r.value) === "uv"), d = X(() => (r == null ? void 0 : r.value) === "cyd"), u = X(() => (r == null ? void 0 : r.value) === "nc"), p = X(() => (r == null ? void 0 : r.value) === "txt"), f = X(() => {
|
|
21438
|
-
var B, j, I,
|
|
21439
|
-
return ((j = (B = n.blobUrl) == null ? void 0 : B.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((
|
|
21438
|
+
var B, j, I, r2, h2, K, C2, M2, w2, E2;
|
|
21439
|
+
return ((j = (B = n.blobUrl) == null ? void 0 : B.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((r2 = (I = n.blobUrl) == null ? void 0 : I.toUpperCase()) == null ? void 0 : r2.includes(".GLB")) || ((K = (h2 = n.fileName) == null ? void 0 : h2.toUpperCase()) == null ? void 0 : K.includes(".GLB")) || ((M2 = (C2 = n.blobUrl) == null ? void 0 : C2.toUpperCase()) == null ? void 0 : M2.includes(".STL")) || ((E2 = (w2 = n.blobUrl) == null ? void 0 : w2.toUpperCase()) == null ? void 0 : E2.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
|
|
21440
21440
|
}), g = X(() => (r == null ? void 0 : r.value) === "ls"), v = X(() => {
|
|
21441
21441
|
var B, j;
|
|
21442
21442
|
return ((j = (B = n.blobUrl) == null ? void 0 : B.toUpperCase()) == null ? void 0 : j.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
|
|
@@ -21514,7 +21514,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21514
21514
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21515
21515
|
])) : J("", !0),
|
|
21516
21516
|
C.value ? (_(), V("div", zC, [
|
|
21517
|
-
|
|
21517
|
+
n2("div", null, "当前文件格式(." + $2(r.value) + ")暂不支持预览,请下载后用本地软件打开", 1)
|
|
21518
21518
|
])) : !b.value && !M.value && !T.value && !v.value && !x.value && !k.value && !f.value && !A.value && !a.value && !D.value ? (_(), V("div", VC, [
|
|
21519
21519
|
Y(cC, {
|
|
21520
21520
|
fileName: l.value,
|
|
@@ -21522,7 +21522,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21522
21522
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21523
21523
|
])) : J("", !0),
|
|
21524
21524
|
N.value ? (_(), V("div", PC, j[0] || (j[0] = [
|
|
21525
|
-
|
|
21525
|
+
n2("div", null, "当前文件格式暂不支持预览", -1)
|
|
21526
21526
|
]))) : J("", !0)
|
|
21527
21527
|
]));
|
|
21528
21528
|
}
|
|
@@ -21570,14 +21570,14 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21570
21570
|
"active-item": f == l.value
|
|
21571
21571
|
}])
|
|
21572
21572
|
}, [
|
|
21573
|
-
|
|
21573
|
+
n2("div", {
|
|
21574
21574
|
class: "item-name",
|
|
21575
21575
|
title: p.name,
|
|
21576
21576
|
onClick: (g) => c(f)
|
|
21577
21577
|
}, $2(p == null ? void 0 : p.name), 9, EC)
|
|
21578
21578
|
], 2))), 128))
|
|
21579
21579
|
])) : J("", !0),
|
|
21580
|
-
|
|
21580
|
+
n2("div", HC, [
|
|
21581
21581
|
Y(Rr, {
|
|
21582
21582
|
class: "right-item",
|
|
21583
21583
|
fileName: r.value,
|
|
@@ -21631,27 +21631,27 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21631
21631
|
zIndex: 3e3
|
|
21632
21632
|
}, {
|
|
21633
21633
|
header: L(() => [
|
|
21634
|
-
|
|
21635
|
-
|
|
21634
|
+
n2("div", NC, [
|
|
21635
|
+
n2("div", {
|
|
21636
21636
|
class: "header-left",
|
|
21637
21637
|
title: a.value
|
|
21638
21638
|
}, $2(a.value), 9, RC),
|
|
21639
|
-
|
|
21639
|
+
n2("div", $C, [
|
|
21640
21640
|
Y(v, null, {
|
|
21641
21641
|
default: L(() => [
|
|
21642
|
-
Y(
|
|
21642
|
+
Y(b0(Pl), { onClick: c })
|
|
21643
21643
|
]),
|
|
21644
21644
|
_: 1
|
|
21645
21645
|
}),
|
|
21646
21646
|
Y(v, null, {
|
|
21647
21647
|
default: L(() => [
|
|
21648
|
-
Y(
|
|
21648
|
+
Y(b0(g9), { onClick: d })
|
|
21649
21649
|
]),
|
|
21650
21650
|
_: 1
|
|
21651
21651
|
}),
|
|
21652
21652
|
Y(v, null, {
|
|
21653
21653
|
default: L(() => [
|
|
21654
|
-
Y(
|
|
21654
|
+
Y(b0(Al), { onClick: u })
|
|
21655
21655
|
]),
|
|
21656
21656
|
_: 1
|
|
21657
21657
|
})
|
|
@@ -21661,8 +21661,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21661
21661
|
default: L(() => {
|
|
21662
21662
|
var m;
|
|
21663
21663
|
return [
|
|
21664
|
-
|
|
21665
|
-
g[0] || (g[0] =
|
|
21664
|
+
n2("div", WC, [
|
|
21665
|
+
g[0] || (g[0] = n2("div", { class: "file-preview-header" }, null, -1)),
|
|
21666
21666
|
(_(), q($r, {
|
|
21667
21667
|
class: "file-preview-content",
|
|
21668
21668
|
fileDataList: l.value,
|
|
@@ -21763,7 +21763,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21763
21763
|
return (v, m) => {
|
|
21764
21764
|
const b = Q("el-icon");
|
|
21765
21765
|
return _(), V("div", UC, [
|
|
21766
|
-
|
|
21766
|
+
n2("input", {
|
|
21767
21767
|
ref_key: "fileInputRef",
|
|
21768
21768
|
ref: o,
|
|
21769
21769
|
type: "file",
|
|
@@ -21785,11 +21785,11 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21785
21785
|
}, null, 8, qC)) : (_(), V("span", YC, [
|
|
21786
21786
|
Y(b, null, {
|
|
21787
21787
|
default: L(() => [
|
|
21788
|
-
Y(
|
|
21788
|
+
Y(b0(Bl))
|
|
21789
21789
|
]),
|
|
21790
21790
|
_: 1
|
|
21791
21791
|
}),
|
|
21792
|
-
|
|
21792
|
+
n2("span", FC, $2(t.buttonText), 1)
|
|
21793
21793
|
])),
|
|
21794
21794
|
l.value ? (_(), V("div", {
|
|
21795
21795
|
key: 2,
|
|
@@ -21803,7 +21803,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21803
21803
|
onClick: p
|
|
21804
21804
|
}, {
|
|
21805
21805
|
default: L(() => [
|
|
21806
|
-
Y(
|
|
21806
|
+
Y(b0(Ll))
|
|
21807
21807
|
]),
|
|
21808
21808
|
_: 1
|
|
21809
21809
|
}),
|
|
@@ -21813,7 +21813,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21813
21813
|
onClick: d
|
|
21814
21814
|
}, {
|
|
21815
21815
|
default: L(() => [
|
|
21816
|
-
Y(
|
|
21816
|
+
Y(b0(v9))
|
|
21817
21817
|
]),
|
|
21818
21818
|
_: 1
|
|
21819
21819
|
}),
|
|
@@ -21823,7 +21823,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21823
21823
|
onClick: g
|
|
21824
21824
|
}, {
|
|
21825
21825
|
default: L(() => [
|
|
21826
|
-
Y(
|
|
21826
|
+
Y(b0(m9))
|
|
21827
21827
|
]),
|
|
21828
21828
|
_: 1
|
|
21829
21829
|
})
|
|
@@ -21965,7 +21965,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21965
21965
|
"popper-class": "ss-column-filter-popper"
|
|
21966
21966
|
}, {
|
|
21967
21967
|
reference: L(() => [
|
|
21968
|
-
|
|
21968
|
+
n2("button", {
|
|
21969
21969
|
type: "button",
|
|
21970
21970
|
class: se(["column-filter-trigger", { active: a.value, open: l.value }]),
|
|
21971
21971
|
title: "筛选",
|
|
@@ -21977,13 +21977,13 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
21977
21977
|
], 10, lk)
|
|
21978
21978
|
]),
|
|
21979
21979
|
default: L(() => [
|
|
21980
|
-
|
|
21980
|
+
n2("div", {
|
|
21981
21981
|
class: "column-filter-panel",
|
|
21982
21982
|
onClick: v[2] || (v[2] = Fe(() => {
|
|
21983
21983
|
}, ["stop"]))
|
|
21984
21984
|
}, [
|
|
21985
|
-
|
|
21986
|
-
v[6] || (v[6] =
|
|
21985
|
+
n2("div", ok, [
|
|
21986
|
+
v[6] || (v[6] = n2("span", { class: "filter-panel-title" }, "设置筛选条件", -1)),
|
|
21987
21987
|
Y(D, {
|
|
21988
21988
|
modelValue: o.value,
|
|
21989
21989
|
"onUpdate:modelValue": v[1] || (v[1] = (N) => o.value = N),
|
|
@@ -22008,7 +22008,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22008
22008
|
_: 1
|
|
22009
22009
|
}, 8, ["modelValue"])
|
|
22010
22010
|
]),
|
|
22011
|
-
|
|
22011
|
+
n2("div", rk, [
|
|
22012
22012
|
(_(!0), V(D2, null, V2(r.value, (N, B) => (_(), V("div", {
|
|
22013
22013
|
key: B,
|
|
22014
22014
|
class: "filter-condition-row"
|
|
@@ -22048,7 +22048,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22048
22048
|
default: L(() => [
|
|
22049
22049
|
Y(k, null, {
|
|
22050
22050
|
default: L(() => [
|
|
22051
|
-
Y(
|
|
22051
|
+
Y(b0(Al))
|
|
22052
22052
|
]),
|
|
22053
22053
|
_: 1
|
|
22054
22054
|
})
|
|
@@ -22066,16 +22066,16 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22066
22066
|
default: L(() => [
|
|
22067
22067
|
Y(k, null, {
|
|
22068
22068
|
default: L(() => [
|
|
22069
|
-
Y(
|
|
22069
|
+
Y(b0(Hl))
|
|
22070
22070
|
]),
|
|
22071
22071
|
_: 1
|
|
22072
22072
|
}),
|
|
22073
|
-
v[7] || (v[7] =
|
|
22073
|
+
v[7] || (v[7] = n2("span", null, "添加条件", -1))
|
|
22074
22074
|
]),
|
|
22075
22075
|
_: 1,
|
|
22076
22076
|
__: [7]
|
|
22077
22077
|
}),
|
|
22078
|
-
|
|
22078
|
+
n2("div", ak, [
|
|
22079
22079
|
Y(A, { onClick: p }, {
|
|
22080
22080
|
default: L(() => v[8] || (v[8] = [
|
|
22081
22081
|
r0("重置")
|
|
@@ -22135,13 +22135,13 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22135
22135
|
sortable: ((p = i.column) == null ? void 0 : p.prop) === "operate" || ((f = i.column) == null ? void 0 : f.label) === "操作" || Array.isArray((g = i.column) == null ? void 0 : g.children) && i.column.children.length > 0 ? !1 : ((v = i.column) == null ? void 0 : v.sortable) ?? !1 ? "custom" : !1,
|
|
22136
22136
|
"show-overflow-tooltip": ((m = i.column) == null ? void 0 : m.showOverflowTooltip) ?? !0,
|
|
22137
22137
|
"class-name": (((b = i.column) == null ? void 0 : b.isNotDrag) ?? !1) === !0 ? "is-not-drag recursive-column" : "is-drag recursive-column",
|
|
22138
|
-
"min-width":
|
|
22138
|
+
"min-width": b0(jr)(i.column, i.tableData)
|
|
22139
22139
|
}, {
|
|
22140
22140
|
header: L(() => {
|
|
22141
22141
|
var D, M, T;
|
|
22142
22142
|
return [
|
|
22143
22143
|
i.column.prop !== "operate" ? (_(), V("div", hk, [
|
|
22144
|
-
|
|
22144
|
+
n2("span", {
|
|
22145
22145
|
class: "column-header-label",
|
|
22146
22146
|
title: i.column.label
|
|
22147
22147
|
}, $2(i.column.label), 9, dk),
|
|
@@ -22226,7 +22226,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22226
22226
|
}))) == null ? void 0 : c.filter((h) => (h == null ? void 0 : h.value) !== "Upload");
|
|
22227
22227
|
});
|
|
22228
22228
|
q2(() => t.column, (a) => {
|
|
22229
|
-
s.value =
|
|
22229
|
+
s.value = T0(a);
|
|
22230
22230
|
}, { immediate: !0, deep: !0 });
|
|
22231
22231
|
const o = (a, c) => {
|
|
22232
22232
|
if (!a) return ce.warning("标签不能为空");
|
|
@@ -22247,7 +22247,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22247
22247
|
sortable: ((g = i.column) == null ? void 0 : g.prop) === "operate" ? !1 : (v = i.column) != null && v.sortable ? "custom" : !1,
|
|
22248
22248
|
"show-overflow-tooltip": ((m = i.column) == null ? void 0 : m.showOverflowTooltip) ?? !0,
|
|
22249
22249
|
"class-name": ((b = i.column) == null ? void 0 : b.prop) === "operate" ? "action" : (((D = i.column) == null ? void 0 : D.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag",
|
|
22250
|
-
"min-width":
|
|
22250
|
+
"min-width": b0(jr)(i.column, i.tableData)
|
|
22251
22251
|
}, {
|
|
22252
22252
|
header: L(() => {
|
|
22253
22253
|
var M, T, x;
|
|
@@ -22275,7 +22275,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22275
22275
|
}),
|
|
22276
22276
|
_: 1
|
|
22277
22277
|
}, 8, ["value"])) : (_(), V("div", pk, [
|
|
22278
|
-
|
|
22278
|
+
n2("span", {
|
|
22279
22279
|
class: "column-header-label",
|
|
22280
22280
|
title: i.column.label
|
|
22281
22281
|
}, $2(i.column.label), 9, gk),
|
|
@@ -22465,9 +22465,9 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22465
22465
|
type: Array,
|
|
22466
22466
|
default: () => []
|
|
22467
22467
|
},
|
|
22468
|
-
|
|
22469
|
-
type:
|
|
22470
|
-
default:
|
|
22468
|
+
signatureButtons: {
|
|
22469
|
+
type: [Set, Array],
|
|
22470
|
+
default: () => /* @__PURE__ */ new Set()
|
|
22471
22471
|
},
|
|
22472
22472
|
signaturePreview: {
|
|
22473
22473
|
type: Function,
|
|
@@ -22527,25 +22527,25 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22527
22527
|
}), u = g6({ x: 0, y: 0 }), p = R([]), f = R([]), g = R({}), v = X(() => {
|
|
22528
22528
|
const O = Object.entries(g.value);
|
|
22529
22529
|
return O.length ? (f.value ?? []).filter((z) => O.every(([P, H]) => {
|
|
22530
|
-
const
|
|
22531
|
-
if (!
|
|
22532
|
-
const
|
|
22533
|
-
return (H == null ? void 0 : H.mode) === "any" ?
|
|
22530
|
+
const a2 = (H == null ? void 0 : H.conditions) ?? [];
|
|
22531
|
+
if (!a2.length) return !0;
|
|
22532
|
+
const i2 = a2.map((k2) => k(z == null ? void 0 : z[P], k2));
|
|
22533
|
+
return (H == null ? void 0 : H.mode) === "any" ? i2.some(Boolean) : i2.every(Boolean);
|
|
22534
22534
|
})) : f.value ?? [];
|
|
22535
22535
|
}), m = R({}), b = R(0), D = R(null), M = R(null), T = R(null), x = (O, z) => {
|
|
22536
22536
|
const P = Number(O), H = Number(z);
|
|
22537
22537
|
return O !== "" && z !== "" && Number.isFinite(P) && Number.isFinite(H) ? P - H : String(O).localeCompare(String(z), "zh-CN", { numeric: !0, sensitivity: "base" });
|
|
22538
22538
|
}, k = (O, z) => {
|
|
22539
|
-
const P = O == null ? "" : String(O), H = (z == null ? void 0 : z.value) == null ? "" : String(z.value),
|
|
22539
|
+
const P = O == null ? "" : String(O), H = (z == null ? void 0 : z.value) == null ? "" : String(z.value), a2 = P.toLocaleLowerCase(), i2 = H.toLocaleLowerCase();
|
|
22540
22540
|
switch (z == null ? void 0 : z.operator) {
|
|
22541
22541
|
case "equals":
|
|
22542
|
-
return
|
|
22542
|
+
return a2 === i2;
|
|
22543
22543
|
case "notEquals":
|
|
22544
|
-
return
|
|
22544
|
+
return a2 !== i2;
|
|
22545
22545
|
case "contains":
|
|
22546
|
-
return
|
|
22546
|
+
return a2.includes(i2);
|
|
22547
22547
|
case "notContains":
|
|
22548
|
-
return !
|
|
22548
|
+
return !a2.includes(i2);
|
|
22549
22549
|
case "greaterThan":
|
|
22550
22550
|
return x(P, H) > 0;
|
|
22551
22551
|
case "greaterThanOrEqual":
|
|
@@ -22573,7 +22573,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22573
22573
|
P6("contentRef");
|
|
22574
22574
|
const j = R(""), I = X(() => (n == null ? void 0 : n.loadingButtonText) || j.value);
|
|
22575
22575
|
Re(() => {
|
|
22576
|
-
var z, P, H,
|
|
22576
|
+
var z, P, H, a2, i2, k2;
|
|
22577
22577
|
w2 = M2(), p.value = n == null ? void 0 : n.columns, f.value = (z = n == null ? void 0 : n.tableData) == null ? void 0 : z.map((Z) => {
|
|
22578
22578
|
var x2, g2;
|
|
22579
22579
|
let u2 = {};
|
|
@@ -22591,19 +22591,19 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22591
22591
|
});
|
|
22592
22592
|
let O = (P = l.value) == null ? void 0 : P.find((Z) => (Z == null ? void 0 : Z.parentContent) === r.value);
|
|
22593
22593
|
if (O) {
|
|
22594
|
-
let Z = (
|
|
22594
|
+
let Z = (a2 = (H = p.value) == null ? void 0 : H[0]) == null ? void 0 : a2.prop, u2 = (i2 = f.value) == null ? void 0 : i2.find((x2) => (x2 == null ? void 0 : x2[Z]) === (O == null ? void 0 : O.value));
|
|
22595
22595
|
(k2 = D.value) == null || k2.setCurrentRow(), D.value && setTimeout(() => {
|
|
22596
22596
|
D.value && D.value.setCurrentRow(u2);
|
|
22597
22597
|
}, 100);
|
|
22598
22598
|
}
|
|
22599
|
-
|
|
22599
|
+
P0(), re(), document.addEventListener("click", h0);
|
|
22600
22600
|
});
|
|
22601
|
-
const
|
|
22601
|
+
const r2 = R(null), h2 = async (O, z) => {
|
|
22602
22602
|
j.value = O == null ? void 0 : O.label;
|
|
22603
22603
|
try {
|
|
22604
22604
|
B("clickButton", O == null ? void 0 : O.label, "", { extra: O, index: z });
|
|
22605
22605
|
} finally {
|
|
22606
|
-
|
|
22606
|
+
r2.value = setTimeout(() => {
|
|
22607
22607
|
j.value = "";
|
|
22608
22608
|
}, 1e3);
|
|
22609
22609
|
}
|
|
@@ -22620,7 +22620,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22620
22620
|
};
|
|
22621
22621
|
function M2() {
|
|
22622
22622
|
const O = /* @__PURE__ */ new WeakSet(), z = new MutationObserver(k2), P = /* @__PURE__ */ new WeakMap(), H = [];
|
|
22623
|
-
function
|
|
22623
|
+
function a2(Z) {
|
|
22624
22624
|
try {
|
|
22625
22625
|
const u2 = Z.getBoundingClientRect(), x2 = Z.clientWidth || u2.width || 1, g2 = u2.width / x2 || 1, d2 = parseFloat(getComputedStyle(Z).zoom || "1");
|
|
22626
22626
|
return d2 ? g2 / d2 : g2;
|
|
@@ -22628,7 +22628,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22628
22628
|
return 1;
|
|
22629
22629
|
}
|
|
22630
22630
|
}
|
|
22631
|
-
function
|
|
22631
|
+
function i2(Z) {
|
|
22632
22632
|
var g2;
|
|
22633
22633
|
if (!Z || O.has(Z)) return;
|
|
22634
22634
|
O.add(Z);
|
|
@@ -22642,17 +22642,17 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22642
22642
|
} catch {
|
|
22643
22643
|
}
|
|
22644
22644
|
u2.classList.add("is-dragging");
|
|
22645
|
-
const N2 =
|
|
22645
|
+
const N2 = a2(u2), d0 = u2.clientWidth || 1, B0 = Z.clientWidth || 0, i0 = Math.max(1, (d0 - B0) / N2), e2 = Math.max(1, (x2.scrollWidth || 0) - (x2.clientWidth || 0)), U2 = d2.clientX, _2 = x2.scrollLeft, R2 = e2 / i0, L0 = (G) => {
|
|
22646
22646
|
const We = (G.clientX - U2) / N2;
|
|
22647
|
-
x2.scrollLeft =
|
|
22648
|
-
},
|
|
22647
|
+
x2.scrollLeft = _2 + We * R2;
|
|
22648
|
+
}, m0 = () => {
|
|
22649
22649
|
try {
|
|
22650
22650
|
Z.releasePointerCapture && Z.releasePointerCapture(d2.pointerId);
|
|
22651
22651
|
} catch {
|
|
22652
22652
|
}
|
|
22653
|
-
Z.removeEventListener("pointermove",
|
|
22653
|
+
Z.removeEventListener("pointermove", L0), Z.removeEventListener("pointerup", m0), Z.removeEventListener("pointercancel", m0), u2.classList.remove("is-dragging");
|
|
22654
22654
|
};
|
|
22655
|
-
Z.addEventListener("pointermove",
|
|
22655
|
+
Z.addEventListener("pointermove", L0), Z.addEventListener("pointerup", m0), Z.addEventListener("pointercancel", m0);
|
|
22656
22656
|
},
|
|
22657
22657
|
!0
|
|
22658
22658
|
// 捕获阶段,保证我们先手
|
|
@@ -22663,11 +22663,11 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22663
22663
|
if (!Z.closest(".el-table")) return;
|
|
22664
22664
|
const u2 = Z.querySelector(".el-scrollbar__wrap"), x2 = Z.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
22665
22665
|
if (!u2 || !x2) return;
|
|
22666
|
-
const g2 = u2.querySelector(".el-scrollbar__view") || u2.firstElementChild || u2, d2 = g2.querySelector("table") || g2.querySelector(".el-table__body") || g2, N2 = d2.scrollWidth, d0 = u2.clientWidth,
|
|
22667
|
-
if (Z.classList.toggle("has-x-scroll",
|
|
22666
|
+
const g2 = u2.querySelector(".el-scrollbar__view") || u2.firstElementChild || u2, d2 = g2.querySelector("table") || g2.querySelector(".el-table__body") || g2, N2 = d2.scrollWidth, d0 = u2.clientWidth, B0 = N2 - d0 > 2;
|
|
22667
|
+
if (Z.classList.toggle("has-x-scroll", B0), x2.style.display = "", B0 && Z.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(i2), !P.has(u2)) {
|
|
22668
22668
|
const i0 = new ResizeObserver(() => {
|
|
22669
|
-
const
|
|
22670
|
-
Z.classList.toggle("has-x-scroll",
|
|
22669
|
+
const e2 = d2 && d2.scrollWidth || u2.scrollWidth, U2 = u2.clientWidth, _2 = e2 - U2 > 2;
|
|
22670
|
+
Z.classList.toggle("has-x-scroll", _2);
|
|
22671
22671
|
});
|
|
22672
22672
|
i0.observe(u2), d2 && i0.observe(d2), P.set(u2, i0), H.push(() => i0.disconnect());
|
|
22673
22673
|
}
|
|
@@ -22686,10 +22686,10 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22686
22686
|
q2(
|
|
22687
22687
|
() => [l.value],
|
|
22688
22688
|
() => {
|
|
22689
|
-
var z, P, H,
|
|
22689
|
+
var z, P, H, a2, i2, k2, Z;
|
|
22690
22690
|
let O = (z = l.value) == null ? void 0 : z.find((u2) => (u2 == null ? void 0 : u2.parentContent) === r.value);
|
|
22691
22691
|
if (O || !((H = (P = l.value) == null ? void 0 : P[0]) != null && H.parentContent)) {
|
|
22692
|
-
let u2 = (
|
|
22692
|
+
let u2 = (i2 = (a2 = p.value) == null ? void 0 : a2[0]) == null ? void 0 : i2.prop, x2 = (k2 = f.value) == null ? void 0 : k2.find((g2) => {
|
|
22693
22693
|
var d2, N2;
|
|
22694
22694
|
return (g2 == null ? void 0 : g2[u2]) === ((O == null ? void 0 : O.value) ?? ((N2 = (d2 = l.value) == null ? void 0 : d2[0]) == null ? void 0 : N2.value));
|
|
22695
22695
|
});
|
|
@@ -22701,7 +22701,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22701
22701
|
},
|
|
22702
22702
|
{ deep: !0 }
|
|
22703
22703
|
), hn(() => {
|
|
22704
|
-
w2 && w2(), document.removeEventListener("click", h0), f.value = void 0, p.value = void 0, E2.value && clearTimeout(E2.value),
|
|
22704
|
+
w2 && w2(), document.removeEventListener("click", h0), f.value = void 0, p.value = void 0, E2.value && clearTimeout(E2.value), r2.value = null;
|
|
22705
22705
|
});
|
|
22706
22706
|
const E2 = R(null);
|
|
22707
22707
|
q2(() => n == null ? void 0 : n.isEditViewport, async (O) => {
|
|
@@ -22716,10 +22716,10 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22716
22716
|
}, Z2 = (O, z) => {
|
|
22717
22717
|
B("handleColTypeChange", O, z);
|
|
22718
22718
|
}, h0 = (O) => {
|
|
22719
|
-
var P, H,
|
|
22719
|
+
var P, H, a2, i2;
|
|
22720
22720
|
if (a.value = !1, !n.isEditViewport) return;
|
|
22721
22721
|
const z = O == null ? void 0 : O.target;
|
|
22722
|
-
(H = (P = D.value) == null ? void 0 : P.$el) != null && H.contains(z) || (
|
|
22722
|
+
(H = (P = D.value) == null ? void 0 : P.$el) != null && H.contains(z) || (a2 = z == null ? void 0 : z.closest) != null && a2.call(z, "#themeButton, #themeBorderButton,#tableHeaderButton") || (i2 = z == null ? void 0 : z.closest) != null && i2.call(
|
|
22723
22723
|
z,
|
|
22724
22724
|
".el-popper, .el-select__popper, .el-select-dropdown, .el-picker__popper, .el-picker-panel,.el-dialog__wrapper, .el-overlay, .el-message-box__wrapper, .el-popover"
|
|
22725
22725
|
) || B("submitEditingTable");
|
|
@@ -22727,29 +22727,29 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22727
22727
|
$.value = O == null ? void 0 : O.id;
|
|
22728
22728
|
}, z2 = (O, z, P) => {
|
|
22729
22729
|
$.value = 0;
|
|
22730
|
-
},
|
|
22731
|
-
const
|
|
22732
|
-
|
|
22730
|
+
}, y2 = P6("getSuggestListForCell", () => []), j2 = P6("getSuggestLoadingForCell", () => !1), K2 = (O, z, P, H) => {
|
|
22731
|
+
const a2 = (H == null ? void 0 : H.formType) || (H == null ? void 0 : H.columnType) || "";
|
|
22732
|
+
a2 && a2.toUpperCase() !== "INPUT" && a2 !== "" || B("cellInput", z, P, O);
|
|
22733
22733
|
}, W = (O, z, P, H) => {
|
|
22734
22734
|
B("selectSuggest", z, P, O);
|
|
22735
22735
|
}, U = (O) => {
|
|
22736
22736
|
B("selectChange", O);
|
|
22737
22737
|
}, v2 = (O, z) => {
|
|
22738
|
-
var P, H,
|
|
22738
|
+
var P, H, a2;
|
|
22739
22739
|
if (typeof n.selectable == "function")
|
|
22740
22740
|
return n.selectable(O, z);
|
|
22741
22741
|
if (n.selectMode === "single") {
|
|
22742
|
-
const
|
|
22743
|
-
return
|
|
22742
|
+
const i2 = ((H = (P = D.value) == null ? void 0 : P.getSelectionRows) == null ? void 0 : H.call(P)) ?? [];
|
|
22743
|
+
return i2.length === 0 || ((a2 = i2 == null ? void 0 : i2[0]) == null ? void 0 : a2.id) === (O == null ? void 0 : O.id);
|
|
22744
22744
|
}
|
|
22745
22745
|
return !0;
|
|
22746
22746
|
}, c2 = (O, z, P, H) => X(() => {
|
|
22747
|
-
var
|
|
22748
|
-
let
|
|
22749
|
-
return Array.isArray(
|
|
22747
|
+
var i2, k2, Z, u2, x2, g2, d2, N2, d0, B0;
|
|
22748
|
+
let a2 = O != null && O[z == null ? void 0 : z.prop] ? ((k2 = (i2 = O == null ? void 0 : O[z == null ? void 0 : z.prop]) == null ? void 0 : i2[0]) == null ? void 0 : k2.contents) ?? (O == null ? void 0 : O[z == null ? void 0 : z.prop]) : ((u2 = (Z = O == null ? void 0 : O[P == null ? void 0 : P.prop]) == null ? void 0 : Z[0]) == null ? void 0 : u2.contents) ?? (O == null ? void 0 : O[P == null ? void 0 : P.prop]) ?? ((g2 = (x2 = H == null ? void 0 : H[P == null ? void 0 : P.prop]) == null ? void 0 : x2[0]) == null ? void 0 : g2.contents) ?? (H == null ? void 0 : H[P == null ? void 0 : P.prop]) ?? ((d0 = (N2 = O == null ? void 0 : O[(d2 = P == null ? void 0 : P.child) == null ? void 0 : d2.prop]) == null ? void 0 : N2[0]) == null ? void 0 : d0.contents) ?? (O == null ? void 0 : O[(B0 = P == null ? void 0 : P.child) == null ? void 0 : B0.prop]);
|
|
22749
|
+
return Array.isArray(a2) && !(a2 != null && a2.every((i0) => typeof i0 == "string" || typeof i0 == "number")) ? "查看" : a2;
|
|
22750
22750
|
}), I2 = (O) => {
|
|
22751
|
-
var H,
|
|
22752
|
-
let z = (
|
|
22751
|
+
var H, a2, i2;
|
|
22752
|
+
let z = (a2 = (H = p.value) == null ? void 0 : H[0]) == null ? void 0 : a2.prop, P = (i2 = f.value) == null ? void 0 : i2.map((k2) => k2 == null ? void 0 : k2[z]);
|
|
22753
22753
|
B("rowClick", {
|
|
22754
22754
|
row: O,
|
|
22755
22755
|
type: "table",
|
|
@@ -22758,8 +22758,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22758
22758
|
});
|
|
22759
22759
|
}, H2 = (O, z, P, H) => {
|
|
22760
22760
|
if (!N.value) return;
|
|
22761
|
-
const
|
|
22762
|
-
u.x = H.clientX, u.y = H.clientY, a.value = !0,
|
|
22761
|
+
const a2 = P == null ? void 0 : P.innerText, i2 = yk(a2);
|
|
22762
|
+
u.x = H.clientX, u.y = H.clientY, a.value = !0, i2 && (c.value = P.innerText), h.value = O;
|
|
22763
22763
|
}, o0 = () => {
|
|
22764
22764
|
B("clickButton", "删除", h.value, { extra: { label: "删除" } }), a.value = !1;
|
|
22765
22765
|
}, Y2 = () => {
|
|
@@ -22774,22 +22774,22 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22774
22774
|
() => {
|
|
22775
22775
|
var O;
|
|
22776
22776
|
f.value = (O = n == null ? void 0 : n.tableData) == null ? void 0 : O.map((z) => {
|
|
22777
|
-
var H,
|
|
22777
|
+
var H, a2;
|
|
22778
22778
|
let P = {};
|
|
22779
|
-
for (let
|
|
22780
|
-
if (P[
|
|
22781
|
-
if (!z[
|
|
22782
|
-
P[
|
|
22779
|
+
for (let i2 in z)
|
|
22780
|
+
if (P[i2] = _i(z[i2]) && z[i2] === 0 ? (H = z[i2]) == null ? void 0 : H.toString() : z[i2], i2 !== "id" && ((a2 = e0.value) == null ? void 0 : a2.prop) !== i2 && C2(z[i2]))
|
|
22781
|
+
if (!z[i2] || z[i2] === "" || z[i2] === null || z[i2] === void 0)
|
|
22782
|
+
P[i2] = "";
|
|
22783
22783
|
else {
|
|
22784
|
-
const k2 = Ue(z[
|
|
22785
|
-
P[
|
|
22784
|
+
const k2 = Ue(z[i2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
|
|
22785
|
+
P[i2] = k2.isValid() ? k2.format("YYYY-MM-DD HH:mm:ss") : "";
|
|
22786
22786
|
}
|
|
22787
22787
|
return P;
|
|
22788
22788
|
});
|
|
22789
22789
|
},
|
|
22790
22790
|
{ deep: !0 }
|
|
22791
22791
|
);
|
|
22792
|
-
const
|
|
22792
|
+
const _0 = (O) => ti(O), n0 = (O, z, P) => {
|
|
22793
22793
|
B("clickButton", O, z, P);
|
|
22794
22794
|
}, U0 = (O) => {
|
|
22795
22795
|
B("doCurrentChange", O);
|
|
@@ -22801,7 +22801,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22801
22801
|
B("deleteRow", O);
|
|
22802
22802
|
}, S = (O, z, P, H) => {
|
|
22803
22803
|
B("contentClick", O, z, P, H);
|
|
22804
|
-
},
|
|
22804
|
+
}, P0 = () => {
|
|
22805
22805
|
var z;
|
|
22806
22806
|
const O = (z = D.value) == null ? void 0 : z.$el.querySelector(".el-table__header-wrapper tr");
|
|
22807
22807
|
!O || !n.isMoveColumn || fi.create(O, {
|
|
@@ -22812,9 +22812,9 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22812
22812
|
onMove: (P) => !P.related.classList.contains("is-not-drag"),
|
|
22813
22813
|
onEnd: (P) => {
|
|
22814
22814
|
b.value++;
|
|
22815
|
-
const H = P.oldIndex - 3,
|
|
22816
|
-
p.value.splice(
|
|
22817
|
-
|
|
22815
|
+
const H = P.oldIndex - 3, a2 = P.newIndex - 3, i2 = p.value.splice(H, 1)[0];
|
|
22816
|
+
p.value.splice(a2, 0, i2), n.isMoveColumn && K0(() => {
|
|
22817
|
+
P0(), re();
|
|
22818
22818
|
});
|
|
22819
22819
|
}
|
|
22820
22820
|
});
|
|
@@ -22826,8 +22826,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22826
22826
|
handle: ".custom-drag-icon",
|
|
22827
22827
|
ghostClass: "sortable-ghost",
|
|
22828
22828
|
onEnd: ({ newIndex: P, oldIndex: H }) => {
|
|
22829
|
-
const
|
|
22830
|
-
|
|
22829
|
+
const a2 = [...f.value], [i2] = a2.splice(H, 1);
|
|
22830
|
+
a2.splice(H, 0, i2), f.value = a2, K0(() => {
|
|
22831
22831
|
re();
|
|
22832
22832
|
});
|
|
22833
22833
|
}
|
|
@@ -22836,24 +22836,24 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22836
22836
|
const P = new FileReader();
|
|
22837
22837
|
P.onloadend = () => z(P.result), P.readAsDataURL(O);
|
|
22838
22838
|
}), Ce = (O, z = "file") => {
|
|
22839
|
-
let P = O.split(","), H = P[0].match(/:(.*?);/)[1],
|
|
22839
|
+
let P = O.split(","), H = P[0].match(/:(.*?);/)[1], a2 = H.split("/")[1], i2 = atob(P[1]), k2 = i2.length, Z = new Uint8Array(k2);
|
|
22840
22840
|
for (; k2--; )
|
|
22841
|
-
Z[k2] =
|
|
22842
|
-
return new File([Z], `${z}.${
|
|
22841
|
+
Z[k2] = i2.charCodeAt(k2);
|
|
22842
|
+
return new File([Z], `${z}.${a2}`, {
|
|
22843
22843
|
type: H
|
|
22844
22844
|
});
|
|
22845
22845
|
}, ke = async (O) => {
|
|
22846
22846
|
const z = await Se(O);
|
|
22847
22847
|
let P = Ce(z), H = new FormData();
|
|
22848
22848
|
H.append("file", P);
|
|
22849
|
-
let
|
|
22850
|
-
return await f4(H).then((
|
|
22849
|
+
let a2;
|
|
22850
|
+
return await f4(H).then((i2) => {
|
|
22851
22851
|
var k2, Z, u2, x2, g2, d2, N2;
|
|
22852
|
-
|
|
22853
|
-
url: (k2 =
|
|
22854
|
-
name: (N2 = (u2 = (Z =
|
|
22852
|
+
a2 = {
|
|
22853
|
+
url: (k2 = i2.data.result) == null ? void 0 : k2.url,
|
|
22854
|
+
name: (N2 = (u2 = (Z = i2.data.result) == null ? void 0 : Z.url) == null ? void 0 : u2.split("/")) == null ? void 0 : N2[((d2 = (g2 = (x2 = i2.data.result) == null ? void 0 : x2.url) == null ? void 0 : g2.split("/")) == null ? void 0 : d2.length) - 1]
|
|
22855
22855
|
};
|
|
22856
|
-
}),
|
|
22856
|
+
}), a2;
|
|
22857
22857
|
}, De = async (O) => {
|
|
22858
22858
|
var z;
|
|
22859
22859
|
try {
|
|
@@ -22861,10 +22861,10 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22861
22861
|
if (H === void 0) return;
|
|
22862
22862
|
if (H.includes("<table")) {
|
|
22863
22863
|
O.preventDefault();
|
|
22864
|
-
const
|
|
22865
|
-
if (!
|
|
22866
|
-
const { rowIndex:
|
|
22867
|
-
if (
|
|
22864
|
+
const a2 = Oe(H);
|
|
22865
|
+
if (!a2.length) return;
|
|
22866
|
+
const { rowIndex: i2, columnIndex: k2 } = T.value || { rowIndex: 0, columnIndex: 0 }, Z = [];
|
|
22867
|
+
if (a2 == null || a2.forEach((u2) => {
|
|
22868
22868
|
Z.push(u2.length + k2);
|
|
22869
22869
|
}), (Z == null ? void 0 : Z.filter((u2) => {
|
|
22870
22870
|
var x2;
|
|
@@ -22876,32 +22876,32 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22876
22876
|
});
|
|
22877
22877
|
return;
|
|
22878
22878
|
}
|
|
22879
|
-
for (let u2 = 0; u2 <
|
|
22880
|
-
const x2 =
|
|
22879
|
+
for (let u2 = 0; u2 < a2.length; u2++) {
|
|
22880
|
+
const x2 = a2[u2], g2 = f.value[i2 + u2], d2 = T0(p.value).map((N2) => N2.prop);
|
|
22881
22881
|
for (let N2 = 0; N2 < x2.length && k2 + N2 < d2.length; N2++) {
|
|
22882
22882
|
const d0 = d2[k2 + N2];
|
|
22883
22883
|
(g2 == null ? void 0 : g2[d0]) !== void 0 && (g2[d0] = x2[N2] || "");
|
|
22884
22884
|
}
|
|
22885
22885
|
}
|
|
22886
22886
|
} else {
|
|
22887
|
-
const
|
|
22888
|
-
if (
|
|
22889
|
-
const k2 = new DOMParser().parseFromString(
|
|
22887
|
+
const a2 = P.getData("text/html");
|
|
22888
|
+
if (a2 === void 0) return;
|
|
22889
|
+
const k2 = new DOMParser().parseFromString(a2, "text/html"), Z = k2.querySelectorAll("table");
|
|
22890
22890
|
if ((Z == null ? void 0 : Z.length) > 0) {
|
|
22891
22891
|
O.preventDefault();
|
|
22892
22892
|
const x2 = Z[0].querySelectorAll("tr"), g2 = [];
|
|
22893
22893
|
for (const d0 of x2) {
|
|
22894
|
-
const
|
|
22895
|
-
for (const
|
|
22896
|
-
const U2 =
|
|
22894
|
+
const B0 = d0.querySelectorAll("td, th"), i0 = [];
|
|
22895
|
+
for (const e2 of B0) {
|
|
22896
|
+
const U2 = e2.querySelectorAll("img");
|
|
22897
22897
|
if (U2.length > 0)
|
|
22898
|
-
for (const
|
|
22899
|
-
const R2 =
|
|
22898
|
+
for (const _2 of U2) {
|
|
22899
|
+
const R2 = _2.getAttribute("src");
|
|
22900
22900
|
if (R2 && R2.startsWith("file:///")) {
|
|
22901
|
-
const
|
|
22902
|
-
|
|
22901
|
+
const L0 = R2.match(/base64,(.*)/);
|
|
22902
|
+
L0 && i0.push({
|
|
22903
22903
|
type: "image",
|
|
22904
|
-
content: `data:image/png;base64,${
|
|
22904
|
+
content: `data:image/png;base64,${L0[1]}`
|
|
22905
22905
|
});
|
|
22906
22906
|
} else R2 && R2.startsWith("data:") && i0.push({
|
|
22907
22907
|
type: "image",
|
|
@@ -22911,7 +22911,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22911
22911
|
else
|
|
22912
22912
|
i0.push({
|
|
22913
22913
|
type: "text",
|
|
22914
|
-
content:
|
|
22914
|
+
content: e2.textContent.trim()
|
|
22915
22915
|
});
|
|
22916
22916
|
}
|
|
22917
22917
|
g2.push(i0);
|
|
@@ -22921,15 +22921,15 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22921
22921
|
const d0 = [];
|
|
22922
22922
|
g2.forEach((i0) => {
|
|
22923
22923
|
if (i0 != null && i0.length) {
|
|
22924
|
-
const
|
|
22925
|
-
for (let
|
|
22926
|
-
const R2 = U2[
|
|
22927
|
-
|
|
22924
|
+
const e2 = {}, U2 = n.columns;
|
|
22925
|
+
for (let _2 = 0; _2 < (U2 == null ? void 0 : U2.length); _2++) {
|
|
22926
|
+
const R2 = U2[_2], L0 = R2 == null ? void 0 : R2.prop, m0 = i0 == null ? void 0 : i0[_2], G = m0 == null ? void 0 : m0.content;
|
|
22927
|
+
e2[L0] = G;
|
|
22928
22928
|
}
|
|
22929
|
-
d0.push(
|
|
22929
|
+
d0.push(e2);
|
|
22930
22930
|
}
|
|
22931
22931
|
});
|
|
22932
|
-
let
|
|
22932
|
+
let B0 = T0(f.value);
|
|
22933
22933
|
f.value.splice(d2 + 1, 0, ...d0);
|
|
22934
22934
|
}
|
|
22935
22935
|
} else {
|
|
@@ -22957,7 +22957,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22957
22957
|
} catch (P) {
|
|
22958
22958
|
console.error("粘贴失败:", P);
|
|
22959
22959
|
}
|
|
22960
|
-
}, Oe = (O) => O.trim().split(/\r\n|\n|\r/).map((H) => H.trim() ? H.split(" ").map((
|
|
22960
|
+
}, Oe = (O) => O.trim().split(/\r\n|\n|\r/).map((H) => H.trim() ? H.split(" ").map((a2) => a2.replace(/^"(.*)"$/, "$1")) : [""]), A0 = (O) => {
|
|
22961
22961
|
var z;
|
|
22962
22962
|
O && (T.value = {
|
|
22963
22963
|
rowIndex: O == null ? void 0 : O.$index,
|
|
@@ -22965,8 +22965,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22965
22965
|
columnProp: (z = O.column) == null ? void 0 : z.property
|
|
22966
22966
|
});
|
|
22967
22967
|
}, vt = (O, z) => {
|
|
22968
|
-
const P = parseInt(O.replace("#", ""), 16), H = Math.round(2.55 * z),
|
|
22969
|
-
return "#" + (16777216 +
|
|
22968
|
+
const P = parseInt(O.replace("#", ""), 16), H = Math.round(2.55 * z), a2 = Math.max((P >> 16) - H, 0), i2 = Math.max((P >> 8 & 255) - H, 0), k2 = Math.max((P & 255) - H, 0);
|
|
22969
|
+
return "#" + (16777216 + a2 * 65536 + i2 * 256 + k2).toString(16).slice(1);
|
|
22970
22970
|
}, mt = ({ row: O, rowIndex: z }) => {
|
|
22971
22971
|
var P;
|
|
22972
22972
|
if ((P = n.highlightRowIds) != null && P.has(O == null ? void 0 : O.id)) {
|
|
@@ -22988,8 +22988,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22988
22988
|
if (!H || H === "" || H === null || H === void 0)
|
|
22989
22989
|
H = "";
|
|
22990
22990
|
else {
|
|
22991
|
-
const
|
|
22992
|
-
H =
|
|
22991
|
+
const a2 = Ue(H, ["YYYY-MM-DD", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
|
|
22992
|
+
H = a2.isValid() ? a2.format("YYYY-MM-DD") : "";
|
|
22993
22993
|
}
|
|
22994
22994
|
z[P.prop] = H;
|
|
22995
22995
|
}
|
|
@@ -22999,26 +22999,26 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
22999
22999
|
maximumFractionDigits: 2
|
|
23000
23000
|
}), Q1 = (O) => {
|
|
23001
23001
|
const { columns: z, data: P } = O, H = [];
|
|
23002
|
-
return z.forEach((
|
|
23002
|
+
return z.forEach((a2, i2) => {
|
|
23003
23003
|
var u2, x2;
|
|
23004
|
-
if (
|
|
23005
|
-
H[
|
|
23004
|
+
if (i2 === 0) {
|
|
23005
|
+
H[i2] = "合计";
|
|
23006
23006
|
return;
|
|
23007
23007
|
}
|
|
23008
|
-
const k2 =
|
|
23008
|
+
const k2 = a2.property, Z = (x2 = (u2 = n.columns) == null ? void 0 : u2.filter((g2) => g2 == null ? void 0 : g2.showSummary)) == null ? void 0 : x2.map((g2) => g2.prop);
|
|
23009
23009
|
if (Z != null && Z.includes(k2)) {
|
|
23010
23010
|
const g2 = P == null ? void 0 : P.map((d2) => Number(d2[k2]));
|
|
23011
23011
|
if (g2.every((d2) => isNaN(d2)))
|
|
23012
|
-
H[
|
|
23012
|
+
H[i2] = "N/A";
|
|
23013
23013
|
else {
|
|
23014
23014
|
const d2 = g2.reduce((N2, d0) => {
|
|
23015
|
-
const
|
|
23016
|
-
return isNaN(
|
|
23015
|
+
const B0 = Number(d0);
|
|
23016
|
+
return isNaN(B0) ? N2 : N2 + B0;
|
|
23017
23017
|
}, 0);
|
|
23018
|
-
H[
|
|
23018
|
+
H[i2] = X1(d2), ["price", "sales", "cost", "profit"].includes(k2) && (H[i2] = "¥" + H[i2]);
|
|
23019
23019
|
}
|
|
23020
23020
|
} else
|
|
23021
|
-
H[
|
|
23021
|
+
H[i2] = "";
|
|
23022
23022
|
}), H;
|
|
23023
23023
|
};
|
|
23024
23024
|
q2(
|
|
@@ -23042,8 +23042,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23042
23042
|
return z(p.value), O;
|
|
23043
23043
|
});
|
|
23044
23044
|
return (O, z) => {
|
|
23045
|
-
var Z, u2, x2, g2, d2, N2, d0,
|
|
23046
|
-
const P = Q("svg-icon"), H = Q("el-table-column"),
|
|
23045
|
+
var Z, u2, x2, g2, d2, N2, d0, B0, i0;
|
|
23046
|
+
const P = Q("svg-icon"), H = Q("el-table-column"), a2 = Q("el-table"), i2 = Q("el-pagination"), k2 = Q("el-icon");
|
|
23047
23047
|
return _(), V("div", {
|
|
23048
23048
|
class: "table-content-show",
|
|
23049
23049
|
ref_key: "tableOuterRef",
|
|
@@ -23067,12 +23067,12 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23067
23067
|
key: 1,
|
|
23068
23068
|
id: "excludeElementId"
|
|
23069
23069
|
}, void 0, !0),
|
|
23070
|
-
!i.collapsed && !i.isCardViewport && ((u2 = i.columns) == null ? void 0 : u2.length) > 0 ? (_(), q(
|
|
23070
|
+
!i.collapsed && !i.isCardViewport && ((u2 = i.columns) == null ? void 0 : u2.length) > 0 ? (_(), q(a2, {
|
|
23071
23071
|
border: !0,
|
|
23072
23072
|
"highlight-current-row": "",
|
|
23073
23073
|
class: "table-wrap",
|
|
23074
23074
|
data: v.value,
|
|
23075
|
-
"show-summary": (x2 = i.columns) == null ? void 0 : x2.some((
|
|
23075
|
+
"show-summary": (x2 = i.columns) == null ? void 0 : x2.some((e2) => e2 == null ? void 0 : e2.showSummary),
|
|
23076
23076
|
onSortChange: w,
|
|
23077
23077
|
"sum-text": (g2 = i.summaryInfo) == null ? void 0 : g2.text,
|
|
23078
23078
|
"summary-method": Q1,
|
|
@@ -23098,10 +23098,10 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23098
23098
|
onRowClick: I2
|
|
23099
23099
|
}, {
|
|
23100
23100
|
empty: L(() => z[3] || (z[3] = [
|
|
23101
|
-
|
|
23101
|
+
n2("div", { class: "ss-empty-text" }, "暂无数据", -1)
|
|
23102
23102
|
])),
|
|
23103
23103
|
default: L(() => {
|
|
23104
|
-
var
|
|
23104
|
+
var e2, U2, _2, R2, L0, m0;
|
|
23105
23105
|
return [
|
|
23106
23106
|
N.value ? (_(), q(H, {
|
|
23107
23107
|
key: 0,
|
|
@@ -23111,8 +23111,8 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23111
23111
|
"class-name": "no-ellipsis"
|
|
23112
23112
|
}, {
|
|
23113
23113
|
default: L(({ row: G, $index: We }) => [
|
|
23114
|
-
u4(
|
|
23115
|
-
|
|
23114
|
+
u4(n2("div", Sk, [
|
|
23115
|
+
n2("span", Ck, [
|
|
23116
23116
|
Y(P, {
|
|
23117
23117
|
name: "drag",
|
|
23118
23118
|
style: { width: "15px", height: "15px", cursor: "move" }
|
|
@@ -23127,11 +23127,11 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23127
23127
|
i.allowSelect ? (_(), q(H, {
|
|
23128
23128
|
key: 1,
|
|
23129
23129
|
type: "selection",
|
|
23130
|
-
width: (
|
|
23130
|
+
width: (e2 = i.columns) != null && e2.some((G) => G == null ? void 0 : G.showSummary) ? 55 : 38,
|
|
23131
23131
|
fixed: "",
|
|
23132
23132
|
selectable: v2
|
|
23133
23133
|
}, null, 8, ["width"])) : J("", !0),
|
|
23134
|
-
n != null && n.showIndex && !((U2 = n == null ? void 0 : n.tableData) != null && U2.some((G) => G == null ? void 0 : G.children)) && ((R2 = (
|
|
23134
|
+
n != null && n.showIndex && !((U2 = n == null ? void 0 : n.tableData) != null && U2.some((G) => G == null ? void 0 : G.children)) && ((R2 = (_2 = n == null ? void 0 : n.columns) == null ? void 0 : _2[0]) == null ? void 0 : R2.prop) !== "disabled" ? (_(), q(H, {
|
|
23135
23135
|
key: 2,
|
|
23136
23136
|
type: "index",
|
|
23137
23137
|
label: "序号",
|
|
@@ -23145,7 +23145,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23145
23145
|
]),
|
|
23146
23146
|
_: 1
|
|
23147
23147
|
})) : J("", !0),
|
|
23148
|
-
(
|
|
23148
|
+
(L0 = i.tableData) != null && L0.some((G) => G == null ? void 0 : G.children) && ((m0 = i.columns) == null ? void 0 : m0.length) > 0 ? (_(), q(H, {
|
|
23149
23149
|
key: 3,
|
|
23150
23150
|
type: "index",
|
|
23151
23151
|
label: "序号",
|
|
@@ -23193,7 +23193,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23193
23193
|
});
|
|
23194
23194
|
}
|
|
23195
23195
|
}, [
|
|
23196
|
-
["File", "Picture"].includes(G == null ? void 0 : G.formType) ? (_(), q(Ot(
|
|
23196
|
+
["File", "Picture"].includes(G == null ? void 0 : G.formType) ? (_(), q(Ot(_0(G == null ? void 0 : G.formType)), {
|
|
23197
23197
|
key: 0,
|
|
23198
23198
|
modelValue: m2 == null ? void 0 : m2[G == null ? void 0 : G.prop],
|
|
23199
23199
|
isEdit: !1,
|
|
@@ -23242,7 +23242,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23242
23242
|
], 64)) : (_(), q(Ot((() => {
|
|
23243
23243
|
var hi;
|
|
23244
23244
|
const S2 = ge ?? t0 ?? G, Z1 = m2 != null && m2[S2 == null ? void 0 : S2.prop] && Array.isArray(m2[S2.prop]) && ((hi = m2[S2.prop]) != null && hi.every((Fr) => typeof Fr == "Object")) ? "Upload" : ((S2 == null ? void 0 : S2.formType) ?? (S2 == null ? void 0 : S2.columnType)) === "" || !((S2 == null ? void 0 : S2.formType) ?? (S2 == null ? void 0 : S2.columnType)) ? "Input" : (S2 == null ? void 0 : S2.formType) ?? (S2 == null ? void 0 : S2.columnType);
|
|
23245
|
-
return
|
|
23245
|
+
return _0(Z1);
|
|
23246
23246
|
})()), {
|
|
23247
23247
|
key: 1,
|
|
23248
23248
|
modelValue: m2[f0 == null ? void 0 : f0.property],
|
|
@@ -23252,9 +23252,9 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23252
23252
|
direction: (ai = ge ?? t0 ?? G) == null ? void 0 : ai.controlDirection,
|
|
23253
23253
|
align: (ci = ge ?? t0 ?? G) == null ? void 0 : ci.controlAlign,
|
|
23254
23254
|
optionUrl: ge ?? t0 ?? G,
|
|
23255
|
-
"suggest-list":
|
|
23256
|
-
loading:
|
|
23257
|
-
onFocus: (S2) =>
|
|
23255
|
+
"suggest-list": b0(y2)(m2, f0),
|
|
23256
|
+
loading: b0(j2)(m2, f0),
|
|
23257
|
+
onFocus: (S2) => A0(ni),
|
|
23258
23258
|
onInput: (S2) => K2(S2, m2, f0, ge ?? t0 ?? G),
|
|
23259
23259
|
onSelectSuggest: (S2) => W(S2, m2, f0),
|
|
23260
23260
|
onChange: (S2) => {
|
|
@@ -23272,26 +23272,26 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23272
23272
|
}),
|
|
23273
23273
|
_: 3
|
|
23274
23274
|
}, 8, ["data", "show-summary", "sum-text", "default-sort"])) : i.collapsed ? J("", !0) : (_(), V("div", Pk, [
|
|
23275
|
-
(_(!0), V(D2, null, V2(v.value, (
|
|
23276
|
-
key:
|
|
23275
|
+
(_(!0), V(D2, null, V2(v.value, (e2) => (_(), q(xk, {
|
|
23276
|
+
key: e2 == null ? void 0 : e2.id,
|
|
23277
23277
|
showTag: !1
|
|
23278
23278
|
}, {
|
|
23279
23279
|
header: L(() => {
|
|
23280
|
-
var U2,
|
|
23280
|
+
var U2, _2, R2, L0, m0, G, We, je, m2, t0, Te;
|
|
23281
23281
|
return [
|
|
23282
|
-
|
|
23283
|
-
|
|
23284
|
-
title:
|
|
23282
|
+
n2("div", Ak, [
|
|
23283
|
+
n2("span", {
|
|
23284
|
+
title: e2 == null ? void 0 : e2[(U2 = e0.value) == null ? void 0 : U2.prop],
|
|
23285
23285
|
style: p0({
|
|
23286
|
-
cursor: (
|
|
23286
|
+
cursor: (_2 = e0.value) != null && _2.isExistChild || Array.isArray((R2 = e0.value) == null ? void 0 : R2.relatedPages) && ((m0 = (L0 = e0.value) == null ? void 0 : L0.relatedPages) == null ? void 0 : m0.length) > 0 ? "pointer" : "default",
|
|
23287
23287
|
color: (G = e0.value) != null && G.isExistChild || Array.isArray((We = e0.value) == null ? void 0 : We.relatedPages) && ((m2 = (je = e0.value) == null ? void 0 : je.relatedPages) == null ? void 0 : m2.length) > 0 ? "var(--vertical-menuitem-active-bg)" : "",
|
|
23288
23288
|
textDecoration: (t0 = e0.value) != null && t0.isExistChild ? "underline" : ""
|
|
23289
23289
|
}),
|
|
23290
23290
|
onClick: (ni) => {
|
|
23291
23291
|
var f0, ge, J1, d1;
|
|
23292
|
-
return S(
|
|
23292
|
+
return S(e2 == null ? void 0 : e2[(f0 = e0.value) == null ? void 0 : f0.prop], (ge = e0.value) == null ? void 0 : ge.prop, e2, { data: e2 == null ? void 0 : e2[(J1 = e0.value) == null ? void 0 : J1.prop], isExistChild: (d1 = e0.value) == null ? void 0 : d1.isExistChild });
|
|
23293
23293
|
}
|
|
23294
|
-
}, $2(
|
|
23294
|
+
}, $2(e2[(Te = e0.value) == null ? void 0 : Te.prop]), 13, Bk)
|
|
23295
23295
|
])
|
|
23296
23296
|
];
|
|
23297
23297
|
}),
|
|
@@ -23301,38 +23301,38 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23301
23301
|
content: L(() => {
|
|
23302
23302
|
var U2;
|
|
23303
23303
|
return [
|
|
23304
|
-
(_(!0), V(D2, null, V2((U2 = Yr.value) == null ? void 0 : U2.filter((
|
|
23304
|
+
(_(!0), V(D2, null, V2((U2 = Yr.value) == null ? void 0 : U2.filter((_2) => {
|
|
23305
23305
|
var R2;
|
|
23306
|
-
return (
|
|
23307
|
-
}), (
|
|
23306
|
+
return (_2 == null ? void 0 : _2.prop) !== "operate" && (_2 == null ? void 0 : _2.prop) !== ((R2 = e0.value) == null ? void 0 : R2.prop);
|
|
23307
|
+
}), (_2) => (_(), V("div", {
|
|
23308
23308
|
class: "card-content",
|
|
23309
|
-
key:
|
|
23309
|
+
key: _2 == null ? void 0 : _2.prop
|
|
23310
23310
|
}, [
|
|
23311
|
-
|
|
23312
|
-
title:
|
|
23311
|
+
n2("span", {
|
|
23312
|
+
title: _2 == null ? void 0 : _2.label
|
|
23313
23313
|
}, [
|
|
23314
|
-
r0($2(
|
|
23315
|
-
z[5] || (z[5] =
|
|
23314
|
+
r0($2(_2 == null ? void 0 : _2.label), 1),
|
|
23315
|
+
z[5] || (z[5] = n2("span", { style: { "margin-left": "3px" } }, ":", -1))
|
|
23316
23316
|
], 8, Lk),
|
|
23317
|
-
|
|
23318
|
-
title:
|
|
23319
|
-
}, $2(
|
|
23317
|
+
n2("span", {
|
|
23318
|
+
title: e2 == null ? void 0 : e2[_2 == null ? void 0 : _2.prop]
|
|
23319
|
+
}, $2(e2 == null ? void 0 : e2[_2 == null ? void 0 : _2.prop]), 9, Ek)
|
|
23320
23320
|
]))), 128))
|
|
23321
23321
|
];
|
|
23322
23322
|
}),
|
|
23323
23323
|
footer: L(() => {
|
|
23324
|
-
var U2,
|
|
23324
|
+
var U2, _2;
|
|
23325
23325
|
return [
|
|
23326
|
-
|
|
23326
|
+
n2("div", Hk, [
|
|
23327
23327
|
(U2 = i.rowButton) != null && U2.find((R2) => (R2 == null ? void 0 : R2.label) === "编辑") ? (_(), q(P, {
|
|
23328
23328
|
key: 0,
|
|
23329
|
-
onClick: (R2) => n0("编辑",
|
|
23329
|
+
onClick: (R2) => n0("编辑", e2, { extra: { label: "编辑" } }),
|
|
23330
23330
|
name: "card-edit",
|
|
23331
23331
|
style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
|
|
23332
23332
|
}, null, 8, ["onClick"])) : J("", !0),
|
|
23333
|
-
(
|
|
23333
|
+
(_2 = i.rowButton) != null && _2.find((R2) => (R2 == null ? void 0 : R2.label) === "删除") ? (_(), q(P, {
|
|
23334
23334
|
key: 1,
|
|
23335
|
-
onClick: (R2) => n0("删除",
|
|
23335
|
+
onClick: (R2) => n0("删除", e2, { extra: { label: "删除" } }),
|
|
23336
23336
|
name: "card-delete",
|
|
23337
23337
|
style: { width: "15px", height: "15px", color: "#ff0000" }
|
|
23338
23338
|
}, null, 8, ["onClick"])) : J("", !0)
|
|
@@ -23348,7 +23348,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23348
23348
|
buttons: oe.value,
|
|
23349
23349
|
columns: p.value
|
|
23350
23350
|
}, void 0, !0),
|
|
23351
|
-
n != null && n.isShowPagination && i.tableData.length > 0 ? (_(), q(
|
|
23351
|
+
n != null && n.isShowPagination && i.tableData.length > 0 ? (_(), q(i2, {
|
|
23352
23352
|
key: 1,
|
|
23353
23353
|
onSizeChange: y,
|
|
23354
23354
|
onCurrentChange: U0,
|
|
@@ -23356,53 +23356,53 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23356
23356
|
"page-sizes": (N2 = i.pageObj) == null ? void 0 : N2.pageSizes,
|
|
23357
23357
|
"page-size": ((d0 = i.pageObj) == null ? void 0 : d0.pageSize) ?? 10,
|
|
23358
23358
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
23359
|
-
total: ((
|
|
23359
|
+
total: ((B0 = i.pageObj) == null ? void 0 : B0.total) ?? 0
|
|
23360
23360
|
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : J("", !0)
|
|
23361
23361
|
])),
|
|
23362
23362
|
!i.collapsed && ((i0 = n == null ? void 0 : n.bottomButton) == null ? void 0 : i0.length) > 0 ? (_(), V("div", Nk, [
|
|
23363
|
-
(_(!0), V(D2, null, V2(n == null ? void 0 : n.bottomButton, (
|
|
23364
|
-
var
|
|
23363
|
+
(_(!0), V(D2, null, V2(n == null ? void 0 : n.bottomButton, (e2, U2) => {
|
|
23364
|
+
var _2, R2, L0;
|
|
23365
23365
|
return _(), V(D2, { key: U2 }, [
|
|
23366
|
-
(
|
|
23367
|
-
(
|
|
23366
|
+
(R2 = (_2 = n == null ? void 0 : n.signatureButtons) == null ? void 0 : _2.has) != null && R2.call(_2, e2 == null ? void 0 : e2.label) ? (_(), V("div", Rk, [
|
|
23367
|
+
(e2 == null ? void 0 : e2.type) !== "pictureUpload" ? (_(), q(E0, {
|
|
23368
23368
|
key: 0,
|
|
23369
23369
|
onClickTrigger: z[1] || (z[1] = () => {
|
|
23370
23370
|
}),
|
|
23371
|
-
disabled: I.value === (
|
|
23372
|
-
modelValue:
|
|
23373
|
-
onClick: (
|
|
23371
|
+
disabled: I.value === (e2 == null ? void 0 : e2.label),
|
|
23372
|
+
modelValue: e2 == null ? void 0 : e2.label,
|
|
23373
|
+
onClick: (m0) => h2(e2, U2)
|
|
23374
23374
|
}, null, 8, ["disabled", "modelValue", "onClick"])) : J("", !0),
|
|
23375
|
-
|
|
23376
|
-
(
|
|
23375
|
+
n2("div", $k, [
|
|
23376
|
+
(L0 = n == null ? void 0 : n.signaturePreview) != null && L0.call(n, null, U2, e2 == null ? void 0 : e2.label) ? (_(), V("img", {
|
|
23377
23377
|
key: 0,
|
|
23378
|
-
src: n.signaturePreview(null, U2,
|
|
23378
|
+
src: n.signaturePreview(null, U2, e2 == null ? void 0 : e2.label),
|
|
23379
23379
|
alt: "签名预览",
|
|
23380
|
-
onClick: Fe((
|
|
23381
|
-
var
|
|
23382
|
-
return (
|
|
23380
|
+
onClick: Fe((m0) => {
|
|
23381
|
+
var G;
|
|
23382
|
+
return (G = n.signaturePreviewClick) == null ? void 0 : G.call(n, n.signaturePreview(null, U2, e2 == null ? void 0 : e2.label));
|
|
23383
23383
|
}, ["stop"])
|
|
23384
23384
|
}, null, 8, Wk)) : (_(), q(k2, {
|
|
23385
23385
|
key: 1,
|
|
23386
23386
|
class: "signature-row-preview-empty"
|
|
23387
23387
|
}, {
|
|
23388
23388
|
default: L(() => [
|
|
23389
|
-
Y(
|
|
23389
|
+
Y(b0(Bl))
|
|
23390
23390
|
]),
|
|
23391
23391
|
_: 1
|
|
23392
23392
|
}))
|
|
23393
23393
|
])
|
|
23394
23394
|
])) : (_(), V("div", jk, [
|
|
23395
|
-
(
|
|
23395
|
+
(e2 == null ? void 0 : e2.type) === "pictureUpload" ? (_(), q(Wr, {
|
|
23396
23396
|
key: 0,
|
|
23397
|
-
modelValue: m.value[(
|
|
23398
|
-
"onUpdate:modelValue": (
|
|
23397
|
+
modelValue: m.value[(e2 == null ? void 0 : e2.prop) ?? U2],
|
|
23398
|
+
"onUpdate:modelValue": (m0) => m.value[(e2 == null ? void 0 : e2.prop) ?? U2] = m0
|
|
23399
23399
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (_(), q(E0, {
|
|
23400
23400
|
key: 1,
|
|
23401
23401
|
onClickTrigger: z[2] || (z[2] = () => {
|
|
23402
23402
|
}),
|
|
23403
|
-
disabled: I.value === (
|
|
23404
|
-
modelValue:
|
|
23405
|
-
onClick: (
|
|
23403
|
+
disabled: I.value === (e2 == null ? void 0 : e2.label),
|
|
23404
|
+
modelValue: e2 == null ? void 0 : e2.label,
|
|
23405
|
+
onClick: (m0) => h2(e2, U2)
|
|
23406
23406
|
}, null, 8, ["disabled", "modelValue", "onClick"]))
|
|
23407
23407
|
]))
|
|
23408
23408
|
], 64);
|
|
@@ -23412,7 +23412,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23412
23412
|
style: p0({ top: u.y + "px", left: u.x + "px", position: "fixed", zIndex: 999 })
|
|
23413
23413
|
}, {
|
|
23414
23414
|
content: L(() => [
|
|
23415
|
-
|
|
23415
|
+
n2("div", Uk, [
|
|
23416
23416
|
Y(E0, {
|
|
23417
23417
|
emptyColor: !0,
|
|
23418
23418
|
onClickTrigger: o0,
|
|
@@ -23436,7 +23436,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23436
23436
|
], 512);
|
|
23437
23437
|
};
|
|
23438
23438
|
}
|
|
23439
|
-
}, qk = /* @__PURE__ */ L2(Ik, [["__scopeId", "data-v-
|
|
23439
|
+
}, qk = /* @__PURE__ */ L2(Ik, [["__scopeId", "data-v-d033ed3b"]]), Yk = {
|
|
23440
23440
|
__name: "index",
|
|
23441
23441
|
props: {
|
|
23442
23442
|
value: String,
|
|
@@ -23460,7 +23460,7 @@ const lC = /* @__PURE__ */ i2.inputHandler.of((i, e, t, n, s) => {
|
|
|
23460
23460
|
() => {
|
|
23461
23461
|
var a;
|
|
23462
23462
|
const r = (a = t == null ? void 0 : t.content) == null ? void 0 : a.tableData;
|
|
23463
|
-
!r || !Array.isArray(r) || r.length === 0 || (n.value =
|
|
23463
|
+
!r || !Array.isArray(r) || r.length === 0 || (n.value = T0(r));
|
|
23464
23464
|
},
|
|
23465
23465
|
{ deep: !0, immediate: !0 }
|
|
23466
23466
|
), q2(
|
|
@@ -23952,7 +23952,7 @@ const iD = {
|
|
|
23952
23952
|
"Content-Type": "application/json"
|
|
23953
23953
|
}
|
|
23954
23954
|
}) : N = await fn({
|
|
23955
|
-
url: (j =
|
|
23955
|
+
url: (j = T0(C)) == null ? void 0 : j.url
|
|
23956
23956
|
}), !C.url.toUpperCase().includes(".OBJ") && !C.url.toUpperCase().includes(".STL") && !C.url.toUpperCase().includes(".MTL") && !C.url.toUpperCase().includes(".URDF")) {
|
|
23957
23957
|
let I = URL.createObjectURL(N == null ? void 0 : N.data);
|
|
23958
23958
|
p.value = I;
|
|
@@ -23960,14 +23960,14 @@ const iD = {
|
|
|
23960
23960
|
p.value = C == null ? void 0 : C.url;
|
|
23961
23961
|
return p.value;
|
|
23962
23962
|
}, m = async (C) => {
|
|
23963
|
-
var B, j, I,
|
|
23963
|
+
var B, j, I, r2, h2, K, C2, M2, w2;
|
|
23964
23964
|
if ((C == null ? void 0 : C.oldUrl) || (C == null ? void 0 : C.url)) {
|
|
23965
23965
|
const E2 = B3.service({
|
|
23966
23966
|
lock: !0,
|
|
23967
23967
|
text: "Loading",
|
|
23968
23968
|
background: "rgba(0, 0, 0, 0.7)"
|
|
23969
23969
|
});
|
|
23970
|
-
u.value = C != null && C.oldUrl ? (I = C == null ? void 0 : C.oldUrl) == null ? void 0 : I.split("/")[((j = (B = C == null ? void 0 : C.oldUrl) == null ? void 0 : B.split("/")) == null ? void 0 : j.length) - 1] : (C == null ? void 0 : C.name) + "." + ((w2 = (h2 = (
|
|
23970
|
+
u.value = C != null && C.oldUrl ? (I = C == null ? void 0 : C.oldUrl) == null ? void 0 : I.split("/")[((j = (B = C == null ? void 0 : C.oldUrl) == null ? void 0 : B.split("/")) == null ? void 0 : j.length) - 1] : (C == null ? void 0 : C.name) + "." + ((w2 = (h2 = (r2 = T0(C)) == null ? void 0 : r2.url) == null ? void 0 : h2.split(".")) == null ? void 0 : w2[((M2 = (C2 = (K = T0(C)) == null ? void 0 : K.url) == null ? void 0 : C2.split(".")) == null ? void 0 : M2.length) - 1]), p.value = await v(C).finally(() => {
|
|
23971
23971
|
E2.close();
|
|
23972
23972
|
});
|
|
23973
23973
|
} else {
|
|
@@ -23984,39 +23984,39 @@ const iD = {
|
|
|
23984
23984
|
}, b = () => {
|
|
23985
23985
|
a.value = !1;
|
|
23986
23986
|
}, D = async (C) => {
|
|
23987
|
-
var I,
|
|
23987
|
+
var I, r2, h2, K, C2, M2;
|
|
23988
23988
|
if (!C) return;
|
|
23989
|
-
const N = B3.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)" }), B = await v(C).finally(() => N.close()), j = C != null && C.oldUrl ? C.oldUrl.split("/").pop() : (C == null ? void 0 : C.name) + "." + ((M2 = (
|
|
23989
|
+
const N = B3.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)" }), B = await v(C).finally(() => N.close()), j = C != null && C.oldUrl ? C.oldUrl.split("/").pop() : (C == null ? void 0 : C.name) + "." + ((M2 = (r2 = (I = T0(C)) == null ? void 0 : I.url) == null ? void 0 : r2.split(".")) == null ? void 0 : M2[((C2 = (K = (h2 = T0(C)) == null ? void 0 : h2.url) == null ? void 0 : K.split(".")) == null ? void 0 : C2.length) - 1]);
|
|
23990
23990
|
Nl(B, j);
|
|
23991
23991
|
}, M = (C) => {
|
|
23992
23992
|
var N;
|
|
23993
|
-
f.value = (N =
|
|
23993
|
+
f.value = (N = T0(f.value)) == null ? void 0 : N.filter((B, j) => j !== C), h.value = f.value;
|
|
23994
23994
|
}, T = (C) => {
|
|
23995
23995
|
var h2;
|
|
23996
23996
|
const N = C.split(","), B = (h2 = N == null ? void 0 : N[0]) == null ? void 0 : h2.match(/:(.*?);/)[1], j = atob(N[1]);
|
|
23997
23997
|
let I = j.length;
|
|
23998
|
-
const
|
|
23998
|
+
const r2 = new Uint8Array(I);
|
|
23999
23999
|
for (; I--; )
|
|
24000
|
-
|
|
24001
|
-
return new Blob([
|
|
24000
|
+
r2[I] = j.charCodeAt(I);
|
|
24001
|
+
return new Blob([r2], { type: B });
|
|
24002
24002
|
}, x = async () => {
|
|
24003
24003
|
var j;
|
|
24004
24004
|
o.value = !0;
|
|
24005
24005
|
const C = (j = h.value) == null ? void 0 : j.map(async (I) => {
|
|
24006
24006
|
if (I != null && I.base64) {
|
|
24007
|
-
const
|
|
24008
|
-
return
|
|
24007
|
+
const r2 = new FormData(), h2 = T(I == null ? void 0 : I.base64);
|
|
24008
|
+
return r2.append("file", h2, I == null ? void 0 : I.name), await T1(r2);
|
|
24009
24009
|
} else if (I != null && I.raw) {
|
|
24010
|
-
const
|
|
24011
|
-
return
|
|
24010
|
+
const r2 = new FormData();
|
|
24011
|
+
return r2.append("file", I == null ? void 0 : I.raw, I == null ? void 0 : I.name), await T1(r2);
|
|
24012
24012
|
} else
|
|
24013
24013
|
return I;
|
|
24014
24014
|
}), N = await Promise.all(C);
|
|
24015
24015
|
let B = [];
|
|
24016
24016
|
N == null || N.map((I) => {
|
|
24017
|
-
var
|
|
24017
|
+
var r2, h2, K, C2, M2, w2;
|
|
24018
24018
|
return B.push({
|
|
24019
|
-
name: ((h2 = (
|
|
24019
|
+
name: ((h2 = (r2 = I == null ? void 0 : I.data) == null ? void 0 : r2.result) == null ? void 0 : h2.fileName) ?? (I == null ? void 0 : I.name),
|
|
24020
24020
|
url: ((C2 = (K = I == null ? void 0 : I.data) == null ? void 0 : K.result) == null ? void 0 : C2.url) ?? (I == null ? void 0 : I.url)
|
|
24021
24021
|
}), (w2 = (M2 = I == null ? void 0 : I.data) == null ? void 0 : M2.result) == null ? void 0 : w2.url;
|
|
24022
24022
|
}), ce.success("上传成功"), r.value = B, l("update:modelValue", B), l("change", B), h.value = [], d.value = !1, o.value = !1;
|
|
@@ -24034,8 +24034,8 @@ const iD = {
|
|
|
24034
24034
|
ce.warning(`文件大小不能超过 ${t.maxSizeMB}MB`), f.value = f.value.filter((h2) => h2.uid !== C.uid);
|
|
24035
24035
|
return;
|
|
24036
24036
|
}
|
|
24037
|
-
const
|
|
24038
|
-
|
|
24037
|
+
const r2 = new FileReader();
|
|
24038
|
+
r2.onload = (h2) => {
|
|
24039
24039
|
const K = h.value === "" ? [] : h.value;
|
|
24040
24040
|
K.push({
|
|
24041
24041
|
name: C.name,
|
|
@@ -24043,18 +24043,18 @@ const iD = {
|
|
|
24043
24043
|
type: C.type,
|
|
24044
24044
|
base64: h2.target.result
|
|
24045
24045
|
}), h.value = K;
|
|
24046
|
-
},
|
|
24046
|
+
}, r2.onerror = (h2) => {
|
|
24047
24047
|
console.error("文件读取错误:", h2), fileData.value = {
|
|
24048
24048
|
name: "",
|
|
24049
24049
|
size: 0,
|
|
24050
24050
|
type: "",
|
|
24051
24051
|
base64: ""
|
|
24052
24052
|
};
|
|
24053
|
-
},
|
|
24053
|
+
}, r2.readAsDataURL(C.raw);
|
|
24054
24054
|
};
|
|
24055
24055
|
return (C, N) => {
|
|
24056
24056
|
var h2;
|
|
24057
|
-
const B = Q("svg-icon"), j = Q("el-icon"), I = Q("el-upload"),
|
|
24057
|
+
const B = Q("svg-icon"), j = Q("el-icon"), I = Q("el-upload"), r2 = t9("loading");
|
|
24058
24058
|
return t != null && t.isEdit && !(t != null && t.disabled) ? (_(), V("div", iD, [
|
|
24059
24059
|
(h2 = r.value) != null && h2.length ? (_(), V("div", sD, [
|
|
24060
24060
|
(_(!0), V(D2, null, V2(r.value, (K) => {
|
|
@@ -24064,11 +24064,11 @@ const iD = {
|
|
|
24064
24064
|
key: K,
|
|
24065
24065
|
style: { display: "flex", "align-items": "center", gap: "8px", width: "100%" }
|
|
24066
24066
|
}, [
|
|
24067
|
-
|
|
24067
|
+
n2("div", {
|
|
24068
24068
|
style: { flex: "1", "min-width": "0", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
24069
24069
|
title: K == null ? void 0 : K.name
|
|
24070
24070
|
}, $2((M2 = (C2 = K == null ? void 0 : K.url) == null ? void 0 : C2.split(".")) != null && M2[1] ? (K == null ? void 0 : K.name) + "." + ((Z2 = (w2 = K == null ? void 0 : K.url) == null ? void 0 : w2.split(".")) == null ? void 0 : Z2[((l0 = (E2 = K == null ? void 0 : K.url) == null ? void 0 : E2.split(".")) == null ? void 0 : l0.length) - 1]) : K == null ? void 0 : K.name), 9, lD),
|
|
24071
|
-
|
|
24071
|
+
n2("div", oD, [
|
|
24072
24072
|
Y(B, {
|
|
24073
24073
|
class: "icon-blue",
|
|
24074
24074
|
name: "EyeFill",
|
|
@@ -24098,26 +24098,26 @@ const iD = {
|
|
|
24098
24098
|
class: "upload-content"
|
|
24099
24099
|
}, {
|
|
24100
24100
|
tip: L(() => [
|
|
24101
|
-
|
|
24101
|
+
n2("div", rD, " 仅支持 " + $2(n.value) + " 格式文件,大小不超过 " + $2(t.maxSizeMB) + "MB ", 1)
|
|
24102
24102
|
]),
|
|
24103
24103
|
default: L(() => [
|
|
24104
24104
|
Y(j, { class: "el-icon--upload" }, {
|
|
24105
24105
|
default: L(() => [
|
|
24106
|
-
Y(
|
|
24106
|
+
Y(b0(w9))
|
|
24107
24107
|
]),
|
|
24108
24108
|
_: 1
|
|
24109
24109
|
}),
|
|
24110
|
-
N[1] || (N[1] =
|
|
24110
|
+
N[1] || (N[1] = n2("div", { class: "el-upload__text" }, [
|
|
24111
24111
|
r0("将文件拖到此处或"),
|
|
24112
|
-
|
|
24112
|
+
n2("em", null, "点击上传")
|
|
24113
24113
|
], -1))
|
|
24114
24114
|
]),
|
|
24115
24115
|
file: L(({ file: K, index: C2 }) => {
|
|
24116
24116
|
var M2, w2, E2, l0;
|
|
24117
24117
|
return [
|
|
24118
|
-
|
|
24119
|
-
|
|
24120
|
-
|
|
24118
|
+
n2("div", aD, [
|
|
24119
|
+
n2("div", cD, $2((w2 = (M2 = K == null ? void 0 : K.url) == null ? void 0 : M2.split(".")) != null && w2[1] ? (K == null ? void 0 : K.name) + "." + ((l0 = (E2 = K == null ? void 0 : K.url) == null ? void 0 : E2.split(".")) == null ? void 0 : l0[1]) : K == null ? void 0 : K.name), 1),
|
|
24120
|
+
n2("div", hD, [
|
|
24121
24121
|
Y(B, {
|
|
24122
24122
|
class: "icon-blue",
|
|
24123
24123
|
name: "EyeFill",
|
|
@@ -24137,11 +24137,11 @@ const iD = {
|
|
|
24137
24137
|
_: 1
|
|
24138
24138
|
}, 8, ["file-list"])
|
|
24139
24139
|
])), [
|
|
24140
|
-
[
|
|
24140
|
+
[r2, o.value]
|
|
24141
24141
|
])
|
|
24142
24142
|
]),
|
|
24143
24143
|
footer: L(() => [
|
|
24144
|
-
|
|
24144
|
+
n2("div", dD, [
|
|
24145
24145
|
Y(E0, {
|
|
24146
24146
|
onClickTrigger: k,
|
|
24147
24147
|
id: "themeBorderButton",
|
|
@@ -24175,18 +24175,18 @@ const iD = {
|
|
|
24175
24175
|
key: C2,
|
|
24176
24176
|
class: "readonly-file-item"
|
|
24177
24177
|
}, [
|
|
24178
|
-
|
|
24178
|
+
n2("span", {
|
|
24179
24179
|
class: "filename",
|
|
24180
24180
|
title: K == null ? void 0 : K.name
|
|
24181
24181
|
}, $2(K == null ? void 0 : K.name), 9, fD),
|
|
24182
|
-
|
|
24182
|
+
n2("span", pD, [
|
|
24183
24183
|
Y(j, {
|
|
24184
24184
|
class: "icon-blue action-icon",
|
|
24185
24185
|
title: "预览",
|
|
24186
24186
|
onClick: (M2) => m(K)
|
|
24187
24187
|
}, {
|
|
24188
24188
|
default: L(() => [
|
|
24189
|
-
Y(
|
|
24189
|
+
Y(b0(Ll))
|
|
24190
24190
|
]),
|
|
24191
24191
|
_: 2
|
|
24192
24192
|
}, 1032, ["onClick"]),
|
|
@@ -24196,7 +24196,7 @@ const iD = {
|
|
|
24196
24196
|
onClick: (M2) => D(K)
|
|
24197
24197
|
}, {
|
|
24198
24198
|
default: L(() => [
|
|
24199
|
-
Y(
|
|
24199
|
+
Y(b0(Pl))
|
|
24200
24200
|
]),
|
|
24201
24201
|
_: 2
|
|
24202
24202
|
}, 1032, ["onClick"])
|
|
@@ -24265,7 +24265,7 @@ const iD = {
|
|
|
24265
24265
|
default: L(() => [
|
|
24266
24266
|
Y(d, null, {
|
|
24267
24267
|
default: L(() => [
|
|
24268
|
-
Y(
|
|
24268
|
+
Y(b0(Hl))
|
|
24269
24269
|
]),
|
|
24270
24270
|
_: 1
|
|
24271
24271
|
})
|
|
@@ -24915,9 +24915,9 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
24915
24915
|
var B, j, I;
|
|
24916
24916
|
const A = Q("el-input-number"), C = Q("el-color-picker"), N = Q("el-button");
|
|
24917
24917
|
return _(), V("div", null, [
|
|
24918
|
-
|
|
24918
|
+
n2("div", kD, [
|
|
24919
24919
|
B2(x.$slots, "signatureRender", {}, void 0, !0),
|
|
24920
|
-
|
|
24920
|
+
n2("div", DD, [
|
|
24921
24921
|
B2(x.$slots, "signatureTypes", {}, void 0, !0)
|
|
24922
24922
|
])
|
|
24923
24923
|
]),
|
|
@@ -24929,8 +24929,8 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
24929
24929
|
onBeforeDestroy: M
|
|
24930
24930
|
}, {
|
|
24931
24931
|
default: L(() => [
|
|
24932
|
-
|
|
24933
|
-
Y(
|
|
24932
|
+
n2("div", OD, [
|
|
24933
|
+
Y(b0(CD), {
|
|
24934
24934
|
ref_key: "signaturePadRef",
|
|
24935
24935
|
ref: n,
|
|
24936
24936
|
options: h.value,
|
|
@@ -24938,28 +24938,28 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
24938
24938
|
"max-width": o.signOptions.minWidth
|
|
24939
24939
|
}, null, 8, ["options", "min-width", "max-width"])
|
|
24940
24940
|
]),
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
k[2] || (k[2] =
|
|
24941
|
+
n2("div", TD, [
|
|
24942
|
+
n2("div", null, [
|
|
24943
|
+
k[2] || (k[2] = n2("span", null, "画笔粗细:", -1)),
|
|
24944
24944
|
Y(A, {
|
|
24945
24945
|
modelValue: o.signOptions.minWidth,
|
|
24946
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
24946
|
+
"onUpdate:modelValue": k[0] || (k[0] = (r2) => o.signOptions.minWidth = r2),
|
|
24947
24947
|
min: 0.5,
|
|
24948
24948
|
max: 2.5,
|
|
24949
24949
|
step: 0.1,
|
|
24950
24950
|
size: "small"
|
|
24951
24951
|
}, null, 8, ["modelValue"])
|
|
24952
24952
|
]),
|
|
24953
|
-
|
|
24954
|
-
k[3] || (k[3] =
|
|
24953
|
+
n2("div", null, [
|
|
24954
|
+
k[3] || (k[3] = n2("span", null, "画笔颜色:", -1)),
|
|
24955
24955
|
Y(C, {
|
|
24956
24956
|
modelValue: o.signOptions.penColor,
|
|
24957
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
24957
|
+
"onUpdate:modelValue": k[1] || (k[1] = (r2) => o.signOptions.penColor = r2),
|
|
24958
24958
|
"color-format": "hex",
|
|
24959
24959
|
size: "default"
|
|
24960
24960
|
}, null, 8, ["modelValue"])
|
|
24961
24961
|
]),
|
|
24962
|
-
|
|
24962
|
+
n2("div", null, [
|
|
24963
24963
|
Y(N, {
|
|
24964
24964
|
size: "small",
|
|
24965
24965
|
disabled: !a.value,
|
|
@@ -25047,7 +25047,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25047
25047
|
})
|
|
25048
25048
|
]),
|
|
25049
25049
|
default: L(() => [
|
|
25050
|
-
|
|
25050
|
+
n2("div", null, [
|
|
25051
25051
|
B2(s.$slots, "dropTitle")
|
|
25052
25052
|
])
|
|
25053
25053
|
]),
|
|
@@ -25209,7 +25209,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25209
25209
|
a.value = m.root.innerHTML, r("update:modelValue", a.value);
|
|
25210
25210
|
});
|
|
25211
25211
|
}), e({ getDeltaOps: g, setContent: v }), (m, b) => (_(), V("div", PD, [
|
|
25212
|
-
|
|
25212
|
+
n2("div", {
|
|
25213
25213
|
ref_key: "quillEditorRef",
|
|
25214
25214
|
ref: s,
|
|
25215
25215
|
class: "rich-editor"
|
|
@@ -25251,7 +25251,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25251
25251
|
setup(i, { emit: e }) {
|
|
25252
25252
|
const t = i, n = e, s = R([]);
|
|
25253
25253
|
q2(() => t.value, (d) => {
|
|
25254
|
-
s.value =
|
|
25254
|
+
s.value = T0(d);
|
|
25255
25255
|
}, {
|
|
25256
25256
|
immediate: !0,
|
|
25257
25257
|
deep: !0
|
|
@@ -25259,7 +25259,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25259
25259
|
const l = (d) => {
|
|
25260
25260
|
n("change", d), o(d);
|
|
25261
25261
|
}, o = (d) => {
|
|
25262
|
-
let u =
|
|
25262
|
+
let u = T0(r.value);
|
|
25263
25263
|
const p = /* @__PURE__ */ new Set();
|
|
25264
25264
|
for (let f = 0; f < d.length; f++) {
|
|
25265
25265
|
const g = d[f];
|
|
@@ -25271,7 +25271,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25271
25271
|
const { value: u } = d;
|
|
25272
25272
|
return ((f = r.value) == null ? void 0 : f.find((g) => u == g)) ? "active" : "";
|
|
25273
25273
|
}, c = (d) => {
|
|
25274
|
-
const { value: u } = d, p =
|
|
25274
|
+
const { value: u } = d, p = T0(r.value), f = p.findIndex((g) => g === u);
|
|
25275
25275
|
return f >= 0 ? p.splice(f, 1) : p.push(u), p;
|
|
25276
25276
|
}, h = (d) => {
|
|
25277
25277
|
const u = c(d);
|
|
@@ -25291,11 +25291,11 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25291
25291
|
onChange: l
|
|
25292
25292
|
}, {
|
|
25293
25293
|
label: L(({ label: g, value: v }) => [
|
|
25294
|
-
|
|
25294
|
+
n2("div", {
|
|
25295
25295
|
class: se(["option", [a({ value: v })]]),
|
|
25296
25296
|
onClick: (m) => h({ value: v })
|
|
25297
25297
|
}, [
|
|
25298
|
-
|
|
25298
|
+
n2("span", null, $2(g) + ": ", 1)
|
|
25299
25299
|
], 10, LD)
|
|
25300
25300
|
]),
|
|
25301
25301
|
default: L(() => [
|
|
@@ -25367,20 +25367,20 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25367
25367
|
n == null || n.destroy();
|
|
25368
25368
|
}), Re(() => {
|
|
25369
25369
|
const s = document.querySelector("#xml-editor");
|
|
25370
|
-
t.value = JSON.stringify(e.modelValue, null, 2), s && (n = new
|
|
25370
|
+
t.value = JSON.stringify(e.modelValue, null, 2), s && (n = new s2({
|
|
25371
25371
|
state: G2.create({
|
|
25372
25372
|
doc: t.value,
|
|
25373
25373
|
extensions: [
|
|
25374
25374
|
Hr,
|
|
25375
25375
|
Nr(),
|
|
25376
|
-
|
|
25376
|
+
s2.lineWrapping,
|
|
25377
25377
|
G2.readOnly.of(e.readonly)
|
|
25378
25378
|
]
|
|
25379
25379
|
}),
|
|
25380
25380
|
parent: s
|
|
25381
25381
|
}), n.dom.style.width = "100%");
|
|
25382
25382
|
}), (s, l) => (_(), V("div", ND, [
|
|
25383
|
-
|
|
25383
|
+
n2("div", RD, null, 512)
|
|
25384
25384
|
]));
|
|
25385
25385
|
}
|
|
25386
25386
|
}), WD = /* @__PURE__ */ L2($D, [["__scopeId", "data-v-1a171015"]]), jD = { class: "ss-text-content" }, UD = {
|
|
@@ -25422,7 +25422,7 @@ const kD = { class: "signature-wrap" }, DD = { class: "signature-types" }, OD =
|
|
|
25422
25422
|
default: L(() => [
|
|
25423
25423
|
(_(!0), V(D2, null, V2(t.value, (r, a) => (_(), q(l, { key: a }, {
|
|
25424
25424
|
default: L(() => [
|
|
25425
|
-
|
|
25425
|
+
n2("img", {
|
|
25426
25426
|
src: (r == null ? void 0 : r.url) ?? "",
|
|
25427
25427
|
class: "ss-carousel-img"
|
|
25428
25428
|
}, null, 8, YD)
|
|
@@ -25535,7 +25535,7 @@ const Ol = /* @__PURE__ */ new Map(), Tl = (i) => (i ?? []).map((e) => (e == nul
|
|
|
25535
25535
|
return q2(
|
|
25536
25536
|
() => o.tabsContents,
|
|
25537
25537
|
() => {
|
|
25538
|
-
c.value =
|
|
25538
|
+
c.value = T0(o.tabsContents), m();
|
|
25539
25539
|
},
|
|
25540
25540
|
{ deep: !0, immediate: !0 }
|
|
25541
25541
|
), q2(
|