@a2simcode/ui 0.0.69 → 0.0.70
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/simcode-ui.es.js +960 -956
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/meta/comp.ts +230 -230
- package/docs/components/meta/dynamic-layer.ts +99 -99
- package/docs/components/meta/form-item.ts +50 -50
- package/docs/components/meta/guid.ts +42 -42
- package/docs/components/meta/input.ts +411 -411
- package/docs/components/meta/number.ts +296 -296
- package/docs/components/meta/page.ts +67 -67
- package/docs/components/meta/radio.ts +55 -55
- package/docs/components/meta/table-panel.ts +178 -154
- package/docs/components/meta/table.ts +1 -1
- package/docs/components/page.md +15 -0
- package/docs/components/table-panel.md +19 -0
- package/docs/examples/page/log.vue +207 -0
- package/docs/examples/table-panel/sub-table-lazy.vue +100 -0
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as O, mergeProps as je, createVNode as
|
|
1
|
+
import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as O, mergeProps as je, createVNode as K, unref as G, shallowRef as oa, ref as A, watch as ot, withModifiers as kt, normalizeClass as Me, createBlock as H, createCommentVNode as Y, toDisplayString as be, renderSlot as Ie, nextTick as At, inject as Nu, provide as Wu, resolveComponent as B, withCtx as V, resolveDynamicComponent as Ro, getCurrentInstance as Is, render as Ni, Fragment as ye, renderList as Ee, onMounted as Ct, createSlots as fn, createTextVNode as Wt, createElementVNode as F, useSlots as Uu, reactive as To, onUnmounted as ii, normalizeStyle as Ce, onBeforeUnmount as ia, h as Yu, resolveDirective as aa, withDirectives as dn, withKeys as $a, vShow as Xo, watchEffect as Bs, useTemplateRef as Qn, useModel as ti, mergeModels as ni, normalizeProps as la, guardReactiveProps as sl } from "vue";
|
|
2
2
|
import { getIcon as Zn, Icon as ir } from "@iconify/vue";
|
|
3
3
|
import Ls from "dayjs";
|
|
4
4
|
import Gu from "crypto-js/aes";
|
|
@@ -9,7 +9,7 @@ import Ju from "crypto-js/md5";
|
|
|
9
9
|
import Xu from "crypto-js/sha256";
|
|
10
10
|
import qu from "crypto-js/sha512";
|
|
11
11
|
import Zu from "sortablejs";
|
|
12
|
-
import * as
|
|
12
|
+
import * as Te from "@visactor/vtable";
|
|
13
13
|
import { TABLE_EVENT_TYPE as lr } from "@visactor/vtable";
|
|
14
14
|
import { ElMessageBox as Qu } from "element-plus";
|
|
15
15
|
import * as ed from "echarts";
|
|
@@ -35,8 +35,8 @@ import { useVirtualList as cl } from "@vueuse/core";
|
|
|
35
35
|
import jd from "async-validator";
|
|
36
36
|
import { createEditor as Hd, createToolbar as Od } from "@wangeditor/editor";
|
|
37
37
|
import zs from "diagram-js";
|
|
38
|
-
import { closest as ul, queryAll as za, query as Bt, delegate as Tn, classes as Ft, event as
|
|
39
|
-
import { isNumber as xt, assign as _e, forEach as ne, isArray as
|
|
38
|
+
import { closest as ul, queryAll as za, query as Bt, delegate as Tn, classes as Ft, event as Ke, assignStyle as ai, domify as Vt, remove as Da, clear as Ds, attr as qt, matches as Id } from "min-dom";
|
|
39
|
+
import { isNumber as xt, assign as _e, forEach as ne, isArray as Xe, find as tn, filter as Ut, isUndefined as Bd, isObject as Yt, groupBy as dl, has as Fs, map as li, every as fl, sortBy as oi, isNil as rr, bind as hl, uniqueBy as Ld, isFunction as nn, isDefined as Xt, some as $d, omit as zd, pick as Wi, values as Vs, without as Dd, reduce as Fa, isString as Va, matchPattern as Ui, flatten as Fd, size as Vd, debounce as Nd } from "min-dash";
|
|
40
40
|
import { create as Le, attr as me, remove as Nt, append as Ae, clone as Ns, classes as nt, createTransform as qo, transform as pl, clear as gl } from "tiny-svg";
|
|
41
41
|
import to from "inherits";
|
|
42
42
|
import Wd from "diagram-js-direct-editing";
|
|
@@ -79,14 +79,14 @@ const on = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
79
79
|
class: "j-icon jicon",
|
|
80
80
|
style: { height: `${e.size}px` }
|
|
81
81
|
}), [
|
|
82
|
-
|
|
82
|
+
K(G(ir), je(o.value, {
|
|
83
83
|
height: `${e.size}px`,
|
|
84
84
|
width: `${e.size}px`,
|
|
85
85
|
mode: "svg",
|
|
86
86
|
style: `transform:rotate(${e.rotate || 0}deg)`
|
|
87
87
|
}), null, 16, ["height", "width", "style"])
|
|
88
88
|
], 16)) : (C(), O("span", je({ key: 1 }, i.$attrs, { class: "jicon" }), [
|
|
89
|
-
|
|
89
|
+
K(G(ir), je(o.value, {
|
|
90
90
|
height: `${e.size}px`,
|
|
91
91
|
width: `${e.size}px`,
|
|
92
92
|
mode: "svg",
|
|
@@ -234,7 +234,7 @@ const on = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
234
234
|
ref_key: "buttonNodeRef",
|
|
235
235
|
ref: l,
|
|
236
236
|
type: "button",
|
|
237
|
-
class:
|
|
237
|
+
class: Me([
|
|
238
238
|
"j-button",
|
|
239
239
|
{
|
|
240
240
|
"j-button-primary": e.type == "primary",
|
|
@@ -264,12 +264,12 @@ const on = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
264
264
|
icon: "mdi:loading",
|
|
265
265
|
size: e.size == "large" ? 14 : 12,
|
|
266
266
|
class: "loading-spin j-button-loading-icon"
|
|
267
|
-
}, null, 8, ["size"])) :
|
|
267
|
+
}, null, 8, ["size"])) : Y("", !0),
|
|
268
268
|
e.icon ? (C(), H(eo, {
|
|
269
269
|
key: 1,
|
|
270
270
|
icon: e.icon
|
|
271
|
-
}, null, 8, ["icon"])) :
|
|
272
|
-
e.notLabel ?
|
|
271
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
272
|
+
e.notLabel ? Y("", !0) : (C(), O("div", Gd, be(d.value), 1)),
|
|
273
273
|
Ie(f.$slots, "iconAfter")
|
|
274
274
|
], 10, Yd));
|
|
275
275
|
}
|
|
@@ -733,7 +733,7 @@ const L0 = (e, t) => Js(e, t).toString(Gi);
|
|
|
733
733
|
function hf(e, t) {
|
|
734
734
|
function n() {
|
|
735
735
|
At(() => {
|
|
736
|
-
e =
|
|
736
|
+
e = G(e), e && Zu.create(e, {
|
|
737
737
|
animation: 100,
|
|
738
738
|
delay: 400,
|
|
739
739
|
delayOnTouchOnly: !0,
|
|
@@ -1022,7 +1022,7 @@ const Qs = /* @__PURE__ */ ae({
|
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
1024
|
}), Ef = (e, t) => {
|
|
1025
|
-
const n = document.createElement("div"), o =
|
|
1025
|
+
const n = document.createElement("div"), o = K(Qs);
|
|
1026
1026
|
t && (o.appContext = t), Ni(o, n);
|
|
1027
1027
|
const i = e.afterClose;
|
|
1028
1028
|
e.afterClose = () => {
|
|
@@ -1084,7 +1084,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1084
1084
|
(C(!0), O(ye, null, Ee(u, (f, h) => (C(), O(ye, { key: h }, [
|
|
1085
1085
|
f.children?.length && f.children?.length > 0 ? (C(), H(c, { key: 0 }, {
|
|
1086
1086
|
dropdown: V(() => [
|
|
1087
|
-
|
|
1087
|
+
K(s, { direction: "vertical" }, {
|
|
1088
1088
|
default: V(() => [
|
|
1089
1089
|
(C(!0), O(ye, null, Ee(f.children || [], (p) => (C(), H(r, je({
|
|
1090
1090
|
key: p.id
|
|
@@ -1099,7 +1099,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1099
1099
|
}, 1024)
|
|
1100
1100
|
]),
|
|
1101
1101
|
default: V(() => [
|
|
1102
|
-
|
|
1102
|
+
K(r, je({ ref_for: !0 }, f.config, {
|
|
1103
1103
|
label: f.label,
|
|
1104
1104
|
size: e.size,
|
|
1105
1105
|
type: e.isLink ? "link" : f.config?.type,
|
|
@@ -1239,14 +1239,14 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1239
1239
|
e.prefixIcon ? {
|
|
1240
1240
|
name: "prefix",
|
|
1241
1241
|
fn: V(() => [
|
|
1242
|
-
|
|
1242
|
+
K(h, { icon: e.prefixIcon }, null, 8, ["icon"])
|
|
1243
1243
|
]),
|
|
1244
1244
|
key: "0"
|
|
1245
1245
|
} : void 0,
|
|
1246
1246
|
e.suffixIcon ? {
|
|
1247
1247
|
name: "suffix",
|
|
1248
1248
|
fn: V(() => [
|
|
1249
|
-
|
|
1249
|
+
K(h, { icon: e.suffixIcon }, null, 8, ["icon"])
|
|
1250
1250
|
]),
|
|
1251
1251
|
key: "1"
|
|
1252
1252
|
} : void 0
|
|
@@ -1485,7 +1485,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1485
1485
|
key: 0,
|
|
1486
1486
|
class: "j-select-option-icon",
|
|
1487
1487
|
icon: b.icon
|
|
1488
|
-
}, null, 8, ["icon"])) :
|
|
1488
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
1489
1489
|
F("div", null, be(b.label), 1)
|
|
1490
1490
|
])
|
|
1491
1491
|
]),
|
|
@@ -1505,7 +1505,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1505
1505
|
key: 0,
|
|
1506
1506
|
class: "j-select-option-icon",
|
|
1507
1507
|
icon: y.icon
|
|
1508
|
-
}, null, 8, ["icon"])) :
|
|
1508
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
1509
1509
|
F("div", null, be(y.label), 1)
|
|
1510
1510
|
])
|
|
1511
1511
|
]),
|
|
@@ -1522,7 +1522,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1522
1522
|
key: 0,
|
|
1523
1523
|
class: "j-select-option-icon",
|
|
1524
1524
|
icon: r.value
|
|
1525
|
-
}, null, 8, ["icon"])) :
|
|
1525
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
1526
1526
|
F("div", null, [
|
|
1527
1527
|
e.isShowTooltip ? (C(), H(h, {
|
|
1528
1528
|
key: 0,
|
|
@@ -1694,7 +1694,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1694
1694
|
label: d.label
|
|
1695
1695
|
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (C(!0), O(ye, { key: 1 }, Ee(e.options, (d) => (C(), H(c, {
|
|
1696
1696
|
key: d.value,
|
|
1697
|
-
class:
|
|
1697
|
+
class: Me({ "j-checkbox-notFillOrColor": !e.fill && !e.textColor }),
|
|
1698
1698
|
value: d.value,
|
|
1699
1699
|
disabled: d.disabled,
|
|
1700
1700
|
size: e.size,
|
|
@@ -1789,13 +1789,13 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
1789
1789
|
e.decreaseIcon ? (C(), H(p, {
|
|
1790
1790
|
key: 0,
|
|
1791
1791
|
icon: e.decreaseIcon
|
|
1792
|
-
}, null, 8, ["icon"])) :
|
|
1792
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1793
1793
|
]),
|
|
1794
1794
|
"increase-icon": V(() => [
|
|
1795
1795
|
e.increaseIcon ? (C(), H(p, {
|
|
1796
1796
|
key: 0,
|
|
1797
1797
|
icon: e.increaseIcon
|
|
1798
|
-
}, null, 8, ["icon"])) :
|
|
1798
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1799
1799
|
]),
|
|
1800
1800
|
_: 2
|
|
1801
1801
|
}, [
|
|
@@ -2196,7 +2196,7 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
2196
2196
|
}), ($, M) => (C(), O("div", {
|
|
2197
2197
|
ref_key: "layout",
|
|
2198
2198
|
ref: o,
|
|
2199
|
-
class:
|
|
2199
|
+
class: Me(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
2200
2200
|
}, [
|
|
2201
2201
|
v.value ? (C(), O("div", {
|
|
2202
2202
|
key: 0,
|
|
@@ -2210,9 +2210,9 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
2210
2210
|
key: 0,
|
|
2211
2211
|
class: "j-layout--move",
|
|
2212
2212
|
onMousedown: M[0] || (M[0] = (k) => T("left", k))
|
|
2213
|
-
}, null, 32)) :
|
|
2214
|
-
], 4)) :
|
|
2215
|
-
u.value ?
|
|
2213
|
+
}, null, 32)) : Y("", !0)
|
|
2214
|
+
], 4)) : Y("", !0),
|
|
2215
|
+
u.value ? Y("", !0) : (C(), O("div", Jf, [
|
|
2216
2216
|
b.value ? (C(), O("div", {
|
|
2217
2217
|
key: 0,
|
|
2218
2218
|
class: "j-layout--top",
|
|
@@ -2225,8 +2225,8 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
2225
2225
|
key: 0,
|
|
2226
2226
|
class: "j-layout--move",
|
|
2227
2227
|
onMousedown: M[1] || (M[1] = (k) => T("top", k))
|
|
2228
|
-
}, null, 32)) :
|
|
2229
|
-
], 4)) :
|
|
2228
|
+
}, null, 32)) : Y("", !0)
|
|
2229
|
+
], 4)) : Y("", !0),
|
|
2230
2230
|
F("div", {
|
|
2231
2231
|
ref_key: "mid",
|
|
2232
2232
|
ref: i,
|
|
@@ -2247,8 +2247,8 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
2247
2247
|
key: 0,
|
|
2248
2248
|
class: "j-layout--move",
|
|
2249
2249
|
onMousedown: M[2] || (M[2] = (k) => T("bottom", k))
|
|
2250
|
-
}, null, 32)) :
|
|
2251
|
-
], 4)) :
|
|
2250
|
+
}, null, 32)) : Y("", !0)
|
|
2251
|
+
], 4)) : Y("", !0)
|
|
2252
2252
|
])),
|
|
2253
2253
|
y.value ? (C(), O("div", {
|
|
2254
2254
|
key: 2,
|
|
@@ -2262,8 +2262,8 @@ const kf = de(Qs), Rf = /* @__PURE__ */ ae({
|
|
|
2262
2262
|
key: 0,
|
|
2263
2263
|
class: "j-layout--move",
|
|
2264
2264
|
onMousedown: M[3] || (M[3] = (k) => T("right", k))
|
|
2265
|
-
}, null, 32)) :
|
|
2266
|
-
], 4)) :
|
|
2265
|
+
}, null, 32)) : Y("", !0)
|
|
2266
|
+
], 4)) : Y("", !0)
|
|
2267
2267
|
], 2));
|
|
2268
2268
|
}
|
|
2269
2269
|
}), eh = de(Qf);
|
|
@@ -2387,7 +2387,7 @@ class oh {
|
|
|
2387
2387
|
}));
|
|
2388
2388
|
}
|
|
2389
2389
|
processRecordsHierarchyStates(t) {
|
|
2390
|
-
const n =
|
|
2390
|
+
const n = Te.TYPES.HierarchyState, o = this.table.options.hierarchyExpandLevel || this.table.options.headerExpandLevel;
|
|
2391
2391
|
((i) => {
|
|
2392
2392
|
i.forEach(((a) => {
|
|
2393
2393
|
if (a && typeof a == "object") {
|
|
@@ -2402,7 +2402,7 @@ class oh {
|
|
|
2402
2402
|
t.length !== 0 && this.startAsyncExpansion(t);
|
|
2403
2403
|
}
|
|
2404
2404
|
getExpandableRecords() {
|
|
2405
|
-
const t = this.table.dataSource, n = t.source || t._source || this.table.dataSource.records, o =
|
|
2405
|
+
const t = this.table.dataSource, n = t.source || t._source || this.table.dataSource.records, o = Te.TYPES.HierarchyState, i = [], a = this.table;
|
|
2406
2406
|
a.internalProps.expandedRecordIndices || (a.internalProps.expandedRecordIndices = []);
|
|
2407
2407
|
const l = a.internalProps.expandedRecordIndices;
|
|
2408
2408
|
for (let r = 0; r < n.length; r++) {
|
|
@@ -2465,11 +2465,11 @@ class ih {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
bindEventHandlers() {
|
|
2467
2467
|
const t = () => this.onUpdateSubTablePositions(), n = () => this.onUpdateSubTablePositionsForRow();
|
|
2468
|
-
this.table.on(
|
|
2469
|
-
type:
|
|
2468
|
+
this.table.on(Te.TABLE_EVENT_TYPE.SCROLL, t), this.table.on(Te.TABLE_EVENT_TYPE.RESIZE_ROW, n), this.eventHandlers.push({
|
|
2469
|
+
type: Te.TABLE_EVENT_TYPE.SCROLL,
|
|
2470
2470
|
handler: t
|
|
2471
2471
|
}, {
|
|
2472
|
-
type:
|
|
2472
|
+
type: Te.TABLE_EVENT_TYPE.RESIZE_ROW,
|
|
2473
2473
|
handler: n
|
|
2474
2474
|
}), this.wrapTableResizeMethod(), this.bindTreeHierarchyStateChange(), this.bindRowMoveEvents();
|
|
2475
2475
|
}
|
|
@@ -2492,7 +2492,7 @@ class ih {
|
|
|
2492
2492
|
c = d;
|
|
2493
2493
|
const f = c - (r[0] + r[2]);
|
|
2494
2494
|
a.forEachChildren(((h) => {
|
|
2495
|
-
h.type !== "rect" && h.type !== "chart" && h.name !==
|
|
2495
|
+
h.type !== "rect" && h.type !== "chart" && h.name !== Te.CUSTOM_CONTAINER_NAME && (h.name === "mark" ? h.setAttribute("y", 0) : s === "middle" ? h.setAttribute("y", r[0] + (f - h.AABBBounds.height()) / 2) : s === "bottom" ? h.setAttribute("y", r[0] + f - h.AABBBounds.height()) : h.setAttribute("y", r[0]));
|
|
2496
2496
|
}));
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
@@ -2595,8 +2595,8 @@ class ih {
|
|
|
2595
2595
|
const { col: i, row: a } = n, l = this.getRecordByRowIndex(a - this.table.columnHeaderLevelCount);
|
|
2596
2596
|
l && typeof l == "object" && this.childrenKey in l && l[this.childrenKey] === !0 || (o = this.onToggleRowExpand) === null || o === void 0 || o.call(this, a, i);
|
|
2597
2597
|
};
|
|
2598
|
-
this.table.on(
|
|
2599
|
-
type:
|
|
2598
|
+
this.table.on(Te.TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, t), this.eventHandlers.push({
|
|
2599
|
+
type: Te.TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE,
|
|
2600
2600
|
handler: t
|
|
2601
2601
|
});
|
|
2602
2602
|
}
|
|
@@ -2642,14 +2642,14 @@ class ih {
|
|
|
2642
2642
|
})), this.allExpandedRowsBeforeMove.clear();
|
|
2643
2643
|
}), 0);
|
|
2644
2644
|
};
|
|
2645
|
-
this.table.on(
|
|
2646
|
-
type:
|
|
2645
|
+
this.table.on(Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_START, t), this.table.on(Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION, n), this.table.on(Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_FAIL, o), this.eventHandlers.push({
|
|
2646
|
+
type: Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_START,
|
|
2647
2647
|
handler: t
|
|
2648
2648
|
}, {
|
|
2649
|
-
type:
|
|
2649
|
+
type: Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION,
|
|
2650
2650
|
handler: n
|
|
2651
2651
|
}, {
|
|
2652
|
-
type:
|
|
2652
|
+
type: Te.TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION_FAIL,
|
|
2653
2653
|
handler: o
|
|
2654
2654
|
});
|
|
2655
2655
|
}
|
|
@@ -2793,7 +2793,7 @@ class lh {
|
|
|
2793
2793
|
canvasWidth: c,
|
|
2794
2794
|
canvasHeight: u,
|
|
2795
2795
|
theme: d.theme
|
|
2796
|
-
}, h = r || {}, { style: p } = h, g = ah(h, ["style"]), v = Object.assign(Object.assign({}, f), g), y = new
|
|
2796
|
+
}, h = r || {}, { style: p } = h, g = ah(h, ["style"]), v = Object.assign(Object.assign({}, f), g), y = new Te.ListTable(this.table.container, v);
|
|
2797
2797
|
a.subTableInstances.set(t, y), this.restoreSubTableCheckboxState(t, y);
|
|
2798
2798
|
const b = () => {
|
|
2799
2799
|
a.subTableInstances && a.subTableInstances.has(t) && y.render();
|
|
@@ -3068,7 +3068,7 @@ class lh {
|
|
|
3068
3068
|
}
|
|
3069
3069
|
setupSubTableEventForwarding(t, n) {
|
|
3070
3070
|
const o = t + this.table.columnHeaderLevelCount;
|
|
3071
|
-
Object.values(
|
|
3071
|
+
Object.values(Te.TABLE_EVENT_TYPE).forEach(((i) => {
|
|
3072
3072
|
var a;
|
|
3073
3073
|
if (i) {
|
|
3074
3074
|
const l = (...c) => {
|
|
@@ -3090,7 +3090,7 @@ class lh {
|
|
|
3090
3090
|
subTable: i,
|
|
3091
3091
|
originalEventArgs: a
|
|
3092
3092
|
};
|
|
3093
|
-
this.table.fireListeners(
|
|
3093
|
+
this.table.fireListeners(Te.TABLE_EVENT_TYPE.PLUGIN_EVENT, {
|
|
3094
3094
|
plugin: {
|
|
3095
3095
|
name: "Master Detail Plugin"
|
|
3096
3096
|
},
|
|
@@ -3595,15 +3595,15 @@ function fr(e, t, n) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
class dh {
|
|
3597
3597
|
constructor(t = {}) {
|
|
3598
|
-
this.id = "Master Detail Plugin", this.name = "Master Detail Plugin", this.runTime = [
|
|
3598
|
+
this.id = "Master Detail Plugin", this.name = "Master Detail Plugin", this.runTime = [Te.TABLE_EVENT_TYPE.BEFORE_INIT, Te.TABLE_EVENT_TYPE.INITIALIZED, Te.TABLE_EVENT_TYPE.SORT_CLICK, Te.TABLE_EVENT_TYPE.AFTER_SORT, Te.TABLE_EVENT_TYPE.AFTER_UPDATE_CELL_CONTENT_WIDTH, Te.TABLE_EVENT_TYPE.AFTER_UPDATE_SELECT_BORDER_HEIGHT], this.pluginOptions = t;
|
|
3599
3599
|
}
|
|
3600
3600
|
run(...t) {
|
|
3601
3601
|
const n = t[0], o = t[1], i = t[2];
|
|
3602
|
-
if (o ===
|
|
3603
|
-
else if (o ===
|
|
3602
|
+
if (o === Te.TABLE_EVENT_TYPE.BEFORE_INIT) this.table = i, this.initializeManagers(), this.configManager.injectMasterDetailOptions(n.options);
|
|
3603
|
+
else if (o === Te.TABLE_EVENT_TYPE.INITIALIZED) this.setupMasterDetailFeatures();
|
|
3604
3604
|
else {
|
|
3605
|
-
if (o ===
|
|
3606
|
-
o ===
|
|
3605
|
+
if (o === Te.TABLE_EVENT_TYPE.SORT_CLICK) return this.eventManager.executeMasterDetailBeforeSort(), !0;
|
|
3606
|
+
o === Te.TABLE_EVENT_TYPE.AFTER_SORT ? this.eventManager.executeMasterDetailAfterSort() : o === Te.TABLE_EVENT_TYPE.AFTER_UPDATE_CELL_CONTENT_WIDTH ? this.eventManager.handleAfterUpdateCellContentWidth(n) : o === Te.TABLE_EVENT_TYPE.AFTER_UPDATE_SELECT_BORDER_HEIGHT && this.eventManager.handleAfterUpdateSelectBorderHeight(n);
|
|
3607
3607
|
}
|
|
3608
3608
|
}
|
|
3609
3609
|
initializeManagers() {
|
|
@@ -3772,7 +3772,7 @@ class dh {
|
|
|
3772
3772
|
typeof n == "number" ? o = n : o = this.table.options.rowSeriesNumber ? 1 : 0;
|
|
3773
3773
|
const i = this.table.getCellOriginRecord(o, t);
|
|
3774
3774
|
if (i && typeof i == "object") {
|
|
3775
|
-
const a = i, l =
|
|
3775
|
+
const a = i, l = Te.TYPES.HierarchyState, r = this.eventManager.isRowExpanded(t);
|
|
3776
3776
|
a.hierarchyState = r ? l.expand : l.collapse, this.table.scenegraph.updateHierarchyIcon(o, t);
|
|
3777
3777
|
}
|
|
3778
3778
|
}
|
|
@@ -3952,23 +3952,23 @@ const ki = {
|
|
|
3952
3952
|
const v = B("j-comp"), y = B("el-form-item"), b = B("el-col");
|
|
3953
3953
|
return s.value.display !== !1 && !e.isNotCol ? (C(), H(b, {
|
|
3954
3954
|
key: 0,
|
|
3955
|
-
span: s.value.span ||
|
|
3955
|
+
span: s.value.span || G(a),
|
|
3956
3956
|
style: Ce({
|
|
3957
3957
|
...s.value.colStyle || {}
|
|
3958
3958
|
}),
|
|
3959
|
-
class:
|
|
3959
|
+
class: Me(s.value.colClass || {})
|
|
3960
3960
|
}, {
|
|
3961
3961
|
default: V(() => [
|
|
3962
3962
|
u.value && s.value.needFormItem !== !1 ? (C(), H(y, {
|
|
3963
3963
|
key: 0,
|
|
3964
|
-
label:
|
|
3964
|
+
label: G(r)(s.value.notShowLabel ? "" : s.value.label || ""),
|
|
3965
3965
|
"label-position": s.value.labelPosition,
|
|
3966
3966
|
"label-width": d.value,
|
|
3967
3967
|
required: f.value,
|
|
3968
|
-
error:
|
|
3968
|
+
error: G(r)(h.value)
|
|
3969
3969
|
}, {
|
|
3970
3970
|
default: V(() => [
|
|
3971
|
-
|
|
3971
|
+
K(v, {
|
|
3972
3972
|
id: e.id,
|
|
3973
3973
|
type: c.value,
|
|
3974
3974
|
config: s.value,
|
|
@@ -3991,7 +3991,7 @@ const ki = {
|
|
|
3991
3991
|
type: c.value,
|
|
3992
3992
|
config: s.value,
|
|
3993
3993
|
children: e.children
|
|
3994
|
-
}, null, 8, ["id", "type", "config", "children"])) :
|
|
3994
|
+
}, null, 8, ["id", "type", "config", "children"])) : Y("", !0);
|
|
3995
3995
|
};
|
|
3996
3996
|
}
|
|
3997
3997
|
}), nc = /* @__PURE__ */ ae({
|
|
@@ -4214,7 +4214,7 @@ const ki = {
|
|
|
4214
4214
|
}, { ref_for: !0 }, I), null, 16))), 128))
|
|
4215
4215
|
])
|
|
4216
4216
|
}))
|
|
4217
|
-
]), 1040)) :
|
|
4217
|
+
]), 1040)) : Y("", !0);
|
|
4218
4218
|
};
|
|
4219
4219
|
}
|
|
4220
4220
|
});
|
|
@@ -4355,7 +4355,7 @@ const hr = /* @__PURE__ */ new Map();
|
|
|
4355
4355
|
function hh() {
|
|
4356
4356
|
if (!hr.has("j-comp-editor")) {
|
|
4357
4357
|
const e = new fh();
|
|
4358
|
-
|
|
4358
|
+
Te.register.editor("j-comp-editor", e), hr.set("j-comp-editor", e);
|
|
4359
4359
|
}
|
|
4360
4360
|
}
|
|
4361
4361
|
function ph(e) {
|
|
@@ -4580,9 +4580,9 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4580
4580
|
let _ = i.records.length, m = 45;
|
|
4581
4581
|
const E = A(!1), S = A({}), T = A([]), P = A(null), R = A(0);
|
|
4582
4582
|
let D = null, z = !1, $ = !1;
|
|
4583
|
-
const M = (L, W,
|
|
4584
|
-
T.value = L, P.value = W, R.value =
|
|
4585
|
-
left: `${
|
|
4583
|
+
const M = (L, W, q, J, oe) => {
|
|
4584
|
+
T.value = L, P.value = W, R.value = q, S.value = {
|
|
4585
|
+
left: `${J}px`,
|
|
4586
4586
|
top: `${oe}px`
|
|
4587
4587
|
}, E.value = !0, z = !1, document.addEventListener("wheel", pe, { passive: !1 });
|
|
4588
4588
|
}, k = () => {
|
|
@@ -4602,11 +4602,11 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4602
4602
|
}, Be = (L) => {
|
|
4603
4603
|
P.value && L.click && L.click({ data: P.value, openLayer: u }), k();
|
|
4604
4604
|
}, at = (L) => {
|
|
4605
|
-
const { Group: W, Text:
|
|
4605
|
+
const { Group: W, Text: q } = Te.CustomLayout, J = i.actionsMaxCount, oe = L.length > J, Z = oe ? L.slice(0, J - 1) : L, ue = oe ? L.slice(J - 1) : [];
|
|
4606
4606
|
let He = 0;
|
|
4607
|
-
if (
|
|
4608
|
-
const
|
|
4609
|
-
He +=
|
|
4607
|
+
if (Z.forEach((Pe, we) => {
|
|
4608
|
+
const Ue = Zt(Pe.config?.label || Pe.label) || 0;
|
|
4609
|
+
He += Ue + (we === 0 ? 24 : 12);
|
|
4610
4610
|
}), oe) {
|
|
4611
4611
|
const Pe = (Zt("更多") || 0) + 12;
|
|
4612
4612
|
He += Pe;
|
|
@@ -4621,7 +4621,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4621
4621
|
disableColumnResize: !0,
|
|
4622
4622
|
disableSelect: !0,
|
|
4623
4623
|
customLayout: (Pe) => {
|
|
4624
|
-
const { table: we, row:
|
|
4624
|
+
const { table: we, row: Ue, col: st } = Pe, qe = we.getCellOriginRecord(st, Ue), Ye = we.getRecordIndexByCell(st, Ue), xe = new W({
|
|
4625
4625
|
height: 40,
|
|
4626
4626
|
display: "flex",
|
|
4627
4627
|
flexDirection: "row",
|
|
@@ -4629,23 +4629,23 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4629
4629
|
justifyContent: "flex-start",
|
|
4630
4630
|
flexWrap: "nowrap"
|
|
4631
4631
|
});
|
|
4632
|
-
if (
|
|
4633
|
-
const Oe = Ze.config?.isDanger ? "#f53f3f" : "#165dff",
|
|
4632
|
+
if (Z.forEach((Ze, ht) => {
|
|
4633
|
+
const Oe = Ze.config?.isDanger ? "#f53f3f" : "#165dff", Ge = new q({
|
|
4634
4634
|
text: Ze.label,
|
|
4635
4635
|
fontSize: 14,
|
|
4636
4636
|
fill: Oe,
|
|
4637
4637
|
boundsPadding: [0, 12, 0, ht == 0 ? 12 : 0],
|
|
4638
4638
|
cursor: "pointer"
|
|
4639
4639
|
});
|
|
4640
|
-
|
|
4640
|
+
Ge.addEventListener("click", () => {
|
|
4641
4641
|
Ze.click && Ze.click({ data: qe, openLayer: u });
|
|
4642
|
-
}),
|
|
4642
|
+
}), Ge.addEventListener("mouseenter", (mt) => {
|
|
4643
4643
|
mt.target.setAttribute("fill", cn(Oe, -20)), we.scenegraph.stage.renderNextFrame();
|
|
4644
|
-
}),
|
|
4644
|
+
}), Ge.addEventListener("mouseleave", (mt) => {
|
|
4645
4645
|
mt.target.setAttribute("fill", Oe), we.scenegraph.stage.renderNextFrame();
|
|
4646
|
-
}), xe.add(
|
|
4646
|
+
}), xe.add(Ge);
|
|
4647
4647
|
}), oe) {
|
|
4648
|
-
const Ze = "#1677ff", ht = new
|
|
4648
|
+
const Ze = "#1677ff", ht = new q({
|
|
4649
4649
|
text: "更多",
|
|
4650
4650
|
fontSize: 14,
|
|
4651
4651
|
fill: Ze,
|
|
@@ -4654,10 +4654,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4654
4654
|
});
|
|
4655
4655
|
ht.addEventListener("mouseenter", (Oe) => {
|
|
4656
4656
|
Oe.target.setAttribute("fill", cn(Ze, -20)), we.scenegraph.stage.renderNextFrame();
|
|
4657
|
-
const
|
|
4658
|
-
if (
|
|
4659
|
-
const mt = Oe.canvasX +
|
|
4660
|
-
M(ue, qe,
|
|
4657
|
+
const Ge = p.value?.getBoundingClientRect();
|
|
4658
|
+
if (Ge) {
|
|
4659
|
+
const mt = Oe.canvasX + Ge.left - 64, pt = Oe.canvasY + Ge.top + 8;
|
|
4660
|
+
M(ue, qe, Ye, mt, pt);
|
|
4661
4661
|
}
|
|
4662
4662
|
$ = !0, N();
|
|
4663
4663
|
}), ht.addEventListener("mouseleave", (Oe) => {
|
|
@@ -4670,20 +4670,20 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4670
4670
|
};
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
|
-
},
|
|
4674
|
-
for (const
|
|
4675
|
-
if (
|
|
4676
|
-
return
|
|
4677
|
-
if (
|
|
4678
|
-
const
|
|
4679
|
-
if (
|
|
4680
|
-
return
|
|
4673
|
+
}, ee = (L, W) => {
|
|
4674
|
+
for (const q of L) {
|
|
4675
|
+
if (q.field === W)
|
|
4676
|
+
return q;
|
|
4677
|
+
if (q.columns) {
|
|
4678
|
+
const J = ee(q.columns, W);
|
|
4679
|
+
if (J)
|
|
4680
|
+
return J;
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
return null;
|
|
4684
|
-
}, $e = (L, W,
|
|
4685
|
-
const oe =
|
|
4686
|
-
return ue._fieldFormat ? ue._fieldFormat(L, W,
|
|
4684
|
+
}, $e = (L, W, q, J) => {
|
|
4685
|
+
const oe = J.getBodyField(W, q), Z = J.options?.columns || [], ue = ee(Z, oe);
|
|
4686
|
+
return ue._fieldFormat ? ue._fieldFormat(L, W, q, J) : af(L[oe], s, {
|
|
4687
4687
|
type: ue._compType,
|
|
4688
4688
|
getCompType: ue._getCompType,
|
|
4689
4689
|
getCompConfig: ue._getCompConfig,
|
|
@@ -4692,54 +4692,54 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4692
4692
|
getTableData: wn,
|
|
4693
4693
|
row: L
|
|
4694
4694
|
});
|
|
4695
|
-
},
|
|
4696
|
-
const { dataValue: W, rect:
|
|
4697
|
-
let
|
|
4698
|
-
W || (
|
|
4699
|
-
const
|
|
4695
|
+
}, Ne = (L) => {
|
|
4696
|
+
const { dataValue: W, rect: q } = L;
|
|
4697
|
+
let J = "mdi:toggle-switch", oe = "#165dff";
|
|
4698
|
+
W || (J = "mdi:toggle-switch-off", oe = "#e5e6eb");
|
|
4699
|
+
const Z = Zn(J), ue = Z?.body?.replace(/currentColor/g, oe), He = [];
|
|
4700
4700
|
return He.push({
|
|
4701
4701
|
type: "icon",
|
|
4702
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 ${
|
|
4702
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 ${Z?.width} ${Z?.height}" >${ue}</svg>`,
|
|
4703
4703
|
x: 8,
|
|
4704
|
-
y: (
|
|
4704
|
+
y: (q.height - 40) / 2,
|
|
4705
4705
|
width: 40,
|
|
4706
4706
|
height: 40
|
|
4707
4707
|
}), {
|
|
4708
4708
|
elements: He
|
|
4709
4709
|
};
|
|
4710
4710
|
}, Se = (L) => {
|
|
4711
|
-
const { dataValue: W, rect:
|
|
4711
|
+
const { dataValue: W, rect: q } = L, J = Number(W) || 0, oe = 5, Z = 20, ue = 4, He = 8, ze = (q.height - Z) / 2, Pe = [], we = Zn("mdi:star"), Ue = Zn("mdi:star-half-full"), st = Zn("mdi:star-outline"), qe = "#f7ba2a", Ye = "#e5e6eb";
|
|
4712
4712
|
for (let xe = 0; xe < oe; xe++) {
|
|
4713
|
-
const Ze = He + xe * (
|
|
4714
|
-
if (
|
|
4713
|
+
const Ze = He + xe * (Z + ue), ht = ze;
|
|
4714
|
+
if (J >= xe + 1) {
|
|
4715
4715
|
const Oe = we?.body?.replace(/currentColor/g, qe);
|
|
4716
4716
|
Pe.push({
|
|
4717
4717
|
type: "icon",
|
|
4718
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
4718
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${Z}" viewBox="0 0 ${we?.width} ${we?.height}">${Oe}</svg>`,
|
|
4719
4719
|
x: Ze,
|
|
4720
4720
|
y: ht,
|
|
4721
|
-
width:
|
|
4722
|
-
height:
|
|
4721
|
+
width: Z,
|
|
4722
|
+
height: Z
|
|
4723
4723
|
});
|
|
4724
|
-
} else if (
|
|
4725
|
-
const Oe =
|
|
4724
|
+
} else if (J > xe && J < xe + 1) {
|
|
4725
|
+
const Oe = Ue?.body?.replace(/currentColor/g, qe);
|
|
4726
4726
|
Pe.push({
|
|
4727
4727
|
type: "icon",
|
|
4728
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
4728
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${Z}" viewBox="0 0 ${Ue?.width} ${Ue?.height}">${Oe}</svg>`,
|
|
4729
4729
|
x: Ze,
|
|
4730
4730
|
y: ht,
|
|
4731
|
-
width:
|
|
4732
|
-
height:
|
|
4731
|
+
width: Z,
|
|
4732
|
+
height: Z
|
|
4733
4733
|
});
|
|
4734
4734
|
} else {
|
|
4735
|
-
const Oe = st?.body?.replace(/currentColor/g,
|
|
4735
|
+
const Oe = st?.body?.replace(/currentColor/g, Ye);
|
|
4736
4736
|
Pe.push({
|
|
4737
4737
|
type: "icon",
|
|
4738
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
4738
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${Z}" viewBox="0 0 ${st?.width} ${st?.height}">${Oe}</svg>`,
|
|
4739
4739
|
x: Ze,
|
|
4740
4740
|
y: ht,
|
|
4741
|
-
width:
|
|
4742
|
-
height:
|
|
4741
|
+
width: Z,
|
|
4742
|
+
height: Z
|
|
4743
4743
|
});
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
@@ -4747,7 +4747,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4747
4747
|
elements: Pe
|
|
4748
4748
|
};
|
|
4749
4749
|
}, Qe = (L) => {
|
|
4750
|
-
const { dataValue: W, rect:
|
|
4750
|
+
const { dataValue: W, rect: q, table: J, col: oe, row: Z } = L, ue = J.getBodyField(oe, Z), He = J.options?.columns || [], Pe = ee(He, ue)?._compConfig || {}, we = Number(Pe.min) || 0, Ue = Number(Pe.max) || 100, st = Number(W) || 0, qe = Ue - we, Ye = qe === 0 ? 0 : Math.max(0, Math.min(100, (st - we) / qe * 100)), xe = 4, Ze = 8, ht = 8, Oe = (q.height - xe) / 2, Ge = String(st), mt = Zt(Ge) || 0, pt = Ze, $t = Oe, It = q.width - Ze * 2 - mt - ht, Et = It * Ye / 100, Un = [], Sn = (ct, _t, Gn) => {
|
|
4751
4751
|
const Pt = Math.min(Gn, _t / 2, ct / 2);
|
|
4752
4752
|
return `M ${Pt} 0 L ${ct - Pt} 0 Q ${ct} 0 ${ct} ${Pt} L ${ct} ${_t - Pt} Q ${ct} ${_t} ${ct - Pt} ${_t} L ${Pt} ${_t} Q 0 ${_t} 0 ${_t - Pt} L 0 ${Pt} Q 0 0 ${Pt} 0 Z`;
|
|
4753
4753
|
}, Yn = (ct, _t, Gn) => {
|
|
@@ -4772,10 +4772,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4772
4772
|
height: xe
|
|
4773
4773
|
});
|
|
4774
4774
|
}
|
|
4775
|
-
const Vo = pt + It + ht, go =
|
|
4775
|
+
const Vo = pt + It + ht, go = q.height / 2;
|
|
4776
4776
|
return Un.push({
|
|
4777
4777
|
type: "text",
|
|
4778
|
-
text:
|
|
4778
|
+
text: Ge,
|
|
4779
4779
|
x: Vo,
|
|
4780
4780
|
y: go,
|
|
4781
4781
|
fontSize: 14,
|
|
@@ -4785,47 +4785,47 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4785
4785
|
}), {
|
|
4786
4786
|
elements: Un
|
|
4787
4787
|
};
|
|
4788
|
-
}, lt = (L) => String(L).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"),
|
|
4788
|
+
}, lt = (L) => String(L).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Q = (L, W) => {
|
|
4789
4789
|
if (!L) return "";
|
|
4790
4790
|
if ((Zt(L) || 0) <= W) return L;
|
|
4791
|
-
const
|
|
4791
|
+
const J = "...", oe = Zt(J) || 0;
|
|
4792
4792
|
if (oe >= W) return "";
|
|
4793
|
-
let
|
|
4794
|
-
for (;
|
|
4795
|
-
const He = Math.ceil((
|
|
4796
|
-
(Zt(ze) || 0) + oe <= W ?
|
|
4793
|
+
let Z = 0, ue = L.length;
|
|
4794
|
+
for (; Z < ue; ) {
|
|
4795
|
+
const He = Math.ceil((Z + ue) / 2), ze = L.slice(0, He);
|
|
4796
|
+
(Zt(ze) || 0) + oe <= W ? Z = He : ue = He - 1;
|
|
4797
4797
|
}
|
|
4798
|
-
return L.slice(0,
|
|
4798
|
+
return L.slice(0, Z) + J;
|
|
4799
4799
|
}, fe = (L) => {
|
|
4800
|
-
const { dataValue: W, rect:
|
|
4800
|
+
const { dataValue: W, rect: q, table: J, col: oe, row: Z } = L;
|
|
4801
4801
|
if (!W) return { elements: [] };
|
|
4802
|
-
const ue =
|
|
4803
|
-
let
|
|
4804
|
-
if (!
|
|
4805
|
-
if (
|
|
4806
|
-
const xe =
|
|
4802
|
+
const ue = J.getBodyField(oe, Z), He = J.options?.columns || [], Pe = ee(He, ue)?._compConfig || {}, we = Number(Pe.size) || 16, Ue = Pe.color, st = (q.width - we) / 2, qe = (q.height - we) / 2;
|
|
4803
|
+
let Ye = String(W).trim();
|
|
4804
|
+
if (!Ye) return { elements: [] };
|
|
4805
|
+
if (Ye.startsWith("<svg")) {
|
|
4806
|
+
const xe = Ye.match(/<svg\b([^>]*)>([\s\S]*?)<\/svg>/i);
|
|
4807
4807
|
if (xe) {
|
|
4808
4808
|
const Ze = xe[1] || "", ht = xe[2] || "";
|
|
4809
4809
|
let Oe = Ze.match(/\bviewBox\s*=\s*["']([^"']+)["']/i)?.[1];
|
|
4810
4810
|
if (!Oe) {
|
|
4811
|
-
const
|
|
4812
|
-
Oe =
|
|
4811
|
+
const Ge = Ze.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], mt = Ze.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
|
|
4812
|
+
Oe = Ge && mt ? `0 0 ${Ge} ${mt}` : "0 0 24 24";
|
|
4813
4813
|
}
|
|
4814
|
-
|
|
4814
|
+
Ye = `<svg xmlns="http://www.w3.org/2000/svg" width="${we}" height="${we}" viewBox="${Oe}">${ht}</svg>`;
|
|
4815
4815
|
} else
|
|
4816
|
-
|
|
4816
|
+
Ye = `<svg xmlns="http://www.w3.org/2000/svg" width="${we}" height="${we}" viewBox="0 0 24 24"></svg>`;
|
|
4817
4817
|
} else {
|
|
4818
|
-
const xe = Zn(
|
|
4818
|
+
const xe = Zn(Ye);
|
|
4819
4819
|
if (xe) {
|
|
4820
4820
|
const { body: Ze, width: ht, height: Oe } = xe;
|
|
4821
|
-
|
|
4821
|
+
Ye = `<svg xmlns="http://www.w3.org/2000/svg" width="${we}" height="${we}" viewBox="0 0 ${ht} ${Oe}">${Ze}</svg>`;
|
|
4822
4822
|
}
|
|
4823
4823
|
}
|
|
4824
|
-
return
|
|
4824
|
+
return Ue && (Ye = Ye.replace(/currentColor/g, Ue)), {
|
|
4825
4825
|
elements: [
|
|
4826
4826
|
{
|
|
4827
4827
|
type: "icon",
|
|
4828
|
-
svg:
|
|
4828
|
+
svg: Ye,
|
|
4829
4829
|
x: st,
|
|
4830
4830
|
y: qe,
|
|
4831
4831
|
width: we,
|
|
@@ -4834,16 +4834,16 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4834
4834
|
]
|
|
4835
4835
|
};
|
|
4836
4836
|
}, ke = (L) => {
|
|
4837
|
-
const { dataValue: W, rect:
|
|
4837
|
+
const { dataValue: W, rect: q, table: J, col: oe, row: Z, value: ue } = L, He = J.getBodyField(oe, Z), ze = J.options?.columns || [], Pe = ee(ze, He), we = Pe?._compConfig || {}, Ue = c({
|
|
4838
4838
|
config: we,
|
|
4839
|
-
row:
|
|
4839
|
+
row: J.getRecordByCell?.(oe, Z) || J.getCellOriginRecord?.(oe, Z),
|
|
4840
4840
|
value: Pe._fieldFormat ? ue : W
|
|
4841
4841
|
});
|
|
4842
|
-
if (
|
|
4843
|
-
const st = 14, qe = 28,
|
|
4844
|
-
let It = Oe, Et =
|
|
4842
|
+
if (Ue.length === 0) return { elements: [] };
|
|
4843
|
+
const st = 14, qe = 28, Ye = 2, xe = 12, Ze = 8, ht = 6, Oe = 8, Ge = Math.max(0, (q.height - qe) / 2), mt = Math.max(0, q.width - Oe * 2), pt = Math.max(0, mt - xe * 2), $t = [];
|
|
4844
|
+
let It = Oe, Et = Ge;
|
|
4845
4845
|
const Un = (Sn, Yn, ho) => {
|
|
4846
|
-
const po =
|
|
4846
|
+
const po = Q(Sn, pt), Vo = lt(po), go = Zt(po) || 0, ct = Math.min(mt, go + xe * 2), _t = Yn || "#f2f3f5", Gn = ho || "#1d2129", Pt = qe / 2 + st * 0.35, Vu = `<svg xmlns="http://www.w3.org/2000/svg" width="${ct}" height="${qe}" viewBox="0 0 ${ct} ${qe}"><rect x="0" y="0" width="${ct}" height="${qe}" rx="${Ye}" ry="${Ye}" fill="${_t}"/><text x="${ct / 2}" y="${Pt}" text-anchor="middle" font-size="${st}" fill="${Gn}">${Vo}</text></svg>`;
|
|
4847
4847
|
return $t.push({
|
|
4848
4848
|
type: "icon",
|
|
4849
4849
|
svg: Vu,
|
|
@@ -4853,9 +4853,9 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4853
4853
|
height: qe
|
|
4854
4854
|
}), { tagWidth: ct };
|
|
4855
4855
|
};
|
|
4856
|
-
for (let Sn = 0; Sn <
|
|
4857
|
-
const Yn =
|
|
4858
|
-
if (It !== Oe && It + Vo >
|
|
4856
|
+
for (let Sn = 0; Sn < Ue.length; Sn++) {
|
|
4857
|
+
const Yn = Ue[Sn], ho = Yn.label, po = (Zt(ho) || 0) + xe * 2, Vo = Math.min(mt, po);
|
|
4858
|
+
if (It !== Oe && It + Vo > q.width - Oe && (It = Oe, Et += qe + ht), Et + qe > q.height && q.height > 0) {
|
|
4859
4859
|
$t.length > 0 && Un("...", "#f2f3f5", "#1d2129");
|
|
4860
4860
|
break;
|
|
4861
4861
|
}
|
|
@@ -4868,88 +4868,88 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4868
4868
|
};
|
|
4869
4869
|
}, et = (L) => {
|
|
4870
4870
|
if (!L) return "#1d2129";
|
|
4871
|
-
L = L.replace("#", ""), L.length === 3 && (L = L.split("").map((
|
|
4872
|
-
const W = parseInt(L.substring(0, 2), 16),
|
|
4873
|
-
if ((W * 299 +
|
|
4874
|
-
const
|
|
4875
|
-
let we = 0,
|
|
4871
|
+
L = L.replace("#", ""), L.length === 3 && (L = L.split("").map((Z) => Z + Z).join(""));
|
|
4872
|
+
const W = parseInt(L.substring(0, 2), 16), q = parseInt(L.substring(2, 4), 16), J = parseInt(L.substring(4, 6), 16);
|
|
4873
|
+
if ((W * 299 + q * 587 + J * 114) / 1e3 >= 128) {
|
|
4874
|
+
const Z = W / 255, ue = q / 255, He = J / 255, ze = Math.max(Z, ue, He), Pe = Math.min(Z, ue, He);
|
|
4875
|
+
let we = 0, Ue = 0;
|
|
4876
4876
|
const st = (ze + Pe) / 2;
|
|
4877
4877
|
if (ze !== Pe) {
|
|
4878
|
-
const
|
|
4879
|
-
switch (
|
|
4880
|
-
case
|
|
4881
|
-
we = (ue - He) /
|
|
4878
|
+
const Ge = ze - Pe;
|
|
4879
|
+
switch (Ue = st > 0.5 ? Ge / (2 - ze - Pe) : Ge / (ze + Pe), ze) {
|
|
4880
|
+
case Z:
|
|
4881
|
+
we = (ue - He) / Ge + (ue < He ? 6 : 0);
|
|
4882
4882
|
break;
|
|
4883
4883
|
case ue:
|
|
4884
|
-
we = (He -
|
|
4884
|
+
we = (He - Z) / Ge + 2;
|
|
4885
4885
|
break;
|
|
4886
4886
|
case He:
|
|
4887
|
-
we = (
|
|
4887
|
+
we = (Z - ue) / Ge + 4;
|
|
4888
4888
|
break;
|
|
4889
4889
|
}
|
|
4890
4890
|
we /= 6;
|
|
4891
4891
|
}
|
|
4892
|
-
const qe = 0.3,
|
|
4892
|
+
const qe = 0.3, Ye = Ue;
|
|
4893
4893
|
let xe, Ze, ht;
|
|
4894
|
-
if (
|
|
4894
|
+
if (Ye === 0)
|
|
4895
4895
|
xe = Ze = ht = qe;
|
|
4896
4896
|
else {
|
|
4897
|
-
const
|
|
4898
|
-
xe =
|
|
4897
|
+
const Ge = ($t, It, Et) => (Et < 0 && (Et += 1), Et > 1 && (Et -= 1), Et < 0.16666666666666666 ? $t + (It - $t) * 6 * Et : Et < 0.5 ? It : Et < 0.6666666666666666 ? $t + (It - $t) * (0.6666666666666666 - Et) * 6 : $t), mt = qe * (1 + Ye), pt = 2 * qe - mt;
|
|
4898
|
+
xe = Ge(pt, mt, we + 1 / 3), Ze = Ge(pt, mt, we), ht = Ge(pt, mt, we - 1 / 3);
|
|
4899
4899
|
}
|
|
4900
|
-
const Oe = (
|
|
4900
|
+
const Oe = (Ge) => Math.round(Ge * 255).toString(16).padStart(2, "0");
|
|
4901
4901
|
return `#${Oe(xe)}${Oe(Ze)}${Oe(ht)}`;
|
|
4902
4902
|
}
|
|
4903
4903
|
return "#ffffff";
|
|
4904
4904
|
}, ft = (L) => {
|
|
4905
|
-
const { table: W, row:
|
|
4905
|
+
const { table: W, row: q, col: J, rect: oe, value: Z } = L, { Group: ue, Text: He } = Te.CustomLayout, ze = W.getBodyField(J, q), Pe = W.options?.columns || [], we = ee(Pe, ze), Ue = we?._compConfig || {}, st = new ue({
|
|
4906
4906
|
height: oe.height,
|
|
4907
4907
|
width: oe.width,
|
|
4908
4908
|
display: "flex",
|
|
4909
4909
|
alignItems: "center",
|
|
4910
4910
|
justifyContent: we.style?.textAlign === "center" ? "center" : we.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
4911
|
-
}), qe = "#165dff",
|
|
4912
|
-
text: String(
|
|
4911
|
+
}), qe = "#165dff", Ye = new He({
|
|
4912
|
+
text: String(Z ?? ""),
|
|
4913
4913
|
fontSize: 14,
|
|
4914
4914
|
fill: qe,
|
|
4915
4915
|
cursor: "pointer",
|
|
4916
4916
|
boundsPadding: [0, 8, 0, 8]
|
|
4917
4917
|
// 增加点击区域
|
|
4918
4918
|
});
|
|
4919
|
-
return
|
|
4920
|
-
if (
|
|
4921
|
-
const xe = W.getCellOriginRecord(
|
|
4922
|
-
|
|
4919
|
+
return Ye.addEventListener("click", () => {
|
|
4920
|
+
if (Ue.click) {
|
|
4921
|
+
const xe = W.getCellOriginRecord(J, q);
|
|
4922
|
+
Ue.click({ row: xe, column: we, openLayer: u });
|
|
4923
4923
|
}
|
|
4924
|
-
}),
|
|
4924
|
+
}), Ye.addEventListener("mouseenter", (xe) => {
|
|
4925
4925
|
xe.target.setAttribute("fill", cn(qe, -20)), W.scenegraph.stage.renderNextFrame();
|
|
4926
|
-
}),
|
|
4926
|
+
}), Ye.addEventListener("mouseleave", (xe) => {
|
|
4927
4927
|
xe.target.setAttribute("fill", qe), W.scenegraph.stage.renderNextFrame();
|
|
4928
|
-
}), st.add(
|
|
4928
|
+
}), st.add(Ye), {
|
|
4929
4929
|
rootContainer: st,
|
|
4930
4930
|
renderDefault: !1
|
|
4931
4931
|
};
|
|
4932
4932
|
}, Lt = (L) => {
|
|
4933
|
-
const { table: W, row:
|
|
4933
|
+
const { table: W, row: q, col: J } = L, oe = W.getBodyField(J, q), Z = W.options?.columns || [], ue = ee(Z, oe), He = ue?._compConfig || {};
|
|
4934
4934
|
if (ue?._customLayout)
|
|
4935
|
-
return ue._customLayout({ ...L, config: He, customLayout:
|
|
4935
|
+
return ue._customLayout({ ...L, config: He, customLayout: Te.CustomLayout });
|
|
4936
4936
|
}, De = (L) => {
|
|
4937
|
-
const W = L.filter((
|
|
4938
|
-
const { id:
|
|
4937
|
+
const W = L.filter((q) => q.config?.display !== !1).map((q) => {
|
|
4938
|
+
const { id: J, type: oe, config: Z, getCompConfig: ue, getCompType: He, children: ze, customLayout: Pe } = q, {
|
|
4939
4939
|
label: we,
|
|
4940
|
-
width:
|
|
4940
|
+
width: Ue,
|
|
4941
4941
|
minWidth: st,
|
|
4942
4942
|
maxWidth: qe,
|
|
4943
|
-
align:
|
|
4943
|
+
align: Ye,
|
|
4944
4944
|
headerAlign: xe,
|
|
4945
4945
|
fieldFormat: Ze,
|
|
4946
4946
|
editor: ht,
|
|
4947
4947
|
frozen: Oe,
|
|
4948
|
-
...
|
|
4949
|
-
} =
|
|
4950
|
-
field:
|
|
4948
|
+
...Ge
|
|
4949
|
+
} = Z || {}, mt = xe ?? Ye, pt = {
|
|
4950
|
+
field: J,
|
|
4951
4951
|
title: we,
|
|
4952
|
-
width:
|
|
4952
|
+
width: Ue,
|
|
4953
4953
|
minWidth: st,
|
|
4954
4954
|
maxWidth: qe,
|
|
4955
4955
|
...mt ? {
|
|
@@ -4958,35 +4958,35 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
4958
4958
|
}
|
|
4959
4959
|
} : {},
|
|
4960
4960
|
style: {
|
|
4961
|
-
textAlign:
|
|
4961
|
+
textAlign: Ye
|
|
4962
4962
|
},
|
|
4963
4963
|
_customLayout: Pe,
|
|
4964
4964
|
_fieldFormat: Ze,
|
|
4965
4965
|
_compType: oe,
|
|
4966
4966
|
_compConfig: {
|
|
4967
|
-
...
|
|
4967
|
+
...Ge
|
|
4968
4968
|
},
|
|
4969
4969
|
_getCompConfig: ue,
|
|
4970
4970
|
_getCompType: He,
|
|
4971
4971
|
frozen: Oe
|
|
4972
4972
|
}, $t = gh(oe);
|
|
4973
|
-
return $t && (pt.editor = $t, w = !0), oe === "j-switch" && (pt.customRender =
|
|
4973
|
+
return $t && (pt.editor = $t, w = !0), oe === "j-switch" && (pt.customRender = Ne), oe === "j-rate" && (pt.customRender = Se), oe === "j-slider" && (pt.customRender = Qe), (oe === "j-tag" || oe === "j-input-tag") && (pt.customRender = ke), oe === "j-icon" && (pt.customRender = fe), oe === "link" && (pt.customLayout = ft), Pe && (pt.customLayout = Lt), pt.fieldFormat = $e, ze && ze.length > 0 && (pt.columns = De(ze)), pt;
|
|
4974
4974
|
});
|
|
4975
4975
|
return i.isTree && W.length > 0 && (W[0].tree = !0), W;
|
|
4976
4976
|
}, cn = (L, W) => {
|
|
4977
|
-
const
|
|
4978
|
-
return `#${(oe << 16 |
|
|
4977
|
+
const q = L.replace("#", ""), J = parseInt(q, 16), oe = Math.min(255, Math.max(0, (J >> 16) + W)), Z = Math.min(255, Math.max(0, (J >> 8 & 255) + W)), ue = Math.min(255, Math.max(0, (J & 255) + W));
|
|
4978
|
+
return `#${(oe << 16 | Z << 8 | ue).toString(16).padStart(6, "0")}`;
|
|
4979
4979
|
}, bn = () => {
|
|
4980
4980
|
let L = _;
|
|
4981
4981
|
i.isPage && (L = Ht.value + _);
|
|
4982
|
-
const W = String(L),
|
|
4983
|
-
return Math.max(45,
|
|
4982
|
+
const W = String(L), q = Zt(W) || 0;
|
|
4983
|
+
return Math.max(45, q + 18);
|
|
4984
4984
|
}, Kt = (L) => {
|
|
4985
|
-
let W = (
|
|
4986
|
-
const ue =
|
|
4985
|
+
let W = (q, J, oe, Z) => {
|
|
4986
|
+
const ue = Z.getRecordIndexByCell(J, oe);
|
|
4987
4987
|
return i.isPage && !L ? Ht.value + ue + 1 : ue + 1;
|
|
4988
4988
|
};
|
|
4989
|
-
return L && (W = (
|
|
4989
|
+
return L && (W = (q, J, oe, Z) => Z.getRecordIndexByCell(J, oe) + 1), {
|
|
4990
4990
|
field: "__sequence__",
|
|
4991
4991
|
title: "序号",
|
|
4992
4992
|
width: m,
|
|
@@ -5004,7 +5004,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5004
5004
|
_getCompConfig: void 0,
|
|
5005
5005
|
_getCompType: void 0
|
|
5006
5006
|
};
|
|
5007
|
-
},
|
|
5007
|
+
}, U = () => ({
|
|
5008
5008
|
field: "__placeholder__",
|
|
5009
5009
|
title: "",
|
|
5010
5010
|
width: "auto",
|
|
@@ -5023,56 +5023,56 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5023
5023
|
if (L.frozen) return L.frozen;
|
|
5024
5024
|
if (L.columns)
|
|
5025
5025
|
for (const W of L.columns) {
|
|
5026
|
-
const
|
|
5027
|
-
if (
|
|
5026
|
+
const q = le(W);
|
|
5027
|
+
if (q) return q;
|
|
5028
5028
|
}
|
|
5029
5029
|
}, X = (L) => {
|
|
5030
5030
|
const W = [];
|
|
5031
|
-
return L.forEach((
|
|
5032
|
-
if (
|
|
5033
|
-
W.push(
|
|
5031
|
+
return L.forEach((q) => {
|
|
5032
|
+
if (q.frozen) {
|
|
5033
|
+
W.push(q);
|
|
5034
5034
|
return;
|
|
5035
5035
|
}
|
|
5036
|
-
if (!
|
|
5037
|
-
W.push(
|
|
5036
|
+
if (!q.columns || q.columns.length === 0) {
|
|
5037
|
+
W.push(q);
|
|
5038
5038
|
return;
|
|
5039
5039
|
}
|
|
5040
|
-
const
|
|
5041
|
-
if (
|
|
5040
|
+
const J = X(q.columns), oe = [], Z = [], ue = [];
|
|
5041
|
+
if (J.forEach((ze) => {
|
|
5042
5042
|
const Pe = le(ze);
|
|
5043
|
-
Pe === "left" ? oe.push(ze) : Pe === "right" ?
|
|
5044
|
-
}), (oe.length > 0 ? 1 : 0) + (
|
|
5045
|
-
|
|
5043
|
+
Pe === "left" ? oe.push(ze) : Pe === "right" ? Z.push(ze) : ue.push(ze);
|
|
5044
|
+
}), (oe.length > 0 ? 1 : 0) + (Z.length > 0 ? 1 : 0) + (ue.length > 0 ? 1 : 0) <= 1) {
|
|
5045
|
+
q.columns = J, W.push(q);
|
|
5046
5046
|
return;
|
|
5047
5047
|
}
|
|
5048
|
-
oe.length && W.push({ ...
|
|
5048
|
+
oe.length && W.push({ ...q, columns: oe }), ue.length && W.push({ ...q, columns: ue }), Z.length && W.push({ ...q, columns: Z });
|
|
5049
5049
|
}), W;
|
|
5050
|
-
},
|
|
5051
|
-
let W = 0,
|
|
5052
|
-
return L.forEach((
|
|
5053
|
-
if (
|
|
5054
|
-
const oe =
|
|
5055
|
-
W += oe.left,
|
|
5050
|
+
}, te = (L) => {
|
|
5051
|
+
let W = 0, q = 0;
|
|
5052
|
+
return L.forEach((J) => {
|
|
5053
|
+
if (J.columns && J.columns.length > 0) {
|
|
5054
|
+
const oe = te(J.columns);
|
|
5055
|
+
W += oe.left, q += oe.right;
|
|
5056
5056
|
} else
|
|
5057
|
-
|
|
5058
|
-
}), { left: W, right:
|
|
5059
|
-
}, ie = (L, W,
|
|
5057
|
+
J.frozen === "left" ? W++ : J.frozen === "right" && q++;
|
|
5058
|
+
}), { left: W, right: q };
|
|
5059
|
+
}, ie = (L, W, q, J) => {
|
|
5060
5060
|
y = 0, b = 0, w = !1;
|
|
5061
5061
|
const oe = {};
|
|
5062
|
-
let
|
|
5063
|
-
|
|
5062
|
+
let Z = De(L);
|
|
5063
|
+
Z.length === 0 && (Z = [U()]), Z = X(Z);
|
|
5064
5064
|
const ue = [], He = [], ze = [];
|
|
5065
|
-
|
|
5066
|
-
const st = le(
|
|
5067
|
-
st === "left" ? ue.push(
|
|
5065
|
+
Z.forEach((Ue) => {
|
|
5066
|
+
const st = le(Ue);
|
|
5067
|
+
st === "left" ? ue.push(Ue) : st === "right" ? He.push(Ue) : ze.push(Ue);
|
|
5068
5068
|
});
|
|
5069
|
-
const Pe =
|
|
5070
|
-
return b += Pe.left, y += we.right,
|
|
5069
|
+
const Pe = te(ue), we = te(He);
|
|
5070
|
+
return b += Pe.left, y += we.right, Z = [...ue, ...ze, ...He], W && (Z.unshift(Kt(J)), b++), q.length > 0 && (Z.push(at(q)), y++), w && (oe.editCellTrigger = "click", oe.keyboardOptions = {
|
|
5071
5071
|
copySelected: !0,
|
|
5072
5072
|
cutSelected: !0,
|
|
5073
5073
|
pasteValueToCell: !0,
|
|
5074
5074
|
selectAllOnCtrlA: !0
|
|
5075
|
-
}), { columns:
|
|
5075
|
+
}), { columns: Z, option: oe };
|
|
5076
5076
|
}, ge = () => {
|
|
5077
5077
|
const L = ie(i.columns, i.isShowNumber, i.actions);
|
|
5078
5078
|
Cn.value && b++;
|
|
@@ -5127,14 +5127,14 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5127
5127
|
width: 8
|
|
5128
5128
|
}
|
|
5129
5129
|
}), i.subColumns && i.subColumns.length > 0) {
|
|
5130
|
-
const
|
|
5131
|
-
i.subColumns,
|
|
5132
|
-
i.isSubShowNumber,
|
|
5133
|
-
i.subActions,
|
|
5134
|
-
!0
|
|
5135
|
-
), ee = {
|
|
5130
|
+
const J = {
|
|
5136
5131
|
detailTableOptions: {
|
|
5137
|
-
columns:
|
|
5132
|
+
columns: ie(
|
|
5133
|
+
i.subColumns,
|
|
5134
|
+
i.isSubShowNumber,
|
|
5135
|
+
i.subActions,
|
|
5136
|
+
!0
|
|
5137
|
+
).columns,
|
|
5138
5138
|
style: {
|
|
5139
5139
|
margin: [8, 8, 8, 0],
|
|
5140
5140
|
height: "auto"
|
|
@@ -5143,48 +5143,52 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5143
5143
|
...L.option
|
|
5144
5144
|
}
|
|
5145
5145
|
};
|
|
5146
|
-
|
|
5146
|
+
v = new dh(J), W.plugins = [v];
|
|
5147
5147
|
}
|
|
5148
5148
|
return W;
|
|
5149
|
-
},
|
|
5149
|
+
}, Re = (L) => {
|
|
5150
5150
|
if (!p.value) return;
|
|
5151
5151
|
m = bn(), vh();
|
|
5152
|
-
const
|
|
5153
|
-
W.length > 0 ?
|
|
5154
|
-
if (
|
|
5155
|
-
g.setLoadingHierarchyState(
|
|
5152
|
+
const W = ge(), q = nr();
|
|
5153
|
+
L && L.length >= 0 ? W.records = L : q.length > 0 ? W.records = q : (W.records = i.records, a("update:modelValue", i.records)), g = new Te.ListTable(p.value, W), g._getAppContext = () => o?.appContext, g._getTableProvide = () => or, i.loadChildren && g.on(Te.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (J) => {
|
|
5154
|
+
if (J.hierarchyState === Te.TYPES.HierarchyState.expand && J.originData?.children === !0) {
|
|
5155
|
+
g.setLoadingHierarchyState(J.col, J.row);
|
|
5156
5156
|
try {
|
|
5157
|
-
const
|
|
5158
|
-
i.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(
|
|
5159
|
-
} catch (
|
|
5160
|
-
console.error("Failed to load detail data:",
|
|
5157
|
+
const oe = await i.loadChildren(J.originData);
|
|
5158
|
+
i.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(oe, J.col, J.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(oe, J.col, J.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(oe, J.col, J.row);
|
|
5159
|
+
} catch (oe) {
|
|
5160
|
+
console.error("Failed to load detail data:", oe), g.setLoadingHierarchyState(J.col, J.row);
|
|
5161
5161
|
}
|
|
5162
5162
|
}
|
|
5163
|
-
}), g.on("click_cell", ({ col:
|
|
5163
|
+
}), g.on("click_cell", ({ col: J, cellType: oe }) => {
|
|
5164
5164
|
if (Cn.value) {
|
|
5165
|
-
if (
|
|
5166
|
-
const
|
|
5167
|
-
x.value =
|
|
5165
|
+
if (oe === "checkbox" && J == 0) {
|
|
5166
|
+
const Z = it();
|
|
5167
|
+
x.value = Z.length, a("selectionChanged", Z);
|
|
5168
5168
|
}
|
|
5169
5169
|
} else
|
|
5170
5170
|
setTimeout(() => {
|
|
5171
|
-
const
|
|
5172
|
-
x.value =
|
|
5171
|
+
const Z = it();
|
|
5172
|
+
x.value = Z.length, a("selectionChanged", Z);
|
|
5173
5173
|
}, 0);
|
|
5174
5174
|
}), f.value = g.getAllRowsHeight(), a("ready", g);
|
|
5175
|
-
},
|
|
5175
|
+
}, Fe = () => {
|
|
5176
5176
|
g && (g.release(), g = null);
|
|
5177
5177
|
}, Mt = () => g, tt = (L) => {
|
|
5178
|
-
if (x.value = 0, g)
|
|
5179
|
-
g.setScrollTop(0), _ = L.length
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5178
|
+
if (x.value = 0, g)
|
|
5179
|
+
if (g.setScrollTop(0), _ = L.length, i.subColumns && i.subColumns.length > 0)
|
|
5180
|
+
setTimeout(() => {
|
|
5181
|
+
Fe(), Re(L);
|
|
5182
|
+
});
|
|
5183
|
+
else {
|
|
5184
|
+
const W = bn();
|
|
5185
|
+
W !== m ? (m = W, i.subColumns && i.subColumns.length > 0 ? (Fe(), Re(L)) : We(L)) : g.setRecords(L);
|
|
5186
|
+
}
|
|
5183
5187
|
}, wn = () => g ? g.records : [];
|
|
5184
5188
|
Ct(() => {
|
|
5185
|
-
|
|
5189
|
+
Re();
|
|
5186
5190
|
}), ia(() => {
|
|
5187
|
-
|
|
5191
|
+
Fe(), N(), document.removeEventListener("wheel", pe);
|
|
5188
5192
|
});
|
|
5189
5193
|
const ve = j({
|
|
5190
5194
|
get() {
|
|
@@ -5210,39 +5214,39 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5210
5214
|
if (!Cn.value) {
|
|
5211
5215
|
const L = g.getSelectedCellInfos();
|
|
5212
5216
|
if (L && L.length > 0) {
|
|
5213
|
-
const W = L[0][0],
|
|
5214
|
-
return
|
|
5217
|
+
const W = L[0][0], q = g.getRecordIndexByCell(W.col, W.row), J = g.records[q];
|
|
5218
|
+
return J ? [J] : [];
|
|
5215
5219
|
}
|
|
5216
5220
|
return [];
|
|
5217
5221
|
}
|
|
5218
5222
|
if (g.stateManager && g.stateManager.checkedState) {
|
|
5219
5223
|
const L = g.stateManager.checkedState, W = [];
|
|
5220
|
-
return L.forEach((
|
|
5221
|
-
if (Object.values(
|
|
5222
|
-
const
|
|
5223
|
-
!isNaN(
|
|
5224
|
+
return L.forEach((q, J) => {
|
|
5225
|
+
if (Object.values(q).some((Z) => Z === !0)) {
|
|
5226
|
+
const Z = Number(J);
|
|
5227
|
+
!isNaN(Z) && g.records[Z] && W.push(g.records[Z]);
|
|
5224
5228
|
}
|
|
5225
5229
|
}), W;
|
|
5226
5230
|
}
|
|
5227
5231
|
return [];
|
|
5228
|
-
}, Wn = (L) => i.rowKey ? i.rowKey.split(",").map((
|
|
5232
|
+
}, Wn = (L) => i.rowKey ? i.rowKey.split(",").map((q) => L[q.trim()]).join("::") : "", xn = (L) => {
|
|
5229
5233
|
if (!g) return;
|
|
5230
5234
|
Cn.value || g.clearSelected();
|
|
5231
5235
|
const W = g.records;
|
|
5232
5236
|
if (i.rowKey) {
|
|
5233
|
-
const
|
|
5234
|
-
W.forEach((
|
|
5235
|
-
const
|
|
5236
|
-
Cn.value ? g.setCellCheckboxState(0, ue,
|
|
5237
|
+
const q = new Set(L.map(Wn));
|
|
5238
|
+
W.forEach((J, oe) => {
|
|
5239
|
+
const Z = q.has(Wn(J)), ue = g.getTableIndexByRecordIndex(oe);
|
|
5240
|
+
Cn.value ? g.setCellCheckboxState(0, ue, Z) : g.selectRow(ue);
|
|
5237
5241
|
});
|
|
5238
5242
|
} else
|
|
5239
5243
|
console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5240
5244
|
}, _a = (L) => {
|
|
5241
|
-
|
|
5242
|
-
},
|
|
5245
|
+
We(), a("rowChange", L);
|
|
5246
|
+
}, We = (L) => {
|
|
5243
5247
|
if (!g) return;
|
|
5244
|
-
const W = it(),
|
|
5245
|
-
|
|
5248
|
+
const W = it(), q = ge();
|
|
5249
|
+
q.records = L || g.records, g.updateOption(q, {
|
|
5246
5250
|
clearColWidthCache: !1,
|
|
5247
5251
|
clearRowHeightCache: !1
|
|
5248
5252
|
}), i.heightMode === "auto" && (f.value = g.getAllRowsHeight()), L ? x.value = 0 : (x.value = W.length, W.length > 0 && xn(W));
|
|
@@ -5261,18 +5265,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5261
5265
|
);
|
|
5262
5266
|
const $u = j(() => {
|
|
5263
5267
|
const L = (W) => {
|
|
5264
|
-
const
|
|
5265
|
-
return W.forEach((
|
|
5266
|
-
|
|
5267
|
-
}),
|
|
5268
|
+
const q = [];
|
|
5269
|
+
return W.forEach((J) => {
|
|
5270
|
+
J.children && J.children.length > 0 ? q.push(...L(J.children)) : q.push(J);
|
|
5271
|
+
}), q;
|
|
5268
5272
|
};
|
|
5269
5273
|
return L(i.columns);
|
|
5270
5274
|
}), zu = () => {
|
|
5271
5275
|
const L = {};
|
|
5272
5276
|
L._i = An(), $u.value.forEach((W) => {
|
|
5273
|
-
const
|
|
5274
|
-
|
|
5275
|
-
}), g && (g.addRecord(L), i.heightMode === "auto" &&
|
|
5277
|
+
const q = W.config?.valueRowKey || W.id || "";
|
|
5278
|
+
q && (L[q] = hn(W.config?.defaultValue));
|
|
5279
|
+
}), g && (g.addRecord(L), i.heightMode === "auto" && We(), g.scrollToCell({ col: 0, row: g.records.length })), a("change", {
|
|
5276
5280
|
id: i.id,
|
|
5277
5281
|
value: L,
|
|
5278
5282
|
data: L,
|
|
@@ -5288,16 +5292,16 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5288
5292
|
cancelButtonText: "取消",
|
|
5289
5293
|
type: "warning"
|
|
5290
5294
|
}).then(() => {
|
|
5291
|
-
const W = g.records,
|
|
5292
|
-
(oe) => !
|
|
5295
|
+
const W = g.records, q = new Set(L.map((oe) => oe._i)), J = W.filter(
|
|
5296
|
+
(oe) => !q.has(oe._i)
|
|
5293
5297
|
);
|
|
5294
|
-
|
|
5298
|
+
We(J), a("update:modelValue", J), L.forEach((oe) => {
|
|
5295
5299
|
a("change", {
|
|
5296
5300
|
id: i.id,
|
|
5297
5301
|
value: oe,
|
|
5298
5302
|
data: oe,
|
|
5299
5303
|
formData: l,
|
|
5300
|
-
tableData:
|
|
5304
|
+
tableData: J,
|
|
5301
5305
|
type: "delete"
|
|
5302
5306
|
});
|
|
5303
5307
|
}), x.value = 0;
|
|
@@ -5307,7 +5311,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5307
5311
|
ot(
|
|
5308
5312
|
() => i.columns,
|
|
5309
5313
|
() => {
|
|
5310
|
-
|
|
5314
|
+
We();
|
|
5311
5315
|
}
|
|
5312
5316
|
), ot(
|
|
5313
5317
|
() => [
|
|
@@ -5329,12 +5333,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5329
5333
|
Si.value
|
|
5330
5334
|
],
|
|
5331
5335
|
() => {
|
|
5332
|
-
|
|
5336
|
+
We();
|
|
5333
5337
|
}
|
|
5334
5338
|
), ot(
|
|
5335
5339
|
() => i.actions,
|
|
5336
5340
|
() => {
|
|
5337
|
-
|
|
5341
|
+
We();
|
|
5338
5342
|
},
|
|
5339
5343
|
{ deep: !0 }
|
|
5340
5344
|
);
|
|
@@ -5349,9 +5353,9 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5349
5353
|
getSelection: it,
|
|
5350
5354
|
setSelection: xn
|
|
5351
5355
|
}), (L, W) => {
|
|
5352
|
-
const
|
|
5356
|
+
const q = B("j-button"), J = B("el-space"), oe = B("el-pagination");
|
|
5353
5357
|
return C(), O("div", {
|
|
5354
|
-
class:
|
|
5358
|
+
class: Me(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
5355
5359
|
style: Ce(d.value)
|
|
5356
5360
|
}, [
|
|
5357
5361
|
F("div", {
|
|
@@ -5361,21 +5365,21 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5361
5365
|
F("div", {
|
|
5362
5366
|
ref_key: "tableContainer",
|
|
5363
5367
|
ref: p,
|
|
5364
|
-
class:
|
|
5368
|
+
class: Me("j-block")
|
|
5365
5369
|
}, null, 512)
|
|
5366
5370
|
], 4),
|
|
5367
5371
|
F("div", mh, [
|
|
5368
5372
|
e.isPage || !Lu.value && (tr.value || Si.value) ? (C(), O("div", yh, [
|
|
5369
|
-
J
|
|
5373
|
+
K(J, null, {
|
|
5370
5374
|
default: V(() => [
|
|
5371
|
-
tr.value ? (C(), H(
|
|
5375
|
+
tr.value ? (C(), H(q, {
|
|
5372
5376
|
key: 0,
|
|
5373
5377
|
type: "link",
|
|
5374
5378
|
label: Bu.value,
|
|
5375
5379
|
icon: "mdi:add",
|
|
5376
5380
|
onClick: zu
|
|
5377
|
-
}, null, 8, ["label"])) :
|
|
5378
|
-
Si.value ? (C(), H(
|
|
5381
|
+
}, null, 8, ["label"])) : Y("", !0),
|
|
5382
|
+
Si.value ? (C(), H(q, {
|
|
5379
5383
|
key: 1,
|
|
5380
5384
|
type: "link",
|
|
5381
5385
|
label: "删除",
|
|
@@ -5383,7 +5387,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5383
5387
|
danger: "",
|
|
5384
5388
|
disabled: !Du.value,
|
|
5385
5389
|
onClick: Fu
|
|
5386
|
-
}, null, 8, ["disabled"])) :
|
|
5390
|
+
}, null, 8, ["disabled"])) : Y("", !0)
|
|
5387
5391
|
]),
|
|
5388
5392
|
_: 1
|
|
5389
5393
|
}),
|
|
@@ -5391,15 +5395,15 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5391
5395
|
e.isPage ? (C(), H(oe, {
|
|
5392
5396
|
key: 0,
|
|
5393
5397
|
"current-page": ve.value,
|
|
5394
|
-
"onUpdate:currentPage": W[0] || (W[0] = (
|
|
5398
|
+
"onUpdate:currentPage": W[0] || (W[0] = (Z) => ve.value = Z),
|
|
5395
5399
|
"page-size": St.value,
|
|
5396
|
-
"onUpdate:pageSize": W[1] || (W[1] = (
|
|
5400
|
+
"onUpdate:pageSize": W[1] || (W[1] = (Z) => St.value = Z),
|
|
5397
5401
|
"page-sizes": e.pageSizes || [100, 200, 500, 1e3],
|
|
5398
5402
|
total: e.pageTotal,
|
|
5399
5403
|
layout: "total, prev, pager, next,sizes",
|
|
5400
5404
|
onChange: ce
|
|
5401
|
-
}, null, 8, ["current-page", "page-size", "page-sizes", "total"])) :
|
|
5402
|
-
])) :
|
|
5405
|
+
}, null, 8, ["current-page", "page-size", "page-sizes", "total"])) : Y("", !0)
|
|
5406
|
+
])) : Y("", !0)
|
|
5403
5407
|
]),
|
|
5404
5408
|
E.value ? (C(), O("div", {
|
|
5405
5409
|
key: 0,
|
|
@@ -5408,15 +5412,15 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5408
5412
|
onMouseenter: re,
|
|
5409
5413
|
onMouseleave: se
|
|
5410
5414
|
}, [
|
|
5411
|
-
(C(!0), O(ye, null, Ee(T.value, (
|
|
5412
|
-
key:
|
|
5415
|
+
(C(!0), O(ye, null, Ee(T.value, (Z) => (C(), O("div", {
|
|
5416
|
+
key: Z.id,
|
|
5413
5417
|
class: "j-table-dropdown-item",
|
|
5414
5418
|
style: Ce({
|
|
5415
|
-
color:
|
|
5419
|
+
color: Z.config?.isDanger ? "var(--j-color-danger)" : "var(--j-color-primary)"
|
|
5416
5420
|
}),
|
|
5417
|
-
onClick: (ue) => Be(
|
|
5418
|
-
}, be(
|
|
5419
|
-
], 36)) :
|
|
5421
|
+
onClick: (ue) => Be(Z)
|
|
5422
|
+
}, be(Z.label), 13, bh))), 128))
|
|
5423
|
+
], 36)) : Y("", !0)
|
|
5420
5424
|
], 6);
|
|
5421
5425
|
};
|
|
5422
5426
|
}
|
|
@@ -5607,27 +5611,27 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5607
5611
|
}), g = A(0), v = A(), y = A(48), b = A(0), w = A(0);
|
|
5608
5612
|
ot(
|
|
5609
5613
|
() => o.visible,
|
|
5610
|
-
(
|
|
5611
|
-
g.value = 1, g.value = 0, l.value =
|
|
5614
|
+
(ee) => {
|
|
5615
|
+
g.value = 1, g.value = 0, l.value = ee, ee === !0 && o.zoomControls && At(() => {
|
|
5612
5616
|
typeof document < "u" && (v.value = document.querySelector(".j-dialog"), v.value && (v.value.onmousemove = Be));
|
|
5613
5617
|
});
|
|
5614
5618
|
},
|
|
5615
5619
|
{ immediate: !0 }
|
|
5616
5620
|
);
|
|
5617
5621
|
const x = j(() => {
|
|
5618
|
-
let
|
|
5619
|
-
return typeof window < "u" &&
|
|
5622
|
+
let ee = o.height + g.value;
|
|
5623
|
+
return typeof window < "u" && ee + 40 > window.innerHeight && (ee = window.innerHeight - 32 - 40), ee;
|
|
5620
5624
|
}), _ = j(() => {
|
|
5621
|
-
let
|
|
5622
|
-
return typeof document < "u" && document.body && (
|
|
5625
|
+
let ee = 0 + g.value;
|
|
5626
|
+
return typeof document < "u" && document.body && (ee = (document.body.clientWidth - E.value) / 2), ee;
|
|
5623
5627
|
}), m = j(() => {
|
|
5624
|
-
let
|
|
5625
|
-
return typeof window < "u" && (
|
|
5628
|
+
let ee = 0 + g.value;
|
|
5629
|
+
return typeof window < "u" && (ee = (window.innerHeight - x.value - 40) / 2), ee;
|
|
5626
5630
|
}), E = j(() => {
|
|
5627
|
-
let
|
|
5628
|
-
return
|
|
5629
|
-
}), S = (
|
|
5630
|
-
s.value =
|
|
5631
|
+
let ee = 0 + g.value;
|
|
5632
|
+
return ee = o.width, typeof document < "u" && document.body && ee > document.body.clientWidth && (ee = document.body.clientWidth - 32), ee;
|
|
5633
|
+
}), S = (ee) => {
|
|
5634
|
+
s.value = ee || "保存数据中...", r.value = !0;
|
|
5631
5635
|
}, T = () => {
|
|
5632
5636
|
r.value = !1;
|
|
5633
5637
|
}, P = () => {
|
|
@@ -5642,8 +5646,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5642
5646
|
get() {
|
|
5643
5647
|
return h.value !== -1 ? h.value : o.stepActive;
|
|
5644
5648
|
},
|
|
5645
|
-
set(
|
|
5646
|
-
h.value =
|
|
5649
|
+
set(ee) {
|
|
5650
|
+
h.value = ee, i("update:stepActive", ee);
|
|
5647
5651
|
}
|
|
5648
5652
|
}), $ = () => {
|
|
5649
5653
|
z.value > 0 && z.value--, At(() => {
|
|
@@ -5655,8 +5659,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5655
5659
|
}));
|
|
5656
5660
|
}, k = async () => {
|
|
5657
5661
|
if (c.value = !0, o.validateSteps) {
|
|
5658
|
-
const
|
|
5659
|
-
return c.value = !1,
|
|
5662
|
+
const ee = await o.validateSteps(o.stepActive, S, T);
|
|
5663
|
+
return c.value = !1, ee;
|
|
5660
5664
|
}
|
|
5661
5665
|
return c.value = !1, !0;
|
|
5662
5666
|
}, I = () => {
|
|
@@ -5671,25 +5675,25 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5671
5675
|
u.value = !1, d.value = !1;
|
|
5672
5676
|
break;
|
|
5673
5677
|
}
|
|
5674
|
-
}, N = j(() => o.steps.map((
|
|
5675
|
-
o.autoHeight || (p.pageX =
|
|
5678
|
+
}, N = j(() => o.steps.map((ee) => ({ title: ee, disabled: !0 }))), re = function(ee) {
|
|
5679
|
+
o.autoHeight || (p.pageX = ee.pageX, p.pageY = ee.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = se, document.onmousemove = pe));
|
|
5676
5680
|
}, se = () => {
|
|
5677
5681
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
5678
|
-
}, pe = (
|
|
5682
|
+
}, pe = (ee) => {
|
|
5679
5683
|
if (p.isMove) {
|
|
5680
|
-
const $e =
|
|
5681
|
-
let Se = p._left + $e, Qe = p._top +
|
|
5684
|
+
const $e = ee.pageX - p.pageX, Ne = ee.pageY - p.pageY;
|
|
5685
|
+
let Se = p._left + $e, Qe = p._top + Ne;
|
|
5682
5686
|
Se + _.value < 0 && (Se = -_.value), typeof document < "u" && document.body && (b.value ? Se + b.value + _.value > document.body.clientWidth && (Se = document.body.clientWidth - b.value - _.value) : Se + E.value + _.value > document.body.clientWidth && (Se = document.body.clientWidth - E.value - _.value)), Qe + m.value < 0 && (Qe = -m.value), typeof window < "u" && (w.value ? Qe + w.value + m.value + 40 > window.innerHeight && (Qe = window.innerHeight - w.value - m.value - 40) : Qe + x.value + m.value + 40 > window.innerHeight && (Qe = window.innerHeight - x.value - m.value - 40)), p.left = Se, p.top = Qe;
|
|
5683
5687
|
}
|
|
5684
|
-
}, Be = (
|
|
5685
|
-
const $e = v.value.offsetLeft,
|
|
5686
|
-
if (
|
|
5688
|
+
}, Be = (ee) => {
|
|
5689
|
+
const $e = v.value.offsetLeft, Ne = v.value.offsetTop, Se = v.value.clientWidth, Qe = v.value.clientHeight, lt = Qe - y.value, Q = v.value.scrollTop;
|
|
5690
|
+
if (ee.clientX > $e + Se - 10 && Q + ee.clientY > Ne + Qe - 10 || Q + ee.clientY < Ne + 5 && $e + 10 > ee.clientX)
|
|
5687
5691
|
v.value.style.cursor = "se-resize";
|
|
5688
|
-
else if ($e + 10 >
|
|
5692
|
+
else if ($e + 10 > ee.clientX && Q + ee.clientY > Ne + Qe - 10 || ee.clientX > $e + Se - 10 && Q + ee.clientY < Ne + 5)
|
|
5689
5693
|
v.value.style.cursor = "sw-resize";
|
|
5690
|
-
else if (
|
|
5694
|
+
else if (ee.clientX > $e + Se - 10 || $e + 10 > ee.clientX)
|
|
5691
5695
|
v.value.style.cursor = "w-resize";
|
|
5692
|
-
else if (
|
|
5696
|
+
else if (Q + ee.clientY > Ne + Qe - 10 || Q + ee.clientY < Ne + 5)
|
|
5693
5697
|
v.value.style.cursor = "s-resize";
|
|
5694
5698
|
else {
|
|
5695
5699
|
v.value.style.cursor = "default", v.value.onmousedown = null;
|
|
@@ -5698,20 +5702,20 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5698
5702
|
v.value.onmousedown = (fe) => {
|
|
5699
5703
|
const { clientX: ke } = fe, { clientY: et } = fe, ft = p.left + _.value, Lt = p.top + m.value;
|
|
5700
5704
|
p._left = p.left, p._top = p.top, w.value || (w.value = lt), b.value || (b.value = Se), ke > ft + 10 && ke < ft + Se - 10 && et > Lt + 5 && et < Lt + 47 || (typeof document < "u" && (document.onmousemove = function(De) {
|
|
5701
|
-
De.preventDefault(), ke > ft && ke < ft + 10 && (ke > De.clientX && (b.value = Se + (ke - De.clientX), p.left = p._left - (ke - De.clientX)), ke < De.clientX && b.value > o.minWidth && (b.value = Se - (De.clientX - ke), p.left = p._left + De.clientX - ke)), ke > ft + Se - 10 && ke < ft + Se && (ke > De.clientX && b.value > o.minWidth && (b.value = Se - (ke - De.clientX)), ke < De.clientX && typeof document < "u" && document.body && _.value + p.left + b.value < document.body.clientWidth && (b.value = Se + (De.clientX - ke))), et > Lt && et < Lt + 5 && (et > De.clientY && (w.value = lt + et - De.clientY, p.top = p._top - (et - De.clientY)), et < De.clientY && w.value > o.minHeight && (w.value = lt - (De.clientY - et), p.top = p._top + De.clientY - et)),
|
|
5705
|
+
De.preventDefault(), ke > ft && ke < ft + 10 && (ke > De.clientX && (b.value = Se + (ke - De.clientX), p.left = p._left - (ke - De.clientX)), ke < De.clientX && b.value > o.minWidth && (b.value = Se - (De.clientX - ke), p.left = p._left + De.clientX - ke)), ke > ft + Se - 10 && ke < ft + Se && (ke > De.clientX && b.value > o.minWidth && (b.value = Se - (ke - De.clientX)), ke < De.clientX && typeof document < "u" && document.body && _.value + p.left + b.value < document.body.clientWidth && (b.value = Se + (De.clientX - ke))), et > Lt && et < Lt + 5 && (et > De.clientY && (w.value = lt + et - De.clientY, p.top = p._top - (et - De.clientY)), et < De.clientY && w.value > o.minHeight && (w.value = lt - (De.clientY - et), p.top = p._top + De.clientY - et)), Q + et > Lt + lt + 38 && Q + et < Lt + lt + 48 && (et > De.clientY && w.value > o.minHeight && (w.value = lt - (et - De.clientY)), et < De.clientY && typeof window < "u" && m.value + p.top + w.value + 48 < window.innerHeight && (w.value = lt + De.clientY - et));
|
|
5702
5706
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
5703
5707
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
5704
5708
|
}));
|
|
5705
5709
|
};
|
|
5706
|
-
}, at = async (
|
|
5707
|
-
|
|
5710
|
+
}, at = async (ee) => {
|
|
5711
|
+
ee.click && await ee.click();
|
|
5708
5712
|
};
|
|
5709
5713
|
return t({
|
|
5710
5714
|
showLoading: S,
|
|
5711
5715
|
hideLoading: T
|
|
5712
|
-
}), (
|
|
5713
|
-
const
|
|
5714
|
-
return C(), H(
|
|
5716
|
+
}), (ee, $e) => {
|
|
5717
|
+
const Ne = B("j-button"), Se = B("el-space"), Qe = B("el-step"), lt = B("el-steps"), Q = B("el-dialog");
|
|
5718
|
+
return C(), H(Q, {
|
|
5715
5719
|
modelValue: l.value,
|
|
5716
5720
|
"onUpdate:modelValue": $e[0] || ($e[0] = (fe) => l.value = fe),
|
|
5717
5721
|
class: "j-dialog",
|
|
@@ -5738,30 +5742,30 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5738
5742
|
}, [
|
|
5739
5743
|
F("div", {
|
|
5740
5744
|
class: "j-dialog-header-left",
|
|
5741
|
-
title:
|
|
5745
|
+
title: G(a)(e.title || ""),
|
|
5742
5746
|
style: Ce({ cursor: e.autoHeight ? "" : "move" })
|
|
5743
5747
|
}, [
|
|
5744
|
-
F("span", null, be(
|
|
5748
|
+
F("span", null, be(G(a)(e.title || "")), 1),
|
|
5745
5749
|
e.subtitle ? (C(), O("span", Sh, [
|
|
5746
5750
|
(C(), H(Ro(e.subtitle())))
|
|
5747
|
-
])) :
|
|
5751
|
+
])) : Y("", !0)
|
|
5748
5752
|
], 12, Ch),
|
|
5749
5753
|
e.showCloseBtn ? (C(), H(Se, {
|
|
5750
5754
|
key: 0,
|
|
5751
5755
|
size: 0
|
|
5752
5756
|
}, {
|
|
5753
5757
|
default: V(() => [
|
|
5754
|
-
|
|
5758
|
+
K(Ne, {
|
|
5755
5759
|
type: "text",
|
|
5756
5760
|
icon: "mdi:close",
|
|
5757
5761
|
onClick: P
|
|
5758
5762
|
})
|
|
5759
5763
|
]),
|
|
5760
5764
|
_: 1
|
|
5761
|
-
})) :
|
|
5765
|
+
})) : Y("", !0)
|
|
5762
5766
|
], 32),
|
|
5763
5767
|
F("div", {
|
|
5764
|
-
class:
|
|
5768
|
+
class: Me([
|
|
5765
5769
|
"j-dialog-window",
|
|
5766
5770
|
{ "j-dialog-window-hasBtns": e.hasBtns },
|
|
5767
5771
|
{ "j-dialog-window-hasSteps": e.isStep }
|
|
@@ -5774,7 +5778,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5774
5778
|
F("div", {
|
|
5775
5779
|
style: Ce({ maxWidth: `${200 * N.value.length}px`, width: "100%" })
|
|
5776
5780
|
}, [
|
|
5777
|
-
|
|
5781
|
+
K(lt, {
|
|
5778
5782
|
simple: "",
|
|
5779
5783
|
active: z.value,
|
|
5780
5784
|
space: 160,
|
|
@@ -5783,57 +5787,57 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
5783
5787
|
default: V(() => [
|
|
5784
5788
|
(C(!0), O(ye, null, Ee(N.value, (fe, ke) => (C(), H(Qe, {
|
|
5785
5789
|
key: ke,
|
|
5786
|
-
title:
|
|
5790
|
+
title: G(a)(fe.title)
|
|
5787
5791
|
}, null, 8, ["title"]))), 128))
|
|
5788
5792
|
]),
|
|
5789
5793
|
_: 1
|
|
5790
5794
|
}, 8, ["active"])
|
|
5791
5795
|
], 4)
|
|
5792
|
-
])) :
|
|
5796
|
+
])) : Y("", !0),
|
|
5793
5797
|
F("div", Eh, [
|
|
5794
|
-
Ie(
|
|
5798
|
+
Ie(ee.$slots, "default")
|
|
5795
5799
|
]),
|
|
5796
5800
|
e.hasBtns ? (C(), O("div", kh, [
|
|
5797
|
-
|
|
5801
|
+
K(Se, { size: 8 }, {
|
|
5798
5802
|
default: V(() => [
|
|
5799
|
-
e.isStep ? (C(), H(
|
|
5803
|
+
e.isStep ? (C(), H(Ne, {
|
|
5800
5804
|
key: 0,
|
|
5801
5805
|
size: "mini",
|
|
5802
5806
|
disabled: u.value,
|
|
5803
|
-
label:
|
|
5807
|
+
label: G(a)("上一步"),
|
|
5804
5808
|
onClick: $
|
|
5805
|
-
}, null, 8, ["disabled", "label"])) :
|
|
5806
|
-
e.isStep ? (C(), H(
|
|
5809
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0),
|
|
5810
|
+
e.isStep ? (C(), H(Ne, {
|
|
5807
5811
|
key: 1,
|
|
5808
5812
|
size: "mini",
|
|
5809
5813
|
disabled: d.value,
|
|
5810
5814
|
loading: c.value,
|
|
5811
|
-
label:
|
|
5815
|
+
label: G(a)("下一步"),
|
|
5812
5816
|
onClick: M
|
|
5813
|
-
}, null, 8, ["disabled", "loading", "label"])) :
|
|
5814
|
-
!e.isStep && e.showCloseBtn ? (C(), H(
|
|
5817
|
+
}, null, 8, ["disabled", "loading", "label"])) : Y("", !0),
|
|
5818
|
+
!e.isStep && e.showCloseBtn ? (C(), H(Ne, {
|
|
5815
5819
|
key: 2,
|
|
5816
5820
|
size: "mini",
|
|
5817
|
-
label:
|
|
5821
|
+
label: G(a)("取消"),
|
|
5818
5822
|
onClick: P
|
|
5819
|
-
}, null, 8, ["label"])) :
|
|
5820
|
-
(C(!0), O(ye, null, Ee(e.buttons, (fe) => (C(), H(
|
|
5823
|
+
}, null, 8, ["label"])) : Y("", !0),
|
|
5824
|
+
(C(!0), O(ye, null, Ee(e.buttons, (fe) => (C(), H(Ne, je({ ref_for: !0 }, fe.config, {
|
|
5821
5825
|
key: fe.id,
|
|
5822
5826
|
label: fe.label,
|
|
5823
5827
|
onClick: (ke) => at(fe)
|
|
5824
5828
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
5825
|
-
e.hasSaveBtn ? (C(), H(
|
|
5829
|
+
e.hasSaveBtn ? (C(), H(Ne, {
|
|
5826
5830
|
key: 3,
|
|
5827
5831
|
size: "mini",
|
|
5828
5832
|
type: "primary",
|
|
5829
5833
|
disabled: f.value && e.isStep,
|
|
5830
|
-
label:
|
|
5834
|
+
label: G(a)(e.btnText),
|
|
5831
5835
|
onClick: R
|
|
5832
|
-
}, null, 8, ["disabled", "label"])) :
|
|
5836
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0)
|
|
5833
5837
|
]),
|
|
5834
5838
|
_: 1
|
|
5835
5839
|
})
|
|
5836
|
-
])) :
|
|
5840
|
+
])) : Y("", !0)
|
|
5837
5841
|
], 6)
|
|
5838
5842
|
]),
|
|
5839
5843
|
_: 3
|
|
@@ -6025,18 +6029,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6025
6029
|
default: V(() => [
|
|
6026
6030
|
dn((C(), O("div", {
|
|
6027
6031
|
class: "j-block j-dialog-full-window",
|
|
6028
|
-
"element-loading-text":
|
|
6032
|
+
"element-loading-text": G(l)(c.value)
|
|
6029
6033
|
}, [
|
|
6030
6034
|
F("div", Ph, [
|
|
6031
6035
|
F("div", Ah, [
|
|
6032
|
-
|
|
6036
|
+
G(a) ? (C(), O("img", {
|
|
6033
6037
|
key: 0,
|
|
6034
6038
|
class: "j-dialog-full-header-logo",
|
|
6035
|
-
src:
|
|
6036
|
-
}, null, 8, jh)) :
|
|
6037
|
-
F("span", Hh, be(
|
|
6039
|
+
src: G(a)
|
|
6040
|
+
}, null, 8, jh)) : Y("", !0),
|
|
6041
|
+
F("span", Hh, be(G(l)(e.title)), 1),
|
|
6038
6042
|
F("span", Oh, [
|
|
6039
|
-
e.subtitle ? (C(), H(Ro(e.subtitle()), { key: 0 })) :
|
|
6043
|
+
e.subtitle ? (C(), H(Ro(e.subtitle()), { key: 0 })) : Y("", !0)
|
|
6040
6044
|
])
|
|
6041
6045
|
]),
|
|
6042
6046
|
F("div", {
|
|
@@ -6053,14 +6057,14 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6053
6057
|
default: V(() => [
|
|
6054
6058
|
(C(!0), O(ye, null, Ee(T.value, (se, pe) => (C(), H(z, {
|
|
6055
6059
|
key: pe,
|
|
6056
|
-
title:
|
|
6060
|
+
title: G(l)(se.title)
|
|
6057
6061
|
}, null, 8, ["title"]))), 128))
|
|
6058
6062
|
]),
|
|
6059
6063
|
_: 1
|
|
6060
|
-
}, 8, ["active"])) :
|
|
6064
|
+
}, 8, ["active"])) : Y("", !0)
|
|
6061
6065
|
], 4),
|
|
6062
6066
|
F("div", Ih, [
|
|
6063
|
-
|
|
6067
|
+
K(k, { size: 0 }, {
|
|
6064
6068
|
default: V(() => [
|
|
6065
6069
|
e.hasBtns ? (C(), H(k, { key: 0 }, {
|
|
6066
6070
|
default: V(() => [
|
|
@@ -6068,17 +6072,17 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6068
6072
|
key: 0,
|
|
6069
6073
|
size: "mini",
|
|
6070
6074
|
disabled: d.value,
|
|
6071
|
-
label:
|
|
6075
|
+
label: G(l)("上一步"),
|
|
6072
6076
|
onClick: _
|
|
6073
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6077
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0),
|
|
6074
6078
|
e.isStep ? (C(), H(M, {
|
|
6075
6079
|
key: 1,
|
|
6076
6080
|
size: "mini",
|
|
6077
6081
|
disabled: f.value,
|
|
6078
6082
|
loading: u.value,
|
|
6079
|
-
label:
|
|
6083
|
+
label: G(l)("下一步"),
|
|
6080
6084
|
onClick: m
|
|
6081
|
-
}, null, 8, ["disabled", "loading", "label"])) :
|
|
6085
|
+
}, null, 8, ["disabled", "loading", "label"])) : Y("", !0),
|
|
6082
6086
|
(C(!0), O(ye, null, Ee(e.buttons, (se) => (C(), O(ye, {
|
|
6083
6087
|
key: se.id
|
|
6084
6088
|
}, [
|
|
@@ -6088,30 +6092,30 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6088
6092
|
}, se.config, {
|
|
6089
6093
|
label: se.label,
|
|
6090
6094
|
onClick: (pe) => P(se)
|
|
6091
|
-
}), null, 16, ["label", "onClick"])) :
|
|
6095
|
+
}), null, 16, ["label", "onClick"])) : Y("", !0)
|
|
6092
6096
|
], 64))), 128)),
|
|
6093
6097
|
e.hasSaveBtn ? (C(), H(M, {
|
|
6094
6098
|
key: 2,
|
|
6095
6099
|
size: "mini",
|
|
6096
6100
|
type: "primary",
|
|
6097
6101
|
disabled: h.value && e.isStep,
|
|
6098
|
-
label:
|
|
6102
|
+
label: G(l)(e.btnText),
|
|
6099
6103
|
onClick: y
|
|
6100
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6104
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0)
|
|
6101
6105
|
]),
|
|
6102
6106
|
_: 1
|
|
6103
|
-
})) :
|
|
6107
|
+
})) : Y("", !0),
|
|
6104
6108
|
e.showCloseBtn && e.hasBtns ? (C(), H(I, {
|
|
6105
6109
|
key: 1,
|
|
6106
6110
|
type: "vertical",
|
|
6107
6111
|
style: { margin: "0 8px" }
|
|
6108
|
-
})) :
|
|
6112
|
+
})) : Y("", !0),
|
|
6109
6113
|
e.showCloseBtn ? (C(), H(M, {
|
|
6110
6114
|
key: 2,
|
|
6111
6115
|
type: "text",
|
|
6112
6116
|
icon: "mdi:close",
|
|
6113
6117
|
onClick: v
|
|
6114
|
-
})) :
|
|
6118
|
+
})) : Y("", !0)
|
|
6115
6119
|
]),
|
|
6116
6120
|
_: 1
|
|
6117
6121
|
})
|
|
@@ -6359,7 +6363,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6359
6363
|
}, {
|
|
6360
6364
|
default: V(() => [
|
|
6361
6365
|
dn((C(), O("div", {
|
|
6362
|
-
class:
|
|
6366
|
+
class: Me(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
6363
6367
|
"element-loading-text": r.value
|
|
6364
6368
|
}, [
|
|
6365
6369
|
F("div", {
|
|
@@ -6368,34 +6372,34 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6368
6372
|
"padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0"
|
|
6369
6373
|
})
|
|
6370
6374
|
}, [
|
|
6371
|
-
|
|
6375
|
+
K(z, { style: { position: "absolute", top: "-200px" } }),
|
|
6372
6376
|
F("div", Dh, [
|
|
6373
6377
|
Ie(R.$slots, "default")
|
|
6374
6378
|
]),
|
|
6375
6379
|
e.hasBtns ? (C(), O("div", Fh, [
|
|
6376
|
-
|
|
6380
|
+
K(M, { size: 8 }, {
|
|
6377
6381
|
default: V(() => [
|
|
6378
6382
|
e.isStep ? (C(), H($, {
|
|
6379
6383
|
key: 0,
|
|
6380
6384
|
size: "mini",
|
|
6381
6385
|
disabled: y.value,
|
|
6382
|
-
label:
|
|
6386
|
+
label: G(i)("上一步"),
|
|
6383
6387
|
onClick: m
|
|
6384
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6388
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0),
|
|
6385
6389
|
e.isStep ? (C(), H($, {
|
|
6386
6390
|
key: 1,
|
|
6387
6391
|
size: "mini",
|
|
6388
6392
|
disabled: b.value,
|
|
6389
6393
|
loading: v.value,
|
|
6390
|
-
label:
|
|
6394
|
+
label: G(i)("下一步"),
|
|
6391
6395
|
onClick: E
|
|
6392
|
-
}, null, 8, ["disabled", "loading", "label"])) :
|
|
6396
|
+
}, null, 8, ["disabled", "loading", "label"])) : Y("", !0),
|
|
6393
6397
|
!e.isStep && e.showCloseBtn ? (C(), H($, {
|
|
6394
6398
|
key: 2,
|
|
6395
6399
|
size: "mini",
|
|
6396
|
-
label:
|
|
6400
|
+
label: G(i)("取消"),
|
|
6397
6401
|
onClick: p
|
|
6398
|
-
}, null, 8, ["label"])) :
|
|
6402
|
+
}, null, 8, ["label"])) : Y("", !0),
|
|
6399
6403
|
(C(!0), O(ye, null, Ee(e.buttons, (se) => (C(), H($, je({
|
|
6400
6404
|
key: se.id
|
|
6401
6405
|
}, { ref_for: !0 }, se.config, {
|
|
@@ -6407,34 +6411,34 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6407
6411
|
size: "mini",
|
|
6408
6412
|
type: "primary",
|
|
6409
6413
|
disabled: w.value && e.isStep,
|
|
6410
|
-
label:
|
|
6414
|
+
label: G(i)(e.btnText),
|
|
6411
6415
|
onClick: h
|
|
6412
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6416
|
+
}, null, 8, ["disabled", "label"])) : Y("", !0)
|
|
6413
6417
|
]),
|
|
6414
6418
|
_: 1
|
|
6415
6419
|
})
|
|
6416
|
-
])) :
|
|
6420
|
+
])) : Y("", !0)
|
|
6417
6421
|
], 4),
|
|
6418
6422
|
F("div", Vh, [
|
|
6419
6423
|
F("div", Nh, [
|
|
6420
|
-
F("span", null, be(
|
|
6424
|
+
F("span", null, be(G(i)(e.title)), 1),
|
|
6421
6425
|
F("span", Wh, [
|
|
6422
|
-
e.subtitle ? (C(), H(Ro(e.subtitle()), { key: 0 })) :
|
|
6426
|
+
e.subtitle ? (C(), H(Ro(e.subtitle()), { key: 0 })) : Y("", !0)
|
|
6423
6427
|
])
|
|
6424
6428
|
]),
|
|
6425
6429
|
e.showCloseBtn ? (C(), O("div", Uh, [
|
|
6426
|
-
|
|
6430
|
+
K($, {
|
|
6427
6431
|
type: "text",
|
|
6428
6432
|
icon: "mdi:close",
|
|
6429
6433
|
onClick: p
|
|
6430
6434
|
})
|
|
6431
|
-
])) :
|
|
6435
|
+
])) : Y("", !0)
|
|
6432
6436
|
]),
|
|
6433
6437
|
e.isStep ? (C(), O("div", Yh, [
|
|
6434
6438
|
F("div", {
|
|
6435
6439
|
style: Ce({ maxWidth: `${200 * P.value.length}px`, width: "100%" })
|
|
6436
6440
|
}, [
|
|
6437
|
-
|
|
6441
|
+
K(I, {
|
|
6438
6442
|
simple: "",
|
|
6439
6443
|
active: _.value,
|
|
6440
6444
|
space: 160,
|
|
@@ -6443,13 +6447,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6443
6447
|
default: V(() => [
|
|
6444
6448
|
(C(!0), O(ye, null, Ee(P.value, (se, pe) => (C(), H(k, {
|
|
6445
6449
|
key: pe,
|
|
6446
|
-
title:
|
|
6450
|
+
title: G(i)(se.title)
|
|
6447
6451
|
}, null, 8, ["title"]))), 128))
|
|
6448
6452
|
]),
|
|
6449
6453
|
_: 1
|
|
6450
6454
|
}, 8, ["active"])
|
|
6451
6455
|
], 4)
|
|
6452
|
-
])) :
|
|
6456
|
+
])) : Y("", !0)
|
|
6453
6457
|
], 10, zh)), [
|
|
6454
6458
|
[re, l.value]
|
|
6455
6459
|
])
|
|
@@ -6710,7 +6714,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6710
6714
|
onKeydown: $a(kt(s, ["stop"]), ["enter"])
|
|
6711
6715
|
}, {
|
|
6712
6716
|
prefix: V(() => [
|
|
6713
|
-
|
|
6717
|
+
K(p, null, {
|
|
6714
6718
|
default: V(() => [
|
|
6715
6719
|
(C(!0), O(ye, null, Ee(a.value, (v, y) => (C(), H(h, {
|
|
6716
6720
|
key: y,
|
|
@@ -6898,7 +6902,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6898
6902
|
return (n, o) => {
|
|
6899
6903
|
const i = B("j-icon"), a = B("el-text"), l = B("j-button"), r = B("el-progress"), s = B("el-link");
|
|
6900
6904
|
return C(), O("div", {
|
|
6901
|
-
class:
|
|
6905
|
+
class: Me(["j-upload-list", { "j-upload-image-list": e.isUploadImg, "j-upload-drag-list": e.drag }])
|
|
6902
6906
|
}, [
|
|
6903
6907
|
e.drag ? (C(), O(ye, { key: 0 }, [
|
|
6904
6908
|
e.showFileList ? (C(!0), O(ye, { key: 0 }, Ee(e.list, (c) => (C(), O("div", {
|
|
@@ -6918,22 +6922,22 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6918
6922
|
size: 72
|
|
6919
6923
|
}, null, 8, ["style"])),
|
|
6920
6924
|
F("div", ap, [
|
|
6921
|
-
|
|
6925
|
+
K(a, { ellipsis: "" }, {
|
|
6922
6926
|
default: V(() => [
|
|
6923
|
-
Wt(be(`${
|
|
6927
|
+
Wt(be(`${G(t)(c.name)}${c.status === "unUpload" ? "(" + G(t)("未传") + ")" : ""}`), 1)
|
|
6924
6928
|
]),
|
|
6925
6929
|
_: 2
|
|
6926
6930
|
}, 1024),
|
|
6927
6931
|
F("div", null, [
|
|
6928
6932
|
c.status === "uploading" ? (C(), H(a, { key: 0 }, {
|
|
6929
6933
|
default: V(() => [
|
|
6930
|
-
Wt(be(
|
|
6934
|
+
Wt(be(G(Ri)(c.uploadSize)) + "/", 1)
|
|
6931
6935
|
]),
|
|
6932
6936
|
_: 2
|
|
6933
|
-
}, 1024)) :
|
|
6934
|
-
|
|
6937
|
+
}, 1024)) : Y("", !0),
|
|
6938
|
+
K(a, null, {
|
|
6935
6939
|
default: V(() => [
|
|
6936
|
-
Wt(be(
|
|
6940
|
+
Wt(be(G(Ri)(c.size)), 1)
|
|
6937
6941
|
]),
|
|
6938
6942
|
_: 2
|
|
6939
6943
|
}, 1024)
|
|
@@ -6945,14 +6949,14 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6945
6949
|
icon: "mdi:eye",
|
|
6946
6950
|
type: "link",
|
|
6947
6951
|
onClick: kt((u) => e.previewFile(c), ["stop"])
|
|
6948
|
-
}, null, 8, ["onClick"])) :
|
|
6952
|
+
}, null, 8, ["onClick"])) : Y("", !0),
|
|
6949
6953
|
!e.readonly && (c.status === "done" || c.status === "unUpload") ? (C(), H(l, {
|
|
6950
6954
|
key: 1,
|
|
6951
6955
|
icon: "mdi:delete",
|
|
6952
6956
|
type: "link",
|
|
6953
6957
|
danger: "",
|
|
6954
6958
|
onClick: kt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
6955
|
-
}, null, 8, ["onClick"])) :
|
|
6959
|
+
}, null, 8, ["onClick"])) : Y("", !0)
|
|
6956
6960
|
], 512), [
|
|
6957
6961
|
[Xo, c.status === "error"]
|
|
6958
6962
|
]),
|
|
@@ -6962,8 +6966,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6962
6966
|
style: { position: "absolute", bottom: "-4px", left: "0", margin: "0 !important" },
|
|
6963
6967
|
percent: c.percent,
|
|
6964
6968
|
"show-text": !1
|
|
6965
|
-
}, null, 8, ["percent"])) :
|
|
6966
|
-
]))), 128)) :
|
|
6969
|
+
}, null, 8, ["percent"])) : Y("", !0)
|
|
6970
|
+
]))), 128)) : Y("", !0),
|
|
6967
6971
|
Ie(n.$slots, "default")
|
|
6968
6972
|
], 64)) : e.isUploadImg ? (C(!0), O(ye, { key: 1 }, Ee(e.list, (c) => (C(), O("div", {
|
|
6969
6973
|
key: c.id,
|
|
@@ -6974,21 +6978,21 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6974
6978
|
src: c.url,
|
|
6975
6979
|
style: { width: "100%" },
|
|
6976
6980
|
alt: ""
|
|
6977
|
-
}, null, 8, rp)) :
|
|
6981
|
+
}, null, 8, rp)) : Y("", !0),
|
|
6978
6982
|
dn(F("div", sp, [
|
|
6979
6983
|
c.status === "done" || c.status === "unUpload" ? (C(), H(l, {
|
|
6980
6984
|
key: 0,
|
|
6981
6985
|
type: "link",
|
|
6982
6986
|
icon: "mdi:eye",
|
|
6983
6987
|
onClick: kt((u) => e.previewFile(c), ["stop"])
|
|
6984
|
-
}, null, 8, ["onClick"])) :
|
|
6988
|
+
}, null, 8, ["onClick"])) : Y("", !0),
|
|
6985
6989
|
!e.readonly && (c.status === "done" || c.status === "unUpload") ? (C(), H(l, {
|
|
6986
6990
|
key: 1,
|
|
6987
6991
|
type: "link",
|
|
6988
6992
|
danger: "",
|
|
6989
6993
|
icon: "mdi:delete",
|
|
6990
6994
|
onClick: kt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
6991
|
-
}, null, 8, ["onClick"])) :
|
|
6995
|
+
}, null, 8, ["onClick"])) : Y("", !0)
|
|
6992
6996
|
], 512), [
|
|
6993
6997
|
[Xo, c.status === "error"]
|
|
6994
6998
|
]),
|
|
@@ -6997,37 +7001,37 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
6997
7001
|
"stroke-width": 4,
|
|
6998
7002
|
percent: c.percent,
|
|
6999
7003
|
"show-text": !1
|
|
7000
|
-
}, null, 8, ["percent"])) :
|
|
7004
|
+
}, null, 8, ["percent"])) : Y("", !0)
|
|
7001
7005
|
]))), 128)) : (C(!0), O(ye, { key: 2 }, Ee(e.list, (c) => (C(), O("div", {
|
|
7002
7006
|
key: c.id,
|
|
7003
7007
|
class: "j-upload-item"
|
|
7004
7008
|
}, [
|
|
7005
|
-
|
|
7009
|
+
K(i, {
|
|
7006
7010
|
icon: "file-text",
|
|
7007
7011
|
style: Ce({ color: c.color ? `var(${c.color})` : void 0 }),
|
|
7008
7012
|
size: 16
|
|
7009
7013
|
}, null, 8, ["style"]),
|
|
7010
7014
|
F("div", cp, [
|
|
7011
|
-
|
|
7015
|
+
K(s, {
|
|
7012
7016
|
type: "primary",
|
|
7013
7017
|
underline: "never",
|
|
7014
7018
|
onClick: kt((u) => e.previewFile(c), ["stop"])
|
|
7015
7019
|
}, {
|
|
7016
7020
|
default: V(() => [
|
|
7017
|
-
Wt(be(`${
|
|
7021
|
+
Wt(be(`${G(t)(c.name)}${c.status === "unUpload" ? "(" + G(t)("未传") + ")" : ""}`), 1)
|
|
7018
7022
|
]),
|
|
7019
7023
|
_: 2
|
|
7020
7024
|
}, 1032, ["onClick"])
|
|
7021
7025
|
]),
|
|
7022
7026
|
c.status === "uploading" ? (C(), H(a, { key: 0 }, {
|
|
7023
7027
|
default: V(() => [
|
|
7024
|
-
Wt(be(
|
|
7028
|
+
Wt(be(G(Ri)(c.uploadSize)) + "/", 1)
|
|
7025
7029
|
]),
|
|
7026
7030
|
_: 2
|
|
7027
|
-
}, 1024)) :
|
|
7028
|
-
|
|
7031
|
+
}, 1024)) : Y("", !0),
|
|
7032
|
+
K(a, null, {
|
|
7029
7033
|
default: V(() => [
|
|
7030
|
-
Wt(be(
|
|
7034
|
+
Wt(be(G(Ri)(c.size)), 1)
|
|
7031
7035
|
]),
|
|
7032
7036
|
_: 2
|
|
7033
7037
|
}, 1024),
|
|
@@ -7036,8 +7040,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7036
7040
|
class: "j-upload-item-success",
|
|
7037
7041
|
icon: "check-circle",
|
|
7038
7042
|
size: 24
|
|
7039
|
-
})) :
|
|
7040
|
-
e.readonly ?
|
|
7043
|
+
})) : Y("", !0),
|
|
7044
|
+
e.readonly ? Y("", !0) : dn((C(), H(i, {
|
|
7041
7045
|
key: 2,
|
|
7042
7046
|
class: "j-upload-item-error",
|
|
7043
7047
|
icon: "delete",
|
|
@@ -7052,7 +7056,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7052
7056
|
"stroke-width": 4,
|
|
7053
7057
|
percent: c.percent,
|
|
7054
7058
|
"show-text": !1
|
|
7055
|
-
}, null, 8, ["percent"])) :
|
|
7059
|
+
}, null, 8, ["percent"])) : Y("", !0)
|
|
7056
7060
|
]))), 128))
|
|
7057
7061
|
], 2);
|
|
7058
7062
|
};
|
|
@@ -7251,9 +7255,9 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7251
7255
|
sizeType: n.sizeType
|
|
7252
7256
|
})), b = A([]), w = () => {
|
|
7253
7257
|
b.value = [...b.value];
|
|
7254
|
-
}, x = (
|
|
7258
|
+
}, x = (Q) => {
|
|
7255
7259
|
if (n.maxSize && n.sizeType) {
|
|
7256
|
-
let fe =
|
|
7260
|
+
let fe = Q;
|
|
7257
7261
|
switch (n.sizeType) {
|
|
7258
7262
|
case "GB":
|
|
7259
7263
|
fe = 1024 * 1024 * 1024 * n.maxSize;
|
|
@@ -7268,7 +7272,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7268
7272
|
fe = n.maxSize;
|
|
7269
7273
|
break;
|
|
7270
7274
|
}
|
|
7271
|
-
if (fe <
|
|
7275
|
+
if (fe < Q)
|
|
7272
7276
|
return !1;
|
|
7273
7277
|
}
|
|
7274
7278
|
return !0;
|
|
@@ -7281,91 +7285,91 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7281
7285
|
image: "file-image",
|
|
7282
7286
|
txt: "file-txt",
|
|
7283
7287
|
json: "file-json"
|
|
7284
|
-
}, m = (
|
|
7285
|
-
if (
|
|
7286
|
-
const fe =
|
|
7288
|
+
}, m = (Q) => {
|
|
7289
|
+
if (Q) {
|
|
7290
|
+
const fe = Q.split(".");
|
|
7287
7291
|
return fe[fe.length - 1];
|
|
7288
7292
|
}
|
|
7289
7293
|
return "";
|
|
7290
|
-
}, E = (
|
|
7294
|
+
}, E = (Q, fe) => {
|
|
7291
7295
|
if (fe && fe.indexOf("image") > -1)
|
|
7292
7296
|
return "file-image";
|
|
7293
|
-
const ke = m(
|
|
7297
|
+
const ke = m(Q);
|
|
7294
7298
|
return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(ke) ? "file-image" : _[ke] || "file-ufo";
|
|
7295
|
-
}, S = (
|
|
7296
|
-
|
|
7297
|
-
}, T = (
|
|
7298
|
-
o("start", { file:
|
|
7299
|
-
}, P = (
|
|
7300
|
-
|
|
7301
|
-
}, R = (
|
|
7302
|
-
|
|
7303
|
-
}, D = (
|
|
7304
|
-
console.error(fe, "简搭提醒您:文件上传错误!"),
|
|
7305
|
-
}, z = (
|
|
7306
|
-
if (b.value.push(
|
|
7307
|
-
o("notUploadChange", { value:
|
|
7299
|
+
}, S = (Q) => {
|
|
7300
|
+
Q.status = n.autoUpload ? "uploading" : "unUpload", Q.uploadSize = 0, Q.icon = E(Q.name, Q.type), d || (Q.icon = "file-text"), Q.id = Q.uid, Q.url = window.URL.createObjectURL(Q), Q.date = Ei(), Q.param = y.value;
|
|
7301
|
+
}, T = (Q) => {
|
|
7302
|
+
o("start", { file: Q, list: b.value });
|
|
7303
|
+
}, P = (Q, fe, ke) => {
|
|
7304
|
+
Q.percent = ke, Q.uploadSize = fe, w();
|
|
7305
|
+
}, R = (Q) => {
|
|
7306
|
+
Q.status = "done", Q.id += "1", Q.uid += "1", w(), o("success", { file: Q, list: b.value }), n.modelValue || (o("update:modelValue", v.value), o("change", { value: v.value }));
|
|
7307
|
+
}, D = (Q, fe) => {
|
|
7308
|
+
console.error(fe, "简搭提醒您:文件上传错误!"), Q.status = "error", w(), o("error", { file: Q, list: b.value });
|
|
7309
|
+
}, z = (Q) => {
|
|
7310
|
+
if (b.value.push(Q), Q.status === "unUpload") {
|
|
7311
|
+
o("notUploadChange", { value: Q.url });
|
|
7308
7312
|
return;
|
|
7309
7313
|
}
|
|
7310
|
-
!n.isNotApi && n.upload ? n.upload(
|
|
7314
|
+
!n.isNotApi && n.upload ? n.upload(Q) : !n.isNotApi && d ? d(Q, {
|
|
7311
7315
|
onStart: T,
|
|
7312
7316
|
onProgress: P,
|
|
7313
7317
|
onSuccess: R,
|
|
7314
7318
|
onError: D,
|
|
7315
7319
|
uploadCallback: n.uploadCallback
|
|
7316
|
-
}) : R(
|
|
7317
|
-
}, $ = (
|
|
7318
|
-
if (!x(
|
|
7320
|
+
}) : R(Q);
|
|
7321
|
+
}, $ = (Q) => {
|
|
7322
|
+
if (!x(Q.size))
|
|
7319
7323
|
return a && a("上传文件超出大小了"), !1;
|
|
7320
|
-
}, M = (
|
|
7321
|
-
S(
|
|
7322
|
-
}, k = (
|
|
7324
|
+
}, M = (Q) => {
|
|
7325
|
+
S(Q.file), z(Q.file);
|
|
7326
|
+
}, k = (Q) => new Promise((fe) => {
|
|
7323
7327
|
l ? l({
|
|
7324
7328
|
title: "提示",
|
|
7325
7329
|
iconType: "warning",
|
|
7326
|
-
content: `您确定删除【${
|
|
7330
|
+
content: `您确定删除【${Q.name}】?`,
|
|
7327
7331
|
onOk: () => {
|
|
7328
7332
|
fe(!0);
|
|
7329
7333
|
},
|
|
7330
7334
|
onCancel: () => {
|
|
7331
7335
|
fe(!1);
|
|
7332
7336
|
}
|
|
7333
|
-
}) : (I(
|
|
7334
|
-
}), I = (
|
|
7337
|
+
}) : (I(Q), fe(!0));
|
|
7338
|
+
}), I = (Q) => {
|
|
7335
7339
|
if (!n.isNotApi) {
|
|
7336
|
-
const fe =
|
|
7340
|
+
const fe = Q.response?.fileId || Q.id;
|
|
7337
7341
|
f && f(fe);
|
|
7338
7342
|
}
|
|
7339
|
-
b.value = b.value.filter((fe) => fe.id !==
|
|
7340
|
-
}, N = async (
|
|
7341
|
-
await k(
|
|
7343
|
+
b.value = b.value.filter((fe) => fe.id !== Q.id), b.value.length === 0 && (o("update:modelValue", ""), o("change", { value: "" })), o("delete", { file: Q, list: b.value });
|
|
7344
|
+
}, N = async (Q) => {
|
|
7345
|
+
await k(Q) && I(Q);
|
|
7342
7346
|
}, re = A(!1), se = A(""), pe = A(""), Be = A(!1), at = A(!1);
|
|
7343
|
-
let
|
|
7344
|
-
const $e = A(Ei(/* @__PURE__ */ new Date(), "YYYY-MM-DD")),
|
|
7345
|
-
if (
|
|
7347
|
+
let ee = null;
|
|
7348
|
+
const $e = A(Ei(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ne = (Q) => {
|
|
7349
|
+
if (Q.isPreview === !1 && !n.isUploadImg) {
|
|
7346
7350
|
i && i("无权限预览!");
|
|
7347
7351
|
return;
|
|
7348
7352
|
}
|
|
7349
|
-
const fe =
|
|
7350
|
-
switch (
|
|
7353
|
+
const fe = Q.name.split(".")[Q.name.split(".").length - 1];
|
|
7354
|
+
switch (ee = Q, re.value = !1, se.value = Q.name, fe.toLowerCase()) {
|
|
7351
7355
|
case "jpg":
|
|
7352
7356
|
case "gif":
|
|
7353
7357
|
case "png":
|
|
7354
7358
|
case "bmp":
|
|
7355
7359
|
case "jpeg":
|
|
7356
7360
|
case "svg":
|
|
7357
|
-
re.value = !0, pe.value =
|
|
7361
|
+
re.value = !0, pe.value = Q.url, at.value = !1, Be.value = !0;
|
|
7358
7362
|
break;
|
|
7359
7363
|
default:
|
|
7360
7364
|
if (n.isNotApi) {
|
|
7361
7365
|
i && i("预览表单中,不支持预览!");
|
|
7362
7366
|
return;
|
|
7363
7367
|
}
|
|
7364
|
-
if (
|
|
7368
|
+
if (Q.status !== "done") {
|
|
7365
7369
|
i && i("当前文件还没上传成功,不支持预览!");
|
|
7366
7370
|
return;
|
|
7367
7371
|
}
|
|
7368
|
-
if (pe.value = Se(
|
|
7372
|
+
if (pe.value = Se(Q), pe.value === "") {
|
|
7369
7373
|
i && i("当前文件不支持预览!");
|
|
7370
7374
|
return;
|
|
7371
7375
|
}
|
|
@@ -7373,24 +7377,24 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7373
7377
|
break;
|
|
7374
7378
|
}
|
|
7375
7379
|
$e.value = Ei(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
7376
|
-
}, Se = (
|
|
7377
|
-
const fe =
|
|
7380
|
+
}, Se = (Q) => {
|
|
7381
|
+
const fe = Q.response?.fileId || Q.id;
|
|
7378
7382
|
if (!s)
|
|
7379
7383
|
return "";
|
|
7380
7384
|
const ke = Ei(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + fe, et = ff.createAesEncryption({ key: "jianda" }).encrypt(ke).replace(/\//g, "|");
|
|
7381
7385
|
return `${s}/system/annexesfile/preview/${et}?token=${c?.value}`;
|
|
7382
7386
|
}, Qe = () => {
|
|
7383
|
-
|
|
7384
|
-
const
|
|
7387
|
+
ee.isDown === !1 && i && i("无权限下载!");
|
|
7388
|
+
const Q = ee.response?.fileId || ee.id, fe = `${s}/system/annexesfile/${Q}?token=${c?.value}`;
|
|
7385
7389
|
np(fe);
|
|
7386
7390
|
}, lt = () => {
|
|
7387
7391
|
if (n.limit !== -1 && n.limit <= b.value.length)
|
|
7388
7392
|
return i && i(`当前限制选择${n.limit}个文件`), !1;
|
|
7389
7393
|
};
|
|
7390
|
-
return (
|
|
7394
|
+
return (Q, fe) => {
|
|
7391
7395
|
const ke = B("j-icon"), et = B("j-button"), ft = B("el-popover"), Lt = B("el-upload"), De = B("el-text"), cn = B("j-dialog-full"), bn = aa("loading");
|
|
7392
7396
|
return C(), O("div", up, [
|
|
7393
|
-
|
|
7397
|
+
K(Lt, {
|
|
7394
7398
|
action: "",
|
|
7395
7399
|
drag: e.drag,
|
|
7396
7400
|
disabled: e.readonly,
|
|
@@ -7404,38 +7408,38 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7404
7408
|
"file-list": b.value,
|
|
7405
7409
|
"before-remove": k,
|
|
7406
7410
|
"on-remove": I,
|
|
7407
|
-
"on-preview":
|
|
7411
|
+
"on-preview": Ne,
|
|
7408
7412
|
"on-exceed": lt
|
|
7409
7413
|
}, {
|
|
7410
7414
|
default: V(() => [
|
|
7411
7415
|
e.isUploadImg && !e.isLayer && !e.readonly ? (C(), O("div", dp, [
|
|
7412
|
-
|
|
7413
|
-
F("div", fp, be(
|
|
7416
|
+
K(ke, { icon: "mdi:add" }),
|
|
7417
|
+
F("div", fp, be(G(r)(e.placeholder)), 1)
|
|
7414
7418
|
])) : e.isLayer && e.showFileList && b.value.length > 0 && !Be.value ? (C(), H(ft, {
|
|
7415
7419
|
key: 1,
|
|
7416
7420
|
placement: "bottom",
|
|
7417
|
-
title: e.isUploadImg ?
|
|
7421
|
+
title: e.isUploadImg ? G(r)("图片列表") : G(r)("文件列表")
|
|
7418
7422
|
}, {
|
|
7419
7423
|
content: V(() => [
|
|
7420
|
-
|
|
7424
|
+
K(pr, {
|
|
7421
7425
|
style: Ce({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
7422
7426
|
list: b.value,
|
|
7423
|
-
"preview-file":
|
|
7427
|
+
"preview-file": Ne,
|
|
7424
7428
|
"delete-file": N,
|
|
7425
7429
|
"is-upload-img": e.isUploadImg,
|
|
7426
7430
|
readonly: e.readonly
|
|
7427
7431
|
}, null, 8, ["style", "list", "is-upload-img", "readonly"])
|
|
7428
7432
|
]),
|
|
7429
7433
|
default: V(() => [
|
|
7430
|
-
|
|
7434
|
+
K(et, {
|
|
7431
7435
|
type: e.btnType,
|
|
7432
7436
|
size: e.btnSize,
|
|
7433
7437
|
icon: "mdi:tray-upload",
|
|
7434
|
-
label: e.readonly ?
|
|
7438
|
+
label: e.readonly ? G(r)(e.btnText) : e.placeholder
|
|
7435
7439
|
}, null, 8, ["type", "size", "label"])
|
|
7436
7440
|
]),
|
|
7437
7441
|
_: 1
|
|
7438
|
-
}, 8, ["title"])) : e.readonly ?
|
|
7442
|
+
}, 8, ["title"])) : e.readonly ? Y("", !0) : (C(), H(et, {
|
|
7439
7443
|
key: 2,
|
|
7440
7444
|
type: e.btnType,
|
|
7441
7445
|
size: e.btnSize,
|
|
@@ -7446,29 +7450,29 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7446
7450
|
_: 1
|
|
7447
7451
|
}, 8, ["drag", "disabled", "show-file-list", "list-type", "accept", "limit", "multiple", "file-list"]),
|
|
7448
7452
|
e.isTip ? (C(), O("div", hp, [
|
|
7449
|
-
|
|
7453
|
+
K(De, null, {
|
|
7450
7454
|
default: V(() => [
|
|
7451
|
-
Wt(be(`${
|
|
7455
|
+
Wt(be(`${G(r)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)
|
|
7452
7456
|
]),
|
|
7453
7457
|
_: 1
|
|
7454
7458
|
})
|
|
7455
|
-
])) :
|
|
7459
|
+
])) : Y("", !0),
|
|
7456
7460
|
!e.isLayer && !e.isUploadImg && e.showFileList && b.value.length > 0 ? (C(), H(pr, {
|
|
7457
7461
|
key: 1,
|
|
7458
7462
|
style: { "margin-top": "4px" },
|
|
7459
7463
|
list: b.value,
|
|
7460
|
-
"preview-file":
|
|
7464
|
+
"preview-file": Ne,
|
|
7461
7465
|
"delete-file": N,
|
|
7462
7466
|
readonly: e.readonly,
|
|
7463
7467
|
"is-show-success-icon": e.isShowSuccessIcon
|
|
7464
|
-
}, null, 8, ["list", "readonly", "is-show-success-icon"])) :
|
|
7465
|
-
|
|
7468
|
+
}, null, 8, ["list", "readonly", "is-show-success-icon"])) : Y("", !0),
|
|
7469
|
+
K(cn, {
|
|
7466
7470
|
visible: Be.value,
|
|
7467
7471
|
"onUpdate:visible": fe[1] || (fe[1] = (Kt) => Be.value = Kt),
|
|
7468
7472
|
"btn-text": "下载",
|
|
7469
|
-
title: `${
|
|
7473
|
+
title: `${G(r)("文件预览")}【${se.value}】`,
|
|
7470
7474
|
"destroy-on-close": !0,
|
|
7471
|
-
"has-btns": !!
|
|
7475
|
+
"has-btns": !!G(s),
|
|
7472
7476
|
onOk: Qe
|
|
7473
7477
|
}, {
|
|
7474
7478
|
default: V(() => [
|
|
@@ -7489,7 +7493,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7489
7493
|
}, null, 40, mp)
|
|
7490
7494
|
])), [
|
|
7491
7495
|
[bn, at.value]
|
|
7492
|
-
]) :
|
|
7496
|
+
]) : Y("", !0)
|
|
7493
7497
|
]),
|
|
7494
7498
|
_: 1
|
|
7495
7499
|
}, 8, ["visible", "title", "has-btns"])
|
|
@@ -7875,8 +7879,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
7875
7879
|
key: 0,
|
|
7876
7880
|
class: "j-barcode",
|
|
7877
7881
|
innerHTML: n.value
|
|
7878
|
-
}, null, 8, Sp)) :
|
|
7879
|
-
o.value ? (C(), O("div", _p, be(o.value), 1)) :
|
|
7882
|
+
}, null, 8, Sp)) : Y("", !0),
|
|
7883
|
+
o.value ? (C(), O("div", _p, be(o.value), 1)) : Y("", !0)
|
|
7880
7884
|
], 64));
|
|
7881
7885
|
}
|
|
7882
7886
|
}), kp = de(Ep), Rp = /* @__PURE__ */ ae({
|
|
@@ -8128,7 +8132,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8128
8132
|
ref_key: "el",
|
|
8129
8133
|
ref: i
|
|
8130
8134
|
}, [
|
|
8131
|
-
e.animation ?
|
|
8135
|
+
e.animation ? Y("", !0) : (C(), O("span", Mp, be(e.endValue), 1))
|
|
8132
8136
|
], 512));
|
|
8133
8137
|
}
|
|
8134
8138
|
}), Ap = de(Pp), jp = { class: "j-block j-data-panel" }, Hp = {
|
|
@@ -8147,7 +8151,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8147
8151
|
F("div", Ip, [
|
|
8148
8152
|
Ie(t.$slots, "titleRight")
|
|
8149
8153
|
])
|
|
8150
|
-
])) :
|
|
8154
|
+
])) : Y("", !0),
|
|
8151
8155
|
F("div", Bp, [
|
|
8152
8156
|
Ie(t.$slots, "default")
|
|
8153
8157
|
])
|
|
@@ -8173,7 +8177,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8173
8177
|
borderTopStyle: t.borderStyle
|
|
8174
8178
|
}));
|
|
8175
8179
|
return (i, a) => (C(), O("div", {
|
|
8176
|
-
class:
|
|
8180
|
+
class: Me(`j-divider-container j-divider-${e.contentPosition}`),
|
|
8177
8181
|
style: Ce(n.value)
|
|
8178
8182
|
}, [
|
|
8179
8183
|
F("div", {
|
|
@@ -8239,13 +8243,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8239
8243
|
), (u, d) => {
|
|
8240
8244
|
const f = B("j-button"), h = B("j-layer");
|
|
8241
8245
|
return C(), O(ye, null, [
|
|
8242
|
-
|
|
8246
|
+
K(f, je({ style: { width: "auto" } }, u.$attrs, {
|
|
8243
8247
|
type: e.type,
|
|
8244
8248
|
label: e.btnText,
|
|
8245
8249
|
size: e.size,
|
|
8246
8250
|
onClick: c
|
|
8247
8251
|
}), null, 16, ["type", "label", "size"]),
|
|
8248
|
-
|
|
8252
|
+
K(h, {
|
|
8249
8253
|
ref_key: "layerRef",
|
|
8250
8254
|
ref: i,
|
|
8251
8255
|
height: e.height,
|
|
@@ -8310,12 +8314,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8310
8314
|
onChange: c
|
|
8311
8315
|
}, {
|
|
8312
8316
|
default: V(() => [
|
|
8313
|
-
|
|
8317
|
+
K(p, {
|
|
8314
8318
|
"right-move": !1,
|
|
8315
8319
|
right: 560
|
|
8316
8320
|
}, fn({
|
|
8317
8321
|
default: V(() => [
|
|
8318
|
-
|
|
8322
|
+
K(h, {
|
|
8319
8323
|
value: a.value,
|
|
8320
8324
|
"onUpdate:value": f[0] || (f[0] = (v) => a.value = v),
|
|
8321
8325
|
mode: e.mode,
|
|
@@ -8328,7 +8332,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8328
8332
|
e.example ? {
|
|
8329
8333
|
name: "right",
|
|
8330
8334
|
fn: V(() => [
|
|
8331
|
-
|
|
8335
|
+
K(h, {
|
|
8332
8336
|
value: e.example,
|
|
8333
8337
|
mode: e.mode,
|
|
8334
8338
|
"read-only": ""
|
|
@@ -8415,14 +8419,14 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8415
8419
|
}), (g, v) => {
|
|
8416
8420
|
const y = B("el-color-picker"), b = B("el-input");
|
|
8417
8421
|
return C(), O("div", {
|
|
8418
|
-
class:
|
|
8422
|
+
class: Me([
|
|
8419
8423
|
"j-input-color",
|
|
8420
8424
|
{ "j-input-color-only-button": e.onlyButton },
|
|
8421
8425
|
{ "j-input-color-disabled": e.disabled },
|
|
8422
8426
|
`j-input-color-${e.size}`
|
|
8423
8427
|
])
|
|
8424
8428
|
}, [
|
|
8425
|
-
|
|
8429
|
+
K(b, je({
|
|
8426
8430
|
ref_key: "inputRef",
|
|
8427
8431
|
ref: a,
|
|
8428
8432
|
modelValue: r.value,
|
|
@@ -8445,7 +8449,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8445
8449
|
onChange: f
|
|
8446
8450
|
}), {
|
|
8447
8451
|
[e.inputType]: V(() => [
|
|
8448
|
-
|
|
8452
|
+
K(y, {
|
|
8449
8453
|
modelValue: r.value,
|
|
8450
8454
|
"onUpdate:modelValue": v[0] || (v[0] = (w) => r.value = w),
|
|
8451
8455
|
size: e.size,
|
|
@@ -8481,7 +8485,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8481
8485
|
return t.color && (i.color = t.color), t.size && (typeof t.size == "number" ? i.fontSize = `${t.size}px` : i.fontSize = t.size), t.weight && (i.fontWeight = t.weight), i;
|
|
8482
8486
|
});
|
|
8483
8487
|
return (i, a) => (C(), O("div", {
|
|
8484
|
-
class:
|
|
8488
|
+
class: Me(["j-title", n.value]),
|
|
8485
8489
|
style: Ce(o.value)
|
|
8486
8490
|
}, be(e.title), 7));
|
|
8487
8491
|
}
|
|
@@ -8783,7 +8787,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8783
8787
|
return (l, r) => (C(), O("div", {
|
|
8784
8788
|
ref_key: "contentRef",
|
|
8785
8789
|
ref: o,
|
|
8786
|
-
class:
|
|
8790
|
+
class: Me([{ success: e.isPassing }, "j-slider-captcha-content"]),
|
|
8787
8791
|
style: Ce(i.value)
|
|
8788
8792
|
}, [
|
|
8789
8793
|
F("div", {
|
|
@@ -8841,7 +8845,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8841
8845
|
function h(y) {
|
|
8842
8846
|
const { isMoving: b, moveDistance: w } = a;
|
|
8843
8847
|
if (b) {
|
|
8844
|
-
const x =
|
|
8848
|
+
const x = G(c), _ = G(r);
|
|
8845
8849
|
if (!x || !_) return;
|
|
8846
8850
|
const { actionWidth: m, offset: E, wrapperWidth: S } = f(x.getEl()), T = u(y) - w;
|
|
8847
8851
|
o("move", {
|
|
@@ -8855,7 +8859,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8855
8859
|
const { isMoving: b, isPassing: w, moveDistance: x } = a;
|
|
8856
8860
|
if (b && !w) {
|
|
8857
8861
|
o("end", y);
|
|
8858
|
-
const _ = c.value, m =
|
|
8862
|
+
const _ = c.value, m = G(r);
|
|
8859
8863
|
if (!_ || !m) return;
|
|
8860
8864
|
const E = u(y) - x, { actionWidth: S, offset: T, wrapperWidth: P } = f(_.getEl());
|
|
8861
8865
|
E < T ? v() : (_.setLeft(`${P - S}px`), m.setWidth(`${P - S / 2}px`), g()), a.isMoving = !1;
|
|
@@ -8866,7 +8870,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8866
8870
|
}
|
|
8867
8871
|
function v() {
|
|
8868
8872
|
a.isMoving = !1, a.isPassing = !1, a.moveDistance = 0, a.toLeft = !1, a.startTime = 0, a.endTime = 0;
|
|
8869
|
-
const y =
|
|
8873
|
+
const y = G(c), b = G(r), w = G(s);
|
|
8870
8874
|
!y || !b || !w || (w.getEl().style.width = "100%", a.toLeft = !0, setTimeout(() => {
|
|
8871
8875
|
a.toLeft = !1, y.setLeft("0"), b.setWidth("0");
|
|
8872
8876
|
}, 300));
|
|
@@ -8874,7 +8878,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8874
8878
|
return (y, b) => (C(), O("div", {
|
|
8875
8879
|
ref_key: "wrapperRef",
|
|
8876
8880
|
ref: l,
|
|
8877
|
-
class:
|
|
8881
|
+
class: Me(["j-slider-captcha slider-border", n.class]),
|
|
8878
8882
|
style: Ce([{ "background-color": "var(--j-color-bg)" }, e.wrapperStyle]),
|
|
8879
8883
|
onMouseleave: p,
|
|
8880
8884
|
onMousemove: h,
|
|
@@ -8882,19 +8886,19 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8882
8886
|
onTouchend: p,
|
|
8883
8887
|
onTouchmove: h
|
|
8884
8888
|
}, [
|
|
8885
|
-
|
|
8889
|
+
K(og, {
|
|
8886
8890
|
ref_key: "barRef",
|
|
8887
8891
|
ref: r,
|
|
8888
8892
|
"bar-style": e.barStyle,
|
|
8889
8893
|
"to-left": a.toLeft
|
|
8890
8894
|
}, null, 8, ["bar-style", "to-left"]),
|
|
8891
|
-
|
|
8895
|
+
K(ig, {
|
|
8892
8896
|
ref_key: "contentRef",
|
|
8893
8897
|
ref: s,
|
|
8894
8898
|
"content-style": e.contentStyle,
|
|
8895
8899
|
"is-passing": a.isPassing
|
|
8896
8900
|
}, null, 8, ["content-style", "is-passing"]),
|
|
8897
|
-
|
|
8901
|
+
K(ng, {
|
|
8898
8902
|
ref_key: "actionRef",
|
|
8899
8903
|
ref: c,
|
|
8900
8904
|
"action-style": e.actionStyle,
|
|
@@ -8927,13 +8931,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8927
8931
|
itemHeight: 44
|
|
8928
8932
|
});
|
|
8929
8933
|
return (p, g) => (C(), O("div", je({
|
|
8930
|
-
class: ["j-sub-menu-content", { "j-menu-dark":
|
|
8934
|
+
class: ["j-sub-menu-content", { "j-menu-dark": G(r) === "dark" }],
|
|
8931
8935
|
style: { "max-height": "calc(100vh - 80px)", "border-radius": "8px" }
|
|
8932
|
-
},
|
|
8933
|
-
F("div", la(sl(
|
|
8934
|
-
(C(!0), O(ye, null, Ee(
|
|
8936
|
+
}, G(f)), [
|
|
8937
|
+
F("div", la(sl(G(h))), [
|
|
8938
|
+
(C(!0), O(ye, null, Ee(G(d), (v) => (C(), H(sa, {
|
|
8935
8939
|
key: v.data.value,
|
|
8936
|
-
"parent-actives":
|
|
8940
|
+
"parent-actives": G(l)?.pid?.split(".") || [],
|
|
8937
8941
|
item: v.data,
|
|
8938
8942
|
"is-sub": "",
|
|
8939
8943
|
onClick: u
|
|
@@ -8943,7 +8947,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8943
8947
|
}
|
|
8944
8948
|
}), sg = { class: "j-menu-item-label" }, cg = { class: "j-menu-item-label" }, ug = {
|
|
8945
8949
|
key: 1,
|
|
8946
|
-
class: /* @__PURE__ */
|
|
8950
|
+
class: /* @__PURE__ */ Me(["j-menu-item-arrow", "sub"])
|
|
8947
8951
|
}, dg = { class: "j-menu-item-label" }, sa = /* @__PURE__ */ ae({
|
|
8948
8952
|
name: "JMenuItem",
|
|
8949
8953
|
__name: "index",
|
|
@@ -8991,18 +8995,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
8991
8995
|
placement: "right"
|
|
8992
8996
|
}, {
|
|
8993
8997
|
content: V(() => [
|
|
8994
|
-
F("span", null, be(
|
|
8998
|
+
F("span", null, be(G(n)(e.item.label)), 1)
|
|
8995
8999
|
]),
|
|
8996
9000
|
default: V(() => [
|
|
8997
9001
|
F("div", {
|
|
8998
|
-
class:
|
|
9002
|
+
class: Me(["j-menu-item", { collapsed: e.collapsed }]),
|
|
8999
9003
|
onClick: r[0] || (r[0] = kt((d) => a(e.item), ["stop"]))
|
|
9000
9004
|
}, [
|
|
9001
9005
|
F("div", {
|
|
9002
|
-
class:
|
|
9006
|
+
class: Me([
|
|
9003
9007
|
"j-menu-item-content",
|
|
9004
9008
|
{
|
|
9005
|
-
active: e.item.value ===
|
|
9009
|
+
active: e.item.value === G(o),
|
|
9006
9010
|
"p-active": e.parentActives.includes(e.item.value)
|
|
9007
9011
|
}
|
|
9008
9012
|
]),
|
|
@@ -9013,12 +9017,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9013
9017
|
icon: e.item.icon,
|
|
9014
9018
|
class: "j-menu-item-icon",
|
|
9015
9019
|
size: 18
|
|
9016
|
-
}, null, 8, ["icon"])) :
|
|
9017
|
-
F("div", sg, be(
|
|
9020
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
9021
|
+
F("div", sg, be(G(n)(e.item.label)), 1),
|
|
9018
9022
|
e.item.hasChildren ? (C(), O("div", {
|
|
9019
9023
|
key: 1,
|
|
9020
|
-
class:
|
|
9021
|
-
}, null, 2)) :
|
|
9024
|
+
class: Me(["j-menu-item-arrow", { open: e.item.open }])
|
|
9025
|
+
}, null, 2)) : Y("", !0)
|
|
9022
9026
|
], 6)
|
|
9023
9027
|
], 2)
|
|
9024
9028
|
]),
|
|
@@ -9031,12 +9035,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9031
9035
|
}, {
|
|
9032
9036
|
reference: V(() => [
|
|
9033
9037
|
F("div", {
|
|
9034
|
-
class:
|
|
9038
|
+
class: Me(["j-menu-item", { collapsed: e.collapsed }])
|
|
9035
9039
|
}, [
|
|
9036
9040
|
F("div", {
|
|
9037
|
-
class:
|
|
9041
|
+
class: Me([
|
|
9038
9042
|
"j-menu-item-content",
|
|
9039
|
-
{ active: e.item.value ===
|
|
9043
|
+
{ active: e.item.value === G(o), "p-active": e.parentActives.includes(e.item.value) }
|
|
9040
9044
|
]),
|
|
9041
9045
|
style: Ce({ "padding-left": `${e.item.indent * 34 + 16}px` })
|
|
9042
9046
|
}, [
|
|
@@ -9049,14 +9053,14 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9049
9053
|
}),
|
|
9050
9054
|
class: "j-menu-item-icon",
|
|
9051
9055
|
size: 18
|
|
9052
|
-
}, null, 8, ["icon", "style"])) :
|
|
9053
|
-
F("div", cg, be(
|
|
9054
|
-
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (C(), O("div", ug)) :
|
|
9056
|
+
}, null, 8, ["icon", "style"])) : Y("", !0),
|
|
9057
|
+
F("div", cg, be(G(n)(e.item.label)), 1),
|
|
9058
|
+
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (C(), O("div", ug)) : Y("", !0)
|
|
9055
9059
|
], 6)
|
|
9056
9060
|
], 2)
|
|
9057
9061
|
]),
|
|
9058
9062
|
default: V(() => [
|
|
9059
|
-
|
|
9063
|
+
K(rg, {
|
|
9060
9064
|
"p-id": e.item.value,
|
|
9061
9065
|
onClick: a
|
|
9062
9066
|
}, null, 8, ["p-id"])
|
|
@@ -9064,13 +9068,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9064
9068
|
_: 1
|
|
9065
9069
|
}, 8, ["placement"])) : (C(), O("div", {
|
|
9066
9070
|
key: 2,
|
|
9067
|
-
class:
|
|
9071
|
+
class: Me(["j-menu-item", { collapsed: e.collapsed, sub: e.item.indent > 0 }]),
|
|
9068
9072
|
onClick: r[1] || (r[1] = kt((d) => a(e.item), ["stop"]))
|
|
9069
9073
|
}, [
|
|
9070
9074
|
F("div", {
|
|
9071
|
-
class:
|
|
9075
|
+
class: Me([
|
|
9072
9076
|
"j-menu-item-content",
|
|
9073
|
-
{ active: e.item.value ===
|
|
9077
|
+
{ active: e.item.value === G(o), "p-active": e.parentActives.includes(e.item.value) }
|
|
9074
9078
|
]),
|
|
9075
9079
|
style: Ce({ "padding-left": `${e.item.indent * 24 + 16}px` })
|
|
9076
9080
|
}, [
|
|
@@ -9083,12 +9087,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9083
9087
|
"background-color": e.isVertical ? e.item.color : "transparent"
|
|
9084
9088
|
}),
|
|
9085
9089
|
size: 18
|
|
9086
|
-
}, null, 8, ["icon", "style"])) :
|
|
9087
|
-
F("div", dg, be(
|
|
9090
|
+
}, null, 8, ["icon", "style"])) : Y("", !0),
|
|
9091
|
+
F("div", dg, be(G(n)(e.item.label)), 1),
|
|
9088
9092
|
e.item.hasChildren ? (C(), O("div", {
|
|
9089
9093
|
key: 1,
|
|
9090
|
-
class:
|
|
9091
|
-
}, null, 2)) :
|
|
9094
|
+
class: Me(["j-menu-item-arrow", { open: e.item.open }])
|
|
9095
|
+
}, null, 2)) : Y("", !0)
|
|
9092
9096
|
], 6)
|
|
9093
9097
|
], 2));
|
|
9094
9098
|
};
|
|
@@ -9117,15 +9121,15 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9117
9121
|
itemHeight: 44
|
|
9118
9122
|
});
|
|
9119
9123
|
return (d, f) => (C(), O("div", je({
|
|
9120
|
-
class: ["j-menu", { collapsed: e.collapsed, "j-menu-dark":
|
|
9121
|
-
},
|
|
9122
|
-
F("div", la(sl(
|
|
9123
|
-
(C(!0), O(ye, null, Ee(
|
|
9124
|
+
class: ["j-menu", { collapsed: e.collapsed, "j-menu-dark": G(a) === "dark" }]
|
|
9125
|
+
}, G(c)), [
|
|
9126
|
+
F("div", la(sl(G(u))), [
|
|
9127
|
+
(C(!0), O(ye, null, Ee(G(s), (h) => (C(), H(sa, {
|
|
9124
9128
|
key: h.data.value,
|
|
9125
|
-
"parent-actives":
|
|
9129
|
+
"parent-actives": G(i)?.pid?.split(".") || [],
|
|
9126
9130
|
item: h.data,
|
|
9127
9131
|
collapsed: e.collapsed,
|
|
9128
|
-
class:
|
|
9132
|
+
class: Me({
|
|
9129
9133
|
"menu-item-entering": h.data.entering,
|
|
9130
9134
|
"menu-item-leaving": h.data.leaving
|
|
9131
9135
|
}),
|
|
@@ -9189,7 +9193,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9189
9193
|
}), (h, p) => (C(), O("div", {
|
|
9190
9194
|
ref_key: "menuRef",
|
|
9191
9195
|
ref: l,
|
|
9192
|
-
class:
|
|
9196
|
+
class: Me(["j-menu-horizontal", { "j-menu-dark": G(a) === "dark" }])
|
|
9193
9197
|
}, [
|
|
9194
9198
|
(C(!0), O(ye, null, Ee(c.value, (g) => (C(), H(sa, {
|
|
9195
9199
|
key: g.value,
|
|
@@ -9226,10 +9230,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9226
9230
|
itemHeight: 96
|
|
9227
9231
|
});
|
|
9228
9232
|
return (h, p) => (C(), O("div", je({
|
|
9229
|
-
class: ["j-menu-vertical", { "j-menu-dark":
|
|
9230
|
-
},
|
|
9231
|
-
F("div", la(sl(
|
|
9232
|
-
(C(!0), O(ye, null, Ee(
|
|
9233
|
+
class: ["j-menu-vertical", { "j-menu-dark": G(a) === "dark" }]
|
|
9234
|
+
}, G(d)), [
|
|
9235
|
+
F("div", la(sl(G(f))), [
|
|
9236
|
+
(C(!0), O(ye, null, Ee(G(u), (g) => (C(), H(sa, {
|
|
9233
9237
|
key: g.data.value,
|
|
9234
9238
|
"parent-actives": s.value,
|
|
9235
9239
|
item: g.data,
|
|
@@ -9424,48 +9428,48 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9424
9428
|
const p = B("j-icon"), g = B("el-input"), v = B("j-checkbox");
|
|
9425
9429
|
return C(), O("div", mg, [
|
|
9426
9430
|
F("div", {
|
|
9427
|
-
class:
|
|
9431
|
+
class: Me(["range-item", { active: i.value }]),
|
|
9428
9432
|
onClick: c
|
|
9429
9433
|
}, [
|
|
9430
|
-
F("div", null, be(
|
|
9434
|
+
F("div", null, be(G(n)("搜索全部")), 1),
|
|
9431
9435
|
i.value ? (C(), H(p, {
|
|
9432
9436
|
key: 0,
|
|
9433
9437
|
icon: "mdi:check"
|
|
9434
|
-
})) :
|
|
9438
|
+
})) : Y("", !0)
|
|
9435
9439
|
], 2),
|
|
9436
9440
|
F("div", {
|
|
9437
9441
|
class: "range-item",
|
|
9438
9442
|
onClick: h[0] || (h[0] = (y) => l.value = !l.value)
|
|
9439
9443
|
}, [
|
|
9440
|
-
F("div", null, be(
|
|
9441
|
-
|
|
9444
|
+
F("div", null, be(G(n)("搜索特定字段")), 1),
|
|
9445
|
+
K(p, {
|
|
9442
9446
|
icon: l.value ? "mdi:keyboard-arrow-up" : "mdi:keyboard-arrow-down"
|
|
9443
9447
|
}, null, 8, ["icon"])
|
|
9444
9448
|
]),
|
|
9445
9449
|
l.value ? (C(), O("div", yg, [
|
|
9446
|
-
|
|
9450
|
+
K(g, {
|
|
9447
9451
|
modelValue: r.value,
|
|
9448
9452
|
"onUpdate:modelValue": h[1] || (h[1] = (y) => r.value = y),
|
|
9449
9453
|
modelModifiers: { trim: !0 },
|
|
9450
9454
|
class: "no-border background",
|
|
9451
|
-
placeholder:
|
|
9455
|
+
placeholder: G(n)("搜索"),
|
|
9452
9456
|
clearable: ""
|
|
9453
9457
|
}, {
|
|
9454
9458
|
prefix: V(() => [
|
|
9455
|
-
|
|
9459
|
+
K(p, { icon: "mdi:search" })
|
|
9456
9460
|
]),
|
|
9457
9461
|
_: 1
|
|
9458
9462
|
}, 8, ["modelValue", "placeholder"])
|
|
9459
|
-
])) :
|
|
9463
|
+
])) : Y("", !0),
|
|
9460
9464
|
l.value ? (C(), O("div", bg, [
|
|
9461
|
-
|
|
9465
|
+
K(v, {
|
|
9462
9466
|
modelValue: a.value,
|
|
9463
9467
|
"onUpdate:modelValue": h[2] || (h[2] = (y) => a.value = y),
|
|
9464
9468
|
options: s.value,
|
|
9465
9469
|
style: { display: "flex", "flex-direction": "column" },
|
|
9466
9470
|
onChange: u
|
|
9467
9471
|
}, null, 8, ["modelValue", "options"])
|
|
9468
|
-
])) :
|
|
9472
|
+
])) : Y("", !0)
|
|
9469
9473
|
]);
|
|
9470
9474
|
};
|
|
9471
9475
|
}
|
|
@@ -9644,17 +9648,17 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9644
9648
|
}), (b, w) => {
|
|
9645
9649
|
const x = B("j-icon"), _ = B("j-select"), m = B("j-button-select"), E = B("j-button"), S = B("j-input-rows"), T = B("el-tooltip");
|
|
9646
9650
|
return C(), O("div", {
|
|
9647
|
-
class:
|
|
9651
|
+
class: Me(["j-filter-panel", { "is-pin": l.value }])
|
|
9648
9652
|
}, [
|
|
9649
9653
|
l.value ? (C(), O("div", xg, [
|
|
9650
|
-
|
|
9651
|
-
F("div", null, be(
|
|
9652
|
-
])) :
|
|
9654
|
+
K(x, { icon: "mdi:filter-outline" }),
|
|
9655
|
+
F("div", null, be(G(o)("筛选")), 1)
|
|
9656
|
+
])) : Y("", !0),
|
|
9653
9657
|
F("div", Cg, [
|
|
9654
9658
|
F("div", Sg, [
|
|
9655
|
-
F("div", null, be(
|
|
9659
|
+
F("div", null, be(G(o)("筛选出符合以下")), 1),
|
|
9656
9660
|
F("div", _g, [
|
|
9657
|
-
|
|
9661
|
+
K(_, {
|
|
9658
9662
|
modelValue: a.value,
|
|
9659
9663
|
"onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
|
|
9660
9664
|
teleported: !1,
|
|
@@ -9665,10 +9669,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9665
9669
|
]
|
|
9666
9670
|
}, null, 8, ["modelValue"])
|
|
9667
9671
|
]),
|
|
9668
|
-
F("div", null, be(
|
|
9672
|
+
F("div", null, be(G(o)("条件的数据")), 1)
|
|
9669
9673
|
]),
|
|
9670
9674
|
F("div", Eg, [
|
|
9671
|
-
|
|
9675
|
+
K(m, {
|
|
9672
9676
|
label: "添加过滤条件",
|
|
9673
9677
|
options: u.value,
|
|
9674
9678
|
"model-value": d.value.join(","),
|
|
@@ -9680,10 +9684,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9680
9684
|
danger: "",
|
|
9681
9685
|
label: "删除全部",
|
|
9682
9686
|
onClick: p
|
|
9683
|
-
})) :
|
|
9687
|
+
})) : Y("", !0)
|
|
9684
9688
|
]),
|
|
9685
9689
|
F("div", kg, [
|
|
9686
|
-
|
|
9690
|
+
K(S, {
|
|
9687
9691
|
modelValue: r.value,
|
|
9688
9692
|
"onUpdate:modelValue": w[1] || (w[1] = (P) => r.value = P),
|
|
9689
9693
|
columns: c,
|
|
@@ -9691,16 +9695,16 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9691
9695
|
"is-wrap": l.value
|
|
9692
9696
|
}, null, 8, ["modelValue", "is-wrap"])
|
|
9693
9697
|
]),
|
|
9694
|
-
|
|
9698
|
+
K(T, {
|
|
9695
9699
|
placement: "bottom",
|
|
9696
|
-
content: l.value ?
|
|
9700
|
+
content: l.value ? G(o)("取消固定") : G(o)("固定显示")
|
|
9697
9701
|
}, {
|
|
9698
9702
|
default: V(() => [
|
|
9699
9703
|
F("div", {
|
|
9700
9704
|
class: "pin-btn",
|
|
9701
9705
|
onClick: s
|
|
9702
9706
|
}, [
|
|
9703
|
-
|
|
9707
|
+
K(x, {
|
|
9704
9708
|
rotate: 45,
|
|
9705
9709
|
icon: l.value ? "mdi:keep-off" : "mdi:keep"
|
|
9706
9710
|
}, null, 8, ["icon"])
|
|
@@ -9710,13 +9714,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9710
9714
|
}, 8, ["content"])
|
|
9711
9715
|
]),
|
|
9712
9716
|
F("div", Rg, [
|
|
9713
|
-
|
|
9714
|
-
label:
|
|
9717
|
+
K(E, {
|
|
9718
|
+
label: G(o)("筛选"),
|
|
9715
9719
|
type: "primary",
|
|
9716
9720
|
onClick: g
|
|
9717
9721
|
}, null, 8, ["label"]),
|
|
9718
|
-
|
|
9719
|
-
label:
|
|
9722
|
+
K(E, {
|
|
9723
|
+
label: G(o)("清空"),
|
|
9720
9724
|
icon: "mdi:delete-sweep-outline",
|
|
9721
9725
|
type: "text",
|
|
9722
9726
|
onClick: v
|
|
@@ -9778,7 +9782,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9778
9782
|
return C(), O("div", Tg, [
|
|
9779
9783
|
F("div", Mg, [
|
|
9780
9784
|
F("div", Pg, [
|
|
9781
|
-
|
|
9785
|
+
K(v, {
|
|
9782
9786
|
label: "添加排序规则",
|
|
9783
9787
|
options: l.value,
|
|
9784
9788
|
"model-value": s.value.join(","),
|
|
@@ -9786,7 +9790,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9786
9790
|
}, null, 8, ["options", "model-value"])
|
|
9787
9791
|
]),
|
|
9788
9792
|
F("div", Ag, [
|
|
9789
|
-
|
|
9793
|
+
K(y, {
|
|
9790
9794
|
modelValue: r.value,
|
|
9791
9795
|
"onUpdate:modelValue": g[0] || (g[0] = (w) => r.value = w),
|
|
9792
9796
|
columns: c,
|
|
@@ -9795,18 +9799,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9795
9799
|
])
|
|
9796
9800
|
]),
|
|
9797
9801
|
F("div", jg, [
|
|
9798
|
-
|
|
9799
|
-
label:
|
|
9802
|
+
K(b, {
|
|
9803
|
+
label: G(o)("排序"),
|
|
9800
9804
|
type: "primary",
|
|
9801
9805
|
onClick: f
|
|
9802
9806
|
}, null, 8, ["label"]),
|
|
9803
9807
|
r.value.length > 0 ? (C(), H(b, {
|
|
9804
9808
|
key: 0,
|
|
9805
|
-
label:
|
|
9809
|
+
label: G(o)("清空排序"),
|
|
9806
9810
|
icon: "mdi:delete-sweep",
|
|
9807
9811
|
type: "text",
|
|
9808
9812
|
onClick: h
|
|
9809
|
-
}, null, 8, ["label"])) :
|
|
9813
|
+
}, null, 8, ["label"])) : Y("", !0)
|
|
9810
9814
|
])
|
|
9811
9815
|
]);
|
|
9812
9816
|
};
|
|
@@ -9918,21 +9922,21 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9918
9922
|
return C(), O("div", Og, [
|
|
9919
9923
|
F("div", Ig, [
|
|
9920
9924
|
F("div", Bg, [
|
|
9921
|
-
|
|
9925
|
+
K(T, {
|
|
9922
9926
|
modelValue: r.value,
|
|
9923
9927
|
"onUpdate:modelValue": E[0] || (E[0] = (D) => r.value = D),
|
|
9924
9928
|
modelModifiers: { trim: !0 },
|
|
9925
|
-
placeholder:
|
|
9929
|
+
placeholder: G(o)("搜索 (多个关键词用空格隔开)"),
|
|
9926
9930
|
clearable: ""
|
|
9927
9931
|
}, {
|
|
9928
9932
|
prefix: V(() => [
|
|
9929
|
-
|
|
9933
|
+
K(S, { icon: "mdi:search" })
|
|
9930
9934
|
]),
|
|
9931
9935
|
_: 1
|
|
9932
9936
|
}, 8, ["modelValue", "placeholder"])
|
|
9933
9937
|
]),
|
|
9934
9938
|
F("div", Lg, [
|
|
9935
|
-
|
|
9939
|
+
K(P, {
|
|
9936
9940
|
ref_key: "treeRef",
|
|
9937
9941
|
ref: l,
|
|
9938
9942
|
list: h.value,
|
|
@@ -9948,13 +9952,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
9948
9952
|
])
|
|
9949
9953
|
]),
|
|
9950
9954
|
F("div", $g, [
|
|
9951
|
-
|
|
9952
|
-
label:
|
|
9955
|
+
K(R, {
|
|
9956
|
+
label: G(o)("确定"),
|
|
9953
9957
|
type: "primary",
|
|
9954
9958
|
onClick: w
|
|
9955
9959
|
}, null, 8, ["label"]),
|
|
9956
|
-
|
|
9957
|
-
label:
|
|
9960
|
+
K(R, {
|
|
9961
|
+
label: G(o)("重置"),
|
|
9958
9962
|
icon: "mdi:restore",
|
|
9959
9963
|
type: "text",
|
|
9960
9964
|
onClick: x
|
|
@@ -10155,18 +10159,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10155
10159
|
}), Ht.push(it);
|
|
10156
10160
|
}
|
|
10157
10161
|
}), Ht;
|
|
10158
|
-
}, E = j(() => m(a.columns,
|
|
10162
|
+
}, E = j(() => m(a.columns, Q.value)), S = j(() => nf(a.columns, (ve) => ve.config.label)), T = A(""), P = j(() => S.value.some((ve) => ve.config?.filter?.isSearchKeyword)), R = A(), D = A(!0), z = A([]), $ = j(() => D.value ? "搜索全部" : `搜索范围:${S.value.filter((ve) => z.value.includes(ve.id)).map((ve) => ve.config?.label).join("、")}`), M = () => {
|
|
10159
10163
|
R.value.init();
|
|
10160
|
-
}, k = A(), I = A(!1), N = A(!1), re = A(!1), se = A([]), pe = A("and"), Be = A(), at = A(!1),
|
|
10161
|
-
Be.value.init(
|
|
10162
|
-
},
|
|
10163
|
-
|
|
10164
|
+
}, k = A(), I = A(!1), N = A(!1), re = A(!1), se = A([]), pe = A("and"), Be = A(), at = A(!1), ee = A([]), $e = () => {
|
|
10165
|
+
Be.value.init(ee.value);
|
|
10166
|
+
}, Ne = (ve) => {
|
|
10167
|
+
ee.value = ve, at.value = !1, U();
|
|
10164
10168
|
}, Se = () => {
|
|
10165
|
-
|
|
10166
|
-
}, Qe = A(), lt = A(!1),
|
|
10169
|
+
ee.value = [], U();
|
|
10170
|
+
}, Qe = A(), lt = A(!1), Q = A(), fe = j(() => Q.value != null), ke = () => {
|
|
10167
10171
|
Qe.value?.init();
|
|
10168
10172
|
}, et = (ve) => {
|
|
10169
|
-
console.log("handleColumnSave:", ve),
|
|
10173
|
+
console.log("handleColumnSave:", ve), Q.value = ve, lt.value = !1;
|
|
10170
10174
|
}, ft = A(!1), Lt = () => {
|
|
10171
10175
|
ft.value = !ft.value;
|
|
10172
10176
|
}, De = () => {
|
|
@@ -10221,10 +10225,10 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10221
10225
|
value: ce.value,
|
|
10222
10226
|
type: ce.type
|
|
10223
10227
|
})), he.cond.length > 0 ? re.value = !0 : re.value = !1, ve.filter = he;
|
|
10224
|
-
const Ht =
|
|
10228
|
+
const Ht = ee.value.map((ce) => ce.value + " " + ce.sord).join(",");
|
|
10225
10229
|
if (T.value && (ve.keyword = {
|
|
10226
10230
|
value: T.value,
|
|
10227
|
-
fields: D.value ? S.value.filter((ce) => ce.config?.filter?.isSearchKeyword).map((ce) => ce.id) :
|
|
10231
|
+
fields: D.value ? S.value.filter((ce) => ce.config?.filter?.isSearchKeyword).map((ce) => ce.id) : G(z)
|
|
10228
10232
|
}), a.loadData) {
|
|
10229
10233
|
if (a.isPage) {
|
|
10230
10234
|
ve.pagination = {
|
|
@@ -10241,19 +10245,19 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10241
10245
|
} finally {
|
|
10242
10246
|
h.value = Math.max(0, h.value - 1);
|
|
10243
10247
|
}
|
|
10244
|
-
},
|
|
10248
|
+
}, U = async () => {
|
|
10245
10249
|
u.value = 1, await Kt();
|
|
10246
10250
|
}, le = ({ rows: ve, page: he }) => {
|
|
10247
10251
|
d = ve, u.value = he, Kt();
|
|
10248
10252
|
}, X = async () => {
|
|
10249
10253
|
g.value = [], v.value = !1, u.value = 1, await Kt();
|
|
10250
|
-
},
|
|
10254
|
+
}, te = async () => {
|
|
10251
10255
|
g.value = [], v.value = !1, await Kt();
|
|
10252
10256
|
}, ie = async () => {
|
|
10253
10257
|
await X();
|
|
10254
10258
|
}, ge = (ve) => {
|
|
10255
10259
|
l("ready", ve);
|
|
10256
|
-
},
|
|
10260
|
+
}, Re = (ve) => {
|
|
10257
10261
|
let he = [];
|
|
10258
10262
|
if (!a.isMultiple) {
|
|
10259
10263
|
g.value = ve, l("select", ve);
|
|
@@ -10271,15 +10275,15 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10271
10275
|
}), he = Array.from(Ht.values());
|
|
10272
10276
|
}
|
|
10273
10277
|
g.value = he, l("select", he), v.value && he.length === 0 ? (v.value = !1, r.value && r.value.setRecords(s)) : v.value && he.length > 0 && r.value && (r.value.setRecords(he), r.value.setSelection?.(he));
|
|
10274
|
-
},
|
|
10278
|
+
}, Fe = () => g.value || [], Mt = (ve) => {
|
|
10275
10279
|
g.value = ve, r.value?.setSelection?.(ve);
|
|
10276
10280
|
}, tt = () => r.value?.getInstance?.();
|
|
10277
10281
|
return Ct(async () => {
|
|
10278
|
-
a.immediate && await
|
|
10282
|
+
a.immediate && await te();
|
|
10279
10283
|
}), t({
|
|
10280
|
-
refreshData:
|
|
10284
|
+
refreshData: te,
|
|
10281
10285
|
resetData: X,
|
|
10282
|
-
getSelection:
|
|
10286
|
+
getSelection: Fe,
|
|
10283
10287
|
setSelection: Mt,
|
|
10284
10288
|
clearSelection: () => {
|
|
10285
10289
|
De();
|
|
@@ -10288,64 +10292,64 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10288
10292
|
}), (ve, he) => {
|
|
10289
10293
|
const St = B("j-buttons"), Ht = B("j-icon"), ce = B("el-popover"), it = B("el-tooltip"), Wn = B("el-input"), xn = B("j-button"), _a = B("j-table");
|
|
10290
10294
|
return C(), O("div", {
|
|
10291
|
-
class:
|
|
10295
|
+
class: Me([
|
|
10292
10296
|
"j-table-panel-wrapper",
|
|
10293
10297
|
{ fullscreen: ft.value, "no-padding": e.noPadding || ft.value }
|
|
10294
10298
|
])
|
|
10295
10299
|
}, [
|
|
10296
10300
|
F("div", {
|
|
10297
|
-
class:
|
|
10301
|
+
class: Me(["j-table-panel", { "j-table-panel-fullscreen": ft.value }])
|
|
10298
10302
|
}, [
|
|
10299
10303
|
F("div", Dg, [
|
|
10300
10304
|
F("div", Fg, [
|
|
10301
10305
|
F("div", Vg, [
|
|
10302
|
-
|
|
10306
|
+
K(St, { list: bn.value }, null, 8, ["list"])
|
|
10303
10307
|
]),
|
|
10304
10308
|
F("div", Ng, [
|
|
10305
10309
|
P.value && !w.value ? (C(), O("div", Wg, [
|
|
10306
|
-
|
|
10310
|
+
K(Wn, {
|
|
10307
10311
|
modelValue: T.value,
|
|
10308
|
-
"onUpdate:modelValue": he[2] || (he[2] = (
|
|
10312
|
+
"onUpdate:modelValue": he[2] || (he[2] = (We) => T.value = We),
|
|
10309
10313
|
modelModifiers: { trim: !0 },
|
|
10310
|
-
placeholder:
|
|
10314
|
+
placeholder: G(o)("搜索数据"),
|
|
10311
10315
|
clearable: "",
|
|
10312
10316
|
class: "j-suffix",
|
|
10313
|
-
onKeyup: $a(
|
|
10314
|
-
onClear:
|
|
10317
|
+
onKeyup: $a(U, ["enter"]),
|
|
10318
|
+
onClear: U
|
|
10315
10319
|
}, {
|
|
10316
10320
|
prefix: V(() => [
|
|
10317
|
-
|
|
10321
|
+
K(Ht, { icon: "mdi:search" })
|
|
10318
10322
|
]),
|
|
10319
10323
|
suffix: V(() => [
|
|
10320
|
-
|
|
10324
|
+
K(it, {
|
|
10321
10325
|
placement: "bottom",
|
|
10322
10326
|
content: $.value
|
|
10323
10327
|
}, {
|
|
10324
10328
|
default: V(() => [
|
|
10325
10329
|
F("div", null, [
|
|
10326
|
-
|
|
10330
|
+
K(ce, {
|
|
10327
10331
|
placement: "bottom-end",
|
|
10328
10332
|
"popper-style": "padding: 0",
|
|
10329
10333
|
width: 200,
|
|
10330
10334
|
trigger: "click",
|
|
10331
10335
|
"show-arrow": !1,
|
|
10332
10336
|
onShow: M,
|
|
10333
|
-
onHide:
|
|
10337
|
+
onHide: U
|
|
10334
10338
|
}, {
|
|
10335
10339
|
reference: V(() => [
|
|
10336
|
-
|
|
10340
|
+
K(Ht, {
|
|
10337
10341
|
icon: "mdi:keyboard-arrow-down",
|
|
10338
10342
|
style: { cursor: "pointer" }
|
|
10339
10343
|
})
|
|
10340
10344
|
]),
|
|
10341
10345
|
default: V(() => [
|
|
10342
|
-
|
|
10346
|
+
K(wg, {
|
|
10343
10347
|
ref_key: "keywordPanelRef",
|
|
10344
10348
|
ref: R,
|
|
10345
10349
|
"check-all": D.value,
|
|
10346
|
-
"onUpdate:checkAll": he[0] || (he[0] = (
|
|
10350
|
+
"onUpdate:checkAll": he[0] || (he[0] = (We) => D.value = We),
|
|
10347
10351
|
"check-fields": z.value,
|
|
10348
|
-
"onUpdate:checkFields": he[1] || (he[1] = (
|
|
10352
|
+
"onUpdate:checkFields": he[1] || (he[1] = (We) => z.value = We),
|
|
10349
10353
|
columns: S.value
|
|
10350
10354
|
}, null, 8, ["check-all", "check-fields", "columns"])
|
|
10351
10355
|
]),
|
|
@@ -10358,52 +10362,52 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10358
10362
|
]),
|
|
10359
10363
|
_: 1
|
|
10360
10364
|
}, 8, ["modelValue", "placeholder"])
|
|
10361
|
-
])) :
|
|
10365
|
+
])) : Y("", !0),
|
|
10362
10366
|
!I.value && !w.value ? (C(), H(ce, {
|
|
10363
10367
|
key: 1,
|
|
10364
10368
|
visible: N.value,
|
|
10365
|
-
"onUpdate:visible": he[6] || (he[6] = (
|
|
10369
|
+
"onUpdate:visible": he[6] || (he[6] = (We) => N.value = We),
|
|
10366
10370
|
placement: "bottom",
|
|
10367
10371
|
"popper-style": "padding: 0",
|
|
10368
10372
|
width: 644,
|
|
10369
10373
|
trigger: "click",
|
|
10370
10374
|
persistent: !1,
|
|
10371
|
-
onHide:
|
|
10375
|
+
onHide: U
|
|
10372
10376
|
}, {
|
|
10373
10377
|
reference: V(() => [
|
|
10374
|
-
|
|
10378
|
+
K(xn, {
|
|
10375
10379
|
icon: "mdi:filter-outline",
|
|
10376
10380
|
label: "筛选",
|
|
10377
10381
|
type: "text",
|
|
10378
|
-
class:
|
|
10382
|
+
class: Me({ active: re.value })
|
|
10379
10383
|
}, null, 8, ["class"])
|
|
10380
10384
|
]),
|
|
10381
10385
|
default: V(() => [
|
|
10382
|
-
|
|
10386
|
+
K(gr, {
|
|
10383
10387
|
ref_key: "filterPanelRef",
|
|
10384
10388
|
ref: k,
|
|
10385
10389
|
"is-pin": I.value,
|
|
10386
|
-
"onUpdate:isPin": he[3] || (he[3] = (
|
|
10390
|
+
"onUpdate:isPin": he[3] || (he[3] = (We) => I.value = We),
|
|
10387
10391
|
relation: pe.value,
|
|
10388
|
-
"onUpdate:relation": he[4] || (he[4] = (
|
|
10392
|
+
"onUpdate:relation": he[4] || (he[4] = (We) => pe.value = We),
|
|
10389
10393
|
"search-field-list": se.value,
|
|
10390
10394
|
columns: S.value,
|
|
10391
|
-
onFilter:
|
|
10392
|
-
onClose: he[5] || (he[5] = (
|
|
10395
|
+
onFilter: U,
|
|
10396
|
+
onClose: he[5] || (he[5] = (We) => N.value = !1)
|
|
10393
10397
|
}, null, 8, ["is-pin", "relation", "search-field-list", "columns"])
|
|
10394
10398
|
]),
|
|
10395
10399
|
_: 1
|
|
10396
|
-
}, 8, ["visible"])) :
|
|
10397
|
-
w.value ?
|
|
10400
|
+
}, 8, ["visible"])) : Y("", !0),
|
|
10401
|
+
w.value ? Y("", !0) : (C(), H(it, {
|
|
10398
10402
|
key: 2,
|
|
10399
10403
|
placement: "bottom",
|
|
10400
|
-
content:
|
|
10404
|
+
content: G(o)("排序")
|
|
10401
10405
|
}, {
|
|
10402
10406
|
default: V(() => [
|
|
10403
10407
|
F("div", null, [
|
|
10404
|
-
|
|
10408
|
+
K(ce, {
|
|
10405
10409
|
visible: at.value,
|
|
10406
|
-
"onUpdate:visible": he[7] || (he[7] = (
|
|
10410
|
+
"onUpdate:visible": he[7] || (he[7] = (We) => at.value = We),
|
|
10407
10411
|
placement: "bottom",
|
|
10408
10412
|
"popper-style": "padding: 0",
|
|
10409
10413
|
width: 380,
|
|
@@ -10411,18 +10415,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10411
10415
|
onShow: $e
|
|
10412
10416
|
}, {
|
|
10413
10417
|
reference: V(() => [
|
|
10414
|
-
|
|
10415
|
-
class:
|
|
10418
|
+
K(xn, {
|
|
10419
|
+
class: Me({ active: ee.value.length > 0 }),
|
|
10416
10420
|
type: "text",
|
|
10417
10421
|
icon: "mdi:sort"
|
|
10418
10422
|
}, null, 8, ["class"])
|
|
10419
10423
|
]),
|
|
10420
10424
|
default: V(() => [
|
|
10421
|
-
|
|
10425
|
+
K(Hg, {
|
|
10422
10426
|
ref_key: "orderPanelRef",
|
|
10423
10427
|
ref: Be,
|
|
10424
10428
|
columns: S.value,
|
|
10425
|
-
onSave:
|
|
10429
|
+
onSave: Ne,
|
|
10426
10430
|
onClear: Se
|
|
10427
10431
|
}, null, 8, ["columns"])
|
|
10428
10432
|
]),
|
|
@@ -10432,16 +10436,16 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10432
10436
|
]),
|
|
10433
10437
|
_: 1
|
|
10434
10438
|
}, 8, ["content"])),
|
|
10435
|
-
w.value ?
|
|
10439
|
+
w.value ? Y("", !0) : (C(), H(it, {
|
|
10436
10440
|
key: 3,
|
|
10437
10441
|
placement: "bottom",
|
|
10438
|
-
content:
|
|
10442
|
+
content: G(o)("显示字段")
|
|
10439
10443
|
}, {
|
|
10440
10444
|
default: V(() => [
|
|
10441
10445
|
F("div", null, [
|
|
10442
|
-
|
|
10446
|
+
K(ce, {
|
|
10443
10447
|
visible: lt.value,
|
|
10444
|
-
"onUpdate:visible": he[8] || (he[8] = (
|
|
10448
|
+
"onUpdate:visible": he[8] || (he[8] = (We) => lt.value = We),
|
|
10445
10449
|
placement: "bottom",
|
|
10446
10450
|
"popper-style": "padding: 0",
|
|
10447
10451
|
width: 400,
|
|
@@ -10449,18 +10453,18 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10449
10453
|
onShow: ke
|
|
10450
10454
|
}, {
|
|
10451
10455
|
reference: V(() => [
|
|
10452
|
-
|
|
10453
|
-
class:
|
|
10456
|
+
K(xn, {
|
|
10457
|
+
class: Me({ active: fe.value }),
|
|
10454
10458
|
type: "text",
|
|
10455
10459
|
icon: "mdi:table-headers-eye"
|
|
10456
10460
|
}, null, 8, ["class"])
|
|
10457
10461
|
]),
|
|
10458
10462
|
default: V(() => [
|
|
10459
|
-
|
|
10463
|
+
K(zg, {
|
|
10460
10464
|
ref_key: "columnPanelRef",
|
|
10461
10465
|
ref: Qe,
|
|
10462
10466
|
columns: e.columns,
|
|
10463
|
-
"column-config":
|
|
10467
|
+
"column-config": Q.value,
|
|
10464
10468
|
onSave: et
|
|
10465
10469
|
}, null, 8, ["columns", "column-config"])
|
|
10466
10470
|
]),
|
|
@@ -10470,13 +10474,13 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10470
10474
|
]),
|
|
10471
10475
|
_: 1
|
|
10472
10476
|
}, 8, ["content"])),
|
|
10473
|
-
w.value ?
|
|
10477
|
+
w.value ? Y("", !0) : (C(), H(it, {
|
|
10474
10478
|
key: 4,
|
|
10475
10479
|
placement: "bottom",
|
|
10476
|
-
content:
|
|
10480
|
+
content: G(o)("刷新")
|
|
10477
10481
|
}, {
|
|
10478
10482
|
default: V(() => [
|
|
10479
|
-
|
|
10483
|
+
K(xn, {
|
|
10480
10484
|
type: "text",
|
|
10481
10485
|
icon: "mdi:refresh",
|
|
10482
10486
|
onClick: ie
|
|
@@ -10484,12 +10488,12 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10484
10488
|
]),
|
|
10485
10489
|
_: 1
|
|
10486
10490
|
}, 8, ["content"])),
|
|
10487
|
-
|
|
10491
|
+
K(it, {
|
|
10488
10492
|
placement: "bottom",
|
|
10489
|
-
content: ft.value ?
|
|
10493
|
+
content: ft.value ? G(o)("退出全屏") : G(o)("全屏")
|
|
10490
10494
|
}, {
|
|
10491
10495
|
default: V(() => [
|
|
10492
|
-
|
|
10496
|
+
K(xn, {
|
|
10493
10497
|
type: "text",
|
|
10494
10498
|
icon: ft.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
10495
10499
|
onClick: Lt
|
|
@@ -10502,24 +10506,24 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10502
10506
|
F("div", Ug, [
|
|
10503
10507
|
dn(F("div", Yg, [
|
|
10504
10508
|
F("div", Gg, [
|
|
10505
|
-
|
|
10509
|
+
K(Ht, {
|
|
10506
10510
|
icon: "mdi:loading",
|
|
10507
10511
|
class: "loading-spin",
|
|
10508
10512
|
size: 24
|
|
10509
10513
|
}),
|
|
10510
|
-
F("div", Kg, be(
|
|
10514
|
+
F("div", Kg, be(G(o)("加载中")), 1)
|
|
10511
10515
|
])
|
|
10512
10516
|
], 512), [
|
|
10513
10517
|
[Xo, p.value]
|
|
10514
10518
|
]),
|
|
10515
|
-
|
|
10519
|
+
K(_a, {
|
|
10516
10520
|
ref_key: "tableRef",
|
|
10517
10521
|
ref: r,
|
|
10518
10522
|
"table-page": u.value,
|
|
10519
|
-
"onUpdate:tablePage": he[9] || (he[9] = (
|
|
10523
|
+
"onUpdate:tablePage": he[9] || (he[9] = (We) => u.value = We),
|
|
10520
10524
|
columns: E.value,
|
|
10521
10525
|
"sub-columns": e.subColumns,
|
|
10522
|
-
records:
|
|
10526
|
+
records: G(s),
|
|
10523
10527
|
"is-tree": e.isTree,
|
|
10524
10528
|
"is-show-number": e.isShowNumber,
|
|
10525
10529
|
"is-sub-show-number": e.isSubShowNumber,
|
|
@@ -10537,23 +10541,23 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10537
10541
|
"load-children": e.loadChildren,
|
|
10538
10542
|
onLoadPageData: le,
|
|
10539
10543
|
onReady: ge,
|
|
10540
|
-
onSelectionChanged:
|
|
10544
|
+
onSelectionChanged: Re
|
|
10541
10545
|
}, null, 8, ["table-page", "columns", "sub-columns", "records", "is-tree", "is-show-number", "is-sub-show-number", "is-multiple", "is-page", "page-sizes", "page-size", "page-total", "row-key", "actions", "sub-actions", "actions-max-count", "actions-label", "highlight-mode", "load-children"])
|
|
10542
10546
|
])
|
|
10543
10547
|
]),
|
|
10544
10548
|
I.value && !w.value ? (C(), O("div", Jg, [
|
|
10545
|
-
|
|
10549
|
+
K(gr, {
|
|
10546
10550
|
ref_key: "filterPanelRef",
|
|
10547
10551
|
ref: k,
|
|
10548
10552
|
"is-pin": I.value,
|
|
10549
|
-
"onUpdate:isPin": he[10] || (he[10] = (
|
|
10553
|
+
"onUpdate:isPin": he[10] || (he[10] = (We) => I.value = We),
|
|
10550
10554
|
relation: pe.value,
|
|
10551
|
-
"onUpdate:relation": he[11] || (he[11] = (
|
|
10555
|
+
"onUpdate:relation": he[11] || (he[11] = (We) => pe.value = We),
|
|
10552
10556
|
"search-field-list": se.value,
|
|
10553
10557
|
columns: S.value,
|
|
10554
|
-
onFilter:
|
|
10558
|
+
onFilter: U
|
|
10555
10559
|
}, null, 8, ["is-pin", "relation", "search-field-list", "columns"])
|
|
10556
|
-
])) :
|
|
10560
|
+
])) : Y("", !0)
|
|
10557
10561
|
], 2)
|
|
10558
10562
|
], 2);
|
|
10559
10563
|
};
|
|
@@ -10586,7 +10590,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10586
10590
|
offset: 4
|
|
10587
10591
|
}, {
|
|
10588
10592
|
reference: V(() => [
|
|
10589
|
-
|
|
10593
|
+
K(d, {
|
|
10590
10594
|
style: { "justify-content": "flex-start", padding: "4px 0", border: "0" },
|
|
10591
10595
|
icon: "mdi:add",
|
|
10592
10596
|
label: e.label,
|
|
@@ -10596,16 +10600,16 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10596
10600
|
default: V(() => [
|
|
10597
10601
|
F("div", qg, [
|
|
10598
10602
|
F("div", Zg, [
|
|
10599
|
-
|
|
10603
|
+
K(h, {
|
|
10600
10604
|
modelValue: a.value,
|
|
10601
10605
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => a.value = g),
|
|
10602
10606
|
modelModifiers: { trim: !0 },
|
|
10603
|
-
placeholder:
|
|
10607
|
+
placeholder: G(i)("搜索"),
|
|
10604
10608
|
class: "no-border",
|
|
10605
10609
|
clearable: ""
|
|
10606
10610
|
}, {
|
|
10607
10611
|
prefix: V(() => [
|
|
10608
|
-
|
|
10612
|
+
K(f, { icon: "mdi:search" })
|
|
10609
10613
|
]),
|
|
10610
10614
|
_: 1
|
|
10611
10615
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -10613,15 +10617,15 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10613
10617
|
F("div", Qg, [
|
|
10614
10618
|
(C(!0), O(ye, null, Ee(l.value, (g) => (C(), O("div", {
|
|
10615
10619
|
key: g.value,
|
|
10616
|
-
class:
|
|
10620
|
+
class: Me(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
10617
10621
|
onClick: kt((v) => s(g), ["stop"])
|
|
10618
10622
|
}, [
|
|
10619
10623
|
g.icon ? (C(), H(f, {
|
|
10620
10624
|
key: 0,
|
|
10621
10625
|
class: "j-button-select-icon",
|
|
10622
10626
|
icon: g.icon
|
|
10623
|
-
}, null, 8, ["icon"])) :
|
|
10624
|
-
F("div", null, be(
|
|
10627
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
10628
|
+
F("div", null, be(G(i)(g.label)), 1)
|
|
10625
10629
|
], 10, ev))), 128))
|
|
10626
10630
|
])
|
|
10627
10631
|
])
|
|
@@ -10874,7 +10878,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10874
10878
|
pidKey: o.pidKey,
|
|
10875
10879
|
idKey: o.idKey,
|
|
10876
10880
|
notLoad: !0
|
|
10877
|
-
}) || [] : []), g = j(() => o.dataCode || o.dataType ? p.value : o.list ?
|
|
10881
|
+
}) || [] : []), g = j(() => o.dataCode || o.dataType ? p.value : o.list ? G(o.list) : f.value), v = async () => {
|
|
10878
10882
|
u.value = !0, o.loadData && (f.value = await o.loadData() || []), s && await s(o.dataType, o.dataCode), u.value = !1, At(() => {
|
|
10879
10883
|
o.afterLoadData && o.afterLoadData(g.value || []);
|
|
10880
10884
|
});
|
|
@@ -10923,7 +10927,7 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10923
10927
|
}), ($, M) => {
|
|
10924
10928
|
const k = B("j-icon"), I = B("j-button"), N = B("el-dropdown-item"), re = B("el-dropdown-menu"), se = B("el-dropdown"), pe = B("el-tree"), Be = B("el-empty"), at = aa("loading");
|
|
10925
10929
|
return dn((C(), O("div", {
|
|
10926
|
-
class:
|
|
10930
|
+
class: Me(["j-block", "j-tree", { "j-tree-menu": e.theme === "menu" }]),
|
|
10927
10931
|
style: { "min-height": "60px" }
|
|
10928
10932
|
}, [
|
|
10929
10933
|
!u.value && g.value.length > 0 ? (C(), H(pe, {
|
|
@@ -10949,39 +10953,39 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10949
10953
|
onCheck: m,
|
|
10950
10954
|
onNodeDrop: E
|
|
10951
10955
|
}, {
|
|
10952
|
-
default: V(({ node:
|
|
10956
|
+
default: V(({ node: ee }) => [
|
|
10953
10957
|
F("div", {
|
|
10954
|
-
class:
|
|
10958
|
+
class: Me(["j-tree-item-wraper", { "is-focus": R.value === ee.data.value }])
|
|
10955
10959
|
}, [
|
|
10956
|
-
|
|
10960
|
+
ee.data.openIcon ? (C(), H(k, {
|
|
10957
10961
|
key: 0,
|
|
10958
10962
|
class: "j-tree-item-open-icon",
|
|
10959
10963
|
size: 18,
|
|
10960
|
-
icon:
|
|
10961
|
-
color:
|
|
10962
|
-
}, null, 8, ["icon", "color"])) :
|
|
10963
|
-
|
|
10964
|
+
icon: ee.data.openIcon,
|
|
10965
|
+
color: ee.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
10966
|
+
}, null, 8, ["icon", "color"])) : Y("", !0),
|
|
10967
|
+
ee.data[e.iconKey] || e.defaultIcon ? (C(), H(k, {
|
|
10964
10968
|
key: 1,
|
|
10965
10969
|
class: "j-tree-item-default-icon",
|
|
10966
10970
|
size: 18,
|
|
10967
|
-
icon:
|
|
10968
|
-
color:
|
|
10969
|
-
}, null, 8, ["icon", "color"])) :
|
|
10970
|
-
F("div", ov, be(
|
|
10971
|
-
S(
|
|
10972
|
-
(C(!0), O(ye, null, Ee(S(
|
|
10973
|
-
key:
|
|
10971
|
+
icon: ee.data[e.iconKey] || e.defaultIcon || "",
|
|
10972
|
+
color: ee.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
10973
|
+
}, null, 8, ["icon", "color"])) : Y("", !0),
|
|
10974
|
+
F("div", ov, be(ee.label), 1),
|
|
10975
|
+
S(ee.data).length ? (C(), O("div", iv, [
|
|
10976
|
+
(C(!0), O(ye, null, Ee(S(ee.data), ($e, Ne) => (C(), H(se, {
|
|
10977
|
+
key: Ne,
|
|
10974
10978
|
trigger: "click",
|
|
10975
|
-
onVisibleChange: (Se) => D(Se,
|
|
10979
|
+
onVisibleChange: (Se) => D(Se, ee.data)
|
|
10976
10980
|
}, {
|
|
10977
10981
|
dropdown: V(() => [
|
|
10978
|
-
|
|
10982
|
+
K(re, null, {
|
|
10979
10983
|
default: V(() => [
|
|
10980
10984
|
(C(!0), O(ye, null, Ee($e.children, (Se, Qe) => (C(), H(N, {
|
|
10981
10985
|
key: Qe,
|
|
10982
10986
|
disabled: Se.disabled,
|
|
10983
10987
|
divided: Se.divided,
|
|
10984
|
-
onClick: kt((lt) => P(Se,
|
|
10988
|
+
onClick: kt((lt) => P(Se, ee.data), ["stop"])
|
|
10985
10989
|
}, {
|
|
10986
10990
|
default: V(() => [
|
|
10987
10991
|
F("div", {
|
|
@@ -10993,8 +10997,8 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
10993
10997
|
Se.icon || e.buttonDefaultIcon ? (C(), H(k, {
|
|
10994
10998
|
key: 0,
|
|
10995
10999
|
icon: Se.icon || e.buttonDefaultIcon
|
|
10996
|
-
}, null, 8, ["icon"])) :
|
|
10997
|
-
F("div", null, be(
|
|
11000
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
11001
|
+
F("div", null, be(G(l)(Se.label)), 1)
|
|
10998
11002
|
], 4)
|
|
10999
11003
|
]),
|
|
11000
11004
|
_: 2
|
|
@@ -11004,20 +11008,20 @@ const mh = { class: "j-table-footer" }, yh = {
|
|
|
11004
11008
|
}, 1024)
|
|
11005
11009
|
]),
|
|
11006
11010
|
default: V(() => [
|
|
11007
|
-
|
|
11011
|
+
K(I, {
|
|
11008
11012
|
icon: $e.icon,
|
|
11009
11013
|
type: "text"
|
|
11010
11014
|
}, null, 8, ["icon"])
|
|
11011
11015
|
]),
|
|
11012
11016
|
_: 2
|
|
11013
11017
|
}, 1032, ["onVisibleChange"]))), 128))
|
|
11014
|
-
])) :
|
|
11018
|
+
])) : Y("", !0)
|
|
11015
11019
|
], 2)
|
|
11016
11020
|
]),
|
|
11017
11021
|
_: 1
|
|
11018
11022
|
}, 8, ["node-key", "default-checked-keys", "default-expanded-keys", "current-node-key", "data", "default-expand-all", "show-checkbox", "highlight-current", "accordion", "filter-node-method", "render-after-expand", "draggable", "expand-on-click-node"])) : (C(), O("div", av, [
|
|
11019
|
-
|
|
11020
|
-
description:
|
|
11023
|
+
K(Be, {
|
|
11024
|
+
description: G(l)(e.emptyDes)
|
|
11021
11025
|
}, null, 8, ["description"])
|
|
11022
11026
|
]))
|
|
11023
11027
|
], 2)), [
|
|
@@ -11138,7 +11142,7 @@ function pv(e, t) {
|
|
|
11138
11142
|
}, o = (a, l, r) => hv(a, l, r);
|
|
11139
11143
|
return {
|
|
11140
11144
|
validateForm: async () => {
|
|
11141
|
-
const a =
|
|
11145
|
+
const a = G(e), l = [];
|
|
11142
11146
|
n(l, a, "");
|
|
11143
11147
|
const r = await Promise.all(l), s = {};
|
|
11144
11148
|
return r.forEach((c) => {
|
|
@@ -11183,27 +11187,27 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11183
11187
|
const o = e, i = n, { useData: a, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } = Rt();
|
|
11184
11188
|
let p;
|
|
11185
11189
|
a && (p = a());
|
|
11186
|
-
const g = (
|
|
11187
|
-
d && d(
|
|
11190
|
+
const g = (U) => {
|
|
11191
|
+
d && d(U);
|
|
11188
11192
|
}, v = A(!1), y = j(() => o.config?.gutter || 16), b = j(() => o.config?.span || 24), w = j(() => o.config?.labelWidth), x = j(() => o.config?.labelPosition || "right"), _ = j(
|
|
11189
11193
|
() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)
|
|
11190
11194
|
), m = To({}), E = A({}), S = [], T = {}, P = A({});
|
|
11191
11195
|
let R = {}, D = {}, z = [], $ = {};
|
|
11192
|
-
const M = (
|
|
11193
|
-
i("change",
|
|
11194
|
-
}, k = (
|
|
11196
|
+
const M = (U) => {
|
|
11197
|
+
i("change", U);
|
|
11198
|
+
}, k = (U) => ml(T[U]?.type || "") && !T[U]?.config?.notInput || T[U]?.config?.isInput, I = (U) => ["j-table", "j-input-rows", "j-input-cards"].includes(T[U]?.type || "");
|
|
11195
11199
|
let N;
|
|
11196
|
-
const re = (
|
|
11197
|
-
Object.keys(
|
|
11198
|
-
const
|
|
11199
|
-
le && (X = le + "." + X),
|
|
11200
|
+
const re = (U, le) => {
|
|
11201
|
+
Object.keys(U).forEach((X) => {
|
|
11202
|
+
const te = U[X];
|
|
11203
|
+
le && (X = le + "." + X), te != null && typeof te == "object" && !Na(te) && re(te, X), m[X] = te;
|
|
11200
11204
|
});
|
|
11201
|
-
}, se = (
|
|
11202
|
-
let X =
|
|
11203
|
-
return X || (
|
|
11204
|
-
}, pe = (
|
|
11205
|
-
|
|
11206
|
-
ie.id = se(ie,
|
|
11205
|
+
}, se = (U, le) => {
|
|
11206
|
+
let X = U.id;
|
|
11207
|
+
return X || (U.config?.table && U.config?.field ? X = `${U.config.table}.${U.config.field}` : U.config?.table ? X = U.config?.table : U.config?.field && (X = U.config?.field), le && I(le) && (X = `${le}.${X}`)), X || vl("j");
|
|
11208
|
+
}, pe = (U, le, X, te = "") => {
|
|
11209
|
+
U.forEach((ie) => {
|
|
11210
|
+
ie.id = se(ie, te);
|
|
11207
11211
|
const ge = {
|
|
11208
11212
|
id: ie.id,
|
|
11209
11213
|
slot: ie.slot,
|
|
@@ -11214,14 +11218,14 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11214
11218
|
children: []
|
|
11215
11219
|
};
|
|
11216
11220
|
le.push(ge);
|
|
11217
|
-
const { children:
|
|
11221
|
+
const { children: Re } = ie;
|
|
11218
11222
|
Ua(ge, ie, ["children", "config"]), Ua(ge.config, ie.config || {}, []), T[ie.id] && console.warn("有重复的组件id:" + ie.id), T[ie.id] = ge, o.readonly === !0 && (ge.config.readonly = !0);
|
|
11219
|
-
let
|
|
11220
|
-
|
|
11223
|
+
let Fe = !1, Mt;
|
|
11224
|
+
te !== "" && I(te) && (Fe = !0, ge.config = ie.config || {}, ge.config.parentTableId = te, Mt = T[te]?.config?.table);
|
|
11221
11225
|
const tt = ge.config || {};
|
|
11222
11226
|
if (k(ie.id))
|
|
11223
|
-
!X &&
|
|
11224
|
-
else if (
|
|
11227
|
+
!X && Fe === !1 && (tt?.defaultValue === 0 ? m[ie.id] = tt?.defaultValue : m[ie.id] = tt?.defaultValue || void 0), tt.table && tt.field ? R[`${tt.table}_${tt.field}`.toLowerCase()] = ie.id : tt.field && (Fe ? R[`${Mt}_${tt.field}`.toLowerCase()] = ie.id : R[`${tt.field}`.toLowerCase()] = ie.id);
|
|
11228
|
+
else if (Fe && tt.field)
|
|
11225
11229
|
R[`${Mt}_${tt.field}`.toLowerCase()] = ie.id;
|
|
11226
11230
|
else if (I(ie.id))
|
|
11227
11231
|
!X && !tt.isSubTable && (m[ie.id] = []), tt.table && (R[tt.table.toLowerCase() || ""] = ie.id), tt.isSubTable || z.push(ge);
|
|
@@ -11233,77 +11237,77 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11233
11237
|
wn.push(ve.i);
|
|
11234
11238
|
}), m[ie.id] = wn;
|
|
11235
11239
|
}
|
|
11236
|
-
|
|
11240
|
+
Re && Re.length > 0 && pe(Re, ge.children, X, ge.id);
|
|
11237
11241
|
});
|
|
11238
|
-
}, Be = async (
|
|
11242
|
+
}, Be = async (U, le) => {
|
|
11239
11243
|
v.value = !1;
|
|
11240
11244
|
const X = !!le;
|
|
11241
|
-
S.splice(0, S.length), R = {}, D = {}, z = [], N = le, Yi(m), P.value = {}, X && re(le, ""), pe(
|
|
11245
|
+
S.splice(0, S.length), R = {}, D = {}, z = [], N = le, Yi(m), P.value = {}, X && re(le, ""), pe(U, S, X), $ = hn(m), At(() => {
|
|
11242
11246
|
v.value = !0, At(() => {
|
|
11243
11247
|
bn(o.config?.codeInit, {});
|
|
11244
11248
|
});
|
|
11245
11249
|
});
|
|
11246
|
-
}, at = (
|
|
11247
|
-
const
|
|
11250
|
+
}, at = (U, le, X) => {
|
|
11251
|
+
const te = [];
|
|
11248
11252
|
return le.forEach((ie) => {
|
|
11249
11253
|
const ge = {};
|
|
11250
|
-
Object.keys(ie).forEach((
|
|
11251
|
-
if (!X || X(
|
|
11252
|
-
const
|
|
11253
|
-
if (
|
|
11254
|
-
ge[
|
|
11254
|
+
Object.keys(ie).forEach((Re) => {
|
|
11255
|
+
if (!X || X(Re, ie[Re], U)) {
|
|
11256
|
+
const Fe = ke(Re);
|
|
11257
|
+
if (Fe?.type === "j-table")
|
|
11258
|
+
ge[Fe?.id || ""] = at(Re, ie[Re], X);
|
|
11255
11259
|
else {
|
|
11256
|
-
let Mt = R[`${
|
|
11257
|
-
Mt = Mt.indexOf(".") !== -1 ? Mt.split(".")[1] : Mt, ge[Mt] = ie[
|
|
11260
|
+
let Mt = R[`${U}_${Re}`.toLowerCase()] || Re;
|
|
11261
|
+
Mt = Mt.indexOf(".") !== -1 ? Mt.split(".")[1] : Mt, ge[Mt] = ie[Re];
|
|
11258
11262
|
}
|
|
11259
11263
|
}
|
|
11260
|
-
}),
|
|
11261
|
-
}),
|
|
11262
|
-
},
|
|
11263
|
-
Object.keys(
|
|
11264
|
-
let
|
|
11264
|
+
}), te.push(ge);
|
|
11265
|
+
}), te;
|
|
11266
|
+
}, ee = (U, le) => {
|
|
11267
|
+
Object.keys(U || {}).forEach((X) => {
|
|
11268
|
+
let te = U[X];
|
|
11265
11269
|
const ie = ke(X);
|
|
11266
11270
|
if (ie === void 0)
|
|
11267
|
-
|
|
11268
|
-
if (!le || le(X,
|
|
11269
|
-
let
|
|
11270
|
-
X !== "main" && (
|
|
11271
|
+
te && (Na(te) && (te = te[0] || {}), typeof te == "object" ? Object.keys(te).forEach((ge) => {
|
|
11272
|
+
if (!le || le(X, te[ge], X)) {
|
|
11273
|
+
let Re = ge;
|
|
11274
|
+
X !== "main" && (Re = `${X}_${ge}`), D[Re] = X, m[R[Re.toLowerCase()] || ge] = te[ge];
|
|
11271
11275
|
}
|
|
11272
|
-
}) : m[X] =
|
|
11276
|
+
}) : m[X] = te);
|
|
11273
11277
|
else if (I(ie.id || "")) {
|
|
11274
|
-
if (!Array.isArray(
|
|
11278
|
+
if (!Array.isArray(te)) {
|
|
11275
11279
|
console.warn("表格数据不是数组:" + X);
|
|
11276
11280
|
return;
|
|
11277
11281
|
}
|
|
11278
|
-
|
|
11282
|
+
te?.length > 0 ? m[R[X.toLowerCase()] || X] = at(X, te, le) : m[R[X.toLowerCase()] || X] = [];
|
|
11279
11283
|
} else
|
|
11280
|
-
(!le || le(X,
|
|
11284
|
+
(!le || le(X, te, X)) && (m[R[X.toLowerCase()] || X] = te);
|
|
11281
11285
|
}), N && Object.keys(m).forEach((X) => {
|
|
11282
|
-
const
|
|
11283
|
-
(
|
|
11286
|
+
const te = ke(X);
|
|
11287
|
+
(te === void 0 || !["tabs", "collapse"].includes(te.type || "")) && Xd(N, X, m[X]);
|
|
11284
11288
|
});
|
|
11285
|
-
}, $e = (
|
|
11289
|
+
}, $e = (U, le = !1) => {
|
|
11286
11290
|
const X = {};
|
|
11287
|
-
return Object.keys(
|
|
11288
|
-
if (
|
|
11289
|
-
const ie = T[
|
|
11291
|
+
return Object.keys(U).forEach((te) => {
|
|
11292
|
+
if (te === "parentRow") return;
|
|
11293
|
+
const ie = T[te];
|
|
11290
11294
|
if (ie) {
|
|
11291
|
-
const ge = ie.config?.table,
|
|
11295
|
+
const ge = ie.config?.table, Re = ie.config?.field;
|
|
11292
11296
|
if (le)
|
|
11293
|
-
|
|
11294
|
-
else if (I(
|
|
11295
|
-
const
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
}), X[ge ||
|
|
11299
|
-
} else ge &&
|
|
11300
|
-
} else le ?
|
|
11297
|
+
Re ? X[Re] = U[te] : X[te] = U[te];
|
|
11298
|
+
else if (I(te)) {
|
|
11299
|
+
const Fe = [];
|
|
11300
|
+
U[te].forEach((Mt) => {
|
|
11301
|
+
Fe.push($e(Mt, !0));
|
|
11302
|
+
}), X[ge || te] = Fe;
|
|
11303
|
+
} else ge && Re ? (X[ge] = X[ge] || {}, X[ge][Re] = U[te]) : Re && (X[Re] = U[te]);
|
|
11304
|
+
} else le ? te !== "_X_ROW_KEY" && te !== "_isHover" && (X[te] = U[te]) : D[te] ? (X[D[te]] = X[D[te]] || {}, X[D[te]][te.replace(`${D[te]}_`, "")] = U[te]) : X[te] = U[te];
|
|
11301
11305
|
}), X;
|
|
11302
|
-
},
|
|
11303
|
-
let ie = T[
|
|
11306
|
+
}, Ne = (U = !0) => U ? $e(m) : m, Se = (U, le, X, te) => {
|
|
11307
|
+
let ie = T[U];
|
|
11304
11308
|
if (ie == null) {
|
|
11305
|
-
const
|
|
11306
|
-
ie = T[
|
|
11309
|
+
const Re = U.split(".");
|
|
11310
|
+
ie = T[Re[Re.length - 1]] || {};
|
|
11307
11311
|
}
|
|
11308
11312
|
if (!ie)
|
|
11309
11313
|
return {};
|
|
@@ -11313,30 +11317,30 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11313
11317
|
formData: m,
|
|
11314
11318
|
getTableData: X,
|
|
11315
11319
|
row: le,
|
|
11316
|
-
pRowData:
|
|
11320
|
+
pRowData: te
|
|
11317
11321
|
});
|
|
11318
11322
|
return ge._componentId = ie?.id, ge;
|
|
11319
|
-
}, Qe = (
|
|
11320
|
-
const ie = Se(
|
|
11323
|
+
}, Qe = (U, le, X, te) => {
|
|
11324
|
+
const ie = Se(U, le, X, te);
|
|
11321
11325
|
if (ie.isNotRule !== !0 && ie.display !== !1) {
|
|
11322
|
-
const ge = ie.rule || [],
|
|
11323
|
-
return
|
|
11326
|
+
const ge = ie.rule || [], Re = ge.find((Fe) => Fe.type === "only");
|
|
11327
|
+
return Re && (Re.validator = async (Fe, Mt) => {
|
|
11324
11328
|
if (Mt) {
|
|
11325
11329
|
const tt = {
|
|
11326
|
-
table:
|
|
11327
|
-
key:
|
|
11328
|
-
keyName:
|
|
11329
|
-
field:
|
|
11330
|
-
keyValue:
|
|
11330
|
+
table: Fe.table,
|
|
11331
|
+
key: Fe.key,
|
|
11332
|
+
keyName: Fe.keyName,
|
|
11333
|
+
field: Fe.field,
|
|
11334
|
+
keyValue: Fe.getKeyValue ? Fe.getKeyValue() : "",
|
|
11331
11335
|
value: Mt,
|
|
11332
|
-
paramNames:
|
|
11333
|
-
getParams:
|
|
11334
|
-
withProjectId:
|
|
11335
|
-
getValue:
|
|
11336
|
+
paramNames: Fe.paramNames,
|
|
11337
|
+
getParams: Fe.getParams,
|
|
11338
|
+
withProjectId: Fe.withProjectId,
|
|
11339
|
+
getValue: Fe.getValue,
|
|
11336
11340
|
formData: m
|
|
11337
11341
|
};
|
|
11338
11342
|
if (!await l(tt))
|
|
11339
|
-
throw h(
|
|
11343
|
+
throw h(Fe.message) || h("数据值重复");
|
|
11340
11344
|
}
|
|
11341
11345
|
}), {
|
|
11342
11346
|
rules: ge,
|
|
@@ -11344,74 +11348,74 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11344
11348
|
};
|
|
11345
11349
|
}
|
|
11346
11350
|
return { rules: [], myGridtableId: "" };
|
|
11347
|
-
}, { validateForm: lt } = pv(m, Qe),
|
|
11351
|
+
}, { validateForm: lt } = pv(m, Qe), Q = async () => {
|
|
11348
11352
|
E.value = {};
|
|
11349
|
-
const
|
|
11350
|
-
return Object.keys(
|
|
11351
|
-
`${h(T[Object.keys(
|
|
11353
|
+
const U = await lt();
|
|
11354
|
+
return Object.keys(U).length > 0 ? (E.value = U, g(
|
|
11355
|
+
`${h(T[Object.keys(U)[0]]?.config?.label)}:${h(U[Object.keys(U)[0]].msg)}`
|
|
11352
11356
|
), !1) : !0;
|
|
11353
11357
|
}, fe = () => {
|
|
11354
|
-
E.value = {}, Yi(m), Object.keys($ || {}).forEach((
|
|
11355
|
-
m[
|
|
11358
|
+
E.value = {}, Yi(m), Object.keys($ || {}).forEach((U) => {
|
|
11359
|
+
m[U] = $[U];
|
|
11356
11360
|
});
|
|
11357
|
-
}, ke = (
|
|
11358
|
-
let le = T[
|
|
11359
|
-
return le === void 0 && R[
|
|
11360
|
-
}, et = ({ id:
|
|
11361
|
-
if (
|
|
11362
|
-
m[
|
|
11363
|
-
else if (
|
|
11364
|
-
m[
|
|
11361
|
+
}, ke = (U) => {
|
|
11362
|
+
let le = T[U];
|
|
11363
|
+
return le === void 0 && R[U.toLowerCase()] && (le = T[R[U.toLowerCase()]]), le;
|
|
11364
|
+
}, et = ({ id: U, i: le, value: X, type: te }) => {
|
|
11365
|
+
if (te === "add")
|
|
11366
|
+
m[U].push(X);
|
|
11367
|
+
else if (te === "delete")
|
|
11368
|
+
m[U].splice(le, 1);
|
|
11365
11369
|
else {
|
|
11366
|
-
const ie = ke(
|
|
11367
|
-
ie && (ie.config.parentTableId ? m[ie.config.parentTableId][le][
|
|
11370
|
+
const ie = ke(U);
|
|
11371
|
+
ie && (ie.config.parentTableId ? m[ie.config.parentTableId][le][U] = X : m[U] = X);
|
|
11368
11372
|
}
|
|
11369
|
-
}, ft = ({ id:
|
|
11370
|
-
const X = ke(
|
|
11373
|
+
}, ft = ({ id: U, i: le }) => {
|
|
11374
|
+
const X = ke(U);
|
|
11371
11375
|
if (X) {
|
|
11372
11376
|
if (X.config.parentTableId) {
|
|
11373
|
-
const
|
|
11377
|
+
const te = m[X.config.parentTableId], ie = X.id ? X.id.replace(`${X.config.parentTableId}.`, "") : "";
|
|
11374
11378
|
if (le != null)
|
|
11375
|
-
return (
|
|
11379
|
+
return (te[le] || {})[ie || ""];
|
|
11376
11380
|
const ge = [];
|
|
11377
|
-
return
|
|
11378
|
-
ge.push(
|
|
11381
|
+
return te && te.forEach((Re) => {
|
|
11382
|
+
ge.push(Re[ie || ""]);
|
|
11379
11383
|
}), ge;
|
|
11380
11384
|
}
|
|
11381
11385
|
if (I(X.id || "")) {
|
|
11382
|
-
const
|
|
11386
|
+
const te = [];
|
|
11383
11387
|
return m[X.id || ""].forEach((ie) => {
|
|
11384
|
-
|
|
11385
|
-
}),
|
|
11388
|
+
te.push($e(ie, !0));
|
|
11389
|
+
}), te;
|
|
11386
11390
|
}
|
|
11387
11391
|
return m[X.id || ""];
|
|
11388
11392
|
}
|
|
11389
|
-
if (m[
|
|
11390
|
-
return m[
|
|
11391
|
-
}, Lt = async ({ id:
|
|
11392
|
-
const X = ft({ id:
|
|
11393
|
-
if (
|
|
11393
|
+
if (m[U])
|
|
11394
|
+
return m[U];
|
|
11395
|
+
}, Lt = async ({ id: U, i: le }) => {
|
|
11396
|
+
const X = ft({ id: U, i: le }), te = ke(U);
|
|
11397
|
+
if (te && p?.getLabel)
|
|
11394
11398
|
if (le !== void 0) {
|
|
11395
|
-
const ie = X[le], ge = m[
|
|
11396
|
-
config:
|
|
11397
|
-
getCompConfig:
|
|
11399
|
+
const ie = X[le], ge = m[te.config.parentTableId || ""][le], Re = So({
|
|
11400
|
+
config: te.config,
|
|
11401
|
+
getCompConfig: te.getCompConfig,
|
|
11398
11402
|
formData: m,
|
|
11399
11403
|
// @ts-expect-error clone类型推断不完整,此处可安全传递
|
|
11400
|
-
tableData: m[
|
|
11404
|
+
tableData: m[te.config.parentTableId || ""],
|
|
11401
11405
|
row: ge
|
|
11402
11406
|
});
|
|
11403
11407
|
return await p?.getLabel({
|
|
11404
11408
|
value: ie,
|
|
11405
|
-
config:
|
|
11409
|
+
config: Re,
|
|
11406
11410
|
formData: m,
|
|
11407
11411
|
// @ts-expect-error clone类型推断不完整,此处可安全传递
|
|
11408
|
-
tableData: m[
|
|
11412
|
+
tableData: m[te.config.parentTableId || ""],
|
|
11409
11413
|
row: ge
|
|
11410
11414
|
});
|
|
11411
11415
|
} else {
|
|
11412
11416
|
const ie = So({
|
|
11413
|
-
config:
|
|
11414
|
-
getCompConfig:
|
|
11417
|
+
config: te.config,
|
|
11418
|
+
getCompConfig: te.getCompConfig,
|
|
11415
11419
|
formData: m
|
|
11416
11420
|
});
|
|
11417
11421
|
return await p?.getLabel({
|
|
@@ -11421,13 +11425,13 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11421
11425
|
});
|
|
11422
11426
|
}
|
|
11423
11427
|
return X;
|
|
11424
|
-
}, De = async (
|
|
11428
|
+
}, De = async (U, le) => p?.loadViewDataList ? await p?.loadViewDataList(U, le, !1) : [], cn = (U) => (U.set = et, U.get = ft, U.setFormData = ee, U.getFormData = Ne, U.getLabel = Lt, U.getViewData = De, U.getDateNow = (le) => sf(/* @__PURE__ */ new Date(), le || "YYYY-MM-DD HH:mm:ss"), U.httpGet = r || (() => {
|
|
11425
11429
|
console.log("当前状态不支持");
|
|
11426
|
-
}),
|
|
11430
|
+
}), U.httpPost = s || (() => {
|
|
11427
11431
|
console.log("当前状态不支持");
|
|
11428
|
-
}),
|
|
11432
|
+
}), U.loading = (le) => {
|
|
11429
11433
|
Jo(le);
|
|
11430
|
-
},
|
|
11434
|
+
}, U.showMsg = ({ text: le, type: X }) => {
|
|
11431
11435
|
switch (X) {
|
|
11432
11436
|
case "success":
|
|
11433
11437
|
c && c(le);
|
|
@@ -11446,14 +11450,14 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11446
11450
|
break;
|
|
11447
11451
|
}
|
|
11448
11452
|
console.log("showMsg", le, X);
|
|
11449
|
-
},
|
|
11450
|
-
if (
|
|
11451
|
-
|
|
11452
|
-
const { res: X, fn:
|
|
11453
|
-
X && await
|
|
11453
|
+
}, U), bn = async (U, le) => {
|
|
11454
|
+
if (U && U.trim()) {
|
|
11455
|
+
U = `async (jcode) => {${U}}`;
|
|
11456
|
+
const { res: X, fn: te } = Ws(U);
|
|
11457
|
+
X && await te(cn(le));
|
|
11454
11458
|
}
|
|
11455
|
-
}, Kt = (
|
|
11456
|
-
P.value[
|
|
11459
|
+
}, Kt = (U, le) => {
|
|
11460
|
+
P.value[U] = { ...P.value[U] || {}, ...le };
|
|
11457
11461
|
};
|
|
11458
11462
|
return o.schema && Be(o.schema), qs({
|
|
11459
11463
|
formData: m,
|
|
@@ -11471,18 +11475,18 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11471
11475
|
}), t({
|
|
11472
11476
|
init: Be,
|
|
11473
11477
|
reset: fe,
|
|
11474
|
-
validate:
|
|
11478
|
+
validate: Q,
|
|
11475
11479
|
setValue: et,
|
|
11476
11480
|
getValue: ft,
|
|
11477
11481
|
getLabel: Lt,
|
|
11478
|
-
setFormData:
|
|
11479
|
-
getFormData:
|
|
11482
|
+
setFormData: ee,
|
|
11483
|
+
getFormData: Ne,
|
|
11480
11484
|
setCompConfig: Kt
|
|
11481
|
-
}), (
|
|
11482
|
-
const X = B("j-form-item"),
|
|
11485
|
+
}), (U, le) => {
|
|
11486
|
+
const X = B("j-form-item"), te = B("el-row"), ie = B("el-form");
|
|
11483
11487
|
return v.value ? (C(), H(ie, {
|
|
11484
11488
|
key: 0,
|
|
11485
|
-
class:
|
|
11489
|
+
class: Me([{ "j-block": e.isAutoSize }, { "j-form-auto": e.isAutoSize }, "j-form"]),
|
|
11486
11490
|
"label-position": x.value,
|
|
11487
11491
|
"label-width": w.value,
|
|
11488
11492
|
size: e.config?.size,
|
|
@@ -11490,12 +11494,12 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11490
11494
|
}, ["prevent"]))
|
|
11491
11495
|
}, {
|
|
11492
11496
|
default: V(() => [
|
|
11493
|
-
_.value ? (C(), H(X, je({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (C(), H(
|
|
11497
|
+
_.value ? (C(), H(X, je({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (C(), H(te, {
|
|
11494
11498
|
key: 1,
|
|
11495
11499
|
gutter: y.value
|
|
11496
11500
|
}, {
|
|
11497
11501
|
default: V(() => [
|
|
11498
|
-
(C(), O(ye, null, Ee(S, (ge) =>
|
|
11502
|
+
(C(), O(ye, null, Ee(S, (ge) => K(X, je({
|
|
11499
11503
|
key: ge.id,
|
|
11500
11504
|
ref_for: !0
|
|
11501
11505
|
}, ge), null, 16)), 64))
|
|
@@ -11504,7 +11508,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11504
11508
|
}, 8, ["gutter"]))
|
|
11505
11509
|
]),
|
|
11506
11510
|
_: 1
|
|
11507
|
-
}, 8, ["class", "label-position", "label-width", "size"])) :
|
|
11511
|
+
}, 8, ["class", "label-position", "label-width", "size"])) : Y("", !0);
|
|
11508
11512
|
};
|
|
11509
11513
|
}
|
|
11510
11514
|
}), vv = de(gv), mv = de(tc), yv = { class: "j-page" }, bv = /* @__PURE__ */ ae({
|
|
@@ -11656,7 +11660,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11656
11660
|
style: Ce({ "border-radius": e.noPadding ? "0px" : "4px" })
|
|
11657
11661
|
}, [
|
|
11658
11662
|
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (C(), O("div", Sv, [
|
|
11659
|
-
e.notTitle ?
|
|
11663
|
+
e.notTitle ? Y("", !0) : (C(), O("div", {
|
|
11660
11664
|
key: 0,
|
|
11661
11665
|
class: "j-panel-top-left",
|
|
11662
11666
|
title: e.title || ""
|
|
@@ -11672,7 +11676,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11672
11676
|
content: s.label || ""
|
|
11673
11677
|
}, {
|
|
11674
11678
|
default: V(() => [
|
|
11675
|
-
|
|
11679
|
+
K(a, je({ ref_for: !0 }, s.config, {
|
|
11676
11680
|
onClick: (c) => n(s),
|
|
11677
11681
|
type: "text",
|
|
11678
11682
|
size: e.size
|
|
@@ -11680,8 +11684,8 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11680
11684
|
]),
|
|
11681
11685
|
_: 2
|
|
11682
11686
|
}, 1032, ["content"]))), 128))
|
|
11683
|
-
])) :
|
|
11684
|
-
])) :
|
|
11687
|
+
])) : Y("", !0)
|
|
11688
|
+
])) : Y("", !0),
|
|
11685
11689
|
F("div", {
|
|
11686
11690
|
class: "j-panel-body",
|
|
11687
11691
|
style: Ce(e.bodyStyle)
|
|
@@ -11689,9 +11693,9 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11689
11693
|
Ie(o.$slots, "default")
|
|
11690
11694
|
], 4),
|
|
11691
11695
|
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (C(), O("div", Rv, [
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
])) :
|
|
11696
|
+
K(r, { list: e.bootmBtns }, null, 8, ["list"]),
|
|
11697
|
+
K(r, { list: e.bootmRightBtns }, null, 8, ["list"])
|
|
11698
|
+
])) : Y("", !0)
|
|
11695
11699
|
], 4)
|
|
11696
11700
|
], 4);
|
|
11697
11701
|
};
|
|
@@ -11865,10 +11869,10 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11865
11869
|
}, [
|
|
11866
11870
|
(C(!0), O(ye, null, Ee(g.value, (T, P) => (C(), O("div", {
|
|
11867
11871
|
key: T._i + P,
|
|
11868
|
-
class:
|
|
11872
|
+
class: Me([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
11869
11873
|
}, [
|
|
11870
|
-
e.showNum ? (C(), O("div", Av, be(P + 1), 1)) :
|
|
11871
|
-
e.showChar ? (C(), O("div", jv, be(p[P % 26]), 1)) :
|
|
11874
|
+
e.showNum ? (C(), O("div", Av, be(P + 1), 1)) : Y("", !0),
|
|
11875
|
+
e.showChar ? (C(), O("div", jv, be(p[P % 26]), 1)) : Y("", !0),
|
|
11872
11876
|
(C(!0), O(ye, null, Ee(e.columns, (R) => (C(), H(m, je({
|
|
11873
11877
|
key: R.id,
|
|
11874
11878
|
ref_for: !0
|
|
@@ -11877,13 +11881,13 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11877
11881
|
key: 2,
|
|
11878
11882
|
class: "j-input-rows-drag",
|
|
11879
11883
|
icon: "mdi:drag"
|
|
11880
|
-
})) :
|
|
11884
|
+
})) : Y("", !0),
|
|
11881
11885
|
c.value && (f.value || g.value.length > 1) && !u.value ? (C(), H(E, {
|
|
11882
11886
|
key: 3,
|
|
11883
11887
|
icon: "mdi:delete-outline",
|
|
11884
11888
|
class: "j-input-rows-delete",
|
|
11885
11889
|
onClick: (R) => b(P)
|
|
11886
|
-
}, null, 8, ["onClick"])) :
|
|
11890
|
+
}, null, 8, ["onClick"])) : Y("", !0)
|
|
11887
11891
|
], 2))), 128))
|
|
11888
11892
|
], 512),
|
|
11889
11893
|
!u.value && l.value ? (C(), O("div", {
|
|
@@ -11898,8 +11902,8 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11898
11902
|
label: r.value,
|
|
11899
11903
|
icon: "mdi:add",
|
|
11900
11904
|
onClick: y
|
|
11901
|
-
}, null, 8, ["label"])) :
|
|
11902
|
-
], 4)) :
|
|
11905
|
+
}, null, 8, ["label"])) : Y("", !0)
|
|
11906
|
+
], 4)) : Y("", !0)
|
|
11903
11907
|
]);
|
|
11904
11908
|
};
|
|
11905
11909
|
}
|
|
@@ -11987,7 +11991,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
11987
11991
|
return (p, g) => {
|
|
11988
11992
|
const v = B("el-input");
|
|
11989
11993
|
return C(), O("div", Iv, [
|
|
11990
|
-
e.onlyButton ? (C(), H(
|
|
11994
|
+
e.onlyButton ? (C(), H(G(Wa), {
|
|
11991
11995
|
key: 1,
|
|
11992
11996
|
type: e.buttonType,
|
|
11993
11997
|
size: e.size,
|
|
@@ -12008,7 +12012,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
12008
12012
|
e.readonly ? void 0 : {
|
|
12009
12013
|
name: "append",
|
|
12010
12014
|
fn: V(() => [
|
|
12011
|
-
|
|
12015
|
+
K(G(Wa), {
|
|
12012
12016
|
icon: e.icon,
|
|
12013
12017
|
onClick: u
|
|
12014
12018
|
}, null, 8, ["icon"])
|
|
@@ -12016,7 +12020,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
12016
12020
|
key: "0"
|
|
12017
12021
|
}
|
|
12018
12022
|
]), 1032, ["modelValue", "placeholder", "size", "clearable"])),
|
|
12019
|
-
|
|
12023
|
+
K(G(oc), {
|
|
12020
12024
|
ref_key: "layerRef",
|
|
12021
12025
|
ref: a,
|
|
12022
12026
|
title: e.title || e.placeholder,
|
|
@@ -12027,7 +12031,7 @@ const gv = /* @__PURE__ */ ae({
|
|
|
12027
12031
|
onClosed: h
|
|
12028
12032
|
}, {
|
|
12029
12033
|
default: V(() => [
|
|
12030
|
-
|
|
12034
|
+
K(G(ac), {
|
|
12031
12035
|
ref_key: "tableRef",
|
|
12032
12036
|
ref: l,
|
|
12033
12037
|
columns: e.columns,
|
|
@@ -12125,23 +12129,23 @@ const gv = /* @__PURE__ */ ae({
|
|
|
12125
12129
|
}), (d, f) => {
|
|
12126
12130
|
const h = B("j-button"), p = B("j-form-item"), g = B("el-row"), v = B("el-form"), y = B("j-dialog");
|
|
12127
12131
|
return C(), O("div", null, [
|
|
12128
|
-
|
|
12132
|
+
K(h, je(d.$attrs, {
|
|
12129
12133
|
type: e.type,
|
|
12130
12134
|
size: e.size,
|
|
12131
12135
|
icon: e.icon,
|
|
12132
12136
|
onClick: u
|
|
12133
12137
|
}), null, 16, ["type", "size", "icon"]),
|
|
12134
|
-
|
|
12138
|
+
K(y, {
|
|
12135
12139
|
visible: c.value,
|
|
12136
12140
|
"onUpdate:visible": f[1] || (f[1] = (b) => c.value = b),
|
|
12137
|
-
title:
|
|
12141
|
+
title: G(o)(e.layerLabel || "设置"),
|
|
12138
12142
|
height: e.layerHeight || 400,
|
|
12139
12143
|
width: e.layerWidth || 600,
|
|
12140
12144
|
"has-btns": !1
|
|
12141
12145
|
}, {
|
|
12142
12146
|
default: V(() => [
|
|
12143
|
-
|
|
12144
|
-
class:
|
|
12147
|
+
K(v, {
|
|
12148
|
+
class: Me(["j-block", "j-layer-form"]),
|
|
12145
12149
|
"label-position": r.value,
|
|
12146
12150
|
"label-width": l.value,
|
|
12147
12151
|
size: e.formConfig?.size,
|
|
@@ -12582,12 +12586,12 @@ const gv = /* @__PURE__ */ ae({
|
|
|
12582
12586
|
style: Ce({ height: e.height })
|
|
12583
12587
|
}, [
|
|
12584
12588
|
a.value ? (C(), O("div", Xv, [
|
|
12585
|
-
|
|
12589
|
+
K(eo, {
|
|
12586
12590
|
icon: "mdi:loading",
|
|
12587
12591
|
class: "is-loading",
|
|
12588
12592
|
size: 30
|
|
12589
12593
|
})
|
|
12590
|
-
])) :
|
|
12594
|
+
])) : Y("", !0),
|
|
12591
12595
|
F("div", {
|
|
12592
12596
|
ref_key: "mapRef",
|
|
12593
12597
|
ref: l,
|
|
@@ -12905,7 +12909,7 @@ jo.prototype.isSelected = function(e) {
|
|
|
12905
12909
|
};
|
|
12906
12910
|
jo.prototype.select = function(e, t) {
|
|
12907
12911
|
var n = this._selectedElements, o = n.slice();
|
|
12908
|
-
|
|
12912
|
+
Xe(e) || (e = e ? [e] : []);
|
|
12909
12913
|
var i = this._canvas, a = i.getRootElement();
|
|
12910
12914
|
e = e.filter(function(l) {
|
|
12911
12915
|
var r = i.findRoot(l);
|
|
@@ -12952,7 +12956,7 @@ function fc(e, t, n, o) {
|
|
|
12952
12956
|
if (l) {
|
|
12953
12957
|
if (c === !1)
|
|
12954
12958
|
return;
|
|
12955
|
-
|
|
12959
|
+
Xe(c) ? t.select(c) : t.select(r.filter(lm));
|
|
12956
12960
|
}
|
|
12957
12961
|
}), e.on("connect.end", 500, function(i) {
|
|
12958
12962
|
var a = i.context, l = a.connection;
|
|
@@ -13025,7 +13029,7 @@ function gc(e) {
|
|
|
13025
13029
|
return e.altKey ? !1 : e.ctrlKey || e.metaKey;
|
|
13026
13030
|
}
|
|
13027
13031
|
function vc(e, t) {
|
|
13028
|
-
return e =
|
|
13032
|
+
return e = Xe(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
|
|
13029
13033
|
}
|
|
13030
13034
|
var mo = Math.round, Sr = "djs-drag-active";
|
|
13031
13035
|
function Kn(e) {
|
|
@@ -13118,7 +13122,7 @@ function mc(e, t, n, o) {
|
|
|
13118
13122
|
}
|
|
13119
13123
|
function y(w) {
|
|
13120
13124
|
var x, _;
|
|
13121
|
-
r("cleanup"), hc(), a.trapClick ? _ = f : _ = u,
|
|
13125
|
+
r("cleanup"), hc(), a.trapClick ? _ = f : _ = u, Ke.unbind(document, "mousemove", c), Ke.unbind(document, "dragstart", Kn), Ke.unbind(document, "selectstart", Kn), Ke.unbind(document, "mousedown", _, !0), Ke.unbind(document, "mouseup", _, !0), Ke.unbind(document, "keyup", d), Ke.unbind(document, "touchstart", h, !0), Ke.unbind(document, "touchcancel", v, !0), Ke.unbind(document, "touchmove", c, !0), Ke.unbind(document, "touchend", u, !0), e.off("element.hover", p), e.off("element.out", g), t.removeMarker(t.getRootElement(), Sr);
|
|
13122
13126
|
var m = a.payload.previousSelection;
|
|
13123
13127
|
return w !== !1 && m && !n.get().length && s(m), x = a, a = null, x;
|
|
13124
13128
|
}
|
|
@@ -13133,7 +13137,7 @@ function mc(e, t, n, o) {
|
|
|
13133
13137
|
displacement: _o(x, P),
|
|
13134
13138
|
localStart: P,
|
|
13135
13139
|
isTouch: D
|
|
13136
|
-
}, m), m.manual || (D ? (
|
|
13140
|
+
}, m), m.manual || (D ? (Ke.bind(document, "touchstart", h, !0), Ke.bind(document, "touchcancel", v, !0), Ke.bind(document, "touchmove", c, !0), Ke.bind(document, "touchend", u, !0)) : (Ke.bind(document, "mousemove", c), Ke.bind(document, "dragstart", Kn), Ke.bind(document, "selectstart", Kn), Ke.bind(document, "mousedown", R, !0), Ke.bind(document, "mouseup", R, !0)), Ke.bind(document, "keyup", d), e.on("element.hover", p), e.on("element.out", g)), r("init"), m.autoActivate && c(w, !0);
|
|
13137
13141
|
}
|
|
13138
13142
|
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() {
|
|
13139
13143
|
return a;
|
|
@@ -13281,9 +13285,9 @@ function _r(e, t, n) {
|
|
|
13281
13285
|
return e.push(t), o;
|
|
13282
13286
|
}
|
|
13283
13287
|
function Sl(e, t, n) {
|
|
13284
|
-
n = n || 0,
|
|
13288
|
+
n = n || 0, Xe(e) || (e = [e]), ne(e, function(o, i) {
|
|
13285
13289
|
var a = t(o, i, n);
|
|
13286
|
-
|
|
13290
|
+
Xe(a) && a.length && Sl(a, t, n + 1);
|
|
13287
13291
|
});
|
|
13288
13292
|
}
|
|
13289
13293
|
function bm(e, t, n) {
|
|
@@ -13324,7 +13328,7 @@ function xm(e, t, n) {
|
|
|
13324
13328
|
};
|
|
13325
13329
|
}
|
|
13326
13330
|
function ln(e, t) {
|
|
13327
|
-
t = !!t,
|
|
13331
|
+
t = !!t, Xe(e) || (e = [e]);
|
|
13328
13332
|
var n, o, i, a;
|
|
13329
13333
|
return ne(e, function(l) {
|
|
13330
13334
|
var r = l;
|
|
@@ -13453,7 +13457,7 @@ function bc(e, t, n, o, i) {
|
|
|
13453
13457
|
n.off("elements.changed", r);
|
|
13454
13458
|
});
|
|
13455
13459
|
}), this.start = function(s, c, u) {
|
|
13456
|
-
|
|
13460
|
+
Xe(c) || (c = [c]);
|
|
13457
13461
|
var d = tn(c, function(p) {
|
|
13458
13462
|
return !zt(p);
|
|
13459
13463
|
});
|
|
@@ -13839,8 +13843,8 @@ function Dr(e, t, n, o, i, a) {
|
|
|
13839
13843
|
}
|
|
13840
13844
|
function Sc(e, t, n, o, i, a, l, r, s, c) {
|
|
13841
13845
|
var u = _n * 120 / 180, d = _n / 180 * (+i || 0), f = [], h, p = Lm(function(Se, Qe, lt) {
|
|
13842
|
-
var
|
|
13843
|
-
return { x:
|
|
13846
|
+
var Q = Se * yt.cos(lt) - Qe * yt.sin(lt), fe = Se * yt.sin(lt) + Qe * yt.cos(lt);
|
|
13847
|
+
return { x: Q, y: fe };
|
|
13844
13848
|
});
|
|
13845
13849
|
if (c)
|
|
13846
13850
|
E = c[0], S = c[1], _ = c[2], m = c[3];
|
|
@@ -13861,9 +13865,9 @@ function Sc(e, t, n, o, i, a, l, r, s, c) {
|
|
|
13861
13865
|
if (pe[0] = 2 * se[0] - pe[0], pe[1] = 2 * se[1] - pe[1], c)
|
|
13862
13866
|
return [pe, Be, at].concat(f);
|
|
13863
13867
|
f = [pe, Be, at].concat(f).join().split(",");
|
|
13864
|
-
for (var
|
|
13865
|
-
|
|
13866
|
-
return
|
|
13868
|
+
for (var ee = [], $e = 0, Ne = f.length; $e < Ne; $e++)
|
|
13869
|
+
ee[$e] = $e % 2 ? p(f[$e - 1], f[$e], d).y : p(f[$e], f[$e + 1], d).x;
|
|
13870
|
+
return ee;
|
|
13867
13871
|
}
|
|
13868
13872
|
function Gm(e, t, n, o, i, a, l, r) {
|
|
13869
13873
|
for (var s = [], c = [[], []], u, d, f, h, p, g, v, y, b = 0; b < 2; ++b) {
|
|
@@ -13949,7 +13953,7 @@ function Qo(e) {
|
|
|
13949
13953
|
y: Math.round(e.y)
|
|
13950
13954
|
};
|
|
13951
13955
|
}
|
|
13952
|
-
function
|
|
13956
|
+
function Je(e) {
|
|
13953
13957
|
return {
|
|
13954
13958
|
top: e.y,
|
|
13955
13959
|
right: e.x + (e.width || 0),
|
|
@@ -14000,7 +14004,7 @@ function vt(e) {
|
|
|
14000
14004
|
}
|
|
14001
14005
|
function jn(e, t, n) {
|
|
14002
14006
|
n = n || 0, Yt(n) || (n = { x: n, y: n });
|
|
14003
|
-
var o =
|
|
14007
|
+
var o = Je(e), i = Je(t), a = o.bottom + n.y <= i.top, l = o.left - n.x >= i.right, r = o.top - n.y >= i.bottom, s = o.right + n.x <= i.left, c = a ? "top" : r ? "bottom" : null, u = s ? "left" : l ? "right" : null;
|
|
14004
14008
|
return u && c ? c + "-" + u : u || c || "intersect";
|
|
14005
14009
|
}
|
|
14006
14010
|
function Za(e, t, n) {
|
|
@@ -14144,7 +14148,7 @@ function Rc(e, t) {
|
|
|
14144
14148
|
r.preventDefault();
|
|
14145
14149
|
}
|
|
14146
14150
|
function a(r) {
|
|
14147
|
-
|
|
14151
|
+
Ke.unbind(document, "mousemove", i), Ke.unbind(document, "mouseup", a), n = null, hc();
|
|
14148
14152
|
}
|
|
14149
14153
|
function l(r) {
|
|
14150
14154
|
if (!ul(r.target, ".djs-draggable")) {
|
|
@@ -14153,7 +14157,7 @@ function Rc(e, t) {
|
|
|
14153
14157
|
return n = {
|
|
14154
14158
|
button: s,
|
|
14155
14159
|
start: Mo(r)
|
|
14156
|
-
},
|
|
14160
|
+
}, Ke.bind(document, "mousemove", i), Ke.bind(document, "mouseup", a), !0;
|
|
14157
14161
|
}
|
|
14158
14162
|
}
|
|
14159
14163
|
this.isActive = function() {
|
|
@@ -14243,7 +14247,7 @@ rn.prototype._zoom = function(e, t, n) {
|
|
|
14243
14247
|
};
|
|
14244
14248
|
rn.prototype.toggle = function(t) {
|
|
14245
14249
|
var n = this._container, o = this._handleWheel, i = this._enabled;
|
|
14246
|
-
return typeof t > "u" && (t = !i), i !== t &&
|
|
14250
|
+
return typeof t > "u" && (t = !i), i !== t && Ke[t ? "bind" : "unbind"](n, "wheel", o, !1), this._enabled = t, t;
|
|
14247
14251
|
};
|
|
14248
14252
|
rn.prototype._init = function(e) {
|
|
14249
14253
|
this.toggle(e);
|
|
@@ -14370,7 +14374,7 @@ rt.prototype._popAction = function() {
|
|
|
14370
14374
|
};
|
|
14371
14375
|
rt.prototype._markDirty = function(e) {
|
|
14372
14376
|
const t = this._currentExecution;
|
|
14373
|
-
e && (e =
|
|
14377
|
+
e && (e = Xe(e) ? e : [e], t.dirty = t.dirty.concat(e));
|
|
14374
14378
|
};
|
|
14375
14379
|
rt.prototype._executedAction = function(e, t) {
|
|
14376
14380
|
const n = ++this._stackIdx;
|
|
@@ -14441,7 +14445,7 @@ function uy(e, t) {
|
|
|
14441
14445
|
Ot.prototype.on = function(e, t, n, o, i, a) {
|
|
14442
14446
|
if ((nn(t) || xt(t)) && (a = i, i = o, o = n, n = t, t = null), nn(n) && (a = i, i = o, o = n, n = cy), Yt(i) && (a = i, i = !1), !nn(o))
|
|
14443
14447
|
throw new Error("handlerFn must be a function");
|
|
14444
|
-
|
|
14448
|
+
Xe(e) || (e = [e]);
|
|
14445
14449
|
var l = this._eventBus;
|
|
14446
14450
|
ne(e, function(r) {
|
|
14447
14451
|
var s = ["commandStack", r, t].filter(function(c) {
|
|
@@ -15174,11 +15178,11 @@ vi.prototype.execute = function(e) {
|
|
|
15174
15178
|
var t = e.newSource, n = e.newTarget, o = e.connection, i = e.dockingOrPoints;
|
|
15175
15179
|
if (!t && !n)
|
|
15176
15180
|
throw new Error("newSource or newTarget required");
|
|
15177
|
-
return
|
|
15181
|
+
return Xe(i) && (e.oldWaypoints = o.waypoints, o.waypoints = i), t && (e.oldSource = o.source, o.source = t), n && (e.oldTarget = o.target, o.target = n), o;
|
|
15178
15182
|
};
|
|
15179
15183
|
vi.prototype.postExecute = function(e) {
|
|
15180
15184
|
var t = e.connection, n = e.newSource, o = e.newTarget, i = e.dockingOrPoints, a = e.hints || {}, l = {};
|
|
15181
|
-
a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || Jr(
|
|
15185
|
+
a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || Jr(Xe(i) ? i[0] : i)), o && (!n || a.docking === "target") && (l.connectionEnd = l.connectionEnd || Jr(Xe(i) ? i[i.length - 1] : i)), a.newWaypoints && (l.waypoints = a.newWaypoints), this._modeling.layoutConnection(t, l));
|
|
15182
15186
|
};
|
|
15183
15187
|
vi.prototype.revert = function(e) {
|
|
15184
15188
|
var t = e.oldSource, n = e.oldTarget, o = e.oldWaypoints, i = e.connection;
|
|
@@ -15504,15 +15508,15 @@ zl.prototype.revert = function(e) {
|
|
|
15504
15508
|
var t = e.connection, n = e.oldWaypoints;
|
|
15505
15509
|
return t.waypoints = n, t;
|
|
15506
15510
|
};
|
|
15507
|
-
function
|
|
15511
|
+
function Ve(e, t, n) {
|
|
15508
15512
|
this._eventBus = e, this._elementFactory = t, this._commandStack = n;
|
|
15509
15513
|
var o = this;
|
|
15510
15514
|
e.on("diagram.init", function() {
|
|
15511
15515
|
o.registerHandlers(n);
|
|
15512
15516
|
});
|
|
15513
15517
|
}
|
|
15514
|
-
|
|
15515
|
-
|
|
15518
|
+
Ve.$inject = ["eventBus", "elementFactory", "commandStack"];
|
|
15519
|
+
Ve.prototype.getHandlers = function() {
|
|
15516
15520
|
return {
|
|
15517
15521
|
"shape.append": fa,
|
|
15518
15522
|
"shape.create": Ln,
|
|
@@ -15537,12 +15541,12 @@ Fe.prototype.getHandlers = function() {
|
|
|
15537
15541
|
"element.updateAttachment": wa
|
|
15538
15542
|
};
|
|
15539
15543
|
};
|
|
15540
|
-
|
|
15544
|
+
Ve.prototype.registerHandlers = function(e) {
|
|
15541
15545
|
ne(this.getHandlers(), function(t, n) {
|
|
15542
15546
|
e.registerHandler(n, t);
|
|
15543
15547
|
});
|
|
15544
15548
|
};
|
|
15545
|
-
|
|
15549
|
+
Ve.prototype.moveShape = function(e, t, n, o, i) {
|
|
15546
15550
|
typeof o == "object" && (i = o, o = null);
|
|
15547
15551
|
var a = {
|
|
15548
15552
|
shape: e,
|
|
@@ -15553,14 +15557,14 @@ Fe.prototype.moveShape = function(e, t, n, o, i) {
|
|
|
15553
15557
|
};
|
|
15554
15558
|
this._commandStack.execute("shape.move", a);
|
|
15555
15559
|
};
|
|
15556
|
-
|
|
15560
|
+
Ve.prototype.updateAttachment = function(e, t) {
|
|
15557
15561
|
var n = {
|
|
15558
15562
|
shape: e,
|
|
15559
15563
|
newHost: t
|
|
15560
15564
|
};
|
|
15561
15565
|
this._commandStack.execute("element.updateAttachment", n);
|
|
15562
15566
|
};
|
|
15563
|
-
|
|
15567
|
+
Ve.prototype.moveElements = function(e, t, n, o) {
|
|
15564
15568
|
o = o || {};
|
|
15565
15569
|
var i = o.attach, a = n, l;
|
|
15566
15570
|
i === !0 ? (l = n, a = n.parent) : i === !1 && (l = null);
|
|
@@ -15573,7 +15577,7 @@ Fe.prototype.moveElements = function(e, t, n, o) {
|
|
|
15573
15577
|
};
|
|
15574
15578
|
this._commandStack.execute("elements.move", r);
|
|
15575
15579
|
};
|
|
15576
|
-
|
|
15580
|
+
Ve.prototype.moveConnection = function(e, t, n, o, i) {
|
|
15577
15581
|
typeof o == "object" && (i = o, o = void 0);
|
|
15578
15582
|
var a = {
|
|
15579
15583
|
connection: e,
|
|
@@ -15584,14 +15588,14 @@ Fe.prototype.moveConnection = function(e, t, n, o, i) {
|
|
|
15584
15588
|
};
|
|
15585
15589
|
this._commandStack.execute("connection.move", a);
|
|
15586
15590
|
};
|
|
15587
|
-
|
|
15591
|
+
Ve.prototype.layoutConnection = function(e, t) {
|
|
15588
15592
|
var n = {
|
|
15589
15593
|
connection: e,
|
|
15590
15594
|
hints: t || {}
|
|
15591
15595
|
};
|
|
15592
15596
|
this._commandStack.execute("connection.layout", n);
|
|
15593
15597
|
};
|
|
15594
|
-
|
|
15598
|
+
Ve.prototype.createConnection = function(e, t, n, o, i, a) {
|
|
15595
15599
|
typeof n == "object" && (a = i, i = o, o = n, n = void 0), o = this._create("connection", o);
|
|
15596
15600
|
var l = {
|
|
15597
15601
|
source: e,
|
|
@@ -15603,7 +15607,7 @@ Fe.prototype.createConnection = function(e, t, n, o, i, a) {
|
|
|
15603
15607
|
};
|
|
15604
15608
|
return this._commandStack.execute("connection.create", l), l.connection;
|
|
15605
15609
|
};
|
|
15606
|
-
|
|
15610
|
+
Ve.prototype.createShape = function(e, t, n, o, i) {
|
|
15607
15611
|
typeof o != "number" && (i = o, o = void 0), i = i || {};
|
|
15608
15612
|
var a = i.attach, l, r;
|
|
15609
15613
|
e = this._create("shape", e), a ? (l = n.parent, r = n) : l = n;
|
|
@@ -15617,8 +15621,8 @@ Fe.prototype.createShape = function(e, t, n, o, i) {
|
|
|
15617
15621
|
};
|
|
15618
15622
|
return this._commandStack.execute("shape.create", s), s.shape;
|
|
15619
15623
|
};
|
|
15620
|
-
|
|
15621
|
-
|
|
15624
|
+
Ve.prototype.createElements = function(e, t, n, o, i) {
|
|
15625
|
+
Xe(e) || (e = [e]), typeof o != "number" && (i = o, o = void 0), i = i || {};
|
|
15622
15626
|
var a = {
|
|
15623
15627
|
position: t,
|
|
15624
15628
|
elements: e,
|
|
@@ -15628,7 +15632,7 @@ Fe.prototype.createElements = function(e, t, n, o, i) {
|
|
|
15628
15632
|
};
|
|
15629
15633
|
return this._commandStack.execute("elements.create", a), a.elements;
|
|
15630
15634
|
};
|
|
15631
|
-
|
|
15635
|
+
Ve.prototype.createLabel = function(e, t, n, o) {
|
|
15632
15636
|
n = this._create("label", n);
|
|
15633
15637
|
var i = {
|
|
15634
15638
|
labelTarget: e,
|
|
@@ -15638,7 +15642,7 @@ Fe.prototype.createLabel = function(e, t, n, o) {
|
|
|
15638
15642
|
};
|
|
15639
15643
|
return this._commandStack.execute("label.create", i), i.shape;
|
|
15640
15644
|
};
|
|
15641
|
-
|
|
15645
|
+
Ve.prototype.appendShape = function(e, t, n, o, i) {
|
|
15642
15646
|
i = i || {}, t = this._create("shape", t);
|
|
15643
15647
|
var a = {
|
|
15644
15648
|
source: e,
|
|
@@ -15651,13 +15655,13 @@ Fe.prototype.appendShape = function(e, t, n, o, i) {
|
|
|
15651
15655
|
};
|
|
15652
15656
|
return this._commandStack.execute("shape.append", a), a.shape;
|
|
15653
15657
|
};
|
|
15654
|
-
|
|
15658
|
+
Ve.prototype.removeElements = function(e) {
|
|
15655
15659
|
var t = {
|
|
15656
15660
|
elements: e
|
|
15657
15661
|
};
|
|
15658
15662
|
this._commandStack.execute("elements.delete", t);
|
|
15659
15663
|
};
|
|
15660
|
-
|
|
15664
|
+
Ve.prototype.distributeElements = function(e, t, n) {
|
|
15661
15665
|
var o = {
|
|
15662
15666
|
groups: e,
|
|
15663
15667
|
axis: t,
|
|
@@ -15665,21 +15669,21 @@ Fe.prototype.distributeElements = function(e, t, n) {
|
|
|
15665
15669
|
};
|
|
15666
15670
|
this._commandStack.execute("elements.distribute", o);
|
|
15667
15671
|
};
|
|
15668
|
-
|
|
15672
|
+
Ve.prototype.removeShape = function(e, t) {
|
|
15669
15673
|
var n = {
|
|
15670
15674
|
shape: e,
|
|
15671
15675
|
hints: t || {}
|
|
15672
15676
|
};
|
|
15673
15677
|
this._commandStack.execute("shape.delete", n);
|
|
15674
15678
|
};
|
|
15675
|
-
|
|
15679
|
+
Ve.prototype.removeConnection = function(e, t) {
|
|
15676
15680
|
var n = {
|
|
15677
15681
|
connection: e,
|
|
15678
15682
|
hints: t || {}
|
|
15679
15683
|
};
|
|
15680
15684
|
this._commandStack.execute("connection.delete", n);
|
|
15681
15685
|
};
|
|
15682
|
-
|
|
15686
|
+
Ve.prototype.replaceShape = function(e, t, n) {
|
|
15683
15687
|
var o = {
|
|
15684
15688
|
oldShape: e,
|
|
15685
15689
|
newData: t,
|
|
@@ -15687,14 +15691,14 @@ Fe.prototype.replaceShape = function(e, t, n) {
|
|
|
15687
15691
|
};
|
|
15688
15692
|
return this._commandStack.execute("shape.replace", o), o.newShape;
|
|
15689
15693
|
};
|
|
15690
|
-
|
|
15694
|
+
Ve.prototype.alignElements = function(e, t) {
|
|
15691
15695
|
var n = {
|
|
15692
15696
|
elements: e,
|
|
15693
15697
|
alignment: t
|
|
15694
15698
|
};
|
|
15695
15699
|
this._commandStack.execute("elements.align", n);
|
|
15696
15700
|
};
|
|
15697
|
-
|
|
15701
|
+
Ve.prototype.resizeShape = function(e, t, n, o) {
|
|
15698
15702
|
var i = {
|
|
15699
15703
|
shape: e,
|
|
15700
15704
|
newBounds: t,
|
|
@@ -15703,7 +15707,7 @@ Fe.prototype.resizeShape = function(e, t, n, o) {
|
|
|
15703
15707
|
};
|
|
15704
15708
|
this._commandStack.execute("shape.resize", i);
|
|
15705
15709
|
};
|
|
15706
|
-
|
|
15710
|
+
Ve.prototype.createSpace = function(e, t, n, o, i) {
|
|
15707
15711
|
var a = {
|
|
15708
15712
|
delta: n,
|
|
15709
15713
|
direction: o,
|
|
@@ -15713,7 +15717,7 @@ Fe.prototype.createSpace = function(e, t, n, o, i) {
|
|
|
15713
15717
|
};
|
|
15714
15718
|
this._commandStack.execute("spaceTool", a);
|
|
15715
15719
|
};
|
|
15716
|
-
|
|
15720
|
+
Ve.prototype.updateWaypoints = function(e, t, n) {
|
|
15717
15721
|
var o = {
|
|
15718
15722
|
connection: e,
|
|
15719
15723
|
newWaypoints: t,
|
|
@@ -15721,7 +15725,7 @@ Fe.prototype.updateWaypoints = function(e, t, n) {
|
|
|
15721
15725
|
};
|
|
15722
15726
|
this._commandStack.execute("connection.updateWaypoints", o);
|
|
15723
15727
|
};
|
|
15724
|
-
|
|
15728
|
+
Ve.prototype.reconnect = function(e, t, n, o, i) {
|
|
15725
15729
|
var a = {
|
|
15726
15730
|
connection: e,
|
|
15727
15731
|
newSource: t,
|
|
@@ -15731,23 +15735,23 @@ Fe.prototype.reconnect = function(e, t, n, o, i) {
|
|
|
15731
15735
|
};
|
|
15732
15736
|
this._commandStack.execute("connection.reconnect", a);
|
|
15733
15737
|
};
|
|
15734
|
-
|
|
15738
|
+
Ve.prototype.reconnectStart = function(e, t, n, o) {
|
|
15735
15739
|
o || (o = {}), this.reconnect(e, t, e.target, n, _e(o, {
|
|
15736
15740
|
docking: "source"
|
|
15737
15741
|
}));
|
|
15738
15742
|
};
|
|
15739
|
-
|
|
15743
|
+
Ve.prototype.reconnectEnd = function(e, t, n, o) {
|
|
15740
15744
|
o || (o = {}), this.reconnect(e, e.source, t, n, _e(o, {
|
|
15741
15745
|
docking: "target"
|
|
15742
15746
|
}));
|
|
15743
15747
|
};
|
|
15744
|
-
|
|
15748
|
+
Ve.prototype.connect = function(e, t, n, o) {
|
|
15745
15749
|
return this.createConnection(e, t, n || {}, e.parent, o);
|
|
15746
15750
|
};
|
|
15747
|
-
|
|
15751
|
+
Ve.prototype._create = function(e, t) {
|
|
15748
15752
|
return by(t) ? t : this._elementFactory.create(e, t);
|
|
15749
15753
|
};
|
|
15750
|
-
|
|
15754
|
+
Ve.prototype.toggleCollapse = function(e, t) {
|
|
15751
15755
|
var n = {
|
|
15752
15756
|
shape: e,
|
|
15753
15757
|
hints: t || {}
|
|
@@ -15860,12 +15864,12 @@ function es(e) {
|
|
|
15860
15864
|
return !e || !e.trim();
|
|
15861
15865
|
}
|
|
15862
15866
|
function yi(e, t, n) {
|
|
15863
|
-
|
|
15867
|
+
Ve.call(this, e, t, n);
|
|
15864
15868
|
}
|
|
15865
|
-
to(yi,
|
|
15869
|
+
to(yi, Ve);
|
|
15866
15870
|
yi.$inject = ["eventBus", "elementFactory", "commandStack"];
|
|
15867
15871
|
yi.prototype.getHandlers = function() {
|
|
15868
|
-
const e =
|
|
15872
|
+
const e = Ve.prototype.getHandlers.call(this);
|
|
15869
15873
|
return e["element.updateLabel"] = qc, e;
|
|
15870
15874
|
};
|
|
15871
15875
|
yi.prototype.updateLabel = function(e, t, n, o) {
|
|
@@ -16009,7 +16013,7 @@ function Yy(e, t, n, o, i) {
|
|
|
16009
16013
|
return Uy(d, f, c);
|
|
16010
16014
|
}
|
|
16011
16015
|
function Gy(e, t, n, o, i, a) {
|
|
16012
|
-
|
|
16016
|
+
Xe(n) && (i = n, a = o, n = vt(e), o = vt(t)), a = _e({ preferredLayouts: [] }, a), i = i || [];
|
|
16013
16017
|
var l = a.preferredLayouts, r = l.indexOf("straight") !== -1, s;
|
|
16014
16018
|
return s = r && Jy(e, t, n, o, a), s || (s = a.connectionEnd && qy(t, e, o, i), s) || (s = a.connectionStart && Xy(e, t, n, i), s) ? s : !a.connectionStart && !a.connectionEnd && i && i.length ? i : Yy(e, t, n, o, a);
|
|
16015
16019
|
}
|
|
@@ -16366,7 +16370,7 @@ function so(e, t, n, o, i, a, l) {
|
|
|
16366
16370
|
{ x: k, y: se },
|
|
16367
16371
|
{ x: re, y: I },
|
|
16368
16372
|
{ x: 0, y: se }
|
|
16369
|
-
].map((
|
|
16373
|
+
].map((ee) => ee.x + "," + ee.y).join(" ");
|
|
16370
16374
|
N = u(N, {
|
|
16371
16375
|
stroke: s,
|
|
16372
16376
|
strokeWidth: 2,
|
|
@@ -17310,7 +17314,7 @@ Bo.prototype.trigger = function(e, t) {
|
|
|
17310
17314
|
var n = this._modeling, o, i = Ut(e, function(s) {
|
|
17311
17315
|
return !(s.waypoints || s.host || s.labelTarget);
|
|
17312
17316
|
});
|
|
17313
|
-
if (o = this._rules.allowed("elements.align", { elements: i }),
|
|
17317
|
+
if (o = this._rules.allowed("elements.align", { elements: i }), Xe(o) && (i = o), !(i.length < 2 || !o)) {
|
|
17314
17318
|
var a = Mb[t], l = oi(i, a), r = this._alignmentPosition(t, l);
|
|
17315
17319
|
n.alignElements(l, r);
|
|
17316
17320
|
}
|
|
@@ -17486,7 +17490,7 @@ function hu(e, t, n, o, i) {
|
|
|
17486
17490
|
return E = l(x, m), a(m, _, E) ? i.start(w, x, m.index) : o.start(w, x, m.index, !m.bendpoint), !0;
|
|
17487
17491
|
}
|
|
17488
17492
|
function s(w, x, _) {
|
|
17489
|
-
|
|
17493
|
+
Ke.bind(w, x, function(m) {
|
|
17490
17494
|
n.triggerMouseEvent(x, m, _), m.stopPropagation();
|
|
17491
17495
|
});
|
|
17492
17496
|
}
|
|
@@ -17877,7 +17881,7 @@ function mu(e) {
|
|
|
17877
17881
|
var Qb = Math.abs, xs = Math.round, Ha = 10;
|
|
17878
17882
|
function yu(e) {
|
|
17879
17883
|
function t(a, l) {
|
|
17880
|
-
if (
|
|
17884
|
+
if (Xe(a)) {
|
|
17881
17885
|
for (var r = a.length; r--; ) if (Qb(a[r] - l) <= Ha)
|
|
17882
17886
|
return a[r];
|
|
17883
17887
|
} else {
|
|
@@ -18082,7 +18086,7 @@ Tt.prototype.add = function(e, t, n) {
|
|
|
18082
18086
|
};
|
|
18083
18087
|
Tt.prototype.remove = function(e) {
|
|
18084
18088
|
var t = this.get(e) || [];
|
|
18085
|
-
|
|
18089
|
+
Xe(t) || (t = [t]);
|
|
18086
18090
|
var n = this;
|
|
18087
18091
|
ne(t, function(o) {
|
|
18088
18092
|
var i = n._getOverlayContainer(o.element, !0);
|
|
@@ -18293,7 +18297,7 @@ wt.prototype._init = function() {
|
|
|
18293
18297
|
}), this._eventBus.on("elements.changed", function(t) {
|
|
18294
18298
|
var n = t.elements, o = e._current;
|
|
18295
18299
|
if (o) {
|
|
18296
|
-
var i = o.target, a =
|
|
18300
|
+
var i = o.target, a = Xe(i) ? i : [i], l = a.filter(function(s) {
|
|
18297
18301
|
return n.includes(s);
|
|
18298
18302
|
});
|
|
18299
18303
|
if (l.length) {
|
|
@@ -18308,7 +18312,7 @@ wt.prototype._init = function() {
|
|
|
18308
18312
|
e._updatePosition();
|
|
18309
18313
|
}), this._eventBus.on("element.marker.update", function(t) {
|
|
18310
18314
|
if (e.isOpen()) {
|
|
18311
|
-
var n = t.element, o = e._current, i =
|
|
18315
|
+
var n = t.element, o = e._current, i = Xe(o.target) ? o.target : [o.target];
|
|
18312
18316
|
i.includes(n) && e._updateVisibility();
|
|
18313
18317
|
}
|
|
18314
18318
|
}), this._container = this._createContainer();
|
|
@@ -18323,7 +18327,7 @@ wt.prototype.registerProvider = function(e, t) {
|
|
|
18323
18327
|
});
|
|
18324
18328
|
};
|
|
18325
18329
|
wt.prototype.getEntries = function(e) {
|
|
18326
|
-
var t = this._getProviders(), n =
|
|
18330
|
+
var t = this._getProviders(), n = Xe(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", o = {};
|
|
18327
18331
|
return ne(t, function(i) {
|
|
18328
18332
|
if (nn(i[n])) {
|
|
18329
18333
|
var a = i[n](e);
|
|
@@ -18395,7 +18399,7 @@ wt.prototype._createHtml = function(e) {
|
|
|
18395
18399
|
t.trigger("mouseover", o);
|
|
18396
18400
|
}), Tn.bind(n, Li, "mouseout", function(o) {
|
|
18397
18401
|
t.trigger("mouseout", o);
|
|
18398
|
-
}),
|
|
18402
|
+
}), Ke.bind(n, "mousedown", function(o) {
|
|
18399
18403
|
o.stopPropagation();
|
|
18400
18404
|
}), this._container.appendChild(n), this._eventBus.fire("contextPad.create", {
|
|
18401
18405
|
target: e,
|
|
@@ -18417,7 +18421,7 @@ wt.prototype.isOpen = function(e) {
|
|
|
18417
18421
|
if (!e)
|
|
18418
18422
|
return !0;
|
|
18419
18423
|
var n = t.target;
|
|
18420
|
-
return
|
|
18424
|
+
return Xe(e) !== Xe(n) ? !1 : Xe(e) ? e.length === n.length && fl(e, function(o) {
|
|
18421
18425
|
return n.includes(o);
|
|
18422
18426
|
}) : n === e;
|
|
18423
18427
|
};
|
|
@@ -18431,7 +18435,7 @@ wt.prototype.hide = function() {
|
|
|
18431
18435
|
this.isOpen() && (Ft(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
|
|
18432
18436
|
};
|
|
18433
18437
|
wt.prototype._getPosition = function(e) {
|
|
18434
|
-
if (!
|
|
18438
|
+
if (!Xe(e) && zt(e)) {
|
|
18435
18439
|
var t = this._canvas.viewbox(), n = vw(e), o = n.x * t.scale - t.x * t.scale, i = n.y * t.scale - t.y * t.scale;
|
|
18436
18440
|
return {
|
|
18437
18441
|
left: o + Cs * this._canvas.zoom(),
|
|
@@ -18463,7 +18467,7 @@ wt.prototype._updatePosition = function() {
|
|
|
18463
18467
|
wt.prototype._updateVisibility = function() {
|
|
18464
18468
|
const e = () => {
|
|
18465
18469
|
if (this.isOpen()) {
|
|
18466
|
-
var t = this, n = this._current.target, o =
|
|
18470
|
+
var t = this, n = this._current.target, o = Xe(n) ? n : [n], i = o.some(function(a) {
|
|
18467
18471
|
return t._canvas.hasMarker(a, fw);
|
|
18468
18472
|
});
|
|
18469
18473
|
i ? t.hide() : t.show();
|
|
@@ -18472,7 +18476,7 @@ wt.prototype._updateVisibility = function() {
|
|
|
18472
18476
|
this._scheduler.schedule(e, "ContextPad#_updateVisibility");
|
|
18473
18477
|
};
|
|
18474
18478
|
wt.prototype._getTargetBounds = function(e) {
|
|
18475
|
-
var t = this, n =
|
|
18479
|
+
var t = this, n = Xe(e) ? e : [e], o = n.map(function(i) {
|
|
18476
18480
|
return t._canvas.getGraphics(i);
|
|
18477
18481
|
});
|
|
18478
18482
|
return o.reduce(function(i, a) {
|
|
@@ -18487,7 +18491,7 @@ wt.prototype._getTargetBounds = function(e) {
|
|
|
18487
18491
|
};
|
|
18488
18492
|
function gw(e, t) {
|
|
18489
18493
|
var n = Ft(e);
|
|
18490
|
-
t =
|
|
18494
|
+
t = Xe(t) ? t : t.split(/\s+/g), t.forEach(function(o) {
|
|
18491
18495
|
n.add(o);
|
|
18492
18496
|
});
|
|
18493
18497
|
}
|
|
@@ -18495,7 +18499,7 @@ function vw(e) {
|
|
|
18495
18499
|
return e.waypoints[e.waypoints.length - 1];
|
|
18496
18500
|
}
|
|
18497
18501
|
function mw(e, t) {
|
|
18498
|
-
return e =
|
|
18502
|
+
return e = Xe(e) ? e : [e], t = Xe(t) ? t : [t], e.length === t.length && fl(e, function(n) {
|
|
18499
18503
|
return t.includes(n);
|
|
18500
18504
|
});
|
|
18501
18505
|
}
|
|
@@ -19190,7 +19194,7 @@ bt.prototype._init = function() {
|
|
|
19190
19194
|
if (Id(a, ku))
|
|
19191
19195
|
return e.toggle();
|
|
19192
19196
|
e.trigger("click", i);
|
|
19193
|
-
}),
|
|
19197
|
+
}), Ke.bind(o, "mousedown", function(i) {
|
|
19194
19198
|
i.stopPropagation();
|
|
19195
19199
|
}), Tn.bind(o, Ru, "dragstart", function(i) {
|
|
19196
19200
|
e.trigger("dragstart", i);
|
|
@@ -19280,7 +19284,7 @@ bt.prototype._getParentContainer = function() {
|
|
|
19280
19284
|
};
|
|
19281
19285
|
bt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
|
|
19282
19286
|
function zw(e, t) {
|
|
19283
|
-
var n = Ft(e), o =
|
|
19287
|
+
var n = Ft(e), o = Xe(t) ? t : t.split(/\s+/g);
|
|
19284
19288
|
o.forEach(function(i) {
|
|
19285
19289
|
n.add(i);
|
|
19286
19290
|
});
|
|
@@ -19337,7 +19341,7 @@ function zi(e, t, n) {
|
|
|
19337
19341
|
function Uw(e, t) {
|
|
19338
19342
|
if (!t)
|
|
19339
19343
|
return e;
|
|
19340
|
-
var n =
|
|
19344
|
+
var n = Je(e);
|
|
19341
19345
|
return _c({
|
|
19342
19346
|
top: zi("top", n, t),
|
|
19343
19347
|
right: zi("right", n, t),
|
|
@@ -19346,12 +19350,12 @@ function Uw(e, t) {
|
|
|
19346
19350
|
});
|
|
19347
19351
|
}
|
|
19348
19352
|
function Yw(e, t, n, o) {
|
|
19349
|
-
var i =
|
|
19353
|
+
var i = Je(t), a = {
|
|
19350
19354
|
top: /n/.test(e) ? i.bottom - n.height : i.top,
|
|
19351
19355
|
left: /w/.test(e) ? i.right - n.width : i.left,
|
|
19352
19356
|
bottom: /s/.test(e) ? i.top + n.height : i.bottom,
|
|
19353
19357
|
right: /e/.test(e) ? i.left + n.width : i.right
|
|
19354
|
-
}, l = o ?
|
|
19358
|
+
}, l = o ? Je(o) : a, r = {
|
|
19355
19359
|
top: na(a.top, l.top),
|
|
19356
19360
|
left: na(a.left, l.left),
|
|
19357
19361
|
bottom: ta(a.bottom, l.bottom),
|
|
@@ -19390,7 +19394,7 @@ function bi(e, t, n, o) {
|
|
|
19390
19394
|
function l(s) {
|
|
19391
19395
|
var c = s.resizeConstraints, u = s.minBounds;
|
|
19392
19396
|
c === void 0 && (u === void 0 && (u = i.computeMinResizeBox(s)), s.resizeConstraints = {
|
|
19393
|
-
min:
|
|
19397
|
+
min: Je(u)
|
|
19394
19398
|
});
|
|
19395
19399
|
}
|
|
19396
19400
|
function r(s) {
|
|
@@ -19449,7 +19453,7 @@ function Xw(e, t) {
|
|
|
19449
19453
|
return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
|
|
19450
19454
|
}
|
|
19451
19455
|
function Mu(e, t) {
|
|
19452
|
-
var n = vt(e), o =
|
|
19456
|
+
var n = vt(e), o = Je(e), i = {
|
|
19453
19457
|
x: n.x,
|
|
19454
19458
|
y: n.y
|
|
19455
19459
|
};
|
|
@@ -19497,7 +19501,7 @@ Fn.prototype.makeDraggable = function(e, t, n) {
|
|
|
19497
19501
|
function i(a) {
|
|
19498
19502
|
Hn(a) && o.activate(a, e, n);
|
|
19499
19503
|
}
|
|
19500
|
-
|
|
19504
|
+
Ke.bind(t, "mousedown", i), Ke.bind(t, "touchstart", i);
|
|
19501
19505
|
};
|
|
19502
19506
|
Fn.prototype._createResizer = function(e, t, n, o) {
|
|
19503
19507
|
var i = this._getResizersParent(), a = ex(o), l = Le("g");
|
|
@@ -19861,7 +19865,7 @@ xi.prototype.getSnapTargets = function(e, t) {
|
|
|
19861
19865
|
});
|
|
19862
19866
|
};
|
|
19863
19867
|
function Au(e, t) {
|
|
19864
|
-
var n = vt(e), o =
|
|
19868
|
+
var n = vt(e), o = Je(e), i = {
|
|
19865
19869
|
x: n.x,
|
|
19866
19870
|
y: n.y
|
|
19867
19871
|
};
|
|
@@ -20095,7 +20099,7 @@ function yx(e, t) {
|
|
|
20095
20099
|
var o = t.defaultDistance || ju, i = t.direction || "e", a = t.filter, l = t.getWeight || n, r = t.maxDistance || mx, s = t.reference || "start";
|
|
20096
20100
|
a || (a = bx);
|
|
20097
20101
|
function c(p, g) {
|
|
20098
|
-
return i === "n" ? s === "start" ?
|
|
20102
|
+
return i === "n" ? s === "start" ? Je(p).top - Je(g).bottom : s === "center" ? Je(p).top - vt(g).y : Je(p).top - Je(g).top : i === "w" ? s === "start" ? Je(p).left - Je(g).right : s === "center" ? Je(p).left - vt(g).x : Je(p).left - Je(g).left : i === "s" ? s === "start" ? Je(g).top - Je(p).bottom : s === "center" ? vt(g).y - Je(p).bottom : Je(g).bottom - Je(p).bottom : s === "start" ? Je(g).left - Je(p).right : s === "center" ? vt(g).x - Je(p).right : Je(g).right - Je(p).right;
|
|
20099
20103
|
}
|
|
20100
20104
|
var u = e.incoming.filter(a).map(function(p) {
|
|
20101
20105
|
var g = l(p), v = g < 0 ? c(p.source, e) : c(e, p.source);
|
|
@@ -20151,7 +20155,7 @@ Hu.$inject = [
|
|
|
20151
20155
|
];
|
|
20152
20156
|
function xx(e, t, n) {
|
|
20153
20157
|
n || (n = {});
|
|
20154
|
-
var o = n.defaultDistance || ju, i = vt(e), a =
|
|
20158
|
+
var o = n.defaultDistance || ju, i = vt(e), a = Je(e);
|
|
20155
20159
|
return {
|
|
20156
20160
|
x: a.right + o + t.width / 2,
|
|
20157
20161
|
y: i.y
|
|
@@ -20226,7 +20230,7 @@ function Ax(e, t) {
|
|
|
20226
20230
|
return jx(e, t);
|
|
20227
20231
|
}
|
|
20228
20232
|
function jx(e, t) {
|
|
20229
|
-
const n =
|
|
20233
|
+
const n = Je(e), o = vt(e), i = yx(e, {
|
|
20230
20234
|
filter: (u) => _x(u, "myline")
|
|
20231
20235
|
}), a = 30, l = 80, s = {
|
|
20232
20236
|
x: n.right + i + t.width / 2,
|
|
@@ -20654,7 +20658,7 @@ const Ix = {
|
|
|
20654
20658
|
key: z.i,
|
|
20655
20659
|
style: { "margin-bottom": "8px" }
|
|
20656
20660
|
}, [
|
|
20657
|
-
|
|
20661
|
+
K(D, { gutter: e.gutter }, {
|
|
20658
20662
|
default: V(() => [
|
|
20659
20663
|
(C(!0), O(ye, null, Ee(e.columns, (M) => (C(), H(P, {
|
|
20660
20664
|
key: M.prop,
|
|
@@ -20664,15 +20668,15 @@ const Ix = {
|
|
|
20664
20668
|
})
|
|
20665
20669
|
}, {
|
|
20666
20670
|
default: V(() => [
|
|
20667
|
-
dn(
|
|
20671
|
+
dn(K(T, {
|
|
20668
20672
|
"label-width": x(M.config?.labelWidth),
|
|
20669
|
-
label:
|
|
20673
|
+
label: G(a)(M.config?.label || ""),
|
|
20670
20674
|
extra: M.config?.labelExtra,
|
|
20671
20675
|
tooltip: M.config?.labelTooltip,
|
|
20672
20676
|
required: M.config?.required
|
|
20673
20677
|
}, {
|
|
20674
20678
|
default: V(() => [
|
|
20675
|
-
|
|
20679
|
+
K(S, je({ ref_for: !0 }, M, { row: z }), null, 16, ["row"])
|
|
20676
20680
|
]),
|
|
20677
20681
|
_: 2
|
|
20678
20682
|
}, 1032, ["label-width", "label", "extra", "tooltip", "required"]), [
|
|
@@ -20689,7 +20693,7 @@ const Ix = {
|
|
|
20689
20693
|
icon: "mdi:close",
|
|
20690
20694
|
danger: "",
|
|
20691
20695
|
onClick: (M) => v($)
|
|
20692
|
-
}, null, 8, ["onClick"])) :
|
|
20696
|
+
}, null, 8, ["onClick"])) : Y("", !0)
|
|
20693
20697
|
]),
|
|
20694
20698
|
_: 2
|
|
20695
20699
|
}, 1032, ["gutter"])
|
|
@@ -20706,8 +20710,8 @@ const Ix = {
|
|
|
20706
20710
|
label: s.value,
|
|
20707
20711
|
icon: "mdi:add",
|
|
20708
20712
|
onClick: g
|
|
20709
|
-
}, null, 8, ["label"])) :
|
|
20710
|
-
], 4)) :
|
|
20713
|
+
}, null, 8, ["label"])) : Y("", !0)
|
|
20714
|
+
], 4)) : Y("", !0)
|
|
20711
20715
|
], 64);
|
|
20712
20716
|
};
|
|
20713
20717
|
}
|