@utogether/udp-core 1.0.1-beta.21 → 1.0.1-beta.22
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/{403-B_l9Q9w_.js → 403-B87JSuhn.js} +1 -1
- package/dist/{404-33KZO3Vz.js → 404-BhiUKT1b.js} +1 -1
- package/dist/{500-oI74ZkQH.js → 500-2G6eyDeT.js} +1 -1
- package/dist/{AuthorityInfo-CNoxrmPS.js → AuthorityInfo-Bl4_zDot.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js → AuthorityInfo.vue_vue_type_style_index_0_lang-92i5Oriz.js} +1 -1
- package/dist/{Company-DOCRUvUs.js → Company-CbTh7_bX.js} +3 -3
- package/dist/{CompanyPanel-Do2JlJ3U.js → CompanyPanel-BVEYMQKM.js} +1 -1
- package/dist/{Department-BAlx8Am2.js → Department-Cu83Buy8.js} +3 -3
- package/dist/{DepartmentPanel-BvQUkRaM.js → DepartmentPanel-CO76buwO.js} +1 -1
- package/dist/{DesignPanel-BMr-c76z.js → DesignPanel-DDgVNzYW.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js → DesignPanel.vue_vue_type_style_index_0_lang-Bwernx0s.js} +2 -2
- package/dist/{DictView-DkG5lo6m.js → DictView-DJDg_Oem.js} +1 -1
- package/dist/{InvOrganization-D_PuTpPt.js → InvOrganization-D9BMWweK.js} +1 -1
- package/dist/{Org-CtVfZAjI.js → Org-CcfRkpBY.js} +1 -1
- package/dist/{Preview-Cuj_akRk.js → Preview-DGP1uIZU.js} +1 -1
- package/dist/{ReportDefine-CM2aNEVp.js → ReportDefine-u7r-IVPD.js} +1 -1
- package/dist/{ReportDesign-B1y79NKM.js → ReportDesign-CLQRMIy3.js} +2 -2
- package/dist/{ReportQuery-CZEfKCWP.js → ReportQuery-BNTCTpqI.js} +1 -1
- package/dist/{ReportQueryFrom-C_cUB8bs.js → ReportQueryFrom-G7X1Fyf5.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D5lDZFPM.js} +1 -1
- package/dist/{ReportTemplate-BprAuCb1.js → ReportTemplate-QWAuFjaB.js} +1 -1
- package/dist/{Role-CAaLVGNy.js → Role-Ba1OVGG0.js} +3 -3
- package/dist/{RoleAssign-DuFp2Ty7.js → RoleAssign-DFiMYll8.js} +3 -3
- package/dist/{RolePanel-FnyN7LiS.js → RolePanel-D6xKrLlM.js} +1 -1
- package/dist/{RolePanel-BRStoO0e.js → RolePanel-c-xitljX.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js → RolePanel.vue_vue_type_script_setup_true_lang-BeZ1xNXU.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js → RolePanel.vue_vue_type_script_setup_true_lang-DrBiLlBb.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js → ScrollPanel.vue_vue_type_style_index_0_lang-D4eReGaK.js} +1 -1
- package/dist/{Staff-D493jHwR.js → Staff-C-5TE1Yn.js} +3 -3
- package/dist/{StaffInfo-suU_pcyD.js → StaffInfo-CwJlL_Nr.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js → StaffInfo.vue_vue_type_script_setup_true_lang-C2BsoQlr.js} +1 -1
- package/dist/{StaffPanel-BbYWu-xZ.js → StaffPanel-QOv1pq2Z.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js → StaffPanel.vue_vue_type_script_setup_true_lang-BGQSHjaQ.js} +2 -2
- package/dist/{SysUser-YXOsIVpJ.js → SysUser-Byug_VNY.js} +2 -2
- package/dist/{SysUserPanel-C1tQzih_.js → SysUserPanel-B-M2Yxjj.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dm1YyUXX.js} +1 -1
- package/dist/{SystemMenu-DzKl8RAz.js → SystemMenu-Bs9a4BE0.js} +2 -2
- package/dist/{UserInfo-CYeYQNq8.js → UserInfo-Ipp00UAF.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js → UserInfo.vue_vue_type_style_index_0_lang-DIcWs6vj.js} +1 -1
- package/dist/{childView-BNYdfnMx.js → childView-N1PkzqQK.js} +1 -1
- package/dist/{childView-C6rHVrT6.js → childView-O-5baerB.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js → childView.vue_vue_type_style_index_0_lang--yGHgWVq.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-6o00J0a7.js → childView.vue_vue_type_style_index_0_lang-srudWvXc.js} +1 -1
- package/dist/{code-rule-MxcRbYZR.js → code-rule-CRunTGXH.js} +2 -2
- package/dist/core.es.js +12 -11
- package/dist/{cron-task-B0yfTtm6.js → cron-task-IEuaI4Nt.js} +1 -1
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-DtHY5dLd.js → frameView-vGVXV1ZG.js} +1 -1
- package/dist/{index-BWtOrjW2.js → index-D_tU_u2l.js} +1044 -1007
- package/dist/{layoutView-D0Q7EG0u.js → layoutView-BJO8Hm5d.js} +164 -164
- package/dist/{login-CuO8YgN1.js → login-CZyenjQX.js} +1 -1
- package/dist/{lov-view-DcRVGqsD.js → lov-view-6He1ZxGX.js} +2 -2
- package/dist/{menuInfo-ccOqhCC8.js → menuInfo-CE5Cae2u.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js → menuInfo.vue_vue_type_style_index_0_lang-BjshFg3S.js} +1 -1
- package/dist/{pda-app-D7n4oxyn.js → pda-app-DOiT57m1.js} +1 -1
- package/dist/{resource-_h2OtsKS.js → resource-BdlOJOcz.js} +1 -1
- package/dist/{su-welcome-Co6e4akE.js → su-welcome-BxRhJD8X.js} +1 -1
- package/dist/{sys-config-C6Es9vZl.js → sys-config-Csy-234G.js} +1 -1
- package/index.ts +49 -48
- package/package.json +1 -1
- package/src/components/udp/grid/index.vue +9 -5
- package/src/components/udp/utils.ts +7 -4
- package/src/layout/hooks/useTag.ts +5 -1
- package/src/plugins/i18n/module/u-workflow.ts +71 -71
- package/src/plugins/i18n/zh.ts +358 -356
- package/src/router/index.ts +3 -1
- package/src/router/modules/flow.ts +35 -0
- package/src/router/utils.ts +27 -1
- package/src/store/modules/multiTags.ts +4 -4
- package/src/views/udev/coderule/code-rule.vue +2 -2
- package/src/views/udev/lov/childView.vue +174 -180
- package/src/views/utask/flow-task.vue +18 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as Cn from "vue";
|
|
2
|
-
import { defineComponent as ke, resolveComponent as Ve, createBlock as
|
|
3
|
-
import { ElConfigProvider as
|
|
4
|
-
import { checkVersion as
|
|
5
|
-
import { useI18n as Bt, createI18n as
|
|
6
|
-
import { http as
|
|
7
|
-
import { merge as wo, clone as ee, findLastIndexOf as
|
|
2
|
+
import { defineComponent as ke, resolveComponent as Ve, createBlock as sr, openBlock as vo, withCtx as io, createVNode as st, toRaw as so, isProxy as Uo, defineAsyncComponent as lr, useAttrs as ur, getCurrentInstance as cr, ref as Re, reactive as dr, nextTick as fr, onUnmounted as mr, onBeforeMount as hr, createElementBlock as Sn, mergeProps as Dn, toHandlers as pr, unref as gr, computed as Pt, h as Te, createApp as yr } from "vue";
|
|
3
|
+
import { ElConfigProvider as zo } from "element-plus";
|
|
4
|
+
import { checkVersion as vr } from "version-rocket";
|
|
5
|
+
import { useI18n as Bt, createI18n as br } from "vue-i18n";
|
|
6
|
+
import { http as pe, storageLocal as O, cookies as Ae, buildHierarchyTree as bo, dbstorage as tt, isUrl as Tn, openLink as wr, NProgress as Er, VxetableRender as Cr, formatRules as lo, i18nColums as Sr, warnMessage as jo, errorMessage as Dr, formatGridItems as Tr, formatItems as xr, useGlobal as xn, deviceDetection as kr, storageSession as Ir } from "@utogether/utils";
|
|
7
|
+
import { merge as wo, clone as ee, findLastIndexOf as Fr, isEqual as qo, findIndexOf as Pr, isEmpty as $e, toDateString as B, getWhatDay as _e, isArray as _r, isString as Ye, isFunction as Or, orderBy as Nr, isObject as Mr } from "xe-utils";
|
|
8
8
|
import { createPinia as Rr, defineStore as ut } from "pinia";
|
|
9
9
|
import { useTimeoutFn as Ar } from "@vueuse/core";
|
|
10
|
-
import kn, { VxeUI as
|
|
11
|
-
import { Icon as
|
|
10
|
+
import kn, { VxeUI as se } from "vxe-table";
|
|
11
|
+
import { Icon as $o } from "@iconify/vue";
|
|
12
12
|
import Lr from "vue-tippy";
|
|
13
13
|
import Br from "element-resize-detector";
|
|
14
|
-
var
|
|
14
|
+
var Ur = {
|
|
15
15
|
name: "en",
|
|
16
16
|
el: {
|
|
17
17
|
breadcrumb: {
|
|
@@ -189,7 +189,7 @@ var zr = {
|
|
|
189
189
|
indicator: "Carousel switch to index {index}"
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
},
|
|
192
|
+
}, zr = {
|
|
193
193
|
name: "zh-cn",
|
|
194
194
|
el: {
|
|
195
195
|
breadcrumb: {
|
|
@@ -367,40 +367,40 @@ var zr = {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
const jr = "menu_zh", qr = "menu_en",
|
|
370
|
+
const jr = "menu_zh", qr = "menu_en", $r = "authorized-token", Hr = "kCookies_token", Wr = "kSysConfig", In = "loginer";
|
|
371
371
|
let uo = {}, Fn = {};
|
|
372
372
|
const Vr = (e, t) => {
|
|
373
|
-
uo = Object.assign(uo, t), e.config.globalProperties.$config =
|
|
374
|
-
},
|
|
373
|
+
uo = Object.assign(uo, t), e.config.globalProperties.$config = le();
|
|
374
|
+
}, le = () => uo, Yr = (e = {}) => {
|
|
375
375
|
Fn = e;
|
|
376
|
-
},
|
|
377
|
-
post: (e, t, o) =>
|
|
378
|
-
get: (e, t, o) =>
|
|
379
|
-
put: (e, t) =>
|
|
380
|
-
delete: (e, t) =>
|
|
376
|
+
}, Ho = () => Fn, $ = () => le().ResponsiveStorageNameSpace, Ut = () => ({
|
|
377
|
+
post: (e, t, o) => pe.post(`${ge()}${e}`, t, o),
|
|
378
|
+
get: (e, t, o) => pe.get(`${ge()}${e}`, t, o),
|
|
379
|
+
put: (e, t) => pe.put(`${ge()}${e}`, t),
|
|
380
|
+
delete: (e, t) => pe.delete(`${ge()}${e}`, t)
|
|
381
381
|
}), Gr = (e) => {
|
|
382
|
-
|
|
382
|
+
pe.setRouter(e);
|
|
383
383
|
}, Xr = (e) => {
|
|
384
|
-
|
|
385
|
-
}, Kr = window.location.origin + "/gateway",
|
|
384
|
+
pe.setBaseUrl(e);
|
|
385
|
+
}, Kr = window.location.origin + "/gateway", ge = () => Ho().VITE_BASE_URL === "origin" ? Kr : Ho().VITE_BASE_URL, Jr = ke({
|
|
386
386
|
name: "app",
|
|
387
387
|
components: {
|
|
388
|
-
[
|
|
388
|
+
[zo.name]: zo
|
|
389
389
|
},
|
|
390
390
|
beforeRouteEnter(e, t, o) {
|
|
391
|
-
|
|
391
|
+
Ut().get("/upfm/v1/sysConfig", {}).then((n) => {
|
|
392
392
|
o();
|
|
393
393
|
});
|
|
394
394
|
},
|
|
395
395
|
computed: {
|
|
396
396
|
currentLocale() {
|
|
397
397
|
var e, t;
|
|
398
|
-
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ?
|
|
398
|
+
return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? zr : Ur;
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
beforeCreate() {
|
|
402
|
-
const { t: e } = Bt(), n = (O.getItem(
|
|
403
|
-
|
|
402
|
+
const { t: e } = Bt(), n = (O.getItem(Wr) || { title: "U-DP" }).title;
|
|
403
|
+
vr(
|
|
404
404
|
{
|
|
405
405
|
pollingTime: 3e5,
|
|
406
406
|
checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
|
|
@@ -420,21 +420,21 @@ const Vr = (e, t) => {
|
|
|
420
420
|
o[n] = r;
|
|
421
421
|
return o;
|
|
422
422
|
};
|
|
423
|
-
function Qr(e, t, o, n, r,
|
|
424
|
-
const
|
|
425
|
-
return vo(),
|
|
423
|
+
function Qr(e, t, o, n, r, a) {
|
|
424
|
+
const i = Ve("router-view"), s = Ve("el-config-provider");
|
|
425
|
+
return vo(), sr(s, {
|
|
426
426
|
size: "small",
|
|
427
427
|
"z-index": 5555,
|
|
428
428
|
locale: e.currentLocale
|
|
429
429
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
st(
|
|
430
|
+
default: io(() => [
|
|
431
|
+
st(i)
|
|
432
432
|
]),
|
|
433
433
|
_: 1
|
|
434
434
|
}, 8, ["locale"]);
|
|
435
435
|
}
|
|
436
|
-
const
|
|
437
|
-
function
|
|
436
|
+
const ea = /* @__PURE__ */ Zr(Jr, [["render", Qr]]), Xe = Rr();
|
|
437
|
+
function ta(e) {
|
|
438
438
|
e.use(Xe);
|
|
439
439
|
}
|
|
440
440
|
const ct = [
|
|
@@ -446,13 +446,13 @@ const ct = [
|
|
|
446
446
|
icon: "home-filled"
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
],
|
|
449
|
+
], Gs = (e) => {
|
|
450
450
|
const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
|
|
451
451
|
if (e.indexOf("windows xp") > -1, t) return "WinXP";
|
|
452
452
|
if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
|
|
453
453
|
if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
|
|
454
454
|
if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
|
|
455
|
-
},
|
|
455
|
+
}, Xs = (e) => {
|
|
456
456
|
let t = null;
|
|
457
457
|
const o = {
|
|
458
458
|
Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
|
|
@@ -476,14 +476,14 @@ const ct = [
|
|
|
476
476
|
for (const r in o)
|
|
477
477
|
o[r] && (n = e.match(/chrome\/([\d.]+)/)[1], t = r);
|
|
478
478
|
return { browser: t, browserVersion: n };
|
|
479
|
-
},
|
|
479
|
+
}, oa = {
|
|
480
480
|
onLogined: () => {
|
|
481
481
|
},
|
|
482
482
|
onBeforeLogout: () => {
|
|
483
483
|
}
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
},
|
|
484
|
+
}, Ks = () => {
|
|
485
|
+
oa.onLogined();
|
|
486
|
+
}, na = (e, t) => {
|
|
487
487
|
const o = [];
|
|
488
488
|
for (const n of e)
|
|
489
489
|
n[t] && o.push(n[t]);
|
|
@@ -497,15 +497,15 @@ const ct = [
|
|
|
497
497
|
for (let r = 0; r < 3; r++)
|
|
498
498
|
n[r].length == 1 && (n[r] = `0${n[r]}`);
|
|
499
499
|
return `#${n.join("")}`;
|
|
500
|
-
},
|
|
500
|
+
}, ra = (e, t) => {
|
|
501
501
|
const o = Pn(e);
|
|
502
502
|
for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
|
|
503
503
|
return _n(o[0], o[1], o[2]);
|
|
504
|
-
},
|
|
504
|
+
}, aa = (e, t) => {
|
|
505
505
|
const o = Pn(e);
|
|
506
506
|
for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
|
|
507
507
|
return _n(o[0], o[1], o[2]);
|
|
508
|
-
},
|
|
508
|
+
}, Wo = {
|
|
509
509
|
zh: {
|
|
510
510
|
message: {
|
|
511
511
|
reportCode: "报表编号",
|
|
@@ -555,13 +555,13 @@ const ct = [
|
|
|
555
555
|
isRequired: "Required"
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
},
|
|
559
|
-
zh: {
|
|
560
|
-
en: {
|
|
561
|
-
},
|
|
558
|
+
}, ia = {
|
|
559
|
+
zh: { ...Wo.zh.message },
|
|
560
|
+
en: { ...Wo.en.message }
|
|
561
|
+
}, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
562
562
|
__proto__: null,
|
|
563
|
-
default:
|
|
564
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
563
|
+
default: ia
|
|
564
|
+
}, Symbol.toStringTag, { value: "Module" })), la = {
|
|
565
565
|
zh: {
|
|
566
566
|
message: {
|
|
567
567
|
taskName: "任务名称",
|
|
@@ -590,12 +590,12 @@ const ct = [
|
|
|
590
590
|
actuatorAddress: "Actuator Adress"
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
},
|
|
593
|
+
}, ua = {
|
|
594
594
|
zh: {
|
|
595
595
|
message: {
|
|
596
596
|
flowId: "流程标识",
|
|
597
597
|
flowName: "流程名称",
|
|
598
|
-
flowCode: "
|
|
598
|
+
flowCode: "流程业务",
|
|
599
599
|
description: "流程描述",
|
|
600
600
|
flowDesign: "流程设计",
|
|
601
601
|
version: "版本",
|
|
@@ -611,17 +611,17 @@ const ct = [
|
|
|
611
611
|
flowDesign: "Flow Design"
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
}, Vo = [
|
|
614
|
+
}, Vo = [la, ua], ca = {
|
|
615
615
|
zh: {
|
|
616
616
|
...Object.assign({}, ...Vo.map((e) => e.zh.message))
|
|
617
617
|
},
|
|
618
618
|
en: {
|
|
619
619
|
...Object.assign({}, ...Vo.map((e) => e.en.message))
|
|
620
620
|
}
|
|
621
|
-
},
|
|
621
|
+
}, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
622
622
|
__proto__: null,
|
|
623
|
-
default:
|
|
624
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
623
|
+
default: ca
|
|
624
|
+
}, Symbol.toStringTag, { value: "Module" })), fa = {
|
|
625
625
|
zh: {
|
|
626
626
|
message: {
|
|
627
627
|
msgtemplateCode: "模板代码",
|
|
@@ -641,10 +641,10 @@ const ct = [
|
|
|
641
641
|
xx: "xxx"
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
},
|
|
644
|
+
}, ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
645
645
|
__proto__: null,
|
|
646
|
-
default:
|
|
647
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
646
|
+
default: fa
|
|
647
|
+
}, Symbol.toStringTag, { value: "Module" })), ha = {
|
|
648
648
|
udp: {
|
|
649
649
|
dark: "深色",
|
|
650
650
|
light: "浅色",
|
|
@@ -677,6 +677,7 @@ const ct = [
|
|
|
677
677
|
fourZeroFour: "404",
|
|
678
678
|
fourZeroThree: "403",
|
|
679
679
|
five: "500",
|
|
680
|
+
flowTask: "流程任务",
|
|
680
681
|
backtop: "回到顶部",
|
|
681
682
|
error: "Error Page",
|
|
682
683
|
continueAdd: "连续添加",
|
|
@@ -811,6 +812,7 @@ const ct = [
|
|
|
811
812
|
goback: "返回",
|
|
812
813
|
disabled: "禁用",
|
|
813
814
|
enable: "启用",
|
|
815
|
+
flowDesign: "流程设计",
|
|
814
816
|
bankinfo: "银行账号"
|
|
815
817
|
},
|
|
816
818
|
urpt: {
|
|
@@ -980,7 +982,7 @@ const ct = [
|
|
|
980
982
|
lovColConfig: "值集列配置",
|
|
981
983
|
sequenceInfo: "{name}单据序列配置"
|
|
982
984
|
}
|
|
983
|
-
},
|
|
985
|
+
}, pa = {
|
|
984
986
|
udp: {
|
|
985
987
|
dark: "深色",
|
|
986
988
|
light: "浅色",
|
|
@@ -1262,41 +1264,41 @@ const ct = [
|
|
|
1262
1264
|
dictDispose: "dictDispose",
|
|
1263
1265
|
isSearch: "isSearch",
|
|
1264
1266
|
isCol: "isCol"
|
|
1265
|
-
}, Yo = /* @__PURE__ */ Object.assign({ "./module/u-report.ts":
|
|
1267
|
+
}, Yo = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": sa, "./module/u-workflow.ts": da, "./module/umsg.ts": ma }), Et = {};
|
|
1266
1268
|
for (const e in Yo)
|
|
1267
1269
|
Et[e.replace(/(\.\/module\/|\.ts)/g, "")] = Yo[e].default;
|
|
1268
|
-
const Go = Object.keys(Et).filter((e) => Et[e]).map((e) => Et[e]),
|
|
1270
|
+
const Go = Object.keys(Et).filter((e) => Et[e]).map((e) => Et[e]), ga = {
|
|
1269
1271
|
zh: {
|
|
1270
1272
|
...O.getItem(jr),
|
|
1271
|
-
message: wo(
|
|
1273
|
+
message: wo(ha, ...Go.map((e) => e.zh.message))
|
|
1272
1274
|
},
|
|
1273
1275
|
en: {
|
|
1274
1276
|
...O.getItem(qr),
|
|
1275
|
-
message: Object.assign(
|
|
1277
|
+
message: Object.assign(pa, ...Go.map((e) => e.en.message))
|
|
1276
1278
|
}
|
|
1277
1279
|
};
|
|
1278
|
-
let
|
|
1279
|
-
function
|
|
1280
|
+
let He = null;
|
|
1281
|
+
function ya(e, t = { messages: {} }) {
|
|
1280
1282
|
var o;
|
|
1281
|
-
|
|
1283
|
+
He = br({
|
|
1282
1284
|
legacy: !1,
|
|
1283
|
-
locale: ((o = O.getItem(`${
|
|
1285
|
+
locale: ((o = O.getItem(`${$()}locale`)) == null ? void 0 : o.locale) ?? "zh",
|
|
1284
1286
|
fallbackLocale: "en",
|
|
1285
1287
|
globalInjection: !0,
|
|
1286
|
-
messages: wo(
|
|
1287
|
-
}),
|
|
1288
|
+
messages: wo(ga, t.messages)
|
|
1289
|
+
}), se.setLanguage("zh-CN"), e.use(He);
|
|
1288
1290
|
}
|
|
1289
|
-
const Ct = () =>
|
|
1291
|
+
const Ct = () => He;
|
|
1290
1292
|
function On(e = "", t = !0) {
|
|
1291
1293
|
if (!e)
|
|
1292
1294
|
return "";
|
|
1293
1295
|
if (typeof e == "object") {
|
|
1294
|
-
const o =
|
|
1296
|
+
const o = He.global.locale;
|
|
1295
1297
|
return e[o.value];
|
|
1296
1298
|
}
|
|
1297
|
-
return t ?
|
|
1299
|
+
return t ? He.global.t.call(He.global, e) : e;
|
|
1298
1300
|
}
|
|
1299
|
-
const
|
|
1301
|
+
const va = ut("udp-system", {
|
|
1300
1302
|
state: () => ({
|
|
1301
1303
|
baseURL: "",
|
|
1302
1304
|
userInfo: {},
|
|
@@ -1420,14 +1422,14 @@ const vi = ut("udp-system", {
|
|
|
1420
1422
|
orgId: e.orgId,
|
|
1421
1423
|
organizationId: e.organizationId
|
|
1422
1424
|
};
|
|
1423
|
-
Ae.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((r) => r.roleCode === "admin" || ["管理员"].includes(r.roleName)),
|
|
1425
|
+
Ae.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((r) => r.roleCode === "admin" || ["管理员"].includes(r.roleName)), J().setAuthButton(e.dataMenus);
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
1428
|
});
|
|
1427
1429
|
function St() {
|
|
1428
|
-
return
|
|
1430
|
+
return va(Xe);
|
|
1429
1431
|
}
|
|
1430
|
-
function
|
|
1432
|
+
function ba(e, t) {
|
|
1431
1433
|
return /* @__PURE__ */ ke({
|
|
1432
1434
|
name: e,
|
|
1433
1435
|
components: {
|
|
@@ -1438,7 +1440,7 @@ function bi(e, t) {
|
|
|
1438
1440
|
}
|
|
1439
1441
|
});
|
|
1440
1442
|
}
|
|
1441
|
-
const
|
|
1443
|
+
const wa = () => pe.get(`${ge()}/uums/roleMenu`), Ea = () => pe.get(`${ge()}/upfm/v1/lov/selectAll`), Xo = (e) => pe.get(`${ge()}/uums/roleMenu/userMenu`, e), Ca = () => import("./layoutView-BJO8Hm5d.js"), Sa = () => import("./frameView-vGVXV1ZG.js");
|
|
1442
1444
|
function dt(e) {
|
|
1443
1445
|
return e.forEach((t) => {
|
|
1444
1446
|
var o, n;
|
|
@@ -1455,14 +1457,14 @@ function Nn(e) {
|
|
|
1455
1457
|
});
|
|
1456
1458
|
return t.forEach((o) => o.children && (o.children = Nn(o.children))), t;
|
|
1457
1459
|
}
|
|
1458
|
-
function
|
|
1459
|
-
function n(r,
|
|
1460
|
+
function Js(e, t, o = "path") {
|
|
1461
|
+
function n(r, a, i) {
|
|
1460
1462
|
for (let s = 0; s < r.length; s++) {
|
|
1461
|
-
const
|
|
1462
|
-
if (
|
|
1463
|
-
if (!(!
|
|
1464
|
-
if (
|
|
1465
|
-
|
|
1463
|
+
const l = r[s];
|
|
1464
|
+
if (l[o] === a) return i;
|
|
1465
|
+
if (!(!l.children || !l.children.length)) {
|
|
1466
|
+
if (i.push(l.path), n(l.children, a, i).length) return i;
|
|
1467
|
+
i.pop();
|
|
1466
1468
|
}
|
|
1467
1469
|
}
|
|
1468
1470
|
return [];
|
|
@@ -1472,20 +1474,20 @@ function Xs(e, t, o = "path") {
|
|
|
1472
1474
|
function Mn(e, t) {
|
|
1473
1475
|
let o = t.find((n) => n.path == e);
|
|
1474
1476
|
if (o)
|
|
1475
|
-
return
|
|
1477
|
+
return Uo(o) ? so(o) : o;
|
|
1476
1478
|
for (let n = 0; n < t.length; n++)
|
|
1477
1479
|
if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Mn(e, t[n].children), o))
|
|
1478
|
-
return
|
|
1480
|
+
return Uo(o) ? so(o) : o;
|
|
1479
1481
|
return null;
|
|
1480
1482
|
}
|
|
1481
|
-
function
|
|
1482
|
-
|
|
1483
|
+
function Da() {
|
|
1484
|
+
U.hasRoute("pathMatch") || U.addRoute({
|
|
1483
1485
|
path: "/:pathMatch(.*)",
|
|
1484
1486
|
name: "pathMatch",
|
|
1485
1487
|
redirect: "/error/404"
|
|
1486
1488
|
});
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1490
|
+
function Ta() {
|
|
1489
1491
|
var t, o;
|
|
1490
1492
|
const e = Ct();
|
|
1491
1493
|
(t = e.global) == null || t.mergeLocaleMessage("zh", je.zh), (o = e.global) == null || o.mergeLocaleMessage("en", je.en), O.setItem("menu_zh", je.zh), O.setItem("menu_en", je.en);
|
|
@@ -1495,40 +1497,40 @@ function Ko(e) {
|
|
|
1495
1497
|
const t = e.findIndex((n) => n.menuCode === "SysHome");
|
|
1496
1498
|
if (t !== -1) {
|
|
1497
1499
|
const n = [], r = [];
|
|
1498
|
-
e[t].children.forEach((
|
|
1499
|
-
|
|
1500
|
+
e[t].children.forEach((a) => {
|
|
1501
|
+
a.menuCategory !== "1" ? n.push(a) : r.push(a);
|
|
1500
1502
|
}), e[t].children = r, St().setHomeMenus(n);
|
|
1501
1503
|
}
|
|
1502
|
-
const o = ee(
|
|
1503
|
-
|
|
1504
|
-
const { options: r } =
|
|
1505
|
-
r.routes[0].children.findIndex((
|
|
1504
|
+
const o = ee(Ln(e), !0);
|
|
1505
|
+
Ta(), zt(o).map((n) => {
|
|
1506
|
+
const { options: r } = U;
|
|
1507
|
+
r.routes[0].children.findIndex((a) => a.path === n.path) === -1 && (U.options.routes[0].children.push(n), dt(U.options.routes[0].children), U.hasRoute(n == null ? void 0 : n.name) || U.addRoute(n));
|
|
1506
1508
|
});
|
|
1507
1509
|
}
|
|
1508
|
-
|
|
1510
|
+
J().changeSetting(e), ue().getMultiTagsCache || ue().handleTags("equal", [
|
|
1509
1511
|
...ct,
|
|
1510
|
-
...
|
|
1512
|
+
...J().flatteningRoutes.filter((t) => {
|
|
1511
1513
|
var o;
|
|
1512
1514
|
return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
|
|
1513
1515
|
})
|
|
1514
|
-
]),
|
|
1516
|
+
]), Da();
|
|
1515
1517
|
}
|
|
1516
|
-
async function
|
|
1518
|
+
async function xa(e) {
|
|
1517
1519
|
let t = [];
|
|
1518
1520
|
const o = `U-${e}-ROUTES`;
|
|
1519
|
-
return
|
|
1520
|
-
St().setSystemInfo(n), await
|
|
1521
|
+
return le().CachingAsyncRoutes && await tt.getItem(o).then((n) => t = n), Ea().then((n) => St().setDict(n)), await wa().then(async (n) => {
|
|
1522
|
+
St().setSystemInfo(n), await Ut().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((r) => St().setInvOrgList((r == null ? void 0 : r.list) || []));
|
|
1521
1523
|
}), t != null && t.length ? new Promise((n) => {
|
|
1522
1524
|
Ko(t), Xo({ userName: e }).then((r) => {
|
|
1523
1525
|
tt.setItem(o, r);
|
|
1524
|
-
}), n(
|
|
1526
|
+
}), n(U);
|
|
1525
1527
|
}) : new Promise((n) => {
|
|
1526
1528
|
Xo({ userName: e }).then((r) => {
|
|
1527
|
-
Ko(ee(r, !0)), tt.setItem(o, r), n(
|
|
1529
|
+
Ko(ee(r, !0)), tt.setItem(o, r), n(U);
|
|
1528
1530
|
});
|
|
1529
1531
|
});
|
|
1530
1532
|
}
|
|
1531
|
-
function
|
|
1533
|
+
function zt(e) {
|
|
1532
1534
|
if (e.length === 0) return e;
|
|
1533
1535
|
let t = bo(e);
|
|
1534
1536
|
for (let o = 0; o < t.length; o++)
|
|
@@ -1549,76 +1551,85 @@ function Rn(e) {
|
|
|
1549
1551
|
}) : t[0].children.push({ ...o });
|
|
1550
1552
|
}), t;
|
|
1551
1553
|
}
|
|
1552
|
-
function
|
|
1554
|
+
function ka({ name: e }, t) {
|
|
1553
1555
|
switch (t) {
|
|
1554
1556
|
case "add":
|
|
1555
|
-
|
|
1557
|
+
J().cacheOperate({ mode: "add", name: e });
|
|
1556
1558
|
break;
|
|
1557
1559
|
case "delete":
|
|
1558
|
-
|
|
1560
|
+
J().cacheOperate({ mode: "delete", name: e });
|
|
1559
1561
|
break;
|
|
1560
1562
|
case "refresh":
|
|
1561
|
-
|
|
1563
|
+
J().cacheOperate({ mode: "refresh", name: e });
|
|
1562
1564
|
break;
|
|
1563
1565
|
default:
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
+
J().cacheOperate({ mode: "delete", name: e }), Ar(() => {
|
|
1567
|
+
J().cacheOperate({ mode: "add", name: e });
|
|
1566
1568
|
}, 100);
|
|
1567
1569
|
}
|
|
1568
1570
|
}
|
|
1569
1571
|
const je = {
|
|
1570
1572
|
zh: {},
|
|
1571
1573
|
en: {}
|
|
1572
|
-
}, An = (e) => {
|
|
1574
|
+
}, An = [], Ln = (e) => {
|
|
1573
1575
|
var n;
|
|
1574
|
-
const t =
|
|
1576
|
+
const t = qa();
|
|
1575
1577
|
if (!e || !e.length) return;
|
|
1576
1578
|
const o = Object.keys(t);
|
|
1577
1579
|
for (let r = 0; r < e.length; r++) {
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1580
|
-
const { icon:
|
|
1581
|
-
if (
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1580
|
+
const a = e[r];
|
|
1581
|
+
a != null && a.children && a.children.length && !a.redirect && (a.redirect = a.children[0].path);
|
|
1582
|
+
const { icon: i, permissionCode: s, extraIcon: l, frameSrc: u } = a;
|
|
1583
|
+
if (a.isFlowMenu && An.push(a), a.meta = {
|
|
1584
|
+
keepAlive: !0,
|
|
1585
|
+
rank: a.sort,
|
|
1586
|
+
title: `${a.i18nField}`,
|
|
1587
|
+
// 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
|
|
1588
|
+
showLink: ["UdpFlowDesign", "UDPFlowTask"].includes(a.menuCode) ? !1 : null
|
|
1589
|
+
}, a.hiddenTag = null, Object.assign(a.meta, { icon: i, permissionCode: s, extraIcon: l, frameSrc: u }), je.zh[a.i18nField] = a.menuName || a.menuNameEn, je.en[a.i18nField] = a.menuNameEn || a.menuName, a.name = a.menuCode || a.name, a.path = a.menuPath || a.path, !a.parentId)
|
|
1590
|
+
a.component = Ca;
|
|
1591
|
+
else if ((n = a.meta) != null && n.frameSrc)
|
|
1592
|
+
a.component = Sa;
|
|
1593
|
+
else if (a.menuCategory === "10") {
|
|
1586
1594
|
const d = o.findIndex((c) => c.includes("lowcode-contain"));
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1595
|
+
a.component = ba(
|
|
1596
|
+
a.name,
|
|
1597
|
+
lr(() => import(
|
|
1590
1598
|
/* @vite-ignore */
|
|
1591
1599
|
o[d]
|
|
1592
1600
|
))
|
|
1593
|
-
), Object.assign(
|
|
1594
|
-
} else if (
|
|
1595
|
-
const d = o.findIndex((c) => c.includes(
|
|
1596
|
-
|
|
1601
|
+
), Object.assign(a.meta, { moduleType: a.moduleType });
|
|
1602
|
+
} else if (a.menuCategory !== "5") {
|
|
1603
|
+
const d = o.findIndex((c) => c.includes(a.path));
|
|
1604
|
+
a.component = t[o[d]];
|
|
1597
1605
|
}
|
|
1598
|
-
|
|
1606
|
+
a != null && a.children && a.children.length ? Ln(a.children) : delete a.children;
|
|
1599
1607
|
}
|
|
1600
1608
|
return e;
|
|
1601
1609
|
};
|
|
1602
|
-
function
|
|
1603
|
-
const o =
|
|
1610
|
+
function Zs(e, t = !0) {
|
|
1611
|
+
const o = ue().multiTags.findIndex((n) => {
|
|
1604
1612
|
if (e.query) {
|
|
1605
1613
|
if (e.path === n.path)
|
|
1606
1614
|
return e.query === n.query;
|
|
1607
1615
|
} else
|
|
1608
1616
|
return e.path === n.path;
|
|
1609
1617
|
});
|
|
1610
|
-
if (
|
|
1611
|
-
const n =
|
|
1612
|
-
|
|
1618
|
+
if (ue().handleTags("splice", "", { startIndex: o, length: 1 }), ka(e.matched, "delete"), t) {
|
|
1619
|
+
const n = ue().handleTags("slice");
|
|
1620
|
+
U.push({
|
|
1613
1621
|
path: n[0].path,
|
|
1614
1622
|
query: n[0].query
|
|
1615
1623
|
});
|
|
1616
1624
|
}
|
|
1617
1625
|
}
|
|
1618
|
-
|
|
1626
|
+
function Qs() {
|
|
1627
|
+
return An;
|
|
1628
|
+
}
|
|
1629
|
+
const Ia = ut("udp-permission", {
|
|
1619
1630
|
state: () => ({
|
|
1620
1631
|
// 静态路由生成的菜单
|
|
1621
|
-
constantMenus:
|
|
1632
|
+
constantMenus: La,
|
|
1622
1633
|
// 整体路由生成的菜单(静态、动态)
|
|
1623
1634
|
wholeMenus: [],
|
|
1624
1635
|
// 深拷贝一个菜单树,与导航菜单不冲突
|
|
@@ -1637,12 +1648,12 @@ const Ii = ut("udp-permission", {
|
|
|
1637
1648
|
actions: {
|
|
1638
1649
|
asyncActionRoutes(e = []) {
|
|
1639
1650
|
if (this.wholeMenus.length > 0) return;
|
|
1640
|
-
const t =
|
|
1651
|
+
const t = Fr(e, (n) => n.menuCode === "SysHome"), o = ee(this.constantMenus, !0);
|
|
1641
1652
|
if (t !== -1) {
|
|
1642
1653
|
const n = this.constantMenus.find((r) => r.name === "home");
|
|
1643
1654
|
e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
|
|
1644
1655
|
}
|
|
1645
|
-
this.wholeMenus = Nn(dt(this.constantMenus.concat(e))), this.flatteningRoutes =
|
|
1656
|
+
this.wholeMenus = Nn(dt(this.constantMenus.concat(e))), this.flatteningRoutes = zt(this.constantMenus.concat(e)), this.menusTree = ee(this.wholeMenus, !0), this.constantMenus = o;
|
|
1646
1657
|
},
|
|
1647
1658
|
async changeSetting(e) {
|
|
1648
1659
|
await this.asyncActionRoutes(e);
|
|
@@ -1656,7 +1667,7 @@ const Ii = ut("udp-permission", {
|
|
|
1656
1667
|
/** 监听缓存页面是否存在于标签页,不存在则删除 */
|
|
1657
1668
|
clearCache() {
|
|
1658
1669
|
let e = this.cachePageList.length;
|
|
1659
|
-
const t =
|
|
1670
|
+
const t = na(ue().multiTags, "name");
|
|
1660
1671
|
for (; e > 0; )
|
|
1661
1672
|
t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
|
|
1662
1673
|
},
|
|
@@ -1683,19 +1694,19 @@ const Ii = ut("udp-permission", {
|
|
|
1683
1694
|
}
|
|
1684
1695
|
}
|
|
1685
1696
|
});
|
|
1686
|
-
function
|
|
1687
|
-
return
|
|
1697
|
+
function J() {
|
|
1698
|
+
return Ia(Xe);
|
|
1688
1699
|
}
|
|
1689
|
-
const
|
|
1700
|
+
const Bn = ut("udp-multiTags", {
|
|
1690
1701
|
state: () => {
|
|
1691
1702
|
var e, t;
|
|
1692
1703
|
return {
|
|
1693
1704
|
// 存储标签页信息(路由信息)
|
|
1694
|
-
multiTags: (e = O.getItem(`${
|
|
1705
|
+
multiTags: (e = O.getItem(`${$()}configure`)) != null && e.multiTagsCache ? O.getItem(`${$()}tags`) : [...ct, ...J().flatteningRoutes.filter((o) => {
|
|
1695
1706
|
var n;
|
|
1696
1707
|
return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
|
|
1697
1708
|
})],
|
|
1698
|
-
multiTagsCache: (t = O.getItem(`${
|
|
1709
|
+
multiTagsCache: (t = O.getItem(`${$()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1699
1710
|
};
|
|
1700
1711
|
},
|
|
1701
1712
|
getters: {
|
|
@@ -1705,27 +1716,27 @@ const Ln = ut("udp-multiTags", {
|
|
|
1705
1716
|
},
|
|
1706
1717
|
actions: {
|
|
1707
1718
|
multiTagsCacheChange(e) {
|
|
1708
|
-
this.multiTagsCache = e, e ? O.setItem(`${
|
|
1719
|
+
this.multiTagsCache = e, e ? O.setItem(`${$()}tags`, this.multiTags) : O.removeItem(`${$()}tags`);
|
|
1709
1720
|
},
|
|
1710
1721
|
tagsCache(e) {
|
|
1711
|
-
this.getMultiTagsCache && O.setItem(`${
|
|
1722
|
+
this.getMultiTagsCache && O.setItem(`${$()}tags`, e);
|
|
1712
1723
|
},
|
|
1713
1724
|
handleTags(e, t, o) {
|
|
1714
|
-
var n, r,
|
|
1725
|
+
var n, r, a, i;
|
|
1715
1726
|
switch (e) {
|
|
1716
1727
|
case "equal":
|
|
1717
1728
|
this.multiTags = t, this.tagsCache(this.multiTags);
|
|
1718
1729
|
break;
|
|
1719
1730
|
case "push":
|
|
1720
1731
|
{
|
|
1721
|
-
const
|
|
1722
|
-
if ((n =
|
|
1723
|
-
const
|
|
1724
|
-
if (this.multiTags.some((
|
|
1725
|
-
const
|
|
1726
|
-
if (
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1732
|
+
const s = t;
|
|
1733
|
+
if ((n = s == null ? void 0 : s.meta) != null && n.hiddenTag || Tn(s == null ? void 0 : s.name) || ((a = (r = s == null ? void 0 : s.meta) == null ? void 0 : r.title) == null ? void 0 : a.length) === 0) return;
|
|
1734
|
+
const l = s.path;
|
|
1735
|
+
if (this.multiTags.some((c) => c.path === l && qo(c == null ? void 0 : c.query, s == null ? void 0 : s.query) && qo(c == null ? void 0 : c.params, s == null ? void 0 : s.params))) return;
|
|
1736
|
+
const d = ((i = s == null ? void 0 : s.meta) == null ? void 0 : i.dynamicLevel) ?? -1;
|
|
1737
|
+
if (d > 0 && this.multiTags.filter((c) => (c == null ? void 0 : c.path) === l).length >= d) {
|
|
1738
|
+
const c = this.multiTags.findIndex((p) => (p == null ? void 0 : p.path) === l);
|
|
1739
|
+
c !== -1 && this.multiTags.splice(c, 1);
|
|
1729
1740
|
}
|
|
1730
1741
|
this.multiTags.push(t), this.tagsCache(this.multiTags);
|
|
1731
1742
|
}
|
|
@@ -1734,9 +1745,9 @@ const Ln = ut("udp-multiTags", {
|
|
|
1734
1745
|
if (o)
|
|
1735
1746
|
this.multiTags.splice(o == null ? void 0 : o.startIndex, o == null ? void 0 : o.length);
|
|
1736
1747
|
else {
|
|
1737
|
-
const
|
|
1738
|
-
if (
|
|
1739
|
-
this.multiTags.splice(
|
|
1748
|
+
const s = this.multiTags.findIndex((l) => l.path === t);
|
|
1749
|
+
if (s === -1) return;
|
|
1750
|
+
this.multiTags.splice(s, 1);
|
|
1740
1751
|
}
|
|
1741
1752
|
return this.tagsCache(this.multiTags), this.multiTags;
|
|
1742
1753
|
case "slice":
|
|
@@ -1745,13 +1756,13 @@ const Ln = ut("udp-multiTags", {
|
|
|
1745
1756
|
}
|
|
1746
1757
|
}
|
|
1747
1758
|
});
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1759
|
+
function ue() {
|
|
1760
|
+
return Bn(Xe);
|
|
1750
1761
|
}
|
|
1751
|
-
const
|
|
1762
|
+
const Fa = () => import("./layoutView-BJO8Hm5d.js"), Pa = {
|
|
1752
1763
|
path: "/",
|
|
1753
1764
|
name: "home",
|
|
1754
|
-
component:
|
|
1765
|
+
component: Fa,
|
|
1755
1766
|
redirect: "/welcome",
|
|
1756
1767
|
meta: {
|
|
1757
1768
|
icon: "home-filled",
|
|
@@ -1762,17 +1773,17 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1762
1773
|
{
|
|
1763
1774
|
path: "/welcome",
|
|
1764
1775
|
name: "SuHome",
|
|
1765
|
-
component: () => import("./su-welcome-
|
|
1776
|
+
component: () => import("./su-welcome-BxRhJD8X.js"),
|
|
1766
1777
|
meta: {
|
|
1767
1778
|
title: "message.udp.home",
|
|
1768
1779
|
keepAlive: !0
|
|
1769
1780
|
}
|
|
1770
1781
|
}
|
|
1771
1782
|
]
|
|
1772
|
-
},
|
|
1783
|
+
}, _a = () => import("./layoutView-BJO8Hm5d.js"), Oa = {
|
|
1773
1784
|
path: "/error",
|
|
1774
1785
|
name: "error",
|
|
1775
|
-
component:
|
|
1786
|
+
component: _a,
|
|
1776
1787
|
redirect: "/error/403",
|
|
1777
1788
|
meta: {
|
|
1778
1789
|
showLink: !1,
|
|
@@ -1784,17 +1795,17 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1784
1795
|
{
|
|
1785
1796
|
path: "/error/403",
|
|
1786
1797
|
name: "403",
|
|
1787
|
-
component: () => import("./403-
|
|
1798
|
+
component: () => import("./403-B87JSuhn.js"),
|
|
1788
1799
|
meta: {
|
|
1789
1800
|
title: "message.udp.fourZeroThree"
|
|
1790
1801
|
}
|
|
1791
1802
|
}
|
|
1792
1803
|
]
|
|
1793
|
-
},
|
|
1804
|
+
}, Na = () => import("./layoutView-BJO8Hm5d.js"), lt = [
|
|
1794
1805
|
{
|
|
1795
1806
|
path: "/login",
|
|
1796
1807
|
name: "login",
|
|
1797
|
-
component: () => import("./login-
|
|
1808
|
+
component: () => import("./login-CZyenjQX.js"),
|
|
1798
1809
|
meta: {
|
|
1799
1810
|
title: "message.udp.login",
|
|
1800
1811
|
showLink: !1
|
|
@@ -1803,7 +1814,7 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1803
1814
|
{
|
|
1804
1815
|
path: "/error/404",
|
|
1805
1816
|
name: "404",
|
|
1806
|
-
component: () => import("./404-
|
|
1817
|
+
component: () => import("./404-BhiUKT1b.js"),
|
|
1807
1818
|
meta: {
|
|
1808
1819
|
title: "message.udp.fourZeroFour",
|
|
1809
1820
|
showLink: !1
|
|
@@ -1812,7 +1823,7 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1812
1823
|
{
|
|
1813
1824
|
path: "/error/500",
|
|
1814
1825
|
name: "500",
|
|
1815
|
-
component: () => import("./500-
|
|
1826
|
+
component: () => import("./500-2G6eyDeT.js"),
|
|
1816
1827
|
meta: {
|
|
1817
1828
|
title: "message.udp.five",
|
|
1818
1829
|
showLink: !1
|
|
@@ -1821,7 +1832,7 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1821
1832
|
{
|
|
1822
1833
|
path: "/redirect",
|
|
1823
1834
|
name: "redirect",
|
|
1824
|
-
component:
|
|
1835
|
+
component: Na,
|
|
1825
1836
|
meta: {
|
|
1826
1837
|
icon: "home-filled",
|
|
1827
1838
|
title: "message.udp.home",
|
|
@@ -1837,91 +1848,114 @@ const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
|
|
|
1837
1848
|
}
|
|
1838
1849
|
]
|
|
1839
1850
|
}
|
|
1840
|
-
],
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
"
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
+
], Ma = () => import("./layoutView-BJO8Hm5d.js"), Ra = {
|
|
1852
|
+
component: Ma,
|
|
1853
|
+
path: "/utask",
|
|
1854
|
+
redirect: "/utask/task/flow-task",
|
|
1855
|
+
meta: {
|
|
1856
|
+
showLink: !1,
|
|
1857
|
+
icon: "IF-pure-iconfont-tabs",
|
|
1858
|
+
title: "message.udp.flowTask"
|
|
1859
|
+
},
|
|
1860
|
+
children: [
|
|
1861
|
+
// query 传参模式
|
|
1862
|
+
{
|
|
1863
|
+
path: "/utask/task/flow-task",
|
|
1864
|
+
name: "FlowTask",
|
|
1865
|
+
component: () => import("./flow-task-B07st2aD.js"),
|
|
1866
|
+
meta: {
|
|
1867
|
+
// 不在menu菜单中显示
|
|
1868
|
+
title: "",
|
|
1869
|
+
showLink: !1,
|
|
1870
|
+
activePath: "/uflow/index"
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
]
|
|
1874
|
+
}, Aa = /* @__PURE__ */ Object.assign({
|
|
1875
|
+
"../views/organization/company/Company.vue": () => import("./Company-CbTh7_bX.js"),
|
|
1876
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-BVEYMQKM.js"),
|
|
1877
|
+
"../views/organization/department/Department.vue": () => import("./Department-Cu83Buy8.js"),
|
|
1878
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-CO76buwO.js"),
|
|
1879
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-D9BMWweK.js"),
|
|
1880
|
+
"../views/organization/org/Org.vue": () => import("./Org-CcfRkpBY.js"),
|
|
1881
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-C-5TE1Yn.js"),
|
|
1882
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CwJlL_Nr.js"),
|
|
1883
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-QOv1pq2Z.js"),
|
|
1884
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-IEuaI4Nt.js"),
|
|
1851
1885
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
|
|
1852
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
1853
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
1854
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
1855
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
1856
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
1857
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
1858
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
1859
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
1860
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
1861
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
1862
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
1863
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
1864
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
1865
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
1866
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
1867
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
1868
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
1886
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-Bs9a4BE0.js"),
|
|
1887
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-CE5Cae2u.js"),
|
|
1888
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-DFiMYll8.js"),
|
|
1889
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-D6xKrLlM.js"),
|
|
1890
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-Bl4_zDot.js"),
|
|
1891
|
+
"../views/system/role/Role.vue": () => import("./Role-Ba1OVGG0.js"),
|
|
1892
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-c-xitljX.js"),
|
|
1893
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-Ipp00UAF.js"),
|
|
1894
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-Csy-234G.js"),
|
|
1895
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-Byug_VNY.js"),
|
|
1896
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-B-M2Yxjj.js"),
|
|
1897
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-DOiT57m1.js"),
|
|
1898
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-CRunTGXH.js"),
|
|
1899
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-DJDg_Oem.js"),
|
|
1900
|
+
"../views/udev/dict/childView.vue": () => import("./childView-O-5baerB.js"),
|
|
1901
|
+
"../views/udev/lov/childView.vue": () => import("./childView-N1PkzqQK.js"),
|
|
1902
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-6He1ZxGX.js"),
|
|
1869
1903
|
"../views/upms/interface/log-in.vue": () => import("./log-in-CpGqc33f.js"),
|
|
1870
1904
|
"../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
|
|
1871
1905
|
"../views/upms/user/login-log.vue": () => import("./login-log-BNRXLeMi.js"),
|
|
1872
1906
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
1873
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
1874
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
1875
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
1876
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
1877
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
1878
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
1879
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
1880
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
1881
|
-
}),
|
|
1882
|
-
|
|
1883
|
-
),
|
|
1884
|
-
function
|
|
1885
|
-
|
|
1907
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-DDgVNzYW.js"),
|
|
1908
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-DGP1uIZU.js"),
|
|
1909
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-CLQRMIy3.js"),
|
|
1910
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-BNTCTpqI.js"),
|
|
1911
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-G7X1Fyf5.js"),
|
|
1912
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-u7r-IVPD.js"),
|
|
1913
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-BdlOJOcz.js"),
|
|
1914
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-QWAuFjaB.js")
|
|
1915
|
+
}), el = lt, Eo = [Pa, Oa, Ra], tl = Rn(
|
|
1916
|
+
zt(bo(dt(Eo)))
|
|
1917
|
+
), La = dt(Eo).concat(...lt), ol = Object.keys(lt).map((e) => lt[e].path), Ba = /* @__PURE__ */ new Set();
|
|
1918
|
+
function Ua() {
|
|
1919
|
+
Ba.clear();
|
|
1886
1920
|
}
|
|
1887
|
-
function
|
|
1888
|
-
|
|
1921
|
+
function za() {
|
|
1922
|
+
U.getRoutes().forEach((e) => {
|
|
1889
1923
|
const { name: t, meta: o } = e;
|
|
1890
|
-
t &&
|
|
1891
|
-
}),
|
|
1924
|
+
t && U.hasRoute(t) && (o != null && o.backstage) && (U.removeRoute(t), U.options.routes = Rn(zt(bo(dt(Eo)))));
|
|
1925
|
+
}), J().clearAllCachePage(), Ua();
|
|
1892
1926
|
}
|
|
1893
|
-
let co = null,
|
|
1894
|
-
function
|
|
1895
|
-
co = e,
|
|
1927
|
+
let co = null, U = null;
|
|
1928
|
+
function ja(e, t) {
|
|
1929
|
+
co = e, U = t, Object.assign(co, Aa);
|
|
1896
1930
|
}
|
|
1897
|
-
function
|
|
1931
|
+
function qa() {
|
|
1898
1932
|
return co;
|
|
1899
1933
|
}
|
|
1900
|
-
const
|
|
1901
|
-
var
|
|
1934
|
+
const $a = ["/login"], nl = (e, t, o) => {
|
|
1935
|
+
var i, s, l;
|
|
1902
1936
|
const n = Ae.get(In), r = Tn(e == null ? void 0 : e.name);
|
|
1903
|
-
function
|
|
1904
|
-
|
|
1937
|
+
function a() {
|
|
1938
|
+
$a.includes(e.fullPath) ? o(t.fullPath) : o();
|
|
1905
1939
|
}
|
|
1906
1940
|
if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
|
|
1907
|
-
const
|
|
1908
|
-
r ? (
|
|
1941
|
+
const u = (i = e.matched.find((d) => d.path === e.path || d.name === e.name && e.params)) == null ? void 0 : i.components;
|
|
1942
|
+
r ? (wr(e == null ? void 0 : e.name), (s = Er) == null || s.done()) : u != null && u.default || e.name === "redirect" ? a() : o({ path: "/error/404" });
|
|
1909
1943
|
} else
|
|
1910
|
-
|
|
1944
|
+
J().wholeMenus.length === 0 && xa(n).then((u) => {
|
|
1911
1945
|
var d;
|
|
1912
|
-
if (!
|
|
1913
|
-
const { path: c } = e,
|
|
1946
|
+
if (!ue().getMultiTagsCache) {
|
|
1947
|
+
const { path: c } = e, y = Pr(lt, (m) => m.path === c) === -1 ? u.options.routes[0].children : u.options.routes, v = Mn(c, y);
|
|
1914
1948
|
if (v && ((d = v.meta) != null && d.title)) {
|
|
1915
1949
|
const { path: m, name: h, meta: x } = v;
|
|
1916
|
-
|
|
1950
|
+
ue().handleTags("push", { path: m, name: h, meta: x });
|
|
1917
1951
|
}
|
|
1918
1952
|
}
|
|
1919
|
-
|
|
1920
|
-
}), t.fullPath === "/" && e.fullPath === "/login" && !((
|
|
1953
|
+
$e(e.name) && u.push(e.fullPath);
|
|
1954
|
+
}), t.fullPath === "/" && e.fullPath === "/login" && !((l = e.query) != null && l.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), a();
|
|
1921
1955
|
};
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
const
|
|
1956
|
+
Cr(kn, { serviceApi: Ut(), i18n: On });
|
|
1957
|
+
Ya();
|
|
1958
|
+
const Ha = {
|
|
1925
1959
|
// 对组件内置的提示语进行国际化翻译
|
|
1926
1960
|
// @ts-ignore
|
|
1927
1961
|
i18n: (e, t) => Ct().global.t(e, t),
|
|
@@ -1930,63 +1964,63 @@ const qi = {
|
|
|
1930
1964
|
return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? Ct().global.t.call(Ct().global.locale, e) : e;
|
|
1931
1965
|
}
|
|
1932
1966
|
};
|
|
1933
|
-
function
|
|
1934
|
-
kn.setConfig(wo(
|
|
1967
|
+
function Wa(e = {}) {
|
|
1968
|
+
kn.setConfig(wo(Ha, e)), se.interceptor.add("event.clearEdit", {
|
|
1935
1969
|
tableInterceptorMethod(t) {
|
|
1936
1970
|
const { $event: o } = t;
|
|
1937
1971
|
if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
|
|
1938
1972
|
}
|
|
1939
1973
|
});
|
|
1940
1974
|
}
|
|
1941
|
-
function
|
|
1942
|
-
|
|
1975
|
+
function Va(e) {
|
|
1976
|
+
se.setTheme(e);
|
|
1943
1977
|
}
|
|
1944
|
-
function
|
|
1945
|
-
|
|
1978
|
+
function Ya() {
|
|
1979
|
+
se.commands.add("utTodyay", {
|
|
1946
1980
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1947
|
-
const t =
|
|
1981
|
+
const t = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1948
1982
|
e.setModelValue(t, o);
|
|
1949
1983
|
}
|
|
1950
|
-
}),
|
|
1984
|
+
}), se.commands.add("utYesterDay", {
|
|
1951
1985
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1952
|
-
const t =
|
|
1986
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = B(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
|
|
1953
1987
|
e.setModelValue(t, o);
|
|
1954
1988
|
}
|
|
1955
|
-
}),
|
|
1989
|
+
}), se.commands.add("utRecentWeek", {
|
|
1956
1990
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1957
|
-
const t =
|
|
1991
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1958
1992
|
e.setModelValue(t, o);
|
|
1959
1993
|
}
|
|
1960
|
-
}),
|
|
1994
|
+
}), se.commands.add("utRecentMonth", {
|
|
1961
1995
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1962
|
-
const t =
|
|
1996
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1963
1997
|
e.setModelValue(t, o);
|
|
1964
1998
|
}
|
|
1965
|
-
}),
|
|
1999
|
+
}), se.commands.add("utRecentThreeMonth", {
|
|
1966
2000
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1967
|
-
const t =
|
|
2001
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1968
2002
|
e.setModelValue(t, o);
|
|
1969
2003
|
}
|
|
1970
|
-
}),
|
|
2004
|
+
}), se.commands.add("utRecentHalfYear", {
|
|
1971
2005
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1972
|
-
const t =
|
|
2006
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1973
2007
|
e.setModelValue(t, o);
|
|
1974
2008
|
}
|
|
1975
|
-
}),
|
|
2009
|
+
}), se.commands.add("utRecentYear", {
|
|
1976
2010
|
dateRangePickerCommandMethod({ $dateRangePicker: e }) {
|
|
1977
|
-
const t =
|
|
2011
|
+
const t = B(_e(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = B(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
|
|
1978
2012
|
e.setModelValue(t, o);
|
|
1979
2013
|
}
|
|
1980
2014
|
});
|
|
1981
2015
|
}
|
|
1982
|
-
var Co = Object.defineProperty,
|
|
2016
|
+
var Co = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Xa = Object.getOwnPropertyNames, Ka = Object.prototype.hasOwnProperty, Ja = (e, t, o) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Za = (e, t) => {
|
|
1983
2017
|
for (var o in t) Co(e, o, { get: t[o], enumerable: !0 });
|
|
1984
|
-
},
|
|
1985
|
-
if (t && typeof t == "object" || typeof t == "function") for (let r of
|
|
2018
|
+
}, Qa = (e, t, o, n) => {
|
|
2019
|
+
if (t && typeof t == "object" || typeof t == "function") for (let r of Xa(t)) !Ka.call(e, r) && r !== o && Co(e, r, { get: () => t[r], enumerable: !(n = Ga(t, r)) || n.enumerable });
|
|
1986
2020
|
return e;
|
|
1987
|
-
},
|
|
1988
|
-
|
|
1989
|
-
|
|
2021
|
+
}, ei = (e, t, o) => (Qa(e, t, "default"), o), Jo = (e, t, o) => (Ja(e, typeof t != "symbol" ? t + "" : t, o), o), So = {};
|
|
2022
|
+
Za(So, { Vue: () => Cn });
|
|
2023
|
+
ei(So, Cn);
|
|
1990
2024
|
var _t = class {
|
|
1991
2025
|
static install(e, t) {
|
|
1992
2026
|
let { nameSpace: o = this._nameSpace, memory: n } = t;
|
|
@@ -2008,18 +2042,18 @@ var _t = class {
|
|
|
2008
2042
|
if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
|
|
2009
2043
|
}
|
|
2010
2044
|
constructor(e, t) {
|
|
2011
|
-
let o = _t, { version: n = 3, nameSpace: r = o._nameSpace, memory:
|
|
2012
|
-
Object.keys(s).length === 0 && console.warn("key cannot be empty"), Object.keys(s).forEach((
|
|
2013
|
-
let d = s[
|
|
2014
|
-
o.set(
|
|
2045
|
+
let o = _t, { version: n = 3, nameSpace: r = o._nameSpace, memory: a } = t, i = (u) => r + u, s = n === 3 ? (0, So.reactive)(a) : a;
|
|
2046
|
+
Object.keys(s).length === 0 && console.warn("key cannot be empty"), Object.keys(s).forEach((u) => {
|
|
2047
|
+
let d = s[u];
|
|
2048
|
+
o.set(i(u), d), Reflect.defineProperty(s, u, { get: () => o.get(i(u)), set: (c) => o.set(i(u), c), configurable: !0 }), n === 2 && e.util.defineReactive(s, u, s[u]);
|
|
2015
2049
|
});
|
|
2016
|
-
let
|
|
2017
|
-
Reflect.defineProperty(
|
|
2050
|
+
let l = n === 3 ? e.config.globalProperties : e.prototype;
|
|
2051
|
+
Reflect.defineProperty(l, "$storage", { get: () => s });
|
|
2018
2052
|
}
|
|
2019
2053
|
}, Ce = _t;
|
|
2020
2054
|
Jo(Ce, "_nameSpace", "rs-"), Jo(Ce, "_getStaticKey", (e, t) => `${e ?? _t._nameSpace}${t}`);
|
|
2021
|
-
const
|
|
2022
|
-
const o =
|
|
2055
|
+
const ti = (e, t) => {
|
|
2056
|
+
const o = $(), n = Object.assign(
|
|
2023
2057
|
{
|
|
2024
2058
|
// 国际化 默认中文zh
|
|
2025
2059
|
locale: Ce.getData("locale", o) ?? {
|
|
@@ -2053,19 +2087,19 @@ const Qi = (e, t) => {
|
|
|
2053
2087
|
} : {}
|
|
2054
2088
|
);
|
|
2055
2089
|
e.use(Ce, { nameSpace: o, memory: n });
|
|
2056
|
-
},
|
|
2090
|
+
}, oi = (e) => {
|
|
2057
2091
|
var r;
|
|
2058
2092
|
if (!e) return !0;
|
|
2059
|
-
const t = (r =
|
|
2093
|
+
const t = (r = U.currentRoute.value.meta) == null ? void 0 : r.permissionCode;
|
|
2060
2094
|
if (!t) return !0;
|
|
2061
2095
|
_r(e) || (e = [e]);
|
|
2062
|
-
const o =
|
|
2096
|
+
const o = J().getButtonAuth;
|
|
2063
2097
|
if (!o) return !0;
|
|
2064
2098
|
let n = !1;
|
|
2065
|
-
return e.forEach((
|
|
2099
|
+
return e.forEach((a) => {
|
|
2066
2100
|
if (!n) {
|
|
2067
|
-
const
|
|
2068
|
-
n = o.includes(
|
|
2101
|
+
const i = `${t}.${a}`;
|
|
2102
|
+
n = o.includes(i);
|
|
2069
2103
|
}
|
|
2070
2104
|
}), n;
|
|
2071
2105
|
};
|
|
@@ -2085,11 +2119,11 @@ function Zo(e, t) {
|
|
|
2085
2119
|
}
|
|
2086
2120
|
return o;
|
|
2087
2121
|
}
|
|
2088
|
-
function
|
|
2122
|
+
function de(e) {
|
|
2089
2123
|
for (var t = 1; t < arguments.length; t++) {
|
|
2090
2124
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
2091
2125
|
t % 2 ? Zo(Object(o), !0).forEach(function(n) {
|
|
2092
|
-
|
|
2126
|
+
ni(e, n, o[n]);
|
|
2093
2127
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Zo(Object(o)).forEach(function(n) {
|
|
2094
2128
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
2095
2129
|
});
|
|
@@ -2104,7 +2138,7 @@ function Dt(e) {
|
|
|
2104
2138
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2105
2139
|
}, Dt(e);
|
|
2106
2140
|
}
|
|
2107
|
-
function
|
|
2141
|
+
function ni(e, t, o) {
|
|
2108
2142
|
return t in e ? Object.defineProperty(e, t, {
|
|
2109
2143
|
value: o,
|
|
2110
2144
|
enumerable: !0,
|
|
@@ -2112,47 +2146,47 @@ function ta(e, t, o) {
|
|
|
2112
2146
|
writable: !0
|
|
2113
2147
|
}) : e[t] = o, e;
|
|
2114
2148
|
}
|
|
2115
|
-
function
|
|
2116
|
-
return
|
|
2149
|
+
function ve() {
|
|
2150
|
+
return ve = Object.assign || function(e) {
|
|
2117
2151
|
for (var t = 1; t < arguments.length; t++) {
|
|
2118
2152
|
var o = arguments[t];
|
|
2119
2153
|
for (var n in o)
|
|
2120
2154
|
Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);
|
|
2121
2155
|
}
|
|
2122
2156
|
return e;
|
|
2123
|
-
},
|
|
2157
|
+
}, ve.apply(this, arguments);
|
|
2124
2158
|
}
|
|
2125
|
-
function
|
|
2159
|
+
function ri(e, t) {
|
|
2126
2160
|
if (e == null) return {};
|
|
2127
|
-
var o = {}, n = Object.keys(e), r,
|
|
2128
|
-
for (
|
|
2129
|
-
r = n[
|
|
2161
|
+
var o = {}, n = Object.keys(e), r, a;
|
|
2162
|
+
for (a = 0; a < n.length; a++)
|
|
2163
|
+
r = n[a], !(t.indexOf(r) >= 0) && (o[r] = e[r]);
|
|
2130
2164
|
return o;
|
|
2131
2165
|
}
|
|
2132
|
-
function
|
|
2166
|
+
function ai(e, t) {
|
|
2133
2167
|
if (e == null) return {};
|
|
2134
|
-
var o =
|
|
2168
|
+
var o = ri(e, t), n, r;
|
|
2135
2169
|
if (Object.getOwnPropertySymbols) {
|
|
2136
|
-
var
|
|
2137
|
-
for (r = 0; r <
|
|
2138
|
-
n =
|
|
2170
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
2171
|
+
for (r = 0; r < a.length; r++)
|
|
2172
|
+
n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
|
|
2139
2173
|
}
|
|
2140
2174
|
return o;
|
|
2141
2175
|
}
|
|
2142
|
-
var
|
|
2143
|
-
function
|
|
2176
|
+
var ii = "1.15.6";
|
|
2177
|
+
function ye(e) {
|
|
2144
2178
|
if (typeof window < "u" && window.navigator)
|
|
2145
2179
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2146
2180
|
}
|
|
2147
|
-
var
|
|
2181
|
+
var be = ye(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ft = ye(/Edge/i), Qo = ye(/firefox/i), ot = ye(/safari/i) && !ye(/chrome/i) && !ye(/android/i), Do = ye(/iP(ad|od|hone)/i), Un = ye(/chrome/i) && ye(/android/i), zn = {
|
|
2148
2182
|
capture: !1,
|
|
2149
2183
|
passive: !1
|
|
2150
2184
|
};
|
|
2151
2185
|
function D(e, t, o) {
|
|
2152
|
-
e.addEventListener(t, o, !
|
|
2186
|
+
e.addEventListener(t, o, !be && zn);
|
|
2153
2187
|
}
|
|
2154
2188
|
function S(e, t, o) {
|
|
2155
|
-
e.removeEventListener(t, o, !
|
|
2189
|
+
e.removeEventListener(t, o, !be && zn);
|
|
2156
2190
|
}
|
|
2157
2191
|
function Ot(e, t) {
|
|
2158
2192
|
if (t) {
|
|
@@ -2170,22 +2204,22 @@ function Ot(e, t) {
|
|
|
2170
2204
|
return !1;
|
|
2171
2205
|
}
|
|
2172
2206
|
}
|
|
2173
|
-
function
|
|
2207
|
+
function jn(e) {
|
|
2174
2208
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2175
2209
|
}
|
|
2176
|
-
function
|
|
2210
|
+
function ne(e, t, o, n) {
|
|
2177
2211
|
if (e) {
|
|
2178
2212
|
o = o || document;
|
|
2179
2213
|
do {
|
|
2180
2214
|
if (t != null && (t[0] === ">" ? e.parentNode === o && Ot(e, t) : Ot(e, t)) || n && e === o)
|
|
2181
2215
|
return e;
|
|
2182
2216
|
if (e === o) break;
|
|
2183
|
-
} while (e =
|
|
2217
|
+
} while (e = jn(e));
|
|
2184
2218
|
}
|
|
2185
2219
|
return null;
|
|
2186
2220
|
}
|
|
2187
2221
|
var en = /\s+/g;
|
|
2188
|
-
function
|
|
2222
|
+
function G(e, t, o) {
|
|
2189
2223
|
if (e && t)
|
|
2190
2224
|
if (e.classList)
|
|
2191
2225
|
e.classList[o ? "add" : "remove"](t);
|
|
@@ -2202,7 +2236,7 @@ function b(e, t, o) {
|
|
|
2202
2236
|
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = o + (typeof o == "string" ? "" : "px");
|
|
2203
2237
|
}
|
|
2204
2238
|
}
|
|
2205
|
-
function
|
|
2239
|
+
function We(e, t) {
|
|
2206
2240
|
var o = "";
|
|
2207
2241
|
if (typeof e == "string")
|
|
2208
2242
|
o = e;
|
|
@@ -2214,40 +2248,40 @@ function $e(e, t) {
|
|
|
2214
2248
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2215
2249
|
return r && new r(o);
|
|
2216
2250
|
}
|
|
2217
|
-
function
|
|
2251
|
+
function qn(e, t, o) {
|
|
2218
2252
|
if (e) {
|
|
2219
|
-
var n = e.getElementsByTagName(t), r = 0,
|
|
2253
|
+
var n = e.getElementsByTagName(t), r = 0, a = n.length;
|
|
2220
2254
|
if (o)
|
|
2221
|
-
for (; r <
|
|
2255
|
+
for (; r < a; r++)
|
|
2222
2256
|
o(n[r], r);
|
|
2223
2257
|
return n;
|
|
2224
2258
|
}
|
|
2225
2259
|
return [];
|
|
2226
2260
|
}
|
|
2227
|
-
function
|
|
2261
|
+
function ce() {
|
|
2228
2262
|
var e = document.scrollingElement;
|
|
2229
2263
|
return e || document.documentElement;
|
|
2230
2264
|
}
|
|
2231
2265
|
function R(e, t, o, n, r) {
|
|
2232
2266
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2233
|
-
var
|
|
2234
|
-
if (e !== window && e.parentNode && e !==
|
|
2267
|
+
var a, i, s, l, u, d, c;
|
|
2268
|
+
if (e !== window && e.parentNode && e !== ce() ? (a = e.getBoundingClientRect(), i = a.top, s = a.left, l = a.bottom, u = a.right, d = a.height, c = a.width) : (i = 0, s = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || o) && e !== window && (r = r || e.parentNode, !be))
|
|
2235
2269
|
do
|
|
2236
2270
|
if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || o && b(r, "position") !== "static")) {
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2271
|
+
var p = r.getBoundingClientRect();
|
|
2272
|
+
i -= p.top + parseInt(b(r, "border-top-width")), s -= p.left + parseInt(b(r, "border-left-width")), l = i + a.height, u = s + a.width;
|
|
2239
2273
|
break;
|
|
2240
2274
|
}
|
|
2241
2275
|
while (r = r.parentNode);
|
|
2242
2276
|
if (n && e !== window) {
|
|
2243
|
-
var
|
|
2244
|
-
|
|
2277
|
+
var y = We(r || e), v = y && y.a, m = y && y.d;
|
|
2278
|
+
y && (i /= m, s /= v, c /= v, d /= m, l = i + d, u = s + c);
|
|
2245
2279
|
}
|
|
2246
2280
|
return {
|
|
2247
|
-
top:
|
|
2281
|
+
top: i,
|
|
2248
2282
|
left: s,
|
|
2249
|
-
bottom:
|
|
2250
|
-
right:
|
|
2283
|
+
bottom: l,
|
|
2284
|
+
right: u,
|
|
2251
2285
|
width: c,
|
|
2252
2286
|
height: d
|
|
2253
2287
|
};
|
|
@@ -2255,21 +2289,21 @@ function R(e, t, o, n, r) {
|
|
|
2255
2289
|
}
|
|
2256
2290
|
function tn(e, t, o) {
|
|
2257
2291
|
for (var n = xe(e, !0), r = R(e)[t]; n; ) {
|
|
2258
|
-
var
|
|
2259
|
-
if (
|
|
2260
|
-
if (n ===
|
|
2292
|
+
var a = R(n)[o], i = void 0;
|
|
2293
|
+
if (i = r >= a, !i) return n;
|
|
2294
|
+
if (n === ce()) break;
|
|
2261
2295
|
n = xe(n, !1);
|
|
2262
2296
|
}
|
|
2263
2297
|
return !1;
|
|
2264
2298
|
}
|
|
2265
2299
|
function Ge(e, t, o, n) {
|
|
2266
|
-
for (var r = 0,
|
|
2267
|
-
if (a
|
|
2300
|
+
for (var r = 0, a = 0, i = e.children; a < i.length; ) {
|
|
2301
|
+
if (i[a].style.display !== "none" && i[a] !== w.ghost && (n || i[a] !== w.dragged) && ne(i[a], o.draggable, e, !1)) {
|
|
2268
2302
|
if (r === t)
|
|
2269
|
-
return a
|
|
2303
|
+
return i[a];
|
|
2270
2304
|
r++;
|
|
2271
2305
|
}
|
|
2272
|
-
|
|
2306
|
+
a++;
|
|
2273
2307
|
}
|
|
2274
2308
|
return null;
|
|
2275
2309
|
}
|
|
@@ -2287,15 +2321,15 @@ function Q(e, t) {
|
|
|
2287
2321
|
return o;
|
|
2288
2322
|
}
|
|
2289
2323
|
function on(e) {
|
|
2290
|
-
var t = 0, o = 0, n =
|
|
2324
|
+
var t = 0, o = 0, n = ce();
|
|
2291
2325
|
if (e)
|
|
2292
2326
|
do {
|
|
2293
|
-
var r =
|
|
2294
|
-
t += e.scrollLeft *
|
|
2327
|
+
var r = We(e), a = r.a, i = r.d;
|
|
2328
|
+
t += e.scrollLeft * a, o += e.scrollTop * i;
|
|
2295
2329
|
} while (e !== n && (e = e.parentNode));
|
|
2296
2330
|
return [t, o];
|
|
2297
2331
|
}
|
|
2298
|
-
function
|
|
2332
|
+
function si(e, t) {
|
|
2299
2333
|
for (var o in e)
|
|
2300
2334
|
if (e.hasOwnProperty(o)) {
|
|
2301
2335
|
for (var n in t)
|
|
@@ -2304,21 +2338,21 @@ function ia(e, t) {
|
|
|
2304
2338
|
return -1;
|
|
2305
2339
|
}
|
|
2306
2340
|
function xe(e, t) {
|
|
2307
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2341
|
+
if (!e || !e.getBoundingClientRect) return ce();
|
|
2308
2342
|
var o = e, n = !1;
|
|
2309
2343
|
do
|
|
2310
2344
|
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
2311
2345
|
var r = b(o);
|
|
2312
2346
|
if (o.clientWidth < o.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
2313
|
-
if (!o.getBoundingClientRect || o === document.body) return
|
|
2347
|
+
if (!o.getBoundingClientRect || o === document.body) return ce();
|
|
2314
2348
|
if (n || t) return o;
|
|
2315
2349
|
n = !0;
|
|
2316
2350
|
}
|
|
2317
2351
|
}
|
|
2318
2352
|
while (o = o.parentNode);
|
|
2319
|
-
return
|
|
2353
|
+
return ce();
|
|
2320
2354
|
}
|
|
2321
|
-
function
|
|
2355
|
+
function li(e, t) {
|
|
2322
2356
|
if (e && t)
|
|
2323
2357
|
for (var o in t)
|
|
2324
2358
|
t.hasOwnProperty(o) && (e[o] = t[o]);
|
|
@@ -2328,7 +2362,7 @@ function Gt(e, t) {
|
|
|
2328
2362
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2329
2363
|
}
|
|
2330
2364
|
var nt;
|
|
2331
|
-
function
|
|
2365
|
+
function $n(e, t) {
|
|
2332
2366
|
return function() {
|
|
2333
2367
|
if (!nt) {
|
|
2334
2368
|
var o = arguments, n = this;
|
|
@@ -2338,7 +2372,7 @@ function qn(e, t) {
|
|
|
2338
2372
|
}
|
|
2339
2373
|
};
|
|
2340
2374
|
}
|
|
2341
|
-
function
|
|
2375
|
+
function ui() {
|
|
2342
2376
|
clearTimeout(nt), nt = void 0;
|
|
2343
2377
|
}
|
|
2344
2378
|
function Hn(e, t, o) {
|
|
@@ -2348,18 +2382,18 @@ function Wn(e) {
|
|
|
2348
2382
|
var t = window.Polymer, o = window.jQuery || window.Zepto;
|
|
2349
2383
|
return t && t.dom ? t.dom(e).cloneNode(!0) : o ? o(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2350
2384
|
}
|
|
2351
|
-
function
|
|
2385
|
+
function Vn(e, t, o) {
|
|
2352
2386
|
var n = {};
|
|
2353
2387
|
return Array.from(e.children).forEach(function(r) {
|
|
2354
|
-
var
|
|
2355
|
-
if (!(!
|
|
2356
|
-
var
|
|
2357
|
-
n.left = Math.min((
|
|
2388
|
+
var a, i, s, l;
|
|
2389
|
+
if (!(!ne(r, t.draggable, e, !1) || r.animated || r === o)) {
|
|
2390
|
+
var u = R(r);
|
|
2391
|
+
n.left = Math.min((a = n.left) !== null && a !== void 0 ? a : 1 / 0, u.left), n.top = Math.min((i = n.top) !== null && i !== void 0 ? i : 1 / 0, u.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, u.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
|
|
2358
2392
|
}
|
|
2359
2393
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
2360
2394
|
}
|
|
2361
2395
|
var Y = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2362
|
-
function
|
|
2396
|
+
function ci() {
|
|
2363
2397
|
var e = [], t;
|
|
2364
2398
|
return {
|
|
2365
2399
|
captureAnimationState: function() {
|
|
@@ -2371,12 +2405,12 @@ function la() {
|
|
|
2371
2405
|
target: r,
|
|
2372
2406
|
rect: R(r)
|
|
2373
2407
|
});
|
|
2374
|
-
var
|
|
2408
|
+
var a = de({}, e[e.length - 1].rect);
|
|
2375
2409
|
if (r.thisAnimationDuration) {
|
|
2376
|
-
var
|
|
2377
|
-
|
|
2410
|
+
var i = We(r, !0);
|
|
2411
|
+
i && (a.top -= i.f, a.left -= i.e);
|
|
2378
2412
|
}
|
|
2379
|
-
r.fromRect =
|
|
2413
|
+
r.fromRect = a;
|
|
2380
2414
|
}
|
|
2381
2415
|
});
|
|
2382
2416
|
}
|
|
@@ -2385,7 +2419,7 @@ function la() {
|
|
|
2385
2419
|
e.push(n);
|
|
2386
2420
|
},
|
|
2387
2421
|
removeAnimationState: function(n) {
|
|
2388
|
-
e.splice(
|
|
2422
|
+
e.splice(si(e, {
|
|
2389
2423
|
target: n
|
|
2390
2424
|
}), 1);
|
|
2391
2425
|
},
|
|
@@ -2395,32 +2429,32 @@ function la() {
|
|
|
2395
2429
|
clearTimeout(t), typeof n == "function" && n();
|
|
2396
2430
|
return;
|
|
2397
2431
|
}
|
|
2398
|
-
var
|
|
2432
|
+
var a = !1, i = 0;
|
|
2399
2433
|
e.forEach(function(s) {
|
|
2400
|
-
var
|
|
2401
|
-
m && (c.top -= m.f, c.left -= m.e),
|
|
2402
|
-
(v.top - c.top) / (v.left - c.left) === (d.top - c.top) / (d.left - c.left) && (
|
|
2403
|
-
|
|
2404
|
-
},
|
|
2405
|
-
}), clearTimeout(t),
|
|
2434
|
+
var l = 0, u = s.target, d = u.fromRect, c = R(u), p = u.prevFromRect, y = u.prevToRect, v = s.rect, m = We(u, !0);
|
|
2435
|
+
m && (c.top -= m.f, c.left -= m.e), u.toRect = c, u.thisAnimationDuration && Gt(p, c) && !Gt(d, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
2436
|
+
(v.top - c.top) / (v.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = fi(v, p, y, r.options)), Gt(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = r.options.animation), r.animate(u, v, c, l)), l && (a = !0, i = Math.max(i, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
2437
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
2438
|
+
}, l), u.thisAnimationDuration = l);
|
|
2439
|
+
}), clearTimeout(t), a ? t = setTimeout(function() {
|
|
2406
2440
|
typeof n == "function" && n();
|
|
2407
|
-
},
|
|
2441
|
+
}, i) : typeof n == "function" && n(), e = [];
|
|
2408
2442
|
},
|
|
2409
|
-
animate: function(n, r,
|
|
2410
|
-
if (
|
|
2443
|
+
animate: function(n, r, a, i) {
|
|
2444
|
+
if (i) {
|
|
2411
2445
|
b(n, "transition", ""), b(n, "transform", "");
|
|
2412
|
-
var s =
|
|
2413
|
-
n.animatingX = !!d, n.animatingY = !!c, b(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
2446
|
+
var s = We(this.el), l = s && s.a, u = s && s.d, d = (r.left - a.left) / (l || 1), c = (r.top - a.top) / (u || 1);
|
|
2447
|
+
n.animatingX = !!d, n.animatingY = !!c, b(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = di(n), b(n, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
2414
2448
|
b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
2415
|
-
},
|
|
2449
|
+
}, i);
|
|
2416
2450
|
}
|
|
2417
2451
|
}
|
|
2418
2452
|
};
|
|
2419
2453
|
}
|
|
2420
|
-
function
|
|
2454
|
+
function di(e) {
|
|
2421
2455
|
return e.offsetWidth;
|
|
2422
2456
|
}
|
|
2423
|
-
function
|
|
2457
|
+
function fi(e, t, o, n) {
|
|
2424
2458
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) * n.animation;
|
|
2425
2459
|
}
|
|
2426
2460
|
var Be = [], Xt = {
|
|
@@ -2439,59 +2473,59 @@ var Be = [], Xt = {
|
|
|
2439
2473
|
this.eventCanceled = !1, n.cancel = function() {
|
|
2440
2474
|
r.eventCanceled = !0;
|
|
2441
2475
|
};
|
|
2442
|
-
var
|
|
2443
|
-
Be.forEach(function(
|
|
2444
|
-
o[
|
|
2476
|
+
var a = t + "Global";
|
|
2477
|
+
Be.forEach(function(i) {
|
|
2478
|
+
o[i.pluginName] && (o[i.pluginName][a] && o[i.pluginName][a](de({
|
|
2445
2479
|
sortable: o
|
|
2446
|
-
}, n)), o.options[
|
|
2480
|
+
}, n)), o.options[i.pluginName] && o[i.pluginName][t] && o[i.pluginName][t](de({
|
|
2447
2481
|
sortable: o
|
|
2448
2482
|
}, n)));
|
|
2449
2483
|
});
|
|
2450
2484
|
},
|
|
2451
2485
|
initializePlugins: function(t, o, n, r) {
|
|
2452
2486
|
Be.forEach(function(s) {
|
|
2453
|
-
var
|
|
2454
|
-
if (!(!t.options[
|
|
2455
|
-
var
|
|
2456
|
-
|
|
2487
|
+
var l = s.pluginName;
|
|
2488
|
+
if (!(!t.options[l] && !s.initializeByDefault)) {
|
|
2489
|
+
var u = new s(t, o, t.options);
|
|
2490
|
+
u.sortable = t, u.options = t.options, t[l] = u, ve(n, u.defaults);
|
|
2457
2491
|
}
|
|
2458
2492
|
});
|
|
2459
|
-
for (var
|
|
2460
|
-
if (t.options.hasOwnProperty(
|
|
2461
|
-
var
|
|
2462
|
-
typeof
|
|
2493
|
+
for (var a in t.options)
|
|
2494
|
+
if (t.options.hasOwnProperty(a)) {
|
|
2495
|
+
var i = this.modifyOption(t, a, t.options[a]);
|
|
2496
|
+
typeof i < "u" && (t.options[a] = i);
|
|
2463
2497
|
}
|
|
2464
2498
|
},
|
|
2465
2499
|
getEventProperties: function(t, o) {
|
|
2466
2500
|
var n = {};
|
|
2467
2501
|
return Be.forEach(function(r) {
|
|
2468
|
-
typeof r.eventProperties == "function" &&
|
|
2502
|
+
typeof r.eventProperties == "function" && ve(n, r.eventProperties.call(o[r.pluginName], t));
|
|
2469
2503
|
}), n;
|
|
2470
2504
|
},
|
|
2471
2505
|
modifyOption: function(t, o, n) {
|
|
2472
2506
|
var r;
|
|
2473
|
-
return Be.forEach(function(
|
|
2474
|
-
t[
|
|
2507
|
+
return Be.forEach(function(a) {
|
|
2508
|
+
t[a.pluginName] && a.optionListeners && typeof a.optionListeners[o] == "function" && (r = a.optionListeners[o].call(t[a.pluginName], n));
|
|
2475
2509
|
}), r;
|
|
2476
2510
|
}
|
|
2477
2511
|
};
|
|
2478
|
-
function
|
|
2479
|
-
var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl,
|
|
2512
|
+
function mi(e) {
|
|
2513
|
+
var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl, a = e.cloneEl, i = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, y = e.putSortable, v = e.extraEventProperties;
|
|
2480
2514
|
if (t = t || o && o[Y], !!t) {
|
|
2481
2515
|
var m, h = t.options, x = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
2482
|
-
window.CustomEvent && !
|
|
2516
|
+
window.CustomEvent && !be && !ft ? m = new CustomEvent(n, {
|
|
2483
2517
|
bubbles: !0,
|
|
2484
2518
|
cancelable: !0
|
|
2485
|
-
}) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to =
|
|
2486
|
-
var C =
|
|
2519
|
+
}) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = i || o, m.from = s || o, m.item = r || o, m.clone = a, m.oldIndex = l, m.newIndex = u, m.oldDraggableIndex = d, m.newDraggableIndex = c, m.originalEvent = p, m.pullMode = y ? y.lastPutMode : void 0;
|
|
2520
|
+
var C = de(de({}, v), mt.getEventProperties(n, t));
|
|
2487
2521
|
for (var T in C)
|
|
2488
2522
|
m[T] = C[T];
|
|
2489
2523
|
o && o.dispatchEvent(m), h[x] && h[x].call(t, m);
|
|
2490
2524
|
}
|
|
2491
2525
|
}
|
|
2492
|
-
var
|
|
2493
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt,
|
|
2494
|
-
mt.pluginEvent.bind(w)(t, o,
|
|
2526
|
+
var hi = ["evt"], V = function(t, o) {
|
|
2527
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, a = ai(n, hi);
|
|
2528
|
+
mt.pluginEvent.bind(w)(t, o, de({
|
|
2495
2529
|
dragEl: f,
|
|
2496
2530
|
parentEl: N,
|
|
2497
2531
|
ghostEl: E,
|
|
@@ -2506,10 +2540,10 @@ var fa = ["evt"], V = function(t, o) {
|
|
|
2506
2540
|
originalEvent: r,
|
|
2507
2541
|
oldIndex: qe,
|
|
2508
2542
|
oldDraggableIndex: rt,
|
|
2509
|
-
newIndex:
|
|
2543
|
+
newIndex: K,
|
|
2510
2544
|
newDraggableIndex: Se,
|
|
2511
|
-
hideGhostForTarget:
|
|
2512
|
-
unhideGhostForTarget:
|
|
2545
|
+
hideGhostForTarget: Kn,
|
|
2546
|
+
unhideGhostForTarget: Jn,
|
|
2513
2547
|
cloneNowHidden: function() {
|
|
2514
2548
|
De = !0;
|
|
2515
2549
|
},
|
|
@@ -2517,90 +2551,90 @@ var fa = ["evt"], V = function(t, o) {
|
|
|
2517
2551
|
De = !1;
|
|
2518
2552
|
},
|
|
2519
2553
|
dispatchSortableEvent: function(s) {
|
|
2520
|
-
|
|
2554
|
+
W({
|
|
2521
2555
|
sortable: o,
|
|
2522
2556
|
name: s,
|
|
2523
2557
|
originalEvent: r
|
|
2524
2558
|
});
|
|
2525
2559
|
}
|
|
2526
|
-
},
|
|
2560
|
+
}, a));
|
|
2527
2561
|
};
|
|
2528
|
-
function
|
|
2529
|
-
|
|
2562
|
+
function W(e) {
|
|
2563
|
+
mi(de({
|
|
2530
2564
|
putSortable: z,
|
|
2531
2565
|
cloneEl: _,
|
|
2532
2566
|
targetEl: f,
|
|
2533
2567
|
rootEl: P,
|
|
2534
2568
|
oldIndex: qe,
|
|
2535
2569
|
oldDraggableIndex: rt,
|
|
2536
|
-
newIndex:
|
|
2570
|
+
newIndex: K,
|
|
2537
2571
|
newDraggableIndex: Se
|
|
2538
2572
|
}, e));
|
|
2539
2573
|
}
|
|
2540
|
-
var f, N, E, P, Me, Tt, _, De, qe,
|
|
2574
|
+
var f, N, E, P, Me, Tt, _, De, qe, K, rt, Se, yt, z, ze = !1, Nt = !1, Mt = [], Oe, oe, Kt, Jt, nn, rn, Ze, Ue, at, it = !1, vt = !1, xt, q, Zt = [], fo = !1, Rt = [], jt = typeof document < "u", bt = Do, an = ft || be ? "cssFloat" : "float", pi = jt && !Un && !Do && "draggable" in document.createElement("div"), Yn = function() {
|
|
2541
2575
|
if (jt) {
|
|
2542
|
-
if (
|
|
2576
|
+
if (be)
|
|
2543
2577
|
return !1;
|
|
2544
2578
|
var e = document.createElement("x");
|
|
2545
2579
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2546
2580
|
}
|
|
2547
|
-
}(),
|
|
2548
|
-
var n = b(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth),
|
|
2581
|
+
}(), Gn = function(t, o) {
|
|
2582
|
+
var n = b(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), a = Ge(t, 0, o), i = Ge(t, 1, o), s = a && b(a), l = i && b(i), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + R(a).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + R(i).width;
|
|
2549
2583
|
if (n.display === "flex")
|
|
2550
2584
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2551
2585
|
if (n.display === "grid")
|
|
2552
2586
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2553
|
-
if (
|
|
2587
|
+
if (a && s.float && s.float !== "none") {
|
|
2554
2588
|
var c = s.float === "left" ? "left" : "right";
|
|
2555
|
-
return
|
|
2589
|
+
return i && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
2556
2590
|
}
|
|
2557
|
-
return
|
|
2558
|
-
},
|
|
2559
|
-
var r = n ? t.left : t.top,
|
|
2560
|
-
return r === s ||
|
|
2561
|
-
},
|
|
2591
|
+
return a && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[an] === "none" || i && n[an] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
2592
|
+
}, gi = function(t, o, n) {
|
|
2593
|
+
var r = n ? t.left : t.top, a = n ? t.right : t.bottom, i = n ? t.width : t.height, s = n ? o.left : o.top, l = n ? o.right : o.bottom, u = n ? o.width : o.height;
|
|
2594
|
+
return r === s || a === l || r + i / 2 === s + u / 2;
|
|
2595
|
+
}, yi = function(t, o) {
|
|
2562
2596
|
var n;
|
|
2563
2597
|
return Mt.some(function(r) {
|
|
2564
|
-
var
|
|
2565
|
-
if (!(!
|
|
2566
|
-
var
|
|
2567
|
-
if (s &&
|
|
2598
|
+
var a = r[Y].options.emptyInsertThreshold;
|
|
2599
|
+
if (!(!a || To(r))) {
|
|
2600
|
+
var i = R(r), s = t >= i.left - a && t <= i.right + a, l = o >= i.top - a && o <= i.bottom + a;
|
|
2601
|
+
if (s && l)
|
|
2568
2602
|
return n = r;
|
|
2569
2603
|
}
|
|
2570
2604
|
}), n;
|
|
2571
|
-
},
|
|
2572
|
-
function o(
|
|
2573
|
-
return function(s,
|
|
2574
|
-
var c = s.options.group.name &&
|
|
2575
|
-
if (
|
|
2605
|
+
}, Xn = function(t) {
|
|
2606
|
+
function o(a, i) {
|
|
2607
|
+
return function(s, l, u, d) {
|
|
2608
|
+
var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
|
|
2609
|
+
if (a == null && (i || c))
|
|
2576
2610
|
return !0;
|
|
2577
|
-
if (
|
|
2611
|
+
if (a == null || a === !1)
|
|
2578
2612
|
return !1;
|
|
2579
|
-
if (
|
|
2580
|
-
return
|
|
2581
|
-
if (typeof
|
|
2582
|
-
return o(
|
|
2583
|
-
var
|
|
2584
|
-
return
|
|
2613
|
+
if (i && a === "clone")
|
|
2614
|
+
return a;
|
|
2615
|
+
if (typeof a == "function")
|
|
2616
|
+
return o(a(s, l, u, d), i)(s, l, u, d);
|
|
2617
|
+
var p = (i ? s : l).options.group.name;
|
|
2618
|
+
return a === !0 || typeof a == "string" && a === p || a.join && a.indexOf(p) > -1;
|
|
2585
2619
|
};
|
|
2586
2620
|
}
|
|
2587
2621
|
var n = {}, r = t.group;
|
|
2588
2622
|
(!r || Dt(r) != "object") && (r = {
|
|
2589
2623
|
name: r
|
|
2590
2624
|
}), n.name = r.name, n.checkPull = o(r.pull, !0), n.checkPut = o(r.put), n.revertClone = r.revertClone, t.group = n;
|
|
2591
|
-
}, Xn = function() {
|
|
2592
|
-
!Vn && E && b(E, "display", "none");
|
|
2593
2625
|
}, Kn = function() {
|
|
2594
|
-
!
|
|
2626
|
+
!Yn && E && b(E, "display", "none");
|
|
2627
|
+
}, Jn = function() {
|
|
2628
|
+
!Yn && E && b(E, "display", "");
|
|
2595
2629
|
};
|
|
2596
|
-
jt && !
|
|
2630
|
+
jt && !Un && document.addEventListener("click", function(e) {
|
|
2597
2631
|
if (Nt)
|
|
2598
2632
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Nt = !1, !1;
|
|
2599
2633
|
}, !0);
|
|
2600
2634
|
var Ne = function(t) {
|
|
2601
2635
|
if (f) {
|
|
2602
2636
|
t = t.touches ? t.touches[0] : t;
|
|
2603
|
-
var o =
|
|
2637
|
+
var o = yi(t.clientX, t.clientY);
|
|
2604
2638
|
if (o) {
|
|
2605
2639
|
var n = {};
|
|
2606
2640
|
for (var r in t)
|
|
@@ -2608,13 +2642,13 @@ var Ne = function(t) {
|
|
|
2608
2642
|
n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[Y]._onDragOver(n);
|
|
2609
2643
|
}
|
|
2610
2644
|
}
|
|
2611
|
-
},
|
|
2645
|
+
}, vi = function(t) {
|
|
2612
2646
|
f && f.parentNode[Y]._isOutsideThisEl(t.target);
|
|
2613
2647
|
};
|
|
2614
2648
|
function w(e, t) {
|
|
2615
2649
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
2616
2650
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
2617
|
-
this.el = e, this.options = t =
|
|
2651
|
+
this.el = e, this.options = t = ve({}, t), e[Y] = this;
|
|
2618
2652
|
var o = {
|
|
2619
2653
|
group: null,
|
|
2620
2654
|
sort: !0,
|
|
@@ -2630,7 +2664,7 @@ function w(e, t) {
|
|
|
2630
2664
|
// will be set to same as swapThreshold if default
|
|
2631
2665
|
removeCloneOnHide: !0,
|
|
2632
2666
|
direction: function() {
|
|
2633
|
-
return
|
|
2667
|
+
return Gn(e, this.options);
|
|
2634
2668
|
},
|
|
2635
2669
|
ghostClass: "sortable-ghost",
|
|
2636
2670
|
chosenClass: "sortable-chosen",
|
|
@@ -2640,8 +2674,8 @@ function w(e, t) {
|
|
|
2640
2674
|
preventOnFilter: !0,
|
|
2641
2675
|
animation: 0,
|
|
2642
2676
|
easing: null,
|
|
2643
|
-
setData: function(
|
|
2644
|
-
|
|
2677
|
+
setData: function(i, s) {
|
|
2678
|
+
i.setData("Text", s.textContent);
|
|
2645
2679
|
},
|
|
2646
2680
|
dropBubble: !1,
|
|
2647
2681
|
dragoverBubble: !1,
|
|
@@ -2664,90 +2698,90 @@ function w(e, t) {
|
|
|
2664
2698
|
mt.initializePlugins(this, e, o);
|
|
2665
2699
|
for (var n in o)
|
|
2666
2700
|
!(n in t) && (t[n] = o[n]);
|
|
2667
|
-
|
|
2701
|
+
Xn(t);
|
|
2668
2702
|
for (var r in this)
|
|
2669
2703
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
2670
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
2704
|
+
this.nativeDraggable = t.forceFallback ? !1 : pi, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? D(e, "pointerdown", this._onTapStart) : (D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart)), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), Mt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ve(this, ci());
|
|
2671
2705
|
}
|
|
2672
2706
|
w.prototype = /** @lends Sortable.prototype */
|
|
2673
2707
|
{
|
|
2674
2708
|
constructor: w,
|
|
2675
2709
|
_isOutsideThisEl: function(t) {
|
|
2676
|
-
!this.el.contains(t) && t !== this.el && (
|
|
2710
|
+
!this.el.contains(t) && t !== this.el && (Ue = null);
|
|
2677
2711
|
},
|
|
2678
2712
|
_getDirection: function(t, o) {
|
|
2679
2713
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, o, f) : this.options.direction;
|
|
2680
2714
|
},
|
|
2681
2715
|
_onTapStart: function(t) {
|
|
2682
2716
|
if (t.cancelable) {
|
|
2683
|
-
var o = this, n = this.el, r = this.options,
|
|
2684
|
-
if (
|
|
2685
|
-
if (qe = Q(
|
|
2686
|
-
if (d.call(this, t,
|
|
2687
|
-
|
|
2717
|
+
var o = this, n = this.el, r = this.options, a = r.preventOnFilter, i = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = r.filter;
|
|
2718
|
+
if (xi(n), !f && !(/mousedown|pointerdown/.test(i) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ot && l && l.tagName.toUpperCase() === "SELECT") && (l = ne(l, r.draggable, n, !1), !(l && l.animated) && Tt !== l)) {
|
|
2719
|
+
if (qe = Q(l), rt = Q(l, r.draggable), typeof d == "function") {
|
|
2720
|
+
if (d.call(this, t, l, this)) {
|
|
2721
|
+
W({
|
|
2688
2722
|
sortable: o,
|
|
2689
|
-
rootEl:
|
|
2723
|
+
rootEl: u,
|
|
2690
2724
|
name: "filter",
|
|
2691
|
-
targetEl:
|
|
2725
|
+
targetEl: l,
|
|
2692
2726
|
toEl: n,
|
|
2693
2727
|
fromEl: n
|
|
2694
2728
|
}), V("filter", o, {
|
|
2695
2729
|
evt: t
|
|
2696
|
-
}),
|
|
2730
|
+
}), a && t.preventDefault();
|
|
2697
2731
|
return;
|
|
2698
2732
|
}
|
|
2699
2733
|
} else if (d && (d = d.split(",").some(function(c) {
|
|
2700
|
-
if (c =
|
|
2701
|
-
return
|
|
2734
|
+
if (c = ne(u, c.trim(), n, !1), c)
|
|
2735
|
+
return W({
|
|
2702
2736
|
sortable: o,
|
|
2703
2737
|
rootEl: c,
|
|
2704
2738
|
name: "filter",
|
|
2705
|
-
targetEl:
|
|
2739
|
+
targetEl: l,
|
|
2706
2740
|
fromEl: n,
|
|
2707
2741
|
toEl: n
|
|
2708
2742
|
}), V("filter", o, {
|
|
2709
2743
|
evt: t
|
|
2710
2744
|
}), !0;
|
|
2711
2745
|
}), d)) {
|
|
2712
|
-
|
|
2746
|
+
a && t.preventDefault();
|
|
2713
2747
|
return;
|
|
2714
2748
|
}
|
|
2715
|
-
r.handle && !
|
|
2749
|
+
r.handle && !ne(u, r.handle, n, !1) || this._prepareDragStart(t, s, l);
|
|
2716
2750
|
}
|
|
2717
2751
|
}
|
|
2718
2752
|
},
|
|
2719
2753
|
_prepareDragStart: function(t, o, n) {
|
|
2720
|
-
var r = this,
|
|
2721
|
-
if (n && !f && n.parentNode ===
|
|
2722
|
-
var
|
|
2723
|
-
if (P =
|
|
2754
|
+
var r = this, a = r.el, i = r.options, s = a.ownerDocument, l;
|
|
2755
|
+
if (n && !f && n.parentNode === a) {
|
|
2756
|
+
var u = R(n);
|
|
2757
|
+
if (P = a, f = n, N = f.parentNode, Me = f.nextSibling, Tt = n, yt = i.group, w.dragged = f, Oe = {
|
|
2724
2758
|
target: f,
|
|
2725
2759
|
clientX: (o || t).clientX,
|
|
2726
2760
|
clientY: (o || t).clientY
|
|
2727
|
-
}, nn = Oe.clientX -
|
|
2761
|
+
}, nn = Oe.clientX - u.left, rn = Oe.clientY - u.top, this._lastX = (o || t).clientX, this._lastY = (o || t).clientY, f.style["will-change"] = "all", l = function() {
|
|
2728
2762
|
if (V("delayEnded", r, {
|
|
2729
2763
|
evt: t
|
|
2730
2764
|
}), w.eventCanceled) {
|
|
2731
2765
|
r._onDrop();
|
|
2732
2766
|
return;
|
|
2733
2767
|
}
|
|
2734
|
-
r._disableDelayedDragEvents(), !Qo && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(t, o),
|
|
2768
|
+
r._disableDelayedDragEvents(), !Qo && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(t, o), W({
|
|
2735
2769
|
sortable: r,
|
|
2736
2770
|
name: "choose",
|
|
2737
2771
|
originalEvent: t
|
|
2738
|
-
}),
|
|
2739
|
-
},
|
|
2740
|
-
|
|
2741
|
-
}), D(s, "dragover", Ne), D(s, "mousemove", Ne), D(s, "touchmove", Ne),
|
|
2772
|
+
}), G(f, i.chosenClass, !0);
|
|
2773
|
+
}, i.ignore.split(",").forEach(function(d) {
|
|
2774
|
+
qn(f, d.trim(), Qt);
|
|
2775
|
+
}), D(s, "dragover", Ne), D(s, "mousemove", Ne), D(s, "touchmove", Ne), i.supportPointer ? (D(s, "pointerup", r._onDrop), !this.nativeDraggable && D(s, "pointercancel", r._onDrop)) : (D(s, "mouseup", r._onDrop), D(s, "touchend", r._onDrop), D(s, "touchcancel", r._onDrop)), Qo && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), V("delayStart", this, {
|
|
2742
2776
|
evt: t
|
|
2743
|
-
}),
|
|
2777
|
+
}), i.delay && (!i.delayOnTouchOnly || o) && (!this.nativeDraggable || !(ft || be))) {
|
|
2744
2778
|
if (w.eventCanceled) {
|
|
2745
2779
|
this._onDrop();
|
|
2746
2780
|
return;
|
|
2747
2781
|
}
|
|
2748
|
-
|
|
2782
|
+
i.supportPointer ? (D(s, "pointerup", r._disableDelayedDrag), D(s, "pointercancel", r._disableDelayedDrag)) : (D(s, "mouseup", r._disableDelayedDrag), D(s, "touchend", r._disableDelayedDrag), D(s, "touchcancel", r._disableDelayedDrag)), D(s, "mousemove", r._delayedDragTouchMoveHandler), D(s, "touchmove", r._delayedDragTouchMoveHandler), i.supportPointer && D(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, i.delay);
|
|
2749
2783
|
} else
|
|
2750
|
-
|
|
2784
|
+
l();
|
|
2751
2785
|
}
|
|
2752
2786
|
},
|
|
2753
2787
|
_delayedDragTouchMoveHandler: function(t) {
|
|
@@ -2771,12 +2805,12 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2771
2805
|
}
|
|
2772
2806
|
},
|
|
2773
2807
|
_dragStarted: function(t, o) {
|
|
2774
|
-
if (
|
|
2808
|
+
if (ze = !1, P && f) {
|
|
2775
2809
|
V("dragStarted", this, {
|
|
2776
2810
|
evt: o
|
|
2777
|
-
}), this.nativeDraggable && D(document, "dragover",
|
|
2811
|
+
}), this.nativeDraggable && D(document, "dragover", vi);
|
|
2778
2812
|
var n = this.options;
|
|
2779
|
-
!t &&
|
|
2813
|
+
!t && G(f, n.dragClass, !1), G(f, n.ghostClass, !0), w.active = this, t && this._appendGhost(), W({
|
|
2780
2814
|
sortable: this,
|
|
2781
2815
|
name: "start",
|
|
2782
2816
|
originalEvent: o
|
|
@@ -2785,37 +2819,37 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2785
2819
|
this._nulling();
|
|
2786
2820
|
},
|
|
2787
2821
|
_emulateDragOver: function() {
|
|
2788
|
-
if (
|
|
2789
|
-
this._lastX =
|
|
2790
|
-
for (var t = document.elementFromPoint(
|
|
2822
|
+
if (oe) {
|
|
2823
|
+
this._lastX = oe.clientX, this._lastY = oe.clientY, Kn();
|
|
2824
|
+
for (var t = document.elementFromPoint(oe.clientX, oe.clientY), o = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(oe.clientX, oe.clientY), t !== o); )
|
|
2791
2825
|
o = t;
|
|
2792
2826
|
if (f.parentNode[Y]._isOutsideThisEl(t), o)
|
|
2793
2827
|
do {
|
|
2794
2828
|
if (o[Y]) {
|
|
2795
2829
|
var n = void 0;
|
|
2796
2830
|
if (n = o[Y]._onDragOver({
|
|
2797
|
-
clientX:
|
|
2798
|
-
clientY:
|
|
2831
|
+
clientX: oe.clientX,
|
|
2832
|
+
clientY: oe.clientY,
|
|
2799
2833
|
target: t,
|
|
2800
2834
|
rootEl: o
|
|
2801
2835
|
}), n && !this.options.dragoverBubble)
|
|
2802
2836
|
break;
|
|
2803
2837
|
}
|
|
2804
2838
|
t = o;
|
|
2805
|
-
} while (o =
|
|
2806
|
-
|
|
2839
|
+
} while (o = jn(o));
|
|
2840
|
+
Jn();
|
|
2807
2841
|
}
|
|
2808
2842
|
},
|
|
2809
2843
|
_onTouchMove: function(t) {
|
|
2810
2844
|
if (Oe) {
|
|
2811
|
-
var o = this.options, n = o.fallbackTolerance, r = o.fallbackOffset,
|
|
2812
|
-
if (!w.active && !
|
|
2813
|
-
if (n && Math.max(Math.abs(
|
|
2845
|
+
var o = this.options, n = o.fallbackTolerance, r = o.fallbackOffset, a = t.touches ? t.touches[0] : t, i = E && We(E, !0), s = E && i && i.a, l = E && i && i.d, u = bt && q && on(q), d = (a.clientX - Oe.clientX + r.x) / (s || 1) + (u ? u[0] - Zt[0] : 0) / (s || 1), c = (a.clientY - Oe.clientY + r.y) / (l || 1) + (u ? u[1] - Zt[1] : 0) / (l || 1);
|
|
2846
|
+
if (!w.active && !ze) {
|
|
2847
|
+
if (n && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < n)
|
|
2814
2848
|
return;
|
|
2815
2849
|
this._onDragStart(t, !0);
|
|
2816
2850
|
}
|
|
2817
2851
|
if (E) {
|
|
2818
|
-
|
|
2852
|
+
i ? (i.e += d - (Kt || 0), i.f += c - (Jt || 0)) : i = {
|
|
2819
2853
|
a: 1,
|
|
2820
2854
|
b: 0,
|
|
2821
2855
|
c: 0,
|
|
@@ -2823,8 +2857,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2823
2857
|
e: d,
|
|
2824
2858
|
f: c
|
|
2825
2859
|
};
|
|
2826
|
-
var
|
|
2827
|
-
b(E, "webkitTransform",
|
|
2860
|
+
var p = "matrix(".concat(i.a, ",").concat(i.b, ",").concat(i.c, ",").concat(i.d, ",").concat(i.e, ",").concat(i.f, ")");
|
|
2861
|
+
b(E, "webkitTransform", p), b(E, "mozTransform", p), b(E, "msTransform", p), b(E, "transform", p), Kt = d, Jt = c, oe = a;
|
|
2828
2862
|
}
|
|
2829
2863
|
t.cancelable && t.preventDefault();
|
|
2830
2864
|
}
|
|
@@ -2833,108 +2867,108 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2833
2867
|
if (!E) {
|
|
2834
2868
|
var t = this.options.fallbackOnBody ? document.body : P, o = R(f, !0, bt, !0, t), n = this.options;
|
|
2835
2869
|
if (bt) {
|
|
2836
|
-
for (
|
|
2837
|
-
|
|
2838
|
-
|
|
2870
|
+
for (q = t; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
|
|
2871
|
+
q = q.parentNode;
|
|
2872
|
+
q !== document.body && q !== document.documentElement ? (q === document && (q = ce()), o.top += q.scrollTop, o.left += q.scrollLeft) : q = ce(), Zt = on(q);
|
|
2839
2873
|
}
|
|
2840
|
-
E = f.cloneNode(!0),
|
|
2874
|
+
E = f.cloneNode(!0), G(E, n.ghostClass, !1), G(E, n.fallbackClass, !0), G(E, n.dragClass, !0), b(E, "transition", ""), b(E, "transform", ""), b(E, "box-sizing", "border-box"), b(E, "margin", 0), b(E, "top", o.top), b(E, "left", o.left), b(E, "width", o.width), b(E, "height", o.height), b(E, "opacity", "0.8"), b(E, "position", bt ? "absolute" : "fixed"), b(E, "zIndex", "100000"), b(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), b(E, "transform-origin", nn / parseInt(E.style.width) * 100 + "% " + rn / parseInt(E.style.height) * 100 + "%");
|
|
2841
2875
|
}
|
|
2842
2876
|
},
|
|
2843
2877
|
_onDragStart: function(t, o) {
|
|
2844
|
-
var n = this, r = t.dataTransfer,
|
|
2878
|
+
var n = this, r = t.dataTransfer, a = n.options;
|
|
2845
2879
|
if (V("dragStart", this, {
|
|
2846
2880
|
evt: t
|
|
2847
2881
|
}), w.eventCanceled) {
|
|
2848
2882
|
this._onDrop();
|
|
2849
2883
|
return;
|
|
2850
2884
|
}
|
|
2851
|
-
V("setupClone", this), w.eventCanceled || (_ = Wn(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(),
|
|
2852
|
-
V("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || P.insertBefore(_, f), n._hideClone(),
|
|
2885
|
+
V("setupClone", this), w.eventCanceled || (_ = Wn(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), G(_, this.options.chosenClass, !1), w.clone = _), n.cloneId = kt(function() {
|
|
2886
|
+
V("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || P.insertBefore(_, f), n._hideClone(), W({
|
|
2853
2887
|
sortable: n,
|
|
2854
2888
|
name: "clone"
|
|
2855
2889
|
}));
|
|
2856
|
-
}), !o &&
|
|
2890
|
+
}), !o && G(f, a.dragClass, !0), o ? (Nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (S(document, "mouseup", n._onDrop), S(document, "touchend", n._onDrop), S(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(n, r, f)), D(document, "drop", n), b(f, "transform", "translateZ(0)")), ze = !0, n._dragStartId = kt(n._dragStarted.bind(n, o, t)), D(document, "selectstart", n), Ze = !0, window.getSelection().removeAllRanges(), ot && b(document.body, "user-select", "none");
|
|
2857
2891
|
},
|
|
2858
2892
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2859
2893
|
_onDragOver: function(t) {
|
|
2860
|
-
var o = this.el, n = t.target, r,
|
|
2894
|
+
var o = this.el, n = t.target, r, a, i, s = this.options, l = s.group, u = w.active, d = yt === l, c = s.sort, p = z || u, y, v = this, m = !1;
|
|
2861
2895
|
if (fo) return;
|
|
2862
|
-
function h(
|
|
2863
|
-
V(
|
|
2896
|
+
function h(we, qt) {
|
|
2897
|
+
V(we, v, de({
|
|
2864
2898
|
evt: t,
|
|
2865
2899
|
isOwner: d,
|
|
2866
|
-
axis:
|
|
2867
|
-
revert:
|
|
2900
|
+
axis: y ? "vertical" : "horizontal",
|
|
2901
|
+
revert: i,
|
|
2868
2902
|
dragRect: r,
|
|
2869
|
-
targetRect:
|
|
2903
|
+
targetRect: a,
|
|
2870
2904
|
canSort: c,
|
|
2871
|
-
fromSortable:
|
|
2905
|
+
fromSortable: p,
|
|
2872
2906
|
target: n,
|
|
2873
2907
|
completed: C,
|
|
2874
|
-
onMove: function(ht,
|
|
2875
|
-
return wt(P, o, f, r, ht, R(ht), t,
|
|
2908
|
+
onMove: function(ht, $t) {
|
|
2909
|
+
return wt(P, o, f, r, ht, R(ht), t, $t);
|
|
2876
2910
|
},
|
|
2877
2911
|
changed: T
|
|
2878
2912
|
}, qt));
|
|
2879
2913
|
}
|
|
2880
2914
|
function x() {
|
|
2881
|
-
h("dragOverAnimationCapture"), v.captureAnimationState(), v !==
|
|
2915
|
+
h("dragOverAnimationCapture"), v.captureAnimationState(), v !== p && p.captureAnimationState();
|
|
2882
2916
|
}
|
|
2883
|
-
function C(
|
|
2917
|
+
function C(we) {
|
|
2884
2918
|
return h("dragOverCompleted", {
|
|
2885
|
-
insertion:
|
|
2886
|
-
}),
|
|
2919
|
+
insertion: we
|
|
2920
|
+
}), we && (d ? u._hideClone() : u._showClone(v), v !== p && (G(f, z ? z.options.ghostClass : u.options.ghostClass, !1), G(f, s.ghostClass, !0)), z !== v && v !== w.active ? z = v : v === w.active && z && (z = null), p === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
|
|
2887
2921
|
h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
2888
|
-
}), v !==
|
|
2922
|
+
}), v !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === f && !f.animated || n === o && !n.animated) && (Ue = null), !s.dragoverBubble && !t.rootEl && n !== document && (f.parentNode[Y]._isOutsideThisEl(t.target), !we && Ne(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
|
|
2889
2923
|
}
|
|
2890
2924
|
function T() {
|
|
2891
|
-
|
|
2925
|
+
K = Q(f), Se = Q(f, s.draggable), W({
|
|
2892
2926
|
sortable: v,
|
|
2893
2927
|
name: "change",
|
|
2894
2928
|
toEl: o,
|
|
2895
|
-
newIndex:
|
|
2929
|
+
newIndex: K,
|
|
2896
2930
|
newDraggableIndex: Se,
|
|
2897
2931
|
originalEvent: t
|
|
2898
2932
|
});
|
|
2899
2933
|
}
|
|
2900
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n =
|
|
2934
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = ne(n, s.draggable, o, !0), h("dragOver"), w.eventCanceled) return m;
|
|
2901
2935
|
if (f.contains(t.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
|
|
2902
2936
|
return C(!1);
|
|
2903
|
-
if (Nt = !1,
|
|
2904
|
-
if (
|
|
2905
|
-
if (
|
|
2937
|
+
if (Nt = !1, u && !s.disabled && (d ? c || (i = N !== P) : z === this || (this.lastPutMode = yt.checkPull(this, u, f, t)) && l.checkPut(this, u, f, t))) {
|
|
2938
|
+
if (y = this._getDirection(t, n) === "vertical", r = R(f), h("dragOverValid"), w.eventCanceled) return m;
|
|
2939
|
+
if (i)
|
|
2906
2940
|
return N = P, x(), this._hideClone(), h("revert"), w.eventCanceled || (Me ? P.insertBefore(f, Me) : P.appendChild(f)), C(!0);
|
|
2907
2941
|
var I = To(o, s.draggable);
|
|
2908
|
-
if (!I ||
|
|
2942
|
+
if (!I || Ci(t, y, this) && !I.animated) {
|
|
2909
2943
|
if (I === f)
|
|
2910
2944
|
return C(!1);
|
|
2911
|
-
if (I && o === t.target && (n = I), n && (
|
|
2945
|
+
if (I && o === t.target && (n = I), n && (a = R(n)), wt(P, o, f, r, n, a, t, !!n) !== !1)
|
|
2912
2946
|
return x(), I && I.nextSibling ? o.insertBefore(f, I.nextSibling) : o.appendChild(f), N = o, T(), C(!0);
|
|
2913
|
-
} else if (I &&
|
|
2914
|
-
var
|
|
2915
|
-
if (
|
|
2947
|
+
} else if (I && Ei(t, y, this)) {
|
|
2948
|
+
var re = Ge(o, 0, s, !0);
|
|
2949
|
+
if (re === f)
|
|
2916
2950
|
return C(!1);
|
|
2917
|
-
if (n =
|
|
2918
|
-
return x(), o.insertBefore(f,
|
|
2951
|
+
if (n = re, a = R(n), wt(P, o, f, r, n, a, t, !1) !== !1)
|
|
2952
|
+
return x(), o.insertBefore(f, re), N = o, T(), C(!0);
|
|
2919
2953
|
} else if (n.parentNode === o) {
|
|
2920
|
-
|
|
2921
|
-
var
|
|
2922
|
-
|
|
2923
|
-
var
|
|
2924
|
-
if (
|
|
2925
|
-
var
|
|
2954
|
+
a = R(n);
|
|
2955
|
+
var Z = 0, fe, Ie = f.parentNode !== o, H = !gi(f.animated && f.toRect || r, n.animated && n.toRect || a, y), Fe = y ? "top" : "left", ae = tn(n, "top", "top") || tn(f, "top", "top"), Pe = ae ? ae.scrollTop : void 0;
|
|
2956
|
+
Ue !== n && (fe = a[Fe], it = !1, vt = !H && s.invertSwap || Ie), Z = Si(t, n, a, y, H ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, vt, Ue === n);
|
|
2957
|
+
var j;
|
|
2958
|
+
if (Z !== 0) {
|
|
2959
|
+
var me = Q(f);
|
|
2926
2960
|
do
|
|
2927
|
-
|
|
2928
|
-
while (
|
|
2961
|
+
me -= Z, j = N.children[me];
|
|
2962
|
+
while (j && (b(j, "display") === "none" || j === E));
|
|
2929
2963
|
}
|
|
2930
|
-
if (
|
|
2964
|
+
if (Z === 0 || j === n)
|
|
2931
2965
|
return C(!1);
|
|
2932
|
-
|
|
2933
|
-
var
|
|
2934
|
-
ie =
|
|
2935
|
-
var Ke = wt(P, o, f, r, n,
|
|
2966
|
+
Ue = n, at = Z;
|
|
2967
|
+
var he = n.nextElementSibling, ie = !1;
|
|
2968
|
+
ie = Z === 1;
|
|
2969
|
+
var Ke = wt(P, o, f, r, n, a, t, ie);
|
|
2936
2970
|
if (Ke !== !1)
|
|
2937
|
-
return (Ke === 1 || Ke === -1) && (ie = Ke === 1), fo = !0, setTimeout(
|
|
2971
|
+
return (Ke === 1 || Ke === -1) && (ie = Ke === 1), fo = !0, setTimeout(wi, 30), x(), ie && !he ? o.appendChild(f) : n.parentNode.insertBefore(f, ie ? he : n), ae && Hn(ae, 0, Pe - ae.scrollTop), N = f.parentNode, fe !== void 0 && !vt && (xt = Math.abs(fe - R(n)[Fe])), T(), C(!0);
|
|
2938
2972
|
}
|
|
2939
2973
|
if (o.contains(f))
|
|
2940
2974
|
return C(!1);
|
|
@@ -2951,52 +2985,52 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2951
2985
|
},
|
|
2952
2986
|
_onDrop: function(t) {
|
|
2953
2987
|
var o = this.el, n = this.options;
|
|
2954
|
-
if (
|
|
2988
|
+
if (K = Q(f), Se = Q(f, n.draggable), V("drop", this, {
|
|
2955
2989
|
evt: t
|
|
2956
|
-
}), N = f && f.parentNode,
|
|
2990
|
+
}), N = f && f.parentNode, K = Q(f), Se = Q(f, n.draggable), w.eventCanceled) {
|
|
2957
2991
|
this._nulling();
|
|
2958
2992
|
return;
|
|
2959
2993
|
}
|
|
2960
|
-
|
|
2994
|
+
ze = !1, vt = !1, it = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), mo(this.cloneId), mo(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ot && b(document.body, "user-select", ""), b(f, "transform", ""), t && (Ze && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (P === N || z && z.lastPutMode !== "clone") && _ && _.parentNode && _.parentNode.removeChild(_), f && (this.nativeDraggable && S(f, "dragend", this), Qt(f), f.style["will-change"] = "", Ze && !ze && G(f, z ? z.options.ghostClass : this.options.ghostClass, !1), G(f, this.options.chosenClass, !1), W({
|
|
2961
2995
|
sortable: this,
|
|
2962
2996
|
name: "unchoose",
|
|
2963
2997
|
toEl: N,
|
|
2964
2998
|
newIndex: null,
|
|
2965
2999
|
newDraggableIndex: null,
|
|
2966
3000
|
originalEvent: t
|
|
2967
|
-
}), P !== N ? (
|
|
3001
|
+
}), P !== N ? (K >= 0 && (W({
|
|
2968
3002
|
rootEl: N,
|
|
2969
3003
|
name: "add",
|
|
2970
3004
|
toEl: N,
|
|
2971
3005
|
fromEl: P,
|
|
2972
3006
|
originalEvent: t
|
|
2973
|
-
}),
|
|
3007
|
+
}), W({
|
|
2974
3008
|
sortable: this,
|
|
2975
3009
|
name: "remove",
|
|
2976
3010
|
toEl: N,
|
|
2977
3011
|
originalEvent: t
|
|
2978
|
-
}),
|
|
3012
|
+
}), W({
|
|
2979
3013
|
rootEl: N,
|
|
2980
3014
|
name: "sort",
|
|
2981
3015
|
toEl: N,
|
|
2982
3016
|
fromEl: P,
|
|
2983
3017
|
originalEvent: t
|
|
2984
|
-
}),
|
|
3018
|
+
}), W({
|
|
2985
3019
|
sortable: this,
|
|
2986
3020
|
name: "sort",
|
|
2987
3021
|
toEl: N,
|
|
2988
3022
|
originalEvent: t
|
|
2989
|
-
})), z && z.save()) :
|
|
3023
|
+
})), z && z.save()) : K !== qe && K >= 0 && (W({
|
|
2990
3024
|
sortable: this,
|
|
2991
3025
|
name: "update",
|
|
2992
3026
|
toEl: N,
|
|
2993
3027
|
originalEvent: t
|
|
2994
|
-
}),
|
|
3028
|
+
}), W({
|
|
2995
3029
|
sortable: this,
|
|
2996
3030
|
name: "sort",
|
|
2997
3031
|
toEl: N,
|
|
2998
3032
|
originalEvent: t
|
|
2999
|
-
})), w.active && ((
|
|
3033
|
+
})), w.active && ((K == null || K === -1) && (K = qe, Se = rt), W({
|
|
3000
3034
|
sortable: this,
|
|
3001
3035
|
name: "end",
|
|
3002
3036
|
toEl: N,
|
|
@@ -3004,7 +3038,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3004
3038
|
}), this.save()))), this._nulling();
|
|
3005
3039
|
},
|
|
3006
3040
|
_nulling: function() {
|
|
3007
|
-
V("nulling", this), P = f = N = E = Me = _ = Tt = De = Oe =
|
|
3041
|
+
V("nulling", this), P = f = N = E = Me = _ = Tt = De = Oe = oe = Ze = K = Se = qe = rt = Ue = at = z = yt = w.dragged = w.ghost = w.clone = w.active = null, Rt.forEach(function(t) {
|
|
3008
3042
|
t.checked = !0;
|
|
3009
3043
|
}), Rt.length = Kt = Jt = 0;
|
|
3010
3044
|
},
|
|
@@ -3016,7 +3050,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3016
3050
|
break;
|
|
3017
3051
|
case "dragenter":
|
|
3018
3052
|
case "dragover":
|
|
3019
|
-
f && (this._onDragOver(t),
|
|
3053
|
+
f && (this._onDragOver(t), bi(t));
|
|
3020
3054
|
break;
|
|
3021
3055
|
case "selectstart":
|
|
3022
3056
|
t.preventDefault();
|
|
@@ -3028,8 +3062,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3028
3062
|
* @returns {String[]}
|
|
3029
3063
|
*/
|
|
3030
3064
|
toArray: function() {
|
|
3031
|
-
for (var t = [], o, n = this.el.children, r = 0,
|
|
3032
|
-
o = n[r],
|
|
3065
|
+
for (var t = [], o, n = this.el.children, r = 0, a = n.length, i = this.options; r < a; r++)
|
|
3066
|
+
o = n[r], ne(o, i.draggable, this.el, !1) && t.push(o.getAttribute(i.dataIdAttr) || Ti(o));
|
|
3033
3067
|
return t;
|
|
3034
3068
|
},
|
|
3035
3069
|
/**
|
|
@@ -3038,11 +3072,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3038
3072
|
*/
|
|
3039
3073
|
sort: function(t, o) {
|
|
3040
3074
|
var n = {}, r = this.el;
|
|
3041
|
-
this.toArray().forEach(function(
|
|
3042
|
-
var s = r.children[
|
|
3043
|
-
|
|
3044
|
-
}, this), o && this.captureAnimationState(), t.forEach(function(
|
|
3045
|
-
n[
|
|
3075
|
+
this.toArray().forEach(function(a, i) {
|
|
3076
|
+
var s = r.children[i];
|
|
3077
|
+
ne(s, this.options.draggable, r, !1) && (n[a] = s);
|
|
3078
|
+
}, this), o && this.captureAnimationState(), t.forEach(function(a) {
|
|
3079
|
+
n[a] && (r.removeChild(n[a]), r.appendChild(n[a]));
|
|
3046
3080
|
}), o && this.animateAll();
|
|
3047
3081
|
},
|
|
3048
3082
|
/**
|
|
@@ -3059,7 +3093,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3059
3093
|
* @returns {HTMLElement|null}
|
|
3060
3094
|
*/
|
|
3061
3095
|
closest: function(t, o) {
|
|
3062
|
-
return
|
|
3096
|
+
return ne(t, o || this.options.draggable, this.el, !1);
|
|
3063
3097
|
},
|
|
3064
3098
|
/**
|
|
3065
3099
|
* Set/get option
|
|
@@ -3072,7 +3106,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3072
3106
|
if (o === void 0)
|
|
3073
3107
|
return n[t];
|
|
3074
3108
|
var r = mt.modifyOption(this, t, o);
|
|
3075
|
-
typeof r < "u" ? n[t] = r : n[t] = o, t === "group" &&
|
|
3109
|
+
typeof r < "u" ? n[t] = r : n[t] = o, t === "group" && Xn(n);
|
|
3076
3110
|
},
|
|
3077
3111
|
/**
|
|
3078
3112
|
* Destroy
|
|
@@ -3101,52 +3135,52 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
3101
3135
|
}
|
|
3102
3136
|
}
|
|
3103
3137
|
};
|
|
3104
|
-
function
|
|
3138
|
+
function bi(e) {
|
|
3105
3139
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3106
3140
|
}
|
|
3107
|
-
function wt(e, t, o, n, r,
|
|
3108
|
-
var
|
|
3109
|
-
return window.CustomEvent && !
|
|
3141
|
+
function wt(e, t, o, n, r, a, i, s) {
|
|
3142
|
+
var l, u = e[Y], d = u.options.onMove, c;
|
|
3143
|
+
return window.CustomEvent && !be && !ft ? l = new CustomEvent("move", {
|
|
3110
3144
|
bubbles: !0,
|
|
3111
3145
|
cancelable: !0
|
|
3112
|
-
}) : (
|
|
3146
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = o, l.draggedRect = n, l.related = r || t, l.relatedRect = a || R(t), l.willInsertAfter = s, l.originalEvent = i, e.dispatchEvent(l), d && (c = d.call(u, l, i)), c;
|
|
3113
3147
|
}
|
|
3114
3148
|
function Qt(e) {
|
|
3115
3149
|
e.draggable = !1;
|
|
3116
3150
|
}
|
|
3117
|
-
function
|
|
3151
|
+
function wi() {
|
|
3118
3152
|
fo = !1;
|
|
3119
3153
|
}
|
|
3120
|
-
function
|
|
3121
|
-
var n = R(Ge(o.el, 0, o.options, !0)), r =
|
|
3122
|
-
return t ? e.clientX < r.left -
|
|
3154
|
+
function Ei(e, t, o) {
|
|
3155
|
+
var n = R(Ge(o.el, 0, o.options, !0)), r = Vn(o.el, o.options, E), a = 10;
|
|
3156
|
+
return t ? e.clientX < r.left - a || e.clientY < n.top && e.clientX < n.right : e.clientY < r.top - a || e.clientY < n.bottom && e.clientX < n.left;
|
|
3123
3157
|
}
|
|
3124
|
-
function
|
|
3125
|
-
var n = R(To(o.el, o.options.draggable)), r =
|
|
3126
|
-
return t ? e.clientX > r.right +
|
|
3158
|
+
function Ci(e, t, o) {
|
|
3159
|
+
var n = R(To(o.el, o.options.draggable)), r = Vn(o.el, o.options, E), a = 10;
|
|
3160
|
+
return t ? e.clientX > r.right + a || e.clientY > n.bottom && e.clientX > n.left : e.clientY > r.bottom + a || e.clientX > n.right && e.clientY > n.top;
|
|
3127
3161
|
}
|
|
3128
|
-
function
|
|
3129
|
-
var
|
|
3130
|
-
if (!
|
|
3131
|
-
if (s && xt <
|
|
3132
|
-
if (!
|
|
3133
|
-
|
|
3134
|
-
else if (
|
|
3135
|
-
return -
|
|
3136
|
-
} else if (
|
|
3137
|
-
return
|
|
3162
|
+
function Si(e, t, o, n, r, a, i, s) {
|
|
3163
|
+
var l = n ? e.clientY : e.clientX, u = n ? o.height : o.width, d = n ? o.top : o.left, c = n ? o.bottom : o.right, p = !1;
|
|
3164
|
+
if (!i) {
|
|
3165
|
+
if (s && xt < u * r) {
|
|
3166
|
+
if (!it && (at === 1 ? l > d + u * a / 2 : l < c - u * a / 2) && (it = !0), it)
|
|
3167
|
+
p = !0;
|
|
3168
|
+
else if (at === 1 ? l < d + xt : l > c - xt)
|
|
3169
|
+
return -at;
|
|
3170
|
+
} else if (l > d + u * (1 - r) / 2 && l < c - u * (1 - r) / 2)
|
|
3171
|
+
return Di(t);
|
|
3138
3172
|
}
|
|
3139
|
-
return
|
|
3173
|
+
return p = p || i, p && (l < d + u * a / 2 || l > c - u * a / 2) ? l > d + u / 2 ? 1 : -1 : 0;
|
|
3140
3174
|
}
|
|
3141
|
-
function
|
|
3175
|
+
function Di(e) {
|
|
3142
3176
|
return Q(f) < Q(e) ? 1 : -1;
|
|
3143
3177
|
}
|
|
3144
|
-
function
|
|
3178
|
+
function Ti(e) {
|
|
3145
3179
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, o = t.length, n = 0; o--; )
|
|
3146
3180
|
n += t.charCodeAt(o);
|
|
3147
3181
|
return n.toString(36);
|
|
3148
3182
|
}
|
|
3149
|
-
function
|
|
3183
|
+
function xi(e) {
|
|
3150
3184
|
Rt.length = 0;
|
|
3151
3185
|
for (var t = e.getElementsByTagName("input"), o = t.length; o--; ) {
|
|
3152
3186
|
var n = t[o];
|
|
@@ -3160,25 +3194,25 @@ function mo(e) {
|
|
|
3160
3194
|
return clearTimeout(e);
|
|
3161
3195
|
}
|
|
3162
3196
|
jt && D(document, "touchmove", function(e) {
|
|
3163
|
-
(w.active ||
|
|
3197
|
+
(w.active || ze) && e.cancelable && e.preventDefault();
|
|
3164
3198
|
});
|
|
3165
3199
|
w.utils = {
|
|
3166
3200
|
on: D,
|
|
3167
3201
|
off: S,
|
|
3168
3202
|
css: b,
|
|
3169
|
-
find:
|
|
3203
|
+
find: qn,
|
|
3170
3204
|
is: function(t, o) {
|
|
3171
|
-
return !!
|
|
3205
|
+
return !!ne(t, o, t, !1);
|
|
3172
3206
|
},
|
|
3173
|
-
extend:
|
|
3174
|
-
throttle:
|
|
3175
|
-
closest:
|
|
3176
|
-
toggleClass:
|
|
3207
|
+
extend: li,
|
|
3208
|
+
throttle: $n,
|
|
3209
|
+
closest: ne,
|
|
3210
|
+
toggleClass: G,
|
|
3177
3211
|
clone: Wn,
|
|
3178
3212
|
index: Q,
|
|
3179
3213
|
nextTick: kt,
|
|
3180
3214
|
cancelNextTick: mo,
|
|
3181
|
-
detectDirection:
|
|
3215
|
+
detectDirection: Gn,
|
|
3182
3216
|
getChild: Ge,
|
|
3183
3217
|
expando: Y
|
|
3184
3218
|
};
|
|
@@ -3191,15 +3225,15 @@ w.mount = function() {
|
|
|
3191
3225
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
3192
3226
|
if (!n.prototype || !n.prototype.constructor)
|
|
3193
3227
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
3194
|
-
n.utils && (w.utils =
|
|
3228
|
+
n.utils && (w.utils = de(de({}, w.utils), n.utils)), mt.mount(n);
|
|
3195
3229
|
});
|
|
3196
3230
|
};
|
|
3197
3231
|
w.create = function(e, t) {
|
|
3198
3232
|
return new w(e, t);
|
|
3199
3233
|
};
|
|
3200
|
-
w.version =
|
|
3234
|
+
w.version = ii;
|
|
3201
3235
|
var M = [], Qe, ho, po = !1, eo, to, At, et;
|
|
3202
|
-
function
|
|
3236
|
+
function ki() {
|
|
3203
3237
|
function e() {
|
|
3204
3238
|
this.defaults = {
|
|
3205
3239
|
scroll: !0,
|
|
@@ -3221,7 +3255,7 @@ function Ta() {
|
|
|
3221
3255
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
3222
3256
|
},
|
|
3223
3257
|
drop: function() {
|
|
3224
|
-
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), sn(), It(),
|
|
3258
|
+
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), sn(), It(), ui();
|
|
3225
3259
|
},
|
|
3226
3260
|
nulling: function() {
|
|
3227
3261
|
At = ho = Qe = po = et = eo = to = null, M.length = 0;
|
|
@@ -3230,23 +3264,23 @@ function Ta() {
|
|
|
3230
3264
|
this._handleAutoScroll(o, !0);
|
|
3231
3265
|
},
|
|
3232
3266
|
_handleAutoScroll: function(o, n) {
|
|
3233
|
-
var r = this,
|
|
3234
|
-
if (At = o, n || this.options.forceAutoScrollFallback || ft ||
|
|
3267
|
+
var r = this, a = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, s = document.elementFromPoint(a, i);
|
|
3268
|
+
if (At = o, n || this.options.forceAutoScrollFallback || ft || be || ot) {
|
|
3235
3269
|
oo(o, this.options, s, n);
|
|
3236
|
-
var
|
|
3237
|
-
po && (!et ||
|
|
3238
|
-
var
|
|
3239
|
-
|
|
3240
|
-
}, 10), eo =
|
|
3270
|
+
var l = xe(s, !0);
|
|
3271
|
+
po && (!et || a !== eo || i !== to) && (et && sn(), et = setInterval(function() {
|
|
3272
|
+
var u = xe(document.elementFromPoint(a, i), !0);
|
|
3273
|
+
u !== l && (l = u, It()), oo(o, r.options, u, n);
|
|
3274
|
+
}, 10), eo = a, to = i);
|
|
3241
3275
|
} else {
|
|
3242
|
-
if (!this.options.bubbleScroll || xe(s, !0) ===
|
|
3276
|
+
if (!this.options.bubbleScroll || xe(s, !0) === ce()) {
|
|
3243
3277
|
It();
|
|
3244
3278
|
return;
|
|
3245
3279
|
}
|
|
3246
3280
|
oo(o, this.options, xe(s, !1), !1);
|
|
3247
3281
|
}
|
|
3248
3282
|
}
|
|
3249
|
-
},
|
|
3283
|
+
}, ve(e, {
|
|
3250
3284
|
pluginName: "scroll",
|
|
3251
3285
|
initializeByDefault: !0
|
|
3252
3286
|
});
|
|
@@ -3259,35 +3293,35 @@ function It() {
|
|
|
3259
3293
|
function sn() {
|
|
3260
3294
|
clearInterval(et);
|
|
3261
3295
|
}
|
|
3262
|
-
var oo =
|
|
3296
|
+
var oo = $n(function(e, t, o, n) {
|
|
3263
3297
|
if (t.scroll) {
|
|
3264
|
-
var r = (e.touches ? e.touches[0] : e).clientX,
|
|
3298
|
+
var r = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, i = t.scrollSensitivity, s = t.scrollSpeed, l = ce(), u = !1, d;
|
|
3265
3299
|
ho !== o && (ho = o, It(), Qe = t.scroll, d = t.scrollFn, Qe === !0 && (Qe = xe(o, !0)));
|
|
3266
|
-
var c = 0,
|
|
3300
|
+
var c = 0, p = Qe;
|
|
3267
3301
|
do {
|
|
3268
|
-
var
|
|
3269
|
-
|
|
3270
|
-
var Pe =
|
|
3302
|
+
var y = p, v = R(y), m = v.top, h = v.bottom, x = v.left, C = v.right, T = v.width, I = v.height, re = void 0, Z = void 0, fe = y.scrollWidth, Ie = y.scrollHeight, H = b(y), Fe = y.scrollLeft, ae = y.scrollTop;
|
|
3303
|
+
y === l ? (re = T < fe && (H.overflowX === "auto" || H.overflowX === "scroll" || H.overflowX === "visible"), Z = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll" || H.overflowY === "visible")) : (re = T < fe && (H.overflowX === "auto" || H.overflowX === "scroll"), Z = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll"));
|
|
3304
|
+
var Pe = re && (Math.abs(C - r) <= i && Fe + T < fe) - (Math.abs(x - r) <= i && !!Fe), j = Z && (Math.abs(h - a) <= i && ae + I < Ie) - (Math.abs(m - a) <= i && !!ae);
|
|
3271
3305
|
if (!M[c])
|
|
3272
|
-
for (var
|
|
3273
|
-
M[
|
|
3274
|
-
(M[c].vx != Pe || M[c].vy !=
|
|
3306
|
+
for (var me = 0; me <= c; me++)
|
|
3307
|
+
M[me] || (M[me] = {});
|
|
3308
|
+
(M[c].vx != Pe || M[c].vy != j || M[c].el !== y) && (M[c].el = y, M[c].vx = Pe, M[c].vy = j, clearInterval(M[c].pid), (Pe != 0 || j != 0) && (u = !0, M[c].pid = setInterval((function() {
|
|
3275
3309
|
n && this.layer === 0 && w.active._onTouchMove(At);
|
|
3276
|
-
var
|
|
3277
|
-
typeof d == "function" && d.call(w.dragged.parentNode[Y], ie,
|
|
3310
|
+
var he = M[this.layer].vy ? M[this.layer].vy * s : 0, ie = M[this.layer].vx ? M[this.layer].vx * s : 0;
|
|
3311
|
+
typeof d == "function" && d.call(w.dragged.parentNode[Y], ie, he, e, At, M[this.layer].el) !== "continue" || Hn(M[this.layer].el, ie, he);
|
|
3278
3312
|
}).bind({
|
|
3279
3313
|
layer: c
|
|
3280
3314
|
}), 24))), c++;
|
|
3281
|
-
} while (t.bubbleScroll &&
|
|
3282
|
-
po =
|
|
3315
|
+
} while (t.bubbleScroll && p !== l && (p = xe(p, !1)));
|
|
3316
|
+
po = u;
|
|
3283
3317
|
}
|
|
3284
|
-
}, 30),
|
|
3285
|
-
var o = t.originalEvent, n = t.putSortable, r = t.dragEl,
|
|
3318
|
+
}, 30), Zn = function(t) {
|
|
3319
|
+
var o = t.originalEvent, n = t.putSortable, r = t.dragEl, a = t.activeSortable, i = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
3286
3320
|
if (o) {
|
|
3287
|
-
var
|
|
3321
|
+
var u = n || a;
|
|
3288
3322
|
s();
|
|
3289
3323
|
var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(d.clientX, d.clientY);
|
|
3290
|
-
|
|
3324
|
+
l(), u && !u.el.contains(c) && (i("spill"), this.onSpill({
|
|
3291
3325
|
dragEl: r,
|
|
3292
3326
|
putSortable: n
|
|
3293
3327
|
}));
|
|
@@ -3307,9 +3341,9 @@ xo.prototype = {
|
|
|
3307
3341
|
var r = Ge(this.sortable.el, this.startIndex, this.options);
|
|
3308
3342
|
r ? this.sortable.el.insertBefore(o, r) : this.sortable.el.appendChild(o), this.sortable.animateAll(), n && n.animateAll();
|
|
3309
3343
|
},
|
|
3310
|
-
drop:
|
|
3344
|
+
drop: Zn
|
|
3311
3345
|
};
|
|
3312
|
-
|
|
3346
|
+
ve(xo, {
|
|
3313
3347
|
pluginName: "revertOnSpill"
|
|
3314
3348
|
});
|
|
3315
3349
|
function ko() {
|
|
@@ -3319,94 +3353,95 @@ ko.prototype = {
|
|
|
3319
3353
|
var o = t.dragEl, n = t.putSortable, r = n || this.sortable;
|
|
3320
3354
|
r.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), r.animateAll();
|
|
3321
3355
|
},
|
|
3322
|
-
drop:
|
|
3356
|
+
drop: Zn
|
|
3323
3357
|
};
|
|
3324
|
-
|
|
3358
|
+
ve(ko, {
|
|
3325
3359
|
pluginName: "removeOnSpill"
|
|
3326
3360
|
});
|
|
3327
|
-
w.mount(new
|
|
3361
|
+
w.mount(new ki());
|
|
3328
3362
|
w.mount(ko, xo);
|
|
3329
|
-
const
|
|
3363
|
+
const Ii = "kSysConfig", ln = "kCookies_param", no = O.getItem(Ii), Qn = (e, t) => (e.forEach((o) => {
|
|
3330
3364
|
var n;
|
|
3331
|
-
o.auth = t && t[o.code] || o.auth, o.name ? (no == null ? void 0 : no.i18nEnabled) === "Y" && !o.name.startsWith("message.") && (o.name = `message.btn.${o.name}`) : o.name = `message.btn.${o.code}`, (n = o.dropdowns) != null && n.length &&
|
|
3332
|
-
}), e),
|
|
3365
|
+
o.auth = t && t[o.code] || o.auth, o.name ? (no == null ? void 0 : no.i18nEnabled) === "Y" && !o.name.startsWith("message.") && (o.name = `message.btn.${o.name}`) : o.name = `message.btn.${o.code}`, (n = o.dropdowns) != null && n.length && Qn(o.dropdowns, t);
|
|
3366
|
+
}), e), Fi = (e, t, o) => {
|
|
3333
3367
|
const n = { pageNum: 1, pageSize: 1e5 }, r = Io();
|
|
3334
3368
|
Object.assign(n, o, r, e.defaultParams || {});
|
|
3335
|
-
let
|
|
3336
|
-
|
|
3337
|
-
const { url:
|
|
3338
|
-
if (!
|
|
3339
|
-
const s = Ye(
|
|
3369
|
+
let a = er(n, e.items);
|
|
3370
|
+
a = tr(a, e.items);
|
|
3371
|
+
const { url: i } = e;
|
|
3372
|
+
if (!i) return null;
|
|
3373
|
+
const s = Ye(i) ? i : i.fetch || i.restful;
|
|
3340
3374
|
if (!s) return null;
|
|
3341
|
-
const
|
|
3342
|
-
return new Promise((
|
|
3343
|
-
t[
|
|
3344
|
-
|
|
3375
|
+
const l = i.fetch ? "post" : "get";
|
|
3376
|
+
return new Promise((u, d) => {
|
|
3377
|
+
t[l](s, a).then((c) => {
|
|
3378
|
+
u(c.list);
|
|
3345
3379
|
}).catch((c) => {
|
|
3346
3380
|
d(c);
|
|
3347
3381
|
});
|
|
3348
3382
|
});
|
|
3349
|
-
},
|
|
3350
|
-
if (
|
|
3351
|
-
for (const
|
|
3352
|
-
t[
|
|
3353
|
-
const
|
|
3354
|
-
Object.assign(
|
|
3355
|
-
let
|
|
3356
|
-
|
|
3357
|
-
const { url:
|
|
3358
|
-
if (!
|
|
3359
|
-
const d = Ye(
|
|
3360
|
-
return d ? n[c](d,
|
|
3361
|
-
},
|
|
3383
|
+
}, Pi = (e, t, o, n, r, a) => {
|
|
3384
|
+
if (a) return zi();
|
|
3385
|
+
for (const p in t)
|
|
3386
|
+
t[p] && Ye(t[p]) && (t[p] = t[p].trim());
|
|
3387
|
+
const i = { pageNum: o.currentPage, pageSize: o.pageSize }, s = Io();
|
|
3388
|
+
Object.assign(i, s, e.defaultParams || {}, t);
|
|
3389
|
+
let l = er(i, e.items);
|
|
3390
|
+
l = tr(l, e.items);
|
|
3391
|
+
const { url: u } = e;
|
|
3392
|
+
if (!u) return null;
|
|
3393
|
+
const d = Ye(u) ? u : u.fetch || u.restful, c = u.fetch ? "post" : "get";
|
|
3394
|
+
return d ? n[c](d, l) : null;
|
|
3395
|
+
}, _i = (e, t, o) => {
|
|
3362
3396
|
const { url: n } = o;
|
|
3363
3397
|
if (!n) return null;
|
|
3364
3398
|
const r = Ye(n) ? n : n.del || n.restful;
|
|
3365
3399
|
if (!r) return null;
|
|
3366
|
-
const
|
|
3367
|
-
return e[
|
|
3368
|
-
},
|
|
3400
|
+
const a = n.del ? "post" : "delete";
|
|
3401
|
+
return e[a](r, t);
|
|
3402
|
+
}, Oi = (e, t, o) => {
|
|
3369
3403
|
const n = [], { url: r } = o;
|
|
3370
3404
|
if (!r) return null;
|
|
3371
|
-
const { insertRecords:
|
|
3372
|
-
if (
|
|
3405
|
+
const { insertRecords: a, updateRecords: i } = t;
|
|
3406
|
+
if (!$e(a)) {
|
|
3373
3407
|
const s = Io();
|
|
3374
|
-
|
|
3408
|
+
a.forEach((u) => {
|
|
3375
3409
|
var d;
|
|
3376
|
-
|
|
3377
|
-
|
|
3410
|
+
!$e(o == null ? void 0 : o.defaultValue) && Object.assign(u, o.defaultValue), (d = Object.keys(s)) == null || d.forEach((c) => {
|
|
3411
|
+
u[c] = u[c] || s[c];
|
|
3378
3412
|
});
|
|
3379
3413
|
});
|
|
3380
|
-
const
|
|
3381
|
-
|
|
3414
|
+
const l = Ye(r) ? r : r.add || r.restful;
|
|
3415
|
+
l && n.push(e.post(l, a));
|
|
3382
3416
|
}
|
|
3383
|
-
if (
|
|
3384
|
-
const s = Ye(r) ? r : r.save || r.restful,
|
|
3385
|
-
s && n.push(e[
|
|
3417
|
+
if (!$e(i)) {
|
|
3418
|
+
const s = Ye(r) ? r : r.save || r.restful, l = r.save ? "post" : "put";
|
|
3419
|
+
s && n.push(e[l](s, i));
|
|
3386
3420
|
}
|
|
3387
3421
|
return n;
|
|
3388
|
-
},
|
|
3422
|
+
}, er = (e, t) => {
|
|
3389
3423
|
const o = t.filter((r) => {
|
|
3390
|
-
var
|
|
3391
|
-
return ((
|
|
3424
|
+
var a, i;
|
|
3425
|
+
return ((i = (a = r.itemRender) == null ? void 0 : a.props) == null ? void 0 : i.multiple) || r.multiple;
|
|
3392
3426
|
});
|
|
3393
|
-
if (
|
|
3427
|
+
if ($e(o)) return e;
|
|
3394
3428
|
const n = ee(e, !0);
|
|
3395
3429
|
return o.forEach((r) => {
|
|
3396
|
-
|
|
3430
|
+
var a;
|
|
3431
|
+
r.itemRender.name === "#select" && r.itemRender.props.multiple && (((a = n[`_${r.field}`]) == null ? void 0 : a.length) === 0 && (n[`${r.field}`] = null), delete e[`_${r.field}`], delete n[`_${r.field}`]);
|
|
3397
3432
|
}), n;
|
|
3398
|
-
}, un = "yyyy-MM-dd 00:00:00", cn = "yyyy-MM-dd 23:59:59",
|
|
3433
|
+
}, un = "yyyy-MM-dd 00:00:00", cn = "yyyy-MM-dd 23:59:59", tr = (e, t) => {
|
|
3399
3434
|
const o = t.filter((r) => {
|
|
3400
|
-
var
|
|
3401
|
-
return ["#SuDateRange", "VxeDateRangePicker"].includes((
|
|
3435
|
+
var a;
|
|
3436
|
+
return ["#SuDateRange", "VxeDateRangePicker"].includes((a = r.itemRender) == null ? void 0 : a.name);
|
|
3402
3437
|
});
|
|
3403
|
-
if (
|
|
3438
|
+
if ($e(o)) return e;
|
|
3404
3439
|
const n = ee(e, !0);
|
|
3405
3440
|
return o.forEach((r) => {
|
|
3406
|
-
const
|
|
3407
|
-
|
|
3441
|
+
const a = n[r.field];
|
|
3442
|
+
a && r.itemRender.startField ? (n[r.itemRender.startField] = B(n[r.itemRender.startField], un), n[r.itemRender.endField] = B(n[r.itemRender.endField], cn)) : a && (n[`${r.field}From`] = B(a[0], un), n[`${r.field}To`] = B(a[1], cn)), delete n[r.field];
|
|
3408
3443
|
}), n;
|
|
3409
|
-
}, Io = () => Ae.get(ln) ? JSON.parse(Ae.get(ln)) : {},
|
|
3444
|
+
}, Io = () => Ae.get(ln) ? JSON.parse(Ae.get(ln)) : {}, Ni = [
|
|
3410
3445
|
{
|
|
3411
3446
|
code: "insert_actived",
|
|
3412
3447
|
name: "add",
|
|
@@ -3429,7 +3464,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3429
3464
|
auth: "edit",
|
|
3430
3465
|
sort: 3
|
|
3431
3466
|
}
|
|
3432
|
-
],
|
|
3467
|
+
], Mi = [
|
|
3433
3468
|
{
|
|
3434
3469
|
code: "add",
|
|
3435
3470
|
status: "u-cyan",
|
|
@@ -3444,7 +3479,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3444
3479
|
auth: "del",
|
|
3445
3480
|
sort: 2
|
|
3446
3481
|
}
|
|
3447
|
-
],
|
|
3482
|
+
], Ri = [
|
|
3448
3483
|
{ field: "createdByName", width: 90, visible: !1 },
|
|
3449
3484
|
{ field: "creationDate", width: 140, visible: !1 },
|
|
3450
3485
|
{ field: "lastUpdatedByName", width: 90, visible: !1 },
|
|
@@ -3455,9 +3490,9 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3455
3490
|
types: ["xlsx", "csv"],
|
|
3456
3491
|
modes: ["current", "selected", "all"],
|
|
3457
3492
|
useStyle: !0,
|
|
3458
|
-
sheetMethod: ({ worksheet: t }) => e.onSheetMethod ? e.onSheetMethod(t) :
|
|
3493
|
+
sheetMethod: ({ worksheet: t }) => e.onSheetMethod ? e.onSheetMethod(t) : Ui(t),
|
|
3459
3494
|
columnFilterMethod: ({ column: t }) => e.columnFilter ? !!e.columnFilter(t) : !["operate"].includes(t.field) && t.type !== "checkbox"
|
|
3460
|
-
},
|
|
3495
|
+
}, Ai = (e, t, o, n) => {
|
|
3461
3496
|
const r = {
|
|
3462
3497
|
icon: "ri-refresh-line",
|
|
3463
3498
|
iconLoading: "vxe-icon-spinner roll vxe-loading--default-icon"
|
|
@@ -3476,43 +3511,43 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3476
3511
|
perfect: !0
|
|
3477
3512
|
}, e;
|
|
3478
3513
|
}
|
|
3479
|
-
let
|
|
3480
|
-
|
|
3514
|
+
let a = ee(o.buttons || [], !0);
|
|
3515
|
+
a.forEach((d, c) => {
|
|
3481
3516
|
d.sort = d.sort || c + 10;
|
|
3482
|
-
}), (o.mode !== "form" ? ee(
|
|
3483
|
-
!
|
|
3484
|
-
}),
|
|
3485
|
-
var
|
|
3517
|
+
}), (o.mode !== "form" ? ee(Ni, !0) : ee(Mi, !0)).reverse().forEach((d) => {
|
|
3518
|
+
!a.some((c) => c.code === d.code) && a.unshift(d), o.authPrefix && !["printer", "export"].includes(d.auth) && (d.auth = o.authPrefix + d.auth.slice(0, 1).toLocaleUpperCase() + d.auth.slice(1).toLocaleLowerCase());
|
|
3519
|
+
}), a = Qn(a, t.auth).filter((d) => {
|
|
3520
|
+
var p;
|
|
3486
3521
|
const c = d.auth ? n(d.auth) : !0;
|
|
3487
|
-
return (
|
|
3522
|
+
return (p = d.dropdowns) != null && p.length && (d.dropdowns = d.dropdowns.filter((y) => !y.auth || y.auth && n(y.auth))), c;
|
|
3488
3523
|
});
|
|
3489
3524
|
const s = { trigger: "dblclick", mode: "row", showStatus: !0 };
|
|
3490
3525
|
e.editConfig = o.mode !== "form" ? s : { enabled: !1 };
|
|
3491
|
-
const
|
|
3492
|
-
let
|
|
3493
|
-
return
|
|
3494
|
-
buttons: Nr(
|
|
3526
|
+
const l = t.needExport && n("export");
|
|
3527
|
+
let u = null;
|
|
3528
|
+
return l && (e.exportConfig = dn(o), u = { icon: "ri-download-2-line", code: "export" }), e.toolbarConfig = {
|
|
3529
|
+
buttons: Nr(a, "sort"),
|
|
3495
3530
|
enabled: !0,
|
|
3496
3531
|
refreshOptions: r,
|
|
3497
3532
|
customOptions: o.gridId ? {} : null,
|
|
3498
|
-
exportOptions:
|
|
3533
|
+
exportOptions: u,
|
|
3499
3534
|
custom: !!o.gridId,
|
|
3500
|
-
export:
|
|
3535
|
+
export: l,
|
|
3501
3536
|
refresh: !0,
|
|
3502
3537
|
perfect: !0
|
|
3503
3538
|
}, e;
|
|
3504
|
-
},
|
|
3539
|
+
}, Li = ({ columns: e, data: t }, o) => [
|
|
3505
3540
|
e.map((n, r) => {
|
|
3506
|
-
var
|
|
3541
|
+
var a;
|
|
3507
3542
|
if (r === (o.index || 0))
|
|
3508
3543
|
return o.label || "合计";
|
|
3509
|
-
if ((
|
|
3510
|
-
const
|
|
3511
|
-
return
|
|
3544
|
+
if ((a = o.fields) != null && a.includes(n.property)) {
|
|
3545
|
+
const i = t.reduce((s, l) => s + Number(l[n.property] || 0), 0);
|
|
3546
|
+
return i && Number(i.toFixed(o.decimal || 2));
|
|
3512
3547
|
}
|
|
3513
3548
|
return "";
|
|
3514
3549
|
})
|
|
3515
|
-
],
|
|
3550
|
+
], Bi = (e, t) => Or(t.checkMethod) ? t.checkMethod(e) : !0, Ui = (e) => {
|
|
3516
3551
|
e.eachRow((t, o) => {
|
|
3517
3552
|
t.font = { name: "微软雅黑", size: 9 }, t.border = {
|
|
3518
3553
|
top: { style: "thin" },
|
|
@@ -3530,7 +3565,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3530
3565
|
color: { argb: "FFFFFFFF" }
|
|
3531
3566
|
});
|
|
3532
3567
|
});
|
|
3533
|
-
},
|
|
3568
|
+
}, zi = () => new Promise((e) => {
|
|
3534
3569
|
setTimeout(() => {
|
|
3535
3570
|
e({ list: [
|
|
3536
3571
|
{ id: 1, name: "Test1", sex: "Man", age: 28, address: "Shenzhen" },
|
|
@@ -3540,13 +3575,13 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3540
3575
|
{ id: 5, name: "Test5", sex: "Women", age: 30, address: "Shanghai" }
|
|
3541
3576
|
], total: 5 });
|
|
3542
3577
|
}, 100);
|
|
3543
|
-
}),
|
|
3578
|
+
}), ji = (e) => {
|
|
3544
3579
|
const t = {};
|
|
3545
3580
|
return Object.keys(e).forEach((o) => {
|
|
3546
3581
|
const n = o.replace(/-(\w)/g, (r) => r.slice(1).toUpperCase());
|
|
3547
3582
|
t[n] = e[o];
|
|
3548
3583
|
}), t;
|
|
3549
|
-
},
|
|
3584
|
+
}, qi = { style: { width: "100%", height: "100%" } }, fn = "U_TABLE_COLUMNN_SORT", $i = /* @__PURE__ */ ke({
|
|
3550
3585
|
name: "UtGrid",
|
|
3551
3586
|
__name: "index",
|
|
3552
3587
|
props: {
|
|
@@ -3563,29 +3598,29 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3563
3598
|
},
|
|
3564
3599
|
emits: ["buttonClick", "cellClick", "cellDbclick", "editEctivated"],
|
|
3565
3600
|
setup(e, { expose: t, emit: o }) {
|
|
3566
|
-
const n =
|
|
3601
|
+
const n = ji(ur());
|
|
3567
3602
|
let r;
|
|
3568
|
-
const
|
|
3603
|
+
const a = {}, i = cr(), s = i.appContext.config.globalProperties.$hasAuthority, l = i.appContext.config.globalProperties.$serviceApi, u = i.parent.type.name, d = i.appContext.config.globalProperties.$mode, c = e, { t: p } = Bt(), y = Re(null), v = Re(!1), m = {
|
|
3569
3604
|
icon: "vxe-icon-setting",
|
|
3570
3605
|
name: "favorite",
|
|
3571
3606
|
events: {
|
|
3572
|
-
click: (
|
|
3573
|
-
|
|
3607
|
+
click: (g, k) => {
|
|
3608
|
+
k.name === "favorite" && (v.value = !0);
|
|
3574
3609
|
}
|
|
3575
3610
|
}
|
|
3576
|
-
}, h = () => c.columns.length ? lo(c.columns,
|
|
3577
|
-
const
|
|
3611
|
+
}, h = () => c.columns.length ? lo(c.columns, p) : {}, x = () => {
|
|
3612
|
+
const g = c.columns;
|
|
3578
3613
|
if (n.gridId) {
|
|
3579
|
-
const
|
|
3580
|
-
|
|
3614
|
+
const F = Ri.filter((L) => !g.some((te) => te.field === L.field)).map((L) => (n.format && ["lastUpdateDate", "creationDate"].includes(L.field) && (L.formatter = n.format, L.width = 90), L)), A = g.findIndex((L) => L.field === "operate");
|
|
3615
|
+
A !== -1 ? g.splice(A, 0, ...F) : g.push(...F);
|
|
3581
3616
|
}
|
|
3582
|
-
const
|
|
3583
|
-
return
|
|
3617
|
+
const k = n.gridId ? I(g) : g;
|
|
3618
|
+
return Sr(k, n.sortable);
|
|
3584
3619
|
};
|
|
3585
|
-
tt.getItem(fn).then((
|
|
3586
|
-
r =
|
|
3620
|
+
tt.getItem(fn).then((g) => {
|
|
3621
|
+
r = g, C.columns = x();
|
|
3587
3622
|
});
|
|
3588
|
-
const C =
|
|
3623
|
+
const C = dr({
|
|
3589
3624
|
border: !0,
|
|
3590
3625
|
pagerConfig: { pageSize: n.pageSize || 20 },
|
|
3591
3626
|
editConfig: {},
|
|
@@ -3596,7 +3631,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3596
3631
|
sortConfig: { multiple: !0, trigger: "cell" },
|
|
3597
3632
|
height: d ? void 0 : window.innerHeight - 92,
|
|
3598
3633
|
checkboxConfig: {
|
|
3599
|
-
checkMethod: ({ row:
|
|
3634
|
+
checkMethod: ({ row: g }) => Bi(g, c),
|
|
3600
3635
|
checkRowKeys: c.checkRowKeys
|
|
3601
3636
|
},
|
|
3602
3637
|
loading: !1,
|
|
@@ -3609,149 +3644,150 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3609
3644
|
showActionMsgvxe: !1,
|
|
3610
3645
|
// 接收 Promise
|
|
3611
3646
|
ajax: {
|
|
3612
|
-
queryAll: ({ form:
|
|
3613
|
-
query: ({ page:
|
|
3614
|
-
delete: ({ body: { removeRecords:
|
|
3615
|
-
save: ({ body:
|
|
3616
|
-
querySuccess: ({ response:
|
|
3617
|
-
queryError: ({ response:
|
|
3618
|
-
deleteSuccess: ({ response:
|
|
3619
|
-
deleteError: ({ response:
|
|
3620
|
-
saveSuccess: ({ response:
|
|
3621
|
-
saveError: ({ response:
|
|
3647
|
+
queryAll: ({ form: g }) => Fi(c, l, g),
|
|
3648
|
+
query: ({ page: g, form: k, code: F }) => Pi(c, k, g, l, F, d),
|
|
3649
|
+
delete: ({ body: { removeRecords: g } }) => _i(l, g, c),
|
|
3650
|
+
save: ({ body: g }) => Promise.all(Oi(l, g, c)),
|
|
3651
|
+
querySuccess: ({ response: g }) => j("querySuccess", g),
|
|
3652
|
+
queryError: ({ response: g }) => j("queryError", g),
|
|
3653
|
+
deleteSuccess: ({ response: g }) => j("deleteSuccess", g),
|
|
3654
|
+
deleteError: ({ response: g }) => j("deleteError", g),
|
|
3655
|
+
saveSuccess: ({ response: g }) => j("saveSuccess", g),
|
|
3656
|
+
saveError: ({ response: g }) => j("saveError", g)
|
|
3622
3657
|
}
|
|
3623
3658
|
},
|
|
3624
3659
|
columns: n.gridId ? [] : x(),
|
|
3625
3660
|
...n
|
|
3626
|
-
}), T = () => c.items.length ?
|
|
3627
|
-
function I(
|
|
3628
|
-
const
|
|
3629
|
-
return
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3632
|
-
}).sort((
|
|
3661
|
+
}), T = () => c.items.length ? Tr(ee(c.items, !0), u && c.url ? m : u) : c.items;
|
|
3662
|
+
function I(g) {
|
|
3663
|
+
const k = r ? r[n.gridId] : {};
|
|
3664
|
+
return k ? g.map((F, A) => {
|
|
3665
|
+
const L = (A + 1) * 10;
|
|
3666
|
+
return F._sort = k[F.field] || L, a[F.field] = F._sort, F;
|
|
3667
|
+
}).sort((F, A) => F._sort - A._sort) : g;
|
|
3633
3668
|
}
|
|
3634
|
-
const
|
|
3669
|
+
const re = () => {
|
|
3635
3670
|
c.items.length && (C.formConfig = {
|
|
3636
3671
|
titleWidth: 100,
|
|
3637
3672
|
titleAlign: "right",
|
|
3638
3673
|
items: T(),
|
|
3639
|
-
rules: lo(c.items,
|
|
3674
|
+
rules: lo(c.items, p),
|
|
3640
3675
|
validConfig: { showMessage: !1 }
|
|
3641
3676
|
});
|
|
3642
|
-
const
|
|
3643
|
-
Object.assign(C,
|
|
3677
|
+
const g = Ai(C, c, n, s);
|
|
3678
|
+
Object.assign(C, g), n.gridId && (C.id = n.gridId, C.customConfig = {
|
|
3644
3679
|
storage: !0,
|
|
3645
3680
|
mode: "popup",
|
|
3646
|
-
checkMethod({ column:
|
|
3647
|
-
return !(
|
|
3681
|
+
checkMethod({ column: k }) {
|
|
3682
|
+
return !(k.field === "operate" || ["checkbox", "radio"].includes(k.type));
|
|
3648
3683
|
},
|
|
3649
3684
|
modalOptions: {
|
|
3650
3685
|
width: 750,
|
|
3651
3686
|
height: "75%"
|
|
3652
3687
|
}
|
|
3653
|
-
}), n.mergeFooter && (C.showFooter = !0, C.footerMethod = ({ columns:
|
|
3654
|
-
},
|
|
3655
|
-
|
|
3656
|
-
},
|
|
3688
|
+
}), n.mergeFooter && (C.showFooter = !0, C.footerMethod = ({ columns: k, data: F }) => Li({ columns: k, data: F }, n.mergeFooter));
|
|
3689
|
+
}, Z = () => {
|
|
3690
|
+
y.value.commitProxy("query");
|
|
3691
|
+
}, fe = () => (C.editRules = h(), y.value.refreshColumn()), Ie = () => {
|
|
3657
3692
|
C.loading = !0;
|
|
3658
3693
|
}, H = () => {
|
|
3659
3694
|
C.loading = !1;
|
|
3660
|
-
}, Fe = () => so(
|
|
3661
|
-
const
|
|
3662
|
-
return
|
|
3663
|
-
},
|
|
3664
|
-
n != null && n.callback && (n != null && n.callback[
|
|
3665
|
-
},
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3695
|
+
}, Fe = () => so(y.value), ae = () => y.value.getTableData().fullData, Pe = (g = !1) => {
|
|
3696
|
+
const k = c.columns[0].type, F = k === "radio" ? y.value.getRadioRecord(g) : y.value.getCheckboxRecords(g);
|
|
3697
|
+
return k === "checkbox" && !F.length ? (jo(p("message.tip_selectedRecord")), []) : k === "radio" && !F ? (jo(p("message.tip_selectedRecord")), null) : F;
|
|
3698
|
+
}, j = (g, k) => {
|
|
3699
|
+
n != null && n.callback && (n != null && n.callback[g]) && (n == null || n.callback[g](k));
|
|
3700
|
+
}, me = (g) => {
|
|
3701
|
+
const k = g.data;
|
|
3702
|
+
c.items.filter((A) => {
|
|
3703
|
+
var L, te;
|
|
3704
|
+
return (te = (L = A.itemRender) == null ? void 0 : L.props) == null ? void 0 : te.multiple;
|
|
3705
|
+
}).forEach((A) => {
|
|
3706
|
+
A.itemRender.props.defaultValue ? k[`_${A.field}`] = A.itemRender.props.defaultValue.split(",") : k[`_${A.field}`] = [];
|
|
3707
|
+
});
|
|
3672
3708
|
};
|
|
3673
|
-
let
|
|
3709
|
+
let he;
|
|
3674
3710
|
const ie = () => {
|
|
3675
|
-
const
|
|
3676
|
-
|
|
3711
|
+
const g = y.value;
|
|
3712
|
+
he = w.create(g.$el.querySelector(".vxe-table--header .vxe-header--row"), {
|
|
3677
3713
|
disabled: !n.gridId,
|
|
3678
3714
|
handle: ".vxe-header--column",
|
|
3679
|
-
onEnd: async (
|
|
3680
|
-
const
|
|
3681
|
-
let gt = !1,
|
|
3682
|
-
if (ir.fixed ? gt = !1 :
|
|
3683
|
-
const Ee =
|
|
3684
|
-
return
|
|
3715
|
+
onEnd: async (k) => {
|
|
3716
|
+
const F = k.item, A = k.newIndex, L = k.oldIndex, { fullColumn: te, tableColumn: No } = g.getTableColumn(), Ht = F.parentNode, ir = te[A], Mo = te[L];
|
|
3717
|
+
let gt = !1, Wt = "固定列";
|
|
3718
|
+
if (ir.fixed ? gt = !1 : A === 0 || ["checkbox", "radio"].includes(Mo.type) ? (Wt = "勾选列", gt = !0) : (Mo.field === "operate" || A === te.length - 1) && (gt = !0, Wt = "操作列"), gt) {
|
|
3719
|
+
const Ee = Ht.children[L];
|
|
3720
|
+
return A > L ? Ht.insertBefore(F, Ee) : Ht.insertBefore(F, Ee && Ee.nextElementSibling), Dr(Wt + "不允许拖动!");
|
|
3685
3721
|
}
|
|
3686
|
-
const Vt =
|
|
3687
|
-
|
|
3722
|
+
const Vt = g.getColumnIndex(No[L]), Yt = g.getColumnIndex(No[A]), Ro = te.splice(Vt, 1)[0];
|
|
3723
|
+
te.splice(Yt, 0, Ro);
|
|
3688
3724
|
const Je = Yt - Vt > 0 ? 1 : -1, Ao = (Yt + 1) * 10, Lo = (Vt + 1) * 10, Bo = Ao + 1 * Je;
|
|
3689
|
-
for (const Ee in
|
|
3690
|
-
const Le =
|
|
3691
|
-
(Je > 0 && Le < Bo && Le > Lo || Je < 0 && Le > Bo && Le < Lo) && (
|
|
3725
|
+
for (const Ee in a) {
|
|
3726
|
+
const Le = a[Ee];
|
|
3727
|
+
(Je > 0 && Le < Bo && Le > Lo || Je < 0 && Le > Bo && Le < Lo) && (a[Ee] = Le - 10 * Je);
|
|
3692
3728
|
}
|
|
3693
|
-
|
|
3729
|
+
a[Ro.field] = Ao, tt.setItem(fn, { [n.gridId]: a }), g.loadColumn(te);
|
|
3694
3730
|
}
|
|
3695
3731
|
});
|
|
3696
3732
|
};
|
|
3697
3733
|
t({
|
|
3698
|
-
getTableData:
|
|
3734
|
+
getTableData: ae,
|
|
3699
3735
|
getSelectRecords: Pe,
|
|
3700
|
-
refreshData:
|
|
3701
|
-
refreshColumn:
|
|
3736
|
+
refreshData: Z,
|
|
3737
|
+
refreshColumn: fe,
|
|
3702
3738
|
getInstance: Fe,
|
|
3703
3739
|
showLoading: Ie,
|
|
3704
3740
|
hiddenLoading: H,
|
|
3705
3741
|
reloadGrid: () => {
|
|
3706
|
-
|
|
3742
|
+
re();
|
|
3707
3743
|
}
|
|
3708
3744
|
});
|
|
3709
|
-
const
|
|
3710
|
-
pt("buttonClick",
|
|
3711
|
-
}, qt = (
|
|
3712
|
-
pt("cellClick",
|
|
3713
|
-
}, _o = (
|
|
3714
|
-
pt("cellDbclick",
|
|
3715
|
-
}, ht = (
|
|
3716
|
-
pt("editEctivated",
|
|
3717
|
-
},
|
|
3745
|
+
const we = ({ code: g }) => {
|
|
3746
|
+
pt("buttonClick", g);
|
|
3747
|
+
}, qt = (g) => {
|
|
3748
|
+
pt("cellClick", g);
|
|
3749
|
+
}, _o = (g) => {
|
|
3750
|
+
pt("cellDbclick", g);
|
|
3751
|
+
}, ht = (g) => {
|
|
3752
|
+
pt("editEctivated", g);
|
|
3753
|
+
}, $t = () => {
|
|
3718
3754
|
window.onresize = () => (() => {
|
|
3719
|
-
let
|
|
3720
|
-
n.mode !== "inline" && !(n != null && n.height) && (
|
|
3755
|
+
let g = (n == null ? void 0 : n.height) || window.innerHeight - 90;
|
|
3756
|
+
n.mode !== "inline" && !(n != null && n.height) && (g = window.innerHeight - 180), C.height = g < 240 ? 240 : g;
|
|
3721
3757
|
})();
|
|
3722
3758
|
};
|
|
3723
3759
|
let Oo;
|
|
3724
|
-
|
|
3760
|
+
fr(() => {
|
|
3725
3761
|
Oo = setTimeout(() => {
|
|
3726
3762
|
ie();
|
|
3727
3763
|
}, 500);
|
|
3728
|
-
}), fr(() => {
|
|
3729
|
-
clearTimeout(Oo), me && me.destroy();
|
|
3730
3764
|
}), mr(() => {
|
|
3731
|
-
|
|
3765
|
+
clearTimeout(Oo), he && he.destroy();
|
|
3766
|
+
}), hr(() => {
|
|
3767
|
+
re(), $t();
|
|
3732
3768
|
});
|
|
3733
3769
|
const pt = o;
|
|
3734
|
-
return (
|
|
3735
|
-
const
|
|
3736
|
-
return vo(), Sn("div",
|
|
3737
|
-
st(
|
|
3770
|
+
return (g, k) => {
|
|
3771
|
+
const F = Ve("vxe-grid");
|
|
3772
|
+
return vo(), Sn("div", qi, [
|
|
3773
|
+
st(F, Dn({
|
|
3738
3774
|
ref_key: "xgrid",
|
|
3739
|
-
ref:
|
|
3740
|
-
}, C, { class: "ut-grid-wrapper" },
|
|
3741
|
-
onToolbarButtonClick:
|
|
3742
|
-
onToolbarToolClick:
|
|
3775
|
+
ref: y
|
|
3776
|
+
}, C, { class: "ut-grid-wrapper" }, pr(gr(n).events || {}), {
|
|
3777
|
+
onToolbarButtonClick: we,
|
|
3778
|
+
onToolbarToolClick: we,
|
|
3743
3779
|
onCellClick: qt,
|
|
3744
3780
|
onCellDblclick: _o,
|
|
3745
3781
|
onEditActivated: ht,
|
|
3746
|
-
onFormReset:
|
|
3782
|
+
onFormReset: me
|
|
3747
3783
|
}), null, 16)
|
|
3748
3784
|
]);
|
|
3749
3785
|
};
|
|
3750
3786
|
}
|
|
3751
|
-
}),
|
|
3787
|
+
}), Hi = { class: "width: 100%" }, Wi = {
|
|
3752
3788
|
name: "UtForm"
|
|
3753
|
-
},
|
|
3754
|
-
...
|
|
3789
|
+
}, Vi = /* @__PURE__ */ ke({
|
|
3790
|
+
...Wi,
|
|
3755
3791
|
props: {
|
|
3756
3792
|
record: { default: () => ({}) },
|
|
3757
3793
|
items: { default: () => [] },
|
|
@@ -3762,7 +3798,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3762
3798
|
dataStatus: { default: "detail" }
|
|
3763
3799
|
},
|
|
3764
3800
|
setup(e, { expose: t }) {
|
|
3765
|
-
const o = e, n = Re(void 0), { t: r } = Bt(),
|
|
3801
|
+
const o = e, n = Re(void 0), { t: r } = Bt(), a = Re(!0), i = Pt(() => o.items.length ? lo(o.items, r) : {}), s = Pt(() => o.items.length ? xr(ee(o.items, !0), o.dataStatus, 6) : o.items), l = () => {
|
|
3766
3802
|
n.value.toggleCollapse();
|
|
3767
3803
|
};
|
|
3768
3804
|
return t({
|
|
@@ -3774,15 +3810,15 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3774
3810
|
n.value.clearValidate();
|
|
3775
3811
|
}, 1600);
|
|
3776
3812
|
}
|
|
3777
|
-
}), (c,
|
|
3778
|
-
const
|
|
3779
|
-
return vo(), Sn("div",
|
|
3813
|
+
}), (c, p) => {
|
|
3814
|
+
const y = Ve("vxe-checkbox"), v = Ve("vxe-form");
|
|
3815
|
+
return vo(), Sn("div", Hi, [
|
|
3780
3816
|
st(v, Dn({
|
|
3781
3817
|
ref_key: "xForm",
|
|
3782
3818
|
ref: n,
|
|
3783
3819
|
data: c.record,
|
|
3784
3820
|
items: s.value,
|
|
3785
|
-
rules:
|
|
3821
|
+
rules: i.value,
|
|
3786
3822
|
loading: c.loading,
|
|
3787
3823
|
vertical: c.vertical,
|
|
3788
3824
|
"title-width": c.titleWidth,
|
|
@@ -3790,16 +3826,16 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3790
3826
|
"title-align": "right",
|
|
3791
3827
|
"title-bold": ""
|
|
3792
3828
|
}, c.$attrs), {
|
|
3793
|
-
dividerPrefix:
|
|
3794
|
-
collapseNode:
|
|
3795
|
-
st(
|
|
3796
|
-
modelValue:
|
|
3797
|
-
"onUpdate:modelValue":
|
|
3829
|
+
dividerPrefix: io(() => p[1] || (p[1] = [])),
|
|
3830
|
+
collapseNode: io(() => [
|
|
3831
|
+
st(y, {
|
|
3832
|
+
modelValue: a.value,
|
|
3833
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => a.value = m),
|
|
3798
3834
|
content: "查看更多",
|
|
3799
3835
|
"checked-value": !1,
|
|
3800
3836
|
"unchecked-value": !0,
|
|
3801
3837
|
class: "pl-10",
|
|
3802
|
-
onChange:
|
|
3838
|
+
onChange: l
|
|
3803
3839
|
}, null, 8, ["modelValue"])
|
|
3804
3840
|
]),
|
|
3805
3841
|
_: 1
|
|
@@ -3807,7 +3843,7 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3807
3843
|
]);
|
|
3808
3844
|
};
|
|
3809
3845
|
}
|
|
3810
|
-
}),
|
|
3846
|
+
}), or = Object.freeze(
|
|
3811
3847
|
{
|
|
3812
3848
|
left: 0,
|
|
3813
3849
|
top: 0,
|
|
@@ -3819,69 +3855,69 @@ const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t)
|
|
|
3819
3855
|
vFlip: !1,
|
|
3820
3856
|
hFlip: !1
|
|
3821
3857
|
}), Fo = Object.freeze({
|
|
3822
|
-
...
|
|
3858
|
+
...or,
|
|
3823
3859
|
...Lt
|
|
3824
3860
|
}), go = Object.freeze({
|
|
3825
3861
|
...Fo,
|
|
3826
3862
|
body: "",
|
|
3827
3863
|
hidden: !1
|
|
3828
3864
|
});
|
|
3829
|
-
function
|
|
3865
|
+
function Yi(e, t) {
|
|
3830
3866
|
const o = {};
|
|
3831
3867
|
!e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
|
|
3832
3868
|
const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
3833
3869
|
return n && (o.rotate = n), o;
|
|
3834
3870
|
}
|
|
3835
3871
|
function mn(e, t) {
|
|
3836
|
-
const o =
|
|
3872
|
+
const o = Yi(e, t);
|
|
3837
3873
|
for (const n in go)
|
|
3838
3874
|
n in Lt ? n in e && !(n in o) && (o[n] = Lt[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
|
|
3839
3875
|
return o;
|
|
3840
3876
|
}
|
|
3841
|
-
function
|
|
3877
|
+
function Gi(e, t) {
|
|
3842
3878
|
const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
3843
|
-
function i
|
|
3844
|
-
if (o[
|
|
3845
|
-
return r[
|
|
3846
|
-
if (!(
|
|
3847
|
-
r[
|
|
3848
|
-
const s = n[
|
|
3849
|
-
|
|
3879
|
+
function a(i) {
|
|
3880
|
+
if (o[i])
|
|
3881
|
+
return r[i] = [];
|
|
3882
|
+
if (!(i in r)) {
|
|
3883
|
+
r[i] = null;
|
|
3884
|
+
const s = n[i] && n[i].parent, l = s && a(s);
|
|
3885
|
+
l && (r[i] = [s].concat(l));
|
|
3850
3886
|
}
|
|
3851
|
-
return r[
|
|
3887
|
+
return r[i];
|
|
3852
3888
|
}
|
|
3853
|
-
return Object.keys(o).concat(Object.keys(n)).forEach(
|
|
3889
|
+
return Object.keys(o).concat(Object.keys(n)).forEach(a), r;
|
|
3854
3890
|
}
|
|
3855
|
-
function
|
|
3891
|
+
function Xi(e, t, o) {
|
|
3856
3892
|
const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
3857
|
-
let
|
|
3858
|
-
function
|
|
3859
|
-
|
|
3893
|
+
let a = {};
|
|
3894
|
+
function i(s) {
|
|
3895
|
+
a = mn(
|
|
3860
3896
|
n[s] || r[s],
|
|
3861
|
-
|
|
3897
|
+
a
|
|
3862
3898
|
);
|
|
3863
3899
|
}
|
|
3864
|
-
return
|
|
3900
|
+
return i(t), o.forEach(i), mn(e, a);
|
|
3865
3901
|
}
|
|
3866
|
-
function
|
|
3902
|
+
function Ki(e, t) {
|
|
3867
3903
|
const o = [];
|
|
3868
3904
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
3869
3905
|
return o;
|
|
3870
3906
|
e.not_found instanceof Array && e.not_found.forEach((r) => {
|
|
3871
3907
|
t(r, null), o.push(r);
|
|
3872
3908
|
});
|
|
3873
|
-
const n =
|
|
3909
|
+
const n = Gi(e);
|
|
3874
3910
|
for (const r in n) {
|
|
3875
|
-
const
|
|
3876
|
-
|
|
3911
|
+
const a = n[r];
|
|
3912
|
+
a && (t(r, Xi(e, r, a)), o.push(r));
|
|
3877
3913
|
}
|
|
3878
3914
|
return o;
|
|
3879
3915
|
}
|
|
3880
|
-
const
|
|
3916
|
+
const Ji = {
|
|
3881
3917
|
provider: "",
|
|
3882
3918
|
aliases: {},
|
|
3883
3919
|
not_found: {},
|
|
3884
|
-
...
|
|
3920
|
+
...or
|
|
3885
3921
|
};
|
|
3886
3922
|
function ro(e, t) {
|
|
3887
3923
|
for (const o in t)
|
|
@@ -3889,21 +3925,21 @@ function ro(e, t) {
|
|
|
3889
3925
|
return !1;
|
|
3890
3926
|
return !0;
|
|
3891
3927
|
}
|
|
3892
|
-
function
|
|
3928
|
+
function Zi(e) {
|
|
3893
3929
|
if (typeof e != "object" || e === null)
|
|
3894
3930
|
return null;
|
|
3895
3931
|
const t = e;
|
|
3896
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ro(e,
|
|
3932
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ro(e, Ji))
|
|
3897
3933
|
return null;
|
|
3898
3934
|
const o = t.icons;
|
|
3899
3935
|
for (const r in o) {
|
|
3900
|
-
const
|
|
3936
|
+
const a = o[r];
|
|
3901
3937
|
if (
|
|
3902
3938
|
// Name cannot be empty
|
|
3903
3939
|
!r || // Must have body
|
|
3904
|
-
typeof
|
|
3940
|
+
typeof a.body != "string" || // Check other props
|
|
3905
3941
|
!ro(
|
|
3906
|
-
|
|
3942
|
+
a,
|
|
3907
3943
|
go
|
|
3908
3944
|
)
|
|
3909
3945
|
)
|
|
@@ -3911,13 +3947,13 @@ function Ka(e) {
|
|
|
3911
3947
|
}
|
|
3912
3948
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
3913
3949
|
for (const r in n) {
|
|
3914
|
-
const
|
|
3950
|
+
const a = n[r], i = a.parent;
|
|
3915
3951
|
if (
|
|
3916
3952
|
// Name cannot be empty
|
|
3917
3953
|
!r || // Parent must be set and point to existing icon
|
|
3918
|
-
typeof
|
|
3954
|
+
typeof i != "string" || !o[i] && !n[i] || // Check other props
|
|
3919
3955
|
!ro(
|
|
3920
|
-
|
|
3956
|
+
a,
|
|
3921
3957
|
go
|
|
3922
3958
|
)
|
|
3923
3959
|
)
|
|
@@ -3925,28 +3961,28 @@ function Ka(e) {
|
|
|
3925
3961
|
}
|
|
3926
3962
|
return t;
|
|
3927
3963
|
}
|
|
3928
|
-
const
|
|
3964
|
+
const nr = Object.freeze({
|
|
3929
3965
|
width: null,
|
|
3930
3966
|
height: null
|
|
3931
|
-
}),
|
|
3967
|
+
}), rr = Object.freeze({
|
|
3932
3968
|
// Dimensions
|
|
3933
|
-
...
|
|
3969
|
+
...nr,
|
|
3934
3970
|
// Transformations
|
|
3935
3971
|
...Lt
|
|
3936
3972
|
});
|
|
3937
|
-
function
|
|
3973
|
+
function Qi(e, t) {
|
|
3938
3974
|
const o = {
|
|
3939
3975
|
...e
|
|
3940
3976
|
};
|
|
3941
3977
|
for (const n in t) {
|
|
3942
|
-
const r = t[n],
|
|
3943
|
-
n in
|
|
3978
|
+
const r = t[n], a = typeof r;
|
|
3979
|
+
n in nr ? (r === null || r && (a === "string" || a === "number")) && (o[n] = r) : a === typeof o[n] && (o[n] = n === "rotate" ? r % 4 : r);
|
|
3944
3980
|
}
|
|
3945
3981
|
return o;
|
|
3946
3982
|
}
|
|
3947
|
-
const
|
|
3948
|
-
function
|
|
3949
|
-
t.split(
|
|
3983
|
+
const es = /[\s,]+/;
|
|
3984
|
+
function ts(e, t) {
|
|
3985
|
+
t.split(es).forEach((o) => {
|
|
3950
3986
|
switch (o.trim()) {
|
|
3951
3987
|
case "horizontal":
|
|
3952
3988
|
e.hFlip = !0;
|
|
@@ -3957,7 +3993,7 @@ function Qa(e, t) {
|
|
|
3957
3993
|
}
|
|
3958
3994
|
});
|
|
3959
3995
|
}
|
|
3960
|
-
function
|
|
3996
|
+
function os(e, t = 0) {
|
|
3961
3997
|
const o = e.replace(/^-?[0-9.]*/, "");
|
|
3962
3998
|
function n(r) {
|
|
3963
3999
|
for (; r < 0; )
|
|
@@ -3977,13 +4013,13 @@ function es(e, t = 0) {
|
|
|
3977
4013
|
r = 90;
|
|
3978
4014
|
}
|
|
3979
4015
|
if (r) {
|
|
3980
|
-
let
|
|
3981
|
-
return isNaN(
|
|
4016
|
+
let a = parseFloat(e.slice(0, e.length - o.length));
|
|
4017
|
+
return isNaN(a) ? 0 : (a = a / r, a % 1 === 0 ? n(a) : 0);
|
|
3982
4018
|
}
|
|
3983
4019
|
}
|
|
3984
4020
|
return t;
|
|
3985
4021
|
}
|
|
3986
|
-
const
|
|
4022
|
+
const ns = /(-?[0-9.]*[0-9]+[0-9.]*)/g, rs = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
3987
4023
|
function hn(e, t, o) {
|
|
3988
4024
|
if (t === 1)
|
|
3989
4025
|
return e;
|
|
@@ -3991,53 +4027,53 @@ function hn(e, t, o) {
|
|
|
3991
4027
|
return Math.ceil(e * t * o) / o;
|
|
3992
4028
|
if (typeof e != "string")
|
|
3993
4029
|
return e;
|
|
3994
|
-
const n = e.split(
|
|
4030
|
+
const n = e.split(ns);
|
|
3995
4031
|
if (n === null || !n.length)
|
|
3996
4032
|
return e;
|
|
3997
4033
|
const r = [];
|
|
3998
|
-
let
|
|
4034
|
+
let a = n.shift(), i = rs.test(a);
|
|
3999
4035
|
for (; ; ) {
|
|
4000
|
-
if (
|
|
4001
|
-
const s = parseFloat(
|
|
4002
|
-
isNaN(s) ? r.push(
|
|
4036
|
+
if (i) {
|
|
4037
|
+
const s = parseFloat(a);
|
|
4038
|
+
isNaN(s) ? r.push(a) : r.push(Math.ceil(s * t * o) / o);
|
|
4003
4039
|
} else
|
|
4004
|
-
r.push(
|
|
4005
|
-
if (
|
|
4040
|
+
r.push(a);
|
|
4041
|
+
if (a = n.shift(), a === void 0)
|
|
4006
4042
|
return r.join("");
|
|
4007
|
-
|
|
4043
|
+
i = !i;
|
|
4008
4044
|
}
|
|
4009
4045
|
}
|
|
4010
|
-
function
|
|
4046
|
+
function as(e, t = "defs") {
|
|
4011
4047
|
let o = "";
|
|
4012
4048
|
const n = e.indexOf("<" + t);
|
|
4013
4049
|
for (; n >= 0; ) {
|
|
4014
|
-
const r = e.indexOf(">", n),
|
|
4015
|
-
if (r === -1 ||
|
|
4050
|
+
const r = e.indexOf(">", n), a = e.indexOf("</" + t);
|
|
4051
|
+
if (r === -1 || a === -1)
|
|
4016
4052
|
break;
|
|
4017
|
-
const
|
|
4018
|
-
if (
|
|
4053
|
+
const i = e.indexOf(">", a);
|
|
4054
|
+
if (i === -1)
|
|
4019
4055
|
break;
|
|
4020
|
-
o += e.slice(r + 1,
|
|
4056
|
+
o += e.slice(r + 1, a).trim(), e = e.slice(0, n).trim() + e.slice(i + 1);
|
|
4021
4057
|
}
|
|
4022
4058
|
return {
|
|
4023
4059
|
defs: o,
|
|
4024
4060
|
content: e
|
|
4025
4061
|
};
|
|
4026
4062
|
}
|
|
4027
|
-
function
|
|
4063
|
+
function is(e, t) {
|
|
4028
4064
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
4029
4065
|
}
|
|
4030
|
-
function
|
|
4031
|
-
const n =
|
|
4032
|
-
return
|
|
4066
|
+
function ss(e, t, o) {
|
|
4067
|
+
const n = as(e);
|
|
4068
|
+
return is(n.defs, t + n.content + o);
|
|
4033
4069
|
}
|
|
4034
|
-
const
|
|
4035
|
-
function
|
|
4070
|
+
const ls = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
4071
|
+
function us(e, t) {
|
|
4036
4072
|
const o = {
|
|
4037
4073
|
...Fo,
|
|
4038
4074
|
...e
|
|
4039
4075
|
}, n = {
|
|
4040
|
-
...
|
|
4076
|
+
...rr,
|
|
4041
4077
|
...t
|
|
4042
4078
|
}, r = {
|
|
4043
4079
|
left: o.left,
|
|
@@ -4045,7 +4081,7 @@ function ss(e, t) {
|
|
|
4045
4081
|
width: o.width,
|
|
4046
4082
|
height: o.height
|
|
4047
4083
|
};
|
|
4048
|
-
let
|
|
4084
|
+
let a = o.body;
|
|
4049
4085
|
[o, n].forEach((m) => {
|
|
4050
4086
|
const h = [], x = m.hFlip, C = m.vFlip;
|
|
4051
4087
|
let T = m.rotate;
|
|
@@ -4072,74 +4108,74 @@ function ss(e, t) {
|
|
|
4072
4108
|
);
|
|
4073
4109
|
break;
|
|
4074
4110
|
}
|
|
4075
|
-
T % 2 === 1 && (r.left !== r.top && (I = r.left, r.left = r.top, r.top = I), r.width !== r.height && (I = r.width, r.width = r.height, r.height = I)), h.length && (
|
|
4076
|
-
|
|
4111
|
+
T % 2 === 1 && (r.left !== r.top && (I = r.left, r.left = r.top, r.top = I), r.width !== r.height && (I = r.width, r.width = r.height, r.height = I)), h.length && (a = ss(
|
|
4112
|
+
a,
|
|
4077
4113
|
'<g transform="' + h.join(" ") + '">',
|
|
4078
4114
|
"</g>"
|
|
4079
4115
|
));
|
|
4080
4116
|
});
|
|
4081
|
-
const
|
|
4117
|
+
const i = n.width, s = n.height, l = r.width, u = r.height;
|
|
4082
4118
|
let d, c;
|
|
4083
|
-
|
|
4084
|
-
const
|
|
4085
|
-
|
|
4119
|
+
i === null ? (c = s === null ? "1em" : s === "auto" ? u : s, d = hn(c, l / u)) : (d = i === "auto" ? l : i, c = s === null ? hn(d, u / l) : s === "auto" ? u : s);
|
|
4120
|
+
const p = {}, y = (m, h) => {
|
|
4121
|
+
ls(h) || (p[m] = h.toString());
|
|
4086
4122
|
};
|
|
4087
|
-
|
|
4088
|
-
const v = [r.left, r.top,
|
|
4089
|
-
return
|
|
4090
|
-
attributes:
|
|
4123
|
+
y("width", d), y("height", c);
|
|
4124
|
+
const v = [r.left, r.top, l, u];
|
|
4125
|
+
return p.viewBox = v.join(" "), {
|
|
4126
|
+
attributes: p,
|
|
4091
4127
|
viewBox: v,
|
|
4092
|
-
body:
|
|
4128
|
+
body: a
|
|
4093
4129
|
};
|
|
4094
4130
|
}
|
|
4095
|
-
const
|
|
4096
|
-
let
|
|
4097
|
-
function
|
|
4131
|
+
const cs = /\sid="(\S+)"/g, ds = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
4132
|
+
let fs = 0;
|
|
4133
|
+
function ms(e, t = ds) {
|
|
4098
4134
|
const o = [];
|
|
4099
4135
|
let n;
|
|
4100
|
-
for (; n =
|
|
4136
|
+
for (; n = cs.exec(e); )
|
|
4101
4137
|
o.push(n[1]);
|
|
4102
4138
|
if (!o.length)
|
|
4103
4139
|
return e;
|
|
4104
4140
|
const r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
4105
|
-
return o.forEach((
|
|
4106
|
-
const
|
|
4141
|
+
return o.forEach((a) => {
|
|
4142
|
+
const i = typeof t == "function" ? t(a) : t + (fs++).toString(), s = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4107
4143
|
e = e.replace(
|
|
4108
4144
|
// Allowed characters before id: [#;"]
|
|
4109
4145
|
// Allowed characters after id: [)"], .[a-z]
|
|
4110
4146
|
new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
|
|
4111
|
-
"$1" +
|
|
4147
|
+
"$1" + i + r + "$3"
|
|
4112
4148
|
);
|
|
4113
4149
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
4114
4150
|
}
|
|
4115
|
-
function
|
|
4151
|
+
function hs(e, t) {
|
|
4116
4152
|
let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
4117
4153
|
for (const n in t)
|
|
4118
4154
|
o += " " + n + '="' + t[n] + '"';
|
|
4119
4155
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
|
|
4120
4156
|
}
|
|
4121
|
-
function
|
|
4157
|
+
function ps(e) {
|
|
4122
4158
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
4123
4159
|
}
|
|
4124
|
-
function
|
|
4125
|
-
return "data:image/svg+xml," +
|
|
4160
|
+
function gs(e) {
|
|
4161
|
+
return "data:image/svg+xml," + ps(e);
|
|
4126
4162
|
}
|
|
4127
|
-
function
|
|
4128
|
-
return 'url("' +
|
|
4163
|
+
function ys(e) {
|
|
4164
|
+
return 'url("' + gs(e) + '")';
|
|
4129
4165
|
}
|
|
4130
4166
|
const pn = {
|
|
4131
|
-
...
|
|
4167
|
+
...rr,
|
|
4132
4168
|
inline: !1
|
|
4133
|
-
},
|
|
4169
|
+
}, vs = {
|
|
4134
4170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4135
4171
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
4136
4172
|
"aria-hidden": !0,
|
|
4137
4173
|
role: "img"
|
|
4138
|
-
},
|
|
4174
|
+
}, bs = {
|
|
4139
4175
|
display: "inline-block"
|
|
4140
4176
|
}, yo = {
|
|
4141
4177
|
backgroundColor: "currentColor"
|
|
4142
|
-
},
|
|
4178
|
+
}, ar = {
|
|
4143
4179
|
backgroundColor: "transparent"
|
|
4144
4180
|
}, gn = {
|
|
4145
4181
|
Image: "var(--svg)",
|
|
@@ -4148,7 +4184,7 @@ const pn = {
|
|
|
4148
4184
|
}, yn = {
|
|
4149
4185
|
webkitMask: yo,
|
|
4150
4186
|
mask: yo,
|
|
4151
|
-
background:
|
|
4187
|
+
background: ar
|
|
4152
4188
|
};
|
|
4153
4189
|
for (const e in yn) {
|
|
4154
4190
|
const t = yn[e];
|
|
@@ -4163,8 +4199,8 @@ const Ft = {};
|
|
|
4163
4199
|
function vn(e) {
|
|
4164
4200
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
4165
4201
|
}
|
|
4166
|
-
const
|
|
4167
|
-
const o =
|
|
4202
|
+
const ws = (e, t) => {
|
|
4203
|
+
const o = Qi(pn, t), n = { ...vs }, r = t.mode || "svg", a = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
4168
4204
|
for (let m in t) {
|
|
4169
4205
|
const h = t[m];
|
|
4170
4206
|
if (h !== void 0)
|
|
@@ -4184,15 +4220,15 @@ const vs = (e, t) => {
|
|
|
4184
4220
|
break;
|
|
4185
4221
|
// Flip as string: 'horizontal,vertical'
|
|
4186
4222
|
case "flip":
|
|
4187
|
-
typeof h == "string" &&
|
|
4223
|
+
typeof h == "string" && ts(o, h);
|
|
4188
4224
|
break;
|
|
4189
4225
|
// Color: override style
|
|
4190
4226
|
case "color":
|
|
4191
|
-
|
|
4227
|
+
a.color = h;
|
|
4192
4228
|
break;
|
|
4193
4229
|
// Rotation as string
|
|
4194
4230
|
case "rotate":
|
|
4195
|
-
typeof h == "string" ? o[m] =
|
|
4231
|
+
typeof h == "string" ? o[m] = os(h) : typeof h == "number" && (o[m] = h);
|
|
4196
4232
|
break;
|
|
4197
4233
|
// Remove aria-hidden
|
|
4198
4234
|
case "ariaHidden":
|
|
@@ -4205,36 +4241,36 @@ const vs = (e, t) => {
|
|
|
4205
4241
|
}
|
|
4206
4242
|
}
|
|
4207
4243
|
}
|
|
4208
|
-
const
|
|
4209
|
-
if (o.inline && (
|
|
4244
|
+
const l = us(e, o), u = l.attributes;
|
|
4245
|
+
if (o.inline && (a.verticalAlign = "-0.125em"), r === "svg") {
|
|
4210
4246
|
n.style = {
|
|
4211
|
-
...
|
|
4247
|
+
...a,
|
|
4212
4248
|
...s
|
|
4213
|
-
}, Object.assign(n,
|
|
4249
|
+
}, Object.assign(n, u);
|
|
4214
4250
|
let m = 0, h = t.id;
|
|
4215
|
-
return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML =
|
|
4251
|
+
return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML = ms(l.body, h ? () => h + "ID" + m++ : "iconifyVue"), Te("svg", n);
|
|
4216
4252
|
}
|
|
4217
|
-
const { body: d, width: c, height:
|
|
4218
|
-
...
|
|
4253
|
+
const { body: d, width: c, height: p } = e, y = r === "mask" || (r === "bg" ? !1 : d.indexOf("currentColor") !== -1), v = hs(d, {
|
|
4254
|
+
...u,
|
|
4219
4255
|
width: c + "",
|
|
4220
|
-
height:
|
|
4256
|
+
height: p + ""
|
|
4221
4257
|
});
|
|
4222
4258
|
return n.style = {
|
|
4223
|
-
...
|
|
4224
|
-
"--svg":
|
|
4225
|
-
width: vn(
|
|
4226
|
-
height: vn(
|
|
4227
|
-
...
|
|
4228
|
-
...
|
|
4259
|
+
...a,
|
|
4260
|
+
"--svg": ys(v),
|
|
4261
|
+
width: vn(u.width),
|
|
4262
|
+
height: vn(u.height),
|
|
4263
|
+
...bs,
|
|
4264
|
+
...y ? yo : ar,
|
|
4229
4265
|
...s
|
|
4230
4266
|
}, Te("span", n);
|
|
4231
4267
|
}, Po = /* @__PURE__ */ Object.create(null);
|
|
4232
|
-
function
|
|
4268
|
+
function Es(e, t) {
|
|
4233
4269
|
Po[e] = t;
|
|
4234
4270
|
}
|
|
4235
|
-
function
|
|
4271
|
+
function rl(e, t) {
|
|
4236
4272
|
const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
|
|
4237
|
-
|
|
4273
|
+
Zi(e) && Ki(e, (n, r) => {
|
|
4238
4274
|
r && (Po[o + n] = r);
|
|
4239
4275
|
});
|
|
4240
4276
|
}
|
|
@@ -4244,12 +4280,12 @@ const bn = ke({
|
|
|
4244
4280
|
// Render icon
|
|
4245
4281
|
render() {
|
|
4246
4282
|
const e = this.$attrs, t = e.icon, o = typeof t == "string" ? Po[t] : typeof t == "object" ? t : null;
|
|
4247
|
-
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
4283
|
+
return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : ws({
|
|
4248
4284
|
...Fo,
|
|
4249
4285
|
...o
|
|
4250
4286
|
}, e);
|
|
4251
4287
|
}
|
|
4252
|
-
}),
|
|
4288
|
+
}), Cs = ke({
|
|
4253
4289
|
name: "IconOffline",
|
|
4254
4290
|
components: { IconifyIcon: bn },
|
|
4255
4291
|
props: {
|
|
@@ -4258,7 +4294,7 @@ const bn = ke({
|
|
|
4258
4294
|
}
|
|
4259
4295
|
},
|
|
4260
4296
|
render() {
|
|
4261
|
-
typeof this.icon == "object" &&
|
|
4297
|
+
typeof this.icon == "object" && Es(this.icon, this.icon);
|
|
4262
4298
|
const e = this.$attrs;
|
|
4263
4299
|
return Te(
|
|
4264
4300
|
bn,
|
|
@@ -4275,7 +4311,7 @@ const bn = ke({
|
|
|
4275
4311
|
});
|
|
4276
4312
|
ke({
|
|
4277
4313
|
name: "IconifyIconOnline",
|
|
4278
|
-
components: { IconifyIcon:
|
|
4314
|
+
components: { IconifyIcon: $o },
|
|
4279
4315
|
props: {
|
|
4280
4316
|
icon: {
|
|
4281
4317
|
type: String,
|
|
@@ -4285,7 +4321,7 @@ ke({
|
|
|
4285
4321
|
render() {
|
|
4286
4322
|
const e = this.$attrs;
|
|
4287
4323
|
return Te(
|
|
4288
|
-
|
|
4324
|
+
$o,
|
|
4289
4325
|
{
|
|
4290
4326
|
icon: `${this.icon}`,
|
|
4291
4327
|
style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
|
|
@@ -4297,7 +4333,7 @@ ke({
|
|
|
4297
4333
|
);
|
|
4298
4334
|
}
|
|
4299
4335
|
});
|
|
4300
|
-
const
|
|
4336
|
+
const Ss = ke({
|
|
4301
4337
|
name: "FontIcon",
|
|
4302
4338
|
props: {
|
|
4303
4339
|
icon: {
|
|
@@ -4332,18 +4368,18 @@ const Es = ke({
|
|
|
4332
4368
|
...e
|
|
4333
4369
|
});
|
|
4334
4370
|
}
|
|
4335
|
-
}),
|
|
4371
|
+
}), Ds = Cs, Ts = Ss, xs = {
|
|
4336
4372
|
mounted(e, t) {
|
|
4337
4373
|
var n;
|
|
4338
4374
|
const { value: o } = t;
|
|
4339
4375
|
if (o) {
|
|
4340
|
-
const
|
|
4341
|
-
|
|
4376
|
+
const a = `${(n = U.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
|
|
4377
|
+
J().getButtonAuth.includes(a) || e.parentNode.removeChild(e);
|
|
4342
4378
|
} else
|
|
4343
4379
|
throw new Error(`need roles! Like v-auth="['admin','test']"`);
|
|
4344
4380
|
}
|
|
4345
4381
|
};
|
|
4346
|
-
function
|
|
4382
|
+
function ks(e) {
|
|
4347
4383
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
|
|
4348
4384
|
var n = e.get(t);
|
|
4349
4385
|
n ? n.push(o) : e.set(t, [o]);
|
|
@@ -4359,13 +4395,13 @@ function Ts(e) {
|
|
|
4359
4395
|
});
|
|
4360
4396
|
} };
|
|
4361
4397
|
}
|
|
4362
|
-
const
|
|
4398
|
+
const Is = ks(), wn = Br({
|
|
4363
4399
|
strategy: "scroll"
|
|
4364
|
-
}),
|
|
4400
|
+
}), Fs = {
|
|
4365
4401
|
mounted(e, t, o) {
|
|
4366
4402
|
wn.listenTo(e, (n) => {
|
|
4367
|
-
const r = n.offsetWidth,
|
|
4368
|
-
t != null && t.instance ?
|
|
4403
|
+
const r = n.offsetWidth, a = n.offsetHeight;
|
|
4404
|
+
t != null && t.instance ? Is.emit("resize", { detail: { width: r, height: a } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: r, height: a } }));
|
|
4369
4405
|
});
|
|
4370
4406
|
},
|
|
4371
4407
|
unmounted(e) {
|
|
@@ -4373,24 +4409,24 @@ const xs = Ts(), wn = Br({
|
|
|
4373
4409
|
}
|
|
4374
4410
|
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4375
4411
|
__proto__: null,
|
|
4376
|
-
auth:
|
|
4377
|
-
resize:
|
|
4378
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4379
|
-
|
|
4412
|
+
auth: xs,
|
|
4413
|
+
resize: Fs
|
|
4414
|
+
}, Symbol.toStringTag, { value: "Module" })), X = yr(ea);
|
|
4415
|
+
X.use(Lr, {
|
|
4380
4416
|
defaultProps: { animation: "perspective" }
|
|
4381
4417
|
});
|
|
4382
|
-
const
|
|
4383
|
-
e.config.globalProperties.$hasAuthority =
|
|
4384
|
-
},
|
|
4418
|
+
const Ps = (e) => {
|
|
4419
|
+
e.config.globalProperties.$hasAuthority = oi, e.config.globalProperties.$serviceApi = Ut(), e.config.globalProperties.$url = ge(), window.$i18n = On;
|
|
4420
|
+
}, _s = (e) => {
|
|
4385
4421
|
Object.keys(En).forEach((t) => {
|
|
4386
4422
|
e.directive(t, En[t]);
|
|
4387
4423
|
});
|
|
4388
|
-
},
|
|
4389
|
-
|
|
4424
|
+
}, al = ({ router: e, config: t, lang: o, views: n, env: r, tableConfig: a }) => (ja(n, e), X.use(e), Gr(e), Vr(X, t), Yr(r), Wa(a), new Promise((i) => {
|
|
4425
|
+
ya(X, o), X.component("IconifyIconOffline", Ds), X.component("FontIcon", Ts), X.component("UtGrid2", $i), X.component("UtForm2", Vi), Ps(X), Xr(ge()), _s(X), ta(X), ti(X, t), i({ app: X, router: e });
|
|
4390
4426
|
}));
|
|
4391
|
-
function
|
|
4427
|
+
function Os() {
|
|
4392
4428
|
const { $storage: e, $config: t } = xn(), o = () => {
|
|
4393
|
-
|
|
4429
|
+
Bn().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = ct), e != null && e.locale || (Bt().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
|
|
4394
4430
|
layout: (t == null ? void 0 : t.Layout) ?? "vertical",
|
|
4395
4431
|
theme: (t == null ? void 0 : t.Theme) ?? "default",
|
|
4396
4432
|
darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
|
|
@@ -4412,18 +4448,18 @@ function Ps() {
|
|
|
4412
4448
|
initStorage: o
|
|
4413
4449
|
};
|
|
4414
4450
|
}
|
|
4415
|
-
const
|
|
4451
|
+
const Ns = ut("udp-app", {
|
|
4416
4452
|
state: () => {
|
|
4417
4453
|
var e, t;
|
|
4418
4454
|
return {
|
|
4419
4455
|
sidebar: {
|
|
4420
|
-
opened: ((e = O.getItem(`${
|
|
4456
|
+
opened: ((e = O.getItem(`${$()}layout`)) == null ? void 0 : e.sidebarStatus) ?? le().SidebarStatus,
|
|
4421
4457
|
withoutAnimation: !1,
|
|
4422
4458
|
isClickCollapse: !1
|
|
4423
4459
|
},
|
|
4424
4460
|
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
|
4425
|
-
layout: ((t = O.getItem(`${
|
|
4426
|
-
device:
|
|
4461
|
+
layout: ((t = O.getItem(`${$()}layout`)) == null ? void 0 : t.layout) ?? le().Layout,
|
|
4462
|
+
device: kr() ? "mobile" : "desktop"
|
|
4427
4463
|
};
|
|
4428
4464
|
},
|
|
4429
4465
|
getters: {
|
|
@@ -4436,8 +4472,8 @@ const _s = ut("udp-app", {
|
|
|
4436
4472
|
},
|
|
4437
4473
|
actions: {
|
|
4438
4474
|
TOGGLE_SIDEBAR(e, t) {
|
|
4439
|
-
const o = O.getItem(`${
|
|
4440
|
-
o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), O.setItem(`${
|
|
4475
|
+
const o = O.getItem(`${$()}layout`);
|
|
4476
|
+
o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), O.setItem(`${$()}layout`, o));
|
|
4441
4477
|
},
|
|
4442
4478
|
async toggleSideBar(e, t) {
|
|
4443
4479
|
await this.TOGGLE_SIDEBAR(e, t);
|
|
@@ -4450,15 +4486,15 @@ const _s = ut("udp-app", {
|
|
|
4450
4486
|
}
|
|
4451
4487
|
}
|
|
4452
4488
|
});
|
|
4453
|
-
function
|
|
4454
|
-
return
|
|
4489
|
+
function Ms() {
|
|
4490
|
+
return Ns(Xe);
|
|
4455
4491
|
}
|
|
4456
|
-
const
|
|
4492
|
+
const Rs = ut("udp-epTheme", {
|
|
4457
4493
|
state: () => {
|
|
4458
4494
|
var e, t;
|
|
4459
4495
|
return {
|
|
4460
|
-
epThemeColor: ((e = O.getItem(`${
|
|
4461
|
-
epTheme: ((t = O.getItem(`${
|
|
4496
|
+
epThemeColor: ((e = O.getItem(`${$()}-layout`)) == null ? void 0 : e.epThemeColor) ?? le().EpThemeColor,
|
|
4497
|
+
epTheme: ((t = O.getItem(`${$()}-layout`)) == null ? void 0 : t.theme) ?? le().Theme
|
|
4462
4498
|
};
|
|
4463
4499
|
},
|
|
4464
4500
|
getters: {
|
|
@@ -4472,17 +4508,17 @@ const Ns = ut("udp-epTheme", {
|
|
|
4472
4508
|
},
|
|
4473
4509
|
actions: {
|
|
4474
4510
|
setEpThemeColor(e) {
|
|
4475
|
-
const t = O.getItem(`${
|
|
4476
|
-
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, O.setItem(`${
|
|
4511
|
+
const t = O.getItem(`${$()}layout`);
|
|
4512
|
+
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, O.setItem(`${$()}layout`, t));
|
|
4477
4513
|
}
|
|
4478
4514
|
}
|
|
4479
4515
|
});
|
|
4480
|
-
function
|
|
4481
|
-
return
|
|
4516
|
+
function ao() {
|
|
4517
|
+
return Rs(Xe);
|
|
4482
4518
|
}
|
|
4483
|
-
function
|
|
4484
|
-
var
|
|
4485
|
-
const { layoutTheme: e, layout: t } =
|
|
4519
|
+
function il() {
|
|
4520
|
+
var y, v;
|
|
4521
|
+
const { layoutTheme: e, layout: t } = Os(), o = Re([
|
|
4486
4522
|
/* 道奇蓝(默认) */
|
|
4487
4523
|
{ color: "#1b2a47", themeColor: "default" },
|
|
4488
4524
|
/* 亮白色 */
|
|
@@ -4501,13 +4537,13 @@ function nl() {
|
|
|
4501
4537
|
{ color: "#eb2f96", themeColor: "pink" },
|
|
4502
4538
|
/* 深紫罗兰色 */
|
|
4503
4539
|
{ color: "#722ed1", themeColor: "saucePurple" }
|
|
4504
|
-
]), { $storage: n } = xn(), r = Re((
|
|
4540
|
+
]), { $storage: n } = xn(), r = Re((y = n == null ? void 0 : n.layout) == null ? void 0 : y.darkMode), a = Re((v = n == null ? void 0 : n.layout) == null ? void 0 : v.overallStyle), i = document.documentElement;
|
|
4505
4541
|
function s(m, h, x) {
|
|
4506
4542
|
const C = x || document.body;
|
|
4507
4543
|
let { className: T } = C;
|
|
4508
4544
|
T = T.replace(h, "").trim(), C.className = m ? `${T} ${h}` : T;
|
|
4509
4545
|
}
|
|
4510
|
-
function
|
|
4546
|
+
function l(m = le().Theme ?? "default") {
|
|
4511
4547
|
var h, x;
|
|
4512
4548
|
if (e.value.theme = m, document.documentElement.setAttribute("data-theme", m), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${m}`), n.layout = {
|
|
4513
4549
|
layout: t.value,
|
|
@@ -4515,89 +4551,90 @@ function nl() {
|
|
|
4515
4551
|
darkMode: r.value,
|
|
4516
4552
|
sidebarStatus: (h = n.layout) == null ? void 0 : h.sidebarStatus,
|
|
4517
4553
|
epThemeColor: (x = n.layout) == null ? void 0 : x.epThemeColor,
|
|
4518
|
-
overallStyle:
|
|
4554
|
+
overallStyle: a.value
|
|
4519
4555
|
}, m === "default" || m === "light")
|
|
4520
|
-
d(
|
|
4556
|
+
d(le().EpThemeColor || "#409EFF");
|
|
4521
4557
|
else {
|
|
4522
4558
|
const C = o.value.find((T) => T.themeColor === m);
|
|
4523
4559
|
d(C.color);
|
|
4524
4560
|
}
|
|
4525
4561
|
}
|
|
4526
|
-
function
|
|
4562
|
+
function u(m, h, x) {
|
|
4527
4563
|
document.documentElement.style.setProperty(
|
|
4528
4564
|
`--el-color-primary-${m}-${h}`,
|
|
4529
|
-
r.value ?
|
|
4565
|
+
r.value ? ra(x, h / 10) : aa(x, h / 10)
|
|
4530
4566
|
);
|
|
4531
4567
|
}
|
|
4532
4568
|
const d = (m) => {
|
|
4533
|
-
|
|
4569
|
+
ao().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
|
|
4534
4570
|
for (let h = 1; h <= 2; h++)
|
|
4535
|
-
|
|
4571
|
+
u("dark", h, m);
|
|
4536
4572
|
for (let h = 1; h <= 9; h++)
|
|
4537
|
-
|
|
4573
|
+
u("light", h, m);
|
|
4538
4574
|
};
|
|
4539
4575
|
function c(m) {
|
|
4540
|
-
|
|
4576
|
+
a.value = m, ao().epTheme === "light" && r.value ? l("default") : l(ao().epTheme), Va(r.value ? "dark" : "light"), r.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
|
|
4541
4577
|
}
|
|
4542
|
-
function
|
|
4543
|
-
Ae.remove(
|
|
4544
|
-
const { Grey: m, Weak: h, MultiTagsCache: x, EpThemeColor: C, Layout: T } =
|
|
4545
|
-
|
|
4578
|
+
function p() {
|
|
4579
|
+
Ae.remove(Hr), Ae.remove($r), Ae.remove(In), O.clear(), Ir.clear();
|
|
4580
|
+
const { Grey: m, Weak: h, MultiTagsCache: x, EpThemeColor: C, Layout: T } = le();
|
|
4581
|
+
Ms().setLayout(T), d(C), ue().multiTagsCacheChange(x), s(m, "html-grey", document.querySelector("html")), s(h, "html-weakness", document.querySelector("html")), U.push("/login"), ue().handleTags("equal", [...ct]), za();
|
|
4546
4582
|
}
|
|
4547
4583
|
return {
|
|
4548
|
-
body:
|
|
4549
|
-
overallStyle:
|
|
4584
|
+
body: i,
|
|
4585
|
+
overallStyle: a,
|
|
4550
4586
|
dataTheme: r,
|
|
4551
4587
|
layoutTheme: e,
|
|
4552
4588
|
themeColors: o,
|
|
4553
|
-
onReset:
|
|
4589
|
+
onReset: p,
|
|
4554
4590
|
toggleClass: s,
|
|
4555
4591
|
dataThemeChange: c,
|
|
4556
4592
|
setEpThemeColor: d,
|
|
4557
|
-
setLayoutThemeColor:
|
|
4593
|
+
setLayoutThemeColor: l
|
|
4558
4594
|
};
|
|
4559
4595
|
}
|
|
4560
4596
|
export {
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4597
|
+
Os as A,
|
|
4598
|
+
ge as B,
|
|
4599
|
+
Zs as C,
|
|
4600
|
+
Ea as D,
|
|
4601
|
+
Xs as E,
|
|
4602
|
+
Ts as F,
|
|
4603
|
+
Gs as G,
|
|
4604
|
+
Ks as H,
|
|
4605
|
+
Ds as I,
|
|
4606
|
+
al as J,
|
|
4607
|
+
oi as K,
|
|
4608
|
+
oa as L,
|
|
4609
|
+
nl as M,
|
|
4610
|
+
tl as N,
|
|
4611
|
+
el as O,
|
|
4612
|
+
Qs as P,
|
|
4576
4613
|
Zr as _,
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4614
|
+
rl as a,
|
|
4615
|
+
Es as b,
|
|
4616
|
+
ue as c,
|
|
4617
|
+
Js as d,
|
|
4618
|
+
Ms as e,
|
|
4582
4619
|
Mn as f,
|
|
4583
|
-
|
|
4584
|
-
|
|
4620
|
+
le as g,
|
|
4621
|
+
J as h,
|
|
4585
4622
|
St as i,
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4623
|
+
Is as j,
|
|
4624
|
+
Wr as k,
|
|
4625
|
+
Ho as l,
|
|
4589
4626
|
ct as m,
|
|
4590
|
-
|
|
4591
|
-
|
|
4627
|
+
Hr as n,
|
|
4628
|
+
$r as o,
|
|
4592
4629
|
In as p,
|
|
4593
|
-
|
|
4594
|
-
|
|
4630
|
+
za as q,
|
|
4631
|
+
U as r,
|
|
4595
4632
|
Xe as s,
|
|
4596
4633
|
On as t,
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4634
|
+
ao as u,
|
|
4635
|
+
ol as v,
|
|
4636
|
+
Ut as w,
|
|
4637
|
+
$ as x,
|
|
4638
|
+
ka as y,
|
|
4639
|
+
il as z
|
|
4603
4640
|
};
|