@vc-shell/framework 2.6.3-rc.0-pr384.f7327e1 → 2.6.3-rc.0-pr385.7f54e9a
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/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BgGimsn-.js → VcScheduler.vue_vue_type_script_setup_true_lang-C7f7hEsX.js} +473 -472
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-C7f7hEsX.js.map +1 -0
- package/dist/framework.js +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BgGimsn-.js.map +0 -1
|
@@ -491,13 +491,13 @@ function la(e) {
|
|
|
491
491
|
const M = l(E);
|
|
492
492
|
return d.value.get(M) || o;
|
|
493
493
|
}, T = (E, M) => {
|
|
494
|
-
let
|
|
495
|
-
const S = [],
|
|
494
|
+
let R = 0;
|
|
495
|
+
const S = [], $ = [], O = v.value;
|
|
496
496
|
for (const U of E) {
|
|
497
497
|
const q = _(U), X = S.length > 0 ? O : 0;
|
|
498
|
-
|
|
498
|
+
R + X + q <= M ? (S.push(U), R += X + q) : $.push(U);
|
|
499
499
|
}
|
|
500
|
-
return { visible: S, hidden:
|
|
500
|
+
return { visible: S, hidden: $ };
|
|
501
501
|
}, B = () => {
|
|
502
502
|
if (!a.value || !t.value.length) return;
|
|
503
503
|
if (c.value <= 0) {
|
|
@@ -506,19 +506,19 @@ function la(e) {
|
|
|
506
506
|
}
|
|
507
507
|
v.value = En(a.value);
|
|
508
508
|
const E = v.value, M = i === "reverse" ? [...t.value].reverse() : t.value;
|
|
509
|
-
let
|
|
510
|
-
if (
|
|
511
|
-
const S = k(),
|
|
512
|
-
|
|
509
|
+
let R = T(M, c.value);
|
|
510
|
+
if (R.hidden.length > 0) {
|
|
511
|
+
const S = k(), $ = R.visible.length > 0 ? E : 0;
|
|
512
|
+
R = T(M, c.value - S - $);
|
|
513
513
|
}
|
|
514
|
-
i === "reverse" ? (b.value =
|
|
514
|
+
i === "reverse" ? (b.value = R.visible.reverse(), g.value = R.hidden.reverse()) : (b.value = R.visible, g.value = R.hidden);
|
|
515
515
|
}, F = () => {
|
|
516
516
|
if (!a.value) return;
|
|
517
517
|
v.value = En(a.value), C(), a.value.querySelectorAll("[data-item-key]").forEach((M) => {
|
|
518
|
-
const
|
|
519
|
-
if (
|
|
518
|
+
const R = M.getAttribute("data-item-key");
|
|
519
|
+
if (R) {
|
|
520
520
|
const S = Ra(M);
|
|
521
|
-
S > 0 && d.value.set(
|
|
521
|
+
S > 0 && d.value.set(R, S);
|
|
522
522
|
}
|
|
523
523
|
}), B();
|
|
524
524
|
}, A = () => {
|
|
@@ -528,23 +528,23 @@ function la(e) {
|
|
|
528
528
|
}, I = () => {
|
|
529
529
|
h || (h = new ResizeObserver((E) => {
|
|
530
530
|
let M = !1;
|
|
531
|
-
for (const
|
|
532
|
-
const S =
|
|
531
|
+
for (const R of E) {
|
|
532
|
+
const S = R.target;
|
|
533
533
|
if (!S.isConnected) continue;
|
|
534
|
-
const
|
|
535
|
-
if (
|
|
536
|
-
const O = getComputedStyle(S), U =
|
|
537
|
-
X > 0 && d.value.get(
|
|
534
|
+
const $ = S.getAttribute("data-item-key");
|
|
535
|
+
if (!$) continue;
|
|
536
|
+
const O = getComputedStyle(S), U = R.borderBoxSize?.[0]?.inlineSize, X = (U ?? S.offsetWidth) + parseFloat(O.marginLeft || "0") + parseFloat(O.marginRight || "0");
|
|
537
|
+
X > 0 && d.value.get($) !== X && (d.value.set($, X), M = !0);
|
|
538
538
|
}
|
|
539
539
|
M && B();
|
|
540
540
|
})), Re(() => {
|
|
541
541
|
if (!a.value) return;
|
|
542
542
|
const E = a.value.querySelectorAll("[data-item-key]"), M = /* @__PURE__ */ new Set();
|
|
543
|
-
E.forEach((
|
|
544
|
-
M.add(
|
|
543
|
+
E.forEach((R) => {
|
|
544
|
+
M.add(R), p.has(R) || (h?.observe(R), p.add(R));
|
|
545
545
|
});
|
|
546
|
-
for (const
|
|
547
|
-
M.has(
|
|
546
|
+
for (const R of p)
|
|
547
|
+
M.has(R) || (h?.unobserve(R), p.delete(R));
|
|
548
548
|
F();
|
|
549
549
|
});
|
|
550
550
|
}, P = fc(() => {
|
|
@@ -1088,7 +1088,7 @@ const eu = ns, tu = /* @__PURE__ */ Z({
|
|
|
1088
1088
|
return E(v.value);
|
|
1089
1089
|
}), I = [
|
|
1090
1090
|
() => {
|
|
1091
|
-
t.closeOnClickOutside &&
|
|
1091
|
+
t.closeOnClickOutside && $("outside");
|
|
1092
1092
|
},
|
|
1093
1093
|
{ ignore: [d] }
|
|
1094
1094
|
];
|
|
@@ -1106,20 +1106,20 @@ const eu = ns, tu = /* @__PURE__ */ Z({
|
|
|
1106
1106
|
function M(K, Y) {
|
|
1107
1107
|
return t.itemKey ? t.itemKey(K, Y) : Y;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function R() {
|
|
1110
1110
|
f.value || (f.value = !0, l("open"));
|
|
1111
1111
|
}
|
|
1112
1112
|
function S() {
|
|
1113
|
-
|
|
1113
|
+
$("action");
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function $(K) {
|
|
1116
1116
|
f.value && (f.value = !1, l("close", K));
|
|
1117
1117
|
}
|
|
1118
1118
|
function O() {
|
|
1119
|
-
f.value ?
|
|
1119
|
+
f.value ? $("action") : R();
|
|
1120
1120
|
}
|
|
1121
1121
|
function U(K, Y) {
|
|
1122
|
-
v.value = Y, l("item-click", K), t.closeOnSelect &&
|
|
1122
|
+
v.value = Y, l("item-click", K), t.closeOnSelect && $("action");
|
|
1123
1123
|
}
|
|
1124
1124
|
function q(K) {
|
|
1125
1125
|
const Y = t.items.length;
|
|
@@ -1159,13 +1159,13 @@ const eu = ns, tu = /* @__PURE__ */ Z({
|
|
|
1159
1159
|
case "Escape": {
|
|
1160
1160
|
if (!t.closeOnEscape)
|
|
1161
1161
|
return;
|
|
1162
|
-
K.preventDefault(), K.stopPropagation(),
|
|
1162
|
+
K.preventDefault(), K.stopPropagation(), $("escape");
|
|
1163
1163
|
break;
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
function ie(K) {
|
|
1168
|
-
!t.closeOnEscape || !f.value || K.key !== "Escape" || (K.preventDefault(),
|
|
1168
|
+
!t.closeOnEscape || !f.value || K.key !== "Escape" || (K.preventDefault(), $("escape"));
|
|
1169
1169
|
}
|
|
1170
1170
|
return ne(
|
|
1171
1171
|
() => f.value,
|
|
@@ -1191,7 +1191,7 @@ const eu = ns, tu = /* @__PURE__ */ Z({
|
|
|
1191
1191
|
H(K.$slots, "trigger", {
|
|
1192
1192
|
isActive: f.value,
|
|
1193
1193
|
toggle: O,
|
|
1194
|
-
open:
|
|
1194
|
+
open: R,
|
|
1195
1195
|
close: S,
|
|
1196
1196
|
panelId: o
|
|
1197
1197
|
})
|
|
@@ -3543,7 +3543,7 @@ const Cv = { class: "vc-widget-container-desktop" }, kv = { class: "vc-widget-co
|
|
|
3543
3543
|
width: _.value ?? k[c.size]
|
|
3544
3544
|
}), M = y(() => ({
|
|
3545
3545
|
zIndex: c.zIndex
|
|
3546
|
-
})),
|
|
3546
|
+
})), R = y(() => [
|
|
3547
3547
|
`vc-sidebar__panel--${c.position}`,
|
|
3548
3548
|
`vc-sidebar__panel--${c.variant}`,
|
|
3549
3549
|
`vc-sidebar__panel--size-${c.size}`,
|
|
@@ -3553,7 +3553,7 @@ const Cv = { class: "vc-widget-container-desktop" }, kv = { class: "vc-widget-co
|
|
|
3553
3553
|
"vc-sidebar__panel--inset": c.inset && !I.value,
|
|
3554
3554
|
"vc-sidebar__panel--draggable": c.draggable && A.value
|
|
3555
3555
|
}
|
|
3556
|
-
]), S = y(() => c.ariaLabel || void 0),
|
|
3556
|
+
]), S = y(() => c.ariaLabel || void 0), $ = y(() => c.ariaLabel || !c.title ? void 0 : p);
|
|
3557
3557
|
function O(re) {
|
|
3558
3558
|
d("update:modelValue", !1), d("close", re);
|
|
3559
3559
|
}
|
|
@@ -3690,12 +3690,12 @@ const Cv = { class: "vc-widget-container-desktop" }, kv = { class: "vc-widget-co
|
|
|
3690
3690
|
key: 0,
|
|
3691
3691
|
ref_key: "panelEl",
|
|
3692
3692
|
ref: v,
|
|
3693
|
-
class: Q(["vc-sidebar__panel",
|
|
3693
|
+
class: Q(["vc-sidebar__panel", R.value]),
|
|
3694
3694
|
style: ye(E.value),
|
|
3695
3695
|
role: "dialog",
|
|
3696
3696
|
"aria-modal": e.showOverlay,
|
|
3697
3697
|
"aria-label": S.value,
|
|
3698
|
-
"aria-labelledby":
|
|
3698
|
+
"aria-labelledby": $.value,
|
|
3699
3699
|
tabindex: "-1",
|
|
3700
3700
|
onTouchstart: Y,
|
|
3701
3701
|
onTouchmove: se,
|
|
@@ -4158,10 +4158,10 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4158
4158
|
function M() {
|
|
4159
4159
|
T ? T.value = !0 : f("expand");
|
|
4160
4160
|
}
|
|
4161
|
-
function
|
|
4161
|
+
function R() {
|
|
4162
4162
|
T ? T.value = !1 : f("collapse");
|
|
4163
4163
|
}
|
|
4164
|
-
const S = ke(vo), { blades:
|
|
4164
|
+
const S = ke(vo), { blades: $, setBladeTitle: O } = Ft();
|
|
4165
4165
|
Kn(() => {
|
|
4166
4166
|
_ && C.value && t.title && O(C.value, t.title);
|
|
4167
4167
|
});
|
|
@@ -4194,7 +4194,7 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4194
4194
|
"aria-labelledby": t.title && !b.value ? o : void 0,
|
|
4195
4195
|
"aria-label": !t.title || b.value ? X.$t("COMPONENTS.ORGANISMS.VC_BLADE.PANEL") : void 0
|
|
4196
4196
|
}), [
|
|
4197
|
-
n(h) && n(
|
|
4197
|
+
n(h) && n($).length === 1 && !X.$slots.actions ? x("", !0) : (s(), V(Zu, {
|
|
4198
4198
|
key: 0,
|
|
4199
4199
|
class: "vc-blade__header",
|
|
4200
4200
|
closable: A.value,
|
|
@@ -4206,7 +4206,7 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4206
4206
|
loading: b.value,
|
|
4207
4207
|
onClose: E,
|
|
4208
4208
|
onExpand: M,
|
|
4209
|
-
onCollapse:
|
|
4209
|
+
onCollapse: R
|
|
4210
4210
|
}, De({
|
|
4211
4211
|
prepend: D(() => [
|
|
4212
4212
|
n(S) && n(h) ? (s(), V(qe(n(S)), {
|
|
@@ -4744,22 +4744,23 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4744
4744
|
validate: C
|
|
4745
4745
|
} = Fr(`${l.name === "Gallery" ? o.value : l.name}`, g), _ = y(() => l.errorMessage || p.value), T = y(() => {
|
|
4746
4746
|
const M = /* @__PURE__ */ new Set();
|
|
4747
|
-
return b?.describedBy.value && b.describedBy.value.split(/\s+/).forEach((
|
|
4747
|
+
return b?.describedBy.value && b.describedBy.value.split(/\s+/).forEach((R) => M.add(R)), _.value && M.add(c.value), M.size ? Array.from(M).join(" ") : void 0;
|
|
4748
4748
|
}), B = N(null), F = async (M) => {
|
|
4749
4749
|
if (d.value) return;
|
|
4750
4750
|
if (await k(M.target), (await C()).valid) {
|
|
4751
|
-
const
|
|
4752
|
-
|
|
4751
|
+
const $ = M.target.files;
|
|
4752
|
+
$ && $.length && r("upload", $);
|
|
4753
4753
|
}
|
|
4754
4754
|
};
|
|
4755
4755
|
function A() {
|
|
4756
4756
|
d.value || B.value && (B.value.value = "", B.value.click());
|
|
4757
4757
|
}
|
|
4758
|
-
function I(M) {
|
|
4758
|
+
async function I(M) {
|
|
4759
4759
|
if (d.value) return;
|
|
4760
4760
|
E();
|
|
4761
|
-
const
|
|
4762
|
-
|
|
4761
|
+
const R = M.dataTransfer, S = R?.files;
|
|
4762
|
+
if (!R || !S || !S.length) return;
|
|
4763
|
+
await k(R), (await C()).valid && r("upload", S);
|
|
4763
4764
|
}
|
|
4764
4765
|
function P() {
|
|
4765
4766
|
d.value || (f.value = !0);
|
|
@@ -4767,7 +4768,7 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4767
4768
|
function E() {
|
|
4768
4769
|
f.value = !1;
|
|
4769
4770
|
}
|
|
4770
|
-
return (M,
|
|
4771
|
+
return (M, R) => n(t) ? (s(), m("div", Rf, [
|
|
4771
4772
|
L(n(Ce), {
|
|
4772
4773
|
variant: "block",
|
|
4773
4774
|
width: "100%",
|
|
@@ -4791,14 +4792,14 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4791
4792
|
"aria-disabled": n(d) || void 0,
|
|
4792
4793
|
"aria-required": n(v),
|
|
4793
4794
|
onDrop: me(I, ["stop", "prevent"]),
|
|
4794
|
-
onDrag:
|
|
4795
|
+
onDrag: R[0] || (R[0] = me(() => {
|
|
4795
4796
|
}, ["stop", "prevent"])),
|
|
4796
|
-
onDragstart:
|
|
4797
|
+
onDragstart: R[1] || (R[1] = me(() => {
|
|
4797
4798
|
}, ["stop", "prevent"])),
|
|
4798
|
-
onDragend:
|
|
4799
|
+
onDragend: R[2] || (R[2] = me(() => {
|
|
4799
4800
|
}, ["stop", "prevent"])),
|
|
4800
4801
|
onDragover: me(P, ["stop", "prevent"]),
|
|
4801
|
-
onDragenter:
|
|
4802
|
+
onDragenter: R[3] || (R[3] = me(() => {
|
|
4802
4803
|
}, ["stop", "prevent"])),
|
|
4803
4804
|
onDragleave: me(E, ["stop", "prevent"]),
|
|
4804
4805
|
onClick: A,
|
|
@@ -4823,7 +4824,7 @@ const sf = mc(of), rf = ["aria-busy", "aria-labelledby", "aria-label"], cf = {
|
|
|
4823
4824
|
w("div", Lf, [
|
|
4824
4825
|
n(h) ? (s(), m("span", Mf, z(e.customText?.browse || n(i)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.TAP_TO_UPLOAD")), 1)) : (s(), m(J, { key: 1 }, [
|
|
4825
4826
|
w("span", null, z(e.customText?.dragHere || n(i)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.DRAG_HERE")), 1),
|
|
4826
|
-
|
|
4827
|
+
R[4] || (R[4] = w("br", null, null, -1)),
|
|
4827
4828
|
w("span", xf, z(e.customText?.browse || n(i)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.BROWSE")), 1)
|
|
4828
4829
|
], 64))
|
|
4829
4830
|
])
|
|
@@ -5460,7 +5461,7 @@ const Nf = {
|
|
|
5460
5461
|
}), He(() => {
|
|
5461
5462
|
M.value?.destroy();
|
|
5462
5463
|
});
|
|
5463
|
-
function
|
|
5464
|
+
function R() {
|
|
5464
5465
|
v.value?.click();
|
|
5465
5466
|
}
|
|
5466
5467
|
function S(O) {
|
|
@@ -5471,7 +5472,7 @@ const Nf = {
|
|
|
5471
5472
|
}
|
|
5472
5473
|
r("update:modelValue", q);
|
|
5473
5474
|
}
|
|
5474
|
-
async function
|
|
5475
|
+
async function $(O) {
|
|
5475
5476
|
const U = O.target;
|
|
5476
5477
|
if (!U.files?.length || !l.assetsFolder) return;
|
|
5477
5478
|
const q = Array.from(U.files), X = new FormData();
|
|
@@ -5541,7 +5542,7 @@ const Nf = {
|
|
|
5541
5542
|
"content-type": b.value,
|
|
5542
5543
|
toolbar: g.value,
|
|
5543
5544
|
"custom-buttons": l.customButtons || [],
|
|
5544
|
-
onUploadImage:
|
|
5545
|
+
onUploadImage: R
|
|
5545
5546
|
}, null, 8, ["editor", "disabled", "content-type", "toolbar", "custom-buttons"])) : x("", !0),
|
|
5546
5547
|
w("div", em, [
|
|
5547
5548
|
L(Ue, {
|
|
@@ -5621,7 +5622,7 @@ const Nf = {
|
|
|
5621
5622
|
hidden: "",
|
|
5622
5623
|
multiple: "",
|
|
5623
5624
|
accept: "image/*",
|
|
5624
|
-
onChange:
|
|
5625
|
+
onChange: $
|
|
5625
5626
|
}, null, 544),
|
|
5626
5627
|
L(Ve, {
|
|
5627
5628
|
name: "slide-up",
|
|
@@ -5684,23 +5685,23 @@ const Nf = {
|
|
|
5684
5685
|
}
|
|
5685
5686
|
ne(
|
|
5686
5687
|
() => l.dismissing,
|
|
5687
|
-
(
|
|
5688
|
-
|
|
5688
|
+
(R) => {
|
|
5689
|
+
R && f();
|
|
5689
5690
|
}
|
|
5690
5691
|
), ne(
|
|
5691
5692
|
i,
|
|
5692
|
-
(
|
|
5693
|
-
|
|
5693
|
+
(R) => {
|
|
5694
|
+
R && (g.value = k(() => f(), l.timeout), g.value.start());
|
|
5694
5695
|
},
|
|
5695
5696
|
{ immediate: !0 }
|
|
5696
5697
|
);
|
|
5697
5698
|
const h = N(null);
|
|
5698
5699
|
function p() {
|
|
5699
5700
|
if (o.value && l.notificationId !== void 0 && !d.value) {
|
|
5700
|
-
const
|
|
5701
|
-
|
|
5702
|
-
const
|
|
5703
|
-
|
|
5701
|
+
const R = o.value, S = R.style.height;
|
|
5702
|
+
R.style.height = "auto";
|
|
5703
|
+
const $ = R.getBoundingClientRect().height;
|
|
5704
|
+
R.style.height = S, l.onReportHeight?.(l.notificationId, $);
|
|
5704
5705
|
}
|
|
5705
5706
|
}
|
|
5706
5707
|
tt(() => {
|
|
@@ -5710,19 +5711,19 @@ const Nf = {
|
|
|
5710
5711
|
});
|
|
5711
5712
|
}), o.value && (h.value = new ResizeObserver(() => p()), h.value.observe(o.value));
|
|
5712
5713
|
});
|
|
5713
|
-
function k(
|
|
5714
|
-
let
|
|
5714
|
+
function k(R, S) {
|
|
5715
|
+
let $, O, U = S;
|
|
5715
5716
|
function q() {
|
|
5716
|
-
window.clearTimeout(
|
|
5717
|
+
window.clearTimeout($), U -= Date.now() - O;
|
|
5717
5718
|
}
|
|
5718
5719
|
function X() {
|
|
5719
|
-
O = Date.now(), window.clearTimeout(
|
|
5720
|
+
O = Date.now(), window.clearTimeout($), $ = window.setTimeout(R, U);
|
|
5720
5721
|
}
|
|
5721
5722
|
function ie() {
|
|
5722
5723
|
U = S, X();
|
|
5723
5724
|
}
|
|
5724
5725
|
function K() {
|
|
5725
|
-
window.clearTimeout(
|
|
5726
|
+
window.clearTimeout($);
|
|
5726
5727
|
}
|
|
5727
5728
|
return { pause: q, resume: X, start: ie, clear: K };
|
|
5728
5729
|
}
|
|
@@ -5736,41 +5737,41 @@ const Nf = {
|
|
|
5736
5737
|
l.timeout && l.pauseOnHover !== !1 && g.value?.resume();
|
|
5737
5738
|
}
|
|
5738
5739
|
const T = N(0), B = N(0), F = N(!1), A = N(!1), I = N(0);
|
|
5739
|
-
function P(
|
|
5740
|
-
if (d.value || A.value ||
|
|
5741
|
-
T.value =
|
|
5740
|
+
function P(R) {
|
|
5741
|
+
if (d.value || A.value || R.target?.closest(".vc-notification__dismiss-button")) return;
|
|
5742
|
+
T.value = R.clientX, B.value = R.clientY, I.value = Date.now(), F.value = !1;
|
|
5742
5743
|
const S = o.value;
|
|
5743
|
-
S && S.setPointerCapture(
|
|
5744
|
+
S && S.setPointerCapture(R.pointerId);
|
|
5744
5745
|
}
|
|
5745
|
-
function E(
|
|
5746
|
+
function E(R) {
|
|
5746
5747
|
if (d.value || A.value || T.value === 0 && B.value === 0) return;
|
|
5747
|
-
const S =
|
|
5748
|
+
const S = R.clientX - T.value, $ = R.clientY - B.value;
|
|
5748
5749
|
if (!F.value)
|
|
5749
|
-
if (Math.abs(S) > 1 && Math.abs(S) > Math.abs(
|
|
5750
|
+
if (Math.abs(S) > 1 && Math.abs(S) > Math.abs($))
|
|
5750
5751
|
F.value = !0, g.value?.pause();
|
|
5751
|
-
else if (Math.abs(
|
|
5752
|
+
else if (Math.abs($) > 1) {
|
|
5752
5753
|
T.value = 0, B.value = 0;
|
|
5753
5754
|
return;
|
|
5754
5755
|
} else
|
|
5755
5756
|
return;
|
|
5756
5757
|
o.value?.style.setProperty("--swipe-amount-x", `${S}px`);
|
|
5757
5758
|
}
|
|
5758
|
-
function M(
|
|
5759
|
+
function M(R) {
|
|
5759
5760
|
const S = o.value;
|
|
5760
|
-
if (S && S.hasPointerCapture(
|
|
5761
|
+
if (S && S.hasPointerCapture(R.pointerId) && S.releasePointerCapture(R.pointerId), !F.value) {
|
|
5761
5762
|
o.value?.style.setProperty("--swipe-amount-x", "0px"), T.value = 0, B.value = 0;
|
|
5762
5763
|
return;
|
|
5763
5764
|
}
|
|
5764
|
-
const
|
|
5765
|
-
if (Math.abs(
|
|
5765
|
+
const $ = parseFloat(o.value?.style.getPropertyValue("--swipe-amount-x")?.replace("px", "") || "0"), O = Date.now() - I.value, U = Math.abs($) / O;
|
|
5766
|
+
if (Math.abs($) >= mm || U > 0.11) {
|
|
5766
5767
|
d.value = !0, g.value?.clear(), A.value = !0;
|
|
5767
|
-
const q =
|
|
5768
|
+
const q = $ > 0 ? 1 : -1;
|
|
5768
5769
|
o.value?.style.setProperty("--swipe-amount-x", `${q * window.innerWidth}px`), setTimeout(() => t("close", l.notificationId), Da);
|
|
5769
5770
|
} else
|
|
5770
5771
|
o.value?.style.setProperty("--swipe-amount-x", "0px"), g.value?.resume();
|
|
5771
5772
|
F.value = !1, T.value = 0, B.value = 0;
|
|
5772
5773
|
}
|
|
5773
|
-
return (
|
|
5774
|
+
return (R, S) => (s(), m("div", {
|
|
5774
5775
|
id: String(e.notificationId),
|
|
5775
5776
|
ref_key: "toastRef",
|
|
5776
5777
|
ref: o,
|
|
@@ -5805,7 +5806,7 @@ const Nf = {
|
|
|
5805
5806
|
w("button", {
|
|
5806
5807
|
type: "button",
|
|
5807
5808
|
class: "vc-notification__dismiss-button",
|
|
5808
|
-
"aria-label":
|
|
5809
|
+
"aria-label": R.$t("COMPONENTS.MOLECULES.VC_TOAST.DISMISS"),
|
|
5809
5810
|
onClick: me(f, ["stop"]),
|
|
5810
5811
|
onKeydown: Me(f, ["escape"])
|
|
5811
5812
|
}, [
|
|
@@ -6637,7 +6638,7 @@ const vg = {
|
|
|
6637
6638
|
type: () => t.type,
|
|
6638
6639
|
optionLabel: () => t.optionLabel,
|
|
6639
6640
|
addItem: F
|
|
6640
|
-
}), { setColorPickerRef: E, openColorPicker: M, handleColorChange:
|
|
6641
|
+
}), { setColorPickerRef: E, openColorPicker: M, handleColorChange: R } = cg({
|
|
6641
6642
|
modelValue: () => t.modelValue,
|
|
6642
6643
|
emit: {
|
|
6643
6644
|
updateModelValue: (G) => l("update:model-value", G)
|
|
@@ -6646,7 +6647,7 @@ const vg = {
|
|
|
6646
6647
|
options: () => t.options,
|
|
6647
6648
|
modelValue: () => t.modelValue,
|
|
6648
6649
|
optionValue: () => t.optionValue
|
|
6649
|
-
}), { isOpened:
|
|
6650
|
+
}), { isOpened: $, isFocused: O, dropdownToggleRef: U, dropdownRef: q, searchRef: X, dropdownStyle: ie, toggleDropdown: K, closeDropdown: Y } = ug({
|
|
6650
6651
|
disabled: () => t.disabled ?? !1,
|
|
6651
6652
|
onItemSelect: (G) => {
|
|
6652
6653
|
S.value[G] && se(S.value[G]);
|
|
@@ -6681,7 +6682,7 @@ const vg = {
|
|
|
6681
6682
|
class: Q(["vc-multivalue", [
|
|
6682
6683
|
`vc-multivalue--${e.type}`,
|
|
6683
6684
|
{
|
|
6684
|
-
"vc-multivalue--opened": n(
|
|
6685
|
+
"vc-multivalue--opened": n($),
|
|
6685
6686
|
"vc-multivalue--error": n(u),
|
|
6686
6687
|
"vc-multivalue--disabled": n(v),
|
|
6687
6688
|
"vc-multivalue--focused": n(O),
|
|
@@ -6726,7 +6727,7 @@ const vg = {
|
|
|
6726
6727
|
"option-value": e.optionValue,
|
|
6727
6728
|
"input-value": n(A),
|
|
6728
6729
|
"format-value": n(_),
|
|
6729
|
-
"is-opened": n(
|
|
6730
|
+
"is-opened": n($),
|
|
6730
6731
|
"label-id": e.label ? n(o) : void 0,
|
|
6731
6732
|
"listbox-id": f.value,
|
|
6732
6733
|
"aria-described-by": n(g),
|
|
@@ -6741,7 +6742,7 @@ const vg = {
|
|
|
6741
6742
|
onClearAll: n(B),
|
|
6742
6743
|
onOpenColorPicker: n(M),
|
|
6743
6744
|
onSetColorPickerRef: n(E),
|
|
6744
|
-
onColorChange: n(
|
|
6745
|
+
onColorChange: n(R)
|
|
6745
6746
|
}, De({ _: 2 }, [
|
|
6746
6747
|
G.$slots["selected-item"] ? {
|
|
6747
6748
|
name: "selected-item",
|
|
@@ -6769,7 +6770,7 @@ const vg = {
|
|
|
6769
6770
|
key: 1,
|
|
6770
6771
|
ref_key: "dropdownComponentRef",
|
|
6771
6772
|
ref: p,
|
|
6772
|
-
"is-opened": n(
|
|
6773
|
+
"is-opened": n($),
|
|
6773
6774
|
"dropdown-style": n(ie),
|
|
6774
6775
|
"available-options": n(S),
|
|
6775
6776
|
"option-label": e.optionLabel
|
|
@@ -8282,8 +8283,8 @@ const Kp = 3, Un = /* @__PURE__ */ Z({
|
|
|
8282
8283
|
if (!E) return;
|
|
8283
8284
|
let M = P.badge;
|
|
8284
8285
|
if (!M && P.routeId && (M = c.value.get(P.routeId)), !M && P.groupId && (M = c.value.get(P.groupId)), !M) return;
|
|
8285
|
-
const
|
|
8286
|
-
|
|
8286
|
+
const R = B(M);
|
|
8287
|
+
R && A.set(E, R);
|
|
8287
8288
|
};
|
|
8288
8289
|
for (const P of o.value)
|
|
8289
8290
|
if (I(P), P.children)
|
|
@@ -8739,11 +8740,11 @@ const Pa = /* @__PURE__ */ Z({
|
|
|
8739
8740
|
), ne(
|
|
8740
8741
|
() => q(c.value),
|
|
8741
8742
|
(Y, se) => {
|
|
8742
|
-
se?.removeEventListener("scroll",
|
|
8743
|
+
se?.removeEventListener("scroll", $), Y?.addEventListener("scroll", $, { passive: !0 });
|
|
8743
8744
|
},
|
|
8744
8745
|
{ immediate: !0 }
|
|
8745
8746
|
), He(() => {
|
|
8746
|
-
q(o.value)?.removeEventListener("scroll", S), q(c.value)?.removeEventListener("scroll",
|
|
8747
|
+
q(o.value)?.removeEventListener("scroll", S), q(c.value)?.removeEventListener("scroll", $);
|
|
8747
8748
|
});
|
|
8748
8749
|
function I(Y) {
|
|
8749
8750
|
return !Y || Y.startsWith("/") || Y.startsWith("http://") || Y.startsWith("https://") || Y.startsWith("data:") ? Y : `/${Y}`;
|
|
@@ -8760,7 +8761,7 @@ const Pa = /* @__PURE__ */ Z({
|
|
|
8760
8761
|
function M(Y) {
|
|
8761
8762
|
v(), l("switch-app", Y);
|
|
8762
8763
|
}
|
|
8763
|
-
function
|
|
8764
|
+
function R(Y) {
|
|
8764
8765
|
return `app-hub-app-${(Y.id || Y.title || "unknown").toString().trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "") || "unknown"}`;
|
|
8765
8766
|
}
|
|
8766
8767
|
function S() {
|
|
@@ -8770,7 +8771,7 @@ const Pa = /* @__PURE__ */ Z({
|
|
|
8770
8771
|
renderLimit: C
|
|
8771
8772
|
});
|
|
8772
8773
|
}
|
|
8773
|
-
function
|
|
8774
|
+
function $() {
|
|
8774
8775
|
B.value && U({
|
|
8775
8776
|
container: c.value,
|
|
8776
8777
|
totalItems: p.value.length,
|
|
@@ -8839,7 +8840,7 @@ const Pa = /* @__PURE__ */ Z({
|
|
|
8839
8840
|
(s(!0), m(J, null, ve(F.value, (te) => (s(), m("button", {
|
|
8840
8841
|
key: te.id || te.title,
|
|
8841
8842
|
type: "button",
|
|
8842
|
-
"data-test-id":
|
|
8843
|
+
"data-test-id": R(te),
|
|
8843
8844
|
class: Q(["app-hub-content__item app-hub-content__item--app app-hub-content__item--app-tile", { "app-hub-content__item--active": P(te) }]),
|
|
8844
8845
|
onClick: (G) => M(te)
|
|
8845
8846
|
}, [
|
|
@@ -9554,7 +9555,7 @@ const sh = {
|
|
|
9554
9555
|
const te = se * Y / (se + Y);
|
|
9555
9556
|
return Math.sign(K) * te;
|
|
9556
9557
|
}
|
|
9557
|
-
function
|
|
9558
|
+
function R(K) {
|
|
9558
9559
|
const Y = k.value?.clientWidth ?? 0;
|
|
9559
9560
|
if (!Y)
|
|
9560
9561
|
return K;
|
|
@@ -9570,7 +9571,7 @@ const sh = {
|
|
|
9570
9571
|
const Y = K.touches[0];
|
|
9571
9572
|
_ = Y.clientX, T = Y.clientY, B = Y.clientX, F = Date.now(), p.value = 0, h.value = !1, C.value = "pending";
|
|
9572
9573
|
}
|
|
9573
|
-
function
|
|
9574
|
+
function $(K) {
|
|
9574
9575
|
if (!g.value || K.touches.length === 0 || C.value === "idle")
|
|
9575
9576
|
return;
|
|
9576
9577
|
const Y = K.touches[0], se = Y.clientX - _, te = Y.clientY - T, G = Math.abs(se), de = Math.abs(te);
|
|
@@ -9583,7 +9584,7 @@ const sh = {
|
|
|
9583
9584
|
}
|
|
9584
9585
|
C.value = "horizontal", h.value = !0;
|
|
9585
9586
|
}
|
|
9586
|
-
C.value === "horizontal" && (K.cancelable && K.preventDefault(), B = Y.clientX, p.value =
|
|
9587
|
+
C.value === "horizontal" && (K.cancelable && K.preventDefault(), B = Y.clientX, p.value = R(se));
|
|
9587
9588
|
}
|
|
9588
9589
|
function O(K) {
|
|
9589
9590
|
if (!g.value) {
|
|
@@ -9705,7 +9706,7 @@ const sh = {
|
|
|
9705
9706
|
ref: k,
|
|
9706
9707
|
class: "mobile-layout__slider-viewport",
|
|
9707
9708
|
onTouchstartPassive: S,
|
|
9708
|
-
onTouchmove:
|
|
9709
|
+
onTouchmove: $,
|
|
9709
9710
|
onTouchendPassive: O,
|
|
9710
9711
|
onTouchcancelPassive: O
|
|
9711
9712
|
}, [
|
|
@@ -10305,7 +10306,7 @@ const oy = { class: "vc-app__main-content" }, r$ = /* @__PURE__ */ Z({
|
|
|
10305
10306
|
},
|
|
10306
10307
|
setup(e) {
|
|
10307
10308
|
const a = e, { isMobile: t, isDesktop: l } = Fe(), r = !!(ke(fo, null) && ke(ro, null)), i = r ? Ft() : void 0, o = y(
|
|
10308
|
-
() => i?.blades.value.some((
|
|
10309
|
+
() => i?.blades.value.some((R) => i.isMaximized(R.id)) ?? !1
|
|
10309
10310
|
);
|
|
10310
10311
|
lt("vc-app").debug("Init vc-app");
|
|
10311
10312
|
const d = zt(), u = d.query.EmbeddedMode === "true", v = N(null);
|
|
@@ -10314,8 +10315,8 @@ const oy = { class: "vc-app__main-content" }, r$ = /* @__PURE__ */ Z({
|
|
|
10314
10315
|
() => Ct(() => v.value)
|
|
10315
10316
|
), ne(
|
|
10316
10317
|
v,
|
|
10317
|
-
(
|
|
10318
|
-
|
|
10318
|
+
(R) => {
|
|
10319
|
+
R && Ct(() => R);
|
|
10319
10320
|
},
|
|
10320
10321
|
{ flush: "post" }
|
|
10321
10322
|
);
|
|
@@ -10330,14 +10331,14 @@ const oy = { class: "vc-app__main-content" }, r$ = /* @__PURE__ */ Z({
|
|
|
10330
10331
|
dynamicModules: B,
|
|
10331
10332
|
aiAgentConfig: F,
|
|
10332
10333
|
aiAgentAddGlobalToolbarButton: A
|
|
10333
|
-
}), ne(I, (
|
|
10334
|
-
|
|
10334
|
+
}), ne(I, (R) => {
|
|
10335
|
+
R && Rt.error(
|
|
10335
10336
|
"Unable to load application modules. Please check your connection and try refreshing the page.",
|
|
10336
10337
|
{ timeout: 1e4 }
|
|
10337
10338
|
);
|
|
10338
10339
|
});
|
|
10339
10340
|
const { environmentName: P, isIgnored: E, color: M } = sf();
|
|
10340
|
-
return (
|
|
10341
|
+
return (R, S) => n(f) ? (s(), m("div", {
|
|
10341
10342
|
key: 1,
|
|
10342
10343
|
ref_key: "appRootRef",
|
|
10343
10344
|
ref: b,
|
|
@@ -10351,7 +10352,7 @@ const oy = { class: "vc-app__main-content" }, r$ = /* @__PURE__ */ Z({
|
|
|
10351
10352
|
color: n(M)
|
|
10352
10353
|
}, null, 8, ["name", "color"])) : x("", !0),
|
|
10353
10354
|
w("div", oy, [
|
|
10354
|
-
H(
|
|
10355
|
+
H(R.$slots, "layout", {
|
|
10355
10356
|
isMobile: n(t),
|
|
10356
10357
|
sidebar: n(g),
|
|
10357
10358
|
appsList: n(p),
|
|
@@ -10375,40 +10376,40 @@ const oy = { class: "vc-app__main-content" }, r$ = /* @__PURE__ */ Z({
|
|
|
10375
10376
|
"onItem:click": n(C),
|
|
10376
10377
|
onSwitchApp: n(k)
|
|
10377
10378
|
}, De({ _: 2 }, [
|
|
10378
|
-
|
|
10379
|
+
R.$slots["app-hub"] && !e.disableAppHub ? {
|
|
10379
10380
|
name: "app-hub",
|
|
10380
|
-
fn: D(({ appsList:
|
|
10381
|
-
H(
|
|
10382
|
-
appsList:
|
|
10381
|
+
fn: D(({ appsList: $, switchApp: O }) => [
|
|
10382
|
+
H(R.$slots, "app-hub", {
|
|
10383
|
+
appsList: $,
|
|
10383
10384
|
switchApp: O
|
|
10384
10385
|
})
|
|
10385
10386
|
]),
|
|
10386
10387
|
key: "0"
|
|
10387
10388
|
} : void 0,
|
|
10388
|
-
|
|
10389
|
+
R.$slots.menu ? {
|
|
10389
10390
|
name: "menu",
|
|
10390
|
-
fn: D((
|
|
10391
|
-
H(
|
|
10391
|
+
fn: D(($) => [
|
|
10392
|
+
H(R.$slots, "menu", ft(mt($)))
|
|
10392
10393
|
]),
|
|
10393
10394
|
key: "1"
|
|
10394
10395
|
} : void 0,
|
|
10395
|
-
|
|
10396
|
+
R.$slots["sidebar-header"] ? {
|
|
10396
10397
|
name: "sidebar-header",
|
|
10397
|
-
fn: D((
|
|
10398
|
-
H(
|
|
10398
|
+
fn: D(($) => [
|
|
10399
|
+
H(R.$slots, "sidebar-header", ft(mt($)))
|
|
10399
10400
|
]),
|
|
10400
10401
|
key: "2"
|
|
10401
10402
|
} : void 0,
|
|
10402
|
-
|
|
10403
|
+
R.$slots["sidebar-footer"] ? {
|
|
10403
10404
|
name: "sidebar-footer",
|
|
10404
|
-
fn: D((
|
|
10405
|
-
H(
|
|
10405
|
+
fn: D(($) => [
|
|
10406
|
+
H(R.$slots, "sidebar-footer", ft(mt($)))
|
|
10406
10407
|
]),
|
|
10407
10408
|
key: "3"
|
|
10408
10409
|
} : void 0
|
|
10409
10410
|
]), 1064, ["inert-navigation", "logo", "avatar", "user-name", "user-role", "title", "disable-menu", "disable-app-hub", "apps-list", "show-search", "search-placeholder", "onLogo:click", "onItem:click", "onSwitchApp"]))
|
|
10410
10411
|
]),
|
|
10411
|
-
H(
|
|
10412
|
+
H(R.$slots, "workspace", { isAuthenticated: n(h) }, () => [
|
|
10412
10413
|
n(h) ? (s(), m("main", {
|
|
10413
10414
|
key: 0,
|
|
10414
10415
|
ref_key: "workspaceRef",
|
|
@@ -10759,12 +10760,12 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10759
10760
|
}
|
|
10760
10761
|
);
|
|
10761
10762
|
const h = y(() => {
|
|
10762
|
-
const E = b.value.find((S) => S.id === f.value), M = E?.displaySymbol,
|
|
10763
|
-
return
|
|
10763
|
+
const E = b.value.find((S) => S.id === f.value), M = E?.displaySymbol, R = E?.localizedSymbol.values[t.currentLanguage];
|
|
10764
|
+
return R || M;
|
|
10764
10765
|
}), p = y(() => {
|
|
10765
10766
|
const E = {};
|
|
10766
10767
|
t.required && (E.required = !0), t.rules?.min && (E.min = Number(t.rules.min)), t.rules?.max && (E.max = Number(t.rules.max)), t.rules?.regex && (E.regex = new RegExp(t.rules.regex));
|
|
10767
|
-
const M = t.displayNames?.find((
|
|
10768
|
+
const M = t.displayNames?.find(($) => $.languageCode?.startsWith(t.currentLanguage))?.name || t.name, R = M && r(M.toUpperCase()) ? i(M.toUpperCase()) : M, S = t.multilanguage ? "value" : "alias";
|
|
10768
10769
|
return {
|
|
10769
10770
|
rules: E,
|
|
10770
10771
|
valueType: t.valueType,
|
|
@@ -10772,11 +10773,11 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10772
10773
|
multivalue: t.multivalue || !1,
|
|
10773
10774
|
name: t.multilanguage ? t.name + "_" + t.currentLanguage : t.name,
|
|
10774
10775
|
key: t.multilanguage ? u.value.id + "_" + t.currentLanguage : u.value.id,
|
|
10775
|
-
displayName:
|
|
10776
|
+
displayName: R,
|
|
10776
10777
|
optionValue: t.optionsValue,
|
|
10777
10778
|
optionLabel: S,
|
|
10778
10779
|
required: t.required,
|
|
10779
|
-
placeholder: t.placeholder ||
|
|
10780
|
+
placeholder: t.placeholder || R
|
|
10780
10781
|
};
|
|
10781
10782
|
}), k = y(() => t.hideLabel ? "" : p.value.displayName), C = y(() => t.hideLabel ? p.value.displayName : void 0), _ = y(() => ky(p.value)), T = y({
|
|
10782
10783
|
get() {
|
|
@@ -10796,8 +10797,8 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10796
10797
|
if (E.startsWith("#"))
|
|
10797
10798
|
M = E;
|
|
10798
10799
|
else {
|
|
10799
|
-
const
|
|
10800
|
-
|
|
10800
|
+
const R = yo(E);
|
|
10801
|
+
R && (M = R);
|
|
10801
10802
|
}
|
|
10802
10803
|
l("update:model-value", {
|
|
10803
10804
|
value: E,
|
|
@@ -10842,8 +10843,8 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10842
10843
|
if (M?.unitOfMeasureId)
|
|
10843
10844
|
f.value = M.unitOfMeasureId;
|
|
10844
10845
|
else {
|
|
10845
|
-
const
|
|
10846
|
-
f.value =
|
|
10846
|
+
const R = b.value.find((S) => S.isDefault)?.id ?? b.value[0]?.id;
|
|
10847
|
+
f.value = R;
|
|
10847
10848
|
}
|
|
10848
10849
|
}
|
|
10849
10850
|
} finally {
|
|
@@ -10863,13 +10864,13 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10863
10864
|
"model-value": T.value,
|
|
10864
10865
|
rules: p.value.rules
|
|
10865
10866
|
}, {
|
|
10866
|
-
default: D(({ errorMessage:
|
|
10867
|
+
default: D(({ errorMessage: R, errors: S }) => [
|
|
10867
10868
|
_.value === "dictionary" ? (s(), V(n(wt), Le({ key: 0 }, E.$attrs, {
|
|
10868
10869
|
modelValue: T.value,
|
|
10869
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
10870
|
+
"onUpdate:modelValue": M[0] || (M[0] = ($) => T.value = $),
|
|
10870
10871
|
name: p.value.name,
|
|
10871
10872
|
error: !!S.length,
|
|
10872
|
-
"error-message":
|
|
10873
|
+
"error-message": R,
|
|
10873
10874
|
label: k.value,
|
|
10874
10875
|
required: p.value.required,
|
|
10875
10876
|
placeholder: p.value.placeholder,
|
|
@@ -10885,10 +10886,10 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10885
10886
|
onClose: P
|
|
10886
10887
|
}), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : _.value === "short-text-multivalue" ? (s(), V(n(It), Le({ key: 1 }, E.$attrs, {
|
|
10887
10888
|
modelValue: T.value,
|
|
10888
|
-
"onUpdate:modelValue": M[1] || (M[1] = (
|
|
10889
|
+
"onUpdate:modelValue": M[1] || (M[1] = ($) => T.value = $),
|
|
10889
10890
|
name: p.value.name,
|
|
10890
10891
|
error: !!S.length,
|
|
10891
|
-
"error-message":
|
|
10892
|
+
"error-message": R,
|
|
10892
10893
|
label: k.value,
|
|
10893
10894
|
required: p.value.required,
|
|
10894
10895
|
placeholder: E.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.ADD"),
|
|
@@ -10897,10 +10898,10 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10897
10898
|
"current-language": e.currentLanguage
|
|
10898
10899
|
}), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : _.value === "multivalue-dictionary" ? (s(), V(n(It), Le({ key: 2 }, E.$attrs, {
|
|
10899
10900
|
modelValue: T.value,
|
|
10900
|
-
"onUpdate:modelValue": M[2] || (M[2] = (
|
|
10901
|
+
"onUpdate:modelValue": M[2] || (M[2] = ($) => T.value = $),
|
|
10901
10902
|
name: p.value.name,
|
|
10902
10903
|
error: !!S.length,
|
|
10903
|
-
"error-message":
|
|
10904
|
+
"error-message": R,
|
|
10904
10905
|
label: k.value,
|
|
10905
10906
|
required: p.value.required,
|
|
10906
10907
|
placeholder: E.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.ADD"),
|
|
@@ -10916,9 +10917,9 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10916
10917
|
onClose: P
|
|
10917
10918
|
}), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : _.value === "short-text" ? (s(), V(n(Pe), Le({ key: 3 }, E.$attrs, {
|
|
10918
10919
|
modelValue: T.value,
|
|
10919
|
-
"onUpdate:modelValue": M[3] || (M[3] = (
|
|
10920
|
+
"onUpdate:modelValue": M[3] || (M[3] = ($) => T.value = $),
|
|
10920
10921
|
error: !!S.length,
|
|
10921
|
-
"error-message":
|
|
10922
|
+
"error-message": R,
|
|
10922
10923
|
label: k.value,
|
|
10923
10924
|
"aria-label": C.value,
|
|
10924
10925
|
clearable: "",
|
|
@@ -10929,7 +10930,7 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10929
10930
|
loading: c.value
|
|
10930
10931
|
}), null, 16, ["modelValue", "error", "error-message", "label", "aria-label", "required", "placeholder", "disabled", "current-language", "loading"])) : _.value === "number-multivalue" ? (s(), V(n(It), Le({ key: 4 }, E.$attrs, {
|
|
10931
10932
|
modelValue: T.value,
|
|
10932
|
-
"onUpdate:modelValue": M[4] || (M[4] = (
|
|
10933
|
+
"onUpdate:modelValue": M[4] || (M[4] = ($) => T.value = $),
|
|
10933
10934
|
name: p.value.name,
|
|
10934
10935
|
label: k.value,
|
|
10935
10936
|
required: p.value.required,
|
|
@@ -10937,13 +10938,13 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10937
10938
|
disabled: e.disabled,
|
|
10938
10939
|
type: "number",
|
|
10939
10940
|
error: !!S.length,
|
|
10940
|
-
"error-message":
|
|
10941
|
+
"error-message": R,
|
|
10941
10942
|
"option-label": "value",
|
|
10942
10943
|
"option-value": "value",
|
|
10943
10944
|
options: o.value
|
|
10944
10945
|
}), null, 16, ["modelValue", "name", "label", "required", "placeholder", "disabled", "error", "error-message", "options"])) : _.value === "integer-multivalue" ? (s(), V(n(It), Le({ key: 5 }, E.$attrs, {
|
|
10945
10946
|
modelValue: T.value,
|
|
10946
|
-
"onUpdate:modelValue": M[5] || (M[5] = (
|
|
10947
|
+
"onUpdate:modelValue": M[5] || (M[5] = ($) => T.value = $),
|
|
10947
10948
|
name: p.value.name,
|
|
10948
10949
|
label: k.value,
|
|
10949
10950
|
required: p.value.required,
|
|
@@ -10951,15 +10952,15 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10951
10952
|
disabled: e.disabled,
|
|
10952
10953
|
type: "integer",
|
|
10953
10954
|
error: !!S.length,
|
|
10954
|
-
"error-message":
|
|
10955
|
+
"error-message": R,
|
|
10955
10956
|
"option-label": "value",
|
|
10956
10957
|
"option-value": "value",
|
|
10957
10958
|
options: o.value
|
|
10958
10959
|
}), null, 16, ["modelValue", "name", "label", "required", "placeholder", "disabled", "error", "error-message", "options"])) : _.value === "number" ? (s(), V(n(Pe), Le({ key: 6 }, E.$attrs, {
|
|
10959
10960
|
modelValue: T.value,
|
|
10960
|
-
"onUpdate:modelValue": M[6] || (M[6] = (
|
|
10961
|
+
"onUpdate:modelValue": M[6] || (M[6] = ($) => T.value = $),
|
|
10961
10962
|
error: !!S.length,
|
|
10962
|
-
"error-message":
|
|
10963
|
+
"error-message": R,
|
|
10963
10964
|
label: k.value,
|
|
10964
10965
|
"aria-label": C.value,
|
|
10965
10966
|
clearable: "",
|
|
@@ -10970,9 +10971,9 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10970
10971
|
loading: c.value
|
|
10971
10972
|
}), null, 16, ["modelValue", "error", "error-message", "label", "aria-label", "required", "placeholder", "disabled", "loading"])) : _.value === "integer" ? (s(), V(n(Pe), Le({ key: 7 }, E.$attrs, {
|
|
10972
10973
|
modelValue: T.value,
|
|
10973
|
-
"onUpdate:modelValue": M[7] || (M[7] = (
|
|
10974
|
+
"onUpdate:modelValue": M[7] || (M[7] = ($) => T.value = $),
|
|
10974
10975
|
error: !!S.length,
|
|
10975
|
-
"error-message":
|
|
10976
|
+
"error-message": R,
|
|
10976
10977
|
label: k.value,
|
|
10977
10978
|
"aria-label": C.value,
|
|
10978
10979
|
clearable: "",
|
|
@@ -10984,9 +10985,9 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10984
10985
|
loading: c.value
|
|
10985
10986
|
}), null, 16, ["modelValue", "error", "error-message", "label", "aria-label", "required", "placeholder", "disabled", "loading"])) : _.value === "datetime" ? (s(), V(n(Pe), Le({ key: 8 }, E.$attrs, {
|
|
10986
10987
|
modelValue: T.value,
|
|
10987
|
-
"onUpdate:modelValue": M[8] || (M[8] = (
|
|
10988
|
+
"onUpdate:modelValue": M[8] || (M[8] = ($) => T.value = $),
|
|
10988
10989
|
error: !!S.length,
|
|
10989
|
-
"error-message":
|
|
10990
|
+
"error-message": R,
|
|
10990
10991
|
label: k.value,
|
|
10991
10992
|
"aria-label": C.value,
|
|
10992
10993
|
type: "datetime-local",
|
|
@@ -10997,8 +10998,8 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
10997
10998
|
clearable: ""
|
|
10998
10999
|
}), null, 16, ["modelValue", "error", "error-message", "label", "aria-label", "required", "placeholder", "disabled", "loading"])) : _.value === "long-text" ? (s(), V(n(yf), Le({ key: 9 }, E.$attrs, {
|
|
10999
11000
|
modelValue: T.value,
|
|
11000
|
-
"onUpdate:modelValue": M[9] || (M[9] = (
|
|
11001
|
-
"error-message":
|
|
11001
|
+
"onUpdate:modelValue": M[9] || (M[9] = ($) => T.value = $),
|
|
11002
|
+
"error-message": R,
|
|
11002
11003
|
label: k.value,
|
|
11003
11004
|
"aria-label": C.value,
|
|
11004
11005
|
required: p.value.required,
|
|
@@ -11007,8 +11008,8 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11007
11008
|
"current-language": e.currentLanguage
|
|
11008
11009
|
}), null, 16, ["modelValue", "error-message", "label", "aria-label", "required", "placeholder", "disabled", "current-language"])) : _.value === "boolean" ? (s(), V(n(oi), Le({ key: 10 }, E.$attrs, {
|
|
11009
11010
|
modelValue: T.value,
|
|
11010
|
-
"onUpdate:modelValue": M[10] || (M[10] = (
|
|
11011
|
-
"error-message":
|
|
11011
|
+
"onUpdate:modelValue": M[10] || (M[10] = ($) => T.value = $),
|
|
11012
|
+
"error-message": R,
|
|
11012
11013
|
required: p.value.required,
|
|
11013
11014
|
disabled: e.disabled,
|
|
11014
11015
|
name: p.value.name,
|
|
@@ -11016,10 +11017,10 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11016
11017
|
"aria-label": C.value
|
|
11017
11018
|
}), null, 16, ["modelValue", "error-message", "required", "disabled", "name", "label", "aria-label"])) : _.value === "measure" ? (s(), V(n(ks), Le({ key: 11 }, E.$attrs, {
|
|
11018
11019
|
modelValue: T.value,
|
|
11019
|
-
"onUpdate:modelValue": M[11] || (M[11] = (
|
|
11020
|
+
"onUpdate:modelValue": M[11] || (M[11] = ($) => T.value = $),
|
|
11020
11021
|
option: f.value,
|
|
11021
11022
|
"onUpdate:option": [
|
|
11022
|
-
M[12] || (M[12] = (
|
|
11023
|
+
M[12] || (M[12] = ($) => f.value = $),
|
|
11023
11024
|
B
|
|
11024
11025
|
],
|
|
11025
11026
|
options: b.value,
|
|
@@ -11035,25 +11036,25 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11035
11036
|
required: p.value.required,
|
|
11036
11037
|
disabled: e.disabled
|
|
11037
11038
|
}), {
|
|
11038
|
-
button: D((
|
|
11039
|
+
button: D(($) => [
|
|
11039
11040
|
w("button", {
|
|
11040
11041
|
class: "vc-input-dropdown__toggle-button",
|
|
11041
11042
|
tabindex: "0",
|
|
11042
|
-
onClick: me(
|
|
11043
|
+
onClick: me($.toggleHandler, ["stop", "prevent"]),
|
|
11043
11044
|
onKeydown: [
|
|
11044
|
-
Me(me(
|
|
11045
|
-
Me(me(
|
|
11045
|
+
Me(me($.toggleHandler, ["stop", "prevent"]), ["enter"]),
|
|
11046
|
+
Me(me($.toggleHandler, ["stop", "prevent"]), ["space"])
|
|
11046
11047
|
]
|
|
11047
11048
|
}, z(h.value), 41, Ey)
|
|
11048
11049
|
]),
|
|
11049
11050
|
_: 1
|
|
11050
11051
|
}, 16, ["modelValue", "option", "options", "loading", "multilanguage", "current-language", "label", "aria-label", "placeholder", "required", "disabled"])) : _.value === "color-multivalue" ? (s(), V(n(It), Le({ key: 12 }, E.$attrs, {
|
|
11051
11052
|
modelValue: T.value,
|
|
11052
|
-
"onUpdate:modelValue": M[13] || (M[13] = (
|
|
11053
|
+
"onUpdate:modelValue": M[13] || (M[13] = ($) => T.value = $),
|
|
11053
11054
|
type: "color",
|
|
11054
11055
|
name: p.value.name,
|
|
11055
11056
|
error: !!S.length,
|
|
11056
|
-
"error-message":
|
|
11057
|
+
"error-message": R,
|
|
11057
11058
|
label: k.value,
|
|
11058
11059
|
required: p.value.required,
|
|
11059
11060
|
placeholder: E.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.VALUE_TYPE.COLOR.NAME"),
|
|
@@ -11064,10 +11065,10 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11064
11065
|
"option-value": "value"
|
|
11065
11066
|
}), null, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language"])) : _.value === "color-multivalue-dictionary" ? (s(), V(n(It), Le({ key: 13 }, E.$attrs, {
|
|
11066
11067
|
modelValue: T.value,
|
|
11067
|
-
"onUpdate:modelValue": M[14] || (M[14] = (
|
|
11068
|
+
"onUpdate:modelValue": M[14] || (M[14] = ($) => T.value = $),
|
|
11068
11069
|
name: p.value.name,
|
|
11069
11070
|
error: !!S.length,
|
|
11070
|
-
"error-message":
|
|
11071
|
+
"error-message": R,
|
|
11071
11072
|
label: k.value,
|
|
11072
11073
|
required: p.value.required,
|
|
11073
11074
|
placeholder: E.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.ADD"),
|
|
@@ -11082,40 +11083,40 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11082
11083
|
onSearch: I,
|
|
11083
11084
|
onClose: P
|
|
11084
11085
|
}), {
|
|
11085
|
-
"selected-item": D((
|
|
11086
|
+
"selected-item": D(($) => [
|
|
11086
11087
|
w("div", _y, [
|
|
11087
11088
|
w("div", {
|
|
11088
11089
|
class: "tw-w-5 tw-h-5 tw-rounded tw-border tw-border-solid tw-border-neutrals-300",
|
|
11089
|
-
style: ye({ backgroundColor:
|
|
11090
|
+
style: ye({ backgroundColor: $.item.colorCode })
|
|
11090
11091
|
}, null, 4),
|
|
11091
|
-
w("span", null, z(
|
|
11092
|
+
w("span", null, z($.item.value), 1)
|
|
11092
11093
|
])
|
|
11093
11094
|
]),
|
|
11094
|
-
option: D((
|
|
11095
|
+
option: D(($) => [
|
|
11095
11096
|
w("div", Sy, [
|
|
11096
11097
|
w("div", {
|
|
11097
11098
|
class: "tw-w-5 tw-h-5 tw-rounded tw-border tw-border-solid tw-border-neutrals-300",
|
|
11098
|
-
style: ye({ backgroundColor:
|
|
11099
|
+
style: ye({ backgroundColor: $.item.colorCode })
|
|
11099
11100
|
}, null, 4),
|
|
11100
|
-
w("span", null, z(
|
|
11101
|
+
w("span", null, z($.item.value), 1)
|
|
11101
11102
|
])
|
|
11102
11103
|
]),
|
|
11103
11104
|
_: 1
|
|
11104
11105
|
}, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "disabled", "multilanguage", "current-language", "options", "option-label", "option-value", "multivalue", "loading"])) : _.value === "color" ? (s(), V(n(Pe), Le({ key: 14 }, E.$attrs, {
|
|
11105
11106
|
modelValue: T.value,
|
|
11106
|
-
"onUpdate:modelValue": M[15] || (M[15] = (
|
|
11107
|
+
"onUpdate:modelValue": M[15] || (M[15] = ($) => T.value = $),
|
|
11107
11108
|
type: "color",
|
|
11108
11109
|
label: k.value,
|
|
11109
11110
|
"aria-label": C.value,
|
|
11110
11111
|
error: !!S.length,
|
|
11111
|
-
"error-message":
|
|
11112
|
+
"error-message": R,
|
|
11112
11113
|
placeholder: E.$t("COMPONENTS.ORGANISMS.VC_DYNAMIC_PROPERTY.VALUE_TYPE.COLOR.NAME")
|
|
11113
11114
|
}), null, 16, ["modelValue", "label", "aria-label", "error", "error-message", "placeholder"])) : _.value === "color-dictionary" ? (s(), V(n(wt), Le({ key: 15 }, E.$attrs, {
|
|
11114
11115
|
modelValue: T.value,
|
|
11115
|
-
"onUpdate:modelValue": M[16] || (M[16] = (
|
|
11116
|
+
"onUpdate:modelValue": M[16] || (M[16] = ($) => T.value = $),
|
|
11116
11117
|
name: p.value.name,
|
|
11117
11118
|
error: !!S.length,
|
|
11118
|
-
"error-message":
|
|
11119
|
+
"error-message": R,
|
|
11119
11120
|
label: k.value,
|
|
11120
11121
|
required: p.value.required,
|
|
11121
11122
|
placeholder: p.value.placeholder,
|
|
@@ -11130,31 +11131,31 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11130
11131
|
onSearch: I,
|
|
11131
11132
|
onClose: P
|
|
11132
11133
|
}), {
|
|
11133
|
-
"selected-item": D((
|
|
11134
|
+
"selected-item": D(($) => [
|
|
11134
11135
|
w("div", $y, [
|
|
11135
11136
|
w("div", {
|
|
11136
11137
|
class: "tw-w-5 tw-h-5 tw-rounded tw-border tw-border-solid tw-border-neutrals-300",
|
|
11137
|
-
style: ye({ backgroundColor:
|
|
11138
|
+
style: ye({ backgroundColor: $.opt.colorCode })
|
|
11138
11139
|
}, null, 4),
|
|
11139
|
-
w("span", null, z(
|
|
11140
|
+
w("span", null, z($.opt.value), 1)
|
|
11140
11141
|
])
|
|
11141
11142
|
]),
|
|
11142
|
-
option: D((
|
|
11143
|
+
option: D(($) => [
|
|
11143
11144
|
w("div", Ry, [
|
|
11144
11145
|
w("div", {
|
|
11145
11146
|
class: "tw-w-5 tw-h-5 tw-rounded tw-border tw-border-solid tw-border-neutrals-300",
|
|
11146
|
-
style: ye({ backgroundColor:
|
|
11147
|
+
style: ye({ backgroundColor: $.opt.colorCode })
|
|
11147
11148
|
}, null, 4),
|
|
11148
|
-
w("span", null, z(
|
|
11149
|
+
w("span", null, z($.opt.value), 1)
|
|
11149
11150
|
])
|
|
11150
11151
|
]),
|
|
11151
11152
|
_: 1
|
|
11152
11153
|
}, 16, ["modelValue", "name", "error", "error-message", "label", "required", "placeholder", "options", "option-value", "option-label", "disabled", "multilanguage", "current-language", "loading"])) : (s(), V(n(Pe), Le({ key: 16 }, E.$attrs, {
|
|
11153
11154
|
modelValue: T.value,
|
|
11154
|
-
"onUpdate:modelValue": M[17] || (M[17] = (
|
|
11155
|
+
"onUpdate:modelValue": M[17] || (M[17] = ($) => T.value = $),
|
|
11155
11156
|
name: p.value.name,
|
|
11156
11157
|
error: !!S.length,
|
|
11157
|
-
"error-message":
|
|
11158
|
+
"error-message": R,
|
|
11158
11159
|
label: k.value,
|
|
11159
11160
|
"aria-label": C.value,
|
|
11160
11161
|
placeholder: p.value.placeholder,
|
|
@@ -11486,14 +11487,14 @@ const Ey = ["onClick", "onKeydown"], _y = { class: "tw-flex tw-items-center tw-g
|
|
|
11486
11487
|
w("button", {
|
|
11487
11488
|
type: "button",
|
|
11488
11489
|
class: Q(["vc-gallery-preview__thumb", { "vc-gallery-preview__thumb--active": M === o.value }]),
|
|
11489
|
-
onClick: (
|
|
11490
|
+
onClick: (R) => k(M)
|
|
11490
11491
|
}, [
|
|
11491
11492
|
w("img", {
|
|
11492
11493
|
src: n(wo)(E.url, "64x64") ?? E.url,
|
|
11493
11494
|
alt: E.name || "",
|
|
11494
11495
|
loading: "lazy",
|
|
11495
11496
|
class: "vc-gallery-preview__thumb-img",
|
|
11496
|
-
onError: (
|
|
11497
|
+
onError: (R) => T(R, E.url)
|
|
11497
11498
|
}, null, 40, Uy)
|
|
11498
11499
|
], 10, Fy)
|
|
11499
11500
|
]),
|
|
@@ -11778,19 +11779,19 @@ const Zy = {
|
|
|
11778
11779
|
M && (M.allowTouchMove = !0, M.update());
|
|
11779
11780
|
},
|
|
11780
11781
|
onDragEdge: (M) => {
|
|
11781
|
-
const
|
|
11782
|
-
if (
|
|
11783
|
-
const S = 40,
|
|
11782
|
+
const R = C.swiperRef.value;
|
|
11783
|
+
if (!R) return;
|
|
11784
|
+
const S = 40, $ = R.getTranslate(), O = R.minTranslate(), U = R.maxTranslate();
|
|
11784
11785
|
if (M === 1) {
|
|
11785
|
-
const q = Math.max(
|
|
11786
|
-
|
|
11786
|
+
const q = Math.max($ - S, U);
|
|
11787
|
+
R.setTranslate(q), R.update();
|
|
11787
11788
|
} else if (M === -1) {
|
|
11788
|
-
const q = Math.min(
|
|
11789
|
-
|
|
11789
|
+
const q = Math.min($ + S, O);
|
|
11790
|
+
R.setTranslate(q), R.update();
|
|
11790
11791
|
}
|
|
11791
11792
|
}
|
|
11792
11793
|
}), f = Xy(u, {
|
|
11793
|
-
onUpload: (M,
|
|
11794
|
+
onUpload: (M, R) => l("upload", M, R)
|
|
11794
11795
|
}), h = gi(u), p = { sm: "128x128", md: "216x216", lg: "348x348" }, k = y(() => t.thumbnailSize ?? p[t.size]), C = Qy({
|
|
11795
11796
|
imageCount: y(() => u.value.length)
|
|
11796
11797
|
}), _ = N();
|
|
@@ -11798,8 +11799,8 @@ const Zy = {
|
|
|
11798
11799
|
_.value?.click();
|
|
11799
11800
|
}
|
|
11800
11801
|
function B(M) {
|
|
11801
|
-
const
|
|
11802
|
-
|
|
11802
|
+
const R = M.target;
|
|
11803
|
+
R.files && R.files.length && (f.onUpload(R.files), R.value = "");
|
|
11803
11804
|
}
|
|
11804
11805
|
const F = N(!1);
|
|
11805
11806
|
let A = 0;
|
|
@@ -11811,10 +11812,10 @@ const Zy = {
|
|
|
11811
11812
|
}
|
|
11812
11813
|
function E(M) {
|
|
11813
11814
|
F.value = !1, A = 0;
|
|
11814
|
-
const
|
|
11815
|
-
|
|
11815
|
+
const R = M.dataTransfer?.files;
|
|
11816
|
+
R && R.length && f.onUpload(R);
|
|
11816
11817
|
}
|
|
11817
|
-
return (M,
|
|
11818
|
+
return (M, R) => n(o) ? (s(), m("div", Zy, [
|
|
11818
11819
|
e.label ? (s(), V(n(Ce), {
|
|
11819
11820
|
key: 0,
|
|
11820
11821
|
variant: "block",
|
|
@@ -11840,8 +11841,8 @@ const Zy = {
|
|
|
11840
11841
|
placeholder: d.value,
|
|
11841
11842
|
removable: e.itemActions?.remove !== !1,
|
|
11842
11843
|
previewable: e.itemActions?.preview !== !1,
|
|
11843
|
-
onUpload:
|
|
11844
|
-
onRemove:
|
|
11844
|
+
onUpload: R[0] || (R[0] = (S) => l("upload", S)),
|
|
11845
|
+
onRemove: R[1] || (R[1] = (S) => l("remove", S))
|
|
11845
11846
|
}, null, 8, ["image", "disabled", "loading", "rules", "name", "icon", "accept", "placeholder", "removable", "previewable"])) : (s(), m("div", {
|
|
11846
11847
|
key: 2,
|
|
11847
11848
|
class: Q(["vc-gallery", {
|
|
@@ -11853,7 +11854,7 @@ const Zy = {
|
|
|
11853
11854
|
style: ye({ "--gallery-gap": `${e.gap}px` }),
|
|
11854
11855
|
onDragenter: me(I, ["prevent"]),
|
|
11855
11856
|
onDragleave: me(P, ["prevent"]),
|
|
11856
|
-
onDragover:
|
|
11857
|
+
onDragover: R[8] || (R[8] = me(() => {
|
|
11857
11858
|
}, ["prevent"])),
|
|
11858
11859
|
onDrop: me(E, ["prevent"])
|
|
11859
11860
|
}, [
|
|
@@ -11910,16 +11911,16 @@ const Zy = {
|
|
|
11910
11911
|
onSwiperInit: n(C).onSwiperInit,
|
|
11911
11912
|
onSwiperResize: n(C).onSwiperResize,
|
|
11912
11913
|
onSlidesUpdated: n(C).checkOverflow,
|
|
11913
|
-
onSortableContainer:
|
|
11914
|
+
onSortableContainer: R[4] || (R[4] = (S) => {
|
|
11914
11915
|
n(g).galleryRef.value = S;
|
|
11915
11916
|
})
|
|
11916
11917
|
}, {
|
|
11917
|
-
item: D(({ image: S, index:
|
|
11918
|
+
item: D(({ image: S, index: $ }) => [
|
|
11918
11919
|
H(M.$slots, "item", {
|
|
11919
11920
|
image: S,
|
|
11920
|
-
index:
|
|
11921
|
+
index: $,
|
|
11921
11922
|
actions: {
|
|
11922
|
-
preview: () => n(h).openPreview(
|
|
11923
|
+
preview: () => n(h).openPreview($),
|
|
11923
11924
|
edit: () => l("edit", S),
|
|
11924
11925
|
remove: () => l("remove", S)
|
|
11925
11926
|
}
|
|
@@ -11931,9 +11932,9 @@ const Zy = {
|
|
|
11931
11932
|
"disable-drag": n(i) || n(g).disableDrag.value,
|
|
11932
11933
|
"image-fit": e.imagefit,
|
|
11933
11934
|
"thumbnail-size": k.value,
|
|
11934
|
-
onPreview: (O) => n(h).openPreview(
|
|
11935
|
-
onEdit:
|
|
11936
|
-
onRemove:
|
|
11935
|
+
onPreview: (O) => n(h).openPreview($),
|
|
11936
|
+
onEdit: R[2] || (R[2] = (O) => l("edit", O)),
|
|
11937
|
+
onRemove: R[3] || (R[3] = (O) => l("remove", O))
|
|
11937
11938
|
}, null, 8, ["image", "readonly", "actions", "disable-drag", "image-fit", "thumbnail-size", "onPreview"])
|
|
11938
11939
|
])
|
|
11939
11940
|
]),
|
|
@@ -11945,15 +11946,15 @@ const Zy = {
|
|
|
11945
11946
|
},
|
|
11946
11947
|
class: "vc-gallery__grid"
|
|
11947
11948
|
}, [
|
|
11948
|
-
(s(!0), m(J, null, ve(u.value, (S,
|
|
11949
|
-
key: `img_${S.id ||
|
|
11949
|
+
(s(!0), m(J, null, ve(u.value, (S, $) => (s(), m("div", {
|
|
11950
|
+
key: `img_${S.id || $}`,
|
|
11950
11951
|
class: "vc-gallery__item"
|
|
11951
11952
|
}, [
|
|
11952
11953
|
H(M.$slots, "item", {
|
|
11953
11954
|
image: S,
|
|
11954
|
-
index:
|
|
11955
|
+
index: $,
|
|
11955
11956
|
actions: {
|
|
11956
|
-
preview: () => n(h).openPreview(
|
|
11957
|
+
preview: () => n(h).openPreview($),
|
|
11957
11958
|
edit: () => l("edit", S),
|
|
11958
11959
|
remove: () => l("remove", S)
|
|
11959
11960
|
}
|
|
@@ -11965,9 +11966,9 @@ const Zy = {
|
|
|
11965
11966
|
"disable-drag": n(g).disableDrag.value,
|
|
11966
11967
|
"image-fit": e.imagefit,
|
|
11967
11968
|
"thumbnail-size": k.value,
|
|
11968
|
-
onPreview: (O) => n(h).openPreview(
|
|
11969
|
-
onEdit:
|
|
11970
|
-
onRemove:
|
|
11969
|
+
onPreview: (O) => n(h).openPreview($),
|
|
11970
|
+
onEdit: R[5] || (R[5] = (O) => l("edit", O)),
|
|
11971
|
+
onRemove: R[6] || (R[6] = (O) => l("remove", O))
|
|
11971
11972
|
}, null, 8, ["image", "readonly", "actions", "disable-drag", "image-fit", "thumbnail-size", "onPreview"])
|
|
11972
11973
|
])
|
|
11973
11974
|
]))), 128))
|
|
@@ -11976,7 +11977,7 @@ const Zy = {
|
|
|
11976
11977
|
key: 2,
|
|
11977
11978
|
type: "button",
|
|
11978
11979
|
class: Q(["vc-gallery__expand-toggle", { "vc-gallery__expand-toggle--open": n(C).isExpanded.value }]),
|
|
11979
|
-
onClick:
|
|
11980
|
+
onClick: R[7] || (R[7] = (S) => n(C).toggleExpand())
|
|
11980
11981
|
}, [
|
|
11981
11982
|
n(C).isExpanded.value ? (s(), m(J, { key: 0 }, [
|
|
11982
11983
|
fe(z(n(r)("COMPONENTS.ORGANISMS.VC_GALLERY.COLLAPSE")), 1)
|
|
@@ -12140,8 +12141,8 @@ const fw = /* @__PURE__ */ Eo(uw, [["render", vw]]), mw = ["data-items-count"],
|
|
|
12140
12141
|
tabindex: c.value ? 0 : void 0,
|
|
12141
12142
|
onClick: u,
|
|
12142
12143
|
onKeydown: [
|
|
12143
|
-
h[0] || (h[0] = Me(me((p) => c.value && u(p), ["prevent"]), ["enter"])),
|
|
12144
|
-
h[1] || (h[1] = Me(me((p) => v(p), ["prevent"]), ["space"]))
|
|
12144
|
+
h[0] || (h[0] = Me(me((p) => c.value && u(p), ["self", "prevent"]), ["enter"])),
|
|
12145
|
+
h[1] || (h[1] = Me(me((p) => v(p), ["self", "prevent"]), ["space"]))
|
|
12145
12146
|
],
|
|
12146
12147
|
onMouseenter: b,
|
|
12147
12148
|
onMouseleave: g
|
|
@@ -12508,19 +12509,19 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12508
12509
|
}, A = async () => {
|
|
12509
12510
|
i.value || (i.value = !0, await Re(), o.value = !0), F();
|
|
12510
12511
|
}, I = (S) => {
|
|
12511
|
-
const
|
|
12512
|
+
const $ = Array.from(
|
|
12512
12513
|
d.value?.querySelectorAll('[role="menuitem"]:not([aria-disabled])') || []
|
|
12513
12514
|
);
|
|
12514
|
-
if (
|
|
12515
|
-
const O =
|
|
12515
|
+
if (!$.length) return;
|
|
12516
|
+
const O = $.indexOf(document.activeElement);
|
|
12516
12517
|
if (S.key === "ArrowDown") {
|
|
12517
12518
|
S.preventDefault();
|
|
12518
|
-
const U = O <
|
|
12519
|
-
|
|
12519
|
+
const U = O < $.length - 1 ? O + 1 : 0;
|
|
12520
|
+
$[U]?.focus();
|
|
12520
12521
|
} else if (S.key === "ArrowUp") {
|
|
12521
12522
|
S.preventDefault();
|
|
12522
|
-
const U = O > 0 ? O - 1 :
|
|
12523
|
-
|
|
12523
|
+
const U = O > 0 ? O - 1 : $.length - 1;
|
|
12524
|
+
$[U]?.focus();
|
|
12524
12525
|
} else S.key === "Escape" ? (S.preventDefault(), T()) : S.key === "Tab" && T();
|
|
12525
12526
|
}, P = (S) => {
|
|
12526
12527
|
S.key === "Escape" && i.value && T();
|
|
@@ -12528,19 +12529,19 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12528
12529
|
let E = !1;
|
|
12529
12530
|
const M = () => {
|
|
12530
12531
|
E || typeof document > "u" || (document.addEventListener("keydown", P), E = !0);
|
|
12531
|
-
},
|
|
12532
|
+
}, R = () => {
|
|
12532
12533
|
!E || typeof document > "u" || (document.removeEventListener("keydown", P), E = !1);
|
|
12533
12534
|
};
|
|
12534
12535
|
return ne(i, (S) => {
|
|
12535
|
-
S ? M() :
|
|
12536
|
+
S ? M() : R();
|
|
12536
12537
|
}), He(() => {
|
|
12537
|
-
|
|
12538
|
-
}), (S,
|
|
12538
|
+
R();
|
|
12539
|
+
}), (S, $) => Xe((s(), m("div", {
|
|
12539
12540
|
class: Q(["vc-table-row-actions", {
|
|
12540
12541
|
"vc-table-row-actions--dropdown-mode": f.value,
|
|
12541
12542
|
"vc-table-row-actions--column": e.position === "column"
|
|
12542
12543
|
}]),
|
|
12543
|
-
onClick:
|
|
12544
|
+
onClick: $[3] || ($[3] = me(() => {
|
|
12544
12545
|
}, ["stop"]))
|
|
12545
12546
|
}, [
|
|
12546
12547
|
f.value ? x("", !0) : (s(!0), m(J, { key: 0 }, ve(h.value, (O, U) => (s(), m("div", {
|
|
@@ -12571,7 +12572,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12571
12572
|
ref_key: "referenceRef",
|
|
12572
12573
|
ref: c,
|
|
12573
12574
|
class: "vc-table-row-actions__overflow",
|
|
12574
|
-
onClick:
|
|
12575
|
+
onClick: $[2] || ($[2] = me(() => {
|
|
12575
12576
|
}, ["stop"]))
|
|
12576
12577
|
}, [
|
|
12577
12578
|
w("button", {
|
|
@@ -12584,7 +12585,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12584
12585
|
"aria-expanded": i.value,
|
|
12585
12586
|
onClick: me(_, ["stop", "prevent"]),
|
|
12586
12587
|
onKeydown: Me(me(A, ["prevent"]), ["down"]),
|
|
12587
|
-
onMousedown:
|
|
12588
|
+
onMousedown: $[0] || ($[0] = me(() => {
|
|
12588
12589
|
}, ["stop"]))
|
|
12589
12590
|
}, [
|
|
12590
12591
|
L(n(ae), {
|
|
@@ -12609,7 +12610,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12609
12610
|
role: "menu",
|
|
12610
12611
|
class: "vc-table-row-actions__dropdown",
|
|
12611
12612
|
style: ye(n(C)),
|
|
12612
|
-
onClick:
|
|
12613
|
+
onClick: $[1] || ($[1] = me(() => {
|
|
12613
12614
|
}, ["stop"])),
|
|
12614
12615
|
onKeydown: I
|
|
12615
12616
|
}, [
|
|
@@ -12929,24 +12930,24 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12929
12930
|
setup(e, { emit: a }) {
|
|
12930
12931
|
const t = e, l = a, r = N(null), i = N(null), o = N(null), c = N(null), d = N(!1), u = N(null), v = N(""), b = N(""), g = () => {
|
|
12931
12932
|
if (t.filterType === "dateRange" && t.modelValue && typeof t.modelValue == "object" && !Array.isArray(t.modelValue)) {
|
|
12932
|
-
const
|
|
12933
|
-
v.value =
|
|
12933
|
+
const $ = t.modelValue;
|
|
12934
|
+
v.value = $.start ?? "", b.value = $.end ?? "", u.value = null;
|
|
12934
12935
|
} else
|
|
12935
12936
|
u.value = t.modelValue ?? null, v.value = "", b.value = "";
|
|
12936
|
-
}, f = (
|
|
12937
|
-
u.value =
|
|
12938
|
-
}, h = (
|
|
12939
|
-
v.value =
|
|
12940
|
-
}, p = (
|
|
12941
|
-
b.value =
|
|
12937
|
+
}, f = ($) => {
|
|
12938
|
+
u.value = $;
|
|
12939
|
+
}, h = ($) => {
|
|
12940
|
+
v.value = $;
|
|
12941
|
+
}, p = ($) => {
|
|
12942
|
+
b.value = $;
|
|
12942
12943
|
}, k = y(() => {
|
|
12943
|
-
const
|
|
12944
|
-
return
|
|
12944
|
+
const $ = t.modelValue;
|
|
12945
|
+
return $ == null || $ === "" || Array.isArray($) && $.length === 0 ? !1 : typeof $ == "object" && !Array.isArray($) ? Object.values($).some((O) => O != null && O !== "") : !0;
|
|
12945
12946
|
}), C = N({}), _ = () => {
|
|
12946
12947
|
if (!r.value || !i.value) return;
|
|
12947
|
-
const
|
|
12948
|
-
let U =
|
|
12949
|
-
q + O.width > window.innerWidth && (q = window.innerWidth - O.width - 8), U + O.height > window.innerHeight && (U =
|
|
12948
|
+
const $ = r.value.getBoundingClientRect(), O = i.value.getBoundingClientRect();
|
|
12949
|
+
let U = $.bottom + 4, q = $.left;
|
|
12950
|
+
q + O.width > window.innerWidth && (q = window.innerWidth - O.width - 8), U + O.height > window.innerHeight && (U = $.top - O.height - 4), C.value = {
|
|
12950
12951
|
top: `${U}px`,
|
|
12951
12952
|
left: `${q}px`
|
|
12952
12953
|
};
|
|
@@ -12962,49 +12963,49 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
12962
12963
|
d.value = !1, Re(() => {
|
|
12963
12964
|
c.value?.$el?.focus();
|
|
12964
12965
|
});
|
|
12965
|
-
}, F = (
|
|
12966
|
-
if (
|
|
12967
|
-
|
|
12966
|
+
}, F = ($) => {
|
|
12967
|
+
if ($.key === "Escape") {
|
|
12968
|
+
$.preventDefault(), $.stopPropagation(), B();
|
|
12968
12969
|
return;
|
|
12969
12970
|
}
|
|
12970
|
-
if (
|
|
12971
|
+
if ($.key !== "Tab" || !i.value) return;
|
|
12971
12972
|
const O = i.value.querySelectorAll(
|
|
12972
12973
|
'input, select, textarea, button, [tabindex]:not([tabindex="-1"])'
|
|
12973
12974
|
);
|
|
12974
12975
|
if (O.length === 0) return;
|
|
12975
12976
|
const U = O[0], q = O[O.length - 1];
|
|
12976
|
-
|
|
12977
|
+
$.shiftKey && document.activeElement === U ? ($.preventDefault(), q.focus()) : !$.shiftKey && document.activeElement === q && ($.preventDefault(), U.focus());
|
|
12977
12978
|
}, A = () => {
|
|
12978
|
-
const
|
|
12979
|
+
const $ = {};
|
|
12979
12980
|
if (t.filterType === "dateRange" && t.rangeFields)
|
|
12980
|
-
v.value && (
|
|
12981
|
+
v.value && ($[t.rangeFields[0]] = v.value), b.value && ($[t.rangeFields[1]] = b.value);
|
|
12981
12982
|
else {
|
|
12982
12983
|
const O = u.value;
|
|
12983
|
-
O != null && O !== "" && (Array.isArray(O) && O.length === 0 || (
|
|
12984
|
+
O != null && O !== "" && (Array.isArray(O) && O.length === 0 || ($[t.field] = O));
|
|
12984
12985
|
}
|
|
12985
|
-
return
|
|
12986
|
+
return $;
|
|
12986
12987
|
}, I = () => {
|
|
12987
12988
|
l("apply", A()), B();
|
|
12988
12989
|
}, P = () => {
|
|
12989
12990
|
u.value = null, v.value = "", b.value = "", l("clear"), B();
|
|
12990
|
-
}, E = (
|
|
12991
|
+
}, E = ($) => {
|
|
12991
12992
|
if (!d.value) return;
|
|
12992
|
-
const O =
|
|
12993
|
+
const O = $.target;
|
|
12993
12994
|
r.value?.contains(O) || i.value?.contains(O) || O.closest(".vc-select__dropdown") || O.closest(".vc-select__option") || B();
|
|
12994
12995
|
};
|
|
12995
12996
|
let M = !1;
|
|
12996
|
-
const
|
|
12997
|
+
const R = () => {
|
|
12997
12998
|
M || typeof window > "u" || typeof document > "u" || (document.addEventListener("click", E), window.addEventListener("resize", _), window.addEventListener("scroll", _, !0), M = !0);
|
|
12998
12999
|
}, S = () => {
|
|
12999
13000
|
!M || typeof window > "u" || typeof document > "u" || (document.removeEventListener("click", E), window.removeEventListener("resize", _), window.removeEventListener("scroll", _, !0), M = !1);
|
|
13000
13001
|
};
|
|
13001
|
-
return ne(d, (
|
|
13002
|
-
|
|
13002
|
+
return ne(d, ($) => {
|
|
13003
|
+
$ ? (g(), R(), Re(() => {
|
|
13003
13004
|
_();
|
|
13004
13005
|
})) : S();
|
|
13005
13006
|
}), He(() => {
|
|
13006
13007
|
S();
|
|
13007
|
-
}), (
|
|
13008
|
+
}), ($, O) => (s(), m("div", {
|
|
13008
13009
|
ref_key: "filterRef",
|
|
13009
13010
|
ref: r,
|
|
13010
13011
|
class: "vc-column-filter"
|
|
@@ -13017,7 +13018,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13017
13018
|
icon: "lucide-funnel",
|
|
13018
13019
|
"icon-size": "xs",
|
|
13019
13020
|
class: Q(["vc-column-filter__trigger", { "vc-column-filter__trigger--active": k.value }]),
|
|
13020
|
-
"aria-label":
|
|
13021
|
+
"aria-label": $.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TITLE"),
|
|
13021
13022
|
"aria-expanded": d.value,
|
|
13022
13023
|
"aria-haspopup": "dialog",
|
|
13023
13024
|
onClick: T
|
|
@@ -13037,8 +13038,8 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13037
13038
|
}, ["stop"])),
|
|
13038
13039
|
onKeydown: F
|
|
13039
13040
|
}, [
|
|
13040
|
-
|
|
13041
|
-
H(
|
|
13041
|
+
$.$slots.filter ? (s(), m("div", r0, [
|
|
13042
|
+
H($.$slots, "filter", {
|
|
13042
13043
|
value: u.value,
|
|
13043
13044
|
updateValue: f,
|
|
13044
13045
|
startDate: v.value,
|
|
@@ -13077,7 +13078,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13077
13078
|
}, null, 8, ["model-value", "options", "placeholder", "multiple"])
|
|
13078
13079
|
])) : e.filterType === "dateRange" ? (s(), m("div", v0, [
|
|
13079
13080
|
w("div", f0, [
|
|
13080
|
-
w("span", m0, z(
|
|
13081
|
+
w("span", m0, z($.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.FROM")), 1),
|
|
13081
13082
|
L(n(Pe), {
|
|
13082
13083
|
"model-value": v.value,
|
|
13083
13084
|
type: "date",
|
|
@@ -13086,7 +13087,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13086
13087
|
}, null, 8, ["model-value"])
|
|
13087
13088
|
]),
|
|
13088
13089
|
w("div", g0, [
|
|
13089
|
-
w("span", p0, z(
|
|
13090
|
+
w("span", p0, z($.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.TO")), 1),
|
|
13090
13091
|
L(n(Pe), {
|
|
13091
13092
|
"model-value": b.value,
|
|
13092
13093
|
type: "date",
|
|
@@ -13103,7 +13104,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13103
13104
|
onClick: P
|
|
13104
13105
|
}, {
|
|
13105
13106
|
default: D(() => [
|
|
13106
|
-
fe(z(
|
|
13107
|
+
fe(z($.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.CLEAR")), 1)
|
|
13107
13108
|
]),
|
|
13108
13109
|
_: 1
|
|
13109
13110
|
}),
|
|
@@ -13113,7 +13114,7 @@ const Lw = /* @__PURE__ */ Eo(Aw, [["render", Ow]]), Mw = { class: "vc-table-com
|
|
|
13113
13114
|
onClick: I
|
|
13114
13115
|
}, {
|
|
13115
13116
|
default: D(() => [
|
|
13116
|
-
fe(z(
|
|
13117
|
+
fe(z($.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_FILTER.APPLY")), 1)
|
|
13117
13118
|
]),
|
|
13118
13119
|
_: 1
|
|
13119
13120
|
})
|
|
@@ -13235,8 +13236,8 @@ const C0 = { class: "vc-global-filters-panel__content" }, k0 = { class: "vc-glob
|
|
|
13235
13236
|
if (I == null) return;
|
|
13236
13237
|
if (I instanceof Date) {
|
|
13237
13238
|
if (Number.isNaN(I.getTime())) return;
|
|
13238
|
-
const E = I.getFullYear(), M = String(I.getMonth() + 1).padStart(2, "0"),
|
|
13239
|
-
return `${E}-${M}-${
|
|
13239
|
+
const E = I.getFullYear(), M = String(I.getMonth() + 1).padStart(2, "0"), R = String(I.getDate()).padStart(2, "0");
|
|
13240
|
+
return `${E}-${M}-${R}`;
|
|
13240
13241
|
}
|
|
13241
13242
|
const P = String(I);
|
|
13242
13243
|
return P === "" ? void 0 : P;
|
|
@@ -13263,13 +13264,13 @@ const C0 = { class: "vc-global-filters-panel__content" }, k0 = { class: "vc-glob
|
|
|
13263
13264
|
for (const P of t.filters) {
|
|
13264
13265
|
const E = b.value[P.id];
|
|
13265
13266
|
if (i(P.filter) === "dateRange") {
|
|
13266
|
-
const
|
|
13267
|
-
|
|
13267
|
+
const R = d(P.filter), S = E;
|
|
13268
|
+
R && S && (S.start && (I[R[0]] = S.start), S.end && (I[R[1]] = S.end));
|
|
13268
13269
|
} else if (E != null && E !== "") {
|
|
13269
13270
|
if (Array.isArray(E) && E.length === 0)
|
|
13270
13271
|
continue;
|
|
13271
|
-
const
|
|
13272
|
-
I[
|
|
13272
|
+
const R = typeof P.filter == "string" ? P.filter : P.id;
|
|
13273
|
+
I[R] = E;
|
|
13273
13274
|
}
|
|
13274
13275
|
}
|
|
13275
13276
|
return I;
|
|
@@ -13973,21 +13974,21 @@ const C0 = { class: "vc-global-filters-panel__content" }, k0 = { class: "vc-glob
|
|
|
13973
13974
|
},
|
|
13974
13975
|
emits: ["scroll", "group-toggle", "row-click", "row-mouseenter", "row-mouseleave", "selection-change", "expand-toggle", "row-edit", "row-save", "row-cancel", "edit-complete", "edit-cancel", "cell-value-change", "cell-click"],
|
|
13975
13976
|
setup(e, { expose: a, emit: t }) {
|
|
13976
|
-
const l = e, r = t, i = y(() => l.skeletonRows ?? 20), o = y(() => l.groupingEnabled && l.groupedData?.length ? l.groupedData.flatMap((
|
|
13977
|
+
const l = e, r = t, i = y(() => l.skeletonRows ?? 20), o = y(() => l.groupingEnabled && l.groupedData?.length ? l.groupedData.flatMap((R) => R.items) : l.items), c = y(() => {
|
|
13977
13978
|
if (!l.groupedData) return null;
|
|
13978
|
-
const
|
|
13979
|
+
const R = /* @__PURE__ */ new Map();
|
|
13979
13980
|
for (const S of l.groupedData)
|
|
13980
|
-
|
|
13981
|
-
return
|
|
13982
|
-
}), d = (
|
|
13983
|
-
return a({ listEl: M }), (
|
|
13981
|
+
R.set(S.key, S.count);
|
|
13982
|
+
return R;
|
|
13983
|
+
}), d = (R) => l.getItemGroupKey?.(R) ?? "", u = (R) => R === 0 || d(o.value[R]) !== d(o.value[R - 1]), v = (R) => R === o.value.length - 1 || d(o.value[R]) !== d(o.value[R + 1]), b = (R, S) => l.groupingEnabled ? l.getGlobalIndex(R) : S, g = (R, S) => r("group-toggle", R, S), f = (R, S, $) => r("row-click", R, S, $), h = (R) => r("row-mouseenter", R), p = () => r("row-mouseleave"), k = (R) => r("selection-change", R), C = (R, S, $) => r("expand-toggle", R, S, $), _ = (R, S) => r("row-edit", R, S), T = (R, S) => r("row-save", R, S), B = (R, S) => r("row-cancel", R, S), F = (R, S, $, O) => r("edit-complete", R, S, $, O), A = (R, S, $) => r("edit-cancel", R, S, $), I = (R, S, $) => r("cell-value-change", R, S, $), P = (R, S, $, O) => r("cell-click", R, S, $, O), E = N(null), M = y(() => E.value?.$el ?? void 0);
|
|
13984
|
+
return a({ listEl: M }), (R, S) => (s(), m("div", {
|
|
13984
13985
|
class: "vc-data-table__body",
|
|
13985
13986
|
role: e.items.length ? "rowgroup" : "presentation",
|
|
13986
|
-
onScroll: S[0] || (S[0] = (
|
|
13987
|
+
onScroll: S[0] || (S[0] = ($) => R.$emit("scroll", $))
|
|
13987
13988
|
}, [
|
|
13988
13989
|
e.items.length === 0 && !e.loading ? (s(), m("div", Z0, [
|
|
13989
13990
|
w("div", J0, [
|
|
13990
|
-
H(
|
|
13991
|
+
H(R.$slots, "empty", {}, () => [
|
|
13991
13992
|
L(pi, {
|
|
13992
13993
|
icon: e.emptyIcon,
|
|
13993
13994
|
title: e.emptyTitle,
|
|
@@ -13997,7 +13998,7 @@ const C0 = { class: "vc-global-filters-panel__content" }, k0 = { class: "vc-glob
|
|
|
13997
13998
|
}, null, 8, ["icon", "title", "description", "action-label", "action-handler"])
|
|
13998
13999
|
])
|
|
13999
14000
|
])
|
|
14000
|
-
])) : e.loading && e.items.length === 0 ? H(
|
|
14001
|
+
])) : e.loading && e.items.length === 0 ? H(R.$slots, "loading", { key: 1 }, () => [
|
|
14001
14002
|
L(X0, {
|
|
14002
14003
|
columns: e.columns,
|
|
14003
14004
|
rows: i.value,
|
|
@@ -14015,48 +14016,48 @@ const C0 = { class: "vc-global-filters-panel__content" }, k0 = { class: "vc-glob
|
|
|
14015
14016
|
class: "vc-data-table__rows-container"
|
|
14016
14017
|
}, {
|
|
14017
14018
|
default: D(() => [
|
|
14018
|
-
(s(!0), m(J, null, ve(o.value, (
|
|
14019
|
-
key: e.getItemKey(
|
|
14020
|
-
}, { ref_for: !0 }, e.getRowProps(
|
|
14021
|
-
"is-new-row": e.newRowIndices?.has(b(
|
|
14019
|
+
(s(!0), m(J, null, ve(o.value, ($, O) => (s(), V(Y0, Le({
|
|
14020
|
+
key: e.getItemKey($, O)
|
|
14021
|
+
}, { ref_for: !0 }, e.getRowProps($, b($, O)), {
|
|
14022
|
+
"is-new-row": e.newRowIndices?.has(b($, O)),
|
|
14022
14023
|
"grouping-enabled": e.groupingEnabled,
|
|
14023
|
-
"group-key": e.groupingEnabled ? d(
|
|
14024
|
+
"group-key": e.groupingEnabled ? d($) : void 0,
|
|
14024
14025
|
"is-first-in-group": e.groupingEnabled ? u(O) : !1,
|
|
14025
14026
|
"is-last-in-group": e.groupingEnabled ? v(O) : !1,
|
|
14026
|
-
"group-count": e.groupingEnabled && u(O) ? c.value?.get(d(
|
|
14027
|
+
"group-count": e.groupingEnabled && u(O) ? c.value?.get(d($)) ?? 0 : 0,
|
|
14027
14028
|
"expandable-row-groups": e.expandableRowGroups,
|
|
14028
|
-
"is-group-row-expanded": e.groupingEnabled ? e.isGroupExpanded(d(
|
|
14029
|
-
onClick: (U) => f(
|
|
14029
|
+
"is-group-row-expanded": e.groupingEnabled ? e.isGroupExpanded(d($)) : !0,
|
|
14030
|
+
onClick: (U) => f($, b($, O), U),
|
|
14030
14031
|
onMouseenter: h,
|
|
14031
14032
|
onMouseleave: p,
|
|
14032
|
-
onSelectionChange: () => k(
|
|
14033
|
-
onExpandToggle: (U) => C(
|
|
14034
|
-
onRowEdit: () => _(
|
|
14035
|
-
onRowSave: () => T(
|
|
14036
|
-
onRowCancel: () => B(
|
|
14037
|
-
onEditComplete: (U, q) => F(
|
|
14038
|
-
onEditCancel: (U) => A(
|
|
14039
|
-
onCellValueChange: (U, q) => I(U, b(
|
|
14040
|
-
onCellClick: (U) => P(
|
|
14041
|
-
onGroupToggle: (U) => g(d(
|
|
14033
|
+
onSelectionChange: () => k($),
|
|
14034
|
+
onExpandToggle: (U) => C($, b($, O), U),
|
|
14035
|
+
onRowEdit: () => _($, b($, O)),
|
|
14036
|
+
onRowSave: () => T($, b($, O)),
|
|
14037
|
+
onRowCancel: () => B($, b($, O)),
|
|
14038
|
+
onEditComplete: (U, q) => F($, U, b($, O), q),
|
|
14039
|
+
onEditCancel: (U) => A($, U, b($, O)),
|
|
14040
|
+
onCellValueChange: (U, q) => I(U, b($, O), q),
|
|
14041
|
+
onCellClick: (U) => P($, U.props.field || U.props.id, b($, O), U),
|
|
14042
|
+
onGroupToggle: (U) => g(d($), U)
|
|
14042
14043
|
}), {
|
|
14043
14044
|
actions: D(() => [
|
|
14044
|
-
H(
|
|
14045
|
-
item:
|
|
14046
|
-
index: b(
|
|
14045
|
+
H(R.$slots, "row-actions", {
|
|
14046
|
+
item: $,
|
|
14047
|
+
index: b($, O)
|
|
14047
14048
|
})
|
|
14048
14049
|
]),
|
|
14049
14050
|
expansion: D(() => [
|
|
14050
|
-
H(
|
|
14051
|
-
data:
|
|
14052
|
-
index: b(
|
|
14051
|
+
H(R.$slots, "expansion", {
|
|
14052
|
+
data: $,
|
|
14053
|
+
index: b($, O)
|
|
14053
14054
|
})
|
|
14054
14055
|
]),
|
|
14055
14056
|
groupheader: D((U) => [
|
|
14056
|
-
H(
|
|
14057
|
+
H(R.$slots, "groupheader", Le({ ref_for: !0 }, U))
|
|
14057
14058
|
]),
|
|
14058
14059
|
groupfooter: D((U) => [
|
|
14059
|
-
H(
|
|
14060
|
+
H(R.$slots, "groupfooter", Le({ ref_for: !0 }, U))
|
|
14060
14061
|
]),
|
|
14061
14062
|
_: 2
|
|
14062
14063
|
}, 1040, ["is-new-row", "grouping-enabled", "group-key", "is-first-in-group", "is-last-in-group", "group-count", "expandable-row-groups", "is-group-row-expanded", "onClick", "onSelectionChange", "onExpandToggle", "onRowEdit", "onRowSave", "onRowCancel", "onEditComplete", "onEditCancel", "onCellValueChange", "onCellClick", "onGroupToggle"]))), 128))
|
|
@@ -14521,7 +14522,7 @@ const g1 = {
|
|
|
14521
14522
|
function b() {
|
|
14522
14523
|
u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
|
|
14523
14524
|
}
|
|
14524
|
-
const g = N(0), f = N(0), h = N(!1), p = N(!1), k = N(null), C = N(0), _ = N(0), T = N(0), B = N(0), F = N(0), A = N(0), I = N(null), { activeSwipeId: P, setActiveSwipe: E } = m1(), M = y(() => t.item[t.dataKey] ?? `item-${t.index}`),
|
|
14525
|
+
const g = N(0), f = N(0), h = N(!1), p = N(!1), k = N(null), C = N(0), _ = N(0), T = N(0), B = N(0), F = N(0), A = N(0), I = N(null), { activeSwipeId: P, setActiveSwipe: E } = m1(), M = y(() => t.item[t.dataKey] ?? `item-${t.index}`), R = y(() => t.anySelected && t.selectionMode !== void 0), S = y(() => t.anySelected ? [] : t.actions ?? []), $ = y(() => S.value.length > 2), O = y(() => S.value.slice(0, 2)), U = y(() => t.actions ?? []), q = y(() => {
|
|
14525
14526
|
const oe = S.value.length;
|
|
14526
14527
|
return Math.min(oe, oe > 2 ? 3 : 2) * 70;
|
|
14527
14528
|
});
|
|
@@ -14676,7 +14677,7 @@ const g1 = {
|
|
|
14676
14677
|
})
|
|
14677
14678
|
], -1)
|
|
14678
14679
|
])], 32)) : x("", !0),
|
|
14679
|
-
|
|
14680
|
+
R.value ? (s(), m("div", {
|
|
14680
14681
|
key: 1,
|
|
14681
14682
|
class: "vc-data-table-mobile-card__checkbox",
|
|
14682
14683
|
onClick: me(G, ["stop"])
|
|
@@ -14689,9 +14690,9 @@ const g1 = {
|
|
|
14689
14690
|
])) : x("", !0),
|
|
14690
14691
|
w("div", {
|
|
14691
14692
|
class: Q(["vc-data-table-mobile-card__body", {
|
|
14692
|
-
"vc-data-table-mobile-card__body--with-checkbox":
|
|
14693
|
-
"vc-data-table-mobile-card__body--with-handle": e.reorderable &&
|
|
14694
|
-
"vc-data-table-mobile-card__body--with-handle-and-checkbox": e.reorderable &&
|
|
14693
|
+
"vc-data-table-mobile-card__body--with-checkbox": R.value && !e.reorderable,
|
|
14694
|
+
"vc-data-table-mobile-card__body--with-handle": e.reorderable && !R.value,
|
|
14695
|
+
"vc-data-table-mobile-card__body--with-handle-and-checkbox": e.reorderable && R.value
|
|
14695
14696
|
}])
|
|
14696
14697
|
}, [
|
|
14697
14698
|
e.layout.image ? (s(), m("div", g1, [
|
|
@@ -14788,7 +14789,7 @@ const g1 = {
|
|
|
14788
14789
|
onTouchstart: le[7] || (le[7] = me(() => {
|
|
14789
14790
|
}, ["stop"]))
|
|
14790
14791
|
}, [
|
|
14791
|
-
|
|
14792
|
+
$.value ? (s(), m("button", {
|
|
14792
14793
|
key: 0,
|
|
14793
14794
|
class: "vc-data-table-mobile-card__action vc-data-table-mobile-card__action--more",
|
|
14794
14795
|
onClick: me(W, ["stop"])
|
|
@@ -14966,13 +14967,13 @@ const I1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
14966
14967
|
}
|
|
14967
14968
|
return !0;
|
|
14968
14969
|
}
|
|
14969
|
-
function P(S,
|
|
14970
|
+
function P(S, $ = 300) {
|
|
14970
14971
|
g.value !== null && cancelAnimationFrame(g.value);
|
|
14971
14972
|
const O = d.value, U = performance.now();
|
|
14972
14973
|
let q = h.value, X = O;
|
|
14973
14974
|
b.value = !0;
|
|
14974
14975
|
function ie(K) {
|
|
14975
|
-
if (K - U <
|
|
14976
|
+
if (K - U < $) {
|
|
14976
14977
|
const se = (S - X) * D1, te = q * N1, G = (se - te) / P1;
|
|
14977
14978
|
q += G, X += q, d.value = Math.max(0, X), g.value = requestAnimationFrame(ie);
|
|
14978
14979
|
} else
|
|
@@ -14982,8 +14983,8 @@ const I1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
14982
14983
|
}
|
|
14983
14984
|
function E(S) {
|
|
14984
14985
|
if (!C.value || b.value || !I()) return;
|
|
14985
|
-
const
|
|
14986
|
-
f.value =
|
|
14986
|
+
const $ = S.touches[0];
|
|
14987
|
+
f.value = $.clientY, h.value = 0, p.value = Date.now(), k.value = $.clientY, u.value = !0;
|
|
14987
14988
|
}
|
|
14988
14989
|
function M(S) {
|
|
14989
14990
|
if (!C.value || !u.value || b.value) return;
|
|
@@ -14999,13 +15000,13 @@ const I1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
14999
15000
|
const Y = l.threshold * 2.5;
|
|
15000
15001
|
K = Math.min(K, Y), d.value = K, v.value = K >= l.threshold;
|
|
15001
15002
|
}
|
|
15002
|
-
function
|
|
15003
|
+
function R() {
|
|
15003
15004
|
u.value && (u.value = !1, v.value && !l.refreshing ? (i("refresh"), P(Ln)) : P(0), v.value = !1);
|
|
15004
15005
|
}
|
|
15005
15006
|
return ne(
|
|
15006
15007
|
() => l.refreshing,
|
|
15007
|
-
(S,
|
|
15008
|
-
|
|
15008
|
+
(S, $) => {
|
|
15009
|
+
$ && !S && P(0);
|
|
15009
15010
|
}
|
|
15010
15011
|
), Et(() => {
|
|
15011
15012
|
g.value !== null && cancelAnimationFrame(g.value);
|
|
@@ -15013,13 +15014,13 @@ const I1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
15013
15014
|
pullDistance: d,
|
|
15014
15015
|
canRelease: v,
|
|
15015
15016
|
isPulling: u
|
|
15016
|
-
}), (S,
|
|
15017
|
+
}), (S, $) => (s(), m("div", {
|
|
15017
15018
|
ref_key: "containerRef",
|
|
15018
15019
|
ref: c,
|
|
15019
15020
|
class: "vc-pull-to-refresh",
|
|
15020
15021
|
onTouchstartPassive: E,
|
|
15021
15022
|
onTouchmovePassive: M,
|
|
15022
|
-
onTouchend:
|
|
15023
|
+
onTouchend: R
|
|
15023
15024
|
}, [
|
|
15024
15025
|
w("div", {
|
|
15025
15026
|
class: "vc-pull-to-refresh__indicator",
|
|
@@ -15433,19 +15434,19 @@ function Q1(e) {
|
|
|
15433
15434
|
X && F(X, ie);
|
|
15434
15435
|
}
|
|
15435
15436
|
});
|
|
15436
|
-
let M = null,
|
|
15437
|
-
const
|
|
15437
|
+
let M = null, R = !1, S = 0;
|
|
15438
|
+
const $ = () => {
|
|
15438
15439
|
S || (S = requestAnimationFrame(() => {
|
|
15439
15440
|
S = 0, v.value || l();
|
|
15440
15441
|
}));
|
|
15441
15442
|
}, O = () => {
|
|
15442
|
-
!u?.value || typeof ResizeObserver > "u" || (
|
|
15443
|
+
!u?.value || typeof ResizeObserver > "u" || (R = !1, M = new ResizeObserver(() => {
|
|
15443
15444
|
if (!v.value) {
|
|
15444
|
-
if (
|
|
15445
|
-
|
|
15445
|
+
if (!R) {
|
|
15446
|
+
R = !0, l();
|
|
15446
15447
|
return;
|
|
15447
15448
|
}
|
|
15448
|
-
|
|
15449
|
+
$();
|
|
15449
15450
|
}
|
|
15450
15451
|
}), M.observe(u.value));
|
|
15451
15452
|
};
|
|
@@ -15599,7 +15600,7 @@ function eC(e) {
|
|
|
15599
15600
|
a.value.splice(0, a.value.length, ...c.map((q) => xn(q))), p(), k.value = /* @__PURE__ */ new Map(), o.value = !1, i?.();
|
|
15600
15601
|
}, A = async () => {
|
|
15601
15602
|
const { valid: q } = await h();
|
|
15602
|
-
q && (r && await r(
|
|
15603
|
+
q && (r && await r(R.value), c = a.value.map((X) => xn(X)), p(), k.value = /* @__PURE__ */ new Map(), o.value = !1);
|
|
15603
15604
|
}, I = (q, X, ie) => {
|
|
15604
15605
|
if (q < 0 || q >= a.value.length) return;
|
|
15605
15606
|
const K = T(q, X), Y = a.value[q];
|
|
@@ -15609,7 +15610,7 @@ function eC(e) {
|
|
|
15609
15610
|
}, P = (q, X) => {
|
|
15610
15611
|
if (!(q < 0 || q >= a.value.length))
|
|
15611
15612
|
return a.value[q][X];
|
|
15612
|
-
}, E = (q, X) => k.value.has(T(q, X)), M = y(() => b.value.valid),
|
|
15613
|
+
}, E = (q, X) => k.value.has(T(q, X)), M = y(() => b.value.valid), R = y(() => {
|
|
15613
15614
|
const q = [];
|
|
15614
15615
|
for (const [X, ie] of k.value.entries()) {
|
|
15615
15616
|
const [K, Y] = X.split(":"), se = parseInt(K, 10), te = c[se]?.[Y];
|
|
@@ -15622,7 +15623,7 @@ function eC(e) {
|
|
|
15622
15623
|
});
|
|
15623
15624
|
}
|
|
15624
15625
|
return q;
|
|
15625
|
-
}), S = y(() =>
|
|
15626
|
+
}), S = y(() => R.value.length > 0);
|
|
15626
15627
|
return {
|
|
15627
15628
|
isEditing: o,
|
|
15628
15629
|
startEditing: B,
|
|
@@ -15634,7 +15635,7 @@ function eC(e) {
|
|
|
15634
15635
|
isDirty: S,
|
|
15635
15636
|
errors: f,
|
|
15636
15637
|
isValid: M,
|
|
15637
|
-
pendingChanges:
|
|
15638
|
+
pendingChanges: R,
|
|
15638
15639
|
addRow: (q) => {
|
|
15639
15640
|
const X = q ?? {};
|
|
15640
15641
|
a.value.push(X);
|
|
@@ -15690,12 +15691,12 @@ function b$(e) {
|
|
|
15690
15691
|
const P = r, E = a.value.length;
|
|
15691
15692
|
if (E === 0 || v.value === 0)
|
|
15692
15693
|
return { start: 0, end: 0 };
|
|
15693
|
-
const M = Math.floor(u.value / t),
|
|
15694
|
-
return { start:
|
|
15694
|
+
const M = Math.floor(u.value / t), R = Math.max(0, M - P), S = Math.ceil(v.value / t), $ = Math.min(E, M + S + P * 2);
|
|
15695
|
+
return { start: R, end: $ };
|
|
15695
15696
|
}), p = y(() => {
|
|
15696
15697
|
const { start: P, end: E } = h.value;
|
|
15697
|
-
return a.value.slice(P, E).map((
|
|
15698
|
-
item:
|
|
15698
|
+
return a.value.slice(P, E).map((R, S) => ({
|
|
15699
|
+
item: R,
|
|
15699
15700
|
index: P + S
|
|
15700
15701
|
}));
|
|
15701
15702
|
}), k = y(() => a.value.length * t), C = y(() => h.value.start * t), _ = (P) => {
|
|
@@ -15703,8 +15704,8 @@ function b$(e) {
|
|
|
15703
15704
|
if (!E) return;
|
|
15704
15705
|
const M = () => {
|
|
15705
15706
|
u.value = E.scrollTop, v.value = E.clientHeight;
|
|
15706
|
-
const
|
|
15707
|
-
c && c({ first:
|
|
15707
|
+
const R = h.value;
|
|
15708
|
+
c && c({ first: R.start, last: R.end }), o && d && (R.start !== f.start || R.end !== f.end) && (f = { ...R }, b.value = !0, d({ first: R.start, last: R.end }));
|
|
15708
15709
|
};
|
|
15709
15710
|
i > 0 ? (g && clearTimeout(g), g = setTimeout(M, i)) : M();
|
|
15710
15711
|
}, T = (P, E = "auto") => {
|
|
@@ -16106,8 +16107,8 @@ function iC(e) {
|
|
|
16106
16107
|
{ immediate: !0 }
|
|
16107
16108
|
), ne(a, (S) => {
|
|
16108
16109
|
if (!v.value.length) return;
|
|
16109
|
-
const
|
|
16110
|
-
v.value = v.value.map((O) =>
|
|
16110
|
+
const $ = new Map(S.map((O) => [i(O, -1), O]));
|
|
16111
|
+
v.value = v.value.map((O) => $.get(i(O, -1)) ?? O);
|
|
16111
16112
|
}), ne(
|
|
16112
16113
|
() => c?.value,
|
|
16113
16114
|
(S) => {
|
|
@@ -16117,35 +16118,35 @@ function iC(e) {
|
|
|
16117
16118
|
);
|
|
16118
16119
|
const g = y(() => new Set(v.value.map((S) => i(S, -1)))), f = y(() => r ? a.value.filter(r) : a.value), h = y(() => !a.value || a.value.length === 0 || f.value.length === 0 ? !1 : f.value.every((S) => _(S))), p = y(() => {
|
|
16119
16120
|
if (!a.value || a.value.length === 0 || f.value.length === 0) return !1;
|
|
16120
|
-
const S = f.value.filter((
|
|
16121
|
+
const S = f.value.filter(($) => _($)).length;
|
|
16121
16122
|
return S > 0 && S < f.value.length;
|
|
16122
16123
|
}), k = y(() => !d?.value || !o?.value || b.value ? !1 : h.value && o.value > a.value.length), C = y(() => ({
|
|
16123
16124
|
count: b.value ? o?.value ?? v.value.length : v.value.length,
|
|
16124
16125
|
isSelectAll: b.value,
|
|
16125
16126
|
totalCount: o?.value
|
|
16126
16127
|
})), _ = (S) => {
|
|
16127
|
-
const
|
|
16128
|
-
return g.value.has(
|
|
16129
|
-
}, T = (S) => r ? r(S) : !0, B = (S,
|
|
16128
|
+
const $ = i(S, -1);
|
|
16129
|
+
return g.value.has($);
|
|
16130
|
+
}, T = (S) => r ? r(S) : !0, B = (S, $) => {
|
|
16130
16131
|
if (!T(S)) return null;
|
|
16131
16132
|
const O = l.value, U = i(S, -1);
|
|
16132
16133
|
return O === "single" ? v.value = [S] : g.value.has(U) || (v.value = [...v.value, S]), {
|
|
16133
16134
|
data: S,
|
|
16134
|
-
originalEvent:
|
|
16135
|
+
originalEvent: $ || new Event("select")
|
|
16135
16136
|
};
|
|
16136
|
-
}, F = (S,
|
|
16137
|
+
}, F = (S, $) => {
|
|
16137
16138
|
const O = i(S, -1);
|
|
16138
16139
|
return v.value = v.value.filter((U) => i(U, -1) !== O), {
|
|
16139
16140
|
data: S,
|
|
16140
|
-
originalEvent:
|
|
16141
|
+
originalEvent: $ || new Event("unselect")
|
|
16141
16142
|
};
|
|
16142
|
-
}, A = (S,
|
|
16143
|
+
}, A = (S, $) => {
|
|
16143
16144
|
if (!T(S))
|
|
16144
16145
|
return null;
|
|
16145
|
-
const O = _(S), U =
|
|
16146
|
+
const O = _(S), U = $ instanceof Event ? $ : new Event("change");
|
|
16146
16147
|
return O ? F(S, U) : B(S, U);
|
|
16147
|
-
}, I = (S,
|
|
16148
|
-
const O =
|
|
16148
|
+
}, I = (S, $) => {
|
|
16149
|
+
const O = $ || new Event("change");
|
|
16149
16150
|
return S ? (v.value = [...f.value], {
|
|
16150
16151
|
data: f.value,
|
|
16151
16152
|
originalEvent: O
|
|
@@ -16159,15 +16160,15 @@ function iC(e) {
|
|
|
16159
16160
|
v.value = [...f.value], b.value = !0, u?.(!0);
|
|
16160
16161
|
}, M = () => {
|
|
16161
16162
|
b.value = !1, u?.(!1);
|
|
16162
|
-
},
|
|
16163
|
+
}, R = () => ({
|
|
16163
16164
|
selected: [...v.value],
|
|
16164
16165
|
isSelectAll: b.value,
|
|
16165
16166
|
count: b.value ? o?.value ?? v.value.length : v.value.length
|
|
16166
16167
|
});
|
|
16167
16168
|
return ne(
|
|
16168
16169
|
() => v.value.length,
|
|
16169
|
-
(S,
|
|
16170
|
-
b.value && S <
|
|
16170
|
+
(S, $) => {
|
|
16171
|
+
b.value && S < $ && (b.value = !1, u?.(!1));
|
|
16171
16172
|
}
|
|
16172
16173
|
), {
|
|
16173
16174
|
internalSelection: v,
|
|
@@ -16186,7 +16187,7 @@ function iC(e) {
|
|
|
16186
16187
|
clearSelection: P,
|
|
16187
16188
|
selectAll: E,
|
|
16188
16189
|
clearSelectAll: M,
|
|
16189
|
-
getSelectionState:
|
|
16190
|
+
getSelectionState: R
|
|
16190
16191
|
};
|
|
16191
16192
|
}
|
|
16192
16193
|
function sC(e, a) {
|
|
@@ -16292,7 +16293,7 @@ function rC(e) {
|
|
|
16292
16293
|
const I = () => {
|
|
16293
16294
|
A = !0;
|
|
16294
16295
|
}, P = () => {
|
|
16295
|
-
i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, A = !1,
|
|
16296
|
+
i.value = { order: [], specs: {} }, o.value = { widths: {}, fillerWidth: 0 }, A = !1, R();
|
|
16296
16297
|
};
|
|
16297
16298
|
let E;
|
|
16298
16299
|
qn() && Vl(() => clearTimeout(E));
|
|
@@ -16303,7 +16304,7 @@ function rC(e) {
|
|
|
16303
16304
|
`[VcDataTable] Column width crisis: sum(minPx)=${q}px > availableWidth=${U}px. Columns will be squeezed below their minimum widths.`
|
|
16304
16305
|
);
|
|
16305
16306
|
}, 500));
|
|
16306
|
-
},
|
|
16307
|
+
}, R = () => {
|
|
16307
16308
|
clearTimeout(E);
|
|
16308
16309
|
const O = e.getAvailableWidth();
|
|
16309
16310
|
if (O <= 0) return;
|
|
@@ -16311,11 +16312,11 @@ function rC(e) {
|
|
|
16311
16312
|
const q = C.value.filter((X) => !at(X.props)).map((X) => X.props.id).filter((X) => i.value.specs[X]).map((X) => ({ id: X, spec: i.value.specs[X] }));
|
|
16312
16313
|
q.length !== 0 && (o.value = G1({ availableWidth: O, columns: q, mode: r }), M(q, O));
|
|
16313
16314
|
};
|
|
16314
|
-
let S = /* @__PURE__ */ new Set(),
|
|
16315
|
+
let S = /* @__PURE__ */ new Set(), $ = !0;
|
|
16315
16316
|
return ne(
|
|
16316
16317
|
a,
|
|
16317
16318
|
() => {
|
|
16318
|
-
const O = a.value.filter((de) => !at(de.props)), U = O.map((de) => de.props.id), q = new Set(U), X = new Set(i.value.order), ie = U.filter((de) => !X.has(de)), K =
|
|
16319
|
+
const O = a.value.filter((de) => !at(de.props)), U = O.map((de) => de.props.id), q = new Set(U), X = new Set(i.value.order), ie = U.filter((de) => !X.has(de)), K = $ ? [] : U.filter((de) => X.has(de) && !S.has(de)), Y = $ ? [] : [...S].filter((de) => !q.has(de)), se = ie.length > 0 || K.length > 0 || Y.length > 0, te = i.value.order.length === 0, G = e.getAvailableWidth();
|
|
16319
16320
|
if (te || ie.length > 0)
|
|
16320
16321
|
if (te && G > 0)
|
|
16321
16322
|
F(G);
|
|
@@ -16345,7 +16346,7 @@ function rC(e) {
|
|
|
16345
16346
|
U.filter((W) => de.specs[W])
|
|
16346
16347
|
), i.value = de;
|
|
16347
16348
|
}
|
|
16348
|
-
S = q,
|
|
16349
|
+
S = q, $ = !1, se && R();
|
|
16349
16350
|
},
|
|
16350
16351
|
{ immediate: !0 }
|
|
16351
16352
|
), {
|
|
@@ -16353,7 +16354,7 @@ function rC(e) {
|
|
|
16353
16354
|
engineOutput: o,
|
|
16354
16355
|
headerRefs: c,
|
|
16355
16356
|
setHeaderRef: k,
|
|
16356
|
-
recompute:
|
|
16357
|
+
recompute: R,
|
|
16357
16358
|
resetFromProps: P,
|
|
16358
16359
|
markSizingCustomized: I,
|
|
16359
16360
|
isSizingCustomized: () => A,
|
|
@@ -16416,22 +16417,22 @@ function vC(e) {
|
|
|
16416
16417
|
if (!E) return null;
|
|
16417
16418
|
const M = f();
|
|
16418
16419
|
if (!M) return null;
|
|
16419
|
-
let
|
|
16420
|
+
let R;
|
|
16420
16421
|
try {
|
|
16421
|
-
|
|
16422
|
+
R = M.getItem(E);
|
|
16422
16423
|
} catch {
|
|
16423
16424
|
return null;
|
|
16424
16425
|
}
|
|
16425
|
-
if (
|
|
16426
|
+
if (!R) return null;
|
|
16426
16427
|
try {
|
|
16427
|
-
const S = JSON.parse(
|
|
16428
|
+
const S = JSON.parse(R);
|
|
16428
16429
|
if (typeof S != "object" || S === null) return null;
|
|
16429
|
-
const
|
|
16430
|
-
if (
|
|
16430
|
+
const $ = S;
|
|
16431
|
+
if ($.v === uC) {
|
|
16431
16432
|
const O = S;
|
|
16432
16433
|
return !Array.isArray(O.order) || typeof O.weights != "object" || O.weights === null || O.hiddenColumnIds !== void 0 && !Array.isArray(O.hiddenColumnIds) || O.shownColumnIds !== void 0 && !Array.isArray(O.shownColumnIds) ? null : O;
|
|
16433
16434
|
}
|
|
16434
|
-
return
|
|
16435
|
+
return $.v === 1 ? dC(S) : null;
|
|
16435
16436
|
} catch {
|
|
16436
16437
|
return null;
|
|
16437
16438
|
}
|
|
@@ -16441,7 +16442,7 @@ function vC(e) {
|
|
|
16441
16442
|
const E = {
|
|
16442
16443
|
v: 2,
|
|
16443
16444
|
order: l.value.order,
|
|
16444
|
-
weights: Object.fromEntries(Object.entries(l.value.specs).map(([M,
|
|
16445
|
+
weights: Object.fromEntries(Object.entries(l.value.specs).map(([M, R]) => [M, R.weight]))
|
|
16445
16446
|
};
|
|
16446
16447
|
return E.hiddenColumnIds = [...r.value], i && (E.shownColumnIds = [...i.value]), c?.() && (E.userSized = !0), E;
|
|
16447
16448
|
}
|
|
@@ -16451,9 +16452,9 @@ function vC(e) {
|
|
|
16451
16452
|
if (!E) return;
|
|
16452
16453
|
const M = f();
|
|
16453
16454
|
if (!M) return;
|
|
16454
|
-
const
|
|
16455
|
+
const R = C();
|
|
16455
16456
|
try {
|
|
16456
|
-
M.setItem(E, JSON.stringify(
|
|
16457
|
+
M.setItem(E, JSON.stringify(R)), d?.(R);
|
|
16457
16458
|
} catch {
|
|
16458
16459
|
}
|
|
16459
16460
|
}
|
|
@@ -16475,16 +16476,16 @@ function vC(e) {
|
|
|
16475
16476
|
}
|
|
16476
16477
|
function F(E, M) {
|
|
16477
16478
|
v++;
|
|
16478
|
-
const { weights:
|
|
16479
|
+
const { weights: R, order: S } = M, $ = [], O = {};
|
|
16479
16480
|
for (const U of S)
|
|
16480
|
-
|
|
16481
|
-
weight:
|
|
16481
|
+
R[U] !== void 0 && ($.push(U), O[U] = {
|
|
16482
|
+
weight: R[U],
|
|
16482
16483
|
minPx: E.specs[U]?.minPx ?? 40,
|
|
16483
16484
|
maxPx: E.specs[U]?.maxPx ?? 1 / 0
|
|
16484
16485
|
});
|
|
16485
16486
|
for (const U of E.order)
|
|
16486
|
-
O[U] || (
|
|
16487
|
-
l.value = { order:
|
|
16487
|
+
O[U] || ($.push(U), O[U] = E.specs[U] ?? { weight: 0, minPx: 40, maxPx: 1 / 0 });
|
|
16488
|
+
l.value = { order: $, specs: O }, Re(() => {
|
|
16488
16489
|
v--;
|
|
16489
16490
|
});
|
|
16490
16491
|
}
|
|
@@ -16607,7 +16608,7 @@ function mC(e) {
|
|
|
16607
16608
|
}
|
|
16608
16609
|
}), E = y(() => P.isEditing.value || a.editMode === "inline");
|
|
16609
16610
|
let M = null;
|
|
16610
|
-
const
|
|
16611
|
+
const R = () => {
|
|
16611
16612
|
if ((!M || !M.isConnected) && (M = u.value?.querySelector(".vc-table-composition__row-transition-wrapper") ?? null), !M || M.clientWidth <= 0) return 0;
|
|
16612
16613
|
let j = 0;
|
|
16613
16614
|
const be = M.querySelectorAll(".vc-data-table__selection-cell");
|
|
@@ -16624,12 +16625,12 @@ function mC(e) {
|
|
|
16624
16625
|
resizableColumns: a.resizableColumns ?? !0,
|
|
16625
16626
|
reorderableColumns: a.reorderableColumns ?? !0,
|
|
16626
16627
|
fitMode: a.fitMode ?? "gap",
|
|
16627
|
-
getAvailableWidth:
|
|
16628
|
-
}),
|
|
16628
|
+
getAvailableWidth: R
|
|
16629
|
+
}), $ = N(/* @__PURE__ */ new Set());
|
|
16629
16630
|
ne(
|
|
16630
16631
|
() => c.value.map((j) => j.props.id).join(","),
|
|
16631
16632
|
() => {
|
|
16632
|
-
|
|
16633
|
+
$.value = new Set(c.value.map((j) => j.props.id));
|
|
16633
16634
|
},
|
|
16634
16635
|
{ immediate: !0 }
|
|
16635
16636
|
);
|
|
@@ -16652,7 +16653,7 @@ function mC(e) {
|
|
|
16652
16653
|
columnState: S.columnState,
|
|
16653
16654
|
hiddenColumnIds: i,
|
|
16654
16655
|
shownColumnIds: o,
|
|
16655
|
-
getAvailableWidth:
|
|
16656
|
+
getAvailableWidth: R,
|
|
16656
16657
|
isSizingCustomized: () => S.isSizingCustomized(),
|
|
16657
16658
|
onStateSave: (j) => t("state-save", j),
|
|
16658
16659
|
onStateRestore: (j) => {
|
|
@@ -16660,7 +16661,7 @@ function mC(e) {
|
|
|
16660
16661
|
}
|
|
16661
16662
|
});
|
|
16662
16663
|
ne(
|
|
16663
|
-
|
|
16664
|
+
$,
|
|
16664
16665
|
(j, be) => {
|
|
16665
16666
|
const pe = new Set(i.value), Oe = new Set(o.value);
|
|
16666
16667
|
let Ie = !1, nt = !1;
|
|
@@ -16728,7 +16729,7 @@ function mC(e) {
|
|
|
16728
16729
|
columnState: S.columnState,
|
|
16729
16730
|
engineOutput: S.engineOutput,
|
|
16730
16731
|
recompute: S.recompute,
|
|
16731
|
-
getAvailableWidth:
|
|
16732
|
+
getAvailableWidth: R,
|
|
16732
16733
|
minColumnWidth: ra,
|
|
16733
16734
|
getVisibleRegularColumnIds: () => S.orderedVisibleColumns.value.filter((j) => !at(j.props)).map((j) => j.props.id),
|
|
16734
16735
|
// A drag turns weights into user data: stop re-deriving them from VcColumn
|
|
@@ -16838,7 +16839,7 @@ function mC(e) {
|
|
|
16838
16839
|
canExpand: A,
|
|
16839
16840
|
expandedKeysArray: B,
|
|
16840
16841
|
// Data-discovered IDs stable ref
|
|
16841
|
-
dataDiscoveredIds:
|
|
16842
|
+
dataDiscoveredIds: $,
|
|
16842
16843
|
// Event handlers (selection handlers are on the `selection` facade)
|
|
16843
16844
|
handleSort: qt,
|
|
16844
16845
|
handleRowClick: un,
|
|
@@ -16873,7 +16874,7 @@ function mC(e) {
|
|
|
16873
16874
|
i.value = Je, o.value = it;
|
|
16874
16875
|
},
|
|
16875
16876
|
handleTableReset: () => {
|
|
16876
|
-
q.resetState(),
|
|
16877
|
+
q.resetState(), $.value.size > 0 && (i.value = new Set($.value)), S.resetFromProps(), S.recompute();
|
|
16877
16878
|
},
|
|
16878
16879
|
handleCellClick: dn,
|
|
16879
16880
|
handleCellEditComplete: ml,
|
|
@@ -17123,7 +17124,7 @@ const h$ = {
|
|
|
17123
17124
|
E.has(Ae) && Ye === "" && (Ye = !0), he[Ae] = Ye;
|
|
17124
17125
|
}
|
|
17125
17126
|
return he;
|
|
17126
|
-
},
|
|
17127
|
+
}, R = () => {
|
|
17127
17128
|
const ce = I.default?.();
|
|
17128
17129
|
if (!ce) return [];
|
|
17129
17130
|
const he = [], Ee = (Ae) => {
|
|
@@ -17142,13 +17143,13 @@ const h$ = {
|
|
|
17142
17143
|
return ce.forEach(Ee), he;
|
|
17143
17144
|
}, S = new gC();
|
|
17144
17145
|
Ne(Es, S);
|
|
17145
|
-
const
|
|
17146
|
+
const $ = N(0);
|
|
17146
17147
|
S.onUpdate(() => {
|
|
17147
|
-
|
|
17148
|
+
$.value++;
|
|
17148
17149
|
});
|
|
17149
17150
|
const O = y(() => {
|
|
17150
|
-
|
|
17151
|
-
const ce =
|
|
17151
|
+
$.value;
|
|
17152
|
+
const ce = R();
|
|
17152
17153
|
return ce.length > 0 ? ce : S.getColumns();
|
|
17153
17154
|
}), U = N(/* @__PURE__ */ new Set()), q = N(/* @__PURE__ */ new Set()), X = y(() => {
|
|
17154
17155
|
const ce = l.columnSwitcher;
|
|
@@ -17806,7 +17807,7 @@ const h$ = {
|
|
|
17806
17807
|
if (G && (G === "start" || G === "center" || G === "end"))
|
|
17807
17808
|
return G;
|
|
17808
17809
|
}
|
|
17809
|
-
function
|
|
17810
|
+
function R(G) {
|
|
17810
17811
|
if (G === "image") return "image";
|
|
17811
17812
|
if (G === "status") return "status";
|
|
17812
17813
|
if (G === "top-left") return "title";
|
|
@@ -17816,7 +17817,7 @@ const h$ = {
|
|
|
17816
17817
|
if (G === "top-left" || G === "top-right" || G === "bottom-left" || G === "bottom-right")
|
|
17817
17818
|
return G;
|
|
17818
17819
|
}
|
|
17819
|
-
function
|
|
17820
|
+
function $(G) {
|
|
17820
17821
|
G.sortField && (g.value = G.sortField);
|
|
17821
17822
|
const de = G.sortField ?? g.value ?? v.value;
|
|
17822
17823
|
if (de) {
|
|
@@ -17890,7 +17891,7 @@ const h$ = {
|
|
|
17890
17891
|
variant: t.variant,
|
|
17891
17892
|
"empty-state": _.value,
|
|
17892
17893
|
"not-found-state": T.value,
|
|
17893
|
-
onSort:
|
|
17894
|
+
onSort: $,
|
|
17894
17895
|
"onUpdate:selection": O,
|
|
17895
17896
|
onRowClick: U,
|
|
17896
17897
|
onRowReorder: ie,
|
|
@@ -17917,7 +17918,7 @@ const h$ = {
|
|
|
17917
17918
|
"currency-field": W.currencyField,
|
|
17918
17919
|
rules: W.rules,
|
|
17919
17920
|
filter: W.filter,
|
|
17920
|
-
"mobile-role":
|
|
17921
|
+
"mobile-role": R(W.mobilePosition),
|
|
17921
17922
|
"mobile-position": S(W.mobilePosition),
|
|
17922
17923
|
"mobile-visible": W.mobileVisible
|
|
17923
17924
|
}, De({ _: 2 }, [
|
|
@@ -18988,7 +18989,7 @@ const Sk = { class: "vc-scheduler__month" }, $k = {
|
|
|
18988
18989
|
function M(ee, ge, re) {
|
|
18989
18990
|
t.editable && (T = "resize", u.beginResize(ee, ge, re.clientX, re.clientY), O());
|
|
18990
18991
|
}
|
|
18991
|
-
function
|
|
18992
|
+
function R(ee, ge) {
|
|
18992
18993
|
t.editable && (T = "create", B = ee, F = ge.currentTarget?.getBoundingClientRect() ?? null, A = !1, u.beginCreate(ee), O());
|
|
18993
18994
|
}
|
|
18994
18995
|
function S(ee) {
|
|
@@ -18997,7 +18998,7 @@ const Sk = { class: "vc-scheduler__month" }, $k = {
|
|
|
18997
18998
|
ge && !Gl(ge, B) && (A = !0);
|
|
18998
18999
|
}
|
|
18999
19000
|
}
|
|
19000
|
-
function
|
|
19001
|
+
function $() {
|
|
19001
19002
|
if (T === "create") {
|
|
19002
19003
|
if (A) {
|
|
19003
19004
|
P.cancel(), I.clear();
|
|
@@ -19013,10 +19014,10 @@ const Sk = { class: "vc-scheduler__month" }, $k = {
|
|
|
19013
19014
|
T = null, U();
|
|
19014
19015
|
}
|
|
19015
19016
|
function O() {
|
|
19016
|
-
window.addEventListener("pointermove", S), window.addEventListener("pointerup",
|
|
19017
|
+
window.addEventListener("pointermove", S), window.addEventListener("pointerup", $);
|
|
19017
19018
|
}
|
|
19018
19019
|
function U() {
|
|
19019
|
-
window.removeEventListener("pointermove", S), window.removeEventListener("pointerup",
|
|
19020
|
+
window.removeEventListener("pointermove", S), window.removeEventListener("pointerup", $);
|
|
19020
19021
|
}
|
|
19021
19022
|
Et(() => {
|
|
19022
19023
|
U(), P.cancel(), I.clear();
|
|
@@ -19077,7 +19078,7 @@ const Sk = { class: "vc-scheduler__month" }, $k = {
|
|
|
19077
19078
|
onEventSelect: ge[1] || (ge[1] = (_e) => k(_e.id, _e.rect)),
|
|
19078
19079
|
onEventMoveStart: ge[2] || (ge[2] = (_e) => E(_e.event, _e.ev)),
|
|
19079
19080
|
onEventResizeStart: ge[3] || (ge[3] = (_e) => M(_e.event, _e.edge, _e.ev)),
|
|
19080
|
-
onCellPointerdown: ge[4] || (ge[4] = (_e) =>
|
|
19081
|
+
onCellPointerdown: ge[4] || (ge[4] = (_e) => R(_e.date, _e.ev)),
|
|
19081
19082
|
onMoreClick: ge[5] || (ge[5] = (_e) => K(_e.date, _e.rect))
|
|
19082
19083
|
}, {
|
|
19083
19084
|
event: D(({ event: _e }) => [
|
|
@@ -19397,8 +19398,8 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19397
19398
|
});
|
|
19398
19399
|
function b(E) {
|
|
19399
19400
|
if (Wn(E)) {
|
|
19400
|
-
const M = Te(E.start, "PP"),
|
|
19401
|
-
return M ===
|
|
19401
|
+
const M = Te(E.start, "PP"), R = Te(new Date(E.end.getTime() - 1), "PP");
|
|
19402
|
+
return M === R ? `${E.title}: ${M}` : `${E.title}: ${M} – ${R}`;
|
|
19402
19403
|
}
|
|
19403
19404
|
return `${E.title}: ${Te(E.start, "PPp")} – ${Te(E.end, "PPp")}`;
|
|
19404
19405
|
}
|
|
@@ -19425,8 +19426,8 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19425
19426
|
tt(() => {
|
|
19426
19427
|
const E = h.value;
|
|
19427
19428
|
if (!E) return;
|
|
19428
|
-
const
|
|
19429
|
-
E.scrollTop = Math.max(0,
|
|
19429
|
+
const R = v.timedByColumn.value.flat().reduce((S, $) => S === null ? $.top : Math.min(S, $.top), null) ?? Math.max(0, (8 - o.value) * Bt);
|
|
19430
|
+
E.scrollTop = Math.max(0, R - Bt / 2);
|
|
19430
19431
|
});
|
|
19431
19432
|
const p = N(Date.now());
|
|
19432
19433
|
let k;
|
|
@@ -19440,15 +19441,15 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19440
19441
|
return M < o.value || M > c.value ? null : (M - o.value) * Bt;
|
|
19441
19442
|
}), _ = /* @__PURE__ */ new Map(), T = Ri({
|
|
19442
19443
|
onIntent: (E, M) => {
|
|
19443
|
-
const
|
|
19444
|
-
_.delete(M),
|
|
19444
|
+
const R = _.get(M);
|
|
19445
|
+
_.delete(M), R && l("create-intent", { start: R.start, end: R.end, allDay: !1, anchorRect: R.rect, kind: E });
|
|
19445
19446
|
}
|
|
19446
19447
|
});
|
|
19447
19448
|
function B(E, M) {
|
|
19448
19449
|
if (!t.editable || M.target?.closest(".vc-scheduler__tg-event")) return;
|
|
19449
|
-
const
|
|
19450
|
-
if (
|
|
19451
|
-
const
|
|
19450
|
+
const R = M.currentTarget, S = v.days.value[E];
|
|
19451
|
+
if (!R || !S) return;
|
|
19452
|
+
const $ = R.getBoundingClientRect(), O = o.value + (M.clientY - $.top) / Bt, U = Math.min(Math.max(Math.floor(O), o.value), c.value - 1), q = new Date(S);
|
|
19452
19453
|
q.setHours(U, 0, 0, 0);
|
|
19453
19454
|
const X = new Date(q.getTime() + 36e5), ie = DOMRect.fromRect({ x: M.clientX, y: M.clientY, width: 1, height: Bt }), K = String(q.getTime());
|
|
19454
19455
|
_.set(K, { start: q, end: X, rect: ie }), T.click(K);
|
|
@@ -19464,13 +19465,13 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19464
19465
|
w("div", Xk, [
|
|
19465
19466
|
M[3] || (M[3] = w("div", { class: "vc-scheduler__tg-gutter-spacer" }, null, -1)),
|
|
19466
19467
|
w("div", Qk, [
|
|
19467
|
-
(s(!0), m(J, null, ve(n(v).columns.value, (
|
|
19468
|
-
key: `h-${
|
|
19468
|
+
(s(!0), m(J, null, ve(n(v).columns.value, (R) => (s(), m("div", {
|
|
19469
|
+
key: `h-${R.index}`,
|
|
19469
19470
|
class: Q(["vc-scheduler__tg-head-col", {
|
|
19470
|
-
"vc-scheduler__tg-head-col--today":
|
|
19471
|
-
"vc-scheduler__tg-head-col--weekend": e.mode === "week" &&
|
|
19471
|
+
"vc-scheduler__tg-head-col--today": R.isToday,
|
|
19472
|
+
"vc-scheduler__tg-head-col--weekend": e.mode === "week" && R.isWeekend
|
|
19472
19473
|
}])
|
|
19473
|
-
}, z(
|
|
19474
|
+
}, z(R.label), 3))), 128))
|
|
19474
19475
|
])
|
|
19475
19476
|
]),
|
|
19476
19477
|
n(v).allDaySegments.value.length ? (s(), m("div", Zk, [
|
|
@@ -19479,26 +19480,26 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19479
19480
|
class: "vc-scheduler__tg-allday-track",
|
|
19480
19481
|
style: ye({ height: `${n(v).allDayRowCount.value * no + 4}px` })
|
|
19481
19482
|
}, [
|
|
19482
|
-
(s(!0), m(J, null, ve(n(v).allDaySegments.value, (
|
|
19483
|
-
key: `ad-${
|
|
19483
|
+
(s(!0), m(J, null, ve(n(v).allDaySegments.value, (R) => (s(), m("button", {
|
|
19484
|
+
key: `ad-${R.event.id}`,
|
|
19484
19485
|
type: "button",
|
|
19485
19486
|
class: Q(["vc-scheduler__tg-allday-bar", {
|
|
19486
|
-
"vc-scheduler__tg-allday-bar--past":
|
|
19487
|
-
"vc-scheduler__tg-allday-bar--l":
|
|
19488
|
-
"vc-scheduler__tg-allday-bar--r":
|
|
19487
|
+
"vc-scheduler__tg-allday-bar--past": R.past,
|
|
19488
|
+
"vc-scheduler__tg-allday-bar--l": R.continuesLeft,
|
|
19489
|
+
"vc-scheduler__tg-allday-bar--r": R.continuesRight
|
|
19489
19490
|
}]),
|
|
19490
|
-
style: ye(f(
|
|
19491
|
-
"aria-label": b(
|
|
19492
|
-
onClick: (S) => P(
|
|
19491
|
+
style: ye(f(R)),
|
|
19492
|
+
"aria-label": b(R.event),
|
|
19493
|
+
onClick: (S) => P(R.event, S)
|
|
19493
19494
|
}, [
|
|
19494
19495
|
w("span", tE, [
|
|
19495
19496
|
H(E.$slots, "event", {
|
|
19496
|
-
event:
|
|
19497
|
+
event: R.event
|
|
19497
19498
|
}, () => [
|
|
19498
|
-
fe(z(
|
|
19499
|
+
fe(z(R.event.title), 1)
|
|
19499
19500
|
])
|
|
19500
19501
|
]),
|
|
19501
|
-
|
|
19502
|
+
R.event.recurrenceId || R.event.recurrence ? (s(), m("span", lE, "↻")) : x("", !0)
|
|
19502
19503
|
], 14, eE))), 128))
|
|
19503
19504
|
], 4)
|
|
19504
19505
|
])) : x("", !0),
|
|
@@ -19512,39 +19513,39 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19512
19513
|
style: ye({ height: `${n(v).gridHeight.value}px` })
|
|
19513
19514
|
}, [
|
|
19514
19515
|
w("div", nE, [
|
|
19515
|
-
(s(!0), m(J, null, ve(n(v).hourLabels.value, (
|
|
19516
|
-
key: `hl-${
|
|
19516
|
+
(s(!0), m(J, null, ve(n(v).hourLabels.value, (R) => (s(), m("div", {
|
|
19517
|
+
key: `hl-${R.hour}`,
|
|
19517
19518
|
class: "vc-scheduler__tg-hour-label",
|
|
19518
|
-
style: ye({ top: `${
|
|
19519
|
-
}, z(
|
|
19519
|
+
style: ye({ top: `${R.y}px` })
|
|
19520
|
+
}, z(R.label), 5))), 128))
|
|
19520
19521
|
]),
|
|
19521
19522
|
w("div", aE, [
|
|
19522
|
-
(s(!0), m(J, null, ve(n(v).columns.value, (
|
|
19523
|
-
key: `c-${
|
|
19523
|
+
(s(!0), m(J, null, ve(n(v).columns.value, (R) => (s(), m("div", {
|
|
19524
|
+
key: `c-${R.index}`,
|
|
19524
19525
|
class: Q(["vc-scheduler__tg-col", {
|
|
19525
|
-
"vc-scheduler__tg-col--today":
|
|
19526
|
-
"vc-scheduler__tg-col--weekend": e.mode === "week" &&
|
|
19526
|
+
"vc-scheduler__tg-col--today": R.isToday,
|
|
19527
|
+
"vc-scheduler__tg-col--weekend": e.mode === "week" && R.isWeekend
|
|
19527
19528
|
}]),
|
|
19528
|
-
onClick: (S) => B(
|
|
19529
|
+
onClick: (S) => B(R.index, S)
|
|
19529
19530
|
}, [
|
|
19530
19531
|
(s(!0), m(J, null, ve(n(v).hourLabels.value, (S) => (s(), m("div", {
|
|
19531
19532
|
key: `gl-${S.hour}`,
|
|
19532
19533
|
class: "vc-scheduler__tg-gridline",
|
|
19533
19534
|
style: ye({ top: `${S.y}px` })
|
|
19534
19535
|
}, null, 4))), 128)),
|
|
19535
|
-
|
|
19536
|
+
R.isToday && C.value !== null ? (s(), m("div", {
|
|
19536
19537
|
key: 0,
|
|
19537
19538
|
class: "vc-scheduler__tg-now",
|
|
19538
19539
|
style: ye({ top: `${C.value}px` }),
|
|
19539
19540
|
"aria-hidden": "true"
|
|
19540
19541
|
}, null, 4)) : x("", !0),
|
|
19541
|
-
(s(!0), m(J, null, ve(n(v).timedByColumn.value[
|
|
19542
|
+
(s(!0), m(J, null, ve(n(v).timedByColumn.value[R.index], (S) => (s(), m("button", {
|
|
19542
19543
|
key: S.event.id,
|
|
19543
19544
|
type: "button",
|
|
19544
19545
|
class: Q(["vc-scheduler__tg-event", { "vc-scheduler__tg-event--past": S.past }]),
|
|
19545
19546
|
style: ye(g(S)),
|
|
19546
19547
|
"aria-label": b(S.event),
|
|
19547
|
-
onClick: me((
|
|
19548
|
+
onClick: me(($) => P(S.event, $), ["stop"])
|
|
19548
19549
|
}, [
|
|
19549
19550
|
w("span", sE, z(n(Te)(S.event.start, "HH:mm")), 1),
|
|
19550
19551
|
w("span", rE, [
|
|
@@ -19570,13 +19571,13 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19570
19571
|
event: A.value,
|
|
19571
19572
|
"anchor-rect": I.value,
|
|
19572
19573
|
"can-edit": t.editable && !!A.value && t.isEventEditable(A.value),
|
|
19573
|
-
onClose: M[0] || (M[0] = (
|
|
19574
|
-
onEdit: M[1] || (M[1] = (
|
|
19575
|
-
onDelete: M[2] || (M[2] = (
|
|
19574
|
+
onClose: M[0] || (M[0] = (R) => F.value = !1),
|
|
19575
|
+
onEdit: M[1] || (M[1] = (R) => l("edit-intent", R)),
|
|
19576
|
+
onDelete: M[2] || (M[2] = (R) => l("event-delete", R))
|
|
19576
19577
|
}, {
|
|
19577
|
-
"event-popover": D(({ event:
|
|
19578
|
+
"event-popover": D(({ event: R, close: S }) => [
|
|
19578
19579
|
H(E.$slots, "event-popover", {
|
|
19579
|
-
event:
|
|
19580
|
+
event: R,
|
|
19580
19581
|
close: S
|
|
19581
19582
|
})
|
|
19582
19583
|
]),
|
|
@@ -19699,14 +19700,14 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19699
19700
|
{ value: "#ec4899", label: t("VC_SCHEDULER.COLOR_PINK") },
|
|
19700
19701
|
{ value: "#14b8a6", label: t("VC_SCHEDULER.COLOR_TEAL") },
|
|
19701
19702
|
{ value: "#64748b", label: t("VC_SCHEDULER.COLOR_SLATE") }
|
|
19702
|
-
],
|
|
19703
|
-
return
|
|
19703
|
+
], $ = o.color;
|
|
19704
|
+
return $ && !S.some((O) => O.value === $) && S.push({ value: $, label: t("VC_SCHEDULER.COLOR_CUSTOM") }), S;
|
|
19704
19705
|
}), r = e, i = a, o = vt({ ...r.draft });
|
|
19705
19706
|
ne(
|
|
19706
19707
|
() => r.draft,
|
|
19707
19708
|
(S) => {
|
|
19708
|
-
const
|
|
19709
|
-
Object.keys(
|
|
19709
|
+
const $ = o;
|
|
19710
|
+
Object.keys($).forEach((O) => delete $[O]), Object.assign(o, S);
|
|
19710
19711
|
}
|
|
19711
19712
|
);
|
|
19712
19713
|
const c = y(() => o.allDay ? "date" : "datetime-local"), d = y(() => o.allDay ? new Date(o.end.getTime() - 1) : o.end);
|
|
@@ -19725,7 +19726,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19725
19726
|
{ value: "count", label: t("VC_SCHEDULER.REPEAT_END_COUNT") }
|
|
19726
19727
|
]), f = y(() => {
|
|
19727
19728
|
const S = Tt(/* @__PURE__ */ new Date(), { weekStartsOn: 0 });
|
|
19728
|
-
return Array.from({ length: 7 }, (
|
|
19729
|
+
return Array.from({ length: 7 }, ($, O) => {
|
|
19729
19730
|
const U = et(S, O);
|
|
19730
19731
|
return { value: O, label: Te(U, "EEEEE"), fullLabel: Te(U, "EEEE") };
|
|
19731
19732
|
});
|
|
@@ -19762,13 +19763,13 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19762
19763
|
}
|
|
19763
19764
|
function B(S) {
|
|
19764
19765
|
if (!o.recurrence) return;
|
|
19765
|
-
const
|
|
19766
|
-
o.recurrence.byWeekday =
|
|
19766
|
+
const $ = o.recurrence.byWeekday ?? [];
|
|
19767
|
+
o.recurrence.byWeekday = $.includes(S) ? $.filter((O) => O !== S) : [...$, S].sort((O, U) => O - U);
|
|
19767
19768
|
}
|
|
19768
19769
|
function F(S) {
|
|
19769
19770
|
if (!o.recurrence) return;
|
|
19770
|
-
const
|
|
19771
|
-
o.recurrence.interval = Number.isFinite(
|
|
19771
|
+
const $ = Math.trunc(Number(S));
|
|
19772
|
+
o.recurrence.interval = Number.isFinite($) && $ >= 1 ? $ : 1;
|
|
19772
19773
|
}
|
|
19773
19774
|
function A(S) {
|
|
19774
19775
|
o.recurrence && (S === "until" ? o.recurrence.end = { type: "until", until: k.value ?? Vo(o.start, 1) } : S === "count" ? o.recurrence.end = { type: "count", count: C.value ?? 1 } : o.recurrence.end = { type: "never" });
|
|
@@ -19778,8 +19779,8 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19778
19779
|
}
|
|
19779
19780
|
function P(S) {
|
|
19780
19781
|
if (!o.recurrence || o.recurrence.end.type !== "count") return;
|
|
19781
|
-
const
|
|
19782
|
-
o.recurrence.end.count = Number.isFinite(
|
|
19782
|
+
const $ = Math.trunc(Number(S));
|
|
19783
|
+
o.recurrence.end.count = Number.isFinite($) && $ >= 1 ? $ : 1;
|
|
19783
19784
|
}
|
|
19784
19785
|
function E() {
|
|
19785
19786
|
v.value && (o.recurrence?.freq === "weekly" && !o.recurrence.byWeekday?.length && (o.recurrence.byWeekday = [o.start.getDay()]), i("save", { ...o }));
|
|
@@ -19787,14 +19788,14 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19787
19788
|
function M() {
|
|
19788
19789
|
i("delete", { id: o.id });
|
|
19789
19790
|
}
|
|
19790
|
-
function
|
|
19791
|
+
function R(S) {
|
|
19791
19792
|
S || i("close");
|
|
19792
19793
|
}
|
|
19793
|
-
return (S,
|
|
19794
|
+
return (S, $) => (s(), V(n(ul), {
|
|
19794
19795
|
"model-value": e.open,
|
|
19795
19796
|
title: S.$t(e.mode === "edit" ? "VC_SCHEDULER.EDIT_EVENT" : "VC_SCHEDULER.NEW_EVENT"),
|
|
19796
19797
|
"modal-width": "tw-max-w-lg",
|
|
19797
|
-
"onUpdate:modelValue":
|
|
19798
|
+
"onUpdate:modelValue": R
|
|
19798
19799
|
}, {
|
|
19799
19800
|
content: D(() => [
|
|
19800
19801
|
w("div", gE, [
|
|
@@ -19803,12 +19804,12 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19803
19804
|
"model-value": o.title,
|
|
19804
19805
|
label: S.$t("VC_SCHEDULER.TITLE"),
|
|
19805
19806
|
"data-test": "editor-title",
|
|
19806
|
-
"onUpdate:modelValue":
|
|
19807
|
+
"onUpdate:modelValue": $[0] || ($[0] = (O) => o.title = O ?? "")
|
|
19807
19808
|
}, null, 8, ["model-value", "label"]),
|
|
19808
19809
|
L(n(oi), {
|
|
19809
19810
|
"model-value": o.allDay,
|
|
19810
19811
|
label: S.$t("VC_SCHEDULER.ALL_DAY"),
|
|
19811
|
-
"onUpdate:modelValue":
|
|
19812
|
+
"onUpdate:modelValue": $[1] || ($[1] = (O) => o.allDay = !!O)
|
|
19812
19813
|
}, null, 8, ["model-value", "label"]),
|
|
19813
19814
|
w("div", bE, [
|
|
19814
19815
|
L(n(Cn), {
|
|
@@ -19816,14 +19817,14 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19816
19817
|
type: c.value,
|
|
19817
19818
|
label: S.$t("VC_SCHEDULER.START"),
|
|
19818
19819
|
class: "vc-scheduler__editor-field",
|
|
19819
|
-
"onUpdate:modelValue":
|
|
19820
|
+
"onUpdate:modelValue": $[2] || ($[2] = (O) => O && (o.start = O))
|
|
19820
19821
|
}, null, 8, ["model-value", "type", "label"]),
|
|
19821
19822
|
L(n(Cn), {
|
|
19822
19823
|
"model-value": d.value,
|
|
19823
19824
|
type: c.value,
|
|
19824
19825
|
label: S.$t("VC_SCHEDULER.END"),
|
|
19825
19826
|
class: "vc-scheduler__editor-field",
|
|
19826
|
-
"onUpdate:modelValue":
|
|
19827
|
+
"onUpdate:modelValue": $[3] || ($[3] = (O) => O && u(O))
|
|
19827
19828
|
}, null, 8, ["model-value", "type", "label"])
|
|
19828
19829
|
]),
|
|
19829
19830
|
e.allowColor ? (s(), V(n(wt), {
|
|
@@ -19834,7 +19835,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19834
19835
|
"option-value": "value",
|
|
19835
19836
|
"option-label": "label",
|
|
19836
19837
|
"data-test": "editor-color",
|
|
19837
|
-
"onUpdate:modelValue":
|
|
19838
|
+
"onUpdate:modelValue": $[4] || ($[4] = (O) => o.color = O && O !== Ol ? O : void 0)
|
|
19838
19839
|
}, {
|
|
19839
19840
|
option: D(({ opt: O }) => [
|
|
19840
19841
|
w("span", hE, [
|
|
@@ -19858,7 +19859,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19858
19859
|
"option-label": "label",
|
|
19859
19860
|
clearable: !1,
|
|
19860
19861
|
"data-test": "editor-repeat",
|
|
19861
|
-
"onUpdate:modelValue":
|
|
19862
|
+
"onUpdate:modelValue": $[5] || ($[5] = (O) => _.value = O)
|
|
19862
19863
|
}, null, 8, ["model-value", "label", "options"]),
|
|
19863
19864
|
o.recurrence ? (s(), m("div", yE, [
|
|
19864
19865
|
w("div", wE, [
|
|
@@ -19868,7 +19869,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19868
19869
|
label: S.$t("VC_SCHEDULER.REPEAT_EVERY"),
|
|
19869
19870
|
class: "vc-scheduler__editor-field",
|
|
19870
19871
|
"data-test": "recur-interval",
|
|
19871
|
-
"onUpdate:modelValue":
|
|
19872
|
+
"onUpdate:modelValue": $[6] || ($[6] = (O) => F(O))
|
|
19872
19873
|
}, null, 8, ["model-value", "label"]),
|
|
19873
19874
|
w("span", CE, z(h.value), 1)
|
|
19874
19875
|
]),
|
|
@@ -19895,7 +19896,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19895
19896
|
"option-label": "label",
|
|
19896
19897
|
class: "vc-scheduler__editor-field",
|
|
19897
19898
|
"data-test": "recur-end-type",
|
|
19898
|
-
"onUpdate:modelValue":
|
|
19899
|
+
"onUpdate:modelValue": $[7] || ($[7] = (O) => A(O))
|
|
19899
19900
|
}, null, 8, ["model-value", "label", "options"]),
|
|
19900
19901
|
p.value === "until" ? (s(), V(n(Cn), {
|
|
19901
19902
|
key: 0,
|
|
@@ -19904,7 +19905,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19904
19905
|
label: S.$t("VC_SCHEDULER.REPEAT_END_UNTIL"),
|
|
19905
19906
|
class: "vc-scheduler__editor-field",
|
|
19906
19907
|
"data-test": "recur-end-until",
|
|
19907
|
-
"onUpdate:modelValue":
|
|
19908
|
+
"onUpdate:modelValue": $[8] || ($[8] = (O) => I(O))
|
|
19908
19909
|
}, null, 8, ["model-value", "label"])) : x("", !0),
|
|
19909
19910
|
p.value === "count" ? (s(), V(n(Pe), {
|
|
19910
19911
|
key: 1,
|
|
@@ -19913,7 +19914,7 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19913
19914
|
label: S.$t("VC_SCHEDULER.REPEAT_END_COUNT"),
|
|
19914
19915
|
class: "vc-scheduler__editor-field",
|
|
19915
19916
|
"data-test": "recur-end-count",
|
|
19916
|
-
"onUpdate:modelValue":
|
|
19917
|
+
"onUpdate:modelValue": $[9] || ($[9] = (O) => P(O))
|
|
19917
19918
|
}, null, 8, ["model-value", "label"])) : x("", !0)
|
|
19918
19919
|
])
|
|
19919
19920
|
])) : x("", !0)
|
|
@@ -19933,11 +19934,11 @@ const jk = { class: "vc-scheduler__tg" }, Xk = { class: "vc-scheduler__tg-head"
|
|
|
19933
19934
|
]),
|
|
19934
19935
|
_: 1
|
|
19935
19936
|
})) : x("", !0),
|
|
19936
|
-
|
|
19937
|
+
$[11] || ($[11] = w("div", { class: "vc-scheduler__editor-footer-spacer" }, null, -1)),
|
|
19937
19938
|
L(n(Se), {
|
|
19938
19939
|
variant: "secondary",
|
|
19939
19940
|
"data-test": "editor-cancel",
|
|
19940
|
-
onClick:
|
|
19941
|
+
onClick: $[10] || ($[10] = (O) => i("close"))
|
|
19941
19942
|
}, {
|
|
19942
19943
|
default: D(() => [
|
|
19943
19944
|
fe(z(S.$t("VC_SCHEDULER.CANCEL")), 1)
|
|
@@ -20318,14 +20319,14 @@ const DE = Symbol("VcSchedulerCalendarContext"), NE = ["aria-busy"], C$ = /* @__
|
|
|
20318
20319
|
}
|
|
20319
20320
|
l("event-delete", W), c.open = !1, c.recurrenceEdit = null;
|
|
20320
20321
|
}
|
|
20321
|
-
function
|
|
20322
|
+
function R() {
|
|
20322
20323
|
c.open = !1, c.recurrenceEdit = null;
|
|
20323
20324
|
}
|
|
20324
20325
|
const S = {
|
|
20325
20326
|
month: "VC_SCHEDULER.MONTH",
|
|
20326
20327
|
"timeline-day": "VC_SCHEDULER.TIMELINE_DAY",
|
|
20327
20328
|
"timeline-week": "VC_SCHEDULER.TIMELINE_WEEK"
|
|
20328
|
-
},
|
|
20329
|
+
}, $ = y(() => t.views.map((W) => ({ value: W, label: i(S[W]) }))), O = N(t.view ?? t.views[0] ?? "month"), U = y({
|
|
20329
20330
|
get: () => t.view ?? O.value,
|
|
20330
20331
|
set: (W) => {
|
|
20331
20332
|
O.value = W, l("update:view", W);
|
|
@@ -20370,7 +20371,7 @@ const DE = Symbol("VcSchedulerCalendarContext"), NE = ["aria-busy"], C$ = /* @__
|
|
|
20370
20371
|
L(AC, {
|
|
20371
20372
|
title: n(G).title.value,
|
|
20372
20373
|
view: U.value,
|
|
20373
|
-
views:
|
|
20374
|
+
views: $.value,
|
|
20374
20375
|
editable: e.editable,
|
|
20375
20376
|
current: ie.value,
|
|
20376
20377
|
onPrev: n(G).goPrev,
|
|
@@ -20488,7 +20489,7 @@ const DE = Symbol("VcSchedulerCalendarContext"), NE = ["aria-busy"], C$ = /* @__
|
|
|
20488
20489
|
allowColor: e.allowColor,
|
|
20489
20490
|
save: E,
|
|
20490
20491
|
delete: M,
|
|
20491
|
-
close:
|
|
20492
|
+
close: R
|
|
20492
20493
|
}, () => [
|
|
20493
20494
|
L(AE, {
|
|
20494
20495
|
open: c.open,
|
|
@@ -20498,7 +20499,7 @@ const DE = Symbol("VcSchedulerCalendarContext"), NE = ["aria-busy"], C$ = /* @__
|
|
|
20498
20499
|
"allow-color": e.allowColor,
|
|
20499
20500
|
onSave: E,
|
|
20500
20501
|
onDelete: M,
|
|
20501
|
-
onClose:
|
|
20502
|
+
onClose: R
|
|
20502
20503
|
}, null, 8, ["open", "draft", "mode", "allow-recurrence", "allow-color"])
|
|
20503
20504
|
]),
|
|
20504
20505
|
L(LE, {
|