ss-component-new 1.2.77 → 1.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-BruI0iCV.js → MTLLoader-DHOpgWoh.js} +5 -5
- package/dist/{MTLLoader-Bseg1sor.cjs → MTLLoader-DcCqSeA-.cjs} +1 -1
- package/dist/{OrbitControls-Bxqvo8Mr.js → OrbitControls-Bwv0Wdfk.js} +1 -1
- package/dist/{OrbitControls-BiNnC97N.cjs → OrbitControls-DlWvN12h.cjs} +1 -1
- package/dist/{URDFLoader-DexIn4xU.cjs → URDFLoader-DykmnnHW.cjs} +1 -1
- package/dist/{URDFLoader-DWo3pDBH.js → URDFLoader-o5u_BjJ_.js} +174 -174
- package/dist/{animationData-BDkjPdQf.js → animationData-DS8Fzn6Q.js} +18 -18
- package/dist/{animationData-BVpXOZwe.cjs → animationData-I6_-ND6R.cjs} +1 -1
- package/dist/{array-D5Rc5rM9.js → array-Bhgw4Iyf.js} +27 -27
- package/dist/{array-6LpFOZ5o.cjs → array-ZC8P-Rx9.cjs} +1 -1
- package/dist/{iconfont-14del5d2.js → iconfont-CDf_oBPo.js} +27 -27
- package/dist/{iconfont-Bnhc7fLw.cjs → iconfont-DX6dC3Hu.cjs} +1 -1
- package/dist/{index-PkJYBcS-.js → index-9pgjgz-5.js} +25 -22
- package/dist/{index-CTfB2BO7.cjs → index-AjZKp-AZ.cjs} +1 -1
- package/dist/{index-D_coIVx9.cjs → index-B-LUDlpn.cjs} +1 -1
- package/dist/{index-1uzZjqSR.cjs → index-B20WPHZ5.cjs} +1 -1
- package/dist/{index-lkxTc6vy.js → index-B3u2tRTw.js} +576 -572
- package/dist/{index-BMwOfyZG.js → index-B5J3L2e2.js} +2 -2
- package/dist/{index-Da8kLXUi.js → index-B5SNHDlg.js} +1 -1
- package/dist/{index-BU__qorE.cjs → index-BG1yQRX5.cjs} +1 -1
- package/dist/index-BLSQNpLC.js +12694 -0
- package/dist/{index-C5AMx3DP.js → index-BRjEFy0A.js} +2 -2
- package/dist/{index-BOttcNaR.js → index-BVj-AkPa.js} +2 -2
- package/dist/{index-CiluLmLS.js → index-BYSmRvIB.js} +11 -11
- package/dist/{index-CV0wJjuo.cjs → index-BeikcPFZ.cjs} +1 -1
- package/dist/{index-Ai5OAXHo.js → index-BgE_6FYY.js} +6 -6
- package/dist/{index-jKLdvV3y.js → index-BluztDZ9.js} +20 -20
- package/dist/{index-D9iPLSwS.js → index-Bmtw8a5p.js} +2 -2
- package/dist/{index-Pg_Ez4Na.cjs → index-Bq6XgQV3.cjs} +1 -1
- package/dist/{index-DZboVCcU.cjs → index-C2Y0cih9.cjs} +1 -1
- package/dist/{index-CT1bDBZy.js → index-C3UcoA71.js} +5 -5
- package/dist/{index-Cv58m2R8.js → index-CGe5AJp6.js} +1 -1
- package/dist/{index-DNp4E_lQ.cjs → index-CJXu9f3F.cjs} +1 -1
- package/dist/index-CM2le7df.cjs +1 -0
- package/dist/{index-BXCI98KY.js → index-CMHJ7CCR.js} +6 -6
- package/dist/{index-CNDlskJD.cjs → index-CTStbcBT.cjs} +1 -1
- package/dist/{index-sCZuOhEC.js → index-CXSbzU1a.js} +1 -1
- package/dist/index-CXWS6054.js +2876 -0
- package/dist/{index-CS2SJFa5.cjs → index-Cbz7ElQN.cjs} +1 -1
- package/dist/{index-cGnhqEuy.cjs → index-Cc1ykPE-.cjs} +1 -1
- package/dist/index-Cc4a5Z89.cjs +1 -0
- package/dist/{index-iqnKq5qd.js → index-CdWi5i0R.js} +1 -1
- package/dist/{index-BPWX1kmE.cjs → index-CgNpvAbR.cjs} +1 -1
- package/dist/{index-DRbQJezd.cjs → index-ChvyEtLh.cjs} +1 -1
- package/dist/{index-DndAdSGT.js → index-CjszYT-m.js} +3 -3
- package/dist/{index-nzQPJif1.cjs → index-D-_nblT-.cjs} +1 -1
- package/dist/{index-BJizDAnh.cjs → index-D5REUQyF.cjs} +1 -1
- package/dist/{index-Bq27i8N6.js → index-D8BszxzY.js} +4 -4
- package/dist/{index-Do4pZeLF.cjs → index-D8biWfYq.cjs} +1 -1
- package/dist/{index-B3jUJ0ml.js → index-DCPWjTH2.js} +7 -7
- package/dist/{index-BjDn0YhH.cjs → index-DZSfCv1U.cjs} +12 -12
- package/dist/{index-BWjhL8R0.js → index-D_qR3hDI.js} +1 -1
- package/dist/{index-Cc_IAZBO.js → index-Dcz5u1Wl.js} +4 -4
- package/dist/{index-CjipjSmP.cjs → index-DhdaxDcr.cjs} +1 -1
- package/dist/{index-BCGURMXa.js → index-Di8UuMxb.js} +2 -2
- package/dist/{index-CwvAshmz.js → index-DjfNhR3v.js} +3 -3
- package/dist/{index-CZkjboM8.js → index-DkVB-AEp.js} +6 -6
- package/dist/{index-CEuxxYEp.cjs → index-DqrGFL1c.cjs} +1 -1
- package/dist/{index-CBIrHmhA.cjs → index-IrdgJgK1.cjs} +1 -1
- package/dist/{index-BP1mTaAy.js → index-KP6vMTgE.js} +4 -4
- package/dist/{index-aG7MmrtC.js → index-Quv-LzXf.js} +3 -3
- package/dist/{index-BYc9jyiE.js → index-bfMyItzl.js} +3 -3
- package/dist/{index-BXumaiVx.js → index-fzUpIEce.js} +2 -2
- package/dist/{index-B3x0Un8L.js → index-gaIXSSnU.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Ctqs6jS6.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Cwtk3HI8.js} +13935 -14262
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DkW9dWKj.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bqxa7GJA.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js} +14096 -13945
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6FKmWHb.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-RZydwY0l.cjs} +356 -356
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BRLX6S9R.js +377 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Cu33JXj5.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-CrcbIeWl.js → index.vue_vue_type_style_index_1_lang-BJBnOzjh.js} +37 -37
- package/dist/{index.vue_vue_type_style_index_1_lang-DQ90IC2k.cjs → index.vue_vue_type_style_index_1_lang-KlMxUDnq.cjs} +1 -1
- package/dist/{isString-8mN8gX27.js → isString-Bb0EYAKj.js} +1 -1
- package/dist/{main-D3WREi0-.cjs → main-D0CiEOi_.cjs} +1 -1
- package/dist/{main-BkI9SlJQ.js → main-itEiu5WV.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CVlu8rK_.js → threeModel-C1pBED0w.js} +5 -5
- package/dist/{threeModel-Bp11Ni6H.cjs → threeModel-DrVpq-KZ.cjs} +1 -1
- package/dist/{threePreview-CdzNCx3-.js → threePreview-BHmdeJ_g.js} +4 -4
- package/dist/{threePreview-Dw4LR6jh.cjs → threePreview-BwKp0Pme.cjs} +1 -1
- package/dist/{threeSceneView-BdVTjYBI.cjs → threeSceneView-BlYiTnf8.cjs} +1 -1
- package/dist/{threeSceneView-jhQi8rSG.js → threeSceneView-CHzaHloG.js} +134 -134
- package/dist/{threeSceneViewForCPMPIP-DgAoijFZ.js → threeSceneViewForCPMPIP-Bxfu-nOk.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-DRYioXDE.cjs → threeSceneViewForCPMPIP-C6dwXzB6.cjs} +1 -1
- package/dist/{threeTrackPathView-C1HVNI2F.js → threeTrackPathView-D5b7ja2X.js} +48 -48
- package/dist/{threeTrackPathView-Ds9FmHU1.cjs → threeTrackPathView-YDfE6lF-.cjs} +1 -1
- package/dist/{threeViewerHost-Cazxmy9Q.cjs → threeViewerHost-BdoXIgqv.cjs} +1 -1
- package/dist/{threeViewerHost-DvIwe0xo.js → threeViewerHost-DhtCUUpq.js} +15 -15
- package/dist/{urdfTree-CMKhj8xM.js → urdfTree-ClXv-I_k.js} +1 -1
- package/dist/{urdfTree-dHyqQi6d.cjs → urdfTree-DhRlnWn_.cjs} +1 -1
- package/dist/{workpieceTreePanel-4MfitYyo.cjs → workpieceTreePanel-CA1W7zBB.cjs} +1 -1
- package/dist/{workpieceTreePanel-BM7lPJRO.js → workpieceTreePanel-Ctwrp39y.js} +29 -29
- package/package.json +1 -1
- package/dist/index-C-Cn4YSI.js +0 -12234
- package/dist/index-C3DC8sX2.js +0 -2853
- package/dist/index-DEyzKyXf.cjs +0 -1
- package/dist/index-qqyeENwY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-wPtij0q7.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Ddv_4Qcm.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DmUFTzw3.js +0 -376
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as G, resolveComponent as X, createBlock as
|
|
1
|
+
import { ref as G, resolveComponent as X, createBlock as $, openBlock as b, createCommentVNode as i0, createSlots as B2, withCtx as I, renderSlot as f0, defineComponent as h2, onMounted as re, createVNode as Q, createElementVNode as o0, createElementBlock as A, Fragment as y0, renderList as C0, createTextVNode as E2, toDisplayString as W0, reactive as c1, h as Be, Transition as $r, withDirectives as dt, vShow as Ut, createApp as jr, toRefs as M4, nextTick as S2, isRef as Wr, watch as r2, computed as t0, onBeforeUnmount as On, normalizeStyle as X0, normalizeClass as X3, resolveDynamicComponent as Ft, normalizeProps as Ur, guardReactiveProps as Fr, mergeProps as h1, withModifiers as T4, inject as qr, watchEffect as we, onUnmounted as d1, unref as nt, resolveDirective as Yr } from "vue";
|
|
2
2
|
import { S as ut } from "./index-BHtNKL1L.js";
|
|
3
|
-
import {
|
|
3
|
+
import { aw as Kr, D as z4, m as Je, b as Xr, S as ms, c as P4, ax as Qr, ay as Jr, az as Zr, aA as e8, d as t8, aB as vs, aC as ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-6Ap42_Dn.js";
|
|
4
4
|
import { _ as P0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bQ as A4, bR as V4, cf as i8, cg as xs, bG as n8, b8 as t3, U as s8, ae as E4, aJ as kt, b7 as bs, Z as B4, ch as o8, E as B3, p as i3, s as n3, c as Y2, a as L4, ci as l8, aW as r8, aw as a8, cj as c8, b as h8, b2 as d8 } from "./index-BgE_6FYY.js";
|
|
6
6
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
|
-
import { a as Dn, u as H4 } from "./index-
|
|
8
|
-
import { s as Mn } from "./index-
|
|
9
|
-
import { T as _s, a as u8 } from "./threeViewerHost-
|
|
10
|
-
import { s as f8 } from "./index-
|
|
7
|
+
import { a as Dn, u as H4 } from "./index-D_qR3hDI.js";
|
|
8
|
+
import { s as Mn } from "./index-CGe5AJp6.js";
|
|
9
|
+
import { T as _s, a as u8 } from "./threeViewerHost-DhtCUUpq.js";
|
|
10
|
+
import { s as f8 } from "./index-DCPWjTH2.js";
|
|
11
11
|
var p8 = "[object Date]";
|
|
12
12
|
function g8(n) {
|
|
13
13
|
return A4(n) && V4(n) == p8;
|
|
@@ -45,7 +45,7 @@ const v8 = {
|
|
|
45
45
|
const e = n, t = G(e.value);
|
|
46
46
|
return (i, s) => {
|
|
47
47
|
const o = X("el-switch");
|
|
48
|
-
return b(),
|
|
48
|
+
return b(), $(o, {
|
|
49
49
|
modelValue: t.value,
|
|
50
50
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
51
51
|
"active-color": "#13ce66",
|
|
@@ -78,7 +78,7 @@ const v8 = {
|
|
|
78
78
|
const e = n, t = G(e.value);
|
|
79
79
|
return (i, s) => {
|
|
80
80
|
const o = X("el-input");
|
|
81
|
-
return Array.isArray(t.value) ? i0("", !0) : (b(),
|
|
81
|
+
return Array.isArray(t.value) ? i0("", !0) : (b(), $(o, {
|
|
82
82
|
key: 0,
|
|
83
83
|
modelValue: t.value,
|
|
84
84
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -756,7 +756,7 @@ const ou = { class: "icon-popover" }, lu = ["onClick"], ru = /* @__PURE__ */ h2(
|
|
|
756
756
|
l.value = su();
|
|
757
757
|
}), (c, d) => {
|
|
758
758
|
const u = X("el-input"), f = X("el-popover");
|
|
759
|
-
return b(),
|
|
759
|
+
return b(), $(f, {
|
|
760
760
|
width: "400",
|
|
761
761
|
visible: o.value,
|
|
762
762
|
title: "图标",
|
|
@@ -764,7 +764,7 @@ const ou = { class: "icon-popover" }, lu = ["onClick"], ru = /* @__PURE__ */ h2(
|
|
|
764
764
|
}, {
|
|
765
765
|
default: I(() => [
|
|
766
766
|
o0("div", ou, [
|
|
767
|
-
(b(!0), A(
|
|
767
|
+
(b(!0), A(y0, null, C0(l.value, (p, g) => (b(), A("div", {
|
|
768
768
|
key: g,
|
|
769
769
|
class: "icon-wrap",
|
|
770
770
|
onClick: (v) => h(p)
|
|
@@ -811,7 +811,7 @@ const ou = { class: "icon-popover" }, lu = ["onClick"], ru = /* @__PURE__ */ h2(
|
|
|
811
811
|
};
|
|
812
812
|
return (o, l) => {
|
|
813
813
|
const r = X("el-link");
|
|
814
|
-
return b(),
|
|
814
|
+
return b(), $(r, {
|
|
815
815
|
onClick: s,
|
|
816
816
|
type: "primary",
|
|
817
817
|
target: "_self",
|
|
@@ -1052,7 +1052,7 @@ const pu = {
|
|
|
1052
1052
|
}, { immediate: !0 }), (d, u) => {
|
|
1053
1053
|
const f = X("el-tag"), p = X("el-option"), g = X("el-select"), v = X("el-button");
|
|
1054
1054
|
return b(), A("div", null, [
|
|
1055
|
-
(b(!0), A(
|
|
1055
|
+
(b(!0), A(y0, null, C0(s.value, (w) => (b(), $(f, {
|
|
1056
1056
|
key: w,
|
|
1057
1057
|
closable: "",
|
|
1058
1058
|
"disable-transitions": !1,
|
|
@@ -1064,7 +1064,7 @@ const pu = {
|
|
|
1064
1064
|
]),
|
|
1065
1065
|
_: 2
|
|
1066
1066
|
}, 1032, ["onClose"]))), 128)),
|
|
1067
|
-
r.value ? (b(),
|
|
1067
|
+
r.value ? (b(), $(g, {
|
|
1068
1068
|
key: 0,
|
|
1069
1069
|
modelValue: o.value,
|
|
1070
1070
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => o.value = w),
|
|
@@ -1074,14 +1074,14 @@ const pu = {
|
|
|
1074
1074
|
placeholder: "请选择"
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: I(() => [
|
|
1077
|
-
(b(!0), A(
|
|
1077
|
+
(b(!0), A(y0, null, C0(l.value, (w, y) => (b(), $(p, {
|
|
1078
1078
|
key: y,
|
|
1079
1079
|
label: w == null ? void 0 : w.label,
|
|
1080
1080
|
value: w == null ? void 0 : w.value
|
|
1081
1081
|
}, null, 8, ["label", "value"]))), 128))
|
|
1082
1082
|
]),
|
|
1083
1083
|
_: 1
|
|
1084
|
-
}, 8, ["modelValue"])) : (b(),
|
|
1084
|
+
}, 8, ["modelValue"])) : (b(), $(v, {
|
|
1085
1085
|
key: 1,
|
|
1086
1086
|
class: "button-new-tag",
|
|
1087
1087
|
size: "small",
|
|
@@ -1113,7 +1113,7 @@ const pu = {
|
|
|
1113
1113
|
const e = n, t = G(e.value);
|
|
1114
1114
|
return (i, s) => {
|
|
1115
1115
|
const o = X("el-input");
|
|
1116
|
-
return b(),
|
|
1116
|
+
return b(), $(o, {
|
|
1117
1117
|
modelValue: t.value,
|
|
1118
1118
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1119
1119
|
disabled: !(e != null && e.isEdit),
|
|
@@ -1140,7 +1140,7 @@ const pu = {
|
|
|
1140
1140
|
const t = G(n.value);
|
|
1141
1141
|
return (i, s) => {
|
|
1142
1142
|
const o = X("el-color-picker");
|
|
1143
|
-
return b(),
|
|
1143
|
+
return b(), $(o, {
|
|
1144
1144
|
modelValue: t.value,
|
|
1145
1145
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1146
1146
|
"show-alpha": ""
|
|
@@ -1164,7 +1164,7 @@ const pu = {
|
|
|
1164
1164
|
const t = G(n.value);
|
|
1165
1165
|
return (i, s) => {
|
|
1166
1166
|
const o = X("el-input");
|
|
1167
|
-
return b(),
|
|
1167
|
+
return b(), $(o, {
|
|
1168
1168
|
modelValue: t.value,
|
|
1169
1169
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1170
1170
|
style: { height: "100%" },
|
|
@@ -1208,54 +1208,58 @@ const pu = {
|
|
|
1208
1208
|
const l = () => {
|
|
1209
1209
|
i("blurChange");
|
|
1210
1210
|
}, r = t0(() => {
|
|
1211
|
-
const
|
|
1212
|
-
return !!(
|
|
1211
|
+
const d = t.optionUrl;
|
|
1212
|
+
return !!(d != null && d.multiple);
|
|
1213
1213
|
}), a = t0(() => {
|
|
1214
|
-
var
|
|
1215
|
-
return (
|
|
1216
|
-
|
|
1214
|
+
var d, u;
|
|
1215
|
+
return (d = t.optionUrl) != null && d.multipleLimit ? parseInt((u = t.optionUrl) == null ? void 0 : u.multipleLimit) : 1;
|
|
1216
|
+
}), h = t0(() => {
|
|
1217
|
+
var d;
|
|
1218
|
+
return (d = o.value) == null ? void 0 : d.filter(
|
|
1219
|
+
(u, f, p) => f === p.findIndex((g) => g.value === u.value)
|
|
1217
1220
|
);
|
|
1218
|
-
}),
|
|
1219
|
-
var
|
|
1220
|
-
if (((
|
|
1221
|
-
let
|
|
1222
|
-
(v = (g = (p = (f =
|
|
1223
|
-
let
|
|
1224
|
-
|
|
1221
|
+
}), c = async () => {
|
|
1222
|
+
var d, u, f, p, g, v, w, y, D, k, O, x, S, V, H, z, R;
|
|
1223
|
+
if (((u = (d = t.optionUrl) == null ? void 0 : d.allSelectionContents) == null ? void 0 : u.length) > 0) {
|
|
1224
|
+
let _ = "", B = [];
|
|
1225
|
+
(w = (v = (g = (p = (f = t.optionUrl) == null ? void 0 : f.selectFilter) == null ? void 0 : p.replaceAll("(", "")) == null ? void 0 : g.replaceAll(")", "")) == null ? void 0 : v.split("||")) == null || w.forEach((r0) => {
|
|
1226
|
+
let g0 = r0 == null ? void 0 : r0.split("=");
|
|
1227
|
+
_ = g0 == null ? void 0 : g0[0], B == null || B.push(g0 == null ? void 0 : g0[1]);
|
|
1225
1228
|
});
|
|
1226
|
-
let
|
|
1227
|
-
o.value = (
|
|
1228
|
-
label:
|
|
1229
|
-
value:
|
|
1229
|
+
let Y = (D = (y = t.optionUrl) == null ? void 0 : y.contactValue) == null ? void 0 : D[_], W = B == null ? void 0 : B.findIndex((r0) => r0 === Y);
|
|
1230
|
+
o.value = (x = (O = (k = t.optionUrl) == null ? void 0 : k.allSelectionContents) == null ? void 0 : O[W]) == null ? void 0 : x.map((r0) => ({
|
|
1231
|
+
label: r0,
|
|
1232
|
+
value: r0
|
|
1230
1233
|
}));
|
|
1231
|
-
} else if (((
|
|
1232
|
-
let
|
|
1233
|
-
o.value = [...o.value, ...
|
|
1234
|
+
} else if (((V = (S = t.optionUrl) == null ? void 0 : S.menuSelect) == null ? void 0 : V.length) > 0 || (H = t.optionUrl) != null && H.menuId) {
|
|
1235
|
+
let _ = await Kr(t.optionUrl);
|
|
1236
|
+
o.value = [...o.value, ..._], s.value = (R = (z = o.value) == null ? void 0 : z[0]) == null ? void 0 : R.value;
|
|
1234
1237
|
}
|
|
1235
1238
|
i("click");
|
|
1236
1239
|
};
|
|
1237
|
-
return (
|
|
1238
|
-
const
|
|
1239
|
-
return b(),
|
|
1240
|
+
return (d, u) => {
|
|
1241
|
+
const f = X("el-option"), p = X("el-select");
|
|
1242
|
+
return b(), $(p, {
|
|
1240
1243
|
modelValue: s.value,
|
|
1241
|
-
"onUpdate:modelValue":
|
|
1244
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => s.value = g),
|
|
1242
1245
|
filterable: "",
|
|
1243
1246
|
multiple: r.value,
|
|
1247
|
+
"multiple-limit": a.value,
|
|
1244
1248
|
clearable: n.clearable,
|
|
1245
1249
|
placeholder: n.placeholder,
|
|
1246
1250
|
style: { width: "100%" },
|
|
1247
1251
|
onChange: l,
|
|
1248
|
-
onVisibleChange:
|
|
1252
|
+
onVisibleChange: c
|
|
1249
1253
|
}, {
|
|
1250
1254
|
default: I(() => [
|
|
1251
|
-
(b(!0), A(
|
|
1252
|
-
key:
|
|
1253
|
-
label:
|
|
1254
|
-
value:
|
|
1255
|
+
(b(!0), A(y0, null, C0(h.value, (g) => (b(), $(f, {
|
|
1256
|
+
key: g.value,
|
|
1257
|
+
label: g.label,
|
|
1258
|
+
value: g.value
|
|
1255
1259
|
}, null, 8, ["label", "value"]))), 128))
|
|
1256
1260
|
]),
|
|
1257
1261
|
_: 1
|
|
1258
|
-
}, 8, ["modelValue", "multiple", "clearable", "placeholder"]);
|
|
1262
|
+
}, 8, ["modelValue", "multiple", "multiple-limit", "clearable", "placeholder"]);
|
|
1259
1263
|
};
|
|
1260
1264
|
}
|
|
1261
1265
|
}, xu = {
|
|
@@ -1311,20 +1315,20 @@ const pu = {
|
|
|
1311
1315
|
setup(n, { emit: e }) {
|
|
1312
1316
|
const t = n, i = Dn(i3), { isEdit: s } = n3(i), o = H4(), { activeMenuPath: l } = n3(o);
|
|
1313
1317
|
re(() => {
|
|
1314
|
-
|
|
1318
|
+
R();
|
|
1315
1319
|
});
|
|
1316
1320
|
const r = e, a = G(null), h = G(null), c = G(), d = G(), u = G(0), f = t0(() => {
|
|
1317
1321
|
var _;
|
|
1318
|
-
return (_ = z4) == null ? void 0 : _.map((
|
|
1319
|
-
value:
|
|
1320
|
-
label:
|
|
1322
|
+
return (_ = z4) == null ? void 0 : _.map((B) => ({
|
|
1323
|
+
value: B == null ? void 0 : B.key,
|
|
1324
|
+
label: B == null ? void 0 : B.key
|
|
1321
1325
|
}));
|
|
1322
1326
|
}), p = (_) => {
|
|
1323
1327
|
r("routeUrl", _);
|
|
1324
1328
|
}, g = t0(() => {
|
|
1325
1329
|
var Y;
|
|
1326
1330
|
const _ = (Y = l.value) == null ? void 0 : Y.split("/");
|
|
1327
|
-
return (_ == null ? void 0 : _.some((
|
|
1331
|
+
return (_ == null ? void 0 : _.some((W) => (W == null ? void 0 : W.includes("updateLoading")) || (W == null ? void 0 : W.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
|
|
1328
1332
|
}), v = (_) => us(_), w = (_) => {
|
|
1329
1333
|
r("clickTrigger", _);
|
|
1330
1334
|
}, y = (_) => {
|
|
@@ -1339,36 +1343,36 @@ const pu = {
|
|
|
1339
1343
|
S2(() => {
|
|
1340
1344
|
u.value++;
|
|
1341
1345
|
});
|
|
1342
|
-
}, x = (_,
|
|
1346
|
+
}, x = (_, B) => {
|
|
1343
1347
|
switch (_) {
|
|
1344
1348
|
case "datetime":
|
|
1345
|
-
return Je(
|
|
1349
|
+
return Je(B).format("YYYY-MM-DD HH:mm:ss");
|
|
1346
1350
|
case "date":
|
|
1347
|
-
return Je(
|
|
1351
|
+
return Je(B).format("YYYY-MM-DD");
|
|
1348
1352
|
default:
|
|
1349
|
-
return
|
|
1353
|
+
return B;
|
|
1350
1354
|
}
|
|
1351
1355
|
}, S = (_) => {
|
|
1352
1356
|
r("changeVisible", _);
|
|
1353
|
-
}, V = (_,
|
|
1354
|
-
r("handleColEditChange", _,
|
|
1355
|
-
},
|
|
1356
|
-
await S2(), r("handleColTypeChange", _,
|
|
1357
|
+
}, V = (_, B) => {
|
|
1358
|
+
r("handleColEditChange", _, B);
|
|
1359
|
+
}, H = async (_, B) => {
|
|
1360
|
+
await S2(), r("handleColTypeChange", _, B);
|
|
1357
1361
|
};
|
|
1358
1362
|
r2(
|
|
1359
1363
|
() => t == null ? void 0 : t.rowContents,
|
|
1360
1364
|
() => {
|
|
1361
|
-
var
|
|
1362
|
-
if (((
|
|
1365
|
+
var B, Y;
|
|
1366
|
+
if (((B = t == null ? void 0 : t.rowContents) == null ? void 0 : B.length) === 0) return;
|
|
1363
1367
|
const _ = {};
|
|
1364
|
-
(Y = Y2(t == null ? void 0 : t.rowContents)) == null || Y.forEach((
|
|
1365
|
-
_[(
|
|
1368
|
+
(Y = Y2(t == null ? void 0 : t.rowContents)) == null || Y.forEach((W) => {
|
|
1369
|
+
_[(W == null ? void 0 : W.prop) ?? (W == null ? void 0 : W.name)] = x(W == null ? void 0 : W.type, W == null ? void 0 : W.value);
|
|
1366
1370
|
}), c.value = _, d.value = _, O();
|
|
1367
1371
|
},
|
|
1368
1372
|
{ deep: !0, immediate: !0 }
|
|
1369
1373
|
);
|
|
1370
|
-
const z = async (_,
|
|
1371
|
-
if (await S2(), !!
|
|
1374
|
+
const z = async (_, B) => {
|
|
1375
|
+
if (await S2(), !!B) {
|
|
1372
1376
|
if (_ === "取消")
|
|
1373
1377
|
return r(
|
|
1374
1378
|
"onButtonClick",
|
|
@@ -1377,25 +1381,25 @@ const pu = {
|
|
|
1377
1381
|
buttonName: _
|
|
1378
1382
|
}
|
|
1379
1383
|
);
|
|
1380
|
-
await (
|
|
1384
|
+
await (B == null ? void 0 : B.validate((Y, W) => {
|
|
1381
1385
|
Y ? r(
|
|
1382
1386
|
"onButtonClick",
|
|
1383
1387
|
{
|
|
1384
1388
|
content: d.value,
|
|
1385
1389
|
buttonName: _
|
|
1386
1390
|
}
|
|
1387
|
-
) : console.log("表单校验失败",
|
|
1391
|
+
) : console.log("表单校验失败", W);
|
|
1388
1392
|
}));
|
|
1389
1393
|
}
|
|
1390
1394
|
};
|
|
1391
1395
|
On(() => {
|
|
1392
1396
|
c.value = void 0, d.value = void 0, u.value = null;
|
|
1393
1397
|
});
|
|
1394
|
-
const
|
|
1398
|
+
const R = () => {
|
|
1395
1399
|
if (d.value) {
|
|
1396
1400
|
let _ = {};
|
|
1397
|
-
for (let
|
|
1398
|
-
Ss(d.value[
|
|
1401
|
+
for (let B in d.value)
|
|
1402
|
+
Ss(d.value[B]) ? _[B] = Je(d.value[B]).format("YYYY-MM-DD") : _[B] = d.value[B];
|
|
1399
1403
|
r("change", _);
|
|
1400
1404
|
}
|
|
1401
1405
|
};
|
|
@@ -1407,9 +1411,9 @@ const pu = {
|
|
|
1407
1411
|
Ss(d.value[_]) ? Je(d.value[_]).format("YYYY-MM-DD") : d.value[_];
|
|
1408
1412
|
},
|
|
1409
1413
|
{ deep: !0 }
|
|
1410
|
-
), (_,
|
|
1411
|
-
var
|
|
1412
|
-
const Y = X("el-form-item"),
|
|
1414
|
+
), (_, B) => {
|
|
1415
|
+
var g0;
|
|
1416
|
+
const Y = X("el-form-item"), W = X("el-form"), r0 = X("el-button");
|
|
1413
1417
|
return b(), A("div", {
|
|
1414
1418
|
class: "form-content",
|
|
1415
1419
|
style: X0({ flexDirection: n.isButtonRow ? "row" : "column" })
|
|
@@ -1422,7 +1426,7 @@ const pu = {
|
|
|
1422
1426
|
}, void 0, !0)
|
|
1423
1427
|
])) : i0("", !0),
|
|
1424
1428
|
o0("div", bu, [
|
|
1425
|
-
t.isEnableWrap ? (b(),
|
|
1429
|
+
t.isEnableWrap ? (b(), $(W, {
|
|
1426
1430
|
ref_key: "formWrapRef",
|
|
1427
1431
|
ref: a,
|
|
1428
1432
|
model: c.value,
|
|
@@ -1432,9 +1436,9 @@ const pu = {
|
|
|
1432
1436
|
key: t.isRowFlex + u.value
|
|
1433
1437
|
}, {
|
|
1434
1438
|
default: I(() => {
|
|
1435
|
-
var
|
|
1439
|
+
var _0;
|
|
1436
1440
|
return [
|
|
1437
|
-
(b(!0), A(
|
|
1441
|
+
(b(!0), A(y0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => dt((b(), $(Y, {
|
|
1438
1442
|
key: B0,
|
|
1439
1443
|
disabled: n.formDisabled || (m == null ? void 0 : m.disabled),
|
|
1440
1444
|
class: "form-item",
|
|
@@ -1444,7 +1448,7 @@ const pu = {
|
|
|
1444
1448
|
default: I(() => {
|
|
1445
1449
|
var k0, I0, $0, t2, d2, u2, R2, Oe, De, Me, Te, ze, Pe, Ae;
|
|
1446
1450
|
return [
|
|
1447
|
-
m != null && m.isFormColHidden ? i0("", !0) : (b(),
|
|
1451
|
+
m != null && m.isFormColHidden ? i0("", !0) : (b(), $(Ft(v((m == null ? void 0 : m.type) ?? "Input")), {
|
|
1448
1452
|
modelValue: d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)],
|
|
1449
1453
|
"onUpdate:modelValue": (N2) => d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)] = N2,
|
|
1450
1454
|
key: m == null ? void 0 : m.type,
|
|
@@ -1453,13 +1457,13 @@ const pu = {
|
|
|
1453
1457
|
disabled: m == null ? void 0 : m.disabled,
|
|
1454
1458
|
onClickTrigger: w,
|
|
1455
1459
|
onBlur: D,
|
|
1456
|
-
onChange:
|
|
1460
|
+
onChange: R,
|
|
1457
1461
|
optionUrl: m == null ? void 0 : m.optionUrl,
|
|
1458
1462
|
onChangeVisible: S,
|
|
1459
1463
|
onBlurChange: (N2) => k((m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)),
|
|
1460
1464
|
config: m == null ? void 0 : m.config
|
|
1461
1465
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "disabled", "optionUrl", "onBlurChange", "config"])),
|
|
1462
|
-
typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || ($0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && $0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (d2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && d2.includes(".ls") || (u2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && u2.includes(".uv") || (R2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && R2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(),
|
|
1466
|
+
typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || ($0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && $0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (d2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && d2.includes(".ls") || (u2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && u2.includes(".uv") || (R2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && R2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), $(me, {
|
|
1463
1467
|
key: 1,
|
|
1464
1468
|
class: "calculator-content form-preview",
|
|
1465
1469
|
onClickTrigger: (N2) => y(d.value[(m == null ? void 0 : m.prop) ?? m.name]),
|
|
@@ -1477,7 +1481,7 @@ const pu = {
|
|
|
1477
1481
|
class: "from-item-label",
|
|
1478
1482
|
style: X0({ width: n.isRowFlex ? "72px" : "260px", minWidth: n.isRowFlex ? "72px" : "260px" })
|
|
1479
1483
|
}, [
|
|
1480
|
-
m != null && m.operable ? (b(),
|
|
1484
|
+
m != null && m.operable ? (b(), $(s3, {
|
|
1481
1485
|
key: 0,
|
|
1482
1486
|
value: m == null ? void 0 : m.label,
|
|
1483
1487
|
appendShow: !0,
|
|
@@ -1490,7 +1494,7 @@ const pu = {
|
|
|
1490
1494
|
content: f.value,
|
|
1491
1495
|
placeholder: "类型",
|
|
1492
1496
|
style: { width: "100%" },
|
|
1493
|
-
onChange: (k0) =>
|
|
1497
|
+
onChange: (k0) => H(k0, m)
|
|
1494
1498
|
}, null, 8, ["value", "content", "onChange"])
|
|
1495
1499
|
]),
|
|
1496
1500
|
_: 2
|
|
@@ -1502,12 +1506,12 @@ const pu = {
|
|
|
1502
1506
|
]), 1032, ["disabled", "prop", "style"])), [
|
|
1503
1507
|
[Ut, !(m != null && m.isFormColHidden)]
|
|
1504
1508
|
])), 128)),
|
|
1505
|
-
((
|
|
1509
|
+
((_0 = t.buttonValue) == null ? void 0 : _0.length) > 0 && n.isButtonRow ? (b(), A("div", {
|
|
1506
1510
|
key: 0,
|
|
1507
1511
|
class: "form-button",
|
|
1508
1512
|
style: X0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1509
1513
|
}, [
|
|
1510
|
-
(b(!0), A(
|
|
1514
|
+
(b(!0), A(y0, null, C0(t == null ? void 0 : t.buttonValue, (m, B0) => (b(), A("div", {
|
|
1511
1515
|
key: B0,
|
|
1512
1516
|
class: "form-button-content"
|
|
1513
1517
|
}, [
|
|
@@ -1522,7 +1526,7 @@ const pu = {
|
|
|
1522
1526
|
];
|
|
1523
1527
|
}),
|
|
1524
1528
|
_: 1
|
|
1525
|
-
}, 8, ["model", "rules", "disabled", "class"])) : (b(),
|
|
1529
|
+
}, 8, ["model", "rules", "disabled", "class"])) : (b(), $(W, {
|
|
1526
1530
|
ref_key: "formRef",
|
|
1527
1531
|
ref: h,
|
|
1528
1532
|
model: d.value,
|
|
@@ -1532,9 +1536,9 @@ const pu = {
|
|
|
1532
1536
|
key: u.value
|
|
1533
1537
|
}, {
|
|
1534
1538
|
default: I(() => {
|
|
1535
|
-
var
|
|
1539
|
+
var _0;
|
|
1536
1540
|
return [
|
|
1537
|
-
(b(!0), A(
|
|
1541
|
+
(b(!0), A(y0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => dt((b(), $(Y, {
|
|
1538
1542
|
key: B0,
|
|
1539
1543
|
class: X3(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
1540
1544
|
prop: (m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name),
|
|
@@ -1550,14 +1554,14 @@ const pu = {
|
|
|
1550
1554
|
default: I(() => {
|
|
1551
1555
|
var k0, I0, $0, t2, d2, u2, R2, Oe, De, Me, Te, ze, Pe, Ae;
|
|
1552
1556
|
return [
|
|
1553
|
-
!(m != null && m.isFormColHidden) && (m == null ? void 0 : m.type) !== "Url" ? (b(),
|
|
1557
|
+
!(m != null && m.isFormColHidden) && (m == null ? void 0 : m.type) !== "Url" ? (b(), $(Ft(v((m == null ? void 0 : m.type) ?? "Input")), {
|
|
1554
1558
|
modelValue: d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)],
|
|
1555
1559
|
"onUpdate:modelValue": (N2) => d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)] = N2,
|
|
1556
1560
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
1557
1561
|
disabled: m == null ? void 0 : m.disabled,
|
|
1558
1562
|
content: (m == null ? void 0 : m.contents) ?? [],
|
|
1559
1563
|
onClickTrigger: w,
|
|
1560
|
-
onChange:
|
|
1564
|
+
onChange: R,
|
|
1561
1565
|
onBlur: D,
|
|
1562
1566
|
key: m == null ? void 0 : m.type,
|
|
1563
1567
|
optionUrl: m == null ? void 0 : m.optionUrl,
|
|
@@ -1572,7 +1576,7 @@ const pu = {
|
|
|
1572
1576
|
modelValue: "详情"
|
|
1573
1577
|
}, null, 8, ["onClickTrigger"])
|
|
1574
1578
|
])) : i0("", !0),
|
|
1575
|
-
typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || ($0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && $0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (d2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && d2.includes(".ls") || (u2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && u2.includes(".uv") || (R2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && R2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(),
|
|
1579
|
+
typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || ($0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && $0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (d2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && d2.includes(".ls") || (u2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && u2.includes(".uv") || (R2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && R2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), $(me, {
|
|
1576
1580
|
key: 2,
|
|
1577
1581
|
class: "calculator-content form-preview",
|
|
1578
1582
|
onClickTrigger: (N2) => y(d.value[(m == null ? void 0 : m.prop) ?? m.name]),
|
|
@@ -1590,7 +1594,7 @@ const pu = {
|
|
|
1590
1594
|
class: "from-item-label",
|
|
1591
1595
|
style: X0({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(m == null ? void 0 : m.width) ?? 1}) - 8px)` })
|
|
1592
1596
|
}, [
|
|
1593
|
-
m != null && m.operable ? (b(),
|
|
1597
|
+
m != null && m.operable ? (b(), $(s3, {
|
|
1594
1598
|
key: 0,
|
|
1595
1599
|
value: m == null ? void 0 : m.label,
|
|
1596
1600
|
appendShow: !0,
|
|
@@ -1603,7 +1607,7 @@ const pu = {
|
|
|
1603
1607
|
content: f.value,
|
|
1604
1608
|
placeholder: "类型",
|
|
1605
1609
|
style: { width: "100%" },
|
|
1606
|
-
onChange: (k0) =>
|
|
1610
|
+
onChange: (k0) => H(k0, m)
|
|
1607
1611
|
}, null, 8, ["value", "content", "onChange"])
|
|
1608
1612
|
]),
|
|
1609
1613
|
_: 2
|
|
@@ -1615,12 +1619,12 @@ const pu = {
|
|
|
1615
1619
|
]), 1032, ["prop", "class", "disabled", "style"])), [
|
|
1616
1620
|
[Ut, !(m != null && m.isFormColHidden)]
|
|
1617
1621
|
])), 128)),
|
|
1618
|
-
((
|
|
1622
|
+
((_0 = t.buttonValue) == null ? void 0 : _0.length) > 0 && n.isButtonRow ? (b(), A("div", {
|
|
1619
1623
|
key: 0,
|
|
1620
1624
|
class: "form-button",
|
|
1621
1625
|
style: X0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1622
1626
|
}, [
|
|
1623
|
-
(b(!0), A(
|
|
1627
|
+
(b(!0), A(y0, null, C0(t == null ? void 0 : t.buttonValue, (m, B0) => (b(), A("div", {
|
|
1624
1628
|
key: B0,
|
|
1625
1629
|
class: "form-button-content"
|
|
1626
1630
|
}, [
|
|
@@ -1637,22 +1641,22 @@ const pu = {
|
|
|
1637
1641
|
_: 1
|
|
1638
1642
|
}, 8, ["model", "rules", "disabled", "class"]))
|
|
1639
1643
|
]),
|
|
1640
|
-
((
|
|
1644
|
+
((g0 = t.buttonValue) == null ? void 0 : g0.length) > 0 && !n.isButtonRow ? (b(), A("div", {
|
|
1641
1645
|
key: 1,
|
|
1642
1646
|
class: "form-button",
|
|
1643
1647
|
style: X0({ justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1644
1648
|
}, [
|
|
1645
|
-
(b(!0), A(
|
|
1649
|
+
(b(!0), A(y0, null, C0(t == null ? void 0 : t.buttonValue, (_0, m) => (b(), A("div", {
|
|
1646
1650
|
key: m,
|
|
1647
1651
|
class: "form-button-content",
|
|
1648
|
-
onClick: (B0) => z(
|
|
1652
|
+
onClick: (B0) => z(_0 == null ? void 0 : _0.label, t.isEnableWrap ? a.value : h.value)
|
|
1649
1653
|
}, [
|
|
1650
|
-
Q(
|
|
1654
|
+
Q(r0, {
|
|
1651
1655
|
id: "themeButton",
|
|
1652
|
-
style: X0({ background: (
|
|
1656
|
+
style: X0({ background: (_0 == null ? void 0 : _0.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
|
|
1653
1657
|
}, {
|
|
1654
1658
|
default: I(() => [
|
|
1655
|
-
E2(W0(
|
|
1659
|
+
E2(W0(_0 == null ? void 0 : _0.label), 1)
|
|
1656
1660
|
]),
|
|
1657
1661
|
_: 2
|
|
1658
1662
|
}, 1032, ["style"])
|
|
@@ -1688,7 +1692,7 @@ const pu = {
|
|
|
1688
1692
|
};
|
|
1689
1693
|
return (l, r) => {
|
|
1690
1694
|
var a, h, c, d, u, f, p, g;
|
|
1691
|
-
return b(),
|
|
1695
|
+
return b(), $(Mu, {
|
|
1692
1696
|
rowContents: ((a = t == null ? void 0 : t.content) == null ? void 0 : a.rowContents) ?? [],
|
|
1693
1697
|
formRules: (h = t == null ? void 0 : t.content) == null ? void 0 : h.formRules,
|
|
1694
1698
|
buttonValue: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.buttonValue) ?? [],
|
|
@@ -1722,14 +1726,14 @@ const pu = {
|
|
|
1722
1726
|
};
|
|
1723
1727
|
return (l, r) => {
|
|
1724
1728
|
const a = X("el-radio"), h = X("el-radio-group");
|
|
1725
|
-
return b(),
|
|
1729
|
+
return b(), $(h, {
|
|
1726
1730
|
modelValue: i.value,
|
|
1727
1731
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
1728
1732
|
style: { height: "100%" },
|
|
1729
1733
|
onChange: r[1] || (r[1] = (c) => o(c))
|
|
1730
1734
|
}, {
|
|
1731
1735
|
default: I(() => [
|
|
1732
|
-
(b(!0), A(
|
|
1736
|
+
(b(!0), A(y0, null, C0(t.content, (c, d) => (b(), $(a, {
|
|
1733
1737
|
key: d,
|
|
1734
1738
|
label: c.value,
|
|
1735
1739
|
disabled: c == null ? void 0 : c.disabled
|
|
@@ -1772,7 +1776,7 @@ const pu = {
|
|
|
1772
1776
|
};
|
|
1773
1777
|
return (l, r) => {
|
|
1774
1778
|
const a = X("el-checkbox"), h = X("el-checkbox-group");
|
|
1775
|
-
return b(),
|
|
1779
|
+
return b(), $(h, {
|
|
1776
1780
|
modelValue: i.value,
|
|
1777
1781
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
1778
1782
|
style: { height: "100%" },
|
|
@@ -1780,7 +1784,7 @@ const pu = {
|
|
|
1780
1784
|
onChange: r[1] || (r[1] = (c) => o(c))
|
|
1781
1785
|
}, {
|
|
1782
1786
|
default: I(() => [
|
|
1783
|
-
(b(!0), A(
|
|
1787
|
+
(b(!0), A(y0, null, C0(n.content, (c) => (b(), $(a, {
|
|
1784
1788
|
key: c.label,
|
|
1785
1789
|
label: c.label,
|
|
1786
1790
|
value: c.value,
|
|
@@ -1818,7 +1822,7 @@ const pu = {
|
|
|
1818
1822
|
});
|
|
1819
1823
|
}), (t, i) => {
|
|
1820
1824
|
var s;
|
|
1821
|
-
return b(),
|
|
1825
|
+
return b(), $(Rr, {
|
|
1822
1826
|
tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
|
|
1823
1827
|
}, B2({ _: 2 }, [
|
|
1824
1828
|
C0(t.$slots, (o, l) => ({
|
|
@@ -1833,7 +1837,7 @@ const pu = {
|
|
|
1833
1837
|
}, Eu = {};
|
|
1834
1838
|
function Bu(n, e) {
|
|
1835
1839
|
const t = X("el-card");
|
|
1836
|
-
return b(),
|
|
1840
|
+
return b(), $(t, null, {
|
|
1837
1841
|
default: I(() => [
|
|
1838
1842
|
f0(n.$slots, "content")
|
|
1839
1843
|
]),
|
|
@@ -1890,7 +1894,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
1890
1894
|
return (e, t) => {
|
|
1891
1895
|
var r, a, h, c, d, u, f, p, g, v, w;
|
|
1892
1896
|
const i = X("svg-icon"), s = X("el-tooltip"), o = X("RecurseCol", !0), l = X("el-table-column");
|
|
1893
|
-
return n.column.isHidden ? i0("", !0) : (b(),
|
|
1897
|
+
return n.column.isHidden ? i0("", !0) : (b(), $(l, {
|
|
1894
1898
|
key: 0,
|
|
1895
1899
|
label: n.column.label,
|
|
1896
1900
|
prop: n.column.prop,
|
|
@@ -1903,7 +1907,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
1903
1907
|
"class-name": (((w = n.column) == null ? void 0 : w.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
1904
1908
|
}, {
|
|
1905
1909
|
header: I(() => [
|
|
1906
|
-
n.column.label !== "操作" ? (b(), A("span", Nu, W0(n.column.label), 1)) : (b(),
|
|
1910
|
+
n.column.label !== "操作" ? (b(), A("span", Nu, W0(n.column.label), 1)) : (b(), $(s, {
|
|
1907
1911
|
key: 1,
|
|
1908
1912
|
content: "操作",
|
|
1909
1913
|
placement: "left-start",
|
|
@@ -1925,15 +1929,15 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
1925
1929
|
$index: y.$index,
|
|
1926
1930
|
scope: y
|
|
1927
1931
|
}),
|
|
1928
|
-
(b(!0), A(
|
|
1932
|
+
(b(!0), A(y0, null, C0(n.column.children, (D, k) => (b(), $(o, {
|
|
1929
1933
|
key: k,
|
|
1930
1934
|
column: D
|
|
1931
1935
|
}, B2({ _: 2 }, [
|
|
1932
1936
|
C0(e.$slots, (O, x) => ({
|
|
1933
1937
|
name: x,
|
|
1934
|
-
fn: I(({ row: S, slotData: V, item:
|
|
1938
|
+
fn: I(({ row: S, slotData: V, item: H, column: z }) => [
|
|
1935
1939
|
f0(e.$slots, x, h1({ ref_for: !0 }, V ?? S, {
|
|
1936
|
-
item:
|
|
1940
|
+
item: H ?? D,
|
|
1937
1941
|
slotData: V ?? S,
|
|
1938
1942
|
row: S,
|
|
1939
1943
|
column: z
|
|
@@ -1988,9 +1992,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
1988
1992
|
})) : !1;
|
|
1989
1993
|
};
|
|
1990
1994
|
return (d, u) => {
|
|
1991
|
-
var g, v, w, y, D, k, O, x, S, V,
|
|
1995
|
+
var g, v, w, y, D, k, O, x, S, V, H, z;
|
|
1992
1996
|
const f = X("svg-icon"), p = X("el-table-column");
|
|
1993
|
-
return n.column.isTableColHidden ? i0("", !0) : (b(),
|
|
1997
|
+
return n.column.isTableColHidden ? i0("", !0) : (b(), $(p, {
|
|
1994
1998
|
key: 0,
|
|
1995
1999
|
label: n.column.label,
|
|
1996
2000
|
prop: n.column.prop,
|
|
@@ -2002,22 +2006,22 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2002
2006
|
"show-overflow-tooltip": ((O = n.column) == null ? void 0 : O.showOverflowTooltip) ?? !0,
|
|
2003
2007
|
width: ((x = n.column) == null ? void 0 : x.width) > 80 ? 80 : (S = n.column) == null ? void 0 : S.width,
|
|
2004
2008
|
"min-width": ((V = n.column) == null ? void 0 : V.label) === "操作" ? 40 : "auto",
|
|
2005
|
-
"class-name": ((
|
|
2009
|
+
"class-name": ((H = n.column) == null ? void 0 : H.prop) === "operate" ? "action" : (((z = n.column) == null ? void 0 : z.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
2006
2010
|
}, {
|
|
2007
2011
|
header: I(() => [
|
|
2008
|
-
n.column.label !== "操作" ? (b(), A(
|
|
2009
|
-
n.column.operable && n.isEditViewport ? (b(),
|
|
2012
|
+
n.column.label !== "操作" ? (b(), A(y0, { key: 0 }, [
|
|
2013
|
+
n.column.operable && n.isEditViewport ? (b(), $(s3, {
|
|
2010
2014
|
key: 0,
|
|
2011
2015
|
value: s.value.label,
|
|
2012
2016
|
appendShow: !0,
|
|
2013
2017
|
class: "col-edit-input",
|
|
2014
|
-
onChange: u[1] || (u[1] = (
|
|
2018
|
+
onChange: u[1] || (u[1] = (R) => r(R, n.column))
|
|
2015
2019
|
}, {
|
|
2016
2020
|
append: I(() => {
|
|
2017
|
-
var
|
|
2021
|
+
var R;
|
|
2018
2022
|
return [
|
|
2019
2023
|
Q(o3, {
|
|
2020
|
-
value: (
|
|
2024
|
+
value: (R = n.column) == null ? void 0 : R.columnType,
|
|
2021
2025
|
content: o.value,
|
|
2022
2026
|
clearable: !1,
|
|
2023
2027
|
placeholder: "类型",
|
|
@@ -2034,13 +2038,13 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2034
2038
|
], 64)) : f0(d.$slots, "operateHeader", { key: 1 })
|
|
2035
2039
|
]),
|
|
2036
2040
|
"filter-icon": I(() => {
|
|
2037
|
-
var
|
|
2041
|
+
var R, _, B, Y;
|
|
2038
2042
|
return [
|
|
2039
|
-
(
|
|
2043
|
+
(R = n.column) != null && R.filterable && ((_ = n.column) == null ? void 0 : _.label) !== "操作" ? (b(), $(f, {
|
|
2040
2044
|
key: 0,
|
|
2041
|
-
name: (
|
|
2045
|
+
name: (B = n.column) != null && B.filterable && ((Y = n.column) == null ? void 0 : Y.label) !== "操作" ? "colFilter" : "",
|
|
2042
2046
|
class: "custom-filter-icon"
|
|
2043
|
-
}, null, 8, ["name"])) : (b(),
|
|
2047
|
+
}, null, 8, ["name"])) : (b(), $(f, {
|
|
2044
2048
|
key: 1,
|
|
2045
2049
|
onClick: u[2] || (u[2] = T4(() => {
|
|
2046
2050
|
}, ["stop"])),
|
|
@@ -2048,24 +2052,24 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2048
2052
|
}))
|
|
2049
2053
|
];
|
|
2050
2054
|
}),
|
|
2051
|
-
default: I((
|
|
2055
|
+
default: I((R) => [
|
|
2052
2056
|
f0(d.$slots, "content", {
|
|
2053
|
-
row:
|
|
2054
|
-
column:
|
|
2055
|
-
$index:
|
|
2056
|
-
scope:
|
|
2057
|
+
row: R.row,
|
|
2058
|
+
column: R.column,
|
|
2059
|
+
$index: R.$index,
|
|
2060
|
+
scope: R
|
|
2057
2061
|
}),
|
|
2058
|
-
(b(!0), A(
|
|
2059
|
-
key:
|
|
2062
|
+
(b(!0), A(y0, null, C0(n.column.children, (_, B) => (b(), $(Gu, {
|
|
2063
|
+
key: B,
|
|
2060
2064
|
column: _
|
|
2061
2065
|
}, B2({ _: 2 }, [
|
|
2062
|
-
C0(d.$slots, (Y,
|
|
2063
|
-
name:
|
|
2064
|
-
fn: I(({ row:
|
|
2065
|
-
f0(d.$slots,
|
|
2066
|
-
item:
|
|
2067
|
-
slotData:
|
|
2068
|
-
row:
|
|
2066
|
+
C0(d.$slots, (Y, W) => ({
|
|
2067
|
+
name: W,
|
|
2068
|
+
fn: I(({ row: r0, slotData: g0, item: _0, column: m }) => [
|
|
2069
|
+
f0(d.$slots, W, h1({ ref_for: !0 }, g0 ?? r0, {
|
|
2070
|
+
item: _0 ?? _,
|
|
2071
|
+
slotData: g0 ?? r0,
|
|
2072
|
+
row: r0,
|
|
2069
2073
|
column: m,
|
|
2070
2074
|
columnProp: _
|
|
2071
2075
|
}))
|
|
@@ -2203,10 +2207,10 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2203
2207
|
re(() => {
|
|
2204
2208
|
var C;
|
|
2205
2209
|
w = v(), r.value = t == null ? void 0 : t.columns, a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((P) => {
|
|
2206
|
-
var J, h0,
|
|
2210
|
+
var J, h0, v0;
|
|
2207
2211
|
let E = {};
|
|
2208
2212
|
for (let Z in P)
|
|
2209
|
-
Z !== "level" && (E[Z] = Cs(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z]), Z !== "id" && ((h0 = St.value) == null ? void 0 : h0.prop) !== Z && g(P[Z]) ? E[Z] = P[Z] ? (
|
|
2213
|
+
Z !== "level" && (E[Z] = Cs(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z]), Z !== "id" && ((h0 = St.value) == null ? void 0 : h0.prop) !== Z && g(P[Z]) ? E[Z] = P[Z] ? (v0 = Je(P[Z])) == null ? void 0 : v0.format("YYYY-MM-DD HH:mm:ss") : P[Z] : E[Z] = P[Z];
|
|
2210
2214
|
return E;
|
|
2211
2215
|
}), t2(), u2(), document.addEventListener("click", O);
|
|
2212
2216
|
});
|
|
@@ -2220,17 +2224,17 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2220
2224
|
const C = /* @__PURE__ */ new WeakSet(), P = new MutationObserver(Z), E = /* @__PURE__ */ new WeakMap(), J = [];
|
|
2221
2225
|
function h0(e0) {
|
|
2222
2226
|
try {
|
|
2223
|
-
const l0 = e0.getBoundingClientRect(), u0 = e0.clientWidth || l0.width || 1,
|
|
2224
|
-
return K ?
|
|
2227
|
+
const l0 = e0.getBoundingClientRect(), u0 = e0.clientWidth || l0.width || 1, a0 = l0.width / u0 || 1, K = parseFloat(getComputedStyle(e0).zoom || "1");
|
|
2228
|
+
return K ? a0 / K : a0;
|
|
2225
2229
|
} catch {
|
|
2226
2230
|
return 1;
|
|
2227
2231
|
}
|
|
2228
2232
|
}
|
|
2229
|
-
function
|
|
2230
|
-
var
|
|
2233
|
+
function v0(e0) {
|
|
2234
|
+
var a0;
|
|
2231
2235
|
if (!e0 || C.has(e0)) return;
|
|
2232
2236
|
C.add(e0);
|
|
2233
|
-
const l0 = e0.parentElement, u0 = (
|
|
2237
|
+
const l0 = e0.parentElement, u0 = (a0 = e0.closest(".el-scrollbar")) == null ? void 0 : a0.querySelector(".el-scrollbar__wrap");
|
|
2234
2238
|
!l0 || !u0 || e0.addEventListener(
|
|
2235
2239
|
"pointerdown",
|
|
2236
2240
|
(K) => {
|
|
@@ -2240,17 +2244,17 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2240
2244
|
} catch {
|
|
2241
2245
|
}
|
|
2242
2246
|
l0.classList.add("is-dragging");
|
|
2243
|
-
const
|
|
2244
|
-
const K3 = (V0.clientX - M) /
|
|
2247
|
+
const m0 = h0(l0), n0 = l0.clientWidth || 1, S0 = e0.clientWidth || 0, A0 = Math.max(1, (n0 - S0) / m0), k2 = Math.max(1, (u0.scrollWidth || 0) - (u0.clientWidth || 0)), M = K.clientX, o2 = u0.scrollLeft, L0 = k2 / A0, j = (V0) => {
|
|
2248
|
+
const K3 = (V0.clientX - M) / m0;
|
|
2245
2249
|
u0.scrollLeft = o2 + K3 * L0;
|
|
2246
|
-
},
|
|
2250
|
+
}, c0 = () => {
|
|
2247
2251
|
try {
|
|
2248
2252
|
e0.releasePointerCapture && e0.releasePointerCapture(K.pointerId);
|
|
2249
2253
|
} catch {
|
|
2250
2254
|
}
|
|
2251
|
-
e0.removeEventListener("pointermove",
|
|
2255
|
+
e0.removeEventListener("pointermove", j), e0.removeEventListener("pointerup", c0), e0.removeEventListener("pointercancel", c0), l0.classList.remove("is-dragging");
|
|
2252
2256
|
};
|
|
2253
|
-
e0.addEventListener("pointermove",
|
|
2257
|
+
e0.addEventListener("pointermove", j), e0.addEventListener("pointerup", c0), e0.addEventListener("pointercancel", c0);
|
|
2254
2258
|
},
|
|
2255
2259
|
!0
|
|
2256
2260
|
// 捕获阶段,保证我们先手
|
|
@@ -2261,8 +2265,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2261
2265
|
if (!e0.closest(".el-table")) return;
|
|
2262
2266
|
const l0 = e0.querySelector(".el-scrollbar__wrap"), u0 = e0.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
2263
2267
|
if (!l0 || !u0) return;
|
|
2264
|
-
const
|
|
2265
|
-
if (e0.classList.toggle("has-x-scroll", S0), u0.style.display = "", S0 && e0.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(
|
|
2268
|
+
const a0 = l0.querySelector(".el-scrollbar__view") || l0.firstElementChild || l0, K = a0.querySelector("table") || a0.querySelector(".el-table__body") || a0, m0 = K.scrollWidth, n0 = l0.clientWidth, S0 = m0 - n0 > 2;
|
|
2269
|
+
if (e0.classList.toggle("has-x-scroll", S0), u0.style.display = "", S0 && e0.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(v0), !E.has(l0)) {
|
|
2266
2270
|
const A0 = new ResizeObserver(() => {
|
|
2267
2271
|
const k2 = K && K.scrollWidth || l0.scrollWidth, M = l0.clientWidth, o2 = k2 - M > 2;
|
|
2268
2272
|
e0.classList.toggle("has-x-scroll", o2);
|
|
@@ -2311,17 +2315,17 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2311
2315
|
var E;
|
|
2312
2316
|
return (E = P == null ? void 0 : P.label) == null ? void 0 : E.includes("批量");
|
|
2313
2317
|
});
|
|
2314
|
-
}), V = G(0),
|
|
2318
|
+
}), V = G(0), H = (C, P, E) => {
|
|
2315
2319
|
V.value = C == null ? void 0 : C.id;
|
|
2316
2320
|
}, z = (C, P, E) => {
|
|
2317
2321
|
V.value = 0;
|
|
2318
|
-
},
|
|
2322
|
+
}, R = (C) => {
|
|
2319
2323
|
f("selectChange", C);
|
|
2320
2324
|
}, _ = (C, P, E, J) => t0(() => {
|
|
2321
|
-
var
|
|
2322
|
-
let h0 = C != null && C[P == null ? void 0 : P.prop] ? ((Z = (
|
|
2325
|
+
var v0, Z, e0, l0, u0, a0, K, m0, n0, S0;
|
|
2326
|
+
let h0 = C != null && C[P == null ? void 0 : P.prop] ? ((Z = (v0 = C == null ? void 0 : C[P == null ? void 0 : P.prop]) == null ? void 0 : v0[0]) == null ? void 0 : Z.contents) ?? (C == null ? void 0 : C[P == null ? void 0 : P.prop]) : ((l0 = (e0 = C == null ? void 0 : C[E == null ? void 0 : E.prop]) == null ? void 0 : e0[0]) == null ? void 0 : l0.contents) ?? (C == null ? void 0 : C[E == null ? void 0 : E.prop]) ?? ((a0 = (u0 = J == null ? void 0 : J[E == null ? void 0 : E.prop]) == null ? void 0 : u0[0]) == null ? void 0 : a0.contents) ?? (J == null ? void 0 : J[E == null ? void 0 : E.prop]) ?? ((n0 = (m0 = C == null ? void 0 : C[(K = E == null ? void 0 : E.child) == null ? void 0 : K.prop]) == null ? void 0 : m0[0]) == null ? void 0 : n0.contents) ?? (C == null ? void 0 : C[(S0 = E == null ? void 0 : E.child) == null ? void 0 : S0.prop]);
|
|
2323
2327
|
return Array.isArray(h0) && !(h0 != null && h0.every((A0) => typeof A0 == "string" || typeof A0 == "number")) ? "查看" : h0;
|
|
2324
|
-
}),
|
|
2328
|
+
}), B = (C, P, E, J) => {
|
|
2325
2329
|
s.value = void 0;
|
|
2326
2330
|
const h0 = E == null ? void 0 : E.innerText;
|
|
2327
2331
|
Yu(h0) && (l.x = J.clientX, l.y = J.clientY, i.value = !0, s.value = E.innerText, o.value = C);
|
|
@@ -2331,7 +2335,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2331
2335
|
rowData: o.value,
|
|
2332
2336
|
type: "table"
|
|
2333
2337
|
});
|
|
2334
|
-
},
|
|
2338
|
+
}, W = (C) => {
|
|
2335
2339
|
f("buttonClick", C);
|
|
2336
2340
|
};
|
|
2337
2341
|
r2(
|
|
@@ -2339,18 +2343,18 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2339
2343
|
() => {
|
|
2340
2344
|
var C;
|
|
2341
2345
|
a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((P) => {
|
|
2342
|
-
var J, h0,
|
|
2346
|
+
var J, h0, v0;
|
|
2343
2347
|
let E = {};
|
|
2344
2348
|
for (let Z in P)
|
|
2345
|
-
E[Z] = Cs(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z], Z !== "id" && ((h0 = St.value) == null ? void 0 : h0.prop) !== Z && g(P[Z]) && (E[Z] = P[Z] ? (
|
|
2349
|
+
E[Z] = Cs(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z], Z !== "id" && ((h0 = St.value) == null ? void 0 : h0.prop) !== Z && g(P[Z]) && (E[Z] = P[Z] ? (v0 = Je(P[Z])) == null ? void 0 : v0.format("YYYY-MM-DD HH:mm:ss") : P[Z]);
|
|
2346
2350
|
return E;
|
|
2347
2351
|
});
|
|
2348
2352
|
},
|
|
2349
2353
|
{ deep: !0 }
|
|
2350
2354
|
);
|
|
2351
|
-
const
|
|
2355
|
+
const r0 = (C) => us(C), g0 = (C, P, E) => {
|
|
2352
2356
|
f("clickButton", C, P, E);
|
|
2353
|
-
},
|
|
2357
|
+
}, _0 = (C) => {
|
|
2354
2358
|
f("doCurrentChange", C);
|
|
2355
2359
|
}, m = (C, P) => {
|
|
2356
2360
|
f("dbClickRow", C);
|
|
@@ -2373,8 +2377,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2373
2377
|
onMove: (E) => !E.related.classList.contains("is-not-drag"),
|
|
2374
2378
|
onEnd: (E) => {
|
|
2375
2379
|
h.value++;
|
|
2376
|
-
const J = E.oldIndex - 3, h0 = E.newIndex - 3,
|
|
2377
|
-
r.value.splice(h0, 0,
|
|
2380
|
+
const J = E.oldIndex - 3, h0 = E.newIndex - 3, v0 = r.value.splice(J, 1)[0];
|
|
2381
|
+
r.value.splice(h0, 0, v0), t.isMoveColumn && S2(() => {
|
|
2378
2382
|
t2(), u2();
|
|
2379
2383
|
});
|
|
2380
2384
|
}
|
|
@@ -2387,8 +2391,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2387
2391
|
handle: ".custom-drag-icon",
|
|
2388
2392
|
ghostClass: "sortable-ghost",
|
|
2389
2393
|
onEnd: ({ newIndex: E, oldIndex: J }) => {
|
|
2390
|
-
const h0 = [...a.value], [
|
|
2391
|
-
h0.splice(J, 0,
|
|
2394
|
+
const h0 = [...a.value], [v0] = h0.splice(J, 1);
|
|
2395
|
+
h0.splice(J, 0, v0), a.value = h0, S2(() => {
|
|
2392
2396
|
u2();
|
|
2393
2397
|
});
|
|
2394
2398
|
}
|
|
@@ -2397,9 +2401,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2397
2401
|
const E = new FileReader();
|
|
2398
2402
|
E.onloadend = () => P(E.result), E.readAsDataURL(C);
|
|
2399
2403
|
}), Oe = (C, P = "file") => {
|
|
2400
|
-
let E = C.split(","), J = E[0].match(/:(.*?);/)[1], h0 = J.split("/")[1],
|
|
2404
|
+
let E = C.split(","), J = E[0].match(/:(.*?);/)[1], h0 = J.split("/")[1], v0 = atob(E[1]), Z = v0.length, e0 = new Uint8Array(Z);
|
|
2401
2405
|
for (; Z--; )
|
|
2402
|
-
e0[Z] =
|
|
2406
|
+
e0[Z] = v0.charCodeAt(Z);
|
|
2403
2407
|
return new File([e0], `${P}.${h0}`, {
|
|
2404
2408
|
type: J
|
|
2405
2409
|
});
|
|
@@ -2408,11 +2412,11 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2408
2412
|
let E = Oe(P), J = new FormData();
|
|
2409
2413
|
J.append("file", E);
|
|
2410
2414
|
let h0;
|
|
2411
|
-
return await P4(J).then((
|
|
2412
|
-
var Z, e0, l0, u0,
|
|
2415
|
+
return await P4(J).then((v0) => {
|
|
2416
|
+
var Z, e0, l0, u0, a0, K, m0;
|
|
2413
2417
|
h0 = {
|
|
2414
|
-
url: (Z =
|
|
2415
|
-
name: (
|
|
2418
|
+
url: (Z = v0.data.result) == null ? void 0 : Z.url,
|
|
2419
|
+
name: (m0 = (l0 = (e0 = v0.data.result) == null ? void 0 : e0.url) == null ? void 0 : l0.split("/")) == null ? void 0 : m0[((K = (a0 = (u0 = v0.data.result) == null ? void 0 : u0.url) == null ? void 0 : a0.split("/")) == null ? void 0 : K.length) - 1]
|
|
2416
2420
|
};
|
|
2417
2421
|
}), h0;
|
|
2418
2422
|
}, Me = async (C) => {
|
|
@@ -2424,7 +2428,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2424
2428
|
C.preventDefault();
|
|
2425
2429
|
const h0 = Te(J);
|
|
2426
2430
|
if (!h0.length) return;
|
|
2427
|
-
const { rowIndex:
|
|
2431
|
+
const { rowIndex: v0, columnIndex: Z } = u.value || { rowIndex: 0, columnIndex: 0 }, e0 = [];
|
|
2428
2432
|
if (h0 == null || h0.forEach((l0) => {
|
|
2429
2433
|
e0.push(l0.length + Z);
|
|
2430
2434
|
}), (e0 == null ? void 0 : e0.filter((l0) => {
|
|
@@ -2438,10 +2442,10 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2438
2442
|
return;
|
|
2439
2443
|
}
|
|
2440
2444
|
for (let l0 = 0; l0 < h0.length; l0++) {
|
|
2441
|
-
const u0 = h0[l0],
|
|
2442
|
-
for (let
|
|
2443
|
-
const n0 = K[Z +
|
|
2444
|
-
(
|
|
2445
|
+
const u0 = h0[l0], a0 = a.value[v0 + l0], K = Y2(r.value).map((m0) => m0.prop);
|
|
2446
|
+
for (let m0 = 0; m0 < u0.length && Z + m0 < K.length; m0++) {
|
|
2447
|
+
const n0 = K[Z + m0];
|
|
2448
|
+
(a0 == null ? void 0 : a0[n0]) !== void 0 && (a0[n0] = u0[m0] || "");
|
|
2445
2449
|
}
|
|
2446
2450
|
}
|
|
2447
2451
|
} else {
|
|
@@ -2450,7 +2454,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2450
2454
|
const Z = new DOMParser().parseFromString(h0, "text/html"), e0 = Z.querySelectorAll("table");
|
|
2451
2455
|
if ((e0 == null ? void 0 : e0.length) > 0) {
|
|
2452
2456
|
C.preventDefault();
|
|
2453
|
-
const u0 = e0[0].querySelectorAll("tr"),
|
|
2457
|
+
const u0 = e0[0].querySelectorAll("tr"), a0 = [];
|
|
2454
2458
|
for (const n0 of u0) {
|
|
2455
2459
|
const S0 = n0.querySelectorAll("td, th"), A0 = [];
|
|
2456
2460
|
for (const k2 of S0) {
|
|
@@ -2459,10 +2463,10 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2459
2463
|
for (const o2 of M) {
|
|
2460
2464
|
const L0 = o2.getAttribute("src");
|
|
2461
2465
|
if (L0 && L0.startsWith("file:///")) {
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2466
|
+
const j = L0.match(/base64,(.*)/);
|
|
2467
|
+
j && A0.push({
|
|
2464
2468
|
type: "image",
|
|
2465
|
-
content: `data:image/png;base64,${
|
|
2469
|
+
content: `data:image/png;base64,${j[1]}`
|
|
2466
2470
|
});
|
|
2467
2471
|
} else L0 && L0.startsWith("data:") && A0.push({
|
|
2468
2472
|
type: "image",
|
|
@@ -2475,17 +2479,17 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2475
2479
|
content: k2.textContent.trim()
|
|
2476
2480
|
});
|
|
2477
2481
|
}
|
|
2478
|
-
|
|
2482
|
+
a0.push(A0);
|
|
2479
2483
|
}
|
|
2480
|
-
const { rowIndex: K, columnProp:
|
|
2481
|
-
if (Array.isArray(
|
|
2484
|
+
const { rowIndex: K, columnProp: m0 } = u.value || { rowIndex: 0, columnIndex: 0 };
|
|
2485
|
+
if (Array.isArray(a0) && a0.length) {
|
|
2482
2486
|
const n0 = [];
|
|
2483
|
-
|
|
2487
|
+
a0.forEach((A0) => {
|
|
2484
2488
|
if (A0 != null && A0.length) {
|
|
2485
2489
|
const k2 = {}, M = t.columns;
|
|
2486
2490
|
for (let o2 = 0; o2 < (M == null ? void 0 : M.length); o2++) {
|
|
2487
|
-
const L0 = M[o2],
|
|
2488
|
-
k2[
|
|
2491
|
+
const L0 = M[o2], j = L0 == null ? void 0 : L0.prop, c0 = A0 == null ? void 0 : A0[o2], V0 = c0 == null ? void 0 : c0.content;
|
|
2492
|
+
k2[j] = V0;
|
|
2489
2493
|
}
|
|
2490
2494
|
n0.push(k2);
|
|
2491
2495
|
}
|
|
@@ -2497,21 +2501,21 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2497
2501
|
const l0 = Z.querySelectorAll("span");
|
|
2498
2502
|
let u0 = "";
|
|
2499
2503
|
if (l0.length === 0) {
|
|
2500
|
-
const
|
|
2504
|
+
const a0 = (P = C.clipboardData) == null ? void 0 : P.items;
|
|
2501
2505
|
u0 = [];
|
|
2502
|
-
for (const K of
|
|
2506
|
+
for (const K of a0)
|
|
2503
2507
|
if ((K == null ? void 0 : K.type) === "image/png") {
|
|
2504
|
-
const
|
|
2505
|
-
u0.push(
|
|
2508
|
+
const m0 = await De(K == null ? void 0 : K.getAsFile());
|
|
2509
|
+
u0.push(m0);
|
|
2506
2510
|
} else
|
|
2507
2511
|
u0 = C.clipboardData.getData("text/plain");
|
|
2508
2512
|
} else
|
|
2509
|
-
for (const
|
|
2510
|
-
u0 = u0 +
|
|
2513
|
+
for (const a0 of l0)
|
|
2514
|
+
u0 = u0 + a0.textContent.trim();
|
|
2511
2515
|
if (Array.isArray(u0)) {
|
|
2512
2516
|
C.preventDefault();
|
|
2513
|
-
const { rowIndex:
|
|
2514
|
-
n0[
|
|
2517
|
+
const { rowIndex: a0, columnProp: K } = u.value || { rowIndex: 0, columnIndex: 0 }, m0 = {}, n0 = a.value;
|
|
2518
|
+
n0[a0][K] = u0;
|
|
2515
2519
|
}
|
|
2516
2520
|
}
|
|
2517
2521
|
}
|
|
@@ -2532,26 +2536,26 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2532
2536
|
maximumFractionDigits: 2
|
|
2533
2537
|
}), Nr = (C) => {
|
|
2534
2538
|
const { columns: P, data: E } = C, J = [];
|
|
2535
|
-
return P.forEach((h0,
|
|
2539
|
+
return P.forEach((h0, v0) => {
|
|
2536
2540
|
var l0, u0;
|
|
2537
|
-
if (
|
|
2538
|
-
J[
|
|
2541
|
+
if (v0 === 0) {
|
|
2542
|
+
J[v0] = "合计";
|
|
2539
2543
|
return;
|
|
2540
2544
|
}
|
|
2541
|
-
const Z = h0.property, e0 = (u0 = (l0 = t.columns) == null ? void 0 : l0.filter((
|
|
2545
|
+
const Z = h0.property, e0 = (u0 = (l0 = t.columns) == null ? void 0 : l0.filter((a0) => a0 == null ? void 0 : a0.showSummary)) == null ? void 0 : u0.map((a0) => a0.prop);
|
|
2542
2546
|
if (e0 != null && e0.includes(Z)) {
|
|
2543
|
-
const
|
|
2544
|
-
if (
|
|
2545
|
-
J[
|
|
2547
|
+
const a0 = E == null ? void 0 : E.map((K) => Number(K[Z]));
|
|
2548
|
+
if (a0.every((K) => isNaN(K)))
|
|
2549
|
+
J[v0] = "N/A";
|
|
2546
2550
|
else {
|
|
2547
|
-
const K =
|
|
2551
|
+
const K = a0.reduce((m0, n0) => {
|
|
2548
2552
|
const S0 = Number(n0);
|
|
2549
|
-
return isNaN(S0) ?
|
|
2553
|
+
return isNaN(S0) ? m0 : m0 + S0;
|
|
2550
2554
|
}, 0);
|
|
2551
|
-
J[
|
|
2555
|
+
J[v0] = N2(K), ["price", "sales", "cost", "profit"].includes(Z) && (J[v0] = "¥" + J[v0]);
|
|
2552
2556
|
}
|
|
2553
2557
|
} else
|
|
2554
|
-
J[
|
|
2558
|
+
J[v0] = "";
|
|
2555
2559
|
}), J;
|
|
2556
2560
|
};
|
|
2557
2561
|
r2(
|
|
@@ -2568,8 +2572,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2568
2572
|
return C || ((E = r.value) == null ? void 0 : E[0]);
|
|
2569
2573
|
});
|
|
2570
2574
|
return (C, P) => {
|
|
2571
|
-
var Z, e0, l0, u0,
|
|
2572
|
-
const E = X("el-table-column"), J = X("svg-icon"), h0 = X("el-table"),
|
|
2575
|
+
var Z, e0, l0, u0, a0;
|
|
2576
|
+
const E = X("el-table-column"), J = X("svg-icon"), h0 = X("el-table"), v0 = X("el-pagination");
|
|
2573
2577
|
return b(), A("div", {
|
|
2574
2578
|
class: "table-content-show",
|
|
2575
2579
|
ref_key: "tableOuterRef",
|
|
@@ -2577,7 +2581,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2577
2581
|
}, [
|
|
2578
2582
|
Q(Ru, {
|
|
2579
2583
|
buttons: x.value,
|
|
2580
|
-
onButtonClick:
|
|
2584
|
+
onButtonClick: W,
|
|
2581
2585
|
columns: r.value
|
|
2582
2586
|
}, {
|
|
2583
2587
|
headerButton: I(() => [
|
|
@@ -2590,16 +2594,16 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2590
2594
|
}, 8, ["buttons", "columns"]),
|
|
2591
2595
|
f0(C.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
|
|
2592
2596
|
n.isCardViewport ? (b(), A("div", sf, [
|
|
2593
|
-
(b(!0), A(
|
|
2597
|
+
(b(!0), A(y0, null, C0(a.value, (K) => (b(), $(Fu, {
|
|
2594
2598
|
key: K == null ? void 0 : K.id,
|
|
2595
2599
|
showTag: !1
|
|
2596
2600
|
}, {
|
|
2597
2601
|
header: I(() => {
|
|
2598
|
-
var
|
|
2602
|
+
var m0, n0;
|
|
2599
2603
|
return [
|
|
2600
2604
|
o0("div", of, [
|
|
2601
2605
|
o0("span", {
|
|
2602
|
-
title: K == null ? void 0 : K[(
|
|
2606
|
+
title: K == null ? void 0 : K[(m0 = St.value) == null ? void 0 : m0.prop]
|
|
2603
2607
|
}, W0(K[(n0 = St.value) == null ? void 0 : n0.prop]), 9, lf)
|
|
2604
2608
|
])
|
|
2605
2609
|
];
|
|
@@ -2608,9 +2612,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2608
2612
|
E2("已完成")
|
|
2609
2613
|
])),
|
|
2610
2614
|
content: I(() => {
|
|
2611
|
-
var
|
|
2615
|
+
var m0;
|
|
2612
2616
|
return [
|
|
2613
|
-
(b(!0), A(
|
|
2617
|
+
(b(!0), A(y0, null, C0((m0 = r.value) == null ? void 0 : m0.filter((n0) => {
|
|
2614
2618
|
var S0;
|
|
2615
2619
|
return (n0 == null ? void 0 : n0.label) !== "操作" && (n0 == null ? void 0 : n0.prop) !== ((S0 = St.value) == null ? void 0 : S0.prop);
|
|
2616
2620
|
}), (n0) => (b(), A("div", {
|
|
@@ -2630,18 +2634,18 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2630
2634
|
];
|
|
2631
2635
|
}),
|
|
2632
2636
|
footer: I(() => {
|
|
2633
|
-
var
|
|
2637
|
+
var m0, n0;
|
|
2634
2638
|
return [
|
|
2635
2639
|
o0("div", cf, [
|
|
2636
|
-
(
|
|
2640
|
+
(m0 = n.rowButton) != null && m0.find((S0) => (S0 == null ? void 0 : S0.label) === "编辑") ? (b(), $(J, {
|
|
2637
2641
|
key: 0,
|
|
2638
|
-
onClick: (S0) =>
|
|
2642
|
+
onClick: (S0) => g0("编辑", K, { extra: { label: "编辑" } }),
|
|
2639
2643
|
name: "card-edit",
|
|
2640
2644
|
style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
|
|
2641
2645
|
}, null, 8, ["onClick"])) : i0("", !0),
|
|
2642
|
-
(n0 = n.rowButton) != null && n0.find((S0) => (S0 == null ? void 0 : S0.label) === "删除") ? (b(),
|
|
2646
|
+
(n0 = n.rowButton) != null && n0.find((S0) => (S0 == null ? void 0 : S0.label) === "删除") ? (b(), $(J, {
|
|
2643
2647
|
key: 1,
|
|
2644
|
-
onClick: (S0) =>
|
|
2648
|
+
onClick: (S0) => g0("删除", K, { extra: { label: "删除" } }),
|
|
2645
2649
|
name: "card-delete",
|
|
2646
2650
|
style: { width: "15px", height: "15px", color: "#ff0000" }
|
|
2647
2651
|
}, null, 8, ["onClick"])) : i0("", !0)
|
|
@@ -2650,7 +2654,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2650
2654
|
}),
|
|
2651
2655
|
_: 2
|
|
2652
2656
|
}, 1024))), 128))
|
|
2653
|
-
])) : (b(),
|
|
2657
|
+
])) : (b(), $(h0, {
|
|
2654
2658
|
border: !1,
|
|
2655
2659
|
"highlight-current-row": "",
|
|
2656
2660
|
class: "table-wrap",
|
|
@@ -2664,14 +2668,14 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2664
2668
|
ref_key: "tableRef",
|
|
2665
2669
|
ref: c,
|
|
2666
2670
|
"empty-text": "暂无数据",
|
|
2667
|
-
onCellContextmenu:
|
|
2671
|
+
onCellContextmenu: B,
|
|
2668
2672
|
onPaste: Me,
|
|
2669
|
-
onSelectionChange:
|
|
2673
|
+
onSelectionChange: R,
|
|
2670
2674
|
onRowDblclick: m,
|
|
2671
2675
|
key: h.value,
|
|
2672
2676
|
"row-class-name": Pe,
|
|
2673
2677
|
"header-cell-class-name": d2,
|
|
2674
|
-
onCellMouseEnter:
|
|
2678
|
+
onCellMouseEnter: H,
|
|
2675
2679
|
onCellMouseLeave: z,
|
|
2676
2680
|
onContextmenu: P[0] || (P[0] = T4(() => {
|
|
2677
2681
|
}, ["prevent"])),
|
|
@@ -2680,12 +2684,12 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2680
2684
|
"default-sort": n.defaultSort
|
|
2681
2685
|
}, {
|
|
2682
2686
|
default: I(() => {
|
|
2683
|
-
var K,
|
|
2687
|
+
var K, m0, n0, S0, A0, k2;
|
|
2684
2688
|
return [
|
|
2685
|
-
((K = n.columns) == null ? void 0 : K.length) > 0 && n.allowSelect ? (b(),
|
|
2689
|
+
((K = n.columns) == null ? void 0 : K.length) > 0 && n.allowSelect ? (b(), $(E, {
|
|
2686
2690
|
key: 0,
|
|
2687
2691
|
type: "selection",
|
|
2688
|
-
width: (
|
|
2692
|
+
width: (m0 = n.columns) != null && m0.some((M) => M == null ? void 0 : M.showSummary) ? 55 : 38,
|
|
2689
2693
|
fixed: ""
|
|
2690
2694
|
}, null, 8, ["width"])) : i0("", !0),
|
|
2691
2695
|
Q(E, {
|
|
@@ -2704,7 +2708,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2704
2708
|
]),
|
|
2705
2709
|
_: 1
|
|
2706
2710
|
}),
|
|
2707
|
-
n.showIndex && !((n0 = n.tableData) != null && n0.some((M) => M == null ? void 0 : M.children)) && ((S0 = n.columns) == null ? void 0 : S0.length) > 0 ? (b(),
|
|
2711
|
+
n.showIndex && !((n0 = n.tableData) != null && n0.some((M) => M == null ? void 0 : M.children)) && ((S0 = n.columns) == null ? void 0 : S0.length) > 0 ? (b(), $(E, {
|
|
2708
2712
|
key: 1,
|
|
2709
2713
|
type: "index",
|
|
2710
2714
|
label: "序号",
|
|
@@ -2713,9 +2717,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2713
2717
|
n.isEditViewport ? {
|
|
2714
2718
|
name: "default",
|
|
2715
2719
|
fn: I(({ row: M, column: o2, $index: L0 }) => {
|
|
2716
|
-
var
|
|
2720
|
+
var j, c0;
|
|
2717
2721
|
return [
|
|
2718
|
-
L0 === ((
|
|
2722
|
+
L0 === ((j = a.value) == null ? void 0 : j.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? f0(C.$slots, "rowCreate", {
|
|
2719
2723
|
key: 0,
|
|
2720
2724
|
row: M,
|
|
2721
2725
|
index: L0 + 1
|
|
@@ -2725,7 +2729,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2725
2729
|
key: "0"
|
|
2726
2730
|
} : void 0
|
|
2727
2731
|
]), 1024)) : i0("", !0),
|
|
2728
|
-
(A0 = n.tableData) != null && A0.some((M) => M == null ? void 0 : M.children) && ((k2 = n.columns) == null ? void 0 : k2.length) > 0 ? (b(),
|
|
2732
|
+
(A0 = n.tableData) != null && A0.some((M) => M == null ? void 0 : M.children) && ((k2 = n.columns) == null ? void 0 : k2.length) > 0 ? (b(), $(E, {
|
|
2729
2733
|
key: 2,
|
|
2730
2734
|
type: "default",
|
|
2731
2735
|
"min-width": 15,
|
|
@@ -2734,9 +2738,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2734
2738
|
n.isEditViewport ? {
|
|
2735
2739
|
name: "default",
|
|
2736
2740
|
fn: I(({ row: M, column: o2, $index: L0 }) => {
|
|
2737
|
-
var
|
|
2741
|
+
var j, c0;
|
|
2738
2742
|
return [
|
|
2739
|
-
L0 === ((
|
|
2743
|
+
L0 === ((j = a.value) == null ? void 0 : j.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? f0(C.$slots, "rowCreate", {
|
|
2740
2744
|
key: 0,
|
|
2741
2745
|
row: M,
|
|
2742
2746
|
index: L0 + 1
|
|
@@ -2746,10 +2750,10 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2746
2750
|
key: "0"
|
|
2747
2751
|
} : void 0
|
|
2748
2752
|
]), 1024)) : i0("", !0),
|
|
2749
|
-
(b(!0), A(
|
|
2753
|
+
(b(!0), A(y0, null, C0(r.value, (M, o2) => {
|
|
2750
2754
|
var L0;
|
|
2751
|
-
return b(), A(
|
|
2752
|
-
(L0 = n.checkedColumns) != null && L0.includes(M == null ? void 0 : M.label) ? (b(),
|
|
2755
|
+
return b(), A(y0, null, [
|
|
2756
|
+
(L0 = n.checkedColumns) != null && L0.includes(M == null ? void 0 : M.label) ? (b(), $(ju, {
|
|
2753
2757
|
key: 0,
|
|
2754
2758
|
tableData: a.value,
|
|
2755
2759
|
column: M,
|
|
@@ -2760,7 +2764,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2760
2764
|
operateHeader: I(() => [
|
|
2761
2765
|
f0(C.$slots, "operateCol", {}, void 0, !0)
|
|
2762
2766
|
]),
|
|
2763
|
-
content: I(({ row:
|
|
2767
|
+
content: I(({ row: j, item: c0, slotData: V0, scope: K3, column: Ye, columnProp: Gr }) => {
|
|
2764
2768
|
var fs, ps, gs;
|
|
2765
2769
|
return [
|
|
2766
2770
|
M != null && M.isExistChild ? (b(), A("span", Xu, [
|
|
@@ -2770,41 +2774,41 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2770
2774
|
style: { width: "16px", height: "16px", color: "var(--vertical-menuitem-active-bg)", cursor: "pointer" },
|
|
2771
2775
|
onClick: (F0) => {
|
|
2772
2776
|
var Ct;
|
|
2773
|
-
return $0(
|
|
2774
|
-
data: _(
|
|
2777
|
+
return $0(j != null && j[M == null ? void 0 : M.prop] ? j == null ? void 0 : j[M == null ? void 0 : M.prop] : (j == null ? void 0 : j[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (j == null ? void 0 : j[(Ct = c0 == null ? void 0 : c0.child) == null ? void 0 : Ct.prop]), c0 == null ? void 0 : c0.prop, j ?? V0, {
|
|
2778
|
+
data: _(j, M, c0, V0).value,
|
|
2775
2779
|
isMainKey: M == null ? void 0 : M.isMainKey,
|
|
2776
2780
|
isExistChild: M == null ? void 0 : M.isExistChild,
|
|
2777
2781
|
columnType: M,
|
|
2778
|
-
rowContent:
|
|
2782
|
+
rowContent: j
|
|
2779
2783
|
});
|
|
2780
2784
|
}
|
|
2781
2785
|
}, null, 8, ["onClick"])
|
|
2782
2786
|
])
|
|
2783
2787
|
])) : i0("", !0),
|
|
2784
|
-
((M == null ? void 0 : M.type) ?? "text") === "text" && ((
|
|
2788
|
+
((M == null ? void 0 : M.type) ?? "text") === "text" && ((j == null ? void 0 : j.tableEditType) ?? "text") === "text" && !(M != null && M.isExistChild) ? (b(), A("span", {
|
|
2785
2789
|
key: 1,
|
|
2786
2790
|
class: "table-content",
|
|
2787
2791
|
style: X0({ cursor: M != null && M.isMainKey ? "pointer" : "default", color: M != null && M.isMainKey ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: M != null && M.isMainKey ? "underline" : "" }),
|
|
2788
2792
|
onClick: (F0) => {
|
|
2789
2793
|
var Ct;
|
|
2790
|
-
return $0(
|
|
2791
|
-
data: _(
|
|
2794
|
+
return $0(j != null && j[M == null ? void 0 : M.prop] ? j == null ? void 0 : j[M == null ? void 0 : M.prop] : (j == null ? void 0 : j[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (j == null ? void 0 : j[(Ct = c0 == null ? void 0 : c0.child) == null ? void 0 : Ct.prop]), c0 == null ? void 0 : c0.prop, j ?? V0, {
|
|
2795
|
+
data: _(j, M, c0, V0).value,
|
|
2792
2796
|
isMainKey: M == null ? void 0 : M.isMainKey
|
|
2793
2797
|
});
|
|
2794
2798
|
}
|
|
2795
2799
|
}, [
|
|
2796
|
-
C.$slots.content ? (b(), A(
|
|
2797
|
-
((fs = n.columns) == null ? void 0 : fs.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((
|
|
2800
|
+
C.$slots.content ? (b(), A(y0, { key: 0 }, [
|
|
2801
|
+
((fs = n.columns) == null ? void 0 : fs.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((j == null ? void 0 : j.level) ?? -1) ? (b(), A("div", Zu, [
|
|
2798
2802
|
f0(C.$slots, "content", {
|
|
2799
|
-
row:
|
|
2803
|
+
row: j,
|
|
2800
2804
|
column: Gr ?? M,
|
|
2801
2805
|
colIndex: o2,
|
|
2802
|
-
item:
|
|
2806
|
+
item: c0,
|
|
2803
2807
|
slotData: V0
|
|
2804
2808
|
}, void 0, !0)
|
|
2805
2809
|
])) : i0("", !0)
|
|
2806
|
-
], 64)) : ((ps = n.columns) == null ? void 0 : ps.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((
|
|
2807
|
-
E2(W0(_(
|
|
2810
|
+
], 64)) : ((ps = n.columns) == null ? void 0 : ps.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((j == null ? void 0 : j.level) ?? -1) ? (b(), A(y0, { key: 1 }, [
|
|
2811
|
+
E2(W0(_(j, M, c0, V0)), 1)
|
|
2808
2812
|
], 64)) : i0("", !0)
|
|
2809
2813
|
], 12, Ju)) : i0("", !0),
|
|
2810
2814
|
((M == null ? void 0 : M.type) ?? "text") === "operate" && !(M != null && M.isExistChild) ? (b(), A("span", {
|
|
@@ -2814,27 +2818,27 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2814
2818
|
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : M == null ? void 0 : M.align
|
|
2815
2819
|
})
|
|
2816
2820
|
}, [
|
|
2817
|
-
f0(C.$slots, "actions", { item:
|
|
2821
|
+
f0(C.$slots, "actions", { item: j }, void 0, !0),
|
|
2818
2822
|
n.isShowEdit ? (b(), A("span", {
|
|
2819
2823
|
key: 0,
|
|
2820
|
-
onClick: (F0) => k0(
|
|
2824
|
+
onClick: (F0) => k0(j),
|
|
2821
2825
|
class: "blue-table-operate table-operate-content"
|
|
2822
2826
|
}, "编辑", 8, ef)) : i0("", !0),
|
|
2823
2827
|
n.isShowDelete ? (b(), A("span", {
|
|
2824
2828
|
key: 1,
|
|
2825
|
-
onClick: (F0) => I0(
|
|
2829
|
+
onClick: (F0) => I0(j),
|
|
2826
2830
|
class: "red-table-operate table-operate-content"
|
|
2827
2831
|
}, "删除", 8, tf)) : i0("", !0)
|
|
2828
2832
|
], 4)) : i0("", !0),
|
|
2829
|
-
((M == null ? void 0 : M.type) ?? "text") === "edit" && ((
|
|
2830
|
-
(b(),
|
|
2831
|
-
modelValue:
|
|
2832
|
-
"onUpdate:modelValue": (F0) =>
|
|
2833
|
+
((M == null ? void 0 : M.type) ?? "text") === "edit" && ((j == null ? void 0 : j.tableEditType) ?? "text") !== "edit" || ((M == null ? void 0 : M.type) ?? "text") === "text" && ((j == null ? void 0 : j.tableEditType) ?? "text") === "edit" && !(M != null && M.isExistChild) ? (b(), A("span", nf, [
|
|
2834
|
+
(b(), $(Ft(r0(j != null && j[M == null ? void 0 : M.prop] && Array.isArray(j[M.prop]) && ((gs = j[M.prop]) != null && gs.every((F0) => typeof F0 == "Object")) ? "Upload" : (M == null ? void 0 : M.columnType) === "" || !(M != null && M.columnType) ? "Input" : M == null ? void 0 : M.columnType)), {
|
|
2835
|
+
modelValue: j[Ye == null ? void 0 : Ye.property],
|
|
2836
|
+
"onUpdate:modelValue": (F0) => j[Ye == null ? void 0 : Ye.property] = F0,
|
|
2833
2837
|
style: { height: "100%" },
|
|
2834
2838
|
content: (M == null ? void 0 : M.contents) ?? [],
|
|
2835
2839
|
optionUrl: M == null ? void 0 : M.optionUrl,
|
|
2836
2840
|
onFocus: (F0) => ze(K3),
|
|
2837
|
-
onChange: (F0) => Ae(F0,
|
|
2841
|
+
onChange: (F0) => Ae(F0, j, M)
|
|
2838
2842
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "onFocus", "onChange"]))
|
|
2839
2843
|
])) : i0("", !0)
|
|
2840
2844
|
];
|
|
@@ -2853,15 +2857,15 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2853
2857
|
buttons: S.value,
|
|
2854
2858
|
columns: r.value
|
|
2855
2859
|
}, void 0, !0),
|
|
2856
|
-
t != null && t.isShowPagination && n.tableData.length > 0 ? (b(),
|
|
2860
|
+
t != null && t.isShowPagination && n.tableData.length > 0 ? (b(), $(v0, {
|
|
2857
2861
|
key: 1,
|
|
2858
2862
|
onSizeChange: B0,
|
|
2859
|
-
onCurrentChange:
|
|
2863
|
+
onCurrentChange: _0,
|
|
2860
2864
|
"current-page": ((e0 = n.pageObj) == null ? void 0 : e0.currentPage) ?? 1,
|
|
2861
2865
|
"page-sizes": (l0 = n.pageObj) == null ? void 0 : l0.pageSizes,
|
|
2862
2866
|
"page-size": ((u0 = n.pageObj) == null ? void 0 : u0.pageSize) ?? 10,
|
|
2863
2867
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
2864
|
-
total: ((
|
|
2868
|
+
total: ((a0 = n.pageObj) == null ? void 0 : a0.total) ?? 0
|
|
2865
2869
|
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : i0("", !0)
|
|
2866
2870
|
]),
|
|
2867
2871
|
dt(Q(Lu, {
|
|
@@ -2922,9 +2926,9 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2922
2926
|
};
|
|
2923
2927
|
return (l, r) => {
|
|
2924
2928
|
var a, h, c, d, u, f, p;
|
|
2925
|
-
return b(), A(
|
|
2929
|
+
return b(), A(y0, null, [
|
|
2926
2930
|
f0(l.$slots, `${(a = t == null ? void 0 : t.content) == null ? void 0 : a.value}_tableHeader`),
|
|
2927
|
-
(b(),
|
|
2931
|
+
(b(), $(ff, {
|
|
2928
2932
|
columns: ((h = t == null ? void 0 : t.content) == null ? void 0 : h.columns) ?? [],
|
|
2929
2933
|
tableData: i.value ?? [],
|
|
2930
2934
|
currentPage: (c = t == null ? void 0 : t.content) == null ? void 0 : c.currentPage,
|
|
@@ -2971,7 +2975,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
2971
2975
|
};
|
|
2972
2976
|
return (a, h) => {
|
|
2973
2977
|
const c = X("el-cascader");
|
|
2974
|
-
return b(),
|
|
2978
|
+
return b(), $(c, {
|
|
2975
2979
|
modelValue: i.value,
|
|
2976
2980
|
"onUpdate:modelValue": h[0] || (h[0] = (d) => i.value = d),
|
|
2977
2981
|
clearable: "",
|
|
@@ -3001,7 +3005,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3001
3005
|
const e = n, t = G(e.value);
|
|
3002
3006
|
return (i, s) => {
|
|
3003
3007
|
const o = X("el-option"), l = X("el-select");
|
|
3004
|
-
return b(),
|
|
3008
|
+
return b(), $(l, {
|
|
3005
3009
|
modelValue: t.value,
|
|
3006
3010
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
|
|
3007
3011
|
filterable: "",
|
|
@@ -3011,7 +3015,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3011
3015
|
style: { width: "100%" }
|
|
3012
3016
|
}, {
|
|
3013
3017
|
default: I(() => [
|
|
3014
|
-
(b(!0), A(
|
|
3018
|
+
(b(!0), A(y0, null, C0(e == null ? void 0 : e.content, (r) => (b(), $(o, {
|
|
3015
3019
|
key: r.value,
|
|
3016
3020
|
label: r.label,
|
|
3017
3021
|
value: r.value
|
|
@@ -3042,8 +3046,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3042
3046
|
return re(() => {
|
|
3043
3047
|
}), (l, r) => {
|
|
3044
3048
|
const a = X("MenuItem", !0), h = X("el-sub-menu"), c = X("el-menu-item");
|
|
3045
|
-
return b(!0), A(
|
|
3046
|
-
d.show && d.children && d.children.length > 0 ? (b(),
|
|
3049
|
+
return b(!0), A(y0, null, C0(n.menuList, (d) => (b(), A(y0, null, [
|
|
3050
|
+
d.show && d.children && d.children.length > 0 ? (b(), $(h, {
|
|
3047
3051
|
index: d.path,
|
|
3048
3052
|
key: d.path
|
|
3049
3053
|
}, {
|
|
@@ -3070,7 +3074,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3070
3074
|
]), 1032, ["menuList"])
|
|
3071
3075
|
]),
|
|
3072
3076
|
_: 2
|
|
3073
|
-
}, 1032, ["index"])) : d.show ? (b(),
|
|
3077
|
+
}, 1032, ["index"])) : d.show ? (b(), $(c, {
|
|
3074
3078
|
index: d.path,
|
|
3075
3079
|
key: d.path,
|
|
3076
3080
|
onClick: (u) => i(d)
|
|
@@ -3114,7 +3118,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3114
3118
|
}, f = t0(() => r.value ? (a == null ? void 0 : a.mode) === "vertical" ? r.value : o.value : (a == null ? void 0 : a.mode) === "vertical" ? i.value : o.value), p = t0(() => s.value);
|
|
3115
3119
|
return (g, v) => {
|
|
3116
3120
|
const w = X("el-sub-menu"), y = X("el-menu-item"), D = X("el-menu");
|
|
3117
|
-
return b(),
|
|
3121
|
+
return b(), $(D, {
|
|
3118
3122
|
class: "menu-wrap",
|
|
3119
3123
|
mode: n.mode,
|
|
3120
3124
|
"default-active": f.value,
|
|
@@ -3128,8 +3132,8 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3128
3132
|
onClose: u
|
|
3129
3133
|
}, {
|
|
3130
3134
|
default: I(() => [
|
|
3131
|
-
(b(!0), A(
|
|
3132
|
-
k.show && k.children && k.children.length > 0 ? (b(),
|
|
3135
|
+
(b(!0), A(y0, null, C0(n.menuList, (k) => (b(), A(y0, null, [
|
|
3136
|
+
k.show && k.children && k.children.length > 0 ? (b(), $(w, {
|
|
3133
3137
|
index: k.path,
|
|
3134
3138
|
key: k.path,
|
|
3135
3139
|
style: X0(k.style)
|
|
@@ -3155,7 +3159,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3155
3159
|
]), 1032, ["menuList"])
|
|
3156
3160
|
]),
|
|
3157
3161
|
_: 2
|
|
3158
|
-
}, 1032, ["index", "style"])) : k.show ? (b(),
|
|
3162
|
+
}, 1032, ["index", "style"])) : k.show ? (b(), $(y, {
|
|
3159
3163
|
index: k.path,
|
|
3160
3164
|
key: k.path,
|
|
3161
3165
|
style: X0(k.style),
|
|
@@ -3198,7 +3202,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3198
3202
|
const t = G(n.value);
|
|
3199
3203
|
return (i, s) => {
|
|
3200
3204
|
const o = X("el-date-picker");
|
|
3201
|
-
return b(),
|
|
3205
|
+
return b(), $(o, {
|
|
3202
3206
|
modelValue: t.value,
|
|
3203
3207
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3204
3208
|
type: "date",
|
|
@@ -3225,7 +3229,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3225
3229
|
const t = G(n.value);
|
|
3226
3230
|
return (i, s) => {
|
|
3227
3231
|
const o = X("el-date-picker");
|
|
3228
|
-
return b(),
|
|
3232
|
+
return b(), $(o, {
|
|
3229
3233
|
modelValue: t.value,
|
|
3230
3234
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3231
3235
|
type: "datetime",
|
|
@@ -3252,7 +3256,7 @@ const Lu = /* @__PURE__ */ P0(Eu, [["render", Bu]]), Hu = { class: "extra-button
|
|
|
3252
3256
|
const e = n, t = G(e.value);
|
|
3253
3257
|
return (i, s) => {
|
|
3254
3258
|
const o = X("el-input");
|
|
3255
|
-
return b(),
|
|
3259
|
+
return b(), $(o, {
|
|
3256
3260
|
modelValue: t.value,
|
|
3257
3261
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3258
3262
|
type: "textarea",
|
|
@@ -3384,7 +3388,7 @@ const Cf = { class: "docx-renderer" }, kf = {
|
|
|
3384
3388
|
stripe: ""
|
|
3385
3389
|
}, {
|
|
3386
3390
|
default: I(() => [
|
|
3387
|
-
(b(!0), A(
|
|
3391
|
+
(b(!0), A(y0, null, C0(l.value, (v) => (b(), $(u, {
|
|
3388
3392
|
key: v,
|
|
3389
3393
|
prop: v,
|
|
3390
3394
|
label: v
|
|
@@ -3492,7 +3496,7 @@ function $4(n) {
|
|
|
3492
3496
|
function Ts(n) {
|
|
3493
3497
|
return n < 65536 ? 1 : 2;
|
|
3494
3498
|
}
|
|
3495
|
-
class
|
|
3499
|
+
class b0 {
|
|
3496
3500
|
/**
|
|
3497
3501
|
Get the line description around the given position.
|
|
3498
3502
|
*/
|
|
@@ -3624,10 +3628,10 @@ class x0 {
|
|
|
3624
3628
|
static of(e) {
|
|
3625
3629
|
if (e.length == 0)
|
|
3626
3630
|
throw new RangeError("A document must have at least one line");
|
|
3627
|
-
return e.length == 1 && !e[0] ?
|
|
3631
|
+
return e.length == 1 && !e[0] ? b0.empty : e.length <= 32 ? new H0(e) : U2.from(H0.split(e, []));
|
|
3628
3632
|
}
|
|
3629
3633
|
}
|
|
3630
|
-
class H0 extends
|
|
3634
|
+
class H0 extends b0 {
|
|
3631
3635
|
constructor(e, t = Gf(e)) {
|
|
3632
3636
|
super(), this.text = e, this.length = t;
|
|
3633
3637
|
}
|
|
@@ -3689,7 +3693,7 @@ class H0 extends x0 {
|
|
|
3689
3693
|
return s > -1 && t.push(new H0(i, s)), t;
|
|
3690
3694
|
}
|
|
3691
3695
|
}
|
|
3692
|
-
class U2 extends
|
|
3696
|
+
class U2 extends b0 {
|
|
3693
3697
|
constructor(e, t) {
|
|
3694
3698
|
super(), this.children = e, this.length = t, this.lines = 0;
|
|
3695
3699
|
for (let i of e)
|
|
@@ -3786,7 +3790,7 @@ class U2 extends x0 {
|
|
|
3786
3790
|
return u(), r.length == 1 ? r[0] : new U2(r, t);
|
|
3787
3791
|
}
|
|
3788
3792
|
}
|
|
3789
|
-
|
|
3793
|
+
b0.empty = /* @__PURE__ */ new H0([""], 0);
|
|
3790
3794
|
function Gf(n) {
|
|
3791
3795
|
let e = -1;
|
|
3792
3796
|
for (let t of n)
|
|
@@ -3866,7 +3870,7 @@ class W4 {
|
|
|
3866
3870
|
return !1;
|
|
3867
3871
|
}
|
|
3868
3872
|
}
|
|
3869
|
-
typeof Symbol < "u" && (
|
|
3873
|
+
typeof Symbol < "u" && (b0.prototype[Symbol.iterator] = function() {
|
|
3870
3874
|
return this.iter();
|
|
3871
3875
|
}, It.prototype[Symbol.iterator] = j4.prototype[Symbol.iterator] = W4.prototype[Symbol.iterator] = function() {
|
|
3872
3876
|
return this;
|
|
@@ -4104,8 +4108,8 @@ class j0 extends Q2 {
|
|
|
4104
4108
|
t[s] = r, t[s + 1] = l;
|
|
4105
4109
|
let a = s >> 1;
|
|
4106
4110
|
for (; i.length < a; )
|
|
4107
|
-
i.push(
|
|
4108
|
-
i.push(l ? e.slice(o, o + l) :
|
|
4111
|
+
i.push(b0.empty);
|
|
4112
|
+
i.push(l ? e.slice(o, o + l) : b0.empty);
|
|
4109
4113
|
}
|
|
4110
4114
|
o += l;
|
|
4111
4115
|
}
|
|
@@ -4219,7 +4223,7 @@ class j0 extends Q2 {
|
|
|
4219
4223
|
let { from: d, to: u = d, insert: f } = c;
|
|
4220
4224
|
if (d > u || d < 0 || u > t)
|
|
4221
4225
|
throw new RangeError(`Invalid change range ${d} to ${u} (in doc of length ${t})`);
|
|
4222
|
-
let p = f ? typeof f == "string" ?
|
|
4226
|
+
let p = f ? typeof f == "string" ? b0.of(f.split(i || Ti)) : f : b0.empty, g = p.length;
|
|
4223
4227
|
if (d == u && g == 0)
|
|
4224
4228
|
return;
|
|
4225
4229
|
d < l && a(), d > l && i2(s, d - l, -1), i2(s, u - d, g), ue(o, s, p), l = u;
|
|
@@ -4252,8 +4256,8 @@ class j0 extends Q2 {
|
|
|
4252
4256
|
t.push(o[0], 0);
|
|
4253
4257
|
else {
|
|
4254
4258
|
for (; i.length < s; )
|
|
4255
|
-
i.push(
|
|
4256
|
-
i[s] =
|
|
4259
|
+
i.push(b0.empty);
|
|
4260
|
+
i[s] = b0.of(o.slice(1)), t.push(o[0], i[s].length);
|
|
4257
4261
|
}
|
|
4258
4262
|
}
|
|
4259
4263
|
}
|
|
@@ -4280,7 +4284,7 @@ function ue(n, e, t) {
|
|
|
4280
4284
|
n[n.length - 1] = n[n.length - 1].append(t);
|
|
4281
4285
|
else {
|
|
4282
4286
|
for (; n.length < i; )
|
|
4283
|
-
n.push(
|
|
4287
|
+
n.push(b0.empty);
|
|
4284
4288
|
n.push(t);
|
|
4285
4289
|
}
|
|
4286
4290
|
}
|
|
@@ -4291,7 +4295,7 @@ function zi(n, e, t) {
|
|
|
4291
4295
|
if (a < 0)
|
|
4292
4296
|
s += r, o += r;
|
|
4293
4297
|
else {
|
|
4294
|
-
let h = s, c = o, d =
|
|
4298
|
+
let h = s, c = o, d = b0.empty;
|
|
4295
4299
|
for (; h += r, c += a, a && i && (d = d.append(i[l - 2 >> 1])), !(t || l == n.sections.length || n.sections[l + 1] < 0); )
|
|
4296
4300
|
r = n.sections[l++], a = n.sections[l++];
|
|
4297
4301
|
e(s, h, o, c, d), s = h, o = c;
|
|
@@ -4370,11 +4374,11 @@ class qt {
|
|
|
4370
4374
|
}
|
|
4371
4375
|
get text() {
|
|
4372
4376
|
let { inserted: e } = this.set, t = this.i - 2 >> 1;
|
|
4373
|
-
return t >= e.length ?
|
|
4377
|
+
return t >= e.length ? b0.empty : e[t];
|
|
4374
4378
|
}
|
|
4375
4379
|
textBit(e) {
|
|
4376
4380
|
let { inserted: t } = this.set, i = this.i - 2 >> 1;
|
|
4377
|
-
return i >= t.length && !e ?
|
|
4381
|
+
return i >= t.length && !e ? b0.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
|
|
4378
4382
|
}
|
|
4379
4383
|
forward(e) {
|
|
4380
4384
|
e == this.len ? this.next() : (this.len -= e, this.off += e);
|
|
@@ -5231,7 +5235,7 @@ function tp(n) {
|
|
|
5231
5235
|
return E0.Other;
|
|
5232
5236
|
};
|
|
5233
5237
|
}
|
|
5234
|
-
class
|
|
5238
|
+
class w0 {
|
|
5235
5239
|
constructor(e, t, i, s, o, l) {
|
|
5236
5240
|
this.config = e, this.doc = t, this.selection = i, this.values = s, this.status = e.statusTemplate.slice(), this.computeSlot = o, l && (l._state = this);
|
|
5237
5241
|
for (let r = 0; r < this.config.dynamicSlots.length; r++)
|
|
@@ -5273,9 +5277,9 @@ class v0 {
|
|
|
5273
5277
|
for (let r of e.effects)
|
|
5274
5278
|
r.is(L3.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((a, h) => s.set(h, a)), t = null), s.set(r.value.compartment, r.value.extension)) : r.is(d0.reconfigure) ? (t = null, i = r.value) : r.is(d0.appendConfig) && (t = null, i = ot(i).concat(r.value));
|
|
5275
5279
|
let o;
|
|
5276
|
-
t ? o = e.startState.values.slice() : (t = l3.resolve(i, s, this), o = new
|
|
5280
|
+
t ? o = e.startState.values.slice() : (t = l3.resolve(i, s, this), o = new w0(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, h) => h.reconfigure(a, this), null).values);
|
|
5277
5281
|
let l = e.startState.facet(Ei) ? e.newSelection : e.newSelection.asSingle();
|
|
5278
|
-
new
|
|
5282
|
+
new w0(t, e.newDoc, l, o, (r, a) => a.update(r, e), e);
|
|
5279
5283
|
}
|
|
5280
5284
|
/**
|
|
5281
5285
|
Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
|
|
@@ -5319,7 +5323,7 @@ class v0 {
|
|
|
5319
5323
|
separator into account.
|
|
5320
5324
|
*/
|
|
5321
5325
|
changes(e = []) {
|
|
5322
|
-
return e instanceof j0 ? e : j0.of(e, this.doc.length, this.facet(
|
|
5326
|
+
return e instanceof j0 ? e : j0.of(e, this.doc.length, this.facet(w0.lineSeparator));
|
|
5323
5327
|
}
|
|
5324
5328
|
/**
|
|
5325
5329
|
Using the state's [line
|
|
@@ -5327,7 +5331,7 @@ class v0 {
|
|
|
5327
5331
|
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
5328
5332
|
*/
|
|
5329
5333
|
toText(e) {
|
|
5330
|
-
return
|
|
5334
|
+
return b0.of(e.split(this.facet(w0.lineSeparator) || Ti));
|
|
5331
5335
|
}
|
|
5332
5336
|
/**
|
|
5333
5337
|
Return the given range of the document as a string.
|
|
@@ -5377,7 +5381,7 @@ class v0 {
|
|
|
5377
5381
|
s.push(l.init((a) => l.spec.fromJSON(r, a)));
|
|
5378
5382
|
}
|
|
5379
5383
|
}
|
|
5380
|
-
return
|
|
5384
|
+
return w0.create({
|
|
5381
5385
|
doc: e.doc,
|
|
5382
5386
|
selection: T.fromJSON(e.selection),
|
|
5383
5387
|
extensions: t.extensions ? s.concat([t.extensions]) : s
|
|
@@ -5389,22 +5393,22 @@ class v0 {
|
|
|
5389
5393
|
transactions.
|
|
5390
5394
|
*/
|
|
5391
5395
|
static create(e = {}) {
|
|
5392
|
-
let t = l3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof
|
|
5393
|
-
return F4(s, i.length), t.staticFacet(Ei) || (s = s.asSingle()), new
|
|
5396
|
+
let t = l3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof b0 ? e.doc : b0.of((e.doc || "").split(t.staticFacet(w0.lineSeparator) || Ti)), s = e.selection ? e.selection instanceof T ? e.selection : T.single(e.selection.anchor, e.selection.head) : T.single(0);
|
|
5397
|
+
return F4(s, i.length), t.staticFacet(Ei) || (s = s.asSingle()), new w0(t, i, s, t.dynamicSlots.map(() => null), (o, l) => l.create(o), null);
|
|
5394
5398
|
}
|
|
5395
5399
|
/**
|
|
5396
5400
|
The size (in columns) of a tab in the document, determined by
|
|
5397
5401
|
the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
|
|
5398
5402
|
*/
|
|
5399
5403
|
get tabSize() {
|
|
5400
|
-
return this.facet(
|
|
5404
|
+
return this.facet(w0.tabSize);
|
|
5401
5405
|
}
|
|
5402
5406
|
/**
|
|
5403
5407
|
Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
|
|
5404
5408
|
string for this state.
|
|
5405
5409
|
*/
|
|
5406
5410
|
get lineBreak() {
|
|
5407
|
-
return this.facet(
|
|
5411
|
+
return this.facet(w0.lineSeparator) || `
|
|
5408
5412
|
`;
|
|
5409
5413
|
}
|
|
5410
5414
|
/**
|
|
@@ -5425,7 +5429,7 @@ class v0 {
|
|
|
5425
5429
|
literal dollar sign.
|
|
5426
5430
|
*/
|
|
5427
5431
|
phrase(e, ...t) {
|
|
5428
|
-
for (let i of this.facet(
|
|
5432
|
+
for (let i of this.facet(w0.phrases))
|
|
5429
5433
|
if (Object.prototype.hasOwnProperty.call(i, e)) {
|
|
5430
5434
|
e = i[e];
|
|
5431
5435
|
break;
|
|
@@ -5497,22 +5501,22 @@ class v0 {
|
|
|
5497
5501
|
return l == r ? null : T.range(l + i, r + i);
|
|
5498
5502
|
}
|
|
5499
5503
|
}
|
|
5500
|
-
|
|
5501
|
-
|
|
5504
|
+
w0.allowMultipleSelections = Ei;
|
|
5505
|
+
w0.tabSize = /* @__PURE__ */ q.define({
|
|
5502
5506
|
combine: (n) => n.length ? n[0] : 4
|
|
5503
5507
|
});
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5508
|
+
w0.lineSeparator = K4;
|
|
5509
|
+
w0.readOnly = Z4;
|
|
5510
|
+
w0.phrases = /* @__PURE__ */ q.define({
|
|
5507
5511
|
compare(n, e) {
|
|
5508
5512
|
let t = Object.keys(n), i = Object.keys(e);
|
|
5509
5513
|
return t.length == i.length && t.every((s) => n[s] == e[s]);
|
|
5510
5514
|
}
|
|
5511
5515
|
});
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
+
w0.languageData = Y4;
|
|
5517
|
+
w0.changeFilter = X4;
|
|
5518
|
+
w0.transactionFilter = Q4;
|
|
5519
|
+
w0.transactionExtender = J4;
|
|
5516
5520
|
L3.reconfigure = /* @__PURE__ */ d0.define();
|
|
5517
5521
|
function Z2(n, e, t = {}) {
|
|
5518
5522
|
let i = {};
|
|
@@ -5605,7 +5609,7 @@ class An {
|
|
|
5605
5609
|
return { mapped: i.length ? new An(s, o, i, r) : null, pos: l };
|
|
5606
5610
|
}
|
|
5607
5611
|
}
|
|
5608
|
-
class
|
|
5612
|
+
class x0 {
|
|
5609
5613
|
constructor(e, t, i, s) {
|
|
5610
5614
|
this.chunkPos = e, this.chunk = t, this.nextLayer = i, this.maxPoint = s;
|
|
5611
5615
|
}
|
|
@@ -5613,7 +5617,7 @@ class w0 {
|
|
|
5613
5617
|
@internal
|
|
5614
5618
|
*/
|
|
5615
5619
|
static create(e, t, i, s) {
|
|
5616
|
-
return new
|
|
5620
|
+
return new x0(e, t, i, s);
|
|
5617
5621
|
}
|
|
5618
5622
|
/**
|
|
5619
5623
|
@internal
|
|
@@ -5653,14 +5657,14 @@ class w0 {
|
|
|
5653
5657
|
if (t.length == 0 && !l)
|
|
5654
5658
|
return this;
|
|
5655
5659
|
if (i && (t = t.slice().sort(Ii)), this.isEmpty)
|
|
5656
|
-
return t.length ?
|
|
5660
|
+
return t.length ? x0.of(t) : this;
|
|
5657
5661
|
let r = new no(this, null, -1).goto(0), a = 0, h = [], c = new se();
|
|
5658
5662
|
for (; r.value || a < t.length; )
|
|
5659
5663
|
if (a < t.length && (r.from - t[a].from || r.startSide - t[a].value.startSide) >= 0) {
|
|
5660
5664
|
let d = t[a++];
|
|
5661
5665
|
c.addInner(d.from, d.to, d.value) || h.push(d);
|
|
5662
5666
|
} else r.rangeIndex == 1 && r.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(r.chunkIndex) < t[a].from) && (!l || s > this.chunkEnd(r.chunkIndex) || o < this.chunkPos[r.chunkIndex]) && c.addChunk(this.chunkPos[r.chunkIndex], this.chunk[r.chunkIndex]) ? r.nextChunk() : ((!l || s > r.to || o < r.from || l(r.from, r.to, r.value)) && (c.addInner(r.from, r.to, r.value) || h.push(Hi.create(r.from, r.to, r.value))), r.next());
|
|
5663
|
-
return c.finishInner(this.nextLayer.isEmpty && !h.length ?
|
|
5667
|
+
return c.finishInner(this.nextLayer.isEmpty && !h.length ? x0.empty : this.nextLayer.update({ add: h, filter: l, filterFrom: s, filterTo: o }));
|
|
5664
5668
|
}
|
|
5665
5669
|
/**
|
|
5666
5670
|
Map this range set through a set of changes, return the new set.
|
|
@@ -5679,7 +5683,7 @@ class w0 {
|
|
|
5679
5683
|
}
|
|
5680
5684
|
}
|
|
5681
5685
|
let o = this.nextLayer.map(e);
|
|
5682
|
-
return t.length == 0 ? o : new
|
|
5686
|
+
return t.length == 0 ? o : new x0(i, t, o || x0.empty, s);
|
|
5683
5687
|
}
|
|
5684
5688
|
/**
|
|
5685
5689
|
Iterate over the ranges that touch the region `from` to `to`,
|
|
@@ -5783,15 +5787,15 @@ class w0 {
|
|
|
5783
5787
|
*/
|
|
5784
5788
|
static join(e) {
|
|
5785
5789
|
if (!e.length)
|
|
5786
|
-
return
|
|
5790
|
+
return x0.empty;
|
|
5787
5791
|
let t = e[e.length - 1];
|
|
5788
5792
|
for (let i = e.length - 2; i >= 0; i--)
|
|
5789
|
-
for (let s = e[i]; s !=
|
|
5790
|
-
t = new
|
|
5793
|
+
for (let s = e[i]; s != x0.empty; s = s.nextLayer)
|
|
5794
|
+
t = new x0(s.chunkPos, s.chunk, t, Math.max(s.maxPoint, t.maxPoint));
|
|
5791
5795
|
return t;
|
|
5792
5796
|
}
|
|
5793
5797
|
}
|
|
5794
|
-
|
|
5798
|
+
x0.empty = /* @__PURE__ */ new x0([], [], null, -1);
|
|
5795
5799
|
function ip(n) {
|
|
5796
5800
|
if (n.length > 1)
|
|
5797
5801
|
for (let e = n[0], t = 1; t < n.length; t++) {
|
|
@@ -5802,7 +5806,7 @@ function ip(n) {
|
|
|
5802
5806
|
}
|
|
5803
5807
|
return n;
|
|
5804
5808
|
}
|
|
5805
|
-
|
|
5809
|
+
x0.empty.nextLayer = x0.empty;
|
|
5806
5810
|
class se {
|
|
5807
5811
|
finishChunk(e) {
|
|
5808
5812
|
this.chunks.push(new An(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
@@ -5844,7 +5848,7 @@ class se {
|
|
|
5844
5848
|
used anymore after this has been called.
|
|
5845
5849
|
*/
|
|
5846
5850
|
finish() {
|
|
5847
|
-
return this.finishInner(
|
|
5851
|
+
return this.finishInner(x0.empty);
|
|
5848
5852
|
}
|
|
5849
5853
|
/**
|
|
5850
5854
|
@internal
|
|
@@ -5852,7 +5856,7 @@ class se {
|
|
|
5852
5856
|
finishInner(e) {
|
|
5853
5857
|
if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
|
|
5854
5858
|
return e;
|
|
5855
|
-
let t =
|
|
5859
|
+
let t = x0.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
|
|
5856
5860
|
return this.from = null, t;
|
|
5857
5861
|
}
|
|
5858
5862
|
}
|
|
@@ -6940,12 +6944,12 @@ class fe extends M0 {
|
|
|
6940
6944
|
}
|
|
6941
6945
|
get overrideDOMText() {
|
|
6942
6946
|
if (this.length == 0)
|
|
6943
|
-
return
|
|
6947
|
+
return b0.empty;
|
|
6944
6948
|
let e = this;
|
|
6945
6949
|
for (; e.parent; )
|
|
6946
6950
|
e = e.parent;
|
|
6947
6951
|
let { view: t } = e, i = t && t.state.doc, s = this.posAtStart;
|
|
6948
|
-
return i ? i.slice(s, s + this.length) :
|
|
6952
|
+
return i ? i.slice(s, s + this.length) : b0.empty;
|
|
6949
6953
|
}
|
|
6950
6954
|
domAtPos(e) {
|
|
6951
6955
|
return (this.length ? e == 0 : this.side > 0) ? n2.before(this.dom) : n2.after(this.dom, e == this.length);
|
|
@@ -7016,7 +7020,7 @@ class pt extends M0 {
|
|
|
7016
7020
|
return this.dom.getBoundingClientRect();
|
|
7017
7021
|
}
|
|
7018
7022
|
get overrideDOMText() {
|
|
7019
|
-
return
|
|
7023
|
+
return b0.empty;
|
|
7020
7024
|
}
|
|
7021
7025
|
get isHidden() {
|
|
7022
7026
|
return !0;
|
|
@@ -7254,7 +7258,7 @@ class s0 extends $e {
|
|
|
7254
7258
|
pass `true` for `sort` to make the library sort them for you.
|
|
7255
7259
|
*/
|
|
7256
7260
|
static set(e, t = !1) {
|
|
7257
|
-
return
|
|
7261
|
+
return x0.of(e, t);
|
|
7258
7262
|
}
|
|
7259
7263
|
/**
|
|
7260
7264
|
@internal
|
|
@@ -7263,7 +7267,7 @@ class s0 extends $e {
|
|
|
7263
7267
|
return this.widget ? this.widget.estimatedHeight > -1 : !1;
|
|
7264
7268
|
}
|
|
7265
7269
|
}
|
|
7266
|
-
s0.none =
|
|
7270
|
+
s0.none = x0.empty;
|
|
7267
7271
|
class u1 extends s0 {
|
|
7268
7272
|
constructor(e) {
|
|
7269
7273
|
let { start: t, end: i } = bo(e);
|
|
@@ -7457,7 +7461,7 @@ class ne extends M0 {
|
|
|
7457
7461
|
(!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
|
|
7458
7462
|
}
|
|
7459
7463
|
get overrideDOMText() {
|
|
7460
|
-
return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) :
|
|
7464
|
+
return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : b0.empty;
|
|
7461
7465
|
}
|
|
7462
7466
|
domBoundsAround() {
|
|
7463
7467
|
return null;
|
|
@@ -7579,7 +7583,7 @@ class Gt {
|
|
|
7579
7583
|
}
|
|
7580
7584
|
static build(e, t, i, s, o) {
|
|
7581
7585
|
let l = new Gt(e, t, i, o);
|
|
7582
|
-
return l.openEnd =
|
|
7586
|
+
return l.openEnd = x0.spans(s, t, i, l), l.openStart < 0 && (l.openStart = l.openEnd), l.finish(l.openEnd), l;
|
|
7583
7587
|
}
|
|
7584
7588
|
}
|
|
7585
7589
|
function y1(n, e) {
|
|
@@ -8005,7 +8009,7 @@ function Ws(n, e) {
|
|
|
8005
8009
|
if (!t.length)
|
|
8006
8010
|
return t;
|
|
8007
8011
|
let i = t.map((o) => o instanceof Function ? o(n) : o), s = [];
|
|
8008
|
-
return
|
|
8012
|
+
return x0.spans(i, e.from, e.to, {
|
|
8009
8013
|
point() {
|
|
8010
8014
|
},
|
|
8011
8015
|
span(o, l, r, a) {
|
|
@@ -8444,7 +8448,7 @@ class Us extends M0 {
|
|
|
8444
8448
|
let r = typeof o == "function";
|
|
8445
8449
|
return r && (i = !0), r ? o(this.view) : o;
|
|
8446
8450
|
});
|
|
8447
|
-
for (s.length && (this.dynamicDecorationMap[e++] = i, t.push(
|
|
8451
|
+
for (s.length && (this.dynamicDecorationMap[e++] = i, t.push(x0.join(s))), this.decorations = [
|
|
8448
8452
|
this.editContextFormatting,
|
|
8449
8453
|
...t,
|
|
8450
8454
|
this.computeBlockGapDeco(),
|
|
@@ -8551,7 +8555,7 @@ let Vp = class {
|
|
|
8551
8555
|
};
|
|
8552
8556
|
function Ep(n, e, t) {
|
|
8553
8557
|
let i = new Vp();
|
|
8554
|
-
return
|
|
8558
|
+
return x0.compare(n, e, t, i), i.changes;
|
|
8555
8559
|
}
|
|
8556
8560
|
function Bp(n, e) {
|
|
8557
8561
|
for (let t = n; t && t != e; t = t.assignedSlot || t.parentNode)
|
|
@@ -8832,7 +8836,7 @@ function ni(n, e, t) {
|
|
|
8832
8836
|
const Et = "";
|
|
8833
8837
|
class Up {
|
|
8834
8838
|
constructor(e, t) {
|
|
8835
|
-
this.points = e, this.text = "", this.lineSeparator = t.facet(
|
|
8839
|
+
this.points = e, this.text = "", this.lineSeparator = t.facet(w0.lineSeparator);
|
|
8836
8840
|
}
|
|
8837
8841
|
append(e) {
|
|
8838
8842
|
this.text += e;
|
|
@@ -8931,17 +8935,17 @@ function $o(n, e) {
|
|
|
8931
8935
|
c && (U.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == Et + Et && c.toB--, t = {
|
|
8932
8936
|
from: l + c.from,
|
|
8933
8937
|
to: l + c.toA,
|
|
8934
|
-
insert:
|
|
8938
|
+
insert: b0.of(e.text.slice(c.from, c.toB).split(Et))
|
|
8935
8939
|
});
|
|
8936
8940
|
} else i && (!n.hasFocus && n.state.facet(ie) || i.main.eq(s)) && (i = null);
|
|
8937
8941
|
if (!t && !i)
|
|
8938
8942
|
return !1;
|
|
8939
|
-
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) } : (U.mac || U.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 = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert:
|
|
8943
|
+
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) } : (U.mac || U.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 = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: b0.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 = {
|
|
8940
8944
|
from: s.from,
|
|
8941
8945
|
to: s.to,
|
|
8942
8946
|
insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
|
|
8943
8947
|
} : U.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
|
|
8944
|
-
` && n.lineWrapping && (i && (i = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert:
|
|
8948
|
+
` && n.lineWrapping && (i && (i = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: b0.of([" "]) }), t)
|
|
8945
8949
|
return Nn(n, t, i, o);
|
|
8946
8950
|
if (i && !i.main.eq(s)) {
|
|
8947
8951
|
let l = !1, r = "select";
|
|
@@ -9147,7 +9151,7 @@ class ig {
|
|
|
9147
9151
|
constructor(e, t, i, s) {
|
|
9148
9152
|
this.view = e, this.startEvent = t, this.style = i, this.mustSelect = s, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = cp(e.contentDOM), this.atoms = e.state.facet(In).map((l) => l(e));
|
|
9149
9153
|
let o = e.contentDOM.ownerDocument;
|
|
9150
|
-
o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(
|
|
9154
|
+
o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(w0.allowMultipleSelections) && ng(e, t), this.dragging = og(e, t) && qo(t) == 1 ? null : !1;
|
|
9151
9155
|
}
|
|
9152
9156
|
start(e) {
|
|
9153
9157
|
this.dragging === !1 && this.select(e);
|
|
@@ -9529,7 +9533,7 @@ function a6() {
|
|
|
9529
9533
|
}
|
|
9530
9534
|
class gg {
|
|
9531
9535
|
constructor(e) {
|
|
9532
|
-
this.lineWrapping = e, this.doc =
|
|
9536
|
+
this.lineWrapping = e, this.doc = b0.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
|
|
9533
9537
|
}
|
|
9534
9538
|
heightForGap(e, t) {
|
|
9535
9539
|
let i = this.doc.lineAt(t).number - this.doc.lineAt(e).number + 1;
|
|
@@ -9959,12 +9963,12 @@ class Gn {
|
|
|
9959
9963
|
// to each other.
|
|
9960
9964
|
static build(e, t, i, s) {
|
|
9961
9965
|
let o = new Gn(i, e);
|
|
9962
|
-
return
|
|
9966
|
+
return x0.spans(t, i, s, o, 0), o.finish(i);
|
|
9963
9967
|
}
|
|
9964
9968
|
}
|
|
9965
9969
|
function xg(n, e, t) {
|
|
9966
9970
|
let i = new bg();
|
|
9967
|
-
return
|
|
9971
|
+
return x0.compare(n, e, t, i, 0), i.changes;
|
|
9968
9972
|
}
|
|
9969
9973
|
class bg {
|
|
9970
9974
|
constructor() {
|
|
@@ -10049,7 +10053,7 @@ class h6 {
|
|
|
10049
10053
|
constructor(e) {
|
|
10050
10054
|
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = d6, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = z0.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
10051
10055
|
let t = e.facet(Hn).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
|
|
10052
|
-
this.heightOracle = new gg(t), this.stateDeco = e.facet(Jt).filter((i) => typeof i != "function"), this.heightMap = c2.empty().applyChanges(this.stateDeco,
|
|
10056
|
+
this.heightOracle = new gg(t), this.stateDeco = e.facet(Jt).filter((i) => typeof i != "function"), this.heightMap = c2.empty().applyChanges(this.stateDeco, b0.empty, this.heightOracle.setDoc(e.doc), [new T2(0, 0, 0, e.doc.length)]);
|
|
10053
10057
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
10054
10058
|
;
|
|
10055
10059
|
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = s0.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
|
|
@@ -10114,7 +10118,7 @@ class h6 {
|
|
|
10114
10118
|
g > 0 && v > 0 ? c = Math.max(g, v) : g < 0 && v < 0 && (c = Math.min(g, v)), a6();
|
|
10115
10119
|
for (let O of this.viewports) {
|
|
10116
10120
|
let x = O.from == this.viewport.from ? k : e.docView.measureVisibleLineHeights(O);
|
|
10117
|
-
this.heightMap = (l ? c2.empty().applyChanges(this.stateDeco,
|
|
10121
|
+
this.heightMap = (l ? c2.empty().applyChanges(this.stateDeco, b0.empty, this.heightOracle, [new T2(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new mg(O.from, x));
|
|
10118
10122
|
}
|
|
10119
10123
|
mt && (h |= 2);
|
|
10120
10124
|
}
|
|
@@ -10242,7 +10246,7 @@ class h6 {
|
|
|
10242
10246
|
let t = this.stateDeco;
|
|
10243
10247
|
this.lineGaps.length && (t = t.concat(this.lineGapDeco));
|
|
10244
10248
|
let i = [];
|
|
10245
|
-
|
|
10249
|
+
x0.spans(t, this.viewport.from, this.viewport.to, {
|
|
10246
10250
|
span(o, l) {
|
|
10247
10251
|
i.push({ from: o, to: l });
|
|
10248
10252
|
},
|
|
@@ -10286,7 +10290,7 @@ class O1 {
|
|
|
10286
10290
|
}
|
|
10287
10291
|
function kg(n, e, t) {
|
|
10288
10292
|
let i = [], s = n, o = 0;
|
|
10289
|
-
return
|
|
10293
|
+
return x0.spans(t, n, e, {
|
|
10290
10294
|
span() {
|
|
10291
10295
|
},
|
|
10292
10296
|
point(l, r) {
|
|
@@ -10919,14 +10923,14 @@ class Pg {
|
|
|
10919
10923
|
this.handlers.textupdate = (i) => {
|
|
10920
10924
|
let s = e.state.selection.main, { anchor: o, head: l } = s, r = this.toEditorPos(i.updateRangeStart), a = this.toEditorPos(i.updateRangeEnd);
|
|
10921
10925
|
e.inputState.composing >= 0 && !this.composing && (this.composing = { contextBase: i.updateRangeStart, editorBase: r, drifted: !1 });
|
|
10922
|
-
let h = { from: r, to: a, insert:
|
|
10926
|
+
let h = { from: r, to: a, insert: b0.of(i.text.split(`
|
|
10923
10927
|
`)) };
|
|
10924
10928
|
if (h.from == this.from && o < this.from ? h.from = o : h.to == this.to && o > this.to && (h.to = o), h.from == h.to && !h.insert.length) {
|
|
10925
10929
|
let c = T.single(this.toEditorPos(i.selectionStart), this.toEditorPos(i.selectionEnd));
|
|
10926
10930
|
c.main.eq(s) || e.dispatch({ selection: c, userEvent: "select" });
|
|
10927
10931
|
return;
|
|
10928
10932
|
}
|
|
10929
|
-
if ((U.mac || U.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert:
|
|
10933
|
+
if ((U.mac || U.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: b0.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
|
|
10930
10934
|
let c = this.to - this.from + (h.to - h.from + h.insert.length);
|
|
10931
10935
|
Nn(e, h, T.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
|
|
10932
10936
|
}
|
|
@@ -11109,7 +11113,7 @@ class F {
|
|
|
11109
11113
|
var t;
|
|
11110
11114
|
this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
|
|
11111
11115
|
let { dispatch: i } = e;
|
|
11112
|
-
this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((o) => i(o, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || dp(e.parent) || document, this.viewState = new h6(e.state ||
|
|
11116
|
+
this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((o) => i(o, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || dp(e.parent) || document, this.viewState = new h6(e.state || w0.create(e)), e.scrollTo && e.scrollTo.is(S1) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Ze).map((s) => new ti(s));
|
|
11113
11117
|
for (let s of this.plugins)
|
|
11114
11118
|
s.update(this);
|
|
11115
11119
|
this.observer = new Tg(this), this.inputState = new Jp(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Us(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
|
|
@@ -11142,7 +11146,7 @@ class F {
|
|
|
11142
11146
|
let l = this.hasFocus, r = 0, a = null;
|
|
11143
11147
|
e.some((u) => u.annotation(Yo)) ? (this.inputState.notifiedFocused = l, r = 1) : l != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = l, a = Ko(o, l), a || (r = 1));
|
|
11144
11148
|
let h = this.observer.delayedAndroidKey, c = null;
|
|
11145
|
-
if (h ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(
|
|
11149
|
+
if (h ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(w0.phrases) != this.state.facet(w0.phrases))
|
|
11146
11150
|
return this.setState(o);
|
|
11147
11151
|
s = h3.create(this, o, e), s.flags |= r;
|
|
11148
11152
|
let d = this.viewState.scrollTarget;
|
|
@@ -11988,31 +11992,31 @@ function Rg(n, e, t) {
|
|
|
11988
11992
|
}
|
|
11989
11993
|
function y({ top: O, bottom: x, horizontal: S }) {
|
|
11990
11994
|
let V = [];
|
|
11991
|
-
for (let
|
|
11992
|
-
V.push(w(S[
|
|
11995
|
+
for (let H = 0; H < S.length; H += 2)
|
|
11996
|
+
V.push(w(S[H], O, S[H + 1], x));
|
|
11993
11997
|
return V;
|
|
11994
11998
|
}
|
|
11995
11999
|
function D(O, x, S) {
|
|
11996
|
-
let V = 1e9,
|
|
11997
|
-
function
|
|
11998
|
-
let m = n.coordsAtPos(Y, Y == S.to ? -2 : 2), B0 = n.coordsAtPos(
|
|
11999
|
-
!m || !B0 || (V = Math.min(m.top, B0.top, V),
|
|
12000
|
+
let V = 1e9, H = -1e9, z = [];
|
|
12001
|
+
function R(Y, W, r0, g0, _0) {
|
|
12002
|
+
let m = n.coordsAtPos(Y, Y == S.to ? -2 : 2), B0 = n.coordsAtPos(r0, r0 == S.from ? 2 : -2);
|
|
12003
|
+
!m || !B0 || (V = Math.min(m.top, B0.top, V), H = Math.max(m.bottom, B0.bottom, H), _0 == z0.LTR ? z.push(o && W ? d : m.left, o && g0 ? u : B0.right) : z.push(!o && g0 ? d : B0.left, !o && W ? u : m.right));
|
|
12000
12004
|
}
|
|
12001
|
-
let _ = O ?? S.from,
|
|
12005
|
+
let _ = O ?? S.from, B = x ?? S.to;
|
|
12002
12006
|
for (let Y of n.visibleRanges)
|
|
12003
|
-
if (Y.to > _ && Y.from <
|
|
12004
|
-
for (let
|
|
12005
|
-
let
|
|
12006
|
-
for (let
|
|
12007
|
-
let m =
|
|
12008
|
-
if (m >=
|
|
12007
|
+
if (Y.to > _ && Y.from < B)
|
|
12008
|
+
for (let W = Math.max(Y.from, _), r0 = Math.min(Y.to, B); ; ) {
|
|
12009
|
+
let g0 = n.state.doc.lineAt(W);
|
|
12010
|
+
for (let _0 of n.bidiSpans(g0)) {
|
|
12011
|
+
let m = _0.from + g0.from, B0 = _0.to + g0.from;
|
|
12012
|
+
if (m >= r0)
|
|
12009
12013
|
break;
|
|
12010
|
-
B0 >
|
|
12014
|
+
B0 > W && R(Math.max(m, W), O == null && m <= _, Math.min(B0, r0), x == null && B0 >= B, _0.dir);
|
|
12011
12015
|
}
|
|
12012
|
-
if (
|
|
12016
|
+
if (W = g0.to + 1, W >= r0)
|
|
12013
12017
|
break;
|
|
12014
12018
|
}
|
|
12015
|
-
return z.length == 0 &&
|
|
12019
|
+
return z.length == 0 && R(_, O == null, B, x == null, n.textDirection), { top: V, bottom: H, horizontal: z };
|
|
12016
12020
|
}
|
|
12017
12021
|
function k(O, x) {
|
|
12018
12022
|
let S = r.top + (x ? O.top : O.bottom);
|
|
@@ -13100,7 +13104,7 @@ const Q1 = /* @__PURE__ */ q.define(), Cm = /* @__PURE__ */ q.define(), km = {
|
|
|
13100
13104
|
class: "",
|
|
13101
13105
|
renderEmptyElements: !1,
|
|
13102
13106
|
elementStyle: "",
|
|
13103
|
-
markers: () =>
|
|
13107
|
+
markers: () => x0.empty,
|
|
13104
13108
|
lineMarker: () => null,
|
|
13105
13109
|
widgetMarker: () => null,
|
|
13106
13110
|
lineMarkerChange: null,
|
|
@@ -13144,7 +13148,7 @@ const Dm = /* @__PURE__ */ G0.fromClass(class {
|
|
|
13144
13148
|
syncGutters(n) {
|
|
13145
13149
|
let e = this.dom.nextSibling;
|
|
13146
13150
|
n && (this.dom.remove(), this.domAfter && this.domAfter.remove());
|
|
13147
|
-
let t =
|
|
13151
|
+
let t = x0.iter(this.view.state.facet(Q1), this.view.viewport.from), i = [], s = this.gutters.map((o) => new Mm(o, this.view.viewport, -this.view.documentPadding.top));
|
|
13148
13152
|
for (let o of this.view.viewportLineBlocks)
|
|
13149
13153
|
if (i.length && (i = []), Array.isArray(o.type)) {
|
|
13150
13154
|
let l = !0;
|
|
@@ -13169,7 +13173,7 @@ const Dm = /* @__PURE__ */ G0.fromClass(class {
|
|
|
13169
13173
|
n && (this.view.scrollDOM.insertBefore(this.dom, e), this.domAfter && this.view.scrollDOM.appendChild(this.domAfter));
|
|
13170
13174
|
}
|
|
13171
13175
|
updateGutters(n) {
|
|
13172
|
-
let e = n.startState.facet($t), t = n.state.facet($t), i = n.docChanged || n.heightChanged || n.viewportChanged || !
|
|
13176
|
+
let e = n.startState.facet($t), t = n.state.facet($t), i = n.docChanged || n.heightChanged || n.viewportChanged || !x0.eq(n.startState.facet(Q1), n.state.facet(Q1), n.view.viewport.from, n.view.viewport.to);
|
|
13173
13177
|
if (e == t)
|
|
13174
13178
|
for (let s of this.gutters)
|
|
13175
13179
|
s.update(n) && (i = !0);
|
|
@@ -13211,7 +13215,7 @@ function hn(n, e, t) {
|
|
|
13211
13215
|
}
|
|
13212
13216
|
class Mm {
|
|
13213
13217
|
constructor(e, t, i) {
|
|
13214
|
-
this.gutter = e, this.height = i, this.i = 0, this.cursor =
|
|
13218
|
+
this.gutter = e, this.height = i, this.i = 0, this.cursor = x0.iter(e.markers, t.from);
|
|
13215
13219
|
}
|
|
13216
13220
|
addElement(e, t, i) {
|
|
13217
13221
|
let { gutter: s } = this, o = (t.top - this.height) / e.scaleY, l = t.height / e.scaleY;
|
|
@@ -13271,7 +13275,7 @@ class M6 {
|
|
|
13271
13275
|
s != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [s]);
|
|
13272
13276
|
}
|
|
13273
13277
|
let i = e.view.viewport;
|
|
13274
|
-
return !
|
|
13278
|
+
return !x0.eq(this.markers, t, i.from, i.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
|
|
13275
13279
|
}
|
|
13276
13280
|
destroy() {
|
|
13277
13281
|
for (let e of this.elements)
|
|
@@ -13404,7 +13408,7 @@ const Em = /* @__PURE__ */ new class extends le {
|
|
|
13404
13408
|
let s = n.doc.lineAt(i.head).from;
|
|
13405
13409
|
s > t && (t = s, e.push(Em.range(s)));
|
|
13406
13410
|
}
|
|
13407
|
-
return
|
|
13411
|
+
return x0.of(e);
|
|
13408
13412
|
});
|
|
13409
13413
|
function Lm() {
|
|
13410
13414
|
return Bm;
|
|
@@ -14487,124 +14491,124 @@ function Yn(n) {
|
|
|
14487
14491
|
function $m(n) {
|
|
14488
14492
|
var e;
|
|
14489
14493
|
let { buffer: t, nodeSet: i, maxBufferLength: s = ul, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new qn(t, t.length) : t, a = i.types, h = 0, c = 0;
|
|
14490
|
-
function d(O, x, S, V,
|
|
14491
|
-
let { id:
|
|
14494
|
+
function d(O, x, S, V, H, z) {
|
|
14495
|
+
let { id: R, start: _, end: B, size: Y } = r, W = c, r0 = h;
|
|
14492
14496
|
for (; Y < 0; )
|
|
14493
14497
|
if (r.next(), Y == -1) {
|
|
14494
|
-
let k0 = o[
|
|
14498
|
+
let k0 = o[R];
|
|
14495
14499
|
S.push(k0), V.push(_ - O);
|
|
14496
14500
|
return;
|
|
14497
14501
|
} else if (Y == -3) {
|
|
14498
|
-
h =
|
|
14502
|
+
h = R;
|
|
14499
14503
|
return;
|
|
14500
14504
|
} else if (Y == -4) {
|
|
14501
|
-
c =
|
|
14505
|
+
c = R;
|
|
14502
14506
|
return;
|
|
14503
14507
|
} else
|
|
14504
14508
|
throw new RangeError(`Unrecognized record size: ${Y}`);
|
|
14505
|
-
let
|
|
14506
|
-
if (
|
|
14509
|
+
let g0 = a[R], _0, m, B0 = _ - O;
|
|
14510
|
+
if (B - _ <= s && (m = v(r.pos - x, H))) {
|
|
14507
14511
|
let k0 = new Uint16Array(m.size - m.skip), I0 = r.pos - m.size, $0 = k0.length;
|
|
14508
14512
|
for (; r.pos > I0; )
|
|
14509
14513
|
$0 = w(m.start, k0, $0);
|
|
14510
|
-
|
|
14514
|
+
_0 = new ye(k0, B - m.start, i), B0 = m.start - O;
|
|
14511
14515
|
} else {
|
|
14512
14516
|
let k0 = r.pos - Y;
|
|
14513
14517
|
r.next();
|
|
14514
|
-
let I0 = [], $0 = [], t2 =
|
|
14518
|
+
let I0 = [], $0 = [], t2 = R >= l ? R : -1, d2 = 0, u2 = B;
|
|
14515
14519
|
for (; r.pos > k0; )
|
|
14516
|
-
t2 >= 0 && r.id == t2 && r.size >= 0 ? (r.end <= u2 - s && (p(I0, $0, _, d2, r.end, u2, t2,
|
|
14517
|
-
if (t2 >= 0 && d2 > 0 && d2 < I0.length && p(I0, $0, _, d2, _, u2, t2,
|
|
14518
|
-
let R2 = f(
|
|
14519
|
-
|
|
14520
|
+
t2 >= 0 && r.id == t2 && r.size >= 0 ? (r.end <= u2 - s && (p(I0, $0, _, d2, r.end, u2, t2, W, r0), d2 = I0.length, u2 = r.end), r.next()) : z > 2500 ? u(_, k0, I0, $0) : d(_, k0, I0, $0, t2, z + 1);
|
|
14521
|
+
if (t2 >= 0 && d2 > 0 && d2 < I0.length && p(I0, $0, _, d2, _, u2, t2, W, r0), I0.reverse(), $0.reverse(), t2 > -1 && d2 > 0) {
|
|
14522
|
+
let R2 = f(g0, r0);
|
|
14523
|
+
_0 = Kn(g0, I0, $0, 0, I0.length, 0, B - _, R2, R2);
|
|
14520
14524
|
} else
|
|
14521
|
-
|
|
14525
|
+
_0 = g(g0, I0, $0, B - _, W - B, r0);
|
|
14522
14526
|
}
|
|
14523
|
-
S.push(
|
|
14527
|
+
S.push(_0), V.push(B0);
|
|
14524
14528
|
}
|
|
14525
14529
|
function u(O, x, S, V) {
|
|
14526
|
-
let
|
|
14530
|
+
let H = [], z = 0, R = -1;
|
|
14527
14531
|
for (; r.pos > x; ) {
|
|
14528
|
-
let { id: _, start:
|
|
14529
|
-
if (
|
|
14532
|
+
let { id: _, start: B, end: Y, size: W } = r;
|
|
14533
|
+
if (W > 4)
|
|
14530
14534
|
r.next();
|
|
14531
14535
|
else {
|
|
14532
|
-
if (
|
|
14536
|
+
if (R > -1 && B < R)
|
|
14533
14537
|
break;
|
|
14534
|
-
|
|
14538
|
+
R < 0 && (R = Y - s), H.push(_, B, Y), z++, r.next();
|
|
14535
14539
|
}
|
|
14536
14540
|
}
|
|
14537
14541
|
if (z) {
|
|
14538
|
-
let _ = new Uint16Array(z * 4),
|
|
14539
|
-
for (let Y =
|
|
14540
|
-
_[
|
|
14541
|
-
S.push(new ye(_,
|
|
14542
|
+
let _ = new Uint16Array(z * 4), B = H[H.length - 2];
|
|
14543
|
+
for (let Y = H.length - 3, W = 0; Y >= 0; Y -= 3)
|
|
14544
|
+
_[W++] = H[Y], _[W++] = H[Y + 1] - B, _[W++] = H[Y + 2] - B, _[W++] = W;
|
|
14545
|
+
S.push(new ye(_, H[2] - B, i)), V.push(B - O);
|
|
14542
14546
|
}
|
|
14543
14547
|
}
|
|
14544
14548
|
function f(O, x) {
|
|
14545
|
-
return (S, V,
|
|
14546
|
-
let z = 0,
|
|
14547
|
-
if (
|
|
14548
|
-
if (!
|
|
14549
|
+
return (S, V, H) => {
|
|
14550
|
+
let z = 0, R = S.length - 1, _, B;
|
|
14551
|
+
if (R >= 0 && (_ = S[R]) instanceof N0) {
|
|
14552
|
+
if (!R && _.type == O && _.length == H)
|
|
14549
14553
|
return _;
|
|
14550
|
-
(
|
|
14554
|
+
(B = _.prop(p0.lookAhead)) && (z = V[R] + _.length + B);
|
|
14551
14555
|
}
|
|
14552
|
-
return g(O, S, V,
|
|
14556
|
+
return g(O, S, V, H, z, x);
|
|
14553
14557
|
};
|
|
14554
14558
|
}
|
|
14555
|
-
function p(O, x, S, V,
|
|
14556
|
-
let Y = [],
|
|
14559
|
+
function p(O, x, S, V, H, z, R, _, B) {
|
|
14560
|
+
let Y = [], W = [];
|
|
14557
14561
|
for (; O.length > V; )
|
|
14558
|
-
Y.push(O.pop()),
|
|
14559
|
-
O.push(g(i.types[
|
|
14562
|
+
Y.push(O.pop()), W.push(x.pop() + S - H);
|
|
14563
|
+
O.push(g(i.types[R], Y, W, z - H, _ - z, B)), x.push(H - S);
|
|
14560
14564
|
}
|
|
14561
|
-
function g(O, x, S, V,
|
|
14565
|
+
function g(O, x, S, V, H, z, R) {
|
|
14562
14566
|
if (z) {
|
|
14563
14567
|
let _ = [p0.contextHash, z];
|
|
14564
|
-
|
|
14568
|
+
R = R ? [_].concat(R) : [_];
|
|
14565
14569
|
}
|
|
14566
|
-
if (
|
|
14567
|
-
let _ = [p0.lookAhead,
|
|
14568
|
-
|
|
14570
|
+
if (H > 25) {
|
|
14571
|
+
let _ = [p0.lookAhead, H];
|
|
14572
|
+
R = R ? [_].concat(R) : [_];
|
|
14569
14573
|
}
|
|
14570
|
-
return new N0(O, x, S, V,
|
|
14574
|
+
return new N0(O, x, S, V, R);
|
|
14571
14575
|
}
|
|
14572
14576
|
function v(O, x) {
|
|
14573
|
-
let S = r.fork(), V = 0,
|
|
14574
|
-
e: for (let
|
|
14577
|
+
let S = r.fork(), V = 0, H = 0, z = 0, R = S.end - s, _ = { size: 0, start: 0, skip: 0 };
|
|
14578
|
+
e: for (let B = S.pos - O; S.pos > B; ) {
|
|
14575
14579
|
let Y = S.size;
|
|
14576
14580
|
if (S.id == x && Y >= 0) {
|
|
14577
|
-
_.size = V, _.start =
|
|
14581
|
+
_.size = V, _.start = H, _.skip = z, z += 4, V += 4, S.next();
|
|
14578
14582
|
continue;
|
|
14579
14583
|
}
|
|
14580
|
-
let
|
|
14581
|
-
if (Y < 0 ||
|
|
14584
|
+
let W = S.pos - Y;
|
|
14585
|
+
if (Y < 0 || W < B || S.start < R)
|
|
14582
14586
|
break;
|
|
14583
|
-
let
|
|
14584
|
-
for (S.next(); S.pos >
|
|
14587
|
+
let r0 = S.id >= l ? 4 : 0, g0 = S.start;
|
|
14588
|
+
for (S.next(); S.pos > W; ) {
|
|
14585
14589
|
if (S.size < 0)
|
|
14586
14590
|
if (S.size == -3)
|
|
14587
|
-
|
|
14591
|
+
r0 += 4;
|
|
14588
14592
|
else
|
|
14589
14593
|
break e;
|
|
14590
|
-
else S.id >= l && (
|
|
14594
|
+
else S.id >= l && (r0 += 4);
|
|
14591
14595
|
S.next();
|
|
14592
14596
|
}
|
|
14593
|
-
|
|
14597
|
+
H = g0, V += Y, z += r0;
|
|
14594
14598
|
}
|
|
14595
|
-
return (x < 0 || V == O) && (_.size = V, _.start =
|
|
14599
|
+
return (x < 0 || V == O) && (_.size = V, _.start = H, _.skip = z), _.size > 4 ? _ : void 0;
|
|
14596
14600
|
}
|
|
14597
14601
|
function w(O, x, S) {
|
|
14598
|
-
let { id: V, start:
|
|
14599
|
-
if (r.next(),
|
|
14602
|
+
let { id: V, start: H, end: z, size: R } = r;
|
|
14603
|
+
if (r.next(), R >= 0 && V < l) {
|
|
14600
14604
|
let _ = S;
|
|
14601
|
-
if (
|
|
14602
|
-
let
|
|
14603
|
-
for (; r.pos >
|
|
14605
|
+
if (R > 4) {
|
|
14606
|
+
let B = r.pos - (R - 4);
|
|
14607
|
+
for (; r.pos > B; )
|
|
14604
14608
|
S = w(O, x, S);
|
|
14605
14609
|
}
|
|
14606
|
-
x[--S] = _, x[--S] = z - O, x[--S] =
|
|
14607
|
-
} else
|
|
14610
|
+
x[--S] = _, x[--S] = z - O, x[--S] = H - O, x[--S] = V;
|
|
14611
|
+
} else R == -3 ? h = V : R == -4 && (c = V);
|
|
14608
14612
|
return S;
|
|
14609
14613
|
}
|
|
14610
14614
|
let y = [], D = [];
|
|
@@ -14992,7 +14996,7 @@ function Qm(n) {
|
|
|
14992
14996
|
e = e.next;
|
|
14993
14997
|
return e || null;
|
|
14994
14998
|
}
|
|
14995
|
-
const N = O2.define, E1 = N(), ce = N(), V6 = N(ce), E6 = N(ce), he = N(), B1 = N(he), di = N(he), W2 = N(), Ve = N(W2), $2 = N(), j2 = N(), fn = N(), Tt = N(fn), L1 = N(),
|
|
14999
|
+
const N = O2.define, E1 = N(), ce = N(), V6 = N(ce), E6 = N(ce), he = N(), B1 = N(he), di = N(he), W2 = N(), Ve = N(W2), $2 = N(), j2 = N(), fn = N(), Tt = N(fn), L1 = N(), L = {
|
|
14996
15000
|
/**
|
|
14997
15001
|
A comment.
|
|
14998
15002
|
*/
|
|
@@ -15358,41 +15362,41 @@ const N = O2.define, E1 = N(), ce = N(), V6 = N(ce), E6 = N(ce), he = N(), B1 =
|
|
|
15358
15362
|
*/
|
|
15359
15363
|
special: O2.defineModifier("special")
|
|
15360
15364
|
};
|
|
15361
|
-
for (let n in
|
|
15362
|
-
let e =
|
|
15365
|
+
for (let n in L) {
|
|
15366
|
+
let e = L[n];
|
|
15363
15367
|
e instanceof O2 && (e.name = n);
|
|
15364
15368
|
}
|
|
15365
15369
|
xl([
|
|
15366
|
-
{ tag:
|
|
15367
|
-
{ tag:
|
|
15368
|
-
{ tag:
|
|
15369
|
-
{ tag:
|
|
15370
|
-
{ tag:
|
|
15371
|
-
{ tag:
|
|
15372
|
-
{ tag:
|
|
15373
|
-
{ tag:
|
|
15374
|
-
{ tag:
|
|
15375
|
-
{ tag:
|
|
15376
|
-
{ tag:
|
|
15377
|
-
{ tag:
|
|
15378
|
-
{ tag:
|
|
15379
|
-
{ tag:
|
|
15380
|
-
{ tag: [
|
|
15381
|
-
{ tag:
|
|
15382
|
-
{ tag:
|
|
15383
|
-
{ tag:
|
|
15384
|
-
{ tag:
|
|
15385
|
-
{ tag:
|
|
15386
|
-
{ tag:
|
|
15387
|
-
{ tag:
|
|
15388
|
-
{ tag:
|
|
15389
|
-
{ tag:
|
|
15390
|
-
{ tag:
|
|
15391
|
-
{ tag:
|
|
15392
|
-
{ tag:
|
|
15393
|
-
{ tag:
|
|
15394
|
-
{ tag:
|
|
15395
|
-
{ tag:
|
|
15370
|
+
{ tag: L.link, class: "tok-link" },
|
|
15371
|
+
{ tag: L.heading, class: "tok-heading" },
|
|
15372
|
+
{ tag: L.emphasis, class: "tok-emphasis" },
|
|
15373
|
+
{ tag: L.strong, class: "tok-strong" },
|
|
15374
|
+
{ tag: L.keyword, class: "tok-keyword" },
|
|
15375
|
+
{ tag: L.atom, class: "tok-atom" },
|
|
15376
|
+
{ tag: L.bool, class: "tok-bool" },
|
|
15377
|
+
{ tag: L.url, class: "tok-url" },
|
|
15378
|
+
{ tag: L.labelName, class: "tok-labelName" },
|
|
15379
|
+
{ tag: L.inserted, class: "tok-inserted" },
|
|
15380
|
+
{ tag: L.deleted, class: "tok-deleted" },
|
|
15381
|
+
{ tag: L.literal, class: "tok-literal" },
|
|
15382
|
+
{ tag: L.string, class: "tok-string" },
|
|
15383
|
+
{ tag: L.number, class: "tok-number" },
|
|
15384
|
+
{ tag: [L.regexp, L.escape, L.special(L.string)], class: "tok-string2" },
|
|
15385
|
+
{ tag: L.variableName, class: "tok-variableName" },
|
|
15386
|
+
{ tag: L.local(L.variableName), class: "tok-variableName tok-local" },
|
|
15387
|
+
{ tag: L.definition(L.variableName), class: "tok-variableName tok-definition" },
|
|
15388
|
+
{ tag: L.special(L.variableName), class: "tok-variableName2" },
|
|
15389
|
+
{ tag: L.definition(L.propertyName), class: "tok-propertyName tok-definition" },
|
|
15390
|
+
{ tag: L.typeName, class: "tok-typeName" },
|
|
15391
|
+
{ tag: L.namespace, class: "tok-namespace" },
|
|
15392
|
+
{ tag: L.className, class: "tok-className" },
|
|
15393
|
+
{ tag: L.macroName, class: "tok-macroName" },
|
|
15394
|
+
{ tag: L.propertyName, class: "tok-propertyName" },
|
|
15395
|
+
{ tag: L.operator, class: "tok-operator" },
|
|
15396
|
+
{ tag: L.comment, class: "tok-comment" },
|
|
15397
|
+
{ tag: L.meta, class: "tok-meta" },
|
|
15398
|
+
{ tag: L.invalid, class: "tok-invalid" },
|
|
15399
|
+
{ tag: L.punctuation, class: "tok-punctuation" }
|
|
15396
15400
|
]);
|
|
15397
15401
|
var ui;
|
|
15398
15402
|
const tt = /* @__PURE__ */ new p0();
|
|
@@ -15411,11 +15415,11 @@ class V2 {
|
|
|
15411
15415
|
to the language's outer syntax node.
|
|
15412
15416
|
*/
|
|
15413
15417
|
constructor(e, t, i = [], s = "") {
|
|
15414
|
-
this.data = e, this.name = s,
|
|
15418
|
+
this.data = e, this.name = s, w0.prototype.hasOwnProperty("tree") || Object.defineProperty(w0.prototype, "tree", { get() {
|
|
15415
15419
|
return K0(this);
|
|
15416
15420
|
} }), this.parser = t, this.extension = [
|
|
15417
15421
|
Se.of(this),
|
|
15418
|
-
|
|
15422
|
+
w0.languageData.of((o, l, r) => {
|
|
15419
15423
|
let a = B6(o, l, r), h = a.type.prop(tt);
|
|
15420
15424
|
if (!h)
|
|
15421
15425
|
return [];
|
|
@@ -15832,7 +15836,7 @@ function n1(n, e) {
|
|
|
15832
15836
|
return t;
|
|
15833
15837
|
}
|
|
15834
15838
|
function Qn(n, e) {
|
|
15835
|
-
n instanceof
|
|
15839
|
+
n instanceof w0 && (n = new G3(n));
|
|
15836
15840
|
for (let i of n.state.facet(nv)) {
|
|
15837
15841
|
let s = i(n, e);
|
|
15838
15842
|
if (s !== void 0)
|
|
@@ -16030,7 +16034,7 @@ function hv(n, e, t, i, s) {
|
|
|
16030
16034
|
}
|
|
16031
16035
|
const dv = 200;
|
|
16032
16036
|
function uv() {
|
|
16033
|
-
return
|
|
16037
|
+
return w0.transactionFilter.of((n) => {
|
|
16034
16038
|
if (!n.docChanged || !n.isUserEvent("input.type") && !n.isUserEvent("input.complete"))
|
|
16035
16039
|
return n;
|
|
16036
16040
|
let e = n.startState.languageDataAt("indentOnInput", n.startState.selection.main.head);
|
|
@@ -16286,7 +16290,7 @@ function kv(n = {}) {
|
|
|
16286
16290
|
class: "cm-foldGutter",
|
|
16287
16291
|
markers(l) {
|
|
16288
16292
|
var r;
|
|
16289
|
-
return ((r = l.plugin(s)) === null || r === void 0 ? void 0 : r.markers) ||
|
|
16293
|
+
return ((r = l.plugin(s)) === null || r === void 0 ? void 0 : r.markers) || x0.empty;
|
|
16290
16294
|
},
|
|
16291
16295
|
initialSpacer() {
|
|
16292
16296
|
return new pi(e, !1);
|
|
@@ -16393,80 +16397,80 @@ const Tv = /* @__PURE__ */ qe.high(/* @__PURE__ */ G0.fromClass(Mv, {
|
|
|
16393
16397
|
decorations: (n) => n.decorations
|
|
16394
16398
|
})), zv = /* @__PURE__ */ j3.define([
|
|
16395
16399
|
{
|
|
16396
|
-
tag:
|
|
16400
|
+
tag: L.meta,
|
|
16397
16401
|
color: "#404740"
|
|
16398
16402
|
},
|
|
16399
16403
|
{
|
|
16400
|
-
tag:
|
|
16404
|
+
tag: L.link,
|
|
16401
16405
|
textDecoration: "underline"
|
|
16402
16406
|
},
|
|
16403
16407
|
{
|
|
16404
|
-
tag:
|
|
16408
|
+
tag: L.heading,
|
|
16405
16409
|
textDecoration: "underline",
|
|
16406
16410
|
fontWeight: "bold"
|
|
16407
16411
|
},
|
|
16408
16412
|
{
|
|
16409
|
-
tag:
|
|
16413
|
+
tag: L.emphasis,
|
|
16410
16414
|
fontStyle: "italic"
|
|
16411
16415
|
},
|
|
16412
16416
|
{
|
|
16413
|
-
tag:
|
|
16417
|
+
tag: L.strong,
|
|
16414
16418
|
fontWeight: "bold"
|
|
16415
16419
|
},
|
|
16416
16420
|
{
|
|
16417
|
-
tag:
|
|
16421
|
+
tag: L.strikethrough,
|
|
16418
16422
|
textDecoration: "line-through"
|
|
16419
16423
|
},
|
|
16420
16424
|
{
|
|
16421
|
-
tag:
|
|
16425
|
+
tag: L.keyword,
|
|
16422
16426
|
color: "#708"
|
|
16423
16427
|
},
|
|
16424
16428
|
{
|
|
16425
|
-
tag: [
|
|
16429
|
+
tag: [L.atom, L.bool, L.url, L.contentSeparator, L.labelName],
|
|
16426
16430
|
color: "#219"
|
|
16427
16431
|
},
|
|
16428
16432
|
{
|
|
16429
|
-
tag: [
|
|
16433
|
+
tag: [L.literal, L.inserted],
|
|
16430
16434
|
color: "#164"
|
|
16431
16435
|
},
|
|
16432
16436
|
{
|
|
16433
|
-
tag: [
|
|
16437
|
+
tag: [L.string, L.deleted],
|
|
16434
16438
|
color: "#a11"
|
|
16435
16439
|
},
|
|
16436
16440
|
{
|
|
16437
|
-
tag: [
|
|
16441
|
+
tag: [L.regexp, L.escape, /* @__PURE__ */ L.special(L.string)],
|
|
16438
16442
|
color: "#e40"
|
|
16439
16443
|
},
|
|
16440
16444
|
{
|
|
16441
|
-
tag: /* @__PURE__ */
|
|
16445
|
+
tag: /* @__PURE__ */ L.definition(L.variableName),
|
|
16442
16446
|
color: "#00f"
|
|
16443
16447
|
},
|
|
16444
16448
|
{
|
|
16445
|
-
tag: /* @__PURE__ */
|
|
16449
|
+
tag: /* @__PURE__ */ L.local(L.variableName),
|
|
16446
16450
|
color: "#30a"
|
|
16447
16451
|
},
|
|
16448
16452
|
{
|
|
16449
|
-
tag: [
|
|
16453
|
+
tag: [L.typeName, L.namespace],
|
|
16450
16454
|
color: "#085"
|
|
16451
16455
|
},
|
|
16452
16456
|
{
|
|
16453
|
-
tag:
|
|
16457
|
+
tag: L.className,
|
|
16454
16458
|
color: "#167"
|
|
16455
16459
|
},
|
|
16456
16460
|
{
|
|
16457
|
-
tag: [/* @__PURE__ */
|
|
16461
|
+
tag: [/* @__PURE__ */ L.special(L.variableName), L.macroName],
|
|
16458
16462
|
color: "#256"
|
|
16459
16463
|
},
|
|
16460
16464
|
{
|
|
16461
|
-
tag: /* @__PURE__ */
|
|
16465
|
+
tag: /* @__PURE__ */ L.definition(L.propertyName),
|
|
16462
16466
|
color: "#00c"
|
|
16463
16467
|
},
|
|
16464
16468
|
{
|
|
16465
|
-
tag:
|
|
16469
|
+
tag: L.comment,
|
|
16466
16470
|
color: "#940"
|
|
16467
16471
|
},
|
|
16468
16472
|
{
|
|
16469
|
-
tag:
|
|
16473
|
+
tag: L.invalid,
|
|
16470
16474
|
color: "#f00"
|
|
16471
16475
|
}
|
|
16472
16476
|
]), Pv = /* @__PURE__ */ F.baseTheme({
|
|
@@ -16611,7 +16615,7 @@ function $v(n, e) {
|
|
|
16611
16615
|
for (let r of e.split(" ")) {
|
|
16612
16616
|
let a = [];
|
|
16613
16617
|
for (let h of r.split(".")) {
|
|
16614
|
-
let c = n[h] ||
|
|
16618
|
+
let c = n[h] || L[h];
|
|
16615
16619
|
c ? typeof c == "function" ? a.length ? a = a.map(c) : mi(h, `Modifier ${h} used at start of tag`) : a.length ? mi(h, `Tag ${h} used as modifier`) : a = Array.isArray(c) ? c : [c] : mi(h, `Unknown highlighting tag ${h}`);
|
|
16616
16620
|
}
|
|
16617
16621
|
for (let h of a)
|
|
@@ -17155,7 +17159,7 @@ const or = (n, e, t) => m1(n, (i) => {
|
|
|
17155
17159
|
if (n.readOnly)
|
|
17156
17160
|
return !1;
|
|
17157
17161
|
let t = n.changeByRange((i) => ({
|
|
17158
|
-
changes: { from: i.from, to: i.to, insert:
|
|
17162
|
+
changes: { from: i.from, to: i.to, insert: b0.of(["", ""]) },
|
|
17159
17163
|
range: T.cursor(i.from)
|
|
17160
17164
|
}));
|
|
17161
17165
|
return e(n.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
@@ -17253,7 +17257,7 @@ function dr(n) {
|
|
|
17253
17257
|
a ? { from: o, to: l } = a : o > r.from && o < r.from + 100 && !/\S/.test(r.text.slice(0, o)) && (o = r.from);
|
|
17254
17258
|
let d = ["", n1(e, c)];
|
|
17255
17259
|
return a && d.push(n1(e, h.lineIndent(r.from, -1))), {
|
|
17256
|
-
changes: { from: o, to: l, insert:
|
|
17260
|
+
changes: { from: o, to: l, insert: b0.of(d) },
|
|
17257
17261
|
range: T.cursor(o + 1 + d[1].length)
|
|
17258
17262
|
};
|
|
17259
17263
|
});
|
|
@@ -17749,7 +17753,7 @@ class gr {
|
|
|
17749
17753
|
range in the given state.
|
|
17750
17754
|
*/
|
|
17751
17755
|
getCursor(e, t = 0, i) {
|
|
17752
|
-
let s = e.doc ? e :
|
|
17756
|
+
let s = e.doc ? e : w0.create({ doc: e });
|
|
17753
17757
|
return i == null && (i = s.doc.length), this.regexp ? Qe(this, s, t, i) : Xe(this, s, t, i);
|
|
17754
17758
|
}
|
|
17755
17759
|
}
|
|
@@ -19165,7 +19169,7 @@ as.startSide = 1;
|
|
|
19165
19169
|
as.endSide = -1;
|
|
19166
19170
|
const Or = /* @__PURE__ */ e2.define({
|
|
19167
19171
|
create() {
|
|
19168
|
-
return
|
|
19172
|
+
return x0.empty;
|
|
19169
19173
|
},
|
|
19170
19174
|
update(n, e) {
|
|
19171
19175
|
if (n = n.map(e.changes), e.selection) {
|
|
@@ -19811,7 +19815,7 @@ const Mb = [
|
|
|
19811
19815
|
kv(),
|
|
19812
19816
|
$g(),
|
|
19813
19817
|
qg(),
|
|
19814
|
-
|
|
19818
|
+
w0.allowMultipleSelections.of(!0),
|
|
19815
19819
|
uv(),
|
|
19816
19820
|
Dv(zv, { fallback: !0 }),
|
|
19817
19821
|
Hv(),
|
|
@@ -21174,18 +21178,18 @@ function hs(n, e) {
|
|
|
21174
21178
|
});
|
|
21175
21179
|
}
|
|
21176
21180
|
const Zb = hs(Wb, "-->"), e_ = hs(Ub, "?>"), t_ = hs(Fb, "]]>"), i_ = vl({
|
|
21177
|
-
Text:
|
|
21178
|
-
"StartTag StartCloseTag EndTag SelfCloseEndTag":
|
|
21179
|
-
TagName:
|
|
21180
|
-
"MismatchedCloseTag/TagName": [
|
|
21181
|
-
AttributeName:
|
|
21182
|
-
AttributeValue:
|
|
21183
|
-
Is:
|
|
21184
|
-
"EntityReference CharacterReference":
|
|
21185
|
-
Comment:
|
|
21186
|
-
ProcessingInst:
|
|
21187
|
-
DoctypeDecl:
|
|
21188
|
-
Cdata:
|
|
21181
|
+
Text: L.content,
|
|
21182
|
+
"StartTag StartCloseTag EndTag SelfCloseEndTag": L.angleBracket,
|
|
21183
|
+
TagName: L.tagName,
|
|
21184
|
+
"MismatchedCloseTag/TagName": [L.tagName, L.invalid],
|
|
21185
|
+
AttributeName: L.attributeName,
|
|
21186
|
+
AttributeValue: L.attributeValue,
|
|
21187
|
+
Is: L.definitionOperator,
|
|
21188
|
+
"EntityReference CharacterReference": L.character,
|
|
21189
|
+
Comment: L.blockComment,
|
|
21190
|
+
ProcessingInst: L.processingInstruction,
|
|
21191
|
+
DoctypeDecl: L.documentMeta,
|
|
21192
|
+
Cdata: L.special(L.string)
|
|
21189
21193
|
}), n_ = A3.deserialize({
|
|
21190
21194
|
version: 14,
|
|
21191
21195
|
states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",
|
|
@@ -21431,7 +21435,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21431
21435
|
}), we(() => {
|
|
21432
21436
|
const s = new F({
|
|
21433
21437
|
doc: i.value,
|
|
21434
|
-
extensions: [Tb, a_(), F.lineWrapping,
|
|
21438
|
+
extensions: [Tb, a_(), F.lineWrapping, w0.readOnly.of(!0)],
|
|
21435
21439
|
parent: document.querySelector("#xml-editor")
|
|
21436
21440
|
});
|
|
21437
21441
|
s.dom.style.width = "100%";
|
|
@@ -21554,11 +21558,11 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21554
21558
|
url: i == null ? void 0 : i.blobUrl,
|
|
21555
21559
|
extension: r.value
|
|
21556
21560
|
}]), r = t0(() => {
|
|
21557
|
-
const
|
|
21558
|
-
if (!
|
|
21559
|
-
const z =
|
|
21560
|
-
let
|
|
21561
|
-
return
|
|
21561
|
+
const H = o.value;
|
|
21562
|
+
if (!H) return;
|
|
21563
|
+
const z = H.lastIndexOf(".");
|
|
21564
|
+
let R = H == null ? void 0 : H.slice(z + 1);
|
|
21565
|
+
return R = R == null ? void 0 : R.toLowerCase(), R;
|
|
21562
21566
|
}), a = t0(() => (o.value, c.value || d.value));
|
|
21563
21567
|
t0(() => ({
|
|
21564
21568
|
isUv: c.value,
|
|
@@ -21566,18 +21570,18 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21566
21570
|
isCyd: d.value
|
|
21567
21571
|
}));
|
|
21568
21572
|
const h = t0(() => (r == null ? void 0 : r.value) === "cpt"), c = t0(() => (r == null ? void 0 : r.value) === "uv"), d = t0(() => (r == null ? void 0 : r.value) === "cyd"), u = t0(() => (r == null ? void 0 : r.value) === "txt"), f = t0(() => {
|
|
21569
|
-
var
|
|
21570
|
-
return ((z = (
|
|
21573
|
+
var H, z, R, _, B, Y;
|
|
21574
|
+
return ((z = (H = i.blobUrl) == null ? void 0 : H.toUpperCase()) == null ? void 0 : z.includes(".OBJ")) || ((_ = (R = i.blobUrl) == null ? void 0 : R.toUpperCase()) == null ? void 0 : _.includes(".STL")) || ((Y = (B = i.blobUrl) == null ? void 0 : B.toUpperCase()) == null ? void 0 : Y.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
|
|
21571
21575
|
}), p = t0(() => (r == null ? void 0 : r.value) === "ls"), g = t0(() => {
|
|
21572
|
-
var
|
|
21573
|
-
return ((z = (
|
|
21576
|
+
var H, z;
|
|
21577
|
+
return ((z = (H = i.blobUrl) == null ? void 0 : H.toUpperCase()) == null ? void 0 : z.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
|
|
21574
21578
|
}), v = t0(() => g.value), w = t0(() => (r == null ? void 0 : r.value) === "docx"), y = t0(() => (r == null ? void 0 : r.value) === "csv"), D = t0(() => (r == null ? void 0 : r.value) === "xlsx"), k = t0(() => (r == null ? void 0 : r.value) === "pdf"), O = t0(() => {
|
|
21575
|
-
const
|
|
21576
|
-
return
|
|
21579
|
+
const H = r == null ? void 0 : r.value;
|
|
21580
|
+
return H === "jpg" || H === "png";
|
|
21577
21581
|
}), x = t0(() => (r == null ? void 0 : r.value) === "pptx"), S = t0(() => (r == null ? void 0 : r.value) === "mp4"), V = t0(() => !u && !p && !v && !w && !D && !k && !O && !x);
|
|
21578
21582
|
return d1(() => {
|
|
21579
21583
|
t("destroy");
|
|
21580
|
-
}), (
|
|
21584
|
+
}), (H, z) => (b(), A("div", C_, [
|
|
21581
21585
|
a.value ? (b(), A("div", k_, [
|
|
21582
21586
|
Q(_s, {
|
|
21583
21587
|
files: l.value,
|
|
@@ -21599,7 +21603,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21599
21603
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21600
21604
|
])) : i0("", !0),
|
|
21601
21605
|
f.value || g.value ? (b(), A("div", D_, [
|
|
21602
|
-
(b(),
|
|
21606
|
+
(b(), $(_s, {
|
|
21603
21607
|
files: l.value,
|
|
21604
21608
|
key: i == null ? void 0 : i.fullScreen
|
|
21605
21609
|
}, null, 8, ["files"]))
|
|
@@ -21727,7 +21731,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21727
21731
|
}));
|
|
21728
21732
|
}), (p, g) => {
|
|
21729
21733
|
const v = X("el-icon");
|
|
21730
|
-
return b(),
|
|
21734
|
+
return b(), $(Mn, {
|
|
21731
21735
|
class: "file-preview-dialog",
|
|
21732
21736
|
visible: s.value,
|
|
21733
21737
|
onBeforeDestroy: f,
|
|
@@ -21767,7 +21771,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21767
21771
|
return [
|
|
21768
21772
|
o0("div", j_, [
|
|
21769
21773
|
g[0] || (g[0] = o0("div", { class: "file-preview-header" }, null, -1)),
|
|
21770
|
-
(b(),
|
|
21774
|
+
(b(), $(Hr, {
|
|
21771
21775
|
class: "file-preview-content",
|
|
21772
21776
|
fileDataList: o.value,
|
|
21773
21777
|
key: (w = o.value) == null ? void 0 : w.length,
|
|
@@ -21807,7 +21811,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21807
21811
|
const a = G(Array.isArray(t.modelValue) ? t.modelValue : []), h = G(!1), c = G(""), d = G(""), u = G(Array.isArray(t.modelValue) ? t.modelValue : []), f = () => {
|
|
21808
21812
|
h.value = !0, u.value = o.value, a.value = o.value;
|
|
21809
21813
|
}, p = async (x) => {
|
|
21810
|
-
var V,
|
|
21814
|
+
var V, H;
|
|
21811
21815
|
let S;
|
|
21812
21816
|
if ((V = x == null ? void 0 : x.url) != null && V.includes("http") ? S = await h8.get(x.url, {
|
|
21813
21817
|
responseType: "blob",
|
|
@@ -21815,27 +21819,27 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21815
21819
|
"Content-Type": "application/json"
|
|
21816
21820
|
}
|
|
21817
21821
|
}) : S = await t8({
|
|
21818
|
-
url: (
|
|
21822
|
+
url: (H = Y2(x)) == null ? void 0 : H.url
|
|
21819
21823
|
}), !x.url.toUpperCase().includes(".OBJ") && !x.url.toUpperCase().includes(".STL") && !x.url.toUpperCase().includes(".MTL") && !x.url.toUpperCase().includes(".URDF")) {
|
|
21820
21824
|
let z = URL.createObjectURL(S.data);
|
|
21821
21825
|
d.value = z;
|
|
21822
21826
|
} else
|
|
21823
21827
|
d.value = x == null ? void 0 : x.url;
|
|
21824
21828
|
}, g = async (x) => {
|
|
21825
|
-
var V,
|
|
21829
|
+
var V, H, z, R, _, B, Y, W, r0;
|
|
21826
21830
|
if ((x == null ? void 0 : x.oldUrl) || (x == null ? void 0 : x.url)) {
|
|
21827
|
-
const
|
|
21831
|
+
const g0 = pu.service({
|
|
21828
21832
|
lock: !0,
|
|
21829
21833
|
text: "Loading",
|
|
21830
21834
|
background: "rgba(0, 0, 0, 0.7)"
|
|
21831
21835
|
});
|
|
21832
|
-
c.value = x != null && x.oldUrl ? (z = x == null ? void 0 : x.oldUrl) == null ? void 0 : z.split("/")[((
|
|
21833
|
-
|
|
21836
|
+
c.value = x != null && x.oldUrl ? (z = x == null ? void 0 : x.oldUrl) == null ? void 0 : z.split("/")[((H = (V = x == null ? void 0 : x.oldUrl) == null ? void 0 : V.split("/")) == null ? void 0 : H.length) - 1] : (x == null ? void 0 : x.name) + "." + ((r0 = (_ = (R = Y2(x)) == null ? void 0 : R.url) == null ? void 0 : _.split(".")) == null ? void 0 : r0[((W = (Y = (B = Y2(x)) == null ? void 0 : B.url) == null ? void 0 : Y.split(".")) == null ? void 0 : W.length) - 1]), await p(x).finally(() => {
|
|
21837
|
+
g0.close();
|
|
21834
21838
|
});
|
|
21835
21839
|
} else {
|
|
21836
21840
|
c.value = x == null ? void 0 : x.name;
|
|
21837
|
-
const
|
|
21838
|
-
d.value = URL.createObjectURL(
|
|
21841
|
+
const g0 = x.raw;
|
|
21842
|
+
d.value = URL.createObjectURL(g0);
|
|
21839
21843
|
}
|
|
21840
21844
|
r.value = [{
|
|
21841
21845
|
name: c.value,
|
|
@@ -21845,35 +21849,35 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21845
21849
|
l.value = !1;
|
|
21846
21850
|
}, w = (x) => {
|
|
21847
21851
|
var S;
|
|
21848
|
-
u.value = (S = Y2(u.value)) == null ? void 0 : S.filter((V,
|
|
21852
|
+
u.value = (S = Y2(u.value)) == null ? void 0 : S.filter((V, H) => H !== x), a.value = u.value;
|
|
21849
21853
|
}, y = (x) => {
|
|
21850
21854
|
var _;
|
|
21851
|
-
const S = x.split(","), V = (_ = S == null ? void 0 : S[0]) == null ? void 0 : _.match(/:(.*?);/)[1],
|
|
21852
|
-
let z =
|
|
21853
|
-
const
|
|
21855
|
+
const S = x.split(","), V = (_ = S == null ? void 0 : S[0]) == null ? void 0 : _.match(/:(.*?);/)[1], H = atob(S[1]);
|
|
21856
|
+
let z = H.length;
|
|
21857
|
+
const R = new Uint8Array(z);
|
|
21854
21858
|
for (; z--; )
|
|
21855
|
-
|
|
21856
|
-
return new Blob([
|
|
21859
|
+
R[z] = H.charCodeAt(z);
|
|
21860
|
+
return new Blob([R], { type: V });
|
|
21857
21861
|
}, D = async () => {
|
|
21858
|
-
var
|
|
21862
|
+
var H;
|
|
21859
21863
|
s.value = !0;
|
|
21860
|
-
const x = (
|
|
21864
|
+
const x = (H = a.value) == null ? void 0 : H.map(async (z) => {
|
|
21861
21865
|
if (z != null && z.base64) {
|
|
21862
|
-
const
|
|
21863
|
-
return
|
|
21866
|
+
const R = new FormData(), _ = y(z == null ? void 0 : z.base64);
|
|
21867
|
+
return R.append("file", _, z == null ? void 0 : z.name), await Di(R);
|
|
21864
21868
|
} else if (z != null && z.raw) {
|
|
21865
|
-
const
|
|
21866
|
-
return
|
|
21869
|
+
const R = new FormData();
|
|
21870
|
+
return R.append("file", z == null ? void 0 : z.raw, z == null ? void 0 : z.name), await Di(R);
|
|
21867
21871
|
} else
|
|
21868
21872
|
return z;
|
|
21869
21873
|
}), S = await Promise.all(x);
|
|
21870
21874
|
let V = [];
|
|
21871
21875
|
S == null || S.map((z) => {
|
|
21872
|
-
var
|
|
21876
|
+
var R, _, B, Y, W, r0;
|
|
21873
21877
|
return V.push({
|
|
21874
|
-
name: ((_ = (
|
|
21875
|
-
url: ((Y = (
|
|
21876
|
-
}), (
|
|
21878
|
+
name: ((_ = (R = z == null ? void 0 : z.data) == null ? void 0 : R.result) == null ? void 0 : _.fileName) ?? (z == null ? void 0 : z.name),
|
|
21879
|
+
url: ((Y = (B = z == null ? void 0 : z.data) == null ? void 0 : B.result) == null ? void 0 : Y.url) ?? (z == null ? void 0 : z.url)
|
|
21880
|
+
}), (r0 = (W = z == null ? void 0 : z.data) == null ? void 0 : W.result) == null ? void 0 : r0.url;
|
|
21877
21881
|
}), B3.success("上传成功"), o.value = V, i("update:modelValue", V), i("change", V), a.value = [], h.value = !1, s.value = !1;
|
|
21878
21882
|
}, k = () => {
|
|
21879
21883
|
h.value = !1, a.value = o.value, u.value = o.value;
|
|
@@ -21881,13 +21885,13 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21881
21885
|
if (!x) return;
|
|
21882
21886
|
const S = new FileReader();
|
|
21883
21887
|
S.onload = (V) => {
|
|
21884
|
-
const
|
|
21885
|
-
|
|
21888
|
+
const H = a.value === "" ? [] : a.value;
|
|
21889
|
+
H.push({
|
|
21886
21890
|
name: x.name,
|
|
21887
21891
|
size: x.size,
|
|
21888
21892
|
type: x.type,
|
|
21889
21893
|
base64: V.target.result
|
|
21890
|
-
}), a.value =
|
|
21894
|
+
}), a.value = H;
|
|
21891
21895
|
}, S.onerror = (V) => {
|
|
21892
21896
|
console.error("文件读取错误:", V), fileData.value = {
|
|
21893
21897
|
name: "",
|
|
@@ -21898,7 +21902,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21898
21902
|
}, S.readAsDataURL(x.raw);
|
|
21899
21903
|
};
|
|
21900
21904
|
return (x, S) => {
|
|
21901
|
-
const V = X("svg-icon"),
|
|
21905
|
+
const V = X("svg-icon"), H = X("el-icon"), z = X("el-upload"), R = Yr("loading");
|
|
21902
21906
|
return t != null && t.isEdit ? (b(), A("div", U_, [
|
|
21903
21907
|
Q(me, {
|
|
21904
21908
|
type: "primary",
|
|
@@ -21907,8 +21911,8 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21907
21911
|
modelValue: "上传"
|
|
21908
21912
|
}),
|
|
21909
21913
|
o0("div", F_, [
|
|
21910
|
-
(b(!0), A(
|
|
21911
|
-
var
|
|
21914
|
+
(b(!0), A(y0, null, C0(o.value, (_) => {
|
|
21915
|
+
var B, Y, W, r0;
|
|
21912
21916
|
return b(), A("div", {
|
|
21913
21917
|
class: "upload-content-title",
|
|
21914
21918
|
key: _,
|
|
@@ -21917,13 +21921,13 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21917
21921
|
o0("div", {
|
|
21918
21922
|
style: { width: "90%", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
21919
21923
|
title: _ == null ? void 0 : _.name
|
|
21920
|
-
}, W0((Y = (
|
|
21924
|
+
}, W0((Y = (B = _ == null ? void 0 : _.url) == null ? void 0 : B.split(".")) != null && Y[1] ? (_ == null ? void 0 : _.name) + "." + ((r0 = (W = _ == null ? void 0 : _.url) == null ? void 0 : W.split(".")) == null ? void 0 : r0[1]) : _ == null ? void 0 : _.name), 9, q_),
|
|
21921
21925
|
o0("div", Y_, [
|
|
21922
21926
|
Q(V, {
|
|
21923
21927
|
class: "icon-blue",
|
|
21924
21928
|
name: "EyeFill",
|
|
21925
21929
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
21926
|
-
onClick: (
|
|
21930
|
+
onClick: (g0) => g(_)
|
|
21927
21931
|
}, null, 8, ["onClick"])
|
|
21928
21932
|
])
|
|
21929
21933
|
]);
|
|
@@ -21951,7 +21955,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21951
21955
|
o0("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
|
|
21952
21956
|
])),
|
|
21953
21957
|
default: I(() => [
|
|
21954
|
-
Q(
|
|
21958
|
+
Q(H, { class: "el-icon--upload" }, {
|
|
21955
21959
|
default: I(() => [
|
|
21956
21960
|
Q(nt(c8))
|
|
21957
21961
|
]),
|
|
@@ -21962,23 +21966,23 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21962
21966
|
o0("em", null, "点击上传")
|
|
21963
21967
|
], -1))
|
|
21964
21968
|
]),
|
|
21965
|
-
file: I(({ file: _, index:
|
|
21966
|
-
var Y,
|
|
21969
|
+
file: I(({ file: _, index: B }) => {
|
|
21970
|
+
var Y, W, r0, g0;
|
|
21967
21971
|
return [
|
|
21968
21972
|
o0("div", K_, [
|
|
21969
|
-
o0("div", X_, W0((
|
|
21973
|
+
o0("div", X_, W0((W = (Y = _ == null ? void 0 : _.url) == null ? void 0 : Y.split(".")) != null && W[1] ? (_ == null ? void 0 : _.name) + "." + ((g0 = (r0 = _ == null ? void 0 : _.url) == null ? void 0 : r0.split(".")) == null ? void 0 : g0[1]) : _ == null ? void 0 : _.name), 1),
|
|
21970
21974
|
o0("div", Q_, [
|
|
21971
21975
|
Q(V, {
|
|
21972
21976
|
class: "icon-blue",
|
|
21973
21977
|
name: "EyeFill",
|
|
21974
21978
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
21975
|
-
onClick: (
|
|
21979
|
+
onClick: (_0) => g(_)
|
|
21976
21980
|
}, null, 8, ["onClick"]),
|
|
21977
21981
|
Q(V, {
|
|
21978
21982
|
class: "icon-blue",
|
|
21979
21983
|
name: "Cancel",
|
|
21980
21984
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
21981
|
-
onClick: (
|
|
21985
|
+
onClick: (_0) => w(B)
|
|
21982
21986
|
}, null, 8, ["onClick"])
|
|
21983
21987
|
])
|
|
21984
21988
|
])
|
|
@@ -21987,7 +21991,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
21987
21991
|
_: 1
|
|
21988
21992
|
}, 8, ["file-list"])
|
|
21989
21993
|
])), [
|
|
21990
|
-
[
|
|
21994
|
+
[R, s.value]
|
|
21991
21995
|
])
|
|
21992
21996
|
]),
|
|
21993
21997
|
footer: I(() => [
|
|
@@ -22009,7 +22013,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
22009
22013
|
]),
|
|
22010
22014
|
_: 1
|
|
22011
22015
|
}, 8, ["visible"]),
|
|
22012
|
-
l.value ? (b(),
|
|
22016
|
+
l.value ? (b(), $(Ir, {
|
|
22013
22017
|
key: 0,
|
|
22014
22018
|
fileDataList: r.value,
|
|
22015
22019
|
onDestroy: v
|
|
@@ -22057,7 +22061,7 @@ const c_ = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
|
|
|
22057
22061
|
};
|
|
22058
22062
|
return (h, c) => {
|
|
22059
22063
|
const d = X("el-icon"), u = X("el-upload");
|
|
22060
|
-
return b(),
|
|
22064
|
+
return b(), $(u, {
|
|
22061
22065
|
class: "upload-demo",
|
|
22062
22066
|
drag: "",
|
|
22063
22067
|
action: "#",
|
|
@@ -22483,8 +22487,8 @@ var ay = /* @__PURE__ */ h2({
|
|
|
22483
22487
|
function l() {
|
|
22484
22488
|
const x = s.value, S = t.signaturePad.toData(), V = Math.max(window.devicePixelRatio || 1, 1);
|
|
22485
22489
|
x.width = x.offsetWidth * V, x.height = x.offsetHeight * V;
|
|
22486
|
-
const
|
|
22487
|
-
|
|
22490
|
+
const H = x.getContext("2d");
|
|
22491
|
+
H && H.scale(V, V), t.signaturePad.clear(), t.signatureData = D4, t.signaturePad.fromData(S);
|
|
22488
22492
|
}
|
|
22489
22493
|
function r(x = n.saveType, S) {
|
|
22490
22494
|
if (t.signaturePad.isEmpty()) {
|
|
@@ -22672,7 +22676,7 @@ const hy = { class: "signature-wrap" }, dy = { class: "signature-types" }, uy =
|
|
|
22672
22676
|
return (h, c) => {
|
|
22673
22677
|
var p, g, v;
|
|
22674
22678
|
const d = X("el-input-number"), u = X("el-color-picker"), f = X("el-button");
|
|
22675
|
-
return b(), A(
|
|
22679
|
+
return b(), A(y0, null, [
|
|
22676
22680
|
o0("div", hy, [
|
|
22677
22681
|
f0(h.$slots, "signatureRender", {}, void 0, !0),
|
|
22678
22682
|
o0("div", dy, [
|
|
@@ -22750,7 +22754,7 @@ const hy = { class: "signature-wrap" }, dy = { class: "signature-types" }, uy =
|
|
|
22750
22754
|
};
|
|
22751
22755
|
return (i, s) => {
|
|
22752
22756
|
const o = X("el-dropdown-menu"), l = X("el-dropdown");
|
|
22753
|
-
return b(),
|
|
22757
|
+
return b(), $(l, { onVisibleChange: t }, {
|
|
22754
22758
|
dropdown: I(() => [
|
|
22755
22759
|
Q(o, null, {
|
|
22756
22760
|
default: I(() => [
|
|
@@ -22920,7 +22924,7 @@ const hy = { class: "signature-wrap" }, dy = { class: "signature-types" }, uy =
|
|
|
22920
22924
|
const e = n;
|
|
22921
22925
|
return (t, i) => {
|
|
22922
22926
|
const s = X("el-image");
|
|
22923
|
-
return b(),
|
|
22927
|
+
return b(), $(s, {
|
|
22924
22928
|
style: { width: "100px", height: "100px" },
|
|
22925
22929
|
src: e == null ? void 0 : e.modelValue,
|
|
22926
22930
|
fit: "contain",
|
|
@@ -22998,14 +23002,14 @@ const yy = ["onDblclick"], Sy = {
|
|
|
22998
23002
|
{ deep: !0, immediate: !0 }
|
|
22999
23003
|
), (c, d) => {
|
|
23000
23004
|
const u = X("el-tab-pane"), f = X("el-tabs");
|
|
23001
|
-
return b(),
|
|
23005
|
+
return b(), $(f, {
|
|
23002
23006
|
type: "card",
|
|
23003
23007
|
modelValue: o.value,
|
|
23004
23008
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => o.value = p),
|
|
23005
23009
|
"tab-position": t == null ? void 0 : t.tabPosition
|
|
23006
23010
|
}, {
|
|
23007
23011
|
default: I(() => [
|
|
23008
|
-
(b(!0), A(
|
|
23012
|
+
(b(!0), A(y0, null, C0(s.value, (p, g) => (b(), $(u, {
|
|
23009
23013
|
key: g,
|
|
23010
23014
|
name: p == null ? void 0 : p.value
|
|
23011
23015
|
}, {
|
|
@@ -23017,11 +23021,11 @@ const yy = ["onDblclick"], Sy = {
|
|
|
23017
23021
|
onDblclick: (w) => r(p)
|
|
23018
23022
|
}, W0(p == null ? void 0 : p.label), 41, yy)) : i0("", !0),
|
|
23019
23023
|
p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (b(), A("div", Sy, [
|
|
23020
|
-
(b(!0), A(
|
|
23024
|
+
(b(!0), A(y0, null, C0(p == null ? void 0 : p.contents, (w, y) => (b(), A("div", {
|
|
23021
23025
|
key: y,
|
|
23022
23026
|
class: "tabs-children"
|
|
23023
23027
|
}, [
|
|
23024
|
-
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (b(),
|
|
23028
|
+
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (b(), $(Ft(l(w == null ? void 0 : w.type)), {
|
|
23025
23029
|
key: 0,
|
|
23026
23030
|
modelValue: w.value,
|
|
23027
23031
|
"onUpdate:modelValue": (D) => w.value = D,
|
|
@@ -23033,12 +23037,12 @@ const yy = ["onDblclick"], Sy = {
|
|
|
23033
23037
|
];
|
|
23034
23038
|
}),
|
|
23035
23039
|
default: I(() => [
|
|
23036
|
-
(b(!0), A(
|
|
23040
|
+
(b(!0), A(y0, null, C0(p == null ? void 0 : p.children, (v, w) => (b(), A("div", {
|
|
23037
23041
|
key: w,
|
|
23038
23042
|
class: "tabs-contents"
|
|
23039
23043
|
}, [
|
|
23040
23044
|
f0(c.$slots, `${(v == null ? void 0 : v.value) ?? ""}_operateButtons`, {}, void 0, !0),
|
|
23041
|
-
v != null && v.value || (v == null ? void 0 : v.value) === "" ? (b(),
|
|
23045
|
+
v != null && v.value || (v == null ? void 0 : v.value) === "" ? (b(), $(Ft(l(v == null ? void 0 : v.type)), {
|
|
23042
23046
|
key: 0,
|
|
23043
23047
|
modelValue: v.value,
|
|
23044
23048
|
"onUpdate:modelValue": (y) => v.value = y,
|