@vc-shell/framework 2.6.0-pr371.c384bbc → 2.6.0-pr372.a9e0b2c
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-CS_aEQ84.js → VcScheduler.vue_vue_type_script_setup_true_lang-BSW54H_m.js} +241 -241
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-CS_aEQ84.js.map → VcScheduler.vue_vue_type_script_setup_true_lang-BSW54H_m.js.map} +1 -1
- package/dist/framework.js +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +4 -4
|
@@ -1164,13 +1164,13 @@ const Qc = ls, Zc = /* @__PURE__ */ Q({
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function ce(K) {
|
|
1168
1168
|
!t.closeOnEscape || !f.value || K.key !== "Escape" || (K.preventDefault(), k("escape"));
|
|
1169
1169
|
}
|
|
1170
1170
|
return ne(
|
|
1171
1171
|
() => f.value,
|
|
1172
1172
|
async (K) => {
|
|
1173
|
-
document.removeEventListener("keydown",
|
|
1173
|
+
document.removeEventListener("keydown", ce), K && (V(), t.closeOnEscape && document.addEventListener("keydown", ce), t.autoFocusPanel && (await Re(), u.value?.focus()));
|
|
1174
1174
|
},
|
|
1175
1175
|
{ immediate: !0 }
|
|
1176
1176
|
), ne(
|
|
@@ -1180,7 +1180,7 @@ const Qc = ls, Zc = /* @__PURE__ */ Q({
|
|
|
1180
1180
|
},
|
|
1181
1181
|
{ deep: !0 }
|
|
1182
1182
|
), He(() => {
|
|
1183
|
-
document.removeEventListener("keydown",
|
|
1183
|
+
document.removeEventListener("keydown", ce);
|
|
1184
1184
|
}), (K, W) => (s(), m("div", nu, [
|
|
1185
1185
|
K.$slots.trigger ? (s(), m("div", {
|
|
1186
1186
|
key: 0,
|
|
@@ -3654,19 +3654,19 @@ const kv = { class: "vc-widget-container-desktop" }, Ev = { class: "vc-widget-co
|
|
|
3654
3654
|
function Z() {
|
|
3655
3655
|
c.closeOnOverlay && x("overlay");
|
|
3656
3656
|
}
|
|
3657
|
-
const
|
|
3657
|
+
const ce = B(0), K = B(!1);
|
|
3658
3658
|
function W(se) {
|
|
3659
|
-
!c.draggable || !D.value || (
|
|
3659
|
+
!c.draggable || !D.value || (ce.value = se.touches[0].clientY, K.value = !0);
|
|
3660
3660
|
}
|
|
3661
3661
|
function ae(se) {
|
|
3662
3662
|
if (!K.value || !v.value) return;
|
|
3663
|
-
const ye = se.touches[0].clientY -
|
|
3663
|
+
const ye = se.touches[0].clientY - ce.value;
|
|
3664
3664
|
ye > 0 && (v.value.style.transform = `translateY(${ye}px)`, v.value.style.transition = "none");
|
|
3665
3665
|
}
|
|
3666
3666
|
function ee(se) {
|
|
3667
3667
|
if (!K.value || !v.value) return;
|
|
3668
3668
|
K.value = !1;
|
|
3669
|
-
const ye = se.changedTouches[0].clientY -
|
|
3669
|
+
const ye = se.changedTouches[0].clientY - ce.value, Ee = v.value.offsetHeight, $e = Ee * c.closeThreshold;
|
|
3670
3670
|
ye > $e ? (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = `translateY(${Ee}px)`, setTimeout(() => {
|
|
3671
3671
|
x("action");
|
|
3672
3672
|
}, 200)) : (v.value.style.transition = "transform 0.2s ease", v.value.style.transform = "", setTimeout(() => {
|
|
@@ -3691,7 +3691,7 @@ const kv = { class: "vc-widget-container-desktop" }, Ev = { class: "vc-widget-co
|
|
|
3691
3691
|
function oe(se) {
|
|
3692
3692
|
ke || !c.modelValue || !c.trapFocus || !v.value || se.target instanceof Node && !v.value.contains(se.target) && G();
|
|
3693
3693
|
}
|
|
3694
|
-
function
|
|
3694
|
+
function ue(se) {
|
|
3695
3695
|
if (!c.modelValue)
|
|
3696
3696
|
return;
|
|
3697
3697
|
if (se.key === "Escape") {
|
|
@@ -3727,12 +3727,12 @@ const kv = { class: "vc-widget-container-desktop" }, Ev = { class: "vc-widget-co
|
|
|
3727
3727
|
});
|
|
3728
3728
|
}
|
|
3729
3729
|
function te() {
|
|
3730
|
-
b.value || typeof document > "u" || (b.value = !0, g.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown",
|
|
3730
|
+
b.value || typeof document > "u" || (b.value = !0, g.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, document.addEventListener("keydown", ue), document.addEventListener("focusin", oe), c.lockScroll && i(), c.autoFocus && Re(() => {
|
|
3731
3731
|
G();
|
|
3732
3732
|
}));
|
|
3733
3733
|
}
|
|
3734
3734
|
function me() {
|
|
3735
|
-
!b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown",
|
|
3735
|
+
!b.value || typeof document > "u" || (b.value = !1, document.removeEventListener("keydown", ue), document.removeEventListener("focusin", oe), c.lockScroll && o(), ie());
|
|
3736
3736
|
}
|
|
3737
3737
|
return ne(
|
|
3738
3738
|
() => c.modelValue,
|
|
@@ -4229,15 +4229,15 @@ const cf = uc(rf), uf = ["aria-busy", "aria-labelledby", "aria-label"], df = {
|
|
|
4229
4229
|
const v = () => {
|
|
4230
4230
|
u !== void 0 && (cancelAnimationFrame(u), u = void 0);
|
|
4231
4231
|
};
|
|
4232
|
-
ne([() => !!t.loading, () => c?.value.param], ([Z,
|
|
4233
|
-
K?.length &&
|
|
4232
|
+
ne([() => !!t.loading, () => c?.value.param], ([Z, ce], K) => {
|
|
4233
|
+
K?.length && ce !== K[1] && (v(), d.value = !1), !(Z || !K?.[0]) && (v(), u = requestAnimationFrame(() => {
|
|
4234
4234
|
u = void 0, t.loading || (d.value = !0);
|
|
4235
4235
|
}));
|
|
4236
4236
|
}), kt(v);
|
|
4237
4237
|
const b = h(() => !!t.loading && !d.value), g = h(() => !!t.loading && d.value);
|
|
4238
4238
|
Be(Yi, b), ht();
|
|
4239
4239
|
const f = a, { isMobile: y, isDesktop: p } = Fe(), S = qn(), { id: C } = S, E = !!c, R = Ce(vo, void 0), L = Ce(Wn, void 0), F = h(() => E ? S.expanded.value : t.expanded), D = h(() => E ? S.closable.value : t.closable), P = Vi(), V = h(() => {
|
|
4240
|
-
const { class: Z, style:
|
|
4240
|
+
const { class: Z, style: ce, onClose: K, ...W } = P;
|
|
4241
4241
|
return W;
|
|
4242
4242
|
});
|
|
4243
4243
|
function $() {
|
|
@@ -4255,15 +4255,15 @@ const cf = uc(rf), uf = ["aria-busy", "aria-labelledby", "aria-label"], df = {
|
|
|
4255
4255
|
});
|
|
4256
4256
|
const z = B(null), Y = B(null);
|
|
4257
4257
|
return ne(b, (Z) => {
|
|
4258
|
-
const
|
|
4259
|
-
!Z || !
|
|
4258
|
+
const ce = z.value;
|
|
4259
|
+
!Z || !ce || document.activeElement && ce.contains(document.activeElement) && ce.focus({ preventScroll: !0 });
|
|
4260
4260
|
}), tt(() => Tt(() => z.value)), ne(
|
|
4261
4261
|
() => L?.value?.maximized,
|
|
4262
4262
|
() => Tt(() => z.value)
|
|
4263
4263
|
), ne(
|
|
4264
4264
|
() => !!t.loading,
|
|
4265
4265
|
() => Tt(() => z.value)
|
|
4266
|
-
), (Z,
|
|
4266
|
+
), (Z, ce) => (s(), m("div", Me({
|
|
4267
4267
|
ref_key: "bladeRef",
|
|
4268
4268
|
ref: z
|
|
4269
4269
|
}, V.value, {
|
|
@@ -5379,14 +5379,14 @@ const Vf = {
|
|
|
5379
5379
|
/^>/m
|
|
5380
5380
|
// Blockquotes
|
|
5381
5381
|
];
|
|
5382
|
-
let Z = 0,
|
|
5382
|
+
let Z = 0, ce = 0;
|
|
5383
5383
|
return z.forEach((K) => {
|
|
5384
5384
|
const W = x.match(K);
|
|
5385
5385
|
W && (Z += W.length);
|
|
5386
5386
|
}), Y.forEach((K) => {
|
|
5387
5387
|
const W = x.match(K);
|
|
5388
|
-
W && (
|
|
5389
|
-
}), Z >
|
|
5388
|
+
W && (ce += W.length);
|
|
5389
|
+
}), Z > ce * 2 ? "html" : "markdown";
|
|
5390
5390
|
}
|
|
5391
5391
|
const S = h(() => {
|
|
5392
5392
|
const x = [
|
|
@@ -5563,7 +5563,7 @@ const Vf = {
|
|
|
5563
5563
|
const z = x.target;
|
|
5564
5564
|
if (!z.files?.length || !l.assetsFolder) return;
|
|
5565
5565
|
const Y = Array.from(z.files), Z = new FormData();
|
|
5566
|
-
Y.forEach((
|
|
5566
|
+
Y.forEach((ce) => Z.append("image", ce));
|
|
5567
5567
|
try {
|
|
5568
5568
|
(await (await fetch(`/api/assets?folderUrl=/${l.assetsFolder}`, {
|
|
5569
5569
|
method: "POST",
|
|
@@ -5571,8 +5571,8 @@ const Vf = {
|
|
|
5571
5571
|
})).json()).forEach((W) => {
|
|
5572
5572
|
W.url && O.value?.chain().focus().setImage({ src: W.url }).run();
|
|
5573
5573
|
});
|
|
5574
|
-
} catch (
|
|
5575
|
-
console.error("Image upload failed:",
|
|
5574
|
+
} catch (ce) {
|
|
5575
|
+
console.error("Image upload failed:", ce);
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
5578
5578
|
return (x, z) => n(t) ? (s(), m("div", Jf, [
|
|
@@ -5806,13 +5806,13 @@ const Vf = {
|
|
|
5806
5806
|
function Z() {
|
|
5807
5807
|
x = Date.now(), window.clearTimeout(k), k = window.setTimeout(A, z);
|
|
5808
5808
|
}
|
|
5809
|
-
function
|
|
5809
|
+
function ce() {
|
|
5810
5810
|
z = _, Z();
|
|
5811
5811
|
}
|
|
5812
5812
|
function K() {
|
|
5813
5813
|
window.clearTimeout(k);
|
|
5814
5814
|
}
|
|
5815
|
-
return { pause: Y, resume: Z, start:
|
|
5815
|
+
return { pause: Y, resume: Z, start: ce, clear: K };
|
|
5816
5816
|
}
|
|
5817
5817
|
He(() => {
|
|
5818
5818
|
g.value?.clear(), y.value?.disconnect();
|
|
@@ -6734,7 +6734,7 @@ const mg = {
|
|
|
6734
6734
|
options: () => t.options,
|
|
6735
6735
|
modelValue: () => t.modelValue,
|
|
6736
6736
|
optionValue: () => t.optionValue
|
|
6737
|
-
}), { isOpened: k, isFocused: x, dropdownToggleRef: z, dropdownRef: Y, searchRef: Z, dropdownStyle:
|
|
6737
|
+
}), { isOpened: k, isFocused: x, dropdownToggleRef: z, dropdownRef: Y, searchRef: Z, dropdownStyle: ce, toggleDropdown: K, closeDropdown: W } = vg({
|
|
6738
6738
|
disabled: () => t.disabled ?? !1,
|
|
6739
6739
|
onItemSelect: (q) => {
|
|
6740
6740
|
_.value[q] && ae(_.value[q]);
|
|
@@ -6858,7 +6858,7 @@ const mg = {
|
|
|
6858
6858
|
ref_key: "dropdownComponentRef",
|
|
6859
6859
|
ref: p,
|
|
6860
6860
|
"is-opened": n(k),
|
|
6861
|
-
"dropdown-style": n(
|
|
6861
|
+
"dropdown-style": n(ce),
|
|
6862
6862
|
"available-options": n(_),
|
|
6863
6863
|
"option-label": e.optionLabel
|
|
6864
6864
|
}, { ariaLabel: e.label || e.name }, {
|
|
@@ -8870,7 +8870,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8870
8870
|
return;
|
|
8871
8871
|
W.updateScrollState?.();
|
|
8872
8872
|
}
|
|
8873
|
-
function
|
|
8873
|
+
function ce(W) {
|
|
8874
8874
|
return u.value?.id === W;
|
|
8875
8875
|
}
|
|
8876
8876
|
function K(W) {
|
|
@@ -8979,7 +8979,7 @@ const Va = /* @__PURE__ */ Q({
|
|
|
8979
8979
|
key: ee.id,
|
|
8980
8980
|
type: "button",
|
|
8981
8981
|
"data-widget-id": ee.id,
|
|
8982
|
-
class: X(["app-hub-content__item app-hub-content__item--widget", { "app-hub-content__item--active":
|
|
8982
|
+
class: X(["app-hub-content__item app-hub-content__item--widget", { "app-hub-content__item--active": ce(ee.id) }]),
|
|
8983
8983
|
onClick: (q) => x(ee)
|
|
8984
8984
|
}, [
|
|
8985
8985
|
w("div", Mb, [
|
|
@@ -9705,7 +9705,7 @@ const rh = {
|
|
|
9705
9705
|
});
|
|
9706
9706
|
const Z = (K) => {
|
|
9707
9707
|
r.value = "", i.closeMenu(), l("item:click", K);
|
|
9708
|
-
},
|
|
9708
|
+
}, ce = (K) => {
|
|
9709
9709
|
i.closeMenu(), l("switch-app", K);
|
|
9710
9710
|
};
|
|
9711
9711
|
return (K, W) => (s(), m(J, null, [
|
|
@@ -9824,7 +9824,7 @@ const rh = {
|
|
|
9824
9824
|
"apps-list": t.appsList,
|
|
9825
9825
|
"show-applications": !t.disableAppHub,
|
|
9826
9826
|
mobile: "",
|
|
9827
|
-
onSwitchApp:
|
|
9827
|
+
onSwitchApp: ce
|
|
9828
9828
|
}, De({ _: 2 }, [
|
|
9829
9829
|
K.$slots["app-hub"] && !t.disableAppHub ? {
|
|
9830
9830
|
name: "applications",
|
|
@@ -9845,7 +9845,7 @@ const rh = {
|
|
|
9845
9845
|
"apps-list": t.appsList,
|
|
9846
9846
|
"show-applications": !t.disableAppHub,
|
|
9847
9847
|
mobile: "",
|
|
9848
|
-
onSwitchApp:
|
|
9848
|
+
onSwitchApp: ce
|
|
9849
9849
|
}, De({ _: 2 }, [
|
|
9850
9850
|
K.$slots["app-hub"] && !t.disableAppHub ? {
|
|
9851
9851
|
name: "applications",
|
|
@@ -14538,11 +14538,11 @@ const p1 = {
|
|
|
14538
14538
|
emits: ["click", "select", "action", "cell-value-change", "expand-toggle"],
|
|
14539
14539
|
setup(e, { emit: a }) {
|
|
14540
14540
|
const t = e, l = a;
|
|
14541
|
-
function r(
|
|
14542
|
-
l("expand-toggle", t.item, t.index,
|
|
14541
|
+
function r(ue) {
|
|
14542
|
+
l("expand-toggle", t.item, t.index, ue);
|
|
14543
14543
|
}
|
|
14544
|
-
function i(
|
|
14545
|
-
l("cell-value-change",
|
|
14544
|
+
function i(ue, ie) {
|
|
14545
|
+
l("cell-value-change", ue.field || ue.id, ie.value);
|
|
14546
14546
|
}
|
|
14547
14547
|
const o = B(null), c = B(null), d = B(!1), u = B(null);
|
|
14548
14548
|
function v() {
|
|
@@ -14554,31 +14554,31 @@ const p1 = {
|
|
|
14554
14554
|
u.value && (clearTimeout(u.value), u.value = null), d.value = !1;
|
|
14555
14555
|
}
|
|
14556
14556
|
const g = B(0), f = B(0), y = B(!1), p = B(!1), S = B(null), C = B(0), E = B(0), R = B(0), L = B(0), F = B(0), D = B(0), P = B(null), { activeSwipeId: V, setActiveSwipe: $ } = g1(), O = h(() => t.item[t.dataKey] ?? `item-${t.index}`), A = h(() => t.anySelected && t.selectionMode !== void 0), _ = h(() => t.anySelected ? [] : t.actions ?? []), k = h(() => _.value.length > 2), x = h(() => _.value.slice(0, 2)), z = h(() => t.actions ?? []), Y = h(() => {
|
|
14557
|
-
const
|
|
14558
|
-
return Math.min(
|
|
14557
|
+
const ue = _.value.length;
|
|
14558
|
+
return Math.min(ue, ue > 2 ? 3 : 2) * 70;
|
|
14559
14559
|
});
|
|
14560
|
-
function Z(
|
|
14560
|
+
function Z(ue, ie = 300) {
|
|
14561
14561
|
S.value !== null && cancelAnimationFrame(S.value);
|
|
14562
14562
|
const te = g.value, me = performance.now();
|
|
14563
14563
|
let se = L.value, ye = te;
|
|
14564
14564
|
y.value = !0;
|
|
14565
14565
|
function Ee($e) {
|
|
14566
14566
|
if ($e - me < ie) {
|
|
14567
|
-
const st = (
|
|
14567
|
+
const st = (ue - ye) * S1, at = se * $1, St = (st - at) / R1;
|
|
14568
14568
|
se += St, ye += se, g.value = ye, f.value = Math.abs(g.value), S.value = requestAnimationFrame(Ee);
|
|
14569
14569
|
} else
|
|
14570
|
-
g.value =
|
|
14570
|
+
g.value = ue, f.value = Math.abs(ue), y.value = !1, S.value = null;
|
|
14571
14571
|
}
|
|
14572
14572
|
S.value = requestAnimationFrame(Ee);
|
|
14573
14573
|
}
|
|
14574
|
-
function
|
|
14574
|
+
function ce(ue) {
|
|
14575
14575
|
if (y.value || _.value.length === 0) return;
|
|
14576
|
-
const ie =
|
|
14576
|
+
const ie = ue.touches[0];
|
|
14577
14577
|
C.value = ie.clientX, E.value = ie.clientY, R.value = g.value, L.value = 0, F.value = Date.now(), D.value = ie.clientX, P.value = null, $(String(O.value));
|
|
14578
14578
|
}
|
|
14579
|
-
function K(
|
|
14579
|
+
function K(ue) {
|
|
14580
14580
|
if (y.value || _.value.length === 0 || V.value !== String(O.value)) return;
|
|
14581
|
-
const ie =
|
|
14581
|
+
const ie = ue.touches[0], te = ie.clientX, me = te - C.value, se = ie.clientY - E.value;
|
|
14582
14582
|
if (P.value === null) {
|
|
14583
14583
|
const We = Math.abs(me), st = Math.abs(se);
|
|
14584
14584
|
if (We >= ja || st >= ja)
|
|
@@ -14588,7 +14588,7 @@ const p1 = {
|
|
|
14588
14588
|
}
|
|
14589
14589
|
if (P.value === "vertical")
|
|
14590
14590
|
return;
|
|
14591
|
-
|
|
14591
|
+
ue.preventDefault();
|
|
14592
14592
|
const ye = Date.now(), Ee = ye - F.value;
|
|
14593
14593
|
Ee > 0 && (L.value = (te - D.value) / Ee), F.value = ye, D.value = te;
|
|
14594
14594
|
let $e = R.value + me;
|
|
@@ -14599,8 +14599,8 @@ const p1 = {
|
|
|
14599
14599
|
$e > 0 && ($e = 0), g.value = $e, f.value = Math.abs($e);
|
|
14600
14600
|
}
|
|
14601
14601
|
function W() {
|
|
14602
|
-
const
|
|
14603
|
-
if (P.value = null,
|
|
14602
|
+
const ue = P.value === "vertical" || P.value === null;
|
|
14603
|
+
if (P.value = null, ue || y.value || _.value.length === 0 || V.value !== String(O.value)) return;
|
|
14604
14604
|
const ie = Math.abs(L.value), te = L.value < 0 ? -1 : 1;
|
|
14605
14605
|
if (ie > 0.5)
|
|
14606
14606
|
te < 0 ? Z(-Y.value) : Z(0);
|
|
@@ -14611,8 +14611,8 @@ const p1 = {
|
|
|
14611
14611
|
}
|
|
14612
14612
|
ne(
|
|
14613
14613
|
V,
|
|
14614
|
-
(
|
|
14615
|
-
(!
|
|
14614
|
+
(ue) => {
|
|
14615
|
+
(!ue || ue !== String(O.value)) && g.value !== 0 && Z(0);
|
|
14616
14616
|
},
|
|
14617
14617
|
{ immediate: !0 }
|
|
14618
14618
|
);
|
|
@@ -14633,20 +14633,20 @@ const p1 = {
|
|
|
14633
14633
|
function q() {
|
|
14634
14634
|
l("select", t.item, t.index);
|
|
14635
14635
|
}
|
|
14636
|
-
function ke(
|
|
14637
|
-
|
|
14636
|
+
function ke(ue) {
|
|
14637
|
+
ue.disabled || (ae(), l("action", ue, t.item, t.index));
|
|
14638
14638
|
}
|
|
14639
14639
|
function G() {
|
|
14640
14640
|
ae(), p.value = !0;
|
|
14641
14641
|
}
|
|
14642
|
-
function oe(
|
|
14643
|
-
l("action",
|
|
14642
|
+
function oe(ue) {
|
|
14643
|
+
l("action", ue, t.item, t.index);
|
|
14644
14644
|
}
|
|
14645
14645
|
return tt(() => {
|
|
14646
|
-
c.value && (c.value.addEventListener("touchstart",
|
|
14646
|
+
c.value && (c.value.addEventListener("touchstart", ce, { passive: !0 }), c.value.addEventListener("touchmove", K, { passive: !1 }), c.value.addEventListener("touchend", W, { passive: !0 }));
|
|
14647
14647
|
}), He(() => {
|
|
14648
|
-
c.value && (c.value.removeEventListener("touchstart",
|
|
14649
|
-
}), (
|
|
14648
|
+
c.value && (c.value.removeEventListener("touchstart", ce), c.value.removeEventListener("touchmove", K), c.value.removeEventListener("touchend", W)), S.value !== null && cancelAnimationFrame(S.value), u.value && clearTimeout(u.value);
|
|
14649
|
+
}), (ue, ie) => Xe((s(), m("div", {
|
|
14650
14650
|
ref_key: "containerRef",
|
|
14651
14651
|
ref: o,
|
|
14652
14652
|
class: X(["vc-data-table-mobile-card", {
|
|
@@ -14810,7 +14810,7 @@ const p1 = {
|
|
|
14810
14810
|
onTouchstart: ie[6] || (ie[6] = de(() => {
|
|
14811
14811
|
}, ["stop"]))
|
|
14812
14812
|
}, [
|
|
14813
|
-
H(
|
|
14813
|
+
H(ue.$slots, "expansion")
|
|
14814
14814
|
], 32)) : M("", !0)
|
|
14815
14815
|
], 4),
|
|
14816
14816
|
_.value.length > 0 ? (s(), m("div", {
|
|
@@ -15003,14 +15003,14 @@ const D1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
15003
15003
|
const x = d.value, z = performance.now();
|
|
15004
15004
|
let Y = y.value, Z = x;
|
|
15005
15005
|
b.value = !0;
|
|
15006
|
-
function
|
|
15006
|
+
function ce(K) {
|
|
15007
15007
|
if (K - z < k) {
|
|
15008
15008
|
const ae = (_ - Z) * N1, ee = Y * P1, q = (ae - ee) / V1;
|
|
15009
|
-
Y += q, Z += Y, d.value = Math.max(0, Z), g.value = requestAnimationFrame(
|
|
15009
|
+
Y += q, Z += Y, d.value = Math.max(0, Z), g.value = requestAnimationFrame(ce);
|
|
15010
15010
|
} else
|
|
15011
15011
|
d.value = _, b.value = !1, g.value = null;
|
|
15012
15012
|
}
|
|
15013
|
-
g.value = requestAnimationFrame(
|
|
15013
|
+
g.value = requestAnimationFrame(ce);
|
|
15014
15014
|
}
|
|
15015
15015
|
function $(_) {
|
|
15016
15016
|
if (!C.value || b.value || !P()) return;
|
|
@@ -15026,8 +15026,8 @@ const D1 = { class: "vc-pull-to-refresh__indicator-content" }, B1 = { class: "vc
|
|
|
15026
15026
|
}
|
|
15027
15027
|
const Y = Date.now(), Z = Y - p.value;
|
|
15028
15028
|
Z > 0 && (y.value = (x - S.value) / Z), p.value = Y, S.value = x;
|
|
15029
|
-
const
|
|
15030
|
-
let K = z *
|
|
15029
|
+
const ce = Math.max(0.4, 1 - z / 300);
|
|
15030
|
+
let K = z * ce;
|
|
15031
15031
|
const W = l.threshold * 2.5;
|
|
15032
15032
|
K = Math.min(K, W), d.value = K, v.value = K >= l.threshold;
|
|
15033
15033
|
}
|
|
@@ -15396,8 +15396,8 @@ function Z1(e) {
|
|
|
15396
15396
|
let b = 0, g = 0, f = {}, y = "", p = [];
|
|
15397
15397
|
const S = (z) => {
|
|
15398
15398
|
const Y = {};
|
|
15399
|
-
for (const [Z,
|
|
15400
|
-
Y[Z] = { ...
|
|
15399
|
+
for (const [Z, ce] of Object.entries(z))
|
|
15400
|
+
Y[Z] = { ...ce };
|
|
15401
15401
|
return Y;
|
|
15402
15402
|
}, C = () => {
|
|
15403
15403
|
const z = o?.() ?? [];
|
|
@@ -15407,7 +15407,7 @@ function Z1(e) {
|
|
|
15407
15407
|
return Y.size === 0 ? a.value.order.filter((Z) => !!a.value.specs[Z]) : a.value.order.filter((Z) => Y.has(Z) && !!a.value.specs[Z]);
|
|
15408
15408
|
}, E = (z) => {
|
|
15409
15409
|
const Y = C(), Z = Y.indexOf(z);
|
|
15410
|
-
return Z < 0 ? !1 : (y = z, f = S(a.value.specs), p = Y.slice(Z + 1).filter((
|
|
15410
|
+
return Z < 0 ? !1 : (y = z, f = S(a.value.specs), p = Y.slice(Z + 1).filter((ce) => !!f[ce]), v.value = !0, c?.(), !0);
|
|
15411
15411
|
}, R = (z) => {
|
|
15412
15412
|
!v.value || !y || D(z);
|
|
15413
15413
|
}, L = () => {
|
|
@@ -15419,22 +15419,22 @@ function Z1(e) {
|
|
|
15419
15419
|
if (Y <= 0) return;
|
|
15420
15420
|
const Z = C();
|
|
15421
15421
|
if (Z.length === 0 || !Z.includes(y)) return;
|
|
15422
|
-
const
|
|
15422
|
+
const ce = {};
|
|
15423
15423
|
for (const ie of Z)
|
|
15424
|
-
f[ie] && (
|
|
15424
|
+
f[ie] && (ce[ie] = f[ie].weight * Y);
|
|
15425
15425
|
let K = 0;
|
|
15426
15426
|
for (const ie of p) {
|
|
15427
15427
|
const te = f[ie]?.minPx ?? i;
|
|
15428
|
-
K += Math.max(0,
|
|
15428
|
+
K += Math.max(0, ce[ie] - te);
|
|
15429
15429
|
}
|
|
15430
|
-
const W = Z.reduce((ie, te) => ie + (
|
|
15430
|
+
const W = Z.reduce((ie, te) => ie + (ce[te] ?? 0), 0), ae = Math.max(0, Y - W);
|
|
15431
15431
|
K += ae;
|
|
15432
|
-
const ee = f[y]?.minPx ?? i, q = Math.max(0,
|
|
15432
|
+
const ee = f[y]?.minPx ?? i, q = Math.max(0, ce[y] - ee), ke = Math.max(-q, Math.min(z, K));
|
|
15433
15433
|
if (Math.abs(ke) < 0.5) return;
|
|
15434
|
-
const G = { ...
|
|
15435
|
-
if (G[y] =
|
|
15434
|
+
const G = { ...ce };
|
|
15435
|
+
if (G[y] = ce[y] + ke, p.length > 0) {
|
|
15436
15436
|
for (const me of p)
|
|
15437
|
-
G[me] =
|
|
15437
|
+
G[me] = ce[me];
|
|
15438
15438
|
let ie = ke;
|
|
15439
15439
|
const te = [...p];
|
|
15440
15440
|
for (; Math.abs(ie) > 0.5 && te.length > 0; ) {
|
|
@@ -15448,8 +15448,8 @@ function Z1(e) {
|
|
|
15448
15448
|
te.length = 0, te.push(...se);
|
|
15449
15449
|
}
|
|
15450
15450
|
}
|
|
15451
|
-
const oe = S(f),
|
|
15452
|
-
for (const ie of
|
|
15451
|
+
const oe = S(f), ue = Z.filter((ie) => !!oe[ie]);
|
|
15452
|
+
for (const ie of ue)
|
|
15453
15453
|
oe[ie] && G[ie] !== void 0 && (oe[ie].weight = G[ie] / Y);
|
|
15454
15454
|
a.value = { ...a.value, specs: oe }, l();
|
|
15455
15455
|
}, P = (z) => {
|
|
@@ -15464,8 +15464,8 @@ function Z1(e) {
|
|
|
15464
15464
|
resizable: !0,
|
|
15465
15465
|
columnId: z,
|
|
15466
15466
|
isLastResizable: Y === a.value.order.length - 1,
|
|
15467
|
-
onResizeStart: (Z,
|
|
15468
|
-
Z && F(Z,
|
|
15467
|
+
onResizeStart: (Z, ce) => {
|
|
15468
|
+
Z && F(Z, ce);
|
|
15469
15469
|
}
|
|
15470
15470
|
});
|
|
15471
15471
|
let O = null, A = !1, _ = 0;
|
|
@@ -15635,25 +15635,25 @@ function tC(e) {
|
|
|
15635
15635
|
}, D = async () => {
|
|
15636
15636
|
const { valid: Y } = await y();
|
|
15637
15637
|
Y && (r && await r(A.value), c = a.value.map((Z) => An(Z)), p(), S.value = /* @__PURE__ */ new Map(), o.value = !1);
|
|
15638
|
-
}, P = (Y, Z,
|
|
15638
|
+
}, P = (Y, Z, ce) => {
|
|
15639
15639
|
if (Y < 0 || Y >= a.value.length) return;
|
|
15640
15640
|
const K = R(Y, Z), W = a.value[Y];
|
|
15641
|
-
W[Z] =
|
|
15641
|
+
W[Z] = ce;
|
|
15642
15642
|
const ae = new Map(S.value);
|
|
15643
|
-
ae.set(K,
|
|
15643
|
+
ae.set(K, ce), S.value = ae, g(K, ce), l?.(Y, Z, ce, W);
|
|
15644
15644
|
}, V = (Y, Z) => {
|
|
15645
15645
|
if (!(Y < 0 || Y >= a.value.length))
|
|
15646
15646
|
return a.value[Y][Z];
|
|
15647
15647
|
}, $ = (Y, Z) => S.value.has(R(Y, Z)), O = h(() => b.value.valid), A = h(() => {
|
|
15648
15648
|
const Y = [];
|
|
15649
|
-
for (const [Z,
|
|
15649
|
+
for (const [Z, ce] of S.value.entries()) {
|
|
15650
15650
|
const [K, W] = Z.split(":"), ae = parseInt(K, 10), ee = c[ae]?.[W];
|
|
15651
|
-
ee !==
|
|
15651
|
+
ee !== ce && Y.push({
|
|
15652
15652
|
rowIndex: ae,
|
|
15653
15653
|
row: a.value[ae],
|
|
15654
15654
|
field: W,
|
|
15655
15655
|
oldValue: ee,
|
|
15656
|
-
newValue:
|
|
15656
|
+
newValue: ce
|
|
15657
15657
|
});
|
|
15658
15658
|
}
|
|
15659
15659
|
return Y;
|
|
@@ -15673,8 +15673,8 @@ function tC(e) {
|
|
|
15673
15673
|
addRow: (Y) => {
|
|
15674
15674
|
const Z = Y ?? {};
|
|
15675
15675
|
a.value.push(Z);
|
|
15676
|
-
const
|
|
15677
|
-
K.add(
|
|
15676
|
+
const ce = a.value.length - 1, K = new Set(C.value);
|
|
15677
|
+
K.add(ce), C.value = K;
|
|
15678
15678
|
},
|
|
15679
15679
|
removeRow: (Y) => {
|
|
15680
15680
|
if (Y < 0 || Y >= a.value.length) return;
|
|
@@ -15687,18 +15687,18 @@ function tC(e) {
|
|
|
15687
15687
|
Z.set(R(ke, ee), W);
|
|
15688
15688
|
}
|
|
15689
15689
|
S.value = Z;
|
|
15690
|
-
const
|
|
15690
|
+
const ce = /* @__PURE__ */ new Set();
|
|
15691
15691
|
for (const K of C.value)
|
|
15692
|
-
K !== Y &&
|
|
15693
|
-
C.value =
|
|
15692
|
+
K !== Y && ce.add(K > Y ? K - 1 : K);
|
|
15693
|
+
C.value = ce;
|
|
15694
15694
|
},
|
|
15695
|
-
getCellEditProps: (Y, Z,
|
|
15695
|
+
getCellEditProps: (Y, Z, ce) => ({
|
|
15696
15696
|
editable: o.value,
|
|
15697
15697
|
fieldId: Z,
|
|
15698
15698
|
fieldName: `${Z}_${Y}`,
|
|
15699
15699
|
label: Z,
|
|
15700
15700
|
rowIndex: Y,
|
|
15701
|
-
rules:
|
|
15701
|
+
rules: ce,
|
|
15702
15702
|
onUpdate: (K) => {
|
|
15703
15703
|
P(Y, K.field, K.value);
|
|
15704
15704
|
},
|
|
@@ -16287,8 +16287,8 @@ function cC(e) {
|
|
|
16287
16287
|
);
|
|
16288
16288
|
if (!l || i.value.order.length === 0)
|
|
16289
16289
|
return _;
|
|
16290
|
-
const k = new Map(i.value.order.map((W, ae) => [W, ae])), x = _.filter((W) => nt(W.props)), z = _.filter((W) => !nt(W.props)).sort((W, ae) => (k.get(W.props.id) ?? 0) - (k.get(ae.props.id) ?? 0)), Y = x.filter((W) => W.props.selectionMode), Z = x.filter((W) => W.props.expander),
|
|
16291
|
-
return [...Y, ...Z, ...
|
|
16290
|
+
const k = new Map(i.value.order.map((W, ae) => [W, ae])), x = _.filter((W) => nt(W.props)), z = _.filter((W) => !nt(W.props)).sort((W, ae) => (k.get(W.props.id) ?? 0) - (k.get(ae.props.id) ?? 0)), Y = x.filter((W) => W.props.selectionMode), Z = x.filter((W) => W.props.expander), ce = x.filter((W) => W.props.rowReorder), K = x.filter((W) => W.props.rowEditor);
|
|
16291
|
+
return [...Y, ...Z, ...ce, ...z, ...K];
|
|
16292
16292
|
}), E = (_) => {
|
|
16293
16293
|
if (!d(_)) return !1;
|
|
16294
16294
|
const k = C.value.filter((x) => d(x.props));
|
|
@@ -16311,13 +16311,13 @@ function cC(e) {
|
|
|
16311
16311
|
})), z = Q1(x, _), Y = [...i.value.order], Z = new Set(Y);
|
|
16312
16312
|
for (const W of k)
|
|
16313
16313
|
Z.has(W.props.id) || Y.push(W.props.id);
|
|
16314
|
-
const
|
|
16314
|
+
const ce = { ...i.value.specs };
|
|
16315
16315
|
let K = Y.length !== i.value.order.length;
|
|
16316
16316
|
for (const W of k) {
|
|
16317
|
-
const ae = z[W.props.id] ?? 1 / k.length, ee = L(W.props, _, ae), q =
|
|
16318
|
-
(!q || Math.abs(q.weight - ee.weight) > 1e-9 || q.minPx !== ee.minPx || q.maxPx !== ee.maxPx) && (
|
|
16317
|
+
const ae = z[W.props.id] ?? 1 / k.length, ee = L(W.props, _, ae), q = ce[W.props.id];
|
|
16318
|
+
(!q || Math.abs(q.weight - ee.weight) > 1e-9 || q.minPx !== ee.minPx || q.maxPx !== ee.maxPx) && (ce[W.props.id] = ee, K = !0);
|
|
16319
16319
|
}
|
|
16320
|
-
K && (i.value = { order: Y, specs:
|
|
16320
|
+
K && (i.value = { order: Y, specs: ce });
|
|
16321
16321
|
}
|
|
16322
16322
|
let D = !1;
|
|
16323
16323
|
const P = () => {
|
|
@@ -16335,14 +16335,14 @@ function cC(e) {
|
|
|
16335
16335
|
return ne(
|
|
16336
16336
|
a,
|
|
16337
16337
|
() => {
|
|
16338
|
-
const _ = a.value.filter((ee) => !nt(ee.props)), k = _.map((ee) => ee.props.id), x = new Set(k), z = new Set(i.value.order), Y = k.filter((ee) => !z.has(ee)), Z = A ? [] : k.filter((ee) => z.has(ee) && !O.has(ee)),
|
|
16338
|
+
const _ = a.value.filter((ee) => !nt(ee.props)), k = _.map((ee) => ee.props.id), x = new Set(k), z = new Set(i.value.order), Y = k.filter((ee) => !z.has(ee)), Z = A ? [] : k.filter((ee) => z.has(ee) && !O.has(ee)), ce = A ? [] : [...O].filter((ee) => !x.has(ee)), K = Y.length > 0 || Z.length > 0 || ce.length > 0, W = i.value.order.length === 0, ae = e.getAvailableWidth();
|
|
16339
16339
|
if (W || Y.length > 0)
|
|
16340
16340
|
if (W && ae > 0)
|
|
16341
16341
|
F(ae);
|
|
16342
16342
|
else {
|
|
16343
16343
|
const ee = { ...i.value };
|
|
16344
16344
|
ee.order = [...ee.order], ee.specs = { ...ee.specs };
|
|
16345
|
-
const q = k.filter((oe) => ee.specs[oe] && !Y.includes(oe)), ke = q.length > 0 ? q.reduce((oe,
|
|
16345
|
+
const q = k.filter((oe) => ee.specs[oe] && !Y.includes(oe)), ke = q.length > 0 ? q.reduce((oe, ue) => oe + ee.specs[ue].weight, 0) / q.length : 1 / k.length;
|
|
16346
16346
|
for (const oe of _)
|
|
16347
16347
|
z.has(oe.props.id) || (ee.order.push(oe.props.id), ee.specs[oe.props.id] = L(oe.props, ae, ke));
|
|
16348
16348
|
const G = k.filter((oe) => ee.specs[oe]);
|
|
@@ -16358,7 +16358,7 @@ function cC(e) {
|
|
|
16358
16358
|
ee.specs,
|
|
16359
16359
|
k.filter((G) => ee.specs[G])
|
|
16360
16360
|
), i.value = ee;
|
|
16361
|
-
} else if (
|
|
16361
|
+
} else if (ce.length > 0) {
|
|
16362
16362
|
const ee = { ...i.value };
|
|
16363
16363
|
ee.specs = { ...ee.specs }, Rn(
|
|
16364
16364
|
ee.specs,
|
|
@@ -16695,11 +16695,11 @@ function gC(e) {
|
|
|
16695
16695
|
},
|
|
16696
16696
|
{ immediate: !0 }
|
|
16697
16697
|
);
|
|
16698
|
-
const Z = h(() => l.value.find((j) => j.props.rowReorder === !0) || null),
|
|
16699
|
-
disabled: h(() => !
|
|
16698
|
+
const Z = h(() => l.value.find((j) => j.props.rowReorder === !0) || null), ce = h(() => a.reorderableRows || Z.value !== null), K = h(() => ce.value), W = B(), { reorderedItems: ae, pendingReorder: ee } = eC(W, Ie(a, "items"), {
|
|
16699
|
+
disabled: h(() => !ce.value),
|
|
16700
16700
|
handle: mC,
|
|
16701
16701
|
onReorder: (j) => t("row-reorder", j)
|
|
16702
|
-
}), q = h(() => l.value.find((j) => j.props.expander === !0) || null), ke = h(() => q.value !== null), G = hi(), { filterValues: oe, updateFilter:
|
|
16702
|
+
}), q = h(() => l.value.find((j) => j.props.expander === !0) || null), ke = h(() => q.value !== null), G = hi(), { filterValues: oe, updateFilter: ue, updateRangeFilter: ie, clearFilter: te, buildPayload: me, hasActiveFilters: se } = nC(
|
|
16703
16703
|
{
|
|
16704
16704
|
onFilterChange: (j) => {
|
|
16705
16705
|
t("filter", { filters: j, filteredValue: a.items });
|
|
@@ -16728,7 +16728,7 @@ function gC(e) {
|
|
|
16728
16728
|
}
|
|
16729
16729
|
} else {
|
|
16730
16730
|
const Ne = pe[Oe];
|
|
16731
|
-
|
|
16731
|
+
ue(Oe, Ne);
|
|
16732
16732
|
}
|
|
16733
16733
|
It();
|
|
16734
16734
|
}, nn = (j) => {
|
|
@@ -16742,7 +16742,7 @@ function gC(e) {
|
|
|
16742
16742
|
} else
|
|
16743
16743
|
te(pe);
|
|
16744
16744
|
It();
|
|
16745
|
-
}, dl = h(() => ee.value &&
|
|
16745
|
+
}, dl = h(() => ee.value && ce.value ? [...ae.value] : a.items ?? []), an = (j) => dl.value.indexOf(j), on = h(() => _.orderedVisibleColumns.value.filter(
|
|
16746
16746
|
(j) => j != null && j.props != null && j.props.id != null
|
|
16747
16747
|
)), { handleResizeStart: sn } = Z1({
|
|
16748
16748
|
columnState: _.columnState,
|
|
@@ -16813,7 +16813,7 @@ function gC(e) {
|
|
|
16813
16813
|
// Row reorder
|
|
16814
16814
|
reorderedItems: ae,
|
|
16815
16815
|
pendingReorder: ee,
|
|
16816
|
-
isRowReorderEnabled:
|
|
16816
|
+
isRowReorderEnabled: ce,
|
|
16817
16817
|
showRowDragHandle: K,
|
|
16818
16818
|
rowReorderListRef: W,
|
|
16819
16819
|
// Derived computeds
|
|
@@ -17100,21 +17100,21 @@ const y$ = {
|
|
|
17100
17100
|
), S = h(() => i("COMPONENTS.ORGANISMS.VC_TABLE.LOADING")), C = B(!1);
|
|
17101
17101
|
ne(
|
|
17102
17102
|
() => l.items,
|
|
17103
|
-
(
|
|
17104
|
-
|
|
17103
|
+
(re) => {
|
|
17104
|
+
re && re.length > 0 && (C.value = !0);
|
|
17105
17105
|
},
|
|
17106
17106
|
{ immediate: !0 }
|
|
17107
17107
|
);
|
|
17108
17108
|
const E = Ze(), R = h(() => (l.loading || E.value) && !C.value), L = h(() => {
|
|
17109
|
-
const
|
|
17110
|
-
if (!
|
|
17109
|
+
const re = l.pagination;
|
|
17110
|
+
if (!re) return "";
|
|
17111
17111
|
const be = l.totalCount;
|
|
17112
|
-
if (be != null &&
|
|
17113
|
-
const _e = Math.ceil(be /
|
|
17112
|
+
if (be != null && re.pages > 0) {
|
|
17113
|
+
const _e = re.pageSize ?? Math.ceil(be / re.pages), Le = (re.currentPage - 1) * _e + 1, Ye = Math.min(Le + l.items.length - 1, be);
|
|
17114
17114
|
return `${Le}–${Ye} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${be}`;
|
|
17115
17115
|
}
|
|
17116
|
-
return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${
|
|
17117
|
-
}), { isMobile: F } = Fe(), D = h(() => F.value), P = ht(), V = (
|
|
17116
|
+
return `${i("COMPONENTS.ORGANISMS.VC_TABLE.PAGE", {}, "Page")} ${re.currentPage} ${i("COMPONENTS.ORGANISMS.VC_TABLE.OF", {}, "of")} ${re.pages}`;
|
|
17117
|
+
}), { isMobile: F } = Fe(), D = h(() => F.value), P = ht(), V = (re) => re.replace(/-([a-z])/g, (be, _e) => _e.toUpperCase()), $ = /* @__PURE__ */ new Set([
|
|
17118
17118
|
"sortable",
|
|
17119
17119
|
"editable",
|
|
17120
17120
|
"visible",
|
|
@@ -17125,17 +17125,17 @@ const y$ = {
|
|
|
17125
17125
|
"rowReorder",
|
|
17126
17126
|
"expander",
|
|
17127
17127
|
"mobileVisible"
|
|
17128
|
-
]), O = (
|
|
17128
|
+
]), O = (re) => {
|
|
17129
17129
|
const be = {};
|
|
17130
|
-
for (const _e of Object.keys(
|
|
17130
|
+
for (const _e of Object.keys(re)) {
|
|
17131
17131
|
const Le = V(_e);
|
|
17132
|
-
let Ye =
|
|
17132
|
+
let Ye = re[_e];
|
|
17133
17133
|
$.has(Le) && Ye === "" && (Ye = !0), be[Le] = Ye;
|
|
17134
17134
|
}
|
|
17135
17135
|
return be;
|
|
17136
17136
|
}, A = () => {
|
|
17137
|
-
const
|
|
17138
|
-
if (!
|
|
17137
|
+
const re = P.default?.();
|
|
17138
|
+
if (!re) return [];
|
|
17139
17139
|
const be = [], _e = (Le) => {
|
|
17140
17140
|
const Ye = Le.type;
|
|
17141
17141
|
if (Ye && (Ye.name === "VcColumn" || Ye.__name === "VcColumn")) {
|
|
@@ -17149,7 +17149,7 @@ const y$ = {
|
|
|
17149
17149
|
}
|
|
17150
17150
|
Array.isArray(Le.children) && Le.children.forEach(_e);
|
|
17151
17151
|
};
|
|
17152
|
-
return
|
|
17152
|
+
return re.forEach(_e), be;
|
|
17153
17153
|
}, _ = new pC();
|
|
17154
17154
|
Be(_s, _);
|
|
17155
17155
|
const k = B(0);
|
|
@@ -17158,11 +17158,11 @@ const y$ = {
|
|
|
17158
17158
|
});
|
|
17159
17159
|
const x = h(() => {
|
|
17160
17160
|
k.value;
|
|
17161
|
-
const
|
|
17162
|
-
return
|
|
17161
|
+
const re = A();
|
|
17162
|
+
return re.length > 0 ? re : _.getColumns();
|
|
17163
17163
|
}), z = B(/* @__PURE__ */ new Set()), Y = B(/* @__PURE__ */ new Set()), Z = h(() => {
|
|
17164
|
-
const
|
|
17165
|
-
if (!
|
|
17164
|
+
const re = l.columnSwitcher;
|
|
17165
|
+
if (!re || re === "defined") return [];
|
|
17166
17166
|
const be = l.items;
|
|
17167
17167
|
if (!be || be.length === 0) return [];
|
|
17168
17168
|
const _e = new Set(x.value.map((ut) => ut.props.id)), Le = be[0];
|
|
@@ -17175,16 +17175,16 @@ const y$ = {
|
|
|
17175
17175
|
},
|
|
17176
17176
|
slots: {}
|
|
17177
17177
|
}));
|
|
17178
|
-
}),
|
|
17178
|
+
}), ce = h(() => {
|
|
17179
17179
|
const be = x.value.filter((Le) => Le.props.visible === !1 || z.value.size > 0 && z.value.has(Le.props.id) ? !1 : l.showAllColumns ? !0 : !!Le.props.alwaysVisible), _e = Z.value.filter((Le) => !z.value.has(Le.props.id));
|
|
17180
17180
|
return [...be, ..._e];
|
|
17181
|
-
}), K = (
|
|
17181
|
+
}), K = (re, be) => re[l.dataKey]?.toString() || `row-${be}`, W = B(null), ae = B(null), ee = B(null), {
|
|
17182
17182
|
// Sub-composable instances
|
|
17183
17183
|
selection: q,
|
|
17184
17184
|
sort: ke,
|
|
17185
17185
|
editing: G,
|
|
17186
17186
|
rowGrouping: oe,
|
|
17187
|
-
inlineEdit:
|
|
17187
|
+
inlineEdit: ue,
|
|
17188
17188
|
cols: ie,
|
|
17189
17189
|
statePersistence: te,
|
|
17190
17190
|
// Column filter helpers
|
|
@@ -17248,7 +17248,7 @@ const y$ = {
|
|
|
17248
17248
|
} = gC({
|
|
17249
17249
|
props: l,
|
|
17250
17250
|
emit: r,
|
|
17251
|
-
visibleColumns:
|
|
17251
|
+
visibleColumns: ce,
|
|
17252
17252
|
declaredColumns: x,
|
|
17253
17253
|
hiddenColumnIds: z,
|
|
17254
17254
|
shownDataDiscoveredColumnIds: Y,
|
|
@@ -17262,80 +17262,80 @@ const y$ = {
|
|
|
17262
17262
|
$o,
|
|
17263
17263
|
h(() => ie.engineOutput.value.fillerWidth)
|
|
17264
17264
|
), Be(Ro, nn);
|
|
17265
|
-
const ha = (
|
|
17266
|
-
r("pagination-click",
|
|
17265
|
+
const ha = (re) => {
|
|
17266
|
+
r("pagination-click", re);
|
|
17267
17267
|
}, jt = B(l.searchValue ?? "");
|
|
17268
17268
|
let Xt = null;
|
|
17269
|
-
const Ri = (
|
|
17270
|
-
jt.value =
|
|
17271
|
-
r("search",
|
|
17269
|
+
const Ri = (re) => {
|
|
17270
|
+
jt.value = re, r("update:searchValue", re), Xt && clearTimeout(Xt), Xt = setTimeout(() => {
|
|
17271
|
+
r("search", re);
|
|
17272
17272
|
}, l.searchDebounce ?? 300);
|
|
17273
17273
|
};
|
|
17274
17274
|
ne(
|
|
17275
17275
|
() => l.searchValue,
|
|
17276
|
-
(
|
|
17277
|
-
|
|
17276
|
+
(re) => {
|
|
17277
|
+
re !== void 0 && re !== jt.value && (jt.value = re);
|
|
17278
17278
|
}
|
|
17279
17279
|
);
|
|
17280
|
-
const Ai = (
|
|
17280
|
+
const Ai = (re) => {
|
|
17281
17281
|
if (!l.infiniteScroll || l.loading) return;
|
|
17282
|
-
const be =
|
|
17282
|
+
const be = re.target, _e = l.infiniteScrollDistance ?? 100;
|
|
17283
17283
|
be.scrollHeight - be.scrollTop - be.clientHeight < _e && r("load-more");
|
|
17284
|
-
}, fn = h(() => l.addRow?.enabled === !0), ya = h(() => l.addRow?.position ?? "footer"), mn = h(() => l.addRow?.label ?? "Add row"), gn = h(() => l.addRow?.icon ?? "lucide-plus"), Ti = (
|
|
17284
|
+
}, fn = h(() => l.addRow?.enabled === !0), ya = h(() => l.addRow?.position ?? "footer"), mn = h(() => l.addRow?.label ?? "Add row"), gn = h(() => l.addRow?.icon ?? "lucide-plus"), Ti = (re) => {
|
|
17285
17285
|
}, Oi = () => {
|
|
17286
17286
|
}, gl = B(!1), pl = B({}), wa = B(null), Li = h(() => {
|
|
17287
|
-
const
|
|
17288
|
-
return
|
|
17289
|
-
getBoundingClientRect: () =>
|
|
17287
|
+
const re = wa.value;
|
|
17288
|
+
return re ? {
|
|
17289
|
+
getBoundingClientRect: () => re.$el?.getBoundingClientRect() ?? new DOMRect(),
|
|
17290
17290
|
get contextElement() {
|
|
17291
|
-
return
|
|
17291
|
+
return re.$el;
|
|
17292
17292
|
}
|
|
17293
17293
|
} : null;
|
|
17294
17294
|
}), Qt = B(!1), Ca = B(null), Mi = h(() => {
|
|
17295
|
-
const
|
|
17296
|
-
return
|
|
17297
|
-
getBoundingClientRect: () => (
|
|
17295
|
+
const re = Ca.value;
|
|
17296
|
+
return re ? {
|
|
17297
|
+
getBoundingClientRect: () => (re.columnSwitcherEl ?? null)?.getBoundingClientRect() ?? new DOMRect(),
|
|
17298
17298
|
get contextElement() {
|
|
17299
|
-
return
|
|
17299
|
+
return re.columnSwitcherEl ?? void 0;
|
|
17300
17300
|
}
|
|
17301
17301
|
} : null;
|
|
17302
17302
|
}), Ii = h(() => {
|
|
17303
|
-
let
|
|
17303
|
+
let re = 0;
|
|
17304
17304
|
for (const be of Object.values(pl.value))
|
|
17305
17305
|
if (!(be == null || be === "") && !(Array.isArray(be) && be.length === 0)) {
|
|
17306
17306
|
if (typeof be == "object" && !Array.isArray(be)) {
|
|
17307
17307
|
const _e = be;
|
|
17308
|
-
(_e.start || _e.end) &&
|
|
17308
|
+
(_e.start || _e.end) && re++;
|
|
17309
17309
|
continue;
|
|
17310
17310
|
}
|
|
17311
|
-
|
|
17311
|
+
re++;
|
|
17312
17312
|
}
|
|
17313
|
-
return
|
|
17314
|
-
}), xi = (
|
|
17315
|
-
It.value =
|
|
17313
|
+
return re;
|
|
17314
|
+
}), xi = (re) => {
|
|
17315
|
+
It.value = re, Mt();
|
|
17316
17316
|
}, Di = () => {
|
|
17317
17317
|
It.value = null, pl.value = {}, Mt();
|
|
17318
|
-
}, Bi = (
|
|
17319
|
-
item:
|
|
17318
|
+
}, Bi = (re, be) => ({
|
|
17319
|
+
item: re,
|
|
17320
17320
|
index: be,
|
|
17321
17321
|
columns: fl.value,
|
|
17322
17322
|
// Selection
|
|
17323
|
-
isSelected: q.isSelected(
|
|
17324
|
-
isActive: l.activeItemId != null && K(
|
|
17325
|
-
isSelectable: q.canSelect(
|
|
17323
|
+
isSelected: q.isSelected(re),
|
|
17324
|
+
isActive: l.activeItemId != null && K(re, be) === String(l.activeItemId),
|
|
17325
|
+
isSelectable: q.canSelect(re),
|
|
17326
17326
|
selectionMode: $t.value,
|
|
17327
17327
|
showSelectionCell: qt.value && !Kt.value,
|
|
17328
17328
|
// Reorder
|
|
17329
17329
|
reorderable: vl.value,
|
|
17330
17330
|
showDragHandle: xt.value,
|
|
17331
17331
|
// Expansion
|
|
17332
|
-
expandable: cn.value && dn(
|
|
17333
|
-
isExpanded: un(
|
|
17332
|
+
expandable: cn.value && dn(re),
|
|
17333
|
+
isExpanded: un(re),
|
|
17334
17334
|
expandedIcon: l.expandedRowIcon,
|
|
17335
17335
|
collapsedIcon: l.collapsedRowIcon,
|
|
17336
17336
|
// Editing
|
|
17337
|
-
editingRowData: G.getEditingRowData(
|
|
17338
|
-
isRowEditing: G.isRowEditing(
|
|
17337
|
+
editingRowData: G.getEditingRowData(re, be),
|
|
17338
|
+
isRowEditing: G.isRowEditing(re),
|
|
17339
17339
|
isInlineEditing: ml.value,
|
|
17340
17340
|
isCellEditing: G.isCellEditing,
|
|
17341
17341
|
// Actions
|
|
@@ -17346,10 +17346,10 @@ const y$ = {
|
|
|
17346
17346
|
getCellAlign: ie.getCellAlign,
|
|
17347
17347
|
getCellStyle: ie.getCellStyle,
|
|
17348
17348
|
// Custom class
|
|
17349
|
-
rowClass: l.rowClass?.(
|
|
17349
|
+
rowClass: l.rowClass?.(re)
|
|
17350
17350
|
}), { width: bl } = Do(ee), Ni = h(() => {
|
|
17351
17351
|
if (!l.pagination || bl.value === 0) return 5;
|
|
17352
|
-
const
|
|
17352
|
+
const re = bl.value - Ja, be = Math.floor((re - 2 * Tn) / Tn);
|
|
17353
17353
|
return be >= 7 ? 5 : be >= 3 ? be : 0;
|
|
17354
17354
|
}), Pi = h(() => !l.pagination || bl.value === 0 ? !0 : bl.value - Ja >= 5 * Tn);
|
|
17355
17355
|
return a({
|
|
@@ -17364,28 +17364,28 @@ const y$ = {
|
|
|
17364
17364
|
addRow: Yt,
|
|
17365
17365
|
removeRow: da,
|
|
17366
17366
|
// Inline editing API
|
|
17367
|
-
startEditing:
|
|
17368
|
-
cancelEditing:
|
|
17369
|
-
saveChanges:
|
|
17370
|
-
isEditing:
|
|
17371
|
-
isValid:
|
|
17372
|
-
isDirty:
|
|
17373
|
-
pendingChanges:
|
|
17367
|
+
startEditing: ue.startEditing,
|
|
17368
|
+
cancelEditing: ue.cancelEditing,
|
|
17369
|
+
saveChanges: ue.saveChanges,
|
|
17370
|
+
isEditing: ue.isEditing,
|
|
17371
|
+
isValid: ue.isValid,
|
|
17372
|
+
isDirty: ue.isDirty,
|
|
17373
|
+
pendingChanges: ue.pendingChanges,
|
|
17374
17374
|
// State persistence API
|
|
17375
17375
|
clearState: te.clearState,
|
|
17376
17376
|
saveState: te.saveState
|
|
17377
17377
|
}), He(() => {
|
|
17378
17378
|
_.clear(), Xt && clearTimeout(Xt);
|
|
17379
|
-
}), (
|
|
17379
|
+
}), (re, be) => Xe((s(), m("div", {
|
|
17380
17380
|
ref_key: "tableRootRef",
|
|
17381
17381
|
ref: W,
|
|
17382
17382
|
class: "vc-data-table",
|
|
17383
17383
|
"aria-busy": e.loading || n(E) || void 0
|
|
17384
17384
|
}, [
|
|
17385
|
-
|
|
17386
|
-
H(
|
|
17385
|
+
re.$slots.header ? (s(), m("div", hC, [
|
|
17386
|
+
H(re.$slots, "header")
|
|
17387
17387
|
])) : M("", !0),
|
|
17388
|
-
e.searchable || e.globalFilters?.length ||
|
|
17388
|
+
e.searchable || e.globalFilters?.length || re.$slots["search-header-actions"] ? (s(), N(n(n0), {
|
|
17389
17389
|
key: 1,
|
|
17390
17390
|
searchable: e.searchable,
|
|
17391
17391
|
"model-value": jt.value,
|
|
@@ -17400,7 +17400,7 @@ const y$ = {
|
|
|
17400
17400
|
"active-count": Ii.value,
|
|
17401
17401
|
onClick: be[0] || (be[0] = (_e) => gl.value = !gl.value)
|
|
17402
17402
|
}, null, 8, ["active-count"])) : M("", !0),
|
|
17403
|
-
H(
|
|
17403
|
+
H(re.$slots, "search-header-actions")
|
|
17404
17404
|
]),
|
|
17405
17405
|
_: 3
|
|
17406
17406
|
}, 8, ["searchable", "model-value", "placeholder"])) : M("", !0),
|
|
@@ -17431,7 +17431,7 @@ const y$ = {
|
|
|
17431
17431
|
icon: gn.value,
|
|
17432
17432
|
onAdd: be[4] || (be[4] = (_e) => n(Yt)())
|
|
17433
17433
|
}, null, 8, ["label", "icon"])) : M("", !0),
|
|
17434
|
-
H(
|
|
17434
|
+
H(re.$slots, "selection-banner", {
|
|
17435
17435
|
count: n(q).selected.value.length,
|
|
17436
17436
|
totalCount: l.totalCount,
|
|
17437
17437
|
isSelectAll: n(q).isSelectAllAcrossPages.value,
|
|
@@ -17455,14 +17455,14 @@ const y$ = {
|
|
|
17455
17455
|
indeterminate: n(q).isPartiallySelected.value && !n(q).isAllSelected.value,
|
|
17456
17456
|
onChange: n(q).onSelectAll
|
|
17457
17457
|
}, null, 8, ["model-value", "indeterminate", "onChange"]),
|
|
17458
|
-
w("span", CC, U(
|
|
17458
|
+
w("span", CC, U(re.$t("COMPONENTS.ORGANISMS.VC_TABLE.SELECTED", "Selected")) + ": " + U(n(q).selected.value.length), 1)
|
|
17459
17459
|
])) : M("", !0),
|
|
17460
17460
|
T(n(G1), {
|
|
17461
17461
|
ref_key: "mobileViewRef",
|
|
17462
17462
|
ref: ba,
|
|
17463
17463
|
items: n(Gt),
|
|
17464
17464
|
reorderable: n(vl),
|
|
17465
|
-
columns:
|
|
17465
|
+
columns: ce.value,
|
|
17466
17466
|
selection: n(q).selected.value,
|
|
17467
17467
|
"selection-mode": n($t),
|
|
17468
17468
|
"is-row-selectable": l.isRowSelectable,
|
|
@@ -17472,11 +17472,11 @@ const y$ = {
|
|
|
17472
17472
|
"pull-to-refresh": e.pullToRefresh,
|
|
17473
17473
|
"pull-to-refresh-text": e.pullToRefreshText,
|
|
17474
17474
|
"is-inline-editing": n(ml),
|
|
17475
|
-
"new-row-indices": n(
|
|
17475
|
+
"new-row-indices": n(ue).newRowIndices.value,
|
|
17476
17476
|
"can-expand-row": (_e) => n(cn) && n(dn)(_e),
|
|
17477
17477
|
"is-row-expanded": n(un),
|
|
17478
17478
|
"expanded-icon": e.expandedRowIcon,
|
|
17479
|
-
"expand-label":
|
|
17479
|
+
"expand-label": re.$t("COMPONENTS.ORGANISMS.VC_TABLE.EXPAND_ROW"),
|
|
17480
17480
|
onClick: n(ot),
|
|
17481
17481
|
onSelect: n(Je),
|
|
17482
17482
|
onAction: n(it),
|
|
@@ -17485,7 +17485,7 @@ const y$ = {
|
|
|
17485
17485
|
onExpandToggle: be[12] || (be[12] = (_e, Le, Ye) => n(j)(_e, Le, Ye))
|
|
17486
17486
|
}, De({
|
|
17487
17487
|
empty: I(() => [
|
|
17488
|
-
v.value &&
|
|
17488
|
+
v.value && re.$slots["not-found"] ? H(re.$slots, "not-found", { key: 0 }) : re.$slots.empty ? H(re.$slots, "empty", { key: 1 }) : (s(), N(n(pi), {
|
|
17489
17489
|
key: 2,
|
|
17490
17490
|
icon: b.value,
|
|
17491
17491
|
title: g.value,
|
|
@@ -17496,10 +17496,10 @@ const y$ = {
|
|
|
17496
17496
|
]),
|
|
17497
17497
|
_: 2
|
|
17498
17498
|
}, [
|
|
17499
|
-
|
|
17499
|
+
re.$slots.expansion ? {
|
|
17500
17500
|
name: "expansion",
|
|
17501
17501
|
fn: I(({ data: _e, index: Le }) => [
|
|
17502
|
-
H(
|
|
17502
|
+
H(re.$slots, "expansion", {
|
|
17503
17503
|
data: _e,
|
|
17504
17504
|
index: Le
|
|
17505
17505
|
})
|
|
@@ -17584,7 +17584,7 @@ const y$ = {
|
|
|
17584
17584
|
"get-item-group-key": n(oe).getItemGroupKey,
|
|
17585
17585
|
"get-global-index": n(rn),
|
|
17586
17586
|
"get-item-key": K,
|
|
17587
|
-
"new-row-indices": n(
|
|
17587
|
+
"new-row-indices": n(ue).newRowIndices.value,
|
|
17588
17588
|
"get-row-props": Bi,
|
|
17589
17589
|
onScroll: Ai,
|
|
17590
17590
|
onGroupToggle: be[7] || (be[7] = (_e, Le) => n(oe).toggleGroupExpansion(_e, Le)),
|
|
@@ -17613,41 +17613,41 @@ const y$ = {
|
|
|
17613
17613
|
}, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : M("", !0)
|
|
17614
17614
|
]),
|
|
17615
17615
|
expansion: I(({ data: _e, index: Le }) => [
|
|
17616
|
-
H(
|
|
17616
|
+
H(re.$slots, "expansion", {
|
|
17617
17617
|
data: _e,
|
|
17618
17618
|
index: Le
|
|
17619
17619
|
})
|
|
17620
17620
|
]),
|
|
17621
17621
|
_: 2
|
|
17622
17622
|
}, [
|
|
17623
|
-
|
|
17623
|
+
re.$slots["not-found"] || re.$slots.empty ? {
|
|
17624
17624
|
name: "empty",
|
|
17625
17625
|
fn: I(() => [
|
|
17626
|
-
v.value &&
|
|
17626
|
+
v.value && re.$slots["not-found"] ? H(re.$slots, "not-found", { key: 0 }) : H(re.$slots, "empty", { key: 1 })
|
|
17627
17627
|
]),
|
|
17628
17628
|
key: "0"
|
|
17629
17629
|
} : void 0,
|
|
17630
|
-
|
|
17630
|
+
re.$slots.loading ? {
|
|
17631
17631
|
name: "loading",
|
|
17632
17632
|
fn: I(() => [
|
|
17633
|
-
H(
|
|
17633
|
+
H(re.$slots, "loading")
|
|
17634
17634
|
]),
|
|
17635
17635
|
key: "1"
|
|
17636
17636
|
} : void 0,
|
|
17637
|
-
|
|
17637
|
+
re.$slots.groupheader ? {
|
|
17638
17638
|
name: "groupheader",
|
|
17639
17639
|
fn: I(({ data: _e, index: Le }) => [
|
|
17640
|
-
H(
|
|
17640
|
+
H(re.$slots, "groupheader", {
|
|
17641
17641
|
data: _e,
|
|
17642
17642
|
index: Le
|
|
17643
17643
|
})
|
|
17644
17644
|
]),
|
|
17645
17645
|
key: "2"
|
|
17646
17646
|
} : void 0,
|
|
17647
|
-
|
|
17647
|
+
re.$slots.groupfooter ? {
|
|
17648
17648
|
name: "groupfooter",
|
|
17649
17649
|
fn: I(({ data: _e, index: Le }) => [
|
|
17650
|
-
H(
|
|
17650
|
+
H(re.$slots, "groupfooter", {
|
|
17651
17651
|
data: _e,
|
|
17652
17652
|
index: Le
|
|
17653
17653
|
})
|
|
@@ -17655,9 +17655,9 @@ const y$ = {
|
|
|
17655
17655
|
key: "3"
|
|
17656
17656
|
} : void 0
|
|
17657
17657
|
]), 1032, ["items", "loading", "skeleton-rows", "columns", "get-column-width", "get-cell-style", "show-selection-cell", "empty-icon", "empty-title", "empty-description", "empty-action-label", "empty-action-handler", "loading-text", "grouping-enabled", "grouped-data", "expandable-row-groups", "is-group-expanded", "get-item-group-key", "get-global-index", "new-row-indices", "get-row-props", "onRowClick", "onSelectionChange", "onRowEdit", "onRowSave", "onRowCancel", "onEditComplete", "onEditCancel", "onCellValueChange", "onCellClick"]),
|
|
17658
|
-
|
|
17658
|
+
re.$slots.footer && e.items && e.items.length ? (s(), N(n(Mw), { key: 0 }, {
|
|
17659
17659
|
default: I(() => [
|
|
17660
|
-
H(
|
|
17660
|
+
H(re.$slots, "footer")
|
|
17661
17661
|
]),
|
|
17662
17662
|
_: 3
|
|
17663
17663
|
})) : M("", !0),
|
|
@@ -17678,7 +17678,7 @@ const y$ = {
|
|
|
17678
17678
|
class: "vc-data-table__pagination"
|
|
17679
17679
|
}, [
|
|
17680
17680
|
w("span", _C, U(L.value), 1),
|
|
17681
|
-
H(
|
|
17681
|
+
H(re.$slots, "pagination", {
|
|
17682
17682
|
pages: l.pagination.pages,
|
|
17683
17683
|
currentPage: l.pagination.currentPage,
|
|
17684
17684
|
onPageClick: ha
|
|
@@ -17693,7 +17693,7 @@ const y$ = {
|
|
|
17693
17693
|
}, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
|
|
17694
17694
|
])
|
|
17695
17695
|
], 512)) : M("", !0),
|
|
17696
|
-
H(
|
|
17696
|
+
H(re.$slots, "default")
|
|
17697
17697
|
], 8, bC)), [
|
|
17698
17698
|
[n(To), (e.loading || n(E)) && !R.value, "49"]
|
|
17699
17699
|
]);
|
|
@@ -17842,7 +17842,7 @@ const y$ = {
|
|
|
17842
17842
|
function Z(q) {
|
|
17843
17843
|
l("search:change", q || void 0);
|
|
17844
17844
|
}
|
|
17845
|
-
function
|
|
17845
|
+
function ce(q) {
|
|
17846
17846
|
l("row:reorder", q);
|
|
17847
17847
|
}
|
|
17848
17848
|
function K() {
|
|
@@ -17894,7 +17894,7 @@ const y$ = {
|
|
|
17894
17894
|
onSort: k,
|
|
17895
17895
|
"onUpdate:selection": x,
|
|
17896
17896
|
onRowClick: z,
|
|
17897
|
-
onRowReorder:
|
|
17897
|
+
onRowReorder: ce,
|
|
17898
17898
|
onCellEditComplete: W,
|
|
17899
17899
|
onPullRefresh: K,
|
|
17900
17900
|
"onUpdate:selectAll": ae,
|
|
@@ -17924,11 +17924,11 @@ const y$ = {
|
|
|
17924
17924
|
}, De({ _: 2 }, [
|
|
17925
17925
|
q.$slots[`item_${G.id}`] ? {
|
|
17926
17926
|
name: "body",
|
|
17927
|
-
fn: I(({ data: oe, index:
|
|
17927
|
+
fn: I(({ data: oe, index: ue }) => [
|
|
17928
17928
|
H(q.$slots, `item_${G.id}`, {
|
|
17929
17929
|
item: oe,
|
|
17930
17930
|
cell: G,
|
|
17931
|
-
index:
|
|
17931
|
+
index: ue
|
|
17932
17932
|
})
|
|
17933
17933
|
]),
|
|
17934
17934
|
key: "0"
|
|
@@ -19022,9 +19022,9 @@ const $_ = { class: "vc-scheduler__month" }, R_ = {
|
|
|
19022
19022
|
kt(() => {
|
|
19023
19023
|
z(), V.cancel(), P.clear();
|
|
19024
19024
|
});
|
|
19025
|
-
const Y = B(!1), Z = B(null),
|
|
19025
|
+
const Y = B(!1), Z = B(null), ce = B(null);
|
|
19026
19026
|
function K(te, me) {
|
|
19027
|
-
Z.value = te,
|
|
19027
|
+
Z.value = te, ce.value = me, Y.value = !0;
|
|
19028
19028
|
}
|
|
19029
19029
|
const W = h(() => {
|
|
19030
19030
|
if (!Z.value) return [];
|
|
@@ -19036,7 +19036,7 @@ const $_ = { class: "vc-scheduler__month" }, R_ = {
|
|
|
19036
19036
|
});
|
|
19037
19037
|
});
|
|
19038
19038
|
function ae(te, me = null) {
|
|
19039
|
-
y.value = te.id, l("event-click", te), Y.value = !1, t.quickInfo && Re(() => G(te, me ??
|
|
19039
|
+
y.value = te.id, l("event-click", te), Y.value = !1, t.quickInfo && Re(() => G(te, me ?? ce.value));
|
|
19040
19040
|
}
|
|
19041
19041
|
const ee = B(!1), q = B(null), ke = B(null);
|
|
19042
19042
|
function G(te, me) {
|
|
@@ -19045,7 +19045,7 @@ const $_ = { class: "vc-scheduler__month" }, R_ = {
|
|
|
19045
19045
|
function oe() {
|
|
19046
19046
|
ee.value = !1;
|
|
19047
19047
|
}
|
|
19048
|
-
function
|
|
19048
|
+
function ue(te) {
|
|
19049
19049
|
l("edit-intent", te);
|
|
19050
19050
|
}
|
|
19051
19051
|
function ie(te) {
|
|
@@ -19114,7 +19114,7 @@ const $_ = { class: "vc-scheduler__month" }, R_ = {
|
|
|
19114
19114
|
T(e_, {
|
|
19115
19115
|
open: Y.value,
|
|
19116
19116
|
date: Z.value,
|
|
19117
|
-
"anchor-rect":
|
|
19117
|
+
"anchor-rect": ce.value,
|
|
19118
19118
|
events: W.value,
|
|
19119
19119
|
onEventClick: ae,
|
|
19120
19120
|
onClose: me[6] || (me[6] = (se) => Y.value = !1)
|
|
@@ -19130,7 +19130,7 @@ const $_ = { class: "vc-scheduler__month" }, R_ = {
|
|
|
19130
19130
|
"anchor-rect": ke.value,
|
|
19131
19131
|
"can-edit": t.editable && !!q.value && t.isEventEditable(q.value),
|
|
19132
19132
|
onClose: oe,
|
|
19133
|
-
onEdit:
|
|
19133
|
+
onEdit: ue,
|
|
19134
19134
|
onDelete: ie
|
|
19135
19135
|
}, {
|
|
19136
19136
|
"event-popover": I(({ event: se, close: ye }) => [
|
|
@@ -19451,8 +19451,8 @@ const X_ = { class: "vc-scheduler__tg" }, Q_ = { class: "vc-scheduler__tg-head"
|
|
|
19451
19451
|
if (!A || !_) return;
|
|
19452
19452
|
const k = A.getBoundingClientRect(), x = o.value + (O.clientY - k.top) / Bt, z = Math.min(Math.max(Math.floor(x), o.value), c.value - 1), Y = new Date(_);
|
|
19453
19453
|
Y.setHours(z, 0, 0, 0);
|
|
19454
|
-
const Z = new Date(Y.getTime() + 36e5),
|
|
19455
|
-
E.set(K, { start: Y, end: Z, rect:
|
|
19454
|
+
const Z = new Date(Y.getTime() + 36e5), ce = DOMRect.fromRect({ x: O.clientX, y: O.clientY, width: 1, height: Bt }), K = String(Y.getTime());
|
|
19455
|
+
E.set(K, { start: Y, end: Z, rect: ce }), R.click(K);
|
|
19456
19456
|
}
|
|
19457
19457
|
kt(() => {
|
|
19458
19458
|
R.cancel(), E.clear();
|
|
@@ -20168,7 +20168,7 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20168
20168
|
}
|
|
20169
20169
|
function y(G) {
|
|
20170
20170
|
if (t.editorMode !== "emit") {
|
|
20171
|
-
const oe = W.value.find((
|
|
20171
|
+
const oe = W.value.find((ue) => ue.id === G.id);
|
|
20172
20172
|
if (oe?.recurrenceId) {
|
|
20173
20173
|
u.open = !0, u.action = "delete", u.event = oe;
|
|
20174
20174
|
return;
|
|
@@ -20192,7 +20192,7 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20192
20192
|
}
|
|
20193
20193
|
function E(G, oe) {
|
|
20194
20194
|
return t.events.find(
|
|
20195
|
-
(
|
|
20195
|
+
(ue) => ue.recurrenceId === G && ue.originalStart?.getTime() === oe.getTime()
|
|
20196
20196
|
);
|
|
20197
20197
|
}
|
|
20198
20198
|
function R(G, oe) {
|
|
@@ -20202,15 +20202,15 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20202
20202
|
end: G.end,
|
|
20203
20203
|
exceptionDates: [...G.exceptionDates ?? [], oe]
|
|
20204
20204
|
});
|
|
20205
|
-
const
|
|
20206
|
-
|
|
20205
|
+
const ue = E(G.id, oe);
|
|
20206
|
+
ue && l("event-delete", { id: ue.id });
|
|
20207
20207
|
}
|
|
20208
20208
|
function L(G) {
|
|
20209
|
-
const oe = u.event,
|
|
20209
|
+
const oe = u.event, ue = u.action;
|
|
20210
20210
|
if (u.open = !1, u.event = null, !oe?.recurrenceId || !oe.originalStart) return;
|
|
20211
20211
|
const ie = C(oe.recurrenceId);
|
|
20212
20212
|
if (!ie) return;
|
|
20213
|
-
if (
|
|
20213
|
+
if (ue === "delete") {
|
|
20214
20214
|
if (G === "all") {
|
|
20215
20215
|
l("event-delete", { id: ie.id });
|
|
20216
20216
|
return;
|
|
@@ -20251,8 +20251,8 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20251
20251
|
}
|
|
20252
20252
|
function D({ title: G }) {
|
|
20253
20253
|
if (d.draft) {
|
|
20254
|
-
const { start: oe, end:
|
|
20255
|
-
l("event-create", { start: oe, end:
|
|
20254
|
+
const { start: oe, end: ue, allDay: ie, color: te } = d.draft;
|
|
20255
|
+
l("event-create", { start: oe, end: ue, allDay: ie, title: G, color: te });
|
|
20256
20256
|
}
|
|
20257
20257
|
d.open = !1;
|
|
20258
20258
|
}
|
|
@@ -20276,7 +20276,7 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20276
20276
|
recurrence: G.recurrence ? lo(G.recurrence) : void 0
|
|
20277
20277
|
});
|
|
20278
20278
|
else {
|
|
20279
|
-
const
|
|
20279
|
+
const ue = {
|
|
20280
20280
|
start: G.start,
|
|
20281
20281
|
end: G.end,
|
|
20282
20282
|
title: G.title,
|
|
@@ -20285,7 +20285,7 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20285
20285
|
recurrenceId: oe.recurrenceId,
|
|
20286
20286
|
originalStart: oe.originalStart
|
|
20287
20287
|
};
|
|
20288
|
-
oe.overrideId ? l("event-update", { id: oe.overrideId, ...
|
|
20288
|
+
oe.overrideId ? l("event-update", { id: oe.overrideId, ...ue }) : l("event-create", ue);
|
|
20289
20289
|
}
|
|
20290
20290
|
c.recurrenceEdit = null, c.open = !1;
|
|
20291
20291
|
return;
|
|
@@ -20309,8 +20309,8 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20309
20309
|
function O(G) {
|
|
20310
20310
|
const oe = c.recurrenceEdit;
|
|
20311
20311
|
if (oe) {
|
|
20312
|
-
const
|
|
20313
|
-
|
|
20312
|
+
const ue = C(oe.recurrenceId);
|
|
20313
|
+
ue && (oe.scope === "all" ? l("event-delete", { id: ue.id }) : R(ue, oe.originalStart)), c.open = !1, c.recurrenceEdit = null;
|
|
20314
20314
|
return;
|
|
20315
20315
|
}
|
|
20316
20316
|
l("event-delete", G), c.open = !1, c.recurrenceEdit = null;
|
|
@@ -20332,7 +20332,7 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20332
20332
|
set: (G) => {
|
|
20333
20333
|
Y.value = G, l("update:date", G);
|
|
20334
20334
|
}
|
|
20335
|
-
}),
|
|
20335
|
+
}), ce = h(() => {
|
|
20336
20336
|
const G = Z.value, oe = /* @__PURE__ */ new Date();
|
|
20337
20337
|
return z.value === "timeline-day" ? Wl(G, oe) : z.value === "timeline-week" ? hc(G, oe, { weekStartsOn: t.firstDayOfWeek % 7 }) : Vo(G, oe);
|
|
20338
20338
|
}), K = h(() => {
|
|
@@ -20340,8 +20340,8 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20340
20340
|
if (z.value === "timeline-day") return { start: Ge(G), end: Po(G) };
|
|
20341
20341
|
if (z.value === "timeline-week")
|
|
20342
20342
|
return { start: Ot(G, { weekStartsOn: oe }), end: Uo(G, { weekStartsOn: oe }) };
|
|
20343
|
-
const
|
|
20344
|
-
return { start:
|
|
20343
|
+
const ue = Ot(Gl(G), { weekStartsOn: oe });
|
|
20344
|
+
return { start: ue, end: et(ue, 42) };
|
|
20345
20345
|
}), W = h(() => c_(t.events, K.value)), ae = h(() => t.loading && W.value.length === 0), ee = h(() => z.value === "month" ? r.value ? "agenda" : "month" : "timeline"), q = Bk({
|
|
20346
20346
|
date: Z,
|
|
20347
20347
|
view: z,
|
|
@@ -20369,12 +20369,12 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20369
20369
|
view: z.value,
|
|
20370
20370
|
views: k.value,
|
|
20371
20371
|
editable: e.editable,
|
|
20372
|
-
current:
|
|
20372
|
+
current: ce.value,
|
|
20373
20373
|
onPrev: n(q).goPrev,
|
|
20374
20374
|
onNext: n(q).goNext,
|
|
20375
20375
|
onToday: n(q).goToday,
|
|
20376
20376
|
onCreate: g,
|
|
20377
|
-
"onUpdate:view": oe[0] || (oe[0] = (
|
|
20377
|
+
"onUpdate:view": oe[0] || (oe[0] = (ue) => z.value = ue)
|
|
20378
20378
|
}, null, 8, ["title", "view", "views", "editable", "current", "onPrev", "onNext", "onToday"])
|
|
20379
20379
|
]),
|
|
20380
20380
|
ae.value ? H(G.$slots, "loading", { key: 0 }, () => [
|
|
@@ -20387,17 +20387,17 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20387
20387
|
editable: e.editable,
|
|
20388
20388
|
"is-event-editable": ke,
|
|
20389
20389
|
"quick-info": e.quickInfo,
|
|
20390
|
-
onEventClick: oe[1] || (oe[1] = (
|
|
20390
|
+
onEventClick: oe[1] || (oe[1] = (ue) => l("event-click", ue)),
|
|
20391
20391
|
onCreateIntent: b,
|
|
20392
20392
|
onEditIntent: f,
|
|
20393
20393
|
onEventDelete: y
|
|
20394
20394
|
}, {
|
|
20395
|
-
event: I(({ event:
|
|
20396
|
-
H(G.$slots, "event", { event:
|
|
20395
|
+
event: I(({ event: ue }) => [
|
|
20396
|
+
H(G.$slots, "event", { event: ue })
|
|
20397
20397
|
]),
|
|
20398
|
-
"event-popover": I(({ event:
|
|
20398
|
+
"event-popover": I(({ event: ue, close: ie }) => [
|
|
20399
20399
|
H(G.$slots, "event-popover", {
|
|
20400
|
-
event:
|
|
20400
|
+
event: ue,
|
|
20401
20401
|
close: ie
|
|
20402
20402
|
})
|
|
20403
20403
|
]),
|
|
@@ -20413,18 +20413,18 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20413
20413
|
editable: e.editable,
|
|
20414
20414
|
"is-event-editable": ke,
|
|
20415
20415
|
"quick-info": e.quickInfo,
|
|
20416
|
-
onEventClick: oe[2] || (oe[2] = (
|
|
20416
|
+
onEventClick: oe[2] || (oe[2] = (ue) => l("event-click", ue)),
|
|
20417
20417
|
onCreateIntent: b,
|
|
20418
|
-
onEventUpdate: oe[3] || (oe[3] = (
|
|
20418
|
+
onEventUpdate: oe[3] || (oe[3] = (ue) => l("event-update", ue)),
|
|
20419
20419
|
onEditIntent: f,
|
|
20420
20420
|
onEventDelete: y
|
|
20421
20421
|
}, {
|
|
20422
|
-
event: I(({ event:
|
|
20423
|
-
H(G.$slots, "event", { event:
|
|
20422
|
+
event: I(({ event: ue }) => [
|
|
20423
|
+
H(G.$slots, "event", { event: ue })
|
|
20424
20424
|
]),
|
|
20425
|
-
"event-popover": I(({ event:
|
|
20425
|
+
"event-popover": I(({ event: ue, close: ie }) => [
|
|
20426
20426
|
H(G.$slots, "event-popover", {
|
|
20427
|
-
event:
|
|
20427
|
+
event: ue,
|
|
20428
20428
|
close: ie
|
|
20429
20429
|
})
|
|
20430
20430
|
]),
|
|
@@ -20440,17 +20440,17 @@ const Nk = Symbol("VcSchedulerCalendarContext"), Pk = ["aria-busy"], _$ = /* @__
|
|
|
20440
20440
|
mode: z.value === "timeline-week" ? "week" : "day",
|
|
20441
20441
|
"day-start-hour": e.dayStartHour,
|
|
20442
20442
|
"day-end-hour": e.dayEndHour,
|
|
20443
|
-
onEventClick: oe[4] || (oe[4] = (
|
|
20443
|
+
onEventClick: oe[4] || (oe[4] = (ue) => l("event-click", ue)),
|
|
20444
20444
|
onCreateIntent: b,
|
|
20445
20445
|
onEditIntent: f,
|
|
20446
20446
|
onEventDelete: y
|
|
20447
20447
|
}, {
|
|
20448
|
-
event: I(({ event:
|
|
20449
|
-
H(G.$slots, "event", { event:
|
|
20448
|
+
event: I(({ event: ue }) => [
|
|
20449
|
+
H(G.$slots, "event", { event: ue })
|
|
20450
20450
|
]),
|
|
20451
|
-
"event-popover": I(({ event:
|
|
20451
|
+
"event-popover": I(({ event: ue, close: ie }) => [
|
|
20452
20452
|
H(G.$slots, "event-popover", {
|
|
20453
|
-
event:
|
|
20453
|
+
event: ue,
|
|
20454
20454
|
close: ie
|
|
20455
20455
|
})
|
|
20456
20456
|
]),
|