ss-component-new 1.1.12 → 1.1.16
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/array-Dm3HqOxD.js +3434 -0
- package/dist/{index-HyCAWr3q.js → index-CKbmw71j.js} +793 -809
- package/dist/index-CNi8ZfN3.js +242 -0
- package/dist/index-CeOZHsL0.js +111 -0
- package/dist/{main-4E3fZB6N.js → main-BoW2J7gM.js} +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component.umd.cjs +16 -14
- package/package.json +1 -1
- package/dist/array-W6uNHVCX.js +0 -3379
- package/dist/index-0Vp2UWeE.js +0 -233
- package/dist/index-lqdgKFyj.js +0 -110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Ve, inject as Fe, ref as P, computed as R, unref as T, readonly as wo, getCurrentScope as _o, onScopeDispose as Eo, onMounted as Dt, nextTick as Ke, watch as ve, isRef as So, warn as Do, provide as Co, defineComponent as ke, createElementBlock as O, openBlock as v, mergeProps as kn, renderSlot as se, normalizeClass as ye, createVNode as jt, Transition as An, withCtx as j, withDirectives as $n, createElementVNode as mt, normalizeStyle as te, createTextVNode as Mn, toDisplayString as he, vShow as Rn, shallowReactive as xo, createBlock as $, createCommentVNode as L, resolveDynamicComponent as ze, Fragment as ae, withModifiers as To, isVNode as Fn, render as on, resolveComponent as J, renderList as ie, createSlots as Bn, normalizeProps as Oo, guardReactiveProps as Io } from "vue";
|
|
2
2
|
import { i as No, b as Po, e as Yt, S as rn, M as Vn, f as ko, h as Ao, w as $o, j as Mo, k as Ro, _ as Wt, c as Ct } from "./menu-3a4UTvU1.js";
|
|
3
3
|
import Fo from "./index-hjkvqVVf.js";
|
|
4
4
|
/**!
|
|
@@ -17,7 +17,7 @@ function an(t, n) {
|
|
|
17
17
|
}
|
|
18
18
|
return e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function be(t) {
|
|
21
21
|
for (var n = 1; n < arguments.length; n++) {
|
|
22
22
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
23
23
|
n % 2 ? an(Object(e), !0).forEach(function(o) {
|
|
@@ -44,15 +44,15 @@ function Bo(t, n, e) {
|
|
|
44
44
|
writable: !0
|
|
45
45
|
}) : t[n] = e, t;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function _e() {
|
|
48
|
+
return _e = Object.assign || function(t) {
|
|
49
49
|
for (var n = 1; n < arguments.length; n++) {
|
|
50
50
|
var e = arguments[n];
|
|
51
51
|
for (var o in e)
|
|
52
52
|
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
53
53
|
}
|
|
54
54
|
return t;
|
|
55
|
-
},
|
|
55
|
+
}, _e.apply(this, arguments);
|
|
56
56
|
}
|
|
57
57
|
function Vo(t, n) {
|
|
58
58
|
if (t == null) return {};
|
|
@@ -72,19 +72,19 @@ function zo(t, n) {
|
|
|
72
72
|
return e;
|
|
73
73
|
}
|
|
74
74
|
var Lo = "1.15.6";
|
|
75
|
-
function
|
|
75
|
+
function we(t) {
|
|
76
76
|
if (typeof window < "u" && window.navigator)
|
|
77
77
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var Ee = we(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), nt = we(/Edge/i), ln = we(/firefox/i), Ze = we(/safari/i) && !we(/chrome/i) && !we(/android/i), Ut = we(/iP(ad|od|hone)/i), zn = we(/chrome/i) && we(/android/i), Ln = {
|
|
80
80
|
capture: !1,
|
|
81
81
|
passive: !1
|
|
82
82
|
};
|
|
83
|
-
function
|
|
84
|
-
t.addEventListener(n, e, !
|
|
83
|
+
function N(t, n, e) {
|
|
84
|
+
t.addEventListener(n, e, !Ee && Ln);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
t.removeEventListener(n, e, !
|
|
86
|
+
function I(t, n, e) {
|
|
87
|
+
t.removeEventListener(n, e, !Ee && Ln);
|
|
88
88
|
}
|
|
89
89
|
function vt(t, n) {
|
|
90
90
|
if (n) {
|
|
@@ -105,7 +105,7 @@ function vt(t, n) {
|
|
|
105
105
|
function jn(t) {
|
|
106
106
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function fe(t, n, e, o) {
|
|
109
109
|
if (t) {
|
|
110
110
|
e = e || document;
|
|
111
111
|
do {
|
|
@@ -117,7 +117,7 @@ function he(t, n, e, o) {
|
|
|
117
117
|
return null;
|
|
118
118
|
}
|
|
119
119
|
var sn = /\s+/g;
|
|
120
|
-
function
|
|
120
|
+
function oe(t, n, e) {
|
|
121
121
|
if (t && n)
|
|
122
122
|
if (t.classList)
|
|
123
123
|
t.classList[e ? "add" : "remove"](n);
|
|
@@ -126,7 +126,7 @@ function le(t, n, e) {
|
|
|
126
126
|
t.className = (o + (e ? " " + n : "")).replace(sn, " ");
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function D(t, n, e) {
|
|
130
130
|
var o = t && t.style;
|
|
131
131
|
if (o) {
|
|
132
132
|
if (e === void 0)
|
|
@@ -134,13 +134,13 @@ function S(t, n, e) {
|
|
|
134
134
|
!(n in o) && n.indexOf("webkit") === -1 && (n = "-webkit-" + n), o[n] = e + (typeof e == "string" ? "" : "px");
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Be(t, n) {
|
|
138
138
|
var e = "";
|
|
139
139
|
if (typeof t == "string")
|
|
140
140
|
e = t;
|
|
141
141
|
else
|
|
142
142
|
do {
|
|
143
|
-
var o =
|
|
143
|
+
var o = D(t, "transform");
|
|
144
144
|
o && o !== "none" && (e = o + " " + e);
|
|
145
145
|
} while (!n && (t = t.parentNode));
|
|
146
146
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
@@ -156,24 +156,24 @@ function Yn(t, n, e) {
|
|
|
156
156
|
}
|
|
157
157
|
return [];
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function me() {
|
|
160
160
|
var t = document.scrollingElement;
|
|
161
161
|
return t || document.documentElement;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function U(t, n, e, o, r) {
|
|
164
164
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
165
165
|
var i, a, l, s, c, d, f;
|
|
166
|
-
if (t !== window && t.parentNode && t !==
|
|
166
|
+
if (t !== window && t.parentNode && t !== me() ? (i = t.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, c = i.right, d = i.height, f = i.width) : (a = 0, l = 0, s = window.innerHeight, c = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (n || e) && t !== window && (r = r || t.parentNode, !Ee))
|
|
167
167
|
do
|
|
168
|
-
if (r && r.getBoundingClientRect && (
|
|
169
|
-
var
|
|
170
|
-
a -=
|
|
168
|
+
if (r && r.getBoundingClientRect && (D(r, "transform") !== "none" || e && D(r, "position") !== "static")) {
|
|
169
|
+
var b = r.getBoundingClientRect();
|
|
170
|
+
a -= b.top + parseInt(D(r, "border-top-width")), l -= b.left + parseInt(D(r, "border-left-width")), s = a + i.height, c = l + i.width;
|
|
171
171
|
break;
|
|
172
172
|
}
|
|
173
173
|
while (r = r.parentNode);
|
|
174
174
|
if (o && t !== window) {
|
|
175
|
-
var
|
|
176
|
-
|
|
175
|
+
var y = Be(r || t), h = y && y.a, p = y && y.d;
|
|
176
|
+
y && (a /= p, l /= h, f /= h, d /= p, s = a + d, c = l + f);
|
|
177
177
|
}
|
|
178
178
|
return {
|
|
179
179
|
top: a,
|
|
@@ -186,17 +186,17 @@ function W(t, n, e, o, r) {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
function un(t, n, e) {
|
|
189
|
-
for (var o =
|
|
190
|
-
var i =
|
|
189
|
+
for (var o = xe(t, !0), r = U(t)[n]; o; ) {
|
|
190
|
+
var i = U(o)[e], a = void 0;
|
|
191
191
|
if (a = r >= i, !a) return o;
|
|
192
|
-
if (o ===
|
|
193
|
-
o =
|
|
192
|
+
if (o === me()) break;
|
|
193
|
+
o = xe(o, !1);
|
|
194
194
|
}
|
|
195
195
|
return !1;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Le(t, n, e, o) {
|
|
198
198
|
for (var r = 0, i = 0, a = t.children; i < a.length; ) {
|
|
199
|
-
if (a[i].style.display !== "none" && a[i] !==
|
|
199
|
+
if (a[i].style.display !== "none" && a[i] !== S.ghost && (o || a[i] !== S.dragged) && fe(a[i], e.draggable, t, !1)) {
|
|
200
200
|
if (r === n)
|
|
201
201
|
return a[i];
|
|
202
202
|
r++;
|
|
@@ -206,23 +206,23 @@ function Ye(t, n, e, o) {
|
|
|
206
206
|
return null;
|
|
207
207
|
}
|
|
208
208
|
function Xt(t, n) {
|
|
209
|
-
for (var e = t.lastElementChild; e && (e ===
|
|
209
|
+
for (var e = t.lastElementChild; e && (e === S.ghost || D(e, "display") === "none" || n && !vt(e, n)); )
|
|
210
210
|
e = e.previousElementSibling;
|
|
211
211
|
return e || null;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function le(t, n) {
|
|
214
214
|
var e = 0;
|
|
215
215
|
if (!t || !t.parentNode)
|
|
216
216
|
return -1;
|
|
217
217
|
for (; t = t.previousElementSibling; )
|
|
218
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !==
|
|
218
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== S.clone && (!n || vt(t, n)) && e++;
|
|
219
219
|
return e;
|
|
220
220
|
}
|
|
221
221
|
function cn(t) {
|
|
222
|
-
var n = 0, e = 0, o =
|
|
222
|
+
var n = 0, e = 0, o = me();
|
|
223
223
|
if (t)
|
|
224
224
|
do {
|
|
225
|
-
var r =
|
|
225
|
+
var r = Be(t), i = r.a, a = r.d;
|
|
226
226
|
n += t.scrollLeft * i, e += t.scrollTop * a;
|
|
227
227
|
} while (t !== o && (t = t.parentNode));
|
|
228
228
|
return [n, e];
|
|
@@ -235,20 +235,20 @@ function jo(t, n) {
|
|
|
235
235
|
}
|
|
236
236
|
return -1;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
if (!t || !t.getBoundingClientRect) return
|
|
238
|
+
function xe(t, n) {
|
|
239
|
+
if (!t || !t.getBoundingClientRect) return me();
|
|
240
240
|
var e = t, o = !1;
|
|
241
241
|
do
|
|
242
242
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
243
|
-
var r =
|
|
243
|
+
var r = D(e);
|
|
244
244
|
if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
245
|
-
if (!e.getBoundingClientRect || e === document.body) return
|
|
245
|
+
if (!e.getBoundingClientRect || e === document.body) return me();
|
|
246
246
|
if (o || n) return e;
|
|
247
247
|
o = !0;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
while (e = e.parentNode);
|
|
251
|
-
return
|
|
251
|
+
return me();
|
|
252
252
|
}
|
|
253
253
|
function Yo(t, n) {
|
|
254
254
|
if (t && n)
|
|
@@ -259,19 +259,19 @@ function Yo(t, n) {
|
|
|
259
259
|
function Ot(t, n) {
|
|
260
260
|
return Math.round(t.top) === Math.round(n.top) && Math.round(t.left) === Math.round(n.left) && Math.round(t.height) === Math.round(n.height) && Math.round(t.width) === Math.round(n.width);
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var qe;
|
|
263
263
|
function Wn(t, n) {
|
|
264
264
|
return function() {
|
|
265
|
-
if (!
|
|
265
|
+
if (!qe) {
|
|
266
266
|
var e = arguments, o = this;
|
|
267
|
-
e.length === 1 ? t.call(o, e[0]) : t.apply(o, e),
|
|
268
|
-
|
|
267
|
+
e.length === 1 ? t.call(o, e[0]) : t.apply(o, e), qe = setTimeout(function() {
|
|
268
|
+
qe = void 0;
|
|
269
269
|
}, n);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
function Wo() {
|
|
274
|
-
clearTimeout(
|
|
274
|
+
clearTimeout(qe), qe = void 0;
|
|
275
275
|
}
|
|
276
276
|
function Un(t, n, e) {
|
|
277
277
|
t.scrollLeft += n, t.scrollTop += e;
|
|
@@ -284,13 +284,13 @@ function Hn(t, n, e) {
|
|
|
284
284
|
var o = {};
|
|
285
285
|
return Array.from(t.children).forEach(function(r) {
|
|
286
286
|
var i, a, l, s;
|
|
287
|
-
if (!(!
|
|
288
|
-
var c =
|
|
287
|
+
if (!(!fe(r, n.draggable, t, !1) || r.animated || r === e)) {
|
|
288
|
+
var c = U(r);
|
|
289
289
|
o.left = Math.min((i = o.left) !== null && i !== void 0 ? i : 1 / 0, c.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, c.top), o.right = Math.max((l = o.right) !== null && l !== void 0 ? l : -1 / 0, c.right), o.bottom = Math.max((s = o.bottom) !== null && s !== void 0 ? s : -1 / 0, c.bottom);
|
|
290
290
|
}
|
|
291
291
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
292
292
|
}
|
|
293
|
-
var
|
|
293
|
+
var ne = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
294
294
|
function Uo() {
|
|
295
295
|
var t = [], n;
|
|
296
296
|
return {
|
|
@@ -298,14 +298,14 @@ function Uo() {
|
|
|
298
298
|
if (t = [], !!this.options.animation) {
|
|
299
299
|
var o = [].slice.call(this.el.children);
|
|
300
300
|
o.forEach(function(r) {
|
|
301
|
-
if (!(
|
|
301
|
+
if (!(D(r, "display") === "none" || r === S.ghost)) {
|
|
302
302
|
t.push({
|
|
303
303
|
target: r,
|
|
304
|
-
rect:
|
|
304
|
+
rect: U(r)
|
|
305
305
|
});
|
|
306
|
-
var i =
|
|
306
|
+
var i = be({}, t[t.length - 1].rect);
|
|
307
307
|
if (r.thisAnimationDuration) {
|
|
308
|
-
var a =
|
|
308
|
+
var a = Be(r, !0);
|
|
309
309
|
a && (i.top -= a.f, i.left -= a.e);
|
|
310
310
|
}
|
|
311
311
|
r.fromRect = i;
|
|
@@ -329,9 +329,9 @@ function Uo() {
|
|
|
329
329
|
}
|
|
330
330
|
var i = !1, a = 0;
|
|
331
331
|
t.forEach(function(l) {
|
|
332
|
-
var s = 0, c = l.target, d = c.fromRect, f =
|
|
333
|
-
|
|
334
|
-
(
|
|
332
|
+
var s = 0, c = l.target, d = c.fromRect, f = U(c), b = c.prevFromRect, y = c.prevToRect, h = l.rect, p = Be(c, !0);
|
|
333
|
+
p && (f.top -= p.f, f.left -= p.e), c.toRect = f, c.thisAnimationDuration && Ot(b, f) && !Ot(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
334
|
+
(h.top - f.top) / (h.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Ho(h, b, y, r.options)), Ot(f, d) || (c.prevFromRect = d, c.prevToRect = f, s || (s = r.options.animation), r.animate(c, h, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
335
335
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
336
336
|
}, s), c.thisAnimationDuration = s);
|
|
337
337
|
}), clearTimeout(n), i ? n = setTimeout(function() {
|
|
@@ -340,10 +340,10 @@ function Uo() {
|
|
|
340
340
|
},
|
|
341
341
|
animate: function(o, r, i, a) {
|
|
342
342
|
if (a) {
|
|
343
|
-
|
|
344
|
-
var l =
|
|
345
|
-
o.animatingX = !!d, o.animatingY = !!f,
|
|
346
|
-
|
|
343
|
+
D(o, "transition", ""), D(o, "transform", "");
|
|
344
|
+
var l = Be(this.el), s = l && l.a, c = l && l.d, d = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (c || 1);
|
|
345
|
+
o.animatingX = !!d, o.animatingY = !!f, D(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Xo(o), D(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), D(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
346
|
+
D(o, "transition", ""), D(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
347
347
|
}, a);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -355,16 +355,16 @@ function Xo(t) {
|
|
|
355
355
|
function Ho(t, n, e, o) {
|
|
356
356
|
return Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) / Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) * o.animation;
|
|
357
357
|
}
|
|
358
|
-
var
|
|
358
|
+
var Ae = [], It = {
|
|
359
359
|
initializeByDefault: !0
|
|
360
|
-
},
|
|
360
|
+
}, ot = {
|
|
361
361
|
mount: function(n) {
|
|
362
362
|
for (var e in It)
|
|
363
363
|
It.hasOwnProperty(e) && !(e in n) && (n[e] = It[e]);
|
|
364
|
-
|
|
364
|
+
Ae.forEach(function(o) {
|
|
365
365
|
if (o.pluginName === n.pluginName)
|
|
366
366
|
throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
|
|
367
|
-
}),
|
|
367
|
+
}), Ae.push(n);
|
|
368
368
|
},
|
|
369
369
|
pluginEvent: function(n, e, o) {
|
|
370
370
|
var r = this;
|
|
@@ -372,20 +372,20 @@ var Me = [], It = {
|
|
|
372
372
|
r.eventCanceled = !0;
|
|
373
373
|
};
|
|
374
374
|
var i = n + "Global";
|
|
375
|
-
|
|
376
|
-
e[a.pluginName] && (e[a.pluginName][i] && e[a.pluginName][i](
|
|
375
|
+
Ae.forEach(function(a) {
|
|
376
|
+
e[a.pluginName] && (e[a.pluginName][i] && e[a.pluginName][i](be({
|
|
377
377
|
sortable: e
|
|
378
|
-
}, o)), e.options[a.pluginName] && e[a.pluginName][n] && e[a.pluginName][n](
|
|
378
|
+
}, o)), e.options[a.pluginName] && e[a.pluginName][n] && e[a.pluginName][n](be({
|
|
379
379
|
sortable: e
|
|
380
380
|
}, o)));
|
|
381
381
|
});
|
|
382
382
|
},
|
|
383
383
|
initializePlugins: function(n, e, o, r) {
|
|
384
|
-
|
|
384
|
+
Ae.forEach(function(l) {
|
|
385
385
|
var s = l.pluginName;
|
|
386
386
|
if (!(!n.options[s] && !l.initializeByDefault)) {
|
|
387
387
|
var c = new l(n, e, n.options);
|
|
388
|
-
c.sortable = n, c.options = n.options, n[s] = c,
|
|
388
|
+
c.sortable = n, c.options = n.options, n[s] = c, _e(o, c.defaults);
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
for (var i in n.options)
|
|
@@ -396,57 +396,57 @@ var Me = [], It = {
|
|
|
396
396
|
},
|
|
397
397
|
getEventProperties: function(n, e) {
|
|
398
398
|
var o = {};
|
|
399
|
-
return
|
|
400
|
-
typeof r.eventProperties == "function" &&
|
|
399
|
+
return Ae.forEach(function(r) {
|
|
400
|
+
typeof r.eventProperties == "function" && _e(o, r.eventProperties.call(e[r.pluginName], n));
|
|
401
401
|
}), o;
|
|
402
402
|
},
|
|
403
403
|
modifyOption: function(n, e, o) {
|
|
404
404
|
var r;
|
|
405
|
-
return
|
|
405
|
+
return Ae.forEach(function(i) {
|
|
406
406
|
n[i.pluginName] && i.optionListeners && typeof i.optionListeners[e] == "function" && (r = i.optionListeners[e].call(n[i.pluginName], o));
|
|
407
407
|
}), r;
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
410
|
function Go(t) {
|
|
411
|
-
var n = t.sortable, e = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, c = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex,
|
|
412
|
-
if (n = n || e && e[
|
|
413
|
-
var
|
|
414
|
-
window.CustomEvent && !
|
|
411
|
+
var n = t.sortable, e = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, c = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex, b = t.originalEvent, y = t.putSortable, h = t.extraEventProperties;
|
|
412
|
+
if (n = n || e && e[ne], !!n) {
|
|
413
|
+
var p, u = n.options, _ = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
414
|
+
window.CustomEvent && !Ee && !nt ? p = new CustomEvent(o, {
|
|
415
415
|
bubbles: !0,
|
|
416
416
|
cancelable: !0
|
|
417
|
-
}) : (
|
|
418
|
-
var
|
|
419
|
-
for (var
|
|
420
|
-
|
|
421
|
-
e && e.dispatchEvent(
|
|
417
|
+
}) : (p = document.createEvent("Event"), p.initEvent(o, !0, !0)), p.to = a || e, p.from = l || e, p.item = r || e, p.clone = i, p.oldIndex = s, p.newIndex = c, p.oldDraggableIndex = d, p.newDraggableIndex = f, p.originalEvent = b, p.pullMode = y ? y.lastPutMode : void 0;
|
|
418
|
+
var w = be(be({}, h), ot.getEventProperties(o, n));
|
|
419
|
+
for (var k in w)
|
|
420
|
+
p[k] = w[k];
|
|
421
|
+
e && e.dispatchEvent(p), u[_] && u[_].call(n, p);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
var Ko = ["evt"], ee = function(n, e) {
|
|
425
425
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = zo(o, Ko);
|
|
426
|
-
|
|
427
|
-
dragEl:
|
|
428
|
-
parentEl:
|
|
426
|
+
ot.pluginEvent.bind(S)(n, e, be({
|
|
427
|
+
dragEl: g,
|
|
428
|
+
parentEl: z,
|
|
429
429
|
ghostEl: C,
|
|
430
|
-
rootEl:
|
|
431
|
-
nextEl:
|
|
430
|
+
rootEl: F,
|
|
431
|
+
nextEl: Ne,
|
|
432
432
|
lastDownEl: dt,
|
|
433
|
-
cloneEl:
|
|
434
|
-
cloneHidden:
|
|
435
|
-
dragStarted:
|
|
433
|
+
cloneEl: B,
|
|
434
|
+
cloneHidden: Ce,
|
|
435
|
+
dragStarted: Xe,
|
|
436
436
|
putSortable: X,
|
|
437
|
-
activeSortable:
|
|
437
|
+
activeSortable: S.active,
|
|
438
438
|
originalEvent: r,
|
|
439
|
-
oldIndex:
|
|
440
|
-
oldDraggableIndex:
|
|
441
|
-
newIndex:
|
|
442
|
-
newDraggableIndex:
|
|
439
|
+
oldIndex: Re,
|
|
440
|
+
oldDraggableIndex: Je,
|
|
441
|
+
newIndex: re,
|
|
442
|
+
newDraggableIndex: De,
|
|
443
443
|
hideGhostForTarget: qn,
|
|
444
444
|
unhideGhostForTarget: Jn,
|
|
445
445
|
cloneNowHidden: function() {
|
|
446
|
-
|
|
446
|
+
Ce = !0;
|
|
447
447
|
},
|
|
448
448
|
cloneNowShown: function() {
|
|
449
|
-
|
|
449
|
+
Ce = !1;
|
|
450
450
|
},
|
|
451
451
|
dispatchSortableEvent: function(l) {
|
|
452
452
|
Z({
|
|
@@ -458,26 +458,26 @@ var Ko = ["evt"], ee = function(n, e) {
|
|
|
458
458
|
}, i));
|
|
459
459
|
};
|
|
460
460
|
function Z(t) {
|
|
461
|
-
Go(
|
|
461
|
+
Go(be({
|
|
462
462
|
putSortable: X,
|
|
463
|
-
cloneEl:
|
|
464
|
-
targetEl:
|
|
465
|
-
rootEl:
|
|
466
|
-
oldIndex:
|
|
467
|
-
oldDraggableIndex:
|
|
468
|
-
newIndex:
|
|
469
|
-
newDraggableIndex:
|
|
463
|
+
cloneEl: B,
|
|
464
|
+
targetEl: g,
|
|
465
|
+
rootEl: F,
|
|
466
|
+
oldIndex: Re,
|
|
467
|
+
oldDraggableIndex: Je,
|
|
468
|
+
newIndex: re,
|
|
469
|
+
newDraggableIndex: De
|
|
470
470
|
}, t));
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var g, z, C, F, Ne, dt, B, Ce, Re, re, Je, De, it, X, Me = !1, bt = !1, yt = [], Te, ce, Nt, Pt, dn, fn, Xe, $e, Qe, et = !1, lt = !1, ft, H, kt = [], Ft = !1, wt = [], xt = typeof document < "u", st = Ut, pn = nt || Ee ? "cssFloat" : "float", Zo = xt && !zn && !Ut && "draggable" in document.createElement("div"), Gn = function() {
|
|
473
473
|
if (xt) {
|
|
474
|
-
if (
|
|
474
|
+
if (Ee)
|
|
475
475
|
return !1;
|
|
476
476
|
var t = document.createElement("x");
|
|
477
477
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
478
478
|
}
|
|
479
479
|
}(), Kn = function(n, e) {
|
|
480
|
-
var o =
|
|
480
|
+
var o = D(n), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Le(n, 0, e), a = Le(n, 1, e), l = i && D(i), s = a && D(a), c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + U(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + U(a).width;
|
|
481
481
|
if (o.display === "flex")
|
|
482
482
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
483
483
|
if (o.display === "grid")
|
|
@@ -492,10 +492,10 @@ var m, V, C, R, ke, dt, F, Te, Be, se, Qe, xe, it, X, Fe = !1, yt = !1, bt = [],
|
|
|
492
492
|
return r === l || i === s || r + a / 2 === l + c / 2;
|
|
493
493
|
}, Jo = function(n, e) {
|
|
494
494
|
var o;
|
|
495
|
-
return
|
|
496
|
-
var i = r[
|
|
495
|
+
return yt.some(function(r) {
|
|
496
|
+
var i = r[ne].options.emptyInsertThreshold;
|
|
497
497
|
if (!(!i || Xt(r))) {
|
|
498
|
-
var a =
|
|
498
|
+
var a = U(r), l = n >= a.left - i && n <= a.right + i, s = e >= a.top - i && e <= a.bottom + i;
|
|
499
499
|
if (l && s)
|
|
500
500
|
return o = r;
|
|
501
501
|
}
|
|
@@ -512,8 +512,8 @@ var m, V, C, R, ke, dt, F, Te, Be, se, Qe, xe, it, X, Fe = !1, yt = !1, bt = [],
|
|
|
512
512
|
return i;
|
|
513
513
|
if (typeof i == "function")
|
|
514
514
|
return e(i(l, s, c, d), a)(l, s, c, d);
|
|
515
|
-
var
|
|
516
|
-
return i === !0 || typeof i == "string" && i ===
|
|
515
|
+
var b = (a ? l : s).options.group.name;
|
|
516
|
+
return i === !0 || typeof i == "string" && i === b || i.join && i.indexOf(b) > -1;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
var o = {}, r = n.group;
|
|
@@ -521,32 +521,32 @@ var m, V, C, R, ke, dt, F, Te, Be, se, Qe, xe, it, X, Fe = !1, yt = !1, bt = [],
|
|
|
521
521
|
name: r
|
|
522
522
|
}), o.name = r.name, o.checkPull = e(r.pull, !0), o.checkPut = e(r.put), o.revertClone = r.revertClone, n.group = o;
|
|
523
523
|
}, qn = function() {
|
|
524
|
-
!Gn && C &&
|
|
524
|
+
!Gn && C && D(C, "display", "none");
|
|
525
525
|
}, Jn = function() {
|
|
526
|
-
!Gn && C &&
|
|
526
|
+
!Gn && C && D(C, "display", "");
|
|
527
527
|
};
|
|
528
528
|
xt && !zn && document.addEventListener("click", function(t) {
|
|
529
|
-
if (
|
|
530
|
-
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(),
|
|
529
|
+
if (bt)
|
|
530
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), bt = !1, !1;
|
|
531
531
|
}, !0);
|
|
532
|
-
var
|
|
533
|
-
if (
|
|
532
|
+
var Oe = function(n) {
|
|
533
|
+
if (g) {
|
|
534
534
|
n = n.touches ? n.touches[0] : n;
|
|
535
535
|
var e = Jo(n.clientX, n.clientY);
|
|
536
536
|
if (e) {
|
|
537
537
|
var o = {};
|
|
538
538
|
for (var r in n)
|
|
539
539
|
n.hasOwnProperty(r) && (o[r] = n[r]);
|
|
540
|
-
o.target = o.rootEl = e, o.preventDefault = void 0, o.stopPropagation = void 0, e[
|
|
540
|
+
o.target = o.rootEl = e, o.preventDefault = void 0, o.stopPropagation = void 0, e[ne]._onDragOver(o);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}, Qo = function(n) {
|
|
544
|
-
|
|
544
|
+
g && g.parentNode[ne]._isOutsideThisEl(n.target);
|
|
545
545
|
};
|
|
546
|
-
function
|
|
546
|
+
function S(t, n) {
|
|
547
547
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
548
548
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
549
|
-
this.el = t, this.options = n =
|
|
549
|
+
this.el = t, this.options = n = _e({}, n), t[ne] = this;
|
|
550
550
|
var e = {
|
|
551
551
|
group: null,
|
|
552
552
|
sort: !0,
|
|
@@ -590,31 +590,31 @@ function E(t, n) {
|
|
|
590
590
|
y: 0
|
|
591
591
|
},
|
|
592
592
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
593
|
-
supportPointer:
|
|
593
|
+
supportPointer: S.supportPointer !== !1 && "PointerEvent" in window && (!Ze || Ut),
|
|
594
594
|
emptyInsertThreshold: 5
|
|
595
595
|
};
|
|
596
|
-
|
|
596
|
+
ot.initializePlugins(this, t, e);
|
|
597
597
|
for (var o in e)
|
|
598
598
|
!(o in n) && (n[o] = e[o]);
|
|
599
599
|
Zn(n);
|
|
600
600
|
for (var r in this)
|
|
601
601
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
602
|
-
this.nativeDraggable = n.forceFallback ? !1 : Zo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ?
|
|
602
|
+
this.nativeDraggable = n.forceFallback ? !1 : Zo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? N(t, "pointerdown", this._onTapStart) : (N(t, "mousedown", this._onTapStart), N(t, "touchstart", this._onTapStart)), this.nativeDraggable && (N(t, "dragover", this), N(t, "dragenter", this)), yt.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), _e(this, Uo());
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
S.prototype = /** @lends Sortable.prototype */
|
|
605
605
|
{
|
|
606
|
-
constructor:
|
|
606
|
+
constructor: S,
|
|
607
607
|
_isOutsideThisEl: function(n) {
|
|
608
|
-
!this.el.contains(n) && n !== this.el && (
|
|
608
|
+
!this.el.contains(n) && n !== this.el && ($e = null);
|
|
609
609
|
},
|
|
610
610
|
_getDirection: function(n, e) {
|
|
611
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, e,
|
|
611
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, e, g) : this.options.direction;
|
|
612
612
|
},
|
|
613
613
|
_onTapStart: function(n) {
|
|
614
614
|
if (n.cancelable) {
|
|
615
615
|
var e = this, o = this.el, r = this.options, i = r.preventOnFilter, a = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, s = (l || n).target, c = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || s, d = r.filter;
|
|
616
|
-
if (lr(o), !
|
|
617
|
-
if (
|
|
616
|
+
if (lr(o), !g && !(/mousedown|pointerdown/.test(a) && n.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ze && s && s.tagName.toUpperCase() === "SELECT") && (s = fe(s, r.draggable, o, !1), !(s && s.animated) && dt !== s)) {
|
|
617
|
+
if (Re = le(s), Je = le(s, r.draggable), typeof d == "function") {
|
|
618
618
|
if (d.call(this, n, s, this)) {
|
|
619
619
|
Z({
|
|
620
620
|
sortable: e,
|
|
@@ -629,7 +629,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
} else if (d && (d = d.split(",").some(function(f) {
|
|
632
|
-
if (f =
|
|
632
|
+
if (f = fe(c, f.trim(), o, !1), f)
|
|
633
633
|
return Z({
|
|
634
634
|
sortable: e,
|
|
635
635
|
rootEl: f,
|
|
@@ -644,40 +644,40 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
644
644
|
i && n.preventDefault();
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
|
-
r.handle && !
|
|
647
|
+
r.handle && !fe(c, r.handle, o, !1) || this._prepareDragStart(n, l, s);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
_prepareDragStart: function(n, e, o) {
|
|
652
652
|
var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
|
|
653
|
-
if (o && !
|
|
654
|
-
var c =
|
|
655
|
-
if (
|
|
656
|
-
target:
|
|
653
|
+
if (o && !g && o.parentNode === i) {
|
|
654
|
+
var c = U(o);
|
|
655
|
+
if (F = i, g = o, z = g.parentNode, Ne = g.nextSibling, dt = o, it = a.group, S.dragged = g, Te = {
|
|
656
|
+
target: g,
|
|
657
657
|
clientX: (e || n).clientX,
|
|
658
658
|
clientY: (e || n).clientY
|
|
659
|
-
}, dn =
|
|
659
|
+
}, dn = Te.clientX - c.left, fn = Te.clientY - c.top, this._lastX = (e || n).clientX, this._lastY = (e || n).clientY, g.style["will-change"] = "all", s = function() {
|
|
660
660
|
if (ee("delayEnded", r, {
|
|
661
661
|
evt: n
|
|
662
|
-
}),
|
|
662
|
+
}), S.eventCanceled) {
|
|
663
663
|
r._onDrop();
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
666
|
-
r._disableDelayedDragEvents(), !ln && r.nativeDraggable && (
|
|
666
|
+
r._disableDelayedDragEvents(), !ln && r.nativeDraggable && (g.draggable = !0), r._triggerDragStart(n, e), Z({
|
|
667
667
|
sortable: r,
|
|
668
668
|
name: "choose",
|
|
669
669
|
originalEvent: n
|
|
670
|
-
}),
|
|
670
|
+
}), oe(g, a.chosenClass, !0);
|
|
671
671
|
}, a.ignore.split(",").forEach(function(d) {
|
|
672
|
-
Yn(
|
|
673
|
-
}),
|
|
672
|
+
Yn(g, d.trim(), At);
|
|
673
|
+
}), N(l, "dragover", Oe), N(l, "mousemove", Oe), N(l, "touchmove", Oe), a.supportPointer ? (N(l, "pointerup", r._onDrop), !this.nativeDraggable && N(l, "pointercancel", r._onDrop)) : (N(l, "mouseup", r._onDrop), N(l, "touchend", r._onDrop), N(l, "touchcancel", r._onDrop)), ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, g.draggable = !0), ee("delayStart", this, {
|
|
674
674
|
evt: n
|
|
675
|
-
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(
|
|
676
|
-
if (
|
|
675
|
+
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(nt || Ee))) {
|
|
676
|
+
if (S.eventCanceled) {
|
|
677
677
|
this._onDrop();
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
|
-
a.supportPointer ? (
|
|
680
|
+
a.supportPointer ? (N(l, "pointerup", r._disableDelayedDrag), N(l, "pointercancel", r._disableDelayedDrag)) : (N(l, "mouseup", r._disableDelayedDrag), N(l, "touchend", r._disableDelayedDrag), N(l, "touchcancel", r._disableDelayedDrag)), N(l, "mousemove", r._delayedDragTouchMoveHandler), N(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && N(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
681
681
|
} else
|
|
682
682
|
s();
|
|
683
683
|
}
|
|
@@ -687,14 +687,14 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
687
687
|
Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
688
688
|
},
|
|
689
689
|
_disableDelayedDrag: function() {
|
|
690
|
-
|
|
690
|
+
g && At(g), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
691
691
|
},
|
|
692
692
|
_disableDelayedDragEvents: function() {
|
|
693
693
|
var n = this.el.ownerDocument;
|
|
694
|
-
|
|
694
|
+
I(n, "mouseup", this._disableDelayedDrag), I(n, "touchend", this._disableDelayedDrag), I(n, "touchcancel", this._disableDelayedDrag), I(n, "pointerup", this._disableDelayedDrag), I(n, "pointercancel", this._disableDelayedDrag), I(n, "mousemove", this._delayedDragTouchMoveHandler), I(n, "touchmove", this._delayedDragTouchMoveHandler), I(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
695
695
|
},
|
|
696
696
|
_triggerDragStart: function(n, e) {
|
|
697
|
-
e = e || n.pointerType == "touch" && n, !this.nativeDraggable || e ? this.options.supportPointer ?
|
|
697
|
+
e = e || n.pointerType == "touch" && n, !this.nativeDraggable || e ? this.options.supportPointer ? N(document, "pointermove", this._onTouchMove) : e ? N(document, "touchmove", this._onTouchMove) : N(document, "mousemove", this._onTouchMove) : (N(g, "dragend", this), N(F, "dragstart", this._onDragStart));
|
|
698
698
|
try {
|
|
699
699
|
document.selection ? pt(function() {
|
|
700
700
|
document.selection.empty();
|
|
@@ -703,12 +703,12 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
_dragStarted: function(n, e) {
|
|
706
|
-
if (
|
|
706
|
+
if (Me = !1, F && g) {
|
|
707
707
|
ee("dragStarted", this, {
|
|
708
708
|
evt: e
|
|
709
|
-
}), this.nativeDraggable &&
|
|
709
|
+
}), this.nativeDraggable && N(document, "dragover", Qo);
|
|
710
710
|
var o = this.options;
|
|
711
|
-
!n &&
|
|
711
|
+
!n && oe(g, o.dragClass, !1), oe(g, o.ghostClass, !0), S.active = this, n && this._appendGhost(), Z({
|
|
712
712
|
sortable: this,
|
|
713
713
|
name: "start",
|
|
714
714
|
originalEvent: e
|
|
@@ -717,17 +717,17 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
717
717
|
this._nulling();
|
|
718
718
|
},
|
|
719
719
|
_emulateDragOver: function() {
|
|
720
|
-
if (
|
|
721
|
-
this._lastX =
|
|
722
|
-
for (var n = document.elementFromPoint(
|
|
720
|
+
if (ce) {
|
|
721
|
+
this._lastX = ce.clientX, this._lastY = ce.clientY, qn();
|
|
722
|
+
for (var n = document.elementFromPoint(ce.clientX, ce.clientY), e = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(ce.clientX, ce.clientY), n !== e); )
|
|
723
723
|
e = n;
|
|
724
|
-
if (
|
|
724
|
+
if (g.parentNode[ne]._isOutsideThisEl(n), e)
|
|
725
725
|
do {
|
|
726
|
-
if (e[
|
|
726
|
+
if (e[ne]) {
|
|
727
727
|
var o = void 0;
|
|
728
|
-
if (o = e[
|
|
729
|
-
clientX:
|
|
730
|
-
clientY:
|
|
728
|
+
if (o = e[ne]._onDragOver({
|
|
729
|
+
clientX: ce.clientX,
|
|
730
|
+
clientY: ce.clientY,
|
|
731
731
|
target: n,
|
|
732
732
|
rootEl: e
|
|
733
733
|
}), o && !this.options.dragoverBubble)
|
|
@@ -739,9 +739,9 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
_onTouchMove: function(n) {
|
|
742
|
-
if (
|
|
743
|
-
var e = this.options, o = e.fallbackTolerance, r = e.fallbackOffset, i = n.touches ? n.touches[0] : n, a = C &&
|
|
744
|
-
if (!
|
|
742
|
+
if (Te) {
|
|
743
|
+
var e = this.options, o = e.fallbackTolerance, r = e.fallbackOffset, i = n.touches ? n.touches[0] : n, a = C && Be(C, !0), l = C && a && a.a, s = C && a && a.d, c = st && H && cn(H), d = (i.clientX - Te.clientX + r.x) / (l || 1) + (c ? c[0] - kt[0] : 0) / (l || 1), f = (i.clientY - Te.clientY + r.y) / (s || 1) + (c ? c[1] - kt[1] : 0) / (s || 1);
|
|
744
|
+
if (!S.active && !Me) {
|
|
745
745
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
746
746
|
return;
|
|
747
747
|
this._onDragStart(n, !0);
|
|
@@ -755,188 +755,188 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
755
755
|
e: d,
|
|
756
756
|
f
|
|
757
757
|
};
|
|
758
|
-
var
|
|
759
|
-
|
|
758
|
+
var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
759
|
+
D(C, "webkitTransform", b), D(C, "mozTransform", b), D(C, "msTransform", b), D(C, "transform", b), Nt = d, Pt = f, ce = i;
|
|
760
760
|
}
|
|
761
761
|
n.cancelable && n.preventDefault();
|
|
762
762
|
}
|
|
763
763
|
},
|
|
764
764
|
_appendGhost: function() {
|
|
765
765
|
if (!C) {
|
|
766
|
-
var n = this.options.fallbackOnBody ? document.body :
|
|
766
|
+
var n = this.options.fallbackOnBody ? document.body : F, e = U(g, !0, st, !0, n), o = this.options;
|
|
767
767
|
if (st) {
|
|
768
|
-
for (
|
|
769
|
-
|
|
770
|
-
|
|
768
|
+
for (H = n; D(H, "position") === "static" && D(H, "transform") === "none" && H !== document; )
|
|
769
|
+
H = H.parentNode;
|
|
770
|
+
H !== document.body && H !== document.documentElement ? (H === document && (H = me()), e.top += H.scrollTop, e.left += H.scrollLeft) : H = me(), kt = cn(H);
|
|
771
771
|
}
|
|
772
|
-
C =
|
|
772
|
+
C = g.cloneNode(!0), oe(C, o.ghostClass, !1), oe(C, o.fallbackClass, !0), oe(C, o.dragClass, !0), D(C, "transition", ""), D(C, "transform", ""), D(C, "box-sizing", "border-box"), D(C, "margin", 0), D(C, "top", e.top), D(C, "left", e.left), D(C, "width", e.width), D(C, "height", e.height), D(C, "opacity", "0.8"), D(C, "position", st ? "absolute" : "fixed"), D(C, "zIndex", "100000"), D(C, "pointerEvents", "none"), S.ghost = C, n.appendChild(C), D(C, "transform-origin", dn / parseInt(C.style.width) * 100 + "% " + fn / parseInt(C.style.height) * 100 + "%");
|
|
773
773
|
}
|
|
774
774
|
},
|
|
775
775
|
_onDragStart: function(n, e) {
|
|
776
776
|
var o = this, r = n.dataTransfer, i = o.options;
|
|
777
777
|
if (ee("dragStart", this, {
|
|
778
778
|
evt: n
|
|
779
|
-
}),
|
|
779
|
+
}), S.eventCanceled) {
|
|
780
780
|
this._onDrop();
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
ee("setupClone", this),
|
|
784
|
-
ee("clone", o), !
|
|
783
|
+
ee("setupClone", this), S.eventCanceled || (B = Xn(g), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), oe(B, this.options.chosenClass, !1), S.clone = B), o.cloneId = pt(function() {
|
|
784
|
+
ee("clone", o), !S.eventCanceled && (o.options.removeCloneOnHide || F.insertBefore(B, g), o._hideClone(), Z({
|
|
785
785
|
sortable: o,
|
|
786
786
|
name: "clone"
|
|
787
787
|
}));
|
|
788
|
-
}), !e &&
|
|
788
|
+
}), !e && oe(g, i.dragClass, !0), e ? (bt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (I(document, "mouseup", o._onDrop), I(document, "touchend", o._onDrop), I(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, g)), N(document, "drop", o), D(g, "transform", "translateZ(0)")), Me = !0, o._dragStartId = pt(o._dragStarted.bind(o, e, n)), N(document, "selectstart", o), Xe = !0, window.getSelection().removeAllRanges(), Ze && D(document.body, "user-select", "none");
|
|
789
789
|
},
|
|
790
790
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
791
791
|
_onDragOver: function(n) {
|
|
792
|
-
var e = this.el, o = n.target, r, i, a, l = this.options, s = l.group, c =
|
|
792
|
+
var e = this.el, o = n.target, r, i, a, l = this.options, s = l.group, c = S.active, d = it === s, f = l.sort, b = X || c, y, h = this, p = !1;
|
|
793
793
|
if (Ft) return;
|
|
794
|
-
function u(
|
|
795
|
-
ee(
|
|
794
|
+
function u(Ue, bo) {
|
|
795
|
+
ee(Ue, h, be({
|
|
796
796
|
evt: n,
|
|
797
797
|
isOwner: d,
|
|
798
|
-
axis:
|
|
798
|
+
axis: y ? "vertical" : "horizontal",
|
|
799
799
|
revert: a,
|
|
800
800
|
dragRect: r,
|
|
801
801
|
targetRect: i,
|
|
802
802
|
canSort: f,
|
|
803
|
-
fromSortable:
|
|
803
|
+
fromSortable: b,
|
|
804
804
|
target: o,
|
|
805
|
-
completed:
|
|
806
|
-
onMove: function(nn,
|
|
807
|
-
return ut(
|
|
805
|
+
completed: w,
|
|
806
|
+
onMove: function(nn, yo) {
|
|
807
|
+
return ut(F, e, g, r, nn, U(nn), n, yo);
|
|
808
808
|
},
|
|
809
|
-
changed:
|
|
810
|
-
},
|
|
809
|
+
changed: k
|
|
810
|
+
}, bo));
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
u("dragOverAnimationCapture"),
|
|
812
|
+
function _() {
|
|
813
|
+
u("dragOverAnimationCapture"), h.captureAnimationState(), h !== b && b.captureAnimationState();
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function w(Ue) {
|
|
816
816
|
return u("dragOverCompleted", {
|
|
817
|
-
insertion:
|
|
818
|
-
}),
|
|
819
|
-
u("dragOverAnimationComplete"),
|
|
820
|
-
}),
|
|
817
|
+
insertion: Ue
|
|
818
|
+
}), Ue && (d ? c._hideClone() : c._showClone(h), h !== b && (oe(g, X ? X.options.ghostClass : c.options.ghostClass, !1), oe(g, l.ghostClass, !0)), X !== h && h !== S.active ? X = h : h === S.active && X && (X = null), b === h && (h._ignoreWhileAnimating = o), h.animateAll(function() {
|
|
819
|
+
u("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
820
|
+
}), h !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (o === g && !g.animated || o === e && !o.animated) && ($e = null), !l.dragoverBubble && !n.rootEl && o !== document && (g.parentNode[ne]._isOutsideThisEl(n.target), !Ue && Oe(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), p = !0;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
|
|
824
|
-
sortable:
|
|
822
|
+
function k() {
|
|
823
|
+
re = le(g), De = le(g, l.draggable), Z({
|
|
824
|
+
sortable: h,
|
|
825
825
|
name: "change",
|
|
826
826
|
toEl: e,
|
|
827
|
-
newIndex:
|
|
828
|
-
newDraggableIndex:
|
|
827
|
+
newIndex: re,
|
|
828
|
+
newDraggableIndex: De,
|
|
829
829
|
originalEvent: n
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), o =
|
|
833
|
-
if (
|
|
834
|
-
return
|
|
835
|
-
if (
|
|
836
|
-
if (
|
|
832
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), o = fe(o, l.draggable, e, !0), u("dragOver"), S.eventCanceled) return p;
|
|
833
|
+
if (g.contains(n.target) || o.animated && o.animatingX && o.animatingY || h._ignoreWhileAnimating === o)
|
|
834
|
+
return w(!1);
|
|
835
|
+
if (bt = !1, c && !l.disabled && (d ? f || (a = z !== F) : X === this || (this.lastPutMode = it.checkPull(this, c, g, n)) && s.checkPut(this, c, g, n))) {
|
|
836
|
+
if (y = this._getDirection(n, o) === "vertical", r = U(g), u("dragOverValid"), S.eventCanceled) return p;
|
|
837
837
|
if (a)
|
|
838
|
-
return
|
|
839
|
-
var
|
|
840
|
-
if (!
|
|
841
|
-
if (
|
|
842
|
-
return
|
|
843
|
-
if (
|
|
844
|
-
return
|
|
845
|
-
} else if (
|
|
846
|
-
var
|
|
847
|
-
if (
|
|
848
|
-
return
|
|
849
|
-
if (o =
|
|
850
|
-
return
|
|
838
|
+
return z = F, _(), this._hideClone(), u("revert"), S.eventCanceled || (Ne ? F.insertBefore(g, Ne) : F.appendChild(g)), w(!0);
|
|
839
|
+
var A = Xt(e, l.draggable);
|
|
840
|
+
if (!A || or(n, y, this) && !A.animated) {
|
|
841
|
+
if (A === g)
|
|
842
|
+
return w(!1);
|
|
843
|
+
if (A && e === n.target && (o = A), o && (i = U(o)), ut(F, e, g, r, o, i, n, !!o) !== !1)
|
|
844
|
+
return _(), A && A.nextSibling ? e.insertBefore(g, A.nextSibling) : e.appendChild(g), z = e, k(), w(!0);
|
|
845
|
+
} else if (A && nr(n, y, this)) {
|
|
846
|
+
var M = Le(e, 0, l, !0);
|
|
847
|
+
if (M === g)
|
|
848
|
+
return w(!1);
|
|
849
|
+
if (o = M, i = U(o), ut(F, e, g, r, o, i, n, !1) !== !1)
|
|
850
|
+
return _(), e.insertBefore(g, M), z = e, k(), w(!0);
|
|
851
851
|
} else if (o.parentNode === e) {
|
|
852
|
-
i =
|
|
853
|
-
var
|
|
854
|
-
|
|
855
|
-
var
|
|
856
|
-
if (
|
|
857
|
-
var
|
|
852
|
+
i = U(o);
|
|
853
|
+
var m = 0, V, x = g.parentNode !== e, E = !qo(g.animated && g.toRect || r, o.animated && o.toRect || i, y), G = y ? "top" : "left", K = un(o, "top", "top") || un(g, "top", "top"), ue = K ? K.scrollTop : void 0;
|
|
854
|
+
$e !== o && (V = i[G], et = !1, lt = !E && l.invertSwap || x), m = rr(n, o, i, y, E ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, lt, $e === o);
|
|
855
|
+
var Y;
|
|
856
|
+
if (m !== 0) {
|
|
857
|
+
var Q = le(g);
|
|
858
858
|
do
|
|
859
|
-
|
|
860
|
-
while (
|
|
859
|
+
Q -= m, Y = z.children[Q];
|
|
860
|
+
while (Y && (D(Y, "display") === "none" || Y === C));
|
|
861
861
|
}
|
|
862
|
-
if (
|
|
863
|
-
return
|
|
864
|
-
|
|
865
|
-
var
|
|
866
|
-
|
|
867
|
-
var
|
|
868
|
-
if (
|
|
869
|
-
return (
|
|
862
|
+
if (m === 0 || Y === o)
|
|
863
|
+
return w(!1);
|
|
864
|
+
$e = o, Qe = m;
|
|
865
|
+
var We = o.nextElementSibling, Se = !1;
|
|
866
|
+
Se = m === 1;
|
|
867
|
+
var at = ut(F, e, g, r, o, i, n, Se);
|
|
868
|
+
if (at !== !1)
|
|
869
|
+
return (at === 1 || at === -1) && (Se = at === 1), Ft = !0, setTimeout(tr, 30), _(), Se && !We ? e.appendChild(g) : o.parentNode.insertBefore(g, Se ? We : o), K && Un(K, 0, ue - K.scrollTop), z = g.parentNode, V !== void 0 && !lt && (ft = Math.abs(V - U(o)[G])), k(), w(!0);
|
|
870
870
|
}
|
|
871
|
-
if (e.contains(
|
|
872
|
-
return
|
|
871
|
+
if (e.contains(g))
|
|
872
|
+
return w(!1);
|
|
873
873
|
}
|
|
874
874
|
return !1;
|
|
875
875
|
},
|
|
876
876
|
_ignoreWhileAnimating: null,
|
|
877
877
|
_offMoveEvents: function() {
|
|
878
|
-
|
|
878
|
+
I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", Oe), I(document, "mousemove", Oe), I(document, "touchmove", Oe);
|
|
879
879
|
},
|
|
880
880
|
_offUpEvents: function() {
|
|
881
881
|
var n = this.el.ownerDocument;
|
|
882
|
-
|
|
882
|
+
I(n, "mouseup", this._onDrop), I(n, "touchend", this._onDrop), I(n, "pointerup", this._onDrop), I(n, "pointercancel", this._onDrop), I(n, "touchcancel", this._onDrop), I(document, "selectstart", this);
|
|
883
883
|
},
|
|
884
884
|
_onDrop: function(n) {
|
|
885
885
|
var e = this.el, o = this.options;
|
|
886
|
-
if (
|
|
886
|
+
if (re = le(g), De = le(g, o.draggable), ee("drop", this, {
|
|
887
887
|
evt: n
|
|
888
|
-
}),
|
|
888
|
+
}), z = g && g.parentNode, re = le(g), De = le(g, o.draggable), S.eventCanceled) {
|
|
889
889
|
this._nulling();
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
|
-
|
|
892
|
+
Me = !1, lt = !1, et = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Bt(this.cloneId), Bt(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ze && D(document.body, "user-select", ""), D(g, "transform", ""), n && (Xe && (n.cancelable && n.preventDefault(), !o.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (F === z || X && X.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), g && (this.nativeDraggable && I(g, "dragend", this), At(g), g.style["will-change"] = "", Xe && !Me && oe(g, X ? X.options.ghostClass : this.options.ghostClass, !1), oe(g, this.options.chosenClass, !1), Z({
|
|
893
893
|
sortable: this,
|
|
894
894
|
name: "unchoose",
|
|
895
|
-
toEl:
|
|
895
|
+
toEl: z,
|
|
896
896
|
newIndex: null,
|
|
897
897
|
newDraggableIndex: null,
|
|
898
898
|
originalEvent: n
|
|
899
|
-
}),
|
|
900
|
-
rootEl:
|
|
899
|
+
}), F !== z ? (re >= 0 && (Z({
|
|
900
|
+
rootEl: z,
|
|
901
901
|
name: "add",
|
|
902
|
-
toEl:
|
|
903
|
-
fromEl:
|
|
902
|
+
toEl: z,
|
|
903
|
+
fromEl: F,
|
|
904
904
|
originalEvent: n
|
|
905
905
|
}), Z({
|
|
906
906
|
sortable: this,
|
|
907
907
|
name: "remove",
|
|
908
|
-
toEl:
|
|
908
|
+
toEl: z,
|
|
909
909
|
originalEvent: n
|
|
910
910
|
}), Z({
|
|
911
|
-
rootEl:
|
|
911
|
+
rootEl: z,
|
|
912
912
|
name: "sort",
|
|
913
|
-
toEl:
|
|
914
|
-
fromEl:
|
|
913
|
+
toEl: z,
|
|
914
|
+
fromEl: F,
|
|
915
915
|
originalEvent: n
|
|
916
916
|
}), Z({
|
|
917
917
|
sortable: this,
|
|
918
918
|
name: "sort",
|
|
919
|
-
toEl:
|
|
919
|
+
toEl: z,
|
|
920
920
|
originalEvent: n
|
|
921
|
-
})), X && X.save()) :
|
|
921
|
+
})), X && X.save()) : re !== Re && re >= 0 && (Z({
|
|
922
922
|
sortable: this,
|
|
923
923
|
name: "update",
|
|
924
|
-
toEl:
|
|
924
|
+
toEl: z,
|
|
925
925
|
originalEvent: n
|
|
926
926
|
}), Z({
|
|
927
927
|
sortable: this,
|
|
928
928
|
name: "sort",
|
|
929
|
-
toEl:
|
|
929
|
+
toEl: z,
|
|
930
930
|
originalEvent: n
|
|
931
|
-
})),
|
|
931
|
+
})), S.active && ((re == null || re === -1) && (re = Re, De = Je), Z({
|
|
932
932
|
sortable: this,
|
|
933
933
|
name: "end",
|
|
934
|
-
toEl:
|
|
934
|
+
toEl: z,
|
|
935
935
|
originalEvent: n
|
|
936
936
|
}), this.save()))), this._nulling();
|
|
937
937
|
},
|
|
938
938
|
_nulling: function() {
|
|
939
|
-
ee("nulling", this),
|
|
939
|
+
ee("nulling", this), F = g = z = C = Ne = B = dt = Ce = Te = ce = Xe = re = De = Re = Je = $e = Qe = X = it = S.dragged = S.ghost = S.clone = S.active = null, wt.forEach(function(n) {
|
|
940
940
|
n.checked = !0;
|
|
941
941
|
}), wt.length = Nt = Pt = 0;
|
|
942
942
|
},
|
|
@@ -948,7 +948,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
948
948
|
break;
|
|
949
949
|
case "dragenter":
|
|
950
950
|
case "dragover":
|
|
951
|
-
|
|
951
|
+
g && (this._onDragOver(n), er(n));
|
|
952
952
|
break;
|
|
953
953
|
case "selectstart":
|
|
954
954
|
n.preventDefault();
|
|
@@ -961,7 +961,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
961
961
|
*/
|
|
962
962
|
toArray: function() {
|
|
963
963
|
for (var n = [], e, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
964
|
-
e = o[r],
|
|
964
|
+
e = o[r], fe(e, a.draggable, this.el, !1) && n.push(e.getAttribute(a.dataIdAttr) || ir(e));
|
|
965
965
|
return n;
|
|
966
966
|
},
|
|
967
967
|
/**
|
|
@@ -972,7 +972,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
972
972
|
var o = {}, r = this.el;
|
|
973
973
|
this.toArray().forEach(function(i, a) {
|
|
974
974
|
var l = r.children[a];
|
|
975
|
-
|
|
975
|
+
fe(l, this.options.draggable, r, !1) && (o[i] = l);
|
|
976
976
|
}, this), e && this.captureAnimationState(), n.forEach(function(i) {
|
|
977
977
|
o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
|
|
978
978
|
}), e && this.animateAll();
|
|
@@ -991,7 +991,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
991
991
|
* @returns {HTMLElement|null}
|
|
992
992
|
*/
|
|
993
993
|
closest: function(n, e) {
|
|
994
|
-
return
|
|
994
|
+
return fe(n, e || this.options.draggable, this.el, !1);
|
|
995
995
|
},
|
|
996
996
|
/**
|
|
997
997
|
* Set/get option
|
|
@@ -1003,7 +1003,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
1003
1003
|
var o = this.options;
|
|
1004
1004
|
if (e === void 0)
|
|
1005
1005
|
return o[n];
|
|
1006
|
-
var r =
|
|
1006
|
+
var r = ot.modifyOption(this, n, e);
|
|
1007
1007
|
typeof r < "u" ? o[n] = r : o[n] = e, n === "group" && Zn(o);
|
|
1008
1008
|
},
|
|
1009
1009
|
/**
|
|
@@ -1012,14 +1012,14 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
1012
1012
|
destroy: function() {
|
|
1013
1013
|
ee("destroy", this);
|
|
1014
1014
|
var n = this.el;
|
|
1015
|
-
n[
|
|
1015
|
+
n[ne] = null, I(n, "mousedown", this._onTapStart), I(n, "touchstart", this._onTapStart), I(n, "pointerdown", this._onTapStart), this.nativeDraggable && (I(n, "dragover", this), I(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(e) {
|
|
1016
1016
|
e.removeAttribute("draggable");
|
|
1017
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1017
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), yt.splice(yt.indexOf(this.el), 1), this.el = n = null;
|
|
1018
1018
|
},
|
|
1019
1019
|
_hideClone: function() {
|
|
1020
|
-
if (!
|
|
1021
|
-
if (ee("hideClone", this),
|
|
1022
|
-
|
|
1020
|
+
if (!Ce) {
|
|
1021
|
+
if (ee("hideClone", this), S.eventCanceled) return;
|
|
1022
|
+
D(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Ce = !0;
|
|
1023
1023
|
}
|
|
1024
1024
|
},
|
|
1025
1025
|
_showClone: function(n) {
|
|
@@ -1027,9 +1027,9 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
1027
1027
|
this._hideClone();
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
|
-
if (
|
|
1031
|
-
if (ee("showClone", this),
|
|
1032
|
-
|
|
1030
|
+
if (Ce) {
|
|
1031
|
+
if (ee("showClone", this), S.eventCanceled) return;
|
|
1032
|
+
g.parentNode == F && !this.options.group.revertClone ? F.insertBefore(B, g) : Ne ? F.insertBefore(B, Ne) : F.appendChild(B), this.options.group.revertClone && this.animate(g, B), D(B, "display", ""), Ce = !1;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
@@ -1037,11 +1037,11 @@ function er(t) {
|
|
|
1037
1037
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1038
1038
|
}
|
|
1039
1039
|
function ut(t, n, e, o, r, i, a, l) {
|
|
1040
|
-
var s, c = t[
|
|
1041
|
-
return window.CustomEvent && !
|
|
1040
|
+
var s, c = t[ne], d = c.options.onMove, f;
|
|
1041
|
+
return window.CustomEvent && !Ee && !nt ? s = new CustomEvent("move", {
|
|
1042
1042
|
bubbles: !0,
|
|
1043
1043
|
cancelable: !0
|
|
1044
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = n, s.from = t, s.dragged = e, s.draggedRect = o, s.related = r || n, s.relatedRect = i ||
|
|
1044
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = n, s.from = t, s.dragged = e, s.draggedRect = o, s.related = r || n, s.relatedRect = i || U(n), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), d && (f = d.call(c, s, a)), f;
|
|
1045
1045
|
}
|
|
1046
1046
|
function At(t) {
|
|
1047
1047
|
t.draggable = !1;
|
|
@@ -1050,28 +1050,28 @@ function tr() {
|
|
|
1050
1050
|
Ft = !1;
|
|
1051
1051
|
}
|
|
1052
1052
|
function nr(t, n, e) {
|
|
1053
|
-
var o =
|
|
1053
|
+
var o = U(Le(e.el, 0, e.options, !0)), r = Hn(e.el, e.options, C), i = 10;
|
|
1054
1054
|
return n ? t.clientX < r.left - i || t.clientY < o.top && t.clientX < o.right : t.clientY < r.top - i || t.clientY < o.bottom && t.clientX < o.left;
|
|
1055
1055
|
}
|
|
1056
1056
|
function or(t, n, e) {
|
|
1057
|
-
var o =
|
|
1057
|
+
var o = U(Xt(e.el, e.options.draggable)), r = Hn(e.el, e.options, C), i = 10;
|
|
1058
1058
|
return n ? t.clientX > r.right + i || t.clientY > o.bottom && t.clientX > o.left : t.clientY > r.bottom + i || t.clientX > o.right && t.clientY > o.top;
|
|
1059
1059
|
}
|
|
1060
1060
|
function rr(t, n, e, o, r, i, a, l) {
|
|
1061
|
-
var s = o ? t.clientY : t.clientX, c = o ? e.height : e.width, d = o ? e.top : e.left, f = o ? e.bottom : e.right,
|
|
1061
|
+
var s = o ? t.clientY : t.clientX, c = o ? e.height : e.width, d = o ? e.top : e.left, f = o ? e.bottom : e.right, b = !1;
|
|
1062
1062
|
if (!a) {
|
|
1063
1063
|
if (l && ft < c * r) {
|
|
1064
|
-
if (!
|
|
1065
|
-
|
|
1066
|
-
else if (
|
|
1067
|
-
return -
|
|
1064
|
+
if (!et && (Qe === 1 ? s > d + c * i / 2 : s < f - c * i / 2) && (et = !0), et)
|
|
1065
|
+
b = !0;
|
|
1066
|
+
else if (Qe === 1 ? s < d + ft : s > f - ft)
|
|
1067
|
+
return -Qe;
|
|
1068
1068
|
} else if (s > d + c * (1 - r) / 2 && s < f - c * (1 - r) / 2)
|
|
1069
1069
|
return ar(n);
|
|
1070
1070
|
}
|
|
1071
|
-
return
|
|
1071
|
+
return b = b || a, b && (s < d + c * i / 2 || s > f - c * i / 2) ? s > d + c / 2 ? 1 : -1 : 0;
|
|
1072
1072
|
}
|
|
1073
1073
|
function ar(t) {
|
|
1074
|
-
return
|
|
1074
|
+
return le(g) < le(t) ? 1 : -1;
|
|
1075
1075
|
}
|
|
1076
1076
|
function ir(t) {
|
|
1077
1077
|
for (var n = t.tagName + t.className + t.src + t.href + t.textContent, e = n.length, o = 0; e--; )
|
|
@@ -1091,46 +1091,46 @@ function pt(t) {
|
|
|
1091
1091
|
function Bt(t) {
|
|
1092
1092
|
return clearTimeout(t);
|
|
1093
1093
|
}
|
|
1094
|
-
xt &&
|
|
1095
|
-
(
|
|
1094
|
+
xt && N(document, "touchmove", function(t) {
|
|
1095
|
+
(S.active || Me) && t.cancelable && t.preventDefault();
|
|
1096
1096
|
});
|
|
1097
|
-
|
|
1098
|
-
on:
|
|
1099
|
-
off:
|
|
1100
|
-
css:
|
|
1097
|
+
S.utils = {
|
|
1098
|
+
on: N,
|
|
1099
|
+
off: I,
|
|
1100
|
+
css: D,
|
|
1101
1101
|
find: Yn,
|
|
1102
1102
|
is: function(n, e) {
|
|
1103
|
-
return !!
|
|
1103
|
+
return !!fe(n, e, n, !1);
|
|
1104
1104
|
},
|
|
1105
1105
|
extend: Yo,
|
|
1106
1106
|
throttle: Wn,
|
|
1107
|
-
closest:
|
|
1108
|
-
toggleClass:
|
|
1107
|
+
closest: fe,
|
|
1108
|
+
toggleClass: oe,
|
|
1109
1109
|
clone: Xn,
|
|
1110
|
-
index:
|
|
1110
|
+
index: le,
|
|
1111
1111
|
nextTick: pt,
|
|
1112
1112
|
cancelNextTick: Bt,
|
|
1113
1113
|
detectDirection: Kn,
|
|
1114
|
-
getChild:
|
|
1115
|
-
expando:
|
|
1114
|
+
getChild: Le,
|
|
1115
|
+
expando: ne
|
|
1116
1116
|
};
|
|
1117
|
-
|
|
1118
|
-
return t[
|
|
1117
|
+
S.get = function(t) {
|
|
1118
|
+
return t[ne];
|
|
1119
1119
|
};
|
|
1120
|
-
|
|
1120
|
+
S.mount = function() {
|
|
1121
1121
|
for (var t = arguments.length, n = new Array(t), e = 0; e < t; e++)
|
|
1122
1122
|
n[e] = arguments[e];
|
|
1123
1123
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(o) {
|
|
1124
1124
|
if (!o.prototype || !o.prototype.constructor)
|
|
1125
1125
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1126
|
-
o.utils && (
|
|
1126
|
+
o.utils && (S.utils = be(be({}, S.utils), o.utils)), ot.mount(o);
|
|
1127
1127
|
});
|
|
1128
1128
|
};
|
|
1129
|
-
|
|
1130
|
-
return new
|
|
1129
|
+
S.create = function(t, n) {
|
|
1130
|
+
return new S(t, n);
|
|
1131
1131
|
};
|
|
1132
|
-
|
|
1133
|
-
var
|
|
1132
|
+
S.version = Lo;
|
|
1133
|
+
var W = [], He, Vt, zt = !1, $t, Mt, _t, Ge;
|
|
1134
1134
|
function sr() {
|
|
1135
1135
|
function t() {
|
|
1136
1136
|
this.defaults = {
|
|
@@ -1146,71 +1146,71 @@ function sr() {
|
|
|
1146
1146
|
return t.prototype = {
|
|
1147
1147
|
dragStarted: function(e) {
|
|
1148
1148
|
var o = e.originalEvent;
|
|
1149
|
-
this.sortable.nativeDraggable ?
|
|
1149
|
+
this.sortable.nativeDraggable ? N(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? N(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? N(document, "touchmove", this._handleFallbackAutoScroll) : N(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1150
1150
|
},
|
|
1151
1151
|
dragOverCompleted: function(e) {
|
|
1152
1152
|
var o = e.originalEvent;
|
|
1153
1153
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1154
1154
|
},
|
|
1155
1155
|
drop: function() {
|
|
1156
|
-
this.sortable.nativeDraggable ?
|
|
1156
|
+
this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), hn(), ht(), Wo();
|
|
1157
1157
|
},
|
|
1158
1158
|
nulling: function() {
|
|
1159
|
-
_t = Vt =
|
|
1159
|
+
_t = Vt = He = zt = Ge = $t = Mt = null, W.length = 0;
|
|
1160
1160
|
},
|
|
1161
1161
|
_handleFallbackAutoScroll: function(e) {
|
|
1162
1162
|
this._handleAutoScroll(e, !0);
|
|
1163
1163
|
},
|
|
1164
1164
|
_handleAutoScroll: function(e, o) {
|
|
1165
1165
|
var r = this, i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = document.elementFromPoint(i, a);
|
|
1166
|
-
if (_t = e, o || this.options.forceAutoScrollFallback ||
|
|
1166
|
+
if (_t = e, o || this.options.forceAutoScrollFallback || nt || Ee || Ze) {
|
|
1167
1167
|
Rt(e, this.options, l, o);
|
|
1168
|
-
var s =
|
|
1169
|
-
zt && (!
|
|
1170
|
-
var c =
|
|
1168
|
+
var s = xe(l, !0);
|
|
1169
|
+
zt && (!Ge || i !== $t || a !== Mt) && (Ge && hn(), Ge = setInterval(function() {
|
|
1170
|
+
var c = xe(document.elementFromPoint(i, a), !0);
|
|
1171
1171
|
c !== s && (s = c, ht()), Rt(e, r.options, c, o);
|
|
1172
1172
|
}, 10), $t = i, Mt = a);
|
|
1173
1173
|
} else {
|
|
1174
|
-
if (!this.options.bubbleScroll ||
|
|
1174
|
+
if (!this.options.bubbleScroll || xe(l, !0) === me()) {
|
|
1175
1175
|
ht();
|
|
1176
1176
|
return;
|
|
1177
1177
|
}
|
|
1178
|
-
Rt(e, this.options,
|
|
1178
|
+
Rt(e, this.options, xe(l, !1), !1);
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
},
|
|
1181
|
+
}, _e(t, {
|
|
1182
1182
|
pluginName: "scroll",
|
|
1183
1183
|
initializeByDefault: !0
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
1186
|
function ht() {
|
|
1187
|
-
|
|
1187
|
+
W.forEach(function(t) {
|
|
1188
1188
|
clearInterval(t.pid);
|
|
1189
|
-
}),
|
|
1189
|
+
}), W = [];
|
|
1190
1190
|
}
|
|
1191
1191
|
function hn() {
|
|
1192
|
-
clearInterval(
|
|
1192
|
+
clearInterval(Ge);
|
|
1193
1193
|
}
|
|
1194
1194
|
var Rt = Wn(function(t, n, e, o) {
|
|
1195
1195
|
if (n.scroll) {
|
|
1196
|
-
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = n.scrollSensitivity, l = n.scrollSpeed, s =
|
|
1197
|
-
Vt !== e && (Vt = e, ht(),
|
|
1198
|
-
var f = 0,
|
|
1196
|
+
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = n.scrollSensitivity, l = n.scrollSpeed, s = me(), c = !1, d;
|
|
1197
|
+
Vt !== e && (Vt = e, ht(), He = n.scroll, d = n.scrollFn, He === !0 && (He = xe(e, !0)));
|
|
1198
|
+
var f = 0, b = He;
|
|
1199
1199
|
do {
|
|
1200
|
-
var
|
|
1201
|
-
|
|
1202
|
-
var
|
|
1203
|
-
if (!
|
|
1204
|
-
for (var
|
|
1205
|
-
|
|
1206
|
-
(
|
|
1207
|
-
o && this.layer === 0 &&
|
|
1208
|
-
var
|
|
1209
|
-
typeof d == "function" && d.call(
|
|
1200
|
+
var y = b, h = U(y), p = h.top, u = h.bottom, _ = h.left, w = h.right, k = h.width, A = h.height, M = void 0, m = void 0, V = y.scrollWidth, x = y.scrollHeight, E = D(y), G = y.scrollLeft, K = y.scrollTop;
|
|
1201
|
+
y === s ? (M = k < V && (E.overflowX === "auto" || E.overflowX === "scroll" || E.overflowX === "visible"), m = A < x && (E.overflowY === "auto" || E.overflowY === "scroll" || E.overflowY === "visible")) : (M = k < V && (E.overflowX === "auto" || E.overflowX === "scroll"), m = A < x && (E.overflowY === "auto" || E.overflowY === "scroll"));
|
|
1202
|
+
var ue = M && (Math.abs(w - r) <= a && G + k < V) - (Math.abs(_ - r) <= a && !!G), Y = m && (Math.abs(u - i) <= a && K + A < x) - (Math.abs(p - i) <= a && !!K);
|
|
1203
|
+
if (!W[f])
|
|
1204
|
+
for (var Q = 0; Q <= f; Q++)
|
|
1205
|
+
W[Q] || (W[Q] = {});
|
|
1206
|
+
(W[f].vx != ue || W[f].vy != Y || W[f].el !== y) && (W[f].el = y, W[f].vx = ue, W[f].vy = Y, clearInterval(W[f].pid), (ue != 0 || Y != 0) && (c = !0, W[f].pid = setInterval((function() {
|
|
1207
|
+
o && this.layer === 0 && S.active._onTouchMove(_t);
|
|
1208
|
+
var We = W[this.layer].vy ? W[this.layer].vy * l : 0, Se = W[this.layer].vx ? W[this.layer].vx * l : 0;
|
|
1209
|
+
typeof d == "function" && d.call(S.dragged.parentNode[ne], Se, We, t, _t, W[this.layer].el) !== "continue" || Un(W[this.layer].el, Se, We);
|
|
1210
1210
|
}).bind({
|
|
1211
1211
|
layer: f
|
|
1212
1212
|
}), 24))), f++;
|
|
1213
|
-
} while (n.bubbleScroll &&
|
|
1213
|
+
} while (n.bubbleScroll && b !== s && (b = xe(b, !1)));
|
|
1214
1214
|
zt = c;
|
|
1215
1215
|
}
|
|
1216
1216
|
}, 30), Qn = function(n) {
|
|
@@ -1236,12 +1236,12 @@ Ht.prototype = {
|
|
|
1236
1236
|
onSpill: function(n) {
|
|
1237
1237
|
var e = n.dragEl, o = n.putSortable;
|
|
1238
1238
|
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1239
|
-
var r =
|
|
1239
|
+
var r = Le(this.sortable.el, this.startIndex, this.options);
|
|
1240
1240
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), o && o.animateAll();
|
|
1241
1241
|
},
|
|
1242
1242
|
drop: Qn
|
|
1243
1243
|
};
|
|
1244
|
-
|
|
1244
|
+
_e(Ht, {
|
|
1245
1245
|
pluginName: "revertOnSpill"
|
|
1246
1246
|
});
|
|
1247
1247
|
function Gt() {
|
|
@@ -1253,46 +1253,46 @@ Gt.prototype = {
|
|
|
1253
1253
|
},
|
|
1254
1254
|
drop: Qn
|
|
1255
1255
|
};
|
|
1256
|
-
|
|
1256
|
+
_e(Gt, {
|
|
1257
1257
|
pluginName: "removeOnSpill"
|
|
1258
1258
|
});
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const eo = Symbol(), gt = "el", ur = "is-",
|
|
1259
|
+
S.mount(new sr());
|
|
1260
|
+
S.mount(Gt, Ht);
|
|
1261
|
+
const eo = Symbol(), gt = "el", ur = "is-", Ie = (t, n, e, o, r) => {
|
|
1262
1262
|
let i = `${t}-${n}`;
|
|
1263
1263
|
return e && (i += `-${e}`), o && (i += `__${o}`), r && (i += `--${r}`), i;
|
|
1264
1264
|
}, to = Symbol("namespaceContextKey"), cr = (t) => {
|
|
1265
|
-
const n = t || (
|
|
1266
|
-
return
|
|
1265
|
+
const n = t || (Ve() ? Fe(to, P(gt)) : P(gt));
|
|
1266
|
+
return R(() => T(n) || gt);
|
|
1267
1267
|
}, Kt = (t, n) => {
|
|
1268
1268
|
const e = cr(n);
|
|
1269
1269
|
return {
|
|
1270
1270
|
namespace: e,
|
|
1271
|
-
b: (
|
|
1272
|
-
e: (
|
|
1273
|
-
m: (
|
|
1274
|
-
be: (
|
|
1275
|
-
em: (
|
|
1276
|
-
bm: (
|
|
1277
|
-
bem: (
|
|
1278
|
-
is: (
|
|
1279
|
-
const
|
|
1280
|
-
return
|
|
1271
|
+
b: (p = "") => Ie(e.value, t, p, "", ""),
|
|
1272
|
+
e: (p) => p ? Ie(e.value, t, "", p, "") : "",
|
|
1273
|
+
m: (p) => p ? Ie(e.value, t, "", "", p) : "",
|
|
1274
|
+
be: (p, u) => p && u ? Ie(e.value, t, p, u, "") : "",
|
|
1275
|
+
em: (p, u) => p && u ? Ie(e.value, t, "", p, u) : "",
|
|
1276
|
+
bm: (p, u) => p && u ? Ie(e.value, t, p, "", u) : "",
|
|
1277
|
+
bem: (p, u, _) => p && u && _ ? Ie(e.value, t, p, u, _) : "",
|
|
1278
|
+
is: (p, ...u) => {
|
|
1279
|
+
const _ = u.length >= 1 ? u[0] : !0;
|
|
1280
|
+
return p && _ ? `${ur}${p}` : "";
|
|
1281
1281
|
},
|
|
1282
|
-
cssVar: (
|
|
1282
|
+
cssVar: (p) => {
|
|
1283
1283
|
const u = {};
|
|
1284
|
-
for (const
|
|
1285
|
-
|
|
1284
|
+
for (const _ in p)
|
|
1285
|
+
p[_] && (u[`--${e.value}-${_}`] = p[_]);
|
|
1286
1286
|
return u;
|
|
1287
1287
|
},
|
|
1288
|
-
cssVarName: (
|
|
1289
|
-
cssVarBlock: (
|
|
1288
|
+
cssVarName: (p) => `--${e.value}-${p}`,
|
|
1289
|
+
cssVarBlock: (p) => {
|
|
1290
1290
|
const u = {};
|
|
1291
|
-
for (const
|
|
1292
|
-
|
|
1291
|
+
for (const _ in p)
|
|
1292
|
+
p[_] && (u[`--${e.value}-${t}-${_}`] = p[_]);
|
|
1293
1293
|
return u;
|
|
1294
1294
|
},
|
|
1295
|
-
cssVarBlockName: (
|
|
1295
|
+
cssVarBlockName: (p) => `--${e.value}-${t}-${p}`
|
|
1296
1296
|
};
|
|
1297
1297
|
};
|
|
1298
1298
|
/**
|
|
@@ -1302,7 +1302,7 @@ const eo = Symbol(), gt = "el", ur = "is-", Pe = (t, n, e, o, r) => {
|
|
|
1302
1302
|
**/
|
|
1303
1303
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1304
1304
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1305
|
-
const dr = Object.prototype.hasOwnProperty, gn = (t, n) => dr.call(t, n), Et = (t) => typeof t == "function",
|
|
1305
|
+
const dr = Object.prototype.hasOwnProperty, gn = (t, n) => dr.call(t, n), Et = (t) => typeof t == "function", tt = (t) => typeof t == "string", no = (t) => t !== null && typeof t == "object";
|
|
1306
1306
|
var fr = "[object Symbol]";
|
|
1307
1307
|
function Zt(t) {
|
|
1308
1308
|
return typeof t == "symbol" || No(t) && Po(t) == fr;
|
|
@@ -1344,14 +1344,14 @@ function qt(t, n) {
|
|
|
1344
1344
|
return e.cache = new (qt.Cache || Vn)(), e;
|
|
1345
1345
|
}
|
|
1346
1346
|
qt.Cache = Vn;
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1347
|
+
var br = 500;
|
|
1348
|
+
function yr(t) {
|
|
1349
1349
|
var n = qt(t, function(o) {
|
|
1350
|
-
return e.size ===
|
|
1350
|
+
return e.size === br && e.clear(), o;
|
|
1351
1351
|
}), e = n.cache;
|
|
1352
1352
|
return n;
|
|
1353
1353
|
}
|
|
1354
|
-
var wr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _r = /\\(\\)?/g, Er =
|
|
1354
|
+
var wr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _r = /\\(\\)?/g, Er = yr(function(t) {
|
|
1355
1355
|
var n = [];
|
|
1356
1356
|
return t.charCodeAt(0) === 46 && n.push(""), t.replace(wr, function(e, o, r, i) {
|
|
1357
1357
|
n.push(r ? i.replace(_r, "$1") : o || e);
|
|
@@ -1386,13 +1386,13 @@ function Or(t) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return o;
|
|
1388
1388
|
}
|
|
1389
|
-
const Ir = (t) => t === void 0,
|
|
1390
|
-
var
|
|
1391
|
-
const
|
|
1389
|
+
const Ir = (t) => t === void 0, bn = (t) => typeof t == "boolean", Pe = (t) => typeof t == "number", Nr = (t) => typeof Element > "u" ? !1 : t instanceof Element, Pr = (t) => tt(t) ? !Number.isNaN(Number(t)) : !1;
|
|
1390
|
+
var yn;
|
|
1391
|
+
const Ye = typeof window < "u", kr = (t) => typeof t == "string", Ar = () => {
|
|
1392
1392
|
};
|
|
1393
|
-
|
|
1393
|
+
Ye && ((yn = window == null ? void 0 : window.navigator) != null && yn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1394
1394
|
function Jt(t) {
|
|
1395
|
-
return typeof t == "function" ? t() :
|
|
1395
|
+
return typeof t == "function" ? t() : T(t);
|
|
1396
1396
|
}
|
|
1397
1397
|
function $r(t) {
|
|
1398
1398
|
return t;
|
|
@@ -1401,12 +1401,12 @@ function Qt(t) {
|
|
|
1401
1401
|
return _o() ? (Eo(t), !0) : !1;
|
|
1402
1402
|
}
|
|
1403
1403
|
function Mr(t, n = !0) {
|
|
1404
|
-
|
|
1404
|
+
Ve() ? Dt(t) : n ? t() : Ke(t);
|
|
1405
1405
|
}
|
|
1406
1406
|
function Rr(t, n, e = {}) {
|
|
1407
1407
|
const {
|
|
1408
1408
|
immediate: o = !0
|
|
1409
|
-
} = e, r =
|
|
1409
|
+
} = e, r = P(!1);
|
|
1410
1410
|
let i = null;
|
|
1411
1411
|
function a() {
|
|
1412
1412
|
i && (clearTimeout(i), i = null);
|
|
@@ -1419,7 +1419,7 @@ function Rr(t, n, e = {}) {
|
|
|
1419
1419
|
r.value = !1, i = null, t(...c);
|
|
1420
1420
|
}, Jt(n));
|
|
1421
1421
|
}
|
|
1422
|
-
return o && (r.value = !0,
|
|
1422
|
+
return o && (r.value = !0, Ye && s()), Qt(l), {
|
|
1423
1423
|
isPending: wo(r),
|
|
1424
1424
|
start: s,
|
|
1425
1425
|
stop: l
|
|
@@ -1430,7 +1430,7 @@ function ro(t) {
|
|
|
1430
1430
|
const e = Jt(t);
|
|
1431
1431
|
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
1432
1432
|
}
|
|
1433
|
-
const ao =
|
|
1433
|
+
const ao = Ye ? window : void 0;
|
|
1434
1434
|
function Fr(...t) {
|
|
1435
1435
|
let n, e, o, r;
|
|
1436
1436
|
if (kr(t[0]) || Array.isArray(t[0]) ? ([e, o, r] = t, n = ao) : [n, e, o, r] = t, !n)
|
|
@@ -1438,15 +1438,15 @@ function Fr(...t) {
|
|
|
1438
1438
|
Array.isArray(e) || (e = [e]), Array.isArray(o) || (o = [o]);
|
|
1439
1439
|
const i = [], a = () => {
|
|
1440
1440
|
i.forEach((d) => d()), i.length = 0;
|
|
1441
|
-
}, l = (d, f,
|
|
1442
|
-
a(), d && i.push(...e.flatMap((
|
|
1441
|
+
}, l = (d, f, b, y) => (d.addEventListener(f, b, y), () => d.removeEventListener(f, b, y)), s = ve(() => [ro(n), Jt(r)], ([d, f]) => {
|
|
1442
|
+
a(), d && i.push(...e.flatMap((b) => o.map((y) => l(d, b, y, f))));
|
|
1443
1443
|
}, { immediate: !0, flush: "post" }), c = () => {
|
|
1444
1444
|
s(), a();
|
|
1445
1445
|
};
|
|
1446
1446
|
return Qt(c), c;
|
|
1447
1447
|
}
|
|
1448
1448
|
function Br(t, n = !1) {
|
|
1449
|
-
const e =
|
|
1449
|
+
const e = P(), o = () => e.value = !!t();
|
|
1450
1450
|
return o(), Mr(o, n), e;
|
|
1451
1451
|
}
|
|
1452
1452
|
const wn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _n = "__vueuse_ssr_handlers__";
|
|
@@ -1465,7 +1465,7 @@ function jr(t, n, e = {}) {
|
|
|
1465
1465
|
let a;
|
|
1466
1466
|
const l = Br(() => r && "ResizeObserver" in r), s = () => {
|
|
1467
1467
|
a && (a.disconnect(), a = void 0);
|
|
1468
|
-
}, c =
|
|
1468
|
+
}, c = ve(() => ro(t), (f) => {
|
|
1469
1469
|
s(), l.value && r && f && (a = new ResizeObserver(n), a.observe(f, i));
|
|
1470
1470
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
1471
1471
|
s(), c();
|
|
@@ -1523,18 +1523,18 @@ class Gr extends Error {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
function Tt(t, n) {
|
|
1525
1525
|
if (process.env.NODE_ENV !== "production") {
|
|
1526
|
-
const e =
|
|
1526
|
+
const e = tt(t) ? new Gr(`[${t}] ${n}`) : t;
|
|
1527
1527
|
console.warn(e);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
const xn = {
|
|
1531
1531
|
current: 0
|
|
1532
|
-
}, Tn =
|
|
1533
|
-
const n =
|
|
1534
|
-
const a =
|
|
1535
|
-
return
|
|
1536
|
-
}), r =
|
|
1537
|
-
return !
|
|
1532
|
+
}, Tn = P(0), io = 2e3, On = Symbol("elZIndexContextKey"), lo = Symbol("zIndexContextKey"), Kr = (t) => {
|
|
1533
|
+
const n = Ve() ? Fe(On, xn) : xn, e = t || (Ve() ? Fe(lo, void 0) : void 0), o = R(() => {
|
|
1534
|
+
const a = T(e);
|
|
1535
|
+
return Pe(a) ? a : io;
|
|
1536
|
+
}), r = R(() => o.value + Tn.value), i = () => (n.current++, Tn.value = n.current, r.value);
|
|
1537
|
+
return !Ye && !Fe(On) && Tt("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
1538
1538
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
1539
1539
|
initialZIndex: o,
|
|
1540
1540
|
currentZIndex: r,
|
|
@@ -1720,20 +1720,20 @@ var Zr = {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
const qr = (t) => (n, e) => Jr(n, e,
|
|
1723
|
+
const qr = (t) => (n, e) => Jr(n, e, T(t)), Jr = (t, n, e) => Tr(e, t, t).replace(/\{(\w+)\}/g, (o, r) => {
|
|
1724
1724
|
var i;
|
|
1725
1725
|
return `${(i = n == null ? void 0 : n[r]) != null ? i : `{${r}}`}`;
|
|
1726
1726
|
}), Qr = (t) => {
|
|
1727
|
-
const n =
|
|
1727
|
+
const n = R(() => T(t).name), e = So(t) ? t : P(t);
|
|
1728
1728
|
return {
|
|
1729
1729
|
lang: n,
|
|
1730
1730
|
locale: e,
|
|
1731
1731
|
t: qr(t)
|
|
1732
1732
|
};
|
|
1733
1733
|
}, so = Symbol("localeContextKey"), ea = (t) => {
|
|
1734
|
-
const n = t ||
|
|
1735
|
-
return Qr(
|
|
1736
|
-
}, uo = "__epPropKey",
|
|
1734
|
+
const n = t || Fe(so, P());
|
|
1735
|
+
return Qr(R(() => n.value || Zr));
|
|
1736
|
+
}, uo = "__epPropKey", ge = (t) => t, ta = (t) => no(t) && !!t[uo], co = (t, n) => {
|
|
1737
1737
|
if (!no(t) || ta(t))
|
|
1738
1738
|
return t;
|
|
1739
1739
|
const { values: e, required: o, default: r, type: i, validator: a } = t, s = {
|
|
@@ -1742,47 +1742,47 @@ const qr = (t) => (n, e) => Jr(n, e, x(t)), Jr = (t, n, e) => Tr(e, t, t).replac
|
|
|
1742
1742
|
validator: e || a ? (c) => {
|
|
1743
1743
|
let d = !1, f = [];
|
|
1744
1744
|
if (e && (f = Array.from(e), gn(t, "default") && f.push(r), d || (d = f.includes(c))), a && (d || (d = a(c))), !d && f.length > 0) {
|
|
1745
|
-
const
|
|
1746
|
-
Do(`Invalid prop: validation failed${n ? ` for prop "${n}"` : ""}. Expected one of [${
|
|
1745
|
+
const b = [...new Set(f)].map((y) => JSON.stringify(y)).join(", ");
|
|
1746
|
+
Do(`Invalid prop: validation failed${n ? ` for prop "${n}"` : ""}. Expected one of [${b}], got value ${JSON.stringify(c)}.`);
|
|
1747
1747
|
}
|
|
1748
1748
|
return d;
|
|
1749
1749
|
} : void 0,
|
|
1750
1750
|
[uo]: !0
|
|
1751
1751
|
};
|
|
1752
1752
|
return gn(t, "default") && (s.default = r), s;
|
|
1753
|
-
},
|
|
1753
|
+
}, rt = (t) => Or(Object.entries(t).map(([n, e]) => [
|
|
1754
1754
|
n,
|
|
1755
1755
|
co(e, n)
|
|
1756
1756
|
])), na = ["", "default", "small", "large"], oa = co({
|
|
1757
1757
|
type: String,
|
|
1758
1758
|
values: na,
|
|
1759
1759
|
required: !1
|
|
1760
|
-
}), ra = Symbol("size"), aa = Symbol("emptyValuesContextKey"), ia =
|
|
1760
|
+
}), ra = Symbol("size"), aa = Symbol("emptyValuesContextKey"), ia = rt({
|
|
1761
1761
|
emptyValues: Array,
|
|
1762
1762
|
valueOnClear: {
|
|
1763
1763
|
type: [String, Number, Boolean, Function],
|
|
1764
1764
|
default: void 0,
|
|
1765
1765
|
validator: (t) => Et(t) ? !t() : !t
|
|
1766
1766
|
}
|
|
1767
|
-
}), In = (t) => Object.keys(t), St =
|
|
1767
|
+
}), In = (t) => Object.keys(t), St = P();
|
|
1768
1768
|
function fo(t, n = void 0) {
|
|
1769
|
-
return
|
|
1769
|
+
return Ve() ? Fe(eo, St) : St;
|
|
1770
1770
|
}
|
|
1771
1771
|
function la(t, n) {
|
|
1772
|
-
const e = fo(), o = Kt(t,
|
|
1772
|
+
const e = fo(), o = Kt(t, R(() => {
|
|
1773
1773
|
var l;
|
|
1774
1774
|
return ((l = e.value) == null ? void 0 : l.namespace) || gt;
|
|
1775
|
-
})), r = ea(
|
|
1775
|
+
})), r = ea(R(() => {
|
|
1776
1776
|
var l;
|
|
1777
1777
|
return (l = e.value) == null ? void 0 : l.locale;
|
|
1778
|
-
})), i = Kr(
|
|
1778
|
+
})), i = Kr(R(() => {
|
|
1779
1779
|
var l;
|
|
1780
1780
|
return ((l = e.value) == null ? void 0 : l.zIndex) || io;
|
|
1781
|
-
})), a =
|
|
1781
|
+
})), a = R(() => {
|
|
1782
1782
|
var l;
|
|
1783
|
-
return
|
|
1783
|
+
return T(n) || ((l = e.value) == null ? void 0 : l.size) || "";
|
|
1784
1784
|
});
|
|
1785
|
-
return po(
|
|
1785
|
+
return po(R(() => T(e) || {})), {
|
|
1786
1786
|
ns: o,
|
|
1787
1787
|
locale: r,
|
|
1788
1788
|
zIndex: i,
|
|
@@ -1791,18 +1791,18 @@ function la(t, n) {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
const po = (t, n, e = !1) => {
|
|
1793
1793
|
var o;
|
|
1794
|
-
const r = !!
|
|
1794
|
+
const r = !!Ve(), i = r ? fo() : void 0, a = (o = void 0) != null ? o : r ? Co : void 0;
|
|
1795
1795
|
if (!a) {
|
|
1796
1796
|
Tt("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
1797
1797
|
return;
|
|
1798
1798
|
}
|
|
1799
|
-
const l =
|
|
1800
|
-
const s =
|
|
1799
|
+
const l = R(() => {
|
|
1800
|
+
const s = T(t);
|
|
1801
1801
|
return i != null && i.value ? sa(i.value, s) : s;
|
|
1802
1802
|
});
|
|
1803
|
-
return a(eo, l), a(so,
|
|
1804
|
-
size:
|
|
1805
|
-
}), a(aa,
|
|
1803
|
+
return a(eo, l), a(so, R(() => l.value.locale)), a(to, R(() => l.value.namespace)), a(lo, R(() => l.value.zIndex)), a(ra, {
|
|
1804
|
+
size: R(() => l.value.size || "")
|
|
1805
|
+
}), a(aa, R(() => ({
|
|
1806
1806
|
emptyValues: l.value.emptyValues,
|
|
1807
1807
|
valueOnClear: l.value.valueOnClear
|
|
1808
1808
|
}))), (e || !St.value) && (St.value = l.value), l;
|
|
@@ -1822,9 +1822,9 @@ const ua = "utils/dom/style";
|
|
|
1822
1822
|
function Lt(t, n = "px") {
|
|
1823
1823
|
if (!t)
|
|
1824
1824
|
return "";
|
|
1825
|
-
if (
|
|
1825
|
+
if (Pe(t) || Pr(t))
|
|
1826
1826
|
return `${t}${n}`;
|
|
1827
|
-
if (
|
|
1827
|
+
if (tt(t))
|
|
1828
1828
|
return t;
|
|
1829
1829
|
Tt(ua, "binding value must be a string or number");
|
|
1830
1830
|
}
|
|
@@ -1833,37 +1833,37 @@ const ho = (t, n) => (t.install = (e) => {
|
|
|
1833
1833
|
e.component(o.name, o);
|
|
1834
1834
|
}, t), ca = (t, n) => (t.install = (e) => {
|
|
1835
1835
|
t._context = e._context, e.config.globalProperties[n] = t;
|
|
1836
|
-
}, t), da =
|
|
1836
|
+
}, t), da = rt({
|
|
1837
1837
|
size: {
|
|
1838
|
-
type:
|
|
1838
|
+
type: ge([Number, String])
|
|
1839
1839
|
},
|
|
1840
1840
|
color: {
|
|
1841
1841
|
type: String
|
|
1842
1842
|
}
|
|
1843
|
-
}), fa =
|
|
1843
|
+
}), fa = ke({
|
|
1844
1844
|
name: "ElIcon",
|
|
1845
1845
|
inheritAttrs: !1
|
|
1846
|
-
}), pa = /* @__PURE__ */
|
|
1846
|
+
}), pa = /* @__PURE__ */ ke({
|
|
1847
1847
|
...fa,
|
|
1848
1848
|
props: da,
|
|
1849
1849
|
setup(t) {
|
|
1850
|
-
const n = t, e = Kt("icon"), o =
|
|
1850
|
+
const n = t, e = Kt("icon"), o = R(() => {
|
|
1851
1851
|
const { size: r, color: i } = n;
|
|
1852
1852
|
return !r && !i ? {} : {
|
|
1853
1853
|
fontSize: Ir(r) ? void 0 : Lt(r),
|
|
1854
1854
|
"--color": i
|
|
1855
1855
|
};
|
|
1856
1856
|
});
|
|
1857
|
-
return (r, i) => (v(),
|
|
1858
|
-
class:
|
|
1859
|
-
style:
|
|
1857
|
+
return (r, i) => (v(), O("i", kn({
|
|
1858
|
+
class: T(e).b(),
|
|
1859
|
+
style: T(o)
|
|
1860
1860
|
}, r.$attrs), [
|
|
1861
|
-
|
|
1861
|
+
se(r.$slots, "default")
|
|
1862
1862
|
], 16));
|
|
1863
1863
|
}
|
|
1864
1864
|
});
|
|
1865
1865
|
var ha = /* @__PURE__ */ en(pa, [["__file", "icon.vue"]]);
|
|
1866
|
-
const Nn = ho(ha), ga =
|
|
1866
|
+
const Nn = ho(ha), ga = ge([
|
|
1867
1867
|
String,
|
|
1868
1868
|
Object,
|
|
1869
1869
|
Function
|
|
@@ -1874,9 +1874,9 @@ const Nn = ho(ha), ga = ve([
|
|
|
1874
1874
|
warning: $o,
|
|
1875
1875
|
error: Ao,
|
|
1876
1876
|
info: ko
|
|
1877
|
-
}, va = (t) => t,
|
|
1877
|
+
}, va = (t) => t, ba = {
|
|
1878
1878
|
esc: "Escape"
|
|
1879
|
-
},
|
|
1879
|
+
}, ya = rt({
|
|
1880
1880
|
value: {
|
|
1881
1881
|
type: [String, Number],
|
|
1882
1882
|
default: ""
|
|
@@ -1898,22 +1898,22 @@ const Nn = ho(ha), ga = ve([
|
|
|
1898
1898
|
},
|
|
1899
1899
|
color: String,
|
|
1900
1900
|
badgeStyle: {
|
|
1901
|
-
type:
|
|
1901
|
+
type: ge([String, Object, Array])
|
|
1902
1902
|
},
|
|
1903
1903
|
offset: {
|
|
1904
|
-
type:
|
|
1904
|
+
type: ge(Array),
|
|
1905
1905
|
default: [0, 0]
|
|
1906
1906
|
},
|
|
1907
1907
|
badgeClass: {
|
|
1908
1908
|
type: String
|
|
1909
1909
|
}
|
|
1910
|
-
}), wa =
|
|
1910
|
+
}), wa = ke({
|
|
1911
1911
|
name: "ElBadge"
|
|
1912
|
-
}), _a = /* @__PURE__ */
|
|
1912
|
+
}), _a = /* @__PURE__ */ ke({
|
|
1913
1913
|
...wa,
|
|
1914
|
-
props:
|
|
1914
|
+
props: ya,
|
|
1915
1915
|
setup(t, { expose: n }) {
|
|
1916
|
-
const e = t, o = Kt("badge"), r =
|
|
1916
|
+
const e = t, o = Kt("badge"), r = R(() => e.isDot ? "" : Pe(e.value) && Pe(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), i = R(() => {
|
|
1917
1917
|
var a, l, s, c, d;
|
|
1918
1918
|
return [
|
|
1919
1919
|
{
|
|
@@ -1926,31 +1926,31 @@ const Nn = ho(ha), ga = ve([
|
|
|
1926
1926
|
});
|
|
1927
1927
|
return n({
|
|
1928
1928
|
content: r
|
|
1929
|
-
}), (a, l) => (v(),
|
|
1930
|
-
class:
|
|
1929
|
+
}), (a, l) => (v(), O("div", {
|
|
1930
|
+
class: ye(T(o).b())
|
|
1931
1931
|
}, [
|
|
1932
|
-
|
|
1932
|
+
se(a.$slots, "default"),
|
|
1933
1933
|
jt(An, {
|
|
1934
|
-
name: `${
|
|
1934
|
+
name: `${T(o).namespace.value}-zoom-in-center`,
|
|
1935
1935
|
persisted: ""
|
|
1936
1936
|
}, {
|
|
1937
|
-
default:
|
|
1937
|
+
default: j(() => [
|
|
1938
1938
|
$n(mt("sup", {
|
|
1939
|
-
class:
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1939
|
+
class: ye([
|
|
1940
|
+
T(o).e("content"),
|
|
1941
|
+
T(o).em("content", a.type),
|
|
1942
|
+
T(o).is("fixed", !!a.$slots.default),
|
|
1943
|
+
T(o).is("dot", a.isDot),
|
|
1944
|
+
T(o).is("hide-zero", !a.showZero && e.value === 0),
|
|
1945
1945
|
a.badgeClass
|
|
1946
1946
|
]),
|
|
1947
|
-
style: te(
|
|
1947
|
+
style: te(T(i))
|
|
1948
1948
|
}, [
|
|
1949
|
-
|
|
1950
|
-
Mn(
|
|
1949
|
+
se(a.$slots, "content", { value: T(r) }, () => [
|
|
1950
|
+
Mn(he(T(r)), 1)
|
|
1951
1951
|
])
|
|
1952
1952
|
], 6), [
|
|
1953
|
-
[Rn, !a.hidden && (
|
|
1953
|
+
[Rn, !a.hidden && (T(r) || a.isDot || a.$slots.content)]
|
|
1954
1954
|
])
|
|
1955
1955
|
]),
|
|
1956
1956
|
_: 3
|
|
@@ -1959,27 +1959,27 @@ const Nn = ho(ha), ga = ve([
|
|
|
1959
1959
|
}
|
|
1960
1960
|
});
|
|
1961
1961
|
var Ea = /* @__PURE__ */ en(_a, [["__file", "badge.vue"]]);
|
|
1962
|
-
const Sa = ho(Ea), Da =
|
|
1962
|
+
const Sa = ho(Ea), Da = rt({
|
|
1963
1963
|
a11y: {
|
|
1964
1964
|
type: Boolean,
|
|
1965
1965
|
default: !0
|
|
1966
1966
|
},
|
|
1967
1967
|
locale: {
|
|
1968
|
-
type:
|
|
1968
|
+
type: ge(Object)
|
|
1969
1969
|
},
|
|
1970
1970
|
size: oa,
|
|
1971
1971
|
button: {
|
|
1972
|
-
type:
|
|
1972
|
+
type: ge(Object)
|
|
1973
1973
|
},
|
|
1974
1974
|
experimentalFeatures: {
|
|
1975
|
-
type:
|
|
1975
|
+
type: ge(Object)
|
|
1976
1976
|
},
|
|
1977
1977
|
keyboardNavigation: {
|
|
1978
1978
|
type: Boolean,
|
|
1979
1979
|
default: !0
|
|
1980
1980
|
},
|
|
1981
1981
|
message: {
|
|
1982
|
-
type:
|
|
1982
|
+
type: ge(Object)
|
|
1983
1983
|
},
|
|
1984
1984
|
zIndex: Number,
|
|
1985
1985
|
namespace: {
|
|
@@ -1987,16 +1987,16 @@ const Sa = ho(Ea), Da = at({
|
|
|
1987
1987
|
default: "el"
|
|
1988
1988
|
},
|
|
1989
1989
|
...ia
|
|
1990
|
-
}),
|
|
1991
|
-
|
|
1990
|
+
}), de = {};
|
|
1991
|
+
ke({
|
|
1992
1992
|
name: "ElConfigProvider",
|
|
1993
1993
|
props: Da,
|
|
1994
1994
|
setup(t, { slots: n }) {
|
|
1995
|
-
|
|
1996
|
-
Object.assign(
|
|
1995
|
+
ve(() => t.message, (o) => {
|
|
1996
|
+
Object.assign(de, o ?? {});
|
|
1997
1997
|
}, { immediate: !0, deep: !0 });
|
|
1998
1998
|
const e = po(t);
|
|
1999
|
-
return () =>
|
|
1999
|
+
return () => se(n, "default", { config: e == null ? void 0 : e.value });
|
|
2000
2000
|
}
|
|
2001
2001
|
});
|
|
2002
2002
|
const go = ["success", "info", "warning", "error"], q = va({
|
|
@@ -2014,8 +2014,8 @@ const go = ["success", "info", "warning", "error"], q = va({
|
|
|
2014
2014
|
zIndex: 0,
|
|
2015
2015
|
grouping: !1,
|
|
2016
2016
|
repeatNum: 1,
|
|
2017
|
-
appendTo:
|
|
2018
|
-
}), Ca =
|
|
2017
|
+
appendTo: Ye ? document.body : void 0
|
|
2018
|
+
}), Ca = rt({
|
|
2019
2019
|
customClass: {
|
|
2020
2020
|
type: String,
|
|
2021
2021
|
default: q.customClass
|
|
@@ -2037,7 +2037,7 @@ const go = ["success", "info", "warning", "error"], q = va({
|
|
|
2037
2037
|
default: q.id
|
|
2038
2038
|
},
|
|
2039
2039
|
message: {
|
|
2040
|
-
type:
|
|
2040
|
+
type: ge([
|
|
2041
2041
|
String,
|
|
2042
2042
|
Object,
|
|
2043
2043
|
Function
|
|
@@ -2045,7 +2045,7 @@ const go = ["success", "info", "warning", "error"], q = va({
|
|
|
2045
2045
|
default: q.message
|
|
2046
2046
|
},
|
|
2047
2047
|
onClose: {
|
|
2048
|
-
type:
|
|
2048
|
+
type: ge(Function),
|
|
2049
2049
|
default: q.onClose
|
|
2050
2050
|
},
|
|
2051
2051
|
showClose: {
|
|
@@ -2079,117 +2079,117 @@ const go = ["success", "info", "warning", "error"], q = va({
|
|
|
2079
2079
|
}
|
|
2080
2080
|
}), xa = {
|
|
2081
2081
|
destroy: () => !0
|
|
2082
|
-
},
|
|
2083
|
-
const n =
|
|
2082
|
+
}, pe = xo([]), Ta = (t) => {
|
|
2083
|
+
const n = pe.findIndex((r) => r.id === t), e = pe[n];
|
|
2084
2084
|
let o;
|
|
2085
|
-
return n > 0 && (o =
|
|
2085
|
+
return n > 0 && (o = pe[n - 1]), { current: e, prev: o };
|
|
2086
2086
|
}, Oa = (t) => {
|
|
2087
2087
|
const { prev: n } = Ta(t);
|
|
2088
2088
|
return n ? n.vm.exposed.bottom.value : 0;
|
|
2089
|
-
}, Ia = (t, n) =>
|
|
2089
|
+
}, Ia = (t, n) => pe.findIndex((o) => o.id === t) > 0 ? 16 : n, Na = ke({
|
|
2090
2090
|
name: "ElMessage"
|
|
2091
|
-
}), Pa = /* @__PURE__ */
|
|
2091
|
+
}), Pa = /* @__PURE__ */ ke({
|
|
2092
2092
|
...Na,
|
|
2093
2093
|
props: Ca,
|
|
2094
2094
|
emits: xa,
|
|
2095
2095
|
setup(t, { expose: n, emit: e }) {
|
|
2096
|
-
const o = t, { Close: r } = ma, i =
|
|
2097
|
-
let
|
|
2098
|
-
const
|
|
2099
|
-
const
|
|
2100
|
-
return { [a.bm("icon",
|
|
2101
|
-
}), u =
|
|
2102
|
-
top: `${
|
|
2096
|
+
const o = t, { Close: r } = ma, i = P(!1), { ns: a, zIndex: l } = la("message"), { currentZIndex: s, nextZIndex: c } = l, d = P(), f = P(!1), b = P(0);
|
|
2097
|
+
let y;
|
|
2098
|
+
const h = R(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), p = R(() => {
|
|
2099
|
+
const E = o.type;
|
|
2100
|
+
return { [a.bm("icon", E)]: E && Pn[E] };
|
|
2101
|
+
}), u = R(() => o.icon || Pn[o.type] || ""), _ = R(() => Oa(o.id)), w = R(() => Ia(o.id, o.offset) + _.value), k = R(() => b.value + w.value), A = R(() => ({
|
|
2102
|
+
top: `${w.value}px`,
|
|
2103
2103
|
zIndex: s.value
|
|
2104
2104
|
}));
|
|
2105
|
-
function
|
|
2106
|
-
o.duration !== 0 && ({ stop:
|
|
2107
|
-
|
|
2105
|
+
function M() {
|
|
2106
|
+
o.duration !== 0 && ({ stop: y } = Rr(() => {
|
|
2107
|
+
V();
|
|
2108
2108
|
}, o.duration));
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2111
|
-
|
|
2110
|
+
function m() {
|
|
2111
|
+
y == null || y();
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2114
|
-
f.value = !1,
|
|
2115
|
-
var
|
|
2116
|
-
i.value || ((
|
|
2113
|
+
function V() {
|
|
2114
|
+
f.value = !1, Ke(() => {
|
|
2115
|
+
var E;
|
|
2116
|
+
i.value || ((E = o.onClose) == null || E.call(o), e("destroy"));
|
|
2117
2117
|
});
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
|
|
2119
|
+
function x({ code: E }) {
|
|
2120
|
+
E === ba.esc && V();
|
|
2121
2121
|
}
|
|
2122
2122
|
return Dt(() => {
|
|
2123
|
-
|
|
2124
|
-
}),
|
|
2125
|
-
|
|
2126
|
-
}), Fr(document, "keydown",
|
|
2127
|
-
|
|
2123
|
+
M(), c(), f.value = !0;
|
|
2124
|
+
}), ve(() => o.repeatNum, () => {
|
|
2125
|
+
m(), M();
|
|
2126
|
+
}), Fr(document, "keydown", x), jr(d, () => {
|
|
2127
|
+
b.value = d.value.getBoundingClientRect().height;
|
|
2128
2128
|
}), n({
|
|
2129
2129
|
visible: f,
|
|
2130
|
-
bottom:
|
|
2131
|
-
close:
|
|
2132
|
-
}), (
|
|
2133
|
-
name:
|
|
2134
|
-
onBeforeEnter: (
|
|
2135
|
-
onBeforeLeave:
|
|
2136
|
-
onAfterLeave: (
|
|
2130
|
+
bottom: k,
|
|
2131
|
+
close: V
|
|
2132
|
+
}), (E, G) => (v(), $(An, {
|
|
2133
|
+
name: T(a).b("fade"),
|
|
2134
|
+
onBeforeEnter: (K) => i.value = !0,
|
|
2135
|
+
onBeforeLeave: E.onClose,
|
|
2136
|
+
onAfterLeave: (K) => E.$emit("destroy"),
|
|
2137
2137
|
persisted: ""
|
|
2138
2138
|
}, {
|
|
2139
|
-
default:
|
|
2139
|
+
default: j(() => [
|
|
2140
2140
|
$n(mt("div", {
|
|
2141
|
-
id:
|
|
2141
|
+
id: E.id,
|
|
2142
2142
|
ref_key: "messageRef",
|
|
2143
2143
|
ref: d,
|
|
2144
|
-
class:
|
|
2145
|
-
|
|
2146
|
-
{ [
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2144
|
+
class: ye([
|
|
2145
|
+
T(a).b(),
|
|
2146
|
+
{ [T(a).m(E.type)]: E.type },
|
|
2147
|
+
T(a).is("closable", E.showClose),
|
|
2148
|
+
T(a).is("plain", E.plain),
|
|
2149
|
+
E.customClass
|
|
2150
2150
|
]),
|
|
2151
|
-
style: te(
|
|
2151
|
+
style: te(T(A)),
|
|
2152
2152
|
role: "alert",
|
|
2153
|
-
onMouseenter:
|
|
2154
|
-
onMouseleave:
|
|
2153
|
+
onMouseenter: m,
|
|
2154
|
+
onMouseleave: M
|
|
2155
2155
|
}, [
|
|
2156
|
-
|
|
2156
|
+
E.repeatNum > 1 ? (v(), $(T(Sa), {
|
|
2157
2157
|
key: 0,
|
|
2158
|
-
value:
|
|
2159
|
-
type:
|
|
2160
|
-
class:
|
|
2161
|
-
}, null, 8, ["value", "type", "class"])) :
|
|
2162
|
-
|
|
2158
|
+
value: E.repeatNum,
|
|
2159
|
+
type: T(h),
|
|
2160
|
+
class: ye(T(a).e("badge"))
|
|
2161
|
+
}, null, 8, ["value", "type", "class"])) : L("v-if", !0),
|
|
2162
|
+
T(u) ? (v(), $(T(Nn), {
|
|
2163
2163
|
key: 1,
|
|
2164
|
-
class:
|
|
2164
|
+
class: ye([T(a).e("icon"), T(p)])
|
|
2165
2165
|
}, {
|
|
2166
|
-
default:
|
|
2167
|
-
(v(),
|
|
2166
|
+
default: j(() => [
|
|
2167
|
+
(v(), $(ze(T(u))))
|
|
2168
2168
|
]),
|
|
2169
2169
|
_: 1
|
|
2170
|
-
}, 8, ["class"])) :
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2170
|
+
}, 8, ["class"])) : L("v-if", !0),
|
|
2171
|
+
se(E.$slots, "default", {}, () => [
|
|
2172
|
+
E.dangerouslyUseHTMLString ? (v(), O(ae, { key: 1 }, [
|
|
2173
|
+
L(" Caution here, message could've been compromised, never use user's input as message "),
|
|
2174
2174
|
mt("p", {
|
|
2175
|
-
class:
|
|
2176
|
-
innerHTML:
|
|
2175
|
+
class: ye(T(a).e("content")),
|
|
2176
|
+
innerHTML: E.message
|
|
2177
2177
|
}, null, 10, ["innerHTML"])
|
|
2178
|
-
], 2112)) : (v(),
|
|
2178
|
+
], 2112)) : (v(), O("p", {
|
|
2179
2179
|
key: 0,
|
|
2180
|
-
class:
|
|
2181
|
-
},
|
|
2180
|
+
class: ye(T(a).e("content"))
|
|
2181
|
+
}, he(E.message), 3))
|
|
2182
2182
|
]),
|
|
2183
|
-
|
|
2183
|
+
E.showClose ? (v(), $(T(Nn), {
|
|
2184
2184
|
key: 2,
|
|
2185
|
-
class:
|
|
2186
|
-
onClick: To(
|
|
2185
|
+
class: ye(T(a).e("closeBtn")),
|
|
2186
|
+
onClick: To(V, ["stop"])
|
|
2187
2187
|
}, {
|
|
2188
|
-
default:
|
|
2189
|
-
jt(
|
|
2188
|
+
default: j(() => [
|
|
2189
|
+
jt(T(r))
|
|
2190
2190
|
]),
|
|
2191
2191
|
_: 1
|
|
2192
|
-
}, 8, ["class", "onClick"])) :
|
|
2192
|
+
}, 8, ["class", "onClick"])) : L("v-if", !0)
|
|
2193
2193
|
], 46, ["id"]), [
|
|
2194
2194
|
[Rn, f.value]
|
|
2195
2195
|
])
|
|
@@ -2201,22 +2201,22 @@ const go = ["success", "info", "warning", "error"], q = va({
|
|
|
2201
2201
|
var ka = /* @__PURE__ */ en(Pa, [["__file", "message.vue"]]);
|
|
2202
2202
|
let Aa = 1;
|
|
2203
2203
|
const mo = (t) => {
|
|
2204
|
-
const n = !t ||
|
|
2204
|
+
const n = !t || tt(t) || Fn(t) || Et(t) ? { message: t } : t, e = {
|
|
2205
2205
|
...q,
|
|
2206
2206
|
...n
|
|
2207
2207
|
};
|
|
2208
2208
|
if (!e.appendTo)
|
|
2209
2209
|
e.appendTo = document.body;
|
|
2210
|
-
else if (
|
|
2210
|
+
else if (tt(e.appendTo)) {
|
|
2211
2211
|
let o = document.querySelector(e.appendTo);
|
|
2212
2212
|
Nr(o) || (Tt("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), o = document.body), e.appendTo = o;
|
|
2213
2213
|
}
|
|
2214
|
-
return
|
|
2214
|
+
return bn(de.grouping) && !e.grouping && (e.grouping = de.grouping), Pe(de.duration) && e.duration === 3e3 && (e.duration = de.duration), Pe(de.offset) && e.offset === 16 && (e.offset = de.offset), bn(de.showClose) && !e.showClose && (e.showClose = de.showClose), e;
|
|
2215
2215
|
}, $a = (t) => {
|
|
2216
|
-
const n =
|
|
2216
|
+
const n = pe.indexOf(t);
|
|
2217
2217
|
if (n === -1)
|
|
2218
2218
|
return;
|
|
2219
|
-
|
|
2219
|
+
pe.splice(n, 1);
|
|
2220
2220
|
const { handler: e } = t;
|
|
2221
2221
|
e.close();
|
|
2222
2222
|
}, Ma = ({ appendTo: t, ...n }, e) => {
|
|
@@ -2232,7 +2232,7 @@ const mo = (t) => {
|
|
|
2232
2232
|
}, l = jt(ka, a, Et(a.message) || Fn(a.message) ? {
|
|
2233
2233
|
default: Et(a.message) ? a.message : () => a.message
|
|
2234
2234
|
} : null);
|
|
2235
|
-
l.appContext = e ||
|
|
2235
|
+
l.appContext = e || je._context, on(l, i), t.appendChild(i.firstElementChild);
|
|
2236
2236
|
const s = l.component, d = {
|
|
2237
2237
|
id: o,
|
|
2238
2238
|
vnode: l,
|
|
@@ -2245,39 +2245,39 @@ const mo = (t) => {
|
|
|
2245
2245
|
props: l.component.props
|
|
2246
2246
|
};
|
|
2247
2247
|
return d;
|
|
2248
|
-
},
|
|
2249
|
-
if (!
|
|
2248
|
+
}, je = (t = {}, n) => {
|
|
2249
|
+
if (!Ye)
|
|
2250
2250
|
return { close: () => {
|
|
2251
2251
|
} };
|
|
2252
2252
|
const e = mo(t);
|
|
2253
|
-
if (e.grouping &&
|
|
2254
|
-
const r =
|
|
2253
|
+
if (e.grouping && pe.length) {
|
|
2254
|
+
const r = pe.find(({ vnode: i }) => {
|
|
2255
2255
|
var a;
|
|
2256
2256
|
return ((a = i.props) == null ? void 0 : a.message) === e.message;
|
|
2257
2257
|
});
|
|
2258
2258
|
if (r)
|
|
2259
2259
|
return r.props.repeatNum += 1, r.props.type = e.type, r.handler;
|
|
2260
2260
|
}
|
|
2261
|
-
if (
|
|
2261
|
+
if (Pe(de.max) && pe.length >= de.max)
|
|
2262
2262
|
return { close: () => {
|
|
2263
2263
|
} };
|
|
2264
2264
|
const o = Ma(e, n);
|
|
2265
|
-
return
|
|
2265
|
+
return pe.push(o), o.handler;
|
|
2266
2266
|
};
|
|
2267
2267
|
go.forEach((t) => {
|
|
2268
|
-
|
|
2268
|
+
je[t] = (n = {}, e) => {
|
|
2269
2269
|
const o = mo(n);
|
|
2270
|
-
return
|
|
2270
|
+
return je({ ...o, type: t }, e);
|
|
2271
2271
|
};
|
|
2272
2272
|
});
|
|
2273
2273
|
function Ra(t) {
|
|
2274
|
-
const n = [...
|
|
2274
|
+
const n = [...pe];
|
|
2275
2275
|
for (const e of n)
|
|
2276
2276
|
(!t || t === e.props.type) && e.handler.close();
|
|
2277
2277
|
}
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
const Fa = ca(
|
|
2278
|
+
je.closeAll = Ra;
|
|
2279
|
+
je._context = null;
|
|
2280
|
+
const Fa = ca(je, "$message"), Ba = {
|
|
2281
2281
|
__name: "index",
|
|
2282
2282
|
props: {
|
|
2283
2283
|
value: String,
|
|
@@ -2291,10 +2291,10 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
},
|
|
2293
2293
|
setup(t) {
|
|
2294
|
-
const e =
|
|
2294
|
+
const e = P(t.value);
|
|
2295
2295
|
return (o, r) => {
|
|
2296
|
-
const i =
|
|
2297
|
-
return v(),
|
|
2296
|
+
const i = J("el-switch");
|
|
2297
|
+
return v(), $(i, {
|
|
2298
2298
|
modelValue: e.value,
|
|
2299
2299
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value = a),
|
|
2300
2300
|
"active-color": "#13ce66",
|
|
@@ -2316,10 +2316,10 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
},
|
|
2318
2318
|
setup(t) {
|
|
2319
|
-
const n = t, e =
|
|
2319
|
+
const n = t, e = P(n.value);
|
|
2320
2320
|
return (o, r) => {
|
|
2321
|
-
const i =
|
|
2322
|
-
return v(),
|
|
2321
|
+
const i = J("el-input");
|
|
2322
|
+
return v(), $(i, {
|
|
2323
2323
|
modelValue: e.value,
|
|
2324
2324
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value = a),
|
|
2325
2325
|
disabled: !(n != null && n.isEdit)
|
|
@@ -2340,10 +2340,10 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
},
|
|
2342
2342
|
setup(t) {
|
|
2343
|
-
const e =
|
|
2343
|
+
const e = P(t.value);
|
|
2344
2344
|
return (o, r) => {
|
|
2345
|
-
const i =
|
|
2346
|
-
return v(),
|
|
2345
|
+
const i = J("el-color-picker");
|
|
2346
|
+
return v(), $(i, {
|
|
2347
2347
|
modelValue: e.value,
|
|
2348
2348
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value = a),
|
|
2349
2349
|
"show-alpha": ""
|
|
@@ -2364,10 +2364,10 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
},
|
|
2366
2366
|
setup(t) {
|
|
2367
|
-
const e =
|
|
2367
|
+
const e = P(t.value);
|
|
2368
2368
|
return (o, r) => {
|
|
2369
|
-
const i =
|
|
2370
|
-
return v(),
|
|
2369
|
+
const i = J("el-input");
|
|
2370
|
+
return v(), $(i, {
|
|
2371
2371
|
modelValue: e.value,
|
|
2372
2372
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value = a),
|
|
2373
2373
|
style: { height: "100%" },
|
|
@@ -2403,15 +2403,15 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2403
2403
|
},
|
|
2404
2404
|
emits: ["change", "onButtonClick"],
|
|
2405
2405
|
setup(t, { emit: n }) {
|
|
2406
|
-
const e = t, o = n, r =
|
|
2407
|
-
|
|
2406
|
+
const e = t, o = n, r = P(null), i = P(null), a = P(), l = P(), s = (d) => tn(d);
|
|
2407
|
+
ve(
|
|
2408
2408
|
() => e == null ? void 0 : e.rowContents,
|
|
2409
2409
|
() => {
|
|
2410
|
-
var f,
|
|
2410
|
+
var f, b;
|
|
2411
2411
|
if (((f = e == null ? void 0 : e.rowContents) == null ? void 0 : f.length) === 0) return;
|
|
2412
2412
|
const d = {};
|
|
2413
|
-
(
|
|
2414
|
-
d[
|
|
2413
|
+
(b = Ct(e == null ? void 0 : e.rowContents)) == null || b.forEach((y) => {
|
|
2414
|
+
d[y.name] = (y == null ? void 0 : y.value) ?? "";
|
|
2415
2415
|
}), a.value = d, l.value = d;
|
|
2416
2416
|
},
|
|
2417
2417
|
{ deep: !0, immediate: !0 }
|
|
@@ -2425,139 +2425,139 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
);
|
|
2427
2427
|
};
|
|
2428
|
-
return
|
|
2428
|
+
return ve(
|
|
2429
2429
|
() => l.value,
|
|
2430
2430
|
() => {
|
|
2431
2431
|
o("change", l.value);
|
|
2432
2432
|
},
|
|
2433
2433
|
{ deep: !0, immediate: !0 }
|
|
2434
2434
|
), (d, f) => {
|
|
2435
|
-
var
|
|
2436
|
-
const
|
|
2437
|
-
return v(),
|
|
2435
|
+
var h;
|
|
2436
|
+
const b = J("el-form-item"), y = J("el-form");
|
|
2437
|
+
return v(), O("div", {
|
|
2438
2438
|
class: "form-content",
|
|
2439
2439
|
style: te({ flexDirection: t.isButtonRow ? "row" : "column" })
|
|
2440
2440
|
}, [
|
|
2441
2441
|
mt("div", ja, [
|
|
2442
|
-
e.isEnableWrap ? (v(),
|
|
2442
|
+
e.isEnableWrap ? (v(), $(y, {
|
|
2443
2443
|
ref_key: "formWrapRef",
|
|
2444
2444
|
ref: r,
|
|
2445
2445
|
model: a.value,
|
|
2446
2446
|
class: "form-data",
|
|
2447
2447
|
key: e.isRowFlex
|
|
2448
2448
|
}, {
|
|
2449
|
-
default:
|
|
2450
|
-
var
|
|
2449
|
+
default: j(() => {
|
|
2450
|
+
var p;
|
|
2451
2451
|
return [
|
|
2452
|
-
(v(!0),
|
|
2453
|
-
key:
|
|
2452
|
+
(v(!0), O(ae, null, ie(e == null ? void 0 : e.rowContents, (u, _) => (v(), $(b, {
|
|
2453
|
+
key: _,
|
|
2454
2454
|
class: "form-item",
|
|
2455
2455
|
style: te({ flexDirection: t.isRowFlex ? "row" : "column", alignItems: t.isRowFlex ? "center" : "start", height: t.isRowFlex ? "32px" : "auto" })
|
|
2456
2456
|
}, {
|
|
2457
|
-
label:
|
|
2458
|
-
u != null && u.label ? (v(),
|
|
2457
|
+
label: j(() => [
|
|
2458
|
+
u != null && u.label ? (v(), O("div", {
|
|
2459
2459
|
key: 0,
|
|
2460
2460
|
class: "from-item-label",
|
|
2461
2461
|
style: te({ width: t.isRowFlex ? "72px" : "260px", minWidth: t.isRowFlex ? "72px" : "260px" })
|
|
2462
|
-
},
|
|
2462
|
+
}, he(u == null ? void 0 : u.label), 5)) : L("", !0)
|
|
2463
2463
|
]),
|
|
2464
|
-
default:
|
|
2465
|
-
(v(),
|
|
2464
|
+
default: j(() => [
|
|
2465
|
+
(v(), $(ze(s((u == null ? void 0 : u.type) ?? "Input")), {
|
|
2466
2466
|
modelValue: l.value[u.name],
|
|
2467
|
-
"onUpdate:modelValue": (
|
|
2467
|
+
"onUpdate:modelValue": (w) => l.value[u.name] = w,
|
|
2468
2468
|
content: (u == null ? void 0 : u.contents) ?? [],
|
|
2469
2469
|
isEdit: e == null ? void 0 : e.isEdit
|
|
2470
2470
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "content", "isEdit"]))
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 2
|
|
2473
2473
|
}, 1032, ["style"]))), 128)),
|
|
2474
|
-
((
|
|
2474
|
+
((p = e.buttonValue) == null ? void 0 : p.length) > 0 && t.isButtonRow ? (v(), O("div", {
|
|
2475
2475
|
key: 0,
|
|
2476
2476
|
class: "form-button",
|
|
2477
2477
|
style: te({ paddingTop: t.isRowFlex ? "0" : "26px" })
|
|
2478
2478
|
}, [
|
|
2479
|
-
(v(!0),
|
|
2480
|
-
key:
|
|
2479
|
+
(v(!0), O(ae, null, ie(e == null ? void 0 : e.buttonValue, (u, _) => (v(), O("div", {
|
|
2480
|
+
key: _,
|
|
2481
2481
|
class: "form-button-content"
|
|
2482
2482
|
}, [
|
|
2483
|
-
u ? (v(),
|
|
2483
|
+
u ? (v(), O("div", {
|
|
2484
2484
|
key: 0,
|
|
2485
2485
|
class: "form-button-item",
|
|
2486
2486
|
style: te({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2487
|
-
onClick: (
|
|
2488
|
-
},
|
|
2487
|
+
onClick: (w) => c(u == null ? void 0 : u.label)
|
|
2488
|
+
}, he(u == null ? void 0 : u.label), 13, Ya)) : L("", !0)
|
|
2489
2489
|
]))), 128))
|
|
2490
|
-
], 4)) :
|
|
2490
|
+
], 4)) : L("", !0)
|
|
2491
2491
|
];
|
|
2492
2492
|
}),
|
|
2493
2493
|
_: 1
|
|
2494
|
-
}, 8, ["model"])) : (v(),
|
|
2494
|
+
}, 8, ["model"])) : (v(), $(y, {
|
|
2495
2495
|
key: 1,
|
|
2496
2496
|
ref_key: "formRef",
|
|
2497
2497
|
ref: i,
|
|
2498
2498
|
model: l.value,
|
|
2499
2499
|
class: "form-noRegular-data"
|
|
2500
2500
|
}, {
|
|
2501
|
-
default:
|
|
2502
|
-
var
|
|
2501
|
+
default: j(() => {
|
|
2502
|
+
var p;
|
|
2503
2503
|
return [
|
|
2504
|
-
(v(!0),
|
|
2505
|
-
key:
|
|
2506
|
-
class:
|
|
2504
|
+
(v(!0), O(ae, null, ie(e == null ? void 0 : e.rowContents, (u, _) => (v(), $(b, {
|
|
2505
|
+
key: _,
|
|
2506
|
+
class: ye(["form-item", { "form-row-content": !t.isRowFlex }]),
|
|
2507
2507
|
style: te({ flexDirection: t.isRowFlex ? "row" : "column", alignItems: t.isRowFlex ? "center" : "start", height: t.isRowFlex ? "32px" : "auto", width: `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 8px)`, minWidth: `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 8px)` })
|
|
2508
2508
|
}, {
|
|
2509
|
-
label:
|
|
2510
|
-
u != null && u.label ? (v(),
|
|
2509
|
+
label: j(() => [
|
|
2510
|
+
u != null && u.label ? (v(), O("div", {
|
|
2511
2511
|
key: 0,
|
|
2512
2512
|
class: "from-item-label",
|
|
2513
2513
|
style: te({ width: t.isRowFlex ? "72px" : `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 8px)`, minWidth: t.isRowFlex ? "72px" : `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 8px)` })
|
|
2514
|
-
},
|
|
2514
|
+
}, he(u == null ? void 0 : u.label), 5)) : L("", !0)
|
|
2515
2515
|
]),
|
|
2516
|
-
default:
|
|
2517
|
-
(v(),
|
|
2516
|
+
default: j(() => [
|
|
2517
|
+
(v(), $(ze(s((u == null ? void 0 : u.type) ?? "Input")), {
|
|
2518
2518
|
modelValue: l.value[u.name],
|
|
2519
|
-
"onUpdate:modelValue": (
|
|
2519
|
+
"onUpdate:modelValue": (w) => l.value[u.name] = w,
|
|
2520
2520
|
isEdit: e == null ? void 0 : e.isEdit,
|
|
2521
2521
|
content: (u == null ? void 0 : u.contents) ?? []
|
|
2522
2522
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "isEdit", "content"]))
|
|
2523
2523
|
]),
|
|
2524
2524
|
_: 2
|
|
2525
2525
|
}, 1032, ["class", "style"]))), 128)),
|
|
2526
|
-
((
|
|
2526
|
+
((p = e.buttonValue) == null ? void 0 : p.length) > 0 && t.isButtonRow ? (v(), O("div", {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
class: "form-button",
|
|
2529
2529
|
style: te({ paddingTop: t.isRowFlex ? "0" : "26px" })
|
|
2530
2530
|
}, [
|
|
2531
|
-
(v(!0),
|
|
2532
|
-
key:
|
|
2531
|
+
(v(!0), O(ae, null, ie(e == null ? void 0 : e.buttonValue, (u, _) => (v(), O("div", {
|
|
2532
|
+
key: _,
|
|
2533
2533
|
class: "form-button-content"
|
|
2534
2534
|
}, [
|
|
2535
|
-
u ? (v(),
|
|
2535
|
+
u ? (v(), O("div", {
|
|
2536
2536
|
key: 0,
|
|
2537
2537
|
class: "form-button-item",
|
|
2538
2538
|
style: te({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2539
|
-
onClick: (
|
|
2540
|
-
},
|
|
2539
|
+
onClick: (w) => c(u == null ? void 0 : u.label)
|
|
2540
|
+
}, he(u == null ? void 0 : u.label), 13, Wa)) : L("", !0)
|
|
2541
2541
|
]))), 128))
|
|
2542
|
-
], 4)) :
|
|
2542
|
+
], 4)) : L("", !0)
|
|
2543
2543
|
];
|
|
2544
2544
|
}),
|
|
2545
2545
|
_: 1
|
|
2546
2546
|
}, 8, ["model"]))
|
|
2547
2547
|
]),
|
|
2548
|
-
((
|
|
2549
|
-
(v(!0),
|
|
2548
|
+
((h = e.buttonValue) == null ? void 0 : h.length) > 0 && !t.isButtonRow ? (v(), O("div", Ua, [
|
|
2549
|
+
(v(!0), O(ae, null, ie(e == null ? void 0 : e.buttonValue, (p, u) => (v(), O("div", {
|
|
2550
2550
|
key: u,
|
|
2551
2551
|
class: "form-button-content",
|
|
2552
|
-
onClick: (
|
|
2552
|
+
onClick: (_) => c(p)
|
|
2553
2553
|
}, [
|
|
2554
|
-
|
|
2554
|
+
p ? (v(), O("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
2556
|
class: "form-button-item",
|
|
2557
|
-
style: te({ background: (
|
|
2558
|
-
},
|
|
2557
|
+
style: te({ background: (p == null ? void 0 : p.background) ?? "var(--ssComponent-primary-color)" })
|
|
2558
|
+
}, he(p == null ? void 0 : p.label), 5)) : L("", !0)
|
|
2559
2559
|
], 8, Xa))), 128))
|
|
2560
|
-
])) :
|
|
2560
|
+
])) : L("", !0)
|
|
2561
2561
|
], 4);
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
@@ -2578,7 +2578,7 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2578
2578
|
const n = t;
|
|
2579
2579
|
return (e, o) => {
|
|
2580
2580
|
var r, i, a, l, s, c;
|
|
2581
|
-
return v(),
|
|
2581
|
+
return v(), $(Ga, {
|
|
2582
2582
|
rowContents: ((r = n == null ? void 0 : n.content) == null ? void 0 : r.rowContents) ?? [],
|
|
2583
2583
|
buttonValue: ((i = n == null ? void 0 : n.content) == null ? void 0 : i.buttonValue) ?? [],
|
|
2584
2584
|
isEnableWrap: (a = n == null ? void 0 : n.content) == null ? void 0 : a.isEnableWrap,
|
|
@@ -2602,21 +2602,21 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
},
|
|
2604
2604
|
setup(t) {
|
|
2605
|
-
const n = t, e =
|
|
2605
|
+
const n = t, e = P(n.value);
|
|
2606
2606
|
return (o, r) => {
|
|
2607
|
-
const i =
|
|
2608
|
-
return v(),
|
|
2607
|
+
const i = J("el-radio"), a = J("el-radio-group");
|
|
2608
|
+
return v(), $(a, {
|
|
2609
2609
|
modelValue: e.value,
|
|
2610
2610
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => e.value = l),
|
|
2611
2611
|
style: { height: "100%" }
|
|
2612
2612
|
}, {
|
|
2613
|
-
default:
|
|
2614
|
-
(v(!0),
|
|
2613
|
+
default: j(() => [
|
|
2614
|
+
(v(!0), O(ae, null, ie(n.content, (l, s) => (v(), $(i, {
|
|
2615
2615
|
key: s,
|
|
2616
2616
|
label: l.label
|
|
2617
2617
|
}, {
|
|
2618
|
-
default:
|
|
2619
|
-
Mn(
|
|
2618
|
+
default: j(() => [
|
|
2619
|
+
Mn(he(l == null ? void 0 : l.value), 1)
|
|
2620
2620
|
]),
|
|
2621
2621
|
_: 2
|
|
2622
2622
|
}, 1032, ["label"]))), 128))
|
|
@@ -2639,72 +2639,72 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2639
2639
|
emits: ["dblClick", "dbChange"],
|
|
2640
2640
|
setup(t, { emit: n }) {
|
|
2641
2641
|
var c;
|
|
2642
|
-
const e = t, o = n, r =
|
|
2642
|
+
const e = t, o = n, r = P([]), i = P((c = e == null ? void 0 : e.tabsContents[0]) == null ? void 0 : c.value), a = (d) => tn(d), l = (d) => {
|
|
2643
2643
|
o("dblClick", d);
|
|
2644
2644
|
}, s = (d) => {
|
|
2645
2645
|
o("dbChange", d);
|
|
2646
2646
|
};
|
|
2647
|
-
return
|
|
2647
|
+
return ve(
|
|
2648
2648
|
() => e.tabsContents,
|
|
2649
2649
|
() => {
|
|
2650
2650
|
r.value = Ct(e.tabsContents);
|
|
2651
2651
|
},
|
|
2652
2652
|
{ deep: !0, immediate: !0 }
|
|
2653
2653
|
), (d, f) => {
|
|
2654
|
-
const
|
|
2655
|
-
return v(),
|
|
2654
|
+
const b = J("el-tab-pane"), y = J("el-tabs");
|
|
2655
|
+
return v(), $(y, {
|
|
2656
2656
|
type: "card",
|
|
2657
2657
|
modelValue: i.value,
|
|
2658
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2658
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => i.value = h)
|
|
2659
2659
|
}, {
|
|
2660
|
-
default:
|
|
2661
|
-
(v(!0),
|
|
2662
|
-
key:
|
|
2663
|
-
name:
|
|
2660
|
+
default: j(() => [
|
|
2661
|
+
(v(!0), O(ae, null, ie(r.value, (h, p) => (v(), $(b, {
|
|
2662
|
+
key: p,
|
|
2663
|
+
name: h == null ? void 0 : h.value
|
|
2664
2664
|
}, {
|
|
2665
|
-
label:
|
|
2665
|
+
label: j(() => {
|
|
2666
2666
|
var u;
|
|
2667
2667
|
return [
|
|
2668
|
-
|
|
2668
|
+
h != null && h.label ? (v(), O("div", {
|
|
2669
2669
|
key: 0,
|
|
2670
|
-
onDblclick: (
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2673
|
-
(v(!0),
|
|
2674
|
-
key:
|
|
2670
|
+
onDblclick: (_) => l(h)
|
|
2671
|
+
}, he(h == null ? void 0 : h.label), 41, qa)) : L("", !0),
|
|
2672
|
+
h != null && h.contents && ((u = h == null ? void 0 : h.contents) == null ? void 0 : u.length) > 0 ? (v(), O("div", Ja, [
|
|
2673
|
+
(v(!0), O(ae, null, ie(h == null ? void 0 : h.contents, (_, w) => (v(), O("div", {
|
|
2674
|
+
key: w,
|
|
2675
2675
|
class: "tabs-children"
|
|
2676
2676
|
}, [
|
|
2677
|
-
|
|
2677
|
+
_ != null && _.value || (_ == null ? void 0 : _.value) === "" ? (v(), $(ze(a(_ == null ? void 0 : _.type)), {
|
|
2678
2678
|
key: 0,
|
|
2679
|
-
modelValue:
|
|
2680
|
-
"onUpdate:modelValue": (
|
|
2681
|
-
content: (
|
|
2682
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
2679
|
+
modelValue: _.value,
|
|
2680
|
+
"onUpdate:modelValue": (k) => _.value = k,
|
|
2681
|
+
content: (_ == null ? void 0 : _.contents) ?? []
|
|
2682
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : L("", !0)
|
|
2683
2683
|
]))), 128))
|
|
2684
|
-
])) :
|
|
2685
|
-
|
|
2684
|
+
])) : L("", !0),
|
|
2685
|
+
se(d.$slots, `${(h == null ? void 0 : h.value) ?? ""}_header`, {}, void 0, !0)
|
|
2686
2686
|
];
|
|
2687
2687
|
}),
|
|
2688
|
-
default:
|
|
2689
|
-
(v(!0),
|
|
2690
|
-
key:
|
|
2688
|
+
default: j(() => [
|
|
2689
|
+
(v(!0), O(ae, null, ie(h == null ? void 0 : h.children, (u, _) => (v(), O("div", {
|
|
2690
|
+
key: _,
|
|
2691
2691
|
class: "tabs-contents"
|
|
2692
2692
|
}, [
|
|
2693
|
-
|
|
2694
|
-
u != null && u.value || (u == null ? void 0 : u.value) === "" ? (v(),
|
|
2693
|
+
se(d.$slots, `${(u == null ? void 0 : u.value) ?? ""}_operateButtons`, {}, void 0, !0),
|
|
2694
|
+
u != null && u.value || (u == null ? void 0 : u.value) === "" ? (v(), $(ze(a(u == null ? void 0 : u.type)), {
|
|
2695
2695
|
key: 0,
|
|
2696
2696
|
modelValue: u.value,
|
|
2697
|
-
"onUpdate:modelValue": (
|
|
2697
|
+
"onUpdate:modelValue": (w) => u.value = w,
|
|
2698
2698
|
onDbChange: s,
|
|
2699
2699
|
content: u == null ? void 0 : u.content
|
|
2700
2700
|
}, Bn({ _: 2 }, [
|
|
2701
|
-
|
|
2702
|
-
name:
|
|
2703
|
-
fn:
|
|
2704
|
-
|
|
2701
|
+
ie(d.$slots, (w, k) => ({
|
|
2702
|
+
name: k,
|
|
2703
|
+
fn: j((A) => [
|
|
2704
|
+
se(d.$slots, k, kn({ ref_for: !0 }, A || {}), void 0, !0)
|
|
2705
2705
|
])
|
|
2706
2706
|
}))
|
|
2707
|
-
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
2707
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) : L("", !0)
|
|
2708
2708
|
]))), 128))
|
|
2709
2709
|
]),
|
|
2710
2710
|
_: 2
|
|
@@ -2738,13 +2738,13 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2738
2738
|
});
|
|
2739
2739
|
}), (e, o) => {
|
|
2740
2740
|
var r;
|
|
2741
|
-
return v(),
|
|
2741
|
+
return v(), $(vo, {
|
|
2742
2742
|
tabsContents: ((r = n == null ? void 0 : n.content) == null ? void 0 : r.tabsContents) ?? []
|
|
2743
2743
|
}, Bn({ _: 2 }, [
|
|
2744
|
-
|
|
2744
|
+
ie(e.$slots, (i, a) => ({
|
|
2745
2745
|
name: a,
|
|
2746
|
-
fn:
|
|
2747
|
-
|
|
2746
|
+
fn: j((l) => [
|
|
2747
|
+
se(e.$slots, a, Oo(Io(l || {})))
|
|
2748
2748
|
])
|
|
2749
2749
|
}))
|
|
2750
2750
|
]), 1032, ["tabsContents"]);
|
|
@@ -2765,8 +2765,8 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2765
2765
|
},
|
|
2766
2766
|
emits: ["dbChange"],
|
|
2767
2767
|
setup(t, { emit: n }) {
|
|
2768
|
-
const e = t, o =
|
|
2769
|
-
|
|
2768
|
+
const e = t, o = P([]);
|
|
2769
|
+
ve(
|
|
2770
2770
|
() => {
|
|
2771
2771
|
var a;
|
|
2772
2772
|
return (a = e == null ? void 0 : e.content) == null ? void 0 : a.tableData;
|
|
@@ -2778,35 +2778,35 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2778
2778
|
{ deep: !0, immediate: !0 }
|
|
2779
2779
|
);
|
|
2780
2780
|
const r = n, i = (a) => {
|
|
2781
|
-
var d, f,
|
|
2781
|
+
var d, f, b, y;
|
|
2782
2782
|
if (((d = e == null ? void 0 : e.content) == null ? void 0 : d.dbType) !== "edit" || !o.value || ((f = o.value) == null ? void 0 : f.length) === 0) return;
|
|
2783
2783
|
let l = o.value, s = [];
|
|
2784
|
-
((
|
|
2784
|
+
((b = l == null ? void 0 : l.filter((h) => (h == null ? void 0 : h.tableEditType) === "edit")) == null ? void 0 : b.length) !== (((y = e == null ? void 0 : e.content) == null ? void 0 : y.editNumber) ?? 1) && (l = l == null ? void 0 : l.map((h) => ((h == null ? void 0 : h.id) === (a == null ? void 0 : a.id) && (h.tableEditType = "edit", s.push(h)), h)), r("dbChange", {
|
|
2785
2785
|
content: l,
|
|
2786
2786
|
item: s
|
|
2787
2787
|
}));
|
|
2788
2788
|
};
|
|
2789
2789
|
return (a, l) => {
|
|
2790
|
-
var s, c, d, f,
|
|
2791
|
-
return v(),
|
|
2792
|
-
|
|
2793
|
-
(v(),
|
|
2790
|
+
var s, c, d, f, b, y, h;
|
|
2791
|
+
return v(), O(ae, null, [
|
|
2792
|
+
se(a.$slots, `${(s = e == null ? void 0 : e.content) == null ? void 0 : s.value}_tableHeader`),
|
|
2793
|
+
(v(), $(ui, {
|
|
2794
2794
|
columns: ((c = e == null ? void 0 : e.content) == null ? void 0 : c.columns) ?? [],
|
|
2795
2795
|
tableData: o.value ?? [],
|
|
2796
2796
|
currentPage: (d = e == null ? void 0 : e.content) == null ? void 0 : d.currentPage,
|
|
2797
2797
|
total: (f = e == null ? void 0 : e.content) == null ? void 0 : f.total,
|
|
2798
|
-
pageSize: (
|
|
2799
|
-
isShowPagination: (
|
|
2798
|
+
pageSize: (b = e == null ? void 0 : e.content) == null ? void 0 : b.pageSize,
|
|
2799
|
+
isShowPagination: (y = e == null ? void 0 : e.content) == null ? void 0 : y.isShowPagination,
|
|
2800
2800
|
isShowEdit: !1,
|
|
2801
|
-
isMoveColumn: (
|
|
2801
|
+
isMoveColumn: (h = e == null ? void 0 : e.content) == null ? void 0 : h.isMoveColumn,
|
|
2802
2802
|
isShowDelete: !1,
|
|
2803
2803
|
onDoClickRow: i,
|
|
2804
2804
|
key: o.value ?? []
|
|
2805
2805
|
}, {
|
|
2806
|
-
actions:
|
|
2806
|
+
actions: j(({ item: p }) => {
|
|
2807
2807
|
var u;
|
|
2808
2808
|
return [
|
|
2809
|
-
|
|
2809
|
+
se(a.$slots, `${(u = e == null ? void 0 : e.content) == null ? void 0 : u.value}_action`, { item: p })
|
|
2810
2810
|
];
|
|
2811
2811
|
}),
|
|
2812
2812
|
_: 3
|
|
@@ -2828,18 +2828,18 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
},
|
|
2830
2830
|
setup(t) {
|
|
2831
|
-
const n = t, e =
|
|
2831
|
+
const n = t, e = P(n.value);
|
|
2832
2832
|
return (o, r) => {
|
|
2833
|
-
const i =
|
|
2834
|
-
return v(),
|
|
2833
|
+
const i = J("el-option"), a = J("el-select");
|
|
2834
|
+
return v(), $(a, {
|
|
2835
2835
|
modelValue: e.value,
|
|
2836
2836
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => e.value = l),
|
|
2837
2837
|
clearable: "",
|
|
2838
2838
|
placeholder: "请选择下拉内容...",
|
|
2839
2839
|
style: { width: "240px" }
|
|
2840
2840
|
}, {
|
|
2841
|
-
default:
|
|
2842
|
-
(v(!0),
|
|
2841
|
+
default: j(() => [
|
|
2842
|
+
(v(!0), O(ae, null, ie(n == null ? void 0 : n.content, (l) => (v(), $(i, {
|
|
2843
2843
|
key: l.value,
|
|
2844
2844
|
label: l.label,
|
|
2845
2845
|
value: l.value
|
|
@@ -2863,10 +2863,10 @@ const Fa = ca(We, "$message"), Ba = {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
},
|
|
2865
2865
|
setup(t) {
|
|
2866
|
-
const e =
|
|
2866
|
+
const e = P(t.value);
|
|
2867
2867
|
return (o, r) => {
|
|
2868
|
-
const i =
|
|
2869
|
-
return v(),
|
|
2868
|
+
const i = J("el-date-picker");
|
|
2869
|
+
return v(), $(i, {
|
|
2870
2870
|
modelValue: e.value,
|
|
2871
2871
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value = a),
|
|
2872
2872
|
type: "dates",
|
|
@@ -2922,81 +2922,77 @@ const ai = ["onClick"], ii = ["onClick"], li = {
|
|
|
2922
2922
|
},
|
|
2923
2923
|
emits: ["dbClickRow", "fixRow", "deleteRow", "doSizeChange", "doCurrentChange"],
|
|
2924
2924
|
setup(t, { emit: n }) {
|
|
2925
|
-
const e = t, o =
|
|
2925
|
+
const e = t, o = P([]), r = P([]), i = P(0), a = P(null), l = P(null), s = n;
|
|
2926
2926
|
Dt(() => {
|
|
2927
|
-
o.value = e == null ? void 0 : e.columns, r.value = e == null ? void 0 : e.tableData, e.isMoveColumn &&
|
|
2928
|
-
}),
|
|
2927
|
+
o.value = e == null ? void 0 : e.columns, r.value = e == null ? void 0 : e.tableData, e.isMoveColumn && y(), h();
|
|
2928
|
+
}), ve(
|
|
2929
2929
|
() => e == null ? void 0 : e.tableData,
|
|
2930
2930
|
() => {
|
|
2931
2931
|
r.value = e == null ? void 0 : e.tableData;
|
|
2932
2932
|
},
|
|
2933
2933
|
{ deep: !0 }
|
|
2934
2934
|
);
|
|
2935
|
-
const c = (
|
|
2936
|
-
s("
|
|
2937
|
-
}, f = (
|
|
2938
|
-
s("
|
|
2939
|
-
},
|
|
2940
|
-
s("
|
|
2941
|
-
},
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
}, h = () => {
|
|
2946
|
-
var B;
|
|
2947
|
-
const _ = (B = a.value) == null ? void 0 : B.$el.querySelector(".el-table__header-wrapper tr");
|
|
2948
|
-
!_ || !e.isMoveColumn || E.create(_, {
|
|
2935
|
+
const c = (w) => tn(w), d = (w, k) => {
|
|
2936
|
+
s("dbClickRow", w);
|
|
2937
|
+
}, f = (w) => {
|
|
2938
|
+
s("fixRow", w);
|
|
2939
|
+
}, b = (w) => {
|
|
2940
|
+
s("deleteRow", w);
|
|
2941
|
+
}, y = () => {
|
|
2942
|
+
var k;
|
|
2943
|
+
const w = (k = a.value) == null ? void 0 : k.$el.querySelector(".el-table__header-wrapper tr");
|
|
2944
|
+
!w || !e.isMoveColumn || S.create(w, {
|
|
2949
2945
|
animation: 180,
|
|
2950
2946
|
delay: 0,
|
|
2951
2947
|
handle: ".is-drag .cell",
|
|
2952
2948
|
// 可拖拽区域为单元格
|
|
2953
|
-
onMove: (
|
|
2954
|
-
onEnd: (
|
|
2949
|
+
onMove: (A) => !A.related.classList.contains("is-not-drag"),
|
|
2950
|
+
onEnd: (A) => {
|
|
2955
2951
|
i.value++;
|
|
2956
|
-
const
|
|
2957
|
-
o.value.splice(
|
|
2958
|
-
|
|
2952
|
+
const M = A.oldIndex, m = A.newIndex, V = o.value.splice(M, 1)[0];
|
|
2953
|
+
o.value.splice(m, 0, V), e.isMoveColumn && Ke(() => {
|
|
2954
|
+
y(), h();
|
|
2959
2955
|
});
|
|
2960
2956
|
}
|
|
2961
2957
|
});
|
|
2962
2958
|
};
|
|
2963
|
-
|
|
2959
|
+
ve(
|
|
2964
2960
|
() => e.isMoveColumn,
|
|
2965
2961
|
() => {
|
|
2966
|
-
e.isMoveColumn &&
|
|
2967
|
-
|
|
2962
|
+
e.isMoveColumn && Ke(() => {
|
|
2963
|
+
y(), h();
|
|
2968
2964
|
});
|
|
2969
2965
|
}
|
|
2970
2966
|
);
|
|
2971
|
-
const
|
|
2972
|
-
var
|
|
2973
|
-
const
|
|
2974
|
-
|
|
2967
|
+
const h = () => {
|
|
2968
|
+
var k;
|
|
2969
|
+
const w = (k = a.value) == null ? void 0 : k.$el.querySelector(".el-table__body-wrapper tbody");
|
|
2970
|
+
w && new S(w, {
|
|
2975
2971
|
animation: 150,
|
|
2976
2972
|
handle: ".el-table__row",
|
|
2977
2973
|
// 拖动整行
|
|
2978
2974
|
ghostClass: "sortable-ghost",
|
|
2979
2975
|
// 拖拽时的样式
|
|
2980
|
-
onEnd: ({ newIndex:
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
|
|
2976
|
+
onEnd: ({ newIndex: A, oldIndex: M }) => {
|
|
2977
|
+
const m = [...r.value], [V] = m.splice(M, 1);
|
|
2978
|
+
m.splice(A, 0, V), r.value = m, Ke(() => {
|
|
2979
|
+
h();
|
|
2984
2980
|
});
|
|
2985
2981
|
}
|
|
2986
2982
|
});
|
|
2987
|
-
},
|
|
2988
|
-
|
|
2983
|
+
}, p = (w) => {
|
|
2984
|
+
w.preventDefault();
|
|
2989
2985
|
try {
|
|
2990
|
-
const
|
|
2991
|
-
if (
|
|
2992
|
-
const
|
|
2993
|
-
if (!
|
|
2994
|
-
const { rowIndex:
|
|
2995
|
-
if (
|
|
2996
|
-
|
|
2997
|
-
}), (
|
|
2998
|
-
var
|
|
2999
|
-
return
|
|
2986
|
+
const A = (w.clipboardData || (window == null ? void 0 : window.clipboardData)).getData("text/plain");
|
|
2987
|
+
if (!A) return;
|
|
2988
|
+
const M = u(A);
|
|
2989
|
+
if (!M.length) return;
|
|
2990
|
+
const { rowIndex: m, columnIndex: V } = l.value || { rowIndex: 0, columnIndex: 0 }, x = [];
|
|
2991
|
+
if (M == null || M.forEach((E) => {
|
|
2992
|
+
x.push(E.length + V);
|
|
2993
|
+
}), (x == null ? void 0 : x.filter((E) => {
|
|
2994
|
+
var G;
|
|
2995
|
+
return E > Object.keys((G = r.value) == null ? void 0 : G[0]).length;
|
|
3000
2996
|
}).length) > 0) {
|
|
3001
2997
|
Fa({
|
|
3002
2998
|
type: "warning",
|
|
@@ -3004,112 +3000,100 @@ const ai = ["onClick"], ii = ["onClick"], li = {
|
|
|
3004
3000
|
});
|
|
3005
3001
|
return;
|
|
3006
3002
|
}
|
|
3007
|
-
for (let
|
|
3008
|
-
const
|
|
3009
|
-
for (let
|
|
3010
|
-
const
|
|
3011
|
-
Q
|
|
3003
|
+
for (let E = 0; E < M.length; E++) {
|
|
3004
|
+
const G = M[E], K = r.value[m + E], ue = Ct(o.value).map((Y) => Y.prop);
|
|
3005
|
+
for (let Y = 0; Y < G.length && V + Y < ue.length; Y++) {
|
|
3006
|
+
const Q = ue[V + Y];
|
|
3007
|
+
K[Q] = G[Y] || "";
|
|
3012
3008
|
}
|
|
3013
3009
|
}
|
|
3014
|
-
} catch (
|
|
3015
|
-
console.error("粘贴失败:",
|
|
3010
|
+
} catch (k) {
|
|
3011
|
+
console.error("粘贴失败:", k);
|
|
3016
3012
|
}
|
|
3017
|
-
},
|
|
3018
|
-
|
|
3019
|
-
rowIndex:
|
|
3020
|
-
columnIndex:
|
|
3021
|
-
columnProp:
|
|
3013
|
+
}, u = (w) => w.trim().split(/\r\n|\n|\r/).map((M) => M.trim() ? M.split(" ").map((m) => m.replace(/^"(.*)"$/, "$1")) : [""]), _ = (w) => {
|
|
3014
|
+
w && (l.value = {
|
|
3015
|
+
rowIndex: w == null ? void 0 : w.$index,
|
|
3016
|
+
columnIndex: w == null ? void 0 : w.cellIndex,
|
|
3017
|
+
columnProp: w.column.property
|
|
3022
3018
|
});
|
|
3023
3019
|
};
|
|
3024
|
-
return (
|
|
3025
|
-
const
|
|
3026
|
-
return v(),
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3020
|
+
return (w, k) => {
|
|
3021
|
+
const A = J("el-table-column"), M = J("el-table");
|
|
3022
|
+
return v(), $(M, {
|
|
3023
|
+
border: !0,
|
|
3024
|
+
class: "table-wrap",
|
|
3025
|
+
data: r.value,
|
|
3026
|
+
stripe: "",
|
|
3027
|
+
style: { width: "100%" },
|
|
3028
|
+
"max-height": "600",
|
|
3029
|
+
ref_key: "tableRef",
|
|
3030
|
+
ref: a,
|
|
3031
|
+
"empty-text": "暂无数据",
|
|
3032
|
+
onSelectionChange: w.handleTableSelectChange,
|
|
3033
|
+
onRowDblclick: d,
|
|
3034
|
+
key: i.value,
|
|
3035
|
+
onPaste: p
|
|
3036
|
+
}, {
|
|
3037
|
+
default: j(() => [
|
|
3038
|
+
(v(!0), O(ae, null, ie(o.value, (m, V) => (v(), $(A, {
|
|
3039
|
+
label: (m == null ? void 0 : m.label) ?? "",
|
|
3040
|
+
prop: (m == null ? void 0 : m.prop) ?? "",
|
|
3041
|
+
width: m != null && m.width ? parseInt(m.width) : void 0,
|
|
3042
|
+
"min-width": m != null && m.width ? parseInt(m.width) : void 0,
|
|
3043
|
+
fixed: m == null ? void 0 : m.fixed,
|
|
3044
|
+
key: V,
|
|
3045
|
+
align: (m == null ? void 0 : m.align) ?? "center",
|
|
3046
|
+
sortable: (m == null ? void 0 : m.sortable) ?? !0,
|
|
3047
|
+
"show-overflow-tooltip": (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
|
|
3048
|
+
"class-name": ((m == null ? void 0 : m.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
3049
|
+
}, {
|
|
3050
|
+
default: j((x) => {
|
|
3051
|
+
var E, G, K, ue, Y;
|
|
3052
|
+
return [
|
|
3053
|
+
((m == null ? void 0 : m.type) ?? "text") === "text" && (((E = x == null ? void 0 : x.row) == null ? void 0 : E.tableEditType) ?? "text") === "text" ? (v(), O("span", {
|
|
3054
|
+
key: 0,
|
|
3055
|
+
style: te([{ "font-size": "14px", "font-weight": "400" }, { cursor: (G = x == null ? void 0 : x.row) != null && G.children ? "pointer" : "default" }])
|
|
3056
|
+
}, he((K = x == null ? void 0 : x.row) == null ? void 0 : K[m == null ? void 0 : m.prop]), 5)) : L("", !0),
|
|
3057
|
+
((m == null ? void 0 : m.type) ?? "text") === "operate" ? (v(), O("span", {
|
|
3058
|
+
key: 1,
|
|
3059
|
+
class: "table-operate",
|
|
3060
|
+
style: te({
|
|
3061
|
+
justifyContent: t.isShowEdit && t.isShowDelete ? "space-between" : "center"
|
|
3062
|
+
})
|
|
3063
|
+
}, [
|
|
3064
|
+
se(w.$slots, "actions", {
|
|
3065
|
+
item: x == null ? void 0 : x.row
|
|
3066
|
+
}, void 0, !0),
|
|
3067
|
+
t.isShowEdit ? (v(), O("span", {
|
|
3059
3068
|
key: 0,
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3069
|
+
onClick: (Q) => f(x == null ? void 0 : x.row),
|
|
3070
|
+
class: "blue-table-operate table-operate-content"
|
|
3071
|
+
}, "编辑", 8, ai)) : L("", !0),
|
|
3072
|
+
t.isShowDelete ? (v(), O("span", {
|
|
3063
3073
|
key: 1,
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
(v(), P(je(c((p == null ? void 0 : p.columnType) ?? "Input")), {
|
|
3085
|
-
modelValue: D.row[p.prop],
|
|
3086
|
-
"onUpdate:modelValue": (_e) => D.row[p.prop] = _e,
|
|
3087
|
-
style: { height: "100%" },
|
|
3088
|
-
onFocus: (_e) => j(D),
|
|
3089
|
-
content: (p == null ? void 0 : p.contents) ?? []
|
|
3090
|
-
}, null, 40, ["modelValue", "onUpdate:modelValue", "onFocus", "content"]))
|
|
3091
|
-
])) : z("", !0)
|
|
3092
|
-
];
|
|
3093
|
-
}),
|
|
3094
|
-
_: 2
|
|
3095
|
-
}, 1032, ["label", "prop", "width", "min-width", "fixed", "align", "sortable", "show-overflow-tooltip", "class-name"]))), 128))
|
|
3096
|
-
]),
|
|
3097
|
-
_: 3
|
|
3098
|
-
}, 8, ["data", "onSelectionChange"])),
|
|
3099
|
-
(e == null ? void 0 : e.isShowPagination) ?? !0 ? (v(), P(U, {
|
|
3100
|
-
key: 0,
|
|
3101
|
-
onSizeChange: y,
|
|
3102
|
-
onCurrentChange: d,
|
|
3103
|
-
"current-page": (e == null ? void 0 : e.currentPage) ?? 1,
|
|
3104
|
-
"page-sizes": [5, 10, 20, 50, 100],
|
|
3105
|
-
"page-size": (e == null ? void 0 : e.pageSize) ?? 10,
|
|
3106
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
3107
|
-
total: (e == null ? void 0 : e.total) ?? 0
|
|
3108
|
-
}, null, 8, ["current-page", "page-size", "total"])) : z("", !0)
|
|
3109
|
-
], 64);
|
|
3074
|
+
onClick: (Q) => b(x == null ? void 0 : x.row),
|
|
3075
|
+
class: "red-table-operate table-operate-content"
|
|
3076
|
+
}, "删除", 8, ii)) : L("", !0)
|
|
3077
|
+
], 4)) : L("", !0),
|
|
3078
|
+
((m == null ? void 0 : m.type) ?? "text") === "edit" && (((ue = x == null ? void 0 : x.row) == null ? void 0 : ue.tableEditType) ?? "text") !== "edit" || ((m == null ? void 0 : m.type) ?? "text") === "text" && (((Y = x == null ? void 0 : x.row) == null ? void 0 : Y.tableEditType) ?? "text") === "edit" ? (v(), O("span", li, [
|
|
3079
|
+
(v(), $(ze(c((m == null ? void 0 : m.columnType) ?? "Input")), {
|
|
3080
|
+
modelValue: x.row[m.prop],
|
|
3081
|
+
"onUpdate:modelValue": (Q) => x.row[m.prop] = Q,
|
|
3082
|
+
style: { height: "100%" },
|
|
3083
|
+
onFocus: (Q) => _(x),
|
|
3084
|
+
content: (m == null ? void 0 : m.contents) ?? []
|
|
3085
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "onFocus", "content"]))
|
|
3086
|
+
])) : L("", !0)
|
|
3087
|
+
];
|
|
3088
|
+
}),
|
|
3089
|
+
_: 2
|
|
3090
|
+
}, 1032, ["label", "prop", "width", "min-width", "fixed", "align", "sortable", "show-overflow-tooltip", "class-name"]))), 128))
|
|
3091
|
+
]),
|
|
3092
|
+
_: 3
|
|
3093
|
+
}, 8, ["data", "onSelectionChange"]);
|
|
3110
3094
|
};
|
|
3111
3095
|
}
|
|
3112
|
-
}, ui = /* @__PURE__ */ Wt(si, [["__scopeId", "data-v-
|
|
3096
|
+
}, ui = /* @__PURE__ */ Wt(si, [["__scopeId", "data-v-b4ea5f9a"]]);
|
|
3113
3097
|
export {
|
|
3114
3098
|
Fa as E,
|
|
3115
3099
|
Ga as a,
|