mvframe 1.1.3 → 1.1.7
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/Config.js +131 -82
- package/dist/composition.js +262 -237
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1139 -1112
- package/package.json +1 -1
package/dist/vendor.js
CHANGED
|
@@ -2,7 +2,7 @@ import { u as Pa } from "./util.js";
|
|
|
2
2
|
import { d as xa } from "./directive.js";
|
|
3
3
|
import { s as Qe, p as ea, a as Na } from "./store-shared.js";
|
|
4
4
|
import { createRouter as La, createWebHistory as $a, useRoute as aa, useRouter as la } from "vue-router";
|
|
5
|
-
import { computed as C, openBlock as A, createElementBlock as
|
|
5
|
+
import { computed as C, openBlock as A, createElementBlock as E, mergeProps as oe, unref as t, Fragment as ne, renderList as se, normalizeClass as G, createCommentVNode as V, createTextVNode as te, toDisplayString as x, renderSlot as Z, createElementVNode as d, reactive as q, onUnmounted as be, watch as re, markRaw as Ae, resolveComponent as F, createVNode as j, withCtx as N, createBlock as Q, resolveDynamicComponent as na, nextTick as de, getCurrentInstance as ue, ref as X, onMounted as ie, normalizeStyle as ce, defineComponent as oa, cloneVNode as De, h as Re, inject as _e, withModifiers as pe, defineAsyncComponent as ta, Teleport as ja, Transition as ra, createSlots as me, normalizeProps as we, guardReactiveProps as Me, useSlots as Ia, useAttrs as ve, withKeys as ia, createStaticVNode as Ba, isRef as sa, onBeforeMount as Da } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { deepEqual as Fe, isInView as Ra, loadMvframeTheme as Fa, MVFRAME_STORAGE_LANG as Ge, download as Ga, useRemoteSummary as Va, useOptions as Ka, useLang as Ua } from "./composition.js";
|
|
8
8
|
import Ve from "vuedraggable";
|
|
@@ -1157,17 +1157,17 @@ const Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1157
1157
|
if (Fl.indexOf(e) === -1)
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
{
|
|
1160
|
-
const o = /* @__PURE__ */ new Date(), a = new Date(o.getFullYear(), 0, 1), l = new Date(o.getFullYear(), 6, 1), n = (
|
|
1161
|
-
var
|
|
1162
|
-
const s = ((
|
|
1160
|
+
const o = /* @__PURE__ */ new Date(), a = new Date(o.getFullYear(), 0, 1), l = new Date(o.getFullYear(), 6, 1), n = (v) => {
|
|
1161
|
+
var B;
|
|
1162
|
+
const s = ((B = new Intl.DateTimeFormat("en-US", {
|
|
1163
1163
|
timeZone: e,
|
|
1164
1164
|
timeZoneName: "longOffset"
|
|
1165
|
-
}).formatToParts(
|
|
1165
|
+
}).formatToParts(v).find((f) => f.type === "timeZoneName").value.match(/[+-]\d{2}(?::\d{2})?/)) == null ? void 0 : B[0]) || "+00:00", [g, z, h, P] = s.match(
|
|
1166
1166
|
/([+-])(\d{2})(?::?(\d{2}))?/
|
|
1167
1167
|
);
|
|
1168
|
-
return (
|
|
1169
|
-
},
|
|
1170
|
-
return
|
|
1168
|
+
return (z === "+" ? -1 : 1) * (parseInt(h) * 60 + parseInt(P || "00"));
|
|
1169
|
+
}, i = n(o), c = n(a), w = n(l);
|
|
1170
|
+
return i < Math.max(c, w);
|
|
1171
1171
|
}
|
|
1172
1172
|
}, ka = Object.freeze([
|
|
1173
1173
|
{
|
|
@@ -6646,8 +6646,8 @@ function Jl(e) {
|
|
|
6646
6646
|
const l = a == null ? void 0 : a.children;
|
|
6647
6647
|
if (Array.isArray(l))
|
|
6648
6648
|
for (const n of l) {
|
|
6649
|
-
const
|
|
6650
|
-
|
|
6649
|
+
const i = n == null ? void 0 : n.code;
|
|
6650
|
+
i != null && !Object.prototype.hasOwnProperty.call(o, i) && (o[i] = n);
|
|
6651
6651
|
}
|
|
6652
6652
|
}
|
|
6653
6653
|
return Object.freeze(o);
|
|
@@ -9611,13 +9611,13 @@ function je(e) {
|
|
|
9611
9611
|
const a = String(e).split(".");
|
|
9612
9612
|
let l = o;
|
|
9613
9613
|
for (let n = 0; n < a.length; n++) {
|
|
9614
|
-
const
|
|
9615
|
-
if (l == null || typeof l != "object" || !Object.prototype.hasOwnProperty.call(l,
|
|
9616
|
-
console.error(`[mvframe] useMap: no node at "${
|
|
9614
|
+
const i = a[n];
|
|
9615
|
+
if (l == null || typeof l != "object" || !Object.prototype.hasOwnProperty.call(l, i)) {
|
|
9616
|
+
console.error(`[mvframe] useMap: no node at "${i}" in "${e}"`);
|
|
9617
9617
|
return;
|
|
9618
9618
|
}
|
|
9619
9619
|
l = /** @type {Record<string, unknown>} */
|
|
9620
|
-
l[
|
|
9620
|
+
l[i];
|
|
9621
9621
|
}
|
|
9622
9622
|
return l;
|
|
9623
9623
|
}
|
|
@@ -9682,10 +9682,10 @@ function ze(e) {
|
|
|
9682
9682
|
function Ie(e, o) {
|
|
9683
9683
|
const a = { ...e };
|
|
9684
9684
|
for (const l of Object.keys(o)) {
|
|
9685
|
-
const n = o[l],
|
|
9686
|
-
n != null && typeof n == "object" && !Array.isArray(n) &&
|
|
9685
|
+
const n = o[l], i = a[l];
|
|
9686
|
+
n != null && typeof n == "object" && !Array.isArray(n) && i != null && typeof i == "object" && !Array.isArray(i) ? a[l] = Ie(
|
|
9687
9687
|
/** @type {Record<string, unknown>} */
|
|
9688
|
-
|
|
9688
|
+
i,
|
|
9689
9689
|
/** @type {Record<string, unknown>} */
|
|
9690
9690
|
n
|
|
9691
9691
|
) : a[l] = n;
|
|
@@ -9811,29 +9811,29 @@ function un(e, o) {
|
|
|
9811
9811
|
return { message: String(e), duration: a, showClose: !1 };
|
|
9812
9812
|
}
|
|
9813
9813
|
function ge(e, o) {
|
|
9814
|
-
const a = We[e] || We.error, { message: l, duration: n, showClose:
|
|
9814
|
+
const a = We[e] || We.error, { message: l, duration: n, showClose: i } = un(o, e), c = cn();
|
|
9815
9815
|
if (!c) {
|
|
9816
9816
|
console.error("[mvframe/message]", l);
|
|
9817
9817
|
return;
|
|
9818
9818
|
}
|
|
9819
|
-
const
|
|
9820
|
-
|
|
9819
|
+
const w = document.createElement("div");
|
|
9820
|
+
w.className = "mvframeTopToastItem", w.style.setProperty("--mvframe-toast-border", a.border), w.style.setProperty("--mvframe-toast-bg", a.bg), w.style.setProperty("--mvframe-toast-color", a.color), w.setAttribute(
|
|
9821
9821
|
"role",
|
|
9822
9822
|
e === "error" ? "alert" : "status"
|
|
9823
9823
|
);
|
|
9824
|
-
const
|
|
9825
|
-
|
|
9824
|
+
const v = document.createElement("div");
|
|
9825
|
+
v.className = "mvframeTopToastText", v.textContent = l, w.appendChild(v);
|
|
9826
9826
|
let b = null, s = null;
|
|
9827
|
-
const
|
|
9828
|
-
b && (clearTimeout(b), b = null), s && (clearTimeout(s), s = null),
|
|
9829
|
-
|
|
9827
|
+
const g = () => {
|
|
9828
|
+
b && (clearTimeout(b), b = null), s && (clearTimeout(s), s = null), w.parentNode && (w.classList.add("mvframeTopToastLeave"), s = window.setTimeout(() => {
|
|
9829
|
+
w.remove(), s = null;
|
|
9830
9830
|
}, 200));
|
|
9831
9831
|
};
|
|
9832
|
-
if (
|
|
9833
|
-
const
|
|
9834
|
-
|
|
9832
|
+
if (i || n === 0) {
|
|
9833
|
+
const z = document.createElement("button");
|
|
9834
|
+
z.type = "button", z.className = "mvframeTopToastClose", z.setAttribute("aria-label", "Close"), z.textContent = "×", z.addEventListener("click", g), w.appendChild(z);
|
|
9835
9835
|
}
|
|
9836
|
-
c.appendChild(
|
|
9836
|
+
c.appendChild(w), n > 0 && (b = window.setTimeout(g, n));
|
|
9837
9837
|
}
|
|
9838
9838
|
function Yr() {
|
|
9839
9839
|
return {
|
|
@@ -9853,26 +9853,26 @@ const ye = (e) => {
|
|
|
9853
9853
|
} catch {
|
|
9854
9854
|
}
|
|
9855
9855
|
}, dn = ({ router: e, useAdmin: o, adminPermission: a, noaccess: l }) => {
|
|
9856
|
-
e.beforeEach((n,
|
|
9857
|
-
ye(!0), o && n.meta.admin ? a() ? c() : l && l(n,
|
|
9858
|
-
}), e.afterEach((n,
|
|
9859
|
-
var
|
|
9856
|
+
e.beforeEach((n, i, c) => {
|
|
9857
|
+
ye(!0), o && n.meta.admin ? a() ? c() : l && l(n, i, c) : c();
|
|
9858
|
+
}), e.afterEach((n, i, c) => {
|
|
9859
|
+
var v, b;
|
|
9860
9860
|
if (c) {
|
|
9861
9861
|
ye(!1);
|
|
9862
9862
|
return;
|
|
9863
9863
|
}
|
|
9864
|
-
const
|
|
9865
|
-
document.title = ((
|
|
9864
|
+
const w = Qe.tab(ea);
|
|
9865
|
+
document.title = ((v = n.meta) == null ? void 0 : v.title) || ((b = globalThis.$config) == null ? void 0 : b.name), w.saveTab(n), ye(!1);
|
|
9866
9866
|
}), e.onError(() => {
|
|
9867
9867
|
ye(!1);
|
|
9868
9868
|
});
|
|
9869
|
-
}, mn = (e, { routes: o, guard: a, useAdmin: l = !1, adminPermission: n = () => !0, noaccess:
|
|
9869
|
+
}, mn = (e, { routes: o, guard: a, useAdmin: l = !1, adminPermission: n = () => !0, noaccess: i }) => {
|
|
9870
9870
|
const c = La({
|
|
9871
9871
|
history: $a(),
|
|
9872
9872
|
routes: o
|
|
9873
9873
|
});
|
|
9874
|
-
a && a(c), dn({ router: c, useAdmin: l, adminPermission: n, noaccess:
|
|
9875
|
-
},
|
|
9874
|
+
a && a(c), dn({ router: c, useAdmin: l, adminPermission: n, noaccess: i }), e.use(c), globalThis.$router = c;
|
|
9875
|
+
}, le = (e, o) => {
|
|
9876
9876
|
const a = e.__vccOpts || e;
|
|
9877
9877
|
for (const [l, n] of o)
|
|
9878
9878
|
a[l] = n;
|
|
@@ -9922,14 +9922,14 @@ const ye = (e) => {
|
|
|
9922
9922
|
const a = e, l = o, n = (b) => {
|
|
9923
9923
|
const s = b.value;
|
|
9924
9924
|
return s === a.modelValue && (s !== void 0 || a.modelValue !== void 0);
|
|
9925
|
-
},
|
|
9925
|
+
}, i = (b) => {
|
|
9926
9926
|
a.disabled || (l("update:modelValue", b.value), l("change", b.value));
|
|
9927
9927
|
}, c = C(() => {
|
|
9928
|
-
const b = a.options, s = Array.isArray(b) ? b : [],
|
|
9928
|
+
const b = a.options, s = Array.isArray(b) ? b : [], g = a.valueKey, z = a.labelKey, h = a.iconKey;
|
|
9929
9929
|
return s.filter((P) => P != null).map((P) => typeof P == "object" && !Array.isArray(P) ? {
|
|
9930
|
-
value: P[
|
|
9931
|
-
label: P[
|
|
9932
|
-
icon: P[
|
|
9930
|
+
value: P[g],
|
|
9931
|
+
label: P[z] ?? "",
|
|
9932
|
+
icon: P[h] || "",
|
|
9933
9933
|
disabled: P.disabled,
|
|
9934
9934
|
raw: P
|
|
9935
9935
|
} : {
|
|
@@ -9939,27 +9939,27 @@ const ye = (e) => {
|
|
|
9939
9939
|
disabled: P.disabled,
|
|
9940
9940
|
raw: P
|
|
9941
9941
|
});
|
|
9942
|
-
}),
|
|
9943
|
-
return (b, s) => (A(),
|
|
9944
|
-
class: ["MvcBtnGroup flexMode", [t(
|
|
9942
|
+
}), w = C(() => ({ small: "g4", default: "g6", large: "g8" })[a.size] ?? "g6"), v = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : "");
|
|
9943
|
+
return (b, s) => (A(), E("div", oe({
|
|
9944
|
+
class: ["MvcBtnGroup flexMode", [t(w), t(v), b.$attrs.class]]
|
|
9945
9945
|
}, b.$attrs, { role: "group" }), [
|
|
9946
|
-
(A(!0),
|
|
9947
|
-
key:
|
|
9946
|
+
(A(!0), E(ne, null, se(t(c), (g) => (A(), E("button", {
|
|
9947
|
+
key: g.value,
|
|
9948
9948
|
type: "button",
|
|
9949
|
-
class: G(["btnItem", { isActive: n(
|
|
9950
|
-
disabled: a.disabled ||
|
|
9951
|
-
onClick: (
|
|
9949
|
+
class: G(["btnItem", { isActive: n(g) }]),
|
|
9950
|
+
disabled: a.disabled || g.disabled,
|
|
9951
|
+
onClick: (z) => i(g)
|
|
9952
9952
|
}, [
|
|
9953
|
-
|
|
9953
|
+
g.icon ? (A(), E("i", {
|
|
9954
9954
|
key: 0,
|
|
9955
|
-
class: G([[
|
|
9955
|
+
class: G([[g.icon, a.iconClass], "noShrink fs16"]),
|
|
9956
9956
|
"aria-hidden": "true"
|
|
9957
9957
|
}, null, 2)) : V("", !0),
|
|
9958
|
-
|
|
9958
|
+
te(" " + x(b.$l(g.label)), 1)
|
|
9959
9959
|
], 10, bn))), 128))
|
|
9960
9960
|
], 16));
|
|
9961
9961
|
}
|
|
9962
|
-
}), pn = /* @__PURE__ */
|
|
9962
|
+
}), pn = /* @__PURE__ */ le(vn, [["__scopeId", "data-v-97a2b9b8"]]), fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9963
9963
|
__proto__: null,
|
|
9964
9964
|
default: pn
|
|
9965
9965
|
}, Symbol.toStringTag, { value: "Module" })), hn = {
|
|
@@ -10003,29 +10003,29 @@ const ye = (e) => {
|
|
|
10003
10003
|
},
|
|
10004
10004
|
setup(e) {
|
|
10005
10005
|
const o = e;
|
|
10006
|
-
return (a, l) => (A(),
|
|
10006
|
+
return (a, l) => (A(), E("div", oe({
|
|
10007
10007
|
class: ["MvcCard", { "MvcCard--fillParent": o.fillParent }]
|
|
10008
10008
|
}, a.$attrs), [
|
|
10009
|
-
o.title || a.$slots.header ? (A(),
|
|
10009
|
+
o.title || a.$slots.header ? (A(), E("div", {
|
|
10010
10010
|
key: 0,
|
|
10011
10011
|
class: G(["header", o.headerClass])
|
|
10012
10012
|
}, [
|
|
10013
|
-
a.$slots.header ?
|
|
10013
|
+
a.$slots.header ? Z(a.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (A(), E("span", hn, x(o.title), 1)) : V("", !0)
|
|
10014
10014
|
], 2)) : V("", !0),
|
|
10015
10015
|
d("div", {
|
|
10016
10016
|
class: G(["body", o.bodyClass])
|
|
10017
10017
|
}, [
|
|
10018
|
-
|
|
10018
|
+
Z(a.$slots, "default", {}, void 0, !0)
|
|
10019
10019
|
], 2),
|
|
10020
|
-
a.$slots.footer ? (A(),
|
|
10020
|
+
a.$slots.footer ? (A(), E("div", {
|
|
10021
10021
|
key: 1,
|
|
10022
10022
|
class: G(["footer", o.footerClass])
|
|
10023
10023
|
}, [
|
|
10024
|
-
|
|
10024
|
+
Z(a.$slots, "footer", {}, void 0, !0)
|
|
10025
10025
|
], 2)) : V("", !0)
|
|
10026
10026
|
], 16));
|
|
10027
10027
|
}
|
|
10028
|
-
}), gn = /* @__PURE__ */
|
|
10028
|
+
}), gn = /* @__PURE__ */ le(_n, [["__scopeId", "data-v-610b0b4c"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10029
10029
|
__proto__: null,
|
|
10030
10030
|
default: gn
|
|
10031
10031
|
}, Symbol.toStringTag, { value: "Module" })), An = { class: "MvcDrawer" }, zn = { class: "dragArea" }, wn = {
|
|
@@ -10059,65 +10059,65 @@ const ye = (e) => {
|
|
|
10059
10059
|
size: 640,
|
|
10060
10060
|
params: {},
|
|
10061
10061
|
direction: "rtl"
|
|
10062
|
-
}), n =
|
|
10062
|
+
}), n = q({
|
|
10063
10063
|
drawerInfo: l(),
|
|
10064
10064
|
cpt: null,
|
|
10065
10065
|
mounted: !1,
|
|
10066
10066
|
dragMode: !1
|
|
10067
|
-
}),
|
|
10067
|
+
}), i = o, c = () => {
|
|
10068
10068
|
n.mounted = !0;
|
|
10069
|
-
},
|
|
10070
|
-
|
|
10069
|
+
}, w = () => {
|
|
10070
|
+
i("update:current", ""), n.mounted = !1, B.value ? n.drawerInfo = l() : de(() => {
|
|
10071
10071
|
delete n.drawerInfo.cpt;
|
|
10072
10072
|
});
|
|
10073
|
-
},
|
|
10074
|
-
n.drawerInfo.visible && (
|
|
10073
|
+
}, v = () => {
|
|
10074
|
+
n.drawerInfo.visible && (i("update:current", ""), n.drawerInfo.visible = !1);
|
|
10075
10075
|
}, b = () => {
|
|
10076
10076
|
n.drawerInfo.cpt = n.cpt;
|
|
10077
|
-
}, s = (
|
|
10078
|
-
n.dragMode = !0, document.addEventListener("mousemove",
|
|
10079
|
-
},
|
|
10080
|
-
var m,
|
|
10081
|
-
if (
|
|
10082
|
-
const
|
|
10083
|
-
|
|
10077
|
+
}, s = (f) => {
|
|
10078
|
+
n.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", z);
|
|
10079
|
+
}, g = (f) => {
|
|
10080
|
+
var m, M;
|
|
10081
|
+
if (f.x > 80) {
|
|
10082
|
+
const S = (((M = (m = globalThis.$config) == null ? void 0 : m.options) == null ? void 0 : M.innerWidth) ?? window.innerWidth) - f.x;
|
|
10083
|
+
S > 480 && (n.drawerInfo.size = S);
|
|
10084
10084
|
}
|
|
10085
|
-
},
|
|
10086
|
-
n.dragMode = !1,
|
|
10087
|
-
},
|
|
10088
|
-
document.removeEventListener("mousemove",
|
|
10089
|
-
}, P = C(() => !!n.drawerInfo.title),
|
|
10090
|
-
return
|
|
10091
|
-
|
|
10092
|
-
}),
|
|
10085
|
+
}, z = () => {
|
|
10086
|
+
n.dragMode = !1, h();
|
|
10087
|
+
}, h = () => {
|
|
10088
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", z);
|
|
10089
|
+
}, P = C(() => !!n.drawerInfo.title), B = C(() => !a.keepalive);
|
|
10090
|
+
return be(() => {
|
|
10091
|
+
h();
|
|
10092
|
+
}), re(
|
|
10093
10093
|
() => a.current,
|
|
10094
|
-
(
|
|
10094
|
+
(f) => {
|
|
10095
10095
|
if (a.drawer.length)
|
|
10096
|
-
if (window.$getType(
|
|
10097
|
-
const m = a.drawer[
|
|
10096
|
+
if (window.$getType(f) === "Number") {
|
|
10097
|
+
const m = a.drawer[f], M = {
|
|
10098
10098
|
...m,
|
|
10099
10099
|
size: m.size || 640,
|
|
10100
10100
|
direction: m.direction || "rtl",
|
|
10101
10101
|
visible: !0
|
|
10102
10102
|
};
|
|
10103
|
-
|
|
10103
|
+
M.cpt ? (n.cpt = Ae(M.cpt), delete M.cpt) : (n.cpt = null, c()), n.drawerInfo = M;
|
|
10104
10104
|
} else
|
|
10105
|
-
|
|
10105
|
+
v();
|
|
10106
10106
|
}
|
|
10107
|
-
), (
|
|
10108
|
-
const
|
|
10109
|
-
return A(),
|
|
10107
|
+
), (f, m) => {
|
|
10108
|
+
const M = F("Loading"), u = F("el-drawer");
|
|
10109
|
+
return A(), E("div", An, [
|
|
10110
10110
|
j(u, {
|
|
10111
10111
|
modelValue: t(n).drawerInfo.visible,
|
|
10112
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
10113
|
-
title:
|
|
10112
|
+
"onUpdate:modelValue": m[0] || (m[0] = (S) => t(n).drawerInfo.visible = S),
|
|
10113
|
+
title: f.$l(t(n).drawerInfo.title),
|
|
10114
10114
|
"with-header": t(P),
|
|
10115
10115
|
"append-to-body": "",
|
|
10116
10116
|
size: t(n).drawerInfo.size,
|
|
10117
10117
|
height: t(n).drawerInfo.height,
|
|
10118
10118
|
direction: t(n).drawerInfo.direction,
|
|
10119
|
-
"destroy-on-close": t(
|
|
10120
|
-
onClosed:
|
|
10119
|
+
"destroy-on-close": t(B),
|
|
10120
|
+
onClosed: w,
|
|
10121
10121
|
onOpened: b,
|
|
10122
10122
|
class: G(t(n).dragMode && "notransition noevent noselect")
|
|
10123
10123
|
}, {
|
|
@@ -10130,18 +10130,18 @@ const ye = (e) => {
|
|
|
10130
10130
|
d("i", { class: "imicon im-handle fs12" }, null, -1)
|
|
10131
10131
|
])], 34)
|
|
10132
10132
|
]),
|
|
10133
|
-
t(P) ? V("", !0) : (A(),
|
|
10133
|
+
t(P) ? V("", !0) : (A(), E("div", wn, [
|
|
10134
10134
|
d("i", {
|
|
10135
10135
|
class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
|
|
10136
|
-
onClick:
|
|
10136
|
+
onClick: v
|
|
10137
10137
|
})
|
|
10138
10138
|
])),
|
|
10139
|
-
j(
|
|
10139
|
+
j(M, {
|
|
10140
10140
|
loading: !t(n).mounted
|
|
10141
10141
|
}, null, 8, ["loading"]),
|
|
10142
|
-
|
|
10142
|
+
f.$slots.default ? Z(f.$slots, "default", { key: 1 }, void 0, !0) : (A(), Q(na(t(n).drawerInfo.cpt), oe({ key: 2 }, f.$attrs, {
|
|
10143
10143
|
params: t(n).drawerInfo.params,
|
|
10144
|
-
onClose:
|
|
10144
|
+
onClose: v,
|
|
10145
10145
|
onMounted: c
|
|
10146
10146
|
}), null, 16, ["params"]))
|
|
10147
10147
|
]),
|
|
@@ -10150,7 +10150,7 @@ const ye = (e) => {
|
|
|
10150
10150
|
]);
|
|
10151
10151
|
};
|
|
10152
10152
|
}
|
|
10153
|
-
}), Tn = /* @__PURE__ */
|
|
10153
|
+
}), Tn = /* @__PURE__ */ le(Sn, [["__scopeId", "data-v-3bd55143"]]), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10154
10154
|
__proto__: null,
|
|
10155
10155
|
default: Tn
|
|
10156
10156
|
}, Symbol.toStringTag, { value: "Module" })), Mn = {
|
|
@@ -10217,61 +10217,61 @@ const ye = (e) => {
|
|
|
10217
10217
|
},
|
|
10218
10218
|
emits: ["close", "submit", "cancel", "mounted"],
|
|
10219
10219
|
setup(e, { expose: o, emit: a }) {
|
|
10220
|
-
const l = e, { proxy: n } =
|
|
10221
|
-
|
|
10220
|
+
const l = e, { proxy: n } = ue(), i = X(), c = a;
|
|
10221
|
+
ie(() => {
|
|
10222
10222
|
c("mounted");
|
|
10223
10223
|
});
|
|
10224
|
-
const
|
|
10224
|
+
const w = () => {
|
|
10225
10225
|
c("close"), c("cancel");
|
|
10226
|
-
},
|
|
10226
|
+
}, v = () => {
|
|
10227
10227
|
c("submit");
|
|
10228
10228
|
};
|
|
10229
10229
|
o({
|
|
10230
|
-
toClose:
|
|
10231
|
-
scrollTo: (
|
|
10232
|
-
var
|
|
10233
|
-
(
|
|
10230
|
+
toClose: w,
|
|
10231
|
+
scrollTo: (z) => {
|
|
10232
|
+
var h;
|
|
10233
|
+
(h = i.value) == null || h.setScrollTop(z);
|
|
10234
10234
|
}
|
|
10235
10235
|
});
|
|
10236
|
-
const s = C(() => [l.loading && "noevent", n.$attrs.class]),
|
|
10237
|
-
const
|
|
10236
|
+
const s = C(() => [l.loading && "noevent", n.$attrs.class]), g = C(() => {
|
|
10237
|
+
const h = l.nofooter ? 0 : 4;
|
|
10238
10238
|
return {
|
|
10239
|
-
height: l.height ? `${3.5 +
|
|
10239
|
+
height: l.height ? `${3.5 + h + l.height / 16}rem` : `calc(100vh - ${3.5}rem - ${h}rem - ${l.minusHeight / 16}rem)`
|
|
10240
10240
|
};
|
|
10241
10241
|
});
|
|
10242
|
-
return (
|
|
10243
|
-
const P =
|
|
10244
|
-
return A(),
|
|
10242
|
+
return (z, h) => {
|
|
10243
|
+
const P = F("Loading"), B = F("el-scrollbar"), f = F("el-button");
|
|
10244
|
+
return A(), E(ne, null, [
|
|
10245
10245
|
d("div", {
|
|
10246
10246
|
class: G(["MvcDrawerBody VAfter", t(s)]),
|
|
10247
|
-
style:
|
|
10247
|
+
style: ce(t(g))
|
|
10248
10248
|
}, [
|
|
10249
10249
|
j(P, {
|
|
10250
10250
|
loading: l.loading,
|
|
10251
10251
|
txt: l.loadingTxt
|
|
10252
10252
|
}, null, 8, ["loading", "txt"]),
|
|
10253
|
-
l.noscroll ?
|
|
10253
|
+
l.noscroll ? Z(z.$slots, "default", { key: 0 }, void 0, !0) : (A(), Q(B, {
|
|
10254
10254
|
key: 1,
|
|
10255
10255
|
ref_key: "scrollbar",
|
|
10256
|
-
ref:
|
|
10256
|
+
ref: i,
|
|
10257
10257
|
class: "wp100"
|
|
10258
10258
|
}, {
|
|
10259
10259
|
default: N(() => [
|
|
10260
|
-
|
|
10260
|
+
Z(z.$slots, "default", {}, void 0, !0)
|
|
10261
10261
|
]),
|
|
10262
10262
|
_: 3
|
|
10263
10263
|
}, 512))
|
|
10264
10264
|
], 6),
|
|
10265
|
-
l.nofooter ? V("", !0) : (A(),
|
|
10265
|
+
l.nofooter ? V("", !0) : (A(), E("div", {
|
|
10266
10266
|
key: 0,
|
|
10267
10267
|
class: G(["drawerFooter relative flexMode vc hb h64", l.footerClass])
|
|
10268
10268
|
}, [
|
|
10269
|
-
|
|
10270
|
-
|
|
10269
|
+
z.$slots.footer ? Z(z.$slots, "footer", { key: 0 }, void 0, !0) : (A(), E("div", Mn, [
|
|
10270
|
+
z.$slots.cancel ? Z(z.$slots, "cancel", { key: 0 }, void 0, !0) : l.showCancel ? (A(), Q(f, {
|
|
10271
10271
|
key: 1,
|
|
10272
10272
|
plain: "",
|
|
10273
10273
|
size: "large",
|
|
10274
|
-
onClick:
|
|
10274
|
+
onClick: w
|
|
10275
10275
|
}, {
|
|
10276
10276
|
icon: N(() => [
|
|
10277
10277
|
d("i", {
|
|
@@ -10279,16 +10279,16 @@ const ye = (e) => {
|
|
|
10279
10279
|
}, null, 2)
|
|
10280
10280
|
]),
|
|
10281
10281
|
default: N(() => [
|
|
10282
|
-
d("span", kn, x(
|
|
10282
|
+
d("span", kn, x(z.$l(l.cancelTxt)), 1)
|
|
10283
10283
|
]),
|
|
10284
10284
|
_: 1
|
|
10285
10285
|
})) : V("", !0),
|
|
10286
|
-
|
|
10286
|
+
z.$slots.submit ? Z(z.$slots, "submit", { key: 2 }, void 0, !0) : l.showConfirm ? (A(), Q(f, {
|
|
10287
10287
|
key: 3,
|
|
10288
10288
|
type: "primary",
|
|
10289
10289
|
size: "large",
|
|
10290
10290
|
loading: l.loading,
|
|
10291
|
-
onClick:
|
|
10291
|
+
onClick: v
|
|
10292
10292
|
}, {
|
|
10293
10293
|
icon: N(() => [
|
|
10294
10294
|
d("i", {
|
|
@@ -10296,17 +10296,17 @@ const ye = (e) => {
|
|
|
10296
10296
|
}, null, 2)
|
|
10297
10297
|
]),
|
|
10298
10298
|
default: N(() => [
|
|
10299
|
-
d("span", En, x(
|
|
10299
|
+
d("span", En, x(z.$l(l.confirmTxt)), 1)
|
|
10300
10300
|
]),
|
|
10301
10301
|
_: 1
|
|
10302
10302
|
}, 8, ["loading"])) : V("", !0),
|
|
10303
|
-
|
|
10303
|
+
z.$slots.footerright ? Z(z.$slots, "footerright", { key: 4 }, void 0, !0) : V("", !0)
|
|
10304
10304
|
]))
|
|
10305
10305
|
], 2))
|
|
10306
10306
|
], 64);
|
|
10307
10307
|
};
|
|
10308
10308
|
}
|
|
10309
|
-
}), Pn = /* @__PURE__ */
|
|
10309
|
+
}), Pn = /* @__PURE__ */ le(On, [["__scopeId", "data-v-33acb7b3"]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10310
10310
|
__proto__: null,
|
|
10311
10311
|
default: Pn
|
|
10312
10312
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -10314,7 +10314,7 @@ function Nn(e) {
|
|
|
10314
10314
|
var a;
|
|
10315
10315
|
if (e == null) return [];
|
|
10316
10316
|
const o = Array.isArray(e) ? e : [e];
|
|
10317
|
-
if (o.length === 1 && ((a = o[0]) == null ? void 0 : a.type) ===
|
|
10317
|
+
if (o.length === 1 && ((a = o[0]) == null ? void 0 : a.type) === ne) {
|
|
10318
10318
|
const l = o[0].children;
|
|
10319
10319
|
return l == null ? [] : Array.isArray(l) ? l : [l];
|
|
10320
10320
|
}
|
|
@@ -10333,31 +10333,31 @@ const Ln = oa({
|
|
|
10333
10333
|
setup(e, o) {
|
|
10334
10334
|
function a(n) {
|
|
10335
10335
|
if (!Array.isArray(n)) return [];
|
|
10336
|
-
const
|
|
10337
|
-
return c ||
|
|
10336
|
+
const i = n.filter((b) => b && b.children !== "v-if"), c = i.length !== n.length, w = i.map((b) => l(b));
|
|
10337
|
+
return c || w.some((b, s) => b !== i[s]) ? w : n;
|
|
10338
10338
|
}
|
|
10339
10339
|
function l(n) {
|
|
10340
|
-
var
|
|
10340
|
+
var w, v, b, s;
|
|
10341
10341
|
if (!n) return n;
|
|
10342
|
-
const
|
|
10343
|
-
if (((
|
|
10344
|
-
const
|
|
10342
|
+
const i = n.children, c = window.$getType(i);
|
|
10343
|
+
if (((w = n.type) == null ? void 0 : w.name) === "ElFormItem" && ((v = n.props) == null ? void 0 : v.label) != null) {
|
|
10344
|
+
const g = ((s = (b = n.props.label).$l) == null ? void 0 : s.call(b)) || n.props.label;
|
|
10345
10345
|
if (c === "Array") {
|
|
10346
|
-
const
|
|
10347
|
-
return qe(
|
|
10346
|
+
const z = a(i);
|
|
10347
|
+
return qe(z, i) ? De(n, { label: g }) : Re(n.type, { ...n.props || {}, label: g }, z);
|
|
10348
10348
|
}
|
|
10349
|
-
return De(n, { label:
|
|
10349
|
+
return De(n, { label: g });
|
|
10350
10350
|
}
|
|
10351
10351
|
if (c === "Array") {
|
|
10352
|
-
const
|
|
10353
|
-
return qe(
|
|
10352
|
+
const g = a(i);
|
|
10353
|
+
return qe(g, i) ? n : Re(n.type, n.props, g);
|
|
10354
10354
|
}
|
|
10355
10355
|
return n;
|
|
10356
10356
|
}
|
|
10357
10357
|
return () => {
|
|
10358
|
-
var c,
|
|
10359
|
-
const n = (
|
|
10360
|
-
return a(
|
|
10358
|
+
var c, w;
|
|
10359
|
+
const n = (w = (c = o.slots).default) == null ? void 0 : w.call(c), i = Nn(n);
|
|
10360
|
+
return a(i);
|
|
10361
10361
|
};
|
|
10362
10362
|
}
|
|
10363
10363
|
}), $n = { class: "MvcForm" }, jn = /* @__PURE__ */ Object.assign({
|
|
@@ -10379,25 +10379,25 @@ const Ln = oa({
|
|
|
10379
10379
|
}
|
|
10380
10380
|
},
|
|
10381
10381
|
setup(e, { expose: o, emit: a }) {
|
|
10382
|
-
const l = e, n =
|
|
10382
|
+
const l = e, n = q({
|
|
10383
10383
|
form: {}
|
|
10384
|
-
}), { proxy:
|
|
10384
|
+
}), { proxy: i } = ue(), c = a, w = async () => {
|
|
10385
10385
|
var s;
|
|
10386
10386
|
try {
|
|
10387
|
-
return (s =
|
|
10387
|
+
return (s = i.$refs) != null && s.form ? (await i.$refs.form.validate(), v()) : !1;
|
|
10388
10388
|
} catch {
|
|
10389
10389
|
return !1;
|
|
10390
10390
|
}
|
|
10391
|
-
},
|
|
10391
|
+
}, v = () => n.form, b = C(() => {
|
|
10392
10392
|
const s = {};
|
|
10393
|
-
for (let
|
|
10394
|
-
s[
|
|
10395
|
-
...
|
|
10396
|
-
...
|
|
10393
|
+
for (let g in l.rules)
|
|
10394
|
+
s[g] = l.rules[g].map((z) => ({
|
|
10395
|
+
...z,
|
|
10396
|
+
...z.message && { message: window.$l(z.message) }
|
|
10397
10397
|
}));
|
|
10398
10398
|
return s;
|
|
10399
10399
|
});
|
|
10400
|
-
return
|
|
10400
|
+
return re(
|
|
10401
10401
|
() => n.form,
|
|
10402
10402
|
(s) => {
|
|
10403
10403
|
s && !Fe(s, l.modelValue) && c("update:modelValue", s);
|
|
@@ -10405,7 +10405,7 @@ const Ln = oa({
|
|
|
10405
10405
|
{
|
|
10406
10406
|
deep: !0
|
|
10407
10407
|
}
|
|
10408
|
-
),
|
|
10408
|
+
), re(
|
|
10409
10409
|
() => l.modelValue,
|
|
10410
10410
|
(s) => {
|
|
10411
10411
|
s && !Fe(s, n.form) && (n.form = s);
|
|
@@ -10415,11 +10415,11 @@ const Ln = oa({
|
|
|
10415
10415
|
deep: !0
|
|
10416
10416
|
}
|
|
10417
10417
|
), o({
|
|
10418
|
-
validate:
|
|
10419
|
-
}), (s,
|
|
10420
|
-
const
|
|
10421
|
-
return A(),
|
|
10422
|
-
j(
|
|
10418
|
+
validate: w
|
|
10419
|
+
}), (s, g) => {
|
|
10420
|
+
const z = F("el-form");
|
|
10421
|
+
return A(), E("div", $n, [
|
|
10422
|
+
j(z, {
|
|
10423
10423
|
ref: "form",
|
|
10424
10424
|
model: t(n).form,
|
|
10425
10425
|
rules: t(b),
|
|
@@ -10430,7 +10430,7 @@ const Ln = oa({
|
|
|
10430
10430
|
default: N(() => [
|
|
10431
10431
|
j(t(Ln), null, {
|
|
10432
10432
|
default: N(() => [
|
|
10433
|
-
|
|
10433
|
+
Z(s.$slots, "default")
|
|
10434
10434
|
]),
|
|
10435
10435
|
_: 3
|
|
10436
10436
|
})
|
|
@@ -10449,69 +10449,69 @@ const Ln = oa({
|
|
|
10449
10449
|
}, {
|
|
10450
10450
|
__name: "Tab",
|
|
10451
10451
|
setup(e) {
|
|
10452
|
-
const o =
|
|
10452
|
+
const o = q({
|
|
10453
10453
|
active: 2,
|
|
10454
10454
|
pageScrolled: !1
|
|
10455
10455
|
});
|
|
10456
10456
|
let a = null, l = null;
|
|
10457
|
-
const n = _e("store"),
|
|
10458
|
-
|
|
10459
|
-
s(),
|
|
10457
|
+
const n = _e("store"), i = n.tab(), c = n.rmenu(), w = aa(), v = la(), { proxy: b } = ue();
|
|
10458
|
+
ie(() => {
|
|
10459
|
+
s(), h();
|
|
10460
10460
|
});
|
|
10461
10461
|
const s = () => {
|
|
10462
|
-
b.$el.addEventListener("scroll",
|
|
10463
|
-
},
|
|
10464
|
-
let
|
|
10465
|
-
for (;
|
|
10466
|
-
const { overflowY: k, overflow: L } = getComputedStyle(
|
|
10467
|
-
if ((
|
|
10468
|
-
return
|
|
10469
|
-
|
|
10462
|
+
b.$el.addEventListener("scroll", B);
|
|
10463
|
+
}, g = (T) => {
|
|
10464
|
+
let O = T == null ? void 0 : T.parentElement;
|
|
10465
|
+
for (; O && O !== document.body; ) {
|
|
10466
|
+
const { overflowY: k, overflow: L } = getComputedStyle(O), K = k || L;
|
|
10467
|
+
if ((K === "auto" || K === "scroll" || K === "overlay") && O.scrollHeight > O.clientHeight)
|
|
10468
|
+
return O;
|
|
10469
|
+
O = O.parentElement;
|
|
10470
10470
|
}
|
|
10471
10471
|
return null;
|
|
10472
|
-
},
|
|
10473
|
-
const
|
|
10474
|
-
o.pageScrolled =
|
|
10475
|
-
},
|
|
10476
|
-
a =
|
|
10477
|
-
const
|
|
10478
|
-
|
|
10472
|
+
}, z = () => {
|
|
10473
|
+
const T = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, O = a ? a.scrollTop : 0;
|
|
10474
|
+
o.pageScrolled = T > 0 || O > 0;
|
|
10475
|
+
}, h = () => {
|
|
10476
|
+
a = g(b.$el);
|
|
10477
|
+
const T = () => {
|
|
10478
|
+
z();
|
|
10479
10479
|
};
|
|
10480
|
-
window.addEventListener("scroll",
|
|
10481
|
-
window.removeEventListener("scroll",
|
|
10480
|
+
window.addEventListener("scroll", T, { passive: !0 }), a && a.addEventListener("scroll", T, { passive: !0 }), z(), l = () => {
|
|
10481
|
+
window.removeEventListener("scroll", T), a && a.removeEventListener("scroll", T), a = null;
|
|
10482
10482
|
};
|
|
10483
10483
|
}, P = () => {
|
|
10484
|
-
const
|
|
10485
|
-
|
|
10486
|
-
},
|
|
10487
|
-
let
|
|
10488
|
-
|
|
10489
|
-
const { scrollLeft: k } =
|
|
10484
|
+
const T = localStorage.getItem("tabsScroll");
|
|
10485
|
+
T && (b.$el.scrollLeft = Number(T));
|
|
10486
|
+
}, B = (T) => {
|
|
10487
|
+
let O = null;
|
|
10488
|
+
O !== null && clearTimeout(O), O = setTimeout(function() {
|
|
10489
|
+
const { scrollLeft: k } = T.target;
|
|
10490
10490
|
localStorage.setItem("tabsScroll", k);
|
|
10491
10491
|
}, 100);
|
|
10492
|
-
},
|
|
10493
|
-
|
|
10494
|
-
const
|
|
10495
|
-
Ra(b.$el,
|
|
10492
|
+
}, f = () => {
|
|
10493
|
+
de(() => {
|
|
10494
|
+
const T = b.$el.querySelector(`#tab_${y.value}`);
|
|
10495
|
+
Ra(b.$el, T) ? P() : b.$el.scrollLeft = (T == null ? void 0 : T.offsetLeft) - 16;
|
|
10496
10496
|
});
|
|
10497
|
-
}, m = (
|
|
10497
|
+
}, m = (T, O, k) => {
|
|
10498
10498
|
c.saveData("type", "tabManager"), c.saveData("options", [
|
|
10499
10499
|
{
|
|
10500
10500
|
label: "Close",
|
|
10501
10501
|
value: "close",
|
|
10502
10502
|
icon: "im-close",
|
|
10503
|
-
disabled:
|
|
10503
|
+
disabled: _.value.length === 1,
|
|
10504
10504
|
cb: () => {
|
|
10505
|
-
|
|
10505
|
+
i.closeTab(O, k);
|
|
10506
10506
|
}
|
|
10507
10507
|
},
|
|
10508
10508
|
{
|
|
10509
10509
|
label: "Close Right",
|
|
10510
10510
|
value: "closeRight",
|
|
10511
10511
|
icon: "im-right",
|
|
10512
|
-
disabled: k ===
|
|
10512
|
+
disabled: k === _.value.length - 1,
|
|
10513
10513
|
cb: () => {
|
|
10514
|
-
|
|
10514
|
+
i.closeRightTab(O, k);
|
|
10515
10515
|
}
|
|
10516
10516
|
},
|
|
10517
10517
|
{
|
|
@@ -10520,83 +10520,83 @@ const Ln = oa({
|
|
|
10520
10520
|
icon: "im-left",
|
|
10521
10521
|
disabled: k === 0,
|
|
10522
10522
|
cb: () => {
|
|
10523
|
-
|
|
10523
|
+
i.closeLeftTab(O, k);
|
|
10524
10524
|
}
|
|
10525
10525
|
},
|
|
10526
10526
|
{
|
|
10527
10527
|
label: "Close Other",
|
|
10528
10528
|
value: "closeOther",
|
|
10529
10529
|
icon: "im-left",
|
|
10530
|
-
disabled:
|
|
10530
|
+
disabled: _.value.length === 1,
|
|
10531
10531
|
cb: () => {
|
|
10532
|
-
|
|
10532
|
+
i.closeOtherTab(O, k);
|
|
10533
10533
|
}
|
|
10534
10534
|
}
|
|
10535
10535
|
]), c.show({
|
|
10536
10536
|
position: {
|
|
10537
|
-
x:
|
|
10538
|
-
y:
|
|
10537
|
+
x: T.clientX,
|
|
10538
|
+
y: T.clientY
|
|
10539
10539
|
}
|
|
10540
10540
|
});
|
|
10541
|
-
},
|
|
10542
|
-
const
|
|
10543
|
-
(!
|
|
10544
|
-
name:
|
|
10545
|
-
params:
|
|
10546
|
-
query:
|
|
10541
|
+
}, M = (T) => {
|
|
10542
|
+
const O = T.name === y.value, k = JSON.stringify(T.params ?? {}) === JSON.stringify(w.params ?? {}), L = JSON.stringify(T.query ?? {}) === JSON.stringify(w.query ?? {});
|
|
10543
|
+
(!O || !k || !L) && v.push({
|
|
10544
|
+
name: T.name,
|
|
10545
|
+
params: T.params,
|
|
10546
|
+
query: T.query
|
|
10547
10547
|
});
|
|
10548
|
-
}, u = (
|
|
10549
|
-
console.info(
|
|
10550
|
-
},
|
|
10551
|
-
|
|
10552
|
-
},
|
|
10553
|
-
return
|
|
10554
|
-
() =>
|
|
10555
|
-
(
|
|
10556
|
-
localStorage.setItem("tabs", JSON.stringify(
|
|
10548
|
+
}, u = (T) => {
|
|
10549
|
+
console.info(T.name, y.value), T.name === y.value ? v.replace({ name: T.name, query: { t: +/* @__PURE__ */ new Date() } }) : M(T);
|
|
10550
|
+
}, S = (T, O) => {
|
|
10551
|
+
i.closeTab(T, O);
|
|
10552
|
+
}, _ = C(() => i.tabs), y = C(() => w.name), D = C(() => _.value.length);
|
|
10553
|
+
return re(
|
|
10554
|
+
() => D.value,
|
|
10555
|
+
(T) => {
|
|
10556
|
+
localStorage.setItem("tabs", JSON.stringify(_.value)), T && f();
|
|
10557
10557
|
},
|
|
10558
10558
|
{
|
|
10559
10559
|
immediate: !0
|
|
10560
10560
|
}
|
|
10561
|
-
),
|
|
10562
|
-
() =>
|
|
10561
|
+
), re(
|
|
10562
|
+
() => y.value,
|
|
10563
10563
|
() => {
|
|
10564
|
-
|
|
10565
|
-
|
|
10564
|
+
de(() => {
|
|
10565
|
+
z();
|
|
10566
10566
|
});
|
|
10567
10567
|
}
|
|
10568
|
-
),
|
|
10569
|
-
b.$el.removeEventListener("scroll",
|
|
10570
|
-
}), (
|
|
10568
|
+
), be(() => {
|
|
10569
|
+
b.$el.removeEventListener("scroll", B), l == null || l(), l = null;
|
|
10570
|
+
}), (T, O) => (A(), E("div", Bn, [
|
|
10571
10571
|
d("div", Dn, [
|
|
10572
|
-
(A(!0),
|
|
10572
|
+
(A(!0), E(ne, null, se(t(_), (k, L) => (A(), E("div", {
|
|
10573
10573
|
key: k.name,
|
|
10574
10574
|
id: `tab_${k.name}`,
|
|
10575
10575
|
class: G(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
|
|
10576
|
-
k.name === t(
|
|
10577
|
-
t(
|
|
10576
|
+
k.name === t(y) && "active",
|
|
10577
|
+
t(_).length > 1 && "hoverItem"
|
|
10578
10578
|
]]),
|
|
10579
|
-
onContextmenu: pe((
|
|
10580
|
-
onClick: (
|
|
10581
|
-
onDblclick: (
|
|
10579
|
+
onContextmenu: pe((K) => m(K, k, L), ["prevent", "stop"]),
|
|
10580
|
+
onClick: (K) => M(k),
|
|
10581
|
+
onDblclick: (K) => u(k)
|
|
10582
10582
|
}, [
|
|
10583
|
-
k.icon ? (A(),
|
|
10583
|
+
k.icon ? (A(), E("i", {
|
|
10584
10584
|
key: 0,
|
|
10585
10585
|
class: G(["imicon", k.icon])
|
|
10586
10586
|
}, null, 2)) : V("", !0),
|
|
10587
|
-
|
|
10587
|
+
te(" " + x(k.meta.title) + " ", 1),
|
|
10588
10588
|
d("div", {
|
|
10589
10589
|
class: "abs r flexMode hc vc w20 h20",
|
|
10590
|
-
onClick: pe((
|
|
10591
|
-
}, [...
|
|
10590
|
+
onClick: pe((K) => S(k, L), ["stop"])
|
|
10591
|
+
}, [...O[0] || (O[0] = [
|
|
10592
10592
|
d("span", null, "✕", -1)
|
|
10593
10593
|
])], 8, Fn)
|
|
10594
10594
|
], 42, Rn))), 128)),
|
|
10595
|
-
|
|
10595
|
+
O[1] || (O[1] = d("div", { class: "w16 h16 noShrink" }, null, -1))
|
|
10596
10596
|
])
|
|
10597
10597
|
]));
|
|
10598
10598
|
}
|
|
10599
|
-
}), Vn = /* @__PURE__ */
|
|
10599
|
+
}), Vn = /* @__PURE__ */ le(Gn, [["__scopeId", "data-v-e9bf80ea"]]), Kn = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Un = { class: "logo" }, Hn = { class: "logomini" }, Jn = { class: "MenuArea p4 yscroll" }, Zn = ["onClick"], Yn = { class: "itemIcon w24 txt-c txt-tip fs18" }, Wn = { key: 1 }, qn = {
|
|
10600
10600
|
key: 0,
|
|
10601
10601
|
class: "itemChildrenArea mt2 p4"
|
|
10602
10602
|
}, Xn = ["onClick"], Qn = { class: "itemIcon w24 txt-c txt-tip fs18" }, eo = { class: "h64 p8-4" }, ao = { class: "flexMode vc g8 p8-16 radius4 hover" }, lo = /* @__PURE__ */ Object.assign({
|
|
@@ -10619,124 +10619,124 @@ const Ln = oa({
|
|
|
10619
10619
|
}
|
|
10620
10620
|
},
|
|
10621
10621
|
setup(e, { emit: o }) {
|
|
10622
|
-
const a = e, l =
|
|
10622
|
+
const a = e, l = q({
|
|
10623
10623
|
collapse: !1
|
|
10624
|
-
}), n = aa(),
|
|
10625
|
-
|
|
10624
|
+
}), n = aa(), i = la(), c = _e("store"), w = c.launch();
|
|
10625
|
+
ie(() => {
|
|
10626
10626
|
b();
|
|
10627
10627
|
});
|
|
10628
|
-
const
|
|
10628
|
+
const v = o, b = () => {
|
|
10629
10629
|
const u = localStorage.getItem("collapse");
|
|
10630
|
-
u && (l.collapse = JSON.parse(u)), document.addEventListener("keydown",
|
|
10630
|
+
u && (l.collapse = JSON.parse(u)), document.addEventListener("keydown", g);
|
|
10631
10631
|
}, s = (u) => {
|
|
10632
|
-
l.collapse === !0 ? l.collapse = !1 : l.collapse === !1 ? l.collapse = !0 : l.collapse = u, localStorage.setItem("collapse", l.collapse),
|
|
10633
|
-
},
|
|
10632
|
+
l.collapse === !0 ? l.collapse = !1 : l.collapse === !1 ? l.collapse = !0 : l.collapse = u, localStorage.setItem("collapse", l.collapse), v("on-collapse-change", l.collapse);
|
|
10633
|
+
}, g = (u) => {
|
|
10634
10634
|
u.shiftKey && (u.metaKey || u.ctrlKey) && (u.keyCode === 37 ? s(!0) : u.keyCode === 39 && s(!1));
|
|
10635
|
-
},
|
|
10636
|
-
var
|
|
10637
|
-
return (
|
|
10638
|
-
},
|
|
10639
|
-
var
|
|
10640
|
-
return ((
|
|
10635
|
+
}, z = (u) => {
|
|
10636
|
+
var S;
|
|
10637
|
+
return (S = u == null ? void 0 : u.children) != null && S.length ? z(u.children[0]) : u;
|
|
10638
|
+
}, h = (u) => {
|
|
10639
|
+
var S;
|
|
10640
|
+
return ((S = u == null ? void 0 : u.children) == null ? void 0 : S.some((_) => _.name === n.name || h(_))) ?? !1;
|
|
10641
10641
|
}, P = (u) => {
|
|
10642
|
-
const
|
|
10643
|
-
|
|
10644
|
-
},
|
|
10645
|
-
const u = { ...n.query, _: Date.now() },
|
|
10646
|
-
|
|
10642
|
+
const S = z(u);
|
|
10643
|
+
S != null && S.name && i.push({ name: S.name });
|
|
10644
|
+
}, B = () => {
|
|
10645
|
+
const u = { ...n.query, _: Date.now() }, S = n.name ? { name: n.name, params: n.params, query: u } : { path: n.path, query: u };
|
|
10646
|
+
i.replace(S).catch(() => {
|
|
10647
10647
|
});
|
|
10648
|
-
},
|
|
10648
|
+
}, f = () => {
|
|
10649
10649
|
var u;
|
|
10650
10650
|
return ((u = globalThis.$config) == null ? void 0 : u.loginPageName) || "Entry";
|
|
10651
10651
|
}, m = () => {
|
|
10652
10652
|
const u = () => {
|
|
10653
|
-
var
|
|
10653
|
+
var _, y;
|
|
10654
10654
|
try {
|
|
10655
|
-
const
|
|
10656
|
-
(
|
|
10655
|
+
const D = c.tab();
|
|
10656
|
+
(_ = D.closeAllTab) == null || _.call(D), (y = D.$patch) == null || y.call(D, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
|
|
10657
10657
|
} catch {
|
|
10658
10658
|
}
|
|
10659
|
-
},
|
|
10660
|
-
if (u(), typeof
|
|
10661
|
-
|
|
10659
|
+
}, S = () => {
|
|
10660
|
+
if (u(), typeof w.clearLogin == "function")
|
|
10661
|
+
w.clearLogin();
|
|
10662
10662
|
else {
|
|
10663
10663
|
try {
|
|
10664
10664
|
localStorage.removeItem("login");
|
|
10665
10665
|
} catch {
|
|
10666
10666
|
}
|
|
10667
|
-
|
|
10667
|
+
w.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
|
|
10668
10668
|
}
|
|
10669
10669
|
};
|
|
10670
|
-
|
|
10671
|
-
|
|
10670
|
+
w.$patch({ loggingOut: !0 }), i.replace({ name: f() }).catch(() => i.replace({ path: "/" })).then(S).catch(() => {
|
|
10671
|
+
w.$patch({ loggingOut: !1 });
|
|
10672
10672
|
try {
|
|
10673
|
-
|
|
10673
|
+
i.replace({ path: "/" });
|
|
10674
10674
|
} catch {
|
|
10675
10675
|
}
|
|
10676
|
-
|
|
10676
|
+
S();
|
|
10677
10677
|
});
|
|
10678
|
-
},
|
|
10679
|
-
return
|
|
10680
|
-
document.removeEventListener("keydown",
|
|
10681
|
-
}), (u,
|
|
10682
|
-
const
|
|
10683
|
-
return A(),
|
|
10678
|
+
}, M = C(() => l.collapse ? "im-verticalleft" : "im-verticalright");
|
|
10679
|
+
return be(() => {
|
|
10680
|
+
document.removeEventListener("keydown", g);
|
|
10681
|
+
}), (u, S) => {
|
|
10682
|
+
const _ = F("el-popconfirm");
|
|
10683
|
+
return A(), E("div", {
|
|
10684
10684
|
class: G(["FrameMenu sticky vh100 noselect noShrink", t(l).collapse && "collapse"])
|
|
10685
10685
|
}, [
|
|
10686
10686
|
d("div", Kn, [
|
|
10687
10687
|
d("div", Un, [
|
|
10688
|
-
|
|
10688
|
+
Z(u.$slots, "logo", {}, void 0, !0)
|
|
10689
10689
|
]),
|
|
10690
10690
|
d("div", Hn, [
|
|
10691
|
-
|
|
10691
|
+
Z(u.$slots, "logomini", {}, void 0, !0)
|
|
10692
10692
|
]),
|
|
10693
10693
|
d("div", {
|
|
10694
10694
|
class: "collapseArea hover abs",
|
|
10695
|
-
onClick:
|
|
10695
|
+
onClick: S[0] || (S[0] = (y) => s(t(l).collapse))
|
|
10696
10696
|
}, [
|
|
10697
10697
|
d("i", {
|
|
10698
|
-
class: G(["imicon fs20", t(
|
|
10698
|
+
class: G(["imicon fs20", t(M)])
|
|
10699
10699
|
}, null, 2)
|
|
10700
10700
|
])
|
|
10701
10701
|
]),
|
|
10702
10702
|
d("div", Jn, [
|
|
10703
|
-
(A(!0),
|
|
10704
|
-
var
|
|
10705
|
-
return A(),
|
|
10706
|
-
key:
|
|
10703
|
+
(A(!0), E(ne, null, se(a.routes, (y, D) => {
|
|
10704
|
+
var T, O;
|
|
10705
|
+
return A(), E("div", {
|
|
10706
|
+
key: D,
|
|
10707
10707
|
class: "menuItemWrap mb2"
|
|
10708
10708
|
}, [
|
|
10709
10709
|
d("div", {
|
|
10710
10710
|
class: G(["menuItem flexMode vc g8 radius4 p0-16", [
|
|
10711
|
-
t(n).name ===
|
|
10711
|
+
t(n).name === y.name && "active bg-primary",
|
|
10712
10712
|
t(l).collapse && "hc",
|
|
10713
|
-
t(l).collapse && y
|
|
10713
|
+
t(l).collapse && h(y) && "activeChild"
|
|
10714
10714
|
]]),
|
|
10715
|
-
onClick: (k) => P(
|
|
10716
|
-
onDblclick:
|
|
10715
|
+
onClick: (k) => P(y),
|
|
10716
|
+
onDblclick: B
|
|
10717
10717
|
}, [
|
|
10718
10718
|
d("div", Yn, [
|
|
10719
|
-
|
|
10719
|
+
y.meta.icon ? (A(), E("i", {
|
|
10720
10720
|
key: 0,
|
|
10721
|
-
class: G([a.iconClass,
|
|
10722
|
-
}, null, 2)) : (A(),
|
|
10721
|
+
class: G([a.iconClass, y.meta.icon])
|
|
10722
|
+
}, null, 2)) : (A(), E("span", Wn, x(((T = y.meta.title) == null ? void 0 : T.substr(0, 1)) || "U"), 1))
|
|
10723
10723
|
]),
|
|
10724
10724
|
d("div", {
|
|
10725
10725
|
class: G(["itemTitle txt-nowrap fs14", [
|
|
10726
|
-
t(n).name ===
|
|
10726
|
+
t(n).name === y.name && "active",
|
|
10727
10727
|
t(l).collapse && "hide"
|
|
10728
10728
|
]])
|
|
10729
|
-
}, x(
|
|
10729
|
+
}, x(y.meta.title), 3)
|
|
10730
10730
|
], 42, Zn),
|
|
10731
|
-
(
|
|
10732
|
-
(A(!0),
|
|
10731
|
+
(O = y.children) != null && O.length ? (A(), E("div", qn, [
|
|
10732
|
+
(A(!0), E(ne, null, se(y.children, (k, L) => (A(), E("div", {
|
|
10733
10733
|
key: L,
|
|
10734
10734
|
class: G(["childrenItem flexMode vc g8 radius4 h40 p0-16", t(n).name === k.name && "active bg-primary"]),
|
|
10735
|
-
onClick: (
|
|
10736
|
-
onDblclick:
|
|
10735
|
+
onClick: (K) => P(k),
|
|
10736
|
+
onDblclick: B
|
|
10737
10737
|
}, [
|
|
10738
10738
|
d("div", Qn, [
|
|
10739
|
-
k.meta.icon ? (A(),
|
|
10739
|
+
k.meta.icon ? (A(), E("i", {
|
|
10740
10740
|
key: 0,
|
|
10741
10741
|
class: G([a.iconClass, k.meta.icon])
|
|
10742
10742
|
}, null, 2)) : V("", !0)
|
|
@@ -10753,17 +10753,17 @@ const Ln = oa({
|
|
|
10753
10753
|
}), 128))
|
|
10754
10754
|
]),
|
|
10755
10755
|
d("div", eo, [
|
|
10756
|
-
j(
|
|
10756
|
+
j(_, {
|
|
10757
10757
|
placement: "top",
|
|
10758
10758
|
title: u.$l("Log out?"),
|
|
10759
10759
|
onConfirm: m
|
|
10760
10760
|
}, {
|
|
10761
10761
|
reference: N(() => [
|
|
10762
10762
|
d("div", ao, [
|
|
10763
|
-
|
|
10763
|
+
S[1] || (S[1] = d("i", { class: "imicon im-power fs24" }, null, -1)),
|
|
10764
10764
|
d("span", {
|
|
10765
10765
|
class: G(["fs14", t(l).collapse && "hide"])
|
|
10766
|
-
}, x(t(
|
|
10766
|
+
}, x(t(w).userinfo[a.usernameKey]), 3)
|
|
10767
10767
|
])
|
|
10768
10768
|
]),
|
|
10769
10769
|
_: 1
|
|
@@ -10772,28 +10772,28 @@ const Ln = oa({
|
|
|
10772
10772
|
], 2);
|
|
10773
10773
|
};
|
|
10774
10774
|
}
|
|
10775
|
-
}), no = /* @__PURE__ */
|
|
10775
|
+
}), no = /* @__PURE__ */ le(lo, [["__scopeId", "data-v-81e9f3a9"]]), oo = { class: "FrameFooter" }, to = { class: "txt-tip" }, ro = { class: "txt-primary" }, io = /* @__PURE__ */ Object.assign({
|
|
10776
10776
|
name: "FrameFooter",
|
|
10777
10777
|
inheritAttrs: !1
|
|
10778
10778
|
}, {
|
|
10779
10779
|
__name: "Footer",
|
|
10780
10780
|
setup(e) {
|
|
10781
|
-
|
|
10781
|
+
q({});
|
|
10782
10782
|
const o = C(() => globalThis.$config);
|
|
10783
|
-
return (a, l) => (A(),
|
|
10783
|
+
return (a, l) => (A(), E("div", oo, [
|
|
10784
10784
|
d("span", to, x(t(o).copyright), 1),
|
|
10785
10785
|
d("span", ro, x(t(o).author), 1)
|
|
10786
10786
|
]));
|
|
10787
10787
|
}
|
|
10788
|
-
}), so = /* @__PURE__ */
|
|
10788
|
+
}), so = /* @__PURE__ */ le(io, [["__scopeId", "data-v-c3ba0162"]]), co = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, uo = /* @__PURE__ */ Object.assign({
|
|
10789
10789
|
name: "FrameTool",
|
|
10790
10790
|
inheritAttrs: !1
|
|
10791
10791
|
}, {
|
|
10792
10792
|
__name: "Tool",
|
|
10793
10793
|
setup(e) {
|
|
10794
10794
|
const o = ta(() => import("./Config.js"));
|
|
10795
|
-
|
|
10796
|
-
const a =
|
|
10795
|
+
q({});
|
|
10796
|
+
const a = q({
|
|
10797
10797
|
current: "",
|
|
10798
10798
|
list: [
|
|
10799
10799
|
{
|
|
@@ -10804,9 +10804,9 @@ const Ln = oa({
|
|
|
10804
10804
|
}), l = () => {
|
|
10805
10805
|
a.current = 0;
|
|
10806
10806
|
};
|
|
10807
|
-
return (n,
|
|
10808
|
-
const c =
|
|
10809
|
-
return A(),
|
|
10807
|
+
return (n, i) => {
|
|
10808
|
+
const c = F("Icon"), w = F("Drawer");
|
|
10809
|
+
return A(), E(ne, null, [
|
|
10810
10810
|
d("div", co, [
|
|
10811
10811
|
d("div", {
|
|
10812
10812
|
class: "hover w24 h24 flexMode hc vc radius",
|
|
@@ -10818,9 +10818,9 @@ const Ln = oa({
|
|
|
10818
10818
|
})
|
|
10819
10819
|
])
|
|
10820
10820
|
]),
|
|
10821
|
-
j(
|
|
10821
|
+
j(w, {
|
|
10822
10822
|
current: t(a).current,
|
|
10823
|
-
"onUpdate:current":
|
|
10823
|
+
"onUpdate:current": i[0] || (i[0] = (v) => t(a).current = v),
|
|
10824
10824
|
drawer: t(a).list
|
|
10825
10825
|
}, null, 8, ["current", "drawer"])
|
|
10826
10826
|
], 64);
|
|
@@ -10835,17 +10835,17 @@ const Ln = oa({
|
|
|
10835
10835
|
}, {
|
|
10836
10836
|
__name: "RightMenu",
|
|
10837
10837
|
setup(e) {
|
|
10838
|
-
const a = _e("store").rmenu(), l =
|
|
10838
|
+
const a = _e("store").rmenu(), l = X(null), n = q({
|
|
10839
10839
|
x: 0,
|
|
10840
10840
|
y: 0,
|
|
10841
10841
|
ready: !1
|
|
10842
|
-
}),
|
|
10843
|
-
const { position: u, el:
|
|
10844
|
-
if (
|
|
10845
|
-
const
|
|
10842
|
+
}), i = (u, S, _) => Math.min(Math.max(u, S), _), c = (u) => Number.isFinite(Number(u)), w = () => {
|
|
10843
|
+
const { position: u, el: S } = a;
|
|
10844
|
+
if (S != null && S.getBoundingClientRect) {
|
|
10845
|
+
const _ = S.getBoundingClientRect();
|
|
10846
10846
|
return {
|
|
10847
|
-
x:
|
|
10848
|
-
y:
|
|
10847
|
+
x: _.left,
|
|
10848
|
+
y: _.bottom + 4
|
|
10849
10849
|
};
|
|
10850
10850
|
}
|
|
10851
10851
|
return u && c(u.x) && c(u.y) ? {
|
|
@@ -10855,91 +10855,91 @@ const Ln = oa({
|
|
|
10855
10855
|
x: 0,
|
|
10856
10856
|
y: 0
|
|
10857
10857
|
};
|
|
10858
|
-
},
|
|
10858
|
+
}, v = async () => {
|
|
10859
10859
|
if (n.ready = !1, !m.value)
|
|
10860
10860
|
return;
|
|
10861
|
-
await
|
|
10861
|
+
await de();
|
|
10862
10862
|
const u = l.value;
|
|
10863
10863
|
if (!u)
|
|
10864
10864
|
return;
|
|
10865
|
-
const
|
|
10866
|
-
n.x =
|
|
10865
|
+
const S = w(), _ = u.getBoundingClientRect(), y = 8, D = Math.max(y, window.innerWidth - _.width - y), T = Math.max(y, window.innerHeight - _.height - y);
|
|
10866
|
+
n.x = i(S.x, y, D), n.y = i(S.y, y, T), n.ready = !0;
|
|
10867
10867
|
}, b = () => {
|
|
10868
10868
|
a.visible && a.hide(), n.ready = !1;
|
|
10869
10869
|
}, s = (u) => {
|
|
10870
|
-
var
|
|
10871
|
-
!m.value || (
|
|
10872
|
-
},
|
|
10873
|
-
var
|
|
10874
|
-
!m.value || (
|
|
10875
|
-
},
|
|
10870
|
+
var S;
|
|
10871
|
+
!m.value || (S = l.value) != null && S.contains(u.target) || b();
|
|
10872
|
+
}, g = (u) => {
|
|
10873
|
+
var S;
|
|
10874
|
+
!m.value || (S = l.value) != null && S.contains(u.target) || b();
|
|
10875
|
+
}, z = (u) => {
|
|
10876
10876
|
u.key === "Escape" && b();
|
|
10877
|
-
},
|
|
10878
|
-
var
|
|
10879
|
-
if (!
|
|
10877
|
+
}, h = (u) => typeof u.disabled == "function" ? u.disabled(u) : !!u.disabled, P = (u, S) => u.value ?? u.label ?? S, B = (u) => {
|
|
10878
|
+
var S, _;
|
|
10879
|
+
if (!h(u))
|
|
10880
10880
|
try {
|
|
10881
|
-
(
|
|
10881
|
+
(S = u.cb) == null || S.call(u, u), (_ = u.onClick) == null || _.call(u, u);
|
|
10882
10882
|
} finally {
|
|
10883
10883
|
b();
|
|
10884
10884
|
}
|
|
10885
|
-
},
|
|
10885
|
+
}, f = C(() => Array.isArray(a.options) ? a.options.filter(Boolean) : []), m = C(() => a.visible && f.value.length > 0), M = C(() => ({
|
|
10886
10886
|
left: `${n.x}px`,
|
|
10887
10887
|
top: `${n.y}px`,
|
|
10888
10888
|
visibility: n.ready ? "visible" : "hidden"
|
|
10889
10889
|
}));
|
|
10890
|
-
return
|
|
10890
|
+
return re(
|
|
10891
10891
|
() => {
|
|
10892
|
-
var u,
|
|
10892
|
+
var u, S;
|
|
10893
10893
|
return [
|
|
10894
10894
|
a.visible,
|
|
10895
10895
|
a.el,
|
|
10896
10896
|
a.options,
|
|
10897
10897
|
(u = a.position) == null ? void 0 : u.x,
|
|
10898
|
-
(
|
|
10899
|
-
|
|
10898
|
+
(S = a.position) == null ? void 0 : S.y,
|
|
10899
|
+
f.value.length
|
|
10900
10900
|
];
|
|
10901
10901
|
},
|
|
10902
10902
|
() => {
|
|
10903
|
-
|
|
10903
|
+
v();
|
|
10904
10904
|
},
|
|
10905
10905
|
{
|
|
10906
10906
|
flush: "post"
|
|
10907
10907
|
}
|
|
10908
|
-
),
|
|
10909
|
-
document.addEventListener("pointerdown", s, !0), document.addEventListener("contextmenu",
|
|
10910
|
-
}),
|
|
10911
|
-
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("contextmenu",
|
|
10912
|
-
}), (u,
|
|
10908
|
+
), ie(() => {
|
|
10909
|
+
document.addEventListener("pointerdown", s, !0), document.addEventListener("contextmenu", g, !0), document.addEventListener("keydown", z), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
|
|
10910
|
+
}), be(() => {
|
|
10911
|
+
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("contextmenu", g, !0), document.removeEventListener("keydown", z), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
|
|
10912
|
+
}), (u, S) => (A(), Q(ja, { to: "body" }, [
|
|
10913
10913
|
j(ra, { name: "FrameRightMenuFade" }, {
|
|
10914
10914
|
default: N(() => [
|
|
10915
|
-
t(m) ? (A(),
|
|
10915
|
+
t(m) ? (A(), E("div", {
|
|
10916
10916
|
key: 0,
|
|
10917
10917
|
ref_key: "menuRef",
|
|
10918
10918
|
ref: l,
|
|
10919
10919
|
class: "FrameRightMenu",
|
|
10920
|
-
style:
|
|
10921
|
-
onClick:
|
|
10920
|
+
style: ce(t(M)),
|
|
10921
|
+
onClick: S[0] || (S[0] = pe(() => {
|
|
10922
10922
|
}, ["stop"])),
|
|
10923
|
-
onPointerdown:
|
|
10923
|
+
onPointerdown: S[1] || (S[1] = pe(() => {
|
|
10924
10924
|
}, ["stop"])),
|
|
10925
|
-
onContextmenu:
|
|
10925
|
+
onContextmenu: S[2] || (S[2] = pe(() => {
|
|
10926
10926
|
}, ["prevent", "stop"]))
|
|
10927
10927
|
}, [
|
|
10928
|
-
(A(!0),
|
|
10929
|
-
key: P(
|
|
10928
|
+
(A(!0), E(ne, null, se(t(f), (_, y) => (A(), E(ne, {
|
|
10929
|
+
key: P(_, y)
|
|
10930
10930
|
}, [
|
|
10931
|
-
|
|
10931
|
+
_.divider ? (A(), E("div", mo)) : (A(), E("button", {
|
|
10932
10932
|
key: 1,
|
|
10933
10933
|
type: "button",
|
|
10934
|
-
class: G(["menuItem", { disabled:
|
|
10935
|
-
disabled:
|
|
10936
|
-
onClick: (
|
|
10934
|
+
class: G(["menuItem", { disabled: h(_) }]),
|
|
10935
|
+
disabled: h(_),
|
|
10936
|
+
onClick: (D) => B(_)
|
|
10937
10937
|
}, [
|
|
10938
|
-
|
|
10938
|
+
_.icon ? (A(), E("i", {
|
|
10939
10939
|
key: 0,
|
|
10940
|
-
class: G(["imicon menuIcon",
|
|
10940
|
+
class: G(["imicon menuIcon", _.icon])
|
|
10941
10941
|
}, null, 2)) : V("", !0),
|
|
10942
|
-
d("span", vo, x(
|
|
10942
|
+
d("span", vo, x(_.label), 1)
|
|
10943
10943
|
], 10, bo))
|
|
10944
10944
|
], 64))), 128))
|
|
10945
10945
|
], 36)) : V("", !0)
|
|
@@ -10948,7 +10948,7 @@ const Ln = oa({
|
|
|
10948
10948
|
})
|
|
10949
10949
|
]));
|
|
10950
10950
|
}
|
|
10951
|
-
}), fo = /* @__PURE__ */
|
|
10951
|
+
}), fo = /* @__PURE__ */ le(po, [["__scopeId", "data-v-388539e5"]]), ho = { class: "MvcFrame" }, _o = /* @__PURE__ */ Object.assign({
|
|
10952
10952
|
name: "MvcFrame",
|
|
10953
10953
|
inheritAttrs: !1
|
|
10954
10954
|
}, {
|
|
@@ -10971,50 +10971,50 @@ const Ln = oa({
|
|
|
10971
10971
|
}
|
|
10972
10972
|
},
|
|
10973
10973
|
setup(e) {
|
|
10974
|
-
const o = e, a =
|
|
10975
|
-
|
|
10974
|
+
const o = e, a = q({}), l = _e("store"), n = l.tab(), i = l.init();
|
|
10975
|
+
ie(() => {
|
|
10976
10976
|
c();
|
|
10977
10977
|
});
|
|
10978
10978
|
const c = () => {
|
|
10979
|
-
Fa(),
|
|
10980
|
-
},
|
|
10981
|
-
var
|
|
10982
|
-
if ((
|
|
10979
|
+
Fa(), w();
|
|
10980
|
+
}, w = () => {
|
|
10981
|
+
var g, z, h, P, B, f;
|
|
10982
|
+
if ((z = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && z.url) {
|
|
10983
10983
|
const m = document.createElement("script");
|
|
10984
|
-
if (m.id = "iconfont", m.type = "text/javascript", m.src = (P = (
|
|
10984
|
+
if (m.id = "iconfont", m.type = "text/javascript", m.src = (P = (h = globalThis.$config) == null ? void 0 : h.iconfont) == null ? void 0 : P.url, document.getElementById("iconfont"))
|
|
10985
10985
|
return;
|
|
10986
|
-
document.head.appendChild(m), (
|
|
10986
|
+
document.head.appendChild(m), (f = (B = globalThis.$config) == null ? void 0 : B.iconfont) == null || delete f.url;
|
|
10987
10987
|
}
|
|
10988
|
-
},
|
|
10989
|
-
a.collapse =
|
|
10990
|
-
}, b = C(() =>
|
|
10988
|
+
}, v = (g) => {
|
|
10989
|
+
a.collapse = g;
|
|
10990
|
+
}, b = C(() => i.pageLoading), s = C(() => ({
|
|
10991
10991
|
maxWidth: a.collapse ? "calc(100% - 4rem)" : "calc(100% - 12rem)"
|
|
10992
10992
|
}));
|
|
10993
|
-
return (
|
|
10994
|
-
const
|
|
10995
|
-
return A(),
|
|
10996
|
-
j(no,
|
|
10997
|
-
|
|
10993
|
+
return (g, z) => {
|
|
10994
|
+
const h = F("Loading"), P = F("router-view");
|
|
10995
|
+
return A(), E("div", ho, [
|
|
10996
|
+
j(no, oe(o.menu, { onOnCollapseChange: v }), me({ _: 2 }, [
|
|
10997
|
+
g.$slots.logo ? {
|
|
10998
10998
|
name: "logo",
|
|
10999
10999
|
fn: N(() => [
|
|
11000
|
-
|
|
11000
|
+
Z(g.$slots, "logo", {}, void 0, !0)
|
|
11001
11001
|
]),
|
|
11002
11002
|
key: "0"
|
|
11003
11003
|
} : void 0,
|
|
11004
|
-
|
|
11004
|
+
g.$slots.logomini ? {
|
|
11005
11005
|
name: "logomini",
|
|
11006
11006
|
fn: N(() => [
|
|
11007
|
-
|
|
11007
|
+
Z(g.$slots, "logomini", {}, void 0, !0)
|
|
11008
11008
|
]),
|
|
11009
11009
|
key: "1"
|
|
11010
11010
|
} : void 0
|
|
11011
11011
|
]), 1040),
|
|
11012
11012
|
d("div", {
|
|
11013
11013
|
class: "PageArea",
|
|
11014
|
-
style:
|
|
11014
|
+
style: ce(t(s))
|
|
11015
11015
|
}, [
|
|
11016
|
-
j(
|
|
11017
|
-
t(n).useTab ? (A(),
|
|
11016
|
+
j(h, { loading: t(b) }, null, 8, ["loading"]),
|
|
11017
|
+
t(n).useTab ? (A(), Q(Vn, { key: 0 })) : V("", !0),
|
|
11018
11018
|
j(uo),
|
|
11019
11019
|
j(P, we(Me(o.page)), null, 16),
|
|
11020
11020
|
j(so)
|
|
@@ -11023,7 +11023,7 @@ const Ln = oa({
|
|
|
11023
11023
|
]);
|
|
11024
11024
|
};
|
|
11025
11025
|
}
|
|
11026
|
-
}), go = /* @__PURE__ */
|
|
11026
|
+
}), go = /* @__PURE__ */ le(_o, [["__scopeId", "data-v-ae3008b4"]]), yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11027
11027
|
__proto__: null,
|
|
11028
11028
|
default: go
|
|
11029
11029
|
}, Symbol.toStringTag, { value: "Module" })), Ao = ["xlink:href"], zo = /* @__PURE__ */ Object.assign({
|
|
@@ -11041,24 +11041,24 @@ const Ln = oa({
|
|
|
11041
11041
|
}
|
|
11042
11042
|
},
|
|
11043
11043
|
setup(e) {
|
|
11044
|
-
const o = e, a =
|
|
11044
|
+
const o = e, a = q({
|
|
11045
11045
|
prefix: "imc"
|
|
11046
11046
|
});
|
|
11047
|
-
|
|
11048
|
-
var n,
|
|
11049
|
-
(
|
|
11047
|
+
ie(() => {
|
|
11048
|
+
var n, i;
|
|
11049
|
+
(i = (n = globalThis.$config) == null ? void 0 : n.iconfont) != null && i.prefix && (a.prefix = globalThis.$config.iconfont.prefix);
|
|
11050
11050
|
});
|
|
11051
11051
|
const l = C(() => {
|
|
11052
|
-
const
|
|
11052
|
+
const i = `${(Number(o.size) || 20) / 16}rem`;
|
|
11053
11053
|
return {
|
|
11054
|
-
width:
|
|
11055
|
-
height:
|
|
11054
|
+
width: i,
|
|
11055
|
+
height: i
|
|
11056
11056
|
};
|
|
11057
11057
|
});
|
|
11058
|
-
return (n,
|
|
11058
|
+
return (n, i) => (A(), E("svg", {
|
|
11059
11059
|
class: "MvcIcon",
|
|
11060
11060
|
"aria-hidden": "true",
|
|
11061
|
-
style:
|
|
11061
|
+
style: ce(t(l))
|
|
11062
11062
|
}, [
|
|
11063
11063
|
d("use", {
|
|
11064
11064
|
"xlink:href": `#${t(a).prefix}-${e.name}`
|
|
@@ -11088,6 +11088,10 @@ const Ln = oa({
|
|
|
11088
11088
|
materialLabel: {
|
|
11089
11089
|
type: Boolean,
|
|
11090
11090
|
default: !1
|
|
11091
|
+
},
|
|
11092
|
+
focus: {
|
|
11093
|
+
type: Boolean,
|
|
11094
|
+
default: !1
|
|
11091
11095
|
}
|
|
11092
11096
|
},
|
|
11093
11097
|
emits: [
|
|
@@ -11099,84 +11103,105 @@ const Ln = oa({
|
|
|
11099
11103
|
"focus"
|
|
11100
11104
|
],
|
|
11101
11105
|
setup(e, { emit: o }) {
|
|
11102
|
-
const a = e, l = Ia(), n =
|
|
11103
|
-
let c = null;
|
|
11104
|
-
const
|
|
11106
|
+
const a = e, l = Ia(), n = ve(), i = X(null);
|
|
11107
|
+
let c = null, w = null;
|
|
11108
|
+
const v = q({
|
|
11105
11109
|
val: "",
|
|
11106
11110
|
isComposing: !1,
|
|
11107
11111
|
focused: !1
|
|
11108
|
-
}),
|
|
11109
|
-
const { class:
|
|
11110
|
-
return
|
|
11112
|
+
}), b = o, { proxy: s } = ue(), g = C(() => {
|
|
11113
|
+
const { class: R, ...W } = n;
|
|
11114
|
+
return W;
|
|
11111
11115
|
});
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
const _ = (k = r.value) == null ? void 0 : k.$el;
|
|
11115
|
-
c = ((L = _ == null ? void 0 : _.querySelector) == null ? void 0 : L.call(_, "input")) || ((F = _ == null ? void 0 : _.querySelector) == null ? void 0 : F.call(_, "textarea")), c && (c.addEventListener("compositionstart", f), c.addEventListener("compositionend", w));
|
|
11116
|
+
ie(() => {
|
|
11117
|
+
c = z(), c && (c.addEventListener("compositionstart", f), c.addEventListener("compositionend", m)), a.focus && B();
|
|
11116
11118
|
});
|
|
11117
|
-
const
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
},
|
|
11122
|
-
|
|
11123
|
-
}, P = (
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11119
|
+
const z = () => {
|
|
11120
|
+
var W, ee, r;
|
|
11121
|
+
const R = (W = i.value) == null ? void 0 : W.$el;
|
|
11122
|
+
return c = ((ee = R == null ? void 0 : R.querySelector) == null ? void 0 : ee.call(R, "input")) || ((r = R == null ? void 0 : R.querySelector) == null ? void 0 : r.call(R, "textarea")) || c, c;
|
|
11123
|
+
}, h = () => {
|
|
11124
|
+
w && (clearTimeout(w), w = null);
|
|
11125
|
+
}, P = () => {
|
|
11126
|
+
var W, ee;
|
|
11127
|
+
(ee = (W = i.value) == null ? void 0 : W.focus) == null || ee.call(W);
|
|
11128
|
+
const R = z();
|
|
11129
|
+
return R ? (R.focus(), document.activeElement === R) : !1;
|
|
11130
|
+
}, B = (R = 0) => {
|
|
11131
|
+
h(), de(() => {
|
|
11132
|
+
!a.focus || typeof window > "u" || P() || R >= 5 || (w = setTimeout(() => {
|
|
11133
|
+
w = null, B(R + 1);
|
|
11134
|
+
}, 30));
|
|
11135
|
+
});
|
|
11136
|
+
}, f = () => {
|
|
11137
|
+
v.isComposing = !0;
|
|
11138
|
+
}, m = () => {
|
|
11139
|
+
v.isComposing = !1, de(() => y(v.val));
|
|
11140
|
+
}, M = (R) => {
|
|
11141
|
+
v.isComposing || y(R);
|
|
11142
|
+
}, u = (R) => {
|
|
11143
|
+
v.focused = !0, b("focus", R);
|
|
11144
|
+
}, S = (R) => {
|
|
11145
|
+
v.focused = !1, b("blur", R);
|
|
11146
|
+
}, _ = (R) => {
|
|
11147
|
+
b("enter", v.val, R);
|
|
11148
|
+
}, y = (R) => {
|
|
11149
|
+
b("update:modelValue", R), b("input", R);
|
|
11150
|
+
}, D = C(() => !!(s.$attrs.maxlength || T.value)), T = C(() => s.$attrs.max), O = C(() => String(v.val ?? "").length > 0), k = C(() => !!n.placeholder), L = C(
|
|
11151
|
+
() => a.materialLabel && (v.focused || O.value || k.value || l.prefix)
|
|
11152
|
+
), K = C(() => ({
|
|
11134
11153
|
[n.class]: !!n.class,
|
|
11135
11154
|
hasLabel: !!a.label,
|
|
11136
11155
|
isMaterialLabel: !!(a.label && a.materialLabel),
|
|
11137
11156
|
isTopLabel: !!(a.label && !a.materialLabel),
|
|
11138
|
-
isFloat:
|
|
11139
|
-
isFocused:
|
|
11157
|
+
isFloat: L.value,
|
|
11158
|
+
isFocused: v.focused,
|
|
11140
11159
|
isDisabled: !!n.disabled
|
|
11141
|
-
})),
|
|
11160
|
+
})), J = C(
|
|
11142
11161
|
() => a.materialLabel ? {
|
|
11143
11162
|
"--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))"
|
|
11144
11163
|
} : void 0
|
|
11145
11164
|
);
|
|
11146
|
-
return
|
|
11165
|
+
return re(
|
|
11147
11166
|
() => a.modelValue,
|
|
11148
|
-
(
|
|
11149
|
-
const
|
|
11150
|
-
String(
|
|
11167
|
+
(R) => {
|
|
11168
|
+
const W = String(R ?? "");
|
|
11169
|
+
String(v.val) !== W && (v.val = W);
|
|
11151
11170
|
},
|
|
11152
11171
|
{ immediate: !0 }
|
|
11153
|
-
),
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11172
|
+
), re(
|
|
11173
|
+
() => a.focus,
|
|
11174
|
+
(R) => {
|
|
11175
|
+
R ? B() : h();
|
|
11176
|
+
},
|
|
11177
|
+
{ flush: "post" }
|
|
11178
|
+
), be(() => {
|
|
11179
|
+
h(), c && (c.removeEventListener("compositionstart", f), c.removeEventListener("compositionend", m), c = null);
|
|
11180
|
+
}), (R, W) => {
|
|
11181
|
+
const ee = F("el-input");
|
|
11182
|
+
return A(), E("div", {
|
|
11183
|
+
class: G(["MvcField MvcFieldInput", t(K)]),
|
|
11184
|
+
style: ce(t(J))
|
|
11160
11185
|
}, [
|
|
11161
|
-
a.label ? (A(),
|
|
11162
|
-
j(
|
|
11186
|
+
a.label ? (A(), E("label", So, x(a.label), 1)) : V("", !0),
|
|
11187
|
+
j(ee, oe({
|
|
11163
11188
|
ref_key: "inputRef",
|
|
11164
|
-
ref:
|
|
11165
|
-
modelValue: t(
|
|
11166
|
-
"onUpdate:modelValue":
|
|
11167
|
-
"show-word-limit": t(
|
|
11168
|
-
maxlength: t(
|
|
11189
|
+
ref: i,
|
|
11190
|
+
modelValue: t(v).val,
|
|
11191
|
+
"onUpdate:modelValue": W[0] || (W[0] = (r) => t(v).val = r),
|
|
11192
|
+
"show-word-limit": t(D),
|
|
11193
|
+
maxlength: t(T),
|
|
11169
11194
|
class: "MvcInput"
|
|
11170
|
-
}, t(
|
|
11171
|
-
onInput:
|
|
11172
|
-
onKeydown: ia(
|
|
11173
|
-
onFocus:
|
|
11174
|
-
onBlur:
|
|
11175
|
-
}),
|
|
11176
|
-
|
|
11177
|
-
name:
|
|
11178
|
-
fn: N((
|
|
11179
|
-
|
|
11195
|
+
}, t(g), {
|
|
11196
|
+
onInput: M,
|
|
11197
|
+
onKeydown: ia(_, ["enter"]),
|
|
11198
|
+
onFocus: u,
|
|
11199
|
+
onBlur: S
|
|
11200
|
+
}), me({ _: 2 }, [
|
|
11201
|
+
se(t(l), (r, p) => ({
|
|
11202
|
+
name: p,
|
|
11203
|
+
fn: N((I) => [
|
|
11204
|
+
Z(R.$slots, p, we(Me(I || {})))
|
|
11180
11205
|
])
|
|
11181
11206
|
}))
|
|
11182
11207
|
]), 1040, ["modelValue", "show-word-limit", "maxlength"])
|
|
@@ -11209,45 +11234,45 @@ const Ln = oa({
|
|
|
11209
11234
|
}
|
|
11210
11235
|
},
|
|
11211
11236
|
setup(e) {
|
|
11212
|
-
const o = e, a =
|
|
11237
|
+
const o = e, a = ve(), l = C(() => {
|
|
11213
11238
|
const { class: b, ...s } = a;
|
|
11214
11239
|
return s;
|
|
11215
|
-
}), n =
|
|
11240
|
+
}), n = q({
|
|
11216
11241
|
lang: "en_us"
|
|
11217
11242
|
});
|
|
11218
|
-
|
|
11243
|
+
ie(() => {
|
|
11219
11244
|
c();
|
|
11220
11245
|
});
|
|
11221
|
-
const
|
|
11222
|
-
var
|
|
11223
|
-
const s = (typeof localStorage < "u" ? localStorage.getItem(Ge) : null) || ((
|
|
11246
|
+
const i = (b) => {
|
|
11247
|
+
var g;
|
|
11248
|
+
const s = (typeof localStorage < "u" ? localStorage.getItem(Ge) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
|
|
11224
11249
|
b == null || b === s || (typeof localStorage < "u" && localStorage.setItem(Ge, b), window.location.reload());
|
|
11225
11250
|
}, c = () => {
|
|
11226
|
-
var
|
|
11227
|
-
const b = ((
|
|
11251
|
+
var g;
|
|
11252
|
+
const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", s = w.value.map((z) => z.value);
|
|
11228
11253
|
n.lang = s.includes(b) ? b : s[0] || "en_us";
|
|
11229
|
-
},
|
|
11254
|
+
}, w = C(() => {
|
|
11230
11255
|
var s;
|
|
11231
|
-
return ((s = globalThis.$config) != null && s.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : el.filter((
|
|
11232
|
-
}),
|
|
11256
|
+
return ((s = globalThis.$config) != null && s.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : el.filter((g) => g.use !== !1)).filter((g) => g && g.use !== !1 && g.value);
|
|
11257
|
+
}), v = C(() => w.value.find((b) => b.value === n.lang) ?? null);
|
|
11233
11258
|
return (b, s) => {
|
|
11234
|
-
const
|
|
11235
|
-
return A(),
|
|
11259
|
+
const g = F("el-option"), z = F("el-select");
|
|
11260
|
+
return A(), Q(z, oe({
|
|
11236
11261
|
modelValue: n.lang,
|
|
11237
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
11262
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => n.lang = h),
|
|
11238
11263
|
class: ["MvcLang w140", b.$attrs.class],
|
|
11239
11264
|
teleported: o.teleported
|
|
11240
|
-
}, l.value, { onChange:
|
|
11265
|
+
}, l.value, { onChange: i }), me({
|
|
11241
11266
|
default: N(() => [
|
|
11242
|
-
(A(!0),
|
|
11243
|
-
key:
|
|
11244
|
-
label:
|
|
11245
|
-
value:
|
|
11267
|
+
(A(!0), E(ne, null, se(w.value, (h) => (A(), Q(g, {
|
|
11268
|
+
key: h.value,
|
|
11269
|
+
label: h.label,
|
|
11270
|
+
value: h.value
|
|
11246
11271
|
}, {
|
|
11247
11272
|
default: N(() => [
|
|
11248
11273
|
d("div", Eo, [
|
|
11249
|
-
o.useIcon ? (A(),
|
|
11250
|
-
d("span", Po, x(
|
|
11274
|
+
o.useIcon ? (A(), E("span", Oo, x(h.txt), 1)) : V("", !0),
|
|
11275
|
+
d("span", Po, x(h.label), 1)
|
|
11251
11276
|
])
|
|
11252
11277
|
]),
|
|
11253
11278
|
_: 2
|
|
@@ -11258,8 +11283,8 @@ const Ln = oa({
|
|
|
11258
11283
|
o.useIcon ? {
|
|
11259
11284
|
name: "prefix",
|
|
11260
11285
|
fn: N(() => [
|
|
11261
|
-
|
|
11262
|
-
d("span", ko, x(
|
|
11286
|
+
v.value ? (A(), E("div", Mo, [
|
|
11287
|
+
d("span", ko, x(v.value.txt), 1)
|
|
11263
11288
|
])) : V("", !0)
|
|
11264
11289
|
]),
|
|
11265
11290
|
key: "0"
|
|
@@ -11327,17 +11352,17 @@ const Ln = oa({
|
|
|
11327
11352
|
},
|
|
11328
11353
|
emits: ["update:modelValue", "change"],
|
|
11329
11354
|
setup(e, { emit: o }) {
|
|
11330
|
-
const a = e, l = o, n = (s) => s.value === a.modelValue,
|
|
11355
|
+
const a = e, l = o, n = (s) => s.value === a.modelValue, i = (s) => {
|
|
11331
11356
|
a.loading || a.disabled || s.disabled || (l("update:modelValue", s.value), l("change", s.value, s.raw));
|
|
11332
11357
|
}, c = (s) => {
|
|
11333
|
-
var
|
|
11334
|
-
const
|
|
11335
|
-
return
|
|
11336
|
-
},
|
|
11337
|
-
const s = a.options,
|
|
11338
|
-
return
|
|
11339
|
-
value: P[
|
|
11340
|
-
label: P[
|
|
11358
|
+
var h;
|
|
11359
|
+
const g = s.value, z = ((h = globalThis.$getType) == null ? void 0 : h.call(globalThis, g)) ?? typeof g;
|
|
11360
|
+
return z === "Object" || z === "Array" ? JSON.stringify(g) : String(g);
|
|
11361
|
+
}, w = C(() => {
|
|
11362
|
+
const s = a.options, g = Array.isArray(s) ? s : [], z = a.valueKey, h = a.labelKey;
|
|
11363
|
+
return g.filter((P) => P != null).map((P) => typeof P == "object" && !Array.isArray(P) ? {
|
|
11364
|
+
value: P[z],
|
|
11365
|
+
label: P[h] ?? "",
|
|
11341
11366
|
disabled: !!P.disabled,
|
|
11342
11367
|
raw: P
|
|
11343
11368
|
} : {
|
|
@@ -11346,9 +11371,9 @@ const Ln = oa({
|
|
|
11346
11371
|
disabled: !1,
|
|
11347
11372
|
raw: P
|
|
11348
11373
|
});
|
|
11349
|
-
}),
|
|
11350
|
-
var
|
|
11351
|
-
const s = (
|
|
11374
|
+
}), v = C(() => a.size === "small" ? "sizeSmall" : a.size === "large" ? "sizeLarge" : ""), b = C(() => {
|
|
11375
|
+
var g, z;
|
|
11376
|
+
const s = (z = (g = a.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : z.call(g);
|
|
11352
11377
|
return {
|
|
11353
11378
|
icon: a.loadingIcon,
|
|
11354
11379
|
showTxt: !!s,
|
|
@@ -11356,36 +11381,36 @@ const Ln = oa({
|
|
|
11356
11381
|
radius: 8
|
|
11357
11382
|
};
|
|
11358
11383
|
});
|
|
11359
|
-
return (s,
|
|
11360
|
-
const
|
|
11361
|
-
return A(),
|
|
11362
|
-
class: ["MvcList", [t(
|
|
11384
|
+
return (s, g) => {
|
|
11385
|
+
const z = F("Loading");
|
|
11386
|
+
return A(), E("div", oe({
|
|
11387
|
+
class: ["MvcList", [t(v), s.$attrs.class]]
|
|
11363
11388
|
}, s.$attrs), [
|
|
11364
11389
|
d("div", Lo, [
|
|
11365
11390
|
d("div", {
|
|
11366
11391
|
class: G(["listScroll yscroll", a.listClass]),
|
|
11367
11392
|
role: "listbox"
|
|
11368
11393
|
}, [
|
|
11369
|
-
(A(!0),
|
|
11370
|
-
key: c(
|
|
11371
|
-
class: G(["listItem", [a.itemClass, { active: n(
|
|
11394
|
+
(A(!0), E(ne, null, se(t(w), (h) => (A(), E("div", {
|
|
11395
|
+
key: c(h),
|
|
11396
|
+
class: G(["listItem", [a.itemClass, { active: n(h), isDisabled: h.disabled }]]),
|
|
11372
11397
|
role: "option",
|
|
11373
|
-
"aria-selected": n(
|
|
11374
|
-
onClick: (P) =>
|
|
11398
|
+
"aria-selected": n(h),
|
|
11399
|
+
onClick: (P) => i(h)
|
|
11375
11400
|
}, [
|
|
11376
|
-
|
|
11377
|
-
|
|
11401
|
+
Z(s.$slots, "item", { option: h }, () => [
|
|
11402
|
+
te(x(s.$l(h.label)), 1)
|
|
11378
11403
|
], !0)
|
|
11379
11404
|
], 10, $o))), 128))
|
|
11380
11405
|
], 2),
|
|
11381
|
-
j(
|
|
11406
|
+
j(z, oe({
|
|
11382
11407
|
loading: a.loading
|
|
11383
11408
|
}, t(b)), null, 16, ["loading"])
|
|
11384
11409
|
])
|
|
11385
11410
|
], 16);
|
|
11386
11411
|
};
|
|
11387
11412
|
}
|
|
11388
|
-
}), Io = /* @__PURE__ */
|
|
11413
|
+
}), Io = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-dc08ad7c"]]), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11389
11414
|
__proto__: null,
|
|
11390
11415
|
default: Io
|
|
11391
11416
|
}, Symbol.toStringTag, { value: "Module" })), Do = { class: "content flexMode flexV vc g12 relative z1" }, Ro = /* @__PURE__ */ Object.assign({
|
|
@@ -11428,22 +11453,22 @@ const Ln = oa({
|
|
|
11428
11453
|
},
|
|
11429
11454
|
setup(e) {
|
|
11430
11455
|
const o = e;
|
|
11431
|
-
return (a, l) => (A(),
|
|
11456
|
+
return (a, l) => (A(), Q(ra, { name: "loadingFade" }, {
|
|
11432
11457
|
default: N(() => [
|
|
11433
|
-
o.loading ? (A(),
|
|
11458
|
+
o.loading ? (A(), E("div", {
|
|
11434
11459
|
key: 0,
|
|
11435
11460
|
class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
|
|
11436
11461
|
role: "status",
|
|
11437
11462
|
"aria-busy": "true",
|
|
11438
11463
|
"aria-live": "polite",
|
|
11439
|
-
style:
|
|
11464
|
+
style: ce({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
|
|
11440
11465
|
}, [
|
|
11441
11466
|
d("div", Do, [
|
|
11442
11467
|
d("i", {
|
|
11443
11468
|
class: G([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
|
|
11444
11469
|
"aria-hidden": "true"
|
|
11445
11470
|
}, null, 2),
|
|
11446
|
-
o.showTxt ? (A(),
|
|
11471
|
+
o.showTxt ? (A(), E("span", {
|
|
11447
11472
|
key: 0,
|
|
11448
11473
|
class: G(["loaderTxt fs14 txt-c", o.txtClass])
|
|
11449
11474
|
}, x(a.$l(o.txt)), 3)) : V("", !0)
|
|
@@ -11453,7 +11478,7 @@ const Ln = oa({
|
|
|
11453
11478
|
_: 1
|
|
11454
11479
|
}));
|
|
11455
11480
|
}
|
|
11456
|
-
}), Fo = /* @__PURE__ */
|
|
11481
|
+
}), Fo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-89f58c94"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11457
11482
|
__proto__: null,
|
|
11458
11483
|
default: Fo
|
|
11459
11484
|
}, Symbol.toStringTag, { value: "Module" })), Vo = { class: "MvcLogin flexMode flexV hc vc wp100 vh100 p24-16" }, Ko = { class: "panelWrap wp100 maxw400 p24 radius8 border noShrink" }, Uo = { class: "flexMode vc hb mb16" }, Ho = { class: "pl8 fs20 fw700 txt-h1" }, Jo = { class: "contentArea minh160" }, Zo = {
|
|
@@ -11501,24 +11526,24 @@ const Ln = oa({
|
|
|
11501
11526
|
},
|
|
11502
11527
|
emits: ["success", "submit"],
|
|
11503
11528
|
setup(e, { emit: o }) {
|
|
11504
|
-
const a = e, { proxy: l } =
|
|
11529
|
+
const a = e, { proxy: l } = ue(), n = X(null), i = X(!1), c = q({
|
|
11505
11530
|
method: "password",
|
|
11506
11531
|
form: {},
|
|
11507
11532
|
remember: !1
|
|
11508
11533
|
});
|
|
11509
|
-
|
|
11534
|
+
ie(() => {
|
|
11510
11535
|
try {
|
|
11511
|
-
const
|
|
11512
|
-
if (
|
|
11513
|
-
const
|
|
11514
|
-
|
|
11536
|
+
const _ = localStorage.getItem(Se);
|
|
11537
|
+
if (_) {
|
|
11538
|
+
const y = JSON.parse(_);
|
|
11539
|
+
y && typeof y == "object" && y.remember && (c.remember = !0, y.username != null && (c.form.username = String(y.username)), y.password != null && (c.form.password = String(y.password)));
|
|
11515
11540
|
}
|
|
11516
11541
|
} catch {
|
|
11517
11542
|
}
|
|
11518
11543
|
});
|
|
11519
|
-
const
|
|
11520
|
-
const
|
|
11521
|
-
|
|
11544
|
+
const w = o, v = (_, y = "info") => {
|
|
11545
|
+
const D = l == null ? void 0 : l.$message;
|
|
11546
|
+
D != null && D[y] && D[y](_);
|
|
11522
11547
|
}, b = () => {
|
|
11523
11548
|
try {
|
|
11524
11549
|
c.remember ? localStorage.setItem(
|
|
@@ -11532,76 +11557,76 @@ const Ln = oa({
|
|
|
11532
11557
|
} catch {
|
|
11533
11558
|
}
|
|
11534
11559
|
}, s = () => {
|
|
11535
|
-
|
|
11536
|
-
},
|
|
11537
|
-
|
|
11538
|
-
},
|
|
11539
|
-
var
|
|
11540
|
-
if (a.loading ||
|
|
11541
|
-
const
|
|
11542
|
-
if (!
|
|
11543
|
-
const
|
|
11544
|
-
if (!
|
|
11560
|
+
v("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
|
|
11561
|
+
}, g = () => {
|
|
11562
|
+
v("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
|
|
11563
|
+
}, z = async () => {
|
|
11564
|
+
var T, O;
|
|
11565
|
+
if (a.loading || i.value) return;
|
|
11566
|
+
const _ = await ((O = (T = n.value) == null ? void 0 : T.validate) == null ? void 0 : O.call(T));
|
|
11567
|
+
if (!_) return;
|
|
11568
|
+
const y = String(_.username ?? "").trim();
|
|
11569
|
+
if (!y)
|
|
11545
11570
|
return;
|
|
11546
|
-
const
|
|
11547
|
-
if (
|
|
11548
|
-
|
|
11571
|
+
const D = String(_.password ?? "").trim();
|
|
11572
|
+
if (D) {
|
|
11573
|
+
i.value = !0;
|
|
11549
11574
|
try {
|
|
11550
11575
|
const k = await globalThis.$pm(async () => ({
|
|
11551
11576
|
method: "password",
|
|
11552
|
-
username:
|
|
11553
|
-
password:
|
|
11577
|
+
username: y,
|
|
11578
|
+
password: D
|
|
11554
11579
|
}));
|
|
11555
|
-
b(),
|
|
11580
|
+
b(), w("submit", {
|
|
11556
11581
|
method: "password",
|
|
11557
|
-
[
|
|
11558
|
-
[
|
|
11582
|
+
[f.value.username.valueKey]: k.username,
|
|
11583
|
+
[f.value.password.valueKey]: k.password
|
|
11559
11584
|
}), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
|
|
11560
11585
|
} finally {
|
|
11561
|
-
|
|
11586
|
+
i.value = !1;
|
|
11562
11587
|
}
|
|
11563
11588
|
}
|
|
11564
|
-
},
|
|
11565
|
-
const
|
|
11589
|
+
}, h = C(() => !!a.loading || i.value), P = C(() => {
|
|
11590
|
+
const _ = globalThis.$config;
|
|
11566
11591
|
return {
|
|
11567
|
-
copyright: (
|
|
11568
|
-
author: (
|
|
11592
|
+
copyright: (_ == null ? void 0 : _.copyright) ?? "",
|
|
11593
|
+
author: (_ == null ? void 0 : _.author) ?? ""
|
|
11569
11594
|
};
|
|
11570
|
-
}),
|
|
11595
|
+
}), B = C(() => u[c.method] ?? "Login"), f = C(() => ({
|
|
11571
11596
|
username: {
|
|
11572
|
-
...
|
|
11597
|
+
...S.username,
|
|
11573
11598
|
...a.formFileds.username || {}
|
|
11574
11599
|
},
|
|
11575
11600
|
password: {
|
|
11576
|
-
...
|
|
11601
|
+
...S.password,
|
|
11577
11602
|
...a.formFileds.password || {}
|
|
11578
11603
|
}
|
|
11579
11604
|
})), m = C(() => ({
|
|
11580
11605
|
username: [
|
|
11581
11606
|
{
|
|
11582
11607
|
required: !0,
|
|
11583
|
-
message:
|
|
11608
|
+
message: f.value.username.message,
|
|
11584
11609
|
trigger: "blur"
|
|
11585
11610
|
}
|
|
11586
11611
|
],
|
|
11587
11612
|
password: [
|
|
11588
11613
|
{
|
|
11589
11614
|
required: !0,
|
|
11590
|
-
message:
|
|
11615
|
+
message: f.value.password.message,
|
|
11591
11616
|
trigger: "blur"
|
|
11592
11617
|
}
|
|
11593
11618
|
]
|
|
11594
|
-
})),
|
|
11619
|
+
})), M = C(() => [
|
|
11595
11620
|
{ value: "password", label: "Account" },
|
|
11596
11621
|
{ value: "auth", label: "Google/Apple" },
|
|
11597
11622
|
{ value: "dingtalk", label: "DingTalk" },
|
|
11598
11623
|
{ value: "feishu", label: "Lark" },
|
|
11599
11624
|
{ value: "wechat", label: "Wechat" }
|
|
11600
|
-
].filter((
|
|
11625
|
+
].filter((_, y) => a.loginMethods.includes(y))), u = {
|
|
11601
11626
|
dingtalk: "DingTalk",
|
|
11602
11627
|
feishu: "Lark",
|
|
11603
11628
|
wechat: "Wechat"
|
|
11604
|
-
},
|
|
11629
|
+
}, S = {
|
|
11605
11630
|
username: {
|
|
11606
11631
|
label: "Account",
|
|
11607
11632
|
placeholder: "Enter your account",
|
|
@@ -11619,48 +11644,48 @@ const Ln = oa({
|
|
|
11619
11644
|
valueKey: "password"
|
|
11620
11645
|
}
|
|
11621
11646
|
};
|
|
11622
|
-
return (
|
|
11623
|
-
const
|
|
11624
|
-
return A(),
|
|
11647
|
+
return (_, y) => {
|
|
11648
|
+
const D = F("BtnGroup"), T = F("Input"), O = F("el-form-item"), k = F("el-checkbox"), L = F("el-button"), K = F("Form");
|
|
11649
|
+
return A(), E("div", Vo, [
|
|
11625
11650
|
d("div", Ko, [
|
|
11626
11651
|
d("div", Uo, [
|
|
11627
|
-
d("span", Ho, x(
|
|
11652
|
+
d("span", Ho, x(_.$l(a.title)), 1)
|
|
11628
11653
|
]),
|
|
11629
|
-
j(
|
|
11654
|
+
j(D, {
|
|
11630
11655
|
modelValue: t(c).method,
|
|
11631
|
-
"onUpdate:modelValue":
|
|
11632
|
-
options: t(
|
|
11633
|
-
disabled: t(
|
|
11656
|
+
"onUpdate:modelValue": y[0] || (y[0] = (J) => t(c).method = J),
|
|
11657
|
+
options: t(M),
|
|
11658
|
+
disabled: t(h),
|
|
11634
11659
|
size: "small",
|
|
11635
11660
|
class: "mb32"
|
|
11636
11661
|
}, null, 8, ["modelValue", "options", "disabled"]),
|
|
11637
11662
|
d("div", Jo, [
|
|
11638
|
-
t(c).method === "password" ? (A(),
|
|
11663
|
+
t(c).method === "password" ? (A(), Q(K, {
|
|
11639
11664
|
key: 0,
|
|
11640
11665
|
ref_key: "pwdFormRef",
|
|
11641
11666
|
ref: n,
|
|
11642
11667
|
modelValue: t(c).form,
|
|
11643
|
-
"onUpdate:modelValue":
|
|
11668
|
+
"onUpdate:modelValue": y[4] || (y[4] = (J) => t(c).form = J),
|
|
11644
11669
|
size: "default",
|
|
11645
11670
|
rules: t(m)
|
|
11646
11671
|
}, {
|
|
11647
11672
|
default: N(() => [
|
|
11648
|
-
j(
|
|
11673
|
+
j(O, { prop: "username" }, {
|
|
11649
11674
|
default: N(() => [
|
|
11650
|
-
j(
|
|
11675
|
+
j(T, {
|
|
11651
11676
|
modelValue: t(c).form.username,
|
|
11652
|
-
"onUpdate:modelValue":
|
|
11677
|
+
"onUpdate:modelValue": y[1] || (y[1] = (J) => t(c).form.username = J),
|
|
11653
11678
|
class: "wp100",
|
|
11654
11679
|
size: "large",
|
|
11655
11680
|
name: "username",
|
|
11656
|
-
placeholder: t(
|
|
11657
|
-
disabled: t(
|
|
11658
|
-
},
|
|
11659
|
-
t(
|
|
11681
|
+
placeholder: t(f).username.placeholder,
|
|
11682
|
+
disabled: t(h)
|
|
11683
|
+
}, me({ _: 2 }, [
|
|
11684
|
+
t(f).username.showPrefix ? {
|
|
11660
11685
|
name: "prefix",
|
|
11661
11686
|
fn: N(() => [
|
|
11662
11687
|
d("i", {
|
|
11663
|
-
class: G(t(
|
|
11688
|
+
class: G(t(f).username.icon)
|
|
11664
11689
|
}, null, 2)
|
|
11665
11690
|
]),
|
|
11666
11691
|
key: "0"
|
|
@@ -11669,25 +11694,25 @@ const Ln = oa({
|
|
|
11669
11694
|
]),
|
|
11670
11695
|
_: 1
|
|
11671
11696
|
}),
|
|
11672
|
-
j(
|
|
11697
|
+
j(O, { prop: "password" }, {
|
|
11673
11698
|
default: N(() => [
|
|
11674
|
-
j(
|
|
11699
|
+
j(T, {
|
|
11675
11700
|
modelValue: t(c).form.password,
|
|
11676
|
-
"onUpdate:modelValue":
|
|
11701
|
+
"onUpdate:modelValue": y[2] || (y[2] = (J) => t(c).form.password = J),
|
|
11677
11702
|
class: "wp100",
|
|
11678
11703
|
size: "large",
|
|
11679
11704
|
type: "password",
|
|
11680
11705
|
name: "password",
|
|
11681
|
-
placeholder: t(
|
|
11706
|
+
placeholder: t(f).password.placeholder,
|
|
11682
11707
|
"show-password": "",
|
|
11683
|
-
disabled: t(
|
|
11684
|
-
onKeyup: ia(
|
|
11685
|
-
},
|
|
11686
|
-
t(
|
|
11708
|
+
disabled: t(h),
|
|
11709
|
+
onKeyup: ia(z, ["enter"])
|
|
11710
|
+
}, me({ _: 2 }, [
|
|
11711
|
+
t(f).password.showPrefix ? {
|
|
11687
11712
|
name: "prefix",
|
|
11688
11713
|
fn: N(() => [
|
|
11689
11714
|
d("i", {
|
|
11690
|
-
class: G(t(
|
|
11715
|
+
class: G(t(f).password.icon)
|
|
11691
11716
|
}, null, 2)
|
|
11692
11717
|
]),
|
|
11693
11718
|
key: "0"
|
|
@@ -11696,15 +11721,15 @@ const Ln = oa({
|
|
|
11696
11721
|
]),
|
|
11697
11722
|
_: 1
|
|
11698
11723
|
}),
|
|
11699
|
-
j(
|
|
11724
|
+
j(O, null, {
|
|
11700
11725
|
default: N(() => [
|
|
11701
11726
|
j(k, {
|
|
11702
11727
|
modelValue: t(c).remember,
|
|
11703
|
-
"onUpdate:modelValue":
|
|
11704
|
-
disabled: t(
|
|
11728
|
+
"onUpdate:modelValue": y[3] || (y[3] = (J) => t(c).remember = J),
|
|
11729
|
+
disabled: t(h)
|
|
11705
11730
|
}, {
|
|
11706
11731
|
default: N(() => [
|
|
11707
|
-
|
|
11732
|
+
te(x(_.$l(a.rememberTxt)), 1)
|
|
11708
11733
|
]),
|
|
11709
11734
|
_: 1
|
|
11710
11735
|
}, 8, ["modelValue", "disabled"])
|
|
@@ -11715,33 +11740,33 @@ const Ln = oa({
|
|
|
11715
11740
|
type: "primary",
|
|
11716
11741
|
size: "large",
|
|
11717
11742
|
class: "wp100",
|
|
11718
|
-
loading: t(
|
|
11719
|
-
disabled: t(
|
|
11720
|
-
onClick:
|
|
11743
|
+
loading: t(h),
|
|
11744
|
+
disabled: t(h),
|
|
11745
|
+
onClick: z
|
|
11721
11746
|
}, {
|
|
11722
11747
|
default: N(() => [
|
|
11723
|
-
|
|
11748
|
+
te(x(_.$l(a.submitTxt)), 1)
|
|
11724
11749
|
]),
|
|
11725
11750
|
_: 1
|
|
11726
11751
|
}, 8, ["loading", "disabled"])
|
|
11727
11752
|
]),
|
|
11728
11753
|
_: 1
|
|
11729
|
-
}, 8, ["modelValue", "rules"])) : t(c).method === "auth" ? (A(),
|
|
11730
|
-
|
|
11754
|
+
}, 8, ["modelValue", "rules"])) : t(c).method === "auth" ? (A(), E("div", Zo, [
|
|
11755
|
+
y[7] || (y[7] = d("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
|
|
11731
11756
|
d("button", {
|
|
11732
11757
|
type: "button",
|
|
11733
11758
|
class: "oauthGoogle wp100 mb36",
|
|
11734
|
-
disabled: t(
|
|
11759
|
+
disabled: t(h),
|
|
11735
11760
|
onClick: s
|
|
11736
|
-
}, [...
|
|
11761
|
+
}, [...y[5] || (y[5] = [
|
|
11737
11762
|
Ba('<svg class="oauthGoogleLogo noShrink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="18" height="18" aria-hidden="true" data-v-6faa6992><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" data-v-6faa6992></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" data-v-6faa6992></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" data-v-6faa6992></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" data-v-6faa6992></path></svg><span class="oauthGoogleLabel" data-v-6faa6992>Sign in with Google</span>', 2)
|
|
11738
11763
|
])], 8, Yo),
|
|
11739
11764
|
d("button", {
|
|
11740
11765
|
type: "button",
|
|
11741
11766
|
class: "oauthApple wp100 mb16",
|
|
11742
|
-
disabled: t(
|
|
11743
|
-
onClick:
|
|
11744
|
-
}, [...
|
|
11767
|
+
disabled: t(h),
|
|
11768
|
+
onClick: g
|
|
11769
|
+
}, [...y[6] || (y[6] = [
|
|
11745
11770
|
d("svg", {
|
|
11746
11771
|
class: "oauthAppleLogo noShrink",
|
|
11747
11772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11757,8 +11782,8 @@ const Ln = oa({
|
|
|
11757
11782
|
], -1),
|
|
11758
11783
|
d("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
|
|
11759
11784
|
])], 8, Wo)
|
|
11760
|
-
])) : (A(),
|
|
11761
|
-
d("p", Xo, x(t(
|
|
11785
|
+
])) : (A(), E("div", qo, [
|
|
11786
|
+
d("p", Xo, x(t(B)), 1),
|
|
11762
11787
|
d("div", {
|
|
11763
11788
|
class: G(["qrBlock w180 h180 radius6", `qr-${t(c).method}`]),
|
|
11764
11789
|
"aria-hidden": "true"
|
|
@@ -11773,7 +11798,7 @@ const Ln = oa({
|
|
|
11773
11798
|
]);
|
|
11774
11799
|
};
|
|
11775
11800
|
}
|
|
11776
|
-
}), at = /* @__PURE__ */
|
|
11801
|
+
}), at = /* @__PURE__ */ le(et, [["__scopeId", "data-v-6faa6992"]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11777
11802
|
__proto__: null,
|
|
11778
11803
|
default: at
|
|
11779
11804
|
}, Symbol.toStringTag, { value: "Module" })), nt = /* @__PURE__ */ Object.assign({
|
|
@@ -11799,18 +11824,18 @@ const Ln = oa({
|
|
|
11799
11824
|
},
|
|
11800
11825
|
setup(e) {
|
|
11801
11826
|
const o = e;
|
|
11802
|
-
|
|
11827
|
+
q({});
|
|
11803
11828
|
const a = C(() => ({
|
|
11804
11829
|
borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
|
|
11805
11830
|
}));
|
|
11806
|
-
return (l, n) => (A(),
|
|
11831
|
+
return (l, n) => (A(), E("div", {
|
|
11807
11832
|
class: "MvcNote",
|
|
11808
|
-
style:
|
|
11833
|
+
style: ce(t(a))
|
|
11809
11834
|
}, [
|
|
11810
|
-
|
|
11835
|
+
Z(l.$slots, "default", {}, void 0, !0)
|
|
11811
11836
|
], 4));
|
|
11812
11837
|
}
|
|
11813
|
-
}), ot = /* @__PURE__ */
|
|
11838
|
+
}), ot = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-e3e84cc8"]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11814
11839
|
__proto__: null,
|
|
11815
11840
|
default: ot
|
|
11816
11841
|
}, Symbol.toStringTag, { value: "Module" })), rt = {
|
|
@@ -11840,35 +11865,35 @@ const Ln = oa({
|
|
|
11840
11865
|
}
|
|
11841
11866
|
},
|
|
11842
11867
|
setup(e) {
|
|
11843
|
-
const o = e, { proxy: a } =
|
|
11844
|
-
let
|
|
11845
|
-
return n.useTab && (
|
|
11846
|
-
minHeight: `${
|
|
11868
|
+
const o = e, { proxy: a } = ue(), n = _e("store").tab(), i = C(() => o.title || o.subtitle), c = C(() => n.useTab), w = C(() => {
|
|
11869
|
+
let v = "calc(100vh";
|
|
11870
|
+
return n.useTab && (v += " - 2.25rem"), o.noheader || (v += " - 4rem"), {
|
|
11871
|
+
minHeight: `${v})`
|
|
11847
11872
|
};
|
|
11848
11873
|
});
|
|
11849
|
-
return (
|
|
11874
|
+
return (v, b) => (A(), E("div", {
|
|
11850
11875
|
class: G(["MvcPage", t(c) && "hasTab"])
|
|
11851
11876
|
}, [
|
|
11852
|
-
o.noheader ? V("", !0) : (A(),
|
|
11877
|
+
o.noheader ? V("", !0) : (A(), E("div", rt, [
|
|
11853
11878
|
d("div", it, [
|
|
11854
|
-
|
|
11879
|
+
v.$slots.header ? Z(v.$slots, "header", { key: 0 }, void 0, !0) : t(i) ? (A(), E(ne, { key: 1 }, [
|
|
11855
11880
|
d("h3", st, x(o.title), 1),
|
|
11856
11881
|
d("p", ct, x(o.subtitle), 1)
|
|
11857
11882
|
], 64)) : V("", !0)
|
|
11858
11883
|
]),
|
|
11859
11884
|
d("div", ut, [
|
|
11860
|
-
|
|
11885
|
+
v.$slots.right ? Z(v.$slots, "right", { key: 0 }, void 0, !0) : V("", !0)
|
|
11861
11886
|
])
|
|
11862
11887
|
])),
|
|
11863
11888
|
d("div", {
|
|
11864
11889
|
class: G(["PageBody", o.bodyClass]),
|
|
11865
|
-
style:
|
|
11890
|
+
style: ce(t(w))
|
|
11866
11891
|
}, [
|
|
11867
|
-
|
|
11892
|
+
Z(v.$slots, "default", {}, void 0, !0)
|
|
11868
11893
|
], 6)
|
|
11869
11894
|
], 2));
|
|
11870
11895
|
}
|
|
11871
|
-
}), mt = /* @__PURE__ */
|
|
11896
|
+
}), mt = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-060130ad"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11872
11897
|
__proto__: null,
|
|
11873
11898
|
default: mt
|
|
11874
11899
|
}, Symbol.toStringTag, { value: "Module" })), vt = {
|
|
@@ -11927,133 +11952,133 @@ const Ln = oa({
|
|
|
11927
11952
|
},
|
|
11928
11953
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
11929
11954
|
setup(e, { emit: o }) {
|
|
11930
|
-
const a = e, l =
|
|
11931
|
-
a.multiple ? (n.value = Array.isArray(
|
|
11932
|
-
},
|
|
11933
|
-
if (
|
|
11934
|
-
const
|
|
11935
|
-
n.value = Array.isArray(
|
|
11955
|
+
const a = e, l = X(null), n = X([]), i = X(!1), c = X(!1), w = X(!1), v = X(!1), b = ve(), s = o, g = (r) => {
|
|
11956
|
+
a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
|
|
11957
|
+
}, z = (r) => {
|
|
11958
|
+
if (i.value = r, r && a.multiple) {
|
|
11959
|
+
const p = a.modelValue;
|
|
11960
|
+
n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
|
|
11936
11961
|
}
|
|
11937
|
-
},
|
|
11938
|
-
|
|
11939
|
-
}, P = (
|
|
11940
|
-
|
|
11941
|
-
},
|
|
11962
|
+
}, h = (r) => {
|
|
11963
|
+
v.value = !0, s("focus", r);
|
|
11964
|
+
}, P = (r) => {
|
|
11965
|
+
v.value = !1, s("blur", r);
|
|
11966
|
+
}, B = () => {
|
|
11942
11967
|
var I;
|
|
11943
|
-
if (!a.filterable || !
|
|
11944
|
-
const
|
|
11945
|
-
return Array.isArray(
|
|
11946
|
-
},
|
|
11947
|
-
const
|
|
11948
|
-
return Number.isFinite(
|
|
11949
|
-
}, m = (
|
|
11950
|
-
const
|
|
11951
|
-
if (
|
|
11952
|
-
const I =
|
|
11953
|
-
for (const
|
|
11954
|
-
if (!
|
|
11968
|
+
if (!a.filterable || !i.value) return u();
|
|
11969
|
+
const r = l.value, p = ((I = r == null ? void 0 : r.optionsArray) == null ? void 0 : I.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
|
|
11970
|
+
return Array.isArray(p) ? p.filter(($) => $.visible && !$.isDisabled).map(($) => $.value) : u();
|
|
11971
|
+
}, f = () => {
|
|
11972
|
+
const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
|
|
11973
|
+
return Number.isFinite(p) && p > 0 ? p : 0;
|
|
11974
|
+
}, m = (r) => {
|
|
11975
|
+
const p = B();
|
|
11976
|
+
if (r) {
|
|
11977
|
+
const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
|
|
11978
|
+
for (const Y of p)
|
|
11979
|
+
if (!U.has(Y)) {
|
|
11955
11980
|
if (I > 0 && H.length >= I) break;
|
|
11956
|
-
|
|
11981
|
+
U.add(Y), H.push(Y);
|
|
11957
11982
|
}
|
|
11958
11983
|
n.value = H;
|
|
11959
11984
|
} else {
|
|
11960
|
-
const I = new Set(
|
|
11985
|
+
const I = new Set(p);
|
|
11961
11986
|
n.value = n.value.filter(($) => !I.has($));
|
|
11962
11987
|
}
|
|
11963
|
-
|
|
11964
|
-
},
|
|
11965
|
-
var
|
|
11966
|
-
a.multiple && (s("update:modelValue", n.value), s("change", n.value), (
|
|
11988
|
+
S();
|
|
11989
|
+
}, M = () => {
|
|
11990
|
+
var r, p;
|
|
11991
|
+
a.multiple && (s("update:modelValue", n.value), s("change", n.value), (p = (r = l.value) == null ? void 0 : r.blur) == null || p.call(r));
|
|
11967
11992
|
}, u = () => {
|
|
11968
|
-
const
|
|
11969
|
-
return (a.options || []).map((
|
|
11970
|
-
},
|
|
11971
|
-
const
|
|
11972
|
-
c.value = $ > 0 && I === $,
|
|
11973
|
-
},
|
|
11993
|
+
const r = a.valueKey;
|
|
11994
|
+
return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
|
|
11995
|
+
}, S = () => {
|
|
11996
|
+
const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
|
|
11997
|
+
c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
|
|
11998
|
+
}, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
|
|
11974
11999
|
const {
|
|
11975
|
-
modelValue:
|
|
11976
|
-
valueKey:
|
|
12000
|
+
modelValue: r,
|
|
12001
|
+
valueKey: p,
|
|
11977
12002
|
labelKey: I,
|
|
11978
12003
|
selectAllTxt: $,
|
|
11979
|
-
confirmTxt:
|
|
12004
|
+
confirmTxt: U,
|
|
11980
12005
|
nowrap: H,
|
|
11981
|
-
...
|
|
11982
|
-
} = a,
|
|
12006
|
+
...Y
|
|
12007
|
+
} = a, ae = Y.props ?? {};
|
|
11983
12008
|
return {
|
|
11984
|
-
...
|
|
12009
|
+
...Y,
|
|
11985
12010
|
props: {
|
|
11986
|
-
...
|
|
11987
|
-
value:
|
|
12011
|
+
...ae,
|
|
12012
|
+
value: p,
|
|
11988
12013
|
label: I
|
|
11989
12014
|
}
|
|
11990
12015
|
};
|
|
11991
|
-
}),
|
|
12016
|
+
}), D = C(
|
|
11992
12017
|
() => a.nowrap ? {
|
|
11993
12018
|
collapseTags: !0,
|
|
11994
12019
|
collapseTagsTooltip: !0,
|
|
11995
12020
|
maxCollapseTags: 1,
|
|
11996
12021
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
11997
12022
|
} : {}
|
|
11998
|
-
),
|
|
11999
|
-
const { class:
|
|
12000
|
-
return
|
|
12001
|
-
}),
|
|
12002
|
-
...
|
|
12003
|
-
...
|
|
12004
|
-
...
|
|
12023
|
+
), T = C(() => {
|
|
12024
|
+
const { class: r, ...p } = b;
|
|
12025
|
+
return p;
|
|
12026
|
+
}), O = C(() => ({
|
|
12027
|
+
...D.value,
|
|
12028
|
+
...T.value,
|
|
12029
|
+
...y.value,
|
|
12005
12030
|
placeholder: b.placeholder ?? ""
|
|
12006
12031
|
})), k = C(() => {
|
|
12007
|
-
const
|
|
12008
|
-
if (!a.filterable || !
|
|
12009
|
-
const I =
|
|
12010
|
-
return
|
|
12011
|
-
}), L = C(() =>
|
|
12012
|
-
const
|
|
12013
|
-
return Array.isArray(
|
|
12014
|
-
}),
|
|
12015
|
-
() => a.materialLabel && (
|
|
12016
|
-
),
|
|
12032
|
+
const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
|
|
12033
|
+
if (!a.filterable || !i.value) return p.length;
|
|
12034
|
+
const I = B();
|
|
12035
|
+
return p.filter(($) => I.includes($)).length;
|
|
12036
|
+
}), L = C(() => B().length), K = C(() => {
|
|
12037
|
+
const r = a.multiple && i.value ? n.value : a.modelValue;
|
|
12038
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
12039
|
+
}), J = C(() => !!b.placeholder), R = C(
|
|
12040
|
+
() => a.materialLabel && (v.value || i.value || K.value || J.value)
|
|
12041
|
+
), W = C(() => ({
|
|
12017
12042
|
[b.class]: !!b.class,
|
|
12018
12043
|
hasLabel: !!a.label,
|
|
12019
12044
|
isMaterialLabel: !!(a.label && a.materialLabel),
|
|
12020
12045
|
isTopLabel: !!(a.label && !a.materialLabel),
|
|
12021
|
-
isFloat:
|
|
12022
|
-
isFocused:
|
|
12046
|
+
isFloat: R.value,
|
|
12047
|
+
isFocused: v.value,
|
|
12023
12048
|
isDisabled: !!b.disabled,
|
|
12024
12049
|
isSelect: !0
|
|
12025
|
-
})),
|
|
12050
|
+
})), ee = C(
|
|
12026
12051
|
() => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
12027
12052
|
);
|
|
12028
|
-
return
|
|
12053
|
+
return re(n, () => S(), { deep: !0 }), re(
|
|
12029
12054
|
() => a.modelValue,
|
|
12030
|
-
(
|
|
12031
|
-
if (a.multiple &&
|
|
12032
|
-
const
|
|
12033
|
-
JSON.stringify(
|
|
12055
|
+
(r) => {
|
|
12056
|
+
if (a.multiple && i.value) {
|
|
12057
|
+
const p = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
12058
|
+
JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
|
|
12034
12059
|
}
|
|
12035
12060
|
}
|
|
12036
|
-
), (
|
|
12037
|
-
const I =
|
|
12038
|
-
return A(),
|
|
12039
|
-
class: G(["MvcField MvcFieldSelect", t(
|
|
12040
|
-
style:
|
|
12061
|
+
), (r, p) => {
|
|
12062
|
+
const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select");
|
|
12063
|
+
return A(), E("div", {
|
|
12064
|
+
class: G(["MvcField MvcFieldSelect", t(W)]),
|
|
12065
|
+
style: ce(t(ee))
|
|
12041
12066
|
}, [
|
|
12042
|
-
a.label ? (A(),
|
|
12043
|
-
j(
|
|
12067
|
+
a.label ? (A(), E("label", vt, x(a.label), 1)) : V("", !0),
|
|
12068
|
+
j(U, oe({
|
|
12044
12069
|
ref_key: "selectRef",
|
|
12045
12070
|
ref: l,
|
|
12046
|
-
"model-value": t(
|
|
12071
|
+
"model-value": t(_),
|
|
12047
12072
|
"tag-effect": "plain",
|
|
12048
12073
|
class: "MvcSelect"
|
|
12049
|
-
}, t(
|
|
12050
|
-
"onUpdate:modelValue":
|
|
12051
|
-
onVisibleChange:
|
|
12052
|
-
onFocus:
|
|
12074
|
+
}, t(O), {
|
|
12075
|
+
"onUpdate:modelValue": g,
|
|
12076
|
+
onVisibleChange: z,
|
|
12077
|
+
onFocus: h,
|
|
12053
12078
|
onBlur: P
|
|
12054
|
-
}),
|
|
12079
|
+
}), me({
|
|
12055
12080
|
default: N(() => [
|
|
12056
|
-
|
|
12081
|
+
Z(r.$slots, "default")
|
|
12057
12082
|
]),
|
|
12058
12083
|
_: 2
|
|
12059
12084
|
}, [
|
|
@@ -12063,13 +12088,13 @@ const Ln = oa({
|
|
|
12063
12088
|
d("div", pt, [
|
|
12064
12089
|
j(I, {
|
|
12065
12090
|
modelValue: t(c),
|
|
12066
|
-
"onUpdate:modelValue":
|
|
12067
|
-
indeterminate: t(
|
|
12091
|
+
"onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
|
|
12092
|
+
indeterminate: t(w),
|
|
12068
12093
|
class: "h24",
|
|
12069
12094
|
onChange: m
|
|
12070
12095
|
}, {
|
|
12071
12096
|
default: N(() => [
|
|
12072
|
-
|
|
12097
|
+
te(x(e.selectAllTxt), 1)
|
|
12073
12098
|
]),
|
|
12074
12099
|
_: 1
|
|
12075
12100
|
}, 8, ["modelValue", "indeterminate"]),
|
|
@@ -12085,10 +12110,10 @@ const Ln = oa({
|
|
|
12085
12110
|
j($, {
|
|
12086
12111
|
type: "primary",
|
|
12087
12112
|
size: "small",
|
|
12088
|
-
onClick:
|
|
12113
|
+
onClick: M
|
|
12089
12114
|
}, {
|
|
12090
12115
|
default: N(() => [
|
|
12091
|
-
|
|
12116
|
+
te(x(e.confirmTxt), 1)
|
|
12092
12117
|
]),
|
|
12093
12118
|
_: 1
|
|
12094
12119
|
})
|
|
@@ -12159,145 +12184,145 @@ const Ln = oa({
|
|
|
12159
12184
|
},
|
|
12160
12185
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
12161
12186
|
setup(e, { emit: o }) {
|
|
12162
|
-
const a = e, l =
|
|
12163
|
-
a.multiple ? (n.value = Array.isArray(
|
|
12164
|
-
},
|
|
12165
|
-
if (
|
|
12166
|
-
const
|
|
12167
|
-
n.value = Array.isArray(
|
|
12187
|
+
const a = e, l = X(null), n = X([]), i = X(!1), c = X(!1), w = X(!1), v = X(!1), b = ve(), s = o, g = (r) => {
|
|
12188
|
+
a.multiple ? (n.value = Array.isArray(r) ? [...r] : [], S()) : (s("update:modelValue", r), s("change", r));
|
|
12189
|
+
}, z = (r) => {
|
|
12190
|
+
if (i.value = r, r && a.multiple) {
|
|
12191
|
+
const p = a.modelValue;
|
|
12192
|
+
n.value = Array.isArray(p) ? [...p] : p ? [p] : [], S();
|
|
12168
12193
|
}
|
|
12169
|
-
},
|
|
12170
|
-
|
|
12171
|
-
}, P = (
|
|
12172
|
-
|
|
12173
|
-
},
|
|
12194
|
+
}, h = (r) => {
|
|
12195
|
+
v.value = !0, s("focus", r);
|
|
12196
|
+
}, P = (r) => {
|
|
12197
|
+
v.value = !1, s("blur", r);
|
|
12198
|
+
}, B = () => {
|
|
12174
12199
|
var $;
|
|
12175
|
-
if (!a.filterable || !
|
|
12176
|
-
const
|
|
12177
|
-
if (!Array.isArray(
|
|
12200
|
+
if (!a.filterable || !i.value) return u();
|
|
12201
|
+
const r = l.value, p = (($ = r == null ? void 0 : r.filteredOptions) == null ? void 0 : $.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
|
|
12202
|
+
if (!Array.isArray(p)) return u();
|
|
12178
12203
|
const I = a.valueKey;
|
|
12179
|
-
return
|
|
12180
|
-
},
|
|
12181
|
-
const
|
|
12182
|
-
return Number.isFinite(
|
|
12183
|
-
}, m = (
|
|
12184
|
-
const
|
|
12185
|
-
if (
|
|
12186
|
-
const I =
|
|
12187
|
-
for (const
|
|
12188
|
-
if (!
|
|
12204
|
+
return p.filter((U) => U.type !== "Group" && !U.disabled).map((U) => typeof U == "object" ? U[I] : U);
|
|
12205
|
+
}, f = () => {
|
|
12206
|
+
const r = b.multipleLimit ?? b["multiple-limit"], p = Number(r);
|
|
12207
|
+
return Number.isFinite(p) && p > 0 ? p : 0;
|
|
12208
|
+
}, m = (r) => {
|
|
12209
|
+
const p = B();
|
|
12210
|
+
if (r) {
|
|
12211
|
+
const I = f(), $ = Array.isArray(n.value) ? [...n.value] : [], U = new Set($), H = [...$];
|
|
12212
|
+
for (const Y of p)
|
|
12213
|
+
if (!U.has(Y)) {
|
|
12189
12214
|
if (I > 0 && H.length >= I) break;
|
|
12190
|
-
|
|
12215
|
+
U.add(Y), H.push(Y);
|
|
12191
12216
|
}
|
|
12192
12217
|
n.value = H;
|
|
12193
12218
|
} else {
|
|
12194
|
-
const I = new Set(
|
|
12219
|
+
const I = new Set(p);
|
|
12195
12220
|
n.value = n.value.filter(($) => !I.has($));
|
|
12196
12221
|
}
|
|
12197
|
-
|
|
12198
|
-
},
|
|
12199
|
-
var
|
|
12200
|
-
a.multiple && (s("update:modelValue", n.value), s("change", n.value), (
|
|
12222
|
+
S();
|
|
12223
|
+
}, M = () => {
|
|
12224
|
+
var r, p;
|
|
12225
|
+
a.multiple && (s("update:modelValue", n.value), s("change", n.value), (p = (r = l.value) == null ? void 0 : r.blur) == null || p.call(r));
|
|
12201
12226
|
}, u = () => {
|
|
12202
|
-
const
|
|
12203
|
-
return (a.options || []).map((
|
|
12204
|
-
},
|
|
12205
|
-
const
|
|
12206
|
-
c.value = $ > 0 && I === $,
|
|
12207
|
-
},
|
|
12227
|
+
const r = a.valueKey;
|
|
12228
|
+
return (a.options || []).map((p) => typeof p == "object" ? p[r] : p);
|
|
12229
|
+
}, S = () => {
|
|
12230
|
+
const r = B(), p = new Set(n.value ?? []), I = r.filter((U) => p.has(U)).length, $ = r.length;
|
|
12231
|
+
c.value = $ > 0 && I === $, w.value = I > 0 && I < $;
|
|
12232
|
+
}, _ = C(() => a.multiple && i.value ? n.value : a.modelValue), y = C(() => {
|
|
12208
12233
|
const {
|
|
12209
|
-
modelValue:
|
|
12210
|
-
valueKey:
|
|
12234
|
+
modelValue: r,
|
|
12235
|
+
valueKey: p,
|
|
12211
12236
|
labelKey: I,
|
|
12212
12237
|
selectAllTxt: $,
|
|
12213
|
-
confirmTxt:
|
|
12238
|
+
confirmTxt: U,
|
|
12214
12239
|
nowrap: H,
|
|
12215
|
-
...
|
|
12216
|
-
} = a,
|
|
12240
|
+
...Y
|
|
12241
|
+
} = a, ae = Y.props ?? {};
|
|
12217
12242
|
return {
|
|
12218
|
-
...
|
|
12243
|
+
...Y,
|
|
12219
12244
|
props: {
|
|
12220
|
-
...
|
|
12221
|
-
value:
|
|
12245
|
+
...ae,
|
|
12246
|
+
value: p,
|
|
12222
12247
|
label: I
|
|
12223
12248
|
}
|
|
12224
12249
|
};
|
|
12225
|
-
}),
|
|
12250
|
+
}), D = C(
|
|
12226
12251
|
() => a.nowrap ? {
|
|
12227
12252
|
collapseTags: !0,
|
|
12228
12253
|
collapseTagsTooltip: !0,
|
|
12229
12254
|
maxCollapseTags: 1,
|
|
12230
12255
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
12231
12256
|
} : {}
|
|
12232
|
-
),
|
|
12233
|
-
const { class:
|
|
12234
|
-
return
|
|
12235
|
-
}),
|
|
12236
|
-
...
|
|
12237
|
-
...
|
|
12238
|
-
...
|
|
12257
|
+
), T = C(() => {
|
|
12258
|
+
const { class: r, ...p } = b;
|
|
12259
|
+
return p;
|
|
12260
|
+
}), O = C(() => ({
|
|
12261
|
+
...D.value,
|
|
12262
|
+
...T.value,
|
|
12263
|
+
...y.value,
|
|
12239
12264
|
placeholder: b.placeholder ?? ""
|
|
12240
12265
|
})), k = C(() => {
|
|
12241
|
-
const
|
|
12242
|
-
if (!a.filterable || !
|
|
12243
|
-
const I =
|
|
12244
|
-
return
|
|
12245
|
-
}), L = C(() =>
|
|
12246
|
-
const
|
|
12247
|
-
return Array.isArray(
|
|
12248
|
-
}),
|
|
12249
|
-
() => a.materialLabel && (
|
|
12250
|
-
),
|
|
12266
|
+
const r = a.multiple && i.value ? n.value : a.modelValue, p = Array.isArray(r) ? r : r ? [r] : [];
|
|
12267
|
+
if (!a.filterable || !i.value) return p.length;
|
|
12268
|
+
const I = B();
|
|
12269
|
+
return p.filter(($) => I.includes($)).length;
|
|
12270
|
+
}), L = C(() => B().length), K = C(() => {
|
|
12271
|
+
const r = a.multiple && i.value ? n.value : a.modelValue;
|
|
12272
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
12273
|
+
}), J = C(() => !!b.placeholder), R = C(
|
|
12274
|
+
() => a.materialLabel && (v.value || i.value || K.value || J.value)
|
|
12275
|
+
), W = C(() => ({
|
|
12251
12276
|
[b.class]: !!b.class,
|
|
12252
12277
|
hasLabel: !!a.label,
|
|
12253
12278
|
isMaterialLabel: !!(a.label && a.materialLabel),
|
|
12254
12279
|
isTopLabel: !!(a.label && !a.materialLabel),
|
|
12255
|
-
isFloat:
|
|
12256
|
-
isFocused:
|
|
12280
|
+
isFloat: R.value,
|
|
12281
|
+
isFocused: v.value,
|
|
12257
12282
|
isDisabled: !!b.disabled,
|
|
12258
12283
|
isSelect: !0
|
|
12259
|
-
})),
|
|
12284
|
+
})), ee = C(
|
|
12260
12285
|
() => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
12261
12286
|
);
|
|
12262
|
-
return
|
|
12287
|
+
return re(n, () => S(), { deep: !0 }), re(
|
|
12263
12288
|
() => a.modelValue,
|
|
12264
|
-
(
|
|
12265
|
-
if (a.multiple &&
|
|
12266
|
-
const
|
|
12267
|
-
JSON.stringify(
|
|
12289
|
+
(r) => {
|
|
12290
|
+
if (a.multiple && i.value) {
|
|
12291
|
+
const p = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
12292
|
+
JSON.stringify(p) !== JSON.stringify(n.value) && (n.value = p, S());
|
|
12268
12293
|
}
|
|
12269
12294
|
}
|
|
12270
|
-
), (
|
|
12271
|
-
const I =
|
|
12272
|
-
return A(),
|
|
12273
|
-
class: G(["MvcField MvcFieldSelectV2", t(
|
|
12274
|
-
style:
|
|
12295
|
+
), (r, p) => {
|
|
12296
|
+
const I = F("el-checkbox"), $ = F("el-button"), U = F("el-select-v2");
|
|
12297
|
+
return A(), E("div", {
|
|
12298
|
+
class: G(["MvcField MvcFieldSelectV2", t(W)]),
|
|
12299
|
+
style: ce(t(ee))
|
|
12275
12300
|
}, [
|
|
12276
|
-
a.label ? (A(),
|
|
12277
|
-
j(
|
|
12301
|
+
a.label ? (A(), E("label", yt, x(a.label), 1)) : V("", !0),
|
|
12302
|
+
j(U, oe({
|
|
12278
12303
|
ref_key: "selectRef",
|
|
12279
12304
|
ref: l,
|
|
12280
|
-
"model-value": t(
|
|
12305
|
+
"model-value": t(_),
|
|
12281
12306
|
class: "MvcSelectV2"
|
|
12282
|
-
}, t(
|
|
12283
|
-
"onUpdate:modelValue":
|
|
12284
|
-
onVisibleChange:
|
|
12285
|
-
onFocus:
|
|
12307
|
+
}, t(O), {
|
|
12308
|
+
"onUpdate:modelValue": g,
|
|
12309
|
+
onVisibleChange: z,
|
|
12310
|
+
onFocus: h,
|
|
12286
12311
|
onBlur: P
|
|
12287
|
-
}),
|
|
12312
|
+
}), me({ _: 2 }, [
|
|
12288
12313
|
a.filterable && a.multiple ? {
|
|
12289
12314
|
name: "header",
|
|
12290
12315
|
fn: N(() => [
|
|
12291
12316
|
d("div", At, [
|
|
12292
12317
|
j(I, {
|
|
12293
12318
|
modelValue: t(c),
|
|
12294
|
-
"onUpdate:modelValue":
|
|
12295
|
-
indeterminate: t(
|
|
12319
|
+
"onUpdate:modelValue": p[0] || (p[0] = (H) => sa(c) ? c.value = H : null),
|
|
12320
|
+
indeterminate: t(w),
|
|
12296
12321
|
class: "h24",
|
|
12297
12322
|
onChange: m
|
|
12298
12323
|
}, {
|
|
12299
12324
|
default: N(() => [
|
|
12300
|
-
|
|
12325
|
+
te(x(e.selectAllTxt), 1)
|
|
12301
12326
|
]),
|
|
12302
12327
|
_: 1
|
|
12303
12328
|
}, 8, ["modelValue", "indeterminate"]),
|
|
@@ -12306,10 +12331,10 @@ const Ln = oa({
|
|
|
12306
12331
|
]),
|
|
12307
12332
|
key: "0"
|
|
12308
12333
|
} : void 0,
|
|
12309
|
-
|
|
12334
|
+
r.$slots.default ? {
|
|
12310
12335
|
name: "default",
|
|
12311
12336
|
fn: N((H) => [
|
|
12312
|
-
|
|
12337
|
+
Z(r.$slots, "default", we(Me(H)))
|
|
12313
12338
|
]),
|
|
12314
12339
|
key: "1"
|
|
12315
12340
|
} : void 0,
|
|
@@ -12320,10 +12345,10 @@ const Ln = oa({
|
|
|
12320
12345
|
j($, {
|
|
12321
12346
|
type: "primary",
|
|
12322
12347
|
size: "small",
|
|
12323
|
-
onClick:
|
|
12348
|
+
onClick: M
|
|
12324
12349
|
}, {
|
|
12325
12350
|
default: N(() => [
|
|
12326
|
-
|
|
12351
|
+
te(x(e.confirmTxt), 1)
|
|
12327
12352
|
]),
|
|
12328
12353
|
_: 1
|
|
12329
12354
|
})
|
|
@@ -12355,47 +12380,47 @@ const Ln = oa({
|
|
|
12355
12380
|
}
|
|
12356
12381
|
},
|
|
12357
12382
|
setup: (e, o) => {
|
|
12358
|
-
var
|
|
12359
|
-
const a =
|
|
12383
|
+
var w;
|
|
12384
|
+
const a = q({
|
|
12360
12385
|
options: [],
|
|
12361
12386
|
slots: []
|
|
12362
12387
|
}), l = e.tableName + "_Column";
|
|
12363
12388
|
let n = [];
|
|
12364
12389
|
(() => {
|
|
12365
|
-
const
|
|
12390
|
+
const v = o.slots.default()[0].children, b = {
|
|
12366
12391
|
normal: [],
|
|
12367
12392
|
mmp: [],
|
|
12368
12393
|
asa: [],
|
|
12369
12394
|
fixed: [],
|
|
12370
12395
|
columns: []
|
|
12371
|
-
}, s = e.tableName ? JSON.parse(localStorage.getItem(l)) : null,
|
|
12372
|
-
|
|
12373
|
-
window.$getType(
|
|
12374
|
-
}), n.forEach((
|
|
12375
|
-
var
|
|
12376
|
-
if (window.$getType(
|
|
12377
|
-
let
|
|
12378
|
-
...
|
|
12396
|
+
}, s = e.tableName ? JSON.parse(localStorage.getItem(l)) : null, g = [void 0];
|
|
12397
|
+
v.forEach((h) => {
|
|
12398
|
+
window.$getType(h.type) === "Symbol" ? n = n.concat(h.children) : n.push(h);
|
|
12399
|
+
}), n.forEach((h, P) => {
|
|
12400
|
+
var B;
|
|
12401
|
+
if (window.$getType(h.type), ((B = h.type) == null ? void 0 : B.name) === "ElTableColumn") {
|
|
12402
|
+
let f = {
|
|
12403
|
+
...h.props,
|
|
12379
12404
|
sort: P,
|
|
12380
|
-
nomove:
|
|
12405
|
+
nomove: h.props.nomove || h.props.nomove === "" || h.props.type === "selection" || h.props.label === "Operation",
|
|
12381
12406
|
resizable: !0,
|
|
12382
|
-
visible:
|
|
12407
|
+
visible: h.props.visible !== !1
|
|
12383
12408
|
};
|
|
12384
|
-
if (
|
|
12385
|
-
const { data: m } = s.filter1((
|
|
12386
|
-
m && (
|
|
12409
|
+
if (f.labelKey || (f.labelKey = f.label), f.label = window.$l(f.labelKey), e.column && (s != null && s.length) && g.indexOf(h.props.prop) === -1) {
|
|
12410
|
+
const { data: m } = s.filter1((M) => M.prop === h.props.prop);
|
|
12411
|
+
m && (f.sort = m.sort, f.fixed = m.fixed, f.visible = m.visible);
|
|
12387
12412
|
}
|
|
12388
|
-
|
|
12413
|
+
h.props.fixed && b.fixed.push(f), h.props.type === "mmp" ? b.mmp.push(f) : h.props.type === "asa" ? b.asa.push(f) : b.normal.push(f), h.props = f;
|
|
12389
12414
|
}
|
|
12390
12415
|
}), a.columnInfo = b;
|
|
12391
|
-
let
|
|
12392
|
-
e.tableName && (
|
|
12416
|
+
let z = [...b.normal, ...b.mmp, ...b.asa];
|
|
12417
|
+
e.tableName && (z = z.sort((h, P) => h.sort - P.sort), localStorage.setItem(l, JSON.stringify(z)));
|
|
12393
12418
|
})();
|
|
12394
12419
|
let c = [];
|
|
12395
|
-
if (n.forEach((
|
|
12396
|
-
window.$getType(
|
|
12397
|
-
}), (
|
|
12398
|
-
const
|
|
12420
|
+
if (n.forEach((v) => {
|
|
12421
|
+
window.$getType(v) !== "String" && v.props.visible && c.push(v);
|
|
12422
|
+
}), (w = e.group) != null && w.label) {
|
|
12423
|
+
const v = {
|
|
12399
12424
|
label: "Group By " + e.group.label,
|
|
12400
12425
|
// prop: props.group.value,
|
|
12401
12426
|
width: e.group.width,
|
|
@@ -12405,13 +12430,13 @@ const Ln = oa({
|
|
|
12405
12430
|
};
|
|
12406
12431
|
c[0].props.type === "selection" ? c.splice(1, 0, {
|
|
12407
12432
|
...c[1],
|
|
12408
|
-
props:
|
|
12433
|
+
props: v
|
|
12409
12434
|
}) : c.unshift({
|
|
12410
12435
|
...c[0],
|
|
12411
|
-
props:
|
|
12436
|
+
props: v
|
|
12412
12437
|
});
|
|
12413
12438
|
}
|
|
12414
|
-
return c = c.sort((
|
|
12439
|
+
return c = c.sort((v, b) => v.props.sort - b.props.sort), () => c;
|
|
12415
12440
|
}
|
|
12416
12441
|
}), Mt = { class: "hp100 flexMode" }, kt = { class: "w200 hp100 border-r fs14" }, Et = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Ot = { class: "p4" }, Pt = ["onClick"], xt = {
|
|
12417
12442
|
class: "flexMode vs hp100",
|
|
@@ -12447,7 +12472,7 @@ const Ln = oa({
|
|
|
12447
12472
|
},
|
|
12448
12473
|
emits: "close",
|
|
12449
12474
|
setup(e, { emit: o }) {
|
|
12450
|
-
const a = e, l =
|
|
12475
|
+
const a = e, l = q({
|
|
12451
12476
|
loading: !1,
|
|
12452
12477
|
type: "normal",
|
|
12453
12478
|
columns: {
|
|
@@ -12462,43 +12487,43 @@ const Ln = oa({
|
|
|
12462
12487
|
columnType: {},
|
|
12463
12488
|
mounted: !1
|
|
12464
12489
|
});
|
|
12465
|
-
|
|
12466
|
-
|
|
12490
|
+
ie(() => {
|
|
12491
|
+
i();
|
|
12467
12492
|
});
|
|
12468
|
-
const n = o,
|
|
12493
|
+
const n = o, i = () => {
|
|
12469
12494
|
n("mounted");
|
|
12470
|
-
const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)),
|
|
12495
|
+
const m = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), M = {};
|
|
12471
12496
|
m.forEach((u) => {
|
|
12472
|
-
u.type && (
|
|
12473
|
-
}), l.columnType =
|
|
12497
|
+
u.type && (M[u.type] = !0), u.visible ? u.type === "selection" ? l.selection.push(u) : u.type === "operation" ? l.operation.push(u) : u.label && (u.fixed ? l.fixed.push(u) : l.visible.push(u)) : u.type === "mmp" ? l.columns.mmp.push(u) : u.type === "asa" ? l.columns.asa.push(u) : l.columns.normal.push(u);
|
|
12498
|
+
}), l.columnType = M;
|
|
12474
12499
|
}, c = (m) => {
|
|
12475
12500
|
l.type = m;
|
|
12476
|
-
},
|
|
12477
|
-
m.visible = !0, l.visible.unshift(m), m.type ? l.columns[m.type].splice(
|
|
12478
|
-
},
|
|
12479
|
-
l.fixed.unshift(m), l.visible.splice(
|
|
12480
|
-
}, b = (m,
|
|
12481
|
-
l.visible.unshift(m), l.fixed.splice(
|
|
12482
|
-
}, s = (m,
|
|
12483
|
-
l.visible.splice(
|
|
12484
|
-
},
|
|
12501
|
+
}, w = (m, M) => {
|
|
12502
|
+
m.visible = !0, l.visible.unshift(m), m.type ? l.columns[m.type].splice(M, 1) : l.columns.normal.splice(M, 1);
|
|
12503
|
+
}, v = (m, M) => {
|
|
12504
|
+
l.fixed.unshift(m), l.visible.splice(M, 1);
|
|
12505
|
+
}, b = (m, M) => {
|
|
12506
|
+
l.visible.unshift(m), l.fixed.splice(M, 1);
|
|
12507
|
+
}, s = (m, M) => {
|
|
12508
|
+
l.visible.splice(M, 1), m.type ? l.columns[m.type].unshift(m) : l.columns.normal.unshift(m);
|
|
12509
|
+
}, g = async () => {
|
|
12485
12510
|
l.loading = !0, window.$pm(() => {
|
|
12486
|
-
const { fixed: m, visible:
|
|
12487
|
-
let
|
|
12488
|
-
Object.keys(u).map((
|
|
12489
|
-
|
|
12490
|
-
}), m.forEach((
|
|
12491
|
-
const
|
|
12492
|
-
|
|
12511
|
+
const { fixed: m, visible: M, columns: u, selection: S, operation: _ } = l;
|
|
12512
|
+
let y = [];
|
|
12513
|
+
Object.keys(u).map((T) => {
|
|
12514
|
+
y = y.concat(u[T]);
|
|
12515
|
+
}), m.forEach((T) => T.fixed = "left"), y.forEach((T) => T.visible = !1);
|
|
12516
|
+
const D = S.concat(m, M, y, _);
|
|
12517
|
+
D.forEach((T, O) => T.sort = O), localStorage.setItem(`${a.tableName}_Column`, JSON.stringify(D)), l.loading = !1, n("close"), n("init-column");
|
|
12493
12518
|
});
|
|
12494
|
-
},
|
|
12519
|
+
}, z = () => {
|
|
12495
12520
|
l.loading = !0, localStorage.removeItem(`${a.tableName}_Column`), window.$pm(() => {
|
|
12496
12521
|
l.loading = !1, n("close"), n("init-column");
|
|
12497
12522
|
}, 4);
|
|
12498
|
-
},
|
|
12523
|
+
}, h = C(() => {
|
|
12499
12524
|
var m;
|
|
12500
12525
|
return ((m = globalThis.$config.options) == null ? void 0 : m.drawerHeight) || 540;
|
|
12501
|
-
}), P = C(() => (
|
|
12526
|
+
}), P = C(() => (h.value * 0.3).toFixed(0)), B = C(() => (h.value * 0.7 - 10).toFixed(0)), f = C(() => [
|
|
12502
12527
|
{
|
|
12503
12528
|
label: "Base Info",
|
|
12504
12529
|
value: "normal"
|
|
@@ -12514,27 +12539,27 @@ const Ln = oa({
|
|
|
12514
12539
|
hide: !l.columnType.mmp
|
|
12515
12540
|
}
|
|
12516
12541
|
]);
|
|
12517
|
-
return (m,
|
|
12518
|
-
const u =
|
|
12519
|
-
return A(),
|
|
12542
|
+
return (m, M) => {
|
|
12543
|
+
const u = F("el-scrollbar"), S = F("DrawerArea");
|
|
12544
|
+
return A(), Q(S, {
|
|
12520
12545
|
loading: t(l).loading,
|
|
12521
12546
|
noscroll: "",
|
|
12522
12547
|
"cancel-txt": "Reset",
|
|
12523
12548
|
"cancel-icon": "im-sync",
|
|
12524
12549
|
class: "MvcTableColumnConfig",
|
|
12525
|
-
onCancel:
|
|
12526
|
-
onSubmit:
|
|
12550
|
+
onCancel: z,
|
|
12551
|
+
onSubmit: g
|
|
12527
12552
|
}, {
|
|
12528
12553
|
default: N(() => [
|
|
12529
12554
|
d("div", Mt, [
|
|
12530
12555
|
d("div", kt, [
|
|
12531
12556
|
d("div", Et, x(m.$l("Column Type")), 1),
|
|
12532
12557
|
d("div", Ot, [
|
|
12533
|
-
(A(!0),
|
|
12534
|
-
key:
|
|
12535
|
-
class: G(["typeItem p8-16 mb4 radius4 txt-nowrap", [t(l).type ===
|
|
12536
|
-
onClick: (
|
|
12537
|
-
}, x(
|
|
12558
|
+
(A(!0), E(ne, null, se(t(f), (_) => (A(), E("div", {
|
|
12559
|
+
key: _.value,
|
|
12560
|
+
class: G(["typeItem p8-16 mb4 radius4 txt-nowrap", [t(l).type === _.value && "active", _.hide && "hide"]]),
|
|
12561
|
+
onClick: (y) => c(_.value)
|
|
12562
|
+
}, x(_.label), 11, Pt))), 128))
|
|
12538
12563
|
])
|
|
12539
12564
|
]),
|
|
12540
12565
|
d("div", xt, [
|
|
@@ -12546,18 +12571,18 @@ const Ln = oa({
|
|
|
12546
12571
|
j(u, { style: { height: "calc(100% - 36px)" } }, {
|
|
12547
12572
|
default: N(() => [
|
|
12548
12573
|
d("div", jt, [
|
|
12549
|
-
t(l).columns[t(l).type].length === 0 ? (A(),
|
|
12550
|
-
(A(!0),
|
|
12551
|
-
key:
|
|
12574
|
+
t(l).columns[t(l).type].length === 0 ? (A(), E("span", It, x(m.$l("No Columns")), 1)) : V("", !0),
|
|
12575
|
+
(A(!0), E(ne, null, se(t(l).columns[t(l).type], (_, y) => (A(), E("div", {
|
|
12576
|
+
key: _.prop,
|
|
12552
12577
|
class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
|
|
12553
12578
|
}, [
|
|
12554
|
-
d("span", null, x(m.$l(
|
|
12579
|
+
d("span", null, x(m.$l(_.label)), 1),
|
|
12555
12580
|
d("div", Bt, [
|
|
12556
12581
|
d("div", {
|
|
12557
12582
|
class: "tipbtn left",
|
|
12558
12583
|
txt: m.$l("Visible"),
|
|
12559
|
-
onClick: (
|
|
12560
|
-
}, [...
|
|
12584
|
+
onClick: (D) => w(_, y)
|
|
12585
|
+
}, [...M[0] || (M[0] = [
|
|
12561
12586
|
d("i", { class: "imicon im-plus fs16" }, null, -1)
|
|
12562
12587
|
])], 8, Dt)
|
|
12563
12588
|
])
|
|
@@ -12574,27 +12599,27 @@ const Ln = oa({
|
|
|
12574
12599
|
]),
|
|
12575
12600
|
d("div", Vt, [
|
|
12576
12601
|
d("div", Kt, [
|
|
12577
|
-
t(l).fixed.length === 0 ? (A(),
|
|
12602
|
+
t(l).fixed.length === 0 ? (A(), E("span", Ut, x(m.$l("No Fixed Columns")), 1)) : V("", !0),
|
|
12578
12603
|
j(u, { height: t(P) }, {
|
|
12579
12604
|
default: N(() => [
|
|
12580
12605
|
j(t(Ve), {
|
|
12581
12606
|
list: t(l).fixed,
|
|
12582
|
-
"item-key": (
|
|
12607
|
+
"item-key": (_) => _,
|
|
12583
12608
|
handle: ".im-handle",
|
|
12584
12609
|
"ghost-class": "ghost"
|
|
12585
12610
|
}, {
|
|
12586
|
-
item: N(({ element:
|
|
12611
|
+
item: N(({ element: _, index: y }) => [
|
|
12587
12612
|
d("div", Ht, [
|
|
12588
12613
|
d("div", Jt, [
|
|
12589
|
-
|
|
12590
|
-
d("span", null, x(m.$l(
|
|
12614
|
+
M[1] || (M[1] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
12615
|
+
d("span", null, x(m.$l(_.label)), 1)
|
|
12591
12616
|
]),
|
|
12592
12617
|
d("div", Zt, [
|
|
12593
12618
|
d("div", {
|
|
12594
12619
|
class: "tipbtn red left",
|
|
12595
12620
|
txt: m.$l("Unfixed"),
|
|
12596
|
-
onClick: (
|
|
12597
|
-
}, [...
|
|
12621
|
+
onClick: (D) => b(_, y)
|
|
12622
|
+
}, [...M[2] || (M[2] = [
|
|
12598
12623
|
d("i", { class: "imicon im-download1 fs14" }, null, -1)
|
|
12599
12624
|
])], 8, Yt)
|
|
12600
12625
|
])
|
|
@@ -12606,39 +12631,39 @@ const Ln = oa({
|
|
|
12606
12631
|
_: 1
|
|
12607
12632
|
}, 8, ["height"])
|
|
12608
12633
|
]),
|
|
12609
|
-
|
|
12634
|
+
M[6] || (M[6] = d("div", { class: "p4-0" }, [
|
|
12610
12635
|
d("div", { class: "border-t" })
|
|
12611
12636
|
], -1)),
|
|
12612
12637
|
d("div", Wt, [
|
|
12613
|
-
t(l).visible.length === 0 ? (A(),
|
|
12614
|
-
j(u, { height: t(
|
|
12638
|
+
t(l).visible.length === 0 ? (A(), E("span", qt, x(m.$l("No Columns")), 1)) : V("", !0),
|
|
12639
|
+
j(u, { height: t(B) }, {
|
|
12615
12640
|
default: N(() => [
|
|
12616
12641
|
j(t(Ve), {
|
|
12617
12642
|
list: t(l).visible,
|
|
12618
|
-
"item-key": (
|
|
12643
|
+
"item-key": (_) => _,
|
|
12619
12644
|
options: { lockAxis: "y" },
|
|
12620
12645
|
handle: ".im-handle",
|
|
12621
12646
|
"ghost-class": "ghost"
|
|
12622
12647
|
}, {
|
|
12623
|
-
item: N(({ element:
|
|
12648
|
+
item: N(({ element: _, index: y }) => [
|
|
12624
12649
|
d("div", Xt, [
|
|
12625
12650
|
d("div", Qt, [
|
|
12626
|
-
|
|
12627
|
-
d("span", null, x(m.$l(
|
|
12651
|
+
M[3] || (M[3] = d("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
12652
|
+
d("span", null, x(m.$l(_.label)), 1)
|
|
12628
12653
|
]),
|
|
12629
12654
|
d("div", er, [
|
|
12630
12655
|
d("div", {
|
|
12631
12656
|
class: "tipbtn left",
|
|
12632
12657
|
txt: m.$l("Fixed"),
|
|
12633
|
-
onClick: (
|
|
12634
|
-
}, [...
|
|
12658
|
+
onClick: (D) => v(_, y)
|
|
12659
|
+
}, [...M[4] || (M[4] = [
|
|
12635
12660
|
d("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
|
|
12636
12661
|
])], 8, ar),
|
|
12637
12662
|
d("div", {
|
|
12638
12663
|
class: "tipbtn red left",
|
|
12639
12664
|
txt: m.$l("Hide"),
|
|
12640
|
-
onClick: (
|
|
12641
|
-
}, [...
|
|
12665
|
+
onClick: (D) => s(_, y)
|
|
12666
|
+
}, [...M[5] || (M[5] = [
|
|
12642
12667
|
d("i", { class: "imicon im-close fs14" }, null, -1)
|
|
12643
12668
|
])], 8, lr)
|
|
12644
12669
|
])
|
|
@@ -12659,7 +12684,7 @@ const Ln = oa({
|
|
|
12659
12684
|
}, 8, ["loading"]);
|
|
12660
12685
|
};
|
|
12661
12686
|
}
|
|
12662
|
-
}), or = /* @__PURE__ */
|
|
12687
|
+
}), or = /* @__PURE__ */ le(nr, [["__scopeId", "data-v-1927ce52"]]), tr = { class: "p16 border-b" }, rr = { class: "flexMode vc g8" }, ir = {
|
|
12663
12688
|
key: 0,
|
|
12664
12689
|
class: "flexMode vc g8"
|
|
12665
12690
|
}, sr = { class: "flexMode g16 hr vc" }, cr = { class: "TheEnd p16" }, ur = { class: "sticky flexMode vc hb p4-8 mt16 mb8 fs14 txt-dark9 z9 backdrop border-l4-primary bg-gray3 radius4" }, dr = { class: "fw700" }, mr = { class: "flexMode vc g8" }, br = /* @__PURE__ */ Object.assign({
|
|
@@ -12683,7 +12708,7 @@ const Ln = oa({
|
|
|
12683
12708
|
},
|
|
12684
12709
|
emits: ["mounted"],
|
|
12685
12710
|
setup(e, { emit: o }) {
|
|
12686
|
-
const a = e, l =
|
|
12711
|
+
const a = e, l = q({
|
|
12687
12712
|
loading: !1,
|
|
12688
12713
|
columns: [],
|
|
12689
12714
|
checked: [],
|
|
@@ -12691,89 +12716,89 @@ const Ln = oa({
|
|
|
12691
12716
|
onlySelection: !1,
|
|
12692
12717
|
mounted: !1
|
|
12693
12718
|
});
|
|
12694
|
-
|
|
12695
|
-
|
|
12719
|
+
ie(() => {
|
|
12720
|
+
i();
|
|
12696
12721
|
});
|
|
12697
|
-
const n = o,
|
|
12698
|
-
n("mounted"), c(),
|
|
12722
|
+
const n = o, i = () => {
|
|
12723
|
+
n("mounted"), c(), w();
|
|
12699
12724
|
}, c = () => {
|
|
12700
|
-
const
|
|
12701
|
-
l.columns =
|
|
12702
|
-
},
|
|
12725
|
+
const f = JSON.parse(localStorage.getItem(`${a.tableName}_Column`)), m = ["selection", "operation"];
|
|
12726
|
+
l.columns = f.filter((M) => !m.includes(M.type) && M.label);
|
|
12727
|
+
}, w = () => {
|
|
12703
12728
|
a.selection.length && (l.onlySelection = !0);
|
|
12704
|
-
},
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
}) : m.children.forEach((
|
|
12708
|
-
|
|
12729
|
+
}, v = (f, m) => {
|
|
12730
|
+
f ? m.children.forEach((M) => {
|
|
12731
|
+
M.visible = !0;
|
|
12732
|
+
}) : m.children.forEach((M) => {
|
|
12733
|
+
M.visible = !1;
|
|
12709
12734
|
});
|
|
12710
12735
|
}, b = () => {
|
|
12711
|
-
window.$copy(
|
|
12736
|
+
window.$copy(g());
|
|
12712
12737
|
}, s = async () => {
|
|
12713
12738
|
l.loading = !0;
|
|
12714
12739
|
try {
|
|
12715
|
-
const
|
|
12716
|
-
let m = l.fileName ||
|
|
12717
|
-
m && !m.toLowerCase().endsWith(".csv") && (m = `${m}.csv`), await Ga({ content:
|
|
12740
|
+
const f = g("download");
|
|
12741
|
+
let m = l.fileName || z.value;
|
|
12742
|
+
m && !m.toLowerCase().endsWith(".csv") && (m = `${m}.csv`), await Ga({ content: f, filename: m, bom: !0 });
|
|
12718
12743
|
} finally {
|
|
12719
12744
|
l.loading = !1;
|
|
12720
12745
|
}
|
|
12721
|
-
},
|
|
12722
|
-
const m = l.onlySelection ? a.selection : a.list,
|
|
12723
|
-
l.columns.filter((
|
|
12724
|
-
u.push(window.$l(
|
|
12746
|
+
}, g = (f) => {
|
|
12747
|
+
const m = l.onlySelection ? a.selection : a.list, M = {}, u = [];
|
|
12748
|
+
l.columns.filter((O) => O.visible).forEach((O) => {
|
|
12749
|
+
u.push(window.$l(O.label)), M[O.prop] = !0;
|
|
12725
12750
|
});
|
|
12726
|
-
let
|
|
12727
|
-
(l.useHead ||
|
|
12751
|
+
let S = "", _ = [], y = f === "download" ? "," : " ";
|
|
12752
|
+
(l.useHead || f) && (S = u.join(y) + `
|
|
12728
12753
|
`);
|
|
12729
|
-
let
|
|
12730
|
-
return Object.keys(
|
|
12731
|
-
|
|
12754
|
+
let D = [], T;
|
|
12755
|
+
return Object.keys(M).forEach((O, k) => {
|
|
12756
|
+
O.includes("country") && (T = k);
|
|
12732
12757
|
const L = [];
|
|
12733
|
-
m.forEach((
|
|
12734
|
-
|
|
12735
|
-
}),
|
|
12736
|
-
}),
|
|
12737
|
-
!l.useCountryCode &&
|
|
12738
|
-
let
|
|
12739
|
-
window.$getType(L) === "Array" ?
|
|
12740
|
-
}) :
|
|
12741
|
-
|
|
12758
|
+
m.forEach((K) => {
|
|
12759
|
+
K[O] !== void 0 && L.push(K[O]);
|
|
12760
|
+
}), D.push(L);
|
|
12761
|
+
}), D.forEach((O, k) => {
|
|
12762
|
+
!l.useCountryCode && T === k ? O.forEach((L, K) => {
|
|
12763
|
+
let J = L;
|
|
12764
|
+
window.$getType(L) === "Array" ? J = L.map((R) => B[R.toUpperCase()].label.$l()).join(",") : window.$getType(L) === "String" ? J = L.split(",").map((R) => B[R.toUpperCase()].label.$l()).join(",") : J = JSON.stringify(L), _[K] ? _[K] += J + y : _[K] = J + y;
|
|
12765
|
+
}) : O.forEach((L, K) => {
|
|
12766
|
+
_[K] ? _[K] += L + y : _[K] = L + y;
|
|
12742
12767
|
});
|
|
12743
|
-
}), `${
|
|
12768
|
+
}), `${S}${_.join(`
|
|
12744
12769
|
`)}`;
|
|
12745
|
-
},
|
|
12746
|
-
const
|
|
12747
|
-
return `${a.tableName}_${
|
|
12748
|
-
}),
|
|
12749
|
-
const
|
|
12770
|
+
}, z = C(() => {
|
|
12771
|
+
const f = window.$d().format("YYYYMMDDHHmmss");
|
|
12772
|
+
return `${a.tableName}_${f}`;
|
|
12773
|
+
}), h = C(() => {
|
|
12774
|
+
const f = {};
|
|
12750
12775
|
return l.columns.forEach((m) => {
|
|
12751
|
-
const
|
|
12752
|
-
label: P[
|
|
12753
|
-
type:
|
|
12776
|
+
const M = m.type ? m.type : "normal", u = {
|
|
12777
|
+
label: P[M],
|
|
12778
|
+
type: M,
|
|
12754
12779
|
visible: 0
|
|
12755
12780
|
};
|
|
12756
|
-
|
|
12757
|
-
}), Object.keys(
|
|
12758
|
-
const
|
|
12759
|
-
|
|
12760
|
-
}),
|
|
12781
|
+
f[M] ? (f[M].children.push(m), m.visible && f[M].visible++) : (u.children = [m], m.visible && u.visible++, f[M] = u);
|
|
12782
|
+
}), Object.keys(f).forEach((m) => {
|
|
12783
|
+
const M = f[m].visible === f[m].children.length, u = f[m].visible === 0;
|
|
12784
|
+
M ? (f[m].checkstatus = !0, f[m].indeterminate = !1) : u ? (f[m].checkstatus = !1, f[m].indeterminate = !1) : (f[m].checkstatus = !1, f[m].indeterminate = !0);
|
|
12785
|
+
}), f;
|
|
12761
12786
|
}), P = {
|
|
12762
12787
|
asa: "Asa Metrics",
|
|
12763
12788
|
normal: "Base Info",
|
|
12764
12789
|
mmp: "MMP Metrics"
|
|
12765
12790
|
};
|
|
12766
12791
|
"Check All".$l(), "Cancel All".$l();
|
|
12767
|
-
const
|
|
12768
|
-
return (
|
|
12769
|
-
const
|
|
12770
|
-
return A(),
|
|
12792
|
+
const B = Be("asa.countryAll.obj");
|
|
12793
|
+
return (f, m) => {
|
|
12794
|
+
const M = F("el-checkbox"), u = F("el-button"), S = F("MvcAlert"), _ = F("el-switch"), y = F("Input"), D = F("DrawerArea");
|
|
12795
|
+
return A(), Q(D, oe(f.$attrs, { class: "MvcTableColumnDownload" }), {
|
|
12771
12796
|
cancel: N(() => [
|
|
12772
|
-
j(
|
|
12797
|
+
j(y, {
|
|
12773
12798
|
modelValue: t(l).fileName,
|
|
12774
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
12799
|
+
"onUpdate:modelValue": m[3] || (m[3] = (T) => t(l).fileName = T),
|
|
12775
12800
|
icon: "catalog",
|
|
12776
|
-
placeholder: t(
|
|
12801
|
+
placeholder: t(z),
|
|
12777
12802
|
class: "w600"
|
|
12778
12803
|
}, {
|
|
12779
12804
|
append: N(() => [
|
|
@@ -12785,7 +12810,7 @@ const Ln = oa({
|
|
|
12785
12810
|
d("i", { class: "imicon im-download1" }, null, -1)
|
|
12786
12811
|
])]),
|
|
12787
12812
|
default: N(() => [
|
|
12788
|
-
|
|
12813
|
+
te(" " + x(f.$l("Download")), 1)
|
|
12789
12814
|
]),
|
|
12790
12815
|
_: 1
|
|
12791
12816
|
}, 8, ["loading"])
|
|
@@ -12796,19 +12821,19 @@ const Ln = oa({
|
|
|
12796
12821
|
submit: N(() => [...m[6] || (m[6] = [])]),
|
|
12797
12822
|
default: N(() => [
|
|
12798
12823
|
d("div", tr, [
|
|
12799
|
-
j(
|
|
12824
|
+
j(S, null, {
|
|
12800
12825
|
default: N(() => [
|
|
12801
12826
|
d("div", rr, [
|
|
12802
|
-
d("span", null, x(
|
|
12827
|
+
d("span", null, x(f.$l("Total")), 1),
|
|
12803
12828
|
d("span", null, x(a.list.length), 1)
|
|
12804
12829
|
]),
|
|
12805
|
-
a.selection.length ? (A(),
|
|
12806
|
-
d("span", null, x(
|
|
12830
|
+
a.selection.length ? (A(), E("div", ir, [
|
|
12831
|
+
d("span", null, x(f.$l("Selection")), 1),
|
|
12807
12832
|
d("span", null, x(a.selection.length), 1),
|
|
12808
|
-
j(
|
|
12833
|
+
j(M, {
|
|
12809
12834
|
modelValue: t(l).onlySelection,
|
|
12810
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
12811
|
-
label:
|
|
12835
|
+
"onUpdate:modelValue": m[0] || (m[0] = (T) => t(l).onlySelection = T),
|
|
12836
|
+
label: f.$l("Only Selection")
|
|
12812
12837
|
}, null, 8, ["modelValue", "label"])
|
|
12813
12838
|
])) : V("", !0),
|
|
12814
12839
|
d("div", sr, [
|
|
@@ -12817,14 +12842,14 @@ const Ln = oa({
|
|
|
12817
12842
|
d("i", { class: "imicon im-copy" }, null, -1)
|
|
12818
12843
|
])]),
|
|
12819
12844
|
default: N(() => [
|
|
12820
|
-
|
|
12845
|
+
te(" " + x(f.$l("Copy to Clipboard")), 1)
|
|
12821
12846
|
]),
|
|
12822
12847
|
_: 1
|
|
12823
12848
|
}),
|
|
12824
|
-
j(
|
|
12849
|
+
j(M, {
|
|
12825
12850
|
modelValue: t(l).useHead,
|
|
12826
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
12827
|
-
label:
|
|
12851
|
+
"onUpdate:modelValue": m[1] || (m[1] = (T) => t(l).useHead = T),
|
|
12852
|
+
label: f.$l("With Table Head")
|
|
12828
12853
|
}, null, 8, ["modelValue", "label"])
|
|
12829
12854
|
])
|
|
12830
12855
|
]),
|
|
@@ -12832,36 +12857,36 @@ const Ln = oa({
|
|
|
12832
12857
|
})
|
|
12833
12858
|
]),
|
|
12834
12859
|
d("div", cr, [
|
|
12835
|
-
(A(!0),
|
|
12836
|
-
key:
|
|
12860
|
+
(A(!0), E(ne, null, se(t(h), (T) => (A(), E("div", {
|
|
12861
|
+
key: T.type
|
|
12837
12862
|
}, [
|
|
12838
12863
|
d("div", ur, [
|
|
12839
|
-
d("span", dr, x(
|
|
12840
|
-
j(
|
|
12841
|
-
modelValue:
|
|
12842
|
-
"onUpdate:modelValue": (
|
|
12843
|
-
indeterminate:
|
|
12844
|
-
label:
|
|
12845
|
-
onChange: (
|
|
12864
|
+
d("span", dr, x(T.label), 1),
|
|
12865
|
+
j(M, {
|
|
12866
|
+
modelValue: T.checkstatus,
|
|
12867
|
+
"onUpdate:modelValue": (O) => T.checkstatus = O,
|
|
12868
|
+
indeterminate: T.indeterminate,
|
|
12869
|
+
label: f.$l("Check"),
|
|
12870
|
+
onChange: (O) => v(O, T)
|
|
12846
12871
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
|
|
12847
12872
|
]),
|
|
12848
|
-
(A(!0),
|
|
12849
|
-
modelValue:
|
|
12850
|
-
"onUpdate:modelValue": (L) =>
|
|
12873
|
+
(A(!0), E(ne, null, se(T.children, (O, k) => (A(), Q(M, {
|
|
12874
|
+
modelValue: O.visible,
|
|
12875
|
+
"onUpdate:modelValue": (L) => O.visible = L,
|
|
12851
12876
|
key: k,
|
|
12852
|
-
label:
|
|
12853
|
-
value:
|
|
12877
|
+
label: O.label,
|
|
12878
|
+
value: O.value,
|
|
12854
12879
|
class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
|
|
12855
12880
|
}, {
|
|
12856
12881
|
default: N(() => {
|
|
12857
12882
|
var L;
|
|
12858
12883
|
return [
|
|
12859
12884
|
d("div", mr, [
|
|
12860
|
-
d("span", null, x(
|
|
12861
|
-
(L =
|
|
12885
|
+
d("span", null, x(O.label), 1),
|
|
12886
|
+
(L = O.prop) != null && L.includes("country") ? (A(), Q(_, {
|
|
12862
12887
|
key: 0,
|
|
12863
12888
|
modelValue: t(l).useCountryCode,
|
|
12864
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
12889
|
+
"onUpdate:modelValue": m[2] || (m[2] = (K) => t(l).useCountryCode = K),
|
|
12865
12890
|
"inline-prompt": "",
|
|
12866
12891
|
"active-text": "Use Alpha-2 Code",
|
|
12867
12892
|
"inactive-text": "Use Country Name",
|
|
@@ -12971,10 +12996,10 @@ const Ln = oa({
|
|
|
12971
12996
|
},
|
|
12972
12997
|
emits: ["selection-change", "refresh"],
|
|
12973
12998
|
setup(e, { expose: o, emit: a }) {
|
|
12974
|
-
const l = e, n =
|
|
12999
|
+
const l = e, n = q({
|
|
12975
13000
|
loading: !0,
|
|
12976
13001
|
selection: []
|
|
12977
|
-
}),
|
|
13002
|
+
}), i = q({
|
|
12978
13003
|
list: [],
|
|
12979
13004
|
total: 0,
|
|
12980
13005
|
page: 1,
|
|
@@ -12983,7 +13008,7 @@ const Ln = oa({
|
|
|
12983
13008
|
summaryType: "remote",
|
|
12984
13009
|
nopagination: !1,
|
|
12985
13010
|
params: {}
|
|
12986
|
-
}), c =
|
|
13011
|
+
}), c = q({
|
|
12987
13012
|
tabelKey: 0,
|
|
12988
13013
|
current: "",
|
|
12989
13014
|
list: [
|
|
@@ -12997,147 +13022,147 @@ const Ln = oa({
|
|
|
12997
13022
|
cpt: Ae(br)
|
|
12998
13023
|
}
|
|
12999
13024
|
]
|
|
13000
|
-
}),
|
|
13025
|
+
}), w = X(null), { proxy: v } = ue();
|
|
13001
13026
|
Da(() => {
|
|
13002
13027
|
s();
|
|
13003
|
-
}),
|
|
13004
|
-
|
|
13028
|
+
}), ie(() => {
|
|
13029
|
+
g();
|
|
13005
13030
|
});
|
|
13006
13031
|
const b = a, s = () => {
|
|
13007
|
-
n.loading = l.defaultLoading, l.pageSize && (
|
|
13008
|
-
},
|
|
13009
|
-
|
|
13010
|
-
},
|
|
13011
|
-
|
|
13012
|
-
},
|
|
13013
|
-
var H,
|
|
13014
|
-
if (
|
|
13032
|
+
n.loading = l.defaultLoading, l.pageSize && (i.pageSize = l.pageSize);
|
|
13033
|
+
}, g = () => {
|
|
13034
|
+
T(), l.defer === !1 && h();
|
|
13035
|
+
}, z = (r) => {
|
|
13036
|
+
h(r);
|
|
13037
|
+
}, h = async (r = {}) => {
|
|
13038
|
+
var H, Y;
|
|
13039
|
+
if (r.refresh && n.loading)
|
|
13015
13040
|
return;
|
|
13016
13041
|
n.loading = !0;
|
|
13017
|
-
const
|
|
13018
|
-
pageSize:
|
|
13019
|
-
pageStart:
|
|
13042
|
+
const p = {
|
|
13043
|
+
pageSize: r.pageSize || i.pageSize,
|
|
13044
|
+
pageStart: r.pageStart || i.page
|
|
13020
13045
|
};
|
|
13021
|
-
|
|
13022
|
-
const { list: I = [], total: $, summary:
|
|
13023
|
-
|
|
13024
|
-
}, P = (
|
|
13025
|
-
|
|
13026
|
-
},
|
|
13027
|
-
if (
|
|
13046
|
+
r.refresh && (p.remote = !0);
|
|
13047
|
+
const { list: I = [], total: $, summary: U } = await l.loadData(p) || {};
|
|
13048
|
+
i.list = I.map((ae, Oa) => (ae.index = Oa, ae)), $ === void 0 ? (i.total = i.list.length, i.nopagination = !0) : (i.total = $, i.nopagination = !1), (Y = (H = globalThis.$config) == null ? void 0 : H.table) != null && Y.scrollToTop && f(), P(U), n.loading = !1;
|
|
13049
|
+
}, P = (r) => {
|
|
13050
|
+
r ? i.summary = r : i.summary = !1;
|
|
13051
|
+
}, B = (r) => {
|
|
13052
|
+
if (i.summaryType === "locale")
|
|
13028
13053
|
return [];
|
|
13029
|
-
if (
|
|
13030
|
-
const
|
|
13054
|
+
if (i.summaryType === "remote") {
|
|
13055
|
+
const p = ($, U) => {
|
|
13031
13056
|
if ($ != null)
|
|
13032
|
-
return typeof $ == "function" ? $(
|
|
13057
|
+
return typeof $ == "function" ? $(U) : $[U];
|
|
13033
13058
|
}, I = ($) => {
|
|
13034
|
-
var H,
|
|
13035
|
-
const
|
|
13036
|
-
return
|
|
13059
|
+
var H, Y;
|
|
13060
|
+
const U = p(l.summaryMetric, $);
|
|
13061
|
+
return U !== void 0 ? U : p((Y = (H = globalThis.$config) == null ? void 0 : H.table) == null ? void 0 : Y.summaryMetric, $);
|
|
13037
13062
|
};
|
|
13038
|
-
return Va(
|
|
13063
|
+
return Va(r, i.summary, { resolveMetric: I });
|
|
13039
13064
|
}
|
|
13040
13065
|
return [];
|
|
13041
|
-
},
|
|
13042
|
-
|
|
13066
|
+
}, f = () => {
|
|
13067
|
+
w.value.$refs.scrollBarRef.setScrollTop(0);
|
|
13043
13068
|
}, m = () => {
|
|
13044
|
-
|
|
13069
|
+
h({
|
|
13045
13070
|
pageStart: 1
|
|
13046
13071
|
});
|
|
13047
|
-
},
|
|
13048
|
-
|
|
13049
|
-
}, u = (
|
|
13050
|
-
if (n.selection =
|
|
13051
|
-
const
|
|
13052
|
-
let H = $,
|
|
13053
|
-
$ >
|
|
13054
|
-
for (let
|
|
13055
|
-
|
|
13072
|
+
}, M = () => {
|
|
13073
|
+
h();
|
|
13074
|
+
}, u = (r) => {
|
|
13075
|
+
if (n.selection = r, b("selection-change", r), n.shiftKey) {
|
|
13076
|
+
const p = r[r.length - 2], I = r[r.length - 1], $ = i.list.filter1((ae) => ae.id === p.id).index || 0, U = i.list.filter1((ae) => ae.id === I.id).index;
|
|
13077
|
+
let H = $, Y = U;
|
|
13078
|
+
$ > U && (H = U, Y = $);
|
|
13079
|
+
for (let ae = H; ae <= Y; ae++)
|
|
13080
|
+
v.$refs.body.toggleRowSelection(i.list[ae], !0);
|
|
13056
13081
|
}
|
|
13057
|
-
}, T = () => {
|
|
13058
|
-
n.loading || (y({ refresh: !0 }), b("refresh"));
|
|
13059
|
-
}, h = () => {
|
|
13060
|
-
c.current = 0;
|
|
13061
13082
|
}, S = () => {
|
|
13083
|
+
n.loading || (h({ refresh: !0 }), b("refresh"));
|
|
13084
|
+
}, _ = () => {
|
|
13085
|
+
c.current = 0;
|
|
13086
|
+
}, y = () => {
|
|
13062
13087
|
c.current = 1;
|
|
13063
|
-
},
|
|
13088
|
+
}, D = () => {
|
|
13064
13089
|
n.tableKey++;
|
|
13065
|
-
},
|
|
13066
|
-
document.addEventListener("keydown",
|
|
13067
|
-
},
|
|
13068
|
-
|
|
13069
|
-
}, k = (
|
|
13070
|
-
|
|
13090
|
+
}, T = () => {
|
|
13091
|
+
document.addEventListener("keydown", O), document.addEventListener("keyup", k);
|
|
13092
|
+
}, O = (r) => {
|
|
13093
|
+
r.keyCode === 16 && (n.shiftKey = !0);
|
|
13094
|
+
}, k = (r) => {
|
|
13095
|
+
r.keyCode === 16 && (n.shiftKey = !1);
|
|
13071
13096
|
}, L = () => {
|
|
13072
|
-
document.removeEventListener("keydown",
|
|
13073
|
-
},
|
|
13074
|
-
|
|
13075
|
-
},
|
|
13076
|
-
var
|
|
13077
|
-
let
|
|
13078
|
-
return l.noheader === !1 && (
|
|
13079
|
-
}),
|
|
13097
|
+
document.removeEventListener("keydown", O), document.removeEventListener("keyup", k);
|
|
13098
|
+
}, K = ({ i: r, row: p }) => {
|
|
13099
|
+
i.list[r] = p;
|
|
13100
|
+
}, J = C(() => {
|
|
13101
|
+
var p;
|
|
13102
|
+
let r = l.height || ((p = globalThis.$config.options) == null ? void 0 : p.pageHeight) || 640;
|
|
13103
|
+
return l.noheader === !1 && (r -= 64), l.nofooter === !1 && (r -= 56), r -= l.minusHeight, r;
|
|
13104
|
+
}), R = C(() => !!i.summary), W = C(() => i.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), ee = C(() => {
|
|
13080
13105
|
if (l.tool) {
|
|
13081
|
-
const { column:
|
|
13106
|
+
const { column: r = !0, download: p = !0, refresh: I = !0 } = l.tool;
|
|
13082
13107
|
return {
|
|
13083
|
-
column:
|
|
13084
|
-
download:
|
|
13108
|
+
column: r,
|
|
13109
|
+
download: p,
|
|
13085
13110
|
refresh: I
|
|
13086
13111
|
};
|
|
13087
13112
|
} else
|
|
13088
13113
|
return !1;
|
|
13089
13114
|
});
|
|
13090
|
-
return
|
|
13115
|
+
return be(() => {
|
|
13091
13116
|
L();
|
|
13092
13117
|
}), o({
|
|
13093
|
-
initTable:
|
|
13094
|
-
editRow:
|
|
13095
|
-
}), (
|
|
13096
|
-
const I =
|
|
13097
|
-
return A(),
|
|
13098
|
-
l.noheader === !1 ? (A(),
|
|
13118
|
+
initTable: z,
|
|
13119
|
+
editRow: K
|
|
13120
|
+
}), (r, p) => {
|
|
13121
|
+
const I = F("el-button"), $ = F("Loading"), U = F("el-table"), H = F("el-pagination"), Y = F("Drawer");
|
|
13122
|
+
return A(), E("div", vr, [
|
|
13123
|
+
l.noheader === !1 ? (A(), E("div", {
|
|
13099
13124
|
key: 0,
|
|
13100
13125
|
class: G(["flexMode hb g12 p16 bg-white", l.autoHeader ? "minh64" : "h64"])
|
|
13101
13126
|
}, [
|
|
13102
13127
|
d("div", {
|
|
13103
13128
|
class: G(["flexMode vc flexGrow maxwp100", l.headerClass])
|
|
13104
13129
|
}, [
|
|
13105
|
-
|
|
13130
|
+
Z(r.$slots, "header", {}, void 0, !0)
|
|
13106
13131
|
], 2),
|
|
13107
|
-
t(
|
|
13108
|
-
t(
|
|
13132
|
+
t(ee) ? (A(), E("div", pr, [
|
|
13133
|
+
t(ee).refresh ? (A(), Q(I, {
|
|
13109
13134
|
key: 0,
|
|
13110
|
-
onClick:
|
|
13135
|
+
onClick: S
|
|
13111
13136
|
}, {
|
|
13112
|
-
icon: N(() => [...
|
|
13137
|
+
icon: N(() => [...p[2] || (p[2] = [
|
|
13113
13138
|
d("i", { class: "imicon im-reload" }, null, -1)
|
|
13114
13139
|
])]),
|
|
13115
13140
|
default: N(() => [
|
|
13116
|
-
|
|
13141
|
+
te(" " + x(r.$l("Refresh")), 1)
|
|
13117
13142
|
]),
|
|
13118
13143
|
_: 1
|
|
13119
13144
|
})) : V("", !0),
|
|
13120
|
-
t(
|
|
13145
|
+
t(ee).column ? (A(), Q(I, {
|
|
13121
13146
|
key: 1,
|
|
13122
|
-
onClick:
|
|
13147
|
+
onClick: _
|
|
13123
13148
|
}, {
|
|
13124
|
-
icon: N(() => [...
|
|
13149
|
+
icon: N(() => [...p[3] || (p[3] = [
|
|
13125
13150
|
d("i", { class: "imicon im-layout" }, null, -1)
|
|
13126
13151
|
])]),
|
|
13127
13152
|
default: N(() => [
|
|
13128
|
-
|
|
13153
|
+
te(" " + x(r.$l("Columns")), 1)
|
|
13129
13154
|
]),
|
|
13130
13155
|
_: 1
|
|
13131
13156
|
})) : V("", !0),
|
|
13132
|
-
t(
|
|
13157
|
+
t(ee).download ? (A(), Q(I, {
|
|
13133
13158
|
key: 2,
|
|
13134
|
-
onClick:
|
|
13159
|
+
onClick: y
|
|
13135
13160
|
}, {
|
|
13136
|
-
icon: N(() => [...
|
|
13161
|
+
icon: N(() => [...p[4] || (p[4] = [
|
|
13137
13162
|
d("i", { class: "imicon im-download" }, null, -1)
|
|
13138
13163
|
])]),
|
|
13139
13164
|
default: N(() => [
|
|
13140
|
-
|
|
13165
|
+
te(" " + x(r.$l("Download")), 1)
|
|
13141
13166
|
]),
|
|
13142
13167
|
_: 1
|
|
13143
13168
|
})) : V("", !0)
|
|
@@ -13147,28 +13172,28 @@ const Ln = oa({
|
|
|
13147
13172
|
j($, {
|
|
13148
13173
|
loading: t(n).loading
|
|
13149
13174
|
}, null, 8, ["loading"]),
|
|
13150
|
-
(A(),
|
|
13175
|
+
(A(), Q(U, {
|
|
13151
13176
|
ref_key: "body",
|
|
13152
|
-
ref:
|
|
13177
|
+
ref: w,
|
|
13153
13178
|
key: t(n).tableKey,
|
|
13154
|
-
height: t(
|
|
13155
|
-
data: t(
|
|
13179
|
+
height: t(J),
|
|
13180
|
+
data: t(i).list,
|
|
13156
13181
|
"default-expand-all": l.defaultExpandAll,
|
|
13157
13182
|
"row-key": l.rowKey,
|
|
13158
13183
|
stripe: "",
|
|
13159
13184
|
border: "",
|
|
13160
|
-
"show-summary": t(
|
|
13161
|
-
"summary-method":
|
|
13185
|
+
"show-summary": t(R),
|
|
13186
|
+
"summary-method": B,
|
|
13162
13187
|
class: "MainTable",
|
|
13163
13188
|
onSelectionChange: u
|
|
13164
13189
|
}, {
|
|
13165
13190
|
default: N(() => [
|
|
13166
|
-
j(t(Ct),
|
|
13191
|
+
j(t(Ct), oe({
|
|
13167
13192
|
"table-name": l.tableName,
|
|
13168
|
-
column: t(
|
|
13169
|
-
},
|
|
13193
|
+
column: t(ee) ? t(ee).column : !1
|
|
13194
|
+
}, r.$attrs), {
|
|
13170
13195
|
default: N(() => [
|
|
13171
|
-
|
|
13196
|
+
Z(r.$slots, "default", {}, void 0, !0)
|
|
13172
13197
|
]),
|
|
13173
13198
|
_: 3
|
|
13174
13199
|
}, 16, ["table-name", "column"])
|
|
@@ -13176,34 +13201,34 @@ const Ln = oa({
|
|
|
13176
13201
|
_: 3
|
|
13177
13202
|
}, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
|
|
13178
13203
|
]),
|
|
13179
|
-
l.nofooter === !1 ? (A(),
|
|
13204
|
+
l.nofooter === !1 ? (A(), E("div", hr, [
|
|
13180
13205
|
j(H, {
|
|
13181
|
-
"current-page": t(
|
|
13182
|
-
"onUpdate:currentPage":
|
|
13206
|
+
"current-page": t(i).page,
|
|
13207
|
+
"onUpdate:currentPage": p[0] || (p[0] = (ae) => t(i).page = ae),
|
|
13183
13208
|
background: "",
|
|
13184
|
-
total: t(
|
|
13185
|
-
"default-page-size": t(
|
|
13209
|
+
total: t(i).total,
|
|
13210
|
+
"default-page-size": t(i).pageSize,
|
|
13186
13211
|
"page-sizes": l.pageSizes,
|
|
13187
13212
|
"pager-count": 5,
|
|
13188
|
-
layout: t(
|
|
13213
|
+
layout: t(W),
|
|
13189
13214
|
class: "wp100",
|
|
13190
13215
|
onSizeChange: m,
|
|
13191
|
-
onCurrentChange:
|
|
13216
|
+
onCurrentChange: M
|
|
13192
13217
|
}, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
|
|
13193
13218
|
])) : V("", !0),
|
|
13194
|
-
j(
|
|
13219
|
+
j(Y, {
|
|
13195
13220
|
current: t(c).current,
|
|
13196
|
-
"onUpdate:current":
|
|
13221
|
+
"onUpdate:current": p[1] || (p[1] = (ae) => t(c).current = ae),
|
|
13197
13222
|
"table-name": l.tableName,
|
|
13198
13223
|
drawer: t(c).list,
|
|
13199
|
-
list: t(
|
|
13224
|
+
list: t(i).list,
|
|
13200
13225
|
selection: t(n).selection,
|
|
13201
|
-
onInitColumn:
|
|
13226
|
+
onInitColumn: D
|
|
13202
13227
|
}, null, 8, ["current", "table-name", "drawer", "list", "selection"])
|
|
13203
13228
|
]);
|
|
13204
13229
|
};
|
|
13205
13230
|
}
|
|
13206
|
-
}), gr = /* @__PURE__ */
|
|
13231
|
+
}), gr = /* @__PURE__ */ le(_r, [["__scopeId", "data-v-f79bf58d"]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13207
13232
|
__proto__: null,
|
|
13208
13233
|
default: gr
|
|
13209
13234
|
}, Symbol.toStringTag, { value: "Module" })), Ar = { class: "minh480 pt16" }, zr = /* @__PURE__ */ Object.assign({
|
|
@@ -13253,24 +13278,24 @@ const Ln = oa({
|
|
|
13253
13278
|
},
|
|
13254
13279
|
emits: ["update:modelValue", "change"],
|
|
13255
13280
|
setup(e, { emit: o }) {
|
|
13256
|
-
const a = e, l = o, n =
|
|
13281
|
+
const a = e, l = o, n = ve(), i = (s) => s == null ? s : ["Object", "Array"].includes(globalThis.$getType(s)) ? s[a.valueKey] : s, c = (s) => {
|
|
13257
13282
|
l("update:modelValue", s);
|
|
13258
|
-
const
|
|
13259
|
-
l("change", s,
|
|
13260
|
-
},
|
|
13261
|
-
() => a.options.find((s) =>
|
|
13262
|
-
),
|
|
13263
|
-
const s =
|
|
13283
|
+
const g = a.options.find((z) => i(z) === s);
|
|
13284
|
+
l("change", s, g);
|
|
13285
|
+
}, w = C(
|
|
13286
|
+
() => a.options.find((s) => i(s) === a.modelValue)
|
|
13287
|
+
), v = C(() => {
|
|
13288
|
+
const s = w.value;
|
|
13264
13289
|
if (!(!s || !["Object", "Array"].includes(globalThis.$getType(s))))
|
|
13265
13290
|
return s[a.componentKey];
|
|
13266
13291
|
}), b = C(() => {
|
|
13267
|
-
const s =
|
|
13292
|
+
const s = w.value;
|
|
13268
13293
|
return !s || !["Object", "Array"].includes(globalThis.$getType(s)) ? {} : s[a.panePropsKey] ?? {};
|
|
13269
13294
|
});
|
|
13270
|
-
return (s,
|
|
13271
|
-
const
|
|
13272
|
-
return A(),
|
|
13273
|
-
j(
|
|
13295
|
+
return (s, g) => {
|
|
13296
|
+
const z = F("BtnGroup");
|
|
13297
|
+
return A(), E("div", oe({ class: "MvcTabs" }, t(n)), [
|
|
13298
|
+
j(z, {
|
|
13274
13299
|
"model-value": a.modelValue,
|
|
13275
13300
|
options: a.options,
|
|
13276
13301
|
"value-key": a.valueKey,
|
|
@@ -13281,7 +13306,7 @@ const Ln = oa({
|
|
|
13281
13306
|
"onUpdate:modelValue": c
|
|
13282
13307
|
}, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
|
|
13283
13308
|
d("div", Ar, [
|
|
13284
|
-
t(
|
|
13309
|
+
t(v) ? (A(), Q(na(t(v)), we(oe({ key: 0 }, t(b))), null, 16)) : V("", !0)
|
|
13285
13310
|
])
|
|
13286
13311
|
], 16);
|
|
13287
13312
|
};
|
|
@@ -13337,95 +13362,95 @@ const Ln = oa({
|
|
|
13337
13362
|
"focus"
|
|
13338
13363
|
],
|
|
13339
13364
|
setup(e, { emit: o }) {
|
|
13340
|
-
const a = e, l =
|
|
13341
|
-
let
|
|
13342
|
-
const c =
|
|
13365
|
+
const a = e, l = ve(), n = X(null);
|
|
13366
|
+
let i = null;
|
|
13367
|
+
const c = q({
|
|
13343
13368
|
val: "",
|
|
13344
13369
|
isComposing: !1,
|
|
13345
13370
|
focused: !1
|
|
13346
|
-
}),
|
|
13371
|
+
}), w = o, { proxy: v } = ue(), b = C(() => {
|
|
13347
13372
|
const { class: k, ...L } = l;
|
|
13348
13373
|
return L;
|
|
13349
13374
|
});
|
|
13350
|
-
|
|
13351
|
-
var L,
|
|
13375
|
+
ie(() => {
|
|
13376
|
+
var L, K;
|
|
13352
13377
|
const k = (L = n.value) == null ? void 0 : L.$el;
|
|
13353
|
-
|
|
13378
|
+
i = (K = k == null ? void 0 : k.querySelector) == null ? void 0 : K.call(k, "textarea"), i && (i.addEventListener("compositionstart", s), i.addEventListener("compositionend", g));
|
|
13354
13379
|
});
|
|
13355
13380
|
const s = () => {
|
|
13356
13381
|
c.isComposing = !0;
|
|
13357
|
-
},
|
|
13358
|
-
c.isComposing = !1,
|
|
13359
|
-
},
|
|
13382
|
+
}, g = () => {
|
|
13383
|
+
c.isComposing = !1, de(() => m(c.val));
|
|
13384
|
+
}, z = (k) => {
|
|
13360
13385
|
c.isComposing || m(k);
|
|
13361
|
-
},
|
|
13362
|
-
c.focused = !0,
|
|
13386
|
+
}, h = (k) => {
|
|
13387
|
+
c.focused = !0, w("focus", k);
|
|
13363
13388
|
}, P = (k) => {
|
|
13364
|
-
c.focused = !1,
|
|
13365
|
-
},
|
|
13389
|
+
c.focused = !1, w("blur", k);
|
|
13390
|
+
}, B = (k) => {
|
|
13366
13391
|
const L = String(k ?? "").split(/\r?\n/);
|
|
13367
13392
|
return a.output === "array" ? L : L.join(",");
|
|
13368
|
-
},
|
|
13393
|
+
}, f = (k) => Array.isArray(k) ? k.join(`
|
|
13369
13394
|
`) : String(k ?? "").replace(/,/g, `
|
|
13370
13395
|
`), m = (k) => {
|
|
13371
|
-
const L =
|
|
13372
|
-
|
|
13373
|
-
},
|
|
13374
|
-
if (!a.height) return
|
|
13396
|
+
const L = B(k);
|
|
13397
|
+
w("update:modelValue", L), w("input", L);
|
|
13398
|
+
}, M = C(() => {
|
|
13399
|
+
if (!a.height) return v.$attrs["input-style"];
|
|
13375
13400
|
const k = typeof a.height == "number" ? `${a.height}px` : a.height;
|
|
13376
|
-
return { ...
|
|
13377
|
-
}), u = C(() => !!(
|
|
13378
|
-
() => a.materialLabel && (c.focused ||
|
|
13379
|
-
),
|
|
13401
|
+
return { ...v.$attrs["input-style"] && typeof v.$attrs["input-style"] == "object" ? { ...v.$attrs["input-style"] } : {}, height: k, minHeight: k };
|
|
13402
|
+
}), u = C(() => !!(v.$attrs.maxlength || S.value)), S = C(() => v.$attrs.max), _ = C(() => String(c.val ?? "").length > 0), y = C(() => !!l.placeholder), D = C(
|
|
13403
|
+
() => a.materialLabel && (c.focused || _.value || y.value)
|
|
13404
|
+
), T = C(() => ({
|
|
13380
13405
|
[l.class]: !!l.class,
|
|
13381
13406
|
hasLabel: !!a.label,
|
|
13382
13407
|
isMaterialLabel: !!(a.label && a.materialLabel),
|
|
13383
13408
|
isTopLabel: !!(a.label && !a.materialLabel),
|
|
13384
|
-
isFloat:
|
|
13409
|
+
isFloat: D.value,
|
|
13385
13410
|
isFocused: c.focused,
|
|
13386
13411
|
isDisabled: !!l.disabled,
|
|
13387
13412
|
isTextarea: !0
|
|
13388
|
-
})),
|
|
13413
|
+
})), O = C(
|
|
13389
13414
|
() => a.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
13390
13415
|
);
|
|
13391
|
-
return
|
|
13416
|
+
return re(
|
|
13392
13417
|
() => a.modelValue,
|
|
13393
13418
|
(k) => {
|
|
13394
|
-
const L =
|
|
13419
|
+
const L = f(k);
|
|
13395
13420
|
c.val !== L && (c.val = L);
|
|
13396
13421
|
},
|
|
13397
13422
|
{ immediate: !0 }
|
|
13398
|
-
),
|
|
13399
|
-
|
|
13423
|
+
), be(() => {
|
|
13424
|
+
i && (i.removeEventListener("compositionstart", s), i.removeEventListener("compositionend", g), i = null);
|
|
13400
13425
|
}), (k, L) => {
|
|
13401
|
-
const
|
|
13402
|
-
return A(),
|
|
13403
|
-
class: G(["MvcField MvcFieldTextarea", t(
|
|
13404
|
-
style:
|
|
13426
|
+
const K = F("el-input");
|
|
13427
|
+
return A(), E("div", {
|
|
13428
|
+
class: G(["MvcField MvcFieldTextarea", t(T)]),
|
|
13429
|
+
style: ce(t(O))
|
|
13405
13430
|
}, [
|
|
13406
|
-
a.label ? (A(),
|
|
13407
|
-
j(
|
|
13431
|
+
a.label ? (A(), E("label", Sr, x(a.label), 1)) : V("", !0),
|
|
13432
|
+
j(K, oe({
|
|
13408
13433
|
ref_key: "inputRef",
|
|
13409
13434
|
ref: n,
|
|
13410
13435
|
type: "textarea",
|
|
13411
13436
|
modelValue: t(c).val,
|
|
13412
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
13437
|
+
"onUpdate:modelValue": L[0] || (L[0] = (J) => t(c).val = J),
|
|
13413
13438
|
rows: a.rows,
|
|
13414
13439
|
style: t(b).style,
|
|
13415
|
-
"input-style": t(
|
|
13440
|
+
"input-style": t(M),
|
|
13416
13441
|
"show-word-limit": t(u),
|
|
13417
|
-
maxlength: t(
|
|
13442
|
+
maxlength: t(S),
|
|
13418
13443
|
resize: a.resize,
|
|
13419
13444
|
class: "MvcTextarea"
|
|
13420
13445
|
}, t(b), {
|
|
13421
|
-
onInput:
|
|
13422
|
-
onFocus:
|
|
13446
|
+
onInput: z,
|
|
13447
|
+
onFocus: h,
|
|
13423
13448
|
onBlur: P
|
|
13424
13449
|
}), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength", "resize"])
|
|
13425
13450
|
], 6);
|
|
13426
13451
|
};
|
|
13427
13452
|
}
|
|
13428
|
-
}), Cr = /* @__PURE__ */
|
|
13453
|
+
}), Cr = /* @__PURE__ */ le(Tr, [["__scopeId", "data-v-90814c5c"]]), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13429
13454
|
__proto__: null,
|
|
13430
13455
|
default: Cr
|
|
13431
13456
|
}, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
|
|
@@ -13477,11 +13502,13 @@ const xr = (e, o = {}) => {
|
|
|
13477
13502
|
}, Nr = {
|
|
13478
13503
|
name: "Matt Avias Frame",
|
|
13479
13504
|
copyright: "©2026",
|
|
13480
|
-
version: "1.1.
|
|
13505
|
+
version: "1.1.7",
|
|
13481
13506
|
author: "Matt Avias",
|
|
13482
13507
|
date: "2026-02-26",
|
|
13483
13508
|
/** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
13484
13509
|
lang: "en_us",
|
|
13510
|
+
/** 视觉主题名;main 为默认主题,glass 为内置毛玻璃主题 */
|
|
13511
|
+
theme: "main",
|
|
13485
13512
|
/** Table 等表格默认;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
13486
13513
|
table: {
|
|
13487
13514
|
/** 同 Table 的 summary-metric:{ [prop]: { unit, precision, currency } } 或 (prop) => metric */
|
|
@@ -13513,7 +13540,7 @@ const xr = (e, o = {}) => {
|
|
|
13513
13540
|
export {
|
|
13514
13541
|
Tn as D,
|
|
13515
13542
|
el as M,
|
|
13516
|
-
|
|
13543
|
+
le as _,
|
|
13517
13544
|
Jr as a,
|
|
13518
13545
|
on as b,
|
|
13519
13546
|
Ie as c,
|