@a2simcode/ui 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/simcode-ui.es.js +259 -259
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, computed as R, openBlock as w, createElementBlock as O, mergeProps as ze, createVNode as
|
|
1
|
+
import { defineComponent as le, computed as R, openBlock as w, createElementBlock as O, mergeProps as ze, createVNode as Z, unref as U, shallowRef as jt, ref as B, watch as Fe, withModifiers as et, normalizeClass as Ce, createBlock as P, createCommentVNode as J, toDisplayString as ve, renderSlot as Be, nextTick as tt, resolveComponent as V, normalizeStyle as me, withCtx as H, Fragment as ye, renderList as Se, onMounted as Ke, createSlots as zt, createTextVNode as pt, createElementVNode as D, useSlots as Xr, reactive as Sn, onUnmounted as Hn, inject as Zr, provide as Qr, resolveDynamicComponent as _n, h as es, render as ua, getCurrentInstance as Si, onBeforeUnmount as _i, resolveDirective as Ao, withDirectives as tn, withKeys as ci, vShow as Qo, watchEffect as gl, useTemplateRef as en, useModel as Fn, mergeModels as Dn, getCurrentScope as ts, onScopeDispose as ns, toValue as Ei, normalizeProps as Wn, guardReactiveProps as ji } from "vue";
|
|
2
2
|
import { getIcon as vn, Icon as da } from "@iconify/vue";
|
|
3
3
|
import ml from "dayjs";
|
|
4
4
|
import os from "crypto-js/aes";
|
|
@@ -70,14 +70,14 @@ const Vt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
70
70
|
class: "j-icon jicon",
|
|
71
71
|
style: { height: `${e.size}px` }
|
|
72
72
|
}), [
|
|
73
|
-
|
|
73
|
+
Z(U(da), ze(o.value, {
|
|
74
74
|
height: `${e.size}px`,
|
|
75
75
|
width: `${e.size}px`,
|
|
76
76
|
mode: "svg",
|
|
77
77
|
style: `transform:rotate(${e.rotate || 0}deg)`
|
|
78
78
|
}), null, 16, ["height", "width", "style"])
|
|
79
79
|
], 16)) : (w(), O("span", ze({ key: 1 }, i.$attrs, { class: "jicon" }), [
|
|
80
|
-
|
|
80
|
+
Z(U(da), ze(o.value, {
|
|
81
81
|
height: `${e.size}px`,
|
|
82
82
|
width: `${e.size}px`,
|
|
83
83
|
mode: "svg",
|
|
@@ -600,7 +600,7 @@ const sc = /* @__PURE__ */ (() => {
|
|
|
600
600
|
}, 400)));
|
|
601
601
|
};
|
|
602
602
|
})();
|
|
603
|
-
function
|
|
603
|
+
function In(e) {
|
|
604
604
|
sc(e);
|
|
605
605
|
}
|
|
606
606
|
const { decrypt: Sl, encrypt: cc } = os, _o = yl, pa = yl.parse, va = (e, t = 32) => {
|
|
@@ -815,7 +815,7 @@ const vc = /* @__PURE__ */ le({
|
|
|
815
815
|
(w(!0), O(ye, null, Se(u, (h, p) => (w(), O(ye, { key: p }, [
|
|
816
816
|
h.children?.length && h.children?.length > 0 ? (w(), P(s, { key: 0 }, {
|
|
817
817
|
dropdown: H(() => [
|
|
818
|
-
|
|
818
|
+
Z(c, { direction: "vertical" }, {
|
|
819
819
|
default: H(() => [
|
|
820
820
|
(w(!0), O(ye, null, Se(h.children || [], (v) => (w(), P(r, {
|
|
821
821
|
key: v.prop,
|
|
@@ -832,7 +832,7 @@ const vc = /* @__PURE__ */ le({
|
|
|
832
832
|
}, 1024)
|
|
833
833
|
]),
|
|
834
834
|
default: H(() => [
|
|
835
|
-
|
|
835
|
+
Z(r, {
|
|
836
836
|
label: h.label,
|
|
837
837
|
type: e.isLink ? "link" : h.type,
|
|
838
838
|
danger: h.danger,
|
|
@@ -856,7 +856,7 @@ const vc = /* @__PURE__ */ le({
|
|
|
856
856
|
}, null, 8, ["label", "type", "danger", "size", "icon", "last-compact-item", "first-compact-item", "onClick"]))
|
|
857
857
|
], 64))), 128))
|
|
858
858
|
], 16))), 128)),
|
|
859
|
-
|
|
859
|
+
Z(d, {
|
|
860
860
|
ref_key: "layerRef",
|
|
861
861
|
ref: o
|
|
862
862
|
}, null, 512)
|
|
@@ -975,14 +975,14 @@ const vc = /* @__PURE__ */ le({
|
|
|
975
975
|
e.prefixIcon ? {
|
|
976
976
|
name: "prefix",
|
|
977
977
|
fn: H(() => [
|
|
978
|
-
|
|
978
|
+
Z(h, { icon: e.prefixIcon }, null, 8, ["icon"])
|
|
979
979
|
]),
|
|
980
980
|
key: "0"
|
|
981
981
|
} : void 0,
|
|
982
982
|
e.suffixIcon ? {
|
|
983
983
|
name: "suffix",
|
|
984
984
|
fn: H(() => [
|
|
985
|
-
|
|
985
|
+
Z(h, { icon: e.suffixIcon }, null, 8, ["icon"])
|
|
986
986
|
]),
|
|
987
987
|
key: "1"
|
|
988
988
|
} : void 0
|
|
@@ -1809,7 +1809,7 @@ const vc = /* @__PURE__ */ le({
|
|
|
1809
1809
|
}
|
|
1810
1810
|
},
|
|
1811
1811
|
setup(e) {
|
|
1812
|
-
const t = e, n = Xr(), o = B(), i = B(), a = B(-1), l = B(-1), r = B(-1), c = B(-1), s = B(0), d = B(!1), u =
|
|
1812
|
+
const t = e, n = Xr(), o = B(), i = B(), a = B(-1), l = B(-1), r = B(-1), c = B(-1), s = B(0), d = B(!1), u = Sn({
|
|
1813
1813
|
type: "",
|
|
1814
1814
|
isMove: !1,
|
|
1815
1815
|
pageX: 0,
|
|
@@ -2047,14 +2047,14 @@ const vc = /* @__PURE__ */ le({
|
|
|
2047
2047
|
/** 层级相关注入 */
|
|
2048
2048
|
LAYER_PROVIDE: "jcode_layer_provide"
|
|
2049
2049
|
};
|
|
2050
|
-
function
|
|
2050
|
+
function $n(e, t) {
|
|
2051
2051
|
return Zr(e, t);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function Bn(e, t) {
|
|
2054
2054
|
Qr(e, t);
|
|
2055
2055
|
}
|
|
2056
2056
|
function ot() {
|
|
2057
|
-
return
|
|
2057
|
+
return $n(gt.APP_PROVIDE, {
|
|
2058
2058
|
t: (e, ...t) => {
|
|
2059
2059
|
if (!e) return "";
|
|
2060
2060
|
if (typeof e != "string")
|
|
@@ -2068,40 +2068,40 @@ function ot() {
|
|
|
2068
2068
|
useData: () => ({})
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return
|
|
2071
|
+
function Mn() {
|
|
2072
|
+
return $n(gt.FORM_PROVIDE, {});
|
|
2073
2073
|
}
|
|
2074
2074
|
function _l(e) {
|
|
2075
|
-
|
|
2075
|
+
Bn(gt.FORM_PROVIDE, e);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Hc() {
|
|
2078
|
-
return
|
|
2078
|
+
return $n(gt.TABLE_PROVIDE, {});
|
|
2079
2079
|
}
|
|
2080
2080
|
function Bi(e) {
|
|
2081
|
-
|
|
2081
|
+
Bn(gt.TABLE_PROVIDE, e);
|
|
2082
2082
|
}
|
|
2083
2083
|
function Ro() {
|
|
2084
|
-
return
|
|
2084
|
+
return $n(gt.MENU_PROVIDE, {});
|
|
2085
2085
|
}
|
|
2086
2086
|
function Wc(e) {
|
|
2087
|
-
|
|
2087
|
+
Bn(gt.MENU_PROVIDE, e);
|
|
2088
2088
|
}
|
|
2089
2089
|
function Uc() {
|
|
2090
|
-
return
|
|
2090
|
+
return $n(gt.H_MENU_PROVIDE, {});
|
|
2091
2091
|
}
|
|
2092
2092
|
function Jc(e) {
|
|
2093
|
-
|
|
2093
|
+
Bn(gt.H_MENU_PROVIDE, e);
|
|
2094
2094
|
}
|
|
2095
2095
|
function Yc() {
|
|
2096
|
-
return
|
|
2096
|
+
return $n(gt.AUTH_PAGE_PROVIDE, {
|
|
2097
2097
|
getPageName: () => ""
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
2100
|
function Gc(e) {
|
|
2101
|
-
|
|
2101
|
+
Bn(gt.AUTH_PAGE_PROVIDE, e);
|
|
2102
2102
|
}
|
|
2103
2103
|
function Kc(e) {
|
|
2104
|
-
|
|
2104
|
+
Bn(gt.LAYER_PROVIDE, e);
|
|
2105
2105
|
}
|
|
2106
2106
|
const El = /* @__PURE__ */ le({
|
|
2107
2107
|
name: "JComp",
|
|
@@ -2175,7 +2175,7 @@ const El = /* @__PURE__ */ le({
|
|
|
2175
2175
|
},
|
|
2176
2176
|
emits: ["update:modelValue", "change"],
|
|
2177
2177
|
setup(e, { emit: t }) {
|
|
2178
|
-
const n = e, o = t, { formData: i, formChange: a } =
|
|
2178
|
+
const n = e, o = t, { formData: i, formChange: a } = Mn(), { tableData: l, row: r, rowChange: c } = Hc(), s = n.row || r;
|
|
2179
2179
|
Bi({ tableData: l, row: s, rowChange: c });
|
|
2180
2180
|
const d = R(
|
|
2181
2181
|
() => $i(p.value) && !f.value?.notInput || f.value?.isInput || p.value === "j-tabs" || p.value === "j-collapse"
|
|
@@ -2251,7 +2251,7 @@ const El = /* @__PURE__ */ le({
|
|
|
2251
2251
|
};
|
|
2252
2252
|
return (b, y) => {
|
|
2253
2253
|
const x = V("JComp");
|
|
2254
|
-
return v.value.display != !1 && d.value ? (w(), P(
|
|
2254
|
+
return v.value.display != !1 && d.value ? (w(), P(_n(p.value), ze({ key: 0 }, v.value, {
|
|
2255
2255
|
modelValue: u.value,
|
|
2256
2256
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => u.value = S),
|
|
2257
2257
|
onChange: C
|
|
@@ -2264,7 +2264,7 @@ const El = /* @__PURE__ */ le({
|
|
|
2264
2264
|
}, { ref_for: !0 }, E), null, 16))), 128))
|
|
2265
2265
|
])
|
|
2266
2266
|
}))
|
|
2267
|
-
]), 1040, ["modelValue"])) : v.value.display != !1 ? (w(), P(
|
|
2267
|
+
]), 1040, ["modelValue"])) : v.value.display != !1 ? (w(), P(_n(p.value), ze({ key: 1 }, v.value, { onChange: C }), zt({ _: 2 }, [
|
|
2268
2268
|
Se(m.value, (S, g) => ({
|
|
2269
2269
|
name: g,
|
|
2270
2270
|
fn: H(() => [
|
|
@@ -2558,7 +2558,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
2558
2558
|
},
|
|
2559
2559
|
emits: ["ready", "selectionChanged", "update:tablePage", "update:pageSize", "loadPageData", "rowChange"],
|
|
2560
2560
|
setup(e, { expose: t, emit: n }) {
|
|
2561
|
-
const o = Si(), i = e, a = n, { formData: l } =
|
|
2561
|
+
const o = Si(), i = e, a = n, { formData: l } = Mn(), { useData: r } = ot(), { getLabel: c } = r(), s = R(() => i.heightMode === "auto" ? { height: "auto" } : {}), d = B(40), u = R(() => {
|
|
2562
2562
|
const A = {};
|
|
2563
2563
|
return i.heightMode === "auto" && (A.height = d.value + "px", A.flex = "none", i.maxHeight && (A.maxHeight = typeof i.maxHeight == "number" ? `${i.maxHeight}px` : i.maxHeight)), A;
|
|
2564
2564
|
}), f = B(null);
|
|
@@ -2732,7 +2732,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
2732
2732
|
elements: te
|
|
2733
2733
|
};
|
|
2734
2734
|
}, Te = (A) => {
|
|
2735
|
-
const { dataValue: L, rect: Q, table: ee, col: ce, row: K } = A, Y = ee.getBodyField(ce, K), _e = ee.options?.columns || [], te = F(_e, Y)?._compConfig || {}, he = Number(te.min) || 0, Ae = Number(te.max) || 100, Ee = Number(L) || 0, Ge = Ae - he, we = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Ee - he) / Ge * 100)), Re = 4, Ze = 8, Qe = 8, Ie = (Q.height - Re) / 2, ct = String(Ee), Xo = wo(ct) || 0, Zo = Ze, sa = Ie, dn = Q.width - Ze * 2 - Xo - Qe,
|
|
2735
|
+
const { dataValue: L, rect: Q, table: ee, col: ce, row: K } = A, Y = ee.getBodyField(ce, K), _e = ee.options?.columns || [], te = F(_e, Y)?._compConfig || {}, he = Number(te.min) || 0, Ae = Number(te.max) || 100, Ee = Number(L) || 0, Ge = Ae - he, we = Ge === 0 ? 0 : Math.max(0, Math.min(100, (Ee - he) / Ge * 100)), Re = 4, Ze = 8, Qe = 8, Ie = (Q.height - Re) / 2, ct = String(Ee), Xo = wo(ct) || 0, Zo = Ze, sa = Ie, dn = Q.width - Ze * 2 - Xo - Qe, Pn = dn * we / 100, io = [], ca = (lt, it, ao) => {
|
|
2736
2736
|
const at = Math.min(ao, it / 2, lt / 2);
|
|
2737
2737
|
return `M ${at} 0 L ${lt - at} 0 Q ${lt} 0 ${lt} ${at} L ${lt} ${it - at} Q ${lt} ${it} ${lt - at} ${it} L ${at} ${it} Q 0 ${it} 0 ${it - at} L 0 ${at} Q 0 0 ${at} 0 Z`;
|
|
2738
2738
|
}, Jr = (lt, it, ao) => {
|
|
@@ -2746,14 +2746,14 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
2746
2746
|
y: sa,
|
|
2747
2747
|
width: dn,
|
|
2748
2748
|
height: Re
|
|
2749
|
-
}),
|
|
2750
|
-
const lt = Re / 2, it = Jr(
|
|
2749
|
+
}), Pn > 0) {
|
|
2750
|
+
const lt = Re / 2, it = Jr(Pn, Re, lt);
|
|
2751
2751
|
io.push({
|
|
2752
2752
|
type: "icon",
|
|
2753
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
2753
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Pn}" height="${Re}" viewBox="0 0 ${Pn} ${Re}"><path d="${it}" fill="#165dff"/></svg>`,
|
|
2754
2754
|
x: Zo,
|
|
2755
2755
|
y: sa,
|
|
2756
|
-
width:
|
|
2756
|
+
width: Pn,
|
|
2757
2757
|
height: Re
|
|
2758
2758
|
});
|
|
2759
2759
|
}
|
|
@@ -2938,10 +2938,10 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
2938
2938
|
const ee = _t();
|
|
2939
2939
|
a("selectionChanged", ee);
|
|
2940
2940
|
}
|
|
2941
|
-
}),
|
|
2941
|
+
}), X(), d.value = h.getAllRowsHeight(), a("ready", h);
|
|
2942
2942
|
}, Je = () => {
|
|
2943
2943
|
h && (h.release(), h = null);
|
|
2944
|
-
},
|
|
2944
|
+
}, X = () => {
|
|
2945
2945
|
be(i.records);
|
|
2946
2946
|
}, re = () => h, be = (A) => {
|
|
2947
2947
|
h && (h.setScrollTop(0), h.setRecords(A));
|
|
@@ -3262,7 +3262,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3262
3262
|
},
|
|
3263
3263
|
emits: ["update:visible", "update:stepActive", "cancel", "ok", "closed"],
|
|
3264
3264
|
setup(e, { expose: t, emit: n }) {
|
|
3265
|
-
const o = e, i = n, { t: a } = ot(), l = B(!1), r = B(!1), c = B(""), s = B(!1), d = B(!0), u = B(!1), f = B(!0), h = B(-1), p =
|
|
3265
|
+
const o = e, i = n, { t: a } = ot(), l = B(!1), r = B(!1), c = B(""), s = B(!1), d = B(!0), u = B(!1), f = B(!0), h = B(-1), p = Sn({
|
|
3266
3266
|
isMove: !1,
|
|
3267
3267
|
pageX: 0,
|
|
3268
3268
|
pageY: 0,
|
|
@@ -3348,14 +3348,14 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3348
3348
|
xe + S.value < 0 && (xe = -S.value), typeof document < "u" && document.body && (b.value ? xe + b.value + S.value > document.body.clientWidth && (xe = document.body.clientWidth - b.value - S.value) : xe + E.value + S.value > document.body.clientWidth && (xe = document.body.clientWidth - E.value - S.value)), De + g.value < 0 && (De = -g.value), typeof window < "u" && (y.value ? De + y.value + g.value + 40 > window.innerHeight && (De = window.innerHeight - y.value - g.value - 40) : De + x.value + g.value + 40 > window.innerHeight && (De = window.innerHeight - x.value - g.value - 40)), p.left = xe, p.top = De;
|
|
3349
3349
|
}
|
|
3350
3350
|
}, Te = (ne) => {
|
|
3351
|
-
const $e = m.value.offsetLeft, ge = m.value.offsetTop, xe = m.value.clientWidth, De = m.value.clientHeight, Je = De - C.value,
|
|
3352
|
-
if (ne.clientX > $e + xe - 10 &&
|
|
3351
|
+
const $e = m.value.offsetLeft, ge = m.value.offsetTop, xe = m.value.clientWidth, De = m.value.clientHeight, Je = De - C.value, X = m.value.scrollTop;
|
|
3352
|
+
if (ne.clientX > $e + xe - 10 && X + ne.clientY > ge + De - 10 || X + ne.clientY < ge + 5 && $e + 10 > ne.clientX)
|
|
3353
3353
|
m.value.style.cursor = "se-resize";
|
|
3354
|
-
else if ($e + 10 > ne.clientX &&
|
|
3354
|
+
else if ($e + 10 > ne.clientX && X + ne.clientY > ge + De - 10 || ne.clientX > $e + xe - 10 && X + ne.clientY < ge + 5)
|
|
3355
3355
|
m.value.style.cursor = "sw-resize";
|
|
3356
3356
|
else if (ne.clientX > $e + xe - 10 || $e + 10 > ne.clientX)
|
|
3357
3357
|
m.value.style.cursor = "w-resize";
|
|
3358
|
-
else if (
|
|
3358
|
+
else if (X + ne.clientY > ge + De - 10 || X + ne.clientY < ge + 5)
|
|
3359
3359
|
m.value.style.cursor = "s-resize";
|
|
3360
3360
|
else {
|
|
3361
3361
|
m.value.style.cursor = "default", m.value.onmousedown = null;
|
|
@@ -3364,7 +3364,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3364
3364
|
m.value.onmousedown = (re) => {
|
|
3365
3365
|
const { clientX: be } = re, { clientY: Pe } = re, Xe = p.left + S.value, nt = p.top + g.value;
|
|
3366
3366
|
p._left = p.left, p._top = p.top, y.value || (y.value = Je), b.value || (b.value = xe), be > Xe + 10 && be < Xe + xe - 10 && Pe > nt + 5 && Pe < nt + 47 || (typeof document < "u" && (document.onmousemove = function(Me) {
|
|
3367
|
-
Me.preventDefault(), be > Xe && be < Xe + 10 && (be > Me.clientX && (b.value = xe + (be - Me.clientX), p.left = p._left - (be - Me.clientX)), be < Me.clientX && b.value > o.minWidth && (b.value = xe - (Me.clientX - be), p.left = p._left + Me.clientX - be)), be > Xe + xe - 10 && be < Xe + xe && (be > Me.clientX && b.value > o.minWidth && (b.value = xe - (be - Me.clientX)), be < Me.clientX && typeof document < "u" && document.body && S.value + p.left + b.value < document.body.clientWidth && (b.value = xe + (Me.clientX - be))), Pe > nt && Pe < nt + 5 && (Pe > Me.clientY && (y.value = Je + Pe - Me.clientY, p.top = p._top - (Pe - Me.clientY)), Pe < Me.clientY && y.value > o.minHeight && (y.value = Je - (Me.clientY - Pe), p.top = p._top + Me.clientY - Pe)),
|
|
3367
|
+
Me.preventDefault(), be > Xe && be < Xe + 10 && (be > Me.clientX && (b.value = xe + (be - Me.clientX), p.left = p._left - (be - Me.clientX)), be < Me.clientX && b.value > o.minWidth && (b.value = xe - (Me.clientX - be), p.left = p._left + Me.clientX - be)), be > Xe + xe - 10 && be < Xe + xe && (be > Me.clientX && b.value > o.minWidth && (b.value = xe - (be - Me.clientX)), be < Me.clientX && typeof document < "u" && document.body && S.value + p.left + b.value < document.body.clientWidth && (b.value = xe + (Me.clientX - be))), Pe > nt && Pe < nt + 5 && (Pe > Me.clientY && (y.value = Je + Pe - Me.clientY, p.top = p._top - (Pe - Me.clientY)), Pe < Me.clientY && y.value > o.minHeight && (y.value = Je - (Me.clientY - Pe), p.top = p._top + Me.clientY - Pe)), X + Pe > nt + Je + 38 && X + Pe < nt + Je + 48 && (Pe > Me.clientY && y.value > o.minHeight && (y.value = Je - (Pe - Me.clientY)), Pe < Me.clientY && typeof window < "u" && g.value + p.top + y.value + 48 < window.innerHeight && (y.value = Je + Me.clientY - Pe));
|
|
3368
3368
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
3369
3369
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
3370
3370
|
}));
|
|
@@ -3376,8 +3376,8 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3376
3376
|
showLoading: _,
|
|
3377
3377
|
hideLoading: j
|
|
3378
3378
|
}), (ne, $e) => {
|
|
3379
|
-
const ge = V("j-button"), xe = V("el-space"), De = V("el-step"), Je = V("el-steps"),
|
|
3380
|
-
return w(), P(
|
|
3379
|
+
const ge = V("j-button"), xe = V("el-space"), De = V("el-step"), Je = V("el-steps"), X = V("el-dialog");
|
|
3380
|
+
return w(), P(X, {
|
|
3381
3381
|
modelValue: l.value,
|
|
3382
3382
|
"onUpdate:modelValue": $e[0] || ($e[0] = (re) => l.value = re),
|
|
3383
3383
|
class: "j-dialog",
|
|
@@ -3409,7 +3409,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3409
3409
|
}, [
|
|
3410
3410
|
D("span", null, ve(U(a)(e.title || "")), 1),
|
|
3411
3411
|
e.subtitle ? (w(), O("span", ru, [
|
|
3412
|
-
(w(), P(
|
|
3412
|
+
(w(), P(_n(e.subtitle())))
|
|
3413
3413
|
])) : J("", !0)
|
|
3414
3414
|
], 12, lu),
|
|
3415
3415
|
e.showCloseBtn ? (w(), P(xe, {
|
|
@@ -3417,7 +3417,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3417
3417
|
size: 0
|
|
3418
3418
|
}, {
|
|
3419
3419
|
default: H(() => [
|
|
3420
|
-
|
|
3420
|
+
Z(ge, {
|
|
3421
3421
|
type: "text",
|
|
3422
3422
|
icon: "mdi:close",
|
|
3423
3423
|
onClick: M
|
|
@@ -3440,7 +3440,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3440
3440
|
D("div", {
|
|
3441
3441
|
style: me({ maxWidth: `${200 * F.value.length}px`, width: "100%" })
|
|
3442
3442
|
}, [
|
|
3443
|
-
|
|
3443
|
+
Z(Je, {
|
|
3444
3444
|
simple: "",
|
|
3445
3445
|
active: N.value,
|
|
3446
3446
|
space: 160,
|
|
@@ -3458,7 +3458,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3458
3458
|
])) : J("", !0),
|
|
3459
3459
|
Be(ne.$slots, "default"),
|
|
3460
3460
|
e.hasBtns ? (w(), O("div", cu, [
|
|
3461
|
-
|
|
3461
|
+
Z(xe, { size: 8 }, {
|
|
3462
3462
|
default: H(() => [
|
|
3463
3463
|
e.isStep ? (w(), P(ge, {
|
|
3464
3464
|
key: 0,
|
|
@@ -3704,7 +3704,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3704
3704
|
}, null, 8, vu)) : J("", !0),
|
|
3705
3705
|
D("span", gu, ve(U(l)(e.title)), 1),
|
|
3706
3706
|
D("span", mu, [
|
|
3707
|
-
e.subtitle ? (w(), P(
|
|
3707
|
+
e.subtitle ? (w(), P(_n(e.subtitle()), { key: 0 })) : J("", !0)
|
|
3708
3708
|
])
|
|
3709
3709
|
]),
|
|
3710
3710
|
D("div", {
|
|
@@ -3728,7 +3728,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
3728
3728
|
}, 8, ["active"])) : J("", !0)
|
|
3729
3729
|
], 4),
|
|
3730
3730
|
D("div", yu, [
|
|
3731
|
-
|
|
3731
|
+
Z(k, { size: 0 }, {
|
|
3732
3732
|
default: H(() => [
|
|
3733
3733
|
e.hasBtns ? (w(), P(k, { key: 0 }, {
|
|
3734
3734
|
default: H(() => [
|
|
@@ -4039,12 +4039,12 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4039
4039
|
"padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0"
|
|
4040
4040
|
})
|
|
4041
4041
|
}, [
|
|
4042
|
-
|
|
4042
|
+
Z(N, { style: { position: "absolute", top: "-200px" } }),
|
|
4043
4043
|
D("div", ku, [
|
|
4044
4044
|
Be(T.$slots, "default")
|
|
4045
4045
|
]),
|
|
4046
4046
|
e.hasBtns ? (w(), O("div", Su, [
|
|
4047
|
-
|
|
4047
|
+
Z($, { size: 8 }, {
|
|
4048
4048
|
default: H(() => [
|
|
4049
4049
|
e.isStep ? (w(), P(z, {
|
|
4050
4050
|
key: 0,
|
|
@@ -4093,11 +4093,11 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4093
4093
|
D("div", Eu, [
|
|
4094
4094
|
D("span", null, ve(U(i)(e.title)), 1),
|
|
4095
4095
|
D("span", ju, [
|
|
4096
|
-
e.subtitle ? (w(), P(
|
|
4096
|
+
e.subtitle ? (w(), P(_n(e.subtitle()), { key: 0 })) : J("", !0)
|
|
4097
4097
|
])
|
|
4098
4098
|
]),
|
|
4099
4099
|
e.showCloseBtn ? (w(), O("div", Tu, [
|
|
4100
|
-
|
|
4100
|
+
Z(z, {
|
|
4101
4101
|
type: "text",
|
|
4102
4102
|
icon: "mdi:close",
|
|
4103
4103
|
onClick: p
|
|
@@ -4108,7 +4108,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4108
4108
|
D("div", {
|
|
4109
4109
|
style: me({ maxWidth: `${200 * M.value.length}px`, width: "100%" })
|
|
4110
4110
|
}, [
|
|
4111
|
-
|
|
4111
|
+
Z(I, {
|
|
4112
4112
|
simple: "",
|
|
4113
4113
|
active: S.value,
|
|
4114
4114
|
space: 160,
|
|
@@ -4345,9 +4345,9 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4345
4345
|
return N || (typeof f.value == "string" ? f.value : "");
|
|
4346
4346
|
}, m = B(!1), C = B([]), b = async (N) => {
|
|
4347
4347
|
if (u.value?.validateSteps) {
|
|
4348
|
-
|
|
4348
|
+
In(!0);
|
|
4349
4349
|
const z = u.value.validateSteps(N);
|
|
4350
|
-
return
|
|
4350
|
+
return In(!1), z;
|
|
4351
4351
|
}
|
|
4352
4352
|
return !0;
|
|
4353
4353
|
}, y = () => u.value?.beforeClose ? u.value.beforeClose() : !0;
|
|
@@ -4387,9 +4387,9 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4387
4387
|
});
|
|
4388
4388
|
}, M = async () => {
|
|
4389
4389
|
if (u.value?.ok) {
|
|
4390
|
-
|
|
4390
|
+
In(!0);
|
|
4391
4391
|
const N = await u.value.ok();
|
|
4392
|
-
N && (n.value.close(), x && await x(N)),
|
|
4392
|
+
N && (n.value.close(), x && await x(N)), In(!1);
|
|
4393
4393
|
}
|
|
4394
4394
|
}, T = () => {
|
|
4395
4395
|
u.value?.closed && u.value.closed(), S && S();
|
|
@@ -4420,7 +4420,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4420
4420
|
onCancel: q
|
|
4421
4421
|
}, {
|
|
4422
4422
|
default: H(() => [
|
|
4423
|
-
(w(), P(
|
|
4423
|
+
(w(), P(_n(f.value), ze({
|
|
4424
4424
|
ref_key: "componentRef",
|
|
4425
4425
|
ref: u
|
|
4426
4426
|
}, h.value), null, 16))
|
|
@@ -4477,7 +4477,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4477
4477
|
onKeydown: ci(et(c, ["stop"]), ["enter"])
|
|
4478
4478
|
}, {
|
|
4479
4479
|
prefix: H(() => [
|
|
4480
|
-
|
|
4480
|
+
Z(p, null, {
|
|
4481
4481
|
default: H(() => [
|
|
4482
4482
|
(w(!0), O(ye, null, Se(a.value, (m, C) => (w(), P(h, {
|
|
4483
4483
|
key: C,
|
|
@@ -4685,7 +4685,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4685
4685
|
size: 72
|
|
4686
4686
|
}, null, 8, ["style"])),
|
|
4687
4687
|
D("div", Uu, [
|
|
4688
|
-
|
|
4688
|
+
Z(a, { ellipsis: "" }, {
|
|
4689
4689
|
default: H(() => [
|
|
4690
4690
|
pt(ve(`${U(t)(s.name)}${s.status === "unUpload" ? "(" + U(t)("未传") + ")" : ""}`), 1)
|
|
4691
4691
|
]),
|
|
@@ -4698,7 +4698,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4698
4698
|
]),
|
|
4699
4699
|
_: 2
|
|
4700
4700
|
}, 1024)) : J("", !0),
|
|
4701
|
-
|
|
4701
|
+
Z(a, null, {
|
|
4702
4702
|
default: H(() => [
|
|
4703
4703
|
pt(ve(U(so)(s.size)), 1)
|
|
4704
4704
|
]),
|
|
@@ -4769,13 +4769,13 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4769
4769
|
key: s.id,
|
|
4770
4770
|
class: "j-upload-item"
|
|
4771
4771
|
}, [
|
|
4772
|
-
|
|
4772
|
+
Z(i, {
|
|
4773
4773
|
icon: "file-text",
|
|
4774
4774
|
style: me({ color: s.color ? `var(${s.color})` : void 0 }),
|
|
4775
4775
|
size: 16
|
|
4776
4776
|
}, null, 8, ["style"]),
|
|
4777
4777
|
D("div", Ku, [
|
|
4778
|
-
|
|
4778
|
+
Z(c, {
|
|
4779
4779
|
type: "primary",
|
|
4780
4780
|
underline: "never",
|
|
4781
4781
|
onClick: et((d) => e.previewFile(s), ["stop"])
|
|
@@ -4792,7 +4792,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
4792
4792
|
]),
|
|
4793
4793
|
_: 2
|
|
4794
4794
|
}, 1024)) : J("", !0),
|
|
4795
|
-
|
|
4795
|
+
Z(a, null, {
|
|
4796
4796
|
default: H(() => [
|
|
4797
4797
|
pt(ve(U(so)(s.size)), 1)
|
|
4798
4798
|
]),
|
|
@@ -5018,9 +5018,9 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5018
5018
|
sizeType: n.sizeType
|
|
5019
5019
|
})), b = B([]), y = () => {
|
|
5020
5020
|
b.value = [...b.value];
|
|
5021
|
-
}, x = (
|
|
5021
|
+
}, x = (X) => {
|
|
5022
5022
|
if (n.maxSize && n.sizeType) {
|
|
5023
|
-
let re =
|
|
5023
|
+
let re = X;
|
|
5024
5024
|
switch (n.sizeType) {
|
|
5025
5025
|
case "GB":
|
|
5026
5026
|
re = 1024 * 1024 * 1024 * n.maxSize;
|
|
@@ -5035,7 +5035,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5035
5035
|
re = n.maxSize;
|
|
5036
5036
|
break;
|
|
5037
5037
|
}
|
|
5038
|
-
if (re <
|
|
5038
|
+
if (re < X)
|
|
5039
5039
|
return !1;
|
|
5040
5040
|
}
|
|
5041
5041
|
return !0;
|
|
@@ -5048,91 +5048,91 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5048
5048
|
image: "file-image",
|
|
5049
5049
|
txt: "file-txt",
|
|
5050
5050
|
json: "file-json"
|
|
5051
|
-
}, g = (
|
|
5052
|
-
if (
|
|
5053
|
-
const re =
|
|
5051
|
+
}, g = (X) => {
|
|
5052
|
+
if (X) {
|
|
5053
|
+
const re = X.split(".");
|
|
5054
5054
|
return re[re.length - 1];
|
|
5055
5055
|
}
|
|
5056
5056
|
return "";
|
|
5057
|
-
}, E = (
|
|
5057
|
+
}, E = (X, re) => {
|
|
5058
5058
|
if (re && re.indexOf("image") > -1)
|
|
5059
5059
|
return "file-image";
|
|
5060
|
-
const be = g(
|
|
5060
|
+
const be = g(X);
|
|
5061
5061
|
return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(be) ? "file-image" : S[be] || "file-ufo";
|
|
5062
|
-
}, _ = (
|
|
5063
|
-
|
|
5064
|
-
}, j = (
|
|
5065
|
-
o("start", { file:
|
|
5066
|
-
}, M = (
|
|
5067
|
-
|
|
5068
|
-
}, T = (
|
|
5069
|
-
|
|
5070
|
-
}, q = (
|
|
5071
|
-
console.error(re, "简搭提醒您:文件上传错误!"),
|
|
5072
|
-
}, N = (
|
|
5073
|
-
if (b.value.push(
|
|
5074
|
-
o("notUploadChange", { value:
|
|
5062
|
+
}, _ = (X) => {
|
|
5063
|
+
X.status = n.autoUpload ? "uploading" : "unUpload", X.uploadSize = 0, X.icon = E(X.name, X.type), u || (X.icon = "file-text"), X.id = X.uid, X.url = window.URL.createObjectURL(X), X.date = ro(), X.param = C.value;
|
|
5064
|
+
}, j = (X) => {
|
|
5065
|
+
o("start", { file: X, list: b.value });
|
|
5066
|
+
}, M = (X, re, be) => {
|
|
5067
|
+
X.percent = be, X.uploadSize = re, y();
|
|
5068
|
+
}, T = (X) => {
|
|
5069
|
+
X.status = "done", X.id += "1", X.uid += "1", y(), o("success", { file: X, list: b.value }), n.modelValue || (o("update:modelValue", m.value), o("change", { value: m.value }));
|
|
5070
|
+
}, q = (X, re) => {
|
|
5071
|
+
console.error(re, "简搭提醒您:文件上传错误!"), X.status = "error", y(), o("error", { file: X, list: b.value });
|
|
5072
|
+
}, N = (X) => {
|
|
5073
|
+
if (b.value.push(X), X.status === "unUpload") {
|
|
5074
|
+
o("notUploadChange", { value: X.url });
|
|
5075
5075
|
return;
|
|
5076
5076
|
}
|
|
5077
|
-
!n.isNotApi && n.upload ? n.upload(
|
|
5077
|
+
!n.isNotApi && n.upload ? n.upload(X) : !n.isNotApi && u ? u(X, {
|
|
5078
5078
|
onStart: j,
|
|
5079
5079
|
onProgress: M,
|
|
5080
5080
|
onSuccess: T,
|
|
5081
5081
|
onError: q,
|
|
5082
5082
|
uploadCallback: n.uploadCallback
|
|
5083
|
-
}) : T(
|
|
5084
|
-
}, z = (
|
|
5085
|
-
if (!x(
|
|
5083
|
+
}) : T(X);
|
|
5084
|
+
}, z = (X) => {
|
|
5085
|
+
if (!x(X.size))
|
|
5086
5086
|
return a && a("上传文件超出大小了"), !1;
|
|
5087
|
-
}, $ = (
|
|
5088
|
-
_(
|
|
5089
|
-
}, k = (
|
|
5087
|
+
}, $ = (X) => {
|
|
5088
|
+
_(X.file), N(X.file);
|
|
5089
|
+
}, k = (X) => new Promise((re) => {
|
|
5090
5090
|
l ? l({
|
|
5091
5091
|
title: "提示",
|
|
5092
5092
|
iconType: "warning",
|
|
5093
|
-
content: `您确定删除【${
|
|
5093
|
+
content: `您确定删除【${X.name}】?`,
|
|
5094
5094
|
onOk: () => {
|
|
5095
5095
|
re(!0);
|
|
5096
5096
|
},
|
|
5097
5097
|
onCancel: () => {
|
|
5098
5098
|
re(!1);
|
|
5099
5099
|
}
|
|
5100
|
-
}) : (I(
|
|
5101
|
-
}), I = (
|
|
5100
|
+
}) : (I(X), re(!0));
|
|
5101
|
+
}), I = (X) => {
|
|
5102
5102
|
if (!n.isNotApi) {
|
|
5103
|
-
const re =
|
|
5103
|
+
const re = X.response?.fileId || X.id;
|
|
5104
5104
|
f && f(re);
|
|
5105
5105
|
}
|
|
5106
|
-
b.value = b.value.filter((re) => re.id !==
|
|
5107
|
-
}, F = async (
|
|
5108
|
-
await k(
|
|
5106
|
+
b.value = b.value.filter((re) => re.id !== X.id), b.value.length === 0 && (o("update:modelValue", ""), o("change", { value: "" })), o("delete", { file: X, list: b.value });
|
|
5107
|
+
}, F = async (X) => {
|
|
5108
|
+
await k(X) && I(X);
|
|
5109
5109
|
}, ie = B(!1), ae = B(""), fe = B(""), Te = B(!1), je = B(!1);
|
|
5110
5110
|
let ne = null;
|
|
5111
|
-
const $e = B(ro(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ge = (
|
|
5112
|
-
if (
|
|
5111
|
+
const $e = B(ro(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ge = (X) => {
|
|
5112
|
+
if (X.isPreview === !1 && !n.isUploadImg) {
|
|
5113
5113
|
i && i("无权限预览!");
|
|
5114
5114
|
return;
|
|
5115
5115
|
}
|
|
5116
|
-
const re =
|
|
5117
|
-
switch (ne =
|
|
5116
|
+
const re = X.name.split(".")[X.name.split(".").length - 1];
|
|
5117
|
+
switch (ne = X, ie.value = !1, ae.value = X.name, re.toLowerCase()) {
|
|
5118
5118
|
case "jpg":
|
|
5119
5119
|
case "gif":
|
|
5120
5120
|
case "png":
|
|
5121
5121
|
case "bmp":
|
|
5122
5122
|
case "jpeg":
|
|
5123
5123
|
case "svg":
|
|
5124
|
-
ie.value = !0, fe.value =
|
|
5124
|
+
ie.value = !0, fe.value = X.url, je.value = !1, Te.value = !0;
|
|
5125
5125
|
break;
|
|
5126
5126
|
default:
|
|
5127
5127
|
if (n.isNotApi) {
|
|
5128
5128
|
i && i("预览表单中,不支持预览!");
|
|
5129
5129
|
return;
|
|
5130
5130
|
}
|
|
5131
|
-
if (
|
|
5131
|
+
if (X.status !== "done") {
|
|
5132
5132
|
i && i("当前文件还没上传成功,不支持预览!");
|
|
5133
5133
|
return;
|
|
5134
5134
|
}
|
|
5135
|
-
if (fe.value = xe(
|
|
5135
|
+
if (fe.value = xe(X), fe.value === "") {
|
|
5136
5136
|
i && i("当前文件不支持预览!");
|
|
5137
5137
|
return;
|
|
5138
5138
|
}
|
|
@@ -5140,24 +5140,24 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5140
5140
|
break;
|
|
5141
5141
|
}
|
|
5142
5142
|
$e.value = ro(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
5143
|
-
}, xe = (
|
|
5144
|
-
const re =
|
|
5143
|
+
}, xe = (X) => {
|
|
5144
|
+
const re = X.response?.fileId || X.id;
|
|
5145
5145
|
if (!c)
|
|
5146
5146
|
return "";
|
|
5147
5147
|
const be = ro(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + re, Pe = dc.createAesEncryption({ key: "jianda" }).encrypt(be).replace(/\//g, "|");
|
|
5148
5148
|
return `${c}/system/annexesfile/preview/${Pe}?token=${s?.value}`;
|
|
5149
5149
|
}, De = () => {
|
|
5150
5150
|
ne.isDown === !1 && i && i("无权限下载!");
|
|
5151
|
-
const
|
|
5151
|
+
const X = ne.response?.fileId || ne.id, re = `${c}/system/annexesfile/${X}?token=${s?.value}`;
|
|
5152
5152
|
Nu(re);
|
|
5153
5153
|
}, Je = () => {
|
|
5154
5154
|
if (n.limit !== -1 && n.limit <= b.value.length)
|
|
5155
5155
|
return i && i(`当前限制选择${n.limit}个文件`), !1;
|
|
5156
5156
|
};
|
|
5157
|
-
return (
|
|
5157
|
+
return (X, re) => {
|
|
5158
5158
|
const be = V("j-icon"), Pe = V("j-button"), Xe = V("el-popover"), nt = V("el-upload"), Me = V("el-text"), st = V("j-dialog-full"), _t = Ao("loading");
|
|
5159
5159
|
return w(), O("div", qu, [
|
|
5160
|
-
|
|
5160
|
+
Z(nt, {
|
|
5161
5161
|
action: "",
|
|
5162
5162
|
drag: e.drag,
|
|
5163
5163
|
disabled: e.readonly,
|
|
@@ -5176,7 +5176,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5176
5176
|
}, {
|
|
5177
5177
|
default: H(() => [
|
|
5178
5178
|
e.isUploadImg && !e.isLayer && !e.readonly ? (w(), O("div", Xu, [
|
|
5179
|
-
|
|
5179
|
+
Z(be, { icon: "mdi:add" }),
|
|
5180
5180
|
D("div", Zu, ve(U(r)(e.placeholder)), 1)
|
|
5181
5181
|
])) : e.isLayer && e.showFileList && b.value.length > 0 && !Te.value ? (w(), P(Xe, {
|
|
5182
5182
|
key: 1,
|
|
@@ -5184,7 +5184,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5184
5184
|
title: e.isUploadImg ? U(r)("图片列表") : U(r)("文件列表")
|
|
5185
5185
|
}, {
|
|
5186
5186
|
content: H(() => [
|
|
5187
|
-
|
|
5187
|
+
Z(ma, {
|
|
5188
5188
|
style: me({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
5189
5189
|
list: b.value,
|
|
5190
5190
|
"preview-file": ge,
|
|
@@ -5194,7 +5194,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5194
5194
|
}, null, 8, ["style", "list", "is-upload-img", "readonly"])
|
|
5195
5195
|
]),
|
|
5196
5196
|
default: H(() => [
|
|
5197
|
-
|
|
5197
|
+
Z(Pe, {
|
|
5198
5198
|
type: e.btnType,
|
|
5199
5199
|
size: e.btnSize,
|
|
5200
5200
|
icon: "mdi:tray-upload",
|
|
@@ -5213,7 +5213,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5213
5213
|
_: 1
|
|
5214
5214
|
}, 8, ["drag", "disabled", "show-file-list", "list-type", "accept", "limit", "multiple", "file-list"]),
|
|
5215
5215
|
e.isTip ? (w(), O("div", Qu, [
|
|
5216
|
-
|
|
5216
|
+
Z(Me, null, {
|
|
5217
5217
|
default: H(() => [
|
|
5218
5218
|
pt(ve(`${U(r)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${v.value}`), 1)
|
|
5219
5219
|
]),
|
|
@@ -5229,7 +5229,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5229
5229
|
readonly: e.readonly,
|
|
5230
5230
|
"is-show-success-icon": e.isShowSuccessIcon
|
|
5231
5231
|
}, null, 8, ["list", "readonly", "is-show-success-icon"])) : J("", !0),
|
|
5232
|
-
|
|
5232
|
+
Z(st, {
|
|
5233
5233
|
visible: Te.value,
|
|
5234
5234
|
"onUpdate:visible": re[1] || (re[1] = (wt) => Te.value = wt),
|
|
5235
5235
|
"btn-text": "下载",
|
|
@@ -5736,7 +5736,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
5736
5736
|
for (let q = 1; q < g.length; q++)
|
|
5737
5737
|
T *= g[q][M] || 0;
|
|
5738
5738
|
return T;
|
|
5739
|
-
}).reduce((j, M) => j + M, 0), C = t, { getValue: b } =
|
|
5739
|
+
}).reduce((j, M) => j + M, 0), C = t, { getValue: b } = Mn(), y = (g) => {
|
|
5740
5740
|
const E = b({ id: g });
|
|
5741
5741
|
if (di(E)) {
|
|
5742
5742
|
const j = [];
|
|
@@ -6006,13 +6006,13 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6006
6006
|
), (d, u) => {
|
|
6007
6007
|
const f = V("j-button"), h = V("j-layer");
|
|
6008
6008
|
return w(), O(ye, null, [
|
|
6009
|
-
|
|
6009
|
+
Z(f, ze({ style: { width: "auto" } }, d.$attrs, {
|
|
6010
6010
|
type: e.type,
|
|
6011
6011
|
label: e.btnText,
|
|
6012
6012
|
size: e.size,
|
|
6013
6013
|
onClick: s
|
|
6014
6014
|
}), null, 16, ["type", "label", "size"]),
|
|
6015
|
-
|
|
6015
|
+
Z(h, {
|
|
6016
6016
|
ref_key: "layerRef",
|
|
6017
6017
|
ref: i,
|
|
6018
6018
|
height: e.height,
|
|
@@ -6077,12 +6077,12 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6077
6077
|
onChange: s
|
|
6078
6078
|
}, {
|
|
6079
6079
|
default: H(() => [
|
|
6080
|
-
|
|
6080
|
+
Z(p, {
|
|
6081
6081
|
"right-move": !1,
|
|
6082
6082
|
right: 560
|
|
6083
6083
|
}, zt({
|
|
6084
6084
|
default: H(() => [
|
|
6085
|
-
|
|
6085
|
+
Z(h, {
|
|
6086
6086
|
value: a.value,
|
|
6087
6087
|
"onUpdate:value": f[0] || (f[0] = (m) => a.value = m),
|
|
6088
6088
|
mode: e.mode,
|
|
@@ -6095,7 +6095,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6095
6095
|
e.example ? {
|
|
6096
6096
|
name: "right",
|
|
6097
6097
|
fn: H(() => [
|
|
6098
|
-
|
|
6098
|
+
Z(h, {
|
|
6099
6099
|
value: e.example,
|
|
6100
6100
|
mode: e.mode,
|
|
6101
6101
|
"read-only": ""
|
|
@@ -6188,7 +6188,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6188
6188
|
{ "j-input-color-disabled": e.disabled }
|
|
6189
6189
|
])
|
|
6190
6190
|
}, [
|
|
6191
|
-
|
|
6191
|
+
Z(b, ze({
|
|
6192
6192
|
placeholder: e.placeholder,
|
|
6193
6193
|
modelValue: r.value,
|
|
6194
6194
|
"onUpdate:modelValue": m[1] || (m[1] = (y) => r.value = y),
|
|
@@ -6211,7 +6211,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6211
6211
|
onChange: f
|
|
6212
6212
|
}), {
|
|
6213
6213
|
[e.inputType]: H(() => [
|
|
6214
|
-
|
|
6214
|
+
Z(C, {
|
|
6215
6215
|
size: e.size,
|
|
6216
6216
|
modelValue: r.value,
|
|
6217
6217
|
"onUpdate:modelValue": m[0] || (m[0] = (y) => r.value = y),
|
|
@@ -6561,7 +6561,7 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6561
6561
|
}), Ud = /* @__PURE__ */ le({
|
|
6562
6562
|
name: "JSliderCaptcha",
|
|
6563
6563
|
__name: "slider-captcha",
|
|
6564
|
-
props: /* @__PURE__ */
|
|
6564
|
+
props: /* @__PURE__ */ Dn({
|
|
6565
6565
|
class: {},
|
|
6566
6566
|
actionStyle: { default: () => ({}) },
|
|
6567
6567
|
barStyle: { default: () => ({}) },
|
|
@@ -6573,9 +6573,9 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6573
6573
|
modelValue: { type: Boolean, default: void 0 },
|
|
6574
6574
|
modelModifiers: {}
|
|
6575
6575
|
}),
|
|
6576
|
-
emits: /* @__PURE__ */
|
|
6576
|
+
emits: /* @__PURE__ */ Dn(["end", "move", "start", "success"], ["update:modelValue"]),
|
|
6577
6577
|
setup(e, { emit: t }) {
|
|
6578
|
-
const n = e, o = t, i =
|
|
6578
|
+
const n = e, o = t, i = Fn(e, "modelValue"), a = Sn({
|
|
6579
6579
|
endTime: 0,
|
|
6580
6580
|
isMoving: !1,
|
|
6581
6581
|
isPassing: !1,
|
|
@@ -6648,19 +6648,19 @@ const tu = { class: "j-table-footer" }, nu = {
|
|
|
6648
6648
|
onTouchend: p,
|
|
6649
6649
|
onTouchmove: h
|
|
6650
6650
|
}, [
|
|
6651
|
-
|
|
6651
|
+
Z(Hd, {
|
|
6652
6652
|
ref_key: "barRef",
|
|
6653
6653
|
ref: r,
|
|
6654
6654
|
"bar-style": e.barStyle,
|
|
6655
6655
|
"to-left": a.toLeft
|
|
6656
6656
|
}, null, 8, ["bar-style", "to-left"]),
|
|
6657
|
-
|
|
6657
|
+
Z(Wd, {
|
|
6658
6658
|
ref_key: "contentRef",
|
|
6659
6659
|
ref: c,
|
|
6660
6660
|
"content-style": e.contentStyle,
|
|
6661
6661
|
"is-passing": a.isPassing
|
|
6662
6662
|
}, null, 8, ["content-style", "is-passing"]),
|
|
6663
|
-
|
|
6663
|
+
Z(Nd, {
|
|
6664
6664
|
ref_key: "actionRef",
|
|
6665
6665
|
ref: s,
|
|
6666
6666
|
"action-style": e.actionStyle,
|
|
@@ -7038,7 +7038,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7038
7038
|
], 2)
|
|
7039
7039
|
]),
|
|
7040
7040
|
default: H(() => [
|
|
7041
|
-
|
|
7041
|
+
Z(lf, {
|
|
7042
7042
|
"p-id": e.item.value,
|
|
7043
7043
|
onClick: i
|
|
7044
7044
|
}, null, 8, ["p-id"])
|
|
@@ -7375,7 +7375,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7375
7375
|
}, bf = /* @__PURE__ */ le({
|
|
7376
7376
|
name: "JKeywordPanel",
|
|
7377
7377
|
__name: "keyword-panel",
|
|
7378
|
-
props: /* @__PURE__ */
|
|
7378
|
+
props: /* @__PURE__ */ Dn({
|
|
7379
7379
|
columns: {
|
|
7380
7380
|
type: Array,
|
|
7381
7381
|
default: () => []
|
|
@@ -7388,7 +7388,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7388
7388
|
}),
|
|
7389
7389
|
emits: ["update:checkAll", "update:checkFields"],
|
|
7390
7390
|
setup(e, { expose: t }) {
|
|
7391
|
-
const { t: n } = ot(), o = e, i =
|
|
7391
|
+
const { t: n } = ot(), o = e, i = Fn(e, "checkAll"), a = Fn(e, "checkFields"), l = B(!1), r = B(""), c = R(
|
|
7392
7392
|
() => o.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
|
|
7393
7393
|
label: f.config?.label,
|
|
7394
7394
|
value: f.id
|
|
@@ -7420,12 +7420,12 @@ const lf = /* @__PURE__ */ le({
|
|
|
7420
7420
|
onClick: h[0] || (h[0] = (C) => l.value = !l.value)
|
|
7421
7421
|
}, [
|
|
7422
7422
|
D("div", null, ve(U(n)("搜索特定字段")), 1),
|
|
7423
|
-
|
|
7423
|
+
Z(p, {
|
|
7424
7424
|
icon: l.value ? "mdi:keyboard-arrow-up" : "mdi:keyboard-arrow-down"
|
|
7425
7425
|
}, null, 8, ["icon"])
|
|
7426
7426
|
]),
|
|
7427
7427
|
l.value ? (w(), O("div", mf, [
|
|
7428
|
-
|
|
7428
|
+
Z(v, {
|
|
7429
7429
|
class: "no-border background",
|
|
7430
7430
|
modelValue: r.value,
|
|
7431
7431
|
"onUpdate:modelValue": h[1] || (h[1] = (C) => r.value = C),
|
|
@@ -7434,13 +7434,13 @@ const lf = /* @__PURE__ */ le({
|
|
|
7434
7434
|
clearable: ""
|
|
7435
7435
|
}, {
|
|
7436
7436
|
prefix: H(() => [
|
|
7437
|
-
|
|
7437
|
+
Z(p, { icon: "mdi:search" })
|
|
7438
7438
|
]),
|
|
7439
7439
|
_: 1
|
|
7440
7440
|
}, 8, ["modelValue", "placeholder"])
|
|
7441
7441
|
])) : J("", !0),
|
|
7442
7442
|
l.value ? (w(), O("div", yf, [
|
|
7443
|
-
|
|
7443
|
+
Z(m, {
|
|
7444
7444
|
options: c.value,
|
|
7445
7445
|
modelValue: a.value,
|
|
7446
7446
|
"onUpdate:modelValue": h[2] || (h[2] = (C) => a.value = C),
|
|
@@ -7457,7 +7457,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7457
7457
|
}, xf = { class: "content" }, Cf = { class: "relation" }, kf = { style: { width: "72px" } }, Sf = { class: "btn-wrapper" }, _f = { class: "field-wrapper" }, Ef = { class: "buttons" }, ya = /* @__PURE__ */ le({
|
|
7458
7458
|
name: "JFilterPanel",
|
|
7459
7459
|
__name: "filter-panel",
|
|
7460
|
-
props: /* @__PURE__ */
|
|
7460
|
+
props: /* @__PURE__ */ Dn({
|
|
7461
7461
|
columns: {
|
|
7462
7462
|
type: Array,
|
|
7463
7463
|
default: () => []
|
|
@@ -7472,9 +7472,9 @@ const lf = /* @__PURE__ */ le({
|
|
|
7472
7472
|
isPin: { default: !1 },
|
|
7473
7473
|
isPinModifiers: {}
|
|
7474
7474
|
}),
|
|
7475
|
-
emits: /* @__PURE__ */
|
|
7475
|
+
emits: /* @__PURE__ */ Dn(["filter", "close"], ["update:relation", "update:isPin"]),
|
|
7476
7476
|
setup(e, { expose: t, emit: n }) {
|
|
7477
|
-
const { t: o } = ot(), i = e, a =
|
|
7477
|
+
const { t: o } = ot(), i = e, a = Fn(e, "relation"), l = Fn(e, "isPin"), r = B([]), c = () => {
|
|
7478
7478
|
l.value = !l.value;
|
|
7479
7479
|
}, s = [
|
|
7480
7480
|
{
|
|
@@ -7629,14 +7629,14 @@ const lf = /* @__PURE__ */ le({
|
|
|
7629
7629
|
class: Ce(["j-filter-panel", { "is-pin": l.value }])
|
|
7630
7630
|
}, [
|
|
7631
7631
|
l.value ? (w(), O("div", wf, [
|
|
7632
|
-
|
|
7632
|
+
Z(x, { icon: "mdi:filter-outline" }),
|
|
7633
7633
|
D("div", null, ve(U(o)("筛选")), 1)
|
|
7634
7634
|
])) : J("", !0),
|
|
7635
7635
|
D("div", xf, [
|
|
7636
7636
|
D("div", Cf, [
|
|
7637
7637
|
D("div", null, ve(U(o)("筛选出符合以下")), 1),
|
|
7638
7638
|
D("div", kf, [
|
|
7639
|
-
|
|
7639
|
+
Z(S, {
|
|
7640
7640
|
teleported: !1,
|
|
7641
7641
|
noBorder: !0,
|
|
7642
7642
|
modelValue: a.value,
|
|
@@ -7650,7 +7650,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7650
7650
|
D("div", null, ve(U(o)("条件的数据")), 1)
|
|
7651
7651
|
]),
|
|
7652
7652
|
D("div", Sf, [
|
|
7653
|
-
|
|
7653
|
+
Z(g, {
|
|
7654
7654
|
label: "添加过滤条件",
|
|
7655
7655
|
options: d.value,
|
|
7656
7656
|
modelValue: u.value.join(","),
|
|
@@ -7665,7 +7665,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7665
7665
|
})) : J("", !0)
|
|
7666
7666
|
]),
|
|
7667
7667
|
D("div", _f, [
|
|
7668
|
-
|
|
7668
|
+
Z(_, {
|
|
7669
7669
|
modelValue: r.value,
|
|
7670
7670
|
"onUpdate:modelValue": y[1] || (y[1] = (M) => r.value = M),
|
|
7671
7671
|
columns: s,
|
|
@@ -7673,7 +7673,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7673
7673
|
isWrap: l.value
|
|
7674
7674
|
}, null, 8, ["modelValue", "isWrap"])
|
|
7675
7675
|
]),
|
|
7676
|
-
|
|
7676
|
+
Z(j, {
|
|
7677
7677
|
placement: "bottom",
|
|
7678
7678
|
content: l.value ? U(o)("取消固定") : U(o)("固定显示")
|
|
7679
7679
|
}, {
|
|
@@ -7682,7 +7682,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7682
7682
|
class: "pin-btn",
|
|
7683
7683
|
onClick: c
|
|
7684
7684
|
}, [
|
|
7685
|
-
|
|
7685
|
+
Z(x, {
|
|
7686
7686
|
rotate: 45,
|
|
7687
7687
|
icon: l.value ? "mdi:keep-off" : "mdi:keep"
|
|
7688
7688
|
}, null, 8, ["icon"])
|
|
@@ -7692,12 +7692,12 @@ const lf = /* @__PURE__ */ le({
|
|
|
7692
7692
|
}, 8, ["content"])
|
|
7693
7693
|
]),
|
|
7694
7694
|
D("div", Ef, [
|
|
7695
|
-
|
|
7695
|
+
Z(E, {
|
|
7696
7696
|
label: U(o)("筛选"),
|
|
7697
7697
|
type: "primary",
|
|
7698
7698
|
onClick: v
|
|
7699
7699
|
}, null, 8, ["label"]),
|
|
7700
|
-
|
|
7700
|
+
Z(E, {
|
|
7701
7701
|
label: U(o)("清空"),
|
|
7702
7702
|
icon: "mdi:delete-sweep-outline",
|
|
7703
7703
|
type: "text",
|
|
@@ -7760,7 +7760,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7760
7760
|
return w(), O("div", jf, [
|
|
7761
7761
|
D("div", Tf, [
|
|
7762
7762
|
D("div", $f, [
|
|
7763
|
-
|
|
7763
|
+
Z(m, {
|
|
7764
7764
|
label: "添加排序规则",
|
|
7765
7765
|
options: l.value,
|
|
7766
7766
|
modelValue: c.value.join(","),
|
|
@@ -7768,7 +7768,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7768
7768
|
}, null, 8, ["options", "modelValue"])
|
|
7769
7769
|
]),
|
|
7770
7770
|
D("div", Bf, [
|
|
7771
|
-
|
|
7771
|
+
Z(C, {
|
|
7772
7772
|
modelValue: r.value,
|
|
7773
7773
|
"onUpdate:modelValue": v[0] || (v[0] = (y) => r.value = y),
|
|
7774
7774
|
columns: s,
|
|
@@ -7777,7 +7777,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7777
7777
|
])
|
|
7778
7778
|
]),
|
|
7779
7779
|
D("div", Mf, [
|
|
7780
|
-
|
|
7780
|
+
Z(b, {
|
|
7781
7781
|
label: U(o)("排序"),
|
|
7782
7782
|
type: "primary",
|
|
7783
7783
|
onClick: f
|
|
@@ -7900,7 +7900,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
7900
7900
|
return w(), O("div", Rf, [
|
|
7901
7901
|
D("div", Pf, [
|
|
7902
7902
|
D("div", Lf, [
|
|
7903
|
-
|
|
7903
|
+
Z(j, {
|
|
7904
7904
|
modelValue: r.value,
|
|
7905
7905
|
"onUpdate:modelValue": E[0] || (E[0] = (q) => r.value = q),
|
|
7906
7906
|
modelModifiers: { trim: !0 },
|
|
@@ -7908,13 +7908,13 @@ const lf = /* @__PURE__ */ le({
|
|
|
7908
7908
|
clearable: ""
|
|
7909
7909
|
}, {
|
|
7910
7910
|
prefix: H(() => [
|
|
7911
|
-
|
|
7911
|
+
Z(_, { icon: "mdi:search" })
|
|
7912
7912
|
]),
|
|
7913
7913
|
_: 1
|
|
7914
7914
|
}, 8, ["modelValue", "placeholder"])
|
|
7915
7915
|
]),
|
|
7916
7916
|
D("div", Of, [
|
|
7917
|
-
|
|
7917
|
+
Z(M, {
|
|
7918
7918
|
ref_key: "treeRef",
|
|
7919
7919
|
ref: l,
|
|
7920
7920
|
list: h.value,
|
|
@@ -7930,12 +7930,12 @@ const lf = /* @__PURE__ */ le({
|
|
|
7930
7930
|
])
|
|
7931
7931
|
]),
|
|
7932
7932
|
D("div", If, [
|
|
7933
|
-
|
|
7933
|
+
Z(T, {
|
|
7934
7934
|
label: U(o)("确定"),
|
|
7935
7935
|
type: "primary",
|
|
7936
7936
|
onClick: y
|
|
7937
7937
|
}, null, 8, ["label"]),
|
|
7938
|
-
|
|
7938
|
+
Z(T, {
|
|
7939
7939
|
label: U(o)("重置"),
|
|
7940
7940
|
icon: "mdi:restore",
|
|
7941
7941
|
type: "text",
|
|
@@ -8112,7 +8112,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8112
8112
|
fe.value = [], st();
|
|
8113
8113
|
}, $e = B(), ge = B(!1), xe = B(), De = R(() => xe.value != null), Je = () => {
|
|
8114
8114
|
$e.value?.init();
|
|
8115
|
-
},
|
|
8115
|
+
}, X = (K) => {
|
|
8116
8116
|
console.log("handleColumnSave:", K), xe.value = K, ge.value = !1;
|
|
8117
8117
|
}, re = B(!1), be = () => {
|
|
8118
8118
|
re.value = !re.value;
|
|
@@ -8227,11 +8227,11 @@ const lf = /* @__PURE__ */ le({
|
|
|
8227
8227
|
D("div", Ff, [
|
|
8228
8228
|
D("div", Df, [
|
|
8229
8229
|
D("div", zf, [
|
|
8230
|
-
|
|
8230
|
+
Z(_e, { list: nt.value }, null, 8, ["list"])
|
|
8231
8231
|
]),
|
|
8232
8232
|
D("div", Nf, [
|
|
8233
8233
|
E.value && !m.value ? (w(), O("div", Hf, [
|
|
8234
|
-
|
|
8234
|
+
Z(Ae, {
|
|
8235
8235
|
modelValue: g.value,
|
|
8236
8236
|
"onUpdate:modelValue": Y[2] || (Y[2] = (we) => g.value = we),
|
|
8237
8237
|
modelModifiers: { trim: !0 },
|
|
@@ -8242,16 +8242,16 @@ const lf = /* @__PURE__ */ le({
|
|
|
8242
8242
|
class: "j-suffix"
|
|
8243
8243
|
}, {
|
|
8244
8244
|
prefix: H(() => [
|
|
8245
|
-
|
|
8245
|
+
Z(Oe, { icon: "mdi:search" })
|
|
8246
8246
|
]),
|
|
8247
8247
|
suffix: H(() => [
|
|
8248
|
-
|
|
8248
|
+
Z(he, {
|
|
8249
8249
|
placement: "bottom",
|
|
8250
8250
|
content: T.value
|
|
8251
8251
|
}, {
|
|
8252
8252
|
default: H(() => [
|
|
8253
8253
|
D("div", null, [
|
|
8254
|
-
|
|
8254
|
+
Z(te, {
|
|
8255
8255
|
placement: "bottom-end",
|
|
8256
8256
|
"popper-style": "padding: 0",
|
|
8257
8257
|
width: 200,
|
|
@@ -8261,13 +8261,13 @@ const lf = /* @__PURE__ */ le({
|
|
|
8261
8261
|
onHide: st
|
|
8262
8262
|
}, {
|
|
8263
8263
|
reference: H(() => [
|
|
8264
|
-
|
|
8264
|
+
Z(Oe, {
|
|
8265
8265
|
icon: "mdi:keyboard-arrow-down",
|
|
8266
8266
|
style: { cursor: "pointer" }
|
|
8267
8267
|
})
|
|
8268
8268
|
]),
|
|
8269
8269
|
default: H(() => [
|
|
8270
|
-
|
|
8270
|
+
Z(bf, {
|
|
8271
8271
|
ref_key: "keywordPanelRef",
|
|
8272
8272
|
ref: _,
|
|
8273
8273
|
columns: S.value,
|
|
@@ -8299,7 +8299,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8299
8299
|
onHide: st
|
|
8300
8300
|
}, {
|
|
8301
8301
|
reference: H(() => [
|
|
8302
|
-
|
|
8302
|
+
Z(Ee, {
|
|
8303
8303
|
icon: "mdi:filter-outline",
|
|
8304
8304
|
label: "筛选",
|
|
8305
8305
|
type: "text",
|
|
@@ -8307,7 +8307,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8307
8307
|
}, null, 8, ["class"])
|
|
8308
8308
|
]),
|
|
8309
8309
|
default: H(() => [
|
|
8310
|
-
|
|
8310
|
+
Z(ya, {
|
|
8311
8311
|
ref_key: "filterPanelRef",
|
|
8312
8312
|
ref: N,
|
|
8313
8313
|
"is-pin": z.value,
|
|
@@ -8329,7 +8329,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8329
8329
|
}, {
|
|
8330
8330
|
default: H(() => [
|
|
8331
8331
|
D("div", null, [
|
|
8332
|
-
|
|
8332
|
+
Z(te, {
|
|
8333
8333
|
placement: "bottom",
|
|
8334
8334
|
"popper-style": "padding: 0",
|
|
8335
8335
|
width: 380,
|
|
@@ -8339,14 +8339,14 @@ const lf = /* @__PURE__ */ le({
|
|
|
8339
8339
|
"onUpdate:visible": Y[7] || (Y[7] = (we) => ae.value = we)
|
|
8340
8340
|
}, {
|
|
8341
8341
|
reference: H(() => [
|
|
8342
|
-
|
|
8342
|
+
Z(Ee, {
|
|
8343
8343
|
class: Ce({ active: fe.value.length > 0 }),
|
|
8344
8344
|
type: "text",
|
|
8345
8345
|
icon: "mdi:sort"
|
|
8346
8346
|
}, null, 8, ["class"])
|
|
8347
8347
|
]),
|
|
8348
8348
|
default: H(() => [
|
|
8349
|
-
|
|
8349
|
+
Z(Af, {
|
|
8350
8350
|
ref_key: "orderPanelRef",
|
|
8351
8351
|
ref: ie,
|
|
8352
8352
|
columns: S.value,
|
|
@@ -8367,7 +8367,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8367
8367
|
}, {
|
|
8368
8368
|
default: H(() => [
|
|
8369
8369
|
D("div", null, [
|
|
8370
|
-
|
|
8370
|
+
Z(te, {
|
|
8371
8371
|
placement: "bottom",
|
|
8372
8372
|
"popper-style": "padding: 0",
|
|
8373
8373
|
width: 400,
|
|
@@ -8377,19 +8377,19 @@ const lf = /* @__PURE__ */ le({
|
|
|
8377
8377
|
"onUpdate:visible": Y[8] || (Y[8] = (we) => ge.value = we)
|
|
8378
8378
|
}, {
|
|
8379
8379
|
reference: H(() => [
|
|
8380
|
-
|
|
8380
|
+
Z(Ee, {
|
|
8381
8381
|
class: Ce({ active: De.value }),
|
|
8382
8382
|
type: "text",
|
|
8383
8383
|
icon: "mdi:table-headers-eye"
|
|
8384
8384
|
}, null, 8, ["class"])
|
|
8385
8385
|
]),
|
|
8386
8386
|
default: H(() => [
|
|
8387
|
-
|
|
8387
|
+
Z(Vf, {
|
|
8388
8388
|
ref_key: "columnPanelRef",
|
|
8389
8389
|
ref: $e,
|
|
8390
8390
|
columns: e.columns,
|
|
8391
8391
|
"column-config": xe.value,
|
|
8392
|
-
onSave:
|
|
8392
|
+
onSave: X
|
|
8393
8393
|
}, null, 8, ["columns", "column-config"])
|
|
8394
8394
|
]),
|
|
8395
8395
|
_: 1
|
|
@@ -8404,7 +8404,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8404
8404
|
content: U(o)("刷新")
|
|
8405
8405
|
}, {
|
|
8406
8406
|
default: H(() => [
|
|
8407
|
-
|
|
8407
|
+
Z(Ee, {
|
|
8408
8408
|
onClick: oe,
|
|
8409
8409
|
type: "text",
|
|
8410
8410
|
icon: "mdi:refresh"
|
|
@@ -8412,12 +8412,12 @@ const lf = /* @__PURE__ */ le({
|
|
|
8412
8412
|
]),
|
|
8413
8413
|
_: 1
|
|
8414
8414
|
}, 8, ["content"])),
|
|
8415
|
-
|
|
8415
|
+
Z(he, {
|
|
8416
8416
|
placement: "bottom",
|
|
8417
8417
|
content: re.value ? U(o)("退出全屏") : U(o)("全屏")
|
|
8418
8418
|
}, {
|
|
8419
8419
|
default: H(() => [
|
|
8420
|
-
|
|
8420
|
+
Z(Ee, {
|
|
8421
8421
|
onClick: be,
|
|
8422
8422
|
type: "text",
|
|
8423
8423
|
icon: re.value ? "mdi:fullscreen-exit" : "mdi:fullscreen"
|
|
@@ -8428,7 +8428,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8428
8428
|
])
|
|
8429
8429
|
]),
|
|
8430
8430
|
D("div", Wf, [
|
|
8431
|
-
|
|
8431
|
+
Z(Ge, {
|
|
8432
8432
|
ref_key: "tableRef",
|
|
8433
8433
|
ref: l,
|
|
8434
8434
|
columns: x.value,
|
|
@@ -8453,7 +8453,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8453
8453
|
])
|
|
8454
8454
|
]),
|
|
8455
8455
|
z.value && !m.value ? (w(), O("div", Uf, [
|
|
8456
|
-
|
|
8456
|
+
Z(ya, {
|
|
8457
8457
|
ref_key: "filterPanelRef",
|
|
8458
8458
|
ref: N,
|
|
8459
8459
|
"is-pin": z.value,
|
|
@@ -8497,7 +8497,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8497
8497
|
offset: 4
|
|
8498
8498
|
}, {
|
|
8499
8499
|
reference: H(() => [
|
|
8500
|
-
|
|
8500
|
+
Z(u, {
|
|
8501
8501
|
style: { "justify-content": "flex-start", padding: "4px 0", border: "0" },
|
|
8502
8502
|
icon: "mdi:add",
|
|
8503
8503
|
label: e.label,
|
|
@@ -8507,7 +8507,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8507
8507
|
default: H(() => [
|
|
8508
8508
|
D("div", Gf, [
|
|
8509
8509
|
D("div", Kf, [
|
|
8510
|
-
|
|
8510
|
+
Z(h, {
|
|
8511
8511
|
modelValue: a.value,
|
|
8512
8512
|
"onUpdate:modelValue": d[0] || (d[0] = (v) => a.value = v),
|
|
8513
8513
|
modelModifiers: { trim: !0 },
|
|
@@ -8516,7 +8516,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8516
8516
|
clearable: ""
|
|
8517
8517
|
}, {
|
|
8518
8518
|
prefix: H(() => [
|
|
8519
|
-
|
|
8519
|
+
Z(f, { icon: "mdi:search" })
|
|
8520
8520
|
]),
|
|
8521
8521
|
_: 1
|
|
8522
8522
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -8886,7 +8886,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8886
8886
|
onVisibleChange: (ge) => T(ge, je.data)
|
|
8887
8887
|
}, {
|
|
8888
8888
|
dropdown: H(() => [
|
|
8889
|
-
|
|
8889
|
+
Z(F, null, {
|
|
8890
8890
|
default: H(() => [
|
|
8891
8891
|
(w(!0), O(ye, null, Se(ne.children, (ge, xe) => (w(), P(I, {
|
|
8892
8892
|
key: xe,
|
|
@@ -8915,7 +8915,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8915
8915
|
}, 1024)
|
|
8916
8916
|
]),
|
|
8917
8917
|
default: H(() => [
|
|
8918
|
-
|
|
8918
|
+
Z(k, {
|
|
8919
8919
|
icon: ne.icon,
|
|
8920
8920
|
type: "text"
|
|
8921
8921
|
}, null, 8, ["icon"])
|
|
@@ -8927,7 +8927,7 @@ const lf = /* @__PURE__ */ le({
|
|
|
8927
8927
|
]),
|
|
8928
8928
|
_: 1
|
|
8929
8929
|
}, 8, ["node-key", "default-checked-keys", "default-expanded-keys", "current-node-key", "data", "default-expand-all", "show-checkbox", "highlight-current", "accordion", "filter-node-method", "render-after-expand", "draggable", "expand-on-click-node"])) : (w(), O("div", nh, [
|
|
8930
|
-
|
|
8930
|
+
Z(fe, {
|
|
8931
8931
|
description: U(l)(e.emptyDes)
|
|
8932
8932
|
}, null, 8, ["description"])
|
|
8933
8933
|
]))
|
|
@@ -9030,7 +9030,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9030
9030
|
u && u(W);
|
|
9031
9031
|
}, m = B(!1), C = R(() => o.config?.gutter || 16), b = R(() => o.config?.span || 24), y = R(() => o.config?.labelWidth), x = R(() => o.config?.labelPosition || "right"), S = R(
|
|
9032
9032
|
() => _.length === 1 && (_[0].type === "j-tabs" || _[0].type === "j-layout" || _[0].config?.isAutoWindow)
|
|
9033
|
-
), g =
|
|
9033
|
+
), g = Sn({}), E = B({}), _ = [], j = {}, M = B({});
|
|
9034
9034
|
let T = {}, q = {}, N = [], z = {};
|
|
9035
9035
|
const $ = (W) => {
|
|
9036
9036
|
i("change", W);
|
|
@@ -9187,7 +9187,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9187
9187
|
};
|
|
9188
9188
|
}
|
|
9189
9189
|
return { rules: [], myGridtableId: "" };
|
|
9190
|
-
}, { validateForm: Je } = ch(g, De),
|
|
9190
|
+
}, { validateForm: Je } = ch(g, De), X = async () => {
|
|
9191
9191
|
E.value = {};
|
|
9192
9192
|
const W = await Je();
|
|
9193
9193
|
return Object.keys(W).length > 0 ? (E.value = W, v(
|
|
@@ -9269,7 +9269,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9269
9269
|
}), W.httpPost = c || (() => {
|
|
9270
9270
|
console.log("当前状态不支持");
|
|
9271
9271
|
}), W.loading = (oe) => {
|
|
9272
|
-
|
|
9272
|
+
In(oe);
|
|
9273
9273
|
}, W.showMsg = ({ text: oe, type: G }) => {
|
|
9274
9274
|
switch (G) {
|
|
9275
9275
|
case "success":
|
|
@@ -9312,7 +9312,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9312
9312
|
}), t({
|
|
9313
9313
|
init: Te,
|
|
9314
9314
|
reset: re,
|
|
9315
|
-
validate:
|
|
9315
|
+
validate: X,
|
|
9316
9316
|
setValue: Pe,
|
|
9317
9317
|
getValue: Xe,
|
|
9318
9318
|
getLabel: nt,
|
|
@@ -9336,7 +9336,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9336
9336
|
gutter: C.value
|
|
9337
9337
|
}, {
|
|
9338
9338
|
default: H(() => [
|
|
9339
|
-
(w(), O(ye, null, Se(_, (Q) =>
|
|
9339
|
+
(w(), O(ye, null, Se(_, (Q) => Z(G, ze({
|
|
9340
9340
|
key: Q.id,
|
|
9341
9341
|
ref_for: !0
|
|
9342
9342
|
}, Q), null, 16)), 64))
|
|
@@ -9397,7 +9397,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9397
9397
|
}
|
|
9398
9398
|
},
|
|
9399
9399
|
setup(e) {
|
|
9400
|
-
const t = e, { formData: n, compsConfig: o, errorFields: i, isAutoWindow: a, span: l, labelWidth: r } =
|
|
9400
|
+
const t = e, { formData: n, compsConfig: o, errorFields: i, isAutoWindow: a, span: l, labelWidth: r } = Mn(), { t: c } = ot(), s = R(() => xn({
|
|
9401
9401
|
config: { ...t.config || {}, ...o?.value?.[t.id] || {} },
|
|
9402
9402
|
getCompConfig: t.getCompConfig,
|
|
9403
9403
|
formData: n
|
|
@@ -9425,7 +9425,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9425
9425
|
error: U(c)(p.value)
|
|
9426
9426
|
}, {
|
|
9427
9427
|
default: H(() => [
|
|
9428
|
-
|
|
9428
|
+
Z(C, {
|
|
9429
9429
|
id: e.id,
|
|
9430
9430
|
type: d.value,
|
|
9431
9431
|
config: s.value,
|
|
@@ -9478,7 +9478,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9478
9478
|
}
|
|
9479
9479
|
},
|
|
9480
9480
|
setup(e, { expose: t }) {
|
|
9481
|
-
const n = e, o = B(!1), i = [], a = {}, l =
|
|
9481
|
+
const n = e, o = B(!1), i = Sn([]), a = {}, l = Sn({}), r = (s, d) => {
|
|
9482
9482
|
s.forEach((u) => {
|
|
9483
9483
|
u.id = u.id || Ti("c");
|
|
9484
9484
|
const f = {
|
|
@@ -9498,13 +9498,13 @@ const uh = /* @__PURE__ */ le({
|
|
|
9498
9498
|
return n.schema && c(n.schema), t({ init: c }), (s, d) => {
|
|
9499
9499
|
const u = V("j-comp");
|
|
9500
9500
|
return w(), O("div", ph, [
|
|
9501
|
-
(w(), O(ye, null, Se(i, (f) =>
|
|
9501
|
+
(w(!0), O(ye, null, Se(i, (f) => (w(), P(u, {
|
|
9502
9502
|
key: f.id,
|
|
9503
9503
|
id: f.id,
|
|
9504
9504
|
type: f.type,
|
|
9505
9505
|
config: f.config,
|
|
9506
9506
|
children: f.children
|
|
9507
|
-
}, null, 8, ["id", "type", "config", "children"])),
|
|
9507
|
+
}, null, 8, ["id", "type", "config", "children"]))), 128))
|
|
9508
9508
|
]);
|
|
9509
9509
|
};
|
|
9510
9510
|
}
|
|
@@ -9604,7 +9604,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9604
9604
|
},
|
|
9605
9605
|
emits: ["update:modelValue", "change", "rowChange"],
|
|
9606
9606
|
setup(e, { emit: t }) {
|
|
9607
|
-
const n = (x) => x == null, o = e, i = t, { formData: a } =
|
|
9607
|
+
const n = (x) => x == null, o = e, i = t, { formData: a } = Mn(), l = R(() => o.editConfig.isAddBtn !== !1), r = R(() => o.editConfig.addBtnText || "添加"), c = R(() => o.editConfig.buttonsAlign || "left"), s = R(() => o.editConfig.isRemoveBtn !== !1), d = R(() => o.editConfig.readonly), u = R(() => o.editConfig.drag), f = R(() => o.editConfig.isNullValue !== !1), h = B(), p = [
|
|
9608
9608
|
"A",
|
|
9609
9609
|
"B",
|
|
9610
9610
|
"C",
|
|
@@ -9805,7 +9805,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9805
9805
|
}
|
|
9806
9806
|
},
|
|
9807
9807
|
setup(e) {
|
|
9808
|
-
const t = e, n =
|
|
9808
|
+
const t = e, n = Mn(), { t: o } = ot(), i = R(() => t.formConfig?.gutter || 16), a = R(() => t.formConfig?.span || 24), l = R(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = R(
|
|
9809
9809
|
() => t.formConfig?.labelPosition || n.labelPosition?.value || "right"
|
|
9810
9810
|
), c = R(
|
|
9811
9811
|
() => t.schema?.length === 1 && (t.schema?.[0]?.type === "j-tabs" || t.schema?.[0]?.type === "j-layout" || t.schema?.[0]?.config?.isAutoWindow)
|
|
@@ -9821,13 +9821,13 @@ const uh = /* @__PURE__ */ le({
|
|
|
9821
9821
|
}), (u, f) => {
|
|
9822
9822
|
const h = V("j-button"), p = V("j-form-item"), v = V("el-row"), m = V("el-form"), C = V("j-dialog");
|
|
9823
9823
|
return w(), O("div", null, [
|
|
9824
|
-
|
|
9824
|
+
Z(h, ze(u.$attrs, {
|
|
9825
9825
|
type: e.type,
|
|
9826
9826
|
size: e.size,
|
|
9827
9827
|
icon: e.icon,
|
|
9828
9828
|
onClick: d
|
|
9829
9829
|
}), null, 16, ["type", "size", "icon"]),
|
|
9830
|
-
|
|
9830
|
+
Z(C, {
|
|
9831
9831
|
visible: s.value,
|
|
9832
9832
|
"onUpdate:visible": f[1] || (f[1] = (b) => s.value = b),
|
|
9833
9833
|
title: U(o)(e.layerLabel || "设置"),
|
|
@@ -9836,7 +9836,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
9836
9836
|
"has-btns": !1
|
|
9837
9837
|
}, {
|
|
9838
9838
|
default: H(() => [
|
|
9839
|
-
|
|
9839
|
+
Z(m, {
|
|
9840
9840
|
class: Ce(["j-block", "j-layer-form"]),
|
|
9841
9841
|
"label-position": r.value,
|
|
9842
9842
|
"label-width": l.value,
|
|
@@ -10277,7 +10277,7 @@ const uh = /* @__PURE__ */ le({
|
|
|
10277
10277
|
style: me({ height: e.height })
|
|
10278
10278
|
}, [
|
|
10279
10279
|
a.value ? (w(), O("div", Oh, [
|
|
10280
|
-
|
|
10280
|
+
Z(nn, {
|
|
10281
10281
|
icon: "mdi:loading",
|
|
10282
10282
|
class: "is-loading",
|
|
10283
10283
|
size: 30
|
|
@@ -10521,7 +10521,7 @@ function Dt(e, t) {
|
|
|
10521
10521
|
return o = i, !1;
|
|
10522
10522
|
}), o;
|
|
10523
10523
|
}
|
|
10524
|
-
function
|
|
10524
|
+
function En(e, t) {
|
|
10525
10525
|
const n = Oi(t);
|
|
10526
10526
|
let o = [];
|
|
10527
10527
|
return se(e, function(i, a) {
|
|
@@ -10546,13 +10546,13 @@ function Kh(e, t) {
|
|
|
10546
10546
|
return !n(o, i);
|
|
10547
10547
|
});
|
|
10548
10548
|
}
|
|
10549
|
-
function
|
|
10549
|
+
function jn(e, t, n) {
|
|
10550
10550
|
return se(e, function(o, i) {
|
|
10551
10551
|
n = t(n, o, i);
|
|
10552
10552
|
}), n;
|
|
10553
10553
|
}
|
|
10554
10554
|
function Vl(e, t) {
|
|
10555
|
-
return !!
|
|
10555
|
+
return !!jn(e, function(n, o, i) {
|
|
10556
10556
|
return n && t(o, i);
|
|
10557
10557
|
}, !0);
|
|
10558
10558
|
}
|
|
@@ -10907,7 +10907,7 @@ function Ul(e, t) {
|
|
|
10907
10907
|
}), e;
|
|
10908
10908
|
}
|
|
10909
10909
|
function mp(e) {
|
|
10910
|
-
return
|
|
10910
|
+
return En(e, function(t) {
|
|
10911
10911
|
return !Dt(e, function(n) {
|
|
10912
10912
|
return n !== t && Jl(t, n);
|
|
10913
10913
|
});
|
|
@@ -10929,7 +10929,7 @@ function Yl(e, t, n) {
|
|
|
10929
10929
|
}
|
|
10930
10930
|
function yp(e, t, n) {
|
|
10931
10931
|
Ri(t) && (t = !0), Nt(t) && (n = t, t = !0), n = n || {};
|
|
10932
|
-
var o =
|
|
10932
|
+
var o = Ln(n.allShapes), i = Ln(n.allConnections), a = Ln(n.enclosedElements), l = Ln(n.enclosedConnections), r = Ln(
|
|
10933
10933
|
n.topLevel,
|
|
10934
10934
|
t && Fl(e, function(d) {
|
|
10935
10935
|
return d.id;
|
|
@@ -10973,7 +10973,7 @@ function bp(e) {
|
|
|
10973
10973
|
function Gl(e) {
|
|
10974
10974
|
return !!(e && e.isFrame);
|
|
10975
10975
|
}
|
|
10976
|
-
function
|
|
10976
|
+
function Ln(e, t) {
|
|
10977
10977
|
return pe({}, e || {}, t || {});
|
|
10978
10978
|
}
|
|
10979
10979
|
var wp = 1;
|
|
@@ -11031,7 +11031,7 @@ function xp() {
|
|
|
11031
11031
|
return pe(a, { class: n });
|
|
11032
11032
|
}, this.style = function(n, o) {
|
|
11033
11033
|
!qe(n) && !o && (o = n, n = []);
|
|
11034
|
-
var i =
|
|
11034
|
+
var i = jn(n, function(a, l) {
|
|
11035
11035
|
return pe(a, e[l] || {});
|
|
11036
11036
|
}, {});
|
|
11037
11037
|
return o ? pe(i, o) : i;
|
|
@@ -11146,7 +11146,7 @@ var Ca = {
|
|
|
11146
11146
|
bind: Ap,
|
|
11147
11147
|
unbind: Rp
|
|
11148
11148
|
};
|
|
11149
|
-
function
|
|
11149
|
+
function zn(e, t) {
|
|
11150
11150
|
return t = t || document, t.querySelector(e);
|
|
11151
11151
|
}
|
|
11152
11152
|
function Pp(e, t) {
|
|
@@ -11447,8 +11447,8 @@ function Ra(e, t, n, o, i, a) {
|
|
|
11447
11447
|
}
|
|
11448
11448
|
function Zl(e, t, n, o, i, a, l, r, c, s) {
|
|
11449
11449
|
var d = Rt * 120 / 180, u = Rt / 180 * (+i || 0), f = [], h, p = Hp(function(xe, De, Je) {
|
|
11450
|
-
var
|
|
11451
|
-
return { x:
|
|
11450
|
+
var X = xe * Ye.cos(Je) - De * Ye.sin(Je), re = xe * Ye.sin(Je) + De * Ye.cos(Je);
|
|
11451
|
+
return { x: X, y: re };
|
|
11452
11452
|
});
|
|
11453
11453
|
if (s)
|
|
11454
11454
|
E = s[0], _ = s[1], S = s[2], g = s[3];
|
|
@@ -11549,7 +11549,7 @@ function Et(e) {
|
|
|
11549
11549
|
function Ql(e) {
|
|
11550
11550
|
return Nt(e) && Pi(e, "labelTarget");
|
|
11551
11551
|
}
|
|
11552
|
-
function
|
|
11552
|
+
function Vn(e) {
|
|
11553
11553
|
return {
|
|
11554
11554
|
x: Math.round(e.x),
|
|
11555
11555
|
y: Math.round(e.y)
|
|
@@ -11564,7 +11564,7 @@ function jo(e) {
|
|
|
11564
11564
|
};
|
|
11565
11565
|
}
|
|
11566
11566
|
function tv(e) {
|
|
11567
|
-
return
|
|
11567
|
+
return Vn({
|
|
11568
11568
|
x: e.x + (e.width || 0) / 2,
|
|
11569
11569
|
y: e.y + (e.height || 0) / 2
|
|
11570
11570
|
});
|
|
@@ -11603,10 +11603,10 @@ function Jn(e, t, n) {
|
|
|
11603
11603
|
}
|
|
11604
11604
|
function ov(e, t, n) {
|
|
11605
11605
|
var o = iv(e, t);
|
|
11606
|
-
return o.length === 1 || o.length === 2 && Ni(o[0], o[1]) < 1 ?
|
|
11606
|
+
return o.length === 1 || o.length === 2 && Ni(o[0], o[1]) < 1 ? Vn(o[0]) : o.length > 1 ? (o = Dl(o, function(i) {
|
|
11607
11607
|
var a = Math.floor(i.t2 * 100) || 1;
|
|
11608
11608
|
return a = 100 - a, a = (a < 10 ? "0" : "") + a, i.segment2 + "#" + a;
|
|
11609
|
-
}),
|
|
11609
|
+
}), Vn(o[n ? 0 : o.length - 1])) : null;
|
|
11610
11610
|
}
|
|
11611
11611
|
function iv(e, t) {
|
|
11612
11612
|
return Xp(e, t);
|
|
@@ -11723,7 +11723,7 @@ ue.prototype.getLayer = function(e, t) {
|
|
|
11723
11723
|
return n.group;
|
|
11724
11724
|
};
|
|
11725
11725
|
ue.prototype._getChildIndex = function(e) {
|
|
11726
|
-
return
|
|
11726
|
+
return jn(this._layers, function(t, n) {
|
|
11727
11727
|
return n.visible && e >= n.index && t++, t;
|
|
11728
11728
|
}, 0);
|
|
11729
11729
|
};
|
|
@@ -12014,18 +12014,18 @@ ue.prototype.getAbsoluteBBox = function(e) {
|
|
|
12014
12014
|
ue.prototype.resized = function() {
|
|
12015
12015
|
delete this._cachedViewbox, this._eventBus.fire("canvas.resized");
|
|
12016
12016
|
};
|
|
12017
|
-
var
|
|
12017
|
+
var Tn = "data-element-id";
|
|
12018
12018
|
function ft(e) {
|
|
12019
12019
|
this._elements = {}, this._eventBus = e;
|
|
12020
12020
|
}
|
|
12021
12021
|
ft.$inject = ["eventBus"];
|
|
12022
12022
|
ft.prototype.add = function(e, t, n) {
|
|
12023
12023
|
var o = e.id;
|
|
12024
|
-
this._validateId(o), ke(t,
|
|
12024
|
+
this._validateId(o), ke(t, Tn, o), n && ke(n, Tn, o), this._elements[o] = { element: e, gfx: t, secondaryGfx: n };
|
|
12025
12025
|
};
|
|
12026
12026
|
ft.prototype.remove = function(e) {
|
|
12027
12027
|
var t = this._elements, n = e.id || e, o = n && t[n];
|
|
12028
|
-
o && (ke(o.gfx,
|
|
12028
|
+
o && (ke(o.gfx, Tn, ""), o.secondaryGfx && ke(o.secondaryGfx, Tn, ""), delete t[n]);
|
|
12029
12029
|
};
|
|
12030
12030
|
ft.prototype.updateId = function(e, t) {
|
|
12031
12031
|
this._validateId(t), typeof e == "string" && (e = this.get(e)), this._eventBus.fire("element.updateId", {
|
|
@@ -12037,11 +12037,11 @@ ft.prototype.updateId = function(e, t) {
|
|
|
12037
12037
|
};
|
|
12038
12038
|
ft.prototype.updateGraphics = function(e, t, n) {
|
|
12039
12039
|
var o = e.id || e, i = this._elements[o];
|
|
12040
|
-
return n ? i.secondaryGfx = t : i.gfx = t, t && ke(t,
|
|
12040
|
+
return n ? i.secondaryGfx = t : i.gfx = t, t && ke(t, Tn, o), t;
|
|
12041
12041
|
};
|
|
12042
12042
|
ft.prototype.get = function(e) {
|
|
12043
12043
|
var t;
|
|
12044
|
-
typeof e == "string" ? t = e : t = e && ke(e,
|
|
12044
|
+
typeof e == "string" ? t = e : t = e && ke(e, Tn);
|
|
12045
12045
|
var n = this._elements[t];
|
|
12046
12046
|
return n && n.element;
|
|
12047
12047
|
};
|
|
@@ -12163,7 +12163,7 @@ vt.prototype.set = function(e, t, n) {
|
|
|
12163
12163
|
e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).add(n) : e[t.name] = n);
|
|
12164
12164
|
};
|
|
12165
12165
|
var Wi = new vt({ name: "children", enumerable: !0, collection: !0 }, { name: "parent" }), ir = new vt({ name: "labels", enumerable: !0, collection: !0 }, { name: "labelTarget" }), Oa = new vt({ name: "attachers", collection: !0 }, { name: "host" }), ar = new vt({ name: "outgoing", collection: !0 }, { name: "source" }), lr = new vt({ name: "incoming", collection: !0 }, { name: "target" });
|
|
12166
|
-
function
|
|
12166
|
+
function An() {
|
|
12167
12167
|
Object.defineProperty(this, "businessObject", {
|
|
12168
12168
|
writable: !0
|
|
12169
12169
|
}), Object.defineProperty(this, "label", {
|
|
@@ -12177,11 +12177,11 @@ function Mn() {
|
|
|
12177
12177
|
}), Wi.bind(this, "parent"), ir.bind(this, "labels"), ar.bind(this, "outgoing"), lr.bind(this, "incoming");
|
|
12178
12178
|
}
|
|
12179
12179
|
function Yn() {
|
|
12180
|
-
|
|
12180
|
+
An.call(this), Wi.bind(this, "children"), Oa.bind(this, "host"), Oa.bind(this, "attachers");
|
|
12181
12181
|
}
|
|
12182
|
-
ln(Yn,
|
|
12182
|
+
ln(Yn, An);
|
|
12183
12183
|
function rr() {
|
|
12184
|
-
|
|
12184
|
+
An.call(this), Wi.bind(this, "children");
|
|
12185
12185
|
}
|
|
12186
12186
|
ln(rr, Yn);
|
|
12187
12187
|
function sr() {
|
|
@@ -12189,9 +12189,9 @@ function sr() {
|
|
|
12189
12189
|
}
|
|
12190
12190
|
ln(sr, Yn);
|
|
12191
12191
|
function cr() {
|
|
12192
|
-
|
|
12192
|
+
An.call(this), ar.bind(this, "source"), lr.bind(this, "target");
|
|
12193
12193
|
}
|
|
12194
|
-
ln(cr,
|
|
12194
|
+
ln(cr, An);
|
|
12195
12195
|
var vv = {
|
|
12196
12196
|
connection: cr,
|
|
12197
12197
|
shape: Yn,
|
|
@@ -12205,7 +12205,7 @@ function gv(e, t) {
|
|
|
12205
12205
|
return pe(new n(), t);
|
|
12206
12206
|
}
|
|
12207
12207
|
function mv(e) {
|
|
12208
|
-
return e instanceof
|
|
12208
|
+
return e instanceof An;
|
|
12209
12209
|
}
|
|
12210
12210
|
function Bt() {
|
|
12211
12211
|
this._uid = 12;
|
|
@@ -12384,7 +12384,7 @@ ht.prototype.create = function(e, t, n) {
|
|
|
12384
12384
|
};
|
|
12385
12385
|
ht.prototype.updateContainments = function(e) {
|
|
12386
12386
|
var t = this, n = this._elementRegistry, o;
|
|
12387
|
-
o =
|
|
12387
|
+
o = jn(e, function(i, a) {
|
|
12388
12388
|
return a.parent && (i[a.parent.id] = a.parent), i;
|
|
12389
12389
|
}, {}), se(o, function(i) {
|
|
12390
12390
|
var a = i.children;
|
|
@@ -12477,7 +12477,7 @@ function Io(e) {
|
|
|
12477
12477
|
function ri(e) {
|
|
12478
12478
|
Ia(e), Ia(Io(e));
|
|
12479
12479
|
}
|
|
12480
|
-
function
|
|
12480
|
+
function Nn(e) {
|
|
12481
12481
|
return e.pointers && e.pointers.length && (e = e.pointers[0]), e.touches && e.touches.length && (e = e.touches[0]), e ? {
|
|
12482
12482
|
x: e.clientX,
|
|
12483
12483
|
y: e.clientY
|
|
@@ -12511,7 +12511,7 @@ function fr(e, t, n) {
|
|
|
12511
12511
|
})(), this._findTargetGfx = function(l) {
|
|
12512
12512
|
var r, c;
|
|
12513
12513
|
if (l instanceof MouseEvent)
|
|
12514
|
-
return r =
|
|
12514
|
+
return r = Nn(l), c = document.elementFromPoint(r.x, r.y), Sv(c);
|
|
12515
12515
|
};
|
|
12516
12516
|
}
|
|
12517
12517
|
fr.$inject = [
|
|
@@ -12675,7 +12675,7 @@ function pr(e, t, n) {
|
|
|
12675
12675
|
var T = Ne("rect");
|
|
12676
12676
|
return g(T, j), ke(T, M), E(_, T), T;
|
|
12677
12677
|
}, this.updateDefaultHit = function(_, j) {
|
|
12678
|
-
var M =
|
|
12678
|
+
var M = zn(".djs-hit", j);
|
|
12679
12679
|
if (M)
|
|
12680
12680
|
return _.waypoints ? Ul(M, _.waypoints) : ke(M, {
|
|
12681
12681
|
width: _.width,
|
|
@@ -12692,7 +12692,7 @@ const Bv = {
|
|
|
12692
12692
|
__init__: ["interactionEvents"],
|
|
12693
12693
|
interactionEvents: ["type", pr]
|
|
12694
12694
|
};
|
|
12695
|
-
function
|
|
12695
|
+
function Rn(e, t) {
|
|
12696
12696
|
this._eventBus = e, this._canvas = t, this._selectedElements = [];
|
|
12697
12697
|
var n = this;
|
|
12698
12698
|
e.on(["shape.remove", "connection.remove"], function(o) {
|
|
@@ -12702,21 +12702,21 @@ function An(e, t) {
|
|
|
12702
12702
|
n.select(null);
|
|
12703
12703
|
});
|
|
12704
12704
|
}
|
|
12705
|
-
|
|
12706
|
-
|
|
12705
|
+
Rn.$inject = ["eventBus", "canvas"];
|
|
12706
|
+
Rn.prototype.deselect = function(e) {
|
|
12707
12707
|
var t = this._selectedElements, n = t.indexOf(e);
|
|
12708
12708
|
if (n !== -1) {
|
|
12709
12709
|
var o = t.slice();
|
|
12710
12710
|
t.splice(n, 1), this._eventBus.fire("selection.changed", { oldSelection: o, newSelection: t });
|
|
12711
12711
|
}
|
|
12712
12712
|
};
|
|
12713
|
-
|
|
12713
|
+
Rn.prototype.get = function() {
|
|
12714
12714
|
return this._selectedElements;
|
|
12715
12715
|
};
|
|
12716
|
-
|
|
12716
|
+
Rn.prototype.isSelected = function(e) {
|
|
12717
12717
|
return this._selectedElements.indexOf(e) !== -1;
|
|
12718
12718
|
};
|
|
12719
|
-
|
|
12719
|
+
Rn.prototype.select = function(e, t) {
|
|
12720
12720
|
var n = this._selectedElements, o = n.slice();
|
|
12721
12721
|
qe(e) || (e = e ? [e] : []);
|
|
12722
12722
|
var i = this._canvas, a = i.getRootElement();
|
|
@@ -12800,7 +12800,7 @@ const Fo = {
|
|
|
12800
12800
|
__depends__: [
|
|
12801
12801
|
Bv
|
|
12802
12802
|
],
|
|
12803
|
-
selection: ["type",
|
|
12803
|
+
selection: ["type", Rn],
|
|
12804
12804
|
selectionVisuals: ["type", vr],
|
|
12805
12805
|
selectionBehavior: ["type", gr]
|
|
12806
12806
|
};
|
|
@@ -12878,7 +12878,7 @@ function br(e, t, n, o) {
|
|
|
12878
12878
|
x.length && n.select(x);
|
|
12879
12879
|
}
|
|
12880
12880
|
function s(y, x) {
|
|
12881
|
-
var S = a.payload, g = a.displacement, E = a.globalStart, _ =
|
|
12881
|
+
var S = a.payload, g = a.displacement, E = a.globalStart, _ = Nn(y), j = Cn(_, E), M = a.localStart, T = l(_), q = Cn(T, M);
|
|
12882
12882
|
if (!a.active && (x || Ov(j) > a.threshold)) {
|
|
12883
12883
|
if (pe(S, {
|
|
12884
12884
|
x: pn(M.x + g.x),
|
|
@@ -12935,7 +12935,7 @@ function br(e, t, n, o) {
|
|
|
12935
12935
|
function b(y, x, S, g) {
|
|
12936
12936
|
a && m(!1), typeof x == "string" && (g = S, S = x, x = null), g = pe({}, i, g || {});
|
|
12937
12937
|
var E = g.data || {}, _, j, M, T, q;
|
|
12938
|
-
g.trapClick ? T = f : T = d, y ? (_ = Io(y) || y, j =
|
|
12938
|
+
g.trapClick ? T = f : T = d, y ? (_ = Io(y) || y, j = Nn(y), ri(y), _.type === "dragstart" && Zt(_)) : (_ = null, j = { x: 0, y: 0 }), M = l(j), x || (x = M), q = Lv(_), a = pe({
|
|
12939
12939
|
prefix: S,
|
|
12940
12940
|
data: E,
|
|
12941
12941
|
payload: {},
|
|
@@ -13030,18 +13030,18 @@ Yt.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
|
|
|
13030
13030
|
});
|
|
13031
13031
|
};
|
|
13032
13032
|
Yt.prototype._cloneMarker = function(e, t, n, o, i = "djs-dragger") {
|
|
13033
|
-
var a = [n.id, i, Iv.next()].join("-"), l =
|
|
13033
|
+
var a = [n.id, i, Iv.next()].join("-"), l = zn("marker#" + n.id, e);
|
|
13034
13034
|
e = e || this._canvas._svg;
|
|
13035
13035
|
var r = l || Hl(n);
|
|
13036
13036
|
r.id = a, yt(r).add(i);
|
|
13037
|
-
var c =
|
|
13037
|
+
var c = zn(":scope > defs", e);
|
|
13038
13038
|
c || (c = Ne("defs"), We(e, c)), We(c, r);
|
|
13039
13039
|
var s = Nv(r.id);
|
|
13040
13040
|
ke(t, o, s);
|
|
13041
13041
|
};
|
|
13042
13042
|
function Dv(e, t, n) {
|
|
13043
13043
|
var o = zv(ke(e, t));
|
|
13044
|
-
return
|
|
13044
|
+
return zn("marker#" + o, n || document);
|
|
13045
13045
|
}
|
|
13046
13046
|
function zv(e) {
|
|
13047
13047
|
return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1];
|
|
@@ -13073,7 +13073,7 @@ function kr(e, t, n, o, i) {
|
|
|
13073
13073
|
function a(c, s, d, u, f) {
|
|
13074
13074
|
if (!s)
|
|
13075
13075
|
return !1;
|
|
13076
|
-
c =
|
|
13076
|
+
c = En(c, function(b) {
|
|
13077
13077
|
var y = b.labelTarget;
|
|
13078
13078
|
return !b.parent && !(Ql(b) && c.indexOf(y) !== -1);
|
|
13079
13079
|
});
|
|
@@ -13173,7 +13173,7 @@ function kr(e, t, n, o, i) {
|
|
|
13173
13173
|
}, d || {}), se(s, function(p) {
|
|
13174
13174
|
dt(p.x) || (p.x = 0), dt(p.y) || (p.y = 0);
|
|
13175
13175
|
});
|
|
13176
|
-
var f =
|
|
13176
|
+
var f = En(s, function(p) {
|
|
13177
13177
|
return !p.hidden;
|
|
13178
13178
|
}), h = Oo(f);
|
|
13179
13179
|
se(s, function(p) {
|
|
@@ -13365,7 +13365,7 @@ function jr(e, t) {
|
|
|
13365
13365
|
r.focused ? e.on("element.mousedown", 500, o) : e.off("element.mousedown", o);
|
|
13366
13366
|
});
|
|
13367
13367
|
function i(r) {
|
|
13368
|
-
var c = n.start, s = n.button, d =
|
|
13368
|
+
var c = n.start, s = n.button, d = Nn(r), u = Cn(d, c);
|
|
13369
13369
|
if (!n.dragging && Qv(u) > Zv && (n.dragging = !0, s === 0 && yr(e), Ui("grab")), n.dragging) {
|
|
13370
13370
|
var f = n.last || n.start;
|
|
13371
13371
|
u = Cn(d, f), t.scroll({
|
|
@@ -13384,7 +13384,7 @@ function jr(e, t) {
|
|
|
13384
13384
|
if (!(c >= 2 || r.ctrlKey || r.shiftKey || r.altKey))
|
|
13385
13385
|
return n = {
|
|
13386
13386
|
button: c,
|
|
13387
|
-
start:
|
|
13387
|
+
start: Nn(r)
|
|
13388
13388
|
}, Ve.bind(document, "mousemove", i), Ve.bind(document, "mouseup", a), !0;
|
|
13389
13389
|
}
|
|
13390
13390
|
}
|
|
@@ -13713,7 +13713,7 @@ Gi.$inject = [
|
|
|
13713
13713
|
"modeling"
|
|
13714
13714
|
];
|
|
13715
13715
|
function Qa(e) {
|
|
13716
|
-
return
|
|
13716
|
+
return En(e, function(t) {
|
|
13717
13717
|
return e.indexOf(t.labelTarget) === -1;
|
|
13718
13718
|
});
|
|
13719
13719
|
}
|
|
@@ -13898,7 +13898,7 @@ Ki.prototype.preExecute = function(e) {
|
|
|
13898
13898
|
se(t, function(u) {
|
|
13899
13899
|
dt(u.x) || (u.x = 0), dt(u.y) || (u.y = 0);
|
|
13900
13900
|
});
|
|
13901
|
-
var r =
|
|
13901
|
+
var r = En(t, function(u) {
|
|
13902
13902
|
return !u.hidden;
|
|
13903
13903
|
}), c = Oo(r);
|
|
13904
13904
|
se(t, function(u) {
|
|
@@ -14128,7 +14128,7 @@ function Uo(e, t, n) {
|
|
|
14128
14128
|
x: a.x * (n.width / t.width),
|
|
14129
14129
|
y: a.y * (n.height / t.height)
|
|
14130
14130
|
};
|
|
14131
|
-
return
|
|
14131
|
+
return Vn({
|
|
14132
14132
|
x: i.x + l.x,
|
|
14133
14133
|
y: i.y + l.y
|
|
14134
14134
|
});
|
|
@@ -14165,7 +14165,7 @@ function Jo(e) {
|
|
|
14165
14165
|
}
|
|
14166
14166
|
function Rr(e, t) {
|
|
14167
14167
|
var n = Ut(e, wg);
|
|
14168
|
-
return
|
|
14168
|
+
return En(n, function(o) {
|
|
14169
14169
|
return bg(o, t);
|
|
14170
14170
|
});
|
|
14171
14171
|
}
|
|
@@ -14398,11 +14398,11 @@ function xg(e, t) {
|
|
|
14398
14398
|
var i = o.incoming, a = o.outgoing;
|
|
14399
14399
|
se(i.concat(a), function(l) {
|
|
14400
14400
|
var r = l.source, c = l.target;
|
|
14401
|
-
(
|
|
14401
|
+
(On(e, r) || On(e, c) || On(t, r) || On(t, c)) && (On(n, l) || n.push(l));
|
|
14402
14402
|
});
|
|
14403
14403
|
}), n;
|
|
14404
14404
|
}
|
|
14405
|
-
function
|
|
14405
|
+
function On(e, t) {
|
|
14406
14406
|
return e.indexOf(t) !== -1;
|
|
14407
14407
|
}
|
|
14408
14408
|
function Cg(e, t, n) {
|
|
@@ -15510,7 +15510,7 @@ function un(e, t, n, o, i, a, l) {
|
|
|
15510
15510
|
orient: "auto"
|
|
15511
15511
|
});
|
|
15512
15512
|
We(fe, ie);
|
|
15513
|
-
let Te =
|
|
15513
|
+
let Te = zn(":scope > defs", ae);
|
|
15514
15514
|
Te || (Te = Ne("defs"), We(ae, Te)), We(Te, fe);
|
|
15515
15515
|
}
|
|
15516
15516
|
function T($, k, I, F) {
|
|
@@ -15848,9 +15848,9 @@ qo.prototype.layoutText = function(e, t) {
|
|
|
15848
15848
|
for (We(f, u); c.length; )
|
|
15849
15849
|
s.push(cm(c, d, u));
|
|
15850
15850
|
i.vertical === "middle" && (a.top = a.bottom = 0);
|
|
15851
|
-
var h =
|
|
15851
|
+
var h = jn(s, function(b, y, x) {
|
|
15852
15852
|
return b + (r || y.height);
|
|
15853
|
-
}, 0) + a.top + a.bottom, p =
|
|
15853
|
+
}, 0) + a.top + a.bottom, p = jn(s, function(b, y, x) {
|
|
15854
15854
|
return y.width > b ? y.width : b;
|
|
15855
15855
|
}, 0), v = a.top;
|
|
15856
15856
|
i.vertical === "middle" && (v += (n.height - h) / 2), v -= (r || s[0].height) / 4;
|
|
@@ -16392,7 +16392,7 @@ export {
|
|
|
16392
16392
|
yy as default,
|
|
16393
16393
|
ro as formatToDate,
|
|
16394
16394
|
rc as formatToDateTime,
|
|
16395
|
-
|
|
16395
|
+
In as fullScreenLoading,
|
|
16396
16396
|
xn as getCompConfig,
|
|
16397
16397
|
kl as getCompType,
|
|
16398
16398
|
bl as getFunction,
|