@gonsin/gview 2.0.90 → 2.0.92
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 +401 -400
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,37 +3,37 @@ var Ka = (n, e, t) => e in n ? Ha(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var zt = (n, e, t) => (Ka(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { useI18n as ke } from "gonsin-i18n";
|
|
5
5
|
import { useI18n as Bc } from "gonsin-i18n";
|
|
6
|
-
import { defineComponent as ue, ref as Y, computed as V, resolveComponent as Q, openBlock as v, createBlock as $, normalizeClass as Z, withCtx as C, createElementBlock as W, Fragment as de, renderList as Se, createVNode as F, createElementVNode as ne, unref as h, createTextVNode as re, toDisplayString as te, createCommentVNode as X, withModifiers as Vt, nextTick as Wa, inject as ze, normalizeStyle as bt, normalizeProps as Lt, mergeProps as Ee, guardReactiveProps as Yt, renderSlot as Ke, onMounted as Ue, onBeforeUnmount as Tt, isRef as Ya, Transition as qa, watch as De, createSlots as qt, useSlots as
|
|
7
|
-
import { useRouter as ft, useRoute as rt, onBeforeRouteLeave as
|
|
6
|
+
import { defineComponent as ue, ref as Y, computed as V, resolveComponent as Q, openBlock as v, createBlock as $, normalizeClass as Z, withCtx as C, createElementBlock as W, Fragment as de, renderList as Se, createVNode as F, createElementVNode as ne, unref as h, createTextVNode as re, toDisplayString as te, createCommentVNode as X, withModifiers as Vt, nextTick as Wa, inject as ze, normalizeStyle as bt, normalizeProps as Lt, mergeProps as Ee, guardReactiveProps as Yt, renderSlot as Ke, onMounted as Ue, onBeforeUnmount as Tt, isRef as Ya, Transition as qa, watch as De, createSlots as qt, useSlots as Ko, resolveDynamicComponent as Qa, TransitionGroup as Xa, toRefs as Za, provide as At, reactive as $n, onBeforeMount as Jt, toRaw as _n, shallowRef as Ja, defineAsyncComponent as Wo, watchEffect as el } from "vue";
|
|
7
|
+
import { useRouter as ft, useRoute as rt, onBeforeRouteLeave as Yo, onBeforeRouteUpdate as qo } from "vue-router";
|
|
8
8
|
import { defineStore as Ut, storeToRefs as tl } from "pinia";
|
|
9
9
|
import ct from "dayjs";
|
|
10
10
|
import to from "axios";
|
|
11
|
-
import { MessagePlugin as he, Button as nl, Progress as
|
|
12
|
-
import { get as fe, set as je, cloneDeep as Xe, isPlainObject as
|
|
11
|
+
import { MessagePlugin as he, Button as nl, Progress as Qo, Tooltip as St, Link as ol, Tree as al, Card as ll, DialogPlugin as vn, ConfigProvider as rl } from "tdesign-vue-next";
|
|
12
|
+
import { get as fe, set as je, cloneDeep as Xe, isPlainObject as ho, isArray as vo, isEqual as go } from "lodash-es";
|
|
13
13
|
import { customAlphabet as sl } from "nanoid";
|
|
14
|
-
import { RefreshIcon as Hn, CloseIcon as xt, ArrowLeftIcon as
|
|
15
|
-
import { useElementSize as Il, onClickOutside as
|
|
14
|
+
import { RefreshIcon as Hn, CloseIcon as xt, ArrowLeftIcon as yo, ArrowRightIcon as bo, CloseCircleIcon as wo, MoreIcon as il, DeleteIcon as ul, ViewListIcon as cl, PoweroffIcon as dl, ChevronDownIcon as ml, Icon as To, AppIcon as gt, UploadIcon as Co, CheckCircleFilledIcon as fl, PlayCircleFilledIcon as pl, PauseCircleFilledIcon as hl, LinkIcon as vl, ErrorCircleFilledIcon as gl, FileImageIcon as Qt, FilePdfIcon as Xo, VideoIcon as Kn, FileIconIcon as Wn, FolderOpenIcon as yl, FolderIcon as bl, FilterIcon as wl, SearchIcon as Tl, UserIcon as Bn, BrowseIcon as Cl, ChevronRightIcon as kl, ChevronUpIcon as Ml, MoveIcon as _l } from "tdesign-icons-vue-next";
|
|
15
|
+
import { useElementSize as Il, onClickOutside as ko, useEventListener as Mo } from "@vueuse/core";
|
|
16
16
|
import gn from "number-precision";
|
|
17
|
-
import
|
|
17
|
+
import no from "qs";
|
|
18
18
|
import Ll from "nprogress";
|
|
19
19
|
import { default as xc } from "nprogress";
|
|
20
20
|
import dt from "mustache";
|
|
21
21
|
import { Toolbar as Sl, Editor as Dl } from "@wangeditor/editor-for-vue";
|
|
22
|
-
import
|
|
22
|
+
import _o from "he";
|
|
23
23
|
function Ye(n, e, t) {
|
|
24
24
|
const o = n;
|
|
25
25
|
return o.install = (a, l) => {
|
|
26
26
|
a.component(e || l || o.name, n), t && a.directive(t.name, t.comp);
|
|
27
27
|
}, o;
|
|
28
28
|
}
|
|
29
|
-
const nn = "config",
|
|
29
|
+
const nn = "config", Io = "themeConfig", Nl = "user", Lo = "langConfig", cc = "menu", Pn = "initTabMenuList", xn = "tabMenu", on = "sideMenuConfig", So = "token", Do = "tokenExpiredTime", dc = "dataId", Xt = "sessionId", an = "formDataCache", ln = "columnData", El = {
|
|
30
30
|
brandTheme: "default",
|
|
31
31
|
// 主题色
|
|
32
32
|
displayMode: "light"
|
|
33
33
|
// 主题模式 light | dark | auto
|
|
34
34
|
};
|
|
35
35
|
function bn(n, e, t) {
|
|
36
|
-
return n.filter((o) => o.parent === e).map((o) => ({
|
|
36
|
+
return n.filter((o) => o.parent === e && o.menuMold != 3).map((o) => ({
|
|
37
37
|
...o,
|
|
38
38
|
children: bn(n, o.name, t + 1),
|
|
39
39
|
path: o.url,
|
|
@@ -266,7 +266,7 @@ const Be = new ea("session"), et = new ea("local"), mc = [
|
|
|
266
266
|
subcmd: n,
|
|
267
267
|
response: 0
|
|
268
268
|
}
|
|
269
|
-
}, $l = 3e4, Bl = 3e3, yn = "g-dialog-plugin", Pl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", xl = "g-common-table", Vl = "g-board", hc = "g-dialog", Ol = "g-form",
|
|
269
|
+
}, $l = 3e4, Bl = 3e3, yn = "g-dialog-plugin", Pl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", xl = "g-common-table", Vl = "g-board", hc = "g-dialog", Ol = "g-form", No = "g-form-item", vc = "g-header", Ul = "g-tab", Pt = "g-table", tt = "g-layout", un = "g-uploader", _t = "g-login";
|
|
270
270
|
function Rl(n) {
|
|
271
271
|
return n.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
272
272
|
}
|
|
@@ -301,7 +301,7 @@ function pt(n, e) {
|
|
|
301
301
|
function Dt(n) {
|
|
302
302
|
return pt(n, "Function");
|
|
303
303
|
}
|
|
304
|
-
const Kl = (n) => typeof n < "u", oa = (n) => !Kl(n),
|
|
304
|
+
const Kl = (n) => typeof n < "u", oa = (n) => !Kl(n), oo = (n) => n !== null && pt(n, "Object");
|
|
305
305
|
function gc(n) {
|
|
306
306
|
return pt(n, "Date");
|
|
307
307
|
}
|
|
@@ -312,7 +312,7 @@ function bc(n) {
|
|
|
312
312
|
return pt(n, "AsyncFunction");
|
|
313
313
|
}
|
|
314
314
|
function Wl(n) {
|
|
315
|
-
return pt(n, "Promise") &&
|
|
315
|
+
return pt(n, "Promise") && oo(n) && Dt(n.then) && Dt(n.catch);
|
|
316
316
|
}
|
|
317
317
|
function wc(n) {
|
|
318
318
|
return pt(n, "String");
|
|
@@ -323,11 +323,11 @@ function Yl(n) {
|
|
|
323
323
|
function Ct(n) {
|
|
324
324
|
return n && Array.isArray(n);
|
|
325
325
|
}
|
|
326
|
-
const Tc = () => typeof window < "u", Cc = (n) => typeof window < "u" && pt(n, "Window"), kc = (n) =>
|
|
326
|
+
const Tc = () => typeof window < "u", Cc = (n) => typeof window < "u" && pt(n, "Window"), kc = (n) => oo(n) && !!n.tagName, Mc = typeof window > "u";
|
|
327
327
|
function mt(n) {
|
|
328
328
|
return n === null;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Eo(n) {
|
|
331
331
|
return oa(n) && mt(n);
|
|
332
332
|
}
|
|
333
333
|
function We(n) {
|
|
@@ -360,11 +360,11 @@ function ql(n) {
|
|
|
360
360
|
ellipsis: { props: { theme: "light", showArrow: !1, placement: "bottom" } },
|
|
361
361
|
attrs: {
|
|
362
362
|
style: {
|
|
363
|
-
minWidth: `calc(${
|
|
363
|
+
minWidth: `calc(${Ao(
|
|
364
364
|
t.weight ?? 1,
|
|
365
365
|
a.length + 1
|
|
366
366
|
)} * 100vw - 32px)`,
|
|
367
|
-
width: `calc(${
|
|
367
|
+
width: `calc(${Ao(
|
|
368
368
|
t.weight ?? 1,
|
|
369
369
|
a.length + 1
|
|
370
370
|
)} * 100vw - 32px)`
|
|
@@ -394,7 +394,7 @@ function Ql(n) {
|
|
|
394
394
|
title: e.name
|
|
395
395
|
})) : [];
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ao(n, e) {
|
|
398
398
|
return n / e;
|
|
399
399
|
}
|
|
400
400
|
function Xl(n, e) {
|
|
@@ -426,7 +426,7 @@ function Zl(n) {
|
|
|
426
426
|
return n.startsWith("/files") || n.startsWith("/temp") || n.startsWith("/lang");
|
|
427
427
|
}
|
|
428
428
|
const { T: cn } = ke();
|
|
429
|
-
function
|
|
429
|
+
function Fo(n, e = "", t = "file") {
|
|
430
430
|
if (n == "") {
|
|
431
431
|
he.info(`${cn.t("未设置下载链接")}`);
|
|
432
432
|
return;
|
|
@@ -528,11 +528,11 @@ function la(n, e, t = []) {
|
|
|
528
528
|
if (!t.includes(a))
|
|
529
529
|
if (!(a in e))
|
|
530
530
|
je(o, a, n[a]);
|
|
531
|
-
else if (
|
|
531
|
+
else if (ho(n[a]) && ho(e[a])) {
|
|
532
532
|
const l = la(n[a], e[a]);
|
|
533
533
|
Object.keys(l).length > 0 && je(o, a, l);
|
|
534
534
|
} else
|
|
535
|
-
|
|
535
|
+
vo(n[a]) || vo(e[a]) ? go(n[a], e[a]) || je(o, a, n[a]) : go(n[a], e[a]) || je(o, a, n[a]);
|
|
536
536
|
for (let a in e)
|
|
537
537
|
t.includes(a) || a in n || je(o, a, e[a]);
|
|
538
538
|
return o;
|
|
@@ -588,20 +588,11 @@ class or {
|
|
|
588
588
|
const o = Ve();
|
|
589
589
|
o.checkUserToken();
|
|
590
590
|
const a = o.token ?? "", l = o.userLang ?? "zh-CN";
|
|
591
|
-
let r = "";
|
|
592
|
-
if (this.router) {
|
|
593
|
-
const u = this.router.currentRoute.value, { fullPath: i, path: d, query: s } = u, { viewName: c, ...f } = s;
|
|
594
|
-
r = this.router.resolve({
|
|
595
|
-
path: d,
|
|
596
|
-
query: {
|
|
597
|
-
...c ? { viewName: c } : {}
|
|
598
|
-
}
|
|
599
|
-
}).fullPath.replace(/\//, ""), console.log("operationUrl", r);
|
|
600
|
-
}
|
|
601
591
|
return t.headers = {
|
|
602
592
|
...t == null ? void 0 : t.headers,
|
|
603
|
-
|
|
604
|
-
|
|
593
|
+
Authorization: !0,
|
|
594
|
+
"Operation-Log-Require": !0,
|
|
595
|
+
...a !== "" ? { token: a } : {},
|
|
605
596
|
lang: l
|
|
606
597
|
}, {
|
|
607
598
|
...t
|
|
@@ -721,7 +712,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
721
712
|
// 设置面板是否显示
|
|
722
713
|
isSettingPanelShow: !1,
|
|
723
714
|
// 主题配置
|
|
724
|
-
themeConfig: et.getItem(
|
|
715
|
+
themeConfig: et.getItem(Io) || {
|
|
725
716
|
...El
|
|
726
717
|
},
|
|
727
718
|
// 侧边菜单配置
|
|
@@ -740,10 +731,10 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
740
731
|
logoUrl: ""
|
|
741
732
|
},
|
|
742
733
|
// 用户语言
|
|
743
|
-
userLang: et.getItem(
|
|
734
|
+
userLang: et.getItem(Lo) ?? "zh-CN",
|
|
744
735
|
// 用户token
|
|
745
|
-
token: Be.getItem(
|
|
746
|
-
tokenExpiredTime: Be.getItem(
|
|
736
|
+
token: Be.getItem(So) || "",
|
|
737
|
+
tokenExpiredTime: Be.getItem(Do) || 0,
|
|
747
738
|
isTokenRefreshing: !1
|
|
748
739
|
}),
|
|
749
740
|
getters: {
|
|
@@ -795,14 +786,14 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
795
786
|
async initUserLang(n) {
|
|
796
787
|
if (n)
|
|
797
788
|
try {
|
|
798
|
-
this.userLang = n, et.setItem(
|
|
789
|
+
this.userLang = n, et.setItem(Lo, n);
|
|
799
790
|
const { setupI18n: e } = ke();
|
|
800
791
|
await e(n);
|
|
801
792
|
} catch {
|
|
802
793
|
}
|
|
803
794
|
},
|
|
804
795
|
setUserToken(n, e) {
|
|
805
|
-
this.token = n, this.tokenExpiredTime = e, Be.setItem(
|
|
796
|
+
this.token = n, this.tokenExpiredTime = e, Be.setItem(So, this.token), Be.setItem(Do, this.tokenExpiredTime);
|
|
806
797
|
},
|
|
807
798
|
initUserToken(n) {
|
|
808
799
|
const e = +ct().add(24, "hours");
|
|
@@ -866,7 +857,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
866
857
|
* @description 更改主题
|
|
867
858
|
*/
|
|
868
859
|
changeTheme(n) {
|
|
869
|
-
this.changeMode(n), this.changeBrandTheme(n), et.setItem(
|
|
860
|
+
this.changeMode(n), this.changeBrandTheme(n), et.setItem(Io, n), this.themeConfig = { ...n };
|
|
870
861
|
},
|
|
871
862
|
/**
|
|
872
863
|
* @description 更改颜色模式
|
|
@@ -1069,7 +1060,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1069
1060
|
n && Ln().removeFormData(n);
|
|
1070
1061
|
}
|
|
1071
1062
|
}
|
|
1072
|
-
}),
|
|
1063
|
+
}), ao = Ut("socket", {
|
|
1073
1064
|
state: () => ({
|
|
1074
1065
|
socket: null,
|
|
1075
1066
|
socketInterval: void 0,
|
|
@@ -1117,15 +1108,15 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1117
1108
|
sendRegisterMessage(n) {
|
|
1118
1109
|
const t = Ve().userEdificeKey ?? "";
|
|
1119
1110
|
let o = Vn("register", n, t);
|
|
1120
|
-
|
|
1111
|
+
Eo(this.socket) || this.socket.send(JSON.stringify(o));
|
|
1121
1112
|
},
|
|
1122
1113
|
sendUnregisterMessage(n) {
|
|
1123
1114
|
const t = Ve().userEdificeKey ?? "";
|
|
1124
1115
|
let o = Vn("unregister", n, t);
|
|
1125
|
-
|
|
1116
|
+
Eo(this.socket) || this.socket.send(JSON.stringify(o));
|
|
1126
1117
|
}
|
|
1127
1118
|
}
|
|
1128
|
-
}),
|
|
1119
|
+
}), lo = Ut("props", {
|
|
1129
1120
|
state: () => ({
|
|
1130
1121
|
propsSource: {}
|
|
1131
1122
|
}),
|
|
@@ -1144,16 +1135,16 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1144
1135
|
__name: "GLayoutHeaderTab",
|
|
1145
1136
|
setup(n) {
|
|
1146
1137
|
const { T: e } = ke(), t = `${tt}__layoutHeaderTab`, o = ft(), a = rt(), l = Y(""), r = kt(), u = Ve(), i = V(() => r.tabMenuList), d = V(() => u.homeUrl), s = V(() => u.displayMode);
|
|
1147
|
-
function c(k, x,
|
|
1148
|
-
x.trigger === "document" && (l.value = null), k && (l.value =
|
|
1138
|
+
function c(k, x, D) {
|
|
1139
|
+
x.trigger === "document" && (l.value = null), k && (l.value = D);
|
|
1149
1140
|
}
|
|
1150
1141
|
function f(k) {
|
|
1151
1142
|
k === "/HomePage" ? o.push({ path: d.value, query: Kt(d.value) }) : o.push({ path: k, query: Kt(k) });
|
|
1152
1143
|
}
|
|
1153
1144
|
function p({ value: k, index: x }) {
|
|
1154
|
-
const { tabMenuList:
|
|
1155
|
-
if (
|
|
1156
|
-
const A =
|
|
1145
|
+
const { tabMenuList: D } = r;
|
|
1146
|
+
if (D.length > 1) {
|
|
1147
|
+
const A = D[x + 1] || D[x - 1];
|
|
1157
1148
|
r.subtractCurrentTabMenuItem({ path: k, itemIdx: x });
|
|
1158
1149
|
const T = decodeURIComponent(a.fullPath);
|
|
1159
1150
|
k === T && o.push({
|
|
@@ -1163,9 +1154,9 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1163
1154
|
}
|
|
1164
1155
|
}
|
|
1165
1156
|
function y(k, x) {
|
|
1166
|
-
const { path:
|
|
1157
|
+
const { path: D } = k;
|
|
1167
1158
|
Wa(() => {
|
|
1168
|
-
|
|
1159
|
+
D === "/HomePage" ? o.push({ path: d.value, query: Kt(d.value) }) : o.push({ path: D, query: Kt(D) });
|
|
1169
1160
|
}), u.toggleGlobalReload(), l.value = null;
|
|
1170
1161
|
}
|
|
1171
1162
|
function N(k, x) {
|
|
@@ -1177,11 +1168,11 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1177
1168
|
function E(k, x) {
|
|
1178
1169
|
i.value.length > 2 && (r.subtractTabMenuItemOther({ path: k, itemIdx: x }), L("other", x));
|
|
1179
1170
|
}
|
|
1180
|
-
function
|
|
1171
|
+
function S() {
|
|
1181
1172
|
i.value.length > 2 && (r.subtractTabMenuItemOther({ itemIdx: 0, path: "/" }), L("all", 0));
|
|
1182
1173
|
}
|
|
1183
1174
|
function L(k, x) {
|
|
1184
|
-
const
|
|
1175
|
+
const D = a.fullPath, { tabMenuList: A } = r, T = A.findIndex((g) => g.path === D);
|
|
1185
1176
|
if (k === "other" && T !== x || k === "ahead" && T < x || k === "behind" && T === -1 || k == "all") {
|
|
1186
1177
|
const g = k !== "all" ? k === "behind" ? A.length - 1 : 1 : 0, b = A[g];
|
|
1187
1178
|
o.push({
|
|
@@ -1197,7 +1188,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1197
1188
|
() => w.value > 0 ? i.value.slice(w.value) : []
|
|
1198
1189
|
), P = V(() => U.value.map((k) => k.path));
|
|
1199
1190
|
return (k, x) => {
|
|
1200
|
-
const
|
|
1191
|
+
const D = Q("t-menu-item"), A = Q("t-dropdown-item"), T = Q("t-dropdown-menu"), B = Q("t-dropdown"), g = Q("t-divider"), b = Q("t-button"), z = Q("t-submenu"), G = Q("t-head-menu");
|
|
1201
1192
|
return v(), $(G, {
|
|
1202
1193
|
ref_key: "GLayoutHeaderRef",
|
|
1203
1194
|
ref: I,
|
|
@@ -1249,7 +1240,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1249
1240
|
}, {
|
|
1250
1241
|
default: C(() => [
|
|
1251
1242
|
ne("span", null, [
|
|
1252
|
-
F(h(
|
|
1243
|
+
F(h(yo)),
|
|
1253
1244
|
re(" " + te(h(e).t("关闭左侧")), 1)
|
|
1254
1245
|
])
|
|
1255
1246
|
]),
|
|
@@ -1261,7 +1252,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1261
1252
|
}, {
|
|
1262
1253
|
default: C(() => [
|
|
1263
1254
|
ne("span", null, [
|
|
1264
|
-
F(h(
|
|
1255
|
+
F(h(bo)),
|
|
1265
1256
|
re(" " + te(h(e).t("关闭右侧")), 1)
|
|
1266
1257
|
])
|
|
1267
1258
|
]),
|
|
@@ -1273,7 +1264,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1273
1264
|
}, {
|
|
1274
1265
|
default: C(() => [
|
|
1275
1266
|
ne("span", null, [
|
|
1276
|
-
F(h(
|
|
1267
|
+
F(h(wo)),
|
|
1277
1268
|
re(" " + te(h(e).t("关闭其他")), 1)
|
|
1278
1269
|
])
|
|
1279
1270
|
]),
|
|
@@ -1284,7 +1275,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1284
1275
|
}, 1024)
|
|
1285
1276
|
]),
|
|
1286
1277
|
default: C(() => [
|
|
1287
|
-
F(
|
|
1278
|
+
F(D, {
|
|
1288
1279
|
value: H.path
|
|
1289
1280
|
}, {
|
|
1290
1281
|
default: C(() => [
|
|
@@ -1382,7 +1373,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1382
1373
|
ne("span", {
|
|
1383
1374
|
title: h(e).t("关闭左侧")
|
|
1384
1375
|
}, [
|
|
1385
|
-
F(h(
|
|
1376
|
+
F(h(yo)),
|
|
1386
1377
|
re(" " + te(h(e).t("关闭左侧")), 1)
|
|
1387
1378
|
], 8, mr)
|
|
1388
1379
|
]),
|
|
@@ -1399,7 +1390,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1399
1390
|
ne("span", {
|
|
1400
1391
|
title: h(e).t("关闭右侧")
|
|
1401
1392
|
}, [
|
|
1402
|
-
F(h(
|
|
1393
|
+
F(h(bo)),
|
|
1403
1394
|
re(" " + te(h(e).t("关闭右侧")), 1)
|
|
1404
1395
|
], 8, fr)
|
|
1405
1396
|
]),
|
|
@@ -1416,7 +1407,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1416
1407
|
ne("span", {
|
|
1417
1408
|
title: h(e).t("关闭其他")
|
|
1418
1409
|
}, [
|
|
1419
|
-
F(h(
|
|
1410
|
+
F(h(wo)),
|
|
1420
1411
|
re(" " + te(h(e).t("关闭其他")), 1)
|
|
1421
1412
|
], 8, pr)
|
|
1422
1413
|
]),
|
|
@@ -1427,7 +1418,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1427
1418
|
}, 1024)
|
|
1428
1419
|
]),
|
|
1429
1420
|
default: C(() => [
|
|
1430
|
-
F(
|
|
1421
|
+
F(D, {
|
|
1431
1422
|
value: H.path
|
|
1432
1423
|
}, {
|
|
1433
1424
|
default: C(() => [
|
|
@@ -1461,7 +1452,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1461
1452
|
variant: "text",
|
|
1462
1453
|
theme: "danger",
|
|
1463
1454
|
block: "",
|
|
1464
|
-
onClick: x[0] || (x[0] = (H) =>
|
|
1455
|
+
onClick: x[0] || (x[0] = (H) => S())
|
|
1465
1456
|
}, {
|
|
1466
1457
|
default: C(() => [
|
|
1467
1458
|
ne("span", {
|
|
@@ -1547,7 +1538,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1547
1538
|
a.toggleSettingPanel();
|
|
1548
1539
|
}
|
|
1549
1540
|
const E = kt();
|
|
1550
|
-
function
|
|
1541
|
+
function S() {
|
|
1551
1542
|
o.push({ name: "login" }), a.userLogout(), E.clearTabMenu();
|
|
1552
1543
|
}
|
|
1553
1544
|
const L = V(() => a.sideHoverMenuTimer);
|
|
@@ -1560,7 +1551,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1560
1551
|
}, 500);
|
|
1561
1552
|
}
|
|
1562
1553
|
return (m, w) => {
|
|
1563
|
-
const M = Q("t-button"), U = Q("t-icon"), P = Q("t-badge"), k = Q("t-popup"), x = Q("t-dropdown-item"),
|
|
1554
|
+
const M = Q("t-button"), U = Q("t-icon"), P = Q("t-badge"), k = Q("t-popup"), x = Q("t-dropdown-item"), D = Q("t-dropdown-menu"), A = Q("t-dropdown"), T = Q("t-head-menu"), B = Q("t-header");
|
|
1564
1555
|
return v(), $(B, {
|
|
1565
1556
|
class: Z(t),
|
|
1566
1557
|
onMouseleave: I
|
|
@@ -1706,10 +1697,10 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1706
1697
|
class: Z(`${t}--operations-userInfo`)
|
|
1707
1698
|
}, {
|
|
1708
1699
|
dropdown: C(() => [
|
|
1709
|
-
F(
|
|
1700
|
+
F(D, null, {
|
|
1710
1701
|
default: C(() => [
|
|
1711
1702
|
F(x, {
|
|
1712
|
-
onClick:
|
|
1703
|
+
onClick: S,
|
|
1713
1704
|
title: h(e).t("退出登录")
|
|
1714
1705
|
}, {
|
|
1715
1706
|
default: C(() => [
|
|
@@ -1850,7 +1841,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1850
1841
|
}, {
|
|
1851
1842
|
icon: C(() => [
|
|
1852
1843
|
s.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
1853
|
-
s.icon ? (v(), $(h(
|
|
1844
|
+
s.icon ? (v(), $(h(To), {
|
|
1854
1845
|
key: 0,
|
|
1855
1846
|
name: s.icon,
|
|
1856
1847
|
size: "large"
|
|
@@ -1872,7 +1863,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1872
1863
|
}, {
|
|
1873
1864
|
icon: C(() => [
|
|
1874
1865
|
s.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
1875
|
-
s.icon ? (v(), $(h(
|
|
1866
|
+
s.icon ? (v(), $(h(To), {
|
|
1876
1867
|
key: 0,
|
|
1877
1868
|
name: s.icon,
|
|
1878
1869
|
size: "large"
|
|
@@ -2105,18 +2096,18 @@ const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2105
2096
|
u.isSideHoverMenuShow = !1;
|
|
2106
2097
|
}, p = Y(!1), y = Y([]), N = Y("");
|
|
2107
2098
|
function j(g) {
|
|
2108
|
-
y.value = [],
|
|
2099
|
+
y.value = [], S.value = [], p.value = !1, E.value = !1, N.value = "", setTimeout(() => {
|
|
2109
2100
|
g && g.children && (p.value = !0, y.value = [...g.children], N.value = g.name, L.value = "");
|
|
2110
2101
|
}, 100);
|
|
2111
2102
|
}
|
|
2112
|
-
const E = Y(!1),
|
|
2103
|
+
const E = Y(!1), S = Y([]), L = Y("");
|
|
2113
2104
|
function _(g) {
|
|
2114
2105
|
E.value = !1, L.value = "", setTimeout(() => {
|
|
2115
|
-
g && g.children && (E.value = !0,
|
|
2106
|
+
g && g.children && (E.value = !0, S.value = [...g.children], L.value = g.name);
|
|
2116
2107
|
}, 100);
|
|
2117
2108
|
}
|
|
2118
2109
|
function I() {
|
|
2119
|
-
|
|
2110
|
+
S.value = [], E.value = !1, L.value = "";
|
|
2120
2111
|
}
|
|
2121
2112
|
De(
|
|
2122
2113
|
() => s.value,
|
|
@@ -2125,7 +2116,7 @@ const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2125
2116
|
}
|
|
2126
2117
|
);
|
|
2127
2118
|
const m = Y(null), w = Y(null), M = Y(null);
|
|
2128
|
-
|
|
2119
|
+
ko(
|
|
2129
2120
|
w,
|
|
2130
2121
|
() => {
|
|
2131
2122
|
p.value = !1;
|
|
@@ -2134,7 +2125,7 @@ const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2134
2125
|
ignore: [m, M, w],
|
|
2135
2126
|
capture: !1
|
|
2136
2127
|
}
|
|
2137
|
-
),
|
|
2128
|
+
), ko(
|
|
2138
2129
|
M,
|
|
2139
2130
|
() => {
|
|
2140
2131
|
E.value = !1;
|
|
@@ -2161,17 +2152,17 @@ const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2161
2152
|
}), x = V(() => {
|
|
2162
2153
|
var g;
|
|
2163
2154
|
return (g = U.value.find((b) => b.url === c.value)) == null ? void 0 : g.parent;
|
|
2164
|
-
}),
|
|
2155
|
+
}), D = V(() => u.sideHoverMenuTimer);
|
|
2165
2156
|
function A(g) {
|
|
2166
2157
|
u.sideHoverMenuTimer = setTimeout(() => {
|
|
2167
|
-
u.isSideHoverMenuShow && (u.isSideHoverMenuShow = !1), clearTimeout(
|
|
2158
|
+
u.isSideHoverMenuShow && (u.isSideHoverMenuShow = !1), clearTimeout(D.value);
|
|
2168
2159
|
}, 500);
|
|
2169
2160
|
}
|
|
2170
2161
|
function T() {
|
|
2171
|
-
clearTimeout(
|
|
2162
|
+
clearTimeout(D.value), u.isSideHoverMenuShow = !0;
|
|
2172
2163
|
}
|
|
2173
2164
|
const B = Y(null);
|
|
2174
|
-
return
|
|
2165
|
+
return Mo(B, "mouseleave", A), Mo(B, "mouseenter", T), (g, b) => {
|
|
2175
2166
|
const z = Q("t-icon"), G = Q("t-menu-item"), H = Q("t-submenu"), ae = Q("t-menu"), me = Q("t-drawer");
|
|
2176
2167
|
return v(), W("div", {
|
|
2177
2168
|
ref_key: "menuRef",
|
|
@@ -2379,7 +2370,7 @@ const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2379
2370
|
expandType: "popup"
|
|
2380
2371
|
}, {
|
|
2381
2372
|
default: C(() => [
|
|
2382
|
-
(v(!0), W(de, null, Se(
|
|
2373
|
+
(v(!0), W(de, null, Se(S.value, (J) => (v(), W("div", {
|
|
2383
2374
|
key: J.name
|
|
2384
2375
|
}, [
|
|
2385
2376
|
!J.children || !J.children.length ? (v(), $(G, {
|
|
@@ -2549,7 +2540,7 @@ const ma = Ye(da), Rr = /* @__PURE__ */ ue({
|
|
|
2549
2540
|
};
|
|
2550
2541
|
}
|
|
2551
2542
|
});
|
|
2552
|
-
const
|
|
2543
|
+
const ro = Ye(Rr), jr = /* @__PURE__ */ ue({
|
|
2553
2544
|
__name: "GCommonHeader",
|
|
2554
2545
|
setup(n) {
|
|
2555
2546
|
return (e, t) => {
|
|
@@ -2657,7 +2648,7 @@ const fa = Ye(Gr), On = () => {
|
|
|
2657
2648
|
getFileUrl: "/api/base/upload/files/url"
|
|
2658
2649
|
};
|
|
2659
2650
|
function Hr(n) {
|
|
2660
|
-
return Ze.post(`${Tn.uploadReady}`,
|
|
2651
|
+
return Ze.post(`${Tn.uploadReady}`, no.stringify(n));
|
|
2661
2652
|
}
|
|
2662
2653
|
function Kr(n) {
|
|
2663
2654
|
const e = Be.getItem(Xt);
|
|
@@ -2679,7 +2670,7 @@ const Gt = (n) => {
|
|
|
2679
2670
|
return e;
|
|
2680
2671
|
}
|
|
2681
2672
|
return e;
|
|
2682
|
-
},
|
|
2673
|
+
}, $o = (n, e) => Dt(n) ? n(e) : n, Wr = ({
|
|
2683
2674
|
fileItem: n,
|
|
2684
2675
|
name: e,
|
|
2685
2676
|
data: t,
|
|
@@ -2695,8 +2686,8 @@ const Gt = (n) => {
|
|
|
2695
2686
|
onError: f = On
|
|
2696
2687
|
}) => {
|
|
2697
2688
|
var _;
|
|
2698
|
-
const p =
|
|
2699
|
-
function
|
|
2689
|
+
const p = $o(e, n) || "file", y = $o(t, n), N = Be.getItem(Xt), j = r ? `${Tn.pieceUploadFiles}?sessionId=${N}` : `${Tn.baseUploadFile}?sessionId=${N}`, E = [];
|
|
2690
|
+
function S(I, m) {
|
|
2700
2691
|
let w = 0;
|
|
2701
2692
|
E.forEach((M) => {
|
|
2702
2693
|
w += M;
|
|
@@ -2712,7 +2703,7 @@ const Gt = (n) => {
|
|
|
2712
2703
|
const T = M++, B = new XMLHttpRequest();
|
|
2713
2704
|
a && (B.withCredentials = !0), B.upload.onprogress = (g) => {
|
|
2714
2705
|
const b = g.total > 0 ? gn.round(g.loaded / g.total, 2) : 0;
|
|
2715
|
-
E[T] = g.loaded,
|
|
2706
|
+
E[T] = g.loaded, S(b, g);
|
|
2716
2707
|
}, B.onerror = function(b) {
|
|
2717
2708
|
U = !0, f(b);
|
|
2718
2709
|
}, B.onload = () => {
|
|
@@ -2733,10 +2724,10 @@ const Gt = (n) => {
|
|
|
2733
2724
|
const T = P.map((B) => Gt(B));
|
|
2734
2725
|
c(T);
|
|
2735
2726
|
}
|
|
2736
|
-
},
|
|
2737
|
-
m <= 0 || U || (x(), setTimeout(
|
|
2727
|
+
}, D = () => {
|
|
2728
|
+
m <= 0 || U || (x(), setTimeout(D, Math.random() * 1e3), m--);
|
|
2738
2729
|
};
|
|
2739
|
-
return
|
|
2730
|
+
return D(), P;
|
|
2740
2731
|
}
|
|
2741
2732
|
if (r && u) {
|
|
2742
2733
|
let I = [];
|
|
@@ -2809,7 +2800,7 @@ const Gt = (n) => {
|
|
|
2809
2800
|
});
|
|
2810
2801
|
}
|
|
2811
2802
|
return !!n;
|
|
2812
|
-
},
|
|
2803
|
+
}, Bo = (n, e) => {
|
|
2813
2804
|
if (!n)
|
|
2814
2805
|
return [];
|
|
2815
2806
|
const t = Array.from(n);
|
|
@@ -2890,7 +2881,7 @@ const Gt = (n) => {
|
|
|
2890
2881
|
[`${t.value}-hide`]: a.hide
|
|
2891
2882
|
}
|
|
2892
2883
|
]), a = n;
|
|
2893
|
-
|
|
2884
|
+
Ko(), Y(!1);
|
|
2894
2885
|
const l = Y(null), r = Y(null);
|
|
2895
2886
|
Y(0);
|
|
2896
2887
|
const u = (c) => {
|
|
@@ -2899,7 +2890,7 @@ const Gt = (n) => {
|
|
|
2899
2890
|
const f = a.onButtonClick(c);
|
|
2900
2891
|
if (Wl(f)) {
|
|
2901
2892
|
f.then((p) => {
|
|
2902
|
-
a.uploadFiles(
|
|
2893
|
+
a.uploadFiles(Bo(p));
|
|
2903
2894
|
});
|
|
2904
2895
|
return;
|
|
2905
2896
|
}
|
|
@@ -2908,7 +2899,7 @@ const Gt = (n) => {
|
|
|
2908
2899
|
}
|
|
2909
2900
|
}, i = (c) => {
|
|
2910
2901
|
const f = c.target;
|
|
2911
|
-
f.files && a.uploadFiles(
|
|
2902
|
+
f.files && a.uploadFiles(Bo(f.files)), f.value = "";
|
|
2912
2903
|
}, d = V(() => a.fileList && Array.isArray(a.fileList) && a.fileList.some((c) => c.status === "uploading") ? "uploading" : "normal"), s = V(() => {
|
|
2913
2904
|
if (a.fileList && Array.isArray(a.fileList) && a.fileList.length > 0) {
|
|
2914
2905
|
const f = a.fileList.reduce((p, y) => p + (y.percent || 0), 0) / a.fileList.length * 100;
|
|
@@ -2939,10 +2930,10 @@ const Gt = (n) => {
|
|
|
2939
2930
|
var p;
|
|
2940
2931
|
return [
|
|
2941
2932
|
(p = h(e)) != null && p.showButtonProgress ? (v(), W(de, { key: 0 }, [
|
|
2942
|
-
d.value == "normal" ? (v(), $(h(
|
|
2933
|
+
d.value == "normal" ? (v(), $(h(Co), {
|
|
2943
2934
|
key: 0,
|
|
2944
2935
|
size: "14"
|
|
2945
|
-
})) : (v(), $(h(
|
|
2936
|
+
})) : (v(), $(h(Qo), {
|
|
2946
2937
|
key: 1,
|
|
2947
2938
|
percentage: s.value,
|
|
2948
2939
|
label: !1,
|
|
@@ -2951,7 +2942,7 @@ const Gt = (n) => {
|
|
|
2951
2942
|
theme: "circle",
|
|
2952
2943
|
style: { marginRight: "5px" }
|
|
2953
2944
|
}, null, 8, ["percentage"]))
|
|
2954
|
-
], 64)) : (v(), $(h(
|
|
2945
|
+
], 64)) : (v(), $(h(Co), {
|
|
2955
2946
|
key: 1,
|
|
2956
2947
|
size: "14"
|
|
2957
2948
|
}))
|
|
@@ -2984,7 +2975,7 @@ const Gt = (n) => {
|
|
|
2984
2975
|
class: Z(o)
|
|
2985
2976
|
}, [
|
|
2986
2977
|
["uploading"].includes(n.file.status ?? "") ? (v(), W(de, { key: 0 }, [
|
|
2987
|
-
F(h(
|
|
2978
|
+
F(h(Qo), {
|
|
2988
2979
|
percentage: l(((i = n.file) == null ? void 0 : i.percent) ?? 100),
|
|
2989
2980
|
label: !1,
|
|
2990
2981
|
size: 12,
|
|
@@ -3178,7 +3169,7 @@ const va = /* @__PURE__ */ ht(Zr, [["__scopeId", "data-v-8a486150"]]), Jr = /* @
|
|
|
3178
3169
|
const s = ((d = l.file.filename) == null ? void 0 : d.split(".")[1]) ?? "";
|
|
3179
3170
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(s) ? i = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(s) ? i = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(s) && (i = "audio");
|
|
3180
3171
|
}
|
|
3181
|
-
return i.includes("image") ? Qt : i.includes("pdf") ?
|
|
3172
|
+
return i.includes("image") ? Qt : i.includes("pdf") ? Xo : i.includes("video") ? Kn : Wn;
|
|
3182
3173
|
}), u = V(() => l.file.filename ? l.file.filename.length > 25 ? l.file.filename.substring(0, 20) + "..." + l.file.filename.substring(l.file.filename.length - 5) : l.file.filename : "");
|
|
3183
3174
|
return (i, d) => {
|
|
3184
3175
|
var s;
|
|
@@ -3286,7 +3277,7 @@ const va = /* @__PURE__ */ ht(Zr, [["__scopeId", "data-v-8a486150"]]), Jr = /* @
|
|
|
3286
3277
|
const p = ((c = d.data.filename) == null ? void 0 : c.split(".")[1]) ?? "";
|
|
3287
3278
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(p) ? f = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(p) ? f = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(p) && (f = "audio");
|
|
3288
3279
|
}
|
|
3289
|
-
f.includes("image") && (s = Qt), f.includes("pdf") && (s =
|
|
3280
|
+
f.includes("image") && (s = Qt), f.includes("pdf") && (s = Xo), f.includes("audio") && (s = Kn), f.includes("video") && (s = Kn), s = Wn;
|
|
3290
3281
|
} else
|
|
3291
3282
|
s = Wn;
|
|
3292
3283
|
return s && i(s, {});
|
|
@@ -3612,7 +3603,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3612
3603
|
error: (n) => !0
|
|
3613
3604
|
},
|
|
3614
3605
|
setup(n, { emit: e }) {
|
|
3615
|
-
const { T: t } = ke(), o = n, a = e, l =
|
|
3606
|
+
const { T: t } = ke(), o = n, a = e, l = Ko(), {
|
|
3616
3607
|
fileList: r,
|
|
3617
3608
|
disabled: u,
|
|
3618
3609
|
listType: i,
|
|
@@ -3624,7 +3615,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3624
3615
|
download: y,
|
|
3625
3616
|
showLink: N,
|
|
3626
3617
|
showButtonProgress: j
|
|
3627
|
-
} = Za(o), E = /* @__PURE__ */ new Map(),
|
|
3618
|
+
} = Za(o), E = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), L = Y([]), _ = V(() => o.directory ? L.value.length ? ha(L.value) : { fileId: "" } : { fileId: "" }), I = V(() => o.limit > 0 && L.value.length >= o.limit), m = V(() => o.buttonText ? o.buttonText : o.directory ? I.value ? `${t.t("重新选择")}` : `${t.t("上传文件夹")}` : I.value ? `${t.t("重新选择")}` : `${t.t("上传文件")}`), w = (g) => {
|
|
3628
3619
|
E.clear();
|
|
3629
3620
|
const b = g == null ? void 0 : g.map((z, G) => {
|
|
3630
3621
|
const H = z.status ? z.status : z.url ? "done" : "error", ae = $n({
|
|
@@ -3667,17 +3658,17 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3667
3658
|
Kr({
|
|
3668
3659
|
key: G
|
|
3669
3660
|
}).then((Ie) => {
|
|
3670
|
-
Ie.state == 200 ? (
|
|
3661
|
+
Ie.state == 200 ? (S.delete(ge.fileId), ge.status = "done", ge.percent = 1, ge.response = Ie, ge.url = Ie.data.url, a("success", ge), M(ge)) : me(_e);
|
|
3671
3662
|
}).catch(() => {
|
|
3672
3663
|
me(_e);
|
|
3673
3664
|
})
|
|
3674
3665
|
) : me(_e);
|
|
3675
3666
|
} : (_e) => {
|
|
3676
3667
|
const ge = E.get(g.fileId);
|
|
3677
|
-
ge && (_e.state == 200 ? (ge.status = "done", ge.percent = 1, ge.response = _e,
|
|
3668
|
+
ge && (_e.state == 200 ? (ge.status = "done", ge.percent = 1, ge.response = _e, S.delete(ge.fileId), ge.url = _e.data.url, M(ge), a("success", ge)) : me(_e));
|
|
3678
3669
|
}, me = (_e) => {
|
|
3679
3670
|
const ge = E.get(g.fileId);
|
|
3680
|
-
console.warn("上传报错", _e, ge), ge && (ge.status = "error", ge.percent = 0, ge.response = _e,
|
|
3671
|
+
console.warn("上传报错", _e, ge), ge && (ge.status = "error", ge.percent = 0, ge.response = _e, S.delete(ge.fileId), a("error", ge), M(ge));
|
|
3681
3672
|
}, J = {
|
|
3682
3673
|
fileItem: g,
|
|
3683
3674
|
action: o.action,
|
|
@@ -3696,10 +3687,10 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3696
3687
|
};
|
|
3697
3688
|
g.status = "uploading", g.percent = 0;
|
|
3698
3689
|
const Me = Dt(o.customRequest) ? o.customRequest(J) : Wr(J);
|
|
3699
|
-
|
|
3690
|
+
S.set(g.fileId, Me);
|
|
3700
3691
|
}, k = (g) => {
|
|
3701
3692
|
var z;
|
|
3702
|
-
const b =
|
|
3693
|
+
const b = S.get(g.fileId);
|
|
3703
3694
|
if (b)
|
|
3704
3695
|
if (Ct(b)) {
|
|
3705
3696
|
b.forEach((H) => {
|
|
@@ -3709,7 +3700,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3709
3700
|
const G = E.get(g.fileId);
|
|
3710
3701
|
G && (G.status = "error", G.percent = 0, M(G));
|
|
3711
3702
|
} else {
|
|
3712
|
-
(z = b == null ? void 0 : b.abort) == null || z.call(b),
|
|
3703
|
+
(z = b == null ? void 0 : b.abort) == null || z.call(b), S.delete(g.fileId);
|
|
3713
3704
|
const G = E.get(g.fileId);
|
|
3714
3705
|
G && (G.status = "error", G.percent = 0, M(G));
|
|
3715
3706
|
}
|
|
@@ -3725,7 +3716,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3725
3716
|
fileUploadType: "file"
|
|
3726
3717
|
});
|
|
3727
3718
|
E.set(z, H), L.value = [...L.value, H], M(H), o.autoUpload && P(H);
|
|
3728
|
-
},
|
|
3719
|
+
}, D = (g) => {
|
|
3729
3720
|
if (o.limit > 0 && L.value.length + g.length > o.limit) {
|
|
3730
3721
|
if (L.value.length > g.length)
|
|
3731
3722
|
return;
|
|
@@ -3784,10 +3775,10 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3784
3775
|
disabled: h(u),
|
|
3785
3776
|
listType: h(i),
|
|
3786
3777
|
uploaderText: m.value,
|
|
3787
|
-
uploadFiles:
|
|
3778
|
+
uploadFiles: D,
|
|
3788
3779
|
multiple: n.multiple,
|
|
3789
3780
|
directory: n.directory,
|
|
3790
|
-
hide: !n.showUploadButton || I.value && !(h(
|
|
3781
|
+
hide: !n.showUploadButton || I.value && !(h(oo)(n.showUploadButton) && n.showUploadButton.showOnExceedLimit),
|
|
3791
3782
|
accept: B.value,
|
|
3792
3783
|
onButtonClick: n.onButtonClick,
|
|
3793
3784
|
buttonProps: n.buttonProps,
|
|
@@ -3847,7 +3838,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3847
3838
|
}, 1e3);
|
|
3848
3839
|
}
|
|
3849
3840
|
return (p, y) => {
|
|
3850
|
-
const N = Q("t-button"), j = Q("t-checkbox"), E = Q("t-checkbox-group"),
|
|
3841
|
+
const N = Q("t-button"), j = Q("t-checkbox"), E = Q("t-checkbox-group"), S = Q("t-space"), L = Q("t-popup");
|
|
3851
3842
|
return v(), $(L, {
|
|
3852
3843
|
trigger: "click",
|
|
3853
3844
|
placement: "bottom-right",
|
|
@@ -3857,7 +3848,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3857
3848
|
}, {
|
|
3858
3849
|
content: C(() => [
|
|
3859
3850
|
ne("div", os, [
|
|
3860
|
-
F(
|
|
3851
|
+
F(S, {
|
|
3861
3852
|
size: "8px",
|
|
3862
3853
|
direction: "vertical",
|
|
3863
3854
|
class: "checkbox"
|
|
@@ -4466,13 +4457,13 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4466
4457
|
});
|
|
4467
4458
|
const y = ze(Sn);
|
|
4468
4459
|
return (N, j) => {
|
|
4469
|
-
const E = Q("t-select"),
|
|
4460
|
+
const E = Q("t-select"), S = Q("t-tooltip");
|
|
4470
4461
|
return v(), W("div", {
|
|
4471
4462
|
ref_key: "formSelectRef",
|
|
4472
4463
|
ref: f,
|
|
4473
4464
|
style: { width: "100%" }
|
|
4474
4465
|
}, [
|
|
4475
|
-
F(
|
|
4466
|
+
F(S, {
|
|
4476
4467
|
trigger: "hover",
|
|
4477
4468
|
theme: "light",
|
|
4478
4469
|
disabled: !p.value,
|
|
@@ -4563,7 +4554,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4563
4554
|
placement: "bottom"
|
|
4564
4555
|
}, {
|
|
4565
4556
|
default: C(() => {
|
|
4566
|
-
var N, j, E,
|
|
4557
|
+
var N, j, E, S, L;
|
|
4567
4558
|
return [
|
|
4568
4559
|
((N = s.formItem) == null ? void 0 : N.itemType) === "date_selector" || ((j = s.formItem) == null ? void 0 : j.itemType) === "date_time_selector" ? (v(), $(f, {
|
|
4569
4560
|
key: 0,
|
|
@@ -4578,7 +4569,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4578
4569
|
onBlur: u,
|
|
4579
4570
|
clearable: ""
|
|
4580
4571
|
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : X("", !0),
|
|
4581
|
-
((
|
|
4572
|
+
((S = s.formItem) == null ? void 0 : S.itemType) === "time_selector" ? (v(), $(p, {
|
|
4582
4573
|
key: 1,
|
|
4583
4574
|
placeholder: s.placeholder,
|
|
4584
4575
|
disabled: s.disabled,
|
|
@@ -4672,7 +4663,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4672
4663
|
default: C(() => [
|
|
4673
4664
|
F(j, {
|
|
4674
4665
|
modelValue: p.value,
|
|
4675
|
-
"onUpdate:modelValue": N[0] || (N[0] = (
|
|
4666
|
+
"onUpdate:modelValue": N[0] || (N[0] = (S) => p.value = S),
|
|
4676
4667
|
data: h(u),
|
|
4677
4668
|
placeholder: y.placeholder,
|
|
4678
4669
|
multiple: y.multiple,
|
|
@@ -4764,7 +4755,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4764
4755
|
default: C(() => [
|
|
4765
4756
|
F(j, {
|
|
4766
4757
|
modelValue: p.value,
|
|
4767
|
-
"onUpdate:modelValue": N[0] || (N[0] = (
|
|
4758
|
+
"onUpdate:modelValue": N[0] || (N[0] = (S) => p.value = S),
|
|
4768
4759
|
options: h(u),
|
|
4769
4760
|
multiple: y.multiple,
|
|
4770
4761
|
disabled: y.disabled,
|
|
@@ -4887,10 +4878,10 @@ var Sa = { exports: {} };
|
|
|
4887
4878
|
return m < 0;
|
|
4888
4879
|
}, E = function(m) {
|
|
4889
4880
|
return j(m) ? Math.ceil(m) : Math.floor(m);
|
|
4890
|
-
},
|
|
4881
|
+
}, S = function(m) {
|
|
4891
4882
|
return Math.abs(m);
|
|
4892
4883
|
}, L = function(m, w) {
|
|
4893
|
-
return m ? j(m) ? { negative: !0, format: "" +
|
|
4884
|
+
return m ? j(m) ? { negative: !0, format: "" + S(m) + w } : { negative: !1, format: "" + m + w } : { negative: !1, format: "" };
|
|
4894
4885
|
}, _ = function() {
|
|
4895
4886
|
function m(M, U, P) {
|
|
4896
4887
|
var k = this;
|
|
@@ -4905,10 +4896,10 @@ var Sa = { exports: {} };
|
|
|
4905
4896
|
if (typeof M == "string") {
|
|
4906
4897
|
var x = M.match(c);
|
|
4907
4898
|
if (x) {
|
|
4908
|
-
var
|
|
4899
|
+
var D = x.slice(2).map(function(A) {
|
|
4909
4900
|
return A != null ? Number(A) : 0;
|
|
4910
4901
|
});
|
|
4911
|
-
return this.$d.years =
|
|
4902
|
+
return this.$d.years = D[0], this.$d.months = D[1], this.$d.weeks = D[2], this.$d.days = D[3], this.$d.hours = D[4], this.$d.minutes = D[5], this.$d.seconds = D[6], this.calMilliseconds(), this;
|
|
4912
4903
|
}
|
|
4913
4904
|
}
|
|
4914
4905
|
return this;
|
|
@@ -4925,9 +4916,9 @@ var Sa = { exports: {} };
|
|
|
4925
4916
|
}, w.toISOString = function() {
|
|
4926
4917
|
var M = L(this.$d.years, "Y"), U = L(this.$d.months, "M"), P = +this.$d.days || 0;
|
|
4927
4918
|
this.$d.weeks && (P += 7 * this.$d.weeks);
|
|
4928
|
-
var k = L(P, "D"), x = L(this.$d.hours, "H"),
|
|
4919
|
+
var k = L(P, "D"), x = L(this.$d.hours, "H"), D = L(this.$d.minutes, "M"), A = this.$d.seconds || 0;
|
|
4929
4920
|
this.$d.milliseconds && (A += this.$d.milliseconds / 1e3, A = Math.round(1e3 * A) / 1e3);
|
|
4930
|
-
var T = L(A, "S"), B = M.negative || U.negative || k.negative || x.negative ||
|
|
4921
|
+
var T = L(A, "S"), B = M.negative || U.negative || k.negative || x.negative || D.negative || T.negative, g = x.format || D.format || T.format ? "T" : "", b = (B ? "-" : "") + "P" + M.format + U.format + k.format + g + x.format + D.format + T.format;
|
|
4931
4922
|
return b === "P" || b === "-P" ? "P0D" : b;
|
|
4932
4923
|
}, w.toJSON = function() {
|
|
4933
4924
|
return this.toISOString();
|
|
@@ -4993,8 +4984,8 @@ var Sa = { exports: {} };
|
|
|
4993
4984
|
};
|
|
4994
4985
|
return function(m, w, M) {
|
|
4995
4986
|
t = M, o = M().$utils(), M.duration = function(k, x) {
|
|
4996
|
-
var
|
|
4997
|
-
return y(k, { $l:
|
|
4987
|
+
var D = M.locale();
|
|
4988
|
+
return y(k, { $l: D }, x);
|
|
4998
4989
|
}, M.isDuration = p;
|
|
4999
4990
|
var U = w.prototype.add, P = w.prototype.subtract;
|
|
5000
4991
|
w.prototype.add = function(k, x) {
|
|
@@ -5107,8 +5098,8 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5107
5098
|
setup(n, { emit: e }) {
|
|
5108
5099
|
const t = `${Ol}__editor`, o = n;
|
|
5109
5100
|
V(() => {
|
|
5110
|
-
var
|
|
5111
|
-
return (
|
|
5101
|
+
var S;
|
|
5102
|
+
return (S = o.formItem) == null ? void 0 : S.itemType;
|
|
5112
5103
|
});
|
|
5113
5104
|
const a = Y(o.modelValue);
|
|
5114
5105
|
De(
|
|
@@ -5130,24 +5121,24 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5130
5121
|
placeholder: o.placeholder
|
|
5131
5122
|
};
|
|
5132
5123
|
Tt(() => {
|
|
5133
|
-
const
|
|
5134
|
-
|
|
5124
|
+
const S = r.value;
|
|
5125
|
+
S != null && S.destroy();
|
|
5135
5126
|
});
|
|
5136
|
-
const d = e, s = (
|
|
5137
|
-
r.value =
|
|
5138
|
-
}, c = (
|
|
5139
|
-
d("update:modelValue",
|
|
5140
|
-
}, f = (
|
|
5141
|
-
}, p = Y(!1), y = (
|
|
5127
|
+
const d = e, s = (S) => {
|
|
5128
|
+
r.value = S;
|
|
5129
|
+
}, c = (S) => {
|
|
5130
|
+
d("update:modelValue", S.getHtml());
|
|
5131
|
+
}, f = (S) => {
|
|
5132
|
+
}, p = Y(!1), y = (S) => {
|
|
5142
5133
|
p.value = !0;
|
|
5143
|
-
}, N = (
|
|
5144
|
-
p.value = !1, o.originValue !=
|
|
5134
|
+
}, N = (S) => {
|
|
5135
|
+
p.value = !1, o.originValue != S.getHtml() && d("blur:modelValue", S.getHtml());
|
|
5145
5136
|
}, j = () => {
|
|
5146
|
-
const
|
|
5147
|
-
|
|
5137
|
+
const S = r.value;
|
|
5138
|
+
S != null && S.disable();
|
|
5148
5139
|
}, E = () => {
|
|
5149
|
-
const
|
|
5150
|
-
|
|
5140
|
+
const S = r.value;
|
|
5141
|
+
S != null && S.enable();
|
|
5151
5142
|
};
|
|
5152
5143
|
return De(
|
|
5153
5144
|
() => o.disabled,
|
|
@@ -5156,7 +5147,7 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5156
5147
|
}
|
|
5157
5148
|
), Tt(() => {
|
|
5158
5149
|
d("update:modelValue", "");
|
|
5159
|
-
}), (
|
|
5150
|
+
}), (S, L) => (v(), W("div", {
|
|
5160
5151
|
class: Z([`${t}`, `${p.value ? `${t}--focused` : ""}`])
|
|
5161
5152
|
}, [
|
|
5162
5153
|
F(h(Sl), {
|
|
@@ -5251,11 +5242,11 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5251
5242
|
direction: "vertical"
|
|
5252
5243
|
}, {
|
|
5253
5244
|
default: C(() => [
|
|
5254
|
-
(v(!0), W(de, null, Se(l.value, (
|
|
5245
|
+
(v(!0), W(de, null, Se(l.value, (S, L) => (v(), $(j, { key: L }, {
|
|
5255
5246
|
default: C(() => [
|
|
5256
5247
|
F(N, {
|
|
5257
5248
|
style: { width: "200px" },
|
|
5258
|
-
value:
|
|
5249
|
+
value: S,
|
|
5259
5250
|
placeholder: f.placeholder,
|
|
5260
5251
|
onChange: (_) => d(_, L),
|
|
5261
5252
|
onBlur: c,
|
|
@@ -5294,7 +5285,7 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5294
5285
|
};
|
|
5295
5286
|
}
|
|
5296
5287
|
});
|
|
5297
|
-
function
|
|
5288
|
+
function so(n = {}) {
|
|
5298
5289
|
function e(o, a = {}) {
|
|
5299
5290
|
if (!We(o) && o !== 1) {
|
|
5300
5291
|
let l, r;
|
|
@@ -5334,7 +5325,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5334
5325
|
},
|
|
5335
5326
|
emits: ["after-update-value"],
|
|
5336
5327
|
setup(n, { expose: e, emit: t }) {
|
|
5337
|
-
const { T: o, localLanguage: a } = ke(), l = n, r = V(() => l.formModel), { handleItemShowIf: u, handleItemDisableIf: i } =
|
|
5328
|
+
const { T: o, localLanguage: a } = ke(), l = n, r = V(() => l.formModel), { handleItemShowIf: u, handleItemDisableIf: i } = so({ formModel: r }), d = t;
|
|
5338
5329
|
function s(m, w) {
|
|
5339
5330
|
d("after-update-value", m, w);
|
|
5340
5331
|
}
|
|
@@ -5378,7 +5369,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5378
5369
|
getDisableFlag: p,
|
|
5379
5370
|
setBlockShowFlag: y
|
|
5380
5371
|
});
|
|
5381
|
-
const
|
|
5372
|
+
const S = V(() => l.formItem.name.replace(/:|:/, "")), L = Y(), _ = Y(!1), I = Y(0);
|
|
5382
5373
|
return Ue(() => {
|
|
5383
5374
|
if (L.value && l.isLabelNameShow) {
|
|
5384
5375
|
I.value = L.value.parentElement.parentElement.clientWidth;
|
|
@@ -5389,7 +5380,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5389
5380
|
const M = Q("t-divider"), U = Q("t-tooltip"), P = Q("t-form-item");
|
|
5390
5381
|
return v(), W("div", {
|
|
5391
5382
|
ref: "formItemRef",
|
|
5392
|
-
class: Z(`${h(
|
|
5383
|
+
class: Z(`${h(No)}`),
|
|
5393
5384
|
id: N.value
|
|
5394
5385
|
}, [
|
|
5395
5386
|
f.value ? (v(), W(de, { key: 0 }, [
|
|
@@ -5407,7 +5398,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5407
5398
|
id: m.formItem.keyName,
|
|
5408
5399
|
requiredMark: m.formItem.required && !c.value,
|
|
5409
5400
|
name: m.formItem.inputType != "RE_PASSWORD" ? m.formItem.keyName : "rePassword",
|
|
5410
|
-
class: Z([`${m.isLabelNameShow ? "" : `${h(
|
|
5401
|
+
class: Z([`${m.isLabelNameShow ? "" : `${h(No)}-label--hidden`}`])
|
|
5411
5402
|
}, {
|
|
5412
5403
|
label: C(() => [
|
|
5413
5404
|
F(U, {
|
|
@@ -5415,7 +5406,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5415
5406
|
theme: "light",
|
|
5416
5407
|
disabled: !_.value,
|
|
5417
5408
|
showArrow: !1,
|
|
5418
|
-
content:
|
|
5409
|
+
content: S.value,
|
|
5419
5410
|
placement: "mouse"
|
|
5420
5411
|
}, {
|
|
5421
5412
|
default: C(() => [
|
|
@@ -5429,13 +5420,13 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5429
5420
|
style: bt({
|
|
5430
5421
|
..._.value ? { width: `${I.value - 20}px` } : {}
|
|
5431
5422
|
})
|
|
5432
|
-
}, te(
|
|
5423
|
+
}, te(S.value), 7)
|
|
5433
5424
|
]),
|
|
5434
5425
|
_: 1
|
|
5435
5426
|
}, 8, ["disabled", "content"])
|
|
5436
5427
|
]),
|
|
5437
5428
|
default: C(() => {
|
|
5438
|
-
var k, x,
|
|
5429
|
+
var k, x, D, A;
|
|
5439
5430
|
return [
|
|
5440
5431
|
m.formItem.itemType === "label" ? (v(), $(ba, {
|
|
5441
5432
|
key: 0,
|
|
@@ -5479,7 +5470,7 @@ const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
|
5479
5470
|
"onUpdate:modelValue": w[4] || (w[4] = (T) => s(m.formItem.keyName, T))
|
|
5480
5471
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled"])) : X("", !0),
|
|
5481
5472
|
m.formItem.itemType === "selector" || m.formItem.itemType === "multi_selector" ? (v(), $(ka, Ee({ key: 6 }, m.componentProps, {
|
|
5482
|
-
key: (
|
|
5473
|
+
key: (D = m.formItem.listData) == null ? void 0 : D.dataId,
|
|
5483
5474
|
modelValue: h(fe)(r.value, m.formItem.keyName),
|
|
5484
5475
|
formItem: m.formItem,
|
|
5485
5476
|
viewName: m.viewName,
|
|
@@ -5606,7 +5597,7 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5606
5597
|
const { T: o } = ke(), a = n, l = V(() => "280px"), r = V(() => {
|
|
5607
5598
|
var P;
|
|
5608
5599
|
return (P = a.board) == null ? void 0 : P.formItems;
|
|
5609
|
-
}), u = Y({}), { handleItemShowIf: i } =
|
|
5600
|
+
}), u = Y({}), { handleItemShowIf: i } = so({ formModel: u });
|
|
5610
5601
|
De(
|
|
5611
5602
|
() => a.formData,
|
|
5612
5603
|
() => {
|
|
@@ -5624,8 +5615,8 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5624
5615
|
async function f() {
|
|
5625
5616
|
let P = [];
|
|
5626
5617
|
return p.value && (P = p == null ? void 0 : p.value.map((k) => {
|
|
5627
|
-
const { formItem: x } = k,
|
|
5628
|
-
return x.required && x.keyName &&
|
|
5618
|
+
const { formItem: x } = k, D = [];
|
|
5619
|
+
return x.required && x.keyName && D.push({
|
|
5629
5620
|
validator: () => {
|
|
5630
5621
|
const A = fe(u.value, x.keyName);
|
|
5631
5622
|
return wn(A) ? {
|
|
@@ -5634,27 +5625,27 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5634
5625
|
} : { result: !0 };
|
|
5635
5626
|
},
|
|
5636
5627
|
trigger: "blur"
|
|
5637
|
-
}), x.inputType === "RE_PASSWORD" &&
|
|
5628
|
+
}), x.inputType === "RE_PASSWORD" && D.push({
|
|
5638
5629
|
validator: () => ({
|
|
5639
5630
|
result: fe(u.value, "password") === fe(u.value, "rePassword"),
|
|
5640
5631
|
message: `${o.t("两次输入密码不一致")}`
|
|
5641
5632
|
}),
|
|
5642
5633
|
trigger: "blur"
|
|
5643
|
-
}), (x.keyName === "startTime" || x.keyName === "endTime") &&
|
|
5634
|
+
}), (x.keyName === "startTime" || x.keyName === "endTime") && D.push({
|
|
5644
5635
|
validator: () => ({
|
|
5645
5636
|
result: fe(u.value, "endTime") - fe(u.value, "startTime") > 0,
|
|
5646
5637
|
message: `${o.t("结束时间不能早于开始时间")}`
|
|
5647
5638
|
})
|
|
5648
5639
|
}), {
|
|
5649
5640
|
keyName: x.inputType !== "RE_PASSWORD" ? x.keyName : "rePassword",
|
|
5650
|
-
rules:
|
|
5641
|
+
rules: D
|
|
5651
5642
|
};
|
|
5652
5643
|
})), P == null ? void 0 : P.reduce((k, x) => (x.rules.length && (k[x.keyName] = x.rules), k), {});
|
|
5653
5644
|
}
|
|
5654
5645
|
const p = Y(), y = Y();
|
|
5655
5646
|
function N(P, k, x) {
|
|
5656
|
-
p.value && p.value.forEach((
|
|
5657
|
-
|
|
5647
|
+
p.value && p.value.forEach((D) => {
|
|
5648
|
+
D.formItemId && k.includes(D.formItemId) && D.$el.classList.contains(P) && D.setBlockShowFlag(x);
|
|
5658
5649
|
});
|
|
5659
5650
|
}
|
|
5660
5651
|
Ue(async () => {
|
|
@@ -5664,13 +5655,13 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5664
5655
|
je(u.value, P, k), s.value && E([P]);
|
|
5665
5656
|
}
|
|
5666
5657
|
async function E(P = []) {
|
|
5667
|
-
var
|
|
5668
|
-
const k =
|
|
5669
|
-
return (P.length ? P.some((A) => k.includes(A)) : !0) ? (
|
|
5658
|
+
var D;
|
|
5659
|
+
const k = S();
|
|
5660
|
+
return (P.length ? P.some((A) => k.includes(A)) : !0) ? (D = s.value) == null ? void 0 : D.validate({
|
|
5670
5661
|
fields: P.length ? P : k
|
|
5671
5662
|
}) : Promise.resolve({});
|
|
5672
5663
|
}
|
|
5673
|
-
const
|
|
5664
|
+
const S = () => {
|
|
5674
5665
|
var P;
|
|
5675
5666
|
return (P = p == null ? void 0 : p.value) == null ? void 0 : P.flatMap((k) => {
|
|
5676
5667
|
const { formItem: x } = k;
|
|
@@ -5685,7 +5676,7 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5685
5676
|
}), I = t;
|
|
5686
5677
|
function m(P) {
|
|
5687
5678
|
for (const k in P) {
|
|
5688
|
-
const x = P[k].find((
|
|
5679
|
+
const x = P[k].find((D) => D.result === !1);
|
|
5689
5680
|
if (x)
|
|
5690
5681
|
return { ...x };
|
|
5691
5682
|
}
|
|
@@ -5695,9 +5686,9 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5695
5686
|
let k = _n(P);
|
|
5696
5687
|
const x = Object.keys(k);
|
|
5697
5688
|
if (r.value && x.length) {
|
|
5698
|
-
const
|
|
5689
|
+
const D = r.value.filter((T) => T.itemType == "file" && T.fileUploadType == "path").map((T) => T.keyName);
|
|
5699
5690
|
x.length && x.forEach((T) => {
|
|
5700
|
-
|
|
5691
|
+
D.includes(T) && k[T] && Ct(k[T]) && (k[T] = k[T].filter(
|
|
5701
5692
|
(B) => B && B.url
|
|
5702
5693
|
));
|
|
5703
5694
|
});
|
|
@@ -5749,7 +5740,7 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5749
5740
|
formOkButtonLoading: U
|
|
5750
5741
|
}), (P, k) => {
|
|
5751
5742
|
const x = Q("t-button");
|
|
5752
|
-
return v(), $(h(
|
|
5743
|
+
return v(), $(h(ro), {
|
|
5753
5744
|
ref_key: "commonFormRef",
|
|
5754
5745
|
ref: d,
|
|
5755
5746
|
commonFormProps: {
|
|
@@ -5760,17 +5751,17 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5760
5751
|
}
|
|
5761
5752
|
}, {
|
|
5762
5753
|
body: C(() => [
|
|
5763
|
-
(v(!0), W(de, null, Se(r.value, (
|
|
5764
|
-
key: `${
|
|
5754
|
+
(v(!0), W(de, null, Se(r.value, (D) => (v(), W(de, {
|
|
5755
|
+
key: `${D.name}_${D.keyName}`
|
|
5765
5756
|
}, [
|
|
5766
|
-
|
|
5757
|
+
D.itemType === "block_start" || D.itemType === "block_end" ? (v(), $(Da, {
|
|
5767
5758
|
key: 0,
|
|
5768
5759
|
ref_for: !0,
|
|
5769
5760
|
ref_key: "formBlockRef",
|
|
5770
5761
|
ref: y,
|
|
5771
|
-
name:
|
|
5772
|
-
blockType:
|
|
5773
|
-
showIf: h(i)(
|
|
5762
|
+
name: D.name,
|
|
5763
|
+
blockType: D.itemType,
|
|
5764
|
+
showIf: h(i)(D.showIf),
|
|
5774
5765
|
onBlockShowIfChange: N
|
|
5775
5766
|
}, null, 8, ["name", "blockType", "showIf"])) : (v(), $(Cn, {
|
|
5776
5767
|
key: 1,
|
|
@@ -5778,14 +5769,14 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5778
5769
|
ref_key: "formItemRef",
|
|
5779
5770
|
ref: p,
|
|
5780
5771
|
formModel: u.value,
|
|
5781
|
-
formItem:
|
|
5772
|
+
formItem: D,
|
|
5782
5773
|
viewName: P.viewName,
|
|
5783
5774
|
onAfterUpdateValue: j
|
|
5784
5775
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
5785
5776
|
], 64))), 128))
|
|
5786
5777
|
]),
|
|
5787
5778
|
footer: C(() => {
|
|
5788
|
-
var
|
|
5779
|
+
var D;
|
|
5789
5780
|
return [
|
|
5790
5781
|
_.value && _.value.name != "" && _.value.action !== "NONE" ? (v(), $(x, {
|
|
5791
5782
|
key: 0,
|
|
@@ -5800,7 +5791,7 @@ const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id
|
|
|
5800
5791
|
}),
|
|
5801
5792
|
_: 1
|
|
5802
5793
|
})) : X("", !0),
|
|
5803
|
-
L.value && L.value.name != "" && ((
|
|
5794
|
+
L.value && L.value.name != "" && ((D = L.value) == null ? void 0 : D.action) !== "NONE" ? (v(), $(x, {
|
|
5804
5795
|
key: 1,
|
|
5805
5796
|
theme: "primary",
|
|
5806
5797
|
onClick: k[1] || (k[1] = (A) => L.value && M(L.value)),
|
|
@@ -5835,7 +5826,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5835
5826
|
},
|
|
5836
5827
|
emits: ["close-dialog"],
|
|
5837
5828
|
setup(n, { emit: e }) {
|
|
5838
|
-
const t =
|
|
5829
|
+
const t = Wo(() => Promise.resolve().then(() => ja)), { T: o } = ke(), a = rt(), l = n, r = V(() => {
|
|
5839
5830
|
var L, _, I;
|
|
5840
5831
|
return (L = l.board) != null && L.data ? (_ = l.board) == null ? void 0 : _.data.dataId : (I = l.board) != null && I.tableData ? l.board.tableData.dataId : null;
|
|
5841
5832
|
}), u = V(() => {
|
|
@@ -5873,7 +5864,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5873
5864
|
s("close-dialog");
|
|
5874
5865
|
}
|
|
5875
5866
|
const j = Y({}), E = Y(!1);
|
|
5876
|
-
async function
|
|
5867
|
+
async function S() {
|
|
5877
5868
|
try {
|
|
5878
5869
|
if (E.value = !0, !mt(r.value) && !mt(l.viewName)) {
|
|
5879
5870
|
const L = await tn({
|
|
@@ -5890,7 +5881,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5890
5881
|
}
|
|
5891
5882
|
}
|
|
5892
5883
|
return Ue(() => {
|
|
5893
|
-
d.value == "form" &&
|
|
5884
|
+
d.value == "form" && S();
|
|
5894
5885
|
}), At(Ft, i.value), (L, _) => {
|
|
5895
5886
|
const I = Q("t-loading");
|
|
5896
5887
|
return d.value !== "form" ? (v(), $(h(t), {
|
|
@@ -5935,10 +5926,10 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5935
5926
|
emits: ["update:isDialogVisible", "close-dialog"],
|
|
5936
5927
|
setup(n, { emit: e }) {
|
|
5937
5928
|
const { T: t } = ke();
|
|
5938
|
-
|
|
5939
|
-
const o = n, a = e, l =
|
|
5940
|
-
var
|
|
5941
|
-
return ((
|
|
5929
|
+
Wo(() => Promise.resolve().then(() => ja));
|
|
5930
|
+
const o = n, a = e, l = lo(), r = V(() => o.dialogViewInfo.view), u = V(() => o.dialogViewInfo.name), i = V(() => {
|
|
5931
|
+
var S;
|
|
5932
|
+
return ((S = o.dialogViewBoard) == null ? void 0 : S.boardType) ?? "default";
|
|
5942
5933
|
}), d = V(() => {
|
|
5943
5934
|
switch (i.value) {
|
|
5944
5935
|
case "table":
|
|
@@ -5951,16 +5942,16 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5951
5942
|
return "80vw";
|
|
5952
5943
|
}
|
|
5953
5944
|
}), s = V(() => o.dialogViewProps.length ? l.getPropsByPropsKey(o.dialogViewProps) : []);
|
|
5954
|
-
function c(
|
|
5955
|
-
a("update:isDialogVisible",
|
|
5945
|
+
function c(S) {
|
|
5946
|
+
a("update:isDialogVisible", S);
|
|
5956
5947
|
}
|
|
5957
5948
|
function f() {
|
|
5958
5949
|
a("close-dialog");
|
|
5959
5950
|
}
|
|
5960
5951
|
const p = ft(), y = V(() => {
|
|
5961
|
-
const
|
|
5952
|
+
const S = en(o.dialogViewInfo.link);
|
|
5962
5953
|
let L = "";
|
|
5963
|
-
if (
|
|
5954
|
+
if (S)
|
|
5964
5955
|
L = wt(o.dialogViewInfo.link ?? "", {
|
|
5965
5956
|
...s
|
|
5966
5957
|
});
|
|
@@ -5973,11 +5964,11 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5973
5964
|
function E() {
|
|
5974
5965
|
j.value = !1;
|
|
5975
5966
|
}
|
|
5976
|
-
return (
|
|
5967
|
+
return (S, L) => {
|
|
5977
5968
|
const _ = Q("t-loading");
|
|
5978
5969
|
return v(), $(h(ma), {
|
|
5979
5970
|
commonDialogProps: {
|
|
5980
|
-
visible:
|
|
5971
|
+
visible: S.isDialogVisible,
|
|
5981
5972
|
width: d.value,
|
|
5982
5973
|
header: u.value,
|
|
5983
5974
|
footer: !1,
|
|
@@ -5987,18 +5978,18 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5987
5978
|
}, {
|
|
5988
5979
|
body: C(() => [
|
|
5989
5980
|
F(_, {
|
|
5990
|
-
loading:
|
|
5981
|
+
loading: S.dialogType === "iframe" && j.value,
|
|
5991
5982
|
size: "medium",
|
|
5992
5983
|
text: `${h(t).t("加载中")}`
|
|
5993
5984
|
}, {
|
|
5994
5985
|
default: C(() => [
|
|
5995
|
-
|
|
5986
|
+
S.dialogType === "view" ? (v(), $(Ls, {
|
|
5996
5987
|
key: 0,
|
|
5997
5988
|
viewName: r.value,
|
|
5998
|
-
board:
|
|
5989
|
+
board: S.dialogViewBoard,
|
|
5999
5990
|
dialogProps: s.value,
|
|
6000
5991
|
onCloseDialog: f
|
|
6001
|
-
}, null, 8, ["viewName", "board", "dialogProps"])) :
|
|
5992
|
+
}, null, 8, ["viewName", "board", "dialogProps"])) : S.dialogType === "iframe" ? (v(), W("iframe", {
|
|
6002
5993
|
key: 1,
|
|
6003
5994
|
class: "g-iframe",
|
|
6004
5995
|
ref_key: "dialogIframeRef",
|
|
@@ -6030,7 +6021,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6030
6021
|
const { T: o } = ke(), a = Ln(), l = kt(), r = ze(ia, ""), u = n, i = V(() => "280px"), d = V(() => {
|
|
6031
6022
|
var B;
|
|
6032
6023
|
return (B = u.board) == null ? void 0 : B.formItems;
|
|
6033
|
-
}), s = Y({}), { handleItemShowIf: c } =
|
|
6024
|
+
}), s = Y({}), { handleItemShowIf: c } = so({ formModel: s }), f = rt();
|
|
6034
6025
|
function p() {
|
|
6035
6026
|
const B = a.getFormData(f.fullPath);
|
|
6036
6027
|
B && Object.keys(B).length && Object.keys(s.value).forEach((g) => {
|
|
@@ -6057,7 +6048,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6057
6048
|
var B;
|
|
6058
6049
|
return (B = N.value) == null ? void 0 : B.tFormRef;
|
|
6059
6050
|
}), E = Y({});
|
|
6060
|
-
async function
|
|
6051
|
+
async function S() {
|
|
6061
6052
|
let B = [];
|
|
6062
6053
|
return L.value && (B = L == null ? void 0 : L.value.map((g) => {
|
|
6063
6054
|
const { formItem: b } = g, z = [];
|
|
@@ -6094,7 +6085,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6094
6085
|
});
|
|
6095
6086
|
}
|
|
6096
6087
|
Ue(async () => {
|
|
6097
|
-
E.value = await
|
|
6088
|
+
E.value = await S();
|
|
6098
6089
|
});
|
|
6099
6090
|
function m(B, g) {
|
|
6100
6091
|
je(s.value, B, g), j.value && w([B]);
|
|
@@ -6127,7 +6118,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6127
6118
|
}
|
|
6128
6119
|
return null;
|
|
6129
6120
|
}
|
|
6130
|
-
function
|
|
6121
|
+
function D(B) {
|
|
6131
6122
|
let g = _n(B);
|
|
6132
6123
|
const b = Object.keys(g);
|
|
6133
6124
|
if (d.value && b.length) {
|
|
@@ -6152,7 +6143,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6152
6143
|
const b = x(g);
|
|
6153
6144
|
he.warning(b == null ? void 0 : b.message);
|
|
6154
6145
|
} else {
|
|
6155
|
-
const b =
|
|
6146
|
+
const b = D(s.value);
|
|
6156
6147
|
k("confirm-form", b, B.buttonId);
|
|
6157
6148
|
}
|
|
6158
6149
|
});
|
|
@@ -6164,7 +6155,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6164
6155
|
const b = x(g);
|
|
6165
6156
|
he.warning(b == null ? void 0 : b.message);
|
|
6166
6157
|
} else {
|
|
6167
|
-
const b =
|
|
6158
|
+
const b = D(s.value);
|
|
6168
6159
|
k("confirm-and-close", b, B.buttonId);
|
|
6169
6160
|
}
|
|
6170
6161
|
});
|
|
@@ -6183,9 +6174,9 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6183
6174
|
const T = Y(!1);
|
|
6184
6175
|
return e({
|
|
6185
6176
|
formOkButtonLoading: T
|
|
6186
|
-
}), V(() => l.tabMenuList),
|
|
6177
|
+
}), V(() => l.tabMenuList), Yo((B, g) => {
|
|
6187
6178
|
y(g.fullPath);
|
|
6188
|
-
}),
|
|
6179
|
+
}), qo((B, g) => {
|
|
6189
6180
|
y(g.fullPath);
|
|
6190
6181
|
}), (B, g) => {
|
|
6191
6182
|
const b = Q("t-button"), z = Q("t-space");
|
|
@@ -6235,7 +6226,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6235
6226
|
_: 1
|
|
6236
6227
|
})
|
|
6237
6228
|
]),
|
|
6238
|
-
F(h(
|
|
6229
|
+
F(h(ro), {
|
|
6239
6230
|
ref_key: "commonFormRef",
|
|
6240
6231
|
ref: N,
|
|
6241
6232
|
commonFormProps: {
|
|
@@ -6406,9 +6397,9 @@ const Bs = /* @__PURE__ */ ht($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(B
|
|
|
6406
6397
|
function E(_) {
|
|
6407
6398
|
a("display-columns-change", _);
|
|
6408
6399
|
}
|
|
6409
|
-
const
|
|
6400
|
+
const S = rt(), L = Ln();
|
|
6410
6401
|
return Ue(() => {
|
|
6411
|
-
const _ = L.getFormData(
|
|
6402
|
+
const _ = L.getFormData(S.fullPath);
|
|
6412
6403
|
_ != null && _.formData && (c.value = {
|
|
6413
6404
|
..._.formData
|
|
6414
6405
|
}, a("header-filter-change", c.value));
|
|
@@ -6616,7 +6607,7 @@ function ot(n) {
|
|
|
6616
6607
|
if (typeof n != "string")
|
|
6617
6608
|
throw new TypeError("Path must be a string. Received " + JSON.stringify(n));
|
|
6618
6609
|
}
|
|
6619
|
-
function
|
|
6610
|
+
function Po(n, e) {
|
|
6620
6611
|
for (var t = "", o = 0, a = -1, l = 0, r, u = 0; u <= n.length; ++u) {
|
|
6621
6612
|
if (u < n.length)
|
|
6622
6613
|
r = n.charCodeAt(u);
|
|
@@ -6660,13 +6651,13 @@ var Nt = {
|
|
|
6660
6651
|
var l;
|
|
6661
6652
|
a >= 0 ? l = arguments[a] : (o === void 0 && (o = process.cwd()), l = o), ot(l), l.length !== 0 && (e = l + "/" + e, t = l.charCodeAt(0) === 47);
|
|
6662
6653
|
}
|
|
6663
|
-
return e =
|
|
6654
|
+
return e = Po(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
|
|
6664
6655
|
},
|
|
6665
6656
|
normalize: function(e) {
|
|
6666
6657
|
if (ot(e), e.length === 0)
|
|
6667
6658
|
return ".";
|
|
6668
6659
|
var t = e.charCodeAt(0) === 47, o = e.charCodeAt(e.length - 1) === 47;
|
|
6669
|
-
return e =
|
|
6660
|
+
return e = Po(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && o && (e += "/"), t ? "/" + e : e;
|
|
6670
6661
|
},
|
|
6671
6662
|
isAbsolute: function(e) {
|
|
6672
6663
|
return ot(e), e.length > 0 && e.charCodeAt(0) === 47;
|
|
@@ -6846,7 +6837,7 @@ function Ys(n, {
|
|
|
6846
6837
|
throw new RangeError(
|
|
6847
6838
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
6848
6839
|
);
|
|
6849
|
-
let
|
|
6840
|
+
let S, L, _ = e.replace(/{(\d*)}/g, (m, w) => (L = !0, w = parseInt(w, 10), S = isFinite(w) ? w : isFinite(S) ? S : -1, "{}")), I = a > 0 ? a - 1 : a < 0 ? E + a : void 0;
|
|
6850
6841
|
if (isFinite(I) && I < 0 || I >= E)
|
|
6851
6842
|
throw new RangeError(
|
|
6852
6843
|
E == 1 ? `Canvas only has a ‘page 1’ (${I} is out of bounds)` : `Canvas has pages 1–${E} (${I} is out of bounds)`
|
|
@@ -6868,7 +6859,7 @@ function Ys(n, {
|
|
|
6868
6859
|
format: N,
|
|
6869
6860
|
mime: j,
|
|
6870
6861
|
pages: n,
|
|
6871
|
-
padding:
|
|
6862
|
+
padding: S,
|
|
6872
6863
|
quality: l,
|
|
6873
6864
|
matte: r,
|
|
6874
6865
|
density: u,
|
|
@@ -6956,20 +6947,20 @@ class En {
|
|
|
6956
6947
|
}
|
|
6957
6948
|
}
|
|
6958
6949
|
En.encoder = new TextEncoder();
|
|
6959
|
-
const
|
|
6950
|
+
const io = (n, e, t, o) => {
|
|
6960
6951
|
if (o) {
|
|
6961
6952
|
let { width: a, height: l } = n, r = Object.assign(document.createElement("canvas"), { width: a, height: l }), u = r.getContext("2d");
|
|
6962
6953
|
u.fillStyle = o, u.fillRect(0, 0, a, l), u.drawImage(n, 0, 0), n = r;
|
|
6963
6954
|
}
|
|
6964
6955
|
return new Promise((a, l) => n.toBlob(a, e, t));
|
|
6965
|
-
}, qs = (...n) =>
|
|
6966
|
-
Ea(a, await
|
|
6956
|
+
}, qs = (...n) => io(...n).then((e) => e.arrayBuffer()), Qs = async (n, e, t, o, a) => {
|
|
6957
|
+
Ea(a, await io(n, e, t, o));
|
|
6967
6958
|
}, Xs = async (n, e, t, o, a, l, r) => {
|
|
6968
6959
|
let u = (s) => l.replace("{}", String(s + 1).padStart(r, "0")), i = Na(a, ".zip") || "archive", d = new En(i);
|
|
6969
6960
|
await Promise.all(
|
|
6970
6961
|
n.map(async (s, c) => {
|
|
6971
6962
|
let f = u(c);
|
|
6972
|
-
await d.add(f, await
|
|
6963
|
+
await d.add(f, await io(s, e, t, o));
|
|
6973
6964
|
})
|
|
6974
6965
|
), Ea(`${i}.zip`, d.blob);
|
|
6975
6966
|
}, Ea = (n, e) => {
|
|
@@ -6980,7 +6971,7 @@ const so = (n, e, t, o) => {
|
|
|
6980
6971
|
return o.canvas;
|
|
6981
6972
|
let a = document.createElement("canvas"), l = a.getContext("2d"), r = o.canvas ? o.canvas : o;
|
|
6982
6973
|
return a.width = r.width * e, a.height = r.height * e, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(e, e), l.drawImage(r, 0, 0), a;
|
|
6983
|
-
}), Js = { asBuffer: qs, asDownload: Qs, asZipDownload: Xs, atScale: Zs, options: Ys }, { asBuffer: jn, asDownload: ei, asZipDownload: ti, atScale: zn, options: Gn } = Js,
|
|
6974
|
+
}), Js = { asBuffer: qs, asDownload: Qs, asZipDownload: Xs, atScale: Zs, options: Ys }, { asBuffer: jn, asDownload: ei, asZipDownload: ti, atScale: zn, options: Gn } = Js, xo = Symbol.for("toDataURL"), ni = (n) => new Promise(
|
|
6984
6975
|
(e, t) => Object.assign(new Aa(), {
|
|
6985
6976
|
crossOrigin: "Anonymous",
|
|
6986
6977
|
onload: e,
|
|
@@ -7032,10 +7023,10 @@ let oi = class {
|
|
|
7032
7023
|
let d = Gn(this.pages, { extension: u, ...i }), { mime: s, quality: c, matte: f, pages: p, density: y } = d, N = zn(p, y, f)[0];
|
|
7033
7024
|
return jn(N, s, c, f);
|
|
7034
7025
|
},
|
|
7035
|
-
[
|
|
7026
|
+
[xo]: o.toDataURL.bind(o),
|
|
7036
7027
|
toDataURL(u = "png", i = {}) {
|
|
7037
7028
|
i = typeof i == "number" ? { quality: i } : i;
|
|
7038
|
-
let d = Gn(this.pages, { extension: u, ...i }), { mime: s, quality: c, matte: f, pages: p, density: y } = d, N = zn(p, y, f)[0], j = N[N === o ?
|
|
7029
|
+
let d = Gn(this.pages, { extension: u, ...i }), { mime: s, quality: c, matte: f, pages: p, density: y } = d, N = zn(p, y, f)[0], j = N[N === o ? xo : "toDataURL"](s, c);
|
|
7039
7030
|
return Promise.resolve(j);
|
|
7040
7031
|
}
|
|
7041
7032
|
});
|
|
@@ -7100,7 +7091,7 @@ const {
|
|
|
7100
7091
|
for (var o = 0, a = 0; a < t; a++)
|
|
7101
7092
|
o += n[e + a] && 2 ** (t - a - 1);
|
|
7102
7093
|
return o;
|
|
7103
|
-
},
|
|
7094
|
+
}, uo = (n) => (e) => {
|
|
7104
7095
|
const t = nt()(e), o = new Array(8);
|
|
7105
7096
|
for (var a = 0; a < 8; a++)
|
|
7106
7097
|
o[7 - a] = !!(t & 1 << a);
|
|
@@ -7132,7 +7123,7 @@ const vi = Et(
|
|
|
7132
7123
|
{ codes: lt(2) },
|
|
7133
7124
|
{ byteSize: nt() },
|
|
7134
7125
|
{
|
|
7135
|
-
extras:
|
|
7126
|
+
extras: uo({
|
|
7136
7127
|
future: { index: 0, length: 3 },
|
|
7137
7128
|
disposal: { index: 3, length: 3 },
|
|
7138
7129
|
userInput: { index: 6 },
|
|
@@ -7159,7 +7150,7 @@ const vi = Et(
|
|
|
7159
7150
|
{ width: It(!0) },
|
|
7160
7151
|
{ height: It(!0) },
|
|
7161
7152
|
{
|
|
7162
|
-
lct:
|
|
7153
|
+
lct: uo({
|
|
7163
7154
|
exists: { index: 0 },
|
|
7164
7155
|
interlaced: { index: 1 },
|
|
7165
7156
|
sort: { index: 2 },
|
|
@@ -7222,7 +7213,7 @@ const vi = Et(
|
|
|
7222
7213
|
{ width: It(!0) },
|
|
7223
7214
|
{ height: It(!0) },
|
|
7224
7215
|
{
|
|
7225
|
-
gct:
|
|
7216
|
+
gct: uo({
|
|
7226
7217
|
exists: { index: 0 },
|
|
7227
7218
|
resolution: { index: 1, length: 3 },
|
|
7228
7219
|
sort: { index: 4 },
|
|
@@ -7264,9 +7255,9 @@ const vi = Et(
|
|
|
7264
7255
|
}, ki = (n, e, t) => {
|
|
7265
7256
|
const l = t;
|
|
7266
7257
|
var r, u, i, d, s, c, f, I, p, y, _, N, m, w, U, M;
|
|
7267
|
-
const j = new Array(t), E = new Array(4096),
|
|
7258
|
+
const j = new Array(t), E = new Array(4096), S = new Array(4096), L = new Array(4096 + 1);
|
|
7268
7259
|
for (N = n, u = 1 << N, s = u + 1, r = u + 2, f = -1, d = N + 1, i = (1 << d) - 1, p = 0; p < u; p++)
|
|
7269
|
-
E[p] = 0,
|
|
7260
|
+
E[p] = 0, S[p] = p;
|
|
7270
7261
|
var _, I, m, w, M, U;
|
|
7271
7262
|
for (_ = I = m = w = M = U = 0, y = 0; y < l; ) {
|
|
7272
7263
|
if (w === 0) {
|
|
@@ -7281,12 +7272,12 @@ const vi = Et(
|
|
|
7281
7272
|
continue;
|
|
7282
7273
|
}
|
|
7283
7274
|
if (f == -1) {
|
|
7284
|
-
L[w++] =
|
|
7275
|
+
L[w++] = S[p], f = p, m = p;
|
|
7285
7276
|
continue;
|
|
7286
7277
|
}
|
|
7287
7278
|
for (c = p, p == r && (L[w++] = m, p = f); p > u; )
|
|
7288
|
-
L[w++] =
|
|
7289
|
-
m =
|
|
7279
|
+
L[w++] = S[p], p = E[p];
|
|
7280
|
+
m = S[p] & 255, L[w++] = m, r < 4096 && (E[r] = f, S[r] = m, r++, !(r & i) && r < 4096 && (d++, i += r)), f = c;
|
|
7290
7281
|
}
|
|
7291
7282
|
w--, j[M++] = L[w], y++;
|
|
7292
7283
|
}
|
|
@@ -8039,79 +8030,79 @@ const at = [
|
|
|
8039
8030
|
[2809, 2213, 1579, 1219],
|
|
8040
8031
|
[2953, 2331, 1663, 1273]
|
|
8041
8032
|
];
|
|
8042
|
-
var Ai = 100, Oe = 256,
|
|
8033
|
+
var Ai = 100, Oe = 256, Vo = Oe - 1, vt = 4, Pa = 16, co = 1 << Pa, xa = 10, mo = 10, Fi = co >> mo, $i = co << xa - mo, Bi = Oe >> 3, eo = 6, Pi = 1 << eo, xi = Bi * Pi, Vi = 30, Va = 10, mn = 1 << Va, Oa = 8, Oo = 1 << Oa, Oi = Va + Oa, Bt = 1 << Oi, Uo = 499, Ro = 491, jo = 487, Ua = 503, Ui = 3 * Ua;
|
|
8043
8034
|
function Ri(n, e) {
|
|
8044
8035
|
var t, o, a, l, r;
|
|
8045
8036
|
function u() {
|
|
8046
8037
|
t = [], o = new Int32Array(256), a = new Int32Array(Oe), l = new Int32Array(Oe), r = new Int32Array(Oe >> 3);
|
|
8047
|
-
var E,
|
|
8038
|
+
var E, S;
|
|
8048
8039
|
for (E = 0; E < Oe; E++)
|
|
8049
|
-
|
|
8040
|
+
S = (E << vt + 8) / Oe, t[E] = new Float64Array([S, S, S, 0]), l[E] = co / Oe, a[E] = 0;
|
|
8050
8041
|
}
|
|
8051
8042
|
function i() {
|
|
8052
8043
|
for (var E = 0; E < Oe; E++)
|
|
8053
8044
|
t[E][0] >>= vt, t[E][1] >>= vt, t[E][2] >>= vt, t[E][3] = E;
|
|
8054
8045
|
}
|
|
8055
|
-
function d(E,
|
|
8056
|
-
t[
|
|
8046
|
+
function d(E, S, L, _, I) {
|
|
8047
|
+
t[S][0] -= E * (t[S][0] - L) / mn, t[S][1] -= E * (t[S][1] - _) / mn, t[S][2] -= E * (t[S][2] - I) / mn;
|
|
8057
8048
|
}
|
|
8058
|
-
function s(E,
|
|
8059
|
-
for (var m = Math.abs(
|
|
8049
|
+
function s(E, S, L, _, I) {
|
|
8050
|
+
for (var m = Math.abs(S - E), w = Math.min(S + E, Oe), M = S + 1, U = S - 1, P = 1, k, x; M < w || U > m; )
|
|
8060
8051
|
x = r[P++], M < w && (k = t[M++], k[0] -= x * (k[0] - L) / Bt, k[1] -= x * (k[1] - _) / Bt, k[2] -= x * (k[2] - I) / Bt), U > m && (k = t[U--], k[0] -= x * (k[0] - L) / Bt, k[1] -= x * (k[1] - _) / Bt, k[2] -= x * (k[2] - I) / Bt);
|
|
8061
8052
|
}
|
|
8062
|
-
function c(E,
|
|
8053
|
+
function c(E, S, L) {
|
|
8063
8054
|
var _ = 2147483647, I = _, m = -1, w = m, M, U, P, k, x;
|
|
8064
8055
|
for (M = 0; M < Oe; M++)
|
|
8065
|
-
U = t[M], P = Math.abs(U[0] - E) + Math.abs(U[1] -
|
|
8056
|
+
U = t[M], P = Math.abs(U[0] - E) + Math.abs(U[1] - S) + Math.abs(U[2] - L), P < _ && (_ = P, m = M), k = P - (a[M] >> Pa - vt), k < I && (I = k, w = M), x = l[M] >> mo, l[M] -= x, a[M] += x << xa;
|
|
8066
8057
|
return l[m] += Fi, a[m] -= $i, w;
|
|
8067
8058
|
}
|
|
8068
8059
|
function f() {
|
|
8069
|
-
var E,
|
|
8060
|
+
var E, S, L, _, I, m, w = 0, M = 0;
|
|
8070
8061
|
for (E = 0; E < Oe; E++) {
|
|
8071
|
-
for (L = t[E], I = E, m = L[1],
|
|
8072
|
-
_ = t[
|
|
8073
|
-
if (_ = t[I], E != I && (
|
|
8074
|
-
for (o[w] = M + E >> 1,
|
|
8075
|
-
o[
|
|
8062
|
+
for (L = t[E], I = E, m = L[1], S = E + 1; S < Oe; S++)
|
|
8063
|
+
_ = t[S], _[1] < m && (I = S, m = _[1]);
|
|
8064
|
+
if (_ = t[I], E != I && (S = _[0], _[0] = L[0], L[0] = S, S = _[1], _[1] = L[1], L[1] = S, S = _[2], _[2] = L[2], L[2] = S, S = _[3], _[3] = L[3], L[3] = S), m != w) {
|
|
8065
|
+
for (o[w] = M + E >> 1, S = w + 1; S < m; S++)
|
|
8066
|
+
o[S] = E;
|
|
8076
8067
|
w = m, M = E;
|
|
8077
8068
|
}
|
|
8078
8069
|
}
|
|
8079
|
-
for (o[w] = M +
|
|
8080
|
-
o[
|
|
8070
|
+
for (o[w] = M + Vo >> 1, S = w + 1; S < 256; S++)
|
|
8071
|
+
o[S] = Vo;
|
|
8081
8072
|
}
|
|
8082
|
-
function p(E,
|
|
8083
|
-
for (var _, I, m, w = 1e3, M = -1, U = o[
|
|
8084
|
-
U < Oe && (I = t[U], m = I[1] -
|
|
8073
|
+
function p(E, S, L) {
|
|
8074
|
+
for (var _, I, m, w = 1e3, M = -1, U = o[S], P = U - 1; U < Oe || P >= 0; )
|
|
8075
|
+
U < Oe && (I = t[U], m = I[1] - S, m >= w ? U = Oe : (U++, m < 0 && (m = -m), _ = I[0] - E, _ < 0 && (_ = -_), m += _, m < w && (_ = I[2] - L, _ < 0 && (_ = -_), m += _, m < w && (w = m, M = I[3])))), P >= 0 && (I = t[P], m = S - I[1], m >= w ? P = -1 : (P--, m < 0 && (m = -m), _ = I[0] - E, _ < 0 && (_ = -_), m += _, m < w && (_ = I[2] - L, _ < 0 && (_ = -_), m += _, m < w && (w = m, M = I[3]))));
|
|
8085
8076
|
return M;
|
|
8086
8077
|
}
|
|
8087
8078
|
function y() {
|
|
8088
|
-
var E,
|
|
8079
|
+
var E, S = n.length, L = 30 + (e - 1) / 3, _ = S / (3 * e), I = ~~(_ / Ai), m = mn, w = xi, M = w >> eo;
|
|
8089
8080
|
for (M <= 1 && (M = 0), E = 0; E < M; E++)
|
|
8090
|
-
r[E] = m * ((M * M - E * E) *
|
|
8081
|
+
r[E] = m * ((M * M - E * E) * Oo / (M * M));
|
|
8091
8082
|
var U;
|
|
8092
|
-
|
|
8093
|
-
var P, k, x,
|
|
8083
|
+
S < Ui ? (e = 1, U = 3) : S % Uo !== 0 ? U = 3 * Uo : S % Ro !== 0 ? U = 3 * Ro : S % jo !== 0 ? U = 3 * jo : U = 3 * Ua;
|
|
8084
|
+
var P, k, x, D, A = 0;
|
|
8094
8085
|
for (E = 0; E < _; )
|
|
8095
|
-
if (P = (n[A] & 255) << vt, k = (n[A + 1] & 255) << vt, x = (n[A + 2] & 255) << vt,
|
|
8096
|
-
for (m -= m / L, w -= w / Vi, M = w >> eo, M <= 1 && (M = 0),
|
|
8097
|
-
r[
|
|
8086
|
+
if (P = (n[A] & 255) << vt, k = (n[A + 1] & 255) << vt, x = (n[A + 2] & 255) << vt, D = c(P, k, x), d(m, D, P, k, x), M !== 0 && s(M, D, P, k, x), A += U, A >= S && (A -= S), E++, I === 0 && (I = 1), E % I === 0)
|
|
8087
|
+
for (m -= m / L, w -= w / Vi, M = w >> eo, M <= 1 && (M = 0), D = 0; D < M; D++)
|
|
8088
|
+
r[D] = m * ((M * M - D * D) * Oo / (M * M));
|
|
8098
8089
|
}
|
|
8099
8090
|
function N() {
|
|
8100
8091
|
u(), y(), i(), f();
|
|
8101
8092
|
}
|
|
8102
8093
|
this.buildColormap = N;
|
|
8103
8094
|
function j() {
|
|
8104
|
-
for (var E = [],
|
|
8105
|
-
|
|
8095
|
+
for (var E = [], S = [], L = 0; L < Oe; L++)
|
|
8096
|
+
S[t[L][3]] = L;
|
|
8106
8097
|
for (var _ = 0, I = 0; I < Oe; I++) {
|
|
8107
|
-
var m =
|
|
8098
|
+
var m = S[I];
|
|
8108
8099
|
E[_++] = t[m][0], E[_++] = t[m][1], E[_++] = t[m][2];
|
|
8109
8100
|
}
|
|
8110
8101
|
return E;
|
|
8111
8102
|
}
|
|
8112
8103
|
this.getColormap = j, this.lookupRGB = p;
|
|
8113
8104
|
}
|
|
8114
|
-
var
|
|
8105
|
+
var zo = -1, fn = 12, Ht = 5003, ji = [
|
|
8115
8106
|
0,
|
|
8116
8107
|
1,
|
|
8117
8108
|
3,
|
|
@@ -8131,24 +8122,24 @@ var jo = -1, fn = 12, Ht = 5003, ji = [
|
|
|
8131
8122
|
65535
|
|
8132
8123
|
];
|
|
8133
8124
|
function zi(n, e, t, o) {
|
|
8134
|
-
var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Ht), u = new Int32Array(Ht), i, d = 0, s, c = 0, f, p = !1, y, N, j, E,
|
|
8135
|
-
function _(
|
|
8136
|
-
l[s++] =
|
|
8125
|
+
var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Ht), u = new Int32Array(Ht), i, d = 0, s, c = 0, f, p = !1, y, N, j, E, S, L;
|
|
8126
|
+
function _(D, A) {
|
|
8127
|
+
l[s++] = D, s >= 254 && U(A);
|
|
8137
8128
|
}
|
|
8138
|
-
function I(
|
|
8139
|
-
m(Ht), c = N + 2, p = !0, x(N,
|
|
8129
|
+
function I(D) {
|
|
8130
|
+
m(Ht), c = N + 2, p = !0, x(N, D);
|
|
8140
8131
|
}
|
|
8141
|
-
function m(
|
|
8142
|
-
for (var A = 0; A <
|
|
8132
|
+
function m(D) {
|
|
8133
|
+
for (var A = 0; A < D; ++A)
|
|
8143
8134
|
r[A] = -1;
|
|
8144
8135
|
}
|
|
8145
|
-
function w(
|
|
8136
|
+
function w(D, A) {
|
|
8146
8137
|
var T, B, g, b, z, G, H;
|
|
8147
|
-
for (y =
|
|
8138
|
+
for (y = D, p = !1, L = y, f = P(L), N = 1 << D - 1, j = N + 1, c = N + 2, s = 0, b = k(), H = 0, T = Ht; T < 65536; T *= 2)
|
|
8148
8139
|
++H;
|
|
8149
8140
|
H = 8 - H, G = Ht, m(G), x(N, A);
|
|
8150
8141
|
e:
|
|
8151
|
-
for (; (B = k()) !=
|
|
8142
|
+
for (; (B = k()) != zo; ) {
|
|
8152
8143
|
if (T = (B << fn) + b, g = B << H ^ b, r[g] === T) {
|
|
8153
8144
|
b = u[g];
|
|
8154
8145
|
continue;
|
|
@@ -8165,26 +8156,26 @@ function zi(n, e, t, o) {
|
|
|
8165
8156
|
}
|
|
8166
8157
|
x(b, A), x(j, A);
|
|
8167
8158
|
}
|
|
8168
|
-
function M(
|
|
8169
|
-
|
|
8159
|
+
function M(D) {
|
|
8160
|
+
D.writeByte(a), E = n * e, S = 0, w(a + 1, D), D.writeByte(0);
|
|
8170
8161
|
}
|
|
8171
|
-
function U(
|
|
8172
|
-
s > 0 && (
|
|
8162
|
+
function U(D) {
|
|
8163
|
+
s > 0 && (D.writeByte(s), D.writeBytes(l, 0, s), s = 0);
|
|
8173
8164
|
}
|
|
8174
|
-
function P(
|
|
8175
|
-
return (1 <<
|
|
8165
|
+
function P(D) {
|
|
8166
|
+
return (1 << D) - 1;
|
|
8176
8167
|
}
|
|
8177
8168
|
function k() {
|
|
8178
8169
|
if (E === 0)
|
|
8179
|
-
return
|
|
8170
|
+
return zo;
|
|
8180
8171
|
--E;
|
|
8181
|
-
var
|
|
8182
|
-
return
|
|
8172
|
+
var D = t[S++];
|
|
8173
|
+
return D & 255;
|
|
8183
8174
|
}
|
|
8184
|
-
function x(
|
|
8185
|
-
for (i &= ji[d], d > 0 ? i |=
|
|
8175
|
+
function x(D, A) {
|
|
8176
|
+
for (i &= ji[d], d > 0 ? i |= D << d : i = D, d += L; d >= 8; )
|
|
8186
8177
|
_(i & 255, A), i >>= 8, d -= 8;
|
|
8187
|
-
if ((c > f || p) && (p ? (f = P(L = y), p = !1) : (++L, L == fn ? f = 1 << fn : f = P(L))),
|
|
8178
|
+
if ((c > f || p) && (p ? (f = P(L = y), p = !1) : (++L, L == fn ? f = 1 << fn : f = P(L))), D == j) {
|
|
8188
8179
|
for (; d > 0; )
|
|
8189
8180
|
_(i & 255, A), i >>= 8, d -= 8;
|
|
8190
8181
|
U(A);
|
|
@@ -8326,7 +8317,7 @@ Fe.prototype.ditherPixels = function(n, e) {
|
|
|
8326
8317
|
a = d * r + s;
|
|
8327
8318
|
var f = a * 3, p = u[f], y = u[f + 1], N = u[f + 2];
|
|
8328
8319
|
f = this.findClosestRGB(p, y, N), this.usedEntry[f] = !0, this.indexedPixels[a] = f, f *= 3;
|
|
8329
|
-
for (var j = this.colorTab[f], E = this.colorTab[f + 1],
|
|
8320
|
+
for (var j = this.colorTab[f], E = this.colorTab[f + 1], S = this.colorTab[f + 2], L = p - j, _ = y - E, I = N - S, m = i == 1 ? 0 : o.length - 1, w = i == 1 ? o.length : 0; m !== w; m += i) {
|
|
8330
8321
|
var M = o[m][1], U = o[m][2];
|
|
8331
8322
|
if (M + s >= 0 && M + s < r && U + d >= 0 && U + d < l) {
|
|
8332
8323
|
var P = o[m][0];
|
|
@@ -8428,7 +8419,7 @@ var Gi = globalThis && globalThis.__awaiter || function(n, e, t, o) {
|
|
|
8428
8419
|
});
|
|
8429
8420
|
};
|
|
8430
8421
|
const { Canvas: st } = mi, hn = 0.4;
|
|
8431
|
-
function
|
|
8422
|
+
function Go(n) {
|
|
8432
8423
|
if (!n)
|
|
8433
8424
|
return;
|
|
8434
8425
|
function e(t) {
|
|
@@ -8526,14 +8517,14 @@ class Le {
|
|
|
8526
8517
|
})), e.fillStyle = d;
|
|
8527
8518
|
}
|
|
8528
8519
|
_draw() {
|
|
8529
|
-
var e, t, o, a, l, r, u, i, d, s, c, f, p, y, N, j, E,
|
|
8520
|
+
var e, t, o, a, l, r, u, i, d, s, c, f, p, y, N, j, E, S, L;
|
|
8530
8521
|
return Gi(this, void 0, void 0, function* () {
|
|
8531
8522
|
const _ = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount, I = this.options.size;
|
|
8532
8523
|
let m = this.options.margin;
|
|
8533
8524
|
(m < 0 || m * 2 >= I) && (m = 0);
|
|
8534
|
-
const w = Math.ceil(m), M = I - 2 * m, U = this.options.whiteMargin, P = this.options.backgroundDimming, k = Math.ceil(M / _), x = k * _,
|
|
8525
|
+
const w = Math.ceil(m), M = I - 2 * m, U = this.options.whiteMargin, P = this.options.backgroundDimming, k = Math.ceil(M / _), x = k * _, D = x + 2 * w, A = new st(D, D), T = A.getContext("2d");
|
|
8535
8526
|
this._clear(), T.save(), T.translate(w, w);
|
|
8536
|
-
const B = new st(
|
|
8527
|
+
const B = new st(D, D), g = B.getContext("2d");
|
|
8537
8528
|
let b = null, z = [];
|
|
8538
8529
|
if (this.options.gifBackground) {
|
|
8539
8530
|
const le = Mi(this.options.gifBackground);
|
|
@@ -8546,14 +8537,14 @@ class Le {
|
|
|
8546
8537
|
ce = ~~(ce / Ae), ve = ~~(ve / Ae), we = ~~(we / Ae), this.options.colorDark = `rgb(${ce},${ve},${we})`;
|
|
8547
8538
|
}
|
|
8548
8539
|
} else if (this.options.backgroundImage) {
|
|
8549
|
-
const le = yield
|
|
8540
|
+
const le = yield Go(this.options.backgroundImage);
|
|
8550
8541
|
if (this.options.autoColor) {
|
|
8551
8542
|
const ce = Le._getAverageRGB(le);
|
|
8552
8543
|
this.options.colorDark = `rgb(${ce.r},${ce.g},${ce.b})`;
|
|
8553
8544
|
}
|
|
8554
|
-
g.drawImage(le, 0, 0, le.width, le.height, 0, 0,
|
|
8545
|
+
g.drawImage(le, 0, 0, le.width, le.height, 0, 0, D, D), g.rect(0, 0, D, D), g.fillStyle = P, g.fill();
|
|
8555
8546
|
} else
|
|
8556
|
-
g.rect(0, 0,
|
|
8547
|
+
g.rect(0, 0, D, D), g.fillStyle = this.options.colorLight, g.fill();
|
|
8557
8548
|
const G = Ne.getPatternPosition(this.qrCode.typeNumber), H = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || hn, ae = (1 - H) * 0.5;
|
|
8558
8549
|
for (let le = 0; le < _; le++)
|
|
8559
8550
|
for (let ce = 0; ce < _; ce++) {
|
|
@@ -8597,14 +8588,14 @@ class Le {
|
|
|
8597
8588
|
continue;
|
|
8598
8589
|
if (ve === me && we === me)
|
|
8599
8590
|
continue;
|
|
8600
|
-
Le._drawAlign(T, ve, we, k, $e, Ie, this.options.colorDark, ((L = (
|
|
8591
|
+
Le._drawAlign(T, ve, we, k, $e, Ie, this.options.colorDark, ((L = (S = this.options.components) === null || S === void 0 ? void 0 : S.alignment) === null || L === void 0 ? void 0 : L.protectors) || !1);
|
|
8601
8592
|
}
|
|
8602
8593
|
}
|
|
8603
|
-
if (U && (T.fillStyle = this.options.backgroundColor, T.fillRect(-w, -w,
|
|
8604
|
-
const le = yield
|
|
8594
|
+
if (U && (T.fillStyle = this.options.backgroundColor, T.fillRect(-w, -w, D, w), T.fillRect(-w, x, D, w), T.fillRect(x, -w, w, D), T.fillRect(-w, -w, w, D)), this.options.logoImage) {
|
|
8595
|
+
const le = yield Go(this.options.logoImage);
|
|
8605
8596
|
let ce = this.options.logoScale, ve = this.options.logoMargin, we = this.options.logoCornerRadius;
|
|
8606
8597
|
(ce <= 0 || ce >= 1) && (ce = 0.2), ve < 0 && (ve = 0), we < 0 && (we = 0);
|
|
8607
|
-
const Ae = x * ce, R = 0.5 * (
|
|
8598
|
+
const Ae = x * ce, R = 0.5 * (D - Ae), q = R;
|
|
8608
8599
|
T.restore(), T.fillStyle = this.options.logoBackgroundColor, T.save(), Le._prepareRoundedCornerClip(T, R - ve, q - ve, Ae + 2 * ve, Ae + 2 * ve, we + ve), T.clip();
|
|
8609
8600
|
const oe = T.globalCompositeOperation;
|
|
8610
8601
|
T.globalCompositeOperation = "destination-out", T.fill(), T.globalCompositeOperation = oe, T.restore(), T.save(), Le._prepareRoundedCornerClip(T, R, q, Ae, Ae, we), T.clip(), T.drawImage(le, R, q, Ae, Ae), T.restore(), T.save(), T.translate(w, w);
|
|
@@ -8615,23 +8606,23 @@ class Le {
|
|
|
8615
8606
|
le || (le = new Fe(I, I), le.setDelay(q.delay), le.setRepeat(0));
|
|
8616
8607
|
const { width: oe, height: ye } = q.dims;
|
|
8617
8608
|
ce || (ce = new st(oe, ye), ve = ce.getContext("2d"), ve.rect(0, 0, ce.width, ce.height), ve.fillStyle = "#ffffff", ve.fill()), (!we || !R || oe !== we.width || ye !== we.height) && (we = new st(oe, ye), Ae = we.getContext("2d"), R = Ae.createImageData(oe, ye)), R.data.set(q.patch), Ae.putImageData(R, 0, 0), ve.drawImage(we.getContext("2d").canvas, q.dims.left, q.dims.top);
|
|
8618
|
-
const Te = new st(
|
|
8619
|
-
ie.drawImage(ce.getContext("2d").canvas, 0, 0,
|
|
8609
|
+
const Te = new st(D, D), ie = Te.getContext("2d");
|
|
8610
|
+
ie.drawImage(ce.getContext("2d").canvas, 0, 0, D, D), ie.rect(0, 0, D, D), ie.fillStyle = P, ie.fill(), ie.drawImage(A.getContext("2d").canvas, 0, 0, D, D);
|
|
8620
8611
|
const O = new st(I, I), K = O.getContext("2d");
|
|
8621
8612
|
K.drawImage(Te.getContext("2d").canvas, 0, 0, I, I), le.addFrame(K.getImageData(0, 0, O.width, O.height).data);
|
|
8622
8613
|
}), !le)
|
|
8623
8614
|
throw new Error("No frames.");
|
|
8624
|
-
if (le.finish(),
|
|
8615
|
+
if (le.finish(), Ho(this.canvas)) {
|
|
8625
8616
|
const oe = le.stream().toFlattenUint8Array().reduce((ye, Te) => ye + String.fromCharCode(Te), "");
|
|
8626
8617
|
return Promise.resolve(`data:image/gif;base64,${window.btoa(oe)}`);
|
|
8627
8618
|
}
|
|
8628
8619
|
return Promise.resolve(Buffer.from(le.stream().toFlattenUint8Array()));
|
|
8629
8620
|
} else {
|
|
8630
|
-
g.drawImage(A.getContext("2d").canvas, 0, 0,
|
|
8621
|
+
g.drawImage(A.getContext("2d").canvas, 0, 0, D, D), T.drawImage(B.getContext("2d").canvas, -w, -w, D, D);
|
|
8631
8622
|
const le = new st(I, I);
|
|
8632
8623
|
le.getContext("2d").drawImage(A.getContext("2d").canvas, 0, 0, I, I), this.canvas = le;
|
|
8633
8624
|
const ve = this.options.gifBackground ? "gif" : "png";
|
|
8634
|
-
return
|
|
8625
|
+
return Ho(this.canvas) ? Promise.resolve(this.canvas.toDataURL(ve)) : Promise.resolve(this.canvas.toBuffer(ve));
|
|
8635
8626
|
}
|
|
8636
8627
|
});
|
|
8637
8628
|
}
|
|
@@ -8673,7 +8664,7 @@ Le.defaultOptions = {
|
|
|
8673
8664
|
logoBackgroundColor: "#ffffff",
|
|
8674
8665
|
backgroundColor: "#ffffff"
|
|
8675
8666
|
};
|
|
8676
|
-
function
|
|
8667
|
+
function Ho(n) {
|
|
8677
8668
|
try {
|
|
8678
8669
|
return n instanceof HTMLElement;
|
|
8679
8670
|
} catch {
|
|
@@ -8948,7 +8939,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8948
8939
|
if (I.value == "")
|
|
8949
8940
|
return y(m[I.keyName]) ? ct(m[I.keyName]).format("YYYY-MM-DD HH:mm:ss") : N();
|
|
8950
8941
|
}
|
|
8951
|
-
function
|
|
8942
|
+
function S(I, m) {
|
|
8952
8943
|
return I.filter((w) => {
|
|
8953
8944
|
if (w.showIf != "1") {
|
|
8954
8945
|
let M, U;
|
|
@@ -8989,10 +8980,10 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8989
8980
|
tableLayout: "auto"
|
|
8990
8981
|
}
|
|
8991
8982
|
}, {
|
|
8992
|
-
TEXT: C(({ col: x, row:
|
|
8993
|
-
y(p(x,
|
|
8983
|
+
TEXT: C(({ col: x, row: D }) => [
|
|
8984
|
+
y(p(x, D)) ? (v(), W("span", qi, [
|
|
8994
8985
|
ne("span", {
|
|
8995
|
-
innerHTML: p(x,
|
|
8986
|
+
innerHTML: p(x, D),
|
|
8996
8987
|
style: { "white-space": "pre-wrap" }
|
|
8997
8988
|
}, null, 8, Qi)
|
|
8998
8989
|
])) : (v(), W("span", {
|
|
@@ -9000,25 +8991,25 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9000
8991
|
innerHTML: N()
|
|
9001
8992
|
}, null, 8, Xi))
|
|
9002
8993
|
]),
|
|
9003
|
-
ENUMS: C(({ col: x, row:
|
|
8994
|
+
ENUMS: C(({ col: x, row: D }) => [
|
|
9004
8995
|
ne("span", {
|
|
9005
|
-
innerHTML: j(x,
|
|
8996
|
+
innerHTML: j(x, D)
|
|
9006
8997
|
}, null, 8, Zi)
|
|
9007
8998
|
]),
|
|
9008
|
-
DATE: C(({ col: x, row:
|
|
8999
|
+
DATE: C(({ col: x, row: D }) => [
|
|
9009
9000
|
ne("span", {
|
|
9010
|
-
innerHTML: E(x,
|
|
9001
|
+
innerHTML: E(x, D)
|
|
9011
9002
|
}, null, 8, Ji)
|
|
9012
9003
|
]),
|
|
9013
|
-
QR_CODE: C(({ col: x, row:
|
|
9004
|
+
QR_CODE: C(({ col: x, row: D }) => [
|
|
9014
9005
|
F(M, null, {
|
|
9015
9006
|
content: C(() => [
|
|
9016
9007
|
F(Yi, {
|
|
9017
|
-
text: p(x,
|
|
9008
|
+
text: p(x, D),
|
|
9018
9009
|
size: 80,
|
|
9019
9010
|
margin: 0
|
|
9020
9011
|
}, null, 8, ["text"]),
|
|
9021
|
-
ne("div", eu, te(
|
|
9012
|
+
ne("div", eu, te(D.code), 1)
|
|
9022
9013
|
]),
|
|
9023
9014
|
default: C(() => [
|
|
9024
9015
|
F(w, {
|
|
@@ -9034,21 +9025,21 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9034
9025
|
_: 2
|
|
9035
9026
|
}, 1024)
|
|
9036
9027
|
]),
|
|
9037
|
-
FORM_ITEM: C(({ col: x, row:
|
|
9028
|
+
FORM_ITEM: C(({ col: x, row: D }) => [
|
|
9038
9029
|
F(zs, {
|
|
9039
9030
|
viewName: I.viewName,
|
|
9040
9031
|
col: x,
|
|
9041
|
-
row:
|
|
9032
|
+
row: D,
|
|
9042
9033
|
onBlur: _
|
|
9043
9034
|
}, null, 8, ["viewName", "col", "row"])
|
|
9044
9035
|
]),
|
|
9045
|
-
IMAGE: C(({ col: x, row:
|
|
9036
|
+
IMAGE: C(({ col: x, row: D }) => [
|
|
9046
9037
|
ne("div", {
|
|
9047
9038
|
class: Z(`${h(Pt)}__imageViewer`)
|
|
9048
9039
|
}, [
|
|
9049
|
-
p(x,
|
|
9040
|
+
p(x, D) ? (v(), $(P, {
|
|
9050
9041
|
key: 0,
|
|
9051
|
-
images: [p(x,
|
|
9042
|
+
images: [p(x, D)]
|
|
9052
9043
|
}, {
|
|
9053
9044
|
trigger: C(({ open: A }) => [
|
|
9054
9045
|
ne("div", {
|
|
@@ -9056,7 +9047,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9056
9047
|
}, [
|
|
9057
9048
|
F(U, {
|
|
9058
9049
|
class: Z(`${h(Pt)}__imageViewer--image-img`),
|
|
9059
|
-
src: p(x,
|
|
9050
|
+
src: p(x, D),
|
|
9060
9051
|
shape: "round",
|
|
9061
9052
|
fit: "scale-down"
|
|
9062
9053
|
}, {
|
|
@@ -9097,14 +9088,14 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9097
9088
|
], 2))
|
|
9098
9089
|
], 2)
|
|
9099
9090
|
]),
|
|
9100
|
-
BUTTONS: C(({ col: x, row:
|
|
9091
|
+
BUTTONS: C(({ col: x, row: D }) => [
|
|
9101
9092
|
F(k, { size: "0" }, {
|
|
9102
9093
|
default: C(() => [
|
|
9103
|
-
(v(!0), W(de, null, Se(
|
|
9094
|
+
(v(!0), W(de, null, Se(S(x.buttons, D), (A) => (v(), $(w, {
|
|
9104
9095
|
theme: "primary",
|
|
9105
9096
|
variant: "text",
|
|
9106
9097
|
key: A.buttonId,
|
|
9107
|
-
onClick: (T) => L(A,
|
|
9098
|
+
onClick: (T) => L(A, D)
|
|
9108
9099
|
}, {
|
|
9109
9100
|
default: C(() => [
|
|
9110
9101
|
re(te(A.name), 1)
|
|
@@ -9163,20 +9154,20 @@ const ou = /* @__PURE__ */ ht(nu, [["__scopeId", "data-v-45aeff49"]]), au = /* @
|
|
|
9163
9154
|
onChange: d
|
|
9164
9155
|
}, {
|
|
9165
9156
|
default: C(() => [
|
|
9166
|
-
(v(!0), W(de, null, Se(r.value, (
|
|
9167
|
-
key: `${L}${
|
|
9157
|
+
(v(!0), W(de, null, Se(r.value, (S, L) => (v(), $(j, {
|
|
9158
|
+
key: `${L}${S.title}`,
|
|
9168
9159
|
value: L,
|
|
9169
|
-
label:
|
|
9160
|
+
label: S.title,
|
|
9170
9161
|
destroyOnHide: !0
|
|
9171
9162
|
}, {
|
|
9172
9163
|
default: C(() => [
|
|
9173
9164
|
F(N, { bordered: !1 }, {
|
|
9174
9165
|
content: C(() => [
|
|
9175
|
-
|
|
9176
|
-
key:
|
|
9166
|
+
S.board ? (v(), $(h(kn), {
|
|
9167
|
+
key: S.title,
|
|
9177
9168
|
viewName: p.viewName,
|
|
9178
|
-
board:
|
|
9179
|
-
serverProps:
|
|
9169
|
+
board: S.board,
|
|
9170
|
+
serverProps: S.serverProps,
|
|
9180
9171
|
onCloseDialog: f
|
|
9181
9172
|
}, null, 8, ["viewName", "board", "serverProps"])) : X("", !0)
|
|
9182
9173
|
]),
|
|
@@ -9203,7 +9194,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9203
9194
|
},
|
|
9204
9195
|
emits: ["close-dialog"],
|
|
9205
9196
|
setup(n, { emit: e }) {
|
|
9206
|
-
const { T: t } = ke(), o = ft(), a = rt(), l = Ve(), r =
|
|
9197
|
+
const { T: t } = ke(), o = ft(), a = rt(), l = Ve(), r = ao(), u = lo(), i = n, { reload: d } = Ra(), s = e, c = V(() => {
|
|
9207
9198
|
var O;
|
|
9208
9199
|
return (O = i.board) == null ? void 0 : O.boardType;
|
|
9209
9200
|
}), f = V(() => {
|
|
@@ -9212,7 +9203,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9212
9203
|
}), p = Y([]), y = Y({}), N = V(() => {
|
|
9213
9204
|
var O;
|
|
9214
9205
|
return (O = i.board) == null ? void 0 : O.header;
|
|
9215
|
-
}), j = Y({}), E = Y({}),
|
|
9206
|
+
}), j = Y({}), E = Y({}), S = V(
|
|
9216
9207
|
() => {
|
|
9217
9208
|
var O, K;
|
|
9218
9209
|
return N.value && (Ct(N.value.buttons) && N.value.buttons.length || Ct((O = N.value.searchBar) == null ? void 0 : O.filters) && ((K = N.value.searchBar) == null ? void 0 : K.filters.length));
|
|
@@ -9277,9 +9268,9 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9277
9268
|
pagination: se
|
|
9278
9269
|
});
|
|
9279
9270
|
}
|
|
9280
|
-
|
|
9271
|
+
qo((O, K) => {
|
|
9281
9272
|
i.from != "dialog" && k(K.fullPath);
|
|
9282
|
-
}),
|
|
9273
|
+
}), Yo((O, K) => {
|
|
9283
9274
|
i.from != "dialog" && k(K.fullPath);
|
|
9284
9275
|
}), De(
|
|
9285
9276
|
() => i.board,
|
|
@@ -9290,7 +9281,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9290
9281
|
deep: !0
|
|
9291
9282
|
}
|
|
9292
9283
|
);
|
|
9293
|
-
const x = Y(!1),
|
|
9284
|
+
const x = Y(!1), D = Y(!1), A = Y(""), T = Y({}), B = Y(), g = Y();
|
|
9294
9285
|
async function b(O, K = {}) {
|
|
9295
9286
|
if ((O ?? "") != "") {
|
|
9296
9287
|
K.viewName = O;
|
|
@@ -9307,7 +9298,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9307
9298
|
try {
|
|
9308
9299
|
switch (O.action) {
|
|
9309
9300
|
case "VIEW_BY_DIALOG": {
|
|
9310
|
-
(O.view ?? "") != "" ? (A.value = "view", await b(O.view), T.value = O, u.initPropsSource({ ...K, ...i.serverProps }), await z(!0),
|
|
9301
|
+
(O.view ?? "") != "" ? (A.value = "view", await b(O.view), T.value = O, u.initPropsSource({ ...K, ...i.serverProps }), await z(!0), D.value = !0) : (O.link ?? "") != "" && (A.value = "iframe", T.value = O, u.initPropsSource(K), B.value = {}, g.value = (se = O.props) == null ? void 0 : se.map((pe) => pe.keyName), await z(!0), D.value = !0);
|
|
9311
9302
|
break;
|
|
9312
9303
|
}
|
|
9313
9304
|
case "VIEW": {
|
|
@@ -9416,7 +9407,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9416
9407
|
(Ce = O == null ? void 0 : O.props) == null || Ce.forEach((xe) => {
|
|
9417
9408
|
xe.keyName && (K[xe.keyName] ?? "") != "" && (pe[xe.keyName] = K[xe.keyName]);
|
|
9418
9409
|
});
|
|
9419
|
-
const be =
|
|
9410
|
+
const be = _o.decode(dt.render(O.link, { item: K }));
|
|
9420
9411
|
if (O.outLink) {
|
|
9421
9412
|
const xe = wt(`${location.origin}${be}`, {
|
|
9422
9413
|
...pe,
|
|
@@ -9464,13 +9455,13 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9464
9455
|
);
|
|
9465
9456
|
if (be) {
|
|
9466
9457
|
const { url: xe, filename: Je } = be;
|
|
9467
|
-
|
|
9458
|
+
Fo(xe, Je, "blob");
|
|
9468
9459
|
}
|
|
9469
9460
|
} else if ((O.downloadUrl ?? "") != "") {
|
|
9470
|
-
const be =
|
|
9461
|
+
const be = _o.decode(dt.render(O.downloadUrl, { item: K })), xe = wt(be, pe, !1);
|
|
9471
9462
|
if ((be ?? "") != "" && (xe ?? !1)) {
|
|
9472
9463
|
const Je = be.split("/").slice(-1)[0];
|
|
9473
|
-
|
|
9464
|
+
Fo(xe, Je, "file");
|
|
9474
9465
|
} else
|
|
9475
9466
|
he.info(`${t.t("未设置下载链接")}`);
|
|
9476
9467
|
}
|
|
@@ -9594,7 +9585,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9594
9585
|
}
|
|
9595
9586
|
}
|
|
9596
9587
|
function ye() {
|
|
9597
|
-
|
|
9588
|
+
D.value = !1, setTimeout(() => {
|
|
9598
9589
|
z(!1);
|
|
9599
9590
|
});
|
|
9600
9591
|
}
|
|
@@ -9613,7 +9604,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9613
9604
|
size: "medium"
|
|
9614
9605
|
}, {
|
|
9615
9606
|
default: C(() => [
|
|
9616
|
-
|
|
9607
|
+
S.value ? (v(), $(h(js), {
|
|
9617
9608
|
key: 0,
|
|
9618
9609
|
viewName: O.viewName,
|
|
9619
9610
|
board: O.board,
|
|
@@ -9662,9 +9653,9 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9662
9653
|
key: 0,
|
|
9663
9654
|
ref: "dialogRef",
|
|
9664
9655
|
dialogType: A.value,
|
|
9665
|
-
isDialogVisible:
|
|
9656
|
+
isDialogVisible: D.value,
|
|
9666
9657
|
"onUpdate:isDialogVisible": [
|
|
9667
|
-
K[0] || (K[0] = (ee) =>
|
|
9658
|
+
K[0] || (K[0] = (ee) => D.value = ee),
|
|
9668
9659
|
ye
|
|
9669
9660
|
],
|
|
9670
9661
|
dialogViewInfo: T.value,
|
|
@@ -9686,27 +9677,37 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9686
9677
|
config: {}
|
|
9687
9678
|
},
|
|
9688
9679
|
setup(n) {
|
|
9689
|
-
const e = ft(), t = rt(), o = Ve(), a = kt(), l =
|
|
9680
|
+
const e = ft(), t = rt(), o = Ve(), a = kt(), l = ao(), r = n, u = Y(""), i = V(() => o.isUserLogin), d = V(() => o.homeUrl);
|
|
9690
9681
|
Jt(async () => {
|
|
9691
9682
|
i.value || (await o.initUserConfig(r.config), await a.initTabMenu());
|
|
9692
9683
|
}), Ue(async () => {
|
|
9693
|
-
|
|
9684
|
+
var S;
|
|
9685
|
+
if (l.initSocket(), window.addEventListener("onSocketReload", () => {
|
|
9694
9686
|
o.toggleGlobalReload();
|
|
9695
|
-
}), t.
|
|
9687
|
+
}), (S = t.query) != null && S.redirect) {
|
|
9688
|
+
const L = t.query, _ = decodeURIComponent(L.redirect), I = no.parse(_.split("?")[1]), m = _.split("?")[0];
|
|
9689
|
+
m === "/view" && Object.keys(I).length == 0 ? e.push(d.value) : e.push({
|
|
9690
|
+
path: m,
|
|
9691
|
+
query: {
|
|
9692
|
+
...I
|
|
9693
|
+
}
|
|
9694
|
+
});
|
|
9695
|
+
} else
|
|
9696
|
+
t.fullPath === "/view" && e.push(d.value);
|
|
9696
9697
|
});
|
|
9697
9698
|
const s = V(() => {
|
|
9698
|
-
var
|
|
9699
|
-
return t.query && ((
|
|
9699
|
+
var S;
|
|
9700
|
+
return t.query && ((S = t.query) != null && S.viewName) ? t.query.viewName : null;
|
|
9700
9701
|
}), c = V(() => {
|
|
9701
9702
|
if (We(t.query))
|
|
9702
9703
|
return {};
|
|
9703
9704
|
{
|
|
9704
|
-
const { viewName:
|
|
9705
|
+
const { viewName: S, ...L } = t.query;
|
|
9705
9706
|
return L;
|
|
9706
9707
|
}
|
|
9707
9708
|
}), f = Y(), p = V(() => {
|
|
9708
|
-
var
|
|
9709
|
-
return ((
|
|
9709
|
+
var S;
|
|
9710
|
+
return ((S = f.value) == null ? void 0 : S.viewName) ?? "";
|
|
9710
9711
|
});
|
|
9711
9712
|
De(
|
|
9712
9713
|
() => s.value,
|
|
@@ -9718,10 +9719,10 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9718
9719
|
immediate: !0
|
|
9719
9720
|
}
|
|
9720
9721
|
);
|
|
9721
|
-
async function y(
|
|
9722
|
+
async function y(S, L, _ = void 0) {
|
|
9722
9723
|
var w;
|
|
9723
9724
|
const I = {};
|
|
9724
|
-
I.viewName =
|
|
9725
|
+
I.viewName = S;
|
|
9725
9726
|
let m = "";
|
|
9726
9727
|
We(L) || (m = JSON.stringify(L)), I.props = m;
|
|
9727
9728
|
try {
|
|
@@ -9740,17 +9741,17 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9740
9741
|
}
|
|
9741
9742
|
}
|
|
9742
9743
|
const N = V(() => o.isGlobalLoaded), j = V(() => {
|
|
9743
|
-
var
|
|
9744
|
-
return ((
|
|
9744
|
+
var S;
|
|
9745
|
+
return ((S = f.value) == null ? void 0 : S.boards.map((L) => L.boardType)) ?? [];
|
|
9745
9746
|
}), E = V(() => {
|
|
9746
|
-
var
|
|
9747
|
+
var S;
|
|
9747
9748
|
return {
|
|
9748
|
-
...(
|
|
9749
|
+
...(S = j.value) != null && S.includes("tab") ? {
|
|
9749
9750
|
title: u.value
|
|
9750
9751
|
} : {}
|
|
9751
9752
|
};
|
|
9752
9753
|
});
|
|
9753
|
-
return At(ia, u), (
|
|
9754
|
+
return At(ia, u), (S, L) => (v(), $(h(ca), Ee({ key: u.value }, E.value), {
|
|
9754
9755
|
default: C(() => {
|
|
9755
9756
|
var _;
|
|
9756
9757
|
return [
|
|
@@ -9774,7 +9775,7 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9774
9775
|
* (c) 2023 tdesign
|
|
9775
9776
|
* @license MIT
|
|
9776
9777
|
*/
|
|
9777
|
-
var
|
|
9778
|
+
var fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9778
9779
|
/**
|
|
9779
9780
|
* tdesign v1.5.1
|
|
9780
9781
|
* (c) 2023 tdesign
|
|
@@ -9784,7 +9785,7 @@ var su = { exports: {} };
|
|
|
9784
9785
|
(function(n, e) {
|
|
9785
9786
|
(function(t, o) {
|
|
9786
9787
|
n.exports = o();
|
|
9787
|
-
})(
|
|
9788
|
+
})(fo, function() {
|
|
9788
9789
|
return {
|
|
9789
9790
|
name: "en",
|
|
9790
9791
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -10027,8 +10028,8 @@ var za = { exports: {} };
|
|
|
10027
10028
|
(function(n, e) {
|
|
10028
10029
|
(function(t, o) {
|
|
10029
10030
|
n.exports = o();
|
|
10030
|
-
})(
|
|
10031
|
-
var t = 1e3, o = 6e4, a = 36e5, l = "millisecond", r = "second", u = "minute", i = "hour", d = "day", s = "week", c = "month", f = "quarter", p = "year", y = "date", N = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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,
|
|
10031
|
+
})(fo, function() {
|
|
10032
|
+
var t = 1e3, o = 6e4, a = 36e5, l = "millisecond", r = "second", u = "minute", i = "hour", d = "day", s = "week", c = "month", f = "quarter", p = "year", y = "date", N = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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, S = {
|
|
10032
10033
|
name: "en",
|
|
10033
10034
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
10034
10035
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -10045,9 +10046,9 @@ var za = { exports: {} };
|
|
|
10045
10046
|
var T = -A.utcOffset(), B = Math.abs(T), g = Math.floor(B / 60), b = B % 60;
|
|
10046
10047
|
return (T <= 0 ? "+" : "-") + L(g, 2, "0") + ":" + L(b, 2, "0");
|
|
10047
10048
|
},
|
|
10048
|
-
m: function
|
|
10049
|
+
m: function D(A, T) {
|
|
10049
10050
|
if (A.date() < T.date())
|
|
10050
|
-
return -
|
|
10051
|
+
return -D(T, A);
|
|
10051
10052
|
var B = 12 * (T.year() - A.year()) + (T.month() - A.month()), g = A.clone().add(B, c), b = T - g < 0, z = A.clone().add(B + (b ? -1 : 1), c);
|
|
10052
10053
|
return +(-(B + (T - g) / (b ? g - z : z - g)) || 0);
|
|
10053
10054
|
},
|
|
@@ -10072,10 +10073,10 @@ var za = { exports: {} };
|
|
|
10072
10073
|
return A === void 0;
|
|
10073
10074
|
}
|
|
10074
10075
|
}, I = "en", m = {};
|
|
10075
|
-
m[I] =
|
|
10076
|
+
m[I] = S;
|
|
10076
10077
|
var w = function(A) {
|
|
10077
10078
|
return A instanceof k;
|
|
10078
|
-
}, M = function
|
|
10079
|
+
}, M = function D(A, T, B) {
|
|
10079
10080
|
var g;
|
|
10080
10081
|
if (!A)
|
|
10081
10082
|
return I;
|
|
@@ -10084,7 +10085,7 @@ var za = { exports: {} };
|
|
|
10084
10085
|
m[b] && (g = b), T && (m[b] = T, g = b);
|
|
10085
10086
|
var z = A.split("-");
|
|
10086
10087
|
if (!g && z.length > 1)
|
|
10087
|
-
return
|
|
10088
|
+
return D(z[0]);
|
|
10088
10089
|
} else {
|
|
10089
10090
|
var G = A.name;
|
|
10090
10091
|
m[G] = A, g = G;
|
|
@@ -10096,8 +10097,8 @@ var za = { exports: {} };
|
|
|
10096
10097
|
var B = Mn(T) == "object" ? T : {};
|
|
10097
10098
|
return B.date = A, B.args = arguments, new k(B);
|
|
10098
10099
|
}, P = _;
|
|
10099
|
-
P.l = M, P.i = w, P.w = function(
|
|
10100
|
-
return U(
|
|
10100
|
+
P.l = M, P.i = w, P.w = function(D, A) {
|
|
10101
|
+
return U(D, {
|
|
10101
10102
|
locale: A.$L,
|
|
10102
10103
|
utc: A.$u,
|
|
10103
10104
|
x: A.$x,
|
|
@@ -10105,10 +10106,10 @@ var za = { exports: {} };
|
|
|
10105
10106
|
});
|
|
10106
10107
|
};
|
|
10107
10108
|
var k = function() {
|
|
10108
|
-
function
|
|
10109
|
+
function D(T) {
|
|
10109
10110
|
this.$L = M(T.locale, null, !0), this.parse(T);
|
|
10110
10111
|
}
|
|
10111
|
-
var A =
|
|
10112
|
+
var A = D.prototype;
|
|
10112
10113
|
return A.parse = function(T) {
|
|
10113
10114
|
this.$d = function(B) {
|
|
10114
10115
|
var g = B.date, b = B.utc;
|
|
@@ -10328,16 +10329,16 @@ var za = { exports: {} };
|
|
|
10328
10329
|
return this.$d.toISOString();
|
|
10329
10330
|
}, A.toString = function() {
|
|
10330
10331
|
return this.$d.toUTCString();
|
|
10331
|
-
},
|
|
10332
|
+
}, D;
|
|
10332
10333
|
}(), x = k.prototype;
|
|
10333
|
-
return U.prototype = x, [["$ms", l], ["$s", r], ["$m", u], ["$H", i], ["$W", d], ["$M", c], ["$y", p], ["$D", y]].forEach(function(
|
|
10334
|
-
x[
|
|
10335
|
-
return this.$g(A,
|
|
10334
|
+
return U.prototype = x, [["$ms", l], ["$s", r], ["$m", u], ["$H", i], ["$W", d], ["$M", c], ["$y", p], ["$D", y]].forEach(function(D) {
|
|
10335
|
+
x[D[1]] = function(A) {
|
|
10336
|
+
return this.$g(A, D[0], D[1]);
|
|
10336
10337
|
};
|
|
10337
|
-
}), U.extend = function(
|
|
10338
|
-
return
|
|
10339
|
-
}, U.locale = M, U.isDayjs = w, U.unix = function(
|
|
10340
|
-
return U(1e3 *
|
|
10338
|
+
}), U.extend = function(D, A) {
|
|
10339
|
+
return D.$i || (D(A, k, U), D.$i = !0), U;
|
|
10340
|
+
}, U.locale = M, U.isDayjs = w, U.unix = function(D) {
|
|
10341
|
+
return U(1e3 * D);
|
|
10341
10342
|
}, U.en = m[I], U.Ls = m, U.p = {}, U;
|
|
10342
10343
|
});
|
|
10343
10344
|
})(za);
|
|
@@ -10350,7 +10351,7 @@ var uu = { exports: {} };
|
|
|
10350
10351
|
(function(n, e) {
|
|
10351
10352
|
(function(t, o) {
|
|
10352
10353
|
n.exports = o(za.exports);
|
|
10353
|
-
})(
|
|
10354
|
+
})(fo, function(t) {
|
|
10354
10355
|
function o(r) {
|
|
10355
10356
|
return r && Mn(r) == "object" && "default" in r ? r : {
|
|
10356
10357
|
default: r
|
|
@@ -10653,7 +10654,7 @@ const du = { class: "gConfigProvider" }, mu = /* @__PURE__ */ ue({
|
|
|
10653
10654
|
}, 8, ["globalConfig"])
|
|
10654
10655
|
]));
|
|
10655
10656
|
}
|
|
10656
|
-
}), fu = Ye(mu), pu = "@gonsin/gview", hu = "2.0.
|
|
10657
|
+
}), fu = Ye(mu), pu = "@gonsin/gview", hu = "2.0.92", vu = "dist/index.mjs", gu = "dist/types/index.d.ts", yu = [
|
|
10657
10658
|
"dist",
|
|
10658
10659
|
"README.md",
|
|
10659
10660
|
"CHANGELOG.md"
|
|
@@ -10738,18 +10739,18 @@ const du = { class: "gConfigProvider" }, mu = /* @__PURE__ */ ue({
|
|
|
10738
10739
|
scripts: bu,
|
|
10739
10740
|
dependencies: wu,
|
|
10740
10741
|
devDependencies: Tu
|
|
10741
|
-
},
|
|
10742
|
+
}, po = {
|
|
10742
10743
|
getMenus: "/restapi/menus",
|
|
10743
10744
|
saveMenus: "/restapi/menus"
|
|
10744
10745
|
};
|
|
10745
10746
|
function Cu(n) {
|
|
10746
|
-
return Ze.put(
|
|
10747
|
+
return Ze.put(po.saveMenus, n);
|
|
10747
10748
|
}
|
|
10748
10749
|
function ku() {
|
|
10749
|
-
return Ze.post(
|
|
10750
|
+
return Ze.post(po.getMenus);
|
|
10750
10751
|
}
|
|
10751
10752
|
function Mu() {
|
|
10752
|
-
return Ze.post(
|
|
10753
|
+
return Ze.post(po.getMenus, no.stringify({ currentMenu: !1 }));
|
|
10753
10754
|
}
|
|
10754
10755
|
const _u = [
|
|
10755
10756
|
{
|
|
@@ -11368,7 +11369,7 @@ const _u = [
|
|
|
11368
11369
|
type: "error"
|
|
11369
11370
|
}
|
|
11370
11371
|
]
|
|
11371
|
-
}, N = Y(), j = V(() => N.value.tTableRef), E = Y(),
|
|
11372
|
+
}, N = Y(), j = V(() => N.value.tTableRef), E = Y(), S = V(() => E.value.tFormRef), L = V(() => {
|
|
11372
11373
|
var R;
|
|
11373
11374
|
return (R = j.value) == null ? void 0 : R.getTreeNode();
|
|
11374
11375
|
}), _ = V(() => {
|
|
@@ -11406,7 +11407,7 @@ const _u = [
|
|
|
11406
11407
|
label: `${R.title}-${R.url}`,
|
|
11407
11408
|
value: R.url
|
|
11408
11409
|
})));
|
|
11409
|
-
function
|
|
11410
|
+
function D(R) {
|
|
11410
11411
|
return P.value.length ? P.value.some((q) => q.url === R.url) : !1;
|
|
11411
11412
|
}
|
|
11412
11413
|
async function A() {
|
|
@@ -11504,7 +11505,7 @@ const _u = [
|
|
|
11504
11505
|
}
|
|
11505
11506
|
}
|
|
11506
11507
|
function me(R) {
|
|
11507
|
-
p.value = Xe(R), R.isGroup ? d.value = "editGroup" : (d.value = "editItem", p.value.isInner =
|
|
11508
|
+
p.value = Xe(R), R.isGroup ? d.value = "editGroup" : (d.value = "editItem", p.value.isInner = D(R)), i.value = !0;
|
|
11508
11509
|
}
|
|
11509
11510
|
function J(R) {
|
|
11510
11511
|
p.value = Xe(R), i.value = !0, d.value = "moveItemTo";
|
|
@@ -11516,7 +11517,7 @@ const _u = [
|
|
|
11516
11517
|
}
|
|
11517
11518
|
function Re() {
|
|
11518
11519
|
var R;
|
|
11519
|
-
(R =
|
|
11520
|
+
(R = S.value) == null || R.reset(), p.value = {
|
|
11520
11521
|
edificeKey: l.value,
|
|
11521
11522
|
parent: null,
|
|
11522
11523
|
name: "",
|
|
@@ -11531,7 +11532,7 @@ const _u = [
|
|
|
11531
11532
|
}
|
|
11532
11533
|
function _e() {
|
|
11533
11534
|
var R;
|
|
11534
|
-
(R =
|
|
11535
|
+
(R = S.value) == null || R.validate().then((q) => {
|
|
11535
11536
|
var oe, ye, Te, ie, O, K, se;
|
|
11536
11537
|
if (!Object.keys(q).length)
|
|
11537
11538
|
d.value == "addGroup" ? (p.value.edificeKey = l.value, p.value.children && ((oe = p.value.children) != null && oe.length) && p.value.children.forEach((ee) => {
|
|
@@ -11837,7 +11838,7 @@ const _u = [
|
|
|
11837
11838
|
}
|
|
11838
11839
|
}, {
|
|
11839
11840
|
default: C(() => [
|
|
11840
|
-
F(h(
|
|
11841
|
+
F(h(ro), {
|
|
11841
11842
|
ref_key: "commonFormRef",
|
|
11842
11843
|
ref: E,
|
|
11843
11844
|
commonFormProps: {
|
|
@@ -12330,7 +12331,7 @@ function Hu(n, e) {
|
|
|
12330
12331
|
}
|
|
12331
12332
|
}
|
|
12332
12333
|
function Nc(n) {
|
|
12333
|
-
Ve(n), kt(n),
|
|
12334
|
+
Ve(n), kt(n), lo(n), ao(n);
|
|
12334
12335
|
}
|
|
12335
12336
|
const { i18n: Ec } = ke({
|
|
12336
12337
|
project: "venus"
|
|
@@ -12344,7 +12345,7 @@ export {
|
|
|
12344
12345
|
El as DEFAULT_THEME_CONFIG,
|
|
12345
12346
|
ss as GColumnController,
|
|
12346
12347
|
ma as GCommonDialog,
|
|
12347
|
-
|
|
12348
|
+
ro as GCommonForm,
|
|
12348
12349
|
zr as GCommonHeader,
|
|
12349
12350
|
fa as GCommonTable,
|
|
12350
12351
|
fu as GConfigProvider,
|
|
@@ -12354,7 +12355,7 @@ export {
|
|
|
12354
12355
|
Ic as GSettingDialog,
|
|
12355
12356
|
Xn as GUploader,
|
|
12356
12357
|
Vn as INIT_WS_MODEL,
|
|
12357
|
-
|
|
12358
|
+
Lo as LANG_CONFIG,
|
|
12358
12359
|
nn as LOCAL_CONFIG,
|
|
12359
12360
|
dc as LOCAL_DATA_ID,
|
|
12360
12361
|
Pn as LOCAL_INIT_TAB_MENU_LIST,
|
|
@@ -12362,7 +12363,7 @@ export {
|
|
|
12362
12363
|
Xt as LOCAL_SESSION_ID,
|
|
12363
12364
|
on as LOCAL_SIDE_MENU_CONFIG,
|
|
12364
12365
|
xn as LOCAL_TAB_MENU,
|
|
12365
|
-
|
|
12366
|
+
Io as LOCAL_THEME_CONFIG,
|
|
12366
12367
|
Nl as LOCAL_USER,
|
|
12367
12368
|
xc as NProgress,
|
|
12368
12369
|
pc as PROJECT_PREFIX,
|
|
@@ -12371,8 +12372,8 @@ export {
|
|
|
12371
12372
|
ln as SESSION_COLUMN_DATA,
|
|
12372
12373
|
an as SESSION_FORM_DATA_CACHE,
|
|
12373
12374
|
ea as StorageUtils,
|
|
12374
|
-
|
|
12375
|
-
|
|
12375
|
+
Do as TOKEN_EXPIRED_TIME,
|
|
12376
|
+
So as TOKEN_NAME,
|
|
12376
12377
|
$l as WS_INTERVAL_TIMEOUT,
|
|
12377
12378
|
Bl as WS_RESET_TIMEOUT,
|
|
12378
12379
|
Fl as WS_SERVICE_URL,
|
|
@@ -12386,12 +12387,12 @@ export {
|
|
|
12386
12387
|
Ac as default,
|
|
12387
12388
|
hc as dialogClass,
|
|
12388
12389
|
yn as dialogPluginClass,
|
|
12389
|
-
|
|
12390
|
+
Fo as downloadFile,
|
|
12390
12391
|
qn as evalContext,
|
|
12391
12392
|
Jl as filterTreeValues,
|
|
12392
12393
|
Yn as flattenMenuData,
|
|
12393
12394
|
Ol as formClass,
|
|
12394
|
-
|
|
12395
|
+
No as formItemClass,
|
|
12395
12396
|
_t as gLoginClass,
|
|
12396
12397
|
bn as generateMenuTree,
|
|
12397
12398
|
na as getBrandColor,
|
|
@@ -12417,10 +12418,10 @@ export {
|
|
|
12417
12418
|
wn as isFormVoid,
|
|
12418
12419
|
Dt as isFunction,
|
|
12419
12420
|
mt as isNull,
|
|
12420
|
-
|
|
12421
|
+
Eo as isNullAndUnDef,
|
|
12421
12422
|
We as isNullOrUnDef,
|
|
12422
12423
|
yc as isNumber,
|
|
12423
|
-
|
|
12424
|
+
oo as isObject,
|
|
12424
12425
|
en as isOuterUrl,
|
|
12425
12426
|
Wl as isPromise,
|
|
12426
12427
|
Zl as isResourceUrl,
|
|
@@ -12442,9 +12443,9 @@ export {
|
|
|
12442
12443
|
Ln as useCacheStore,
|
|
12443
12444
|
sa as useColumnStore,
|
|
12444
12445
|
Bc as useI18n,
|
|
12445
|
-
|
|
12446
|
+
lo as usePropsStore,
|
|
12446
12447
|
Ve as useSettingStore,
|
|
12447
|
-
|
|
12448
|
+
ao as useSocketStore,
|
|
12448
12449
|
kt as useTabMenuStore,
|
|
12449
12450
|
Gl as v,
|
|
12450
12451
|
Ye as withInstall
|