@a2simcode/ui 0.0.87 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/input-layer/index.d.ts +50 -0
- package/dist/components/input-layer/src/input-layer.vue.d.ts +50 -0
- package/dist/components/table-panel/index.d.ts +75 -0
- package/dist/components/table-panel/src/table-panel.vue.d.ts +75 -0
- package/dist/simcode-ui.es.js +563 -542
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/meta/table-panel.ts +30 -0
- package/docs/components/table-panel.md +31 -28
- package/docs/examples/table-panel/button-visibility.vue +88 -0
- package/docs/examples/table-panel/get-selection.vue +111 -0
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as we, computed as j, createBlock as H, createCommentVNode as
|
|
1
|
+
import { Fragment as we, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as _n, createTextVNode as Jt, createVNode as G, defineComponent as re, getCurrentInstance as Ws, guardReactiveProps as wl, h as qu, inject as Zu, mergeModels as so, mergeProps as Ie, nextTick as St, normalizeClass as Be, normalizeProps as gi, normalizeStyle as be, onBeforeUnmount as fo, onMounted as wt, onUnmounted as ho, openBlock as _, provide as Qu, reactive as Ra, ref as P, render as ni, renderList as Re, renderSlot as Fe, resolveComponent as I, resolveDirective as vi, resolveDynamicComponent as Ta, shallowRef as mi, toDisplayString as me, unref as K, useModel as co, useSlots as ed, useTemplateRef as ia, vShow as no, watch as nt, watchEffect as Us, withCtx as N, withDirectives as xn, withKeys as Xi, withModifiers as Rt } from "vue";
|
|
2
2
|
import { Icon as hr, getIcon as oa } from "@iconify/vue";
|
|
3
3
|
import Ys from "dayjs";
|
|
4
4
|
import td from "crypto-js/aes";
|
|
@@ -30,12 +30,12 @@ import { markdown as kd } from "@codemirror/lang-markdown";
|
|
|
30
30
|
import { java as Rd } from "@codemirror/lang-java";
|
|
31
31
|
import { autocompletion as Td, closeBrackets as Md, closeBracketsKeymap as Ad } from "@codemirror/autocomplete";
|
|
32
32
|
import { defaultKeymap as Pd, history as jd, historyKeymap as Hd } from "@codemirror/commands";
|
|
33
|
-
import { bracketMatching as Od, defaultHighlightStyle as
|
|
33
|
+
import { bracketMatching as Od, defaultHighlightStyle as Bd, foldGutter as Id, foldKeymap as Ld, indentOnInput as zd, syntaxHighlighting as $d } from "@codemirror/language";
|
|
34
34
|
import { useVirtualList as xl } from "@vueuse/core";
|
|
35
35
|
import Dd from "async-validator";
|
|
36
36
|
import { createEditor as Fd, createToolbar as Vd } from "@wangeditor/editor";
|
|
37
37
|
import Gs from "diagram-js";
|
|
38
|
-
import { assignStyle as po, attr as on, classes as Yt, clear as Js, closest as _l, delegate as
|
|
38
|
+
import { assignStyle as po, attr as on, classes as Yt, clear as Js, closest as _l, delegate as Bn, domify as Kt, event as Qe, matches as Nd, query as $t, queryAll as qi, remove as Zi } from "min-dom";
|
|
39
39
|
import { assign as Ee, bind as Cl, debounce as Wd, every as Sl, filter as Xt, find as cn, flatten as Ud, forEach as ne, groupBy as El, has as Xs, isArray as tt, isDefined as an, isFunction as un, isNil as vr, isNumber as Ct, isObject as qt, isString as Qi, isUndefined as Yd, map as go, matchPattern as ai, omit as Kd, pick as oi, reduce as el, size as Gd, some as Jd, sortBy as uo, uniqueBy as Xd, values as qs, without as qd } from "min-dash";
|
|
40
40
|
import { append as Le, attr as ye, classes as it, clear as kl, clone as Zs, create as Me, createTransform as ao, remove as Gt, transform as Rl } from "tiny-svg";
|
|
41
41
|
import ra from "inherits";
|
|
@@ -78,10 +78,10 @@ var dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
78
78
|
color: t.color,
|
|
79
79
|
icon: n.value
|
|
80
80
|
}));
|
|
81
|
-
return (o, i) => e.isDiv ? (_(), O("div",
|
|
81
|
+
return (o, i) => e.isDiv ? (_(), O("div", Ie({ key: 0 }, o.$attrs, {
|
|
82
82
|
class: "j-icon jicon",
|
|
83
83
|
style: { height: `${e.size}px` }
|
|
84
|
-
}), [G(K(hr),
|
|
84
|
+
}), [G(K(hr), Ie(a.value, {
|
|
85
85
|
height: `${e.size}px`,
|
|
86
86
|
width: `${e.size}px`,
|
|
87
87
|
mode: "svg",
|
|
@@ -90,7 +90,7 @@ var dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
90
90
|
"height",
|
|
91
91
|
"width",
|
|
92
92
|
"style"
|
|
93
|
-
])], 16)) : (_(), O("span",
|
|
93
|
+
])], 16)) : (_(), O("span", Ie({ key: 1 }, o.$attrs, { class: "jicon" }), [G(K(hr), Ie(a.value, {
|
|
94
94
|
height: `${e.size}px`,
|
|
95
95
|
width: `${e.size}px`,
|
|
96
96
|
mode: "svg",
|
|
@@ -177,7 +177,7 @@ var dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
177
177
|
ref_key: "buttonNodeRef",
|
|
178
178
|
ref: l,
|
|
179
179
|
type: "button",
|
|
180
|
-
class:
|
|
180
|
+
class: Be(["j-button", {
|
|
181
181
|
"j-button-primary": e.type == "primary",
|
|
182
182
|
"j-button-default": e.type == "default",
|
|
183
183
|
"j-button-dashed": e.type == "dashed",
|
|
@@ -204,12 +204,12 @@ var dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
204
204
|
icon: "mdi:loading",
|
|
205
205
|
size: e.size == "large" ? 14 : 12,
|
|
206
206
|
class: "loading-spin j-button-loading-icon"
|
|
207
|
-
}, null, 8, ["size"])) :
|
|
207
|
+
}, null, 8, ["size"])) : U("", !0),
|
|
208
208
|
e.icon ? (_(), H(la, {
|
|
209
209
|
key: 1,
|
|
210
210
|
icon: e.icon
|
|
211
|
-
}, null, 8, ["icon"])) :
|
|
212
|
-
e.notLabel ?
|
|
211
|
+
}, null, 8, ["icon"])) : U("", !0),
|
|
212
|
+
e.notLabel ? U("", !0) : (_(), O("div", nf, me(d.value), 1)),
|
|
213
213
|
Fe(f.$slots, "iconAfter")
|
|
214
214
|
], 10, tf));
|
|
215
215
|
}
|
|
@@ -794,10 +794,10 @@ function dC() {
|
|
|
794
794
|
function Of(e) {
|
|
795
795
|
En(Pt.LAYER_PROVIDE, e);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Bf() {
|
|
798
798
|
return Sn(Pt.PAGE_PROVIDE, {});
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function If(e) {
|
|
801
801
|
En(Pt.PAGE_PROVIDE, e);
|
|
802
802
|
}
|
|
803
803
|
var Lf = /* @__PURE__ */ re({
|
|
@@ -860,7 +860,7 @@ var Lf = /* @__PURE__ */ re({
|
|
|
860
860
|
m && m();
|
|
861
861
|
};
|
|
862
862
|
return Hf({ getPageName: g }), t({ open: T }), ($, D) => {
|
|
863
|
-
const M =
|
|
863
|
+
const M = I("j-layer");
|
|
864
864
|
return _(), H(M, {
|
|
865
865
|
ref_key: "layerRef",
|
|
866
866
|
ref: n,
|
|
@@ -880,7 +880,7 @@ var Lf = /* @__PURE__ */ re({
|
|
|
880
880
|
onClosed: R,
|
|
881
881
|
onCancel: F
|
|
882
882
|
}, {
|
|
883
|
-
default: N(() => [(_(), H(Ta(f.value),
|
|
883
|
+
default: N(() => [(_(), H(Ta(f.value), Ie({
|
|
884
884
|
ref_key: "componentRef",
|
|
885
885
|
ref: d
|
|
886
886
|
}, h.value), null, 16))]),
|
|
@@ -940,11 +940,11 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
940
940
|
i.config?.disabled || i.click && i.click({ openLayer: a });
|
|
941
941
|
};
|
|
942
942
|
return (i, l) => {
|
|
943
|
-
const r =
|
|
943
|
+
const r = I("j-button"), s = I("el-space"), c = I("el-dropdown");
|
|
944
944
|
return _(), H(s, { size: e.isLink ? 0 : 8 }, {
|
|
945
|
-
default: N(() => [(_(!0), O(we, null, Re(n.value, (u, d) => (_(), O("div",
|
|
945
|
+
default: N(() => [(_(!0), O(we, null, Re(n.value, (u, d) => (_(), O("div", Ie({ key: d }, { ref_for: !0 }, i.$attrs), [(_(!0), O(we, null, Re(u, (f, h) => (_(), O(we, { key: h }, [f.children?.length && f.children?.length > 0 ? (_(), H(c, { key: 0 }, {
|
|
946
946
|
dropdown: N(() => [G(s, { direction: "vertical" }, {
|
|
947
|
-
default: N(() => [(_(!0), O(we, null, Re(f.children || [], (p) => (_(), H(r,
|
|
947
|
+
default: N(() => [(_(!0), O(we, null, Re(f.children || [], (p) => (_(), H(r, Ie({ key: p.id }, { ref_for: !0 }, p.config, {
|
|
948
948
|
type: "text",
|
|
949
949
|
label: p.label,
|
|
950
950
|
size: e.size,
|
|
@@ -956,7 +956,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
956
956
|
]))), 128))]),
|
|
957
957
|
_: 2
|
|
958
958
|
}, 1024)]),
|
|
959
|
-
default: N(() => [G(r,
|
|
959
|
+
default: N(() => [G(r, Ie({ ref_for: !0 }, f.config, {
|
|
960
960
|
label: f.label,
|
|
961
961
|
size: e.size,
|
|
962
962
|
type: e.isLink ? "link" : f.config?.type,
|
|
@@ -973,7 +973,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
973
973
|
"onClick"
|
|
974
974
|
])]),
|
|
975
975
|
_: 2
|
|
976
|
-
}, 1024)) : (_(), H(r,
|
|
976
|
+
}, 1024)) : (_(), H(r, Ie({
|
|
977
977
|
key: 1,
|
|
978
978
|
ref_for: !0
|
|
979
979
|
}, f.config, {
|
|
@@ -1094,8 +1094,8 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1094
1094
|
return wt(() => {
|
|
1095
1095
|
n.autoFocus && !n.readonly && o.value.focus();
|
|
1096
1096
|
}), (d, f) => {
|
|
1097
|
-
const h =
|
|
1098
|
-
return _(), H(p,
|
|
1097
|
+
const h = I("j-icon"), p = I("el-input");
|
|
1098
|
+
return _(), H(p, Ie({
|
|
1099
1099
|
ref_key: "inputRef",
|
|
1100
1100
|
ref: o,
|
|
1101
1101
|
modelValue: i.value,
|
|
@@ -1305,8 +1305,8 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1305
1305
|
o("visible-change", p);
|
|
1306
1306
|
};
|
|
1307
1307
|
return t({ ref: i }), (p, g) => {
|
|
1308
|
-
const v =
|
|
1309
|
-
return _(), H(v,
|
|
1308
|
+
const v = I("el-date-picker");
|
|
1309
|
+
return _(), H(v, Ie({
|
|
1310
1310
|
ref_key: "dateRef",
|
|
1311
1311
|
ref: i
|
|
1312
1312
|
}, p.$attrs, {
|
|
@@ -1407,7 +1407,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1407
1407
|
}
|
|
1408
1408
|
});
|
|
1409
1409
|
return (i, l) => {
|
|
1410
|
-
const r =
|
|
1410
|
+
const r = I("el-radio-button"), s = I("el-tag"), c = I("el-radio"), u = I("el-radio-group");
|
|
1411
1411
|
return _(), H(u, {
|
|
1412
1412
|
modelValue: o.value,
|
|
1413
1413
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.value = d),
|
|
@@ -1564,8 +1564,8 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1564
1564
|
o.value.toggleMenu();
|
|
1565
1565
|
}, 50);
|
|
1566
1566
|
}), (d, f) => {
|
|
1567
|
-
const h =
|
|
1568
|
-
return _(), H(v,
|
|
1567
|
+
const h = I("el-tooltip"), p = I("el-option"), g = I("el-option-group"), v = I("el-select");
|
|
1568
|
+
return _(), H(v, Ie({
|
|
1569
1569
|
ref_key: "selectRef",
|
|
1570
1570
|
ref: o
|
|
1571
1571
|
}, d.$attrs, {
|
|
@@ -1600,7 +1600,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1600
1600
|
key: 0,
|
|
1601
1601
|
class: "j-select-option-icon",
|
|
1602
1602
|
icon: w.icon
|
|
1603
|
-
}, null, 8, ["icon"])) :
|
|
1603
|
+
}, null, 8, ["icon"])) : U("", !0), V("div", null, me(w.label), 1)])]),
|
|
1604
1604
|
_: 2
|
|
1605
1605
|
}, 1032, [
|
|
1606
1606
|
"label",
|
|
@@ -1618,7 +1618,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
class: "j-select-option-icon",
|
|
1620
1620
|
icon: b.icon
|
|
1621
|
-
}, null, 8, ["icon"])) :
|
|
1621
|
+
}, null, 8, ["icon"])) : U("", !0), V("div", null, me(b.label), 1)])]),
|
|
1622
1622
|
_: 2
|
|
1623
1623
|
}, 1032, [
|
|
1624
1624
|
"label",
|
|
@@ -1632,7 +1632,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1632
1632
|
key: 0,
|
|
1633
1633
|
class: "j-select-option-icon",
|
|
1634
1634
|
icon: r.value
|
|
1635
|
-
}, null, 8, ["icon"])) :
|
|
1635
|
+
}, null, 8, ["icon"])) : U("", !0), V("div", null, [e.isShowTooltip ? (_(), H(h, {
|
|
1636
1636
|
key: 0,
|
|
1637
1637
|
content: l.value,
|
|
1638
1638
|
placement: "top"
|
|
@@ -1773,7 +1773,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1773
1773
|
o.value.togglePopperVisible();
|
|
1774
1774
|
}, 50);
|
|
1775
1775
|
}), (d, f) => {
|
|
1776
|
-
const h =
|
|
1776
|
+
const h = I("el-cascader");
|
|
1777
1777
|
return _(), H(h, {
|
|
1778
1778
|
ref_key: "cascaderRef",
|
|
1779
1779
|
ref: o,
|
|
@@ -1849,7 +1849,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1849
1849
|
a("change", l);
|
|
1850
1850
|
};
|
|
1851
1851
|
return (l, r) => {
|
|
1852
|
-
const s =
|
|
1852
|
+
const s = I("el-checkbox"), c = I("el-checkbox-button"), u = I("el-checkbox-group");
|
|
1853
1853
|
return _(), H(u, {
|
|
1854
1854
|
modelValue: o.value,
|
|
1855
1855
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => o.value = d),
|
|
@@ -1878,7 +1878,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1878
1878
|
"label"
|
|
1879
1879
|
]))), 128)) : (_(!0), O(we, { key: 1 }, Re(e.options, (d) => (_(), H(c, {
|
|
1880
1880
|
key: d.value,
|
|
1881
|
-
class:
|
|
1881
|
+
class: Be({ "j-checkbox-notFillOrColor": !e.fill && !e.textColor }),
|
|
1882
1882
|
value: d.value,
|
|
1883
1883
|
disabled: d.disabled,
|
|
1884
1884
|
size: e.size,
|
|
@@ -1981,7 +1981,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
1981
1981
|
}), wt(() => {
|
|
1982
1982
|
a.autoFocus && !a.readonly && o.value?.focus();
|
|
1983
1983
|
}), (f, h) => {
|
|
1984
|
-
const p =
|
|
1984
|
+
const p = I("j-icon"), g = I("el-input-number");
|
|
1985
1985
|
return _(), H(g, {
|
|
1986
1986
|
id: e.id,
|
|
1987
1987
|
ref_key: "inputNumberRef",
|
|
@@ -2012,11 +2012,11 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2012
2012
|
"decrease-icon": N(() => [e.decreaseIcon ? (_(), H(p, {
|
|
2013
2013
|
key: 0,
|
|
2014
2014
|
icon: e.decreaseIcon
|
|
2015
|
-
}, null, 8, ["icon"])) :
|
|
2015
|
+
}, null, 8, ["icon"])) : U("", !0)]),
|
|
2016
2016
|
"increase-icon": N(() => [e.increaseIcon ? (_(), H(p, {
|
|
2017
2017
|
key: 0,
|
|
2018
2018
|
icon: e.increaseIcon
|
|
2019
|
-
}, null, 8, ["icon"])) :
|
|
2019
|
+
}, null, 8, ["icon"])) : U("", !0)]),
|
|
2020
2020
|
_: 2
|
|
2021
2021
|
}, [e.prefix ? {
|
|
2022
2022
|
name: "prefix",
|
|
@@ -2151,7 +2151,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2151
2151
|
o.value.focus();
|
|
2152
2152
|
}, 50);
|
|
2153
2153
|
}), (g, v) => {
|
|
2154
|
-
const b =
|
|
2154
|
+
const b = I("el-autocomplete");
|
|
2155
2155
|
return _(), H(b, {
|
|
2156
2156
|
ref_key: "autocompleteRef",
|
|
2157
2157
|
ref: o,
|
|
@@ -2418,7 +2418,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2418
2418
|
}), (D, M) => (_(), O("div", {
|
|
2419
2419
|
ref_key: "layout",
|
|
2420
2420
|
ref: a,
|
|
2421
|
-
class:
|
|
2421
|
+
class: Be(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
2422
2422
|
}, [
|
|
2423
2423
|
v.value ? (_(), O("div", {
|
|
2424
2424
|
key: 0,
|
|
@@ -2428,8 +2428,8 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2428
2428
|
key: 0,
|
|
2429
2429
|
class: "j-layout--move",
|
|
2430
2430
|
onMousedown: M[0] || (M[0] = (C) => T("left", C))
|
|
2431
|
-
}, null, 32)) :
|
|
2432
|
-
u.value ?
|
|
2431
|
+
}, null, 32)) : U("", !0)], 4)) : U("", !0),
|
|
2432
|
+
u.value ? U("", !0) : (_(), O("div", bh, [
|
|
2433
2433
|
w.value ? (_(), O("div", {
|
|
2434
2434
|
key: 0,
|
|
2435
2435
|
class: "j-layout--top",
|
|
@@ -2438,7 +2438,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2438
2438
|
key: 0,
|
|
2439
2439
|
class: "j-layout--move",
|
|
2440
2440
|
onMousedown: M[1] || (M[1] = (C) => T("top", C))
|
|
2441
|
-
}, null, 32)) :
|
|
2441
|
+
}, null, 32)) : U("", !0)], 4)) : U("", !0),
|
|
2442
2442
|
V("div", {
|
|
2443
2443
|
ref_key: "mid",
|
|
2444
2444
|
ref: o,
|
|
@@ -2453,7 +2453,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2453
2453
|
key: 0,
|
|
2454
2454
|
class: "j-layout--move",
|
|
2455
2455
|
onMousedown: M[2] || (M[2] = (C) => T("bottom", C))
|
|
2456
|
-
}, null, 32)) :
|
|
2456
|
+
}, null, 32)) : U("", !0)], 4)) : U("", !0)
|
|
2457
2457
|
])),
|
|
2458
2458
|
b.value ? (_(), O("div", {
|
|
2459
2459
|
key: 2,
|
|
@@ -2463,7 +2463,7 @@ var $f = ue(cc), Df = /* @__PURE__ */ re({
|
|
|
2463
2463
|
key: 0,
|
|
2464
2464
|
class: "j-layout--move",
|
|
2465
2465
|
onMousedown: M[3] || (M[3] = (C) => T("right", C))
|
|
2466
|
-
}, null, 32)) :
|
|
2466
|
+
}, null, 32)) : U("", !0)], 4)) : U("", !0)
|
|
2467
2467
|
], 2));
|
|
2468
2468
|
}
|
|
2469
2469
|
}), Sh = Ch, Eh = ue(Sh);
|
|
@@ -3767,7 +3767,7 @@ function Oh(e) {
|
|
|
3767
3767
|
return n && t.subTableInstances ? (t.subTableInstances.set = function(a, o) {
|
|
3768
3768
|
const i = n.call(this, a, o), l = (r) => {
|
|
3769
3769
|
const { field: s } = r;
|
|
3770
|
-
|
|
3770
|
+
Bh(e, o, a, s);
|
|
3771
3771
|
};
|
|
3772
3772
|
return o.on("checkbox_state_change", l), o.__checkboxHandler = l, i;
|
|
3773
3773
|
}, () => {
|
|
@@ -3775,7 +3775,7 @@ function Oh(e) {
|
|
|
3775
3775
|
}) : () => {
|
|
3776
3776
|
};
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function Bh(e, t, n, a) {
|
|
3779
3779
|
const o = n + e.columnHeaderLevelCount;
|
|
3780
3780
|
let i = !1;
|
|
3781
3781
|
const l = t.stateManager.headerCheckedState[a];
|
|
@@ -3800,7 +3800,7 @@ function _r(e, t, n) {
|
|
|
3800
3800
|
for (let o = e.columnHeaderLevelCount; o < e.rowCount; o++) li(a, o, n, e);
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
|
-
var
|
|
3803
|
+
var Ih = class {
|
|
3804
3804
|
constructor(e = {}) {
|
|
3805
3805
|
this.id = "Master Detail Plugin", this.name = "Master Detail Plugin", this.runTime = [
|
|
3806
3806
|
Oe.TABLE_EVENT_TYPE.BEFORE_INIT,
|
|
@@ -4181,12 +4181,12 @@ var Bh = class {
|
|
|
4181
4181
|
r(v);
|
|
4182
4182
|
};
|
|
4183
4183
|
return (v, b) => {
|
|
4184
|
-
const w =
|
|
4184
|
+
const w = I("j-comp"), y = I("el-form-item"), x = I("el-col");
|
|
4185
4185
|
return c.value.display !== !1 && !e.isNotCol ? (_(), H(x, {
|
|
4186
4186
|
key: 0,
|
|
4187
4187
|
span: c.value.span || K(i),
|
|
4188
4188
|
style: be({ ...c.value.colStyle || {} }),
|
|
4189
|
-
class:
|
|
4189
|
+
class: Be(c.value.colClass || {})
|
|
4190
4190
|
}, {
|
|
4191
4191
|
default: N(() => [d.value && c.value.needFormItem !== !1 ? (_(), H(y, {
|
|
4192
4192
|
key: 0,
|
|
@@ -4244,7 +4244,7 @@ var Bh = class {
|
|
|
4244
4244
|
"type",
|
|
4245
4245
|
"config",
|
|
4246
4246
|
"children"
|
|
4247
|
-
])) :
|
|
4247
|
+
])) : U("", !0);
|
|
4248
4248
|
};
|
|
4249
4249
|
}
|
|
4250
4250
|
}), dc = Lh, zh = /* @__PURE__ */ re({
|
|
@@ -4309,7 +4309,7 @@ var Bh = class {
|
|
|
4309
4309
|
},
|
|
4310
4310
|
emits: ["update:modelValue", "change"],
|
|
4311
4311
|
setup(e, { emit: t }) {
|
|
4312
|
-
const n = e, a = t, { contextType: o } = Tf(), { formData: i, formChange: l, gutter: r } = sa(), s = j(() => r?.value || 16), { registerMethod: c } =
|
|
4312
|
+
const n = e, a = t, { contextType: o } = Tf(), { formData: i, formChange: l, gutter: r } = sa(), s = j(() => r?.value || 16), { registerMethod: c } = Bf();
|
|
4313
4313
|
let u = Rf();
|
|
4314
4314
|
n.getTableProvide && (u = n.getTableProvide());
|
|
4315
4315
|
const { getTableData: d, row: f, rowChange: h } = u, p = n.row || f;
|
|
@@ -4414,8 +4414,8 @@ var Bh = class {
|
|
|
4414
4414
|
}), fo(() => {
|
|
4415
4415
|
S.value.forEach((R) => R()), S.value = [];
|
|
4416
4416
|
}), (R, F) => {
|
|
4417
|
-
const $ =
|
|
4418
|
-
return x.value.display != !1 && g.value ? (_(), H(Ta(y.value),
|
|
4417
|
+
const $ = I("JComp"), D = I("el-row");
|
|
4418
|
+
return x.value.display != !1 && g.value ? (_(), H(Ta(y.value), Ie({
|
|
4419
4419
|
key: 0,
|
|
4420
4420
|
ref_key: "compRef",
|
|
4421
4421
|
ref: E
|
|
@@ -4425,8 +4425,8 @@ var Bh = class {
|
|
|
4425
4425
|
onChange: m
|
|
4426
4426
|
}), _n({ _: 2 }, [Re(k.value, (M, C) => ({
|
|
4427
4427
|
name: C,
|
|
4428
|
-
fn: N(() => [(_(!0), O(we, null, Re(M, (L) => (_(), H($,
|
|
4429
|
-
}))]), 1040, ["modelValue"])) : x.value.display != !1 ? (_(), H(Ta(y.value),
|
|
4428
|
+
fn: N(() => [(_(!0), O(we, null, Re(M, (L) => (_(), H($, Ie({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128))])
|
|
4429
|
+
}))]), 1040, ["modelValue"])) : x.value.display != !1 ? (_(), H(Ta(y.value), Ie({
|
|
4430
4430
|
key: 1,
|
|
4431
4431
|
ref_key: "compRef",
|
|
4432
4432
|
ref: E
|
|
@@ -4436,10 +4436,10 @@ var Bh = class {
|
|
|
4436
4436
|
key: 0,
|
|
4437
4437
|
gutter: s.value
|
|
4438
4438
|
}, {
|
|
4439
|
-
default: N(() => [x.value.needFormItem ? (_(!0), O(we, { key: 0 }, Re(M, (L) => (_(), H(dc,
|
|
4439
|
+
default: N(() => [x.value.needFormItem ? (_(!0), O(we, { key: 0 }, Re(M, (L) => (_(), H(dc, Ie({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128)) : (_(!0), O(we, { key: 1 }, Re(M, (L) => (_(), H($, Ie({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128))]),
|
|
4440
4440
|
_: 2
|
|
4441
|
-
}, 1032, ["gutter"])) : (_(!0), O(we, { key: 1 }, Re(M, (L) => (_(), H($,
|
|
4442
|
-
}))]), 1040)) :
|
|
4441
|
+
}, 1032, ["gutter"])) : (_(!0), O(we, { key: 1 }, Re(M, (L) => (_(), H($, Ie({ key: L.id }, { ref_for: !0 }, L), null, 16))), 128))])
|
|
4442
|
+
}))]), 1040)) : U("", !0);
|
|
4443
4443
|
};
|
|
4444
4444
|
}
|
|
4445
4445
|
}), fc = zh, $h = class {
|
|
@@ -4685,16 +4685,16 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4685
4685
|
],
|
|
4686
4686
|
setup(e, { expose: t, emit: n }) {
|
|
4687
4687
|
const a = Ws(), o = e, i = n, { formData: l } = sa(), { useData: r } = Tt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = mo(), d = j(() => o.heightMode === "auto" ? { height: "auto" } : {}), f = P(40), h = j(() => {
|
|
4688
|
-
const
|
|
4689
|
-
return o.heightMode === "auto" && (o.emptyTipText && f.value < 200 ?
|
|
4688
|
+
const B = {};
|
|
4689
|
+
return o.heightMode === "auto" && (o.emptyTipText && f.value < 200 ? B.height = "200px" : B.height = f.value + "px", B.flex = "none", o.maxHeight && (B.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), B;
|
|
4690
4690
|
}), p = P(null);
|
|
4691
4691
|
let g = null, v = null, b = 0, w = 0, y = !1;
|
|
4692
4692
|
const x = P(0);
|
|
4693
4693
|
let k = o.records.length, m = 45;
|
|
4694
4694
|
const E = P(!1), S = P({}), T = P([]), A = P(null), R = P(0);
|
|
4695
4695
|
let F = null, $ = !1, D = !1;
|
|
4696
|
-
const M = (
|
|
4697
|
-
T.value =
|
|
4696
|
+
const M = (B, z, q, J, Z) => {
|
|
4697
|
+
T.value = B, A.value = z, R.value = q, S.value = {
|
|
4698
4698
|
left: `${J}px`,
|
|
4699
4699
|
top: `${Z}px`
|
|
4700
4700
|
}, E.value = !0, $ = !1, document.addEventListener("wheel", xe, { passive: !1 });
|
|
@@ -4710,15 +4710,15 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4710
4710
|
$ = !0, W();
|
|
4711
4711
|
}, de = () => {
|
|
4712
4712
|
$ = !1, L();
|
|
4713
|
-
}, xe = (
|
|
4714
|
-
|
|
4715
|
-
}, ze = (
|
|
4716
|
-
A.value &&
|
|
4713
|
+
}, xe = (B) => {
|
|
4714
|
+
B.preventDefault();
|
|
4715
|
+
}, ze = (B) => {
|
|
4716
|
+
A.value && B.click && B.click({
|
|
4717
4717
|
data: A.value,
|
|
4718
4718
|
openLayer: u
|
|
4719
4719
|
}), C();
|
|
4720
|
-
}, st = (
|
|
4721
|
-
const { Group: z, Text: q } = Oe.CustomLayout, J = o.actionsMaxCount, Z =
|
|
4720
|
+
}, st = (B) => {
|
|
4721
|
+
const { Group: z, Text: q } = Oe.CustomLayout, J = o.actionsMaxCount, Z = B.length > J, Q = Z ? B.slice(0, J - 1) : B, ge = Z ? B.slice(J - 1) : [];
|
|
4722
4722
|
let $e = 0;
|
|
4723
4723
|
if (Q.forEach((je, Ue) => {
|
|
4724
4724
|
const Ve = nn(je.config?.label || je.label || "") || 0;
|
|
@@ -4763,10 +4763,10 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4763
4763
|
data: ve,
|
|
4764
4764
|
openLayer: u
|
|
4765
4765
|
});
|
|
4766
|
-
}), ot.addEventListener("mouseenter", (
|
|
4767
|
-
|
|
4768
|
-
}), ot.addEventListener("mouseleave", (
|
|
4769
|
-
|
|
4766
|
+
}), ot.addEventListener("mouseenter", (Bt) => {
|
|
4767
|
+
Bt.target.setAttribute("fill", vn(Pe, -20)), Ue.scenegraph.stage.renderNextFrame();
|
|
4768
|
+
}), ot.addEventListener("mouseleave", (Bt) => {
|
|
4769
|
+
Bt.target.setAttribute("fill", Pe), Ue.scenegraph.stage.renderNextFrame();
|
|
4770
4770
|
}), De.add(ot);
|
|
4771
4771
|
}), Z) {
|
|
4772
4772
|
const He = "#1677ff", ct = new q({
|
|
@@ -4795,8 +4795,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4795
4795
|
};
|
|
4796
4796
|
}
|
|
4797
4797
|
};
|
|
4798
|
-
}, ae = (
|
|
4799
|
-
const { dataValue: z, rect: q, table: J, col: Z, row: Q } =
|
|
4798
|
+
}, ae = (B) => {
|
|
4799
|
+
const { dataValue: z, rect: q, table: J, col: Z, row: Q } = B;
|
|
4800
4800
|
let ge = "mdi:toggle-switch", $e = "#165dff";
|
|
4801
4801
|
z || (ge = "mdi:toggle-switch-off", $e = "#e5e6eb");
|
|
4802
4802
|
const Se = oa(ge), je = Se?.body?.replace(/currentColor/g, $e), Ue = [], Ve = J?.getBodyField?.(Z, Q), Te = J?.options?.columns || [], ve = Ve ? dt(Te, Ve) : null, Ye = 8, De = 40;
|
|
@@ -4809,8 +4809,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4809
4809
|
width: De,
|
|
4810
4810
|
height: De
|
|
4811
4811
|
}), { elements: Ue };
|
|
4812
|
-
}, Ne = (
|
|
4813
|
-
const { dataValue: z, rect: q } =
|
|
4812
|
+
}, Ne = (B) => {
|
|
4813
|
+
const { dataValue: z, rect: q } = B, J = Number(z) || 0, Z = 5, Q = 20, ge = 4, $e = 8, Se = (q.height - Q) / 2, je = [], Ue = oa("mdi:star"), Ve = oa("mdi:star-half-full"), Te = oa("mdi:star-outline"), ve = "#f7ba2a", Ye = "#e5e6eb";
|
|
4814
4814
|
for (let De = 0; De < Z; De++) {
|
|
4815
4815
|
const He = $e + De * (Q + ge), ct = Se;
|
|
4816
4816
|
if (J >= De + 1) {
|
|
@@ -4846,56 +4846,56 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4846
4846
|
}
|
|
4847
4847
|
}
|
|
4848
4848
|
return { elements: je };
|
|
4849
|
-
}, Je = (
|
|
4850
|
-
const { dataValue: z, rect: q, table: J, col: Z, row: Q } =
|
|
4849
|
+
}, Je = (B) => {
|
|
4850
|
+
const { dataValue: z, rect: q, table: J, col: Z, row: Q } = B, ge = J.getBodyField(Z, Q), $e = dt(J.options?.columns || [], ge)?._compConfig || {}, Se = Number($e.min) || 0, je = Number($e.max) || 100, Ue = Number(z) || 0, Ve = je - Se, Te = Ve === 0 ? 0 : Math.max(0, Math.min(100, (Ue - Se) / Ve * 100)), ve = 4, Ye = 8, De = 8, He = (q.height - ve) / 2, ct = String(Ue), Pe = nn(ct) || 0, ot = Ye, Bt = He, Ke = q.width - Ye * 2 - Pe - De, Ft = Ke * Te / 100, It = [], Vt = (At, Lt, Qn) => {
|
|
4851
4851
|
const ke = Math.min(Qn, Lt / 2, At / 2);
|
|
4852
4852
|
return `M ${ke} 0 L ${At - ke} 0 Q ${At} 0 ${At} ${ke} L ${At} ${Lt - ke} Q ${At} ${Lt} ${At - ke} ${Lt} L ${ke} ${Lt} Q 0 ${Lt} 0 ${Lt - ke} L 0 ${ke} Q 0 0 ${ke} 0 Z`;
|
|
4853
4853
|
}, bn = (At, Lt, Qn) => {
|
|
4854
4854
|
const ke = Math.min(Qn, Lt / 2, At / 2);
|
|
4855
4855
|
return At <= ke * 2 ? Vt(At, Lt, Qn) : `M ${ke} 0 L ${At} 0 L ${At} ${Lt} L ${ke} ${Lt} Q 0 ${Lt} 0 ${Lt - ke} L 0 ${ke} Q 0 0 ${ke} 0 Z`;
|
|
4856
4856
|
}, Zn = Vt(Ke, ve, ve / 2);
|
|
4857
|
-
if (
|
|
4857
|
+
if (It.push({
|
|
4858
4858
|
type: "icon",
|
|
4859
4859
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ke}" height="${ve}" viewBox="0 0 ${Ke} ${ve}"><path d="${Zn}" fill="#e5e6eb"/></svg>`,
|
|
4860
4860
|
x: ot,
|
|
4861
|
-
y:
|
|
4861
|
+
y: Bt,
|
|
4862
4862
|
width: Ke,
|
|
4863
4863
|
height: ve
|
|
4864
4864
|
}), Ft > 0) {
|
|
4865
4865
|
const At = bn(Ft, ve, ve / 2);
|
|
4866
|
-
|
|
4866
|
+
It.push({
|
|
4867
4867
|
type: "icon",
|
|
4868
4868
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ft}" height="${ve}" viewBox="0 0 ${Ft} ${ve}"><path d="${At}" fill="#165dff"/></svg>`,
|
|
4869
4869
|
x: ot,
|
|
4870
|
-
y:
|
|
4870
|
+
y: Bt,
|
|
4871
4871
|
width: Ft,
|
|
4872
4872
|
height: ve
|
|
4873
4873
|
});
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4876
|
-
return
|
|
4875
|
+
const Ii = ot + Ke + De, Bo = q.height / 2;
|
|
4876
|
+
return It.push({
|
|
4877
4877
|
type: "text",
|
|
4878
4878
|
text: ct,
|
|
4879
|
-
x:
|
|
4880
|
-
y:
|
|
4879
|
+
x: Ii,
|
|
4880
|
+
y: Bo,
|
|
4881
4881
|
fontSize: 14,
|
|
4882
4882
|
fill: "#333333",
|
|
4883
4883
|
textAlign: "left",
|
|
4884
4884
|
textBaseline: "middle"
|
|
4885
|
-
}), { elements:
|
|
4886
|
-
}, Ce = (
|
|
4887
|
-
if (!
|
|
4888
|
-
if ((nn(
|
|
4885
|
+
}), { elements: It };
|
|
4886
|
+
}, Ce = (B) => String(B).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Xe = (B, z) => {
|
|
4887
|
+
if (!B) return "";
|
|
4888
|
+
if ((nn(B) || 0) <= z) return B;
|
|
4889
4889
|
const q = "...", J = nn(q) || 0;
|
|
4890
4890
|
if (J >= z) return "";
|
|
4891
|
-
let Z = 0, Q =
|
|
4891
|
+
let Z = 0, Q = B.length;
|
|
4892
4892
|
for (; Z < Q; ) {
|
|
4893
4893
|
const ge = Math.ceil((Z + Q) / 2);
|
|
4894
|
-
(nn(
|
|
4894
|
+
(nn(B.slice(0, ge)) || 0) + J <= z ? Z = ge : Q = ge - 1;
|
|
4895
4895
|
}
|
|
4896
|
-
return
|
|
4897
|
-
}, lt = (
|
|
4898
|
-
const { value: z, rect: q, table: J, col: Z, row: Q } =
|
|
4896
|
+
return B.slice(0, Z) + q;
|
|
4897
|
+
}, lt = (B) => {
|
|
4898
|
+
const { value: z, rect: q, table: J, col: Z, row: Q } = B;
|
|
4899
4899
|
if (!z) return { elements: [] };
|
|
4900
4900
|
const ge = J.getBodyField(Z, Q), $e = dt(J.options?.columns || [], ge)?._compConfig || {}, Se = Number($e.size) || 16, je = $e.color, Ue = (q.width - Se) / 2, Ve = (q.height - Se) / 2;
|
|
4901
4901
|
let Te = String(z).trim();
|
|
@@ -4926,18 +4926,18 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4926
4926
|
width: Se,
|
|
4927
4927
|
height: Se
|
|
4928
4928
|
}] };
|
|
4929
|
-
}, te = (
|
|
4930
|
-
const { dataValue: z, rect: q, table: J, col: Z, row: Q, value: ge } =
|
|
4929
|
+
}, te = (B) => {
|
|
4930
|
+
const { dataValue: z, rect: q, table: J, col: Z, row: Q, value: ge } = B, $e = J.getBodyField(Z, Q), Se = dt(J.options?.columns || [], $e), je = Se?._compConfig || {}, Ue = Se?.style?.textAlign || "left", Ve = c({
|
|
4931
4931
|
config: je,
|
|
4932
4932
|
row: J.getRecordByCell?.(Z, Q) || J.getCellOriginRecord?.(Z, Q),
|
|
4933
4933
|
value: Se._fieldFormat ? ge : z
|
|
4934
4934
|
});
|
|
4935
4935
|
if (Ve.length === 0) return { elements: [] };
|
|
4936
|
-
const Te = 14, ve = 28, Ye = 2, De = 12, He = 8, ct = 6, Pe = 8, ot = Math.max(0, q.width - Pe * 2),
|
|
4937
|
-
const Et = nn(Xe(ke,
|
|
4936
|
+
const Te = 14, ve = 28, Ye = 2, De = 12, He = 8, ct = 6, Pe = 8, ot = Math.max(0, q.width - Pe * 2), Bt = Math.max(0, ot - De * 2), Ke = [], Ft = (ke) => {
|
|
4937
|
+
const Et = nn(Xe(ke, Bt)) || 0;
|
|
4938
4938
|
return Math.min(ot, Et + De * 2);
|
|
4939
|
-
},
|
|
4940
|
-
const
|
|
4939
|
+
}, It = (ke, Et, ln, zt, An) => {
|
|
4940
|
+
const Io = Xe(ln, Bt), Uu = Ce(Io), Yu = nn(Io) || 0, ba = Math.min(ot, Yu + De * 2), Ku = zt || "#f2f3f5", Gu = An || "#1d2129", Ju = ve / 2 + Te * 0.35, Xu = `<svg xmlns="http://www.w3.org/2000/svg" width="${ba}" height="${ve}" viewBox="0 0 ${ba} ${ve}"><rect x="0" y="0" width="${ba}" height="${ve}" rx="${Ye}" ry="${Ye}" fill="${Ku}"/><text x="${ba / 2}" y="${Ju}" text-anchor="middle" font-size="${Te}" fill="${Gu}">${Uu}</text></svg>`;
|
|
4941
4941
|
return Ke.push({
|
|
4942
4942
|
type: "icon",
|
|
4943
4943
|
svg: Xu,
|
|
@@ -4964,9 +4964,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4964
4964
|
items: bn,
|
|
4965
4965
|
lineWidth: Zn
|
|
4966
4966
|
});
|
|
4967
|
-
const
|
|
4968
|
-
let
|
|
4969
|
-
if (Vt.length >
|
|
4967
|
+
const Ii = q.height;
|
|
4968
|
+
let Bo = Math.max(1, Math.floor((Ii + ct) / (ve + ct))), At = !1;
|
|
4969
|
+
if (Vt.length > Bo && (At = !0, Vt.length = Bo), At) {
|
|
4970
4970
|
const ke = Vt[Vt.length - 1], Et = Ft("...");
|
|
4971
4971
|
let ln = ke.lineWidth + (ke.items.length > 0 ? He : 0) + Et;
|
|
4972
4972
|
for (; ln > ot && ke.items.length > 0; ) {
|
|
@@ -4987,16 +4987,16 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
4987
4987
|
const Et = Vt[ke];
|
|
4988
4988
|
let ln = Ue === "center" ? Pe + Math.max(0, (ot - Et.lineWidth) / 2) : Ue === "right" ? Pe + Math.max(0, ot - Et.lineWidth) : Pe;
|
|
4989
4989
|
for (let zt = 0; zt < Et.items.length; zt++) {
|
|
4990
|
-
const An = Et.items[zt], { tagWidth:
|
|
4991
|
-
ln +=
|
|
4990
|
+
const An = Et.items[zt], { tagWidth: Io } = It(ln, Qn, An.label, An.bg, An.text);
|
|
4991
|
+
ln += Io + (zt < Et.items.length - 1 ? He : 0);
|
|
4992
4992
|
}
|
|
4993
4993
|
Qn += ve + (ke < Vt.length - 1 ? ct : 0);
|
|
4994
4994
|
}
|
|
4995
4995
|
return { elements: Ke };
|
|
4996
|
-
}, he = (
|
|
4997
|
-
if (!
|
|
4998
|
-
|
|
4999
|
-
const z = parseInt(
|
|
4996
|
+
}, he = (B) => {
|
|
4997
|
+
if (!B) return "#1d2129";
|
|
4998
|
+
B = B.replace("#", ""), B.length === 3 && (B = B.split("").map((Z) => Z + Z).join(""));
|
|
4999
|
+
const z = parseInt(B.substring(0, 2), 16), q = parseInt(B.substring(2, 4), 16), J = parseInt(B.substring(4, 6), 16);
|
|
5000
5000
|
if ((z * 299 + q * 587 + J * 114) / 1e3 >= 128) {
|
|
5001
5001
|
const Z = z / 255, Q = q / 255, ge = J / 255, $e = Math.max(Z, Q, ge), Se = Math.min(Z, Q, ge);
|
|
5002
5002
|
let je = 0, Ue = 0;
|
|
@@ -5020,15 +5020,15 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5020
5020
|
let Ye, De, He;
|
|
5021
5021
|
if (ve === 0) Ye = De = He = Te;
|
|
5022
5022
|
else {
|
|
5023
|
-
const Pe = (Ke, Ft,
|
|
5024
|
-
Ye = Pe(
|
|
5023
|
+
const Pe = (Ke, Ft, It) => (It < 0 && (It += 1), It > 1 && (It -= 1), It < 0.16666666666666666 ? Ke + (Ft - Ke) * 6 * It : It < 0.5 ? Ft : It < 0.6666666666666666 ? Ke + (Ft - Ke) * (0.6666666666666666 - It) * 6 : Ke), ot = Te < 0.5 ? Te * (1 + ve) : Te + ve - Te * ve, Bt = 2 * Te - ot;
|
|
5024
|
+
Ye = Pe(Bt, ot, je + 1 / 3), De = Pe(Bt, ot, je), He = Pe(Bt, ot, je - 1 / 3);
|
|
5025
5025
|
}
|
|
5026
5026
|
const ct = (Pe) => Math.round(Pe * 255).toString(16).padStart(2, "0");
|
|
5027
5027
|
return `#${ct(Ye)}${ct(De)}${ct(He)}`;
|
|
5028
5028
|
}
|
|
5029
5029
|
return "#ffffff";
|
|
5030
|
-
}, Ae = (
|
|
5031
|
-
const { table: z, row: q, col: J, rect: Z, value: Q } =
|
|
5030
|
+
}, Ae = (B) => {
|
|
5031
|
+
const { table: z, row: q, col: J, rect: Z, value: Q } = B, { Group: ge, Text: $e } = Oe.CustomLayout, Se = z.getBodyField(J, q), je = dt(z.options?.columns || [], Se), Ue = je?._compConfig || {}, Ve = new ge({
|
|
5032
5032
|
height: Z.height,
|
|
5033
5033
|
width: Z.width,
|
|
5034
5034
|
display: "flex",
|
|
@@ -5063,15 +5063,15 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5063
5063
|
rootContainer: Ve,
|
|
5064
5064
|
renderDefault: !1
|
|
5065
5065
|
};
|
|
5066
|
-
}, We = (
|
|
5067
|
-
const { table: z, row: q, col: J } =
|
|
5066
|
+
}, We = (B) => {
|
|
5067
|
+
const { table: z, row: q, col: J } = B, Z = z.getBodyField(J, q), Q = dt(z.options?.columns || [], Z), ge = Q?._compConfig || {};
|
|
5068
5068
|
if (Q?._customLayout) return Q._customLayout({
|
|
5069
|
-
...
|
|
5069
|
+
...B,
|
|
5070
5070
|
config: ge,
|
|
5071
5071
|
customLayout: Oe.CustomLayout
|
|
5072
5072
|
});
|
|
5073
|
-
}, dt = (
|
|
5074
|
-
for (const q of
|
|
5073
|
+
}, dt = (B, z) => {
|
|
5074
|
+
for (const q of B) {
|
|
5075
5075
|
if (q.field === z) return q;
|
|
5076
5076
|
if (q.columns) {
|
|
5077
5077
|
const J = dt(q.columns, z);
|
|
@@ -5079,31 +5079,31 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5079
5079
|
}
|
|
5080
5080
|
}
|
|
5081
5081
|
return null;
|
|
5082
|
-
}, Ht = (
|
|
5082
|
+
}, Ht = (B, z, q, J) => {
|
|
5083
5083
|
const Z = J.getBodyField(z, q), Q = dt(J.options?.columns || [], Z);
|
|
5084
|
-
if (Q._fieldFormat) return Q._fieldFormat(
|
|
5084
|
+
if (Q._fieldFormat) return Q._fieldFormat(B, z, q, J);
|
|
5085
5085
|
if (Q._compType === "dateTime") {
|
|
5086
5086
|
const ge = Q._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
5087
|
-
return oc(
|
|
5087
|
+
return oc(B[Z], ge);
|
|
5088
5088
|
}
|
|
5089
|
-
return pf(
|
|
5089
|
+
return pf(B[Z], s, {
|
|
5090
5090
|
type: Q._compType,
|
|
5091
5091
|
getCompType: Q._getCompType,
|
|
5092
5092
|
getCompConfig: Q._getCompConfig,
|
|
5093
5093
|
config: Q._compConfig,
|
|
5094
5094
|
formData: l,
|
|
5095
5095
|
getTableData: Mn,
|
|
5096
|
-
row:
|
|
5096
|
+
row: B
|
|
5097
5097
|
});
|
|
5098
|
-
}, qe = (
|
|
5099
|
-
const z =
|
|
5100
|
-
const { id: J, type: Z, config: Q, getCompConfig: ge, getCompType: $e, children: Se, customLayout: je } = q, { label: Ue, width: Ve, minWidth: Te, maxWidth: ve, align: Ye, headerAlign: De, fieldFormat: He, editor: ct, frozen: Pe, ...ot } = Q || {},
|
|
5098
|
+
}, qe = (B) => {
|
|
5099
|
+
const z = B.filter((q) => q.config?.display !== !1).map((q) => {
|
|
5100
|
+
const { id: J, type: Z, config: Q, getCompConfig: ge, getCompType: $e, children: Se, customLayout: je } = q, { label: Ue, width: Ve, minWidth: Te, maxWidth: ve, align: Ye, headerAlign: De, fieldFormat: He, editor: ct, frozen: Pe, ...ot } = Q || {}, Bt = De ?? Ye, Ke = {
|
|
5101
5101
|
field: J,
|
|
5102
5102
|
title: Ue,
|
|
5103
5103
|
width: Ve,
|
|
5104
5104
|
minWidth: Te,
|
|
5105
5105
|
maxWidth: ve,
|
|
5106
|
-
...
|
|
5106
|
+
...Bt ? { headerStyle: { textAlign: Bt } } : {},
|
|
5107
5107
|
style: { textAlign: Ye },
|
|
5108
5108
|
_customLayout: je,
|
|
5109
5109
|
_fieldFormat: He,
|
|
@@ -5116,20 +5116,20 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5116
5116
|
return Ft && (Ke.editor = Ft, y = !0), Z === "j-switch" && (Ke.customRender = ae, Ke.minWidth = Ke.minWidth || Ve, Ke.maxWidth = Ke.maxWidth || Ve), Z === "j-rate" && (Ke.customRender = Ne), Z === "j-slider" && (Ke.customRender = Je), (Z === "j-tag" || Z === "j-input-tag") && (Ke.customRender = te), Z === "j-icon" && (Ke.customRender = lt), Z === "link" && (Ke.customLayout = Ae), je && (Ke.customLayout = We), Ke.fieldFormat = Ht, Se && Se.length > 0 && (Ke.columns = qe(Se)), Ke;
|
|
5117
5117
|
});
|
|
5118
5118
|
return o.isTree && z.length > 0 && (z[0].tree = !0), z;
|
|
5119
|
-
}, vn = (
|
|
5120
|
-
const q =
|
|
5119
|
+
}, vn = (B, z) => {
|
|
5120
|
+
const q = B.replace("#", ""), J = parseInt(q, 16), Z = Math.min(255, Math.max(0, (J >> 16) + z)), Q = Math.min(255, Math.max(0, (J >> 8 & 255) + z)), ge = Math.min(255, Math.max(0, (J & 255) + z));
|
|
5121
5121
|
return `#${(Z << 16 | Q << 8 | ge).toString(16).padStart(6, "0")}`;
|
|
5122
5122
|
}, mn = () => {
|
|
5123
|
-
let
|
|
5124
|
-
o.isPage && (
|
|
5125
|
-
let z = nn(String(
|
|
5123
|
+
let B = k;
|
|
5124
|
+
o.isPage && (B = jo.value + k);
|
|
5125
|
+
let z = nn(String(B)) || 0;
|
|
5126
5126
|
return o.subColumns && o.subColumns.length > 0 && (z = z + 32), Math.max(45, z + 18);
|
|
5127
|
-
}, Qt = (
|
|
5127
|
+
}, Qt = (B) => {
|
|
5128
5128
|
let z = (q, J, Z, Q) => {
|
|
5129
5129
|
const ge = Q.getRecordIndexByCell(J, Z);
|
|
5130
|
-
return o.isPage && !
|
|
5130
|
+
return o.isPage && !B ? jo.value + ge + 1 : ge + 1;
|
|
5131
5131
|
};
|
|
5132
|
-
return
|
|
5132
|
+
return B && (z = (q, J, Z, Q) => Q.getRecordIndexByCell(J, Z) + 1), {
|
|
5133
5133
|
field: "__sequence__",
|
|
5134
5134
|
title: "序号",
|
|
5135
5135
|
width: m,
|
|
@@ -5142,7 +5142,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5142
5142
|
_getCompConfig: void 0,
|
|
5143
5143
|
_getCompType: void 0
|
|
5144
5144
|
};
|
|
5145
|
-
},
|
|
5145
|
+
}, Y = () => ({
|
|
5146
5146
|
field: "__placeholder__",
|
|
5147
5147
|
title: "",
|
|
5148
5148
|
width: "auto",
|
|
@@ -5153,15 +5153,15 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5153
5153
|
fieldFormat: () => "",
|
|
5154
5154
|
_getCompConfig: void 0,
|
|
5155
5155
|
_getCompType: void 0
|
|
5156
|
-
}), le = (
|
|
5157
|
-
if (
|
|
5158
|
-
if (
|
|
5156
|
+
}), le = (B) => {
|
|
5157
|
+
if (B.frozen) return B.frozen;
|
|
5158
|
+
if (B.columns) for (const z of B.columns) {
|
|
5159
5159
|
const q = le(z);
|
|
5160
5160
|
if (q) return q;
|
|
5161
5161
|
}
|
|
5162
|
-
}, X = (
|
|
5162
|
+
}, X = (B) => {
|
|
5163
5163
|
const z = [];
|
|
5164
|
-
return
|
|
5164
|
+
return B.forEach((q) => {
|
|
5165
5165
|
if (q.frozen) {
|
|
5166
5166
|
z.push(q);
|
|
5167
5167
|
return;
|
|
@@ -5189,9 +5189,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5189
5189
|
columns: Q
|
|
5190
5190
|
});
|
|
5191
5191
|
}), z;
|
|
5192
|
-
}, ee = (
|
|
5192
|
+
}, ee = (B) => {
|
|
5193
5193
|
let z = 0, q = 0;
|
|
5194
|
-
return
|
|
5194
|
+
return B.forEach((J) => {
|
|
5195
5195
|
if (J.columns && J.columns.length > 0) {
|
|
5196
5196
|
const Z = ee(J.columns);
|
|
5197
5197
|
z += Z.left, q += Z.right;
|
|
@@ -5200,11 +5200,11 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5200
5200
|
left: z,
|
|
5201
5201
|
right: q
|
|
5202
5202
|
};
|
|
5203
|
-
}, oe = (
|
|
5203
|
+
}, oe = (B, z, q, J) => {
|
|
5204
5204
|
b = 0, w = 0, y = !1;
|
|
5205
5205
|
const Z = {};
|
|
5206
|
-
let Q = qe(
|
|
5207
|
-
Q.length === 0 && (Q = [
|
|
5206
|
+
let Q = qe(B);
|
|
5207
|
+
Q.length === 0 && (Q = [Y()]), Q = X(Q);
|
|
5208
5208
|
const ge = [], $e = [], Se = [];
|
|
5209
5209
|
Q.forEach((Ve) => {
|
|
5210
5210
|
const Te = le(Ve);
|
|
@@ -5225,11 +5225,11 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5225
5225
|
option: Z
|
|
5226
5226
|
};
|
|
5227
5227
|
}, pe = () => {
|
|
5228
|
-
const
|
|
5228
|
+
const B = oe(o.columns, o.isShowNumber, o.actions);
|
|
5229
5229
|
Dt.value && w++;
|
|
5230
5230
|
const z = {
|
|
5231
5231
|
records: [],
|
|
5232
|
-
columns:
|
|
5232
|
+
columns: B.columns,
|
|
5233
5233
|
autoFillWidth: !0,
|
|
5234
5234
|
enableCheckboxCascade: Dt.value,
|
|
5235
5235
|
enableHeaderCheckboxCascade: Dt.value,
|
|
@@ -5238,7 +5238,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5238
5238
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
5239
5239
|
hover: { highlightMode: o.highlightMode },
|
|
5240
5240
|
select: { highlightMode: o.highlightMode },
|
|
5241
|
-
...
|
|
5241
|
+
...B.option
|
|
5242
5242
|
};
|
|
5243
5243
|
return o.emptyTipText && (z.emptyTip = { text: o.emptyTipText }), o.isAnimationAppear && (z.animationAppear = {
|
|
5244
5244
|
duration: 100,
|
|
@@ -5262,7 +5262,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5262
5262
|
hoverOn: !0,
|
|
5263
5263
|
width: 8
|
|
5264
5264
|
}
|
|
5265
|
-
}), o.subColumns && o.subColumns.length > 0 && (v = new
|
|
5265
|
+
}), o.subColumns && o.subColumns.length > 0 && (v = new Ih({ detailTableOptions: {
|
|
5266
5266
|
columns: oe(o.subColumns, o.isSubShowNumber, o.subActions, !0).columns,
|
|
5267
5267
|
style: {
|
|
5268
5268
|
margin: [
|
|
@@ -5274,13 +5274,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5274
5274
|
height: "auto"
|
|
5275
5275
|
},
|
|
5276
5276
|
theme: $o,
|
|
5277
|
-
...
|
|
5277
|
+
...B.option
|
|
5278
5278
|
} }), z.plugins = [v]), z;
|
|
5279
|
-
}, _e = (
|
|
5279
|
+
}, _e = (B) => {
|
|
5280
5280
|
if (!p.value) return;
|
|
5281
5281
|
m = mn(), Nh();
|
|
5282
5282
|
const z = pe(), q = at();
|
|
5283
|
-
|
|
5283
|
+
B && B.length >= 0 ? z.records = B : q.length > 0 ? z.records = q : (z.records = o.records, i("update:modelValue", o.records)), g = new Oe.ListTable(p.value, z), g._getAppContext = () => a?.appContext, g._getTableProvide = () => Wt, o.loadChildren && g.on(Oe.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (J) => {
|
|
5284
5284
|
if (J.hierarchyState === Oe.TYPES.HierarchyState.expand && J.originData?.children === !0) {
|
|
5285
5285
|
g.setLoadingHierarchyState(J.col, J.row);
|
|
5286
5286
|
try {
|
|
@@ -5303,14 +5303,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5303
5303
|
}), f.value = g.getAllRowsHeight(), i("ready", g);
|
|
5304
5304
|
}, Ze = () => {
|
|
5305
5305
|
g && (g.release(), g = null);
|
|
5306
|
-
}, kt = () => g, rt = (
|
|
5306
|
+
}, kt = () => g, rt = (B) => {
|
|
5307
5307
|
if (x.value = 0, g)
|
|
5308
|
-
if (g.setScrollTop(0), k =
|
|
5309
|
-
Ze(), _e(
|
|
5308
|
+
if (g.setScrollTop(0), k = B.length, o.subColumns && o.subColumns.length > 0) setTimeout(() => {
|
|
5309
|
+
Ze(), _e(B);
|
|
5310
5310
|
});
|
|
5311
5311
|
else {
|
|
5312
5312
|
const z = mn();
|
|
5313
|
-
z !== m ? (m = z, o.subColumns && o.subColumns.length > 0 ? (Ze(), _e(
|
|
5313
|
+
z !== m ? (m = z, o.subColumns && o.subColumns.length > 0 ? (Ze(), _e(B)) : ft(B)) : g.setRecords(B);
|
|
5314
5314
|
}
|
|
5315
5315
|
}, Mn = () => g ? g.records : [];
|
|
5316
5316
|
wt(() => {
|
|
@@ -5322,34 +5322,34 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5322
5322
|
get() {
|
|
5323
5323
|
return o.tablePage;
|
|
5324
5324
|
},
|
|
5325
|
-
set(
|
|
5326
|
-
i("update:tablePage",
|
|
5325
|
+
set(B) {
|
|
5326
|
+
i("update:tablePage", B);
|
|
5327
5327
|
}
|
|
5328
5328
|
}), Va = P(0), Na = j({
|
|
5329
5329
|
get() {
|
|
5330
5330
|
return Va.value !== 0 ? Va.value : o.pageSize;
|
|
5331
5331
|
},
|
|
5332
|
-
set(
|
|
5333
|
-
Va.value =
|
|
5332
|
+
set(B) {
|
|
5333
|
+
Va.value = B, i("update:pageSize", B);
|
|
5334
5334
|
}
|
|
5335
|
-
}), jo = j(() => (qn.value - 1) * Na.value),
|
|
5335
|
+
}), jo = j(() => (qn.value - 1) * Na.value), Bi = (B, z) => {
|
|
5336
5336
|
i("loadPageData", {
|
|
5337
5337
|
rows: z,
|
|
5338
|
-
page:
|
|
5338
|
+
page: B
|
|
5339
5339
|
});
|
|
5340
5340
|
}, ya = () => {
|
|
5341
5341
|
if (!g) return [];
|
|
5342
5342
|
if (!Dt.value) {
|
|
5343
|
-
const
|
|
5344
|
-
if (
|
|
5345
|
-
const z =
|
|
5343
|
+
const B = g.getSelectedCellInfos();
|
|
5344
|
+
if (B && B.length > 0) {
|
|
5345
|
+
const z = B[0][0], q = g.getRecordIndexByCell(z.col, z.row), J = g.records[q];
|
|
5346
5346
|
return J ? [J] : [];
|
|
5347
5347
|
}
|
|
5348
5348
|
return [];
|
|
5349
5349
|
}
|
|
5350
5350
|
if (g.stateManager && g.stateManager.checkedState) {
|
|
5351
|
-
const
|
|
5352
|
-
return
|
|
5351
|
+
const B = g.stateManager.checkedState, z = [];
|
|
5352
|
+
return B.forEach((q, J) => {
|
|
5353
5353
|
if (Object.values(q).some((Z) => Z === !0)) {
|
|
5354
5354
|
const Z = Number(J);
|
|
5355
5355
|
!isNaN(Z) && g.records[Z] && z.push(g.records[Z]);
|
|
@@ -5357,69 +5357,69 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5357
5357
|
}), z;
|
|
5358
5358
|
}
|
|
5359
5359
|
return [];
|
|
5360
|
-
}, fe = (
|
|
5360
|
+
}, fe = (B) => o.rowKey ? o.rowKey.split(",").map((z) => B[z.trim()]).join("::") : "", ce = (B) => {
|
|
5361
5361
|
if (!g) return;
|
|
5362
5362
|
Dt.value || g.clearSelected();
|
|
5363
5363
|
const z = g.records;
|
|
5364
5364
|
if (o.rowKey) {
|
|
5365
|
-
const q = new Set(
|
|
5365
|
+
const q = new Set(B.map(fe));
|
|
5366
5366
|
z.forEach((J, Z) => {
|
|
5367
5367
|
const Q = q.has(fe(J)), ge = g.getTableIndexByRecordIndex(Z);
|
|
5368
5368
|
Dt.value ? g.setCellCheckboxState(0, ge, Q) : g.selectRow(ge);
|
|
5369
5369
|
});
|
|
5370
5370
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5371
|
-
}, yt = (
|
|
5372
|
-
g.renderWithRecreateCells(), i("rowChange",
|
|
5373
|
-
}, ft = (
|
|
5371
|
+
}, yt = (B) => {
|
|
5372
|
+
g.renderWithRecreateCells(), i("rowChange", B);
|
|
5373
|
+
}, ft = (B) => {
|
|
5374
5374
|
if (!g) return;
|
|
5375
5375
|
const z = ya(), q = pe();
|
|
5376
|
-
q.records =
|
|
5376
|
+
q.records = B || g.records, g.updateOption(q, {
|
|
5377
5377
|
clearColWidthCache: !1,
|
|
5378
5378
|
clearRowHeightCache: !1
|
|
5379
|
-
}), o.heightMode === "auto" && (f.value = g.getAllRowsHeight()),
|
|
5379
|
+
}), o.heightMode === "auto" && (f.value = g.getAllRowsHeight()), B ? x.value = 0 : (x.value = z.length, z.length > 0 && ce(z));
|
|
5380
5380
|
}, se = j(() => o.editConfig.isAddBtn), gt = j(() => o.editConfig.addBtnText || "添加"), en = j(() => o.editConfig.isRemoveBtn), yn = j(() => o.editConfig.readonly), Dt = j(() => o.isMultiple || en.value), at = () => {
|
|
5381
|
-
const
|
|
5382
|
-
return
|
|
5381
|
+
const B = o.modelValue || [];
|
|
5382
|
+
return B.forEach((z) => {
|
|
5383
5383
|
z._i || (z._i = zn());
|
|
5384
|
-
}),
|
|
5384
|
+
}), B;
|
|
5385
5385
|
};
|
|
5386
5386
|
nt(() => o.modelValue, () => {
|
|
5387
5387
|
rt(at());
|
|
5388
5388
|
});
|
|
5389
5389
|
const Wa = j(() => {
|
|
5390
|
-
const
|
|
5390
|
+
const B = (z) => {
|
|
5391
5391
|
const q = [];
|
|
5392
5392
|
return z.forEach((J) => {
|
|
5393
|
-
J.children && J.children.length > 0 ? q.push(...
|
|
5393
|
+
J.children && J.children.length > 0 ? q.push(...B(J.children)) : q.push(J);
|
|
5394
5394
|
}), q;
|
|
5395
5395
|
};
|
|
5396
|
-
return
|
|
5396
|
+
return B(o.columns);
|
|
5397
5397
|
}), Ho = () => {
|
|
5398
|
-
const
|
|
5399
|
-
|
|
5398
|
+
const B = {};
|
|
5399
|
+
B._i = zn(), Wa.value.forEach((z) => {
|
|
5400
5400
|
const q = z.config?.valueRowKey || z.id || "";
|
|
5401
|
-
q && (
|
|
5402
|
-
}), g && (g.addRecord(
|
|
5401
|
+
q && (B[q] = Cn(z.config?.defaultValue));
|
|
5402
|
+
}), g && (g.addRecord(B), o.heightMode === "auto" && ft(), g.scrollToCell({
|
|
5403
5403
|
col: 0,
|
|
5404
5404
|
row: g.records.length
|
|
5405
5405
|
})), i("change", {
|
|
5406
5406
|
id: o.id,
|
|
5407
|
-
value:
|
|
5408
|
-
data:
|
|
5407
|
+
value: B,
|
|
5408
|
+
data: B,
|
|
5409
5409
|
formData: l,
|
|
5410
5410
|
tableData: g.records,
|
|
5411
5411
|
type: "add"
|
|
5412
5412
|
});
|
|
5413
5413
|
}, Oo = j(() => x.value > 0), Ot = () => {
|
|
5414
5414
|
if (!g) return;
|
|
5415
|
-
const
|
|
5416
|
-
|
|
5415
|
+
const B = ya();
|
|
5416
|
+
B.length !== 0 && rd.confirm(`确定要删除选中的 ${B.length} 条记录吗?`, "删除确认", {
|
|
5417
5417
|
confirmButtonText: "确定",
|
|
5418
5418
|
cancelButtonText: "取消",
|
|
5419
5419
|
type: "warning"
|
|
5420
5420
|
}).then(() => {
|
|
5421
|
-
const z = g.records, q = new Set(
|
|
5422
|
-
ft(J), i("update:modelValue", J),
|
|
5421
|
+
const z = g.records, q = new Set(B.map((Z) => Z._i)), J = z.filter((Z) => !q.has(Z._i));
|
|
5422
|
+
ft(J), i("update:modelValue", J), B.forEach((Z) => {
|
|
5423
5423
|
i("change", {
|
|
5424
5424
|
id: o.id,
|
|
5425
5425
|
value: Z,
|
|
@@ -5465,10 +5465,10 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5465
5465
|
getRecords: Mn,
|
|
5466
5466
|
getSelection: ya,
|
|
5467
5467
|
setSelection: ce
|
|
5468
|
-
}), (
|
|
5469
|
-
const q =
|
|
5468
|
+
}), (B, z) => {
|
|
5469
|
+
const q = I("j-button"), J = I("el-space"), Z = I("el-pagination");
|
|
5470
5470
|
return _(), O("div", {
|
|
5471
|
-
class:
|
|
5471
|
+
class: Be(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
5472
5472
|
style: be(d.value)
|
|
5473
5473
|
}, [
|
|
5474
5474
|
V("div", {
|
|
@@ -5477,7 +5477,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5477
5477
|
}, [V("div", {
|
|
5478
5478
|
ref_key: "tableContainer",
|
|
5479
5479
|
ref: p,
|
|
5480
|
-
class:
|
|
5480
|
+
class: Be("j-block")
|
|
5481
5481
|
}, null, 512)], 4),
|
|
5482
5482
|
V("div", Wh, [e.isPage || !yn.value && (se.value || en.value) ? (_(), O("div", Uh, [
|
|
5483
5483
|
G(J, null, {
|
|
@@ -5487,7 +5487,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5487
5487
|
label: gt.value,
|
|
5488
5488
|
icon: "mdi:add",
|
|
5489
5489
|
onClick: Ho
|
|
5490
|
-
}, null, 8, ["label"])) :
|
|
5490
|
+
}, null, 8, ["label"])) : U("", !0), en.value ? (_(), H(q, {
|
|
5491
5491
|
key: 1,
|
|
5492
5492
|
type: "link",
|
|
5493
5493
|
label: "删除",
|
|
@@ -5495,7 +5495,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5495
5495
|
danger: "",
|
|
5496
5496
|
disabled: !Oo.value,
|
|
5497
5497
|
onClick: Ot
|
|
5498
|
-
}, null, 8, ["disabled"])) :
|
|
5498
|
+
}, null, 8, ["disabled"])) : U("", !0)]),
|
|
5499
5499
|
_: 1
|
|
5500
5500
|
}),
|
|
5501
5501
|
z[2] || (z[2] = V("div", null, null, -1)),
|
|
@@ -5513,14 +5513,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5513
5513
|
],
|
|
5514
5514
|
total: e.pageTotal,
|
|
5515
5515
|
layout: "total, prev, pager, next,sizes",
|
|
5516
|
-
onChange:
|
|
5516
|
+
onChange: Bi
|
|
5517
5517
|
}, null, 8, [
|
|
5518
5518
|
"current-page",
|
|
5519
5519
|
"page-size",
|
|
5520
5520
|
"page-sizes",
|
|
5521
5521
|
"total"
|
|
5522
|
-
])) :
|
|
5523
|
-
])) :
|
|
5522
|
+
])) : U("", !0)
|
|
5523
|
+
])) : U("", !0)]),
|
|
5524
5524
|
E.value ? (_(), O("div", {
|
|
5525
5525
|
key: 0,
|
|
5526
5526
|
class: "j-table-dropdown",
|
|
@@ -5532,7 +5532,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5532
5532
|
class: "j-table-dropdown-item",
|
|
5533
5533
|
style: be({ color: Q.config?.danger ? "var(--j-color-danger)" : "var(--j-color-primary)" }),
|
|
5534
5534
|
onClick: (ge) => ze(Q)
|
|
5535
|
-
}, me(Q.label), 13, Yh))), 128))], 36)) :
|
|
5535
|
+
}, me(Q.label), 13, Yh))), 128))], 36)) : U("", !0)
|
|
5536
5536
|
], 6);
|
|
5537
5537
|
};
|
|
5538
5538
|
}
|
|
@@ -5748,7 +5748,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5748
5748
|
showLoading: S,
|
|
5749
5749
|
hideLoading: T
|
|
5750
5750
|
}), (ae, Ne) => {
|
|
5751
|
-
const Je =
|
|
5751
|
+
const Je = I("j-button"), Ce = I("el-space"), Xe = I("el-step"), lt = I("el-steps"), te = I("el-dialog");
|
|
5752
5752
|
return _(), H(te, {
|
|
5753
5753
|
modelValue: l.value,
|
|
5754
5754
|
"onUpdate:modelValue": Ne[0] || (Ne[0] = (he) => l.value = he),
|
|
@@ -5776,7 +5776,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5776
5776
|
class: "j-dialog-header-left",
|
|
5777
5777
|
title: K(i)(e.title || ""),
|
|
5778
5778
|
style: be({ cursor: e.autoHeight ? "" : "move" })
|
|
5779
|
-
}, [V("span", null, me(K(i)(e.title || "")), 1), e.subtitle ? (_(), O("span", qh, [(_(), H(Ta(e.subtitle())))])) :
|
|
5779
|
+
}, [V("span", null, me(K(i)(e.title || "")), 1), e.subtitle ? (_(), O("span", qh, [(_(), H(Ta(e.subtitle())))])) : U("", !0)], 12, Xh), e.showCloseBtn ? (_(), H(Ce, {
|
|
5780
5780
|
key: 0,
|
|
5781
5781
|
size: 0
|
|
5782
5782
|
}, {
|
|
@@ -5786,8 +5786,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5786
5786
|
onClick: A
|
|
5787
5787
|
})]),
|
|
5788
5788
|
_: 1
|
|
5789
|
-
})) :
|
|
5790
|
-
class:
|
|
5789
|
+
})) : U("", !0)], 32), V("div", {
|
|
5790
|
+
class: Be([
|
|
5791
5791
|
"j-dialog-window",
|
|
5792
5792
|
{ "j-dialog-window-hasBtns": e.hasBtns },
|
|
5793
5793
|
{ "j-dialog-window-hasSteps": e.isStep }
|
|
@@ -5808,7 +5808,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5808
5808
|
title: K(i)(he.title)
|
|
5809
5809
|
}, null, 8, ["title"]))), 128))]),
|
|
5810
5810
|
_: 1
|
|
5811
|
-
}, 8, ["active"])], 4)])) :
|
|
5811
|
+
}, 8, ["active"])], 4)])) : U("", !0),
|
|
5812
5812
|
V("div", Qh, [Fe(ae.$slots, "default")]),
|
|
5813
5813
|
e.hasBtns ? (_(), O("div", ep, [G(Ce, { size: 8 }, {
|
|
5814
5814
|
default: N(() => [
|
|
@@ -5818,7 +5818,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5818
5818
|
disabled: u.value,
|
|
5819
5819
|
label: K(i)("上一步"),
|
|
5820
5820
|
onClick: D
|
|
5821
|
-
}, null, 8, ["disabled", "label"])) :
|
|
5821
|
+
}, null, 8, ["disabled", "label"])) : U("", !0),
|
|
5822
5822
|
e.isStep ? (_(), H(Je, {
|
|
5823
5823
|
key: 1,
|
|
5824
5824
|
size: "mini",
|
|
@@ -5830,14 +5830,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5830
5830
|
"disabled",
|
|
5831
5831
|
"loading",
|
|
5832
5832
|
"label"
|
|
5833
|
-
])) :
|
|
5833
|
+
])) : U("", !0),
|
|
5834
5834
|
!e.isStep && e.showCloseBtn ? (_(), H(Je, {
|
|
5835
5835
|
key: 2,
|
|
5836
5836
|
size: "mini",
|
|
5837
5837
|
label: K(i)("取消"),
|
|
5838
5838
|
onClick: A
|
|
5839
|
-
}, null, 8, ["label"])) :
|
|
5840
|
-
(_(!0), O(we, null, Re(e.buttons, (he) => (_(), H(Je,
|
|
5839
|
+
}, null, 8, ["label"])) : U("", !0),
|
|
5840
|
+
(_(!0), O(we, null, Re(e.buttons, (he) => (_(), H(Je, Ie({ ref_for: !0 }, he.config, {
|
|
5841
5841
|
key: he.id,
|
|
5842
5842
|
label: he.label,
|
|
5843
5843
|
onClick: (Ae) => st(he)
|
|
@@ -5849,10 +5849,10 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5849
5849
|
disabled: f.value && e.isStep,
|
|
5850
5850
|
label: K(i)(e.btnText),
|
|
5851
5851
|
onClick: R
|
|
5852
|
-
}, null, 8, ["disabled", "label"])) :
|
|
5852
|
+
}, null, 8, ["disabled", "label"])) : U("", !0)
|
|
5853
5853
|
]),
|
|
5854
5854
|
_: 1
|
|
5855
|
-
})])) :
|
|
5855
|
+
})])) : U("", !0)
|
|
5856
5856
|
], 6)]),
|
|
5857
5857
|
_: 3
|
|
5858
5858
|
}, 8, [
|
|
@@ -5994,7 +5994,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
5994
5994
|
showLoading: y,
|
|
5995
5995
|
hideLoading: x
|
|
5996
5996
|
}), (R, F) => {
|
|
5997
|
-
const $ =
|
|
5997
|
+
const $ = I("el-step"), D = I("el-steps"), M = I("j-button"), C = I("el-space"), L = I("el-divider"), W = I("el-dialog"), ie = vi("loading");
|
|
5998
5998
|
return _(), H(W, {
|
|
5999
5999
|
modelValue: r.value,
|
|
6000
6000
|
"onUpdate:modelValue": F[0] || (F[0] = (de) => r.value = de),
|
|
@@ -6016,9 +6016,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6016
6016
|
key: 0,
|
|
6017
6017
|
class: "j-dialog-full-header-logo",
|
|
6018
6018
|
src: K(i)
|
|
6019
|
-
}, null, 8, rp)) :
|
|
6019
|
+
}, null, 8, rp)) : U("", !0),
|
|
6020
6020
|
V("span", sp, me(K(l)(e.title)), 1),
|
|
6021
|
-
V("span", cp, [e.subtitle ? (_(), H(Ta(e.subtitle()), { key: 0 })) :
|
|
6021
|
+
V("span", cp, [e.subtitle ? (_(), H(Ta(e.subtitle()), { key: 0 })) : U("", !0)])
|
|
6022
6022
|
]),
|
|
6023
6023
|
V("div", {
|
|
6024
6024
|
class: "j-dialog-full-header-mid",
|
|
@@ -6035,7 +6035,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6035
6035
|
title: K(l)(de.title)
|
|
6036
6036
|
}, null, 8, ["title"]))), 128))]),
|
|
6037
6037
|
_: 1
|
|
6038
|
-
}, 8, ["active"])) :
|
|
6038
|
+
}, 8, ["active"])) : U("", !0)], 4),
|
|
6039
6039
|
V("div", up, [G(C, { size: 0 }, {
|
|
6040
6040
|
default: N(() => [
|
|
6041
6041
|
e.hasBtns ? (_(), H(C, { key: 0 }, {
|
|
@@ -6046,7 +6046,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6046
6046
|
disabled: d.value,
|
|
6047
6047
|
label: K(l)("上一步"),
|
|
6048
6048
|
onClick: k
|
|
6049
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6049
|
+
}, null, 8, ["disabled", "label"])) : U("", !0),
|
|
6050
6050
|
e.isStep ? (_(), H(M, {
|
|
6051
6051
|
key: 1,
|
|
6052
6052
|
size: "mini",
|
|
@@ -6058,14 +6058,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6058
6058
|
"disabled",
|
|
6059
6059
|
"loading",
|
|
6060
6060
|
"label"
|
|
6061
|
-
])) :
|
|
6062
|
-
(_(!0), O(we, null, Re(e.buttons, (de) => (_(), O(we, { key: de.id }, [de.config?.display !== !1 ? (_(), H(M,
|
|
6061
|
+
])) : U("", !0),
|
|
6062
|
+
(_(!0), O(we, null, Re(e.buttons, (de) => (_(), O(we, { key: de.id }, [de.config?.display !== !1 ? (_(), H(M, Ie({
|
|
6063
6063
|
key: 0,
|
|
6064
6064
|
ref_for: !0
|
|
6065
6065
|
}, de.config, {
|
|
6066
6066
|
label: de.label,
|
|
6067
6067
|
onClick: (xe) => A(de)
|
|
6068
|
-
}), null, 16, ["label", "onClick"])) :
|
|
6068
|
+
}), null, 16, ["label", "onClick"])) : U("", !0)], 64))), 128)),
|
|
6069
6069
|
e.hasSaveBtn ? (_(), H(M, {
|
|
6070
6070
|
key: 2,
|
|
6071
6071
|
size: "mini",
|
|
@@ -6073,21 +6073,21 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6073
6073
|
disabled: h.value && e.isStep,
|
|
6074
6074
|
label: K(l)(e.btnText),
|
|
6075
6075
|
onClick: b
|
|
6076
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6076
|
+
}, null, 8, ["disabled", "label"])) : U("", !0)
|
|
6077
6077
|
]),
|
|
6078
6078
|
_: 1
|
|
6079
|
-
})) :
|
|
6079
|
+
})) : U("", !0),
|
|
6080
6080
|
e.showCloseBtn && e.hasBtns ? (_(), H(L, {
|
|
6081
6081
|
key: 1,
|
|
6082
6082
|
type: "vertical",
|
|
6083
6083
|
style: { margin: "0 8px" }
|
|
6084
|
-
})) :
|
|
6084
|
+
})) : U("", !0),
|
|
6085
6085
|
e.showCloseBtn ? (_(), H(M, {
|
|
6086
6086
|
key: 2,
|
|
6087
6087
|
type: "text",
|
|
6088
6088
|
icon: "mdi:close",
|
|
6089
6089
|
onClick: v
|
|
6090
|
-
})) :
|
|
6090
|
+
})) : U("", !0)
|
|
6091
6091
|
]),
|
|
6092
6092
|
_: 1
|
|
6093
6093
|
})])
|
|
@@ -6256,7 +6256,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6256
6256
|
showLoading: u,
|
|
6257
6257
|
hideLoading: d
|
|
6258
6258
|
}), (R, F) => {
|
|
6259
|
-
const $ =
|
|
6259
|
+
const $ = I("el-input"), D = I("j-button"), M = I("el-space"), C = I("el-step"), L = I("el-steps"), W = I("el-drawer"), ie = vi("loading");
|
|
6260
6260
|
return _(), H(W, {
|
|
6261
6261
|
modelValue: c.value,
|
|
6262
6262
|
"onUpdate:modelValue": F[0] || (F[0] = (de) => c.value = de),
|
|
@@ -6273,7 +6273,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6273
6273
|
onClosed: f
|
|
6274
6274
|
}, {
|
|
6275
6275
|
default: N(() => [xn((_(), O("div", {
|
|
6276
|
-
class:
|
|
6276
|
+
class: Be(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
6277
6277
|
"element-loading-text": r.value
|
|
6278
6278
|
}, [
|
|
6279
6279
|
V("div", {
|
|
@@ -6293,7 +6293,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6293
6293
|
disabled: b.value,
|
|
6294
6294
|
label: K(o)("上一步"),
|
|
6295
6295
|
onClick: m
|
|
6296
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6296
|
+
}, null, 8, ["disabled", "label"])) : U("", !0),
|
|
6297
6297
|
e.isStep ? (_(), H(D, {
|
|
6298
6298
|
key: 1,
|
|
6299
6299
|
size: "mini",
|
|
@@ -6305,14 +6305,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6305
6305
|
"disabled",
|
|
6306
6306
|
"loading",
|
|
6307
6307
|
"label"
|
|
6308
|
-
])) :
|
|
6308
|
+
])) : U("", !0),
|
|
6309
6309
|
!e.isStep && e.showCloseBtn ? (_(), H(D, {
|
|
6310
6310
|
key: 2,
|
|
6311
6311
|
size: "mini",
|
|
6312
6312
|
label: K(o)("取消"),
|
|
6313
6313
|
onClick: p
|
|
6314
|
-
}, null, 8, ["label"])) :
|
|
6315
|
-
(_(!0), O(we, null, Re(e.buttons, (de) => (_(), H(D,
|
|
6314
|
+
}, null, 8, ["label"])) : U("", !0),
|
|
6315
|
+
(_(!0), O(we, null, Re(e.buttons, (de) => (_(), H(D, Ie({ key: de.id }, { ref_for: !0 }, de.config, {
|
|
6316
6316
|
label: de.label,
|
|
6317
6317
|
onClick: (xe) => g(de)
|
|
6318
6318
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
@@ -6323,16 +6323,16 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6323
6323
|
disabled: y.value && e.isStep,
|
|
6324
6324
|
label: K(o)(e.btnText),
|
|
6325
6325
|
onClick: h
|
|
6326
|
-
}, null, 8, ["disabled", "label"])) :
|
|
6326
|
+
}, null, 8, ["disabled", "label"])) : U("", !0)
|
|
6327
6327
|
]),
|
|
6328
6328
|
_: 1
|
|
6329
|
-
})])) :
|
|
6329
|
+
})])) : U("", !0)
|
|
6330
6330
|
], 4),
|
|
6331
|
-
V("div", yp, [V("div", bp, [V("span", null, me(K(o)(e.title)), 1), V("span", wp, [e.subtitle ? (_(), H(Ta(e.subtitle()), { key: 0 })) :
|
|
6331
|
+
V("div", yp, [V("div", bp, [V("span", null, me(K(o)(e.title)), 1), V("span", wp, [e.subtitle ? (_(), H(Ta(e.subtitle()), { key: 0 })) : U("", !0)])]), e.showCloseBtn ? (_(), O("div", xp, [G(D, {
|
|
6332
6332
|
type: "text",
|
|
6333
6333
|
icon: "mdi:close",
|
|
6334
6334
|
onClick: p
|
|
6335
|
-
})])) :
|
|
6335
|
+
})])) : U("", !0)]),
|
|
6336
6336
|
e.isStep ? (_(), O("div", _p, [V("div", { style: be({
|
|
6337
6337
|
maxWidth: `${200 * A.value.length}px`,
|
|
6338
6338
|
width: "100%"
|
|
@@ -6347,7 +6347,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6347
6347
|
title: K(o)(de.title)
|
|
6348
6348
|
}, null, 8, ["title"]))), 128))]),
|
|
6349
6349
|
_: 1
|
|
6350
|
-
}, 8, ["active"])], 4)])) :
|
|
6350
|
+
}, 8, ["active"])], 4)])) : U("", !0)
|
|
6351
6351
|
], 10, gp)), [[ie, l.value]])]),
|
|
6352
6352
|
_: 3
|
|
6353
6353
|
}, 8, [
|
|
@@ -6440,7 +6440,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6440
6440
|
showLoading: g,
|
|
6441
6441
|
hideLoading: v
|
|
6442
6442
|
}), (b, w) => {
|
|
6443
|
-
const y =
|
|
6443
|
+
const y = I("j-dialog-full"), x = I("j-drawer"), k = I("j-dialog");
|
|
6444
6444
|
return s.value === "full" ? (_(), H(y, {
|
|
6445
6445
|
key: 0,
|
|
6446
6446
|
ref_key: "modalRef",
|
|
@@ -6610,7 +6610,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6610
6610
|
f.splice(d, 1), a("update:modelValue", f.join(",")), a("change", { value: f.join(",") });
|
|
6611
6611
|
};
|
|
6612
6612
|
return (d, f) => {
|
|
6613
|
-
const h =
|
|
6613
|
+
const h = I("el-tag"), p = I("el-space"), g = I("j-autocomplete");
|
|
6614
6614
|
return _(), H(g, {
|
|
6615
6615
|
modelValue: o.value,
|
|
6616
6616
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value = v),
|
|
@@ -6697,7 +6697,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6697
6697
|
l.value = s;
|
|
6698
6698
|
};
|
|
6699
6699
|
return (s, c) => {
|
|
6700
|
-
const u =
|
|
6700
|
+
const u = I("el-rate");
|
|
6701
6701
|
return _(), H(u, {
|
|
6702
6702
|
modelValue: o.value,
|
|
6703
6703
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => o.value = d),
|
|
@@ -6789,7 +6789,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6789
6789
|
}
|
|
6790
6790
|
});
|
|
6791
6791
|
return (i, l) => {
|
|
6792
|
-
const r =
|
|
6792
|
+
const r = I("el-slider");
|
|
6793
6793
|
return _(), H(r, {
|
|
6794
6794
|
modelValue: o.value,
|
|
6795
6795
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
|
|
@@ -6844,7 +6844,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6844
6844
|
]);
|
|
6845
6845
|
};
|
|
6846
6846
|
}
|
|
6847
|
-
}),
|
|
6847
|
+
}), Bp = Op, Ip = ue(Bp), Do = (e) => e < 1024 ? Lo(e) + " B" : e >= 1024 && e < 1048576 ? Lo(e / 1024) + " KB" : e >= 1048576 && e < 1073741824 ? Lo(e / 1024 / 1024) + " MB" : e >= 1073741824 ? Lo(e / 1024 / 1024 / 1024) + " GB" : "", Lp = (e) => {
|
|
6848
6848
|
const t = window.open("_blank");
|
|
6849
6849
|
t && (t.location = e);
|
|
6850
6850
|
}, zp = {
|
|
@@ -6894,8 +6894,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6894
6894
|
setup(e) {
|
|
6895
6895
|
const { t } = Tt();
|
|
6896
6896
|
return (n, a) => {
|
|
6897
|
-
const o =
|
|
6898
|
-
return _(), O("div", { class:
|
|
6897
|
+
const o = I("j-icon"), i = I("el-text"), l = I("j-button"), r = I("el-progress"), s = I("el-link");
|
|
6898
|
+
return _(), O("div", { class: Be(["j-upload-list", {
|
|
6899
6899
|
"j-upload-image-list": e.isUploadImg,
|
|
6900
6900
|
"j-upload-drag-list": e.drag
|
|
6901
6901
|
}]) }, [e.drag ? (_(), O(we, { key: 0 }, [e.showFileList ? (_(!0), O(we, { key: 0 }, Re(e.list, (c) => (_(), O("div", {
|
|
@@ -6918,7 +6918,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6918
6918
|
}, 1024), V("div", null, [c.status === "uploading" ? (_(), H(i, { key: 0 }, {
|
|
6919
6919
|
default: N(() => [Jt(me(K(Do)(c.uploadSize)) + "/", 1)]),
|
|
6920
6920
|
_: 2
|
|
6921
|
-
}, 1024)) :
|
|
6921
|
+
}, 1024)) : U("", !0), G(i, null, {
|
|
6922
6922
|
default: N(() => [Jt(me(K(Do)(c.size)), 1)]),
|
|
6923
6923
|
_: 2
|
|
6924
6924
|
}, 1024)])]),
|
|
@@ -6927,13 +6927,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6927
6927
|
icon: "mdi:eye",
|
|
6928
6928
|
type: "link",
|
|
6929
6929
|
onClick: Rt((u) => e.previewFile(c), ["stop"])
|
|
6930
|
-
}, null, 8, ["onClick"])) :
|
|
6930
|
+
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
6931
6931
|
key: 1,
|
|
6932
6932
|
icon: "mdi:delete",
|
|
6933
6933
|
type: "link",
|
|
6934
6934
|
danger: "",
|
|
6935
6935
|
onClick: Rt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
6936
|
-
}, null, 8, ["onClick"])) :
|
|
6936
|
+
}, null, 8, ["onClick"])) : U("", !0)], 512), [[no, c.status === "error"]]),
|
|
6937
6937
|
c.status === "uploading" ? (_(), H(r, {
|
|
6938
6938
|
key: 2,
|
|
6939
6939
|
"stroke-width": 4,
|
|
@@ -6945,8 +6945,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6945
6945
|
},
|
|
6946
6946
|
percent: c.percent,
|
|
6947
6947
|
"show-text": !1
|
|
6948
|
-
}, null, 8, ["percent"])) :
|
|
6949
|
-
]))), 128)) :
|
|
6948
|
+
}, null, 8, ["percent"])) : U("", !0)
|
|
6949
|
+
]))), 128)) : U("", !0), Fe(n.$slots, "default")], 64)) : e.isUploadImg ? (_(!0), O(we, { key: 1 }, Re(e.list, (c) => (_(), O("div", {
|
|
6950
6950
|
key: c.id,
|
|
6951
6951
|
class: "j-upload-imgItem"
|
|
6952
6952
|
}, [
|
|
@@ -6955,25 +6955,25 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6955
6955
|
src: c.url,
|
|
6956
6956
|
style: { width: "100%" },
|
|
6957
6957
|
alt: ""
|
|
6958
|
-
}, null, 8, Vp)) :
|
|
6958
|
+
}, null, 8, Vp)) : U("", !0),
|
|
6959
6959
|
xn(V("div", Np, [c.status === "done" || c.status === "unUpload" ? (_(), H(l, {
|
|
6960
6960
|
key: 0,
|
|
6961
6961
|
type: "link",
|
|
6962
6962
|
icon: "mdi:eye",
|
|
6963
6963
|
onClick: Rt((u) => e.previewFile(c), ["stop"])
|
|
6964
|
-
}, null, 8, ["onClick"])) :
|
|
6964
|
+
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
6965
6965
|
key: 1,
|
|
6966
6966
|
type: "link",
|
|
6967
6967
|
danger: "",
|
|
6968
6968
|
icon: "mdi:delete",
|
|
6969
6969
|
onClick: Rt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
6970
|
-
}, null, 8, ["onClick"])) :
|
|
6970
|
+
}, null, 8, ["onClick"])) : U("", !0)], 512), [[no, c.status === "error"]]),
|
|
6971
6971
|
c.status === "uploading" ? (_(), H(r, {
|
|
6972
6972
|
key: 1,
|
|
6973
6973
|
"stroke-width": 4,
|
|
6974
6974
|
percent: c.percent,
|
|
6975
6975
|
"show-text": !1
|
|
6976
|
-
}, null, 8, ["percent"])) :
|
|
6976
|
+
}, null, 8, ["percent"])) : U("", !0)
|
|
6977
6977
|
]))), 128)) : (_(!0), O(we, { key: 2 }, Re(e.list, (c) => (_(), O("div", {
|
|
6978
6978
|
key: c.id,
|
|
6979
6979
|
class: "j-upload-item"
|
|
@@ -6994,7 +6994,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
6994
6994
|
c.status === "uploading" ? (_(), H(i, { key: 0 }, {
|
|
6995
6995
|
default: N(() => [Jt(me(K(Do)(c.uploadSize)) + "/", 1)]),
|
|
6996
6996
|
_: 2
|
|
6997
|
-
}, 1024)) :
|
|
6997
|
+
}, 1024)) : U("", !0),
|
|
6998
6998
|
G(i, null, {
|
|
6999
6999
|
default: N(() => [Jt(me(K(Do)(c.size)), 1)]),
|
|
7000
7000
|
_: 2
|
|
@@ -7004,8 +7004,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7004
7004
|
class: "j-upload-item-success",
|
|
7005
7005
|
icon: "check-circle",
|
|
7006
7006
|
size: 24
|
|
7007
|
-
})) :
|
|
7008
|
-
e.readonly ?
|
|
7007
|
+
})) : U("", !0),
|
|
7008
|
+
e.readonly ? U("", !0) : xn((_(), H(o, {
|
|
7009
7009
|
key: 2,
|
|
7010
7010
|
class: "j-upload-item-error",
|
|
7011
7011
|
icon: "delete",
|
|
@@ -7023,7 +7023,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7023
7023
|
"stroke-width": 4,
|
|
7024
7024
|
percent: c.percent,
|
|
7025
7025
|
"show-text": !1
|
|
7026
|
-
}, null, 8, ["percent"])) :
|
|
7026
|
+
}, null, 8, ["percent"])) : U("", !0)
|
|
7027
7027
|
]))), 128))], 2);
|
|
7028
7028
|
};
|
|
7029
7029
|
}
|
|
@@ -7310,7 +7310,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7310
7310
|
return o && o(`当前限制选择${n.limit}个文件`), !1;
|
|
7311
7311
|
};
|
|
7312
7312
|
return (te, he) => {
|
|
7313
|
-
const Ae =
|
|
7313
|
+
const Ae = I("j-icon"), We = I("j-button"), dt = I("el-popover"), Ht = I("el-upload"), qe = I("el-text"), vn = I("j-dialog-full"), mn = vi("loading");
|
|
7314
7314
|
return _(), O("div", Yp, [
|
|
7315
7315
|
G(Ht, {
|
|
7316
7316
|
action: "",
|
|
@@ -7358,7 +7358,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7358
7358
|
"label"
|
|
7359
7359
|
])]),
|
|
7360
7360
|
_: 1
|
|
7361
|
-
}, 8, ["title"])) : e.readonly ?
|
|
7361
|
+
}, 8, ["title"])) : e.readonly ? U("", !0) : (_(), H(We, {
|
|
7362
7362
|
key: 2,
|
|
7363
7363
|
type: e.btnType,
|
|
7364
7364
|
size: e.btnSize,
|
|
@@ -7383,7 +7383,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7383
7383
|
e.isTip ? (_(), O("div", Jp, [G(qe, null, {
|
|
7384
7384
|
default: N(() => [Jt(me(`${K(r)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)]),
|
|
7385
7385
|
_: 1
|
|
7386
|
-
})])) :
|
|
7386
|
+
})])) : U("", !0),
|
|
7387
7387
|
!e.isLayer && !e.isUploadImg && e.showFileList && w.value.length > 0 ? (_(), H(Sr, {
|
|
7388
7388
|
key: 1,
|
|
7389
7389
|
style: { "margin-top": "4px" },
|
|
@@ -7396,7 +7396,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7396
7396
|
"list",
|
|
7397
7397
|
"readonly",
|
|
7398
7398
|
"is-show-success-icon"
|
|
7399
|
-
])) :
|
|
7399
|
+
])) : U("", !0),
|
|
7400
7400
|
G(vn, {
|
|
7401
7401
|
visible: ze.value,
|
|
7402
7402
|
"onUpdate:visible": he[1] || (he[1] = (Qt) => ze.value = Qt),
|
|
@@ -7420,7 +7420,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7420
7420
|
},
|
|
7421
7421
|
frameborder: "0",
|
|
7422
7422
|
onLoad: he[0] || (he[0] = (Qt) => st.value = !1)
|
|
7423
|
-
}, null, 40, Qp)])), [[mn, st.value]]) :
|
|
7423
|
+
}, null, 40, Qp)])), [[mn, st.value]]) : U("", !0)]),
|
|
7424
7424
|
_: 1
|
|
7425
7425
|
}, 8, [
|
|
7426
7426
|
"visible",
|
|
@@ -7802,7 +7802,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7802
7802
|
key: 0,
|
|
7803
7803
|
class: "j-barcode",
|
|
7804
7804
|
innerHTML: n.value
|
|
7805
|
-
}, null, 8, lg)) :
|
|
7805
|
+
}, null, 8, lg)) : U("", !0), a.value ? (_(), O("div", rg, me(a.value), 1)) : U("", !0)], 64));
|
|
7806
7806
|
}
|
|
7807
7807
|
}), cg = sg, ug = ue(cg), dg = /* @__PURE__ */ re({
|
|
7808
7808
|
name: "JCount",
|
|
@@ -7974,7 +7974,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
7974
7974
|
data: k.value
|
|
7975
7975
|
});
|
|
7976
7976
|
}), (m, E) => {
|
|
7977
|
-
const S =
|
|
7977
|
+
const S = I("el-input");
|
|
7978
7978
|
return _(), H(S, {
|
|
7979
7979
|
modelValue: k.value,
|
|
7980
7980
|
"onUpdate:modelValue": E[0] || (E[0] = (T) => k.value = T),
|
|
@@ -8040,7 +8040,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8040
8040
|
}), (f, h) => (_(), O("span", {
|
|
8041
8041
|
ref_key: "el",
|
|
8042
8042
|
ref: o
|
|
8043
|
-
}, [e.animation ?
|
|
8043
|
+
}, [e.animation ? U("", !0) : (_(), O("span", pg, me(e.endValue), 1))], 512));
|
|
8044
8044
|
}
|
|
8045
8045
|
}), vg = gg, mg = ue(vg), yg = { class: "j-block j-data-panel" }, bg = {
|
|
8046
8046
|
key: 0,
|
|
@@ -8054,7 +8054,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8054
8054
|
__name: "data-panel",
|
|
8055
8055
|
props: { title: { default: void 0 } },
|
|
8056
8056
|
setup(e) {
|
|
8057
|
-
return (t, n) => (_(), O("div", yg, [e.title ? (_(), O("div", bg, [V("div", wg, me(e.title), 1), V("div", xg, [Fe(t.$slots, "titleRight")])])) :
|
|
8057
|
+
return (t, n) => (_(), O("div", yg, [e.title ? (_(), O("div", bg, [V("div", wg, me(e.title), 1), V("div", xg, [Fe(t.$slots, "titleRight")])])) : U("", !0), V("div", _g, [Fe(t.$slots, "default")])]));
|
|
8058
8058
|
}
|
|
8059
8059
|
}), Sg = Cg, Eg = ue(Sg), kg = { class: "j-divider-content" }, Rg = /* @__PURE__ */ re({
|
|
8060
8060
|
name: "JDivider",
|
|
@@ -8072,7 +8072,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8072
8072
|
return t.size && Number(t.size) && (o.fontSize = `${t.size}px`), o;
|
|
8073
8073
|
}), a = j(() => ({ borderTopStyle: t.borderStyle }));
|
|
8074
8074
|
return (o, i) => (_(), O("div", {
|
|
8075
|
-
class:
|
|
8075
|
+
class: Be(`j-divider-container j-divider-${e.contentPosition}`),
|
|
8076
8076
|
style: be(n.value)
|
|
8077
8077
|
}, [
|
|
8078
8078
|
V("div", {
|
|
@@ -8096,7 +8096,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8096
8096
|
Fe(t.$slots, "right")
|
|
8097
8097
|
]));
|
|
8098
8098
|
}
|
|
8099
|
-
}), Hg = jg, Og = ue(Hg),
|
|
8099
|
+
}), Hg = jg, Og = ue(Hg), Bg = /* @__PURE__ */ re({
|
|
8100
8100
|
name: "JInputButton",
|
|
8101
8101
|
__name: "input-button",
|
|
8102
8102
|
props: {
|
|
@@ -8131,8 +8131,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8131
8131
|
return nt(() => n.modelValue, (u) => {
|
|
8132
8132
|
i.value = u;
|
|
8133
8133
|
}, { immediate: !0 }), (u, d) => {
|
|
8134
|
-
const f =
|
|
8135
|
-
return _(), O(we, null, [G(f,
|
|
8134
|
+
const f = I("j-button"), h = I("j-layer");
|
|
8135
|
+
return _(), O(we, null, [G(f, Ie({ style: { width: "auto" } }, u.$attrs, {
|
|
8136
8136
|
type: e.type,
|
|
8137
8137
|
label: e.btnText,
|
|
8138
8138
|
size: e.size,
|
|
@@ -8161,7 +8161,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8161
8161
|
])], 64);
|
|
8162
8162
|
};
|
|
8163
8163
|
}
|
|
8164
|
-
}),
|
|
8164
|
+
}), Ig = Bg, Lg = ue(Ig), zg = /* @__PURE__ */ re({
|
|
8165
8165
|
name: "JInputCode",
|
|
8166
8166
|
__name: "input-code",
|
|
8167
8167
|
props: {
|
|
@@ -8194,7 +8194,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8194
8194
|
a("change", d);
|
|
8195
8195
|
}, u = j(() => n.modelValue && n.modelValue.trim() ? `${n.btnText}(已设置)` : n.btnText);
|
|
8196
8196
|
return (d, f) => {
|
|
8197
|
-
const h =
|
|
8197
|
+
const h = I("j-code-mirror"), p = I("j-layout"), g = I("j-input-button");
|
|
8198
8198
|
return _(), H(g, {
|
|
8199
8199
|
modelValue: o.value,
|
|
8200
8200
|
"onUpdate:modelValue": f[1] || (f[1] = (v) => o.value = v),
|
|
@@ -8345,13 +8345,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8345
8345
|
i.value?.select();
|
|
8346
8346
|
}
|
|
8347
8347
|
}), (g, v) => {
|
|
8348
|
-
const b =
|
|
8349
|
-
return _(), O("div", { class:
|
|
8348
|
+
const b = I("el-color-picker"), w = I("el-input");
|
|
8349
|
+
return _(), O("div", { class: Be([
|
|
8350
8350
|
"j-input-color",
|
|
8351
8351
|
{ "j-input-color-only-button": e.onlyButton },
|
|
8352
8352
|
{ "j-input-color-disabled": e.disabled },
|
|
8353
8353
|
`j-input-color-${e.size}`
|
|
8354
|
-
]) }, [G(w,
|
|
8354
|
+
]) }, [G(w, Ie({
|
|
8355
8355
|
ref_key: "inputRef",
|
|
8356
8356
|
ref: i,
|
|
8357
8357
|
modelValue: r.value,
|
|
@@ -8424,7 +8424,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8424
8424
|
return t.color && (o.color = t.color), t.size && (typeof t.size == "number" ? o.fontSize = `${t.size}px` : o.fontSize = t.size), t.weight && (o.fontWeight = t.weight), o;
|
|
8425
8425
|
});
|
|
8426
8426
|
return (o, i) => (_(), O("div", {
|
|
8427
|
-
class:
|
|
8427
|
+
class: Be(["j-title", n.value]),
|
|
8428
8428
|
style: be(a.value)
|
|
8429
8429
|
}, me(e.title), 7));
|
|
8430
8430
|
}
|
|
@@ -8524,14 +8524,14 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8524
8524
|
Od(),
|
|
8525
8525
|
Md(),
|
|
8526
8526
|
bd(),
|
|
8527
|
-
|
|
8527
|
+
Id(),
|
|
8528
8528
|
md.of([
|
|
8529
8529
|
...Ad,
|
|
8530
8530
|
...Pd,
|
|
8531
8531
|
...Hd,
|
|
8532
8532
|
...Ld
|
|
8533
8533
|
]),
|
|
8534
|
-
$d(
|
|
8534
|
+
$d(Bd)
|
|
8535
8535
|
];
|
|
8536
8536
|
return g.push(s(a.mode)), a.readonly && g.push(zi.readOnly.of(!0)), a.isHint && a.handleHint && g.push(Td({ override: [(v) => {
|
|
8537
8537
|
const b = v.matchBefore(/\w*/);
|
|
@@ -8648,7 +8648,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8648
8648
|
o.value = r;
|
|
8649
8649
|
}
|
|
8650
8650
|
}), (r, s) => {
|
|
8651
|
-
const c =
|
|
8651
|
+
const c = I("j-icon");
|
|
8652
8652
|
return _(), O("div", {
|
|
8653
8653
|
ref_key: "actionRef",
|
|
8654
8654
|
ref: a,
|
|
@@ -8730,7 +8730,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8730
8730
|
return (l, r) => (_(), O("div", {
|
|
8731
8731
|
ref_key: "contentRef",
|
|
8732
8732
|
ref: a,
|
|
8733
|
-
class:
|
|
8733
|
+
class: Be([{ success: e.isPassing }, "j-slider-captcha-content"]),
|
|
8734
8734
|
style: be(o.value)
|
|
8735
8735
|
}, [V("div", {
|
|
8736
8736
|
style: be(i.value),
|
|
@@ -8831,7 +8831,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8831
8831
|
return (b, w) => (_(), O("div", {
|
|
8832
8832
|
ref_key: "wrapperRef",
|
|
8833
8833
|
ref: l,
|
|
8834
|
-
class:
|
|
8834
|
+
class: Be(["j-slider-captcha slider-border", n.class]),
|
|
8835
8835
|
style: be([{ "background-color": "var(--j-color-bg)" }, e.wrapperStyle]),
|
|
8836
8836
|
onMouseleave: p,
|
|
8837
8837
|
onMousemove: h,
|
|
@@ -8878,7 +8878,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8878
8878
|
const g = c.value.find((v) => v.active);
|
|
8879
8879
|
g?.value !== p.value && (g && (g.active = !1), a("click", p));
|
|
8880
8880
|
}, { list: d, containerProps: f, wrapperProps: h } = xl(c, { itemHeight: 44 });
|
|
8881
|
-
return (p, g) => (_(), O("div",
|
|
8881
|
+
return (p, g) => (_(), O("div", Ie({
|
|
8882
8882
|
class: ["j-sub-menu-content", { "j-menu-dark": K(r) === "dark" }],
|
|
8883
8883
|
style: {
|
|
8884
8884
|
"max-height": "calc(100vh - 80px)",
|
|
@@ -8894,7 +8894,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8894
8894
|
}
|
|
8895
8895
|
}), lv = iv, rv = { class: "j-menu-item-label" }, sv = { class: "j-menu-item-label" }, cv = {
|
|
8896
8896
|
key: 1,
|
|
8897
|
-
class: /* @__PURE__ */
|
|
8897
|
+
class: /* @__PURE__ */ Be(["j-menu-item-arrow", "sub"])
|
|
8898
8898
|
}, uv = { class: "j-menu-item-label" }, dv = /* @__PURE__ */ re({
|
|
8899
8899
|
name: "JMenuItem",
|
|
8900
8900
|
__name: "index",
|
|
@@ -8918,17 +8918,17 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8918
8918
|
o("click", l);
|
|
8919
8919
|
};
|
|
8920
8920
|
return (l, r) => {
|
|
8921
|
-
const s =
|
|
8921
|
+
const s = I("j-icon"), c = I("el-tooltip"), u = I("el-popover");
|
|
8922
8922
|
return e.collapsed && !e.item.hasChildren ? (_(), H(c, {
|
|
8923
8923
|
key: 0,
|
|
8924
8924
|
placement: "right"
|
|
8925
8925
|
}, {
|
|
8926
8926
|
content: N(() => [V("span", null, me(K(n)(e.item.label)), 1)]),
|
|
8927
8927
|
default: N(() => [V("div", {
|
|
8928
|
-
class:
|
|
8928
|
+
class: Be(["j-menu-item", { collapsed: e.collapsed }]),
|
|
8929
8929
|
onClick: r[0] || (r[0] = Rt((d) => i(e.item), ["stop"]))
|
|
8930
8930
|
}, [V("div", {
|
|
8931
|
-
class:
|
|
8931
|
+
class: Be(["j-menu-item-content", {
|
|
8932
8932
|
active: e.item.value === K(a),
|
|
8933
8933
|
"p-active": e.parentActives.includes(e.item.value)
|
|
8934
8934
|
}]),
|
|
@@ -8939,12 +8939,12 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8939
8939
|
icon: e.item.icon,
|
|
8940
8940
|
class: "j-menu-item-icon",
|
|
8941
8941
|
size: 18
|
|
8942
|
-
}, null, 8, ["icon"])) :
|
|
8942
|
+
}, null, 8, ["icon"])) : U("", !0),
|
|
8943
8943
|
V("div", rv, me(K(n)(e.item.label)), 1),
|
|
8944
8944
|
e.item.hasChildren ? (_(), O("div", {
|
|
8945
8945
|
key: 1,
|
|
8946
|
-
class:
|
|
8947
|
-
}, null, 2)) :
|
|
8946
|
+
class: Be(["j-menu-item-arrow", { open: e.item.open }])
|
|
8947
|
+
}, null, 2)) : U("", !0)
|
|
8948
8948
|
], 6)], 2)]),
|
|
8949
8949
|
_: 1
|
|
8950
8950
|
})) : (e.collapsed || e.isSub || e.isHorizontal || e.isVertical) && e.item.hasChildren ? (_(), H(u, {
|
|
@@ -8954,8 +8954,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8954
8954
|
width: "200px",
|
|
8955
8955
|
"popper-class": "j-sub-menu"
|
|
8956
8956
|
}, {
|
|
8957
|
-
reference: N(() => [V("div", { class:
|
|
8958
|
-
class:
|
|
8957
|
+
reference: N(() => [V("div", { class: Be(["j-menu-item", { collapsed: e.collapsed }]) }, [V("div", {
|
|
8958
|
+
class: Be(["j-menu-item-content", {
|
|
8959
8959
|
active: e.item.value === K(a),
|
|
8960
8960
|
"p-active": e.parentActives.includes(e.item.value)
|
|
8961
8961
|
}]),
|
|
@@ -8970,9 +8970,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8970
8970
|
}),
|
|
8971
8971
|
class: "j-menu-item-icon",
|
|
8972
8972
|
size: 18
|
|
8973
|
-
}, null, 8, ["icon", "style"])) :
|
|
8973
|
+
}, null, 8, ["icon", "style"])) : U("", !0),
|
|
8974
8974
|
V("div", sv, me(K(n)(e.item.label)), 1),
|
|
8975
|
-
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (_(), O("div", cv)) :
|
|
8975
|
+
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (_(), O("div", cv)) : U("", !0)
|
|
8976
8976
|
], 6)], 2)]),
|
|
8977
8977
|
default: N(() => [G(lv, {
|
|
8978
8978
|
"p-id": e.item.value,
|
|
@@ -8981,13 +8981,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
8981
8981
|
_: 1
|
|
8982
8982
|
}, 8, ["placement"])) : (_(), O("div", {
|
|
8983
8983
|
key: 2,
|
|
8984
|
-
class:
|
|
8984
|
+
class: Be(["j-menu-item", {
|
|
8985
8985
|
collapsed: e.collapsed,
|
|
8986
8986
|
sub: e.item.indent > 0
|
|
8987
8987
|
}]),
|
|
8988
8988
|
onClick: r[1] || (r[1] = Rt((d) => i(e.item), ["stop"]))
|
|
8989
8989
|
}, [V("div", {
|
|
8990
|
-
class:
|
|
8990
|
+
class: Be(["j-menu-item-content", {
|
|
8991
8991
|
active: e.item.value === K(a),
|
|
8992
8992
|
"p-active": e.parentActives.includes(e.item.value)
|
|
8993
8993
|
}]),
|
|
@@ -9002,12 +9002,12 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9002
9002
|
"background-color": e.isVertical ? e.item.color : "transparent"
|
|
9003
9003
|
}),
|
|
9004
9004
|
size: 18
|
|
9005
|
-
}, null, 8, ["icon", "style"])) :
|
|
9005
|
+
}, null, 8, ["icon", "style"])) : U("", !0),
|
|
9006
9006
|
V("div", uv, me(K(n)(e.item.label)), 1),
|
|
9007
9007
|
e.item.hasChildren ? (_(), O("div", {
|
|
9008
9008
|
key: 1,
|
|
9009
|
-
class:
|
|
9010
|
-
}, null, 2)) :
|
|
9009
|
+
class: Be(["j-menu-item-arrow", { open: e.item.open }])
|
|
9010
|
+
}, null, 2)) : U("", !0)
|
|
9011
9011
|
], 6)], 2));
|
|
9012
9012
|
};
|
|
9013
9013
|
}
|
|
@@ -9026,7 +9026,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9026
9026
|
const n = e, a = t, { activeMenu: o, theme: i } = vo(), l = (u) => {
|
|
9027
9027
|
a("click", u);
|
|
9028
9028
|
}, { list: r, containerProps: s, wrapperProps: c } = xl(j(() => n.menuList), { itemHeight: 44 });
|
|
9029
|
-
return (u, d) => (_(), O("div",
|
|
9029
|
+
return (u, d) => (_(), O("div", Ie({ class: ["j-menu", {
|
|
9030
9030
|
collapsed: e.collapsed,
|
|
9031
9031
|
"j-menu-dark": K(i) === "dark"
|
|
9032
9032
|
}] }, K(s)), [V("div", gi(wl(K(c))), [(_(!0), O(we, null, Re(K(r), (f) => (_(), H(bi, {
|
|
@@ -9034,7 +9034,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9034
9034
|
"parent-actives": K(o)?.pid?.split(".") || [],
|
|
9035
9035
|
item: f.data,
|
|
9036
9036
|
collapsed: e.collapsed,
|
|
9037
|
-
class:
|
|
9037
|
+
class: Be({
|
|
9038
9038
|
"menu-item-entering": f.data.entering,
|
|
9039
9039
|
"menu-item-leaving": f.data.leaving
|
|
9040
9040
|
}),
|
|
@@ -9097,7 +9097,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9097
9097
|
}), (h, p) => (_(), O("div", {
|
|
9098
9098
|
ref_key: "menuRef",
|
|
9099
9099
|
ref: l,
|
|
9100
|
-
class:
|
|
9100
|
+
class: Be(["j-menu-horizontal", { "j-menu-dark": K(i) === "dark" }])
|
|
9101
9101
|
}, [(_(!0), O(we, null, Re(c.value, (g) => (_(), H(bi, {
|
|
9102
9102
|
key: g.value,
|
|
9103
9103
|
"parent-actives": d.value,
|
|
@@ -9127,7 +9127,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9127
9127
|
}), n.menuList)), s = j(() => o.value?.pid?.split(".") || []), c = (h) => {
|
|
9128
9128
|
a("click", h);
|
|
9129
9129
|
}, { list: u, containerProps: d, wrapperProps: f } = xl(r, { itemHeight: 96 });
|
|
9130
|
-
return (h, p) => (_(), O("div",
|
|
9130
|
+
return (h, p) => (_(), O("div", Ie({ class: ["j-menu-vertical", { "j-menu-dark": K(i) === "dark" }] }, K(d)), [V("div", gi(wl(K(f))), [(_(!0), O(we, null, Re(K(u), (g) => (_(), H(bi, {
|
|
9131
9131
|
key: g.data.value,
|
|
9132
9132
|
"parent-actives": s.value,
|
|
9133
9133
|
item: g.data,
|
|
@@ -9283,15 +9283,15 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9283
9283
|
return t({ init: () => {
|
|
9284
9284
|
o.value ? l.value = !1 : l.value = !0;
|
|
9285
9285
|
} }), (f, h) => {
|
|
9286
|
-
const p =
|
|
9286
|
+
const p = I("j-icon"), g = I("el-input"), v = I("j-checkbox");
|
|
9287
9287
|
return _(), O("div", xv, [
|
|
9288
9288
|
V("div", {
|
|
9289
|
-
class:
|
|
9289
|
+
class: Be(["range-item", { active: o.value }]),
|
|
9290
9290
|
onClick: c
|
|
9291
9291
|
}, [V("div", null, me(K(n)("搜索全部")), 1), o.value ? (_(), H(p, {
|
|
9292
9292
|
key: 0,
|
|
9293
9293
|
icon: "mdi:check"
|
|
9294
|
-
})) :
|
|
9294
|
+
})) : U("", !0)], 2),
|
|
9295
9295
|
V("div", {
|
|
9296
9296
|
class: "range-item",
|
|
9297
9297
|
onClick: h[0] || (h[0] = (b) => l.value = !l.value)
|
|
@@ -9306,7 +9306,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9306
9306
|
}, {
|
|
9307
9307
|
prefix: N(() => [G(p, { icon: "mdi:search" })]),
|
|
9308
9308
|
_: 1
|
|
9309
|
-
}, 8, ["modelValue", "placeholder"])])) :
|
|
9309
|
+
}, 8, ["modelValue", "placeholder"])])) : U("", !0),
|
|
9310
9310
|
l.value ? (_(), O("div", Cv, [G(v, {
|
|
9311
9311
|
modelValue: i.value,
|
|
9312
9312
|
"onUpdate:modelValue": h[2] || (h[2] = (b) => i.value = b),
|
|
@@ -9316,7 +9316,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9316
9316
|
"flex-direction": "column"
|
|
9317
9317
|
},
|
|
9318
9318
|
onChange: u
|
|
9319
|
-
}, null, 8, ["modelValue", "options"])])) :
|
|
9319
|
+
}, null, 8, ["modelValue", "options"])])) : U("", !0)
|
|
9320
9320
|
]);
|
|
9321
9321
|
};
|
|
9322
9322
|
}
|
|
@@ -9642,9 +9642,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9642
9642
|
}), h("filter");
|
|
9643
9643
|
};
|
|
9644
9644
|
return t({ getSearchFields: () => r.value }), (w, y) => {
|
|
9645
|
-
const x =
|
|
9646
|
-
return _(), O("div", { class:
|
|
9647
|
-
l.value ? (_(), O("div", kv, [G(x, { icon: "mdi:filter-outline" }), V("div", null, me(K(a)("筛选")), 1)])) :
|
|
9645
|
+
const x = I("j-icon"), k = I("j-select"), m = I("j-button-select"), E = I("j-button"), S = I("j-input-rows"), T = I("el-tooltip");
|
|
9646
|
+
return _(), O("div", { class: Be(["j-filter-panel", { "is-pin": l.value }]) }, [
|
|
9647
|
+
l.value ? (_(), O("div", kv, [G(x, { icon: "mdi:filter-outline" }), V("div", null, me(K(a)("筛选")), 1)])) : U("", !0),
|
|
9648
9648
|
V("div", Rv, [
|
|
9649
9649
|
V("div", Tv, [
|
|
9650
9650
|
V("div", null, me(K(a)("筛选出符合以下")), 1),
|
|
@@ -9674,7 +9674,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9674
9674
|
danger: "",
|
|
9675
9675
|
label: "删除全部",
|
|
9676
9676
|
onClick: p
|
|
9677
|
-
})) :
|
|
9677
|
+
})) : U("", !0)]),
|
|
9678
9678
|
V("div", Pv, [G(S, {
|
|
9679
9679
|
modelValue: r.value,
|
|
9680
9680
|
"onUpdate:modelValue": y[1] || (y[1] = (A) => r.value = A),
|
|
@@ -9709,7 +9709,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9709
9709
|
], 2);
|
|
9710
9710
|
};
|
|
9711
9711
|
}
|
|
9712
|
-
}), Er = Hv, Ov = { class: "j-order-panel" },
|
|
9712
|
+
}), Er = Hv, Ov = { class: "j-order-panel" }, Bv = { class: "content" }, Iv = { class: "btn-wrapper" }, Lv = { class: "field-wrapper" }, zv = { class: "buttons" }, $v = /* @__PURE__ */ re({
|
|
9713
9713
|
name: "JOrderPanel",
|
|
9714
9714
|
__name: "order-panel",
|
|
9715
9715
|
props: { columns: {
|
|
@@ -9754,8 +9754,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9754
9754
|
r.value = [], i("clear");
|
|
9755
9755
|
};
|
|
9756
9756
|
return t({ init: d }), (p, g) => {
|
|
9757
|
-
const v =
|
|
9758
|
-
return _(), O("div", Ov, [V("div",
|
|
9757
|
+
const v = I("j-button-select"), b = I("j-input-rows"), w = I("j-button");
|
|
9758
|
+
return _(), O("div", Ov, [V("div", Bv, [V("div", Iv, [G(v, {
|
|
9759
9759
|
label: "添加排序规则",
|
|
9760
9760
|
options: l.value,
|
|
9761
9761
|
"model-value": s.value.join(","),
|
|
@@ -9778,7 +9778,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9778
9778
|
icon: "mdi:delete-sweep",
|
|
9779
9779
|
type: "text",
|
|
9780
9780
|
onClick: h
|
|
9781
|
-
}, null, 8, ["label"])) :
|
|
9781
|
+
}, null, 8, ["label"])) : U("", !0)])]);
|
|
9782
9782
|
};
|
|
9783
9783
|
}
|
|
9784
9784
|
}), Dv = $v, Fv = { class: "j-column-panel" }, Vv = { class: "content" }, Nv = { class: "search-wrapper" }, Wv = { class: "tree-wrapper" }, Uv = { class: "buttons" }, Yv = /* @__PURE__ */ re({
|
|
@@ -9879,7 +9879,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
9879
9879
|
return t({ init: () => {
|
|
9880
9880
|
v(), c.value = d(o.columns, o.columnConfig), u.value = JSON.parse(JSON.stringify(c.value));
|
|
9881
9881
|
} }), (m, E) => {
|
|
9882
|
-
const S =
|
|
9882
|
+
const S = I("j-icon"), T = I("el-input"), A = I("j-tree"), R = I("j-button");
|
|
9883
9883
|
return _(), O("div", Fv, [V("div", Vv, [V("div", Nv, [G(T, {
|
|
9884
9884
|
modelValue: r.value,
|
|
9885
9885
|
"onUpdate:modelValue": E[0] || (E[0] = (F) => r.value = F),
|
|
@@ -10003,6 +10003,26 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10003
10003
|
highlightMode: {
|
|
10004
10004
|
type: String,
|
|
10005
10005
|
default: "row"
|
|
10006
|
+
},
|
|
10007
|
+
showFilterButton: {
|
|
10008
|
+
type: Boolean,
|
|
10009
|
+
default: !0
|
|
10010
|
+
},
|
|
10011
|
+
showOrderButton: {
|
|
10012
|
+
type: Boolean,
|
|
10013
|
+
default: !0
|
|
10014
|
+
},
|
|
10015
|
+
showColumnButton: {
|
|
10016
|
+
type: Boolean,
|
|
10017
|
+
default: !0
|
|
10018
|
+
},
|
|
10019
|
+
showRefreshButton: {
|
|
10020
|
+
type: Boolean,
|
|
10021
|
+
default: !0
|
|
10022
|
+
},
|
|
10023
|
+
showFullscreenButton: {
|
|
10024
|
+
type: Boolean,
|
|
10025
|
+
default: !0
|
|
10006
10026
|
}
|
|
10007
10027
|
},
|
|
10008
10028
|
emits: ["select", "ready"],
|
|
@@ -10092,8 +10112,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10092
10112
|
return [...fe, ...ce];
|
|
10093
10113
|
}
|
|
10094
10114
|
return i.buttons;
|
|
10095
|
-
}), mn = j(() => vn.value.filter((fe) => fe.config?.display !== !1)), Qt = P(null),
|
|
10096
|
-
|
|
10115
|
+
}), mn = j(() => vn.value.filter((fe) => fe.config?.display !== !1)), Qt = P(null), Y = P(0), le = () => {
|
|
10116
|
+
Y.value = Qt.value?.clientWidth || 0;
|
|
10097
10117
|
};
|
|
10098
10118
|
let X;
|
|
10099
10119
|
wt(() => {
|
|
@@ -10110,18 +10130,18 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10110
10130
|
const ee = j(() => {
|
|
10111
10131
|
const fe = mn.value;
|
|
10112
10132
|
if (fe.length === 0) return [];
|
|
10113
|
-
const ce =
|
|
10133
|
+
const ce = Y.value;
|
|
10114
10134
|
if (ce <= 0) return fe;
|
|
10115
10135
|
const yt = Math.max(0, ce - 4), ft = (Ot, Wt) => Ot.groupId || `__auto_${Wt}`, se = (Ot) => {
|
|
10116
10136
|
if (Ot.config?.notLabel === !0 || !Ot.label) return 28;
|
|
10117
|
-
const Wt = 24,
|
|
10118
|
-
return Math.ceil(
|
|
10137
|
+
const Wt = 24, B = nn(Ot.label || "") || 0, z = Ot.config?.icon ? 18 : 0;
|
|
10138
|
+
return Math.ceil(B + Wt + z + 2);
|
|
10119
10139
|
};
|
|
10120
10140
|
if (((Ot) => {
|
|
10121
|
-
let Wt = 0,
|
|
10141
|
+
let Wt = 0, B = null;
|
|
10122
10142
|
return Ot.forEach((z, q) => {
|
|
10123
10143
|
const J = ft(z, q);
|
|
10124
|
-
|
|
10144
|
+
B !== null && (Wt += J === B ? -1 : 8), Wt += se(z), B = J;
|
|
10125
10145
|
}), Wt;
|
|
10126
10146
|
})(fe) <= yt) return fe;
|
|
10127
10147
|
const en = {
|
|
@@ -10135,12 +10155,12 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10135
10155
|
}, yn = 28, Dt = [];
|
|
10136
10156
|
let at = 0, Wa = null;
|
|
10137
10157
|
for (let Ot = 0; Ot < fe.length; Ot++) {
|
|
10138
|
-
const Wt = fe[Ot],
|
|
10158
|
+
const Wt = fe[Ot], B = ft(Wt, Ot);
|
|
10139
10159
|
let z = at;
|
|
10140
|
-
Wa !== null && (z +=
|
|
10160
|
+
Wa !== null && (z += B === Wa ? -1 : 8), z += se(Wt);
|
|
10141
10161
|
const q = fe.length - (Ot + 1) > 0 ? (z > 0 ? 8 : 0) + yn : 0;
|
|
10142
10162
|
if (z + q <= yt)
|
|
10143
|
-
Dt.push(Wt), at = z, Wa =
|
|
10163
|
+
Dt.push(Wt), at = z, Wa = B;
|
|
10144
10164
|
else break;
|
|
10145
10165
|
}
|
|
10146
10166
|
const Ho = fe.slice(Dt.length);
|
|
@@ -10214,7 +10234,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10214
10234
|
p.value = ce, l("select", ce), g.value && ce.length === 0 ? (g.value = !1, r.value && r.value.setRecords(s)) : g.value && ce.length > 0 && r.value && (r.value.setRecords(ce), r.value.setSelection?.(ce));
|
|
10215
10235
|
}, Na = () => p.value || [], jo = (fe) => {
|
|
10216
10236
|
p.value = fe, r.value?.setSelection?.(fe);
|
|
10217
|
-
},
|
|
10237
|
+
}, Bi = () => r.value?.getInstance?.();
|
|
10218
10238
|
return wt(async () => {
|
|
10219
10239
|
i.immediate && await rt();
|
|
10220
10240
|
}), t({
|
|
@@ -10225,13 +10245,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10225
10245
|
clearSelection: () => {
|
|
10226
10246
|
Ht();
|
|
10227
10247
|
},
|
|
10228
|
-
getInstance:
|
|
10248
|
+
getInstance: Bi
|
|
10229
10249
|
}), (fe, ce) => {
|
|
10230
|
-
const yt =
|
|
10231
|
-
return _(), O("div", { class:
|
|
10250
|
+
const yt = I("j-buttons"), ft = I("j-icon"), se = I("el-popover"), gt = I("el-tooltip"), en = I("el-input"), yn = I("j-button"), Dt = I("j-table");
|
|
10251
|
+
return _(), O("div", { class: Be(["j-table-panel-wrapper", {
|
|
10232
10252
|
fullscreen: We.value,
|
|
10233
10253
|
"no-padding": e.noPadding || We.value
|
|
10234
|
-
}]) }, [V("div", { class:
|
|
10254
|
+
}]) }, [V("div", { class: Be(["j-table-panel", { "j-table-panel-fullscreen": We.value }]) }, [V("div", Gv, [V("div", Jv, [V("div", {
|
|
10235
10255
|
ref_key: "topLeftRef",
|
|
10236
10256
|
ref: Qt,
|
|
10237
10257
|
class: "j-table-panel-top-left"
|
|
@@ -10282,8 +10302,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10282
10302
|
_: 1
|
|
10283
10303
|
}, 8, ["content"])]),
|
|
10284
10304
|
_: 1
|
|
10285
|
-
}, 8, ["modelValue", "placeholder"])])) :
|
|
10286
|
-
!C.value && !w.value ? (_(), H(se, {
|
|
10305
|
+
}, 8, ["modelValue", "placeholder"])])) : U("", !0),
|
|
10306
|
+
e.showFilterButton && !C.value && !w.value ? (_(), H(se, {
|
|
10287
10307
|
key: 1,
|
|
10288
10308
|
visible: L.value,
|
|
10289
10309
|
"onUpdate:visible": ce[6] || (ce[6] = (at) => L.value = at),
|
|
@@ -10298,7 +10318,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10298
10318
|
icon: "mdi:filter-outline",
|
|
10299
10319
|
label: "筛选",
|
|
10300
10320
|
type: "text",
|
|
10301
|
-
class:
|
|
10321
|
+
class: Be({ active: W.value })
|
|
10302
10322
|
}, null, 8, ["class"])]),
|
|
10303
10323
|
default: N(() => [G(Er, {
|
|
10304
10324
|
ref_key: "filterPanelRef",
|
|
@@ -10318,8 +10338,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10318
10338
|
"columns"
|
|
10319
10339
|
])]),
|
|
10320
10340
|
_: 1
|
|
10321
|
-
}, 8, ["visible"])) :
|
|
10322
|
-
w.value ?
|
|
10341
|
+
}, 8, ["visible"])) : U("", !0),
|
|
10342
|
+
e.showOrderButton && !w.value ? (_(), H(gt, {
|
|
10323
10343
|
key: 2,
|
|
10324
10344
|
placement: "bottom",
|
|
10325
10345
|
content: K(a)("排序")
|
|
@@ -10334,7 +10354,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10334
10354
|
onShow: ae
|
|
10335
10355
|
}, {
|
|
10336
10356
|
reference: N(() => [G(yn, {
|
|
10337
|
-
class:
|
|
10357
|
+
class: Be({ active: st.value.length > 0 }),
|
|
10338
10358
|
type: "text",
|
|
10339
10359
|
icon: "mdi:sort"
|
|
10340
10360
|
}, null, 8, ["class"])]),
|
|
@@ -10348,8 +10368,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10348
10368
|
_: 1
|
|
10349
10369
|
}, 8, ["visible"])])]),
|
|
10350
10370
|
_: 1
|
|
10351
|
-
}, 8, ["content"])),
|
|
10352
|
-
w.value ?
|
|
10371
|
+
}, 8, ["content"])) : U("", !0),
|
|
10372
|
+
e.showColumnButton && !w.value ? (_(), H(gt, {
|
|
10353
10373
|
key: 3,
|
|
10354
10374
|
placement: "bottom",
|
|
10355
10375
|
content: K(a)("显示字段")
|
|
@@ -10364,7 +10384,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10364
10384
|
onShow: he
|
|
10365
10385
|
}, {
|
|
10366
10386
|
reference: N(() => [G(yn, {
|
|
10367
|
-
class:
|
|
10387
|
+
class: Be({ active: te.value }),
|
|
10368
10388
|
type: "text",
|
|
10369
10389
|
icon: "mdi:table-headers-eye"
|
|
10370
10390
|
}, null, 8, ["class"])]),
|
|
@@ -10378,8 +10398,8 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10378
10398
|
_: 1
|
|
10379
10399
|
}, 8, ["visible"])])]),
|
|
10380
10400
|
_: 1
|
|
10381
|
-
}, 8, ["content"])),
|
|
10382
|
-
w.value ?
|
|
10401
|
+
}, 8, ["content"])) : U("", !0),
|
|
10402
|
+
e.showRefreshButton && !w.value ? (_(), H(gt, {
|
|
10383
10403
|
key: 4,
|
|
10384
10404
|
placement: "bottom",
|
|
10385
10405
|
content: K(a)("刷新")
|
|
@@ -10390,8 +10410,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10390
10410
|
onClick: Mn
|
|
10391
10411
|
})]),
|
|
10392
10412
|
_: 1
|
|
10393
|
-
}, 8, ["content"])),
|
|
10394
|
-
|
|
10413
|
+
}, 8, ["content"])) : U("", !0),
|
|
10414
|
+
e.showFullscreenButton ? (_(), H(gt, {
|
|
10415
|
+
key: 5,
|
|
10395
10416
|
placement: "bottom",
|
|
10396
10417
|
content: We.value ? K(a)("退出全屏") : K(a)("全屏")
|
|
10397
10418
|
}, {
|
|
@@ -10401,7 +10422,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10401
10422
|
onClick: dt
|
|
10402
10423
|
}, null, 8, ["icon"])]),
|
|
10403
10424
|
_: 1
|
|
10404
|
-
}, 8, ["content"])
|
|
10425
|
+
}, 8, ["content"])) : U("", !0)
|
|
10405
10426
|
])]), V("div", Zv, [xn(V("div", Qv, [V("div", em, [G(ft, {
|
|
10406
10427
|
icon: "mdi:loading",
|
|
10407
10428
|
class: "loading-spin",
|
|
@@ -10452,7 +10473,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10452
10473
|
"actions-label",
|
|
10453
10474
|
"highlight-mode",
|
|
10454
10475
|
"load-children"
|
|
10455
|
-
])])]), C.value && !w.value ? (_(), O("div", nm, [G(Er, {
|
|
10476
|
+
])])]), e.showFilterButton && C.value && !w.value ? (_(), O("div", nm, [G(Er, {
|
|
10456
10477
|
ref_key: "filterPanelRef",
|
|
10457
10478
|
ref: M,
|
|
10458
10479
|
"is-pin": C.value,
|
|
@@ -10467,7 +10488,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10467
10488
|
"relation",
|
|
10468
10489
|
"search-field-list",
|
|
10469
10490
|
"columns"
|
|
10470
|
-
])])) :
|
|
10491
|
+
])])) : U("", !0)], 2)], 2);
|
|
10471
10492
|
};
|
|
10472
10493
|
}
|
|
10473
10494
|
}), om = am, gc = ue(om), im = { class: "j-button-select" }, lm = { class: "search-wraper" }, rm = { class: "options-wraper" }, sm = ["onClick"], cm = /* @__PURE__ */ re({
|
|
@@ -10490,7 +10511,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10490
10511
|
});
|
|
10491
10512
|
};
|
|
10492
10513
|
return (c, u) => {
|
|
10493
|
-
const d =
|
|
10514
|
+
const d = I("j-button"), f = I("j-icon"), h = I("el-input"), p = I("el-popover");
|
|
10494
10515
|
return _(), H(p, {
|
|
10495
10516
|
teleported: !1,
|
|
10496
10517
|
placement: "bottom-start",
|
|
@@ -10522,13 +10543,13 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10522
10543
|
_: 1
|
|
10523
10544
|
}, 8, ["modelValue", "placeholder"])]), V("div", rm, [(_(!0), O(we, null, Re(l.value, (g) => (_(), O("div", {
|
|
10524
10545
|
key: g.value,
|
|
10525
|
-
class:
|
|
10546
|
+
class: Be(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
10526
10547
|
onClick: Rt((v) => s(g), ["stop"])
|
|
10527
10548
|
}, [g.icon ? (_(), H(f, {
|
|
10528
10549
|
key: 0,
|
|
10529
10550
|
class: "j-button-select-icon",
|
|
10530
10551
|
icon: g.icon
|
|
10531
|
-
}, null, 8, ["icon"])) :
|
|
10552
|
+
}, null, 8, ["icon"])) : U("", !0), V("div", null, me(K(o)(g.label)), 1)], 10, sm))), 128))])])]),
|
|
10532
10553
|
_: 1
|
|
10533
10554
|
}, 8, ["width"]);
|
|
10534
10555
|
};
|
|
@@ -10717,9 +10738,9 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10717
10738
|
setCheck: y,
|
|
10718
10739
|
getCheck: x
|
|
10719
10740
|
}), (D, M) => {
|
|
10720
|
-
const C =
|
|
10741
|
+
const C = I("j-icon"), L = I("j-button"), W = I("el-dropdown-item"), ie = I("el-dropdown-menu"), de = I("el-dropdown"), xe = I("el-tree"), ze = I("el-empty"), st = vi("loading");
|
|
10721
10742
|
return xn((_(), O("div", {
|
|
10722
|
-
class:
|
|
10743
|
+
class: Be([
|
|
10723
10744
|
"j-block",
|
|
10724
10745
|
"j-tree",
|
|
10725
10746
|
{ "j-tree-menu": e.theme === "menu" }
|
|
@@ -10748,21 +10769,21 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10748
10769
|
onCheck: m,
|
|
10749
10770
|
onNodeDrop: E
|
|
10750
10771
|
}, {
|
|
10751
|
-
default: N(({ node: ae }) => [V("div", { class:
|
|
10772
|
+
default: N(({ node: ae }) => [V("div", { class: Be(["j-tree-item-wraper", { "is-focus": R.value === ae.data.value }]) }, [
|
|
10752
10773
|
ae.data.openIcon ? (_(), H(C, {
|
|
10753
10774
|
key: 0,
|
|
10754
10775
|
class: "j-tree-item-open-icon",
|
|
10755
10776
|
size: 18,
|
|
10756
10777
|
icon: ae.data.openIcon,
|
|
10757
10778
|
color: ae.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
10758
|
-
}, null, 8, ["icon", "color"])) :
|
|
10779
|
+
}, null, 8, ["icon", "color"])) : U("", !0),
|
|
10759
10780
|
ae.data[e.iconKey] || e.defaultIcon ? (_(), H(C, {
|
|
10760
10781
|
key: 1,
|
|
10761
10782
|
class: "j-tree-item-default-icon",
|
|
10762
10783
|
size: 18,
|
|
10763
10784
|
icon: ae.data[e.iconKey] || e.defaultIcon || "",
|
|
10764
10785
|
color: ae.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
10765
|
-
}, null, 8, ["icon", "color"])) :
|
|
10786
|
+
}, null, 8, ["icon", "color"])) : U("", !0),
|
|
10766
10787
|
V("div", fm, me(ae.label), 1),
|
|
10767
10788
|
S(ae.data).length ? (_(), O("div", hm, [(_(!0), O(we, null, Re(S(ae.data), (Ne, Je) => (_(), H(de, {
|
|
10768
10789
|
key: Je,
|
|
@@ -10782,7 +10803,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10782
10803
|
}, [Ce.icon || e.buttonDefaultIcon ? (_(), H(C, {
|
|
10783
10804
|
key: 0,
|
|
10784
10805
|
icon: Ce.icon || e.buttonDefaultIcon
|
|
10785
|
-
}, null, 8, ["icon"])) :
|
|
10806
|
+
}, null, 8, ["icon"])) : U("", !0), V("div", null, me(K(l)(Ce.label)), 1)], 4)]),
|
|
10786
10807
|
_: 2
|
|
10787
10808
|
}, 1032, [
|
|
10788
10809
|
"disabled",
|
|
@@ -10796,7 +10817,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10796
10817
|
type: "text"
|
|
10797
10818
|
}, null, 8, ["icon"])]),
|
|
10798
10819
|
_: 2
|
|
10799
|
-
}, 1032, ["onVisibleChange"]))), 128))])) :
|
|
10820
|
+
}, 1032, ["onVisibleChange"]))), 128))])) : U("", !0)
|
|
10800
10821
|
], 2)]),
|
|
10801
10822
|
_: 1
|
|
10802
10823
|
}, 8, [
|
|
@@ -10877,7 +10898,7 @@ var Wh = { class: "j-table-footer" }, Uh = {
|
|
|
10877
10898
|
r("change", u);
|
|
10878
10899
|
};
|
|
10879
10900
|
return (u, d) => {
|
|
10880
|
-
const f =
|
|
10901
|
+
const f = I("el-tree-select");
|
|
10881
10902
|
return _(), H(f, {
|
|
10882
10903
|
modelValue: s.value,
|
|
10883
10904
|
"onUpdate:modelValue": d[0] || (d[0] = (h) => s.value = h),
|
|
@@ -10984,28 +11005,28 @@ var km = /* @__PURE__ */ re({
|
|
|
10984
11005
|
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } = Tt();
|
|
10985
11006
|
let p;
|
|
10986
11007
|
i && (p = i());
|
|
10987
|
-
const g = (
|
|
10988
|
-
d && d(
|
|
11008
|
+
const g = (Y) => {
|
|
11009
|
+
d && d(Y);
|
|
10989
11010
|
}, v = P(!1), b = j(() => a.config?.gutter || 16), w = j(() => a.config?.span || 24), y = j(() => a.config?.labelWidth), x = j(() => a.config?.labelPosition || "right"), k = j(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), m = Ra({}), E = P({}), S = [], T = {}, A = P({});
|
|
10990
11011
|
let R = {}, F = {}, $ = [], D = {};
|
|
10991
|
-
const M = (
|
|
10992
|
-
v.value && W && (
|
|
10993
|
-
}, C = (
|
|
11012
|
+
const M = (Y) => {
|
|
11013
|
+
v.value && W && (Y.getTableData || mr(W, Y.id, Y.formData[Y.id])), o("change", Y);
|
|
11014
|
+
}, C = (Y) => Ml(T[Y]?.type || "") && !T[Y]?.config?.notInput || T[Y]?.config?.isInput, L = (Y) => [
|
|
10994
11015
|
"j-table",
|
|
10995
11016
|
"j-input-rows",
|
|
10996
11017
|
"j-input-cards"
|
|
10997
|
-
].includes(T[
|
|
11018
|
+
].includes(T[Y]?.type || "");
|
|
10998
11019
|
let W;
|
|
10999
|
-
const ie = (
|
|
11000
|
-
Object.keys(
|
|
11001
|
-
const ee =
|
|
11020
|
+
const ie = (Y, le) => {
|
|
11021
|
+
Object.keys(Y).forEach((X) => {
|
|
11022
|
+
const ee = Y[X];
|
|
11002
11023
|
le && (X = le + "." + X), ee != null && typeof ee == "object" && !tl(ee) && ie(ee, X), m[X] = ee;
|
|
11003
11024
|
});
|
|
11004
|
-
}, de = (
|
|
11005
|
-
let X =
|
|
11006
|
-
return X || (
|
|
11007
|
-
}, xe = (
|
|
11008
|
-
|
|
11025
|
+
}, de = (Y, le) => {
|
|
11026
|
+
let X = Y.id;
|
|
11027
|
+
return X || (Y.config?.table && Y.config?.field ? X = `${Y.config.table}.${Y.config.field}` : Y.config?.table ? X = Y.config?.table : Y.config?.field && (X = Y.config?.field), le && L(le) && (X = `${le}.${X}`)), X || Tl("j");
|
|
11028
|
+
}, xe = (Y, le, X, ee = "") => {
|
|
11029
|
+
Y.forEach((oe) => {
|
|
11009
11030
|
oe.id = de(oe, ee);
|
|
11010
11031
|
const pe = {
|
|
11011
11032
|
id: oe.id,
|
|
@@ -11036,32 +11057,32 @@ var km = /* @__PURE__ */ re({
|
|
|
11036
11057
|
}
|
|
11037
11058
|
_e && _e.length > 0 && xe(_e, pe.children, X, pe.id);
|
|
11038
11059
|
});
|
|
11039
|
-
}, ze = async (
|
|
11060
|
+
}, ze = async (Y, le) => {
|
|
11040
11061
|
v.value = !1;
|
|
11041
11062
|
const X = !!le;
|
|
11042
|
-
S.splice(0, S.length), R = {}, F = {}, $ = [], W = le, oo(m), oo(T), A.value = {}, X && ie(le, ""), xe(
|
|
11063
|
+
S.splice(0, S.length), R = {}, F = {}, $ = [], W = le, oo(m), oo(T), A.value = {}, X && ie(le, ""), xe(Y, S, X), D = Cn(m), St(() => {
|
|
11043
11064
|
v.value = !0, St(() => {
|
|
11044
11065
|
mn(a.config?.codeInit, {});
|
|
11045
11066
|
});
|
|
11046
11067
|
});
|
|
11047
|
-
}, st = (
|
|
11068
|
+
}, st = (Y, le, X) => {
|
|
11048
11069
|
const ee = [];
|
|
11049
11070
|
return le.forEach((oe) => {
|
|
11050
11071
|
const pe = {};
|
|
11051
11072
|
Object.keys(oe).forEach((_e) => {
|
|
11052
|
-
if (!X || X(_e, oe[_e],
|
|
11073
|
+
if (!X || X(_e, oe[_e], Y)) {
|
|
11053
11074
|
const Ze = Ae(_e);
|
|
11054
11075
|
if (Ze?.type === "j-table") pe[Ze?.id || ""] = st(_e, oe[_e], X);
|
|
11055
11076
|
else {
|
|
11056
|
-
let kt = R[`${
|
|
11077
|
+
let kt = R[`${Y}_${_e}`.toLowerCase()] || _e;
|
|
11057
11078
|
kt = kt.indexOf(".") !== -1 ? kt.split(".")[1] : kt, pe[kt] = oe[_e];
|
|
11058
11079
|
}
|
|
11059
11080
|
}
|
|
11060
11081
|
}), ee.push(pe);
|
|
11061
11082
|
}), ee;
|
|
11062
|
-
}, ae = (
|
|
11063
|
-
Object.keys(
|
|
11064
|
-
let ee =
|
|
11083
|
+
}, ae = (Y, le) => {
|
|
11084
|
+
Object.keys(Y || {}).forEach((X) => {
|
|
11085
|
+
let ee = Y[X];
|
|
11065
11086
|
const oe = Ae(X);
|
|
11066
11087
|
if (oe === void 0)
|
|
11067
11088
|
ee && (tl(ee) && (ee = ee[0] || {}), typeof ee == "object" ? Object.keys(ee).forEach((pe) => {
|
|
@@ -11081,26 +11102,26 @@ var km = /* @__PURE__ */ re({
|
|
|
11081
11102
|
const ee = Ae(X);
|
|
11082
11103
|
(ee === void 0 || !["tabs", "collapse"].includes(ee.type || "")) && mr(W, X, m[X]);
|
|
11083
11104
|
});
|
|
11084
|
-
}, Ne = (
|
|
11105
|
+
}, Ne = (Y, le = !1) => {
|
|
11085
11106
|
const X = {};
|
|
11086
|
-
return Object.keys(
|
|
11107
|
+
return Object.keys(Y).forEach((ee) => {
|
|
11087
11108
|
if (ee === "parentRow") return;
|
|
11088
11109
|
const oe = T[ee];
|
|
11089
11110
|
if (oe) {
|
|
11090
11111
|
const pe = oe.config?.table, _e = oe.config?.field;
|
|
11091
|
-
if (le) _e ? X[_e] =
|
|
11112
|
+
if (le) _e ? X[_e] = Y[ee] : X[ee] = Y[ee];
|
|
11092
11113
|
else if (L(ee)) {
|
|
11093
11114
|
const Ze = [];
|
|
11094
|
-
|
|
11115
|
+
Y[ee].forEach((kt) => {
|
|
11095
11116
|
Ze.push(Ne(kt, !0));
|
|
11096
11117
|
}), X[pe || ee] = Ze;
|
|
11097
|
-
} else pe && _e ? (X[pe] = X[pe] || {}, X[pe][_e] =
|
|
11098
|
-
} else le ? ee !== "_X_ROW_KEY" && ee !== "_isHover" && (X[ee] =
|
|
11118
|
+
} else pe && _e ? (X[pe] = X[pe] || {}, X[pe][_e] = Y[ee]) : _e && (X[_e] = Y[ee]);
|
|
11119
|
+
} else le ? ee !== "_X_ROW_KEY" && ee !== "_isHover" && (X[ee] = Y[ee]) : F[ee] ? (X[F[ee]] = X[F[ee]] || {}, X[F[ee]][ee.replace(`${F[ee]}_`, "")] = Y[ee]) : X[ee] = Y[ee];
|
|
11099
11120
|
}), X;
|
|
11100
|
-
}, Je = (
|
|
11101
|
-
let oe = T[
|
|
11121
|
+
}, Je = (Y = !0) => Y ? Ne(m) : m, Ce = (Y, le, X, ee) => {
|
|
11122
|
+
let oe = T[Y];
|
|
11102
11123
|
if (oe == null) {
|
|
11103
|
-
const _e =
|
|
11124
|
+
const _e = Y.split(".");
|
|
11104
11125
|
oe = T[_e[_e.length - 1]] || {};
|
|
11105
11126
|
}
|
|
11106
11127
|
if (!oe) return {};
|
|
@@ -11116,8 +11137,8 @@ var km = /* @__PURE__ */ re({
|
|
|
11116
11137
|
pRowData: ee
|
|
11117
11138
|
});
|
|
11118
11139
|
return pe._componentId = oe?.id, pe;
|
|
11119
|
-
}, Xe = (
|
|
11120
|
-
const oe = Ce(
|
|
11140
|
+
}, Xe = (Y, le, X, ee) => {
|
|
11141
|
+
const oe = Ce(Y, le, X, ee);
|
|
11121
11142
|
if (oe.isNotRule !== !0 && oe.display !== !1) {
|
|
11122
11143
|
const pe = oe.rule || [], _e = pe.find((Ze) => Ze.type === "only");
|
|
11123
11144
|
return _e && (_e.validator = async (Ze, kt) => {
|
|
@@ -11146,24 +11167,24 @@ var km = /* @__PURE__ */ re({
|
|
|
11146
11167
|
};
|
|
11147
11168
|
}, { validateForm: lt } = Em(m, Xe), te = async () => {
|
|
11148
11169
|
E.value = {};
|
|
11149
|
-
const
|
|
11150
|
-
return Object.keys(
|
|
11170
|
+
const Y = await lt();
|
|
11171
|
+
return Object.keys(Y).length > 0 ? (E.value = Y, g(`${h(T[Object.keys(Y)[0]]?.config?.label)}:${h(Y[Object.keys(Y)[0]].msg)}`), !1) : !0;
|
|
11151
11172
|
}, he = () => {
|
|
11152
|
-
E.value = {}, oo(m), Object.keys(D || {}).forEach((
|
|
11153
|
-
m[
|
|
11173
|
+
E.value = {}, oo(m), Object.keys(D || {}).forEach((Y) => {
|
|
11174
|
+
m[Y] = D[Y];
|
|
11154
11175
|
});
|
|
11155
|
-
}, Ae = (
|
|
11156
|
-
let le = T[
|
|
11157
|
-
return le === void 0 && R[
|
|
11158
|
-
}, We = ({ id:
|
|
11159
|
-
if (ee === "add") m[
|
|
11160
|
-
else if (ee === "delete") m[
|
|
11176
|
+
}, Ae = (Y) => {
|
|
11177
|
+
let le = T[Y];
|
|
11178
|
+
return le === void 0 && R[Y.toLowerCase()] && (le = T[R[Y.toLowerCase()]]), le;
|
|
11179
|
+
}, We = ({ id: Y, i: le, value: X, type: ee }) => {
|
|
11180
|
+
if (ee === "add") m[Y].push(X);
|
|
11181
|
+
else if (ee === "delete") m[Y].splice(le, 1);
|
|
11161
11182
|
else {
|
|
11162
|
-
const oe = Ae(
|
|
11163
|
-
oe && (oe.config.parentTableId ? m[oe.config.parentTableId][le][
|
|
11183
|
+
const oe = Ae(Y);
|
|
11184
|
+
oe && (oe.config.parentTableId ? m[oe.config.parentTableId][le][Y] = X : m[Y] = X);
|
|
11164
11185
|
}
|
|
11165
|
-
}, dt = ({ id:
|
|
11166
|
-
const X = Ae(
|
|
11186
|
+
}, dt = ({ id: Y, i: le }) => {
|
|
11187
|
+
const X = Ae(Y);
|
|
11167
11188
|
if (X) {
|
|
11168
11189
|
if (X.config.parentTableId) {
|
|
11169
11190
|
const ee = m[X.config.parentTableId], oe = X.id ? X.id.replace(`${X.config.parentTableId}.`, "") : "";
|
|
@@ -11181,12 +11202,12 @@ var km = /* @__PURE__ */ re({
|
|
|
11181
11202
|
}
|
|
11182
11203
|
return m[X.id || ""];
|
|
11183
11204
|
}
|
|
11184
|
-
if (m[
|
|
11185
|
-
}, Ht = async ({ id:
|
|
11205
|
+
if (m[Y]) return m[Y];
|
|
11206
|
+
}, Ht = async ({ id: Y, i: le }) => {
|
|
11186
11207
|
const X = dt({
|
|
11187
|
-
id:
|
|
11208
|
+
id: Y,
|
|
11188
11209
|
i: le
|
|
11189
|
-
}), ee = Ae(
|
|
11210
|
+
}), ee = Ae(Y);
|
|
11190
11211
|
if (ee && p?.getLabel) if (le !== void 0) {
|
|
11191
11212
|
const oe = X[le], pe = m[ee.config.parentTableId || ""][le], _e = Ca({
|
|
11192
11213
|
config: ee.config,
|
|
@@ -11215,13 +11236,13 @@ var km = /* @__PURE__ */ re({
|
|
|
11215
11236
|
});
|
|
11216
11237
|
}
|
|
11217
11238
|
return X;
|
|
11218
|
-
}, qe = async (
|
|
11239
|
+
}, qe = async (Y, le) => p?.loadViewDataList ? await p?.loadViewDataList(Y, le, !1) : [], vn = (Y) => (Y.set = We, Y.get = dt, Y.setFormData = ae, Y.getFormData = Je, Y.getLabel = Ht, Y.getViewData = qe, Y.getDateNow = (le) => oc(/* @__PURE__ */ new Date(), le || "YYYY-MM-DD HH:mm:ss"), Y.httpGet = r || (() => {
|
|
11219
11240
|
console.log("当前状态不支持");
|
|
11220
|
-
}),
|
|
11241
|
+
}), Y.httpPost = s || (() => {
|
|
11221
11242
|
console.log("当前状态不支持");
|
|
11222
|
-
}),
|
|
11243
|
+
}), Y.loading = (le) => {
|
|
11223
11244
|
qa(le);
|
|
11224
|
-
},
|
|
11245
|
+
}, Y.showMsg = ({ text: le, type: X }) => {
|
|
11225
11246
|
switch (X) {
|
|
11226
11247
|
case "success":
|
|
11227
11248
|
c && c(le);
|
|
@@ -11240,15 +11261,15 @@ var km = /* @__PURE__ */ re({
|
|
|
11240
11261
|
break;
|
|
11241
11262
|
}
|
|
11242
11263
|
console.log("showMsg", le, X);
|
|
11243
|
-
},
|
|
11244
|
-
if (
|
|
11245
|
-
|
|
11246
|
-
const { res: X, fn: ee } = Qs(
|
|
11264
|
+
}, Y), mn = async (Y, le) => {
|
|
11265
|
+
if (Y && Y.trim()) {
|
|
11266
|
+
Y = `async (jcode) => {${Y}}`;
|
|
11267
|
+
const { res: X, fn: ee } = Qs(Y);
|
|
11247
11268
|
X && await ee(vn(le));
|
|
11248
11269
|
}
|
|
11249
|
-
}, Qt = (
|
|
11250
|
-
A.value[
|
|
11251
|
-
...A.value[
|
|
11270
|
+
}, Qt = (Y, le) => {
|
|
11271
|
+
A.value[Y] = {
|
|
11272
|
+
...A.value[Y] || {},
|
|
11252
11273
|
...le
|
|
11253
11274
|
};
|
|
11254
11275
|
};
|
|
@@ -11273,11 +11294,11 @@ var km = /* @__PURE__ */ re({
|
|
|
11273
11294
|
setFormData: ae,
|
|
11274
11295
|
getFormData: Je,
|
|
11275
11296
|
setCompConfig: Qt
|
|
11276
|
-
}), (
|
|
11277
|
-
const X =
|
|
11297
|
+
}), (Y, le) => {
|
|
11298
|
+
const X = I("j-form-item"), ee = I("el-row"), oe = I("el-form");
|
|
11278
11299
|
return v.value ? (_(), H(oe, {
|
|
11279
11300
|
key: 0,
|
|
11280
|
-
class:
|
|
11301
|
+
class: Be([
|
|
11281
11302
|
{ "j-block": e.isAutoSize },
|
|
11282
11303
|
{ "j-form-auto": e.isAutoSize },
|
|
11283
11304
|
"j-form"
|
|
@@ -11288,11 +11309,11 @@ var km = /* @__PURE__ */ re({
|
|
|
11288
11309
|
onSubmit: le[0] || (le[0] = Rt(() => {
|
|
11289
11310
|
}, ["prevent"]))
|
|
11290
11311
|
}, {
|
|
11291
|
-
default: N(() => [k.value ? (_(), H(X,
|
|
11312
|
+
default: N(() => [k.value ? (_(), H(X, Ie({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (_(), H(ee, {
|
|
11292
11313
|
key: 1,
|
|
11293
11314
|
gutter: b.value
|
|
11294
11315
|
}, {
|
|
11295
|
-
default: N(() => [(_(), O(we, null, Re(S, (pe) => G(X,
|
|
11316
|
+
default: N(() => [(_(), O(we, null, Re(S, (pe) => G(X, Ie({
|
|
11296
11317
|
key: pe.id,
|
|
11297
11318
|
ref_for: !0
|
|
11298
11319
|
}, pe), null, 16)), 64))]),
|
|
@@ -11304,7 +11325,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11304
11325
|
"label-position",
|
|
11305
11326
|
"label-width",
|
|
11306
11327
|
"size"
|
|
11307
|
-
])) :
|
|
11328
|
+
])) : U("", !0);
|
|
11308
11329
|
};
|
|
11309
11330
|
}
|
|
11310
11331
|
}), Rm = km, Tm = ue(Rm), Mm = ue(dc), Am = { class: "j-page" }, Pm = /* @__PURE__ */ re({
|
|
@@ -11358,7 +11379,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11358
11379
|
}, h = (p, g) => {
|
|
11359
11380
|
c.off(p, g);
|
|
11360
11381
|
};
|
|
11361
|
-
return
|
|
11382
|
+
return If({ registerMethod: (p, g) => (f(p, g), () => {
|
|
11362
11383
|
h(p, g);
|
|
11363
11384
|
}) }), sc({ contextType: "page" }), t({
|
|
11364
11385
|
init: s,
|
|
@@ -11366,7 +11387,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11366
11387
|
on: f,
|
|
11367
11388
|
off: h
|
|
11368
11389
|
}), (p, g) => {
|
|
11369
|
-
const v =
|
|
11390
|
+
const v = I("j-comp");
|
|
11370
11391
|
return _(), O("div", Am, [(_(!0), O(we, null, Re(o, (b) => (_(), H(v, {
|
|
11371
11392
|
key: b.id,
|
|
11372
11393
|
id: b.id,
|
|
@@ -11394,7 +11415,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11394
11415
|
return nt(() => n.modelValue, (i) => {
|
|
11395
11416
|
i ? o.value = i : (o.value = zn(), a("update:modelValue", o.value));
|
|
11396
11417
|
}, { immediate: !0 }), (i, l) => {
|
|
11397
|
-
const r =
|
|
11418
|
+
const r = I("el-input");
|
|
11398
11419
|
return _(), H(r, {
|
|
11399
11420
|
modelValue: o.value,
|
|
11400
11421
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
|
|
@@ -11403,7 +11424,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11403
11424
|
}, null, 8, ["modelValue", "size"]);
|
|
11404
11425
|
};
|
|
11405
11426
|
}
|
|
11406
|
-
}),
|
|
11427
|
+
}), Bm = Om, Im = ue(Bm), Lm = {
|
|
11407
11428
|
key: 0,
|
|
11408
11429
|
class: "j-panel-top"
|
|
11409
11430
|
}, zm = ["title"], $m = { style: {
|
|
@@ -11443,7 +11464,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11443
11464
|
a.config?.disabled || a.click && a.click({ openLayer: t });
|
|
11444
11465
|
};
|
|
11445
11466
|
return (a, o) => {
|
|
11446
|
-
const i =
|
|
11467
|
+
const i = I("j-button"), l = I("el-tooltip"), r = I("j-buttons");
|
|
11447
11468
|
return _(), O("div", {
|
|
11448
11469
|
class: "j-block",
|
|
11449
11470
|
style: be({
|
|
@@ -11455,7 +11476,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11455
11476
|
class: "j-panel",
|
|
11456
11477
|
style: be({ "border-radius": e.noPadding ? "0px" : "4px" })
|
|
11457
11478
|
}, [
|
|
11458
|
-
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (_(), O("div", Lm, [e.notTitle ?
|
|
11479
|
+
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (_(), O("div", Lm, [e.notTitle ? U("", !0) : (_(), O("div", {
|
|
11459
11480
|
key: 0,
|
|
11460
11481
|
class: "j-panel-top-left",
|
|
11461
11482
|
title: e.title || ""
|
|
@@ -11464,18 +11485,18 @@ var km = /* @__PURE__ */ re({
|
|
|
11464
11485
|
placement: "top",
|
|
11465
11486
|
content: s.label || ""
|
|
11466
11487
|
}, {
|
|
11467
|
-
default: N(() => [G(i,
|
|
11488
|
+
default: N(() => [G(i, Ie({ ref_for: !0 }, s.config, {
|
|
11468
11489
|
onClick: (c) => n(s),
|
|
11469
11490
|
type: "text",
|
|
11470
11491
|
size: e.size
|
|
11471
11492
|
}), null, 16, ["onClick", "size"])]),
|
|
11472
11493
|
_: 2
|
|
11473
|
-
}, 1032, ["content"]))), 128))])) :
|
|
11494
|
+
}, 1032, ["content"]))), 128))])) : U("", !0)])) : U("", !0),
|
|
11474
11495
|
V("div", {
|
|
11475
11496
|
class: "j-panel-body",
|
|
11476
11497
|
style: be(e.bodyStyle)
|
|
11477
11498
|
}, [Fe(a.$slots, "default")], 4),
|
|
11478
|
-
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (_(), O("div", Fm, [G(r, { list: e.bootmBtns }, null, 8, ["list"]), G(r, { list: e.bootmRightBtns }, null, 8, ["list"])])) :
|
|
11499
|
+
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (_(), O("div", Fm, [G(r, { list: e.bootmBtns }, null, 8, ["list"]), G(r, { list: e.bootmRightBtns }, null, 8, ["list"])])) : U("", !0)
|
|
11479
11500
|
], 4)], 4);
|
|
11480
11501
|
};
|
|
11481
11502
|
}
|
|
@@ -11612,18 +11633,18 @@ var km = /* @__PURE__ */ re({
|
|
|
11612
11633
|
getTableData: () => g.value,
|
|
11613
11634
|
rowChange: y
|
|
11614
11635
|
}), (x, k) => {
|
|
11615
|
-
const m =
|
|
11636
|
+
const m = I("j-comp"), E = I("j-icon"), S = I("j-button");
|
|
11616
11637
|
return _(), O("div", Um, [V("div", {
|
|
11617
11638
|
ref_key: "inputRowsRef",
|
|
11618
11639
|
ref: h,
|
|
11619
11640
|
class: "j-input-rows-container"
|
|
11620
11641
|
}, [(_(!0), O(we, null, Re(g.value, (T, A) => (_(), O("div", {
|
|
11621
11642
|
key: T._i + A,
|
|
11622
|
-
class:
|
|
11643
|
+
class: Be([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
11623
11644
|
}, [
|
|
11624
|
-
e.showNum ? (_(), O("div", Ym, me(A + 1), 1)) :
|
|
11625
|
-
e.showChar ? (_(), O("div", Km, me(p[A % 26]), 1)) :
|
|
11626
|
-
(_(!0), O(we, null, Re(e.columns, (R) => (_(), H(m,
|
|
11645
|
+
e.showNum ? (_(), O("div", Ym, me(A + 1), 1)) : U("", !0),
|
|
11646
|
+
e.showChar ? (_(), O("div", Km, me(p[A % 26]), 1)) : U("", !0),
|
|
11647
|
+
(_(!0), O(we, null, Re(e.columns, (R) => (_(), H(m, Ie({
|
|
11627
11648
|
key: R.id,
|
|
11628
11649
|
ref_for: !0
|
|
11629
11650
|
}, R, { row: T }), null, 16, ["row"]))), 128)),
|
|
@@ -11631,13 +11652,13 @@ var km = /* @__PURE__ */ re({
|
|
|
11631
11652
|
key: 2,
|
|
11632
11653
|
class: "j-input-rows-drag",
|
|
11633
11654
|
icon: "mdi:drag"
|
|
11634
|
-
})) :
|
|
11655
|
+
})) : U("", !0),
|
|
11635
11656
|
c.value && (f.value || g.value.length > 1) && !u.value ? (_(), H(E, {
|
|
11636
11657
|
key: 3,
|
|
11637
11658
|
icon: "mdi:delete-outline",
|
|
11638
11659
|
class: "j-input-rows-delete",
|
|
11639
11660
|
onClick: (R) => w(A)
|
|
11640
|
-
}, null, 8, ["onClick"])) :
|
|
11661
|
+
}, null, 8, ["onClick"])) : U("", !0)
|
|
11641
11662
|
], 2))), 128))], 512), !u.value && l.value ? (_(), O("div", {
|
|
11642
11663
|
key: 0,
|
|
11643
11664
|
style: be({ "text-align": s.value }),
|
|
@@ -11649,7 +11670,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11649
11670
|
label: r.value,
|
|
11650
11671
|
icon: "mdi:add",
|
|
11651
11672
|
onClick: b
|
|
11652
|
-
}, null, 8, ["label"])) :
|
|
11673
|
+
}, null, 8, ["label"])) : U("", !0)], 4)) : U("", !0)]);
|
|
11653
11674
|
};
|
|
11654
11675
|
}
|
|
11655
11676
|
}), Jm = Gm, Xm = ue(Jm), qm = { class: "j-input-layer" }, Zm = /* @__PURE__ */ re({
|
|
@@ -11767,7 +11788,7 @@ var km = /* @__PURE__ */ re({
|
|
|
11767
11788
|
l.value && l.value.clearSelection && l.value.clearSelection();
|
|
11768
11789
|
};
|
|
11769
11790
|
return (p, g) => {
|
|
11770
|
-
const v =
|
|
11791
|
+
const v = I("el-input");
|
|
11771
11792
|
return _(), O("div", qm, [e.onlyButton ? (_(), H(K(nl), {
|
|
11772
11793
|
key: 1,
|
|
11773
11794
|
type: e.buttonType,
|
|
@@ -11888,8 +11909,8 @@ var km = /* @__PURE__ */ re({
|
|
|
11888
11909
|
span: i,
|
|
11889
11910
|
labelWidth: l
|
|
11890
11911
|
}), (d, f) => {
|
|
11891
|
-
const h =
|
|
11892
|
-
return _(), O("div", null, [G(h,
|
|
11912
|
+
const h = I("j-button"), p = I("j-form-item"), g = I("el-row"), v = I("el-form"), b = I("j-dialog");
|
|
11913
|
+
return _(), O("div", null, [G(h, Ie(d.$attrs, {
|
|
11893
11914
|
type: e.type,
|
|
11894
11915
|
size: e.size,
|
|
11895
11916
|
icon: e.icon,
|
|
@@ -11907,18 +11928,18 @@ var km = /* @__PURE__ */ re({
|
|
|
11907
11928
|
"has-btns": !1
|
|
11908
11929
|
}, {
|
|
11909
11930
|
default: N(() => [G(v, {
|
|
11910
|
-
class:
|
|
11931
|
+
class: Be(["j-block", "j-layer-form"]),
|
|
11911
11932
|
"label-position": r.value,
|
|
11912
11933
|
"label-width": l.value,
|
|
11913
11934
|
size: e.formConfig?.size,
|
|
11914
11935
|
onSubmit: f[0] || (f[0] = Rt(() => {
|
|
11915
11936
|
}, ["prevent"]))
|
|
11916
11937
|
}, {
|
|
11917
|
-
default: N(() => [s.value ? (_(), H(p, gi(
|
|
11938
|
+
default: N(() => [s.value ? (_(), H(p, gi(Ie({ key: 0 }, e.schema[0])), null, 16)) : (_(), H(g, {
|
|
11918
11939
|
key: 1,
|
|
11919
11940
|
gutter: o.value
|
|
11920
11941
|
}, {
|
|
11921
|
-
default: N(() => [(_(!0), O(we, null, Re(e.schema, (w) => (_(), H(p,
|
|
11942
|
+
default: N(() => [(_(!0), O(we, null, Re(e.schema, (w) => (_(), H(p, Ie({
|
|
11922
11943
|
key: w.id,
|
|
11923
11944
|
ref_for: !0
|
|
11924
11945
|
}, w), null, 16))), 128))]),
|
|
@@ -12024,8 +12045,8 @@ var km = /* @__PURE__ */ re({
|
|
|
12024
12045
|
o.value = l, i(l);
|
|
12025
12046
|
}, 100);
|
|
12026
12047
|
}), (l, r) => {
|
|
12027
|
-
const s =
|
|
12028
|
-
return _(), H(s,
|
|
12048
|
+
const s = I("el-switch");
|
|
12049
|
+
return _(), H(s, Ie(l.$attrs, {
|
|
12029
12050
|
id: e.id,
|
|
12030
12051
|
modelValue: o.value,
|
|
12031
12052
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => o.value = c),
|
|
@@ -12142,8 +12163,8 @@ var km = /* @__PURE__ */ re({
|
|
|
12142
12163
|
n("edit", c, u);
|
|
12143
12164
|
};
|
|
12144
12165
|
return (c, u) => {
|
|
12145
|
-
const d =
|
|
12146
|
-
return _(), H(d,
|
|
12166
|
+
const d = I("el-tabs");
|
|
12167
|
+
return _(), H(d, Ie(c.$attrs, {
|
|
12147
12168
|
class: { isFill: e.isFill },
|
|
12148
12169
|
"model-value": e.modelValue,
|
|
12149
12170
|
type: e.type,
|
|
@@ -12193,8 +12214,8 @@ var km = /* @__PURE__ */ re({
|
|
|
12193
12214
|
n("change", i);
|
|
12194
12215
|
};
|
|
12195
12216
|
return (i, l) => {
|
|
12196
|
-
const r =
|
|
12197
|
-
return _(), H(r,
|
|
12217
|
+
const r = I("el-collapse");
|
|
12218
|
+
return _(), H(r, Ie(i.$attrs, {
|
|
12198
12219
|
"model-value": e.modelValue,
|
|
12199
12220
|
accordion: e.accordion,
|
|
12200
12221
|
onChange: o,
|
|
@@ -12399,7 +12420,7 @@ var km = /* @__PURE__ */ re({
|
|
|
12399
12420
|
icon: "mdi:loading",
|
|
12400
12421
|
class: "is-loading",
|
|
12401
12422
|
size: 30
|
|
12402
|
-
})])) :
|
|
12423
|
+
})])) : U("", !0), V("div", {
|
|
12403
12424
|
ref_key: "mapRef",
|
|
12404
12425
|
ref: l,
|
|
12405
12426
|
class: "j-map-container"
|
|
@@ -12603,11 +12624,11 @@ function wc(e, t, n) {
|
|
|
12603
12624
|
var F = i[A] = function($) {
|
|
12604
12625
|
o(A, $);
|
|
12605
12626
|
};
|
|
12606
|
-
R && (c[A] = R), F.$delegate =
|
|
12627
|
+
R && (c[A] = R), F.$delegate = Bn.bind(S, d, T, F);
|
|
12607
12628
|
}
|
|
12608
12629
|
function h(S, T, A) {
|
|
12609
12630
|
var R = l(A);
|
|
12610
|
-
R &&
|
|
12631
|
+
R && Bn.unbind(S, T, R.$delegate);
|
|
12611
12632
|
}
|
|
12612
12633
|
function p(S) {
|
|
12613
12634
|
ne(s, function(T, A) {
|
|
@@ -12975,7 +12996,7 @@ var Hy = new wi("ps"), Oy = [
|
|
|
12975
12996
|
"marker-start",
|
|
12976
12997
|
"marker-mid",
|
|
12977
12998
|
"marker-end"
|
|
12978
|
-
],
|
|
12999
|
+
], By = [
|
|
12979
13000
|
"circle",
|
|
12980
13001
|
"ellipse",
|
|
12981
13002
|
"line",
|
|
@@ -13024,7 +13045,7 @@ Fn.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
|
|
|
13024
13045
|
a._cloneMarkers(o, t, n);
|
|
13025
13046
|
}), $y(e) && Oy.forEach(function(o) {
|
|
13026
13047
|
if (ye(e, o)) {
|
|
13027
|
-
var i =
|
|
13048
|
+
var i = Iy(e, o, a._canvas.getContainer());
|
|
13028
13049
|
i && a._cloneMarker(n, e, i, o, t);
|
|
13029
13050
|
}
|
|
13030
13051
|
});
|
|
@@ -13041,7 +13062,7 @@ Fn.prototype._cloneMarker = function(e, t, n, a, o = "djs-dragger") {
|
|
|
13041
13062
|
var s = $t(":scope > defs", e);
|
|
13042
13063
|
s || (s = Me("defs"), Le(e, s)), Le(s, r), ye(t, a, zy(r.id));
|
|
13043
13064
|
};
|
|
13044
|
-
function
|
|
13065
|
+
function Iy(e, t, n) {
|
|
13045
13066
|
return $t("marker#" + Ly(ye(e, t)), n || document);
|
|
13046
13067
|
}
|
|
13047
13068
|
function Ly(e) {
|
|
@@ -13051,7 +13072,7 @@ function zy(e) {
|
|
|
13051
13072
|
return "url(#" + e + ")";
|
|
13052
13073
|
}
|
|
13053
13074
|
function $y(e) {
|
|
13054
|
-
return
|
|
13075
|
+
return By.indexOf(e.nodeName) !== -1;
|
|
13055
13076
|
}
|
|
13056
13077
|
var Hl = {
|
|
13057
13078
|
__init__: ["previewSupport"],
|
|
@@ -13087,15 +13108,15 @@ function Or(e, t, n) {
|
|
|
13087
13108
|
var a = !n || e.indexOf(t) === -1;
|
|
13088
13109
|
return a && e.push(t), a;
|
|
13089
13110
|
}
|
|
13090
|
-
function
|
|
13111
|
+
function Bl(e, t, n) {
|
|
13091
13112
|
n = n || 0, tt(e) || (e = [e]), ne(e, function(a, o) {
|
|
13092
13113
|
var i = t(a, o, n);
|
|
13093
|
-
tt(i) && i.length &&
|
|
13114
|
+
tt(i) && i.length && Bl(i, t, n + 1);
|
|
13094
13115
|
});
|
|
13095
13116
|
}
|
|
13096
13117
|
function Fy(e, t, n) {
|
|
13097
13118
|
var a = [], o = [];
|
|
13098
|
-
return
|
|
13119
|
+
return Bl(e, function(i, l, r) {
|
|
13099
13120
|
Or(a, i, t);
|
|
13100
13121
|
var s = i.children;
|
|
13101
13122
|
if ((n === -1 || r < n) && s && Or(o, s, t))
|
|
@@ -13118,7 +13139,7 @@ function Ny(e, t, n) {
|
|
|
13118
13139
|
else
|
|
13119
13140
|
return a[u.id] = u, ne(u.incoming, s), ne(u.outgoing, s), u.children;
|
|
13120
13141
|
}
|
|
13121
|
-
return
|
|
13142
|
+
return Bl(e, c), {
|
|
13122
13143
|
allShapes: a,
|
|
13123
13144
|
allConnections: o,
|
|
13124
13145
|
topLevel: r,
|
|
@@ -13163,7 +13184,7 @@ function Nt(e) {
|
|
|
13163
13184
|
function Aa(e) {
|
|
13164
13185
|
return qt(e) && Xs(e, "labelTarget");
|
|
13165
13186
|
}
|
|
13166
|
-
var Ky = "drop-ok",
|
|
13187
|
+
var Ky = "drop-ok", Br = "drop-not-ok", Ir = "attach-ok", Lr = "new-parent", zr = "create", Gy = 2e3;
|
|
13167
13188
|
function Mc(e, t, n, a, o) {
|
|
13168
13189
|
function i(s, c, u, d, f) {
|
|
13169
13190
|
if (!c) return !1;
|
|
@@ -13203,9 +13224,9 @@ function Mc(e, t, n, a, o) {
|
|
|
13203
13224
|
}
|
|
13204
13225
|
function l(s, c) {
|
|
13205
13226
|
[
|
|
13206
|
-
Br,
|
|
13207
|
-
Ky,
|
|
13208
13227
|
Ir,
|
|
13228
|
+
Ky,
|
|
13229
|
+
Br,
|
|
13209
13230
|
Lr
|
|
13210
13231
|
].forEach(function(u) {
|
|
13211
13232
|
u === c ? e.addMarker(s, u) : e.removeMarker(s, u);
|
|
@@ -13222,7 +13243,7 @@ function Mc(e, t, n, a, o) {
|
|
|
13222
13243
|
x: s.x,
|
|
13223
13244
|
y: s.y
|
|
13224
13245
|
}, g = c.canExecute = d && i(u, d, p, f, h);
|
|
13225
|
-
d && g !== null && (c.target = d, g && g.attach ? l(d,
|
|
13246
|
+
d && g !== null && (c.target = d, g && g.attach ? l(d, Ir) : l(d, g ? Lr : Br));
|
|
13226
13247
|
}), n.on([
|
|
13227
13248
|
"create.end",
|
|
13228
13249
|
"create.out",
|
|
@@ -13374,13 +13395,13 @@ var Pc = {
|
|
|
13374
13395
|
function bo(e, t) {
|
|
13375
13396
|
return !e || !t ? -1 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
13376
13397
|
}
|
|
13377
|
-
function
|
|
13398
|
+
function Il(e, t, n, a) {
|
|
13378
13399
|
if (typeof a > "u" && (a = 5), !e || !t || !n) return !1;
|
|
13379
13400
|
var o = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), i = bo(e, t);
|
|
13380
13401
|
return Math.abs(o / i) <= a;
|
|
13381
13402
|
}
|
|
13382
13403
|
var Zy = 2;
|
|
13383
|
-
function
|
|
13404
|
+
function In(e, t) {
|
|
13384
13405
|
var n = Array.from(arguments).flat();
|
|
13385
13406
|
for (const [a, o] of Object.entries({
|
|
13386
13407
|
x: "v",
|
|
@@ -13916,13 +13937,13 @@ function bb(e, t) {
|
|
|
13916
13937
|
function wb(e) {
|
|
13917
13938
|
e = e.slice();
|
|
13918
13939
|
for (var t = 0, n, a, o; e[t]; )
|
|
13919
|
-
n = e[t], a = e[t - 1], o = e[t + 1], bo(n, o) === 0 ||
|
|
13940
|
+
n = e[t], a = e[t - 1], o = e[t + 1], bo(n, o) === 0 || Il(a, o, n) ? e.splice(t, 1) : t++;
|
|
13920
13941
|
return e;
|
|
13921
13942
|
}
|
|
13922
13943
|
function xb(e, t) {
|
|
13923
13944
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
13924
13945
|
}
|
|
13925
|
-
function
|
|
13946
|
+
function Bc(e, t, n, a) {
|
|
13926
13947
|
function o(l, r) {
|
|
13927
13948
|
return a.allowed("connection.create", {
|
|
13928
13949
|
source: l,
|
|
@@ -13968,7 +13989,7 @@ function Ic(e, t, n, a) {
|
|
|
13968
13989
|
});
|
|
13969
13990
|
};
|
|
13970
13991
|
}
|
|
13971
|
-
|
|
13992
|
+
Bc.$inject = [
|
|
13972
13993
|
"eventBus",
|
|
13973
13994
|
"dragging",
|
|
13974
13995
|
"modeling",
|
|
@@ -13979,7 +14000,7 @@ function dl(e) {
|
|
|
13979
14000
|
return t && n && t === n && n !== a;
|
|
13980
14001
|
}
|
|
13981
14002
|
var _b = 1100, Cb = 900, Zr = "connect-ok", Qr = "connect-not-ok";
|
|
13982
|
-
function
|
|
14003
|
+
function Ic(e, t, n) {
|
|
13983
14004
|
var a = e.get("connectionPreview", !1);
|
|
13984
14005
|
a && t.on("connect.move", function(o) {
|
|
13985
14006
|
var i = o.context, l = i.canExecute, r = i.hover, s = i.source, c = i.start, u = i.startPosition, d = i.target, f = i.connectionStart || u, h = i.connectionEnd || {
|
|
@@ -14002,7 +14023,7 @@ function Bc(e, t, n) {
|
|
|
14002
14023
|
a.cleanUp(o.context);
|
|
14003
14024
|
});
|
|
14004
14025
|
}
|
|
14005
|
-
|
|
14026
|
+
Ic.$inject = [
|
|
14006
14027
|
"injector",
|
|
14007
14028
|
"eventBus",
|
|
14008
14029
|
"canvas"
|
|
@@ -14014,8 +14035,8 @@ var zl = {
|
|
|
14014
14035
|
ca
|
|
14015
14036
|
],
|
|
14016
14037
|
__init__: ["connectPreview"],
|
|
14017
|
-
connect: ["type",
|
|
14018
|
-
connectPreview: ["type",
|
|
14038
|
+
connect: ["type", Bc],
|
|
14039
|
+
connectPreview: ["type", Ic]
|
|
14019
14040
|
}, Sb = 15;
|
|
14020
14041
|
function Lc(e, t) {
|
|
14021
14042
|
var n;
|
|
@@ -14412,7 +14433,7 @@ function Nc(e, t) {
|
|
|
14412
14433
|
}
|
|
14413
14434
|
return e;
|
|
14414
14435
|
}
|
|
14415
|
-
function
|
|
14436
|
+
function Bb(e, t, n, a) {
|
|
14416
14437
|
var o = n.inverse;
|
|
14417
14438
|
return Object.defineProperty(e, "remove", { value: function(i) {
|
|
14418
14439
|
var l = this.indexOf(i);
|
|
@@ -14428,14 +14449,14 @@ function Ib(e, t, n, a) {
|
|
|
14428
14449
|
r !== -1 && this.splice(r, 1), this.splice(l, 0, i), r === -1 && t.set(i, o, a);
|
|
14429
14450
|
} }), Object.defineProperty(e, "__refs_collection", { value: !0 }), e;
|
|
14430
14451
|
}
|
|
14431
|
-
function
|
|
14452
|
+
function Ib(e) {
|
|
14432
14453
|
return e.__refs_collection === !0;
|
|
14433
14454
|
}
|
|
14434
14455
|
function Lb(e, t) {
|
|
14435
14456
|
return Object.prototype.hasOwnProperty.call(e, t.name || t);
|
|
14436
14457
|
}
|
|
14437
14458
|
function Wc(e, t, n) {
|
|
14438
|
-
var a =
|
|
14459
|
+
var a = Bb(n[t.name] || [], e, t, n);
|
|
14439
14460
|
Object.defineProperty(n, t.name, {
|
|
14440
14461
|
enumerable: t.enumerable,
|
|
14441
14462
|
value: a
|
|
@@ -14472,7 +14493,7 @@ Zt.prototype.bind = function(e, t) {
|
|
|
14472
14493
|
};
|
|
14473
14494
|
Zt.prototype.ensureRefsCollection = function(e, t) {
|
|
14474
14495
|
var n = e[t.name];
|
|
14475
|
-
return
|
|
14496
|
+
return Ib(n) || Wc(this, t, e), n;
|
|
14476
14497
|
};
|
|
14477
14498
|
Zt.prototype.ensureBound = function(e, t) {
|
|
14478
14499
|
Lb(e, t) || this.bind(e, t);
|
|
@@ -14501,7 +14522,7 @@ var Vl = new Zt({
|
|
|
14501
14522
|
name: "incoming",
|
|
14502
14523
|
collection: !0
|
|
14503
14524
|
}, { name: "target" });
|
|
14504
|
-
function
|
|
14525
|
+
function Ba() {
|
|
14505
14526
|
Object.defineProperty(this, "businessObject", { writable: !0 }), Object.defineProperty(this, "label", {
|
|
14506
14527
|
get: function() {
|
|
14507
14528
|
return this.labels[0];
|
|
@@ -14513,11 +14534,11 @@ function Ia() {
|
|
|
14513
14534
|
}), Vl.bind(this, "parent"), Uc.bind(this, "labels"), Yc.bind(this, "outgoing"), Kc.bind(this, "incoming");
|
|
14514
14535
|
}
|
|
14515
14536
|
function wo() {
|
|
14516
|
-
|
|
14537
|
+
Ba.call(this), Vl.bind(this, "children"), ns.bind(this, "host"), ns.bind(this, "attachers");
|
|
14517
14538
|
}
|
|
14518
|
-
ua(wo,
|
|
14539
|
+
ua(wo, Ba);
|
|
14519
14540
|
function Gc() {
|
|
14520
|
-
|
|
14541
|
+
Ba.call(this), Vl.bind(this, "children");
|
|
14521
14542
|
}
|
|
14522
14543
|
ua(Gc, wo);
|
|
14523
14544
|
function Jc() {
|
|
@@ -14525,9 +14546,9 @@ function Jc() {
|
|
|
14525
14546
|
}
|
|
14526
14547
|
ua(Jc, wo);
|
|
14527
14548
|
function Xc() {
|
|
14528
|
-
|
|
14549
|
+
Ba.call(this), Yc.bind(this, "source"), Kc.bind(this, "target");
|
|
14529
14550
|
}
|
|
14530
|
-
ua(Xc,
|
|
14551
|
+
ua(Xc, Ba);
|
|
14531
14552
|
var $b = {
|
|
14532
14553
|
connection: Xc,
|
|
14533
14554
|
shape: wo,
|
|
@@ -14540,7 +14561,7 @@ function Db(e, t) {
|
|
|
14540
14561
|
return Ee(new n(), t);
|
|
14541
14562
|
}
|
|
14542
14563
|
function Fb(e) {
|
|
14543
|
-
return e instanceof
|
|
14564
|
+
return e instanceof Ba;
|
|
14544
14565
|
}
|
|
14545
14566
|
function Nn() {
|
|
14546
14567
|
this._uid = 12;
|
|
@@ -15876,7 +15897,7 @@ function nr(e, t, n, a) {
|
|
|
15876
15897
|
});
|
|
15877
15898
|
}
|
|
15878
15899
|
function i(u, d, f) {
|
|
15879
|
-
switch (
|
|
15900
|
+
switch (In(d, u)) {
|
|
15880
15901
|
case "v":
|
|
15881
15902
|
return {
|
|
15882
15903
|
x: f.x,
|
|
@@ -15900,7 +15921,7 @@ function nr(e, t, n, a) {
|
|
|
15900
15921
|
}
|
|
15901
15922
|
if (o(a)) return null;
|
|
15902
15923
|
var r = a[0], s = a.slice(), c;
|
|
15903
|
-
return s[0] = n, s[1] = i(s[1], r, n), c = l(s, e, t), c !== s && (s = nr(e, t, n, c)), s &&
|
|
15924
|
+
return s[0] = n, s[1] = i(s[1], r, n), c = l(s, e, t), c !== s && (s = nr(e, t, n, c)), s && In(s) ? null : s;
|
|
15904
15925
|
}
|
|
15905
15926
|
function ww(e, t) {
|
|
15906
15927
|
if (uu(t)) return t;
|
|
@@ -15961,7 +15982,7 @@ function hs(e, t, n, a) {
|
|
|
15961
15982
|
function du(e) {
|
|
15962
15983
|
return e.reduce(function(t, n, a) {
|
|
15963
15984
|
var o = t[t.length - 1], i = e[a + 1];
|
|
15964
|
-
return
|
|
15985
|
+
return Il(o, i, n, 0) || t.push(n), t;
|
|
15965
15986
|
}, []);
|
|
15966
15987
|
}
|
|
15967
15988
|
function ar() {
|
|
@@ -16736,13 +16757,13 @@ function Ow(e, t) {
|
|
|
16736
16757
|
};
|
|
16737
16758
|
}
|
|
16738
16759
|
}
|
|
16739
|
-
function
|
|
16760
|
+
function Bw(e, t, n) {
|
|
16740
16761
|
for (var a = e.shift(), o = a, i; ; ) {
|
|
16741
|
-
if (i = Ow(o, n), i.width = o ? i.width : 0, o === " " || o === "" || i.width < Math.round(t) || o.length < 2) return
|
|
16762
|
+
if (i = Ow(o, n), i.width = o ? i.width : 0, o === " " || o === "" || i.width < Math.round(t) || o.length < 2) return Iw(e, o, a, i);
|
|
16742
16763
|
o = zw(o, i.width, t);
|
|
16743
16764
|
}
|
|
16744
16765
|
}
|
|
16745
|
-
function
|
|
16766
|
+
function Iw(e, t, n, a) {
|
|
16746
16767
|
if (t.length < n.length) {
|
|
16747
16768
|
var o = n.slice(t.length).trim();
|
|
16748
16769
|
e.unshift(o);
|
|
@@ -16797,7 +16818,7 @@ ji.prototype.layoutText = function(e, t) {
|
|
|
16797
16818
|
for (ye(d, {
|
|
16798
16819
|
x: 0,
|
|
16799
16820
|
y: 0
|
|
16800
|
-
}), ye(d, a), Le($w(), d); s.length; ) c.push(
|
|
16821
|
+
}), ye(d, a), Le($w(), d); s.length; ) c.push(Bw(s, u, d));
|
|
16801
16822
|
o.vertical === "middle" && (i.top = i.bottom = 0);
|
|
16802
16823
|
var f = el(c, function(v, b, w) {
|
|
16803
16824
|
return v + (r || b.height);
|
|
@@ -17249,11 +17270,11 @@ var Zw = {
|
|
|
17249
17270
|
return e.y + e.height;
|
|
17250
17271
|
}
|
|
17251
17272
|
};
|
|
17252
|
-
function
|
|
17273
|
+
function Ia(e, t) {
|
|
17253
17274
|
this._modeling = e, this._rules = t;
|
|
17254
17275
|
}
|
|
17255
|
-
|
|
17256
|
-
|
|
17276
|
+
Ia.$inject = ["modeling", "rules"];
|
|
17277
|
+
Ia.prototype._getOrientationDetails = function(e) {
|
|
17257
17278
|
var t = [
|
|
17258
17279
|
"top",
|
|
17259
17280
|
"bottom",
|
|
@@ -17264,10 +17285,10 @@ Ba.prototype._getOrientationDetails = function(e) {
|
|
|
17264
17285
|
dimension: a
|
|
17265
17286
|
};
|
|
17266
17287
|
};
|
|
17267
|
-
|
|
17288
|
+
Ia.prototype._isType = function(e, t) {
|
|
17268
17289
|
return t.indexOf(e) !== -1;
|
|
17269
17290
|
};
|
|
17270
|
-
|
|
17291
|
+
Ia.prototype._alignmentPosition = function(e, t) {
|
|
17271
17292
|
var n = this._getOrientationDetails(e), a = n.axis, o = n.dimension, i = {}, l = {}, r = !1, s, c, u;
|
|
17272
17293
|
function d(f, h) {
|
|
17273
17294
|
return Math.round((f[a] + h[a] + h[o]) / 2);
|
|
@@ -17292,7 +17313,7 @@ Ba.prototype._alignmentPosition = function(e, t) {
|
|
|
17292
17313
|
}
|
|
17293
17314
|
return i;
|
|
17294
17315
|
};
|
|
17295
|
-
|
|
17316
|
+
Ia.prototype.trigger = function(e, t) {
|
|
17296
17317
|
var n = this._modeling, a, o = Xt(e, function(s) {
|
|
17297
17318
|
return !(s.waypoints || s.host || s.labelTarget);
|
|
17298
17319
|
});
|
|
@@ -17303,7 +17324,7 @@ Ba.prototype.trigger = function(e, t) {
|
|
|
17303
17324
|
};
|
|
17304
17325
|
var Qw = {
|
|
17305
17326
|
__init__: ["alignElements"],
|
|
17306
|
-
alignElements: ["type",
|
|
17327
|
+
alignElements: ["type", Ia]
|
|
17307
17328
|
}, Go = Math.round, ex = Math.max;
|
|
17308
17329
|
function tx(e, t) {
|
|
17309
17330
|
return [
|
|
@@ -17462,7 +17483,7 @@ function ux(e, t, n, a) {
|
|
|
17462
17483
|
}), it(d).add("djs-hit"), Le(o, d), Xy(o, a === "v" ? 90 : 0, 0, 0), o;
|
|
17463
17484
|
}
|
|
17464
17485
|
function _u(e, t, n) {
|
|
17465
|
-
var a = Me("g"), o = sl(t, n), i =
|
|
17486
|
+
var a = Me("g"), o = sl(t, n), i = In(t, n);
|
|
17466
17487
|
return Le(e, a), ux(a, t, n, i), it(a).add(xu), it(a).add(i === "h" ? "horizontal" : "vertical"), fn(a, o.x, o.y), a;
|
|
17467
17488
|
}
|
|
17468
17489
|
function vl(e) {
|
|
@@ -17488,14 +17509,14 @@ function or(e) {
|
|
|
17488
17509
|
function Cu(e, t, n, a, o) {
|
|
17489
17510
|
function i(y, x, k) {
|
|
17490
17511
|
var m = y.index, E = y.point, S, T, A, R, F, $;
|
|
17491
|
-
return m <= 0 || y.bendpoint ? !1 : (S = x[m - 1], T = x[m], A = sl(S, T), R =
|
|
17512
|
+
return m <= 0 || y.bendpoint ? !1 : (S = x[m - 1], T = x[m], A = sl(S, T), R = In(S, T), F = Math.abs(E.x - A.x), $ = Math.abs(E.y - A.y), R && F <= k && $ <= k);
|
|
17492
17513
|
}
|
|
17493
17514
|
function l(y, x) {
|
|
17494
17515
|
var k = y.waypoints, m, E, S, T;
|
|
17495
17516
|
return x.index <= 0 || x.bendpoint || (m = {
|
|
17496
17517
|
start: k[x.index - 1],
|
|
17497
17518
|
end: k[x.index]
|
|
17498
|
-
}, E =
|
|
17519
|
+
}, E = In(m.start, m.end), !E) ? null : (E === "h" ? S = m.end.x - m.start.x : S = m.end.y - m.start.y, T = vl(S) / 2, T);
|
|
17499
17520
|
}
|
|
17500
17521
|
function r(y, x) {
|
|
17501
17522
|
var k = x.waypoints, m = pl(t, k, y), E;
|
|
@@ -17522,7 +17543,7 @@ function Cu(e, t, n, a, o) {
|
|
|
17522
17543
|
}
|
|
17523
17544
|
function f(y, x) {
|
|
17524
17545
|
for (var k = x.waypoints, m, E, S, T = 1; T < k.length; T++)
|
|
17525
|
-
m = k[T - 1], E = k[T],
|
|
17546
|
+
m = k[T - 1], E = k[T], In(m, E) && (S = _u(y, m, E), ye(S, { "data-segment-idx": T }), s(S, "mousemove", x));
|
|
17526
17547
|
}
|
|
17527
17548
|
function h(y) {
|
|
17528
17549
|
ne(qi("." + wu, y), function(x) {
|
|
@@ -17547,7 +17568,7 @@ function Cu(e, t, n, a, o) {
|
|
|
17547
17568
|
k && fn(k, m.x, m.y);
|
|
17548
17569
|
}
|
|
17549
17570
|
function w(y, x, k) {
|
|
17550
|
-
var m = u(x.index, y), E = k[x.index - 1], S = k[x.index], T = x.point, A = sl(E, S), R =
|
|
17571
|
+
var m = u(x.index, y), E = k[x.index - 1], S = k[x.index], T = x.point, A = sl(E, S), R = In(E, S), F, $;
|
|
17551
17572
|
m && (F = px(m), $ = {
|
|
17552
17573
|
x: T.x - A.x,
|
|
17553
17574
|
y: T.y - A.y
|
|
@@ -17743,7 +17764,7 @@ function Ts(e, t, n) {
|
|
|
17743
17764
|
function ku(e, t, n, a, o, i) {
|
|
17744
17765
|
var l = e.get("connectionDocking", !1);
|
|
17745
17766
|
this.start = function(d, f, h) {
|
|
17746
|
-
var p, g = n.getGraphics(f), v = h - 1, b = h, w = f.waypoints, y = w[v], x = w[b], k = pl(n, w, d), m =
|
|
17767
|
+
var p, g = n.getGraphics(f), v = h - 1, b = h, w = f.waypoints, y = w[v], x = w[b], k = pl(n, w, d), m = In(y, x), E, S;
|
|
17747
17768
|
m && (E = m === "v" ? "x" : "y", v === 0 && (y = Ts(y, f.source, E)), b === w.length - 1 && (x = Ts(x, f.target, E)), k ? S = k.point : S = {
|
|
17748
17769
|
x: (y.x + x.x) / 2,
|
|
17749
17770
|
y: (y.y + x.y) / 2
|
|
@@ -17780,7 +17801,7 @@ function ku(e, t, n, a, o, i) {
|
|
|
17780
17801
|
var h = 0;
|
|
17781
17802
|
return {
|
|
17782
17803
|
waypoints: d.filter(function(p, g) {
|
|
17783
|
-
return
|
|
17804
|
+
return Il(d[g - 1], d[g + 1], p) ? (h = g <= f ? h - 1 : h, !1) : !0;
|
|
17784
17805
|
}),
|
|
17785
17806
|
segmentOffset: h
|
|
17786
17807
|
};
|
|
@@ -18255,7 +18276,7 @@ function Hx() {
|
|
|
18255
18276
|
e.resolve = t, e.reject = n;
|
|
18256
18277
|
}), e;
|
|
18257
18278
|
}
|
|
18258
|
-
var Ox = { scheduler: ["type", La] },
|
|
18279
|
+
var Ox = { scheduler: ["type", La] }, Bx = "djs-element-hidden", Xo = ".entry", Ix = 1e3, Ps = 8, Lx = 300;
|
|
18259
18280
|
function _t(e, t, n, a) {
|
|
18260
18281
|
this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
|
|
18261
18282
|
}
|
|
@@ -18298,7 +18319,7 @@ _t.prototype._createContainer = function() {
|
|
|
18298
18319
|
return this._canvas.getContainer().appendChild(e), e;
|
|
18299
18320
|
};
|
|
18300
18321
|
_t.prototype.registerProvider = function(e, t) {
|
|
18301
|
-
t || (t = e, e =
|
|
18322
|
+
t || (t = e, e = Ix), this._eventBus.on("contextPad.getProviders", e, function(n) {
|
|
18302
18323
|
n.providers.push(t);
|
|
18303
18324
|
});
|
|
18304
18325
|
};
|
|
@@ -18367,13 +18388,13 @@ _t.prototype._updateAndOpen = function(e) {
|
|
|
18367
18388
|
};
|
|
18368
18389
|
_t.prototype._createHtml = function(e) {
|
|
18369
18390
|
var t = this, n = Kt('<div class="djs-context-pad"></div>');
|
|
18370
|
-
return
|
|
18391
|
+
return Bn.bind(n, Xo, "click", function(a) {
|
|
18371
18392
|
t.trigger("click", a);
|
|
18372
|
-
}),
|
|
18393
|
+
}), Bn.bind(n, Xo, "dragstart", function(a) {
|
|
18373
18394
|
t.trigger("dragstart", a);
|
|
18374
|
-
}),
|
|
18395
|
+
}), Bn.bind(n, Xo, "mouseover", function(a) {
|
|
18375
18396
|
t.trigger("mouseover", a);
|
|
18376
|
-
}),
|
|
18397
|
+
}), Bn.bind(n, Xo, "mouseout", function(a) {
|
|
18377
18398
|
t.trigger("mouseout", a);
|
|
18378
18399
|
}), Qe.bind(n, "mousedown", function(a) {
|
|
18379
18400
|
a.stopPropagation();
|
|
@@ -18443,7 +18464,7 @@ _t.prototype._updateVisibility = function() {
|
|
|
18443
18464
|
if (this.isOpen()) {
|
|
18444
18465
|
var t = this, n = this._current.target;
|
|
18445
18466
|
(tt(n) ? n : [n]).some(function(a) {
|
|
18446
|
-
return t._canvas.hasMarker(a,
|
|
18467
|
+
return t._canvas.hasMarker(a, Bx);
|
|
18447
18468
|
}) ? t.hide() : t.show();
|
|
18448
18469
|
}
|
|
18449
18470
|
};
|
|
@@ -19003,8 +19024,8 @@ function t0(e) {
|
|
|
19003
19024
|
return !0;
|
|
19004
19025
|
});
|
|
19005
19026
|
}
|
|
19006
|
-
var
|
|
19007
|
-
function
|
|
19027
|
+
var Bs = 499, Gi = "djs-dragging", Is = "drop-ok", Ls = "drop-not-ok", zs = "new-parent", $s = "attach-ok";
|
|
19028
|
+
function Bu(e, t, n, a) {
|
|
19008
19029
|
function o(s) {
|
|
19009
19030
|
return n0(i(s));
|
|
19010
19031
|
}
|
|
@@ -19015,7 +19036,7 @@ function Iu(e, t, n, a) {
|
|
|
19015
19036
|
function l(s, c) {
|
|
19016
19037
|
[
|
|
19017
19038
|
$s,
|
|
19018
|
-
|
|
19039
|
+
Is,
|
|
19019
19040
|
Ls,
|
|
19020
19041
|
zs
|
|
19021
19042
|
].forEach(function(u) {
|
|
@@ -19025,7 +19046,7 @@ function Iu(e, t, n, a) {
|
|
|
19025
19046
|
function r(s, c, u) {
|
|
19026
19047
|
a.addDragger(c, s.dragGroup), u && t.addMarker(c, Gi), s.allDraggedElements ? s.allDraggedElements.push(c) : s.allDraggedElements = [c];
|
|
19027
19048
|
}
|
|
19028
|
-
e.on("shape.move.start",
|
|
19049
|
+
e.on("shape.move.start", Bs, function(s) {
|
|
19029
19050
|
var c = s.context, u = c.shapes, d = c.allDraggedElements, f = o(u);
|
|
19030
19051
|
if (!c.dragGroup) {
|
|
19031
19052
|
var h = Me("g");
|
|
@@ -19036,9 +19057,9 @@ function Iu(e, t, n, a) {
|
|
|
19036
19057
|
}), d ? d = Ud([d, i(u)]) : d = i(u), ne(d, function(p) {
|
|
19037
19058
|
t.addMarker(p, Gi);
|
|
19038
19059
|
}), c.allDraggedElements = d, c.differentParents = a0(u);
|
|
19039
|
-
}), e.on("shape.move.move",
|
|
19060
|
+
}), e.on("shape.move.move", Bs, function(s) {
|
|
19040
19061
|
var c = s.context, u = c.dragGroup, d = c.target, f = c.shape.parent, h = c.canExecute;
|
|
19041
|
-
d && (h === "attach" ? l(d, $s) : c.canExecute && f && d.id !== f.id ? l(d, zs) : l(d, c.canExecute ?
|
|
19062
|
+
d && (h === "attach" ? l(d, $s) : c.canExecute && f && d.id !== f.id ? l(d, zs) : l(d, c.canExecute ? Is : Ls)), fn(u, s.dx, s.dy);
|
|
19042
19063
|
}), e.on(["shape.move.out", "shape.move.cleanup"], function(s) {
|
|
19043
19064
|
var c = s.context.target;
|
|
19044
19065
|
c && l(c, null);
|
|
@@ -19049,7 +19070,7 @@ function Iu(e, t, n, a) {
|
|
|
19049
19070
|
}), d && Gt(d);
|
|
19050
19071
|
}), this.makeDraggable = r;
|
|
19051
19072
|
}
|
|
19052
|
-
|
|
19073
|
+
Bu.$inject = [
|
|
19053
19074
|
"eventBus",
|
|
19054
19075
|
"canvas",
|
|
19055
19076
|
"styles",
|
|
@@ -19076,8 +19097,8 @@ var o0 = {
|
|
|
19076
19097
|
],
|
|
19077
19098
|
__init__: ["move", "movePreview"],
|
|
19078
19099
|
move: ["type", Ou],
|
|
19079
|
-
movePreview: ["type",
|
|
19080
|
-
},
|
|
19100
|
+
movePreview: ["type", Bu]
|
|
19101
|
+
}, Iu = ".djs-palette-toggle", Lu = ".entry", i0 = Iu + ", " + Lu, ml = "djs-palette-", l0 = "shown", yl = "open", Ds = "two-column", r0 = 1e3;
|
|
19081
19102
|
function xt(e, t) {
|
|
19082
19103
|
this._eventBus = e, this._canvas = t;
|
|
19083
19104
|
var n = this;
|
|
@@ -19104,13 +19125,13 @@ xt.prototype._rebuild = function() {
|
|
|
19104
19125
|
};
|
|
19105
19126
|
xt.prototype._init = function() {
|
|
19106
19127
|
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = Kt(xt.HTML_MARKUP);
|
|
19107
|
-
n.appendChild(a), Yt(n).add(ml + l0),
|
|
19128
|
+
n.appendChild(a), Yt(n).add(ml + l0), Bn.bind(a, i0, "click", function(o) {
|
|
19108
19129
|
var i = o.delegateTarget;
|
|
19109
|
-
if (Nd(i,
|
|
19130
|
+
if (Nd(i, Iu)) return e.toggle();
|
|
19110
19131
|
e.trigger("click", o);
|
|
19111
19132
|
}), Qe.bind(a, "mousedown", function(o) {
|
|
19112
19133
|
o.stopPropagation();
|
|
19113
|
-
}),
|
|
19134
|
+
}), Bn.bind(a, Lu, "dragstart", function(o) {
|
|
19114
19135
|
e.trigger("dragstart", o);
|
|
19115
19136
|
}), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
|
|
19116
19137
|
};
|
|
@@ -19802,9 +19823,9 @@ function j0(e) {
|
|
|
19802
19823
|
function H0(e) {
|
|
19803
19824
|
return e === "e" || e === "w";
|
|
19804
19825
|
}
|
|
19805
|
-
var O0 = 7,
|
|
19826
|
+
var O0 = 7, B0 = 1e3;
|
|
19806
19827
|
function Xn(e) {
|
|
19807
|
-
this._canvas = e, this._asyncHide = Wd(Cl(this.hide, this),
|
|
19828
|
+
this._canvas = e, this._asyncHide = Wd(Cl(this.hide, this), B0);
|
|
19808
19829
|
}
|
|
19809
19830
|
Xn.$inject = ["canvas"];
|
|
19810
19831
|
Xn.prototype.snap = function(e, t) {
|
|
@@ -19859,7 +19880,7 @@ Xn.prototype.hide = function() {
|
|
|
19859
19880
|
e.update();
|
|
19860
19881
|
});
|
|
19861
19882
|
};
|
|
19862
|
-
var
|
|
19883
|
+
var I0 = {
|
|
19863
19884
|
__init__: [
|
|
19864
19885
|
"createMoveSnapping",
|
|
19865
19886
|
"resizeSnapping",
|
|
@@ -19869,7 +19890,7 @@ var B0 = {
|
|
|
19869
19890
|
resizeSnapping: ["type", Ao],
|
|
19870
19891
|
snapping: ["type", Xn]
|
|
19871
19892
|
}, L0 = {
|
|
19872
|
-
__depends__: [
|
|
19893
|
+
__depends__: [I0],
|
|
19873
19894
|
__init__: ["createMoveSnapping"],
|
|
19874
19895
|
createMoveSnapping: ["type", Da]
|
|
19875
19896
|
};
|
|
@@ -20499,8 +20520,8 @@ var o_ = {
|
|
|
20499
20520
|
getTableData: () => h.value,
|
|
20500
20521
|
rowChange: p
|
|
20501
20522
|
}), (m, E) => {
|
|
20502
|
-
const S =
|
|
20503
|
-
return _(), O(we, null, [V("div",
|
|
20523
|
+
const S = I("j-comp"), T = I("el-form-item"), A = I("el-col"), R = I("j-button"), F = I("el-row");
|
|
20524
|
+
return _(), O(we, null, [V("div", Ie({ class: "j-input-cards" }, m.$attrs), [(_(!0), O(we, null, Re(h.value, ($, D) => (_(), O("div", {
|
|
20504
20525
|
class: "j-input-cards-item",
|
|
20505
20526
|
key: $.i,
|
|
20506
20527
|
style: { "margin-bottom": "8px" }
|
|
@@ -20517,7 +20538,7 @@ var o_ = {
|
|
|
20517
20538
|
tooltip: M.config?.labelTooltip,
|
|
20518
20539
|
required: M.config?.required
|
|
20519
20540
|
}, {
|
|
20520
|
-
default: N(() => [G(S,
|
|
20541
|
+
default: N(() => [G(S, Ie({ ref_for: !0 }, M, { row: $ }), null, 16, ["row"])]),
|
|
20521
20542
|
_: 2
|
|
20522
20543
|
}, 1032, [
|
|
20523
20544
|
"label-width",
|
|
@@ -20535,7 +20556,7 @@ var o_ = {
|
|
|
20535
20556
|
icon: "mdi:close",
|
|
20536
20557
|
danger: "",
|
|
20537
20558
|
onClick: (M) => v(D)
|
|
20538
|
-
}, null, 8, ["onClick"])) :
|
|
20559
|
+
}, null, 8, ["onClick"])) : U("", !0)]),
|
|
20539
20560
|
_: 2
|
|
20540
20561
|
}, 1032, ["gutter"])]))), 128))], 16), r.value && !d.value ? (_(), O("div", {
|
|
20541
20562
|
key: 0,
|
|
@@ -20547,7 +20568,7 @@ var o_ = {
|
|
|
20547
20568
|
label: s.value,
|
|
20548
20569
|
icon: "mdi:add",
|
|
20549
20570
|
onClick: g
|
|
20550
|
-
}, null, 8, ["label"])) :
|
|
20571
|
+
}, null, 8, ["label"])) : U("", !0)], 4)) : U("", !0)], 64);
|
|
20551
20572
|
};
|
|
20552
20573
|
}
|
|
20553
20574
|
}), u_ = c_, d_ = ue(u_), f_ = [
|
|
@@ -20571,7 +20592,7 @@ var o_ = {
|
|
|
20571
20592
|
$f,
|
|
20572
20593
|
Ap,
|
|
20573
20594
|
Hp,
|
|
20574
|
-
|
|
20595
|
+
Ip,
|
|
20575
20596
|
ng,
|
|
20576
20597
|
ig,
|
|
20577
20598
|
ug,
|
|
@@ -20592,7 +20613,7 @@ var o_ = {
|
|
|
20592
20613
|
Tm,
|
|
20593
20614
|
Mm,
|
|
20594
20615
|
Hm,
|
|
20595
|
-
|
|
20616
|
+
Im,
|
|
20596
20617
|
Wm,
|
|
20597
20618
|
ov,
|
|
20598
20619
|
wv,
|
|
@@ -20641,7 +20662,7 @@ export {
|
|
|
20641
20662
|
vy as JEditor,
|
|
20642
20663
|
Tm as JForm,
|
|
20643
20664
|
Mm as JFormItem,
|
|
20644
|
-
|
|
20665
|
+
Im as JGuid,
|
|
20645
20666
|
Og as JHpanel,
|
|
20646
20667
|
Jf as JIcon,
|
|
20647
20668
|
Uf as JInput,
|
|
@@ -20662,7 +20683,7 @@ export {
|
|
|
20662
20683
|
Qf as JRadio,
|
|
20663
20684
|
Hp as JRate,
|
|
20664
20685
|
ih as JSelect,
|
|
20665
|
-
|
|
20686
|
+
Ip as JSlider,
|
|
20666
20687
|
ov as JSliderCaptcha,
|
|
20667
20688
|
ly as JSwitch,
|
|
20668
20689
|
Jh as JTable,
|
|
@@ -20729,8 +20750,8 @@ export {
|
|
|
20729
20750
|
Of as useLayerProvide,
|
|
20730
20751
|
vo as useMenuInject,
|
|
20731
20752
|
Mf as useMenuProvide,
|
|
20732
|
-
|
|
20733
|
-
|
|
20753
|
+
Bf as usePageInject,
|
|
20754
|
+
If as usePageProvide,
|
|
20734
20755
|
En as useProvide,
|
|
20735
20756
|
Ef as useSortable,
|
|
20736
20757
|
Rf as useTableInject,
|