@yqg/permission 1.0.7-beta.0 → 1.0.7
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/{apply-modal-CufqYkyN.js → apply-modal-CSJJ0Pps.js} +230 -228
- package/dist/{checkbox-item-DyelhIIV.js → checkbox-item-DbnsBPLJ.js} +425 -425
- package/dist/{index-BbZYqbTL.js → index-DRSRvQ6T.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +52 -52
- package/dist/{yqg-permission-CIMrprWp.js → yqg-permission-DxNe92_b.js} +672 -665
- package/package.json +4 -6
- package/src/App.vue +10 -5
- package/src/axios/index.ts +1 -1
- package/src/components/apply-modal.vue +12 -5
- package/src/components/checkbox-item.vue +3 -2
- package/src/components/success-modal.vue +6 -6
- package/src/components/yqg-permission.vue +3 -1
- package/src/i18n/en-US.ts +7 -2
- package/src/i18n/zh-CH.ts +2 -1
- package/src/typings/index.d.ts +3 -0
- package/src/vite-env.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as w, c as E, y as je, d as Y, f as te, w as
|
|
2
|
-
import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as
|
|
1
|
+
import { k as w, c as E, y as je, d as Y, f as te, w as le, s as V, o as Ee, p as bt, e as xt, j as Me, v as Va, F as ye, m as tn, A as nn, H as Ha, q as rn, h as Ie, r as an, G as Rt, u as G, V as Wa, x as En, W as Ga, K as ve, L as mt, z as st, R as Ce, X as jt, Q as Ve, O as Lt, P as Dt, N as xe, M as Mn, Y as _n, Z as ka, U as Ua } from "./index-DRSRvQ6T.js";
|
|
2
|
+
import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as Ae, Z as uo, $ as cn, a0 as kr, a1 as co, a2 as Ye, a3 as dn, a4 as fn, a5 as Ur, a6 as mn, a7 as fo, a8 as Xr, a9 as mo, aa as po, ab as go, ac as be, ad as de, ae as qt, af as vo, ag as he, ah as Pe, ai as St, aj as Vt, ak as ho, al as Ht, am as Kr, an as yo, ao as bo, ap as xo, aq as Co, ar as $o, as as wo, at as So, au as Yr, av as Oo, aw as Ge, ax as pn, ay as ut, az as Ao, aA as Rn, aB as Po, aC as jn, aD as Te, aE as Io, aF as gn, aG as Fo, aH as To, aI as Qr, aJ as Ln, aK as Dn, aL as Tt, aM as gt, aN as Zr, aO as Eo, aP as zn, aQ as Mo, aR as _o, aS as No, aT as Bo, aU as Ro, aV as vt, aW as jo, aX as Lo, aY as Jr, aZ as Do, a_ as zo, a$ as qo, b0 as Vo, b1 as Ho, b2 as Wo, b3 as Go, b4 as re, b5 as ko, b6 as Uo, b7 as Xo, b8 as qn, b9 as Vn, ba as Ko } from "./yqg-permission-DxNe92_b.js";
|
|
3
3
|
function Hn(e) {
|
|
4
4
|
return typeof e == "object" && e != null && e.nodeType === 1;
|
|
5
5
|
}
|
|
@@ -38,17 +38,17 @@ var Gn = function(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
v != null && v === document.body && Et(v) && !Et(document.documentElement) || v != null && Et(v, l) && m.push(v);
|
|
40
40
|
}
|
|
41
|
-
for (var g = n.visualViewport ? n.visualViewport.width : innerWidth, y = n.visualViewport ? n.visualViewport.height : innerHeight, b = window.scrollX || pageXOffset, x = window.scrollY || pageYOffset, O = e.getBoundingClientRect(), c = O.height, d = O.width, f = O.top, $ = O.right, C = O.bottom,
|
|
42
|
-
var
|
|
43
|
-
if (r === "if-needed" && f >= 0 &&
|
|
44
|
-
var k = getComputedStyle(
|
|
45
|
-
if (p ===
|
|
41
|
+
for (var g = n.visualViewport ? n.visualViewport.width : innerWidth, y = n.visualViewport ? n.visualViewport.height : innerHeight, b = window.scrollX || pageXOffset, x = window.scrollY || pageYOffset, O = e.getBoundingClientRect(), c = O.height, d = O.width, f = O.top, $ = O.right, C = O.bottom, A = O.left, I = a === "start" || a === "nearest" ? f : a === "end" ? C : f + c / 2, T = o === "center" ? A + d / 2 : o === "end" ? $ : A, R = [], j = 0; j < m.length; j++) {
|
|
42
|
+
var P = m[j], B = P.getBoundingClientRect(), z = B.height, L = B.width, F = B.top, _ = B.right, D = B.bottom, X = B.left;
|
|
43
|
+
if (r === "if-needed" && f >= 0 && A >= 0 && C <= y && $ <= g && f >= F && C <= D && A >= X && $ <= _) return R;
|
|
44
|
+
var k = getComputedStyle(P), J = parseInt(k.borderLeftWidth, 10), oe = parseInt(k.borderTopWidth, 10), ae = parseInt(k.borderRightWidth, 10), M = parseInt(k.borderBottomWidth, 10), q = 0, U = 0, Q = "offsetWidth" in P ? P.offsetWidth - P.clientWidth - J - ae : 0, ne = "offsetHeight" in P ? P.offsetHeight - P.clientHeight - oe - M : 0, W = "offsetWidth" in P ? P.offsetWidth === 0 ? 0 : L / P.offsetWidth : 0, pe = "offsetHeight" in P ? P.offsetHeight === 0 ? 0 : z / P.offsetHeight : 0;
|
|
45
|
+
if (p === P) q = a === "start" ? I : a === "end" ? I - y : a === "nearest" ? at(x, x + y, y, oe, M, x + I, x + I + c, c) : I - y / 2, U = o === "start" ? T : o === "center" ? T - g / 2 : o === "end" ? T - g : at(b, b + g, g, J, ae, b + T, b + T + d, d), q = Math.max(0, q + x), U = Math.max(0, U + b);
|
|
46
46
|
else {
|
|
47
47
|
q = a === "start" ? I - F - oe : a === "end" ? I - D + M + ne : a === "nearest" ? at(F, D, z, oe, M + ne, I, I + c, c) : I - (F + z / 2) + ne / 2, U = o === "start" ? T - X - J : o === "center" ? T - (X + L / 2) + Q / 2 : o === "end" ? T - _ + ae + Q : at(X, _, L, J, ae + Q, T, T + d, d);
|
|
48
|
-
var ge =
|
|
49
|
-
I += qe - (q = Math.max(0, Math.min(qe + q / pe,
|
|
48
|
+
var ge = P.scrollLeft, qe = P.scrollTop;
|
|
49
|
+
I += qe - (q = Math.max(0, Math.min(qe + q / pe, P.scrollHeight - z / pe + ne))), T += ge - (U = Math.max(0, Math.min(ge + U / W, P.scrollWidth - L / W + Q)));
|
|
50
50
|
}
|
|
51
|
-
R.push({ el:
|
|
51
|
+
R.push({ el: P, top: q, left: U });
|
|
52
52
|
}
|
|
53
53
|
return R;
|
|
54
54
|
};
|
|
@@ -150,7 +150,7 @@ var ii = "[object Symbol]";
|
|
|
150
150
|
function Ot(e) {
|
|
151
151
|
return typeof e == "symbol" || Ze(e) && Nr(e) == ii;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function At(e, t) {
|
|
154
154
|
for (var n = -1, r = e == null ? 0 : e.length, a = Array(r); ++n < r; )
|
|
155
155
|
a[n] = t(e[n], n, e);
|
|
156
156
|
return a;
|
|
@@ -160,7 +160,7 @@ function ta(e) {
|
|
|
160
160
|
if (typeof e == "string")
|
|
161
161
|
return e;
|
|
162
162
|
if (_e(e))
|
|
163
|
-
return
|
|
163
|
+
return At(e, ta) + "";
|
|
164
164
|
if (Ot(e))
|
|
165
165
|
return Yn ? Yn.call(e) : "";
|
|
166
166
|
var t = e + "";
|
|
@@ -254,7 +254,7 @@ function Oi(e) {
|
|
|
254
254
|
return e.apply(void 0, arguments);
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ai(e) {
|
|
258
258
|
return function() {
|
|
259
259
|
return e;
|
|
260
260
|
};
|
|
@@ -265,14 +265,14 @@ var ht = function() {
|
|
|
265
265
|
return e({}, "", {}), e;
|
|
266
266
|
} catch {
|
|
267
267
|
}
|
|
268
|
-
}(),
|
|
268
|
+
}(), Pi = ht ? function(e, t) {
|
|
269
269
|
return ht(e, "toString", {
|
|
270
270
|
configurable: !0,
|
|
271
271
|
enumerable: !1,
|
|
272
|
-
value:
|
|
272
|
+
value: Ai(t),
|
|
273
273
|
writable: !0
|
|
274
274
|
});
|
|
275
|
-
} : hn, na = Oi(
|
|
275
|
+
} : hn, na = Oi(Pi);
|
|
276
276
|
function Ii(e, t) {
|
|
277
277
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
278
278
|
;
|
|
@@ -392,7 +392,7 @@ var Gi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
392
392
|
function Xi(e) {
|
|
393
393
|
return e == null ? "" : ta(e);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Pt(e, t) {
|
|
396
396
|
return _e(e) ? e : bn(e, t) ? [e] : Ui(Xi(e));
|
|
397
397
|
}
|
|
398
398
|
var Ki = 1 / 0;
|
|
@@ -403,7 +403,7 @@ function tt(e) {
|
|
|
403
403
|
return t == "0" && 1 / e == -Ki ? "-0" : t;
|
|
404
404
|
}
|
|
405
405
|
function Cn(e, t) {
|
|
406
|
-
t =
|
|
406
|
+
t = Pt(t, e);
|
|
407
407
|
for (var n = 0, r = t.length; e != null && n < r; )
|
|
408
408
|
e = e[tt(t[n++])];
|
|
409
409
|
return n && n == r ? e : void 0;
|
|
@@ -501,7 +501,7 @@ function Cl(e, t) {
|
|
|
501
501
|
var n = t ? wn(e.buffer) : e.buffer;
|
|
502
502
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
503
503
|
}
|
|
504
|
-
var $l = "[object Boolean]", wl = "[object Date]", Sl = "[object Map]", Ol = "[object Number]",
|
|
504
|
+
var $l = "[object Boolean]", wl = "[object Date]", Sl = "[object Map]", Ol = "[object Number]", Al = "[object RegExp]", Pl = "[object Set]", Il = "[object String]", Fl = "[object Symbol]", Tl = "[object ArrayBuffer]", El = "[object DataView]", Ml = "[object Float32Array]", _l = "[object Float64Array]", Nl = "[object Int8Array]", Bl = "[object Int16Array]", Rl = "[object Int32Array]", jl = "[object Uint8Array]", Ll = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", zl = "[object Uint32Array]";
|
|
505
505
|
function ql(e, t, n) {
|
|
506
506
|
var r = e.constructor;
|
|
507
507
|
switch (t) {
|
|
@@ -527,9 +527,9 @@ function ql(e, t, n) {
|
|
|
527
527
|
case Ol:
|
|
528
528
|
case Il:
|
|
529
529
|
return new r(e);
|
|
530
|
-
case Pl:
|
|
531
|
-
return bl(e);
|
|
532
530
|
case Al:
|
|
531
|
+
return bl(e);
|
|
532
|
+
case Pl:
|
|
533
533
|
return new r();
|
|
534
534
|
case Fl:
|
|
535
535
|
return xl(e);
|
|
@@ -617,7 +617,7 @@ function Os(e, t, n, r) {
|
|
|
617
617
|
function ga(e) {
|
|
618
618
|
return e === e && !Fe(e);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function As(e) {
|
|
621
621
|
for (var t = $t(e), n = t.length; n--; ) {
|
|
622
622
|
var r = t[n], a = e[r];
|
|
623
623
|
t[n] = [r, a, ga(a)];
|
|
@@ -629,8 +629,8 @@ function va(e, t) {
|
|
|
629
629
|
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
var t =
|
|
632
|
+
function Ps(e) {
|
|
633
|
+
var t = As(e);
|
|
634
634
|
return t.length == 1 && t[0][2] ? va(t[0][0], t[0][1]) : function(n) {
|
|
635
635
|
return n === e || Os(n, e, t);
|
|
636
636
|
};
|
|
@@ -639,7 +639,7 @@ function Is(e, t) {
|
|
|
639
639
|
return e != null && t in Object(e);
|
|
640
640
|
}
|
|
641
641
|
function Fs(e, t, n) {
|
|
642
|
-
t =
|
|
642
|
+
t = Pt(t, e);
|
|
643
643
|
for (var r = -1, a = t.length, o = !1; ++r < a; ) {
|
|
644
644
|
var i = tt(t[r]);
|
|
645
645
|
if (!(o = e != null && n(e, i)))
|
|
@@ -672,7 +672,7 @@ function Rs(e) {
|
|
|
672
672
|
return bn(e) ? Ns(tt(e)) : Bs(e);
|
|
673
673
|
}
|
|
674
674
|
function ha(e) {
|
|
675
|
-
return typeof e == "function" ? e : e == null ? hn : typeof e == "object" ? _e(e) ? _s(e[0], e[1]) :
|
|
675
|
+
return typeof e == "function" ? e : e == null ? hn : typeof e == "object" ? _e(e) ? _s(e[0], e[1]) : Ps(e) : Rs(e);
|
|
676
676
|
}
|
|
677
677
|
var Mt = function() {
|
|
678
678
|
return Dr.Date.now();
|
|
@@ -683,19 +683,19 @@ function zs(e, t, n) {
|
|
|
683
683
|
throw new TypeError(js);
|
|
684
684
|
t = Wt(t) || 0, Fe(n) && (s = !!n.leading, p = "maxWait" in n, o = p ? Ls(Wt(n.maxWait) || 0, t) : o, m = "trailing" in n ? !!n.trailing : m);
|
|
685
685
|
function v($) {
|
|
686
|
-
var C = r,
|
|
687
|
-
return r = a = void 0, h = $, i = e.apply(
|
|
686
|
+
var C = r, A = a;
|
|
687
|
+
return r = a = void 0, h = $, i = e.apply(A, C), i;
|
|
688
688
|
}
|
|
689
689
|
function g($) {
|
|
690
690
|
return h = $, l = setTimeout(x, t), s ? v($) : i;
|
|
691
691
|
}
|
|
692
692
|
function y($) {
|
|
693
|
-
var C = $ - u,
|
|
694
|
-
return p ? Ds(I, o -
|
|
693
|
+
var C = $ - u, A = $ - h, I = t - C;
|
|
694
|
+
return p ? Ds(I, o - A) : I;
|
|
695
695
|
}
|
|
696
696
|
function b($) {
|
|
697
|
-
var C = $ - u,
|
|
698
|
-
return u === void 0 || C >= t || C < 0 || p &&
|
|
697
|
+
var C = $ - u, A = $ - h;
|
|
698
|
+
return u === void 0 || C >= t || C < 0 || p && A >= o;
|
|
699
699
|
}
|
|
700
700
|
function x() {
|
|
701
701
|
var $ = Mt();
|
|
@@ -756,7 +756,7 @@ var ks = Hs(Gs), Us = Math.min;
|
|
|
756
756
|
function Xs(e, t, n) {
|
|
757
757
|
for (var r = Mi, a = e[0].length, o = e.length, i = o, l = Array(o), u = 1 / 0, h = []; i--; ) {
|
|
758
758
|
var s = e[i];
|
|
759
|
-
i && t && (s =
|
|
759
|
+
i && t && (s = At(s, sn(t))), u = Us(s.length, u), l[i] = a >= 120 && s.length >= 120 ? new ao(i && s) : void 0;
|
|
760
760
|
}
|
|
761
761
|
s = e[0];
|
|
762
762
|
var p = -1, m = l[0];
|
|
@@ -778,14 +778,14 @@ function Ks(e) {
|
|
|
778
778
|
return qs(e) ? e : [];
|
|
779
779
|
}
|
|
780
780
|
var Ys = Bi(function(e) {
|
|
781
|
-
var t =
|
|
781
|
+
var t = At(e, Ks);
|
|
782
782
|
return t.length && t[0] === e[0] ? Xs(t) : [];
|
|
783
783
|
});
|
|
784
784
|
function Qs(e, t) {
|
|
785
785
|
return t.length < 2 ? e : Cn(e, il(t, 0, -1));
|
|
786
786
|
}
|
|
787
787
|
function Zs(e, t) {
|
|
788
|
-
return t =
|
|
788
|
+
return t = Pt(t, e), e = Qs(e, t), e == null || delete e[tt(Vs(t))];
|
|
789
789
|
}
|
|
790
790
|
function Js(e) {
|
|
791
791
|
return sa(e) ? void 0 : e;
|
|
@@ -795,8 +795,8 @@ var eu = 1, tu = 2, nu = 4, ru = el(function(e, t) {
|
|
|
795
795
|
if (e == null)
|
|
796
796
|
return n;
|
|
797
797
|
var r = !1;
|
|
798
|
-
t =
|
|
799
|
-
return o =
|
|
798
|
+
t = At(t, function(o) {
|
|
799
|
+
return o = Pt(o, e), r || (r = o.length > 1), o;
|
|
800
800
|
}), et(e, da(e), n), r && (n = ke(n, eu | tu | nu, Js));
|
|
801
801
|
for (var a = t.length; a--; )
|
|
802
802
|
Zs(n, t[a]);
|
|
@@ -991,7 +991,7 @@ const fu = {
|
|
|
991
991
|
expose: a
|
|
992
992
|
} = t;
|
|
993
993
|
const o = te(e.checked === void 0 ? e.defaultChecked : e.checked), i = te();
|
|
994
|
-
|
|
994
|
+
le(() => e.checked, () => {
|
|
995
995
|
o.value = e.checked;
|
|
996
996
|
}), a({
|
|
997
997
|
focus() {
|
|
@@ -1039,10 +1039,10 @@ const fu = {
|
|
|
1039
1039
|
class: f,
|
|
1040
1040
|
onFocus: $,
|
|
1041
1041
|
onBlur: C,
|
|
1042
|
-
onKeydown:
|
|
1042
|
+
onKeydown: A,
|
|
1043
1043
|
onKeypress: I,
|
|
1044
1044
|
onKeyup: T
|
|
1045
|
-
} = n, R = S(S({}, d), n), j = Object.keys(R).reduce((z, L) => ((L.startsWith("data-") || L.startsWith("aria-") || L === "role") && (z[L] = R[L]), z), {}),
|
|
1045
|
+
} = n, R = S(S({}, d), n), j = Object.keys(R).reduce((z, L) => ((L.startsWith("data-") || L.startsWith("aria-") || L === "role") && (z[L] = R[L]), z), {}), P = K(s, f, {
|
|
1046
1046
|
[`${s}-checked`]: o.value,
|
|
1047
1047
|
[`${s}-disabled`]: g
|
|
1048
1048
|
}), B = S(S({
|
|
@@ -1061,13 +1061,13 @@ const fu = {
|
|
|
1061
1061
|
onClick: h,
|
|
1062
1062
|
onFocus: $,
|
|
1063
1063
|
onBlur: C,
|
|
1064
|
-
onKeydown:
|
|
1064
|
+
onKeydown: A,
|
|
1065
1065
|
onKeypress: I,
|
|
1066
1066
|
onKeyup: T,
|
|
1067
1067
|
required: c
|
|
1068
1068
|
});
|
|
1069
1069
|
return w("span", {
|
|
1070
|
-
class:
|
|
1070
|
+
class: P
|
|
1071
1071
|
}, [w("input", N({
|
|
1072
1072
|
ref: i
|
|
1073
1073
|
}, B), null), w("span", {
|
|
@@ -1269,8 +1269,8 @@ const fu = {
|
|
|
1269
1269
|
} = e;
|
|
1270
1270
|
return (Array.isArray(d) ? d : [d, void 0]).forEach(($, C) => {
|
|
1271
1271
|
if (typeof $ == "object")
|
|
1272
|
-
for (let
|
|
1273
|
-
const I = ot[
|
|
1272
|
+
for (let A = 0; A < ot.length; A++) {
|
|
1273
|
+
const I = ot[A];
|
|
1274
1274
|
if (s.value[I] && $[I] !== void 0) {
|
|
1275
1275
|
c[C] = $[I];
|
|
1276
1276
|
break;
|
|
@@ -1326,7 +1326,7 @@ function Qe(e, t) {
|
|
|
1326
1326
|
return r.__proto__ = a, r;
|
|
1327
1327
|
}, Qe(e, t);
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Au() {
|
|
1330
1330
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
1331
1331
|
if (typeof Proxy == "function") return !0;
|
|
1332
1332
|
try {
|
|
@@ -1337,20 +1337,20 @@ function Pu() {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
1339
|
function dt(e, t, n) {
|
|
1340
|
-
return
|
|
1340
|
+
return Au() ? dt = Reflect.construct.bind() : dt = function(a, o, i) {
|
|
1341
1341
|
var l = [null];
|
|
1342
1342
|
l.push.apply(l, o);
|
|
1343
1343
|
var u = Function.bind.apply(a, l), h = new u();
|
|
1344
1344
|
return i && Qe(h, i.prototype), h;
|
|
1345
1345
|
}, dt.apply(null, arguments);
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Pu(e) {
|
|
1348
1348
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
1349
1349
|
}
|
|
1350
1350
|
function Ut(e) {
|
|
1351
1351
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1352
1352
|
return Ut = function(r) {
|
|
1353
|
-
if (r === null || !
|
|
1353
|
+
if (r === null || !Pu(r)) return r;
|
|
1354
1354
|
if (typeof r != "function")
|
|
1355
1355
|
throw new TypeError("Super expression must either be null or a function");
|
|
1356
1356
|
if (typeof t < "u") {
|
|
@@ -1884,27 +1884,27 @@ var Yt = Kt(), nt = /* @__PURE__ */ function() {
|
|
|
1884
1884
|
$ === void 0 && ($ = []);
|
|
1885
1885
|
var C = Array.isArray($) ? $ : [$];
|
|
1886
1886
|
!u.suppressWarning && C.length && e.warning("async-validator:", C), C.length && x.message !== void 0 && (C = [].concat(x.message));
|
|
1887
|
-
var
|
|
1888
|
-
if (u.first &&
|
|
1889
|
-
return g[x.field] = 1, b(
|
|
1887
|
+
var A = C.map(mr(x, l));
|
|
1888
|
+
if (u.first && A.length)
|
|
1889
|
+
return g[x.field] = 1, b(A);
|
|
1890
1890
|
if (!O)
|
|
1891
|
-
b(
|
|
1891
|
+
b(A);
|
|
1892
1892
|
else {
|
|
1893
1893
|
if (x.required && !y.value)
|
|
1894
|
-
return x.message !== void 0 ?
|
|
1894
|
+
return x.message !== void 0 ? A = [].concat(x.message).map(mr(x, l)) : u.error && (A = [u.error(x, fe(u.messages.required, x.field))]), b(A);
|
|
1895
1895
|
var I = {};
|
|
1896
1896
|
x.defaultField && Object.keys(y.value).map(function(j) {
|
|
1897
1897
|
I[j] = x.defaultField;
|
|
1898
1898
|
}), I = Se({}, I, y.rule.fields);
|
|
1899
1899
|
var T = {};
|
|
1900
1900
|
Object.keys(I).forEach(function(j) {
|
|
1901
|
-
var
|
|
1901
|
+
var P = I[j], B = Array.isArray(P) ? P : [P];
|
|
1902
1902
|
T[j] = B.map(c.bind(null, j));
|
|
1903
1903
|
});
|
|
1904
1904
|
var R = new e(T);
|
|
1905
1905
|
R.messages(u.messages), y.rule.options && (y.rule.options.messages = u.messages, y.rule.options.error = u.error), R.validate(y.value, y.rule.options || u, function(j) {
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1906
|
+
var P = [];
|
|
1907
|
+
A && A.length && P.push.apply(P, A), j && j.length && P.push.apply(P, j), b(P.length ? P : null);
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
@@ -2198,9 +2198,9 @@ function dc(e) {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
|
-
const
|
|
2202
|
-
bt(
|
|
2203
|
-
}, Sn = () => xt(
|
|
2201
|
+
const Aa = Symbol("formContextKey"), Pa = (e) => {
|
|
2202
|
+
bt(Aa, e);
|
|
2203
|
+
}, Sn = () => xt(Aa, {
|
|
2204
2204
|
name: E(() => {
|
|
2205
2205
|
}),
|
|
2206
2206
|
labelAlign: E(() => "right"),
|
|
@@ -2359,7 +2359,7 @@ var On = function(t, n) {
|
|
|
2359
2359
|
};
|
|
2360
2360
|
On.displayName = "QuestionCircleOutlined";
|
|
2361
2361
|
On.inheritAttrs = !1;
|
|
2362
|
-
const
|
|
2362
|
+
const An = (e, t) => {
|
|
2363
2363
|
let {
|
|
2364
2364
|
slots: n,
|
|
2365
2365
|
emit: r,
|
|
@@ -2382,12 +2382,12 @@ const Pn = (e, t) => {
|
|
|
2382
2382
|
labelCol: f,
|
|
2383
2383
|
labelWrap: $,
|
|
2384
2384
|
colon: C
|
|
2385
|
-
} = Sn(),
|
|
2385
|
+
} = Sn(), A = m || (f == null ? void 0 : f.value) || {}, I = v || (d == null ? void 0 : d.value), T = `${s}-item-label`, R = K(T, I === "left" && `${T}-left`, A.class, {
|
|
2386
2386
|
[`${T}-wrap`]: !!$.value
|
|
2387
2387
|
});
|
|
2388
2388
|
let j = O;
|
|
2389
|
-
const
|
|
2390
|
-
if (
|
|
2389
|
+
const P = g === !0 || (C == null ? void 0 : C.value) !== !1 && g !== !1;
|
|
2390
|
+
if (P && !c.value && typeof O == "string" && O.trim() !== "" && (j = O.replace(/[:|:]\s*$/, "")), e.tooltip || n.tooltip) {
|
|
2391
2391
|
const L = w("span", {
|
|
2392
2392
|
class: `${s}-item-tooltip`
|
|
2393
2393
|
}, [w(so, {
|
|
@@ -2405,9 +2405,9 @@ const Pn = (e, t) => {
|
|
|
2405
2405
|
const z = K({
|
|
2406
2406
|
[`${s}-item-required`]: y,
|
|
2407
2407
|
[`${s}-item-required-mark-optional`]: b === "optional",
|
|
2408
|
-
[`${s}-item-no-colon`]: !
|
|
2408
|
+
[`${s}-item-no-colon`]: !P
|
|
2409
2409
|
});
|
|
2410
|
-
return w(Fa, N(N({},
|
|
2410
|
+
return w(Fa, N(N({}, A), {}, {
|
|
2411
2411
|
class: R
|
|
2412
2412
|
}), {
|
|
2413
2413
|
default: () => [w("label", {
|
|
@@ -2418,8 +2418,8 @@ const Pn = (e, t) => {
|
|
|
2418
2418
|
}, [j])]
|
|
2419
2419
|
});
|
|
2420
2420
|
};
|
|
2421
|
-
|
|
2422
|
-
|
|
2421
|
+
An.displayName = "FormItemLabel";
|
|
2422
|
+
An.inheritAttrs = !1;
|
|
2423
2423
|
const bc = (e) => {
|
|
2424
2424
|
const {
|
|
2425
2425
|
componentCls: t
|
|
@@ -2526,7 +2526,7 @@ const bc = (e) => {
|
|
|
2526
2526
|
componentCls: t
|
|
2527
2527
|
} = e;
|
|
2528
2528
|
return {
|
|
2529
|
-
[e.componentCls]: S(S(S({},
|
|
2529
|
+
[e.componentCls]: S(S(S({}, Ae(e)), xc(e)), {
|
|
2530
2530
|
[`${t}-text`]: {
|
|
2531
2531
|
display: "inline-block",
|
|
2532
2532
|
paddingInlineEnd: e.paddingSM
|
|
@@ -2546,7 +2546,7 @@ const bc = (e) => {
|
|
|
2546
2546
|
rootPrefixCls: a
|
|
2547
2547
|
} = e;
|
|
2548
2548
|
return {
|
|
2549
|
-
[t]: S(S({},
|
|
2549
|
+
[t]: S(S({}, Ae(e)), {
|
|
2550
2550
|
marginBottom: e.marginLG,
|
|
2551
2551
|
verticalAlign: "top",
|
|
2552
2552
|
"&-with-help": {
|
|
@@ -2802,7 +2802,7 @@ const bc = (e) => {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
2804
|
};
|
|
2805
|
-
},
|
|
2805
|
+
}, Ac = (e) => {
|
|
2806
2806
|
const {
|
|
2807
2807
|
componentCls: t,
|
|
2808
2808
|
formItemCls: n,
|
|
@@ -2846,7 +2846,7 @@ const bc = (e) => {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
}
|
|
2848
2848
|
};
|
|
2849
|
-
},
|
|
2849
|
+
}, Pn = ze("Form", (e, t) => {
|
|
2850
2850
|
let {
|
|
2851
2851
|
rootPrefixCls: n
|
|
2852
2852
|
} = t;
|
|
@@ -2854,8 +2854,8 @@ const bc = (e) => {
|
|
|
2854
2854
|
formItemCls: `${e.componentCls}-item`,
|
|
2855
2855
|
rootPrefixCls: n
|
|
2856
2856
|
});
|
|
2857
|
-
return [Cc(r), $c(r), bc(r), wc(r), Sc(r),
|
|
2858
|
-
}),
|
|
2857
|
+
return [Cc(r), $c(r), bc(r), wc(r), Sc(r), Ac(r), lu(r), Gr];
|
|
2858
|
+
}), Pc = Y({
|
|
2859
2859
|
compatConfig: {
|
|
2860
2860
|
MODE: 3
|
|
2861
2861
|
},
|
|
@@ -2869,8 +2869,8 @@ const bc = (e) => {
|
|
|
2869
2869
|
const {
|
|
2870
2870
|
prefixCls: r,
|
|
2871
2871
|
status: a
|
|
2872
|
-
} = mc(), o = E(() => `${r.value}-item-explain`), i = E(() => !!(e.errors && e.errors.length)), l = te(a.value), [, u] =
|
|
2873
|
-
return
|
|
2872
|
+
} = mc(), o = E(() => `${r.value}-item-explain`), i = E(() => !!(e.errors && e.errors.length)), l = te(a.value), [, u] = Pn(r);
|
|
2873
|
+
return le([i, a], () => {
|
|
2874
2874
|
i.value && (l.value = a.value);
|
|
2875
2875
|
}), () => {
|
|
2876
2876
|
var h, s;
|
|
@@ -2904,7 +2904,7 @@ const bc = (e) => {
|
|
|
2904
2904
|
const r = Sn(), {
|
|
2905
2905
|
wrapperCol: a
|
|
2906
2906
|
} = r, o = S({}, r);
|
|
2907
|
-
return delete o.labelCol, delete o.wrapperCol,
|
|
2907
|
+
return delete o.labelCol, delete o.wrapperCol, Pa(o), fc({
|
|
2908
2908
|
prefixCls: E(() => e.prefixCls),
|
|
2909
2909
|
status: E(() => e.status)
|
|
2910
2910
|
}), () => {
|
|
@@ -2934,7 +2934,7 @@ const bc = (e) => {
|
|
|
2934
2934
|
display: "flex",
|
|
2935
2935
|
flexWrap: "nowrap"
|
|
2936
2936
|
}
|
|
2937
|
-
}, [w(
|
|
2937
|
+
}, [w(Pc, {
|
|
2938
2938
|
errors: g,
|
|
2939
2939
|
help: v,
|
|
2940
2940
|
class: `${b}-explain-connected`,
|
|
@@ -3064,7 +3064,7 @@ const _c = "form_item", ft = Y({
|
|
|
3064
3064
|
zt(e.prop === void 0, "`prop` is deprecated. Please use `name` instead.");
|
|
3065
3065
|
const o = `form-item-${++Mc}`, {
|
|
3066
3066
|
prefixCls: i
|
|
3067
|
-
} = me("form", e), [l, u] =
|
|
3067
|
+
} = me("form", e), [l, u] = Pn(i), h = V(), s = Sn(), p = E(() => e.name || e.prop), m = V([]), v = V(!1), g = V(), y = E(() => {
|
|
3068
3068
|
const M = p.value;
|
|
3069
3069
|
return Qt(M);
|
|
3070
3070
|
}), b = E(() => {
|
|
@@ -3097,7 +3097,7 @@ const _c = "form_item", ft = Y({
|
|
|
3097
3097
|
Ie(() => {
|
|
3098
3098
|
C.value = e.validateStatus;
|
|
3099
3099
|
});
|
|
3100
|
-
const
|
|
3100
|
+
const A = E(() => {
|
|
3101
3101
|
let M = {};
|
|
3102
3102
|
return typeof e.label == "string" ? M.label = e.label : e.name && (M.label = String(e.name)), e.messageVariables && (M = S(S({}, M), e.messageVariables)), M;
|
|
3103
3103
|
}), I = (M) => {
|
|
@@ -3118,7 +3118,7 @@ const _c = "form_item", ft = Y({
|
|
|
3118
3118
|
return Promise.resolve();
|
|
3119
3119
|
const ne = Oa(y.value, O.value, Q, S({
|
|
3120
3120
|
validateMessages: s.validateMessages.value
|
|
3121
|
-
}, M), q,
|
|
3121
|
+
}, M), q, A.value);
|
|
3122
3122
|
return C.value = "validating", m.value = [], ne.catch((W) => W).then(function() {
|
|
3123
3123
|
let W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3124
3124
|
if (C.value === "validating") {
|
|
@@ -3140,7 +3140,7 @@ const _c = "form_item", ft = Y({
|
|
|
3140
3140
|
});
|
|
3141
3141
|
}, j = () => {
|
|
3142
3142
|
C.value = e.validateStatus, v.value = !1, m.value = [];
|
|
3143
|
-
},
|
|
3143
|
+
}, P = () => {
|
|
3144
3144
|
var M;
|
|
3145
3145
|
C.value = e.validateStatus, v.value = !0, m.value = [];
|
|
3146
3146
|
const q = s.model.value || {}, U = O.value, Q = Nt(q, y.value, !0);
|
|
@@ -3158,7 +3158,7 @@ const _c = "form_item", ft = Y({
|
|
|
3158
3158
|
onFieldBlur: T,
|
|
3159
3159
|
onFieldChange: R,
|
|
3160
3160
|
clearValidate: j,
|
|
3161
|
-
resetField:
|
|
3161
|
+
resetField: P
|
|
3162
3162
|
}), co({
|
|
3163
3163
|
id: b,
|
|
3164
3164
|
onFieldBlur: () => {
|
|
@@ -3170,12 +3170,12 @@ const _c = "form_item", ft = Y({
|
|
|
3170
3170
|
clearValidate: j
|
|
3171
3171
|
}, E(() => !!(e.autoLink && s.model.value && p.value)));
|
|
3172
3172
|
let L = !1;
|
|
3173
|
-
|
|
3173
|
+
le(p, (M) => {
|
|
3174
3174
|
M ? L || (L = !0, s.addField(o, {
|
|
3175
3175
|
fieldValue: O,
|
|
3176
3176
|
fieldId: b,
|
|
3177
3177
|
fieldName: p,
|
|
3178
|
-
resetField:
|
|
3178
|
+
resetField: P,
|
|
3179
3179
|
clearValidate: j,
|
|
3180
3180
|
namePath: y,
|
|
3181
3181
|
validateRules: I,
|
|
@@ -3219,7 +3219,7 @@ const _c = "form_item", ft = Y({
|
|
|
3219
3219
|
}
|
|
3220
3220
|
};
|
|
3221
3221
|
Ee(() => {
|
|
3222
|
-
|
|
3222
|
+
le(J, () => {
|
|
3223
3223
|
J.value && oe();
|
|
3224
3224
|
}, {
|
|
3225
3225
|
flush: "post",
|
|
@@ -3242,7 +3242,7 @@ const _c = "form_item", ft = Y({
|
|
|
3242
3242
|
}), {
|
|
3243
3243
|
default: () => {
|
|
3244
3244
|
var ne, W;
|
|
3245
|
-
return w(ye, null, [w(
|
|
3245
|
+
return w(ye, null, [w(An, N(N({}, e), {}, {
|
|
3246
3246
|
htmlFor: B.value,
|
|
3247
3247
|
required: $.value,
|
|
3248
3248
|
requiredMark: s.requiredMark.value,
|
|
@@ -3340,8 +3340,8 @@ function Nc(e) {
|
|
|
3340
3340
|
const R = c[T], j = Bt(G(e), R, f);
|
|
3341
3341
|
if (!j.isValid) continue;
|
|
3342
3342
|
C[R] = j.v;
|
|
3343
|
-
const
|
|
3344
|
-
|
|
3343
|
+
const P = l(G(t)[R], Cr(d && d.trigger));
|
|
3344
|
+
P.length && $.push(s(R, j.v, P, d || {}).then(() => ({
|
|
3345
3345
|
name: R,
|
|
3346
3346
|
errors: [],
|
|
3347
3347
|
warnings: []
|
|
@@ -3366,14 +3366,14 @@ function Nc(e) {
|
|
|
3366
3366
|
};
|
|
3367
3367
|
}));
|
|
3368
3368
|
}
|
|
3369
|
-
const
|
|
3370
|
-
u =
|
|
3371
|
-
const I =
|
|
3369
|
+
const A = Ta($);
|
|
3370
|
+
u = A;
|
|
3371
|
+
const I = A.then(() => u === A ? Promise.resolve(C) : Promise.reject([])).catch((T) => {
|
|
3372
3372
|
const R = T.filter((j) => j && j.errors.length);
|
|
3373
3373
|
return R.length ? Promise.reject({
|
|
3374
3374
|
values: C,
|
|
3375
3375
|
errorFields: R,
|
|
3376
|
-
outOfDate: u !==
|
|
3376
|
+
outOfDate: u !== A
|
|
3377
3377
|
}) : Promise.resolve(C);
|
|
3378
3378
|
});
|
|
3379
3379
|
return I.catch((T) => T), I;
|
|
@@ -3382,19 +3382,19 @@ function Nc(e) {
|
|
|
3382
3382
|
const C = Oa([c], d, f, S({
|
|
3383
3383
|
validateMessages: It
|
|
3384
3384
|
}, $), !!$.validateFirst);
|
|
3385
|
-
return a[c] ? (a[c].validateStatus = "validating", C.catch((
|
|
3386
|
-
let
|
|
3385
|
+
return a[c] ? (a[c].validateStatus = "validating", C.catch((A) => A).then(function() {
|
|
3386
|
+
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3387
3387
|
var I;
|
|
3388
3388
|
if (a[c].validateStatus === "validating") {
|
|
3389
|
-
const T =
|
|
3389
|
+
const T = A.filter((R) => R && R.errors.length);
|
|
3390
3390
|
a[c].validateStatus = T.length ? "error" : "success", a[c].help = T.length ? T.map((R) => R.errors) : null, (I = n == null ? void 0 : n.onValidate) === null || I === void 0 || I.call(n, c, !T.length, T.length ? Rt(a[c].help[0]) : null);
|
|
3391
3391
|
}
|
|
3392
|
-
}), C) : C.catch((
|
|
3392
|
+
}), C) : C.catch((A) => A);
|
|
3393
3393
|
}, p = (c, d) => {
|
|
3394
3394
|
let f = [], $ = !0;
|
|
3395
3395
|
c ? Array.isArray(c) ? f = c : f = [c] : ($ = !1, f = o.value);
|
|
3396
3396
|
const C = h(f, d || {}, $);
|
|
3397
|
-
return C.catch((
|
|
3397
|
+
return C.catch((A) => A), C;
|
|
3398
3398
|
}, m = (c) => {
|
|
3399
3399
|
let d = [];
|
|
3400
3400
|
c ? Array.isArray(c) ? d = c : d = [c] : d = o.value, d.forEach((f) => {
|
|
@@ -3408,8 +3408,8 @@ function Nc(e) {
|
|
|
3408
3408
|
autoLink: !1
|
|
3409
3409
|
}, f = [], $ = Array.isArray(c) ? c : [c];
|
|
3410
3410
|
for (let C = 0; C < $.length; C++) {
|
|
3411
|
-
const
|
|
3412
|
-
(
|
|
3411
|
+
const A = $[C];
|
|
3412
|
+
(A == null ? void 0 : A.validateStatus) === "error" && (d.validateStatus = "error", A.help && f.push(A.help)), d.required = d.required || (A == null ? void 0 : A.required);
|
|
3413
3413
|
}
|
|
3414
3414
|
return d.help = f, d;
|
|
3415
3415
|
};
|
|
@@ -3424,12 +3424,12 @@ function Nc(e) {
|
|
|
3424
3424
|
}), y = !1, g = ct(Rt(c));
|
|
3425
3425
|
}, x = n == null ? void 0 : n.debounce;
|
|
3426
3426
|
let O = !0;
|
|
3427
|
-
return
|
|
3427
|
+
return le(t, () => {
|
|
3428
3428
|
o.value = t ? Object.keys(G(t)) : [], !O && n && n.validateOnRuleChange && p(), O = !1;
|
|
3429
3429
|
}, {
|
|
3430
3430
|
deep: !0,
|
|
3431
3431
|
immediate: !0
|
|
3432
|
-
}),
|
|
3432
|
+
}), le(o, () => {
|
|
3433
3433
|
const c = {};
|
|
3434
3434
|
o.value.forEach((d) => {
|
|
3435
3435
|
c[d] = S({}, a[d], {
|
|
@@ -3442,7 +3442,7 @@ function Nc(e) {
|
|
|
3442
3442
|
S(a, c);
|
|
3443
3443
|
}, {
|
|
3444
3444
|
immediate: !0
|
|
3445
|
-
}),
|
|
3445
|
+
}), le(e, x && x.wait ? zs(b, x.wait, ru(x, ["wait"])) : b, {
|
|
3446
3446
|
immediate: n && !!n.immediate,
|
|
3447
3447
|
deep: !0
|
|
3448
3448
|
}), {
|
|
@@ -3525,7 +3525,7 @@ const $e = Y({
|
|
|
3525
3525
|
return (F = e.colon) !== null && F !== void 0 ? F : (_ = u.value) === null || _ === void 0 ? void 0 : _.colon;
|
|
3526
3526
|
}), {
|
|
3527
3527
|
validateMessages: g
|
|
3528
|
-
} = go(), y = E(() => S(S(S({}, It), g.value), e.validateMessages)), [b, x] =
|
|
3528
|
+
} = go(), y = E(() => S(S(S({}, It), g.value), e.validateMessages)), [b, x] = Pn(i), O = E(() => K(i.value, {
|
|
3529
3529
|
[`${i.value}-${e.layout}`]: !0,
|
|
3530
3530
|
[`${i.value}-hide-required-mark`]: m.value === !1,
|
|
3531
3531
|
[`${i.value}-rtl`]: l.value === "rtl",
|
|
@@ -3537,9 +3537,9 @@ const $e = Y({
|
|
|
3537
3537
|
}, C = (F) => {
|
|
3538
3538
|
const _ = !!F, D = _ ? we(F).map(Qt) : [];
|
|
3539
3539
|
return _ ? Object.values(d).filter((X) => D.findIndex((k) => Rc(k, X.fieldName.value)) > -1) : Object.values(d);
|
|
3540
|
-
},
|
|
3540
|
+
}, A = (F) => {
|
|
3541
3541
|
if (!e.model) {
|
|
3542
|
-
|
|
3542
|
+
Pe(!1, "Form", "model is required for resetFields to work.");
|
|
3543
3543
|
return;
|
|
3544
3544
|
}
|
|
3545
3545
|
C(F).forEach((_) => {
|
|
@@ -3569,7 +3569,7 @@ const $e = Y({
|
|
|
3569
3569
|
block: "nearest"
|
|
3570
3570
|
}, _));
|
|
3571
3571
|
}
|
|
3572
|
-
},
|
|
3572
|
+
}, P = function() {
|
|
3573
3573
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3574
3574
|
if (F === !0) {
|
|
3575
3575
|
const _ = [];
|
|
@@ -3582,8 +3582,8 @@ const $e = Y({
|
|
|
3582
3582
|
} else
|
|
3583
3583
|
return hr(e.model, F);
|
|
3584
3584
|
}, B = (F, _) => {
|
|
3585
|
-
if (
|
|
3586
|
-
return
|
|
3585
|
+
if (Pe(!(F instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"), !e.model)
|
|
3586
|
+
return Pe(!1, "Form", "model is required for validateFields to work."), Promise.reject("Form `model` is required for validateFields to work.");
|
|
3587
3587
|
const D = !!F, X = D ? we(F).map(Qt) : [], k = [];
|
|
3588
3588
|
Object.values(d).forEach((ae) => {
|
|
3589
3589
|
var M;
|
|
@@ -3622,10 +3622,10 @@ const $e = Y({
|
|
|
3622
3622
|
});
|
|
3623
3623
|
const J = Ta(k);
|
|
3624
3624
|
c.value = J;
|
|
3625
|
-
const oe = J.then(() => c.value === J ? Promise.resolve(
|
|
3625
|
+
const oe = J.then(() => c.value === J ? Promise.resolve(P(X)) : Promise.reject([])).catch((ae) => {
|
|
3626
3626
|
const M = ae.filter((q) => q && q.errors.length);
|
|
3627
3627
|
return Promise.reject({
|
|
3628
|
-
values:
|
|
3628
|
+
values: P(X),
|
|
3629
3629
|
errorFields: M,
|
|
3630
3630
|
outOfDate: c.value !== J
|
|
3631
3631
|
});
|
|
@@ -3641,13 +3641,13 @@ const $e = Y({
|
|
|
3641
3641
|
});
|
|
3642
3642
|
};
|
|
3643
3643
|
return a({
|
|
3644
|
-
resetFields:
|
|
3644
|
+
resetFields: A,
|
|
3645
3645
|
clearValidate: I,
|
|
3646
3646
|
validateFields: B,
|
|
3647
|
-
getFieldsValue:
|
|
3647
|
+
getFieldsValue: P,
|
|
3648
3648
|
validate: R,
|
|
3649
3649
|
scrollToField: j
|
|
3650
|
-
}),
|
|
3650
|
+
}), Pa({
|
|
3651
3651
|
model: E(() => e.model),
|
|
3652
3652
|
name: E(() => e.name),
|
|
3653
3653
|
labelAlign: E(() => e.labelAlign),
|
|
@@ -3665,7 +3665,7 @@ const $e = Y({
|
|
|
3665
3665
|
n("validate", F, _, D);
|
|
3666
3666
|
},
|
|
3667
3667
|
validateMessages: y
|
|
3668
|
-
}),
|
|
3668
|
+
}), le(() => e.rules, () => {
|
|
3669
3669
|
e.validateOnRuleChange && B();
|
|
3670
3670
|
}), () => {
|
|
3671
3671
|
var F;
|
|
@@ -3698,7 +3698,7 @@ const jc = new un("antCheckboxEffect", {
|
|
|
3698
3698
|
// ===================== Basic =====================
|
|
3699
3699
|
{
|
|
3700
3700
|
// Group
|
|
3701
|
-
[`${t}-group`]: S(S({},
|
|
3701
|
+
[`${t}-group`]: S(S({}, Ae(e)), {
|
|
3702
3702
|
display: "inline-flex",
|
|
3703
3703
|
flexWrap: "wrap",
|
|
3704
3704
|
columnGap: e.marginXS,
|
|
@@ -3708,7 +3708,7 @@ const jc = new un("antCheckboxEffect", {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
}),
|
|
3710
3710
|
// Wrapper
|
|
3711
|
-
[n]: S(S({},
|
|
3711
|
+
[n]: S(S({}, Ae(e)), {
|
|
3712
3712
|
display: "inline-flex",
|
|
3713
3713
|
alignItems: "baseline",
|
|
3714
3714
|
cursor: "pointer",
|
|
@@ -3732,7 +3732,7 @@ const jc = new un("antCheckboxEffect", {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
}),
|
|
3734
3734
|
// Wrapper > Checkbox
|
|
3735
|
-
[t]: S(S({},
|
|
3735
|
+
[t]: S(S({}, Ae(e)), {
|
|
3736
3736
|
position: "relative",
|
|
3737
3737
|
whiteSpace: "nowrap",
|
|
3738
3738
|
lineHeight: 1,
|
|
@@ -3993,7 +3993,7 @@ const Xe = Y({
|
|
|
3993
3993
|
}), Me(() => {
|
|
3994
3994
|
g && g.cancelValue(y);
|
|
3995
3995
|
}), Ee(() => {
|
|
3996
|
-
|
|
3996
|
+
Pe(!!(e.checked !== void 0 || g || e.value === void 0), "Checkbox", "`value` is not validate prop, do you mean `checked`?");
|
|
3997
3997
|
});
|
|
3998
3998
|
const x = (f) => {
|
|
3999
3999
|
const $ = f.target.checked;
|
|
@@ -4012,12 +4012,12 @@ const Xe = Y({
|
|
|
4012
4012
|
var f;
|
|
4013
4013
|
const $ = yo((f = a.default) === null || f === void 0 ? void 0 : f.call(a)), {
|
|
4014
4014
|
indeterminate: C,
|
|
4015
|
-
skipGroup:
|
|
4015
|
+
skipGroup: A,
|
|
4016
4016
|
id: I = i.id.value
|
|
4017
4017
|
} = e, T = $r(e, ["indeterminate", "skipGroup", "id"]), {
|
|
4018
4018
|
onMouseenter: R,
|
|
4019
4019
|
onMouseleave: j,
|
|
4020
|
-
onInput:
|
|
4020
|
+
onInput: P,
|
|
4021
4021
|
class: B,
|
|
4022
4022
|
style: z
|
|
4023
4023
|
} = r, L = $r(r, ["onMouseenter", "onMouseleave", "onInput", "class", "style"]), F = S(S(S(S({}, T), {
|
|
@@ -4026,7 +4026,7 @@ const Xe = Y({
|
|
|
4026
4026
|
}), L), {
|
|
4027
4027
|
disabled: b.value
|
|
4028
4028
|
});
|
|
4029
|
-
g && !
|
|
4029
|
+
g && !A ? (F.onChange = function() {
|
|
4030
4030
|
for (var k = arguments.length, J = new Array(k), oe = 0; oe < k; oe++)
|
|
4031
4031
|
J[oe] = arguments[oe];
|
|
4032
4032
|
n("change", ...J), g.toggleOption({
|
|
@@ -4075,7 +4075,7 @@ const Xe = Y({
|
|
|
4075
4075
|
prefixCls: l,
|
|
4076
4076
|
direction: u
|
|
4077
4077
|
} = me("checkbox", e), h = E(() => `${l.value}-group`), [s, p] = Ea(h), m = te((e.value === void 0 ? e.defaultValue : e.value) || []);
|
|
4078
|
-
|
|
4078
|
+
le(() => e.value, () => {
|
|
4079
4079
|
m.value = e.value || [];
|
|
4080
4080
|
});
|
|
4081
4081
|
const v = E(() => e.options.map((d) => typeof d == "string" || typeof d == "number" ? {
|
|
@@ -4086,7 +4086,7 @@ const Xe = Y({
|
|
|
4086
4086
|
}, x = (d, f) => {
|
|
4087
4087
|
y.value.set(d, f), g.value = Symbol();
|
|
4088
4088
|
}, O = te(/* @__PURE__ */ new Map());
|
|
4089
|
-
return
|
|
4089
|
+
return le(g, () => {
|
|
4090
4090
|
const d = /* @__PURE__ */ new Map();
|
|
4091
4091
|
for (const f of y.value.values())
|
|
4092
4092
|
d.set(f, !0);
|
|
@@ -4097,8 +4097,8 @@ const Xe = Y({
|
|
|
4097
4097
|
toggleOption: (d) => {
|
|
4098
4098
|
const f = m.value.indexOf(d.value), $ = [...m.value];
|
|
4099
4099
|
f === -1 ? $.push(d.value) : $.splice(f, 1), e.value === void 0 && (m.value = $);
|
|
4100
|
-
const C = $.filter((
|
|
4101
|
-
const T = v.value.findIndex((j) => j.value ===
|
|
4100
|
+
const C = $.filter((A) => O.value.has(A)).sort((A, I) => {
|
|
4101
|
+
const T = v.value.findIndex((j) => j.value === A), R = v.value.findIndex((j) => j.value === I);
|
|
4102
4102
|
return T - R;
|
|
4103
4103
|
});
|
|
4104
4104
|
a("update:value", C), a("change", C), i.onFieldChange();
|
|
@@ -4115,7 +4115,7 @@ const Xe = Y({
|
|
|
4115
4115
|
} = e;
|
|
4116
4116
|
let $ = null;
|
|
4117
4117
|
return v.value && v.value.length > 0 && ($ = v.value.map((C) => {
|
|
4118
|
-
var
|
|
4118
|
+
var A;
|
|
4119
4119
|
return w(Xe, {
|
|
4120
4120
|
prefixCls: l.value,
|
|
4121
4121
|
key: C.value.toString(),
|
|
@@ -4126,7 +4126,7 @@ const Xe = Y({
|
|
|
4126
4126
|
onChange: C.onChange,
|
|
4127
4127
|
class: `${h.value}-item`
|
|
4128
4128
|
}, {
|
|
4129
|
-
default: () => [n.label !== void 0 ? (
|
|
4129
|
+
default: () => [n.label !== void 0 ? (A = n.label) === null || A === void 0 ? void 0 : A.call(n, C) : C.label]
|
|
4130
4130
|
});
|
|
4131
4131
|
})), s(w("div", N(N({}, r), {}, {
|
|
4132
4132
|
class: [h.value, {
|
|
@@ -4185,7 +4185,7 @@ const lt = (e, t, n) => {
|
|
|
4185
4185
|
} = e, o = r - n, i = t - n;
|
|
4186
4186
|
return {
|
|
4187
4187
|
// Result
|
|
4188
|
-
[a]: S(S({},
|
|
4188
|
+
[a]: S(S({}, Ae(e)), {
|
|
4189
4189
|
display: "inline-block",
|
|
4190
4190
|
height: "auto",
|
|
4191
4191
|
marginInlineEnd: e.marginXS,
|
|
@@ -4362,7 +4362,7 @@ const lt = (e, t, n) => {
|
|
|
4362
4362
|
prefixCls: o,
|
|
4363
4363
|
direction: i
|
|
4364
4364
|
} = me("tag", e), [l, u] = _a(o), h = V(!0);
|
|
4365
|
-
process.env.NODE_ENV !== "production" &&
|
|
4365
|
+
process.env.NODE_ENV !== "production" && Pe(e.visible === void 0, "Tag", '`visible` is deprecated, please use `<Tag v-show="visible" />` instead.'), Ie(() => {
|
|
4366
4366
|
e.visible !== void 0 && (h.value = e.visible);
|
|
4367
4367
|
});
|
|
4368
4368
|
const s = (g) => {
|
|
@@ -4391,7 +4391,7 @@ const lt = (e, t, n) => {
|
|
|
4391
4391
|
onClick: s
|
|
4392
4392
|
}, null) : null, $ = {
|
|
4393
4393
|
backgroundColor: O && !p.value ? O : void 0
|
|
4394
|
-
}, C = x || null,
|
|
4394
|
+
}, C = x || null, A = (b = n.default) === null || b === void 0 ? void 0 : b.call(n), I = C ? w(ye, null, [C, w("span", null, [A])]) : A, T = e.onClick !== void 0, R = w("span", N(N({}, a), {}, {
|
|
4395
4395
|
onClick: v,
|
|
4396
4396
|
class: [m.value, a.class],
|
|
4397
4397
|
style: [$, a.style]
|
|
@@ -4467,7 +4467,7 @@ const Xc = Y({
|
|
|
4467
4467
|
wrapperClassName: $,
|
|
4468
4468
|
groupClassName: C
|
|
4469
4469
|
} = e;
|
|
4470
|
-
let
|
|
4470
|
+
let A = Ge(d, {
|
|
4471
4471
|
value: s,
|
|
4472
4472
|
hidden: g
|
|
4473
4473
|
});
|
|
@@ -4487,7 +4487,7 @@ const Xc = Y({
|
|
|
4487
4487
|
}) && r.class, f), R = (x || m) && w("span", {
|
|
4488
4488
|
class: `${y}-suffix`
|
|
4489
4489
|
}, [i(), x]);
|
|
4490
|
-
|
|
4490
|
+
A = w("span", {
|
|
4491
4491
|
class: T,
|
|
4492
4492
|
style: r.style,
|
|
4493
4493
|
hidden: !ut({
|
|
@@ -4517,14 +4517,14 @@ const Xc = Y({
|
|
|
4517
4517
|
class: R
|
|
4518
4518
|
}, [c && w("span", {
|
|
4519
4519
|
class: T
|
|
4520
|
-
}, [c]), Ge(
|
|
4520
|
+
}, [c]), Ge(A, {
|
|
4521
4521
|
style: null,
|
|
4522
4522
|
hidden: null
|
|
4523
4523
|
}), O && w("span", {
|
|
4524
4524
|
class: T
|
|
4525
4525
|
}, [O])])]);
|
|
4526
4526
|
}
|
|
4527
|
-
return
|
|
4527
|
+
return A;
|
|
4528
4528
|
};
|
|
4529
4529
|
}
|
|
4530
4530
|
});
|
|
@@ -4538,7 +4538,7 @@ var Kc = function(e, t) {
|
|
|
4538
4538
|
const Yc = Y({
|
|
4539
4539
|
name: "VCInput",
|
|
4540
4540
|
inheritAttrs: !1,
|
|
4541
|
-
props:
|
|
4541
|
+
props: Ao(),
|
|
4542
4542
|
setup(e, t) {
|
|
4543
4543
|
let {
|
|
4544
4544
|
slots: n,
|
|
@@ -4547,19 +4547,19 @@ const Yc = Y({
|
|
|
4547
4547
|
emit: o
|
|
4548
4548
|
} = t;
|
|
4549
4549
|
const i = V(e.value === void 0 ? e.defaultValue : e.value), l = V(!1), u = V(), h = V();
|
|
4550
|
-
|
|
4550
|
+
le(() => e.value, () => {
|
|
4551
4551
|
i.value = e.value;
|
|
4552
|
-
}),
|
|
4552
|
+
}), le(() => e.disabled, () => {
|
|
4553
4553
|
e.disabled && (l.value = !1);
|
|
4554
4554
|
});
|
|
4555
4555
|
const s = (C) => {
|
|
4556
|
-
u.value &&
|
|
4556
|
+
u.value && Po(u.value.input, C);
|
|
4557
4557
|
}, p = () => {
|
|
4558
4558
|
var C;
|
|
4559
4559
|
(C = u.value.input) === null || C === void 0 || C.blur();
|
|
4560
|
-
}, m = (C,
|
|
4560
|
+
}, m = (C, A, I) => {
|
|
4561
4561
|
var T;
|
|
4562
|
-
(T = u.value.input) === null || T === void 0 || T.setSelectionRange(C,
|
|
4562
|
+
(T = u.value.input) === null || T === void 0 || T.setSelectionRange(C, A, I);
|
|
4563
4563
|
}, v = () => {
|
|
4564
4564
|
var C;
|
|
4565
4565
|
(C = u.value.input) === null || C === void 0 || C.select();
|
|
@@ -4577,18 +4577,18 @@ const Yc = Y({
|
|
|
4577
4577
|
});
|
|
4578
4578
|
const g = (C) => {
|
|
4579
4579
|
o("change", C);
|
|
4580
|
-
}, y = (C,
|
|
4580
|
+
}, y = (C, A) => {
|
|
4581
4581
|
i.value !== C && (e.value === void 0 ? i.value = C : je(() => {
|
|
4582
4582
|
var I;
|
|
4583
4583
|
u.value.input.value !== i.value && ((I = h.value) === null || I === void 0 || I.$forceUpdate());
|
|
4584
4584
|
}), je(() => {
|
|
4585
|
-
|
|
4585
|
+
A && A();
|
|
4586
4586
|
}));
|
|
4587
4587
|
}, b = (C) => {
|
|
4588
4588
|
const {
|
|
4589
|
-
value:
|
|
4589
|
+
value: A
|
|
4590
4590
|
} = C.target;
|
|
4591
|
-
if (i.value ===
|
|
4591
|
+
if (i.value === A) return;
|
|
4592
4592
|
const I = C.target.value;
|
|
4593
4593
|
jn(u.value.input, C, g), y(I);
|
|
4594
4594
|
}, x = (C) => {
|
|
@@ -4602,18 +4602,18 @@ const Yc = Y({
|
|
|
4602
4602
|
s();
|
|
4603
4603
|
});
|
|
4604
4604
|
}, f = () => {
|
|
4605
|
-
var C,
|
|
4605
|
+
var C, A;
|
|
4606
4606
|
const {
|
|
4607
4607
|
addonBefore: I = n.addonBefore,
|
|
4608
4608
|
addonAfter: T = n.addonAfter,
|
|
4609
4609
|
disabled: R,
|
|
4610
4610
|
valueModifiers: j = {},
|
|
4611
|
-
htmlSize:
|
|
4611
|
+
htmlSize: P,
|
|
4612
4612
|
autocomplete: B,
|
|
4613
4613
|
prefixCls: z,
|
|
4614
4614
|
inputClassName: L,
|
|
4615
4615
|
prefix: F = (C = n.prefix) === null || C === void 0 ? void 0 : C.call(n),
|
|
4616
|
-
suffix: _ = (
|
|
4616
|
+
suffix: _ = (A = n.suffix) === null || A === void 0 ? void 0 : A.call(n),
|
|
4617
4617
|
allowClear: D,
|
|
4618
4618
|
type: X = "text"
|
|
4619
4619
|
} = e, k = Te(e, [
|
|
@@ -4657,7 +4657,7 @@ const Yc = Y({
|
|
|
4657
4657
|
}) && r.class),
|
|
4658
4658
|
ref: u,
|
|
4659
4659
|
key: "ant-input",
|
|
4660
|
-
size:
|
|
4660
|
+
size: P,
|
|
4661
4661
|
type: X,
|
|
4662
4662
|
lazy: e.lazy
|
|
4663
4663
|
});
|
|
@@ -4665,16 +4665,16 @@ const Yc = Y({
|
|
|
4665
4665
|
}, $ = () => {
|
|
4666
4666
|
var C;
|
|
4667
4667
|
const {
|
|
4668
|
-
maxlength:
|
|
4668
|
+
maxlength: A,
|
|
4669
4669
|
suffix: I = (C = n.suffix) === null || C === void 0 ? void 0 : C.call(n),
|
|
4670
4670
|
showCount: T,
|
|
4671
4671
|
prefixCls: R
|
|
4672
|
-
} = e, j = Number(
|
|
4672
|
+
} = e, j = Number(A) > 0;
|
|
4673
4673
|
if (I || T) {
|
|
4674
|
-
const
|
|
4675
|
-
count:
|
|
4676
|
-
maxlength:
|
|
4677
|
-
}) : `${
|
|
4674
|
+
const P = [...Rn(i.value)].length, B = typeof T == "object" ? T.formatter({
|
|
4675
|
+
count: P,
|
|
4676
|
+
maxlength: A
|
|
4677
|
+
}) : `${P}${j ? ` / ${A}` : ""}`;
|
|
4678
4678
|
return w(ye, null, [!!T && w("span", {
|
|
4679
4679
|
class: K(`${R}-show-count-suffix`, {
|
|
4680
4680
|
[`${R}-show-count-has-suffix`]: !!I
|
|
@@ -4688,7 +4688,7 @@ const Yc = Y({
|
|
|
4688
4688
|
}), () => {
|
|
4689
4689
|
const {
|
|
4690
4690
|
prefixCls: C,
|
|
4691
|
-
disabled:
|
|
4691
|
+
disabled: A
|
|
4692
4692
|
} = e, I = Kc(e, ["prefixCls", "disabled"]);
|
|
4693
4693
|
return w(Xc, N(N(N({}, I), r), {}, {
|
|
4694
4694
|
ref: h,
|
|
@@ -4699,7 +4699,7 @@ const Yc = Y({
|
|
|
4699
4699
|
focused: l.value,
|
|
4700
4700
|
triggerFocus: s,
|
|
4701
4701
|
suffix: $(),
|
|
4702
|
-
disabled:
|
|
4702
|
+
disabled: A
|
|
4703
4703
|
}), n);
|
|
4704
4704
|
};
|
|
4705
4705
|
}
|
|
@@ -4711,7 +4711,7 @@ var Qc = function(e, t) {
|
|
|
4711
4711
|
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
4712
4712
|
return n;
|
|
4713
4713
|
};
|
|
4714
|
-
const
|
|
4714
|
+
const se = Y({
|
|
4715
4715
|
compatConfig: {
|
|
4716
4716
|
MODE: 3
|
|
4717
4717
|
},
|
|
@@ -4735,53 +4735,53 @@ const le = Y({
|
|
|
4735
4735
|
compactItemClassnames: y
|
|
4736
4736
|
} = To(p, s), b = E(() => g.value || m.value), [x, O] = Qr(p), c = Kr();
|
|
4737
4737
|
a({
|
|
4738
|
-
focus: (
|
|
4738
|
+
focus: (P) => {
|
|
4739
4739
|
var B;
|
|
4740
|
-
(B = i.value) === null || B === void 0 || B.focus(
|
|
4740
|
+
(B = i.value) === null || B === void 0 || B.focus(P);
|
|
4741
4741
|
},
|
|
4742
4742
|
blur: () => {
|
|
4743
|
-
var
|
|
4744
|
-
(
|
|
4743
|
+
var P;
|
|
4744
|
+
(P = i.value) === null || P === void 0 || P.blur();
|
|
4745
4745
|
},
|
|
4746
4746
|
input: i,
|
|
4747
|
-
setSelectionRange: (
|
|
4747
|
+
setSelectionRange: (P, B, z) => {
|
|
4748
4748
|
var L;
|
|
4749
|
-
(L = i.value) === null || L === void 0 || L.setSelectionRange(
|
|
4749
|
+
(L = i.value) === null || L === void 0 || L.setSelectionRange(P, B, z);
|
|
4750
4750
|
},
|
|
4751
4751
|
select: () => {
|
|
4752
|
-
var
|
|
4753
|
-
(
|
|
4752
|
+
var P;
|
|
4753
|
+
(P = i.value) === null || P === void 0 || P.select();
|
|
4754
4754
|
}
|
|
4755
4755
|
});
|
|
4756
|
-
const
|
|
4757
|
-
|
|
4758
|
-
var
|
|
4759
|
-
!((
|
|
4756
|
+
const A = te([]), I = () => {
|
|
4757
|
+
A.value.push(setTimeout(() => {
|
|
4758
|
+
var P, B, z, L;
|
|
4759
|
+
!((P = i.value) === null || P === void 0) && P.input && ((B = i.value) === null || B === void 0 ? void 0 : B.input.getAttribute("type")) === "password" && (!((z = i.value) === null || z === void 0) && z.input.hasAttribute("value")) && ((L = i.value) === null || L === void 0 || L.input.removeAttribute("value"));
|
|
4760
4760
|
}));
|
|
4761
4761
|
};
|
|
4762
4762
|
Ee(() => {
|
|
4763
4763
|
I();
|
|
4764
4764
|
}), Wa(() => {
|
|
4765
|
-
|
|
4765
|
+
A.value.forEach((P) => clearTimeout(P));
|
|
4766
4766
|
}), Me(() => {
|
|
4767
|
-
|
|
4767
|
+
A.value.forEach((P) => clearTimeout(P));
|
|
4768
4768
|
});
|
|
4769
|
-
const T = (
|
|
4770
|
-
I(), o("blur",
|
|
4771
|
-
}, R = (
|
|
4772
|
-
I(), o("focus",
|
|
4773
|
-
}, j = (
|
|
4774
|
-
o("update:value",
|
|
4769
|
+
const T = (P) => {
|
|
4770
|
+
I(), o("blur", P), l.onFieldBlur();
|
|
4771
|
+
}, R = (P) => {
|
|
4772
|
+
I(), o("focus", P);
|
|
4773
|
+
}, j = (P) => {
|
|
4774
|
+
o("update:value", P.target.value), o("change", P), o("input", P), l.onFieldChange();
|
|
4775
4775
|
};
|
|
4776
4776
|
return () => {
|
|
4777
|
-
var
|
|
4777
|
+
var P, B, z, L, F, _;
|
|
4778
4778
|
const {
|
|
4779
4779
|
hasFeedback: D,
|
|
4780
4780
|
feedbackIcon: X
|
|
4781
4781
|
} = u, {
|
|
4782
4782
|
allowClear: k,
|
|
4783
4783
|
bordered: J = !0,
|
|
4784
|
-
prefix: oe = (
|
|
4784
|
+
prefix: oe = (P = n.prefix) === null || P === void 0 ? void 0 : P.call(n),
|
|
4785
4785
|
suffix: ae = (B = n.suffix) === null || B === void 0 ? void 0 : B.call(n),
|
|
4786
4786
|
addonAfter: M = (z = n.addonAfter) === null || z === void 0 ? void 0 : z.call(n),
|
|
4787
4787
|
addonBefore: q = (L = n.addonBefore) === null || L === void 0 ? void 0 : L.call(n),
|
|
@@ -4946,15 +4946,15 @@ const ed = Y({
|
|
|
4946
4946
|
size: c
|
|
4947
4947
|
} = me("input-search", e), d = E(() => x("input", e.inputPrefixCls));
|
|
4948
4948
|
return () => {
|
|
4949
|
-
var f, $, C,
|
|
4949
|
+
var f, $, C, A;
|
|
4950
4950
|
const {
|
|
4951
4951
|
disabled: I,
|
|
4952
4952
|
loading: T,
|
|
4953
4953
|
addonAfter: R = (f = n.addonAfter) === null || f === void 0 ? void 0 : f.call(n),
|
|
4954
4954
|
suffix: j = ($ = n.suffix) === null || $ === void 0 ? void 0 : $.call(n)
|
|
4955
|
-
} = e,
|
|
4955
|
+
} = e, P = Jc(e, ["disabled", "loading", "addonAfter", "suffix"]);
|
|
4956
4956
|
let {
|
|
4957
|
-
enterButton: B = (
|
|
4957
|
+
enterButton: B = (A = (C = n.enterButton) === null || C === void 0 ? void 0 : C.call(n)) !== null && A !== void 0 ? A : !1
|
|
4958
4958
|
} = e;
|
|
4959
4959
|
B = B || B === "";
|
|
4960
4960
|
const z = typeof B == "boolean" ? w(vn, null, null) : null, L = `${b.value}-button`, F = Array.isArray(B) ? B[0] : B;
|
|
@@ -4991,9 +4991,9 @@ const ed = Y({
|
|
|
4991
4991
|
[`${b.value}-${c.value}`]: !!c.value,
|
|
4992
4992
|
[`${b.value}-with-button`]: !!B
|
|
4993
4993
|
}, r.class);
|
|
4994
|
-
return w(
|
|
4994
|
+
return w(se, N(N(N({
|
|
4995
4995
|
ref: i
|
|
4996
|
-
}, Te(
|
|
4996
|
+
}, Te(P, ["onUpdate:value", "onSearch", "enterButton"])), r), {}, {
|
|
4997
4997
|
onPressEnter: v,
|
|
4998
4998
|
onCompositionstart: g,
|
|
4999
4999
|
onCompositionend: y,
|
|
@@ -5146,19 +5146,19 @@ const id = {
|
|
|
5146
5146
|
prefixCls: g.value,
|
|
5147
5147
|
suffix: c
|
|
5148
5148
|
});
|
|
5149
|
-
return b && (f.size = b), w(
|
|
5149
|
+
return b && (f.size = b), w(se, N({
|
|
5150
5150
|
ref: u
|
|
5151
5151
|
}, f), n);
|
|
5152
5152
|
};
|
|
5153
5153
|
return () => y();
|
|
5154
5154
|
}
|
|
5155
5155
|
});
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
return e.component(
|
|
5156
|
+
se.Group = Zc;
|
|
5157
|
+
se.Search = ed;
|
|
5158
|
+
se.TextArea = Zr;
|
|
5159
|
+
se.Password = sd;
|
|
5160
|
+
se.install = function(e) {
|
|
5161
|
+
return e.component(se.name, se), e.component(se.Group.name, se.Group), e.component(se.Search.name, se.Search), e.component(se.TextArea.name, se.TextArea), e.component(se.Password.name, se.Password), e;
|
|
5162
5162
|
};
|
|
5163
5163
|
function Tn() {
|
|
5164
5164
|
return {
|
|
@@ -5244,11 +5244,11 @@ function Or(e, t, n) {
|
|
|
5244
5244
|
let r = t;
|
|
5245
5245
|
return !r && n && (r = `${e}-${n}`), r;
|
|
5246
5246
|
}
|
|
5247
|
-
let
|
|
5247
|
+
let Ar = -1;
|
|
5248
5248
|
function ud() {
|
|
5249
|
-
return
|
|
5249
|
+
return Ar += 1, Ar;
|
|
5250
5250
|
}
|
|
5251
|
-
function
|
|
5251
|
+
function Pr(e, t) {
|
|
5252
5252
|
let n = e[`page${t ? "Y" : "X"}Offset`];
|
|
5253
5253
|
const r = `scroll${t ? "Top" : "Left"}`;
|
|
5254
5254
|
if (typeof n != "number") {
|
|
@@ -5262,7 +5262,7 @@ function cd(e) {
|
|
|
5262
5262
|
left: t.left,
|
|
5263
5263
|
top: t.top
|
|
5264
5264
|
}, r = e.ownerDocument, a = r.defaultView || r.parentWindow;
|
|
5265
|
-
return n.left +=
|
|
5265
|
+
return n.left += Pr(a), n.top += Pr(a, !0), n;
|
|
5266
5266
|
}
|
|
5267
5267
|
const Ir = {
|
|
5268
5268
|
width: 0,
|
|
@@ -5328,12 +5328,12 @@ const Ir = {
|
|
|
5328
5328
|
closeIcon: f = (g = r.closeIcon) === null || g === void 0 ? void 0 : g.call(r),
|
|
5329
5329
|
onClose: $,
|
|
5330
5330
|
bodyStyle: C,
|
|
5331
|
-
bodyProps:
|
|
5331
|
+
bodyProps: A,
|
|
5332
5332
|
onMousedown: I,
|
|
5333
5333
|
onMouseup: T,
|
|
5334
5334
|
visible: R,
|
|
5335
5335
|
modalRender: j = r.modalRender,
|
|
5336
|
-
destroyOnClose:
|
|
5336
|
+
destroyOnClose: P,
|
|
5337
5337
|
motionName: B
|
|
5338
5338
|
} = e;
|
|
5339
5339
|
let z;
|
|
@@ -5361,13 +5361,13 @@ const Ir = {
|
|
|
5361
5361
|
}, [F, L, w("div", N({
|
|
5362
5362
|
class: `${b}-body`,
|
|
5363
5363
|
style: C
|
|
5364
|
-
},
|
|
5364
|
+
}, A), [(y = r.default) === null || y === void 0 ? void 0 : y.call(r)]), z]), D = cn(B);
|
|
5365
5365
|
return w(rn, N(N({}, D), {}, {
|
|
5366
5366
|
onBeforeEnter: s,
|
|
5367
5367
|
onAfterEnter: () => p(!0),
|
|
5368
5368
|
onAfterLeave: () => p(!1)
|
|
5369
5369
|
}), {
|
|
5370
|
-
default: () => [R || !
|
|
5370
|
+
default: () => [R || !P ? tn(w("div", N(N({}, a), {}, {
|
|
5371
5371
|
ref: l,
|
|
5372
5372
|
key: "dialog-element",
|
|
5373
5373
|
role: "document",
|
|
@@ -5478,7 +5478,7 @@ const Ir = {
|
|
|
5478
5478
|
}
|
|
5479
5479
|
e.visible && x.keyCode === zn.TAB && i.value.changeActive(!x.shiftKey);
|
|
5480
5480
|
};
|
|
5481
|
-
return
|
|
5481
|
+
return le(() => e.visible, () => {
|
|
5482
5482
|
e.visible && (l.value = !0);
|
|
5483
5483
|
}, {
|
|
5484
5484
|
flush: "post"
|
|
@@ -5497,12 +5497,12 @@ const Ir = {
|
|
|
5497
5497
|
maskAnimation: f,
|
|
5498
5498
|
zIndex: $,
|
|
5499
5499
|
wrapClassName: C,
|
|
5500
|
-
rootClassName:
|
|
5500
|
+
rootClassName: A,
|
|
5501
5501
|
wrapStyle: I,
|
|
5502
5502
|
closable: T,
|
|
5503
5503
|
maskProps: R,
|
|
5504
5504
|
maskStyle: j,
|
|
5505
|
-
transitionName:
|
|
5505
|
+
transitionName: P,
|
|
5506
5506
|
animation: B,
|
|
5507
5507
|
wrapProps: z,
|
|
5508
5508
|
title: L = r.title
|
|
@@ -5511,7 +5511,7 @@ const Ir = {
|
|
|
5511
5511
|
class: _
|
|
5512
5512
|
} = n;
|
|
5513
5513
|
return w("div", N({
|
|
5514
|
-
class: [`${x}-root`,
|
|
5514
|
+
class: [`${x}-root`, A]
|
|
5515
5515
|
}, ri(e, {
|
|
5516
5516
|
data: !0
|
|
5517
5517
|
})), [w(fd, {
|
|
@@ -5547,7 +5547,7 @@ const Ir = {
|
|
|
5547
5547
|
visible: c,
|
|
5548
5548
|
onClose: s,
|
|
5549
5549
|
onVisibleChanged: h,
|
|
5550
|
-
motionName: Or(x,
|
|
5550
|
+
motionName: Or(x, P, B)
|
|
5551
5551
|
}), r)])]);
|
|
5552
5552
|
};
|
|
5553
5553
|
}
|
|
@@ -5568,7 +5568,7 @@ const Ir = {
|
|
|
5568
5568
|
const a = te(e.visible);
|
|
5569
5569
|
return Mo({}, {
|
|
5570
5570
|
inTriggerContext: !1
|
|
5571
|
-
}),
|
|
5571
|
+
}), le(() => e.visible, () => {
|
|
5572
5572
|
e.visible && (a.value = !0);
|
|
5573
5573
|
}, {
|
|
5574
5574
|
flush: "post"
|
|
@@ -5695,7 +5695,7 @@ const gd = (e) => {
|
|
|
5695
5695
|
},
|
|
5696
5696
|
// ======================== Modal ========================
|
|
5697
5697
|
{
|
|
5698
|
-
[t]: S(S({},
|
|
5698
|
+
[t]: S(S({}, Ae(e)), {
|
|
5699
5699
|
pointerEvents: "none",
|
|
5700
5700
|
position: "relative",
|
|
5701
5701
|
top: 100,
|
|
@@ -6077,7 +6077,7 @@ const wd = () => ({
|
|
|
6077
6077
|
direction: u,
|
|
6078
6078
|
getPopupContainer: h
|
|
6079
6079
|
} = me("modal", e), [s, p] = xd(i);
|
|
6080
|
-
|
|
6080
|
+
Pe(e.visible === void 0, "Modal", "`visible` will be removed in next major version, please use `open` instead.");
|
|
6081
6081
|
const m = (y) => {
|
|
6082
6082
|
n("update:visible", !1), n("update:open", !1), n("cancel", y), n("change", !1);
|
|
6083
6083
|
}, v = (y) => {
|
|
@@ -6111,7 +6111,7 @@ const wd = () => ({
|
|
|
6111
6111
|
centered: f,
|
|
6112
6112
|
getContainer: $,
|
|
6113
6113
|
closeIcon: C = (y = r.closeIcon) === null || y === void 0 ? void 0 : y.call(r),
|
|
6114
|
-
focusTriggerAfterClose:
|
|
6114
|
+
focusTriggerAfterClose: A = !0
|
|
6115
6115
|
} = e, I = Cd(e, ["prefixCls", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]), T = K(d, {
|
|
6116
6116
|
[`${i.value}-centered`]: !!f,
|
|
6117
6117
|
[`${i.value}-wrap-rtl`]: u.value === "rtl"
|
|
@@ -6124,7 +6124,7 @@ const wd = () => ({
|
|
|
6124
6124
|
wrapClassName: T,
|
|
6125
6125
|
visible: c ?? O,
|
|
6126
6126
|
onClose: m,
|
|
6127
|
-
focusTriggerAfterClose:
|
|
6127
|
+
focusTriggerAfterClose: A,
|
|
6128
6128
|
transitionName: vt(l.value, "zoom", e.transitionName),
|
|
6129
6129
|
maskTransitionName: vt(l.value, "fade", e.maskTransitionName),
|
|
6130
6130
|
mousePosition: (b = I.mousePosition) !== null && b !== void 0 ? b : en
|
|
@@ -6239,7 +6239,7 @@ const Na = Y({
|
|
|
6239
6239
|
attrs: n
|
|
6240
6240
|
} = t;
|
|
6241
6241
|
const [r] = wt("Modal");
|
|
6242
|
-
return process.env.NODE_ENV !== "production" &&
|
|
6242
|
+
return process.env.NODE_ENV !== "production" && Pe(e.visible === void 0, "Modal", "`visible` is deprecated, please use `open` instead."), () => {
|
|
6243
6243
|
const {
|
|
6244
6244
|
icon: a,
|
|
6245
6245
|
onCancel: o,
|
|
@@ -6261,12 +6261,12 @@ const Na = Y({
|
|
|
6261
6261
|
maskClosable: f = !1,
|
|
6262
6262
|
type: $,
|
|
6263
6263
|
open: C,
|
|
6264
|
-
title:
|
|
6264
|
+
title: A,
|
|
6265
6265
|
content: I,
|
|
6266
6266
|
direction: T,
|
|
6267
6267
|
closeIcon: R,
|
|
6268
6268
|
modalRender: j,
|
|
6269
|
-
focusTriggerAfterClose:
|
|
6269
|
+
focusTriggerAfterClose: P,
|
|
6270
6270
|
rootPrefixCls: B,
|
|
6271
6271
|
bodyStyle: z,
|
|
6272
6272
|
wrapClassName: L,
|
|
@@ -6326,15 +6326,15 @@ const Na = Y({
|
|
|
6326
6326
|
closable: h,
|
|
6327
6327
|
closeIcon: R,
|
|
6328
6328
|
modalRender: j,
|
|
6329
|
-
focusTriggerAfterClose:
|
|
6329
|
+
focusTriggerAfterClose: P
|
|
6330
6330
|
}, {
|
|
6331
6331
|
default: () => [w("div", {
|
|
6332
6332
|
class: `${k}-body-wrapper`
|
|
6333
6333
|
}, [w("div", {
|
|
6334
6334
|
class: `${k}-body`
|
|
6335
|
-
}, [Be(_),
|
|
6335
|
+
}, [Be(_), A === void 0 ? null : w("span", {
|
|
6336
6336
|
class: `${k}-title`
|
|
6337
|
-
}, [Be(
|
|
6337
|
+
}, [Be(A)]), w("div", {
|
|
6338
6338
|
class: `${k}-content`
|
|
6339
6339
|
}, [Be(I)])]), F !== void 0 ? Be(F) : w("div", {
|
|
6340
6340
|
class: `${k}-btns`
|
|
@@ -6431,15 +6431,15 @@ function Da(e) {
|
|
|
6431
6431
|
type: "confirm"
|
|
6432
6432
|
});
|
|
6433
6433
|
}
|
|
6434
|
-
const
|
|
6434
|
+
const Ad = () => ({
|
|
6435
6435
|
config: Object,
|
|
6436
6436
|
afterClose: Function,
|
|
6437
6437
|
destroyAction: Function,
|
|
6438
6438
|
open: Boolean
|
|
6439
|
-
}),
|
|
6439
|
+
}), Pd = Y({
|
|
6440
6440
|
name: "HookModal",
|
|
6441
6441
|
inheritAttrs: !1,
|
|
6442
|
-
props: De(
|
|
6442
|
+
props: De(Ad(), {
|
|
6443
6443
|
config: {
|
|
6444
6444
|
width: 520,
|
|
6445
6445
|
okType: "primary"
|
|
@@ -6494,7 +6494,7 @@ const Id = Y({
|
|
|
6494
6494
|
});
|
|
6495
6495
|
function Fd() {
|
|
6496
6496
|
const e = V(null), t = V([]);
|
|
6497
|
-
|
|
6497
|
+
le(t, () => {
|
|
6498
6498
|
t.value.length && ([...t.value].forEach((i) => {
|
|
6499
6499
|
i();
|
|
6500
6500
|
}), t.value = []);
|
|
@@ -6505,7 +6505,7 @@ function Fd() {
|
|
|
6505
6505
|
var u;
|
|
6506
6506
|
_r += 1;
|
|
6507
6507
|
const h = V(!0), s = V(null), p = V(G(l)), m = V({});
|
|
6508
|
-
|
|
6508
|
+
le(() => l, (c) => {
|
|
6509
6509
|
b(S(S({}, Ga(c) ? c.value : c), m.value));
|
|
6510
6510
|
});
|
|
6511
6511
|
const v = function() {
|
|
@@ -6517,7 +6517,7 @@ function Fd() {
|
|
|
6517
6517
|
}, ...d.slice(1));
|
|
6518
6518
|
};
|
|
6519
6519
|
let g;
|
|
6520
|
-
const y = () => w(
|
|
6520
|
+
const y = () => w(Pd, {
|
|
6521
6521
|
key: `modal-${_r}`,
|
|
6522
6522
|
config: o(p.value),
|
|
6523
6523
|
ref: s,
|
|
@@ -6592,10 +6592,10 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6592
6592
|
wrapClassName: "yqg-permission-modal-wrap",
|
|
6593
6593
|
icon: w(fn, { style: "color: #52c41a;" }),
|
|
6594
6594
|
onOk: () => {
|
|
6595
|
-
window.open(o), u.destroy(), i
|
|
6595
|
+
window.open(o), u.destroy(), i && i(), window.YQG_PERMISSION_CALLBACK && window.YQG_PERMISSION_CALLBACK(), !window.YQG_PERMISSION_CALLBACK && !i && location.reload();
|
|
6596
6596
|
},
|
|
6597
6597
|
onCancel: () => {
|
|
6598
|
-
u.destroy(), i
|
|
6598
|
+
u.destroy(), i && i(), window.YQG_PERMISSION_CALLBACK && window.YQG_PERMISSION_CALLBACK(), !window.YQG_PERMISSION_CALLBACK && !i && location.reload();
|
|
6599
6599
|
}
|
|
6600
6600
|
}), h = setInterval(() => {
|
|
6601
6601
|
l -= 1, u.update({
|
|
@@ -6675,10 +6675,10 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6675
6675
|
},
|
|
6676
6676
|
modelModifiers: {}
|
|
6677
6677
|
}),
|
|
6678
|
-
emits: /* @__PURE__ */ _n(["onSuccess"], ["update:modelValue"]),
|
|
6678
|
+
emits: /* @__PURE__ */ _n(["onSubmit", "onSuccess"], ["update:modelValue"]),
|
|
6679
6679
|
setup(e, { emit: t }) {
|
|
6680
6680
|
const n = Ua(
|
|
6681
|
-
() => import("./checkbox-item-
|
|
6681
|
+
() => import("./checkbox-item-DbnsBPLJ.js")
|
|
6682
6682
|
), r = [
|
|
6683
6683
|
re("applyReason1"),
|
|
6684
6684
|
re("applyReason2"),
|
|
@@ -6702,7 +6702,7 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6702
6702
|
const c = x();
|
|
6703
6703
|
let d = await Vn.submitApply(c);
|
|
6704
6704
|
const f = ($ = d == null ? void 0 : d.body) == null ? void 0 : $.oaFlowUrl;
|
|
6705
|
-
i.value = !1, l.value = !1, (C = p.value) == null || C.countDown(f, () => o("onSuccess"));
|
|
6705
|
+
i.value = !1, l.value = !1, o("onSubmit"), (C = p.value) == null || C.countDown(f, () => o("onSuccess"));
|
|
6706
6706
|
});
|
|
6707
6707
|
}, x = () => (g.roleVoList = g.roleIds.map((c) => {
|
|
6708
6708
|
var d;
|
|
@@ -6713,7 +6713,7 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6713
6713
|
}), g), O = Ko(async () => {
|
|
6714
6714
|
var f;
|
|
6715
6715
|
if (g.roleIds.length > 5)
|
|
6716
|
-
return
|
|
6716
|
+
return;
|
|
6717
6717
|
if (!g.roleIds.length) {
|
|
6718
6718
|
v.value = [];
|
|
6719
6719
|
return;
|
|
@@ -6722,7 +6722,9 @@ const Td = /* @__PURE__ */ Y({
|
|
|
6722
6722
|
let d = await Vn.getFlowPreview(c);
|
|
6723
6723
|
v.value = ((f = d == null ? void 0 : d.body) == null ? void 0 : f.nodes) || [];
|
|
6724
6724
|
}, 0);
|
|
6725
|
-
return
|
|
6725
|
+
return le(() => g.roleIds, (c) => {
|
|
6726
|
+
c.length > 5 && (g.roleIds.pop(), qn.warning(re("maxCountTips", { count: 5 })));
|
|
6727
|
+
}), le(() => i.value, (c) => {
|
|
6726
6728
|
var d;
|
|
6727
6729
|
c && ((d = m.value) == null || d.resetFields(), v.value = []);
|
|
6728
6730
|
}), (c, d) => (ve(), mt(G(ue), {
|