@skyfox2000/webui 1.6.2 → 1.6.4
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/lib/assets/modules/{baseLayout-D6mTs3zS.js → baseLayout-9Hv2xP0D.js} +3 -3
- package/lib/assets/modules/{file-upload-B74s5Vtb.js → file-upload-BEB7Ig2N.js} +1 -1
- package/lib/assets/modules/{index-lmz2beMc.js → index-JAj15je-.js} +2 -2
- package/lib/assets/modules/{index-CXDKjQwi.js → index-ZDMvpXj5.js} +2 -2
- package/lib/assets/modules/{index-DP43BJ_M.js → index-kEckFtaA.js} +1 -1
- package/lib/assets/modules/{menuTabs-DGAhbfbK.js → menuTabs-CSJ0yT7g.js} +145 -142
- package/lib/assets/modules/{toolIcon-DTZ86PSe.js → toolIcon-Dcbc73H6.js} +1 -1
- package/lib/assets/modules/{upload-template-2YQlEeTh.js → upload-template-BxSAxxvr.js} +294 -274
- package/lib/assets/modules/{uploadList-DlwK6xXN.js → uploadList-DP03hr0k.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/settingInfo.d.ts +3 -0
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/components/layout/header/index.vue +4 -4
- package/src/locales/en-US.json +5 -0
- package/src/stores/settingInfo.ts +27 -5
- package/src/stores/userInfo.ts +13 -11
|
@@ -2,19 +2,19 @@ var pr = Object.defineProperty;
|
|
|
2
2
|
var _r = (e, t, a) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ne = (e, t, a) => _r(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as wa from "vue";
|
|
5
|
-
import { effectScope as gr, ref as w, shallowRef as
|
|
5
|
+
import { effectScope as gr, ref as w, shallowRef as ke, computed as tt, watch as B, isRef as hr, defineComponent as De, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as Er, nextTick as vr, provide as ka, toRaw as ds, reactive as br, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as xe, createTextVNode as ta, toDisplayString as je, renderList as nn, normalizeClass as ms, createElementVNode as Ir } from "vue";
|
|
6
6
|
import { Switch as yr, AutoComplete as Nr, Input as Sr, CheckboxGroup as Tr, Checkbox as Lr, RadioGroup as Or, Radio as Ar, Select as Pr, SelectOption as Rr } from "ant-design-vue";
|
|
7
7
|
import { createPinia as wr, defineStore as Dt } from "pinia";
|
|
8
8
|
import kr from "pinia-plugin-persistedstate";
|
|
9
|
-
import { EnvConfig as
|
|
9
|
+
import { EnvConfig as Fe, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as Dr, combineParams as Ct } from "@skyfox2000/microbase";
|
|
10
10
|
import { httpPost as qe, ResStatus as ie, setToken as Wt, httpGet as ps, fieldMapping as Cr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Ln } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
|
|
13
13
|
import aa from "async-validator";
|
|
14
14
|
import "dayjs";
|
|
15
15
|
import "vue-draggable-next";
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const xr = wr();
|
|
17
|
+
xr.use(kr);
|
|
18
18
|
var Re = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(Re || {});
|
|
19
19
|
/*!
|
|
20
20
|
* shared v11.2.7
|
|
@@ -39,9 +39,9 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
39
39
|
e.measure(t, a, n), e.clearMarks(a), e.clearMarks(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const Ur = /\{([0-9a-zA-Z]+)\}/g;
|
|
43
43
|
function na(e, ...t) {
|
|
44
|
-
return t.length === 1 &&
|
|
44
|
+
return t.length === 1 && x(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ur, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
45
45
|
}
|
|
46
46
|
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) => rn(e) === "[object Date]", lt = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Wr = Object.create, W = (e = null) => Wr(e);
|
|
47
47
|
let An;
|
|
@@ -66,7 +66,7 @@ const Kr = Object.prototype.hasOwnProperty;
|
|
|
66
66
|
function be(e, t) {
|
|
67
67
|
return Kr.call(e, t);
|
|
68
68
|
}
|
|
69
|
-
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string",
|
|
69
|
+
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", U = (e) => typeof e == "boolean", x = (e) => e !== null && typeof e == "object", Yr = (e) => x(e) && G(e.then) && G(e.catch), _s = Object.prototype.toString, rn = (e) => _s.call(e), F = (e) => rn(e) === "[object Object]", Br = (e) => e == null ? "" : J(e) || F(e) && e.toString === _s ? JSON.stringify(e, null, 2) : String(e);
|
|
70
70
|
function on(e, t = "") {
|
|
71
71
|
return e.reduce((a, n, s) => s === 0 ? a + n : a + t + n, "");
|
|
72
72
|
}
|
|
@@ -116,7 +116,7 @@ function ln() {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
const Gt = (e) => !
|
|
119
|
+
const Gt = (e) => !x(e) || J(e);
|
|
120
120
|
function jt(e, t) {
|
|
121
121
|
if (Gt(e) || Gt(t))
|
|
122
122
|
throw new Error("Invalid value");
|
|
@@ -124,7 +124,7 @@ function jt(e, t) {
|
|
|
124
124
|
for (; a.length; ) {
|
|
125
125
|
const { src: n, des: s } = a.pop();
|
|
126
126
|
Object.keys(n).forEach((r) => {
|
|
127
|
-
r !== "__proto__" && (
|
|
127
|
+
r !== "__proto__" && (x(n[r]) && !x(s[r]) && (s[r] = Array.isArray(n[r]) ? [] : W()), Gt(s[r]) || Gt(n[r]) ? s[r] = n[r] : a.push({ src: n[r], des: s[r] }));
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -1081,42 +1081,42 @@ function So() {
|
|
|
1081
1081
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1082
1082
|
}
|
|
1083
1083
|
function he(e) {
|
|
1084
|
-
return
|
|
1084
|
+
return x(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
1086
|
const gs = ["b", "body"];
|
|
1087
1087
|
function To(e) {
|
|
1088
|
-
return
|
|
1088
|
+
return Ue(e, gs);
|
|
1089
1089
|
}
|
|
1090
1090
|
const hs = ["c", "cases"];
|
|
1091
1091
|
function Lo(e) {
|
|
1092
|
-
return
|
|
1092
|
+
return Ue(e, hs, []);
|
|
1093
1093
|
}
|
|
1094
1094
|
const Es = ["s", "static"];
|
|
1095
1095
|
function Oo(e) {
|
|
1096
|
-
return
|
|
1096
|
+
return Ue(e, Es);
|
|
1097
1097
|
}
|
|
1098
1098
|
const vs = ["i", "items"];
|
|
1099
1099
|
function Ao(e) {
|
|
1100
|
-
return
|
|
1100
|
+
return Ue(e, vs, []);
|
|
1101
1101
|
}
|
|
1102
1102
|
const bs = ["t", "type"];
|
|
1103
1103
|
function un(e) {
|
|
1104
|
-
return
|
|
1104
|
+
return Ue(e, bs);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Is = ["v", "value"];
|
|
1107
1107
|
function Kt(e, t) {
|
|
1108
|
-
const a =
|
|
1108
|
+
const a = Ue(e, Is);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
1111
|
throw St(t);
|
|
1112
1112
|
}
|
|
1113
1113
|
const ys = ["m", "modifier"];
|
|
1114
1114
|
function Po(e) {
|
|
1115
|
-
return
|
|
1115
|
+
return Ue(e, ys);
|
|
1116
1116
|
}
|
|
1117
1117
|
const Ns = ["k", "key"];
|
|
1118
1118
|
function Ro(e) {
|
|
1119
|
-
const t =
|
|
1119
|
+
const t = Ue(e, Ns);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
1122
|
throw St(
|
|
@@ -1124,7 +1124,7 @@ function Ro(e) {
|
|
|
1124
1124
|
/* NodeTypes.Linked */
|
|
1125
1125
|
);
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Ue(e, t, a) {
|
|
1128
1128
|
for (let n = 0; n < t.length; n++) {
|
|
1129
1129
|
const s = t[n];
|
|
1130
1130
|
if (be(e, s) && e[s] != null)
|
|
@@ -1224,7 +1224,7 @@ function Fo(e, t = {}) {
|
|
|
1224
1224
|
// @__NO_SIDE_EFFECTS__
|
|
1225
1225
|
function Mo(e, t) {
|
|
1226
1226
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
|
|
1227
|
-
const a =
|
|
1227
|
+
const a = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1228
1228
|
process.env.NODE_ENV !== "production" && Do(e, a);
|
|
1229
1229
|
const s = (t.onCacheKey || Co)(e), r = Yt[s];
|
|
1230
1230
|
if (r)
|
|
@@ -1247,10 +1247,10 @@ function Mo(e, t) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
let Tt = null;
|
|
1250
|
-
function
|
|
1250
|
+
function xo(e) {
|
|
1251
1251
|
Tt = e;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Uo(e, t, a) {
|
|
1254
1254
|
Tt && Tt.emit("i18n:init", {
|
|
1255
1255
|
timestamp: Date.now(),
|
|
1256
1256
|
i18n: e,
|
|
@@ -1307,7 +1307,7 @@ function Mn(e) {
|
|
|
1307
1307
|
function Go(e, t, a) {
|
|
1308
1308
|
return [.../* @__PURE__ */ new Set([
|
|
1309
1309
|
a,
|
|
1310
|
-
...J(t) ? t :
|
|
1310
|
+
...J(t) ? t : x(t) ? Object.keys(t) : A(t) ? [t] : [a]
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
1313
|
function Ts(e, t, a) {
|
|
@@ -1318,15 +1318,15 @@ function Ts(e, t, a) {
|
|
|
1318
1318
|
r = [];
|
|
1319
1319
|
let o = [a];
|
|
1320
1320
|
for (; J(o); )
|
|
1321
|
-
o =
|
|
1321
|
+
o = xn(r, o, t);
|
|
1322
1322
|
const l = J(t) || !F(t) ? t : t.default ? t.default : null;
|
|
1323
|
-
o = A(l) ? [l] : l, J(o) &&
|
|
1323
|
+
o = A(l) ? [l] : l, J(o) && xn(r, o, !1), s.__localeChainCache.set(n, r);
|
|
1324
1324
|
}
|
|
1325
1325
|
return r;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function xn(e, t, a) {
|
|
1328
1328
|
let n = !0;
|
|
1329
|
-
for (let s = 0; s < t.length &&
|
|
1329
|
+
for (let s = 0; s < t.length && U(n); s++) {
|
|
1330
1330
|
const r = t[s];
|
|
1331
1331
|
A(r) && (n = Ko(e, t[s], a));
|
|
1332
1332
|
}
|
|
@@ -1616,15 +1616,15 @@ function qo(e) {
|
|
|
1616
1616
|
return t;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
const
|
|
1619
|
+
const Un = /* @__PURE__ */ new Map();
|
|
1620
1620
|
function zo(e, t) {
|
|
1621
|
-
return
|
|
1621
|
+
return x(e) ? e[t] : null;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Zo(e, t) {
|
|
1624
|
-
if (!
|
|
1624
|
+
if (!x(e))
|
|
1625
1625
|
return null;
|
|
1626
|
-
let a =
|
|
1627
|
-
if (a || (a = qo(t), a &&
|
|
1626
|
+
let a = Un.get(t);
|
|
1627
|
+
if (a || (a = qo(t), a && Un.set(t, a)), !a)
|
|
1628
1628
|
return null;
|
|
1629
1629
|
const n = a.length;
|
|
1630
1630
|
let s = e, r = 0;
|
|
@@ -1662,9 +1662,9 @@ function Qe(e, ...t) {
|
|
|
1662
1662
|
const al = "11.2.7", ra = -1, Lt = "en-US", Xt = "", Vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1663
1663
|
function nl() {
|
|
1664
1664
|
return {
|
|
1665
|
-
upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1666
|
-
lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1667
|
-
capitalize: (e, t) => t === "text" && A(e) ? Vn(e) : t === "vnode" &&
|
|
1665
|
+
upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1666
|
+
lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1667
|
+
capitalize: (e, t) => t === "text" && A(e) ? Vn(e) : t === "vnode" && x(e) && "__v_isVNode" in e ? Vn(e.children) : e
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
1670
|
let Ls;
|
|
@@ -1689,9 +1689,9 @@ const $n = (e) => {
|
|
|
1689
1689
|
}, cl = () => Rs;
|
|
1690
1690
|
let Hn = 0;
|
|
1691
1691
|
function ul(e = {}) {
|
|
1692
|
-
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : al, n = A(e.locale) || G(e.locale) ? e.locale : Lt, s = G(n) ? Lt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p =
|
|
1692
|
+
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : al, n = A(e.locale) || G(e.locale) ? e.locale : Lt, s = G(n) ? Lt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ls;
|
|
1693
1693
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Qe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
|
-
const b = G(e.messageResolver) ? e.messageResolver : Os || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : As || Go, v =
|
|
1694
|
+
const b = G(e.messageResolver) ? e.messageResolver : Os || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : As || Go, v = x(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = x(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = x(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = x(C.__meta) ? C.__meta : {};
|
|
1695
1695
|
Hn++;
|
|
1696
1696
|
const Q = {
|
|
1697
1697
|
version: a,
|
|
@@ -1717,7 +1717,7 @@ function ul(e = {}) {
|
|
|
1717
1717
|
onWarn: t,
|
|
1718
1718
|
__meta: Ee
|
|
1719
1719
|
};
|
|
1720
|
-
return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1720
|
+
return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Uo(Q, a, Ee), Q;
|
|
1721
1721
|
}
|
|
1722
1722
|
const Ma = (e) => ({ [e]: W() });
|
|
1723
1723
|
function oa(e, t) {
|
|
@@ -1767,7 +1767,7 @@ function Gn(e, ...t) {
|
|
|
1767
1767
|
const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
|
|
1768
1768
|
if (process.env.NODE_ENV !== "production" && !Ds.dateTimeFormat)
|
|
1769
1769
|
return r(Qe(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
-
const [i, c, m, g] = Wa(...t), p =
|
|
1770
|
+
const [i, c, m, g] = Wa(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, y = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
|
|
1771
1771
|
e,
|
|
1772
1772
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1773
1773
|
s,
|
|
@@ -1861,7 +1861,7 @@ function Yn(e, ...t) {
|
|
|
1861
1861
|
const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
|
|
1862
1862
|
if (process.env.NODE_ENV !== "production" && !Ds.numberFormat)
|
|
1863
1863
|
return r(Qe(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
-
const [i, c, m, g] = Ga(...t), p =
|
|
1864
|
+
const [i, c, m, g] = Ga(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, y = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
|
|
1865
1865
|
e,
|
|
1866
1866
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1867
1867
|
s,
|
|
@@ -1947,11 +1947,11 @@ function El(e, t) {
|
|
|
1947
1947
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1948
1948
|
}
|
|
1949
1949
|
function vl(e = {}) {
|
|
1950
|
-
const t = e.locale, a = hl(e), n =
|
|
1950
|
+
const t = e.locale, a = hl(e), n = x(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : jn, s = x(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? jn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
|
|
1951
1951
|
ee(e.pluralIndex) && El(a, i);
|
|
1952
1952
|
const c = (d) => i[d];
|
|
1953
1953
|
function m(d, _) {
|
|
1954
|
-
const I = G(e.messages) ? e.messages(d, !!_) :
|
|
1954
|
+
const I = G(e.messages) ? e.messages(d, !!_) : x(e.messages) ? e.messages[d] : !1;
|
|
1955
1955
|
return I || (e.parent ? e.parent.message(d) : ml);
|
|
1956
1956
|
}
|
|
1957
1957
|
const g = (d) => e.modifiers ? e.modifiers[d] : dl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : _l, y = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : gl, R = F(e.processor) && A(e.processor.type) ? e.processor.type : pl, O = {
|
|
@@ -1961,7 +1961,7 @@ function vl(e = {}) {
|
|
|
1961
1961
|
linked: (d, ..._) => {
|
|
1962
1962
|
const [I, E] = _;
|
|
1963
1963
|
let b = "text", L = "";
|
|
1964
|
-
_.length === 1 ?
|
|
1964
|
+
_.length === 1 ? x(I) ? (L = I.modifier || L, b = I.type || b) : A(I) && (L = I || L) : _.length === 2 && (A(I) && (L = I || L), A(E) && (b = E || b));
|
|
1965
1965
|
const v = m(d, !0)(O), C = (
|
|
1966
1966
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1967
1967
|
b === "vnode" && J(v) && L ? v[0] : v
|
|
@@ -1978,7 +1978,7 @@ function vl(e = {}) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
const Jn = () => "", pe = (e) => G(e);
|
|
1980
1980
|
function Qn(e, ...t) {
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m =
|
|
1981
|
+
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = U(c.missingWarn) ? c.missingWarn : e.missingWarn, g = U(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = U(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, y = !!c.resolvedMessage, R = A(c.default) || U(c.default) ? U(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = fn(e, c);
|
|
1982
1982
|
p && bl(c);
|
|
1983
1983
|
let [d, _, I] = y ? [
|
|
1984
1984
|
i,
|
|
@@ -1992,7 +1992,7 @@ function Qn(e, ...t) {
|
|
|
1992
1992
|
let L = !1;
|
|
1993
1993
|
const v = () => {
|
|
1994
1994
|
L = !0;
|
|
1995
|
-
}, C = pe(E) ? E :
|
|
1995
|
+
}, C = pe(E) ? E : xs(e, i, _, E, b, v);
|
|
1996
1996
|
if (L)
|
|
1997
1997
|
return E;
|
|
1998
1998
|
const M = Sl(e, _, I, c), K = vl(M), Ee = Il(e, C, K);
|
|
@@ -2010,7 +2010,7 @@ function Qn(e, ...t) {
|
|
|
2010
2010
|
return Q;
|
|
2011
2011
|
}
|
|
2012
2012
|
function bl(e) {
|
|
2013
|
-
J(e.list) ? e.list = e.list.map((t) => A(t) ? Pn(t) : t) :
|
|
2013
|
+
J(e.list) ? e.list = e.list.map((t) => A(t) ? Pn(t) : t) : x(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2014
2014
|
A(e.named[t]) && (e.named[t] = Pn(e.named[t]));
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
@@ -2061,7 +2061,7 @@ function Ms(e, t, a, n, s, r) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
return [y, p, g];
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function xs(e, t, a, n, s, r) {
|
|
2065
2065
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2066
2066
|
if (pe(n)) {
|
|
2067
2067
|
const p = n;
|
|
@@ -2156,7 +2156,7 @@ function Sl(e, t, a, n) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
if (A(S) || he(S)) {
|
|
2158
2158
|
let O = !1;
|
|
2159
|
-
const _ =
|
|
2159
|
+
const _ = xs(e, y, t, S, y, () => {
|
|
2160
2160
|
O = !0;
|
|
2161
2161
|
});
|
|
2162
2162
|
return O ? Jn : _;
|
|
@@ -2167,9 +2167,9 @@ function Sl(e, t, a, n) {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
So();
|
|
2169
2169
|
function Tl() {
|
|
2170
|
-
return
|
|
2170
|
+
return Us().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Us() {
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
const Ll = typeof Proxy == "function", Ol = "devtools-plugin:setup", Al = "plugin:settings:set";
|
|
@@ -2244,7 +2244,7 @@ class wl {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
function kl(e, t) {
|
|
2247
|
-
const a = e, n =
|
|
2247
|
+
const a = e, n = Us(), s = Tl(), r = Ll && a.enableEarlyProxy;
|
|
2248
2248
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2249
2249
|
s.emit(Ol, e, t);
|
|
2250
2250
|
else {
|
|
@@ -2336,19 +2336,19 @@ function ct(e, ...t) {
|
|
|
2336
2336
|
return na(Ml[e], ...t);
|
|
2337
2337
|
}
|
|
2338
2338
|
function At(e) {
|
|
2339
|
-
if (!
|
|
2339
|
+
if (!x(e) || he(e))
|
|
2340
2340
|
return e;
|
|
2341
2341
|
for (const t in e)
|
|
2342
2342
|
if (be(e, t))
|
|
2343
2343
|
if (!t.includes("."))
|
|
2344
|
-
|
|
2344
|
+
x(e[t]) && At(e[t]);
|
|
2345
2345
|
else {
|
|
2346
2346
|
const a = t.split("."), n = a.length - 1;
|
|
2347
2347
|
let s = e, r = !1;
|
|
2348
2348
|
for (let o = 0; o < n; o++) {
|
|
2349
2349
|
if (a[o] === "__proto__")
|
|
2350
2350
|
throw new Error(`unsafe key: ${a[o]}`);
|
|
2351
|
-
if (a[o] in s || (s[a[o]] = W()), !
|
|
2351
|
+
if (a[o] in s || (s[a[o]] = W()), !x(s[a[o]])) {
|
|
2352
2352
|
process.env.NODE_ENV !== "production" && Le(ct(_e.IGNORE_OBJ_FLATTEN, {
|
|
2353
2353
|
key: a[o]
|
|
2354
2354
|
})), r = !0;
|
|
@@ -2358,7 +2358,7 @@ function At(e) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
if (r || (he(s) ? Ss.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
|
|
2360
2360
|
const o = s[a[n]];
|
|
2361
|
-
|
|
2361
|
+
x(o) && At(o);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
@@ -2380,7 +2380,7 @@ function Hs(e) {
|
|
|
2380
2380
|
return e.type;
|
|
2381
2381
|
}
|
|
2382
2382
|
function Ws(e, t, a) {
|
|
2383
|
-
let n =
|
|
2383
|
+
let n = x(t.messages) ? t.messages : W();
|
|
2384
2384
|
"__i18nGlobal" in a && (n = mn(e.locale.value, {
|
|
2385
2385
|
messages: n,
|
|
2386
2386
|
__i18n: a.__i18nGlobal
|
|
@@ -2390,13 +2390,13 @@ function Ws(e, t, a) {
|
|
|
2390
2390
|
e.mergeLocaleMessage(r, n[r]);
|
|
2391
2391
|
});
|
|
2392
2392
|
{
|
|
2393
|
-
if (
|
|
2393
|
+
if (x(t.datetimeFormats)) {
|
|
2394
2394
|
const r = Object.keys(t.datetimeFormats);
|
|
2395
2395
|
r.length && r.forEach((o) => {
|
|
2396
2396
|
e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
|
|
2397
2397
|
});
|
|
2398
2398
|
}
|
|
2399
|
-
if (
|
|
2399
|
+
if (x(t.numberFormats)) {
|
|
2400
2400
|
const r = Object.keys(t.numberFormats);
|
|
2401
2401
|
r.length && r.forEach((o) => {
|
|
2402
2402
|
e.mergeNumberFormat(o, t.numberFormats[o]);
|
|
@@ -2411,19 +2411,19 @@ function rt() {
|
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
2412
|
return e in wa ? wa[e] : wa.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
|
-
const qn = "__INTLIFY_META__", zn = () => [],
|
|
2414
|
+
const qn = "__INTLIFY_META__", zn = () => [], xl = () => !1;
|
|
2415
2415
|
let Zn = 0;
|
|
2416
2416
|
function es(e) {
|
|
2417
2417
|
return ((t, a, n, s) => e(a, n, rt() || void 0, s));
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2419
|
+
const Ul = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2420
2420
|
const e = rt();
|
|
2421
2421
|
let t = null;
|
|
2422
2422
|
return e && (t = Hs(e)[qn]) ? { [qn]: t } : null;
|
|
2423
2423
|
};
|
|
2424
2424
|
function pn(e = {}) {
|
|
2425
|
-
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w :
|
|
2426
|
-
let o =
|
|
2425
|
+
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : ke;
|
|
2426
|
+
let o = U(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2427
2427
|
const l = r(
|
|
2428
2428
|
// prettier-ignore
|
|
2429
2429
|
t && o ? t.locale.value : A(e.locale) ? e.locale : Lt
|
|
@@ -2431,7 +2431,7 @@ function pn(e = {}) {
|
|
|
2431
2431
|
// prettier-ignore
|
|
2432
2432
|
t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2433
2433
|
), c = r(mn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2434
|
-
let p = t ? t.missingWarn :
|
|
2434
|
+
let p = t ? t.missingWarn : U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = t ? t.fallbackWarn : U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? es(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2435
2435
|
const b = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
2436
2436
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2437
2437
|
v = (() => {
|
|
@@ -2529,7 +2529,7 @@ function pn(e = {}) {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
function ya(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
2532
|
-
if (z && !
|
|
2532
|
+
if (z && !x(z))
|
|
2533
2533
|
throw ue(Y.INVALID_ARGUMENT);
|
|
2534
2534
|
return _t(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2535
2535
|
}
|
|
@@ -2540,7 +2540,7 @@ function pn(e = {}) {
|
|
|
2540
2540
|
return Ae((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ga(...h), "number format", (T) => Reflect.apply(T.n, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2541
2541
|
}
|
|
2542
2542
|
function Ta(h) {
|
|
2543
|
-
return h.map((T) => A(T) || ee(T) ||
|
|
2543
|
+
return h.map((T) => A(T) || ee(T) || U(T) ? Xn(String(T)) : T);
|
|
2544
2544
|
}
|
|
2545
2545
|
const La = {
|
|
2546
2546
|
normalize: Ta,
|
|
@@ -2574,7 +2574,7 @@ function pn(e = {}) {
|
|
|
2574
2574
|
return !1;
|
|
2575
2575
|
const H = A(T) ? T : l.value, z = $e(H), He = v.messageResolver(z, h);
|
|
2576
2576
|
return he(He) || pe(He) || A(He);
|
|
2577
|
-
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]),
|
|
2577
|
+
}, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), xl, (H) => U(H));
|
|
2578
2578
|
}
|
|
2579
2579
|
function gt(h) {
|
|
2580
2580
|
let T = null;
|
|
@@ -2710,7 +2710,7 @@ function pn(e = {}) {
|
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
2713
|
-
const Gs = "vue-i18n: composer properties",
|
|
2713
|
+
const Gs = "vue-i18n: composer properties", xa = {
|
|
2714
2714
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2715
2715
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2716
2716
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -2725,7 +2725,7 @@ async function Hl(e, t) {
|
|
|
2725
2725
|
try {
|
|
2726
2726
|
kl({
|
|
2727
2727
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2728
|
-
label:
|
|
2728
|
+
label: xa["vue-devtools-plugin-vue-i18n"],
|
|
2729
2729
|
packageName: "vue-i18n",
|
|
2730
2730
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2731
2731
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
@@ -2739,7 +2739,7 @@ async function Hl(e, t) {
|
|
|
2739
2739
|
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && ts(l, o.__VUE_I18N__) : ts(l, o.__VUE_I18N__));
|
|
2740
2740
|
}), s.addInspector({
|
|
2741
2741
|
id: "vue-i18n-resource-inspector",
|
|
2742
|
-
label:
|
|
2742
|
+
label: xa["vue-i18n-resource-inspector"],
|
|
2743
2743
|
icon: "language",
|
|
2744
2744
|
treeFilterPlaceholder: Vl["vue-i18n-resource-inspector"]
|
|
2745
2745
|
}), s.on.getInspectorTree((o) => {
|
|
@@ -2762,7 +2762,7 @@ async function Hl(e, t) {
|
|
|
2762
2762
|
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ql(o, t);
|
|
2763
2763
|
}), s.addTimelineLayer({
|
|
2764
2764
|
id: "vue-i18n-timeline",
|
|
2765
|
-
label:
|
|
2765
|
+
label: xa["vue-i18n-timeline"],
|
|
2766
2766
|
color: $l["vue-i18n-timeline"]
|
|
2767
2767
|
}), a(!0);
|
|
2768
2768
|
});
|
|
@@ -2828,7 +2828,7 @@ function _n(e) {
|
|
|
2828
2828
|
const t = {};
|
|
2829
2829
|
return Object.keys(e).forEach((a) => {
|
|
2830
2830
|
const n = e[a];
|
|
2831
|
-
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source :
|
|
2831
|
+
G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : x(n) ? t[a] = _n(n) : t[a] = n;
|
|
2832
2832
|
}), t;
|
|
2833
2833
|
}
|
|
2834
2834
|
const Gl = {
|
|
@@ -2967,11 +2967,11 @@ function ql(e, t) {
|
|
|
2967
2967
|
const a = Ys(e.nodeId, t);
|
|
2968
2968
|
if (a) {
|
|
2969
2969
|
const [n] = e.path;
|
|
2970
|
-
n === "locale" && A(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (A(e.state.value) || J(e.state.value) ||
|
|
2970
|
+
n === "locale" && A(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (A(e.state.value) || J(e.state.value) || x(e.state.value)) ? a.fallbackLocale.value = e.state.value : n === "inheritLocale" && U(e.state.value) && (a.inheritLocale = e.state.value);
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
function zl(e) {
|
|
2974
|
-
const t = A(e.locale) ? e.locale : Lt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s =
|
|
2974
|
+
const t = A(e.locale) ? e.locale : Lt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = U(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = U(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = U(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, y = U(e.sync) ? e.sync : !0;
|
|
2975
2975
|
let R = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
2977
2977
|
const b = e.sharedMessages;
|
|
@@ -3048,17 +3048,17 @@ function qa(e = {}) {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
// silentTranslationWarn
|
|
3050
3050
|
get silentTranslationWarn() {
|
|
3051
|
-
return
|
|
3051
|
+
return U(t.missingWarn) ? !t.missingWarn : t.missingWarn;
|
|
3052
3052
|
},
|
|
3053
3053
|
set silentTranslationWarn(s) {
|
|
3054
|
-
t.missingWarn =
|
|
3054
|
+
t.missingWarn = U(s) ? !s : s;
|
|
3055
3055
|
},
|
|
3056
3056
|
// silentFallbackWarn
|
|
3057
3057
|
get silentFallbackWarn() {
|
|
3058
|
-
return
|
|
3058
|
+
return U(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
|
|
3059
3059
|
},
|
|
3060
3060
|
set silentFallbackWarn(s) {
|
|
3061
|
-
t.fallbackWarn =
|
|
3061
|
+
t.fallbackWarn = U(s) ? !s : s;
|
|
3062
3062
|
},
|
|
3063
3063
|
// modifiers
|
|
3064
3064
|
get modifiers() {
|
|
@@ -3266,7 +3266,7 @@ function ei({ slots: e }, t) {
|
|
|
3266
3266
|
function Bs() {
|
|
3267
3267
|
return Ye;
|
|
3268
3268
|
}
|
|
3269
|
-
const ti = /* @__PURE__ */
|
|
3269
|
+
const ti = /* @__PURE__ */ De({
|
|
3270
3270
|
/* eslint-disable */
|
|
3271
3271
|
name: "i18n-t",
|
|
3272
3272
|
props: te({
|
|
@@ -3289,7 +3289,7 @@ const ti = /* @__PURE__ */ Ce({
|
|
|
3289
3289
|
return () => {
|
|
3290
3290
|
const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
|
|
3291
3291
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
|
|
3292
|
-
const l = ei(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) ||
|
|
3292
|
+
const l = ei(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || x(e.tag) ? e.tag : Bs();
|
|
3293
3293
|
return Ie(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
@@ -3302,18 +3302,18 @@ function js(e, t, a, n) {
|
|
|
3302
3302
|
return () => {
|
|
3303
3303
|
const o = { part: !0 };
|
|
3304
3304
|
let l = W();
|
|
3305
|
-
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format :
|
|
3305
|
+
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : x(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, y) => a.includes(y) ? te(W(), p, { [y]: e.format[y] }) : p, W()));
|
|
3306
3306
|
const i = n(e.value, o, l);
|
|
3307
3307
|
let c = [o.key];
|
|
3308
3308
|
J(i) ? c = i.map((p, y) => {
|
|
3309
3309
|
const R = s[p.type], S = R ? R({ [p.type]: p.value, index: y, parts: i }) : [p.value];
|
|
3310
3310
|
return ai(S) && (S[0].key = `${p.type}-${y}`), S;
|
|
3311
3311
|
}) : A(i) && (c = [i]);
|
|
3312
|
-
const m = te(W(), r), g = A(e.tag) ||
|
|
3312
|
+
const m = te(W(), r), g = A(e.tag) || x(e.tag) ? e.tag : Bs();
|
|
3313
3313
|
return Ie(g, m, c);
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
3316
|
-
const ni = /* @__PURE__ */
|
|
3316
|
+
const ni = /* @__PURE__ */ De({
|
|
3317
3317
|
/* eslint-disable */
|
|
3318
3318
|
name: "i18n-n",
|
|
3319
3319
|
props: te({
|
|
@@ -3399,13 +3399,13 @@ function os(e) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
function oi(e, t, ...a) {
|
|
3401
3401
|
const n = F(a[0]) ? a[0] : {};
|
|
3402
|
-
(
|
|
3402
|
+
(U(n.globalInstall) ? n.globalInstall : !0) && ([ns.name, "I18nT"].forEach((r) => e.component(r, ns)), [ss.name, "I18nN"].forEach((r) => e.component(r, ss)), [is.name, "I18nD"].forEach((r) => e.component(r, is))), e.directive("t", ri(t));
|
|
3403
3403
|
}
|
|
3404
3404
|
const li = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
3405
|
function ii(e = {}) {
|
|
3406
|
-
const t = __VUE_I18N_LEGACY_API__ &&
|
|
3406
|
+
const t = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
3407
|
process.env.NODE_ENV !== "production" && t && sn(ct(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
|
-
const a =
|
|
3408
|
+
const a = U(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ci(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3409
3409
|
function l(g) {
|
|
3410
3410
|
return n.get(g) || null;
|
|
3411
3411
|
}
|
|
@@ -3575,7 +3575,7 @@ function hi(e, t) {
|
|
|
3575
3575
|
});
|
|
3576
3576
|
};
|
|
3577
3577
|
}
|
|
3578
|
-
const Ei = /* @__PURE__ */
|
|
3578
|
+
const Ei = /* @__PURE__ */ De({
|
|
3579
3579
|
/* eslint-disable */
|
|
3580
3580
|
name: "i18n-d",
|
|
3581
3581
|
props: te({
|
|
@@ -3606,7 +3606,7 @@ rl(Zo);
|
|
|
3606
3606
|
ol(Ts);
|
|
3607
3607
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3608
3608
|
const e = Ge();
|
|
3609
|
-
e.__INTLIFY__ = !0,
|
|
3609
|
+
e.__INTLIFY__ = !0, xo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3610
3610
|
}
|
|
3611
3611
|
process.env.NODE_ENV;
|
|
3612
3612
|
const vi = {
|
|
@@ -4065,7 +4065,7 @@ async function qs(e) {
|
|
|
4065
4065
|
let s = t;
|
|
4066
4066
|
a && Object.keys(a).length > 0 && (s = Rt(s, a)), n && Object.keys(n).length > 0 && (s = Rt(s, n)), Js[e] = s, me.global.setLocaleMessage(e, s), Xs(e, s);
|
|
4067
4067
|
}
|
|
4068
|
-
async function
|
|
4068
|
+
async function vc(e = "/", t) {
|
|
4069
4069
|
za = e;
|
|
4070
4070
|
try {
|
|
4071
4071
|
const n = await fetch(`${za}locales/languages.json`);
|
|
@@ -4076,14 +4076,14 @@ async function Ec(e = "/", t) {
|
|
|
4076
4076
|
const a = localStorage.getItem("language") || t || "zh-CN";
|
|
4077
4077
|
me.global.locale.value = a, localStorage.setItem("language", a), await qs(a);
|
|
4078
4078
|
}
|
|
4079
|
-
async function
|
|
4079
|
+
async function bc(e) {
|
|
4080
4080
|
await qs(e), me.global.locale.value = e, localStorage.setItem("language", e);
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function Ic(e = "code") {
|
|
4083
4083
|
const t = me.global.locale.value;
|
|
4084
4084
|
return e === "display" ? qt[t] : t;
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function yc() {
|
|
4087
4087
|
return Object.keys(qt).map((e) => ({
|
|
4088
4088
|
label: qt[e],
|
|
4089
4089
|
key: e
|
|
@@ -4240,7 +4240,7 @@ const ia = {
|
|
|
4240
4240
|
hideErrorToast: !0
|
|
4241
4241
|
}
|
|
4242
4242
|
};
|
|
4243
|
-
function
|
|
4243
|
+
function Nc() {
|
|
4244
4244
|
zs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), Zs.host.loadingText = P("webui.stores.hostInfo.loading");
|
|
4245
4245
|
}
|
|
4246
4246
|
const Ft = {
|
|
@@ -4332,11 +4332,11 @@ const Ft = {
|
|
|
4332
4332
|
return a.length === 0 && !n;
|
|
4333
4333
|
if (t) {
|
|
4334
4334
|
const o = ye();
|
|
4335
|
-
if (
|
|
4335
|
+
if (Fe.VITE_PERMISSION_MODE === "none")
|
|
4336
4336
|
return !0;
|
|
4337
|
-
if (
|
|
4337
|
+
if (Fe.VITE_PERMISSION_MODE === "role")
|
|
4338
4338
|
return a.length === 0 ? !0 : o.hasRole(a);
|
|
4339
|
-
if (
|
|
4339
|
+
if (Fe.VITE_PERMISSION_MODE === "permit") {
|
|
4340
4340
|
if (a.length === 0 && !n)
|
|
4341
4341
|
return !0;
|
|
4342
4342
|
let l = !1, i = !1;
|
|
@@ -4562,13 +4562,13 @@ const Nt = {
|
|
|
4562
4562
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
4563
4563
|
loadingText: !1
|
|
4564
4564
|
}
|
|
4565
|
-
},
|
|
4565
|
+
}, Ua = /* @__PURE__ */ new Map(), Ai = (e) => {
|
|
4566
4566
|
const t = ye(), { roles: a, permission: n } = e.meta || {};
|
|
4567
|
-
if (ve(a) && ve(n) ||
|
|
4567
|
+
if (ve(a) && ve(n) || Fe.VITE_PERMISSION_MODE === "none")
|
|
4568
4568
|
return !0;
|
|
4569
|
-
if (
|
|
4569
|
+
if (Fe.VITE_PERMISSION_MODE === "role")
|
|
4570
4570
|
return ve(a) ? !0 : t.hasRole(a);
|
|
4571
|
-
if (
|
|
4571
|
+
if (Fe.VITE_PERMISSION_MODE === "permit") {
|
|
4572
4572
|
let s = !1, r = !1;
|
|
4573
4573
|
return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
|
|
4574
4574
|
}
|
|
@@ -4666,9 +4666,9 @@ const Nt = {
|
|
|
4666
4666
|
flattenRoutes: {},
|
|
4667
4667
|
Routes: t ?? [],
|
|
4668
4668
|
defaultPage: ""
|
|
4669
|
-
}), !
|
|
4669
|
+
}), !Ce() || !Dr())) {
|
|
4670
4670
|
const n = ye();
|
|
4671
|
-
|
|
4671
|
+
Fe.VITE_PERMISSION_MODE !== "none" && await n.getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes);
|
|
4672
4672
|
}
|
|
4673
4673
|
},
|
|
4674
4674
|
/**
|
|
@@ -4691,7 +4691,7 @@ const Nt = {
|
|
|
4691
4691
|
}), ye().isLogin) {
|
|
4692
4692
|
const a = tr(this.appInfo.Routes);
|
|
4693
4693
|
if (yi(a), this.appInfo.defaultPage = ar(a) || "", this.appInfo.defaultPage) {
|
|
4694
|
-
if (this.menuLoaded = !0,
|
|
4694
|
+
if (this.menuLoaded = !0, Ce()) {
|
|
4695
4695
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4696
4696
|
Nt.mainAppPush(n);
|
|
4697
4697
|
}
|
|
@@ -4714,7 +4714,7 @@ const Nt = {
|
|
|
4714
4714
|
*/
|
|
4715
4715
|
push(e) {
|
|
4716
4716
|
this.findRoute(e) && hn().setTabActive(e), vr(() => {
|
|
4717
|
-
if (ca.push({ path: e }),
|
|
4717
|
+
if (ca.push({ path: e }), Ce()) {
|
|
4718
4718
|
const a = this.formatRoute(e);
|
|
4719
4719
|
Nt.mainAppPush(a);
|
|
4720
4720
|
}
|
|
@@ -4735,7 +4735,7 @@ const Nt = {
|
|
|
4735
4735
|
* @returns 组件实例
|
|
4736
4736
|
*/
|
|
4737
4737
|
cacheComponent(e, t) {
|
|
4738
|
-
let a =
|
|
4738
|
+
let a = Ua.get(t.path);
|
|
4739
4739
|
if (!a)
|
|
4740
4740
|
if (this.CachedComponents.includes(t.path))
|
|
4741
4741
|
a = {
|
|
@@ -4744,7 +4744,7 @@ const Nt = {
|
|
|
4744
4744
|
render() {
|
|
4745
4745
|
return Ie(e);
|
|
4746
4746
|
}
|
|
4747
|
-
},
|
|
4747
|
+
}, Ua.set(t.path, a);
|
|
4748
4748
|
else return e;
|
|
4749
4749
|
return a;
|
|
4750
4750
|
},
|
|
@@ -4753,7 +4753,7 @@ const Nt = {
|
|
|
4753
4753
|
* @param path 路由地址
|
|
4754
4754
|
*/
|
|
4755
4755
|
excludeComponent(e) {
|
|
4756
|
-
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1),
|
|
4756
|
+
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Ua.delete(e);
|
|
4757
4757
|
},
|
|
4758
4758
|
/**
|
|
4759
4759
|
* 路由路径层级查询,返回面包屑
|
|
@@ -4784,11 +4784,74 @@ const Nt = {
|
|
|
4784
4784
|
}, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
|
|
4785
4785
|
},
|
|
4786
4786
|
logout() {
|
|
4787
|
-
this.clean(),
|
|
4787
|
+
this.clean(), Ce() ? Nt.mainAppPush("/") : window.location.assign("/");
|
|
4788
|
+
}
|
|
4789
|
+
},
|
|
4790
|
+
persist: !1
|
|
4791
|
+
}), Pi = Dt("settingInfo", {
|
|
4792
|
+
state: () => ({
|
|
4793
|
+
fullscreen: !1,
|
|
4794
|
+
menuCollapse: !1,
|
|
4795
|
+
tableColumns: {},
|
|
4796
|
+
userInfoPersist: !0,
|
|
4797
|
+
showExit: !0,
|
|
4798
|
+
showLanguage: !0
|
|
4799
|
+
}),
|
|
4800
|
+
actions: {
|
|
4801
|
+
/**
|
|
4802
|
+
* 设置全屏
|
|
4803
|
+
*/
|
|
4804
|
+
setFullscreen(e) {
|
|
4805
|
+
this.$patch({
|
|
4806
|
+
fullscreen: e
|
|
4807
|
+
});
|
|
4808
|
+
},
|
|
4809
|
+
/**
|
|
4810
|
+
* 设置主菜单区折叠
|
|
4811
|
+
*/
|
|
4812
|
+
setMenuCollapse(e) {
|
|
4813
|
+
this.$patch({
|
|
4814
|
+
menuCollapse: e
|
|
4815
|
+
});
|
|
4816
|
+
},
|
|
4817
|
+
/**
|
|
4818
|
+
* 获取表格头配置
|
|
4819
|
+
*/
|
|
4820
|
+
getTableColumns(e) {
|
|
4821
|
+
return this.tableColumns[e];
|
|
4822
|
+
},
|
|
4823
|
+
/**
|
|
4824
|
+
* 设置表格头配置
|
|
4825
|
+
*/
|
|
4826
|
+
setTableColumns(e, t) {
|
|
4827
|
+
this.$patch({
|
|
4828
|
+
tableColumns: {
|
|
4829
|
+
...this.tableColumns,
|
|
4830
|
+
[e]: t
|
|
4831
|
+
}
|
|
4832
|
+
});
|
|
4833
|
+
},
|
|
4834
|
+
/**
|
|
4835
|
+
* 设置用户信息是否持久化
|
|
4836
|
+
*/
|
|
4837
|
+
setUserInfoPersist(e) {
|
|
4838
|
+
this.userInfoPersist = e;
|
|
4839
|
+
},
|
|
4840
|
+
/**
|
|
4841
|
+
* 设置是否显示退出按钮
|
|
4842
|
+
*/
|
|
4843
|
+
setShowExit(e) {
|
|
4844
|
+
this.showExit = e;
|
|
4845
|
+
},
|
|
4846
|
+
/**
|
|
4847
|
+
* 设置是否显示语言选择
|
|
4848
|
+
*/
|
|
4849
|
+
setShowLanguage(e) {
|
|
4850
|
+
this.showLanguage = e;
|
|
4788
4851
|
}
|
|
4789
4852
|
},
|
|
4790
4853
|
persist: !1
|
|
4791
|
-
}), ua = 1400,
|
|
4854
|
+
}), ua = 1400, Ri = (e) => {
|
|
4792
4855
|
let t = {
|
|
4793
4856
|
Option: {
|
|
4794
4857
|
Mode: "MicroApp"
|
|
@@ -4796,7 +4859,7 @@ const Nt = {
|
|
|
4796
4859
|
Query: e
|
|
4797
4860
|
};
|
|
4798
4861
|
return qe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4799
|
-
},
|
|
4862
|
+
}, wi = (e) => {
|
|
4800
4863
|
let t = {
|
|
4801
4864
|
Query: {
|
|
4802
4865
|
AppId: e
|
|
@@ -4811,13 +4874,13 @@ const Nt = {
|
|
|
4811
4874
|
}
|
|
4812
4875
|
return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
|
|
4813
4876
|
});
|
|
4814
|
-
},
|
|
4877
|
+
}, ki = () => {
|
|
4815
4878
|
let e = {
|
|
4816
4879
|
Option: {},
|
|
4817
4880
|
Query: {}
|
|
4818
4881
|
};
|
|
4819
4882
|
return qe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4820
|
-
},
|
|
4883
|
+
}, Di = (e) => {
|
|
4821
4884
|
try {
|
|
4822
4885
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
4823
4886
|
return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
|
|
@@ -4842,7 +4905,7 @@ const Nt = {
|
|
|
4842
4905
|
* 启动时初始化用户信息
|
|
4843
4906
|
*/
|
|
4844
4907
|
init() {
|
|
4845
|
-
|
|
4908
|
+
Ce() || (this.token ? (Wt(this.token), de.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
|
|
4846
4909
|
},
|
|
4847
4910
|
/**
|
|
4848
4911
|
* 登录操作
|
|
@@ -4850,14 +4913,14 @@ const Nt = {
|
|
|
4850
4913
|
* @returns
|
|
4851
4914
|
*/
|
|
4852
4915
|
async login(e, t) {
|
|
4853
|
-
const a = await
|
|
4916
|
+
const a = await Ri(e);
|
|
4854
4917
|
if (a) {
|
|
4855
4918
|
const n = a;
|
|
4856
4919
|
if (n.errno)
|
|
4857
4920
|
return n;
|
|
4858
4921
|
{
|
|
4859
4922
|
const s = a.data;
|
|
4860
|
-
if (this.token = s.token, Wt(this.token), this.isLogin = !0,
|
|
4923
|
+
if (this.token = s.token, Wt(this.token), this.isLogin = !0, Di(s))
|
|
4861
4924
|
this.userInfo = {
|
|
4862
4925
|
...this.userInfo,
|
|
4863
4926
|
...s.UserInfo
|
|
@@ -4878,10 +4941,10 @@ const Nt = {
|
|
|
4878
4941
|
async getRolePermits(e) {
|
|
4879
4942
|
if (!this.isLogin || !this.token)
|
|
4880
4943
|
return !1;
|
|
4881
|
-
if (
|
|
4944
|
+
if (Fe.VITE_PERMISSION_MODE === "none" || bt.value && bt.value.appId === e)
|
|
4882
4945
|
return !0;
|
|
4883
4946
|
try {
|
|
4884
|
-
const t = await
|
|
4947
|
+
const t = await wi(e);
|
|
4885
4948
|
return t ? (bt.value = {
|
|
4886
4949
|
appId: e,
|
|
4887
4950
|
permits: t.permits || [],
|
|
@@ -4973,10 +5036,10 @@ const Nt = {
|
|
|
4973
5036
|
* @returns
|
|
4974
5037
|
*/
|
|
4975
5038
|
async logout(e) {
|
|
4976
|
-
if (
|
|
5039
|
+
if (Ce())
|
|
4977
5040
|
return Nt.userLogout(), Promise.resolve();
|
|
4978
5041
|
try {
|
|
4979
|
-
e && await
|
|
5042
|
+
e && await ki();
|
|
4980
5043
|
} catch (t) {
|
|
4981
5044
|
console.error("调用登出接口失败", t);
|
|
4982
5045
|
} finally {
|
|
@@ -4989,11 +5052,10 @@ const Nt = {
|
|
|
4989
5052
|
return Promise.resolve();
|
|
4990
5053
|
}
|
|
4991
5054
|
},
|
|
4992
|
-
persist: !
|
|
5055
|
+
persist: !Ce() && Pi().userInfoPersist ? {
|
|
4993
5056
|
key: "MICROAPP_USER_INFO",
|
|
4994
5057
|
storage: localStorage,
|
|
4995
5058
|
pick: ["token", "userInfo"],
|
|
4996
|
-
// 只存储token和userInfo
|
|
4997
5059
|
afterHydrate: (e) => {
|
|
4998
5060
|
e.store.init();
|
|
4999
5061
|
}
|
|
@@ -5024,7 +5086,7 @@ const Nt = {
|
|
|
5024
5086
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
5025
5087
|
const a = fa(e, t);
|
|
5026
5088
|
return t.url = a, da(e, t);
|
|
5027
|
-
},
|
|
5089
|
+
}, Sc = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || P("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.executeSuccess"))), a))), nr = (e, t = {}) => {
|
|
5028
5090
|
const a = t.primaryKey || "Id";
|
|
5029
5091
|
if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
|
|
5030
5092
|
return se.error(P("webui.utils.data.noSaveData")), Promise.resolve(null);
|
|
@@ -5036,7 +5098,7 @@ const Nt = {
|
|
|
5036
5098
|
n.params.Query[a] = n.params.Data[a];
|
|
5037
5099
|
const s = fa(e, n);
|
|
5038
5100
|
return n.url = s, da(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.saveSuccess"))), r));
|
|
5039
|
-
},
|
|
5101
|
+
}, Ci = (e, t, a = {}) => {
|
|
5040
5102
|
const n = a.primaryKey || "Id";
|
|
5041
5103
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
5042
5104
|
const s = {
|
|
@@ -5048,64 +5110,22 @@ const Nt = {
|
|
|
5048
5110
|
return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5049
5111
|
const r = fa(e, s);
|
|
5050
5112
|
return s.url = r, da(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(P("webui.utils.data.deleteSuccess"))), o));
|
|
5051
|
-
},
|
|
5113
|
+
}, Fi = (e, t) => En(e, {
|
|
5052
5114
|
urlKey: "tree",
|
|
5053
5115
|
params: {},
|
|
5054
5116
|
loadingState: e.isTreeLoading,
|
|
5055
5117
|
loadingText: !1,
|
|
5056
5118
|
processParams: () => Ct(e.treeQuery, t)
|
|
5057
|
-
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])),
|
|
5119
|
+
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Mi = (e, t) => {
|
|
5058
5120
|
for (const a of e) {
|
|
5059
5121
|
if (a.key === t) return a;
|
|
5060
5122
|
if (a.children) {
|
|
5061
|
-
const n =
|
|
5123
|
+
const n = Mi(a.children, t);
|
|
5062
5124
|
if (n) return n;
|
|
5063
5125
|
}
|
|
5064
5126
|
}
|
|
5065
5127
|
return null;
|
|
5066
|
-
}
|
|
5067
|
-
state: () => ({
|
|
5068
|
-
fullscreen: !1,
|
|
5069
|
-
menuCollapse: !1,
|
|
5070
|
-
tableColumns: {}
|
|
5071
|
-
}),
|
|
5072
|
-
actions: {
|
|
5073
|
-
/**
|
|
5074
|
-
* 设置全屏
|
|
5075
|
-
*/
|
|
5076
|
-
setFullscreen(e) {
|
|
5077
|
-
this.$patch({
|
|
5078
|
-
fullscreen: e
|
|
5079
|
-
});
|
|
5080
|
-
},
|
|
5081
|
-
/**
|
|
5082
|
-
* 设置主菜单区折叠
|
|
5083
|
-
*/
|
|
5084
|
-
setMenuCollapse(e) {
|
|
5085
|
-
this.$patch({
|
|
5086
|
-
menuCollapse: e
|
|
5087
|
-
});
|
|
5088
|
-
},
|
|
5089
|
-
/**
|
|
5090
|
-
* 获取表格头配置
|
|
5091
|
-
*/
|
|
5092
|
-
getTableColumns(e) {
|
|
5093
|
-
return this.tableColumns[e];
|
|
5094
|
-
},
|
|
5095
|
-
/**
|
|
5096
|
-
* 设置表格头配置
|
|
5097
|
-
*/
|
|
5098
|
-
setTableColumns(e, t) {
|
|
5099
|
-
this.$patch({
|
|
5100
|
-
tableColumns: {
|
|
5101
|
-
...this.tableColumns,
|
|
5102
|
-
[e]: t
|
|
5103
|
-
}
|
|
5104
|
-
});
|
|
5105
|
-
}
|
|
5106
|
-
},
|
|
5107
|
-
persist: !1
|
|
5108
|
-
});
|
|
5128
|
+
};
|
|
5109
5129
|
let ut;
|
|
5110
5130
|
const Tc = (e) => {
|
|
5111
5131
|
ut = new aa({}), ut.messages({
|
|
@@ -5206,7 +5226,7 @@ const Tc = (e) => {
|
|
|
5206
5226
|
ruleKey: a,
|
|
5207
5227
|
errInfo: n
|
|
5208
5228
|
};
|
|
5209
|
-
},
|
|
5229
|
+
}, xi = (e, t) => {
|
|
5210
5230
|
let a = w({
|
|
5211
5231
|
msg: "",
|
|
5212
5232
|
errClass: ""
|
|
@@ -5260,16 +5280,16 @@ const Tc = (e) => {
|
|
|
5260
5280
|
}), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
|
|
5261
5281
|
}, Pc = (e, t) => {
|
|
5262
5282
|
ka(Re.LabelText, e.label || ""), ka(Re.RuleKey, e.rule || "");
|
|
5263
|
-
const a =
|
|
5283
|
+
const a = xi(e, t);
|
|
5264
5284
|
return ka(Re.ErrInfo, a), a;
|
|
5265
|
-
},
|
|
5285
|
+
}, Vi = (e, t) => {
|
|
5266
5286
|
if (!t)
|
|
5267
5287
|
return;
|
|
5268
5288
|
const [a, ...n] = e;
|
|
5269
5289
|
if (e.length === 1)
|
|
5270
5290
|
return t[a];
|
|
5271
5291
|
if (t[a])
|
|
5272
|
-
return
|
|
5292
|
+
return Vi(n, t[a].fields);
|
|
5273
5293
|
}, Rc = (e) => {
|
|
5274
5294
|
sr(e);
|
|
5275
5295
|
}, wc = (e) => {
|
|
@@ -5365,7 +5385,7 @@ const Tc = (e) => {
|
|
|
5365
5385
|
return s ? { ...n, ...s } : !1;
|
|
5366
5386
|
});
|
|
5367
5387
|
return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
|
|
5368
|
-
},
|
|
5388
|
+
}, $i = (e) => or(e).then((t) => t.rows), or = (e) => {
|
|
5369
5389
|
var a, n, s, r;
|
|
5370
5390
|
e.gridQuery || (e.gridQuery = {});
|
|
5371
5391
|
const t = e.remotePage ? "find" : "list";
|
|
@@ -5399,7 +5419,7 @@ const Tc = (e) => {
|
|
|
5399
5419
|
rows: []
|
|
5400
5420
|
};
|
|
5401
5421
|
});
|
|
5402
|
-
},
|
|
5422
|
+
}, Hi = (e, t, a = {}) => nr(e, {
|
|
5403
5423
|
urlKey: "update",
|
|
5404
5424
|
url: e.updateUrl,
|
|
5405
5425
|
params: {
|
|
@@ -5410,9 +5430,9 @@ const Tc = (e) => {
|
|
|
5410
5430
|
...a
|
|
5411
5431
|
}).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
|
|
5412
5432
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
|
|
5413
|
-
}, 50), n)),
|
|
5433
|
+
}, 50), n)), xc = (e, t) => {
|
|
5414
5434
|
const a = {};
|
|
5415
|
-
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey],
|
|
5435
|
+
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Hi(e, a, {
|
|
5416
5436
|
loadingText: !1,
|
|
5417
5437
|
hideErrorToast: !0
|
|
5418
5438
|
});
|
|
@@ -5421,20 +5441,20 @@ const Tc = (e) => {
|
|
|
5421
5441
|
url: a,
|
|
5422
5442
|
params: t,
|
|
5423
5443
|
loadingState: e.isGridLoading
|
|
5424
|
-
}),
|
|
5444
|
+
}), Uc = (e, t) => {
|
|
5425
5445
|
const a = t;
|
|
5426
5446
|
return lr(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
|
|
5427
5447
|
}, Vc = (e, t) => {
|
|
5428
5448
|
let a = e.editor;
|
|
5429
5449
|
e.rowData.value = t, a && (rr(a, t), a.visible.value = !0);
|
|
5430
|
-
}, $c = (e, t) =>
|
|
5450
|
+
}, $c = (e, t) => Ci(e, t, {
|
|
5431
5451
|
url: e.deleteUrl,
|
|
5432
5452
|
primaryKey: e.primaryKey
|
|
5433
5453
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5434
5454
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5435
5455
|
}, 50), a));
|
|
5436
5456
|
var tn = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(tn || {});
|
|
5437
|
-
class
|
|
5457
|
+
class Wi {
|
|
5438
5458
|
constructor() {
|
|
5439
5459
|
ne(this, "listeners", {});
|
|
5440
5460
|
}
|
|
@@ -5480,11 +5500,11 @@ class Hi {
|
|
|
5480
5500
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5481
5501
|
}
|
|
5482
5502
|
}
|
|
5483
|
-
const st = new
|
|
5503
|
+
const st = new Wi(), pt = (e, t, a) => {
|
|
5484
5504
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5485
5505
|
const n = t.inputFactory.value;
|
|
5486
5506
|
n.reloadHandler = (s, r) => {
|
|
5487
|
-
|
|
5507
|
+
Gi(t.url, t, r);
|
|
5488
5508
|
}, st.on(a.reloadEvent, n.reloadHandler);
|
|
5489
5509
|
}
|
|
5490
5510
|
if (a != null && a.data)
|
|
@@ -5514,17 +5534,17 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5514
5534
|
label: P("webui.components.form.radio.all"),
|
|
5515
5535
|
value: e.allValue ?? void 0
|
|
5516
5536
|
}), e.options.value = t;
|
|
5517
|
-
},
|
|
5537
|
+
}, Gi = (e, t, a) => {
|
|
5518
5538
|
Array.isArray(a) ? In(t, a, !0) : ir(e, t, a);
|
|
5519
|
-
},
|
|
5539
|
+
}, xt = (e, t) => {
|
|
5520
5540
|
var a;
|
|
5521
5541
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && st.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5522
5542
|
}, ir = (e, t, a) => {
|
|
5523
5543
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Ct(n, s, a);
|
|
5524
|
-
|
|
5544
|
+
Ki(e, t, t.fieldMap, r).then((o) => {
|
|
5525
5545
|
In(t, o, !1);
|
|
5526
5546
|
});
|
|
5527
|
-
},
|
|
5547
|
+
}, Ki = (e, t, a, n) => {
|
|
5528
5548
|
const { fieldMap: s, ...r } = e, l = {
|
|
5529
5549
|
...{
|
|
5530
5550
|
url: "",
|
|
@@ -5548,7 +5568,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5548
5568
|
}).finally(() => {
|
|
5549
5569
|
t.isOptionLoading.value = !1;
|
|
5550
5570
|
});
|
|
5551
|
-
},
|
|
5571
|
+
}, Yi = (e, t, a) => {
|
|
5552
5572
|
if (e === void 0) return;
|
|
5553
5573
|
const n = (r) => {
|
|
5554
5574
|
const o = { ...r };
|
|
@@ -5609,7 +5629,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5609
5629
|
var r, o;
|
|
5610
5630
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5611
5631
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Mt(n.editorCtrl), e.selected.value = a;
|
|
5612
|
-
const s =
|
|
5632
|
+
const s = Yi(a, e.options.value);
|
|
5613
5633
|
if (e.selectedOptions.value = s, t.formData && t.outFields && cr(t.formData, t.outFields, s), t.changeEvent) {
|
|
5614
5634
|
const [l, i] = t.changeEvent;
|
|
5615
5635
|
if (i)
|
|
@@ -5693,7 +5713,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5693
5713
|
}, _a = (e) => {
|
|
5694
5714
|
for (let t in e.urls)
|
|
5695
5715
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
5696
|
-
},
|
|
5716
|
+
}, Bi = (e, t, a, n) => (_a(e), {
|
|
5697
5717
|
editorCtrl: {
|
|
5698
5718
|
...Z.EditorOption,
|
|
5699
5719
|
name: "",
|
|
@@ -5709,7 +5729,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5709
5729
|
isFormSaving: w(!1),
|
|
5710
5730
|
isFormLoading: w(!1)
|
|
5711
5731
|
}
|
|
5712
|
-
}),
|
|
5732
|
+
}), ji = (e, t, a) => {
|
|
5713
5733
|
_a(e);
|
|
5714
5734
|
const n = {
|
|
5715
5735
|
...Z.GridOption,
|
|
@@ -5730,7 +5750,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5730
5750
|
selectRows: w([]),
|
|
5731
5751
|
rowData: w(void 0),
|
|
5732
5752
|
gridQuery: {},
|
|
5733
|
-
tableData:
|
|
5753
|
+
tableData: ke(void 0),
|
|
5734
5754
|
expandRows: w({}),
|
|
5735
5755
|
isGridLoading: w(!1),
|
|
5736
5756
|
isGridSaving: w(!1),
|
|
@@ -5743,7 +5763,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5743
5763
|
(s) => {
|
|
5744
5764
|
s && (setTimeout(() => {
|
|
5745
5765
|
n.reload.value = !1;
|
|
5746
|
-
}, 1), n.remotePage ? or(n) :
|
|
5766
|
+
}, 1), n.remotePage ? or(n) : $i(n));
|
|
5747
5767
|
}
|
|
5748
5768
|
), {
|
|
5749
5769
|
gridCtrl: n
|
|
@@ -5756,7 +5776,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5756
5776
|
page: t,
|
|
5757
5777
|
node: w(void 0),
|
|
5758
5778
|
url: e.urls.tree,
|
|
5759
|
-
data:
|
|
5779
|
+
data: ke(void 0),
|
|
5760
5780
|
isTreeLoading: w(!1)
|
|
5761
5781
|
};
|
|
5762
5782
|
return B(
|
|
@@ -5764,18 +5784,18 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5764
5784
|
(n) => {
|
|
5765
5785
|
n && (setTimeout(() => {
|
|
5766
5786
|
a.reload.value = !1;
|
|
5767
|
-
}, 1),
|
|
5787
|
+
}, 1), Fi(a));
|
|
5768
5788
|
}
|
|
5769
5789
|
), {
|
|
5770
5790
|
treeCtrl: a
|
|
5771
5791
|
};
|
|
5772
|
-
},
|
|
5792
|
+
}, Ut = (e, t) => {
|
|
5773
5793
|
const a = {
|
|
5774
5794
|
...Z.OptionOption,
|
|
5775
5795
|
url: e,
|
|
5776
5796
|
reload: w(!1),
|
|
5777
5797
|
optionQuery: {},
|
|
5778
|
-
data:
|
|
5798
|
+
data: ke((t == null ? void 0 : t.data) ?? []),
|
|
5779
5799
|
selected: w([]),
|
|
5780
5800
|
selectedOptions: w([]),
|
|
5781
5801
|
options: w((t == null ? void 0 : t.data) ?? []),
|
|
@@ -5796,20 +5816,20 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5796
5816
|
const n = {
|
|
5797
5817
|
...Z.PageOption,
|
|
5798
5818
|
...e
|
|
5799
|
-
}, { editorCtrl: s } =
|
|
5819
|
+
}, { editorCtrl: s } = Bi(e, n, t, a), { gridCtrl: r } = ji(e, n);
|
|
5800
5820
|
return n.editor = s, n.grid = r, r.editor = s, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], s.grid = r, {
|
|
5801
5821
|
pageCtrl: n,
|
|
5802
5822
|
editorCtrl: s,
|
|
5803
5823
|
gridCtrl: r
|
|
5804
5824
|
};
|
|
5805
|
-
},
|
|
5825
|
+
}, Ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), us = /* @__PURE__ */ new Set(), Ke = w({}), Kc = Ke, Yc = (e) => {
|
|
5806
5826
|
var s;
|
|
5807
5827
|
if (!e.iconUrl) return an;
|
|
5808
5828
|
const t = w(!0), a = w("");
|
|
5809
5829
|
let n = !0;
|
|
5810
|
-
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) &&
|
|
5811
|
-
|
|
5812
|
-
}),
|
|
5830
|
+
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) && Qi(e, t).then(() => {
|
|
5831
|
+
zi(e.iconUrl, e.monoColor || !1), t.value = !0;
|
|
5832
|
+
}), De({
|
|
5813
5833
|
props: {
|
|
5814
5834
|
icon: {
|
|
5815
5835
|
type: String
|
|
@@ -5876,12 +5896,12 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5876
5896
|
style: {
|
|
5877
5897
|
fill: "currentColor",
|
|
5878
5898
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
5879
|
-
transform:
|
|
5899
|
+
transform: ec(this.angle, this.flip)
|
|
5880
5900
|
}
|
|
5881
5901
|
}) : Ie("div", { class: "w-[14px] h-[14px]" });
|
|
5882
5902
|
}
|
|
5883
5903
|
});
|
|
5884
|
-
},
|
|
5904
|
+
}, Qi = (e, t) => {
|
|
5885
5905
|
let a = e.iconUrl;
|
|
5886
5906
|
if (!a)
|
|
5887
5907
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
@@ -5892,10 +5912,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5892
5912
|
return new Promise(async (r) => (ur(n.scriptContent), r()));
|
|
5893
5913
|
t.value = !1;
|
|
5894
5914
|
const s = new Promise(async (r) => {
|
|
5895
|
-
await
|
|
5915
|
+
await Xi(a, e.monoColor || !1), r(), Va.delete(a);
|
|
5896
5916
|
});
|
|
5897
5917
|
return Va.set(a, s), s;
|
|
5898
|
-
},
|
|
5918
|
+
}, Xi = async (e, t) => {
|
|
5899
5919
|
try {
|
|
5900
5920
|
const a = await fetch(e);
|
|
5901
5921
|
if (!a.ok) {
|
|
@@ -5908,7 +5928,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5908
5928
|
const r = n.match(s);
|
|
5909
5929
|
if (r && r.length > 1) {
|
|
5910
5930
|
let o = r[1];
|
|
5911
|
-
|
|
5931
|
+
qi(e, o, t, n);
|
|
5912
5932
|
}
|
|
5913
5933
|
ur(n);
|
|
5914
5934
|
return;
|
|
@@ -5918,13 +5938,13 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5918
5938
|
}, ur = (e) => {
|
|
5919
5939
|
const t = document.createElement("script");
|
|
5920
5940
|
t.textContent = e, document.head.appendChild(t);
|
|
5921
|
-
},
|
|
5941
|
+
}, qi = (e, t, a, n) => {
|
|
5922
5942
|
let s = `icon_cache:${e}`;
|
|
5923
5943
|
const r = {
|
|
5924
5944
|
windowKey: t,
|
|
5925
5945
|
monoColor: a,
|
|
5926
5946
|
scriptContent: n,
|
|
5927
|
-
expireTime: Date.now() +
|
|
5947
|
+
expireTime: Date.now() + Ji
|
|
5928
5948
|
// 缓存时间:7天
|
|
5929
5949
|
};
|
|
5930
5950
|
localStorage.setItem(s, JSON.stringify(r));
|
|
@@ -5970,12 +5990,12 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5970
5990
|
fill: "currentColor"
|
|
5971
5991
|
})
|
|
5972
5992
|
]
|
|
5973
|
-
),
|
|
5993
|
+
), zi = (e, t) => {
|
|
5974
5994
|
const a = fr(e);
|
|
5975
5995
|
Object.keys(window).forEach((n) => {
|
|
5976
|
-
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !us.has(n) && (us.add(n),
|
|
5996
|
+
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !us.has(n) && (us.add(n), Zi(n, t));
|
|
5977
5997
|
});
|
|
5978
|
-
},
|
|
5998
|
+
}, Zi = (e, t) => {
|
|
5979
5999
|
const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
|
|
5980
6000
|
for (const l of r) {
|
|
5981
6001
|
const i = l.id, c = Array.from(o).find((m) => m.id === i);
|
|
@@ -5983,7 +6003,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
5983
6003
|
m.hasAttribute("fill") && m.removeAttribute("fill");
|
|
5984
6004
|
})), Ke.value[i] || (Ke.value[i] = Ie("svg", { fill: "currentColor" }, [Ie("use", { "xlink:href": `#${i}` })]));
|
|
5985
6005
|
}
|
|
5986
|
-
},
|
|
6006
|
+
}, ec = (e, t) => {
|
|
5987
6007
|
let a = "";
|
|
5988
6008
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5989
6009
|
}, jc = (e, t, a, n) => {
|
|
@@ -6044,7 +6064,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6044
6064
|
* @param hostKey 站点信息,默认为当前主域名
|
|
6045
6065
|
*/
|
|
6046
6066
|
async loadHostInfo(e, t) {
|
|
6047
|
-
if (
|
|
6067
|
+
if (Ce()) {
|
|
6048
6068
|
const n = await Nt.getHostInfo();
|
|
6049
6069
|
this._setHostInfo(n);
|
|
6050
6070
|
return;
|
|
@@ -6110,7 +6130,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6110
6130
|
// storage: localStorage,
|
|
6111
6131
|
// pick: ['hostInfo'],
|
|
6112
6132
|
// },
|
|
6113
|
-
}), Xc = /* @__PURE__ */
|
|
6133
|
+
}), Xc = /* @__PURE__ */ De({
|
|
6114
6134
|
__name: "index",
|
|
6115
6135
|
props: {
|
|
6116
6136
|
...Ft,
|
|
@@ -6128,8 +6148,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6128
6148
|
},
|
|
6129
6149
|
emits: ["change"],
|
|
6130
6150
|
setup(e, { emit: t }) {
|
|
6131
|
-
const a = e, n = ft(), s =
|
|
6132
|
-
r.inputFactory =
|
|
6151
|
+
const a = e, n = ft(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
|
|
6152
|
+
r.inputFactory = ke(n);
|
|
6133
6153
|
const o = w([]);
|
|
6134
6154
|
r && B(
|
|
6135
6155
|
() => r.options.value,
|
|
@@ -6155,7 +6175,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6155
6175
|
}
|
|
6156
6176
|
r && pt(r.autoload, r, a);
|
|
6157
6177
|
}), dt(() => {
|
|
6158
|
-
r &&
|
|
6178
|
+
r && xt(r, a);
|
|
6159
6179
|
}), (y, R) => {
|
|
6160
6180
|
var S;
|
|
6161
6181
|
return o.value.length === 2 ? (le(), zt(X(yr), kt({
|
|
@@ -6174,7 +6194,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6174
6194
|
}, y.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : ot("", !0);
|
|
6175
6195
|
};
|
|
6176
6196
|
}
|
|
6177
|
-
}), qc = /* @__PURE__ */
|
|
6197
|
+
}), qc = /* @__PURE__ */ De({
|
|
6178
6198
|
inheritAttrs: !1,
|
|
6179
6199
|
__name: "index",
|
|
6180
6200
|
props: {
|
|
@@ -6195,8 +6215,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6195
6215
|
},
|
|
6196
6216
|
emits: ["update:value", "select", "change", "update:labels"],
|
|
6197
6217
|
setup(e, { emit: t }) {
|
|
6198
|
-
const a = e, n = Zt(), s = ft(), r =
|
|
6199
|
-
o.inputFactory =
|
|
6218
|
+
const a = e, n = Zt(), s = ft(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6219
|
+
o.inputFactory = ke(s), o.fieldMap = {
|
|
6200
6220
|
label: "Name",
|
|
6201
6221
|
value: "Id",
|
|
6202
6222
|
...o == null ? void 0 : o.fieldMap
|
|
@@ -6241,7 +6261,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6241
6261
|
return ea(() => {
|
|
6242
6262
|
o && o.autoload && (o.reload.value = !0);
|
|
6243
6263
|
}), dt(() => {
|
|
6244
|
-
o &&
|
|
6264
|
+
o && xt(o, a);
|
|
6245
6265
|
}), (S, O) => {
|
|
6246
6266
|
var d;
|
|
6247
6267
|
return le(), ge("div", null, [
|
|
@@ -6253,10 +6273,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6253
6273
|
onSearch: y,
|
|
6254
6274
|
onSelect: R
|
|
6255
6275
|
}, X(n), { "allow-clear": !1 }), {
|
|
6256
|
-
option:
|
|
6276
|
+
option: xe(({ label: _ }) => [
|
|
6257
6277
|
ta(je(_), 1)
|
|
6258
6278
|
]),
|
|
6259
|
-
default:
|
|
6279
|
+
default: xe(() => [
|
|
6260
6280
|
Be(X(Sr), {
|
|
6261
6281
|
"allow-clear": "",
|
|
6262
6282
|
placeholder: "请输入并选择" + X(m)
|
|
@@ -6267,10 +6287,10 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6267
6287
|
]);
|
|
6268
6288
|
};
|
|
6269
6289
|
}
|
|
6270
|
-
}),
|
|
6290
|
+
}), tc = { class: "min-h-[32px] pt-[5px]" }, ac = {
|
|
6271
6291
|
key: 1,
|
|
6272
6292
|
class: "text-center text-gray-500"
|
|
6273
|
-
}, zc = /* @__PURE__ */
|
|
6293
|
+
}, zc = /* @__PURE__ */ De({
|
|
6274
6294
|
inheritAttrs: !1,
|
|
6275
6295
|
__name: "index",
|
|
6276
6296
|
props: {
|
|
@@ -6292,8 +6312,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6292
6312
|
emits: ["change", "update:labels"],
|
|
6293
6313
|
setup(e, { emit: t }) {
|
|
6294
6314
|
var p, y, R;
|
|
6295
|
-
const a = e, n = Zt(), s = ft(), r =
|
|
6296
|
-
o.inputFactory =
|
|
6315
|
+
const a = e, n = Zt(), s = ft(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6316
|
+
o.inputFactory = ke(s);
|
|
6297
6317
|
const l = w({
|
|
6298
6318
|
...o == null ? void 0 : o.url,
|
|
6299
6319
|
url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
|
|
@@ -6324,13 +6344,13 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6324
6344
|
key: "Id"
|
|
6325
6345
|
}), o && pt(o.autoload, o, a);
|
|
6326
6346
|
}), dt(() => {
|
|
6327
|
-
o &&
|
|
6328
|
-
}), (S, O) => (le(), ge("div",
|
|
6347
|
+
o && xt(o, a);
|
|
6348
|
+
}), (S, O) => (le(), ge("div", tc, [
|
|
6329
6349
|
Be(X(Tr), kt({
|
|
6330
6350
|
onChange: g,
|
|
6331
6351
|
class: "w-full mb-[-3px]"
|
|
6332
6352
|
}, X(n)), {
|
|
6333
|
-
default:
|
|
6353
|
+
default: xe(() => [
|
|
6334
6354
|
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (d) => {
|
|
6335
6355
|
var _;
|
|
6336
6356
|
return le(), zt(X(Lr), {
|
|
@@ -6344,21 +6364,21 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6344
6364
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
6345
6365
|
])
|
|
6346
6366
|
}, {
|
|
6347
|
-
default:
|
|
6367
|
+
default: xe(() => [
|
|
6348
6368
|
ta(je(d.label), 1)
|
|
6349
6369
|
]),
|
|
6350
6370
|
_: 2
|
|
6351
6371
|
}, 1032, ["value", "disabled", "class"]);
|
|
6352
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6372
|
+
}), 128)) : e.nodata ? (le(), ge("div", ac, je(e.nodata), 1)) : ot("", !0)
|
|
6353
6373
|
]),
|
|
6354
6374
|
_: 1
|
|
6355
6375
|
}, 16)
|
|
6356
6376
|
]));
|
|
6357
6377
|
}
|
|
6358
|
-
}),
|
|
6378
|
+
}), nc = { class: "min-h-[32px] pt-1" }, sc = {
|
|
6359
6379
|
key: 1,
|
|
6360
6380
|
class: "text-center text-gray-500"
|
|
6361
|
-
}, Zc = /* @__PURE__ */
|
|
6381
|
+
}, Zc = /* @__PURE__ */ De({
|
|
6362
6382
|
inheritAttrs: !1,
|
|
6363
6383
|
__name: "index",
|
|
6364
6384
|
props: {
|
|
@@ -6381,8 +6401,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6381
6401
|
emits: ["change", "update:value", "update:labels"],
|
|
6382
6402
|
setup(e, { emit: t }) {
|
|
6383
6403
|
var R, S, O;
|
|
6384
|
-
const a = e, n = Zt(), s = ft(), r =
|
|
6385
|
-
o.inputFactory =
|
|
6404
|
+
const a = e, n = Zt(), s = ft(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6405
|
+
o.inputFactory = ke(s);
|
|
6386
6406
|
const l = w({
|
|
6387
6407
|
...o == null ? void 0 : o.url,
|
|
6388
6408
|
url: ((R = o == null ? void 0 : o.url) == null ? void 0 : R.url) || "",
|
|
@@ -6426,8 +6446,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6426
6446
|
key: "Id"
|
|
6427
6447
|
}), o && pt(o.autoload, o, a);
|
|
6428
6448
|
}), dt(() => {
|
|
6429
|
-
o &&
|
|
6430
|
-
}), (d, _) => (le(), ge("div",
|
|
6449
|
+
o && xt(o, a);
|
|
6450
|
+
}), (d, _) => (le(), ge("div", nc, [
|
|
6431
6451
|
Be(X(Or), kt({
|
|
6432
6452
|
value: i.value,
|
|
6433
6453
|
"onUpdate:value": _[0] || (_[0] = (I) => i.value = I),
|
|
@@ -6435,7 +6455,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6435
6455
|
onChange: y,
|
|
6436
6456
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6437
6457
|
}, X(n)), {
|
|
6438
|
-
default:
|
|
6458
|
+
default: xe(() => [
|
|
6439
6459
|
m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (I) => {
|
|
6440
6460
|
var E;
|
|
6441
6461
|
return le(), ge(Ye, {
|
|
@@ -6452,22 +6472,22 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6452
6472
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
6453
6473
|
])
|
|
6454
6474
|
}, {
|
|
6455
|
-
default:
|
|
6475
|
+
default: xe(() => [
|
|
6456
6476
|
ta(je(I.label), 1)
|
|
6457
6477
|
]),
|
|
6458
6478
|
_: 2
|
|
6459
6479
|
}, 1032, ["checked", "value", "class"])) : ot("", !0)
|
|
6460
6480
|
], 64);
|
|
6461
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6481
|
+
}), 128)) : e.nodata ? (le(), ge("div", sc, je(e.nodata), 1)) : ot("", !0)
|
|
6462
6482
|
]),
|
|
6463
6483
|
_: 1
|
|
6464
6484
|
}, 16, ["value"])
|
|
6465
6485
|
]));
|
|
6466
6486
|
}
|
|
6467
|
-
}),
|
|
6487
|
+
}), rc = {
|
|
6468
6488
|
key: 0,
|
|
6469
6489
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
6470
|
-
}, eu = /* @__PURE__ */
|
|
6490
|
+
}, eu = /* @__PURE__ */ De({
|
|
6471
6491
|
inheritAttrs: !1,
|
|
6472
6492
|
__name: "index",
|
|
6473
6493
|
props: {
|
|
@@ -6503,8 +6523,8 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6503
6523
|
emits: ["change", "update:value", "update:label", "update:labels"],
|
|
6504
6524
|
setup(e, { emit: t }) {
|
|
6505
6525
|
var _, I, E;
|
|
6506
|
-
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ft(), { editorCtrl: r, errInfo: o, labelText: l } = s, i =
|
|
6507
|
-
c.inputFactory =
|
|
6526
|
+
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ft(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = Ut(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
|
|
6527
|
+
c.inputFactory = ke(s);
|
|
6508
6528
|
const m = Zt();
|
|
6509
6529
|
c.autoload = a.autoload ?? c.autoload;
|
|
6510
6530
|
const g = w({
|
|
@@ -6579,11 +6599,11 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6579
6599
|
b.length > 0 ? (O.value = b, d(b)) : pt(c.autoload, c, a);
|
|
6580
6600
|
}
|
|
6581
6601
|
}), dt(() => {
|
|
6582
|
-
c &&
|
|
6602
|
+
c && xt(c, a);
|
|
6583
6603
|
}), (b, L) => {
|
|
6584
6604
|
var v, C, M;
|
|
6585
6605
|
return le(), ge("div", null, [
|
|
6586
|
-
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div",
|
|
6606
|
+
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", rc, [
|
|
6587
6607
|
Be(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6588
6608
|
Ir("span", null, je(X(P)("webui.components.form.upload.dataLoading")), 1)
|
|
6589
6609
|
])) : ot("", !0),
|
|
@@ -6596,7 +6616,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6596
6616
|
placeholder: p.value,
|
|
6597
6617
|
"label-in-value": !1
|
|
6598
6618
|
}, X(m)), {
|
|
6599
|
-
default:
|
|
6619
|
+
default: xe(() => [
|
|
6600
6620
|
(le(!0), ge(Ye, null, nn(O.value, (K) => (le(), ge(Ye, {
|
|
6601
6621
|
key: K.value
|
|
6602
6622
|
}, [
|
|
@@ -6604,7 +6624,7 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6604
6624
|
key: 0,
|
|
6605
6625
|
value: K.value
|
|
6606
6626
|
}, {
|
|
6607
|
-
default:
|
|
6627
|
+
default: xe(() => [
|
|
6608
6628
|
ta(je(K.label), 1)
|
|
6609
6629
|
]),
|
|
6610
6630
|
_: 2
|
|
@@ -6616,13 +6636,13 @@ const st = new Hi(), pt = (e, t, a) => {
|
|
|
6616
6636
|
]);
|
|
6617
6637
|
};
|
|
6618
6638
|
}
|
|
6619
|
-
}),
|
|
6639
|
+
}), oc = w(!1), tu = {
|
|
6620
6640
|
label: P("webui.utils.tools.templateManagement"),
|
|
6621
6641
|
key: "uploadTemp",
|
|
6622
6642
|
type: "primary",
|
|
6623
6643
|
icon: "icon-download",
|
|
6624
6644
|
click: () => {
|
|
6625
|
-
|
|
6645
|
+
oc.value = !0;
|
|
6626
6646
|
}
|
|
6627
6647
|
};
|
|
6628
6648
|
export {
|
|
@@ -6635,26 +6655,26 @@ export {
|
|
|
6635
6655
|
Zc as F,
|
|
6636
6656
|
eu as G,
|
|
6637
6657
|
En as H,
|
|
6638
|
-
|
|
6639
|
-
|
|
6658
|
+
xr as I,
|
|
6659
|
+
Nc as J,
|
|
6640
6660
|
Hc as K,
|
|
6641
6661
|
ua as L,
|
|
6642
6662
|
Nt as M,
|
|
6643
|
-
|
|
6663
|
+
Bi as N,
|
|
6644
6664
|
en as O,
|
|
6645
6665
|
Re as P,
|
|
6646
|
-
|
|
6666
|
+
ji as Q,
|
|
6647
6667
|
Wc as R,
|
|
6648
6668
|
Gc as S,
|
|
6649
|
-
|
|
6669
|
+
Yi as T,
|
|
6650
6670
|
cr as U,
|
|
6651
6671
|
Kc as V,
|
|
6652
6672
|
Bc as W,
|
|
6653
|
-
|
|
6654
|
-
|
|
6673
|
+
Zi as X,
|
|
6674
|
+
ec as Y,
|
|
6655
6675
|
jc as Z,
|
|
6656
6676
|
Xc as _,
|
|
6657
|
-
|
|
6677
|
+
Pi as a,
|
|
6658
6678
|
fs as a0,
|
|
6659
6679
|
Jc as a1,
|
|
6660
6680
|
sr as a2,
|
|
@@ -6666,12 +6686,12 @@ export {
|
|
|
6666
6686
|
Lc as a8,
|
|
6667
6687
|
Oc as a9,
|
|
6668
6688
|
Mc as aa,
|
|
6669
|
-
|
|
6689
|
+
Hi as ab,
|
|
6670
6690
|
lr as ac,
|
|
6671
|
-
|
|
6672
|
-
|
|
6691
|
+
Uc as ad,
|
|
6692
|
+
Sc as ae,
|
|
6673
6693
|
nr as af,
|
|
6674
|
-
|
|
6694
|
+
Ci as ag,
|
|
6675
6695
|
tn as ah,
|
|
6676
6696
|
st as ai,
|
|
6677
6697
|
yt as aj,
|
|
@@ -6679,37 +6699,37 @@ export {
|
|
|
6679
6699
|
Me as al,
|
|
6680
6700
|
Qc as am,
|
|
6681
6701
|
hn as an,
|
|
6682
|
-
|
|
6702
|
+
oc as ao,
|
|
6683
6703
|
tu as ap,
|
|
6684
6704
|
me as aq,
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6705
|
+
vc as ar,
|
|
6706
|
+
yc as as,
|
|
6707
|
+
Ic as at,
|
|
6708
|
+
bc as au,
|
|
6689
6709
|
ut as av,
|
|
6690
6710
|
wc as b,
|
|
6691
6711
|
Yc as c,
|
|
6692
6712
|
kc as d,
|
|
6693
6713
|
Pc as e,
|
|
6694
6714
|
Vc as f,
|
|
6695
|
-
|
|
6715
|
+
Vi as g,
|
|
6696
6716
|
$c as h,
|
|
6697
6717
|
ve as i,
|
|
6698
6718
|
Fc as j,
|
|
6699
6719
|
Cc as k,
|
|
6700
6720
|
or as l,
|
|
6701
|
-
|
|
6702
|
-
|
|
6721
|
+
$i as m,
|
|
6722
|
+
xc as n,
|
|
6703
6723
|
Rc as o,
|
|
6704
|
-
|
|
6705
|
-
|
|
6724
|
+
Mi as p,
|
|
6725
|
+
Fi as q,
|
|
6706
6726
|
ca as r,
|
|
6707
6727
|
qc as s,
|
|
6708
6728
|
Ft as t,
|
|
6709
6729
|
ye as u,
|
|
6710
6730
|
ft as v,
|
|
6711
|
-
|
|
6731
|
+
Ut as w,
|
|
6712
6732
|
pt as x,
|
|
6713
|
-
|
|
6733
|
+
xt as y,
|
|
6714
6734
|
an as z
|
|
6715
6735
|
};
|