@morghulis/core 1.0.64 → 1.0.66
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { hasInjectionContext as qr, inject as xt, getCurrentInstance as Hr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Kr, onScopeDispose as Yr, watch as X, toRefs as tl, unref as h, onUnmounted as Fa, defineComponent as I, onMounted as Vt, onBeforeUnmount as Pa, createElementBlock as z, openBlock as b, normalizeStyle as
|
|
1
|
+
import { hasInjectionContext as qr, inject as xt, getCurrentInstance as Hr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Kr, onScopeDispose as Yr, watch as X, toRefs as tl, unref as h, onUnmounted as Fa, defineComponent as I, onMounted as Vt, onBeforeUnmount as Pa, createElementBlock as z, openBlock as b, normalizeStyle as qe, useSlots as Tn, normalizeClass as Tt, createBlock as k, createCommentVNode as K, renderSlot as Q, resolveComponent as w, withCtx as f, createVNode as m, createElementVNode as te, createTextVNode as S, resolveDirective as At, withKeys as Me, createSlots as ko, withDirectives as We, toDisplayString as M, Fragment as H, defineAsyncComponent as Wt, shallowRef as Wr, renderList as se, resolveDynamicComponent as An, mergeProps as ke, vShow as Gr } from "vue";
|
|
2
2
|
import { library as Jr } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { faUser as Xr, faPaperPlane as Zr, faRefresh as Qr, faExchangeAlt as ei, faCalculator as ti, faDatabase as ni, faClose as oi, faPlus as li, faSave as ai, faMinusSquare as si, faSearch as ri, faBan as ii, faEdit as ui, faTrash as ci, faPaste as di, faPlusSquare as pi, faLeaf as fi, faFolder as mi, faTable as _i, faUpload as gi, faClone as hi, faDownload as vi, faFolderOpen as yi, faExpand as bi, faCode as wi, faCheckCircle as ki, faInfoCircle as Ei, faClipboard as xi, faFileExcel as Ci, faXmark as Oi, faXmarkCircle as Si, faXmarkSquare as $i, faWarning as Vi, faFileText as Ti, faBookOpen as Ai, faFileImport as Di, faCloudUploadAlt as Ri, faCloudUpload as Ii, faCheckSquare as Fi, faSort as Pi, faLayerGroup as Ni, faFile as Ui, faA as Bi, faCheck as Li, faSortDesc as Mi, faSearchMinus as zi, faSortAsc as ji, faCaretSquareUp as qi, faTableCells as Hi, faTableList as Ki, faRobot as Yi, faLock as Wi, faQuoteLeftAlt as Gi, faScroll as Ji, faSlidersH as Xi, faCalendarDay as Zi, faListUl as Qi, faCalendarWeek as eu, faCalendarAlt as tu, faLink as nu, faUnlink as ou, faBox as lu, faBoxes as au, faFolderTree as su, faBolt as ru, faCheckToSlot as iu, faCircleDot as uu, faCircle as cu, faCopy as du, faCogs as pu, faListAlt as fu, faUnlock as mu, faPen as _u, faSpinner as gu, faRightToBracket as hu, faRightFromBracket as vu, faEnvelope as yu, faKey as bu, faCodeBranch as wu, faAddressCard as ku, faHome as Eu, faCircleUser as xu, faUsers as Cu, faList as Ou, faUserLock as Su, faRotateLeft as $u, faBars as Vu, faEye as Tu, faAt as Au, faUserTag as Du, faLockOpen as Ru, faCalendar as Iu, faStar as Fu, faCog as Pu, faSquare as Nu, faBoxOpen as Uu, faUserGroup as Bu, faHourglass as Lu, faUserGraduate as Mu, faAsterisk as zu, faUserPlus as ju } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
import { pick as ve, isEqual as Ie, isEmpty as
|
|
4
|
+
import { pick as ve, isEqual as Ie, isEmpty as He, isBoolean as Dn, isNumber as no, isArray as oo, cloneDeep as et, keyBy as Eo, merge as xo, range as Na, intersection as pn, union as lo, difference as qu, omit as Rn, get as Hu, mapValues as Ku } from "lodash";
|
|
5
5
|
import { useWebSocket as Yu, useClipboard as _t, useElementSize as wt, useWindowSize as Wu, useInterval as Ua } from "@vueuse/core";
|
|
6
6
|
import tt from "moment";
|
|
7
7
|
import { FontAwesomeIcon as Gu } from "@fortawesome/vue-fontawesome";
|
|
@@ -1792,7 +1792,7 @@ var xc = Object.create, qa = Object.defineProperty, Cc = Object.getOwnPropertyDe
|
|
|
1792
1792
|
"¤": "tien te"
|
|
1793
1793
|
}
|
|
1794
1794
|
}, i = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), p = function(y, E) {
|
|
1795
|
-
var T = "-", D = "", C = "", V = !0, P = {}, $, F, U, A, R, B, q, J, de, ne, G, ae, oe,
|
|
1795
|
+
var T = "-", D = "", C = "", V = !0, P = {}, $, F, U, A, R, B, q, J, de, ne, G, ae, oe, Ue, pe = "";
|
|
1796
1796
|
if (typeof y != "string")
|
|
1797
1797
|
return "";
|
|
1798
1798
|
if (typeof E == "string" && (T = E), q = r.en, J = a.en, typeof E == "object") {
|
|
@@ -1807,8 +1807,8 @@ var xc = Object.create, qa = Object.defineProperty, Cc = Object.getOwnPropertyDe
|
|
|
1807
1807
|
for (G in P)
|
|
1808
1808
|
pe += G;
|
|
1809
1809
|
}
|
|
1810
|
-
for (pe += T, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1,
|
|
1811
|
-
G = y[ne], d(G, P) ? oe = !1 : J[G] ? (G = oe && J[G].match(/[A-Za-z0-9]/) ? " " + J[G] : J[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") :
|
|
1810
|
+
for (pe += T, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1, Ue = !1, ne = 0, ae = y.length; ne < ae; ne++)
|
|
1811
|
+
G = y[ne], d(G, P) ? oe = !1 : J[G] ? (G = oe && J[G].match(/[A-Za-z0-9]/) ? " " + J[G] : J[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") : Ue === !0 ? (G = s[C] + o[G], C = "") : G = oe && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], oe = !1, Ue = !1) : G in s ? (C += G, G = "", ne === ae - 1 && (G = s[C]), Ue = !0) : /* process symbol chars */ q[G] && !(A && i.indexOf(G) !== -1) && !(R && u.indexOf(G) !== -1) ? (G = oe || D.substr(-1).match(/[A-Za-z0-9]/) ? T + q[G] : q[G], G += y[ne + 1] !== void 0 && y[ne + 1].match(/[A-Za-z0-9]/) ? T : "", oe = !0) : (Ue === !0 ? (G = s[C] + G, C = "", Ue = !1) : oe && (/[A-Za-z0-9]/.test(G) || D.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), oe = !1), D += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), T);
|
|
1812
1812
|
return F && (D = D.replace(/(\w)(\S*)/g, function(_e, Ke, st) {
|
|
1813
1813
|
var yt = Ke.toUpperCase() + (st !== null ? st : "");
|
|
1814
1814
|
return Object.keys(P).indexOf(yt.toLowerCase()) < 0 ? yt : yt.toLowerCase();
|
|
@@ -3094,7 +3094,7 @@ var cs = (e) => e.replace(/\./g, "\\."), Jn = (e) => e.map(String).map(cs).join(
|
|
|
3094
3094
|
return t.push(o), t;
|
|
3095
3095
|
};
|
|
3096
3096
|
L();
|
|
3097
|
-
function
|
|
3097
|
+
function Be(e, t, n, o) {
|
|
3098
3098
|
return {
|
|
3099
3099
|
isApplicable: e,
|
|
3100
3100
|
annotation: t,
|
|
@@ -3103,11 +3103,11 @@ function Ue(e, t, n, o) {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
3105
|
var ds = [
|
|
3106
|
-
|
|
3106
|
+
Be(is, "undefined", () => null, () => {
|
|
3107
3107
|
}),
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3108
|
+
Be(Kd, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
3109
|
+
Be(jd, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
3110
|
+
Be(qd, "Error", (e, t) => {
|
|
3111
3111
|
const n = {
|
|
3112
3112
|
name: e.name,
|
|
3113
3113
|
message: e.message
|
|
@@ -3121,11 +3121,11 @@ var ds = [
|
|
|
3121
3121
|
n[o] = e[o];
|
|
3122
3122
|
}), n;
|
|
3123
3123
|
}),
|
|
3124
|
-
|
|
3124
|
+
Be(zd, "regexp", (e) => "" + e, (e) => {
|
|
3125
3125
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
3126
3126
|
return new RegExp(t, n);
|
|
3127
3127
|
}),
|
|
3128
|
-
|
|
3128
|
+
Be(
|
|
3129
3129
|
Zt,
|
|
3130
3130
|
"set",
|
|
3131
3131
|
// (sets only exist in es6+)
|
|
@@ -3133,10 +3133,10 @@ var ds = [
|
|
|
3133
3133
|
(e) => [...e.values()],
|
|
3134
3134
|
(e) => new Set(e)
|
|
3135
3135
|
),
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3136
|
+
Be(Xt, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
3137
|
+
Be((e) => ql(e) || Yd(e), "number", (e) => ql(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
3138
|
+
Be((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
3139
|
+
Be(Gd, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
3140
3140
|
];
|
|
3141
3141
|
function Pn(e, t, n, o) {
|
|
3142
3142
|
return {
|
|
@@ -3554,10 +3554,10 @@ const Qt = (e) => qt = e, ws = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
3554
3554
|
function ft(e) {
|
|
3555
3555
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
3556
3556
|
}
|
|
3557
|
-
var
|
|
3557
|
+
var ze;
|
|
3558
3558
|
(function(e) {
|
|
3559
3559
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
3560
|
-
})(
|
|
3560
|
+
})(ze || (ze = {}));
|
|
3561
3561
|
const Ze = typeof window < "u", aa = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
3562
3562
|
function rp(e, { autoBom: t = !1 } = {}) {
|
|
3563
3563
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
@@ -3797,11 +3797,11 @@ function vp(e) {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
function yp(e) {
|
|
3799
3799
|
switch (e) {
|
|
3800
|
-
case
|
|
3800
|
+
case ze.direct:
|
|
3801
3801
|
return "mutation";
|
|
3802
|
-
case
|
|
3802
|
+
case ze.patchFunction:
|
|
3803
3803
|
return "$patch";
|
|
3804
|
-
case
|
|
3804
|
+
case ze.patchObject:
|
|
3805
3805
|
return "$patch";
|
|
3806
3806
|
default:
|
|
3807
3807
|
return "unknown";
|
|
@@ -4039,7 +4039,7 @@ function kp(e, t) {
|
|
|
4039
4039
|
data: bp({ store: Re(t.$id) }, vp(a)),
|
|
4040
4040
|
groupId: Qe
|
|
4041
4041
|
};
|
|
4042
|
-
r ===
|
|
4042
|
+
r === ze.patchFunction ? u.subtitle = "⤵️" : r === ze.patchObject ? u.subtitle = "🧩" : a && !Array.isArray(a) && (u.subtitle = a.type), a && (u.data["rawEvent(s)"] = {
|
|
4043
4043
|
_custom: {
|
|
4044
4044
|
display: "DebuggerEvent",
|
|
4045
4045
|
type: "object",
|
|
@@ -4207,11 +4207,11 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4207
4207
|
function E(A) {
|
|
4208
4208
|
let R;
|
|
4209
4209
|
u = c = !1, process.env.NODE_ENV !== "production" && (g = []), typeof A == "function" ? (A(o.state.value[e]), R = {
|
|
4210
|
-
type:
|
|
4210
|
+
type: ze.patchFunction,
|
|
4211
4211
|
storeId: e,
|
|
4212
4212
|
events: g
|
|
4213
4213
|
}) : (_o(o.state.value[e], A), R = {
|
|
4214
|
-
type:
|
|
4214
|
+
type: ze.patchObject,
|
|
4215
4215
|
payload: A,
|
|
4216
4216
|
storeId: e,
|
|
4217
4217
|
events: g
|
|
@@ -4279,7 +4279,7 @@ function go(e, t, n = {}, o, l, s) {
|
|
|
4279
4279
|
const B = ra(p, A, R.detached, () => q()), q = a.run(() => X(() => o.state.value[e], (J) => {
|
|
4280
4280
|
(R.flush === "sync" ? c : u) && A({
|
|
4281
4281
|
storeId: e,
|
|
4282
|
-
type:
|
|
4282
|
+
type: ze.direct,
|
|
4283
4283
|
events: g
|
|
4284
4284
|
}, J);
|
|
4285
4285
|
}, $e({}, i, R)));
|
|
@@ -4645,7 +4645,7 @@ function Up() {
|
|
|
4645
4645
|
const r = n(a);
|
|
4646
4646
|
let i = t(r);
|
|
4647
4647
|
const u = a.token || "default";
|
|
4648
|
-
i && (delete i.resolvers[u],
|
|
4648
|
+
i && (delete i.resolvers[u], He(i.resolvers) && o(r));
|
|
4649
4649
|
}
|
|
4650
4650
|
return {
|
|
4651
4651
|
container: e,
|
|
@@ -4682,7 +4682,7 @@ function Lp(e) {
|
|
|
4682
4682
|
onDisconnected: () => o.value = "CONNECTING",
|
|
4683
4683
|
onConnected: () => o.value = "CONNECTED",
|
|
4684
4684
|
autoReconnect: {
|
|
4685
|
-
retries:
|
|
4685
|
+
retries: 10,
|
|
4686
4686
|
delay: 1e3,
|
|
4687
4687
|
onFailed: () => o.value = "DISCONNECTED"
|
|
4688
4688
|
},
|
|
@@ -5996,10 +5996,10 @@ const er = (e) => {
|
|
|
5996
5996
|
);
|
|
5997
5997
|
}
|
|
5998
5998
|
$ = $ || "text";
|
|
5999
|
-
let
|
|
5999
|
+
let Ue = await p[N.findKey(p, $) || "text"](ae, d);
|
|
6000
6000
|
return !oe && J && J(), await new Promise((pe, _e) => {
|
|
6001
6001
|
Zs(pe, _e, {
|
|
6002
|
-
data:
|
|
6002
|
+
data: Ue,
|
|
6003
6003
|
headers: Ce.from(ae.headers),
|
|
6004
6004
|
status: ae.status,
|
|
6005
6005
|
statusText: ae.statusText,
|
|
@@ -6156,7 +6156,7 @@ function mm(e, t, n) {
|
|
|
6156
6156
|
const wn = {
|
|
6157
6157
|
assertOptions: mm,
|
|
6158
6158
|
validators: Mn
|
|
6159
|
-
},
|
|
6159
|
+
}, Le = wn.validators;
|
|
6160
6160
|
let dt = class {
|
|
6161
6161
|
constructor(t) {
|
|
6162
6162
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -6193,17 +6193,17 @@ let dt = class {
|
|
|
6193
6193
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = mt(this.defaults, n);
|
|
6194
6194
|
const { transitional: o, paramsSerializer: l, headers: s } = n;
|
|
6195
6195
|
o !== void 0 && wn.assertOptions(o, {
|
|
6196
|
-
silentJSONParsing:
|
|
6197
|
-
forcedJSONParsing:
|
|
6198
|
-
clarifyTimeoutError:
|
|
6196
|
+
silentJSONParsing: Le.transitional(Le.boolean),
|
|
6197
|
+
forcedJSONParsing: Le.transitional(Le.boolean),
|
|
6198
|
+
clarifyTimeoutError: Le.transitional(Le.boolean)
|
|
6199
6199
|
}, !1), l != null && (N.isFunction(l) ? n.paramsSerializer = {
|
|
6200
6200
|
serialize: l
|
|
6201
6201
|
} : wn.assertOptions(l, {
|
|
6202
|
-
encode:
|
|
6203
|
-
serialize:
|
|
6202
|
+
encode: Le.function,
|
|
6203
|
+
serialize: Le.function
|
|
6204
6204
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), wn.assertOptions(n, {
|
|
6205
|
-
baseUrl:
|
|
6206
|
-
withXsrfToken:
|
|
6205
|
+
baseUrl: Le.spelling("baseURL"),
|
|
6206
|
+
withXsrfToken: Le.spelling("withXSRFToken")
|
|
6207
6207
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
6208
6208
|
let a = s && N.merge(
|
|
6209
6209
|
s.common,
|
|
@@ -6942,7 +6942,7 @@ class me {
|
|
|
6942
6942
|
]
|
|
6943
6943
|
};
|
|
6944
6944
|
}
|
|
6945
|
-
class
|
|
6945
|
+
class je {
|
|
6946
6946
|
$$validator;
|
|
6947
6947
|
$db;
|
|
6948
6948
|
$entity;
|
|
@@ -7113,7 +7113,7 @@ const Aa = {
|
|
|
7113
7113
|
JSONField: { tool: "object", column_width: 80, align: "center" }
|
|
7114
7114
|
};
|
|
7115
7115
|
function Ae(e) {
|
|
7116
|
-
const t = ie(e) ? e : x(e || new
|
|
7116
|
+
const t = ie(e) ? e : x(e || new je());
|
|
7117
7117
|
function n(u) {
|
|
7118
7118
|
const c = t.value.$source || {};
|
|
7119
7119
|
t.value.enable = u, t.value.allow_download = !!c.allow_download && u, t.value.allow_insert = !!c.allow_insert && u, t.value.allow_remove = !!c.allow_remove && u, t.value.allow_upload = !!c.allow_upload && u, t.value.allow_edit = !!c.allow_edit && u, t.value.allow_edit_on_form = !!c.allow_edit_on_form && t.value.allow_edit, t.value.allow_edit_on_cell = !!c.allow_edit_on_cell && t.value.allow_edit, t.value.allow_edit_on_sort = !!c.allow_edit_on_sort && t.value.allow_edit;
|
|
@@ -7179,7 +7179,7 @@ function Ae(e) {
|
|
|
7179
7179
|
column_width: T,
|
|
7180
7180
|
align: D
|
|
7181
7181
|
} = y || Aa[_];
|
|
7182
|
-
E =
|
|
7182
|
+
E = He(g) ? E : "set";
|
|
7183
7183
|
const C = {
|
|
7184
7184
|
id: gt(),
|
|
7185
7185
|
prop: c,
|
|
@@ -7253,7 +7253,7 @@ function he(e, t) {
|
|
|
7253
7253
|
});
|
|
7254
7254
|
}),
|
|
7255
7255
|
meta_view: (c) => new Promise((p, _) => {
|
|
7256
|
-
a("meta_view", { code: c || o.value }).then((g) => p(new
|
|
7256
|
+
a("meta_view", { code: c || o.value }).then((g) => p(new je(g)));
|
|
7257
7257
|
})
|
|
7258
7258
|
}, loading: r, payload: i };
|
|
7259
7259
|
}
|
|
@@ -7503,7 +7503,7 @@ function qo(e = {}) {
|
|
|
7503
7503
|
}
|
|
7504
7504
|
const gr = ["iexact", "icontains", "istartswith", "iendswith"], hr = ["gte", "lte"], vr = ["exact", "contains", "startswith", "endswith", "gt", "lt", "isnull", "in", "range"], $m = [...gr, ...hr, ...vr];
|
|
7505
7505
|
function Ho(e, t, n) {
|
|
7506
|
-
const o = x(new
|
|
7506
|
+
const o = x(new je()), l = x(new ot()), s = x(null), a = x(r());
|
|
7507
7507
|
function r() {
|
|
7508
7508
|
return {
|
|
7509
7509
|
db: e.value.db,
|
|
@@ -7852,7 +7852,7 @@ const br = (e) => {
|
|
|
7852
7852
|
}), (l, s) => (b(), z("div", {
|
|
7853
7853
|
ref_key: "chartRef",
|
|
7854
7854
|
ref: n,
|
|
7855
|
-
style:
|
|
7855
|
+
style: qe({ width: e.width, height: e.height })
|
|
7856
7856
|
}, null, 4));
|
|
7857
7857
|
}
|
|
7858
7858
|
}), wr = [
|
|
@@ -9868,7 +9868,7 @@ const br = (e) => {
|
|
|
9868
9868
|
icon: e.icon,
|
|
9869
9869
|
border: e.border,
|
|
9870
9870
|
fixedWidth: !0,
|
|
9871
|
-
style:
|
|
9871
|
+
style: qe({ marginRight: o.value }),
|
|
9872
9872
|
flip: e.flip,
|
|
9873
9873
|
mask: e.mask,
|
|
9874
9874
|
maskId: e.maskId,
|
|
@@ -10088,7 +10088,7 @@ const br = (e) => {
|
|
|
10088
10088
|
draggable: !0,
|
|
10089
10089
|
onOpened: P[1] || (P[1] = (R) => s.value = !0),
|
|
10090
10090
|
onClose: P[2] || (P[2] = (R) => h(o)("closed")),
|
|
10091
|
-
onKeydown: P[3] || (P[3] =
|
|
10091
|
+
onKeydown: P[3] || (P[3] = Me((R) => E(), ["esc"]))
|
|
10092
10092
|
}, ko({
|
|
10093
10093
|
header: f(() => [
|
|
10094
10094
|
We((b(), k(Tm, {
|
|
@@ -10499,7 +10499,7 @@ const br = (e) => {
|
|
|
10499
10499
|
e.icon ? (b(), k(j, {
|
|
10500
10500
|
key: 0,
|
|
10501
10501
|
icon: e.icon,
|
|
10502
|
-
style:
|
|
10502
|
+
style: qe(a.value),
|
|
10503
10503
|
"fixed-width": "",
|
|
10504
10504
|
bounce: e.bounce,
|
|
10505
10505
|
shake: e.shake,
|
|
@@ -10538,7 +10538,7 @@ const br = (e) => {
|
|
|
10538
10538
|
style: { margin: "0 3px" }
|
|
10539
10539
|
}, null, 8, ["icon", "type", "disabled"])) : K("", !0),
|
|
10540
10540
|
te("span", {
|
|
10541
|
-
style:
|
|
10541
|
+
style: qe(n.value)
|
|
10542
10542
|
}, [
|
|
10543
10543
|
Q(o.$slots, "left", {}, () => [
|
|
10544
10544
|
S(M(e.left), 1)
|
|
@@ -10619,7 +10619,7 @@ const ce = ["update:modelValue", "confirm", "reload"], Hm = /* @__PURE__ */ I({
|
|
|
10619
10619
|
"show-word-limit": "",
|
|
10620
10620
|
rows: 1,
|
|
10621
10621
|
style: { width: "100%" },
|
|
10622
|
-
onKeydown: a[1] || (a[1] =
|
|
10622
|
+
onKeydown: a[1] || (a[1] = Me((i) => s.$emit("confirm"), ["enter"]))
|
|
10623
10623
|
}, null, 8, ["modelValue", "disabled", "type", "maxlength", "clearable"]);
|
|
10624
10624
|
};
|
|
10625
10625
|
}
|
|
@@ -10670,7 +10670,7 @@ const ce = ["update:modelValue", "confirm", "reload"], Hm = /* @__PURE__ */ I({
|
|
|
10670
10670
|
default: f(() => [
|
|
10671
10671
|
te("div", Km, [
|
|
10672
10672
|
te("b", {
|
|
10673
|
-
style:
|
|
10673
|
+
style: qe([{ "font-size": "12px", cursor: "pointer", "font-weight": "bolder" }, { color: l.value || "#dddddd" }]),
|
|
10674
10674
|
onClick: a
|
|
10675
10675
|
}, M(l.value || "无颜色"), 5)
|
|
10676
10676
|
])
|
|
@@ -11501,7 +11501,7 @@ const o_ = /* @__PURE__ */ I({
|
|
|
11501
11501
|
precision: s.value.precision,
|
|
11502
11502
|
"step-strictly": s.value.step_strictly,
|
|
11503
11503
|
"value-on-clear": e.field.not_null ? 0 : null,
|
|
11504
|
-
onKeydown: r[1] || (r[1] =
|
|
11504
|
+
onKeydown: r[1] || (r[1] = Me((u) => a.$emit("confirm"), ["enter"]))
|
|
11505
11505
|
}, null, 8, ["modelValue", "disabled", "clearable", "min", "max", "step", "precision", "step-strictly", "value-on-clear"]);
|
|
11506
11506
|
};
|
|
11507
11507
|
}
|
|
@@ -11534,7 +11534,7 @@ const f_ = { class: "justified full" }, m_ = {
|
|
|
11534
11534
|
return b(), z("div", f_, [
|
|
11535
11535
|
te("div", null, [
|
|
11536
11536
|
m(h(j), {
|
|
11537
|
-
style:
|
|
11537
|
+
style: qe({ color: l.value, marginRight: "7px" }),
|
|
11538
11538
|
icon: o.value,
|
|
11539
11539
|
shake: n.value
|
|
11540
11540
|
}, null, 8, ["style", "icon", "shake"]),
|
|
@@ -11677,7 +11677,7 @@ const f_ = { class: "justified full" }, m_ = {
|
|
|
11677
11677
|
}
|
|
11678
11678
|
});
|
|
11679
11679
|
function Oe() {
|
|
11680
|
-
const e = Bt(), t =
|
|
11680
|
+
const e = Bt(), t = Ne(), { post: n } = Ge();
|
|
11681
11681
|
function o() {
|
|
11682
11682
|
De.info("是否退出系统").then(() => {
|
|
11683
11683
|
e.logout(), window.location.reload();
|
|
@@ -11782,7 +11782,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
11782
11782
|
}), v_ = { class: "right" }, y_ = /* @__PURE__ */ I({
|
|
11783
11783
|
__name: "SignInForm",
|
|
11784
11784
|
setup(e, { expose: t }) {
|
|
11785
|
-
const n =
|
|
11785
|
+
const n = Ne(), o = x(), l = x({
|
|
11786
11786
|
username: "",
|
|
11787
11787
|
email: "",
|
|
11788
11788
|
password: ""
|
|
@@ -11864,7 +11864,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
11864
11864
|
host: { type: Boolean }
|
|
11865
11865
|
},
|
|
11866
11866
|
setup(e, { expose: t }) {
|
|
11867
|
-
const n =
|
|
11867
|
+
const n = Ne(), o = x({
|
|
11868
11868
|
username: "",
|
|
11869
11869
|
email: "",
|
|
11870
11870
|
password: "",
|
|
@@ -11948,7 +11948,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
11948
11948
|
}), w_ = /* @__PURE__ */ I({
|
|
11949
11949
|
__name: "LoginForm",
|
|
11950
11950
|
setup(e, { expose: t }) {
|
|
11951
|
-
const n = x(), o = x(), l =
|
|
11951
|
+
const n = x(), o = x(), l = Ne(), s = x(!0);
|
|
11952
11952
|
t({ getData: () => n.value?.getData() || o.value?.getData() });
|
|
11953
11953
|
const r = [
|
|
11954
11954
|
{ label: "登录系统", value: !0 },
|
|
@@ -12373,7 +12373,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12373
12373
|
"onUpdate:modelValue": r[0] || (r[0] = (g) => l.value.old_password = g),
|
|
12374
12374
|
type: "password",
|
|
12375
12375
|
"show-password": "",
|
|
12376
|
-
onKeydown: r[1] || (r[1] =
|
|
12376
|
+
onKeydown: r[1] || (r[1] = Me((g) => o("confirm"), ["enter"]))
|
|
12377
12377
|
}, null, 8, ["modelValue"])
|
|
12378
12378
|
]),
|
|
12379
12379
|
_: 1
|
|
@@ -12384,7 +12384,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12384
12384
|
modelValue: l.value.new_password,
|
|
12385
12385
|
"onUpdate:modelValue": r[2] || (r[2] = (g) => l.value.new_password = g),
|
|
12386
12386
|
type: "password",
|
|
12387
|
-
onKeydown: r[3] || (r[3] =
|
|
12387
|
+
onKeydown: r[3] || (r[3] = Me((g) => o("confirm"), ["enter"])),
|
|
12388
12388
|
"show-password": ""
|
|
12389
12389
|
}, null, 8, ["modelValue"])
|
|
12390
12390
|
]),
|
|
@@ -12396,7 +12396,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12396
12396
|
modelValue: l.value.check_password,
|
|
12397
12397
|
"onUpdate:modelValue": r[4] || (r[4] = (g) => l.value.check_password = g),
|
|
12398
12398
|
type: "password",
|
|
12399
|
-
onKeydown: r[5] || (r[5] =
|
|
12399
|
+
onKeydown: r[5] || (r[5] = Me((g) => o("confirm"), ["enter"])),
|
|
12400
12400
|
"show-password": ""
|
|
12401
12401
|
}, null, 8, ["modelValue"])
|
|
12402
12402
|
]),
|
|
@@ -12550,7 +12550,7 @@ const h_ = /* @__PURE__ */ I({
|
|
|
12550
12550
|
}),
|
|
12551
12551
|
te("div", {
|
|
12552
12552
|
class: "m-wrap-body",
|
|
12553
|
-
style:
|
|
12553
|
+
style: qe([{ overflow: "auto", "scrollbar-width": "none" }, { height: e.height || "auto" }])
|
|
12554
12554
|
}, [
|
|
12555
12555
|
Q(v.$slots, "default", { width: h(r) })
|
|
12556
12556
|
], 4),
|
|
@@ -13221,7 +13221,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13221
13221
|
border: "",
|
|
13222
13222
|
size: "large",
|
|
13223
13223
|
style: { width: "100%" },
|
|
13224
|
-
onKeyup:
|
|
13224
|
+
onKeyup: Me(_, ["enter"])
|
|
13225
13225
|
}, {
|
|
13226
13226
|
default: f(() => [
|
|
13227
13227
|
S(" " + M(i.value.value ? "仅空值" : "仅非空值"), 1)
|
|
@@ -13245,7 +13245,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13245
13245
|
m(P, {
|
|
13246
13246
|
modelValue: i.value.value.from,
|
|
13247
13247
|
"onUpdate:modelValue": d[4] || (d[4] = (A) => i.value.value.from = A),
|
|
13248
|
-
onKeyup:
|
|
13248
|
+
onKeyup: Me(_, ["enter"])
|
|
13249
13249
|
}, null, 8, ["modelValue"])
|
|
13250
13250
|
]),
|
|
13251
13251
|
_: 1
|
|
@@ -13264,7 +13264,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13264
13264
|
m(P, {
|
|
13265
13265
|
modelValue: i.value.value.to,
|
|
13266
13266
|
"onUpdate:modelValue": d[5] || (d[5] = (A) => i.value.value.to = A),
|
|
13267
|
-
onKeyup:
|
|
13267
|
+
onKeyup: Me(_, ["enter"])
|
|
13268
13268
|
}, null, 8, ["modelValue"])
|
|
13269
13269
|
]),
|
|
13270
13270
|
_: 1
|
|
@@ -13276,7 +13276,7 @@ const Or = /* @__PURE__ */ I({
|
|
|
13276
13276
|
size: "large",
|
|
13277
13277
|
modelValue: i.value.value,
|
|
13278
13278
|
"onUpdate:modelValue": d[9] || (d[9] = (A) => i.value.value = A),
|
|
13279
|
-
onKeyup:
|
|
13279
|
+
onKeyup: Me(_, ["enter"])
|
|
13280
13280
|
}, {
|
|
13281
13281
|
prefix: f(() => [
|
|
13282
13282
|
te("div", U_, [
|
|
@@ -13975,7 +13975,7 @@ function W_(e) {
|
|
|
13975
13975
|
}), T;
|
|
13976
13976
|
}), i = O(() => {
|
|
13977
13977
|
const y = Object.fromEntries(r.value.map((E) => [E.prop, E]));
|
|
13978
|
-
return new
|
|
13978
|
+
return new je({ $fields: y, $$validator: t.value.validator });
|
|
13979
13979
|
}), { parseRow: u } = Ae(i), c = x([]), p = x([]), _ = O(() => !!c.value.length);
|
|
13980
13980
|
function g(y) {
|
|
13981
13981
|
c.value = y, p.value = c.value.map((E, T) => u(E, T));
|
|
@@ -14210,7 +14210,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
14210
14210
|
const u = i.map((c, p) => {
|
|
14211
14211
|
const _ = o.fields.map((g, d) => {
|
|
14212
14212
|
let v = c[d];
|
|
14213
|
-
return v = Dn(v) ? v :
|
|
14213
|
+
return v = Dn(v) ? v : He(v) ? null : v, [g.prop, v];
|
|
14214
14214
|
});
|
|
14215
14215
|
return Object.fromEntries(_);
|
|
14216
14216
|
});
|
|
@@ -15012,7 +15012,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15012
15012
|
}), o = O(() => {
|
|
15013
15013
|
const a = t.field.prop, r = t.row.id;
|
|
15014
15014
|
return (t.frame[r]?.cells || {})[a] || {};
|
|
15015
|
-
}), l = O(() =>
|
|
15015
|
+
}), l = O(() => He(s.value) ? "info" : "primary"), s = O(() => t.row[t.field.prop]);
|
|
15016
15016
|
return (a, r) => {
|
|
15017
15017
|
const i = w("el-text"), u = w("el-tooltip");
|
|
15018
15018
|
return b(), z(H, null, [
|
|
@@ -15058,7 +15058,7 @@ const G_ = /* @__PURE__ */ I({
|
|
|
15058
15058
|
], 64)) : (b(), z(H, { key: 6 }, [
|
|
15059
15059
|
te("span", {
|
|
15060
15060
|
class: Tt(e.field.domain === "Custom" ? "custom-cell" : "field-cell"),
|
|
15061
|
-
style:
|
|
15061
|
+
style: qe({ color: e.field.cell_color })
|
|
15062
15062
|
}, M(o.value.content), 7),
|
|
15063
15063
|
n.value ? (b(), z("span", mg, M(n.value), 1)) : K("", !0)
|
|
15064
15064
|
], 64)),
|
|
@@ -15740,9 +15740,9 @@ function kg(e, t) {
|
|
|
15740
15740
|
e.value.rest.save_many([B]);
|
|
15741
15741
|
} else {
|
|
15742
15742
|
const B = Ku(e.value.mapping, (G) => G.sort), q = V.parent.childNodes.map((G) => G.data), J = q.map((G) => G.sort).sort((G, ae) => ae - G), de = U.pid, ne = q.map((G, ae) => {
|
|
15743
|
-
const oe = G.id,
|
|
15743
|
+
const oe = G.id, Ue = J[ae], pe = {
|
|
15744
15744
|
id: oe,
|
|
15745
|
-
sort:
|
|
15745
|
+
sort: Ue
|
|
15746
15746
|
};
|
|
15747
15747
|
return oe === A && (pe.pid = de), pe;
|
|
15748
15748
|
}).filter((G) => {
|
|
@@ -16332,40 +16332,41 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16332
16332
|
__name: "ProfileDialog",
|
|
16333
16333
|
emits: ["reload"],
|
|
16334
16334
|
setup(e, { expose: t, emit: n }) {
|
|
16335
|
-
const o = n, l = x(), { userStore: s } = Oe(), a =
|
|
16335
|
+
const o = n, l = x(), { userStore: s } = Oe(), a = Ne(), r = x(), i = O(() => ({
|
|
16336
16336
|
auth: !0,
|
|
16337
16337
|
entity: s.user_entity || ""
|
|
16338
|
-
})), { manager:
|
|
16339
|
-
const
|
|
16340
|
-
s.user_entity &&
|
|
16341
|
-
|
|
16342
|
-
const
|
|
16343
|
-
l.value?.open({ view:
|
|
16338
|
+
})), { manager: u } = he(i), c = (_) => {
|
|
16339
|
+
const g = _ || s.account;
|
|
16340
|
+
s.user_entity && g ? u.meta_view("user").then((d) => {
|
|
16341
|
+
u.find(new Te({ account_id: g })).then((v) => {
|
|
16342
|
+
const y = v[0] || {};
|
|
16343
|
+
l.value?.open({ view: d, user: y, account_id: g });
|
|
16344
16344
|
});
|
|
16345
|
-
}).catch((
|
|
16346
|
-
console.log(
|
|
16345
|
+
}).catch((d) => {
|
|
16346
|
+
console.log(d);
|
|
16347
16347
|
}) : Z.warning("获取用户信息失败");
|
|
16348
16348
|
};
|
|
16349
|
-
function
|
|
16350
|
-
const { account_id:
|
|
16351
|
-
|
|
16352
|
-
o("reload"), Z.success("用户信息修改成功"),
|
|
16353
|
-
})),
|
|
16349
|
+
function p(_, g) {
|
|
16350
|
+
const { account_id: d } = _, y = (r.value?.getData() || [])[0];
|
|
16351
|
+
He(y) || (y.account_id = d, u.save_one(y).then((E) => {
|
|
16352
|
+
o("reload"), Z.success("用户信息修改成功"), g();
|
|
16353
|
+
})), g(!1);
|
|
16354
16354
|
}
|
|
16355
|
-
return t({ open:
|
|
16355
|
+
return t({ open: c }), (_, g) => (b(), k(h(le), {
|
|
16356
16356
|
ref_key: "dialog",
|
|
16357
16357
|
ref: l,
|
|
16358
16358
|
title: "个人信息",
|
|
16359
|
-
confirm:
|
|
16359
|
+
confirm: p
|
|
16360
16360
|
}, {
|
|
16361
|
-
default: f(({ data: { user:
|
|
16361
|
+
default: f(({ data: { user: d, view: v } }) => [
|
|
16362
16362
|
(b(), k(h(Hn), {
|
|
16363
16363
|
ref_key: "form",
|
|
16364
|
-
ref:
|
|
16365
|
-
view:
|
|
16366
|
-
item:
|
|
16367
|
-
key:
|
|
16368
|
-
|
|
16364
|
+
ref: r,
|
|
16365
|
+
view: v,
|
|
16366
|
+
item: d,
|
|
16367
|
+
key: d.id,
|
|
16368
|
+
disabled: h(a).signInOnly
|
|
16369
|
+
}, null, 8, ["view", "item", "disabled"]))
|
|
16369
16370
|
]),
|
|
16370
16371
|
_: 1
|
|
16371
16372
|
}, 512));
|
|
@@ -16610,7 +16611,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16610
16611
|
}, Pg = /* @__PURE__ */ I({
|
|
16611
16612
|
__name: "MAdmin",
|
|
16612
16613
|
setup(e) {
|
|
16613
|
-
const { frame: t } = Dr(), n = O(() => `${t.value.body}px`), { options: o, mapping: l } = p_(), s =
|
|
16614
|
+
const { frame: t } = Dr(), n = O(() => `${t.value.body}px`), { options: o, mapping: l } = p_(), s = Ne();
|
|
16614
16615
|
return (a, r) => {
|
|
16615
16616
|
const i = w("el-divider"), u = w("el-text"), c = w("el-space"), p = w("el-header"), _ = w("router-view"), g = w("el-main"), d = w("el-link"), v = w("el-footer"), y = w("el-container");
|
|
16616
16617
|
return b(), k(y, { class: "container" }, {
|
|
@@ -16667,7 +16668,7 @@ const Eg = /* @__PURE__ */ I({
|
|
|
16667
16668
|
}, 8, ["height"]),
|
|
16668
16669
|
m(g, {
|
|
16669
16670
|
class: "main",
|
|
16670
|
-
style:
|
|
16671
|
+
style: qe({ height: n.value })
|
|
16671
16672
|
}, {
|
|
16672
16673
|
default: f(() => [
|
|
16673
16674
|
m(_)
|
|
@@ -17370,7 +17371,7 @@ const Vn = /* @__PURE__ */ I({
|
|
|
17370
17371
|
if (g.value)
|
|
17371
17372
|
return Z.warning("注意验证信息"), null;
|
|
17372
17373
|
const v = c.value;
|
|
17373
|
-
return !l.insert &&
|
|
17374
|
+
return !l.insert && He(v) ? [] : (l.keys || [l.item.id]).map((E) => ({ id: E, saved: !0, ...v }));
|
|
17374
17375
|
}
|
|
17375
17376
|
return t({ getData: d }), (v, y) => {
|
|
17376
17377
|
const E = w("el-form-item"), T = w("el-col"), D = w("el-row"), C = w("el-form");
|
|
@@ -17447,7 +17448,7 @@ const Vn = /* @__PURE__ */ I({
|
|
|
17447
17448
|
}
|
|
17448
17449
|
});
|
|
17449
17450
|
function jg(e) {
|
|
17450
|
-
const t = x(et(e.item)), n = x(e.codes.length ? e.codes[0].value : "default"), o = x(new
|
|
17451
|
+
const t = x(et(e.item)), n = x(e.codes.length ? e.codes[0].value : "default"), o = x(new je()), { manager: l } = he({
|
|
17451
17452
|
entity: e.entity
|
|
17452
17453
|
});
|
|
17453
17454
|
return X(n, () => {
|
|
@@ -17487,7 +17488,7 @@ const qg = {
|
|
|
17487
17488
|
const v = Sn(a.value[d]), y = Sn(o.item[d]);
|
|
17488
17489
|
return !Ie(y, v);
|
|
17489
17490
|
}), g = ve(a.value, _);
|
|
17490
|
-
return o.item.id != null && !
|
|
17491
|
+
return o.item.id != null && !He(g) && (g.id = o.item.id), g;
|
|
17491
17492
|
});
|
|
17492
17493
|
function p() {
|
|
17493
17494
|
return i.value ? null : c.value;
|
|
@@ -18271,7 +18272,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18271
18272
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
|
|
18272
18273
|
options: n.value,
|
|
18273
18274
|
disabled: e.disabled,
|
|
18274
|
-
style:
|
|
18275
|
+
style: qe({ width: e.width }),
|
|
18275
18276
|
props: {
|
|
18276
18277
|
emitPath: !1
|
|
18277
18278
|
},
|
|
@@ -18348,7 +18349,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18348
18349
|
field: {}
|
|
18349
18350
|
},
|
|
18350
18351
|
setup(e, { expose: t }) {
|
|
18351
|
-
const n = e, o = x(n.field.refer), l = x(new
|
|
18352
|
+
const n = e, o = x(n.field.refer), l = x(new je()), { condition: s } = dr(o), a = x(new ot()), { options: r } = Nt(a), { manager: i } = he(O(() => ({
|
|
18352
18353
|
db: o.value.db,
|
|
18353
18354
|
entity: o.value.entity || ""
|
|
18354
18355
|
})));
|
|
@@ -18363,7 +18364,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18363
18364
|
const D = Object.assign({ isLeaf: !1 }, s.value.includes), C = [new Te(D)];
|
|
18364
18365
|
i.search({ type: "tree", root: 0 }, C).then((V) => a.value = V);
|
|
18365
18366
|
}
|
|
18366
|
-
}) : l.value = new
|
|
18367
|
+
}) : l.value = new je();
|
|
18367
18368
|
}, { immediate: !0, deep: !0 }), t({ getData: () => ({
|
|
18368
18369
|
id: n.field.id,
|
|
18369
18370
|
refer: o.value
|
|
@@ -18638,7 +18639,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
18638
18639
|
});
|
|
18639
18640
|
function i(u, c) {
|
|
18640
18641
|
const p = s.value?.getData();
|
|
18641
|
-
p == null ? (Z.warning("请查看验证信息"), c(!1)) :
|
|
18642
|
+
p == null ? (Z.warning("请查看验证信息"), c(!1)) : He(p) ? (Z.info("数据无变化"), c(!1)) : (r.save_many([p]), c());
|
|
18642
18643
|
}
|
|
18643
18644
|
return t({ open: a }), (u, c) => (b(), k(h(le), {
|
|
18644
18645
|
ref_key: "dialog",
|
|
@@ -19169,7 +19170,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19169
19170
|
});
|
|
19170
19171
|
function r(u, c) {
|
|
19171
19172
|
const p = s.value?.getData();
|
|
19172
|
-
|
|
19173
|
+
He(p) ? (Z.info("数据未修改"), c()) : a.save_one(p).then(() => {
|
|
19173
19174
|
o("reload"), c();
|
|
19174
19175
|
});
|
|
19175
19176
|
}
|
|
@@ -19272,7 +19273,7 @@ const Yg = /* @__PURE__ */ I({
|
|
|
19272
19273
|
] : []), p = O(() => ({
|
|
19273
19274
|
db: r.value.db,
|
|
19274
19275
|
entity: r.value.entity || ""
|
|
19275
|
-
})), { manager: _ } = he(p), g = x(new
|
|
19276
|
+
})), { manager: _ } = he(p), g = x(new je()), d = [
|
|
19276
19277
|
{
|
|
19277
19278
|
label: "字段",
|
|
19278
19279
|
icon: "table-cells",
|
|
@@ -19635,7 +19636,7 @@ function hh(e) {
|
|
|
19635
19636
|
return a.forEach((r) => {
|
|
19636
19637
|
const i = t(r);
|
|
19637
19638
|
s[i.prop] = i;
|
|
19638
|
-
}), new
|
|
19639
|
+
}), new je({ $fields: s, $$validator: e.value.validator }, e.value.admin);
|
|
19639
19640
|
}
|
|
19640
19641
|
return { view: o, init: l };
|
|
19641
19642
|
}
|
|
@@ -19960,7 +19961,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
19960
19961
|
{ label: "分级", value: !0 },
|
|
19961
19962
|
{ label: "平铺", value: !1 }
|
|
19962
19963
|
], l = x(r(t.node)), s = O(() => {
|
|
19963
|
-
if (
|
|
19964
|
+
if (He(t.mapping))
|
|
19964
19965
|
return [];
|
|
19965
19966
|
let c = t.mapping[l.value];
|
|
19966
19967
|
const p = [c];
|
|
@@ -20355,7 +20356,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20355
20356
|
fontSize: 30,
|
|
20356
20357
|
fontWeight: "bolder",
|
|
20357
20358
|
color: "rgba(0,0,0,.05)"
|
|
20358
|
-
}, a = Bt(), r =
|
|
20359
|
+
}, a = Bt(), r = Ne(), i = O(() => {
|
|
20359
20360
|
const c = [], p = r.title;
|
|
20360
20361
|
p && c.push(p);
|
|
20361
20362
|
const _ = a.name || a.username;
|
|
@@ -20529,7 +20530,7 @@ const bh = /* @__PURE__ */ I({
|
|
|
20529
20530
|
}));
|
|
20530
20531
|
};
|
|
20531
20532
|
}
|
|
20532
|
-
}),
|
|
20533
|
+
}), Ne = /* @__PURE__ */ Ds("core", {
|
|
20533
20534
|
state: () => ({
|
|
20534
20535
|
baseURL: "",
|
|
20535
20536
|
title: "",
|
|
@@ -21055,7 +21056,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21055
21056
|
__name: "CreateAccountDialog",
|
|
21056
21057
|
emits: ["closed"],
|
|
21057
21058
|
setup(e, { expose: t, emit: n }) {
|
|
21058
|
-
const o = x(), l = n, s =
|
|
21059
|
+
const o = x(), l = n, s = Ne();
|
|
21059
21060
|
function a() {
|
|
21060
21061
|
o.value?.open({
|
|
21061
21062
|
username: "",
|
|
@@ -21741,7 +21742,7 @@ const Rh = /* @__PURE__ */ I({
|
|
|
21741
21742
|
];
|
|
21742
21743
|
function Jh(e, t) {
|
|
21743
21744
|
const n = xp();
|
|
21744
|
-
n.use(Np), e.use(n),
|
|
21745
|
+
n.use(Np), e.use(n), Ne().init(t);
|
|
21745
21746
|
const l = Xh(t);
|
|
21746
21747
|
e.use(l);
|
|
21747
21748
|
}
|
|
@@ -21752,7 +21753,7 @@ function Xh(e) {
|
|
|
21752
21753
|
});
|
|
21753
21754
|
const n = Qu({ history: ec(), routes: t });
|
|
21754
21755
|
return n.beforeEach((o, l, s) => {
|
|
21755
|
-
const a = Bt(), r =
|
|
21756
|
+
const a = Bt(), r = Ne(), i = ["/", "/403", "/404", ...a.permissions];
|
|
21756
21757
|
a.admin && i.push("/morghulis_system"), document.title = `${String(o.name)} - ${r.title}`, a.isLogin, i.includes(o.path) || o.path === "/" || o.path === "/404" ? s() : s("/403");
|
|
21757
21758
|
}), n;
|
|
21758
21759
|
}
|
|
@@ -21789,7 +21790,7 @@ const Zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21789
21790
|
MetaFormat: Fe,
|
|
21790
21791
|
MetaPopover: Qo,
|
|
21791
21792
|
MetaRefer: ur,
|
|
21792
|
-
MetaView:
|
|
21793
|
+
MetaView: je,
|
|
21793
21794
|
Model: ot,
|
|
21794
21795
|
PTable: Mt,
|
|
21795
21796
|
ReferForm: Zo,
|
|
@@ -21811,7 +21812,7 @@ const Zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21811
21812
|
useMetaField: Em,
|
|
21812
21813
|
useMetaRefer: dr,
|
|
21813
21814
|
useMetaView: Ae,
|
|
21814
|
-
useOptionStore:
|
|
21815
|
+
useOptionStore: Ne,
|
|
21815
21816
|
usePagination: Ko,
|
|
21816
21817
|
usePaster: yr,
|
|
21817
21818
|
useReadonlyTableModel: pr,
|
|
@@ -21859,7 +21860,7 @@ export {
|
|
|
21859
21860
|
Fe as MetaFormat,
|
|
21860
21861
|
Qo as MetaPopover,
|
|
21861
21862
|
ur as MetaRefer,
|
|
21862
|
-
|
|
21863
|
+
je as MetaView,
|
|
21863
21864
|
ot as Model,
|
|
21864
21865
|
Mt as PTable,
|
|
21865
21866
|
Zo as ReferForm,
|
|
@@ -21882,7 +21883,7 @@ export {
|
|
|
21882
21883
|
Em as useMetaField,
|
|
21883
21884
|
dr as useMetaRefer,
|
|
21884
21885
|
Ae as useMetaView,
|
|
21885
|
-
|
|
21886
|
+
Ne as useOptionStore,
|
|
21886
21887
|
Ko as usePagination,
|
|
21887
21888
|
yr as usePaster,
|
|
21888
21889
|
pr as useReadonlyTableModel,
|