ss-component-new 1.1.9 → 1.1.11
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-W6uNHVCX.js +3379 -0
- package/dist/index-Coi7S0y4.js +233 -0
- package/dist/{index-B6eq-MSC.js → index-HyCAWr3q.js} +284 -284
- package/dist/{index-vyAHI5uV.js → index-lqdgKFyj.js} +1 -1
- package/dist/{main-u6Z66hys.js → main-4E3fZB6N.js} +2 -2
- package/dist/modelComp-CFwQm9Yp.js +18 -0
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component.umd.cjs +14 -14
- package/package.json +1 -1
- package/dist/array-0PzArXAH.js +0 -3278
- package/dist/index-Wthx6lAv.js +0 -239
- package/dist/modelComp-BLx5jS0f.js +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Le, inject as Ve, ref as k, computed as M, unref as x, readonly as wo, getCurrentScope as _o, onScopeDispose as Eo, onMounted as Dt, nextTick as Ze, watch as be, isRef as So, warn as Do, provide as Co, defineComponent as $e, createElementBlock as T, openBlock as v, mergeProps as kn, renderSlot as de, normalizeClass as Ee, createVNode as jt, Transition as An, withCtx as L, withDirectives as $n, createElementVNode as mt, normalizeStyle as te, createTextVNode as Mn, toDisplayString as me, vShow as Rn, shallowReactive as xo, createBlock as P, createCommentVNode as z, resolveDynamicComponent as je, Fragment as ne, withModifiers as To, isVNode as Fn, render as on, resolveComponent as K, renderList as ue, 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
|
/**!
|
|
@@ -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 De() {
|
|
48
|
+
return De = 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
|
+
}, De.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 Se(t) {
|
|
76
76
|
if (typeof window < "u" && window.navigator)
|
|
77
77
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var Ce = Se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ot = Se(/Edge/i), ln = Se(/firefox/i), qe = Se(/safari/i) && !Se(/chrome/i) && !Se(/android/i), Ut = Se(/iP(ad|od|hone)/i), zn = Se(/chrome/i) && Se(/android/i), Ln = {
|
|
80
80
|
capture: !1,
|
|
81
81
|
passive: !1
|
|
82
82
|
};
|
|
83
83
|
function I(t, n, e) {
|
|
84
|
-
t.addEventListener(n, e, !
|
|
84
|
+
t.addEventListener(n, e, !Ce && Ln);
|
|
85
85
|
}
|
|
86
86
|
function O(t, n, e) {
|
|
87
|
-
t.removeEventListener(n, e, !
|
|
87
|
+
t.removeEventListener(n, e, !Ce && Ln);
|
|
88
88
|
}
|
|
89
89
|
function vt(t, n) {
|
|
90
90
|
if (n) {
|
|
@@ -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 le(t, n, e) {
|
|
121
121
|
if (t && n)
|
|
122
122
|
if (t.classList)
|
|
123
123
|
t.classList[e ? "add" : "remove"](n);
|
|
@@ -134,7 +134,7 @@ 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 ze(t, n) {
|
|
138
138
|
var e = "";
|
|
139
139
|
if (typeof t == "string")
|
|
140
140
|
e = t;
|
|
@@ -163,7 +163,7 @@ function ye() {
|
|
|
163
163
|
function W(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 !== ye() ? (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, !
|
|
166
|
+
if (t !== window && t.parentNode && t !== ye() ? (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, !Ce))
|
|
167
167
|
do
|
|
168
168
|
if (r && r.getBoundingClientRect && (S(r, "transform") !== "none" || e && S(r, "position") !== "static")) {
|
|
169
169
|
var y = r.getBoundingClientRect();
|
|
@@ -172,7 +172,7 @@ function W(t, n, e, o, r) {
|
|
|
172
172
|
}
|
|
173
173
|
while (r = r.parentNode);
|
|
174
174
|
if (o && t !== window) {
|
|
175
|
-
var b =
|
|
175
|
+
var b = ze(r || t), g = b && b.a, h = b && b.d;
|
|
176
176
|
b && (a /= h, l /= g, f /= g, d /= h, s = a + d, c = l + f);
|
|
177
177
|
}
|
|
178
178
|
return {
|
|
@@ -186,15 +186,15 @@ function W(t, n, e, o, r) {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
function un(t, n, e) {
|
|
189
|
-
for (var o =
|
|
189
|
+
for (var o = Oe(t, !0), r = W(t)[n]; o; ) {
|
|
190
190
|
var i = W(o)[e], a = void 0;
|
|
191
191
|
if (a = r >= i, !a) return o;
|
|
192
192
|
if (o === ye()) break;
|
|
193
|
-
o =
|
|
193
|
+
o = Oe(o, !1);
|
|
194
194
|
}
|
|
195
195
|
return !1;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Ye(t, n, e, o) {
|
|
198
198
|
for (var r = 0, i = 0, a = t.children; i < a.length; ) {
|
|
199
199
|
if (a[i].style.display !== "none" && a[i] !== E.ghost && (o || a[i] !== E.dragged) && he(a[i], e.draggable, t, !1)) {
|
|
200
200
|
if (r === n)
|
|
@@ -222,7 +222,7 @@ function cn(t) {
|
|
|
222
222
|
var n = 0, e = 0, o = ye();
|
|
223
223
|
if (t)
|
|
224
224
|
do {
|
|
225
|
-
var r =
|
|
225
|
+
var r = ze(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,7 +235,7 @@ function jo(t, n) {
|
|
|
235
235
|
}
|
|
236
236
|
return -1;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Oe(t, n) {
|
|
239
239
|
if (!t || !t.getBoundingClientRect) return ye();
|
|
240
240
|
var e = t, o = !1;
|
|
241
241
|
do
|
|
@@ -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 Je;
|
|
263
263
|
function Wn(t, n) {
|
|
264
264
|
return function() {
|
|
265
|
-
if (!
|
|
265
|
+
if (!Je) {
|
|
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), Je = setTimeout(function() {
|
|
268
|
+
Je = void 0;
|
|
269
269
|
}, n);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
function Wo() {
|
|
274
|
-
clearTimeout(
|
|
274
|
+
clearTimeout(Je), Je = void 0;
|
|
275
275
|
}
|
|
276
276
|
function Un(t, n, e) {
|
|
277
277
|
t.scrollLeft += n, t.scrollTop += e;
|
|
@@ -305,7 +305,7 @@ function Uo() {
|
|
|
305
305
|
});
|
|
306
306
|
var i = we({}, t[t.length - 1].rect);
|
|
307
307
|
if (r.thisAnimationDuration) {
|
|
308
|
-
var a =
|
|
308
|
+
var a = ze(r, !0);
|
|
309
309
|
a && (i.top -= a.f, i.left -= a.e);
|
|
310
310
|
}
|
|
311
311
|
r.fromRect = i;
|
|
@@ -329,7 +329,7 @@ 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 = W(c), y = c.prevFromRect, b = c.prevToRect, g = l.rect, h =
|
|
332
|
+
var s = 0, c = l.target, d = c.fromRect, f = W(c), y = c.prevFromRect, b = c.prevToRect, g = l.rect, h = ze(c, !0);
|
|
333
333
|
h && (f.top -= h.f, f.left -= h.e), c.toRect = f, c.thisAnimationDuration && Ot(y, f) && !Ot(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
334
334
|
(g.top - f.top) / (g.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Ho(g, y, b, r.options)), Ot(f, d) || (c.prevFromRect = d, c.prevToRect = f, s || (s = r.options.animation), r.animate(c, g, 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;
|
|
@@ -341,7 +341,7 @@ function Uo() {
|
|
|
341
341
|
animate: function(o, r, i, a) {
|
|
342
342
|
if (a) {
|
|
343
343
|
S(o, "transition", ""), S(o, "transform", "");
|
|
344
|
-
var l =
|
|
344
|
+
var l = ze(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
345
|
o.animatingX = !!d, o.animatingY = !!f, S(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Xo(o), S(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), S(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
346
346
|
S(o, "transition", ""), S(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
347
347
|
}, a);
|
|
@@ -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 Me = [], It = {
|
|
359
359
|
initializeByDefault: !0
|
|
360
|
-
},
|
|
360
|
+
}, rt = {
|
|
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
|
+
Me.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
|
+
}), Me.push(n);
|
|
368
368
|
},
|
|
369
369
|
pluginEvent: function(n, e, o) {
|
|
370
370
|
var r = this;
|
|
@@ -372,7 +372,7 @@ var $e = [], It = {
|
|
|
372
372
|
r.eventCanceled = !0;
|
|
373
373
|
};
|
|
374
374
|
var i = n + "Global";
|
|
375
|
-
|
|
375
|
+
Me.forEach(function(a) {
|
|
376
376
|
e[a.pluginName] && (e[a.pluginName][i] && e[a.pluginName][i](we({
|
|
377
377
|
sortable: e
|
|
378
378
|
}, o)), e.options[a.pluginName] && e[a.pluginName][n] && e[a.pluginName][n](we({
|
|
@@ -381,11 +381,11 @@ var $e = [], It = {
|
|
|
381
381
|
});
|
|
382
382
|
},
|
|
383
383
|
initializePlugins: function(n, e, o, r) {
|
|
384
|
-
|
|
384
|
+
Me.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, De(o, c.defaults);
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
for (var i in n.options)
|
|
@@ -396,13 +396,13 @@ var $e = [], It = {
|
|
|
396
396
|
},
|
|
397
397
|
getEventProperties: function(n, e) {
|
|
398
398
|
var o = {};
|
|
399
|
-
return
|
|
400
|
-
typeof r.eventProperties == "function" &&
|
|
399
|
+
return Me.forEach(function(r) {
|
|
400
|
+
typeof r.eventProperties == "function" && De(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 Me.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
|
}
|
|
@@ -411,45 +411,45 @@ function Go(t) {
|
|
|
411
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, y = t.originalEvent, b = t.putSortable, g = t.extraEventProperties;
|
|
412
412
|
if (n = n || e && e[oe], !!n) {
|
|
413
413
|
var h, u = n.options, w = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
414
|
-
window.CustomEvent && !
|
|
414
|
+
window.CustomEvent && !Ce && !ot ? h = new CustomEvent(o, {
|
|
415
415
|
bubbles: !0,
|
|
416
416
|
cancelable: !0
|
|
417
417
|
}) : (h = document.createEvent("Event"), h.initEvent(o, !0, !0)), h.to = a || e, h.from = l || e, h.item = r || e, h.clone = i, h.oldIndex = s, h.newIndex = c, h.oldDraggableIndex = d, h.newDraggableIndex = f, h.originalEvent = y, h.pullMode = b ? b.lastPutMode : void 0;
|
|
418
|
-
var N = we(we({}, g),
|
|
418
|
+
var N = we(we({}, g), rt.getEventProperties(o, n));
|
|
419
419
|
for (var j in N)
|
|
420
420
|
h[j] = N[j];
|
|
421
421
|
e && e.dispatchEvent(h), u[w] && u[w].call(n, h);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var Ko = ["evt"],
|
|
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
|
-
|
|
426
|
+
rt.pluginEvent.bind(E)(n, e, we({
|
|
427
427
|
dragEl: m,
|
|
428
428
|
parentEl: V,
|
|
429
429
|
ghostEl: C,
|
|
430
430
|
rootEl: R,
|
|
431
|
-
nextEl:
|
|
431
|
+
nextEl: ke,
|
|
432
432
|
lastDownEl: dt,
|
|
433
433
|
cloneEl: F,
|
|
434
|
-
cloneHidden:
|
|
435
|
-
dragStarted:
|
|
434
|
+
cloneHidden: Te,
|
|
435
|
+
dragStarted: He,
|
|
436
436
|
putSortable: X,
|
|
437
437
|
activeSortable: E.active,
|
|
438
438
|
originalEvent: r,
|
|
439
|
-
oldIndex:
|
|
440
|
-
oldDraggableIndex:
|
|
441
|
-
newIndex:
|
|
442
|
-
newDraggableIndex:
|
|
439
|
+
oldIndex: Be,
|
|
440
|
+
oldDraggableIndex: Qe,
|
|
441
|
+
newIndex: se,
|
|
442
|
+
newDraggableIndex: xe,
|
|
443
443
|
hideGhostForTarget: qn,
|
|
444
444
|
unhideGhostForTarget: Jn,
|
|
445
445
|
cloneNowHidden: function() {
|
|
446
|
-
|
|
446
|
+
Te = !0;
|
|
447
447
|
},
|
|
448
448
|
cloneNowShown: function() {
|
|
449
|
-
|
|
449
|
+
Te = !1;
|
|
450
450
|
},
|
|
451
451
|
dispatchSortableEvent: function(l) {
|
|
452
|
-
|
|
452
|
+
Z({
|
|
453
453
|
sortable: e,
|
|
454
454
|
name: l,
|
|
455
455
|
originalEvent: r
|
|
@@ -457,27 +457,27 @@ var Ko = ["evt"], te = function(n, e) {
|
|
|
457
457
|
}
|
|
458
458
|
}, i));
|
|
459
459
|
};
|
|
460
|
-
function
|
|
460
|
+
function Z(t) {
|
|
461
461
|
Go(we({
|
|
462
462
|
putSortable: X,
|
|
463
463
|
cloneEl: F,
|
|
464
464
|
targetEl: m,
|
|
465
465
|
rootEl: R,
|
|
466
|
-
oldIndex:
|
|
467
|
-
oldDraggableIndex:
|
|
468
|
-
newIndex:
|
|
469
|
-
newDraggableIndex:
|
|
466
|
+
oldIndex: Be,
|
|
467
|
+
oldDraggableIndex: Qe,
|
|
468
|
+
newIndex: se,
|
|
469
|
+
newDraggableIndex: xe
|
|
470
470
|
}, t));
|
|
471
471
|
}
|
|
472
|
-
var m, V, C, R,
|
|
472
|
+
var m, V, C, R, ke, dt, F, Te, Be, se, Qe, xe, it, X, Fe = !1, yt = !1, bt = [], Ie, fe, Nt, Pt, dn, fn, He, Re, et, tt = !1, lt = !1, ft, G, kt = [], Ft = !1, wt = [], xt = typeof document < "u", st = Ut, pn = ot || Ce ? "cssFloat" : "float", Zo = xt && !zn && !Ut && "draggable" in document.createElement("div"), Gn = function() {
|
|
473
473
|
if (xt) {
|
|
474
|
-
if (
|
|
474
|
+
if (Ce)
|
|
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 = S(n), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i =
|
|
480
|
+
var o = S(n), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Ye(n, 0, e), a = Ye(n, 1, e), l = i && S(i), s = a && S(a), c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(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")
|
|
@@ -529,7 +529,7 @@ xt && !zn && document.addEventListener("click", function(t) {
|
|
|
529
529
|
if (yt)
|
|
530
530
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), yt = !1, !1;
|
|
531
531
|
}, !0);
|
|
532
|
-
var
|
|
532
|
+
var Ne = function(n) {
|
|
533
533
|
if (m) {
|
|
534
534
|
n = n.touches ? n.touches[0] : n;
|
|
535
535
|
var e = Jo(n.clientX, n.clientY);
|
|
@@ -546,7 +546,7 @@ var Ie = function(n) {
|
|
|
546
546
|
function E(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 = De({}, n), t[oe] = this;
|
|
550
550
|
var e = {
|
|
551
551
|
group: null,
|
|
552
552
|
sort: !0,
|
|
@@ -590,22 +590,22 @@ function E(t, n) {
|
|
|
590
590
|
y: 0
|
|
591
591
|
},
|
|
592
592
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
593
|
-
supportPointer: E.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
593
|
+
supportPointer: E.supportPointer !== !1 && "PointerEvent" in window && (!qe || Ut),
|
|
594
594
|
emptyInsertThreshold: 5
|
|
595
595
|
};
|
|
596
|
-
|
|
596
|
+
rt.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 ? I(t, "pointerdown", this._onTapStart) : (I(t, "mousedown", this._onTapStart), I(t, "touchstart", this._onTapStart)), this.nativeDraggable && (I(t, "dragover", this), I(t, "dragenter", this)), bt.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []),
|
|
602
|
+
this.nativeDraggable = n.forceFallback ? !1 : Zo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? I(t, "pointerdown", this._onTapStart) : (I(t, "mousedown", this._onTapStart), I(t, "touchstart", this._onTapStart)), this.nativeDraggable && (I(t, "dragover", this), I(t, "dragenter", this)), bt.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), De(this, Uo());
|
|
603
603
|
}
|
|
604
604
|
E.prototype = /** @lends Sortable.prototype */
|
|
605
605
|
{
|
|
606
606
|
constructor: E,
|
|
607
607
|
_isOutsideThisEl: function(n) {
|
|
608
|
-
!this.el.contains(n) && n !== this.el && (
|
|
608
|
+
!this.el.contains(n) && n !== this.el && (Re = null);
|
|
609
609
|
},
|
|
610
610
|
_getDirection: function(n, e) {
|
|
611
611
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, e, m) : this.options.direction;
|
|
@@ -613,31 +613,31 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
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), !m && !(/mousedown|pointerdown/.test(a) && n.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable &&
|
|
617
|
-
if (
|
|
616
|
+
if (lr(o), !m && !(/mousedown|pointerdown/.test(a) && n.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && qe && s && s.tagName.toUpperCase() === "SELECT") && (s = he(s, r.draggable, o, !1), !(s && s.animated) && dt !== s)) {
|
|
617
|
+
if (Be = ce(s), Qe = ce(s, r.draggable), typeof d == "function") {
|
|
618
618
|
if (d.call(this, n, s, this)) {
|
|
619
|
-
|
|
619
|
+
Z({
|
|
620
620
|
sortable: e,
|
|
621
621
|
rootEl: c,
|
|
622
622
|
name: "filter",
|
|
623
623
|
targetEl: s,
|
|
624
624
|
toEl: o,
|
|
625
625
|
fromEl: o
|
|
626
|
-
}),
|
|
626
|
+
}), ee("filter", e, {
|
|
627
627
|
evt: n
|
|
628
628
|
}), i && n.preventDefault();
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
} else if (d && (d = d.split(",").some(function(f) {
|
|
632
632
|
if (f = he(c, f.trim(), o, !1), f)
|
|
633
|
-
return
|
|
633
|
+
return Z({
|
|
634
634
|
sortable: e,
|
|
635
635
|
rootEl: f,
|
|
636
636
|
name: "filter",
|
|
637
637
|
targetEl: s,
|
|
638
638
|
fromEl: o,
|
|
639
639
|
toEl: o
|
|
640
|
-
}),
|
|
640
|
+
}), ee("filter", e, {
|
|
641
641
|
evt: n
|
|
642
642
|
}), !0;
|
|
643
643
|
}), d)) {
|
|
@@ -652,27 +652,27 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
652
652
|
var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
|
|
653
653
|
if (o && !m && o.parentNode === i) {
|
|
654
654
|
var c = W(o);
|
|
655
|
-
if (R = i, m = o, V = m.parentNode,
|
|
655
|
+
if (R = i, m = o, V = m.parentNode, ke = m.nextSibling, dt = o, it = a.group, E.dragged = m, Ie = {
|
|
656
656
|
target: m,
|
|
657
657
|
clientX: (e || n).clientX,
|
|
658
658
|
clientY: (e || n).clientY
|
|
659
|
-
}, dn =
|
|
660
|
-
if (
|
|
659
|
+
}, dn = Ie.clientX - c.left, fn = Ie.clientY - c.top, this._lastX = (e || n).clientX, this._lastY = (e || n).clientY, m.style["will-change"] = "all", s = function() {
|
|
660
|
+
if (ee("delayEnded", r, {
|
|
661
661
|
evt: n
|
|
662
662
|
}), E.eventCanceled) {
|
|
663
663
|
r._onDrop();
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
666
|
-
r._disableDelayedDragEvents(), !ln && r.nativeDraggable && (m.draggable = !0), r._triggerDragStart(n, e),
|
|
666
|
+
r._disableDelayedDragEvents(), !ln && r.nativeDraggable && (m.draggable = !0), r._triggerDragStart(n, e), Z({
|
|
667
667
|
sortable: r,
|
|
668
668
|
name: "choose",
|
|
669
669
|
originalEvent: n
|
|
670
|
-
}),
|
|
670
|
+
}), le(m, a.chosenClass, !0);
|
|
671
671
|
}, a.ignore.split(",").forEach(function(d) {
|
|
672
672
|
Yn(m, d.trim(), At);
|
|
673
|
-
}), I(l, "dragover",
|
|
673
|
+
}), I(l, "dragover", Ne), I(l, "mousemove", Ne), I(l, "touchmove", Ne), a.supportPointer ? (I(l, "pointerup", r._onDrop), !this.nativeDraggable && I(l, "pointercancel", r._onDrop)) : (I(l, "mouseup", r._onDrop), I(l, "touchend", r._onDrop), I(l, "touchcancel", r._onDrop)), ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), ee("delayStart", this, {
|
|
674
674
|
evt: n
|
|
675
|
-
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(
|
|
675
|
+
}), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ot || Ce))) {
|
|
676
676
|
if (E.eventCanceled) {
|
|
677
677
|
this._onDrop();
|
|
678
678
|
return;
|
|
@@ -703,12 +703,12 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
_dragStarted: function(n, e) {
|
|
706
|
-
if (
|
|
707
|
-
|
|
706
|
+
if (Fe = !1, R && m) {
|
|
707
|
+
ee("dragStarted", this, {
|
|
708
708
|
evt: e
|
|
709
709
|
}), this.nativeDraggable && I(document, "dragover", Qo);
|
|
710
710
|
var o = this.options;
|
|
711
|
-
!n &&
|
|
711
|
+
!n && le(m, o.dragClass, !1), le(m, o.ghostClass, !0), E.active = this, n && this._appendGhost(), Z({
|
|
712
712
|
sortable: this,
|
|
713
713
|
name: "start",
|
|
714
714
|
originalEvent: e
|
|
@@ -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 (!E.active && !
|
|
742
|
+
if (Ie) {
|
|
743
|
+
var e = this.options, o = e.fallbackTolerance, r = e.fallbackOffset, i = n.touches ? n.touches[0] : n, a = C && ze(C, !0), l = C && a && a.a, s = C && a && a.d, c = st && G && cn(G), d = (i.clientX - Ie.clientX + r.x) / (l || 1) + (c ? c[0] - kt[0] : 0) / (l || 1), f = (i.clientY - Ie.clientY + r.y) / (s || 1) + (c ? c[1] - kt[1] : 0) / (s || 1);
|
|
744
|
+
if (!E.active && !Fe) {
|
|
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);
|
|
@@ -769,30 +769,30 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
769
769
|
G = G.parentNode;
|
|
770
770
|
G !== document.body && G !== document.documentElement ? (G === document && (G = ye()), e.top += G.scrollTop, e.left += G.scrollLeft) : G = ye(), kt = cn(G);
|
|
771
771
|
}
|
|
772
|
-
C = m.cloneNode(!0),
|
|
772
|
+
C = m.cloneNode(!0), le(C, o.ghostClass, !1), le(C, o.fallbackClass, !0), le(C, o.dragClass, !0), S(C, "transition", ""), S(C, "transform", ""), S(C, "box-sizing", "border-box"), S(C, "margin", 0), S(C, "top", e.top), S(C, "left", e.left), S(C, "width", e.width), S(C, "height", e.height), S(C, "opacity", "0.8"), S(C, "position", st ? "absolute" : "fixed"), S(C, "zIndex", "100000"), S(C, "pointerEvents", "none"), E.ghost = C, n.appendChild(C), S(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
|
-
if (
|
|
777
|
+
if (ee("dragStart", this, {
|
|
778
778
|
evt: n
|
|
779
779
|
}), E.eventCanceled) {
|
|
780
780
|
this._onDrop();
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
ee("setupClone", this), E.eventCanceled || (F = Xn(m), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), le(F, this.options.chosenClass, !1), E.clone = F), o.cloneId = pt(function() {
|
|
784
|
+
ee("clone", o), !E.eventCanceled && (o.options.removeCloneOnHide || R.insertBefore(F, m), o._hideClone(), Z({
|
|
785
785
|
sortable: o,
|
|
786
786
|
name: "clone"
|
|
787
787
|
}));
|
|
788
|
-
}), !e &&
|
|
788
|
+
}), !e && le(m, i.dragClass, !0), e ? (yt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (O(document, "mouseup", o._onDrop), O(document, "touchend", o._onDrop), O(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, m)), I(document, "drop", o), S(m, "transform", "translateZ(0)")), Fe = !0, o._dragStartId = pt(o._dragStarted.bind(o, e, n)), I(document, "selectstart", o), He = !0, window.getSelection().removeAllRanges(), qe && S(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
792
|
var e = this.el, o = n.target, r, i, a, l = this.options, s = l.group, c = E.active, d = it === s, f = l.sort, y = X || c, b, g = this, h = !1;
|
|
793
793
|
if (Ft) return;
|
|
794
|
-
function u(
|
|
795
|
-
|
|
794
|
+
function u(Xe, yo) {
|
|
795
|
+
ee(Xe, g, we({
|
|
796
796
|
evt: n,
|
|
797
797
|
isOwner: d,
|
|
798
798
|
axis: b ? "vertical" : "horizontal",
|
|
@@ -812,20 +812,20 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
812
812
|
function w() {
|
|
813
813
|
u("dragOverAnimationCapture"), g.captureAnimationState(), g !== y && y.captureAnimationState();
|
|
814
814
|
}
|
|
815
|
-
function N(
|
|
815
|
+
function N(Xe) {
|
|
816
816
|
return u("dragOverCompleted", {
|
|
817
|
-
insertion:
|
|
818
|
-
}),
|
|
817
|
+
insertion: Xe
|
|
818
|
+
}), Xe && (d ? c._hideClone() : c._showClone(g), g !== y && (le(m, X ? X.options.ghostClass : c.options.ghostClass, !1), le(m, l.ghostClass, !0)), X !== g && g !== E.active ? X = g : g === E.active && X && (X = null), y === g && (g._ignoreWhileAnimating = o), g.animateAll(function() {
|
|
819
819
|
u("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
820
|
-
}), g !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (o === m && !m.animated || o === e && !o.animated) && (
|
|
820
|
+
}), g !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (o === m && !m.animated || o === e && !o.animated) && (Re = null), !l.dragoverBubble && !n.rootEl && o !== document && (m.parentNode[oe]._isOutsideThisEl(n.target), !Xe && Ne(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), h = !0;
|
|
821
821
|
}
|
|
822
822
|
function j() {
|
|
823
|
-
|
|
823
|
+
se = ce(m), xe = ce(m, l.draggable), Z({
|
|
824
824
|
sortable: g,
|
|
825
825
|
name: "change",
|
|
826
826
|
toEl: e,
|
|
827
|
-
newIndex:
|
|
828
|
-
newDraggableIndex:
|
|
827
|
+
newIndex: se,
|
|
828
|
+
newDraggableIndex: xe,
|
|
829
829
|
originalEvent: n
|
|
830
830
|
});
|
|
831
831
|
}
|
|
@@ -835,7 +835,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
835
835
|
if (yt = !1, c && !l.disabled && (d ? f || (a = V !== R) : X === this || (this.lastPutMode = it.checkPull(this, c, m, n)) && s.checkPut(this, c, m, n))) {
|
|
836
836
|
if (b = this._getDirection(n, o) === "vertical", r = W(m), u("dragOverValid"), E.eventCanceled) return h;
|
|
837
837
|
if (a)
|
|
838
|
-
return V = R, w(), this._hideClone(), u("revert"), E.eventCanceled || (
|
|
838
|
+
return V = R, w(), this._hideClone(), u("revert"), E.eventCanceled || (ke ? R.insertBefore(m, ke) : R.appendChild(m)), N(!0);
|
|
839
839
|
var _ = Xt(e, l.draggable);
|
|
840
840
|
if (!_ || or(n, b, this) && !_.animated) {
|
|
841
841
|
if (_ === m)
|
|
@@ -843,30 +843,30 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
843
843
|
if (_ && e === n.target && (o = _), o && (i = W(o)), ut(R, e, m, r, o, i, n, !!o) !== !1)
|
|
844
844
|
return w(), _ && _.nextSibling ? e.insertBefore(m, _.nextSibling) : e.appendChild(m), V = e, j(), N(!0);
|
|
845
845
|
} else if (_ && nr(n, b, this)) {
|
|
846
|
-
var B =
|
|
846
|
+
var B = Ye(e, 0, l, !0);
|
|
847
847
|
if (B === m)
|
|
848
848
|
return N(!1);
|
|
849
849
|
if (o = B, i = W(o), ut(R, e, m, r, o, i, n, !1) !== !1)
|
|
850
850
|
return w(), e.insertBefore(m, B), V = e, j(), N(!0);
|
|
851
851
|
} else if (o.parentNode === e) {
|
|
852
852
|
i = W(o);
|
|
853
|
-
var $ = 0, A, U = m.parentNode !== e, p = !qo(m.animated && m.toRect || r, o.animated && o.toRect || i, b), re = b ? "top" : "left", D = un(o, "top", "top") || un(m, "top", "top"),
|
|
854
|
-
|
|
855
|
-
var
|
|
853
|
+
var $ = 0, A, U = m.parentNode !== e, p = !qo(m.animated && m.toRect || r, o.animated && o.toRect || i, b), re = b ? "top" : "left", D = un(o, "top", "top") || un(m, "top", "top"), J = D ? D.scrollTop : void 0;
|
|
854
|
+
Re !== o && (A = i[re], tt = !1, lt = !p && l.invertSwap || U), $ = rr(n, o, i, b, p ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, lt, Re === o);
|
|
855
|
+
var Q;
|
|
856
856
|
if ($ !== 0) {
|
|
857
857
|
var ae = ce(m);
|
|
858
858
|
do
|
|
859
|
-
ae -= $,
|
|
860
|
-
while (
|
|
859
|
+
ae -= $, Q = V.children[ae];
|
|
860
|
+
while (Q && (S(Q, "display") === "none" || Q === C));
|
|
861
861
|
}
|
|
862
|
-
if ($ === 0 ||
|
|
862
|
+
if ($ === 0 || Q === o)
|
|
863
863
|
return N(!1);
|
|
864
|
-
|
|
865
|
-
var H = o.nextElementSibling,
|
|
866
|
-
|
|
867
|
-
var
|
|
868
|
-
if (
|
|
869
|
-
return (
|
|
864
|
+
Re = o, et = $;
|
|
865
|
+
var H = o.nextElementSibling, ie = !1;
|
|
866
|
+
ie = $ === 1;
|
|
867
|
+
var _e = ut(R, e, m, r, o, i, n, ie);
|
|
868
|
+
if (_e !== !1)
|
|
869
|
+
return (_e === 1 || _e === -1) && (ie = _e === 1), Ft = !0, setTimeout(tr, 30), w(), ie && !H ? e.appendChild(m) : o.parentNode.insertBefore(m, ie ? H : o), D && Un(D, 0, J - D.scrollTop), V = m.parentNode, A !== void 0 && !lt && (ft = Math.abs(A - W(o)[re])), j(), N(!0);
|
|
870
870
|
}
|
|
871
871
|
if (e.contains(m))
|
|
872
872
|
return N(!1);
|
|
@@ -875,7 +875,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
875
875
|
},
|
|
876
876
|
_ignoreWhileAnimating: null,
|
|
877
877
|
_offMoveEvents: function() {
|
|
878
|
-
O(document, "mousemove", this._onTouchMove), O(document, "touchmove", this._onTouchMove), O(document, "pointermove", this._onTouchMove), O(document, "dragover",
|
|
878
|
+
O(document, "mousemove", this._onTouchMove), O(document, "touchmove", this._onTouchMove), O(document, "pointermove", this._onTouchMove), O(document, "dragover", Ne), O(document, "mousemove", Ne), O(document, "touchmove", Ne);
|
|
879
879
|
},
|
|
880
880
|
_offUpEvents: function() {
|
|
881
881
|
var n = this.el.ownerDocument;
|
|
@@ -883,52 +883,52 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
883
883
|
},
|
|
884
884
|
_onDrop: function(n) {
|
|
885
885
|
var e = this.el, o = this.options;
|
|
886
|
-
if (
|
|
886
|
+
if (se = ce(m), xe = ce(m, o.draggable), ee("drop", this, {
|
|
887
887
|
evt: n
|
|
888
|
-
}), V = m && m.parentNode,
|
|
888
|
+
}), V = m && m.parentNode, se = ce(m), xe = ce(m, o.draggable), E.eventCanceled) {
|
|
889
889
|
this._nulling();
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
|
-
|
|
892
|
+
Fe = !1, lt = !1, tt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Bt(this.cloneId), Bt(this._dragStartId), this.nativeDraggable && (O(document, "drop", this), O(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && S(document.body, "user-select", ""), S(m, "transform", ""), n && (He && (n.cancelable && n.preventDefault(), !o.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (R === V || X && X.lastPutMode !== "clone") && F && F.parentNode && F.parentNode.removeChild(F), m && (this.nativeDraggable && O(m, "dragend", this), At(m), m.style["will-change"] = "", He && !Fe && le(m, X ? X.options.ghostClass : this.options.ghostClass, !1), le(m, this.options.chosenClass, !1), Z({
|
|
893
893
|
sortable: this,
|
|
894
894
|
name: "unchoose",
|
|
895
895
|
toEl: V,
|
|
896
896
|
newIndex: null,
|
|
897
897
|
newDraggableIndex: null,
|
|
898
898
|
originalEvent: n
|
|
899
|
-
}), R !== V ? (
|
|
899
|
+
}), R !== V ? (se >= 0 && (Z({
|
|
900
900
|
rootEl: V,
|
|
901
901
|
name: "add",
|
|
902
902
|
toEl: V,
|
|
903
903
|
fromEl: R,
|
|
904
904
|
originalEvent: n
|
|
905
|
-
}),
|
|
905
|
+
}), Z({
|
|
906
906
|
sortable: this,
|
|
907
907
|
name: "remove",
|
|
908
908
|
toEl: V,
|
|
909
909
|
originalEvent: n
|
|
910
|
-
}),
|
|
910
|
+
}), Z({
|
|
911
911
|
rootEl: V,
|
|
912
912
|
name: "sort",
|
|
913
913
|
toEl: V,
|
|
914
914
|
fromEl: R,
|
|
915
915
|
originalEvent: n
|
|
916
|
-
}),
|
|
916
|
+
}), Z({
|
|
917
917
|
sortable: this,
|
|
918
918
|
name: "sort",
|
|
919
919
|
toEl: V,
|
|
920
920
|
originalEvent: n
|
|
921
|
-
})), X && X.save()) :
|
|
921
|
+
})), X && X.save()) : se !== Be && se >= 0 && (Z({
|
|
922
922
|
sortable: this,
|
|
923
923
|
name: "update",
|
|
924
924
|
toEl: V,
|
|
925
925
|
originalEvent: n
|
|
926
|
-
}),
|
|
926
|
+
}), Z({
|
|
927
927
|
sortable: this,
|
|
928
928
|
name: "sort",
|
|
929
929
|
toEl: V,
|
|
930
930
|
originalEvent: n
|
|
931
|
-
})), E.active && ((
|
|
931
|
+
})), E.active && ((se == null || se === -1) && (se = Be, xe = Qe), Z({
|
|
932
932
|
sortable: this,
|
|
933
933
|
name: "end",
|
|
934
934
|
toEl: V,
|
|
@@ -936,7 +936,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
936
936
|
}), this.save()))), this._nulling();
|
|
937
937
|
},
|
|
938
938
|
_nulling: function() {
|
|
939
|
-
|
|
939
|
+
ee("nulling", this), R = m = V = C = ke = F = dt = Te = Ie = fe = He = se = xe = Be = Qe = Re = et = X = it = E.dragged = E.ghost = E.clone = E.active = null, wt.forEach(function(n) {
|
|
940
940
|
n.checked = !0;
|
|
941
941
|
}), wt.length = Nt = Pt = 0;
|
|
942
942
|
},
|
|
@@ -1003,23 +1003,23 @@ 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 = rt.modifyOption(this, n, e);
|
|
1007
1007
|
typeof r < "u" ? o[n] = r : o[n] = e, n === "group" && Zn(o);
|
|
1008
1008
|
},
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Destroy
|
|
1011
1011
|
*/
|
|
1012
1012
|
destroy: function() {
|
|
1013
|
-
|
|
1013
|
+
ee("destroy", this);
|
|
1014
1014
|
var n = this.el;
|
|
1015
1015
|
n[oe] = null, O(n, "mousedown", this._onTapStart), O(n, "touchstart", this._onTapStart), O(n, "pointerdown", this._onTapStart), this.nativeDraggable && (O(n, "dragover", this), O(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(e) {
|
|
1016
1016
|
e.removeAttribute("draggable");
|
|
1017
1017
|
}), this._onDrop(), this._disableDelayedDragEvents(), bt.splice(bt.indexOf(this.el), 1), this.el = n = null;
|
|
1018
1018
|
},
|
|
1019
1019
|
_hideClone: function() {
|
|
1020
|
-
if (!
|
|
1021
|
-
if (
|
|
1022
|
-
S(F, "display", "none"), this.options.removeCloneOnHide && F.parentNode && F.parentNode.removeChild(F),
|
|
1020
|
+
if (!Te) {
|
|
1021
|
+
if (ee("hideClone", this), E.eventCanceled) return;
|
|
1022
|
+
S(F, "display", "none"), this.options.removeCloneOnHide && F.parentNode && F.parentNode.removeChild(F), Te = !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 (
|
|
1032
|
-
m.parentNode == R && !this.options.group.revertClone ? R.insertBefore(F, m) :
|
|
1030
|
+
if (Te) {
|
|
1031
|
+
if (ee("showClone", this), E.eventCanceled) return;
|
|
1032
|
+
m.parentNode == R && !this.options.group.revertClone ? R.insertBefore(F, m) : ke ? R.insertBefore(F, ke) : R.appendChild(F), this.options.group.revertClone && this.animate(m, F), S(F, "display", ""), Te = !1;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
@@ -1038,7 +1038,7 @@ function er(t) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
function ut(t, n, e, o, r, i, a, l) {
|
|
1040
1040
|
var s, c = t[oe], d = c.options.onMove, f;
|
|
1041
|
-
return window.CustomEvent && !
|
|
1041
|
+
return window.CustomEvent && !Ce && !ot ? s = new CustomEvent("move", {
|
|
1042
1042
|
bubbles: !0,
|
|
1043
1043
|
cancelable: !0
|
|
1044
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 || W(n), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), d && (f = d.call(c, s, a)), f;
|
|
@@ -1050,7 +1050,7 @@ function tr() {
|
|
|
1050
1050
|
Ft = !1;
|
|
1051
1051
|
}
|
|
1052
1052
|
function nr(t, n, e) {
|
|
1053
|
-
var o = W(
|
|
1053
|
+
var o = W(Ye(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) {
|
|
@@ -1061,10 +1061,10 @@ function rr(t, n, e, o, r, i, a, l) {
|
|
|
1061
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, y = !1;
|
|
1062
1062
|
if (!a) {
|
|
1063
1063
|
if (l && ft < c * r) {
|
|
1064
|
-
if (!
|
|
1064
|
+
if (!tt && (et === 1 ? s > d + c * i / 2 : s < f - c * i / 2) && (tt = !0), tt)
|
|
1065
1065
|
y = !0;
|
|
1066
|
-
else if (
|
|
1067
|
-
return -
|
|
1066
|
+
else if (et === 1 ? s < d + ft : s > f - ft)
|
|
1067
|
+
return -et;
|
|
1068
1068
|
} else if (s > d + c * (1 - r) / 2 && s < f - c * (1 - r) / 2)
|
|
1069
1069
|
return ar(n);
|
|
1070
1070
|
}
|
|
@@ -1092,7 +1092,7 @@ function Bt(t) {
|
|
|
1092
1092
|
return clearTimeout(t);
|
|
1093
1093
|
}
|
|
1094
1094
|
xt && I(document, "touchmove", function(t) {
|
|
1095
|
-
(E.active ||
|
|
1095
|
+
(E.active || Fe) && t.cancelable && t.preventDefault();
|
|
1096
1096
|
});
|
|
1097
1097
|
E.utils = {
|
|
1098
1098
|
on: I,
|
|
@@ -1105,13 +1105,13 @@ E.utils = {
|
|
|
1105
1105
|
extend: Yo,
|
|
1106
1106
|
throttle: Wn,
|
|
1107
1107
|
closest: he,
|
|
1108
|
-
toggleClass:
|
|
1108
|
+
toggleClass: le,
|
|
1109
1109
|
clone: Xn,
|
|
1110
1110
|
index: ce,
|
|
1111
1111
|
nextTick: pt,
|
|
1112
1112
|
cancelNextTick: Bt,
|
|
1113
1113
|
detectDirection: Kn,
|
|
1114
|
-
getChild:
|
|
1114
|
+
getChild: Ye,
|
|
1115
1115
|
expando: oe
|
|
1116
1116
|
};
|
|
1117
1117
|
E.get = function(t) {
|
|
@@ -1123,14 +1123,14 @@ E.mount = function() {
|
|
|
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 && (E.utils = we(we({}, E.utils), o.utils)),
|
|
1126
|
+
o.utils && (E.utils = we(we({}, E.utils), o.utils)), rt.mount(o);
|
|
1127
1127
|
});
|
|
1128
1128
|
};
|
|
1129
1129
|
E.create = function(t, n) {
|
|
1130
1130
|
return new E(t, n);
|
|
1131
1131
|
};
|
|
1132
1132
|
E.version = Lo;
|
|
1133
|
-
var Y = [],
|
|
1133
|
+
var Y = [], Ge, Vt, zt = !1, $t, Mt, _t, Ke;
|
|
1134
1134
|
function sr() {
|
|
1135
1135
|
function t() {
|
|
1136
1136
|
this.defaults = {
|
|
@@ -1156,29 +1156,29 @@ function sr() {
|
|
|
1156
1156
|
this.sortable.nativeDraggable ? O(document, "dragover", this._handleAutoScroll) : (O(document, "pointermove", this._handleFallbackAutoScroll), O(document, "touchmove", this._handleFallbackAutoScroll), O(document, "mousemove", this._handleFallbackAutoScroll)), hn(), ht(), Wo();
|
|
1157
1157
|
},
|
|
1158
1158
|
nulling: function() {
|
|
1159
|
-
_t = Vt =
|
|
1159
|
+
_t = Vt = Ge = zt = Ke = $t = Mt = null, Y.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 || ot || Ce || qe) {
|
|
1167
1167
|
Rt(e, this.options, l, o);
|
|
1168
|
-
var s =
|
|
1169
|
-
zt && (!
|
|
1170
|
-
var c =
|
|
1168
|
+
var s = Oe(l, !0);
|
|
1169
|
+
zt && (!Ke || i !== $t || a !== Mt) && (Ke && hn(), Ke = setInterval(function() {
|
|
1170
|
+
var c = Oe(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 || Oe(l, !0) === ye()) {
|
|
1175
1175
|
ht();
|
|
1176
1176
|
return;
|
|
1177
1177
|
}
|
|
1178
|
-
Rt(e, this.options,
|
|
1178
|
+
Rt(e, this.options, Oe(l, !1), !1);
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
},
|
|
1181
|
+
}, De(t, {
|
|
1182
1182
|
pluginName: "scroll",
|
|
1183
1183
|
initializeByDefault: !0
|
|
1184
1184
|
});
|
|
@@ -1189,28 +1189,28 @@ function ht() {
|
|
|
1189
1189
|
}), Y = [];
|
|
1190
1190
|
}
|
|
1191
1191
|
function hn() {
|
|
1192
|
-
clearInterval(
|
|
1192
|
+
clearInterval(Ke);
|
|
1193
1193
|
}
|
|
1194
1194
|
var Rt = Wn(function(t, n, e, o) {
|
|
1195
1195
|
if (n.scroll) {
|
|
1196
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 = ye(), c = !1, d;
|
|
1197
|
-
Vt !== e && (Vt = e, ht(),
|
|
1198
|
-
var f = 0, y =
|
|
1197
|
+
Vt !== e && (Vt = e, ht(), Ge = n.scroll, d = n.scrollFn, Ge === !0 && (Ge = Oe(e, !0)));
|
|
1198
|
+
var f = 0, y = Ge;
|
|
1199
1199
|
do {
|
|
1200
1200
|
var b = y, g = W(b), h = g.top, u = g.bottom, w = g.left, N = g.right, j = g.width, _ = g.height, B = void 0, $ = void 0, A = b.scrollWidth, U = b.scrollHeight, p = S(b), re = b.scrollLeft, D = b.scrollTop;
|
|
1201
1201
|
b === s ? (B = j < A && (p.overflowX === "auto" || p.overflowX === "scroll" || p.overflowX === "visible"), $ = _ < U && (p.overflowY === "auto" || p.overflowY === "scroll" || p.overflowY === "visible")) : (B = j < A && (p.overflowX === "auto" || p.overflowX === "scroll"), $ = _ < U && (p.overflowY === "auto" || p.overflowY === "scroll"));
|
|
1202
|
-
var
|
|
1202
|
+
var J = B && (Math.abs(N - r) <= a && re + j < A) - (Math.abs(w - r) <= a && !!re), Q = $ && (Math.abs(u - i) <= a && D + _ < U) - (Math.abs(h - i) <= a && !!D);
|
|
1203
1203
|
if (!Y[f])
|
|
1204
1204
|
for (var ae = 0; ae <= f; ae++)
|
|
1205
1205
|
Y[ae] || (Y[ae] = {});
|
|
1206
|
-
(Y[f].vx !=
|
|
1206
|
+
(Y[f].vx != J || Y[f].vy != Q || Y[f].el !== b) && (Y[f].el = b, Y[f].vx = J, Y[f].vy = Q, clearInterval(Y[f].pid), (J != 0 || Q != 0) && (c = !0, Y[f].pid = setInterval((function() {
|
|
1207
1207
|
o && this.layer === 0 && E.active._onTouchMove(_t);
|
|
1208
|
-
var H = Y[this.layer].vy ? Y[this.layer].vy * l : 0,
|
|
1209
|
-
typeof d == "function" && d.call(E.dragged.parentNode[oe],
|
|
1208
|
+
var H = Y[this.layer].vy ? Y[this.layer].vy * l : 0, ie = Y[this.layer].vx ? Y[this.layer].vx * l : 0;
|
|
1209
|
+
typeof d == "function" && d.call(E.dragged.parentNode[oe], ie, H, t, _t, Y[this.layer].el) !== "continue" || Un(Y[this.layer].el, ie, H);
|
|
1210
1210
|
}).bind({
|
|
1211
1211
|
layer: f
|
|
1212
1212
|
}), 24))), f++;
|
|
1213
|
-
} while (n.bubbleScroll && y !== s && (y =
|
|
1213
|
+
} while (n.bubbleScroll && y !== s && (y = Oe(y, !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 = Ye(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
|
+
De(Ht, {
|
|
1245
1245
|
pluginName: "revertOnSpill"
|
|
1246
1246
|
});
|
|
1247
1247
|
function Gt() {
|
|
@@ -1253,28 +1253,28 @@ Gt.prototype = {
|
|
|
1253
1253
|
},
|
|
1254
1254
|
drop: Qn
|
|
1255
1255
|
};
|
|
1256
|
-
|
|
1256
|
+
De(Gt, {
|
|
1257
1257
|
pluginName: "removeOnSpill"
|
|
1258
1258
|
});
|
|
1259
1259
|
E.mount(new sr());
|
|
1260
1260
|
E.mount(Gt, Ht);
|
|
1261
|
-
const eo = Symbol(), gt = "el", ur = "is-",
|
|
1261
|
+
const eo = Symbol(), gt = "el", ur = "is-", Pe = (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 || (
|
|
1265
|
+
const n = t || (Le() ? Ve(to, k(gt)) : k(gt));
|
|
1266
1266
|
return M(() => x(n) || gt);
|
|
1267
1267
|
}, Kt = (t, n) => {
|
|
1268
1268
|
const e = cr(n);
|
|
1269
1269
|
return {
|
|
1270
1270
|
namespace: e,
|
|
1271
|
-
b: (h = "") =>
|
|
1272
|
-
e: (h) => h ?
|
|
1273
|
-
m: (h) => h ?
|
|
1274
|
-
be: (h, u) => h && u ?
|
|
1275
|
-
em: (h, u) => h && u ?
|
|
1276
|
-
bm: (h, u) => h && u ?
|
|
1277
|
-
bem: (h, u, w) => h && u && w ?
|
|
1271
|
+
b: (h = "") => Pe(e.value, t, h, "", ""),
|
|
1272
|
+
e: (h) => h ? Pe(e.value, t, "", h, "") : "",
|
|
1273
|
+
m: (h) => h ? Pe(e.value, t, "", "", h) : "",
|
|
1274
|
+
be: (h, u) => h && u ? Pe(e.value, t, h, u, "") : "",
|
|
1275
|
+
em: (h, u) => h && u ? Pe(e.value, t, "", h, u) : "",
|
|
1276
|
+
bm: (h, u) => h && u ? Pe(e.value, t, h, "", u) : "",
|
|
1277
|
+
bem: (h, u, w) => h && u && w ? Pe(e.value, t, h, u, w) : "",
|
|
1278
1278
|
is: (h, ...u) => {
|
|
1279
1279
|
const w = u.length >= 1 ? u[0] : !0;
|
|
1280
1280
|
return h && w ? `${ur}${h}` : "";
|
|
@@ -1302,7 +1302,7 @@ const eo = Symbol(), gt = "el", ur = "is-", Ne = (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", nt = (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;
|
|
@@ -1386,11 +1386,11 @@ function Or(t) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return o;
|
|
1388
1388
|
}
|
|
1389
|
-
const Ir = (t) => t === void 0, yn = (t) => typeof t == "boolean",
|
|
1389
|
+
const Ir = (t) => t === void 0, yn = (t) => typeof t == "boolean", Ae = (t) => typeof t == "number", Nr = (t) => typeof Element > "u" ? !1 : t instanceof Element, Pr = (t) => nt(t) ? !Number.isNaN(Number(t)) : !1;
|
|
1390
1390
|
var bn;
|
|
1391
|
-
const
|
|
1391
|
+
const Ue = typeof window < "u", kr = (t) => typeof t == "string", Ar = () => {
|
|
1392
1392
|
};
|
|
1393
|
-
|
|
1393
|
+
Ue && ((bn = window == null ? void 0 : window.navigator) != null && bn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1394
1394
|
function Jt(t) {
|
|
1395
1395
|
return typeof t == "function" ? t() : x(t);
|
|
1396
1396
|
}
|
|
@@ -1401,7 +1401,7 @@ function Qt(t) {
|
|
|
1401
1401
|
return _o() ? (Eo(t), !0) : !1;
|
|
1402
1402
|
}
|
|
1403
1403
|
function Mr(t, n = !0) {
|
|
1404
|
-
|
|
1404
|
+
Le() ? Dt(t) : n ? t() : Ze(t);
|
|
1405
1405
|
}
|
|
1406
1406
|
function Rr(t, n, e = {}) {
|
|
1407
1407
|
const {
|
|
@@ -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, Ue && 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 = Ue ? 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)
|
|
@@ -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 = nt(t) ? new Gr(`[${t}] ${n}`) : t;
|
|
1527
1527
|
console.warn(e);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
const xn = {
|
|
1531
1531
|
current: 0
|
|
1532
1532
|
}, Tn = k(0), io = 2e3, On = Symbol("elZIndexContextKey"), lo = Symbol("zIndexContextKey"), Kr = (t) => {
|
|
1533
|
-
const n =
|
|
1533
|
+
const n = Le() ? Ve(On, xn) : xn, e = t || (Le() ? Ve(lo, void 0) : void 0), o = M(() => {
|
|
1534
1534
|
const a = x(e);
|
|
1535
|
-
return
|
|
1535
|
+
return Ae(a) ? a : io;
|
|
1536
1536
|
}), r = M(() => o.value + Tn.value), i = () => (n.current++, Tn.value = n.current, r.value);
|
|
1537
|
-
return !
|
|
1537
|
+
return !Ue && !Ve(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,
|
|
@@ -1731,7 +1731,7 @@ const qr = (t) => (n, e) => Jr(n, e, x(t)), Jr = (t, n, e) => Tr(e, t, t).replac
|
|
|
1731
1731
|
t: qr(t)
|
|
1732
1732
|
};
|
|
1733
1733
|
}, so = Symbol("localeContextKey"), ea = (t) => {
|
|
1734
|
-
const n = t ||
|
|
1734
|
+
const n = t || Ve(so, k());
|
|
1735
1735
|
return Qr(M(() => n.value || Zr));
|
|
1736
1736
|
}, uo = "__epPropKey", ve = (t) => t, ta = (t) => no(t) && !!t[uo], co = (t, n) => {
|
|
1737
1737
|
if (!no(t) || ta(t))
|
|
@@ -1750,14 +1750,14 @@ const qr = (t) => (n, e) => Jr(n, e, x(t)), Jr = (t, n, e) => Tr(e, t, t).replac
|
|
|
1750
1750
|
[uo]: !0
|
|
1751
1751
|
};
|
|
1752
1752
|
return gn(t, "default") && (s.default = r), s;
|
|
1753
|
-
},
|
|
1753
|
+
}, at = (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 = at({
|
|
1761
1761
|
emptyValues: Array,
|
|
1762
1762
|
valueOnClear: {
|
|
1763
1763
|
type: [String, Number, Boolean, Function],
|
|
@@ -1766,7 +1766,7 @@ const qr = (t) => (n, e) => Jr(n, e, x(t)), Jr = (t, n, e) => Tr(e, t, t).replac
|
|
|
1766
1766
|
}
|
|
1767
1767
|
}), In = (t) => Object.keys(t), St = k();
|
|
1768
1768
|
function fo(t, n = void 0) {
|
|
1769
|
-
return
|
|
1769
|
+
return Le() ? Ve(eo, St) : St;
|
|
1770
1770
|
}
|
|
1771
1771
|
function la(t, n) {
|
|
1772
1772
|
const e = fo(), o = Kt(t, M(() => {
|
|
@@ -1791,7 +1791,7 @@ function la(t, n) {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
const po = (t, n, e = !1) => {
|
|
1793
1793
|
var o;
|
|
1794
|
-
const r = !!
|
|
1794
|
+
const r = !!Le(), 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;
|
|
@@ -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 (Ae(t) || Pr(t))
|
|
1826
1826
|
return `${t}${n}`;
|
|
1827
|
-
if (
|
|
1827
|
+
if (nt(t))
|
|
1828
1828
|
return t;
|
|
1829
1829
|
Tt(ua, "binding value must be a string or number");
|
|
1830
1830
|
}
|
|
@@ -1833,17 +1833,17 @@ 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 = at({
|
|
1837
1837
|
size: {
|
|
1838
1838
|
type: ve([Number, String])
|
|
1839
1839
|
},
|
|
1840
1840
|
color: {
|
|
1841
1841
|
type: String
|
|
1842
1842
|
}
|
|
1843
|
-
}), fa =
|
|
1843
|
+
}), fa = $e({
|
|
1844
1844
|
name: "ElIcon",
|
|
1845
1845
|
inheritAttrs: !1
|
|
1846
|
-
}), pa = /* @__PURE__ */
|
|
1846
|
+
}), pa = /* @__PURE__ */ $e({
|
|
1847
1847
|
...fa,
|
|
1848
1848
|
props: da,
|
|
1849
1849
|
setup(t) {
|
|
@@ -1876,7 +1876,7 @@ const Nn = ho(ha), ga = ve([
|
|
|
1876
1876
|
info: ko
|
|
1877
1877
|
}, va = (t) => t, ya = {
|
|
1878
1878
|
esc: "Escape"
|
|
1879
|
-
}, ba =
|
|
1879
|
+
}, ba = at({
|
|
1880
1880
|
value: {
|
|
1881
1881
|
type: [String, Number],
|
|
1882
1882
|
default: ""
|
|
@@ -1907,13 +1907,13 @@ const Nn = ho(ha), ga = ve([
|
|
|
1907
1907
|
badgeClass: {
|
|
1908
1908
|
type: String
|
|
1909
1909
|
}
|
|
1910
|
-
}), wa =
|
|
1910
|
+
}), wa = $e({
|
|
1911
1911
|
name: "ElBadge"
|
|
1912
|
-
}), _a = /* @__PURE__ */
|
|
1912
|
+
}), _a = /* @__PURE__ */ $e({
|
|
1913
1913
|
...wa,
|
|
1914
1914
|
props: ba,
|
|
1915
1915
|
setup(t, { expose: n }) {
|
|
1916
|
-
const e = t, o = Kt("badge"), r = M(() => e.isDot ? "" :
|
|
1916
|
+
const e = t, o = Kt("badge"), r = M(() => e.isDot ? "" : Ae(e.value) && Ae(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), i = M(() => {
|
|
1917
1917
|
var a, l, s, c, d;
|
|
1918
1918
|
return [
|
|
1919
1919
|
{
|
|
@@ -1927,7 +1927,7 @@ const Nn = ho(ha), ga = ve([
|
|
|
1927
1927
|
return n({
|
|
1928
1928
|
content: r
|
|
1929
1929
|
}), (a, l) => (v(), T("div", {
|
|
1930
|
-
class:
|
|
1930
|
+
class: Ee(x(o).b())
|
|
1931
1931
|
}, [
|
|
1932
1932
|
de(a.$slots, "default"),
|
|
1933
1933
|
jt(An, {
|
|
@@ -1936,7 +1936,7 @@ const Nn = ho(ha), ga = ve([
|
|
|
1936
1936
|
}, {
|
|
1937
1937
|
default: L(() => [
|
|
1938
1938
|
$n(mt("sup", {
|
|
1939
|
-
class:
|
|
1939
|
+
class: Ee([
|
|
1940
1940
|
x(o).e("content"),
|
|
1941
1941
|
x(o).em("content", a.type),
|
|
1942
1942
|
x(o).is("fixed", !!a.$slots.default),
|
|
@@ -1944,7 +1944,7 @@ const Nn = ho(ha), ga = ve([
|
|
|
1944
1944
|
x(o).is("hide-zero", !a.showZero && e.value === 0),
|
|
1945
1945
|
a.badgeClass
|
|
1946
1946
|
]),
|
|
1947
|
-
style:
|
|
1947
|
+
style: te(x(i))
|
|
1948
1948
|
}, [
|
|
1949
1949
|
de(a.$slots, "content", { value: x(r) }, () => [
|
|
1950
1950
|
Mn(me(x(r)), 1)
|
|
@@ -1959,7 +1959,7 @@ 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 = at({
|
|
1963
1963
|
a11y: {
|
|
1964
1964
|
type: Boolean,
|
|
1965
1965
|
default: !0
|
|
@@ -1988,7 +1988,7 @@ const Sa = ho(Ea), Da = rt({
|
|
|
1988
1988
|
},
|
|
1989
1989
|
...ia
|
|
1990
1990
|
}), pe = {};
|
|
1991
|
-
|
|
1991
|
+
$e({
|
|
1992
1992
|
name: "ElConfigProvider",
|
|
1993
1993
|
props: Da,
|
|
1994
1994
|
setup(t, { slots: n }) {
|
|
@@ -1999,7 +1999,7 @@ Ae({
|
|
|
1999
1999
|
return () => de(n, "default", { config: e == null ? void 0 : e.value });
|
|
2000
2000
|
}
|
|
2001
2001
|
});
|
|
2002
|
-
const go = ["success", "info", "warning", "error"],
|
|
2002
|
+
const go = ["success", "info", "warning", "error"], q = va({
|
|
2003
2003
|
customClass: "",
|
|
2004
2004
|
dangerouslyUseHTMLString: !1,
|
|
2005
2005
|
duration: 3e3,
|
|
@@ -2014,27 +2014,27 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2014
2014
|
zIndex: 0,
|
|
2015
2015
|
grouping: !1,
|
|
2016
2016
|
repeatNum: 1,
|
|
2017
|
-
appendTo:
|
|
2018
|
-
}), Ca =
|
|
2017
|
+
appendTo: Ue ? document.body : void 0
|
|
2018
|
+
}), Ca = at({
|
|
2019
2019
|
customClass: {
|
|
2020
2020
|
type: String,
|
|
2021
|
-
default:
|
|
2021
|
+
default: q.customClass
|
|
2022
2022
|
},
|
|
2023
2023
|
dangerouslyUseHTMLString: {
|
|
2024
2024
|
type: Boolean,
|
|
2025
|
-
default:
|
|
2025
|
+
default: q.dangerouslyUseHTMLString
|
|
2026
2026
|
},
|
|
2027
2027
|
duration: {
|
|
2028
2028
|
type: Number,
|
|
2029
|
-
default:
|
|
2029
|
+
default: q.duration
|
|
2030
2030
|
},
|
|
2031
2031
|
icon: {
|
|
2032
2032
|
type: ga,
|
|
2033
|
-
default:
|
|
2033
|
+
default: q.icon
|
|
2034
2034
|
},
|
|
2035
2035
|
id: {
|
|
2036
2036
|
type: String,
|
|
2037
|
-
default:
|
|
2037
|
+
default: q.id
|
|
2038
2038
|
},
|
|
2039
2039
|
message: {
|
|
2040
2040
|
type: ve([
|
|
@@ -2042,40 +2042,40 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2042
2042
|
Object,
|
|
2043
2043
|
Function
|
|
2044
2044
|
]),
|
|
2045
|
-
default:
|
|
2045
|
+
default: q.message
|
|
2046
2046
|
},
|
|
2047
2047
|
onClose: {
|
|
2048
2048
|
type: ve(Function),
|
|
2049
|
-
default:
|
|
2049
|
+
default: q.onClose
|
|
2050
2050
|
},
|
|
2051
2051
|
showClose: {
|
|
2052
2052
|
type: Boolean,
|
|
2053
|
-
default:
|
|
2053
|
+
default: q.showClose
|
|
2054
2054
|
},
|
|
2055
2055
|
type: {
|
|
2056
2056
|
type: String,
|
|
2057
2057
|
values: go,
|
|
2058
|
-
default:
|
|
2058
|
+
default: q.type
|
|
2059
2059
|
},
|
|
2060
2060
|
plain: {
|
|
2061
2061
|
type: Boolean,
|
|
2062
|
-
default:
|
|
2062
|
+
default: q.plain
|
|
2063
2063
|
},
|
|
2064
2064
|
offset: {
|
|
2065
2065
|
type: Number,
|
|
2066
|
-
default:
|
|
2066
|
+
default: q.offset
|
|
2067
2067
|
},
|
|
2068
2068
|
zIndex: {
|
|
2069
2069
|
type: Number,
|
|
2070
|
-
default:
|
|
2070
|
+
default: q.zIndex
|
|
2071
2071
|
},
|
|
2072
2072
|
grouping: {
|
|
2073
2073
|
type: Boolean,
|
|
2074
|
-
default:
|
|
2074
|
+
default: q.grouping
|
|
2075
2075
|
},
|
|
2076
2076
|
repeatNum: {
|
|
2077
2077
|
type: Number,
|
|
2078
|
-
default:
|
|
2078
|
+
default: q.repeatNum
|
|
2079
2079
|
}
|
|
2080
2080
|
}), xa = {
|
|
2081
2081
|
destroy: () => !0
|
|
@@ -2086,9 +2086,9 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
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) => ge.findIndex((o) => o.id === t) > 0 ? 16 : n, Na =
|
|
2089
|
+
}, Ia = (t, n) => ge.findIndex((o) => o.id === t) > 0 ? 16 : n, Na = $e({
|
|
2090
2090
|
name: "ElMessage"
|
|
2091
|
-
}), Pa = /* @__PURE__ */
|
|
2091
|
+
}), Pa = /* @__PURE__ */ $e({
|
|
2092
2092
|
...Na,
|
|
2093
2093
|
props: Ca,
|
|
2094
2094
|
emits: xa,
|
|
@@ -2111,7 +2111,7 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2111
2111
|
b == null || b();
|
|
2112
2112
|
}
|
|
2113
2113
|
function A() {
|
|
2114
|
-
f.value = !1,
|
|
2114
|
+
f.value = !1, Ze(() => {
|
|
2115
2115
|
var p;
|
|
2116
2116
|
i.value || ((p = o.onClose) == null || p.call(o), e("destroy"));
|
|
2117
2117
|
});
|
|
@@ -2141,14 +2141,14 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2141
2141
|
id: p.id,
|
|
2142
2142
|
ref_key: "messageRef",
|
|
2143
2143
|
ref: d,
|
|
2144
|
-
class:
|
|
2144
|
+
class: Ee([
|
|
2145
2145
|
x(a).b(),
|
|
2146
2146
|
{ [x(a).m(p.type)]: p.type },
|
|
2147
2147
|
x(a).is("closable", p.showClose),
|
|
2148
2148
|
x(a).is("plain", p.plain),
|
|
2149
2149
|
p.customClass
|
|
2150
2150
|
]),
|
|
2151
|
-
style:
|
|
2151
|
+
style: te(x(_)),
|
|
2152
2152
|
role: "alert",
|
|
2153
2153
|
onMouseenter: $,
|
|
2154
2154
|
onMouseleave: B
|
|
@@ -2157,14 +2157,14 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2157
2157
|
key: 0,
|
|
2158
2158
|
value: p.repeatNum,
|
|
2159
2159
|
type: x(g),
|
|
2160
|
-
class:
|
|
2160
|
+
class: Ee(x(a).e("badge"))
|
|
2161
2161
|
}, null, 8, ["value", "type", "class"])) : z("v-if", !0),
|
|
2162
2162
|
x(u) ? (v(), P(x(Nn), {
|
|
2163
2163
|
key: 1,
|
|
2164
|
-
class:
|
|
2164
|
+
class: Ee([x(a).e("icon"), x(h)])
|
|
2165
2165
|
}, {
|
|
2166
2166
|
default: L(() => [
|
|
2167
|
-
(v(), P(
|
|
2167
|
+
(v(), P(je(x(u))))
|
|
2168
2168
|
]),
|
|
2169
2169
|
_: 1
|
|
2170
2170
|
}, 8, ["class"])) : z("v-if", !0),
|
|
@@ -2172,17 +2172,17 @@ const go = ["success", "info", "warning", "error"], J = va({
|
|
|
2172
2172
|
p.dangerouslyUseHTMLString ? (v(), T(ne, { key: 1 }, [
|
|
2173
2173
|
z(" Caution here, message could've been compromised, never use user's input as message "),
|
|
2174
2174
|
mt("p", {
|
|
2175
|
-
class:
|
|
2175
|
+
class: Ee(x(a).e("content")),
|
|
2176
2176
|
innerHTML: p.message
|
|
2177
2177
|
}, null, 10, ["innerHTML"])
|
|
2178
2178
|
], 2112)) : (v(), T("p", {
|
|
2179
2179
|
key: 0,
|
|
2180
|
-
class:
|
|
2180
|
+
class: Ee(x(a).e("content"))
|
|
2181
2181
|
}, me(p.message), 3))
|
|
2182
2182
|
]),
|
|
2183
2183
|
p.showClose ? (v(), P(x(Nn), {
|
|
2184
2184
|
key: 2,
|
|
2185
|
-
class:
|
|
2185
|
+
class: Ee(x(a).e("closeBtn")),
|
|
2186
2186
|
onClick: To(A, ["stop"])
|
|
2187
2187
|
}, {
|
|
2188
2188
|
default: L(() => [
|
|
@@ -2201,17 +2201,17 @@ const go = ["success", "info", "warning", "error"], J = 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 ||
|
|
2205
|
-
...
|
|
2204
|
+
const n = !t || nt(t) || Fn(t) || Et(t) ? { message: t } : t, e = {
|
|
2205
|
+
...q,
|
|
2206
2206
|
...n
|
|
2207
2207
|
};
|
|
2208
2208
|
if (!e.appendTo)
|
|
2209
2209
|
e.appendTo = document.body;
|
|
2210
|
-
else if (
|
|
2210
|
+
else if (nt(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 yn(pe.grouping) && !e.grouping && (e.grouping = pe.grouping),
|
|
2214
|
+
return yn(pe.grouping) && !e.grouping && (e.grouping = pe.grouping), Ae(pe.duration) && e.duration === 3e3 && (e.duration = pe.duration), Ae(pe.offset) && e.offset === 16 && (e.offset = pe.offset), yn(pe.showClose) && !e.showClose && (e.showClose = pe.showClose), e;
|
|
2215
2215
|
}, $a = (t) => {
|
|
2216
2216
|
const n = ge.indexOf(t);
|
|
2217
2217
|
if (n === -1)
|
|
@@ -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 || We._context, on(l, i), t.appendChild(i.firstElementChild);
|
|
2236
2236
|
const s = l.component, d = {
|
|
2237
2237
|
id: o,
|
|
2238
2238
|
vnode: l,
|
|
@@ -2245,8 +2245,8 @@ const mo = (t) => {
|
|
|
2245
2245
|
props: l.component.props
|
|
2246
2246
|
};
|
|
2247
2247
|
return d;
|
|
2248
|
-
},
|
|
2249
|
-
if (!
|
|
2248
|
+
}, We = (t = {}, n) => {
|
|
2249
|
+
if (!Ue)
|
|
2250
2250
|
return { close: () => {
|
|
2251
2251
|
} };
|
|
2252
2252
|
const e = mo(t);
|
|
@@ -2258,16 +2258,16 @@ const mo = (t) => {
|
|
|
2258
2258
|
if (r)
|
|
2259
2259
|
return r.props.repeatNum += 1, r.props.type = e.type, r.handler;
|
|
2260
2260
|
}
|
|
2261
|
-
if (
|
|
2261
|
+
if (Ae(pe.max) && ge.length >= pe.max)
|
|
2262
2262
|
return { close: () => {
|
|
2263
2263
|
} };
|
|
2264
2264
|
const o = Ma(e, n);
|
|
2265
2265
|
return ge.push(o), o.handler;
|
|
2266
2266
|
};
|
|
2267
2267
|
go.forEach((t) => {
|
|
2268
|
-
|
|
2268
|
+
We[t] = (n = {}, e) => {
|
|
2269
2269
|
const o = mo(n);
|
|
2270
|
-
return
|
|
2270
|
+
return We({ ...o, type: t }, e);
|
|
2271
2271
|
};
|
|
2272
2272
|
});
|
|
2273
2273
|
function Ra(t) {
|
|
@@ -2275,9 +2275,9 @@ function Ra(t) {
|
|
|
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
|
+
We.closeAll = Ra;
|
|
2279
|
+
We._context = null;
|
|
2280
|
+
const Fa = ca(We, "$message"), Ba = {
|
|
2281
2281
|
__name: "index",
|
|
2282
2282
|
props: {
|
|
2283
2283
|
value: String,
|
|
@@ -2436,7 +2436,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2436
2436
|
const y = K("el-form-item"), b = K("el-form");
|
|
2437
2437
|
return v(), T("div", {
|
|
2438
2438
|
class: "form-content",
|
|
2439
|
-
style:
|
|
2439
|
+
style: te({ flexDirection: t.isButtonRow ? "row" : "column" })
|
|
2440
2440
|
}, [
|
|
2441
2441
|
mt("div", ja, [
|
|
2442
2442
|
e.isEnableWrap ? (v(), P(b, {
|
|
@@ -2452,17 +2452,17 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2452
2452
|
(v(!0), T(ne, null, ue(e == null ? void 0 : e.rowContents, (u, w) => (v(), P(y, {
|
|
2453
2453
|
key: w,
|
|
2454
2454
|
class: "form-item",
|
|
2455
|
-
style:
|
|
2455
|
+
style: te({ flexDirection: t.isRowFlex ? "row" : "column", alignItems: t.isRowFlex ? "center" : "start", height: t.isRowFlex ? "32px" : "auto" })
|
|
2456
2456
|
}, {
|
|
2457
2457
|
label: L(() => [
|
|
2458
2458
|
u != null && u.label ? (v(), T("div", {
|
|
2459
2459
|
key: 0,
|
|
2460
2460
|
class: "from-item-label",
|
|
2461
|
-
style:
|
|
2461
|
+
style: te({ width: t.isRowFlex ? "72px" : "260px", minWidth: t.isRowFlex ? "72px" : "260px" })
|
|
2462
2462
|
}, me(u == null ? void 0 : u.label), 5)) : z("", !0)
|
|
2463
2463
|
]),
|
|
2464
2464
|
default: L(() => [
|
|
2465
|
-
(v(), P(
|
|
2465
|
+
(v(), P(je(s((u == null ? void 0 : u.type) ?? "Input")), {
|
|
2466
2466
|
modelValue: l.value[u.name],
|
|
2467
2467
|
"onUpdate:modelValue": (N) => l.value[u.name] = N,
|
|
2468
2468
|
content: (u == null ? void 0 : u.contents) ?? [],
|
|
@@ -2474,7 +2474,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2474
2474
|
((h = e.buttonValue) == null ? void 0 : h.length) > 0 && t.isButtonRow ? (v(), T("div", {
|
|
2475
2475
|
key: 0,
|
|
2476
2476
|
class: "form-button",
|
|
2477
|
-
style:
|
|
2477
|
+
style: te({ paddingTop: t.isRowFlex ? "0" : "26px" })
|
|
2478
2478
|
}, [
|
|
2479
2479
|
(v(!0), T(ne, null, ue(e == null ? void 0 : e.buttonValue, (u, w) => (v(), T("div", {
|
|
2480
2480
|
key: w,
|
|
@@ -2483,7 +2483,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2483
2483
|
u ? (v(), T("div", {
|
|
2484
2484
|
key: 0,
|
|
2485
2485
|
class: "form-button-item",
|
|
2486
|
-
style:
|
|
2486
|
+
style: te({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2487
2487
|
onClick: (N) => c(u == null ? void 0 : u.label)
|
|
2488
2488
|
}, me(u == null ? void 0 : u.label), 13, Ya)) : z("", !0)
|
|
2489
2489
|
]))), 128))
|
|
@@ -2503,18 +2503,18 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2503
2503
|
return [
|
|
2504
2504
|
(v(!0), T(ne, null, ue(e == null ? void 0 : e.rowContents, (u, w) => (v(), P(y, {
|
|
2505
2505
|
key: w,
|
|
2506
|
-
class:
|
|
2507
|
-
style:
|
|
2506
|
+
class: Ee(["form-item", { "form-row-content": !t.isRowFlex }]),
|
|
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
2509
|
label: L(() => [
|
|
2510
2510
|
u != null && u.label ? (v(), T("div", {
|
|
2511
2511
|
key: 0,
|
|
2512
2512
|
class: "from-item-label",
|
|
2513
|
-
style:
|
|
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
|
}, me(u == null ? void 0 : u.label), 5)) : z("", !0)
|
|
2515
2515
|
]),
|
|
2516
2516
|
default: L(() => [
|
|
2517
|
-
(v(), P(
|
|
2517
|
+
(v(), P(je(s((u == null ? void 0 : u.type) ?? "Input")), {
|
|
2518
2518
|
modelValue: l.value[u.name],
|
|
2519
2519
|
"onUpdate:modelValue": (N) => l.value[u.name] = N,
|
|
2520
2520
|
isEdit: e == null ? void 0 : e.isEdit,
|
|
@@ -2526,7 +2526,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2526
2526
|
((h = e.buttonValue) == null ? void 0 : h.length) > 0 && t.isButtonRow ? (v(), T("div", {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
class: "form-button",
|
|
2529
|
-
style:
|
|
2529
|
+
style: te({ paddingTop: t.isRowFlex ? "0" : "26px" })
|
|
2530
2530
|
}, [
|
|
2531
2531
|
(v(!0), T(ne, null, ue(e == null ? void 0 : e.buttonValue, (u, w) => (v(), T("div", {
|
|
2532
2532
|
key: w,
|
|
@@ -2535,7 +2535,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2535
2535
|
u ? (v(), T("div", {
|
|
2536
2536
|
key: 0,
|
|
2537
2537
|
class: "form-button-item",
|
|
2538
|
-
style:
|
|
2538
|
+
style: te({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
|
|
2539
2539
|
onClick: (N) => c(u == null ? void 0 : u.label)
|
|
2540
2540
|
}, me(u == null ? void 0 : u.label), 13, Wa)) : z("", !0)
|
|
2541
2541
|
]))), 128))
|
|
@@ -2554,7 +2554,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2554
2554
|
h ? (v(), T("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
2556
|
class: "form-button-item",
|
|
2557
|
-
style:
|
|
2557
|
+
style: te({ background: (h == null ? void 0 : h.background) ?? "var(--ssComponent-primary-color)" })
|
|
2558
2558
|
}, me(h == null ? void 0 : h.label), 5)) : z("", !0)
|
|
2559
2559
|
], 8, Xa))), 128))
|
|
2560
2560
|
])) : z("", !0)
|
|
@@ -2674,7 +2674,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2674
2674
|
key: N,
|
|
2675
2675
|
class: "tabs-children"
|
|
2676
2676
|
}, [
|
|
2677
|
-
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (v(), P(
|
|
2677
|
+
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (v(), P(je(a(w == null ? void 0 : w.type)), {
|
|
2678
2678
|
key: 0,
|
|
2679
2679
|
modelValue: w.value,
|
|
2680
2680
|
"onUpdate:modelValue": (j) => w.value = j,
|
|
@@ -2691,7 +2691,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2691
2691
|
class: "tabs-contents"
|
|
2692
2692
|
}, [
|
|
2693
2693
|
de(d.$slots, `${(u == null ? void 0 : u.value) ?? ""}_operateButtons`, {}, void 0, !0),
|
|
2694
|
-
u != null && u.value || (u == null ? void 0 : u.value) === "" ? (v(), P(
|
|
2694
|
+
u != null && u.value || (u == null ? void 0 : u.value) === "" ? (v(), P(je(a(u == null ? void 0 : u.type)), {
|
|
2695
2695
|
key: 0,
|
|
2696
2696
|
modelValue: u.value,
|
|
2697
2697
|
"onUpdate:modelValue": (N) => u.value = N,
|
|
@@ -2714,7 +2714,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2714
2714
|
}, 8, ["modelValue"]);
|
|
2715
2715
|
};
|
|
2716
2716
|
}
|
|
2717
|
-
}, vo = /* @__PURE__ */ Wt(Qa, [["__scopeId", "data-v-c1c693d0"]]),
|
|
2717
|
+
}, vo = /* @__PURE__ */ Wt(Qa, [["__scopeId", "data-v-c1c693d0"]]), hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2718
2718
|
__proto__: null,
|
|
2719
2719
|
default: vo
|
|
2720
2720
|
}, Symbol.toStringTag, { value: "Module" })), ei = {
|
|
@@ -2790,7 +2790,7 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2790
2790
|
var s, c, d, f, y, b, g;
|
|
2791
2791
|
return v(), T(ne, null, [
|
|
2792
2792
|
de(a.$slots, `${(s = e == null ? void 0 : e.content) == null ? void 0 : s.value}_tableHeader`),
|
|
2793
|
-
(v(), P(
|
|
2793
|
+
(v(), P(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,
|
|
@@ -2892,13 +2892,10 @@ const Fa = ca(Ye, "$message"), Ba = {
|
|
|
2892
2892
|
function tn(t) {
|
|
2893
2893
|
return ri[t.toUpperCase()] || null;
|
|
2894
2894
|
}
|
|
2895
|
-
const ai = {
|
|
2896
|
-
key: 0,
|
|
2897
|
-
style: { "font-size": "14px", "font-weight": "400" }
|
|
2898
|
-
}, ii = ["onClick"], li = ["onClick"], si = {
|
|
2895
|
+
const ai = ["onClick"], ii = ["onClick"], li = {
|
|
2899
2896
|
key: 2,
|
|
2900
2897
|
style: { "font-size": "14px", "font-weight": "400" }
|
|
2901
|
-
},
|
|
2898
|
+
}, si = {
|
|
2902
2899
|
__name: "index",
|
|
2903
2900
|
props: {
|
|
2904
2901
|
columns: Array,
|
|
@@ -2957,7 +2954,7 @@ const ai = {
|
|
|
2957
2954
|
onEnd: ($) => {
|
|
2958
2955
|
i.value++;
|
|
2959
2956
|
const A = $.oldIndex, U = $.newIndex, p = o.value.splice(A, 1)[0];
|
|
2960
|
-
o.value.splice(U, 0, p), e.isMoveColumn &&
|
|
2957
|
+
o.value.splice(U, 0, p), e.isMoveColumn && Ze(() => {
|
|
2961
2958
|
h(), u();
|
|
2962
2959
|
});
|
|
2963
2960
|
}
|
|
@@ -2966,7 +2963,7 @@ const ai = {
|
|
|
2966
2963
|
be(
|
|
2967
2964
|
() => e.isMoveColumn,
|
|
2968
2965
|
() => {
|
|
2969
|
-
e.isMoveColumn &&
|
|
2966
|
+
e.isMoveColumn && Ze(() => {
|
|
2970
2967
|
h(), u();
|
|
2971
2968
|
});
|
|
2972
2969
|
}
|
|
@@ -2982,7 +2979,7 @@ const ai = {
|
|
|
2982
2979
|
// 拖拽时的样式
|
|
2983
2980
|
onEnd: ({ newIndex: $, oldIndex: A }) => {
|
|
2984
2981
|
const U = [...r.value], [p] = U.splice(A, 1);
|
|
2985
|
-
U.splice($, 0, p), r.value = U,
|
|
2982
|
+
U.splice($, 0, p), r.value = U, Ze(() => {
|
|
2986
2983
|
u();
|
|
2987
2984
|
});
|
|
2988
2985
|
}
|
|
@@ -2998,8 +2995,8 @@ const ai = {
|
|
|
2998
2995
|
if (A == null || A.forEach((D) => {
|
|
2999
2996
|
re.push(D.length + p);
|
|
3000
2997
|
}), (re == null ? void 0 : re.filter((D) => {
|
|
3001
|
-
var
|
|
3002
|
-
return D > Object.keys((
|
|
2998
|
+
var J;
|
|
2999
|
+
return D > Object.keys((J = r.value) == null ? void 0 : J[0]).length;
|
|
3003
3000
|
}).length) > 0) {
|
|
3004
3001
|
Fa({
|
|
3005
3002
|
type: "warning",
|
|
@@ -3008,10 +3005,10 @@ const ai = {
|
|
|
3008
3005
|
return;
|
|
3009
3006
|
}
|
|
3010
3007
|
for (let D = 0; D < A.length; D++) {
|
|
3011
|
-
const
|
|
3012
|
-
for (let H = 0; H <
|
|
3013
|
-
const
|
|
3014
|
-
|
|
3008
|
+
const J = A[D], Q = r.value[U + D], ae = Ct(o.value).map((H) => H.prop);
|
|
3009
|
+
for (let H = 0; H < J.length && p + H < ae.length; H++) {
|
|
3010
|
+
const ie = ae[p + H];
|
|
3011
|
+
Q[ie] = J[H] || "";
|
|
3015
3012
|
}
|
|
3016
3013
|
}
|
|
3017
3014
|
} catch (B) {
|
|
@@ -3056,13 +3053,16 @@ const ai = {
|
|
|
3056
3053
|
"class-name": ((p == null ? void 0 : p.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
3057
3054
|
}, {
|
|
3058
3055
|
default: L((D) => {
|
|
3059
|
-
var
|
|
3056
|
+
var J, Q, ae, H, ie;
|
|
3060
3057
|
return [
|
|
3061
|
-
((p == null ? void 0 : p.type) ?? "text") === "text" && (((
|
|
3058
|
+
((p == null ? void 0 : p.type) ?? "text") === "text" && (((J = D == null ? void 0 : D.row) == null ? void 0 : J.tableEditType) ?? "text") === "text" ? (v(), T("span", {
|
|
3059
|
+
key: 0,
|
|
3060
|
+
style: te([{ "font-size": "14px", "font-weight": "400" }, { cursor: (Q = D == null ? void 0 : D.row) != null && Q.children ? "pointer" : "default" }])
|
|
3061
|
+
}, me((ae = D == null ? void 0 : D.row) == null ? void 0 : ae[p == null ? void 0 : p.prop]), 5)) : z("", !0),
|
|
3062
3062
|
((p == null ? void 0 : p.type) ?? "text") === "operate" ? (v(), T("span", {
|
|
3063
3063
|
key: 1,
|
|
3064
3064
|
class: "table-operate",
|
|
3065
|
-
style:
|
|
3065
|
+
style: te({
|
|
3066
3066
|
justifyContent: t.isShowEdit && t.isShowDelete ? "space-between" : "center"
|
|
3067
3067
|
})
|
|
3068
3068
|
}, [
|
|
@@ -3071,21 +3071,21 @@ const ai = {
|
|
|
3071
3071
|
}, void 0, !0),
|
|
3072
3072
|
t.isShowEdit ? (v(), T("span", {
|
|
3073
3073
|
key: 0,
|
|
3074
|
-
onClick: (
|
|
3074
|
+
onClick: (_e) => b(D == null ? void 0 : D.row),
|
|
3075
3075
|
class: "blue-table-operate table-operate-content"
|
|
3076
|
-
}, "编辑", 8,
|
|
3076
|
+
}, "编辑", 8, ai)) : z("", !0),
|
|
3077
3077
|
t.isShowDelete ? (v(), T("span", {
|
|
3078
3078
|
key: 1,
|
|
3079
|
-
onClick: (
|
|
3079
|
+
onClick: (_e) => g(D == null ? void 0 : D.row),
|
|
3080
3080
|
class: "red-table-operate table-operate-content"
|
|
3081
|
-
}, "删除", 8,
|
|
3081
|
+
}, "删除", 8, ii)) : z("", !0)
|
|
3082
3082
|
], 4)) : z("", !0),
|
|
3083
|
-
((p == null ? void 0 : p.type) ?? "text") === "edit" && (((
|
|
3084
|
-
(v(), P(
|
|
3083
|
+
((p == null ? void 0 : p.type) ?? "text") === "edit" && (((H = D == null ? void 0 : D.row) == null ? void 0 : H.tableEditType) ?? "text") !== "edit" || ((p == null ? void 0 : p.type) ?? "text") === "text" && (((ie = D == null ? void 0 : D.row) == null ? void 0 : ie.tableEditType) ?? "text") === "edit" ? (v(), T("span", li, [
|
|
3084
|
+
(v(), P(je(c((p == null ? void 0 : p.columnType) ?? "Input")), {
|
|
3085
3085
|
modelValue: D.row[p.prop],
|
|
3086
|
-
"onUpdate:modelValue": (
|
|
3086
|
+
"onUpdate:modelValue": (_e) => D.row[p.prop] = _e,
|
|
3087
3087
|
style: { height: "100%" },
|
|
3088
|
-
onFocus: (
|
|
3088
|
+
onFocus: (_e) => j(D),
|
|
3089
3089
|
content: (p == null ? void 0 : p.contents) ?? []
|
|
3090
3090
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "onFocus", "content"]))
|
|
3091
3091
|
])) : z("", !0)
|
|
@@ -3109,10 +3109,10 @@ const ai = {
|
|
|
3109
3109
|
], 64);
|
|
3110
3110
|
};
|
|
3111
3111
|
}
|
|
3112
|
-
},
|
|
3112
|
+
}, ui = /* @__PURE__ */ Wt(si, [["__scopeId", "data-v-9d7722a5"]]);
|
|
3113
3113
|
export {
|
|
3114
3114
|
Fa as E,
|
|
3115
3115
|
Ga as a,
|
|
3116
|
-
|
|
3117
|
-
|
|
3116
|
+
hi as i,
|
|
3117
|
+
ui as s
|
|
3118
3118
|
};
|