ss-component-new 1.3.490 → 1.3.492
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/{array-CVYp6Chy.js → array-C06o53Yl.js} +2 -2
- package/dist/{array-BM4J2Hfs.cjs → array-Cj_51HQg.cjs} +1 -1
- package/dist/{index-2P0gL-8h.cjs → index-1io6qGUF.cjs} +1 -1
- package/dist/{index-D4Y3XURU.cjs → index-8ojpIkjk.cjs} +1 -1
- package/dist/{index-Co-RAur6.js → index-B4P4-6XS.js} +1 -1
- package/dist/{index-B44aoDYY.js → index-B80uGb97.js} +3 -3
- package/dist/{index-D1hl24-E.cjs → index-Bqfi_lg2.cjs} +1 -1
- package/dist/index-ByA0_yBV.cjs +26 -0
- package/dist/{index-kH00xIEP.cjs → index-C2RFvRnz.cjs} +1 -1
- package/dist/{index-AOahVMc9.js → index-C63WgolW.js} +2 -2
- package/dist/{index-Dx9h2Wje.js → index-C8Nd5lVx.js} +1 -1
- package/dist/{index-D4Nr69rH.js → index-CFXOJ9On.js} +1 -1
- package/dist/{index-BJboQsJ0.cjs → index-CIBLDYUr.cjs} +1 -1
- package/dist/{index-C-WM7ePh.js → index-CKKhk7r7.js} +2 -2
- package/dist/{index-DdLwbfXr.js → index-CX4TTz13.js} +350 -345
- package/dist/{index-DWHdl8CF.js → index-C_pZ5_Rr.js} +1 -1
- package/dist/{index-DB3Tk7l3.cjs → index-D19kpGlM.cjs} +1 -1
- package/dist/{index-DL700Ss1.js → index-DWfVwgfW.js} +7 -7
- package/dist/{index-B8aeaUY3.cjs → index-DgHgr6o3.cjs} +1 -1
- package/dist/index-Dwc8LN6-.js +24136 -0
- package/dist/{index-dYGLVem9.cjs → index-Dz5sgTgm.cjs} +1 -1
- package/dist/{index-BnHuye3z.cjs → index-PgA-t00-.cjs} +1 -1
- package/dist/{index-uaC1E_Wd.cjs → index-ZgqPuX7q.cjs} +1 -1
- package/dist/{index-SI8emaks.cjs → index-bdJ6Rv_b.cjs} +1 -1
- package/dist/{index-B7kewjn4.js → index-gU0NjccR.js} +1 -1
- package/dist/{index-B5CksVe-.js → index-u58HGJ-V.js} +2 -2
- package/dist/{main-BLZvDFKp.js → main-DWisOrSP.js} +2 -2
- package/dist/{main-DECNweuK.cjs → main-sCnkGFZB.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-Dz9axLbS.cjs → threeModel-CQSHt2TL.cjs} +1 -1
- package/dist/{threeModel-BN8j5J0b.js → threeModel-Dv9sgokW.js} +1 -1
- package/dist/{threeSceneView-BYMjKYLC.js → threeSceneView-BdUq3MMn.js} +3 -3
- package/dist/{threeSceneView-BXn45is-.cjs → threeSceneView-BfbtVvon.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-D1AXgn7a.cjs → threeSceneViewForCPMPIP-D0Wf1B1n.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CMSPNMtp.js → threeSceneViewForCPMPIP-DvT_6wlE.js} +1 -1
- package/dist/{threeViewerHost-CjQ-eaaH.cjs → threeViewerHost-C4bcTMG5.cjs} +1 -1
- package/dist/{threeViewerHost-DAaNwmDe.js → threeViewerHost-CK0krO72.js} +1 -1
- package/package.json +2 -1
- package/dist/index-B3FYCeYg.js +0 -23883
- package/dist/index-BwDCXZEv.cjs +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as N, resolveComponent as
|
|
1
|
+
import { ref as N, resolveComponent as J, createBlock as q, openBlock as x, defineComponent as t0, computed as r2, watch as Y2, createElementBlock as z, createVNode as i2, withCtx as H, createElementVNode as a2, Fragment as k2, renderList as M2, withModifiers as Ge, normalizeClass as Ce, toDisplayString as B2, createSlots as ce, renderSlot as D2, nextTick as G0, onMounted as Ve, createTextVNode as T0, isRef as g9, isReactive as v9, toRaw as m9, createCommentVNode as Q, onBeforeUnmount as F4, normalizeStyle as c0, resolveDynamicComponent as Et, normalizeProps as w9, guardReactiveProps as x9, unref as F0, mergeProps as L1, reactive as n6, inject as m6, withDirectives as p3, vShow as w6, watchEffect as et, onUnmounted as Jt, resolveDirective as b9, h as Ui, toRefs as _9 } from "vue";
|
|
2
2
|
import { a3 as y9, a4 as S9, I as i8, g as C9, a5 as k9, a6 as D9, a7 as O9, a0 as Ii, a8 as M9, a9 as T9, aa as z9, ab as P9, ac as qi, ad as Yi } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DFyt9sBY.js";
|
|
3
3
|
import { _ as L2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { S as Wt } from "./index-BHtNKL1L.js";
|
|
@@ -8,7 +8,7 @@ import { _ as Y0 } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
|
|
|
8
8
|
import { m as Ki, B as $9, Y as l8 } from "./index-CI4RP047.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { s as J4 } from "./index-11kpzK0A.js";
|
|
11
|
-
import { T as Xi, a as j9 } from "./threeViewerHost-
|
|
11
|
+
import { T as Xi, a as j9 } from "./threeViewerHost-CK0krO72.js";
|
|
12
12
|
import { A as W9 } from "./index-BDGxsSv8.js";
|
|
13
13
|
var U9 = "[object Date]";
|
|
14
14
|
function I9(n) {
|
|
@@ -46,7 +46,7 @@ const Y9 = {
|
|
|
46
46
|
setup(n) {
|
|
47
47
|
const e = n, t = N(e.value);
|
|
48
48
|
return (i, s) => {
|
|
49
|
-
const o =
|
|
49
|
+
const o = J("el-switch");
|
|
50
50
|
return x(), q(o, {
|
|
51
51
|
modelValue: t.value,
|
|
52
52
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -149,7 +149,7 @@ const Y9 = {
|
|
|
149
149
|
i("focus"), o.value && t.suggestList && t.suggestList.length > 0 && (a.value = !0);
|
|
150
150
|
};
|
|
151
151
|
return (v, S) => {
|
|
152
|
-
const M =
|
|
152
|
+
const M = J("el-input"), D = J("el-popover");
|
|
153
153
|
return Array.isArray(o.value) ? (x(), q(M, {
|
|
154
154
|
key: 1,
|
|
155
155
|
modelValue: o.value,
|
|
@@ -166,7 +166,7 @@ const Y9 = {
|
|
|
166
166
|
key: "0"
|
|
167
167
|
} : void 0
|
|
168
168
|
]), 1032, ["modelValue", "disabled"])) : (x(), z("div", F9, [
|
|
169
|
-
|
|
169
|
+
i2(D, {
|
|
170
170
|
visible: a.value && n.suggestList.length > 0,
|
|
171
171
|
trigger: "manual",
|
|
172
172
|
placement: "bottom-start",
|
|
@@ -175,7 +175,7 @@ const Y9 = {
|
|
|
175
175
|
"popper-class": "input-suggest-popper"
|
|
176
176
|
}, {
|
|
177
177
|
reference: H(() => [
|
|
178
|
-
|
|
178
|
+
i2(M, {
|
|
179
179
|
modelValue: o.value,
|
|
180
180
|
"onUpdate:modelValue": S[0] || (S[0] = (O) => o.value = O),
|
|
181
181
|
disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
|
|
@@ -1028,7 +1028,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1028
1028
|
return Ve(() => {
|
|
1029
1029
|
l.value = zp();
|
|
1030
1030
|
}), (c, d) => {
|
|
1031
|
-
const u =
|
|
1031
|
+
const u = J("el-input"), f = J("el-popover");
|
|
1032
1032
|
return x(), q(f, {
|
|
1033
1033
|
width: "400",
|
|
1034
1034
|
visible: o.value,
|
|
@@ -1042,7 +1042,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1042
1042
|
class: "icon-wrap",
|
|
1043
1043
|
onClick: (m) => h(p)
|
|
1044
1044
|
}, [
|
|
1045
|
-
|
|
1045
|
+
i2(Wt, {
|
|
1046
1046
|
name: p == null ? void 0 : p.value,
|
|
1047
1047
|
style: { width: "20px", height: "20px" }
|
|
1048
1048
|
}, null, 8, ["name"])
|
|
@@ -1050,7 +1050,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1050
1050
|
])
|
|
1051
1051
|
]),
|
|
1052
1052
|
reference: H(() => [
|
|
1053
|
-
|
|
1053
|
+
i2(u, {
|
|
1054
1054
|
modelValue: s.value,
|
|
1055
1055
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
|
|
1056
1056
|
placeholder: "请输入",
|
|
@@ -1060,7 +1060,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1060
1060
|
onBlur: a
|
|
1061
1061
|
}, {
|
|
1062
1062
|
prepend: H(() => [
|
|
1063
|
-
|
|
1063
|
+
i2(Wt, {
|
|
1064
1064
|
name: s.value,
|
|
1065
1065
|
style: { width: "20px", height: "20px" }
|
|
1066
1066
|
}, null, 8, ["name"])
|
|
@@ -1083,7 +1083,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1083
1083
|
i("clickTrigger", t == null ? void 0 : t.modelValue);
|
|
1084
1084
|
};
|
|
1085
1085
|
return (o, l) => {
|
|
1086
|
-
const r =
|
|
1086
|
+
const r = J("el-link");
|
|
1087
1087
|
return x(), q(r, {
|
|
1088
1088
|
onClick: s,
|
|
1089
1089
|
type: "primary",
|
|
@@ -1119,7 +1119,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1119
1119
|
return Y2(() => t.modelValue, (d) => {
|
|
1120
1120
|
s.value = d;
|
|
1121
1121
|
}, { immediate: !0 }), (d, u) => {
|
|
1122
|
-
const f =
|
|
1122
|
+
const f = J("el-tag"), p = J("el-option"), g = J("el-select"), m = J("el-button");
|
|
1123
1123
|
return x(), z("div", null, [
|
|
1124
1124
|
(x(!0), z(k2, null, M2(s.value, (v) => (x(), q(f, {
|
|
1125
1125
|
key: v,
|
|
@@ -1181,7 +1181,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1181
1181
|
setup(n) {
|
|
1182
1182
|
const e = n, t = N(e.value);
|
|
1183
1183
|
return (i, s) => {
|
|
1184
|
-
const o =
|
|
1184
|
+
const o = J("el-input");
|
|
1185
1185
|
return x(), q(o, {
|
|
1186
1186
|
modelValue: t.value,
|
|
1187
1187
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -1208,7 +1208,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1208
1208
|
setup(n) {
|
|
1209
1209
|
const t = N(n.value);
|
|
1210
1210
|
return (i, s) => {
|
|
1211
|
-
const o =
|
|
1211
|
+
const o = J("el-color-picker");
|
|
1212
1212
|
return x(), q(o, {
|
|
1213
1213
|
modelValue: t.value,
|
|
1214
1214
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -1232,7 +1232,7 @@ const Pp = { class: "icon-popover" }, Vp = ["onClick"], Ap = /* @__PURE__ */ t0(
|
|
|
1232
1232
|
setup(n) {
|
|
1233
1233
|
const t = N(n.value);
|
|
1234
1234
|
return (i, s) => {
|
|
1235
|
-
const o =
|
|
1235
|
+
const o = J("el-input");
|
|
1236
1236
|
return x(), q(o, {
|
|
1237
1237
|
modelValue: t.value,
|
|
1238
1238
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -1486,14 +1486,14 @@ const $p = async (n) => {
|
|
|
1486
1486
|
await P((_2 = r.value) == null ? void 0 : _2.map((F) => F == null ? void 0 : F.value)), i("click");
|
|
1487
1487
|
};
|
|
1488
1488
|
return (L, U) => {
|
|
1489
|
-
const l2 =
|
|
1489
|
+
const l2 = J("el-tooltip"), c2 = J("el-option"), C2 = J("el-select");
|
|
1490
1490
|
return l.value ? l.value ? (x(), q(Lt, {
|
|
1491
1491
|
key: 1,
|
|
1492
1492
|
modelValue: o.value,
|
|
1493
1493
|
"onUpdate:modelValue": U[1] || (U[1] = (w2) => o.value = w2),
|
|
1494
1494
|
onChange: m,
|
|
1495
1495
|
onBlur: p
|
|
1496
|
-
}, null, 8, ["modelValue"])) :
|
|
1496
|
+
}, null, 8, ["modelValue"])) : Q("", !0) : (x(), q(C2, {
|
|
1497
1497
|
key: 0,
|
|
1498
1498
|
ref_key: "selectRef",
|
|
1499
1499
|
ref: c,
|
|
@@ -1849,7 +1849,7 @@ const $p = async (n) => {
|
|
|
1849
1849
|
{ deep: !0 }
|
|
1850
1850
|
), (R, I) => {
|
|
1851
1851
|
var X2;
|
|
1852
|
-
const _2 =
|
|
1852
|
+
const _2 = J("el-form-item"), F = J("el-tab-pane"), W2 = J("el-tabs"), G2 = J("el-form"), a0 = J("el-button");
|
|
1853
1853
|
return x(), z("div", {
|
|
1854
1854
|
class: "form-content",
|
|
1855
1855
|
style: c0(k.value)
|
|
@@ -1872,14 +1872,14 @@ const $p = async (n) => {
|
|
|
1872
1872
|
loading: g.value,
|
|
1873
1873
|
alt: "上传背景"
|
|
1874
1874
|
}, null, 8, qp)
|
|
1875
|
-
])) :
|
|
1875
|
+
])) : Q("", !0),
|
|
1876
1876
|
V.value ? (x(), z("div", Yp, [
|
|
1877
1877
|
D2(R.$slots, "operateCol", {
|
|
1878
1878
|
renderColumns: n.rowContents,
|
|
1879
1879
|
formDisabled: n.formDisabled,
|
|
1880
1880
|
formLabelsOperable: n.formLabelsOperable
|
|
1881
1881
|
}, void 0, !0)
|
|
1882
|
-
])) :
|
|
1882
|
+
])) : Q("", !0),
|
|
1883
1883
|
a2("div", Fp, [
|
|
1884
1884
|
v.value ? (x(), q(G2, {
|
|
1885
1885
|
key: 0,
|
|
@@ -1932,20 +1932,20 @@ const $p = async (n) => {
|
|
|
1932
1932
|
config: b == null ? void 0 : b.config,
|
|
1933
1933
|
configModel: (b == null ? void 0 : b.prop) ?? (b == null ? void 0 : b.name),
|
|
1934
1934
|
selectedTagList: (b == null ? void 0 : b.selectValue) ?? []
|
|
1935
|
-
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) :
|
|
1935
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
|
|
1936
1936
|
(b == null ? void 0 : b.type) === "Url" ? (x(), z("div", Zp, [
|
|
1937
|
-
|
|
1937
|
+
i2(Y0, {
|
|
1938
1938
|
class: "calculator-content form-preview",
|
|
1939
1939
|
onClickTrigger: (j0) => E(d.value[(b == null ? void 0 : b.prop) ?? b.name]),
|
|
1940
1940
|
modelValue: "详情"
|
|
1941
1941
|
}, null, 8, ["onClickTrigger"])
|
|
1942
|
-
])) :
|
|
1942
|
+
])) : Q("", !0),
|
|
1943
1943
|
typeof d.value[(b == null ? void 0 : b.prop) ?? b.name] == "string" && ((k0 = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && k0.includes(".stl") || (y = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && y.includes(".obj") || (Ue = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && Ue.includes(".urdf") || (A0 = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && A0.includes(".STL") || (pe = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && pe.includes(".ls") || (ge = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && ge.includes(".uv") || (ve = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && ve.includes(".UV") || (me = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && me.includes(".cpt") || (we = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && we.includes(".CPT") || (xe = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && xe.includes(".cyd") || (_0 = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && _0.includes(".CYD") || (at = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && at.includes(".nc") || (ct = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && ct.includes(".NC") || (re = d.value[(b == null ? void 0 : b.prop) ?? b.name]) != null && re.includes(".csv")) ? (x(), q(Y0, {
|
|
1944
1944
|
key: 2,
|
|
1945
1945
|
class: "calculator-content form-preview",
|
|
1946
1946
|
onClickTrigger: (j0) => L(d.value[(b == null ? void 0 : b.prop) ?? b.name]),
|
|
1947
1947
|
modelValue: "预览"
|
|
1948
|
-
}, null, 8, ["onClickTrigger"])) :
|
|
1948
|
+
}, null, 8, ["onClickTrigger"])) : Q("", !0)
|
|
1949
1949
|
];
|
|
1950
1950
|
}),
|
|
1951
1951
|
_: 2
|
|
@@ -1966,7 +1966,7 @@ const $p = async (n) => {
|
|
|
1966
1966
|
onChange: (k0) => Q2(k0, b)
|
|
1967
1967
|
}, {
|
|
1968
1968
|
append: H(() => [
|
|
1969
|
-
|
|
1969
|
+
i2(u1, {
|
|
1970
1970
|
value: b == null ? void 0 : b.type,
|
|
1971
1971
|
content: G.value,
|
|
1972
1972
|
placeholder: "类型",
|
|
@@ -1976,16 +1976,16 @@ const $p = async (n) => {
|
|
|
1976
1976
|
]),
|
|
1977
1977
|
_: 2
|
|
1978
1978
|
}, 1032, ["value", "onChange"])) : (x(), z("div", Qp, [
|
|
1979
|
-
b != null && b.required || b != null && b.isMain ? (x(), z("span", Jp, "*")) :
|
|
1979
|
+
b != null && b.required || b != null && b.isMain ? (x(), z("span", Jp, "*")) : Q("", !0),
|
|
1980
1980
|
T0(" " + B2(b == null ? void 0 : b.label), 1)
|
|
1981
1981
|
]))
|
|
1982
|
-
], 4)) :
|
|
1982
|
+
], 4)) : Q("", !0)
|
|
1983
1983
|
]),
|
|
1984
1984
|
key: "0"
|
|
1985
1985
|
} : void 0
|
|
1986
|
-
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) :
|
|
1986
|
+
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) : Q("", !0)
|
|
1987
1987
|
])
|
|
1988
|
-
])) :
|
|
1988
|
+
])) : Q("", !0),
|
|
1989
1989
|
((V0 = (Q0 = S.value) == null ? void 0 : Q0.tabList) == null ? void 0 : V0.length) > 0 ? (x(), q(W2, {
|
|
1990
1990
|
key: 1,
|
|
1991
1991
|
class: "layer-tab",
|
|
@@ -2039,20 +2039,20 @@ const $p = async (n) => {
|
|
|
2039
2039
|
config: y == null ? void 0 : y.config,
|
|
2040
2040
|
configModel: (y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.name),
|
|
2041
2041
|
selectedTagList: (y == null ? void 0 : y.selectValue) ?? []
|
|
2042
|
-
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) :
|
|
2042
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
|
|
2043
2043
|
(y == null ? void 0 : y.type) === "Url" ? (x(), z("div", ng, [
|
|
2044
|
-
|
|
2044
|
+
i2(Y0, {
|
|
2045
2045
|
class: "calculator-content form-preview",
|
|
2046
2046
|
onClickTrigger: (A) => E(d.value[(y == null ? void 0 : y.prop) ?? y.name]),
|
|
2047
2047
|
modelValue: "详情"
|
|
2048
2048
|
}, null, 8, ["onClickTrigger"])
|
|
2049
|
-
])) :
|
|
2049
|
+
])) : Q("", !0),
|
|
2050
2050
|
typeof d.value[(y == null ? void 0 : y.prop) ?? y.name] == "string" && ((A0 = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && A0.includes(".stl") || (pe = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && pe.includes(".obj") || (ge = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && ge.includes(".urdf") || (ve = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && ve.includes(".STL") || (me = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && me.includes(".ls") || (we = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && we.includes(".uv") || (xe = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && xe.includes(".UV") || (_0 = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && _0.includes(".cpt") || (at = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && at.includes(".CPT") || (ct = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && ct.includes(".cyd") || (re = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && re.includes(".CYD") || (j0 = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && j0.includes(".nc") || (C = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && C.includes(".NC") || (T = d.value[(y == null ? void 0 : y.prop) ?? y.name]) != null && T.includes(".csv")) ? (x(), q(Y0, {
|
|
2051
2051
|
key: 2,
|
|
2052
2052
|
class: "calculator-content form-preview",
|
|
2053
2053
|
onClickTrigger: (A) => L(d.value[(y == null ? void 0 : y.prop) ?? y.name]),
|
|
2054
2054
|
modelValue: "预览"
|
|
2055
|
-
}, null, 8, ["onClickTrigger"])) :
|
|
2055
|
+
}, null, 8, ["onClickTrigger"])) : Q("", !0)
|
|
2056
2056
|
];
|
|
2057
2057
|
}),
|
|
2058
2058
|
_: 2
|
|
@@ -2073,7 +2073,7 @@ const $p = async (n) => {
|
|
|
2073
2073
|
onChange: (A0) => Q2(A0, y)
|
|
2074
2074
|
}, {
|
|
2075
2075
|
append: H(() => [
|
|
2076
|
-
|
|
2076
|
+
i2(u1, {
|
|
2077
2077
|
value: y == null ? void 0 : y.type,
|
|
2078
2078
|
content: G.value,
|
|
2079
2079
|
placeholder: "类型",
|
|
@@ -2083,14 +2083,14 @@ const $p = async (n) => {
|
|
|
2083
2083
|
]),
|
|
2084
2084
|
_: 2
|
|
2085
2085
|
}, 1032, ["value", "onChange"])) : (x(), z("div", tg, [
|
|
2086
|
-
y != null && y.required || y != null && y.isMain ? (x(), z("span", ig, "*")) :
|
|
2086
|
+
y != null && y.required || y != null && y.isMain ? (x(), z("span", ig, "*")) : Q("", !0),
|
|
2087
2087
|
T0(" " + B2(y == null ? void 0 : y.labelName), 1)
|
|
2088
2088
|
]))
|
|
2089
|
-
], 4)) :
|
|
2089
|
+
], 4)) : Q("", !0)
|
|
2090
2090
|
]),
|
|
2091
2091
|
key: "0"
|
|
2092
2092
|
} : void 0
|
|
2093
|
-
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) :
|
|
2093
|
+
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) : Q("", !0)
|
|
2094
2094
|
])
|
|
2095
2095
|
];
|
|
2096
2096
|
}),
|
|
@@ -2098,7 +2098,7 @@ const $p = async (n) => {
|
|
|
2098
2098
|
}, 1032, ["label", "name"]))), 256))
|
|
2099
2099
|
]),
|
|
2100
2100
|
_: 1
|
|
2101
|
-
}, 8, ["modelValue", "onTabClick"])) :
|
|
2101
|
+
}, 8, ["modelValue", "onTabClick"])) : Q("", !0),
|
|
2102
2102
|
((fe = t.buttonValue) == null ? void 0 : fe.length) > 0 && n.isButtonRow ? (x(), z("div", {
|
|
2103
2103
|
key: 2,
|
|
2104
2104
|
class: "form-button",
|
|
@@ -2113,9 +2113,9 @@ const $p = async (n) => {
|
|
|
2113
2113
|
class: "form-button-item",
|
|
2114
2114
|
style: c0({ background: (b == null ? void 0 : b.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2115
2115
|
onClick: (k0) => K2(b == null ? void 0 : b.label, h.value)
|
|
2116
|
-
}, B2(b == null ? void 0 : b.label), 13, sg)) :
|
|
2116
|
+
}, B2(b == null ? void 0 : b.label), 13, sg)) : Q("", !0)
|
|
2117
2117
|
]))), 128))
|
|
2118
|
-
], 4)) :
|
|
2118
|
+
], 4)) : Q("", !0)
|
|
2119
2119
|
];
|
|
2120
2120
|
}),
|
|
2121
2121
|
_: 1
|
|
@@ -2168,20 +2168,20 @@ const $p = async (n) => {
|
|
|
2168
2168
|
config: w == null ? void 0 : w.config,
|
|
2169
2169
|
configModel: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
2170
2170
|
selectedTagList: (w == null ? void 0 : w.selectValue) ?? []
|
|
2171
|
-
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) :
|
|
2171
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
|
|
2172
2172
|
(w == null ? void 0 : w.type) === "Url" ? (x(), z("div", rg, [
|
|
2173
|
-
|
|
2173
|
+
i2(Y0, {
|
|
2174
2174
|
class: "calculator-content form-preview",
|
|
2175
2175
|
onClickTrigger: (_0) => E(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
2176
2176
|
modelValue: "详情"
|
|
2177
2177
|
}, null, 8, ["onClickTrigger"])
|
|
2178
|
-
])) :
|
|
2178
|
+
])) : Q("", !0),
|
|
2179
2179
|
typeof d.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((V0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && V0.includes(".stl") || (fe = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && fe.includes(".obj") || (b = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && b.includes(".urdf") || (le = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && le.includes(".STL") || (k0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && k0.includes(".ls") || (y = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && y.includes(".uv") || (Ue = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Ue.includes(".UV") || (A0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && A0.includes(".cpt") || (pe = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && pe.includes(".CPT") || (ge = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ge.includes(".cyd") || (ve = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ve.includes(".CYD") || (me = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && me.includes(".nc") || (we = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && we.includes(".NC") || (xe = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && xe.includes(".csv")) ? (x(), q(Y0, {
|
|
2180
2180
|
key: 2,
|
|
2181
2181
|
class: "calculator-content form-preview",
|
|
2182
2182
|
onClickTrigger: (_0) => L(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
2183
2183
|
modelValue: "预览"
|
|
2184
|
-
}, null, 8, ["onClickTrigger"])) :
|
|
2184
|
+
}, null, 8, ["onClickTrigger"])) : Q("", !0)
|
|
2185
2185
|
];
|
|
2186
2186
|
}),
|
|
2187
2187
|
_: 2
|
|
@@ -2202,7 +2202,7 @@ const $p = async (n) => {
|
|
|
2202
2202
|
onChange: (V0) => Q2(V0, w)
|
|
2203
2203
|
}, {
|
|
2204
2204
|
append: H(() => [
|
|
2205
|
-
|
|
2205
|
+
i2(u1, {
|
|
2206
2206
|
value: w == null ? void 0 : w.type,
|
|
2207
2207
|
content: G.value,
|
|
2208
2208
|
placeholder: "类型",
|
|
@@ -2212,14 +2212,14 @@ const $p = async (n) => {
|
|
|
2212
2212
|
]),
|
|
2213
2213
|
_: 2
|
|
2214
2214
|
}, 1032, ["value", "onChange"])) : (x(), z("div", og, [
|
|
2215
|
-
w != null && w.required || w != null && w.isMain ? (x(), z("span", lg, "*")) :
|
|
2215
|
+
w != null && w.required || w != null && w.isMain ? (x(), z("span", lg, "*")) : Q("", !0),
|
|
2216
2216
|
T0(" " + B2(w == null ? void 0 : w.label), 1)
|
|
2217
2217
|
]))
|
|
2218
|
-
], 4)) :
|
|
2218
|
+
], 4)) : Q("", !0)
|
|
2219
2219
|
]),
|
|
2220
2220
|
key: "0"
|
|
2221
2221
|
} : void 0
|
|
2222
|
-
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) :
|
|
2222
|
+
]), 1032, ["prop", "class", "disabled", "style"]))), 128)) : Q("", !0),
|
|
2223
2223
|
((J2 = t.buttonValue) == null ? void 0 : J2.length) > 0 && n.isButtonRow ? (x(), z("div", {
|
|
2224
2224
|
key: 1,
|
|
2225
2225
|
class: "form-button",
|
|
@@ -2234,9 +2234,9 @@ const $p = async (n) => {
|
|
|
2234
2234
|
class: "form-button-item",
|
|
2235
2235
|
style: c0({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2236
2236
|
onClick: (V0) => K2(w == null ? void 0 : w.label, h.value)
|
|
2237
|
-
}, B2(w == null ? void 0 : w.label), 13, ag)) :
|
|
2237
|
+
}, B2(w == null ? void 0 : w.label), 13, ag)) : Q("", !0)
|
|
2238
2238
|
]))), 128))
|
|
2239
|
-
], 4)) :
|
|
2239
|
+
], 4)) : Q("", !0)
|
|
2240
2240
|
];
|
|
2241
2241
|
}),
|
|
2242
2242
|
_: 1
|
|
@@ -2252,7 +2252,7 @@ const $p = async (n) => {
|
|
|
2252
2252
|
class: "form-button-content",
|
|
2253
2253
|
onClick: (J2) => K2(A2 == null ? void 0 : A2.label, t.isEnableWrap ? a.value : h.value)
|
|
2254
2254
|
}, [
|
|
2255
|
-
|
|
2255
|
+
i2(a0, {
|
|
2256
2256
|
id: "themeButton",
|
|
2257
2257
|
style: c0({ background: (A2 == null ? void 0 : A2.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
|
|
2258
2258
|
}, {
|
|
@@ -2262,7 +2262,7 @@ const $p = async (n) => {
|
|
|
2262
2262
|
_: 2
|
|
2263
2263
|
}, 1032, ["style"])
|
|
2264
2264
|
], 8, cg))), 128))
|
|
2265
|
-
], 4)) :
|
|
2265
|
+
], 4)) : Q("", !0)
|
|
2266
2266
|
], 4);
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
@@ -2326,7 +2326,7 @@ const $p = async (n) => {
|
|
|
2326
2326
|
s("change", l), s("blurChange");
|
|
2327
2327
|
};
|
|
2328
2328
|
return (l, r) => {
|
|
2329
|
-
const a =
|
|
2329
|
+
const a = J("el-radio"), h = J("el-radio-group");
|
|
2330
2330
|
return x(), q(h, {
|
|
2331
2331
|
modelValue: i.value,
|
|
2332
2332
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
@@ -2376,7 +2376,7 @@ const $p = async (n) => {
|
|
|
2376
2376
|
s("change", l);
|
|
2377
2377
|
};
|
|
2378
2378
|
return (l, r) => {
|
|
2379
|
-
const a =
|
|
2379
|
+
const a = J("el-checkbox"), h = J("el-checkbox-group");
|
|
2380
2380
|
return x(), q(h, {
|
|
2381
2381
|
modelValue: i.value,
|
|
2382
2382
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
@@ -2437,7 +2437,7 @@ const $p = async (n) => {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
}, mg = {};
|
|
2439
2439
|
function wg(n, e) {
|
|
2440
|
-
const t =
|
|
2440
|
+
const t = J("el-card");
|
|
2441
2441
|
return x(), q(t, null, {
|
|
2442
2442
|
default: H(() => [
|
|
2443
2443
|
D2(n.$slots, "content")
|
|
@@ -2504,8 +2504,8 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2504
2504
|
setup(n) {
|
|
2505
2505
|
return (e, t) => {
|
|
2506
2506
|
var r, a, h, c, d, u, f, p, g, m;
|
|
2507
|
-
const i =
|
|
2508
|
-
return n.column.isHidden ?
|
|
2507
|
+
const i = J("svg-icon"), s = J("el-tooltip"), o = J("RecurseCol", !0), l = J("el-table-column");
|
|
2508
|
+
return n.column.isHidden ? Q("", !0) : (x(), q(l, {
|
|
2509
2509
|
key: 0,
|
|
2510
2510
|
label: n.column.label,
|
|
2511
2511
|
prop: n.column.prop,
|
|
@@ -2528,7 +2528,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2528
2528
|
effect: "light"
|
|
2529
2529
|
}, {
|
|
2530
2530
|
default: H(() => [
|
|
2531
|
-
|
|
2531
|
+
i2(i, {
|
|
2532
2532
|
name: "operate",
|
|
2533
2533
|
style: { width: "15px", height: "15px" }
|
|
2534
2534
|
})
|
|
@@ -2609,8 +2609,8 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2609
2609
|
};
|
|
2610
2610
|
return (d, u) => {
|
|
2611
2611
|
var g, m, v, S, M, D, O, _, k, G;
|
|
2612
|
-
const f =
|
|
2613
|
-
return n.column.isTableColHidden ?
|
|
2612
|
+
const f = J("svg-icon"), p = J("el-table-column");
|
|
2613
|
+
return n.column.isTableColHidden ? Q("", !0) : (x(), q(p, {
|
|
2614
2614
|
key: 0,
|
|
2615
2615
|
label: n.column.label,
|
|
2616
2616
|
prop: n.column.prop,
|
|
@@ -2636,7 +2636,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2636
2636
|
append: H(() => {
|
|
2637
2637
|
var E;
|
|
2638
2638
|
return [
|
|
2639
|
-
|
|
2639
|
+
i2(u1, {
|
|
2640
2640
|
value: (E = n.column) == null ? void 0 : E.columnType,
|
|
2641
2641
|
content: o.value,
|
|
2642
2642
|
clearable: !1,
|
|
@@ -2711,9 +2711,9 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2711
2711
|
},
|
|
2712
2712
|
setup(n) {
|
|
2713
2713
|
return (e, t) => {
|
|
2714
|
-
const i =
|
|
2714
|
+
const i = J("el-card");
|
|
2715
2715
|
return x(), z("div", null, [
|
|
2716
|
-
|
|
2716
|
+
i2(i, null, {
|
|
2717
2717
|
header: H(() => [
|
|
2718
2718
|
D2(e.$slots, "header", {}, void 0, !0)
|
|
2719
2719
|
]),
|
|
@@ -2727,7 +2727,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2727
2727
|
}),
|
|
2728
2728
|
n.showTag ? (x(), z("div", Og, [
|
|
2729
2729
|
D2(e.$slots, "status", {}, void 0, !0)
|
|
2730
|
-
])) :
|
|
2730
|
+
])) : Q("", !0)
|
|
2731
2731
|
]);
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
@@ -2762,10 +2762,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2762
2762
|
key: 2,
|
|
2763
2763
|
class: "table-content"
|
|
2764
2764
|
}, Wg = {
|
|
2765
|
-
key:
|
|
2765
|
+
key: 2,
|
|
2766
2766
|
class: "table-card-wrap"
|
|
2767
2767
|
}, Ug = { class: "card-header" }, Ig = ["title"], qg = ["title"], Yg = ["title"], Fg = { class: "card-footer" }, Kg = { class: "table-bottom-wrap" }, Xg = {
|
|
2768
|
-
key:
|
|
2768
|
+
key: 3,
|
|
2769
2769
|
class: "table-bottom-button"
|
|
2770
2770
|
}, Qg = { style: { display: "flex", gap: "8px", "flex-direction": "column", "align-items": "start" } }, Jg = {
|
|
2771
2771
|
__name: "index",
|
|
@@ -2834,6 +2834,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2834
2834
|
allowRowAddOrDelete: {
|
|
2835
2835
|
type: Boolean,
|
|
2836
2836
|
default: !0
|
|
2837
|
+
},
|
|
2838
|
+
hideHeaderContent: {
|
|
2839
|
+
type: Boolean,
|
|
2840
|
+
default: !1
|
|
2837
2841
|
}
|
|
2838
2842
|
},
|
|
2839
2843
|
emits: ["addNewRow", "clickButton", "handleColTypeChange", "handleColEditChange", "submitEditingTable", "change", "cellChange", "cellInput", "selectSuggest", "selectChange", "dbClickRow", "fixRow", "doSizeChange", "doCurrentChange", "buttonClick", "contentClick", "rowClick", "preview", "sortChange"],
|
|
@@ -2856,24 +2860,24 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2856
2860
|
var T, A, $, s2, o2;
|
|
2857
2861
|
G = k(), u.value = t == null ? void 0 : t.columns, f.value = (T = t == null ? void 0 : t.tableData) == null ? void 0 : T.map((d2) => {
|
|
2858
2862
|
var h2, u2;
|
|
2859
|
-
let
|
|
2863
|
+
let e2 = {};
|
|
2860
2864
|
for (let X in d2)
|
|
2861
|
-
if (X !== "level" && (
|
|
2865
|
+
if (X !== "level" && (e2[X] = Zi(d2[X]) && d2[X] === 0 ? (h2 = d2[X]) == null ? void 0 : h2.toString() : d2[X]), X !== "id" && ((u2 = re.value) == null ? void 0 : u2.prop) !== X && _(d2[X]))
|
|
2862
2866
|
if (!d2[X] || d2[X] === "" || d2[X] === null || d2[X] === void 0)
|
|
2863
|
-
|
|
2867
|
+
e2[X] = "";
|
|
2864
2868
|
else {
|
|
2865
2869
|
const p2 = Be(d2[X]).tz("Asia/Shanghai").format("YYYY-MM-DD HH:mm:ss");
|
|
2866
|
-
|
|
2870
|
+
e2[X] = p2 === "Invalid Date" ? "" : p2;
|
|
2867
2871
|
}
|
|
2868
2872
|
else
|
|
2869
|
-
|
|
2870
|
-
return
|
|
2873
|
+
e2[X] = d2[X];
|
|
2874
|
+
return e2;
|
|
2871
2875
|
});
|
|
2872
2876
|
let C = (A = s.value) == null ? void 0 : A.find((d2) => (d2 == null ? void 0 : d2.parentContent) === l.value);
|
|
2873
2877
|
if (C) {
|
|
2874
|
-
let d2 = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop,
|
|
2878
|
+
let d2 = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop, e2 = (o2 = f.value) == null ? void 0 : o2.find((h2) => (h2 == null ? void 0 : h2[d2]) === (C == null ? void 0 : C.value));
|
|
2875
2879
|
g.value.setCurrentRow(), g.value && setTimeout(() => {
|
|
2876
|
-
g.value && g.value.setCurrentRow(
|
|
2880
|
+
g.value && g.value.setCurrentRow(e2);
|
|
2877
2881
|
}, 100);
|
|
2878
2882
|
}
|
|
2879
2883
|
le(), y(), document.addEventListener("click", P);
|
|
@@ -2888,63 +2892,63 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2888
2892
|
};
|
|
2889
2893
|
function k() {
|
|
2890
2894
|
const C = /* @__PURE__ */ new WeakSet(), T = new MutationObserver(d2), A = /* @__PURE__ */ new WeakMap(), $ = [];
|
|
2891
|
-
function s2(
|
|
2895
|
+
function s2(e2) {
|
|
2892
2896
|
try {
|
|
2893
|
-
const h2 =
|
|
2897
|
+
const h2 = e2.getBoundingClientRect(), u2 = e2.clientWidth || h2.width || 1, X = h2.width / u2 || 1, p2 = parseFloat(getComputedStyle(e2).zoom || "1");
|
|
2894
2898
|
return p2 ? X / p2 : X;
|
|
2895
2899
|
} catch {
|
|
2896
2900
|
return 1;
|
|
2897
2901
|
}
|
|
2898
2902
|
}
|
|
2899
|
-
function o2(
|
|
2903
|
+
function o2(e2) {
|
|
2900
2904
|
var X;
|
|
2901
|
-
if (!
|
|
2902
|
-
C.add(
|
|
2903
|
-
const h2 =
|
|
2904
|
-
!h2 || !u2 ||
|
|
2905
|
+
if (!e2 || C.has(e2)) return;
|
|
2906
|
+
C.add(e2);
|
|
2907
|
+
const h2 = e2.parentElement, u2 = (X = e2.closest(".el-scrollbar")) == null ? void 0 : X.querySelector(".el-scrollbar__wrap");
|
|
2908
|
+
!h2 || !u2 || e2.addEventListener(
|
|
2905
2909
|
"pointerdown",
|
|
2906
2910
|
(p2) => {
|
|
2907
2911
|
p2.preventDefault(), p2.stopPropagation();
|
|
2908
2912
|
try {
|
|
2909
|
-
|
|
2913
|
+
e2.setPointerCapture && e2.setPointerCapture(p2.pointerId);
|
|
2910
2914
|
} catch {
|
|
2911
2915
|
}
|
|
2912
2916
|
h2.classList.add("is-dragging");
|
|
2913
|
-
const E2 = s2(h2), Z2 = h2.clientWidth || 1, x2 =
|
|
2917
|
+
const E2 = s2(h2), Z2 = h2.clientWidth || 1, x2 = e2.clientWidth || 0, T2 = Math.max(1, (Z2 - x2) / E2), y2 = Math.max(1, (u2.scrollWidth || 0) - (u2.clientWidth || 0)), R2 = p2.clientX, W0 = u2.scrollLeft, D0 = y2 / T2, j = (J0) => {
|
|
2914
2918
|
const m2 = (J0.clientX - R2) / E2;
|
|
2915
2919
|
u2.scrollLeft = W0 + m2 * D0;
|
|
2916
2920
|
}, O0 = () => {
|
|
2917
2921
|
try {
|
|
2918
|
-
|
|
2922
|
+
e2.releasePointerCapture && e2.releasePointerCapture(p2.pointerId);
|
|
2919
2923
|
} catch {
|
|
2920
2924
|
}
|
|
2921
|
-
|
|
2925
|
+
e2.removeEventListener("pointermove", j), e2.removeEventListener("pointerup", O0), e2.removeEventListener("pointercancel", O0), h2.classList.remove("is-dragging");
|
|
2922
2926
|
};
|
|
2923
|
-
|
|
2927
|
+
e2.addEventListener("pointermove", j), e2.addEventListener("pointerup", O0), e2.addEventListener("pointercancel", O0);
|
|
2924
2928
|
},
|
|
2925
2929
|
!0
|
|
2926
2930
|
// 捕获阶段,保证我们先手
|
|
2927
2931
|
);
|
|
2928
2932
|
}
|
|
2929
2933
|
function d2() {
|
|
2930
|
-
document.querySelectorAll(".el-scrollbar").forEach((
|
|
2931
|
-
if (!
|
|
2932
|
-
const h2 =
|
|
2934
|
+
document.querySelectorAll(".el-scrollbar").forEach((e2) => {
|
|
2935
|
+
if (!e2.closest(".el-table")) return;
|
|
2936
|
+
const h2 = e2.querySelector(".el-scrollbar__wrap"), u2 = e2.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
2933
2937
|
if (!h2 || !u2) return;
|
|
2934
2938
|
const X = h2.querySelector(".el-scrollbar__view") || h2.firstElementChild || h2, p2 = X.querySelector("table") || X.querySelector(".el-table__body") || X, E2 = p2.scrollWidth, Z2 = h2.clientWidth, x2 = E2 - Z2 > 2;
|
|
2935
|
-
if (
|
|
2939
|
+
if (e2.classList.toggle("has-x-scroll", x2), u2.style.display = "", x2 && e2.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(o2), !A.has(h2)) {
|
|
2936
2940
|
const T2 = new ResizeObserver(() => {
|
|
2937
2941
|
const y2 = p2 && p2.scrollWidth || h2.scrollWidth, R2 = h2.clientWidth, W0 = y2 - R2 > 2;
|
|
2938
|
-
|
|
2942
|
+
e2.classList.toggle("has-x-scroll", W0);
|
|
2939
2943
|
});
|
|
2940
2944
|
T2.observe(h2), p2 && T2.observe(p2), A.set(h2, T2), $.push(() => T2.disconnect());
|
|
2941
2945
|
}
|
|
2942
2946
|
});
|
|
2943
2947
|
}
|
|
2944
2948
|
return d2(), T.observe(document.body, { childList: !0, subtree: !0 }), () => {
|
|
2945
|
-
T.disconnect(), $.forEach((
|
|
2949
|
+
T.disconnect(), $.forEach((e2) => {
|
|
2946
2950
|
try {
|
|
2947
|
-
|
|
2951
|
+
e2();
|
|
2948
2952
|
} catch {
|
|
2949
2953
|
}
|
|
2950
2954
|
}), $.length = 0;
|
|
@@ -2954,14 +2958,14 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
2954
2958
|
Y2(
|
|
2955
2959
|
() => [s.value],
|
|
2956
2960
|
() => {
|
|
2957
|
-
var T, A, $, s2, o2, d2,
|
|
2961
|
+
var T, A, $, s2, o2, d2, e2;
|
|
2958
2962
|
let C = (T = s.value) == null ? void 0 : T.find((h2) => (h2 == null ? void 0 : h2.parentContent) === l.value);
|
|
2959
2963
|
if (C || !(($ = (A = s.value) == null ? void 0 : A[0]) != null && $.parentContent)) {
|
|
2960
2964
|
let h2 = (o2 = (s2 = u.value) == null ? void 0 : s2[0]) == null ? void 0 : o2.prop, u2 = (d2 = f.value) == null ? void 0 : d2.find((X) => {
|
|
2961
2965
|
var p2, E2;
|
|
2962
2966
|
return (X == null ? void 0 : X[h2]) === ((C == null ? void 0 : C.value) ?? ((E2 = (p2 = s.value) == null ? void 0 : p2[0]) == null ? void 0 : E2.value));
|
|
2963
2967
|
});
|
|
2964
|
-
(
|
|
2968
|
+
(e2 = g.value) == null || e2.setCurrentRow(), g.value && u2 && setTimeout(() => {
|
|
2965
2969
|
var X;
|
|
2966
2970
|
(X = g.value) == null || X.setCurrentRow(u2);
|
|
2967
2971
|
}, 20);
|
|
@@ -3014,8 +3018,8 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3014
3018
|
}
|
|
3015
3019
|
return !0;
|
|
3016
3020
|
}, g0 = (C, T, A, $) => r2(() => {
|
|
3017
|
-
var o2, d2,
|
|
3018
|
-
let s2 = C != null && C[T == null ? void 0 : T.prop] ? ((d2 = (o2 = C == null ? void 0 : C[T == null ? void 0 : T.prop]) == null ? void 0 : o2[0]) == null ? void 0 : d2.contents) ?? (C == null ? void 0 : C[T == null ? void 0 : T.prop]) : ((h2 = (
|
|
3021
|
+
var o2, d2, e2, h2, u2, X, p2, E2, Z2, x2;
|
|
3022
|
+
let s2 = C != null && C[T == null ? void 0 : T.prop] ? ((d2 = (o2 = C == null ? void 0 : C[T == null ? void 0 : T.prop]) == null ? void 0 : o2[0]) == null ? void 0 : d2.contents) ?? (C == null ? void 0 : C[T == null ? void 0 : T.prop]) : ((h2 = (e2 = C == null ? void 0 : C[A == null ? void 0 : A.prop]) == null ? void 0 : e2[0]) == null ? void 0 : h2.contents) ?? (C == null ? void 0 : C[A == null ? void 0 : A.prop]) ?? ((X = (u2 = $ == null ? void 0 : $[A == null ? void 0 : A.prop]) == null ? void 0 : u2[0]) == null ? void 0 : X.contents) ?? ($ == null ? void 0 : $[A == null ? void 0 : A.prop]) ?? ((Z2 = (E2 = C == null ? void 0 : C[(p2 = A == null ? void 0 : A.child) == null ? void 0 : p2.prop]) == null ? void 0 : E2[0]) == null ? void 0 : Z2.contents) ?? (C == null ? void 0 : C[(x2 = A == null ? void 0 : A.child) == null ? void 0 : x2.prop]);
|
|
3019
3023
|
return Array.isArray(s2) && !(s2 != null && s2.every((T2) => typeof T2 == "string" || typeof T2 == "number")) ? "查看" : s2;
|
|
3020
3024
|
}), R = (C) => {
|
|
3021
3025
|
var $, s2, o2;
|
|
@@ -3074,7 +3078,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3074
3078
|
}, V0 = (C, T) => {
|
|
3075
3079
|
D("clickButton", "删除", C, { extra: { label: "删除" }, index: T });
|
|
3076
3080
|
}, fe = (C, T) => {
|
|
3077
|
-
var o2, d2,
|
|
3081
|
+
var o2, d2, e2, h2;
|
|
3078
3082
|
if ((C == null ? void 0 : C.id) === "__empty__") {
|
|
3079
3083
|
const u2 = {};
|
|
3080
3084
|
(o2 = u.value) == null || o2.forEach((X) => {
|
|
@@ -3088,7 +3092,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3088
3092
|
const X = u2 == null ? void 0 : u2.prop;
|
|
3089
3093
|
!X || X === "operate" || (A[X] = "");
|
|
3090
3094
|
}), A.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, A._isTemp = !0, (C == null ? void 0 : C.level) !== void 0 && (A.level = C.level), (C == null ? void 0 : C.tableEditType) !== void 0 && (A.tableEditType = C.tableEditType);
|
|
3091
|
-
const $ = typeof T == "number" ? T : (
|
|
3095
|
+
const $ = typeof T == "number" ? T : (e2 = f.value) == null ? void 0 : e2.findIndex((u2) => (u2 == null ? void 0 : u2.id) === (C == null ? void 0 : C.id)), s2 = $ >= 0 ? $ + 1 : ((h2 = f.value) == null ? void 0 : h2.length) ?? 0;
|
|
3092
3096
|
D("addNewRow", { newRow: A, targetIndex: s2 });
|
|
3093
3097
|
}, b = (C, T, A, $) => {
|
|
3094
3098
|
D("contentClick", C, T, A, $);
|
|
@@ -3127,10 +3131,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3127
3131
|
const A = new FileReader();
|
|
3128
3132
|
A.onloadend = () => T(A.result), A.readAsDataURL(C);
|
|
3129
3133
|
}), A0 = (C, T = "file") => {
|
|
3130
|
-
let A = C.split(","), $ = A[0].match(/:(.*?);/)[1], s2 = $.split("/")[1], o2 = atob(A[1]), d2 = o2.length,
|
|
3134
|
+
let A = C.split(","), $ = A[0].match(/:(.*?);/)[1], s2 = $.split("/")[1], o2 = atob(A[1]), d2 = o2.length, e2 = new Uint8Array(d2);
|
|
3131
3135
|
for (; d2--; )
|
|
3132
|
-
|
|
3133
|
-
return new File([
|
|
3136
|
+
e2[d2] = o2.charCodeAt(d2);
|
|
3137
|
+
return new File([e2], `${T}.${s2}`, {
|
|
3134
3138
|
type: $
|
|
3135
3139
|
});
|
|
3136
3140
|
}, pe = async (C) => {
|
|
@@ -3139,10 +3143,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3139
3143
|
$.append("file", A);
|
|
3140
3144
|
let s2;
|
|
3141
3145
|
return await X6($).then((o2) => {
|
|
3142
|
-
var d2,
|
|
3146
|
+
var d2, e2, h2, u2, X, p2, E2;
|
|
3143
3147
|
s2 = {
|
|
3144
3148
|
url: (d2 = o2.data.result) == null ? void 0 : d2.url,
|
|
3145
|
-
name: (E2 = (h2 = (
|
|
3149
|
+
name: (E2 = (h2 = (e2 = o2.data.result) == null ? void 0 : e2.url) == null ? void 0 : h2.split("/")) == null ? void 0 : E2[((p2 = (X = (u2 = o2.data.result) == null ? void 0 : u2.url) == null ? void 0 : X.split("/")) == null ? void 0 : p2.length) - 1]
|
|
3146
3150
|
};
|
|
3147
3151
|
}), s2;
|
|
3148
3152
|
}, ge = async (C) => {
|
|
@@ -3154,10 +3158,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3154
3158
|
C.preventDefault();
|
|
3155
3159
|
const s2 = ve($);
|
|
3156
3160
|
if (!s2.length) return;
|
|
3157
|
-
const { rowIndex: o2, columnIndex: d2 } = v.value || { rowIndex: 0, columnIndex: 0 },
|
|
3161
|
+
const { rowIndex: o2, columnIndex: d2 } = v.value || { rowIndex: 0, columnIndex: 0 }, e2 = [];
|
|
3158
3162
|
if (s2 == null || s2.forEach((h2) => {
|
|
3159
|
-
|
|
3160
|
-
}), (
|
|
3163
|
+
e2.push(h2.length + d2);
|
|
3164
|
+
}), (e2 == null ? void 0 : e2.filter((h2) => {
|
|
3161
3165
|
var u2;
|
|
3162
3166
|
return h2 > Object.keys((u2 = f.value) == null ? void 0 : u2[0]).length;
|
|
3163
3167
|
}).length) > 0) {
|
|
@@ -3177,10 +3181,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3177
3181
|
} else {
|
|
3178
3182
|
const s2 = A.getData("text/html");
|
|
3179
3183
|
if (s2 === void 0) return;
|
|
3180
|
-
const d2 = new DOMParser().parseFromString(s2, "text/html"),
|
|
3181
|
-
if ((
|
|
3184
|
+
const d2 = new DOMParser().parseFromString(s2, "text/html"), e2 = d2.querySelectorAll("table");
|
|
3185
|
+
if ((e2 == null ? void 0 : e2.length) > 0) {
|
|
3182
3186
|
C.preventDefault();
|
|
3183
|
-
const u2 =
|
|
3187
|
+
const u2 = e2[0].querySelectorAll("tr"), X = [];
|
|
3184
3188
|
for (const Z2 of u2) {
|
|
3185
3189
|
const x2 = Z2.querySelectorAll("td, th"), T2 = [];
|
|
3186
3190
|
for (const y2 of x2) {
|
|
@@ -3278,8 +3282,8 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3278
3282
|
$[o2] = "合计";
|
|
3279
3283
|
return;
|
|
3280
3284
|
}
|
|
3281
|
-
const d2 = s2.property,
|
|
3282
|
-
if (
|
|
3285
|
+
const d2 = s2.property, e2 = (u2 = (h2 = t.columns) == null ? void 0 : h2.filter((X) => X == null ? void 0 : X.showSummary)) == null ? void 0 : u2.map((X) => X.prop);
|
|
3286
|
+
if (e2 != null && e2.includes(d2)) {
|
|
3283
3287
|
const X = A == null ? void 0 : A.map((p2) => Number(p2[d2]));
|
|
3284
3288
|
if (X.every((p2) => isNaN(p2)))
|
|
3285
3289
|
$[o2] = "N/A";
|
|
@@ -3315,14 +3319,15 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3315
3319
|
return T(u.value), C;
|
|
3316
3320
|
});
|
|
3317
3321
|
return (C, T) => {
|
|
3318
|
-
var
|
|
3319
|
-
const A =
|
|
3322
|
+
var e2, h2, u2, X, p2, E2, Z2;
|
|
3323
|
+
const A = J("el-icon"), $ = J("svg-icon"), s2 = J("el-table-column"), o2 = J("el-table"), d2 = J("el-pagination");
|
|
3320
3324
|
return x(), z("div", {
|
|
3321
3325
|
class: "table-content-show",
|
|
3322
3326
|
ref_key: "tableOuterRef",
|
|
3323
3327
|
ref: m
|
|
3324
3328
|
}, [
|
|
3325
|
-
|
|
3329
|
+
n.hideHeaderContent ? Q("", !0) : (x(), q(yg, {
|
|
3330
|
+
key: 0,
|
|
3326
3331
|
buttons: f2.value,
|
|
3327
3332
|
onButtonClick: W2,
|
|
3328
3333
|
columns: u.value
|
|
@@ -3334,7 +3339,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3334
3339
|
}, void 0, !0)
|
|
3335
3340
|
]),
|
|
3336
3341
|
_: 3
|
|
3337
|
-
}, 8, ["buttons", "columns"]),
|
|
3342
|
+
}, 8, ["buttons", "columns"])),
|
|
3338
3343
|
D2(C.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
|
|
3339
3344
|
n.isCardViewport ? (x(), z("div", Wg, [
|
|
3340
3345
|
(x(!0), z(k2, null, M2(f.value, (x2) => (x(), q(Tg, {
|
|
@@ -3385,13 +3390,13 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3385
3390
|
onClick: (R2) => X2("编辑", x2, { extra: { label: "编辑" } }),
|
|
3386
3391
|
name: "card-edit",
|
|
3387
3392
|
style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
|
|
3388
|
-
}, null, 8, ["onClick"])) :
|
|
3393
|
+
}, null, 8, ["onClick"])) : Q("", !0),
|
|
3389
3394
|
(y2 = n.rowButton) != null && y2.find((R2) => (R2 == null ? void 0 : R2.label) === "删除") ? (x(), q($, {
|
|
3390
3395
|
key: 1,
|
|
3391
3396
|
onClick: (R2) => X2("删除", x2, { extra: { label: "删除" } }),
|
|
3392
3397
|
name: "card-delete",
|
|
3393
3398
|
style: { width: "15px", height: "15px", color: "#ff0000" }
|
|
3394
|
-
}, null, 8, ["onClick"])) :
|
|
3399
|
+
}, null, 8, ["onClick"])) : Q("", !0)
|
|
3395
3400
|
])
|
|
3396
3401
|
];
|
|
3397
3402
|
}),
|
|
@@ -3402,7 +3407,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3402
3407
|
"highlight-current-row": "",
|
|
3403
3408
|
class: "table-wrap",
|
|
3404
3409
|
data: f.value,
|
|
3405
|
-
"show-summary": (
|
|
3410
|
+
"show-summary": (e2 = n.columns) == null ? void 0 : e2.some((x2) => x2 == null ? void 0 : x2.showSummary),
|
|
3406
3411
|
onSortChange: G2,
|
|
3407
3412
|
"sum-text": (h2 = n.summaryInfo) == null ? void 0 : h2.text,
|
|
3408
3413
|
"summary-method": ct,
|
|
@@ -3442,15 +3447,15 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3442
3447
|
class: "ss-empty-add",
|
|
3443
3448
|
onClick: T[0] || (T[0] = Ge((x2) => fe({ id: "__empty__" }, 0), ["stop"]))
|
|
3444
3449
|
}, [
|
|
3445
|
-
|
|
3450
|
+
i2(A, { size: 14 }, {
|
|
3446
3451
|
default: H(() => [
|
|
3447
|
-
|
|
3452
|
+
i2(F0(K6))
|
|
3448
3453
|
]),
|
|
3449
3454
|
_: 1
|
|
3450
3455
|
})
|
|
3451
3456
|
], 512)), [
|
|
3452
3457
|
[w6, l2.value]
|
|
3453
|
-
]) :
|
|
3458
|
+
]) : Q("", !0)
|
|
3454
3459
|
], 32)
|
|
3455
3460
|
]),
|
|
3456
3461
|
default: H(() => {
|
|
@@ -3460,13 +3465,13 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3460
3465
|
key: 0,
|
|
3461
3466
|
width: 55,
|
|
3462
3467
|
fixed: "",
|
|
3463
|
-
align:
|
|
3468
|
+
align: C.center,
|
|
3464
3469
|
"class-name": "no-ellipsis"
|
|
3465
3470
|
}, {
|
|
3466
3471
|
default: H(({ row: j, $index: O0 }) => [
|
|
3467
3472
|
p3(a2("div", Vg, [
|
|
3468
3473
|
a2("span", Ag, [
|
|
3469
|
-
|
|
3474
|
+
i2($, {
|
|
3470
3475
|
name: "drag",
|
|
3471
3476
|
style: { width: "15px", height: "15px", cursor: "move" }
|
|
3472
3477
|
})
|
|
@@ -3476,9 +3481,9 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3476
3481
|
style: { cursor: "pointer" },
|
|
3477
3482
|
onClick: Ge((J0) => fe(j, O0), ["stop"])
|
|
3478
3483
|
}, [
|
|
3479
|
-
|
|
3484
|
+
i2(A, { size: 12 }, {
|
|
3480
3485
|
default: H(() => [
|
|
3481
|
-
|
|
3486
|
+
i2(F0(K6))
|
|
3482
3487
|
]),
|
|
3483
3488
|
_: 1
|
|
3484
3489
|
})
|
|
@@ -3488,9 +3493,9 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3488
3493
|
style: { cursor: "pointer" },
|
|
3489
3494
|
onClick: Ge((J0) => V0(j, O0), ["stop"])
|
|
3490
3495
|
}, [
|
|
3491
|
-
|
|
3496
|
+
i2(A, { size: 12 }, {
|
|
3492
3497
|
default: H(() => [
|
|
3493
|
-
|
|
3498
|
+
i2(F0(V9))
|
|
3494
3499
|
]),
|
|
3495
3500
|
_: 1
|
|
3496
3501
|
})
|
|
@@ -3500,14 +3505,14 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3500
3505
|
])
|
|
3501
3506
|
]),
|
|
3502
3507
|
_: 1
|
|
3503
|
-
})) :
|
|
3508
|
+
}, 8, ["align"])) : Q("", !0),
|
|
3504
3509
|
n.allowSelect && n.isEditViewport ? (x(), q(s2, {
|
|
3505
3510
|
key: 1,
|
|
3506
3511
|
type: "selection",
|
|
3507
3512
|
width: (x2 = n.columns) != null && x2.some((j) => j == null ? void 0 : j.showSummary) ? 55 : 38,
|
|
3508
3513
|
fixed: "",
|
|
3509
3514
|
selectable: K2
|
|
3510
|
-
}, null, 8, ["width"])) :
|
|
3515
|
+
}, null, 8, ["width"])) : Q("", !0),
|
|
3511
3516
|
t != null && t.showIndex && !((T2 = t == null ? void 0 : t.tableData) != null && T2.some((j) => j == null ? void 0 : j.children)) && ((R2 = (y2 = t == null ? void 0 : t.columns) == null ? void 0 : y2[0]) == null ? void 0 : R2.prop) !== "disabled" ? (x(), q(s2, {
|
|
3512
3517
|
key: 2,
|
|
3513
3518
|
type: "index",
|
|
@@ -3518,10 +3523,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3518
3523
|
sortable: ""
|
|
3519
3524
|
}, {
|
|
3520
3525
|
default: H(({ row: j, column: O0, $index: J0 }) => [
|
|
3521
|
-
n.isEditViewport ?
|
|
3526
|
+
n.isEditViewport ? Q("", !0) : (x(), z("span", Lg, B2(J0 + 1), 1))
|
|
3522
3527
|
]),
|
|
3523
3528
|
_: 1
|
|
3524
|
-
})) :
|
|
3529
|
+
})) : Q("", !0),
|
|
3525
3530
|
(W0 = n.tableData) != null && W0.some((j) => j == null ? void 0 : j.children) && ((D0 = n.columns) == null ? void 0 : D0.length) > 0 ? (x(), q(s2, {
|
|
3526
3531
|
key: 3,
|
|
3527
3532
|
type: "index",
|
|
@@ -3531,10 +3536,10 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3531
3536
|
align: "center"
|
|
3532
3537
|
}, {
|
|
3533
3538
|
default: H(({ row: j, column: O0, $index: J0 }) => [
|
|
3534
|
-
n.isEditViewport ?
|
|
3539
|
+
n.isEditViewport ? Q("", !0) : (x(), z("span", Hg, B2(J0 + 1), 1))
|
|
3535
3540
|
]),
|
|
3536
3541
|
_: 1
|
|
3537
|
-
})) :
|
|
3542
|
+
})) : Q("", !0),
|
|
3538
3543
|
(x(!0), z(k2, null, M2(u.value, (j, O0) => {
|
|
3539
3544
|
var J0;
|
|
3540
3545
|
return x(), z(k2, null, [
|
|
@@ -3547,7 +3552,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3547
3552
|
onHandleColTypeChange: Y
|
|
3548
3553
|
}, {
|
|
3549
3554
|
operateHeader: H(() => [
|
|
3550
|
-
(j == null ? void 0 : j.label) === "操作" ? D2(C.$slots, "operateCol", { key: 0 }, void 0, !0) :
|
|
3555
|
+
(j == null ? void 0 : j.label) === "操作" ? D2(C.$slots, "operateCol", { key: 0 }, void 0, !0) : Q("", !0)
|
|
3551
3556
|
]),
|
|
3552
3557
|
content: H(({ row: m2, item: n0, slotData: ht, scope: u9, column: v0, columnProp: Dt, $index: f9 }) => {
|
|
3553
3558
|
var Hi, Gi, Ri, Ni, $i, ji;
|
|
@@ -3577,11 +3582,11 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3577
3582
|
item: n0,
|
|
3578
3583
|
slotData: ht
|
|
3579
3584
|
}, void 0, !0)
|
|
3580
|
-
])) :
|
|
3585
|
+
])) : Q("", !0)
|
|
3581
3586
|
], 64)) : ((Ni = n.columns) == null ? void 0 : Ni.findIndex((b2) => (b2 == null ? void 0 : b2.prop) === (j == null ? void 0 : j.prop))) >= ((m2 == null ? void 0 : m2.level) ?? -1) ? (x(), z(k2, { key: 1 }, [
|
|
3582
3587
|
T0(B2(g0(m2, j, n0, ht)), 1)
|
|
3583
|
-
], 64)) :
|
|
3584
|
-
], 12, Gg)) :
|
|
3588
|
+
], 64)) : Q("", !0)
|
|
3589
|
+
], 12, Gg)) : Q("", !0),
|
|
3585
3590
|
((j == null ? void 0 : j.type) ?? "text") === "operate" ? (x(), z("span", {
|
|
3586
3591
|
key: 1,
|
|
3587
3592
|
class: "table-operate",
|
|
@@ -3597,13 +3602,13 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3597
3602
|
key: 0,
|
|
3598
3603
|
onClick: (b2) => w(m2),
|
|
3599
3604
|
class: "blue-table-operate table-operate-content"
|
|
3600
|
-
}, "编辑", 8, Ng)) :
|
|
3605
|
+
}, "编辑", 8, Ng)) : Q("", !0),
|
|
3601
3606
|
n.isShowDelete ? (x(), z("span", {
|
|
3602
3607
|
key: 1,
|
|
3603
3608
|
onClick: (b2) => Q0(m2),
|
|
3604
3609
|
class: "red-table-operate table-operate-content"
|
|
3605
|
-
}, "删除", 8, $g)) :
|
|
3606
|
-
], 4)) :
|
|
3610
|
+
}, "删除", 8, $g)) : Q("", !0)
|
|
3611
|
+
], 4)) : Q("", !0),
|
|
3607
3612
|
(m2 == null ? void 0 : m2.tableEditType) === "edit" ? (x(), z("span", jg, [
|
|
3608
3613
|
(v0 == null ? void 0 : v0.property) === "disabled" || j != null && j.isReadonly ? (x(), z(k2, { key: 0 }, [
|
|
3609
3614
|
T0(B2(m2[v0 == null ? void 0 : v0.property]), 1)
|
|
@@ -3627,11 +3632,11 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3627
3632
|
_0(b2, m2, j), D("cellChange", m2, v0, b2);
|
|
3628
3633
|
}
|
|
3629
3634
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "suggest-list", "loading", "onFocus", "onInput", "onSelectSuggest", "onChange"]))
|
|
3630
|
-
])) :
|
|
3635
|
+
])) : Q("", !0)
|
|
3631
3636
|
];
|
|
3632
3637
|
}),
|
|
3633
3638
|
_: 2
|
|
3634
|
-
}, 1032, ["tableData", "column", "isEditViewport"])) :
|
|
3639
|
+
}, 1032, ["tableData", "column", "isEditViewport"])) : Q("", !0)
|
|
3635
3640
|
], 64);
|
|
3636
3641
|
}), 256))
|
|
3637
3642
|
];
|
|
@@ -3639,7 +3644,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3639
3644
|
_: 3
|
|
3640
3645
|
}, 8, ["data", "show-summary", "sum-text", "default-sort"])),
|
|
3641
3646
|
a2("div", Kg, [
|
|
3642
|
-
n.isCardViewport ?
|
|
3647
|
+
n.isCardViewport ? Q("", !0) : D2(C.$slots, "batchButton", {
|
|
3643
3648
|
key: 0,
|
|
3644
3649
|
buttons: L.value,
|
|
3645
3650
|
columns: u.value
|
|
@@ -3653,27 +3658,27 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3653
3658
|
"page-size": ((p2 = n.pageObj) == null ? void 0 : p2.pageSize) ?? 10,
|
|
3654
3659
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
3655
3660
|
total: ((E2 = n.pageObj) == null ? void 0 : E2.total) ?? 0
|
|
3656
|
-
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) :
|
|
3661
|
+
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : Q("", !0)
|
|
3657
3662
|
]),
|
|
3658
3663
|
((Z2 = t == null ? void 0 : t.bottomButton) == null ? void 0 : Z2.length) > 0 ? (x(), z("div", Xg, [
|
|
3659
3664
|
(x(!0), z(k2, null, M2(t == null ? void 0 : t.bottomButton, (x2, T2) => (x(), z("div", {
|
|
3660
3665
|
key: T2,
|
|
3661
3666
|
class: "table-child-button"
|
|
3662
3667
|
}, [
|
|
3663
|
-
|
|
3668
|
+
i2(Y0, {
|
|
3664
3669
|
onClickTrigger: T[4] || (T[4] = () => {
|
|
3665
3670
|
}),
|
|
3666
3671
|
modelValue: x2 == null ? void 0 : x2.label,
|
|
3667
3672
|
onClick: (y2) => O(x2)
|
|
3668
3673
|
}, null, 8, ["modelValue", "onClick"])
|
|
3669
3674
|
]))), 128))
|
|
3670
|
-
])) :
|
|
3671
|
-
p3(
|
|
3675
|
+
])) : Q("", !0),
|
|
3676
|
+
p3(i2(xg, {
|
|
3672
3677
|
style: c0({ top: d.y + "px", left: d.x + "px", position: "fixed", zIndex: 999 })
|
|
3673
3678
|
}, {
|
|
3674
3679
|
content: H(() => [
|
|
3675
3680
|
a2("div", Qg, [
|
|
3676
|
-
|
|
3681
|
+
i2(Y0, {
|
|
3677
3682
|
emptyColor: !0,
|
|
3678
3683
|
onClickTrigger: _2,
|
|
3679
3684
|
modelValue: "删除本行",
|
|
@@ -3686,7 +3691,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3686
3691
|
modelValue: "批量删除选中行",
|
|
3687
3692
|
buttonType: "",
|
|
3688
3693
|
style: { marginLeft: "0px" }
|
|
3689
|
-
})) :
|
|
3694
|
+
})) : Q("", !0)
|
|
3690
3695
|
])
|
|
3691
3696
|
]),
|
|
3692
3697
|
_: 1
|
|
@@ -3696,7 +3701,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3696
3701
|
], 512);
|
|
3697
3702
|
};
|
|
3698
3703
|
}
|
|
3699
|
-
}, Zg = /* @__PURE__ */ L2(Jg, [["__scopeId", "data-v-
|
|
3704
|
+
}, Zg = /* @__PURE__ */ L2(Jg, [["__scopeId", "data-v-1b8128c5"]]), ev = {
|
|
3700
3705
|
__name: "index",
|
|
3701
3706
|
props: {
|
|
3702
3707
|
value: String,
|
|
@@ -3795,7 +3800,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3795
3800
|
s("blurChange");
|
|
3796
3801
|
};
|
|
3797
3802
|
return (a, h) => {
|
|
3798
|
-
const c =
|
|
3803
|
+
const c = J("el-cascader");
|
|
3799
3804
|
return x(), q(c, {
|
|
3800
3805
|
modelValue: i.value,
|
|
3801
3806
|
"onUpdate:modelValue": h[0] || (h[0] = (d) => i.value = d),
|
|
@@ -3825,7 +3830,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3825
3830
|
setup(n) {
|
|
3826
3831
|
const e = n, t = N(e.value);
|
|
3827
3832
|
return (i, s) => {
|
|
3828
|
-
const o =
|
|
3833
|
+
const o = J("el-option"), l = J("el-select");
|
|
3829
3834
|
return x(), q(l, {
|
|
3830
3835
|
modelValue: t.value,
|
|
3831
3836
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
|
|
@@ -3866,21 +3871,21 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3866
3871
|
};
|
|
3867
3872
|
return Ve(() => {
|
|
3868
3873
|
}), (l, r) => {
|
|
3869
|
-
const a =
|
|
3874
|
+
const a = J("MenuItem", !0), h = J("el-sub-menu"), c = J("el-menu-item");
|
|
3870
3875
|
return x(!0), z(k2, null, M2(n.menuList, (d) => (x(), z(k2, null, [
|
|
3871
3876
|
d.show && d.children && d.children.length > 0 ? (x(), q(h, {
|
|
3872
3877
|
index: d.path,
|
|
3873
3878
|
key: d.path
|
|
3874
3879
|
}, {
|
|
3875
3880
|
title: H(() => [
|
|
3876
|
-
|
|
3881
|
+
i2(Wt, {
|
|
3877
3882
|
name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
|
|
3878
3883
|
class: "menu-icon"
|
|
3879
3884
|
}, null, 8, ["name"]),
|
|
3880
3885
|
D2(l.$slots, "title", { menu: d })
|
|
3881
3886
|
]),
|
|
3882
3887
|
default: H(() => [
|
|
3883
|
-
|
|
3888
|
+
i2(a, {
|
|
3884
3889
|
menuList: d.children,
|
|
3885
3890
|
onClickMenu: i,
|
|
3886
3891
|
onOpenMenu: s,
|
|
@@ -3904,13 +3909,13 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3904
3909
|
D2(l.$slots, "title", { menu: d })
|
|
3905
3910
|
]),
|
|
3906
3911
|
default: H(() => [
|
|
3907
|
-
|
|
3912
|
+
i2(Wt, {
|
|
3908
3913
|
name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
|
|
3909
3914
|
class: "menu-icon"
|
|
3910
3915
|
}, null, 8, ["name"])
|
|
3911
3916
|
]),
|
|
3912
3917
|
_: 2
|
|
3913
|
-
}, 1032, ["index", "onClick"])) :
|
|
3918
|
+
}, 1032, ["index", "onClick"])) : Q("", !0)
|
|
3914
3919
|
], 64))), 256);
|
|
3915
3920
|
};
|
|
3916
3921
|
}
|
|
@@ -3952,7 +3957,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3952
3957
|
v.value && v.value.open(D);
|
|
3953
3958
|
}
|
|
3954
3959
|
}), (D, O) => {
|
|
3955
|
-
const _ =
|
|
3960
|
+
const _ = J("el-sub-menu"), k = J("el-menu-item"), G = J("el-menu");
|
|
3956
3961
|
return x(), q(G, {
|
|
3957
3962
|
ref_key: "menuRef",
|
|
3958
3963
|
ref: v,
|
|
@@ -3978,14 +3983,14 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
3978
3983
|
style: c0(E.style)
|
|
3979
3984
|
}, {
|
|
3980
3985
|
title: H(() => [
|
|
3981
|
-
|
|
3986
|
+
i2(Wt, {
|
|
3982
3987
|
name: E.icon ?? ((E == null ? void 0 : E.level) <= 2 ? "default" : ""),
|
|
3983
3988
|
class: "menu-icon"
|
|
3984
3989
|
}, null, 8, ["name"]),
|
|
3985
3990
|
D2(D.$slots, "title", { menu: E }, void 0, !0)
|
|
3986
3991
|
]),
|
|
3987
3992
|
default: H(() => [
|
|
3988
|
-
|
|
3993
|
+
i2(nv, {
|
|
3989
3994
|
menuList: E.children,
|
|
3990
3995
|
onClickMenu: d
|
|
3991
3996
|
}, ce({ _: 2 }, [
|
|
@@ -4008,13 +4013,13 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
4008
4013
|
D2(D.$slots, "title", { menu: E }, void 0, !0)
|
|
4009
4014
|
]),
|
|
4010
4015
|
default: H(() => [
|
|
4011
|
-
|
|
4016
|
+
i2(Wt, {
|
|
4012
4017
|
name: E.icon ?? ((E == null ? void 0 : E.level) <= 2 ? "default" : ""),
|
|
4013
4018
|
class: "menu-icon"
|
|
4014
4019
|
}, null, 8, ["name"])
|
|
4015
4020
|
]),
|
|
4016
4021
|
_: 2
|
|
4017
|
-
}, 1032, ["index", "style", "onClick"])) :
|
|
4022
|
+
}, 1032, ["index", "style", "onClick"])) : Q("", !0)
|
|
4018
4023
|
], 64))), 256))
|
|
4019
4024
|
]),
|
|
4020
4025
|
_: 3
|
|
@@ -4046,7 +4051,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
4046
4051
|
t("update:modelValue", s), t("change", s);
|
|
4047
4052
|
};
|
|
4048
4053
|
return (s, o) => {
|
|
4049
|
-
const l =
|
|
4054
|
+
const l = J("el-date-picker");
|
|
4050
4055
|
return x(), q(l, {
|
|
4051
4056
|
"model-value": n.modelValue,
|
|
4052
4057
|
"onUpdate:modelValue": i,
|
|
@@ -4082,7 +4087,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
4082
4087
|
t("change", o);
|
|
4083
4088
|
};
|
|
4084
4089
|
return (o, l) => {
|
|
4085
|
-
const r =
|
|
4090
|
+
const r = J("el-date-picker");
|
|
4086
4091
|
return x(), q(r, {
|
|
4087
4092
|
"model-value": n.modelValue,
|
|
4088
4093
|
"onUpdate:modelValue": i,
|
|
@@ -4115,7 +4120,7 @@ const xg = /* @__PURE__ */ L2(mg, [["render", wg]]), bg = { class: "extra-button
|
|
|
4115
4120
|
setup(n) {
|
|
4116
4121
|
const e = n, t = N(e.value);
|
|
4117
4122
|
return (i, s) => {
|
|
4118
|
-
const o =
|
|
4123
|
+
const o = J("el-input");
|
|
4119
4124
|
return x(), q(o, {
|
|
4120
4125
|
modelValue: t.value,
|
|
4121
4126
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -4228,9 +4233,9 @@ const hv = { class: "docx-renderer" }, dv = {
|
|
|
4228
4233
|
h(d);
|
|
4229
4234
|
}), (c, d) => {
|
|
4230
4235
|
var g;
|
|
4231
|
-
const u =
|
|
4236
|
+
const u = J("el-table-column"), f = J("el-table"), p = J("el-pagination");
|
|
4232
4237
|
return x(), z("div", vv, [
|
|
4233
|
-
|
|
4238
|
+
i2(f, {
|
|
4234
4239
|
class: "csv-table",
|
|
4235
4240
|
data: a.value,
|
|
4236
4241
|
stripe: ""
|
|
@@ -4245,7 +4250,7 @@ const hv = { class: "docx-renderer" }, dv = {
|
|
|
4245
4250
|
_: 1
|
|
4246
4251
|
}, 8, ["data"]),
|
|
4247
4252
|
a2("div", mv, [
|
|
4248
|
-
|
|
4253
|
+
i2(p, {
|
|
4249
4254
|
class: "pagination-self",
|
|
4250
4255
|
onCurrentChange: r,
|
|
4251
4256
|
"current-page": s == null ? void 0 : s.currentPage,
|
|
@@ -7680,7 +7685,7 @@ function H8(n, e, t, i, s, o) {
|
|
|
7680
7685
|
}
|
|
7681
7686
|
let L0 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, f4 = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
7682
7687
|
const p4 = /* @__PURE__ */ /Edge\/(\d+)/.exec(L0.userAgent), G8 = /* @__PURE__ */ /MSIE \d/.test(L0.userAgent), g4 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(L0.userAgent), l6 = !!(G8 || g4 || p4), gn = !l6 && /* @__PURE__ */ /gecko\/(\d+)/i.test(L0.userAgent), y6 = !l6 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(L0.userAgent), tm = "webkitFontSmoothing" in f4.documentElement.style, R8 = !l6 && /* @__PURE__ */ /Apple Computer/.test(L0.vendor), vn = R8 && (/* @__PURE__ */ /Mobile\/\w+/.test(L0.userAgent) || L0.maxTouchPoints > 2);
|
|
7683
|
-
var
|
|
7688
|
+
var t2 = {
|
|
7684
7689
|
mac: vn || /* @__PURE__ */ /Mac/.test(L0.platform),
|
|
7685
7690
|
windows: /* @__PURE__ */ /Win/.test(L0.platform),
|
|
7686
7691
|
linux: /* @__PURE__ */ /Linux|X11/.test(L0.platform),
|
|
@@ -7777,12 +7782,12 @@ function nm(n, e, t) {
|
|
|
7777
7782
|
let i = n.nodeValue.length;
|
|
7778
7783
|
e > i && (e = i);
|
|
7779
7784
|
let s = e, o = e, l = 0;
|
|
7780
|
-
e == 0 && t < 0 || e == i && t >= 0 ?
|
|
7785
|
+
e == 0 && t < 0 || e == i && t >= 0 ? t2.chrome || t2.gecko || (e ? (s--, l = 1) : o < i && (o++, l = -1)) : t < 0 ? s-- : o < i && o++;
|
|
7781
7786
|
let r = yt(n, s, o).getClientRects();
|
|
7782
7787
|
if (!r.length)
|
|
7783
7788
|
return null;
|
|
7784
7789
|
let a = r[(l ? l < 0 : t >= 0) ? 0 : r.length - 1];
|
|
7785
|
-
return
|
|
7790
|
+
return t2.safari && !l && a.width == 0 && (a = Array.prototype.find.call(r, (h) => h.width) || a), l ? o6(a, l < 0) : a || null;
|
|
7786
7791
|
}
|
|
7787
7792
|
class Xe extends j2 {
|
|
7788
7793
|
static create(e, t, i) {
|
|
@@ -8255,7 +8260,7 @@ class s0 extends j2 {
|
|
|
8255
8260
|
let s = this.dom.lastChild;
|
|
8256
8261
|
for (; s && j2.get(s) instanceof $e; )
|
|
8257
8262
|
s = s.lastChild;
|
|
8258
|
-
if (!s || !this.length || s.nodeName != "BR" && ((i = j2.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!
|
|
8263
|
+
if (!s || !this.length || s.nodeName != "BR" && ((i = j2.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!t2.ios || !this.children.some((o) => o instanceof he))) {
|
|
8259
8264
|
let o = document.createElement("BR");
|
|
8260
8265
|
o.cmIgnore = !0, this.dom.appendChild(o);
|
|
8261
8266
|
}
|
|
@@ -9034,7 +9039,7 @@ class xn extends j2 {
|
|
|
9034
9039
|
let { from: h, to: c } = this.hasComposition;
|
|
9035
9040
|
i = new ie(h, c, e.changes.mapPos(h, -1), e.changes.mapPos(c, 1)).addToSet(i.slice());
|
|
9036
9041
|
}
|
|
9037
|
-
this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (
|
|
9042
|
+
this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (t2.ie || t2.chrome) && !o && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
|
|
9038
9043
|
let l = this.decorations, r = this.updateDeco(), a = ym(l, r, e.changes);
|
|
9039
9044
|
return i = ie.extendWithRanges(i, a), !(this.flags & 7) && i.length == 0 ? !1 : (this.updateInner(i, e.startState.doc.length, o), e.transactions.length && (this.lastUpdate = Date.now()), !0);
|
|
9040
9045
|
}
|
|
@@ -9045,7 +9050,7 @@ class xn extends j2 {
|
|
|
9045
9050
|
let { observer: s } = this.view;
|
|
9046
9051
|
s.ignore(() => {
|
|
9047
9052
|
this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
9048
|
-
let l =
|
|
9053
|
+
let l = t2.chrome || t2.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
|
|
9049
9054
|
this.sync(this.view, l), this.flags &= -8, l && (l.written || s.selectionRange.focusNode != l.node) && (this.forceSelection = !0), this.dom.style.height = "";
|
|
9050
9055
|
}), this.markedForComposition.forEach(
|
|
9051
9056
|
(l) => l.flags &= -9
|
|
@@ -9112,16 +9117,16 @@ class xn extends j2 {
|
|
|
9112
9117
|
let l = this.forceSelection;
|
|
9113
9118
|
this.forceSelection = !1;
|
|
9114
9119
|
let r = this.view.state.selection.main, a = this.moveToLine(this.domAtPos(r.anchor)), h = r.empty ? a : this.moveToLine(this.domAtPos(r.head));
|
|
9115
|
-
if (
|
|
9120
|
+
if (t2.gecko && r.empty && !this.hasComposition && wm(a)) {
|
|
9116
9121
|
let d = document.createTextNode("");
|
|
9117
9122
|
this.view.observer.ignore(() => a.node.insertBefore(d, a.node.childNodes[a.offset] || null)), a = h = new S0(d, 0), l = !0;
|
|
9118
9123
|
}
|
|
9119
9124
|
let c = this.view.observer.selectionRange;
|
|
9120
9125
|
(l || !c.focusNode || (!g1(a.node, a.offset, c.anchorNode, c.anchorOffset) || !g1(h.node, h.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, r)) && (this.view.observer.ignore(() => {
|
|
9121
|
-
|
|
9126
|
+
t2.android && t2.chrome && this.dom.contains(c.focusNode) && Sm(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
|
|
9122
9127
|
let d = S1(this.view.root);
|
|
9123
9128
|
if (d) if (r.empty) {
|
|
9124
|
-
if (
|
|
9129
|
+
if (t2.gecko) {
|
|
9125
9130
|
let u = bm(a.node, a.offset);
|
|
9126
9131
|
if (u && u != 3) {
|
|
9127
9132
|
let f = (u == 1 ? A8 : E8)(a.node, a.offset);
|
|
@@ -9512,7 +9517,7 @@ function yn(n, e, t) {
|
|
|
9512
9517
|
let d = (c.top > t ? c.top - t : t - c.bottom) - 1;
|
|
9513
9518
|
if (c.left - 1 <= e && c.right + 1 >= e && d < o) {
|
|
9514
9519
|
let u = e >= (c.left + c.right) / 2, f = u;
|
|
9515
|
-
if ((
|
|
9520
|
+
if ((t2.chrome || t2.gecko) && yt(n, r).getBoundingClientRect().left == c.right && (f = !u), d <= 0)
|
|
9516
9521
|
return { node: n, offset: r + (f ? 1 : 0) };
|
|
9517
9522
|
s = r + (f ? 1 : 0), o = d;
|
|
9518
9523
|
}
|
|
@@ -9548,7 +9553,7 @@ function ho(n, e, t, i = -1) {
|
|
|
9548
9553
|
D && ({ offsetNode: v, offset: S } = D);
|
|
9549
9554
|
} else if (p.caretRangeFromPoint) {
|
|
9550
9555
|
let D = p.caretRangeFromPoint(c, d);
|
|
9551
|
-
D && ({ startContainer: v, startOffset: S } = D, (!n.contentDOM.contains(v) ||
|
|
9556
|
+
D && ({ startContainer: v, startOffset: S } = D, (!n.contentDOM.contains(v) || t2.safari && Mm(v, S, c) || t2.chrome && Tm(v, S, c)) && (v = void 0));
|
|
9552
9557
|
}
|
|
9553
9558
|
v && (S = Math.min(Pe(v), S));
|
|
9554
9559
|
}
|
|
@@ -9789,7 +9794,7 @@ class Bm {
|
|
|
9789
9794
|
a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = Rm(r, this.bounds.from);
|
|
9790
9795
|
} else {
|
|
9791
9796
|
let r = e.observer.selectionRange, a = o && o.node == r.focusNode && o.offset == r.focusOffset || !u4(e.contentDOM, r.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(r.focusNode, r.focusOffset), h = l && l.node == r.anchorNode && l.offset == r.anchorOffset || !u4(e.contentDOM, r.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(r.anchorNode, r.anchorOffset), c = e.viewport;
|
|
9792
|
-
if ((
|
|
9797
|
+
if ((t2.ios || t2.chrome) && e.state.selection.main.empty && a != h && (c.from > 0 || c.to < e.state.doc.length)) {
|
|
9793
9798
|
let d = Math.min(a, h), u = Math.max(a, h), f = c.from - d, p = c.to - u;
|
|
9794
9799
|
(f == 0 || f == 1 || d == 0) && (p == 0 || p == -1 || u == e.state.doc.length) && (a = 0, h = e.state.doc.length);
|
|
9795
9800
|
}
|
|
@@ -9801,9 +9806,9 @@ function uo(n, e) {
|
|
|
9801
9806
|
let t, { newSel: i } = e, s = n.state.selection.main, o = n.inputState.lastKeyTime > Date.now() - 100 ? n.inputState.lastKeyCode : -1;
|
|
9802
9807
|
if (e.bounds) {
|
|
9803
9808
|
let { from: l, to: r } = e.bounds, a = s.from, h = null;
|
|
9804
|
-
(o === 8 ||
|
|
9809
|
+
(o === 8 || t2.android && e.text.length < r - l) && (a = s.to, h = "end");
|
|
9805
9810
|
let c = Hm(n.state.doc.sliceString(l, r, c1), e.text, a - l, h);
|
|
9806
|
-
c && (
|
|
9811
|
+
c && (t2.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == c1 + c1 && c.toB--, t = {
|
|
9807
9812
|
from: l + c.from,
|
|
9808
9813
|
to: l + c.toA,
|
|
9809
9814
|
insert: V2.of(e.text.slice(c.from, c.toB).split(c1))
|
|
@@ -9811,11 +9816,11 @@ function uo(n, e) {
|
|
|
9811
9816
|
} else i && (!n.hasFocus && n.state.facet(He) || i.main.eq(s)) && (i = null);
|
|
9812
9817
|
if (!t && !i)
|
|
9813
9818
|
return !1;
|
|
9814
|
-
if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (
|
|
9819
|
+
if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (t2.mac || t2.android) && t && t.from == t.to && t.from == s.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: V2.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= s.from && t.to <= s.to && (t.from != s.from || t.to != s.to) && s.to - s.from - (t.to - t.from) <= 4 ? t = {
|
|
9815
9820
|
from: s.from,
|
|
9816
9821
|
to: s.to,
|
|
9817
9822
|
insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
|
|
9818
|
-
} :
|
|
9823
|
+
} : t2.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
|
|
9819
9824
|
` && n.lineWrapping && (i && (i = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: V2.of([" "]) }), t)
|
|
9820
9825
|
return hi(n, t, i, o);
|
|
9821
9826
|
if (i && !i.main.eq(s)) {
|
|
@@ -9825,10 +9830,10 @@ function uo(n, e) {
|
|
|
9825
9830
|
return !1;
|
|
9826
9831
|
}
|
|
9827
9832
|
function hi(n, e, t, i = -1) {
|
|
9828
|
-
if (
|
|
9833
|
+
if (t2.ios && n.inputState.flushIOSKey(e))
|
|
9829
9834
|
return !0;
|
|
9830
9835
|
let s = n.state.selection.main;
|
|
9831
|
-
if (
|
|
9836
|
+
if (t2.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
|
|
9832
9837
|
// after a completion when you press enter
|
|
9833
9838
|
(e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && Gt(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && Gt(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && Gt(n.contentDOM, "Delete", 46)))
|
|
9834
9839
|
return !0;
|
|
@@ -9917,7 +9922,7 @@ class Nm {
|
|
|
9917
9922
|
this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
|
|
9918
9923
|
}
|
|
9919
9924
|
constructor(e) {
|
|
9920
|
-
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 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.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus,
|
|
9925
|
+
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 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.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, t2.safari && e.contentDOM.addEventListener("input", () => null), t2.gecko && iw(e.contentDOM.ownerDocument);
|
|
9921
9926
|
}
|
|
9922
9927
|
handleEvent(e) {
|
|
9923
9928
|
!Fm(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));
|
|
@@ -9951,17 +9956,17 @@ class Nm {
|
|
|
9951
9956
|
keydown(e) {
|
|
9952
9957
|
if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
|
|
9953
9958
|
return !0;
|
|
9954
|
-
if (this.tabFocusMode > 0 && e.keyCode != 27 && po.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1),
|
|
9959
|
+
if (this.tabFocusMode > 0 && e.keyCode != 27 && po.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), t2.android && t2.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
|
|
9955
9960
|
return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
|
|
9956
9961
|
let t;
|
|
9957
|
-
return
|
|
9962
|
+
return t2.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = fo.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || jm.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
|
|
9958
9963
|
}
|
|
9959
9964
|
flushIOSKey(e) {
|
|
9960
9965
|
let t = this.pendingIOSKey;
|
|
9961
9966
|
return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, Gt(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
|
|
9962
9967
|
}
|
|
9963
9968
|
ignoreDuringComposition(e) {
|
|
9964
|
-
return /^key/.test(e.type) ? this.composing > 0 ? !0 :
|
|
9969
|
+
return /^key/.test(e.type) ? this.composing > 0 ? !0 : t2.safari && !t2.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
|
|
9965
9970
|
}
|
|
9966
9971
|
startMouseSelection(e) {
|
|
9967
9972
|
this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
|
|
@@ -10081,11 +10086,11 @@ class Um {
|
|
|
10081
10086
|
}
|
|
10082
10087
|
function Im(n, e) {
|
|
10083
10088
|
let t = n.state.facet(K8);
|
|
10084
|
-
return t.length ? t[0](e) :
|
|
10089
|
+
return t.length ? t[0](e) : t2.mac ? e.metaKey : e.ctrlKey;
|
|
10085
10090
|
}
|
|
10086
10091
|
function qm(n, e) {
|
|
10087
10092
|
let t = n.state.facet(X8);
|
|
10088
|
-
return t.length ? t[0](e) :
|
|
10093
|
+
return t.length ? t[0](e) : t2.mac ? !e.altKey : !e.ctrlKey;
|
|
10089
10094
|
}
|
|
10090
10095
|
function Ym(n, e) {
|
|
10091
10096
|
let { main: t } = n.state.selection;
|
|
@@ -10112,7 +10117,7 @@ function Fm(n, e) {
|
|
|
10112
10117
|
return !1;
|
|
10113
10118
|
return !0;
|
|
10114
10119
|
}
|
|
10115
|
-
const de = /* @__PURE__ */ Object.create(null), se = /* @__PURE__ */ Object.create(null), go =
|
|
10120
|
+
const de = /* @__PURE__ */ Object.create(null), se = /* @__PURE__ */ Object.create(null), go = t2.ie && t2.ie_version < 15 || t2.ios && t2.webkit_version < 604;
|
|
10116
10121
|
function Km(n) {
|
|
10117
10122
|
let e = n.dom.parentNode;
|
|
10118
10123
|
if (!e)
|
|
@@ -10215,7 +10220,7 @@ function Tn(n, e) {
|
|
|
10215
10220
|
let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
|
|
10216
10221
|
return { pos: t, bias: Xm(n, t, e.clientX, e.clientY) };
|
|
10217
10222
|
}
|
|
10218
|
-
const Qm =
|
|
10223
|
+
const Qm = t2.ie && t2.ie_version <= 11;
|
|
10219
10224
|
let zn = null, Pn = 0, Vn = 0;
|
|
10220
10225
|
function mo(n) {
|
|
10221
10226
|
if (!Qm)
|
|
@@ -10365,7 +10370,7 @@ se.compositionstart = se.compositionupdate = (n) => {
|
|
|
10365
10370
|
n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
|
|
10366
10371
|
};
|
|
10367
10372
|
se.compositionend = (n) => {
|
|
10368
|
-
n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null,
|
|
10373
|
+
n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, t2.chrome && t2.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
|
|
10369
10374
|
n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
|
|
10370
10375
|
}, 50));
|
|
10371
10376
|
};
|
|
@@ -10382,14 +10387,14 @@ de.beforeinput = (n, e) => {
|
|
|
10382
10387
|
}
|
|
10383
10388
|
}
|
|
10384
10389
|
let s;
|
|
10385
|
-
if (
|
|
10390
|
+
if (t2.chrome && t2.android && (s = fo.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
|
|
10386
10391
|
let o = ((i = window.visualViewport) === null || i === void 0 ? void 0 : i.height) || 0;
|
|
10387
10392
|
setTimeout(() => {
|
|
10388
10393
|
var l;
|
|
10389
10394
|
(((l = window.visualViewport) === null || l === void 0 ? void 0 : l.height) || 0) > o + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
|
|
10390
10395
|
}, 100);
|
|
10391
10396
|
}
|
|
10392
|
-
return
|
|
10397
|
+
return t2.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), t2.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => se.compositionend(n, e), 20), !1;
|
|
10393
10398
|
};
|
|
10394
10399
|
const En = /* @__PURE__ */ new Set();
|
|
10395
10400
|
function iw(n) {
|
|
@@ -11538,15 +11543,15 @@ const gw = /* @__PURE__ */ M4("." + O4, {
|
|
|
11538
11543
|
subtree: !0,
|
|
11539
11544
|
attributes: !0,
|
|
11540
11545
|
characterDataOldValue: !0
|
|
11541
|
-
}, O6 =
|
|
11546
|
+
}, O6 = t2.ie && t2.ie_version <= 11;
|
|
11542
11547
|
class mw {
|
|
11543
11548
|
constructor(e) {
|
|
11544
11549
|
this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Jv(), 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) => {
|
|
11545
11550
|
for (let i of t)
|
|
11546
11551
|
this.queue.push(i);
|
|
11547
|
-
(
|
|
11548
|
-
}), window.EditContext &&
|
|
11549
|
-
!(
|
|
11552
|
+
(t2.ie && t2.ie_version <= 11 || t2.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
11553
|
+
}), window.EditContext && t2.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
|
|
11554
|
+
!(t2.chrome && t2.chrome_version < 126) && (this.editContext = new xw(e), e.state.facet(He) && (e.contentDOM.editContext = this.editContext.editContext)), O6 && (this.onCharData = (t) => {
|
|
11550
11555
|
this.queue.push({
|
|
11551
11556
|
target: t.target,
|
|
11552
11557
|
type: "characterData",
|
|
@@ -11597,14 +11602,14 @@ class mw {
|
|
|
11597
11602
|
t || (this.selectionChanged = !1);
|
|
11598
11603
|
return;
|
|
11599
11604
|
}
|
|
11600
|
-
(
|
|
11605
|
+
(t2.ie && t2.ie_version <= 11 || t2.android && t2.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
|
|
11601
11606
|
s.focusNode && g1(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
|
|
11602
11607
|
}
|
|
11603
11608
|
readSelectionRange() {
|
|
11604
11609
|
let { view: e } = this, t = S1(e.root);
|
|
11605
11610
|
if (!t)
|
|
11606
11611
|
return !1;
|
|
11607
|
-
let i =
|
|
11612
|
+
let i = t2.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && ww(this.view, t) || t;
|
|
11608
11613
|
if (!i || this.selectionRange.eq(i))
|
|
11609
11614
|
return !1;
|
|
11610
11615
|
let s = m3(this.dom, i);
|
|
@@ -11801,7 +11806,7 @@ class xw {
|
|
|
11801
11806
|
c.main.eq(s) || e.dispatch({ selection: c, userEvent: "select" });
|
|
11802
11807
|
return;
|
|
11803
11808
|
}
|
|
11804
|
-
if ((
|
|
11809
|
+
if ((t2.mac || t2.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: V2.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
|
|
11805
11810
|
let c = this.to - this.from + (h.to - h.from + h.insert.length);
|
|
11806
11811
|
hi(e, h, B.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
|
|
11807
11812
|
}
|
|
@@ -11911,7 +11916,7 @@ class xw {
|
|
|
11911
11916
|
this.editContext.removeEventListener(e, this.handlers[e]);
|
|
11912
11917
|
}
|
|
11913
11918
|
}
|
|
11914
|
-
class
|
|
11919
|
+
class Z {
|
|
11915
11920
|
/**
|
|
11916
11921
|
The current editor state.
|
|
11917
11922
|
*/
|
|
@@ -12195,7 +12200,7 @@ class e2 {
|
|
|
12195
12200
|
translate: "no",
|
|
12196
12201
|
contenteditable: this.state.facet(He) ? "true" : "false",
|
|
12197
12202
|
class: "cm-content",
|
|
12198
|
-
style: `${
|
|
12203
|
+
style: `${t2.tabSize}: ${this.state.tabSize}`,
|
|
12199
12204
|
role: "textbox",
|
|
12200
12205
|
"aria-multiline": "true"
|
|
12201
12206
|
};
|
|
@@ -12210,7 +12215,7 @@ class e2 {
|
|
|
12210
12215
|
let t = !0;
|
|
12211
12216
|
for (let i of e)
|
|
12212
12217
|
for (let s of i.effects)
|
|
12213
|
-
if (s.is(
|
|
12218
|
+
if (s.is(Z.announce)) {
|
|
12214
12219
|
t && (this.announceDOM.textContent = ""), t = !1;
|
|
12215
12220
|
let o = this.announceDOM.appendChild(document.createElement("div"));
|
|
12216
12221
|
o.textContent = s.value;
|
|
@@ -12218,7 +12223,7 @@ class e2 {
|
|
|
12218
12223
|
}
|
|
12219
12224
|
mountStyles() {
|
|
12220
12225
|
this.styleModules = this.state.facet(a1);
|
|
12221
|
-
let e = this.state.facet(
|
|
12226
|
+
let e = this.state.facet(Z.cspNonce);
|
|
12222
12227
|
tt.mount(this.root, this.styleModules.concat(gw).reverse(), e ? { nonce: e } : void 0);
|
|
12223
12228
|
}
|
|
12224
12229
|
readMeasured() {
|
|
@@ -12509,7 +12514,7 @@ class e2 {
|
|
|
12509
12514
|
*/
|
|
12510
12515
|
get hasFocus() {
|
|
12511
12516
|
var e;
|
|
12512
|
-
return (this.dom.ownerDocument.hasFocus() ||
|
|
12517
|
+
return (this.dom.ownerDocument.hasFocus() || t2.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
|
|
12513
12518
|
}
|
|
12514
12519
|
/**
|
|
12515
12520
|
Put focus on the editor.
|
|
@@ -12644,30 +12649,30 @@ class e2 {
|
|
|
12644
12649
|
return ((t = s == null ? void 0 : s.rootView) === null || t === void 0 ? void 0 : t.view) || null;
|
|
12645
12650
|
}
|
|
12646
12651
|
}
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12652
|
+
Z.styleModule = a1;
|
|
12653
|
+
Z.inputHandler = Z8;
|
|
12654
|
+
Z.clipboardInputFilter = oi;
|
|
12655
|
+
Z.clipboardOutputFilter = li;
|
|
12656
|
+
Z.scrollHandler = no;
|
|
12657
|
+
Z.focusChangeEffect = eo;
|
|
12658
|
+
Z.perLineTextDirection = to;
|
|
12659
|
+
Z.exceptionSink = J8;
|
|
12660
|
+
Z.updateListener = y4;
|
|
12661
|
+
Z.editable = He;
|
|
12662
|
+
Z.mouseSelectionStyle = Q8;
|
|
12663
|
+
Z.dragMovesSelection = X8;
|
|
12664
|
+
Z.clickAddsSelectionRange = K8;
|
|
12665
|
+
Z.decorations = k1;
|
|
12666
|
+
Z.outerDecorations = lo;
|
|
12667
|
+
Z.atomicRanges = ai;
|
|
12668
|
+
Z.bidiIsolatedRanges = ro;
|
|
12669
|
+
Z.scrollMargins = ao;
|
|
12670
|
+
Z.darkTheme = D4;
|
|
12671
|
+
Z.cspNonce = /* @__PURE__ */ n2.define({ combine: (n) => n.length ? n[0] : "" });
|
|
12672
|
+
Z.contentAttributes = ri;
|
|
12673
|
+
Z.editorAttributes = oo;
|
|
12674
|
+
Z.lineWrapping = /* @__PURE__ */ Z.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
12675
|
+
Z.announce = /* @__PURE__ */ S2.define();
|
|
12671
12676
|
const bw = 4096, jn = {};
|
|
12672
12677
|
class E3 {
|
|
12673
12678
|
constructor(e, t, i, s, o, l) {
|
|
@@ -12691,7 +12696,7 @@ function Wn(n, e, t) {
|
|
|
12691
12696
|
}
|
|
12692
12697
|
return t;
|
|
12693
12698
|
}
|
|
12694
|
-
const _w =
|
|
12699
|
+
const _w = t2.mac ? "mac" : t2.windows ? "win" : t2.linux ? "linux" : "key";
|
|
12695
12700
|
function yw(n, e) {
|
|
12696
12701
|
const t = n.split(/-(?!$)/);
|
|
12697
12702
|
let i = t[t.length - 1];
|
|
@@ -12717,7 +12722,7 @@ function yw(n, e) {
|
|
|
12717
12722
|
function t3(n, e, t) {
|
|
12718
12723
|
return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t !== !1 && e.shiftKey && (n = "Shift-" + n), n;
|
|
12719
12724
|
}
|
|
12720
|
-
const Sw = /* @__PURE__ */ kt.default(/* @__PURE__ */
|
|
12725
|
+
const Sw = /* @__PURE__ */ kt.default(/* @__PURE__ */ Z.domEventHandlers({
|
|
12721
12726
|
keydown(n, e) {
|
|
12722
12727
|
return Do(ko(e.state), n, e, "editor");
|
|
12723
12728
|
}
|
|
@@ -12795,8 +12800,8 @@ function Do(n, e, t, i) {
|
|
|
12795
12800
|
return !1;
|
|
12796
12801
|
}, f = n[i], p, g;
|
|
12797
12802
|
return f && (u(f[r + t3(s, e, !l)]) ? a = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
12798
|
-
!(
|
|
12799
|
-
!(
|
|
12803
|
+
!(t2.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
12804
|
+
!(t2.mac && e.altKey && !e.ctrlKey) && (p = it[e.keyCode]) && p != s ? (u(f[r + t3(p, e, !0)]) || e.shiftKey && (g = y1[e.keyCode]) != s && g != p && u(f[r + t3(g, e, !1)])) && (a = !0) : l && e.shiftKey && u(f[r + t3(s, e, !0)]) && (a = !0), !a && u(f._any) && (a = !0)), h && (a = !0), a && c && e.stopPropagation(), T4 = null, a;
|
|
12800
12805
|
}
|
|
12801
12806
|
class R1 {
|
|
12802
12807
|
/**
|
|
@@ -13002,7 +13007,7 @@ const Vw = /* @__PURE__ */ Mo({
|
|
|
13002
13007
|
return n.docChanged || n.selectionSet || n.viewportChanged || To(n);
|
|
13003
13008
|
},
|
|
13004
13009
|
class: "cm-selectionLayer"
|
|
13005
|
-
}), Aw = /* @__PURE__ */ kt.highest(/* @__PURE__ */
|
|
13010
|
+
}), Aw = /* @__PURE__ */ kt.highest(/* @__PURE__ */ Z.theme({
|
|
13006
13011
|
".cm-line": {
|
|
13007
13012
|
"& ::selection, &::selection": { backgroundColor: "transparent !important" },
|
|
13008
13013
|
caretColor: "transparent !important"
|
|
@@ -13350,7 +13355,7 @@ function Jw(n, e) {
|
|
|
13350
13355
|
}
|
|
13351
13356
|
function Zw(n) {
|
|
13352
13357
|
let e = (t) => t.altKey && t.button == 0;
|
|
13353
|
-
return
|
|
13358
|
+
return Z.mouseSelectionStyle.of((t, i) => e(i) ? Jw(t, i) : null);
|
|
13354
13359
|
}
|
|
13355
13360
|
const ex = {
|
|
13356
13361
|
Alt: [18, (n) => !!n.altKey],
|
|
@@ -13381,7 +13386,7 @@ function ix(n = {}) {
|
|
|
13381
13386
|
});
|
|
13382
13387
|
return [
|
|
13383
13388
|
i,
|
|
13384
|
-
|
|
13389
|
+
Z.contentAttributes.of((s) => {
|
|
13385
13390
|
var o;
|
|
13386
13391
|
return !((o = s.plugin(i)) === null || o === void 0) && o.isDown ? tx : null;
|
|
13387
13392
|
})
|
|
@@ -13431,7 +13436,7 @@ const T6 = /* @__PURE__ */ n2.define({
|
|
|
13431
13436
|
combine: (n) => {
|
|
13432
13437
|
var e, t, i;
|
|
13433
13438
|
return {
|
|
13434
|
-
position:
|
|
13439
|
+
position: t2.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
|
|
13435
13440
|
parent: ((t = n.find((s) => s.parent)) === null || t === void 0 ? void 0 : t.parent) || null,
|
|
13436
13441
|
tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || nx
|
|
13437
13442
|
};
|
|
@@ -13499,7 +13504,7 @@ const T6 = /* @__PURE__ */ n2.define({
|
|
|
13499
13504
|
let n = 1, e = 1, t = !1;
|
|
13500
13505
|
if (this.position == "fixed" && this.manager.tooltipViews.length) {
|
|
13501
13506
|
let { dom: o } = this.manager.tooltipViews[0];
|
|
13502
|
-
if (
|
|
13507
|
+
if (t2.gecko)
|
|
13503
13508
|
t = o.offsetParent != this.container.ownerDocument.body;
|
|
13504
13509
|
else if (o.style.top == s1 && o.style.left == "0px") {
|
|
13505
13510
|
let l = o.getBoundingClientRect();
|
|
@@ -13583,7 +13588,7 @@ function Qn(n, e) {
|
|
|
13583
13588
|
let t = parseInt(n.style.left, 10);
|
|
13584
13589
|
(isNaN(t) || Math.abs(e - t) > 1) && (n.style.left = e + "px");
|
|
13585
13590
|
}
|
|
13586
|
-
const sx = /* @__PURE__ */
|
|
13591
|
+
const sx = /* @__PURE__ */ Z.baseTheme({
|
|
13587
13592
|
".cm-tooltip": {
|
|
13588
13593
|
zIndex: 500,
|
|
13589
13594
|
boxSizing: "border-box"
|
|
@@ -13892,7 +13897,7 @@ const Ao = /* @__PURE__ */ l0.fromClass(class {
|
|
|
13892
13897
|
this.top.sync([]), this.bottom.sync([]);
|
|
13893
13898
|
}
|
|
13894
13899
|
}, {
|
|
13895
|
-
provide: (n) =>
|
|
13900
|
+
provide: (n) => Z.scrollMargins.of((e) => {
|
|
13896
13901
|
let t = e.plugin(n);
|
|
13897
13902
|
return t && { top: t.top.scrollMargin(), bottom: t.bottom.scrollMargin() };
|
|
13898
13903
|
})
|
|
@@ -14069,7 +14074,7 @@ const gx = /* @__PURE__ */ l0.fromClass(class {
|
|
|
14069
14074
|
this.dom.remove(), this.domAfter && this.domAfter.remove();
|
|
14070
14075
|
}
|
|
14071
14076
|
}, {
|
|
14072
|
-
provide: (n) =>
|
|
14077
|
+
provide: (n) => Z.scrollMargins.of((e) => {
|
|
14073
14078
|
let t = e.plugin(n);
|
|
14074
14079
|
if (!t || t.gutters.length == 0 || !t.fixed)
|
|
14075
14080
|
return null;
|
|
@@ -16667,7 +16672,7 @@ const B6 = typeof navigator < "u" && (!((E6 = navigator.scheduling) === null ||
|
|
|
16667
16672
|
enables: (n) => [
|
|
16668
16673
|
ae.state,
|
|
16669
16674
|
Wx,
|
|
16670
|
-
|
|
16675
|
+
Z.contentAttributes.compute([n], (e) => {
|
|
16671
16676
|
let t = e.facet(n);
|
|
16672
16677
|
return t && t.name ? { "data-language": t.name } : {};
|
|
16673
16678
|
})
|
|
@@ -16992,7 +16997,7 @@ const Ct = /* @__PURE__ */ b0.define({
|
|
|
16992
16997
|
}));
|
|
16993
16998
|
return e.selection && (n = ds(n, e.selection.main.head)), n;
|
|
16994
16999
|
},
|
|
16995
|
-
provide: (n) =>
|
|
17000
|
+
provide: (n) => Z.decorations.from(n),
|
|
16996
17001
|
toJSON(n, e) {
|
|
16997
17002
|
let t = [];
|
|
16998
17003
|
return n.between(0, e.doc.length, (i, s) => {
|
|
@@ -17057,7 +17062,7 @@ const ob = (n) => {
|
|
|
17057
17062
|
};
|
|
17058
17063
|
function Qo(n, e, t = !0) {
|
|
17059
17064
|
let i = n.state.doc.lineAt(e.from).number, s = n.state.doc.lineAt(e.to).number;
|
|
17060
|
-
return
|
|
17065
|
+
return Z.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`);
|
|
17061
17066
|
}
|
|
17062
17067
|
const rb = (n) => {
|
|
17063
17068
|
let { state: e } = n, t = [];
|
|
@@ -17182,7 +17187,7 @@ function fb(n = {}) {
|
|
|
17182
17187
|
Zo()
|
|
17183
17188
|
];
|
|
17184
17189
|
}
|
|
17185
|
-
const pb = /* @__PURE__ */
|
|
17190
|
+
const pb = /* @__PURE__ */ Z.baseTheme({
|
|
17186
17191
|
".cm-foldPlaceholder": {
|
|
17187
17192
|
backgroundColor: "#eee",
|
|
17188
17193
|
border: "1px solid #ddd",
|
|
@@ -17243,7 +17248,7 @@ function H6(n) {
|
|
|
17243
17248
|
}
|
|
17244
17249
|
function gb(n, e) {
|
|
17245
17250
|
let t = [mb], i;
|
|
17246
|
-
return n instanceof d6 && (n.module && t.push(
|
|
17251
|
+
return n instanceof d6 && (n.module && t.push(Z.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push(tl.of(n)) : i ? t.push(L4.computeN([Z.darkTheme], (s) => s.facet(Z.darkTheme) == (i == "dark") ? [n] : [])) : t.push(L4.of(n)), t;
|
|
17247
17252
|
}
|
|
17248
17253
|
class vb {
|
|
17249
17254
|
constructor(e) {
|
|
@@ -17344,7 +17349,7 @@ const mb = /* @__PURE__ */ kt.high(/* @__PURE__ */ l0.fromClass(vb, {
|
|
|
17344
17349
|
tag: W.invalid,
|
|
17345
17350
|
color: "#f00"
|
|
17346
17351
|
}
|
|
17347
|
-
]), xb = /* @__PURE__ */
|
|
17352
|
+
]), xb = /* @__PURE__ */ Z.baseTheme({
|
|
17348
17353
|
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
17349
17354
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
17350
17355
|
}), il = 1e4, nl = "()[]{}", sl = /* @__PURE__ */ n2.define({
|
|
@@ -17377,7 +17382,7 @@ const Sb = /* @__PURE__ */ b0.define({
|
|
|
17377
17382
|
}
|
|
17378
17383
|
return v2.set(t, !0);
|
|
17379
17384
|
},
|
|
17380
|
-
provide: (n) =>
|
|
17385
|
+
provide: (n) => Z.decorations.from(n)
|
|
17381
17386
|
}), Cb = [
|
|
17382
17387
|
Sb,
|
|
17383
17388
|
xb
|
|
@@ -17660,7 +17665,7 @@ function Nb(n = {}) {
|
|
|
17660
17665
|
return [
|
|
17661
17666
|
al,
|
|
17662
17667
|
rl.of(n),
|
|
17663
|
-
|
|
17668
|
+
Z.domEventHandlers({
|
|
17664
17669
|
beforeinput(e, t) {
|
|
17665
17670
|
let i = e.inputType == "historyUndo" ? cl : e.inputType == "historyRedo" ? N4 : null;
|
|
17666
17671
|
return i ? (e.preventDefault(), i(t)) : !1;
|
|
@@ -17875,7 +17880,7 @@ const ml = (n) => vl(n, !1), wl = (n) => vl(n, !0);
|
|
|
17875
17880
|
function xl(n) {
|
|
17876
17881
|
let e = n.scrollDOM.clientHeight < n.scrollDOM.scrollHeight - 2, t = 0, i = 0, s;
|
|
17877
17882
|
if (e) {
|
|
17878
|
-
for (let o of n.state.facet(
|
|
17883
|
+
for (let o of n.state.facet(Z.scrollMargins)) {
|
|
17879
17884
|
let l = o(n);
|
|
17880
17885
|
l != null && l.top && (t = Math.max(l == null ? void 0 : l.top, t)), l != null && l.bottom && (i = Math.max(l == null ? void 0 : l.bottom, i));
|
|
17881
17886
|
}
|
|
@@ -17896,7 +17901,7 @@ function bl(n, e) {
|
|
|
17896
17901
|
let o;
|
|
17897
17902
|
if (t.selfScroll) {
|
|
17898
17903
|
let l = n.coordsAtPos(i.selection.main.head), r = n.scrollDOM.getBoundingClientRect(), a = r.top + t.marginTop, h = r.bottom - t.marginBottom;
|
|
17899
|
-
l && l.top > a && l.bottom < h && (o =
|
|
17904
|
+
l && l.top > a && l.bottom < h && (o = Z.scrollIntoView(s.main.head, { y: "start", yMargin: l.top - a }));
|
|
17900
17905
|
}
|
|
17901
17906
|
return n.dispatch(Ee(i, s), { effects: o }), !0;
|
|
17902
17907
|
}
|
|
@@ -17981,12 +17986,12 @@ function $1(n, e) {
|
|
|
17981
17986
|
return s.changes.empty ? !1 : (n.dispatch(i.update(s, {
|
|
17982
17987
|
scrollIntoView: !0,
|
|
17983
17988
|
userEvent: t,
|
|
17984
|
-
effects: t == "delete.selection" ?
|
|
17989
|
+
effects: t == "delete.selection" ? Z.announce.of(i.phrase("Selection deleted")) : void 0
|
|
17985
17990
|
})), !0);
|
|
17986
17991
|
}
|
|
17987
17992
|
function a3(n, e, t) {
|
|
17988
|
-
if (n instanceof
|
|
17989
|
-
for (let i of n.state.facet(
|
|
17993
|
+
if (n instanceof Z)
|
|
17994
|
+
for (let i of n.state.facet(Z.atomicRanges).map((s) => s(n)))
|
|
17990
17995
|
i.between(e, e, (s, o) => {
|
|
17991
17996
|
s < e && o > e && (e = t ? o : s);
|
|
17992
17997
|
});
|
|
@@ -18438,7 +18443,7 @@ function W4(n) {
|
|
|
18438
18443
|
} else h && a && (f = f * (a == "-" ? -1 : 1) + r.number);
|
|
18439
18444
|
let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, f))), g = B.cursor(p.from + Math.max(0, Math.min(u, p.length)));
|
|
18440
18445
|
n.dispatch({
|
|
18441
|
-
effects: [w1.of(!1),
|
|
18446
|
+
effects: [w1.of(!1), Z.scrollIntoView(g.from, { y: "center" })],
|
|
18442
18447
|
selection: g
|
|
18443
18448
|
}), n.focus();
|
|
18444
18449
|
}
|
|
@@ -18461,7 +18466,7 @@ const w1 = /* @__PURE__ */ S2.define(), ks = /* @__PURE__ */ b0.define({
|
|
|
18461
18466
|
n.state.field(ks, !1) == null && t.push(S2.appendConfig.of([ks, I_])), n.dispatch({ effects: t }), e = O1(n, W4);
|
|
18462
18467
|
}
|
|
18463
18468
|
return e && e.dom.querySelector("input").select(), !0;
|
|
18464
|
-
}, I_ = /* @__PURE__ */
|
|
18469
|
+
}, I_ = /* @__PURE__ */ Z.baseTheme({
|
|
18465
18470
|
".cm-panel.cm-gotoLine": {
|
|
18466
18471
|
padding: "2px 6px 4px",
|
|
18467
18472
|
position: "relative",
|
|
@@ -18543,7 +18548,7 @@ const J_ = /* @__PURE__ */ l0.fromClass(class {
|
|
|
18543
18548
|
}
|
|
18544
18549
|
}, {
|
|
18545
18550
|
decorations: (n) => n.decorations
|
|
18546
|
-
}), Z_ = /* @__PURE__ */
|
|
18551
|
+
}), Z_ = /* @__PURE__ */ Z.baseTheme({
|
|
18547
18552
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
18548
18553
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
18549
18554
|
}), ey = ({ state: n, dispatch: e }) => {
|
|
@@ -18578,7 +18583,7 @@ const iy = ({ state: n, dispatch: e }) => {
|
|
|
18578
18583
|
let s = ty(n, i);
|
|
18579
18584
|
return s ? (e(n.update({
|
|
18580
18585
|
selection: n.selection.addRange(B.range(s.from, s.to), !1),
|
|
18581
|
-
effects:
|
|
18586
|
+
effects: Z.scrollIntoView(s.to)
|
|
18582
18587
|
})), !0) : !1;
|
|
18583
18588
|
}, t1 = /* @__PURE__ */ n2.define({
|
|
18584
18589
|
combine(n) {
|
|
@@ -18589,7 +18594,7 @@ const iy = ({ state: n, dispatch: e }) => {
|
|
|
18589
18594
|
regexp: !1,
|
|
18590
18595
|
wholeWord: !1,
|
|
18591
18596
|
createPanel: (e) => new py(e),
|
|
18592
|
-
scrollToMatch: (e) =>
|
|
18597
|
+
scrollToMatch: (e) => Z.scrollIntoView(e)
|
|
18593
18598
|
});
|
|
18594
18599
|
}
|
|
18595
18600
|
});
|
|
@@ -18854,7 +18859,7 @@ const F3 = /* @__PURE__ */ j1((n, { query: e }) => {
|
|
|
18854
18859
|
if (!o)
|
|
18855
18860
|
return !1;
|
|
18856
18861
|
let l = o, r = [], a, h, c = [];
|
|
18857
|
-
l.from == i && l.to == s && (h = t.toText(e.getReplacement(l)), r.push({ from: l.from, to: l.to, insert: h }), l = e.nextMatch(t, l.from, l.to), c.push(
|
|
18862
|
+
l.from == i && l.to == s && (h = t.toText(e.getReplacement(l)), r.push({ from: l.from, to: l.to, insert: h }), l = e.nextMatch(t, l.from, l.to), c.push(Z.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + ".")));
|
|
18858
18863
|
let d = n.state.changes(r);
|
|
18859
18864
|
return l && (a = B.single(l.from, l.to).map(d), c.push(Ti(n, l)), c.push(t.facet(t1).scrollToMatch(a.main, n))), n.dispatch({
|
|
18860
18865
|
changes: d,
|
|
@@ -18874,7 +18879,7 @@ const F3 = /* @__PURE__ */ j1((n, { query: e }) => {
|
|
|
18874
18879
|
let i = n.state.phrase("replaced $ matches", t.length) + ".";
|
|
18875
18880
|
return n.dispatch({
|
|
18876
18881
|
changes: t,
|
|
18877
|
-
effects:
|
|
18882
|
+
effects: Z.announce.of(i),
|
|
18878
18883
|
userEvent: "input.replace.all"
|
|
18879
18884
|
}), !0;
|
|
18880
18885
|
});
|
|
@@ -19050,9 +19055,9 @@ function Ti(n, { from: e, to: t }) {
|
|
|
19050
19055
|
break;
|
|
19051
19056
|
}
|
|
19052
19057
|
}
|
|
19053
|
-
return
|
|
19058
|
+
return Z.announce.of(`${n.state.phrase("current match")}. ${r} ${n.state.phrase("on line")} ${i.number}.`);
|
|
19054
19059
|
}
|
|
19055
|
-
const gy = /* @__PURE__ */
|
|
19060
|
+
const gy = /* @__PURE__ */ Z.baseTheme({
|
|
19056
19061
|
".cm-panel.cm-search": {
|
|
19057
19062
|
padding: "2px 6px 4px",
|
|
19058
19063
|
position: "relative",
|
|
@@ -19757,7 +19762,7 @@ const zi = /* @__PURE__ */ S2.define({
|
|
|
19757
19762
|
},
|
|
19758
19763
|
provide: (n) => [
|
|
19759
19764
|
gi.from(n, (e) => e.tooltip),
|
|
19760
|
-
|
|
19765
|
+
Z.contentAttributes.from(n, (e) => e.attrs)
|
|
19761
19766
|
]
|
|
19762
19767
|
});
|
|
19763
19768
|
function Pi(n, e) {
|
|
@@ -19894,7 +19899,7 @@ const Gy = 50, Ry = 1e3, Ny = /* @__PURE__ */ l0.fromClass(class {
|
|
|
19894
19899
|
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: X3.of(!1) }), 20), this.composing = 0;
|
|
19895
19900
|
}
|
|
19896
19901
|
}
|
|
19897
|
-
}), $y = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), jy = /* @__PURE__ */ kt.highest(/* @__PURE__ */
|
|
19902
|
+
}), $y = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), jy = /* @__PURE__ */ kt.highest(/* @__PURE__ */ Z.domEventHandlers({
|
|
19898
19903
|
keydown(n, e) {
|
|
19899
19904
|
let t = e.state.field(H0, !1);
|
|
19900
19905
|
if (!t || !t.open || t.open.disabled || t.open.selected < 0 || n.key.length > 1 || n.ctrlKey && !($y && n.altKey) || n.metaKey)
|
|
@@ -19902,7 +19907,7 @@ const Gy = 50, Ry = 1e3, Ny = /* @__PURE__ */ l0.fromClass(class {
|
|
|
19902
19907
|
let i = t.open.options[t.open.selected], s = t.active.find((l) => l.source == i.source), o = i.completion.commitCharacters || s.result.commitCharacters;
|
|
19903
19908
|
return o && o.indexOf(n.key) > -1 && Pi(e, i), !1;
|
|
19904
19909
|
}
|
|
19905
|
-
})), Wy = /* @__PURE__ */
|
|
19910
|
+
})), Wy = /* @__PURE__ */ Z.baseTheme({
|
|
19906
19911
|
".cm-tooltip.cm-tooltip-autocomplete": {
|
|
19907
19912
|
"& > ul": {
|
|
19908
19913
|
fontFamily: "monospace",
|
|
@@ -20065,7 +20070,7 @@ function Ql(n) {
|
|
|
20065
20070
|
function Jl(n, e) {
|
|
20066
20071
|
return n.languageDataAt("closeBrackets", e)[0] || A1;
|
|
20067
20072
|
}
|
|
20068
|
-
const Iy = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), qy = /* @__PURE__ */
|
|
20073
|
+
const Iy = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), qy = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i) => {
|
|
20069
20074
|
if ((Iy ? n.composing : n.compositionStarted) || n.state.readOnly)
|
|
20070
20075
|
return !1;
|
|
20071
20076
|
let s = n.state.selection.main;
|
|
@@ -20340,7 +20345,7 @@ const t9 = /* @__PURE__ */ S2.define(), Ai = /* @__PURE__ */ S2.define(), i9 = /
|
|
|
20340
20345
|
},
|
|
20341
20346
|
provide: (n) => [
|
|
20342
20347
|
M1.from(n, (e) => e.panel),
|
|
20343
|
-
|
|
20348
|
+
Z.decorations.from(n, (e) => e.diagnostics)
|
|
20344
20349
|
]
|
|
20345
20350
|
}), oS = /* @__PURE__ */ v2.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
20346
20351
|
function lS(n, e, t) {
|
|
@@ -20566,7 +20571,7 @@ function uS(n, e = 'viewBox="0 0 40 40"') {
|
|
|
20566
20571
|
function u3(n) {
|
|
20567
20572
|
return uS(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
|
|
20568
20573
|
}
|
|
20569
|
-
const fS = /* @__PURE__ */
|
|
20574
|
+
const fS = /* @__PURE__ */ Z.baseTheme({
|
|
20570
20575
|
".cm-diagnostic": {
|
|
20571
20576
|
padding: "3px 6px 3px 8px",
|
|
20572
20577
|
marginLeft: "-1px",
|
|
@@ -20670,7 +20675,7 @@ function gS(n) {
|
|
|
20670
20675
|
}
|
|
20671
20676
|
const vS = [
|
|
20672
20677
|
X0,
|
|
20673
|
-
/* @__PURE__ */
|
|
20678
|
+
/* @__PURE__ */ Z.decorations.compute([X0], (n) => {
|
|
20674
20679
|
let { selected: e, panel: t } = n.field(X0);
|
|
20675
20680
|
return !e || !t || e.from == e.to ? v2.none : v2.set([
|
|
20676
20681
|
oS.range(e.from, e.to)
|
|
@@ -22256,7 +22261,7 @@ function Js(n, e, t = n.length) {
|
|
|
22256
22261
|
let i = e.firstChild, s = i && i.getChild("TagName");
|
|
22257
22262
|
return s ? n.sliceString(s.from, Math.min(s.to, t)) : "";
|
|
22258
22263
|
}
|
|
22259
|
-
const KS = /* @__PURE__ */
|
|
22264
|
+
const KS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
22260
22265
|
if (n.composing || n.state.readOnly || e != t || i != ">" && i != "/" || !Y4.isActiveAt(n.state, e, -1))
|
|
22261
22266
|
return !1;
|
|
22262
22267
|
let o = s(), { state: l } = o, r = l.changeByRange((a) => {
|
|
@@ -22304,9 +22309,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22304
22309
|
i.value = r.target.result;
|
|
22305
22310
|
}, l.readAsText(o);
|
|
22306
22311
|
}), et(() => {
|
|
22307
|
-
const s = new
|
|
22312
|
+
const s = new Z({
|
|
22308
22313
|
doc: i.value,
|
|
22309
|
-
extensions: [o9, r9(),
|
|
22314
|
+
extensions: [o9, r9(), Z.lineWrapping, z2.readOnly.of(!0)],
|
|
22310
22315
|
parent: document.querySelector("#xml-editor")
|
|
22311
22316
|
});
|
|
22312
22317
|
s.dom.style.width = "100%";
|
|
@@ -22323,9 +22328,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22323
22328
|
setup(n) {
|
|
22324
22329
|
const e = n, t = r2(() => e.blobUrl), i = r2(() => [e.blobUrl]);
|
|
22325
22330
|
return (s, o) => {
|
|
22326
|
-
const l =
|
|
22331
|
+
const l = J("el-image");
|
|
22327
22332
|
return x(), z("div", eC, [
|
|
22328
|
-
|
|
22333
|
+
i2(l, {
|
|
22329
22334
|
class: "render-img",
|
|
22330
22335
|
src: t.value,
|
|
22331
22336
|
"zoom-rate": 1.2,
|
|
@@ -22455,7 +22460,7 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22455
22460
|
t("destroy");
|
|
22456
22461
|
}), (V, Y) => (x(), z("div", hC, [
|
|
22457
22462
|
a.value ? (x(), z("div", dC, [
|
|
22458
|
-
|
|
22463
|
+
i2(Xi, {
|
|
22459
22464
|
files: l.value,
|
|
22460
22465
|
"three-data": {
|
|
22461
22466
|
data: {
|
|
@@ -22468,63 +22473,63 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22468
22473
|
}
|
|
22469
22474
|
}
|
|
22470
22475
|
}, null, 8, ["files", "three-data"])
|
|
22471
|
-
])) :
|
|
22476
|
+
])) : Q("", !0),
|
|
22472
22477
|
S.value ? (x(), z("div", uC, [
|
|
22473
|
-
|
|
22478
|
+
i2(uv, {
|
|
22474
22479
|
fileName: o.value,
|
|
22475
22480
|
blobUrl: s.value
|
|
22476
22481
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22477
|
-
])) :
|
|
22482
|
+
])) : Q("", !0),
|
|
22478
22483
|
p.value || m.value ? (x(), z("div", fC, [
|
|
22479
22484
|
(x(), q(Xi, {
|
|
22480
22485
|
files: l.value,
|
|
22481
22486
|
key: i == null ? void 0 : i.fullScreen
|
|
22482
22487
|
}, null, 8, ["files"]))
|
|
22483
|
-
])) :
|
|
22488
|
+
])) : Q("", !0),
|
|
22484
22489
|
D.value ? (x(), z("div", pC, [
|
|
22485
|
-
|
|
22490
|
+
i2(gv, {
|
|
22486
22491
|
fileName: o.value,
|
|
22487
22492
|
blobUrl: s.value
|
|
22488
22493
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22489
|
-
])) :
|
|
22494
|
+
])) : Q("", !0),
|
|
22490
22495
|
M.value ? (x(), z("div", gC, [
|
|
22491
|
-
|
|
22496
|
+
i2(xv, {
|
|
22492
22497
|
fileName: o.value,
|
|
22493
22498
|
blobUrl: s.value
|
|
22494
22499
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22495
|
-
])) :
|
|
22500
|
+
])) : Q("", !0),
|
|
22496
22501
|
O.value ? (x(), z("div", vC, [
|
|
22497
|
-
|
|
22502
|
+
i2(kv, {
|
|
22498
22503
|
fileName: o.value,
|
|
22499
22504
|
blobUrl: s.value
|
|
22500
22505
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22501
|
-
])) :
|
|
22506
|
+
])) : Q("", !0),
|
|
22502
22507
|
_.value ? (x(), z("div", mC, [
|
|
22503
|
-
|
|
22508
|
+
i2(iC, {
|
|
22504
22509
|
fileName: o.value,
|
|
22505
22510
|
blobUrl: s.value
|
|
22506
22511
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22507
|
-
])) :
|
|
22512
|
+
])) : Q("", !0),
|
|
22508
22513
|
k.value ? (x(), z("div", wC, [
|
|
22509
|
-
|
|
22514
|
+
i2(oC, {
|
|
22510
22515
|
fileName: o.value,
|
|
22511
22516
|
blobUrl: s.value
|
|
22512
22517
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22513
|
-
])) :
|
|
22518
|
+
])) : Q("", !0),
|
|
22514
22519
|
G.value ? (x(), z("div", xC, [
|
|
22515
|
-
|
|
22520
|
+
i2(cC, {
|
|
22516
22521
|
fileName: o.value,
|
|
22517
22522
|
blobUrl: s.value
|
|
22518
22523
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22519
22524
|
])) : !S.value && !D.value && !O.value && !m.value && !_.value && !k.value && !p.value && !G.value && !a.value && !M.value ? (x(), z("div", bC, [
|
|
22520
|
-
|
|
22525
|
+
i2(ZS, {
|
|
22521
22526
|
fileName: o.value,
|
|
22522
22527
|
blobUrl: s.value
|
|
22523
22528
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22524
|
-
])) :
|
|
22529
|
+
])) : Q("", !0),
|
|
22525
22530
|
E.value ? (x(), z("div", _C, Y[0] || (Y[0] = [
|
|
22526
22531
|
a2("div", null, "当前文件格式暂不支持预览", -1)
|
|
22527
|
-
]))) :
|
|
22532
|
+
]))) : Q("", !0)
|
|
22528
22533
|
]));
|
|
22529
22534
|
}
|
|
22530
22535
|
}, a9 = /* @__PURE__ */ L2(yC, [["__scopeId", "data-v-c6a41c66"]]), SC = { class: "file-preview-container" }, CC = {
|
|
@@ -22577,9 +22582,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22577
22582
|
onClick: (g) => h(p)
|
|
22578
22583
|
}, B2(f == null ? void 0 : f.name), 9, kC)
|
|
22579
22584
|
], 2))), 128))
|
|
22580
|
-
])) :
|
|
22585
|
+
])) : Q("", !0),
|
|
22581
22586
|
a2("div", DC, [
|
|
22582
|
-
|
|
22587
|
+
i2(a9, {
|
|
22583
22588
|
class: "right-item",
|
|
22584
22589
|
fileName: r.value,
|
|
22585
22590
|
blobUrl: a.value,
|
|
@@ -22623,7 +22628,7 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22623
22628
|
URL.revokeObjectURL(v);
|
|
22624
22629
|
}));
|
|
22625
22630
|
}), (p, g) => {
|
|
22626
|
-
const m =
|
|
22631
|
+
const m = J("el-icon");
|
|
22627
22632
|
return x(), q(J4, {
|
|
22628
22633
|
class: "file-preview-dialog",
|
|
22629
22634
|
visible: s.value,
|
|
@@ -22639,21 +22644,21 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22639
22644
|
title: a.value
|
|
22640
22645
|
}, B2(a.value), 9, TC),
|
|
22641
22646
|
a2("div", zC, [
|
|
22642
|
-
|
|
22647
|
+
i2(m, null, {
|
|
22643
22648
|
default: H(() => [
|
|
22644
|
-
|
|
22649
|
+
i2(F0(A9), { onClick: h })
|
|
22645
22650
|
]),
|
|
22646
22651
|
_: 1
|
|
22647
22652
|
}),
|
|
22648
|
-
|
|
22653
|
+
i2(m, null, {
|
|
22649
22654
|
default: H(() => [
|
|
22650
|
-
|
|
22655
|
+
i2(F0(E9), { onClick: d })
|
|
22651
22656
|
]),
|
|
22652
22657
|
_: 1
|
|
22653
22658
|
}),
|
|
22654
|
-
|
|
22659
|
+
i2(m, null, {
|
|
22655
22660
|
default: H(() => [
|
|
22656
|
-
|
|
22661
|
+
i2(F0(B9), { onClick: u })
|
|
22657
22662
|
]),
|
|
22658
22663
|
_: 1
|
|
22659
22664
|
})
|
|
@@ -22801,9 +22806,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22801
22806
|
}, k.readAsDataURL(_.raw);
|
|
22802
22807
|
};
|
|
22803
22808
|
return (_, k) => {
|
|
22804
|
-
const G =
|
|
22809
|
+
const G = J("svg-icon"), E = J("el-icon"), V = J("el-upload"), Y = b9("loading");
|
|
22805
22810
|
return t != null && t.isEdit && !(t != null && t.disabled) ? (x(), z("div", AC, [
|
|
22806
|
-
|
|
22811
|
+
i2(Y0, {
|
|
22807
22812
|
type: "primary",
|
|
22808
22813
|
onClickTrigger: f,
|
|
22809
22814
|
class: "upload-button",
|
|
@@ -22822,7 +22827,7 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22822
22827
|
title: P == null ? void 0 : P.name
|
|
22823
22828
|
}, B2((L = (f2 = P == null ? void 0 : P.url) == null ? void 0 : f2.split(".")) != null && L[1] ? (P == null ? void 0 : P.name) + "." + ((C2 = (U = P == null ? void 0 : P.url) == null ? void 0 : U.split(".")) == null ? void 0 : C2[((c2 = (l2 = P == null ? void 0 : P.url) == null ? void 0 : l2.split(".")) == null ? void 0 : c2.length) - 1]) : P == null ? void 0 : P.name), 9, BC),
|
|
22824
22829
|
a2("div", LC, [
|
|
22825
|
-
|
|
22830
|
+
i2(G, {
|
|
22826
22831
|
class: "icon-blue",
|
|
22827
22832
|
name: "EyeFill",
|
|
22828
22833
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
@@ -22832,14 +22837,14 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22832
22837
|
]);
|
|
22833
22838
|
}), 128))
|
|
22834
22839
|
]),
|
|
22835
|
-
|
|
22840
|
+
i2(J4, {
|
|
22836
22841
|
visible: h.value,
|
|
22837
22842
|
onBeforeDestroy: D,
|
|
22838
22843
|
title: "上传文件"
|
|
22839
22844
|
}, {
|
|
22840
22845
|
default: H(() => [
|
|
22841
22846
|
p3((x(), z("div", null, [
|
|
22842
|
-
|
|
22847
|
+
i2(V, {
|
|
22843
22848
|
"file-list": u.value,
|
|
22844
22849
|
"onUpdate:fileList": k[0] || (k[0] = (P) => u.value = P),
|
|
22845
22850
|
multiple: "",
|
|
@@ -22854,9 +22859,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22854
22859
|
a2("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
|
|
22855
22860
|
])),
|
|
22856
22861
|
default: H(() => [
|
|
22857
|
-
|
|
22862
|
+
i2(E, { class: "el-icon--upload" }, {
|
|
22858
22863
|
default: H(() => [
|
|
22859
|
-
|
|
22864
|
+
i2(F0(L9))
|
|
22860
22865
|
]),
|
|
22861
22866
|
_: 1
|
|
22862
22867
|
}),
|
|
@@ -22871,13 +22876,13 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22871
22876
|
a2("div", HC, [
|
|
22872
22877
|
a2("div", GC, B2((U = (L = P == null ? void 0 : P.url) == null ? void 0 : L.split(".")) != null && U[1] ? (P == null ? void 0 : P.name) + "." + ((c2 = (l2 = P == null ? void 0 : P.url) == null ? void 0 : l2.split(".")) == null ? void 0 : c2[1]) : P == null ? void 0 : P.name), 1),
|
|
22873
22878
|
a2("div", RC, [
|
|
22874
|
-
|
|
22879
|
+
i2(G, {
|
|
22875
22880
|
class: "icon-blue",
|
|
22876
22881
|
name: "EyeFill",
|
|
22877
22882
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
22878
22883
|
onClick: (C2) => g(P)
|
|
22879
22884
|
}, null, 8, ["onClick"]),
|
|
22880
|
-
|
|
22885
|
+
i2(G, {
|
|
22881
22886
|
class: "icon-blue",
|
|
22882
22887
|
name: "Cancel",
|
|
22883
22888
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
@@ -22895,13 +22900,13 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22895
22900
|
]),
|
|
22896
22901
|
footer: H(() => [
|
|
22897
22902
|
a2("div", NC, [
|
|
22898
|
-
|
|
22903
|
+
i2(Y0, {
|
|
22899
22904
|
onClickTrigger: D,
|
|
22900
22905
|
id: "themeBorderButton",
|
|
22901
22906
|
disabled: s.value,
|
|
22902
22907
|
modelValue: "取消"
|
|
22903
22908
|
}, null, 8, ["disabled"]),
|
|
22904
|
-
|
|
22909
|
+
i2(Y0, {
|
|
22905
22910
|
type: "primary",
|
|
22906
22911
|
onClickTrigger: M,
|
|
22907
22912
|
id: "themeButton",
|
|
@@ -22916,8 +22921,8 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22916
22921
|
key: 0,
|
|
22917
22922
|
fileDataList: r.value,
|
|
22918
22923
|
onDestroy: m
|
|
22919
|
-
}, null, 8, ["fileDataList"])) :
|
|
22920
|
-
])) :
|
|
22924
|
+
}, null, 8, ["fileDataList"])) : Q("", !0)
|
|
22925
|
+
])) : Q("", !0);
|
|
22921
22926
|
};
|
|
22922
22927
|
}
|
|
22923
22928
|
}, jC = /* @__PURE__ */ L2($C, [["__scopeId", "data-v-a08ba261"]]), WC = /* @__PURE__ */ t0({
|
|
@@ -22959,7 +22964,7 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22959
22964
|
console.log(133, h);
|
|
22960
22965
|
};
|
|
22961
22966
|
return (h, c) => {
|
|
22962
|
-
const d =
|
|
22967
|
+
const d = J("el-icon"), u = J("el-upload");
|
|
22963
22968
|
return x(), q(u, {
|
|
22964
22969
|
class: "upload-demo",
|
|
22965
22970
|
drag: "",
|
|
@@ -22973,9 +22978,9 @@ const KS = /* @__PURE__ */ e2.inputHandler.of((n, e, t, i, s) => {
|
|
|
22973
22978
|
"on-remove": r
|
|
22974
22979
|
}, {
|
|
22975
22980
|
default: H(() => [
|
|
22976
|
-
|
|
22981
|
+
i2(d, null, {
|
|
22977
22982
|
default: H(() => [
|
|
22978
|
-
|
|
22983
|
+
i2(F0(K6))
|
|
22979
22984
|
]),
|
|
22980
22985
|
_: 1
|
|
22981
22986
|
})
|
|
@@ -23574,7 +23579,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23574
23579
|
};
|
|
23575
23580
|
return (h, c) => {
|
|
23576
23581
|
var p, g, m;
|
|
23577
|
-
const d =
|
|
23582
|
+
const d = J("el-input-number"), u = J("el-color-picker"), f = J("el-button");
|
|
23578
23583
|
return x(), z(k2, null, [
|
|
23579
23584
|
a2("div", JC, [
|
|
23580
23585
|
D2(h.$slots, "signatureRender", {}, void 0, !0),
|
|
@@ -23582,7 +23587,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23582
23587
|
D2(h.$slots, "signatureTypes", {}, void 0, !0)
|
|
23583
23588
|
])
|
|
23584
23589
|
]),
|
|
23585
|
-
|
|
23590
|
+
i2(J4, {
|
|
23586
23591
|
class: "signature-dialog",
|
|
23587
23592
|
title: (p = n.signPadInfo) == null ? void 0 : p.dialogTitle,
|
|
23588
23593
|
dialogWidth: `${((g = n.signPadInfo) == null ? void 0 : g.dialogWidth) ?? 30}%`,
|
|
@@ -23591,7 +23596,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23591
23596
|
}, {
|
|
23592
23597
|
default: H(() => [
|
|
23593
23598
|
a2("div", ek, [
|
|
23594
|
-
|
|
23599
|
+
i2(F0(QC), {
|
|
23595
23600
|
ref_key: "signaturePadRef",
|
|
23596
23601
|
ref: i,
|
|
23597
23602
|
options: s.signOptions
|
|
@@ -23600,7 +23605,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23600
23605
|
a2("div", tk, [
|
|
23601
23606
|
a2("div", null, [
|
|
23602
23607
|
c[2] || (c[2] = a2("span", null, "画笔粗细:", -1)),
|
|
23603
|
-
|
|
23608
|
+
i2(d, {
|
|
23604
23609
|
modelValue: s.signOptions.minWidth,
|
|
23605
23610
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => s.signOptions.minWidth = v),
|
|
23606
23611
|
min: 0.5,
|
|
@@ -23611,7 +23616,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23611
23616
|
]),
|
|
23612
23617
|
a2("div", null, [
|
|
23613
23618
|
c[3] || (c[3] = a2("span", null, "画笔颜色:", -1)),
|
|
23614
|
-
|
|
23619
|
+
i2(u, {
|
|
23615
23620
|
modelValue: s.signOptions.penColor,
|
|
23616
23621
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => s.signOptions.penColor = v),
|
|
23617
23622
|
"color-format": "hex",
|
|
@@ -23621,14 +23626,14 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23621
23626
|
])
|
|
23622
23627
|
]),
|
|
23623
23628
|
footer: H(() => [
|
|
23624
|
-
|
|
23629
|
+
i2(f, { onClick: l }, {
|
|
23625
23630
|
default: H(() => c[4] || (c[4] = [
|
|
23626
23631
|
T0("取消")
|
|
23627
23632
|
])),
|
|
23628
23633
|
_: 1,
|
|
23629
23634
|
__: [4]
|
|
23630
23635
|
}),
|
|
23631
|
-
|
|
23636
|
+
i2(f, {
|
|
23632
23637
|
type: "primary",
|
|
23633
23638
|
onClick: r
|
|
23634
23639
|
}, {
|
|
@@ -23652,10 +23657,10 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23652
23657
|
i && (await G0(), (s = e.value) == null || s.update());
|
|
23653
23658
|
};
|
|
23654
23659
|
return (i, s) => {
|
|
23655
|
-
const o =
|
|
23660
|
+
const o = J("el-dropdown-menu"), l = J("el-dropdown");
|
|
23656
23661
|
return x(), q(l, { onVisibleChange: t }, {
|
|
23657
23662
|
dropdown: H(() => [
|
|
23658
|
-
|
|
23663
|
+
i2(o, null, {
|
|
23659
23664
|
default: H(() => [
|
|
23660
23665
|
D2(i.$slots, "dropMenu")
|
|
23661
23666
|
]),
|
|
@@ -23848,7 +23853,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23848
23853
|
setup(n) {
|
|
23849
23854
|
const e = n;
|
|
23850
23855
|
return (t, i) => {
|
|
23851
|
-
const s =
|
|
23856
|
+
const s = J("el-image");
|
|
23852
23857
|
return x(), q(s, {
|
|
23853
23858
|
style: { width: "100px", height: "100px" },
|
|
23854
23859
|
src: e == null ? void 0 : e.modelValue,
|
|
@@ -23894,7 +23899,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23894
23899
|
r.value = u, i("tagChange", u);
|
|
23895
23900
|
};
|
|
23896
23901
|
return (d, u) => {
|
|
23897
|
-
const f =
|
|
23902
|
+
const f = J("el-option"), p = J("el-select");
|
|
23898
23903
|
return x(), q(p, {
|
|
23899
23904
|
class: "multiple-checkbox",
|
|
23900
23905
|
modelValue: s.value,
|
|
@@ -23949,7 +23954,7 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23949
23954
|
t("change", o);
|
|
23950
23955
|
};
|
|
23951
23956
|
return (o, l) => {
|
|
23952
|
-
const r =
|
|
23957
|
+
const r = J("el-time-picker");
|
|
23953
23958
|
return x(), q(r, {
|
|
23954
23959
|
"model-value": n.modelValue,
|
|
23955
23960
|
"onUpdate:modelValue": i,
|
|
@@ -23983,13 +23988,13 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
23983
23988
|
i == null || i.destroy();
|
|
23984
23989
|
}), Ve(() => {
|
|
23985
23990
|
const s = document.querySelector("#xml-editor");
|
|
23986
|
-
t.value = JSON.stringify(e.modelValue, null, 2), s && (i = new
|
|
23991
|
+
t.value = JSON.stringify(e.modelValue, null, 2), s && (i = new Z({
|
|
23987
23992
|
state: z2.create({
|
|
23988
23993
|
doc: t.value,
|
|
23989
23994
|
extensions: [
|
|
23990
23995
|
o9,
|
|
23991
23996
|
r9(),
|
|
23992
|
-
|
|
23997
|
+
Z.lineWrapping,
|
|
23993
23998
|
z2.readOnly.of(e.readonly)
|
|
23994
23999
|
]
|
|
23995
24000
|
}),
|
|
@@ -24029,9 +24034,9 @@ const JC = { class: "signature-wrap" }, ZC = { class: "signature-types" }, ek =
|
|
|
24029
24034
|
setup(n) {
|
|
24030
24035
|
const e = n, t = N(e == null ? void 0 : e.carouselList);
|
|
24031
24036
|
return (i, s) => {
|
|
24032
|
-
const o =
|
|
24037
|
+
const o = J("el-carousel-item"), l = J("el-carousel");
|
|
24033
24038
|
return x(), z("div", null, [
|
|
24034
|
-
|
|
24039
|
+
i2(l, { trigger: "click" }, {
|
|
24035
24040
|
default: H(() => [
|
|
24036
24041
|
(x(!0), z(k2, null, M2(t.value, (r, a) => (x(), q(o, { key: a }, {
|
|
24037
24042
|
default: H(() => [
|
|
@@ -24122,7 +24127,7 @@ const yk = ["onDblclick"], Sk = {
|
|
|
24122
24127
|
},
|
|
24123
24128
|
{ deep: !0, immediate: !0 }
|
|
24124
24129
|
), (c, d) => {
|
|
24125
|
-
const u =
|
|
24130
|
+
const u = J("el-tab-pane"), f = J("el-tabs");
|
|
24126
24131
|
return x(), q(f, {
|
|
24127
24132
|
modelValue: o.value,
|
|
24128
24133
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => o.value = p),
|
|
@@ -24141,7 +24146,7 @@ const yk = ["onDblclick"], Sk = {
|
|
|
24141
24146
|
key: 0,
|
|
24142
24147
|
onDblclick: (v) => r(p),
|
|
24143
24148
|
class: "normal-label"
|
|
24144
|
-
}, B2(p == null ? void 0 : p.label), 41, yk)) :
|
|
24149
|
+
}, B2(p == null ? void 0 : p.label), 41, yk)) : Q("", !0),
|
|
24145
24150
|
p != null && p.contents && ((m = p == null ? void 0 : p.contents) == null ? void 0 : m.length) > 0 ? (x(), z("div", Sk, [
|
|
24146
24151
|
(x(!0), z(k2, null, M2(p == null ? void 0 : p.contents, (v, S) => (x(), z("div", {
|
|
24147
24152
|
key: S,
|
|
@@ -24152,9 +24157,9 @@ const yk = ["onDblclick"], Sk = {
|
|
|
24152
24157
|
modelValue: v.value,
|
|
24153
24158
|
"onUpdate:modelValue": (M) => v.value = M,
|
|
24154
24159
|
content: (v == null ? void 0 : v.contents) ?? []
|
|
24155
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
24160
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : Q("", !0)
|
|
24156
24161
|
]))), 128))
|
|
24157
|
-
])) :
|
|
24162
|
+
])) : Q("", !0),
|
|
24158
24163
|
D2(c.$slots, `${(p == null ? void 0 : p.value) ?? ""}_header`, {}, void 0, !0)
|
|
24159
24164
|
];
|
|
24160
24165
|
}),
|
|
@@ -24183,7 +24188,7 @@ const yk = ["onDblclick"], Sk = {
|
|
|
24183
24188
|
]),
|
|
24184
24189
|
key: "0"
|
|
24185
24190
|
} : void 0
|
|
24186
|
-
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
24191
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) : Q("", !0)
|
|
24187
24192
|
]))), 128))
|
|
24188
24193
|
], !0)
|
|
24189
24194
|
]),
|