@vtj/ui 0.8.101 → 0.8.102
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/index.mjs +210 -209
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
- package/types/components/field/types.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -8,10 +8,10 @@ import { useRouter as yd, RouterView as Sb, useRoute as Sh, routeLocationKey as
|
|
|
8
8
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
9
9
|
* @name @vtj/ui
|
|
10
10
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
11
|
-
* @version 0.8.
|
|
11
|
+
* @version 0.8.102
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const RI = "0.8.
|
|
14
|
+
const RI = "0.8.102", Ob = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
@@ -68,7 +68,7 @@ const $b = {
|
|
|
68
68
|
}, II = {
|
|
69
69
|
install(e, t = {}) {
|
|
70
70
|
const n = Object.assign($b, t), { components: o = [], fieldEditors: r = {} } = n;
|
|
71
|
-
$
|
|
71
|
+
$R(r);
|
|
72
72
|
for (const l of o)
|
|
73
73
|
l.name && e.component(l.name, l);
|
|
74
74
|
[kr, us, fd].forEach((l) => {
|
|
@@ -1061,10 +1061,10 @@ class Df {
|
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
getPosition(t, n, o, r) {
|
|
1064
|
-
const { edge: l = 50 } = this.options, i = -n.width + l, a = t.width - l, s =
|
|
1064
|
+
const { edge: l = 50 } = this.options, i = -n.width + t.x + l, a = t.width + t.x - l, s = t.y, u = t.height + t.y - l, c = Math.min(a, Math.max(o, i)), m = Math.min(u, Math.max(r, s));
|
|
1065
1065
|
return {
|
|
1066
|
-
x: c,
|
|
1067
|
-
y: m
|
|
1066
|
+
x: c - t.x,
|
|
1067
|
+
y: m - t.y
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
1070
|
destory() {
|
|
@@ -1377,7 +1377,8 @@ function o1(e, t, n) {
|
|
|
1377
1377
|
n("resizing", r, l);
|
|
1378
1378
|
},
|
|
1379
1379
|
onEnd(r, l) {
|
|
1380
|
-
|
|
1380
|
+
const i = document.body.getBoundingClientRect();
|
|
1381
|
+
t.left = l.elementPositionX.value - i.x, t.top = l.elementPositionY.value - i.y, t.width = l.elementWidth.value, t.height = l.elementHeight.value, t.resizing = !1, n("resizeEnd", r, l);
|
|
1381
1382
|
}
|
|
1382
1383
|
};
|
|
1383
1384
|
});
|
|
@@ -20915,7 +20916,7 @@ function Q_(e, t) {
|
|
|
20915
20916
|
r = o[l], !(t.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
20916
20917
|
return n;
|
|
20917
20918
|
}
|
|
20918
|
-
function
|
|
20919
|
+
function e7(e, t) {
|
|
20919
20920
|
if (e == null) return {};
|
|
20920
20921
|
var n = Q_(e, t), o, r;
|
|
20921
20922
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -20925,7 +20926,7 @@ function eR(e, t) {
|
|
|
20925
20926
|
}
|
|
20926
20927
|
return n;
|
|
20927
20928
|
}
|
|
20928
|
-
var
|
|
20929
|
+
var t7 = "1.15.2";
|
|
20929
20930
|
function Mr(e) {
|
|
20930
20931
|
if (typeof window < "u" && window.navigator)
|
|
20931
20932
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
@@ -20956,7 +20957,7 @@ function Qa(e, t) {
|
|
|
20956
20957
|
return !1;
|
|
20957
20958
|
}
|
|
20958
20959
|
}
|
|
20959
|
-
function
|
|
20960
|
+
function n7(e) {
|
|
20960
20961
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
20961
20962
|
}
|
|
20962
20963
|
function Bo(e, t, n, o) {
|
|
@@ -20966,7 +20967,7 @@ function Bo(e, t, n, o) {
|
|
|
20966
20967
|
if (t != null && (t[0] === ">" ? e.parentNode === n && Qa(e, t) : Qa(e, t)) || o && e === n)
|
|
20967
20968
|
return e;
|
|
20968
20969
|
if (e === n) break;
|
|
20969
|
-
} while (e =
|
|
20970
|
+
} while (e = n7(e));
|
|
20970
20971
|
}
|
|
20971
20972
|
return null;
|
|
20972
20973
|
}
|
|
@@ -21081,7 +21082,7 @@ function Ym(e) {
|
|
|
21081
21082
|
} while (e !== o && (e = e.parentNode));
|
|
21082
21083
|
return [t, n];
|
|
21083
21084
|
}
|
|
21084
|
-
function
|
|
21085
|
+
function o7(e, t) {
|
|
21085
21086
|
for (var n in e)
|
|
21086
21087
|
if (e.hasOwnProperty(n)) {
|
|
21087
21088
|
for (var o in t)
|
|
@@ -21104,7 +21105,7 @@ function tl(e, t) {
|
|
|
21104
21105
|
while (n = n.parentNode);
|
|
21105
21106
|
return sr();
|
|
21106
21107
|
}
|
|
21107
|
-
function
|
|
21108
|
+
function r7(e, t) {
|
|
21108
21109
|
if (e && t)
|
|
21109
21110
|
for (var n in t)
|
|
21110
21111
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
@@ -21124,7 +21125,7 @@ function $0(e, t) {
|
|
|
21124
21125
|
}
|
|
21125
21126
|
};
|
|
21126
21127
|
}
|
|
21127
|
-
function
|
|
21128
|
+
function l7() {
|
|
21128
21129
|
clearTimeout(_i), _i = void 0;
|
|
21129
21130
|
}
|
|
21130
21131
|
function D0(e, t, n) {
|
|
@@ -21145,7 +21146,7 @@ function _0(e, t, n) {
|
|
|
21145
21146
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
21146
21147
|
}
|
|
21147
21148
|
var vo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
21148
|
-
function
|
|
21149
|
+
function s7() {
|
|
21149
21150
|
var e = [], t;
|
|
21150
21151
|
return {
|
|
21151
21152
|
captureAnimationState: function() {
|
|
@@ -21171,7 +21172,7 @@ function sR() {
|
|
|
21171
21172
|
e.push(o);
|
|
21172
21173
|
},
|
|
21173
21174
|
removeAnimationState: function(o) {
|
|
21174
|
-
e.splice(
|
|
21175
|
+
e.splice(o7(e, {
|
|
21175
21176
|
target: o
|
|
21176
21177
|
}), 1);
|
|
21177
21178
|
},
|
|
@@ -21185,7 +21186,7 @@ function sR() {
|
|
|
21185
21186
|
e.forEach(function(a) {
|
|
21186
21187
|
var s = 0, u = a.target, c = u.fromRect, m = kn(u), g = u.prevFromRect, x = u.prevToRect, b = a.rect, C = hs(u, !0);
|
|
21187
21188
|
C && (m.top -= C.f, m.left -= C.e), u.toRect = m, u.thisAnimationDuration && Cu(g, m) && !Cu(c, m) && // Make sure animatingRect is on line between toRect & fromRect
|
|
21188
|
-
(b.top - m.top) / (b.left - m.left) === (c.top - m.top) / (c.left - m.left) && (s =
|
|
21189
|
+
(b.top - m.top) / (b.left - m.left) === (c.top - m.top) / (c.left - m.left) && (s = a7(b, g, x, r.options)), Cu(m, c) || (u.prevFromRect = c, u.prevToRect = m, s || (s = r.options.animation), r.animate(u, b, m, s)), s && (l = !0, i = Math.max(i, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
21189
21190
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
21190
21191
|
}, s), u.thisAnimationDuration = s);
|
|
21191
21192
|
}), clearTimeout(t), l ? t = setTimeout(function() {
|
|
@@ -21196,17 +21197,17 @@ function sR() {
|
|
|
21196
21197
|
if (i) {
|
|
21197
21198
|
$t(o, "transition", ""), $t(o, "transform", "");
|
|
21198
21199
|
var a = hs(this.el), s = a && a.a, u = a && a.d, c = (r.left - l.left) / (s || 1), m = (r.top - l.top) / (u || 1);
|
|
21199
|
-
o.animatingX = !!c, o.animatingY = !!m, $t(o, "transform", "translate3d(" + c + "px," + m + "px,0)"), this.forRepaintDummy =
|
|
21200
|
+
o.animatingX = !!c, o.animatingY = !!m, $t(o, "transform", "translate3d(" + c + "px," + m + "px,0)"), this.forRepaintDummy = i7(o), $t(o, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), $t(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
21200
21201
|
$t(o, "transition", ""), $t(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
21201
21202
|
}, i);
|
|
21202
21203
|
}
|
|
21203
21204
|
}
|
|
21204
21205
|
};
|
|
21205
21206
|
}
|
|
21206
|
-
function
|
|
21207
|
+
function i7(e) {
|
|
21207
21208
|
return e.offsetWidth;
|
|
21208
21209
|
}
|
|
21209
|
-
function
|
|
21210
|
+
function a7(e, t, n, o) {
|
|
21210
21211
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
21211
21212
|
}
|
|
21212
21213
|
var os = [], wu = {
|
|
@@ -21261,7 +21262,7 @@ var os = [], wu = {
|
|
|
21261
21262
|
}), r;
|
|
21262
21263
|
}
|
|
21263
21264
|
};
|
|
21264
|
-
function
|
|
21265
|
+
function c7(e) {
|
|
21265
21266
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, l = e.cloneEl, i = e.toEl, a = e.fromEl, s = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, m = e.newDraggableIndex, g = e.originalEvent, x = e.putSortable, b = e.extraEventProperties;
|
|
21266
21267
|
if (t = t || n && n[vo], !!t) {
|
|
21267
21268
|
var C, D = t.options, w = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
@@ -21275,8 +21276,8 @@ function cR(e) {
|
|
|
21275
21276
|
n && n.dispatchEvent(C), D[w] && D[w].call(t, C);
|
|
21276
21277
|
}
|
|
21277
21278
|
}
|
|
21278
|
-
var
|
|
21279
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, l =
|
|
21279
|
+
var u7 = ["evt"], lo = function(t, n) {
|
|
21280
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, l = e7(o, u7);
|
|
21280
21281
|
Qi.pluginEvent.bind(Dt)(t, n, cr({
|
|
21281
21282
|
dragEl: ct,
|
|
21282
21283
|
parentEl: Cn,
|
|
@@ -21312,7 +21313,7 @@ var uR = ["evt"], lo = function(t, n) {
|
|
|
21312
21313
|
}, l));
|
|
21313
21314
|
};
|
|
21314
21315
|
function Xn(e) {
|
|
21315
|
-
|
|
21316
|
+
c7(cr({
|
|
21316
21317
|
putSortable: Bn,
|
|
21317
21318
|
cloneEl: gn,
|
|
21318
21319
|
targetEl: ct,
|
|
@@ -21323,7 +21324,7 @@ function Xn(e) {
|
|
|
21323
21324
|
newDraggableIndex: Jr
|
|
21324
21325
|
}, e));
|
|
21325
21326
|
}
|
|
21326
|
-
var ct, Cn, Ft, pn, Tl, Pa, gn, el, cs, po, Ri, Jr, Sa, Bn, ss = !1, ec = !1, tc = [], Cl, Lo, Eu, Su, qm, Xm, si, rs, Ii, Fi = !1, Ta = !1, Aa, Un, Tu = [], ed = !1, nc = [], xc = typeof document < "u", Oa = S0, Km = Ji || Lr ? "cssFloat" : "float",
|
|
21327
|
+
var ct, Cn, Ft, pn, Tl, Pa, gn, el, cs, po, Ri, Jr, Sa, Bn, ss = !1, ec = !1, tc = [], Cl, Lo, Eu, Su, qm, Xm, si, rs, Ii, Fi = !1, Ta = !1, Aa, Un, Tu = [], ed = !1, nc = [], xc = typeof document < "u", Oa = S0, Km = Ji || Lr ? "cssFloat" : "float", d7 = xc && !T0 && !S0 && "draggable" in document.createElement("div"), R0 = function() {
|
|
21327
21328
|
if (xc) {
|
|
21328
21329
|
if (Lr)
|
|
21329
21330
|
return !1;
|
|
@@ -21341,10 +21342,10 @@ var ct, Cn, Ft, pn, Tl, Pa, gn, el, cs, po, Ri, Jr, Sa, Bn, ss = !1, ec = !1, tc
|
|
|
21341
21342
|
return i && (s.clear === "both" || s.clear === m) ? "vertical" : "horizontal";
|
|
21342
21343
|
}
|
|
21343
21344
|
return l && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= r && o[Km] === "none" || i && o[Km] === "none" && u + c > r) ? "vertical" : "horizontal";
|
|
21344
|
-
},
|
|
21345
|
+
}, f7 = function(t, n, o) {
|
|
21345
21346
|
var r = o ? t.left : t.top, l = o ? t.right : t.bottom, i = o ? t.width : t.height, a = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
21346
21347
|
return r === a || l === s || r + i / 2 === a + u / 2;
|
|
21347
|
-
},
|
|
21348
|
+
}, p7 = function(t, n) {
|
|
21348
21349
|
var o;
|
|
21349
21350
|
return tc.some(function(r) {
|
|
21350
21351
|
var l = r[vo].options.emptyInsertThreshold;
|
|
@@ -21386,7 +21387,7 @@ xc && !T0 && document.addEventListener("click", function(e) {
|
|
|
21386
21387
|
var wl = function(t) {
|
|
21387
21388
|
if (ct) {
|
|
21388
21389
|
t = t.touches ? t.touches[0] : t;
|
|
21389
|
-
var n =
|
|
21390
|
+
var n = p7(t.clientX, t.clientY);
|
|
21390
21391
|
if (n) {
|
|
21391
21392
|
var o = {};
|
|
21392
21393
|
for (var r in t)
|
|
@@ -21394,7 +21395,7 @@ var wl = function(t) {
|
|
|
21394
21395
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[vo]._onDragOver(o);
|
|
21395
21396
|
}
|
|
21396
21397
|
}
|
|
21397
|
-
},
|
|
21398
|
+
}, m7 = function(t) {
|
|
21398
21399
|
ct && ct.parentNode[vo]._isOutsideThisEl(t.target);
|
|
21399
21400
|
};
|
|
21400
21401
|
function Dt(e, t) {
|
|
@@ -21452,7 +21453,7 @@ function Dt(e, t) {
|
|
|
21452
21453
|
F0(t);
|
|
21453
21454
|
for (var r in this)
|
|
21454
21455
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
21455
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
21456
|
+
this.nativeDraggable = t.forceFallback ? !1 : d7, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? Jt(e, "pointerdown", this._onTapStart) : (Jt(e, "mousedown", this._onTapStart), Jt(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Jt(e, "dragover", this), Jt(e, "dragenter", this)), tc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ir(this, s7());
|
|
21456
21457
|
}
|
|
21457
21458
|
Dt.prototype = /** @lends Sortable.prototype */
|
|
21458
21459
|
{
|
|
@@ -21466,7 +21467,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21466
21467
|
_onTapStart: function(t) {
|
|
21467
21468
|
if (t.cancelable) {
|
|
21468
21469
|
var n = this, o = this.el, r = this.options, l = r.preventOnFilter, i = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, c = r.filter;
|
|
21469
|
-
if (
|
|
21470
|
+
if (w7(o), !ct && !(/mousedown|pointerdown/.test(i) && t.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Mi && s && s.tagName.toUpperCase() === "SELECT") && (s = Bo(s, r.draggable, o, !1), !(s && s.animated) && Pa !== s)) {
|
|
21470
21471
|
if (cs = Mo(s), Ri = Mo(s, r.draggable), typeof c == "function") {
|
|
21471
21472
|
if (c.call(this, t, s, this)) {
|
|
21472
21473
|
Xn({
|
|
@@ -21559,7 +21560,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21559
21560
|
if (ss = !1, pn && ct) {
|
|
21560
21561
|
lo("dragStarted", this, {
|
|
21561
21562
|
evt: n
|
|
21562
|
-
}), this.nativeDraggable && Jt(document, "dragover",
|
|
21563
|
+
}), this.nativeDraggable && Jt(document, "dragover", m7);
|
|
21563
21564
|
var o = this.options;
|
|
21564
21565
|
!t && fo(ct, o.dragClass, !1), fo(ct, o.ghostClass, !0), Dt.active = this, t && this._appendGhost(), Xn({
|
|
21565
21566
|
sortable: this,
|
|
@@ -21690,12 +21691,12 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21690
21691
|
if (i)
|
|
21691
21692
|
return Cn = pn, w(), this._hideClone(), D("revert"), Dt.eventCanceled || (Tl ? pn.insertBefore(ct, Tl) : pn.appendChild(ct)), S(!0);
|
|
21692
21693
|
var E = of(n, a.draggable);
|
|
21693
|
-
if (!E ||
|
|
21694
|
+
if (!E || b7(t, x, this) && !E.animated) {
|
|
21694
21695
|
if (E === ct)
|
|
21695
21696
|
return S(!1);
|
|
21696
21697
|
if (E && n === t.target && (o = E), o && (l = kn(o)), ka(pn, n, ct, r, o, l, t, !!o) !== !1)
|
|
21697
21698
|
return w(), E && E.nextSibling ? n.insertBefore(ct, E.nextSibling) : n.appendChild(ct), Cn = n, y(), S(!0);
|
|
21698
|
-
} else if (E &&
|
|
21699
|
+
} else if (E && v7(t, x, this)) {
|
|
21699
21700
|
var M = xs(n, 0, a, !0);
|
|
21700
21701
|
if (M === ct)
|
|
21701
21702
|
return S(!1);
|
|
@@ -21703,8 +21704,8 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21703
21704
|
return w(), n.insertBefore(ct, M), Cn = n, y(), S(!0);
|
|
21704
21705
|
} else if (o.parentNode === n) {
|
|
21705
21706
|
l = kn(o);
|
|
21706
|
-
var A = 0, $, P = ct.parentNode !== n, B = !
|
|
21707
|
-
rs !== o && ($ = l[ae], Fi = !1, Ta = !B && a.invertSwap || P), A =
|
|
21707
|
+
var A = 0, $, P = ct.parentNode !== n, B = !f7(ct.animated && ct.toRect || r, o.animated && o.toRect || l, x), ae = x ? "top" : "left", de = Gm(o, "top", "top") || Gm(ct, "top", "top"), he = de ? de.scrollTop : void 0;
|
|
21708
|
+
rs !== o && ($ = l[ae], Fi = !1, Ta = !B && a.invertSwap || P), A = y7(t, o, l, x, B ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ta, rs === o);
|
|
21708
21709
|
var Z;
|
|
21709
21710
|
if (A !== 0) {
|
|
21710
21711
|
var K = Mo(ct);
|
|
@@ -21719,7 +21720,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21719
21720
|
X = A === 1;
|
|
21720
21721
|
var N = ka(pn, n, ct, r, o, l, t, X);
|
|
21721
21722
|
if (N !== !1)
|
|
21722
|
-
return (N === 1 || N === -1) && (X = N === 1), ed = !0, setTimeout(
|
|
21723
|
+
return (N === 1 || N === -1) && (X = N === 1), ed = !0, setTimeout(g7, 30), w(), X && !J ? n.appendChild(ct) : o.parentNode.insertBefore(ct, X ? J : o), de && D0(de, 0, he - de.scrollTop), Cn = ct.parentNode, $ !== void 0 && !Ta && (Aa = Math.abs($ - kn(o)[ae])), y(), S(!0);
|
|
21723
21724
|
}
|
|
21724
21725
|
if (n.contains(ct))
|
|
21725
21726
|
return S(!1);
|
|
@@ -21801,7 +21802,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21801
21802
|
break;
|
|
21802
21803
|
case "dragenter":
|
|
21803
21804
|
case "dragover":
|
|
21804
|
-
ct && (this._onDragOver(t),
|
|
21805
|
+
ct && (this._onDragOver(t), h7(t));
|
|
21805
21806
|
break;
|
|
21806
21807
|
case "selectstart":
|
|
21807
21808
|
t.preventDefault();
|
|
@@ -21814,7 +21815,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21814
21815
|
*/
|
|
21815
21816
|
toArray: function() {
|
|
21816
21817
|
for (var t = [], n, o = this.el.children, r = 0, l = o.length, i = this.options; r < l; r++)
|
|
21817
|
-
n = o[r], Bo(n, i.draggable, this.el, !1) && t.push(n.getAttribute(i.dataIdAttr) ||
|
|
21818
|
+
n = o[r], Bo(n, i.draggable, this.el, !1) && t.push(n.getAttribute(i.dataIdAttr) || C7(n));
|
|
21818
21819
|
return t;
|
|
21819
21820
|
},
|
|
21820
21821
|
/**
|
|
@@ -21886,7 +21887,7 @@ Dt.prototype = /** @lends Sortable.prototype */
|
|
|
21886
21887
|
}
|
|
21887
21888
|
}
|
|
21888
21889
|
};
|
|
21889
|
-
function
|
|
21890
|
+
function h7(e) {
|
|
21890
21891
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
21891
21892
|
}
|
|
21892
21893
|
function ka(e, t, n, o, r, l, i, a) {
|
|
@@ -21899,18 +21900,18 @@ function ka(e, t, n, o, r, l, i, a) {
|
|
|
21899
21900
|
function Ou(e) {
|
|
21900
21901
|
e.draggable = !1;
|
|
21901
21902
|
}
|
|
21902
|
-
function
|
|
21903
|
+
function g7() {
|
|
21903
21904
|
ed = !1;
|
|
21904
21905
|
}
|
|
21905
|
-
function
|
|
21906
|
+
function v7(e, t, n) {
|
|
21906
21907
|
var o = kn(xs(n.el, 0, n.options, !0)), r = _0(n.el, n.options, Ft), l = 10;
|
|
21907
21908
|
return t ? e.clientX < r.left - l || e.clientY < o.top && e.clientX < o.right : e.clientY < r.top - l || e.clientY < o.bottom && e.clientX < o.left;
|
|
21908
21909
|
}
|
|
21909
|
-
function
|
|
21910
|
+
function b7(e, t, n) {
|
|
21910
21911
|
var o = kn(of(n.el, n.options.draggable)), r = _0(n.el, n.options, Ft), l = 10;
|
|
21911
21912
|
return t ? e.clientX > r.right + l || e.clientY > o.bottom && e.clientX > o.left : e.clientY > r.bottom + l || e.clientX > o.right && e.clientY > o.top;
|
|
21912
21913
|
}
|
|
21913
|
-
function
|
|
21914
|
+
function y7(e, t, n, o, r, l, i, a) {
|
|
21914
21915
|
var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, c = o ? n.top : n.left, m = o ? n.bottom : n.right, g = !1;
|
|
21915
21916
|
if (!i) {
|
|
21916
21917
|
if (a && Aa < u * r) {
|
|
@@ -21919,19 +21920,19 @@ function yR(e, t, n, o, r, l, i, a) {
|
|
|
21919
21920
|
else if (Ii === 1 ? s < c + Aa : s > m - Aa)
|
|
21920
21921
|
return -Ii;
|
|
21921
21922
|
} else if (s > c + u * (1 - r) / 2 && s < m - u * (1 - r) / 2)
|
|
21922
|
-
return
|
|
21923
|
+
return x7(t);
|
|
21923
21924
|
}
|
|
21924
21925
|
return g = g || i, g && (s < c + u * l / 2 || s > m - u * l / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
|
21925
21926
|
}
|
|
21926
|
-
function
|
|
21927
|
+
function x7(e) {
|
|
21927
21928
|
return Mo(ct) < Mo(e) ? 1 : -1;
|
|
21928
21929
|
}
|
|
21929
|
-
function
|
|
21930
|
+
function C7(e) {
|
|
21930
21931
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
21931
21932
|
o += t.charCodeAt(n);
|
|
21932
21933
|
return o.toString(36);
|
|
21933
21934
|
}
|
|
21934
|
-
function
|
|
21935
|
+
function w7(e) {
|
|
21935
21936
|
nc.length = 0;
|
|
21936
21937
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
21937
21938
|
var o = t[n];
|
|
@@ -21955,7 +21956,7 @@ Dt.utils = {
|
|
|
21955
21956
|
is: function(t, n) {
|
|
21956
21957
|
return !!Bo(t, n, t, !1);
|
|
21957
21958
|
},
|
|
21958
|
-
extend:
|
|
21959
|
+
extend: r7,
|
|
21959
21960
|
throttle: $0,
|
|
21960
21961
|
closest: Bo,
|
|
21961
21962
|
toggleClass: fo,
|
|
@@ -21981,9 +21982,9 @@ Dt.mount = function() {
|
|
|
21981
21982
|
Dt.create = function(e, t) {
|
|
21982
21983
|
return new Dt(e, t);
|
|
21983
21984
|
};
|
|
21984
|
-
Dt.version =
|
|
21985
|
+
Dt.version = t7;
|
|
21985
21986
|
var On = [], ii, nd, od = !1, ku, $u, oc, ai;
|
|
21986
|
-
function
|
|
21987
|
+
function E7() {
|
|
21987
21988
|
function e() {
|
|
21988
21989
|
this.defaults = {
|
|
21989
21990
|
scroll: !0,
|
|
@@ -22005,7 +22006,7 @@ function ER() {
|
|
|
22005
22006
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
22006
22007
|
},
|
|
22007
22008
|
drop: function() {
|
|
22008
|
-
this.sortable.nativeDraggable ? Yt(document, "dragover", this._handleAutoScroll) : (Yt(document, "pointermove", this._handleFallbackAutoScroll), Yt(document, "touchmove", this._handleFallbackAutoScroll), Yt(document, "mousemove", this._handleFallbackAutoScroll)), Zm(), La(),
|
|
22009
|
+
this.sortable.nativeDraggable ? Yt(document, "dragover", this._handleAutoScroll) : (Yt(document, "pointermove", this._handleFallbackAutoScroll), Yt(document, "touchmove", this._handleFallbackAutoScroll), Yt(document, "mousemove", this._handleFallbackAutoScroll)), Zm(), La(), l7();
|
|
22009
22010
|
},
|
|
22010
22011
|
nulling: function() {
|
|
22011
22012
|
oc = nd = ii = od = ai = ku = $u = null, On.length = 0;
|
|
@@ -22108,7 +22109,7 @@ lf.prototype = {
|
|
|
22108
22109
|
Ir(lf, {
|
|
22109
22110
|
pluginName: "removeOnSpill"
|
|
22110
22111
|
});
|
|
22111
|
-
Dt.mount(new
|
|
22112
|
+
Dt.mount(new E7());
|
|
22112
22113
|
Dt.mount(lf, rf);
|
|
22113
22114
|
function V0(e, t = {}) {
|
|
22114
22115
|
return new Dt(e, {
|
|
@@ -22118,7 +22119,7 @@ function V0(e, t = {}) {
|
|
|
22118
22119
|
...t
|
|
22119
22120
|
});
|
|
22120
22121
|
}
|
|
22121
|
-
function
|
|
22122
|
+
function S7(e, t) {
|
|
22122
22123
|
return (n) => {
|
|
22123
22124
|
const { getRowNode: o } = e, { newIndex: r = 0, oldIndex: l = 0 } = n, i = o(n.item), { items: a = [], item: s } = i || {};
|
|
22124
22125
|
s && (a.splice(l, 1), a.splice(r, 0, s), e.reloadData(a)), t("rowSort", {
|
|
@@ -22129,14 +22130,14 @@ function SR(e, t) {
|
|
|
22129
22130
|
});
|
|
22130
22131
|
};
|
|
22131
22132
|
}
|
|
22132
|
-
function
|
|
22133
|
+
function T7(e) {
|
|
22133
22134
|
const { getColumnNode: t } = e;
|
|
22134
22135
|
return (n) => {
|
|
22135
22136
|
const { dragged: o, related: r } = n, l = t(o), i = t(r);
|
|
22136
22137
|
return l?.parent === i?.parent;
|
|
22137
22138
|
};
|
|
22138
22139
|
}
|
|
22139
|
-
function
|
|
22140
|
+
function O7(e, t, n) {
|
|
22140
22141
|
const { getTableColumn: o, getColumnNode: r, getColumnIndex: l, loadColumn: i } = e, a = (s, u = 0) => s.filter((c) => c.visible)[u];
|
|
22141
22142
|
return (s) => {
|
|
22142
22143
|
const { item: u, newIndex: c = -1, oldIndex: m = -1 } = s, { collectColumn: g, fullColumn: x } = o(), b = r(u);
|
|
@@ -22158,7 +22159,7 @@ function OR(e, t, n) {
|
|
|
22158
22159
|
n && n(A), t("columnSort", A);
|
|
22159
22160
|
};
|
|
22160
22161
|
}
|
|
22161
|
-
function
|
|
22162
|
+
function k7(e) {
|
|
22162
22163
|
const t = {};
|
|
22163
22164
|
return e.forEach((n, o) => {
|
|
22164
22165
|
t[n] = o;
|
|
@@ -22167,8 +22168,8 @@ function kR(e) {
|
|
|
22167
22168
|
function _l(e) {
|
|
22168
22169
|
return e.field || e.type || "";
|
|
22169
22170
|
}
|
|
22170
|
-
function $
|
|
22171
|
-
const { resize: n = {}, visible: o = {}, sort: r = [], fixed: l = {} } = t, i =
|
|
22171
|
+
function $7(e, t) {
|
|
22172
|
+
const { resize: n = {}, visible: o = {}, sort: r = [], fixed: l = {} } = t, i = k7(r), a = (s) => {
|
|
22172
22173
|
s.sort((u, c) => i[_l(u)] - i[_l(c)] || 0);
|
|
22173
22174
|
for (let u of s) {
|
|
22174
22175
|
const c = _l(u), m = n[c], g = o[c], x = l[c];
|
|
@@ -22194,7 +22195,7 @@ function ur(e, t) {
|
|
|
22194
22195
|
column: o
|
|
22195
22196
|
};
|
|
22196
22197
|
}
|
|
22197
|
-
const
|
|
22198
|
+
const D7 = {
|
|
22198
22199
|
cellClassName: "x-grid__x-actions",
|
|
22199
22200
|
renderDefault(e, t) {
|
|
22200
22201
|
const { props: n } = ur(e, t);
|
|
@@ -22204,7 +22205,7 @@ const DR = {
|
|
|
22204
22205
|
const { props: n } = ur(e, t);
|
|
22205
22206
|
return [h(Pi, { ...n })];
|
|
22206
22207
|
}
|
|
22207
|
-
},
|
|
22208
|
+
}, M7 = /* @__PURE__ */ nt({
|
|
22208
22209
|
name: "DateEdit",
|
|
22209
22210
|
__name: "DateEdit",
|
|
22210
22211
|
props: {
|
|
@@ -22229,7 +22230,7 @@ const DR = {
|
|
|
22229
22230
|
onChange: F(i)
|
|
22230
22231
|
}, F(o), dr(F(r))), null, 16, ["modelValue", "onChange"]));
|
|
22231
22232
|
}
|
|
22232
|
-
}),
|
|
22233
|
+
}), _7 = { class: "x-grid__filter x-grid__DateFilter" }, R7 = /* @__PURE__ */ nt({
|
|
22233
22234
|
name: "DateFilter",
|
|
22234
22235
|
__name: "DateFilter",
|
|
22235
22236
|
props: {
|
|
@@ -22238,7 +22239,7 @@ const DR = {
|
|
|
22238
22239
|
},
|
|
22239
22240
|
setup(e) {
|
|
22240
22241
|
const t = e, { renderProps: n, renderEvents: o, state: r, load: l, onChange: i, onKeyup: a } = Cc(t.renderOpts, t.params);
|
|
22241
|
-
return l(), (s, u) => (ge(), ft("div",
|
|
22242
|
+
return l(), (s, u) => (ge(), ft("div", _7, [
|
|
22242
22243
|
ot(F(Ha), Et({
|
|
22243
22244
|
size: "small",
|
|
22244
22245
|
placeholder: "选择日期筛选",
|
|
@@ -22254,19 +22255,19 @@ const DR = {
|
|
|
22254
22255
|
}), Jm = (e, t) => {
|
|
22255
22256
|
const { row: n, column: o } = t;
|
|
22256
22257
|
return [It(n[o.field] || "")];
|
|
22257
|
-
},
|
|
22258
|
+
}, I7 = {
|
|
22258
22259
|
cellClassName: "x-grid__edit",
|
|
22259
22260
|
autofocus: ".el-input__inner",
|
|
22260
22261
|
renderEdit(e, t) {
|
|
22261
|
-
return [h(
|
|
22262
|
+
return [h(M7, { params: t, renderOpts: e })];
|
|
22262
22263
|
},
|
|
22263
22264
|
renderCell: Jm,
|
|
22264
22265
|
renderDefault: Jm,
|
|
22265
22266
|
...Ps,
|
|
22266
22267
|
renderFilter(e, t) {
|
|
22267
|
-
return [h(
|
|
22268
|
+
return [h(R7, { params: t, renderOpts: e })];
|
|
22268
22269
|
}
|
|
22269
|
-
},
|
|
22270
|
+
}, F7 = {
|
|
22270
22271
|
...As,
|
|
22271
22272
|
cellClassName: "x-grid__x-image",
|
|
22272
22273
|
renderDefault(e, t) {
|
|
@@ -22289,7 +22290,7 @@ const DR = {
|
|
|
22289
22290
|
})
|
|
22290
22291
|
];
|
|
22291
22292
|
}
|
|
22292
|
-
},
|
|
22293
|
+
}, N7 = {
|
|
22293
22294
|
...As,
|
|
22294
22295
|
cellClassName: "x-grid__x-link",
|
|
22295
22296
|
renderDefault(e, t) {
|
|
@@ -22308,7 +22309,7 @@ const DR = {
|
|
|
22308
22309
|
() => o
|
|
22309
22310
|
)];
|
|
22310
22311
|
}
|
|
22311
|
-
},
|
|
22312
|
+
}, P7 = /* @__PURE__ */ nt({
|
|
22312
22313
|
name: "SelectEdit",
|
|
22313
22314
|
__name: "SelectEdit",
|
|
22314
22315
|
props: {
|
|
@@ -22328,7 +22329,7 @@ const DR = {
|
|
|
22328
22329
|
onChange: F(l)
|
|
22329
22330
|
}, F(n), dr(F(o))), null, 16, ["modelValue", "onChange"]));
|
|
22330
22331
|
}
|
|
22331
|
-
}),
|
|
22332
|
+
}), A7 = { class: "x-grid__filter" }, V7 = /* @__PURE__ */ nt({
|
|
22332
22333
|
name: "SelectFilter",
|
|
22333
22334
|
__name: "SelectFilter",
|
|
22334
22335
|
props: {
|
|
@@ -22337,7 +22338,7 @@ const DR = {
|
|
|
22337
22338
|
},
|
|
22338
22339
|
setup(e) {
|
|
22339
22340
|
const t = e, { renderProps: n, renderEvents: o, state: r, load: l, onChange: i, onKeyup: a } = Cc(t.renderOpts, t.params);
|
|
22340
|
-
return l(), (s, u) => (ge(), ft("div",
|
|
22341
|
+
return l(), (s, u) => (ge(), ft("div", A7, [
|
|
22341
22342
|
ot(Sd, Et({
|
|
22342
22343
|
size: "small",
|
|
22343
22344
|
placeholder: "选择筛选项",
|
|
@@ -22361,20 +22362,20 @@ function Qm(e, t) {
|
|
|
22361
22362
|
u = o.find((m) => m.value === s)?.label;
|
|
22362
22363
|
return [It(u || s)];
|
|
22363
22364
|
}
|
|
22364
|
-
const
|
|
22365
|
+
const L7 = {
|
|
22365
22366
|
...As,
|
|
22366
22367
|
cellClassName: "x-grid__edit",
|
|
22367
22368
|
autofocus: ".el-select__input",
|
|
22368
22369
|
renderEdit(e, t) {
|
|
22369
|
-
return [h(
|
|
22370
|
+
return [h(P7, { params: t, renderOpts: e })];
|
|
22370
22371
|
},
|
|
22371
22372
|
...Ps,
|
|
22372
22373
|
renderFilter(e, t) {
|
|
22373
|
-
return [h(
|
|
22374
|
+
return [h(V7, { params: t, renderOpts: e })];
|
|
22374
22375
|
},
|
|
22375
22376
|
renderDefault: Qm,
|
|
22376
22377
|
renderCell: Qm
|
|
22377
|
-
},
|
|
22378
|
+
}, B7 = {
|
|
22378
22379
|
...As,
|
|
22379
22380
|
cellClassName: "x-grid__x-tag",
|
|
22380
22381
|
renderDefault(e, t) {
|
|
@@ -22393,7 +22394,7 @@ const LR = {
|
|
|
22393
22394
|
() => o
|
|
22394
22395
|
)];
|
|
22395
22396
|
}
|
|
22396
|
-
},
|
|
22397
|
+
}, z7 = {
|
|
22397
22398
|
...As,
|
|
22398
22399
|
cellClassName: "x-grid__x-text",
|
|
22399
22400
|
renderDefault(e, t) {
|
|
@@ -22404,7 +22405,7 @@ const LR = {
|
|
|
22404
22405
|
const { props: n, cellValue: o } = ur(e, t);
|
|
22405
22406
|
return [h(Cf, { ...n }, () => o)];
|
|
22406
22407
|
}
|
|
22407
|
-
},
|
|
22408
|
+
}, H7 = /* @__PURE__ */ nt({
|
|
22408
22409
|
name: "PickerEdit",
|
|
22409
22410
|
__name: "PickerEdit",
|
|
22410
22411
|
props: {
|
|
@@ -22431,11 +22432,11 @@ const LR = {
|
|
|
22431
22432
|
}), eh = (e, t) => {
|
|
22432
22433
|
const { row: n, column: o } = t;
|
|
22433
22434
|
return [It(n[o.field] || "")];
|
|
22434
|
-
},
|
|
22435
|
+
}, j7 = {
|
|
22435
22436
|
cellClassName: "x-grid__edit",
|
|
22436
22437
|
autofocus: ".el-select__input",
|
|
22437
22438
|
renderEdit(e, t) {
|
|
22438
|
-
return [h(
|
|
22439
|
+
return [h(H7, { params: t, renderOpts: e })];
|
|
22439
22440
|
},
|
|
22440
22441
|
renderCell: eh,
|
|
22441
22442
|
renderDefault: eh,
|
|
@@ -22443,7 +22444,7 @@ const LR = {
|
|
|
22443
22444
|
renderFilter(e, t) {
|
|
22444
22445
|
return [h(nf, { params: t, renderOpts: e })];
|
|
22445
22446
|
}
|
|
22446
|
-
},
|
|
22447
|
+
}, W7 = /* @__PURE__ */ nt({
|
|
22447
22448
|
name: "NumberEdit",
|
|
22448
22449
|
__name: "NumberEdit",
|
|
22449
22450
|
props: {
|
|
@@ -22463,7 +22464,7 @@ const LR = {
|
|
|
22463
22464
|
onInput: F(l)
|
|
22464
22465
|
}, F(n), dr(F(o))), null, 16, ["modelValue", "onInput"]));
|
|
22465
22466
|
}
|
|
22466
|
-
}),
|
|
22467
|
+
}), U7 = { class: "x-grid__filter" }, G7 = /* @__PURE__ */ nt({
|
|
22467
22468
|
name: "NumberFilter",
|
|
22468
22469
|
__name: "NumberFilter",
|
|
22469
22470
|
props: {
|
|
@@ -22472,7 +22473,7 @@ const LR = {
|
|
|
22472
22473
|
},
|
|
22473
22474
|
setup(e) {
|
|
22474
22475
|
const t = e, { renderProps: n, renderEvents: o, state: r, load: l, onChange: i, onKeyup: a } = Cc(t.renderOpts, t.params);
|
|
22475
|
-
return l(), (s, u) => (ge(), ft("div",
|
|
22476
|
+
return l(), (s, u) => (ge(), ft("div", U7, [
|
|
22476
22477
|
ot(F(vd), Et({
|
|
22477
22478
|
size: "small",
|
|
22478
22479
|
placeholder: "输入数量回车筛选",
|
|
@@ -22484,27 +22485,27 @@ const LR = {
|
|
|
22484
22485
|
}, F(n), dr(F(o))), null, 16, ["modelValue", "onInput", "onKeyup"])
|
|
22485
22486
|
]));
|
|
22486
22487
|
}
|
|
22487
|
-
}),
|
|
22488
|
+
}), Y7 = {
|
|
22488
22489
|
autofocus: ".el-input__inner",
|
|
22489
22490
|
renderDefault(e, t) {
|
|
22490
22491
|
const { row: n, column: o } = t;
|
|
22491
22492
|
return [It(n[o.field] ?? "")];
|
|
22492
22493
|
},
|
|
22493
22494
|
renderEdit(e, t) {
|
|
22494
|
-
return [h(
|
|
22495
|
+
return [h(W7, { params: t, renderOpts: e })];
|
|
22495
22496
|
},
|
|
22496
22497
|
renderCell(e, t) {
|
|
22497
22498
|
const { row: n, column: o } = t;
|
|
22498
22499
|
return [It(n[o.field] ?? "")];
|
|
22499
22500
|
}
|
|
22500
|
-
},
|
|
22501
|
+
}, q7 = {
|
|
22501
22502
|
cellClassName: "x-grid__edit",
|
|
22502
|
-
...
|
|
22503
|
+
...Y7,
|
|
22503
22504
|
...Ps,
|
|
22504
22505
|
renderFilter(e, t) {
|
|
22505
|
-
return [h(
|
|
22506
|
+
return [h(G7, { params: t, renderOpts: e })];
|
|
22506
22507
|
}
|
|
22507
|
-
},
|
|
22508
|
+
}, X7 = /* @__PURE__ */ nt({
|
|
22508
22509
|
name: "XDialogGrid",
|
|
22509
22510
|
__name: "DialogGrid",
|
|
22510
22511
|
props: /* @__PURE__ */ za({
|
|
@@ -22644,7 +22645,7 @@ const LR = {
|
|
|
22644
22645
|
onFocus: s,
|
|
22645
22646
|
"model-value": a.value
|
|
22646
22647
|
}, g.$attrs), null, 16, ["suffix-icon", "model-value"]),
|
|
22647
|
-
ot(F(
|
|
22648
|
+
ot(F(X7), Et({
|
|
22648
22649
|
modelValue: l.value,
|
|
22649
22650
|
"onUpdate:modelValue": x[0] || (x[0] = (b) => l.value = b),
|
|
22650
22651
|
title: o.title,
|
|
@@ -22660,7 +22661,7 @@ const LR = {
|
|
|
22660
22661
|
}, o.dialogProps), null, 16, ["modelValue", "title", "model", "columns", "formatter", "valueFormatter", "rules", "plus", "minus", "grid-props"])
|
|
22661
22662
|
], 64));
|
|
22662
22663
|
}
|
|
22663
|
-
}),
|
|
22664
|
+
}), K7 = /* @__PURE__ */ nt({
|
|
22664
22665
|
name: "GridEdit",
|
|
22665
22666
|
__name: "GridEdit",
|
|
22666
22667
|
props: {
|
|
@@ -22687,11 +22688,11 @@ const LR = {
|
|
|
22687
22688
|
}), th = (e, t) => {
|
|
22688
22689
|
const { row: n, column: o } = t;
|
|
22689
22690
|
return [It(n[o.field] || "")];
|
|
22690
|
-
},
|
|
22691
|
+
}, Z7 = {
|
|
22691
22692
|
cellClassName: "x-grid__edit",
|
|
22692
22693
|
autofocus: ".el-input__inner",
|
|
22693
22694
|
renderEdit(e, t) {
|
|
22694
|
-
return [h(
|
|
22695
|
+
return [h(K7, { params: t, renderOpts: e })];
|
|
22695
22696
|
},
|
|
22696
22697
|
renderCell: th,
|
|
22697
22698
|
renderDefault: th,
|
|
@@ -22699,33 +22700,33 @@ const LR = {
|
|
|
22699
22700
|
renderFilter(e, t) {
|
|
22700
22701
|
return [h(nf, { params: t, renderOpts: e })];
|
|
22701
22702
|
}
|
|
22702
|
-
},
|
|
22703
|
+
}, J7 = (e) => {
|
|
22703
22704
|
const { $grid: t, $event: n, $table: o } = e;
|
|
22704
22705
|
if (o.getParentElem().contains(n.target))
|
|
22705
22706
|
t.clearValidate();
|
|
22706
22707
|
else
|
|
22707
22708
|
return !1;
|
|
22708
|
-
},
|
|
22709
|
+
}, Q7 = (e) => {
|
|
22709
22710
|
const { $event: t, $table: n } = e;
|
|
22710
22711
|
if (!n.getParentElem().contains(t.target)) return !1;
|
|
22711
|
-
},
|
|
22712
|
+
}, eR = {
|
|
22712
22713
|
install(e) {
|
|
22713
22714
|
e.renderer.mixin({
|
|
22714
22715
|
XInput: Z_,
|
|
22715
|
-
XActions:
|
|
22716
|
-
XDate:
|
|
22717
|
-
XImage:
|
|
22718
|
-
XLink:
|
|
22719
|
-
XSelect:
|
|
22720
|
-
XTag:
|
|
22721
|
-
XText:
|
|
22722
|
-
XPicker:
|
|
22723
|
-
XNumber:
|
|
22724
|
-
XGrider:
|
|
22725
|
-
}), e.interceptor.add("event.clearFilter",
|
|
22716
|
+
XActions: D7,
|
|
22717
|
+
XDate: I7,
|
|
22718
|
+
XImage: F7,
|
|
22719
|
+
XLink: N7,
|
|
22720
|
+
XSelect: L7,
|
|
22721
|
+
XTag: B7,
|
|
22722
|
+
XText: z7,
|
|
22723
|
+
XPicker: j7,
|
|
22724
|
+
XNumber: q7,
|
|
22725
|
+
XGrider: Z7
|
|
22726
|
+
}), e.interceptor.add("event.clearFilter", Q7), e.interceptor.add("event.clearEdit", J7);
|
|
22726
22727
|
}
|
|
22727
22728
|
};
|
|
22728
|
-
function
|
|
22729
|
+
function tR(e = {}) {
|
|
22729
22730
|
const t = [
|
|
22730
22731
|
LM,
|
|
22731
22732
|
UM,
|
|
@@ -22739,7 +22740,7 @@ function t7(e = {}) {
|
|
|
22739
22740
|
a0,
|
|
22740
22741
|
j_
|
|
22741
22742
|
], o = Ro()?.appContext.app, { vxeConfig: r, vxePlugin: l } = Cd();
|
|
22742
|
-
return o && !o.__installVxe && (at.use(
|
|
22743
|
+
return o && !o.__installVxe && (at.use(eR), l && at.use(l), at.setConfig({
|
|
22743
22744
|
...r,
|
|
22744
22745
|
...e
|
|
22745
22746
|
}), t.forEach((i) => o.use(i)), o.__installVxe = !0), {
|
|
@@ -22747,11 +22748,11 @@ function t7(e = {}) {
|
|
|
22747
22748
|
VXETable: at
|
|
22748
22749
|
};
|
|
22749
22750
|
}
|
|
22750
|
-
const
|
|
22751
|
+
const nR = "toolbar__buttons";
|
|
22751
22752
|
function yo(e, t) {
|
|
22752
22753
|
return e[mh(t)] ?? e[W2(t)] ?? void 0;
|
|
22753
22754
|
}
|
|
22754
|
-
function
|
|
22755
|
+
function oR(e, t) {
|
|
22755
22756
|
const { resizable: n } = e;
|
|
22756
22757
|
return {
|
|
22757
22758
|
useKey: !0,
|
|
@@ -22759,7 +22760,7 @@ function o7(e, t) {
|
|
|
22759
22760
|
...yo(t, "columnConfig")
|
|
22760
22761
|
};
|
|
22761
22762
|
}
|
|
22762
|
-
function
|
|
22763
|
+
function rR(e) {
|
|
22763
22764
|
return {
|
|
22764
22765
|
useKey: !0,
|
|
22765
22766
|
isCurrent: !0,
|
|
@@ -22767,7 +22768,7 @@ function r7(e) {
|
|
|
22767
22768
|
...yo(e, "rowConfig")
|
|
22768
22769
|
};
|
|
22769
22770
|
}
|
|
22770
|
-
function
|
|
22771
|
+
function lR(e, t) {
|
|
22771
22772
|
const { virtual: n } = e;
|
|
22772
22773
|
return n ? Object.assign(
|
|
22773
22774
|
{
|
|
@@ -22778,7 +22779,7 @@ function l7(e, t) {
|
|
|
22778
22779
|
yo(t, "scrollY") || {}
|
|
22779
22780
|
) : void 0;
|
|
22780
22781
|
}
|
|
22781
|
-
function
|
|
22782
|
+
function sR(e, t) {
|
|
22782
22783
|
const { pager: n } = e;
|
|
22783
22784
|
return n ? Object.assign(
|
|
22784
22785
|
{
|
|
@@ -22787,7 +22788,7 @@ function s7(e, t) {
|
|
|
22787
22788
|
yo(t, "fitlerConfig") || {}
|
|
22788
22789
|
) : yo(t, "fitlerConfig");
|
|
22789
22790
|
}
|
|
22790
|
-
function
|
|
22791
|
+
function iR(e, t) {
|
|
22791
22792
|
const { pager: n } = e;
|
|
22792
22793
|
return n ? Object.assign(
|
|
22793
22794
|
{
|
|
@@ -22796,7 +22797,7 @@ function i7(e, t) {
|
|
|
22796
22797
|
yo(t, "sortConfig") || {}
|
|
22797
22798
|
) : yo(t, "sortConfig");
|
|
22798
22799
|
}
|
|
22799
|
-
function
|
|
22800
|
+
function aR(e, t, n) {
|
|
22800
22801
|
const { editable: o } = e, r = !!o, l = o ? {
|
|
22801
22802
|
enabled: !!o,
|
|
22802
22803
|
mode: "cell",
|
|
@@ -22827,8 +22828,8 @@ function a7(e, t, n) {
|
|
|
22827
22828
|
}
|
|
22828
22829
|
};
|
|
22829
22830
|
}
|
|
22830
|
-
function
|
|
22831
|
-
const o = yo(t, "toolbarConfig"), r = n.find((i) => i ===
|
|
22831
|
+
function cR(e, t, n) {
|
|
22832
|
+
const o = yo(t, "toolbarConfig"), r = n.find((i) => i === nR), l = {
|
|
22832
22833
|
enabled: !!o || !!r,
|
|
22833
22834
|
custom: !!e.customable,
|
|
22834
22835
|
slots: {
|
|
@@ -22837,7 +22838,7 @@ function c7(e, t, n) {
|
|
|
22837
22838
|
};
|
|
22838
22839
|
return hh(l, o || {});
|
|
22839
22840
|
}
|
|
22840
|
-
function
|
|
22841
|
+
function uR(e, t) {
|
|
22841
22842
|
const { sumFields: n = [], avgFields: o = [], sumAllFields: r } = e, l = !!n.length || !!o.length || !!r || yo(t, "showFooter"), i = (c, m) => {
|
|
22842
22843
|
let g = 0;
|
|
22843
22844
|
return c.forEach((x) => {
|
|
@@ -22867,7 +22868,7 @@ function u7(e, t) {
|
|
|
22867
22868
|
showFooter: l
|
|
22868
22869
|
};
|
|
22869
22870
|
}
|
|
22870
|
-
function
|
|
22871
|
+
function dR(e, t, n) {
|
|
22871
22872
|
const o = Ts(), r = {
|
|
22872
22873
|
layouts: ["Toolbar", "Form", "Top", "Table", "Bottom", "Pager"],
|
|
22873
22874
|
loading: !1,
|
|
@@ -22880,13 +22881,13 @@ function d7(e, t, n) {
|
|
|
22880
22881
|
};
|
|
22881
22882
|
return {
|
|
22882
22883
|
vxeProps: q(() => {
|
|
22883
|
-
const i =
|
|
22884
|
+
const i = oR(e, o), a = rR(o), s = lR(e, o), u = sR(e, o), c = iR(e, o), m = cR(e, o, t), {
|
|
22884
22885
|
keepSource: g,
|
|
22885
22886
|
editConfig: x,
|
|
22886
22887
|
mouseConfig: b,
|
|
22887
22888
|
keyboardConfig: C,
|
|
22888
22889
|
onCellSelected: D
|
|
22889
|
-
} =
|
|
22890
|
+
} = aR(e, o, n), { footerMethod: w, showFooter: S } = uR(e, o);
|
|
22890
22891
|
return {
|
|
22891
22892
|
...r,
|
|
22892
22893
|
...o,
|
|
@@ -22908,7 +22909,7 @@ function d7(e, t, n) {
|
|
|
22908
22909
|
})
|
|
22909
22910
|
};
|
|
22910
22911
|
}
|
|
22911
|
-
function
|
|
22912
|
+
function fR(e, t, n) {
|
|
22912
22913
|
const o = Ce();
|
|
22913
22914
|
if (!t.rowSortable) return o;
|
|
22914
22915
|
const r = () => {
|
|
@@ -22918,7 +22919,7 @@ function f7(e, t, n) {
|
|
|
22918
22919
|
if (i) {
|
|
22919
22920
|
const a = {
|
|
22920
22921
|
...t.rowSortable,
|
|
22921
|
-
onUpdate:
|
|
22922
|
+
onUpdate: S7(l, n)
|
|
22922
22923
|
};
|
|
22923
22924
|
o.value = V0(i, a);
|
|
22924
22925
|
}
|
|
@@ -22929,7 +22930,7 @@ function f7(e, t, n) {
|
|
|
22929
22930
|
o.value?.destroy(), r();
|
|
22930
22931
|
}), o;
|
|
22931
22932
|
}
|
|
22932
|
-
function
|
|
22933
|
+
function pR(e, t, n, o) {
|
|
22933
22934
|
const r = Ce([]);
|
|
22934
22935
|
if (!t.columnSortable) return r;
|
|
22935
22936
|
const l = async () => {
|
|
@@ -22943,8 +22944,8 @@ function p7(e, t, n, o) {
|
|
|
22943
22944
|
filter: ".vxe-header--gutter",
|
|
22944
22945
|
handle: ".vxe-cell",
|
|
22945
22946
|
...t.columnSortable,
|
|
22946
|
-
onMove:
|
|
22947
|
-
onUpdate:
|
|
22947
|
+
onMove: T7(s),
|
|
22948
|
+
onUpdate: O7(s, n, o)
|
|
22948
22949
|
};
|
|
22949
22950
|
r.value = u.map((m) => V0(m, c));
|
|
22950
22951
|
}, i = () => {
|
|
@@ -22988,7 +22989,7 @@ function B0(e) {
|
|
|
22988
22989
|
}
|
|
22989
22990
|
return i;
|
|
22990
22991
|
}
|
|
22991
|
-
function
|
|
22992
|
+
function mR(e, t) {
|
|
22992
22993
|
const n = Ba([]), o = Cd();
|
|
22993
22994
|
let r = null;
|
|
22994
22995
|
const {
|
|
@@ -23027,7 +23028,7 @@ function m7(e, t) {
|
|
|
23027
23028
|
return;
|
|
23028
23029
|
}
|
|
23029
23030
|
const C = s(b);
|
|
23030
|
-
r = await i(C).catch(() => null) || { id: C }, r && (n.value = $
|
|
23031
|
+
r = await i(C).catch(() => null) || { id: C }, r && (n.value = $7(x, r).slice(0));
|
|
23031
23032
|
};
|
|
23032
23033
|
return tt(
|
|
23033
23034
|
() => [t.columns, t.editable],
|
|
@@ -23042,7 +23043,7 @@ function m7(e, t) {
|
|
|
23042
23043
|
onSort: m
|
|
23043
23044
|
};
|
|
23044
23045
|
}
|
|
23045
|
-
function
|
|
23046
|
+
function hR(e = []) {
|
|
23046
23047
|
const t = ad();
|
|
23047
23048
|
return Object.keys(t).filter((n) => !e.includes(n));
|
|
23048
23049
|
}
|
|
@@ -23095,7 +23096,7 @@ function Cc(e, t) {
|
|
|
23095
23096
|
}
|
|
23096
23097
|
};
|
|
23097
23098
|
}
|
|
23098
|
-
function
|
|
23099
|
+
function gR(e) {
|
|
23099
23100
|
const t = gs(e, "page"), n = gs(e, "pageSize"), o = Kt({
|
|
23100
23101
|
page: e.page,
|
|
23101
23102
|
pageSize: e.pageSize,
|
|
@@ -23122,8 +23123,8 @@ function g7(e) {
|
|
|
23122
23123
|
resetState: r
|
|
23123
23124
|
};
|
|
23124
23125
|
}
|
|
23125
|
-
function
|
|
23126
|
-
const { auto: o, pager: r } = e, { state: l, resetState: i } =
|
|
23126
|
+
function vR(e, t, n) {
|
|
23127
|
+
const { auto: o, pager: r } = e, { state: l, resetState: i } = gR(e), a = async (b, C) => {
|
|
23127
23128
|
const D = t.value;
|
|
23128
23129
|
D && (C ? await D.reloadData(b) : await D.loadData(b));
|
|
23129
23130
|
}, s = async (b) => {
|
|
@@ -23163,7 +23164,7 @@ function v7(e, t, n) {
|
|
|
23163
23164
|
doLayout: x
|
|
23164
23165
|
};
|
|
23165
23166
|
}
|
|
23166
|
-
const
|
|
23167
|
+
const bR = {
|
|
23167
23168
|
/**
|
|
23168
23169
|
* 表格id,保存用户自定义配置时需要用到,唯一标识(被某些特定的功能所依赖)
|
|
23169
23170
|
*/
|
|
@@ -23309,10 +23310,10 @@ const b7 = {
|
|
|
23309
23310
|
name: "XGrid",
|
|
23310
23311
|
inheritAttrs: !1,
|
|
23311
23312
|
__name: "Grid",
|
|
23312
|
-
props:
|
|
23313
|
+
props: bR,
|
|
23313
23314
|
emits: ["rowSort", "columnSort", "cellSelected", "editChange", "loaded"],
|
|
23314
23315
|
setup(e, { expose: t, emit: n }) {
|
|
23315
|
-
const { VxeGrid: o } =
|
|
23316
|
+
const { VxeGrid: o } = tR(), r = Ce(), l = e, i = n, a = hR(), { vxeProps: s } = dR(l, a, i), { columns: u, onResize: c, onCustom: m, onSort: g } = mR(r, l), x = fR(r, l, i), b = pR(r, l, i, g), {
|
|
23316
23317
|
state: C,
|
|
23317
23318
|
onPagerChange: D,
|
|
23318
23319
|
onFilterChange: w,
|
|
@@ -23320,7 +23321,7 @@ const b7 = {
|
|
|
23320
23321
|
load: y,
|
|
23321
23322
|
search: E,
|
|
23322
23323
|
doLayout: M
|
|
23323
|
-
} =
|
|
23324
|
+
} = vR(l, r, i), A = Ro();
|
|
23324
23325
|
Qt(z0, A);
|
|
23325
23326
|
const $ = async (k = {}, _ = -1) => {
|
|
23326
23327
|
l.editable || console.warn("XGrid在编辑模式需要开启editable");
|
|
@@ -23446,7 +23447,7 @@ const b7 = {
|
|
|
23446
23447
|
}))
|
|
23447
23448
|
]), 1040, ["columns", "onCustom", "onResizableChange", "onFilterChange", "onSortChange"]));
|
|
23448
23449
|
}
|
|
23449
|
-
}),
|
|
23450
|
+
}), yR = {
|
|
23450
23451
|
collapsible: {
|
|
23451
23452
|
type: Boolean,
|
|
23452
23453
|
default: !0
|
|
@@ -23459,7 +23460,7 @@ const b7 = {
|
|
|
23459
23460
|
default: 4
|
|
23460
23461
|
}
|
|
23461
23462
|
};
|
|
23462
|
-
function
|
|
23463
|
+
function xR(e, t) {
|
|
23463
23464
|
const n = Ce(!!e.collapsible), o = Ts(), r = xt(z0, null), l = {
|
|
23464
23465
|
large: 45,
|
|
23465
23466
|
default: 37,
|
|
@@ -23482,13 +23483,13 @@ function x7(e, t) {
|
|
|
23482
23483
|
showCollapsible: i
|
|
23483
23484
|
};
|
|
23484
23485
|
}
|
|
23485
|
-
const
|
|
23486
|
+
const CR = {
|
|
23486
23487
|
key: 0,
|
|
23487
23488
|
class: "x-query-form__collapsible"
|
|
23488
|
-
},
|
|
23489
|
+
}, wR = /* @__PURE__ */ nt({
|
|
23489
23490
|
name: "XQueryForm",
|
|
23490
23491
|
__name: "QueryForm",
|
|
23491
|
-
props:
|
|
23492
|
+
props: yR,
|
|
23492
23493
|
emits: ["collapsed"],
|
|
23493
23494
|
setup(e, { expose: t, emit: n }) {
|
|
23494
23495
|
const o = e, r = n, l = Ce(), {
|
|
@@ -23497,7 +23498,7 @@ const C7 = {
|
|
|
23497
23498
|
collapsedClass: s,
|
|
23498
23499
|
collapsedStyle: u,
|
|
23499
23500
|
showCollapsible: c
|
|
23500
|
-
} =
|
|
23501
|
+
} = xR(o, r), m = async () => {
|
|
23501
23502
|
l.value?.submit();
|
|
23502
23503
|
}, g = async () => await l.value?.validate(), x = (D) => {
|
|
23503
23504
|
l.value?.reset(D);
|
|
@@ -23520,7 +23521,7 @@ const C7 = {
|
|
|
23520
23521
|
footer: F(c)
|
|
23521
23522
|
}, {
|
|
23522
23523
|
action: Ie(() => [
|
|
23523
|
-
F(c) ? (ge(), ft("div",
|
|
23524
|
+
F(c) ? (ge(), ft("div", CR, [
|
|
23524
23525
|
F(i) ? (ge(), Ye(F(Gn), {
|
|
23525
23526
|
key: 0,
|
|
23526
23527
|
icon: F(cb),
|
|
@@ -23558,7 +23559,7 @@ const C7 = {
|
|
|
23558
23559
|
_: 3
|
|
23559
23560
|
}, 8, ["inline-columns", "footer"]));
|
|
23560
23561
|
}
|
|
23561
|
-
}),
|
|
23562
|
+
}), ER = /* @__PURE__ */ nt({
|
|
23562
23563
|
__name: "Dialog",
|
|
23563
23564
|
props: {
|
|
23564
23565
|
gridProps: {},
|
|
@@ -23656,7 +23657,7 @@ const C7 = {
|
|
|
23656
23657
|
n.fields ? {
|
|
23657
23658
|
name: "form",
|
|
23658
23659
|
fn: Ie(() => [
|
|
23659
|
-
ot(F(
|
|
23660
|
+
ot(F(wR), Et({
|
|
23660
23661
|
model: n.formModel,
|
|
23661
23662
|
items: n.fields
|
|
23662
23663
|
}, n.formProps), null, 16, ["model", "items"])
|
|
@@ -23668,7 +23669,7 @@ const C7 = {
|
|
|
23668
23669
|
_: 1
|
|
23669
23670
|
}, 8, ["icon"]));
|
|
23670
23671
|
}
|
|
23671
|
-
}),
|
|
23672
|
+
}), SR = {
|
|
23672
23673
|
/**
|
|
23673
23674
|
* 表格列配置
|
|
23674
23675
|
*/
|
|
@@ -23774,7 +23775,7 @@ const C7 = {
|
|
|
23774
23775
|
type: Object
|
|
23775
23776
|
}
|
|
23776
23777
|
};
|
|
23777
|
-
function
|
|
23778
|
+
function TR(e, t) {
|
|
23778
23779
|
const { multiple: n, raw: o, valueKey: r = "value", labelKey: l = "label" } = e, i = Ce(), a = Ce([]), s = (c, m) => {
|
|
23779
23780
|
const g = ja(c).map((x) => ({
|
|
23780
23781
|
label: x[l],
|
|
@@ -23810,7 +23811,7 @@ function T7(e, t) {
|
|
|
23810
23811
|
setOptions: s
|
|
23811
23812
|
};
|
|
23812
23813
|
}
|
|
23813
|
-
function
|
|
23814
|
+
function OR(e) {
|
|
23814
23815
|
return q(() => {
|
|
23815
23816
|
const { multiple: t, columns: n = [] } = e;
|
|
23816
23817
|
return n.length === 0 ? [] : [
|
|
@@ -23830,7 +23831,7 @@ function O7(e) {
|
|
|
23830
23831
|
].concat(n);
|
|
23831
23832
|
});
|
|
23832
23833
|
}
|
|
23833
|
-
function
|
|
23834
|
+
function kR(e) {
|
|
23834
23835
|
const t = Ce({});
|
|
23835
23836
|
return tt(
|
|
23836
23837
|
() => e.model,
|
|
@@ -23848,10 +23849,10 @@ const j0 = /* @__PURE__ */ nt({
|
|
|
23848
23849
|
name: "XPicker",
|
|
23849
23850
|
inheritAttrs: !1,
|
|
23850
23851
|
__name: "Picker",
|
|
23851
|
-
props:
|
|
23852
|
+
props: SR,
|
|
23852
23853
|
emits: ["update:modelValue", "change", "picked"],
|
|
23853
23854
|
setup(e, { expose: t, emit: n }) {
|
|
23854
|
-
const o = e, r = n, l = Ts(), i = Ce(!1), a = Ce(), s = Ce(), { options: u, setOptions: c, current: m } =
|
|
23855
|
+
const o = e, r = n, l = Ts(), i = Ce(!1), a = Ce(), s = Ce(), { options: u, setOptions: c, current: m } = TR(o, r), { formModel: g } = kR(o), x = OR(o), b = q(() => i.value ? !0 : !!o.disabled), C = (M) => o.loader ? (M.form = g.value, o.loader(M)) : {
|
|
23855
23856
|
list: [],
|
|
23856
23857
|
total: 0
|
|
23857
23858
|
}, D = () => {
|
|
@@ -23909,7 +23910,7 @@ const j0 = /* @__PURE__ */ nt({
|
|
|
23909
23910
|
]),
|
|
23910
23911
|
_: 1
|
|
23911
23912
|
}, 16, ["disabled", "multiple", "suffix-icon", "modelValue"]),
|
|
23912
|
-
i.value && o.loader ? (ge(), Ye(
|
|
23913
|
+
i.value && o.loader ? (ge(), Ye(ER, Et({
|
|
23913
23914
|
key: 0,
|
|
23914
23915
|
ref_key: "dialogRef",
|
|
23915
23916
|
ref: s,
|
|
@@ -24006,10 +24007,10 @@ const j0 = /* @__PURE__ */ nt({
|
|
|
24006
24007
|
props: {}
|
|
24007
24008
|
}
|
|
24008
24009
|
};
|
|
24009
|
-
function $
|
|
24010
|
+
function $R(e) {
|
|
24010
24011
|
Object.assign(sf, e);
|
|
24011
24012
|
}
|
|
24012
|
-
const
|
|
24013
|
+
const DR = {
|
|
24013
24014
|
/**
|
|
24014
24015
|
* 字段名称
|
|
24015
24016
|
*/
|
|
@@ -24123,17 +24124,17 @@ const D7 = {
|
|
|
24123
24124
|
type: Boolean
|
|
24124
24125
|
}
|
|
24125
24126
|
};
|
|
24126
|
-
async function
|
|
24127
|
+
async function MR(e, t) {
|
|
24127
24128
|
const n = e.options;
|
|
24128
24129
|
return n ? typeof n == "function" ? await n(t) || [] : n : [];
|
|
24129
24130
|
}
|
|
24130
|
-
function
|
|
24131
|
+
function _R(e, t, n, o, r) {
|
|
24131
24132
|
const l = Ce([]), i = q(() => !o || !r ? {} : ja(e.cascader).reduce((u, c) => (u[c] = Ma(r, c), u), {}));
|
|
24132
24133
|
return tt(
|
|
24133
24134
|
i,
|
|
24134
24135
|
async (s) => {
|
|
24135
24136
|
if (n.value) {
|
|
24136
|
-
l.value = await
|
|
24137
|
+
l.value = await MR(e, s);
|
|
24137
24138
|
const u = o?.exposed?.reset;
|
|
24138
24139
|
u && e.name && u(e.name);
|
|
24139
24140
|
}
|
|
@@ -24168,19 +24169,19 @@ function _7(e, t, n, o, r) {
|
|
|
24168
24169
|
})
|
|
24169
24170
|
};
|
|
24170
24171
|
}
|
|
24171
|
-
const
|
|
24172
|
+
const RR = {
|
|
24172
24173
|
key: 1,
|
|
24173
24174
|
class: "el-form-item__error"
|
|
24174
|
-
},
|
|
24175
|
+
}, IR = {
|
|
24175
24176
|
key: 0,
|
|
24176
24177
|
class: "x-field__tip"
|
|
24177
24178
|
}, W0 = /* @__PURE__ */ nt({
|
|
24178
24179
|
name: "XField",
|
|
24179
24180
|
__name: "Field",
|
|
24180
|
-
props:
|
|
24181
|
+
props: DR,
|
|
24181
24182
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24182
24183
|
setup(e, { expose: t, emit: n }) {
|
|
24183
|
-
const o = e, r = n, l = xt(U0, null), i = xt(I2, null), a = xt(G0, null), s = q(() => !l?.proxy || !a ? o.visible : typeof o.visible == "function" ? o.visible(a) : bd(o.visible) ? Object.entries(o.visible).every(([P, B]) => Ma(a, P) === B) : o.visible), u = () => l?.proxy && a && o.name ? Ma(a, o.name) ?? o.modelValue : o.modelValue, c = Ce(u()), { editor: m } =
|
|
24184
|
+
const o = e, r = n, l = xt(U0, null), i = xt(I2, null), a = xt(G0, null), s = q(() => !l?.proxy || !a ? o.visible : typeof o.visible == "function" ? o.visible(a) : bd(o.visible) ? Object.entries(o.visible).every(([P, B]) => Ma(a, P) === B) : o.visible), u = () => l?.proxy && a && o.name ? Ma(a, o.name) ?? o.modelValue : o.modelValue, c = Ce(u()), { editor: m } = _R(
|
|
24184
24185
|
o,
|
|
24185
24186
|
r,
|
|
24186
24187
|
s,
|
|
@@ -24268,7 +24269,7 @@ const R7 = {
|
|
|
24268
24269
|
]),
|
|
24269
24270
|
_: 2
|
|
24270
24271
|
}, 1040, ["content"])
|
|
24271
|
-
], 4)) : (ge(), ft("div",
|
|
24272
|
+
], 4)) : (ge(), ft("div", RR, Ht(D(B)), 1))
|
|
24272
24273
|
])
|
|
24273
24274
|
]),
|
|
24274
24275
|
default: Ie(() => [
|
|
@@ -24293,7 +24294,7 @@ const R7 = {
|
|
|
24293
24294
|
} : void 0
|
|
24294
24295
|
]), 1040, ["modelValue"])) : Be("", !0)
|
|
24295
24296
|
]),
|
|
24296
|
-
o.tip || $.$slots.tip ? (ge(), ft("div",
|
|
24297
|
+
o.tip || $.$slots.tip ? (ge(), ft("div", IR, [
|
|
24297
24298
|
mt($.$slots, "tip", {}, () => [
|
|
24298
24299
|
It(Ht(o.tip), 1)
|
|
24299
24300
|
])
|
|
@@ -24312,7 +24313,7 @@ const R7 = {
|
|
|
24312
24313
|
} : void 0
|
|
24313
24314
|
]), 1040, ["prop", "label", "size", "class", "style"])) : Be("", !0);
|
|
24314
24315
|
}
|
|
24315
|
-
}),
|
|
24316
|
+
}), FR = {
|
|
24316
24317
|
/**
|
|
24317
24318
|
* 表单模型
|
|
24318
24319
|
*/
|
|
@@ -24372,7 +24373,7 @@ const R7 = {
|
|
|
24372
24373
|
inheritAttrs: !1,
|
|
24373
24374
|
name: "XForm",
|
|
24374
24375
|
__name: "Form",
|
|
24375
|
-
props:
|
|
24376
|
+
props: FR,
|
|
24376
24377
|
emits: ["change", "submit", "reset"],
|
|
24377
24378
|
setup(e, { expose: t, emit: n }) {
|
|
24378
24379
|
const o = e, r = n, l = Ro(), i = Ce(), a = Kt(o.model || {}), s = Ce(!1);
|
|
@@ -24446,7 +24447,7 @@ const R7 = {
|
|
|
24446
24447
|
_: 3
|
|
24447
24448
|
}, 16, ["inline", "model"]));
|
|
24448
24449
|
}
|
|
24449
|
-
}),
|
|
24450
|
+
}), NR = {
|
|
24450
24451
|
modelValue: {
|
|
24451
24452
|
type: Boolean,
|
|
24452
24453
|
default: !0
|
|
@@ -24486,7 +24487,7 @@ const R7 = {
|
|
|
24486
24487
|
}, LI = /* @__PURE__ */ nt({
|
|
24487
24488
|
name: "XDialogForm",
|
|
24488
24489
|
__name: "DialogForm",
|
|
24489
|
-
props:
|
|
24490
|
+
props: NR,
|
|
24490
24491
|
emits: ["update:modelValue", "submit", "close"],
|
|
24491
24492
|
setup(e, { expose: t, emit: n }) {
|
|
24492
24493
|
const o = e, r = n, l = Ce(), i = Ce(), a = q(() => i.value?.$vtjEl), s = () => {
|
|
@@ -24560,7 +24561,7 @@ const R7 = {
|
|
|
24560
24561
|
} : void 0
|
|
24561
24562
|
]), 1040, ["model-value", "submit", "cancel", "size"]));
|
|
24562
24563
|
}
|
|
24563
|
-
}),
|
|
24564
|
+
}), PR = {
|
|
24564
24565
|
items: {
|
|
24565
24566
|
type: Array,
|
|
24566
24567
|
default() {
|
|
@@ -24576,13 +24577,13 @@ const R7 = {
|
|
|
24576
24577
|
align: {
|
|
24577
24578
|
type: String
|
|
24578
24579
|
}
|
|
24579
|
-
},
|
|
24580
|
+
}, AR = { class: "x-tabs__label-inner" }, VR = {
|
|
24580
24581
|
key: 0,
|
|
24581
24582
|
class: "x-tabs__actions"
|
|
24582
24583
|
}, BI = /* @__PURE__ */ nt({
|
|
24583
24584
|
name: "XTabs",
|
|
24584
24585
|
__name: "Tabs",
|
|
24585
|
-
props:
|
|
24586
|
+
props: PR,
|
|
24586
24587
|
emits: ["actionClick", "actionCommand"],
|
|
24587
24588
|
setup(e, { expose: t, emit: n }) {
|
|
24588
24589
|
const o = e, r = n, l = Ce(!1), i = q(() => (o.items || []).filter((x) => !!x.slot).map((x) => x.slot)), a = (g) => {
|
|
@@ -24623,9 +24624,9 @@ const R7 = {
|
|
|
24623
24624
|
key: 0,
|
|
24624
24625
|
class: "x-tabs__icon"
|
|
24625
24626
|
})) : Be("", !0),
|
|
24626
|
-
Wt("div",
|
|
24627
|
+
Wt("div", AR, [
|
|
24627
24628
|
It(Ht(b.label) + " ", 1),
|
|
24628
|
-
b.actions && [b.name, b.value].includes(g.$attrs.modelValue) ? (ge(), ft("div",
|
|
24629
|
+
b.actions && [b.name, b.value].includes(g.$attrs.modelValue) ? (ge(), ft("div", VR, [
|
|
24629
24630
|
(ge(!0), ft(bn, null, Nn(b.actions, (C) => (ge(), Ye(F(Gn), Et({
|
|
24630
24631
|
mode: "icon",
|
|
24631
24632
|
type: "primary",
|
|
@@ -24661,7 +24662,7 @@ const R7 = {
|
|
|
24661
24662
|
_: 3
|
|
24662
24663
|
}, 16, ["class"]));
|
|
24663
24664
|
}
|
|
24664
|
-
}),
|
|
24665
|
+
}), LR = {
|
|
24665
24666
|
direction: {
|
|
24666
24667
|
type: String,
|
|
24667
24668
|
default: "column"
|
|
@@ -24699,19 +24700,19 @@ const R7 = {
|
|
|
24699
24700
|
onTitleClick: {
|
|
24700
24701
|
type: Function
|
|
24701
24702
|
}
|
|
24702
|
-
},
|
|
24703
|
+
}, BR = { class: "x-data-item__title" }, zR = {
|
|
24703
24704
|
key: 1,
|
|
24704
24705
|
class: "x-data-item__section x-data-item__desc"
|
|
24705
|
-
},
|
|
24706
|
+
}, HR = {
|
|
24706
24707
|
key: 2,
|
|
24707
24708
|
class: "x-data-item__section x-data-item__extra"
|
|
24708
|
-
},
|
|
24709
|
+
}, jR = {
|
|
24709
24710
|
key: 3,
|
|
24710
24711
|
class: "x-data-item__section x-data-item__actions"
|
|
24711
24712
|
}, zI = /* @__PURE__ */ nt({
|
|
24712
24713
|
name: "XDataItem",
|
|
24713
24714
|
__name: "DataItem",
|
|
24714
|
-
props:
|
|
24715
|
+
props: LR,
|
|
24715
24716
|
emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
|
|
24716
24717
|
setup(e, { emit: t }) {
|
|
24717
24718
|
const n = e, o = t, r = q(() => {
|
|
@@ -24772,7 +24773,7 @@ const R7 = {
|
|
|
24772
24773
|
key: 0,
|
|
24773
24774
|
class: "x-data-item__icon"
|
|
24774
24775
|
})) : Be("", !0),
|
|
24775
|
-
Wt("span",
|
|
24776
|
+
Wt("span", BR, [
|
|
24776
24777
|
mt(m.$slots, "title", {}, () => [
|
|
24777
24778
|
It(Ht(n.title), 1)
|
|
24778
24779
|
])
|
|
@@ -24780,15 +24781,15 @@ const R7 = {
|
|
|
24780
24781
|
]),
|
|
24781
24782
|
_: 3
|
|
24782
24783
|
}, 8, ["onClick"])) : Be("", !0),
|
|
24783
|
-
n.description || m.$slots.description ? (ge(), ft("div",
|
|
24784
|
+
n.description || m.$slots.description ? (ge(), ft("div", zR, [
|
|
24784
24785
|
mt(m.$slots, "description", {}, () => [
|
|
24785
24786
|
It(Ht(n.description), 1)
|
|
24786
24787
|
])
|
|
24787
24788
|
])) : Be("", !0),
|
|
24788
|
-
m.$slots.default ? (ge(), ft("div",
|
|
24789
|
+
m.$slots.default ? (ge(), ft("div", HR, [
|
|
24789
24790
|
mt(m.$slots, "default")
|
|
24790
24791
|
])) : Be("", !0),
|
|
24791
|
-
n.actions || n.actionBarProps || m.$slots.actions ? (ge(), ft("div",
|
|
24792
|
+
n.actions || n.actionBarProps || m.$slots.actions ? (ge(), ft("div", jR, [
|
|
24792
24793
|
mt(m.$slots, "actions", {}, () => [
|
|
24793
24794
|
ot(F(Pi), Et(i.value, {
|
|
24794
24795
|
onClick: u,
|
|
@@ -24803,7 +24804,7 @@ const R7 = {
|
|
|
24803
24804
|
_: 3
|
|
24804
24805
|
}, 8, ["direction", "class"]));
|
|
24805
24806
|
}
|
|
24806
|
-
}),
|
|
24807
|
+
}), WR = {
|
|
24807
24808
|
data: {
|
|
24808
24809
|
type: [Object, Function],
|
|
24809
24810
|
default() {
|
|
@@ -24841,25 +24842,25 @@ const R7 = {
|
|
|
24841
24842
|
infiniteScroll: {
|
|
24842
24843
|
type: [Boolean, Object]
|
|
24843
24844
|
}
|
|
24844
|
-
},
|
|
24845
|
+
}, UR = {
|
|
24845
24846
|
key: 0,
|
|
24846
24847
|
class: "x-list__loading"
|
|
24847
|
-
},
|
|
24848
|
+
}, GR = {
|
|
24848
24849
|
key: 1,
|
|
24849
24850
|
class: "x-list__nomore"
|
|
24850
|
-
},
|
|
24851
|
+
}, YR = {
|
|
24851
24852
|
key: 0,
|
|
24852
24853
|
class: "x-list__loading"
|
|
24853
|
-
},
|
|
24854
|
+
}, qR = {
|
|
24854
24855
|
key: 1,
|
|
24855
24856
|
class: "x-list__nomore"
|
|
24856
|
-
},
|
|
24857
|
+
}, XR = {
|
|
24857
24858
|
key: 1,
|
|
24858
24859
|
class: "x-list__pager"
|
|
24859
24860
|
}, HI = /* @__PURE__ */ nt({
|
|
24860
24861
|
name: "XList",
|
|
24861
24862
|
__name: "List",
|
|
24862
|
-
props:
|
|
24863
|
+
props: WR,
|
|
24863
24864
|
emits: ["load"],
|
|
24864
24865
|
setup(e, { expose: t, emit: n }) {
|
|
24865
24866
|
const o = e, r = n, l = Kt({
|
|
@@ -24927,12 +24928,12 @@ const R7 = {
|
|
|
24927
24928
|
}, { item: $.data, index: P }), () => [
|
|
24928
24929
|
Wt("div", null, Ht($), 1)
|
|
24929
24930
|
])), 128)),
|
|
24930
|
-
F(a) ? (ge(), ft("div",
|
|
24931
|
+
F(a) ? (ge(), ft("div", UR, [
|
|
24931
24932
|
mt(M.$slots, "loading", {}, () => [
|
|
24932
24933
|
It(" 正在加载数据... ")
|
|
24933
24934
|
])
|
|
24934
24935
|
])) : Be("", !0),
|
|
24935
|
-
u.value ? (ge(), ft("div",
|
|
24936
|
+
u.value ? (ge(), ft("div", GR, [
|
|
24936
24937
|
mt(M.$slots, "nomore", {}, () => [
|
|
24937
24938
|
It(" 没有更多数据 ")
|
|
24938
24939
|
])
|
|
@@ -24949,12 +24950,12 @@ const R7 = {
|
|
|
24949
24950
|
}, { item: $, index: P }), () => [
|
|
24950
24951
|
Wt("div", null, Ht($), 1)
|
|
24951
24952
|
])), 128)),
|
|
24952
|
-
F(a) ? (ge(), ft("div",
|
|
24953
|
+
F(a) ? (ge(), ft("div", YR, [
|
|
24953
24954
|
mt(M.$slots, "loading", {}, () => [
|
|
24954
24955
|
It(" 正在加载数据... ")
|
|
24955
24956
|
])
|
|
24956
24957
|
])) : Be("", !0),
|
|
24957
|
-
u.value ? (ge(), ft("div",
|
|
24958
|
+
u.value ? (ge(), ft("div", qR, [
|
|
24958
24959
|
mt(M.$slots, "nomore", {}, () => [
|
|
24959
24960
|
It(" 没有更多数据 ")
|
|
24960
24961
|
])
|
|
@@ -24963,7 +24964,7 @@ const R7 = {
|
|
|
24963
24964
|
[F(wf), y]
|
|
24964
24965
|
])
|
|
24965
24966
|
], 16),
|
|
24966
|
-
o.pager ? (ge(), ft("div",
|
|
24967
|
+
o.pager ? (ge(), ft("div", XR, [
|
|
24967
24968
|
ot(F(uh), Et({
|
|
24968
24969
|
small: "",
|
|
24969
24970
|
background: "",
|
|
@@ -24979,7 +24980,7 @@ const R7 = {
|
|
|
24979
24980
|
])) : Be("", !0)
|
|
24980
24981
|
], 6));
|
|
24981
24982
|
}
|
|
24982
|
-
}),
|
|
24983
|
+
}), KR = {
|
|
24983
24984
|
name: {
|
|
24984
24985
|
type: String,
|
|
24985
24986
|
default: "VTJ.PRO"
|
|
@@ -24996,9 +24997,9 @@ const R7 = {
|
|
|
24996
24997
|
type: String,
|
|
24997
24998
|
default: "/@vtj/pro/"
|
|
24998
24999
|
}
|
|
24999
|
-
},
|
|
25000
|
+
}, ZR = { class: "x-startup" }, JR = { class: "x-startup__wrapper" }, QR = { class: "x-startup__name" }, e9 = { class: "clip" }, t9 = { class: "x-startup__tagline" }, n9 = { class: "x-startup__actions" }, jI = /* @__PURE__ */ nt({
|
|
25000
25001
|
__name: "Startup",
|
|
25001
|
-
props:
|
|
25002
|
+
props: KR,
|
|
25002
25003
|
setup(e) {
|
|
25003
25004
|
const t = e, n = () => {
|
|
25004
25005
|
if (typeof window < "u") {
|
|
@@ -25006,9 +25007,9 @@ const R7 = {
|
|
|
25006
25007
|
window.location.href = r;
|
|
25007
25008
|
}
|
|
25008
25009
|
};
|
|
25009
|
-
return (o, r) => (ge(), ft("div",
|
|
25010
|
-
Wt("div",
|
|
25011
|
-
Wt("div",
|
|
25010
|
+
return (o, r) => (ge(), ft("div", ZR, [
|
|
25011
|
+
Wt("div", JR, [
|
|
25012
|
+
Wt("div", QR, [
|
|
25012
25013
|
Wt("span", e9, Ht(t.name), 1)
|
|
25013
25014
|
]),
|
|
25014
25015
|
Wt("div", t9, Ht(t.tagline), 1),
|
|
@@ -27499,7 +27500,7 @@ export {
|
|
|
27499
27500
|
zI as XDataItem,
|
|
27500
27501
|
ic as XDialog,
|
|
27501
27502
|
LI as XDialogForm,
|
|
27502
|
-
|
|
27503
|
+
X7 as XDialogGrid,
|
|
27503
27504
|
W0 as XField,
|
|
27504
27505
|
Y0 as XForm,
|
|
27505
27506
|
H0 as XGrid,
|
|
@@ -27514,7 +27515,7 @@ export {
|
|
|
27514
27515
|
_a as XPanel,
|
|
27515
27516
|
j0 as XPicker,
|
|
27516
27517
|
YI as XQrCode,
|
|
27517
|
-
|
|
27518
|
+
wR as XQueryForm,
|
|
27518
27519
|
jI as XStartup,
|
|
27519
27520
|
BI as XTabs,
|
|
27520
27521
|
WI as XTest,
|
|
@@ -27524,28 +27525,28 @@ export {
|
|
|
27524
27525
|
sf as builtinFieldEditors,
|
|
27525
27526
|
Ub as containerProps,
|
|
27526
27527
|
Ed as createDialog,
|
|
27527
|
-
|
|
27528
|
+
LR as dataItemProps,
|
|
27528
27529
|
AI as defineTab,
|
|
27529
|
-
|
|
27530
|
+
NR as dialogFormProps,
|
|
27530
27531
|
Jb as dialogProps,
|
|
27531
|
-
|
|
27532
|
+
DR as fieldProps,
|
|
27532
27533
|
U0 as formInstanceKey,
|
|
27533
27534
|
G0 as formModelKey,
|
|
27534
|
-
|
|
27535
|
+
FR as formProps,
|
|
27535
27536
|
_r as getSizeValue,
|
|
27536
27537
|
Gb as headerProps,
|
|
27537
27538
|
kb as iconProps,
|
|
27538
27539
|
Ob as iconSizeMap,
|
|
27539
27540
|
s9 as inputUnitProps,
|
|
27540
|
-
|
|
27541
|
+
WR as listProps,
|
|
27541
27542
|
FI as makeInstaller,
|
|
27542
27543
|
h1 as maskProps,
|
|
27543
27544
|
Kb as panelProps,
|
|
27544
27545
|
ua as parseSize,
|
|
27545
|
-
$
|
|
27546
|
+
$R as registerFieldEditors,
|
|
27546
27547
|
Ps as sharedFilterOptions,
|
|
27547
|
-
|
|
27548
|
-
|
|
27548
|
+
KR as startupProps,
|
|
27549
|
+
PR as tabsProps,
|
|
27549
27550
|
o9 as testProps,
|
|
27550
27551
|
Of as toObjectProps,
|
|
27551
27552
|
Cd as useAdapter,
|