@fox-js/foxui-pc 4.0.1-88 → 4.0.1-90
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.cjs.js +2 -2
- package/dist/index.esm.js +571 -569
- package/dist/index.umd.js +2 -2
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ElAffix as Ag, ElAlert as Ig, ElAside as Vg, ElAutoResizer as Pg, ElAut
|
|
|
5
5
|
import { ArrowLeft as wr, ArrowUp as un, Download as Mo, RefreshLeft as _o, Setting as Bo, Close as Sr, ArrowRight as Ho } from "@element-plus/icons-vue";
|
|
6
6
|
import { useFoxI18n as Je } from "@fox-js/i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Nov 02 2023 10:30:13 GMT+0800 (中国标准时间)
|
|
9
9
|
*/
|
|
10
10
|
const zt = window, jo = typeof window < "u";
|
|
11
11
|
function Ko() {
|
|
@@ -2800,7 +2800,7 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2800
2800
|
const x = {};
|
|
2801
2801
|
return u.value.safeAreaTop !== null && u.value.safeAreaTop !== void 0 && (x.top = `${u.value.safeAreaTop}px`), x;
|
|
2802
2802
|
}), g = b(() => !!r.leftShow), w = b(() => !(u.value.height !== null && u.value.height !== void 0 && u.value.height <= 0)), T = b(() => r.titleShow ? r.title || r.titleIcon || a.slots.titleIcon || a.slots.default : !1), P = b(() => r.rightShow ? r.rightText || r.rightIcon || a.slots.rightIcon || a.slots.right : !1), A = b(() => r.leftIcon), E = b(() => A.value || a.slots.leftIcon), C = b(() => r.titleIcon), R = b(() => r.titleIcon || a.slots.titleIcon), N = b(() => r.rightIcon), F = b(() => r.rightIcon || a.slots.rightIcon);
|
|
2803
|
-
function
|
|
2803
|
+
function K() {
|
|
2804
2804
|
a.emit("back");
|
|
2805
2805
|
}
|
|
2806
2806
|
function Y() {
|
|
@@ -2828,7 +2828,7 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2828
2828
|
hasTitleIcon: R,
|
|
2829
2829
|
mRightIcon: N,
|
|
2830
2830
|
hasRightIcon: F,
|
|
2831
|
-
handleLeft:
|
|
2831
|
+
handleLeft: K,
|
|
2832
2832
|
handleCenter: Y,
|
|
2833
2833
|
handleRight: v,
|
|
2834
2834
|
handleRightText: $
|
|
@@ -3251,22 +3251,22 @@ function fi(e, t, l) {
|
|
|
3251
3251
|
const a = Pr(n.name, n, Or), o = ai(a, { type: n.type }), s = fn();
|
|
3252
3252
|
dn(!0);
|
|
3253
3253
|
const i = n.rollingDisplay ? si() : null, c = D(null), u = b(() => n.rollingDisplay ? i && !i.disabled : !1), f = b(() => s && a ? hn(a, !0).value : null), p = Le(), S = (B, V = !1) => {
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3254
|
+
const M = p?.proxy;
|
|
3255
|
+
M && typeof M.setNameValidateRules == "function" && M.setNameValidateRules(B, !0, V);
|
|
3256
3256
|
};
|
|
3257
3257
|
ie(
|
|
3258
3258
|
[() => n.rules, () => n.pureDataRules],
|
|
3259
|
-
([B, V], [
|
|
3260
|
-
if (B &&
|
|
3261
|
-
const
|
|
3262
|
-
(
|
|
3263
|
-
|
|
3259
|
+
([B, V], [M, I]) => {
|
|
3260
|
+
if (B && M) {
|
|
3261
|
+
const q = me(M), z = me(B), Q = z ? Reflect.ownKeys(z) : [];
|
|
3262
|
+
(q ? Reflect.ownKeys(q) : []).forEach((re) => {
|
|
3263
|
+
Q.includes(re) || (z[re] = []);
|
|
3264
3264
|
}), S(z);
|
|
3265
3265
|
}
|
|
3266
3266
|
if (V && I) {
|
|
3267
|
-
const
|
|
3268
|
-
(
|
|
3269
|
-
|
|
3267
|
+
const q = me(I), z = me(V), Q = z ? Reflect.ownKeys(z) : [];
|
|
3268
|
+
(q ? Reflect.ownKeys(q) : []).forEach((re) => {
|
|
3269
|
+
Q.includes(re) || (z[re] = []);
|
|
3270
3270
|
}), S(z, !0);
|
|
3271
3271
|
}
|
|
3272
3272
|
},
|
|
@@ -3278,15 +3278,15 @@ function fi(e, t, l) {
|
|
|
3278
3278
|
const V = s ? gn(a, !0) : null;
|
|
3279
3279
|
if (f.value && V) {
|
|
3280
3280
|
if (f.value.type === "grid") {
|
|
3281
|
-
const
|
|
3282
|
-
Object.assign(B,
|
|
3281
|
+
const M = pn(V, f.value, n.span, n.offset);
|
|
3282
|
+
Object.assign(B, M);
|
|
3283
3283
|
} else if (f.value.type === "flow") {
|
|
3284
|
-
const
|
|
3285
|
-
Object.assign(B,
|
|
3284
|
+
const M = mn(V, f.value, n.span, n.offset, n.width);
|
|
3285
|
+
Object.assign(B, M);
|
|
3286
3286
|
}
|
|
3287
3287
|
} else if (n.width) {
|
|
3288
|
-
const
|
|
3289
|
-
B.width =
|
|
3288
|
+
const M = Ie(n.width);
|
|
3289
|
+
B.width = M;
|
|
3290
3290
|
}
|
|
3291
3291
|
return B;
|
|
3292
3292
|
}), m = b(() => {
|
|
@@ -3303,12 +3303,12 @@ function fi(e, t, l) {
|
|
|
3303
3303
|
if (n.columnWidth)
|
|
3304
3304
|
V = `repeat(auto-fill, ${n.columnWidth})`;
|
|
3305
3305
|
else {
|
|
3306
|
-
const
|
|
3306
|
+
const M = ui(
|
|
3307
3307
|
N.value,
|
|
3308
3308
|
o.layout.value.column,
|
|
3309
3309
|
o.layout.value.gutter
|
|
3310
3310
|
);
|
|
3311
|
-
V = `repeat(${o.layout.value.column}, ${
|
|
3311
|
+
V = `repeat(${o.layout.value.column}, ${M})`;
|
|
3312
3312
|
}
|
|
3313
3313
|
return {
|
|
3314
3314
|
"column-gap": `${o.layout.value.gutter}px`,
|
|
@@ -3333,36 +3333,36 @@ function fi(e, t, l) {
|
|
|
3333
3333
|
n.minItemWidth,
|
|
3334
3334
|
n.maxItemWidth,
|
|
3335
3335
|
n.type
|
|
3336
|
-
), n.autoLayout && ie([N, P, T], ([B, V,
|
|
3337
|
-
o.order.index = 0, $n(a, B, V,
|
|
3336
|
+
), n.autoLayout && ie([N, P, T], ([B, V, M]) => {
|
|
3337
|
+
o.order.index = 0, $n(a, B, V, M, !1, n.minItemWidth, n.maxItemWidth, n.type);
|
|
3338
3338
|
});
|
|
3339
|
-
const
|
|
3339
|
+
const K = b(() => O.value ? n.expandText ?? "" : n.collapseText ?? ""), Y = b(() => ({
|
|
3340
3340
|
[`${e}__header-collapse-text`]: !0
|
|
3341
3341
|
})), v = b(() => ({
|
|
3342
3342
|
[`${e}__header-collapse-icon`]: !0,
|
|
3343
|
-
"is-expand": !
|
|
3344
|
-
"is-collapse":
|
|
3345
|
-
})), $ = D(), x = D(), H = b(() => _.value || Ie(n.height) || ""),
|
|
3346
|
-
let
|
|
3343
|
+
"is-expand": !O.value,
|
|
3344
|
+
"is-collapse": O.value
|
|
3345
|
+
})), $ = D(), x = D(), H = b(() => _.value || Ie(n.height) || ""), O = D(!1), _ = D(""), y = D(!1);
|
|
3346
|
+
let L = -1;
|
|
3347
3347
|
const G = (B, V = !0) => {
|
|
3348
|
-
const
|
|
3349
|
-
if (
|
|
3350
|
-
if (
|
|
3351
|
-
if (
|
|
3352
|
-
|
|
3348
|
+
const M = $.value;
|
|
3349
|
+
if (M && O.value !== B) {
|
|
3350
|
+
if (L = L === -1 ? ii(M) : L, y.value = !0, V)
|
|
3351
|
+
if (M.style["will-change"] = "height", M.ontransitionend = function() {
|
|
3352
|
+
M.ontransitionend = null, this.style["will-change"] = "auto", B || (_.value = "", y.value = !1);
|
|
3353
3353
|
}, B) {
|
|
3354
3354
|
let I = 0;
|
|
3355
|
-
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight), _.value = `${
|
|
3355
|
+
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight), _.value = `${L}px`, yt(() => {
|
|
3356
3356
|
_.value = `${I}px`;
|
|
3357
3357
|
});
|
|
3358
3358
|
} else
|
|
3359
|
-
_.value = `${
|
|
3359
|
+
_.value = `${L}px`;
|
|
3360
3360
|
else if (B) {
|
|
3361
3361
|
let I = 0;
|
|
3362
3362
|
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight), _.value = `${I}px`;
|
|
3363
3363
|
} else
|
|
3364
|
-
y.value = !1, _.value = `${
|
|
3365
|
-
|
|
3364
|
+
y.value = !1, _.value = `${L}px`;
|
|
3365
|
+
O.value = B, r.emit("update:collapse", B);
|
|
3366
3366
|
}
|
|
3367
3367
|
};
|
|
3368
3368
|
ie(
|
|
@@ -3374,7 +3374,7 @@ function fi(e, t, l) {
|
|
|
3374
3374
|
const U = () => {
|
|
3375
3375
|
ee();
|
|
3376
3376
|
}, ee = (B) => {
|
|
3377
|
-
B = B ?? !
|
|
3377
|
+
B = B ?? !O.value, G(B);
|
|
3378
3378
|
};
|
|
3379
3379
|
Re({
|
|
3380
3380
|
// 设置是否收缩或展开
|
|
@@ -3394,7 +3394,7 @@ function fi(e, t, l) {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
let ce = null, ge = !0;
|
|
3397
|
-
const
|
|
3397
|
+
const k = (B) => {
|
|
3398
3398
|
if (n.rules) {
|
|
3399
3399
|
const V = me(n.rules);
|
|
3400
3400
|
S(V);
|
|
@@ -3409,42 +3409,42 @@ function fi(e, t, l) {
|
|
|
3409
3409
|
F(V);
|
|
3410
3410
|
}), ce.observe(V));
|
|
3411
3411
|
}
|
|
3412
|
-
},
|
|
3412
|
+
}, J = () => {
|
|
3413
3413
|
ce?.disconnect(), ce = null;
|
|
3414
|
-
},
|
|
3415
|
-
|
|
3416
|
-
if (
|
|
3414
|
+
}, j = !u.value || i?.acquire();
|
|
3415
|
+
j && (c.value = u.value ? !0 : null), _e(() => {
|
|
3416
|
+
if (j && (k(ge), ge = !1), u.value && i) {
|
|
3417
3417
|
let B = null, V = i.initialHeight;
|
|
3418
|
-
i.observe($.value, (
|
|
3419
|
-
if (
|
|
3420
|
-
if (
|
|
3421
|
-
c.value = !0,
|
|
3422
|
-
B = null, c.value !== !1 && (
|
|
3418
|
+
i.observe($.value, (M) => {
|
|
3419
|
+
if (M !== c.value)
|
|
3420
|
+
if (M)
|
|
3421
|
+
c.value = !0, O.value || (_.value = ""), B = setTimeout(() => {
|
|
3422
|
+
B = null, c.value !== !1 && (k(ge), ge = !1);
|
|
3423
3423
|
}, 100);
|
|
3424
3424
|
else {
|
|
3425
|
-
if (B !== null && clearTimeout(B), c.value = !1, !
|
|
3425
|
+
if (B !== null && clearTimeout(B), c.value = !1, !O.value)
|
|
3426
3426
|
if (ge)
|
|
3427
3427
|
_.value = i.initialHeight;
|
|
3428
3428
|
else {
|
|
3429
3429
|
let I = Ln($.value);
|
|
3430
3430
|
I <= 0 ? _.value = V : (_.value = `${I}px`, V = _.value);
|
|
3431
3431
|
}
|
|
3432
|
-
ge ||
|
|
3432
|
+
ge || J();
|
|
3433
3433
|
}
|
|
3434
3434
|
});
|
|
3435
3435
|
}
|
|
3436
3436
|
}), Ze(() => {
|
|
3437
3437
|
ce?.disconnect(), i && i.unobserve($.value);
|
|
3438
3438
|
});
|
|
3439
|
-
const X = (B, V,
|
|
3440
|
-
const
|
|
3441
|
-
return V === 0 && (
|
|
3439
|
+
const X = (B, V, M, I) => {
|
|
3440
|
+
const q = { ...m.value };
|
|
3441
|
+
return V === 0 && (q[`${h}__first`] = !0), M >= I - 1 && (q[`${h}__last`] = !0), W("div", { ref: C, key: `${V}`, class: q, style: g.value }, B);
|
|
3442
3442
|
};
|
|
3443
3443
|
return () => {
|
|
3444
3444
|
if (u.value && c.value !== !0) {
|
|
3445
|
-
const
|
|
3445
|
+
const q = n.tag || "div";
|
|
3446
3446
|
return W(
|
|
3447
|
-
|
|
3447
|
+
q,
|
|
3448
3448
|
{
|
|
3449
3449
|
ref: $,
|
|
3450
3450
|
prop: n.name,
|
|
@@ -3458,74 +3458,74 @@ function fi(e, t, l) {
|
|
|
3458
3458
|
const B = [];
|
|
3459
3459
|
let V = 0;
|
|
3460
3460
|
if (r.slots.header) {
|
|
3461
|
-
const
|
|
3461
|
+
const q = {
|
|
3462
3462
|
key: `${V++}`,
|
|
3463
3463
|
ref: x,
|
|
3464
3464
|
class: { [`${h}__header`]: !0, [`${h}__first`]: !0 }
|
|
3465
|
-
}, z = W("div",
|
|
3465
|
+
}, z = W("div", q, [r.slots.header()]);
|
|
3466
3466
|
B.push(z);
|
|
3467
3467
|
} else {
|
|
3468
|
-
const
|
|
3468
|
+
const q = [];
|
|
3469
3469
|
if (w.value) {
|
|
3470
3470
|
if (n.showMark) {
|
|
3471
|
-
const
|
|
3471
|
+
const Q = {
|
|
3472
3472
|
class: { [`${h}__header-mark`]: !0 }
|
|
3473
3473
|
};
|
|
3474
|
-
n.markColor && (
|
|
3474
|
+
n.markColor && (Q.style = {
|
|
3475
3475
|
background: n.markColor
|
|
3476
3476
|
});
|
|
3477
|
-
const fe = W("div",
|
|
3478
|
-
|
|
3477
|
+
const fe = W("div", Q);
|
|
3478
|
+
q.push(fe);
|
|
3479
3479
|
}
|
|
3480
3480
|
const z = W("div", { class: { [`${h}__header-title`]: !0 } }, [w.value]);
|
|
3481
|
-
|
|
3481
|
+
q.push(z);
|
|
3482
3482
|
}
|
|
3483
|
-
if (r.slots.toolbar &&
|
|
3483
|
+
if (r.slots.toolbar && q.push(r.slots.toolbar()), n.showCollapse) {
|
|
3484
3484
|
const z = [];
|
|
3485
|
-
if (
|
|
3485
|
+
if (K.value) {
|
|
3486
3486
|
const re = {
|
|
3487
3487
|
class: Y.value
|
|
3488
|
-
}, Ke = W("span", re, [
|
|
3488
|
+
}, Ke = W("span", re, [K.value]);
|
|
3489
3489
|
z.push(Ke);
|
|
3490
3490
|
}
|
|
3491
|
-
const
|
|
3491
|
+
const Q = {
|
|
3492
3492
|
class: v.value
|
|
3493
|
-
}, fe = l(n.collapseIcon,
|
|
3493
|
+
}, fe = l(n.collapseIcon, Q);
|
|
3494
3494
|
if (fe && z.push(fe), z.length > 0) {
|
|
3495
3495
|
const re = W(
|
|
3496
3496
|
"div",
|
|
3497
3497
|
{ class: { [`${h}__header-collapse`]: !0 }, onClick: U },
|
|
3498
3498
|
z
|
|
3499
3499
|
);
|
|
3500
|
-
|
|
3500
|
+
q.push(re);
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
if (
|
|
3503
|
+
if (q.length > 0) {
|
|
3504
3504
|
const z = {
|
|
3505
3505
|
key: `${V++}`,
|
|
3506
3506
|
ref: x,
|
|
3507
3507
|
class: { [`${h}__header`]: !0, [`${h}__first`]: !0 }
|
|
3508
|
-
},
|
|
3509
|
-
B.push(
|
|
3508
|
+
}, Q = W("div", z, q);
|
|
3509
|
+
B.push(Q);
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
R();
|
|
3513
|
-
const
|
|
3513
|
+
const M = r.slots.default ? r.slots.default() : [], I = o.layout.value.type;
|
|
3514
3514
|
if (I === "grid") {
|
|
3515
|
-
const
|
|
3516
|
-
B.push(
|
|
3515
|
+
const q = X(M, V++, 0, M.length);
|
|
3516
|
+
B.push(q);
|
|
3517
3517
|
} else if (I === "flow") {
|
|
3518
|
-
const
|
|
3519
|
-
B.push(
|
|
3518
|
+
const q = X(M, V++, 0, M.length);
|
|
3519
|
+
B.push(q);
|
|
3520
3520
|
} else
|
|
3521
|
-
for (let
|
|
3522
|
-
const z = q
|
|
3523
|
-
B.push(
|
|
3521
|
+
for (let q = 0; q < M.length; q++) {
|
|
3522
|
+
const z = M[q], Q = X([z], V++, q, M.length);
|
|
3523
|
+
B.push(Q);
|
|
3524
3524
|
}
|
|
3525
3525
|
if (A.value) {
|
|
3526
|
-
const
|
|
3526
|
+
const q = n.tag || "div";
|
|
3527
3527
|
return W(
|
|
3528
|
-
|
|
3528
|
+
q,
|
|
3529
3529
|
{
|
|
3530
3530
|
ref: $,
|
|
3531
3531
|
prop: n.name,
|
|
@@ -3825,8 +3825,8 @@ const jr = /* @__PURE__ */ We(Ei, [["render", Ai]]), { componentName: Gt, create
|
|
|
3825
3825
|
if (!Kt || N === !1 || !R)
|
|
3826
3826
|
return;
|
|
3827
3827
|
a.value = !0;
|
|
3828
|
-
const
|
|
3829
|
-
i.value =
|
|
3828
|
+
const K = Br(e.reference);
|
|
3829
|
+
i.value = K.width, c.value = K.height, setTimeout(() => {
|
|
3830
3830
|
if (!p.value || !e.reference || e.reference.offsetParent === null)
|
|
3831
3831
|
return;
|
|
3832
3832
|
const Y = bi(e.reference), v = document.documentElement.clientWidth || document.body.clientWidth, $ = p.value.offsetWidth, x = p.value.offsetHeight;
|
|
@@ -4014,38 +4014,38 @@ const Mn = {}, Fi = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4014
4014
|
const n = ct(), r = fn();
|
|
4015
4015
|
dn(!1);
|
|
4016
4016
|
const a = b(() => r && n ? hn(n, !1).value : null), o = xl, s = D(null), i = b(() => {
|
|
4017
|
-
const
|
|
4017
|
+
const k = {
|
|
4018
4018
|
[o]: !0,
|
|
4019
4019
|
[`${o}__gutter`]: a.value && a.value.type !== "flow",
|
|
4020
4020
|
[`${o}__stretch`]: e.span === "stretch",
|
|
4021
4021
|
[`${o}__input--border`]: e.hasBorder
|
|
4022
4022
|
};
|
|
4023
|
-
if (
|
|
4024
|
-
const
|
|
4025
|
-
|
|
4023
|
+
if (k[e.errorMarkClass] = !!K.value, k[e.warnMarkClass] = !!N.value, k[e.infoMarkClass] = !!C.value, typeof s.value == "function") {
|
|
4024
|
+
const J = s.value(l);
|
|
4025
|
+
k[J] = !0;
|
|
4026
4026
|
} else if (typeof s.value == "string") {
|
|
4027
|
-
const
|
|
4028
|
-
|
|
4027
|
+
const J = s.value;
|
|
4028
|
+
k[J] = !0;
|
|
4029
4029
|
}
|
|
4030
|
-
return
|
|
4030
|
+
return k;
|
|
4031
4031
|
}), c = b(() => {
|
|
4032
|
-
const
|
|
4033
|
-
if (a.value &&
|
|
4032
|
+
const k = {}, J = r && n ? gn(n, !1) : null;
|
|
4033
|
+
if (a.value && J)
|
|
4034
4034
|
if (a.value.type === "grid") {
|
|
4035
|
-
const
|
|
4036
|
-
Object.assign(
|
|
4035
|
+
const j = pn(J, a.value, e.span, e.offset);
|
|
4036
|
+
Object.assign(k, j);
|
|
4037
4037
|
} else if (a.value.type === "flow") {
|
|
4038
|
-
const
|
|
4039
|
-
Object.assign(
|
|
4038
|
+
const j = mn(J, a.value, e.span, e.offset, e.width);
|
|
4039
|
+
Object.assign(k, j);
|
|
4040
4040
|
} else
|
|
4041
|
-
return e.width && (
|
|
4041
|
+
return e.width && (k.width = Ie(e.width)), k;
|
|
4042
4042
|
else
|
|
4043
|
-
e.width && (
|
|
4044
|
-
return
|
|
4043
|
+
e.width && (k.width = Ie(e.width));
|
|
4044
|
+
return k;
|
|
4045
4045
|
}), u = D(null), f = b({
|
|
4046
4046
|
get: () => u.value ?? le(e.isRequired),
|
|
4047
|
-
set: (
|
|
4048
|
-
u.value =
|
|
4047
|
+
set: (k) => {
|
|
4048
|
+
u.value = k;
|
|
4049
4049
|
}
|
|
4050
4050
|
}), p = b(() => typeof e.label == "string" && e.label.length > 0 || typeof t.slots.label == "function"), S = je($t(e, "labelPosition"), "labelPosition", Ue.Near), h = b(() => S && S.value === "top" ? "top" : S && S.value === "right" ? "right" : "left"), d = b(() => ({
|
|
4051
4051
|
[`${o}__main`]: !0,
|
|
@@ -4073,75 +4073,75 @@ const Mn = {}, Fi = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4073
4073
|
});
|
|
4074
4074
|
Re({
|
|
4075
4075
|
// 设置必输
|
|
4076
|
-
setRequired(
|
|
4077
|
-
f.value =
|
|
4076
|
+
setRequired(k) {
|
|
4077
|
+
f.value = k;
|
|
4078
4078
|
},
|
|
4079
4079
|
// 设置error tip
|
|
4080
|
-
setErrorTip(
|
|
4081
|
-
E.errorTip =
|
|
4080
|
+
setErrorTip(k) {
|
|
4081
|
+
E.errorTip = k;
|
|
4082
4082
|
},
|
|
4083
4083
|
// 设置error icon
|
|
4084
|
-
setErrorIcon(
|
|
4085
|
-
E.errorIcon =
|
|
4084
|
+
setErrorIcon(k) {
|
|
4085
|
+
E.errorIcon = k;
|
|
4086
4086
|
},
|
|
4087
4087
|
// 设置warn tip
|
|
4088
|
-
setWarnTip(
|
|
4089
|
-
E.warnTip =
|
|
4088
|
+
setWarnTip(k) {
|
|
4089
|
+
E.warnTip = k;
|
|
4090
4090
|
},
|
|
4091
4091
|
// 设置warn icon
|
|
4092
|
-
setWarnIcon(
|
|
4093
|
-
E.warnIcon =
|
|
4092
|
+
setWarnIcon(k) {
|
|
4093
|
+
E.warnIcon = k;
|
|
4094
4094
|
},
|
|
4095
4095
|
// 设置info tip
|
|
4096
|
-
setInfoTip(
|
|
4097
|
-
E.infoTip =
|
|
4096
|
+
setInfoTip(k) {
|
|
4097
|
+
E.infoTip = k;
|
|
4098
4098
|
},
|
|
4099
4099
|
// 设置info icon
|
|
4100
|
-
setInfoIcon(
|
|
4101
|
-
E.infoIcon =
|
|
4100
|
+
setInfoIcon(k) {
|
|
4101
|
+
E.infoIcon = k;
|
|
4102
4102
|
},
|
|
4103
4103
|
// 设置自定义class name
|
|
4104
|
-
setCustomClassName(
|
|
4105
|
-
s.value =
|
|
4104
|
+
setCustomClassName(k) {
|
|
4105
|
+
s.value = k;
|
|
4106
4106
|
}
|
|
4107
4107
|
});
|
|
4108
|
-
const C = b(() => e.infoTip || E.infoTip), R = b(() => e.infoIcon || E.infoIcon), N = b(() => e.warnTip || E.warnTip), F = b(() => e.warnIcon || E.warnIcon),
|
|
4109
|
-
let
|
|
4108
|
+
const C = b(() => e.infoTip || E.infoTip), R = b(() => e.infoIcon || E.infoIcon), N = b(() => e.warnTip || E.warnTip), F = b(() => e.warnIcon || E.warnIcon), K = b(() => e.errorTip || E.errorTip), Y = b(() => e.errorIcon || E.errorIcon), v = b(() => K.value ? "error" : N.value ? "warn" : C.value ? "info" : ""), $ = b(() => v.value.length > 0), x = b(() => v.value === "error" ? K.value : v.value === "warn" ? N.value : v.value === "info" ? C.value : ""), H = b(() => v.value === "error" ? Y.value : v.value === "warn" ? F.value : v.value === "info" ? R.value : null), O = b(() => {
|
|
4109
|
+
let k = {
|
|
4110
4110
|
[`${o}__tip`]: !0,
|
|
4111
4111
|
[`${o}__tip--${v.value}`]: !0
|
|
4112
4112
|
};
|
|
4113
|
-
return v.value === "error" && e.errorClass ?
|
|
4113
|
+
return v.value === "error" && e.errorClass ? k[`${e.errorClass}`] = !0 : v.value === "warn" && e.warnClass ? k[`${e.warnClass}`] = !0 : v.value === "info" && e.infoClass && (k[`${e.infoClass}`] = !0), k;
|
|
4114
4114
|
}), _ = b(() => {
|
|
4115
|
-
let
|
|
4116
|
-
return S && S.value === "top" || !p.value ?
|
|
4117
|
-
}), y = () => W(H.value, { width: 12, height: 12 }),
|
|
4115
|
+
let k = {};
|
|
4116
|
+
return S && S.value === "top" || !p.value ? k["padding-left"] = "0px" : g && g.value && (k["padding-left"] = Ie(g.value)), k;
|
|
4117
|
+
}), y = () => W(H.value, { width: 12, height: 12 }), L = b(() => t.slots.fixedTip), G = b(() => ({
|
|
4118
4118
|
[`${o}__fixed-tip`]: !0
|
|
4119
4119
|
})), U = D();
|
|
4120
4120
|
let ee = "";
|
|
4121
4121
|
ie(
|
|
4122
4122
|
[() => e.hintVisible, () => e.hintText, () => e.hintType, () => e.hintProps],
|
|
4123
|
-
([
|
|
4124
|
-
U.value && (
|
|
4123
|
+
([k, J, j, X]) => {
|
|
4124
|
+
U.value && (k && !$e(J) ? ee ? Qt.show(U.value, J, { ...X, id: ee, type: j }, !0) : ee = Qt.show(U.value, J, { ...X, type: j }, !0) : Qt.hide(ee));
|
|
4125
4125
|
}
|
|
4126
4126
|
);
|
|
4127
4127
|
let te = null;
|
|
4128
4128
|
const ce = () => {
|
|
4129
|
-
te || !U.value || (te = new IntersectionObserver((
|
|
4130
|
-
let
|
|
4131
|
-
for (let
|
|
4132
|
-
if (
|
|
4133
|
-
|
|
4129
|
+
te || !U.value || (te = new IntersectionObserver((k) => {
|
|
4130
|
+
let J = !1;
|
|
4131
|
+
for (let j of k)
|
|
4132
|
+
if (j.intersectionRatio > 0) {
|
|
4133
|
+
J = !0, J && t.emit("appear", j);
|
|
4134
4134
|
break;
|
|
4135
4135
|
}
|
|
4136
|
-
|
|
4136
|
+
J || t.emit("disappear");
|
|
4137
4137
|
}), te.observe(U.value));
|
|
4138
4138
|
}, ge = () => {
|
|
4139
4139
|
!te || !U.value || (te.unobserve(U.value), te = null);
|
|
4140
4140
|
};
|
|
4141
4141
|
return ie(
|
|
4142
4142
|
() => le(e.appearListen),
|
|
4143
|
-
(
|
|
4144
|
-
|
|
4143
|
+
(k) => {
|
|
4144
|
+
k ? ce() : ge();
|
|
4145
4145
|
}
|
|
4146
4146
|
), _e(() => {
|
|
4147
4147
|
le(e.appearListen) && ce();
|
|
@@ -4160,9 +4160,9 @@ const Mn = {}, Fi = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4160
4160
|
mTip: x,
|
|
4161
4161
|
mIcon: H,
|
|
4162
4162
|
renderIcon: y,
|
|
4163
|
-
tipClasses:
|
|
4163
|
+
tipClasses: O,
|
|
4164
4164
|
tipStyles: _,
|
|
4165
|
-
hasFixedTip:
|
|
4165
|
+
hasFixedTip: L,
|
|
4166
4166
|
fixedTipClasses: G
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
@@ -4467,7 +4467,7 @@ function Ji(e, t, l) {
|
|
|
4467
4467
|
}, 150));
|
|
4468
4468
|
}, R = () => {
|
|
4469
4469
|
E && (clearTimeout(E), A.value = !1, E = null);
|
|
4470
|
-
}, N = b(() => A.value || g.value), F = b(() => A.value ? f.value : m.value),
|
|
4470
|
+
}, N = b(() => A.value || g.value), F = b(() => A.value ? f.value : m.value), K = b(() => cn(n.unit) > 0), Y = D();
|
|
4471
4471
|
return Re({
|
|
4472
4472
|
//使 input 获取焦点
|
|
4473
4473
|
focus: () => {
|
|
@@ -4501,20 +4501,20 @@ function Ji(e, t, l) {
|
|
|
4501
4501
|
onMouseover: C,
|
|
4502
4502
|
onMouseleave: R
|
|
4503
4503
|
}, x = {};
|
|
4504
|
-
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix :
|
|
4505
|
-
const H = [],
|
|
4506
|
-
H.push(
|
|
4504
|
+
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix : K.value && (x.suffix = () => [n.unit]);
|
|
4505
|
+
const H = [], O = W(Wn, $, x);
|
|
4506
|
+
H.push(O);
|
|
4507
4507
|
const _ = {
|
|
4508
4508
|
default: () => H
|
|
4509
4509
|
};
|
|
4510
4510
|
r.slots.default && (_.label = r.slots.default), r.slots.default && (_.fixedTip = r.slots.fixedTip);
|
|
4511
|
-
const
|
|
4511
|
+
const L = {
|
|
4512
4512
|
...Me(n, wl),
|
|
4513
4513
|
hintText: F.value,
|
|
4514
4514
|
hintVisible: N.value,
|
|
4515
4515
|
prop: `${n.prop}_item`
|
|
4516
4516
|
};
|
|
4517
|
-
return W(l,
|
|
4517
|
+
return W(l, L, _);
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
@@ -4741,46 +4741,46 @@ function su(e, t, l) {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
},
|
|
4743
4743
|
n.prop ?? r.attrs.name
|
|
4744
|
-
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((X) => st(n, X)).join(" ") : ""), S = (
|
|
4745
|
-
const
|
|
4746
|
-
if (
|
|
4744
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((X) => st(n, X)).join(" ") : ""), S = (j, X, B, V = !0) => {
|
|
4745
|
+
const M = Wr(n, j, X, B);
|
|
4746
|
+
if (M === null) {
|
|
4747
4747
|
if (f.value === null || f.value.length === 0)
|
|
4748
4748
|
return;
|
|
4749
4749
|
u.value = null, f.value = [], V && (s("update:modelValue", null), s("update:text", null), s("change", null));
|
|
4750
4750
|
return;
|
|
4751
4751
|
}
|
|
4752
4752
|
let I = !0;
|
|
4753
|
-
if (
|
|
4753
|
+
if (M.length !== f.value.length)
|
|
4754
4754
|
I = !1;
|
|
4755
4755
|
else
|
|
4756
|
-
for (let
|
|
4757
|
-
const z = q
|
|
4758
|
-
if (!zr(n, z,
|
|
4756
|
+
for (let q = 0; q < M.length; q++) {
|
|
4757
|
+
const z = M[q], Q = f.value[q];
|
|
4758
|
+
if (!zr(n, z, Q)) {
|
|
4759
4759
|
I = !1;
|
|
4760
4760
|
break;
|
|
4761
4761
|
}
|
|
4762
4762
|
}
|
|
4763
4763
|
if (!I) {
|
|
4764
|
-
f.value =
|
|
4765
|
-
let
|
|
4766
|
-
|
|
4764
|
+
f.value = M;
|
|
4765
|
+
let q = [], z = [], Q = [];
|
|
4766
|
+
M.forEach((wt) => {
|
|
4767
4767
|
const Qe = Bt(n, wt), Rt = st(n, wt);
|
|
4768
|
-
|
|
4768
|
+
q.push(Qe), Q.push(Rt), n.valueType === "text" ? z.push(Rt) : n.valueType === "item" ? z.push(wt) : z.push(Qe);
|
|
4769
4769
|
});
|
|
4770
4770
|
let fe, re, Ke;
|
|
4771
|
-
n.multiple ? (u.value =
|
|
4771
|
+
n.multiple ? (u.value = q, fe = me(z), re = Q, Ke = me(M)) : (u.value = q[0] ?? "", fe = me(z[0] ?? ""), re = Q[0] ?? "", Ke = me(M[0])), V && (s("update:modelValue", fe), s("change", fe, Ke)), s("update:text", re);
|
|
4772
4772
|
}
|
|
4773
4773
|
}, h = D(null), d = D(null), m = b(() => d.value ?? h.value ?? []), g = je(
|
|
4774
4774
|
b(() => n.lazyLoad),
|
|
4775
4775
|
"lazyLoad",
|
|
4776
4776
|
Ue.Near,
|
|
4777
|
-
(
|
|
4778
|
-
), w = au(), T = async (
|
|
4779
|
-
if (
|
|
4780
|
-
const B = await w.load("select",
|
|
4777
|
+
(j) => le(j)
|
|
4778
|
+
), w = au(), T = async (j, X) => {
|
|
4779
|
+
if (j) {
|
|
4780
|
+
const B = await w.load("select", j, X);
|
|
4781
4781
|
if (B.length > 0)
|
|
4782
4782
|
if (typeof B[0] == "string") {
|
|
4783
|
-
let I = B.map((
|
|
4783
|
+
let I = B.map((q) => ou(q));
|
|
4784
4784
|
h.value = I;
|
|
4785
4785
|
} else
|
|
4786
4786
|
h.value = B;
|
|
@@ -4790,8 +4790,8 @@ function su(e, t, l) {
|
|
|
4790
4790
|
};
|
|
4791
4791
|
ie(
|
|
4792
4792
|
[() => n.source, () => n.params],
|
|
4793
|
-
([
|
|
4794
|
-
d.value = null, T(
|
|
4793
|
+
([j, X]) => {
|
|
4794
|
+
d.value = null, T(j, X);
|
|
4795
4795
|
},
|
|
4796
4796
|
{ immediate: !g.value }
|
|
4797
4797
|
);
|
|
@@ -4799,18 +4799,18 @@ function su(e, t, l) {
|
|
|
4799
4799
|
const A = () => {
|
|
4800
4800
|
P || (P = !0, T(n.source, n.params));
|
|
4801
4801
|
};
|
|
4802
|
-
ie([() => m.value, () => n.modelValue], ([
|
|
4803
|
-
S(X, n.valueType,
|
|
4802
|
+
ie([() => m.value, () => n.modelValue], ([j, X]) => {
|
|
4803
|
+
S(X, n.valueType, j, !1);
|
|
4804
4804
|
});
|
|
4805
4805
|
let E = null, C = D(!1);
|
|
4806
|
-
typeof n.remoteMethod == "function" && (E = async (
|
|
4807
|
-
if (
|
|
4806
|
+
typeof n.remoteMethod == "function" && (E = async (j) => {
|
|
4807
|
+
if (j == null) {
|
|
4808
4808
|
d.value = null;
|
|
4809
4809
|
return;
|
|
4810
4810
|
}
|
|
4811
4811
|
C.value = !0;
|
|
4812
4812
|
try {
|
|
4813
|
-
const X = await n.remoteMethod(
|
|
4813
|
+
const X = await n.remoteMethod(j);
|
|
4814
4814
|
X && (d.value = X);
|
|
4815
4815
|
} catch (X) {
|
|
4816
4816
|
d.value = null, console.error(X);
|
|
@@ -4818,94 +4818,94 @@ function su(e, t, l) {
|
|
|
4818
4818
|
C.value = !1;
|
|
4819
4819
|
});
|
|
4820
4820
|
let R = null;
|
|
4821
|
-
typeof n.filterMethod == "function" && (R = async (
|
|
4822
|
-
if (
|
|
4821
|
+
typeof n.filterMethod == "function" && (R = async (j) => {
|
|
4822
|
+
if (j == null) {
|
|
4823
4823
|
d.value = null;
|
|
4824
4824
|
return;
|
|
4825
4825
|
}
|
|
4826
4826
|
C.value = !0;
|
|
4827
4827
|
try {
|
|
4828
|
-
const X = await n.filterMethod(
|
|
4828
|
+
const X = await n.filterMethod(j, h.value);
|
|
4829
4829
|
X && (d.value = X);
|
|
4830
4830
|
} catch (X) {
|
|
4831
4831
|
d.value = null, console.error(X);
|
|
4832
4832
|
}
|
|
4833
4833
|
C.value = !1;
|
|
4834
4834
|
});
|
|
4835
|
-
const N = D(!1), F = e,
|
|
4835
|
+
const N = D(!1), F = e, K = b(() => ({
|
|
4836
4836
|
[F]: !0
|
|
4837
|
-
})), Y = (
|
|
4838
|
-
n.allowCreate ? (s("update:modelValue",
|
|
4837
|
+
})), Y = (j) => {
|
|
4838
|
+
n.allowCreate ? (s("update:modelValue", j), s("change", j), s("update:text", j), u.value = j) : S(j, "value", m.value, !0);
|
|
4839
4839
|
};
|
|
4840
4840
|
let v = pe(n, "hintText"), $ = D(!1);
|
|
4841
|
-
const x = (
|
|
4842
|
-
let B =
|
|
4843
|
-
N.value = !0, $e(v.value) || ($.value = !0), s("focus", B,
|
|
4844
|
-
}, H = (
|
|
4841
|
+
const x = (j) => {
|
|
4842
|
+
let B = j.target.value;
|
|
4843
|
+
N.value = !0, $e(v.value) || ($.value = !0), s("focus", B, j);
|
|
4844
|
+
}, H = (j) => {
|
|
4845
4845
|
setTimeout(() => {
|
|
4846
4846
|
$.value && ($.value = !1), N.value = !1;
|
|
4847
4847
|
}, 0);
|
|
4848
|
-
let B =
|
|
4849
|
-
n.maxLength && B.length > Number(n.maxLength) && (B = B.slice(0, Number(n.maxLength))), te.value || s("blur", B,
|
|
4850
|
-
},
|
|
4848
|
+
let B = j.target.value;
|
|
4849
|
+
n.maxLength && B.length > Number(n.maxLength) && (B = B.slice(0, Number(n.maxLength))), te.value || s("blur", B, j);
|
|
4850
|
+
}, O = () => {
|
|
4851
4851
|
s("clear", "");
|
|
4852
4852
|
}, _ = D(!1);
|
|
4853
4853
|
let y = null;
|
|
4854
|
-
const
|
|
4854
|
+
const L = () => {
|
|
4855
4855
|
n.showTooltip && _.value === !1 && (y && clearTimeout(y), y = setTimeout(() => {
|
|
4856
4856
|
_.value = !0;
|
|
4857
4857
|
}, 150));
|
|
4858
4858
|
}, G = () => {
|
|
4859
4859
|
y && (clearTimeout(y), _.value = !1, y = null);
|
|
4860
|
-
}, U = b(() => _.value || $.value), ee = b(() => _.value ? p.value : v.value), te = D(!1), ce = (
|
|
4861
|
-
te.value =
|
|
4862
|
-
}, ge = (
|
|
4863
|
-
s("remove-tag",
|
|
4864
|
-
},
|
|
4860
|
+
}, U = b(() => _.value || $.value), ee = b(() => _.value ? p.value : v.value), te = D(!1), ce = (j) => {
|
|
4861
|
+
te.value = j, s("visible-change", j), j || s("selected");
|
|
4862
|
+
}, ge = (j) => {
|
|
4863
|
+
s("remove-tag", j);
|
|
4864
|
+
}, k = (j, X) => {
|
|
4865
4865
|
const B = [];
|
|
4866
|
-
return
|
|
4866
|
+
return j.forEach((V, M) => {
|
|
4867
4867
|
const I = Kr(n, V);
|
|
4868
4868
|
if (Array.isArray(I) && I.length > 0) {
|
|
4869
|
-
const
|
|
4870
|
-
key: `${z}_${
|
|
4869
|
+
const q = k(I, X), z = st(n, V), fe = {
|
|
4870
|
+
key: `${z}_${M}`,
|
|
4871
4871
|
label: z
|
|
4872
4872
|
};
|
|
4873
|
-
B.push(W(gr, fe, { default: () =>
|
|
4873
|
+
B.push(W(gr, fe, { default: () => q }));
|
|
4874
4874
|
} else {
|
|
4875
|
-
const
|
|
4876
|
-
key: `${
|
|
4875
|
+
const q = Bt(n, V), z = st(n, V), Q = lu(n, V), re = {
|
|
4876
|
+
key: `${q}_${M}`,
|
|
4877
4877
|
label: z,
|
|
4878
|
-
disabled:
|
|
4879
|
-
value:
|
|
4878
|
+
disabled: Q,
|
|
4879
|
+
value: q
|
|
4880
4880
|
};
|
|
4881
4881
|
if (typeof X == "function")
|
|
4882
4882
|
B.push(W(Ot, re, { default: () => X(V) }));
|
|
4883
4883
|
else if (n.optionType === "item") {
|
|
4884
4884
|
const wt = W("span", {
|
|
4885
4885
|
class: { "fox-select-item__option-left": !0 }
|
|
4886
|
-
}, [
|
|
4886
|
+
}, [q]), Rt = W("span", {
|
|
4887
4887
|
class: { "fox-select-item__option-right": !0 }
|
|
4888
4888
|
}, [z]), ft = W("div", { class: { "fox-select-item__option": !0 } }, [wt, Rt]);
|
|
4889
4889
|
B.push(W(Ot, re, { default: () => ft }));
|
|
4890
4890
|
} else
|
|
4891
|
-
n.optionType === "value" ? B.push(W(Ot, re, { default: () => [
|
|
4891
|
+
n.optionType === "value" ? B.push(W(Ot, re, { default: () => [q] })) : B.push(W(Ot, re));
|
|
4892
4892
|
}
|
|
4893
4893
|
}), B;
|
|
4894
|
-
},
|
|
4894
|
+
}, J = D();
|
|
4895
4895
|
return Re({
|
|
4896
4896
|
//使 input 获取焦点
|
|
4897
4897
|
focus: () => {
|
|
4898
|
-
|
|
4898
|
+
J?.value.focus();
|
|
4899
4899
|
},
|
|
4900
4900
|
// 使 input 失去焦点
|
|
4901
4901
|
blur: () => {
|
|
4902
|
-
|
|
4902
|
+
J?.value.blur();
|
|
4903
4903
|
}
|
|
4904
4904
|
}), () => {
|
|
4905
4905
|
const X = {
|
|
4906
4906
|
...r.attrs,
|
|
4907
|
-
ref:
|
|
4908
|
-
class:
|
|
4907
|
+
ref: J,
|
|
4908
|
+
class: K.value,
|
|
4909
4909
|
clearable: n.clearable,
|
|
4910
4910
|
multiple: n.multiple,
|
|
4911
4911
|
placeholder: c.placeholder.value,
|
|
@@ -4913,7 +4913,7 @@ function su(e, t, l) {
|
|
|
4913
4913
|
modelValue: u.value,
|
|
4914
4914
|
"value-key": n.valueKey,
|
|
4915
4915
|
"allow-create": n.allowCreate,
|
|
4916
|
-
onClear:
|
|
4916
|
+
onClear: O,
|
|
4917
4917
|
onChange: Y,
|
|
4918
4918
|
onFocus: x,
|
|
4919
4919
|
onBlur: H,
|
|
@@ -4922,9 +4922,9 @@ function su(e, t, l) {
|
|
|
4922
4922
|
};
|
|
4923
4923
|
typeof E == "function" && (X["remote-method"] = E, X.loading = C.value), typeof R == "function" && (X["filter-method"] = R, X.loading = C.value);
|
|
4924
4924
|
const B = {};
|
|
4925
|
-
r.slots.prefix && (B.prefix = r.slots.prefix), r.slots.empty && (B.empty = r.slots.empty), r.slots.options ? B.default = r.slots.options : B.default = () =>
|
|
4926
|
-
const V = [],
|
|
4927
|
-
V.push(
|
|
4925
|
+
r.slots.prefix && (B.prefix = r.slots.prefix), r.slots.empty && (B.empty = r.slots.empty), r.slots.options ? B.default = r.slots.options : B.default = () => k(m.value, r.slots.option);
|
|
4926
|
+
const V = [], M = W(hr, X, B);
|
|
4927
|
+
V.push(M);
|
|
4928
4928
|
const I = {
|
|
4929
4929
|
default: () => V
|
|
4930
4930
|
};
|
|
@@ -4934,7 +4934,7 @@ function su(e, t, l) {
|
|
|
4934
4934
|
hintText: ee.value,
|
|
4935
4935
|
hintVisible: U.value,
|
|
4936
4936
|
prop: `${n.prop ?? r.attrs.name}_item`,
|
|
4937
|
-
onMouseover:
|
|
4937
|
+
onMouseover: L,
|
|
4938
4938
|
onMouseleave: G
|
|
4939
4939
|
};
|
|
4940
4940
|
return g.value && (z["appear-listen"] = !0, z.onAppear = A), W(l, z, I);
|
|
@@ -4956,13 +4956,13 @@ var Yr = { exports: {} };
|
|
|
4956
4956
|
var H = String(v);
|
|
4957
4957
|
return !H || H.length >= $ ? v : "" + Array($ + 1 - H.length).join(x) + v;
|
|
4958
4958
|
}, P = { s: T, z: function(v) {
|
|
4959
|
-
var $ = -v.utcOffset(), x = Math.abs($), H = Math.floor(x / 60),
|
|
4960
|
-
return ($ <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T(
|
|
4959
|
+
var $ = -v.utcOffset(), x = Math.abs($), H = Math.floor(x / 60), O = x % 60;
|
|
4960
|
+
return ($ <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T(O, 2, "0");
|
|
4961
4961
|
}, m: function v($, x) {
|
|
4962
4962
|
if ($.date() < x.date())
|
|
4963
4963
|
return -v(x, $);
|
|
4964
|
-
var H = 12 * (x.year() - $.year()) + (x.month() - $.month()),
|
|
4965
|
-
return +(-(H + (x -
|
|
4964
|
+
var H = 12 * (x.year() - $.year()) + (x.month() - $.month()), O = $.clone().add(H, f), _ = x - O < 0, y = $.clone().add(H + (_ ? -1 : 1), f);
|
|
4965
|
+
return +(-(H + (x - O) / (_ ? O - y : y - O)) || 0);
|
|
4966
4966
|
}, a: function(v) {
|
|
4967
4967
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4968
4968
|
}, p: function(v) {
|
|
@@ -4972,53 +4972,53 @@ var Yr = { exports: {} };
|
|
|
4972
4972
|
} }, A = "en", E = {};
|
|
4973
4973
|
E[A] = w;
|
|
4974
4974
|
var C = function(v) {
|
|
4975
|
-
return v instanceof
|
|
4975
|
+
return v instanceof K;
|
|
4976
4976
|
}, R = function v($, x, H) {
|
|
4977
|
-
var
|
|
4977
|
+
var O;
|
|
4978
4978
|
if (!$)
|
|
4979
4979
|
return A;
|
|
4980
4980
|
if (typeof $ == "string") {
|
|
4981
4981
|
var _ = $.toLowerCase();
|
|
4982
|
-
E[_] && (
|
|
4982
|
+
E[_] && (O = _), x && (E[_] = x, O = _);
|
|
4983
4983
|
var y = $.split("-");
|
|
4984
|
-
if (!
|
|
4984
|
+
if (!O && y.length > 1)
|
|
4985
4985
|
return v(y[0]);
|
|
4986
4986
|
} else {
|
|
4987
|
-
var
|
|
4988
|
-
E[
|
|
4987
|
+
var L = $.name;
|
|
4988
|
+
E[L] = $, O = L;
|
|
4989
4989
|
}
|
|
4990
|
-
return !H &&
|
|
4990
|
+
return !H && O && (A = O), O || !H && A;
|
|
4991
4991
|
}, N = function(v, $) {
|
|
4992
4992
|
if (C(v))
|
|
4993
4993
|
return v.clone();
|
|
4994
4994
|
var x = typeof $ == "object" ? $ : {};
|
|
4995
|
-
return x.date = v, x.args = arguments, new
|
|
4995
|
+
return x.date = v, x.args = arguments, new K(x);
|
|
4996
4996
|
}, F = P;
|
|
4997
4997
|
F.l = R, F.i = C, F.w = function(v, $) {
|
|
4998
4998
|
return N(v, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
4999
4999
|
};
|
|
5000
|
-
var
|
|
5000
|
+
var K = function() {
|
|
5001
5001
|
function v(x) {
|
|
5002
5002
|
this.$L = R(x.locale, null, !0), this.parse(x);
|
|
5003
5003
|
}
|
|
5004
5004
|
var $ = v.prototype;
|
|
5005
5005
|
return $.parse = function(x) {
|
|
5006
5006
|
this.$d = function(H) {
|
|
5007
|
-
var
|
|
5008
|
-
if (
|
|
5007
|
+
var O = H.date, _ = H.utc;
|
|
5008
|
+
if (O === null)
|
|
5009
5009
|
return /* @__PURE__ */ new Date(NaN);
|
|
5010
|
-
if (F.u(
|
|
5010
|
+
if (F.u(O))
|
|
5011
5011
|
return /* @__PURE__ */ new Date();
|
|
5012
|
-
if (
|
|
5013
|
-
return new Date(
|
|
5014
|
-
if (typeof
|
|
5015
|
-
var y =
|
|
5012
|
+
if (O instanceof Date)
|
|
5013
|
+
return new Date(O);
|
|
5014
|
+
if (typeof O == "string" && !/Z$/i.test(O)) {
|
|
5015
|
+
var y = O.match(m);
|
|
5016
5016
|
if (y) {
|
|
5017
|
-
var
|
|
5018
|
-
return _ ? new Date(Date.UTC(y[1],
|
|
5017
|
+
var L = y[2] - 1 || 0, G = (y[7] || "0").substring(0, 3);
|
|
5018
|
+
return _ ? new Date(Date.UTC(y[1], L, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G)) : new Date(y[1], L, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G);
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
5021
|
-
return new Date(
|
|
5021
|
+
return new Date(O);
|
|
5022
5022
|
}(x), this.$x = x.x || {}, this.init();
|
|
5023
5023
|
}, $.init = function() {
|
|
5024
5024
|
var x = this.$d;
|
|
@@ -5028,33 +5028,33 @@ var Yr = { exports: {} };
|
|
|
5028
5028
|
}, $.isValid = function() {
|
|
5029
5029
|
return this.$d.toString() !== d;
|
|
5030
5030
|
}, $.isSame = function(x, H) {
|
|
5031
|
-
var
|
|
5032
|
-
return this.startOf(H) <=
|
|
5031
|
+
var O = N(x);
|
|
5032
|
+
return this.startOf(H) <= O && O <= this.endOf(H);
|
|
5033
5033
|
}, $.isAfter = function(x, H) {
|
|
5034
5034
|
return N(x) < this.startOf(H);
|
|
5035
5035
|
}, $.isBefore = function(x, H) {
|
|
5036
5036
|
return this.endOf(H) < N(x);
|
|
5037
|
-
}, $.$g = function(x, H,
|
|
5038
|
-
return F.u(x) ? this[H] : this.set(
|
|
5037
|
+
}, $.$g = function(x, H, O) {
|
|
5038
|
+
return F.u(x) ? this[H] : this.set(O, x);
|
|
5039
5039
|
}, $.unix = function() {
|
|
5040
5040
|
return Math.floor(this.valueOf() / 1e3);
|
|
5041
5041
|
}, $.valueOf = function() {
|
|
5042
5042
|
return this.$d.getTime();
|
|
5043
5043
|
}, $.startOf = function(x, H) {
|
|
5044
|
-
var
|
|
5045
|
-
var X = F.w(
|
|
5044
|
+
var O = this, _ = !!F.u(H) || H, y = F.p(x), L = function(J, j) {
|
|
5045
|
+
var X = F.w(O.$u ? Date.UTC(O.$y, j, J) : new Date(O.$y, j, J), O);
|
|
5046
5046
|
return _ ? X : X.endOf(c);
|
|
5047
|
-
}, G = function(
|
|
5048
|
-
return F.w(
|
|
5047
|
+
}, G = function(J, j) {
|
|
5048
|
+
return F.w(O.toDate()[J].apply(O.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), O);
|
|
5049
5049
|
}, U = this.$W, ee = this.$M, te = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
5050
5050
|
switch (y) {
|
|
5051
5051
|
case S:
|
|
5052
|
-
return _ ?
|
|
5052
|
+
return _ ? L(1, 0) : L(31, 11);
|
|
5053
5053
|
case f:
|
|
5054
|
-
return _ ?
|
|
5054
|
+
return _ ? L(1, ee) : L(0, ee + 1);
|
|
5055
5055
|
case u:
|
|
5056
|
-
var ge = this.$locale().weekStart || 0,
|
|
5057
|
-
return
|
|
5056
|
+
var ge = this.$locale().weekStart || 0, k = (U < ge ? U + 7 : U) - ge;
|
|
5057
|
+
return L(_ ? te - k : te + (6 - k), ee);
|
|
5058
5058
|
case c:
|
|
5059
5059
|
case h:
|
|
5060
5060
|
return G(ce + "Hours", 0);
|
|
@@ -5070,21 +5070,21 @@ var Yr = { exports: {} };
|
|
|
5070
5070
|
}, $.endOf = function(x) {
|
|
5071
5071
|
return this.startOf(x, !1);
|
|
5072
5072
|
}, $.$set = function(x, H) {
|
|
5073
|
-
var
|
|
5073
|
+
var O, _ = F.p(x), y = "set" + (this.$u ? "UTC" : ""), L = (O = {}, O[c] = y + "Date", O[h] = y + "Date", O[f] = y + "Month", O[S] = y + "FullYear", O[i] = y + "Hours", O[s] = y + "Minutes", O[o] = y + "Seconds", O[a] = y + "Milliseconds", O)[_], G = _ === c ? this.$D + (H - this.$W) : H;
|
|
5074
5074
|
if (_ === f || _ === S) {
|
|
5075
5075
|
var U = this.clone().set(h, 1);
|
|
5076
|
-
U.$d[
|
|
5076
|
+
U.$d[L](G), U.init(), this.$d = U.set(h, Math.min(this.$D, U.daysInMonth())).$d;
|
|
5077
5077
|
} else
|
|
5078
|
-
|
|
5078
|
+
L && this.$d[L](G);
|
|
5079
5079
|
return this.init(), this;
|
|
5080
5080
|
}, $.set = function(x, H) {
|
|
5081
5081
|
return this.clone().$set(x, H);
|
|
5082
5082
|
}, $.get = function(x) {
|
|
5083
5083
|
return this[F.p(x)]();
|
|
5084
5084
|
}, $.add = function(x, H) {
|
|
5085
|
-
var
|
|
5085
|
+
var O, _ = this;
|
|
5086
5086
|
x = Number(x);
|
|
5087
|
-
var y = F.p(H),
|
|
5087
|
+
var y = F.p(H), L = function(ee) {
|
|
5088
5088
|
var te = N(_);
|
|
5089
5089
|
return F.w(te.date(te.date() + Math.round(ee * x)), _);
|
|
5090
5090
|
};
|
|
@@ -5093,33 +5093,33 @@ var Yr = { exports: {} };
|
|
|
5093
5093
|
if (y === S)
|
|
5094
5094
|
return this.set(S, this.$y + x);
|
|
5095
5095
|
if (y === c)
|
|
5096
|
-
return
|
|
5096
|
+
return L(1);
|
|
5097
5097
|
if (y === u)
|
|
5098
|
-
return
|
|
5099
|
-
var G = (
|
|
5098
|
+
return L(7);
|
|
5099
|
+
var G = (O = {}, O[s] = n, O[i] = r, O[o] = l, O)[y] || 1, U = this.$d.getTime() + x * G;
|
|
5100
5100
|
return F.w(U, this);
|
|
5101
5101
|
}, $.subtract = function(x, H) {
|
|
5102
5102
|
return this.add(-1 * x, H);
|
|
5103
5103
|
}, $.format = function(x) {
|
|
5104
|
-
var H = this,
|
|
5104
|
+
var H = this, O = this.$locale();
|
|
5105
5105
|
if (!this.isValid())
|
|
5106
|
-
return
|
|
5107
|
-
var _ = x || "YYYY-MM-DDTHH:mm:ssZ", y = F.z(this),
|
|
5108
|
-
return
|
|
5109
|
-
}, ge = function(
|
|
5110
|
-
return F.s(
|
|
5111
|
-
},
|
|
5112
|
-
var V =
|
|
5106
|
+
return O.invalidDate || d;
|
|
5107
|
+
var _ = x || "YYYY-MM-DDTHH:mm:ssZ", y = F.z(this), L = this.$H, G = this.$m, U = this.$M, ee = O.weekdays, te = O.months, ce = function(j, X, B, V) {
|
|
5108
|
+
return j && (j[X] || j(H, _)) || B[X].slice(0, V);
|
|
5109
|
+
}, ge = function(j) {
|
|
5110
|
+
return F.s(L % 12 || 12, j, "0");
|
|
5111
|
+
}, k = O.meridiem || function(j, X, B) {
|
|
5112
|
+
var V = j < 12 ? "AM" : "PM";
|
|
5113
5113
|
return B ? V.toLowerCase() : V;
|
|
5114
|
-
},
|
|
5115
|
-
return _.replace(g, function(
|
|
5116
|
-
return X ||
|
|
5114
|
+
}, J = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: U + 1, MM: F.s(U + 1, 2, "0"), MMM: ce(O.monthsShort, U, te, 3), MMMM: ce(te, U), D: this.$D, DD: F.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(O.weekdaysMin, this.$W, ee, 2), ddd: ce(O.weekdaysShort, this.$W, ee, 3), dddd: ee[this.$W], H: String(L), HH: F.s(L, 2, "0"), h: ge(1), hh: ge(2), a: k(L, G, !0), A: k(L, G, !1), m: String(G), mm: F.s(G, 2, "0"), s: String(this.$s), ss: F.s(this.$s, 2, "0"), SSS: F.s(this.$ms, 3, "0"), Z: y };
|
|
5115
|
+
return _.replace(g, function(j, X) {
|
|
5116
|
+
return X || J[j] || y.replace(":", "");
|
|
5117
5117
|
});
|
|
5118
5118
|
}, $.utcOffset = function() {
|
|
5119
5119
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5120
|
-
}, $.diff = function(x, H,
|
|
5121
|
-
var _, y = F.p(H),
|
|
5122
|
-
return ee = (_ = {}, _[S] = ee / 12, _[f] = ee, _[p] = ee / 3, _[u] = (U - G) / 6048e5, _[c] = (U - G) / 864e5, _[i] = U / r, _[s] = U / n, _[o] = U / l, _)[y] || U,
|
|
5120
|
+
}, $.diff = function(x, H, O) {
|
|
5121
|
+
var _, y = F.p(H), L = N(x), G = (L.utcOffset() - this.utcOffset()) * n, U = this - L, ee = F.m(this, L);
|
|
5122
|
+
return ee = (_ = {}, _[S] = ee / 12, _[f] = ee, _[p] = ee / 3, _[u] = (U - G) / 6048e5, _[c] = (U - G) / 864e5, _[i] = U / r, _[s] = U / n, _[o] = U / l, _)[y] || U, O ? ee : F.a(ee);
|
|
5123
5123
|
}, $.daysInMonth = function() {
|
|
5124
5124
|
return this.endOf(f).$D;
|
|
5125
5125
|
}, $.$locale = function() {
|
|
@@ -5127,8 +5127,8 @@ var Yr = { exports: {} };
|
|
|
5127
5127
|
}, $.locale = function(x, H) {
|
|
5128
5128
|
if (!x)
|
|
5129
5129
|
return this.$L;
|
|
5130
|
-
var
|
|
5131
|
-
return _ && (
|
|
5130
|
+
var O = this.clone(), _ = R(x, H, !0);
|
|
5131
|
+
return _ && (O.$L = _), O;
|
|
5132
5132
|
}, $.clone = function() {
|
|
5133
5133
|
return F.w(this.$d, this);
|
|
5134
5134
|
}, $.toDate = function() {
|
|
@@ -5140,13 +5140,13 @@ var Yr = { exports: {} };
|
|
|
5140
5140
|
}, $.toString = function() {
|
|
5141
5141
|
return this.$d.toUTCString();
|
|
5142
5142
|
}, v;
|
|
5143
|
-
}(), Y =
|
|
5143
|
+
}(), Y = K.prototype;
|
|
5144
5144
|
return N.prototype = Y, [["$ms", a], ["$s", o], ["$m", s], ["$H", i], ["$W", c], ["$M", f], ["$y", S], ["$D", h]].forEach(function(v) {
|
|
5145
5145
|
Y[v[1]] = function($) {
|
|
5146
5146
|
return this.$g($, v[0], v[1]);
|
|
5147
5147
|
};
|
|
5148
5148
|
}), N.extend = function(v, $) {
|
|
5149
|
-
return v.$i || (v($,
|
|
5149
|
+
return v.$i || (v($, K, N), v.$i = !0), N;
|
|
5150
5150
|
}, N.locale = R, N.isDayjs = C, N.unix = function(v) {
|
|
5151
5151
|
return N(1e3 * v);
|
|
5152
5152
|
}, N.en = E[A], N.Ls = E, N.p = {}, N;
|
|
@@ -5219,9 +5219,9 @@ var Gr = { exports: {} };
|
|
|
5219
5219
|
function h(d) {
|
|
5220
5220
|
var m, g;
|
|
5221
5221
|
m = d, g = s && s.formats;
|
|
5222
|
-
for (var w = (d = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, F,
|
|
5223
|
-
var Y =
|
|
5224
|
-
return F || g[
|
|
5222
|
+
for (var w = (d = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, F, K) {
|
|
5223
|
+
var Y = K && K.toUpperCase();
|
|
5224
|
+
return F || g[K] || l[K] || g[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, $, x) {
|
|
5225
5225
|
return $ || x.slice(1);
|
|
5226
5226
|
});
|
|
5227
5227
|
})).match(n), T = w.length, P = 0; P < T; P += 1) {
|
|
@@ -5229,20 +5229,20 @@ var Gr = { exports: {} };
|
|
|
5229
5229
|
w[P] = R ? { regex: C, parser: R } : A.replace(/^\[|\]$/g, "");
|
|
5230
5230
|
}
|
|
5231
5231
|
return function(N) {
|
|
5232
|
-
for (var F = {},
|
|
5233
|
-
var v = w[
|
|
5232
|
+
for (var F = {}, K = 0, Y = 0; K < T; K += 1) {
|
|
5233
|
+
var v = w[K];
|
|
5234
5234
|
if (typeof v == "string")
|
|
5235
5235
|
Y += v.length;
|
|
5236
5236
|
else {
|
|
5237
|
-
var $ = v.regex, x = v.parser, H = N.slice(Y),
|
|
5238
|
-
x.call(F,
|
|
5237
|
+
var $ = v.regex, x = v.parser, H = N.slice(Y), O = $.exec(H)[0];
|
|
5238
|
+
x.call(F, O), N = N.replace(O, "");
|
|
5239
5239
|
}
|
|
5240
5240
|
}
|
|
5241
5241
|
return function(_) {
|
|
5242
5242
|
var y = _.afternoon;
|
|
5243
5243
|
if (y !== void 0) {
|
|
5244
|
-
var
|
|
5245
|
-
y ?
|
|
5244
|
+
var L = _.hours;
|
|
5245
|
+
y ? L < 12 && (_.hours += 12) : L === 12 && (_.hours = 0), delete _.afternoon;
|
|
5246
5246
|
}
|
|
5247
5247
|
}(F), F;
|
|
5248
5248
|
};
|
|
@@ -5255,19 +5255,19 @@ var Gr = { exports: {} };
|
|
|
5255
5255
|
this.$u = E;
|
|
5256
5256
|
var R = C[1];
|
|
5257
5257
|
if (typeof R == "string") {
|
|
5258
|
-
var N = C[2] === !0, F = C[3] === !0,
|
|
5259
|
-
F && (Y = C[2]), s = this.$locale(), !N && Y && (s = g.Ls[Y]), this.$d = function(H,
|
|
5258
|
+
var N = C[2] === !0, F = C[3] === !0, K = N || F, Y = C[2];
|
|
5259
|
+
F && (Y = C[2]), s = this.$locale(), !N && Y && (s = g.Ls[Y]), this.$d = function(H, O, _) {
|
|
5260
5260
|
try {
|
|
5261
|
-
if (["x", "X"].indexOf(
|
|
5262
|
-
return new Date((
|
|
5263
|
-
var y = h(
|
|
5264
|
-
|
|
5265
|
-
var V = ee || 0,
|
|
5266
|
-
return
|
|
5261
|
+
if (["x", "X"].indexOf(O) > -1)
|
|
5262
|
+
return new Date((O === "X" ? 1e3 : 1) * H);
|
|
5263
|
+
var y = h(O)(H), L = y.year, G = y.month, U = y.day, ee = y.hours, te = y.minutes, ce = y.seconds, ge = y.milliseconds, k = y.zone, J = /* @__PURE__ */ new Date(), j = U || (L || G ? 1 : J.getDate()), X = L || J.getFullYear(), B = 0;
|
|
5264
|
+
L && !G || (B = G > 0 ? G - 1 : J.getMonth());
|
|
5265
|
+
var V = ee || 0, M = te || 0, I = ce || 0, q = ge || 0;
|
|
5266
|
+
return k ? new Date(Date.UTC(X, B, j, V, M, I, q + 60 * k.offset * 1e3)) : _ ? new Date(Date.UTC(X, B, j, V, M, I, q)) : new Date(X, B, j, V, M, I, q);
|
|
5267
5267
|
} catch {
|
|
5268
5268
|
return /* @__PURE__ */ new Date("");
|
|
5269
5269
|
}
|
|
5270
|
-
}(A, R, E), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L),
|
|
5270
|
+
}(A, R, E), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), K && A != this.format(R) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
5271
5271
|
} else if (R instanceof Array)
|
|
5272
5272
|
for (var v = R.length, $ = 1; $ <= v; $ += 1) {
|
|
5273
5273
|
C[1] = R[$ - 1];
|
|
@@ -5766,7 +5766,7 @@ function Iu(e, t, l) {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
},
|
|
5768
5768
|
n.prop ?? r.attrs.name
|
|
5769
|
-
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = b(() =>
|
|
5769
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = b(() => v.value && Array.isArray(f.value) && f.value.length == 2 ? f.value[0] : f.value), S = b(() => v.value ? "longTermKey" : "normalKey"), h = (_) => {
|
|
5770
5770
|
if (v.value && n.type === "daterange") {
|
|
5771
5771
|
const y = [...f.value];
|
|
5772
5772
|
y[0] = _, f.value = y;
|
|
@@ -5778,27 +5778,27 @@ function Iu(e, t, l) {
|
|
|
5778
5778
|
}));
|
|
5779
5779
|
let w = pe(n, "hintText"), T = D(!1);
|
|
5780
5780
|
const P = (_) => {
|
|
5781
|
-
let
|
|
5782
|
-
u.value = !0, $e(w.value) || (T.value = !0), s("focus",
|
|
5781
|
+
let L = _.target.value;
|
|
5782
|
+
u.value = !0, $e(w.value) || (T.value = !0), s("focus", L, _);
|
|
5783
5783
|
}, A = (_) => {
|
|
5784
5784
|
setTimeout(() => {
|
|
5785
5785
|
T.value && (T.value = !1), u.value = !1;
|
|
5786
5786
|
}, 0);
|
|
5787
|
-
let
|
|
5788
|
-
n.maxLength &&
|
|
5787
|
+
let L = _.target.value;
|
|
5788
|
+
n.maxLength && L.length > Number(n.maxLength) && (L = L.slice(0, Number(n.maxLength))), s("blur", L, _);
|
|
5789
5789
|
}, E = () => {
|
|
5790
5790
|
s("clear", "");
|
|
5791
5791
|
}, C = (_) => {
|
|
5792
5792
|
s("calendar-change", _);
|
|
5793
|
-
}, R = (_, y,
|
|
5794
|
-
s("panel-change", _, y,
|
|
5793
|
+
}, R = (_, y, L) => {
|
|
5794
|
+
s("panel-change", _, y, L);
|
|
5795
5795
|
}, N = (_) => {
|
|
5796
5796
|
s("visible-change", _);
|
|
5797
5797
|
}, F = je(
|
|
5798
5798
|
b(() => n.longTermValue),
|
|
5799
5799
|
"longTermText",
|
|
5800
5800
|
Ue.Near
|
|
5801
|
-
),
|
|
5801
|
+
), K = je(
|
|
5802
5802
|
b(() => n.longTermValue),
|
|
5803
5803
|
"longTermValue",
|
|
5804
5804
|
Ue.Near
|
|
@@ -5808,9 +5808,9 @@ function Iu(e, t, l) {
|
|
|
5808
5808
|
if (v.value = _, s("update:longTerm", _), _) {
|
|
5809
5809
|
if (Y = f.value, n.type === "daterange") {
|
|
5810
5810
|
const y = [];
|
|
5811
|
-
Array.isArray(
|
|
5811
|
+
Array.isArray(K.value) ? (y[0] = f.value[0] ?? K.value[0], y[1] = K.value[1] ?? K.value[0]) : (y[0] = f.value[0] ?? K.value, y[1] = v.value), y[0] || (y[0] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), y[1] || (y[1] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), f.value = y;
|
|
5812
5812
|
} else
|
|
5813
|
-
Array.isArray(
|
|
5813
|
+
Array.isArray(K.value) ? f.value = K.value[1] ?? K.value[0] : f.value = K.value, f.value || (f.value = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date());
|
|
5814
5814
|
s("update:modelValue", f.value);
|
|
5815
5815
|
} else {
|
|
5816
5816
|
if (n.type === "daterange") {
|
|
@@ -5826,12 +5826,12 @@ function Iu(e, t, l) {
|
|
|
5826
5826
|
if (v.value === !0) {
|
|
5827
5827
|
if (Y = f.value, n.type === "daterange") {
|
|
5828
5828
|
const y = [f.value[0]];
|
|
5829
|
-
Array.isArray(
|
|
5829
|
+
Array.isArray(K.value) ? y[1] = K.value[1] ?? K.value[0] : y[1] = v.value, y[0] || (y[0] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), y[1] || (y[1] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), f.value = y;
|
|
5830
5830
|
} else
|
|
5831
|
-
f.value =
|
|
5831
|
+
f.value = K.value;
|
|
5832
5832
|
s("update:modelValue", f.value);
|
|
5833
5833
|
} else
|
|
5834
|
-
bt(
|
|
5834
|
+
bt(K.value, f.value) && (v.value = !0);
|
|
5835
5835
|
};
|
|
5836
5836
|
_(), ie([() => n.longTerm], ([y]) => {
|
|
5837
5837
|
v.value !== y && _();
|
|
@@ -5840,14 +5840,14 @@ function Iu(e, t, l) {
|
|
|
5840
5840
|
([y]) => {
|
|
5841
5841
|
if (v.value !== !0 && n.type === "daterange" && Array.isArray(y))
|
|
5842
5842
|
try {
|
|
5843
|
-
let
|
|
5844
|
-
if (!
|
|
5843
|
+
let L = y[1];
|
|
5844
|
+
if (!L)
|
|
5845
5845
|
return;
|
|
5846
|
-
typeof
|
|
5847
|
-
let G = Array.isArray(
|
|
5848
|
-
|
|
5849
|
-
} catch (
|
|
5850
|
-
console.error(
|
|
5846
|
+
typeof L != "string" && n.valueFormat && (L = Ye.format(L, n.valueFormat));
|
|
5847
|
+
let G = Array.isArray(K.value) ? K.value[1] : K.value;
|
|
5848
|
+
L === G && (v.value = !0);
|
|
5849
|
+
} catch (L) {
|
|
5850
|
+
console.error(L);
|
|
5851
5851
|
}
|
|
5852
5852
|
},
|
|
5853
5853
|
{ immediate: !0 }
|
|
@@ -5856,30 +5856,30 @@ function Iu(e, t, l) {
|
|
|
5856
5856
|
const H = b(() => ({
|
|
5857
5857
|
"fox-date-item__long": !0,
|
|
5858
5858
|
"is-active": u.value
|
|
5859
|
-
})),
|
|
5859
|
+
})), O = D();
|
|
5860
5860
|
return Re({
|
|
5861
5861
|
//使 input 获取焦点
|
|
5862
5862
|
focus: () => {
|
|
5863
|
-
|
|
5863
|
+
O?.value.focus();
|
|
5864
5864
|
},
|
|
5865
5865
|
// 使 input 失去焦点
|
|
5866
5866
|
blur: () => {
|
|
5867
|
-
|
|
5867
|
+
O?.value.blur();
|
|
5868
5868
|
},
|
|
5869
5869
|
// 打开日期选择器弹窗
|
|
5870
5870
|
handleOpen: () => {
|
|
5871
|
-
|
|
5871
|
+
O?.value.handleOpen();
|
|
5872
5872
|
},
|
|
5873
5873
|
// 关闭日期选择器弹窗
|
|
5874
5874
|
handleClose: () => {
|
|
5875
|
-
|
|
5875
|
+
O?.value.handleClose();
|
|
5876
5876
|
}
|
|
5877
5877
|
}), () => {
|
|
5878
5878
|
const y = {
|
|
5879
5879
|
...r.attrs,
|
|
5880
5880
|
key: S.value,
|
|
5881
5881
|
type: d.value,
|
|
5882
|
-
ref:
|
|
5882
|
+
ref: O,
|
|
5883
5883
|
class: g.value,
|
|
5884
5884
|
placeholder: c.placeholder.value,
|
|
5885
5885
|
disabled: a.value,
|
|
@@ -5893,35 +5893,37 @@ function Iu(e, t, l) {
|
|
|
5893
5893
|
onCalendarChange: C,
|
|
5894
5894
|
onPanelChange: R,
|
|
5895
5895
|
onVisibleChange: N
|
|
5896
|
-
},
|
|
5897
|
-
r.slots["range-separator"] && (
|
|
5898
|
-
const G = [], U = W(or, y,
|
|
5896
|
+
}, L = {};
|
|
5897
|
+
r.slots["range-separator"] && (L["range-separator"] = r.slots["range-separator"]), r.slots.cell && (L.default = r.slots.cell);
|
|
5898
|
+
const G = [], U = W(or, y, L);
|
|
5899
5899
|
G.push(U);
|
|
5900
5900
|
const ee = {
|
|
5901
5901
|
default: () => G
|
|
5902
5902
|
};
|
|
5903
5903
|
if (r.slots.default && (ee.label = r.slots.default), r.slots.fixedTip && (ee.fixedTip = r.slots.fixedTip), x) {
|
|
5904
5904
|
if (v.value) {
|
|
5905
|
-
const
|
|
5905
|
+
const k = W("span", { class: ["fox-date-item__long-splitor"] }, ["-"]), J = W("div", { class: ["fox-date-item__long-text"] }, [F.value]), j = {
|
|
5906
5906
|
class: H.value
|
|
5907
|
-
},
|
|
5908
|
-
G.push(
|
|
5907
|
+
}, X = W("div", j, { default: () => [k, J] });
|
|
5908
|
+
G.push(X);
|
|
5909
|
+
}
|
|
5910
|
+
if (!o.value && !a.value) {
|
|
5911
|
+
const k = {
|
|
5912
|
+
label: F.value,
|
|
5913
|
+
disabled: o.value || a.value,
|
|
5914
|
+
modelValue: v.value,
|
|
5915
|
+
"onUpdate:modelValue": $
|
|
5916
|
+
}, J = W(Mt, k), j = W(
|
|
5917
|
+
"div",
|
|
5918
|
+
{
|
|
5919
|
+
class: {
|
|
5920
|
+
[`${m}__append`]: !0
|
|
5921
|
+
}
|
|
5922
|
+
},
|
|
5923
|
+
[J]
|
|
5924
|
+
);
|
|
5925
|
+
ee.append = () => j;
|
|
5909
5926
|
}
|
|
5910
|
-
const O = {
|
|
5911
|
-
label: F.value,
|
|
5912
|
-
disabled: o.value || a.value,
|
|
5913
|
-
modelValue: v.value,
|
|
5914
|
-
"onUpdate:modelValue": $
|
|
5915
|
-
}, Q = W(Mt, O), K = W(
|
|
5916
|
-
"div",
|
|
5917
|
-
{
|
|
5918
|
-
class: {
|
|
5919
|
-
[`${m}__append`]: !0
|
|
5920
|
-
}
|
|
5921
|
-
},
|
|
5922
|
-
[Q]
|
|
5923
|
-
);
|
|
5924
|
-
ee.append = () => K;
|
|
5925
5927
|
}
|
|
5926
5928
|
const ce = {
|
|
5927
5929
|
...Me(n, $l, Tl),
|
|
@@ -6032,17 +6034,17 @@ function Fu(e, t, l) {
|
|
|
6032
6034
|
onVisibleChange: P
|
|
6033
6035
|
}, R = {}, N = [], F = W(vr, C, R);
|
|
6034
6036
|
N.push(F);
|
|
6035
|
-
const
|
|
6037
|
+
const K = {
|
|
6036
6038
|
default: () => N
|
|
6037
6039
|
};
|
|
6038
|
-
r.slots.default && (
|
|
6040
|
+
r.slots.default && (K.label = r.slots.default), r.slots.fixedTip && (K.fixedTip = r.slots.fixedTip);
|
|
6039
6041
|
const v = {
|
|
6040
6042
|
...Me(n, El),
|
|
6041
6043
|
hintText: d.value,
|
|
6042
6044
|
hintVisible: m.value,
|
|
6043
6045
|
prop: `${n.prop}_item`
|
|
6044
6046
|
};
|
|
6045
|
-
return W(l, v,
|
|
6047
|
+
return W(l, v, K);
|
|
6046
6048
|
};
|
|
6047
6049
|
}
|
|
6048
6050
|
};
|
|
@@ -6442,7 +6444,7 @@ function zu(e, t, l) {
|
|
|
6442
6444
|
s("update:modelValue", c.value, v), s("blur", c.value, v);
|
|
6443
6445
|
}, F = () => {
|
|
6444
6446
|
s("clear", "");
|
|
6445
|
-
},
|
|
6447
|
+
}, K = b(() => cn(n.unit) > 0), Y = D();
|
|
6446
6448
|
return Re({
|
|
6447
6449
|
//使 input 获取焦点
|
|
6448
6450
|
focus: () => {
|
|
@@ -6476,14 +6478,14 @@ function zu(e, t, l) {
|
|
|
6476
6478
|
onFocus: R,
|
|
6477
6479
|
onBlur: N
|
|
6478
6480
|
}, x = {};
|
|
6479
|
-
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix :
|
|
6480
|
-
const H = [],
|
|
6481
|
-
H.push(
|
|
6481
|
+
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix : K.value && (x.suffix = () => [n.unit]);
|
|
6482
|
+
const H = [], O = W(Wn, $, x);
|
|
6483
|
+
H.push(O);
|
|
6482
6484
|
const _ = {
|
|
6483
6485
|
default: () => H
|
|
6484
6486
|
};
|
|
6485
6487
|
r.slots.default && (_.label = r.slots.default), r.slots.fixedTip && (_.fixedTip = r.slots.fixedTip);
|
|
6486
|
-
const
|
|
6488
|
+
const L = {
|
|
6487
6489
|
...Me(n, Pl),
|
|
6488
6490
|
errorTip: w.value,
|
|
6489
6491
|
hintText: T.value,
|
|
@@ -6491,7 +6493,7 @@ function zu(e, t, l) {
|
|
|
6491
6493
|
hintType: "number",
|
|
6492
6494
|
prop: `${n.prop}_item`
|
|
6493
6495
|
};
|
|
6494
|
-
return W(l,
|
|
6496
|
+
return W(l, L, _);
|
|
6495
6497
|
};
|
|
6496
6498
|
}
|
|
6497
6499
|
};
|
|
@@ -6601,10 +6603,10 @@ function Xu(e, t, l) {
|
|
|
6601
6603
|
onInput: d,
|
|
6602
6604
|
onFocus: T,
|
|
6603
6605
|
onBlur: P
|
|
6604
|
-
}, F = {},
|
|
6605
|
-
|
|
6606
|
+
}, F = {}, K = [], Y = W(ir, N, F);
|
|
6607
|
+
K.push(Y);
|
|
6606
6608
|
const v = {
|
|
6607
|
-
default: () =>
|
|
6609
|
+
default: () => K
|
|
6608
6610
|
};
|
|
6609
6611
|
r.slots.default && (v.label = r.slots.default), r.slots.fixedTip && (v.fixedTip = r.slots.fixedTip);
|
|
6610
6612
|
const x = {
|
|
@@ -6616,9 +6618,9 @@ function Xu(e, t, l) {
|
|
|
6616
6618
|
if (r.slots.append)
|
|
6617
6619
|
v.append = r.slots.append;
|
|
6618
6620
|
else if (E.value) {
|
|
6619
|
-
const
|
|
6621
|
+
const O = {
|
|
6620
6622
|
class: h.value
|
|
6621
|
-
}, _ = W("div",
|
|
6623
|
+
}, _ = W("div", O, [n.unit]);
|
|
6622
6624
|
v.append = () => _;
|
|
6623
6625
|
}
|
|
6624
6626
|
return W(l, x, v);
|
|
@@ -6835,29 +6837,29 @@ function ac(e, t, l) {
|
|
|
6835
6837
|
}
|
|
6836
6838
|
},
|
|
6837
6839
|
n.prop ?? r.attrs.name
|
|
6838
|
-
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((
|
|
6840
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((J) => vt(n, J)).join(" ") : ""), S = (k, J, j, X = !0) => {
|
|
6839
6841
|
if (n.props && n.props.lazy === !0 || n.lazy === !0) {
|
|
6840
|
-
if (u.value ===
|
|
6842
|
+
if (u.value === k)
|
|
6841
6843
|
return;
|
|
6842
|
-
u.value =
|
|
6843
|
-
const
|
|
6844
|
+
u.value = k;
|
|
6845
|
+
const M = me(k);
|
|
6844
6846
|
if (X) {
|
|
6845
6847
|
const I = ge?.value.getCheckedNodes();
|
|
6846
6848
|
if (I)
|
|
6847
6849
|
if (n.multiple) {
|
|
6848
|
-
const
|
|
6850
|
+
const q = [];
|
|
6849
6851
|
I.forEach((z) => {
|
|
6850
6852
|
const fe = (z.pathNodes ?? []).map((re) => re.data);
|
|
6851
|
-
|
|
6852
|
-
}), s("update:pathNodes",
|
|
6853
|
+
q.push(fe);
|
|
6854
|
+
}), s("update:pathNodes", q);
|
|
6853
6855
|
} else {
|
|
6854
|
-
const z = (I[0]?.pathNodes ?? []).map((
|
|
6856
|
+
const z = (I[0]?.pathNodes ?? []).map((Q) => Q.data);
|
|
6855
6857
|
s("update:pathNodes", z);
|
|
6856
6858
|
}
|
|
6857
|
-
s("update:modelValue",
|
|
6859
|
+
s("update:modelValue", M), s("change", M);
|
|
6858
6860
|
}
|
|
6859
6861
|
}
|
|
6860
|
-
const B = na(n,
|
|
6862
|
+
const B = na(n, k, J, j);
|
|
6861
6863
|
if (B === null) {
|
|
6862
6864
|
if (f.value.length === 0 || f.value === null)
|
|
6863
6865
|
return;
|
|
@@ -6868,57 +6870,57 @@ function ac(e, t, l) {
|
|
|
6868
6870
|
if (B.length !== f.value.length)
|
|
6869
6871
|
V = !1;
|
|
6870
6872
|
else
|
|
6871
|
-
for (let
|
|
6872
|
-
const I = B[
|
|
6873
|
+
for (let M = 0; M < B.length; M++) {
|
|
6874
|
+
const I = B[M], q = f.value[M];
|
|
6873
6875
|
if (Array.isArray(I)) {
|
|
6874
|
-
if (!Array.isArray(
|
|
6876
|
+
if (!Array.isArray(q) || I.length !== q.length)
|
|
6875
6877
|
V = !1;
|
|
6876
6878
|
else
|
|
6877
6879
|
for (let z = 0; z < I.length; z++)
|
|
6878
|
-
if (!Bn(n, I[z],
|
|
6880
|
+
if (!Bn(n, I[z], q[z])) {
|
|
6879
6881
|
V = !1;
|
|
6880
6882
|
break;
|
|
6881
6883
|
}
|
|
6882
6884
|
} else
|
|
6883
|
-
Bn(n, I,
|
|
6885
|
+
Bn(n, I, q) || (V = !1);
|
|
6884
6886
|
if (!V)
|
|
6885
6887
|
break;
|
|
6886
6888
|
}
|
|
6887
6889
|
if (!V) {
|
|
6888
6890
|
f.value = B;
|
|
6889
|
-
let
|
|
6891
|
+
let M = [], I = [];
|
|
6890
6892
|
B.forEach((z) => {
|
|
6891
6893
|
if (Array.isArray(z)) {
|
|
6892
|
-
let
|
|
6894
|
+
let Q = [], fe = [];
|
|
6893
6895
|
for (let re of z)
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
+
Q.push(mt(n, re)), n.valueType === "text" ? fe.push(vt(n, re)) : n.valueType === "item" ? fe.push(re) : fe.push(mt(n, re));
|
|
6897
|
+
M.push(Q), I.push(fe);
|
|
6896
6898
|
} else
|
|
6897
|
-
|
|
6898
|
-
}), u.value =
|
|
6899
|
-
const
|
|
6900
|
-
X && (s("update:pathNodes", B), s("update:modelValue",
|
|
6899
|
+
M.push(mt(n, z)), n.valueType === "text" ? I.push(vt(n, z)) : n.valueType === "item" ? I.push(z) : I.push(mt(n, z));
|
|
6900
|
+
}), u.value = M;
|
|
6901
|
+
const q = me(I);
|
|
6902
|
+
X && (s("update:pathNodes", B), s("update:modelValue", q), s("change", q));
|
|
6901
6903
|
}
|
|
6902
6904
|
}, h = D([]), d = je(
|
|
6903
6905
|
b(() => n.lazyLoad),
|
|
6904
6906
|
"lazyLoad",
|
|
6905
6907
|
Ue.Near,
|
|
6906
|
-
(
|
|
6907
|
-
), m = lc(), g = async (
|
|
6908
|
-
if (
|
|
6909
|
-
const
|
|
6910
|
-
if (
|
|
6911
|
-
if (typeof
|
|
6912
|
-
let V =
|
|
6908
|
+
(k) => le(k)
|
|
6909
|
+
), m = lc(), g = async (k, J) => {
|
|
6910
|
+
if (k) {
|
|
6911
|
+
const j = await m.load("cascader", k, J);
|
|
6912
|
+
if (j.length > 0)
|
|
6913
|
+
if (typeof j[0] == "string") {
|
|
6914
|
+
let V = j.map((M) => rc(M));
|
|
6913
6915
|
h.value = V;
|
|
6914
6916
|
} else
|
|
6915
|
-
h.value =
|
|
6917
|
+
h.value = j;
|
|
6916
6918
|
}
|
|
6917
6919
|
};
|
|
6918
6920
|
ie(
|
|
6919
6921
|
[() => n.source, () => n.params],
|
|
6920
|
-
async ([
|
|
6921
|
-
g(
|
|
6922
|
+
async ([k, J]) => {
|
|
6923
|
+
g(k, J);
|
|
6922
6924
|
},
|
|
6923
6925
|
{ immediate: !(d.value || n.lazy) }
|
|
6924
6926
|
);
|
|
@@ -6926,18 +6928,18 @@ function ac(e, t, l) {
|
|
|
6926
6928
|
const T = () => {
|
|
6927
6929
|
w || (w = !0, g(n.source, n.params));
|
|
6928
6930
|
};
|
|
6929
|
-
ie([() => h.value, () => n.modelValue], ([
|
|
6930
|
-
S(
|
|
6931
|
+
ie([() => h.value, () => n.modelValue], ([k, J]) => {
|
|
6932
|
+
S(J, n.valueType, k, !1);
|
|
6931
6933
|
}), n.lazy && S(n.modelValue, "value", [], !1);
|
|
6932
6934
|
let P = null, A = D(!1);
|
|
6933
|
-
typeof n.remoteMethod == "function" && (P = async (
|
|
6934
|
-
if (
|
|
6935
|
+
typeof n.remoteMethod == "function" && (P = async (k) => {
|
|
6936
|
+
if (k != null) {
|
|
6935
6937
|
A.value = !0;
|
|
6936
6938
|
try {
|
|
6937
|
-
const
|
|
6938
|
-
h.value =
|
|
6939
|
-
} catch (
|
|
6940
|
-
console.error(
|
|
6939
|
+
const J = await n.remoteMethod(k);
|
|
6940
|
+
h.value = J;
|
|
6941
|
+
} catch (J) {
|
|
6942
|
+
console.error(J);
|
|
6941
6943
|
}
|
|
6942
6944
|
A.value = !1;
|
|
6943
6945
|
}
|
|
@@ -6945,44 +6947,44 @@ function ac(e, t, l) {
|
|
|
6945
6947
|
const E = D(!1), C = e, R = b(() => ({
|
|
6946
6948
|
[C]: !0
|
|
6947
6949
|
})), N = b(() => {
|
|
6948
|
-
let
|
|
6950
|
+
let k = {
|
|
6949
6951
|
label: n.textKey,
|
|
6950
6952
|
value: n.valueKey,
|
|
6951
6953
|
children: n.childrenKey
|
|
6952
6954
|
};
|
|
6953
|
-
return n.multiple === !0 && (
|
|
6954
|
-
const X = await m.load("cascader", n.source,
|
|
6955
|
-
|
|
6956
|
-
}),
|
|
6957
|
-
}), F = (
|
|
6958
|
-
n.allowCreate ? (s("update:modelValue",
|
|
6955
|
+
return n.multiple === !0 && (k.multiple = !0), n.props && Object.assign(k, n.props), n.lazy && (k.lazy = !0, k.lazyLoad = async (J, j) => {
|
|
6956
|
+
const X = await m.load("cascader", n.source, J, !0);
|
|
6957
|
+
j(X);
|
|
6958
|
+
}), k;
|
|
6959
|
+
}), F = (k) => {
|
|
6960
|
+
n.allowCreate ? (s("update:modelValue", k), s("change", k), u.value = k) : S(k, "value", h.value, !0);
|
|
6959
6961
|
};
|
|
6960
|
-
let
|
|
6961
|
-
const v = (
|
|
6962
|
-
let
|
|
6963
|
-
E.value = !0, $e(
|
|
6964
|
-
}, $ = (
|
|
6962
|
+
let K = pe(n, "hintText"), Y = D(!1);
|
|
6963
|
+
const v = (k) => {
|
|
6964
|
+
let j = k.target.value;
|
|
6965
|
+
E.value = !0, $e(K.value) || (Y.value = !0), s("focus", j, k);
|
|
6966
|
+
}, $ = (k) => {
|
|
6965
6967
|
setTimeout(() => {
|
|
6966
6968
|
Y.value && (Y.value = !1), E.value = !1;
|
|
6967
6969
|
}, 0);
|
|
6968
|
-
let
|
|
6969
|
-
n.maxLength &&
|
|
6970
|
+
let j = k.target.value;
|
|
6971
|
+
n.maxLength && j.length > Number(n.maxLength) && (j = j.slice(0, Number(n.maxLength))), U.value || s("blur", j, k);
|
|
6970
6972
|
}, x = () => {
|
|
6971
6973
|
s("clear", "");
|
|
6972
6974
|
}, H = D(!1);
|
|
6973
|
-
let
|
|
6975
|
+
let O = null;
|
|
6974
6976
|
const _ = () => {
|
|
6975
|
-
n.showTooltip && H.value === !1 && (
|
|
6977
|
+
n.showTooltip && H.value === !1 && (O && clearTimeout(O), O = setTimeout(() => {
|
|
6976
6978
|
H.value = !0;
|
|
6977
6979
|
}, 150));
|
|
6978
6980
|
}, y = () => {
|
|
6979
|
-
|
|
6980
|
-
},
|
|
6981
|
-
U.value =
|
|
6982
|
-
}, te = (
|
|
6983
|
-
s("remove-tag",
|
|
6984
|
-
}, ce = (
|
|
6985
|
-
s("expand-change",
|
|
6981
|
+
O && (clearTimeout(O), H.value = !1, O = null);
|
|
6982
|
+
}, L = b(() => H.value || Y.value), G = b(() => H.value ? p.value : K.value), U = D(!1), ee = (k) => {
|
|
6983
|
+
U.value = k, s("visible-change", k), k || s("selected");
|
|
6984
|
+
}, te = (k) => {
|
|
6985
|
+
s("remove-tag", k);
|
|
6986
|
+
}, ce = (k) => {
|
|
6987
|
+
s("expand-change", k);
|
|
6986
6988
|
}, ge = D();
|
|
6987
6989
|
return Re({
|
|
6988
6990
|
//使 input 获取焦点
|
|
@@ -6996,7 +6998,7 @@ function ac(e, t, l) {
|
|
|
6996
6998
|
// 选择checked nodes
|
|
6997
6999
|
getCheckedNodes: () => ge?.value.getCheckedNodes()
|
|
6998
7000
|
}), () => {
|
|
6999
|
-
const
|
|
7001
|
+
const J = {
|
|
7000
7002
|
...r.attrs,
|
|
7001
7003
|
ref: ge,
|
|
7002
7004
|
class: R.value,
|
|
@@ -7014,10 +7016,10 @@ function ac(e, t, l) {
|
|
|
7014
7016
|
onRemoveTag: te,
|
|
7015
7017
|
expandChange: ce
|
|
7016
7018
|
};
|
|
7017
|
-
typeof P == "function" && (
|
|
7018
|
-
const
|
|
7019
|
-
r.slots.option && (
|
|
7020
|
-
const X = [], B = W(rr,
|
|
7019
|
+
typeof P == "function" && (J["remote-method"] = P, J.loading = A.value);
|
|
7020
|
+
const j = {};
|
|
7021
|
+
r.slots.option && (j.default = r.slots.option), r.slots.empty && (j.empty = r.slots.empty);
|
|
7022
|
+
const X = [], B = W(rr, J, j);
|
|
7021
7023
|
X.push(B);
|
|
7022
7024
|
const V = {
|
|
7023
7025
|
default: () => X
|
|
@@ -7026,7 +7028,7 @@ function ac(e, t, l) {
|
|
|
7026
7028
|
const I = {
|
|
7027
7029
|
...Me(n, Dl),
|
|
7028
7030
|
hintText: G.value,
|
|
7029
|
-
hintVisible:
|
|
7031
|
+
hintVisible: L.value,
|
|
7030
7032
|
prop: `${n.prop ?? r.attrs.name}_item`,
|
|
7031
7033
|
onMouseover: _,
|
|
7032
7034
|
onMouseleave: y
|
|
@@ -7135,8 +7137,8 @@ function cc(e, t, l) {
|
|
|
7135
7137
|
onSelect: m
|
|
7136
7138
|
}, N = {};
|
|
7137
7139
|
r.slots.prepend && (N.prepend = r.slots.prepend), r.slots.append && (N.append = r.slots.append), r.slots.prefix && (N.prefix = r.slots.prefix), r.slots.suffix && (N.suffix = r.slots.suffix), r.slots.option && (N.default = r.slots.option);
|
|
7138
|
-
const F = [],
|
|
7139
|
-
F.push(
|
|
7140
|
+
const F = [], K = W(nr, R, N);
|
|
7141
|
+
F.push(K);
|
|
7140
7142
|
const Y = {
|
|
7141
7143
|
default: () => F
|
|
7142
7144
|
};
|
|
@@ -7521,13 +7523,13 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7521
7523
|
setup(e, { emit: t, attrs: l }) {
|
|
7522
7524
|
let n = [];
|
|
7523
7525
|
const r = D([]), a = b(() => r.value.filter((y) => y.label === "" || y.type ? !1 : y.fixed === "" || y.fixed === !0 || y.fixed === "left")), o = b(() => r.value.filter((y) => y.label === "" || y.type ? !1 : y.fixed === "right")), s = b(() => r.value.filter((y) => !(y.label === "" || y.type || y.fixed !== void 0))), i = b(() => (a.value.length > 0 || o.value.length > 0) && s.value.length > 0), c = b(() => a.value.length > 0), u = b(() => o.value.length > 0), f = (y) => y.length > 1, p = (y) => {
|
|
7524
|
-
const
|
|
7525
|
-
r.value = y.map((U, ee) => (!(U.label === "" || U.type) && U.visible !== !1 &&
|
|
7526
|
-
}, S = (y) => y ? y.type ? y.type : y.label ? y.prop : "" : "", h = (y,
|
|
7527
|
-
if (y.length !==
|
|
7526
|
+
const L = [];
|
|
7527
|
+
r.value = y.map((U, ee) => (!(U.label === "" || U.type) && U.visible !== !1 && L.push(U.prop), { ...U, sortIndex: ee })), s.value.length + a.value.length + o.value.length === L.length ? w.value = !0 : L.length > 0 && (T.value = !0), E.value = L;
|
|
7528
|
+
}, S = (y) => y ? y.type ? y.type : y.label ? y.prop : "" : "", h = (y, L) => {
|
|
7529
|
+
if (y.length !== L.length)
|
|
7528
7530
|
return !1;
|
|
7529
7531
|
const G = y.map((U) => S(U));
|
|
7530
|
-
for (let U of
|
|
7532
|
+
for (let U of L) {
|
|
7531
7533
|
const ee = S(U);
|
|
7532
7534
|
if (G.indexOf(ee) === -1)
|
|
7533
7535
|
return !1;
|
|
@@ -7535,17 +7537,17 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7535
7537
|
return !0;
|
|
7536
7538
|
}, d = (y) => {
|
|
7537
7539
|
if (!y) {
|
|
7538
|
-
const
|
|
7539
|
-
n = G.map((U, ee) => ({ ...U, sortIndex: ee })), y =
|
|
7540
|
+
const L = e.tableRef.getColumnSetting(), G = L.srcColumnPropertyList;
|
|
7541
|
+
n = G.map((U, ee) => ({ ...U, sortIndex: ee })), y = L.columnPropertyList, y && y.length > 0 && h(G, y) || (y = G);
|
|
7540
7542
|
}
|
|
7541
7543
|
p(y);
|
|
7542
7544
|
}, m = () => {
|
|
7543
7545
|
e.tableRef.setColumnSetting(r.value);
|
|
7544
7546
|
}, g = b(() => ({ "max-width": `${e.popoverWidth - 125}px` })), w = D(!1), T = D(!1), P = (y) => {
|
|
7545
|
-
const
|
|
7547
|
+
const L = [];
|
|
7546
7548
|
r.value.forEach((U) => {
|
|
7547
|
-
y && !(U.label === "" || U.type) &&
|
|
7548
|
-
}), w.value = !1, T.value = !1, s.value.length + a.value.length + o.value.length ===
|
|
7549
|
+
y && !(U.label === "" || U.type) && L.push(U.prop), U.visible = y;
|
|
7550
|
+
}), w.value = !1, T.value = !1, s.value.length + a.value.length + o.value.length === L.length ? w.value = !0 : L.length > 0 && (T.value = !0), E.value = L, m();
|
|
7549
7551
|
}, A = () => {
|
|
7550
7552
|
d(n), m();
|
|
7551
7553
|
}, E = D([]), C = (y) => {
|
|
@@ -7555,8 +7557,8 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7555
7557
|
const U = y.indexOf(G.prop) !== -1;
|
|
7556
7558
|
G.visible = U;
|
|
7557
7559
|
}), w.value = !1, T.value = !1;
|
|
7558
|
-
const
|
|
7559
|
-
y.length ===
|
|
7560
|
+
const L = s.value.length + a.value.length + o.value.length;
|
|
7561
|
+
y.length === L ? w.value = !0 : y.length > 0 && (T.value = !0), m();
|
|
7560
7562
|
}, R = () => {
|
|
7561
7563
|
d();
|
|
7562
7564
|
};
|
|
@@ -7587,16 +7589,16 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7587
7589
|
handleCheckChange: C,
|
|
7588
7590
|
onShow: R,
|
|
7589
7591
|
onDragStart: (y) => {
|
|
7590
|
-
const
|
|
7591
|
-
|
|
7592
|
+
const L = y.currentTarget;
|
|
7593
|
+
L && L.dataset && (N.roleType = L.dataset.roleType, N.index = L.dataset.index);
|
|
7592
7594
|
},
|
|
7593
7595
|
onDragEnd: (y) => {
|
|
7594
7596
|
N.currentRow && (N.currentRow.classList.remove("is-dragover"), N.currentRow = null), N.index = null, N.roleType = null;
|
|
7595
7597
|
},
|
|
7596
7598
|
onDragOver: (y) => {
|
|
7597
|
-
const
|
|
7599
|
+
const L = y.currentTarget;
|
|
7598
7600
|
y.relatedTarget;
|
|
7599
|
-
const G = F(
|
|
7601
|
+
const G = F(L);
|
|
7600
7602
|
if (!G)
|
|
7601
7603
|
return;
|
|
7602
7604
|
const U = G.dataset && G.dataset.roleType;
|
|
@@ -7606,7 +7608,7 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7606
7608
|
y.preventDefault(), N.currentRow && (N.currentRow.classList.remove("is-dragover"), N.currentRow = null);
|
|
7607
7609
|
},
|
|
7608
7610
|
onDrop: (y) => {
|
|
7609
|
-
const
|
|
7611
|
+
const L = y.currentTarget, G = F(L);
|
|
7610
7612
|
if (!G)
|
|
7611
7613
|
return;
|
|
7612
7614
|
const U = G.dataset && G.dataset.roleType;
|
|
@@ -7626,16 +7628,16 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7626
7628
|
}
|
|
7627
7629
|
},
|
|
7628
7630
|
toLeftFixed: (y) => {
|
|
7629
|
-
const
|
|
7630
|
-
|
|
7631
|
+
const L = r.value[y];
|
|
7632
|
+
L.fixed = "left", m();
|
|
7631
7633
|
},
|
|
7632
7634
|
toRightFixed: (y) => {
|
|
7633
|
-
const
|
|
7634
|
-
|
|
7635
|
+
const L = r.value[y];
|
|
7636
|
+
L.fixed = "right", m();
|
|
7635
7637
|
},
|
|
7636
7638
|
toUnFixed: (y) => {
|
|
7637
|
-
const
|
|
7638
|
-
|
|
7639
|
+
const L = r.value[y];
|
|
7640
|
+
L.fixed = void 0, m();
|
|
7639
7641
|
},
|
|
7640
7642
|
checkboxLabelStyle: g
|
|
7641
7643
|
};
|
|
@@ -8269,9 +8271,9 @@ function af(e, t, l) {
|
|
|
8269
8271
|
"lazyLoad",
|
|
8270
8272
|
Ue.Near,
|
|
8271
8273
|
(I) => le(I)
|
|
8272
|
-
), R = async (I,
|
|
8274
|
+
), R = async (I, q, z, Q) => {
|
|
8273
8275
|
try {
|
|
8274
|
-
const fe = await P.load("table", I,
|
|
8276
|
+
const fe = await P.load("table", I, q, z, Q, A, a.value);
|
|
8275
8277
|
w.value = fe.totalSize, T.value = fe.page;
|
|
8276
8278
|
} catch (fe) {
|
|
8277
8279
|
console.error("[FoxUI] Load Table Data Fail", fe), w.value = 0, T.value = [];
|
|
@@ -8280,170 +8282,170 @@ function af(e, t, l) {
|
|
|
8280
8282
|
o("loaded-data");
|
|
8281
8283
|
}, 250);
|
|
8282
8284
|
};
|
|
8283
|
-
ie([p, h], ([I,
|
|
8284
|
-
|
|
8285
|
+
ie([p, h], ([I, q], [z, Q]) => {
|
|
8286
|
+
q !== Q && (p.value = 1, I = 1), R(n.data, I, q, g.value);
|
|
8285
8287
|
}), ie(
|
|
8286
8288
|
[() => n.data, g],
|
|
8287
|
-
([I,
|
|
8288
|
-
E() && (I !== z && (A = !0), !(!Array.isArray(I) && bt(I, z) && bt(
|
|
8289
|
+
([I, q], [z, Q]) => {
|
|
8290
|
+
E() && (I !== z && (A = !0), !(!Array.isArray(I) && bt(I, z) && bt(q, Q)) && R(I, p.value, h.value, q));
|
|
8289
8291
|
},
|
|
8290
8292
|
{ deep: !0 }
|
|
8291
8293
|
);
|
|
8292
|
-
const N = (I = {},
|
|
8293
|
-
m.value = me(I ?? {}), et(m),
|
|
8294
|
+
const N = (I = {}, q = !1) => new Promise((z) => {
|
|
8295
|
+
m.value = me(I ?? {}), et(m), q || (p.value = n.pageIndex ?? 1), yt(async () => {
|
|
8294
8296
|
await R(n.data, p.value, h.value, g.value), z();
|
|
8295
8297
|
});
|
|
8296
8298
|
}), F = () => {
|
|
8297
8299
|
w.value = 0, T.value = [];
|
|
8298
8300
|
};
|
|
8299
|
-
let
|
|
8301
|
+
let K = !1;
|
|
8300
8302
|
const Y = () => {
|
|
8301
|
-
|
|
8303
|
+
K || (K = !0, N());
|
|
8302
8304
|
};
|
|
8303
8305
|
E() && !C.value && N();
|
|
8304
8306
|
const v = D(null);
|
|
8305
8307
|
Oe(lf, {
|
|
8306
8308
|
currentRow: v
|
|
8307
8309
|
});
|
|
8308
|
-
const $ = (I,
|
|
8309
|
-
v.value = I, o("current-change", I,
|
|
8310
|
-
}, x = (I,
|
|
8311
|
-
o("row-click", I,
|
|
8312
|
-
}, H = [],
|
|
8313
|
-
if (o("expand-change", I,
|
|
8314
|
-
if (Array.isArray(
|
|
8310
|
+
const $ = (I, q) => {
|
|
8311
|
+
v.value = I, o("current-change", I, q);
|
|
8312
|
+
}, x = (I, q, z) => {
|
|
8313
|
+
o("row-click", I, q, z), le(n.rowClickSelectable) === !0 && M?.value.toggleRowSelection(I);
|
|
8314
|
+
}, H = [], O = (I, q) => {
|
|
8315
|
+
if (o("expand-change", I, q), le(n.uniqueExpansion))
|
|
8316
|
+
if (Array.isArray(q) && q.length == 0) {
|
|
8315
8317
|
const z = H.length;
|
|
8316
8318
|
H.splice(0, z);
|
|
8317
8319
|
} else {
|
|
8318
|
-
H.forEach((
|
|
8319
|
-
|
|
8320
|
+
H.forEach((Q) => {
|
|
8321
|
+
Q !== I && M?.value.toggleRowExpansion(Q, !1);
|
|
8320
8322
|
});
|
|
8321
8323
|
const z = H.length;
|
|
8322
8324
|
H.splice(0, z, I);
|
|
8323
8325
|
}
|
|
8324
|
-
}, _ = r.attrs.id ?? n.prop ?? r.attrs.name, y = nf(),
|
|
8326
|
+
}, _ = r.attrs.id ?? n.prop ?? r.attrs.name, y = nf(), L = D([]);
|
|
8325
8327
|
let G = [];
|
|
8326
8328
|
const U = () => ({
|
|
8327
|
-
srcColumnPropertyList: G.map((
|
|
8328
|
-
columnPropertyList:
|
|
8329
|
+
srcColumnPropertyList: G.map((q) => ({ ...q })),
|
|
8330
|
+
columnPropertyList: L.value
|
|
8329
8331
|
}), ee = (I) => {
|
|
8330
|
-
|
|
8332
|
+
L.value = [...I], ce();
|
|
8331
8333
|
}, te = async () => {
|
|
8332
8334
|
const I = await y.load(_);
|
|
8333
|
-
I && (
|
|
8335
|
+
I && (L.value = I);
|
|
8334
8336
|
}, ce = () => {
|
|
8335
|
-
y.save(_,
|
|
8337
|
+
y.save(_, L.value);
|
|
8336
8338
|
}, ge = () => {
|
|
8337
8339
|
y.remove(_);
|
|
8338
8340
|
};
|
|
8339
8341
|
te();
|
|
8340
|
-
const
|
|
8342
|
+
const k = (I) => I ? I.type ? I.type : I.label ? I.prop : "" : "", J = b(() => {
|
|
8341
8343
|
if (typeof r.slots.default == "function") {
|
|
8342
|
-
const I = r.slots.default(),
|
|
8344
|
+
const I = r.slots.default(), q = /* @__PURE__ */ new Map();
|
|
8343
8345
|
if (G = [], I.forEach((z) => {
|
|
8344
|
-
const
|
|
8345
|
-
if (!
|
|
8346
|
+
const Q = z;
|
|
8347
|
+
if (!Q.props)
|
|
8346
8348
|
return;
|
|
8347
|
-
const fe =
|
|
8348
|
-
|
|
8349
|
+
const fe = k(Q.props);
|
|
8350
|
+
q.set(fe, z);
|
|
8349
8351
|
const re = {
|
|
8350
8352
|
label: "",
|
|
8351
8353
|
prop: ""
|
|
8352
8354
|
};
|
|
8353
|
-
Object.assign(re,
|
|
8354
|
-
}),
|
|
8355
|
+
Object.assign(re, Q.props), G.push(re);
|
|
8356
|
+
}), L.value.length === G.length) {
|
|
8355
8357
|
const z = [];
|
|
8356
|
-
for (let
|
|
8357
|
-
const fe =
|
|
8358
|
+
for (let Q of L.value) {
|
|
8359
|
+
const fe = k(Q), re = q.get(fe);
|
|
8358
8360
|
if (!re)
|
|
8359
8361
|
return I;
|
|
8360
|
-
if (
|
|
8362
|
+
if (Q.visible === !1)
|
|
8361
8363
|
continue;
|
|
8362
8364
|
const Ke = re;
|
|
8363
|
-
Ke.props.fixed =
|
|
8365
|
+
Ke.props.fixed = Q.fixed, z.push(Ke);
|
|
8364
8366
|
}
|
|
8365
8367
|
return z;
|
|
8366
8368
|
}
|
|
8367
8369
|
return I;
|
|
8368
8370
|
}
|
|
8369
8371
|
return [];
|
|
8370
|
-
}),
|
|
8371
|
-
const z = `${
|
|
8372
|
-
return
|
|
8373
|
-
}, B = (I) => typeof I == "function" ? (
|
|
8372
|
+
}), j = An(/* @__PURE__ */ new Map()), X = ({ column: I, rowIndex: q }) => {
|
|
8373
|
+
const z = `${q}_${I.property}`;
|
|
8374
|
+
return j.value.get(z) ?? "";
|
|
8375
|
+
}, B = (I) => typeof I == "function" ? (q) => {
|
|
8374
8376
|
const z = [];
|
|
8375
|
-
let
|
|
8376
|
-
return
|
|
8377
|
-
} : X, V = (I,
|
|
8378
|
-
const
|
|
8379
|
-
z ?
|
|
8380
|
-
},
|
|
8377
|
+
let Q = X(q);
|
|
8378
|
+
return Q && z.push(Q), Q = I(q), Q && z.push(Q), z.length === 0 ? "" : z.join(" ");
|
|
8379
|
+
} : X, V = (I, q, z) => {
|
|
8380
|
+
const Q = `${I}_${q}`;
|
|
8381
|
+
z ? j.value.set(Q, z) : j.value.delete(Q), et(j);
|
|
8382
|
+
}, M = D();
|
|
8381
8383
|
return Re({
|
|
8382
8384
|
// 清空selection
|
|
8383
|
-
clearSelection: () =>
|
|
8384
|
-
getSelectionRows: () =>
|
|
8385
|
+
clearSelection: () => M?.value.clearSelection(),
|
|
8386
|
+
getSelectionRows: () => M?.value.getSelectionRows(),
|
|
8385
8387
|
// 设置check列的选中状态
|
|
8386
|
-
toggleRowSelection: (I,
|
|
8387
|
-
|
|
8388
|
+
toggleRowSelection: (I, q) => {
|
|
8389
|
+
M?.value.toggleRowSelection(I, q);
|
|
8388
8390
|
},
|
|
8389
8391
|
// 通过属性映射设置check列的选中状态
|
|
8390
|
-
toggleRowSelectionByProp: (I,
|
|
8392
|
+
toggleRowSelectionByProp: (I, q) => {
|
|
8391
8393
|
if (!T.value)
|
|
8392
8394
|
return;
|
|
8393
8395
|
const z = Tn(T.value, I);
|
|
8394
|
-
z.length !== 0 && z.forEach((
|
|
8395
|
-
|
|
8396
|
+
z.length !== 0 && z.forEach((Q) => {
|
|
8397
|
+
M?.value.toggleRowSelection(Q, q);
|
|
8396
8398
|
});
|
|
8397
8399
|
},
|
|
8398
8400
|
// 触发所有行的check列的状态改变
|
|
8399
8401
|
toggleAllSelection: () => {
|
|
8400
|
-
|
|
8402
|
+
M?.value.toggleAllSelection();
|
|
8401
8403
|
},
|
|
8402
8404
|
//触发row展开
|
|
8403
|
-
toggleRowExpansion: (I,
|
|
8404
|
-
|
|
8405
|
+
toggleRowExpansion: (I, q) => {
|
|
8406
|
+
M?.value.toggleRowExpansion(I, q);
|
|
8405
8407
|
},
|
|
8406
8408
|
//通过属性触发row展开
|
|
8407
|
-
toggleRowExpansionByProp: (I,
|
|
8409
|
+
toggleRowExpansionByProp: (I, q) => {
|
|
8408
8410
|
if (!T.value)
|
|
8409
8411
|
return;
|
|
8410
8412
|
const z = Tn(T.value, I);
|
|
8411
|
-
z.length !== 0 && z.forEach((
|
|
8412
|
-
|
|
8413
|
+
z.length !== 0 && z.forEach((Q) => {
|
|
8414
|
+
M?.value.toggleRowExpansion(Q, q);
|
|
8413
8415
|
});
|
|
8414
8416
|
},
|
|
8415
8417
|
// 设置选中行(单行选中)
|
|
8416
8418
|
setCurrentRow: (I) => {
|
|
8417
|
-
|
|
8419
|
+
M?.value.setCurrentRow(I);
|
|
8418
8420
|
},
|
|
8419
8421
|
// 通过属性映射设置选中行(单行选中)
|
|
8420
8422
|
setCurrentRowByProp: (I) => {
|
|
8421
8423
|
if (!T.value)
|
|
8422
8424
|
return;
|
|
8423
|
-
const
|
|
8424
|
-
|
|
8425
|
+
const q = Tn(T.value, I);
|
|
8426
|
+
q.length !== 0 && M?.value.setCurrentRow(q[0]);
|
|
8425
8427
|
},
|
|
8426
8428
|
getCurrentRow: () => v.value,
|
|
8427
8429
|
clearSort: () => {
|
|
8428
|
-
|
|
8430
|
+
M?.value.clearSort();
|
|
8429
8431
|
},
|
|
8430
8432
|
clearFilter: (I) => {
|
|
8431
|
-
|
|
8433
|
+
M?.value.clearFilter(I);
|
|
8432
8434
|
},
|
|
8433
8435
|
doLayout: () => {
|
|
8434
|
-
|
|
8436
|
+
M?.value.doLayout();
|
|
8435
8437
|
},
|
|
8436
|
-
sort: (I,
|
|
8437
|
-
|
|
8438
|
+
sort: (I, q) => {
|
|
8439
|
+
M?.value.sort(I, q);
|
|
8438
8440
|
},
|
|
8439
|
-
scrollTo: (I,
|
|
8440
|
-
|
|
8441
|
+
scrollTo: (I, q) => {
|
|
8442
|
+
M?.value.scrollTo(I, q);
|
|
8441
8443
|
},
|
|
8442
8444
|
setScrollTop: (I) => {
|
|
8443
|
-
|
|
8445
|
+
M?.value.setScrollTop(I);
|
|
8444
8446
|
},
|
|
8445
8447
|
setScrollLeft: (I) => {
|
|
8446
|
-
|
|
8448
|
+
M?.value.setScrollLeft(I);
|
|
8447
8449
|
},
|
|
8448
8450
|
// 加载数据
|
|
8449
8451
|
loadData: N,
|
|
@@ -8474,19 +8476,19 @@ function af(e, t, l) {
|
|
|
8474
8476
|
// 设置cell class name
|
|
8475
8477
|
setCellClassName: V
|
|
8476
8478
|
}), () => {
|
|
8477
|
-
const
|
|
8479
|
+
const q = {
|
|
8478
8480
|
...r.attrs,
|
|
8479
8481
|
onCurrentChange: $,
|
|
8480
8482
|
onRowClick: x,
|
|
8481
|
-
onExpandChange:
|
|
8483
|
+
onExpandChange: O,
|
|
8482
8484
|
data: T.value,
|
|
8483
|
-
ref:
|
|
8485
|
+
ref: M,
|
|
8484
8486
|
class: i.value,
|
|
8485
8487
|
"cell-class-name": B(n.cellClassName)
|
|
8486
8488
|
}, z = {};
|
|
8487
|
-
r.slots.default && (z.default = () =>
|
|
8488
|
-
const
|
|
8489
|
-
|
|
8489
|
+
r.slots.default && (z.default = () => J.value), r.slots.append && (z.append = r.slots.append), r.slots.empty && (z.empty = r.slots.empty);
|
|
8490
|
+
const Q = [], fe = W(pr, q, z);
|
|
8491
|
+
Q.push(fe);
|
|
8490
8492
|
let re = null;
|
|
8491
8493
|
if (typeof r.slots.pagination == "function")
|
|
8492
8494
|
re = r.slots.pagination();
|
|
@@ -8515,11 +8517,11 @@ function af(e, t, l) {
|
|
|
8515
8517
|
);
|
|
8516
8518
|
ft.push(ca);
|
|
8517
8519
|
const fa = W("div", { class: u.value }, ft);
|
|
8518
|
-
|
|
8520
|
+
Q.push(fa);
|
|
8519
8521
|
} else
|
|
8520
|
-
re &&
|
|
8522
|
+
re && Q.push(re);
|
|
8521
8523
|
const Ke = {
|
|
8522
|
-
default: () =>
|
|
8524
|
+
default: () => Q
|
|
8523
8525
|
}, Qe = { ...Me(n, Ol, ql, En), prop: `${n.prop}_item` };
|
|
8524
8526
|
return Qe.contentClass = `${s}__wrap`, Qe.errorMarkClass = "is-table-error", C.value && E() && (Qe["appear-listen"] = !0, Qe.onAppear = Y), W(l, Qe, Ke);
|
|
8525
8527
|
};
|
|
@@ -8713,16 +8715,16 @@ function vf(e, t, l) {
|
|
|
8713
8715
|
},
|
|
8714
8716
|
n.prop ?? r.attrs.name
|
|
8715
8717
|
), i = D(null), c = D(null), u = (C, R, N, F = !0) => {
|
|
8716
|
-
const
|
|
8717
|
-
if (
|
|
8718
|
+
const K = gf(n, C, R, N);
|
|
8719
|
+
if (K === null) {
|
|
8718
8720
|
if (c.value === null)
|
|
8719
8721
|
return;
|
|
8720
8722
|
c.value = null, i.value = null, F && (s("update:modelValue", null), s("change", null));
|
|
8721
8723
|
return;
|
|
8722
8724
|
}
|
|
8723
|
-
if (!aa(n,
|
|
8725
|
+
if (!aa(n, K, c.value)) {
|
|
8724
8726
|
i.value = C;
|
|
8725
|
-
const v = me(
|
|
8727
|
+
const v = me(K);
|
|
8726
8728
|
c.value = v;
|
|
8727
8729
|
let $ = null;
|
|
8728
8730
|
n.valueType === "text" ? $ = It(n, v) : n.valueType === "item" ? $ = v : $ = Ht(n, v), F && (s("update:modelValue", $), s("change", $));
|
|
@@ -8766,11 +8768,11 @@ function vf(e, t, l) {
|
|
|
8766
8768
|
let P = pe(n, "hintText"), A = pe(n, "hintVisible");
|
|
8767
8769
|
const E = (C, R) => {
|
|
8768
8770
|
const N = [];
|
|
8769
|
-
return C.forEach((F,
|
|
8771
|
+
return C.forEach((F, K) => {
|
|
8770
8772
|
const Y = Ht(n, F), v = It(n, F);
|
|
8771
8773
|
let $ = ff(n, F);
|
|
8772
8774
|
a.value === !0 && ($ = a.value), o.value === !0 && ($ = o.value);
|
|
8773
|
-
const x = pf(n, F,
|
|
8775
|
+
const x = pf(n, F, K) ?? {}, H = `${Y}_${K}`, O = {
|
|
8774
8776
|
...x,
|
|
8775
8777
|
key: H,
|
|
8776
8778
|
label: Y,
|
|
@@ -8778,7 +8780,7 @@ function vf(e, t, l) {
|
|
|
8778
8780
|
size: n.size,
|
|
8779
8781
|
border: le(n.border)
|
|
8780
8782
|
};
|
|
8781
|
-
n.itemType === "button" ? N.push(W(cr,
|
|
8783
|
+
n.itemType === "button" ? N.push(W(cr, O, { default: () => [v] })) : typeof R == "function" ? N.push(W(In, O, { default: () => R(F) })) : N.push(W(In, O, { default: () => [v] }));
|
|
8782
8784
|
}), N;
|
|
8783
8785
|
};
|
|
8784
8786
|
return () => {
|
|
@@ -8792,8 +8794,8 @@ function vf(e, t, l) {
|
|
|
8792
8794
|
onChange: T
|
|
8793
8795
|
}, N = [], F = {};
|
|
8794
8796
|
r.slots.options ? F.default = r.slots.options : F.default = () => E(f.value, r.slots.text);
|
|
8795
|
-
const
|
|
8796
|
-
N.push(
|
|
8797
|
+
const K = W(fr, R, F);
|
|
8798
|
+
N.push(K);
|
|
8797
8799
|
const Y = {
|
|
8798
8800
|
default: () => N
|
|
8799
8801
|
};
|
|
@@ -9008,28 +9010,28 @@ function Af(e, t, l) {
|
|
|
9008
9010
|
},
|
|
9009
9011
|
n.prop ?? r.attrs.name
|
|
9010
9012
|
), i = D([]), c = D([]), u = (C, R, N, F = !0) => {
|
|
9011
|
-
const
|
|
9012
|
-
if (
|
|
9013
|
+
const K = Ef(n, C, R, N);
|
|
9014
|
+
if (K === null) {
|
|
9013
9015
|
if (c.value === null || c.value.length === 0)
|
|
9014
9016
|
return;
|
|
9015
9017
|
i.value = [], c.value = [], F && (s("update:modelValue", []), s("change", []));
|
|
9016
9018
|
return;
|
|
9017
9019
|
}
|
|
9018
9020
|
let Y = !0;
|
|
9019
|
-
if (
|
|
9021
|
+
if (K.length !== c.value.length)
|
|
9020
9022
|
Y = !1;
|
|
9021
9023
|
else
|
|
9022
|
-
for (let v = 0; v <
|
|
9023
|
-
const $ =
|
|
9024
|
+
for (let v = 0; v < K.length; v++) {
|
|
9025
|
+
const $ = K[v], x = c.value[v];
|
|
9024
9026
|
if (!oa(n, $, x)) {
|
|
9025
9027
|
Y = !1;
|
|
9026
9028
|
break;
|
|
9027
9029
|
}
|
|
9028
9030
|
}
|
|
9029
9031
|
if (!Y) {
|
|
9030
|
-
c.value =
|
|
9032
|
+
c.value = K;
|
|
9031
9033
|
let v = [], $ = [];
|
|
9032
|
-
|
|
9034
|
+
K.forEach((H) => {
|
|
9033
9035
|
v.push(Ct(n, H)), n.valueType === "text" ? $.push(Vt(n, H)) : n.valueType === "item" ? $.push(H) : $.push(Ct(n, H));
|
|
9034
9036
|
}), i.value = v;
|
|
9035
9037
|
const x = me($);
|
|
@@ -9074,11 +9076,11 @@ function Af(e, t, l) {
|
|
|
9074
9076
|
let P = pe(n, "hintText"), A = pe(n, "hintVisible");
|
|
9075
9077
|
const E = (C, R) => {
|
|
9076
9078
|
const N = [];
|
|
9077
|
-
return C.forEach((F,
|
|
9079
|
+
return C.forEach((F, K) => {
|
|
9078
9080
|
const Y = Ct(n, F), v = Vt(n, F);
|
|
9079
9081
|
let $ = Sf(n, F);
|
|
9080
9082
|
a.value === !0 && ($ = a.value), o.value === !0 && ($ = o.value);
|
|
9081
|
-
const x = Nf(n, F,
|
|
9083
|
+
const x = Nf(n, F, K) ?? {}, H = `${Y}_${K}`, O = {
|
|
9082
9084
|
...x,
|
|
9083
9085
|
key: H,
|
|
9084
9086
|
class: n.itemClass,
|
|
@@ -9087,7 +9089,7 @@ function Af(e, t, l) {
|
|
|
9087
9089
|
size: n.size,
|
|
9088
9090
|
border: le(n.border)
|
|
9089
9091
|
};
|
|
9090
|
-
n.itemType === "button" ? N.push(W(ar,
|
|
9092
|
+
n.itemType === "button" ? N.push(W(ar, O, { default: () => [v] })) : typeof R == "function" ? N.push(W(Mt, O, { default: () => R(F) })) : N.push(W(Mt, O, { default: () => [v] }));
|
|
9091
9093
|
}), N;
|
|
9092
9094
|
};
|
|
9093
9095
|
return () => {
|
|
@@ -9103,8 +9105,8 @@ function Af(e, t, l) {
|
|
|
9103
9105
|
onChange: T
|
|
9104
9106
|
}, N = [], F = {};
|
|
9105
9107
|
r.slots.options ? F.default = r.slots.options : F.default = () => E(f.value, r.slots.text);
|
|
9106
|
-
const
|
|
9107
|
-
N.push(
|
|
9108
|
+
const K = W(zn, R, F);
|
|
9109
|
+
N.push(K);
|
|
9108
9110
|
const Y = {
|
|
9109
9111
|
default: () => N
|
|
9110
9112
|
};
|
|
@@ -10225,9 +10227,9 @@ const Hd = () => {
|
|
|
10225
10227
|
return;
|
|
10226
10228
|
const { key: m, altKey: g, ctrlKey: w, metaKey: T, currentTarget: P, shiftKey: A } = d, { loop: E } = e, C = m === "Tab" && !g && !w && !T, R = document.activeElement;
|
|
10227
10229
|
if (C && R) {
|
|
10228
|
-
const N = P, [F,
|
|
10229
|
-
if (F &&
|
|
10230
|
-
if (!A && R ===
|
|
10230
|
+
const N = P, [F, K] = _d(N);
|
|
10231
|
+
if (F && K) {
|
|
10232
|
+
if (!A && R === K) {
|
|
10231
10233
|
const v = Zt({
|
|
10232
10234
|
focusReason: o.value
|
|
10233
10235
|
});
|
|
@@ -10236,7 +10238,7 @@ const Hd = () => {
|
|
|
10236
10238
|
const v = Zt({
|
|
10237
10239
|
focusReason: o.value
|
|
10238
10240
|
});
|
|
10239
|
-
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(
|
|
10241
|
+
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(K, !0));
|
|
10240
10242
|
}
|
|
10241
10243
|
} else if (R === N) {
|
|
10242
10244
|
const v = Zt({
|
|
@@ -10485,7 +10487,7 @@ const Hd = () => {
|
|
|
10485
10487
|
[`${l}__collapse-icon`]: !0,
|
|
10486
10488
|
"is-expand": !C.value,
|
|
10487
10489
|
"is-collapse": C.value
|
|
10488
|
-
})), T = D(), P = D(), A = b(() => Fe(e.height) || ""), E = b(() => Fe(e.width) || ""), C = D(le(e.collapse)), R = (V,
|
|
10490
|
+
})), T = D(), P = D(), A = b(() => Fe(e.height) || ""), E = b(() => Fe(e.width) || ""), C = D(le(e.collapse)), R = (V, M = !0) => {
|
|
10489
10491
|
C.value !== V && (C.value = V, V ? G() : U(), t("update:collapse", V));
|
|
10490
10492
|
};
|
|
10491
10493
|
ie(
|
|
@@ -10500,26 +10502,26 @@ const Hd = () => {
|
|
|
10500
10502
|
V = V ?? !C.value, R(V);
|
|
10501
10503
|
};
|
|
10502
10504
|
Oe(Zd, !0);
|
|
10503
|
-
const
|
|
10505
|
+
const K = {
|
|
10504
10506
|
setCollapse: R,
|
|
10505
10507
|
setFixedNavVisible: (V) => {
|
|
10506
10508
|
_.value = V;
|
|
10507
10509
|
}
|
|
10508
10510
|
};
|
|
10509
|
-
Oe(Jd,
|
|
10511
|
+
Oe(Jd, K);
|
|
10510
10512
|
const Y = () => {
|
|
10511
|
-
typeof
|
|
10513
|
+
typeof K.beforeClose == "function" ? K.beforeClose(() => {
|
|
10512
10514
|
n.value = !1;
|
|
10513
10515
|
}) : n.value = !1;
|
|
10514
10516
|
}, v = D(null), $ = b(() => !e.fixedNavTeleport), x = b(() => {
|
|
10515
10517
|
const V = ["fox-floating-window__fixednav"];
|
|
10516
10518
|
return e.expandClass && V.push(e.expandClass), e.collapsePosition === "left" ? V.push("is-left") : e.collapsePosition === "right" && V.push("is-right"), V;
|
|
10517
|
-
}), H = D(""),
|
|
10519
|
+
}), H = D(""), O = b(() => {
|
|
10518
10520
|
const V = {};
|
|
10519
10521
|
return H.value ? V.top = H.value : e.collapseTop && (V.top = e.collapseTop), V;
|
|
10520
10522
|
}), _ = D(C.value);
|
|
10521
10523
|
let y = null;
|
|
10522
|
-
const
|
|
10524
|
+
const L = () => {
|
|
10523
10525
|
typeof y == "function" && (y(), y = null);
|
|
10524
10526
|
}, G = () => {
|
|
10525
10527
|
v.value && v.value.classList.add("slide-in"), _.value = !0, y = () => {
|
|
@@ -10531,39 +10533,39 @@ const Hd = () => {
|
|
|
10531
10533
|
};
|
|
10532
10534
|
}, ee = () => {
|
|
10533
10535
|
o.value = null, s.value = null, i.value = null, c.value = null;
|
|
10534
|
-
}, te = { x: 0, y: 0 },
|
|
10536
|
+
}, te = { x: 0, y: 0 }, k = Kl((V) => {
|
|
10535
10537
|
if (!T.value)
|
|
10536
10538
|
return;
|
|
10537
|
-
const
|
|
10539
|
+
const M = T.value;
|
|
10538
10540
|
if (ee(), e.origin === "left-top")
|
|
10539
|
-
o.value =
|
|
10541
|
+
o.value = M.offsetLeft, s.value = M.offsetTop, te.x = o.value, te.y = s.value;
|
|
10540
10542
|
else if (e.origin === "left-bottom") {
|
|
10541
10543
|
const I = document.documentElement.clientHeight || document.body.clientHeight;
|
|
10542
|
-
o.value =
|
|
10544
|
+
o.value = M.offsetLeft, c.value = I - (M.offsetTop + M.offsetHeight), te.x = o.value, te.y = c.value;
|
|
10543
10545
|
} else if (e.origin === "right-bottom") {
|
|
10544
|
-
const I = document.documentElement.clientWidth || document.body.clientWidth,
|
|
10545
|
-
i.value = I - (
|
|
10546
|
+
const I = document.documentElement.clientWidth || document.body.clientWidth, q = document.documentElement.clientHeight || document.body.clientHeight;
|
|
10547
|
+
i.value = I - (M.offsetLeft + M.offsetWidth), c.value = q - (M.offsetTop + M.offsetHeight), te.x = i.value, te.y = c.value;
|
|
10546
10548
|
} else {
|
|
10547
10549
|
const I = document.documentElement.clientWidth || document.body.clientWidth;
|
|
10548
|
-
i.value = I - (
|
|
10550
|
+
i.value = I - (M.offsetLeft + M.offsetWidth), s.value = M.offsetTop, te.x = i.value, te.y = s.value;
|
|
10549
10551
|
}
|
|
10550
10552
|
}, (V) => {
|
|
10551
10553
|
if (!T.value)
|
|
10552
10554
|
return;
|
|
10553
|
-
const
|
|
10554
|
-
ee(), e.origin === "left-top" ? (o.value = te.x + V.x, s.value = te.y + V.y,
|
|
10555
|
-
}),
|
|
10556
|
-
v.value && (
|
|
10555
|
+
const M = T.value;
|
|
10556
|
+
ee(), e.origin === "left-top" ? (o.value = te.x + V.x, s.value = te.y + V.y, M.style.left = Fe(o.value), M.style.top = Fe(s.value)) : e.origin === "left-bottom" ? (o.value = te.x + V.x, c.value = te.y - V.y, M.style.left = Fe(o.value), M.style.bottom = Fe(c.value)) : e.origin === "right-bottom" ? (i.value = te.x - V.x, c.value = te.y - V.y, M.style.right = Fe(i.value), M.style.bottom = Fe(c.value)) : (i.value = te.x - V.x, s.value = te.y + V.y, M.style.right = Fe(i.value), M.style.top = Fe(s.value));
|
|
10557
|
+
}), J = { x: 0, y: 0 }, B = Kl((V) => {
|
|
10558
|
+
v.value && (J.x = v.value.offsetLeft, J.y = v.value.offsetTop);
|
|
10557
10559
|
}, (V) => {
|
|
10558
10560
|
if (!v.value)
|
|
10559
10561
|
return;
|
|
10560
|
-
const
|
|
10561
|
-
H.value = `${
|
|
10562
|
+
const M = J.y + V.y;
|
|
10563
|
+
H.value = `${M}px`;
|
|
10562
10564
|
});
|
|
10563
10565
|
return _e(() => {
|
|
10564
|
-
e.draggable && P.value && T.value &&
|
|
10566
|
+
e.draggable && P.value && T.value && k.open(P.value), e.collapse === !0 && R(e.collapse, !1), v.value && B.open(v.value);
|
|
10565
10567
|
}), jt(() => {
|
|
10566
|
-
e.draggable && P.value &&
|
|
10568
|
+
e.draggable && P.value && k.close(), v.value && B.close();
|
|
10567
10569
|
}), {
|
|
10568
10570
|
classes: u,
|
|
10569
10571
|
styles: f,
|
|
@@ -10582,8 +10584,8 @@ const Hd = () => {
|
|
|
10582
10584
|
isShowFixedNav: _,
|
|
10583
10585
|
fixedNavRef: v,
|
|
10584
10586
|
fixedNavClasses: x,
|
|
10585
|
-
fixedNavStyles:
|
|
10586
|
-
onAnimationEnd:
|
|
10587
|
+
fixedNavStyles: O,
|
|
10588
|
+
onAnimationEnd: L,
|
|
10587
10589
|
teleportDisabled: r,
|
|
10588
10590
|
fixedNavTeleportDisabled: $
|
|
10589
10591
|
};
|