@a2simcode/ui 0.0.58 → 0.0.59
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/components/index.d.ts +1 -0
- package/dist/components/table/index.d.ts +7 -6
- package/dist/components/table/src/interface.d.ts +2 -1
- package/dist/simcode-ui.es.js +659 -656
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/examples/form/basic.vue +150 -2
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -545,7 +545,7 @@ const Ps = (e, t, n, o) => {
|
|
|
545
545
|
"j-autocomplete",
|
|
546
546
|
"j-rate",
|
|
547
547
|
"j-slider"
|
|
548
|
-
].includes(e) || e.indexOf("j-input") != -1
|
|
548
|
+
].includes(e) || e.indexOf("j-input") != -1, Ld = (e) => [
|
|
549
549
|
"j-input",
|
|
550
550
|
"j-textarea",
|
|
551
551
|
"j-select",
|
|
@@ -934,15 +934,15 @@ const Ls = /* @__PURE__ */ oe({
|
|
|
934
934
|
const n = $(), o = $(600), i = $(400), a = $(!0), l = $(!0), r = $(!0), s = $(""), c = $([]), u = $(!0), d = $(), f = Ki(), h = $(), { getPageName: p } = Qd(), g = () => {
|
|
935
935
|
const z = p();
|
|
936
936
|
return z || (typeof f.value == "string" ? f.value : "");
|
|
937
|
-
}, v = $(!1), y = $([]),
|
|
937
|
+
}, v = $(!1), y = $([]), b = async (z) => {
|
|
938
938
|
if (d.value?.validateSteps) {
|
|
939
939
|
Ho(!0);
|
|
940
940
|
const H = d.value.validateSteps(z);
|
|
941
941
|
return Ho(!1), H;
|
|
942
942
|
}
|
|
943
943
|
return !0;
|
|
944
|
-
},
|
|
945
|
-
let w,
|
|
944
|
+
}, x = () => d.value?.beforeClose ? d.value.beforeClose() : !0;
|
|
945
|
+
let w, j, m, S = 0;
|
|
946
946
|
const k = async (z) => {
|
|
947
947
|
if (d.value) {
|
|
948
948
|
if (S = 0, d.value.getConfig) {
|
|
@@ -972,8 +972,8 @@ const Ls = /* @__PURE__ */ oe({
|
|
|
972
972
|
await k(z);
|
|
973
973
|
}, 100);
|
|
974
974
|
}
|
|
975
|
-
},
|
|
976
|
-
f.value = z?.name, o.value = z?.width || 600, i.value = z?.height || 400, a.value = z?.hasBtns !== !1, l.value = z?.hasSaveBtn !== !1, r.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (u.value = !0), h.value = z?.config || {}, s.value = z?.btnText || "保存", w = z?.afterOk || null,
|
|
975
|
+
}, E = (z) => {
|
|
976
|
+
f.value = z?.name, o.value = z?.width || 600, i.value = z?.height || 400, a.value = z?.hasBtns !== !1, l.value = z?.hasSaveBtn !== !1, r.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (u.value = !0), h.value = z?.config || {}, s.value = z?.btnText || "保存", w = z?.afterOk || null, j = z?.afterClose || null, m = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), Tt(async () => {
|
|
977
977
|
n.value.showLoading("加载中"), await k(z.param || {});
|
|
978
978
|
});
|
|
979
979
|
}, P = async () => {
|
|
@@ -983,21 +983,21 @@ const Ls = /* @__PURE__ */ oe({
|
|
|
983
983
|
z && (n.value.close(), w && await w(z)), Ho(!1);
|
|
984
984
|
}
|
|
985
985
|
}, T = () => {
|
|
986
|
-
d.value?.closed && d.value.closed(),
|
|
986
|
+
d.value?.closed && d.value.closed(), j && j();
|
|
987
987
|
}, L = () => {
|
|
988
988
|
m && m();
|
|
989
989
|
};
|
|
990
990
|
return ef({
|
|
991
991
|
getPageName: g
|
|
992
|
-
}), t({ open:
|
|
992
|
+
}), t({ open: E }), (z, H) => {
|
|
993
993
|
const M = B("j-layer");
|
|
994
994
|
return C(), O(M, {
|
|
995
995
|
ref_key: "layerRef",
|
|
996
996
|
ref: n,
|
|
997
997
|
width: o.value,
|
|
998
998
|
height: i.value,
|
|
999
|
-
"before-close":
|
|
1000
|
-
"validate-steps":
|
|
999
|
+
"before-close": x,
|
|
1000
|
+
"validate-steps": b,
|
|
1001
1001
|
"is-step": v.value,
|
|
1002
1002
|
steps: y.value,
|
|
1003
1003
|
"has-btns": a.value,
|
|
@@ -1472,20 +1472,20 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
1472
1472
|
label: y.label
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: D(() => [
|
|
1475
|
-
(C(!0), A(ve, null, Se(y.children, (
|
|
1476
|
-
key:
|
|
1477
|
-
label:
|
|
1478
|
-
value:
|
|
1479
|
-
disabled: !!
|
|
1475
|
+
(C(!0), A(ve, null, Se(y.children, (b) => (C(), O(p, {
|
|
1476
|
+
key: b.value,
|
|
1477
|
+
label: b.label,
|
|
1478
|
+
value: b.value || " ",
|
|
1479
|
+
disabled: !!b.disabled
|
|
1480
1480
|
}, {
|
|
1481
1481
|
default: D(() => [
|
|
1482
1482
|
V("div", vf, [
|
|
1483
|
-
|
|
1483
|
+
b.icon ? (C(), O(Kn, {
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
class: "j-select-option-icon",
|
|
1486
|
-
icon:
|
|
1486
|
+
icon: b.icon
|
|
1487
1487
|
}, null, 8, ["icon"])) : W("", !0),
|
|
1488
|
-
V("div", null, xe(
|
|
1488
|
+
V("div", null, xe(b.label), 1)
|
|
1489
1489
|
])
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 2
|
|
@@ -1884,7 +1884,7 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
1884
1884
|
ref_key: "autocompleteRef",
|
|
1885
1885
|
ref: i,
|
|
1886
1886
|
modelValue: l.value,
|
|
1887
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1887
|
+
"onUpdate:modelValue": v[0] || (v[0] = (b) => l.value = b),
|
|
1888
1888
|
"fetch-suggestions": r,
|
|
1889
1889
|
placeholder: e.placeholder,
|
|
1890
1890
|
clearable: e.clearable,
|
|
@@ -1908,9 +1908,9 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
1908
1908
|
onFocus: d,
|
|
1909
1909
|
onBlur: f
|
|
1910
1910
|
}, dn({
|
|
1911
|
-
default: D(({ item:
|
|
1912
|
-
Oe(g.$slots, "default", { item:
|
|
1913
|
-
V("div", null, xe(
|
|
1911
|
+
default: D(({ item: b }) => [
|
|
1912
|
+
Oe(g.$slots, "default", { item: b }, () => [
|
|
1913
|
+
V("div", null, xe(b[e.valueKey] || ""), 1)
|
|
1914
1914
|
])
|
|
1915
1915
|
]),
|
|
1916
1916
|
_: 2
|
|
@@ -2108,10 +2108,10 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2108
2108
|
set(H) {
|
|
2109
2109
|
s.value = H;
|
|
2110
2110
|
}
|
|
2111
|
-
}), v = R(() => n.left), y = R(() => n.right),
|
|
2111
|
+
}), v = R(() => n.left), y = R(() => n.right), b = R(() => n.top), x = R(() => n.bottom), w = R(() => v.value ? u.value && t.hideMidWhenNarrow && y.value ? "50%" : u.value && t.hideMidWhenNarrow && !y.value ? "100%" : typeof f.value == "number" ? f.value + "px" : f.value : "0"), j = R(() => y.value ? u.value && t.hideMidWhenNarrow && v.value ? "50%" : u.value && t.hideMidWhenNarrow && !v.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), m = R(() => b.value ? typeof p.value == "number" ? p.value + "px" : p.value : "0"), S = R(() => x.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), k = R(() => ({
|
|
2112
2112
|
minWidth: t.midMinWidth + "px",
|
|
2113
2113
|
minHeight: t.midMinHeight + "px"
|
|
2114
|
-
})),
|
|
2114
|
+
})), E = (H, M) => {
|
|
2115
2115
|
d.type = H, d.isMove = !0, d.pageX = M.pageX, d.pageY = M.pageY, d.h = i.value.clientHeight, d.w = i.value.clientWidth;
|
|
2116
2116
|
const _ = o.value.clientWidth, I = o.value.clientHeight;
|
|
2117
2117
|
switch (H) {
|
|
@@ -2208,11 +2208,11 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2208
2208
|
e.leftMove ? (C(), A("div", {
|
|
2209
2209
|
key: 0,
|
|
2210
2210
|
class: "j-layout--move",
|
|
2211
|
-
onMousedown: M[0] || (M[0] = (_) =>
|
|
2211
|
+
onMousedown: M[0] || (M[0] = (_) => E("left", _))
|
|
2212
2212
|
}, null, 32)) : W("", !0)
|
|
2213
2213
|
], 4)) : W("", !0),
|
|
2214
2214
|
u.value ? W("", !0) : (C(), A("div", Pf, [
|
|
2215
|
-
|
|
2215
|
+
b.value ? (C(), A("div", {
|
|
2216
2216
|
key: 0,
|
|
2217
2217
|
class: "j-layout--top",
|
|
2218
2218
|
style: we({ height: m.value })
|
|
@@ -2223,7 +2223,7 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2223
2223
|
e.topMove ? (C(), A("div", {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
class: "j-layout--move",
|
|
2226
|
-
onMousedown: M[1] || (M[1] = (_) =>
|
|
2226
|
+
onMousedown: M[1] || (M[1] = (_) => E("top", _))
|
|
2227
2227
|
}, null, 32)) : W("", !0)
|
|
2228
2228
|
], 4)) : W("", !0),
|
|
2229
2229
|
V("div", {
|
|
@@ -2234,7 +2234,7 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2234
2234
|
}, [
|
|
2235
2235
|
Oe(H.$slots, "default")
|
|
2236
2236
|
], 4),
|
|
2237
|
-
|
|
2237
|
+
x.value ? (C(), A("div", {
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
class: "j-layout--bottom",
|
|
2240
2240
|
style: we({ height: S.value })
|
|
@@ -2245,14 +2245,14 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2245
2245
|
e.bottomMove ? (C(), A("div", {
|
|
2246
2246
|
key: 0,
|
|
2247
2247
|
class: "j-layout--move",
|
|
2248
|
-
onMousedown: M[2] || (M[2] = (_) =>
|
|
2248
|
+
onMousedown: M[2] || (M[2] = (_) => E("bottom", _))
|
|
2249
2249
|
}, null, 32)) : W("", !0)
|
|
2250
2250
|
], 4)) : W("", !0)
|
|
2251
2251
|
])),
|
|
2252
2252
|
y.value ? (C(), A("div", {
|
|
2253
2253
|
key: 2,
|
|
2254
2254
|
class: "j-layout--right",
|
|
2255
|
-
style: we({ width:
|
|
2255
|
+
style: we({ width: j.value })
|
|
2256
2256
|
}, [
|
|
2257
2257
|
V("div", Rf, [
|
|
2258
2258
|
Oe(H.$slots, "right")
|
|
@@ -2260,7 +2260,7 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2260
2260
|
e.rightMove ? (C(), A("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
2262
|
class: "j-layout--move",
|
|
2263
|
-
onMousedown: M[3] || (M[3] = (_) =>
|
|
2263
|
+
onMousedown: M[3] || (M[3] = (_) => E("right", _))
|
|
2264
2264
|
}, null, 32)) : W("", !0)
|
|
2265
2265
|
], 4)) : W("", !0)
|
|
2266
2266
|
], 2));
|
|
@@ -2347,17 +2347,20 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2347
2347
|
}
|
|
2348
2348
|
},
|
|
2349
2349
|
setup(e) {
|
|
2350
|
-
const t = e, { formData: n, compsConfig: o, errorFields: i, span: a, labelWidth: l } = Gn(), { t: r } = St(), s = R(() =>
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2350
|
+
const t = e, { formData: n, compsConfig: o, errorFields: i, span: a, labelWidth: l } = Gn(), { t: r } = St(), s = R(() => {
|
|
2351
|
+
const p = mo({
|
|
2352
|
+
config: { ...t.config || {}, ...o?.value?.[t.id] || {} },
|
|
2353
|
+
getCompConfig: t.getCompConfig,
|
|
2354
|
+
formData: n
|
|
2355
|
+
});
|
|
2356
|
+
return p.needFormItem === void 0 && ["j-input-cards", "j-input-rows"].includes(c.value) && (p.needFormItem = !1), p;
|
|
2357
|
+
}), c = R(() => t.getCompType ? t.getCompType({ config: t.config, formData: n }) : t.type), u = R(() => rl(c.value) && !s.value?.notInput || s.value?.isInput), d = R(() => s.value?.labelWidth || l.value), f = R(() => (s.value?.rule || []).some((g) => g.required === !0)), h = R(() => {
|
|
2355
2358
|
const p = i?.value?.[t.id];
|
|
2356
2359
|
return p ? p.msg : "";
|
|
2357
2360
|
});
|
|
2358
2361
|
return (p, g) => {
|
|
2359
|
-
const v = B("j-comp"), y = B("el-form-item"),
|
|
2360
|
-
return s.value.display !== !1 && !e.isNotCol ? (C(), O(
|
|
2362
|
+
const v = B("j-comp"), y = B("el-form-item"), b = B("el-col");
|
|
2363
|
+
return s.value.display !== !1 && !e.isNotCol ? (C(), O(b, {
|
|
2361
2364
|
key: 0,
|
|
2362
2365
|
span: s.value.span || J(a),
|
|
2363
2366
|
style: we({
|
|
@@ -2366,7 +2369,7 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2366
2369
|
class: Pe(s.value.colClass || {})
|
|
2367
2370
|
}, {
|
|
2368
2371
|
default: D(() => [
|
|
2369
|
-
u.value ? (C(), O(y, {
|
|
2372
|
+
u.value && s.value.needFormItem !== !1 ? (C(), O(y, {
|
|
2370
2373
|
key: 0,
|
|
2371
2374
|
label: J(r)(s.value.notShowLabel ? "" : s.value.label || ""),
|
|
2372
2375
|
"label-position": s.value.labelPosition,
|
|
@@ -2476,26 +2479,26 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2476
2479
|
const n = e, o = t, { contextType: i } = Gd(), { formData: a, formChange: l, gutter: r } = Gn(), s = R(() => r?.value || 16), { registerMethod: c } = nf(), { getTableData: u, row: d, rowChange: f } = Yd(), h = n.row || d;
|
|
2477
2480
|
Xi({ getTableData: u, row: h, rowChange: f });
|
|
2478
2481
|
const p = R(
|
|
2479
|
-
() => rl(
|
|
2482
|
+
() => rl(b.value) && !v.value?.notInput || v.value?.isInput || b.value === "j-tabs" || b.value === "j-collapse"
|
|
2480
2483
|
), g = R({
|
|
2481
2484
|
get() {
|
|
2482
|
-
let
|
|
2483
|
-
if (h ?
|
|
2485
|
+
let E;
|
|
2486
|
+
if (h ? E = h[n.id] : a ? E = a[n.id] : E = n.modelValue, E === void 0 && b.value === "j-tabs") {
|
|
2484
2487
|
if (v.value?.defaultValue)
|
|
2485
2488
|
return v.value.defaultValue;
|
|
2486
2489
|
const P = n.children.findIndex((T) => T.config?.active);
|
|
2487
2490
|
return P > -1 ? "_tab" + P : "_tab0";
|
|
2488
2491
|
}
|
|
2489
|
-
if (
|
|
2492
|
+
if (E === void 0 && b.value === "j-collapse") {
|
|
2490
2493
|
if (v.value?.defaultValue)
|
|
2491
2494
|
return v.value.defaultValue;
|
|
2492
2495
|
const P = n.children.map((T, L) => ({ item: T, index: L })).filter(({ item: T }) => T.config?.active);
|
|
2493
2496
|
return v.value?.accordion ? P.length > 0 ? "_collapse" + P[0].index : "" : P.map(({ index: T }) => "_collapse" + T);
|
|
2494
2497
|
}
|
|
2495
|
-
return
|
|
2498
|
+
return E;
|
|
2496
2499
|
},
|
|
2497
|
-
set(
|
|
2498
|
-
h ? h[n.id] =
|
|
2500
|
+
set(E) {
|
|
2501
|
+
h ? h[n.id] = E : a && (a[n.id] = E), o("update:modelValue", E);
|
|
2499
2502
|
}
|
|
2500
2503
|
}), v = R(() => mo({
|
|
2501
2504
|
config: n.config,
|
|
@@ -2512,34 +2515,34 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2512
2515
|
row: h,
|
|
2513
2516
|
getTableData: u
|
|
2514
2517
|
})
|
|
2515
|
-
),
|
|
2516
|
-
const
|
|
2517
|
-
return
|
|
2518
|
+
), b = R(() => n.isTableCell && (y.value === "j-radio" || y.value === "j-checkbox") ? "j-select" : y.value === "j-textarea" ? "j-input" : ((y.value == null || y.value === "") && console.warn("组件类型不能为空"), y.value)), x = R(() => {
|
|
2519
|
+
const E = { ...v.value };
|
|
2520
|
+
return b.value === "j-layer-form" && (E.schema = n.children), b.value === "el-collapse-item" && E.label && (E.title = E.label, delete E.label), ["j-input-cards", "j-input-rows"].includes(y.value) && (E.columns = n.children), n.isTableCell && (y.value === "j-checkbox" && (E.multiple = !0), y.value === "j-select" && E.multiple && (E.collapseTags = !0, E.collapseTagsTooltip = !0), y.value === "j-switch" && (E.size = "small"), y.value === "j-textarea" && (E.type = "textarea")), E;
|
|
2518
2521
|
}), w = R(() => {
|
|
2519
|
-
if (
|
|
2522
|
+
if (b.value === "j-layer-form" || b.value === "j-input-rows" || b.value === "j-input-cards")
|
|
2520
2523
|
return {};
|
|
2521
|
-
const
|
|
2524
|
+
const E = {};
|
|
2522
2525
|
return n.children.forEach((P, T) => {
|
|
2523
2526
|
let L = P;
|
|
2524
|
-
|
|
2527
|
+
b.value === "j-tabs" && (L = {
|
|
2525
2528
|
...P,
|
|
2526
2529
|
type: "el-tab-pane",
|
|
2527
2530
|
config: {
|
|
2528
2531
|
...P.config || {},
|
|
2529
2532
|
name: "_tab" + T
|
|
2530
2533
|
}
|
|
2531
|
-
}, i == "form" && (L.config.needRow = L.config.needRow !== !1, L.config.needFormItem = L.config.needFormItem !== !1)),
|
|
2534
|
+
}, i == "form" && (L.config.needRow = L.config.needRow !== !1, L.config.needFormItem = L.config.needFormItem !== !1)), b.value === "j-collapse" && (L = {
|
|
2532
2535
|
...P,
|
|
2533
2536
|
type: "el-collapse-item",
|
|
2534
2537
|
config: {
|
|
2535
2538
|
...P.config || {},
|
|
2536
2539
|
name: "_collapse" + T
|
|
2537
2540
|
}
|
|
2538
|
-
}, i == "form" && (L.config.needRow = L.config.needRow !== !1, L.config.needFormItem = L.config.needFormItem !== !1)), L.slot ? (
|
|
2539
|
-
}),
|
|
2540
|
-
}),
|
|
2541
|
+
}, i == "form" && (L.config.needRow = L.config.needRow !== !1, L.config.needFormItem = L.config.needFormItem !== !1)), L.slot ? (E[L.slot] = E[L.slot] || [], E[L.slot].push(L)) : (E.default = E.default || [], E.default.push(L));
|
|
2542
|
+
}), E;
|
|
2543
|
+
}), j = (E) => {
|
|
2541
2544
|
const P = {
|
|
2542
|
-
...
|
|
2545
|
+
...E,
|
|
2543
2546
|
id: n.id,
|
|
2544
2547
|
formData: a,
|
|
2545
2548
|
row: h,
|
|
@@ -2550,8 +2553,8 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2550
2553
|
v.value?.change && v.value?.change(P), f && f(P), l && l(P), o("change", P);
|
|
2551
2554
|
}, m = $(), S = $([]), k = () => {
|
|
2552
2555
|
if (S.value.forEach((P) => P()), S.value = [], !c || !n.id || !m.value) return;
|
|
2553
|
-
const
|
|
2554
|
-
for (const [P, T] of
|
|
2556
|
+
const E = Object.entries(m.value);
|
|
2557
|
+
for (const [P, T] of E)
|
|
2555
2558
|
if (typeof T == "function" && !P.startsWith("_") && !P.startsWith("$")) {
|
|
2556
2559
|
const L = c(n.id, P, T);
|
|
2557
2560
|
L && typeof L == "function" && S.value.push(L);
|
|
@@ -2565,17 +2568,17 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2565
2568
|
), vt(() => {
|
|
2566
2569
|
k();
|
|
2567
2570
|
}), Yi(() => {
|
|
2568
|
-
S.value.forEach((
|
|
2569
|
-
}), (
|
|
2571
|
+
S.value.forEach((E) => E()), S.value = [];
|
|
2572
|
+
}), (E, P) => {
|
|
2570
2573
|
const T = B("JComp"), L = B("el-row");
|
|
2571
|
-
return
|
|
2574
|
+
return x.value.display != !1 && p.value ? (C(), O(wo(b.value), Re({
|
|
2572
2575
|
key: 0,
|
|
2573
2576
|
ref_key: "compRef",
|
|
2574
2577
|
ref: m
|
|
2575
|
-
},
|
|
2578
|
+
}, x.value, {
|
|
2576
2579
|
modelValue: g.value,
|
|
2577
2580
|
"onUpdate:modelValue": P[0] || (P[0] = (z) => g.value = z),
|
|
2578
|
-
onChange:
|
|
2581
|
+
onChange: j
|
|
2579
2582
|
}), dn({ _: 2 }, [
|
|
2580
2583
|
Se(w.value, (z, H) => ({
|
|
2581
2584
|
name: H,
|
|
@@ -2585,20 +2588,20 @@ const lf = de(Ls), rf = /* @__PURE__ */ oe({
|
|
|
2585
2588
|
}, { ref_for: !0 }, M), null, 16))), 128))
|
|
2586
2589
|
])
|
|
2587
2590
|
}))
|
|
2588
|
-
]), 1040, ["modelValue"])) :
|
|
2591
|
+
]), 1040, ["modelValue"])) : x.value.display != !1 ? (C(), O(wo(b.value), Re({
|
|
2589
2592
|
key: 1,
|
|
2590
2593
|
ref_key: "compRef",
|
|
2591
2594
|
ref: m
|
|
2592
|
-
},
|
|
2595
|
+
}, x.value, { onChange: j }), dn({ _: 2 }, [
|
|
2593
2596
|
Se(w.value, (z, H) => ({
|
|
2594
2597
|
name: H,
|
|
2595
2598
|
fn: D(() => [
|
|
2596
|
-
|
|
2599
|
+
x.value.needRow ? (C(), O(L, {
|
|
2597
2600
|
key: 0,
|
|
2598
2601
|
gutter: s.value
|
|
2599
2602
|
}, {
|
|
2600
2603
|
default: D(() => [
|
|
2601
|
-
|
|
2604
|
+
x.value.needFormItem ? (C(!0), A(ve, { key: 0 }, Se(z, (M) => (C(), O(Ds, Re({
|
|
2602
2605
|
key: M.id
|
|
2603
2606
|
}, { ref_for: !0 }, M), null, 16))), 128)) : (C(!0), A(ve, { key: 1 }, Se(z, (M) => (C(), O(T, Re({
|
|
2604
2607
|
key: M.id
|
|
@@ -2924,13 +2927,13 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
2924
2927
|
const N = {};
|
|
2925
2928
|
return i.heightMode === "auto" && (N.height = f.value + "px", N.flex = "none", i.maxHeight && (N.maxHeight = typeof i.maxHeight == "number" ? `${i.maxHeight}px` : i.maxHeight)), N;
|
|
2926
2929
|
}), p = $(null);
|
|
2927
|
-
let g = null, v = 0, y = 0,
|
|
2928
|
-
const
|
|
2929
|
-
let w = i.records.length,
|
|
2930
|
-
const m = $(!1), S = $({}), k = $([]),
|
|
2930
|
+
let g = null, v = 0, y = 0, b = !1;
|
|
2931
|
+
const x = $(0);
|
|
2932
|
+
let w = i.records.length, j = 45;
|
|
2933
|
+
const m = $(!1), S = $({}), k = $([]), E = $(null), P = $(0);
|
|
2931
2934
|
let T = null, L = !1, z = !1;
|
|
2932
2935
|
const H = (N, G, te, re, ue) => {
|
|
2933
|
-
k.value = N,
|
|
2936
|
+
k.value = N, E.value = G, P.value = te, S.value = {
|
|
2934
2937
|
left: `${re}px`,
|
|
2935
2938
|
top: `${ue}px`
|
|
2936
2939
|
}, m.value = !0, L = !1, document.addEventListener("wheel", se, { passive: !1 });
|
|
@@ -2949,7 +2952,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
2949
2952
|
}, se = (N) => {
|
|
2950
2953
|
N.preventDefault();
|
|
2951
2954
|
}, me = (N) => {
|
|
2952
|
-
|
|
2955
|
+
E.value && N.click && N.click({ data: E.value, openLayer: u }), M();
|
|
2953
2956
|
}, Me = () => {
|
|
2954
2957
|
const { Group: N, Text: G } = Ta.CustomLayout, te = i.actionsMaxCount, re = i.actions.length > te, ue = re ? i.actions.slice(0, te - 1) : i.actions, le = re ? i.actions.slice(te - 1) : [];
|
|
2955
2958
|
let ke = 0;
|
|
@@ -3249,7 +3252,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3249
3252
|
_getCompType: qe,
|
|
3250
3253
|
frozen: Ye
|
|
3251
3254
|
}, Bt = Df(ue);
|
|
3252
|
-
return Bt && (bt.editor = Bt,
|
|
3255
|
+
return Bt && (bt.editor = Bt, b = !0), ue === "j-switch" && (bt.customRender = Be), ue === "j-rate" && (bt.customRender = Le), ue === "j-slider" && (bt.customRender = ye), (ue === "j-tag" || ue === "j-input-tag") && (bt.customRender = q), bt.fieldFormat = Z, ot && (bt.columns = be(ot)), bt;
|
|
3253
3256
|
});
|
|
3254
3257
|
return i.isTree && G.length > 0 && (G[0].tree = !0), G;
|
|
3255
3258
|
}, We = (N, G) => {
|
|
@@ -3263,9 +3266,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3263
3266
|
}, Rt = () => ({
|
|
3264
3267
|
field: "__sequence__",
|
|
3265
3268
|
title: "序号",
|
|
3266
|
-
width:
|
|
3267
|
-
minWidth:
|
|
3268
|
-
maxWidth:
|
|
3269
|
+
width: j,
|
|
3270
|
+
minWidth: j,
|
|
3271
|
+
maxWidth: j,
|
|
3269
3272
|
disableColumnResize: !0,
|
|
3270
3273
|
// maxWidth: 10,
|
|
3271
3274
|
headerStyle: {
|
|
@@ -3281,7 +3284,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3281
3284
|
_getCompConfig: void 0,
|
|
3282
3285
|
_getCompType: void 0
|
|
3283
3286
|
}), Ue = () => {
|
|
3284
|
-
v = 0, y = 0,
|
|
3287
|
+
v = 0, y = 0, b = !1;
|
|
3285
3288
|
const N = {};
|
|
3286
3289
|
let G = be(i.columns);
|
|
3287
3290
|
const te = (je) => {
|
|
@@ -3329,7 +3332,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3329
3332
|
Ie === "left" ? le.push(je) : Ie === "right" ? ke.push(je) : qe.push(je);
|
|
3330
3333
|
});
|
|
3331
3334
|
const ot = ue(le), Ke = ue(ke);
|
|
3332
|
-
return y += ot.left, v += Ke.right, G = [...le, ...qe, ...ke], i.isShowNumber && (G.unshift(Rt()), y++), i.actions.length > 0 && (G.push(Me()), v++),
|
|
3335
|
+
return y += ot.left, v += Ke.right, G = [...le, ...qe, ...ke], i.isShowNumber && (G.unshift(Rt()), y++), i.actions.length > 0 && (G.push(Me()), v++), b && (N.editCellTrigger = "click", N.keyboardOptions = {
|
|
3333
3336
|
copySelected: !0,
|
|
3334
3337
|
cutSelected: !0,
|
|
3335
3338
|
pasteValueToCell: !0,
|
|
@@ -3392,27 +3395,27 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3392
3395
|
}), G;
|
|
3393
3396
|
}, At = () => {
|
|
3394
3397
|
if (!p.value) return;
|
|
3395
|
-
|
|
3398
|
+
j = yt(), zf();
|
|
3396
3399
|
const N = Ut(), G = tt();
|
|
3397
3400
|
G.length > 0 ? N.records = G : (N.records = i.records, a("update:modelValue", i.records)), g = new Ta.ListTable(p.value, N), g._getAppContext = () => o?.appContext, g.on("click_cell", ({ col: te, cellType: re }) => {
|
|
3398
3401
|
if (Gt.value) {
|
|
3399
3402
|
if (re === "checkbox" && te == 0) {
|
|
3400
3403
|
const ue = ht();
|
|
3401
|
-
|
|
3404
|
+
x.value = ue.length, a("selectionChanged", ue);
|
|
3402
3405
|
}
|
|
3403
3406
|
} else
|
|
3404
3407
|
setTimeout(() => {
|
|
3405
3408
|
const ue = ht();
|
|
3406
|
-
|
|
3409
|
+
x.value = ue.length, a("selectionChanged", ue);
|
|
3407
3410
|
}, 0);
|
|
3408
3411
|
}), f.value = g.getAllRowsHeight(), a("ready", g);
|
|
3409
3412
|
}, yn = () => {
|
|
3410
3413
|
g && (g.release(), g = null);
|
|
3411
3414
|
}, U = () => g, ne = (N) => {
|
|
3412
|
-
if (
|
|
3415
|
+
if (x.value = 0, g) {
|
|
3413
3416
|
g.setScrollTop(0), w = N.length;
|
|
3414
3417
|
const G = yt();
|
|
3415
|
-
G !==
|
|
3418
|
+
G !== j ? (j = G, _t(N)) : g.setRecords(N);
|
|
3416
3419
|
}
|
|
3417
3420
|
}, Y = () => g ? g.records : [];
|
|
3418
3421
|
vt(() => {
|
|
@@ -3479,7 +3482,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3479
3482
|
te.records = N || g.records, g.updateOption(te, {
|
|
3480
3483
|
clearColWidthCache: !1,
|
|
3481
3484
|
clearRowHeightCache: !1
|
|
3482
|
-
}), i.heightMode === "auto" && (f.value = g.getAllRowsHeight()), N ?
|
|
3485
|
+
}), i.heightMode === "auto" && (f.value = g.getAllRowsHeight()), N ? x.value = 0 : (x.value = G.length, G.length > 0 && fe(G));
|
|
3483
3486
|
}, ce = R(() => i.editConfig.isAddBtn), ut = R(() => i.editConfig.addBtnText || "添加"), cn = R(() => i.editConfig.isRemoveBtn), Fn = R(() => i.editConfig.readonly), Gt = R(() => i.isMultiple || cn.value), tt = () => {
|
|
3484
3487
|
const N = i.modelValue || [];
|
|
3485
3488
|
return N.forEach((G) => {
|
|
@@ -3514,7 +3517,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3514
3517
|
tableData: g.records,
|
|
3515
3518
|
type: "add"
|
|
3516
3519
|
});
|
|
3517
|
-
}, wu = R(() =>
|
|
3520
|
+
}, wu = R(() => x.value > 0), Cu = () => {
|
|
3518
3521
|
if (!g) return;
|
|
3519
3522
|
const N = ht();
|
|
3520
3523
|
N.length !== 0 && Ou.confirm(`确定要删除选中的 ${N.length} 条记录吗?`, "删除确认", {
|
|
@@ -3534,7 +3537,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3534
3537
|
tableData: re,
|
|
3535
3538
|
type: "delete"
|
|
3536
3539
|
});
|
|
3537
|
-
}),
|
|
3540
|
+
}), x.value = 0;
|
|
3538
3541
|
}).catch(() => {
|
|
3539
3542
|
});
|
|
3540
3543
|
};
|
|
@@ -3832,7 +3835,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3832
3835
|
top: 0,
|
|
3833
3836
|
_left: 0,
|
|
3834
3837
|
_top: 0
|
|
3835
|
-
}), g = $(0), v = $(), y = $(48),
|
|
3838
|
+
}), g = $(0), v = $(), y = $(48), b = $(0), x = $(0);
|
|
3836
3839
|
Ze(
|
|
3837
3840
|
() => o.visible,
|
|
3838
3841
|
(Z) => {
|
|
@@ -3845,7 +3848,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3845
3848
|
const w = R(() => {
|
|
3846
3849
|
let Z = o.height + g.value;
|
|
3847
3850
|
return typeof window < "u" && Z + 40 > window.innerHeight && (Z = window.innerHeight - 32 - 40), Z;
|
|
3848
|
-
}),
|
|
3851
|
+
}), j = R(() => {
|
|
3849
3852
|
let Z = 0 + g.value;
|
|
3850
3853
|
return typeof document < "u" && document.body && (Z = (document.body.clientWidth - S.value) / 2), Z;
|
|
3851
3854
|
}), m = R(() => {
|
|
@@ -3856,14 +3859,14 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3856
3859
|
return Z = o.width, typeof document < "u" && document.body && Z > document.body.clientWidth && (Z = document.body.clientWidth - 32), Z;
|
|
3857
3860
|
}), k = (Z) => {
|
|
3858
3861
|
s.value = Z || "保存数据中...", r.value = !0;
|
|
3859
|
-
},
|
|
3862
|
+
}, E = () => {
|
|
3860
3863
|
r.value = !1;
|
|
3861
3864
|
}, P = () => {
|
|
3862
3865
|
o.beforeClose && o.beforeClose() === !1 || (l.value = !1, i("update:visible", !1), i("cancel"));
|
|
3863
3866
|
}, T = () => {
|
|
3864
|
-
i("ok", k,
|
|
3867
|
+
i("ok", k, E);
|
|
3865
3868
|
}, L = () => {
|
|
3866
|
-
p.left = 0, p.top = 0,
|
|
3869
|
+
p.left = 0, p.top = 0, x.value = 0, b.value = 0, o.isStep && (z.value = 0, Tt(() => {
|
|
3867
3870
|
I();
|
|
3868
3871
|
})), i("closed");
|
|
3869
3872
|
}, z = R({
|
|
@@ -3883,7 +3886,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3883
3886
|
}));
|
|
3884
3887
|
}, _ = async () => {
|
|
3885
3888
|
if (c.value = !0, o.validateSteps) {
|
|
3886
|
-
const Z = await o.validateSteps(o.stepActive, k,
|
|
3889
|
+
const Z = await o.validateSteps(o.stepActive, k, E);
|
|
3887
3890
|
return c.value = !1, Z;
|
|
3888
3891
|
}
|
|
3889
3892
|
return c.value = !1, !0;
|
|
@@ -3907,7 +3910,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3907
3910
|
if (p.isMove) {
|
|
3908
3911
|
const Be = Z.pageX - p.pageX, Le = Z.pageY - p.pageY;
|
|
3909
3912
|
let ye = p._left + Be, ze = p._top + Le;
|
|
3910
|
-
ye +
|
|
3913
|
+
ye + j.value < 0 && (ye = -j.value), typeof document < "u" && document.body && (b.value ? ye + b.value + j.value > document.body.clientWidth && (ye = document.body.clientWidth - b.value - j.value) : ye + S.value + j.value > document.body.clientWidth && (ye = document.body.clientWidth - S.value - j.value)), ze + m.value < 0 && (ze = -m.value), typeof window < "u" && (x.value ? ze + x.value + m.value + 40 > window.innerHeight && (ze = window.innerHeight - x.value - m.value - 40) : ze + w.value + m.value + 40 > window.innerHeight && (ze = window.innerHeight - w.value - m.value - 40)), p.left = ye, p.top = ze;
|
|
3911
3914
|
}
|
|
3912
3915
|
}, Me = (Z) => {
|
|
3913
3916
|
const Be = v.value.offsetLeft, Le = v.value.offsetTop, ye = v.value.clientWidth, ze = v.value.clientHeight, rt = ze - y.value, q = v.value.scrollTop;
|
|
@@ -3924,9 +3927,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3924
3927
|
return;
|
|
3925
3928
|
}
|
|
3926
3929
|
v.value.onmousedown = (pe) => {
|
|
3927
|
-
const { clientX: be } = pe, { clientY: We } = pe, yt = p.left +
|
|
3928
|
-
p._left = p.left, p._top = p.top,
|
|
3929
|
-
Ue.preventDefault(), be > yt && be < yt + 10 && (be > Ue.clientX && (
|
|
3930
|
+
const { clientX: be } = pe, { clientY: We } = pe, yt = p.left + j.value, Rt = p.top + m.value;
|
|
3931
|
+
p._left = p.left, p._top = p.top, x.value || (x.value = rt), b.value || (b.value = ye), be > yt + 10 && be < yt + ye - 10 && We > Rt + 5 && We < Rt + 47 || (typeof document < "u" && (document.onmousemove = function(Ue) {
|
|
3932
|
+
Ue.preventDefault(), be > yt && be < yt + 10 && (be > Ue.clientX && (b.value = ye + (be - Ue.clientX), p.left = p._left - (be - Ue.clientX)), be < Ue.clientX && b.value > o.minWidth && (b.value = ye - (Ue.clientX - be), p.left = p._left + Ue.clientX - be)), be > yt + ye - 10 && be < yt + ye && (be > Ue.clientX && b.value > o.minWidth && (b.value = ye - (be - Ue.clientX)), be < Ue.clientX && typeof document < "u" && document.body && j.value + p.left + b.value < document.body.clientWidth && (b.value = ye + (Ue.clientX - be))), We > Rt && We < Rt + 5 && (We > Ue.clientY && (x.value = rt + We - Ue.clientY, p.top = p._top - (We - Ue.clientY)), We < Ue.clientY && x.value > o.minHeight && (x.value = rt - (Ue.clientY - We), p.top = p._top + Ue.clientY - We)), q + We > Rt + rt + 38 && q + We < Rt + rt + 48 && (We > Ue.clientY && x.value > o.minHeight && (x.value = rt - (We - Ue.clientY)), We < Ue.clientY && typeof window < "u" && m.value + p.top + x.value + 48 < window.innerHeight && (x.value = rt + Ue.clientY - We));
|
|
3930
3933
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
3931
3934
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
3932
3935
|
}));
|
|
@@ -3936,7 +3939,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3936
3939
|
};
|
|
3937
3940
|
return t({
|
|
3938
3941
|
showLoading: k,
|
|
3939
|
-
hideLoading:
|
|
3942
|
+
hideLoading: E
|
|
3940
3943
|
}), (Z, Be) => {
|
|
3941
3944
|
const Le = B("j-button"), ye = B("el-space"), ze = B("el-step"), rt = B("el-steps"), q = B("el-dialog");
|
|
3942
3945
|
return C(), O(q, {
|
|
@@ -3950,10 +3953,10 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3950
3953
|
modal: e.mask,
|
|
3951
3954
|
"modal-penetrable": !e.mask,
|
|
3952
3955
|
"close-on-click-modal": !1,
|
|
3953
|
-
width: `${
|
|
3956
|
+
width: `${b.value || S.value}px`,
|
|
3954
3957
|
style: we({
|
|
3955
3958
|
position: "fixed",
|
|
3956
|
-
left: `${
|
|
3959
|
+
left: `${j.value + p.left}px`,
|
|
3957
3960
|
top: `${m.value + p.top}px`,
|
|
3958
3961
|
"pointer-events": e.mask ? "" : "none"
|
|
3959
3962
|
}),
|
|
@@ -3995,7 +3998,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
3995
3998
|
{ "j-dialog-window-hasSteps": e.isStep }
|
|
3996
3999
|
]),
|
|
3997
4000
|
style: we({
|
|
3998
|
-
height: e.autoHeight ? "auto" : (
|
|
4001
|
+
height: e.autoHeight ? "auto" : (x.value > 0 ? x.value : w.value) + "px"
|
|
3999
4002
|
})
|
|
4000
4003
|
}, [
|
|
4001
4004
|
e.isStep ? (C(), A("div", Kf, [
|
|
@@ -4198,16 +4201,16 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4198
4201
|
}), v = () => {
|
|
4199
4202
|
o.beforeClose && o.beforeClose() === !1 || (r.value = !1, i("update:visible", !1), i("cancel"));
|
|
4200
4203
|
}, y = () => {
|
|
4201
|
-
i("ok",
|
|
4202
|
-
},
|
|
4204
|
+
i("ok", x, w);
|
|
4205
|
+
}, b = () => {
|
|
4203
4206
|
o.isStep && (g.value = 0, Tt(() => {
|
|
4204
4207
|
k();
|
|
4205
4208
|
})), i("closed");
|
|
4206
|
-
},
|
|
4209
|
+
}, x = (T) => {
|
|
4207
4210
|
c.value = T || "保存数据中...", s.value = !0;
|
|
4208
4211
|
}, w = () => {
|
|
4209
4212
|
s.value = !1;
|
|
4210
|
-
},
|
|
4213
|
+
}, j = () => {
|
|
4211
4214
|
g.value > 0 && g.value--, Tt(() => {
|
|
4212
4215
|
k();
|
|
4213
4216
|
});
|
|
@@ -4217,7 +4220,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4217
4220
|
}));
|
|
4218
4221
|
}, S = async () => {
|
|
4219
4222
|
if (u.value = !0, o.validateSteps) {
|
|
4220
|
-
const T = await o.validateSteps(o.stepActive,
|
|
4223
|
+
const T = await o.validateSteps(o.stepActive, x, w);
|
|
4221
4224
|
return u.value = !1, T;
|
|
4222
4225
|
}
|
|
4223
4226
|
return u.value = !1, !0;
|
|
@@ -4233,10 +4236,10 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4233
4236
|
d.value = !1, f.value = !1;
|
|
4234
4237
|
break;
|
|
4235
4238
|
}
|
|
4236
|
-
},
|
|
4239
|
+
}, E = R(() => o.steps.map((T) => ({ title: T, disabled: !0 }))), P = async (T) => {
|
|
4237
4240
|
T.click && await T.click();
|
|
4238
4241
|
};
|
|
4239
|
-
return t({ showLoading:
|
|
4242
|
+
return t({ showLoading: x, hideLoading: w }), (T, L) => {
|
|
4240
4243
|
const z = B("el-step"), H = B("el-steps"), M = B("j-button"), _ = B("el-space"), I = B("el-divider"), F = B("el-dialog"), ie = Gi("loading");
|
|
4241
4244
|
return C(), O(F, {
|
|
4242
4245
|
modelValue: r.value,
|
|
@@ -4248,7 +4251,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4248
4251
|
"show-close": !1,
|
|
4249
4252
|
modal: !0,
|
|
4250
4253
|
"destroy-on-close": e.destroyOnClose,
|
|
4251
|
-
onClosed:
|
|
4254
|
+
onClosed: b
|
|
4252
4255
|
}, {
|
|
4253
4256
|
default: D(() => [
|
|
4254
4257
|
jn((C(), A("div", {
|
|
@@ -4269,7 +4272,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4269
4272
|
]),
|
|
4270
4273
|
V("div", {
|
|
4271
4274
|
class: "j-dialog-full-header-mid",
|
|
4272
|
-
style: we({ maxWidth: `${200 *
|
|
4275
|
+
style: we({ maxWidth: `${200 * E.value.length}px` })
|
|
4273
4276
|
}, [
|
|
4274
4277
|
e.isStep ? (C(), O(H, {
|
|
4275
4278
|
key: 0,
|
|
@@ -4279,7 +4282,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4279
4282
|
"finish-status": "success"
|
|
4280
4283
|
}, {
|
|
4281
4284
|
default: D(() => [
|
|
4282
|
-
(C(!0), A(ve, null, Se(
|
|
4285
|
+
(C(!0), A(ve, null, Se(E.value, (se, me) => (C(), O(z, {
|
|
4283
4286
|
key: me,
|
|
4284
4287
|
title: J(l)(se.title)
|
|
4285
4288
|
}, null, 8, ["title"]))), 128))
|
|
@@ -4297,7 +4300,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4297
4300
|
size: "mini",
|
|
4298
4301
|
disabled: d.value,
|
|
4299
4302
|
label: J(l)("上一步"),
|
|
4300
|
-
onClick:
|
|
4303
|
+
onClick: j
|
|
4301
4304
|
}, null, 8, ["disabled", "label"])) : W("", !0),
|
|
4302
4305
|
e.isStep ? (C(), O(M, {
|
|
4303
4306
|
key: 1,
|
|
@@ -4525,8 +4528,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4525
4528
|
}, d = () => {
|
|
4526
4529
|
l.value = !1;
|
|
4527
4530
|
}, f = () => {
|
|
4528
|
-
o.isStep && (
|
|
4529
|
-
|
|
4531
|
+
o.isStep && (j.value = 0, Tt(() => {
|
|
4532
|
+
E();
|
|
4530
4533
|
})), a("closed");
|
|
4531
4534
|
}, h = () => {
|
|
4532
4535
|
a("ok", u, d);
|
|
@@ -4534,7 +4537,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4534
4537
|
o.beforeClose && o.beforeClose() === !1 || (c.value = !1, a("update:visible", !1), a("cancel"));
|
|
4535
4538
|
}, g = async (T) => {
|
|
4536
4539
|
T.click && await T.click();
|
|
4537
|
-
}, v = $(!1), y = $(!0),
|
|
4540
|
+
}, v = $(!1), y = $(!0), b = $(!1), x = $(!0), w = $(-1), j = R({
|
|
4538
4541
|
get() {
|
|
4539
4542
|
return w.value !== -1 ? w.value : o.stepActive;
|
|
4540
4543
|
},
|
|
@@ -4542,12 +4545,12 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4542
4545
|
w.value = T, a("update:stepActive", T);
|
|
4543
4546
|
}
|
|
4544
4547
|
}), m = () => {
|
|
4545
|
-
|
|
4546
|
-
|
|
4548
|
+
j.value > 0 && j.value--, Tt(() => {
|
|
4549
|
+
E();
|
|
4547
4550
|
});
|
|
4548
4551
|
}, S = async () => {
|
|
4549
|
-
await k() && (
|
|
4550
|
-
|
|
4552
|
+
await k() && (j.value < o.steps.length - 1 && (j.value += 1), Tt(() => {
|
|
4553
|
+
E();
|
|
4551
4554
|
}));
|
|
4552
4555
|
}, k = async () => {
|
|
4553
4556
|
if (v.value = !0, o.validateSteps) {
|
|
@@ -4555,16 +4558,16 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4555
4558
|
return v.value = !1, T;
|
|
4556
4559
|
}
|
|
4557
4560
|
return v.value = !1, !0;
|
|
4558
|
-
},
|
|
4559
|
-
switch (
|
|
4561
|
+
}, E = () => {
|
|
4562
|
+
switch (x.value = !0, b.value = !0, y.value = !0, j.value) {
|
|
4560
4563
|
case 0:
|
|
4561
|
-
|
|
4564
|
+
b.value = !1;
|
|
4562
4565
|
break;
|
|
4563
4566
|
case o.steps.length - 1:
|
|
4564
|
-
y.value = !1,
|
|
4567
|
+
y.value = !1, x.value = !1;
|
|
4565
4568
|
break;
|
|
4566
4569
|
default:
|
|
4567
|
-
y.value = !1,
|
|
4570
|
+
y.value = !1, b.value = !1;
|
|
4568
4571
|
break;
|
|
4569
4572
|
}
|
|
4570
4573
|
}, P = R(() => o.steps.map((T) => ({ title: T, disabled: !0 })));
|
|
@@ -4613,7 +4616,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4613
4616
|
e.isStep ? (C(), O(H, {
|
|
4614
4617
|
key: 1,
|
|
4615
4618
|
size: "mini",
|
|
4616
|
-
disabled:
|
|
4619
|
+
disabled: b.value,
|
|
4617
4620
|
loading: v.value,
|
|
4618
4621
|
label: J(i)("下一步"),
|
|
4619
4622
|
onClick: S
|
|
@@ -4634,7 +4637,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4634
4637
|
key: 3,
|
|
4635
4638
|
size: "mini",
|
|
4636
4639
|
type: "primary",
|
|
4637
|
-
disabled:
|
|
4640
|
+
disabled: x.value && e.isStep,
|
|
4638
4641
|
label: J(i)(e.btnText),
|
|
4639
4642
|
onClick: h
|
|
4640
4643
|
}, null, 8, ["disabled", "label"])) : W("", !0)
|
|
@@ -4664,7 +4667,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4664
4667
|
}, [
|
|
4665
4668
|
K(I, {
|
|
4666
4669
|
simple: "",
|
|
4667
|
-
active:
|
|
4670
|
+
active: j.value,
|
|
4668
4671
|
space: 160,
|
|
4669
4672
|
"finish-status": "success"
|
|
4670
4673
|
}, {
|
|
@@ -4785,12 +4788,12 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4785
4788
|
},
|
|
4786
4789
|
emits: ["ok", "closed", "cancel"],
|
|
4787
4790
|
setup(e, { expose: t, emit: n }) {
|
|
4788
|
-
const o = n, i = $(!1), a = $(""), l = $(), r = $(0), s = $(""), c = $(), u = (y,
|
|
4789
|
-
a.value = y, c.value =
|
|
4791
|
+
const o = n, i = $(!1), a = $(""), l = $(), r = $(0), s = $(""), c = $(), u = (y, b, x) => {
|
|
4792
|
+
a.value = y, c.value = x, s.value = b || "modal", i.value = !0;
|
|
4790
4793
|
}, d = () => {
|
|
4791
4794
|
i.value = !1;
|
|
4792
|
-
}, f = (y,
|
|
4793
|
-
o("ok", y,
|
|
4795
|
+
}, f = (y, b) => {
|
|
4796
|
+
o("ok", y, b);
|
|
4794
4797
|
}, h = () => {
|
|
4795
4798
|
r.value = 0, o("closed");
|
|
4796
4799
|
}, p = () => {
|
|
@@ -4802,16 +4805,16 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4802
4805
|
};
|
|
4803
4806
|
return tf({
|
|
4804
4807
|
stepActive: r
|
|
4805
|
-
}), t({ open: u, close: d, showLoading: g, hideLoading: v }), (y,
|
|
4806
|
-
const
|
|
4807
|
-
return s.value === "full" ? (C(), O(
|
|
4808
|
+
}), t({ open: u, close: d, showLoading: g, hideLoading: v }), (y, b) => {
|
|
4809
|
+
const x = B("j-dialog-full"), w = B("j-drawer"), j = B("j-dialog");
|
|
4810
|
+
return s.value === "full" ? (C(), O(x, {
|
|
4808
4811
|
key: 0,
|
|
4809
4812
|
ref_key: "modalRef",
|
|
4810
4813
|
ref: l,
|
|
4811
4814
|
visible: i.value,
|
|
4812
|
-
"onUpdate:visible":
|
|
4815
|
+
"onUpdate:visible": b[0] || (b[0] = (m) => i.value = m),
|
|
4813
4816
|
"step-active": r.value,
|
|
4814
|
-
"onUpdate:stepActive":
|
|
4817
|
+
"onUpdate:stepActive": b[1] || (b[1] = (m) => r.value = m),
|
|
4815
4818
|
title: a.value,
|
|
4816
4819
|
"before-close": e.beforeClose,
|
|
4817
4820
|
"is-step": e.isStep,
|
|
@@ -4837,9 +4840,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4837
4840
|
ref_key: "modalRef",
|
|
4838
4841
|
ref: l,
|
|
4839
4842
|
visible: i.value,
|
|
4840
|
-
"onUpdate:visible":
|
|
4843
|
+
"onUpdate:visible": b[2] || (b[2] = (m) => i.value = m),
|
|
4841
4844
|
"step-active": r.value,
|
|
4842
|
-
"onUpdate:stepActive":
|
|
4845
|
+
"onUpdate:stepActive": b[3] || (b[3] = (m) => r.value = m),
|
|
4843
4846
|
"is-step": e.isStep,
|
|
4844
4847
|
steps: e.steps,
|
|
4845
4848
|
"validate-steps": e.validateSteps,
|
|
@@ -4858,14 +4861,14 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4858
4861
|
Oe(y.$slots, "default")
|
|
4859
4862
|
]),
|
|
4860
4863
|
_: 3
|
|
4861
|
-
}, 8, ["visible", "step-active", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : (C(), O(
|
|
4864
|
+
}, 8, ["visible", "step-active", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : (C(), O(j, {
|
|
4862
4865
|
key: 2,
|
|
4863
4866
|
ref_key: "modalRef",
|
|
4864
4867
|
ref: l,
|
|
4865
4868
|
visible: i.value,
|
|
4866
|
-
"onUpdate:visible":
|
|
4869
|
+
"onUpdate:visible": b[4] || (b[4] = (m) => i.value = m),
|
|
4867
4870
|
"step-active": r.value,
|
|
4868
|
-
"onUpdate:stepActive":
|
|
4871
|
+
"onUpdate:stepActive": b[5] || (b[5] = (m) => r.value = m),
|
|
4869
4872
|
width: e.width,
|
|
4870
4873
|
height: e.height,
|
|
4871
4874
|
title: a.value,
|
|
@@ -4946,7 +4949,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
4946
4949
|
closable: !e.readonly,
|
|
4947
4950
|
style: we(l.value[y] || {}),
|
|
4948
4951
|
size: e.size,
|
|
4949
|
-
onClose: Ct((
|
|
4952
|
+
onClose: Ct((b) => u(y), ["prevent"])
|
|
4950
4953
|
}, {
|
|
4951
4954
|
default: D(() => [
|
|
4952
4955
|
Ft(xe(v), 1)
|
|
@@ -5477,8 +5480,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5477
5480
|
folderId: n.modelValue || v.value,
|
|
5478
5481
|
maxSize: n.maxSize,
|
|
5479
5482
|
sizeType: n.sizeType
|
|
5480
|
-
})),
|
|
5481
|
-
|
|
5483
|
+
})), b = $([]), x = () => {
|
|
5484
|
+
b.value = [...b.value];
|
|
5482
5485
|
}, w = (q) => {
|
|
5483
5486
|
if (n.maxSize && n.sizeType) {
|
|
5484
5487
|
let pe = q;
|
|
@@ -5500,7 +5503,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5500
5503
|
return !1;
|
|
5501
5504
|
}
|
|
5502
5505
|
return !0;
|
|
5503
|
-
},
|
|
5506
|
+
}, j = {
|
|
5504
5507
|
doc: "file-word",
|
|
5505
5508
|
docx: "file-word",
|
|
5506
5509
|
xls: "file-excel",
|
|
@@ -5519,24 +5522,24 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5519
5522
|
if (pe && pe.indexOf("image") > -1)
|
|
5520
5523
|
return "file-image";
|
|
5521
5524
|
const be = m(q);
|
|
5522
|
-
return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(be) ? "file-image" :
|
|
5525
|
+
return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(be) ? "file-image" : j[be] || "file-ufo";
|
|
5523
5526
|
}, k = (q) => {
|
|
5524
5527
|
q.status = n.autoUpload ? "uploading" : "unUpload", q.uploadSize = 0, q.icon = S(q.name, q.type), d || (q.icon = "file-text"), q.id = q.uid, q.url = window.URL.createObjectURL(q), q.date = vi(), q.param = y.value;
|
|
5525
|
-
},
|
|
5526
|
-
o("start", { file: q, list:
|
|
5528
|
+
}, E = (q) => {
|
|
5529
|
+
o("start", { file: q, list: b.value });
|
|
5527
5530
|
}, P = (q, pe, be) => {
|
|
5528
|
-
q.percent = be, q.uploadSize = pe,
|
|
5531
|
+
q.percent = be, q.uploadSize = pe, x();
|
|
5529
5532
|
}, T = (q) => {
|
|
5530
|
-
q.status = "done", q.id += "1", q.uid += "1",
|
|
5533
|
+
q.status = "done", q.id += "1", q.uid += "1", x(), o("success", { file: q, list: b.value }), n.modelValue || (o("update:modelValue", v.value), o("change", { value: v.value }));
|
|
5531
5534
|
}, L = (q, pe) => {
|
|
5532
|
-
console.error(pe, "简搭提醒您:文件上传错误!"), q.status = "error",
|
|
5535
|
+
console.error(pe, "简搭提醒您:文件上传错误!"), q.status = "error", x(), o("error", { file: q, list: b.value });
|
|
5533
5536
|
}, z = (q) => {
|
|
5534
|
-
if (
|
|
5537
|
+
if (b.value.push(q), q.status === "unUpload") {
|
|
5535
5538
|
o("notUploadChange", { value: q.url });
|
|
5536
5539
|
return;
|
|
5537
5540
|
}
|
|
5538
5541
|
!n.isNotApi && n.upload ? n.upload(q) : !n.isNotApi && d ? d(q, {
|
|
5539
|
-
onStart:
|
|
5542
|
+
onStart: E,
|
|
5540
5543
|
onProgress: P,
|
|
5541
5544
|
onSuccess: T,
|
|
5542
5545
|
onError: L,
|
|
@@ -5564,7 +5567,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5564
5567
|
const pe = q.response?.fileId || q.id;
|
|
5565
5568
|
f && f(pe);
|
|
5566
5569
|
}
|
|
5567
|
-
|
|
5570
|
+
b.value = b.value.filter((pe) => pe.id !== q.id), b.value.length === 0 && (o("update:modelValue", ""), o("change", { value: "" })), o("delete", { file: q, list: b.value });
|
|
5568
5571
|
}, F = async (q) => {
|
|
5569
5572
|
await _(q) && I(q);
|
|
5570
5573
|
}, ie = $(!1), se = $(""), me = $(""), Me = $(!1), Qe = $(!1);
|
|
@@ -5612,7 +5615,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5612
5615
|
const q = Z.response?.fileId || Z.id, pe = `${s}/system/annexesfile/${q}?token=${c?.value}`;
|
|
5613
5616
|
_p(pe);
|
|
5614
5617
|
}, rt = () => {
|
|
5615
|
-
if (n.limit !== -1 && n.limit <=
|
|
5618
|
+
if (n.limit !== -1 && n.limit <= b.value.length)
|
|
5616
5619
|
return i && i(`当前限制选择${n.limit}个文件`), !1;
|
|
5617
5620
|
};
|
|
5618
5621
|
return (q, pe) => {
|
|
@@ -5629,7 +5632,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5629
5632
|
multiple: e.multiple,
|
|
5630
5633
|
"before-upload": H,
|
|
5631
5634
|
"http-request": M,
|
|
5632
|
-
"file-list":
|
|
5635
|
+
"file-list": b.value,
|
|
5633
5636
|
"before-remove": _,
|
|
5634
5637
|
"on-remove": I,
|
|
5635
5638
|
"on-preview": Le,
|
|
@@ -5639,7 +5642,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5639
5642
|
e.isUploadImg && !e.isLayer && !e.readonly ? (C(), A("div", Ap, [
|
|
5640
5643
|
K(be, { icon: "mdi:add" }),
|
|
5641
5644
|
V("div", Bp, xe(J(r)(e.placeholder)), 1)
|
|
5642
|
-
])) : e.isLayer && e.showFileList &&
|
|
5645
|
+
])) : e.isLayer && e.showFileList && b.value.length > 0 && !Me.value ? (C(), O(yt, {
|
|
5643
5646
|
key: 1,
|
|
5644
5647
|
placement: "bottom",
|
|
5645
5648
|
title: e.isUploadImg ? J(r)("图片列表") : J(r)("文件列表")
|
|
@@ -5647,7 +5650,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5647
5650
|
content: D(() => [
|
|
5648
5651
|
K(Zl, {
|
|
5649
5652
|
style: we({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
5650
|
-
list:
|
|
5653
|
+
list: b.value,
|
|
5651
5654
|
"preview-file": Le,
|
|
5652
5655
|
"delete-file": F,
|
|
5653
5656
|
"is-upload-img": e.isUploadImg,
|
|
@@ -5681,10 +5684,10 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5681
5684
|
_: 1
|
|
5682
5685
|
})
|
|
5683
5686
|
])) : W("", !0),
|
|
5684
|
-
!e.isLayer && !e.isUploadImg && e.showFileList &&
|
|
5687
|
+
!e.isLayer && !e.isUploadImg && e.showFileList && b.value.length > 0 ? (C(), O(Zl, {
|
|
5685
5688
|
key: 1,
|
|
5686
5689
|
style: { "margin-top": "4px" },
|
|
5687
|
-
list:
|
|
5690
|
+
list: b.value,
|
|
5688
5691
|
"preview-file": Le,
|
|
5689
5692
|
"delete-file": F,
|
|
5690
5693
|
readonly: e.readonly,
|
|
@@ -5966,11 +5969,11 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
5966
5969
|
if (y <= 8)
|
|
5967
5970
|
p = "11" + u.substring(0, 8), g = !0, h = "11";
|
|
5968
5971
|
else if (y <= 16) {
|
|
5969
|
-
const
|
|
5970
|
-
p = "59" +
|
|
5972
|
+
const b = u.substring(0, 8), x = u.substring(8, 16);
|
|
5973
|
+
p = "59" + b + x, g = !0, h = "59";
|
|
5971
5974
|
} else {
|
|
5972
|
-
const
|
|
5973
|
-
p = "62" + w +
|
|
5975
|
+
const x = u.substring(0, 23), w = x.substring(0, 8), j = x.substring(8, 23);
|
|
5976
|
+
p = "62" + w + j, p.length !== 25 && (p = p.substring(0, 25)), g = !0, h = "62";
|
|
5974
5977
|
}
|
|
5975
5978
|
}
|
|
5976
5979
|
if (h && !g) {
|
|
@@ -6132,9 +6135,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6132
6135
|
let k = 0;
|
|
6133
6136
|
if (Array.isArray(m))
|
|
6134
6137
|
if (/[><=]/.test(S)) {
|
|
6135
|
-
const
|
|
6136
|
-
if (
|
|
6137
|
-
const P =
|
|
6138
|
+
const E = S.match(/^([><=]+)(.+)$/);
|
|
6139
|
+
if (E) {
|
|
6140
|
+
const P = E[1], T = Number(E[2]);
|
|
6138
6141
|
for (let L = 0; L < m.length; L++)
|
|
6139
6142
|
try {
|
|
6140
6143
|
const z = Number(m[L]);
|
|
@@ -6168,15 +6171,15 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6168
6171
|
}
|
|
6169
6172
|
}
|
|
6170
6173
|
} else
|
|
6171
|
-
for (let
|
|
6172
|
-
m[
|
|
6174
|
+
for (let E = 0; E < m.length; E++)
|
|
6175
|
+
m[E] === S && k++;
|
|
6173
6176
|
return k;
|
|
6174
6177
|
}, r = (m, S) => m.toFixed(S), s = (m, S) => S < 0 ? -Math.floor(m / Math.abs(S)) * S || 0 : Math.floor(m / S) * S || 0, c = (m, S) => {
|
|
6175
6178
|
if (Array.isArray(m))
|
|
6176
|
-
return m.sort((k,
|
|
6179
|
+
return m.sort((k, E) => E - k), m[S - 1];
|
|
6177
6180
|
}, u = (m, S) => {
|
|
6178
6181
|
if (Array.isArray(m))
|
|
6179
|
-
return m.sort((k,
|
|
6182
|
+
return m.sort((k, E) => k - E), m[S - 1];
|
|
6180
6183
|
}, d = (m, S) => Math.log(m) / Math.log(S), f = (m, S) => m % S, h = (...m) => {
|
|
6181
6184
|
m = m.flat();
|
|
6182
6185
|
let S = 1;
|
|
@@ -6192,24 +6195,24 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6192
6195
|
for (let k = 0; k < m.length; k++)
|
|
6193
6196
|
S += Number(m[k]);
|
|
6194
6197
|
return S;
|
|
6195
|
-
}, v = (...m) => m[0].map((
|
|
6196
|
-
let T =
|
|
6198
|
+
}, v = (...m) => m[0].map((E, P) => {
|
|
6199
|
+
let T = E;
|
|
6197
6200
|
for (let L = 1; L < m.length; L++)
|
|
6198
6201
|
T *= m[L][P] || 0;
|
|
6199
6202
|
return T;
|
|
6200
|
-
}).reduce((
|
|
6201
|
-
const S =
|
|
6203
|
+
}).reduce((E, P) => E + P, 0), y = t, { getValue: b } = Gn(), x = (m) => {
|
|
6204
|
+
const S = b({ id: m });
|
|
6202
6205
|
if (Oa(S)) {
|
|
6203
|
-
const
|
|
6206
|
+
const E = [];
|
|
6204
6207
|
return S.forEach((P) => {
|
|
6205
6208
|
const T = Number(P);
|
|
6206
|
-
Number.isNaN(T) ?
|
|
6207
|
-
}),
|
|
6209
|
+
Number.isNaN(T) ? E.push(0) : E.push(T);
|
|
6210
|
+
}), E;
|
|
6208
6211
|
}
|
|
6209
6212
|
const k = Number(S);
|
|
6210
6213
|
return Number.isNaN(k) ? 0 : k;
|
|
6211
6214
|
}, w = R(() => {
|
|
6212
|
-
if (!
|
|
6215
|
+
if (!b)
|
|
6213
6216
|
return "";
|
|
6214
6217
|
const m = JSON.parse(n.formatJson || "[]");
|
|
6215
6218
|
let S = "";
|
|
@@ -6253,10 +6256,10 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6253
6256
|
sumproductFun,
|
|
6254
6257
|
getCompValue)=>{ return ${S} }`;
|
|
6255
6258
|
let k;
|
|
6256
|
-
const
|
|
6257
|
-
if (
|
|
6259
|
+
const E = Ts(S);
|
|
6260
|
+
if (E.res)
|
|
6258
6261
|
try {
|
|
6259
|
-
k =
|
|
6262
|
+
k = E.fn(
|
|
6260
6263
|
o,
|
|
6261
6264
|
i,
|
|
6262
6265
|
a,
|
|
@@ -6271,25 +6274,25 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6271
6274
|
p,
|
|
6272
6275
|
g,
|
|
6273
6276
|
v,
|
|
6274
|
-
|
|
6277
|
+
x
|
|
6275
6278
|
);
|
|
6276
6279
|
} catch (P) {
|
|
6277
6280
|
console.log(P, "计算组件公式运行错误");
|
|
6278
6281
|
}
|
|
6279
6282
|
else
|
|
6280
|
-
return console.log(
|
|
6283
|
+
return console.log(E.msg), "";
|
|
6281
6284
|
return Number.isNaN(k) ? "" : (n.decimal !== void 0 && (k = k.toFixed(n.decimal)), k);
|
|
6282
|
-
}),
|
|
6285
|
+
}), j = R(() => {
|
|
6283
6286
|
let m = w.value;
|
|
6284
6287
|
return n.thousandSeparator && (m = Rd(m)), n.isChinese && (m = $d(m)), m;
|
|
6285
6288
|
});
|
|
6286
6289
|
return Ze(w, (m) => {
|
|
6287
|
-
y("update:modelValue", m), y("change", { value: m, data:
|
|
6290
|
+
y("update:modelValue", m), y("change", { value: m, data: j.value });
|
|
6288
6291
|
}), (m, S) => {
|
|
6289
6292
|
const k = B("el-input");
|
|
6290
6293
|
return C(), O(k, {
|
|
6291
|
-
modelValue:
|
|
6292
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
6294
|
+
modelValue: j.value,
|
|
6295
|
+
"onUpdate:modelValue": S[0] || (S[0] = (E) => j.value = E),
|
|
6293
6296
|
readonly: "",
|
|
6294
6297
|
size: e.size
|
|
6295
6298
|
}, null, 8, ["modelValue", "size"]);
|
|
@@ -6641,7 +6644,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6641
6644
|
a.value?.select();
|
|
6642
6645
|
}
|
|
6643
6646
|
}), (g, v) => {
|
|
6644
|
-
const y = B("el-color-picker"),
|
|
6647
|
+
const y = B("el-color-picker"), b = B("el-input");
|
|
6645
6648
|
return C(), A("div", {
|
|
6646
6649
|
class: Pe([
|
|
6647
6650
|
"j-input-color",
|
|
@@ -6650,11 +6653,11 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6650
6653
|
`j-input-color-${e.size}`
|
|
6651
6654
|
])
|
|
6652
6655
|
}, [
|
|
6653
|
-
K(
|
|
6656
|
+
K(b, Re({
|
|
6654
6657
|
ref_key: "inputRef",
|
|
6655
6658
|
ref: a,
|
|
6656
6659
|
modelValue: r.value,
|
|
6657
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
6660
|
+
"onUpdate:modelValue": v[1] || (v[1] = (x) => r.value = x),
|
|
6658
6661
|
placeholder: e.placeholder,
|
|
6659
6662
|
size: e.size,
|
|
6660
6663
|
readonly: e.readonly || e.onlyButton,
|
|
@@ -6675,7 +6678,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6675
6678
|
[e.inputType]: D(() => [
|
|
6676
6679
|
K(y, {
|
|
6677
6680
|
modelValue: r.value,
|
|
6678
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
6681
|
+
"onUpdate:modelValue": v[0] || (v[0] = (x) => r.value = x),
|
|
6679
6682
|
size: e.size,
|
|
6680
6683
|
disabled: e.disabled || e.readonly,
|
|
6681
6684
|
"show-alpha": e.showAlpha,
|
|
@@ -6796,14 +6799,14 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
6796
6799
|
(v) => {
|
|
6797
6800
|
const y = v.matchBefore(/\w*/);
|
|
6798
6801
|
if (!y || y.from === y.to) return null;
|
|
6799
|
-
const
|
|
6800
|
-
return
|
|
6802
|
+
const b = o.handleHint(y.text);
|
|
6803
|
+
return b.length === 0 ? null : {
|
|
6801
6804
|
from: y.from,
|
|
6802
|
-
options:
|
|
6803
|
-
label: typeof
|
|
6804
|
-
detail: typeof
|
|
6805
|
-
type: typeof
|
|
6806
|
-
apply: typeof
|
|
6805
|
+
options: b.map((x) => ({
|
|
6806
|
+
label: typeof x == "string" ? x : x.label || x.name || "",
|
|
6807
|
+
detail: typeof x == "string" ? "" : x.detail || "",
|
|
6808
|
+
type: typeof x == "string" ? "variable" : x.type || "variable",
|
|
6809
|
+
apply: typeof x == "string" ? x : x.apply || x.name || x.label || ""
|
|
6807
6810
|
}))
|
|
6808
6811
|
};
|
|
6809
6812
|
}
|
|
@@ -7049,7 +7052,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7049
7052
|
() => a.isPassing,
|
|
7050
7053
|
(y) => {
|
|
7051
7054
|
if (y) {
|
|
7052
|
-
const { endTime:
|
|
7055
|
+
const { endTime: b, startTime: x } = a, w = (b - x) / 1e3;
|
|
7053
7056
|
o("success", { isPassing: y, time: w.toFixed(1) }), i.value = y;
|
|
7054
7057
|
}
|
|
7055
7058
|
}
|
|
@@ -7063,30 +7066,30 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7063
7066
|
a.isPassing || c.value && (o("start", y), a.moveDistance = u(y) - Number.parseInt(c.value.getStyle().left.replace("px", "") || "0", 10), a.startTime = Date.now(), a.isMoving = !0);
|
|
7064
7067
|
}
|
|
7065
7068
|
function f(y) {
|
|
7066
|
-
const
|
|
7067
|
-
return { actionWidth:
|
|
7069
|
+
const b = l.value?.offsetWidth ?? 220, x = y?.offsetWidth ?? 40, w = b - x - 6;
|
|
7070
|
+
return { actionWidth: x, offset: w, wrapperWidth: b };
|
|
7068
7071
|
}
|
|
7069
7072
|
function h(y) {
|
|
7070
|
-
const { isMoving:
|
|
7071
|
-
if (
|
|
7072
|
-
const w = J(c),
|
|
7073
|
-
if (!w || !
|
|
7074
|
-
const { actionWidth: m, offset: S, wrapperWidth: k } = f(w.getEl()),
|
|
7073
|
+
const { isMoving: b, moveDistance: x } = a;
|
|
7074
|
+
if (b) {
|
|
7075
|
+
const w = J(c), j = J(r);
|
|
7076
|
+
if (!w || !j) return;
|
|
7077
|
+
const { actionWidth: m, offset: S, wrapperWidth: k } = f(w.getEl()), E = u(y) - x;
|
|
7075
7078
|
o("move", {
|
|
7076
7079
|
event: y,
|
|
7077
|
-
moveDistance:
|
|
7078
|
-
moveX:
|
|
7079
|
-
}),
|
|
7080
|
+
moveDistance: x,
|
|
7081
|
+
moveX: E
|
|
7082
|
+
}), E > 0 && E <= S ? (w.setLeft(`${E}px`), j.setWidth(`${E + m / 2}px`)) : E > S && (w.setLeft(`${k - m}px`), j.setWidth(`${k - m / 2}px`), g());
|
|
7080
7083
|
}
|
|
7081
7084
|
}
|
|
7082
7085
|
function p(y) {
|
|
7083
|
-
const { isMoving:
|
|
7084
|
-
if (
|
|
7086
|
+
const { isMoving: b, isPassing: x, moveDistance: w } = a;
|
|
7087
|
+
if (b && !x) {
|
|
7085
7088
|
o("end", y);
|
|
7086
|
-
const
|
|
7087
|
-
if (!
|
|
7088
|
-
const S = u(y) - w, { actionWidth: k, offset:
|
|
7089
|
-
S <
|
|
7089
|
+
const j = c.value, m = J(r);
|
|
7090
|
+
if (!j || !m) return;
|
|
7091
|
+
const S = u(y) - w, { actionWidth: k, offset: E, wrapperWidth: P } = f(j.getEl());
|
|
7092
|
+
S < E ? v() : (j.setLeft(`${P - k}px`), m.setWidth(`${P - k / 2}px`), g()), a.isMoving = !1;
|
|
7090
7093
|
}
|
|
7091
7094
|
}
|
|
7092
7095
|
function g() {
|
|
@@ -7094,12 +7097,12 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7094
7097
|
}
|
|
7095
7098
|
function v() {
|
|
7096
7099
|
a.isMoving = !1, a.isPassing = !1, a.moveDistance = 0, a.toLeft = !1, a.startTime = 0, a.endTime = 0;
|
|
7097
|
-
const y = J(c),
|
|
7098
|
-
!y || !
|
|
7099
|
-
a.toLeft = !1, y.setLeft("0"),
|
|
7100
|
+
const y = J(c), b = J(r), x = J(s);
|
|
7101
|
+
!y || !b || !x || (x.getEl().style.width = "100%", a.toLeft = !0, setTimeout(() => {
|
|
7102
|
+
a.toLeft = !1, y.setLeft("0"), b.setWidth("0");
|
|
7100
7103
|
}, 300));
|
|
7101
7104
|
}
|
|
7102
|
-
return (y,
|
|
7105
|
+
return (y, b) => (C(), A("div", {
|
|
7103
7106
|
ref_key: "wrapperRef",
|
|
7104
7107
|
ref: l,
|
|
7105
7108
|
class: Pe(["j-slider-captcha slider-border", n.class]),
|
|
@@ -7386,8 +7389,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7386
7389
|
const v = n.menuList.length;
|
|
7387
7390
|
return n.menuList.forEach((y) => {
|
|
7388
7391
|
g++;
|
|
7389
|
-
const
|
|
7390
|
-
p +=
|
|
7392
|
+
const b = (Zt(y.label) || 0) + 32 + 16 + 4 + 8;
|
|
7393
|
+
p += b, (g === v && p <= r.value || g < v && p + 56 <= r.value) && h.push(y);
|
|
7391
7394
|
}), h.length < n.menuList.length && h.push({
|
|
7392
7395
|
value: "moreId",
|
|
7393
7396
|
icon: "more-outlined",
|
|
@@ -7507,15 +7510,15 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7507
7510
|
let i = {};
|
|
7508
7511
|
const a = $("");
|
|
7509
7512
|
a.value = n.activeId || "";
|
|
7510
|
-
const l = (g, v, y,
|
|
7513
|
+
const l = (g, v, y, b, x) => {
|
|
7511
7514
|
y = y || [];
|
|
7512
|
-
for (let w = 0,
|
|
7515
|
+
for (let w = 0, j = y.length; w < j; w++) {
|
|
7513
7516
|
const m = y[w], S = {};
|
|
7514
|
-
S.pid = v, S.indent =
|
|
7515
|
-
|
|
7516
|
-
}),
|
|
7517
|
+
S.pid = v, S.indent = b, a.value === m.value && (S.active = !0), Object.keys(m).forEach((E) => {
|
|
7518
|
+
E !== "children" && (S[E] = m[E]);
|
|
7519
|
+
}), x && x.includes(m.value) && (S.open = !0), g.push(S);
|
|
7517
7520
|
const k = m.children || [];
|
|
7518
|
-
k.length > 0 && (S.hasChildren = !0,
|
|
7521
|
+
k.length > 0 && (S.hasChildren = !0, x || (i[S.value] = k), (!x || S.open && !n.collapsed) && l(g, `${v}.${S.value}`, k, b + 1, x));
|
|
7519
7522
|
}
|
|
7520
7523
|
}, r = (g, v) => {
|
|
7521
7524
|
const y = [];
|
|
@@ -7579,11 +7582,11 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7579
7582
|
if (n.collapsed) return;
|
|
7580
7583
|
const v = [];
|
|
7581
7584
|
v.push(...g.pid.split(".")), g.open || v.push(g.value);
|
|
7582
|
-
const y = r(n.menus, v),
|
|
7585
|
+
const y = r(n.menus, v), b = new Set(s.value.map((w) => w.value)), x = new Set(y.map((w) => w.value));
|
|
7583
7586
|
y.forEach((w) => {
|
|
7584
|
-
|
|
7587
|
+
b.has(w.value) || (w.entering = !0);
|
|
7585
7588
|
}), s.value.forEach((w) => {
|
|
7586
|
-
|
|
7589
|
+
x.has(w.value) || (w.leaving = !0);
|
|
7587
7590
|
}), s.value = y, setTimeout(() => {
|
|
7588
7591
|
s.value.forEach((w) => {
|
|
7589
7592
|
w.entering = !1, w.leaving = !1;
|
|
@@ -7737,18 +7740,18 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7737
7740
|
isShowTooltip: !0,
|
|
7738
7741
|
isSelectOnlyone: !0,
|
|
7739
7742
|
width: l.value ? 132 : 160,
|
|
7740
|
-
change: ({ value:
|
|
7741
|
-
const
|
|
7743
|
+
change: ({ value: b, row: x }) => {
|
|
7744
|
+
const j = i.columns.find((k) => k.id === b)?.config || {};
|
|
7742
7745
|
let m = "eq", S = "text";
|
|
7743
|
-
["options"].includes(
|
|
7746
|
+
["options"].includes(j.dataType || "") ? m = "in" : ["dateTime"].includes(j.dataType || "") && (m = "range", S = "dateTime"), x.method = m, x.type = j.valueType || S;
|
|
7744
7747
|
}
|
|
7745
7748
|
}
|
|
7746
7749
|
},
|
|
7747
7750
|
{
|
|
7748
7751
|
id: "method",
|
|
7749
7752
|
type: "j-select",
|
|
7750
|
-
getCompConfig: ({ row:
|
|
7751
|
-
const w = i.columns.find((
|
|
7753
|
+
getCompConfig: ({ row: b }) => {
|
|
7754
|
+
const w = i.columns.find((j) => j.id === b.field)?.config || {};
|
|
7752
7755
|
return ["options", "switch"].includes(w.dataType || "") ? {
|
|
7753
7756
|
options: [
|
|
7754
7757
|
{ value: "eq", label: "等于" },
|
|
@@ -7786,33 +7789,33 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7786
7789
|
persistent: !1,
|
|
7787
7790
|
dataType: "options",
|
|
7788
7791
|
noBorder: !0,
|
|
7789
|
-
change: ({ row:
|
|
7790
|
-
|
|
7792
|
+
change: ({ row: b }) => {
|
|
7793
|
+
b.value = void 0;
|
|
7791
7794
|
}
|
|
7792
7795
|
}
|
|
7793
7796
|
},
|
|
7794
7797
|
{
|
|
7795
7798
|
id: "value",
|
|
7796
7799
|
type: "input",
|
|
7797
|
-
getCompType: ({ row:
|
|
7798
|
-
const w = i.columns.find((
|
|
7800
|
+
getCompType: ({ row: b }) => {
|
|
7801
|
+
const w = i.columns.find((j) => j.id === b.field)?.config || {};
|
|
7799
7802
|
if (["options", "dataItem", "switch"].includes(w.dataType || "")) {
|
|
7800
|
-
if (["in", "nin"].includes(
|
|
7803
|
+
if (["in", "nin"].includes(b.method) || ["eq", "ne"].includes(b.method))
|
|
7801
7804
|
return "j-select";
|
|
7802
7805
|
} else if (["dateTime"].includes(w.dataType || ""))
|
|
7803
|
-
return ["range"].includes(
|
|
7806
|
+
return ["range"].includes(b.method) ? "j-date-range" : ["formula"].includes(b.method) ? "j-select" : "j-date";
|
|
7804
7807
|
return "j-input";
|
|
7805
7808
|
},
|
|
7806
|
-
getCompConfig: ({ row:
|
|
7807
|
-
if (["empty", "not_empty"].includes(
|
|
7809
|
+
getCompConfig: ({ row: b }) => {
|
|
7810
|
+
if (["empty", "not_empty"].includes(b.method || ""))
|
|
7808
7811
|
return { display: !1 };
|
|
7809
|
-
const w = i.columns.find((m) => m.id ===
|
|
7812
|
+
const w = i.columns.find((m) => m.id === b.field)?.config || {}, j = {
|
|
7810
7813
|
display: !0,
|
|
7811
7814
|
placeholder: "",
|
|
7812
7815
|
clearable: !0,
|
|
7813
7816
|
filterable: !0
|
|
7814
7817
|
};
|
|
7815
|
-
return ["options", "dataItem"].includes(w.dataType || "") ? (
|
|
7818
|
+
return ["options", "dataItem"].includes(w.dataType || "") ? (j.collapseTags = !0, j.collapseTagsTooltip = !0, j.dataType = w.dataType, j.dataCode = w.dataCode, j.options = w.options) : ["switch"].includes(w.dataType || "") ? (j.options = [], j.dataType = "options", w.activeValue == null ? j.options.push({ label: "是", value: "1" }) : j.options.push({ label: "是", value: w.activeValue }), w.inactiveValue == null ? j.options.push({ label: "否", value: "0" }) : j.options.push({ label: "否", value: w.inactiveValue })) : ["dateTime"].includes(w.dataType || "") && (["formula"].includes(b.method) ? (j.placeholder = "", j.options = [
|
|
7816
7819
|
{ label: "今天", value: "today" },
|
|
7817
7820
|
{ label: "昨天", value: "yesterday" },
|
|
7818
7821
|
{ label: "明天", value: "tomorrow" },
|
|
@@ -7830,7 +7833,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7830
7833
|
{ label: "今年", value: "thisYear" },
|
|
7831
7834
|
{ label: "去年", value: "lastYear" },
|
|
7832
7835
|
{ label: "明年", value: "nextYear" }
|
|
7833
|
-
],
|
|
7836
|
+
], j.dataType = "options") : (j.type = "datetime", ["range"].includes(b.method) ? (j.startPlaceholder = "开始时间", j.endPlaceholder = "结束时间", j.defaultTime = [new Date(2e3, 1, 1, 0, 0, 0), new Date(2e3, 2, 1, 23, 59, 59)]) : j.placeholder = "")), j;
|
|
7834
7837
|
},
|
|
7835
7838
|
config: {
|
|
7836
7839
|
width: l.value ? 234 : 296,
|
|
@@ -7843,19 +7846,19 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7843
7846
|
r.value = i.searchFieldList;
|
|
7844
7847
|
});
|
|
7845
7848
|
const u = R(
|
|
7846
|
-
() => i.columns.filter((
|
|
7847
|
-
label:
|
|
7848
|
-
value:
|
|
7849
|
-
dataType:
|
|
7850
|
-
options:
|
|
7849
|
+
() => i.columns.filter((b) => !b.children?.length).map((b) => ({
|
|
7850
|
+
label: b.config?.label,
|
|
7851
|
+
value: b.id,
|
|
7852
|
+
dataType: b.config?.dataType,
|
|
7853
|
+
options: b.config?.options
|
|
7851
7854
|
}))
|
|
7852
|
-
), d = R(() => r.value.map((
|
|
7853
|
-
if (d.value.includes(
|
|
7854
|
-
const w = i.columns.find((S) => S.id ===
|
|
7855
|
-
let
|
|
7856
|
-
["options", "dataItem"].includes(w.dataType || "") ?
|
|
7857
|
-
field:
|
|
7858
|
-
method:
|
|
7855
|
+
), d = R(() => r.value.map((b) => b.field)), f = ({ data: b }) => {
|
|
7856
|
+
if (d.value.includes(b.value)) return;
|
|
7857
|
+
const w = i.columns.find((S) => S.id === b.value)?.config || {};
|
|
7858
|
+
let j = "eq", m = "text";
|
|
7859
|
+
["options", "dataItem"].includes(w.dataType || "") ? j = "in" : ["dateTime"].includes(w.dataType || "") && (j = "range", m = "dateTime"), r.value.push({
|
|
7860
|
+
field: b.value,
|
|
7861
|
+
method: j,
|
|
7859
7862
|
type: w.valueType || m
|
|
7860
7863
|
});
|
|
7861
7864
|
}, h = n, p = () => {
|
|
@@ -7863,14 +7866,14 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7863
7866
|
}, g = () => {
|
|
7864
7867
|
l.value ? h("filter") : h("close", !0);
|
|
7865
7868
|
}, v = () => {
|
|
7866
|
-
r.value.forEach((
|
|
7867
|
-
|
|
7869
|
+
r.value.forEach((b) => {
|
|
7870
|
+
b.value = void 0;
|
|
7868
7871
|
}), h("filter");
|
|
7869
7872
|
};
|
|
7870
7873
|
return t({
|
|
7871
7874
|
getSearchFields: () => r.value
|
|
7872
|
-
}), (
|
|
7873
|
-
const w = B("j-icon"),
|
|
7875
|
+
}), (b, x) => {
|
|
7876
|
+
const w = B("j-icon"), j = B("j-select"), m = B("j-button-select"), S = B("j-button"), k = B("j-input-rows"), E = B("el-tooltip");
|
|
7874
7877
|
return C(), A("div", {
|
|
7875
7878
|
class: Pe(["j-filter-panel", { "is-pin": l.value }])
|
|
7876
7879
|
}, [
|
|
@@ -7882,9 +7885,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7882
7885
|
V("div", Jh, [
|
|
7883
7886
|
V("div", null, xe(J(o)("筛选出符合以下")), 1),
|
|
7884
7887
|
V("div", Kh, [
|
|
7885
|
-
K(
|
|
7888
|
+
K(j, {
|
|
7886
7889
|
modelValue: a.value,
|
|
7887
|
-
"onUpdate:modelValue":
|
|
7890
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => a.value = P),
|
|
7888
7891
|
teleported: !1,
|
|
7889
7892
|
"no-border": !0,
|
|
7890
7893
|
options: [
|
|
@@ -7913,13 +7916,13 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
7913
7916
|
V("div", Gh, [
|
|
7914
7917
|
K(k, {
|
|
7915
7918
|
modelValue: r.value,
|
|
7916
|
-
"onUpdate:modelValue":
|
|
7919
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => r.value = P),
|
|
7917
7920
|
columns: c,
|
|
7918
7921
|
"edit-config": { isAddBtn: !1 },
|
|
7919
7922
|
"is-wrap": l.value
|
|
7920
7923
|
}, null, 8, ["modelValue", "is-wrap"])
|
|
7921
7924
|
]),
|
|
7922
|
-
K(
|
|
7925
|
+
K(E, {
|
|
7923
7926
|
placement: "bottom",
|
|
7924
7927
|
content: l.value ? J(o)("取消固定") : J(o)("固定显示")
|
|
7925
7928
|
}, {
|
|
@@ -8002,7 +8005,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8002
8005
|
r.value = [], a("clear");
|
|
8003
8006
|
};
|
|
8004
8007
|
return t({ init: d }), (p, g) => {
|
|
8005
|
-
const v = B("j-button-select"), y = B("j-input-rows"),
|
|
8008
|
+
const v = B("j-button-select"), y = B("j-input-rows"), b = B("j-button");
|
|
8006
8009
|
return C(), A("div", Xh, [
|
|
8007
8010
|
V("div", Zh, [
|
|
8008
8011
|
V("div", Qh, [
|
|
@@ -8016,19 +8019,19 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8016
8019
|
V("div", eg, [
|
|
8017
8020
|
K(y, {
|
|
8018
8021
|
modelValue: r.value,
|
|
8019
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
8022
|
+
"onUpdate:modelValue": g[0] || (g[0] = (x) => r.value = x),
|
|
8020
8023
|
columns: c,
|
|
8021
8024
|
"edit-config": { isAddBtn: !1, drag: !0 }
|
|
8022
8025
|
}, null, 8, ["modelValue"])
|
|
8023
8026
|
])
|
|
8024
8027
|
]),
|
|
8025
8028
|
V("div", tg, [
|
|
8026
|
-
K(
|
|
8029
|
+
K(b, {
|
|
8027
8030
|
label: J(o)("排序"),
|
|
8028
8031
|
type: "primary",
|
|
8029
8032
|
onClick: f
|
|
8030
8033
|
}, null, 8, ["label"]),
|
|
8031
|
-
r.value.length > 0 ? (C(), O(
|
|
8034
|
+
r.value.length > 0 ? (C(), O(b, {
|
|
8032
8035
|
key: 0,
|
|
8033
8036
|
label: J(o)("清空排序"),
|
|
8034
8037
|
icon: "mdi:delete-sweep",
|
|
@@ -8054,13 +8057,13 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8054
8057
|
emits: ["save"],
|
|
8055
8058
|
setup(e, { expose: t, emit: n }) {
|
|
8056
8059
|
const { t: o } = St(), i = e, a = n, l = $(), r = $(""), s = {}, c = $([]), u = $([]), d = (m, S) => {
|
|
8057
|
-
const k = [],
|
|
8060
|
+
const k = [], E = /* @__PURE__ */ new Map();
|
|
8058
8061
|
m.forEach((T) => {
|
|
8059
|
-
|
|
8062
|
+
E.set(T.id, T), s[T.id] = T;
|
|
8060
8063
|
});
|
|
8061
8064
|
const P = /* @__PURE__ */ new Set();
|
|
8062
8065
|
return S && S.length > 0 && S.forEach((T) => {
|
|
8063
|
-
const L =
|
|
8066
|
+
const L = E.get(T.id);
|
|
8064
8067
|
if (L) {
|
|
8065
8068
|
P.add(L.id);
|
|
8066
8069
|
const z = {
|
|
@@ -8083,10 +8086,10 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8083
8086
|
}
|
|
8084
8087
|
}), k;
|
|
8085
8088
|
}, f = (m, S) => S.length === 0 ? m : m.map((k) => {
|
|
8086
|
-
const
|
|
8089
|
+
const E = S.some(
|
|
8087
8090
|
(T) => k.label.toLowerCase().includes(T.toLowerCase())
|
|
8088
8091
|
), P = k.children ? f(k.children, S) : [];
|
|
8089
|
-
return
|
|
8092
|
+
return E || P.length > 0 ? {
|
|
8090
8093
|
...k,
|
|
8091
8094
|
children: P.length > 0 ? P : k.children
|
|
8092
8095
|
} : null;
|
|
@@ -8099,8 +8102,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8099
8102
|
const m = /* @__PURE__ */ new Map();
|
|
8100
8103
|
if (i.columnConfig && i.columnConfig.length > 0) {
|
|
8101
8104
|
const S = (k) => {
|
|
8102
|
-
k.forEach((
|
|
8103
|
-
m.set(
|
|
8105
|
+
k.forEach((E) => {
|
|
8106
|
+
m.set(E.id, E), E.children && S(E.children);
|
|
8104
8107
|
});
|
|
8105
8108
|
};
|
|
8106
8109
|
S(i.columnConfig);
|
|
@@ -8109,26 +8112,26 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8109
8112
|
}), v = () => {
|
|
8110
8113
|
const m = (S) => {
|
|
8111
8114
|
const k = [];
|
|
8112
|
-
return S.forEach((
|
|
8115
|
+
return S.forEach((E) => {
|
|
8113
8116
|
let P = !0;
|
|
8114
8117
|
if (g.value.size > 0) {
|
|
8115
|
-
const T = g.value.get(
|
|
8116
|
-
T ? P = T.display : P =
|
|
8118
|
+
const T = g.value.get(E.id);
|
|
8119
|
+
T ? P = T.display : P = E.config?.display !== !1;
|
|
8117
8120
|
} else
|
|
8118
|
-
P =
|
|
8119
|
-
P && (k.push(
|
|
8121
|
+
P = E.config?.display !== !1;
|
|
8122
|
+
P && (k.push(E.id), E.children && k.push(...m(E.children)));
|
|
8120
8123
|
}), k;
|
|
8121
8124
|
};
|
|
8122
8125
|
p.value = m(i.columns);
|
|
8123
8126
|
}, y = (m, { node: S }) => {
|
|
8124
|
-
m.includes(S.id) ? p.value.push(S.id) : p.value = p.value.filter((
|
|
8125
|
-
},
|
|
8127
|
+
m.includes(S.id) ? p.value.push(S.id) : p.value = p.value.filter((E) => E !== S.id);
|
|
8128
|
+
}, b = (m, S, k) => k === "inner" ? !1 : m.parent === S.parent, x = () => {
|
|
8126
8129
|
const m = (S) => S.map((k) => {
|
|
8127
|
-
const
|
|
8130
|
+
const E = {
|
|
8128
8131
|
...k,
|
|
8129
8132
|
display: p.value.includes(k.id)
|
|
8130
8133
|
};
|
|
8131
|
-
return k.children && (
|
|
8134
|
+
return k.children && (E.children = m(k.children)), E;
|
|
8132
8135
|
});
|
|
8133
8136
|
a("save", m(u.value));
|
|
8134
8137
|
}, w = () => {
|
|
@@ -8142,11 +8145,11 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8142
8145
|
return t({ init: () => {
|
|
8143
8146
|
v(), c.value = d(i.columns, i.columnConfig), u.value = JSON.parse(JSON.stringify(c.value));
|
|
8144
8147
|
} }), (m, S) => {
|
|
8145
|
-
const k = B("j-icon"),
|
|
8148
|
+
const k = B("j-icon"), E = B("el-input"), P = B("j-tree"), T = B("j-button");
|
|
8146
8149
|
return C(), A("div", og, [
|
|
8147
8150
|
V("div", ig, [
|
|
8148
8151
|
V("div", ag, [
|
|
8149
|
-
K(
|
|
8152
|
+
K(E, {
|
|
8150
8153
|
modelValue: r.value,
|
|
8151
8154
|
"onUpdate:modelValue": S[0] || (S[0] = (L) => r.value = L),
|
|
8152
8155
|
modelModifiers: { trim: !0 },
|
|
@@ -8170,7 +8173,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8170
8173
|
checkable: "",
|
|
8171
8174
|
"id-key": "id",
|
|
8172
8175
|
draggable: !r.value,
|
|
8173
|
-
"allow-drop":
|
|
8176
|
+
"allow-drop": b,
|
|
8174
8177
|
check: y
|
|
8175
8178
|
}, null, 8, ["list", "default-checked-keys", "draggable"])
|
|
8176
8179
|
])
|
|
@@ -8179,7 +8182,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8179
8182
|
K(T, {
|
|
8180
8183
|
label: J(o)("确定"),
|
|
8181
8184
|
type: "primary",
|
|
8182
|
-
onClick:
|
|
8185
|
+
onClick: x
|
|
8183
8186
|
}, null, 8, ["label"]),
|
|
8184
8187
|
K(T, {
|
|
8185
8188
|
label: J(o)("重置"),
|
|
@@ -8325,9 +8328,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8325
8328
|
let s = [];
|
|
8326
8329
|
const c = $(0), u = $(1);
|
|
8327
8330
|
let d = a.pageSize || 100, f = "";
|
|
8328
|
-
const h = $([]), p = $(!1), g = R(() => a.batchButtons && a.batchButtons.length > 0), v = R(() => h.value.length > 0), y = R(() => g.value && v.value && a.isMultiple || p.value),
|
|
8331
|
+
const h = $([]), p = $(!1), g = R(() => a.batchButtons && a.batchButtons.length > 0), v = R(() => h.value.length > 0), y = R(() => g.value && v.value && a.isMultiple || p.value), b = R(() => a.isPage && !y.value);
|
|
8329
8332
|
g.value && !a.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
|
|
8330
|
-
const
|
|
8333
|
+
const x = (ae) => a.rowKey ? a.rowKey.split(",").map((mt) => ae[mt.trim()]).join("::") : "", w = (ae, fe) => {
|
|
8331
8334
|
if (!fe || fe.length === 0)
|
|
8332
8335
|
return ae.filter((ce) => ce.config?.display !== !1).map((ce) => ce.children && ce.children.length > 0 ? {
|
|
8333
8336
|
...ce,
|
|
@@ -8355,8 +8358,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8355
8358
|
}), _t.push(ut);
|
|
8356
8359
|
}
|
|
8357
8360
|
}), _t;
|
|
8358
|
-
},
|
|
8359
|
-
|
|
8361
|
+
}, j = R(() => w(a.columns, ze.value)), m = R(() => Id(a.columns, (ae) => ae.config.label)), S = $(""), k = R(() => m.value.some((ae) => ae.config?.filter?.isSearchKeyword)), E = $(), P = $(!0), T = $([]), L = R(() => P.value ? "搜索全部" : `搜索范围:${m.value.filter((ae) => T.value.includes(ae.id)).map((ae) => ae.config?.label).join("、")}`), z = () => {
|
|
8362
|
+
E.value.init();
|
|
8360
8363
|
}, H = $(), M = $(!1), _ = $(!1), I = $(!1), F = $([]), ie = $("and"), se = $(), me = $(!1), Me = $([]), Qe = () => {
|
|
8361
8364
|
se.value.init(Me.value);
|
|
8362
8365
|
}, Z = (ae) => {
|
|
@@ -8458,9 +8461,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8458
8461
|
else if (!a.rowKey)
|
|
8459
8462
|
fe = ae;
|
|
8460
8463
|
else {
|
|
8461
|
-
const mt = new Map(ae.map((ce) => [
|
|
8464
|
+
const mt = new Map(ae.map((ce) => [x(ce), ce])), _t = new Map(h.value.map((ce) => [x(ce), ce]));
|
|
8462
8465
|
s.forEach((ce) => {
|
|
8463
|
-
const ut =
|
|
8466
|
+
const ut = x(ce);
|
|
8464
8467
|
mt.has(ut) ? _t.set(ut, mt.get(ut)) : _t.delete(ut);
|
|
8465
8468
|
}), fe = Array.from(_t.values());
|
|
8466
8469
|
}
|
|
@@ -8535,7 +8538,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8535
8538
|
default: D(() => [
|
|
8536
8539
|
K(Hh, {
|
|
8537
8540
|
ref_key: "keywordPanelRef",
|
|
8538
|
-
ref:
|
|
8541
|
+
ref: E,
|
|
8539
8542
|
"check-all": P.value,
|
|
8540
8543
|
"onUpdate:checkAll": fe[0] || (fe[0] = (tt) => P.value = tt),
|
|
8541
8544
|
"check-fields": T.value,
|
|
@@ -8699,12 +8702,12 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
8699
8702
|
ref: r,
|
|
8700
8703
|
"table-page": u.value,
|
|
8701
8704
|
"onUpdate:tablePage": fe[9] || (fe[9] = (tt) => u.value = tt),
|
|
8702
|
-
columns:
|
|
8705
|
+
columns: j.value,
|
|
8703
8706
|
records: J(s),
|
|
8704
8707
|
"is-tree": e.isTree,
|
|
8705
8708
|
"is-show-number": e.isShowNumber,
|
|
8706
8709
|
"is-multiple": e.isMultiple && !!e.rowKey,
|
|
8707
|
-
"is-page":
|
|
8710
|
+
"is-page": b.value,
|
|
8708
8711
|
"page-sizes": e.pageSizes,
|
|
8709
8712
|
"page-size": e.pageSize,
|
|
8710
8713
|
"page-total": c.value,
|
|
@@ -9058,9 +9061,9 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
9058
9061
|
});
|
|
9059
9062
|
}, y = (H, M = !0) => {
|
|
9060
9063
|
c.value?.setCurrentKey(H, M);
|
|
9061
|
-
},
|
|
9064
|
+
}, b = () => c.value?.getCurrentKey(), x = (H, M = !1) => {
|
|
9062
9065
|
c.value?.setCheckedKeys(H, M);
|
|
9063
|
-
}, w = (H = !1) => c.value?.getCheckedKeys(H),
|
|
9066
|
+
}, w = (H = !1) => c.value?.getCheckedKeys(H), j = async (H, M, _, I) => {
|
|
9064
9067
|
if (d.value = H.value, o.nodeClickFlow && o.runFlow) {
|
|
9065
9068
|
const F = JSON.parse(o.nodeClickFlow);
|
|
9066
9069
|
await o.runFlow(F, { value: H.value });
|
|
@@ -9073,8 +9076,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
9073
9076
|
}, k = (H) => {
|
|
9074
9077
|
const M = fn(o.treeButtons);
|
|
9075
9078
|
return H && o.filterButton ? o.filterButton({ buttons: M, node: H }) : M;
|
|
9076
|
-
}, { openLayer:
|
|
9077
|
-
H.config?.disabled || H.click && H.click({ data: M, openLayer:
|
|
9079
|
+
}, { openLayer: E } = ei(), P = (H, M) => {
|
|
9080
|
+
H.config?.disabled || H.click && H.click({ data: M, openLayer: E });
|
|
9078
9081
|
}, T = $(""), L = (H, M) => {
|
|
9079
9082
|
T.value = H ? M.value : "", console.log(T.value, "row");
|
|
9080
9083
|
}, z = (H, M, _) => o.allowDrop ? o.allowDrop(H, M, _) : !(_ == "inner" && !M.data.canInner);
|
|
@@ -9095,8 +9098,8 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
9095
9098
|
), t({
|
|
9096
9099
|
refreshData: v,
|
|
9097
9100
|
setValue: y,
|
|
9098
|
-
getValue:
|
|
9099
|
-
setCheck:
|
|
9101
|
+
getValue: b,
|
|
9102
|
+
setCheck: x,
|
|
9100
9103
|
getCheck: w
|
|
9101
9104
|
}), (H, M) => {
|
|
9102
9105
|
const _ = B("j-icon"), I = B("j-button"), F = B("el-dropdown-item"), ie = B("el-dropdown-menu"), se = B("el-dropdown"), me = B("el-tree"), Me = B("el-empty"), Qe = Gi("loading");
|
|
@@ -9123,7 +9126,7 @@ const Vf = { class: "j-table-footer" }, Ff = {
|
|
|
9123
9126
|
draggable: e.draggable,
|
|
9124
9127
|
"allow-drop": z,
|
|
9125
9128
|
"expand-on-click-node": e.expandOnClickNode,
|
|
9126
|
-
onNodeClick:
|
|
9129
|
+
onNodeClick: j,
|
|
9127
9130
|
onCheck: m,
|
|
9128
9131
|
onNodeDrop: S
|
|
9129
9132
|
}, {
|
|
@@ -9363,13 +9366,13 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9363
9366
|
a && (p = a());
|
|
9364
9367
|
const g = (U) => {
|
|
9365
9368
|
d && d(U);
|
|
9366
|
-
}, v = $(!1), y = R(() => o.config?.gutter || 16),
|
|
9369
|
+
}, v = $(!1), y = R(() => o.config?.gutter || 16), b = R(() => o.config?.span || 24), x = R(() => o.config?.labelWidth), w = R(() => o.config?.labelPosition || "right"), j = R(
|
|
9367
9370
|
() => k.length === 1 && (k[0].type === "j-tabs" || k[0].type === "j-layout" || k[0].config?.isAutoWindow)
|
|
9368
|
-
), m = Co({}), S = $({}), k = [],
|
|
9371
|
+
), m = Co({}), S = $({}), k = [], E = {}, P = $({});
|
|
9369
9372
|
let T = {}, L = {}, z = [], H = {};
|
|
9370
9373
|
const M = (U) => {
|
|
9371
9374
|
i("change", U);
|
|
9372
|
-
}, _ = (U) => rl(
|
|
9375
|
+
}, _ = (U) => rl(E[U]?.type || "") && !E[U]?.config?.notInput || E[U]?.config?.isInput, I = (U) => ["j-table", "j-input-rows", "j-input-cards"].includes(E[U]?.type || "");
|
|
9373
9376
|
let F;
|
|
9374
9377
|
const ie = (U, ne) => {
|
|
9375
9378
|
Object.keys(U).forEach((Y) => {
|
|
@@ -9393,9 +9396,9 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9393
9396
|
};
|
|
9394
9397
|
ne.push(he);
|
|
9395
9398
|
const { children: Te } = ee;
|
|
9396
|
-
Ba(he, ee, ["children", "config"]), Ba(he.config, ee.config || {}, []),
|
|
9399
|
+
Ba(he, ee, ["children", "config"]), Ba(he.config, ee.config || {}, []), E[ee.id] && console.warn("有重复的组件id:" + ee.id), E[ee.id] = he, o.readonly === !0 && (he.config.readonly = !0);
|
|
9397
9400
|
let Je = !1, ht;
|
|
9398
|
-
X !== "" && I(X) && (Je = !0, he.config = ee.config || {}, he.config.parentTableId = X, ht =
|
|
9401
|
+
X !== "" && I(X) && (Je = !0, he.config = ee.config || {}, he.config.parentTableId = X, ht = E[X]?.config?.table);
|
|
9399
9402
|
const ae = he.config || {};
|
|
9400
9403
|
if (_(ee.id))
|
|
9401
9404
|
!Y && Je === !1 && (ae?.defaultValue === 0 ? m[ee.id] = ae?.defaultValue : m[ee.id] = ae?.defaultValue || void 0), ae.table && ae.field ? T[`${ae.table}_${ae.field}`.toLowerCase()] = ee.id : ae.field && (Je ? T[`${ht}_${ae.field}`.toLowerCase()] = ee.id : T[`${ae.field}`.toLowerCase()] = ee.id);
|
|
@@ -9464,7 +9467,7 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9464
9467
|
const Y = {};
|
|
9465
9468
|
return Object.keys(U).forEach((X) => {
|
|
9466
9469
|
if (X === "parentRow") return;
|
|
9467
|
-
const ee =
|
|
9470
|
+
const ee = E[X];
|
|
9468
9471
|
if (ee) {
|
|
9469
9472
|
const he = ee.config?.table, Te = ee.config?.field;
|
|
9470
9473
|
if (ne)
|
|
@@ -9478,10 +9481,10 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9478
9481
|
} else ne ? X !== "_X_ROW_KEY" && X !== "_isHover" && (Y[X] = U[X]) : L[X] ? (Y[L[X]] = Y[L[X]] || {}, Y[L[X]][X.replace(`${L[X]}_`, "")] = U[X]) : Y[X] = U[X];
|
|
9479
9482
|
}), Y;
|
|
9480
9483
|
}, Le = (U = !0) => U ? Be(m) : m, ye = (U, ne, Y, X) => {
|
|
9481
|
-
let ee =
|
|
9484
|
+
let ee = E[U];
|
|
9482
9485
|
if (ee == null) {
|
|
9483
9486
|
const Te = U.split(".");
|
|
9484
|
-
ee =
|
|
9487
|
+
ee = E[Te[Te.length - 1]] || {};
|
|
9485
9488
|
}
|
|
9486
9489
|
if (!ee)
|
|
9487
9490
|
return {};
|
|
@@ -9526,15 +9529,15 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9526
9529
|
S.value = {};
|
|
9527
9530
|
const U = await rt();
|
|
9528
9531
|
return Object.keys(U).length > 0 ? (S.value = U, g(
|
|
9529
|
-
`${h(
|
|
9532
|
+
`${h(E[Object.keys(U)[0]]?.config?.label)}:${h(U[Object.keys(U)[0]].msg)}`
|
|
9530
9533
|
), !1) : !0;
|
|
9531
9534
|
}, pe = () => {
|
|
9532
9535
|
S.value = {}, Li(m), Object.keys(H || {}).forEach((U) => {
|
|
9533
9536
|
m[U] = H[U];
|
|
9534
9537
|
});
|
|
9535
9538
|
}, be = (U) => {
|
|
9536
|
-
let ne =
|
|
9537
|
-
return ne === void 0 && T[U.toLowerCase()] && (ne =
|
|
9539
|
+
let ne = E[U];
|
|
9540
|
+
return ne === void 0 && T[U.toLowerCase()] && (ne = E[T[U.toLowerCase()]]), ne;
|
|
9538
9541
|
}, We = ({ id: U, i: ne, value: Y, type: X }) => {
|
|
9539
9542
|
if (X === "add")
|
|
9540
9543
|
m[U].push(Y);
|
|
@@ -9637,10 +9640,10 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9637
9640
|
formData: m,
|
|
9638
9641
|
compsConfig: P,
|
|
9639
9642
|
errorFields: S,
|
|
9640
|
-
isAutoWindow:
|
|
9643
|
+
isAutoWindow: j,
|
|
9641
9644
|
gutter: y,
|
|
9642
|
-
span:
|
|
9643
|
-
labelWidth:
|
|
9645
|
+
span: b,
|
|
9646
|
+
labelWidth: x,
|
|
9644
9647
|
labelPosition: w,
|
|
9645
9648
|
getValue: yt,
|
|
9646
9649
|
formChange: M
|
|
@@ -9662,13 +9665,13 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9662
9665
|
key: 0,
|
|
9663
9666
|
class: Pe([{ "j-block": e.isAutoSize }, { "j-form-auto": e.isAutoSize }, "j-form"]),
|
|
9664
9667
|
"label-position": w.value,
|
|
9665
|
-
"label-width":
|
|
9668
|
+
"label-width": x.value,
|
|
9666
9669
|
size: e.config?.size,
|
|
9667
9670
|
onSubmit: ne[0] || (ne[0] = Ct(() => {
|
|
9668
9671
|
}, ["prevent"]))
|
|
9669
9672
|
}, {
|
|
9670
9673
|
default: D(() => [
|
|
9671
|
-
|
|
9674
|
+
j.value ? (C(), O(Y, Re({ key: 0 }, k[0], { "is-not-col": "" }), null, 16)) : (C(), O(X, {
|
|
9672
9675
|
key: 1,
|
|
9673
9676
|
gutter: y.value
|
|
9674
9677
|
}, {
|
|
@@ -9713,13 +9716,13 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9713
9716
|
},
|
|
9714
9717
|
setup(e, { expose: t }) {
|
|
9715
9718
|
const n = e, o = $(!1), i = Co([]), a = {}, l = Co({}), r = new As(), s = /* @__PURE__ */ new Map(), c = (p, g, v, ...y) => {
|
|
9716
|
-
const
|
|
9717
|
-
return v?.immediate && s.set(
|
|
9719
|
+
const b = `${p}:${g}`;
|
|
9720
|
+
return v?.immediate && s.set(b, y), r.emit(b, ...y);
|
|
9718
9721
|
}, u = (p, g, v) => {
|
|
9719
9722
|
const y = `${p}:${g}`;
|
|
9720
9723
|
r.on(y, v);
|
|
9721
|
-
const
|
|
9722
|
-
|
|
9724
|
+
const b = s.get(y);
|
|
9725
|
+
b && (s.delete(y), v(...b));
|
|
9723
9726
|
}, d = (p, g, v) => {
|
|
9724
9727
|
const y = `${p}:${g}`;
|
|
9725
9728
|
s.delete(y), r.off(y, v);
|
|
@@ -9732,8 +9735,8 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9732
9735
|
type: v.type,
|
|
9733
9736
|
config: {},
|
|
9734
9737
|
children: []
|
|
9735
|
-
}, { children:
|
|
9736
|
-
a[v.id] = y, Ba(y.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l.value[v.id] = v.config.defaultValue), g.push(y),
|
|
9738
|
+
}, { children: b } = v;
|
|
9739
|
+
a[v.id] = y, Ba(y.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l.value[v.id] = v.config.defaultValue), g.push(y), b && b.length > 0 && f(b, y.children);
|
|
9737
9740
|
});
|
|
9738
9741
|
}, h = (p) => {
|
|
9739
9742
|
o.value = !1, i.splice(0, i.length), Li(a), Li(l), f(p, i), Tt(() => {
|
|
@@ -9972,17 +9975,17 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9972
9975
|
})) : (g.value = [], i("update:modelValue", g.value)), Ze(
|
|
9973
9976
|
() => o.modelValue,
|
|
9974
9977
|
(w) => {
|
|
9975
|
-
g.value = o.modelValue || [], g.value = w || [], g.value.forEach((
|
|
9976
|
-
|
|
9978
|
+
g.value = o.modelValue || [], g.value = w || [], g.value.forEach((j) => {
|
|
9979
|
+
j._i || (j._i = Tn());
|
|
9977
9980
|
});
|
|
9978
9981
|
},
|
|
9979
9982
|
{ deep: !0 }
|
|
9980
9983
|
);
|
|
9981
9984
|
const y = () => {
|
|
9982
9985
|
const w = { _i: Tn() };
|
|
9983
|
-
o.columns.forEach((
|
|
9984
|
-
const m =
|
|
9985
|
-
m && (w[m] = fn(
|
|
9986
|
+
o.columns.forEach((j) => {
|
|
9987
|
+
const m = j.config?.valueRowKey || j.id || "";
|
|
9988
|
+
m && (w[m] = fn(j.config?.defaultValue));
|
|
9986
9989
|
}), g.value.push(w), i("change", {
|
|
9987
9990
|
id: o.id,
|
|
9988
9991
|
value: w,
|
|
@@ -9991,44 +9994,44 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
9991
9994
|
tableData: g.value,
|
|
9992
9995
|
type: "add"
|
|
9993
9996
|
});
|
|
9994
|
-
},
|
|
9995
|
-
const
|
|
9997
|
+
}, b = (w) => {
|
|
9998
|
+
const j = g.value[w];
|
|
9996
9999
|
g.value.splice(w, 1), i("change", {
|
|
9997
10000
|
id: o.id,
|
|
9998
|
-
value:
|
|
9999
|
-
data:
|
|
10001
|
+
value: j,
|
|
10002
|
+
data: j,
|
|
10000
10003
|
formData: a,
|
|
10001
10004
|
tableData: g.value,
|
|
10002
10005
|
type: "delete"
|
|
10003
10006
|
});
|
|
10004
|
-
},
|
|
10007
|
+
}, x = (w) => {
|
|
10005
10008
|
i("rowChange", w);
|
|
10006
10009
|
};
|
|
10007
10010
|
return vt(() => {
|
|
10008
10011
|
if (!d.value || !h.value)
|
|
10009
10012
|
return;
|
|
10010
|
-
const w = h.value, { initSortable:
|
|
10013
|
+
const w = h.value, { initSortable: j } = Jd(w, {
|
|
10011
10014
|
handle: ".j-input-rows-drag",
|
|
10012
10015
|
onEnd: (m) => {
|
|
10013
10016
|
const { oldIndex: S, newIndex: k } = m;
|
|
10014
10017
|
if (n(S) || n(k) || S === k || S < 0 || k < 0)
|
|
10015
10018
|
return;
|
|
10016
|
-
const
|
|
10017
|
-
g.value.splice(k, 0,
|
|
10019
|
+
const E = g.value.splice(S, 1)[0];
|
|
10020
|
+
g.value.splice(k, 0, E), i("change", {
|
|
10018
10021
|
id: o.id,
|
|
10019
|
-
value:
|
|
10020
|
-
data:
|
|
10022
|
+
value: E,
|
|
10023
|
+
data: E,
|
|
10021
10024
|
formData: a,
|
|
10022
10025
|
tableData: g.value,
|
|
10023
10026
|
type: "sort"
|
|
10024
10027
|
});
|
|
10025
10028
|
}
|
|
10026
10029
|
});
|
|
10027
|
-
|
|
10030
|
+
j();
|
|
10028
10031
|
}), Xi({
|
|
10029
10032
|
getTableData: () => g.value,
|
|
10030
|
-
rowChange:
|
|
10031
|
-
}), (w,
|
|
10033
|
+
rowChange: x
|
|
10034
|
+
}), (w, j) => {
|
|
10032
10035
|
const m = B("j-comp"), S = B("j-icon"), k = B("j-button");
|
|
10033
10036
|
return C(), A("div", qg, [
|
|
10034
10037
|
V("div", {
|
|
@@ -10036,8 +10039,8 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10036
10039
|
ref: h,
|
|
10037
10040
|
class: "j-input-rows-container"
|
|
10038
10041
|
}, [
|
|
10039
|
-
(C(!0), A(ve, null, Se(g.value, (
|
|
10040
|
-
key:
|
|
10042
|
+
(C(!0), A(ve, null, Se(g.value, (E, P) => (C(), A("div", {
|
|
10043
|
+
key: E._i + P,
|
|
10041
10044
|
class: Pe([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
10042
10045
|
}, [
|
|
10043
10046
|
e.showNum ? (C(), A("div", Xg, xe(P + 1), 1)) : W("", !0),
|
|
@@ -10045,7 +10048,7 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10045
10048
|
(C(!0), A(ve, null, Se(e.columns, (T) => (C(), O(m, Re({
|
|
10046
10049
|
key: T.id,
|
|
10047
10050
|
ref_for: !0
|
|
10048
|
-
}, T, { row:
|
|
10051
|
+
}, T, { row: E }), null, 16, ["row"]))), 128)),
|
|
10049
10052
|
d.value ? (C(), O(S, {
|
|
10050
10053
|
key: 2,
|
|
10051
10054
|
class: "j-input-rows-drag",
|
|
@@ -10055,7 +10058,7 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10055
10058
|
key: 3,
|
|
10056
10059
|
icon: "mdi:delete-outline",
|
|
10057
10060
|
class: "j-input-rows-delete",
|
|
10058
|
-
onClick: (T) =>
|
|
10061
|
+
onClick: (T) => b(P)
|
|
10059
10062
|
}, null, 8, ["onClick"])) : W("", !0)
|
|
10060
10063
|
], 2))), 128))
|
|
10061
10064
|
], 512),
|
|
@@ -10143,14 +10146,14 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10143
10146
|
if (o.isMultiSelect) {
|
|
10144
10147
|
const g = [], v = [];
|
|
10145
10148
|
p.forEach((y) => {
|
|
10146
|
-
const
|
|
10147
|
-
g.push(
|
|
10149
|
+
const b = y[o.labelKey], x = y[o.valueKey];
|
|
10150
|
+
g.push(b != null ? String(b) : ""), x === 0 || x ? v.push(String(x)) : v.push("");
|
|
10148
10151
|
}), r.value = g.join(","), s.value = v.join(","), i("change", { value: v.join(","), data: p });
|
|
10149
10152
|
} else if (p.length > 0) {
|
|
10150
10153
|
const g = p[0], v = g[o.labelKey], y = g[o.valueKey];
|
|
10151
10154
|
r.value = v != null ? String(v) : "";
|
|
10152
|
-
const
|
|
10153
|
-
s.value =
|
|
10155
|
+
const b = y != null ? String(y) : "";
|
|
10156
|
+
s.value = b, i("change", { value: b, data: g });
|
|
10154
10157
|
} else
|
|
10155
10158
|
r.value = "", s.value = "", i("change", { value: "", data: void 0 });
|
|
10156
10159
|
console.log(a.value.close, "layerRef.value.close"), a.value.close();
|
|
@@ -10306,7 +10309,7 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10306
10309
|
}), null, 16, ["type", "size", "icon"]),
|
|
10307
10310
|
K(y, {
|
|
10308
10311
|
visible: c.value,
|
|
10309
|
-
"onUpdate:visible": f[1] || (f[1] = (
|
|
10312
|
+
"onUpdate:visible": f[1] || (f[1] = (b) => c.value = b),
|
|
10310
10313
|
title: J(o)(e.layerLabel || "设置"),
|
|
10311
10314
|
height: e.layerHeight || 400,
|
|
10312
10315
|
width: e.layerWidth || 600,
|
|
@@ -10327,10 +10330,10 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10327
10330
|
gutter: i.value
|
|
10328
10331
|
}, {
|
|
10329
10332
|
default: D(() => [
|
|
10330
|
-
(C(!0), A(ve, null, Se(e.schema, (
|
|
10331
|
-
key:
|
|
10333
|
+
(C(!0), A(ve, null, Se(e.schema, (b) => (C(), O(p, Re({
|
|
10334
|
+
key: b.id,
|
|
10332
10335
|
ref_for: !0
|
|
10333
|
-
},
|
|
10336
|
+
}, b), null, 16))), 128))
|
|
10334
10337
|
]),
|
|
10335
10338
|
_: 1
|
|
10336
10339
|
}, 8, ["gutter"]))
|
|
@@ -10717,10 +10720,10 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10717
10720
|
f(y.point);
|
|
10718
10721
|
}), s.enableScrollWheelZoom(!0), h(o.lng, o.lat), a.value = !1;
|
|
10719
10722
|
}, f = (v) => {
|
|
10720
|
-
new r.Geocoder().getLocation(v, (
|
|
10721
|
-
c.setPosition(v), s.panTo(v), i("update:address",
|
|
10723
|
+
new r.Geocoder().getLocation(v, (b) => {
|
|
10724
|
+
c.setPosition(v), s.panTo(v), i("update:address", b.address), i("update:lng", v.lng), i("update:lat", v.lat), i("change", {
|
|
10722
10725
|
value: {
|
|
10723
|
-
address:
|
|
10726
|
+
address: b.address,
|
|
10724
10727
|
lng: v.lng,
|
|
10725
10728
|
lat: v.lat
|
|
10726
10729
|
}
|
|
@@ -10728,8 +10731,8 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10728
10731
|
});
|
|
10729
10732
|
}, h = (v, y) => {
|
|
10730
10733
|
if (v && y && r) {
|
|
10731
|
-
const
|
|
10732
|
-
c && c.setPosition(
|
|
10734
|
+
const b = new r.Point(v, y);
|
|
10735
|
+
c && c.setPosition(b), s && s.panTo(b);
|
|
10733
10736
|
}
|
|
10734
10737
|
};
|
|
10735
10738
|
let p = null;
|
|
@@ -10737,14 +10740,14 @@ const Bg = /* @__PURE__ */ oe({
|
|
|
10737
10740
|
setPoint: h,
|
|
10738
10741
|
querySearchAsync: (v, y) => {
|
|
10739
10742
|
!s || !r || (p || (p = new r.LocalSearch(s, {
|
|
10740
|
-
onSearchComplete: (
|
|
10741
|
-
const
|
|
10742
|
-
if (
|
|
10743
|
-
const w =
|
|
10744
|
-
for (let
|
|
10745
|
-
|
|
10743
|
+
onSearchComplete: (b) => {
|
|
10744
|
+
const x = [];
|
|
10745
|
+
if (b) {
|
|
10746
|
+
const w = b.getCurrentNumPois();
|
|
10747
|
+
for (let j = 0; j < w; j++)
|
|
10748
|
+
x.push(b.getPoi(j));
|
|
10746
10749
|
}
|
|
10747
|
-
y(
|
|
10750
|
+
y(x);
|
|
10748
10751
|
}
|
|
10749
10752
|
})), p.search(v));
|
|
10750
10753
|
}
|
|
@@ -10913,23 +10916,23 @@ function bi(e) {
|
|
|
10913
10916
|
var or = 500;
|
|
10914
10917
|
function Ks(e, t, n) {
|
|
10915
10918
|
var o = this;
|
|
10916
|
-
function i(k,
|
|
10917
|
-
if (!r(k,
|
|
10919
|
+
function i(k, E, P) {
|
|
10920
|
+
if (!r(k, E)) {
|
|
10918
10921
|
var T, L, z;
|
|
10919
|
-
P ? L = t.getGraphics(P) : (T =
|
|
10922
|
+
P ? L = t.getGraphics(P) : (T = E.delegateTarget || E.target, T && (L = T, P = t.get(L))), !(!L || !P) && (z = e.fire(k, {
|
|
10920
10923
|
element: P,
|
|
10921
10924
|
gfx: L,
|
|
10922
|
-
originalEvent:
|
|
10923
|
-
}), z === !1 && (
|
|
10925
|
+
originalEvent: E
|
|
10926
|
+
}), z === !1 && (E.stopPropagation(), E.preventDefault()));
|
|
10924
10927
|
}
|
|
10925
10928
|
}
|
|
10926
10929
|
var a = {};
|
|
10927
10930
|
function l(k) {
|
|
10928
10931
|
return a[k];
|
|
10929
10932
|
}
|
|
10930
|
-
function r(k,
|
|
10933
|
+
function r(k, E) {
|
|
10931
10934
|
var P = c[k] || Mn;
|
|
10932
|
-
return !P(
|
|
10935
|
+
return !P(E);
|
|
10933
10936
|
}
|
|
10934
10937
|
var s = {
|
|
10935
10938
|
click: "element.click",
|
|
@@ -10947,31 +10950,31 @@ function Ks(e, t, n) {
|
|
|
10947
10950
|
"element.click": bi,
|
|
10948
10951
|
"element.dblclick": bi
|
|
10949
10952
|
};
|
|
10950
|
-
function u(k,
|
|
10953
|
+
function u(k, E, P) {
|
|
10951
10954
|
var T = s[k];
|
|
10952
10955
|
if (!T)
|
|
10953
10956
|
throw new Error("unmapped DOM event name <" + k + ">");
|
|
10954
|
-
return i(T,
|
|
10957
|
+
return i(T, E, P);
|
|
10955
10958
|
}
|
|
10956
10959
|
var d = "svg, .djs-element";
|
|
10957
|
-
function f(k,
|
|
10960
|
+
function f(k, E, P, T) {
|
|
10958
10961
|
var L = a[P] = function(z) {
|
|
10959
10962
|
i(P, z);
|
|
10960
10963
|
};
|
|
10961
|
-
T && (c[P] = T), L.$delegate = kn.bind(k, d,
|
|
10964
|
+
T && (c[P] = T), L.$delegate = kn.bind(k, d, E, L);
|
|
10962
10965
|
}
|
|
10963
|
-
function h(k,
|
|
10966
|
+
function h(k, E, P) {
|
|
10964
10967
|
var T = l(P);
|
|
10965
|
-
T && kn.unbind(k,
|
|
10968
|
+
T && kn.unbind(k, E, T.$delegate);
|
|
10966
10969
|
}
|
|
10967
10970
|
function p(k) {
|
|
10968
|
-
Q(s, function(
|
|
10969
|
-
f(k, P,
|
|
10971
|
+
Q(s, function(E, P) {
|
|
10972
|
+
f(k, P, E);
|
|
10970
10973
|
});
|
|
10971
10974
|
}
|
|
10972
10975
|
function g(k) {
|
|
10973
|
-
Q(s, function(
|
|
10974
|
-
h(k, P,
|
|
10976
|
+
Q(s, function(E, P) {
|
|
10977
|
+
h(k, P, E);
|
|
10975
10978
|
});
|
|
10976
10979
|
}
|
|
10977
10980
|
e.on("canvas.destroy", function(k) {
|
|
@@ -10979,63 +10982,63 @@ function Ks(e, t, n) {
|
|
|
10979
10982
|
}), e.on("canvas.init", function(k) {
|
|
10980
10983
|
p(k.svg);
|
|
10981
10984
|
}), e.on(["shape.added", "connection.added"], function(k) {
|
|
10982
|
-
var
|
|
10983
|
-
e.fire("interactionEvents.createHit", { element:
|
|
10985
|
+
var E = k.element, P = k.gfx;
|
|
10986
|
+
e.fire("interactionEvents.createHit", { element: E, gfx: P });
|
|
10984
10987
|
}), e.on([
|
|
10985
10988
|
"shape.changed",
|
|
10986
10989
|
"connection.changed"
|
|
10987
10990
|
], or, function(k) {
|
|
10988
|
-
var
|
|
10989
|
-
e.fire("interactionEvents.updateHit", { element:
|
|
10991
|
+
var E = k.element, P = k.gfx;
|
|
10992
|
+
e.fire("interactionEvents.updateHit", { element: E, gfx: P });
|
|
10990
10993
|
}), e.on("interactionEvents.createHit", or, function(k) {
|
|
10991
|
-
var
|
|
10992
|
-
o.createDefaultHit(
|
|
10994
|
+
var E = k.element, P = k.gfx;
|
|
10995
|
+
o.createDefaultHit(E, P);
|
|
10993
10996
|
}), e.on("interactionEvents.updateHit", function(k) {
|
|
10994
|
-
var
|
|
10995
|
-
o.updateDefaultHit(
|
|
10997
|
+
var E = k.element, P = k.gfx;
|
|
10998
|
+
o.updateDefaultHit(E, P);
|
|
10996
10999
|
});
|
|
10997
|
-
var v =
|
|
10998
|
-
all:
|
|
11000
|
+
var v = j("djs-hit djs-hit-stroke"), y = j("djs-hit djs-hit-click-stroke"), b = j("djs-hit djs-hit-all"), x = j("djs-hit djs-hit-no-move"), w = {
|
|
11001
|
+
all: b,
|
|
10999
11002
|
"click-stroke": y,
|
|
11000
11003
|
stroke: v,
|
|
11001
|
-
"no-move":
|
|
11004
|
+
"no-move": x
|
|
11002
11005
|
};
|
|
11003
|
-
function
|
|
11004
|
-
return
|
|
11006
|
+
function j(k, E) {
|
|
11007
|
+
return E = Ce({
|
|
11005
11008
|
stroke: "white",
|
|
11006
11009
|
strokeWidth: 15
|
|
11007
|
-
},
|
|
11010
|
+
}, E || {}), n.cls(k, ["no-fill", "no-border"], E);
|
|
11008
11011
|
}
|
|
11009
|
-
function m(k,
|
|
11010
|
-
var P = w[
|
|
11012
|
+
function m(k, E) {
|
|
11013
|
+
var P = w[E];
|
|
11011
11014
|
if (!P)
|
|
11012
|
-
throw new Error("invalid hit type <" +
|
|
11015
|
+
throw new Error("invalid hit type <" + E + ">");
|
|
11013
11016
|
return ge(k, P), k;
|
|
11014
11017
|
}
|
|
11015
|
-
function S(k,
|
|
11016
|
-
$e(k,
|
|
11018
|
+
function S(k, E) {
|
|
11019
|
+
$e(k, E);
|
|
11017
11020
|
}
|
|
11018
11021
|
this.removeHits = function(k) {
|
|
11019
|
-
var
|
|
11020
|
-
Q(
|
|
11021
|
-
}, this.createDefaultHit = function(k,
|
|
11022
|
+
var E = Pa(".djs-hit", k);
|
|
11023
|
+
Q(E, Vt);
|
|
11024
|
+
}, this.createDefaultHit = function(k, E) {
|
|
11022
11025
|
var P = k.waypoints, T = k.isFrame, L;
|
|
11023
|
-
return P ? this.createWaypointsHit(
|
|
11026
|
+
return P ? this.createWaypointsHit(E, P) : (L = T ? "stroke" : "all", this.createBoxHit(E, L, {
|
|
11024
11027
|
width: k.width,
|
|
11025
11028
|
height: k.height
|
|
11026
11029
|
}));
|
|
11027
|
-
}, this.createWaypointsHit = function(k,
|
|
11028
|
-
var P = sl(
|
|
11030
|
+
}, this.createWaypointsHit = function(k, E) {
|
|
11031
|
+
var P = sl(E);
|
|
11029
11032
|
return m(P, "stroke"), S(k, P), P;
|
|
11030
|
-
}, this.createBoxHit = function(k,
|
|
11033
|
+
}, this.createBoxHit = function(k, E, P) {
|
|
11031
11034
|
P = Ce({
|
|
11032
11035
|
x: 0,
|
|
11033
11036
|
y: 0
|
|
11034
11037
|
}, P);
|
|
11035
11038
|
var T = Ae("rect");
|
|
11036
|
-
return m(T,
|
|
11037
|
-
}, this.updateDefaultHit = function(k,
|
|
11038
|
-
var P = $t(".djs-hit",
|
|
11039
|
+
return m(T, E), ge(T, P), S(k, T), T;
|
|
11040
|
+
}, this.updateDefaultHit = function(k, E) {
|
|
11041
|
+
var P = $t(".djs-hit", E);
|
|
11039
11042
|
if (P)
|
|
11040
11043
|
return k.waypoints ? Js(P, k.waypoints) : ge(P, {
|
|
11041
11044
|
width: k.width,
|
|
@@ -11215,16 +11218,16 @@ function ec(e, t, n, o) {
|
|
|
11215
11218
|
threshold: 5,
|
|
11216
11219
|
trapClick: !0
|
|
11217
11220
|
}, a;
|
|
11218
|
-
function l(
|
|
11219
|
-
var w = t.viewbox(),
|
|
11221
|
+
function l(x) {
|
|
11222
|
+
var w = t.viewbox(), j = t._container.getBoundingClientRect();
|
|
11220
11223
|
return {
|
|
11221
|
-
x: w.x + (
|
|
11222
|
-
y: w.y + (
|
|
11224
|
+
x: w.x + (x.x - j.left) / w.scale,
|
|
11225
|
+
y: w.y + (x.y - j.top) / w.scale
|
|
11223
11226
|
};
|
|
11224
11227
|
}
|
|
11225
|
-
function r(
|
|
11228
|
+
function r(x, w) {
|
|
11226
11229
|
w = w || a;
|
|
11227
|
-
var
|
|
11230
|
+
var j = e.createEvent(
|
|
11228
11231
|
Ce(
|
|
11229
11232
|
{},
|
|
11230
11233
|
w.payload,
|
|
@@ -11232,86 +11235,86 @@ function ec(e, t, n, o) {
|
|
|
11232
11235
|
{ isTouch: w.isTouch }
|
|
11233
11236
|
)
|
|
11234
11237
|
);
|
|
11235
|
-
return e.fire("drag." +
|
|
11238
|
+
return e.fire("drag." + x, j) === !1 ? !1 : e.fire(w.prefix + "." + x, j);
|
|
11236
11239
|
}
|
|
11237
|
-
function s(
|
|
11238
|
-
var w =
|
|
11239
|
-
return o.get(
|
|
11240
|
+
function s(x) {
|
|
11241
|
+
var w = x.filter(function(j) {
|
|
11242
|
+
return o.get(j.id);
|
|
11240
11243
|
});
|
|
11241
11244
|
w.length && n.select(w);
|
|
11242
11245
|
}
|
|
11243
|
-
function c(
|
|
11244
|
-
var
|
|
11245
|
-
if (!a.active && (w || Mv(
|
|
11246
|
-
if (Ce(
|
|
11246
|
+
function c(x, w) {
|
|
11247
|
+
var j = a.payload, m = a.displacement, S = a.globalStart, k = So(x), E = yo(k, S), P = a.localStart, T = l(k), L = yo(T, P);
|
|
11248
|
+
if (!a.active && (w || Mv(E) > a.threshold)) {
|
|
11249
|
+
if (Ce(j, {
|
|
11247
11250
|
x: uo(P.x + m.x),
|
|
11248
11251
|
y: uo(P.y + m.y),
|
|
11249
11252
|
dx: 0,
|
|
11250
11253
|
dy: 0
|
|
11251
|
-
}, { originalEvent:
|
|
11254
|
+
}, { originalEvent: x }), r("start") === !1)
|
|
11252
11255
|
return v();
|
|
11253
|
-
a.active = !0, a.keepSelection || (
|
|
11256
|
+
a.active = !0, a.keepSelection || (j.previousSelection = n.get(), n.select(null)), a.cursor && ul(a.cursor), t.addMarker(t.getRootElement(), rr);
|
|
11254
11257
|
}
|
|
11255
|
-
ya(
|
|
11258
|
+
ya(x), a.active && (Ce(j, {
|
|
11256
11259
|
x: uo(T.x + m.x),
|
|
11257
11260
|
y: uo(T.y + m.y),
|
|
11258
11261
|
dx: uo(L.x),
|
|
11259
11262
|
dy: uo(L.y)
|
|
11260
|
-
}, { originalEvent:
|
|
11263
|
+
}, { originalEvent: x }), r("move"));
|
|
11261
11264
|
}
|
|
11262
|
-
function u(
|
|
11263
|
-
var w,
|
|
11264
|
-
a.active && (
|
|
11265
|
+
function u(x) {
|
|
11266
|
+
var w, j = !0;
|
|
11267
|
+
a.active && (x && (a.payload.originalEvent = x, ya(x)), j = r("end")), j === !1 && r("rejected"), w = y(j !== !0), r("ended", w);
|
|
11265
11268
|
}
|
|
11266
|
-
function d(
|
|
11267
|
-
Qs("Escape",
|
|
11269
|
+
function d(x) {
|
|
11270
|
+
Qs("Escape", x) && (Nn(x), v());
|
|
11268
11271
|
}
|
|
11269
|
-
function f(
|
|
11272
|
+
function f(x) {
|
|
11270
11273
|
var w;
|
|
11271
|
-
a.active && (w = Xs(e), setTimeout(w, 400), Nn(
|
|
11274
|
+
a.active && (w = Xs(e), setTimeout(w, 400), Nn(x)), u(x);
|
|
11272
11275
|
}
|
|
11273
|
-
function h(
|
|
11274
|
-
c(
|
|
11276
|
+
function h(x) {
|
|
11277
|
+
c(x);
|
|
11275
11278
|
}
|
|
11276
|
-
function p(
|
|
11279
|
+
function p(x) {
|
|
11277
11280
|
var w = a.payload;
|
|
11278
|
-
w.hoverGfx =
|
|
11281
|
+
w.hoverGfx = x.gfx, w.hover = x.element, r("hover");
|
|
11279
11282
|
}
|
|
11280
|
-
function g(
|
|
11283
|
+
function g(x) {
|
|
11281
11284
|
r("out");
|
|
11282
11285
|
var w = a.payload;
|
|
11283
11286
|
w.hoverGfx = null, w.hover = null;
|
|
11284
11287
|
}
|
|
11285
|
-
function v(
|
|
11288
|
+
function v(x) {
|
|
11286
11289
|
var w;
|
|
11287
11290
|
if (a) {
|
|
11288
|
-
var
|
|
11289
|
-
|
|
11291
|
+
var j = a.active;
|
|
11292
|
+
j && r("cancel"), w = y(x), j && r("canceled", w);
|
|
11290
11293
|
}
|
|
11291
11294
|
}
|
|
11292
|
-
function y(
|
|
11293
|
-
var w,
|
|
11294
|
-
r("cleanup"), qs(), a.trapClick ?
|
|
11295
|
+
function y(x) {
|
|
11296
|
+
var w, j;
|
|
11297
|
+
r("cleanup"), qs(), a.trapClick ? j = f : j = u, Fe.unbind(document, "mousemove", c), Fe.unbind(document, "dragstart", Nn), Fe.unbind(document, "selectstart", Nn), Fe.unbind(document, "mousedown", j, !0), Fe.unbind(document, "mouseup", j, !0), Fe.unbind(document, "keyup", d), Fe.unbind(document, "touchstart", h, !0), Fe.unbind(document, "touchcancel", v, !0), Fe.unbind(document, "touchmove", c, !0), Fe.unbind(document, "touchend", u, !0), e.off("element.hover", p), e.off("element.out", g), t.removeMarker(t.getRootElement(), rr);
|
|
11295
11298
|
var m = a.payload.previousSelection;
|
|
11296
|
-
return
|
|
11299
|
+
return x !== !1 && m && !n.get().length && s(m), w = a, a = null, w;
|
|
11297
11300
|
}
|
|
11298
|
-
function x
|
|
11299
|
-
a && v(!1), typeof w == "string" && (m =
|
|
11300
|
-
var S = m.data || {}, k,
|
|
11301
|
-
m.trapClick ? T = f : T = u,
|
|
11302
|
-
prefix:
|
|
11301
|
+
function b(x, w, j, m) {
|
|
11302
|
+
a && v(!1), typeof w == "string" && (m = j, j = w, w = null), m = Ce({}, i, m || {});
|
|
11303
|
+
var S = m.data || {}, k, E, P, T, L;
|
|
11304
|
+
m.trapClick ? T = f : T = u, x ? (k = _o(x) || x, E = So(x), ya(x), k.type === "dragstart" && Nn(k)) : (k = null, E = { x: 0, y: 0 }), P = l(E), w || (w = P), L = Pv(k), a = Ce({
|
|
11305
|
+
prefix: j,
|
|
11303
11306
|
data: S,
|
|
11304
11307
|
payload: {},
|
|
11305
|
-
globalStart:
|
|
11308
|
+
globalStart: E,
|
|
11306
11309
|
displacement: yo(w, P),
|
|
11307
11310
|
localStart: P,
|
|
11308
11311
|
isTouch: L
|
|
11309
|
-
}, m), m.manual || (L ? (Fe.bind(document, "touchstart", h, !0), Fe.bind(document, "touchcancel", v, !0), Fe.bind(document, "touchmove", c, !0), Fe.bind(document, "touchend", u, !0)) : (Fe.bind(document, "mousemove", c), Fe.bind(document, "dragstart", Nn), Fe.bind(document, "selectstart", Nn), Fe.bind(document, "mousedown", T, !0), Fe.bind(document, "mouseup", T, !0)), Fe.bind(document, "keyup", d), e.on("element.hover", p), e.on("element.out", g)), r("init"), m.autoActivate && c(
|
|
11312
|
+
}, m), m.manual || (L ? (Fe.bind(document, "touchstart", h, !0), Fe.bind(document, "touchcancel", v, !0), Fe.bind(document, "touchmove", c, !0), Fe.bind(document, "touchend", u, !0)) : (Fe.bind(document, "mousemove", c), Fe.bind(document, "dragstart", Nn), Fe.bind(document, "selectstart", Nn), Fe.bind(document, "mousedown", T, !0), Fe.bind(document, "mouseup", T, !0)), Fe.bind(document, "keyup", d), e.on("element.hover", p), e.on("element.out", g)), r("init"), m.autoActivate && c(x, !0);
|
|
11310
11313
|
}
|
|
11311
|
-
e.on("diagram.destroy", v), this.init =
|
|
11314
|
+
e.on("diagram.destroy", v), this.init = b, this.move = c, this.hover = p, this.out = g, this.end = u, this.cancel = v, this.context = function() {
|
|
11312
11315
|
return a;
|
|
11313
|
-
}, this.setOptions = function(
|
|
11314
|
-
Ce(i,
|
|
11316
|
+
}, this.setOptions = function(x) {
|
|
11317
|
+
Ce(i, x);
|
|
11315
11318
|
};
|
|
11316
11319
|
}
|
|
11317
11320
|
ec.$inject = [
|
|
@@ -11538,12 +11541,12 @@ function nc(e, t, n, o, i) {
|
|
|
11538
11541
|
function a(s, c, u, d, f) {
|
|
11539
11542
|
if (!c)
|
|
11540
11543
|
return !1;
|
|
11541
|
-
s = Nt(s, function(
|
|
11542
|
-
var
|
|
11543
|
-
return !
|
|
11544
|
+
s = Nt(s, function(b) {
|
|
11545
|
+
var x = b.labelTarget;
|
|
11546
|
+
return !b.parent && !(ko(b) && s.indexOf(x) !== -1);
|
|
11544
11547
|
});
|
|
11545
|
-
var h = tn(s, function(
|
|
11546
|
-
return !Ot(
|
|
11548
|
+
var h = tn(s, function(b) {
|
|
11549
|
+
return !Ot(b);
|
|
11547
11550
|
}), p = !1, g = !1, v = !1;
|
|
11548
11551
|
hr(s) && (p = i.allowed("shape.attach", {
|
|
11549
11552
|
position: u,
|
|
@@ -11597,18 +11600,18 @@ function nc(e, t, n, o, i) {
|
|
|
11597
11600
|
if (p === !1 || !h)
|
|
11598
11601
|
return !1;
|
|
11599
11602
|
pr(s);
|
|
11600
|
-
var
|
|
11603
|
+
var b = {
|
|
11601
11604
|
x: s.x,
|
|
11602
11605
|
y: s.y
|
|
11603
11606
|
};
|
|
11604
|
-
v ? d = o.appendShape(u, d,
|
|
11607
|
+
v ? d = o.appendShape(u, d, b, h, {
|
|
11605
11608
|
attach: g,
|
|
11606
11609
|
connection: v === !0 ? {} : v,
|
|
11607
11610
|
connectionTarget: y.connectionTarget
|
|
11608
|
-
}) : (f = o.createElements(f,
|
|
11611
|
+
}) : (f = o.createElements(f, b, h, Ce({}, y, {
|
|
11609
11612
|
attach: g
|
|
11610
|
-
})), d = tn(f, function(
|
|
11611
|
-
return !Ot(
|
|
11613
|
+
})), d = tn(f, function(x) {
|
|
11614
|
+
return !Ot(x);
|
|
11612
11615
|
})), Ce(c, {
|
|
11613
11616
|
elements: f,
|
|
11614
11617
|
shape: d
|
|
@@ -11866,8 +11869,8 @@ function wr(e, t, n, o, i) {
|
|
|
11866
11869
|
function Cr(e, t, n, o, i, a, l, r, s) {
|
|
11867
11870
|
s == null && (s = 1), s = s > 1 ? 1 : s < 0 ? 0 : s;
|
|
11868
11871
|
for (var c = s / 2, u = 12, d = [-0.1252, 0.1252, -0.3678, 0.3678, -0.5873, 0.5873, -0.7699, 0.7699, -0.9041, 0.9041, -0.9816, 0.9816], f = [0.2491, 0.2491, 0.2335, 0.2335, 0.2032, 0.2032, 0.1601, 0.1601, 0.1069, 0.1069, 0.0472, 0.0472], h = 0, p = 0; p < u; p++) {
|
|
11869
|
-
var g = c * d[p] + c, v = wr(g, e, n, i, l), y = wr(g, t, o, a, r),
|
|
11870
|
-
h += f[p] * dt.sqrt(
|
|
11872
|
+
var g = c * d[p] + c, v = wr(g, e, n, i, l), y = wr(g, t, o, a, r), b = v * v + y * y;
|
|
11873
|
+
h += f[p] * dt.sqrt(b);
|
|
11871
11874
|
}
|
|
11872
11875
|
return c * h;
|
|
11873
11876
|
}
|
|
@@ -11897,17 +11900,17 @@ function um(e, t, n) {
|
|
|
11897
11900
|
g = br(...t, h / s), u[h] = { x: g.x, y: g.y, t: h / s };
|
|
11898
11901
|
for (h = 0; h < r; h++)
|
|
11899
11902
|
for (p = 0; p < s; p++) {
|
|
11900
|
-
var v = c[h], y = c[h + 1],
|
|
11903
|
+
var v = c[h], y = c[h + 1], b = u[p], x = u[p + 1], w = En(y.x - v.x) < 0.01 ? "y" : "x", j = En(x.x - b.x) < 0.01 ? "y" : "x", m = cm(v.x, v.y, y.x, y.y, b.x, b.y, x.x, x.y), S;
|
|
11901
11904
|
if (m) {
|
|
11902
11905
|
if (S = m.x.toFixed(9) + "#" + m.y.toFixed(9), d[S])
|
|
11903
11906
|
continue;
|
|
11904
11907
|
d[S] = !0;
|
|
11905
|
-
var k = v.t + En((m[w] - v[w]) / (y[w] - v[w])) * (y.t - v.t),
|
|
11906
|
-
k >= 0 && k <= 1 &&
|
|
11908
|
+
var k = v.t + En((m[w] - v[w]) / (y[w] - v[w])) * (y.t - v.t), E = b.t + En((m[j] - b[j]) / (x[j] - b[j])) * (x.t - b.t);
|
|
11909
|
+
k >= 0 && k <= 1 && E >= 0 && E <= 1 && f.push({
|
|
11907
11910
|
x: m.x,
|
|
11908
11911
|
y: m.y,
|
|
11909
11912
|
t1: k,
|
|
11910
|
-
t2:
|
|
11913
|
+
t2: E
|
|
11911
11914
|
});
|
|
11912
11915
|
}
|
|
11913
11916
|
}
|
|
@@ -11921,16 +11924,16 @@ function ac(e, t, n) {
|
|
|
11921
11924
|
o = r = v[1], i = s = v[2];
|
|
11922
11925
|
else {
|
|
11923
11926
|
v[0] == "C" ? (d = [o, i, ...v.slice(1)], o = d[6], i = d[7]) : (d = [o, i, o, i, r, s, r, s], o = r, i = s);
|
|
11924
|
-
for (var y = 0,
|
|
11925
|
-
var
|
|
11926
|
-
if (
|
|
11927
|
-
a = c =
|
|
11927
|
+
for (var y = 0, b = t.length; y < b; y++) {
|
|
11928
|
+
var x = t[y];
|
|
11929
|
+
if (x[0] == "M")
|
|
11930
|
+
a = c = x[1], l = u = x[2];
|
|
11928
11931
|
else {
|
|
11929
|
-
|
|
11932
|
+
x[0] == "C" ? (f = [a, l, ...x.slice(1)], a = f[6], l = f[7]) : (f = [a, l, a, l, c, u, c, u], a = c, l = u);
|
|
11930
11933
|
var w = um(d, f);
|
|
11931
11934
|
{
|
|
11932
|
-
for (var
|
|
11933
|
-
w[
|
|
11935
|
+
for (var j = 0, m = w.length; j < m; j++)
|
|
11936
|
+
w[j].segment1 = p, w[j].segment2 = y, w[j].bez1 = d, w[j].bez2 = f;
|
|
11934
11937
|
h = h.concat(w);
|
|
11935
11938
|
}
|
|
11936
11939
|
}
|
|
@@ -12016,21 +12019,21 @@ function lc(e, t, n, o, i, a, l, r, s, c) {
|
|
|
12016
12019
|
return { x: q, y: pe };
|
|
12017
12020
|
});
|
|
12018
12021
|
if (c)
|
|
12019
|
-
S = c[0], k = c[1],
|
|
12022
|
+
S = c[0], k = c[1], j = c[2], m = c[3];
|
|
12020
12023
|
else {
|
|
12021
12024
|
h = p(e, t, -d), e = h.x, t = h.y, h = p(r, s, -d), r = h.x, s = h.y;
|
|
12022
12025
|
var g = (e - r) / 2, v = (t - s) / 2, y = g * g / (n * n) + v * v / (o * o);
|
|
12023
12026
|
y > 1 && (y = dt.sqrt(y), n = y * n, o = y * o);
|
|
12024
|
-
var
|
|
12025
|
-
S = e <
|
|
12027
|
+
var b = n * n, x = o * o, w = (a == l ? -1 : 1) * dt.sqrt(En((b * x - b * v * v - x * g * g) / (b * v * v + x * g * g))), j = w * n * v / o + (e + r) / 2, m = w * -o * g / n + (t + s) / 2, S = dt.asin(((t - m) / o).toFixed(9)), k = dt.asin(((s - m) / o).toFixed(9));
|
|
12028
|
+
S = e < j ? xn - S : S, k = r < j ? xn - k : k, S < 0 && (S = xn * 2 + S), k < 0 && (k = xn * 2 + k), l && S > k && (S = S - xn * 2), !l && k > S && (k = k - xn * 2);
|
|
12026
12029
|
}
|
|
12027
|
-
var
|
|
12028
|
-
if (En(
|
|
12030
|
+
var E = k - S;
|
|
12031
|
+
if (En(E) > u) {
|
|
12029
12032
|
var P = k, T = r, L = s;
|
|
12030
|
-
k = S + u * (l && k > S ? 1 : -1), r =
|
|
12033
|
+
k = S + u * (l && k > S ? 1 : -1), r = j + n * dt.cos(k), s = m + o * dt.sin(k), f = lc(r, s, n, o, i, 0, l, T, L, [k, P, j, m]);
|
|
12031
12034
|
}
|
|
12032
|
-
|
|
12033
|
-
var z = dt.cos(S), H = dt.sin(S), M = dt.cos(k), _ = dt.sin(k), I = dt.tan(
|
|
12035
|
+
E = k - S;
|
|
12036
|
+
var z = dt.cos(S), H = dt.sin(S), M = dt.cos(k), _ = dt.sin(k), I = dt.tan(E / 4), F = 4 / 3 * n * I, ie = 4 / 3 * o * I, se = [e, t], me = [e + F * H, t - ie * z], Me = [r + F * _, s - ie * M], Qe = [r, s];
|
|
12034
12037
|
if (me[0] = 2 * se[0] - me[0], me[1] = 2 * se[1] - me[1], c)
|
|
12035
12038
|
return [me, Me, Qe].concat(f);
|
|
12036
12039
|
f = [me, Me, Qe].concat(f).join().split(",");
|
|
@@ -12039,8 +12042,8 @@ function lc(e, t, n, o, i, a, l, r, s, c) {
|
|
|
12039
12042
|
return Z;
|
|
12040
12043
|
}
|
|
12041
12044
|
function pm(e, t, n, o, i, a, l, r) {
|
|
12042
|
-
for (var s = [], c = [[], []], u, d, f, h, p, g, v, y,
|
|
12043
|
-
if (
|
|
12045
|
+
for (var s = [], c = [[], []], u, d, f, h, p, g, v, y, b = 0; b < 2; ++b) {
|
|
12046
|
+
if (b == 0 ? (d = 6 * e - 12 * n + 6 * i, u = -3 * e + 9 * n - 9 * i + 3 * l, f = 3 * n - 3 * e) : (d = 6 * t - 12 * o + 6 * a, u = -3 * t + 9 * o - 9 * a + 3 * r, f = 3 * o - 3 * t), En(u) < 1e-12) {
|
|
12044
12047
|
if (En(d) < 1e-12)
|
|
12045
12048
|
continue;
|
|
12046
12049
|
h = -f / d, 0 < h && h < 1 && s.push(h);
|
|
@@ -12048,8 +12051,8 @@ function pm(e, t, n, o, i, a, l, r) {
|
|
|
12048
12051
|
}
|
|
12049
12052
|
v = d * d - 4 * f * u, y = dt.sqrt(v), !(v < 0) && (p = (-d + y) / (2 * u), 0 < p && p < 1 && s.push(p), g = (-d - y) / (2 * u), 0 < g && g < 1 && s.push(g));
|
|
12050
12053
|
}
|
|
12051
|
-
for (var
|
|
12052
|
-
h = s[
|
|
12054
|
+
for (var x = s.length, w = x, j; x--; )
|
|
12055
|
+
h = s[x], j = 1 - h, c[0][x] = j * j * j * e + 3 * j * j * h * n + 3 * j * h * h * i + h * h * h * l, c[1][x] = j * j * j * t + 3 * j * j * h * o + 3 * j * h * h * a + h * h * h * r;
|
|
12053
12056
|
return c[0][w] = e, c[1][w] = t, c[0][w + 1] = l, c[1][w + 1] = r, c[0].length = c[1].length = w + 2, {
|
|
12054
12057
|
x0: Qt(...c[0]),
|
|
12055
12058
|
y0: Qt(...c[1]),
|
|
@@ -13140,30 +13143,30 @@ ia.prototype.preExecute = function(e) {
|
|
|
13140
13143
|
return v.max - v.min;
|
|
13141
13144
|
}
|
|
13142
13145
|
function c(v, y) {
|
|
13143
|
-
var
|
|
13144
|
-
|
|
13146
|
+
var b = { y: 0 };
|
|
13147
|
+
b[o] = v - l(y), b[o] && (b[Rr[o]] = 0, t.moveElements([y], b, y.parent));
|
|
13145
13148
|
}
|
|
13146
13149
|
var u = n[0], d = r(n), f = n[d], h, p, g = 0;
|
|
13147
13150
|
Q(n, function(v, y) {
|
|
13148
|
-
var
|
|
13151
|
+
var b, x, w;
|
|
13149
13152
|
if (v.elements.length < 2) {
|
|
13150
13153
|
y && y !== n.length - 1 && (a(v, v.elements[0]), g += s(v.range));
|
|
13151
13154
|
return;
|
|
13152
13155
|
}
|
|
13153
|
-
|
|
13154
|
-
if (c(w,
|
|
13156
|
+
b = Go(v.elements, o), x = b[0], y === d && (x = b[r(b)]), w = l(x), v.range = null, Q(b, function(j) {
|
|
13157
|
+
if (c(w, j), v.range === null) {
|
|
13155
13158
|
v.range = {
|
|
13156
|
-
min:
|
|
13157
|
-
max:
|
|
13159
|
+
min: j[o],
|
|
13160
|
+
max: j[o] + j[i]
|
|
13158
13161
|
};
|
|
13159
13162
|
return;
|
|
13160
13163
|
}
|
|
13161
|
-
a(v,
|
|
13164
|
+
a(v, j);
|
|
13162
13165
|
}), y && y !== n.length - 1 && (g += s(v.range));
|
|
13163
13166
|
}), p = Math.abs(f.range.min - u.range.max), h = Math.round((p - g) / (n.length - 1)), !(h < n.length - 1) && Q(n, function(v, y) {
|
|
13164
|
-
var
|
|
13165
|
-
v === u || v === f || (
|
|
13166
|
-
|
|
13167
|
+
var b = {}, x;
|
|
13168
|
+
v === u || v === f || (x = n[y - 1], v.range.max = 0, Q(v.elements, function(w, j) {
|
|
13169
|
+
b[Rr[o]] = 0, b[o] = x.range.max - w[o] + h, v.range.min !== w[o] && (b[o] += w[o] - v.range.min), b[o] && t.moveElements([w], b, w.parent), v.range.max = Math.max(w[o] + w[i], j ? v.range.max : 0);
|
|
13167
13170
|
}));
|
|
13168
13171
|
});
|
|
13169
13172
|
};
|
|
@@ -14525,7 +14528,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14525
14528
|
ry: F
|
|
14526
14529
|
}), ge(me, se), $e(M, me), me;
|
|
14527
14530
|
}
|
|
14528
|
-
function
|
|
14531
|
+
function b(M, _, I) {
|
|
14529
14532
|
I = u(I, ["no-fill"], {
|
|
14530
14533
|
strokeWidth: 2,
|
|
14531
14534
|
stroke: s
|
|
@@ -14533,7 +14536,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14533
14536
|
const F = Ae("path");
|
|
14534
14537
|
return ge(F, { d: _ }), ge(F, I), $e(M, F), F;
|
|
14535
14538
|
}
|
|
14536
|
-
function
|
|
14539
|
+
function x(M, _, I, F) {
|
|
14537
14540
|
const ie = _ / 2, se = I / 2, Me = [
|
|
14538
14541
|
{ x: ie, y: 0 },
|
|
14539
14542
|
{ x: _, y: se },
|
|
@@ -14551,9 +14554,9 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14551
14554
|
}), ge(Qe, F), $e(M, Qe), Qe;
|
|
14552
14555
|
}
|
|
14553
14556
|
function w(M, _, I, F) {
|
|
14554
|
-
return
|
|
14557
|
+
return b(_, I, lt({ "data-marker": M }, F));
|
|
14555
14558
|
}
|
|
14556
|
-
function
|
|
14559
|
+
function j(M, _, I) {
|
|
14557
14560
|
I = lt(
|
|
14558
14561
|
{
|
|
14559
14562
|
size: {
|
|
@@ -14567,7 +14570,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14567
14570
|
}
|
|
14568
14571
|
function m(M, _, I) {
|
|
14569
14572
|
const F = Sy(_);
|
|
14570
|
-
return
|
|
14573
|
+
return j(M, F.name, {
|
|
14571
14574
|
box: _,
|
|
14572
14575
|
align: I,
|
|
14573
14576
|
padding: 5,
|
|
@@ -14583,7 +14586,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14583
14586
|
x: _.width / 2 + _.x,
|
|
14584
14587
|
y: _.height / 2 + _.y
|
|
14585
14588
|
};
|
|
14586
|
-
return
|
|
14589
|
+
return j(M, Vi(_), {
|
|
14587
14590
|
box: I,
|
|
14588
14591
|
fitBox: !0,
|
|
14589
14592
|
style: lt({}, i.getExternalStyle(), {
|
|
@@ -14610,7 +14613,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14610
14613
|
d(se)(M, _, ie);
|
|
14611
14614
|
});
|
|
14612
14615
|
}
|
|
14613
|
-
function
|
|
14616
|
+
function E(M) {
|
|
14614
14617
|
return M.replace(/[^0-9a-zA-z]+/g, "_");
|
|
14615
14618
|
}
|
|
14616
14619
|
function P(M, _) {
|
|
@@ -14628,7 +14631,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14628
14631
|
Me || (Me = Ae("defs"), $e(se, Me)), $e(Me, me);
|
|
14629
14632
|
}
|
|
14630
14633
|
function T(M, _, I, F) {
|
|
14631
|
-
const ie = _ + "-" +
|
|
14634
|
+
const ie = _ + "-" + E(I) + "-" + E(F) + "-" + gc();
|
|
14632
14635
|
return L(M, ie, _, I, F), "url(#" + ie + ")";
|
|
14633
14636
|
}
|
|
14634
14637
|
function L(M, _, I, F, ie) {
|
|
@@ -14658,7 +14661,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14658
14661
|
y: F
|
|
14659
14662
|
}
|
|
14660
14663
|
});
|
|
14661
|
-
|
|
14664
|
+
b(M, se, {
|
|
14662
14665
|
strokeWidth: 0,
|
|
14663
14666
|
fill: st(_, c[_.type]?.iconFill || _.iconFill)
|
|
14664
14667
|
});
|
|
@@ -14700,7 +14703,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14700
14703
|
fill: Jt(_, c[_.type]?.fill || _.fill),
|
|
14701
14704
|
stroke: st(_, c[_.type]?.stroke || _.stroke)
|
|
14702
14705
|
};
|
|
14703
|
-
return
|
|
14706
|
+
return x(M, _.width, _.height, I);
|
|
14704
14707
|
},
|
|
14705
14708
|
gatewayAnd(M, _) {
|
|
14706
14709
|
const I = d("gateway")(M, _), F = n.getScaledPath("GATEWAY_PARALLEL", {
|
|
@@ -14713,7 +14716,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14713
14716
|
my: 0.29
|
|
14714
14717
|
}
|
|
14715
14718
|
});
|
|
14716
|
-
return
|
|
14719
|
+
return b(M, F, {
|
|
14717
14720
|
strokeWidth: 1,
|
|
14718
14721
|
fill: st(_, c[_.type]?.iconFill || _.iconFill),
|
|
14719
14722
|
stroke: st(_, c[_.type]?.iconFill || _.iconFill)
|
|
@@ -14730,7 +14733,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14730
14733
|
my: 0.3
|
|
14731
14734
|
}
|
|
14732
14735
|
});
|
|
14733
|
-
return
|
|
14736
|
+
return b(M, F, {
|
|
14734
14737
|
strokeWidth: 1,
|
|
14735
14738
|
fill: st(_, c[_.type]?.iconFill || _.iconFill),
|
|
14736
14739
|
stroke: st(_, c[_.type]?.iconFill || _.iconFill)
|
|
@@ -14761,7 +14764,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14761
14764
|
y: ie
|
|
14762
14765
|
}
|
|
14763
14766
|
});
|
|
14764
|
-
|
|
14767
|
+
b(M, se, {
|
|
14765
14768
|
strokeWidth: 0.5,
|
|
14766
14769
|
fill: Jt(_, r),
|
|
14767
14770
|
stroke: st(_, s)
|
|
@@ -14772,7 +14775,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14772
14775
|
y: ie
|
|
14773
14776
|
}
|
|
14774
14777
|
});
|
|
14775
|
-
|
|
14778
|
+
b(M, me, {
|
|
14776
14779
|
strokeWidth: 0.5,
|
|
14777
14780
|
fill: Jt(_, r),
|
|
14778
14781
|
stroke: st(_, s)
|
|
@@ -14783,7 +14786,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14783
14786
|
y: ie
|
|
14784
14787
|
}
|
|
14785
14788
|
});
|
|
14786
|
-
return
|
|
14789
|
+
return b(M, Me, {
|
|
14787
14790
|
strokeWidth: 0.5,
|
|
14788
14791
|
fill: st(_, s),
|
|
14789
14792
|
stroke: st(_, s)
|
|
@@ -14796,7 +14799,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14796
14799
|
y: 20
|
|
14797
14800
|
}
|
|
14798
14801
|
});
|
|
14799
|
-
return
|
|
14802
|
+
return b(M, F, {
|
|
14800
14803
|
strokeWidth: 1,
|
|
14801
14804
|
stroke: st(_, s)
|
|
14802
14805
|
}), I;
|
|
@@ -14862,7 +14865,7 @@ function to(e, t, n, o, i, a, l) {
|
|
|
14862
14865
|
return m(M, _, "center-middle"), k(M, _), z(M, _, _.iconX, _.iconY), F;
|
|
14863
14866
|
}
|
|
14864
14867
|
};
|
|
14865
|
-
this.handlers = H, this._drawPath =
|
|
14868
|
+
this.handlers = H, this._drawPath = b;
|
|
14866
14869
|
}
|
|
14867
14870
|
Yn(to, eo);
|
|
14868
14871
|
to.$inject = ["eventBus", "styles", "pathMap", "canvas", "textRenderer", "myOptions"];
|
|
@@ -14980,27 +14983,27 @@ da.prototype.layoutText = function(e, t) {
|
|
|
14980
14983
|
for ($e(f, d); s.length; )
|
|
14981
14984
|
c.push(Oy(s, u, d));
|
|
14982
14985
|
i.vertical === "middle" && (a.top = a.bottom = 0);
|
|
14983
|
-
var h = $a(c, function(
|
|
14984
|
-
return
|
|
14985
|
-
}, 0) + a.top + a.bottom, p = $a(c, function(
|
|
14986
|
-
return
|
|
14986
|
+
var h = $a(c, function(b, x, w) {
|
|
14987
|
+
return b + (r || x.height);
|
|
14988
|
+
}, 0) + a.top + a.bottom, p = $a(c, function(b, x, w) {
|
|
14989
|
+
return x.width > b ? x.width : b;
|
|
14987
14990
|
}, 0), g = a.top;
|
|
14988
14991
|
i.vertical === "middle" && (g += (n.height - h) / 2), g -= (r || c[0].height) / 4;
|
|
14989
14992
|
var v = Ae("text");
|
|
14990
|
-
ge(v, o), Q(c, function(
|
|
14991
|
-
var
|
|
14992
|
-
switch (g += r ||
|
|
14993
|
+
ge(v, o), Q(c, function(b) {
|
|
14994
|
+
var x;
|
|
14995
|
+
switch (g += r || b.height, i.horizontal) {
|
|
14993
14996
|
case "left":
|
|
14994
|
-
|
|
14997
|
+
x = a.left;
|
|
14995
14998
|
break;
|
|
14996
14999
|
case "right":
|
|
14997
|
-
|
|
15000
|
+
x = (l ? p : u) - a.right - b.width;
|
|
14998
15001
|
break;
|
|
14999
15002
|
default:
|
|
15000
|
-
|
|
15003
|
+
x = Math.max(((l ? p : u) - b.width) / 2 + a.left, 0);
|
|
15001
15004
|
}
|
|
15002
15005
|
var w = Ae("tspan");
|
|
15003
|
-
ge(w, { x
|
|
15006
|
+
ge(w, { x, y: g }), w.textContent = b.text, $e(v, w);
|
|
15004
15007
|
}), Vt(d);
|
|
15005
15008
|
var y = {
|
|
15006
15009
|
width: p,
|
|
@@ -15378,8 +15381,8 @@ const Nc = {
|
|
|
15378
15381
|
});
|
|
15379
15382
|
const S = r.get("canvas"), k = r.get("elementFactory");
|
|
15380
15383
|
c();
|
|
15381
|
-
const
|
|
15382
|
-
S.setRootElement(
|
|
15384
|
+
const E = k.createRoot();
|
|
15385
|
+
S.setRootElement(E), u();
|
|
15383
15386
|
};
|
|
15384
15387
|
vt(() => {
|
|
15385
15388
|
f();
|
|
@@ -15642,113 +15645,113 @@ function Il(e) {
|
|
|
15642
15645
|
return CSS.escape(e);
|
|
15643
15646
|
}
|
|
15644
15647
|
function qc(e, t, n, o, i) {
|
|
15645
|
-
function a(
|
|
15646
|
-
var m =
|
|
15647
|
-
return m <= 0 ||
|
|
15648
|
+
function a(x, w, j) {
|
|
15649
|
+
var m = x.index, S = x.point, k, E, P, T, L, z;
|
|
15650
|
+
return m <= 0 || x.bendpoint ? !1 : (k = w[m - 1], E = w[m], P = Va(k, E), T = _n(k, E), L = Math.abs(S.x - P.x), z = Math.abs(S.y - P.y), T && L <= j && z <= j);
|
|
15648
15651
|
}
|
|
15649
|
-
function l(
|
|
15650
|
-
var
|
|
15652
|
+
function l(x, w) {
|
|
15653
|
+
var j = x.waypoints, m, S, k, E;
|
|
15651
15654
|
return w.index <= 0 || w.bendpoint || (m = {
|
|
15652
|
-
start:
|
|
15653
|
-
end:
|
|
15654
|
-
}, S = _n(m.start, m.end), !S) ? null : (S === "h" ? k = m.end.x - m.start.x : k = m.end.y - m.start.y,
|
|
15655
|
+
start: j[w.index - 1],
|
|
15656
|
+
end: j[w.index]
|
|
15657
|
+
}, S = _n(m.start, m.end), !S) ? null : (S === "h" ? k = m.end.x - m.start.x : k = m.end.y - m.start.y, E = Ya(k) / 2, E);
|
|
15655
15658
|
}
|
|
15656
|
-
function r(
|
|
15657
|
-
var
|
|
15659
|
+
function r(x, w) {
|
|
15660
|
+
var j = w.waypoints, m = Ja(t, j, x), S;
|
|
15658
15661
|
if (m)
|
|
15659
|
-
return S = l(w, m), a(m,
|
|
15662
|
+
return S = l(w, m), a(m, j, S) ? i.start(x, w, m.index) : o.start(x, w, m.index, !m.bendpoint), !0;
|
|
15660
15663
|
}
|
|
15661
|
-
function s(
|
|
15662
|
-
Fe.bind(
|
|
15663
|
-
n.triggerMouseEvent(w, m,
|
|
15664
|
+
function s(x, w, j) {
|
|
15665
|
+
Fe.bind(x, w, function(m) {
|
|
15666
|
+
n.triggerMouseEvent(w, m, j), m.stopPropagation();
|
|
15664
15667
|
});
|
|
15665
15668
|
}
|
|
15666
|
-
function c(
|
|
15667
|
-
var
|
|
15668
|
-
return !m && w && (m = Ae("g"), ge(m, { "data-element-id":
|
|
15669
|
+
function c(x, w) {
|
|
15670
|
+
var j = t.getLayer("overlays"), m = $t('.djs-bendpoints[data-element-id="' + Il(x.id) + '"]', j);
|
|
15671
|
+
return !m && w && (m = Ae("g"), ge(m, { "data-element-id": x.id }), Xe(m).add("djs-bendpoints"), $e(j, m), s(m, "mousedown", x), s(m, "click", x), s(m, "dblclick", x)), m;
|
|
15669
15672
|
}
|
|
15670
|
-
function u(
|
|
15673
|
+
function u(x, w) {
|
|
15671
15674
|
return $t(
|
|
15672
|
-
'.djs-segment-dragger[data-segment-idx="' +
|
|
15675
|
+
'.djs-segment-dragger[data-segment-idx="' + x + '"]',
|
|
15673
15676
|
w
|
|
15674
15677
|
);
|
|
15675
15678
|
}
|
|
15676
|
-
function d(
|
|
15677
|
-
w.waypoints.forEach(function(
|
|
15678
|
-
var S = Ka(
|
|
15679
|
-
$e(
|
|
15680
|
-
}), Ka(
|
|
15679
|
+
function d(x, w) {
|
|
15680
|
+
w.waypoints.forEach(function(j, m) {
|
|
15681
|
+
var S = Ka(x);
|
|
15682
|
+
$e(x, S), an(S, j.x, j.y);
|
|
15683
|
+
}), Ka(x, "floating");
|
|
15681
15684
|
}
|
|
15682
|
-
function f(
|
|
15683
|
-
for (var
|
|
15684
|
-
m = E
|
|
15685
|
+
function f(x, w) {
|
|
15686
|
+
for (var j = w.waypoints, m, S, k, E = 1; E < j.length; E++)
|
|
15687
|
+
m = j[E - 1], S = j[E], _n(m, S) && (k = Gc(x, m, S), ge(k, { "data-segment-idx": E }), s(k, "mousemove", w));
|
|
15685
15688
|
}
|
|
15686
|
-
function h(
|
|
15687
|
-
Q(Pa("." + Kc,
|
|
15689
|
+
function h(x) {
|
|
15690
|
+
Q(Pa("." + Kc, x), function(w) {
|
|
15688
15691
|
Vt(w);
|
|
15689
15692
|
});
|
|
15690
15693
|
}
|
|
15691
|
-
function p(
|
|
15692
|
-
Q(Pa("." + Yc,
|
|
15694
|
+
function p(x) {
|
|
15695
|
+
Q(Pa("." + Yc, x), function(w) {
|
|
15693
15696
|
Vt(w);
|
|
15694
15697
|
});
|
|
15695
15698
|
}
|
|
15696
|
-
function g(
|
|
15697
|
-
var w = c(
|
|
15698
|
-
return w || (w = c(
|
|
15699
|
+
function g(x) {
|
|
15700
|
+
var w = c(x);
|
|
15701
|
+
return w || (w = c(x, !0), d(w, x), f(w, x)), w;
|
|
15699
15702
|
}
|
|
15700
|
-
function v(
|
|
15701
|
-
var w = c(
|
|
15702
|
-
w && (p(w), h(w), f(w,
|
|
15703
|
+
function v(x) {
|
|
15704
|
+
var w = c(x);
|
|
15705
|
+
w && (p(w), h(w), f(w, x), d(w, x));
|
|
15703
15706
|
}
|
|
15704
|
-
function y(
|
|
15705
|
-
var
|
|
15706
|
-
|
|
15707
|
+
function y(x, w) {
|
|
15708
|
+
var j = $t(".floating", x), m = w.point;
|
|
15709
|
+
j && an(j, m.x, m.y);
|
|
15707
15710
|
}
|
|
15708
|
-
function x
|
|
15709
|
-
var m = u(w.index,
|
|
15711
|
+
function b(x, w, j) {
|
|
15712
|
+
var m = u(w.index, x), S = j[w.index - 1], k = j[w.index], E = w.point, P = Va(S, k), T = _n(S, k), L, z;
|
|
15710
15713
|
m && (L = db(m), z = {
|
|
15711
|
-
x:
|
|
15712
|
-
y:
|
|
15714
|
+
x: E.x - P.x,
|
|
15715
|
+
y: E.y - P.y
|
|
15713
15716
|
}, T === "v" && (z = {
|
|
15714
15717
|
x: z.y,
|
|
15715
15718
|
y: z.x
|
|
15716
15719
|
}), an(L, z.x, z.y));
|
|
15717
15720
|
}
|
|
15718
|
-
e.on("connection.changed", function(
|
|
15719
|
-
v(
|
|
15720
|
-
}), e.on("connection.remove", function(
|
|
15721
|
-
var w = c(
|
|
15721
|
+
e.on("connection.changed", function(x) {
|
|
15722
|
+
v(x.element);
|
|
15723
|
+
}), e.on("connection.remove", function(x) {
|
|
15724
|
+
var w = c(x.element);
|
|
15722
15725
|
w && Vt(w);
|
|
15723
|
-
}), e.on("element.marker.update", function(
|
|
15724
|
-
var w =
|
|
15725
|
-
w.waypoints && (
|
|
15726
|
-
}), e.on("element.mousemove", function(
|
|
15727
|
-
var w =
|
|
15728
|
-
if (
|
|
15729
|
-
if (m = c(w, !0), S = Ja(t,
|
|
15726
|
+
}), e.on("element.marker.update", function(x) {
|
|
15727
|
+
var w = x.element, j;
|
|
15728
|
+
w.waypoints && (j = g(w), x.add ? Xe(j).add(x.marker) : Xe(j).remove(x.marker));
|
|
15729
|
+
}), e.on("element.mousemove", function(x) {
|
|
15730
|
+
var w = x.element, j = w.waypoints, m, S;
|
|
15731
|
+
if (j) {
|
|
15732
|
+
if (m = c(w, !0), S = Ja(t, j, x.originalEvent), !S)
|
|
15730
15733
|
return;
|
|
15731
|
-
y(m, S), S.bendpoint ||
|
|
15734
|
+
y(m, S), S.bendpoint || b(m, S, j);
|
|
15732
15735
|
}
|
|
15733
|
-
}), e.on("element.mousedown", function(
|
|
15734
|
-
if (Mn(
|
|
15735
|
-
var w =
|
|
15736
|
-
if (
|
|
15737
|
-
return r(w,
|
|
15736
|
+
}), e.on("element.mousedown", function(x) {
|
|
15737
|
+
if (Mn(x)) {
|
|
15738
|
+
var w = x.originalEvent, j = x.element;
|
|
15739
|
+
if (j.waypoints)
|
|
15740
|
+
return r(w, j);
|
|
15738
15741
|
}
|
|
15739
|
-
}), e.on("selection.changed", function(
|
|
15740
|
-
var w =
|
|
15741
|
-
|
|
15742
|
-
}), e.on("element.hover", function(
|
|
15743
|
-
var w =
|
|
15744
|
-
w.waypoints && (g(w), n.registerEvent(
|
|
15745
|
-
}), e.on("element.out", function(
|
|
15746
|
-
n.unregisterEvent(
|
|
15747
|
-
}), e.on("element.updateId", function(
|
|
15748
|
-
var w =
|
|
15742
|
+
}), e.on("selection.changed", function(x) {
|
|
15743
|
+
var w = x.newSelection, j = w[0];
|
|
15744
|
+
j && j.waypoints && g(j);
|
|
15745
|
+
}), e.on("element.hover", function(x) {
|
|
15746
|
+
var w = x.element;
|
|
15747
|
+
w.waypoints && (g(w), n.registerEvent(x.gfx, "mousemove", "element.mousemove"));
|
|
15748
|
+
}), e.on("element.out", function(x) {
|
|
15749
|
+
n.unregisterEvent(x.gfx, "mousemove", "element.mousemove");
|
|
15750
|
+
}), e.on("element.updateId", function(x) {
|
|
15751
|
+
var w = x.element, j = x.newId;
|
|
15749
15752
|
if (w.waypoints) {
|
|
15750
15753
|
var m = c(w);
|
|
15751
|
-
m && ge(m, { "data-element-id":
|
|
15754
|
+
m && ge(m, { "data-element-id": j });
|
|
15752
15755
|
}
|
|
15753
15756
|
}), this.addHandles = g, this.updateHandles = v, this.getBendpointsContainer = c, this.getSegmentDragger = u;
|
|
15754
15757
|
}
|
|
@@ -15872,8 +15875,8 @@ function Xc(e, t, n, o) {
|
|
|
15872
15875
|
var l = a.context, r = l.hover, s = l.target;
|
|
15873
15876
|
r && (o.removeMarker(r, qr), o.removeMarker(r, s ? Vo : Ei));
|
|
15874
15877
|
}), n.on("bendpoint.move.move", function(a) {
|
|
15875
|
-
var l = a.context, r = l.allowed, s = l.bendpointIndex, c = l.draggerGfx, u = l.hover, d = l.type, f = l.connection, h = f.source, p = f.target, g = f.waypoints.slice(), v = { x: a.x, y: a.y }, y = l.hints || {},
|
|
15876
|
-
i && (y.connectionStart && (
|
|
15878
|
+
var l = a.context, r = l.allowed, s = l.bendpointIndex, c = l.draggerGfx, u = l.hover, d = l.type, f = l.connection, h = f.source, p = f.target, g = f.waypoints.slice(), v = { x: a.x, y: a.y }, y = l.hints || {}, b = {};
|
|
15879
|
+
i && (y.connectionStart && (b.connectionStart = y.connectionStart), y.connectionEnd && (b.connectionEnd = y.connectionEnd), d === fb ? Ni(l) ? (b.connectionEnd = b.connectionEnd || v, b.source = p, b.target = u || h, g = g.reverse()) : (b.connectionStart = b.connectionStart || v, b.source = u || h, b.target = p) : d === pb ? Ni(l) ? (b.connectionStart = b.connectionStart || v, b.source = u || p, b.target = h, g = g.reverse()) : (b.connectionEnd = b.connectionEnd || v, b.source = h, b.target = u || p) : (b.noCropping = !0, b.noLayout = !0, g[s] = v), d === Gr && (g = e.cropWaypoints(f, g)), b.waypoints = g, i.drawPreview(l, r, b)), an(c, a.x, a.y);
|
|
15877
15880
|
}, this), n.on([
|
|
15878
15881
|
"bendpoint.move.end",
|
|
15879
15882
|
"bendpoint.move.cancel"
|
|
@@ -15912,15 +15915,15 @@ function os(e, t, n) {
|
|
|
15912
15915
|
function Qc(e, t, n, o, i, a) {
|
|
15913
15916
|
var l = e.get("connectionDocking", !1);
|
|
15914
15917
|
this.start = function(d, f, h) {
|
|
15915
|
-
var p, g = n.getGraphics(f), v = h - 1, y = h,
|
|
15916
|
-
m = _n(
|
|
15917
|
-
x: (
|
|
15918
|
-
y: (
|
|
15918
|
+
var p, g = n.getGraphics(f), v = h - 1, y = h, b = f.waypoints, x = b[v], w = b[y], j = Ja(n, b, d), m, S, k;
|
|
15919
|
+
m = _n(x, w), m && (S = m === "v" ? "x" : "y", v === 0 && (x = os(x, f.source, S)), y === b.length - 1 && (w = os(w, f.target, S)), j ? k = j.point : k = {
|
|
15920
|
+
x: (x.x + w.x) / 2,
|
|
15921
|
+
y: (x.y + w.y) / 2
|
|
15919
15922
|
}, p = {
|
|
15920
15923
|
connection: f,
|
|
15921
15924
|
segmentStartIndex: v,
|
|
15922
15925
|
segmentEndIndex: y,
|
|
15923
|
-
segmentStart:
|
|
15926
|
+
segmentStart: x,
|
|
15924
15927
|
segmentEnd: w,
|
|
15925
15928
|
axis: S,
|
|
15926
15929
|
dragPosition: k
|
|
@@ -15943,7 +15946,7 @@ function Qc(e, t, n, o, i, a) {
|
|
|
15943
15946
|
i.update("connection", d.connection, d.connectionGfx);
|
|
15944
15947
|
}
|
|
15945
15948
|
function c(d, f, h) {
|
|
15946
|
-
var p = d.newWaypoints, g = d.segmentStartIndex + f, v = p[g], y = d.segmentEndIndex + f,
|
|
15949
|
+
var p = d.newWaypoints, g = d.segmentStartIndex + f, v = p[g], y = d.segmentEndIndex + f, b = p[y], x = Zc(d.axis), w = hb(h, v, b, x);
|
|
15947
15950
|
an(d.draggerGfx, w.x, w.y);
|
|
15948
15951
|
}
|
|
15949
15952
|
function u(d, f) {
|
|
@@ -15959,10 +15962,10 @@ function Qc(e, t, n, o, i, a) {
|
|
|
15959
15962
|
var f = d.context, h = d.connection, p = n.getLayer("overlays");
|
|
15960
15963
|
f.originalWaypoints = h.waypoints.slice(), f.draggerGfx = Gc(p, f.segmentStart, f.segmentEnd), Xe(f.draggerGfx).add("djs-dragging"), n.addMarker(h, ts);
|
|
15961
15964
|
}), t.on("connectionSegment.move.move", function(d) {
|
|
15962
|
-
var f = d.context, h = f.connection, p = f.segmentStartIndex, g = f.segmentEndIndex, v = f.segmentStart, y = f.segmentEnd,
|
|
15963
|
-
|
|
15964
|
-
var k,
|
|
15965
|
-
p < 2 && (k = Pn(h.source, w), p === 1 ? k === "intersect" && (
|
|
15965
|
+
var f = d.context, h = f.connection, p = f.segmentStartIndex, g = f.segmentEndIndex, v = f.segmentStart, y = f.segmentEnd, b = f.axis, x = f.originalWaypoints.slice(), w = ns(v, b, d["d" + b]), j = ns(y, b, d["d" + b]), m = x.length, S = 0;
|
|
15966
|
+
x[p] = w, x[g] = j;
|
|
15967
|
+
var k, E;
|
|
15968
|
+
p < 2 && (k = Pn(h.source, w), p === 1 ? k === "intersect" && (x.shift(), x[0] = w, S--) : k !== "intersect" && (x.unshift(v), S++)), g > m - 3 && (E = Pn(h.target, j), g === m - 2 ? E === "intersect" && (x.pop(), x[x.length - 1] = j) : E !== "intersect" && x.push(y)), f.newWaypoints = h.waypoints = r(h, x), c(f, S, d), f.newSegmentStartIndex = p + S, s(d);
|
|
15966
15969
|
}), t.on("connectionSegment.move.hover", function(d) {
|
|
15967
15970
|
d.context.hover = d.hover, n.addMarker(d.hover, es);
|
|
15968
15971
|
}), t.on([
|
|
@@ -15982,20 +15985,20 @@ function Qc(e, t, n, o, i, a) {
|
|
|
15982
15985
|
h.waypoints = f.originalWaypoints, s(d);
|
|
15983
15986
|
}), t.on("connectionSegment.move.end", function(d) {
|
|
15984
15987
|
var f = d.context, h = f.connection, p = f.newWaypoints, g = f.newSegmentStartIndex;
|
|
15985
|
-
p = p.map(function(
|
|
15988
|
+
p = p.map(function(j) {
|
|
15986
15989
|
return {
|
|
15987
|
-
original:
|
|
15988
|
-
x: Math.round(
|
|
15989
|
-
y: Math.round(
|
|
15990
|
+
original: j.original,
|
|
15991
|
+
x: Math.round(j.x),
|
|
15992
|
+
y: Math.round(j.y)
|
|
15990
15993
|
};
|
|
15991
15994
|
});
|
|
15992
|
-
var v = u(p, g), y = v.waypoints,
|
|
15995
|
+
var v = u(p, g), y = v.waypoints, b = r(h, y), x = v.segmentOffset, w = {
|
|
15993
15996
|
segmentMove: {
|
|
15994
15997
|
segmentStartIndex: f.segmentStartIndex,
|
|
15995
|
-
newSegmentStartIndex: g +
|
|
15998
|
+
newSegmentStartIndex: g + x
|
|
15996
15999
|
}
|
|
15997
16000
|
};
|
|
15998
|
-
a.updateWaypoints(h,
|
|
16001
|
+
a.updateWaypoints(h, b, w);
|
|
15999
16002
|
});
|
|
16000
16003
|
}
|
|
16001
16004
|
Qc.$inject = [
|
|
@@ -17819,17 +17822,17 @@ fi.prototype.getEditingBBox = function(e) {
|
|
|
17819
17822
|
paddingTop: g + "px",
|
|
17820
17823
|
paddingBottom: v + "px"
|
|
17821
17824
|
})), $l(n) && !Rc(n) && !Jo(n)) {
|
|
17822
|
-
const y = Oc(e),
|
|
17825
|
+
const y = Oc(e), b = t.getAbsoluteBBox({
|
|
17823
17826
|
x: y.x,
|
|
17824
17827
|
y: y.y,
|
|
17825
17828
|
width: 0,
|
|
17826
17829
|
height: 0
|
|
17827
|
-
}),
|
|
17830
|
+
}), x = c + g + v;
|
|
17828
17831
|
lt(a, {
|
|
17829
17832
|
width: p,
|
|
17830
|
-
height:
|
|
17831
|
-
x:
|
|
17832
|
-
y:
|
|
17833
|
+
height: x,
|
|
17834
|
+
x: b.x - p / 2,
|
|
17835
|
+
y: b.y - x / 2
|
|
17833
17836
|
}), lt(h, {
|
|
17834
17837
|
fontSize: c + "px",
|
|
17835
17838
|
lineHeight: u,
|
|
@@ -18449,15 +18452,15 @@ Wl.prototype.getContextPadEntries = function(e) {
|
|
|
18449
18452
|
}
|
|
18450
18453
|
function c(d, f, h, p) {
|
|
18451
18454
|
typeof h != "string" && (p = h);
|
|
18452
|
-
function g(y,
|
|
18453
|
-
const
|
|
18454
|
-
a.start(y,
|
|
18455
|
-
source:
|
|
18455
|
+
function g(y, b) {
|
|
18456
|
+
const x = o.createShape(lt({ type: d }, p));
|
|
18457
|
+
a.start(y, x, {
|
|
18458
|
+
source: b
|
|
18456
18459
|
});
|
|
18457
18460
|
}
|
|
18458
|
-
function v(y,
|
|
18459
|
-
const
|
|
18460
|
-
i.append(
|
|
18461
|
+
function v(y, b) {
|
|
18462
|
+
const x = o.createShape(lt({ type: d }, p));
|
|
18463
|
+
i.append(b, x);
|
|
18461
18464
|
}
|
|
18462
18465
|
return {
|
|
18463
18466
|
group: "model",
|
|
@@ -18647,7 +18650,7 @@ const t0 = {
|
|
|
18647
18650
|
return T;
|
|
18648
18651
|
}, y = (P) => {
|
|
18649
18652
|
r.clear(), c(), Wc(P, r);
|
|
18650
|
-
},
|
|
18653
|
+
}, b = (P) => {
|
|
18651
18654
|
r.get("myImporter").update(P.id, P);
|
|
18652
18655
|
};
|
|
18653
18656
|
return t({
|
|
@@ -18668,7 +18671,7 @@ const t0 = {
|
|
|
18668
18671
|
y(P);
|
|
18669
18672
|
},
|
|
18670
18673
|
updateElemet: (P) => {
|
|
18671
|
-
|
|
18674
|
+
b(P);
|
|
18672
18675
|
}
|
|
18673
18676
|
}), (P, T) => (C(), A("div", {
|
|
18674
18677
|
ref_key: "containerRef",
|
|
@@ -18766,12 +18769,12 @@ const t0 = {
|
|
|
18766
18769
|
};
|
|
18767
18770
|
if (o.required && h.value.length === 0)
|
|
18768
18771
|
return m.isOk = !1, m.info = "请添加表格数据", m;
|
|
18769
|
-
const S = h.value.length, k = o.columns,
|
|
18772
|
+
const S = h.value.length, k = o.columns, E = k.length;
|
|
18770
18773
|
for (let P = 0; P < S; P++) {
|
|
18771
18774
|
const T = h.value[P];
|
|
18772
|
-
for (let L = 0; L <
|
|
18775
|
+
for (let L = 0; L < E; L++) {
|
|
18773
18776
|
const z = k[L];
|
|
18774
|
-
if (
|
|
18777
|
+
if (x(z.config, P).display !== !1 && z.rule && z.rule.length > 0) {
|
|
18775
18778
|
const H = z.rule.length;
|
|
18776
18779
|
for (let M = 0; M < H; M++) {
|
|
18777
18780
|
const _ = z.rule[M];
|
|
@@ -18794,18 +18797,18 @@ const t0 = {
|
|
|
18794
18797
|
o.modelValue && o.modelValue.length > 0 ? (h.value = o.modelValue || [], h.value.forEach((m) => {
|
|
18795
18798
|
m._i || (m._i = Tn());
|
|
18796
18799
|
})) : (h.value = [], i("update:modelValue", h.value));
|
|
18797
|
-
const
|
|
18800
|
+
const x = (m, S) => {
|
|
18798
18801
|
const k = { ...m };
|
|
18799
18802
|
if (k.getUpConfig) {
|
|
18800
|
-
const
|
|
18803
|
+
const E = m.getUpConfig({
|
|
18801
18804
|
formData: l,
|
|
18802
18805
|
index: S,
|
|
18803
18806
|
row: h.value[S],
|
|
18804
18807
|
tableData: h.value,
|
|
18805
18808
|
config: k
|
|
18806
18809
|
});
|
|
18807
|
-
|
|
18808
|
-
k[P] =
|
|
18810
|
+
E && Object.keys(E).forEach((P) => {
|
|
18811
|
+
k[P] = E[P];
|
|
18809
18812
|
});
|
|
18810
18813
|
}
|
|
18811
18814
|
return k;
|
|
@@ -18819,7 +18822,7 @@ const t0 = {
|
|
|
18819
18822
|
getTableData: () => h.value,
|
|
18820
18823
|
rowChange: p
|
|
18821
18824
|
}), (m, S) => {
|
|
18822
|
-
const k = B("j-comp"),
|
|
18825
|
+
const k = B("j-comp"), E = B("el-form-item"), P = B("el-col"), T = B("j-button"), L = B("el-row");
|
|
18823
18826
|
return C(), A(ve, null, [
|
|
18824
18827
|
V("div", Re({ class: "j-input-cards" }, m.$attrs), [
|
|
18825
18828
|
(C(!0), A(ve, null, Se(h.value, (z, H) => (C(), A("div", {
|
|
@@ -18837,7 +18840,7 @@ const t0 = {
|
|
|
18837
18840
|
})
|
|
18838
18841
|
}, {
|
|
18839
18842
|
default: D(() => [
|
|
18840
|
-
jn(K(
|
|
18843
|
+
jn(K(E, {
|
|
18841
18844
|
"label-width": w(M.config?.labelWidth),
|
|
18842
18845
|
label: J(a)(M.config?.label || ""),
|
|
18843
18846
|
extra: M.config?.labelExtra,
|
|
@@ -18849,7 +18852,7 @@ const t0 = {
|
|
|
18849
18852
|
]),
|
|
18850
18853
|
_: 2
|
|
18851
18854
|
}, 1032, ["label-width", "label", "extra", "tooltip", "required"]), [
|
|
18852
|
-
[Oi,
|
|
18855
|
+
[Oi, x(M.config, H).display !== !1]
|
|
18853
18856
|
])
|
|
18854
18857
|
]),
|
|
18855
18858
|
_: 2
|