sun-form-v3 1.0.43 → 1.0.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/sun-form-v3.es.js +127 -134
- package/dist/sun-form-v3.umd.js +6 -6
- package/package.json +1 -1
package/dist/sun-form-v3.es.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
import
|
2
|
-
const
|
1
|
+
import nr, { openBlock as Vt, createElementBlock as vn, Fragment as Gn, createTextVNode as hn, createElementVNode as $n, reactive as In, resolveComponent as oe, createBlock as de, unref as ht, withCtx as Wt, createVNode as je, resolveDynamicComponent as Bn, computed as pn, getCurrentInstance as rr, onMounted as or, createSlots as ar, toDisplayString as Pn, renderList as ir } from "vue";
|
2
|
+
const lr = /* @__PURE__ */ Object.assign({ name: "testBtn" }, {
|
3
3
|
__name: "testBtn",
|
4
4
|
setup(l) {
|
5
5
|
return (r, n) => " testBtn ";
|
6
6
|
}
|
7
|
-
}),
|
7
|
+
}), sr = /* @__PURE__ */ $n("input", { type: "text" }, null, -1), fr = /* @__PURE__ */ Object.assign({ name: "testInput" }, {
|
8
8
|
__name: "testInput",
|
9
9
|
setup(l) {
|
10
|
-
return (r, n) => (Vt(), vn(
|
10
|
+
return (r, n) => (Vt(), vn(Gn, null, [
|
11
11
|
hn(" testInput "),
|
12
|
-
|
12
|
+
sr
|
13
13
|
], 64));
|
14
14
|
}
|
15
15
|
});
|
16
|
-
var
|
17
|
-
function
|
16
|
+
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
17
|
+
function cr(l) {
|
18
18
|
return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
|
19
19
|
}
|
20
|
-
function
|
20
|
+
function dr(l) {
|
21
21
|
if (l.__esModule)
|
22
22
|
return l;
|
23
23
|
var r = l.default;
|
@@ -38,7 +38,7 @@ function vr(l) {
|
|
38
38
|
});
|
39
39
|
}), n;
|
40
40
|
}
|
41
|
-
var
|
41
|
+
var Kn = { exports: {} };
|
42
42
|
/**!
|
43
43
|
* Sortable 1.14.0
|
44
44
|
* @author RubaXa <trash@rubaxa.org>
|
@@ -59,7 +59,7 @@ function Ht(l) {
|
|
59
59
|
for (var r = 1; r < arguments.length; r++) {
|
60
60
|
var n = arguments[r] != null ? arguments[r] : {};
|
61
61
|
r % 2 ? Dn(Object(n), !0).forEach(function(a) {
|
62
|
-
|
62
|
+
vr(l, a, n[a]);
|
63
63
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(n)) : Dn(Object(n)).forEach(function(a) {
|
64
64
|
Object.defineProperty(l, a, Object.getOwnPropertyDescriptor(n, a));
|
65
65
|
});
|
@@ -74,7 +74,7 @@ function We(l) {
|
|
74
74
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
75
75
|
}, We(l);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function vr(l, r, n) {
|
78
78
|
return r in l ? Object.defineProperty(l, r, {
|
79
79
|
value: n,
|
80
80
|
enumerable: !0,
|
@@ -92,7 +92,7 @@ function Nt() {
|
|
92
92
|
return l;
|
93
93
|
}, Nt.apply(this, arguments);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function hr(l, r) {
|
96
96
|
if (l == null)
|
97
97
|
return {};
|
98
98
|
var n = {}, a = Object.keys(l), e, f;
|
@@ -100,10 +100,10 @@ function pr(l, r) {
|
|
100
100
|
e = a[f], !(r.indexOf(e) >= 0) && (n[e] = l[e]);
|
101
101
|
return n;
|
102
102
|
}
|
103
|
-
function
|
103
|
+
function pr(l, r) {
|
104
104
|
if (l == null)
|
105
105
|
return {};
|
106
|
-
var n =
|
106
|
+
var n = hr(l, r), a, e;
|
107
107
|
if (Object.getOwnPropertySymbols) {
|
108
108
|
var f = Object.getOwnPropertySymbols(l);
|
109
109
|
for (e = 0; e < f.length; e++)
|
@@ -111,18 +111,18 @@ function gr(l, r) {
|
|
111
111
|
}
|
112
112
|
return n;
|
113
113
|
}
|
114
|
-
function
|
115
|
-
return
|
114
|
+
function gr(l) {
|
115
|
+
return mr(l) || yr(l) || Sr(l) || br();
|
116
116
|
}
|
117
|
-
function
|
117
|
+
function mr(l) {
|
118
118
|
if (Array.isArray(l))
|
119
119
|
return gn(l);
|
120
120
|
}
|
121
|
-
function
|
121
|
+
function yr(l) {
|
122
122
|
if (typeof Symbol < "u" && l[Symbol.iterator] != null || l["@@iterator"] != null)
|
123
123
|
return Array.from(l);
|
124
124
|
}
|
125
|
-
function
|
125
|
+
function Sr(l, r) {
|
126
126
|
if (l) {
|
127
127
|
if (typeof l == "string")
|
128
128
|
return gn(l, r);
|
@@ -139,24 +139,24 @@ function gn(l, r) {
|
|
139
139
|
a[n] = l[n];
|
140
140
|
return a;
|
141
141
|
}
|
142
|
-
function
|
142
|
+
function br() {
|
143
143
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
144
144
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
145
145
|
}
|
146
|
-
var
|
146
|
+
var Er = "1.14.0";
|
147
147
|
function Xt(l) {
|
148
148
|
if (typeof window < "u" && window.navigator)
|
149
149
|
return !!/* @__PURE__ */ navigator.userAgent.match(l);
|
150
150
|
}
|
151
|
-
var Yt = Xt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = Xt(/Edge/i), Cn = Xt(/firefox/i), De = Xt(/safari/i) && !Xt(/chrome/i) && !Xt(/android/i),
|
151
|
+
var Yt = Xt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = Xt(/Edge/i), Cn = Xt(/firefox/i), De = Xt(/safari/i) && !Xt(/chrome/i) && !Xt(/android/i), Hn = Xt(/iP(ad|od|hone)/i), xr = Xt(/chrome/i) && Xt(/android/i), Wn = {
|
152
152
|
capture: !1,
|
153
153
|
passive: !1
|
154
154
|
};
|
155
155
|
function Z(l, r, n) {
|
156
|
-
l.addEventListener(r, n, !Yt &&
|
156
|
+
l.addEventListener(r, n, !Yt && Wn);
|
157
157
|
}
|
158
158
|
function Q(l, r, n) {
|
159
|
-
l.removeEventListener(r, n, !Yt &&
|
159
|
+
l.removeEventListener(r, n, !Yt && Wn);
|
160
160
|
}
|
161
161
|
function Je(l, r) {
|
162
162
|
if (r) {
|
@@ -174,7 +174,7 @@ function Je(l, r) {
|
|
174
174
|
return !1;
|
175
175
|
}
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function Or(l) {
|
178
178
|
return l.host && l !== document && l.host.nodeType ? l.host : l.parentNode;
|
179
179
|
}
|
180
180
|
function Gt(l, r, n, a) {
|
@@ -185,7 +185,7 @@ function Gt(l, r, n, a) {
|
|
185
185
|
return l;
|
186
186
|
if (l === n)
|
187
187
|
break;
|
188
|
-
} while (l =
|
188
|
+
} while (l = Or(l));
|
189
189
|
}
|
190
190
|
return null;
|
191
191
|
}
|
@@ -219,7 +219,7 @@ function ae(l, r) {
|
|
219
219
|
var e = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
220
220
|
return e && new e(n);
|
221
221
|
}
|
222
|
-
function
|
222
|
+
function Vn(l, r, n) {
|
223
223
|
if (l) {
|
224
224
|
var a = l.getElementsByTagName(r), e = 0, f = a.length;
|
225
225
|
if (n)
|
@@ -302,7 +302,7 @@ function wn(l) {
|
|
302
302
|
} while (l !== a && (l = l.parentNode));
|
303
303
|
return [r, n];
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function Tr(l, r) {
|
306
306
|
for (var n in l)
|
307
307
|
if (l.hasOwnProperty(n)) {
|
308
308
|
for (var a in r)
|
@@ -329,7 +329,7 @@ function qt(l, r) {
|
|
329
329
|
while (n = n.parentNode);
|
330
330
|
return Kt();
|
331
331
|
}
|
332
|
-
function
|
332
|
+
function Ir(l, r) {
|
333
333
|
if (l && r)
|
334
334
|
for (var n in r)
|
335
335
|
r.hasOwnProperty(n) && (l[n] = r[n]);
|
@@ -339,7 +339,7 @@ function nn(l, r) {
|
|
339
339
|
return Math.round(l.top) === Math.round(r.top) && Math.round(l.left) === Math.round(r.left) && Math.round(l.height) === Math.round(r.height) && Math.round(l.width) === Math.round(r.width);
|
340
340
|
}
|
341
341
|
var Ce;
|
342
|
-
function
|
342
|
+
function Xn(l, r) {
|
343
343
|
return function() {
|
344
344
|
if (!Ce) {
|
345
345
|
var n = arguments, a = this;
|
@@ -349,10 +349,10 @@ function Yn(l, r) {
|
|
349
349
|
}
|
350
350
|
};
|
351
351
|
}
|
352
|
-
function
|
352
|
+
function Pr() {
|
353
353
|
clearTimeout(Ce), Ce = void 0;
|
354
354
|
}
|
355
|
-
function
|
355
|
+
function Yn(l, r, n) {
|
356
356
|
l.scrollLeft += r, l.scrollTop += n;
|
357
357
|
}
|
358
358
|
function xn(l) {
|
@@ -366,7 +366,7 @@ function rn(l) {
|
|
366
366
|
L(l, "position", ""), L(l, "top", ""), L(l, "left", ""), L(l, "width", ""), L(l, "height", "");
|
367
367
|
}
|
368
368
|
var Tt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
369
|
-
function
|
369
|
+
function Dr() {
|
370
370
|
var l = [], r;
|
371
371
|
return {
|
372
372
|
captureAnimationState: function() {
|
@@ -392,7 +392,7 @@ function Cr() {
|
|
392
392
|
l.push(a);
|
393
393
|
},
|
394
394
|
removeAnimationState: function(a) {
|
395
|
-
l.splice(
|
395
|
+
l.splice(Tr(l, {
|
396
396
|
target: a
|
397
397
|
}), 1);
|
398
398
|
},
|
@@ -406,7 +406,7 @@ function Cr() {
|
|
406
406
|
l.forEach(function(o) {
|
407
407
|
var i = 0, s = o.target, c = s.fromRect, u = at(s), d = s.prevFromRect, v = s.prevToRect, h = o.rect, p = ae(s, !0);
|
408
408
|
p && (u.top -= p.f, u.left -= p.e), s.toRect = u, s.thisAnimationDuration && nn(d, u) && !nn(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
409
|
-
(h.top - u.top) / (h.left - u.left) === (c.top - u.top) / (c.left - u.left) && (i =
|
409
|
+
(h.top - u.top) / (h.left - u.left) === (c.top - u.top) / (c.left - u.left) && (i = Ar(h, d, v, e.options)), nn(u, c) || (s.prevFromRect = c, s.prevToRect = u, i || (i = e.options.animation), e.animate(s, h, u, i)), i && (f = !0, t = Math.max(t, i), clearTimeout(s.animationResetTimer), s.animationResetTimer = setTimeout(function() {
|
410
410
|
s.animationTime = 0, s.prevFromRect = null, s.fromRect = null, s.prevToRect = null, s.thisAnimationDuration = null;
|
411
411
|
}, i), s.thisAnimationDuration = i);
|
412
412
|
}), clearTimeout(r), f ? r = setTimeout(function() {
|
@@ -417,17 +417,17 @@ function Cr() {
|
|
417
417
|
if (t) {
|
418
418
|
L(a, "transition", ""), L(a, "transform", "");
|
419
419
|
var o = ae(this.el), i = o && o.a, s = o && o.d, c = (e.left - f.left) / (i || 1), u = (e.top - f.top) / (s || 1);
|
420
|
-
a.animatingX = !!c, a.animatingY = !!u, L(a, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy =
|
420
|
+
a.animatingX = !!c, a.animatingY = !!u, L(a, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Cr(a), L(a, "transition", "transform " + t + "ms" + (this.options.easing ? " " + this.options.easing : "")), L(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
421
421
|
L(a, "transition", ""), L(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
422
422
|
}, t);
|
423
423
|
}
|
424
424
|
}
|
425
425
|
};
|
426
426
|
}
|
427
|
-
function
|
427
|
+
function Cr(l) {
|
428
428
|
return l.offsetWidth;
|
429
429
|
}
|
430
|
-
function
|
430
|
+
function Ar(l, r, n, a) {
|
431
431
|
return Math.sqrt(Math.pow(r.top - l.top, 2) + Math.pow(r.left - l.left, 2)) / Math.sqrt(Math.pow(r.top - n.top, 2) + Math.pow(r.left - n.left, 2)) * a.animation;
|
432
432
|
}
|
433
433
|
var le = [], on = {
|
@@ -496,8 +496,8 @@ function Oe(l) {
|
|
496
496
|
n && n.dispatchEvent(p), g[S] && g[S].call(r, p);
|
497
497
|
}
|
498
498
|
}
|
499
|
-
var
|
500
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = a.evt, f =
|
499
|
+
var Rr = ["evt"], Ct = function(r, n) {
|
500
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = a.evt, f = pr(a, Rr);
|
501
501
|
Ne.pluginEvent.bind(K)(r, n, Ht({
|
502
502
|
dragEl: A,
|
503
503
|
parentEl: ut,
|
@@ -515,8 +515,8 @@ var wr = ["evt"], Ct = function(r, n) {
|
|
515
515
|
oldDraggableIndex: Ae,
|
516
516
|
newIndex: jt,
|
517
517
|
newDraggableIndex: Zt,
|
518
|
-
hideGhostForTarget:
|
519
|
-
unhideGhostForTarget:
|
518
|
+
hideGhostForTarget: Zn,
|
519
|
+
unhideGhostForTarget: kn,
|
520
520
|
cloneNowHidden: function() {
|
521
521
|
kt = !0;
|
522
522
|
},
|
@@ -544,14 +544,14 @@ function Pt(l) {
|
|
544
544
|
newDraggableIndex: Zt
|
545
545
|
}, l));
|
546
546
|
}
|
547
|
-
var A, ut, z, ot, re, Ve, ct, kt, ce, jt, Ae, Zt, Ue, xt, ue = !1, Qe = !1, Ze = [], ee, Lt, an, ln, Mn, Nn, Te, se, Re, we = !1, Ge = !1, Xe, Ot, sn = [], mn = !1, ke = [], _e = typeof document < "u", $e =
|
547
|
+
var A, ut, z, ot, re, Ve, ct, kt, ce, jt, Ae, Zt, Ue, xt, ue = !1, Qe = !1, Ze = [], ee, Lt, an, ln, Mn, Nn, Te, se, Re, we = !1, Ge = !1, Xe, Ot, sn = [], mn = !1, ke = [], _e = typeof document < "u", $e = Hn, Fn = Me || Yt ? "cssFloat" : "float", wr = _e && !xr && !Hn && "draggable" in document.createElement("div"), zn = function() {
|
548
548
|
if (_e) {
|
549
549
|
if (Yt)
|
550
550
|
return !1;
|
551
551
|
var l = document.createElement("x");
|
552
552
|
return l.style.cssText = "pointer-events:auto", l.style.pointerEvents === "auto";
|
553
553
|
}
|
554
|
-
}(),
|
554
|
+
}(), Jn = function(r, n) {
|
555
555
|
var a = L(r), e = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), f = ve(r, 0, n), t = ve(r, 1, n), o = f && L(f), i = t && L(t), s = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + at(f).width, c = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + at(t).width;
|
556
556
|
if (a.display === "flex")
|
557
557
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
@@ -562,10 +562,10 @@ var A, ut, z, ot, re, Ve, ct, kt, ce, jt, Ae, Zt, Ue, xt, ue = !1, Qe = !1, Ze =
|
|
562
562
|
return t && (i.clear === "both" || i.clear === u) ? "vertical" : "horizontal";
|
563
563
|
}
|
564
564
|
return f && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || s >= e && a[Fn] === "none" || t && a[Fn] === "none" && s + c > e) ? "vertical" : "horizontal";
|
565
|
-
},
|
565
|
+
}, jr = function(r, n, a) {
|
566
566
|
var e = a ? r.left : r.top, f = a ? r.right : r.bottom, t = a ? r.width : r.height, o = a ? n.left : n.top, i = a ? n.right : n.bottom, s = a ? n.width : n.height;
|
567
567
|
return e === o || f === i || e + t / 2 === o + s / 2;
|
568
|
-
},
|
568
|
+
}, Mr = function(r, n) {
|
569
569
|
var a;
|
570
570
|
return Ze.some(function(e) {
|
571
571
|
var f = e[Tt].options.emptyInsertThreshold;
|
@@ -575,7 +575,7 @@ var A, ut, z, ot, re, Ve, ct, kt, ce, jt, Ae, Zt, Ue, xt, ue = !1, Qe = !1, Ze =
|
|
575
575
|
return a = e;
|
576
576
|
}
|
577
577
|
}), a;
|
578
|
-
},
|
578
|
+
}, Qn = function(r) {
|
579
579
|
function n(f, t) {
|
580
580
|
return function(o, i, s, c) {
|
581
581
|
var u = o.options.group.name && i.options.group.name && o.options.group.name === i.options.group.name;
|
@@ -595,10 +595,10 @@ var A, ut, z, ot, re, Ve, ct, kt, ce, jt, Ae, Zt, Ue, xt, ue = !1, Qe = !1, Ze =
|
|
595
595
|
(!e || We(e) != "object") && (e = {
|
596
596
|
name: e
|
597
597
|
}), a.name = e.name, a.checkPull = n(e.pull, !0), a.checkPut = n(e.put), a.revertClone = e.revertClone, r.group = a;
|
598
|
+
}, Zn = function() {
|
599
|
+
!zn && z && L(z, "display", "none");
|
598
600
|
}, kn = function() {
|
599
|
-
!
|
600
|
-
}, qn = function() {
|
601
|
-
!Jn && z && L(z, "display", "");
|
601
|
+
!zn && z && L(z, "display", "");
|
602
602
|
};
|
603
603
|
_e && document.addEventListener("click", function(l) {
|
604
604
|
if (Qe)
|
@@ -607,7 +607,7 @@ _e && document.addEventListener("click", function(l) {
|
|
607
607
|
var ne = function(r) {
|
608
608
|
if (A) {
|
609
609
|
r = r.touches ? r.touches[0] : r;
|
610
|
-
var n =
|
610
|
+
var n = Mr(r.clientX, r.clientY);
|
611
611
|
if (n) {
|
612
612
|
var a = {};
|
613
613
|
for (var e in r)
|
@@ -615,7 +615,7 @@ var ne = function(r) {
|
|
615
615
|
a.target = a.rootEl = n, a.preventDefault = void 0, a.stopPropagation = void 0, n[Tt]._onDragOver(a);
|
616
616
|
}
|
617
617
|
}
|
618
|
-
},
|
618
|
+
}, Nr = function(r) {
|
619
619
|
A && A.parentNode[Tt]._isOutsideThisEl(r.target);
|
620
620
|
};
|
621
621
|
function K(l, r) {
|
@@ -637,7 +637,7 @@ function K(l, r) {
|
|
637
637
|
// will be set to same as swapThreshold if default
|
638
638
|
removeCloneOnHide: !0,
|
639
639
|
direction: function() {
|
640
|
-
return
|
640
|
+
return Jn(l, this.options);
|
641
641
|
},
|
642
642
|
ghostClass: "sortable-ghost",
|
643
643
|
chosenClass: "sortable-chosen",
|
@@ -670,10 +670,10 @@ function K(l, r) {
|
|
670
670
|
Ne.initializePlugins(this, l, n);
|
671
671
|
for (var a in n)
|
672
672
|
!(a in r) && (r[a] = n[a]);
|
673
|
-
|
673
|
+
Qn(r);
|
674
674
|
for (var e in this)
|
675
675
|
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
676
|
-
this.nativeDraggable = r.forceFallback ? !1 :
|
676
|
+
this.nativeDraggable = r.forceFallback ? !1 : wr, this.nativeDraggable && (this.options.touchStartThreshold = 1), r.supportPointer ? Z(l, "pointerdown", this._onTapStart) : (Z(l, "mousedown", this._onTapStart), Z(l, "touchstart", this._onTapStart)), this.nativeDraggable && (Z(l, "dragover", this), Z(l, "dragenter", this)), Ze.push(this.el), r.store && r.store.get && this.sort(r.store.get(this) || []), Nt(this, Dr());
|
677
677
|
}
|
678
678
|
K.prototype = /** @lends Sortable.prototype */
|
679
679
|
{
|
@@ -687,7 +687,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
687
687
|
_onTapStart: function(r) {
|
688
688
|
if (r.cancelable) {
|
689
689
|
var n = this, a = this.el, e = this.options, f = e.preventOnFilter, t = r.type, o = r.touches && r.touches[0] || r.pointerType && r.pointerType === "touch" && r, i = (o || r).target, s = r.target.shadowRoot && (r.path && r.path[0] || r.composedPath && r.composedPath()[0]) || i, c = e.filter;
|
690
|
-
if (
|
690
|
+
if (Hr(a), !A && !(/mousedown|pointerdown/.test(t) && r.button !== 0 || e.disabled) && !s.isContentEditable && !(!this.nativeDraggable && De && i && i.tagName.toUpperCase() === "SELECT") && (i = Gt(i, e.draggable, a, !1), !(i && i.animated) && Ve !== i)) {
|
691
691
|
if (ce = dt(i), Ae = dt(i, e.draggable), typeof c == "function") {
|
692
692
|
if (c.call(this, r, i, this)) {
|
693
693
|
Pt({
|
@@ -743,7 +743,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
743
743
|
originalEvent: r
|
744
744
|
}), lt(A, t.chosenClass, !0);
|
745
745
|
}, t.ignore.split(",").forEach(function(c) {
|
746
|
-
|
746
|
+
Vn(A, c.trim(), fn);
|
747
747
|
}), Z(o, "dragover", ne), Z(o, "mousemove", ne), Z(o, "touchmove", ne), Z(o, "mouseup", e._onDrop), Z(o, "touchend", e._onDrop), Z(o, "touchcancel", e._onDrop), Cn && this.nativeDraggable && (this.options.touchStartThreshold = 4, A.draggable = !0), Ct("delayStart", this, {
|
748
748
|
evt: r
|
749
749
|
}), t.delay && (!t.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Me || Yt))) {
|
@@ -780,7 +780,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
780
780
|
if (ue = !1, ot && A) {
|
781
781
|
Ct("dragStarted", this, {
|
782
782
|
evt: n
|
783
|
-
}), this.nativeDraggable && Z(document, "dragover",
|
783
|
+
}), this.nativeDraggable && Z(document, "dragover", Nr);
|
784
784
|
var a = this.options;
|
785
785
|
!r && lt(A, a.dragClass, !1), lt(A, a.ghostClass, !0), K.active = this, r && this._appendGhost(), Pt({
|
786
786
|
sortable: this,
|
@@ -792,7 +792,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
792
792
|
},
|
793
793
|
_emulateDragOver: function() {
|
794
794
|
if (Lt) {
|
795
|
-
this._lastX = Lt.clientX, this._lastY = Lt.clientY,
|
795
|
+
this._lastX = Lt.clientX, this._lastY = Lt.clientY, Zn();
|
796
796
|
for (var r = document.elementFromPoint(Lt.clientX, Lt.clientY), n = r; r && r.shadowRoot && (r = r.shadowRoot.elementFromPoint(Lt.clientX, Lt.clientY), r !== n); )
|
797
797
|
n = r;
|
798
798
|
if (A.parentNode[Tt]._isOutsideThisEl(r), n)
|
@@ -809,7 +809,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
809
809
|
}
|
810
810
|
r = n;
|
811
811
|
} while (n = n.parentNode);
|
812
|
-
|
812
|
+
kn();
|
813
813
|
}
|
814
814
|
},
|
815
815
|
_onTouchMove: function(r) {
|
@@ -914,12 +914,12 @@ K.prototype = /** @lends Sortable.prototype */
|
|
914
914
|
if (t)
|
915
915
|
return ut = ot, S(), this._hideClone(), g("revert"), K.eventCanceled || (re ? ot.insertBefore(A, re) : ot.appendChild(A)), b(!0);
|
916
916
|
var x = En(n, o.draggable);
|
917
|
-
if (!x ||
|
917
|
+
if (!x || Gr(r, v, this) && !x.animated) {
|
918
918
|
if (x === A)
|
919
919
|
return b(!1);
|
920
920
|
if (x && n === r.target && (a = x), a && (f = at(a)), Be(ot, n, A, e, a, f, r, !!a) !== !1)
|
921
921
|
return S(), n.appendChild(A), ut = n, I(), b(!0);
|
922
|
-
} else if (x &&
|
922
|
+
} else if (x && Ur(r, v, this)) {
|
923
923
|
var P = ve(n, 0, o, !0);
|
924
924
|
if (P === A)
|
925
925
|
return b(!1);
|
@@ -927,8 +927,8 @@ K.prototype = /** @lends Sortable.prototype */
|
|
927
927
|
return S(), n.insertBefore(A, P), ut = n, I(), b(!0);
|
928
928
|
} else if (a.parentNode === n) {
|
929
929
|
f = at(a);
|
930
|
-
var O = 0, F, U = A.parentNode !== n, T = !
|
931
|
-
se !== a && (F = f[w], we = !1, Ge = !T && o.invertSwap || U), O =
|
930
|
+
var O = 0, F, U = A.parentNode !== n, T = !jr(A.animated && A.toRect || e, a.animated && a.toRect || f, v), w = v ? "top" : "left", M = Rn(a, "top", "top") || Rn(A, "top", "top"), X = M ? M.scrollTop : void 0;
|
931
|
+
se !== a && (F = f[w], we = !1, Ge = !T && o.invertSwap || U), O = $r(r, a, f, v, T ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ge, se === a);
|
932
932
|
var C;
|
933
933
|
if (O !== 0) {
|
934
934
|
var R = dt(A);
|
@@ -943,7 +943,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
943
943
|
j = O === 1;
|
944
944
|
var $ = Be(ot, n, A, e, a, f, r, j);
|
945
945
|
if ($ !== !1)
|
946
|
-
return ($ === 1 || $ === -1) && (j = $ === 1), mn = !0, setTimeout(
|
946
|
+
return ($ === 1 || $ === -1) && (j = $ === 1), mn = !0, setTimeout(Lr, 30), S(), j && !V ? n.appendChild(A) : a.parentNode.insertBefore(A, j ? V : a), M && Yn(M, 0, X - M.scrollTop), ut = A.parentNode, F !== void 0 && !Ge && (Xe = Math.abs(F - at(a)[w])), I(), b(!0);
|
947
947
|
}
|
948
948
|
if (n.contains(A))
|
949
949
|
return b(!1);
|
@@ -1025,7 +1025,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
1025
1025
|
break;
|
1026
1026
|
case "dragenter":
|
1027
1027
|
case "dragover":
|
1028
|
-
A && (this._onDragOver(r),
|
1028
|
+
A && (this._onDragOver(r), Fr(r));
|
1029
1029
|
break;
|
1030
1030
|
case "selectstart":
|
1031
1031
|
r.preventDefault();
|
@@ -1038,7 +1038,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
1038
1038
|
*/
|
1039
1039
|
toArray: function() {
|
1040
1040
|
for (var r = [], n, a = this.el.children, e = 0, f = a.length, t = this.options; e < f; e++)
|
1041
|
-
n = a[e], Gt(n, t.draggable, this.el, !1) && r.push(n.getAttribute(t.dataIdAttr) ||
|
1041
|
+
n = a[e], Gt(n, t.draggable, this.el, !1) && r.push(n.getAttribute(t.dataIdAttr) || Kr(n));
|
1042
1042
|
return r;
|
1043
1043
|
},
|
1044
1044
|
/**
|
@@ -1081,7 +1081,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
1081
1081
|
if (n === void 0)
|
1082
1082
|
return a[r];
|
1083
1083
|
var e = Ne.modifyOption(this, r, n);
|
1084
|
-
typeof e < "u" ? a[r] = e : a[r] = n, r === "group" &&
|
1084
|
+
typeof e < "u" ? a[r] = e : a[r] = n, r === "group" && Qn(a);
|
1085
1085
|
},
|
1086
1086
|
/**
|
1087
1087
|
* Destroy
|
@@ -1112,7 +1112,7 @@ K.prototype = /** @lends Sortable.prototype */
|
|
1112
1112
|
}
|
1113
1113
|
}
|
1114
1114
|
};
|
1115
|
-
function
|
1115
|
+
function Fr(l) {
|
1116
1116
|
l.dataTransfer && (l.dataTransfer.dropEffect = "move"), l.cancelable && l.preventDefault();
|
1117
1117
|
}
|
1118
1118
|
function Be(l, r, n, a, e, f, t, o) {
|
@@ -1125,18 +1125,18 @@ function Be(l, r, n, a, e, f, t, o) {
|
|
1125
1125
|
function fn(l) {
|
1126
1126
|
l.draggable = !1;
|
1127
1127
|
}
|
1128
|
-
function
|
1128
|
+
function Lr() {
|
1129
1129
|
mn = !1;
|
1130
1130
|
}
|
1131
|
-
function
|
1131
|
+
function Ur(l, r, n) {
|
1132
1132
|
var a = at(ve(n.el, 0, n.options, !0)), e = 10;
|
1133
1133
|
return r ? l.clientX < a.left - e || l.clientY < a.top && l.clientX < a.right : l.clientY < a.top - e || l.clientY < a.bottom && l.clientX < a.left;
|
1134
1134
|
}
|
1135
|
-
function
|
1135
|
+
function Gr(l, r, n) {
|
1136
1136
|
var a = at(En(n.el, n.options.draggable)), e = 10;
|
1137
1137
|
return r ? l.clientX > a.right + e || l.clientX <= a.right && l.clientY > a.bottom && l.clientX >= a.left : l.clientX > a.right && l.clientY > a.top || l.clientX <= a.right && l.clientY > a.bottom + e;
|
1138
1138
|
}
|
1139
|
-
function
|
1139
|
+
function $r(l, r, n, a, e, f, t, o) {
|
1140
1140
|
var i = a ? l.clientY : l.clientX, s = a ? n.height : n.width, c = a ? n.top : n.left, u = a ? n.bottom : n.right, d = !1;
|
1141
1141
|
if (!t) {
|
1142
1142
|
if (o && Xe < s * e) {
|
@@ -1145,19 +1145,19 @@ function Br(l, r, n, a, e, f, t, o) {
|
|
1145
1145
|
else if (Re === 1 ? i < c + Xe : i > u - Xe)
|
1146
1146
|
return -Re;
|
1147
1147
|
} else if (i > c + s * (1 - e) / 2 && i < u - s * (1 - e) / 2)
|
1148
|
-
return
|
1148
|
+
return Br(r);
|
1149
1149
|
}
|
1150
1150
|
return d = d || t, d && (i < c + s * f / 2 || i > u - s * f / 2) ? i > c + s / 2 ? 1 : -1 : 0;
|
1151
1151
|
}
|
1152
|
-
function
|
1152
|
+
function Br(l) {
|
1153
1153
|
return dt(A) < dt(l) ? 1 : -1;
|
1154
1154
|
}
|
1155
|
-
function
|
1155
|
+
function Kr(l) {
|
1156
1156
|
for (var r = l.tagName + l.className + l.src + l.href + l.textContent, n = r.length, a = 0; n--; )
|
1157
1157
|
a += r.charCodeAt(n);
|
1158
1158
|
return a.toString(36);
|
1159
1159
|
}
|
1160
|
-
function
|
1160
|
+
function Hr(l) {
|
1161
1161
|
ke.length = 0;
|
1162
1162
|
for (var r = l.getElementsByTagName("input"), n = r.length; n--; ) {
|
1163
1163
|
var a = r[n];
|
@@ -1177,19 +1177,19 @@ K.utils = {
|
|
1177
1177
|
on: Z,
|
1178
1178
|
off: Q,
|
1179
1179
|
css: L,
|
1180
|
-
find:
|
1180
|
+
find: Vn,
|
1181
1181
|
is: function(r, n) {
|
1182
1182
|
return !!Gt(r, n, r, !1);
|
1183
1183
|
},
|
1184
|
-
extend:
|
1185
|
-
throttle:
|
1184
|
+
extend: Ir,
|
1185
|
+
throttle: Xn,
|
1186
1186
|
closest: Gt,
|
1187
1187
|
toggleClass: lt,
|
1188
1188
|
clone: xn,
|
1189
1189
|
index: dt,
|
1190
1190
|
nextTick: Ye,
|
1191
1191
|
cancelNextTick: yn,
|
1192
|
-
detectDirection:
|
1192
|
+
detectDirection: Jn,
|
1193
1193
|
getChild: ve
|
1194
1194
|
};
|
1195
1195
|
K.get = function(l) {
|
@@ -1207,9 +1207,9 @@ K.mount = function() {
|
|
1207
1207
|
K.create = function(l, r) {
|
1208
1208
|
return new K(l, r);
|
1209
1209
|
};
|
1210
|
-
K.version =
|
1210
|
+
K.version = Er;
|
1211
1211
|
var gt = [], Ie, Sn, bn = !1, un, cn, qe, Pe;
|
1212
|
-
function
|
1212
|
+
function Wr() {
|
1213
1213
|
function l() {
|
1214
1214
|
this.defaults = {
|
1215
1215
|
scroll: !0,
|
@@ -1231,7 +1231,7 @@ function Vr() {
|
|
1231
1231
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
1232
1232
|
},
|
1233
1233
|
drop: function() {
|
1234
|
-
this.sortable.nativeDraggable ? Q(document, "dragover", this._handleAutoScroll) : (Q(document, "pointermove", this._handleFallbackAutoScroll), Q(document, "touchmove", this._handleFallbackAutoScroll), Q(document, "mousemove", this._handleFallbackAutoScroll)), Ln(), ze(),
|
1234
|
+
this.sortable.nativeDraggable ? Q(document, "dragover", this._handleAutoScroll) : (Q(document, "pointermove", this._handleFallbackAutoScroll), Q(document, "touchmove", this._handleFallbackAutoScroll), Q(document, "mousemove", this._handleFallbackAutoScroll)), Ln(), ze(), Pr();
|
1235
1235
|
},
|
1236
1236
|
nulling: function() {
|
1237
1237
|
qe = Sn = Ie = bn = Pe = un = cn = null, gt.length = 0;
|
@@ -1269,7 +1269,7 @@ function ze() {
|
|
1269
1269
|
function Ln() {
|
1270
1270
|
clearInterval(Pe);
|
1271
1271
|
}
|
1272
|
-
var dn =
|
1272
|
+
var dn = Xn(function(l, r, n, a) {
|
1273
1273
|
if (r.scroll) {
|
1274
1274
|
var e = (l.touches ? l.touches[0] : l).clientX, f = (l.touches ? l.touches[0] : l).clientY, t = r.scrollSensitivity, o = r.scrollSpeed, i = Kt(), s = !1, c;
|
1275
1275
|
Sn !== n && (Sn = n, ze(), Ie = r.scroll, c = r.scrollFn, Ie === !0 && (Ie = qt(n, !0)));
|
@@ -1284,14 +1284,14 @@ var dn = Yn(function(l, r, n, a) {
|
|
1284
1284
|
(gt[u].vx != X || gt[u].vy != C || gt[u].el !== v) && (gt[u].el = v, gt[u].vx = X, gt[u].vy = C, clearInterval(gt[u].pid), (X != 0 || C != 0) && (s = !0, gt[u].pid = setInterval((function() {
|
1285
1285
|
a && this.layer === 0 && K.active._onTouchMove(qe);
|
1286
1286
|
var V = gt[this.layer].vy ? gt[this.layer].vy * o : 0, j = gt[this.layer].vx ? gt[this.layer].vx * o : 0;
|
1287
|
-
typeof c == "function" && c.call(K.dragged.parentNode[Tt], j, V, l, qe, gt[this.layer].el) !== "continue" ||
|
1287
|
+
typeof c == "function" && c.call(K.dragged.parentNode[Tt], j, V, l, qe, gt[this.layer].el) !== "continue" || Yn(gt[this.layer].el, j, V);
|
1288
1288
|
}).bind({
|
1289
1289
|
layer: u
|
1290
1290
|
}), 24))), u++;
|
1291
1291
|
} while (r.bubbleScroll && d !== i && (d = qt(d, !1)));
|
1292
1292
|
bn = s;
|
1293
1293
|
}
|
1294
|
-
}, 30),
|
1294
|
+
}, 30), qn = function(r) {
|
1295
1295
|
var n = r.originalEvent, a = r.putSortable, e = r.dragEl, f = r.activeSortable, t = r.dispatchSortableEvent, o = r.hideGhostForTarget, i = r.unhideGhostForTarget;
|
1296
1296
|
if (n) {
|
1297
1297
|
var s = a || f;
|
@@ -1317,7 +1317,7 @@ On.prototype = {
|
|
1317
1317
|
var e = ve(this.sortable.el, this.startIndex, this.options);
|
1318
1318
|
e ? this.sortable.el.insertBefore(n, e) : this.sortable.el.appendChild(n), this.sortable.animateAll(), a && a.animateAll();
|
1319
1319
|
},
|
1320
|
-
drop:
|
1320
|
+
drop: qn
|
1321
1321
|
};
|
1322
1322
|
Nt(On, {
|
1323
1323
|
pluginName: "revertOnSpill"
|
@@ -1329,13 +1329,13 @@ Tn.prototype = {
|
|
1329
1329
|
var n = r.dragEl, a = r.putSortable, e = a || this.sortable;
|
1330
1330
|
e.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), e.animateAll();
|
1331
1331
|
},
|
1332
|
-
drop:
|
1332
|
+
drop: qn
|
1333
1333
|
};
|
1334
1334
|
Nt(Tn, {
|
1335
1335
|
pluginName: "removeOnSpill"
|
1336
1336
|
});
|
1337
1337
|
var Mt;
|
1338
|
-
function
|
1338
|
+
function Vr() {
|
1339
1339
|
function l() {
|
1340
1340
|
this.defaults = {
|
1341
1341
|
swapClass: "sortable-swap-highlight"
|
@@ -1359,7 +1359,7 @@ function Xr() {
|
|
1359
1359
|
},
|
1360
1360
|
drop: function(n) {
|
1361
1361
|
var a = n.activeSortable, e = n.putSortable, f = n.dragEl, t = e || this.sortable, o = this.options;
|
1362
|
-
Mt && lt(Mt, o.swapClass, !1), Mt && (o.swap || e && e.options.swap) && f !== Mt && (t.captureAnimationState(), t !== a && a.captureAnimationState(),
|
1362
|
+
Mt && lt(Mt, o.swapClass, !1), Mt && (o.swap || e && e.options.swap) && f !== Mt && (t.captureAnimationState(), t !== a && a.captureAnimationState(), Xr(f, Mt), t.animateAll(), t !== a && a.animateAll());
|
1363
1363
|
},
|
1364
1364
|
nulling: function() {
|
1365
1365
|
Mt = null;
|
@@ -1373,12 +1373,12 @@ function Xr() {
|
|
1373
1373
|
}
|
1374
1374
|
});
|
1375
1375
|
}
|
1376
|
-
function
|
1376
|
+
function Xr(l, r) {
|
1377
1377
|
var n = l.parentNode, a = r.parentNode, e, f;
|
1378
1378
|
!n || !a || n.isEqualNode(r) || a.isEqualNode(l) || (e = dt(l), f = dt(r), n.isEqualNode(a) && e < f && f++, n.insertBefore(r, n.children[e]), a.insertBefore(l, a.children[f]));
|
1379
1379
|
}
|
1380
1380
|
var Y = [], wt = [], be, Ut, Ee = !1, At = !1, fe = !1, et, xe, Ke;
|
1381
|
-
function
|
1381
|
+
function Yr() {
|
1382
1382
|
function l(r) {
|
1383
1383
|
for (var n in this)
|
1384
1384
|
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
@@ -1466,7 +1466,7 @@ function zr() {
|
|
1466
1466
|
target: o,
|
1467
1467
|
rect: At ? at(o) : t
|
1468
1468
|
}), rn(o), o.fromRect = t, a.removeAnimationState(o);
|
1469
|
-
}), At = !1,
|
1469
|
+
}), At = !1, zr(!this.options.removeCloneOnHide, e));
|
1470
1470
|
},
|
1471
1471
|
dragOverCompleted: function(n) {
|
1472
1472
|
var a = n.sortable, e = n.isOwner, f = n.insertion, t = n.activeSortable, o = n.parentEl, i = n.putSortable, s = this.options;
|
@@ -1632,7 +1632,7 @@ function zr() {
|
|
1632
1632
|
index: t
|
1633
1633
|
});
|
1634
1634
|
}), {
|
1635
|
-
items:
|
1635
|
+
items: gr(Y),
|
1636
1636
|
clones: [].concat(wt),
|
1637
1637
|
oldIndicies: a,
|
1638
1638
|
newIndicies: e
|
@@ -1645,7 +1645,7 @@ function zr() {
|
|
1645
1645
|
}
|
1646
1646
|
});
|
1647
1647
|
}
|
1648
|
-
function
|
1648
|
+
function zr(l, r) {
|
1649
1649
|
Y.forEach(function(n, a) {
|
1650
1650
|
var e = r.children[n.sortableIndex + (l ? Number(a) : 0)];
|
1651
1651
|
e ? r.insertBefore(n, e) : r.appendChild(n);
|
@@ -1662,19 +1662,19 @@ function He() {
|
|
1662
1662
|
l !== et && l.parentNode && l.parentNode.removeChild(l);
|
1663
1663
|
});
|
1664
1664
|
}
|
1665
|
-
K.mount(new
|
1665
|
+
K.mount(new Wr());
|
1666
1666
|
K.mount(Tn, On);
|
1667
|
-
const
|
1667
|
+
const Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1668
1668
|
__proto__: null,
|
1669
|
-
MultiDrag:
|
1669
|
+
MultiDrag: Yr,
|
1670
1670
|
Sortable: K,
|
1671
|
-
Swap:
|
1671
|
+
Swap: Vr,
|
1672
1672
|
default: K
|
1673
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1673
|
+
}, Symbol.toStringTag, { value: "Module" })), Qr = /* @__PURE__ */ dr(Jr);
|
1674
1674
|
(function(l, r) {
|
1675
1675
|
(function(a, e) {
|
1676
|
-
l.exports = e(
|
1677
|
-
})(typeof self < "u" ? self :
|
1676
|
+
l.exports = e(nr, Qr);
|
1677
|
+
})(typeof self < "u" ? self : ur, function(n, a) {
|
1678
1678
|
return (
|
1679
1679
|
/******/
|
1680
1680
|
function(e) {
|
@@ -3094,8 +3094,8 @@ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3094
3094
|
for (var q = [G], Dt = 1, en; arguments.length > Dt; )
|
3095
3095
|
q.push(arguments[Dt++]);
|
3096
3096
|
if (en = B, !(!S(B) && G === void 0 || y(G)))
|
3097
|
-
return g(B) || (B = function(
|
3098
|
-
if (typeof en == "function" && (Le = en.call(this,
|
3097
|
+
return g(B) || (B = function(er, Le) {
|
3098
|
+
if (typeof en == "function" && (Le = en.call(this, er, Le)), !y(Le))
|
3099
3099
|
return Le;
|
3100
3100
|
}), q[1] = B, te.apply(null, q);
|
3101
3101
|
}
|
@@ -4538,14 +4538,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
4538
4538
|
}).default
|
4539
4539
|
);
|
4540
4540
|
});
|
4541
|
-
})(
|
4542
|
-
var
|
4543
|
-
const
|
4541
|
+
})(Kn);
|
4542
|
+
var Zr = Kn.exports;
|
4543
|
+
const _n = /* @__PURE__ */ cr(Zr), tr = (l, r) => {
|
4544
4544
|
const n = l.__vccOpts || l;
|
4545
4545
|
for (const [a, e] of r)
|
4546
4546
|
n[a] = e;
|
4547
4547
|
return n;
|
4548
|
-
},
|
4548
|
+
}, kr = /* @__PURE__ */ Object.assign({ name: "widget-form" }, {
|
4549
4549
|
__name: "index",
|
4550
4550
|
props: {
|
4551
4551
|
designer: {
|
@@ -4561,7 +4561,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4561
4561
|
let r = l, n = In(r.designer), a = In(r.widget), e = r.widget.widgetList;
|
4562
4562
|
return (f, t) => {
|
4563
4563
|
const o = oe("commonContainer");
|
4564
|
-
return Vt(), de(ht(
|
4564
|
+
return Vt(), de(ht(_n), {
|
4565
4565
|
ghostClass: "ghost",
|
4566
4566
|
handle: ".handle",
|
4567
4567
|
list: ht(e),
|
@@ -4570,14 +4570,14 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4570
4570
|
"item-key": "id"
|
4571
4571
|
}, {
|
4572
4572
|
item: Wt(({ element: i }) => [
|
4573
|
-
|
4573
|
+
$n("div", null, [
|
4574
4574
|
je(o, {
|
4575
4575
|
designer: ht(n),
|
4576
4576
|
widget: i,
|
4577
4577
|
parentWidget: ht(a)
|
4578
4578
|
}, {
|
4579
4579
|
default: Wt(() => [
|
4580
|
-
(Vt(), de(
|
4580
|
+
(Vt(), de(Bn("widget-" + i.type), {
|
4581
4581
|
ref: i.id,
|
4582
4582
|
widget: i,
|
4583
4583
|
designer: ht(n)
|
@@ -4591,7 +4591,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4591
4591
|
}, 8, ["list"]);
|
4592
4592
|
};
|
4593
4593
|
}
|
4594
|
-
}),
|
4594
|
+
}), qr = /* @__PURE__ */ tr(kr, [["__scopeId", "data-v-7e242ce8"]]), _r = /* @__PURE__ */ Object.assign({ name: "widget-homepage" }, {
|
4595
4595
|
__name: "index",
|
4596
4596
|
props: {
|
4597
4597
|
designer: {
|
@@ -4607,7 +4607,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4607
4607
|
let r = l, n = r.designer, a = pn(() => r.widget), e = pn(() => n.widgetConfig.widgetList);
|
4608
4608
|
return (f, t) => {
|
4609
4609
|
const o = oe("commonContainer");
|
4610
|
-
return Vt(), de(ht(
|
4610
|
+
return Vt(), de(ht(_n), {
|
4611
4611
|
ghostClass: "ghost",
|
4612
4612
|
handle: ".handle",
|
4613
4613
|
list: ht(e),
|
@@ -4622,7 +4622,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4622
4622
|
parentWidget: ht(a)
|
4623
4623
|
}, {
|
4624
4624
|
default: Wt(() => [
|
4625
|
-
(Vt(), de(
|
4625
|
+
(Vt(), de(Bn("widget-" + i.type), {
|
4626
4626
|
ref: i.id,
|
4627
4627
|
widget: i,
|
4628
4628
|
designer: ht(n)
|
@@ -4635,7 +4635,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4635
4635
|
}, 8, ["list"]);
|
4636
4636
|
};
|
4637
4637
|
}
|
4638
|
-
}),
|
4638
|
+
}), to = /* @__PURE__ */ tr(_r, [["__scopeId", "data-v-a6fe5297"]]), eo = /* @__PURE__ */ Object.assign({ name: "widget-input" }, {
|
4639
4639
|
__name: "index",
|
4640
4640
|
props: {
|
4641
4641
|
designer: {
|
@@ -4649,7 +4649,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4649
4649
|
},
|
4650
4650
|
setup(l, { expose: r }) {
|
4651
4651
|
let n = l;
|
4652
|
-
n.designer.setVueIncetance(n.widget.id,
|
4652
|
+
n.designer.setVueIncetance(n.widget.id, rr());
|
4653
4653
|
let a = pn(() => n.widget.props);
|
4654
4654
|
const e = (s) => {
|
4655
4655
|
n.designer.eventHandle({
|
@@ -4685,7 +4685,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4685
4685
|
return n.designer.eventHandle({
|
4686
4686
|
eventType: "onCreated",
|
4687
4687
|
widget: n.widget
|
4688
|
-
}),
|
4688
|
+
}), or(() => {
|
4689
4689
|
n.designer.eventHandle({
|
4690
4690
|
eventType: "onMounted",
|
4691
4691
|
widget: n.widget
|
@@ -4707,7 +4707,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4707
4707
|
onBlur: o,
|
4708
4708
|
placeholder: ht(a).placeholder,
|
4709
4709
|
maxlength: ht(a).maxlength
|
4710
|
-
},
|
4710
|
+
}, ar({ _: 2 }, [
|
4711
4711
|
ht(a).prependText ? {
|
4712
4712
|
name: "prepend",
|
4713
4713
|
fn: Wt(() => [
|
@@ -4733,7 +4733,7 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4733
4733
|
}, 8, ["props"]);
|
4734
4734
|
};
|
4735
4735
|
}
|
4736
|
-
}),
|
4736
|
+
}), no = { class: "widget-select" }, ro = /* @__PURE__ */ Object.assign({ name: "widget-select" }, {
|
4737
4737
|
__name: "index",
|
4738
4738
|
props: {
|
4739
4739
|
designer: {
|
@@ -4748,14 +4748,14 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4748
4748
|
setup(l) {
|
4749
4749
|
return l.designer, (n, a) => {
|
4750
4750
|
const e = oe("el-option"), f = oe("el-select");
|
4751
|
-
return Vt(), vn("div",
|
4751
|
+
return Vt(), vn("div", no, [
|
4752
4752
|
je(f, {
|
4753
4753
|
modelValue: l.widget.props.value,
|
4754
4754
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => l.widget.props.value = t),
|
4755
4755
|
placeholder: "请选择"
|
4756
4756
|
}, {
|
4757
4757
|
default: Wt(() => [
|
4758
|
-
(Vt(!0), vn(
|
4758
|
+
(Vt(!0), vn(Gn, null, ir(l.widget.props.list, (t) => (Vt(), de(e, {
|
4759
4759
|
key: t.value,
|
4760
4760
|
label: t.label || "",
|
4761
4761
|
value: t.value || ""
|
@@ -4766,18 +4766,11 @@ const tr = /* @__PURE__ */ dr(kr), er = (l, r) => {
|
|
4766
4766
|
]);
|
4767
4767
|
};
|
4768
4768
|
}
|
4769
|
-
}),
|
4770
|
-
"widget-form"
|
4771
|
-
|
4772
|
-
|
4773
|
-
"widget-select": oo
|
4774
|
-
}, ao = (l) => {
|
4775
|
-
for (let r in Gn)
|
4776
|
-
l.component(r, Gn[r]);
|
4777
|
-
l.component("testBtn", sr), l.component("testInput", ur);
|
4778
|
-
}, lo = {
|
4779
|
-
install: ao
|
4769
|
+
}), oo = (l) => {
|
4770
|
+
l.component("testBtn", lr), l.component("testInput", fr), l.component("widget-input", eo), l.component("widget-select", ro), l.component("widget-homepage", to), l.component("widget-form", qr);
|
4771
|
+
}, io = {
|
4772
|
+
install: oo
|
4780
4773
|
};
|
4781
4774
|
export {
|
4782
|
-
|
4775
|
+
io as default
|
4783
4776
|
};
|