@gonsin/gview 2.1.26 → 2.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +787 -761
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,15 @@ var ca = Object.defineProperty;
|
|
|
2
2
|
var Da = (t, u, e) => u in t ? ca(t, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[u] = e;
|
|
3
3
|
var Nu = (t, u, e) => (Da(t, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import { useI18n as Ae } from "gonsin-i18n";
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { defineComponent as oe, ref as R, computed as Q, resolveComponent as Z, openBlock as d, createBlock as b, normalizeClass as K, withCtx as k, createVNode as _, createElementVNode as ee, toDisplayString as ue, unref as A, createElementBlock as H, Fragment as ce, renderList as Ce, createCommentVNode as q, createTextVNode as ie, withModifiers as yt, nextTick as ro, inject as ve, normalizeStyle as su, normalizeProps as ku, mergeProps as ye, guardReactiveProps as ot, renderSlot as Pe, onMounted as
|
|
5
|
+
import { useI18n as Zs } from "gonsin-i18n";
|
|
6
|
+
import { defineComponent as oe, ref as R, computed as Q, resolveComponent as Z, openBlock as d, createBlock as b, normalizeClass as K, withCtx as k, createVNode as _, createElementVNode as ee, toDisplayString as ue, unref as A, createElementBlock as H, Fragment as ce, renderList as Ce, createCommentVNode as q, createTextVNode as ie, withModifiers as yt, nextTick as ro, inject as ve, normalizeStyle as su, normalizeProps as ku, mergeProps as ye, guardReactiveProps as ot, renderSlot as Pe, onMounted as Ue, onBeforeUnmount as uu, watch as Te, isRef as Na, Transition as ga, createSlots as Ru, useSlots as so, resolveDynamicComponent as Mo, TransitionGroup as da, toRefs as Ta, provide as tu, reactive as Ut, onBeforeMount as rt, toRaw as ht, shallowRef as ja, defineAsyncComponent as co, watchEffect as Aa, createStaticVNode as dn } from "vue";
|
|
7
7
|
import { useRouter as ou, useRoute as Iu, onBeforeRouteLeave as Do, onBeforeRouteUpdate as No } from "vue-router";
|
|
8
8
|
import { defineStore as Qu, storeToRefs as ma } from "pinia";
|
|
9
9
|
import ju from "dayjs";
|
|
10
10
|
import Tn from "axios";
|
|
11
11
|
import { customAlphabet as Ia } from "nanoid";
|
|
12
12
|
import ya from "nprogress";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as qs } from "nprogress";
|
|
14
14
|
import { get as le, set as Ke, cloneDeep as _e, isPlainObject as zn, isArray as hn, isEqual as Ln } from "lodash-es";
|
|
15
15
|
import { MessagePlugin as Ea, Button as fa, Progress as go, Tooltip as Su, Link as pa, Tree as Ca, Card as xa, DialogPlugin as Qt, ConfigProvider as za } from "tdesign-vue-next";
|
|
16
16
|
import { CloseIcon as Cu, RefreshIcon as It, ArrowLeftIcon as On, ArrowRightIcon as kn, CloseCircleIcon as Sn, MoreIcon as ha, DeleteIcon as La, ViewListIcon as Oa, PoweroffIcon as ka, ChevronDownIcon as Sa, Icon as wn, AppIcon as wa, UploadIcon as vn, CheckCircleFilledIcon as va, PlayCircleFilledIcon as Ua, PauseCircleFilledIcon as Qa, LinkIcon as ba, ErrorCircleFilledIcon as Ya, FileImageIcon as at, FilePdfIcon as To, VideoIcon as un, FileIconIcon as tn, FolderOpenIcon as Ba, FolderIcon as _a, FilterIcon as Fa, SearchIcon as Pa, EllipsisIcon as $a, UserIcon as bt, BrowseIcon as Va } from "tdesign-icons-vue-next";
|
|
@@ -26,7 +26,7 @@ function We(t, u, e) {
|
|
|
26
26
|
o.component(u || a || n.name, t), e && o.directive(e.name, e.comp);
|
|
27
27
|
}, n;
|
|
28
28
|
}
|
|
29
|
-
const mo = "VENUS_WEB", he = (t) => `${mo}_${t}`, Qn = he("WEBSITE_SETTING"), bn = he("LOGIN_STATUS"),
|
|
29
|
+
const mo = "VENUS_WEB", he = (t) => `${mo}_${t}`, Qn = he("WEBSITE_SETTING"), bn = he("LOGIN_STATUS"), Is = he("USER"), ys = he("LOCAL_EDIFICE_INFO"), Yt = he("CONFIG"), Bt = he("BASE_PERMISSIONS"), Yn = he("USER_PERMISSIONS"), _t = he("THEME_CONFIG"), on = he("LANG"), Es = he("MENU"), Ju = he("SIDE_MENU_CONFIG"), Ft = he("SIDE_MENU_WIDTH"), Pt = he("IS_SIDE_SELF_DRAGGING"), $t = he("INIT_TAB_MENU_LIST"), Vt = he("TAB_MENU"), Bn = he("TOKEN"), _n = he("TOKEN_EXPIRED_TIME"), Fn = he("SESSION_ID"), fs = he("DATA_ID"), Xu = he("COLUMN_DATA"), an = he("COLUMN_WIDTH_DATA"), Pn = he("SIDE_MENU_COLLAPSE"), ct = he("FORM_DATA_CACHE"), Ga = {
|
|
30
30
|
brandTheme: "default",
|
|
31
31
|
// 主题色
|
|
32
32
|
displayMode: "light"
|
|
@@ -39,28 +39,28 @@ function wu(t) {
|
|
|
39
39
|
return yu(t, "Function");
|
|
40
40
|
}
|
|
41
41
|
const Ka = (t) => typeof t < "u", Io = (t) => !Ka(t), jn = (t) => t !== null && yu(t, "Object");
|
|
42
|
-
function
|
|
42
|
+
function ps(t) {
|
|
43
43
|
return yu(t, "Date");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Cs(t) {
|
|
46
46
|
return yu(t, "Number");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function xs(t) {
|
|
49
49
|
return yu(t, "AsyncFunction");
|
|
50
50
|
}
|
|
51
51
|
function qa(t) {
|
|
52
52
|
return yu(t, "Promise") && jn(t) && wu(t.then) && wu(t.catch);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function zs(t) {
|
|
55
55
|
return yu(t, "String");
|
|
56
56
|
}
|
|
57
57
|
function Ja(t) {
|
|
58
58
|
return yu(t, "Boolean");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function hu(t) {
|
|
61
61
|
return t && Array.isArray(t);
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const hs = () => typeof window < "u", Ls = (t) => typeof window < "u" && yu(t, "Window"), Os = (t) => jn(t) && !!t.tagName, ks = typeof window > "u";
|
|
64
64
|
function eu(t) {
|
|
65
65
|
return t === null;
|
|
66
66
|
}
|
|
@@ -104,23 +104,23 @@ function ln(t, u, e) {
|
|
|
104
104
|
function yo(t) {
|
|
105
105
|
return t.map((u) => (u.children && u.children.length > 0 && (u.children = yo(u.children)), u.url && !u.path && (u.path = u.url), u));
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const Ss = (t) => {
|
|
108
108
|
const u = [];
|
|
109
109
|
function e(n, o) {
|
|
110
110
|
n.forEach((a) => {
|
|
111
|
-
const { menuKey: i, edificeKey: l, name:
|
|
111
|
+
const { menuKey: i, edificeKey: l, name: r, title: c, translateTitle: s, url: M, icon: N, level: I, init: j } = a;
|
|
112
112
|
u.push({
|
|
113
113
|
menuKey: i,
|
|
114
114
|
edificeKey: l,
|
|
115
|
-
name:
|
|
115
|
+
name: r,
|
|
116
116
|
parent: o,
|
|
117
117
|
title: c,
|
|
118
|
-
translateTitle:
|
|
118
|
+
translateTitle: s,
|
|
119
119
|
url: M,
|
|
120
120
|
icon: N,
|
|
121
121
|
level: I,
|
|
122
122
|
init: j
|
|
123
|
-
}), a.children && a.children.length > 0 && e(a.children,
|
|
123
|
+
}), a.children && a.children.length > 0 && e(a.children, r);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
return e(t, null), u.forEach((n, o) => {
|
|
@@ -338,7 +338,7 @@ function Di(t, u) {
|
|
|
338
338
|
}
|
|
339
339
|
return t;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Lu(t) {
|
|
342
342
|
let u = {};
|
|
343
343
|
return t.indexOf("?") !== -1 && t.split("?")[1].split("&").forEach((n) => {
|
|
344
344
|
u[n.split("=")[0]] = n.split("=")[1];
|
|
@@ -366,8 +366,8 @@ function Ni(t, u) {
|
|
|
366
366
|
if (!l.some((M) => i.has(M)))
|
|
367
367
|
return t;
|
|
368
368
|
l.forEach((M) => i.delete(M));
|
|
369
|
-
const c = i.toString(),
|
|
370
|
-
return n ? `${
|
|
369
|
+
const c = i.toString(), s = c ? `${o}?${c}` : o;
|
|
370
|
+
return n ? `${s}#${n}` : s;
|
|
371
371
|
}
|
|
372
372
|
class gi {
|
|
373
373
|
constructor(u) {
|
|
@@ -457,14 +457,14 @@ class Co {
|
|
|
457
457
|
name: "login"
|
|
458
458
|
}), n;
|
|
459
459
|
if (o == "-409") {
|
|
460
|
-
const { device: l, uuid:
|
|
461
|
-
if (l &&
|
|
460
|
+
const { device: l, uuid: r } = n.data;
|
|
461
|
+
if (l && r) {
|
|
462
462
|
if (this.router) {
|
|
463
463
|
this.router.push({
|
|
464
464
|
name: "license",
|
|
465
465
|
query: {
|
|
466
466
|
device: l,
|
|
467
|
-
uuid:
|
|
467
|
+
uuid: r
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
@@ -501,10 +501,10 @@ class Co {
|
|
|
501
501
|
if (e && n) {
|
|
502
502
|
const i = +ju(), l = n - i;
|
|
503
503
|
if (l > 0 && l <= 60 * 60 * 1e3) {
|
|
504
|
-
const
|
|
505
|
-
if (
|
|
506
|
-
const { token: c, expiredTime:
|
|
507
|
-
u.setUserToken(c,
|
|
504
|
+
const r = await ei(e);
|
|
505
|
+
if (r.state == 200) {
|
|
506
|
+
const { token: c, expiredTime: s } = r.data;
|
|
507
|
+
u.setUserToken(c, s);
|
|
508
508
|
} else
|
|
509
509
|
u.userLogout(), (o = this.router) == null || o.push({
|
|
510
510
|
name: "login"
|
|
@@ -551,8 +551,8 @@ function Ti(t) {
|
|
|
551
551
|
const u = /filename\*=(UTF-8|ISO-8859-1)''([\w%\-\.]+)/gi, e = [];
|
|
552
552
|
let n;
|
|
553
553
|
for (; (n = u.exec(t)) !== null; ) {
|
|
554
|
-
const i = n[1], l = n[2],
|
|
555
|
-
e.push({ encoding: i, fileName:
|
|
554
|
+
const i = n[1], l = n[2], r = decodeURIComponent(l);
|
|
555
|
+
e.push({ encoding: i, fileName: r });
|
|
556
556
|
}
|
|
557
557
|
if (e.length === 0) {
|
|
558
558
|
const l = /filename="([^"]+)"/.exec(t);
|
|
@@ -591,11 +591,11 @@ function Rt(t, u = "", e = "blob", n = {}) {
|
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
let
|
|
594
|
+
let r = "";
|
|
595
595
|
const c = l.headers["content-disposition"];
|
|
596
|
-
c && (
|
|
597
|
-
const
|
|
598
|
-
N.href = M, u !== "" ? N.download = u :
|
|
596
|
+
c && (r = Ti(c) ?? "");
|
|
597
|
+
const s = new Blob([l.data], { type: l.data.type }), M = window.URL.createObjectURL(s), N = document.createElement("a");
|
|
598
|
+
N.href = M, u !== "" ? N.download = u : r !== "" && (N.download = r), console.log(`下载链接:${M}`), pe.loading(`${et.t("开始下载文件")} ${N.download}`), document.body.appendChild(N), N.click(), window.URL.revokeObjectURL(M);
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
} catch (l) {
|
|
@@ -648,19 +648,19 @@ function lt(t, u, e = !1) {
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
function xo(t) {
|
|
651
|
-
const { list: u, keyName: e, valueName: n, titleName: o, parentKey: a, parentKeyName: i } = t, l = (
|
|
652
|
-
const
|
|
651
|
+
const { list: u, keyName: e, valueName: n, titleName: o, parentKey: a, parentKeyName: i } = t, l = (r, c) => {
|
|
652
|
+
const s = [];
|
|
653
653
|
return c.forEach((M) => {
|
|
654
|
-
if (M[i] ==
|
|
654
|
+
if (M[i] == r) {
|
|
655
655
|
const N = l(M[e], u), I = {
|
|
656
656
|
key: M[e],
|
|
657
657
|
label: M[o],
|
|
658
658
|
value: M[n],
|
|
659
659
|
children: []
|
|
660
660
|
};
|
|
661
|
-
N.length && (I.children = N),
|
|
661
|
+
N.length && (I.children = N), s.push(I);
|
|
662
662
|
}
|
|
663
|
-
}),
|
|
663
|
+
}), s;
|
|
664
664
|
};
|
|
665
665
|
return l(a, u);
|
|
666
666
|
}
|
|
@@ -1322,18 +1322,18 @@ const An = Qu("column", {
|
|
|
1322
1322
|
this.edificeLogoUrl = t;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
}), Ht = "g-dialog-plugin", fi = "g-common-dialog", Dt = "g-common-form", Nt = "g-common-header", pi = "g-common-table", Ci = "g-board",
|
|
1325
|
+
}), Ht = "g-dialog-plugin", fi = "g-common-dialog", Dt = "g-common-form", Nt = "g-common-header", pi = "g-common-table", Ci = "g-board", ws = "g-dialog", xi = "g-form", Wn = "g-form-item", vs = "g-header", zi = "g-tab", Vu = "g-table", nu = "g-layout", gt = "g-uploader", xu = "g-login", hi = ["title"], Li = {
|
|
1326
1326
|
key: 0,
|
|
1327
1327
|
class: "menu-item--close-button"
|
|
1328
1328
|
}, Oi = ["title"], ki = ["title"], Si = ["title"], wi = ["onClick"], vi = ["title"], Ui = ["title"], Qi = ["onClick"], bi = ["title"], Yi = ["title"], Bi = ["title"], _i = ["title"], Fi = ["title"], Pi = ["title"], $i = /* @__PURE__ */ oe({
|
|
1329
1329
|
__name: "GLayoutHeaderTab",
|
|
1330
1330
|
setup(t) {
|
|
1331
|
-
const { T: u } = Ae(), e = `${nu}__layoutHeaderTab`, n = ou(), o = Iu(), a = R(""), i = bu(), l = Se(),
|
|
1331
|
+
const { T: u } = Ae(), e = `${nu}__layoutHeaderTab`, n = ou(), o = Iu(), a = R(""), i = bu(), l = Se(), r = Q(() => i.tabMenuList), c = Q(() => l.homeUrl), s = Q(() => l.displayMode);
|
|
1332
1332
|
function M(S, y, O) {
|
|
1333
1333
|
y.trigger === "document" && (a.value = null), S && (a.value = O);
|
|
1334
1334
|
}
|
|
1335
1335
|
function N(S) {
|
|
1336
|
-
S === "/HomePage" ? n.push({ path: c.value, query:
|
|
1336
|
+
S === "/HomePage" ? n.push({ path: c.value, query: Lu(c.value) }) : n.push({ path: S, query: Lu(S) });
|
|
1337
1337
|
}
|
|
1338
1338
|
function I({ value: S, index: y }) {
|
|
1339
1339
|
const { tabMenuList: O } = i;
|
|
@@ -1347,13 +1347,13 @@ const An = Qu("column", {
|
|
|
1347
1347
|
query: L.query
|
|
1348
1348
|
});
|
|
1349
1349
|
} else
|
|
1350
|
-
n.push({ path: c.value, query:
|
|
1350
|
+
n.push({ path: c.value, query: Lu(c.value) });
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
function j(S, y) {
|
|
1354
1354
|
const { path: O } = S;
|
|
1355
1355
|
ro(() => {
|
|
1356
|
-
O === "/HomePage" ? n.push({ path: c.value, query:
|
|
1356
|
+
O === "/HomePage" ? n.push({ path: c.value, query: Lu(c.value) }) : n.push({ path: O, query: Lu(O) });
|
|
1357
1357
|
}), l.toggleGlobalReload(), a.value = null;
|
|
1358
1358
|
}
|
|
1359
1359
|
function x(S, y) {
|
|
@@ -1363,10 +1363,10 @@ const An = Qu("column", {
|
|
|
1363
1363
|
i.subtractTabMenuItemBehind({ path: S, itemIdx: y }), w("behind", y);
|
|
1364
1364
|
}
|
|
1365
1365
|
function v(S, y) {
|
|
1366
|
-
|
|
1366
|
+
r.value.length > 1 && (i.subtractTabMenuItemOther({ path: S, itemIdx: y }), w("other", y));
|
|
1367
1367
|
}
|
|
1368
1368
|
function z() {
|
|
1369
|
-
i.clearTabMenu(), n.push({ path: c.value, query:
|
|
1369
|
+
i.clearTabMenu(), n.push({ path: c.value, query: Lu(c.value) }), a.value = null, l.toggleGlobalReload();
|
|
1370
1370
|
}
|
|
1371
1371
|
function w(S, y) {
|
|
1372
1372
|
const O = o.fullPath, { tabMenuList: L } = i, h = L.findIndex((W) => W.path === O);
|
|
@@ -1397,9 +1397,9 @@ const An = Qu("column", {
|
|
|
1397
1397
|
return L;
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
return
|
|
1401
|
-
}), C = Q(() => D.value > 0 ?
|
|
1402
|
-
() => D.value > 0 ?
|
|
1400
|
+
return r.value.length;
|
|
1401
|
+
}), C = Q(() => D.value > 0 ? r.value.slice(0, D.value) : []), V = Q(
|
|
1402
|
+
() => D.value > 0 ? r.value.slice(D.value) : r.value
|
|
1403
1403
|
), g = Q(() => V.value.map((S) => S.path)), F = R(null), m = R(150);
|
|
1404
1404
|
R(0);
|
|
1405
1405
|
const U = R(!1);
|
|
@@ -1414,7 +1414,7 @@ const An = Qu("column", {
|
|
|
1414
1414
|
ref_key: "GLayoutHeaderRef",
|
|
1415
1415
|
ref: B,
|
|
1416
1416
|
class: K(`${e}`),
|
|
1417
|
-
theme:
|
|
1417
|
+
theme: s.value,
|
|
1418
1418
|
value: f.value,
|
|
1419
1419
|
onChange: N,
|
|
1420
1420
|
"expand-type": "popup",
|
|
@@ -1434,7 +1434,7 @@ const An = Qu("column", {
|
|
|
1434
1434
|
]),
|
|
1435
1435
|
_: 1
|
|
1436
1436
|
}),
|
|
1437
|
-
(d(!0), H(ce, null, Ce(
|
|
1437
|
+
(d(!0), H(ce, null, Ce(r.value, (ne, De) => (d(), b(O, {
|
|
1438
1438
|
key: De,
|
|
1439
1439
|
value: ne.path
|
|
1440
1440
|
}, {
|
|
@@ -1502,7 +1502,7 @@ const An = Qu("column", {
|
|
|
1502
1502
|
trigger: "context-menu",
|
|
1503
1503
|
"min-column-width": 128,
|
|
1504
1504
|
"popup-props": {
|
|
1505
|
-
onVisibleChange: (
|
|
1505
|
+
onVisibleChange: (Qe, be) => M(Qe, be, ne.path),
|
|
1506
1506
|
visible: a.value != "" ? a.value === ne.path : !1,
|
|
1507
1507
|
overlayInnerClassName: `${e}--context-menu`
|
|
1508
1508
|
}
|
|
@@ -1545,7 +1545,7 @@ const An = Qu("column", {
|
|
|
1545
1545
|
]),
|
|
1546
1546
|
_: 2
|
|
1547
1547
|
}, 1032, ["onClick"])) : q("", !0),
|
|
1548
|
-
De <
|
|
1548
|
+
De < r.value.length - 1 ? (d(), b(h, {
|
|
1549
1549
|
key: 2,
|
|
1550
1550
|
onClick: () => P(ne.path, De)
|
|
1551
1551
|
}, {
|
|
@@ -1557,7 +1557,7 @@ const An = Qu("column", {
|
|
|
1557
1557
|
]),
|
|
1558
1558
|
_: 2
|
|
1559
1559
|
}, 1032, ["onClick"])) : q("", !0),
|
|
1560
|
-
|
|
1560
|
+
r.value.length > 1 ? (d(), b(h, {
|
|
1561
1561
|
key: 3,
|
|
1562
1562
|
onClick: () => v(ne.path, De)
|
|
1563
1563
|
}, {
|
|
@@ -1630,7 +1630,7 @@ const An = Qu("column", {
|
|
|
1630
1630
|
trigger: "context-menu",
|
|
1631
1631
|
"min-column-width": 128,
|
|
1632
1632
|
"popup-props": {
|
|
1633
|
-
onVisibleChange: (
|
|
1633
|
+
onVisibleChange: (Qe, be) => M(Qe, be, ne.path),
|
|
1634
1634
|
visible: a.value != "" ? a.value === ne.path : !1,
|
|
1635
1635
|
overlayInnerClassName: `${e}--context-menu`
|
|
1636
1636
|
}
|
|
@@ -1685,7 +1685,7 @@ const An = Qu("column", {
|
|
|
1685
1685
|
]),
|
|
1686
1686
|
_: 2
|
|
1687
1687
|
}, 1032, ["onClick"])) : q("", !0),
|
|
1688
|
-
C.value.length + De >= 0 && De <
|
|
1688
|
+
C.value.length + De >= 0 && De < r.value.length ? (d(), b(h, {
|
|
1689
1689
|
key: 2,
|
|
1690
1690
|
onClick: () => P(
|
|
1691
1691
|
ne.path,
|
|
@@ -1702,7 +1702,7 @@ const An = Qu("column", {
|
|
|
1702
1702
|
]),
|
|
1703
1703
|
_: 2
|
|
1704
1704
|
}, 1032, ["onClick"])) : q("", !0),
|
|
1705
|
-
C.value.length + De > 0 &&
|
|
1705
|
+
C.value.length + De > 0 && r.value.length > 2 ? (d(), b(h, {
|
|
1706
1706
|
key: 3,
|
|
1707
1707
|
onClick: () => v(
|
|
1708
1708
|
ne.path,
|
|
@@ -1827,7 +1827,7 @@ function e0(t, u) {
|
|
|
1827
1827
|
const Lo = { render: e0 }, u0 = { class: "username" }, t0 = /* @__PURE__ */ oe({
|
|
1828
1828
|
__name: "GLayoutHeader",
|
|
1829
1829
|
setup(t) {
|
|
1830
|
-
const { T: u } = Ae(), e = `${nu}__header`, n = ou(), o = Se(), a = ve(Mn, null), i = a == null ? void 0 : a.GLayoutHeaderOperationsRef, l = a == null ? void 0 : a.GLayoutHeaderConfigRef,
|
|
1830
|
+
const { T: u } = Ae(), e = `${nu}__header`, n = ou(), o = Se(), a = ve(Mn, null), i = a == null ? void 0 : a.GLayoutHeaderOperationsRef, l = a == null ? void 0 : a.GLayoutHeaderConfigRef, r = a == null ? void 0 : a.SideMenuConfigRef, c = Q(() => o.userType), s = Q(() => {
|
|
1831
1831
|
if ((c.value ?? "") != "")
|
|
1832
1832
|
switch (c.value) {
|
|
1833
1833
|
case "normal":
|
|
@@ -1850,7 +1850,7 @@ const Lo = { render: e0 }, u0 = { class: "username" }, t0 = /* @__PURE__ */ oe({
|
|
|
1850
1850
|
}
|
|
1851
1851
|
const f = Q(() => o.sideHoverMenuTimer);
|
|
1852
1852
|
function B() {
|
|
1853
|
-
|
|
1853
|
+
r != null && r.value.enableHoverMenu && !o.isSideMenuCollapse && (clearTimeout(f.value), o.isSideHoverMenuShow = !0);
|
|
1854
1854
|
}
|
|
1855
1855
|
function T() {
|
|
1856
1856
|
o.sideHoverMenuTimer = setTimeout(() => {
|
|
@@ -1880,7 +1880,7 @@ const Lo = { render: e0 }, u0 = { class: "username" }, t0 = /* @__PURE__ */ oe({
|
|
|
1880
1880
|
ee("div", {
|
|
1881
1881
|
class: K(`${e}--collapse-button`)
|
|
1882
1882
|
}, [
|
|
1883
|
-
(O = A(
|
|
1883
|
+
(O = A(r)) != null && O.enableSideMenu ? (d(), b(C, {
|
|
1884
1884
|
key: 0,
|
|
1885
1885
|
theme: "default",
|
|
1886
1886
|
shape: "square",
|
|
@@ -2025,7 +2025,7 @@ const Lo = { render: e0 }, u0 = { class: "username" }, t0 = /* @__PURE__ */ oe({
|
|
|
2025
2025
|
theme: "default",
|
|
2026
2026
|
variant: "text",
|
|
2027
2027
|
style: { width: "150px" },
|
|
2028
|
-
title:
|
|
2028
|
+
title: s.value
|
|
2029
2029
|
}, {
|
|
2030
2030
|
icon: k(() => [
|
|
2031
2031
|
_(A(Zi), {
|
|
@@ -2036,7 +2036,7 @@ const Lo = { render: e0 }, u0 = { class: "username" }, t0 = /* @__PURE__ */ oe({
|
|
|
2036
2036
|
_(A(Sa), { size: "20" })
|
|
2037
2037
|
]),
|
|
2038
2038
|
default: k(() => [
|
|
2039
|
-
ee("span", u0, ue(
|
|
2039
|
+
ee("span", u0, ue(s.value), 1)
|
|
2040
2040
|
]),
|
|
2041
2041
|
_: 1
|
|
2042
2042
|
}, 8, ["title"])
|
|
@@ -2176,52 +2176,52 @@ const au = (t, u) => {
|
|
|
2176
2176
|
n.push(a);
|
|
2177
2177
|
};
|
|
2178
2178
|
return (a, i) => {
|
|
2179
|
-
const l = Z("t-menu-item"),
|
|
2180
|
-
return d(!0), H(ce, null, Ce(a.sideMenuTree, (
|
|
2179
|
+
const l = Z("t-menu-item"), r = Z("GLayoutSideMenuContent", !0), c = Z("t-submenu");
|
|
2180
|
+
return d(!0), H(ce, null, Ce(a.sideMenuTree, (s) => (d(), H("div", {
|
|
2181
2181
|
class: K(`${u}`),
|
|
2182
|
-
key:
|
|
2182
|
+
key: s.name
|
|
2183
2183
|
}, [
|
|
2184
|
-
!
|
|
2185
|
-
class: K(`${u}--level${
|
|
2186
|
-
name:
|
|
2187
|
-
value:
|
|
2188
|
-
key:
|
|
2189
|
-
onClick: (M) => o(
|
|
2184
|
+
!s.children || !s.children.length ? (d(), b(l, {
|
|
2185
|
+
class: K(`${u}--level${s.level}`),
|
|
2186
|
+
name: s.path,
|
|
2187
|
+
value: s.path,
|
|
2188
|
+
key: s.name,
|
|
2189
|
+
onClick: (M) => o(s.path)
|
|
2190
2190
|
}, {
|
|
2191
2191
|
icon: k(() => [
|
|
2192
|
-
|
|
2192
|
+
s.level == 1 ? (d(), b(pt, {
|
|
2193
2193
|
key: 0,
|
|
2194
|
-
title:
|
|
2195
|
-
icon:
|
|
2194
|
+
title: s.title,
|
|
2195
|
+
icon: s.icon
|
|
2196
2196
|
}, null, 8, ["title", "icon"])) : q("", !0)
|
|
2197
2197
|
]),
|
|
2198
2198
|
content: k(() => [
|
|
2199
|
-
_(ft, { item:
|
|
2199
|
+
_(ft, { item: s }, null, 8, ["item"])
|
|
2200
2200
|
]),
|
|
2201
2201
|
_: 2
|
|
2202
2202
|
}, 1032, ["class", "name", "value", "onClick"])) : (d(), b(c, {
|
|
2203
|
-
class: K(`${u}--level${
|
|
2204
|
-
name:
|
|
2205
|
-
value:
|
|
2206
|
-
key:
|
|
2203
|
+
class: K(`${u}--level${s.level}`),
|
|
2204
|
+
name: s.name,
|
|
2205
|
+
value: s.name,
|
|
2206
|
+
key: s.name,
|
|
2207
2207
|
popupProps: {
|
|
2208
2208
|
overlayClassName: `${u}__submenu-popup`
|
|
2209
2209
|
}
|
|
2210
2210
|
}, {
|
|
2211
2211
|
icon: k(() => [
|
|
2212
|
-
|
|
2212
|
+
s.level == 1 ? (d(), b(pt, {
|
|
2213
2213
|
key: 0,
|
|
2214
|
-
title:
|
|
2215
|
-
icon:
|
|
2214
|
+
title: s.title,
|
|
2215
|
+
icon: s.icon
|
|
2216
2216
|
}, null, 8, ["title", "icon"])) : q("", !0)
|
|
2217
2217
|
]),
|
|
2218
2218
|
title: k(() => [
|
|
2219
|
-
_(ft, { item:
|
|
2219
|
+
_(ft, { item: s }, null, 8, ["item"])
|
|
2220
2220
|
]),
|
|
2221
2221
|
default: k(() => [
|
|
2222
|
-
|
|
2223
|
-
sideMenuTree:
|
|
2224
|
-
key:
|
|
2222
|
+
s.children ? (d(), b(r, {
|
|
2223
|
+
sideMenuTree: s.children,
|
|
2224
|
+
key: s.name
|
|
2225
2225
|
}, null, 8, ["sideMenuTree"])) : q("", !0)
|
|
2226
2226
|
]),
|
|
2227
2227
|
_: 2
|
|
@@ -2241,16 +2241,16 @@ const au = (t, u) => {
|
|
|
2241
2241
|
set() {
|
|
2242
2242
|
n.toggleSideMenuCollapse();
|
|
2243
2243
|
}
|
|
2244
|
-
}), l = Q(() => n.sideMenuWidth),
|
|
2244
|
+
}), l = Q(() => n.sideMenuWidth), r = Q(() => {
|
|
2245
2245
|
const w = e.fullPath.split("/").length;
|
|
2246
2246
|
return e.fullPath.split("/")[w - 1];
|
|
2247
|
-
}), { sideMenuExpanded: c, sideMenuScrollTop:
|
|
2248
|
-
|
|
2247
|
+
}), { sideMenuExpanded: c, sideMenuScrollTop: s } = ma(n), M = R(null);
|
|
2248
|
+
Ue(() => {
|
|
2249
2249
|
const w = document.querySelector(".t-menu--scroll");
|
|
2250
|
-
w &&
|
|
2250
|
+
w && s.value && (w.scrollTop = s.value);
|
|
2251
2251
|
}), uu(() => {
|
|
2252
2252
|
const w = document.querySelector(".t-menu--scroll");
|
|
2253
|
-
w && (
|
|
2253
|
+
w && (s.value = w.scrollTop);
|
|
2254
2254
|
});
|
|
2255
2255
|
const N = Q(() => n.isSideSelfDragging);
|
|
2256
2256
|
function I() {
|
|
@@ -2281,7 +2281,7 @@ const au = (t, u) => {
|
|
|
2281
2281
|
n.setSideMenuWidth(w), n.setIsSideSelfDragging(!0);
|
|
2282
2282
|
}
|
|
2283
2283
|
const v = Q(() => l.value <= 80), z = R(!1);
|
|
2284
|
-
return
|
|
2284
|
+
return Ue(() => {
|
|
2285
2285
|
z.value = !1, setTimeout(() => {
|
|
2286
2286
|
z.value = !0;
|
|
2287
2287
|
}, 100);
|
|
@@ -2309,7 +2309,7 @@ const au = (t, u) => {
|
|
|
2309
2309
|
_(B, {
|
|
2310
2310
|
width: "100%",
|
|
2311
2311
|
theme: a.value,
|
|
2312
|
-
value:
|
|
2312
|
+
value: r.value,
|
|
2313
2313
|
expanded: A(c),
|
|
2314
2314
|
"onUpdate:expanded": f[0] || (f[0] = (p) => Na(c) ? c.value = p : null),
|
|
2315
2315
|
ref_key: "sideMenuRef",
|
|
@@ -2328,7 +2328,7 @@ const au = (t, u) => {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
|
-
const
|
|
2331
|
+
const Us = [
|
|
2332
2332
|
"#0052d9",
|
|
2333
2333
|
"#0594fa",
|
|
2334
2334
|
"#00a870",
|
|
@@ -2337,7 +2337,7 @@ const vs = [
|
|
|
2337
2337
|
"#ed7b2f",
|
|
2338
2338
|
"#eb5689",
|
|
2339
2339
|
"#834ec2"
|
|
2340
|
-
],
|
|
2340
|
+
], Qs = [
|
|
2341
2341
|
"#4582e6",
|
|
2342
2342
|
"#29a4fb",
|
|
2343
2343
|
"#03a56f",
|
|
@@ -2475,12 +2475,12 @@ const vs = [
|
|
|
2475
2475
|
set() {
|
|
2476
2476
|
n.toggleSettingPanel();
|
|
2477
2477
|
}
|
|
2478
|
-
}),
|
|
2478
|
+
}), r = () => {
|
|
2479
2479
|
n.changeTheme(i.value);
|
|
2480
|
-
}, c = (
|
|
2481
|
-
background: po(
|
|
2480
|
+
}, c = (s) => ({
|
|
2481
|
+
background: po(s, Oo)["--td-brand-color"]
|
|
2482
2482
|
});
|
|
2483
|
-
return (
|
|
2483
|
+
return (s, M) => {
|
|
2484
2484
|
const N = Z("t-radio-button"), I = Z("t-radio-group"), j = Z("t-drawer");
|
|
2485
2485
|
return d(), b(j, {
|
|
2486
2486
|
class: K(`${e}`),
|
|
@@ -2507,7 +2507,7 @@ const vs = [
|
|
|
2507
2507
|
_(I, {
|
|
2508
2508
|
modelValue: i.value.brandTheme,
|
|
2509
2509
|
"onUpdate:modelValue": M[0] || (M[0] = (x) => i.value.brandTheme = x),
|
|
2510
|
-
onChange:
|
|
2510
|
+
onChange: r
|
|
2511
2511
|
}, {
|
|
2512
2512
|
default: k(() => [
|
|
2513
2513
|
(d(!0), H(ce, null, Ce(o.slice(0, o.length - 1), (x, P) => (d(), H("div", { key: P }, [
|
|
@@ -2535,7 +2535,7 @@ const vs = [
|
|
|
2535
2535
|
modelValue: i.value.displayMode,
|
|
2536
2536
|
"onUpdate:modelValue": M[1] || (M[1] = (x) => i.value.displayMode = x),
|
|
2537
2537
|
variant: "default-filled",
|
|
2538
|
-
onChange:
|
|
2538
|
+
onChange: r
|
|
2539
2539
|
}, {
|
|
2540
2540
|
default: k(() => [
|
|
2541
2541
|
(d(), H(ce, null, Ce(a, (x, P) => ee("div", { key: P }, [
|
|
@@ -2583,7 +2583,7 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2583
2583
|
},
|
|
2584
2584
|
emits: ["menuClick"],
|
|
2585
2585
|
setup(t, { emit: u }) {
|
|
2586
|
-
const e = t, n = R(null), o = R(""), a = R(!1), i = R([]), l = R(150),
|
|
2586
|
+
const e = t, n = R(null), o = R(""), a = R(!1), i = R([]), l = R(150), r = R(null), c = R(""), s = R(0), M = `${nu}__side-hover-menu`, N = `${nu}__side-hover-menu-content`, I = (T) => [
|
|
2587
2587
|
`${N}--level${T.level}`,
|
|
2588
2588
|
`${N}--hover-menu-item`
|
|
2589
2589
|
], j = (T) => {
|
|
@@ -2591,7 +2591,7 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2591
2591
|
return [
|
|
2592
2592
|
`${N}--sub-menu`,
|
|
2593
2593
|
`${N}--level${T.level}`,
|
|
2594
|
-
{ "t-is-active": ((p =
|
|
2594
|
+
{ "t-is-active": ((p = r.value) == null ? void 0 : p.name) === T.name },
|
|
2595
2595
|
{ "t-is-selected": o.value === T.name }
|
|
2596
2596
|
];
|
|
2597
2597
|
}, P = Ra(() => {
|
|
@@ -2605,17 +2605,17 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2605
2605
|
}).filter(Boolean);
|
|
2606
2606
|
l.value = Math.max(e.level === 1 ? 232 : 150, ...p);
|
|
2607
2607
|
}, 150), v = (T) => {
|
|
2608
|
-
i.value = [], a.value = !1,
|
|
2608
|
+
i.value = [], a.value = !1, r.value = T, c.value = "", s.value = 0, o.value = "";
|
|
2609
2609
|
}, z = (T) => {
|
|
2610
2610
|
var p;
|
|
2611
|
-
(p = T.children) != null && p.length && (i.value = T.children,
|
|
2611
|
+
(p = T.children) != null && p.length && (i.value = T.children, r.value = T, c.value = T.menuKey ?? "", s.value = e.parentWidth + l.value, o.value = T.name), setTimeout(() => {
|
|
2612
2612
|
a.value = !0;
|
|
2613
2613
|
}, 100);
|
|
2614
2614
|
};
|
|
2615
2615
|
Te(
|
|
2616
2616
|
() => e.isVisible,
|
|
2617
2617
|
(T) => {
|
|
2618
|
-
T ? P() : (a.value = !1, i.value = [],
|
|
2618
|
+
T ? P() : (a.value = !1, i.value = [], r.value = null, c.value = "", o.value = "");
|
|
2619
2619
|
},
|
|
2620
2620
|
{
|
|
2621
2621
|
immediate: !0
|
|
@@ -2723,7 +2723,7 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2723
2723
|
"active-path": T.activePath,
|
|
2724
2724
|
"display-mode": T.displayMode,
|
|
2725
2725
|
"is-visible": a.value,
|
|
2726
|
-
"parent-width":
|
|
2726
|
+
"parent-width": s.value,
|
|
2727
2727
|
onMenuClick: p[1] || (p[1] = (m) => T.$emit("menuClick", m))
|
|
2728
2728
|
}, null, 8, ["menu-items", "level", "active-path", "display-mode", "is-visible", "parent-width"])) : q("", !0)
|
|
2729
2729
|
], 64);
|
|
@@ -2735,10 +2735,10 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2735
2735
|
const u = ou(), e = Iu(), n = Se(), o = Q(() => n.sideMenuTree), a = Q(() => n.displayMode), i = Q({
|
|
2736
2736
|
get: () => n.isSideHoverMenuShow,
|
|
2737
2737
|
set: (I) => n.isSideHoverMenuShow = I
|
|
2738
|
-
}), l = Q(() => n.sideHoverMenuTimer),
|
|
2738
|
+
}), l = Q(() => n.sideHoverMenuTimer), r = Q(() => {
|
|
2739
2739
|
const I = e.fullPath.split("/");
|
|
2740
2740
|
return I[I.length - 1];
|
|
2741
|
-
}), c = R(null),
|
|
2741
|
+
}), c = R(null), s = () => {
|
|
2742
2742
|
n.sideHoverMenuTimer = setTimeout(() => {
|
|
2743
2743
|
n.isSideHoverMenuShow && (n.isSideHoverMenuShow = !1), clearTimeout(l.value);
|
|
2744
2744
|
}, 500);
|
|
@@ -2774,12 +2774,12 @@ const c0 = /* @__PURE__ */ au(s0, [["render", M0]]), D0 = /* @__PURE__ */ oe({
|
|
|
2774
2774
|
ref_key: "menuRef",
|
|
2775
2775
|
ref: c,
|
|
2776
2776
|
onMouseenter: M,
|
|
2777
|
-
onMouseleave:
|
|
2777
|
+
onMouseleave: s
|
|
2778
2778
|
}, [
|
|
2779
2779
|
_(D0, {
|
|
2780
2780
|
"menu-items": o.value,
|
|
2781
2781
|
level: 1,
|
|
2782
|
-
"active-path":
|
|
2782
|
+
"active-path": r.value,
|
|
2783
2783
|
"display-mode": a.value,
|
|
2784
2784
|
"is-visible": i.value,
|
|
2785
2785
|
"parent-width": 0,
|
|
@@ -2948,7 +2948,7 @@ const So = We(j0), A0 = /* @__PURE__ */ oe({
|
|
|
2948
2948
|
};
|
|
2949
2949
|
}
|
|
2950
2950
|
});
|
|
2951
|
-
const
|
|
2951
|
+
const bs = We(A0), m0 = /* @__PURE__ */ oe({
|
|
2952
2952
|
__name: "GCommonTable",
|
|
2953
2953
|
props: {
|
|
2954
2954
|
tableType: { default: "primary" },
|
|
@@ -2975,7 +2975,7 @@ const Qs = We(A0), m0 = /* @__PURE__ */ oe({
|
|
|
2975
2975
|
}
|
|
2976
2976
|
}));
|
|
2977
2977
|
return (o, a) => {
|
|
2978
|
-
const i = Z("t-table"), l = Z("t-primary-table"),
|
|
2978
|
+
const i = Z("t-table"), l = Z("t-primary-table"), r = Z("t-enhanced-table");
|
|
2979
2979
|
return d(), H("div", {
|
|
2980
2980
|
class: K(`${A(pi)}`)
|
|
2981
2981
|
}, [
|
|
@@ -2984,10 +2984,10 @@ const Qs = We(A0), m0 = /* @__PURE__ */ oe({
|
|
|
2984
2984
|
ref_key: "tTableRef",
|
|
2985
2985
|
ref: e
|
|
2986
2986
|
}, { ...n.value, ...o.commonTableProps }), Ru({ _: 2 }, [
|
|
2987
|
-
Ce(o.$slots, (c,
|
|
2988
|
-
name:
|
|
2987
|
+
Ce(o.$slots, (c, s) => ({
|
|
2988
|
+
name: s,
|
|
2989
2989
|
fn: k((M) => [
|
|
2990
|
-
Pe(o.$slots,
|
|
2990
|
+
Pe(o.$slots, s, ku(ot({ ...M })))
|
|
2991
2991
|
])
|
|
2992
2992
|
}))
|
|
2993
2993
|
]), 1040)) : o.tableType == "primary" ? (d(), b(l, ye({
|
|
@@ -2995,21 +2995,21 @@ const Qs = We(A0), m0 = /* @__PURE__ */ oe({
|
|
|
2995
2995
|
ref_key: "tTableRef",
|
|
2996
2996
|
ref: e
|
|
2997
2997
|
}, { ...n.value, ...o.commonTableProps }), Ru({ _: 2 }, [
|
|
2998
|
-
Ce(o.$slots, (c,
|
|
2999
|
-
name:
|
|
2998
|
+
Ce(o.$slots, (c, s) => ({
|
|
2999
|
+
name: s,
|
|
3000
3000
|
fn: k((M) => [
|
|
3001
|
-
Pe(o.$slots,
|
|
3001
|
+
Pe(o.$slots, s, ku(ot({ ...M })))
|
|
3002
3002
|
])
|
|
3003
3003
|
}))
|
|
3004
|
-
]), 1040)) : o.tableType === "enhanced" ? (d(), b(
|
|
3004
|
+
]), 1040)) : o.tableType === "enhanced" ? (d(), b(r, ye({
|
|
3005
3005
|
key: 2,
|
|
3006
3006
|
ref_key: "tTableRef",
|
|
3007
3007
|
ref: e
|
|
3008
3008
|
}, { ...n.value, ...o.commonTableProps }), Ru({ _: 2 }, [
|
|
3009
|
-
Ce(o.$slots, (c,
|
|
3010
|
-
name:
|
|
3009
|
+
Ce(o.$slots, (c, s) => ({
|
|
3010
|
+
name: s,
|
|
3011
3011
|
fn: k((M) => [
|
|
3012
|
-
Pe(o.$slots,
|
|
3012
|
+
Pe(o.$slots, s, ku(ot({ ...M })))
|
|
3013
3013
|
])
|
|
3014
3014
|
}))
|
|
3015
3015
|
]), 1040)) : q("", !0)
|
|
@@ -3038,7 +3038,7 @@ function E0(t) {
|
|
|
3038
3038
|
params: t
|
|
3039
3039
|
});
|
|
3040
3040
|
}
|
|
3041
|
-
const
|
|
3041
|
+
const Ys = "GView";
|
|
3042
3042
|
nn.enableBoundaryChecking(!1);
|
|
3043
3043
|
const ut = (t) => {
|
|
3044
3044
|
const u = t.responseText || t.response;
|
|
@@ -3061,9 +3061,9 @@ const ut = (t) => {
|
|
|
3061
3061
|
fileSize: a,
|
|
3062
3062
|
isLargeFile: i,
|
|
3063
3063
|
fileReadyKey: l,
|
|
3064
|
-
thread:
|
|
3064
|
+
thread: r,
|
|
3065
3065
|
chunkSize: c,
|
|
3066
|
-
onProgress:
|
|
3066
|
+
onProgress: s = Gt,
|
|
3067
3067
|
onSuccess: M = Gt,
|
|
3068
3068
|
onError: N = Gt
|
|
3069
3069
|
}) => {
|
|
@@ -3073,7 +3073,7 @@ const ut = (t) => {
|
|
|
3073
3073
|
let D = 0;
|
|
3074
3074
|
z.forEach((C) => {
|
|
3075
3075
|
D += C;
|
|
3076
|
-
}), T = D > 0 ? Math.min(Math.floor(D / a * 100), 99) / 100 : 0,
|
|
3076
|
+
}), T = D > 0 ? Math.min(Math.floor(D / a * 100), 99) / 100 : 0, s(T, p);
|
|
3077
3077
|
}
|
|
3078
3078
|
function f(T, p) {
|
|
3079
3079
|
let D = 0, C = 0, V = !1, g = [];
|
|
@@ -3133,7 +3133,7 @@ const ut = (t) => {
|
|
|
3133
3133
|
});
|
|
3134
3134
|
let D = [];
|
|
3135
3135
|
try {
|
|
3136
|
-
D = f(p,
|
|
3136
|
+
D = f(p, r ?? 1);
|
|
3137
3137
|
} catch (C) {
|
|
3138
3138
|
N(C);
|
|
3139
3139
|
}
|
|
@@ -3142,7 +3142,7 @@ const ut = (t) => {
|
|
|
3142
3142
|
const T = new XMLHttpRequest();
|
|
3143
3143
|
o && (T.withCredentials = o), T.upload.onprogress = (D) => {
|
|
3144
3144
|
const C = D.total > 0 ? nn.round(D.loaded / D.total, 2) : 0;
|
|
3145
|
-
|
|
3145
|
+
s(C, D);
|
|
3146
3146
|
}, T.onerror = function(C) {
|
|
3147
3147
|
N(C);
|
|
3148
3148
|
}, T.onload = () => {
|
|
@@ -3167,7 +3167,7 @@ const ut = (t) => {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
}, wo = (t) => (t.indexOf(".") > -1 ? `.${t.split(".").pop()}` : "").toLowerCase(), p0 = (t, u) => {
|
|
3169
3169
|
if (u && t) {
|
|
3170
|
-
const e =
|
|
3170
|
+
const e = hu(u) ? u : u.split(",").map((o) => o.trim()).filter((o) => o), n = wo(t.name);
|
|
3171
3171
|
return e.some((o) => {
|
|
3172
3172
|
const a = o && o.toLowerCase(), i = (t.type || "").toLowerCase(), l = i.split("/")[0];
|
|
3173
3173
|
if (a === i || `${l}${n.replace(".", "/")}` === a || /^\*(\/\*)?$/.test(a))
|
|
@@ -3175,8 +3175,8 @@ const ut = (t) => {
|
|
|
3175
3175
|
if (/\/\*/.test(a))
|
|
3176
3176
|
return i.replace(/\/.*$/, "") === a.replace(/\/.*$/, "");
|
|
3177
3177
|
if (/\..*/.test(a)) {
|
|
3178
|
-
let
|
|
3179
|
-
return (a === ".jpg" || a === ".jpeg") && (
|
|
3178
|
+
let r = [a];
|
|
3179
|
+
return (a === ".jpg" || a === ".jpeg") && (r = [".jpg", ".jpeg"]), r.indexOf(n) > -1;
|
|
3180
3180
|
}
|
|
3181
3181
|
return !1;
|
|
3182
3182
|
});
|
|
@@ -3192,20 +3192,20 @@ const ut = (t) => {
|
|
|
3192
3192
|
const u = { fileId: `${it(10)}-root`, filename: "root", childFiles: [] };
|
|
3193
3193
|
for (const i of t) {
|
|
3194
3194
|
const l = (e = i == null ? void 0 : i.relativePath) == null ? void 0 : e.split("/");
|
|
3195
|
-
let
|
|
3195
|
+
let r = u;
|
|
3196
3196
|
if (l) {
|
|
3197
3197
|
for (const c of l.slice(0, -1)) {
|
|
3198
|
-
let
|
|
3198
|
+
let s = (n = r == null ? void 0 : r.childFiles) == null ? void 0 : n.find(
|
|
3199
3199
|
(M) => M.filename === c
|
|
3200
3200
|
);
|
|
3201
|
-
|
|
3201
|
+
s || (s = {
|
|
3202
3202
|
fileId: `${it(10)}-${c}`,
|
|
3203
3203
|
filename: c,
|
|
3204
3204
|
fileUploadType: "path",
|
|
3205
3205
|
childFiles: []
|
|
3206
|
-
}, (o =
|
|
3206
|
+
}, (o = r == null ? void 0 : r.childFiles) == null || o.push(s)), r = s;
|
|
3207
3207
|
}
|
|
3208
|
-
(a =
|
|
3208
|
+
(a = r == null ? void 0 : r.childFiles) == null || a.push({
|
|
3209
3209
|
...i,
|
|
3210
3210
|
filename: l[l.length - 1],
|
|
3211
3211
|
url: i.url,
|
|
@@ -3266,7 +3266,7 @@ const ut = (t) => {
|
|
|
3266
3266
|
so(), R(!1);
|
|
3267
3267
|
const i = R(null), l = R(null);
|
|
3268
3268
|
R(0);
|
|
3269
|
-
const
|
|
3269
|
+
const r = (N) => {
|
|
3270
3270
|
if (!a.disabled) {
|
|
3271
3271
|
if (wu(a.onButtonClick)) {
|
|
3272
3272
|
const I = a.onButtonClick(N);
|
|
@@ -3282,7 +3282,7 @@ const ut = (t) => {
|
|
|
3282
3282
|
}, c = (N) => {
|
|
3283
3283
|
const I = N.target;
|
|
3284
3284
|
I.files && a.uploadFiles(Gn(I.files)), I.value = "";
|
|
3285
|
-
},
|
|
3285
|
+
}, s = Q(() => a.fileList && Array.isArray(a.fileList) && a.fileList.some((N) => N.status === "uploading") ? "uploading" : "normal"), M = Q(() => {
|
|
3286
3286
|
if (a.fileList && Array.isArray(a.fileList) && a.fileList.length > 0) {
|
|
3287
3287
|
const I = a.fileList.reduce((j, x) => j + (x.percent || 0), 0) / a.fileList.length * 100;
|
|
3288
3288
|
return Math.round(I);
|
|
@@ -3295,7 +3295,7 @@ const ut = (t) => {
|
|
|
3295
3295
|
ref_key: "dropRef",
|
|
3296
3296
|
ref: l,
|
|
3297
3297
|
class: K(o.value),
|
|
3298
|
-
onClick:
|
|
3298
|
+
onClick: r
|
|
3299
3299
|
}, [
|
|
3300
3300
|
ee("input", ye({
|
|
3301
3301
|
ref_key: "inputRef",
|
|
@@ -3316,7 +3316,7 @@ const ut = (t) => {
|
|
|
3316
3316
|
var x;
|
|
3317
3317
|
return [
|
|
3318
3318
|
(x = A(e)) != null && x.showButtonProgress ? (d(), H(ce, { key: 0 }, [
|
|
3319
|
-
|
|
3319
|
+
s.value == "normal" ? (d(), b(A(vn), {
|
|
3320
3320
|
key: 0,
|
|
3321
3321
|
size: "14"
|
|
3322
3322
|
})) : (d(), b(A(go), {
|
|
@@ -3357,8 +3357,8 @@ const ut = (t) => {
|
|
|
3357
3357
|
},
|
|
3358
3358
|
setup(t) {
|
|
3359
3359
|
const { T: u } = Ae(), e = ve(Bu, void 0), o = `${Q(() => `${e == null ? void 0 : e.uploaderClass}`).value}__progress`, a = (l) => `${Math.round(l * 1e4) / 100}%`, i = (l) => Math.round(l * 1e4) / 100;
|
|
3360
|
-
return (l,
|
|
3361
|
-
var c,
|
|
3360
|
+
return (l, r) => {
|
|
3361
|
+
var c, s, M, N, I, j;
|
|
3362
3362
|
return d(), H("span", {
|
|
3363
3363
|
class: K(o)
|
|
3364
3364
|
}, [
|
|
@@ -3373,12 +3373,12 @@ const ut = (t) => {
|
|
|
3373
3373
|
}, null, 8, ["percentage"]),
|
|
3374
3374
|
ee("span", {
|
|
3375
3375
|
class: K(`${o}--text`)
|
|
3376
|
-
}, ue(a(((
|
|
3376
|
+
}, ue(a(((s = t.file) == null ? void 0 : s.percent) ?? 100)), 3)
|
|
3377
3377
|
], 64)) : q("", !0),
|
|
3378
3378
|
t.file.status == "error" ? (d(), H("span", {
|
|
3379
3379
|
key: 1,
|
|
3380
3380
|
class: K([(M = A(e)) == null ? void 0 : M.iconClass, `${(N = A(e)) == null ? void 0 : N.iconClass}-upload`]),
|
|
3381
|
-
onClick:
|
|
3381
|
+
onClick: r[0] || (r[0] = (x) => {
|
|
3382
3382
|
var P;
|
|
3383
3383
|
return (P = A(e)) == null ? void 0 : P.onUpload(t.file);
|
|
3384
3384
|
})
|
|
@@ -3414,7 +3414,7 @@ const ut = (t) => {
|
|
|
3414
3414
|
return [
|
|
3415
3415
|
ee("span", {
|
|
3416
3416
|
class: K([(x = A(e)) == null ? void 0 : x.iconClass, `${(P = A(e)) == null ? void 0 : P.iconClass}-start`]),
|
|
3417
|
-
onClick:
|
|
3417
|
+
onClick: r[1] || (r[1] = (v) => {
|
|
3418
3418
|
var z;
|
|
3419
3419
|
return (z = A(e)) == null ? void 0 : z.onUpload(t.file);
|
|
3420
3420
|
})
|
|
@@ -3436,7 +3436,7 @@ const ut = (t) => {
|
|
|
3436
3436
|
return [
|
|
3437
3437
|
ee("span", {
|
|
3438
3438
|
class: K([(x = A(e)) == null ? void 0 : x.iconClass, `${(P = A(e)) == null ? void 0 : P.iconClass}-cancel`]),
|
|
3439
|
-
onClick:
|
|
3439
|
+
onClick: r[2] || (r[2] = (v) => {
|
|
3440
3440
|
var z;
|
|
3441
3441
|
return (z = A(e)) == null ? void 0 : z.onAbort(t.file);
|
|
3442
3442
|
})
|
|
@@ -3464,7 +3464,7 @@ const ut = (t) => {
|
|
|
3464
3464
|
i.url && window.open(i.url, "_blank");
|
|
3465
3465
|
}
|
|
3466
3466
|
return (i, l) => {
|
|
3467
|
-
var
|
|
3467
|
+
var r;
|
|
3468
3468
|
return d(), H("div", {
|
|
3469
3469
|
class: K(o)
|
|
3470
3470
|
}, [
|
|
@@ -3480,7 +3480,7 @@ const ut = (t) => {
|
|
|
3480
3480
|
return [
|
|
3481
3481
|
ee("span", {
|
|
3482
3482
|
class: K([(c = A(e)) == null ? void 0 : c.iconClass]),
|
|
3483
|
-
onClick: l[0] || (l[0] = yt((
|
|
3483
|
+
onClick: l[0] || (l[0] = yt((s) => a(t.file), ["stop"]))
|
|
3484
3484
|
}, [
|
|
3485
3485
|
_(A(ba))
|
|
3486
3486
|
], 2)
|
|
@@ -3496,10 +3496,10 @@ const ut = (t) => {
|
|
|
3496
3496
|
theme: "light"
|
|
3497
3497
|
}, {
|
|
3498
3498
|
default: k(() => {
|
|
3499
|
-
var c,
|
|
3499
|
+
var c, s;
|
|
3500
3500
|
return [
|
|
3501
3501
|
ee("span", {
|
|
3502
|
-
class: K([(c = A(e)) == null ? void 0 : c.iconClass, `${(
|
|
3502
|
+
class: K([(c = A(e)) == null ? void 0 : c.iconClass, `${(s = A(e)) == null ? void 0 : s.iconClass}-error`])
|
|
3503
3503
|
}, [
|
|
3504
3504
|
_(A(Ya))
|
|
3505
3505
|
], 2)
|
|
@@ -3508,11 +3508,11 @@ const ut = (t) => {
|
|
|
3508
3508
|
_: 1
|
|
3509
3509
|
}, 8, ["content"])) : q("", !0),
|
|
3510
3510
|
_(h0, { file: t.file }, null, 8, ["file"]),
|
|
3511
|
-
(
|
|
3511
|
+
(r = A(e)) != null && r.showRemoveButton ? (d(), H("span", {
|
|
3512
3512
|
key: 2,
|
|
3513
3513
|
onClick: l[1] || (l[1] = yt((c) => {
|
|
3514
|
-
var
|
|
3515
|
-
return (M = (
|
|
3514
|
+
var s, M;
|
|
3515
|
+
return (M = (s = A(e)) == null ? void 0 : s.onRemove) == null ? void 0 : M.call(s, t.file);
|
|
3516
3516
|
}, ["stop"]))
|
|
3517
3517
|
}, [
|
|
3518
3518
|
_(A(Su), {
|
|
@@ -3550,17 +3550,17 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3550
3550
|
setup(t) {
|
|
3551
3551
|
const u = ve(Bu, void 0), e = Q(() => `${u == null ? void 0 : u.uploaderClass}`), o = `${`${e.value}__list`}-item`, a = t, i = Q(() => {
|
|
3552
3552
|
var c;
|
|
3553
|
-
let
|
|
3553
|
+
let r = "";
|
|
3554
3554
|
if (a.file.file && a.file.file.type)
|
|
3555
|
-
|
|
3555
|
+
r = a.file.file.type;
|
|
3556
3556
|
else {
|
|
3557
|
-
const
|
|
3558
|
-
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(
|
|
3557
|
+
const s = ((c = a.file.filename) == null ? void 0 : c.split(".")[1]) ?? "";
|
|
3558
|
+
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(s) ? r = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(s) ? r = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(s) && (r = "audio");
|
|
3559
3559
|
}
|
|
3560
|
-
return
|
|
3560
|
+
return r.includes("image") ? at : r.includes("pdf") ? To : r.includes("video") ? un : tn;
|
|
3561
3561
|
}), l = Q(() => a.file.filename ? a.file.filename.length > 25 ? a.file.filename.substring(0, 20) + "..." + a.file.filename.substring(a.file.filename.length - 5) : a.file.filename : "");
|
|
3562
|
-
return (
|
|
3563
|
-
var
|
|
3562
|
+
return (r, c) => {
|
|
3563
|
+
var s;
|
|
3564
3564
|
return d(), H("div", {
|
|
3565
3565
|
class: K([o, `${o}--${t.file.status}`])
|
|
3566
3566
|
}, [
|
|
@@ -3570,7 +3570,7 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3570
3570
|
ee("div", {
|
|
3571
3571
|
class: K(`${o}-name`)
|
|
3572
3572
|
}, [
|
|
3573
|
-
((
|
|
3573
|
+
((s = A(u)) == null ? void 0 : s.listType) == "text" ? (d(), H("span", {
|
|
3574
3574
|
key: 0,
|
|
3575
3575
|
class: K(`${e.value}--icon ${o}-file-icon`)
|
|
3576
3576
|
}, [
|
|
@@ -3634,8 +3634,8 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3634
3634
|
class: K(n.value)
|
|
3635
3635
|
}, {
|
|
3636
3636
|
default: k(() => [
|
|
3637
|
-
(d(!0), H(ce, null, Ce(t.fileList, (l,
|
|
3638
|
-
key: `fileItem-${
|
|
3637
|
+
(d(!0), H(ce, null, Ce(t.fileList, (l, r) => (d(), b(O0, {
|
|
3638
|
+
key: `fileItem-${r}`,
|
|
3639
3639
|
file: l,
|
|
3640
3640
|
listType: t.listType
|
|
3641
3641
|
}, null, 8, ["file", "listType"]))), 128))
|
|
@@ -3652,11 +3652,11 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3652
3652
|
}
|
|
3653
3653
|
},
|
|
3654
3654
|
setup(t) {
|
|
3655
|
-
const u = ve(Bu, void 0), n = `${Q(() => `${u == null ? void 0 : u.uploaderClass}`).value}`, o = Q(() => [`${n}__tree`]), a = t, i = (
|
|
3655
|
+
const u = ve(Bu, void 0), n = `${Q(() => `${u == null ? void 0 : u.uploaderClass}`).value}`, o = Q(() => [`${n}__tree`]), a = t, i = (r, c) => {
|
|
3656
3656
|
var M;
|
|
3657
|
-
let
|
|
3657
|
+
let s = null;
|
|
3658
3658
|
if (c.getChildren())
|
|
3659
|
-
c.expanded ?
|
|
3659
|
+
c.expanded ? s = Ba : s = _a;
|
|
3660
3660
|
else if (c.data.filename) {
|
|
3661
3661
|
let N = "";
|
|
3662
3662
|
if (c.data.type)
|
|
@@ -3665,14 +3665,14 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3665
3665
|
const I = ((M = c.data.filename) == null ? void 0 : M.split(".")[1]) ?? "";
|
|
3666
3666
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(I) ? N = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(I) ? N = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(I) && (N = "audio");
|
|
3667
3667
|
}
|
|
3668
|
-
N.includes("image") && (
|
|
3668
|
+
N.includes("image") && (s = at), N.includes("pdf") && (s = To), N.includes("audio") && (s = un), N.includes("video") && (s = un), s = tn;
|
|
3669
3669
|
} else
|
|
3670
|
-
|
|
3671
|
-
return
|
|
3670
|
+
s = tn;
|
|
3671
|
+
return s && r(s, {});
|
|
3672
3672
|
}, l = Q(() => a.fileTree.childFiles);
|
|
3673
|
-
return (
|
|
3674
|
-
var
|
|
3675
|
-
return t.fileTree && ((M = (
|
|
3673
|
+
return (r, c) => {
|
|
3674
|
+
var s, M;
|
|
3675
|
+
return t.fileTree && ((M = (s = t.fileTree) == null ? void 0 : s.childFiles) != null && M.length) ? (d(), b(A(Ca), {
|
|
3676
3676
|
key: 0,
|
|
3677
3677
|
hover: "",
|
|
3678
3678
|
icon: i,
|
|
@@ -3979,9 +3979,9 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
3979
3979
|
setup(t, { expose: u, emit: e }) {
|
|
3980
3980
|
const { T: n } = Ae(), o = t, a = e, i = so(), {
|
|
3981
3981
|
fileList: l,
|
|
3982
|
-
disabled:
|
|
3982
|
+
disabled: r,
|
|
3983
3983
|
listType: c,
|
|
3984
|
-
showRetryButton:
|
|
3984
|
+
showRetryButton: s,
|
|
3985
3985
|
showCancelButton: M,
|
|
3986
3986
|
showRemoveButton: N,
|
|
3987
3987
|
showPreviewButton: I,
|
|
@@ -4019,8 +4019,8 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
4019
4019
|
if (Y.state == 200)
|
|
4020
4020
|
return Y.data;
|
|
4021
4021
|
}, g = async (h) => {
|
|
4022
|
-
var
|
|
4023
|
-
const Y = ((
|
|
4022
|
+
var be;
|
|
4023
|
+
const Y = ((be = h.file) == null ? void 0 : be.size) ?? 1, W = Y > o.largeLimit;
|
|
4024
4024
|
let J = "";
|
|
4025
4025
|
W && (J = await V(h.file));
|
|
4026
4026
|
const se = (je, G) => {
|
|
@@ -4060,13 +4060,13 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
4060
4060
|
onError: ne
|
|
4061
4061
|
};
|
|
4062
4062
|
h.status = "uploading", h.percent = 0;
|
|
4063
|
-
const
|
|
4064
|
-
w.set(h.fileId,
|
|
4063
|
+
const Qe = wu(o.customRequest) ? o.customRequest(De) : f0(De);
|
|
4064
|
+
w.set(h.fileId, Qe);
|
|
4065
4065
|
}, F = (h) => {
|
|
4066
4066
|
var W;
|
|
4067
4067
|
const Y = w.get(h.fileId);
|
|
4068
4068
|
if (Y)
|
|
4069
|
-
if (
|
|
4069
|
+
if (hu(Y)) {
|
|
4070
4070
|
Y.forEach((se) => {
|
|
4071
4071
|
var me;
|
|
4072
4072
|
(me = se.abort) == null || me.call(se);
|
|
@@ -4130,12 +4130,12 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
4130
4130
|
return tu(
|
|
4131
4131
|
Bu,
|
|
4132
4132
|
Ut({
|
|
4133
|
-
disabled:
|
|
4133
|
+
disabled: r,
|
|
4134
4134
|
listType: c,
|
|
4135
4135
|
uploaderClass: gt,
|
|
4136
4136
|
iconClass: `${gt}--icon`,
|
|
4137
4137
|
showRemoveButton: N,
|
|
4138
|
-
showRetryButton:
|
|
4138
|
+
showRetryButton: s,
|
|
4139
4139
|
showCancelButton: M,
|
|
4140
4140
|
showPreviewButton: I,
|
|
4141
4141
|
showLink: P,
|
|
@@ -4157,7 +4157,7 @@ const Uo = /* @__PURE__ */ au(L0, [["__scopeId", "data-v-8a486150"]]), O0 = /* @
|
|
|
4157
4157
|
}, [
|
|
4158
4158
|
t.showUploadButton ? (d(), b(z0, ye({
|
|
4159
4159
|
key: 0,
|
|
4160
|
-
disabled: A(
|
|
4160
|
+
disabled: A(r),
|
|
4161
4161
|
listType: A(c),
|
|
4162
4162
|
uploaderText: p.value,
|
|
4163
4163
|
uploadFiles: S,
|
|
@@ -4214,11 +4214,11 @@ const cn = We(w0), v0 = { class: "display-column-checkbox" }, U0 = { class: "foo
|
|
|
4214
4214
|
}
|
|
4215
4215
|
const l = (I) => {
|
|
4216
4216
|
a.value = I ? [...e.columnOptions.map((j) => j.value)] : [...e.columnOptions.filter((j) => j.disabled).map((j) => j.value)];
|
|
4217
|
-
},
|
|
4217
|
+
}, r = Q(() => e.columnOptions.length === a.value.length), c = Q(
|
|
4218
4218
|
() => !!(e.columnOptions.length > a.value.length && a.value.length)
|
|
4219
|
-
),
|
|
4219
|
+
), s = u, M = R(!1);
|
|
4220
4220
|
function N() {
|
|
4221
|
-
M.value = !0, o.value = !1,
|
|
4221
|
+
M.value = !0, o.value = !1, s("confirm", a.value), setTimeout(() => {
|
|
4222
4222
|
M.value = !1;
|
|
4223
4223
|
}, 1e3);
|
|
4224
4224
|
}
|
|
@@ -4240,7 +4240,7 @@ const cn = We(w0), v0 = { class: "display-column-checkbox" }, U0 = { class: "foo
|
|
|
4240
4240
|
}, {
|
|
4241
4241
|
default: k(() => [
|
|
4242
4242
|
_(P, {
|
|
4243
|
-
checked:
|
|
4243
|
+
checked: r.value,
|
|
4244
4244
|
indeterminate: c.value,
|
|
4245
4245
|
"on-change": l
|
|
4246
4246
|
}, {
|
|
@@ -4322,19 +4322,19 @@ const b0 = /* @__PURE__ */ au(Q0, [["__scopeId", "data-v-3bfb3e93"]]), Y0 = We(b
|
|
|
4322
4322
|
{ type: "auto", text: u.t("跟随系统") }
|
|
4323
4323
|
]), o = Se(), a = Q(() => o.themeConfig), i = () => {
|
|
4324
4324
|
o.changeTheme(a.value);
|
|
4325
|
-
}, l = (
|
|
4326
|
-
background: po(
|
|
4325
|
+
}, l = (r) => ({
|
|
4326
|
+
background: po(r, Oo)["--td-brand-color"]
|
|
4327
4327
|
});
|
|
4328
|
-
return (
|
|
4329
|
-
const
|
|
4328
|
+
return (r, c) => {
|
|
4329
|
+
const s = Z("t-radio-button"), M = Z("t-radio-group"), N = Z("t-form-item"), I = Z("t-form");
|
|
4330
4330
|
return d(), b(ko, {
|
|
4331
4331
|
commonDialogProps: {
|
|
4332
|
-
visible:
|
|
4333
|
-
onClose:
|
|
4332
|
+
visible: r.visible,
|
|
4333
|
+
onClose: r.onClose,
|
|
4334
4334
|
header: A(u).t("个性化设置"),
|
|
4335
4335
|
footer: !1,
|
|
4336
4336
|
width: "550px",
|
|
4337
|
-
...
|
|
4337
|
+
...r.dialogProps
|
|
4338
4338
|
}
|
|
4339
4339
|
}, {
|
|
4340
4340
|
default: k(() => [
|
|
@@ -4356,7 +4356,7 @@ const b0 = /* @__PURE__ */ au(Q0, [["__scopeId", "data-v-3bfb3e93"]]), Y0 = We(b
|
|
|
4356
4356
|
}, {
|
|
4357
4357
|
default: k(() => [
|
|
4358
4358
|
(d(!0), H(ce, null, Ce(e.slice(0, e.length - 1), (j, x) => (d(), H("div", { key: x }, [
|
|
4359
|
-
(d(), b(
|
|
4359
|
+
(d(), b(s, {
|
|
4360
4360
|
key: x,
|
|
4361
4361
|
value: j,
|
|
4362
4362
|
class: "color-button"
|
|
@@ -4388,7 +4388,7 @@ const b0 = /* @__PURE__ */ au(Q0, [["__scopeId", "data-v-3bfb3e93"]]), Y0 = We(b
|
|
|
4388
4388
|
}, {
|
|
4389
4389
|
default: k(() => [
|
|
4390
4390
|
(d(!0), H(ce, null, Ce(n.value, (j, x) => (d(), H("div", { key: x }, [
|
|
4391
|
-
(d(), b(
|
|
4391
|
+
(d(), b(s, {
|
|
4392
4392
|
key: x,
|
|
4393
4393
|
value: j.type
|
|
4394
4394
|
}, {
|
|
@@ -4413,7 +4413,7 @@ const b0 = /* @__PURE__ */ au(Q0, [["__scopeId", "data-v-3bfb3e93"]]), Y0 = We(b
|
|
|
4413
4413
|
};
|
|
4414
4414
|
}
|
|
4415
4415
|
});
|
|
4416
|
-
const
|
|
4416
|
+
const Bs = We(B0), Zu = {
|
|
4417
4417
|
// 视图 - 获取所有视图 GET
|
|
4418
4418
|
getAllView: "/restapi/s09/gview/boards/all",
|
|
4419
4419
|
// 视图 - 获取一个视图 GET
|
|
@@ -4490,15 +4490,15 @@ const Yo = /* @__PURE__ */ au($0, [["__scopeId", "data-v-b9a9d3f9"]]), V0 = ["ti
|
|
|
4490
4490
|
function l(N) {
|
|
4491
4491
|
i("update:modelValue", N);
|
|
4492
4492
|
}
|
|
4493
|
-
function
|
|
4493
|
+
function r(N) {
|
|
4494
4494
|
e.originValue != N && i("blur:modelValue", N);
|
|
4495
4495
|
}
|
|
4496
4496
|
uu(() => {
|
|
4497
4497
|
l($e(n.value));
|
|
4498
4498
|
});
|
|
4499
|
-
const c = R(),
|
|
4500
|
-
|
|
4501
|
-
|
|
4499
|
+
const c = R(), s = R(!1);
|
|
4500
|
+
Ue(() => {
|
|
4501
|
+
s.value = Gu(c.value);
|
|
4502
4502
|
});
|
|
4503
4503
|
const M = ve(Lt);
|
|
4504
4504
|
return (N, I) => {
|
|
@@ -4507,7 +4507,7 @@ const Yo = /* @__PURE__ */ au($0, [["__scopeId", "data-v-b9a9d3f9"]]), V0 = ["ti
|
|
|
4507
4507
|
ref_key: "formInputRef",
|
|
4508
4508
|
ref: c,
|
|
4509
4509
|
style: { width: "100%" },
|
|
4510
|
-
title:
|
|
4510
|
+
title: s.value ? N.placeholder : ""
|
|
4511
4511
|
}, [
|
|
4512
4512
|
_(j, ye({
|
|
4513
4513
|
modelValue: a.value,
|
|
@@ -4516,7 +4516,7 @@ const Yo = /* @__PURE__ */ au($0, [["__scopeId", "data-v-b9a9d3f9"]]), V0 = ["ti
|
|
|
4516
4516
|
type: o.value,
|
|
4517
4517
|
placeholder: N.placeholder,
|
|
4518
4518
|
onChange: l,
|
|
4519
|
-
onBlur:
|
|
4519
|
+
onBlur: r,
|
|
4520
4520
|
disabled: N.disabled,
|
|
4521
4521
|
clearable: ""
|
|
4522
4522
|
}), null, 16, ["modelValue", "type", "placeholder", "disabled"])
|
|
@@ -4548,8 +4548,8 @@ const Yo = /* @__PURE__ */ au($0, [["__scopeId", "data-v-b9a9d3f9"]]), V0 = ["ti
|
|
|
4548
4548
|
o("update:modelValue", i), e.originValue != i && o("blur:modelValue", i);
|
|
4549
4549
|
}
|
|
4550
4550
|
return (i, l) => {
|
|
4551
|
-
const
|
|
4552
|
-
return d(), b(
|
|
4551
|
+
const r = Z("t-checkbox");
|
|
4552
|
+
return d(), b(r, {
|
|
4553
4553
|
modelValue: n.value,
|
|
4554
4554
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
4555
4555
|
onChange: a,
|
|
@@ -4589,11 +4589,11 @@ const Yo = /* @__PURE__ */ au($0, [["__scopeId", "data-v-b9a9d3f9"]]), V0 = ["ti
|
|
|
4589
4589
|
}
|
|
4590
4590
|
), rt(() => {
|
|
4591
4591
|
a("update:modelValue", $e(n.value));
|
|
4592
|
-
}), (l,
|
|
4592
|
+
}), (l, r) => {
|
|
4593
4593
|
const c = Z("t-switch");
|
|
4594
4594
|
return d(), b(c, {
|
|
4595
4595
|
modelValue: o.value,
|
|
4596
|
-
"onUpdate:modelValue":
|
|
4596
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
4597
4597
|
onChange: i,
|
|
4598
4598
|
disabled: l.disabled
|
|
4599
4599
|
}, null, 8, ["modelValue", "disabled"]);
|
|
@@ -4726,11 +4726,11 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4726
4726
|
listData: o.value,
|
|
4727
4727
|
dataId: a.value,
|
|
4728
4728
|
propsModel: i
|
|
4729
|
-
}),
|
|
4729
|
+
}), r = R(e.modelValue);
|
|
4730
4730
|
Te(
|
|
4731
4731
|
() => e.modelValue,
|
|
4732
4732
|
() => {
|
|
4733
|
-
|
|
4733
|
+
r.value = e.modelValue;
|
|
4734
4734
|
},
|
|
4735
4735
|
{
|
|
4736
4736
|
deep: !0,
|
|
@@ -4738,7 +4738,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4738
4738
|
}
|
|
4739
4739
|
);
|
|
4740
4740
|
const c = u;
|
|
4741
|
-
function
|
|
4741
|
+
function s(M) {
|
|
4742
4742
|
c("update:modelValue", M);
|
|
4743
4743
|
}
|
|
4744
4744
|
return Te(
|
|
@@ -4751,9 +4751,9 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4751
4751
|
}), (M, N) => {
|
|
4752
4752
|
const I = Z("t-radio"), j = Z("t-radio-group");
|
|
4753
4753
|
return d(), b(j, {
|
|
4754
|
-
modelValue:
|
|
4755
|
-
"onUpdate:modelValue": N[0] || (N[0] = (x) =>
|
|
4756
|
-
onChange:
|
|
4754
|
+
modelValue: r.value,
|
|
4755
|
+
"onUpdate:modelValue": N[0] || (N[0] = (x) => r.value = x),
|
|
4756
|
+
onChange: s,
|
|
4757
4757
|
disabled: M.disabled
|
|
4758
4758
|
}, {
|
|
4759
4759
|
default: k(() => [
|
|
@@ -4793,13 +4793,13 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4793
4793
|
}), i = Q(() => {
|
|
4794
4794
|
var z, w;
|
|
4795
4795
|
return ((w = (z = n.formItem) == null ? void 0 : z.listData) == null ? void 0 : w.dataId) ?? "";
|
|
4796
|
-
}), l = ve(Yu, void 0), { options:
|
|
4796
|
+
}), l = ve(Yu, void 0), { options: r } = Ot({
|
|
4797
4797
|
itemType: o.value,
|
|
4798
4798
|
viewName: n.viewName,
|
|
4799
4799
|
listData: a.value,
|
|
4800
4800
|
dataId: i.value,
|
|
4801
4801
|
propsModel: l
|
|
4802
|
-
}), c = ve("isHeaderFormItem", !1),
|
|
4802
|
+
}), c = ve("isHeaderFormItem", !1), s = Q(() => r.value ? c ? [{ label: e.t("全部"), value: "all" }, ...r.value] : r.value : c ? [{ label: e.t("全部"), value: "all" }] : []), M = R(n.modelValue);
|
|
4803
4803
|
Te(
|
|
4804
4804
|
() => n.modelValue,
|
|
4805
4805
|
() => {
|
|
@@ -4826,7 +4826,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4826
4826
|
I($e(o.value, c));
|
|
4827
4827
|
});
|
|
4828
4828
|
const x = R(), P = R(!1);
|
|
4829
|
-
|
|
4829
|
+
Ue(() => {
|
|
4830
4830
|
x.value && (P.value = Gu(x.value));
|
|
4831
4831
|
});
|
|
4832
4832
|
const v = ve(Lt);
|
|
@@ -4843,7 +4843,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4843
4843
|
"onUpdate:modelValue": w[0] || (w[0] = (B) => M.value = B)
|
|
4844
4844
|
}, A(v), {
|
|
4845
4845
|
placeholder: z.placeholder,
|
|
4846
|
-
options:
|
|
4846
|
+
options: s.value,
|
|
4847
4847
|
multiple: z.multiple,
|
|
4848
4848
|
"min-collapsed-num": 2,
|
|
4849
4849
|
disabled: z.disabled,
|
|
@@ -4869,16 +4869,16 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4869
4869
|
setup(t, { emit: u }) {
|
|
4870
4870
|
Ae();
|
|
4871
4871
|
const e = t, n = Q(() => {
|
|
4872
|
-
var
|
|
4873
|
-
return (
|
|
4872
|
+
var s;
|
|
4873
|
+
return (s = e.formItem) == null ? void 0 : s.itemType;
|
|
4874
4874
|
}), o = R(e.modelValue);
|
|
4875
4875
|
Te(
|
|
4876
4876
|
() => e.modelValue,
|
|
4877
4877
|
() => {
|
|
4878
|
-
var
|
|
4878
|
+
var s;
|
|
4879
4879
|
if (e.modelValue == 0 || eu(e.modelValue))
|
|
4880
4880
|
return "";
|
|
4881
|
-
e.modelValue && ((
|
|
4881
|
+
e.modelValue && ((s = e.formItem) == null ? void 0 : s.itemType) == "time_selector" ? o.value = ju(e.modelValue).format("HH:mm:ss") : o.value = e.modelValue;
|
|
4882
4882
|
},
|
|
4883
4883
|
{
|
|
4884
4884
|
deep: !0,
|
|
@@ -4886,11 +4886,11 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4886
4886
|
}
|
|
4887
4887
|
);
|
|
4888
4888
|
const a = u;
|
|
4889
|
-
function i(
|
|
4890
|
-
a("update:modelValue",
|
|
4889
|
+
function i(s) {
|
|
4890
|
+
a("update:modelValue", s);
|
|
4891
4891
|
}
|
|
4892
|
-
function l(
|
|
4893
|
-
e.originValue !=
|
|
4892
|
+
function l(s) {
|
|
4893
|
+
e.originValue != s && a("blur:modelValue", s);
|
|
4894
4894
|
}
|
|
4895
4895
|
Te(
|
|
4896
4896
|
() => e.disabled,
|
|
@@ -4898,40 +4898,40 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4898
4898
|
e.disabled && a("update:modelValue", $e(n.value));
|
|
4899
4899
|
}
|
|
4900
4900
|
);
|
|
4901
|
-
const
|
|
4902
|
-
return
|
|
4903
|
-
|
|
4904
|
-
}), (
|
|
4901
|
+
const r = R(), c = R(!1);
|
|
4902
|
+
return Ue(() => {
|
|
4903
|
+
r.value && (c.value = Gu(r.value));
|
|
4904
|
+
}), (s, M) => {
|
|
4905
4905
|
var j, x, P, v, z;
|
|
4906
4906
|
const N = Z("t-date-picker"), I = Z("t-time-picker");
|
|
4907
4907
|
return d(), H("div", {
|
|
4908
4908
|
ref_key: "formSelectDateTimeRef",
|
|
4909
|
-
ref:
|
|
4909
|
+
ref: r,
|
|
4910
4910
|
style: { width: "100%" },
|
|
4911
|
-
title: c.value ?
|
|
4911
|
+
title: c.value ? s.placeholder : ""
|
|
4912
4912
|
}, [
|
|
4913
|
-
((j =
|
|
4913
|
+
((j = s.formItem) == null ? void 0 : j.itemType) === "date_selector" || ((x = s.formItem) == null ? void 0 : x.itemType) === "date_time_selector" ? (d(), b(N, {
|
|
4914
4914
|
key: 0,
|
|
4915
|
-
"enable-time-picker": ((P =
|
|
4916
|
-
placeholder:
|
|
4915
|
+
"enable-time-picker": ((P = s.formItem) == null ? void 0 : P.itemType) === "date_time_selector",
|
|
4916
|
+
placeholder: s.placeholder,
|
|
4917
4917
|
modelValue: o.value,
|
|
4918
4918
|
"onUpdate:modelValue": M[0] || (M[0] = (w) => o.value = w),
|
|
4919
|
-
format:
|
|
4919
|
+
format: s.formItem.format || "YYYY-MM-DD HH:mm",
|
|
4920
4920
|
valueType: "time-stamp",
|
|
4921
|
-
disabled:
|
|
4921
|
+
disabled: s.disabled,
|
|
4922
4922
|
onChange: i,
|
|
4923
4923
|
onBlur: l,
|
|
4924
4924
|
clearable: ""
|
|
4925
4925
|
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : q("", !0),
|
|
4926
|
-
((v =
|
|
4926
|
+
((v = s.formItem) == null ? void 0 : v.itemType) === "time_selector" ? (d(), b(I, {
|
|
4927
4927
|
key: 1,
|
|
4928
|
-
placeholder:
|
|
4929
|
-
disabled:
|
|
4928
|
+
placeholder: s.placeholder,
|
|
4929
|
+
disabled: s.disabled,
|
|
4930
4930
|
modelValue: o.value,
|
|
4931
4931
|
"onUpdate:modelValue": M[1] || (M[1] = (w) => o.value = w),
|
|
4932
4932
|
onChange: i,
|
|
4933
4933
|
onBlur: l,
|
|
4934
|
-
format: ((z =
|
|
4934
|
+
format: ((z = s.formItem) == null ? void 0 : z.format) || "HH:mm:ss",
|
|
4935
4935
|
clearable: "",
|
|
4936
4936
|
allowInput: ""
|
|
4937
4937
|
}, null, 8, ["placeholder", "disabled", "modelValue", "format"])) : q("", !0)
|
|
@@ -4975,12 +4975,12 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4975
4975
|
treeData: o.value,
|
|
4976
4976
|
dataId: a.value,
|
|
4977
4977
|
propsModel: i
|
|
4978
|
-
}),
|
|
4978
|
+
}), r = u;
|
|
4979
4979
|
function c(x) {
|
|
4980
|
-
|
|
4980
|
+
r("update:modelValue", x);
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4983
|
-
e.originValue != x &&
|
|
4982
|
+
function s(x) {
|
|
4983
|
+
e.originValue != x && r("blur:modelValue", x);
|
|
4984
4984
|
}
|
|
4985
4985
|
Te(() => e.disabled, () => {
|
|
4986
4986
|
e.disabled || c($e(n.value));
|
|
@@ -4988,7 +4988,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
4988
4988
|
c($e(n.value));
|
|
4989
4989
|
});
|
|
4990
4990
|
const M = R(), N = R(!1);
|
|
4991
|
-
|
|
4991
|
+
Ue(() => {
|
|
4992
4992
|
M.value && (N.value = Gu(M.value));
|
|
4993
4993
|
});
|
|
4994
4994
|
const I = R(e.modelValue);
|
|
@@ -5024,7 +5024,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5024
5024
|
disabled: x.disabled,
|
|
5025
5025
|
clearable: !0,
|
|
5026
5026
|
onChange: c,
|
|
5027
|
-
onBlur:
|
|
5027
|
+
onBlur: s
|
|
5028
5028
|
}, null, 8, ["modelValue", "data", "placeholder", "multiple", "treeProps", "disabled"])], 8, K0);
|
|
5029
5029
|
};
|
|
5030
5030
|
}
|
|
@@ -5056,12 +5056,12 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5056
5056
|
treeData: o.value,
|
|
5057
5057
|
dataId: a.value,
|
|
5058
5058
|
propsModel: i
|
|
5059
|
-
}),
|
|
5059
|
+
}), r = u;
|
|
5060
5060
|
function c(j) {
|
|
5061
|
-
|
|
5061
|
+
r("update:modelValue", j);
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5064
|
-
e.originValue != j &&
|
|
5063
|
+
function s(j) {
|
|
5064
|
+
e.originValue != j && r("blur:modelValue", j);
|
|
5065
5065
|
}
|
|
5066
5066
|
Te(
|
|
5067
5067
|
() => e.disabled,
|
|
@@ -5072,7 +5072,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5072
5072
|
c($e(n.value));
|
|
5073
5073
|
});
|
|
5074
5074
|
const M = R(), N = R(!1);
|
|
5075
|
-
|
|
5075
|
+
Ue(() => {
|
|
5076
5076
|
M.value && (N.value = Gu(M.value));
|
|
5077
5077
|
});
|
|
5078
5078
|
const I = R(e.modelValue);
|
|
@@ -5104,7 +5104,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5104
5104
|
treeProps: { valueMode: "all" },
|
|
5105
5105
|
placeholder: j.placeholder,
|
|
5106
5106
|
onChange: c,
|
|
5107
|
-
onBlur:
|
|
5107
|
+
onBlur: s
|
|
5108
5108
|
}, null, 8, ["modelValue", "options", "multiple", "disabled", "placeholder"])
|
|
5109
5109
|
], 8, q0);
|
|
5110
5110
|
};
|
|
@@ -5141,16 +5141,16 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5141
5141
|
}
|
|
5142
5142
|
);
|
|
5143
5143
|
function i(c) {
|
|
5144
|
-
const
|
|
5144
|
+
const s = ht(c);
|
|
5145
5145
|
if (n.formItem.fileUploadType == "file")
|
|
5146
|
-
if (
|
|
5147
|
-
const { response: M, filename: N, url: I } =
|
|
5146
|
+
if (s.length && s.every((M) => M.status == "done")) {
|
|
5147
|
+
const { response: M, filename: N, url: I } = s[0];
|
|
5148
5148
|
console.log("上传成功", M, N, I), M && M.state == 200 ? (pe.success(`${N} ${e.t("上传成功")}`), o("update:modelValue", I), o("blur:modelValue", I), o("update:fileName", N)) : pe.error(`${e.t("上传失败")} ${M.message}`);
|
|
5149
5149
|
} else
|
|
5150
|
-
|
|
5150
|
+
s.length == 0 && (o("update:modelValue", ""), o("blur:modelValue", ""), o("update:fileName", ""));
|
|
5151
5151
|
else if (n.formItem.fileUploadType == "path")
|
|
5152
|
-
if (
|
|
5153
|
-
const M =
|
|
5152
|
+
if (s.length) {
|
|
5153
|
+
const M = s.map((N) => {
|
|
5154
5154
|
const { fileId: I, filename: j, relativePath: x, url: P, file: v } = N;
|
|
5155
5155
|
return {
|
|
5156
5156
|
fileId: I,
|
|
@@ -5162,14 +5162,14 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5162
5162
|
});
|
|
5163
5163
|
o("update:modelValue", M), o("blur:modelValue", M);
|
|
5164
5164
|
} else
|
|
5165
|
-
|
|
5165
|
+
s.length == 0 && (o("update:modelValue", []), o("blur:modelValue", []));
|
|
5166
5166
|
}
|
|
5167
5167
|
function l(c) {
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5169
|
+
function r(c) {
|
|
5170
5170
|
console.error("上传失败", c), pe.error(`${c.filename} ${e.t("上传失败")}`);
|
|
5171
5171
|
}
|
|
5172
|
-
return (c,
|
|
5172
|
+
return (c, s) => {
|
|
5173
5173
|
var M, N;
|
|
5174
5174
|
return c.formItem.fileUploadType != "path" ? (d(), b(A(cn), {
|
|
5175
5175
|
key: 0,
|
|
@@ -5181,7 +5181,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5181
5181
|
accept: (M = c.formItem) == null ? void 0 : M.accept,
|
|
5182
5182
|
onRemove: l,
|
|
5183
5183
|
onChange: i,
|
|
5184
|
-
onError:
|
|
5184
|
+
onError: r
|
|
5185
5185
|
}, null, 8, ["fileList", "tip", "disabled", "accept"])) : (d(), b(A(cn), {
|
|
5186
5186
|
key: 1,
|
|
5187
5187
|
directory: !0,
|
|
@@ -5191,7 +5191,7 @@ const Fo = /* @__PURE__ */ oe({
|
|
|
5191
5191
|
accept: (N = c.formItem) == null ? void 0 : N.accept,
|
|
5192
5192
|
onRemove: l,
|
|
5193
5193
|
onChange: i,
|
|
5194
|
-
onError:
|
|
5194
|
+
onError: r
|
|
5195
5195
|
}, null, 8, ["fileList", "tip", "disabled", "accept"]));
|
|
5196
5196
|
};
|
|
5197
5197
|
}
|
|
@@ -5205,7 +5205,7 @@ var Ho = { exports: {} };
|
|
|
5205
5205
|
(function(e, n) {
|
|
5206
5206
|
t.exports = n();
|
|
5207
5207
|
})(J0, function() {
|
|
5208
|
-
var e, n, o = 1e3, a = 6e4, i = 36e5, l = 864e5,
|
|
5208
|
+
var e, n, o = 1e3, a = 6e4, i = 36e5, l = 864e5, r = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, c = 31536e6, s = 2628e6, M = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, N = { years: c, months: s, days: l, hours: i, minutes: a, seconds: o, milliseconds: 1, weeks: 6048e5 }, I = function(T) {
|
|
5209
5209
|
return T instanceof f;
|
|
5210
5210
|
}, j = function(T, p, D) {
|
|
5211
5211
|
return new f(T, D, p.$l);
|
|
@@ -5249,7 +5249,7 @@ var Ho = { exports: {} };
|
|
|
5249
5249
|
}, 0);
|
|
5250
5250
|
}, p.parseFromMilliseconds = function() {
|
|
5251
5251
|
var D = this.$ms;
|
|
5252
|
-
this.$d.years = v(D / c), D %= c, this.$d.months = v(D /
|
|
5252
|
+
this.$d.years = v(D / c), D %= c, this.$d.months = v(D / s), D %= s, this.$d.days = v(D / l), D %= l, this.$d.hours = v(D / i), D %= i, this.$d.minutes = v(D / a), D %= a, this.$d.seconds = v(D / o), D %= o, this.$d.milliseconds = D;
|
|
5253
5253
|
}, p.toISOString = function() {
|
|
5254
5254
|
var D = w(this.$d.years, "Y"), C = w(this.$d.months, "M"), V = +this.$d.days || 0;
|
|
5255
5255
|
this.$d.weeks && (V += 7 * this.$d.weeks);
|
|
@@ -5261,7 +5261,7 @@ var Ho = { exports: {} };
|
|
|
5261
5261
|
return this.toISOString();
|
|
5262
5262
|
}, p.format = function(D) {
|
|
5263
5263
|
var C = D || "YYYY-MM-DDTHH:mm:ss", V = { Y: this.$d.years, YY: n.s(this.$d.years, 2, "0"), YYYY: n.s(this.$d.years, 4, "0"), M: this.$d.months, MM: n.s(this.$d.months, 2, "0"), D: this.$d.days, DD: n.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: n.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: n.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: n.s(this.$d.seconds, 2, "0"), SSS: n.s(this.$d.milliseconds, 3, "0") };
|
|
5264
|
-
return C.replace(
|
|
5264
|
+
return C.replace(r, function(g, F) {
|
|
5265
5265
|
return F || String(V[g]);
|
|
5266
5266
|
});
|
|
5267
5267
|
}, p.as = function(D) {
|
|
@@ -5348,8 +5348,8 @@ const u4 = /* @__PURE__ */ X0(e4), t4 = ["title"], n4 = /* @__PURE__ */ oe({
|
|
|
5348
5348
|
setup(t, { emit: u }) {
|
|
5349
5349
|
ju.extend(u4);
|
|
5350
5350
|
const e = t, n = Q(() => {
|
|
5351
|
-
var
|
|
5352
|
-
return (
|
|
5351
|
+
var s;
|
|
5352
|
+
return (s = e.formItem) == null ? void 0 : s.itemType;
|
|
5353
5353
|
}), o = R(e.modelValue);
|
|
5354
5354
|
Te(
|
|
5355
5355
|
() => e.modelValue,
|
|
@@ -5358,9 +5358,9 @@ const u4 = /* @__PURE__ */ X0(e4), t4 = ["title"], n4 = /* @__PURE__ */ oe({
|
|
|
5358
5358
|
}
|
|
5359
5359
|
);
|
|
5360
5360
|
const a = u;
|
|
5361
|
-
function i(
|
|
5362
|
-
if (
|
|
5363
|
-
const M =
|
|
5361
|
+
function i(s) {
|
|
5362
|
+
if (s) {
|
|
5363
|
+
const M = s.split(":"), [N, I, j] = M, x = ju.duration({
|
|
5364
5364
|
hours: N,
|
|
5365
5365
|
minutes: I,
|
|
5366
5366
|
seconds: j
|
|
@@ -5369,8 +5369,8 @@ const u4 = /* @__PURE__ */ X0(e4), t4 = ["title"], n4 = /* @__PURE__ */ oe({
|
|
|
5369
5369
|
} else
|
|
5370
5370
|
a("update:modelValue", "");
|
|
5371
5371
|
}
|
|
5372
|
-
function l(
|
|
5373
|
-
const { value: M } =
|
|
5372
|
+
function l(s) {
|
|
5373
|
+
const { value: M } = s, N = M.split(":"), [I, j, x] = N, P = ju.duration({
|
|
5374
5374
|
hours: I,
|
|
5375
5375
|
minutes: j,
|
|
5376
5376
|
seconds: x
|
|
@@ -5383,21 +5383,21 @@ const u4 = /* @__PURE__ */ X0(e4), t4 = ["title"], n4 = /* @__PURE__ */ oe({
|
|
|
5383
5383
|
e.disabled && a("update:modelValue", $e(n.value));
|
|
5384
5384
|
}
|
|
5385
5385
|
);
|
|
5386
|
-
const
|
|
5387
|
-
return
|
|
5388
|
-
|
|
5389
|
-
}), (
|
|
5386
|
+
const r = R(), c = R(!1);
|
|
5387
|
+
return Ue(() => {
|
|
5388
|
+
r.value && (c.value = Gu(r.value));
|
|
5389
|
+
}), (s, M) => {
|
|
5390
5390
|
var I;
|
|
5391
5391
|
const N = Z("t-time-picker");
|
|
5392
5392
|
return d(), H("div", {
|
|
5393
5393
|
ref_key: "formSelectDelayRef",
|
|
5394
|
-
ref:
|
|
5394
|
+
ref: r,
|
|
5395
5395
|
style: { width: "100%" },
|
|
5396
|
-
title: c.value ?
|
|
5396
|
+
title: c.value ? s.placeholder : ""
|
|
5397
5397
|
}, [
|
|
5398
5398
|
_(N, {
|
|
5399
|
-
placeholder: (I =
|
|
5400
|
-
disabled:
|
|
5399
|
+
placeholder: (I = s.formItem) == null ? void 0 : I.placeholder,
|
|
5400
|
+
disabled: s.disabled,
|
|
5401
5401
|
modelValue: o.value,
|
|
5402
5402
|
"onUpdate:modelValue": M[0] || (M[0] = (j) => o.value = j),
|
|
5403
5403
|
onChange: i,
|
|
@@ -5437,18 +5437,18 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5437
5437
|
}
|
|
5438
5438
|
);
|
|
5439
5439
|
const a = R("simple"), i = ja();
|
|
5440
|
-
|
|
5440
|
+
Ue(() => {
|
|
5441
5441
|
});
|
|
5442
5442
|
const l = {
|
|
5443
5443
|
excludeKeys: ["insertLink", "group-image", "group-video", "fullScreen"]
|
|
5444
|
-
},
|
|
5444
|
+
}, r = {
|
|
5445
5445
|
placeholder: n.placeholder
|
|
5446
5446
|
};
|
|
5447
5447
|
uu(() => {
|
|
5448
5448
|
const z = i.value;
|
|
5449
5449
|
z != null && z.destroy();
|
|
5450
5450
|
});
|
|
5451
|
-
const c = u,
|
|
5451
|
+
const c = u, s = (z) => {
|
|
5452
5452
|
i.value = z;
|
|
5453
5453
|
}, M = (z) => {
|
|
5454
5454
|
c("update:modelValue", z.getHtml());
|
|
@@ -5483,11 +5483,11 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5483
5483
|
_(A(Ha), {
|
|
5484
5484
|
class: K(`${e}--main`),
|
|
5485
5485
|
style: { height: "300px" },
|
|
5486
|
-
defaultConfig:
|
|
5486
|
+
defaultConfig: r,
|
|
5487
5487
|
mode: a.value,
|
|
5488
5488
|
modelValue: o.value,
|
|
5489
5489
|
"onUpdate:modelValue": w[0] || (w[0] = (f) => o.value = f),
|
|
5490
|
-
onOnCreated:
|
|
5490
|
+
onOnCreated: s,
|
|
5491
5491
|
onOnChange: M,
|
|
5492
5492
|
onOnDestroyed: N,
|
|
5493
5493
|
onOnFocus: j,
|
|
@@ -5534,13 +5534,13 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5534
5534
|
function l(N) {
|
|
5535
5535
|
i("update:modelValue", N);
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function r() {
|
|
5538
5538
|
a.value.push("");
|
|
5539
5539
|
}
|
|
5540
5540
|
function c(N, I) {
|
|
5541
5541
|
a.value[I] = N, l(a.value);
|
|
5542
5542
|
}
|
|
5543
|
-
function
|
|
5543
|
+
function s(N) {
|
|
5544
5544
|
a.value.splice(N, 1);
|
|
5545
5545
|
}
|
|
5546
5546
|
function M() {
|
|
@@ -5554,7 +5554,7 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5554
5554
|
default: k(() => [
|
|
5555
5555
|
a.value.length == 0 ? (d(), b(j, {
|
|
5556
5556
|
key: 0,
|
|
5557
|
-
onClick:
|
|
5557
|
+
onClick: r,
|
|
5558
5558
|
variant: "outline"
|
|
5559
5559
|
}, {
|
|
5560
5560
|
default: k(() => [
|
|
@@ -5579,7 +5579,7 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5579
5579
|
_(j, {
|
|
5580
5580
|
variant: "outline",
|
|
5581
5581
|
theme: "default",
|
|
5582
|
-
onClick: (f) =>
|
|
5582
|
+
onClick: (f) => s(w)
|
|
5583
5583
|
}, {
|
|
5584
5584
|
default: k(() => [
|
|
5585
5585
|
ie("- ")
|
|
@@ -5590,7 +5590,7 @@ const o4 = /* @__PURE__ */ oe({
|
|
|
5590
5590
|
key: 0,
|
|
5591
5591
|
variant: "outline",
|
|
5592
5592
|
theme: "default",
|
|
5593
|
-
onClick:
|
|
5593
|
+
onClick: r
|
|
5594
5594
|
}, {
|
|
5595
5595
|
default: k(() => [
|
|
5596
5596
|
ie("+ ")
|
|
@@ -5650,11 +5650,11 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5650
5650
|
},
|
|
5651
5651
|
emits: ["after-update-value"],
|
|
5652
5652
|
setup(t, { expose: u, emit: e }) {
|
|
5653
|
-
const { T: n, localLanguage: o } = Ae(), a = t, i = Q(() => a.formModel), { handleItemShowIf: l, handleItemDisableIf:
|
|
5654
|
-
function
|
|
5653
|
+
const { T: n, localLanguage: o } = Ae(), a = t, i = Q(() => a.formModel), { handleItemShowIf: l, handleItemDisableIf: r } = En({ formModel: i }), c = e;
|
|
5654
|
+
function s(D, C) {
|
|
5655
5655
|
c("after-update-value", D, C);
|
|
5656
5656
|
}
|
|
5657
|
-
const M = Q(() => a.formItem.disableIf ?
|
|
5657
|
+
const M = Q(() => a.formItem.disableIf ? r(a.formItem.disableIf, a.formItem) : !1), N = R(!0);
|
|
5658
5658
|
function I() {
|
|
5659
5659
|
return M.value;
|
|
5660
5660
|
}
|
|
@@ -5694,7 +5694,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5694
5694
|
D && (f.value = D.offsetWidth + 5);
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
|
-
return
|
|
5697
|
+
return Ue(() => {
|
|
5698
5698
|
a.isLabelNameShow && p();
|
|
5699
5699
|
}), tu(Lt, a.componentProps), u({
|
|
5700
5700
|
formItem: a.formItem,
|
|
@@ -5764,7 +5764,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5764
5764
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
5765
5765
|
placeholder: v.value,
|
|
5766
5766
|
disabled: M.value,
|
|
5767
|
-
"onUpdate:modelValue": C[0] || (C[0] = (y) =>
|
|
5767
|
+
"onUpdate:modelValue": C[0] || (C[0] = (y) => s(D.formItem.keyName, y))
|
|
5768
5768
|
}), null, 16, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : q("", !0),
|
|
5769
5769
|
D.formItem.itemType === "text_input" && D.formItem.inputType == "RE_PASSWORD" ? (d(), b(Dn, ye({ key: 2 }, D.componentProps, {
|
|
5770
5770
|
formItem: D.formItem,
|
|
@@ -5772,26 +5772,26 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5772
5772
|
modelValue: A(le)(i.value, "rePassword"),
|
|
5773
5773
|
placeholder: v.value,
|
|
5774
5774
|
disabled: M.value,
|
|
5775
|
-
"onUpdate:modelValue": C[1] || (C[1] = (y) =>
|
|
5775
|
+
"onUpdate:modelValue": C[1] || (C[1] = (y) => s("rePassword", y))
|
|
5776
5776
|
}), null, 16, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : q("", !0),
|
|
5777
5777
|
D.formItem.itemType === "check_box" ? (d(), b(Bo, ye({ key: 3 }, D.componentProps, {
|
|
5778
5778
|
modelValue: A(le)(i.value, D.formItem.keyName, !1),
|
|
5779
5779
|
disabled: M.value,
|
|
5780
|
-
"onUpdate:modelValue": C[2] || (C[2] = (y) =>
|
|
5780
|
+
"onUpdate:modelValue": C[2] || (C[2] = (y) => s(D.formItem.keyName, y))
|
|
5781
5781
|
}), null, 16, ["modelValue", "disabled"])) : q("", !0),
|
|
5782
5782
|
D.formItem.itemType === "switch" ? (d(), b(_o, ye({ key: 4 }, D.componentProps, {
|
|
5783
5783
|
formItem: D.formItem,
|
|
5784
5784
|
viewName: D.viewName,
|
|
5785
5785
|
modelValue: A(le)(i.value, D.formItem.keyName, !1),
|
|
5786
5786
|
disabled: M.value,
|
|
5787
|
-
"onUpdate:modelValue": C[3] || (C[3] = (y) =>
|
|
5787
|
+
"onUpdate:modelValue": C[3] || (C[3] = (y) => s(D.formItem.keyName, y))
|
|
5788
5788
|
}), null, 16, ["formItem", "viewName", "modelValue", "disabled"])) : q("", !0),
|
|
5789
5789
|
D.formItem.itemType === "radio" ? (d(), b(Fo, ye({ key: 5 }, D.componentProps, {
|
|
5790
5790
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
5791
5791
|
formItem: D.formItem,
|
|
5792
5792
|
viewName: D.viewName,
|
|
5793
5793
|
disabled: M.value,
|
|
5794
|
-
"onUpdate:modelValue": C[4] || (C[4] = (y) =>
|
|
5794
|
+
"onUpdate:modelValue": C[4] || (C[4] = (y) => s(D.formItem.keyName, y))
|
|
5795
5795
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled"])) : q("", !0),
|
|
5796
5796
|
D.formItem.itemType === "selector" || D.formItem.itemType === "multi_selector" ? (d(), b(Po, ye({ key: 6 }, D.componentProps, {
|
|
5797
5797
|
key: (E = D.formItem.listData) == null ? void 0 : E.dataId,
|
|
@@ -5801,7 +5801,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5801
5801
|
multiple: D.formItem.itemType === "multi_selector",
|
|
5802
5802
|
disabled: M.value,
|
|
5803
5803
|
placeholder: v.value,
|
|
5804
|
-
"onUpdate:modelValue": C[5] || (C[5] = (y) =>
|
|
5804
|
+
"onUpdate:modelValue": C[5] || (C[5] = (y) => s(D.formItem.keyName, y))
|
|
5805
5805
|
}), null, 16, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : q("", !0),
|
|
5806
5806
|
D.formItem.itemType === "date_selector" || D.formItem.itemType === "time_selector" || D.formItem.itemType === "date_time_selector" ? (d(), b($o, ye({ key: 7 }, D.componentProps, {
|
|
5807
5807
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5809,7 +5809,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5809
5809
|
viewName: D.viewName,
|
|
5810
5810
|
disabled: M.value,
|
|
5811
5811
|
placeholder: v.value,
|
|
5812
|
-
"onUpdate:modelValue": C[6] || (C[6] = (y) =>
|
|
5812
|
+
"onUpdate:modelValue": C[6] || (C[6] = (y) => s(D.formItem.keyName, y))
|
|
5813
5813
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5814
5814
|
D.formItem.itemType == "delay_selector" ? (d(), b(n4, ye({ key: 8 }, D.componentProps, {
|
|
5815
5815
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5817,7 +5817,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5817
5817
|
viewName: D.viewName,
|
|
5818
5818
|
disabled: M.value,
|
|
5819
5819
|
placeholder: v.value,
|
|
5820
|
-
"onUpdate:modelValue": C[7] || (C[7] = (y) =>
|
|
5820
|
+
"onUpdate:modelValue": C[7] || (C[7] = (y) => s(D.formItem.keyName, y))
|
|
5821
5821
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5822
5822
|
D.formItem.itemType === "tree_check_box" ? (d(), b(Vo, ye({ key: 9 }, D.componentProps, {
|
|
5823
5823
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5825,7 +5825,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5825
5825
|
viewName: D.viewName,
|
|
5826
5826
|
disabled: M.value,
|
|
5827
5827
|
placeholder: v.value,
|
|
5828
|
-
"onUpdate:modelValue": C[8] || (C[8] = (y) =>
|
|
5828
|
+
"onUpdate:modelValue": C[8] || (C[8] = (y) => s(D.formItem.keyName, y))
|
|
5829
5829
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5830
5830
|
D.formItem.itemType === "multi_tree_selector" || D.formItem.itemType === "tree_selector" ? (d(), b(Ro, ye({ key: 10 }, D.componentProps, {
|
|
5831
5831
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5834,7 +5834,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5834
5834
|
multiple: D.formItem.itemType === "multi_tree_selector",
|
|
5835
5835
|
disabled: M.value,
|
|
5836
5836
|
placeholder: v.value,
|
|
5837
|
-
"onUpdate:modelValue": C[9] || (C[9] = (y) =>
|
|
5837
|
+
"onUpdate:modelValue": C[9] || (C[9] = (y) => s(D.formItem.keyName, y))
|
|
5838
5838
|
}), null, 16, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : q("", !0),
|
|
5839
5839
|
D.formItem.itemType === "file" ? (d(), b(Wo, ye({ key: 11 }, D.componentProps, {
|
|
5840
5840
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5843,8 +5843,8 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5843
5843
|
disabled: M.value,
|
|
5844
5844
|
placeholder: v.value,
|
|
5845
5845
|
fileName: D.formItem.fileUploadType == "file" ? A(le)(i.value, D.formItem.filenameKeyName) || ((S = A(le)(i.value, D.formItem.keyName)) == null ? void 0 : S.split("/").slice(-1)[0]) : "",
|
|
5846
|
-
"onUpdate:fileName": C[10] || (C[10] = (y) => D.formItem.filenameKeyName &&
|
|
5847
|
-
"onUpdate:modelValue": C[11] || (C[11] = (y) =>
|
|
5846
|
+
"onUpdate:fileName": C[10] || (C[10] = (y) => D.formItem.filenameKeyName && s(D.formItem.filenameKeyName, y)),
|
|
5847
|
+
"onUpdate:modelValue": C[11] || (C[11] = (y) => s(D.formItem.keyName, y))
|
|
5848
5848
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder", "fileName"])) : q("", !0),
|
|
5849
5849
|
D.formItem.itemType === "tag" ? (d(), b(a4, ye({ key: 12 }, D.componentProps, {
|
|
5850
5850
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5852,7 +5852,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5852
5852
|
viewName: D.viewName,
|
|
5853
5853
|
disabled: M.value,
|
|
5854
5854
|
placeholder: v.value,
|
|
5855
|
-
"onUpdate:modelValue": C[12] || (C[12] = (y) =>
|
|
5855
|
+
"onUpdate:modelValue": C[12] || (C[12] = (y) => s(D.formItem.keyName, y))
|
|
5856
5856
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0),
|
|
5857
5857
|
D.formItem.itemType === "rich_text" ? (d(), b(o4, ye({ key: 13 }, D.componentProps, {
|
|
5858
5858
|
modelValue: A(le)(i.value, D.formItem.keyName),
|
|
@@ -5860,7 +5860,7 @@ const i4 = ["id"], l4 = /* @__PURE__ */ oe({
|
|
|
5860
5860
|
viewName: D.viewName,
|
|
5861
5861
|
disabled: M.value,
|
|
5862
5862
|
placeholder: v.value,
|
|
5863
|
-
"onUpdate:modelValue": C[13] || (C[13] = (y) =>
|
|
5863
|
+
"onUpdate:modelValue": C[13] || (C[13] = (y) => s(D.formItem.keyName, y))
|
|
5864
5864
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : q("", !0)
|
|
5865
5865
|
];
|
|
5866
5866
|
}),
|
|
@@ -5886,24 +5886,24 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
5886
5886
|
}
|
|
5887
5887
|
const a = R(), i = u;
|
|
5888
5888
|
function l() {
|
|
5889
|
-
const
|
|
5890
|
-
let
|
|
5889
|
+
const r = a.value, c = !!(e.blockType == "block_start" && e.showIf);
|
|
5890
|
+
let s = [];
|
|
5891
5891
|
if (e.blockType == "block_start") {
|
|
5892
|
-
for (let M =
|
|
5892
|
+
for (let M = r; M && (M.classList.add(`${e.name}`), M.id && s.push(M.id), !M.matches(`#block_end_${e.name}`)); M = M.nextElementSibling)
|
|
5893
5893
|
;
|
|
5894
|
-
|
|
5894
|
+
s.length && i("block-show-if-change", e.name, s, c);
|
|
5895
5895
|
}
|
|
5896
5896
|
}
|
|
5897
5897
|
return rt(() => {
|
|
5898
5898
|
o();
|
|
5899
|
-
}),
|
|
5899
|
+
}), Ue(() => {
|
|
5900
5900
|
l();
|
|
5901
5901
|
}), Te(
|
|
5902
5902
|
() => e.showIf,
|
|
5903
5903
|
() => {
|
|
5904
5904
|
o(), l();
|
|
5905
5905
|
}
|
|
5906
|
-
), (
|
|
5906
|
+
), (r, c) => (d(), H("div", {
|
|
5907
5907
|
id: n.value,
|
|
5908
5908
|
ref_key: "blockRef",
|
|
5909
5909
|
ref: a
|
|
@@ -5921,7 +5921,7 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
5921
5921
|
const { T: n } = Ae(), o = t, a = R(160), i = Q(() => {
|
|
5922
5922
|
var g;
|
|
5923
5923
|
return (g = o.board) == null ? void 0 : g.formItems;
|
|
5924
|
-
}), l = R({}), { handleItemShowIf:
|
|
5924
|
+
}), l = R({}), { handleItemShowIf: r } = En({ formModel: l });
|
|
5925
5925
|
Te(
|
|
5926
5926
|
() => o.formData,
|
|
5927
5927
|
() => {
|
|
@@ -5932,7 +5932,7 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
5932
5932
|
deep: !0
|
|
5933
5933
|
}
|
|
5934
5934
|
);
|
|
5935
|
-
const c = R(),
|
|
5935
|
+
const c = R(), s = Q(() => {
|
|
5936
5936
|
var g;
|
|
5937
5937
|
return (g = c.value) == null ? void 0 : g.tFormRef;
|
|
5938
5938
|
}), M = R({});
|
|
@@ -5984,16 +5984,16 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
5984
5984
|
U.formItemId && F.includes(U.formItemId) && U.$el.classList.contains(g) && U.setBlockShowFlag(m);
|
|
5985
5985
|
});
|
|
5986
5986
|
}
|
|
5987
|
-
|
|
5987
|
+
Ue(async () => {
|
|
5988
5988
|
M.value = await N();
|
|
5989
5989
|
});
|
|
5990
5990
|
function v(g, F) {
|
|
5991
|
-
Ke(l.value, g, F),
|
|
5991
|
+
Ke(l.value, g, F), s.value && z([g]), I();
|
|
5992
5992
|
}
|
|
5993
5993
|
async function z(g = []) {
|
|
5994
5994
|
var U;
|
|
5995
5995
|
const F = w();
|
|
5996
|
-
return (g.length ? g.some((E) => F.includes(E)) : !0) ? (U =
|
|
5996
|
+
return (g.length ? g.some((E) => F.includes(E)) : !0) ? (U = s.value) == null ? void 0 : U.validate({
|
|
5997
5997
|
fields: g.length ? g : F
|
|
5998
5998
|
}) : Promise.resolve({});
|
|
5999
5999
|
}
|
|
@@ -6024,7 +6024,7 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
6024
6024
|
if (i.value && m.length) {
|
|
6025
6025
|
const U = i.value.filter((S) => S.itemType == "file" && S.fileUploadType == "path").map((S) => S.keyName);
|
|
6026
6026
|
m.length && m.forEach((S) => {
|
|
6027
|
-
U.includes(S) && F[S] &&
|
|
6027
|
+
U.includes(S) && F[S] && hu(F[S]) && (F[S] = F[S].filter(
|
|
6028
6028
|
(y) => y && y.url
|
|
6029
6029
|
));
|
|
6030
6030
|
});
|
|
@@ -6108,7 +6108,7 @@ const xt = /* @__PURE__ */ au(l4, [["__scopeId", "data-v-a507a307"]]), r4 = ["id
|
|
|
6108
6108
|
ref: x,
|
|
6109
6109
|
name: U.name,
|
|
6110
6110
|
blockType: U.itemType,
|
|
6111
|
-
showIf: A(
|
|
6111
|
+
showIf: A(r)(U.showIf),
|
|
6112
6112
|
onBlockShowIfChange: P
|
|
6113
6113
|
}, null, 8, ["name", "blockType", "showIf"])) : (d(), b(xt, {
|
|
6114
6114
|
key: 1,
|
|
@@ -6183,22 +6183,22 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6183
6183
|
const { viewName: w, ...f } = o.query;
|
|
6184
6184
|
return f;
|
|
6185
6185
|
}
|
|
6186
|
-
}),
|
|
6186
|
+
}), r = Q(() => {
|
|
6187
6187
|
var f;
|
|
6188
6188
|
let w = {};
|
|
6189
6189
|
return a.dialogProps && ((f = Object.keys(a.dialogProps)) != null && f.length) && Object.assign(w, a.dialogProps), Object.assign(w, l.value), w;
|
|
6190
6190
|
}), c = Q(() => {
|
|
6191
6191
|
var w;
|
|
6192
6192
|
return (w = a.board) == null ? void 0 : w.boardType;
|
|
6193
|
-
}),
|
|
6193
|
+
}), s = u;
|
|
6194
6194
|
function M() {
|
|
6195
|
-
|
|
6195
|
+
s("close-dialog");
|
|
6196
6196
|
}
|
|
6197
6197
|
const N = R();
|
|
6198
6198
|
async function I(w, f) {
|
|
6199
6199
|
N.value && (N.value.formOkButtonLoading || (N.value.formOkButtonLoading = !0));
|
|
6200
6200
|
let B = {};
|
|
6201
|
-
return Object.keys(
|
|
6201
|
+
return Object.keys(r.value).length && Object.assign(B, r.value), Object.assign(B, w), (await bo({
|
|
6202
6202
|
buttonId: f,
|
|
6203
6203
|
props: B,
|
|
6204
6204
|
viewName: a.viewName
|
|
@@ -6208,7 +6208,7 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6208
6208
|
await I(w, f) && x();
|
|
6209
6209
|
}
|
|
6210
6210
|
function x() {
|
|
6211
|
-
|
|
6211
|
+
s("close-dialog");
|
|
6212
6212
|
}
|
|
6213
6213
|
const P = R({}), v = R(!1);
|
|
6214
6214
|
async function z() {
|
|
@@ -6217,20 +6217,20 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6217
6217
|
const w = await Mt({
|
|
6218
6218
|
dataId: i.value,
|
|
6219
6219
|
viewName: a.viewName,
|
|
6220
|
-
props:
|
|
6220
|
+
props: r.value
|
|
6221
6221
|
});
|
|
6222
6222
|
w.state === 200 && w.data && (P.value = w.data);
|
|
6223
6223
|
}
|
|
6224
|
-
eu(i.value) && (P.value = { ...
|
|
6224
|
+
eu(i.value) && (P.value = { ...r.value });
|
|
6225
6225
|
} catch (w) {
|
|
6226
6226
|
console.warn("getViewDataApi", w);
|
|
6227
6227
|
} finally {
|
|
6228
6228
|
v.value = !1;
|
|
6229
6229
|
}
|
|
6230
6230
|
}
|
|
6231
|
-
return
|
|
6231
|
+
return Ue(() => {
|
|
6232
6232
|
c.value == "form" && z();
|
|
6233
|
-
}), tu(Yu,
|
|
6233
|
+
}), tu(Yu, r.value), (w, f) => {
|
|
6234
6234
|
const B = Z("t-loading");
|
|
6235
6235
|
return c.value !== "form" ? (d(), b(A(e), {
|
|
6236
6236
|
from: "dialog",
|
|
@@ -6275,11 +6275,11 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6275
6275
|
setup(t, { emit: u }) {
|
|
6276
6276
|
const { T: e } = Ae();
|
|
6277
6277
|
co(() => Promise.resolve().then(() => la));
|
|
6278
|
-
const n = t, o = u, a = In(), i = Q(() => n.dialogViewInfo.view), l = Q(() => n.dialogViewInfo.name),
|
|
6278
|
+
const n = t, o = u, a = In(), i = Q(() => n.dialogViewInfo.view), l = Q(() => n.dialogViewInfo.name), r = Q(() => {
|
|
6279
6279
|
var z;
|
|
6280
6280
|
return ((z = n.dialogViewBoard) == null ? void 0 : z.boardType) ?? "default";
|
|
6281
6281
|
}), c = Q(() => {
|
|
6282
|
-
switch (
|
|
6282
|
+
switch (r.value) {
|
|
6283
6283
|
case "table":
|
|
6284
6284
|
return "85vw";
|
|
6285
6285
|
case "tab":
|
|
@@ -6289,7 +6289,7 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6289
6289
|
default:
|
|
6290
6290
|
return "80vw";
|
|
6291
6291
|
}
|
|
6292
|
-
}),
|
|
6292
|
+
}), s = Q(() => n.dialogViewProps.length ? a.getPropsByPropsKey(n.dialogViewProps) : []);
|
|
6293
6293
|
function M(z) {
|
|
6294
6294
|
o("update:isDialogVisible", z);
|
|
6295
6295
|
}
|
|
@@ -6301,10 +6301,10 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6301
6301
|
let w = "";
|
|
6302
6302
|
if (z)
|
|
6303
6303
|
w = Au(n.dialogViewInfo.link ?? "", {
|
|
6304
|
-
...
|
|
6304
|
+
...s
|
|
6305
6305
|
});
|
|
6306
6306
|
else {
|
|
6307
|
-
const f = n.dialogViewInfo.link && I.resolve({ path: n.dialogViewInfo.link, query: { ...
|
|
6307
|
+
const f = n.dialogViewInfo.link && I.resolve({ path: n.dialogViewInfo.link, query: { ...s.value } }).href;
|
|
6308
6308
|
w = `${location.origin}/${f}`;
|
|
6309
6309
|
}
|
|
6310
6310
|
return n.dialogViewInfo.link ? w : "";
|
|
@@ -6322,7 +6322,7 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6322
6322
|
footer: !1,
|
|
6323
6323
|
onClose: () => M(!1),
|
|
6324
6324
|
destroyOnClose: !0,
|
|
6325
|
-
...
|
|
6325
|
+
...r.value === "form" ? {
|
|
6326
6326
|
dialogStyle: {
|
|
6327
6327
|
minWidth: "600px"
|
|
6328
6328
|
}
|
|
@@ -6340,7 +6340,7 @@ const M4 = /* @__PURE__ */ oe({
|
|
|
6340
6340
|
key: 0,
|
|
6341
6341
|
viewName: i.value,
|
|
6342
6342
|
board: z.dialogViewBoard,
|
|
6343
|
-
dialogProps:
|
|
6343
|
+
dialogProps: s.value,
|
|
6344
6344
|
onCloseDialog: N
|
|
6345
6345
|
}, null, 8, ["viewName", "board", "dialogProps"])) : z.dialogType === "iframe" ? (d(), H("iframe", {
|
|
6346
6346
|
key: 1,
|
|
@@ -6371,26 +6371,26 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6371
6371
|
},
|
|
6372
6372
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
6373
6373
|
setup(t, { expose: u, emit: e }) {
|
|
6374
|
-
const { T: n } = Ae(), o = Wu(), a = bu(), i = ve(ho, ""), l = t,
|
|
6374
|
+
const { T: n } = Ae(), o = Wu(), a = bu(), i = ve(ho, ""), l = t, r = R(200), c = Q(() => {
|
|
6375
6375
|
var y;
|
|
6376
6376
|
return (y = l.board) == null ? void 0 : y.formItems;
|
|
6377
|
-
}),
|
|
6377
|
+
}), s = R({}), { handleItemShowIf: M } = En({ formModel: s }), N = Iu();
|
|
6378
6378
|
function I() {
|
|
6379
6379
|
const y = o.getFormData(N.fullPath);
|
|
6380
|
-
y && Object.keys(y).length && Object.keys(
|
|
6381
|
-
Et(y[O]) || (
|
|
6380
|
+
y && Object.keys(y).length && Object.keys(s.value).forEach((O) => {
|
|
6381
|
+
Et(y[O]) || (s.value[O] = y[O]);
|
|
6382
6382
|
});
|
|
6383
6383
|
}
|
|
6384
6384
|
function j(y) {
|
|
6385
|
-
if (a.findExistTabMenuItem({ path: y }) && Object.keys(
|
|
6386
|
-
const L = zo(
|
|
6385
|
+
if (a.findExistTabMenuItem({ path: y }) && Object.keys(s.value).length) {
|
|
6386
|
+
const L = zo(s.value, l.formData);
|
|
6387
6387
|
L && Object.keys(L).length && o.setFormData(y, L);
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
6390
|
Te(
|
|
6391
6391
|
() => l.formData,
|
|
6392
6392
|
() => {
|
|
6393
|
-
|
|
6393
|
+
s.value = lt(l.formData, c.value), I();
|
|
6394
6394
|
},
|
|
6395
6395
|
{
|
|
6396
6396
|
immediate: !0,
|
|
@@ -6407,7 +6407,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6407
6407
|
const { formItem: L } = O, h = [];
|
|
6408
6408
|
return L.required && L.keyName && h.push({
|
|
6409
6409
|
validator: () => {
|
|
6410
|
-
const Y = le(
|
|
6410
|
+
const Y = le(s.value, L.keyName);
|
|
6411
6411
|
return Et(Y) ? {
|
|
6412
6412
|
result: !1,
|
|
6413
6413
|
message: `${L.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${n.t("为必填项")}`
|
|
@@ -6416,13 +6416,13 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6416
6416
|
trigger: "blur"
|
|
6417
6417
|
}), L.inputType === "RE_PASSWORD" && h.push({
|
|
6418
6418
|
validator: () => ({
|
|
6419
|
-
result: le(
|
|
6419
|
+
result: le(s.value, "password") === le(s.value, "rePassword"),
|
|
6420
6420
|
message: `${n.t("两次输入密码不一致")}`
|
|
6421
6421
|
}),
|
|
6422
6422
|
trigger: "blur"
|
|
6423
6423
|
}), (L.keyName === "startTime" || L.keyName === "endTime") && h.push({
|
|
6424
6424
|
validator: () => ({
|
|
6425
|
-
result: le(
|
|
6425
|
+
result: le(s.value, "endTime") - le(s.value, "startTime") > 0,
|
|
6426
6426
|
message: `${n.t("结束时间不能早于开始时间")}`
|
|
6427
6427
|
})
|
|
6428
6428
|
}), {
|
|
@@ -6438,7 +6438,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6438
6438
|
const O = y.querySelectorAll(".t-form__label label");
|
|
6439
6439
|
if (O) {
|
|
6440
6440
|
const L = Array.from(O).map((Y) => Y.offsetWidth), h = Math.max(...L);
|
|
6441
|
-
|
|
6441
|
+
r.value = h + 15;
|
|
6442
6442
|
}
|
|
6443
6443
|
}
|
|
6444
6444
|
}
|
|
@@ -6449,11 +6449,11 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6449
6449
|
h.formItemId && O.includes(h.formItemId) && h.$el.classList.contains(y) && h.setBlockShowFlag(L);
|
|
6450
6450
|
});
|
|
6451
6451
|
}
|
|
6452
|
-
|
|
6452
|
+
Ue(async () => {
|
|
6453
6453
|
v.value = await z(), w();
|
|
6454
6454
|
});
|
|
6455
6455
|
function p(y, O) {
|
|
6456
|
-
Ke(
|
|
6456
|
+
Ke(s.value, y, O), P.value && D([y]);
|
|
6457
6457
|
}
|
|
6458
6458
|
async function D(y = []) {
|
|
6459
6459
|
var h;
|
|
@@ -6489,7 +6489,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6489
6489
|
if (c.value && L.length) {
|
|
6490
6490
|
const h = c.value.filter((W) => W.itemType == "file" && W.fileUploadType == "path").map((W) => W.keyName);
|
|
6491
6491
|
L.length && L.forEach((W) => {
|
|
6492
|
-
h.includes(W) && O[W] &&
|
|
6492
|
+
h.includes(W) && O[W] && hu(O[W]) && (O[W] = O[W].filter(
|
|
6493
6493
|
(J) => J && J.url
|
|
6494
6494
|
));
|
|
6495
6495
|
});
|
|
@@ -6508,7 +6508,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6508
6508
|
const L = m(O);
|
|
6509
6509
|
pe.warning(L == null ? void 0 : L.message);
|
|
6510
6510
|
} else {
|
|
6511
|
-
const L = U(
|
|
6511
|
+
const L = U(s.value);
|
|
6512
6512
|
F("confirm-form", L, y.buttonId);
|
|
6513
6513
|
}
|
|
6514
6514
|
});
|
|
@@ -6520,7 +6520,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6520
6520
|
const L = m(O);
|
|
6521
6521
|
pe.warning(L == null ? void 0 : L.message);
|
|
6522
6522
|
} else {
|
|
6523
|
-
const L = U(
|
|
6523
|
+
const L = U(s.value);
|
|
6524
6524
|
F("confirm-and-close", L, y.buttonId);
|
|
6525
6525
|
}
|
|
6526
6526
|
});
|
|
@@ -6595,10 +6595,10 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6595
6595
|
ref_key: "commonFormRef",
|
|
6596
6596
|
ref: x,
|
|
6597
6597
|
commonFormProps: {
|
|
6598
|
-
data:
|
|
6598
|
+
data: s.value,
|
|
6599
6599
|
rules: v.value,
|
|
6600
6600
|
labelAlign: "right",
|
|
6601
|
-
labelWidth:
|
|
6601
|
+
labelWidth: r.value
|
|
6602
6602
|
}
|
|
6603
6603
|
}, {
|
|
6604
6604
|
body: k(() => [
|
|
@@ -6619,7 +6619,7 @@ const N4 = We(D4), g4 = { class: "g-form" }, d4 = { class: "g-form-header" }, T4
|
|
|
6619
6619
|
ref_for: !0,
|
|
6620
6620
|
ref_key: "formItemRef",
|
|
6621
6621
|
ref: f,
|
|
6622
|
-
formModel:
|
|
6622
|
+
formModel: s.value,
|
|
6623
6623
|
formItem: Y,
|
|
6624
6624
|
viewName: y.viewName,
|
|
6625
6625
|
onAfterUpdateValue: p
|
|
@@ -6640,31 +6640,31 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6640
6640
|
},
|
|
6641
6641
|
setup(t) {
|
|
6642
6642
|
const { T: u } = Ae(), e = t;
|
|
6643
|
-
function n(
|
|
6644
|
-
var
|
|
6645
|
-
const c = ht(
|
|
6646
|
-
if (((
|
|
6643
|
+
function n(r) {
|
|
6644
|
+
var s, M;
|
|
6645
|
+
const c = ht(r);
|
|
6646
|
+
if (((s = e.button) == null ? void 0 : s.fileUploadType) == "file") {
|
|
6647
6647
|
if (c.length && c.every((N) => N.status == "done")) {
|
|
6648
6648
|
const { response: N, filename: I, url: j } = c[0];
|
|
6649
6649
|
N && N.state == 200 && i({ fileUrls: [j], filenames: [I] });
|
|
6650
6650
|
}
|
|
6651
|
-
} else if (((M = e.button) == null ? void 0 : M.fileUploadType) == "path" && c.length &&
|
|
6651
|
+
} else if (((M = e.button) == null ? void 0 : M.fileUploadType) == "path" && c.length && r.every((N) => N.url)) {
|
|
6652
6652
|
const N = vo(c);
|
|
6653
6653
|
i({ folderTree: N });
|
|
6654
6654
|
}
|
|
6655
6655
|
}
|
|
6656
6656
|
const o = ve(Yu, void 0), a = Q(() => {
|
|
6657
|
-
const { count:
|
|
6657
|
+
const { count: r, page: c, totalCount: s, pageCount: M, ...N } = o;
|
|
6658
6658
|
return N;
|
|
6659
6659
|
});
|
|
6660
|
-
function i(
|
|
6661
|
-
var
|
|
6660
|
+
function i(r) {
|
|
6661
|
+
var s, M, N, I;
|
|
6662
6662
|
const c = {
|
|
6663
6663
|
boardName: e.viewName,
|
|
6664
|
-
buttonId: (
|
|
6664
|
+
buttonId: (s = e.button) == null ? void 0 : s.buttonId,
|
|
6665
6665
|
fileRequestType: ((M = e.button) == null ? void 0 : M.fileUploadType) ?? "file",
|
|
6666
|
-
...((N = e.button) == null ? void 0 : N.fileUploadType) == "file" ? { fileUrls:
|
|
6667
|
-
...((I = e.button) == null ? void 0 : I.fileUploadType) == "path" ? { folderTree:
|
|
6666
|
+
...((N = e.button) == null ? void 0 : N.fileUploadType) == "file" ? { fileUrls: r.fileUrls, filenames: r.filenames } : {},
|
|
6667
|
+
...((I = e.button) == null ? void 0 : I.fileUploadType) == "path" ? { folderTree: r.folderTree } : {},
|
|
6668
6668
|
props: {
|
|
6669
6669
|
...a.value
|
|
6670
6670
|
}
|
|
@@ -6673,20 +6673,20 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6673
6673
|
j.state == 200 ? pe.success(`${u.t("导入成功")}`) : console.log("导入失败", j.message);
|
|
6674
6674
|
});
|
|
6675
6675
|
}
|
|
6676
|
-
function l(
|
|
6677
|
-
var c,
|
|
6678
|
-
console.error("上传失败",
|
|
6676
|
+
function l(r) {
|
|
6677
|
+
var c, s, M;
|
|
6678
|
+
console.error("上传失败", r), r != null && r.response && ((c = r == null ? void 0 : r.response) == null ? void 0 : c.state) != 200 && (s = r.response) != null && s.message && pe.error(`${r.filename} ${u.t("上传失败")}: ${(M = r.response) == null ? void 0 : M.message}`);
|
|
6679
6679
|
}
|
|
6680
|
-
return (
|
|
6681
|
-
var
|
|
6680
|
+
return (r, c) => {
|
|
6681
|
+
var s, M, N;
|
|
6682
6682
|
return d(), b(A(cn), ye({
|
|
6683
6683
|
limit: 1,
|
|
6684
6684
|
multiple: !1,
|
|
6685
6685
|
showFileList: !1,
|
|
6686
|
-
buttonText: ((
|
|
6686
|
+
buttonText: ((s = r.button) == null ? void 0 : s.name) || `${A(u).t("上传")}`,
|
|
6687
6687
|
buttonProps: { theme: "primary", variant: "base" },
|
|
6688
|
-
accept: ((M =
|
|
6689
|
-
}, { ...((N =
|
|
6688
|
+
accept: ((M = r.button) == null ? void 0 : M.accept) ?? ""
|
|
6689
|
+
}, { ...((N = r.button) == null ? void 0 : N.fileUploadType) == "path" ? { directory: !0 } : {} }, {
|
|
6690
6690
|
style: { padding: "0 8px 0 0", width: "auto" },
|
|
6691
6691
|
onChange: n,
|
|
6692
6692
|
onError: l
|
|
@@ -6726,19 +6726,19 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6726
6726
|
const l = Q(() => {
|
|
6727
6727
|
var T, p;
|
|
6728
6728
|
return (p = (T = n.headerInfo) == null ? void 0 : T.searchBar) == null ? void 0 : p.filters;
|
|
6729
|
-
}),
|
|
6729
|
+
}), r = Q(() => {
|
|
6730
6730
|
var T;
|
|
6731
|
-
return
|
|
6731
|
+
return hu((T = n.headerInfo.searchBar) == null ? void 0 : T.filters) ? n.headerInfo.searchBar.filters.filter((p) => p.itemType !== "text_input") : [];
|
|
6732
6732
|
}), c = Q(() => {
|
|
6733
6733
|
var T;
|
|
6734
|
-
return
|
|
6735
|
-
}),
|
|
6734
|
+
return hu((T = n.headerInfo.searchBar) == null ? void 0 : T.filters) ? n.headerInfo.searchBar.filters.filter((p) => p.itemType === "text_input") : [];
|
|
6735
|
+
}), s = Q(() => r.value.length ? r.value.filter((T) => T.itemType === "selector").map((T) => T.keyName) : []), M = lt({}, l.value, !0), N = R(_e(M));
|
|
6736
6736
|
let I = R(0);
|
|
6737
6737
|
function j(T, p) {
|
|
6738
|
-
p !== null && typeof p < "u" ? Ke(N.value, T, p) :
|
|
6738
|
+
p !== null && typeof p < "u" ? Ke(N.value, T, p) : s.value.includes(T) ? Ke(N.value, T, "all") : Ke(N.value, T, p), I.value && clearTimeout(I.value), I.value = setTimeout(() => {
|
|
6739
6739
|
const D = _e(N.value);
|
|
6740
6740
|
Object.keys(D).forEach((C) => {
|
|
6741
|
-
|
|
6741
|
+
s.value.includes(C) && D[C] == "all" && delete D[C], (D[C] === "" || D[C] === null) && delete D[C];
|
|
6742
6742
|
}), o("header-filter-change", D);
|
|
6743
6743
|
}, 300);
|
|
6744
6744
|
}
|
|
@@ -6753,7 +6753,7 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6753
6753
|
N.value = _e(lt({}, l.value, !0));
|
|
6754
6754
|
const T = _e(N.value);
|
|
6755
6755
|
Object.keys(T).forEach((p) => {
|
|
6756
|
-
|
|
6756
|
+
s.value.includes(p) && T[p] == "all" && delete T[p], (T[p] === "" || T[p] === null) && delete T[p];
|
|
6757
6757
|
}), o("header-filter-change", T);
|
|
6758
6758
|
}
|
|
6759
6759
|
const v = Q(() => n.tableColumns && n.tableColumns.length ? n.tableColumns.map((T, p) => ({
|
|
@@ -6765,7 +6765,7 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6765
6765
|
o("display-columns-change", T);
|
|
6766
6766
|
}
|
|
6767
6767
|
const w = Iu(), f = Wu();
|
|
6768
|
-
|
|
6768
|
+
Ue(() => {
|
|
6769
6769
|
const T = f.getFormData(w.fullPath);
|
|
6770
6770
|
T != null && T.formData && (N.value = {
|
|
6771
6771
|
...T.formData
|
|
@@ -6810,7 +6810,7 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6810
6810
|
layout: "inline",
|
|
6811
6811
|
colon: ""
|
|
6812
6812
|
}, {
|
|
6813
|
-
default: k(() => [(d(!0), H(ce, null, Ce(
|
|
6813
|
+
default: k(() => [(d(!0), H(ce, null, Ce(r.value, (g, F) => (d(), b(xt, {
|
|
6814
6814
|
ref_for: !0,
|
|
6815
6815
|
ref: "gFormItemRefs",
|
|
6816
6816
|
key: F,
|
|
@@ -6840,7 +6840,7 @@ const A4 = /* @__PURE__ */ au(j4, [["__scopeId", "data-v-0e96ba67"]]), m4 = We(A
|
|
|
6840
6840
|
onAfterUpdateValue: j,
|
|
6841
6841
|
isLabelNameShow: !1,
|
|
6842
6842
|
componentProps: x(g)
|
|
6843
|
-
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"])]))), 128)),
|
|
6843
|
+
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"])]))), 128)), r.value.length || c.value.length ? (d(), b(D, {
|
|
6844
6844
|
key: 0,
|
|
6845
6845
|
theme: "default",
|
|
6846
6846
|
onClick: P
|
|
@@ -6868,16 +6868,16 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
6868
6868
|
emits: ["blur"],
|
|
6869
6869
|
setup(t, { emit: u }) {
|
|
6870
6870
|
const { T: e } = Ae(), n = `${Vu}__form`, o = t, a = u, i = Q(() => {
|
|
6871
|
-
var
|
|
6872
|
-
return (
|
|
6871
|
+
var s;
|
|
6872
|
+
return (s = o.col) == null ? void 0 : s.formItems;
|
|
6873
6873
|
}), l = Q(() => lt(o.row, i.value));
|
|
6874
|
-
function s
|
|
6875
|
-
Ke(l.value,
|
|
6874
|
+
function r(s, M) {
|
|
6875
|
+
Ke(l.value, s, M);
|
|
6876
6876
|
}
|
|
6877
|
-
function c(
|
|
6878
|
-
a("blur",
|
|
6877
|
+
function c(s, M) {
|
|
6878
|
+
a("blur", s, l.value);
|
|
6879
6879
|
}
|
|
6880
|
-
return tu(Lt, {}), (
|
|
6880
|
+
return tu(Lt, {}), (s, M) => (d(), H("div", {
|
|
6881
6881
|
class: K(`${n}`)
|
|
6882
6882
|
}, [
|
|
6883
6883
|
(d(!0), H(ce, null, Ce(i.value, (N) => {
|
|
@@ -6887,92 +6887,92 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
6887
6887
|
}, [
|
|
6888
6888
|
N.itemType === "label" ? (d(), b(Yo, {
|
|
6889
6889
|
key: 0,
|
|
6890
|
-
modelValue: A(le)(l.value,
|
|
6890
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6891
6891
|
formItem: N,
|
|
6892
6892
|
formModel: l.value
|
|
6893
6893
|
}, null, 8, ["modelValue", "formItem", "formModel"])) : q("", !0),
|
|
6894
6894
|
N.itemType == "text_input" ? (d(), b(Dn, {
|
|
6895
6895
|
key: 1,
|
|
6896
6896
|
formItem: N,
|
|
6897
|
-
viewName:
|
|
6897
|
+
viewName: s.viewName,
|
|
6898
6898
|
inputType: (I = N.inputType) == null ? void 0 : I.toLowerCase(),
|
|
6899
|
-
originValue: A(le)(
|
|
6900
|
-
modelValue: A(le)(l.value,
|
|
6901
|
-
"onUpdate:modelValue": M[0] || (M[0] = (j) =>
|
|
6899
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6900
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6901
|
+
"onUpdate:modelValue": M[0] || (M[0] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6902
6902
|
"onBlur:modelValue": (j) => c(N)
|
|
6903
6903
|
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : q("", !0),
|
|
6904
6904
|
N.itemType === "check_box" ? (d(), b(Bo, {
|
|
6905
6905
|
key: 2,
|
|
6906
6906
|
formItem: N,
|
|
6907
|
-
viewName:
|
|
6908
|
-
originValue: A(le)(
|
|
6909
|
-
modelValue: A(le)(l.value,
|
|
6910
|
-
"onUpdate:modelValue": M[1] || (M[1] = (j) =>
|
|
6907
|
+
viewName: s.viewName,
|
|
6908
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6909
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6910
|
+
"onUpdate:modelValue": M[1] || (M[1] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6911
6911
|
"onBlur:modelValue": (j) => c(N)
|
|
6912
6912
|
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : q("", !0),
|
|
6913
6913
|
N.itemType === "switch" ? (d(), b(_o, {
|
|
6914
6914
|
key: 3,
|
|
6915
6915
|
formItem: N,
|
|
6916
|
-
viewName:
|
|
6917
|
-
originValue: A(le)(
|
|
6918
|
-
modelValue: A(le)(l.value,
|
|
6919
|
-
"onUpdate:modelValue": M[2] || (M[2] = (j) =>
|
|
6916
|
+
viewName: s.viewName,
|
|
6917
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6918
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6919
|
+
"onUpdate:modelValue": M[2] || (M[2] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6920
6920
|
"onBlur:modelValue": (j) => c(N)
|
|
6921
6921
|
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : q("", !0),
|
|
6922
6922
|
N.itemType === "radio" ? (d(), b(Fo, {
|
|
6923
6923
|
key: 4,
|
|
6924
|
-
originValue: A(le)(
|
|
6925
|
-
modelValue: A(le)(l.value,
|
|
6924
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6925
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6926
6926
|
formItem: N,
|
|
6927
|
-
viewName:
|
|
6928
|
-
"onUpdate:modelValue": M[3] || (M[3] = (j) =>
|
|
6927
|
+
viewName: s.viewName,
|
|
6928
|
+
"onUpdate:modelValue": M[3] || (M[3] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6929
6929
|
"onBlur:modelValue": (j) => c(N)
|
|
6930
6930
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : q("", !0),
|
|
6931
6931
|
N.itemType === "selector" || N.itemType === "multi_selector" ? (d(), b(Po, {
|
|
6932
6932
|
key: 5,
|
|
6933
|
-
originValue: A(le)(
|
|
6934
|
-
modelValue: A(le)(l.value,
|
|
6933
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6934
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6935
6935
|
formItem: N,
|
|
6936
|
-
viewName:
|
|
6936
|
+
viewName: s.viewName,
|
|
6937
6937
|
multiple: N.itemType === "multi_selector",
|
|
6938
|
-
"onUpdate:modelValue": M[4] || (M[4] = (j) =>
|
|
6938
|
+
"onUpdate:modelValue": M[4] || (M[4] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6939
6939
|
"onBlur:modelValue": (j) => c(N)
|
|
6940
6940
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : q("", !0),
|
|
6941
6941
|
N.itemType === "date_selector" || N.itemType === "time_selector" || N.itemType === "date_time_selector" ? (d(), b($o, {
|
|
6942
6942
|
key: 6,
|
|
6943
|
-
originValue: A(le)(
|
|
6944
|
-
modelValue: A(le)(l.value,
|
|
6943
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6944
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6945
6945
|
formItem: N,
|
|
6946
|
-
viewName:
|
|
6947
|
-
"onUpdate:modelValue": M[5] || (M[5] = (j) =>
|
|
6946
|
+
viewName: s.viewName,
|
|
6947
|
+
"onUpdate:modelValue": M[5] || (M[5] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6948
6948
|
"onBlur:modelValue": (j) => c(N)
|
|
6949
6949
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : q("", !0),
|
|
6950
6950
|
N.itemType === "tree_check_box" ? (d(), b(Vo, {
|
|
6951
6951
|
key: 7,
|
|
6952
|
-
originValue: A(le)(
|
|
6953
|
-
modelValue: A(le)(l.value,
|
|
6952
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6953
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6954
6954
|
formItem: N,
|
|
6955
|
-
viewName:
|
|
6956
|
-
"onUpdate:modelValue": M[6] || (M[6] = (j) =>
|
|
6955
|
+
viewName: s.viewName,
|
|
6956
|
+
"onUpdate:modelValue": M[6] || (M[6] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6957
6957
|
"onBlur:modelValue": (j) => c(N)
|
|
6958
6958
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : q("", !0),
|
|
6959
6959
|
N.itemType === "multi_tree_selector" || N.itemType === "tree_selector" ? (d(), b(Ro, {
|
|
6960
6960
|
key: 8,
|
|
6961
|
-
originValue: A(le)(
|
|
6962
|
-
modelValue: A(le)(l.value,
|
|
6961
|
+
originValue: A(le)(s.row, s.col.colKey),
|
|
6962
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6963
6963
|
formItem: N,
|
|
6964
|
-
viewName:
|
|
6964
|
+
viewName: s.viewName,
|
|
6965
6965
|
multiple: N.itemType === "multi_tree_selector",
|
|
6966
|
-
"onUpdate:modelValue": M[7] || (M[7] = (j) =>
|
|
6966
|
+
"onUpdate:modelValue": M[7] || (M[7] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6967
6967
|
"onBlur:modelValue": (j) => c(N)
|
|
6968
6968
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : q("", !0),
|
|
6969
6969
|
N.itemType === "file" ? (d(), b(Wo, {
|
|
6970
6970
|
key: 9,
|
|
6971
|
-
modelValue: A(le)(l.value,
|
|
6971
|
+
modelValue: A(le)(l.value, s.col.colKey),
|
|
6972
6972
|
formItem: N,
|
|
6973
|
-
viewName:
|
|
6973
|
+
viewName: s.viewName,
|
|
6974
6974
|
tips: N.placeholder || `${A(e).t("请选择上传文件")}`,
|
|
6975
|
-
"onUpdate:modelValue": M[8] || (M[8] = (j) =>
|
|
6975
|
+
"onUpdate:modelValue": M[8] || (M[8] = (j) => s.col.colKey && r(s.col.colKey, j)),
|
|
6976
6976
|
"onBlur:modelValue": (j) => c(N)
|
|
6977
6977
|
}, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) : q("", !0)
|
|
6978
6978
|
]);
|
|
@@ -6988,7 +6988,7 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
6988
6988
|
},
|
|
6989
6989
|
emits: ["table-button-action"],
|
|
6990
6990
|
setup(t, { emit: u }) {
|
|
6991
|
-
const e = t, n = R(!1), o = u, a = R(), i = R([]), l = R([]),
|
|
6991
|
+
const e = t, n = R(!1), o = u, a = R(), i = R([]), l = R([]), r = R(0), c = R(!1), s = R(/* @__PURE__ */ new Map()), M = Q(() => 0), N = R(0), I = Q(() => e.buttons.filter((D) => {
|
|
6992
6992
|
if (D.showIf === "1")
|
|
6993
6993
|
return !0;
|
|
6994
6994
|
try {
|
|
@@ -6997,11 +6997,11 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
6997
6997
|
} catch (C) {
|
|
6998
6998
|
return console.warn("Button filter evaluation error:", C), !1;
|
|
6999
6999
|
}
|
|
7000
|
-
})), j = (D) => D.name ?
|
|
7001
|
-
if (!c.value || !
|
|
7000
|
+
})), j = (D) => D.name ? s.value.get(D.name) ?? 0 : 0, x = Q(() => I.value.reduce((D, C) => D + j(C), 0)), P = Q(() => {
|
|
7001
|
+
if (!c.value || !r.value)
|
|
7002
7002
|
return I.value.length;
|
|
7003
|
-
if (
|
|
7004
|
-
let D =
|
|
7003
|
+
if (r.value < N.value) {
|
|
7004
|
+
let D = r.value, C = 0, V = dt;
|
|
7005
7005
|
I.value.length > M.value && (D -= Zt);
|
|
7006
7006
|
for (const g of I.value) {
|
|
7007
7007
|
const F = j(g);
|
|
@@ -7017,7 +7017,7 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
7017
7017
|
Te(
|
|
7018
7018
|
() => P.value,
|
|
7019
7019
|
(D) => {
|
|
7020
|
-
D <= 0 && (
|
|
7020
|
+
D <= 0 && (r.value = Zt);
|
|
7021
7021
|
}
|
|
7022
7022
|
);
|
|
7023
7023
|
const f = (D, C) => {
|
|
@@ -7025,12 +7025,12 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
7025
7025
|
}, B = async () => {
|
|
7026
7026
|
l.value.forEach((C, V) => {
|
|
7027
7027
|
const g = I.value[V];
|
|
7028
|
-
g && g.name && (C != null && C.$el) &&
|
|
7028
|
+
g && g.name && (C != null && C.$el) && s.value.set(g.name, C.$el.offsetWidth);
|
|
7029
7029
|
}), await ro();
|
|
7030
7030
|
const D = x.value + dt;
|
|
7031
|
-
N.value = D,
|
|
7031
|
+
N.value = D, r.value = D, c.value = !0;
|
|
7032
7032
|
};
|
|
7033
|
-
|
|
7033
|
+
Ue(() => {
|
|
7034
7034
|
B();
|
|
7035
7035
|
});
|
|
7036
7036
|
const T = Q(() => {
|
|
@@ -7044,7 +7044,7 @@ const p4 = /* @__PURE__ */ au(f4, [["__scopeId", "data-v-63db2f69"]]), C4 = We(p
|
|
|
7044
7044
|
return Te(
|
|
7045
7045
|
() => [e.operationsWidth, p, T],
|
|
7046
7046
|
([D]) => {
|
|
7047
|
-
D && typeof D == "number" && (p.value && D < p.value ? D > T.value ?
|
|
7047
|
+
D && typeof D == "number" && (p.value && D < p.value ? D > T.value ? r.value = Math.min(D, N.value) : r.value = T.value : r.value = p.value);
|
|
7048
7048
|
},
|
|
7049
7049
|
{ deep: !0 }
|
|
7050
7050
|
), (D, C) => {
|
|
@@ -7179,9 +7179,9 @@ function Zn(t, u) {
|
|
|
7179
7179
|
if (o !== l - 1 && a === 2) {
|
|
7180
7180
|
if (e.length < 2 || n !== 2 || e.charCodeAt(e.length - 1) !== 46 || e.charCodeAt(e.length - 2) !== 46) {
|
|
7181
7181
|
if (e.length > 2) {
|
|
7182
|
-
var
|
|
7183
|
-
if (
|
|
7184
|
-
|
|
7182
|
+
var r = e.lastIndexOf("/");
|
|
7183
|
+
if (r !== e.length - 1) {
|
|
7184
|
+
r === -1 ? (e = "", n = 0) : (e = e.slice(0, r), n = e.length - 1 - e.lastIndexOf("/")), o = l, a = 0;
|
|
7185
7185
|
continue;
|
|
7186
7186
|
}
|
|
7187
7187
|
} else if (e.length === 2 || e.length === 1) {
|
|
@@ -7236,26 +7236,26 @@ var vu = {
|
|
|
7236
7236
|
;
|
|
7237
7237
|
for (var o = u.length, a = o - n, i = 1; i < e.length && e.charCodeAt(i) === 47; ++i)
|
|
7238
7238
|
;
|
|
7239
|
-
for (var l = e.length,
|
|
7239
|
+
for (var l = e.length, r = l - i, c = a < r ? a : r, s = -1, M = 0; M <= c; ++M) {
|
|
7240
7240
|
if (M === c) {
|
|
7241
|
-
if (
|
|
7241
|
+
if (r > c) {
|
|
7242
7242
|
if (e.charCodeAt(i + M) === 47)
|
|
7243
7243
|
return e.slice(i + M + 1);
|
|
7244
7244
|
if (M === 0)
|
|
7245
7245
|
return e.slice(i + M);
|
|
7246
7246
|
} else
|
|
7247
|
-
a > c && (u.charCodeAt(n + M) === 47 ?
|
|
7247
|
+
a > c && (u.charCodeAt(n + M) === 47 ? s = M : M === 0 && (s = 0));
|
|
7248
7248
|
break;
|
|
7249
7249
|
}
|
|
7250
7250
|
var N = u.charCodeAt(n + M), I = e.charCodeAt(i + M);
|
|
7251
7251
|
if (N !== I)
|
|
7252
7252
|
break;
|
|
7253
|
-
N === 47 && (
|
|
7253
|
+
N === 47 && (s = M);
|
|
7254
7254
|
}
|
|
7255
7255
|
var j = "";
|
|
7256
|
-
for (M = n +
|
|
7256
|
+
for (M = n + s + 1; M <= o; ++M)
|
|
7257
7257
|
(M === o || u.charCodeAt(M) === 47) && (j.length === 0 ? j += ".." : j += "/..");
|
|
7258
|
-
return j.length > 0 ? j + e.slice(i +
|
|
7258
|
+
return j.length > 0 ? j + e.slice(i + s) : (i += s, e.charCodeAt(i) === 47 && ++i, e.slice(i));
|
|
7259
7259
|
},
|
|
7260
7260
|
_makeLong: function(u) {
|
|
7261
7261
|
return u;
|
|
@@ -7281,7 +7281,7 @@ var vu = {
|
|
|
7281
7281
|
if (e !== void 0 && e.length > 0 && e.length <= u.length) {
|
|
7282
7282
|
if (e.length === u.length && e === u)
|
|
7283
7283
|
return "";
|
|
7284
|
-
var l = e.length - 1,
|
|
7284
|
+
var l = e.length - 1, r = -1;
|
|
7285
7285
|
for (i = u.length - 1; i >= 0; --i) {
|
|
7286
7286
|
var c = u.charCodeAt(i);
|
|
7287
7287
|
if (c === 47) {
|
|
@@ -7290,9 +7290,9 @@ var vu = {
|
|
|
7290
7290
|
break;
|
|
7291
7291
|
}
|
|
7292
7292
|
} else
|
|
7293
|
-
|
|
7293
|
+
r === -1 && (a = !1, r = i + 1), l >= 0 && (c === e.charCodeAt(l) ? --l === -1 && (o = i) : (l = -1, o = r));
|
|
7294
7294
|
}
|
|
7295
|
-
return n === o ? o =
|
|
7295
|
+
return n === o ? o = r : o === -1 && (o = u.length), u.slice(n, o);
|
|
7296
7296
|
} else {
|
|
7297
7297
|
for (i = u.length - 1; i >= 0; --i)
|
|
7298
7298
|
if (u.charCodeAt(i) === 47) {
|
|
@@ -7308,15 +7308,15 @@ var vu = {
|
|
|
7308
7308
|
extname: function(u) {
|
|
7309
7309
|
iu(u);
|
|
7310
7310
|
for (var e = -1, n = 0, o = -1, a = !0, i = 0, l = u.length - 1; l >= 0; --l) {
|
|
7311
|
-
var
|
|
7312
|
-
if (
|
|
7311
|
+
var r = u.charCodeAt(l);
|
|
7312
|
+
if (r === 47) {
|
|
7313
7313
|
if (!a) {
|
|
7314
7314
|
n = l + 1;
|
|
7315
7315
|
break;
|
|
7316
7316
|
}
|
|
7317
7317
|
continue;
|
|
7318
7318
|
}
|
|
7319
|
-
o === -1 && (a = !1, o = l + 1),
|
|
7319
|
+
o === -1 && (a = !1, o = l + 1), r === 46 ? e === -1 ? e = l : i !== 1 && (i = 1) : e !== -1 && (i = -1);
|
|
7320
7320
|
}
|
|
7321
7321
|
return e === -1 || o === -1 || // We saw a non-dot character immediately before the dot
|
|
7322
7322
|
i === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
@@ -7334,19 +7334,19 @@ var vu = {
|
|
|
7334
7334
|
return e;
|
|
7335
7335
|
var n = u.charCodeAt(0), o = n === 47, a;
|
|
7336
7336
|
o ? (e.root = "/", a = 1) : a = 0;
|
|
7337
|
-
for (var i = -1, l = 0,
|
|
7338
|
-
if (n = u.charCodeAt(
|
|
7337
|
+
for (var i = -1, l = 0, r = -1, c = !0, s = u.length - 1, M = 0; s >= a; --s) {
|
|
7338
|
+
if (n = u.charCodeAt(s), n === 47) {
|
|
7339
7339
|
if (!c) {
|
|
7340
|
-
l =
|
|
7340
|
+
l = s + 1;
|
|
7341
7341
|
break;
|
|
7342
7342
|
}
|
|
7343
7343
|
continue;
|
|
7344
7344
|
}
|
|
7345
|
-
|
|
7345
|
+
r === -1 && (c = !1, r = s + 1), n === 46 ? i === -1 ? i = s : M !== 1 && (M = 1) : i !== -1 && (M = -1);
|
|
7346
7346
|
}
|
|
7347
|
-
return i === -1 ||
|
|
7347
|
+
return i === -1 || r === -1 || // We saw a non-dot character immediately before the dot
|
|
7348
7348
|
M === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
7349
|
-
M === 1 && i ===
|
|
7349
|
+
M === 1 && i === r - 1 && i === l + 1 ? r !== -1 && (l === 0 && o ? e.base = e.name = u.slice(1, r) : e.base = e.name = u.slice(l, r)) : (l === 0 && o ? (e.name = u.slice(1, i), e.base = u.slice(1, r)) : (e.name = u.slice(l, i), e.base = u.slice(l, r)), e.ext = u.slice(i, r)), l > 0 ? e.dir = u.slice(0, l - 1) : o && (e.dir = "/"), e;
|
|
7350
7350
|
},
|
|
7351
7351
|
sep: "/",
|
|
7352
7352
|
delimiter: ":",
|
|
@@ -7381,10 +7381,10 @@ function S4(t, {
|
|
|
7381
7381
|
quality: a,
|
|
7382
7382
|
matte: i,
|
|
7383
7383
|
density: l,
|
|
7384
|
-
outline:
|
|
7384
|
+
outline: r,
|
|
7385
7385
|
archive: I
|
|
7386
7386
|
} = {}) {
|
|
7387
|
-
var { fromMime:
|
|
7387
|
+
var { fromMime: s, toMime: M, expected: N } = new k4(), I = I || "canvas", j = x || e.replace(/@\d+x$/i, "") || O4(u), x = s(M(j) || j), P = M(x), v = t.length;
|
|
7388
7388
|
if (!j)
|
|
7389
7389
|
throw new Error(
|
|
7390
7390
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
@@ -7411,7 +7411,7 @@ function S4(t, {
|
|
|
7411
7411
|
l = T ? parseInt(T[1], 10) : 1;
|
|
7412
7412
|
} else if (typeof l != "number" || !Number.isInteger(l) || l < 1)
|
|
7413
7413
|
throw new TypeError("The density option must be a non-negative integer");
|
|
7414
|
-
return
|
|
7414
|
+
return r === void 0 ? r = !0 : x == "svg" && (r = !!r), {
|
|
7415
7415
|
filename: u,
|
|
7416
7416
|
pattern: f,
|
|
7417
7417
|
format: x,
|
|
@@ -7421,7 +7421,7 @@ function S4(t, {
|
|
|
7421
7421
|
quality: a,
|
|
7422
7422
|
matte: i,
|
|
7423
7423
|
density: l,
|
|
7424
|
-
outline:
|
|
7424
|
+
outline: r,
|
|
7425
7425
|
archive: I
|
|
7426
7426
|
};
|
|
7427
7427
|
}
|
|
@@ -7482,10 +7482,10 @@ class St {
|
|
|
7482
7482
|
}), this.add(u);
|
|
7483
7483
|
}
|
|
7484
7484
|
async add(u, e) {
|
|
7485
|
-
let n = !e, o = St.encoder.encode(`${this.directory}/${n ? "" : u}`), a = new Uint8Array(n ? 0 : await e.arrayBuffer()), i = 30 + o.length, l = i + a.length,
|
|
7485
|
+
let n = !e, o = St.encoder.encode(`${this.directory}/${n ? "" : u}`), a = new Uint8Array(n ? 0 : await e.arrayBuffer()), i = 30 + o.length, l = i + a.length, r = 16, { offset: c } = this, s = qt(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, kt.for(a)).set32(14, a.length).set32(18, a.length).set16(22, o.length);
|
|
7486
7486
|
c += i;
|
|
7487
|
-
let M = qt(i + a.length +
|
|
7488
|
-
c += a.length, M.set32(l, 134695760).bytes(l + 4,
|
|
7487
|
+
let M = qt(i + a.length + r).set32(0, 67324752).bytes(4, s.array).bytes(30, o).bytes(i, a);
|
|
7488
|
+
c += a.length, M.set32(l, 134695760).bytes(l + 4, s.array.slice(10, 22)), c += r, this.files.push({ offset: c, folder: n, name: o, header: s, payload: M }), this.offset = c;
|
|
7489
7489
|
}
|
|
7490
7490
|
toBuffer() {
|
|
7491
7491
|
let u = this.files.reduce(
|
|
@@ -7495,10 +7495,10 @@ class St {
|
|
|
7495
7495
|
for (var { offset: o, name: a, header: i, folder: l } of this.files)
|
|
7496
7496
|
e.set32(n, 33639248).set16(n + 4, 20).bytes(n + 6, i.array).set8(n + 38, l ? 16 : 0).set32(n + 42, o).bytes(n + 46, a), n += 46 + a.length;
|
|
7497
7497
|
e.set32(n, 101010256).set16(n + 8, this.files.length).set16(n + 10, this.files.length).set32(n + 12, u).set32(n + 16, this.offset);
|
|
7498
|
-
let
|
|
7499
|
-
for (var { payload:
|
|
7500
|
-
|
|
7501
|
-
return
|
|
7498
|
+
let r = new Uint8Array(this.offset + e.size), c = 0;
|
|
7499
|
+
for (var { payload: s } of this.files)
|
|
7500
|
+
r.set(s.array, c), c += s.size;
|
|
7501
|
+
return r.set(e.array, c), r;
|
|
7502
7502
|
}
|
|
7503
7503
|
get blob() {
|
|
7504
7504
|
return new Blob([this.toBuffer()], { type: "application/zip" });
|
|
@@ -7514,13 +7514,13 @@ const fn = (t, u, e, n) => {
|
|
|
7514
7514
|
}, w4 = (...t) => fn(...t).then((u) => u.arrayBuffer()), v4 = async (t, u, e, n, o) => {
|
|
7515
7515
|
Ko(o, await fn(t, u, e, n));
|
|
7516
7516
|
}, U4 = async (t, u, e, n, o, a, i) => {
|
|
7517
|
-
let l = (
|
|
7517
|
+
let l = (s) => a.replace("{}", String(s + 1).padStart(i, "0")), r = Zo(o, ".zip") || "archive", c = new St(r);
|
|
7518
7518
|
await Promise.all(
|
|
7519
|
-
t.map(async (
|
|
7519
|
+
t.map(async (s, M) => {
|
|
7520
7520
|
let N = l(M);
|
|
7521
|
-
await c.add(N, await fn(
|
|
7521
|
+
await c.add(N, await fn(s, u, e, n));
|
|
7522
7522
|
})
|
|
7523
|
-
), Ko(`${
|
|
7523
|
+
), Ko(`${r}.zip`, c.blob);
|
|
7524
7524
|
}, Ko = (t, u) => {
|
|
7525
7525
|
const e = window.URL.createObjectURL(u), n = document.createElement("a");
|
|
7526
7526
|
n.style.display = "none", n.href = e, n.setAttribute("download", t), typeof n.download > "u" && n.setAttribute("target", "_blank"), document.body.appendChild(n), n.click(), document.body.removeChild(n), setTimeout(() => window.URL.revokeObjectURL(e), 100);
|
|
@@ -7555,36 +7555,36 @@ let F4 = class {
|
|
|
7555
7555
|
width: u,
|
|
7556
7556
|
height: e,
|
|
7557
7557
|
newPage(...l) {
|
|
7558
|
-
var { width: c, height:
|
|
7558
|
+
var { width: c, height: s } = n, r = Object.assign(document.createElement("canvas"), {
|
|
7559
7559
|
width: c,
|
|
7560
|
-
height:
|
|
7560
|
+
height: s
|
|
7561
7561
|
});
|
|
7562
|
-
|
|
7563
|
-
var [c,
|
|
7564
|
-
return Object.assign(n, { width: c, height:
|
|
7562
|
+
r.getContext("2d").drawImage(n, 0, 0), o.push(r);
|
|
7563
|
+
var [c, s] = l.length ? l : [c, s];
|
|
7564
|
+
return Object.assign(n, { width: c, height: s }).getContext("2d");
|
|
7565
7565
|
},
|
|
7566
|
-
saveAs(l,
|
|
7567
|
-
|
|
7568
|
-
let c = en(this.pages, { filename: l, ...
|
|
7566
|
+
saveAs(l, r) {
|
|
7567
|
+
r = typeof r == "number" ? { quality: r } : r;
|
|
7568
|
+
let c = en(this.pages, { filename: l, ...r }), { pattern: s, padding: M, mime: N, quality: I, matte: j, density: x, archive: P } = c, v = Xt(c.pages, x);
|
|
7569
7569
|
return M == null ? Y4(v[0], N, I, j, l) : B4(
|
|
7570
7570
|
v,
|
|
7571
7571
|
N,
|
|
7572
7572
|
I,
|
|
7573
7573
|
j,
|
|
7574
7574
|
P,
|
|
7575
|
-
|
|
7575
|
+
s,
|
|
7576
7576
|
M
|
|
7577
7577
|
);
|
|
7578
7578
|
},
|
|
7579
|
-
toBuffer(l = "png",
|
|
7580
|
-
|
|
7581
|
-
let c = en(this.pages, { extension: l, ...
|
|
7582
|
-
return Jt(x,
|
|
7579
|
+
toBuffer(l = "png", r = {}) {
|
|
7580
|
+
r = typeof r == "number" ? { quality: r } : r;
|
|
7581
|
+
let c = en(this.pages, { extension: l, ...r }), { mime: s, quality: M, matte: N, pages: I, density: j } = c, x = Xt(I, j, N)[0];
|
|
7582
|
+
return Jt(x, s, M, N);
|
|
7583
7583
|
},
|
|
7584
7584
|
[Kn]: n.toDataURL.bind(n),
|
|
7585
|
-
toDataURL(l = "png",
|
|
7586
|
-
|
|
7587
|
-
let c = en(this.pages, { extension: l, ...
|
|
7585
|
+
toDataURL(l = "png", r = {}) {
|
|
7586
|
+
r = typeof r == "number" ? { quality: r } : r;
|
|
7587
|
+
let c = en(this.pages, { extension: l, ...r }), { mime: s, quality: M, matte: N, pages: I, density: j } = c, x = Xt(I, j, N)[0], P = x[x === n ? Kn : "toDataURL"](s, M);
|
|
7588
7588
|
return Promise.resolve(P);
|
|
7589
7589
|
}
|
|
7590
7590
|
});
|
|
@@ -7628,10 +7628,10 @@ const {
|
|
|
7628
7628
|
const i = [];
|
|
7629
7629
|
let l = e.pos;
|
|
7630
7630
|
for (; u(e, n, o); ) {
|
|
7631
|
-
const
|
|
7632
|
-
if (a(e, t, n,
|
|
7631
|
+
const r = {};
|
|
7632
|
+
if (a(e, t, n, r), e.pos === l)
|
|
7633
7633
|
break;
|
|
7634
|
-
l = e.pos, i.push(
|
|
7634
|
+
l = e.pos, i.push(r);
|
|
7635
7635
|
}
|
|
7636
7636
|
return i;
|
|
7637
7637
|
}, J4 = (t) => ({
|
|
@@ -7642,8 +7642,8 @@ const {
|
|
|
7642
7642
|
return t ? (e[1] << 8) + e[0] : (e[0] << 8) + e[1];
|
|
7643
7643
|
}, Xo = (t, u) => (e, n, o) => {
|
|
7644
7644
|
const a = typeof u == "function" ? u(e, n, o) : u, i = cu(t), l = new Array(a);
|
|
7645
|
-
for (var
|
|
7646
|
-
l[
|
|
7645
|
+
for (var r = 0; r < a; r++)
|
|
7646
|
+
l[r] = i(e);
|
|
7647
7647
|
return l;
|
|
7648
7648
|
}, X4 = (t, u, e) => {
|
|
7649
7649
|
for (var n = 0, o = 0; o < e; o++)
|
|
@@ -7670,8 +7670,8 @@ var vt = {
|
|
|
7670
7670
|
e.push(cu(a)(t)), o += a;
|
|
7671
7671
|
}
|
|
7672
7672
|
const i = new Uint8Array(o);
|
|
7673
|
-
for (var l = 0,
|
|
7674
|
-
i.set(e[
|
|
7673
|
+
for (var l = 0, r = 0; r < e.length; r++)
|
|
7674
|
+
i.set(e[r], l), l += e[r].length;
|
|
7675
7675
|
return i;
|
|
7676
7676
|
}
|
|
7677
7677
|
};
|
|
@@ -7802,19 +7802,19 @@ const el = Uu(
|
|
|
7802
7802
|
)
|
|
7803
7803
|
}
|
|
7804
7804
|
], il = (t, u) => {
|
|
7805
|
-
const e = new Array(t.length), n = t.length / u, o = function(
|
|
7805
|
+
const e = new Array(t.length), n = t.length / u, o = function(s, M) {
|
|
7806
7806
|
const N = t.slice(M * u, (M + 1) * u);
|
|
7807
|
-
e.splice.apply(e, [
|
|
7807
|
+
e.splice.apply(e, [s * u, u].concat(N));
|
|
7808
7808
|
}, a = [0, 4, 2, 1], i = [8, 8, 4, 2];
|
|
7809
|
-
for (var l = 0,
|
|
7810
|
-
for (var c = a[
|
|
7809
|
+
for (var l = 0, r = 0; r < 4; r++)
|
|
7810
|
+
for (var c = a[r]; c < n; c += i[r])
|
|
7811
7811
|
o(c, l), l++;
|
|
7812
7812
|
return e;
|
|
7813
7813
|
}, ll = (t, u, e) => {
|
|
7814
7814
|
const a = e;
|
|
7815
|
-
var i, l,
|
|
7815
|
+
var i, l, r, c, s, M, N, B, I, j, f, x, T, p, C, D;
|
|
7816
7816
|
const P = new Array(e), v = new Array(4096), z = new Array(4096), w = new Array(4096 + 1);
|
|
7817
|
-
for (x = t, l = 1 << x,
|
|
7817
|
+
for (x = t, l = 1 << x, s = l + 1, i = l + 2, N = -1, c = x + 1, r = (1 << c) - 1, I = 0; I < l; I++)
|
|
7818
7818
|
v[I] = 0, z[I] = I;
|
|
7819
7819
|
var f, B, T, p, D, C;
|
|
7820
7820
|
for (f = B = T = p = D = C = 0, j = 0; j < a; ) {
|
|
@@ -7823,10 +7823,10 @@ const el = Uu(
|
|
|
7823
7823
|
f += u[C] << B, B += 8, C++;
|
|
7824
7824
|
continue;
|
|
7825
7825
|
}
|
|
7826
|
-
if (I = f &
|
|
7826
|
+
if (I = f & r, f >>= c, B -= c, I > i || I == s)
|
|
7827
7827
|
break;
|
|
7828
7828
|
if (I == l) {
|
|
7829
|
-
c = x + 1,
|
|
7829
|
+
c = x + 1, r = (1 << c) - 1, i = l + 2, N = -1;
|
|
7830
7830
|
continue;
|
|
7831
7831
|
}
|
|
7832
7832
|
if (N == -1) {
|
|
@@ -7835,7 +7835,7 @@ const el = Uu(
|
|
|
7835
7835
|
}
|
|
7836
7836
|
for (M = I, I == i && (w[p++] = T, I = N); I > l; )
|
|
7837
7837
|
w[p++] = z[I], I = v[I];
|
|
7838
|
-
T = z[I] & 255, w[p++] = T, i < 4096 && (v[i] = N, z[i] = T, i++, !(i &
|
|
7838
|
+
T = z[I] & 255, w[p++] = T, i < 4096 && (v[i] = N, z[i] = T, i++, !(i & r) && i < 4096 && (c++, r += i)), N = M;
|
|
7839
7839
|
}
|
|
7840
7840
|
p--, P[D++] = w[p], j++;
|
|
7841
7841
|
}
|
|
@@ -7937,7 +7937,7 @@ class gl {
|
|
|
7937
7937
|
u.put(this.parsedData[e], 8);
|
|
7938
7938
|
}
|
|
7939
7939
|
}
|
|
7940
|
-
class
|
|
7940
|
+
class zu {
|
|
7941
7941
|
constructor(u = -1, e = Ve.L) {
|
|
7942
7942
|
this.moduleCount = 0, this.dataList = [], this.typeNumber = u, this.errorCorrectLevel = e, this.moduleCount = 0, this.dataList = [];
|
|
7943
7943
|
}
|
|
@@ -7971,7 +7971,7 @@ class xu {
|
|
|
7971
7971
|
for (let o = 0; o < this.moduleCount; o++)
|
|
7972
7972
|
this.modules[n][o] = null;
|
|
7973
7973
|
}
|
|
7974
|
-
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(u, e), this.typeNumber >= 7 && this.setupTypeNumber(u), this.dataCache == null && (this.dataCache =
|
|
7974
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(u, e), this.typeNumber >= 7 && this.setupTypeNumber(u), this.dataCache == null && (this.dataCache = zu.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, e);
|
|
7975
7975
|
}
|
|
7976
7976
|
setupPositionProbePattern(u, e) {
|
|
7977
7977
|
for (let n = -1; n <= 7; n++)
|
|
@@ -8034,10 +8034,10 @@ class xu {
|
|
|
8034
8034
|
let n = -1, o = this.moduleCount - 1, a = 7, i = 0;
|
|
8035
8035
|
for (let l = this.moduleCount - 1; l > 0; l -= 2)
|
|
8036
8036
|
for (l == 6 && l--; ; ) {
|
|
8037
|
-
for (let
|
|
8038
|
-
if (this.modules[o][l -
|
|
8037
|
+
for (let r = 0; r < 2; r++)
|
|
8038
|
+
if (this.modules[o][l - r] == null) {
|
|
8039
8039
|
let c = !1;
|
|
8040
|
-
i < u.length && (c = (u[i] >>> a & 1) == 1), fe.getMask(e, o, l -
|
|
8040
|
+
i < u.length && (c = (u[i] >>> a & 1) == 1), fe.getMask(e, o, l - r) && (c = !c), this.modules[o][l - r] = c, a--, a == -1 && (i++, a = 7);
|
|
8041
8041
|
}
|
|
8042
8042
|
if (o += n, o < 0 || this.moduleCount <= o) {
|
|
8043
8043
|
o -= n, n = -n;
|
|
@@ -8048,8 +8048,8 @@ class xu {
|
|
|
8048
8048
|
static createData(u, e, n) {
|
|
8049
8049
|
const o = Tu.getRSBlocks(u, e), a = new dl();
|
|
8050
8050
|
for (var i = 0; i < n.length; i++) {
|
|
8051
|
-
const
|
|
8052
|
-
a.put(
|
|
8051
|
+
const r = n[i];
|
|
8052
|
+
a.put(r.mode, 4), a.put(r.getLength(), fe.getLengthInBits(r.mode, u)), r.write(a);
|
|
8053
8053
|
}
|
|
8054
8054
|
let l = 0;
|
|
8055
8055
|
for (var i = 0; i < o.length; i++)
|
|
@@ -8058,42 +8058,42 @@ class xu {
|
|
|
8058
8058
|
throw new Error(`code length overflow. (${a.getLengthInBits()}>${l * 8})`);
|
|
8059
8059
|
for (a.getLengthInBits() + 4 <= l * 8 && a.put(0, 4); a.getLengthInBits() % 8 != 0; )
|
|
8060
8060
|
a.putBit(!1);
|
|
8061
|
-
for (; !(a.getLengthInBits() >= l * 8 || (a.put(
|
|
8062
|
-
a.put(
|
|
8063
|
-
return
|
|
8061
|
+
for (; !(a.getLengthInBits() >= l * 8 || (a.put(zu.PAD0, 8), a.getLengthInBits() >= l * 8)); )
|
|
8062
|
+
a.put(zu.PAD1, 8);
|
|
8063
|
+
return zu.createBytes(a, o);
|
|
8064
8064
|
}
|
|
8065
8065
|
static createBytes(u, e) {
|
|
8066
8066
|
let n = 0, o = 0, a = 0;
|
|
8067
8067
|
const i = new Array(e.length), l = new Array(e.length);
|
|
8068
|
-
for (var
|
|
8069
|
-
const I = e[
|
|
8070
|
-
o = Math.max(o, I), a = Math.max(a, j), i[
|
|
8071
|
-
for (var c = 0; c < i[
|
|
8072
|
-
i[
|
|
8068
|
+
for (var r = 0; r < e.length; r++) {
|
|
8069
|
+
const I = e[r].dataCount, j = e[r].totalCount - I;
|
|
8070
|
+
o = Math.max(o, I), a = Math.max(a, j), i[r] = new Array(I);
|
|
8071
|
+
for (var c = 0; c < i[r].length; c++)
|
|
8072
|
+
i[r][c] = 255 & u.buffer[c + n];
|
|
8073
8073
|
n += I;
|
|
8074
|
-
const x = fe.getErrorCorrectPolynomial(j), v = new Hu(i[
|
|
8075
|
-
l[
|
|
8076
|
-
for (var c = 0; c < l[
|
|
8077
|
-
const w = c + v.getLength() - l[
|
|
8078
|
-
l[
|
|
8074
|
+
const x = fe.getErrorCorrectPolynomial(j), v = new Hu(i[r], x.getLength() - 1).mod(x);
|
|
8075
|
+
l[r] = new Array(x.getLength() - 1);
|
|
8076
|
+
for (var c = 0; c < l[r].length; c++) {
|
|
8077
|
+
const w = c + v.getLength() - l[r].length;
|
|
8078
|
+
l[r][c] = w >= 0 ? v.get(w) : 0;
|
|
8079
8079
|
}
|
|
8080
8080
|
}
|
|
8081
|
-
let
|
|
8081
|
+
let s = 0;
|
|
8082
8082
|
for (var c = 0; c < e.length; c++)
|
|
8083
|
-
|
|
8084
|
-
const M = new Array(
|
|
8083
|
+
s += e[c].totalCount;
|
|
8084
|
+
const M = new Array(s);
|
|
8085
8085
|
let N = 0;
|
|
8086
8086
|
for (var c = 0; c < o; c++)
|
|
8087
|
-
for (var
|
|
8088
|
-
c < i[
|
|
8087
|
+
for (var r = 0; r < e.length; r++)
|
|
8088
|
+
c < i[r].length && (M[N++] = i[r][c]);
|
|
8089
8089
|
for (var c = 0; c < a; c++)
|
|
8090
|
-
for (var
|
|
8091
|
-
c < l[
|
|
8090
|
+
for (var r = 0; r < e.length; r++)
|
|
8091
|
+
c < l[r].length && (M[N++] = l[r][c]);
|
|
8092
8092
|
return M;
|
|
8093
8093
|
}
|
|
8094
8094
|
}
|
|
8095
|
-
|
|
8096
|
-
|
|
8095
|
+
zu.PAD0 = 236;
|
|
8096
|
+
zu.PAD1 = 17;
|
|
8097
8097
|
const Ve = { L: 1, M: 0, Q: 3, H: 2 }, Ze = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, du = {
|
|
8098
8098
|
PATTERN000: 0,
|
|
8099
8099
|
PATTERN001: 1,
|
|
@@ -8202,18 +8202,18 @@ class fe {
|
|
|
8202
8202
|
let n = 0;
|
|
8203
8203
|
for (var o = 0; o < e; o++)
|
|
8204
8204
|
for (var a = 0; a < e; a++) {
|
|
8205
|
-
let
|
|
8205
|
+
let r = 0;
|
|
8206
8206
|
const c = u.isDark(o, a);
|
|
8207
|
-
for (let
|
|
8208
|
-
if (!(o +
|
|
8207
|
+
for (let s = -1; s <= 1; s++)
|
|
8208
|
+
if (!(o + s < 0 || e <= o + s))
|
|
8209
8209
|
for (let M = -1; M <= 1; M++)
|
|
8210
|
-
a + M < 0 || e <= a + M ||
|
|
8211
|
-
|
|
8210
|
+
a + M < 0 || e <= a + M || s == 0 && M == 0 || c == u.isDark(o + s, a + M) && r++;
|
|
8211
|
+
r > 5 && (n += 3 + r - 5);
|
|
8212
8212
|
}
|
|
8213
8213
|
for (var o = 0; o < e - 1; o++)
|
|
8214
8214
|
for (var a = 0; a < e - 1; a++) {
|
|
8215
|
-
let
|
|
8216
|
-
u.isDark(o, a) &&
|
|
8215
|
+
let s = 0;
|
|
8216
|
+
u.isDark(o, a) && s++, u.isDark(o + 1, a) && s++, u.isDark(o, a + 1) && s++, u.isDark(o + 1, a + 1) && s++, (s == 0 || s == 4) && (n += 3);
|
|
8217
8217
|
}
|
|
8218
8218
|
for (var o = 0; o < e; o++)
|
|
8219
8219
|
for (var a = 0; a < e - 6; a++)
|
|
@@ -8343,9 +8343,9 @@ class Tu {
|
|
|
8343
8343
|
throw new Error(`bad rs block @ typeNumber:${u}/errorCorrectLevel:${e}`);
|
|
8344
8344
|
const o = n.length / 3, a = [];
|
|
8345
8345
|
for (let i = 0; i < o; i++) {
|
|
8346
|
-
const l = n[i * 3 + 0],
|
|
8347
|
-
for (let
|
|
8348
|
-
a.push(new Tu(
|
|
8346
|
+
const l = n[i * 3 + 0], r = n[i * 3 + 1], c = n[i * 3 + 2];
|
|
8347
|
+
for (let s = 0; s < l; s++)
|
|
8348
|
+
a.push(new Tu(r, c));
|
|
8349
8349
|
}
|
|
8350
8350
|
return a;
|
|
8351
8351
|
}
|
|
@@ -8588,36 +8588,36 @@ const lu = [
|
|
|
8588
8588
|
[2809, 2213, 1579, 1219],
|
|
8589
8589
|
[2953, 2331, 1663, 1273]
|
|
8590
8590
|
];
|
|
8591
|
-
var Tl = 100,
|
|
8591
|
+
var Tl = 100, Ye = 256, qn = Ye - 1, pu = 4, ua = 16, Cn = 1 << ua, ta = 10, xn = 10, jl = Cn >> xn, Al = Cn << ta - xn, ml = Ye >> 3, gn = 6, Il = 1 << gn, yl = ml * Il, El = 30, na = 10, Tt = 1 << na, oa = 8, Jn = 1 << oa, fl = na + oa, $u = 1 << fl, Xn = 499, eo = 491, uo = 487, aa = 503, pl = 3 * aa;
|
|
8592
8592
|
function Cl(t, u) {
|
|
8593
8593
|
var e, n, o, a, i;
|
|
8594
8594
|
function l() {
|
|
8595
|
-
e = [], n = new Int32Array(256), o = new Int32Array(
|
|
8595
|
+
e = [], n = new Int32Array(256), o = new Int32Array(Ye), a = new Int32Array(Ye), i = new Int32Array(Ye >> 3);
|
|
8596
8596
|
var v, z;
|
|
8597
|
-
for (v = 0; v <
|
|
8598
|
-
z = (v << pu + 8) /
|
|
8597
|
+
for (v = 0; v < Ye; v++)
|
|
8598
|
+
z = (v << pu + 8) / Ye, e[v] = new Float64Array([z, z, z, 0]), a[v] = Cn / Ye, o[v] = 0;
|
|
8599
8599
|
}
|
|
8600
|
-
function
|
|
8601
|
-
for (var v = 0; v <
|
|
8600
|
+
function r() {
|
|
8601
|
+
for (var v = 0; v < Ye; v++)
|
|
8602
8602
|
e[v][0] >>= pu, e[v][1] >>= pu, e[v][2] >>= pu, e[v][3] = v;
|
|
8603
8603
|
}
|
|
8604
8604
|
function c(v, z, w, f, B) {
|
|
8605
8605
|
e[z][0] -= v * (e[z][0] - w) / Tt, e[z][1] -= v * (e[z][1] - f) / Tt, e[z][2] -= v * (e[z][2] - B) / Tt;
|
|
8606
8606
|
}
|
|
8607
|
-
function
|
|
8608
|
-
for (var T = Math.abs(z - v), p = Math.min(z + v,
|
|
8607
|
+
function s(v, z, w, f, B) {
|
|
8608
|
+
for (var T = Math.abs(z - v), p = Math.min(z + v, Ye), D = z + 1, C = z - 1, V = 1, g, F; D < p || C > T; )
|
|
8609
8609
|
F = i[V++], D < p && (g = e[D++], g[0] -= F * (g[0] - w) / $u, g[1] -= F * (g[1] - f) / $u, g[2] -= F * (g[2] - B) / $u), C > T && (g = e[C--], g[0] -= F * (g[0] - w) / $u, g[1] -= F * (g[1] - f) / $u, g[2] -= F * (g[2] - B) / $u);
|
|
8610
8610
|
}
|
|
8611
8611
|
function M(v, z, w) {
|
|
8612
8612
|
var f = 2147483647, B = f, T = -1, p = T, D, C, V, g, F;
|
|
8613
|
-
for (D = 0; D <
|
|
8613
|
+
for (D = 0; D < Ye; D++)
|
|
8614
8614
|
C = e[D], V = Math.abs(C[0] - v) + Math.abs(C[1] - z) + Math.abs(C[2] - w), V < f && (f = V, T = D), g = V - (o[D] >> ua - pu), g < B && (B = g, p = D), F = a[D] >> xn, a[D] -= F, o[D] += F << ta;
|
|
8615
8615
|
return a[T] += jl, o[T] -= Al, p;
|
|
8616
8616
|
}
|
|
8617
8617
|
function N() {
|
|
8618
8618
|
var v, z, w, f, B, T, p = 0, D = 0;
|
|
8619
|
-
for (v = 0; v <
|
|
8620
|
-
for (w = e[v], B = v, T = w[1], z = v + 1; z <
|
|
8619
|
+
for (v = 0; v < Ye; v++) {
|
|
8620
|
+
for (w = e[v], B = v, T = w[1], z = v + 1; z < Ye; z++)
|
|
8621
8621
|
f = e[z], f[1] < T && (B = z, T = f[1]);
|
|
8622
8622
|
if (f = e[B], v != B && (z = f[0], f[0] = w[0], w[0] = z, z = f[1], f[1] = w[1], w[1] = z, z = f[2], f[2] = w[2], w[2] = z, z = f[3], f[3] = w[3], w[3] = z), T != p) {
|
|
8623
8623
|
for (n[p] = D + v >> 1, z = p + 1; z < T; z++)
|
|
@@ -8629,8 +8629,8 @@ function Cl(t, u) {
|
|
|
8629
8629
|
n[z] = qn;
|
|
8630
8630
|
}
|
|
8631
8631
|
function I(v, z, w) {
|
|
8632
|
-
for (var f, B, T, p = 1e3, D = -1, C = n[z], V = C - 1; C <
|
|
8633
|
-
C <
|
|
8632
|
+
for (var f, B, T, p = 1e3, D = -1, C = n[z], V = C - 1; C < Ye || V >= 0; )
|
|
8633
|
+
C < Ye && (B = e[C], T = B[1] - z, T >= p ? C = Ye : (C++, T < 0 && (T = -T), f = B[0] - v, f < 0 && (f = -f), T += f, T < p && (f = B[2] - w, f < 0 && (f = -f), T += f, T < p && (p = T, D = B[3])))), V >= 0 && (B = e[V], T = z - B[1], T >= p ? V = -1 : (V--, T < 0 && (T = -T), f = B[0] - v, f < 0 && (f = -f), T += f, T < p && (f = B[2] - w, f < 0 && (f = -f), T += f, T < p && (p = T, D = B[3]))));
|
|
8634
8634
|
return D;
|
|
8635
8635
|
}
|
|
8636
8636
|
function j() {
|
|
@@ -8641,18 +8641,18 @@ function Cl(t, u) {
|
|
|
8641
8641
|
z < pl ? (u = 1, C = 3) : z % Xn !== 0 ? C = 3 * Xn : z % eo !== 0 ? C = 3 * eo : z % uo !== 0 ? C = 3 * uo : C = 3 * aa;
|
|
8642
8642
|
var V, g, F, m, U = 0;
|
|
8643
8643
|
for (v = 0; v < f; )
|
|
8644
|
-
if (V = (t[U] & 255) << pu, g = (t[U + 1] & 255) << pu, F = (t[U + 2] & 255) << pu, m = M(V, g, F), c(T, m, V, g, F), D !== 0 &&
|
|
8644
|
+
if (V = (t[U] & 255) << pu, g = (t[U + 1] & 255) << pu, F = (t[U + 2] & 255) << pu, m = M(V, g, F), c(T, m, V, g, F), D !== 0 && s(D, m, V, g, F), U += C, U >= z && (U -= z), v++, B === 0 && (B = 1), v % B === 0)
|
|
8645
8645
|
for (T -= T / w, p -= p / El, D = p >> gn, D <= 1 && (D = 0), m = 0; m < D; m++)
|
|
8646
8646
|
i[m] = T * ((D * D - m * m) * Jn / (D * D));
|
|
8647
8647
|
}
|
|
8648
8648
|
function x() {
|
|
8649
|
-
l(), j(),
|
|
8649
|
+
l(), j(), r(), N();
|
|
8650
8650
|
}
|
|
8651
8651
|
this.buildColormap = x;
|
|
8652
8652
|
function P() {
|
|
8653
|
-
for (var v = [], z = [], w = 0; w <
|
|
8653
|
+
for (var v = [], z = [], w = 0; w < Ye; w++)
|
|
8654
8654
|
z[e[w][3]] = w;
|
|
8655
|
-
for (var f = 0, B = 0; B <
|
|
8655
|
+
for (var f = 0, B = 0; B < Ye; B++) {
|
|
8656
8656
|
var T = z[B];
|
|
8657
8657
|
v[f++] = e[T][0], v[f++] = e[T][1], v[f++] = e[T][2];
|
|
8658
8658
|
}
|
|
@@ -8680,9 +8680,9 @@ var to = -1, jt = 12, tt = 5003, xl = [
|
|
|
8680
8680
|
65535
|
|
8681
8681
|
];
|
|
8682
8682
|
function zl(t, u, e, n) {
|
|
8683
|
-
var o = Math.max(2, n), a = new Uint8Array(256), i = new Int32Array(tt), l = new Int32Array(tt),
|
|
8683
|
+
var o = Math.max(2, n), a = new Uint8Array(256), i = new Int32Array(tt), l = new Int32Array(tt), r, c = 0, s, M = 0, N, I = !1, j, x, P, v, z, w;
|
|
8684
8684
|
function f(m, U) {
|
|
8685
|
-
a[
|
|
8685
|
+
a[s++] = m, s >= 254 && C(U);
|
|
8686
8686
|
}
|
|
8687
8687
|
function B(m) {
|
|
8688
8688
|
T(tt), M = x + 2, I = !0, F(x, m);
|
|
@@ -8693,7 +8693,7 @@ function zl(t, u, e, n) {
|
|
|
8693
8693
|
}
|
|
8694
8694
|
function p(m, U) {
|
|
8695
8695
|
var E, S, y, O, L, h, Y;
|
|
8696
|
-
for (j = m, I = !1, w = j, N = V(w), x = 1 << m - 1, P = x + 1, M = x + 2,
|
|
8696
|
+
for (j = m, I = !1, w = j, N = V(w), x = 1 << m - 1, P = x + 1, M = x + 2, s = 0, O = g(), Y = 0, E = tt; E < 65536; E *= 2)
|
|
8697
8697
|
++Y;
|
|
8698
8698
|
Y = 8 - Y, h = tt, T(h), F(x, U);
|
|
8699
8699
|
e:
|
|
@@ -8718,7 +8718,7 @@ function zl(t, u, e, n) {
|
|
|
8718
8718
|
m.writeByte(o), v = t * u, z = 0, p(o + 1, m), m.writeByte(0);
|
|
8719
8719
|
}
|
|
8720
8720
|
function C(m) {
|
|
8721
|
-
|
|
8721
|
+
s > 0 && (m.writeByte(s), m.writeBytes(a, 0, s), s = 0);
|
|
8722
8722
|
}
|
|
8723
8723
|
function V(m) {
|
|
8724
8724
|
return (1 << m) - 1;
|
|
@@ -8731,11 +8731,11 @@ function zl(t, u, e, n) {
|
|
|
8731
8731
|
return m & 255;
|
|
8732
8732
|
}
|
|
8733
8733
|
function F(m, U) {
|
|
8734
|
-
for (
|
|
8735
|
-
f(
|
|
8734
|
+
for (r &= xl[c], c > 0 ? r |= m << c : r = m, c += w; c >= 8; )
|
|
8735
|
+
f(r & 255, U), r >>= 8, c -= 8;
|
|
8736
8736
|
if ((M > N || I) && (I ? (N = V(w = j), I = !1) : (++w, w == jt ? N = 1 << jt : N = V(w))), m == P) {
|
|
8737
8737
|
for (; c > 0; )
|
|
8738
|
-
f(
|
|
8738
|
+
f(r & 255, U), r >>= 8, c -= 8;
|
|
8739
8739
|
C(U);
|
|
8740
8740
|
}
|
|
8741
8741
|
}
|
|
@@ -8867,17 +8867,17 @@ xe.prototype.ditherPixels = function(t, u) {
|
|
|
8867
8867
|
};
|
|
8868
8868
|
if (!t || !e[t])
|
|
8869
8869
|
throw "Unknown dithering kernel: " + t;
|
|
8870
|
-
var n = e[t], o = 0, a = this.height, i = this.width, l = this.pixels,
|
|
8870
|
+
var n = e[t], o = 0, a = this.height, i = this.width, l = this.pixels, r = u ? -1 : 1;
|
|
8871
8871
|
this.indexedPixels = new Uint8Array(this.pixels.length / 3);
|
|
8872
8872
|
for (var c = 0; c < a; c++) {
|
|
8873
|
-
u && (
|
|
8874
|
-
for (var
|
|
8875
|
-
o = c * i +
|
|
8873
|
+
u && (r = r * -1);
|
|
8874
|
+
for (var s = r == 1 ? 0 : i - 1, M = r == 1 ? i : 0; s !== M; s += r) {
|
|
8875
|
+
o = c * i + s;
|
|
8876
8876
|
var N = o * 3, I = l[N], j = l[N + 1], x = l[N + 2];
|
|
8877
8877
|
N = this.findClosestRGB(I, j, x), this.usedEntry[N] = !0, this.indexedPixels[o] = N, N *= 3;
|
|
8878
|
-
for (var P = this.colorTab[N], v = this.colorTab[N + 1], z = this.colorTab[N + 2], w = I - P, f = j - v, B = x - z, T =
|
|
8878
|
+
for (var P = this.colorTab[N], v = this.colorTab[N + 1], z = this.colorTab[N + 2], w = I - P, f = j - v, B = x - z, T = r == 1 ? 0 : n.length - 1, p = r == 1 ? n.length : 0; T !== p; T += r) {
|
|
8879
8879
|
var D = n[T][1], C = n[T][2];
|
|
8880
|
-
if (D +
|
|
8880
|
+
if (D + s >= 0 && D + s < i && C + c >= 0 && C + c < a) {
|
|
8881
8881
|
var V = n[T][0];
|
|
8882
8882
|
N = o + D + C * i, N *= 3, l[N] = Math.max(0, Math.min(255, l[N] + w * V)), l[N + 1] = Math.max(0, Math.min(255, l[N + 1] + f * V)), l[N + 2] = Math.max(0, Math.min(255, l[N + 2] + B * V));
|
|
8883
8883
|
}
|
|
@@ -8893,9 +8893,9 @@ xe.prototype.findClosestRGB = function(t, u, e, n) {
|
|
|
8893
8893
|
return -1;
|
|
8894
8894
|
if (this.neuQuant && !n)
|
|
8895
8895
|
return this.neuQuant.lookupRGB(t, u, e);
|
|
8896
|
-
for (var o = 0, a = 256 * 256 * 256, i = this.colorTab.length, l = 0,
|
|
8897
|
-
var c = t - (this.colorTab[l++] & 255),
|
|
8898
|
-
(!n || this.usedEntry[
|
|
8896
|
+
for (var o = 0, a = 256 * 256 * 256, i = this.colorTab.length, l = 0, r = 0; l < i; r++) {
|
|
8897
|
+
var c = t - (this.colorTab[l++] & 255), s = u - (this.colorTab[l++] & 255), M = e - (this.colorTab[l++] & 255), N = c * c + s * s + M * M;
|
|
8898
|
+
(!n || this.usedEntry[r]) && N < a && (a = N, o = r);
|
|
8899
8899
|
}
|
|
8900
8900
|
return o;
|
|
8901
8901
|
};
|
|
@@ -8956,22 +8956,22 @@ var hl = globalThis && globalThis.__awaiter || function(t, u, e, n) {
|
|
|
8956
8956
|
});
|
|
8957
8957
|
}
|
|
8958
8958
|
return new (e || (e = Promise))(function(a, i) {
|
|
8959
|
-
function l(
|
|
8959
|
+
function l(s) {
|
|
8960
8960
|
try {
|
|
8961
|
-
c(n.next(
|
|
8961
|
+
c(n.next(s));
|
|
8962
8962
|
} catch (M) {
|
|
8963
8963
|
i(M);
|
|
8964
8964
|
}
|
|
8965
8965
|
}
|
|
8966
|
-
function s
|
|
8966
|
+
function r(s) {
|
|
8967
8967
|
try {
|
|
8968
|
-
c(n.throw(
|
|
8968
|
+
c(n.throw(s));
|
|
8969
8969
|
} catch (M) {
|
|
8970
8970
|
i(M);
|
|
8971
8971
|
}
|
|
8972
8972
|
}
|
|
8973
|
-
function c(
|
|
8974
|
-
|
|
8973
|
+
function c(s) {
|
|
8974
|
+
s.done ? a(s.value) : o(s.value).then(l, r);
|
|
8975
8975
|
}
|
|
8976
8976
|
c((n = n.apply(t, u || [])).next());
|
|
8977
8977
|
});
|
|
@@ -9021,7 +9021,7 @@ class Ie {
|
|
|
9021
9021
|
throw new Error("dotScale should be in range (0, 1].");
|
|
9022
9022
|
e.components.data.scale = e.dotScale, e.components.timing.scale = e.dotScale, e.components.alignment.scale = e.dotScale;
|
|
9023
9023
|
}
|
|
9024
|
-
this.options = e, this.canvas = new gu(u.size, u.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new
|
|
9024
|
+
this.options = e, this.canvas = new gu(u.size, u.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new zu(-1, this.options.correctLevel), Number.isInteger(this.options.maskPattern) && (this.qrCode.maskPattern = this.options.maskPattern), Number.isInteger(this.options.version) && (this.qrCode.typeNumber = this.options.version), this.qrCode.addData(this.options.text), this.qrCode.make();
|
|
9025
9025
|
}
|
|
9026
9026
|
draw() {
|
|
9027
9027
|
return new Promise((u) => this._draw().then(u));
|
|
@@ -9044,21 +9044,21 @@ class Ie {
|
|
|
9044
9044
|
g: 0,
|
|
9045
9045
|
b: 0
|
|
9046
9046
|
};
|
|
9047
|
-
let
|
|
9047
|
+
let r = 0;
|
|
9048
9048
|
a = u.naturalHeight || u.height, o = u.naturalWidth || u.width;
|
|
9049
|
-
const
|
|
9050
|
-
if (!
|
|
9049
|
+
const s = new gu(o, a).getContext("2d");
|
|
9050
|
+
if (!s)
|
|
9051
9051
|
return n;
|
|
9052
|
-
|
|
9052
|
+
s.drawImage(u, 0, 0);
|
|
9053
9053
|
let M;
|
|
9054
9054
|
try {
|
|
9055
|
-
M =
|
|
9055
|
+
M = s.getImageData(0, 0, o, a);
|
|
9056
9056
|
} catch {
|
|
9057
9057
|
return n;
|
|
9058
9058
|
}
|
|
9059
9059
|
for (; (i += 5 * 4) < M.data.length; )
|
|
9060
|
-
M.data[i] > 200 || M.data[i + 1] > 200 || M.data[i + 2] > 200 || (++
|
|
9061
|
-
return l.r = ~~(l.r /
|
|
9060
|
+
M.data[i] > 200 || M.data[i + 1] > 200 || M.data[i + 2] > 200 || (++r, l.r += M.data[i], l.g += M.data[i + 1], l.b += M.data[i + 2]);
|
|
9061
|
+
return l.r = ~~(l.r / r), l.g = ~~(l.g / r), l.b = ~~(l.b / r), l;
|
|
9062
9062
|
}
|
|
9063
9063
|
static _drawDot(u, e, n, o, a = 0, i = 1) {
|
|
9064
9064
|
u.fillRect((e + a) * o, (n + a) * o, i * o, i * o);
|
|
@@ -9066,16 +9066,16 @@ class Ie {
|
|
|
9066
9066
|
static _drawAlignProtector(u, e, n, o) {
|
|
9067
9067
|
u.clearRect((e - 2) * o, (n - 2) * o, 5 * o, 5 * o), u.fillRect((e - 2) * o, (n - 2) * o, 5 * o, 5 * o);
|
|
9068
9068
|
}
|
|
9069
|
-
static _drawAlign(u, e, n, o, a = 0, i = 1, l,
|
|
9069
|
+
static _drawAlign(u, e, n, o, a = 0, i = 1, l, r) {
|
|
9070
9070
|
const c = u.fillStyle;
|
|
9071
|
-
u.fillStyle = l, new Array(4).fill(0).map((
|
|
9071
|
+
u.fillStyle = l, new Array(4).fill(0).map((s, M) => {
|
|
9072
9072
|
Ie._drawDot(u, e - 2 + M, n - 2, o, a, i), Ie._drawDot(u, e + 2, n - 2 + M, o, a, i), Ie._drawDot(u, e + 2 - M, n + 2, o, a, i), Ie._drawDot(u, e - 2, n + 2 - M, o, a, i);
|
|
9073
|
-
}), Ie._drawDot(u, e, n, o, a, i),
|
|
9073
|
+
}), Ie._drawDot(u, e, n, o, a, i), r || (u.fillStyle = "rgba(255, 255, 255, 0.6)", new Array(2).fill(0).map((s, M) => {
|
|
9074
9074
|
Ie._drawDot(u, e - 1 + M, n - 1, o, a, i), Ie._drawDot(u, e + 1, n - 1 + M, o, a, i), Ie._drawDot(u, e + 1 - M, n + 1, o, a, i), Ie._drawDot(u, e - 1, n + 1 - M, o, a, i);
|
|
9075
9075
|
})), u.fillStyle = c;
|
|
9076
9076
|
}
|
|
9077
9077
|
_draw() {
|
|
9078
|
-
var u, e, n, o, a, i, l,
|
|
9078
|
+
var u, e, n, o, a, i, l, r, c, s, M, N, I, j, x, P, v, z, w;
|
|
9079
9079
|
return hl(this, void 0, void 0, function* () {
|
|
9080
9080
|
const f = (u = this.qrCode) === null || u === void 0 ? void 0 : u.moduleCount, B = this.options.size;
|
|
9081
9081
|
let T = this.options.margin;
|
|
@@ -9119,7 +9119,7 @@ class Ie {
|
|
|
9119
9119
|
}
|
|
9120
9120
|
}
|
|
9121
9121
|
const J = h[h.length - 1], se = this.options.colorLight;
|
|
9122
|
-
if (E.fillStyle = se, E.fillRect(0, 0, 8 * g, 8 * g), E.fillRect(0, (f - 8) * g, 8 * g, 8 * g), E.fillRect((f - 8) * g, 0, 8 * g, 8 * g), !((a = (o = this.options.components) === null || o === void 0 ? void 0 : o.timing) === null || a === void 0) && a.protectors && (E.fillRect(8 * g, 6 * g, (f - 8 - 8) * g, g), E.fillRect(6 * g, 8 * g, g, (f - 8 - 8) * g)), !((l = (i = this.options.components) === null || i === void 0 ? void 0 : i.cornerAlignment) === null || l === void 0) && l.protectors && Ie._drawAlignProtector(E, J, J, g), !((c = (
|
|
9122
|
+
if (E.fillStyle = se, E.fillRect(0, 0, 8 * g, 8 * g), E.fillRect(0, (f - 8) * g, 8 * g, 8 * g), E.fillRect((f - 8) * g, 0, 8 * g, 8 * g), !((a = (o = this.options.components) === null || o === void 0 ? void 0 : o.timing) === null || a === void 0) && a.protectors && (E.fillRect(8 * g, 6 * g, (f - 8 - 8) * g, g), E.fillRect(6 * g, 8 * g, g, (f - 8 - 8) * g)), !((l = (i = this.options.components) === null || i === void 0 ? void 0 : i.cornerAlignment) === null || l === void 0) && l.protectors && Ie._drawAlignProtector(E, J, J, g), !((c = (r = this.options.components) === null || r === void 0 ? void 0 : r.alignment) === null || c === void 0) && c.protectors)
|
|
9123
9123
|
for (let G = 0; G < h.length; G++)
|
|
9124
9124
|
for (let te = 0; te < h.length; te++) {
|
|
9125
9125
|
const Me = h[te], de = h[G];
|
|
@@ -9132,12 +9132,12 @@ class Ie {
|
|
|
9132
9132
|
}
|
|
9133
9133
|
}
|
|
9134
9134
|
E.fillStyle = this.options.colorDark, E.fillRect(0, 0, 7 * g, g), E.fillRect((f - 7) * g, 0, 7 * g, g), E.fillRect(0, 6 * g, 7 * g, g), E.fillRect((f - 7) * g, 6 * g, 7 * g, g), E.fillRect(0, (f - 7) * g, 7 * g, g), E.fillRect(0, (f - 7 + 6) * g, 7 * g, g), E.fillRect(0, 0, g, 7 * g), E.fillRect(6 * g, 0, g, 7 * g), E.fillRect((f - 7) * g, 0, g, 7 * g), E.fillRect((f - 7 + 6) * g, 0, g, 7 * g), E.fillRect(0, (f - 7) * g, g, 7 * g), E.fillRect(6 * g, (f - 7) * g, g, 7 * g), E.fillRect(2 * g, 2 * g, 3 * g, 3 * g), E.fillRect((f - 7 + 2) * g, 2 * g, 3 * g, 3 * g), E.fillRect(2 * g, (f - 7 + 2) * g, 3 * g, 3 * g);
|
|
9135
|
-
const me = ((M = (
|
|
9135
|
+
const me = ((M = (s = this.options.components) === null || s === void 0 ? void 0 : s.timing) === null || M === void 0 ? void 0 : M.scale) || mt, ne = (1 - me) * 0.5;
|
|
9136
9136
|
for (let G = 0; G < f - 8; G += 2)
|
|
9137
9137
|
Ie._drawDot(E, 8 + G, 6, g, ne, me), Ie._drawDot(E, 6, 8 + G, g, ne, me);
|
|
9138
|
-
const De = ((I = (N = this.options.components) === null || N === void 0 ? void 0 : N.cornerAlignment) === null || I === void 0 ? void 0 : I.scale) || mt,
|
|
9139
|
-
Ie._drawAlign(E, J, J, g,
|
|
9140
|
-
const
|
|
9138
|
+
const De = ((I = (N = this.options.components) === null || N === void 0 ? void 0 : N.cornerAlignment) === null || I === void 0 ? void 0 : I.scale) || mt, Qe = (1 - De) * 0.5;
|
|
9139
|
+
Ie._drawAlign(E, J, J, g, Qe, De, this.options.colorDark, ((x = (j = this.options.components) === null || j === void 0 ? void 0 : j.cornerAlignment) === null || x === void 0 ? void 0 : x.protectors) || !1);
|
|
9140
|
+
const be = ((v = (P = this.options.components) === null || P === void 0 ? void 0 : P.alignment) === null || v === void 0 ? void 0 : v.scale) || mt, je = (1 - be) * 0.5;
|
|
9141
9141
|
for (let G = 0; G < h.length; G++)
|
|
9142
9142
|
for (let te = 0; te < h.length; te++) {
|
|
9143
9143
|
const Me = h[te], de = h[G];
|
|
@@ -9146,7 +9146,7 @@ class Ie {
|
|
|
9146
9146
|
continue;
|
|
9147
9147
|
if (Me === J && de === J)
|
|
9148
9148
|
continue;
|
|
9149
|
-
Ie._drawAlign(E, Me, de, g, je,
|
|
9149
|
+
Ie._drawAlign(E, Me, de, g, je, be, this.options.colorDark, ((w = (z = this.options.components) === null || z === void 0 ? void 0 : z.alignment) === null || w === void 0 ? void 0 : w.protectors) || !1);
|
|
9150
9150
|
}
|
|
9151
9151
|
}
|
|
9152
9152
|
if (C && (E.fillStyle = this.options.backgroundColor, E.fillRect(-p, -p, m, p), E.fillRect(-p, F, m, p), E.fillRect(F, -p, p, m), E.fillRect(-p, -p, p, m)), this.options.logoImage) {
|
|
@@ -9448,12 +9448,12 @@ const wl = { key: 0 }, vl = ["innerHTML"], Ul = ["innerHTML"], Ql = ["innerHTML"
|
|
|
9448
9448
|
const { T: e } = Ae(), { reload: n, reloadFlag: o } = ia(), a = t, i = u, l = Q(() => {
|
|
9449
9449
|
var m, U, E, S;
|
|
9450
9450
|
return (U = (m = a.board) == null ? void 0 : m.tableData) != null && U.keyName ? (S = (E = a.board) == null ? void 0 : E.tableData) == null ? void 0 : S.keyName : "";
|
|
9451
|
-
}),
|
|
9451
|
+
}), r = R([]);
|
|
9452
9452
|
function c(m, U) {
|
|
9453
|
-
|
|
9453
|
+
r.value = m, i("return-selected-key", r.value), i("return-selected-row", U.selectedRowData);
|
|
9454
9454
|
}
|
|
9455
9455
|
`${e.t("10/页")}`, `${e.t("15/页")}`, `${e.t("20/页")}`, `${e.t("50/页")}`;
|
|
9456
|
-
const
|
|
9456
|
+
const s = Q(() => ({
|
|
9457
9457
|
current: a.paginationProps.page + 1,
|
|
9458
9458
|
pageSize: a.paginationProps.count,
|
|
9459
9459
|
total: a.paginationProps.totalCount,
|
|
@@ -9617,8 +9617,8 @@ const wl = { key: 0 }, vl = ["innerHTML"], Ul = ["innerHTML"], Ql = ["innerHTML"
|
|
|
9617
9617
|
data: m.tableData,
|
|
9618
9618
|
rowKey: l.value,
|
|
9619
9619
|
columns: C.value,
|
|
9620
|
-
pagination:
|
|
9621
|
-
selectedRowKeys:
|
|
9620
|
+
pagination: s.value,
|
|
9621
|
+
selectedRowKeys: r.value,
|
|
9622
9622
|
onSelectChange: c,
|
|
9623
9623
|
// tableContentWidth: `${tableLayoutSize}px`,
|
|
9624
9624
|
tableLayout: "fixed",
|
|
@@ -9780,11 +9780,11 @@ const $l = /* @__PURE__ */ au(Pl, [["__scopeId", "data-v-a780851e"]]), Vl = /* @
|
|
|
9780
9780
|
const u = t, e = bu(), n = Iu(), o = ou(), a = Q(() => n.fullPath), i = Q(() => {
|
|
9781
9781
|
var I;
|
|
9782
9782
|
return (I = u == null ? void 0 : u.board) == null ? void 0 : I.tabs;
|
|
9783
|
-
}), l = R(0),
|
|
9783
|
+
}), l = R(0), r = Q(() => e.returnTabMenuItemActiveTab(a.value));
|
|
9784
9784
|
Te(
|
|
9785
|
-
() =>
|
|
9785
|
+
() => r.value,
|
|
9786
9786
|
() => {
|
|
9787
|
-
|
|
9787
|
+
r.value && l.value != r.value && (l.value = r.value);
|
|
9788
9788
|
},
|
|
9789
9789
|
{
|
|
9790
9790
|
deep: !0,
|
|
@@ -9799,10 +9799,10 @@ const $l = /* @__PURE__ */ au(Pl, [["__scopeId", "data-v-a780851e"]]), Vl = /* @
|
|
|
9799
9799
|
console.error("tab切换出错", j);
|
|
9800
9800
|
}
|
|
9801
9801
|
}
|
|
9802
|
-
const
|
|
9802
|
+
const s = Se(), M = Q(() => s.homeUrl);
|
|
9803
9803
|
function N() {
|
|
9804
9804
|
const I = n.fullPath, j = e.returnPrevTabMenuPathItemByPath(I);
|
|
9805
|
-
j && (e.removeTabMenuItemByPath(I), console.log(j), j != "/home" ? o.push(j) : M.value && o.push({ path: M.value, query:
|
|
9805
|
+
j && (e.removeTabMenuItemByPath(I), console.log(j), j != "/home" ? o.push(j) : M.value && o.push({ path: M.value, query: Lu(M.value) }));
|
|
9806
9806
|
}
|
|
9807
9807
|
return (I, j) => {
|
|
9808
9808
|
const x = Z("t-card"), P = Z("t-tab-panel"), v = Z("t-tabs");
|
|
@@ -9853,20 +9853,20 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9853
9853
|
},
|
|
9854
9854
|
emits: ["close-dialog"],
|
|
9855
9855
|
setup(t, { emit: u }) {
|
|
9856
|
-
const { T: e } = Ae(), n = ou(), o = Iu(), a = Se(), i = mn(), l = In(),
|
|
9856
|
+
const { T: e } = Ae(), n = ou(), o = Iu(), a = Se(), i = mn(), l = In(), r = t, { reload: c } = ia(), s = u, M = Q(() => {
|
|
9857
9857
|
var $;
|
|
9858
|
-
return ($ =
|
|
9858
|
+
return ($ = r.board) == null ? void 0 : $.boardType;
|
|
9859
9859
|
}), N = Q(() => {
|
|
9860
9860
|
var $, X, re;
|
|
9861
|
-
return ($ =
|
|
9861
|
+
return ($ = r.board) != null && $.data ? (X = r.board) == null ? void 0 : X.data.dataId : (re = r.board) != null && re.tableData ? r.board.tableData.dataId : null;
|
|
9862
9862
|
}), I = R([]), j = R({}), x = R(null), P = Q(() => {
|
|
9863
9863
|
var $;
|
|
9864
|
-
return ($ =
|
|
9864
|
+
return ($ = r.board) == null ? void 0 : $.header;
|
|
9865
9865
|
}), v = R({}), z = R({});
|
|
9866
9866
|
Q(
|
|
9867
9867
|
() => {
|
|
9868
9868
|
var $, X;
|
|
9869
|
-
return P.value && (
|
|
9869
|
+
return P.value && (hu(P.value.buttons) && P.value.buttons.length || hu(($ = P.value.searchBar) == null ? void 0 : $.filters) && ((X = P.value.searchBar) == null ? void 0 : X.filters.length));
|
|
9870
9870
|
}
|
|
9871
9871
|
);
|
|
9872
9872
|
const w = Q(() => {
|
|
@@ -9884,7 +9884,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9884
9884
|
}), B = Q(() => {
|
|
9885
9885
|
var X, re;
|
|
9886
9886
|
let $ = {};
|
|
9887
|
-
return P.value && v.value && Object.assign($, v.value),
|
|
9887
|
+
return P.value && v.value && Object.assign($, v.value), r.dialogProps && ((X = Object.keys(r.dialogProps)) != null && X.length) && Object.assign($, r.dialogProps), M.value === "table" && Object.assign($, f.value), r.serverProps && ((re = Object.keys(r.serverProps)) != null && re.length) && Object.assign($, r.serverProps), Object.assign($, w.value), $;
|
|
9888
9888
|
}), T = R(!1), p = R(!0);
|
|
9889
9889
|
function D($) {
|
|
9890
9890
|
const X = x.value;
|
|
@@ -9893,19 +9893,19 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9893
9893
|
async function C() {
|
|
9894
9894
|
var $, X, re, ke, Ge;
|
|
9895
9895
|
try {
|
|
9896
|
-
if (T.value = !0, p.value &&
|
|
9896
|
+
if (T.value = !0, p.value && r.from == "view" && M.value == "table") {
|
|
9897
9897
|
const ae = g.getFormData(o.fullPath);
|
|
9898
9898
|
ae != null && ae.pagination && (f.value = {
|
|
9899
9899
|
...ae.pagination
|
|
9900
9900
|
});
|
|
9901
9901
|
}
|
|
9902
|
-
if (!eu(
|
|
9902
|
+
if (!eu(r.viewName))
|
|
9903
9903
|
if (eu(N.value))
|
|
9904
|
-
M.value === "table" ? (re = (X =
|
|
9904
|
+
M.value === "table" ? (re = (X = r.board) == null ? void 0 : X.tableData) != null && re.data && (I.value = r.board.tableData.data) : M.value === "form" && (Ge = (ke = r.board) == null ? void 0 : ke.data) != null && Ge.data && (j.value = r.board.data.data);
|
|
9905
9905
|
else {
|
|
9906
9906
|
const ae = await Mt({
|
|
9907
9907
|
dataId: N.value,
|
|
9908
|
-
viewName:
|
|
9908
|
+
viewName: r.viewName,
|
|
9909
9909
|
props: B.value
|
|
9910
9910
|
});
|
|
9911
9911
|
ae.state === 200 && ae.data && (M.value == "table" && (f.value = {
|
|
@@ -9921,7 +9921,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9921
9921
|
T.value = !1, p.value = !1;
|
|
9922
9922
|
}
|
|
9923
9923
|
}
|
|
9924
|
-
|
|
9924
|
+
Ue(() => {
|
|
9925
9925
|
p.value = !0, C(), Me(), window.addEventListener("onUpdateMessage", ($) => {
|
|
9926
9926
|
var re;
|
|
9927
9927
|
const X = (re = $ == null ? void 0 : $.detail) == null ? void 0 : re.args.dataId;
|
|
@@ -9939,11 +9939,11 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9939
9939
|
});
|
|
9940
9940
|
}
|
|
9941
9941
|
No(($, X) => {
|
|
9942
|
-
|
|
9942
|
+
r.from != "dialog" && F(X.fullPath);
|
|
9943
9943
|
}), Do(($, X) => {
|
|
9944
|
-
|
|
9944
|
+
r.from != "dialog" && F(X.fullPath);
|
|
9945
9945
|
}), Te(
|
|
9946
|
-
() =>
|
|
9946
|
+
() => r.board,
|
|
9947
9947
|
async () => {
|
|
9948
9948
|
await C();
|
|
9949
9949
|
},
|
|
@@ -9973,7 +9973,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
9973
9973
|
try {
|
|
9974
9974
|
switch ($.action) {
|
|
9975
9975
|
case "VIEW_BY_DIALOG": {
|
|
9976
|
-
($.view ?? "") != "" ? (E.value = "view", await L($.view), S.value = $, l.initPropsSource({ ...X, ...
|
|
9976
|
+
($.view ?? "") != "" ? (E.value = "view", await L($.view), S.value = $, l.initPropsSource({ ...X, ...r.serverProps }), await h(!0), U.value = !0) : ($.link ?? "") != "" && (E.value = "iframe", S.value = $, l.initPropsSource(X), y.value = {}, O.value = (re = $.props) == null ? void 0 : re.map((ae) => ae.keyName), await h(!0), U.value = !0);
|
|
9977
9977
|
break;
|
|
9978
9978
|
}
|
|
9979
9979
|
case "VIEW": {
|
|
@@ -10180,32 +10180,32 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
10180
10180
|
ne.value = $;
|
|
10181
10181
|
}
|
|
10182
10182
|
tu("tableSelectedRow", ne);
|
|
10183
|
-
const
|
|
10183
|
+
const Qe = R([]), be = R([]), je = R([]), G = An();
|
|
10184
10184
|
async function te($) {
|
|
10185
|
-
const X = `${
|
|
10185
|
+
const X = `${r.viewName}_${M.value}`;
|
|
10186
10186
|
await G.setColumnData(X, $) && (je.value = $, pe.success(e.t("设置成功")), c());
|
|
10187
10187
|
}
|
|
10188
10188
|
function Me() {
|
|
10189
10189
|
var $, X, re;
|
|
10190
|
-
if (M.value == "table" && ($ =
|
|
10190
|
+
if (M.value == "table" && ($ = r.board) != null && $.columns) {
|
|
10191
10191
|
let ke = [];
|
|
10192
10192
|
try {
|
|
10193
|
-
ke = Mi((X =
|
|
10193
|
+
ke = Mi((X = r.board) == null ? void 0 : X.columns);
|
|
10194
10194
|
} catch (Ne) {
|
|
10195
10195
|
console.error("生成tableColumn出错", Ne);
|
|
10196
10196
|
}
|
|
10197
|
-
|
|
10198
|
-
(re =
|
|
10197
|
+
Qe.value = ke, be.value = ci(
|
|
10198
|
+
(re = r.board) == null ? void 0 : re.columns
|
|
10199
10199
|
);
|
|
10200
|
-
const Ge = `${
|
|
10200
|
+
const Ge = `${r.viewName}_${M.value}`, ae = G.getColumnData(Ge);
|
|
10201
10201
|
ae ? je.value = _e(ae) : je.value = _e(
|
|
10202
|
-
|
|
10202
|
+
be.value.map((Ne) => Ne.colKey)
|
|
10203
10203
|
);
|
|
10204
10204
|
}
|
|
10205
10205
|
}
|
|
10206
|
-
const de = Q(() => je.value.length ?
|
|
10207
|
-
(X, re) => X.colKey == "row-select" || je.value.indexOf(X.colKey) !== -1 || re == 0 || re ==
|
|
10208
|
-
) :
|
|
10206
|
+
const de = Q(() => je.value.length ? Qe.value.filter(
|
|
10207
|
+
(X, re) => X.colKey == "row-select" || je.value.indexOf(X.colKey) !== -1 || re == 0 || re == Qe.value.length - 1
|
|
10208
|
+
) : Qe.value);
|
|
10209
10209
|
function we($) {
|
|
10210
10210
|
Object.assign(f.value, {
|
|
10211
10211
|
page: $.current - 1,
|
|
@@ -10219,7 +10219,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
10219
10219
|
return Object.keys(B.value).length && Object.assign(re, B.value), Object.assign(re, $), (await bo({
|
|
10220
10220
|
buttonId: X,
|
|
10221
10221
|
props: re,
|
|
10222
|
-
viewName:
|
|
10222
|
+
viewName: r.viewName
|
|
10223
10223
|
})).state === 200 ? (pe.success(`${e.t("提交成功")}`), eu(N.value) && setTimeout(() => {
|
|
10224
10224
|
ze();
|
|
10225
10225
|
}), Y.value && (Y.value.formOkButtonLoading = !1), !0) : (Y.value && (Y.value.formOkButtonLoading = !1), !1);
|
|
@@ -10253,7 +10253,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
10253
10253
|
async function Be($, X) {
|
|
10254
10254
|
let re = {};
|
|
10255
10255
|
return Object.keys(B.value).length && Object.assign(re, B.value), (await _0({
|
|
10256
|
-
viewName:
|
|
10256
|
+
viewName: r.viewName,
|
|
10257
10257
|
buttonId: $.buttonId,
|
|
10258
10258
|
props: re,
|
|
10259
10259
|
keys: X
|
|
@@ -10281,7 +10281,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
10281
10281
|
await Ee($, X) && qu();
|
|
10282
10282
|
}
|
|
10283
10283
|
function qu() {
|
|
10284
|
-
|
|
10284
|
+
s("close-dialog");
|
|
10285
10285
|
}
|
|
10286
10286
|
return tu(Yu, B.value), ($, X) => {
|
|
10287
10287
|
const re = Z("t-loading");
|
|
@@ -10297,7 +10297,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
10297
10297
|
viewName: $.viewName,
|
|
10298
10298
|
board: $.board,
|
|
10299
10299
|
headerInfo: P.value,
|
|
10300
|
-
tableColumns:
|
|
10300
|
+
tableColumns: be.value,
|
|
10301
10301
|
displayColumns: je.value,
|
|
10302
10302
|
onHeaderButtonAction: W,
|
|
10303
10303
|
onHeaderFilterChange: J,
|
|
@@ -10365,16 +10365,16 @@ const zt = We(Rl), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10365
10365
|
config: {}
|
|
10366
10366
|
},
|
|
10367
10367
|
setup(t) {
|
|
10368
|
-
const u = ou(), e = Iu(), n = Se(), o = bu(), a = mn(), i = t, l = R(""),
|
|
10368
|
+
const u = ou(), e = Iu(), n = Se(), o = bu(), a = mn(), i = t, l = R(""), r = Q(() => n.isUserLogin), c = Q(() => n.homeUrl);
|
|
10369
10369
|
rt(async () => {
|
|
10370
|
-
|
|
10370
|
+
r.value || (await n.initUserConfig(i.config), await o.initTabMenu());
|
|
10371
10371
|
});
|
|
10372
|
-
const
|
|
10372
|
+
const s = () => {
|
|
10373
10373
|
document.visibilityState === "visible" && (a.closeSocket(), setTimeout(() => {
|
|
10374
10374
|
a.initSocket();
|
|
10375
10375
|
}));
|
|
10376
10376
|
};
|
|
10377
|
-
|
|
10377
|
+
Ue(async () => {
|
|
10378
10378
|
var f;
|
|
10379
10379
|
if (a.initSocket(), window.addEventListener("onSocketReload", () => {
|
|
10380
10380
|
n.toggleGlobalReload();
|
|
@@ -10388,9 +10388,9 @@ const zt = We(Rl), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10388
10388
|
});
|
|
10389
10389
|
} else
|
|
10390
10390
|
e.fullPath === "/view" && u.push(c.value);
|
|
10391
|
-
window.addEventListener("visibilitychange",
|
|
10391
|
+
window.addEventListener("visibilitychange", s);
|
|
10392
10392
|
}), uu(() => {
|
|
10393
|
-
a.closeSocket(), window.removeEventListener("visibilitychange",
|
|
10393
|
+
a.closeSocket(), window.removeEventListener("visibilitychange", s);
|
|
10394
10394
|
});
|
|
10395
10395
|
const M = Q(() => {
|
|
10396
10396
|
var f;
|
|
@@ -10782,7 +10782,7 @@ var ra = { exports: {} };
|
|
|
10782
10782
|
(function(e, n) {
|
|
10783
10783
|
t.exports = n();
|
|
10784
10784
|
})(Eu, function() {
|
|
10785
|
-
var e = 1e3, n = 6e4, o = 36e5, a = "millisecond", i = "second", l = "minute",
|
|
10785
|
+
var e = 1e3, n = 6e4, o = 36e5, a = "millisecond", i = "second", l = "minute", r = "hour", c = "day", s = "week", M = "month", N = "quarter", I = "year", j = "date", x = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = {
|
|
10786
10786
|
name: "en",
|
|
10787
10787
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
10788
10788
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -10812,10 +10812,10 @@ var ra = { exports: {} };
|
|
|
10812
10812
|
return {
|
|
10813
10813
|
M,
|
|
10814
10814
|
y: I,
|
|
10815
|
-
w:
|
|
10815
|
+
w: s,
|
|
10816
10816
|
d: c,
|
|
10817
10817
|
D: j,
|
|
10818
|
-
h:
|
|
10818
|
+
h: r,
|
|
10819
10819
|
m: l,
|
|
10820
10820
|
s: i,
|
|
10821
10821
|
ms: a,
|
|
@@ -10913,13 +10913,13 @@ var ra = { exports: {} };
|
|
|
10913
10913
|
return L ? Y(1, 0) : Y(31, 11);
|
|
10914
10914
|
case M:
|
|
10915
10915
|
return L ? Y(1, se) : Y(0, se + 1);
|
|
10916
|
-
case
|
|
10917
|
-
var De = this.$locale().weekStart || 0,
|
|
10918
|
-
return Y(L ? me -
|
|
10916
|
+
case s:
|
|
10917
|
+
var De = this.$locale().weekStart || 0, Qe = (J < De ? J + 7 : J) - De;
|
|
10918
|
+
return Y(L ? me - Qe : me + (6 - Qe), se);
|
|
10919
10919
|
case c:
|
|
10920
10920
|
case j:
|
|
10921
10921
|
return W(ne + "Hours", 0);
|
|
10922
|
-
case
|
|
10922
|
+
case r:
|
|
10923
10923
|
return W(ne + "Minutes", 1);
|
|
10924
10924
|
case l:
|
|
10925
10925
|
return W(ne + "Seconds", 2);
|
|
@@ -10931,7 +10931,7 @@ var ra = { exports: {} };
|
|
|
10931
10931
|
}, E.endOf = function(S) {
|
|
10932
10932
|
return this.startOf(S, !1);
|
|
10933
10933
|
}, E.$set = function(S, y) {
|
|
10934
|
-
var O, L = g.p(S), h = "set" + (this.$u ? "UTC" : ""), Y = (O = {}, O[c] = h + "Date", O[j] = h + "Date", O[M] = h + "Month", O[I] = h + "FullYear", O[
|
|
10934
|
+
var O, L = g.p(S), h = "set" + (this.$u ? "UTC" : ""), Y = (O = {}, O[c] = h + "Date", O[j] = h + "Date", O[M] = h + "Month", O[I] = h + "FullYear", O[r] = h + "Hours", O[l] = h + "Minutes", O[i] = h + "Seconds", O[a] = h + "Milliseconds", O)[L], W = L === c ? this.$D + (y - this.$W) : y;
|
|
10935
10935
|
if (L === M || L === I) {
|
|
10936
10936
|
var J = this.clone().set(j, 1);
|
|
10937
10937
|
J.$d[Y](W), J.init(), this.$d = J.set(j, Math.min(this.$D, J.daysInMonth())).$d;
|
|
@@ -10955,9 +10955,9 @@ var ra = { exports: {} };
|
|
|
10955
10955
|
return this.set(I, this.$y + S);
|
|
10956
10956
|
if (h === c)
|
|
10957
10957
|
return Y(1);
|
|
10958
|
-
if (h ===
|
|
10958
|
+
if (h === s)
|
|
10959
10959
|
return Y(7);
|
|
10960
|
-
var W = (O = {}, O[l] = n, O[
|
|
10960
|
+
var W = (O = {}, O[l] = n, O[r] = o, O[i] = e, O)[h] || 1, J = this.$d.getTime() + S * W;
|
|
10961
10961
|
return g.w(J, this);
|
|
10962
10962
|
}, E.subtract = function(S, y) {
|
|
10963
10963
|
return this.add(-1 * S, y);
|
|
@@ -10967,9 +10967,9 @@ var ra = { exports: {} };
|
|
|
10967
10967
|
return O.invalidDate || x;
|
|
10968
10968
|
var L = S || "YYYY-MM-DDTHH:mm:ssZ", h = g.z(this), Y = this.$H, W = this.$m, J = this.$M, se = O.weekdays, me = O.months, ne = O.meridiem, De = function(G, te, Me, de) {
|
|
10969
10969
|
return G && (G[te] || G(y, L)) || Me[te].slice(0, de);
|
|
10970
|
-
},
|
|
10970
|
+
}, Qe = function(G) {
|
|
10971
10971
|
return g.s(Y % 12 || 12, G, "0");
|
|
10972
|
-
},
|
|
10972
|
+
}, be = ne || function(je, G, te) {
|
|
10973
10973
|
var Me = je < 12 ? "AM" : "PM";
|
|
10974
10974
|
return te ? Me.toLowerCase() : Me;
|
|
10975
10975
|
};
|
|
@@ -11005,13 +11005,13 @@ var ra = { exports: {} };
|
|
|
11005
11005
|
case "HH":
|
|
11006
11006
|
return g.s(Y, 2, "0");
|
|
11007
11007
|
case "h":
|
|
11008
|
-
return
|
|
11008
|
+
return Qe(1);
|
|
11009
11009
|
case "hh":
|
|
11010
|
-
return
|
|
11010
|
+
return Qe(2);
|
|
11011
11011
|
case "a":
|
|
11012
|
-
return
|
|
11012
|
+
return be(Y, W, !0);
|
|
11013
11013
|
case "A":
|
|
11014
|
-
return
|
|
11014
|
+
return be(Y, W, !1);
|
|
11015
11015
|
case "m":
|
|
11016
11016
|
return String(W);
|
|
11017
11017
|
case "mm":
|
|
@@ -11044,13 +11044,13 @@ var ra = { exports: {} };
|
|
|
11044
11044
|
case N:
|
|
11045
11045
|
L = me() / 3;
|
|
11046
11046
|
break;
|
|
11047
|
-
case
|
|
11047
|
+
case s:
|
|
11048
11048
|
L = (se - J) / 6048e5;
|
|
11049
11049
|
break;
|
|
11050
11050
|
case c:
|
|
11051
11051
|
L = (se - J) / 864e5;
|
|
11052
11052
|
break;
|
|
11053
|
-
case
|
|
11053
|
+
case r:
|
|
11054
11054
|
L = se / o;
|
|
11055
11055
|
break;
|
|
11056
11056
|
case l:
|
|
@@ -11084,7 +11084,7 @@ var ra = { exports: {} };
|
|
|
11084
11084
|
return this.$d.toUTCString();
|
|
11085
11085
|
}, U;
|
|
11086
11086
|
}(), m = F.prototype;
|
|
11087
|
-
return V.prototype = m, [["$ms", a], ["$s", i], ["$m", l], ["$H",
|
|
11087
|
+
return V.prototype = m, [["$ms", a], ["$s", i], ["$m", l], ["$H", r], ["$W", c], ["$M", M], ["$y", I], ["$D", j]].forEach(function(U) {
|
|
11088
11088
|
m[U[1]] = function(E) {
|
|
11089
11089
|
return this.$g(E, U[0], U[1]);
|
|
11090
11090
|
};
|
|
@@ -11118,8 +11118,8 @@ var Gl = { exports: {} };
|
|
|
11118
11118
|
weekdaysMin: "日_一_二_三_四_五_六".split("_"),
|
|
11119
11119
|
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
|
|
11120
11120
|
monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
|
11121
|
-
ordinal: function(l,
|
|
11122
|
-
return
|
|
11121
|
+
ordinal: function(l, r) {
|
|
11122
|
+
return r === "W" ? l + "周" : l + "日";
|
|
11123
11123
|
},
|
|
11124
11124
|
weekStart: 1,
|
|
11125
11125
|
yearStart: 4,
|
|
@@ -11150,8 +11150,8 @@ var Gl = { exports: {} };
|
|
|
11150
11150
|
y: "1 年",
|
|
11151
11151
|
yy: "%d 年"
|
|
11152
11152
|
},
|
|
11153
|
-
meridiem: function(l,
|
|
11154
|
-
var c = 100 * l +
|
|
11153
|
+
meridiem: function(l, r) {
|
|
11154
|
+
var c = 100 * l + r;
|
|
11155
11155
|
return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
|
|
11156
11156
|
}
|
|
11157
11157
|
};
|
|
@@ -11441,8 +11441,8 @@ var Kl = { exports: {} };
|
|
|
11441
11441
|
weekdaysMin: "日_一_二_三_四_五_六".split("_"),
|
|
11442
11442
|
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
|
|
11443
11443
|
monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
|
11444
|
-
ordinal: function(l,
|
|
11445
|
-
return
|
|
11444
|
+
ordinal: function(l, r) {
|
|
11445
|
+
return r === "W" ? l + "週" : l + "日";
|
|
11446
11446
|
},
|
|
11447
11447
|
formats: {
|
|
11448
11448
|
LT: "HH:mm",
|
|
@@ -11471,8 +11471,8 @@ var Kl = { exports: {} };
|
|
|
11471
11471
|
y: "1 年",
|
|
11472
11472
|
yy: "%d 年"
|
|
11473
11473
|
},
|
|
11474
|
-
meridiem: function(l,
|
|
11475
|
-
var c = 100 * l +
|
|
11474
|
+
meridiem: function(l, r) {
|
|
11475
|
+
var c = 100 * l + r;
|
|
11476
11476
|
return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
|
|
11477
11477
|
}
|
|
11478
11478
|
};
|
|
@@ -12395,8 +12395,8 @@ var tr = { exports: {} };
|
|
|
12395
12395
|
default: j
|
|
12396
12396
|
};
|
|
12397
12397
|
}
|
|
12398
|
-
var o = n(e), a = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), i = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), l = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),
|
|
12399
|
-
function
|
|
12398
|
+
var o = n(e), a = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), i = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), l = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), r = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), c = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
|
|
12399
|
+
function s(j, x, P) {
|
|
12400
12400
|
var v, z;
|
|
12401
12401
|
return P === "m" ? x ? "минута" : "минуту" : j + " " + (v = +j, z = {
|
|
12402
12402
|
mm: x ? "минута_минуты_минут" : "минуту_минуты_минут",
|
|
@@ -12411,9 +12411,9 @@ var tr = { exports: {} };
|
|
|
12411
12411
|
};
|
|
12412
12412
|
M.s = i, M.f = a;
|
|
12413
12413
|
var N = function(x, P) {
|
|
12414
|
-
return c.test(P) ? l[x.month()] :
|
|
12414
|
+
return c.test(P) ? l[x.month()] : r[x.month()];
|
|
12415
12415
|
};
|
|
12416
|
-
N.s =
|
|
12416
|
+
N.s = r, N.f = l;
|
|
12417
12417
|
var I = {
|
|
12418
12418
|
name: "ru",
|
|
12419
12419
|
weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),
|
|
@@ -12435,16 +12435,16 @@ var tr = { exports: {} };
|
|
|
12435
12435
|
future: "через %s",
|
|
12436
12436
|
past: "%s назад",
|
|
12437
12437
|
s: "несколько секунд",
|
|
12438
|
-
m:
|
|
12439
|
-
mm:
|
|
12438
|
+
m: s,
|
|
12439
|
+
mm: s,
|
|
12440
12440
|
h: "час",
|
|
12441
|
-
hh:
|
|
12441
|
+
hh: s,
|
|
12442
12442
|
d: "день",
|
|
12443
|
-
dd:
|
|
12443
|
+
dd: s,
|
|
12444
12444
|
M: "месяц",
|
|
12445
|
-
MM:
|
|
12445
|
+
MM: s,
|
|
12446
12446
|
y: "год",
|
|
12447
|
-
yy:
|
|
12447
|
+
yy: s
|
|
12448
12448
|
},
|
|
12449
12449
|
ordinal: function(x) {
|
|
12450
12450
|
return x;
|
|
@@ -13068,7 +13068,7 @@ var ir = { exports: {} };
|
|
|
13068
13068
|
"٨": "8",
|
|
13069
13069
|
"٩": "9",
|
|
13070
13070
|
"٠": "0"
|
|
13071
|
-
},
|
|
13071
|
+
}, r = {
|
|
13072
13072
|
name: "ar",
|
|
13073
13073
|
weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
|
13074
13074
|
weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
|
|
@@ -13076,8 +13076,8 @@ var ir = { exports: {} };
|
|
|
13076
13076
|
months: a,
|
|
13077
13077
|
monthsShort: a,
|
|
13078
13078
|
weekStart: 6,
|
|
13079
|
-
meridiem: function(
|
|
13080
|
-
return
|
|
13079
|
+
meridiem: function(s) {
|
|
13080
|
+
return s > 12 ? "م" : "ص";
|
|
13081
13081
|
},
|
|
13082
13082
|
relativeTime: {
|
|
13083
13083
|
future: "بعد %s",
|
|
@@ -13094,18 +13094,18 @@ var ir = { exports: {} };
|
|
|
13094
13094
|
y: "عام واحد",
|
|
13095
13095
|
yy: "%d أعوام"
|
|
13096
13096
|
},
|
|
13097
|
-
preparse: function(
|
|
13098
|
-
return
|
|
13097
|
+
preparse: function(s) {
|
|
13098
|
+
return s.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(M) {
|
|
13099
13099
|
return l[M];
|
|
13100
13100
|
}).replace(/،/g, ",");
|
|
13101
13101
|
},
|
|
13102
|
-
postformat: function(
|
|
13103
|
-
return
|
|
13102
|
+
postformat: function(s) {
|
|
13103
|
+
return s.replace(/\d/g, function(M) {
|
|
13104
13104
|
return i[M];
|
|
13105
13105
|
}).replace(/,/g, "،");
|
|
13106
13106
|
},
|
|
13107
|
-
ordinal: function(
|
|
13108
|
-
return
|
|
13107
|
+
ordinal: function(s) {
|
|
13108
|
+
return s;
|
|
13109
13109
|
},
|
|
13110
13110
|
formats: {
|
|
13111
13111
|
LT: "HH:mm",
|
|
@@ -13116,7 +13116,7 @@ var ir = { exports: {} };
|
|
|
13116
13116
|
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
13117
13117
|
}
|
|
13118
13118
|
};
|
|
13119
|
-
return o.default.locale(
|
|
13119
|
+
return o.default.locale(r, null, !0), r;
|
|
13120
13120
|
});
|
|
13121
13121
|
})(ir);
|
|
13122
13122
|
var lr = {
|
|
@@ -13623,12 +13623,12 @@ const sr = { class: "gConfigProvider" }, Mr = /* @__PURE__ */ oe({
|
|
|
13623
13623
|
const n = t, o = Q(() => ({ ...n.localeConfig })), a = Q(() => ({ ...n.dateLocaleConfig })), i = Q(() => [...n.layoutHeaderOperations]), l = Q(() => ({
|
|
13624
13624
|
enableDefaultOperations: !0,
|
|
13625
13625
|
...n.layoutHeaderConfig
|
|
13626
|
-
})),
|
|
13626
|
+
})), r = Q(() => ({
|
|
13627
13627
|
enableHoverMenu: !0,
|
|
13628
13628
|
enableSideMenu: !0,
|
|
13629
13629
|
...n.sideMenuConfig
|
|
13630
13630
|
})), c = Q(() => e.global.locale.value);
|
|
13631
|
-
function
|
|
13631
|
+
function s() {
|
|
13632
13632
|
switch (c.value) {
|
|
13633
13633
|
case "zh-CN":
|
|
13634
13634
|
case "zh": {
|
|
@@ -13709,13 +13709,13 @@ const sr = { class: "gConfigProvider" }, Mr = /* @__PURE__ */ oe({
|
|
|
13709
13709
|
}
|
|
13710
13710
|
const M = R({});
|
|
13711
13711
|
return Aa(() => {
|
|
13712
|
-
|
|
13712
|
+
s();
|
|
13713
13713
|
}), tu(Mn, {
|
|
13714
13714
|
GLayoutHeaderOperationsRef: i,
|
|
13715
13715
|
GLayoutHeaderConfigRef: l,
|
|
13716
13716
|
LocaleConfigRef: o,
|
|
13717
13717
|
DateLocaleConfigRef: a,
|
|
13718
|
-
SideMenuConfigRef:
|
|
13718
|
+
SideMenuConfigRef: r
|
|
13719
13719
|
}), (N, I) => (d(), H("div", sr, [
|
|
13720
13720
|
_(A(za), { globalConfig: M.value }, {
|
|
13721
13721
|
default: k(() => [
|
|
@@ -13791,7 +13791,7 @@ const Cr = { render: pr }, xr = {
|
|
|
13791
13791
|
]));
|
|
13792
13792
|
}
|
|
13793
13793
|
});
|
|
13794
|
-
const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]),
|
|
13794
|
+
const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), Fs = /* @__PURE__ */ oe({
|
|
13795
13795
|
__name: "404",
|
|
13796
13796
|
setup(t) {
|
|
13797
13797
|
const { T: u } = Ae(), e = ou();
|
|
@@ -13824,7 +13824,7 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
13824
13824
|
});
|
|
13825
13825
|
};
|
|
13826
13826
|
}
|
|
13827
|
-
}),
|
|
13827
|
+
}), Ps = /* @__PURE__ */ oe({
|
|
13828
13828
|
__name: "403",
|
|
13829
13829
|
setup(t) {
|
|
13830
13830
|
const { T: u } = Ae(), e = ou();
|
|
@@ -13878,7 +13878,7 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
13878
13878
|
t.directive(u, lo[u]);
|
|
13879
13879
|
});
|
|
13880
13880
|
}
|
|
13881
|
-
}, wr = "@gonsin/gview", vr = "2.1.
|
|
13881
|
+
}, wr = "@gonsin/gview", vr = "2.1.28", Ur = "dist/index.mjs", Qr = "dist/types/index.d.ts", br = [
|
|
13882
13882
|
"dist",
|
|
13883
13883
|
"README.md",
|
|
13884
13884
|
"CHANGELOG.md"
|
|
@@ -13970,7 +13970,7 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
13970
13970
|
subTitle: { default: "Gonsin Conference affairs management system" }
|
|
13971
13971
|
},
|
|
13972
13972
|
setup(t) {
|
|
13973
|
-
const u = `${
|
|
13973
|
+
const u = `${xu}__title`, { i18n: e } = Ae(), n = Q(() => e.global.locale.value.toLowerCase() === "zh-cn"), o = Q(() => e.global.locale.value.toLowerCase() === "en");
|
|
13974
13974
|
return (a, i) => (d(), H("div", {
|
|
13975
13975
|
class: K(`${u}`)
|
|
13976
13976
|
}, [
|
|
@@ -13985,7 +13985,7 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
13985
13985
|
}), Pr = /* @__PURE__ */ oe({
|
|
13986
13986
|
__name: "GLoginForm",
|
|
13987
13987
|
setup(t) {
|
|
13988
|
-
const { T: u } = Ae(), e = `${
|
|
13988
|
+
const { T: u } = Ae(), e = `${xu}__form`;
|
|
13989
13989
|
return (n, o) => (d(), H("div", {
|
|
13990
13990
|
class: K(`${e}`)
|
|
13991
13991
|
}, [
|
|
@@ -14005,7 +14005,7 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
14005
14005
|
copyrightLogoSrc: { default: $r }
|
|
14006
14006
|
},
|
|
14007
14007
|
setup(t) {
|
|
14008
|
-
const u = `${
|
|
14008
|
+
const u = `${xu}__footer`;
|
|
14009
14009
|
return (e, n) => (d(), H("div", {
|
|
14010
14010
|
class: K(`${u}`)
|
|
14011
14011
|
}, [
|
|
@@ -14022,12 +14022,12 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
14022
14022
|
], 2)
|
|
14023
14023
|
], 2));
|
|
14024
14024
|
}
|
|
14025
|
-
}), Gr = ["poster"], Zr = ["src"], Kr = ["src"], qr = /* @__PURE__ */ oe({
|
|
14025
|
+
}), Gr = ["poster"], Zr = ["src"], Kr = ["src"], qr = ["src"], Jr = /* @__PURE__ */ oe({
|
|
14026
14026
|
__name: "GLogin",
|
|
14027
14027
|
props: {
|
|
14028
14028
|
bgVideoMp4Src: {},
|
|
14029
14029
|
bgVideoWebmSrc: {},
|
|
14030
|
-
bgImgSrc: {},
|
|
14030
|
+
bgImgSrc: { default: "" },
|
|
14031
14031
|
title: { default: "" },
|
|
14032
14032
|
subTitle: { default: "" },
|
|
14033
14033
|
copyrightInfoCN: {},
|
|
@@ -14035,55 +14035,81 @@ const sa = /* @__PURE__ */ au(Or, [["__scopeId", "data-v-75fdffa5"]]), _s = /* @
|
|
|
14035
14035
|
copyrightLogoSrc: {}
|
|
14036
14036
|
},
|
|
14037
14037
|
setup(t) {
|
|
14038
|
-
|
|
14039
|
-
|
|
14038
|
+
const u = t, e = R(!0);
|
|
14039
|
+
Q(() => u.bgImgSrc || u.bgImgSrc || "");
|
|
14040
|
+
const n = Q(() => {
|
|
14041
|
+
const o = !!(u.bgVideoMp4Src || u.bgVideoWebmSrc);
|
|
14042
|
+
return e.value && o;
|
|
14043
|
+
});
|
|
14044
|
+
return Ue(() => {
|
|
14045
|
+
const o = document.createElement("video"), a = "playsInline" in o || "webkitPlaysInline" in o;
|
|
14046
|
+
if (typeof window > "u") {
|
|
14047
|
+
e.value = a;
|
|
14048
|
+
return;
|
|
14049
|
+
}
|
|
14050
|
+
const i = window.navigator.userAgent, l = /Android\s(?:[0-4]\.|5\.[0-1])/i.test(i), r = /Chrome\/((?:[0-4]?\d|5[0-2]))(?=\.|\s|$)/i.test(i), c = /(Version\/4\.0|UCBrowser|MQQBrowser|QQBrowser|MiuiBrowser)/i.test(i);
|
|
14051
|
+
e.value = a && !l && !r && !c;
|
|
14052
|
+
}), (o, a) => (d(), H("div", {
|
|
14053
|
+
class: K(`${A(xu)}`)
|
|
14040
14054
|
}, [
|
|
14041
14055
|
ee("div", {
|
|
14042
|
-
class: K(`${A(
|
|
14056
|
+
class: K(`${A(xu)}__container`)
|
|
14043
14057
|
}, [
|
|
14044
14058
|
_(Fr, {
|
|
14045
|
-
title:
|
|
14046
|
-
subTitle:
|
|
14059
|
+
title: o.title,
|
|
14060
|
+
subTitle: o.subTitle
|
|
14047
14061
|
}, null, 8, ["title", "subTitle"]),
|
|
14048
14062
|
_(Pr, null, {
|
|
14049
14063
|
tabs: k(() => [
|
|
14050
|
-
Pe(
|
|
14064
|
+
Pe(o.$slots, "tabs")
|
|
14051
14065
|
]),
|
|
14052
14066
|
_: 3
|
|
14053
14067
|
})
|
|
14054
14068
|
], 2),
|
|
14055
14069
|
_(Hr, {
|
|
14056
|
-
copyrightInfoCN:
|
|
14057
|
-
copyrightInfoEng:
|
|
14058
|
-
copyrightLogoSrc:
|
|
14070
|
+
copyrightInfoCN: o.copyrightInfoCN,
|
|
14071
|
+
copyrightInfoEng: o.copyrightInfoEng,
|
|
14072
|
+
copyrightLogoSrc: o.copyrightLogoSrc
|
|
14059
14073
|
}, null, 8, ["copyrightInfoCN", "copyrightInfoEng", "copyrightLogoSrc"]),
|
|
14060
14074
|
ee("div", {
|
|
14061
|
-
class: K(`${A(
|
|
14075
|
+
class: K(`${A(xu)}__overlay`)
|
|
14062
14076
|
}, null, 2),
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14077
|
+
n.value ? (d(), H("video", {
|
|
14078
|
+
key: 0,
|
|
14079
|
+
class: K(`${A(xu)}__bgVideo`),
|
|
14080
|
+
style: su({ backgroundImage: o.bgImgSrc ? `url(${o.bgImgSrc})` : void 0 }),
|
|
14081
|
+
poster: o.bgImgSrc,
|
|
14067
14082
|
autoplay: "",
|
|
14068
14083
|
muted: "",
|
|
14069
|
-
loop: ""
|
|
14084
|
+
loop: "",
|
|
14085
|
+
playsinline: "",
|
|
14086
|
+
"webkit-playsinline": "",
|
|
14087
|
+
"x5-playsinline": "",
|
|
14088
|
+
"x5-video-player-type": "h5",
|
|
14089
|
+
"x5-video-player-fullscreen": "false",
|
|
14090
|
+
"x5-video-orientation": "landscape"
|
|
14070
14091
|
}, [
|
|
14071
14092
|
ee("source", {
|
|
14072
|
-
src:
|
|
14093
|
+
src: o.bgVideoMp4Src,
|
|
14073
14094
|
type: "video/mp4"
|
|
14074
14095
|
}, null, 8, Zr),
|
|
14075
14096
|
ee("source", {
|
|
14076
|
-
src:
|
|
14097
|
+
src: o.bgVideoWebmSrc,
|
|
14077
14098
|
type: "video/webm"
|
|
14078
14099
|
}, null, 8, Kr)
|
|
14079
|
-
], 14, Gr)
|
|
14100
|
+
], 14, Gr)) : o.bgImgSrc ? (d(), H("img", {
|
|
14101
|
+
key: 1,
|
|
14102
|
+
class: K(`${A(xu)}__bgVideo`),
|
|
14103
|
+
src: o.bgImgSrc,
|
|
14104
|
+
alt: ""
|
|
14105
|
+
}, null, 10, qr)) : q("", !0)
|
|
14080
14106
|
], 2));
|
|
14081
14107
|
}
|
|
14082
14108
|
});
|
|
14083
|
-
const
|
|
14084
|
-
function
|
|
14109
|
+
const $s = We(Jr), Xr = Ma.name, es = Ma.version;
|
|
14110
|
+
function us(t, u) {
|
|
14085
14111
|
console.info(
|
|
14086
|
-
`%c ${
|
|
14112
|
+
`%c ${Xr} %c ${es} `,
|
|
14087
14113
|
"padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #d82128; font-weight: bold;",
|
|
14088
14114
|
"padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #606060; "
|
|
14089
14115
|
), t.component("GView", Wl), t.component("GConfigProvider", cr), t.use(Sr);
|
|
@@ -14093,28 +14119,28 @@ function es(t, u) {
|
|
|
14093
14119
|
console.error("初始化GView", e);
|
|
14094
14120
|
}
|
|
14095
14121
|
}
|
|
14096
|
-
function
|
|
14122
|
+
function Vs(t) {
|
|
14097
14123
|
Se(t), bu(t), In(t), mn(t);
|
|
14098
14124
|
}
|
|
14099
|
-
const { i18n:
|
|
14125
|
+
const { i18n: Rs } = Ae({
|
|
14100
14126
|
project: "venus"
|
|
14101
|
-
}),
|
|
14102
|
-
install:
|
|
14127
|
+
}), Ws = {
|
|
14128
|
+
install: us
|
|
14103
14129
|
};
|
|
14104
14130
|
export {
|
|
14105
14131
|
Oo as COLOR_TOKEN,
|
|
14106
|
-
|
|
14107
|
-
|
|
14132
|
+
Qs as DEFAULT_DARK_COLOR,
|
|
14133
|
+
Us as DEFAULT_LIGHT_COLOR,
|
|
14108
14134
|
Ga as DEFAULT_THEME_CONFIG,
|
|
14109
14135
|
Y0 as GColumnController,
|
|
14110
14136
|
T0 as GCommonDialog,
|
|
14111
14137
|
So as GCommonForm,
|
|
14112
|
-
|
|
14138
|
+
bs as GCommonHeader,
|
|
14113
14139
|
I0 as GCommonTable,
|
|
14114
14140
|
cr as GConfigProvider,
|
|
14115
14141
|
yn as GLayout,
|
|
14116
|
-
|
|
14117
|
-
|
|
14142
|
+
$s as GLogin,
|
|
14143
|
+
Bs as GSettingDialog,
|
|
14118
14144
|
cn as GUploader,
|
|
14119
14145
|
Wt as INIT_WS_MODEL,
|
|
14120
14146
|
on as LANG_CONFIG,
|
|
@@ -14122,26 +14148,26 @@ export {
|
|
|
14122
14148
|
Xu as LOCAL_COLUMN_DATA,
|
|
14123
14149
|
an as LOCAL_COLUMN_WIDTH_DATA,
|
|
14124
14150
|
Yt as LOCAL_CONFIG,
|
|
14125
|
-
|
|
14126
|
-
|
|
14151
|
+
fs as LOCAL_DATA_ID,
|
|
14152
|
+
ys as LOCAL_EDIFICE_INFO,
|
|
14127
14153
|
$t as LOCAL_INIT_TAB_MENU_LIST,
|
|
14128
14154
|
Pt as LOCAL_IS_SIDE_SELF_DRAGGING,
|
|
14129
14155
|
bn as LOCAL_LOGIN_STATUS,
|
|
14130
|
-
|
|
14156
|
+
Es as LOCAL_MENU,
|
|
14131
14157
|
Fn as LOCAL_SESSION_ID,
|
|
14132
14158
|
Ju as LOCAL_SIDE_MENU_CONFIG,
|
|
14133
14159
|
Ft as LOCAL_SIDE_MENU_WIDTH,
|
|
14134
14160
|
Vt as LOCAL_TAB_MENU,
|
|
14135
14161
|
_t as LOCAL_THEME_CONFIG,
|
|
14136
|
-
|
|
14162
|
+
Is as LOCAL_USER,
|
|
14137
14163
|
Yn as LOCAL_USER_PERMISSIONS,
|
|
14138
14164
|
Qn as LOCAL_WEBSITE_SETTING_KEY,
|
|
14139
14165
|
pe as MessageManager,
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14166
|
+
qs as NProgress,
|
|
14167
|
+
Ps as NoPermission,
|
|
14168
|
+
Fs as NotFound,
|
|
14143
14169
|
mo as PREFIX,
|
|
14144
|
-
|
|
14170
|
+
Ys as PROJECT_PREFIX,
|
|
14145
14171
|
Co as RequestHttp,
|
|
14146
14172
|
ct as SESSION_FORM_DATA_CACHE,
|
|
14147
14173
|
Pn as SESSION_SIDE_MENU_COLLAPSE,
|
|
@@ -14159,67 +14185,67 @@ export {
|
|
|
14159
14185
|
pi as commonTableClass,
|
|
14160
14186
|
di as configHttp,
|
|
14161
14187
|
zo as deepCompareObjects,
|
|
14162
|
-
|
|
14188
|
+
Ws as default,
|
|
14163
14189
|
Ni as deleteQueryFromPath,
|
|
14164
|
-
|
|
14190
|
+
ws as dialogClass,
|
|
14165
14191
|
Ht as dialogPluginClass,
|
|
14166
14192
|
Rt as downloadFile,
|
|
14167
14193
|
rn as evalContext,
|
|
14168
14194
|
ji as filterTreeValues,
|
|
14169
|
-
|
|
14195
|
+
Ss as flattenMenuData,
|
|
14170
14196
|
xi as formClass,
|
|
14171
14197
|
Wn as formItemClass,
|
|
14172
|
-
|
|
14198
|
+
xu as gLoginClass,
|
|
14173
14199
|
ln as generateMenuTree,
|
|
14174
14200
|
po as getBrandColor,
|
|
14175
14201
|
Ti as getFileNameFromContentDisposition,
|
|
14176
14202
|
Eo as getHomeUrl,
|
|
14177
|
-
|
|
14178
|
-
|
|
14203
|
+
Lu as getUrlQuery,
|
|
14204
|
+
vs as headerClass,
|
|
14179
14205
|
Di as highlightSearchResult,
|
|
14180
14206
|
Xe as http,
|
|
14181
|
-
|
|
14207
|
+
Rs as i18n,
|
|
14182
14208
|
$e as initEmptyFormItems,
|
|
14183
14209
|
lt as initFormModel,
|
|
14184
14210
|
Mi as initTableColumns,
|
|
14185
14211
|
ci as initTableDisplayColumns,
|
|
14186
14212
|
xo as initTreeSelectorData,
|
|
14187
14213
|
yu as is,
|
|
14188
|
-
|
|
14189
|
-
|
|
14214
|
+
hu as isArray,
|
|
14215
|
+
xs as isAsyncFunction,
|
|
14190
14216
|
Ja as isBoolean,
|
|
14191
|
-
|
|
14192
|
-
|
|
14217
|
+
hs as isClient,
|
|
14218
|
+
ps as isDate,
|
|
14193
14219
|
Ka as isDef,
|
|
14194
|
-
|
|
14220
|
+
Os as isElement,
|
|
14195
14221
|
Et as isFormVoid,
|
|
14196
14222
|
wu as isFunction,
|
|
14197
14223
|
eu as isNull,
|
|
14198
14224
|
$n as isNullAndUnDef,
|
|
14199
14225
|
Fe as isNullOrUnDef,
|
|
14200
|
-
|
|
14226
|
+
Cs as isNumber,
|
|
14201
14227
|
jn as isObject,
|
|
14202
14228
|
st as isOuterUrl,
|
|
14203
14229
|
qa as isPromise,
|
|
14204
14230
|
Vn as isResourceUrl,
|
|
14205
|
-
|
|
14206
|
-
|
|
14231
|
+
ks as isServer,
|
|
14232
|
+
zs as isString,
|
|
14207
14233
|
Io as isUnDef,
|
|
14208
|
-
|
|
14234
|
+
Ls as isWindow,
|
|
14209
14235
|
nu as layoutClass,
|
|
14210
14236
|
Mu as loadSessionId,
|
|
14211
14237
|
ge as localStorageUtils,
|
|
14212
14238
|
it as nanoid,
|
|
14213
14239
|
Au as resolveUrl,
|
|
14214
14240
|
ru as sessionStorageUtils,
|
|
14215
|
-
|
|
14241
|
+
Vs as setupStore,
|
|
14216
14242
|
zi as tabClass,
|
|
14217
14243
|
Vu as tableClass,
|
|
14218
14244
|
gt as uploaderClass,
|
|
14219
14245
|
yo as urlToPath,
|
|
14220
14246
|
Wu as useCacheStore,
|
|
14221
14247
|
An as useColumnStore,
|
|
14222
|
-
|
|
14248
|
+
Zs as useI18n,
|
|
14223
14249
|
In as usePropsStore,
|
|
14224
14250
|
Se as useSettingStore,
|
|
14225
14251
|
mn as useSocketStore,
|