morghulis 2.0.68 → 2.0.70
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/morghulis.es.js +326 -319
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +3 -3
- package/dist/morghulis.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +66 -1
package/dist/morghulis.es.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import
|
2
|
-
import { default as
|
3
|
-
import
|
1
|
+
import dn, { ElMessage as Ke, ElMessageBox as we } from "element-plus";
|
2
|
+
import { default as Vl } from "element-plus";
|
3
|
+
import jt from "axios";
|
4
4
|
import Pt from "nprogress";
|
5
5
|
import tt from "js-cookie";
|
6
6
|
import Pe from "lodash";
|
7
|
-
import { nanoid as
|
8
|
-
import { reactive as
|
9
|
-
import { library as
|
10
|
-
import { fas as
|
11
|
-
import { FontAwesomeIcon as
|
7
|
+
import { nanoid as Yn } from "nanoid";
|
8
|
+
import { reactive as fn, ref as j, watch as mt, defineComponent as ie, mergeDefaults as xt, useSlots as pn, computed as $, resolveComponent as N, resolveDirective as Mt, openBlock as A, createBlock as W, mergeProps as je, unref as v, withKeys as Ln, createSlots as Hn, withCtx as M, createElementVNode as pe, renderSlot as Q, createVNode as Y, createTextVNode as me, toDisplayString as he, createElementBlock as ae, Fragment as Be, createCommentVNode as te, withDirectives as Nt, renderList as rt, resolveDynamicComponent as mn, withModifiers as st, readonly as Un, getCurrentScope as Xn, onScopeDispose as zn, getCurrentInstance as jn, onMounted as hn, nextTick as Wn, onUnmounted as Gn } from "vue";
|
9
|
+
import { library as qn } from "@fortawesome/fontawesome-svg-core";
|
10
|
+
import { fas as Kn } from "@fortawesome/free-solid-svg-icons";
|
11
|
+
import { FontAwesomeIcon as Qn } from "@fortawesome/vue-fontawesome";
|
12
12
|
const Ye = {
|
13
13
|
info: (t) => Ke({ message: t, type: "info", grouping: !0 }),
|
14
14
|
success: (t) => Ke({ message: t, type: "success", grouping: !0 }),
|
@@ -25,7 +25,7 @@ const Ye = {
|
|
25
25
|
warning: (t, e) => we.confirm(t, e, { type: "warning" }),
|
26
26
|
error: (t, e) => we.confirm(t, e, { type: "error" })
|
27
27
|
};
|
28
|
-
function
|
28
|
+
function Jn() {
|
29
29
|
function t(l) {
|
30
30
|
const a = bt(l), i = yt(a), r = l.substring(l.indexOf(".") + 1);
|
31
31
|
return a === l ? i : Pe.get(i, r);
|
@@ -73,67 +73,67 @@ const De = {
|
|
73
73
|
CLIENT: "client",
|
74
74
|
USER: "uid",
|
75
75
|
AUTH: "auth"
|
76
|
-
}, { load:
|
77
|
-
function
|
78
|
-
let t =
|
79
|
-
t =
|
80
|
-
const e = () =>
|
76
|
+
}, { load: Zn, get: eo, remove: to, set: no } = Jn();
|
77
|
+
function gn() {
|
78
|
+
let t = Yn().replace(/-/g, "_");
|
79
|
+
t = Zn(De.CLIENT, t);
|
80
|
+
const e = () => eo(De.USER);
|
81
81
|
return { $client: t, user: e, check: (i) => e() === i, login: (i) => new Promise((r) => {
|
82
|
-
|
82
|
+
no(De.USER, i), r(i);
|
83
83
|
}), logout: () => new Promise((i) => {
|
84
|
-
|
84
|
+
to(De.USER), i(!0);
|
85
85
|
}), bearer: () => e() ? "Bearer 123" : null };
|
86
86
|
}
|
87
|
-
const { check:
|
88
|
-
function
|
87
|
+
const { check: oo, logout: vn, $client: lo, user: ao, bearer: io } = gn();
|
88
|
+
function bn(t = "/api/", e) {
|
89
89
|
function n(a) {
|
90
|
-
const i =
|
91
|
-
return
|
90
|
+
const i = jt.create({ baseURL: t, responseType: e });
|
91
|
+
return Wt(i);
|
92
92
|
}
|
93
93
|
function o(a = "/dfs/") {
|
94
|
-
const i =
|
95
|
-
return
|
94
|
+
const i = jt.create({ baseURL: a, responseType: "arraybuffer" });
|
95
|
+
return Wt(i);
|
96
96
|
}
|
97
97
|
function l() {
|
98
98
|
}
|
99
99
|
return { getRequest: n, getMinioRequest: o, all: l };
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function Wt(t, e) {
|
102
102
|
const { request: n, response: o } = t.interceptors;
|
103
|
-
return n.use((l) =>
|
103
|
+
return n.use((l) => ro(l), Gt), o.use(so, Gt), t;
|
104
104
|
}
|
105
|
-
function
|
106
|
-
return Pt.start(), t.headers[De.CLIENT] =
|
105
|
+
function ro(t, e) {
|
106
|
+
return Pt.start(), t.headers[De.CLIENT] = lo, t.headers[De.USER] = ao(), t.headers[De.AUTH] = io(), t;
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function so(t) {
|
109
109
|
Pt.done();
|
110
110
|
let { headers: e, data: n } = t;
|
111
111
|
const o = e[De.USER];
|
112
|
-
if (o && !
|
113
|
-
return
|
112
|
+
if (o && !oo(o))
|
113
|
+
return vn(), Promise.reject("登录已过期");
|
114
114
|
if (n && n.code !== void 0) {
|
115
115
|
const { code: l, message: a, result: i } = n;
|
116
116
|
if (l === 200)
|
117
117
|
return i;
|
118
|
-
const r =
|
118
|
+
const r = uo(l);
|
119
119
|
return Ye[r](a), Promise.reject(a);
|
120
120
|
}
|
121
121
|
return n;
|
122
122
|
}
|
123
|
-
function
|
123
|
+
function Gt(t) {
|
124
124
|
if (Pt.done(), t.response) {
|
125
125
|
const { status: e } = t.response;
|
126
|
-
e === 401 ? (
|
126
|
+
e === 401 ? (vn(), Ye.error("登录已过期")) : Ye.error(`请求错误: ${e}`);
|
127
127
|
} else
|
128
128
|
Ye.error(`网络错误: ${t.message}`);
|
129
129
|
return Promise.reject(t);
|
130
130
|
}
|
131
|
-
function
|
131
|
+
function uo(t) {
|
132
132
|
return t >= 200 && t < 300 ? "success" : t >= 300 && t < 400 ? "info" : t >= 400 && t < 500 ? "warning" : "error";
|
133
133
|
}
|
134
|
-
function
|
135
|
-
|
136
|
-
const e =
|
134
|
+
function co(t) {
|
135
|
+
gn();
|
136
|
+
const e = fn({});
|
137
137
|
let n = j("DISCONNECTED");
|
138
138
|
const o = j(""), l = () => {
|
139
139
|
n.value = "CONNECTED", console.log("WebSocket连接已打开");
|
@@ -153,10 +153,10 @@ function ro(t) {
|
|
153
153
|
channels: e
|
154
154
|
};
|
155
155
|
}
|
156
|
-
const
|
156
|
+
const yn = (t = {}) => {
|
157
157
|
const e = t.baseURL || "/api/";
|
158
158
|
t.timeout, t.headers;
|
159
|
-
const { getRequest: n } =
|
159
|
+
const { getRequest: n } = bn(e), o = n(), l = co();
|
160
160
|
return {
|
161
161
|
// 发送消息
|
162
162
|
send: (a, i) => (console.log(`发送消息: ${a}`, i), o.post(a, i)),
|
@@ -173,7 +173,7 @@ const hn = (t = {}) => {
|
|
173
173
|
sockets: l
|
174
174
|
};
|
175
175
|
};
|
176
|
-
var
|
176
|
+
var En = {
|
177
177
|
name: "zh-cn",
|
178
178
|
el: {
|
179
179
|
breadcrumb: {
|
@@ -351,7 +351,7 @@ var gn = {
|
|
351
351
|
}
|
352
352
|
}
|
353
353
|
};
|
354
|
-
const
|
354
|
+
const fo = {
|
355
355
|
title: "对话框",
|
356
356
|
width: 600,
|
357
357
|
fullscreen: !1,
|
@@ -378,11 +378,11 @@ const so = {
|
|
378
378
|
closeIcon: "close",
|
379
379
|
confirmButtonText: "确认",
|
380
380
|
cancelButtonText: "取消"
|
381
|
-
},
|
381
|
+
}, po = {
|
382
382
|
class: "mor-dialog-body",
|
383
383
|
"element-loading-background": "rgba(0,0,0,0.1)",
|
384
384
|
"element-loading-text": "加载中..."
|
385
|
-
},
|
385
|
+
}, Rt = /* @__PURE__ */ ie({
|
386
386
|
__name: "MDialog",
|
387
387
|
props: /* @__PURE__ */ xt({
|
388
388
|
modelValue: { type: Boolean },
|
@@ -417,11 +417,11 @@ const so = {
|
|
417
417
|
cancel: { type: Function },
|
418
418
|
confirmButtonText: {},
|
419
419
|
cancelButtonText: {}
|
420
|
-
},
|
420
|
+
}, fo),
|
421
421
|
emits: ["close", "update:title", "update:subTitle", "update:modelValue"],
|
422
422
|
setup(t, { expose: e, emit: n }) {
|
423
423
|
let o = n, l = t;
|
424
|
-
const a =
|
424
|
+
const a = pn(), i = $(() => !!a.header), r = $(() => !!a.footer), s = r.value || !!l.confirm, u = j(!1), c = j({}), d = j(""), p = j(""), h = $({
|
425
425
|
get: () => l.title,
|
426
426
|
set: (m) => {
|
427
427
|
o("update:title", m), d.value = m || "对话框";
|
@@ -454,15 +454,15 @@ const so = {
|
|
454
454
|
u.value = !0, l.cancel ? l.cancel(c.value, F) : F();
|
455
455
|
}
|
456
456
|
return e({ open: T, close: F }), (m, D) => {
|
457
|
-
const I = N("el-text"), R = N("el-divider"), P = N("fa"), G = N("el-button"),
|
457
|
+
const I = N("el-text"), R = N("el-divider"), P = N("fa"), G = N("el-button"), O = N("el-space"), q = N("el-dialog"), x = Mt("loading");
|
458
458
|
return A(), W(q, je({
|
459
459
|
class: "mor-dialog",
|
460
460
|
modelValue: C.value,
|
461
461
|
"onUpdate:modelValue": D[0] || (D[0] = (L) => C.value = L)
|
462
462
|
}, { ...m.$props, ...m.$attrs }, {
|
463
463
|
onClose: D[1] || (D[1] = (L) => v(o)("close")),
|
464
|
-
onKeydown: D[2] || (D[2] =
|
465
|
-
}),
|
464
|
+
onKeydown: D[2] || (D[2] = Ln((L) => E(), ["esc"]))
|
465
|
+
}), Hn({
|
466
466
|
header: M(() => [
|
467
467
|
pe("div", null, [
|
468
468
|
Q(m.$slots, "title", { data: c.value }, () => [
|
@@ -477,7 +477,7 @@ const so = {
|
|
477
477
|
})
|
478
478
|
]),
|
479
479
|
Q(m.$slots, "sub-title", { data: c.value }, () => [
|
480
|
-
g.value ? (A(), ae(
|
480
|
+
g.value ? (A(), ae(Be, { key: 0 }, [
|
481
481
|
Y(R, { direction: "vertical" }),
|
482
482
|
Y(I, {
|
483
483
|
tag: "b",
|
@@ -492,7 +492,7 @@ const so = {
|
|
492
492
|
])
|
493
493
|
]),
|
494
494
|
pe("div", null, [
|
495
|
-
i.value ? (A(), ae(
|
495
|
+
i.value ? (A(), ae(Be, { key: 0 }, [
|
496
496
|
Q(m.$slots, "header", { data: c.value }),
|
497
497
|
Y(R, { direction: "vertical" })
|
498
498
|
], 64)) : te("", !0),
|
@@ -511,7 +511,7 @@ const so = {
|
|
511
511
|
])
|
512
512
|
]),
|
513
513
|
default: M(() => [
|
514
|
-
Nt((A(), ae("div",
|
514
|
+
Nt((A(), ae("div", po, [
|
515
515
|
Q(m.$slots, "default", { data: c.value })
|
516
516
|
])), [
|
517
517
|
[x, u.value]
|
@@ -522,7 +522,7 @@ const so = {
|
|
522
522
|
v(s) ? {
|
523
523
|
name: "footer",
|
524
524
|
fn: M(() => [
|
525
|
-
Y(
|
525
|
+
Y(O, null, {
|
526
526
|
default: M(() => [
|
527
527
|
r.value ? Q(m.$slots, "footer", {
|
528
528
|
key: 0,
|
@@ -532,7 +532,7 @@ const so = {
|
|
532
532
|
]),
|
533
533
|
_: 3
|
534
534
|
}),
|
535
|
-
m.confirm ? (A(), W(
|
535
|
+
m.confirm ? (A(), W(O, { key: 0 }, {
|
536
536
|
default: M(() => [
|
537
537
|
Y(G, {
|
538
538
|
type: "success",
|
@@ -564,7 +564,7 @@ const so = {
|
|
564
564
|
};
|
565
565
|
}
|
566
566
|
});
|
567
|
-
const
|
567
|
+
const mo = /* @__PURE__ */ ie({
|
568
568
|
__name: "BooleanCell",
|
569
569
|
props: {
|
570
570
|
modelValue: {},
|
@@ -615,7 +615,7 @@ const co = /* @__PURE__ */ ie({
|
|
615
615
|
}, 8, ["modelValue", "disabled"]));
|
616
616
|
};
|
617
617
|
}
|
618
|
-
}),
|
618
|
+
}), ho = /* @__PURE__ */ ie({
|
619
619
|
__name: "NumberCell",
|
620
620
|
props: {
|
621
621
|
modelValue: {},
|
@@ -652,7 +652,7 @@ const co = /* @__PURE__ */ ie({
|
|
652
652
|
}, null, 8, ["modelValue", "disabled", "clearable", "min", "max", "step", "precision", "step-strictly", "value-on-clear"]);
|
653
653
|
};
|
654
654
|
}
|
655
|
-
}),
|
655
|
+
}), go = /* @__PURE__ */ ie({
|
656
656
|
__name: "CharCell",
|
657
657
|
props: {
|
658
658
|
modelValue: {},
|
@@ -680,7 +680,7 @@ const co = /* @__PURE__ */ ie({
|
|
680
680
|
}, null, 8, ["modelValue", "disabled", "type", "maxlength", "clearable"]);
|
681
681
|
};
|
682
682
|
}
|
683
|
-
}),
|
683
|
+
}), vo = /* @__PURE__ */ ie({
|
684
684
|
__name: "DefaultCell",
|
685
685
|
props: {
|
686
686
|
modelValue: {},
|
@@ -703,7 +703,7 @@ const co = /* @__PURE__ */ ie({
|
|
703
703
|
}, null, 8, ["modelValue", "disabled", "placeholder"]);
|
704
704
|
};
|
705
705
|
}
|
706
|
-
}),
|
706
|
+
}), bo = /* @__PURE__ */ ie({
|
707
707
|
__name: "SelectCell",
|
708
708
|
props: {
|
709
709
|
modelValue: {},
|
@@ -737,7 +737,7 @@ const co = /* @__PURE__ */ ie({
|
|
737
737
|
"check-strictly": (C = r.field.refer) == null ? void 0 : C.strict
|
738
738
|
}, {
|
739
739
|
default: M(() => [
|
740
|
-
(A(!0), ae(
|
740
|
+
(A(!0), ae(Be, null, rt(i.value, (T) => (A(), W(u, {
|
741
741
|
key: T.value,
|
742
742
|
label: T.label,
|
743
743
|
value: T.value
|
@@ -749,7 +749,7 @@ const co = /* @__PURE__ */ ie({
|
|
749
749
|
]);
|
750
750
|
};
|
751
751
|
}
|
752
|
-
}),
|
752
|
+
}), yo = /* @__PURE__ */ ie({
|
753
753
|
__name: "DateCell",
|
754
754
|
props: {
|
755
755
|
modelValue: {},
|
@@ -779,7 +779,7 @@ const co = /* @__PURE__ */ ie({
|
|
779
779
|
}, null, 8, ["modelValue", "disabled", "clearable", "type", "value-format"]);
|
780
780
|
};
|
781
781
|
}
|
782
|
-
}),
|
782
|
+
}), Eo = /* @__PURE__ */ ie({
|
783
783
|
__name: "TimeCell",
|
784
784
|
props: {
|
785
785
|
modelValue: {},
|
@@ -806,32 +806,32 @@ const co = /* @__PURE__ */ ie({
|
|
806
806
|
};
|
807
807
|
}
|
808
808
|
});
|
809
|
-
function
|
810
|
-
return { component:
|
809
|
+
function _o(t) {
|
810
|
+
return { component: wo(t.domain) };
|
811
811
|
}
|
812
|
-
function
|
812
|
+
function wo(t) {
|
813
813
|
switch (t) {
|
814
814
|
case "BooleanField":
|
815
|
-
return
|
815
|
+
return mo;
|
816
816
|
case "IntegerField":
|
817
817
|
case "FloatField":
|
818
|
-
return
|
818
|
+
return ho;
|
819
819
|
case "TextField":
|
820
820
|
case "CharField":
|
821
|
-
return
|
821
|
+
return go;
|
822
822
|
case "ManyToManyRel":
|
823
823
|
case "ManyToOneRel":
|
824
|
-
return
|
824
|
+
return bo;
|
825
825
|
case "DateField":
|
826
826
|
case "DateTimeField":
|
827
|
-
return
|
827
|
+
return yo;
|
828
828
|
case "TimeField":
|
829
|
-
return
|
829
|
+
return Eo;
|
830
830
|
default:
|
831
|
-
return
|
831
|
+
return vo;
|
832
832
|
}
|
833
833
|
}
|
834
|
-
const
|
834
|
+
const _n = /* @__PURE__ */ ie({
|
835
835
|
__name: "MCell",
|
836
836
|
props: {
|
837
837
|
field: {},
|
@@ -839,15 +839,15 @@ const Eo = /* @__PURE__ */ ie({
|
|
839
839
|
disabled: { type: Boolean }
|
840
840
|
},
|
841
841
|
setup(t) {
|
842
|
-
const e = t, n = $(() => e.field.prop), { component: o } =
|
843
|
-
return (l, a) => (A(), W(
|
842
|
+
const e = t, n = $(() => e.field.prop), { component: o } = _o(e.field);
|
843
|
+
return (l, a) => (A(), W(mn(v(o)), {
|
844
844
|
modelValue: l.bean[n.value],
|
845
845
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => l.bean[n.value] = i),
|
846
846
|
field: l.field,
|
847
847
|
disabled: l.disabled
|
848
848
|
}, null, 8, ["modelValue", "field", "disabled"]));
|
849
849
|
}
|
850
|
-
}),
|
850
|
+
}), Do = {
|
851
851
|
border: !0,
|
852
852
|
fit: !0,
|
853
853
|
showHeader: !0,
|
@@ -856,7 +856,7 @@ const Eo = /* @__PURE__ */ ie({
|
|
856
856
|
showOverflowTooltip: !0
|
857
857
|
// currentRowKey: 'id',
|
858
858
|
// rowKey: 'id'
|
859
|
-
},
|
859
|
+
}, Co = { class: "justified" }, $t = /* @__PURE__ */ ie({
|
860
860
|
__name: "MTableHeader",
|
861
861
|
props: {
|
862
862
|
view: {},
|
@@ -868,7 +868,7 @@ const Eo = /* @__PURE__ */ ie({
|
|
868
868
|
const n = e;
|
869
869
|
return (o, l) => {
|
870
870
|
const a = N("el-text"), i = N("el-tooltip"), r = N("fa"), s = N("el-button");
|
871
|
-
return A(), ae("div",
|
871
|
+
return A(), ae("div", Co, [
|
872
872
|
Y(i, {
|
873
873
|
content: o.field.label,
|
874
874
|
placement: "bottom",
|
@@ -914,7 +914,7 @@ const Eo = /* @__PURE__ */ ie({
|
|
914
914
|
* @author owenm <owen23355@gmail.com>
|
915
915
|
* @license MIT
|
916
916
|
*/
|
917
|
-
function
|
917
|
+
function qt(t, e) {
|
918
918
|
var n = Object.keys(t);
|
919
919
|
if (Object.getOwnPropertySymbols) {
|
920
920
|
var o = Object.getOwnPropertySymbols(t);
|
@@ -927,9 +927,9 @@ function zt(t, e) {
|
|
927
927
|
function fe(t) {
|
928
928
|
for (var e = 1; e < arguments.length; e++) {
|
929
929
|
var n = arguments[e] != null ? arguments[e] : {};
|
930
|
-
e % 2 ?
|
931
|
-
|
932
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
930
|
+
e % 2 ? qt(Object(n), !0).forEach(function(o) {
|
931
|
+
So(t, o, n[o]);
|
932
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : qt(Object(n)).forEach(function(o) {
|
933
933
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
934
934
|
});
|
935
935
|
}
|
@@ -943,7 +943,7 @@ function nt(t) {
|
|
943
943
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
944
944
|
}, nt(t);
|
945
945
|
}
|
946
|
-
function
|
946
|
+
function So(t, e, n) {
|
947
947
|
return e in t ? Object.defineProperty(t, e, {
|
948
948
|
value: n,
|
949
949
|
enumerable: !0,
|
@@ -961,7 +961,7 @@ function ve() {
|
|
961
961
|
return t;
|
962
962
|
}, ve.apply(this, arguments);
|
963
963
|
}
|
964
|
-
function
|
964
|
+
function To(t, e) {
|
965
965
|
if (t == null)
|
966
966
|
return {};
|
967
967
|
var n = {}, o = Object.keys(t), l, a;
|
@@ -969,10 +969,10 @@ function Co(t, e) {
|
|
969
969
|
l = o[a], !(e.indexOf(l) >= 0) && (n[l] = t[l]);
|
970
970
|
return n;
|
971
971
|
}
|
972
|
-
function
|
972
|
+
function Fo(t, e) {
|
973
973
|
if (t == null)
|
974
974
|
return {};
|
975
|
-
var n =
|
975
|
+
var n = To(t, e), o, l;
|
976
976
|
if (Object.getOwnPropertySymbols) {
|
977
977
|
var a = Object.getOwnPropertySymbols(t);
|
978
978
|
for (l = 0; l < a.length; l++)
|
@@ -980,20 +980,20 @@ function So(t, e) {
|
|
980
980
|
}
|
981
981
|
return n;
|
982
982
|
}
|
983
|
-
var
|
983
|
+
var Bo = "1.15.6";
|
984
984
|
function ge(t) {
|
985
985
|
if (typeof window < "u" && window.navigator)
|
986
986
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
987
987
|
}
|
988
|
-
var be = ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), We = ge(/Edge/i),
|
988
|
+
var be = ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), We = ge(/Edge/i), Kt = ge(/firefox/i), Le = ge(/safari/i) && !ge(/chrome/i) && !ge(/android/i), Vt = ge(/iP(ad|od|hone)/i), wn = ge(/chrome/i) && ge(/android/i), Dn = {
|
989
989
|
capture: !1,
|
990
990
|
passive: !1
|
991
991
|
};
|
992
992
|
function k(t, e, n) {
|
993
|
-
t.addEventListener(e, n, !be &&
|
993
|
+
t.addEventListener(e, n, !be && Dn);
|
994
994
|
}
|
995
|
-
function
|
996
|
-
t.removeEventListener(e, n, !be &&
|
995
|
+
function B(t, e, n) {
|
996
|
+
t.removeEventListener(e, n, !be && Dn);
|
997
997
|
}
|
998
998
|
function ut(t, e) {
|
999
999
|
if (e) {
|
@@ -1011,7 +1011,7 @@ function ut(t, e) {
|
|
1011
1011
|
return !1;
|
1012
1012
|
}
|
1013
1013
|
}
|
1014
|
-
function
|
1014
|
+
function Cn(t) {
|
1015
1015
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
1016
1016
|
}
|
1017
1017
|
function ce(t, e, n, o) {
|
@@ -1022,18 +1022,18 @@ function ce(t, e, n, o) {
|
|
1022
1022
|
return t;
|
1023
1023
|
if (t === n)
|
1024
1024
|
break;
|
1025
|
-
} while (t =
|
1025
|
+
} while (t = Cn(t));
|
1026
1026
|
}
|
1027
1027
|
return null;
|
1028
1028
|
}
|
1029
|
-
var
|
1029
|
+
var Qt = /\s+/g;
|
1030
1030
|
function oe(t, e, n) {
|
1031
1031
|
if (t && e)
|
1032
1032
|
if (t.classList)
|
1033
1033
|
t.classList[n ? "add" : "remove"](e);
|
1034
1034
|
else {
|
1035
|
-
var o = (" " + t.className + " ").replace(
|
1036
|
-
t.className = (o + (n ? " " + e : "")).replace(
|
1035
|
+
var o = (" " + t.className + " ").replace(Qt, " ").replace(" " + e + " ", " ");
|
1036
|
+
t.className = (o + (n ? " " + e : "")).replace(Qt, " ");
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
1039
|
function b(t, e, n) {
|
@@ -1056,7 +1056,7 @@ function xe(t, e) {
|
|
1056
1056
|
var l = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
1057
1057
|
return l && new l(n);
|
1058
1058
|
}
|
1059
|
-
function
|
1059
|
+
function Sn(t, e, n) {
|
1060
1060
|
if (t) {
|
1061
1061
|
var o = t.getElementsByTagName(e), l = 0, a = o.length;
|
1062
1062
|
if (n)
|
@@ -1095,7 +1095,7 @@ function z(t, e, n, o, l) {
|
|
1095
1095
|
};
|
1096
1096
|
}
|
1097
1097
|
}
|
1098
|
-
function
|
1098
|
+
function Jt(t, e, n) {
|
1099
1099
|
for (var o = Ce(t, !0), l = z(t)[e]; o; ) {
|
1100
1100
|
var a = z(o)[n], i = void 0;
|
1101
1101
|
if (n === "top" || n === "left" ? i = l >= a : i = l <= a, !i)
|
@@ -1117,7 +1117,7 @@ function Me(t, e, n, o) {
|
|
1117
1117
|
}
|
1118
1118
|
return null;
|
1119
1119
|
}
|
1120
|
-
function
|
1120
|
+
function Yt(t, e) {
|
1121
1121
|
for (var n = t.lastElementChild; n && (n === y.ghost || b(n, "display") === "none" || e && !ut(n, e)); )
|
1122
1122
|
n = n.previousElementSibling;
|
1123
1123
|
return n || null;
|
@@ -1130,7 +1130,7 @@ function se(t, e) {
|
|
1130
1130
|
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== y.clone && (!e || ut(t, e)) && n++;
|
1131
1131
|
return n;
|
1132
1132
|
}
|
1133
|
-
function
|
1133
|
+
function Zt(t) {
|
1134
1134
|
var e = 0, n = 0, o = de();
|
1135
1135
|
if (t)
|
1136
1136
|
do {
|
@@ -1139,7 +1139,7 @@ function qt(t) {
|
|
1139
1139
|
} while (t !== o && (t = t.parentNode));
|
1140
1140
|
return [e, n];
|
1141
1141
|
}
|
1142
|
-
function
|
1142
|
+
function Oo(t, e) {
|
1143
1143
|
for (var n in t)
|
1144
1144
|
if (t.hasOwnProperty(n)) {
|
1145
1145
|
for (var o in e)
|
@@ -1166,7 +1166,7 @@ function Ce(t, e) {
|
|
1166
1166
|
while (n = n.parentNode);
|
1167
1167
|
return de();
|
1168
1168
|
}
|
1169
|
-
function
|
1169
|
+
function ko(t, e) {
|
1170
1170
|
if (t && e)
|
1171
1171
|
for (var n in e)
|
1172
1172
|
e.hasOwnProperty(n) && (t[n] = e[n]);
|
@@ -1176,7 +1176,7 @@ function Et(t, e) {
|
|
1176
1176
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
1177
1177
|
}
|
1178
1178
|
var He;
|
1179
|
-
function
|
1179
|
+
function Tn(t, e) {
|
1180
1180
|
return function() {
|
1181
1181
|
if (!He) {
|
1182
1182
|
var n = arguments, o = this;
|
@@ -1186,17 +1186,17 @@ function Dn(t, e) {
|
|
1186
1186
|
}
|
1187
1187
|
};
|
1188
1188
|
}
|
1189
|
-
function
|
1189
|
+
function Io() {
|
1190
1190
|
clearTimeout(He), He = void 0;
|
1191
1191
|
}
|
1192
|
-
function
|
1192
|
+
function Fn(t, e, n) {
|
1193
1193
|
t.scrollLeft += e, t.scrollTop += n;
|
1194
1194
|
}
|
1195
|
-
function
|
1195
|
+
function Bn(t) {
|
1196
1196
|
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
1197
1197
|
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
1198
1198
|
}
|
1199
|
-
function
|
1199
|
+
function On(t, e, n) {
|
1200
1200
|
var o = {};
|
1201
1201
|
return Array.from(t.children).forEach(function(l) {
|
1202
1202
|
var a, i, r, s;
|
@@ -1207,7 +1207,7 @@ function Tn(t, e, n) {
|
|
1207
1207
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
1208
1208
|
}
|
1209
1209
|
var ne = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
1210
|
-
function
|
1210
|
+
function Ao() {
|
1211
1211
|
var t = [], e;
|
1212
1212
|
return {
|
1213
1213
|
captureAnimationState: function() {
|
@@ -1233,7 +1233,7 @@ function ko() {
|
|
1233
1233
|
t.push(o);
|
1234
1234
|
},
|
1235
1235
|
removeAnimationState: function(o) {
|
1236
|
-
t.splice(
|
1236
|
+
t.splice(Oo(t, {
|
1237
1237
|
target: o
|
1238
1238
|
}), 1);
|
1239
1239
|
},
|
@@ -1247,7 +1247,7 @@ function ko() {
|
|
1247
1247
|
t.forEach(function(r) {
|
1248
1248
|
var s = 0, u = r.target, c = u.fromRect, d = z(u), p = u.prevFromRect, h = u.prevToRect, g = r.rect, w = xe(u, !0);
|
1249
1249
|
w && (d.top -= w.f, d.left -= w.e), u.toRect = d, u.thisAnimationDuration && Et(p, d) && !Et(c, d) && // Make sure animatingRect is on line between toRect & fromRect
|
1250
|
-
(g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (s =
|
1250
|
+
(g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (s = xo(g, p, h, l.options)), Et(d, c) || (u.prevFromRect = c, u.prevToRect = d, s || (s = l.options.animation), l.animate(u, g, d, s)), s && (a = !0, i = Math.max(i, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
1251
1251
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
1252
1252
|
}, s), u.thisAnimationDuration = s);
|
1253
1253
|
}), clearTimeout(e), a ? e = setTimeout(function() {
|
@@ -1258,29 +1258,29 @@ function ko() {
|
|
1258
1258
|
if (i) {
|
1259
1259
|
b(o, "transition", ""), b(o, "transform", "");
|
1260
1260
|
var r = xe(this.el), s = r && r.a, u = r && r.d, c = (l.left - a.left) / (s || 1), d = (l.top - a.top) / (u || 1);
|
1261
|
-
o.animatingX = !!c, o.animatingY = !!d, b(o, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy =
|
1261
|
+
o.animatingX = !!c, o.animatingY = !!d, b(o, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = Po(o), b(o, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
1262
1262
|
b(o, "transition", ""), b(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
1263
1263
|
}, i);
|
1264
1264
|
}
|
1265
1265
|
}
|
1266
1266
|
};
|
1267
1267
|
}
|
1268
|
-
function
|
1268
|
+
function Po(t) {
|
1269
1269
|
return t.offsetWidth;
|
1270
1270
|
}
|
1271
|
-
function
|
1271
|
+
function xo(t, e, n, o) {
|
1272
1272
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
1273
1273
|
}
|
1274
|
-
var
|
1274
|
+
var Oe = [], _t = {
|
1275
1275
|
initializeByDefault: !0
|
1276
1276
|
}, Ge = {
|
1277
1277
|
mount: function(e) {
|
1278
1278
|
for (var n in _t)
|
1279
1279
|
_t.hasOwnProperty(n) && !(n in e) && (e[n] = _t[n]);
|
1280
|
-
|
1280
|
+
Oe.forEach(function(o) {
|
1281
1281
|
if (o.pluginName === e.pluginName)
|
1282
1282
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
1283
|
-
}),
|
1283
|
+
}), Oe.push(e);
|
1284
1284
|
},
|
1285
1285
|
pluginEvent: function(e, n, o) {
|
1286
1286
|
var l = this;
|
@@ -1288,7 +1288,7 @@ var Be = [], _t = {
|
|
1288
1288
|
l.eventCanceled = !0;
|
1289
1289
|
};
|
1290
1290
|
var a = e + "Global";
|
1291
|
-
|
1291
|
+
Oe.forEach(function(i) {
|
1292
1292
|
n[i.pluginName] && (n[i.pluginName][a] && n[i.pluginName][a](fe({
|
1293
1293
|
sortable: n
|
1294
1294
|
}, o)), n.options[i.pluginName] && n[i.pluginName][e] && n[i.pluginName][e](fe({
|
@@ -1297,7 +1297,7 @@ var Be = [], _t = {
|
|
1297
1297
|
});
|
1298
1298
|
},
|
1299
1299
|
initializePlugins: function(e, n, o, l) {
|
1300
|
-
|
1300
|
+
Oe.forEach(function(r) {
|
1301
1301
|
var s = r.pluginName;
|
1302
1302
|
if (!(!e.options[s] && !r.initializeByDefault)) {
|
1303
1303
|
var u = new r(e, n, e.options);
|
@@ -1312,18 +1312,18 @@ var Be = [], _t = {
|
|
1312
1312
|
},
|
1313
1313
|
getEventProperties: function(e, n) {
|
1314
1314
|
var o = {};
|
1315
|
-
return
|
1315
|
+
return Oe.forEach(function(l) {
|
1316
1316
|
typeof l.eventProperties == "function" && ve(o, l.eventProperties.call(n[l.pluginName], e));
|
1317
1317
|
}), o;
|
1318
1318
|
},
|
1319
1319
|
modifyOption: function(e, n, o) {
|
1320
1320
|
var l;
|
1321
|
-
return
|
1321
|
+
return Oe.forEach(function(a) {
|
1322
1322
|
e[a.pluginName] && a.optionListeners && typeof a.optionListeners[n] == "function" && (l = a.optionListeners[n].call(e[a.pluginName], o));
|
1323
1323
|
}), l;
|
1324
1324
|
}
|
1325
1325
|
};
|
1326
|
-
function
|
1326
|
+
function Mo(t) {
|
1327
1327
|
var e = t.sortable, n = t.rootEl, o = t.name, l = t.targetEl, a = t.cloneEl, i = t.toEl, r = t.fromEl, s = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, d = t.newDraggableIndex, p = t.originalEvent, h = t.putSortable, g = t.extraEventProperties;
|
1328
1328
|
if (e = e || n && n[ne], !!e) {
|
1329
1329
|
var w, C = e.options, T = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
@@ -1337,8 +1337,8 @@ function Po(t) {
|
|
1337
1337
|
n && n.dispatchEvent(w), C[T] && C[T].call(e, w);
|
1338
1338
|
}
|
1339
1339
|
}
|
1340
|
-
var
|
1341
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = o.evt, a =
|
1340
|
+
var No = ["evt"], ee = function(e, n) {
|
1341
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = o.evt, a = Fo(o, No);
|
1342
1342
|
Ge.pluginEvent.bind(y)(e, n, fe({
|
1343
1343
|
dragEl: f,
|
1344
1344
|
parentEl: U,
|
@@ -1356,8 +1356,8 @@ var xo = ["evt"], ee = function(e, n) {
|
|
1356
1356
|
oldDraggableIndex: Ue,
|
1357
1357
|
newIndex: le,
|
1358
1358
|
newDraggableIndex: Ee,
|
1359
|
-
hideGhostForTarget:
|
1360
|
-
unhideGhostForTarget:
|
1359
|
+
hideGhostForTarget: Pn,
|
1360
|
+
unhideGhostForTarget: xn,
|
1361
1361
|
cloneNowHidden: function() {
|
1362
1362
|
_e = !0;
|
1363
1363
|
},
|
@@ -1374,7 +1374,7 @@ var xo = ["evt"], ee = function(e, n) {
|
|
1374
1374
|
}, a));
|
1375
1375
|
};
|
1376
1376
|
function Z(t) {
|
1377
|
-
|
1377
|
+
Mo(fe({
|
1378
1378
|
putSortable: K,
|
1379
1379
|
cloneEl: H,
|
1380
1380
|
targetEl: f,
|
@@ -1385,14 +1385,14 @@ function Z(t) {
|
|
1385
1385
|
newDraggableIndex: Ee
|
1386
1386
|
}, t));
|
1387
1387
|
}
|
1388
|
-
var f, U, _, V, Fe, ot, H, _e, Ae, le, Ue, Ee, Qe, K, Ie = !1, ct = !1, dt = [], Se, ue, wt, Dt,
|
1388
|
+
var f, U, _, V, Fe, ot, H, _e, Ae, le, Ue, Ee, Qe, K, Ie = !1, ct = !1, dt = [], Se, ue, wt, Dt, en, tn, Re, ke, Xe, ze = !1, Je = !1, lt, J, Ct = [], Ot = !1, ft = [], ht = typeof document < "u", Ze = Vt, nn = We || be ? "cssFloat" : "float", Ro = ht && !wn && !Vt && "draggable" in document.createElement("div"), kn = function() {
|
1389
1389
|
if (ht) {
|
1390
1390
|
if (be)
|
1391
1391
|
return !1;
|
1392
1392
|
var t = document.createElement("x");
|
1393
1393
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
1394
1394
|
}
|
1395
|
-
}(),
|
1395
|
+
}(), In = function(e, n) {
|
1396
1396
|
var o = b(e), l = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = Me(e, 0, n), i = Me(e, 1, n), r = a && b(a), s = i && b(i), u = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + z(a).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(i).width;
|
1397
1397
|
if (o.display === "flex")
|
1398
1398
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
@@ -1402,21 +1402,21 @@ var f, U, _, V, Fe, ot, H, _e, Ae, le, Ue, Ee, Qe, K, Ie = !1, ct = !1, dt = [],
|
|
1402
1402
|
var d = r.float === "left" ? "left" : "right";
|
1403
1403
|
return i && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
1404
1404
|
}
|
1405
|
-
return a && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || u >= l && o[
|
1406
|
-
},
|
1405
|
+
return a && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || u >= l && o[nn] === "none" || i && o[nn] === "none" && u + c > l) ? "vertical" : "horizontal";
|
1406
|
+
}, $o = function(e, n, o) {
|
1407
1407
|
var l = o ? e.left : e.top, a = o ? e.right : e.bottom, i = o ? e.width : e.height, r = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
1408
1408
|
return l === r || a === s || l + i / 2 === r + u / 2;
|
1409
|
-
},
|
1409
|
+
}, Vo = function(e, n) {
|
1410
1410
|
var o;
|
1411
1411
|
return dt.some(function(l) {
|
1412
1412
|
var a = l[ne].options.emptyInsertThreshold;
|
1413
|
-
if (!(!a ||
|
1413
|
+
if (!(!a || Yt(l))) {
|
1414
1414
|
var i = z(l), r = e >= i.left - a && e <= i.right + a, s = n >= i.top - a && n <= i.bottom + a;
|
1415
1415
|
if (r && s)
|
1416
1416
|
return o = l;
|
1417
1417
|
}
|
1418
1418
|
}), o;
|
1419
|
-
},
|
1419
|
+
}, An = function(e) {
|
1420
1420
|
function n(a, i) {
|
1421
1421
|
return function(r, s, u, c) {
|
1422
1422
|
var d = r.options.group.name && s.options.group.name && r.options.group.name === s.options.group.name;
|
@@ -1436,19 +1436,19 @@ var f, U, _, V, Fe, ot, H, _e, Ae, le, Ue, Ee, Qe, K, Ie = !1, ct = !1, dt = [],
|
|
1436
1436
|
(!l || nt(l) != "object") && (l = {
|
1437
1437
|
name: l
|
1438
1438
|
}), o.name = l.name, o.checkPull = n(l.pull, !0), o.checkPut = n(l.put), o.revertClone = l.revertClone, e.group = o;
|
1439
|
-
},
|
1440
|
-
!
|
1441
|
-
},
|
1442
|
-
!
|
1439
|
+
}, Pn = function() {
|
1440
|
+
!kn && _ && b(_, "display", "none");
|
1441
|
+
}, xn = function() {
|
1442
|
+
!kn && _ && b(_, "display", "");
|
1443
1443
|
};
|
1444
|
-
ht && !
|
1444
|
+
ht && !wn && document.addEventListener("click", function(t) {
|
1445
1445
|
if (ct)
|
1446
1446
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), ct = !1, !1;
|
1447
1447
|
}, !0);
|
1448
1448
|
var Te = function(e) {
|
1449
1449
|
if (f) {
|
1450
1450
|
e = e.touches ? e.touches[0] : e;
|
1451
|
-
var n =
|
1451
|
+
var n = Vo(e.clientX, e.clientY);
|
1452
1452
|
if (n) {
|
1453
1453
|
var o = {};
|
1454
1454
|
for (var l in e)
|
@@ -1456,7 +1456,7 @@ var Te = function(e) {
|
|
1456
1456
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[ne]._onDragOver(o);
|
1457
1457
|
}
|
1458
1458
|
}
|
1459
|
-
},
|
1459
|
+
}, Yo = function(e) {
|
1460
1460
|
f && f.parentNode[ne]._isOutsideThisEl(e.target);
|
1461
1461
|
};
|
1462
1462
|
function y(t, e) {
|
@@ -1478,7 +1478,7 @@ function y(t, e) {
|
|
1478
1478
|
// will be set to same as swapThreshold if default
|
1479
1479
|
removeCloneOnHide: !0,
|
1480
1480
|
direction: function() {
|
1481
|
-
return
|
1481
|
+
return In(t, this.options);
|
1482
1482
|
},
|
1483
1483
|
ghostClass: "sortable-ghost",
|
1484
1484
|
chosenClass: "sortable-chosen",
|
@@ -1506,16 +1506,16 @@ function y(t, e) {
|
|
1506
1506
|
y: 0
|
1507
1507
|
},
|
1508
1508
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
1509
|
-
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (!Le ||
|
1509
|
+
supportPointer: y.supportPointer !== !1 && "PointerEvent" in window && (!Le || Vt),
|
1510
1510
|
emptyInsertThreshold: 5
|
1511
1511
|
};
|
1512
1512
|
Ge.initializePlugins(this, t, n);
|
1513
1513
|
for (var o in n)
|
1514
1514
|
!(o in e) && (e[o] = n[o]);
|
1515
|
-
|
1515
|
+
An(e);
|
1516
1516
|
for (var l in this)
|
1517
1517
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
1518
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
1518
|
+
this.nativeDraggable = e.forceFallback ? !1 : Ro, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? k(t, "pointerdown", this._onTapStart) : (k(t, "mousedown", this._onTapStart), k(t, "touchstart", this._onTapStart)), this.nativeDraggable && (k(t, "dragover", this), k(t, "dragenter", this)), dt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), ve(this, Ao());
|
1519
1519
|
}
|
1520
1520
|
y.prototype = /** @lends Sortable.prototype */
|
1521
1521
|
{
|
@@ -1529,7 +1529,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1529
1529
|
_onTapStart: function(e) {
|
1530
1530
|
if (e.cancelable) {
|
1531
1531
|
var n = this, o = this.el, l = this.options, a = l.preventOnFilter, i = e.type, r = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (r || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = l.filter;
|
1532
|
-
if (
|
1532
|
+
if (Go(o), !f && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || l.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Le && s && s.tagName.toUpperCase() === "SELECT") && (s = ce(s, l.draggable, o, !1), !(s && s.animated) && ot !== s)) {
|
1533
1533
|
if (Ae = se(s), Ue = se(s, l.draggable), typeof c == "function") {
|
1534
1534
|
if (c.call(this, e, s, this)) {
|
1535
1535
|
Z({
|
@@ -1572,21 +1572,21 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1572
1572
|
target: f,
|
1573
1573
|
clientX: (n || e).clientX,
|
1574
1574
|
clientY: (n || e).clientY
|
1575
|
-
},
|
1575
|
+
}, en = Se.clientX - u.left, tn = Se.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, f.style["will-change"] = "all", s = function() {
|
1576
1576
|
if (ee("delayEnded", l, {
|
1577
1577
|
evt: e
|
1578
1578
|
}), y.eventCanceled) {
|
1579
1579
|
l._onDrop();
|
1580
1580
|
return;
|
1581
1581
|
}
|
1582
|
-
l._disableDelayedDragEvents(), !
|
1582
|
+
l._disableDelayedDragEvents(), !Kt && l.nativeDraggable && (f.draggable = !0), l._triggerDragStart(e, n), Z({
|
1583
1583
|
sortable: l,
|
1584
1584
|
name: "choose",
|
1585
1585
|
originalEvent: e
|
1586
1586
|
}), oe(f, i.chosenClass, !0);
|
1587
1587
|
}, i.ignore.split(",").forEach(function(c) {
|
1588
|
-
|
1589
|
-
}), k(r, "dragover", Te), k(r, "mousemove", Te), k(r, "touchmove", Te), i.supportPointer ? (k(r, "pointerup", l._onDrop), !this.nativeDraggable && k(r, "pointercancel", l._onDrop)) : (k(r, "mouseup", l._onDrop), k(r, "touchend", l._onDrop), k(r, "touchcancel", l._onDrop)),
|
1588
|
+
Sn(f, c.trim(), St);
|
1589
|
+
}), k(r, "dragover", Te), k(r, "mousemove", Te), k(r, "touchmove", Te), i.supportPointer ? (k(r, "pointerup", l._onDrop), !this.nativeDraggable && k(r, "pointercancel", l._onDrop)) : (k(r, "mouseup", l._onDrop), k(r, "touchend", l._onDrop), k(r, "touchcancel", l._onDrop)), Kt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), ee("delayStart", this, {
|
1590
1590
|
evt: e
|
1591
1591
|
}), i.delay && (!i.delayOnTouchOnly || n) && (!this.nativeDraggable || !(We || be))) {
|
1592
1592
|
if (y.eventCanceled) {
|
@@ -1607,7 +1607,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1607
1607
|
},
|
1608
1608
|
_disableDelayedDragEvents: function() {
|
1609
1609
|
var e = this.el.ownerDocument;
|
1610
|
-
|
1610
|
+
B(e, "mouseup", this._disableDelayedDrag), B(e, "touchend", this._disableDelayedDrag), B(e, "touchcancel", this._disableDelayedDrag), B(e, "pointerup", this._disableDelayedDrag), B(e, "pointercancel", this._disableDelayedDrag), B(e, "mousemove", this._delayedDragTouchMoveHandler), B(e, "touchmove", this._delayedDragTouchMoveHandler), B(e, "pointermove", this._delayedDragTouchMoveHandler);
|
1611
1611
|
},
|
1612
1612
|
_triggerDragStart: function(e, n) {
|
1613
1613
|
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? k(document, "pointermove", this._onTouchMove) : n ? k(document, "touchmove", this._onTouchMove) : k(document, "mousemove", this._onTouchMove) : (k(f, "dragend", this), k(V, "dragstart", this._onDragStart));
|
@@ -1622,7 +1622,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1622
1622
|
if (Ie = !1, V && f) {
|
1623
1623
|
ee("dragStarted", this, {
|
1624
1624
|
evt: n
|
1625
|
-
}), this.nativeDraggable && k(document, "dragover",
|
1625
|
+
}), this.nativeDraggable && k(document, "dragover", Yo);
|
1626
1626
|
var o = this.options;
|
1627
1627
|
!e && oe(f, o.dragClass, !1), oe(f, o.ghostClass, !0), y.active = this, e && this._appendGhost(), Z({
|
1628
1628
|
sortable: this,
|
@@ -1634,7 +1634,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1634
1634
|
},
|
1635
1635
|
_emulateDragOver: function() {
|
1636
1636
|
if (ue) {
|
1637
|
-
this._lastX = ue.clientX, this._lastY = ue.clientY,
|
1637
|
+
this._lastX = ue.clientX, this._lastY = ue.clientY, Pn();
|
1638
1638
|
for (var e = document.elementFromPoint(ue.clientX, ue.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ue.clientX, ue.clientY), e !== n); )
|
1639
1639
|
n = e;
|
1640
1640
|
if (f.parentNode[ne]._isOutsideThisEl(e), n)
|
@@ -1650,13 +1650,13 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1650
1650
|
break;
|
1651
1651
|
}
|
1652
1652
|
e = n;
|
1653
|
-
} while (n =
|
1654
|
-
|
1653
|
+
} while (n = Cn(n));
|
1654
|
+
xn();
|
1655
1655
|
}
|
1656
1656
|
},
|
1657
1657
|
_onTouchMove: function(e) {
|
1658
1658
|
if (Se) {
|
1659
|
-
var n = this.options, o = n.fallbackTolerance, l = n.fallbackOffset, a = e.touches ? e.touches[0] : e, i = _ && xe(_, !0), r = _ && i && i.a, s = _ && i && i.d, u = Ze && J &&
|
1659
|
+
var n = this.options, o = n.fallbackTolerance, l = n.fallbackOffset, a = e.touches ? e.touches[0] : e, i = _ && xe(_, !0), r = _ && i && i.a, s = _ && i && i.d, u = Ze && J && Zt(J), c = (a.clientX - Se.clientX + l.x) / (r || 1) + (u ? u[0] - Ct[0] : 0) / (r || 1), d = (a.clientY - Se.clientY + l.y) / (s || 1) + (u ? u[1] - Ct[1] : 0) / (s || 1);
|
1660
1660
|
if (!y.active && !Ie) {
|
1661
1661
|
if (o && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < o)
|
1662
1662
|
return;
|
@@ -1683,9 +1683,9 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1683
1683
|
if (Ze) {
|
1684
1684
|
for (J = e; b(J, "position") === "static" && b(J, "transform") === "none" && J !== document; )
|
1685
1685
|
J = J.parentNode;
|
1686
|
-
J !== document.body && J !== document.documentElement ? (J === document && (J = de()), n.top += J.scrollTop, n.left += J.scrollLeft) : J = de(), Ct =
|
1686
|
+
J !== document.body && J !== document.documentElement ? (J === document && (J = de()), n.top += J.scrollTop, n.left += J.scrollLeft) : J = de(), Ct = Zt(J);
|
1687
1687
|
}
|
1688
|
-
_ = f.cloneNode(!0), oe(_, o.ghostClass, !1), oe(_, o.fallbackClass, !0), oe(_, o.dragClass, !0), b(_, "transition", ""), b(_, "transform", ""), b(_, "box-sizing", "border-box"), b(_, "margin", 0), b(_, "top", n.top), b(_, "left", n.left), b(_, "width", n.width), b(_, "height", n.height), b(_, "opacity", "0.8"), b(_, "position", Ze ? "absolute" : "fixed"), b(_, "zIndex", "100000"), b(_, "pointerEvents", "none"), y.ghost = _, e.appendChild(_), b(_, "transform-origin",
|
1688
|
+
_ = f.cloneNode(!0), oe(_, o.ghostClass, !1), oe(_, o.fallbackClass, !0), oe(_, o.dragClass, !0), b(_, "transition", ""), b(_, "transform", ""), b(_, "box-sizing", "border-box"), b(_, "margin", 0), b(_, "top", n.top), b(_, "left", n.left), b(_, "width", n.width), b(_, "height", n.height), b(_, "opacity", "0.8"), b(_, "position", Ze ? "absolute" : "fixed"), b(_, "zIndex", "100000"), b(_, "pointerEvents", "none"), y.ghost = _, e.appendChild(_), b(_, "transform-origin", en / parseInt(_.style.width) * 100 + "% " + tn / parseInt(_.style.height) * 100 + "%");
|
1689
1689
|
}
|
1690
1690
|
},
|
1691
1691
|
_onDragStart: function(e, n) {
|
@@ -1696,19 +1696,19 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1696
1696
|
this._onDrop();
|
1697
1697
|
return;
|
1698
1698
|
}
|
1699
|
-
ee("setupClone", this), y.eventCanceled || (H =
|
1699
|
+
ee("setupClone", this), y.eventCanceled || (H = Bn(f), H.removeAttribute("id"), H.draggable = !1, H.style["will-change"] = "", this._hideClone(), oe(H, this.options.chosenClass, !1), y.clone = H), o.cloneId = at(function() {
|
1700
1700
|
ee("clone", o), !y.eventCanceled && (o.options.removeCloneOnHide || V.insertBefore(H, f), o._hideClone(), Z({
|
1701
1701
|
sortable: o,
|
1702
1702
|
name: "clone"
|
1703
1703
|
}));
|
1704
|
-
}), !n && oe(f, a.dragClass, !0), n ? (ct = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (
|
1704
|
+
}), !n && oe(f, a.dragClass, !0), n ? (ct = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (B(document, "mouseup", o._onDrop), B(document, "touchend", o._onDrop), B(document, "touchcancel", o._onDrop), l && (l.effectAllowed = "move", a.setData && a.setData.call(o, l, f)), k(document, "drop", o), b(f, "transform", "translateZ(0)")), Ie = !0, o._dragStartId = at(o._dragStarted.bind(o, n, e)), k(document, "selectstart", o), Re = !0, window.getSelection().removeAllRanges(), Le && b(document.body, "user-select", "none");
|
1705
1705
|
},
|
1706
1706
|
// Returns true - if no further action is needed (either inserted or another condition)
|
1707
1707
|
_onDragOver: function(e) {
|
1708
1708
|
var n = this.el, o = e.target, l, a, i, r = this.options, s = r.group, u = y.active, c = Qe === s, d = r.sort, p = K || u, h, g = this, w = !1;
|
1709
|
-
if (
|
1709
|
+
if (Ot)
|
1710
1710
|
return;
|
1711
|
-
function C(Ne,
|
1711
|
+
function C(Ne, $n) {
|
1712
1712
|
ee(Ne, g, fe({
|
1713
1713
|
evt: e,
|
1714
1714
|
isOwner: c,
|
@@ -1720,11 +1720,11 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1720
1720
|
fromSortable: p,
|
1721
1721
|
target: o,
|
1722
1722
|
completed: F,
|
1723
|
-
onMove: function(
|
1724
|
-
return et(V, n, f, l,
|
1723
|
+
onMove: function(zt, Vn) {
|
1724
|
+
return et(V, n, f, l, zt, z(zt), e, Vn);
|
1725
1725
|
},
|
1726
1726
|
changed: S
|
1727
|
-
},
|
1727
|
+
}, $n));
|
1728
1728
|
}
|
1729
1729
|
function T() {
|
1730
1730
|
C("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
|
@@ -1755,13 +1755,13 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1755
1755
|
return w;
|
1756
1756
|
if (i)
|
1757
1757
|
return U = V, T(), this._hideClone(), C("revert"), y.eventCanceled || (Fe ? V.insertBefore(f, Fe) : V.appendChild(f)), F(!0);
|
1758
|
-
var E =
|
1759
|
-
if (!E ||
|
1758
|
+
var E = Yt(n, r.draggable);
|
1759
|
+
if (!E || Xo(e, h, this) && !E.animated) {
|
1760
1760
|
if (E === f)
|
1761
1761
|
return F(!1);
|
1762
1762
|
if (E && n === e.target && (o = E), o && (a = z(o)), et(V, n, f, l, o, a, e, !!o) !== !1)
|
1763
1763
|
return T(), E && E.nextSibling ? n.insertBefore(f, E.nextSibling) : n.appendChild(f), U = n, S(), F(!0);
|
1764
|
-
} else if (E &&
|
1764
|
+
} else if (E && Uo(e, h, this)) {
|
1765
1765
|
var m = Me(n, 0, r, !0);
|
1766
1766
|
if (m === f)
|
1767
1767
|
return F(!1);
|
@@ -1769,8 +1769,8 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1769
1769
|
return T(), n.insertBefore(f, m), U = n, S(), F(!0);
|
1770
1770
|
} else if (o.parentNode === n) {
|
1771
1771
|
a = z(o);
|
1772
|
-
var D = 0, I, R = f.parentNode !== n, P =
|
1773
|
-
ke !== o && (I = a[G], ze = !1, Je = !P && r.invertSwap || R), D =
|
1772
|
+
var D = 0, I, R = f.parentNode !== n, P = !$o(f.animated && f.toRect || l, o.animated && o.toRect || a, h), G = h ? "top" : "left", O = Jt(o, "top", "top") || Jt(f, "top", "top"), q = O ? O.scrollTop : void 0;
|
1773
|
+
ke !== o && (I = a[G], ze = !1, Je = !P && r.invertSwap || R), D = zo(e, o, a, h, P ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, Je, ke === o);
|
1774
1774
|
var x;
|
1775
1775
|
if (D !== 0) {
|
1776
1776
|
var L = se(f);
|
@@ -1785,7 +1785,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1785
1785
|
ye = D === 1;
|
1786
1786
|
var qe = et(V, n, f, l, o, a, e, ye);
|
1787
1787
|
if (qe !== !1)
|
1788
|
-
return (qe === 1 || qe === -1) && (ye = qe === 1),
|
1788
|
+
return (qe === 1 || qe === -1) && (ye = qe === 1), Ot = !0, setTimeout(Ho, 30), T(), ye && !re ? n.appendChild(f) : o.parentNode.insertBefore(f, ye ? re : o), O && Fn(O, 0, q - O.scrollTop), U = f.parentNode, I !== void 0 && !Je && (lt = Math.abs(I - z(o)[G])), S(), F(!0);
|
1789
1789
|
}
|
1790
1790
|
if (n.contains(f))
|
1791
1791
|
return F(!1);
|
@@ -1794,11 +1794,11 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1794
1794
|
},
|
1795
1795
|
_ignoreWhileAnimating: null,
|
1796
1796
|
_offMoveEvents: function() {
|
1797
|
-
|
1797
|
+
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Te), B(document, "mousemove", Te), B(document, "touchmove", Te);
|
1798
1798
|
},
|
1799
1799
|
_offUpEvents: function() {
|
1800
1800
|
var e = this.el.ownerDocument;
|
1801
|
-
|
1801
|
+
B(e, "mouseup", this._onDrop), B(e, "touchend", this._onDrop), B(e, "pointerup", this._onDrop), B(e, "pointercancel", this._onDrop), B(e, "touchcancel", this._onDrop), B(document, "selectstart", this);
|
1802
1802
|
},
|
1803
1803
|
_onDrop: function(e) {
|
1804
1804
|
var n = this.el, o = this.options;
|
@@ -1808,7 +1808,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1808
1808
|
this._nulling();
|
1809
1809
|
return;
|
1810
1810
|
}
|
1811
|
-
Ie = !1, Je = !1, ze = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), kt(this.cloneId), kt(this._dragStartId), this.nativeDraggable && (
|
1811
|
+
Ie = !1, Je = !1, ze = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), kt(this.cloneId), kt(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Le && b(document.body, "user-select", ""), b(f, "transform", ""), e && (Re && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), _ && _.parentNode && _.parentNode.removeChild(_), (V === U || K && K.lastPutMode !== "clone") && H && H.parentNode && H.parentNode.removeChild(H), f && (this.nativeDraggable && B(f, "dragend", this), St(f), f.style["will-change"] = "", Re && !Ie && oe(f, K ? K.options.ghostClass : this.options.ghostClass, !1), oe(f, this.options.chosenClass, !1), Z({
|
1812
1812
|
sortable: this,
|
1813
1813
|
name: "unchoose",
|
1814
1814
|
toEl: U,
|
@@ -1867,7 +1867,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1867
1867
|
break;
|
1868
1868
|
case "dragenter":
|
1869
1869
|
case "dragover":
|
1870
|
-
f && (this._onDragOver(e),
|
1870
|
+
f && (this._onDragOver(e), Lo(e));
|
1871
1871
|
break;
|
1872
1872
|
case "selectstart":
|
1873
1873
|
e.preventDefault();
|
@@ -1880,7 +1880,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1880
1880
|
*/
|
1881
1881
|
toArray: function() {
|
1882
1882
|
for (var e = [], n, o = this.el.children, l = 0, a = o.length, i = this.options; l < a; l++)
|
1883
|
-
n = o[l], ce(n, i.draggable, this.el, !1) && e.push(n.getAttribute(i.dataIdAttr) ||
|
1883
|
+
n = o[l], ce(n, i.draggable, this.el, !1) && e.push(n.getAttribute(i.dataIdAttr) || Wo(n));
|
1884
1884
|
return e;
|
1885
1885
|
},
|
1886
1886
|
/**
|
@@ -1923,7 +1923,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1923
1923
|
if (n === void 0)
|
1924
1924
|
return o[e];
|
1925
1925
|
var l = Ge.modifyOption(this, e, n);
|
1926
|
-
typeof l < "u" ? o[e] = l : o[e] = n, e === "group" &&
|
1926
|
+
typeof l < "u" ? o[e] = l : o[e] = n, e === "group" && An(o);
|
1927
1927
|
},
|
1928
1928
|
/**
|
1929
1929
|
* Destroy
|
@@ -1931,7 +1931,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1931
1931
|
destroy: function() {
|
1932
1932
|
ee("destroy", this);
|
1933
1933
|
var e = this.el;
|
1934
|
-
e[ne] = null,
|
1934
|
+
e[ne] = null, B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart), B(e, "pointerdown", this._onTapStart), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
1935
1935
|
n.removeAttribute("draggable");
|
1936
1936
|
}), this._onDrop(), this._disableDelayedDragEvents(), dt.splice(dt.indexOf(this.el), 1), this.el = e = null;
|
1937
1937
|
},
|
@@ -1954,7 +1954,7 @@ y.prototype = /** @lends Sortable.prototype */
|
|
1954
1954
|
}
|
1955
1955
|
}
|
1956
1956
|
};
|
1957
|
-
function
|
1957
|
+
function Lo(t) {
|
1958
1958
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
1959
1959
|
}
|
1960
1960
|
function et(t, e, n, o, l, a, i, r) {
|
@@ -1967,18 +1967,18 @@ function et(t, e, n, o, l, a, i, r) {
|
|
1967
1967
|
function St(t) {
|
1968
1968
|
t.draggable = !1;
|
1969
1969
|
}
|
1970
|
-
function
|
1971
|
-
|
1970
|
+
function Ho() {
|
1971
|
+
Ot = !1;
|
1972
1972
|
}
|
1973
|
-
function
|
1974
|
-
var o = z(Me(n.el, 0, n.options, !0)), l =
|
1973
|
+
function Uo(t, e, n) {
|
1974
|
+
var o = z(Me(n.el, 0, n.options, !0)), l = On(n.el, n.options, _), a = 10;
|
1975
1975
|
return e ? t.clientX < l.left - a || t.clientY < o.top && t.clientX < o.right : t.clientY < l.top - a || t.clientY < o.bottom && t.clientX < o.left;
|
1976
1976
|
}
|
1977
|
-
function
|
1978
|
-
var o = z(
|
1977
|
+
function Xo(t, e, n) {
|
1978
|
+
var o = z(Yt(n.el, n.options.draggable)), l = On(n.el, n.options, _), a = 10;
|
1979
1979
|
return e ? t.clientX > l.right + a || t.clientY > o.bottom && t.clientX > o.left : t.clientY > l.bottom + a || t.clientX > o.right && t.clientY > o.top;
|
1980
1980
|
}
|
1981
|
-
function
|
1981
|
+
function zo(t, e, n, o, l, a, i, r) {
|
1982
1982
|
var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, c = o ? n.top : n.left, d = o ? n.bottom : n.right, p = !1;
|
1983
1983
|
if (!i) {
|
1984
1984
|
if (r && lt < u * l) {
|
@@ -1987,19 +1987,19 @@ function Uo(t, e, n, o, l, a, i, r) {
|
|
1987
1987
|
else if (Xe === 1 ? s < c + lt : s > d - lt)
|
1988
1988
|
return -Xe;
|
1989
1989
|
} else if (s > c + u * (1 - l) / 2 && s < d - u * (1 - l) / 2)
|
1990
|
-
return
|
1990
|
+
return jo(e);
|
1991
1991
|
}
|
1992
1992
|
return p = p || i, p && (s < c + u * a / 2 || s > d - u * a / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
1993
1993
|
}
|
1994
|
-
function
|
1994
|
+
function jo(t) {
|
1995
1995
|
return se(f) < se(t) ? 1 : -1;
|
1996
1996
|
}
|
1997
|
-
function
|
1997
|
+
function Wo(t) {
|
1998
1998
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
1999
1999
|
o += e.charCodeAt(n);
|
2000
2000
|
return o.toString(36);
|
2001
2001
|
}
|
2002
|
-
function
|
2002
|
+
function Go(t) {
|
2003
2003
|
ft.length = 0;
|
2004
2004
|
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
2005
2005
|
var o = e[n];
|
@@ -2017,21 +2017,21 @@ ht && k(document, "touchmove", function(t) {
|
|
2017
2017
|
});
|
2018
2018
|
y.utils = {
|
2019
2019
|
on: k,
|
2020
|
-
off:
|
2020
|
+
off: B,
|
2021
2021
|
css: b,
|
2022
|
-
find:
|
2022
|
+
find: Sn,
|
2023
2023
|
is: function(e, n) {
|
2024
2024
|
return !!ce(e, n, e, !1);
|
2025
2025
|
},
|
2026
|
-
extend:
|
2027
|
-
throttle:
|
2026
|
+
extend: ko,
|
2027
|
+
throttle: Tn,
|
2028
2028
|
closest: ce,
|
2029
2029
|
toggleClass: oe,
|
2030
|
-
clone:
|
2030
|
+
clone: Bn,
|
2031
2031
|
index: se,
|
2032
2032
|
nextTick: at,
|
2033
2033
|
cancelNextTick: kt,
|
2034
|
-
detectDirection:
|
2034
|
+
detectDirection: In,
|
2035
2035
|
getChild: Me,
|
2036
2036
|
expando: ne
|
2037
2037
|
};
|
@@ -2050,9 +2050,9 @@ y.mount = function() {
|
|
2050
2050
|
y.create = function(t, e) {
|
2051
2051
|
return new y(t, e);
|
2052
2052
|
};
|
2053
|
-
y.version =
|
2053
|
+
y.version = Bo;
|
2054
2054
|
var X = [], $e, It, At = !1, Tt, Ft, pt, Ve;
|
2055
|
-
function
|
2055
|
+
function qo() {
|
2056
2056
|
function t() {
|
2057
2057
|
this.defaults = {
|
2058
2058
|
scroll: !0,
|
@@ -2074,7 +2074,7 @@ function Wo() {
|
|
2074
2074
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
2075
2075
|
},
|
2076
2076
|
drop: function() {
|
2077
|
-
this.sortable.nativeDraggable ?
|
2077
|
+
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), on(), it(), Io();
|
2078
2078
|
},
|
2079
2079
|
nulling: function() {
|
2080
2080
|
pt = It = $e = At = Ve = Tt = Ft = null, X.length = 0;
|
@@ -2085,18 +2085,18 @@ function Wo() {
|
|
2085
2085
|
_handleAutoScroll: function(n, o) {
|
2086
2086
|
var l = this, a = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, r = document.elementFromPoint(a, i);
|
2087
2087
|
if (pt = n, o || this.options.forceAutoScrollFallback || We || be || Le) {
|
2088
|
-
|
2088
|
+
Bt(n, this.options, r, o);
|
2089
2089
|
var s = Ce(r, !0);
|
2090
|
-
At && (!Ve || a !== Tt || i !== Ft) && (Ve &&
|
2090
|
+
At && (!Ve || a !== Tt || i !== Ft) && (Ve && on(), Ve = setInterval(function() {
|
2091
2091
|
var u = Ce(document.elementFromPoint(a, i), !0);
|
2092
|
-
u !== s && (s = u, it()),
|
2092
|
+
u !== s && (s = u, it()), Bt(n, l.options, u, o);
|
2093
2093
|
}, 10), Tt = a, Ft = i);
|
2094
2094
|
} else {
|
2095
2095
|
if (!this.options.bubbleScroll || Ce(r, !0) === de()) {
|
2096
2096
|
it();
|
2097
2097
|
return;
|
2098
2098
|
}
|
2099
|
-
|
2099
|
+
Bt(n, this.options, Ce(r, !1), !1);
|
2100
2100
|
}
|
2101
2101
|
}
|
2102
2102
|
}, ve(t, {
|
@@ -2109,32 +2109,32 @@ function it() {
|
|
2109
2109
|
clearInterval(t.pid);
|
2110
2110
|
}), X = [];
|
2111
2111
|
}
|
2112
|
-
function
|
2112
|
+
function on() {
|
2113
2113
|
clearInterval(Ve);
|
2114
2114
|
}
|
2115
|
-
var
|
2115
|
+
var Bt = Tn(function(t, e, n, o) {
|
2116
2116
|
if (e.scroll) {
|
2117
2117
|
var l = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, i = e.scrollSensitivity, r = e.scrollSpeed, s = de(), u = !1, c;
|
2118
2118
|
It !== n && (It = n, it(), $e = e.scroll, c = e.scrollFn, $e === !0 && ($e = Ce(n, !0)));
|
2119
2119
|
var d = 0, p = $e;
|
2120
2120
|
do {
|
2121
|
-
var h = p, g = z(h), w = g.top, C = g.bottom, T = g.left, F = g.right, S = g.width, E = g.height, m = void 0, D = void 0, I = h.scrollWidth, R = h.scrollHeight, P = b(h), G = h.scrollLeft,
|
2121
|
+
var h = p, g = z(h), w = g.top, C = g.bottom, T = g.left, F = g.right, S = g.width, E = g.height, m = void 0, D = void 0, I = h.scrollWidth, R = h.scrollHeight, P = b(h), G = h.scrollLeft, O = h.scrollTop;
|
2122
2122
|
h === s ? (m = S < I && (P.overflowX === "auto" || P.overflowX === "scroll" || P.overflowX === "visible"), D = E < R && (P.overflowY === "auto" || P.overflowY === "scroll" || P.overflowY === "visible")) : (m = S < I && (P.overflowX === "auto" || P.overflowX === "scroll"), D = E < R && (P.overflowY === "auto" || P.overflowY === "scroll"));
|
2123
|
-
var q = m && (Math.abs(F - l) <= i && G + S < I) - (Math.abs(T - l) <= i && !!G), x = D && (Math.abs(C - a) <= i &&
|
2123
|
+
var q = m && (Math.abs(F - l) <= i && G + S < I) - (Math.abs(T - l) <= i && !!G), x = D && (Math.abs(C - a) <= i && O + E < R) - (Math.abs(w - a) <= i && !!O);
|
2124
2124
|
if (!X[d])
|
2125
2125
|
for (var L = 0; L <= d; L++)
|
2126
2126
|
X[L] || (X[L] = {});
|
2127
2127
|
(X[d].vx != q || X[d].vy != x || X[d].el !== h) && (X[d].el = h, X[d].vx = q, X[d].vy = x, clearInterval(X[d].pid), (q != 0 || x != 0) && (u = !0, X[d].pid = setInterval((function() {
|
2128
2128
|
o && this.layer === 0 && y.active._onTouchMove(pt);
|
2129
2129
|
var re = X[this.layer].vy ? X[this.layer].vy * r : 0, ye = X[this.layer].vx ? X[this.layer].vx * r : 0;
|
2130
|
-
typeof c == "function" && c.call(y.dragged.parentNode[ne], ye, re, t, pt, X[this.layer].el) !== "continue" ||
|
2130
|
+
typeof c == "function" && c.call(y.dragged.parentNode[ne], ye, re, t, pt, X[this.layer].el) !== "continue" || Fn(X[this.layer].el, ye, re);
|
2131
2131
|
}).bind({
|
2132
2132
|
layer: d
|
2133
2133
|
}), 24))), d++;
|
2134
2134
|
} while (e.bubbleScroll && p !== s && (p = Ce(p, !1)));
|
2135
2135
|
At = u;
|
2136
2136
|
}
|
2137
|
-
}, 30),
|
2137
|
+
}, 30), Mn = function(e) {
|
2138
2138
|
var n = e.originalEvent, o = e.putSortable, l = e.dragEl, a = e.activeSortable, i = e.dispatchSortableEvent, r = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
2139
2139
|
if (n) {
|
2140
2140
|
var u = o || a;
|
@@ -2146,9 +2146,9 @@ var Ot = Dn(function(t, e, n, o) {
|
|
2146
2146
|
}));
|
2147
2147
|
}
|
2148
2148
|
};
|
2149
|
-
function
|
2149
|
+
function Lt() {
|
2150
2150
|
}
|
2151
|
-
|
2151
|
+
Lt.prototype = {
|
2152
2152
|
startIndex: null,
|
2153
2153
|
dragStart: function(e) {
|
2154
2154
|
var n = e.oldDraggableIndex;
|
@@ -2160,42 +2160,42 @@ Vt.prototype = {
|
|
2160
2160
|
var l = Me(this.sortable.el, this.startIndex, this.options);
|
2161
2161
|
l ? this.sortable.el.insertBefore(n, l) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
2162
2162
|
},
|
2163
|
-
drop:
|
2163
|
+
drop: Mn
|
2164
2164
|
};
|
2165
|
-
ve(
|
2165
|
+
ve(Lt, {
|
2166
2166
|
pluginName: "revertOnSpill"
|
2167
2167
|
});
|
2168
|
-
function
|
2168
|
+
function Ht() {
|
2169
2169
|
}
|
2170
|
-
|
2170
|
+
Ht.prototype = {
|
2171
2171
|
onSpill: function(e) {
|
2172
2172
|
var n = e.dragEl, o = e.putSortable, l = o || this.sortable;
|
2173
2173
|
l.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), l.animateAll();
|
2174
2174
|
},
|
2175
|
-
drop:
|
2175
|
+
drop: Mn
|
2176
2176
|
};
|
2177
|
-
ve(
|
2177
|
+
ve(Ht, {
|
2178
2178
|
pluginName: "removeOnSpill"
|
2179
2179
|
});
|
2180
|
-
y.mount(new
|
2181
|
-
y.mount(
|
2182
|
-
var
|
2183
|
-
const gt = typeof window < "u",
|
2180
|
+
y.mount(new qo());
|
2181
|
+
y.mount(Ht, Lt);
|
2182
|
+
var ln;
|
2183
|
+
const gt = typeof window < "u", Ko = (t) => typeof t == "string", Qo = () => {
|
2184
2184
|
};
|
2185
|
-
gt && ((
|
2185
|
+
gt && ((ln = window == null ? void 0 : window.navigator) != null && ln.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
2186
2186
|
function vt(t) {
|
2187
2187
|
return typeof t == "function" ? t() : v(t);
|
2188
2188
|
}
|
2189
|
-
function
|
2189
|
+
function Jo(t) {
|
2190
2190
|
return t;
|
2191
2191
|
}
|
2192
|
-
function
|
2193
|
-
return
|
2192
|
+
function Nn(t) {
|
2193
|
+
return Xn() ? (zn(t), !0) : !1;
|
2194
2194
|
}
|
2195
|
-
function
|
2196
|
-
|
2195
|
+
function Zo(t, e = !0) {
|
2196
|
+
jn() ? hn(t) : e ? t() : Wn(t);
|
2197
2197
|
}
|
2198
|
-
function
|
2198
|
+
function el(t, e, n = {}) {
|
2199
2199
|
const {
|
2200
2200
|
immediate: o = !0
|
2201
2201
|
} = n, l = j(!1);
|
@@ -2211,44 +2211,44 @@ function Jo(t, e, n = {}) {
|
|
2211
2211
|
l.value = !1, a = null, t(...u);
|
2212
2212
|
}, vt(e));
|
2213
2213
|
}
|
2214
|
-
return o && (l.value = !0, gt && s()),
|
2215
|
-
isPending:
|
2214
|
+
return o && (l.value = !0, gt && s()), Nn(r), {
|
2215
|
+
isPending: Un(l),
|
2216
2216
|
start: s,
|
2217
2217
|
stop: r
|
2218
2218
|
};
|
2219
2219
|
}
|
2220
|
-
function
|
2220
|
+
function tl(t) {
|
2221
2221
|
var e;
|
2222
2222
|
const n = vt(t);
|
2223
2223
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
2224
2224
|
}
|
2225
|
-
const
|
2226
|
-
function
|
2225
|
+
const nl = gt ? window : void 0, ol = gt ? window.navigator : void 0;
|
2226
|
+
function ll(...t) {
|
2227
2227
|
let e, n, o, l;
|
2228
|
-
if (
|
2229
|
-
return
|
2228
|
+
if (Ko(t[0]) || Array.isArray(t[0]) ? ([n, o, l] = t, e = nl) : [e, n, o, l] = t, !e)
|
2229
|
+
return Qo;
|
2230
2230
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
2231
2231
|
const a = [], i = () => {
|
2232
2232
|
a.forEach((c) => c()), a.length = 0;
|
2233
|
-
}, r = (c, d, p, h) => (c.addEventListener(d, p, h), () => c.removeEventListener(d, p, h)), s = mt(() => [
|
2233
|
+
}, r = (c, d, p, h) => (c.addEventListener(d, p, h), () => c.removeEventListener(d, p, h)), s = mt(() => [tl(e), vt(l)], ([c, d]) => {
|
2234
2234
|
i(), c && a.push(...n.flatMap((p) => o.map((h) => r(c, p, h, d))));
|
2235
2235
|
}, { immediate: !0, flush: "post" }), u = () => {
|
2236
2236
|
s(), i();
|
2237
2237
|
};
|
2238
|
-
return
|
2238
|
+
return Nn(u), u;
|
2239
2239
|
}
|
2240
|
-
function
|
2240
|
+
function al(t, e = !1) {
|
2241
2241
|
const n = j(), o = () => n.value = !!t();
|
2242
|
-
return o(),
|
2242
|
+
return o(), Zo(o, e), n;
|
2243
2243
|
}
|
2244
|
-
function
|
2244
|
+
function il(t = {}) {
|
2245
2245
|
const {
|
2246
|
-
navigator: e =
|
2246
|
+
navigator: e = ol,
|
2247
2247
|
read: n = !1,
|
2248
2248
|
source: o,
|
2249
2249
|
copiedDuring: l = 1500,
|
2250
2250
|
legacy: a = !1
|
2251
|
-
} = t, i = ["copy", "cut"], r =
|
2251
|
+
} = t, i = ["copy", "cut"], r = al(() => e && "clipboard" in e), s = $(() => r.value || a), u = j(""), c = j(!1), d = el(() => c.value = !1, l);
|
2252
2252
|
function p() {
|
2253
2253
|
r.value ? e.clipboard.readText().then((C) => {
|
2254
2254
|
u.value = C;
|
@@ -2256,7 +2256,7 @@ function ll(t = {}) {
|
|
2256
2256
|
}
|
2257
2257
|
if (s.value && n)
|
2258
2258
|
for (const C of i)
|
2259
|
-
|
2259
|
+
ll(C, p);
|
2260
2260
|
async function h(C = vt(o)) {
|
2261
2261
|
s.value && C != null && (r.value ? await e.clipboard.writeText(C) : g(C), u.value = C, c.value = !0, d.start());
|
2262
2262
|
}
|
@@ -2275,21 +2275,21 @@ function ll(t = {}) {
|
|
2275
2275
|
copy: h
|
2276
2276
|
};
|
2277
2277
|
}
|
2278
|
-
const
|
2279
|
-
|
2280
|
-
var
|
2278
|
+
const an = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, rn = "__vueuse_ssr_handlers__";
|
2279
|
+
an[rn] = an[rn] || {};
|
2280
|
+
var sn;
|
2281
2281
|
(function(t) {
|
2282
2282
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
2283
|
-
})(
|
2284
|
-
var
|
2283
|
+
})(sn || (sn = {}));
|
2284
|
+
var rl = Object.defineProperty, un = Object.getOwnPropertySymbols, sl = Object.prototype.hasOwnProperty, ul = Object.prototype.propertyIsEnumerable, cn = (t, e, n) => e in t ? rl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, cl = (t, e) => {
|
2285
2285
|
for (var n in e || (e = {}))
|
2286
|
-
|
2287
|
-
if (
|
2288
|
-
for (var n of
|
2289
|
-
|
2286
|
+
sl.call(e, n) && cn(t, n, e[n]);
|
2287
|
+
if (un)
|
2288
|
+
for (var n of un(e))
|
2289
|
+
ul.call(e, n) && cn(t, n, e[n]);
|
2290
2290
|
return t;
|
2291
2291
|
};
|
2292
|
-
const
|
2292
|
+
const dl = {
|
2293
2293
|
easeInSine: [0.12, 0, 0.39, 0],
|
2294
2294
|
easeOutSine: [0.61, 1, 0.88, 1],
|
2295
2295
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
@@ -2315,14 +2315,14 @@ const ul = {
|
|
2315
2315
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
2316
2316
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
2317
2317
|
};
|
2318
|
-
|
2319
|
-
linear:
|
2320
|
-
},
|
2321
|
-
function
|
2322
|
-
const n = j({}), o =
|
2318
|
+
cl({
|
2319
|
+
linear: Jo
|
2320
|
+
}, dl);
|
2321
|
+
function fl(t, e) {
|
2322
|
+
const n = j({}), o = fn({ ref: { getBoundingClientRect: () => n.value } }), l = $(() => {
|
2323
2323
|
var E;
|
2324
2324
|
return (E = t.value) == null ? void 0 : E.getSelectionRows();
|
2325
|
-
}), a =
|
2325
|
+
}), a = pn(), i = $(() => !!a["pop-meta"]), r = $(() => !!a["pop-search"]), s = $(() => !!a["pop-field"]), u = $(() => !!a["pop-index"]), c = $(() => !!a["pop-cell"]), { copy: d } = il();
|
2326
2326
|
function p(E) {
|
2327
2327
|
const { column: { type: m, property: D } } = E;
|
2328
2328
|
if (m !== "default" || !D)
|
@@ -2352,8 +2352,8 @@ function cl(t, e) {
|
|
2352
2352
|
if (c.value)
|
2353
2353
|
T(I, "cell", { row: E, prop: P });
|
2354
2354
|
else {
|
2355
|
-
const G = E[P],
|
2356
|
-
d(
|
2355
|
+
const G = E[P], O = G instanceof Object ? JSON.stringify(G) : G;
|
2356
|
+
d(O).then((q) => Ye.info("单元格内容已复制"));
|
2357
2357
|
}
|
2358
2358
|
else
|
2359
2359
|
R === "index" && u.value && T(I, "index", E, "right");
|
@@ -2380,13 +2380,13 @@ function cl(t, e) {
|
|
2380
2380
|
sort: !0,
|
2381
2381
|
onEnd(D) {
|
2382
2382
|
const { newIndex: I, oldIndex: R } = D, P = this.toArray(), G = P.splice(I, 1)[0];
|
2383
|
-
P.splice(R, 0, G), this.sort(P), Array.from(t.value.$el.querySelectorAll(".el-table__row")).forEach((
|
2384
|
-
|
2383
|
+
P.splice(R, 0, G), this.sort(P), Array.from(t.value.$el.querySelectorAll(".el-table__row")).forEach((O) => {
|
2384
|
+
O.classList.remove("hover-row");
|
2385
2385
|
}), e.sortableCallback && e.sortableCallback(I, R);
|
2386
2386
|
}
|
2387
2387
|
});
|
2388
2388
|
}
|
2389
|
-
return
|
2389
|
+
return Gn(() => {
|
2390
2390
|
F && F.destroy();
|
2391
2391
|
}), {
|
2392
2392
|
popover: o,
|
@@ -2403,7 +2403,7 @@ function cl(t, e) {
|
|
2403
2403
|
hasMetaViewSlot: i
|
2404
2404
|
};
|
2405
2405
|
}
|
2406
|
-
const
|
2406
|
+
const pl = ["innerHTML"], Ut = /* @__PURE__ */ ie({
|
2407
2407
|
__name: "MTableButtons",
|
2408
2408
|
props: {
|
2409
2409
|
buttons: {},
|
@@ -2416,7 +2416,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2416
2416
|
const c = Pe.mapValues(u, (d, p) => p === "handler" ? d : d instanceof Function ? d(o.item) : d);
|
2417
2417
|
return c.size = c.size || "small", c.type = c.type || "primary", c.link = c.link || !0, c.disabled = c.disabled || !c.handler, c;
|
2418
2418
|
}
|
2419
|
-
|
2419
|
+
hn(r);
|
2420
2420
|
function r() {
|
2421
2421
|
n("width", parseFloat(l.value.offsetWidth));
|
2422
2422
|
}
|
@@ -2432,24 +2432,24 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2432
2432
|
style: { display: "inline-flex" },
|
2433
2433
|
onMouseover: r
|
2434
2434
|
}, [
|
2435
|
-
(A(!0), ae(
|
2435
|
+
(A(!0), ae(Be, null, rt(a.value, (p) => (A(), W(d, je({ ref_for: !0 }, { ...p }, {
|
2436
2436
|
onClick: st((h) => s(p, h), ["prevent"])
|
2437
2437
|
}), {
|
2438
2438
|
default: M(() => [
|
2439
2439
|
pe("strong", {
|
2440
2440
|
innerHTML: p.title
|
2441
|
-
}, null, 8,
|
2441
|
+
}, null, 8, pl)
|
2442
2442
|
]),
|
2443
2443
|
_: 2
|
2444
2444
|
}, 1040, ["onClick"]))), 256))
|
2445
2445
|
], 544);
|
2446
2446
|
};
|
2447
2447
|
}
|
2448
|
-
}),
|
2448
|
+
}), ml = {
|
2449
2449
|
"element-loading-svg": "-",
|
2450
2450
|
"element-loading-background": "rgba(0,0,0,.10)",
|
2451
2451
|
"element-loading-custom-class": "m-table-loading"
|
2452
|
-
},
|
2452
|
+
}, hl = { class: "justified m-table-outer m-table-header" }, gl = { class: "justified m-table-outer m-table-footer" }, Rn = /* @__PURE__ */ ie({
|
2453
2453
|
__name: "MTable",
|
2454
2454
|
props: /* @__PURE__ */ xt({
|
2455
2455
|
data: {},
|
@@ -2500,7 +2500,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2500
2500
|
buttons: {},
|
2501
2501
|
columns: {},
|
2502
2502
|
sortableCallback: { type: Function }
|
2503
|
-
},
|
2503
|
+
}, Do),
|
2504
2504
|
setup(t, { expose: e }) {
|
2505
2505
|
const n = j();
|
2506
2506
|
let o = t, l = j(0);
|
@@ -2520,15 +2520,15 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2520
2520
|
hasFieldSlot: w,
|
2521
2521
|
hasMetaViewSlot: C,
|
2522
2522
|
closePopover: T
|
2523
|
-
} =
|
2523
|
+
} = fl(n, o);
|
2524
2524
|
function F() {
|
2525
2525
|
return r.value;
|
2526
2526
|
}
|
2527
2527
|
return e({ getSelection: F, setSelection: h, closePopover: T }), (S, E) => {
|
2528
2528
|
const m = N("fa"), D = N("el-text"), I = N("el-table-column"), R = N("el-table"), P = N("el-popover"), G = Mt("loading");
|
2529
|
-
return A(), ae(
|
2530
|
-
Nt((A(), ae("div",
|
2531
|
-
pe("div",
|
2529
|
+
return A(), ae(Be, null, [
|
2530
|
+
Nt((A(), ae("div", ml, [
|
2531
|
+
pe("div", hl, [
|
2532
2532
|
pe("div", null, [
|
2533
2533
|
Q(S.$slots, "header")
|
2534
2534
|
]),
|
@@ -2547,7 +2547,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2547
2547
|
onCellContextmenu: v(d)
|
2548
2548
|
}), {
|
2549
2549
|
default: M(() => {
|
2550
|
-
var
|
2550
|
+
var O, q;
|
2551
2551
|
return [
|
2552
2552
|
Y(I, {
|
2553
2553
|
type: "index",
|
@@ -2575,13 +2575,13 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2575
2575
|
]),
|
2576
2576
|
_: 1
|
2577
2577
|
}),
|
2578
|
-
(A(!0), ae(
|
2578
|
+
(A(!0), ae(Be, null, rt(S.view.fields, (x, L) => (A(), W(I, {
|
2579
2579
|
key: L,
|
2580
2580
|
prop: L,
|
2581
2581
|
label: x.label
|
2582
2582
|
}, {
|
2583
2583
|
header: M(() => [
|
2584
|
-
Y(
|
2584
|
+
Y($t, {
|
2585
2585
|
view: S.view,
|
2586
2586
|
field: x,
|
2587
2587
|
onSearch: (re) => v(g) && v(p)(re, "search", x),
|
@@ -2599,7 +2599,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2599
2599
|
]),
|
2600
2600
|
_: 2
|
2601
2601
|
}, 1032, ["prop", "label"]))), 128)),
|
2602
|
-
(
|
2602
|
+
(O = S.columns) != null && O.length ? (A(!0), ae(Be, { key: 0 }, rt(S.columns, (x) => (A(), W(I, {
|
2603
2603
|
"show-overflow-tooltip": !1,
|
2604
2604
|
align: "center",
|
2605
2605
|
fixed: "right",
|
@@ -2607,7 +2607,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2607
2607
|
width: x.width || "auto"
|
2608
2608
|
}, {
|
2609
2609
|
default: M(({ row: L }) => [
|
2610
|
-
(A(), W(
|
2610
|
+
(A(), W(mn(x.component), { item: L }, null, 8, ["item"]))
|
2611
2611
|
]),
|
2612
2612
|
_: 2
|
2613
2613
|
}, 1032, ["label", "width"]))), 256)) : te("", !0),
|
@@ -2623,7 +2623,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2623
2623
|
Y(m, { icon: "cogs" })
|
2624
2624
|
]),
|
2625
2625
|
default: M(({ row: x }) => [
|
2626
|
-
Y(
|
2626
|
+
Y(Ut, {
|
2627
2627
|
buttons: S.buttons,
|
2628
2628
|
item: x,
|
2629
2629
|
onWidth: a
|
@@ -2635,7 +2635,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2635
2635
|
}),
|
2636
2636
|
_: 3
|
2637
2637
|
}, 16, ["row-class-name", "cell-class-name", "onCellClick", "onCellContextmenu"]),
|
2638
|
-
pe("div",
|
2638
|
+
pe("div", gl, [
|
2639
2639
|
pe("div", null, [
|
2640
2640
|
Q(S.$slots, "footer")
|
2641
2641
|
]),
|
@@ -2648,7 +2648,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2648
2648
|
]),
|
2649
2649
|
Y(P, {
|
2650
2650
|
visible: v(i).visible,
|
2651
|
-
"onUpdate:visible": E[1] || (E[1] = (
|
2651
|
+
"onUpdate:visible": E[1] || (E[1] = (O) => v(i).visible = O),
|
2652
2652
|
"virtual-ref": v(i).ref,
|
2653
2653
|
trigger: "click",
|
2654
2654
|
placement: v(i).placement,
|
@@ -2684,7 +2684,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2684
2684
|
], 64);
|
2685
2685
|
};
|
2686
2686
|
}
|
2687
|
-
}),
|
2687
|
+
}), vl = {
|
2688
2688
|
type: "default",
|
2689
2689
|
size: "default",
|
2690
2690
|
round: !1,
|
@@ -2698,7 +2698,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2698
2698
|
tag: "button",
|
2699
2699
|
onClick: null,
|
2700
2700
|
onClickDialog: null
|
2701
|
-
},
|
2701
|
+
}, bl = { class: "mor-button-wrapper" }, yl = { key: 1 }, Xt = /* @__PURE__ */ ie({
|
2702
2702
|
__name: "MButton",
|
2703
2703
|
props: /* @__PURE__ */ xt({
|
2704
2704
|
type: {},
|
@@ -2721,7 +2721,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2721
2721
|
dialogProps: {},
|
2722
2722
|
onClick: { type: [Function, null] },
|
2723
2723
|
onClickDialog: { type: [Function, null] }
|
2724
|
-
},
|
2724
|
+
}, vl),
|
2725
2725
|
setup(t, { expose: e }) {
|
2726
2726
|
const n = t, {
|
2727
2727
|
type: o,
|
@@ -2741,23 +2741,23 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2741
2741
|
onClick: T,
|
2742
2742
|
onClickDialog: F
|
2743
2743
|
} = n, S = $(() => F != null), E = $(() => {
|
2744
|
-
const
|
2745
|
-
return n.width && (
|
2746
|
-
}), m = j(null), D = j({}), I = (
|
2747
|
-
T && T(
|
2748
|
-
}, R = (
|
2744
|
+
const O = {};
|
2745
|
+
return n.width && (O.width = typeof n.width == "number" ? `${n.width}px` : n.width), n.height && (O.height = typeof n.height == "number" ? `${n.height}px` : n.height), n.borderRadius && (O.borderRadius = typeof n.borderRadius == "number" ? `${n.borderRadius}px` : n.borderRadius), O;
|
2746
|
+
}), m = j(null), D = j({}), I = (O) => {
|
2747
|
+
T && T(O), C && m.value && m.value.open();
|
2748
|
+
}, R = (O, q) => {
|
2749
2749
|
F ? F(q) : q();
|
2750
2750
|
};
|
2751
2751
|
return e({
|
2752
|
-
openDialog: (
|
2753
|
-
m.value && (D.value =
|
2752
|
+
openDialog: (O = {}, q = {}) => {
|
2753
|
+
m.value && (D.value = O, m.value.open(O, q));
|
2754
2754
|
},
|
2755
2755
|
closeDialog: () => {
|
2756
2756
|
m.value && m.value.close();
|
2757
2757
|
}
|
2758
|
-
}), (
|
2758
|
+
}), (O, q) => {
|
2759
2759
|
const x = N("fa"), L = N("el-button");
|
2760
|
-
return A(), ae("div",
|
2760
|
+
return A(), ae("div", bl, [
|
2761
2761
|
Y(L, je({
|
2762
2762
|
class: "mor-button",
|
2763
2763
|
style: E.value,
|
@@ -2772,18 +2772,18 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2772
2772
|
autofocus: v(g),
|
2773
2773
|
"native-type": v(w),
|
2774
2774
|
color: v(d)
|
2775
|
-
},
|
2775
|
+
}, O.$attrs, { onClick: I }), {
|
2776
2776
|
default: M(() => [
|
2777
2777
|
v(i) ? (A(), W(x, {
|
2778
2778
|
key: 0,
|
2779
2779
|
icon: v(i)
|
2780
2780
|
}, null, 8, ["icon"])) : te("", !0),
|
2781
|
-
v(a) ? (A(), ae("span",
|
2782
|
-
Q(
|
2781
|
+
v(a) ? (A(), ae("span", yl, he(v(a)), 1)) : te("", !0),
|
2782
|
+
Q(O.$slots, "default")
|
2783
2783
|
]),
|
2784
2784
|
_: 3
|
2785
2785
|
}, 16, ["style", "type", "size", "round", "circle", "loading", "disabled", "dark", "plain", "autofocus", "native-type", "color"]),
|
2786
|
-
v(C) ? (A(), W(
|
2786
|
+
v(C) ? (A(), W(Rt, je({
|
2787
2787
|
key: 0,
|
2788
2788
|
ref_key: "dialogRef",
|
2789
2789
|
ref: m
|
@@ -2791,7 +2791,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2791
2791
|
confirm: S.value ? R : void 0
|
2792
2792
|
}), {
|
2793
2793
|
default: M(() => [
|
2794
|
-
Q(
|
2794
|
+
Q(O.$slots, "dialog", { data: D.value })
|
2795
2795
|
]),
|
2796
2796
|
_: 3
|
2797
2797
|
}, 16, ["confirm"])) : te("", !0)
|
@@ -2800,7 +2800,7 @@ const dl = ["innerHTML"], xn = /* @__PURE__ */ ie({
|
|
2800
2800
|
}
|
2801
2801
|
});
|
2802
2802
|
function El(t) {
|
2803
|
-
const { getRequest: e } =
|
2803
|
+
const { getRequest: e } = bn(t), n = e(), o = yn({ baseURL: t }), { sockets: l } = o, { channels: a, status: i, open: r } = l;
|
2804
2804
|
function s(u, c, d = !1, p) {
|
2805
2805
|
a[u] = c;
|
2806
2806
|
const h = e(d);
|
@@ -2813,40 +2813,47 @@ function El(t) {
|
|
2813
2813
|
register: s
|
2814
2814
|
};
|
2815
2815
|
}
|
2816
|
-
|
2816
|
+
qn.add(Kn);
|
2817
2817
|
const _l = (t) => {
|
2818
|
-
const e =
|
2818
|
+
const e = yn(t || {}), { baseURL: n } = t || { baseURL: "/api/", minioURL: "/dfs/" };
|
2819
2819
|
return El(n), {
|
2820
2820
|
install: (o) => {
|
2821
|
-
o.provide("options", t), o.provide("channel", e), o.component("MDialog",
|
2822
|
-
locale:
|
2823
|
-
}), o.component("fa",
|
2821
|
+
o.provide("options", t), o.provide("channel", e), o.component("MDialog", Rt), o.component("MCell", _n), o.component("MTable", Rn), o.component("MTableButtons", Ut), o.component("MTableHeader", $t), o.component("MButton", Xt), o.use(dn, {
|
2822
|
+
locale: En
|
2823
|
+
}), o.component("fa", Qn);
|
2824
2824
|
}
|
2825
2825
|
};
|
2826
|
-
}, Ml = {
|
2826
|
+
}, Ml = Xt, Nl = {
|
2827
2827
|
install: (t, e) => {
|
2828
|
-
t.use(
|
2829
|
-
locale:
|
2828
|
+
t.use(dn, {
|
2829
|
+
locale: En
|
2830
2830
|
}), _l(e).install(t);
|
2831
|
-
}
|
2831
|
+
},
|
2832
|
+
MDialog: Rt,
|
2833
|
+
MCell: _n,
|
2834
|
+
MTable: Rn,
|
2835
|
+
MTableButtons: Ut,
|
2836
|
+
MTableHeader: $t,
|
2837
|
+
MButton: Xt
|
2832
2838
|
};
|
2833
2839
|
export {
|
2834
2840
|
Pl as $alert,
|
2835
|
-
|
2841
|
+
yn as $channel,
|
2836
2842
|
xl as $confirm,
|
2837
2843
|
Ye as $message,
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2842
|
-
|
2843
|
-
|
2844
|
-
|
2844
|
+
Ml as Button,
|
2845
|
+
Vl as ElementPlus,
|
2846
|
+
Xt as MButton,
|
2847
|
+
_n as MCell,
|
2848
|
+
Rt as MDialog,
|
2849
|
+
Rn as MTable,
|
2850
|
+
Ut as MTableButtons,
|
2851
|
+
$t as MTableHeader,
|
2845
2852
|
_l as createMorghulis,
|
2846
|
-
|
2847
|
-
|
2853
|
+
Nl as default,
|
2854
|
+
gn as useMorghulisAuthorize,
|
2848
2855
|
El as useMorghulisChannel,
|
2849
|
-
|
2850
|
-
|
2856
|
+
Jn as useMorghulisCookies,
|
2857
|
+
bn as useMorghulisRequest
|
2851
2858
|
};
|
2852
2859
|
//# sourceMappingURL=morghulis.es.js.map
|