yhz-ui-v3 0.8.4 → 0.8.5
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/yhz-ui-v3.es.ts +688 -698
- package/dist/yhz-ui-v3.umd.ts +2 -2
- package/package.json +1 -1
package/dist/yhz-ui-v3.es.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as Me, ref as ve, onMounted as ro, onUpdated as qv, watch as
|
|
1
|
+
import { computed as Me, ref as ve, onMounted as ro, onUpdated as qv, watch as ht, openBlock as ke, createElementBlock as Pe, mergeProps as Rc, createBlock as ho, resolveDynamicComponent as Ji, createCommentVNode as gt, Fragment as Cn, normalizeClass as Vt, renderSlot as jn, createElementVNode as Ee, toDisplayString as At, renderList as An, createTextVNode as tl, Teleport as pl, resolveComponent as Oc, withModifiers as Ut, createVNode as Sl, Transition as di, withCtx as gl, onUnmounted as xo, normalizeStyle as kn, nextTick as pe, defineComponent as Is, useAttrs as Xv, reactive as jo, provide as Yo, inject as no, withKeys as uc, withDirectives as dc, vModelRadio as Uv, createStaticVNode as Kv, onBeforeUnmount as ud, h as O, TransitionGroup as hf, onActivated as Zv, onDeactivated as Qv, unref as _i, getCurrentInstance as Jv, vShow as eb, readonly as tb, vModelText as pf } from "vue";
|
|
2
2
|
const Fn = (e, t) => {
|
|
3
3
|
const n = e.__vccOpts || e;
|
|
4
4
|
for (const [o, r] of t)
|
|
@@ -95,7 +95,7 @@ const Fn = (e, t) => {
|
|
|
95
95
|
const y = p.innerText || p.textContent;
|
|
96
96
|
/^[\u4e00-\u9fa5]{2}$/.test(y) && !y.includes(" ") && (p.innerText = y[0] + " " + y[1]);
|
|
97
97
|
}
|
|
98
|
-
return ro(d), qv(d),
|
|
98
|
+
return ro(d), qv(d), ht(() => t.autoInsertSpace, d), (p, y) => (ke(), Pe("button", Rc({
|
|
99
99
|
ref: "btnRef",
|
|
100
100
|
class: ["btn", [
|
|
101
101
|
`btn--${e.size}`,
|
|
@@ -124,14 +124,14 @@ const Fn = (e, t) => {
|
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "btn__icon-custom"
|
|
126
126
|
})) : (ke(), Pe("span", lb))
|
|
127
|
-
])) :
|
|
128
|
-
e.loading ?
|
|
127
|
+
])) : gt("", !0),
|
|
128
|
+
e.loading ? gt("", !0) : (ke(), Pe(Cn, { key: 1 }, [
|
|
129
129
|
e.iconPosition === "left" && e.icon ? (ke(), Pe("span", rb, [
|
|
130
130
|
r.value ? (ke(), ho(Ji(r.value), { key: 0 })) : e.icon ? (ke(), Pe("span", {
|
|
131
131
|
key: 1,
|
|
132
132
|
class: Vt(e.icon)
|
|
133
|
-
}, null, 2)) : p.$slots.icon ? jn(p.$slots, "icon", { key: 2 }, void 0, !0) :
|
|
134
|
-
])) :
|
|
133
|
+
}, null, 2)) : p.$slots.icon ? jn(p.$slots, "icon", { key: 2 }, void 0, !0) : gt("", !0)
|
|
134
|
+
])) : gt("", !0)
|
|
135
135
|
], 64)),
|
|
136
136
|
Ee("span", {
|
|
137
137
|
class: "btn__content",
|
|
@@ -140,13 +140,13 @@ const Fn = (e, t) => {
|
|
|
140
140
|
}, [
|
|
141
141
|
jn(p.$slots, "default", {}, void 0, !0)
|
|
142
142
|
], 512),
|
|
143
|
-
e.loading ?
|
|
143
|
+
e.loading ? gt("", !0) : (ke(), Pe(Cn, { key: 2 }, [
|
|
144
144
|
e.iconPosition === "right" && e.icon ? (ke(), Pe("span", sb, [
|
|
145
145
|
r.value ? (ke(), ho(Ji(r.value), { key: 0 })) : e.icon ? (ke(), Pe("span", {
|
|
146
146
|
key: 1,
|
|
147
147
|
class: Vt(e.icon)
|
|
148
|
-
}, null, 2)) : p.$slots.icon ? jn(p.$slots, "icon", { key: 2 }, void 0, !0) :
|
|
149
|
-
])) :
|
|
148
|
+
}, null, 2)) : p.$slots.icon ? jn(p.$slots, "icon", { key: 2 }, void 0, !0) : gt("", !0)
|
|
149
|
+
])) : gt("", !0)
|
|
150
150
|
], 64))
|
|
151
151
|
], 16, nb));
|
|
152
152
|
}
|
|
@@ -214,13 +214,13 @@ const Fn = (e, t) => {
|
|
|
214
214
|
const A = /* @__PURE__ */ new Date();
|
|
215
215
|
s.value = o.year !== null ? o.year : A.getFullYear(), i.value = o.month !== null ? o.month : A.getMonth() + 1;
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
ht(
|
|
218
218
|
() => [o.year, o.month],
|
|
219
219
|
() => {
|
|
220
220
|
y();
|
|
221
221
|
},
|
|
222
222
|
{ deep: !0 }
|
|
223
|
-
),
|
|
223
|
+
), ht(
|
|
224
224
|
() => o.modelValue,
|
|
225
225
|
(A) => {
|
|
226
226
|
A && (p.value = [...A]);
|
|
@@ -280,14 +280,14 @@ const Fn = (e, t) => {
|
|
|
280
280
|
key: 0,
|
|
281
281
|
onClick: R,
|
|
282
282
|
class: "calendar-btn"
|
|
283
|
-
}, "◀")) :
|
|
283
|
+
}, "◀")) : gt("", !0),
|
|
284
284
|
Ee("span", ub, At(s.value) + "年" + At(i.value) + "月", 1),
|
|
285
285
|
e.isNext ? (ke(), Pe("button", {
|
|
286
286
|
key: 1,
|
|
287
287
|
onClick: x,
|
|
288
288
|
class: "calendar-btn"
|
|
289
|
-
}, "▶")) :
|
|
290
|
-
])) :
|
|
289
|
+
}, "▶")) : gt("", !0)
|
|
290
|
+
])) : gt("", !0),
|
|
291
291
|
Ee("div", db, [
|
|
292
292
|
(ke(), Pe(Cn, null, An(r, (M) => Ee("div", {
|
|
293
293
|
key: M,
|
|
@@ -378,7 +378,7 @@ const Fn = (e, t) => {
|
|
|
378
378
|
jn(r.$slots, "default", {}, () => [
|
|
379
379
|
tl(At(e.label), 1)
|
|
380
380
|
], !0)
|
|
381
|
-
])) :
|
|
381
|
+
])) : gt("", !0)
|
|
382
382
|
], 2));
|
|
383
383
|
}
|
|
384
384
|
}), wb = /* @__PURE__ */ Fn(Cb, [["__scopeId", "data-v-030efd3a"]]), yb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -444,13 +444,13 @@ const Fn = (e, t) => {
|
|
|
444
444
|
key: 0,
|
|
445
445
|
class: Vt(["delete-dialog-mask", { "mask-clickable": e.maskClosable }]),
|
|
446
446
|
onClick: r
|
|
447
|
-
}, null, 2)) :
|
|
447
|
+
}, null, 2)) : gt("", !0),
|
|
448
448
|
Ee("div", Sb, [
|
|
449
449
|
d.$slots.header || e.title ? (ke(), Pe("div", Rb, [
|
|
450
450
|
jn(d.$slots, "header", {}, () => [
|
|
451
451
|
tl(At(e.title), 1)
|
|
452
452
|
], !0)
|
|
453
|
-
])) :
|
|
453
|
+
])) : gt("", !0),
|
|
454
454
|
Ee("div", Ob, [
|
|
455
455
|
jn(d.$slots, "content", {}, () => [
|
|
456
456
|
tl(At(e.content), 1)
|
|
@@ -469,7 +469,7 @@ const Fn = (e, t) => {
|
|
|
469
469
|
], !0)
|
|
470
470
|
])
|
|
471
471
|
])
|
|
472
|
-
])) :
|
|
472
|
+
])) : gt("", !0)
|
|
473
473
|
]));
|
|
474
474
|
}
|
|
475
475
|
}), Tb = /* @__PURE__ */ Fn(Mb, [["__scopeId", "data-v-01fff438"]]), kb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -526,10 +526,10 @@ const Fn = (e, t) => {
|
|
|
526
526
|
Ee("i", {
|
|
527
527
|
class: Vt(e.icon)
|
|
528
528
|
}, null, 2)
|
|
529
|
-
])) :
|
|
529
|
+
])) : gt("", !0),
|
|
530
530
|
Ee("span", Ab, At(e.label), 1),
|
|
531
|
-
e.shortcut ? (ke(), Pe("span", $b, At(e.shortcut), 1)) :
|
|
532
|
-
(C = e.children) != null && C.length ? (ke(), Pe("span", Lb, "▶")) :
|
|
531
|
+
e.shortcut ? (ke(), Pe("span", $b, At(e.shortcut), 1)) : gt("", !0),
|
|
532
|
+
(C = e.children) != null && C.length ? (ke(), Pe("span", Lb, "▶")) : gt("", !0),
|
|
533
533
|
Sl(di, { name: "slide-fade" }, {
|
|
534
534
|
default: gl(() => {
|
|
535
535
|
var E;
|
|
@@ -538,7 +538,7 @@ const Fn = (e, t) => {
|
|
|
538
538
|
(ke(!0), Pe(Cn, null, An(e.children, (k, I) => (ke(), ho(y, Rc({ key: I }, { ref_for: !0 }, k, {
|
|
539
539
|
onAction: (_) => i(k)
|
|
540
540
|
}), null, 16, ["onAction"]))), 128))
|
|
541
|
-
])) :
|
|
541
|
+
])) : gt("", !0)
|
|
542
542
|
];
|
|
543
543
|
}),
|
|
544
544
|
_: 1
|
|
@@ -614,7 +614,7 @@ const Fn = (e, t) => {
|
|
|
614
614
|
}, ["prevent"]))
|
|
615
615
|
}, [
|
|
616
616
|
(ke(!0), Pe(Cn, null, An(e.items, (I, _) => (ke(), ho(ah, Rc({ key: _ }, { ref_for: !0 }, I, { onAction: y }), null, 16))), 128))
|
|
617
|
-
], 36)) :
|
|
617
|
+
], 36)) : gt("", !0)
|
|
618
618
|
]),
|
|
619
619
|
_: 1
|
|
620
620
|
})
|
|
@@ -2733,17 +2733,17 @@ const nw = 50, ow = async (e, t, n) => {
|
|
|
2733
2733
|
}, I = fd(r), _ = dd(I), m = await i.getDimensions(y), u = I === "y", R = u ? "top" : "left", x = u ? "bottom" : "right", T = u ? "clientHeight" : "clientWidth", G = s.reference[_] + s.reference[I] - k[I] - s.floating[_], A = k[I] - s.reference[I], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(y));
|
|
2734
2734
|
let M = P ? P[T] : 0;
|
|
2735
2735
|
(!M || !await (i.isElement == null ? void 0 : i.isElement(P))) && (M = d.floating[T] || s.floating[_]);
|
|
2736
|
-
const F = G / 2 - A / 2, B = M / 2 - m[_] / 2 - 1, W = Zr(E[R], B), ne = Zr(E[x], B), V = W, Y = M - m[_] - ne, q = M / 2 - m[_] / 2 + F, se = qu(V, q, Y),
|
|
2736
|
+
const F = G / 2 - A / 2, B = M / 2 - m[_] / 2 - 1, W = Zr(E[R], B), ne = Zr(E[x], B), V = W, Y = M - m[_] - ne, q = M / 2 - m[_] / 2 + F, se = qu(V, q, Y), fe = !p.arrow && Oa(r) != null && q !== se && s.reference[_] / 2 - (q < V ? W : ne) - m[_] / 2 < 0, ue = fe ? q < V ? q - V : q - Y : 0;
|
|
2737
2737
|
return {
|
|
2738
|
-
[I]: k[I] +
|
|
2738
|
+
[I]: k[I] + ue,
|
|
2739
2739
|
data: {
|
|
2740
2740
|
[I]: se,
|
|
2741
|
-
centerOffset: q - se -
|
|
2742
|
-
...
|
|
2743
|
-
alignmentOffset:
|
|
2741
|
+
centerOffset: q - se - ue,
|
|
2742
|
+
...fe && {
|
|
2743
|
+
alignmentOffset: ue
|
|
2744
2744
|
}
|
|
2745
2745
|
},
|
|
2746
|
-
reset:
|
|
2746
|
+
reset: fe
|
|
2747
2747
|
};
|
|
2748
2748
|
}
|
|
2749
2749
|
}), rw = function(e) {
|
|
@@ -2796,12 +2796,12 @@ const nw = 50, ow = async (e, t, n) => {
|
|
|
2796
2796
|
placement: se
|
|
2797
2797
|
}
|
|
2798
2798
|
};
|
|
2799
|
-
let
|
|
2800
|
-
if (!
|
|
2799
|
+
let fe = (V = W.filter((ue) => ue.overflows[0] <= 0).sort((ue, me) => ue.overflows[1] - me.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
2800
|
+
if (!fe)
|
|
2801
2801
|
switch (I) {
|
|
2802
2802
|
case "bestFit": {
|
|
2803
2803
|
var Y;
|
|
2804
|
-
const
|
|
2804
|
+
const ue = (Y = W.filter((me) => {
|
|
2805
2805
|
if (P) {
|
|
2806
2806
|
const He = Rr(me.placement);
|
|
2807
2807
|
return He === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2810,17 +2810,17 @@ const nw = 50, ow = async (e, t, n) => {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
return !0;
|
|
2812
2812
|
}).map((me) => [me.placement, me.overflows.filter((He) => He > 0).reduce((He, J) => He + J, 0)]).sort((me, He) => me[1] - He[1])[0]) == null ? void 0 : Y[0];
|
|
2813
|
-
|
|
2813
|
+
ue && (fe = ue);
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
2816
2816
|
case "initialPlacement":
|
|
2817
|
-
|
|
2817
|
+
fe = d;
|
|
2818
2818
|
break;
|
|
2819
2819
|
}
|
|
2820
|
-
if (r !==
|
|
2820
|
+
if (r !== fe)
|
|
2821
2821
|
return {
|
|
2822
2822
|
reset: {
|
|
2823
|
-
placement:
|
|
2823
|
+
placement: fe
|
|
2824
2824
|
}
|
|
2825
2825
|
};
|
|
2826
2826
|
}
|
|
@@ -3505,17 +3505,17 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3505
3505
|
let E = null;
|
|
3506
3506
|
const k = (se) => {
|
|
3507
3507
|
if (!se) return null;
|
|
3508
|
-
const
|
|
3509
|
-
return Ca(
|
|
3508
|
+
const fe = typeof se == "string" ? xh(se) : new Date(se);
|
|
3509
|
+
return Ca(fe);
|
|
3510
3510
|
}, I = Me(() => k(n.minDate)), _ = Me(() => k(n.maxDate)), m = (se) => {
|
|
3511
|
-
const
|
|
3512
|
-
return !!(I.value && bh(
|
|
3511
|
+
const fe = Ca(se);
|
|
3512
|
+
return !!(I.value && bh(fe, I.value) || _.value && Qx(fe, _.value));
|
|
3513
3513
|
}, u = Me(() => p.value ? nr(p.value, "yyyy-MM-dd") : ""), R = Me(() => {
|
|
3514
|
-
const se = Yu(d.value),
|
|
3515
|
-
return hh({ start: se, end:
|
|
3516
|
-
date:
|
|
3517
|
-
dayOfMonth: nr(
|
|
3518
|
-
isDisabled: m(
|
|
3514
|
+
const se = Yu(d.value), fe = gh(d.value);
|
|
3515
|
+
return hh({ start: se, end: fe }).map((ue) => ({
|
|
3516
|
+
date: ue,
|
|
3517
|
+
dayOfMonth: nr(ue, "d"),
|
|
3518
|
+
isDisabled: m(ue)
|
|
3519
3519
|
}));
|
|
3520
3520
|
}), x = Me(() => {
|
|
3521
3521
|
const se = Yu(d.value);
|
|
@@ -3536,31 +3536,31 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3536
3536
|
y.value = d.value.getFullYear(), C.value = d.value.getMonth();
|
|
3537
3537
|
}, V = async () => {
|
|
3538
3538
|
if (!r.value || !s.value || !i.value) return;
|
|
3539
|
-
const { x: se, y:
|
|
3539
|
+
const { x: se, y: fe } = await vi(s.value, i.value, {
|
|
3540
3540
|
placement: "bottom-start",
|
|
3541
3541
|
middleware: [hi(4), mi(), pi()]
|
|
3542
3542
|
});
|
|
3543
3543
|
Object.assign(i.value.style, {
|
|
3544
3544
|
left: `${se}px`,
|
|
3545
|
-
top: `${
|
|
3545
|
+
top: `${fe}px`,
|
|
3546
3546
|
position: "absolute"
|
|
3547
3547
|
});
|
|
3548
3548
|
}, Y = (se) => {
|
|
3549
3549
|
if (!r.value) return;
|
|
3550
|
-
const
|
|
3550
|
+
const fe = s.value, ue = i.value, me = se.target, He = fe && (fe === me || fe.contains(me)), J = ue && (ue === me || ue.contains(me));
|
|
3551
3551
|
!He && !J && (r.value = !1);
|
|
3552
3552
|
}, q = (se) => {
|
|
3553
3553
|
se.key === "Escape" && r.value && (r.value = !1);
|
|
3554
3554
|
};
|
|
3555
3555
|
return ro(() => {
|
|
3556
3556
|
n.modelValue && (p.value = new Date(n.modelValue), d.value = new Date(n.modelValue), ne());
|
|
3557
|
-
}),
|
|
3557
|
+
}), ht(() => n.disabled, (se) => {
|
|
3558
3558
|
se && (r.value = !1);
|
|
3559
|
-
}),
|
|
3559
|
+
}), ht(() => n.modelValue, (se) => {
|
|
3560
3560
|
se ? p.value = new Date(se) : p.value = null;
|
|
3561
|
-
}),
|
|
3561
|
+
}), ht(d, () => {
|
|
3562
3562
|
ne();
|
|
3563
|
-
}),
|
|
3563
|
+
}), ht(r, (se) => {
|
|
3564
3564
|
se ? (ne(), pe(() => {
|
|
3565
3565
|
s.value && i.value && (E = gi(
|
|
3566
3566
|
s.value,
|
|
@@ -3572,7 +3572,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3572
3572
|
}, 0)) : (E && (E(), E = null), document.removeEventListener("mousedown", Y), document.removeEventListener("keydown", q));
|
|
3573
3573
|
}), xo(() => {
|
|
3574
3574
|
E && E(), document.removeEventListener("mousedown", Y), document.removeEventListener("keydown", q);
|
|
3575
|
-
}), (se,
|
|
3575
|
+
}), (se, fe) => (ke(), Pe("div", {
|
|
3576
3576
|
class: Vt(["date-picker-tip", { active: r.value }])
|
|
3577
3577
|
}, [
|
|
3578
3578
|
Ee("div", {
|
|
@@ -3585,7 +3585,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3585
3585
|
Ee("i", {
|
|
3586
3586
|
class: Vt([e.prefixIcon, "fs16"])
|
|
3587
3587
|
}, null, 2)
|
|
3588
|
-
])) :
|
|
3588
|
+
])) : gt("", !0),
|
|
3589
3589
|
Ee("input", {
|
|
3590
3590
|
type: "text",
|
|
3591
3591
|
value: u.value,
|
|
@@ -3598,7 +3598,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3598
3598
|
Ee("i", {
|
|
3599
3599
|
class: Vt([e.suffixIcon, "fs16"])
|
|
3600
3600
|
}, null, 2)
|
|
3601
|
-
])) :
|
|
3601
|
+
])) : gt("", !0)
|
|
3602
3602
|
], 2),
|
|
3603
3603
|
(ke(), ho(pl, { to: "body" }, [
|
|
3604
3604
|
r.value ? (ke(), Pe("div", {
|
|
@@ -3607,9 +3607,9 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3607
3607
|
ref: i,
|
|
3608
3608
|
class: "date-popover",
|
|
3609
3609
|
style: kn(e.popoverStyle),
|
|
3610
|
-
onClick:
|
|
3610
|
+
onClick: fe[0] || (fe[0] = Ut(() => {
|
|
3611
3611
|
}, ["stop"])),
|
|
3612
|
-
onMousedown:
|
|
3612
|
+
onMousedown: fe[1] || (fe[1] = Ut(() => {
|
|
3613
3613
|
}, ["stop"]))
|
|
3614
3614
|
}, [
|
|
3615
3615
|
Ee("div", Lw, [
|
|
@@ -3636,25 +3636,25 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3636
3636
|
])
|
|
3637
3637
|
]),
|
|
3638
3638
|
Ee("div", Pw, [
|
|
3639
|
-
(ke(), Pe(Cn, null, An(T, (
|
|
3639
|
+
(ke(), Pe(Cn, null, An(T, (ue) => Ee("span", { key: ue }, At(ue), 1)), 64))
|
|
3640
3640
|
]),
|
|
3641
3641
|
Ee("div", Hw, [
|
|
3642
|
-
(ke(!0), Pe(Cn, null, An(x.value, (
|
|
3643
|
-
key: `empty-${
|
|
3642
|
+
(ke(!0), Pe(Cn, null, An(x.value, (ue) => (ke(), Pe("div", {
|
|
3643
|
+
key: `empty-${ue}`,
|
|
3644
3644
|
class: "day-cell empty"
|
|
3645
3645
|
}))), 128)),
|
|
3646
|
-
(ke(!0), Pe(Cn, null, An(R.value, (
|
|
3647
|
-
key:
|
|
3646
|
+
(ke(!0), Pe(Cn, null, An(R.value, (ue) => (ke(), Pe("button", {
|
|
3647
|
+
key: ue.date.toISOString(),
|
|
3648
3648
|
class: Vt(["day-cell", {
|
|
3649
|
-
selected: G(
|
|
3650
|
-
disabled: m(
|
|
3649
|
+
selected: G(ue.date),
|
|
3650
|
+
disabled: m(ue.date)
|
|
3651
3651
|
}]),
|
|
3652
|
-
onClick: Ut((me) => P(
|
|
3653
|
-
disabled: m(
|
|
3652
|
+
onClick: Ut((me) => P(ue.date), ["stop"]),
|
|
3653
|
+
disabled: m(ue.date),
|
|
3654
3654
|
type: "button"
|
|
3655
|
-
}, At(
|
|
3655
|
+
}, At(ue.dayOfMonth), 11, Bw))), 128))
|
|
3656
3656
|
])
|
|
3657
|
-
], 36)) :
|
|
3657
|
+
], 36)) : gt("", !0)
|
|
3658
3658
|
]))
|
|
3659
3659
|
], 2));
|
|
3660
3660
|
}
|
|
@@ -3859,9 +3859,9 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3859
3859
|
}, G = () => {
|
|
3860
3860
|
o.modalLock && (o.visible ? T(!0) : T(!1));
|
|
3861
3861
|
};
|
|
3862
|
-
|
|
3862
|
+
ht(() => o.visible, async (J) => {
|
|
3863
3863
|
J ? (r("open"), y.value = !1, d.value = !1, k.value = { width: o.width, height: "auto" }, E.value = { x: null, y: null }, G(), await pe()) : (r("close"), d.value = !1, p.value = !1, G());
|
|
3864
|
-
}),
|
|
3864
|
+
}), ht(() => [o.modalLock, o.lockScroll], () => {
|
|
3865
3865
|
o.visible && G();
|
|
3866
3866
|
});
|
|
3867
3867
|
const A = (J) => {
|
|
@@ -3929,9 +3929,9 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3929
3929
|
r("cancel"), Y();
|
|
3930
3930
|
}, se = () => {
|
|
3931
3931
|
r("confirm");
|
|
3932
|
-
}, ge = (J) => {
|
|
3933
|
-
(d.value || p.value) && J.preventDefault();
|
|
3934
3932
|
}, fe = (J) => {
|
|
3933
|
+
(d.value || p.value) && J.preventDefault();
|
|
3934
|
+
}, ue = (J) => {
|
|
3935
3935
|
}, me = (J) => {
|
|
3936
3936
|
E.value = { x: null, y: null }, y.value = !1, d.value = !1, p.value = !1, k.value = { width: o.width, height: "auto" };
|
|
3937
3937
|
}, He = () => {
|
|
@@ -3944,7 +3944,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
3946
|
};
|
|
3947
|
-
return
|
|
3947
|
+
return ht(() => [k.value.width, k.value.height], () => {
|
|
3948
3948
|
!y.value && !u.value && E.value.x !== null && E.value.y !== null && pe(() => {
|
|
3949
3949
|
var Z;
|
|
3950
3950
|
const J = (Z = s.value) == null ? void 0 : Z.getBoundingClientRect();
|
|
@@ -3969,7 +3969,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3969
3969
|
}), (J, Z) => (ke(), ho(pl, { to: "body" }, [
|
|
3970
3970
|
Sl(di, {
|
|
3971
3971
|
name: e.transitionName,
|
|
3972
|
-
onBeforeEnter:
|
|
3972
|
+
onBeforeEnter: ue,
|
|
3973
3973
|
onAfterLeave: me
|
|
3974
3974
|
}, {
|
|
3975
3975
|
default: gl(() => [
|
|
@@ -3988,13 +3988,13 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
3988
3988
|
class: "dialog-mask",
|
|
3989
3989
|
style: kn(e.maskStyle),
|
|
3990
3990
|
onClick: V
|
|
3991
|
-
}, null, 4)) :
|
|
3991
|
+
}, null, 4)) : gt("", !0),
|
|
3992
3992
|
Ee("div", {
|
|
3993
3993
|
ref_key: "dialogRef",
|
|
3994
3994
|
ref: s,
|
|
3995
3995
|
class: Vt(["dialog-container", { "is-fullscreen": y.value, customClass: e.customClass }]),
|
|
3996
3996
|
style: kn(R.value),
|
|
3997
|
-
onMousedown:
|
|
3997
|
+
onMousedown: fe,
|
|
3998
3998
|
onClick: Z[3] || (Z[3] = Ut(() => {
|
|
3999
3999
|
}, ["stop"]))
|
|
4000
4000
|
}, [
|
|
@@ -4019,7 +4019,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
4019
4019
|
])])) : (ke(), Pe("span", Jw, [...Z[5] || (Z[5] = [
|
|
4020
4020
|
Ee("i", { class: "fs14 iconfont icon-full-screen" }, null, -1)
|
|
4021
4021
|
])]))
|
|
4022
|
-
], 8, Zw)) :
|
|
4022
|
+
], 8, Zw)) : gt("", !0),
|
|
4023
4023
|
e.showClose ? (ke(), Pe("button", {
|
|
4024
4024
|
key: 1,
|
|
4025
4025
|
class: "action-btn close-btn",
|
|
@@ -4027,7 +4027,7 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
4027
4027
|
title: "关闭"
|
|
4028
4028
|
}, [...Z[6] || (Z[6] = [
|
|
4029
4029
|
Ee("i", { class: "fs14 iconfont icon-close" }, null, -1)
|
|
4030
|
-
])])) :
|
|
4030
|
+
])])) : gt("", !0)
|
|
4031
4031
|
])
|
|
4032
4032
|
], 34),
|
|
4033
4033
|
Ee("div", {
|
|
@@ -4072,14 +4072,14 @@ const hi = iw, pi = cw, mi = rw, kw = uw, Fw = lw, vi = (e, t, n) => {
|
|
|
4072
4072
|
])]),
|
|
4073
4073
|
_: 1
|
|
4074
4074
|
})
|
|
4075
|
-
])) :
|
|
4075
|
+
])) : gt("", !0),
|
|
4076
4076
|
e.resizable && !y.value ? (ke(), Pe("div", {
|
|
4077
4077
|
key: 2,
|
|
4078
4078
|
class: "resize-handle resize-se",
|
|
4079
4079
|
onMousedown: F
|
|
4080
|
-
}, null, 32)) :
|
|
4080
|
+
}, null, 32)) : gt("", !0)
|
|
4081
4081
|
], 38)
|
|
4082
|
-
], 2)) :
|
|
4082
|
+
], 2)) : gt("", !0)
|
|
4083
4083
|
]),
|
|
4084
4084
|
_: 3
|
|
4085
4085
|
}, 8, ["name"])
|
|
@@ -4268,10 +4268,10 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4268
4268
|
style: kn({ width: e.labelWidth })
|
|
4269
4269
|
}, [
|
|
4270
4270
|
tl(At(e.label), 1),
|
|
4271
|
-
e.isColon ? (ke(), Pe("span", cy, ":")) :
|
|
4272
|
-
], 4)) :
|
|
4271
|
+
e.isColon ? (ke(), Pe("span", cy, ":")) : gt("", !0)
|
|
4272
|
+
], 4)) : gt("", !0),
|
|
4273
4273
|
jn(r.$slots, "default", {}, void 0, !0),
|
|
4274
|
-
o.value ? (ke(), Pe("span", uy, At(o.value), 1)) :
|
|
4274
|
+
o.value ? (ke(), Pe("span", uy, At(o.value), 1)) : gt("", !0)
|
|
4275
4275
|
], 4));
|
|
4276
4276
|
}
|
|
4277
4277
|
}), fy = /* @__PURE__ */ Fn(dy, [["__scopeId", "data-v-664e5d94"]]), gy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4373,9 +4373,9 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4373
4373
|
const x = Math.pow(10, n.precision);
|
|
4374
4374
|
R = (Math.round(R * x) - Math.round(n.step * x)) / x, R < n.min && (R = n.min), o("update:modelValue", R), o("change", R), i.value = "";
|
|
4375
4375
|
};
|
|
4376
|
-
return
|
|
4376
|
+
return ht(() => n.modelValue, () => {
|
|
4377
4377
|
i.value = "";
|
|
4378
|
-
}),
|
|
4378
|
+
}), ht([() => n.min, () => n.max], () => {
|
|
4379
4379
|
if (n.modelValue < n.min || n.modelValue > n.max) {
|
|
4380
4380
|
let R = n.modelValue;
|
|
4381
4381
|
R < n.min && (R = n.min), R > n.max && (R = n.max), o("update:modelValue", R), o("change", R);
|
|
@@ -4393,7 +4393,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4393
4393
|
}, ["prevent"]))
|
|
4394
4394
|
}, [...x[4] || (x[4] = [
|
|
4395
4395
|
Ee("span", null, "−", -1)
|
|
4396
|
-
])], 40, hy)) :
|
|
4396
|
+
])], 40, hy)) : gt("", !0),
|
|
4397
4397
|
Ee("input", {
|
|
4398
4398
|
ref_key: "inputRef",
|
|
4399
4399
|
ref: s,
|
|
@@ -4415,7 +4415,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4415
4415
|
onClick: m,
|
|
4416
4416
|
onMousedown: x[1] || (x[1] = Ut(() => {
|
|
4417
4417
|
}, ["prevent"]))
|
|
4418
|
-
}, " + ", 40, my)) :
|
|
4418
|
+
}, " + ", 40, my)) : gt("", !0),
|
|
4419
4419
|
e.mode === "vertical" ? (ke(), Pe(Cn, { key: 2 }, [
|
|
4420
4420
|
Ee("span", {
|
|
4421
4421
|
class: "btn btn-decrease",
|
|
@@ -4455,7 +4455,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4455
4455
|
])
|
|
4456
4456
|
], -1)
|
|
4457
4457
|
])], 40, by)
|
|
4458
|
-
], 64)) :
|
|
4458
|
+
], 64)) : gt("", !0)
|
|
4459
4459
|
], 6));
|
|
4460
4460
|
}
|
|
4461
4461
|
}), Cy = /* @__PURE__ */ Fn(xy, [["__scopeId", "data-v-98a1b33a"]]), wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4652,7 +4652,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4652
4652
|
d.value = !1;
|
|
4653
4653
|
})), i.value = "";
|
|
4654
4654
|
};
|
|
4655
|
-
return
|
|
4655
|
+
return ht(() => n.modelValue, (A, P) => {
|
|
4656
4656
|
if (!d.value) {
|
|
4657
4657
|
if (i.value !== "") {
|
|
4658
4658
|
const M = k(i.value);
|
|
@@ -4661,7 +4661,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4661
4661
|
}
|
|
4662
4662
|
i.value = "";
|
|
4663
4663
|
}
|
|
4664
|
-
}),
|
|
4664
|
+
}), ht([() => n.min, () => n.max], () => {
|
|
4665
4665
|
if (n.modelValue !== null && n.modelValue !== void 0 && n.modelValue !== "") {
|
|
4666
4666
|
let A = Number(n.modelValue);
|
|
4667
4667
|
A < n.min && (A = n.min), A > n.max && (A = n.max);
|
|
@@ -4682,8 +4682,8 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4682
4682
|
onMousedown: P[0] || (P[0] = Ut(() => {
|
|
4683
4683
|
}, ["prevent"]))
|
|
4684
4684
|
}, [
|
|
4685
|
-
e.mode === "horizontal" ? (ke(), Pe("span", My, "−")) :
|
|
4686
|
-
], 40, Dy)) :
|
|
4685
|
+
e.mode === "horizontal" ? (ke(), Pe("span", My, "−")) : gt("", !0)
|
|
4686
|
+
], 40, Dy)) : gt("", !0),
|
|
4687
4687
|
Ee("input", {
|
|
4688
4688
|
ref_key: "inputRef",
|
|
4689
4689
|
ref: s,
|
|
@@ -4706,7 +4706,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4706
4706
|
onClick: T,
|
|
4707
4707
|
onMousedown: P[1] || (P[1] = Ut(() => {
|
|
4708
4708
|
}, ["prevent"]))
|
|
4709
|
-
}, " + ", 40, ky)) :
|
|
4709
|
+
}, " + ", 40, ky)) : gt("", !0),
|
|
4710
4710
|
!e.hideButtons && e.mode === "vertical" ? (ke(), Pe("div", Fy, [
|
|
4711
4711
|
Ee("button", {
|
|
4712
4712
|
class: "btn btn-decrease",
|
|
@@ -4730,7 +4730,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4730
4730
|
Ee("i", { class: "iconfont icon-unfold-down" })
|
|
4731
4731
|
], -1)
|
|
4732
4732
|
])], 40, Ay)
|
|
4733
|
-
])) :
|
|
4733
|
+
])) : gt("", !0)
|
|
4734
4734
|
], 6));
|
|
4735
4735
|
}
|
|
4736
4736
|
}), Ly = /* @__PURE__ */ Fn($y, [["__scopeId", "data-v-68a480d4"]]), _y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4816,7 +4816,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4816
4816
|
})
|
|
4817
4817
|
])
|
|
4818
4818
|
])
|
|
4819
|
-
])) :
|
|
4819
|
+
])) : gt("", !0)
|
|
4820
4820
|
]),
|
|
4821
4821
|
_: 1
|
|
4822
4822
|
}));
|
|
@@ -4857,7 +4857,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4857
4857
|
class: Vt(["custom-message", o.value])
|
|
4858
4858
|
}, [
|
|
4859
4859
|
Ee("span", Yy, At(e.content), 1)
|
|
4860
|
-
], 2)) :
|
|
4860
|
+
], 2)) : gt("", !0)
|
|
4861
4861
|
]),
|
|
4862
4862
|
_: 1
|
|
4863
4863
|
}));
|
|
@@ -4917,7 +4917,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4917
4917
|
}, x = (T) => {
|
|
4918
4918
|
r.value && s.value && !s.value.contains(T.target) && i.value && !i.value.contains(T.target) && (r.value = !1);
|
|
4919
4919
|
};
|
|
4920
|
-
return
|
|
4920
|
+
return ht(r, (T) => {
|
|
4921
4921
|
T ? (setTimeout(() => {
|
|
4922
4922
|
s.value && i.value && (y = gi(
|
|
4923
4923
|
s.value,
|
|
@@ -4925,9 +4925,9 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4925
4925
|
R
|
|
4926
4926
|
));
|
|
4927
4927
|
}), document.addEventListener("click", x)) : (y && (y(), y = null), document.removeEventListener("click", x));
|
|
4928
|
-
}),
|
|
4928
|
+
}), ht(() => n.modelValue, (T) => {
|
|
4929
4929
|
d.value = T ? Number(T) : null;
|
|
4930
|
-
}),
|
|
4930
|
+
}), ht(() => n.year, (T) => {
|
|
4931
4931
|
p.value = T;
|
|
4932
4932
|
}), xo(() => {
|
|
4933
4933
|
y && y(), document.removeEventListener("click", x);
|
|
@@ -4942,7 +4942,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4942
4942
|
Ee("i", {
|
|
4943
4943
|
class: Vt([e.prefixIcon, "fs16"])
|
|
4944
4944
|
}, null, 2)
|
|
4945
|
-
])) :
|
|
4945
|
+
])) : gt("", !0),
|
|
4946
4946
|
Ee("input", {
|
|
4947
4947
|
type: "text",
|
|
4948
4948
|
value: E.value,
|
|
@@ -4954,7 +4954,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4954
4954
|
Ee("i", {
|
|
4955
4955
|
class: Vt([e.suffixIcon, "fs16"])
|
|
4956
4956
|
}, null, 2)
|
|
4957
|
-
])) :
|
|
4957
|
+
])) : gt("", !0)
|
|
4958
4958
|
], 2),
|
|
4959
4959
|
(ke(), ho(pl, { to: "body" }, [
|
|
4960
4960
|
r.value ? (ke(), Pe("div", {
|
|
@@ -4983,7 +4983,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
4983
4983
|
type: "button"
|
|
4984
4984
|
}, At(A), 11, nE))), 128))
|
|
4985
4985
|
])
|
|
4986
|
-
], 4)) :
|
|
4986
|
+
], 4)) : gt("", !0)
|
|
4987
4987
|
]))
|
|
4988
4988
|
]));
|
|
4989
4989
|
}
|
|
@@ -5091,7 +5091,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5091
5091
|
jn(_.$slots, "default", {}, () => [
|
|
5092
5092
|
tl(At(e.name), 1)
|
|
5093
5093
|
], !0)
|
|
5094
|
-
])) :
|
|
5094
|
+
])) : gt("", !0)
|
|
5095
5095
|
], 10, sE));
|
|
5096
5096
|
}
|
|
5097
5097
|
}), cE = /* @__PURE__ */ Fn(iE, [["__scopeId", "data-v-c9f0a072"]]), uE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5222,7 +5222,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5222
5222
|
}, W = (ne) => {
|
|
5223
5223
|
r.value && s.value && !s.value.contains(ne.target) && i.value && !i.value.contains(ne.target) && (r.value = !1);
|
|
5224
5224
|
};
|
|
5225
|
-
return
|
|
5225
|
+
return ht(r, (ne) => {
|
|
5226
5226
|
ne ? (setTimeout(() => {
|
|
5227
5227
|
s.value && i.value && (E = gi(
|
|
5228
5228
|
s.value,
|
|
@@ -5230,7 +5230,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5230
5230
|
B
|
|
5231
5231
|
));
|
|
5232
5232
|
}), document.addEventListener("click", W)) : (E && (E(), E = null), document.removeEventListener("click", W));
|
|
5233
|
-
}),
|
|
5233
|
+
}), ht(() => n.modelValue, (ne) => {
|
|
5234
5234
|
y.value = p(ne[0]), C.value = p(ne[1]);
|
|
5235
5235
|
}), xo(() => {
|
|
5236
5236
|
E && E(), document.removeEventListener("click", W);
|
|
@@ -5241,7 +5241,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5241
5241
|
ref: s,
|
|
5242
5242
|
onClick: G
|
|
5243
5243
|
}, [
|
|
5244
|
-
e.prefixIcon ? (ke(), Pe("span", pE, At(e.prefixIcon), 1)) :
|
|
5244
|
+
e.prefixIcon ? (ke(), Pe("span", pE, At(e.prefixIcon), 1)) : gt("", !0),
|
|
5245
5245
|
Ee("input", {
|
|
5246
5246
|
type: "text",
|
|
5247
5247
|
value: k.value,
|
|
@@ -5249,7 +5249,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5249
5249
|
placeholder: e.placeholder,
|
|
5250
5250
|
class: "date-input"
|
|
5251
5251
|
}, null, 8, mE),
|
|
5252
|
-
e.suffixIcon ? (ke(), Pe("span", vE, At(e.suffixIcon), 1)) :
|
|
5252
|
+
e.suffixIcon ? (ke(), Pe("span", vE, At(e.suffixIcon), 1)) : gt("", !0)
|
|
5253
5253
|
], 512),
|
|
5254
5254
|
(ke(), ho(pl, { to: "body" }, [
|
|
5255
5255
|
r.value ? (ke(), Pe("div", {
|
|
@@ -5286,7 +5286,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5286
5286
|
type: "button"
|
|
5287
5287
|
}, At(Y.dayOfMonth), 11, wE))), 128))
|
|
5288
5288
|
])
|
|
5289
|
-
], 4)) :
|
|
5289
|
+
], 4)) : gt("", !0)
|
|
5290
5290
|
]))
|
|
5291
5291
|
]));
|
|
5292
5292
|
}
|
|
@@ -5409,14 +5409,14 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5409
5409
|
width: A
|
|
5410
5410
|
}, n.showArrow && B.arrow && k) {
|
|
5411
5411
|
const { x: Y, y: q } = B.arrow, se = k.getBoundingClientRect();
|
|
5412
|
-
let
|
|
5413
|
-
ne === "bottom" ?
|
|
5414
|
-
x:
|
|
5415
|
-
y:
|
|
5412
|
+
let fe = Y ?? 0, ue = q ?? 0;
|
|
5413
|
+
ne === "bottom" ? ue = -se.height / 2 + 1 : ne === "top" && (ue = se.height / 2 - 1), C.value = {
|
|
5414
|
+
x: fe,
|
|
5415
|
+
y: ue
|
|
5416
5416
|
};
|
|
5417
5417
|
}
|
|
5418
5418
|
};
|
|
5419
|
-
return
|
|
5419
|
+
return ht(r, (A) => {
|
|
5420
5420
|
A ? pe(() => {
|
|
5421
5421
|
i.value && d.value && (k = d.value.querySelector(".dropdown-arrow"), G(), E = gi(
|
|
5422
5422
|
i.value,
|
|
@@ -5424,7 +5424,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5424
5424
|
G
|
|
5425
5425
|
));
|
|
5426
5426
|
}) : (E && (E(), E = null), k = null);
|
|
5427
|
-
}),
|
|
5427
|
+
}), ht(() => n.disabled, (A) => {
|
|
5428
5428
|
A && r.value && (r.value = !1);
|
|
5429
5429
|
}), ro(() => {
|
|
5430
5430
|
document.addEventListener("click", R, !0);
|
|
@@ -5468,7 +5468,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5468
5468
|
key: 0,
|
|
5469
5469
|
class: Vt(["dropdown-arrow", x.value]),
|
|
5470
5470
|
style: kn(T.value)
|
|
5471
|
-
}, null, 6)) :
|
|
5471
|
+
}, null, 6)) : gt("", !0),
|
|
5472
5472
|
Ee("div", FE, [
|
|
5473
5473
|
(ke(!0), Pe(Cn, null, An(e.options, (M) => (ke(), Pe("div", {
|
|
5474
5474
|
key: M.value,
|
|
@@ -5480,7 +5480,7 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5480
5480
|
}, null, 8, AE)
|
|
5481
5481
|
], 10, IE))), 128))
|
|
5482
5482
|
])
|
|
5483
|
-
], 4)) :
|
|
5483
|
+
], 4)) : gt("", !0)
|
|
5484
5484
|
]))
|
|
5485
5485
|
], 512));
|
|
5486
5486
|
}
|
|
@@ -5808,8 +5808,8 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5808
5808
|
}, [
|
|
5809
5809
|
e.showHeader ? (ke(), Pe("div", eS, [
|
|
5810
5810
|
Ee("span", tS, At(e.headerTitle), 1),
|
|
5811
|
-
e.showCount ? (ke(), Pe("span", nS, " 已选 " + At(k.value.length) + "/" + At(e.columns.length), 1)) :
|
|
5812
|
-
])) :
|
|
5811
|
+
e.showCount ? (ke(), Pe("span", nS, " 已选 " + At(k.value.length) + "/" + At(e.columns.length), 1)) : gt("", !0)
|
|
5812
|
+
])) : gt("", !0),
|
|
5813
5813
|
Ee("div", oS, [
|
|
5814
5814
|
(ke(!0), Pe(Cn, null, An(e.columns, (W) => (ke(), ho(B, {
|
|
5815
5815
|
key: W.key,
|
|
@@ -5832,8 +5832,8 @@ const ry = /* @__PURE__ */ Is({
|
|
|
5832
5832
|
class: "footer-btn primary",
|
|
5833
5833
|
onClick: u
|
|
5834
5834
|
}, "确定")
|
|
5835
|
-
])) :
|
|
5836
|
-
], 4)) :
|
|
5835
|
+
])) : gt("", !0)
|
|
5836
|
+
], 4)) : gt("", !0)
|
|
5837
5837
|
], 8, ["to"]))
|
|
5838
5838
|
], 512);
|
|
5839
5839
|
};
|
|
@@ -8364,7 +8364,7 @@ function ZO(e) {
|
|
|
8364
8364
|
e && e.name && (xc[e.name] = e, xc[f.kebabCase(e.name)] = e);
|
|
8365
8365
|
}
|
|
8366
8366
|
function QO() {
|
|
8367
|
-
return
|
|
8367
|
+
return gt();
|
|
8368
8368
|
}
|
|
8369
8369
|
function JO(e, t, n) {
|
|
8370
8370
|
if (e) {
|
|
@@ -9424,7 +9424,7 @@ function gD(e, t, n) {
|
|
|
9424
9424
|
}
|
|
9425
9425
|
function Fm(e, t, n) {
|
|
9426
9426
|
Object.keys(t).forEach((o) => {
|
|
9427
|
-
|
|
9427
|
+
ht(() => t[o], (r) => {
|
|
9428
9428
|
n.update(o, r), e && (o === "filters" ? (e.setFilter(n, r), e.handleUpdateDataQueue()) : ["visible", "fixed", "width", "minWidth", "maxWidth"].includes(o) && e.handleRefreshColumnQueue());
|
|
9429
9429
|
});
|
|
9430
9430
|
});
|
|
@@ -9764,7 +9764,7 @@ const Tt = {
|
|
|
9764
9764
|
const { $table: t, row: n, column: o } = e, r = t.props, s = t.reactData, i = t.internalData, { isRowGroupStatus: d } = s, { editConfig: p } = r, { field: y, slots: C, editRender: E, cellRender: k, rowGroupNode: I, aggFunc: _, formatter: m } = o, R = p && pt(p) && pt(E) ? E : null, x = pt(k) ? k : null, T = C ? C.default : null, G = C ? C.groupContent || C["group-content"] : null, A = C ? C.groupValues || C["group-values"] : null;
|
|
9765
9765
|
let P = "";
|
|
9766
9766
|
if (d && y && n.isAggregate) {
|
|
9767
|
-
const F = n, { fullColumnFieldData: B } = i, { computeAggregateOpts: W } = t.getComputeMaps(), ne = W.value, { mode: V, showTotal: Y, totalMethod: q, countFields: se, contentMethod:
|
|
9767
|
+
const F = n, { fullColumnFieldData: B } = i, { computeAggregateOpts: W } = t.getComputeMaps(), ne = W.value, { mode: V, showTotal: Y, totalMethod: q, countFields: se, contentMethod: fe, formatValuesMethod: ue, mapChildrenField: me } = ne, He = F.aggData, J = He ? He[y] : null, Z = F.groupField, ie = F.groupContent, be = me ? F[me] || [] : [], Se = F.childCount, Oe = B[Z] || {}, ye = {
|
|
9768
9768
|
$table: t,
|
|
9769
9769
|
groupField: Z,
|
|
9770
9770
|
groupColumn: Oe ? Oe.column : null,
|
|
@@ -9785,12 +9785,12 @@ const Tt = {
|
|
|
9785
9785
|
totalValue: Se
|
|
9786
9786
|
};
|
|
9787
9787
|
if (V === "column" ? y === F.groupField : I) {
|
|
9788
|
-
if (P = ie,
|
|
9788
|
+
if (P = ie, fe && (P = `${fe(ye)}`), Y && (P = Xa("vxe.table.rowGroupContentTotal", [P, q ? q(ye) : Se, Se])), G)
|
|
9789
9789
|
return eo(e, t.callSlot(G, Object.assign({ groupField: Z, groupContent: ie, childList: be, childCount: Se }, e)));
|
|
9790
9790
|
} else if (t.getPivotTableAggregateCellAggValue) {
|
|
9791
9791
|
if (P = t.getPivotTableAggregateCellAggValue(e), ye.aggValue = P, A)
|
|
9792
9792
|
return eo(e, t.callSlot(A, Object.assign({ groupField: Z, groupContent: ie, childList: be, childCount: Se }, e, ye)));
|
|
9793
|
-
} else if ((_ === !0 || se && se.includes(y)) && (P = J ? J.value : Se, ye.aggValue = P,
|
|
9793
|
+
} else if ((_ === !0 || se && se.includes(y)) && (P = J ? J.value : Se, ye.aggValue = P, ue && (P = ue(ye)), A))
|
|
9794
9794
|
return eo(e, t.callSlot(A, Object.assign({ groupField: Z, groupContent: ie, childList: be, childCount: Se }, e, ye)));
|
|
9795
9795
|
} else {
|
|
9796
9796
|
if (T)
|
|
@@ -9860,16 +9860,16 @@ const Tt = {
|
|
|
9860
9860
|
if (C)
|
|
9861
9861
|
return n.callSlot(C, e);
|
|
9862
9862
|
const { computeTreeOpts: E } = n.getComputeMaps(), { treeExpandedFlag: k } = r, { fullAllDataRowIdData: I, treeExpandedMaps: _, treeExpandLazyLoadedMaps: m } = s, u = E.value, { padding: R, indent: x, lazy: T, trigger: G, iconLoaded: A, showIcon: P, iconOpen: M, iconClose: F } = u, B = u.children || u.childrenField, W = u.hasChild || u.hasChildField, ne = i[B], V = ne && ne.length;
|
|
9863
|
-
let Y = !1, q = !1, se = !1,
|
|
9864
|
-
const
|
|
9863
|
+
let Y = !1, q = !1, se = !1, fe = !1;
|
|
9864
|
+
const ue = {};
|
|
9865
9865
|
if (!o) {
|
|
9866
9866
|
const me = Je(n, i);
|
|
9867
9867
|
if (q = !!k && !!_[me], T) {
|
|
9868
9868
|
const He = I[me];
|
|
9869
|
-
se = !!m[me], Y = i[W],
|
|
9869
|
+
se = !!m[me], Y = i[W], fe = !!He.treeLoaded;
|
|
9870
9870
|
}
|
|
9871
9871
|
}
|
|
9872
|
-
return (!G || G === "default") && (
|
|
9872
|
+
return (!G || G === "default") && (ue.onClick = (me) => {
|
|
9873
9873
|
n.triggerTreeExpandEvent(me, e);
|
|
9874
9874
|
}), O("div", {
|
|
9875
9875
|
class: ["vxe-cell--tree-node", {
|
|
@@ -9879,8 +9879,8 @@ const Tt = {
|
|
|
9879
9879
|
paddingLeft: `${p * x}px`
|
|
9880
9880
|
} : void 0
|
|
9881
9881
|
}, [
|
|
9882
|
-
P && (T ?
|
|
9883
|
-
O("div", Object.assign({ class: "vxe-cell--tree-btn" },
|
|
9882
|
+
P && (T ? fe ? V : V || Y : V) ? [
|
|
9883
|
+
O("div", Object.assign({ class: "vxe-cell--tree-btn" }, ue), [
|
|
9884
9884
|
O("i", {
|
|
9885
9885
|
class: se ? A || xn().TABLE_TREE_LOADED : q ? M || xn().TABLE_TREE_OPEN : F || xn().TABLE_TREE_CLOSE
|
|
9886
9886
|
})
|
|
@@ -9996,12 +9996,12 @@ const Tt = {
|
|
|
9996
9996
|
if (!r) {
|
|
9997
9997
|
const se = Je(t, n);
|
|
9998
9998
|
if (B = !!y && !!E[se], T && C && t.isAggregateRecord(n)) {
|
|
9999
|
-
const
|
|
10000
|
-
(!
|
|
9999
|
+
const fe = n[u || ""];
|
|
10000
|
+
(!fe || !fe.length || fe.every((ue) => !T({ $table: t, row: ue }))) && (ne = !0);
|
|
10001
10001
|
} else
|
|
10002
10002
|
W = !G || G({ $table: t, row: n }), ne = T ? !T({ $table: t, row: n }) : !!T;
|
|
10003
|
-
(p || C) && (F = !!k[se]), V.onClick = (
|
|
10004
|
-
!ne && W && t.triggerCheckRowEvent(
|
|
10003
|
+
(p || C) && (F = !!k[se]), V.onClick = (fe) => {
|
|
10004
|
+
!ne && W && t.triggerCheckRowEvent(fe, e, !B);
|
|
10005
10005
|
};
|
|
10006
10006
|
}
|
|
10007
10007
|
const Y = Object.assign(Object.assign({}, e), { checked: B, disabled: ne, visible: W, indeterminate: F });
|
|
@@ -10029,14 +10029,14 @@ const Tt = {
|
|
|
10029
10029
|
let B = !1, W = !1, ne = !0, V = !1;
|
|
10030
10030
|
const Y = {};
|
|
10031
10031
|
if (!r) {
|
|
10032
|
-
const
|
|
10032
|
+
const fe = Je(t, n);
|
|
10033
10033
|
if (W = !!y && f.get(n, x), T && C && t.isAggregateRecord(n)) {
|
|
10034
|
-
const
|
|
10035
|
-
(!
|
|
10034
|
+
const ue = n[m || ""];
|
|
10035
|
+
(!ue || !ue.length || ue.every((me) => !T({ $table: t, row: me }))) && (V = !0);
|
|
10036
10036
|
} else
|
|
10037
10037
|
ne = !G || G({ $table: t, row: n }), V = T ? !T({ $table: t, row: n }) : !!T;
|
|
10038
|
-
(p || C) && (B = !!E[
|
|
10039
|
-
!V && ne && t.triggerCheckRowEvent(
|
|
10038
|
+
(p || C) && (B = !!E[fe]), Y.onClick = (ue) => {
|
|
10039
|
+
!V && ne && t.triggerCheckRowEvent(ue, e, !W);
|
|
10040
10040
|
};
|
|
10041
10041
|
}
|
|
10042
10042
|
const q = Object.assign(Object.assign({}, e), { checked: W, disabled: V, visible: ne, indeterminate: B });
|
|
@@ -10396,7 +10396,7 @@ const Tt = {
|
|
|
10396
10396
|
setup(e, { slots: t }) {
|
|
10397
10397
|
const n = ve(), o = no("$xeTable", null), r = no("$xeColgroup", null);
|
|
10398
10398
|
if (!o)
|
|
10399
|
-
return () =>
|
|
10399
|
+
return () => gt();
|
|
10400
10400
|
const s = Tt.createColumn(o, e);
|
|
10401
10401
|
s.slots = t;
|
|
10402
10402
|
const i = () => O("div", {
|
|
@@ -10425,7 +10425,7 @@ const Ur = bl({
|
|
|
10425
10425
|
setup(e, { slots: t }) {
|
|
10426
10426
|
const n = ve(), o = no("$xeTable", null), r = no("$xeColgroup", null);
|
|
10427
10427
|
if (!o)
|
|
10428
|
-
return () =>
|
|
10428
|
+
return () => gt();
|
|
10429
10429
|
const s = Tt.createColumn(o, e), i = {};
|
|
10430
10430
|
t.header && (i.header = t.header), s.slots = i, s.children = [], Fm(o, e, s), ro(() => {
|
|
10431
10431
|
const y = n.value;
|
|
@@ -10928,7 +10928,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
10928
10928
|
}
|
|
10929
10929
|
},
|
|
10930
10930
|
setup(e) {
|
|
10931
|
-
const t = no("$xeTable", {}), { xID: n, props: o, context: r, reactData: s, internalData: i } = t, { computeEditOpts: d, computeMouseOpts: p, computeCellOffsetWidth: y, computeAreaOpts: C, computeDefaultRowHeight: E, computeEmptyOpts: k, computeTooltipOpts: I, computeRadioOpts: _, computeExpandOpts: m, computeTreeOpts: u, computeCheckboxOpts: R, computeCellOpts: x, computeValidOpts: T, computeRowOpts: G, computeColumnOpts: A, computeRowDragOpts: P, computeResizableOpts: M, computeVirtualXOpts: F, computeVirtualYOpts: B, computeIsBodyRenderOptimize: W } = t.getComputeMaps(), ne = ve(), V = ve(), Y = ve(), q = ve(), se = ve(),
|
|
10931
|
+
const t = no("$xeTable", {}), { xID: n, props: o, context: r, reactData: s, internalData: i } = t, { computeEditOpts: d, computeMouseOpts: p, computeCellOffsetWidth: y, computeAreaOpts: C, computeDefaultRowHeight: E, computeEmptyOpts: k, computeTooltipOpts: I, computeRadioOpts: _, computeExpandOpts: m, computeTreeOpts: u, computeCheckboxOpts: R, computeCellOpts: x, computeValidOpts: T, computeRowOpts: G, computeColumnOpts: A, computeRowDragOpts: P, computeResizableOpts: M, computeVirtualXOpts: F, computeVirtualYOpts: B, computeIsBodyRenderOptimize: W } = t.getComputeMaps(), ne = ve(), V = ve(), Y = ve(), q = ve(), se = ve(), fe = ve(), ue = ve(), me = ve(), He = () => {
|
|
10932
10932
|
const { delayHover: Se } = o, { lastScrollTime: Oe, isDragResize: ye } = s;
|
|
10933
10933
|
return !!(ye || Oe && Date.now() < Oe + Se);
|
|
10934
10934
|
}, J = (Se, Oe, ye) => {
|
|
@@ -10937,14 +10937,14 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
10937
10937
|
if (Xe && Xe.line)
|
|
10938
10938
|
return t.callSlot(Xe.line, Oe);
|
|
10939
10939
|
const De = ee[Se];
|
|
10940
|
-
let $e = 0, ce = null,
|
|
10941
|
-
if (De && ($e = De.level, ce = De.items[De.treeIndex - 1],
|
|
10940
|
+
let $e = 0, ce = null, de = null, ge = "";
|
|
10941
|
+
if (De && ($e = De.level, ce = De.items[De.treeIndex - 1], de = De.parent), !$e && !qe.showRootLine)
|
|
10942
10942
|
return [];
|
|
10943
10943
|
if (ce)
|
|
10944
|
-
|
|
10945
|
-
else if ($e &&
|
|
10946
|
-
const U = ee[Je(t,
|
|
10947
|
-
|
|
10944
|
+
ge = `${(ee[Je(t, ce)] || {}).lineHeight || 0}px`;
|
|
10945
|
+
else if ($e && de) {
|
|
10946
|
+
const U = ee[Je(t, de)] || {};
|
|
10947
|
+
ge = `calc(-1em + ${Math.floor(ye / 2 + Qo(U, lt, Ye, et) / 2)}px)`;
|
|
10948
10948
|
}
|
|
10949
10949
|
return [
|
|
10950
10950
|
O("div", {
|
|
@@ -10954,7 +10954,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
10954
10954
|
O("div", {
|
|
10955
10955
|
class: "vxe-tree--line",
|
|
10956
10956
|
style: {
|
|
10957
|
-
height:
|
|
10957
|
+
height: ge,
|
|
10958
10958
|
bottom: `-${Math.floor(ye / 2)}px`,
|
|
10959
10959
|
left: `calc(${$e * qe.indent}px + 1em)`
|
|
10960
10960
|
}
|
|
@@ -10964,9 +10964,9 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
10964
10964
|
}
|
|
10965
10965
|
return [];
|
|
10966
10966
|
}, Z = (Se, Oe, ye, ae, Ve, lt, Ye, et, qe, Xe, Be, ee, De) => {
|
|
10967
|
-
const $e = t.xeGrid, ce = t.xeGantt, { columnKey:
|
|
10967
|
+
const $e = t.xeGrid, ce = t.xeGantt, { columnKey: de, resizable: ge, showOverflow: U, border: Re, height: Te, treeConfig: he, cellClassName: _e, cellStyle: Fe, align: Ge, spanMethod: mt, mouseConfig: rt, editConfig: xt, editRules: tt, tooltipConfig: st, padding: at } = o, { tableData: Ot, tableColumn: nt, dragRow: It, overflowX: it, overflowY: zt, currentColumn: rn, scrollXLoad: nn, scrollYLoad: Ct, mergeBodyFlag: Mt, calcCellHeightFlag: on, resizeHeightFlag: Ht, resizeWidthFlag: Wt, editStore: tn, isAllOverflow: vt, validErrorMaps: Q } = s, { fullAllDataRowIdData: xe, fullColumnIdData: ze, mergeBodyCellMaps: je, visibleColumn: Ze, afterFullData: wt, mergeBodyList: Ft, scrollXStore: Gt, scrollYStore: ut } = i, dt = x.value, _t = T.value, Kt = R.value, pn = d.value, Io = I.value, Co = M.value, $n = F.value, qn = B.value, { isAllColumnDrag: zo, isAllRowDrag: No } = Co, gn = G.value, so = P.value, Zt = E.value, fn = on ? dt.height || gn.height : 0, { disabledMethod: ao, isCrossDrag: Qt, isPeerDrag: Xo } = so, Zn = A.value, Bn = p.value, Yl = C.value, wn = y.value, { selectCellToRow: Qn } = Yl, { type: po, cellRender: zn, editRender: Xn, align: Ro, showOverflow: io, className: co, treeNode: Uo, rowResize: xl, padding: Nn, verticalAlign: mo, slots: Ko } = Xe, { verticalAlign: ln } = dt, { actived: $t } = tn, Oo = xe[Oe] || {}, Ao = Xe.id, Ir = ze[Ao] || {}, ol = Xn || zn, ll = ol ? wg.get(ol.name) : null, $s = ll ? ll.tableCellClassName || ll.cellClassName : null, Ls = ll ? ll.tableCellStyle || ll.cellStyle : "", rs = Io.showAll, yi = Ir.index, ss = Ir._index, Ei = pt(Xn), Si = Ht ? Oo.resizeHeight : 0;
|
|
10968
10968
|
let Fl = it && (ye ? Xe.fixed !== ye : !!Xe.fixed);
|
|
10969
|
-
const Ri = f.eqNull(Nn) ? at === null ? dt.padding : at : Nn, _s = f.eqNull(io) ? U : io, Fa = _s === "ellipsis", g = _s === "title", ql = _s === !0 || _s === "tooltip", as = vt || g || ql || Fa, Ln = f.isBoolean(Xe.resizable) ? Xe.resizable : Zn.resizable ||
|
|
10969
|
+
const Ri = f.eqNull(Nn) ? at === null ? dt.padding : at : Nn, _s = f.eqNull(io) ? U : io, Fa = _s === "ellipsis", g = _s === "title", ql = _s === !0 || _s === "tooltip", as = vt || g || ql || Fa, Ln = f.isBoolean(Xe.resizable) ? Xe.resizable : Zn.resizable || ge, Ps = !!fn, Ia = Si > 0;
|
|
10970
10970
|
let Oi;
|
|
10971
10971
|
const Il = {}, Hs = Ro || (ll ? ll.tableCellAlign : "") || Ge, Bs = f.eqNull(mo) ? ln : mo, Al = Q[`${Oe}:${Ao}`], Gc = tt && _t.showMessage && (_t.message === "default" ? Te || Ot.length > 1 : _t.message === "inline"), Xl = { colid: Ao }, Un = {
|
|
10972
10972
|
$table: t,
|
|
@@ -11130,9 +11130,9 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11130
11130
|
jr($s, Un),
|
|
11131
11131
|
jr(co, Un),
|
|
11132
11132
|
jr(_e, Un)
|
|
11133
|
-
], key:
|
|
11133
|
+
], key: de || nn || Ct || Zn.useKey || gn.useKey || Zn.drag ? Ao : Be }, Xl), { style: Object.assign({}, f.isFunction(Ls) ? Ls(Un) : Ls, f.isFunction(Fe) ? Fe(Un) : Fe) }), Il), ae && Fl ? [] : Ul);
|
|
11134
11134
|
}, ie = (Se, Oe, ye, ae) => {
|
|
11135
|
-
const Ve = t.xeGrid, lt = t.xeGantt, { stripe: Ye, rowKey: et, highlightHoverRow: qe, rowClassName: Xe, rowStyle: Be, editConfig: ee, treeConfig: De } = o, { hasFixedColumn: $e, treeExpandedFlag: ce, scrollXLoad:
|
|
11135
|
+
const Ve = t.xeGrid, lt = t.xeGantt, { stripe: Ye, rowKey: et, highlightHoverRow: qe, rowClassName: Xe, rowStyle: Be, editConfig: ee, treeConfig: De } = o, { hasFixedColumn: $e, treeExpandedFlag: ce, scrollXLoad: de, scrollYLoad: ge, isAllOverflow: U, rowExpandedFlag: Re, expandColumn: Te, selectRadioRow: he, pendingRowFlag: _e, rowExpandHeightFlag: Fe, isRowGroupStatus: Ge } = s, { fullAllDataRowIdData: mt, fullColumnIdData: rt, treeExpandedMaps: xt, pendingRowMaps: tt, rowExpandedMaps: st } = i, at = R.value, Ot = _.value, nt = u.value, It = d.value, it = G.value, zt = A.value, { transform: rn, seqMode: nn } = nt, Ct = nt.children || nt.childrenField, Mt = [], { handleGetRowId: on } = Pn(t), Ht = De || Ge;
|
|
11136
11136
|
return ye.forEach((Wt, tn) => {
|
|
11137
11137
|
const vt = on(Wt), Q = mt[vt] || {};
|
|
11138
11138
|
let xe = tn, ze = 0, je = -1, Ze = -1;
|
|
@@ -11155,7 +11155,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11155
11155
|
_rowIndex: Ze
|
|
11156
11156
|
}, ut = Te && !!Re && !!st[vt];
|
|
11157
11157
|
let dt = !1, _t = [], Kt = !1;
|
|
11158
|
-
ee && (Kt = t.isInsertByRow(Wt)), De && !
|
|
11158
|
+
ee && (Kt = t.isInsertByRow(Wt)), De && !ge && !rn && (_t = Wt[Ct], dt = !!ce && _t && _t.length > 0 && !!xt[vt]), it.drag && !Ge && (!De || rn) && (Ft.onDragstart = t.handleRowDragDragstartEvent, Ft.onDragend = t.handleRowDragDragendEvent, Ft.onDragover = t.handleRowDragDragoverEvent);
|
|
11159
11159
|
const pn = [
|
|
11160
11160
|
"vxe-body--row",
|
|
11161
11161
|
Ht ? `row--level-${ze}` : "",
|
|
@@ -11172,7 +11172,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11172
11172
|
},
|
|
11173
11173
|
jr(Xe, Gt)
|
|
11174
11174
|
], Io = ae.map((Co, $n) => Z(je, vt, Se, Oe, ze, Wt, xe, tn, Ze, Co, $n, ae, ye));
|
|
11175
|
-
if (Mt.push(O("tr", Object.assign({ class: pn, rowid: vt, style: Be ? f.isFunction(Be) ? Be(Gt) : Be : null, key: et ||
|
|
11175
|
+
if (Mt.push(O("tr", Object.assign({ class: pn, rowid: vt, style: Be ? f.isFunction(Be) ? Be(Gt) : Be : null, key: et || de || ge || it.useKey || it.drag || zt.drag || Ge || De ? vt : tn }, Ft), Io)), ut) {
|
|
11176
11176
|
const Co = m.value, { height: $n, padding: qn, mode: zo } = Co;
|
|
11177
11177
|
if (zo === "fixed")
|
|
11178
11178
|
Mt.push(O("tr", {
|
|
@@ -11249,19 +11249,19 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11249
11249
|
return ro(() => {
|
|
11250
11250
|
pe(() => {
|
|
11251
11251
|
const { fixedType: Se } = e, { elemStore: Oe } = i, ye = `${Se || "main"}-body-`;
|
|
11252
|
-
Oe[`${ye}wrapper`] = ne, Oe[`${ye}scroll`] = V, Oe[`${ye}table`] = Y, Oe[`${ye}colgroup`] = q, Oe[`${ye}list`] = se, Oe[`${ye}xSpace`] =
|
|
11252
|
+
Oe[`${ye}wrapper`] = ne, Oe[`${ye}scroll`] = V, Oe[`${ye}table`] = Y, Oe[`${ye}colgroup`] = q, Oe[`${ye}list`] = se, Oe[`${ye}xSpace`] = fe, Oe[`${ye}ySpace`] = ue, Oe[`${ye}emptyBlock`] = me;
|
|
11253
11253
|
});
|
|
11254
11254
|
}), xo(() => {
|
|
11255
11255
|
const { fixedType: Se } = e, { elemStore: Oe } = i, ye = `${Se || "main"}-body-`;
|
|
11256
11256
|
Oe[`${ye}wrapper`] = null, Oe[`${ye}scroll`] = null, Oe[`${ye}table`] = null, Oe[`${ye}colgroup`] = null, Oe[`${ye}list`] = null, Oe[`${ye}xSpace`] = null, Oe[`${ye}ySpace`] = null, Oe[`${ye}emptyBlock`] = null;
|
|
11257
11257
|
}), () => {
|
|
11258
|
-
const { slots: Se } = r, Oe = t.xeGrid, ye = t.xeGantt, { fixedColumn: ae, fixedType: Ve, tableColumn: lt } = e, { mouseConfig: Ye } = o, { isGroup: et, tableData: qe, isColLoading: Xe, overflowX: Be, scrollXLoad: ee, scrollYLoad: De, dragRow: $e, dragCol: ce } = s, { visibleColumn:
|
|
11258
|
+
const { slots: Se } = r, Oe = t.xeGrid, ye = t.xeGantt, { fixedColumn: ae, fixedType: Ve, tableColumn: lt } = e, { mouseConfig: Ye } = o, { isGroup: et, tableData: qe, isColLoading: Xe, overflowX: Be, scrollXLoad: ee, scrollYLoad: De, dragRow: $e, dragCol: ce } = s, { visibleColumn: de, fullAllDataRowIdData: ge, fullColumnIdData: U } = i, Re = k.value, Te = p.value, he = W.value;
|
|
11259
11259
|
let _e = qe, Fe = lt;
|
|
11260
11260
|
const Ge = he;
|
|
11261
|
-
if (!Xe && (Ve || !Be) && (Fe =
|
|
11262
|
-
const tt =
|
|
11261
|
+
if (!Xe && (Ve || !Be) && (Fe = de), Ve && Ge && (Fe = ae || []), De && $e && _e.length > 2) {
|
|
11262
|
+
const tt = ge[Je(t, $e)];
|
|
11263
11263
|
if (tt) {
|
|
11264
|
-
const st = tt._index, at = _e[0], Ot = _e[_e.length - 1], nt =
|
|
11264
|
+
const st = tt._index, at = _e[0], Ot = _e[_e.length - 1], nt = ge[Je(t, at)], It = ge[Je(t, Ot)];
|
|
11265
11265
|
if (nt && It) {
|
|
11266
11266
|
const it = nt._index, zt = It._index;
|
|
11267
11267
|
st < it ? _e = [$e].concat(_e) : st > zt && (_e = _e.concat([$e]));
|
|
@@ -11299,11 +11299,11 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11299
11299
|
}
|
|
11300
11300
|
}, [
|
|
11301
11301
|
Ve ? Ua(t) : O("div", {
|
|
11302
|
-
ref:
|
|
11302
|
+
ref: fe,
|
|
11303
11303
|
class: "vxe-body--x-space"
|
|
11304
11304
|
}),
|
|
11305
11305
|
O("div", {
|
|
11306
|
-
ref:
|
|
11306
|
+
ref: ue,
|
|
11307
11307
|
class: "vxe-body--y-space"
|
|
11308
11308
|
}),
|
|
11309
11309
|
O("table", {
|
|
@@ -11393,18 +11393,18 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11393
11393
|
},
|
|
11394
11394
|
setup(e) {
|
|
11395
11395
|
const t = no("$xeTable", {}), { xID: n, props: o, reactData: r, internalData: s } = t, { computeColumnOpts: i, computeColumnDragOpts: d, computeCellOpts: p, computeMouseOpts: y, computeHeaderCellOpts: C, computeDefaultRowHeight: E, computeVirtualXOpts: k, computeFloatingFilterOpts: I, computeIsHeaderRenderOptimize: _ } = t.getComputeMaps(), m = ve([]), u = ve(), R = ve(), x = ve(), T = ve(), G = ve(), A = ve(), P = ve(), M = () => {
|
|
11396
|
-
const { showCustomHeader: V } = o, { collectColumn: Y, visibleColumn: q } = s, { tableGroupColumn: se } = e, { isGroup:
|
|
11397
|
-
let
|
|
11398
|
-
V &&
|
|
11399
|
-
}, F = (V, Y, q, se,
|
|
11400
|
-
const
|
|
11401
|
-
return
|
|
11396
|
+
const { showCustomHeader: V } = o, { collectColumn: Y, visibleColumn: q } = s, { tableGroupColumn: se } = e, { isGroup: fe } = r;
|
|
11397
|
+
let ue = fe ? iD(se) : [], me = [];
|
|
11398
|
+
V && ue.length > 1 && (me = cD(ue), ue = me), m.value = ue, t.dispatchEvent("columns-change", { visibleColgroups: me, collectColumn: Y, visibleColumn: q }, null);
|
|
11399
|
+
}, F = (V, Y, q, se, fe) => {
|
|
11400
|
+
const ue = t.xeGrid, me = t.xeGantt, { fixedType: He } = e, { resizable: J, columnKey: Z, showCustomHeader: ie, headerCellClassName: be, headerCellStyle: Se, showHeaderOverflow: Oe, headerAlign: ye, align: ae, mouseConfig: Ve } = o, { currentColumn: lt, dragCol: Ye, scrollXLoad: et, scrollYLoad: qe, overflowX: Xe, mergeHeadFlag: Be, tableColumn: ee } = r, { fullColumnIdData: De, scrollXStore: $e, mergeHeaderList: ce, mergeHeaderCellMaps: de } = s, ge = k.value, U = i.value, Re = d.value, Te = p.value, he = E.value, _e = C.value, Fe = ui(_e.height) || he, { disabledMethod: Ge, isCrossDrag: mt, isPeerDrag: rt } = Re, xt = se === q.length - 1;
|
|
11401
|
+
return fe.map((tt, st) => {
|
|
11402
11402
|
const { type: at, showHeaderOverflow: Ot, headerAlign: nt, align: It, filters: it, headerClassName: zt, editRender: rn, cellRender: nn } = tt, Ct = tt.id, Mt = De[Ct] || {}, on = rn || nn, Ht = on ? Mu.get(on.name) : null, Wt = tt.children && tt.children.length, tn = Xe && !Wt && (He ? tt.fixed !== He : !!tt.fixed), vt = f.isBoolean(_e.padding) ? _e.padding : Te.padding, Q = f.eqNull(Ot) ? Oe : Ot, xe = nt || (Ht ? Ht.tableHeaderCellAlign : "") || ye || It || (Ht ? Ht.tableCellAlign : "") || ae, ze = Q === "ellipsis", je = Q === "title", Ze = Q === !0 || Q === "tooltip", wt = je || Ze || ze;
|
|
11403
11403
|
let Ft = !1, Gt = null;
|
|
11404
11404
|
it && (Gt = it[0], Ft = it.some((Zt) => Zt.checked));
|
|
11405
11405
|
const ut = Mt.index, dt = Mt._index, _t = {
|
|
11406
11406
|
$table: t,
|
|
11407
|
-
$grid:
|
|
11407
|
+
$grid: ue,
|
|
11408
11408
|
$gantt: me,
|
|
11409
11409
|
$rowIndex: se,
|
|
11410
11410
|
column: tt,
|
|
@@ -11422,7 +11422,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11422
11422
|
};
|
|
11423
11423
|
let pn = !1;
|
|
11424
11424
|
if (ie || (Kt.colspan = tt.colSpan > 1 ? tt.colSpan : null, Kt.rowspan = tt.rowSpan > 1 ? tt.rowSpan : null), Be && ce.length && (ie || xt)) {
|
|
11425
|
-
const Zt =
|
|
11425
|
+
const Zt = de[`${se}:${ie ? st : dt}`];
|
|
11426
11426
|
if (Zt) {
|
|
11427
11427
|
const { rowspan: fn, colspan: ao } = Zt;
|
|
11428
11428
|
if (!fn || !ao)
|
|
@@ -11436,9 +11436,9 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11436
11436
|
}, Co = U.drag && Re.trigger === "cell";
|
|
11437
11437
|
let $n = !1;
|
|
11438
11438
|
Co && ($n = !!(Ge && Ge(_t))), (Ve || Co) && (Io.onMousedown = (Zt) => t.triggerHeaderCellMousedownEvent(Zt, _t)), U.drag && (Io.onDragstart = t.handleHeaderCellDragDragstartEvent, Io.onDragend = t.handleHeaderCellDragDragendEvent, Io.onDragover = t.handleHeaderCellDragDragoverEvent, Co && (Io.onMouseup = t.handleHeaderCellDragMouseupEvent));
|
|
11439
|
-
const qn = st ===
|
|
11439
|
+
const qn = st === fe.length - 1, zo = f.isBoolean(tt.resizable) ? tt.resizable : U.resizable || J, No = !tt.resizeWidth && (tt.minWidth === "auto" || tt.width === "auto");
|
|
11440
11440
|
let gn = !1;
|
|
11441
|
-
Y && Xe && !V && !pn && (!Ye || Ye.id !== Ct) && et && ee.length > 10 && !tt.fixed && !
|
|
11441
|
+
Y && Xe && !V && !pn && (!Ye || Ye.id !== Ct) && et && ee.length > 10 && !tt.fixed && !ge.immediate && (dt < $e.visibleStartIndex - $e.preloadSize || dt > $e.visibleEndIndex + $e.preloadSize) && (gn = !0);
|
|
11442
11442
|
const so = {};
|
|
11443
11443
|
if (wt ? so.height = `${Fe}px` : so.minHeight = `${Fe}px`, !ie) {
|
|
11444
11444
|
if (Wt && !xt) {
|
|
@@ -11495,12 +11495,12 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11495
11495
|
]);
|
|
11496
11496
|
});
|
|
11497
11497
|
}, B = (V, Y) => {
|
|
11498
|
-
const q = t.xeGrid, se = t.xeGantt, { fixedType:
|
|
11498
|
+
const q = t.xeGrid, se = t.xeGantt, { fixedType: fe } = e, { showHeaderOverflow: ue, headerAlign: me, align: He } = o, { currentColumn: J, overflowX: Z } = r, { fullColumnIdData: ie } = s, be = p.value, Se = E.value, Oe = C.value, ye = ui(Oe.height) || Se;
|
|
11499
11499
|
return Y.map((ae, Ve) => {
|
|
11500
|
-
const { type: lt, showHeaderOverflow: Ye, headerAlign: et, align: qe, filters: Xe, editRender: Be, cellRender: ee, floatingFilters: De, filterRender: $e, slots: ce } = ae,
|
|
11500
|
+
const { type: lt, showHeaderOverflow: Ye, headerAlign: et, align: qe, filters: Xe, editRender: Be, cellRender: ee, floatingFilters: De, filterRender: $e, slots: ce } = ae, de = ae.id, ge = ie[de] || {}, U = Be || ee, Re = ce ? ce.floatingFilter || ce["floating-filter"] : null, Te = U ? Mu.get(U.name) : null, he = pt($e) ? Mu.get($e.name) : null, _e = he ? he.renderTableFloatingFilter : null, Fe = Z && (fe ? ae.fixed !== fe : !!ae.fixed), Ge = f.isBoolean(Oe.padding) ? Oe.padding : be.padding, mt = f.eqNull(Ye) ? ue : Ye, rt = et || (Te ? Te.tableHeaderCellAlign : "") || me || qe || (Te ? Te.tableCellAlign : "") || He, xt = mt === "ellipsis", tt = mt === "title", st = mt === !0 || mt === "tooltip", at = tt || st || xt;
|
|
11501
11501
|
let Ot = !1, nt = null;
|
|
11502
11502
|
Xe && (nt = Xe[0], Ot = Xe.some((on) => on.checked));
|
|
11503
|
-
const It =
|
|
11503
|
+
const It = ge.index, it = ge._index, zt = {
|
|
11504
11504
|
$table: t,
|
|
11505
11505
|
$grid: q,
|
|
11506
11506
|
$gantt: se,
|
|
@@ -11509,17 +11509,17 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11509
11509
|
$columnIndex: Ve,
|
|
11510
11510
|
_columnIndex: it,
|
|
11511
11511
|
option: nt,
|
|
11512
|
-
fixed:
|
|
11512
|
+
fixed: fe,
|
|
11513
11513
|
source: Sg,
|
|
11514
11514
|
type: ku,
|
|
11515
11515
|
isHidden: Fe,
|
|
11516
11516
|
hasFilter: Ot
|
|
11517
11517
|
}, rn = {
|
|
11518
|
-
colid:
|
|
11518
|
+
colid: de
|
|
11519
11519
|
}, nn = Ve === Y.length - 1, Ct = !ae.resizeWidth && (ae.minWidth === "auto" || ae.width === "auto"), Mt = {};
|
|
11520
11520
|
return at ? Mt.height = `${ye}px` : Mt.minHeight = `${ye}px`, O("th", Object.assign({ class: [
|
|
11521
11521
|
"vxe-table--column vxe-header--column",
|
|
11522
|
-
|
|
11522
|
+
de,
|
|
11523
11523
|
Fe ? "fixed--hidden" : "fixed--visible",
|
|
11524
11524
|
{
|
|
11525
11525
|
[`col--${rt}`]: rt,
|
|
@@ -11532,7 +11532,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11532
11532
|
"is--sortable": ae.sortable,
|
|
11533
11533
|
"col--current": J === ae
|
|
11534
11534
|
}
|
|
11535
|
-
], key:
|
|
11535
|
+
], key: de }, rn), [
|
|
11536
11536
|
O("div", {
|
|
11537
11537
|
class: ["vxe-cell", {
|
|
11538
11538
|
"c--title": tt,
|
|
@@ -11542,20 +11542,20 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11542
11542
|
style: Mt
|
|
11543
11543
|
}, V && Fe && !De ? [] : [
|
|
11544
11544
|
O("div", {
|
|
11545
|
-
colid:
|
|
11545
|
+
colid: de,
|
|
11546
11546
|
class: "vxe-cell--wrapper vxe-header-cell--wrapper"
|
|
11547
11547
|
}, Re ? t.callSlot(Re, zt) : _e && nt ? Hn(_e($e, zt)) : [])
|
|
11548
11548
|
])
|
|
11549
11549
|
]);
|
|
11550
11550
|
});
|
|
11551
11551
|
}, W = (V, Y, q, se) => {
|
|
11552
|
-
const { fixedType:
|
|
11553
|
-
const be = { $table: t, $rowIndex: ie, fixed:
|
|
11552
|
+
const { fixedType: fe } = e, { headerRowClassName: ue, headerRowStyle: me } = o, He = I.value, J = q.map((Z, ie) => {
|
|
11553
|
+
const be = { $table: t, $rowIndex: ie, fixed: fe, type: ku };
|
|
11554
11554
|
return O("tr", {
|
|
11555
11555
|
key: ie,
|
|
11556
11556
|
class: [
|
|
11557
11557
|
"vxe-header--row",
|
|
11558
|
-
|
|
11558
|
+
ue ? f.isFunction(ue) ? ue(be) : ue : ""
|
|
11559
11559
|
],
|
|
11560
11560
|
style: me ? f.isFunction(me) ? me(be) : me : null
|
|
11561
11561
|
}, F(V, Y, q, ie, Z));
|
|
@@ -11567,10 +11567,10 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11567
11567
|
]
|
|
11568
11568
|
}, B(Y, se))), J;
|
|
11569
11569
|
}, ne = () => {
|
|
11570
|
-
const { fixedType: V, fixedColumn: Y, tableColumn: q } = e, { mouseConfig: se } = o, { isGroup:
|
|
11570
|
+
const { fixedType: V, fixedColumn: Y, tableColumn: q } = e, { mouseConfig: se } = o, { isGroup: fe, isColLoading: ue, overflowX: me, scrollXLoad: He, dragCol: J } = r, { visibleColumn: Z, fullColumnIdData: ie } = s, be = y.value, Se = _.value;
|
|
11571
11571
|
let Oe = m.value || [], ye = q;
|
|
11572
11572
|
const ae = Se;
|
|
11573
|
-
if (
|
|
11573
|
+
if (fe ? ye = Z : ((!ae || !ue && (V || !me)) && (ye = Z), V && ae && (ye = Y || []), Oe = [ye]), !V && !fe && He && J && ye.length > 2) {
|
|
11574
11574
|
const Ve = ie[J.id];
|
|
11575
11575
|
if (Ve) {
|
|
11576
11576
|
const lt = Ve._index, Ye = ye[0], et = ye[ye.length - 1], qe = ie[Ye.id], Xe = ie[et.id];
|
|
@@ -11622,7 +11622,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11622
11622
|
*/
|
|
11623
11623
|
O("thead", {
|
|
11624
11624
|
ref: G
|
|
11625
|
-
}, W(
|
|
11625
|
+
}, W(fe, ae, Oe, ye))
|
|
11626
11626
|
]),
|
|
11627
11627
|
se && be.area ? O("div", {
|
|
11628
11628
|
class: "vxe-table--cell-area",
|
|
@@ -11650,7 +11650,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11650
11650
|
])
|
|
11651
11651
|
]);
|
|
11652
11652
|
};
|
|
11653
|
-
return
|
|
11653
|
+
return ht(() => e.tableColumn, M), ro(() => {
|
|
11654
11654
|
pe(() => {
|
|
11655
11655
|
const { fixedType: V } = e, { internalData: Y } = t, { elemStore: q } = Y, se = `${V || "main"}-header-`;
|
|
11656
11656
|
q[`${se}wrapper`] = u, q[`${se}scroll`] = R, q[`${se}table`] = x, q[`${se}colgroup`] = T, q[`${se}list`] = G, q[`${se}xSpace`] = A, q[`${se}repair`] = P, M();
|
|
@@ -11682,9 +11682,9 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11682
11682
|
},
|
|
11683
11683
|
setup(e) {
|
|
11684
11684
|
const t = no("$xeTable", {}), { xID: n, props: o, reactData: r, internalData: s } = t, { computeFooterTooltipOpts: i, computeColumnOpts: d, computeCellOpts: p, computeFooterCellOpts: y, computeDefaultRowHeight: C, computeResizableOpts: E, computeVirtualXOpts: k, computeIsFooterRenderOptimize: I } = t.getComputeMaps(), _ = ve(), m = ve(), u = ve(), R = ve(), x = ve(), T = ve(), G = (M, F, B, W, ne, V) => {
|
|
11685
|
-
const Y = t.xeGrid, q = t.xeGantt, { fixedType: se } = e, { resizable:
|
|
11685
|
+
const Y = t.xeGrid, q = t.xeGantt, { fixedType: se } = e, { resizable: fe, border: ue, footerCellClassName: me, footerCellStyle: He, footerAlign: J, footerSpanMethod: Z, align: ie, columnKey: be, showFooterOverflow: Se } = o, { scrollXLoad: Oe, scrollYLoad: ye, overflowX: ae, currentColumn: Ve, mergeFootFlag: lt } = r, { fullColumnIdData: Ye, mergeFooterList: et, mergeFooterCellMaps: qe, scrollXStore: Xe } = s, Be = k.value, ee = i.value, De = E.value, { isAllColumnDrag: $e } = De, ce = d.value, de = C.value, ge = p.value, U = y.value, Re = ui(U.height) || de;
|
|
11686
11686
|
return F.map((Te, he) => {
|
|
11687
|
-
const { type: _e, showFooterOverflow: Fe, footerAlign: Ge, align: mt, footerClassName: rt, editRender: xt, cellRender: tt } = Te, st = Te.id, at = Ye[st] || {}, Ot = xt || tt, nt = Ot ? AD.get(Ot.name) : null, It = ee.showAll, it = ae && (se ? Te.fixed !== se : !!Te.fixed), zt = f.isBoolean(U.padding) ? U.padding :
|
|
11687
|
+
const { type: _e, showFooterOverflow: Fe, footerAlign: Ge, align: mt, footerClassName: rt, editRender: xt, cellRender: tt } = Te, st = Te.id, at = Ye[st] || {}, Ot = xt || tt, nt = Ot ? AD.get(Ot.name) : null, It = ee.showAll, it = ae && (se ? Te.fixed !== se : !!Te.fixed), zt = f.isBoolean(U.padding) ? U.padding : ge.padding, rn = f.eqNull(Fe) ? Se : Fe, nn = Ge || (nt ? nt.tableFooterCellAlign : "") || J || mt || (nt ? nt.tableCellAlign : "") || ie, Ct = rn === "ellipsis", Mt = rn === "title", on = rn === !0 || rn === "tooltip", Ht = Mt || on || Ct, Wt = f.isBoolean(Te.resizable) ? Te.resizable : ce.resizable || fe, tn = { colid: st }, vt = {}, Q = at.index, xe = at._index, je = {
|
|
11688
11688
|
$table: t,
|
|
11689
11689
|
$grid: Y,
|
|
11690
11690
|
$gantt: q,
|
|
@@ -11759,7 +11759,7 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11759
11759
|
*/
|
|
11760
11760
|
!it && Wt && $e ? O("div", {
|
|
11761
11761
|
class: ["vxe-cell--col-resizable", {
|
|
11762
|
-
"is--line": !
|
|
11762
|
+
"is--line": !ue || ue === "none"
|
|
11763
11763
|
}],
|
|
11764
11764
|
onMousedown: (dt) => t.handleColResizeMousedownEvent(dt, se, je),
|
|
11765
11765
|
onDblclick: (dt) => t.handleColResizeDblclickEvent(dt, je)
|
|
@@ -11769,27 +11769,27 @@ const { getI18n: ID, renderer: wg, renderEmptyElement: Ua } = Ae, yg = "table",
|
|
|
11769
11769
|
}, A = (M, F) => {
|
|
11770
11770
|
const { fixedType: B, footerTableData: W } = e, { footerRowClassName: ne, footerRowStyle: V } = o;
|
|
11771
11771
|
return W.map((Y, q) => {
|
|
11772
|
-
const se = q,
|
|
11772
|
+
const se = q, fe = { $table: t, row: Y, _rowIndex: se, $rowIndex: q, fixed: B, type: Dg };
|
|
11773
11773
|
return O("tr", {
|
|
11774
11774
|
key: q,
|
|
11775
11775
|
class: [
|
|
11776
11776
|
"vxe-footer--row",
|
|
11777
|
-
ne ? f.isFunction(ne) ? ne(
|
|
11777
|
+
ne ? f.isFunction(ne) ? ne(fe) : ne : ""
|
|
11778
11778
|
],
|
|
11779
|
-
style: V ? f.isFunction(V) ? V(
|
|
11779
|
+
style: V ? f.isFunction(V) ? V(fe) : V : null
|
|
11780
11780
|
}, G(M, F, W, Y, q, se));
|
|
11781
11781
|
});
|
|
11782
11782
|
}, P = () => {
|
|
11783
|
-
const { fixedType: M, fixedColumn: F, tableColumn: B } = e, { visibleColumn: W, fullColumnIdData: ne } = s, { isGroup: V, isColLoading: Y, overflowX: q, scrollXLoad: se, dragCol:
|
|
11783
|
+
const { fixedType: M, fixedColumn: F, tableColumn: B } = e, { visibleColumn: W, fullColumnIdData: ne } = s, { isGroup: V, isColLoading: Y, overflowX: q, scrollXLoad: se, dragCol: fe } = r, ue = I.value;
|
|
11784
11784
|
let me = B;
|
|
11785
|
-
const He =
|
|
11786
|
-
if ((!He || !Y && (M || !q)) && (me = W), M && He && (me = F || []), !M && !V && se &&
|
|
11787
|
-
const J = ne[
|
|
11785
|
+
const He = ue;
|
|
11786
|
+
if ((!He || !Y && (M || !q)) && (me = W), M && He && (me = F || []), !M && !V && se && fe && me.length > 2) {
|
|
11787
|
+
const J = ne[fe.id];
|
|
11788
11788
|
if (J) {
|
|
11789
11789
|
const Z = J._index, ie = me[0], be = me[me.length - 1], Se = ne[ie.id], Oe = ne[be.id];
|
|
11790
11790
|
if (Se && Oe) {
|
|
11791
11791
|
const ye = Se._index, ae = Oe._index;
|
|
11792
|
-
Z < ye ? me = [
|
|
11792
|
+
Z < ye ? me = [fe].concat(me) : Z > ae && (me = me.concat([fe]));
|
|
11793
11793
|
}
|
|
11794
11794
|
}
|
|
11795
11795
|
}
|
|
@@ -11899,7 +11899,7 @@ const LD = bl({
|
|
|
11899
11899
|
p.cancelCustom(), p.closeCustom(), p.emitCustomEvent("cancel", ee), p.emitCustomEvent("close", ee);
|
|
11900
11900
|
}, se = (ee) => {
|
|
11901
11901
|
p.resetCustom(!0), p.closeCustom(), p.emitCustomEvent("reset", ee), p.emitCustomEvent("close", ee);
|
|
11902
|
-
},
|
|
11902
|
+
}, fe = ({ $event: ee }) => {
|
|
11903
11903
|
Ae.modal ? Ae.modal.confirm({
|
|
11904
11904
|
content: En("vxe.custom.cstmConfirmRestore"),
|
|
11905
11905
|
className: "vxe-table--ignore-clear",
|
|
@@ -11907,55 +11907,55 @@ const LD = bl({
|
|
|
11907
11907
|
}).then((De) => {
|
|
11908
11908
|
De === "confirm" && se(ee);
|
|
11909
11909
|
}) : se(ee);
|
|
11910
|
-
},
|
|
11910
|
+
}, ue = (ee) => {
|
|
11911
11911
|
const { customColumnList: De } = C, $e = f.findTree(De, (ce) => ce === ee);
|
|
11912
11912
|
if ($e && $e.parent) {
|
|
11913
11913
|
const { parent: ce } = $e;
|
|
11914
|
-
ce.children && ce.children.length && (ce.renderVisible = ce.children.every((
|
|
11914
|
+
ce.children && ce.children.length && (ce.renderVisible = ce.children.every((de) => de.renderVisible), ce.halfVisible = !ce.renderVisible && ce.children.some((de) => de.renderVisible || de.halfVisible), ue(ce));
|
|
11915
11915
|
}
|
|
11916
11916
|
}, me = (ee, De) => {
|
|
11917
11917
|
const $e = !ee.renderVisible;
|
|
11918
|
-
k.value.immediate ? (f.eachTree([ee], (
|
|
11919
|
-
|
|
11920
|
-
}), C.isCustomStatus = !0, p.handleCustom(), p.saveCustomStore("update:visible")) : f.eachTree([ee], (
|
|
11921
|
-
|
|
11922
|
-
}),
|
|
11918
|
+
k.value.immediate ? (f.eachTree([ee], (de) => {
|
|
11919
|
+
de.visible = $e, de.renderVisible = $e, de.halfVisible = !1;
|
|
11920
|
+
}), C.isCustomStatus = !0, p.handleCustom(), p.saveCustomStore("update:visible")) : f.eachTree([ee], (de) => {
|
|
11921
|
+
de.renderVisible = $e, de.halfVisible = !1;
|
|
11922
|
+
}), ue(ee), p.checkCustomStatus(), p.dispatchEvent("custom-visible-change", { column: ee, checked: $e }, De);
|
|
11923
11923
|
}, He = (ee) => {
|
|
11924
11924
|
k.value.immediate && ee.renderResizeWidth !== ee.renderWidth && (ee.resizeWidth = ee.renderResizeWidth, ee.renderWidth = ee.renderResizeWidth, C.isCustomStatus = !0, p.handleCustom(), p.saveCustomStore("update:width"));
|
|
11925
11925
|
}, J = (ee, De, $e) => {
|
|
11926
|
-
const ce = m.value,
|
|
11927
|
-
let
|
|
11928
|
-
|
|
11926
|
+
const ce = m.value, de = k.value;
|
|
11927
|
+
let ge = null;
|
|
11928
|
+
de.immediate ? (ee.renderFixed === De ? (ge = "", f.eachTree([ee], (U) => {
|
|
11929
11929
|
U.fixed = "", U.renderFixed = "";
|
|
11930
|
-
})) : (!ce || ee.renderFixed) && (
|
|
11930
|
+
})) : (!ce || ee.renderFixed) && (ge = De, f.eachTree([ee], (U) => {
|
|
11931
11931
|
U.fixed = De, U.renderFixed = De;
|
|
11932
|
-
})), C.isCustomStatus = !0, p.handleCustom(), p.saveCustomStore("update:fixed")) : ee.renderFixed === De ? (
|
|
11932
|
+
})), C.isCustomStatus = !0, p.handleCustom(), p.saveCustomStore("update:fixed")) : ee.renderFixed === De ? (ge = "", f.eachTree([ee], (U) => {
|
|
11933
11933
|
U.renderFixed = "";
|
|
11934
|
-
})) : (!ce || ee.renderFixed) && (
|
|
11934
|
+
})) : (!ce || ee.renderFixed) && (ge = De, f.eachTree([ee], (U) => {
|
|
11935
11935
|
U.renderFixed = De;
|
|
11936
|
-
})),
|
|
11936
|
+
})), ge !== null && p.dispatchEvent("custom-fixed-change", { column: ee, fixed: ge }, $e);
|
|
11937
11937
|
}, Z = (ee) => {
|
|
11938
11938
|
const { customStore: De } = C, $e = !De.isAll;
|
|
11939
11939
|
p.toggleCustomAllCheckbox(), p.dispatchEvent("custom-visible-all", { checked: $e }, ee);
|
|
11940
11940
|
}, ie = (ee, De, $e, ce) => {
|
|
11941
|
-
const
|
|
11942
|
-
if (!ue)
|
|
11943
|
-
return;
|
|
11944
|
-
const de = T.value;
|
|
11941
|
+
const de = x.value;
|
|
11945
11942
|
if (!de)
|
|
11946
11943
|
return;
|
|
11947
|
-
const
|
|
11944
|
+
const ge = T.value;
|
|
11945
|
+
if (!ge)
|
|
11946
|
+
return;
|
|
11947
|
+
const { prevDragToChild: U } = M, Re = de.getBoundingClientRect(), Te = ge.getBoundingClientRect(), he = G.value;
|
|
11948
11948
|
if (De) {
|
|
11949
11949
|
if (he)
|
|
11950
11950
|
if ($e) {
|
|
11951
11951
|
const Fe = De.getBoundingClientRect();
|
|
11952
|
-
he.style.display = "block", he.style.left = `${Math.max(0, Te.x - Re.x)}px`, he.style.top = `${Math.max(1, Fe.y +
|
|
11952
|
+
he.style.display = "block", he.style.left = `${Math.max(0, Te.x - Re.x)}px`, he.style.top = `${Math.max(1, Fe.y + de.scrollTop - Re.y)}px`, he.style.height = `${Fe.height}px`, he.style.width = `${Fe.width}px`, he.setAttribute("drag-pos", ce), he.setAttribute("drag-to-child", U ? "y" : "n");
|
|
11953
11953
|
} else
|
|
11954
11954
|
he.style.display = "";
|
|
11955
11955
|
} else
|
|
11956
11956
|
he && (he.style.display = "node");
|
|
11957
11957
|
const _e = A.value;
|
|
11958
|
-
_e && (_e.style.display = "block", _e.style.top = `${Math.min(
|
|
11958
|
+
_e && (_e.style.display = "block", _e.style.top = `${Math.min(de.clientHeight + de.scrollTop - _e.clientHeight, ee.clientY + de.scrollTop - Re.y)}px`, _e.style.left = `${Math.min(de.clientWidth + de.scrollLeft - _e.clientWidth, ee.clientX + de.scrollLeft - Re.x)}px`, _e.setAttribute("drag-status", $e ? U ? "sub" : "normal" : "disabled"));
|
|
11959
11959
|
}, be = () => {
|
|
11960
11960
|
const { dragCol: ee } = P, De = I.value, { tooltipMethod: $e } = De;
|
|
11961
11961
|
let ce = "";
|
|
@@ -11967,15 +11967,15 @@ const LD = bl({
|
|
|
11967
11967
|
const ee = A.value, De = G.value;
|
|
11968
11968
|
ee && (ee.style.display = ""), De && (De.style.display = "");
|
|
11969
11969
|
}, Oe = (ee) => {
|
|
11970
|
-
const
|
|
11971
|
-
|
|
11970
|
+
const de = ee.currentTarget.parentElement.parentElement.parentElement, ge = de.getAttribute("colid"), U = p.getColumnById(ge);
|
|
11971
|
+
de.draggable = !0, P.dragCol = U, P.dragGroupField = null, P.dragAggFnCol = null, be(), cl(de, "active--drag-origin");
|
|
11972
11972
|
}, ye = (ee) => {
|
|
11973
|
-
const
|
|
11974
|
-
Se(),
|
|
11973
|
+
const de = ee.currentTarget.parentElement.parentElement.parentElement;
|
|
11974
|
+
Se(), de.draggable = !1, P.dragCol = null, P.dragGroupField = null, P.dragAggFnCol = null, Po(de, "active--drag-origin");
|
|
11975
11975
|
}, ae = (ee) => {
|
|
11976
11976
|
ee.dataTransfer && ee.dataTransfer.setDragImage(ad(), 0, 0), M.prevDragGroupField = null, M.prevDragAggFnColid = null;
|
|
11977
11977
|
}, Ve = (ee) => {
|
|
11978
|
-
const { mouseConfig: De } = y, { customColumnList: $e } = C, { collectColumn: ce } = E,
|
|
11978
|
+
const { mouseConfig: De } = y, { customColumnList: $e } = C, { collectColumn: ce } = E, de = k.value, { immediate: ge } = de, U = ee.currentTarget, Re = I.value, { isCrossDrag: Te, isSelfToChildDrag: he, isToChildDrag: _e, dragEndMethod: Fe } = Re, { dragCol: Ge } = P, { prevDragCol: mt, prevDragGroupField: rt, prevDragAggFnColid: xt, prevDragPos: tt, prevDragToChild: st } = M, at = tt === "bottom" ? 1 : 0;
|
|
11979
11979
|
if (rt || xt)
|
|
11980
11980
|
p.handlePivotTableAggregatePanelDragendEvent && p.handlePivotTableAggregatePanelDragendEvent(ee);
|
|
11981
11981
|
else if (mt && Ge && mt !== Ge) {
|
|
@@ -11996,7 +11996,7 @@ const LD = bl({
|
|
|
11996
11996
|
rn[Mt.id] = Mt;
|
|
11997
11997
|
});
|
|
11998
11998
|
let nn = !1;
|
|
11999
|
-
if (
|
|
11999
|
+
if (ge) {
|
|
12000
12000
|
if (Ot.parentId && nt.parentId) {
|
|
12001
12001
|
if (!Te)
|
|
12002
12002
|
return;
|
|
@@ -12058,21 +12058,21 @@ const LD = bl({
|
|
|
12058
12058
|
oldIndex: it
|
|
12059
12059
|
}
|
|
12060
12060
|
};
|
|
12061
|
-
p.dispatchEvent("custom-sort-change", Ct, ee), p.dispatchEvent("column-dragend", Ct, ee),
|
|
12061
|
+
p.dispatchEvent("custom-sort-change", Ct, ee), p.dispatchEvent("column-dragend", Ct, ee), ge && (C.customColumnList = ce.slice(0), p.handleColDragSwapColumn());
|
|
12062
12062
|
}).catch(() => {
|
|
12063
12063
|
});
|
|
12064
12064
|
}
|
|
12065
12065
|
Se(), P.dragCol = null, P.dragGroupField = null, P.dragAggFnCol = null, M.prevDragGroupField = null, M.prevDragAggFnColid = null, U.draggable = !1, U.removeAttribute("drag-pos"), Po(U, "active--drag-target"), Po(U, "active--drag-origin");
|
|
12066
12066
|
}, lt = (ee) => {
|
|
12067
|
-
const De = k.value, { immediate: $e } = De, ce = I.value, { isCrossDrag:
|
|
12068
|
-
if (M.prevDragGroupField = null, M.prevDragAggFnColid = null, he && (
|
|
12067
|
+
const De = k.value, { immediate: $e } = De, ce = I.value, { isCrossDrag: de, isToChildDrag: ge } = ce, U = ee.currentTarget, Re = oi(ee), Te = U.getAttribute("colid"), he = p.getColumnById(Te), { dragCol: _e } = P;
|
|
12068
|
+
if (M.prevDragGroupField = null, M.prevDragAggFnColid = null, he && (de || he.level === 1)) {
|
|
12069
12069
|
ee.preventDefault();
|
|
12070
12070
|
const Ge = ee.clientY - U.getBoundingClientRect().y < U.clientHeight / 2 ? "top" : "bottom";
|
|
12071
|
-
if (!_e || _e && _e.id === he.id || !
|
|
12071
|
+
if (!_e || _e && _e.id === he.id || !de && he.level > 1 || !$e && he.level > 1) {
|
|
12072
12072
|
ie(ee, U, !1, Ge);
|
|
12073
12073
|
return;
|
|
12074
12074
|
}
|
|
12075
|
-
M.prevDragToChild = !!(
|
|
12075
|
+
M.prevDragToChild = !!(de && ge && Re && $e), M.prevDragCol = he, M.prevDragPos = Ge, ie(ee, U, !0, Ge);
|
|
12076
12076
|
}
|
|
12077
12077
|
}, Ye = () => {
|
|
12078
12078
|
const { dragTipText: ee } = P, De = I.value;
|
|
@@ -12116,7 +12116,7 @@ const LD = bl({
|
|
|
12116
12116
|
])
|
|
12117
12117
|
]);
|
|
12118
12118
|
}, et = () => {
|
|
12119
|
-
const ee = p.xeGrid, De = p.xeGantt, $e = p.props, { customStore: ce } = e, { treeConfig:
|
|
12119
|
+
const ee = p.xeGrid, De = p.xeGantt, $e = p.props, { customStore: ce } = e, { treeConfig: de, rowGroupConfig: ge, aggregateConfig: U } = $e, { isCustomStatus: Re, customColumnList: Te } = C, he = k.value, { immediate: _e } = he, Fe = I.value, { maxHeight: Ge } = ce, { checkMethod: mt, visibleMethod: rt, allowVisible: xt, allowSort: tt, allowFixed: st, trigger: at, placement: Ot } = he, nt = m.value, { isCrossDrag: It } = Fe, it = he.slots || {}, zt = it.header, rn = it.top, nn = it.bottom, Ct = it.default, Mt = it.footer, on = [], Ht = {}, Wt = ce.isAll, tn = ce.isIndeterminate;
|
|
12120
12120
|
at === "hover" && (Ht.onMouseenter = W, Ht.onMouseleave = ne);
|
|
12121
12121
|
const vt = {
|
|
12122
12122
|
$table: p,
|
|
@@ -12222,7 +12222,7 @@ const LD = bl({
|
|
|
12222
12222
|
ref: x,
|
|
12223
12223
|
class: "vxe-table-custom-simple--body-wrapper"
|
|
12224
12224
|
}, [
|
|
12225
|
-
!
|
|
12225
|
+
!de && (U || ge) && p.getPivotTableAggregateSimplePanel ? O(p.getPivotTableAggregateSimplePanel(), {
|
|
12226
12226
|
customStore: ce
|
|
12227
12227
|
}) : hn(p),
|
|
12228
12228
|
O("div", {
|
|
@@ -12283,7 +12283,7 @@ const LD = bl({
|
|
|
12283
12283
|
mode: "text",
|
|
12284
12284
|
content: he.resetButtonText || En("vxe.table.customRestore"),
|
|
12285
12285
|
disabled: !Re,
|
|
12286
|
-
onClick:
|
|
12286
|
+
onClick: fe
|
|
12287
12287
|
}) : hn(p),
|
|
12288
12288
|
_e ? s ? O(s, {
|
|
12289
12289
|
mode: "text",
|
|
@@ -12307,7 +12307,7 @@ const LD = bl({
|
|
|
12307
12307
|
])
|
|
12308
12308
|
] : []);
|
|
12309
12309
|
}, qe = () => {
|
|
12310
|
-
const ee = p.xeGrid, De = p.xeGantt, { customStore: $e } = e, { treeConfig: ce, rowGroupConfig:
|
|
12310
|
+
const ee = p.xeGrid, De = p.xeGantt, { customStore: $e } = e, { treeConfig: ce, rowGroupConfig: de, aggregateConfig: ge, resizable: U } = y, { isCustomStatus: Re, customColumnList: Te } = C, he = k.value, { immediate: _e } = he, Fe = I.value, { mode: Ge, modalOptions: mt, drawerOptions: rt, allowVisible: xt, allowSort: tt, allowFixed: st, allowResizable: at, checkMethod: Ot, visibleMethod: nt } = he, It = _.value, { maxFixedSize: it } = It, zt = u.value, { minWidth: rn, maxWidth: nn } = zt, Ct = Object.assign({}, mt), Mt = Object.assign({}, rt), on = m.value, { isCrossDrag: Ht } = Fe, Wt = he.slots || {}, tn = Wt.header, vt = Wt.top, Q = Wt.bottom, xe = Wt.default, ze = Wt.footer, je = [], Ze = $e.isAll, wt = $e.isIndeterminate, Ft = {
|
|
12311
12311
|
$table: p,
|
|
12312
12312
|
$grid: ee,
|
|
12313
12313
|
$gantt: De,
|
|
@@ -12496,7 +12496,7 @@ const LD = bl({
|
|
|
12496
12496
|
}, p.callSlot(Q, Ft)) : hn(p),
|
|
12497
12497
|
Ye()
|
|
12498
12498
|
]),
|
|
12499
|
-
!ce && (
|
|
12499
|
+
!ce && (ge || de) && p.getPivotTableAggregatePopupPanel ? O(p.getPivotTableAggregatePopupPanel(), {
|
|
12500
12500
|
customStore: $e
|
|
12501
12501
|
}) : hn(p)
|
|
12502
12502
|
]),
|
|
@@ -12506,7 +12506,7 @@ const LD = bl({
|
|
|
12506
12506
|
s ? O(s, {
|
|
12507
12507
|
content: he.resetButtonText || En("vxe.custom.cstmRestore"),
|
|
12508
12508
|
disabled: !Re,
|
|
12509
|
-
onClick:
|
|
12509
|
+
onClick: fe
|
|
12510
12510
|
}) : hn(p),
|
|
12511
12511
|
_e ? s ? O(s, {
|
|
12512
12512
|
content: he.closeButtonText || En("vxe.table.customClose"),
|
|
@@ -12638,15 +12638,15 @@ const LD = bl({
|
|
|
12638
12638
|
const { filterStore: B } = e, { column: W, maxHeight: ne } = B;
|
|
12639
12639
|
if (!W)
|
|
12640
12640
|
return [];
|
|
12641
|
-
const { filterMultiple: V, filters: Y, slots: q } = W, se = Y || [],
|
|
12642
|
-
if (
|
|
12641
|
+
const { filterMultiple: V, filters: Y, slots: q } = W, se = Y || [], fe = q ? q.filter : null, ue = Object.assign({}, s._currFilterParams, { option: se[0], $panel: C, $table: o }), me = F ? F.renderTableFilter || F.renderFilter : null;
|
|
12642
|
+
if (fe)
|
|
12643
12643
|
return [
|
|
12644
12644
|
O("div", {
|
|
12645
12645
|
class: "vxe-table--filter-template",
|
|
12646
12646
|
style: ne ? {
|
|
12647
12647
|
maxHeight: Kr(ne)
|
|
12648
12648
|
} : {}
|
|
12649
|
-
}, o.callSlot(
|
|
12649
|
+
}, o.callSlot(fe, ue))
|
|
12650
12650
|
];
|
|
12651
12651
|
if (M && me)
|
|
12652
12652
|
return [
|
|
@@ -12655,7 +12655,7 @@ const LD = bl({
|
|
|
12655
12655
|
style: ne ? {
|
|
12656
12656
|
maxHeight: Kr(ne)
|
|
12657
12657
|
} : {}
|
|
12658
|
-
}, Hn(me(M,
|
|
12658
|
+
}, Hn(me(M, ue)))
|
|
12659
12659
|
];
|
|
12660
12660
|
const He = V ? B.isAllSelected : !se.some((Z) => Z._checked), J = V && B.isIndeterminate;
|
|
12661
12661
|
return [
|
|
@@ -12711,17 +12711,17 @@ const LD = bl({
|
|
|
12711
12711
|
const { filterStore: M } = e, { column: F } = M;
|
|
12712
12712
|
if (!F)
|
|
12713
12713
|
return [];
|
|
12714
|
-
const B = d.value, W = E.value, { filterRender: ne, filterMultiple: V } = F, { confirmButtonText: Y, resetButtonText: q, showFooter: se } = B,
|
|
12714
|
+
const B = d.value, W = E.value, { filterRender: ne, filterMultiple: V } = F, { confirmButtonText: Y, resetButtonText: q, showFooter: se } = B, fe = pt(ne) ? kg.get(ne.name) : null, ue = !W && !M.isAllSelected && !M.isIndeterminate;
|
|
12715
12715
|
let me = !!V;
|
|
12716
|
-
return f.isBoolean(se) ? me = se :
|
|
12716
|
+
return f.isBoolean(se) ? me = se : fe && (me = !(fe.showTableFilterFooter === !1 || fe.showFilterFooter === !1 || fe.isFooter === !1)), me ? [
|
|
12717
12717
|
O("div", {
|
|
12718
12718
|
class: "vxe-table--filter-footer"
|
|
12719
12719
|
}, [
|
|
12720
12720
|
O("button", {
|
|
12721
12721
|
class: {
|
|
12722
|
-
"is--disabled":
|
|
12722
|
+
"is--disabled": ue
|
|
12723
12723
|
},
|
|
12724
|
-
disabled:
|
|
12724
|
+
disabled: ue,
|
|
12725
12725
|
onClick: I
|
|
12726
12726
|
}, Y || Wi("vxe.table.confirmFilter")),
|
|
12727
12727
|
O("button", {
|
|
@@ -12733,7 +12733,7 @@ const LD = bl({
|
|
|
12733
12733
|
const { filterStore: M } = e, { initStore: F } = r, { visible: B, column: W } = M;
|
|
12734
12734
|
if (!W)
|
|
12735
12735
|
return _D(C);
|
|
12736
|
-
const ne = W ? W.filterRender : null, V = ne && pt(ne) ? kg.get(ne.name) : null, Y = V ? V.tableFilterClassName || V.filterClassName : "", q = Object.assign({}, s._currFilterParams, { $panel: C, $table: o }), se = o.props, { computeSize:
|
|
12736
|
+
const ne = W ? W.filterRender : null, V = ne && pt(ne) ? kg.get(ne.name) : null, Y = V ? V.tableFilterClassName || V.filterClassName : "", q = Object.assign({}, s._currFilterParams, { $panel: C, $table: o }), se = o.props, { computeSize: fe } = o.getComputeMaps(), ue = fe.value, me = d.value, { transfer: He, destroyOnClose: J, className: Z } = me;
|
|
12737
12737
|
return O(pl, {
|
|
12738
12738
|
to: "body",
|
|
12739
12739
|
disabled: !He
|
|
@@ -12746,7 +12746,7 @@ const LD = bl({
|
|
|
12746
12746
|
Z,
|
|
12747
12747
|
jr(Y, q),
|
|
12748
12748
|
{
|
|
12749
|
-
[`size--${
|
|
12749
|
+
[`size--${ue}`]: ue,
|
|
12750
12750
|
"is--animat": se.animat,
|
|
12751
12751
|
"is--multiple": W.filterMultiple,
|
|
12752
12752
|
"is--active": B
|
|
@@ -12961,7 +12961,7 @@ const LD = bl({
|
|
|
12961
12961
|
const { storeData: Y } = e, q = f.findTree(Y.columns, (se) => se === V);
|
|
12962
12962
|
if (q && q.parent) {
|
|
12963
12963
|
const { parent: se } = q;
|
|
12964
|
-
se.children && se.children.length && (se.checked = se.children.every((
|
|
12964
|
+
se.children && se.children.length && (se.checked = se.children.every((fe) => fe.checked), se.halfChecked = !se.checked && se.children.some((fe) => fe.checked || fe.halfChecked), R(se));
|
|
12965
12965
|
}
|
|
12966
12966
|
}, x = () => {
|
|
12967
12967
|
const { storeData: V } = e, Y = V.columns;
|
|
@@ -12982,10 +12982,10 @@ const LD = bl({
|
|
|
12982
12982
|
se && se.focus();
|
|
12983
12983
|
}), x();
|
|
12984
12984
|
}, P = () => {
|
|
12985
|
-
const { storeData: V, defaultOptions: Y } = e, { hasMerge: q, columns: se } = V,
|
|
12985
|
+
const { storeData: V, defaultOptions: Y } = e, { hasMerge: q, columns: se } = V, fe = I.value, ue = m.value, me = f.searchTree(se, (He) => He.checked, { children: "children", mapChildren: "childNodes", original: !0 });
|
|
12986
12986
|
return Object.assign({}, Y, {
|
|
12987
12987
|
columns: me,
|
|
12988
|
-
isMerge: q &&
|
|
12988
|
+
isMerge: q && ue && fe ? Y.isMerge : !1
|
|
12989
12989
|
});
|
|
12990
12990
|
}, M = () => {
|
|
12991
12991
|
const { storeData: V } = e, Y = p.value;
|
|
@@ -13004,26 +13004,26 @@ const LD = bl({
|
|
|
13004
13004
|
const { storeData: V } = e;
|
|
13005
13005
|
V.isPrint ? M() : F();
|
|
13006
13006
|
}, ne = () => {
|
|
13007
|
-
const V = i.xeGrid, Y = i.xeGantt, { defaultOptions: q, storeData: se } = e, { isAll:
|
|
13007
|
+
const V = i.xeGrid, Y = i.xeGantt, { defaultOptions: q, storeData: se } = e, { isAll: fe, isIndeterminate: ue } = y, { hasTree: me, hasMerge: He, isPrint: J, hasColgroup: Z, columns: ie } = se, { isHeader: be } = q, Se = [], Oe = I.value, ye = _.value, ae = m.value, Ve = u.value, lt = q.slots || {}, Ye = lt.top, et = lt.bottom, qe = lt.default, Xe = lt.footer, Be = lt.parameter;
|
|
13008
13008
|
return f.eachTree(ie, (ee) => {
|
|
13009
|
-
const De = go(ee.getTitle(), 1), $e = ee.children && ee.children.length, ce = ee.checked,
|
|
13009
|
+
const De = go(ee.getTitle(), 1), $e = ee.children && ee.children.length, ce = ee.checked, de = ee.halfChecked, ge = ee.type === "html";
|
|
13010
13010
|
Se.push(O("li", {
|
|
13011
13011
|
key: ee.id,
|
|
13012
13012
|
class: ["vxe-table-export--panel-column-option", `level--${ee.level}`, {
|
|
13013
13013
|
"is--group": $e,
|
|
13014
13014
|
"is--checked": ce,
|
|
13015
|
-
"is--indeterminate":
|
|
13015
|
+
"is--indeterminate": de,
|
|
13016
13016
|
"is--disabled": ee.disabled
|
|
13017
13017
|
}],
|
|
13018
|
-
title:
|
|
13018
|
+
title: ge ? "" : De,
|
|
13019
13019
|
onClick: () => {
|
|
13020
13020
|
ee.disabled || T(ee);
|
|
13021
13021
|
}
|
|
13022
13022
|
}, [
|
|
13023
13023
|
O("span", {
|
|
13024
|
-
class: ["vxe-checkbox--icon",
|
|
13024
|
+
class: ["vxe-checkbox--icon", de ? Ks().TABLE_CHECKBOX_INDETERMINATE : ce ? Ks().TABLE_CHECKBOX_CHECKED : Ks().TABLE_CHECKBOX_UNCHECKED]
|
|
13025
13025
|
}),
|
|
13026
|
-
|
|
13026
|
+
ge ? O("span", {
|
|
13027
13027
|
key: "1",
|
|
13028
13028
|
class: "vxe-checkbox--label",
|
|
13029
13029
|
innerHTML: De
|
|
@@ -13147,14 +13147,14 @@ const LD = bl({
|
|
|
13147
13147
|
}, [
|
|
13148
13148
|
O("li", {
|
|
13149
13149
|
class: ["vxe-table-export--panel-column-option", {
|
|
13150
|
-
"is--checked":
|
|
13151
|
-
"is--indeterminate":
|
|
13150
|
+
"is--checked": fe,
|
|
13151
|
+
"is--indeterminate": ue
|
|
13152
13152
|
}],
|
|
13153
13153
|
title: Dn("vxe.table.allTitle"),
|
|
13154
13154
|
onClick: G
|
|
13155
13155
|
}, [
|
|
13156
13156
|
O("span", {
|
|
13157
|
-
class: ["vxe-checkbox--icon",
|
|
13157
|
+
class: ["vxe-checkbox--icon", ue ? Ks().TABLE_CHECKBOX_INDETERMINATE : fe ? Ks().TABLE_CHECKBOX_CHECKED : Ks().TABLE_CHECKBOX_UNCHECKED]
|
|
13158
13158
|
}),
|
|
13159
13159
|
O("span", {
|
|
13160
13160
|
class: "vxe-checkbox--label"
|
|
@@ -13380,7 +13380,7 @@ const LD = bl({
|
|
|
13380
13380
|
"is--show": T === y.selected && y.showChild
|
|
13381
13381
|
}]
|
|
13382
13382
|
}, T.children.map((Y, q) => {
|
|
13383
|
-
const { loading: se } = Y,
|
|
13383
|
+
const { loading: se } = Y, fe = Object.assign({}, Y.prefixConfig), ue = fe.icon || Y.prefixIcon, me = Object.assign({}, Y.suffixConfig), He = me.icon || Y.suffixIcon, J = hr(Y.name);
|
|
13384
13384
|
return Y.visible === !1 ? null : O("li", {
|
|
13385
13385
|
class: [Y.className, {
|
|
13386
13386
|
"link--loading": se,
|
|
@@ -13402,16 +13402,16 @@ const LD = bl({
|
|
|
13402
13402
|
}
|
|
13403
13403
|
}, [
|
|
13404
13404
|
O("div", {
|
|
13405
|
-
class: ["vxe-context-menu--link-prefix",
|
|
13405
|
+
class: ["vxe-context-menu--link-prefix", fe.className || ""]
|
|
13406
13406
|
}, [
|
|
13407
13407
|
Y.loading ? O("span", {
|
|
13408
13408
|
class: Fu("TABLE_MENU_OPTION_LOADING")
|
|
13409
|
-
}) :
|
|
13409
|
+
}) : ue && f.isFunction(ue) ? O("span", {}, Hn(ue({}))) : O("span", {}, [
|
|
13410
13410
|
O("i", {
|
|
13411
|
-
class:
|
|
13411
|
+
class: ue
|
|
13412
13412
|
})
|
|
13413
13413
|
]),
|
|
13414
|
-
|
|
13414
|
+
fe.content ? O("span", `${fe.content}`) : Zs(o)
|
|
13415
13415
|
]),
|
|
13416
13416
|
O("div", {
|
|
13417
13417
|
class: "vxe-context-menu--link-content",
|
|
@@ -13466,14 +13466,14 @@ VD.add("tableFilterModule", {
|
|
|
13466
13466
|
e.handleFilterOptions(_), i._currFilterParams = m, R.style = null, R.visible = !0, u.filter = !0, pe(() => {
|
|
13467
13467
|
if (!bt(x["main-header-scroll"]))
|
|
13468
13468
|
return;
|
|
13469
|
-
const se = p.value,
|
|
13470
|
-
if (!
|
|
13469
|
+
const se = p.value, fe = se ? se.getRefMaps().refElem.value : null;
|
|
13470
|
+
if (!fe)
|
|
13471
13471
|
return;
|
|
13472
|
-
const
|
|
13472
|
+
const ue = ne.getBoundingClientRect(), me = fe.querySelector(".vxe-table--filter-header"), He = fe.querySelector(".vxe-table--filter-footer"), J = fe.offsetWidth, Z = J / 2;
|
|
13473
13473
|
let ie = 0, be = 0, Se = 0;
|
|
13474
13474
|
if (B)
|
|
13475
|
-
ie =
|
|
13476
|
-
else if (ie =
|
|
13475
|
+
ie = ue.left - Z + A, be = ue.top + ne.clientHeight + G, Se = Math.min(Math.max(W.height, Math.floor(P / 2)), Math.max(80, P - be - (me ? me.clientHeight : 0) - (He ? He.clientHeight : 0) - 28)), ie < 16 ? ie = 16 : ie > M - J - 16 && (ie = M - J - 16);
|
|
13476
|
+
else if (ie = ue.left - W.left - Z, be = ue.top - W.top + ne.clientHeight, Se = Math.max(40, T.clientHeight - be - (me ? me.clientHeight : 0) - (He ? He.clientHeight : 0) - 14), ie < 1 ? ie = 1 : ie > T.clientWidth - J - 1 && (ie = T.clientWidth - J - 1), o) {
|
|
13477
13477
|
const Oe = o.getRefMaps().refElem.value;
|
|
13478
13478
|
if (Oe) {
|
|
13479
13479
|
const ye = Oe.getBoundingClientRect();
|
|
@@ -13686,7 +13686,7 @@ GD.add("tableMenuModule", {
|
|
|
13686
13686
|
const V = I ? I.getRefMaps().refElem.value : s.value;
|
|
13687
13687
|
if (!V)
|
|
13688
13688
|
return;
|
|
13689
|
-
const Y = V.getBoundingClientRect(), { scrollTop: q, scrollLeft: se, visibleHeight:
|
|
13689
|
+
const Y = V.getBoundingClientRect(), { scrollTop: q, scrollLeft: se, visibleHeight: fe, visibleWidth: ue } = Bc();
|
|
13690
13690
|
let me = R.clientY - Y.y, He = R.clientX - Y.x;
|
|
13691
13691
|
F && (me = R.clientY + q, He = R.clientX + se);
|
|
13692
13692
|
const J = () => {
|
|
@@ -13702,7 +13702,7 @@ GD.add("tableMenuModule", {
|
|
|
13702
13702
|
left: `${He}px`
|
|
13703
13703
|
}
|
|
13704
13704
|
}), pe(() => {
|
|
13705
|
-
const Oe = d.value.getRefMaps().refElem.value, ye = Oe.clientHeight, ae = Oe.clientWidth, { boundingTop: Ve, boundingLeft: lt } = sc(Oe), Ye = Ve + ye -
|
|
13705
|
+
const Oe = d.value.getRefMaps().refElem.value, ye = Oe.clientHeight, ae = Oe.clientWidth, { boundingTop: Ve, boundingLeft: lt } = sc(Oe), Ye = Ve + ye - fe, et = lt + ae - ue;
|
|
13706
13706
|
Ye > -10 && (G.style.top = `${Math.max(q + 2, me - ye - 2)}px`), et > -10 && (G.style.left = `${Math.max(se + 2, He - ae - 2)}px`);
|
|
13707
13707
|
});
|
|
13708
13708
|
}, { keyboard: Z, row: ie, column: be } = T;
|
|
@@ -13769,32 +13769,32 @@ GD.add("tableMenuModule", {
|
|
|
13769
13769
|
return;
|
|
13770
13770
|
}
|
|
13771
13771
|
if (r._keyCtx) {
|
|
13772
|
-
const
|
|
13772
|
+
const fe = "body", ue = { source: "table", type: fe, $table: e, $grid: x, $gantt: T, keyboard: !0, columns: F.slice(0), $event: R };
|
|
13773
13773
|
if (G && ne.area) {
|
|
13774
13774
|
const me = e.getActiveCellArea();
|
|
13775
13775
|
if (me && me.row && me.column) {
|
|
13776
|
-
|
|
13776
|
+
ue.row = me.row, ue.column = me.column, u(R, fe, ue);
|
|
13777
13777
|
return;
|
|
13778
13778
|
}
|
|
13779
13779
|
} else if (G && ne.selected && q.row && q.column) {
|
|
13780
|
-
|
|
13780
|
+
ue.row = q.row, ue.column = q.column, u(R, fe, ue);
|
|
13781
13781
|
return;
|
|
13782
13782
|
}
|
|
13783
13783
|
}
|
|
13784
|
-
for (let
|
|
13785
|
-
const
|
|
13784
|
+
for (let fe = 0; fe < se.length; fe++) {
|
|
13785
|
+
const ue = se[fe], me = sn(R, Y, `vxe-${ue}--column`, (J) => J.parentNode.parentNode.parentNode.getAttribute("xid") === t), He = { source: "table", type: ue, $table: e, $grid: x, $gantt: T, columns: F.slice(0), $event: R };
|
|
13786
13786
|
if (me.flag) {
|
|
13787
13787
|
const J = me.targetElem, Z = e.getColumnNode(J), ie = Z ? Z.item : null;
|
|
13788
|
-
let be = `${
|
|
13789
|
-
if (ie && Object.assign(He, { column: ie, columnIndex: e.getColumnIndex(ie), cell: J }),
|
|
13788
|
+
let be = `${ue}-`;
|
|
13789
|
+
if (ie && Object.assign(He, { column: ie, columnIndex: e.getColumnIndex(ie), cell: J }), ue === "body") {
|
|
13790
13790
|
const Oe = e.getRowNode(J.parentNode), ye = Oe ? Oe.item : null;
|
|
13791
13791
|
be = "", ye && (He.row = ye, He.rowIndex = e.getRowIndex(ye));
|
|
13792
13792
|
}
|
|
13793
13793
|
const Se = `${be}cell-menu`;
|
|
13794
|
-
u(R,
|
|
13794
|
+
u(R, ue, He), e.dispatchEvent(Se, He, R);
|
|
13795
13795
|
return;
|
|
13796
|
-
} else if (sn(R, Y, `vxe-table--${
|
|
13797
|
-
V.trigger === "cell" ? R.preventDefault() : u(R,
|
|
13796
|
+
} else if (sn(R, Y, `vxe-table--${ue}-wrapper`, (J) => J.getAttribute("xid") === t).flag || ue === "body" && sn(R, Y, "vxe-table--empty-place-wrapper", (J) => J.getAttribute("xid") === t).flag) {
|
|
13797
|
+
V.trigger === "cell" ? R.preventDefault() : u(R, ue, He);
|
|
13798
13798
|
return;
|
|
13799
13799
|
}
|
|
13800
13800
|
}
|
|
@@ -13809,8 +13809,8 @@ GD.add("tableMenuModule", {
|
|
|
13809
13809
|
const { boundingTop: M, boundingLeft: F, visibleHeight: B, visibleWidth: W } = sc(G), ne = M + G.offsetHeight, V = F + G.offsetWidth;
|
|
13810
13810
|
let Y = "", q = "";
|
|
13811
13811
|
V + P.offsetWidth > W - 10 && (Y = "auto", q = `${G.offsetWidth}px`);
|
|
13812
|
-
let se = "",
|
|
13813
|
-
ne + P.offsetHeight > B - 10 && (se = "auto",
|
|
13812
|
+
let se = "", fe = "";
|
|
13813
|
+
ne + P.offsetHeight > B - 10 && (se = "auto", fe = "0"), P.style.left = Y, P.style.right = q, P.style.top = se, P.style.bottom = fe;
|
|
13814
13814
|
}
|
|
13815
13815
|
}));
|
|
13816
13816
|
},
|
|
@@ -13858,13 +13858,13 @@ qD.add("tableEditModule", {
|
|
|
13858
13858
|
const { editStore: M, tableColumn: F } = n, B = i.value, { actived: W } = M, { row: ne, column: V } = W;
|
|
13859
13859
|
(ne || V) && (B.mode === "row" ? F.forEach((Y) => _(ne, Y)) : _(ne, V));
|
|
13860
13860
|
}, R = (M, F) => {
|
|
13861
|
-
const { tableFullTreeData: B, afterFullData: W, fullDataRowIdData: ne, fullAllDataRowIdData: V } = o, Y = p.value, { rowField: q, parentField: se, mapChildrenField:
|
|
13861
|
+
const { tableFullTreeData: B, afterFullData: W, fullDataRowIdData: ne, fullAllDataRowIdData: V } = o, Y = p.value, { rowField: q, parentField: se, mapChildrenField: fe } = Y, ue = Y.children || Y.childrenField, me = F ? "push" : "unshift";
|
|
13862
13862
|
M.forEach((He) => {
|
|
13863
|
-
const J = He[se], Z = Je(e, He), ie = J ? f.findTree(B, (be) => J === be[q], { children:
|
|
13863
|
+
const J = He[se], Z = Je(e, He), ie = J ? f.findTree(B, (be) => J === be[q], { children: fe }) : null;
|
|
13864
13864
|
if (ie) {
|
|
13865
13865
|
const { item: be } = ie, Se = V[Je(e, be)], Oe = Se ? Se.level : 0;
|
|
13866
|
-
let ye = be[
|
|
13867
|
-
f.isArray(ye) || (ye = be[
|
|
13866
|
+
let ye = be[ue], ae = be[fe];
|
|
13867
|
+
f.isArray(ye) || (ye = be[ue] = []), f.isArray(ae) || (ae = be[fe] = []), ye[me](He), ae[me](He);
|
|
13868
13868
|
const Ve = { row: He, rowid: Z, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: ye, parent: be, level: Oe + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
13869
13869
|
ne[Z] = Ve, V[Z] = Ve;
|
|
13870
13870
|
} else {
|
|
@@ -13874,11 +13874,11 @@ qD.add("tableEditModule", {
|
|
|
13874
13874
|
}
|
|
13875
13875
|
});
|
|
13876
13876
|
}, x = (M, F, B) => {
|
|
13877
|
-
const { treeConfig: W } = t, { isRowGroupStatus: ne } = n, { tableFullTreeData: V, afterFullData: Y, mergeBodyList: q, tableFullData: se, fullDataRowIdData:
|
|
13877
|
+
const { treeConfig: W } = t, { isRowGroupStatus: ne } = n, { tableFullTreeData: V, afterFullData: Y, mergeBodyList: q, tableFullData: se, fullDataRowIdData: fe, fullAllDataRowIdData: ue, insertRowMaps: me, removeRowMaps: He } = o, J = p.value, { transform: Z, parentField: ie, rowField: be, mapChildrenField: Se } = J, Oe = J.children || J.childrenField;
|
|
13878
13878
|
f.isArray(M) || (M = [M]);
|
|
13879
13879
|
let ye = F;
|
|
13880
13880
|
if (f.isString(F) || f.isNumber(F)) {
|
|
13881
|
-
const Ye =
|
|
13881
|
+
const Ye = ue[F];
|
|
13882
13882
|
Ye && (ye = Ye.row);
|
|
13883
13883
|
}
|
|
13884
13884
|
const ae = jo(e.defineField(M.map((Ye) => Object.assign(W && Z ? { [Se]: [], [Oe]: [] } : {}, Ye))));
|
|
@@ -13893,7 +13893,7 @@ qD.add("tableEditModule", {
|
|
|
13893
13893
|
} else
|
|
13894
13894
|
ae.forEach((Ye) => {
|
|
13895
13895
|
const et = Je(e, Ye), qe = { row: Ye, rowid: et, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: Y, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
13896
|
-
|
|
13896
|
+
fe[et] = qe, ue[et] = qe, Y.unshift(Ye), se.unshift(Ye);
|
|
13897
13897
|
}), q.forEach((Ye) => {
|
|
13898
13898
|
const { row: et } = Ye;
|
|
13899
13899
|
et >= 0 && (Ye.row = et + ae.length);
|
|
@@ -13908,19 +13908,19 @@ qD.add("tableEditModule", {
|
|
|
13908
13908
|
} else
|
|
13909
13909
|
ae.forEach((Ye) => {
|
|
13910
13910
|
const et = Je(e, Ye), qe = { row: Ye, rowid: et, seq: -1, index: -1, _index: -1, treeIndex: -1, _tIndex: -1, $index: -1, items: Y, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
13911
|
-
|
|
13911
|
+
fe[et] = qe, ue[et] = qe, Y.push(Ye), se.push(Ye);
|
|
13912
13912
|
});
|
|
13913
13913
|
else if (W && Z) {
|
|
13914
13914
|
const Ye = f.findTree(V, (et) => ye[be] === et[be], { children: Se });
|
|
13915
13915
|
if (Ye) {
|
|
13916
|
-
const { parent: et } = Ye, qe = et ? et[Se] : V, Xe =
|
|
13916
|
+
const { parent: et } = Ye, qe = et ? et[Se] : V, Xe = ue[Je(e, et)], Be = Xe ? Xe.level : 0;
|
|
13917
13917
|
if (Ve.forEach((ee, De) => {
|
|
13918
13918
|
et ? ee[ie] !== et[be] && (Ke("vxe.error.errProp", [`${ie}=${ee[ie]}`, `${ie}=${et[be]}`]), ee[ie] = et[be]) : ee[ie] !== null && (f.eqNull(ee[ie]) || Ke("vxe.error.errProp", [`${ie}=${ee[ie]}`, "null"]), ee[ie] = null);
|
|
13919
13919
|
let $e = Ye.index + De;
|
|
13920
13920
|
B && ($e = $e + 1), qe.splice($e, 0, ee);
|
|
13921
13921
|
}), f.eachTree(Ve, (ee) => {
|
|
13922
13922
|
const De = Je(e, ee), $e = { row: ee, rowid: De, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: qe, parent: et, level: Be + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
13923
|
-
ee[Oe] && (ee[Se] = ee[Oe]),
|
|
13923
|
+
ee[Oe] && (ee[Se] = ee[Oe]), fe[De] = $e, ue[De] = $e;
|
|
13924
13924
|
}, { children: Oe }), et) {
|
|
13925
13925
|
const ee = f.findTree(V, (De) => ye[be] === De[be], { children: Oe });
|
|
13926
13926
|
if (ee) {
|
|
@@ -13957,15 +13957,15 @@ qD.add("tableEditModule", {
|
|
|
13957
13957
|
rows: ae
|
|
13958
13958
|
}));
|
|
13959
13959
|
}, T = (M, F, B, W) => {
|
|
13960
|
-
const { treeConfig: ne } = t, { fullAllDataRowIdData: V } = o, Y = p.value, { transform: q, rowField: se, parentField:
|
|
13960
|
+
const { treeConfig: ne } = t, { fullAllDataRowIdData: V } = o, Y = p.value, { transform: q, rowField: se, parentField: fe } = Y;
|
|
13961
13961
|
if (ne && q) {
|
|
13962
13962
|
f.isArray(M) || (M = [M]);
|
|
13963
|
-
let
|
|
13963
|
+
let ue = F;
|
|
13964
13964
|
if (f.isString(F) || f.isNumber(F)) {
|
|
13965
13965
|
const me = V[F];
|
|
13966
|
-
me && (
|
|
13966
|
+
me && (ue = me.row);
|
|
13967
13967
|
}
|
|
13968
|
-
return x(M.map((me) => Object.assign({}, me, { [
|
|
13968
|
+
return x(M.map((me) => Object.assign({}, me, { [fe]: ue[se] })), B, W);
|
|
13969
13969
|
} else
|
|
13970
13970
|
Ke("vxe.error.errProp", ["tree-config.transform=false", "tree-config.transform=true"]);
|
|
13971
13971
|
return Promise.resolve({ row: null, rows: [] });
|
|
@@ -13985,13 +13985,13 @@ qD.add("tableEditModule", {
|
|
|
13985
13985
|
}
|
|
13986
13986
|
return ne.row = null, ne.column = null, q.autoClear && (q.msgMode !== "full" || jD().cellVaildMode === "obsolete") && e.clearValidate ? e.clearValidate() : pe().then(() => e.updateCellAreas());
|
|
13987
13987
|
}, A = (M, F, B, W) => {
|
|
13988
|
-
const ne = e.xeGrid, V = e.xeGantt, { editConfig: Y, mouseConfig: q } = t, { editStore: se, tableColumn:
|
|
13988
|
+
const ne = e.xeGrid, V = e.xeGantt, { editConfig: Y, mouseConfig: q } = t, { editStore: se, tableColumn: fe } = n, ue = i.value, { mode: me } = ue, { actived: He, focused: J } = se, { row: Z, column: ie } = M, { editRender: be } = ie, Se = M.cell || e.getCellElement(Z, ie), Oe = ue.beforeEditMethod || ue.activeMethod;
|
|
13989
13989
|
if (M.cell = Se, Se && pt(Y) && pt(be) && !e.isPendingByRow(Z) && !e.isAggregateRecord(Z)) {
|
|
13990
13990
|
if (He.row !== Z || me === "cell" && He.column !== ie) {
|
|
13991
13991
|
let ye = "edit-disabled";
|
|
13992
13992
|
if (!Oe || Oe(Object.assign(Object.assign({}, M), { $table: e, $grid: ne, $gantt: V }))) {
|
|
13993
|
-
q && (e.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(), He.column && G(F), ye = "edit-activated", ie.renderHeight = Se.offsetHeight, He.args = M, He.row = Z, He.column = ie, me === "row" ?
|
|
13994
|
-
const ae =
|
|
13993
|
+
q && (e.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea())), e.closeTooltip(), He.column && G(F), ye = "edit-activated", ie.renderHeight = Se.offsetHeight, He.args = M, He.row = Z, He.column = ie, me === "row" ? fe.forEach((Ve) => I(Z, Ve)) : I(Z, ie);
|
|
13994
|
+
const ae = ue.afterEditMethod;
|
|
13995
13995
|
pe(() => {
|
|
13996
13996
|
B && e.handleFocus(M, F), ae && ae(Object.assign(Object.assign({}, M), { $table: e, $grid: ne, $gantt: V }));
|
|
13997
13997
|
});
|
|
@@ -14075,7 +14075,7 @@ qD.add("tableEditModule", {
|
|
|
14075
14075
|
* 如果为空则删除所有
|
|
14076
14076
|
*/
|
|
14077
14077
|
remove(M) {
|
|
14078
|
-
const { treeConfig: F } = t, { editStore: B, isRowGroupStatus: W } = n, { tableFullTreeData: ne, selectCheckboxMaps: V, afterFullData: Y, mergeBodyList: q, tableFullData: se, pendingRowMaps:
|
|
14078
|
+
const { treeConfig: F } = t, { editStore: B, isRowGroupStatus: W } = n, { tableFullTreeData: ne, selectCheckboxMaps: V, afterFullData: Y, mergeBodyList: q, tableFullData: se, pendingRowMaps: fe, insertRowMaps: ue, removeRowMaps: me } = o, He = d.value, J = p.value, { transform: Z, mapChildrenField: ie } = J, be = J.children || J.childrenField, { actived: Se } = B, { checkField: Oe } = He;
|
|
14079
14079
|
let ye = [];
|
|
14080
14080
|
return M ? f.isArray(M) || (M = [M]) : M = se, M.forEach((ae) => {
|
|
14081
14081
|
if (!e.isInsertByRow(ae)) {
|
|
@@ -14108,7 +14108,7 @@ qD.add("tableEditModule", {
|
|
|
14108
14108
|
}), Y.splice(lt, 1));
|
|
14109
14109
|
}), Se.row && e.findRowIndexOf(M, Se.row) > -1 && E.clearEdit(), M.forEach((ae) => {
|
|
14110
14110
|
const Ve = Je(e, ae);
|
|
14111
|
-
|
|
14111
|
+
ue[Ve] && delete ue[Ve], fe[Ve] && delete fe[Ve];
|
|
14112
14112
|
}), n.removeRowFlag++, n.insertRowFlag++, n.pendingRowFlag++, e.cacheRowMap(!1), e.handleTableData(F && Z), e.updateFooter(), e.handleUpdateBodyMerge(), F && Z || e.updateAfterDataIndex(), e.checkSelectionStatus(), n.scrollYLoad && e.updateScrollYSpace(), pe().then(() => (e.updateCellAreas(), e.recalculate(!0))).then(() => ({ row: ye.length ? ye[ye.length - 1] : null, rows: ye }));
|
|
14113
14113
|
},
|
|
14114
14114
|
/**
|
|
@@ -14292,13 +14292,13 @@ qD.add("tableEditModule", {
|
|
|
14292
14292
|
const { row: F, column: B, cell: W } = M, { editRender: ne } = B, V = i.value;
|
|
14293
14293
|
if (pt(ne)) {
|
|
14294
14294
|
const Y = YD.get(ne.name);
|
|
14295
|
-
let q = ne.autofocus || ne.autoFocus, se = ne.autoSelect || ne.autoselect,
|
|
14296
|
-
if (V.autoFocus && (!q && Y && (q = Y.tableAutoFocus || Y.tableAutofocus || Y.autofocus), !se && Y && (se = Y.tableAutoSelect || Y.autoselect), f.isFunction(q) ?
|
|
14295
|
+
let q = ne.autofocus || ne.autoFocus, se = ne.autoSelect || ne.autoselect, fe;
|
|
14296
|
+
if (V.autoFocus && (!q && Y && (q = Y.tableAutoFocus || Y.tableAutofocus || Y.autofocus), !se && Y && (se = Y.tableAutoSelect || Y.autoselect), f.isFunction(q) ? fe = q(M) : q && (q === !0 ? fe = W.querySelector("input,textarea") : fe = W.querySelector(q), fe && fe.focus())), fe) {
|
|
14297
14297
|
if (se)
|
|
14298
|
-
|
|
14298
|
+
fe.select();
|
|
14299
14299
|
else if (C.msie) {
|
|
14300
|
-
const
|
|
14301
|
-
|
|
14300
|
+
const ue = fe.createTextRange();
|
|
14301
|
+
ue.collapse(!1), ue.select();
|
|
14302
14302
|
}
|
|
14303
14303
|
} else
|
|
14304
14304
|
V.autoPos && (B.fixed || e.scrollToRow(F, B));
|
|
@@ -14308,8 +14308,8 @@ qD.add("tableEditModule", {
|
|
|
14308
14308
|
* 处理选中源
|
|
14309
14309
|
*/
|
|
14310
14310
|
handleSelected(M, F) {
|
|
14311
|
-
const { mouseConfig: B } = t, { editStore: W } = n, ne = s.value, V = i.value, { actived: Y, selected: q } = W, { row: se, column:
|
|
14312
|
-
return
|
|
14311
|
+
const { mouseConfig: B } = t, { editStore: W } = n, ne = s.value, V = i.value, { actived: Y, selected: q } = W, { row: se, column: fe } = M, ue = B && ne.selected;
|
|
14312
|
+
return ue && (q.row !== se || q.column !== fe) && (Y.row !== se || V.mode === "cell" && Y.column !== fe) && (G(F), e.clearSelected(), e.clearCellAreas && (e.clearCellAreas(), e.clearCopyCellArea()), q.args = M, q.row = se, q.column = fe, ue && k.addCellSelectedClass(), e.focus(), F && e.dispatchEvent("cell-selected", M, F)), pe();
|
|
14313
14313
|
},
|
|
14314
14314
|
addCellSelectedClass() {
|
|
14315
14315
|
const { editStore: M } = n, { selected: F } = M, { row: B, column: W } = F;
|
|
@@ -14539,15 +14539,15 @@ ZD.add("tableExportModule", {
|
|
|
14539
14539
|
const { isAllExpand: be, mode: Se } = J, { treeConfig: Oe } = t, ye = C.value, ae = E.value, Ve = r.value, lt = k.value;
|
|
14540
14540
|
if (Qs || (Qs = document.createElement("div")), Oe) {
|
|
14541
14541
|
const Ye = Ve.children || Ve.childrenField, et = [], qe = {}, Xe = {}, { handleGetRowId: Be } = Pn(e);
|
|
14542
|
-
return f.eachTree(ie, (ee, De, $e, ce,
|
|
14542
|
+
return f.eachTree(ie, (ee, De, $e, ce, de, ge) => {
|
|
14543
14543
|
const U = ee._row || ee, Re = Be(U);
|
|
14544
14544
|
if (Xe[Re])
|
|
14545
14545
|
return;
|
|
14546
|
-
const Te =
|
|
14546
|
+
const Te = de && de._row ? de._row : de, he = Te ? Be(Te) : "";
|
|
14547
14547
|
if (be || !Te || qe[he] && e.isTreeExpandByRow(Te)) {
|
|
14548
14548
|
const _e = I(U), Fe = {
|
|
14549
14549
|
_row: U,
|
|
14550
|
-
_level:
|
|
14550
|
+
_level: ge.length - 1,
|
|
14551
14551
|
_hasChild: _e,
|
|
14552
14552
|
_expand: _e && e.isTreeExpandByRow(U)
|
|
14553
14553
|
};
|
|
@@ -14673,7 +14673,7 @@ ZD.add("tableExportModule", {
|
|
|
14673
14673
|
const { scrollXLoad: lt, scrollYLoad: Ye } = n;
|
|
14674
14674
|
return (lt || Ye) && !Ve && (Ve = !0), Ve;
|
|
14675
14675
|
}, F = (J, Z, ie) => {
|
|
14676
|
-
const { id: be, border: Se, treeConfig: Oe, headerAlign: ye, align: ae, footerAlign: Ve, showOverflow: lt, showHeaderOverflow: Ye } = t, { isAllSelected: et, isIndeterminate: qe } = n, { mergeBodyCellMaps: Xe } = o, Be = r.value, { print: ee, isHeader: De, isFooter: $e, isColgroup: ce, isMerge:
|
|
14676
|
+
const { id: be, border: Se, treeConfig: Oe, headerAlign: ye, align: ae, footerAlign: Ve, showOverflow: lt, showHeaderOverflow: Ye } = t, { isAllSelected: et, isIndeterminate: qe } = n, { mergeBodyCellMaps: Xe } = o, Be = r.value, { print: ee, isHeader: De, isFooter: $e, isColgroup: ce, isMerge: de, colgroups: ge, original: U } = J, Re = "check-all", he = [
|
|
14677
14677
|
`<table class="${[
|
|
14678
14678
|
"vxe-table",
|
|
14679
14679
|
`border--${e0(Se)}`,
|
|
@@ -14682,7 +14682,7 @@ ZD.add("tableExportModule", {
|
|
|
14682
14682
|
].filter((Fe) => Fe).join(" ")}" border="0" cellspacing="0" cellpadding="0">`,
|
|
14683
14683
|
`<colgroup>${Z.map((Fe) => `<col style="width:${Fe.renderWidth}px">`).join("")}</colgroup>`
|
|
14684
14684
|
];
|
|
14685
|
-
if (De && (he.push("<thead>"), ce && !U ?
|
|
14685
|
+
if (De && (he.push("<thead>"), ce && !U ? ge.forEach((Fe) => {
|
|
14686
14686
|
he.push(`<tr>${Fe.map((Ge) => {
|
|
14687
14687
|
const mt = Ge.headerAlign || Ge.align || ye || ae, rt = M(Ge, "showHeaderOverflow", Ye) ? ["col--ellipsis"] : [], xt = m(J, Ge);
|
|
14688
14688
|
let tt = 0, st = 0;
|
|
@@ -14708,7 +14708,7 @@ ZD.add("tableExportModule", {
|
|
|
14708
14708
|
he.push("<tr>" + Z.map((Ge) => {
|
|
14709
14709
|
const mt = Ge.align || ae, rt = M(Ge, "showOverflow", lt) ? ["col--ellipsis"] : [], xt = Fe[Ge.id];
|
|
14710
14710
|
let tt = 1, st = 1;
|
|
14711
|
-
if (
|
|
14711
|
+
if (de) {
|
|
14712
14712
|
const at = e.getVTRowIndex(Fe._row), Ot = e.getVTColumnIndex(Ge), nt = Xe[`${at}:${Ot}`];
|
|
14713
14713
|
if (nt) {
|
|
14714
14714
|
const { rowspan: It, colspan: it } = nt;
|
|
@@ -14883,8 +14883,8 @@ ZD.add("tableExportModule", {
|
|
|
14883
14883
|
return Z.type === Oe;
|
|
14884
14884
|
}
|
|
14885
14885
|
return !1;
|
|
14886
|
-
}),
|
|
14887
|
-
const ie = e.xeGrid, be = e.xeGantt, Se = ie || be, { treeConfig: Oe, showHeader: ye, showFooter: ae } = t, { initStore: Ve, isGroup: lt, footerTableData: Ye, exportStore: et, exportParams: qe } = n, { collectColumn: Xe, mergeBodyList: Be, mergeFooterList: ee } = o, De = i.value, $e = Oe, ce = p.value,
|
|
14886
|
+
}), fe = (J, Z, ie, be) => be && f.includes(be, Z.field) ? !1 : ie ? !!f.includes(ie, Z.field) : J.original ? !!Z.field : Yi(Z), ue = (J, Z) => {
|
|
14887
|
+
const ie = e.xeGrid, be = e.xeGantt, Se = ie || be, { treeConfig: Oe, showHeader: ye, showFooter: ae } = t, { initStore: Ve, isGroup: lt, footerTableData: Ye, exportStore: et, exportParams: qe } = n, { collectColumn: Xe, mergeBodyList: Be, mergeFooterList: ee } = o, De = i.value, $e = Oe, ce = p.value, de = e.getCheckboxRecords(), ge = Se ? Se.getComputeMaps().computeProxyOpts.value : {}, U = !!Ye.length, Re = !!(Be.length || ee.length), Te = Object.assign({
|
|
14888
14888
|
message: !0,
|
|
14889
14889
|
isHeader: ye,
|
|
14890
14890
|
isTitle: ye,
|
|
@@ -14893,7 +14893,7 @@ ZD.add("tableExportModule", {
|
|
|
14893
14893
|
isMerge: Re,
|
|
14894
14894
|
useStyle: !0,
|
|
14895
14895
|
current: "current",
|
|
14896
|
-
modes: (
|
|
14896
|
+
modes: (ge.ajax && ge.ajax.queryAll ? ["all"] : []).concat(["current", "selected", "empty"])
|
|
14897
14897
|
}, J), he = Te.types || f.keys(De._typeMaps), _e = Te.modes || [], Fe = ce.checkMethod, Ge = Xe.slice(0), { columns: mt, excludeFields: rt, includeFields: xt } = Te, tt = he.map((it) => ({
|
|
14898
14898
|
value: it,
|
|
14899
14899
|
label: er(`vxe.export.types.${it}`)
|
|
@@ -14907,7 +14907,7 @@ ZD.add("tableExportModule", {
|
|
|
14907
14907
|
f.eachTree(Ge, (it, zt, rn, nn, Ct) => {
|
|
14908
14908
|
const Mt = it.children && it.children.length > 0;
|
|
14909
14909
|
let on = !1;
|
|
14910
|
-
mt && mt.length ? on = se(Te, it, mt) : rt || xt ? on =
|
|
14910
|
+
mt && mt.length ? on = se(Te, it, mt) : rt || xt ? on = fe(Te, it, xt, rt) : on = it.visible && (Mt || Yi(it)), it.checked = on, it.halfChecked = !1, it.disabled = Ct && Ct.disabled || (Fe ? !Fe({ $table: e, column: it }) : !1);
|
|
14911
14911
|
}), Object.assign(et, {
|
|
14912
14912
|
columns: Ge,
|
|
14913
14913
|
typeList: tt,
|
|
@@ -14919,7 +14919,7 @@ ZD.add("tableExportModule", {
|
|
|
14919
14919
|
hasColgroup: lt,
|
|
14920
14920
|
visible: !0
|
|
14921
14921
|
}), Object.assign(qe, {
|
|
14922
|
-
mode:
|
|
14922
|
+
mode: de.length ? "selected" : "current"
|
|
14923
14923
|
}, Te);
|
|
14924
14924
|
const { filename: at, sheetName: Ot, mode: nt, type: It } = qe;
|
|
14925
14925
|
return at && (f.isFunction(at) ? qe.filename = at({
|
|
@@ -14966,14 +14966,14 @@ ZD.add("tableExportModule", {
|
|
|
14966
14966
|
// beforeExportMethod: null,
|
|
14967
14967
|
// afterExportMethod: null
|
|
14968
14968
|
}, Be, J);
|
|
14969
|
-
let { filename:
|
|
14969
|
+
let { filename: de, sheetName: ge, type: U, mode: Re, columns: Te, original: he, columnFilterMethod: _e, beforeExportMethod: Fe, includeFields: Ge, excludeFields: mt } = ce, rt = [];
|
|
14970
14970
|
const xt = e.getCheckboxRecords();
|
|
14971
14971
|
Re || (Re = xt.length ? "selected" : "current");
|
|
14972
14972
|
let tt = !1, st = [];
|
|
14973
14973
|
Te && Te.length ? (tt = !0, st = Te) : st = f.searchTree(et, (nt) => {
|
|
14974
14974
|
const It = nt.children && nt.children.length > 0;
|
|
14975
14975
|
let it = !1;
|
|
14976
|
-
return Te && Te.length ? it = se(ce, nt, Te) : mt || Ge ? it =
|
|
14976
|
+
return Te && Te.length ? it = se(ce, nt, Te) : mt || Ge ? it = fe(ce, nt, Ge, mt) : it = nt.visible && (It || Yi(nt)), it;
|
|
14977
14977
|
}, { children: "children", mapChildren: "childNodes", original: !0 });
|
|
14978
14978
|
const at = Object.assign({}, ce, { filename: "", sheetName: "" });
|
|
14979
14979
|
!tt && !_e && (_e = ({ column: nt }) => mt && f.includes(mt, nt.field) ? !1 : Ge ? !!f.includes(Ge, nt.field) : he ? !!nt.field : Yi(nt), at.columnFilterMethod = _e), st ? (at._isCustomColumn = !0, rt = f.searchTree(f.mapTree(st, (nt) => {
|
|
@@ -15000,17 +15000,17 @@ ZD.add("tableExportModule", {
|
|
|
15000
15000
|
const Ot = [];
|
|
15001
15001
|
if (f.eachTree(rt, (nt) => {
|
|
15002
15002
|
nt.children && nt.children.length || Ot.push(nt);
|
|
15003
|
-
}, { children: "childNodes" }), at.columns = Ot, at.colgroups = JD(rt),
|
|
15003
|
+
}, { children: "childNodes" }), at.columns = Ot, at.colgroups = JD(rt), de && (f.isFunction(de) ? at.filename = de({
|
|
15004
15004
|
options: ce,
|
|
15005
15005
|
$table: e,
|
|
15006
15006
|
$grid: Z,
|
|
15007
15007
|
$gantt: ie
|
|
15008
|
-
}) : at.filename = `${
|
|
15008
|
+
}) : at.filename = `${de}`), at.filename || (at.filename = er(at.original ? "vxe.table.expOriginFilename" : "vxe.table.expFilename", [f.toDateString(Date.now(), "yyyyMMddHHmmss")])), ge && (f.isFunction(ge) ? at.sheetName = ge({
|
|
15009
15009
|
options: ce,
|
|
15010
15010
|
$table: e,
|
|
15011
15011
|
$grid: Z,
|
|
15012
15012
|
$gantt: ie
|
|
15013
|
-
}) : at.sheetName = `${
|
|
15013
|
+
}) : at.sheetName = `${ge}`), at.sheetName || (at.sheetName = document.title || ""), !at.exportMethod && !f.includes(f.keys(Be._typeMaps), U)) {
|
|
15014
15014
|
Ke("vxe.error.notType", [U]), ["xlsx", "pdf"].includes(U) && ft("vxe.error.reqPlugin", [4, "plugin-export-xlsx"]);
|
|
15015
15015
|
const nt = { status: !1 };
|
|
15016
15016
|
return Promise.reject(nt);
|
|
@@ -15167,14 +15167,14 @@ ZD.add("tableExportModule", {
|
|
|
15167
15167
|
message: !0,
|
|
15168
15168
|
types: f.keys(Z._typeMaps)
|
|
15169
15169
|
}, Z, J);
|
|
15170
|
-
return t.exportConfig || Ke("vxe.error.reqProp", ["export-config"]),
|
|
15170
|
+
return t.exportConfig || Ke("vxe.error.reqProp", ["export-config"]), ue(ie);
|
|
15171
15171
|
},
|
|
15172
15172
|
closePrint: me,
|
|
15173
15173
|
openPrint(J) {
|
|
15174
15174
|
const Z = s.value, ie = Object.assign({
|
|
15175
15175
|
message: !0
|
|
15176
15176
|
}, Z, J);
|
|
15177
|
-
return t.printConfig || Ke("vxe.error.reqProp", ["print-config"]),
|
|
15177
|
+
return t.printConfig || Ke("vxe.error.reqProp", ["print-config"]), ue(ie, !0);
|
|
15178
15178
|
}
|
|
15179
15179
|
};
|
|
15180
15180
|
return He;
|
|
@@ -15191,30 +15191,30 @@ s0.add("tableKeyboardModule", {
|
|
|
15191
15191
|
setupTable(e) {
|
|
15192
15192
|
const { props: t, reactData: n, internalData: o } = e, { refElem: r } = e.getRefMaps(), { computeEditOpts: s, computeCheckboxOpts: i, computeMouseOpts: d, computeTreeOpts: p, computeRowOpts: y, computeColumnOpts: C, computeCellOpts: E, computeDefaultRowHeight: k, computeCurrentRowOpts: I, computeCurrentColumnOpts: _ } = e.getComputeMaps();
|
|
15193
15193
|
function m(G, A, P, M, F, B) {
|
|
15194
|
-
const { showOverflow: W } = t, { fullAllDataRowIdData: ne, isResizeCellHeight: V } = o, Y = y.value, q = E.value, se = k.value, { row:
|
|
15195
|
-
let
|
|
15194
|
+
const { showOverflow: W } = t, { fullAllDataRowIdData: ne, isResizeCellHeight: V } = o, Y = y.value, q = E.value, se = k.value, { row: fe } = A;
|
|
15195
|
+
let ue = 0, me = [], He = 0;
|
|
15196
15196
|
const J = B > 0, { scrollYLoad: Z } = n, { afterFullData: ie } = o;
|
|
15197
15197
|
if (J ? He = F + B : He = M.height - F + Math.abs(B), Z) {
|
|
15198
|
-
const be = e.getVTRowIndex(
|
|
15198
|
+
const be = e.getVTRowIndex(fe);
|
|
15199
15199
|
if (!(V || q.height || Y.height) && W)
|
|
15200
15200
|
J ? me = ie.slice(be, be + Math.ceil(He / se)) : me = ie.slice(be - Math.floor(He / se), be + 1);
|
|
15201
15201
|
else if (J)
|
|
15202
15202
|
for (let Oe = be; Oe < ie.length; Oe++) {
|
|
15203
15203
|
const ye = ie[Oe], ae = e.getRowid(ye), Ve = ne[ae] || {};
|
|
15204
|
-
if (
|
|
15204
|
+
if (ue += Ve.resizeHeight || q.height || Y.height || Ve.height || se, me.push(ye), ue > He)
|
|
15205
15205
|
return me;
|
|
15206
15206
|
}
|
|
15207
15207
|
else
|
|
15208
15208
|
for (let Oe = be; Oe >= 0; Oe--) {
|
|
15209
15209
|
const ye = ie[Oe], ae = e.getRowid(ye), Ve = ne[ae] || {};
|
|
15210
|
-
if (
|
|
15210
|
+
if (ue += Ve.resizeHeight || q.height || Y.height || Ve.height || se, me.push(ye), ue > He)
|
|
15211
15211
|
return me;
|
|
15212
15212
|
}
|
|
15213
15213
|
} else {
|
|
15214
15214
|
const be = J ? "next" : "previous";
|
|
15215
|
-
for (; P &&
|
|
15215
|
+
for (; P && ue < He; ) {
|
|
15216
15216
|
const Se = e.getRowNode(P);
|
|
15217
|
-
Se && (me.push(Se.item),
|
|
15217
|
+
Se && (me.push(Se.item), ue += P.offsetHeight, P = P[`${be}ElementSibling`]);
|
|
15218
15218
|
}
|
|
15219
15219
|
}
|
|
15220
15220
|
return me;
|
|
@@ -15225,9 +15225,9 @@ s0.add("tableKeyboardModule", {
|
|
|
15225
15225
|
let V = M;
|
|
15226
15226
|
if (F && W.fixed === "left" ? V = F : B && W.fixed === "right" && (V = B), !V)
|
|
15227
15227
|
return;
|
|
15228
|
-
const Y = V.getBoundingClientRect(), q = r.value, se = G.clientX,
|
|
15228
|
+
const Y = V.getBoundingClientRect(), q = r.value, se = G.clientX, fe = G.clientY, ue = V.querySelector(".vxe-table--checkbox-range"), me = ne.parentElement, He = e.getCheckboxRecords();
|
|
15229
15229
|
let J = [];
|
|
15230
|
-
const Z = 1, ie = G.clientY - Y.y + V.scrollTop, be = G.clientX - Y.x + V.scrollLeft, Se = V.scrollTop, Oe = me.offsetHeight, ye = me.getBoundingClientRect(), ae =
|
|
15230
|
+
const Z = 1, ie = G.clientY - Y.y + V.scrollTop, be = G.clientX - Y.x + V.scrollLeft, Se = V.scrollTop, Oe = me.offsetHeight, ye = me.getBoundingClientRect(), ae = fe - ye.y;
|
|
15231
15231
|
let Ve = null, lt = !1, Ye = 1;
|
|
15232
15232
|
const et = (ee, De) => {
|
|
15233
15233
|
e.dispatchEvent(`checkbox-range-${ee}`, {
|
|
@@ -15235,11 +15235,11 @@ s0.add("tableKeyboardModule", {
|
|
|
15235
15235
|
reserves: () => e.getCheckboxReserveRecords()
|
|
15236
15236
|
}, De);
|
|
15237
15237
|
}, qe = (ee) => {
|
|
15238
|
-
const { clientX: De, clientY: $e } = ee, ce = De - se,
|
|
15239
|
-
let
|
|
15240
|
-
|
|
15241
|
-
const he = m(ee, A, me, ye, ae,
|
|
15242
|
-
if (
|
|
15238
|
+
const { clientX: De, clientY: $e } = ee, ce = De - se, de = $e - fe + (V.scrollTop - Se);
|
|
15239
|
+
let ge = Math.abs(de), U = Math.abs(ce), Re = ie, Te = be;
|
|
15240
|
+
de < Z ? (Re += de, Re < Z && (Re = Z, ge = ie)) : ge = Math.min(ge, V.scrollHeight - ie - Z), ce < Z ? (Te += ce, U > be && (Te = Z, U = be)) : U = Math.min(U, V.clientWidth - be - Z), ue.style.height = `${ge}px`, ue.style.width = `${U}px`, ue.style.left = `${Te}px`, ue.style.top = `${Re}px`, ue.style.display = "block";
|
|
15241
|
+
const he = m(ee, A, me, ye, ae, de < Z ? -ge : ge);
|
|
15242
|
+
if (ge > 10 && he.length !== J.length) {
|
|
15243
15243
|
const _e = oi(ee);
|
|
15244
15244
|
J = he, _e ? he.forEach((Fe) => {
|
|
15245
15245
|
e.handleBatchSelectRows([Fe], He.indexOf(Fe) === -1);
|
|
@@ -15250,8 +15250,8 @@ s0.add("tableKeyboardModule", {
|
|
|
15250
15250
|
}, Be = (ee) => {
|
|
15251
15251
|
Xe(), Ve = setTimeout(() => {
|
|
15252
15252
|
if (Ve) {
|
|
15253
|
-
const { scrollLeft: De, scrollTop: $e, clientHeight: ce, scrollHeight:
|
|
15254
|
-
lt ? $e + ce <
|
|
15253
|
+
const { scrollLeft: De, scrollTop: $e, clientHeight: ce, scrollHeight: de } = V, ge = Math.ceil(Ye * 50 / Oe);
|
|
15254
|
+
lt ? $e + ce < de ? (e.scrollTo(De, $e + ge), Be(ee), qe(ee)) : Xe() : $e ? (e.scrollTo(De, $e - ge), Be(ee), qe(ee)) : Xe();
|
|
15255
15255
|
}
|
|
15256
15256
|
}, 50);
|
|
15257
15257
|
};
|
|
@@ -15260,7 +15260,7 @@ s0.add("tableKeyboardModule", {
|
|
|
15260
15260
|
const { clientY: De } = ee, { boundingTop: $e } = sc(V);
|
|
15261
15261
|
De < $e ? (lt = !1, Ye = $e - De, Ve || Be(ee)) : De > $e + V.clientHeight ? (lt = !0, Ye = De - $e - V.clientHeight, Ve || Be(ee)) : Ve && Xe(), qe(ee);
|
|
15262
15262
|
}, document.onmouseup = (ee) => {
|
|
15263
|
-
Xe(), Po(q, "drag--range"),
|
|
15263
|
+
Xe(), Po(q, "drag--range"), ue.removeAttribute("style"), document.onmousemove = null, document.onmouseup = null, et("end", ee);
|
|
15264
15264
|
}, et("start", G);
|
|
15265
15265
|
}
|
|
15266
15266
|
}, R = (G, A) => {
|
|
@@ -15278,11 +15278,11 @@ s0.add("tableKeyboardModule", {
|
|
|
15278
15278
|
// 处理 Tab 键移动
|
|
15279
15279
|
moveTabSelected(G, A, P) {
|
|
15280
15280
|
const { editConfig: M } = t, { afterFullData: F, visibleColumn: B } = o, W = s.value, ne = y.value, V = I.value, Y = C.value, q = _.value;
|
|
15281
|
-
let se,
|
|
15281
|
+
let se, fe, ue;
|
|
15282
15282
|
const me = Object.assign({}, G), He = e.getVTRowIndex(me.row), J = e.getVTColumnIndex(me.column);
|
|
15283
|
-
P.preventDefault(), A ? J <= 0 ? He > 0 && (
|
|
15284
|
-
const Z = B[
|
|
15285
|
-
Z && (se ? (me.rowIndex =
|
|
15283
|
+
P.preventDefault(), A ? J <= 0 ? He > 0 && (fe = He - 1, se = F[fe], ue = B.length - 1) : ue = J - 1 : J >= B.length - 1 ? He < F.length - 1 && (fe = He + 1, se = F[fe], ue = 0) : ue = J + 1;
|
|
15284
|
+
const Z = B[ue];
|
|
15285
|
+
Z && (se ? (me.rowIndex = fe, me.row = se) : me.rowIndex = He, me.columnIndex = ue, me.column = Z, me.cell = e.getCellElement(me.row, me.column), ne.isCurrent && V.isFollowSelected && e.triggerCurrentRowEvent(P, me), Y.isCurrent && q.isFollowSelected && e.triggerCurrentColumnEvent(P, me), M ? (W.trigger === "click" || W.trigger === "dblclick") && (W.mode === "row" ? e.handleEdit(me, P) : e.scrollToRow(me.row, me.column).then(() => {
|
|
15286
15286
|
e.handleSelected(me, P);
|
|
15287
15287
|
})) : e.scrollToRow(me.row, me.column).then(() => {
|
|
15288
15288
|
e.handleSelected(me, P);
|
|
@@ -15335,12 +15335,12 @@ s0.add("tableKeyboardModule", {
|
|
|
15335
15335
|
},
|
|
15336
15336
|
// 处理可编辑方向键移动
|
|
15337
15337
|
moveArrowSelected(G, A, P, M, F, B) {
|
|
15338
|
-
const { highlightCurrentRow: W, highlightCurrentColumn: ne } = t, V = y.value, Y = I.value, q = C.value, se = _.value,
|
|
15339
|
-
(V.isCurrent || W) && (Y.isFollowSelected ? e.triggerCurrentRowEvent(B,
|
|
15338
|
+
const { highlightCurrentRow: W, highlightCurrentColumn: ne } = t, V = y.value, Y = I.value, q = C.value, se = _.value, fe = x(B, G, A, P, M, F);
|
|
15339
|
+
(V.isCurrent || W) && (Y.isFollowSelected ? e.triggerCurrentRowEvent(B, fe) : (P || F) && (V.isCurrent || W) && e.moveCurrentRow(P, F, B)), (q.isCurrent || ne) && (se.isFollowSelected ? e.triggerCurrentColumnEvent(B, fe) : (A || M) && (q.isCurrent || ne) && e.moveCurrentColumn(A, M, B));
|
|
15340
15340
|
},
|
|
15341
15341
|
moveEnterSelected(G, A, P, M, F, B) {
|
|
15342
|
-
const { highlightCurrentRow: W, highlightCurrentColumn: ne } = t, V = y.value, Y = I.value, q = C.value, se = _.value,
|
|
15343
|
-
(V.isCurrent || W) && Y.isFollowSelected && e.triggerCurrentRowEvent(B,
|
|
15342
|
+
const { highlightCurrentRow: W, highlightCurrentColumn: ne } = t, V = y.value, Y = I.value, q = C.value, se = _.value, fe = x(B, G, A, P, M, F);
|
|
15343
|
+
(V.isCurrent || W) && Y.isFollowSelected && e.triggerCurrentRowEvent(B, fe), (q.isCurrent || ne) && se.isFollowSelected && e.triggerCurrentColumnEvent(B, fe);
|
|
15344
15344
|
},
|
|
15345
15345
|
// 已废弃,待删除
|
|
15346
15346
|
moveSelected(G, A, P, M, F, B) {
|
|
@@ -15436,11 +15436,11 @@ c0.add("tableValidatorModule", {
|
|
|
15436
15436
|
o._lastCallTime = Date.now(), E = !1, y.clearValidate();
|
|
15437
15437
|
const se = {};
|
|
15438
15438
|
if (G) {
|
|
15439
|
-
const
|
|
15439
|
+
const fe = u && u.length ? u : e.getColumns(), ue = (me) => {
|
|
15440
15440
|
const He = Je(e, me);
|
|
15441
15441
|
if (!B[He] && !F[He] && !e.isAggregateRecord(me) && (x || !E)) {
|
|
15442
15442
|
const J = [];
|
|
15443
|
-
|
|
15443
|
+
fe.forEach((Z) => {
|
|
15444
15444
|
const ie = f.isString(Z) ? Z : Z.field;
|
|
15445
15445
|
(x || !E) && f.has(G, ie) && J.push(C.validCellRules("all", me, Z).catch(({ rule: be, rules: Se }) => {
|
|
15446
15446
|
const Oe = {
|
|
@@ -15465,12 +15465,12 @@ c0.add("tableValidatorModule", {
|
|
|
15465
15465
|
}
|
|
15466
15466
|
};
|
|
15467
15467
|
if (P)
|
|
15468
|
-
f.eachTree(Y,
|
|
15468
|
+
f.eachTree(Y, ue, { children: ne.mapChildrenField });
|
|
15469
15469
|
else if (A) {
|
|
15470
15470
|
const me = W.children || W.childrenField;
|
|
15471
|
-
f.eachTree(Y,
|
|
15471
|
+
f.eachTree(Y, ue, { children: me });
|
|
15472
15472
|
} else
|
|
15473
|
-
Y.forEach(
|
|
15473
|
+
Y.forEach(ue);
|
|
15474
15474
|
return Promise.all(q).then(() => {
|
|
15475
15475
|
const me = Object.keys(T);
|
|
15476
15476
|
return n.validErrorMaps = I(se), pe().then(() => {
|
|
@@ -15591,16 +15591,16 @@ c0.add("tableValidatorModule", {
|
|
|
15591
15591
|
};
|
|
15592
15592
|
let se;
|
|
15593
15593
|
if (f.isString(Y)) {
|
|
15594
|
-
const
|
|
15595
|
-
if (
|
|
15596
|
-
const
|
|
15597
|
-
|
|
15594
|
+
const fe = i0.get(Y);
|
|
15595
|
+
if (fe) {
|
|
15596
|
+
const ue = fe.tableCellValidatorMethod || fe.cellValidatorMethod;
|
|
15597
|
+
ue ? se = ue(q) : Ke("vxe.error.notValidators", [Y]);
|
|
15598
15598
|
} else
|
|
15599
15599
|
Ke("vxe.error.notValidators", [Y]);
|
|
15600
15600
|
} else
|
|
15601
15601
|
se = Y(q);
|
|
15602
|
-
se && (f.isError(se) ? (E = !0, M.push(new Za({ type: "custom", trigger: V, content: se.message, rule: new Za(ne) }))) : se.catch && F.push(se.catch((
|
|
15603
|
-
E = !0, M.push(new Za({ type: "custom", trigger: V, content:
|
|
15602
|
+
se && (f.isError(se) ? (E = !0, M.push(new Za({ type: "custom", trigger: V, content: se.message, rule: new Za(ne) }))) : se.catch && F.push(se.catch((fe) => {
|
|
15603
|
+
E = !0, M.push(new Za({ type: "custom", trigger: V, content: fe && fe.message ? fe.message : ne.content || ne.message, rule: new Za(ne) }));
|
|
15604
15604
|
})));
|
|
15605
15605
|
} else
|
|
15606
15606
|
d0(ne, W) || (E = !0, M.push(new Za(ne)));
|
|
@@ -15703,9 +15703,9 @@ Ae.hooks.add("tableCustomModule", {
|
|
|
15703
15703
|
return T.visible ? C() : p();
|
|
15704
15704
|
}, k = () => {
|
|
15705
15705
|
const { customColumnList: T, aggHandleFields: G, rowGroupList: A } = t, P = o.value, { allowVisible: M, allowSort: F, allowFixed: B, allowResizable: W, allowGroup: ne, allowValues: V } = P;
|
|
15706
|
-
return f.eachTree(T, (Y, q, se,
|
|
15707
|
-
if (
|
|
15708
|
-
Y.fixed =
|
|
15706
|
+
return f.eachTree(T, (Y, q, se, fe, ue) => {
|
|
15707
|
+
if (ue)
|
|
15708
|
+
Y.fixed = ue.fixed;
|
|
15709
15709
|
else {
|
|
15710
15710
|
if (F) {
|
|
15711
15711
|
const me = q + 1;
|
|
@@ -15718,8 +15718,8 @@ Ae.hooks.add("tableCustomModule", {
|
|
|
15718
15718
|
}, I = () => {
|
|
15719
15719
|
const { customColumnList: T, customStore: G } = t, { oldSortMaps: A, oldFixedMaps: P, oldVisibleMaps: M } = G, F = o.value, { allowVisible: B, allowSort: W, allowFixed: ne, allowResizable: V } = F;
|
|
15720
15720
|
return f.eachTree(T, (Y) => {
|
|
15721
|
-
const q = Y.getKey(), se = !!M[q],
|
|
15722
|
-
B && (Y.renderVisible = se, Y.visible = se), ne && (Y.renderFixed =
|
|
15721
|
+
const q = Y.getKey(), se = !!M[q], fe = P[q] || "";
|
|
15722
|
+
B && (Y.renderVisible = se, Y.visible = se), ne && (Y.renderFixed = fe, Y.fixed = fe), W && (Y.renderSortNumber = A[q] || 0), V && (Y.renderResizeWidth = Y.renderWidth);
|
|
15723
15723
|
}, { children: "children" }), pe();
|
|
15724
15724
|
}, _ = (T) => {
|
|
15725
15725
|
const { customStore: G } = t, { customColumnList: A } = t, P = o.value, { checkMethod: M, visibleMethod: F } = P, B = !!T;
|
|
@@ -16930,7 +16930,7 @@ const Os = bl({
|
|
|
16930
16930
|
isColLoading: !1
|
|
16931
16931
|
}), u = ig();
|
|
16932
16932
|
let R = {}, x = {};
|
|
16933
|
-
const T = ve(), G = ve(), A = ve(), P = ve(), M = ve(), F = ve(), B = ve(), W = ve(), ne = ve(), V = ve(), Y = ve(), q = ve(), se = ve(),
|
|
16933
|
+
const T = ve(), G = ve(), A = ve(), P = ve(), M = ve(), F = ve(), B = ve(), W = ve(), ne = ve(), V = ve(), Y = ve(), q = ve(), se = ve(), fe = ve(), ue = ve(), me = ve(), He = ve(), J = ve(), Z = ve(), ie = ve(), be = ve(), Se = ve(), Oe = ve(), ye = ve(), ae = ve(), Ve = ve(), lt = ve(), Ye = ve(), et = ve(), qe = ve(), Xe = ve(), Be = ve(), ee = ve(), De = ve(), $e = ve(), ce = ve(), de = ve(), ge = ve(), U = ve(), Re = ve(), Te = ve(), he = ve();
|
|
16934
16934
|
let _e;
|
|
16935
16935
|
const Fe = Me(() => {
|
|
16936
16936
|
const { id: l } = e;
|
|
@@ -17091,8 +17091,8 @@ const Os = bl({
|
|
|
17091
17091
|
refTableBody: Y,
|
|
17092
17092
|
refTableFooter: q,
|
|
17093
17093
|
refTableLeftHeader: se,
|
|
17094
|
-
refTableLeftBody:
|
|
17095
|
-
refTableLeftFooter:
|
|
17094
|
+
refTableLeftBody: fe,
|
|
17095
|
+
refTableLeftFooter: ue,
|
|
17096
17096
|
refTableRightHeader: me,
|
|
17097
17097
|
refTableRightBody: He,
|
|
17098
17098
|
refTableRightFooter: J,
|
|
@@ -17857,11 +17857,11 @@ const Os = bl({
|
|
|
17857
17857
|
oe && (an = Math.max(jt, oe - re - X - Ne)), N && (qt = N - re - X - Ne), qt || ot && (qt = ot.clientHeight), qt && (an && (qt = Math.min(an, qt)), qt = Math.max(jt, qt));
|
|
17858
17858
|
const Jt = De.value, Nt = $e.value, In = Xe.value;
|
|
17859
17859
|
In && (In.style.height = `${Ne}px`, In.style.visibility = cn);
|
|
17860
|
-
const dn =
|
|
17860
|
+
const dn = ge.value;
|
|
17861
17861
|
dn && (dn.style.width = `${Ce.clientWidth - We}px`, yt ? dn.style.left = `${We}px` : dn.style.left = ""), Jt && (yt ? (Jt.style.width = `${We}px`, Jt.style.display = w && We ? "block" : "") : Jt.style.display = ""), Nt && (yt ? Nt.style.display = "" : (Nt.style.width = `${We}px`, Nt.style.display = cn === "visible" ? "block" : ""));
|
|
17862
17862
|
const Xt = Be.value;
|
|
17863
17863
|
Xt && (Xt.style.width = `${We}px`, Xt.style.height = `${qt + re + X}px`, Xt.style.visibility = un);
|
|
17864
|
-
const Tn =
|
|
17864
|
+
const Tn = de.value;
|
|
17865
17865
|
Tn && (Tn.style.height = `${re}px`, Tn.style.display = re && un === "visible" ? "block" : "");
|
|
17866
17866
|
const _n = U.value;
|
|
17867
17867
|
_n && (_n.style.height = `${qt}px`, _n.style.top = `${re}px`);
|
|
@@ -22185,14 +22185,14 @@ const Os = bl({
|
|
|
22185
22185
|
fixedColumn: te
|
|
22186
22186
|
}) : yo(g),
|
|
22187
22187
|
O(Eg, {
|
|
22188
|
-
ref: K ?
|
|
22188
|
+
ref: K ? fe : He,
|
|
22189
22189
|
fixedType: l,
|
|
22190
22190
|
tableData: h,
|
|
22191
22191
|
tableColumn: v,
|
|
22192
22192
|
fixedColumn: te
|
|
22193
22193
|
}),
|
|
22194
22194
|
c ? O(Mg, {
|
|
22195
|
-
ref: K ?
|
|
22195
|
+
ref: K ? ue : J,
|
|
22196
22196
|
footerTableData: S,
|
|
22197
22197
|
tableColumn: v,
|
|
22198
22198
|
fixedColumn: te,
|
|
@@ -22322,7 +22322,7 @@ const Os = bl({
|
|
|
22322
22322
|
class: "vxe-table--scroll-x-left-corner"
|
|
22323
22323
|
}),
|
|
22324
22324
|
O("div", {
|
|
22325
|
-
ref:
|
|
22325
|
+
ref: ge,
|
|
22326
22326
|
class: "vxe-table--scroll-x-wrapper"
|
|
22327
22327
|
}, [
|
|
22328
22328
|
O("div", {
|
|
@@ -22348,7 +22348,7 @@ const Os = bl({
|
|
|
22348
22348
|
class: "vxe-table--scroll-y-virtual"
|
|
22349
22349
|
}, [
|
|
22350
22350
|
O("div", {
|
|
22351
|
-
ref:
|
|
22351
|
+
ref: de,
|
|
22352
22352
|
class: "vxe-table--scroll-y-top-corner"
|
|
22353
22353
|
}),
|
|
22354
22354
|
O("div", {
|
|
@@ -22707,11 +22707,11 @@ const Os = bl({
|
|
|
22707
22707
|
]) : yo(g)
|
|
22708
22708
|
]);
|
|
22709
22709
|
}, iu = ve(0);
|
|
22710
|
-
|
|
22710
|
+
ht(() => e.data ? e.data.length : -1, () => {
|
|
22711
22711
|
iu.value++;
|
|
22712
|
-
}),
|
|
22712
|
+
}), ht(() => e.data, () => {
|
|
22713
22713
|
iu.value++;
|
|
22714
|
-
}),
|
|
22714
|
+
}), ht(iu, () => {
|
|
22715
22715
|
const { initStatus: l } = u, a = e.data || [];
|
|
22716
22716
|
a && a.length >= 2e4 && ft("vxe.error.errLargeData", ["loadData(data), reloadData(data)"]), us(a, !1, !0).then(() => {
|
|
22717
22717
|
const { scrollXLoad: c, scrollYLoad: h, expandColumn: v } = m, b = ln.value;
|
|
@@ -22719,105 +22719,105 @@ const Os = bl({
|
|
|
22719
22719
|
});
|
|
22720
22720
|
});
|
|
22721
22721
|
const cu = ve(0);
|
|
22722
|
-
|
|
22722
|
+
ht(() => m.staticColumns.length, () => {
|
|
22723
22723
|
cu.value++;
|
|
22724
|
-
}),
|
|
22724
|
+
}), ht(() => m.staticColumns, () => {
|
|
22725
22725
|
cu.value++;
|
|
22726
|
-
}),
|
|
22726
|
+
}), ht(cu, () => {
|
|
22727
22727
|
pe(() => Kd(f.clone(m.staticColumns)));
|
|
22728
22728
|
});
|
|
22729
22729
|
const uu = ve(0);
|
|
22730
|
-
|
|
22730
|
+
ht(() => m.tableColumn.length, () => {
|
|
22731
22731
|
uu.value++;
|
|
22732
|
-
}),
|
|
22732
|
+
}), ht(() => m.tableColumn, () => {
|
|
22733
22733
|
uu.value++;
|
|
22734
|
-
}),
|
|
22734
|
+
}), ht(uu, () => {
|
|
22735
22735
|
x.analyColumnWidth();
|
|
22736
|
-
}),
|
|
22736
|
+
}), ht(() => m.upDataFlag, () => {
|
|
22737
22737
|
pe(() => {
|
|
22738
22738
|
R.updateData();
|
|
22739
22739
|
});
|
|
22740
|
-
}),
|
|
22740
|
+
}), ht(() => m.reColumnFlag, () => {
|
|
22741
22741
|
pe(() => {
|
|
22742
22742
|
R.refreshColumn();
|
|
22743
22743
|
});
|
|
22744
22744
|
});
|
|
22745
22745
|
const sl = ve(0);
|
|
22746
|
-
|
|
22746
|
+
ht(I, () => {
|
|
22747
22747
|
sl.value++;
|
|
22748
|
-
}),
|
|
22748
|
+
}), ht(() => e.showHeader, () => {
|
|
22749
22749
|
sl.value++;
|
|
22750
|
-
}),
|
|
22750
|
+
}), ht(() => e.showFooter, () => {
|
|
22751
22751
|
sl.value++;
|
|
22752
|
-
}),
|
|
22752
|
+
}), ht(() => m.overflowX, () => {
|
|
22753
22753
|
sl.value++;
|
|
22754
|
-
}),
|
|
22754
|
+
}), ht(() => m.overflowY, () => {
|
|
22755
22755
|
sl.value++;
|
|
22756
|
-
}),
|
|
22756
|
+
}), ht(() => e.height, () => {
|
|
22757
22757
|
sl.value++;
|
|
22758
|
-
}),
|
|
22758
|
+
}), ht(() => e.maxHeight, () => {
|
|
22759
22759
|
sl.value++;
|
|
22760
|
-
}),
|
|
22760
|
+
}), ht(it, () => {
|
|
22761
22761
|
sl.value++;
|
|
22762
|
-
}),
|
|
22762
|
+
}), ht(zt, () => {
|
|
22763
22763
|
sl.value++;
|
|
22764
|
-
}),
|
|
22764
|
+
}), ht(() => Ae.getLanguage(), () => {
|
|
22765
22765
|
sl.value++;
|
|
22766
|
-
}),
|
|
22766
|
+
}), ht(() => nt.value.visible, () => {
|
|
22767
22767
|
sl.value++;
|
|
22768
|
-
}),
|
|
22768
|
+
}), ht(() => It.value.visible, () => {
|
|
22769
22769
|
sl.value++;
|
|
22770
|
-
}),
|
|
22770
|
+
}), ht(sl, () => {
|
|
22771
22771
|
g.recalculate(!0);
|
|
22772
22772
|
});
|
|
22773
22773
|
const du = ve(0);
|
|
22774
|
-
|
|
22774
|
+
ht(() => e.footerData ? e.footerData.length : -1, () => {
|
|
22775
22775
|
du.value++;
|
|
22776
|
-
}),
|
|
22776
|
+
}), ht(() => e.footerData, () => {
|
|
22777
22777
|
du.value++;
|
|
22778
|
-
}),
|
|
22778
|
+
}), ht(du, () => {
|
|
22779
22779
|
u.footerFullDataRowData = {}, g.updateFooter();
|
|
22780
|
-
}),
|
|
22780
|
+
}), ht(() => e.syncResize, (l) => {
|
|
22781
22781
|
l && (ru(), pe(() => {
|
|
22782
22782
|
ru(), setTimeout(() => ru());
|
|
22783
22783
|
}));
|
|
22784
22784
|
});
|
|
22785
22785
|
const fu = ve(0);
|
|
22786
|
-
|
|
22786
|
+
ht(() => e.mergeCells ? e.mergeCells.length : -1, () => {
|
|
22787
22787
|
fu.value++;
|
|
22788
|
-
}),
|
|
22788
|
+
}), ht(() => e.mergeCells, () => {
|
|
22789
22789
|
fu.value++;
|
|
22790
|
-
}),
|
|
22790
|
+
}), ht(fu, () => {
|
|
22791
22791
|
Di(e.mergeCells || []);
|
|
22792
22792
|
});
|
|
22793
22793
|
const gu = ve(0);
|
|
22794
|
-
|
|
22794
|
+
ht(() => e.mergeHeaderCells ? e.mergeHeaderCells.length : -1, () => {
|
|
22795
22795
|
gu.value++;
|
|
22796
|
-
}),
|
|
22796
|
+
}), ht(() => e.mergeHeaderCells, () => {
|
|
22797
22797
|
gu.value++;
|
|
22798
|
-
}),
|
|
22798
|
+
}), ht(gu, () => {
|
|
22799
22799
|
Ns(e.mergeHeaderCells || []);
|
|
22800
22800
|
});
|
|
22801
22801
|
const Ba = ve(0);
|
|
22802
|
-
|
|
22802
|
+
ht(() => e.mergeFooterCells ? e.mergeFooterCells.length : -1, () => {
|
|
22803
22803
|
Ba.value++;
|
|
22804
|
-
}),
|
|
22804
|
+
}), ht(() => e.mergeFooterCells, () => {
|
|
22805
22805
|
Ba.value++;
|
|
22806
|
-
}),
|
|
22806
|
+
}), ht(() => e.mergeFooterItems ? e.mergeFooterItems.length : -1, () => {
|
|
22807
22807
|
Ba.value++;
|
|
22808
|
-
}),
|
|
22808
|
+
}), ht(() => e.mergeFooterItems, () => {
|
|
22809
22809
|
Ba.value++;
|
|
22810
|
-
}),
|
|
22810
|
+
}), ht(Ba, () => {
|
|
22811
22811
|
const l = e.mergeFooterCells || e.mergeFooterItems;
|
|
22812
22812
|
Yc(l || []);
|
|
22813
|
-
}),
|
|
22813
|
+
}), ht(Si, (l) => {
|
|
22814
22814
|
Ti(l);
|
|
22815
|
-
}),
|
|
22815
|
+
}), ht(Ge, () => {
|
|
22816
22816
|
const { inited: l, tableFullData: a } = u;
|
|
22817
22817
|
l && (as(), m.tableData = [], pe(() => {
|
|
22818
22818
|
g.reloadData(a);
|
|
22819
22819
|
}));
|
|
22820
|
-
}), p &&
|
|
22820
|
+
}), p && ht(() => p ? p.reactData.resizeFlag : null, () => {
|
|
22821
22821
|
rf();
|
|
22822
22822
|
}), as(), S0.forEach((l) => {
|
|
22823
22823
|
const { setupTable: a } = l;
|
|
@@ -23010,12 +23010,12 @@ const Ds = bl({
|
|
|
23010
23010
|
const { connectTable: Be } = E, ee = Be;
|
|
23011
23011
|
ee && ee.openImport();
|
|
23012
23012
|
}
|
|
23013
|
-
},
|
|
23013
|
+
}, fe = () => {
|
|
23014
23014
|
if (F()) {
|
|
23015
23015
|
const { connectTable: Be } = E, ee = Be;
|
|
23016
23016
|
ee && ee.exportData();
|
|
23017
23017
|
}
|
|
23018
|
-
},
|
|
23018
|
+
}, ue = () => {
|
|
23019
23019
|
if (F()) {
|
|
23020
23020
|
const { connectTable: Be } = E, ee = Be;
|
|
23021
23021
|
ee && ee.openExport();
|
|
@@ -23042,10 +23042,10 @@ const Ds = bl({
|
|
|
23042
23042
|
B(Be);
|
|
23043
23043
|
break;
|
|
23044
23044
|
case "export":
|
|
23045
|
-
|
|
23045
|
+
fe();
|
|
23046
23046
|
break;
|
|
23047
23047
|
case "open_export":
|
|
23048
|
-
|
|
23048
|
+
ue();
|
|
23049
23049
|
break;
|
|
23050
23050
|
case "import":
|
|
23051
23051
|
q();
|
|
@@ -23064,29 +23064,29 @@ const Ds = bl({
|
|
|
23064
23064
|
break;
|
|
23065
23065
|
}
|
|
23066
23066
|
}, Z = (Be, ee) => {
|
|
23067
|
-
const { $event: De } = Be, { connectTable: $e } = E, ce = $e, { code:
|
|
23068
|
-
|
|
23067
|
+
const { $event: De } = Be, { connectTable: $e } = E, ce = $e, { code: de } = ee;
|
|
23068
|
+
de && J(Be, ee, () => {
|
|
23069
23069
|
if (p)
|
|
23070
23070
|
p.triggerToolbarBtnEvent(ee, De);
|
|
23071
23071
|
else {
|
|
23072
|
-
const
|
|
23073
|
-
if (
|
|
23074
|
-
const Re =
|
|
23075
|
-
Re ? Re(U) : Ke("vxe.error.notCommands", [`[toolbar] ${
|
|
23072
|
+
const ge = Jg.get(de), U = { code: de, button: ee, $table: ce, $grid: i, $gantt: d, $event: De };
|
|
23073
|
+
if (ge) {
|
|
23074
|
+
const Re = ge.tableCommandMethod || ge.commandMethod;
|
|
23075
|
+
Re ? Re(U) : Ke("vxe.error.notCommands", [`[toolbar] ${de}`]);
|
|
23076
23076
|
}
|
|
23077
23077
|
_.dispatchEvent("button-click", U, De);
|
|
23078
23078
|
}
|
|
23079
23079
|
});
|
|
23080
23080
|
}, ie = (Be, ee) => {
|
|
23081
|
-
const { $event: De } = Be, { connectTable: $e } = E, ce = $e, { code:
|
|
23082
|
-
|
|
23081
|
+
const { $event: De } = Be, { connectTable: $e } = E, ce = $e, { code: de } = ee;
|
|
23082
|
+
de && J(Be, ee, () => {
|
|
23083
23083
|
if (p)
|
|
23084
23084
|
p.triggerToolbarTolEvent(ee, De);
|
|
23085
23085
|
else {
|
|
23086
|
-
const
|
|
23087
|
-
if (
|
|
23088
|
-
const Re =
|
|
23089
|
-
Re ? Re(U) : Ke("vxe.error.notCommands", [`[toolbar] ${
|
|
23086
|
+
const ge = Jg.get(de), U = { code: de, button: null, tool: ee, $table: ce, $grid: i, $gantt: d, $event: De };
|
|
23087
|
+
if (ge) {
|
|
23088
|
+
const Re = ge.tableCommandMethod || ge.commandMethod;
|
|
23089
|
+
Re ? Re(U) : Ke("vxe.error.notCommands", [`[toolbar] ${de}`]);
|
|
23090
23090
|
}
|
|
23091
23091
|
_.dispatchEvent("tool-click", U, De);
|
|
23092
23092
|
}
|
|
@@ -23102,24 +23102,24 @@ const Ds = bl({
|
|
|
23102
23102
|
}, Object.assign(_, m);
|
|
23103
23103
|
const Se = (Be, ee) => {
|
|
23104
23104
|
const { dropdowns: De } = Be, $e = [];
|
|
23105
|
-
return De ? De.map((ce,
|
|
23105
|
+
return De ? De.map((ce, de) => ce.visible === !1 ? gt() : s ? O(s, Object.assign(Object.assign({ key: de }, Object.assign({}, ce, {
|
|
23106
23106
|
content: ce.content || ce.name,
|
|
23107
23107
|
options: void 0
|
|
23108
|
-
})), { onClick: (
|
|
23108
|
+
})), { onClick: (ge) => ee ? Z(ge, ce) : ie(ge, ce) })) : gt()) : $e;
|
|
23109
23109
|
}, Oe = () => {
|
|
23110
|
-
const { buttons: Be } = e, { connectTable: ee } = E, De = ee, $e = n.buttons, ce = n.buttonPrefix || n["button-prefix"],
|
|
23110
|
+
const { buttons: Be } = e, { connectTable: ee } = E, De = ee, $e = n.buttons, ce = n.buttonPrefix || n["button-prefix"], de = n.buttonSuffix || n["button-suffix"], ge = [];
|
|
23111
23111
|
return Be && Be.forEach((U, Re) => {
|
|
23112
23112
|
const { dropdowns: Te, buttonRender: he } = U;
|
|
23113
23113
|
if (U.visible !== !1) {
|
|
23114
23114
|
const _e = he ? Qg.get(he.name) : null;
|
|
23115
23115
|
if (he && _e && _e.renderToolbarButton) {
|
|
23116
23116
|
const Fe = _e.toolbarButtonClassName, Ge = { $grid: i, $gantt: d, $table: De, button: U };
|
|
23117
|
-
|
|
23117
|
+
ge.push(O("span", {
|
|
23118
23118
|
key: `br${U.code || Re}`,
|
|
23119
23119
|
class: ["vxe-button--item", Fe ? f.isFunction(Fe) ? Fe(Ge) : Fe : ""]
|
|
23120
23120
|
}, Hn(_e.renderToolbarButton(he, Ge))));
|
|
23121
23121
|
} else
|
|
23122
|
-
s &&
|
|
23122
|
+
s && ge.push(O(s, Object.assign(Object.assign({ key: `bd${U.code || Re}` }, Object.assign({}, U, {
|
|
23123
23123
|
content: U.content || U.name,
|
|
23124
23124
|
options: void 0
|
|
23125
23125
|
})), { onClick: (Fe) => Z(Fe, U) }), Te && Te.length ? {
|
|
@@ -23132,25 +23132,25 @@ const Ds = bl({
|
|
|
23132
23132
|
}, ce ? Hn(ce({ buttons: Be || [], $grid: i, $gantt: d, $table: De })) : []),
|
|
23133
23133
|
O("div", {
|
|
23134
23134
|
class: "vxe-button--item-wrapper"
|
|
23135
|
-
}, $e ? Hn($e({ buttons: Be || [], $grid: i, $gantt: d, $table: De })) :
|
|
23135
|
+
}, $e ? Hn($e({ buttons: Be || [], $grid: i, $gantt: d, $table: De })) : ge),
|
|
23136
23136
|
O("div", {
|
|
23137
23137
|
class: "vxe-button--suffix-wrapper"
|
|
23138
|
-
},
|
|
23138
|
+
}, de ? Hn(de({ buttons: Be || [], $grid: i, $gantt: d, $table: De })) : [])
|
|
23139
23139
|
];
|
|
23140
23140
|
}, ye = () => {
|
|
23141
|
-
const { tools: Be } = e, { connectTable: ee } = E, De = ee, $e = n.tools, ce = n.toolPrefix || n["tool-prefix"],
|
|
23141
|
+
const { tools: Be } = e, { connectTable: ee } = E, De = ee, $e = n.tools, ce = n.toolPrefix || n["tool-prefix"], de = n.toolSuffix || n["tool-suffix"], ge = [];
|
|
23142
23142
|
return Be && Be.forEach((U, Re) => {
|
|
23143
23143
|
const { dropdowns: Te, toolRender: he } = U;
|
|
23144
23144
|
if (U.visible !== !1) {
|
|
23145
23145
|
const _e = he ? he.name : null, Fe = he ? Qg.get(_e) : null;
|
|
23146
23146
|
if (he && Fe && Fe.renderToolbarTool) {
|
|
23147
23147
|
const Ge = Fe.toolbarToolClassName, mt = { $grid: i, $gantt: d, $table: De, tool: U };
|
|
23148
|
-
|
|
23148
|
+
ge.push(O("span", {
|
|
23149
23149
|
key: _e,
|
|
23150
23150
|
class: ["vxe-tool--item", Ge ? f.isFunction(Ge) ? Ge(mt) : Ge : ""]
|
|
23151
23151
|
}, Hn(Fe.renderToolbarTool(he, mt))));
|
|
23152
23152
|
} else
|
|
23153
|
-
s &&
|
|
23153
|
+
s && ge.push(O(s, Object.assign(Object.assign({ key: Re }, Object.assign({}, U, {
|
|
23154
23154
|
content: U.content || U.name,
|
|
23155
23155
|
options: void 0
|
|
23156
23156
|
})), { onClick: (Ge) => ie(Ge, U) }), Te && Te.length ? {
|
|
@@ -23163,10 +23163,10 @@ const Ds = bl({
|
|
|
23163
23163
|
}, ce ? Hn(ce({ tools: Be || [], $grid: i, $gantt: d, $table: De })) : []),
|
|
23164
23164
|
O("div", {
|
|
23165
23165
|
class: "vxe-tool--item-wrapper"
|
|
23166
|
-
}, $e ? Hn($e({ tools: Be || [], $grid: i, $gantt: d, $table: De })) :
|
|
23166
|
+
}, $e ? Hn($e({ tools: Be || [], $grid: i, $gantt: d, $table: De })) : ge),
|
|
23167
23167
|
O("div", {
|
|
23168
23168
|
class: "vxe-tool--suffix-wrapper"
|
|
23169
|
-
},
|
|
23169
|
+
}, de ? Hn(de({ tools: Be || [], $grid: i, $gantt: d, $table: De })) : [])
|
|
23170
23170
|
];
|
|
23171
23171
|
}, ae = () => {
|
|
23172
23172
|
const Be = R.value;
|
|
@@ -23176,7 +23176,7 @@ const Ds = bl({
|
|
|
23176
23176
|
icon: Be.icon || Gr().TOOLBAR_TOOLS_IMPORT,
|
|
23177
23177
|
title: ra("vxe.toolbar.import"),
|
|
23178
23178
|
onClick: se
|
|
23179
|
-
}) :
|
|
23179
|
+
}) : gt();
|
|
23180
23180
|
}, Ve = () => {
|
|
23181
23181
|
const Be = x.value;
|
|
23182
23182
|
return s ? O(s, {
|
|
@@ -23184,8 +23184,8 @@ const Ds = bl({
|
|
|
23184
23184
|
circle: !0,
|
|
23185
23185
|
icon: Be.icon || Gr().TOOLBAR_TOOLS_EXPORT,
|
|
23186
23186
|
title: ra("vxe.toolbar.export"),
|
|
23187
|
-
onClick:
|
|
23188
|
-
}) :
|
|
23187
|
+
onClick: ue
|
|
23188
|
+
}) : gt();
|
|
23189
23189
|
}, lt = () => {
|
|
23190
23190
|
const Be = T.value;
|
|
23191
23191
|
return s ? O(s, {
|
|
@@ -23194,7 +23194,7 @@ const Ds = bl({
|
|
|
23194
23194
|
icon: Be.icon || Gr().TOOLBAR_TOOLS_PRINT,
|
|
23195
23195
|
title: ra("vxe.toolbar.print"),
|
|
23196
23196
|
onClick: He
|
|
23197
|
-
}) :
|
|
23197
|
+
}) : gt();
|
|
23198
23198
|
}, Ye = () => {
|
|
23199
23199
|
const Be = u.value;
|
|
23200
23200
|
return s ? O(s, {
|
|
@@ -23203,7 +23203,7 @@ const Ds = bl({
|
|
|
23203
23203
|
icon: C.isRefresh ? Be.iconLoading || Gr().TOOLBAR_TOOLS_REFRESH_LOADING : Be.icon || Gr().TOOLBAR_TOOLS_REFRESH,
|
|
23204
23204
|
title: ra("vxe.toolbar.refresh"),
|
|
23205
23205
|
onClick: V
|
|
23206
|
-
}) :
|
|
23206
|
+
}) : gt();
|
|
23207
23207
|
}, et = () => {
|
|
23208
23208
|
const Be = G.value;
|
|
23209
23209
|
return p && s ? O(s, {
|
|
@@ -23212,16 +23212,16 @@ const Ds = bl({
|
|
|
23212
23212
|
icon: p.isMaximized() ? Be.iconOut || Gr().TOOLBAR_TOOLS_MINIMIZE : Be.iconIn || Gr().TOOLBAR_TOOLS_FULLSCREEN,
|
|
23213
23213
|
title: ra(`vxe.toolbar.zoom${p.isMaximized() ? "Out" : "In"}`),
|
|
23214
23214
|
onClick: Y
|
|
23215
|
-
}) :
|
|
23215
|
+
}) : gt();
|
|
23216
23216
|
}, qe = () => {
|
|
23217
23217
|
const Be = A.value, ee = M.value, De = {};
|
|
23218
|
-
return ee === "manual" || (ee === "hover" ? (De.onMouseenter = W, De.onMouseleave = ne) : De.onClick = B), s ? O(s, Object.assign({ key: "custom", circle: !0, icon: Be.icon || Gr().TOOLBAR_TOOLS_CUSTOM, title: ra("vxe.toolbar.custom"), className: "vxe-toolbar-custom-target" }, De)) :
|
|
23218
|
+
return ee === "manual" || (ee === "hover" ? (De.onMouseenter = W, De.onMouseleave = ne) : De.onClick = B), s ? O(s, Object.assign({ key: "custom", circle: !0, icon: Be.icon || Gr().TOOLBAR_TOOLS_CUSTOM, title: ra("vxe.toolbar.custom"), className: "vxe-toolbar-custom-target" }, De)) : gt();
|
|
23219
23219
|
}, Xe = () => {
|
|
23220
|
-
const { perfect: Be, loading: ee, refresh: De, zoom: $e, custom: ce, className:
|
|
23220
|
+
const { perfect: Be, loading: ee, refresh: De, zoom: $e, custom: ce, className: de } = e, ge = y.value;
|
|
23221
23221
|
return O("div", {
|
|
23222
23222
|
ref: k,
|
|
23223
|
-
class: ["vxe-toolbar",
|
|
23224
|
-
[`size--${
|
|
23223
|
+
class: ["vxe-toolbar", de ? f.isFunction(de) ? de({ $toolbar: _ }) : de : "", {
|
|
23224
|
+
[`size--${ge}`]: ge,
|
|
23225
23225
|
"is--perfect": Be,
|
|
23226
23226
|
"is--loading": ee
|
|
23227
23227
|
}]
|
|
@@ -23235,12 +23235,12 @@ const Ds = bl({
|
|
|
23235
23235
|
O("div", {
|
|
23236
23236
|
class: "vxe-tools--operate"
|
|
23237
23237
|
}, [
|
|
23238
|
-
e.import ? ae() :
|
|
23239
|
-
e.export ? Ve() :
|
|
23240
|
-
e.print ? lt() :
|
|
23241
|
-
De ? Ye() :
|
|
23242
|
-
$e && p ? et() :
|
|
23243
|
-
ce ? qe() :
|
|
23238
|
+
e.import ? ae() : gt(),
|
|
23239
|
+
e.export ? Ve() : gt(),
|
|
23240
|
+
e.print ? lt() : gt(),
|
|
23241
|
+
De ? Ye() : gt(),
|
|
23242
|
+
$e && p ? et() : gt(),
|
|
23243
|
+
ce ? qe() : gt()
|
|
23244
23244
|
])
|
|
23245
23245
|
]);
|
|
23246
23246
|
};
|
|
@@ -23306,16 +23306,16 @@ const xa = bl({
|
|
|
23306
23306
|
}), ne = Me(() => {
|
|
23307
23307
|
const Q = B.value;
|
|
23308
23308
|
return f.isBoolean(Q.showActionMsg) ? Q.showActionMsg : !!Q.showActiveMsg;
|
|
23309
|
-
}), V = Me(() => Object.assign({}, xs().grid.pagerConfig, e.pagerConfig)), Y = Me(() => Object.assign({}, xs().grid.formConfig, e.formConfig)), q = Me(() => Object.assign({}, xs().grid.toolbarConfig, e.toolbarConfig)), se = Me(() => Object.assign({}, xs().grid.zoomConfig, e.zoomConfig)),
|
|
23309
|
+
}), V = Me(() => Object.assign({}, xs().grid.pagerConfig, e.pagerConfig)), Y = Me(() => Object.assign({}, xs().grid.formConfig, e.formConfig)), q = Me(() => Object.assign({}, xs().grid.toolbarConfig, e.toolbarConfig)), se = Me(() => Object.assign({}, xs().grid.zoomConfig, e.zoomConfig)), fe = Me(() => {
|
|
23310
23310
|
const { height: Q, maxHeight: xe } = e, { isZMax: ze, tZindex: je } = C, Ze = {};
|
|
23311
23311
|
return ze ? Ze.zIndex = je : (Q && (Ze.height = Q === "auto" || Q === "100%" ? "100%" : Kr(Q)), xe && (Ze.maxHeight = xe === "auto" || xe === "100%" ? "100%" : Kr(xe))), Ze;
|
|
23312
|
-
}),
|
|
23312
|
+
}), ue = Me(() => {
|
|
23313
23313
|
const Q = {};
|
|
23314
23314
|
return $0.forEach((xe) => {
|
|
23315
23315
|
e[xe] !== void 0 && (Q[xe] = e[xe]);
|
|
23316
23316
|
}), Q;
|
|
23317
23317
|
}), me = Me(() => {
|
|
23318
|
-
const { showFooter: Q, seqConfig: xe, pagerConfig: ze, editConfig: je, proxyConfig: Ze } = e, { isZMax: wt, tablePage: Ft, footerData: Gt } = C, ut =
|
|
23318
|
+
const { showFooter: Q, seqConfig: xe, pagerConfig: ze, editConfig: je, proxyConfig: Ze } = e, { isZMax: wt, tablePage: Ft, footerData: Gt } = C, ut = ue.value, dt = B.value, _t = V.value, Kt = Se.value, pn = Object.assign({}, ut);
|
|
23319
23319
|
return (Q && !pn.footerData || dt.footer && Gt.length) && (pn.footerData = Gt), wt && (pn.maxHeight ? pn.maxHeight = "100%" : pn.height = "100%"), Ze && pt(dt) && (pn.loading = Kt, ze && dt.seq && pt(_t) && (pn.seqConfig = Object.assign({}, xe, { startIndex: (Ft.currentPage - 1) * Ft.pageSize }))), je && (pn.editConfig = Object.assign({}, je)), pn;
|
|
23320
23320
|
}), He = Me(() => {
|
|
23321
23321
|
const { layouts: Q } = e;
|
|
@@ -23418,9 +23418,9 @@ const xa = bl({
|
|
|
23418
23418
|
je.value.remote && (C.filterData = Q.filterList, ze && pt(Ze) && (C.tablePage.currentPage = 1, E.uFoot = !0, ae.commitProxy("query").then((Ft) => {
|
|
23419
23419
|
ae.dispatchEvent("proxy-query", Ft, Q.$event);
|
|
23420
23420
|
}), E.uFoot = !1, Ct()));
|
|
23421
|
-
}, ue = (Q) => {
|
|
23422
|
-
ce(Q), ae.dispatchEvent("filter-change", Q, Q.$event);
|
|
23423
23421
|
}, de = (Q) => {
|
|
23422
|
+
ce(Q), ae.dispatchEvent("filter-change", Q, Q.$event);
|
|
23423
|
+
}, ge = (Q) => {
|
|
23424
23424
|
ce(Q), ae.dispatchEvent("clear-all-filter", Q, Q.$event);
|
|
23425
23425
|
}, U = (Q) => {
|
|
23426
23426
|
const { proxyConfig: xe } = e, ze = B.value;
|
|
@@ -23525,7 +23525,7 @@ const xa = bl({
|
|
|
23525
23525
|
}, Q({ $grid: ae, $gantt: null })) : tr(ae);
|
|
23526
23526
|
}, at = () => {
|
|
23527
23527
|
const { proxyConfig: Q } = e, xe = me.value, ze = B.value, je = Object.assign({}, zt), Ze = o.empty, wt = o.loading, Ft = o.rowDragIcon || o["row-drag-icon"], Gt = o.columnDragIcon || o["column-drag-icon"], ut = o.headerTooltip || o["header-tooltip"], dt = o.tooltip, _t = o.footerTooltip || o["footer-tooltip"];
|
|
23528
|
-
Q && pt(ze) && (ze.sort && (je.onSortChange = De, je.onClearAllSort = $e), ze.filter && (je.onFilterChange =
|
|
23528
|
+
Q && pt(ze) && (ze.sort && (je.onSortChange = De, je.onClearAllSort = $e), ze.filter && (je.onFilterChange = de, je.onClearAllFilter = ge));
|
|
23529
23529
|
const Kt = {};
|
|
23530
23530
|
return Ze && (Kt.empty = Ze), wt && (Kt.loading = wt), Ft && (Kt.rowDragIcon = Ft), Gt && (Kt.columnDragIcon = Gt), ut && (Kt.headerTooltip = ut), dt && (Kt.tooltip = dt), _t && (Kt.footerTooltip = _t), O("div", {
|
|
23531
23531
|
class: "vxe-grid--table-wrapper"
|
|
@@ -24018,7 +24018,7 @@ const xa = bl({
|
|
|
24018
24018
|
}
|
|
24019
24019
|
});
|
|
24020
24020
|
const tn = () => {
|
|
24021
|
-
const Q = y.value, xe =
|
|
24021
|
+
const Q = y.value, xe = fe.value, ze = Se.value;
|
|
24022
24022
|
return O("div", {
|
|
24023
24023
|
ref: k,
|
|
24024
24024
|
class: ["vxe-grid", {
|
|
@@ -24031,21 +24031,21 @@ const xa = bl({
|
|
|
24031
24031
|
style: xe
|
|
24032
24032
|
}, it());
|
|
24033
24033
|
}, vt = ve(0);
|
|
24034
|
-
return
|
|
24034
|
+
return ht(() => e.columns ? e.columns.length : -1, () => {
|
|
24035
24035
|
vt.value++;
|
|
24036
|
-
}),
|
|
24036
|
+
}), ht(() => e.columns, () => {
|
|
24037
24037
|
vt.value++;
|
|
24038
|
-
}),
|
|
24038
|
+
}), ht(vt, () => {
|
|
24039
24039
|
pe(() => ae.loadColumn(e.columns || []));
|
|
24040
|
-
}),
|
|
24040
|
+
}), ht(() => e.toolbarConfig, () => {
|
|
24041
24041
|
Ve();
|
|
24042
|
-
}),
|
|
24042
|
+
}), ht(J, () => {
|
|
24043
24043
|
Ye("currentPage");
|
|
24044
|
-
}),
|
|
24044
|
+
}), ht(Z, () => {
|
|
24045
24045
|
Ye("pageSize");
|
|
24046
|
-
}),
|
|
24046
|
+
}), ht(ie, () => {
|
|
24047
24047
|
Ye("total");
|
|
24048
|
-
}),
|
|
24048
|
+
}), ht(() => e.proxyConfig, () => {
|
|
24049
24049
|
nn();
|
|
24050
24050
|
}), k0.forEach((Q) => {
|
|
24051
24051
|
const { setupGrid: xe } = Q;
|
|
@@ -25021,28 +25021,28 @@ const B0 = {
|
|
|
25021
25021
|
if (q.target.classList.value === "vxe-table--body-inner-wrapper")
|
|
25022
25022
|
k();
|
|
25023
25023
|
else {
|
|
25024
|
-
let
|
|
25025
|
-
I(
|
|
25024
|
+
let ue = se.getRowNode(q.target.closest("tr")).item;
|
|
25025
|
+
I(ue), o("current-change", ue);
|
|
25026
25026
|
}
|
|
25027
25027
|
o("context-menu", q);
|
|
25028
25028
|
}, u = (q, se) => {
|
|
25029
|
-
const
|
|
25030
|
-
|
|
25029
|
+
const fe = r.value;
|
|
25030
|
+
fe && fe.setColumnWidth(q, se);
|
|
25031
25031
|
}, R = (q) => {
|
|
25032
25032
|
const se = r.value;
|
|
25033
25033
|
se && (se.refreshColumn(), console.log(y.value));
|
|
25034
25034
|
}, x = ({ resizeColumn: q }) => {
|
|
25035
25035
|
console.log(q);
|
|
25036
25036
|
};
|
|
25037
|
-
|
|
25037
|
+
ht(() => s.data, (q) => {
|
|
25038
25038
|
pe(() => {
|
|
25039
25039
|
q && q.length > 0 && (T(q), G());
|
|
25040
25040
|
});
|
|
25041
25041
|
}, { deep: !0, immediate: !0 });
|
|
25042
25042
|
const T = (q) => {
|
|
25043
25043
|
let se = [];
|
|
25044
|
-
s.columns.forEach((
|
|
25045
|
-
|
|
25044
|
+
s.columns.forEach((fe) => {
|
|
25045
|
+
fe.hidden || se.push(fe);
|
|
25046
25046
|
}), C.value && (W(q, se), C.value = !1);
|
|
25047
25047
|
}, G = () => {
|
|
25048
25048
|
const q = r.value;
|
|
@@ -25053,8 +25053,8 @@ const B0 = {
|
|
|
25053
25053
|
}, 1);
|
|
25054
25054
|
}
|
|
25055
25055
|
}, A = (q, se) => {
|
|
25056
|
-
let
|
|
25057
|
-
return
|
|
25056
|
+
let fe = se.render(q, se.icon);
|
|
25057
|
+
return fe === null || fe === "" ? !1 : (fe = fe.toString(), fe.replace(/<[^>]*>/g, ""));
|
|
25058
25058
|
}, P = () => {
|
|
25059
25059
|
const q = r.value;
|
|
25060
25060
|
if (q) {
|
|
@@ -25068,17 +25068,17 @@ const B0 = {
|
|
|
25068
25068
|
}, B = ({ row: q }) => {
|
|
25069
25069
|
o("dblclick", q);
|
|
25070
25070
|
}, W = (q, se) => {
|
|
25071
|
-
se.forEach(async (
|
|
25072
|
-
let
|
|
25073
|
-
let ie = Z[
|
|
25074
|
-
if (
|
|
25071
|
+
se.forEach(async (fe) => {
|
|
25072
|
+
let ue = fe.dataKey, me = q.map((Z) => {
|
|
25073
|
+
let ie = Z[ue];
|
|
25074
|
+
if (ue === "note") {
|
|
25075
25075
|
let Se = (Z.note || "").split("|");
|
|
25076
25076
|
ie = Se[Se.length - 1].replaceAll(",", " | "), ie = decodeURIComponent(ie);
|
|
25077
25077
|
}
|
|
25078
|
-
return
|
|
25078
|
+
return fe.render && (ie = fe.render({ row: Z }, fe.icon)), ie;
|
|
25079
25079
|
});
|
|
25080
|
-
me.push(
|
|
25081
|
-
let He = [
|
|
25080
|
+
me.push(fe.title);
|
|
25081
|
+
let He = [fe.minWidth || 0];
|
|
25082
25082
|
me.forEach((Z) => {
|
|
25083
25083
|
let ie = ne(Z, {
|
|
25084
25084
|
font: "14px Source Han Sans SC",
|
|
@@ -25087,11 +25087,11 @@ const B0 = {
|
|
|
25087
25087
|
He.push(ie + 4);
|
|
25088
25088
|
});
|
|
25089
25089
|
let J = Math.max(...He);
|
|
25090
|
-
y.value[
|
|
25090
|
+
y.value[ue] = J;
|
|
25091
25091
|
});
|
|
25092
25092
|
};
|
|
25093
25093
|
function ne(q, se = {}) {
|
|
25094
|
-
const
|
|
25094
|
+
const fe = document.createElement("div"), ue = {
|
|
25095
25095
|
position: "absolute",
|
|
25096
25096
|
// 脱离文档流
|
|
25097
25097
|
visibility: "hidden",
|
|
@@ -25109,9 +25109,9 @@ const B0 = {
|
|
|
25109
25109
|
boxSizing: "content-box"
|
|
25110
25110
|
// 宽度不含padding/border(可根据目标调整)
|
|
25111
25111
|
};
|
|
25112
|
-
Object.assign(
|
|
25113
|
-
const { width: me } =
|
|
25114
|
-
return document.body.removeChild(
|
|
25112
|
+
Object.assign(fe.style, ue, se), fe.innerHTML = q, document.body.appendChild(fe);
|
|
25113
|
+
const { width: me } = fe.getBoundingClientRect();
|
|
25114
|
+
return document.body.removeChild(fe), me;
|
|
25115
25115
|
}
|
|
25116
25116
|
const V = () => {
|
|
25117
25117
|
let q = document.querySelector(".vxe-table--body-inner-wrapper");
|
|
@@ -25133,12 +25133,12 @@ const B0 = {
|
|
|
25133
25133
|
changeNameWidth: u,
|
|
25134
25134
|
selectRowEvent: I
|
|
25135
25135
|
}), (q, se) => {
|
|
25136
|
-
const
|
|
25136
|
+
const fe = Oc("yhzTableToolbar");
|
|
25137
25137
|
return ke(), Pe("div", B0, [
|
|
25138
|
-
Sl(
|
|
25138
|
+
Sl(fe, {
|
|
25139
25139
|
columns: e.columns,
|
|
25140
25140
|
modelValue: i.value,
|
|
25141
|
-
"onUpdate:modelValue": se[0] || (se[0] = (
|
|
25141
|
+
"onUpdate:modelValue": se[0] || (se[0] = (ue) => i.value = ue),
|
|
25142
25142
|
multiple: !0,
|
|
25143
25143
|
onChange: R,
|
|
25144
25144
|
align: "right"
|
|
@@ -25180,33 +25180,33 @@ const B0 = {
|
|
|
25180
25180
|
type: "checkbox",
|
|
25181
25181
|
width: "60",
|
|
25182
25182
|
fixed: "left"
|
|
25183
|
-
})) :
|
|
25184
|
-
(ke(!0), Pe(Cn, null, An(e.columns, (
|
|
25185
|
-
key:
|
|
25183
|
+
})) : gt("", !0),
|
|
25184
|
+
(ke(!0), Pe(Cn, null, An(e.columns, (ue) => (ke(), Pe(Cn, {
|
|
25185
|
+
key: ue.key
|
|
25186
25186
|
}, [
|
|
25187
|
-
|
|
25187
|
+
ue.hidden ? gt("", !0) : (ke(), ho(_i(Du), {
|
|
25188
25188
|
key: 0,
|
|
25189
|
-
field:
|
|
25190
|
-
title:
|
|
25191
|
-
sortable:
|
|
25192
|
-
width: y.value[
|
|
25193
|
-
resizable:
|
|
25194
|
-
"header-class-name":
|
|
25189
|
+
field: ue.dataKey,
|
|
25190
|
+
title: ue.title,
|
|
25191
|
+
sortable: ue.sortable,
|
|
25192
|
+
width: y.value[ue.dataKey],
|
|
25193
|
+
resizable: ue.resizable,
|
|
25194
|
+
"header-class-name": ue.headerClass,
|
|
25195
25195
|
"min-width": 68,
|
|
25196
|
-
fixed:
|
|
25197
|
-
formatter:
|
|
25198
|
-
visible:
|
|
25196
|
+
fixed: ue.fixed,
|
|
25197
|
+
formatter: ue.formatter,
|
|
25198
|
+
visible: ue.visible
|
|
25199
25199
|
}, {
|
|
25200
25200
|
default: gl((me) => [
|
|
25201
|
-
|
|
25201
|
+
ue.render ? (ke(), Pe("span", {
|
|
25202
25202
|
key: 0,
|
|
25203
|
-
innerHTML:
|
|
25203
|
+
innerHTML: ue.render(me, ue.icon),
|
|
25204
25204
|
style: { display: "flex", "align-items": "center" },
|
|
25205
|
-
title: A(me,
|
|
25206
|
-
}, null, 8, z0)) :
|
|
25205
|
+
title: A(me, ue)
|
|
25206
|
+
}, null, 8, z0)) : ue.slots ? jn(q.$slots, ue.slots, {
|
|
25207
25207
|
key: 1,
|
|
25208
25208
|
scope: me
|
|
25209
|
-
}) : (ke(), Pe("span", N0, At(me.row[
|
|
25209
|
+
}) : (ke(), Pe("span", N0, At(me.row[ue.dataKey]), 1))
|
|
25210
25210
|
]),
|
|
25211
25211
|
_: 2
|
|
25212
25212
|
}, 1032, ["field", "title", "sortable", "width", "resizable", "header-class-name", "fixed", "formatter", "visible"]))
|
|
@@ -25223,11 +25223,11 @@ const B0 = {
|
|
|
25223
25223
|
style: { "min-height": "32px", position: "relative", "margin-top": "8px" },
|
|
25224
25224
|
onClick: Ut(k, ["stop"])
|
|
25225
25225
|
}, [
|
|
25226
|
-
e.isDetail ? (ke(), Pe("div", V0, " 共有 " + At(e.data.length) + " 条数据 ", 1)) :
|
|
25226
|
+
e.isDetail ? (ke(), Pe("div", V0, " 共有 " + At(e.data.length) + " 条数据 ", 1)) : gt("", !0),
|
|
25227
25227
|
Ee("div", W0, [
|
|
25228
25228
|
jn(q.$slots, "footer")
|
|
25229
25229
|
])
|
|
25230
|
-
])) :
|
|
25230
|
+
])) : gt("", !0)
|
|
25231
25231
|
], 512);
|
|
25232
25232
|
};
|
|
25233
25233
|
}
|
|
@@ -25302,7 +25302,7 @@ const B0 = {
|
|
|
25302
25302
|
const M = t.columns[P], F = M.width || 120, B = M.key, W = n.value.findIndex((ne) => ne.key === B);
|
|
25303
25303
|
W !== -1 ? n.value[W].width = F : n.value.push({ key: B, width: F });
|
|
25304
25304
|
};
|
|
25305
|
-
return
|
|
25305
|
+
return ht(
|
|
25306
25306
|
() => t.columns,
|
|
25307
25307
|
(P) => {
|
|
25308
25308
|
const M = new Set(P.map((F) => F.key));
|
|
@@ -25311,7 +25311,7 @@ const B0 = {
|
|
|
25311
25311
|
});
|
|
25312
25312
|
},
|
|
25313
25313
|
{ deep: !0, immediate: !0 }
|
|
25314
|
-
),
|
|
25314
|
+
), ht(
|
|
25315
25315
|
[() => t.data.length, () => t.containerHeight, () => t.rowHeight],
|
|
25316
25316
|
() => {
|
|
25317
25317
|
C();
|
|
@@ -25464,7 +25464,7 @@ const B0 = {
|
|
|
25464
25464
|
}, y = (C) => {
|
|
25465
25465
|
o("tab-remove", C), d(C.name);
|
|
25466
25466
|
};
|
|
25467
|
-
return
|
|
25467
|
+
return ht(() => n.activeName, async (C) => {
|
|
25468
25468
|
if (C !== null && C !== s.value) {
|
|
25469
25469
|
const E = r.value.find((k) => k.name === C);
|
|
25470
25470
|
E && !E.disabled && await new Promise((I) => {
|
|
@@ -25494,7 +25494,7 @@ const B0 = {
|
|
|
25494
25494
|
key: 0,
|
|
25495
25495
|
class: "tab-close",
|
|
25496
25496
|
onClick: Ut((I) => y(k), ["stop"])
|
|
25497
|
-
}, "×", 8, cM)) :
|
|
25497
|
+
}, "×", 8, cM)) : gt("", !0)
|
|
25498
25498
|
], 10, iM))), 128))
|
|
25499
25499
|
]),
|
|
25500
25500
|
Ee("div", uM, [
|
|
@@ -25559,13 +25559,13 @@ const B0 = {
|
|
|
25559
25559
|
r(n.value - 1);
|
|
25560
25560
|
}
|
|
25561
25561
|
const k = ve(0), I = ve(0);
|
|
25562
|
-
return
|
|
25562
|
+
return ht(t, (_) => {
|
|
25563
25563
|
k.value = _;
|
|
25564
|
-
}),
|
|
25564
|
+
}), ht(n, (_) => {
|
|
25565
25565
|
I.value = _;
|
|
25566
|
-
}),
|
|
25566
|
+
}), ht(k, (_) => {
|
|
25567
25567
|
i(_);
|
|
25568
|
-
}),
|
|
25568
|
+
}), ht(I, (_) => {
|
|
25569
25569
|
d(_);
|
|
25570
25570
|
}), s(t.value), r(n.value), (_, m) => (ke(), Pe("div", {
|
|
25571
25571
|
class: Vt(["yhz-time", [`yhz-time--${e.size}`]])
|
|
@@ -25723,8 +25723,8 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25723
25723
|
"resizeEnd"
|
|
25724
25724
|
],
|
|
25725
25725
|
setup(e, { expose: t, emit: n }) {
|
|
25726
|
-
const o = n, r = e, s = ve(null), i = ve(null), d = ve(!1), p = sh * 60, y = p, C = ve(60), E = ve(0), k = ve(null), I = ve(null), _ = ve([{ id: "col0", title: "时间", color: "#4287f5", blocks: [] }]), m = ve({}), u = (ce,
|
|
25727
|
-
|
|
25726
|
+
const o = n, r = e, s = ve(null), i = ve(null), d = ve(!1), p = sh * 60, y = p, C = ve(60), E = ve(0), k = ve(null), I = ve(null), _ = ve([{ id: "col0", title: "时间", color: "#4287f5", blocks: [] }]), m = ve({}), u = (ce, de) => {
|
|
25727
|
+
de && (m.value[ce] = de);
|
|
25728
25728
|
}, R = {
|
|
25729
25729
|
ADD: "add",
|
|
25730
25730
|
DRAG: "drag",
|
|
@@ -25748,44 +25748,44 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25748
25748
|
dragDirection: null
|
|
25749
25749
|
});
|
|
25750
25750
|
let T = null, G = null;
|
|
25751
|
-
const A = (ce,
|
|
25751
|
+
const A = (ce, de = !1) => {
|
|
25752
25752
|
if (ce <= 0) return 0;
|
|
25753
25753
|
if (ce >= p) return p;
|
|
25754
|
-
const
|
|
25755
|
-
return U === 0 ?
|
|
25754
|
+
const ge = Math.floor(ce), U = ge % 30;
|
|
25755
|
+
return U === 0 ? ge : U <= 15 ? ge - U : ge + (30 - U);
|
|
25756
25756
|
}, P = (ce) => {
|
|
25757
|
-
const
|
|
25758
|
-
return `${
|
|
25759
|
-
}, M = (ce) => ce / p * 100, F = (ce,
|
|
25760
|
-
const U = m.value[
|
|
25757
|
+
const de = Math.floor(ce / 60), ge = ce % 60;
|
|
25758
|
+
return `${de.toString().padStart(2, "0")}:${ge.toString().padStart(2, "0")}`;
|
|
25759
|
+
}, M = (ce) => ce / p * 100, F = (ce, de) => (de - ce) / p * 100, B = (ce, de, ge = !0) => {
|
|
25760
|
+
const U = m.value[de];
|
|
25761
25761
|
if (!U) return 0;
|
|
25762
25762
|
const Re = U.getBoundingClientRect();
|
|
25763
25763
|
let Te = ce - Re.top;
|
|
25764
25764
|
if (Te <= 0) return 0;
|
|
25765
25765
|
if (Te >= Re.height) return p;
|
|
25766
25766
|
let he = Te / Re.height * p;
|
|
25767
|
-
return
|
|
25768
|
-
}, W = (ce,
|
|
25769
|
-
const U =
|
|
25767
|
+
return ge && (he = A(he)), Math.min(Math.max(0, he), p);
|
|
25768
|
+
}, W = (ce, de, ge = null) => {
|
|
25769
|
+
const U = de.start, Re = de.end;
|
|
25770
25770
|
if (U >= Re) return !1;
|
|
25771
25771
|
for (let Te = 0; Te < ce.length; Te++) {
|
|
25772
25772
|
const he = ce[Te];
|
|
25773
|
-
if (!(
|
|
25773
|
+
if (!(ge && he.id === ge) && !(Re <= he.start || U >= he.end))
|
|
25774
25774
|
return !0;
|
|
25775
25775
|
}
|
|
25776
25776
|
return !1;
|
|
25777
|
-
}, ne = (ce,
|
|
25778
|
-
const
|
|
25779
|
-
return
|
|
25780
|
-
}, V = (ce,
|
|
25781
|
-
if (
|
|
25782
|
-
const U = [...
|
|
25783
|
-
let Re = ce, Te = ce +
|
|
25777
|
+
}, ne = (ce, de) => {
|
|
25778
|
+
const ge = r.columns.find((U) => U.id === ce);
|
|
25779
|
+
return ge ? ge.blocks.filter((U) => U.id !== de) : [];
|
|
25780
|
+
}, V = (ce, de, ge) => {
|
|
25781
|
+
if (ge.length === 0) return ce;
|
|
25782
|
+
const U = [...ge].sort((he, _e) => he.start - _e.start);
|
|
25783
|
+
let Re = ce, Te = ce + de;
|
|
25784
25784
|
for (const he of U) {
|
|
25785
25785
|
const _e = he.start, Fe = he.end;
|
|
25786
25786
|
if (Te > _e && Re < Fe) {
|
|
25787
25787
|
const Ge = (Re + Te) / 2, mt = (_e + Fe) / 2;
|
|
25788
|
-
Ge < mt ? (Te = _e, Re = Te -
|
|
25788
|
+
Ge < mt ? (Te = _e, Re = Te - de) : (Re = Fe, Te = Re + de), Re < 0 && (Re = 0, Te = de), Te > p && (Te = p, Re = p - de);
|
|
25789
25789
|
let rt = !1;
|
|
25790
25790
|
for (const xt of U)
|
|
25791
25791
|
if (xt !== he && Te > xt.start && Re < xt.end) {
|
|
@@ -25797,20 +25797,20 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25797
25797
|
}
|
|
25798
25798
|
}
|
|
25799
25799
|
return Re;
|
|
25800
|
-
}, Y = (ce,
|
|
25801
|
-
if (
|
|
25802
|
-
const U = [...
|
|
25800
|
+
}, Y = (ce, de, ge) => {
|
|
25801
|
+
if (ge.length === 0) return ce;
|
|
25802
|
+
const U = [...ge].sort((Te, he) => Te.start - he.start);
|
|
25803
25803
|
let Re = ce;
|
|
25804
25804
|
for (const Te of U)
|
|
25805
|
-
if (Re < Te.end &&
|
|
25806
|
-
Re = Te.end,
|
|
25805
|
+
if (Re < Te.end && de > Te.start) {
|
|
25806
|
+
Re = Te.end, de - Re < lo && (Re = de - lo), Re < 0 && (Re = 0);
|
|
25807
25807
|
break;
|
|
25808
25808
|
}
|
|
25809
|
-
return Math.max(0, Math.min(Re,
|
|
25810
|
-
}, q = (ce,
|
|
25811
|
-
if (
|
|
25812
|
-
const U = [...
|
|
25813
|
-
let Re =
|
|
25809
|
+
return Math.max(0, Math.min(Re, de - lo));
|
|
25810
|
+
}, q = (ce, de, ge) => {
|
|
25811
|
+
if (ge.length === 0) return de;
|
|
25812
|
+
const U = [...ge].sort((Te, he) => Te.start - he.start);
|
|
25813
|
+
let Re = de;
|
|
25814
25814
|
for (const Te of U)
|
|
25815
25815
|
if (Re > Te.start && ce < Te.end) {
|
|
25816
25816
|
Re = Te.start, Re - ce < lo && (Re = ce + lo), Re > p && (Re = p);
|
|
@@ -25819,36 +25819,38 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25819
25819
|
return Math.max(ce + lo, Math.min(p, Re));
|
|
25820
25820
|
}, se = () => {
|
|
25821
25821
|
x.visible = !1, x.hasExceededThreshold = !1, x.isResize = !1, x.dragDirection = null, x.mouseStartY = null, x.offset = 0, x.blockId = null, x.operationType = null, x.columnId = null, x.start = 0, x.end = 0, x.originalStart = 0, x.originalEnd = 0, x.fixedTime = 0, x.thresholdStart = 0, i.value = null, d.value = !1, T && (cancelAnimationFrame(T), T = null), G = null;
|
|
25822
|
-
},
|
|
25822
|
+
}, fe = (ce, de) => ({
|
|
25823
25823
|
top: M(ce.start) + "%",
|
|
25824
25824
|
height: F(ce.start, ce.end) + "%",
|
|
25825
25825
|
position: "absolute",
|
|
25826
25826
|
left: "0px",
|
|
25827
25827
|
right: "0px"
|
|
25828
|
-
}),
|
|
25828
|
+
}), ue = () => ({
|
|
25829
25829
|
top: M(x.start) + "%",
|
|
25830
25830
|
height: F(x.start, x.end) + "%",
|
|
25831
25831
|
position: "absolute",
|
|
25832
25832
|
left: "0px",
|
|
25833
25833
|
right: "0px"
|
|
25834
|
-
}), me = (ce,
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25834
|
+
}), me = (ce, de, ge, U = null) => {
|
|
25835
|
+
setTimeout(() => {
|
|
25836
|
+
s.value = de.id, ge === "add" ? (o("addBlock", ce, de), o("blockClick", ce, de)) : ge === "update" && (o("updateBlock", ce, de, U), o("blockClick", ce, de));
|
|
25837
|
+
}, 1);
|
|
25838
|
+
}, He = (ce, de) => {
|
|
25839
|
+
let ge = null;
|
|
25840
|
+
if (x.blockId ? ge = ce.blocks.find((U) => U.id === x.blockId) : de === R.ADD && !r.previewEnabled && x.blockId && (ge = ce.blocks.find((U) => U.id === x.blockId)), ge) {
|
|
25841
|
+
s.value = ge.id, o("blockClick", ce, ge);
|
|
25840
25842
|
const U = x.start !== x.originalStart || x.end !== x.originalEnd;
|
|
25841
|
-
if (
|
|
25842
|
-
delete
|
|
25843
|
+
if (de === R.ADD && ge._temp)
|
|
25844
|
+
delete ge._temp, me(ce, ge, "add");
|
|
25843
25845
|
else if (U) {
|
|
25844
25846
|
const Re = {
|
|
25845
25847
|
start: x.originalStart,
|
|
25846
25848
|
end: x.originalEnd
|
|
25847
25849
|
};
|
|
25848
|
-
me(ce,
|
|
25850
|
+
me(ce, ge, "update", Re);
|
|
25849
25851
|
}
|
|
25850
|
-
|
|
25851
|
-
block:
|
|
25852
|
+
de === R.DRAG && d.value && o("dragEnd", {
|
|
25853
|
+
block: ge,
|
|
25852
25854
|
columnId: x.columnId,
|
|
25853
25855
|
oldStart: x.originalStart,
|
|
25854
25856
|
oldEnd: x.originalEnd,
|
|
@@ -25856,8 +25858,8 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25856
25858
|
newEnd: x.end,
|
|
25857
25859
|
isDragging: !0,
|
|
25858
25860
|
isAutoComplete: !0
|
|
25859
|
-
}), (
|
|
25860
|
-
block: { ...
|
|
25861
|
+
}), (de === R.RESIZE_TOP || de === R.RESIZE_BOTTOM) && (o("resize", ge), o("resizeEnd", {
|
|
25862
|
+
block: { ...ge },
|
|
25861
25863
|
columnId: x.columnId,
|
|
25862
25864
|
column: ce,
|
|
25863
25865
|
oldStart: x.originalStart,
|
|
@@ -25865,28 +25867,28 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25865
25867
|
newStart: x.start,
|
|
25866
25868
|
newEnd: x.end,
|
|
25867
25869
|
duration: x.end - x.start,
|
|
25868
|
-
handle:
|
|
25870
|
+
handle: de === R.RESIZE_TOP ? "top" : "bottom",
|
|
25869
25871
|
isAutoComplete: !0
|
|
25870
25872
|
}));
|
|
25871
25873
|
}
|
|
25872
25874
|
se(), ce && ce.blocks.sort((U, Re) => U.start - Re.start);
|
|
25873
|
-
}, J = (ce,
|
|
25874
|
-
o("colContextmenu", ce,
|
|
25875
|
-
}, Z = (ce,
|
|
25876
|
-
d.value || (o("blockClick",
|
|
25875
|
+
}, J = (ce, de) => {
|
|
25876
|
+
o("colContextmenu", ce, de), ce.target.classList.value === "blocks-container" && (s.value = null, o("blockClick", de, null));
|
|
25877
|
+
}, Z = (ce, de, ge) => {
|
|
25878
|
+
d.value || (o("blockClick", de, ge), s.value = ge.id);
|
|
25877
25879
|
}, ie = (ce) => {
|
|
25878
25880
|
o("columnClick", ce), x.hasExceededThreshold || (o("blockClick", ce, null), s.value = null);
|
|
25879
|
-
}, be = (ce,
|
|
25881
|
+
}, be = (ce, de) => {
|
|
25880
25882
|
if (x.visible || ce.button === 2) return;
|
|
25881
25883
|
ce.preventDefault(), i.value = null, d.value = !1;
|
|
25882
|
-
let
|
|
25883
|
-
if (
|
|
25884
|
+
let ge = B(ce.clientY, de, !0);
|
|
25885
|
+
if (ge = Math.min(ge, p - lo), ge = Math.max(0, ge), x.visible = !0, x.columnId = de, x.start = ge, x.end = ge, x.operationType = R.ADD, x.isResize = !1, x.hasExceededThreshold = !1, x.thresholdStart = ge, x.mouseStartY = ce.clientY, x.dragDirection = null, r.previewEnabled)
|
|
25884
25886
|
x.blockId = null;
|
|
25885
25887
|
else {
|
|
25886
|
-
const U = r.columns.find((Te) => Te.id ===
|
|
25888
|
+
const U = r.columns.find((Te) => Te.id === de), Re = {
|
|
25887
25889
|
id: lh(),
|
|
25888
|
-
start:
|
|
25889
|
-
end:
|
|
25890
|
+
start: ge,
|
|
25891
|
+
end: ge,
|
|
25890
25892
|
title: "新任务",
|
|
25891
25893
|
color: r.defaultColor || U.color,
|
|
25892
25894
|
eventOutput: r.defaultValue,
|
|
@@ -25896,81 +25898,81 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25896
25898
|
};
|
|
25897
25899
|
U.blocks.push(Re), x.blockId = Re.id;
|
|
25898
25900
|
}
|
|
25899
|
-
x.originalStart =
|
|
25900
|
-
}, Se = (ce,
|
|
25901
|
+
x.originalStart = ge, x.originalEnd = ge;
|
|
25902
|
+
}, Se = (ce, de, ge) => {
|
|
25901
25903
|
i.value = {
|
|
25902
25904
|
x: ce.clientX,
|
|
25903
25905
|
y: ce.clientY,
|
|
25904
25906
|
time: Date.now()
|
|
25905
25907
|
}, d.value = !1, o("dragStart", {
|
|
25906
|
-
block:
|
|
25907
|
-
columnId:
|
|
25908
|
-
start:
|
|
25909
|
-
end:
|
|
25908
|
+
block: ge,
|
|
25909
|
+
columnId: de,
|
|
25910
|
+
start: ge.start,
|
|
25911
|
+
end: ge.end
|
|
25910
25912
|
});
|
|
25911
|
-
let Re = B(ce.clientY,
|
|
25912
|
-
Re = Math.round(Re / 30) * 30, x.visible = !0, x.columnId =
|
|
25913
|
+
let Re = B(ce.clientY, de, !0) - ge.start;
|
|
25914
|
+
Re = Math.round(Re / 30) * 30, x.visible = !0, x.columnId = de, x.start = ge.start, x.end = ge.end, x.operationType = R.DRAG, x.blockId = ge.id, x.originalStart = ge.start, x.originalEnd = ge.end, x.offset = Re, x.isResize = !1, x.hasExceededThreshold = !0, x.mouseStartY = ce.clientY, x.dragDirection = null;
|
|
25913
25915
|
}, Oe = ve(null);
|
|
25914
25916
|
let ye = ve(0), ae = ve(p);
|
|
25915
|
-
const Ve = (ce,
|
|
25917
|
+
const Ve = (ce, de, ge) => {
|
|
25916
25918
|
if (ce.stopPropagation(), ce.preventDefault(), Oe.value = ce.target.id, x.visible) {
|
|
25917
25919
|
const Re = r.columns.find((Te) => Te.id === x.columnId);
|
|
25918
25920
|
Re && He(Re, x.operationType), pe(() => {
|
|
25919
|
-
Se(ce,
|
|
25921
|
+
Se(ce, de, ge);
|
|
25920
25922
|
});
|
|
25921
25923
|
return;
|
|
25922
25924
|
}
|
|
25923
|
-
const U = r.columns.find((Re) => Re.id ===
|
|
25925
|
+
const U = r.columns.find((Re) => Re.id === de);
|
|
25924
25926
|
if (U) {
|
|
25925
|
-
const Re = qe(U.blocks,
|
|
25927
|
+
const Re = qe(U.blocks, ge);
|
|
25926
25928
|
ye.value = Re.minBlock, ae.value = Re.maxBlock;
|
|
25927
25929
|
}
|
|
25928
|
-
Se(ce,
|
|
25929
|
-
}, lt = (ce,
|
|
25930
|
-
i.value = null, d.value = !1, x.visible = !0, x.columnId =
|
|
25931
|
-
}, Ye = (ce,
|
|
25930
|
+
Se(ce, de, ge);
|
|
25931
|
+
}, lt = (ce, de, ge, U) => {
|
|
25932
|
+
i.value = null, d.value = !1, x.visible = !0, x.columnId = de, x.start = ge.start, x.end = ge.end, x.operationType = U === "top" ? R.RESIZE_TOP : R.RESIZE_BOTTOM, x.blockId = ge.id, x.originalStart = ge.start, x.originalEnd = ge.end, x.fixedTime = U === "top" ? ge.end : ge.start, x.isResize = !0, x.hasExceededThreshold = !0, x.mouseStartY = ce.clientY, x.dragDirection = null, o("resize", ge);
|
|
25933
|
+
}, Ye = (ce, de, ge, U) => {
|
|
25932
25934
|
if (ce.stopPropagation(), ce.preventDefault(), x.visible) {
|
|
25933
25935
|
const Re = r.columns.find((Te) => Te.id === x.columnId);
|
|
25934
25936
|
Re && He(Re, x.operationType), pe(() => {
|
|
25935
|
-
lt(ce,
|
|
25937
|
+
lt(ce, de, ge, U);
|
|
25936
25938
|
});
|
|
25937
25939
|
return;
|
|
25938
25940
|
}
|
|
25939
|
-
lt(ce,
|
|
25941
|
+
lt(ce, de, ge, U);
|
|
25940
25942
|
}, et = (ce) => {
|
|
25941
25943
|
G = ce, !T && (T = requestAnimationFrame(() => {
|
|
25942
25944
|
if (T = null, !G) return;
|
|
25943
|
-
const
|
|
25945
|
+
const de = G;
|
|
25944
25946
|
if (x.visible && x.mouseStartY !== null) {
|
|
25945
|
-
const he =
|
|
25947
|
+
const he = de.clientY - x.mouseStartY;
|
|
25946
25948
|
Math.abs(he) > 5 && !x.dragDirection && (x.dragDirection = he > 0 ? "down" : "up");
|
|
25947
25949
|
}
|
|
25948
25950
|
if (i.value && !d.value && x.operationType === R.DRAG) {
|
|
25949
|
-
const he = Math.abs(
|
|
25951
|
+
const he = Math.abs(de.clientX - i.value.x), _e = Math.abs(de.clientY - i.value.y), Fe = Date.now() - i.value.time;
|
|
25950
25952
|
(he > rh || _e > rh || Fe > ZM) && (d.value = !0);
|
|
25951
25953
|
}
|
|
25952
25954
|
if (!x.visible) return;
|
|
25953
|
-
let
|
|
25954
|
-
|
|
25955
|
+
let ge = B(de.clientY, x.columnId, !0);
|
|
25956
|
+
ge = Math.min(ge, y);
|
|
25955
25957
|
const U = r.columns.find((he) => he.id === x.columnId);
|
|
25956
25958
|
if (!U) return;
|
|
25957
25959
|
if (x.operationType === R.ADD) {
|
|
25958
|
-
const he = Math.abs(
|
|
25960
|
+
const he = Math.abs(ge - x.thresholdStart);
|
|
25959
25961
|
if (he < r.dragThreshold && !x.hasExceededThreshold) {
|
|
25960
|
-
if (
|
|
25962
|
+
if (ge < x.thresholdStart ? (x.start = ge, x.end = x.thresholdStart) : (x.start = x.thresholdStart, x.end = ge), x.start = A(x.start), x.end = A(x.end), !r.previewEnabled && x.blockId) {
|
|
25961
25963
|
const _e = U.blocks.find((Fe) => Fe.id === x.blockId);
|
|
25962
25964
|
_e && (_e.start = x.start, _e.end = x.end);
|
|
25963
25965
|
}
|
|
25964
25966
|
return;
|
|
25965
25967
|
}
|
|
25966
|
-
he >= r.dragThreshold && !x.hasExceededThreshold && (x.hasExceededThreshold = !0, x.start = Math.max(0, Math.min(x.thresholdStart,
|
|
25968
|
+
he >= r.dragThreshold && !x.hasExceededThreshold && (x.hasExceededThreshold = !0, x.start = Math.max(0, Math.min(x.thresholdStart, ge)), x.end = Math.max(x.start + lo, Math.max(x.thresholdStart, ge)), x.start = A(x.start), x.end = A(x.end));
|
|
25967
25969
|
}
|
|
25968
25970
|
let Re = x.start, Te = x.end;
|
|
25969
25971
|
if (r.previewEnabled) {
|
|
25970
25972
|
switch (x.operationType) {
|
|
25971
25973
|
case R.ADD:
|
|
25972
25974
|
if (x.hasExceededThreshold) {
|
|
25973
|
-
let he = x.start, _e =
|
|
25975
|
+
let he = x.start, _e = ge;
|
|
25974
25976
|
he > _e && ([he, _e] = [_e, he]), _e - he < lo && (x.dragDirection === "down" ? _e = Math.min(p, he + lo) : x.dragDirection === "up" && (he = Math.max(0, _e - lo))), Re = Math.max(0, he), Te = Math.min(p, _e), Re = A(Re), Te = A(Te);
|
|
25975
25977
|
const Fe = { start: Re, end: Te };
|
|
25976
25978
|
if (W(U.blocks, Fe)) {
|
|
@@ -25981,7 +25983,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25981
25983
|
break;
|
|
25982
25984
|
case R.DRAG: {
|
|
25983
25985
|
const he = x.originalEnd - x.originalStart;
|
|
25984
|
-
let _e =
|
|
25986
|
+
let _e = ge - x.offset;
|
|
25985
25987
|
_e = A(_e), _e = Math.max(0, Math.min(y - he, _e));
|
|
25986
25988
|
const Fe = ne(x.columnId, x.blockId);
|
|
25987
25989
|
Re = V(_e, he, Fe), Te = Re + he, Re = Math.max(0, Math.min(y - he, Re)), Te = Math.min(y, Te), Re = A(Re), Te = A(Te);
|
|
@@ -25991,7 +25993,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
25991
25993
|
}
|
|
25992
25994
|
case R.RESIZE_TOP: {
|
|
25993
25995
|
const he = x.fixedTime;
|
|
25994
|
-
let _e = Math.min(
|
|
25996
|
+
let _e = Math.min(ge, he - lo);
|
|
25995
25997
|
_e = A(_e), _e = Math.max(0, _e);
|
|
25996
25998
|
const Fe = ne(x.columnId, x.blockId);
|
|
25997
25999
|
Re = Y(_e, he, Fe), Te = he, Re = A(Re), Te = A(Te);
|
|
@@ -26004,7 +26006,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26004
26006
|
}
|
|
26005
26007
|
case R.RESIZE_BOTTOM: {
|
|
26006
26008
|
const he = x.fixedTime;
|
|
26007
|
-
let _e = Math.max(
|
|
26009
|
+
let _e = Math.max(ge, he + lo);
|
|
26008
26010
|
_e = A(_e), _e = Math.min(y, _e);
|
|
26009
26011
|
const Fe = ne(x.columnId, x.blockId);
|
|
26010
26012
|
Te = q(he, _e, Fe), Re = he, Re = A(Re), Te = A(Te);
|
|
@@ -26033,7 +26035,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26033
26035
|
const he = U.blocks.find((_e) => _e.id === x.blockId);
|
|
26034
26036
|
if (!he) return;
|
|
26035
26037
|
if (o("blockClick", U, he), s.value = he.id, x.hasExceededThreshold) {
|
|
26036
|
-
let _e = x.start, Fe =
|
|
26038
|
+
let _e = x.start, Fe = ge;
|
|
26037
26039
|
_e > Fe && ([_e, Fe] = [Fe, _e]), Fe - _e < lo && (x.dragDirection === "down" ? Fe = _e + lo : x.dragDirection === "up" && (_e = Fe - lo));
|
|
26038
26040
|
const Ge = Math.max(0, A(_e));
|
|
26039
26041
|
let mt = A(Fe);
|
|
@@ -26053,7 +26055,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26053
26055
|
if (!he) return;
|
|
26054
26056
|
o("blockClick", U, he), s.value = he.id;
|
|
26055
26057
|
const _e = he.end - he.start;
|
|
26056
|
-
let Fe =
|
|
26058
|
+
let Fe = ge - x.offset;
|
|
26057
26059
|
Fe = A(Fe), Fe = Math.max(0, Math.min(y - _e, Fe));
|
|
26058
26060
|
const Ge = U.blocks.filter((rt) => rt.id !== x.blockId), mt = V(Fe, _e, Ge);
|
|
26059
26061
|
he.start = A(mt), he.end = A(mt + _e), he.start < ye.value && (he.start = ye.value, he.end = ye.value + _e), he.end > ae.value && (he.start = ae.value - _e, he.end = ae.value), he.start < 0 && (he.start = 0, he.end = _e), he.end > p && (he.end = p, he.start = p - _e), U.blocks.sort((rt, xt) => rt.start - xt.start), x.start = he.start, x.end = he.end, d.value && o("drag", {
|
|
@@ -26069,7 +26071,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26069
26071
|
if (!he) return;
|
|
26070
26072
|
o("blockClick", U, he), s.value = he.id;
|
|
26071
26073
|
const _e = he.end;
|
|
26072
|
-
let Fe = Math.min(
|
|
26074
|
+
let Fe = Math.min(ge, _e - lo);
|
|
26073
26075
|
Fe = A(Fe), Fe = Math.max(0, Fe);
|
|
26074
26076
|
const Ge = U.blocks.filter((rt) => rt.id !== x.blockId), mt = Y(Fe, _e, Ge);
|
|
26075
26077
|
he.start = A(mt), he.end = _e, U.blocks.sort((rt, xt) => rt.start - xt.start), x.start = he.start, x.end = he.end, o("dragMove", U, he);
|
|
@@ -26080,7 +26082,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26080
26082
|
if (!he) return;
|
|
26081
26083
|
o("blockClick", U, he), s.value = he.id;
|
|
26082
26084
|
const _e = he.start;
|
|
26083
|
-
let Fe = Math.max(
|
|
26085
|
+
let Fe = Math.max(ge, _e + lo);
|
|
26084
26086
|
Fe = A(Fe), Fe = Math.min(y, Fe);
|
|
26085
26087
|
const Ge = U.blocks.filter((rt) => rt.id !== x.blockId), mt = q(_e, Fe, Ge);
|
|
26086
26088
|
he.start = _e, he.end = A(mt), U.blocks.sort((rt, xt) => rt.start - xt.start), x.start = he.start, x.end = he.end, o("dragMove", U, he);
|
|
@@ -26088,9 +26090,9 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26088
26090
|
}
|
|
26089
26091
|
}
|
|
26090
26092
|
}));
|
|
26091
|
-
}, qe = (ce,
|
|
26092
|
-
let
|
|
26093
|
-
const Re =
|
|
26093
|
+
}, qe = (ce, de) => {
|
|
26094
|
+
let ge = JSON.parse(JSON.stringify(ce)), U = JSON.parse(JSON.stringify(de));
|
|
26095
|
+
const Re = ge.find((Fe) => Fe.start > U.end), Te = ge.find((Fe) => Fe.start < U.start);
|
|
26094
26096
|
let he = (Te == null ? void 0 : Te.end) || 0, _e = (Re == null ? void 0 : Re.start) || p;
|
|
26095
26097
|
return {
|
|
26096
26098
|
minBlock: he,
|
|
@@ -26102,21 +26104,21 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26102
26104
|
return;
|
|
26103
26105
|
}
|
|
26104
26106
|
T && (cancelAnimationFrame(T), T = null);
|
|
26105
|
-
const
|
|
26106
|
-
if (!
|
|
26107
|
+
const de = r.columns.find((U) => U.id === x.columnId);
|
|
26108
|
+
if (!de) {
|
|
26107
26109
|
se();
|
|
26108
26110
|
return;
|
|
26109
26111
|
}
|
|
26110
26112
|
if (x.operationType === R.ADD) {
|
|
26111
26113
|
const U = Math.abs(x.end - x.start);
|
|
26112
26114
|
if (U < r.dragThreshold || U < lo || !x.hasExceededThreshold) {
|
|
26113
|
-
!r.previewEnabled && x.blockId && (
|
|
26115
|
+
!r.previewEnabled && x.blockId && (de.blocks = de.blocks.filter((Re) => Re.id !== x.blockId)), se();
|
|
26114
26116
|
return;
|
|
26115
26117
|
}
|
|
26116
26118
|
}
|
|
26117
|
-
const
|
|
26118
|
-
if (x.operationType === R.DRAG &&
|
|
26119
|
-
const U =
|
|
26119
|
+
const ge = x.start !== x.originalStart || x.end !== x.originalEnd;
|
|
26120
|
+
if (x.operationType === R.DRAG && ge) {
|
|
26121
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26120
26122
|
U && o("dragEnd", {
|
|
26121
26123
|
block: U,
|
|
26122
26124
|
columnId: x.columnId,
|
|
@@ -26137,22 +26139,22 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26137
26139
|
start: Math.max(0, A(x.start)),
|
|
26138
26140
|
end: Math.min(p, A(x.end)),
|
|
26139
26141
|
title: "新任务",
|
|
26140
|
-
color: r.defaultColor ||
|
|
26142
|
+
color: r.defaultColor || de.color,
|
|
26141
26143
|
eventOutput: r.defaultValue,
|
|
26142
26144
|
unit: r.unit
|
|
26143
26145
|
};
|
|
26144
|
-
W(
|
|
26146
|
+
W(de.blocks, Te) || (de.blocks.push(Te), de.blocks.sort((he, _e) => he.start - _e.start), me(de, Te, "add"));
|
|
26145
26147
|
}
|
|
26146
26148
|
break;
|
|
26147
26149
|
}
|
|
26148
26150
|
case R.DRAG: {
|
|
26149
|
-
const U =
|
|
26150
|
-
if (U &&
|
|
26151
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26152
|
+
if (U && ge) {
|
|
26151
26153
|
const Re = {
|
|
26152
26154
|
start: x.originalStart,
|
|
26153
26155
|
end: x.originalEnd
|
|
26154
26156
|
};
|
|
26155
|
-
U.start = A(x.start), U.end = A(x.end),
|
|
26157
|
+
U.start = A(x.start), U.end = A(x.end), de.blocks.sort((Te, he) => Te.start - he.start), me(de, U, "update", Re), o("dragEnd", {
|
|
26156
26158
|
block: U,
|
|
26157
26159
|
columnId: x.columnId,
|
|
26158
26160
|
oldStart: x.originalStart,
|
|
@@ -26166,16 +26168,16 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26166
26168
|
}
|
|
26167
26169
|
case R.RESIZE_TOP:
|
|
26168
26170
|
case R.RESIZE_BOTTOM: {
|
|
26169
|
-
const U =
|
|
26170
|
-
if (U &&
|
|
26171
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26172
|
+
if (U && ge) {
|
|
26171
26173
|
const Re = {
|
|
26172
26174
|
start: x.originalStart,
|
|
26173
26175
|
end: x.originalEnd
|
|
26174
26176
|
};
|
|
26175
|
-
U.start = A(x.start), U.end = A(x.end),
|
|
26177
|
+
U.start = A(x.start), U.end = A(x.end), de.blocks.sort((Te, he) => Te.start - he.start), me(de, U, "update", Re), o("resizeEnd", {
|
|
26176
26178
|
block: { ...U },
|
|
26177
26179
|
columnId: x.columnId,
|
|
26178
|
-
column:
|
|
26180
|
+
column: de,
|
|
26179
26181
|
oldStart: x.originalStart,
|
|
26180
26182
|
oldEnd: x.originalEnd,
|
|
26181
26183
|
newStart: U.start,
|
|
@@ -26191,21 +26193,21 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26191
26193
|
else
|
|
26192
26194
|
switch (x.operationType) {
|
|
26193
26195
|
case R.ADD: {
|
|
26194
|
-
const U =
|
|
26196
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26195
26197
|
if (U) {
|
|
26196
26198
|
const Re = U.start !== x.originalStart || U.end !== x.originalEnd, Te = U.end - U.start;
|
|
26197
|
-
Re && Te >= lo ? (delete U._temp, U.start = A(U.start), U.end = A(U.end)
|
|
26199
|
+
Re && Te >= lo ? (delete U._temp, U.start = A(U.start), U.end = A(U.end)) : de.blocks = de.blocks.filter((he) => he.id !== x.blockId), me(de, U, "add");
|
|
26198
26200
|
}
|
|
26199
26201
|
break;
|
|
26200
26202
|
}
|
|
26201
26203
|
case R.DRAG: {
|
|
26202
|
-
const U =
|
|
26203
|
-
if (U &&
|
|
26204
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26205
|
+
if (U && ge) {
|
|
26204
26206
|
const Re = {
|
|
26205
26207
|
start: x.originalStart,
|
|
26206
26208
|
end: x.originalEnd
|
|
26207
26209
|
};
|
|
26208
|
-
U.start = A(x.start), U.end = A(x.end),
|
|
26210
|
+
U.start = A(x.start), U.end = A(x.end), de.blocks.sort((Te, he) => Te.start - he.start), me(de, U, "update", Re), o("dragEnd", {
|
|
26209
26211
|
block: U,
|
|
26210
26212
|
columnId: x.columnId,
|
|
26211
26213
|
oldStart: x.originalStart,
|
|
@@ -26219,16 +26221,16 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26219
26221
|
}
|
|
26220
26222
|
case R.RESIZE_TOP:
|
|
26221
26223
|
case R.RESIZE_BOTTOM: {
|
|
26222
|
-
const U =
|
|
26223
|
-
if (U &&
|
|
26224
|
+
const U = de.blocks.find((Re) => Re.id === x.blockId);
|
|
26225
|
+
if (U && ge) {
|
|
26224
26226
|
const Re = {
|
|
26225
26227
|
start: x.originalStart,
|
|
26226
26228
|
end: x.originalEnd
|
|
26227
26229
|
};
|
|
26228
|
-
U.start = A(x.start), U.end = A(x.end),
|
|
26230
|
+
U.start = A(x.start), U.end = A(x.end), de.blocks.sort((Te, he) => Te.start - he.start), me(de, U, "update", Re), o("resizeEnd", {
|
|
26229
26231
|
block: { ...U },
|
|
26230
26232
|
columnId: x.columnId,
|
|
26231
|
-
column:
|
|
26233
|
+
column: de,
|
|
26232
26234
|
oldStart: x.originalStart,
|
|
26233
26235
|
oldEnd: x.originalEnd,
|
|
26234
26236
|
newStart: U.start,
|
|
@@ -26246,19 +26248,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26246
26248
|
x.visible && et(ce);
|
|
26247
26249
|
}, ee = (ce) => {
|
|
26248
26250
|
x.visible && Xe();
|
|
26249
|
-
}
|
|
26250
|
-
gt(() => r.columns, () => {
|
|
26251
|
-
if (s.value) {
|
|
26252
|
-
let ce = !1;
|
|
26253
|
-
for (const ue of r.columns)
|
|
26254
|
-
if (ue.blocks.some((de) => de.id === s.value)) {
|
|
26255
|
-
ce = !0;
|
|
26256
|
-
break;
|
|
26257
|
-
}
|
|
26258
|
-
ce || (s.value = null);
|
|
26259
|
-
}
|
|
26260
|
-
}, { deep: !0 });
|
|
26261
|
-
const De = () => {
|
|
26251
|
+
}, De = () => {
|
|
26262
26252
|
k.value && (E.value = k.value.clientHeight, C.value = E.value / sh);
|
|
26263
26253
|
}, $e = () => {
|
|
26264
26254
|
k.value && (I.value = new ResizeObserver(() => requestAnimationFrame(De)), I.value.observe(k.value));
|
|
@@ -26273,7 +26263,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26273
26263
|
}), t({
|
|
26274
26264
|
OperationType: R,
|
|
26275
26265
|
activeBlockId: s
|
|
26276
|
-
}), (ce,
|
|
26266
|
+
}), (ce, de) => (ke(), Pe("div", kM, [
|
|
26277
26267
|
jn(ce.$slots, "header"),
|
|
26278
26268
|
Ee("div", {
|
|
26279
26269
|
class: "timeline",
|
|
@@ -26281,18 +26271,18 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26281
26271
|
ref: k
|
|
26282
26272
|
}, [
|
|
26283
26273
|
Ee("div", FM, [
|
|
26284
|
-
e.isShowTime ? (ke(!0), Pe(Cn, { key: 0 }, An(_.value, (
|
|
26285
|
-
key:
|
|
26274
|
+
e.isShowTime ? (ke(!0), Pe(Cn, { key: 0 }, An(_.value, (ge) => (ke(), Pe("div", {
|
|
26275
|
+
key: ge.id,
|
|
26286
26276
|
class: "column-wrapper is-time-scale"
|
|
26287
26277
|
}, [
|
|
26288
|
-
|
|
26278
|
+
de[0] || (de[0] = Ee("div", {
|
|
26289
26279
|
class: "column-header is-show-rl-border",
|
|
26290
26280
|
style: { width: "100%", height: "48px" }
|
|
26291
26281
|
}, null, -1)),
|
|
26292
26282
|
Ee("div", {
|
|
26293
26283
|
class: "column is-show-tb-border",
|
|
26294
26284
|
ref_for: !0,
|
|
26295
|
-
ref: (U) => u(
|
|
26285
|
+
ref: (U) => u(ge.id, U)
|
|
26296
26286
|
}, [
|
|
26297
26287
|
Ee("div", IM, [
|
|
26298
26288
|
(ke(), Pe(Cn, null, An(24, (U) => Ee("div", {
|
|
@@ -26300,34 +26290,34 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26300
26290
|
class: "grid-line",
|
|
26301
26291
|
style: kn({ top: U * 100 / 24 + "%" })
|
|
26302
26292
|
}, [
|
|
26303
|
-
U < 24 && U % 3 === 0 ? (ke(), Pe("div", AM, At(U.toString().padStart(2, "0")) + ":00 ", 1)) :
|
|
26293
|
+
U < 24 && U % 3 === 0 ? (ke(), Pe("div", AM, At(U.toString().padStart(2, "0")) + ":00 ", 1)) : gt("", !0)
|
|
26304
26294
|
], 4)), 64))
|
|
26305
26295
|
])
|
|
26306
26296
|
], 512),
|
|
26307
|
-
|
|
26297
|
+
de[1] || (de[1] = Ee("div", {
|
|
26308
26298
|
class: "column-header is-show-rl-border",
|
|
26309
26299
|
style: { width: "100%" }
|
|
26310
26300
|
}, null, -1))
|
|
26311
|
-
]))), 128)) :
|
|
26312
|
-
(ke(!0), Pe(Cn, null, An(e.columns, (
|
|
26313
|
-
key:
|
|
26301
|
+
]))), 128)) : gt("", !0),
|
|
26302
|
+
(ke(!0), Pe(Cn, null, An(e.columns, (ge) => (ke(), Pe("div", {
|
|
26303
|
+
key: ge.id,
|
|
26314
26304
|
class: "column-wrapper",
|
|
26315
|
-
onClick: Ut((U) => ie(
|
|
26316
|
-
onContextmenu: Ut((U) => J(U,
|
|
26317
|
-
onMousedown: Ut((U) => be(U,
|
|
26305
|
+
onClick: Ut((U) => ie(ge), ["stop"]),
|
|
26306
|
+
onContextmenu: Ut((U) => J(U, ge), ["prevent"]),
|
|
26307
|
+
onMousedown: Ut((U) => be(U, ge.id), ["prevent"]),
|
|
26318
26308
|
onMousemove: Ut(et, ["stop"]),
|
|
26319
26309
|
onMouseup: Ut(Xe, ["stop"])
|
|
26320
26310
|
}, [
|
|
26321
26311
|
Ee("div", LM, [
|
|
26322
|
-
Ee("span", _M, At(
|
|
26323
|
-
e.isStatistics ? (ke(), Pe("span", PM, At(
|
|
26312
|
+
Ee("span", _M, At(ge.title), 1),
|
|
26313
|
+
e.isStatistics ? (ke(), Pe("span", PM, At(ge.blocks.length) + "个时段", 1)) : gt("", !0)
|
|
26324
26314
|
]),
|
|
26325
26315
|
Ee("div", {
|
|
26326
26316
|
class: "column",
|
|
26327
26317
|
ref_for: !0,
|
|
26328
|
-
ref: (U) => u(
|
|
26318
|
+
ref: (U) => u(ge.id, U)
|
|
26329
26319
|
}, [
|
|
26330
|
-
Ee("span", HM, At(
|
|
26320
|
+
Ee("span", HM, At(ge.defaultValue || ""), 1),
|
|
26331
26321
|
Ee("div", BM, [
|
|
26332
26322
|
(ke(), Pe(Cn, null, An(8, (U) => Ee("div", {
|
|
26333
26323
|
key: "half-" + U,
|
|
@@ -26336,13 +26326,13 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26336
26326
|
}, null, 6)), 64))
|
|
26337
26327
|
]),
|
|
26338
26328
|
Ee("div", zM, [
|
|
26339
|
-
(ke(!0), Pe(Cn, null, An(
|
|
26329
|
+
(ke(!0), Pe(Cn, null, An(ge.blocks, (U) => (ke(), Pe("div", {
|
|
26340
26330
|
key: U.id,
|
|
26341
26331
|
class: Vt(["block", { "block-active": U.id === s.value, "block-border": !U.isBorder }]),
|
|
26342
|
-
style: kn(
|
|
26343
|
-
onMousedown: Ut((Re) => Ve(Re,
|
|
26344
|
-
onClick: Ut((Re) => Z(Re,
|
|
26345
|
-
onContextmenu: Ut((Re) => Z(Re,
|
|
26332
|
+
style: kn(fe(U)),
|
|
26333
|
+
onMousedown: Ut((Re) => Ve(Re, ge.id, U), ["stop"]),
|
|
26334
|
+
onClick: Ut((Re) => Z(Re, ge, U), ["stop"]),
|
|
26335
|
+
onContextmenu: Ut((Re) => Z(Re, ge, U), ["prevent"])
|
|
26346
26336
|
}, [
|
|
26347
26337
|
Ee("div", {
|
|
26348
26338
|
class: "block-content",
|
|
@@ -26351,33 +26341,33 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26351
26341
|
}, [
|
|
26352
26342
|
Ee("span", WM, [
|
|
26353
26343
|
tl(At(U.eventOutputLabel || U.eventOutput), 1),
|
|
26354
|
-
(U.eventOutputLabel != "null" || U.eventOutput != "null") && (e.unit !== "null" || U.unit !== "null") ? (ke(), Pe("span", GM, At(e.unit || U.unit), 1)) :
|
|
26344
|
+
(U.eventOutputLabel != "null" || U.eventOutput != "null") && (e.unit !== "null" || U.unit !== "null") ? (ke(), Pe("span", GM, At(e.unit || U.unit), 1)) : gt("", !0)
|
|
26355
26345
|
]),
|
|
26356
26346
|
Ee("span", jM, At(P(U.start)) + " - " + At(P(U.end)), 1),
|
|
26357
26347
|
Ee("div", {
|
|
26358
26348
|
class: "resize-handle top",
|
|
26359
|
-
onMousedown: Ut((Re) => Ye(Re,
|
|
26349
|
+
onMousedown: Ut((Re) => Ye(Re, ge.id, U, "top"), ["stop"]),
|
|
26360
26350
|
title: "拖拽调整开始时间"
|
|
26361
26351
|
}, null, 40, YM),
|
|
26362
26352
|
Ee("div", {
|
|
26363
26353
|
class: "resize-handle bottom",
|
|
26364
|
-
onMousedown: Ut((Re) => Ye(Re,
|
|
26354
|
+
onMousedown: Ut((Re) => Ye(Re, ge.id, U, "bottom"), ["stop"]),
|
|
26365
26355
|
title: "拖拽调整结束时间"
|
|
26366
26356
|
}, null, 40, qM)
|
|
26367
26357
|
], 12, VM)
|
|
26368
26358
|
], 46, NM))), 128)),
|
|
26369
|
-
x.visible && x.columnId ===
|
|
26359
|
+
x.visible && x.columnId === ge.id && e.previewEnabled ? (ke(), Pe("div", {
|
|
26370
26360
|
key: 0,
|
|
26371
26361
|
class: Vt(["block preview", { "resize-preview": x.isResize }]),
|
|
26372
|
-
style: kn(
|
|
26362
|
+
style: kn(ue())
|
|
26373
26363
|
}, [
|
|
26374
26364
|
Ee("div", XM, [
|
|
26375
|
-
x.isResize ? (ke(), Pe("span", UM, At(P(x.start)) + " - " + At(P(x.end)) + " (" + At(Math.round((x.end - x.start) / 30) * 30) + "分钟) ", 1)) : x.operationType === R.ADD && x.hasExceededThreshold ? (ke(), Pe("span", KM, At(P(x.start)) + " - " + At(P(x.end)) + " (" + At(Math.round((x.end - x.start) / 30) * 30) + "分钟) ", 1)) :
|
|
26365
|
+
x.isResize ? (ke(), Pe("span", UM, At(P(x.start)) + " - " + At(P(x.end)) + " (" + At(Math.round((x.end - x.start) / 30) * 30) + "分钟) ", 1)) : x.operationType === R.ADD && x.hasExceededThreshold ? (ke(), Pe("span", KM, At(P(x.start)) + " - " + At(P(x.end)) + " (" + At(Math.round((x.end - x.start) / 30) * 30) + "分钟) ", 1)) : gt("", !0)
|
|
26376
26366
|
])
|
|
26377
|
-
], 6)) :
|
|
26367
|
+
], 6)) : gt("", !0)
|
|
26378
26368
|
])
|
|
26379
26369
|
], 512),
|
|
26380
|
-
|
|
26370
|
+
de[2] || (de[2] = Ee("div", {
|
|
26381
26371
|
class: "column-header is-show-rl-border",
|
|
26382
26372
|
style: { width: "100%" }
|
|
26383
26373
|
}, null, -1))
|
|
@@ -26450,7 +26440,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26450
26440
|
}, G = (A) => {
|
|
26451
26441
|
r.value && s.value && !s.value.contains(A.target) && i.value && !i.value.contains(A.target) && (r.value = !1);
|
|
26452
26442
|
};
|
|
26453
|
-
return
|
|
26443
|
+
return ht(r, (A) => {
|
|
26454
26444
|
A ? (setTimeout(() => {
|
|
26455
26445
|
s.value && i.value && (y = gi(
|
|
26456
26446
|
s.value,
|
|
@@ -26458,7 +26448,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26458
26448
|
T
|
|
26459
26449
|
));
|
|
26460
26450
|
}), document.addEventListener("click", G)) : (y && (y(), y = null), document.removeEventListener("click", G));
|
|
26461
|
-
}),
|
|
26451
|
+
}), ht(() => n.modelValue, (A) => {
|
|
26462
26452
|
d.value = A ? Number(A) : null, d.value && (p.value = Math.floor(d.value / n.rangeSize) * n.rangeSize);
|
|
26463
26453
|
}), xo(() => {
|
|
26464
26454
|
y && y(), document.removeEventListener("click", G);
|
|
@@ -26473,7 +26463,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26473
26463
|
Ee("i", {
|
|
26474
26464
|
class: Vt([e.prefixIcon, "fs16"])
|
|
26475
26465
|
}, null, 2)
|
|
26476
|
-
])) :
|
|
26466
|
+
])) : gt("", !0),
|
|
26477
26467
|
Ee("input", {
|
|
26478
26468
|
type: "text",
|
|
26479
26469
|
value: I.value,
|
|
@@ -26485,7 +26475,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26485
26475
|
Ee("i", {
|
|
26486
26476
|
class: Vt([e.suffixIcon, "fs16"])
|
|
26487
26477
|
}, null, 2)
|
|
26488
|
-
])) :
|
|
26478
|
+
])) : gt("", !0)
|
|
26489
26479
|
], 2),
|
|
26490
26480
|
(ke(), ho(pl, { to: "body" }, [
|
|
26491
26481
|
r.value ? (ke(), Pe("div", {
|
|
@@ -26514,7 +26504,7 @@ const kM = { class: "timeline-container" }, FM = { class: "columns" }, IM = { cl
|
|
|
26514
26504
|
type: "button"
|
|
26515
26505
|
}, At(M), 11, sT))), 128))
|
|
26516
26506
|
])
|
|
26517
|
-
], 4)) :
|
|
26507
|
+
], 4)) : gt("", !0)
|
|
26518
26508
|
]))
|
|
26519
26509
|
]));
|
|
26520
26510
|
}
|