@m3ui-vue/m3ui-vue 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MButton.vue.d.ts +3 -2
- package/dist/components/MContextMenu.vue.d.ts +1 -0
- package/dist/components/MFab.vue.d.ts +2 -0
- package/dist/components/MIconButton.vue.d.ts +1 -0
- package/dist/components/MMenuItem.vue.d.ts +3 -2
- package/dist/components/MNavigationDrawer.vue.d.ts +6 -2
- package/dist/index.d.ts +2 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +832 -684
- package/dist/m3ui.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MButton.vue +8 -3
- package/src/components/MContextMenu.vue +1 -0
- package/src/components/MFab.vue +16 -8
- package/src/components/MIconButton.vue +8 -3
- package/src/components/MMenuItem.vue +9 -4
- package/src/components/MNavigationDrawer.vue +209 -72
- package/src/components/MSplitter.vue +2 -0
- package/src/components/MTour.vue +57 -56
- package/src/components/_MContextMenuPanel.vue +4 -2
- package/src/index.ts +2 -1
package/dist/m3ui.js
CHANGED
|
@@ -553,7 +553,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
553
553
|
style: y({ "--m3-wave-len": i.value.len })
|
|
554
554
|
}, null, 12, Le)], 12, Ie)) : (C(), l("span", Fe))], 4));
|
|
555
555
|
}
|
|
556
|
-
}), Ve =
|
|
556
|
+
}), Ve = "relative inline-flex items-center justify-center gap-2 h-10 rounded-full text-label-large font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38] disabled:shadow-none before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", He = /* @__PURE__ */ m({
|
|
557
557
|
__name: "MButton",
|
|
558
558
|
props: {
|
|
559
559
|
variant: { default: "filled" },
|
|
@@ -567,11 +567,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
567
567
|
type: Boolean,
|
|
568
568
|
default: !1
|
|
569
569
|
},
|
|
570
|
-
icon: {}
|
|
570
|
+
icon: {},
|
|
571
|
+
to: {}
|
|
571
572
|
},
|
|
572
573
|
setup(t) {
|
|
573
|
-
let n = ["primary", "error"], r = t, i = o(() => !!r.color && !n.includes(r.color)),
|
|
574
|
-
if (
|
|
574
|
+
let n = ["primary", "error"], r = t, i = o(() => r.to ? "RouterLink" : "button"), a = o(() => !!r.color && !n.includes(r.color)), l = o(() => {
|
|
575
|
+
if (a.value) return {
|
|
575
576
|
"--color-primary": r.color,
|
|
576
577
|
"--color-on-primary": "#ffffff",
|
|
577
578
|
"--color-primary-container": r.color + "33",
|
|
@@ -593,26 +594,32 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
593
594
|
let t = e.currentTarget, n = t.getBoundingClientRect(), i = Math.max(n.width, n.height) * 2, a = document.createElement("span");
|
|
594
595
|
a.className = "m3-ripple", a.style.cssText = `width:${i}px;height:${i}px;top:${e.clientY - n.top - i / 2}px;left:${e.clientX - n.left - i / 2}px`, t.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
|
|
595
596
|
}
|
|
596
|
-
return (n, r) => (C(),
|
|
597
|
-
|
|
597
|
+
return (n, r) => (C(), s(k(i.value), {
|
|
598
|
+
to: t.to || void 0,
|
|
599
|
+
type: t.to ? void 0 : t.type,
|
|
598
600
|
disabled: t.disabled || t.loading,
|
|
599
|
-
class: v([
|
|
600
|
-
style: y(
|
|
601
|
+
class: v([Ve, d.value]),
|
|
602
|
+
style: y(l.value),
|
|
601
603
|
onPointerdown: f
|
|
602
|
-
},
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
604
|
+
}, {
|
|
605
|
+
default: L(() => [t.loading ? (C(), s(Be, {
|
|
606
|
+
key: 0,
|
|
607
|
+
size: 18
|
|
608
|
+
})) : t.icon ? (C(), s(e, {
|
|
609
|
+
key: 1,
|
|
610
|
+
name: t.icon,
|
|
611
|
+
size: 20
|
|
612
|
+
}, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")]),
|
|
613
|
+
_: 3
|
|
614
|
+
}, 40, [
|
|
615
|
+
"to",
|
|
616
|
+
"type",
|
|
617
|
+
"disabled",
|
|
618
|
+
"class",
|
|
619
|
+
"style"
|
|
620
|
+
]));
|
|
610
621
|
}
|
|
611
|
-
}),
|
|
612
|
-
"aria-label",
|
|
613
|
-
"title",
|
|
614
|
-
"disabled"
|
|
615
|
-
], Ge = "inline-flex shrink-0 items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38]", Z = /* @__PURE__ */ m({
|
|
622
|
+
}), Ue = "inline-flex shrink-0 items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:opacity-[0.38]", Z = /* @__PURE__ */ m({
|
|
616
623
|
__name: "MIconButton",
|
|
617
624
|
props: {
|
|
618
625
|
icon: {},
|
|
@@ -622,10 +629,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
622
629
|
type: Boolean,
|
|
623
630
|
default: !1
|
|
624
631
|
},
|
|
625
|
-
size: { default: 40 }
|
|
632
|
+
size: { default: 40 },
|
|
633
|
+
to: {}
|
|
626
634
|
},
|
|
627
635
|
setup(t) {
|
|
628
|
-
let n = t, r = o(() => {
|
|
636
|
+
let n = t, r = o(() => n.to ? "RouterLink" : "button"), i = o(() => {
|
|
629
637
|
switch (n.variant) {
|
|
630
638
|
case "filled": return "bg-primary text-on-primary hover:shadow-elevation-1";
|
|
631
639
|
case "tonal": return "bg-secondary-container text-on-secondary-container hover:shadow-elevation-1";
|
|
@@ -633,28 +641,40 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
633
641
|
default: return "text-on-surface-variant hover:bg-on-surface/8 active:bg-on-surface/12";
|
|
634
642
|
}
|
|
635
643
|
});
|
|
636
|
-
return (n,
|
|
637
|
-
|
|
644
|
+
return (n, a) => (C(), s(k(r.value), {
|
|
645
|
+
to: t.to || void 0,
|
|
646
|
+
type: t.to ? void 0 : "button",
|
|
638
647
|
"aria-label": t.label,
|
|
639
648
|
title: t.label,
|
|
640
649
|
disabled: t.disabled,
|
|
641
|
-
class: v([
|
|
650
|
+
class: v([Ue, i.value]),
|
|
642
651
|
style: y({
|
|
643
652
|
width: `${t.size}px`,
|
|
644
653
|
height: `${t.size}px`
|
|
645
654
|
})
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
655
|
+
}, {
|
|
656
|
+
default: L(() => [p(e, {
|
|
657
|
+
name: t.icon,
|
|
658
|
+
size: Math.round(t.size * .55)
|
|
659
|
+
}, null, 8, ["name", "size"])]),
|
|
660
|
+
_: 1
|
|
661
|
+
}, 8, [
|
|
662
|
+
"to",
|
|
663
|
+
"type",
|
|
664
|
+
"aria-label",
|
|
665
|
+
"title",
|
|
666
|
+
"disabled",
|
|
667
|
+
"class",
|
|
668
|
+
"style"
|
|
669
|
+
]));
|
|
650
670
|
}
|
|
651
|
-
}),
|
|
671
|
+
}), We = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ge = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Ke = { class: "flex items-center gap-1" }, qe = { class: "text-title-medium font-medium capitalize text-on-surface" }, Je = { class: "grid grid-cols-7 border-b border-outline-variant bg-surface-container-high" }, Ye = { class: "grid grid-cols-7" }, Xe = ["onClick"], Ze = {
|
|
652
672
|
key: 0,
|
|
653
673
|
class: "flex flex-col gap-0.5"
|
|
654
|
-
},
|
|
674
|
+
}, Qe = ["onClick"], $e = { class: "truncate" }, et = {
|
|
655
675
|
key: 0,
|
|
656
676
|
class: "px-1 text-label-small text-on-surface-variant"
|
|
657
|
-
},
|
|
677
|
+
}, tt = /* @__PURE__ */ m({
|
|
658
678
|
__name: "MCalendar",
|
|
659
679
|
props: {
|
|
660
680
|
events: { default: () => [] },
|
|
@@ -725,9 +745,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
725
745
|
error: "bg-error text-on-error",
|
|
726
746
|
success: "bg-success text-on-success"
|
|
727
747
|
};
|
|
728
|
-
return (t, r) => (C(), l("div",
|
|
729
|
-
u("div",
|
|
730
|
-
u("div",
|
|
748
|
+
return (t, r) => (C(), l("div", We, [
|
|
749
|
+
u("div", Ge, [
|
|
750
|
+
u("div", Ke, [p(Z, {
|
|
731
751
|
icon: "chevron_left",
|
|
732
752
|
label: "Mes anterior",
|
|
733
753
|
size: 36,
|
|
@@ -738,18 +758,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
738
758
|
size: 36,
|
|
739
759
|
onClick: b
|
|
740
760
|
})]),
|
|
741
|
-
u("h3",
|
|
761
|
+
u("h3", qe, A(m.value), 1),
|
|
742
762
|
u("button", {
|
|
743
763
|
type: "button",
|
|
744
764
|
class: "cursor-pointer rounded-full border border-outline px-3 py-1 text-label-medium text-on-surface transition-colors hover:bg-on-surface/8",
|
|
745
765
|
onClick: x
|
|
746
766
|
}, " Hoy ")
|
|
747
767
|
]),
|
|
748
|
-
u("div",
|
|
768
|
+
u("div", Je, [(C(!0), l(n, null, E(j(f), (e) => (C(), l("div", {
|
|
749
769
|
key: e,
|
|
750
770
|
class: "py-2 text-center text-label-small font-medium uppercase text-on-surface-variant"
|
|
751
771
|
}, A(e), 1))), 128))]),
|
|
752
|
-
u("div",
|
|
772
|
+
u("div", Ye, [(C(!0), l(n, null, E(_.value, (t, r) => (C(), l("div", {
|
|
753
773
|
key: r,
|
|
754
774
|
class: v(["flex min-h-[80px] cursor-pointer flex-col border-b border-r border-outline-variant/50 p-1.5 transition-colors hover:bg-on-surface/[0.03]", [
|
|
755
775
|
t.current ? "bg-surface" : "bg-surface-container-lowest/50",
|
|
@@ -757,7 +777,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
757
777
|
r >= 35 ? "border-b-0" : ""
|
|
758
778
|
]]),
|
|
759
779
|
onClick: (e) => a("dateClick", t.iso)
|
|
760
|
-
}, [u("span", { class: v(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", t.iso === j(g) ? "bg-primary text-on-primary font-medium" : t.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, A(t.date), 3), t.events.length ? (C(), l("div",
|
|
780
|
+
}, [u("span", { class: v(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", t.iso === j(g) ? "bg-primary text-on-primary font-medium" : t.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, A(t.date), 3), t.events.length ? (C(), l("div", Ze, [(C(!0), l(n, null, E(t.events.slice(0, 2), (t) => (C(), l("button", {
|
|
761
781
|
key: t.id,
|
|
762
782
|
type: "button",
|
|
763
783
|
class: v(["flex w-full cursor-pointer items-center gap-1 truncate rounded px-1 py-0.5 text-left text-label-small transition-opacity hover:opacity-80", S[t.color ?? "primary"]]),
|
|
@@ -766,10 +786,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
766
786
|
key: 0,
|
|
767
787
|
name: t.icon,
|
|
768
788
|
size: 12
|
|
769
|
-
}, null, 8, ["name"])) : c("", !0), u("span",
|
|
789
|
+
}, null, 8, ["name"])) : c("", !0), u("span", $e, A(t.title), 1)], 10, Qe))), 128)), t.events.length > 2 ? (C(), l("span", et, " +" + A(t.events.length - 2) + " más ", 1)) : c("", !0)])) : c("", !0)], 10, Xe))), 128))])
|
|
770
790
|
]));
|
|
771
791
|
}
|
|
772
|
-
}),
|
|
792
|
+
}), nt = ["src", "alt"], rt = /* @__PURE__ */ m({
|
|
773
793
|
__name: "MCard",
|
|
774
794
|
props: {
|
|
775
795
|
variant: { default: "elevated" },
|
|
@@ -806,9 +826,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
806
826
|
src: e.image,
|
|
807
827
|
alt: e.imageAlt ?? "",
|
|
808
828
|
class: "h-full w-full object-cover"
|
|
809
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, nt)) : D(t.$slots, "media", { key: 1 })], 2)) : c("", !0), D(t.$slots, "default")], 6));
|
|
810
830
|
}
|
|
811
|
-
}),
|
|
831
|
+
}), it = ["checked", "disabled"], at = {
|
|
812
832
|
key: 0,
|
|
813
833
|
class: "text-body-large text-on-surface"
|
|
814
834
|
}, Q = /* @__PURE__ */ m({
|
|
@@ -834,13 +854,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
834
854
|
checked: t.modelValue,
|
|
835
855
|
disabled: t.disabled,
|
|
836
856
|
onChange: i[0] ||= (e) => r("update:modelValue", !t.modelValue)
|
|
837
|
-
}, null, 40,
|
|
857
|
+
}, null, 40, it), p(e, {
|
|
838
858
|
name: t.indeterminate ? "remove" : "check",
|
|
839
859
|
size: 14,
|
|
840
860
|
class: v(["transition-[opacity,transform] duration-150", t.modelValue || t.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
|
|
841
|
-
}, null, 8, ["name", "class"])], 2), t.label || n.$slots.default ? (C(), l("span",
|
|
861
|
+
}, null, 8, ["name", "class"])], 2), t.label || n.$slots.default ? (C(), l("span", at, [D(n.$slots, "default", {}, () => [f(A(t.label), 1)])])) : c("", !0)], 2));
|
|
842
862
|
}
|
|
843
|
-
}),
|
|
863
|
+
}), ot = ["disabled"], st = /* @__PURE__ */ m({
|
|
844
864
|
__name: "MChip",
|
|
845
865
|
props: {
|
|
846
866
|
tone: { default: "neutral" },
|
|
@@ -917,7 +937,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
917
937
|
}, [p(e, {
|
|
918
938
|
name: "close",
|
|
919
939
|
size: 16
|
|
920
|
-
})], 8,
|
|
940
|
+
})], 8, ot)) : c("", !0)
|
|
921
941
|
]),
|
|
922
942
|
_: 3
|
|
923
943
|
}, 8, [
|
|
@@ -927,13 +947,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
927
947
|
"style"
|
|
928
948
|
]));
|
|
929
949
|
}
|
|
930
|
-
}),
|
|
950
|
+
}), ct = { class: "flex flex-col gap-1" }, lt = { class: "flex-1 font-mono text-on-surface" }, ut = {
|
|
931
951
|
key: 0,
|
|
932
952
|
class: "px-4 text-body-small text-error"
|
|
933
|
-
},
|
|
953
|
+
}, dt = {
|
|
934
954
|
key: 1,
|
|
935
955
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
936
|
-
},
|
|
956
|
+
}, ft = { class: "mb-3" }, pt = ["value"], mt = { class: "mb-3 flex items-center gap-3" }, ht = ["value"], gt = { class: "flex flex-wrap gap-1.5" }, _t = ["onClick"], vt = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
937
957
|
__name: "MColorPicker",
|
|
938
958
|
props: {
|
|
939
959
|
modelValue: {},
|
|
@@ -1046,7 +1066,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1046
1066
|
e ? (J(), setTimeout(() => document.addEventListener("mousedown", Y), 0)) : document.removeEventListener("mousedown", Y);
|
|
1047
1067
|
}), x(() => window.addEventListener("scroll", ee, !0)), S(() => {
|
|
1048
1068
|
window.removeEventListener("scroll", ee, !0), document.removeEventListener("mousedown", Y);
|
|
1049
|
-
}), (a, o) => (C(), l("div",
|
|
1069
|
+
}), (a, o) => (C(), l("div", ct, [
|
|
1050
1070
|
u("div", {
|
|
1051
1071
|
ref_key: "triggerEl",
|
|
1052
1072
|
ref: h,
|
|
@@ -1061,7 +1081,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1061
1081
|
class: "h-6 w-6 shrink-0 rounded-full border border-outline-variant",
|
|
1062
1082
|
style: y({ backgroundColor: t.modelValue })
|
|
1063
1083
|
}, null, 4),
|
|
1064
|
-
u("span",
|
|
1084
|
+
u("span", lt, A(t.modelValue), 1),
|
|
1065
1085
|
p(e, {
|
|
1066
1086
|
name: "palette",
|
|
1067
1087
|
size: 20,
|
|
@@ -1071,7 +1091,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1071
1091
|
key: 0,
|
|
1072
1092
|
class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
|
|
1073
1093
|
}, A(t.label), 3)) : c("", !0)], 4),
|
|
1074
|
-
t.error ? (C(), l("p",
|
|
1094
|
+
t.error ? (C(), l("p", ut, A(t.error), 1)) : t.hint ? (C(), l("p", dt, A(t.hint), 1)) : c("", !0),
|
|
1075
1095
|
(C(), s(r, { to: "body" }, [p(i, {
|
|
1076
1096
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
1077
1097
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -1101,15 +1121,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1101
1121
|
backgroundColor: z.value
|
|
1102
1122
|
})
|
|
1103
1123
|
}, null, 4)], 36),
|
|
1104
|
-
u("div",
|
|
1124
|
+
u("div", ft, [u("input", {
|
|
1105
1125
|
type: "range",
|
|
1106
1126
|
min: "0",
|
|
1107
1127
|
max: "360",
|
|
1108
1128
|
value: O.value,
|
|
1109
1129
|
class: "hue-slider h-3 w-full cursor-pointer appearance-none rounded-full outline-none",
|
|
1110
1130
|
onInput: G
|
|
1111
|
-
}, null, 40,
|
|
1112
|
-
u("div",
|
|
1131
|
+
}, null, 40, pt)]),
|
|
1132
|
+
u("div", mt, [u("span", {
|
|
1113
1133
|
class: "h-9 w-9 shrink-0 rounded-full border border-outline-variant",
|
|
1114
1134
|
style: y({ backgroundColor: z.value })
|
|
1115
1135
|
}, null, 4), u("input", {
|
|
@@ -1118,8 +1138,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1118
1138
|
maxlength: "7",
|
|
1119
1139
|
class: "flex-1 rounded-sm border border-outline bg-transparent px-3 py-2 font-mono text-body-medium text-on-surface outline-none transition-colors focus:border-primary",
|
|
1120
1140
|
onInput: q
|
|
1121
|
-
}, null, 40,
|
|
1122
|
-
u("div",
|
|
1141
|
+
}, null, 40, ht)]),
|
|
1142
|
+
u("div", gt, [(C(!0), l(n, null, E(t.presets, (n) => (C(), l("button", {
|
|
1123
1143
|
key: n,
|
|
1124
1144
|
type: "button",
|
|
1125
1145
|
class: v(["flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border transition-transform duration-100 hover:scale-110", n === t.modelValue ? "border-on-surface" : "border-transparent"]),
|
|
@@ -1130,26 +1150,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1130
1150
|
name: "check",
|
|
1131
1151
|
size: 14,
|
|
1132
1152
|
class: "text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)]"
|
|
1133
|
-
})) : c("", !0)], 14,
|
|
1153
|
+
})) : c("", !0)], 14, _t))), 128))])
|
|
1134
1154
|
], 4)) : c("", !0)]),
|
|
1135
1155
|
_: 1
|
|
1136
1156
|
})]))
|
|
1137
1157
|
]));
|
|
1138
1158
|
}
|
|
1139
|
-
}), [["__scopeId", "data-v-9ee0043f"]]),
|
|
1159
|
+
}), [["__scopeId", "data-v-9ee0043f"]]), yt = { class: "cmd-box flex w-full max-w-lg flex-col overflow-hidden rounded-xl bg-surface-container-high shadow-elevation-3" }, bt = { class: "flex items-center gap-3 border-b border-outline-variant px-4" }, xt = ["placeholder"], St = { class: "max-h-80 overflow-y-auto py-2" }, Ct = {
|
|
1140
1160
|
key: 0,
|
|
1141
1161
|
class: "px-4 pt-3 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
1142
|
-
},
|
|
1162
|
+
}, wt = [
|
|
1143
1163
|
"data-cmd-active",
|
|
1144
1164
|
"onClick",
|
|
1145
1165
|
"onPointerenter"
|
|
1146
|
-
],
|
|
1166
|
+
], Tt = { class: "flex-1 truncate text-body-medium" }, Et = {
|
|
1147
1167
|
key: 1,
|
|
1148
1168
|
class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant"
|
|
1149
|
-
},
|
|
1169
|
+
}, Dt = {
|
|
1150
1170
|
key: 1,
|
|
1151
1171
|
class: "px-4 py-6 text-center text-body-medium text-on-surface-variant"
|
|
1152
|
-
},
|
|
1172
|
+
}, Ot = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
1153
1173
|
__name: "MCommandPalette",
|
|
1154
1174
|
props: {
|
|
1155
1175
|
modelValue: { type: Boolean },
|
|
@@ -1201,8 +1221,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1201
1221
|
key: 0,
|
|
1202
1222
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[15vh]",
|
|
1203
1223
|
onClick: B(O, ["self"])
|
|
1204
|
-
}, [u("div",
|
|
1205
|
-
u("div",
|
|
1224
|
+
}, [u("div", yt, [
|
|
1225
|
+
u("div", bt, [
|
|
1206
1226
|
p(e, {
|
|
1207
1227
|
name: "search",
|
|
1208
1228
|
size: 20,
|
|
@@ -1216,10 +1236,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1216
1236
|
placeholder: t.placeholder,
|
|
1217
1237
|
class: "h-12 flex-1 bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
1218
1238
|
onKeydown: j
|
|
1219
|
-
}, null, 40,
|
|
1239
|
+
}, null, 40, xt), [[P, h.value]]),
|
|
1220
1240
|
o[1] ||= u("kbd", { class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant" }, " ESC ", -1)
|
|
1221
1241
|
]),
|
|
1222
|
-
u("div",
|
|
1242
|
+
u("div", St, [S.value.length ? (C(!0), l(n, { key: 0 }, E(w.value, ([t, r]) => (C(), l(n, { key: t }, [t ? (C(), l("p", Ct, A(t), 1)) : c("", !0), (C(!0), l(n, null, E(r, (t, n) => (C(), l("button", {
|
|
1223
1243
|
key: t.id,
|
|
1224
1244
|
type: "button",
|
|
1225
1245
|
"data-cmd-active": S.value.indexOf(t) === g.value || void 0,
|
|
@@ -1233,9 +1253,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1233
1253
|
size: 20,
|
|
1234
1254
|
class: "shrink-0 opacity-70"
|
|
1235
1255
|
}, null, 8, ["name"])) : c("", !0),
|
|
1236
|
-
u("span",
|
|
1237
|
-
t.shortcut ? (C(), l("kbd",
|
|
1238
|
-
], 42,
|
|
1256
|
+
u("span", Tt, A(t.label), 1),
|
|
1257
|
+
t.shortcut ? (C(), l("kbd", Et, A(t.shortcut), 1)) : c("", !0)
|
|
1258
|
+
], 42, wt))), 128))], 64))), 128)) : (C(), l("p", Dt, A(t.noResultsText), 1))]),
|
|
1239
1259
|
o[2] ||= u("div", { class: "flex items-center gap-4 border-t border-outline-variant px-4 py-2" }, [
|
|
1240
1260
|
u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓"), f(" navegar ")]),
|
|
1241
1261
|
u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵"), f(" seleccionar ")]),
|
|
@@ -1245,10 +1265,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1245
1265
|
_: 1
|
|
1246
1266
|
})]));
|
|
1247
1267
|
}
|
|
1248
|
-
}), [["__scopeId", "data-v-da578f14"]]),
|
|
1268
|
+
}), [["__scopeId", "data-v-da578f14"]]), kt = { class: "flex items-start justify-between gap-4 px-6 pt-6 pb-2" }, At = { class: "text-headline-small text-on-surface" }, jt = { class: "overflow-y-auto px-6 py-2 text-body-medium text-on-surface-variant" }, Mt = {
|
|
1249
1269
|
key: 0,
|
|
1250
1270
|
class: "flex justify-end gap-2 px-6 py-4"
|
|
1251
|
-
},
|
|
1271
|
+
}, Nt = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
1252
1272
|
__name: "MDialog",
|
|
1253
1273
|
props: {
|
|
1254
1274
|
modelValue: { type: Boolean },
|
|
@@ -1276,19 +1296,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1276
1296
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
1277
1297
|
onClick: B(o, ["self"])
|
|
1278
1298
|
}, [u("div", { class: v(["dialog-box flex max-h-[90vh] w-full flex-col rounded-xl bg-surface-container-high shadow-elevation-3", e.maxWidth]) }, [
|
|
1279
|
-
u("div",
|
|
1299
|
+
u("div", kt, [u("h2", At, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)], !0)]), e.persistent ? c("", !0) : (C(), s(Z, {
|
|
1280
1300
|
key: 0,
|
|
1281
1301
|
icon: "close",
|
|
1282
1302
|
label: "Cerrar",
|
|
1283
1303
|
onClick: o
|
|
1284
1304
|
}))]),
|
|
1285
|
-
u("div",
|
|
1286
|
-
t.$slots.actions ? (C(), l("div",
|
|
1305
|
+
u("div", jt, [D(t.$slots, "default", {}, void 0, !0)]),
|
|
1306
|
+
t.$slots.actions ? (C(), l("div", Mt, [D(t.$slots, "actions", {}, void 0, !0)])) : c("", !0)
|
|
1287
1307
|
], 2)])) : c("", !0)]),
|
|
1288
1308
|
_: 3
|
|
1289
1309
|
})]));
|
|
1290
1310
|
}
|
|
1291
|
-
}), [["__scopeId", "data-v-e7dfca29"]]),
|
|
1311
|
+
}), [["__scopeId", "data-v-e7dfca29"]]), Pt = { class: "text-body-medium text-on-surface-variant" }, Ft = /* @__PURE__ */ m({
|
|
1292
1312
|
__name: "MConfirmDialog",
|
|
1293
1313
|
props: {
|
|
1294
1314
|
modelValue: { type: Boolean },
|
|
@@ -1308,20 +1328,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1308
1328
|
emits: ["update:modelValue", "confirm"],
|
|
1309
1329
|
setup(e, { emit: t }) {
|
|
1310
1330
|
let n = t;
|
|
1311
|
-
return (t, r) => (C(), s(
|
|
1331
|
+
return (t, r) => (C(), s(Nt, {
|
|
1312
1332
|
"model-value": e.modelValue,
|
|
1313
1333
|
title: e.title,
|
|
1314
1334
|
"max-width": "max-w-sm",
|
|
1315
1335
|
"onUpdate:modelValue": r[2] ||= (e) => n("update:modelValue", e)
|
|
1316
1336
|
}, {
|
|
1317
|
-
actions: L(() => [p(
|
|
1337
|
+
actions: L(() => [p(He, {
|
|
1318
1338
|
variant: "text",
|
|
1319
1339
|
disabled: e.loading,
|
|
1320
1340
|
onClick: r[0] ||= (e) => n("update:modelValue", !1)
|
|
1321
1341
|
}, {
|
|
1322
1342
|
default: L(() => [f(A(e.cancelLabel), 1)]),
|
|
1323
1343
|
_: 1
|
|
1324
|
-
}, 8, ["disabled"]), p(
|
|
1344
|
+
}, 8, ["disabled"]), p(He, {
|
|
1325
1345
|
color: e.danger ? "error" : "primary",
|
|
1326
1346
|
loading: e.loading,
|
|
1327
1347
|
onClick: r[1] ||= (e) => n("confirm")
|
|
@@ -1329,11 +1349,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1329
1349
|
default: L(() => [f(A(e.confirmLabel), 1)]),
|
|
1330
1350
|
_: 1
|
|
1331
1351
|
}, 8, ["color", "loading"])]),
|
|
1332
|
-
default: L(() => [u("p",
|
|
1352
|
+
default: L(() => [u("p", Pt, A(e.message), 1)]),
|
|
1333
1353
|
_: 1
|
|
1334
1354
|
}, 8, ["model-value", "title"]));
|
|
1335
1355
|
}
|
|
1336
|
-
}),
|
|
1356
|
+
}), It = /* @__PURE__ */ m({
|
|
1337
1357
|
__name: "MContainer",
|
|
1338
1358
|
props: {
|
|
1339
1359
|
maxWidth: { default: "lg" },
|
|
@@ -1367,16 +1387,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1367
1387
|
]);
|
|
1368
1388
|
return (e, t) => (C(), l("div", { class: v(r.value) }, [D(e.$slots, "default")], 2));
|
|
1369
1389
|
}
|
|
1370
|
-
}),
|
|
1390
|
+
}), Lt = { class: "overflow-hidden rounded-sm py-1" }, Rt = {
|
|
1371
1391
|
key: 0,
|
|
1372
1392
|
class: "my-1 border-outline-variant"
|
|
1373
|
-
},
|
|
1393
|
+
}, zt = {
|
|
1374
1394
|
key: 1,
|
|
1375
1395
|
class: "w-[18px] shrink-0"
|
|
1376
|
-
},
|
|
1396
|
+
}, Bt = { class: "flex-1" }, Vt = {
|
|
1377
1397
|
key: 2,
|
|
1378
1398
|
class: "text-label-small text-on-surface-variant"
|
|
1379
|
-
},
|
|
1399
|
+
}, Ht = /* @__PURE__ */ m({
|
|
1380
1400
|
__name: "_MContextMenuPanel",
|
|
1381
1401
|
props: {
|
|
1382
1402
|
items: {},
|
|
@@ -1425,27 +1445,36 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1425
1445
|
top: `${f.value}px`
|
|
1426
1446
|
}),
|
|
1427
1447
|
onMouseleave: b
|
|
1428
|
-
}, [u("div",
|
|
1448
|
+
}, [u("div", Lt, [(C(!0), l(n, null, E(t.items, (t, r) => (C(), l(n, { key: r }, [t.divider ? (C(), l("hr", Rt)) : (C(), s(k(t.to && !t.disabled ? "RouterLink" : "div"), {
|
|
1429
1449
|
key: 1,
|
|
1450
|
+
to: t.to && !t.disabled ? t.to : void 0,
|
|
1430
1451
|
class: v(["relative flex cursor-default select-none items-center gap-3 px-4 py-2.5 text-body-large", [t.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : t.danger ? "cursor-pointer text-error hover:bg-error/8" : "cursor-pointer text-on-surface hover:bg-on-surface/8", p.value === r && !t.disabled ? t.danger ? "bg-error/8" : "bg-on-surface/8" : ""]]),
|
|
1431
1452
|
onMouseenter: (e) => h(r, t, e),
|
|
1432
1453
|
onClick: (e) => g(t)
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1454
|
+
}, {
|
|
1455
|
+
default: L(() => [
|
|
1456
|
+
t.icon ? (C(), s(e, {
|
|
1457
|
+
key: 0,
|
|
1458
|
+
name: t.icon,
|
|
1459
|
+
size: 18,
|
|
1460
|
+
class: v(["shrink-0", t.danger ? "text-error" : "text-on-surface-variant"])
|
|
1461
|
+
}, null, 8, ["name", "class"])) : (C(), l("span", zt)),
|
|
1462
|
+
u("span", Bt, A(t.label), 1),
|
|
1463
|
+
t.shortcut ? (C(), l("span", Vt, A(t.shortcut), 1)) : c("", !0),
|
|
1464
|
+
t.children?.length ? (C(), s(e, {
|
|
1465
|
+
key: 3,
|
|
1466
|
+
name: "chevron_right",
|
|
1467
|
+
size: 18,
|
|
1468
|
+
class: "shrink-0 text-on-surface-variant"
|
|
1469
|
+
})) : c("", !0)
|
|
1470
|
+
]),
|
|
1471
|
+
_: 2
|
|
1472
|
+
}, 1064, [
|
|
1473
|
+
"to",
|
|
1474
|
+
"class",
|
|
1475
|
+
"onMouseenter",
|
|
1476
|
+
"onClick"
|
|
1477
|
+
]))], 64))), 128))])], 36), p.value !== null && t.items[p.value]?.children?.length ? (C(), s(Ht, {
|
|
1449
1478
|
key: p.value,
|
|
1450
1479
|
items: t.items[p.value].children,
|
|
1451
1480
|
x: m.value.x,
|
|
@@ -1457,7 +1486,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1457
1486
|
"y"
|
|
1458
1487
|
])) : c("", !0)], 64));
|
|
1459
1488
|
}
|
|
1460
|
-
}),
|
|
1489
|
+
}), Ut = /* @__PURE__ */ m({
|
|
1461
1490
|
__name: "MContextMenu",
|
|
1462
1491
|
props: { items: {} },
|
|
1463
1492
|
setup(e, { expose: t }) {
|
|
@@ -1494,7 +1523,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1494
1523
|
class: "fixed inset-0 z-[200]",
|
|
1495
1524
|
onMousedown: B(f, ["self"]),
|
|
1496
1525
|
onContextmenu: d[0] ||= B(() => {}, ["prevent"])
|
|
1497
|
-
}, [p(
|
|
1526
|
+
}, [p(Ht, {
|
|
1498
1527
|
items: e.items,
|
|
1499
1528
|
x: o.value.x,
|
|
1500
1529
|
y: o.value.y,
|
|
@@ -1507,7 +1536,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1507
1536
|
_: 1
|
|
1508
1537
|
})]))], 64));
|
|
1509
1538
|
}
|
|
1510
|
-
}),
|
|
1539
|
+
}), Wt = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, Gt = { class: "flex items-center gap-2" }, Kt = /* @__PURE__ */ m({
|
|
1511
1540
|
__name: "MPagination",
|
|
1512
1541
|
props: {
|
|
1513
1542
|
page: {},
|
|
@@ -1517,7 +1546,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1517
1546
|
emits: ["update:page"],
|
|
1518
1547
|
setup(e, { emit: t }) {
|
|
1519
1548
|
let n = e, r = t, i = o(() => Math.max(1, Math.ceil(n.total / n.perPage))), a = o(() => n.total === 0 ? "0 resultados" : `${(n.page - 1) * n.perPage + 1}-${Math.min(n.page * n.perPage, n.total)} de ${n.total}`);
|
|
1520
|
-
return (t, n) => (C(), l("div",
|
|
1549
|
+
return (t, n) => (C(), l("div", Wt, [u("span", null, A(a.value), 1), u("div", Gt, [
|
|
1521
1550
|
u("span", null, "Página " + A(e.page) + " de " + A(i.value), 1),
|
|
1522
1551
|
p(Z, {
|
|
1523
1552
|
icon: "chevron_left",
|
|
@@ -1533,25 +1562,25 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1533
1562
|
}, null, 8, ["disabled"])
|
|
1534
1563
|
])]));
|
|
1535
1564
|
}
|
|
1536
|
-
}),
|
|
1565
|
+
}), qt = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Jt = {
|
|
1537
1566
|
key: 0,
|
|
1538
1567
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
1539
|
-
},
|
|
1568
|
+
}, Yt = {
|
|
1540
1569
|
key: 0,
|
|
1541
1570
|
class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 transition-[border-color,box-shadow] duration-150 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30"
|
|
1542
|
-
},
|
|
1571
|
+
}, Xt = {
|
|
1543
1572
|
key: 0,
|
|
1544
1573
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
1545
|
-
},
|
|
1574
|
+
}, Zt = {
|
|
1546
1575
|
key: 1,
|
|
1547
1576
|
class: "relative"
|
|
1548
|
-
},
|
|
1577
|
+
}, Qt = {
|
|
1549
1578
|
key: 0,
|
|
1550
1579
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
1551
|
-
},
|
|
1580
|
+
}, $t = { class: "text-body-small text-on-surface" }, en = { class: "overflow-x-auto" }, tn = { class: "w-full border-collapse" }, nn = { class: "bg-surface-container-high" }, rn = ["onClick"], an = { class: "inline-flex items-center gap-1" }, on = {
|
|
1552
1581
|
key: 0,
|
|
1553
1582
|
class: "inline-flex"
|
|
1554
|
-
},
|
|
1583
|
+
}, sn = ["onPointerdown"], cn = { key: 1 }, ln = ["colspan"], un = { class: "text-body-medium text-on-surface-variant" }, dn = ["onClick"], fn = ["onClick"], pn = { key: 0 }, mn = ["colspan"], hn = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, gn = { class: "text-label-small text-on-surface-variant" }, _n = /* @__PURE__ */ m({
|
|
1555
1584
|
__name: "MDataTable",
|
|
1556
1585
|
props: {
|
|
1557
1586
|
columns: {},
|
|
@@ -1719,9 +1748,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1719
1748
|
minWidth: e.minWidth
|
|
1720
1749
|
};
|
|
1721
1750
|
}
|
|
1722
|
-
return (r, a) => (C(), l("div",
|
|
1723
|
-
t.searchable || t.columnToggle || t.exportable || r.$slots.toolbar ? (C(), l("div",
|
|
1724
|
-
t.searchable ? (C(), l("div",
|
|
1751
|
+
return (r, a) => (C(), l("div", qt, [
|
|
1752
|
+
t.searchable || t.columnToggle || t.exportable || r.$slots.toolbar ? (C(), l("div", Jt, [
|
|
1753
|
+
t.searchable ? (C(), l("div", Yt, [
|
|
1725
1754
|
p(e, {
|
|
1726
1755
|
name: "search",
|
|
1727
1756
|
size: 16,
|
|
@@ -1749,21 +1778,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1749
1778
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
1750
1779
|
"leave-to-class": "opacity-0 scale-90"
|
|
1751
1780
|
}, {
|
|
1752
|
-
default: L(() => [t.selectable && W.value.length > 0 ? (C(), l("span",
|
|
1781
|
+
default: L(() => [t.selectable && W.value.length > 0 ? (C(), l("span", Xt, A(W.value.length) + " seleccionado" + A(W.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
|
|
1753
1782
|
_: 1
|
|
1754
1783
|
}),
|
|
1755
|
-
t.columnToggle ? (C(), l("div",
|
|
1784
|
+
t.columnToggle ? (C(), l("div", Zt, [p(Z, {
|
|
1756
1785
|
icon: "view_column",
|
|
1757
1786
|
label: "Columnas",
|
|
1758
1787
|
size: 36,
|
|
1759
1788
|
onClick: a[2] ||= (e) => M.value = !M.value
|
|
1760
|
-
}), M.value ? (C(), l("div",
|
|
1789
|
+
}), M.value ? (C(), l("div", Qt, [(C(!0), l(n, null, E(t.columns, (e) => (C(), l("label", {
|
|
1761
1790
|
key: e.key,
|
|
1762
1791
|
class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
|
|
1763
1792
|
}, [p(Q, {
|
|
1764
1793
|
"model-value": !k.value.has(e.key),
|
|
1765
1794
|
"onUpdate:modelValue": (t) => k.value.has(e.key) ? k.value.delete(e.key) : k.value.add(e.key)
|
|
1766
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]), u("span",
|
|
1795
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]), u("span", $t, A(e.label), 1)]))), 128))])) : c("", !0)])) : c("", !0),
|
|
1767
1796
|
t.exportable ? (C(), s(Z, {
|
|
1768
1797
|
key: 2,
|
|
1769
1798
|
icon: "download",
|
|
@@ -1772,7 +1801,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1772
1801
|
onClick: de
|
|
1773
1802
|
})) : c("", !0)
|
|
1774
1803
|
])) : c("", !0),
|
|
1775
|
-
u("div",
|
|
1804
|
+
u("div", en, [u("table", tn, [u("thead", { class: v(t.stickyHeader ? "sticky top-0 z-[1]" : "") }, [u("tr", nn, [
|
|
1776
1805
|
_.value ? (C(), l("th", {
|
|
1777
1806
|
key: 0,
|
|
1778
1807
|
class: v(["w-10 px-2", t.dense ? "py-2" : "py-3"])
|
|
@@ -1795,7 +1824,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1795
1824
|
n.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
1796
1825
|
]),
|
|
1797
1826
|
onClick: (e) => n.sortable ? z(n.key) : void 0
|
|
1798
|
-
}, [u("span",
|
|
1827
|
+
}, [u("span", an, [f(A(n.label) + " ", 1), n.sortable ? (C(), l("span", on, [x.value === n.key && S.value === "asc" ? (C(), s(e, {
|
|
1799
1828
|
key: 0,
|
|
1800
1829
|
name: "arrow_upward",
|
|
1801
1830
|
size: 14,
|
|
@@ -1814,7 +1843,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1814
1843
|
key: 0,
|
|
1815
1844
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
1816
1845
|
onPointerdown: (e) => ce(e, n)
|
|
1817
|
-
}, null, 40,
|
|
1846
|
+
}, null, 40, sn)) : c("", !0)], 14, rn))), 128)),
|
|
1818
1847
|
g.value ? (C(), l("th", {
|
|
1819
1848
|
key: 2,
|
|
1820
1849
|
class: v(["w-1 px-4", t.dense ? "py-2" : "py-3"])
|
|
@@ -1842,14 +1871,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1842
1871
|
key: 2,
|
|
1843
1872
|
class: v(t.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
1844
1873
|
}, [...a[7] ||= [u("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : c("", !0)
|
|
1845
|
-
]))), 128)) : U.value.length === 0 ? (C(), l("tr",
|
|
1874
|
+
]))), 128)) : U.value.length === 0 ? (C(), l("tr", cn, [u("td", {
|
|
1846
1875
|
colspan: I.value.length + ne.value,
|
|
1847
1876
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
1848
1877
|
}, [D(r.$slots, "empty", {}, () => [p(e, {
|
|
1849
1878
|
name: "search_off",
|
|
1850
1879
|
size: 36,
|
|
1851
1880
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
1852
|
-
}), u("p",
|
|
1881
|
+
}), u("p", un, A(t.emptyText), 1)])], 8, ln)])) : (C(!0), l(n, { key: 2 }, E(U.value, (e) => (C(), l(n, { key: G(e) }, [u("tr", {
|
|
1853
1882
|
class: v([
|
|
1854
1883
|
"border-t border-outline-variant transition-colors duration-100",
|
|
1855
1884
|
"hover:bg-on-surface/[0.04]",
|
|
@@ -1877,7 +1906,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1877
1906
|
}, [p(Q, {
|
|
1878
1907
|
"model-value": K(e),
|
|
1879
1908
|
"onUpdate:modelValue": (t) => q(e)
|
|
1880
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
1909
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, fn)) : c("", !0),
|
|
1881
1910
|
(C(!0), l(n, null, E(I.value, (n) => (C(), l("td", {
|
|
1882
1911
|
key: n.key,
|
|
1883
1912
|
class: v([
|
|
@@ -1895,11 +1924,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1895
1924
|
class: v(["text-right", t.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
1896
1925
|
onClick: a[4] ||= B(() => {}, ["stop"])
|
|
1897
1926
|
}, [D(r.$slots, "row-actions", { row: e })], 2)) : c("", !0)
|
|
1898
|
-
], 10,
|
|
1927
|
+
], 10, dn), _.value && te(e) ? (C(), l("tr", pn, [u("td", {
|
|
1899
1928
|
colspan: I.value.length + ne.value,
|
|
1900
1929
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest px-6 py-4"
|
|
1901
|
-
}, [D(r.$slots, "row-expand", { row: e })], 8,
|
|
1902
|
-
u("div",
|
|
1930
|
+
}, [D(r.$slots, "row-expand", { row: e })], 8, mn)])) : c("", !0)], 64))), 128))])])]),
|
|
1931
|
+
u("div", hn, [u("span", gn, A(H.value) + " registro" + A(H.value === 1 ? "" : "s"), 1), p(Kt, {
|
|
1903
1932
|
page: w.value,
|
|
1904
1933
|
"per-page": t.perPage,
|
|
1905
1934
|
total: H.value,
|
|
@@ -1911,19 +1940,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
1911
1940
|
])])
|
|
1912
1941
|
]));
|
|
1913
1942
|
}
|
|
1914
|
-
}),
|
|
1943
|
+
}), vn = { class: "flex flex-col gap-1" }, yn = {
|
|
1915
1944
|
key: 0,
|
|
1916
1945
|
class: "flex-1 text-on-surface"
|
|
1917
|
-
},
|
|
1946
|
+
}, bn = {
|
|
1918
1947
|
key: 1,
|
|
1919
1948
|
class: "flex-1 text-on-surface-variant"
|
|
1920
|
-
},
|
|
1949
|
+
}, xn = {
|
|
1921
1950
|
key: 0,
|
|
1922
1951
|
class: "px-4 text-body-small text-error"
|
|
1923
|
-
},
|
|
1952
|
+
}, Sn = {
|
|
1924
1953
|
key: 1,
|
|
1925
1954
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
1926
|
-
},
|
|
1955
|
+
}, Cn = { class: "mb-3 flex items-center justify-between" }, wn = { class: "text-title-small font-medium capitalize text-on-surface" }, Tn = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, En = { class: "grid grid-cols-7 gap-0.5" }, Dn = ["disabled", "onClick"], On = /* @__PURE__ */ m({
|
|
1927
1956
|
__name: "MDatePicker",
|
|
1928
1957
|
props: {
|
|
1929
1958
|
modelValue: {},
|
|
@@ -2043,7 +2072,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2043
2072
|
e ? (U(), setTimeout(() => document.addEventListener("mousedown", W), 0)) : document.removeEventListener("mousedown", W);
|
|
2044
2073
|
}), x(() => window.addEventListener("scroll", G, !0)), S(() => {
|
|
2045
2074
|
window.removeEventListener("scroll", G, !0), document.removeEventListener("mousedown", W);
|
|
2046
|
-
}), (a, o) => (C(), l("div",
|
|
2075
|
+
}), (a, o) => (C(), l("div", vn, [
|
|
2047
2076
|
u("div", {
|
|
2048
2077
|
ref_key: "triggerEl",
|
|
2049
2078
|
ref: h,
|
|
@@ -2059,7 +2088,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2059
2088
|
size: 20,
|
|
2060
2089
|
class: "shrink-0 text-on-surface-variant"
|
|
2061
2090
|
}),
|
|
2062
|
-
H.value ? (C(), l("span",
|
|
2091
|
+
H.value ? (C(), l("span", yn, A(H.value), 1)) : (C(), l("span", bn, A(t.placeholder || t.label || "Seleccionar fecha"), 1)),
|
|
2063
2092
|
t.modelValue ? (C(), s(e, {
|
|
2064
2093
|
key: 2,
|
|
2065
2094
|
name: "close",
|
|
@@ -2071,7 +2100,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2071
2100
|
key: 0,
|
|
2072
2101
|
class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
|
|
2073
2102
|
}, A(t.label), 3)) : c("", !0)], 4),
|
|
2074
|
-
t.error ? (C(), l("p",
|
|
2103
|
+
t.error ? (C(), l("p", xn, A(t.error), 1)) : t.hint ? (C(), l("p", Sn, A(t.hint), 1)) : c("", !0),
|
|
2075
2104
|
(C(), s(r, { to: "body" }, [p(i, {
|
|
2076
2105
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2077
2106
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2085,14 +2114,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2085
2114
|
class: "fixed z-[500] w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2086
2115
|
style: y(_.value)
|
|
2087
2116
|
}, [
|
|
2088
|
-
u("div",
|
|
2117
|
+
u("div", Cn, [
|
|
2089
2118
|
p(Z, {
|
|
2090
2119
|
icon: "chevron_left",
|
|
2091
2120
|
label: "Mes anterior",
|
|
2092
2121
|
size: 36,
|
|
2093
2122
|
onClick: I
|
|
2094
2123
|
}),
|
|
2095
|
-
u("span",
|
|
2124
|
+
u("span", wn, A(O.value), 1),
|
|
2096
2125
|
p(Z, {
|
|
2097
2126
|
icon: "chevron_right",
|
|
2098
2127
|
label: "Mes siguiente",
|
|
@@ -2100,39 +2129,39 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2100
2129
|
onClick: R
|
|
2101
2130
|
})
|
|
2102
2131
|
]),
|
|
2103
|
-
u("div",
|
|
2132
|
+
u("div", Tn, [(C(!0), l(n, null, E(j(D), (e) => (C(), l("span", {
|
|
2104
2133
|
key: e,
|
|
2105
2134
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2106
2135
|
}, A(e), 1))), 128))]),
|
|
2107
|
-
u("div",
|
|
2136
|
+
u("div", En, [(C(!0), l(n, null, E(k.value, (e, n) => (C(), l("button", {
|
|
2108
2137
|
key: n,
|
|
2109
2138
|
type: "button",
|
|
2110
2139
|
class: v(["flex h-9 w-full items-center justify-center rounded-full text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25" : e.iso === t.modelValue ? "bg-primary text-on-primary" : P(e.iso) ? "border border-primary text-primary cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 hover:bg-on-surface/4"]]),
|
|
2111
2140
|
disabled: e.disabled,
|
|
2112
2141
|
onClick: (t) => z(e)
|
|
2113
|
-
}, A(e.date), 11,
|
|
2142
|
+
}, A(e.date), 11, Dn))), 128))])
|
|
2114
2143
|
], 4)) : c("", !0)]),
|
|
2115
2144
|
_: 1
|
|
2116
2145
|
})]))
|
|
2117
2146
|
]));
|
|
2118
2147
|
}
|
|
2119
|
-
}),
|
|
2148
|
+
}), kn = { class: "flex flex-col gap-1" }, An = {
|
|
2120
2149
|
key: 0,
|
|
2121
2150
|
class: "flex-1 text-on-surface"
|
|
2122
|
-
},
|
|
2151
|
+
}, jn = {
|
|
2123
2152
|
key: 1,
|
|
2124
2153
|
class: "flex-1 text-on-surface-variant"
|
|
2125
|
-
},
|
|
2154
|
+
}, Mn = {
|
|
2126
2155
|
key: 0,
|
|
2127
2156
|
class: "px-4 text-body-small text-error"
|
|
2128
|
-
},
|
|
2157
|
+
}, Nn = {
|
|
2129
2158
|
key: 1,
|
|
2130
2159
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2131
|
-
},
|
|
2160
|
+
}, Pn = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, Fn = { class: "mb-3 flex items-center justify-between" }, In = { class: "text-title-small font-medium capitalize text-on-surface" }, Ln = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Rn = { class: "grid grid-cols-7 gap-0.5" }, zn = [
|
|
2132
2161
|
"disabled",
|
|
2133
2162
|
"onMouseenter",
|
|
2134
2163
|
"onClick"
|
|
2135
|
-
],
|
|
2164
|
+
], Bn = /* @__PURE__ */ m({
|
|
2136
2165
|
__name: "MDateRangePicker",
|
|
2137
2166
|
props: {
|
|
2138
2167
|
modelValue: {},
|
|
@@ -2266,7 +2295,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2266
2295
|
e ? (_.value = d.modelValue.start && !d.modelValue.end ? "end" : "start", K(), setTimeout(() => document.addEventListener("mousedown", q), 0)) : document.removeEventListener("mousedown", q);
|
|
2267
2296
|
}), x(() => window.addEventListener("scroll", J, !0)), S(() => {
|
|
2268
2297
|
window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", q);
|
|
2269
|
-
}), (a, o) => (C(), l("div",
|
|
2298
|
+
}), (a, o) => (C(), l("div", kn, [
|
|
2270
2299
|
u("div", {
|
|
2271
2300
|
ref_key: "triggerEl",
|
|
2272
2301
|
ref: h,
|
|
@@ -2282,7 +2311,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2282
2311
|
size: 20,
|
|
2283
2312
|
class: "shrink-0 text-on-surface-variant"
|
|
2284
2313
|
}),
|
|
2285
|
-
W.value ? (C(), l("span",
|
|
2314
|
+
W.value ? (C(), l("span", An, A(W.value), 1)) : (C(), l("span", jn, A(t.label || "Seleccionar rango"), 1)),
|
|
2286
2315
|
t.modelValue.start || t.modelValue.end ? (C(), s(e, {
|
|
2287
2316
|
key: 2,
|
|
2288
2317
|
name: "close",
|
|
@@ -2294,7 +2323,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2294
2323
|
key: 0,
|
|
2295
2324
|
class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
|
|
2296
2325
|
}, A(t.label), 3)) : c("", !0)], 4),
|
|
2297
|
-
t.error ? (C(), l("p",
|
|
2326
|
+
t.error ? (C(), l("p", Mn, A(t.error), 1)) : t.hint ? (C(), l("p", Nn, A(t.hint), 1)) : c("", !0),
|
|
2298
2327
|
(C(), s(r, { to: "body" }, [p(i, {
|
|
2299
2328
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2300
2329
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2308,15 +2337,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2308
2337
|
class: "fixed z-[500] w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2309
2338
|
style: y(w.value)
|
|
2310
2339
|
}, [
|
|
2311
|
-
u("p",
|
|
2312
|
-
u("div",
|
|
2340
|
+
u("p", Pn, A(_.value === "start" ? "Selecciona inicio" : "Selecciona fin"), 1),
|
|
2341
|
+
u("div", Fn, [
|
|
2313
2342
|
p(Z, {
|
|
2314
2343
|
icon: "chevron_left",
|
|
2315
2344
|
label: "Anterior",
|
|
2316
2345
|
size: 36,
|
|
2317
2346
|
onClick: H
|
|
2318
2347
|
}),
|
|
2319
|
-
u("span",
|
|
2348
|
+
u("span", In, A(M.value), 1),
|
|
2320
2349
|
p(Z, {
|
|
2321
2350
|
icon: "chevron_right",
|
|
2322
2351
|
label: "Siguiente",
|
|
@@ -2324,34 +2353,34 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2324
2353
|
onClick: U
|
|
2325
2354
|
})
|
|
2326
2355
|
]),
|
|
2327
|
-
u("div",
|
|
2356
|
+
u("div", Ln, [(C(!0), l(n, null, E(j(k), (e) => (C(), l("span", {
|
|
2328
2357
|
key: e,
|
|
2329
2358
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2330
2359
|
}, A(e), 1))), 128))]),
|
|
2331
|
-
u("div",
|
|
2360
|
+
u("div", Rn, [(C(!0), l(n, null, E(N.value, (e, n) => (C(), l("button", {
|
|
2332
2361
|
key: n,
|
|
2333
2362
|
type: "button",
|
|
2334
2363
|
class: v(["flex h-9 w-full items-center justify-center text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25 rounded-full" : e.iso === t.modelValue.start || e.iso === t.modelValue.end ? "bg-primary text-on-primary rounded-full" : V(e.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : e.iso === j(R) ? "border border-primary text-primary rounded-full cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface rounded-full hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 rounded-full hover:bg-on-surface/4"]]),
|
|
2335
2364
|
disabled: e.disabled,
|
|
2336
2365
|
onMouseenter: (t) => _.value === "end" && (b.value = e.iso),
|
|
2337
2366
|
onClick: (t) => z(e)
|
|
2338
|
-
}, A(e.date), 43,
|
|
2367
|
+
}, A(e.date), 43, zn))), 128))])
|
|
2339
2368
|
], 4)) : c("", !0)]),
|
|
2340
2369
|
_: 1
|
|
2341
2370
|
})]))
|
|
2342
2371
|
]));
|
|
2343
2372
|
}
|
|
2344
|
-
}),
|
|
2373
|
+
}), Vn = {
|
|
2345
2374
|
key: 0,
|
|
2346
2375
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
2347
|
-
},
|
|
2376
|
+
}, Hn = {
|
|
2348
2377
|
key: 1,
|
|
2349
2378
|
class: "h-px flex-1 bg-outline-variant"
|
|
2350
|
-
},
|
|
2379
|
+
}, Un = {
|
|
2351
2380
|
key: 1,
|
|
2352
2381
|
class: "w-px self-stretch bg-outline-variant",
|
|
2353
2382
|
role: "separator"
|
|
2354
|
-
},
|
|
2383
|
+
}, Wn = /* @__PURE__ */ m({
|
|
2355
2384
|
__name: "MDivider",
|
|
2356
2385
|
props: {
|
|
2357
2386
|
vertical: {
|
|
@@ -2365,25 +2394,25 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2365
2394
|
}
|
|
2366
2395
|
},
|
|
2367
2396
|
setup(e) {
|
|
2368
|
-
return (t, n) => e.vertical ? (C(), l("div",
|
|
2397
|
+
return (t, n) => e.vertical ? (C(), l("div", Un)) : (C(), l("div", {
|
|
2369
2398
|
key: 0,
|
|
2370
2399
|
class: v(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
2371
2400
|
role: "separator"
|
|
2372
2401
|
}, [
|
|
2373
2402
|
n[0] ||= u("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
2374
|
-
e.label ? (C(), l("span",
|
|
2375
|
-
e.label ? (C(), l("div",
|
|
2403
|
+
e.label ? (C(), l("span", Vn, A(e.label), 1)) : c("", !0),
|
|
2404
|
+
e.label ? (C(), l("div", Hn)) : c("", !0)
|
|
2376
2405
|
], 2));
|
|
2377
2406
|
}
|
|
2378
|
-
}),
|
|
2407
|
+
}), Gn = {
|
|
2379
2408
|
class: "flex flex-col",
|
|
2380
2409
|
role: "listbox"
|
|
2381
|
-
},
|
|
2410
|
+
}, Kn = [
|
|
2382
2411
|
"draggable",
|
|
2383
2412
|
"onDragstart",
|
|
2384
2413
|
"onDragover",
|
|
2385
2414
|
"onDrop"
|
|
2386
|
-
],
|
|
2415
|
+
], qn = ["onDragstart"], Jn = { class: "min-w-0 flex-1" }, Yn = { class: "text-body-medium text-on-surface" }, Xn = /* @__PURE__ */ m({
|
|
2387
2416
|
__name: "MDragDropList",
|
|
2388
2417
|
props: {
|
|
2389
2418
|
modelValue: {},
|
|
@@ -2427,7 +2456,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2427
2456
|
function y(e) {
|
|
2428
2457
|
return o.value === e ? "opacity-30" : s.value === e && o.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
2429
2458
|
}
|
|
2430
|
-
return (r, i) => (C(), l("div",
|
|
2459
|
+
return (r, i) => (C(), l("div", Gn, [(C(!0), l(n, null, E(t.modelValue, (n, i) => (C(), l("div", {
|
|
2431
2460
|
key: n.id,
|
|
2432
2461
|
draggable: !t.handle,
|
|
2433
2462
|
class: v(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [y(i), !t.handle && "cursor-grab active:cursor-grabbing"]]),
|
|
@@ -2445,12 +2474,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2445
2474
|
}, [p(e, {
|
|
2446
2475
|
name: "drag_indicator",
|
|
2447
2476
|
size: 20
|
|
2448
|
-
})], 40,
|
|
2477
|
+
})], 40, qn)) : c("", !0), u("div", Jn, [D(r.$slots, "default", {
|
|
2449
2478
|
item: n,
|
|
2450
2479
|
index: i
|
|
2451
|
-
}, () => [u("span",
|
|
2480
|
+
}, () => [u("span", Yn, A(n.id), 1)])])], 42, Kn))), 128))]));
|
|
2452
2481
|
}
|
|
2453
|
-
}),
|
|
2482
|
+
}), Zn = /* @__PURE__ */ m({
|
|
2454
2483
|
__name: "MEmptyState",
|
|
2455
2484
|
props: {
|
|
2456
2485
|
icon: { default: "inbox" },
|
|
@@ -2475,13 +2504,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2475
2504
|
}, [D(n.$slots, "actions")], 2)) : c("", !0)
|
|
2476
2505
|
], 2));
|
|
2477
2506
|
}
|
|
2478
|
-
}),
|
|
2507
|
+
}), Qn = ["aria-expanded", "disabled"], $n = { class: "flex-1 min-w-0" }, er = { class: "text-body-large font-medium text-on-surface" }, tr = {
|
|
2479
2508
|
key: 0,
|
|
2480
2509
|
class: "text-body-small text-on-surface-variant"
|
|
2481
|
-
},
|
|
2510
|
+
}, nr = {
|
|
2482
2511
|
key: 0,
|
|
2483
2512
|
class: "expand-grid"
|
|
2484
|
-
},
|
|
2513
|
+
}, rr = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, ir = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
2485
2514
|
__name: "MExpansionPanel",
|
|
2486
2515
|
props: {
|
|
2487
2516
|
title: {},
|
|
@@ -2516,24 +2545,24 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2516
2545
|
size: 22,
|
|
2517
2546
|
class: "shrink-0 text-on-surface-variant"
|
|
2518
2547
|
}, null, 8, ["name"])) : c("", !0),
|
|
2519
|
-
u("div",
|
|
2548
|
+
u("div", $n, [u("p", er, A(t.title), 1), t.subtitle ? (C(), l("p", tr, A(t.subtitle), 1)) : c("", !0)]),
|
|
2520
2549
|
p(e, {
|
|
2521
2550
|
name: "expand_more",
|
|
2522
2551
|
size: 22,
|
|
2523
2552
|
class: v(["shrink-0 text-on-surface-variant transition-transform duration-200", f.value ? "rotate-180" : ""])
|
|
2524
2553
|
}, null, 8, ["class"])
|
|
2525
|
-
], 10,
|
|
2526
|
-
default: L(() => [f.value ? (C(), l("div",
|
|
2554
|
+
], 10, Qn), p(i, { name: "expand" }, {
|
|
2555
|
+
default: L(() => [f.value ? (C(), l("div", nr, [u("div", rr, [D(n.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
|
|
2527
2556
|
_: 3
|
|
2528
2557
|
})], 2));
|
|
2529
2558
|
}
|
|
2530
|
-
}), [["__scopeId", "data-v-89e4475b"]]),
|
|
2559
|
+
}), [["__scopeId", "data-v-89e4475b"]]), ar = {
|
|
2531
2560
|
key: 0,
|
|
2532
2561
|
class: "text-label-large font-medium"
|
|
2533
|
-
},
|
|
2562
|
+
}, or = ["data-tick"], sr = {
|
|
2534
2563
|
key: 0,
|
|
2535
2564
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
2536
|
-
},
|
|
2565
|
+
}, $ = 40, cr = 8, lr = /* @__PURE__ */ m({
|
|
2537
2566
|
__name: "MFab",
|
|
2538
2567
|
props: {
|
|
2539
2568
|
icon: {},
|
|
@@ -2545,30 +2574,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2545
2574
|
default: !1
|
|
2546
2575
|
},
|
|
2547
2576
|
items: {},
|
|
2548
|
-
direction: { default: "up" }
|
|
2577
|
+
direction: { default: "up" },
|
|
2578
|
+
to: {}
|
|
2549
2579
|
},
|
|
2550
2580
|
emits: ["click"],
|
|
2551
2581
|
setup(t, { emit: i }) {
|
|
2552
|
-
let a = t, d =
|
|
2582
|
+
let a = t, d = o(() => a.to ? "RouterLink" : "button"), f = i, m = T(!1), h = T(), g = o(() => !!a.items?.length), _ = {
|
|
2553
2583
|
primary: "bg-primary-container text-on-primary-container",
|
|
2554
2584
|
secondary: "bg-secondary-container text-on-secondary-container",
|
|
2555
2585
|
tertiary: "bg-tertiary-container text-on-tertiary-container",
|
|
2556
2586
|
surface: "bg-surface-container-high text-primary"
|
|
2557
|
-
},
|
|
2587
|
+
}, b = o(() => {
|
|
2558
2588
|
if (a.label) return "h-14 rounded-2xl px-4 gap-3";
|
|
2559
2589
|
switch (a.size) {
|
|
2560
2590
|
case "small": return "h-10 w-10 rounded-lg";
|
|
2561
2591
|
case "large": return "h-24 w-24 rounded-[28px]";
|
|
2562
2592
|
default: return "h-14 w-14 rounded-2xl";
|
|
2563
2593
|
}
|
|
2564
|
-
}),
|
|
2594
|
+
}), w = o(() => {
|
|
2565
2595
|
if (a.label) return 24;
|
|
2566
2596
|
switch (a.size) {
|
|
2567
2597
|
case "small": return 20;
|
|
2568
2598
|
case "large": return 36;
|
|
2569
2599
|
default: return 24;
|
|
2570
2600
|
}
|
|
2571
|
-
}),
|
|
2601
|
+
}), D = o(() => {
|
|
2572
2602
|
if (a.label) return 56;
|
|
2573
2603
|
switch (a.size) {
|
|
2574
2604
|
case "small": return 40;
|
|
@@ -2576,31 +2606,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2576
2606
|
default: return 56;
|
|
2577
2607
|
}
|
|
2578
2608
|
});
|
|
2579
|
-
function
|
|
2580
|
-
return
|
|
2609
|
+
function O() {
|
|
2610
|
+
return h.value?.getBoundingClientRect() ?? null;
|
|
2581
2611
|
}
|
|
2582
|
-
function
|
|
2583
|
-
let t =
|
|
2612
|
+
function j(e) {
|
|
2613
|
+
let t = O();
|
|
2584
2614
|
if (!t) return {
|
|
2585
2615
|
position: "fixed",
|
|
2586
2616
|
opacity: "0",
|
|
2587
2617
|
pointerEvents: "none"
|
|
2588
2618
|
};
|
|
2589
|
-
let n = t.left + t.width / 2, r = t.top + t.height / 2, i = a.items?.length ?? 0, o =
|
|
2619
|
+
let n = t.left + t.width / 2, r = t.top + t.height / 2, i = a.items?.length ?? 0, o = m.value ? `${e * 35}ms` : `${(i - 1 - e) * 35}ms`, s = `transform 220ms cubic-bezier(0.2,0,0,1) ${o}, opacity 180ms ease ${o}`;
|
|
2590
2620
|
if (a.direction === "radial") {
|
|
2591
2621
|
let t = 2 * Math.PI * e / i - Math.PI / 2, a = (Math.cos(t) * 80).toFixed(1), o = (Math.sin(t) * 80).toFixed(1);
|
|
2592
2622
|
return {
|
|
2593
2623
|
position: "fixed",
|
|
2594
2624
|
top: `${r - $ / 2}px`,
|
|
2595
2625
|
left: `${n - $ / 2}px`,
|
|
2596
|
-
transform:
|
|
2597
|
-
opacity:
|
|
2626
|
+
transform: m.value ? `translate(${a}px, ${o}px) scale(1)` : "translate(0,0) scale(0)",
|
|
2627
|
+
opacity: m.value ? "1" : "0",
|
|
2598
2628
|
transition: s,
|
|
2599
|
-
pointerEvents:
|
|
2629
|
+
pointerEvents: m.value ? "auto" : "none",
|
|
2600
2630
|
zIndex: "1000"
|
|
2601
2631
|
};
|
|
2602
2632
|
}
|
|
2603
|
-
let c =
|
|
2633
|
+
let c = D.value / 2 + cr + $ / 2 + e * 48, l = {
|
|
2604
2634
|
up: {
|
|
2605
2635
|
top: `${r - c - $ / 2}px`,
|
|
2606
2636
|
left: `${n - $ / 2}px`
|
|
@@ -2626,84 +2656,103 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2626
2656
|
return {
|
|
2627
2657
|
position: "fixed",
|
|
2628
2658
|
...l[a.direction] ?? l.up,
|
|
2629
|
-
transform:
|
|
2630
|
-
opacity:
|
|
2659
|
+
transform: m.value ? "translate(0,0) scale(1)" : u[a.direction] ?? "scale(0.75)",
|
|
2660
|
+
opacity: m.value ? "1" : "0",
|
|
2631
2661
|
transition: s,
|
|
2632
|
-
pointerEvents:
|
|
2662
|
+
pointerEvents: m.value ? "auto" : "none",
|
|
2633
2663
|
zIndex: "1000"
|
|
2634
2664
|
};
|
|
2635
2665
|
}
|
|
2636
|
-
let
|
|
2637
|
-
function
|
|
2638
|
-
|
|
2666
|
+
let M = o(() => a.direction === "up" || a.direction === "down"), N = T(0);
|
|
2667
|
+
function P() {
|
|
2668
|
+
m.value && N.value++;
|
|
2639
2669
|
}
|
|
2640
|
-
function
|
|
2670
|
+
function F(e, t) {
|
|
2641
2671
|
let n = t ?? e.currentTarget, r = n.getBoundingClientRect(), i = Math.max(r.width, r.height) * 2, a = document.createElement("span");
|
|
2642
2672
|
a.className = "m3-ripple", a.style.cssText = `width:${i}px;height:${i}px;top:${e.clientY - r.top - i / 2}px;left:${e.clientX - r.left - i / 2}px`, n.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
|
|
2643
2673
|
}
|
|
2644
|
-
function
|
|
2645
|
-
|
|
2674
|
+
function I(e) {
|
|
2675
|
+
g.value ? m.value = !m.value : f("click", e);
|
|
2646
2676
|
}
|
|
2647
|
-
function
|
|
2648
|
-
|
|
2677
|
+
function R(e, t, n) {
|
|
2678
|
+
F(e, n), m.value = !1, t.onClick?.();
|
|
2649
2679
|
}
|
|
2650
|
-
function
|
|
2651
|
-
|
|
2680
|
+
function z(e) {
|
|
2681
|
+
m.value && h.value && !h.value.contains(e.target) && (m.value = !1);
|
|
2652
2682
|
}
|
|
2653
2683
|
return x(() => {
|
|
2654
|
-
document.addEventListener("click",
|
|
2684
|
+
document.addEventListener("click", z, !0), window.addEventListener("scroll", P, !0);
|
|
2655
2685
|
}), S(() => {
|
|
2656
|
-
document.removeEventListener("click",
|
|
2686
|
+
document.removeEventListener("click", z, !0), window.removeEventListener("scroll", P, !0);
|
|
2657
2687
|
}), (i, a) => (C(), l(n, null, [u("div", {
|
|
2658
2688
|
ref_key: "fabEl",
|
|
2659
|
-
ref:
|
|
2689
|
+
ref: h,
|
|
2660
2690
|
class: "relative inline-flex items-center justify-center"
|
|
2661
|
-
}, [
|
|
2662
|
-
|
|
2663
|
-
|
|
2691
|
+
}, [(C(), s(k(d.value), {
|
|
2692
|
+
to: t.to || void 0,
|
|
2693
|
+
type: t.to ? void 0 : "button",
|
|
2694
|
+
class: v(["relative inline-flex cursor-pointer items-center justify-center overflow-hidden shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 disabled:cursor-not-allowed disabled:opacity-[0.38] before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", [_[t.color], b.value]]),
|
|
2664
2695
|
disabled: t.disabled,
|
|
2665
2696
|
onPointerdown: a[0] ||= (e) => {
|
|
2666
|
-
|
|
2697
|
+
F(e), I(e);
|
|
2667
2698
|
}
|
|
2668
|
-
},
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
"
|
|
2699
|
+
}, {
|
|
2700
|
+
default: L(() => [p(e, {
|
|
2701
|
+
name: t.icon,
|
|
2702
|
+
size: w.value,
|
|
2703
|
+
class: v(["transition-transform duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]", g.value && m.value ? "rotate-45" : ""])
|
|
2704
|
+
}, null, 8, [
|
|
2705
|
+
"name",
|
|
2706
|
+
"size",
|
|
2707
|
+
"class"
|
|
2708
|
+
]), t.label ? (C(), l("span", ar, A(t.label), 1)) : c("", !0)]),
|
|
2709
|
+
_: 1
|
|
2710
|
+
}, 40, [
|
|
2711
|
+
"to",
|
|
2712
|
+
"type",
|
|
2713
|
+
"class",
|
|
2714
|
+
"disabled"
|
|
2715
|
+
]))], 512), (C(), s(r, { to: "body" }, [g.value ? (C(), l(n, { key: 0 }, [u("span", {
|
|
2716
|
+
"data-tick": N.value,
|
|
2678
2717
|
class: "hidden"
|
|
2679
|
-
}, null, 8,
|
|
2718
|
+
}, null, 8, or), (C(!0), l(n, null, E(t.items, (n, r) => (C(), l("div", {
|
|
2680
2719
|
key: r,
|
|
2681
|
-
style: y(
|
|
2682
|
-
class: v(["flex items-center gap-3",
|
|
2683
|
-
}, [n.label &&
|
|
2684
|
-
|
|
2685
|
-
|
|
2720
|
+
style: y(j(r)),
|
|
2721
|
+
class: v(["flex items-center gap-3", M.value ? "flex-row-reverse" : ""])
|
|
2722
|
+
}, [n.label && M.value ? (C(), l("span", sr, A(n.label), 1)) : c("", !0), (C(), s(k(n.to ? "RouterLink" : "button"), {
|
|
2723
|
+
to: n.to || void 0,
|
|
2724
|
+
type: n.to ? void 0 : "button",
|
|
2725
|
+
class: v(["relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", _[t.color]]),
|
|
2686
2726
|
style: y({
|
|
2687
2727
|
width: `${$}px`,
|
|
2688
2728
|
height: `${$}px`
|
|
2689
2729
|
}),
|
|
2690
|
-
onPointerdown: (e) =>
|
|
2691
|
-
},
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2730
|
+
onPointerdown: (e) => R(e, n, e.currentTarget)
|
|
2731
|
+
}, {
|
|
2732
|
+
default: L(() => [p(e, {
|
|
2733
|
+
name: n.icon,
|
|
2734
|
+
size: 20
|
|
2735
|
+
}, null, 8, ["name"])]),
|
|
2736
|
+
_: 2
|
|
2737
|
+
}, 1064, [
|
|
2738
|
+
"to",
|
|
2739
|
+
"type",
|
|
2740
|
+
"class",
|
|
2741
|
+
"style",
|
|
2742
|
+
"onPointerdown"
|
|
2743
|
+
]))], 6))), 128))], 64)) : c("", !0)]))], 64));
|
|
2695
2744
|
}
|
|
2696
|
-
}),
|
|
2745
|
+
}), ur = { class: "flex flex-col gap-3" }, dr = { class: "text-center" }, fr = {
|
|
2697
2746
|
key: 0,
|
|
2698
2747
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
2699
|
-
},
|
|
2748
|
+
}, pr = { key: 0 }, mr = { key: 1 }, hr = { key: 2 }, gr = [
|
|
2700
2749
|
"accept",
|
|
2701
2750
|
"multiple",
|
|
2702
2751
|
"disabled"
|
|
2703
|
-
],
|
|
2752
|
+
], _r = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, vr = ["src"], yr = { class: "min-w-0 flex-1" }, br = { class: "truncate text-body-medium text-on-surface" }, xr = { class: "text-body-small text-on-surface-variant" }, Sr = {
|
|
2704
2753
|
key: 0,
|
|
2705
2754
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
2706
|
-
},
|
|
2755
|
+
}, Cr = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
2707
2756
|
__name: "MFileUpload",
|
|
2708
2757
|
props: {
|
|
2709
2758
|
accept: {},
|
|
@@ -2751,7 +2800,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2751
2800
|
function k() {
|
|
2752
2801
|
i.disabled || g.value?.click();
|
|
2753
2802
|
}
|
|
2754
|
-
return (r, i) => (C(), l("div",
|
|
2803
|
+
return (r, i) => (C(), l("div", ur, [
|
|
2755
2804
|
u("div", {
|
|
2756
2805
|
class: v(["relative flex min-h-[160px] cursor-pointer flex-col items-center justify-center gap-3 rounded-lg border-2 border-dashed p-6 transition-colors duration-150", [t.disabled ? "cursor-not-allowed border-outline-variant/50 bg-surface-container/30 opacity-60" : h.value ? "border-primary bg-primary-container/20" : "border-outline-variant bg-surface-container-lowest hover:border-primary/60 hover:bg-surface-container"]]),
|
|
2757
2806
|
onClick: k,
|
|
@@ -2763,10 +2812,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2763
2812
|
name: h.value ? "downloading" : "cloud_upload",
|
|
2764
2813
|
size: 40,
|
|
2765
2814
|
class: "text-on-surface-variant"
|
|
2766
|
-
}, null, 8, ["name"]), u("div",
|
|
2767
|
-
t.accept ? (C(), l("span",
|
|
2768
|
-
t.accept && t.maxSize ? (C(), l("span",
|
|
2769
|
-
t.maxSize ? (C(), l("span",
|
|
2815
|
+
}, null, 8, ["name"]), u("div", dr, [i[3] ||= u("p", { class: "text-body-large text-on-surface" }, [f(" Arrastra archivos aquí o "), u("span", { class: "font-medium text-primary" }, "selecciona")], -1), t.accept || t.maxSize ? (C(), l("p", fr, [
|
|
2816
|
+
t.accept ? (C(), l("span", pr, A(t.accept), 1)) : c("", !0),
|
|
2817
|
+
t.accept && t.maxSize ? (C(), l("span", mr, " · ")) : c("", !0),
|
|
2818
|
+
t.maxSize ? (C(), l("span", hr, "Máx. " + A(x(t.maxSize)), 1)) : c("", !0)
|
|
2770
2819
|
])) : c("", !0)])], 34),
|
|
2771
2820
|
u("input", {
|
|
2772
2821
|
ref_key: "inputRef",
|
|
@@ -2777,7 +2826,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2777
2826
|
multiple: t.multiple,
|
|
2778
2827
|
disabled: t.disabled,
|
|
2779
2828
|
onChange: D
|
|
2780
|
-
}, null, 40,
|
|
2829
|
+
}, null, 40, gr),
|
|
2781
2830
|
p(a, {
|
|
2782
2831
|
name: "m3-file",
|
|
2783
2832
|
tag: "div",
|
|
@@ -2787,20 +2836,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2787
2836
|
key: t.id,
|
|
2788
2837
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
2789
2838
|
}, [
|
|
2790
|
-
u("div",
|
|
2839
|
+
u("div", _r, [t.preview ? (C(), l("img", {
|
|
2791
2840
|
key: 0,
|
|
2792
2841
|
src: t.preview,
|
|
2793
2842
|
class: "h-full w-full object-cover"
|
|
2794
|
-
}, null, 8,
|
|
2843
|
+
}, null, 8, vr)) : (C(), s(e, {
|
|
2795
2844
|
key: 1,
|
|
2796
2845
|
name: "description",
|
|
2797
2846
|
size: 24,
|
|
2798
2847
|
class: "text-on-surface-variant"
|
|
2799
2848
|
}))]),
|
|
2800
|
-
u("div",
|
|
2801
|
-
u("p",
|
|
2802
|
-
u("p",
|
|
2803
|
-
t.status === "uploading" ? (C(), l("div",
|
|
2849
|
+
u("div", yr, [
|
|
2850
|
+
u("p", br, A(t.file.name), 1),
|
|
2851
|
+
u("p", xr, A(x(t.file.size)), 1),
|
|
2852
|
+
t.status === "uploading" ? (C(), l("div", Sr, [u("div", {
|
|
2804
2853
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
2805
2854
|
style: y({ width: `${t.progress}%` })
|
|
2806
2855
|
}, null, 4)])) : c("", !0)
|
|
@@ -2830,7 +2879,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2830
2879
|
})
|
|
2831
2880
|
]));
|
|
2832
2881
|
}
|
|
2833
|
-
}), [["__scopeId", "data-v-34a862f0"]]),
|
|
2882
|
+
}), [["__scopeId", "data-v-34a862f0"]]), wr = /* @__PURE__ */ m({
|
|
2834
2883
|
__name: "MGrid",
|
|
2835
2884
|
props: {
|
|
2836
2885
|
cols: { default: 1 },
|
|
@@ -2906,13 +2955,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2906
2955
|
]);
|
|
2907
2956
|
return (e, t) => (C(), l("div", { class: v(d.value) }, [D(e.$slots, "default")], 2));
|
|
2908
2957
|
}
|
|
2909
|
-
}),
|
|
2958
|
+
}), Tr = {
|
|
2910
2959
|
key: 0,
|
|
2911
2960
|
class: "flex flex-col gap-4"
|
|
2912
|
-
},
|
|
2961
|
+
}, Er = {
|
|
2913
2962
|
key: 0,
|
|
2914
2963
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
2915
|
-
},
|
|
2964
|
+
}, Dr = { class: "flex flex-col gap-1" }, Or = { class: "text-body-medium text-on-surface" }, kr = { class: "flex items-center gap-0.5" }, Ar = /* @__PURE__ */ m({
|
|
2916
2965
|
__name: "MHotkeys",
|
|
2917
2966
|
props: {
|
|
2918
2967
|
bindings: {},
|
|
@@ -2969,21 +3018,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
2969
3018
|
}
|
|
2970
3019
|
return e;
|
|
2971
3020
|
};
|
|
2972
|
-
return (t, r) => e.showOverlay ? (C(), l("div",
|
|
3021
|
+
return (t, r) => e.showOverlay ? (C(), l("div", Tr, [(C(!0), l(n, null, E(d(), ([e, t]) => (C(), l("div", { key: e }, [e ? (C(), l("p", Er, A(e), 1)) : c("", !0), u("div", Dr, [(C(!0), l(n, null, E(t, (e) => (C(), l("div", {
|
|
2973
3022
|
key: e.keys,
|
|
2974
3023
|
class: v(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
2975
|
-
}, [u("span",
|
|
3024
|
+
}, [u("span", Or, A(e.label), 1), u("div", kr, [(C(!0), l(n, null, E(e.keys.split("+"), (e, t) => (C(), l("kbd", {
|
|
2976
3025
|
key: t,
|
|
2977
3026
|
class: "inline-flex min-w-[24px] items-center justify-center rounded bg-surface-container px-1.5 py-0.5 text-center text-label-small font-medium text-on-surface-variant"
|
|
2978
3027
|
}, A(i(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : c("", !0);
|
|
2979
3028
|
}
|
|
2980
|
-
}),
|
|
3029
|
+
}), jr = {
|
|
2981
3030
|
key: 0,
|
|
2982
3031
|
class: "flex items-center gap-3"
|
|
2983
|
-
},
|
|
3032
|
+
}, Mr = { class: "text-body-medium text-on-surface-variant" }, Nr = {
|
|
2984
3033
|
key: 1,
|
|
2985
3034
|
class: "text-body-small text-on-surface-variant"
|
|
2986
|
-
},
|
|
3035
|
+
}, Pr = /* @__PURE__ */ m({
|
|
2987
3036
|
__name: "MInfiniteScroll",
|
|
2988
3037
|
props: {
|
|
2989
3038
|
loading: {
|
|
@@ -3014,30 +3063,30 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3014
3063
|
ref_key: "sentinelRef",
|
|
3015
3064
|
ref: i,
|
|
3016
3065
|
class: "flex items-center justify-center py-4"
|
|
3017
|
-
}, [e.loading ? (C(), l("div",
|
|
3066
|
+
}, [e.loading ? (C(), l("div", jr, [p(Be, {
|
|
3018
3067
|
size: 20,
|
|
3019
3068
|
class: "text-primary"
|
|
3020
|
-
}), u("span",
|
|
3069
|
+
}), u("span", Mr, A(e.loadingText), 1)])) : e.ended ? (C(), l("p", Nr, A(e.endText), 1)) : D(t.$slots, "idle", { key: 2 })], 512)]));
|
|
3021
3070
|
}
|
|
3022
|
-
}),
|
|
3071
|
+
}), Fr = {
|
|
3023
3072
|
key: 0,
|
|
3024
3073
|
class: "text-tertiary"
|
|
3025
|
-
},
|
|
3074
|
+
}, Ir = { class: "text-on-surface-variant" }, Lr = {
|
|
3026
3075
|
key: 1,
|
|
3027
3076
|
class: "text-on-surface-variant/60"
|
|
3028
|
-
},
|
|
3077
|
+
}, Rr = {
|
|
3029
3078
|
key: 2,
|
|
3030
3079
|
class: "text-on-surface-variant"
|
|
3031
|
-
},
|
|
3080
|
+
}, zr = {
|
|
3032
3081
|
key: 0,
|
|
3033
3082
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
3034
|
-
},
|
|
3083
|
+
}, Br = { class: "shrink-0 text-primary" }, Vr = {
|
|
3035
3084
|
key: 0,
|
|
3036
3085
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
3037
|
-
},
|
|
3086
|
+
}, Hr = {
|
|
3038
3087
|
key: 1,
|
|
3039
3088
|
class: "ml-5 text-on-surface-variant"
|
|
3040
|
-
},
|
|
3089
|
+
}, Ur = /* @__PURE__ */ m({
|
|
3041
3090
|
__name: "MJsonViewer",
|
|
3042
3091
|
props: {
|
|
3043
3092
|
data: {},
|
|
@@ -3078,17 +3127,17 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3078
3127
|
size: 16,
|
|
3079
3128
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
3080
3129
|
}, null, 8, ["name"]),
|
|
3081
|
-
t._depth === 0 || t.rootName ? (C(), l("span",
|
|
3082
|
-
u("span",
|
|
3083
|
-
i.value ? c("", !0) : (C(), l("span",
|
|
3084
|
-
i.value ? c("", !0) : (C(), l("span",
|
|
3130
|
+
t._depth === 0 || t.rootName ? (C(), l("span", Fr, A(t._depth === 0 ? t.rootName : ""), 1)) : c("", !0),
|
|
3131
|
+
u("span", Ir, A(h.value), 1),
|
|
3132
|
+
i.value ? c("", !0) : (C(), l("span", Lr, A(m.value) + " " + A(a.value === "array" ? "elementos" : "campos"), 1)),
|
|
3133
|
+
i.value ? c("", !0) : (C(), l("span", Rr, A(g.value), 1))
|
|
3085
3134
|
]),
|
|
3086
|
-
i.value ? (C(), l("div",
|
|
3135
|
+
i.value ? (C(), l("div", zr, [(C(!0), l(n, null, E(f.value, (e) => (C(), l("div", {
|
|
3087
3136
|
key: e.key,
|
|
3088
3137
|
class: "flex items-start"
|
|
3089
3138
|
}, [
|
|
3090
|
-
u("span",
|
|
3091
|
-
a.value === "array" ? c("", !0) : (C(), l("span",
|
|
3139
|
+
u("span", Br, A(a.value === "array" ? "" : `"${e.key}"`), 1),
|
|
3140
|
+
a.value === "array" ? c("", !0) : (C(), l("span", Vr, ":")),
|
|
3092
3141
|
e.value !== null && typeof e.value == "object" ? (C(), s(b, {
|
|
3093
3142
|
key: 1,
|
|
3094
3143
|
data: e.value,
|
|
@@ -3105,21 +3154,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3105
3154
|
class: v(_(e.value))
|
|
3106
3155
|
}, A(y(e.value)), 3))
|
|
3107
3156
|
]))), 128))])) : c("", !0),
|
|
3108
|
-
i.value ? (C(), l("span",
|
|
3157
|
+
i.value ? (C(), l("span", Hr, A(g.value), 1)) : c("", !0)
|
|
3109
3158
|
], 64)) : (C(), l("span", {
|
|
3110
3159
|
key: 1,
|
|
3111
3160
|
class: v(_(t.data))
|
|
3112
3161
|
}, A(y(t.data)), 3))], 2);
|
|
3113
3162
|
};
|
|
3114
3163
|
}
|
|
3115
|
-
}),
|
|
3164
|
+
}), Wr = { class: "flex gap-4 overflow-x-auto pb-2" }, Gr = ["onDragover", "onDrop"], Kr = { class: "flex items-center gap-2 px-4 py-3" }, qr = { class: "flex-1 text-title-small font-medium text-on-surface" }, Jr = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, Yr = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, Xr = [
|
|
3116
3165
|
"onDragstart",
|
|
3117
3166
|
"onDragover",
|
|
3118
3167
|
"onClick"
|
|
3119
|
-
],
|
|
3168
|
+
], Zr = { class: "text-body-medium text-on-surface" }, Qr = {
|
|
3120
3169
|
key: 0,
|
|
3121
3170
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
3122
|
-
},
|
|
3171
|
+
}, $r = /* @__PURE__ */ m({
|
|
3123
3172
|
__name: "MKanban",
|
|
3124
3173
|
props: { modelValue: {} },
|
|
3125
3174
|
emits: [
|
|
@@ -3178,20 +3227,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3178
3227
|
function g() {
|
|
3179
3228
|
a.value = null, o.value = null, s.value = null;
|
|
3180
3229
|
}
|
|
3181
|
-
return (t, r) => (C(), l("div",
|
|
3230
|
+
return (t, r) => (C(), l("div", Wr, [(C(!0), l(n, null, E(e.modelValue, (e) => (C(), l("div", {
|
|
3182
3231
|
key: e.id,
|
|
3183
3232
|
class: v(["flex w-72 shrink-0 flex-col rounded-xl bg-surface-container-low", o.value === e.id && a.value ? "ring-2 ring-primary ring-inset" : ""]),
|
|
3184
3233
|
onDragover: (t) => p(t, e.id),
|
|
3185
3234
|
onDragleave: r[0] ||= (e) => o.value = null,
|
|
3186
3235
|
onDrop: (t) => h(t, e.id)
|
|
3187
|
-
}, [u("div",
|
|
3236
|
+
}, [u("div", Kr, [
|
|
3188
3237
|
e.color ? (C(), l("div", {
|
|
3189
3238
|
key: 0,
|
|
3190
3239
|
class: v(["h-2.5 w-2.5 rounded-full", d[e.color] ?? "bg-primary"])
|
|
3191
3240
|
}, null, 2)) : c("", !0),
|
|
3192
|
-
u("h3",
|
|
3193
|
-
u("span",
|
|
3194
|
-
]), u("div",
|
|
3241
|
+
u("h3", qr, A(e.title), 1),
|
|
3242
|
+
u("span", Jr, A(e.cards.length), 1)
|
|
3243
|
+
]), u("div", Yr, [(C(!0), l(n, null, E(e.cards, (n, r) => (C(), l("div", {
|
|
3195
3244
|
key: n.id,
|
|
3196
3245
|
draggable: "true",
|
|
3197
3246
|
class: v(["cursor-grab rounded-lg bg-surface p-3 shadow-elevation-1 transition-all duration-150 active:cursor-grabbing", [a.value?.cardId === n.id ? "opacity-30" : "hover:shadow-elevation-2", s.value === r && o.value === e.id && a.value ? "border-t-2 border-primary" : ""]]),
|
|
@@ -3205,18 +3254,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3205
3254
|
}, [D(t.$slots, "card", {
|
|
3206
3255
|
card: n,
|
|
3207
3256
|
column: e
|
|
3208
|
-
}, () => [u("p",
|
|
3257
|
+
}, () => [u("p", Zr, A(n.id), 1)])], 42, Xr))), 128)), e.cards.length === 0 ? (C(), l("div", Qr, [...r[1] ||= [u("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : c("", !0)])], 42, Gr))), 128))]));
|
|
3209
3258
|
}
|
|
3210
|
-
}),
|
|
3259
|
+
}), ei = {
|
|
3211
3260
|
key: 0,
|
|
3212
3261
|
class: "text-body-large text-on-surface-variant"
|
|
3213
|
-
},
|
|
3262
|
+
}, ti = {
|
|
3214
3263
|
key: 1,
|
|
3215
3264
|
class: "relative"
|
|
3216
|
-
},
|
|
3265
|
+
}, ni = {
|
|
3217
3266
|
key: 0,
|
|
3218
3267
|
class: "text-body-medium text-on-surface-variant"
|
|
3219
|
-
},
|
|
3268
|
+
}, ri = /* @__PURE__ */ m({
|
|
3220
3269
|
__name: "MLoadingOverlay",
|
|
3221
3270
|
props: {
|
|
3222
3271
|
visible: { type: Boolean },
|
|
@@ -3249,11 +3298,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3249
3298
|
size: e.spinnerSize,
|
|
3250
3299
|
class: "text-primary"
|
|
3251
3300
|
}, null, 8, ["size"]),
|
|
3252
|
-
e.text ? (C(), l("p",
|
|
3301
|
+
e.text ? (C(), l("p", ei, A(e.text), 1)) : c("", !0),
|
|
3253
3302
|
D(t.$slots, "default")
|
|
3254
3303
|
], 2)) : c("", !0)]),
|
|
3255
3304
|
_: 3
|
|
3256
|
-
})])) : (C(), l("div",
|
|
3305
|
+
})])) : (C(), l("div", ti, [D(t.$slots, "content"), p(i, {
|
|
3257
3306
|
"enter-active-class": "transition-opacity duration-200",
|
|
3258
3307
|
"enter-from-class": "opacity-0",
|
|
3259
3308
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -3267,13 +3316,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3267
3316
|
size: e.spinnerSize,
|
|
3268
3317
|
class: "text-primary"
|
|
3269
3318
|
}, null, 8, ["size"]),
|
|
3270
|
-
e.text ? (C(), l("p",
|
|
3319
|
+
e.text ? (C(), l("p", ni, A(e.text), 1)) : c("", !0),
|
|
3271
3320
|
D(t.$slots, "default")
|
|
3272
3321
|
], 2)) : c("", !0)]),
|
|
3273
3322
|
_: 3
|
|
3274
3323
|
})]));
|
|
3275
3324
|
}
|
|
3276
|
-
}),
|
|
3325
|
+
}), ii = /* @__PURE__ */ m({
|
|
3277
3326
|
__name: "MMasonry",
|
|
3278
3327
|
props: {
|
|
3279
3328
|
cols: { default: 2 },
|
|
@@ -3324,7 +3373,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3324
3373
|
class: "relative w-full"
|
|
3325
3374
|
}, [D(e.$slots, "default")], 512));
|
|
3326
3375
|
}
|
|
3327
|
-
}),
|
|
3376
|
+
}), ai = /* @__PURE__ */ m({
|
|
3328
3377
|
__name: "MMenu",
|
|
3329
3378
|
props: { align: { default: "right" } },
|
|
3330
3379
|
setup(e, { expose: t }) {
|
|
@@ -3393,49 +3442,57 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3393
3442
|
_: 3
|
|
3394
3443
|
})]))], 64));
|
|
3395
3444
|
}
|
|
3396
|
-
}),
|
|
3397
|
-
type: "button",
|
|
3398
|
-
class: "flex w-full cursor-pointer items-center gap-3 px-4 py-2.5 text-left text-body-large text-on-surface hover:bg-on-surface/8"
|
|
3399
|
-
}, fi = /* @__PURE__ */ m({
|
|
3445
|
+
}), oi = /* @__PURE__ */ m({
|
|
3400
3446
|
__name: "MMenuItem",
|
|
3401
|
-
props: {
|
|
3447
|
+
props: {
|
|
3448
|
+
icon: {},
|
|
3449
|
+
to: {}
|
|
3450
|
+
},
|
|
3402
3451
|
setup(t) {
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
class: "text-on-surface-
|
|
3408
|
-
},
|
|
3452
|
+
let n = t, r = o(() => n.to ? "RouterLink" : "button");
|
|
3453
|
+
return (n, i) => (C(), s(k(r.value), {
|
|
3454
|
+
to: t.to || void 0,
|
|
3455
|
+
type: t.to ? void 0 : "button",
|
|
3456
|
+
class: "flex w-full cursor-pointer items-center gap-3 px-4 py-2.5 text-left text-body-large text-on-surface hover:bg-on-surface/8"
|
|
3457
|
+
}, {
|
|
3458
|
+
default: L(() => [t.icon ? (C(), s(e, {
|
|
3459
|
+
key: 0,
|
|
3460
|
+
name: t.icon,
|
|
3461
|
+
size: 20,
|
|
3462
|
+
class: "text-on-surface-variant"
|
|
3463
|
+
}, null, 8, ["name"])) : c("", !0), D(n.$slots, "default")]),
|
|
3464
|
+
_: 3
|
|
3465
|
+
}, 8, ["to", "type"]));
|
|
3409
3466
|
}
|
|
3410
|
-
}),
|
|
3467
|
+
}), si = { class: "flex flex-col gap-1" }, ci = {
|
|
3411
3468
|
key: 0,
|
|
3412
3469
|
class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
|
|
3413
|
-
},
|
|
3470
|
+
}, li = [
|
|
3414
3471
|
"id",
|
|
3415
3472
|
"tabindex",
|
|
3416
3473
|
"aria-expanded"
|
|
3417
|
-
],
|
|
3474
|
+
], ui = ["onClick"], di = {
|
|
3418
3475
|
key: 0,
|
|
3419
3476
|
class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant"
|
|
3420
|
-
},
|
|
3477
|
+
}, fi = {
|
|
3421
3478
|
key: 1,
|
|
3422
3479
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
3423
|
-
},
|
|
3480
|
+
}, pi = {
|
|
3424
3481
|
key: 0,
|
|
3425
3482
|
class: "text-error"
|
|
3426
|
-
},
|
|
3483
|
+
}, mi = { class: "pointer-events-none absolute right-2 top-7 -translate-y-1/2" }, hi = {
|
|
3427
3484
|
key: 0,
|
|
3428
3485
|
class: "px-4 text-body-small text-error"
|
|
3429
|
-
},
|
|
3486
|
+
}, gi = {
|
|
3430
3487
|
key: 1,
|
|
3431
3488
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
3432
|
-
},
|
|
3489
|
+
}, _i = {
|
|
3433
3490
|
key: 0,
|
|
3434
3491
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
3435
|
-
},
|
|
3492
|
+
}, vi = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, yi = { class: "flex flex-col py-1" }, bi = { class: "text-body-large text-on-surface" }, xi = {
|
|
3436
3493
|
key: 0,
|
|
3437
3494
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
3438
|
-
},
|
|
3495
|
+
}, Si = /* @__PURE__ */ m({
|
|
3439
3496
|
__name: "MMultiSelect",
|
|
3440
3497
|
props: {
|
|
3441
3498
|
modelValue: { default: () => [] },
|
|
@@ -3540,13 +3597,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3540
3597
|
g.value ? d.error ? "text-error" : "text-primary" : d.error ? "text-error" : "text-on-surface-variant"
|
|
3541
3598
|
].join(" ");
|
|
3542
3599
|
});
|
|
3543
|
-
return (a, o) => (C(), l(n, null, [u("div",
|
|
3600
|
+
return (a, o) => (C(), l(n, null, [u("div", si, [u("div", {
|
|
3544
3601
|
ref_key: "fieldEl",
|
|
3545
3602
|
ref: w,
|
|
3546
3603
|
class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
|
|
3547
3604
|
style: y(t.variant === "outlined" ? { "--field-bg": j(D) } : void 0)
|
|
3548
3605
|
}, [
|
|
3549
|
-
t.leadingIcon ? (C(), l("div",
|
|
3606
|
+
t.leadingIcon ? (C(), l("div", ci, [p(e, {
|
|
3550
3607
|
name: t.leadingIcon,
|
|
3551
3608
|
size: 20
|
|
3552
3609
|
}, null, 8, ["name"])])) : c("", !0),
|
|
@@ -3573,14 +3630,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3573
3630
|
}, [p(e, {
|
|
3574
3631
|
name: "close",
|
|
3575
3632
|
size: 12
|
|
3576
|
-
})], 8,
|
|
3577
|
-
u("label", { class: v(X.value) }, [f(A(t.label), 1), t.required ? (C(), l("span",
|
|
3578
|
-
u("div",
|
|
3633
|
+
})], 8, ui)]))), 128)), H.value > 0 ? (C(), l("span", di, " +" + A(H.value), 1)) : c("", !0)], 64)) : g.value ? c("", !0) : (C(), l("span", fi, A(t.placeholder), 1))], 42, li),
|
|
3634
|
+
u("label", { class: v(X.value) }, [f(A(t.label), 1), t.required ? (C(), l("span", pi, "\xA0*")) : c("", !0)], 2),
|
|
3635
|
+
u("div", mi, [p(e, {
|
|
3579
3636
|
name: g.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
3580
3637
|
size: 24,
|
|
3581
3638
|
class: "text-on-surface-variant"
|
|
3582
3639
|
}, null, 8, ["name"])])
|
|
3583
|
-
], 6), t.error ? (C(), l("p",
|
|
3640
|
+
], 6), t.error ? (C(), l("p", hi, A(t.error), 1)) : t.hint ? (C(), l("p", gi, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
|
|
3584
3641
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
3585
3642
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
3586
3643
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -3594,7 +3651,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3594
3651
|
ref: O,
|
|
3595
3652
|
class: "fixed z-[500] max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
3596
3653
|
style: y(N.value)
|
|
3597
|
-
}, [t.searchable ? (C(), l("div",
|
|
3654
|
+
}, [t.searchable ? (C(), l("div", _i, [u("div", vi, [p(e, {
|
|
3598
3655
|
name: "search",
|
|
3599
3656
|
size: 16,
|
|
3600
3657
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -3605,7 +3662,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3605
3662
|
type: "text",
|
|
3606
3663
|
placeholder: "Buscar...",
|
|
3607
3664
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
3608
|
-
}, null, 512), [[P, b.value]])])])) : c("", !0), u("div",
|
|
3665
|
+
}, null, 512), [[P, b.value]])])])) : c("", !0), u("div", yi, [(C(!0), l(n, null, E(I.value, (e) => (C(), l("label", {
|
|
3609
3666
|
key: e.value,
|
|
3610
3667
|
class: v(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", e.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
3611
3668
|
}, [p(Q, {
|
|
@@ -3616,11 +3673,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3616
3673
|
"model-value",
|
|
3617
3674
|
"disabled",
|
|
3618
3675
|
"onUpdate:modelValue"
|
|
3619
|
-
]), u("span",
|
|
3676
|
+
]), u("span", bi, A(e.label), 1)], 2))), 128)), I.value.length === 0 ? (C(), l("p", xi, " Sin resultados ")) : c("", !0)])], 4)) : c("", !0)]),
|
|
3620
3677
|
_: 1
|
|
3621
3678
|
})]))], 64));
|
|
3622
3679
|
}
|
|
3623
|
-
}),
|
|
3680
|
+
}), Ci = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, wi = ["onClick"], Ti = /* @__PURE__ */ m({
|
|
3624
3681
|
__name: "MNavigationBar",
|
|
3625
3682
|
props: {
|
|
3626
3683
|
modelValue: {},
|
|
@@ -3628,7 +3685,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3628
3685
|
},
|
|
3629
3686
|
emits: ["update:modelValue"],
|
|
3630
3687
|
setup(t) {
|
|
3631
|
-
return (r, i) => (C(), l("nav",
|
|
3688
|
+
return (r, i) => (C(), l("nav", Ci, [(C(!0), l(n, null, E(t.items, (n) => (C(), l("button", {
|
|
3632
3689
|
key: n.value,
|
|
3633
3690
|
type: "button",
|
|
3634
3691
|
class: v(["group flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 self-stretch transition-colors focus-visible:outline-none", n.value === t.modelValue ? "text-on-secondary-container" : "text-on-surface-variant"]),
|
|
@@ -3655,39 +3712,45 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3655
3712
|
size: 24
|
|
3656
3713
|
}, null, 8, ["name"])]),
|
|
3657
3714
|
_: 2
|
|
3658
|
-
}, 1032, ["count"]))], 2), u("span", { class: v(["text-label-medium transition-[font-weight] duration-150", n.value === t.modelValue ? "font-bold" : "font-medium"]) }, A(n.label), 3)], 10,
|
|
3715
|
+
}, 1032, ["count"]))], 2), u("span", { class: v(["text-label-medium transition-[font-weight] duration-150", n.value === t.modelValue ? "font-bold" : "font-medium"]) }, A(n.label), 3)], 10, wi))), 128))]));
|
|
3659
3716
|
}
|
|
3660
|
-
}),
|
|
3717
|
+
}), Ei = {
|
|
3661
3718
|
key: 0,
|
|
3662
3719
|
class: "fixed inset-0 z-[100] flex"
|
|
3663
|
-
},
|
|
3720
|
+
}, Di = { class: "nd-panel relative flex h-full w-72 max-w-[85vw] flex-col bg-surface-container shadow-elevation-3" }, Oi = {
|
|
3664
3721
|
key: 0,
|
|
3665
3722
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
3666
|
-
},
|
|
3723
|
+
}, ki = { class: "text-title-small font-medium text-on-surface-variant" }, Ai = { class: "flex-1 overflow-y-auto px-3 py-2" }, ji = {
|
|
3667
3724
|
key: 0,
|
|
3668
|
-
class: "my-
|
|
3669
|
-
},
|
|
3670
|
-
key:
|
|
3725
|
+
class: "my-1 border-t border-outline-variant"
|
|
3726
|
+
}, Mi = ["onClick"], Ni = { class: "flex-1 text-left text-title-small font-medium" }, Pi = {
|
|
3727
|
+
key: 2,
|
|
3671
3728
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
3672
|
-
},
|
|
3729
|
+
}, Fi = {
|
|
3730
|
+
key: 0,
|
|
3731
|
+
class: "nd-section-grid"
|
|
3732
|
+
}, Ii = { class: "nd-section-body" }, Li = { class: "flex-1 text-label-large font-medium" }, Ri = {
|
|
3673
3733
|
key: 1,
|
|
3674
3734
|
class: "text-label-medium text-on-surface-variant"
|
|
3675
|
-
},
|
|
3735
|
+
}, zi = {
|
|
3736
|
+
key: 0,
|
|
3737
|
+
class: "shrink-0"
|
|
3738
|
+
}, Bi = {
|
|
3676
3739
|
key: 1,
|
|
3677
|
-
class: "
|
|
3678
|
-
}, Ui = {
|
|
3740
|
+
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
3741
|
+
}, Vi = { class: "px-5 pt-6 pb-2" }, Hi = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Ui = { class: "flex flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, Wi = {
|
|
3679
3742
|
key: 0,
|
|
3680
|
-
class: "
|
|
3681
|
-
},
|
|
3743
|
+
class: "my-1 border-t border-outline-variant"
|
|
3744
|
+
}, Gi = ["title", "onClick"], Ki = { class: "min-w-0 flex-1 text-left text-title-small font-medium" }, qi = {
|
|
3745
|
+
key: 2,
|
|
3746
|
+
class: "nd-collapse-h overflow-hidden"
|
|
3747
|
+
}, Ji = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, Yi = {
|
|
3682
3748
|
key: 0,
|
|
3683
|
-
class: "
|
|
3684
|
-
},
|
|
3685
|
-
key: 1,
|
|
3686
|
-
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
3687
|
-
}, Ji = ["disabled", "onClick"], Yi = { class: "flex-1 text-label-large font-medium" }, Xi = {
|
|
3749
|
+
class: "nd-section-grid"
|
|
3750
|
+
}, Xi = { class: "nd-section-body" }, Zi = { class: "min-w-0 flex-1 text-label-large font-medium" }, Qi = {
|
|
3688
3751
|
key: 1,
|
|
3689
3752
|
class: "text-label-medium text-on-surface-variant"
|
|
3690
|
-
},
|
|
3753
|
+
}, $i = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
3691
3754
|
__name: "MNavigationDrawer",
|
|
3692
3755
|
props: {
|
|
3693
3756
|
modelValue: { type: Boolean },
|
|
@@ -3697,19 +3760,31 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3697
3760
|
modal: {
|
|
3698
3761
|
type: Boolean,
|
|
3699
3762
|
default: !0
|
|
3700
|
-
}
|
|
3763
|
+
},
|
|
3764
|
+
collapsed: { type: Boolean }
|
|
3701
3765
|
},
|
|
3702
3766
|
emits: ["update:modelValue", "select"],
|
|
3703
3767
|
setup(t, { emit: a }) {
|
|
3704
|
-
let o = t, d = a;
|
|
3705
|
-
function
|
|
3768
|
+
let o = t, d = a, f = T({});
|
|
3769
|
+
function m(e, t) {
|
|
3770
|
+
let n = e.title ?? `__${t}`;
|
|
3771
|
+
return f.value[n] !== !1;
|
|
3772
|
+
}
|
|
3773
|
+
function h(e, t) {
|
|
3774
|
+
let n = e.title ?? `__${t}`;
|
|
3775
|
+
f.value[n] = !m(e, t);
|
|
3776
|
+
}
|
|
3777
|
+
function g() {
|
|
3706
3778
|
d("update:modelValue", !1);
|
|
3707
3779
|
}
|
|
3708
|
-
function
|
|
3709
|
-
e.disabled || (d("select", e.value), o.modal &&
|
|
3780
|
+
function _(e) {
|
|
3781
|
+
e.disabled || (d("select", e.value), o.modal && g());
|
|
3782
|
+
}
|
|
3783
|
+
function y(e) {
|
|
3784
|
+
return e.to && !e.disabled ? "RouterLink" : "button";
|
|
3710
3785
|
}
|
|
3711
3786
|
return F(() => o.modelValue, (e) => {
|
|
3712
|
-
|
|
3787
|
+
o.modal && (document.body.style.overflow = e ? "hidden" : "");
|
|
3713
3788
|
}), (a, o) => t.modal ? (C(), s(r, {
|
|
3714
3789
|
key: 0,
|
|
3715
3790
|
to: "body"
|
|
@@ -3720,53 +3795,122 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3720
3795
|
leave: 280
|
|
3721
3796
|
}
|
|
3722
3797
|
}, {
|
|
3723
|
-
default: L(() => [t.modelValue ? (C(), l("div",
|
|
3798
|
+
default: L(() => [t.modelValue ? (C(), l("div", Ei, [u("div", {
|
|
3724
3799
|
class: "nd-scrim absolute inset-0 bg-black/40",
|
|
3725
|
-
onClick:
|
|
3726
|
-
}), u("nav",
|
|
3727
|
-
|
|
3728
|
-
r.title ? (C(), l("
|
|
3729
|
-
|
|
3730
|
-
key: n.value,
|
|
3800
|
+
onClick: g
|
|
3801
|
+
}), u("nav", Di, [t.title || a.$slots.header ? (C(), l("div", Oi, [D(a.$slots, "header", {}, () => [u("h2", ki, A(t.title), 1)], !0)])) : c("", !0), u("div", Ai, [(C(!0), l(n, null, E(t.sections, (r, a) => (C(), l(n, { key: a }, [
|
|
3802
|
+
a > 0 ? (C(), l("div", ji)) : c("", !0),
|
|
3803
|
+
r.title && r.collapsible ? (C(), l("button", {
|
|
3804
|
+
key: 1,
|
|
3731
3805
|
type: "button",
|
|
3732
|
-
class:
|
|
3733
|
-
|
|
3734
|
-
onClick: (e) => m(n)
|
|
3806
|
+
class: "mt-1 flex w-full cursor-pointer items-center gap-3 rounded-xl px-3 py-2.5 text-on-surface-variant transition-colors hover:bg-on-surface/8",
|
|
3807
|
+
onClick: (e) => h(r, a)
|
|
3735
3808
|
}, [
|
|
3736
|
-
|
|
3809
|
+
r.icon ? (C(), s(e, {
|
|
3737
3810
|
key: 0,
|
|
3738
|
-
name:
|
|
3739
|
-
size: 24
|
|
3811
|
+
name: r.icon,
|
|
3812
|
+
size: 24,
|
|
3813
|
+
class: "shrink-0"
|
|
3740
3814
|
}, null, 8, ["name"])) : c("", !0),
|
|
3741
|
-
u("span",
|
|
3742
|
-
|
|
3743
|
-
|
|
3815
|
+
u("span", Ni, A(r.title), 1),
|
|
3816
|
+
p(e, {
|
|
3817
|
+
name: m(r, a) ? "expand_less" : "expand_more",
|
|
3818
|
+
size: 18,
|
|
3819
|
+
class: "shrink-0"
|
|
3820
|
+
}, null, 8, ["name"])
|
|
3821
|
+
], 8, Mi)) : r.title ? (C(), l("p", Pi, A(r.title), 1)) : c("", !0),
|
|
3822
|
+
p(i, { name: "nd-section" }, {
|
|
3823
|
+
default: L(() => [!r.collapsible || m(r, a) ? (C(), l("div", Fi, [u("div", Ii, [(C(!0), l(n, null, E(r.items, (n) => (C(), s(k(y(n)), {
|
|
3824
|
+
key: n.value,
|
|
3825
|
+
to: n.to && !n.disabled ? n.to : void 0,
|
|
3826
|
+
type: n.to ? void 0 : "button",
|
|
3827
|
+
class: v(["flex w-full items-center gap-3 rounded-full py-2.5 text-left transition-colors focus-visible:outline-none", [r.collapsible ? "pl-8 pr-3" : "px-4", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
|
|
3828
|
+
disabled: n.disabled && !n.to,
|
|
3829
|
+
onClick: (e) => _(n)
|
|
3830
|
+
}, {
|
|
3831
|
+
default: L(() => [
|
|
3832
|
+
n.icon ? (C(), s(e, {
|
|
3833
|
+
key: 0,
|
|
3834
|
+
name: n.icon,
|
|
3835
|
+
size: 24
|
|
3836
|
+
}, null, 8, ["name"])) : c("", !0),
|
|
3837
|
+
u("span", Li, A(n.label), 1),
|
|
3838
|
+
n.badge == null ? c("", !0) : (C(), l("span", Ri, A(n.badge), 1))
|
|
3839
|
+
]),
|
|
3840
|
+
_: 2
|
|
3841
|
+
}, 1032, [
|
|
3842
|
+
"to",
|
|
3843
|
+
"type",
|
|
3844
|
+
"class",
|
|
3845
|
+
"disabled",
|
|
3846
|
+
"onClick"
|
|
3847
|
+
]))), 128))])])) : c("", !0)]),
|
|
3848
|
+
_: 2
|
|
3849
|
+
}, 1024)
|
|
3744
3850
|
], 64))), 128))])])])) : c("", !0)]),
|
|
3745
3851
|
_: 3
|
|
3746
|
-
})])) : (C(), l("nav",
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3852
|
+
})])) : (C(), l("nav", {
|
|
3853
|
+
key: 1,
|
|
3854
|
+
class: v(["nd-inline flex h-full shrink-0 flex-col border-r border-outline-variant bg-surface", t.collapsed ? "nd-collapsed w-[72px]" : "w-72"])
|
|
3855
|
+
}, [a.$slots.header ? (C(), l("div", zi, [D(a.$slots, "header", {}, void 0, !0)])) : t.title ? (C(), l("div", Bi, [u("div", Vi, [u("h2", Hi, A(t.title), 1)])])) : c("", !0), u("div", Ui, [(C(!0), l(n, null, E(t.sections, (r, a) => (C(), l(n, { key: a }, [
|
|
3856
|
+
a > 0 ? (C(), l("div", Wi)) : c("", !0),
|
|
3857
|
+
r.title && r.collapsible ? (C(), l("button", {
|
|
3858
|
+
key: 1,
|
|
3751
3859
|
type: "button",
|
|
3752
|
-
class:
|
|
3753
|
-
|
|
3754
|
-
onClick: (e) =>
|
|
3860
|
+
class: "mt-1 flex w-full cursor-pointer items-center gap-3 overflow-hidden whitespace-nowrap rounded-xl px-3 py-2.5 text-on-surface-variant hover:bg-on-surface/8",
|
|
3861
|
+
title: t.collapsed ? r.title : void 0,
|
|
3862
|
+
onClick: (e) => h(r, a)
|
|
3755
3863
|
}, [
|
|
3756
|
-
|
|
3864
|
+
r.icon ? (C(), s(e, {
|
|
3757
3865
|
key: 0,
|
|
3758
|
-
name:
|
|
3759
|
-
size: 24
|
|
3866
|
+
name: r.icon,
|
|
3867
|
+
size: 24,
|
|
3868
|
+
class: "shrink-0"
|
|
3760
3869
|
}, null, 8, ["name"])) : c("", !0),
|
|
3761
|
-
u("span",
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3870
|
+
u("span", Ki, A(r.title), 1),
|
|
3871
|
+
p(e, {
|
|
3872
|
+
name: m(r, a) ? "expand_less" : "expand_more",
|
|
3873
|
+
size: 18,
|
|
3874
|
+
class: "shrink-0"
|
|
3875
|
+
}, null, 8, ["name"])
|
|
3876
|
+
], 8, Gi)) : r.title ? (C(), l("div", qi, [u("p", Ji, A(r.title), 1)])) : c("", !0),
|
|
3877
|
+
p(i, { name: "nd-section" }, {
|
|
3878
|
+
default: L(() => [!r.collapsible || m(r, a) ? (C(), l("div", Yi, [u("div", Xi, [(C(!0), l(n, null, E(r.items, (n) => (C(), s(k(y(n)), {
|
|
3879
|
+
key: n.value,
|
|
3880
|
+
to: n.to && !n.disabled ? n.to : void 0,
|
|
3881
|
+
type: n.to ? void 0 : "button",
|
|
3882
|
+
title: t.collapsed ? n.label : void 0,
|
|
3883
|
+
class: v(["flex w-full items-center gap-3 overflow-hidden whitespace-nowrap rounded-full py-2.5 text-left focus-visible:outline-none", [r.collapsible && !t.collapsed ? "pl-8 pr-3" : "px-3", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === t.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
|
|
3884
|
+
disabled: n.disabled && !n.to,
|
|
3885
|
+
onClick: (e) => _(n)
|
|
3886
|
+
}, {
|
|
3887
|
+
default: L(() => [
|
|
3888
|
+
n.icon ? (C(), s(e, {
|
|
3889
|
+
key: 0,
|
|
3890
|
+
name: n.icon,
|
|
3891
|
+
size: 24,
|
|
3892
|
+
class: "shrink-0"
|
|
3893
|
+
}, null, 8, ["name"])) : c("", !0),
|
|
3894
|
+
u("span", Zi, A(n.label), 1),
|
|
3895
|
+
n.badge == null ? c("", !0) : (C(), l("span", Qi, A(n.badge), 1))
|
|
3896
|
+
]),
|
|
3897
|
+
_: 2
|
|
3898
|
+
}, 1032, [
|
|
3899
|
+
"to",
|
|
3900
|
+
"type",
|
|
3901
|
+
"title",
|
|
3902
|
+
"class",
|
|
3903
|
+
"disabled",
|
|
3904
|
+
"onClick"
|
|
3905
|
+
]))), 128))])])) : c("", !0)]),
|
|
3906
|
+
_: 2
|
|
3907
|
+
}, 1024)
|
|
3908
|
+
], 64))), 128))])], 2));
|
|
3765
3909
|
}
|
|
3766
|
-
}), [["__scopeId", "data-v-
|
|
3910
|
+
}), [["__scopeId", "data-v-d898f7f1"]]), ea = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, ta = {
|
|
3767
3911
|
key: 0,
|
|
3768
3912
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
3769
|
-
},
|
|
3913
|
+
}, na = ["disabled", "onClick"], ra = /* @__PURE__ */ m({
|
|
3770
3914
|
__name: "MNavigationRail",
|
|
3771
3915
|
props: {
|
|
3772
3916
|
modelValue: {},
|
|
@@ -3775,7 +3919,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3775
3919
|
},
|
|
3776
3920
|
emits: ["update:modelValue"],
|
|
3777
3921
|
setup(t) {
|
|
3778
|
-
return (r, i) => (C(), l("nav",
|
|
3922
|
+
return (r, i) => (C(), l("nav", ea, [r.$slots.fab ? (C(), l("div", ta, [D(r.$slots, "fab")])) : c("", !0), u("div", { class: v(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
3779
3923
|
"justify-start": t.alignment === "top",
|
|
3780
3924
|
"justify-center": t.alignment === "center",
|
|
3781
3925
|
"justify-end": t.alignment === "bottom"
|
|
@@ -3807,15 +3951,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3807
3951
|
size: 24
|
|
3808
3952
|
}, null, 8, ["name"])]),
|
|
3809
3953
|
_: 2
|
|
3810
|
-
}, 1032, ["count"]))], 2), u("span", { class: v(["max-w-[56px] truncate text-center text-label-medium", n.value === t.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, A(n.label), 3)], 10,
|
|
3954
|
+
}, 1032, ["count"]))], 2), u("span", { class: v(["max-w-[56px] truncate text-center text-label-medium", n.value === t.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, A(n.label), 3)], 10, na))), 128))], 2)]));
|
|
3811
3955
|
}
|
|
3812
|
-
}),
|
|
3956
|
+
}), ia = { class: "flex flex-col gap-1" }, aa = {
|
|
3813
3957
|
key: 0,
|
|
3814
3958
|
class: "text-label-small text-on-surface-variant"
|
|
3815
|
-
},
|
|
3959
|
+
}, oa = ["aria-valuenow"], sa = ["aria-valuenow"], ca = ["viewBox"], la = ["d"], ua = {
|
|
3816
3960
|
key: 1,
|
|
3817
3961
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
3818
|
-
},
|
|
3962
|
+
}, da = ["viewBox"], fa = ["d"], pa = 20, ma = 2.5, ha = 4, ga = 8, _a = 80, va = 1, ya = /* @__PURE__ */ m({
|
|
3819
3963
|
__name: "MProgressBar",
|
|
3820
3964
|
props: {
|
|
3821
3965
|
value: {},
|
|
@@ -3846,15 +3990,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3846
3990
|
track: "bg-error-container",
|
|
3847
3991
|
text: "text-error"
|
|
3848
3992
|
}
|
|
3849
|
-
}, s =
|
|
3993
|
+
}, s = pa * _a, d = (() => {
|
|
3850
3994
|
let e = "";
|
|
3851
|
-
for (let t = 0; t <= s; t +=
|
|
3852
|
-
let n =
|
|
3995
|
+
for (let t = 0; t <= s; t += va) {
|
|
3996
|
+
let n = ha - ma * Math.sin(t / pa * Math.PI * 2);
|
|
3853
3997
|
e += (t === 0 ? "M" : "L") + t + "," + n.toFixed(2) + " ";
|
|
3854
3998
|
}
|
|
3855
3999
|
return e.trim();
|
|
3856
4000
|
})();
|
|
3857
|
-
return (t, o) => (C(), l("div",
|
|
4001
|
+
return (t, o) => (C(), l("div", ia, [e.label ? (C(), l("span", aa, A(e.label), 1)) : c("", !0), e.variant === "linear" ? (C(), l("div", {
|
|
3858
4002
|
key: 1,
|
|
3859
4003
|
class: v(["relative h-1 w-full overflow-hidden rounded-full", a[e.color].track]),
|
|
3860
4004
|
role: "progressbar",
|
|
@@ -3868,20 +4012,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3868
4012
|
key: 0,
|
|
3869
4013
|
class: v(["h-full rounded-full transition-[width] duration-300 ease-in-out", a[e.color].bar]),
|
|
3870
4014
|
style: y({ width: `${i.value}%` })
|
|
3871
|
-
}, null, 6))], 10,
|
|
4015
|
+
}, null, 6))], 10, oa)) : (C(), l("div", {
|
|
3872
4016
|
key: 2,
|
|
3873
4017
|
class: "relative h-2 w-full overflow-visible",
|
|
3874
4018
|
role: "progressbar",
|
|
3875
4019
|
"aria-valuenow": r.value ? void 0 : i.value,
|
|
3876
4020
|
"aria-valuemin": "0",
|
|
3877
4021
|
"aria-valuemax": "100"
|
|
3878
|
-
}, [r.value ? (C(), l("div",
|
|
4022
|
+
}, [r.value ? (C(), l("div", ua, [u("div", {
|
|
3879
4023
|
class: v(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", a[e.color].text]),
|
|
3880
4024
|
style: y({ width: `${s}px` })
|
|
3881
4025
|
}, [(C(), l("svg", {
|
|
3882
4026
|
width: s,
|
|
3883
|
-
height:
|
|
3884
|
-
viewBox: `0 0 ${s} ${
|
|
4027
|
+
height: ga,
|
|
4028
|
+
viewBox: `0 0 ${s} ${ga}`,
|
|
3885
4029
|
class: "h-full",
|
|
3886
4030
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3887
4031
|
}, [u("path", {
|
|
@@ -3890,7 +4034,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3890
4034
|
stroke: "currentColor",
|
|
3891
4035
|
"stroke-width": "3",
|
|
3892
4036
|
"stroke-linecap": "round"
|
|
3893
|
-
}, null, 8,
|
|
4037
|
+
}, null, 8, fa)], 8, da))], 6)])) : (C(), l(n, { key: 0 }, [
|
|
3894
4038
|
u("div", {
|
|
3895
4039
|
class: "absolute inset-0 overflow-hidden",
|
|
3896
4040
|
style: y({
|
|
@@ -3902,8 +4046,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3902
4046
|
style: y({ width: `${s}px` })
|
|
3903
4047
|
}, [(C(), l("svg", {
|
|
3904
4048
|
width: s,
|
|
3905
|
-
height:
|
|
3906
|
-
viewBox: `0 0 ${s} ${
|
|
4049
|
+
height: ga,
|
|
4050
|
+
viewBox: `0 0 ${s} ${ga}`,
|
|
3907
4051
|
class: "h-full",
|
|
3908
4052
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3909
4053
|
}, [u("path", {
|
|
@@ -3912,7 +4056,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3912
4056
|
stroke: "currentColor",
|
|
3913
4057
|
"stroke-width": "3",
|
|
3914
4058
|
"stroke-linecap": "round"
|
|
3915
|
-
}, null, 8,
|
|
4059
|
+
}, null, 8, la)], 8, ca))], 6)], 4),
|
|
3916
4060
|
u("div", {
|
|
3917
4061
|
class: v(["absolute inset-y-0 right-0 flex items-center", a[e.color].track]),
|
|
3918
4062
|
style: y([{
|
|
@@ -3935,16 +4079,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3935
4079
|
height: "4px"
|
|
3936
4080
|
}
|
|
3937
4081
|
}, null, 2)
|
|
3938
|
-
], 64))], 8,
|
|
4082
|
+
], 64))], 8, sa))]));
|
|
3939
4083
|
}
|
|
3940
|
-
}),
|
|
4084
|
+
}), ba = ["for"], xa = { class: "relative flex h-5 w-5 shrink-0" }, Sa = [
|
|
3941
4085
|
"id",
|
|
3942
4086
|
"checked",
|
|
3943
4087
|
"disabled"
|
|
3944
|
-
],
|
|
4088
|
+
], Ca = {
|
|
3945
4089
|
key: 0,
|
|
3946
4090
|
class: "text-body-large text-on-surface"
|
|
3947
|
-
},
|
|
4091
|
+
}, wa = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
3948
4092
|
__name: "MRadio",
|
|
3949
4093
|
props: {
|
|
3950
4094
|
modelValue: {},
|
|
@@ -3967,14 +4111,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3967
4111
|
return (t, n) => (C(), l("label", {
|
|
3968
4112
|
for: j(i),
|
|
3969
4113
|
class: v(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
3970
|
-
}, [u("span",
|
|
4114
|
+
}, [u("span", xa, [u("input", {
|
|
3971
4115
|
id: j(i),
|
|
3972
4116
|
type: "radio",
|
|
3973
4117
|
class: "sr-only",
|
|
3974
4118
|
checked: a.value,
|
|
3975
4119
|
disabled: e.disabled,
|
|
3976
4120
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
3977
|
-
}, null, 40,
|
|
4121
|
+
}, null, 40, Sa), (C(), l("svg", {
|
|
3978
4122
|
viewBox: "0 0 20 20",
|
|
3979
4123
|
class: v(["h-full w-full transition-colors duration-150", a.value ? s[e.color] : "text-on-surface-variant"]),
|
|
3980
4124
|
"aria-hidden": "true"
|
|
@@ -3991,12 +4135,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
3991
4135
|
cy: "10",
|
|
3992
4136
|
r: "4.5",
|
|
3993
4137
|
fill: "currentColor"
|
|
3994
|
-
}, null, 2)], 2))]), e.label ? (C(), l("span",
|
|
4138
|
+
}, null, 2)], 2))]), e.label ? (C(), l("span", Ca, A(e.label), 1)) : c("", !0)], 10, ba));
|
|
3995
4139
|
}
|
|
3996
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
4140
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), Ta = { class: "flex flex-col gap-2" }, Ea = {
|
|
3997
4141
|
key: 0,
|
|
3998
4142
|
class: "text-label-large text-on-surface-variant"
|
|
3999
|
-
},
|
|
4143
|
+
}, Da = /* @__PURE__ */ m({
|
|
4000
4144
|
__name: "MRadioGroup",
|
|
4001
4145
|
props: {
|
|
4002
4146
|
modelValue: {},
|
|
@@ -4012,7 +4156,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4012
4156
|
emits: ["update:modelValue"],
|
|
4013
4157
|
setup(e, { emit: t }) {
|
|
4014
4158
|
let r = t;
|
|
4015
|
-
return (t, i) => (C(), l("div",
|
|
4159
|
+
return (t, i) => (C(), l("div", Ta, [e.label ? (C(), l("span", Ea, A(e.label), 1)) : c("", !0), u("div", { class: v(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(C(!0), l(n, null, E(e.options, (t) => (C(), s(wa, {
|
|
4016
4160
|
key: String(t.value),
|
|
4017
4161
|
"model-value": e.modelValue,
|
|
4018
4162
|
value: t.value,
|
|
@@ -4028,11 +4172,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4028
4172
|
"disabled"
|
|
4029
4173
|
]))), 128))], 2)]));
|
|
4030
4174
|
}
|
|
4031
|
-
}),
|
|
4175
|
+
}), Oa = [
|
|
4032
4176
|
"disabled",
|
|
4033
4177
|
"onClick",
|
|
4034
4178
|
"onMousemove"
|
|
4035
|
-
],
|
|
4179
|
+
], ka = /* @__PURE__ */ m({
|
|
4036
4180
|
__name: "MRating",
|
|
4037
4181
|
props: {
|
|
4038
4182
|
modelValue: {},
|
|
@@ -4109,21 +4253,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4109
4253
|
name: t.icon,
|
|
4110
4254
|
size: t.size,
|
|
4111
4255
|
class: "text-on-surface-variant/40"
|
|
4112
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
4256
|
+
}, null, 8, ["name", "size"]))], 46, Oa))), 128))], 34));
|
|
4113
4257
|
}
|
|
4114
|
-
}),
|
|
4258
|
+
}), Aa = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, ja = {
|
|
4115
4259
|
key: 0,
|
|
4116
4260
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
4117
|
-
},
|
|
4261
|
+
}, Ma = { class: "text-headline-small font-medium text-on-surface" }, Na = {
|
|
4118
4262
|
key: 1,
|
|
4119
4263
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
4120
|
-
},
|
|
4264
|
+
}, Pa = {
|
|
4121
4265
|
key: 2,
|
|
4122
4266
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
4123
|
-
},
|
|
4267
|
+
}, Fa = {
|
|
4124
4268
|
key: 3,
|
|
4125
4269
|
class: "mt-2"
|
|
4126
|
-
},
|
|
4270
|
+
}, Ia = /* @__PURE__ */ m({
|
|
4127
4271
|
__name: "MResult",
|
|
4128
4272
|
props: {
|
|
4129
4273
|
status: {},
|
|
@@ -4191,19 +4335,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4191
4335
|
};
|
|
4192
4336
|
}
|
|
4193
4337
|
}), i = o(() => n.status === "404" || n.status === "403" || n.status === "500" ? n.status : null);
|
|
4194
|
-
return (n, a) => (C(), l("div",
|
|
4195
|
-
i.value ? (C(), l("span",
|
|
4338
|
+
return (n, a) => (C(), l("div", Aa, [
|
|
4339
|
+
i.value ? (C(), l("span", ja, A(i.value), 1)) : c("", !0),
|
|
4196
4340
|
u("div", { class: v(["flex h-20 w-20 items-center justify-center rounded-full", [r.value.bg, r.value.text]]) }, [p(e, {
|
|
4197
4341
|
name: r.value.icon,
|
|
4198
4342
|
size: 40
|
|
4199
4343
|
}, null, 8, ["name"])], 2),
|
|
4200
|
-
u("h2",
|
|
4201
|
-
t.description ?? r.value.defaultDesc ? (C(), l("p",
|
|
4202
|
-
n.$slots.actions ? (C(), l("div",
|
|
4203
|
-
n.$slots.default ? (C(), l("div",
|
|
4344
|
+
u("h2", Ma, A(t.title ?? r.value.defaultTitle), 1),
|
|
4345
|
+
t.description ?? r.value.defaultDesc ? (C(), l("p", Na, A(t.description ?? r.value.defaultDesc), 1)) : c("", !0),
|
|
4346
|
+
n.$slots.actions ? (C(), l("div", Pa, [D(n.$slots, "actions")])) : c("", !0),
|
|
4347
|
+
n.$slots.default ? (C(), l("div", Fa, [D(n.$slots, "default")])) : c("", !0)
|
|
4204
4348
|
]));
|
|
4205
4349
|
}
|
|
4206
|
-
}),
|
|
4350
|
+
}), La = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ra = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, za = { class: "flex items-center gap-1" }, Ba = { class: "text-title-medium font-medium capitalize text-on-surface" }, Va = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Ha = ["onClick"], Ua = { class: "overflow-auto" }, Wa = { class: "w-full border-collapse" }, Ga = { class: "text-label-small uppercase text-on-surface-variant" }, Ka = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, qa = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, Ja = ["onClick"], Ya = ["onClick"], Xa = { class: "truncate text-label-small font-medium" }, Za = { class: "truncate text-label-small opacity-70" }, Qa = /* @__PURE__ */ m({
|
|
4207
4351
|
__name: "MScheduler",
|
|
4208
4352
|
props: {
|
|
4209
4353
|
events: { default: () => [] },
|
|
@@ -4279,8 +4423,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4279
4423
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
4280
4424
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
4281
4425
|
};
|
|
4282
|
-
return (e, t) => (C(), l("div",
|
|
4283
|
-
u("div",
|
|
4426
|
+
return (e, t) => (C(), l("div", La, [u("div", Ra, [
|
|
4427
|
+
u("div", za, [
|
|
4284
4428
|
p(Z, {
|
|
4285
4429
|
icon: "chevron_left",
|
|
4286
4430
|
label: "Anterior",
|
|
@@ -4299,17 +4443,17 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4299
4443
|
onClick: D
|
|
4300
4444
|
}, " Hoy ")
|
|
4301
4445
|
]),
|
|
4302
|
-
u("h3",
|
|
4303
|
-
u("div",
|
|
4446
|
+
u("h3", Ba, A(S.value), 1),
|
|
4447
|
+
u("div", Va, [(C(), l(n, null, E(["day", "week"], (e) => u("button", {
|
|
4304
4448
|
key: e,
|
|
4305
4449
|
type: "button",
|
|
4306
4450
|
class: v(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", s.value === e ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
4307
4451
|
onClick: (t) => s.value = e
|
|
4308
|
-
}, A(e === "day" ? "Día" : "Semana"), 11,
|
|
4309
|
-
]), u("div",
|
|
4452
|
+
}, A(e === "day" ? "Día" : "Semana"), 11, Ha)), 64))])
|
|
4453
|
+
]), u("div", Ua, [u("table", Wa, [u("thead", null, [u("tr", null, [t[2] ||= u("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (C(!0), l(n, null, E(h.value, (e) => (C(), l("th", {
|
|
4310
4454
|
key: _(e),
|
|
4311
4455
|
class: v(["sticky top-0 z-10 border-b border-r border-outline-variant bg-surface-container px-2 py-2 text-center last:border-r-0", _(e) === j(g) ? "bg-primary-container/30" : ""])
|
|
4312
|
-
}, [u("div",
|
|
4456
|
+
}, [u("div", Ga, A(j(b).format(e)), 1), u("div", { class: v(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", _(e) === j(g) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, A(j(x).format(e)), 3)], 2))), 128))])]), u("tbody", null, [(C(!0), l(n, null, E(d.value, (e) => (C(), l("tr", { key: e }, [u("td", Ka, [u("span", qa, A(String(e).padStart(2, "0")) + ":00 ", 1)]), (C(!0), l(n, null, E(h.value, (t) => (C(), l("td", {
|
|
4313
4457
|
key: _(t),
|
|
4314
4458
|
class: v(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", _(t) === j(g) ? "bg-primary-container/[0.05]" : ""]),
|
|
4315
4459
|
onClick: (n) => i("slotClick", {
|
|
@@ -4322,16 +4466,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4322
4466
|
class: v(["absolute inset-x-0.5 top-0.5 z-[5] cursor-pointer overflow-hidden rounded border-l-[3px] px-2 py-1 text-left transition-opacity hover:opacity-90", P[t.color ?? "primary"]]),
|
|
4323
4467
|
style: y({ height: `calc(${M(t) * 100}% - 4px)` }),
|
|
4324
4468
|
onClick: B((e) => i("eventClick", t), ["stop"])
|
|
4325
|
-
}, [u("p",
|
|
4469
|
+
}, [u("p", Xa, A(t.title), 1), u("p", Za, A(N(t)), 1)], 14, Ya)) : c("", !0)], 64))), 128))], 10, Ja))), 128))]))), 128))])])])]));
|
|
4326
4470
|
}
|
|
4327
|
-
}),
|
|
4471
|
+
}), $a = {
|
|
4328
4472
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
4329
4473
|
role: "group"
|
|
4330
|
-
},
|
|
4474
|
+
}, eo = [
|
|
4331
4475
|
"disabled",
|
|
4332
4476
|
"aria-pressed",
|
|
4333
4477
|
"onClick"
|
|
4334
|
-
],
|
|
4478
|
+
], to = /* @__PURE__ */ m({
|
|
4335
4479
|
__name: "MSegmentedButton",
|
|
4336
4480
|
props: {
|
|
4337
4481
|
modelValue: {},
|
|
@@ -4355,7 +4499,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4355
4499
|
r >= 0 ? n.splice(r, 1) : n.push(e.value), i("update:modelValue", n);
|
|
4356
4500
|
} else i("update:modelValue", e.value);
|
|
4357
4501
|
}
|
|
4358
|
-
return (r, i) => (C(), l("div",
|
|
4502
|
+
return (r, i) => (C(), l("div", $a, [(C(!0), l(n, null, E(t.options, (n, r) => (C(), l("button", {
|
|
4359
4503
|
key: n.value,
|
|
4360
4504
|
type: "button",
|
|
4361
4505
|
class: v(["relative inline-flex items-center justify-center gap-2 text-label-large font-medium transition-[background-color,color] duration-150 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", [
|
|
@@ -4376,35 +4520,35 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4376
4520
|
key: 1,
|
|
4377
4521
|
name: n.icon,
|
|
4378
4522
|
size: 18
|
|
4379
|
-
}, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10,
|
|
4523
|
+
}, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, eo))), 128))]));
|
|
4380
4524
|
}
|
|
4381
|
-
}),
|
|
4525
|
+
}), no = { class: "flex flex-col gap-1" }, ro = {
|
|
4382
4526
|
key: 0,
|
|
4383
4527
|
class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
|
|
4384
|
-
},
|
|
4528
|
+
}, io = [
|
|
4385
4529
|
"id",
|
|
4386
4530
|
"tabindex",
|
|
4387
4531
|
"aria-expanded",
|
|
4388
4532
|
"aria-disabled"
|
|
4389
|
-
],
|
|
4533
|
+
], ao = {
|
|
4390
4534
|
key: 0,
|
|
4391
4535
|
class: "text-on-surface"
|
|
4392
|
-
},
|
|
4536
|
+
}, oo = ["for"], so = {
|
|
4393
4537
|
key: 0,
|
|
4394
4538
|
class: "text-error"
|
|
4395
|
-
},
|
|
4539
|
+
}, co = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2" }, lo = {
|
|
4396
4540
|
key: 0,
|
|
4397
4541
|
class: "px-4 text-body-small text-error"
|
|
4398
|
-
},
|
|
4542
|
+
}, uo = {
|
|
4399
4543
|
key: 1,
|
|
4400
4544
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4401
|
-
},
|
|
4545
|
+
}, fo = ["onClick"], po = {
|
|
4402
4546
|
key: 1,
|
|
4403
4547
|
class: "w-[18px] shrink-0"
|
|
4404
|
-
},
|
|
4548
|
+
}, mo = {
|
|
4405
4549
|
key: 0,
|
|
4406
4550
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
4407
|
-
},
|
|
4551
|
+
}, ho = /* @__PURE__ */ m({
|
|
4408
4552
|
__name: "MSelect",
|
|
4409
4553
|
props: {
|
|
4410
4554
|
modelValue: { default: null },
|
|
@@ -4507,13 +4651,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4507
4651
|
g.value ? d.error ? "text-error" : "text-primary" : d.error ? "text-error" : "text-on-surface-variant"
|
|
4508
4652
|
].join(" ");
|
|
4509
4653
|
});
|
|
4510
|
-
return (a, o) => (C(), l(n, null, [u("div",
|
|
4654
|
+
return (a, o) => (C(), l(n, null, [u("div", no, [u("div", {
|
|
4511
4655
|
ref_key: "fieldEl",
|
|
4512
4656
|
ref: _,
|
|
4513
4657
|
class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
|
|
4514
4658
|
style: y(t.variant === "outlined" ? { "--field-bg": j(b) } : void 0)
|
|
4515
4659
|
}, [
|
|
4516
|
-
t.leadingIcon ? (C(), l("div",
|
|
4660
|
+
t.leadingIcon ? (C(), l("div", ro, [p(e, {
|
|
4517
4661
|
name: t.leadingIcon,
|
|
4518
4662
|
size: 20
|
|
4519
4663
|
}, null, 8, ["name"])])) : c("", !0),
|
|
@@ -4526,17 +4670,17 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4526
4670
|
class: v([B.value, t.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
4527
4671
|
onClick: P,
|
|
4528
4672
|
onKeydown: z
|
|
4529
|
-
}, [O.value ? (C(), l("span",
|
|
4673
|
+
}, [O.value ? (C(), l("span", ao, A(k.value), 1)) : c("", !0)], 42, io),
|
|
4530
4674
|
u("label", {
|
|
4531
4675
|
for: j(h),
|
|
4532
4676
|
class: v(H.value)
|
|
4533
|
-
}, [f(A(t.label), 1), t.required ? (C(), l("span",
|
|
4534
|
-
u("div",
|
|
4677
|
+
}, [f(A(t.label), 1), t.required ? (C(), l("span", so, "\xA0*")) : c("", !0)], 10, oo),
|
|
4678
|
+
u("div", co, [p(e, {
|
|
4535
4679
|
name: g.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
4536
4680
|
size: 24,
|
|
4537
4681
|
class: "text-on-surface-variant transition-transform duration-200"
|
|
4538
4682
|
}, null, 8, ["name"])])
|
|
4539
|
-
], 6), t.error ? (C(), l("p",
|
|
4683
|
+
], 6), t.error ? (C(), l("p", lo, A(t.error), 1)) : t.hint ? (C(), l("p", uo, A(t.hint), 1)) : c("", !0)]), (C(), s(r, { to: "body" }, [p(i, {
|
|
4540
4684
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
4541
4685
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
4542
4686
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -4559,20 +4703,20 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4559
4703
|
name: "check",
|
|
4560
4704
|
size: 18,
|
|
4561
4705
|
class: "shrink-0 text-primary"
|
|
4562
|
-
})) : (C(), l("span",
|
|
4706
|
+
})) : (C(), l("span", po)), f(" " + A(n.label), 1)], 10, fo))), 128)), t.options.length ? c("", !0) : (C(), l("p", mo, " Sin opciones "))], 4)) : c("", !0)]),
|
|
4563
4707
|
_: 1
|
|
4564
4708
|
})]))], 64));
|
|
4565
4709
|
}
|
|
4566
|
-
}),
|
|
4710
|
+
}), go = {
|
|
4567
4711
|
key: 0,
|
|
4568
4712
|
class: "fixed inset-0 z-[200] flex justify-end"
|
|
4569
|
-
},
|
|
4713
|
+
}, _o = {
|
|
4570
4714
|
key: 0,
|
|
4571
4715
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
4572
|
-
},
|
|
4716
|
+
}, vo = { class: "text-title-large text-on-surface" }, yo = { class: "flex-1 overflow-y-auto px-6 py-4" }, bo = {
|
|
4573
4717
|
key: 1,
|
|
4574
4718
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
4575
|
-
},
|
|
4719
|
+
}, xo = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
4576
4720
|
__name: "MSideSheet",
|
|
4577
4721
|
props: {
|
|
4578
4722
|
modelValue: { type: Boolean },
|
|
@@ -4602,7 +4746,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4602
4746
|
leave: 280
|
|
4603
4747
|
}
|
|
4604
4748
|
}, {
|
|
4605
|
-
default: L(() => [t.modelValue ? (C(), l("div",
|
|
4749
|
+
default: L(() => [t.modelValue ? (C(), l("div", go, [u("div", {
|
|
4606
4750
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
4607
4751
|
onClick: d
|
|
4608
4752
|
}), u("aside", {
|
|
@@ -4615,7 +4759,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4615
4759
|
onPointermove: _,
|
|
4616
4760
|
onPointerup: b
|
|
4617
4761
|
}, null, 32),
|
|
4618
|
-
t.title || n.$slots.header ? (C(), l("div",
|
|
4762
|
+
t.title || n.$slots.header ? (C(), l("div", _o, [D(n.$slots, "header", {}, () => [u("h2", vo, A(t.title), 1)], !0), u("button", {
|
|
4619
4763
|
type: "button",
|
|
4620
4764
|
class: "flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
|
|
4621
4765
|
onClick: d
|
|
@@ -4623,16 +4767,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4623
4767
|
name: "close",
|
|
4624
4768
|
size: 20
|
|
4625
4769
|
})])])) : c("", !0),
|
|
4626
|
-
u("div",
|
|
4627
|
-
n.$slots.actions ? (C(), l("div",
|
|
4770
|
+
u("div", yo, [D(n.$slots, "default", {}, void 0, !0)]),
|
|
4771
|
+
n.$slots.actions ? (C(), l("div", bo, [D(n.$slots, "actions", {}, void 0, !0)])) : c("", !0)
|
|
4628
4772
|
], 6)])) : c("", !0)]),
|
|
4629
4773
|
_: 3
|
|
4630
4774
|
})]));
|
|
4631
4775
|
}
|
|
4632
|
-
}), [["__scopeId", "data-v-f8751672"]]),
|
|
4776
|
+
}), [["__scopeId", "data-v-f8751672"]]), So = {
|
|
4633
4777
|
key: 0,
|
|
4634
4778
|
class: "flex flex-col gap-2.5"
|
|
4635
|
-
},
|
|
4779
|
+
}, Co = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
4636
4780
|
__name: "MSkeleton",
|
|
4637
4781
|
props: {
|
|
4638
4782
|
variant: { default: "text" },
|
|
@@ -4642,7 +4786,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4642
4786
|
animation: { default: "pulse" }
|
|
4643
4787
|
},
|
|
4644
4788
|
setup(e) {
|
|
4645
|
-
return (t, r) => e.variant === "text" && e.lines > 1 ? (C(), l("div",
|
|
4789
|
+
return (t, r) => e.variant === "text" && e.lines > 1 ? (C(), l("div", So, [(C(!0), l(n, null, E(e.lines, (t) => (C(), l("div", {
|
|
4646
4790
|
key: t,
|
|
4647
4791
|
class: v(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
4648
4792
|
style: y({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -4655,21 +4799,21 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4655
4799
|
})
|
|
4656
4800
|
}, null, 6));
|
|
4657
4801
|
}
|
|
4658
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
4802
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), wo = { class: "flex flex-col gap-1 select-none" }, To = {
|
|
4659
4803
|
key: 0,
|
|
4660
4804
|
class: "flex items-center justify-between"
|
|
4661
|
-
},
|
|
4805
|
+
}, Eo = {
|
|
4662
4806
|
key: 0,
|
|
4663
4807
|
class: "text-label-large text-on-surface"
|
|
4664
|
-
},
|
|
4808
|
+
}, Do = {
|
|
4665
4809
|
key: 1,
|
|
4666
4810
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
4667
|
-
},
|
|
4811
|
+
}, Oo = [
|
|
4668
4812
|
"aria-valuenow",
|
|
4669
4813
|
"aria-valuemin",
|
|
4670
4814
|
"aria-valuemax",
|
|
4671
4815
|
"aria-disabled"
|
|
4672
|
-
],
|
|
4816
|
+
], ko = /* @__PURE__ */ m({
|
|
4673
4817
|
__name: "MSlider",
|
|
4674
4818
|
props: {
|
|
4675
4819
|
modelValue: {},
|
|
@@ -4751,7 +4895,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4751
4895
|
transform: `translateX(-50%) translateY(-50%) scale(${a.value ? 1.15 : 1})`,
|
|
4752
4896
|
transition: a.value ? "transform 80ms ease" : "left 75ms ease, transform 80ms ease"
|
|
4753
4897
|
}));
|
|
4754
|
-
return (t, n) => (C(), l("div",
|
|
4898
|
+
return (t, n) => (C(), l("div", wo, [e.label || e.showValue ? (C(), l("div", To, [e.label ? (C(), l("span", Eo, A(e.label), 1)) : c("", !0), e.showValue ? (C(), l("span", Do, A(e.modelValue), 1)) : c("", !0)])) : c("", !0), u("div", {
|
|
4755
4899
|
ref_key: "trackEl",
|
|
4756
4900
|
ref: i,
|
|
4757
4901
|
role: "slider",
|
|
@@ -4772,9 +4916,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4772
4916
|
}, null, 6)], 2), u("div", {
|
|
4773
4917
|
class: v(["pointer-events-none absolute h-5 w-5 rounded-full shadow-elevation-1", d[e.color].thumb]),
|
|
4774
4918
|
style: y(x.value)
|
|
4775
|
-
}, null, 6)], 42,
|
|
4919
|
+
}, null, 6)], 42, Oo)]));
|
|
4776
4920
|
}
|
|
4777
|
-
}),
|
|
4921
|
+
}), Ao = { class: "flex-1 text-body-medium leading-snug" }, jo = { class: "flex shrink-0 items-center gap-0.5" }, Mo = ["onClick"], No = ["onClick"], Po = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
4778
4922
|
__name: "MSnackbar",
|
|
4779
4923
|
setup(t) {
|
|
4780
4924
|
let { toasts: r, position: i, dismiss: s } = ce(), d = o(() => i.value.startsWith("top")), f = o(() => {
|
|
@@ -4831,15 +4975,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4831
4975
|
size: 20,
|
|
4832
4976
|
class: v(["shrink-0", h(t.variant).icon])
|
|
4833
4977
|
}, null, 8, ["name", "class"]),
|
|
4834
|
-
u("p",
|
|
4835
|
-
u("div",
|
|
4978
|
+
u("p", Ao, A(t.message), 1),
|
|
4979
|
+
u("div", jo, [t.action ? (C(), l("button", {
|
|
4836
4980
|
key: 0,
|
|
4837
4981
|
type: "button",
|
|
4838
4982
|
class: v(["cursor-pointer rounded px-2 py-1 text-label-medium font-semibold transition-colors", h(t.variant).action]),
|
|
4839
4983
|
onClick: () => {
|
|
4840
4984
|
t.action.onClick(), j(s)(t.id);
|
|
4841
4985
|
}
|
|
4842
|
-
}, A(t.action.label), 11,
|
|
4986
|
+
}, A(t.action.label), 11, Mo)) : c("", !0), u("button", {
|
|
4843
4987
|
type: "button",
|
|
4844
4988
|
class: v(["flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-colors", h(t.variant).close]),
|
|
4845
4989
|
"aria-label": "Cerrar",
|
|
@@ -4847,7 +4991,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4847
4991
|
}, [p(e, {
|
|
4848
4992
|
name: "close",
|
|
4849
4993
|
size: 18
|
|
4850
|
-
})], 10,
|
|
4994
|
+
})], 10, No)]),
|
|
4851
4995
|
t.duration > 0 ? (C(), l("div", {
|
|
4852
4996
|
key: 0,
|
|
4853
4997
|
class: v(["absolute right-0 bottom-0 left-0 h-0.5 origin-left", h(t.variant).progress]),
|
|
@@ -4857,7 +5001,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4857
5001
|
_: 1
|
|
4858
5002
|
}, 8, ["name"])], 2));
|
|
4859
5003
|
}
|
|
4860
|
-
}), [["__scopeId", "data-v-e83a5c10"]]),
|
|
5004
|
+
}), [["__scopeId", "data-v-e83a5c10"]]), Fo = /* @__PURE__ */ m({
|
|
4861
5005
|
__name: "MSplitter",
|
|
4862
5006
|
props: {
|
|
4863
5007
|
direction: { default: "horizontal" },
|
|
@@ -4892,9 +5036,11 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4892
5036
|
}, [D(e.$slots, "first")], 4),
|
|
4893
5037
|
u("div", {
|
|
4894
5038
|
class: v(["z-10 flex shrink-0 items-center justify-center transition-colors", [a.value ? "w-2 cursor-col-resize flex-col" : "h-2 cursor-row-resize flex-row", r.value ? "bg-primary/20" : "bg-outline-variant/40 hover:bg-primary/12"]]),
|
|
5039
|
+
style: { "touch-action": "none" },
|
|
4895
5040
|
onPointerdown: d,
|
|
4896
5041
|
onPointermove: f,
|
|
4897
|
-
onPointerup: p
|
|
5042
|
+
onPointerup: p,
|
|
5043
|
+
onPointercancel: p
|
|
4898
5044
|
}, [u("div", { class: v(["rounded-full bg-outline", a.value ? "h-6 w-1" : "h-1 w-6"]) }, null, 2)], 34),
|
|
4899
5045
|
u("div", {
|
|
4900
5046
|
class: "overflow-auto",
|
|
@@ -4902,26 +5048,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4902
5048
|
}, [D(e.$slots, "second")], 4)
|
|
4903
5049
|
], 2));
|
|
4904
5050
|
}
|
|
4905
|
-
}),
|
|
5051
|
+
}), Io = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Lo = { class: "flex items-center gap-3 px-5 py-1" }, Ro = ["placeholder"], zo = {
|
|
4906
5052
|
key: 0,
|
|
4907
5053
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
4908
|
-
},
|
|
5054
|
+
}, Bo = {
|
|
4909
5055
|
key: 0,
|
|
4910
5056
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
4911
|
-
},
|
|
5057
|
+
}, Vo = [
|
|
4912
5058
|
"data-spot-active",
|
|
4913
5059
|
"onClick",
|
|
4914
5060
|
"onPointerenter"
|
|
4915
|
-
],
|
|
5061
|
+
], Ho = {
|
|
4916
5062
|
key: 0,
|
|
4917
5063
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
4918
|
-
},
|
|
5064
|
+
}, Uo = { class: "min-w-0 flex-1" }, Wo = { class: "truncate text-body-medium text-on-surface" }, Go = {
|
|
4919
5065
|
key: 0,
|
|
4920
5066
|
class: "truncate text-body-small text-on-surface-variant"
|
|
4921
|
-
},
|
|
5067
|
+
}, Ko = {
|
|
4922
5068
|
key: 1,
|
|
4923
5069
|
class: "flex flex-col items-center gap-2 py-10"
|
|
4924
|
-
},
|
|
5070
|
+
}, qo = { class: "text-body-medium text-on-surface-variant" }, Jo = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
4925
5071
|
__name: "MSpotlightSearch",
|
|
4926
5072
|
props: {
|
|
4927
5073
|
modelValue: { type: Boolean },
|
|
@@ -4982,8 +5128,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4982
5128
|
key: 0,
|
|
4983
5129
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
4984
5130
|
onClick: B(O, ["self"])
|
|
4985
|
-
}, [u("div",
|
|
4986
|
-
u("div",
|
|
5131
|
+
}, [u("div", Io, [
|
|
5132
|
+
u("div", Lo, [
|
|
4987
5133
|
p(e, {
|
|
4988
5134
|
name: "search",
|
|
4989
5135
|
size: 24,
|
|
@@ -4997,7 +5143,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
4997
5143
|
placeholder: t.placeholder,
|
|
4998
5144
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
4999
5145
|
onKeydown: M
|
|
5000
|
-
}, null, 40,
|
|
5146
|
+
}, null, 40, Ro), [[P, h.value]]),
|
|
5001
5147
|
t.loading ? (C(), s(Be, {
|
|
5002
5148
|
key: 0,
|
|
5003
5149
|
size: 20,
|
|
@@ -5012,7 +5158,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5012
5158
|
size: 18
|
|
5013
5159
|
})])) : c("", !0)
|
|
5014
5160
|
]),
|
|
5015
|
-
w.value ? (C(), l("div",
|
|
5161
|
+
w.value ? (C(), l("div", zo, [t.results.length ? (C(!0), l(n, { key: 0 }, E(D.value, ([r, i]) => (C(), l(n, { key: r }, [r ? (C(), l("p", Bo, A(r), 1)) : c("", !0), (C(!0), l(n, null, E(i, (n) => (C(), l("button", {
|
|
5016
5162
|
key: n.id,
|
|
5017
5163
|
type: "button",
|
|
5018
5164
|
"data-spot-active": t.results.indexOf(n) === g.value || void 0,
|
|
@@ -5020,22 +5166,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5020
5166
|
onClick: (e) => k(n),
|
|
5021
5167
|
onPointerenter: (e) => g.value = t.results.indexOf(n)
|
|
5022
5168
|
}, [
|
|
5023
|
-
n.icon ? (C(), l("div",
|
|
5169
|
+
n.icon ? (C(), l("div", Ho, [p(e, {
|
|
5024
5170
|
name: n.icon,
|
|
5025
5171
|
size: 20,
|
|
5026
5172
|
class: "text-on-primary-container"
|
|
5027
5173
|
}, null, 8, ["name"])])) : c("", !0),
|
|
5028
|
-
u("div",
|
|
5174
|
+
u("div", Uo, [u("p", Wo, A(n.title), 1), n.description ? (C(), l("p", Go, A(n.description), 1)) : c("", !0)]),
|
|
5029
5175
|
p(e, {
|
|
5030
5176
|
name: "arrow_forward",
|
|
5031
5177
|
size: 16,
|
|
5032
5178
|
class: "shrink-0 text-on-surface-variant/40"
|
|
5033
5179
|
})
|
|
5034
|
-
], 42,
|
|
5180
|
+
], 42, Vo))), 128))], 64))), 128)) : t.loading ? c("", !0) : (C(), l("div", Ko, [p(e, {
|
|
5035
5181
|
name: "search_off",
|
|
5036
5182
|
size: 40,
|
|
5037
5183
|
class: "text-on-surface-variant/40"
|
|
5038
|
-
}), u("p",
|
|
5184
|
+
}), u("p", qo, A(t.noResultsText), 1)]))])) : c("", !0),
|
|
5039
5185
|
o[2] ||= u("div", { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, [
|
|
5040
5186
|
u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓"), f(" navegar ")]),
|
|
5041
5187
|
u("span", { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, [u("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵"), f(" abrir ")]),
|
|
@@ -5045,7 +5191,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5045
5191
|
_: 1
|
|
5046
5192
|
})]));
|
|
5047
5193
|
}
|
|
5048
|
-
}), [["__scopeId", "data-v-51b103ff"]]),
|
|
5194
|
+
}), [["__scopeId", "data-v-51b103ff"]]), Yo = /* @__PURE__ */ m({
|
|
5049
5195
|
__name: "MStack",
|
|
5050
5196
|
props: {
|
|
5051
5197
|
direction: { default: "column" },
|
|
@@ -5100,19 +5246,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5100
5246
|
role: "separator"
|
|
5101
5247
|
}, null, 2)) : c("", !0), (C(), s(k(e)))], 64))), 128)) : D(t.$slots, "default", { key: 1 })], 2));
|
|
5102
5248
|
}
|
|
5103
|
-
}),
|
|
5249
|
+
}), Xo = { class: "flex flex-col gap-3 rounded-lg border border-outline-variant bg-surface-container-lowest p-5" }, Zo = { class: "flex items-start justify-between" }, Qo = { class: "flex flex-col gap-1" }, $o = { class: "text-label-large text-on-surface-variant" }, es = {
|
|
5104
5250
|
key: 0,
|
|
5105
5251
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
5106
|
-
},
|
|
5252
|
+
}, ts = {
|
|
5107
5253
|
key: 1,
|
|
5108
5254
|
class: "text-headline-medium font-medium text-on-surface"
|
|
5109
|
-
},
|
|
5255
|
+
}, ns = {
|
|
5110
5256
|
key: 0,
|
|
5111
5257
|
class: "flex items-center gap-2"
|
|
5112
|
-
},
|
|
5258
|
+
}, rs = {
|
|
5113
5259
|
key: 1,
|
|
5114
5260
|
class: "text-label-medium text-on-surface-variant"
|
|
5115
|
-
},
|
|
5261
|
+
}, is = /* @__PURE__ */ m({
|
|
5116
5262
|
__name: "MStatCard",
|
|
5117
5263
|
props: {
|
|
5118
5264
|
title: {},
|
|
@@ -5131,13 +5277,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5131
5277
|
error: "bg-error-container text-on-error-container",
|
|
5132
5278
|
success: "bg-success-container text-on-success-container"
|
|
5133
5279
|
}, i = o(() => n.trend == null ? "" : n.trend > 0 ? "text-success" : n.trend < 0 ? "text-error" : "text-on-surface-variant"), a = o(() => n.trend == null ? "" : n.trend > 0 ? "trending_up" : n.trend < 0 ? "trending_down" : "trending_flat");
|
|
5134
|
-
return (n, o) => (C(), l("div",
|
|
5280
|
+
return (n, o) => (C(), l("div", Xo, [u("div", Zo, [u("div", Qo, [u("span", $o, A(t.title), 1), t.loading ? (C(), l("div", es)) : (C(), l("span", ts, A(t.value), 1))]), t.icon ? (C(), l("div", {
|
|
5135
5281
|
key: 0,
|
|
5136
5282
|
class: v(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", r[t.color]])
|
|
5137
5283
|
}, [p(e, {
|
|
5138
5284
|
name: t.icon,
|
|
5139
5285
|
size: 24
|
|
5140
|
-
}, null, 8, ["name"])], 2)) : c("", !0)]), t.trend != null || t.trendLabel || n.$slots.footer ? (C(), l("div",
|
|
5286
|
+
}, null, 8, ["name"])], 2)) : c("", !0)]), t.trend != null || t.trendLabel || n.$slots.footer ? (C(), l("div", ns, [
|
|
5141
5287
|
t.trend == null ? c("", !0) : (C(), l("span", {
|
|
5142
5288
|
key: 0,
|
|
5143
5289
|
class: v(["inline-flex items-center gap-0.5 text-label-medium font-medium", i.value])
|
|
@@ -5145,35 +5291,35 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5145
5291
|
name: a.value,
|
|
5146
5292
|
size: 16
|
|
5147
5293
|
}, null, 8, ["name"]), f(" " + A(t.trend > 0 ? "+" : "") + A(t.trend) + "% ", 1)], 2)),
|
|
5148
|
-
t.trendLabel ? (C(), l("span",
|
|
5294
|
+
t.trendLabel ? (C(), l("span", rs, A(t.trendLabel), 1)) : c("", !0),
|
|
5149
5295
|
D(n.$slots, "footer")
|
|
5150
5296
|
])) : c("", !0)]));
|
|
5151
5297
|
}
|
|
5152
|
-
}),
|
|
5298
|
+
}), as = {
|
|
5153
5299
|
key: 0,
|
|
5154
5300
|
class: "flex w-full items-start"
|
|
5155
|
-
},
|
|
5301
|
+
}, os = ["onClick"], ss = { key: 3 }, cs = { class: "flex flex-col items-center text-center" }, ls = {
|
|
5156
5302
|
key: 0,
|
|
5157
5303
|
class: "text-body-small text-on-surface-variant"
|
|
5158
|
-
},
|
|
5304
|
+
}, us = {
|
|
5159
5305
|
key: 1,
|
|
5160
5306
|
class: "text-body-small text-on-surface-variant"
|
|
5161
|
-
},
|
|
5307
|
+
}, ds = {
|
|
5162
5308
|
key: 0,
|
|
5163
5309
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
5164
|
-
},
|
|
5310
|
+
}, fs = {
|
|
5165
5311
|
key: 1,
|
|
5166
5312
|
class: "flex flex-col"
|
|
5167
|
-
},
|
|
5313
|
+
}, ps = { class: "flex flex-col items-center" }, ms = ["onClick"], hs = { key: 3 }, gs = ["onClick"], _s = {
|
|
5168
5314
|
key: 0,
|
|
5169
5315
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
5170
|
-
},
|
|
5316
|
+
}, vs = {
|
|
5171
5317
|
key: 1,
|
|
5172
5318
|
class: "text-body-small text-on-surface-variant"
|
|
5173
|
-
},
|
|
5319
|
+
}, ys = {
|
|
5174
5320
|
key: 2,
|
|
5175
5321
|
class: "mt-3"
|
|
5176
|
-
},
|
|
5322
|
+
}, bs = /* @__PURE__ */ m({
|
|
5177
5323
|
__name: "MStepper",
|
|
5178
5324
|
props: {
|
|
5179
5325
|
steps: {},
|
|
@@ -5194,7 +5340,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5194
5340
|
function p(e) {
|
|
5195
5341
|
f.value && a("update:modelValue", e);
|
|
5196
5342
|
}
|
|
5197
|
-
return (r, i) => t.direction === "horizontal" ? (C(), l("div",
|
|
5343
|
+
return (r, i) => t.direction === "horizontal" ? (C(), l("div", as, [(C(!0), l(n, null, E(t.steps, (r, i) => (C(), l(n, { key: i }, [u("div", {
|
|
5198
5344
|
class: v(["flex flex-col items-center gap-2", f.value && d(i) !== "active" ? "cursor-pointer" : ""]),
|
|
5199
5345
|
onClick: (e) => p(i)
|
|
5200
5346
|
}, [u("div", { class: v(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -5213,18 +5359,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5213
5359
|
key: 2,
|
|
5214
5360
|
name: r.icon,
|
|
5215
5361
|
size: 20
|
|
5216
|
-
}, null, 8, ["name"])) : (C(), l("span",
|
|
5362
|
+
}, null, 8, ["name"])) : (C(), l("span", ss, A(i + 1), 1))], 2), u("div", cs, [
|
|
5217
5363
|
u("span", { class: v(["text-label-large", {
|
|
5218
5364
|
"font-medium text-on-surface": d(i) === "active" || d(i) === "completed",
|
|
5219
5365
|
"text-error": d(i) === "error",
|
|
5220
5366
|
"text-on-surface-variant": d(i) === "inactive"
|
|
5221
5367
|
}]) }, A(r.label), 3),
|
|
5222
|
-
r.description ? (C(), l("span",
|
|
5223
|
-
r.optional ? (C(), l("span",
|
|
5224
|
-
])], 10,
|
|
5368
|
+
r.description ? (C(), l("span", ls, A(r.description), 1)) : c("", !0),
|
|
5369
|
+
r.optional ? (C(), l("span", us, " Opcional ")) : c("", !0)
|
|
5370
|
+
])], 10, os), i < t.steps.length - 1 ? (C(), l("div", ds, [u("div", { class: v(["h-[1px] w-full transition-colors duration-300", i < t.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : c("", !0)], 64))), 128))])) : (C(), l("div", fs, [(C(!0), l(n, null, E(t.steps, (n, i) => (C(), l("div", {
|
|
5225
5371
|
key: i,
|
|
5226
5372
|
class: "flex gap-4"
|
|
5227
|
-
}, [u("div",
|
|
5373
|
+
}, [u("div", ps, [u("div", {
|
|
5228
5374
|
class: v(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
5229
5375
|
"bg-primary text-on-primary": d(i) === "active" || d(i) === "completed",
|
|
5230
5376
|
"bg-error text-on-error": d(i) === "error",
|
|
@@ -5243,7 +5389,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5243
5389
|
key: 2,
|
|
5244
5390
|
name: n.icon,
|
|
5245
5391
|
size: 20
|
|
5246
|
-
}, null, 8, ["name"])) : (C(), l("span",
|
|
5392
|
+
}, null, 8, ["name"])) : (C(), l("span", hs, A(i + 1), 1))], 10, ms), i < t.steps.length - 1 ? (C(), l("div", {
|
|
5247
5393
|
key: 0,
|
|
5248
5394
|
class: v(["my-1 w-[1px] flex-1 transition-colors duration-300", i < t.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
5249
5395
|
style: { "min-height": "24px" }
|
|
@@ -5256,15 +5402,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5256
5402
|
"text-error": d(i) === "error",
|
|
5257
5403
|
"text-on-surface-variant": d(i) === "inactive"
|
|
5258
5404
|
}]) }, A(n.label), 3),
|
|
5259
|
-
n.description ? (C(), l("p",
|
|
5260
|
-
n.optional ? (C(), l("p",
|
|
5261
|
-
d(i) === "active" && r.$slots[`step-${i}`] ? (C(), l("div",
|
|
5262
|
-
], 10,
|
|
5405
|
+
n.description ? (C(), l("p", _s, A(n.description), 1)) : c("", !0),
|
|
5406
|
+
n.optional ? (C(), l("p", vs, " Opcional ")) : c("", !0),
|
|
5407
|
+
d(i) === "active" && r.$slots[`step-${i}`] ? (C(), l("div", ys, [D(r.$slots, `step-${i}`)])) : c("", !0)
|
|
5408
|
+
], 10, gs)]))), 128))]));
|
|
5263
5409
|
}
|
|
5264
|
-
}),
|
|
5410
|
+
}), xs = ["checked", "disabled"], Ss = {
|
|
5265
5411
|
key: 0,
|
|
5266
5412
|
class: "text-body-large text-on-surface"
|
|
5267
|
-
},
|
|
5413
|
+
}, Cs = /* @__PURE__ */ m({
|
|
5268
5414
|
__name: "MSwitch",
|
|
5269
5415
|
props: {
|
|
5270
5416
|
modelValue: { type: Boolean },
|
|
@@ -5286,7 +5432,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5286
5432
|
checked: t.modelValue,
|
|
5287
5433
|
disabled: t.disabled,
|
|
5288
5434
|
onChange: r[0] ||= (e) => a("update:modelValue", !t.modelValue)
|
|
5289
|
-
}, null, 40,
|
|
5435
|
+
}, null, 40, xs), u("span", {
|
|
5290
5436
|
class: v(["absolute left-1 top-1/2 flex h-6 w-6 items-center justify-center rounded-full will-change-transform", t.modelValue ? "bg-on-primary shadow-sm" : "bg-outline"]),
|
|
5291
5437
|
style: y(d.value)
|
|
5292
5438
|
}, [p(i, {
|
|
@@ -5304,33 +5450,33 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5304
5450
|
class: "text-primary"
|
|
5305
5451
|
})) : c("", !0)]),
|
|
5306
5452
|
_: 1
|
|
5307
|
-
})], 6)], 2), t.label ? (C(), l("span",
|
|
5453
|
+
})], 6)], 2), t.label ? (C(), l("span", Ss, A(t.label), 1)) : c("", !0)], 2));
|
|
5308
5454
|
}
|
|
5309
|
-
}),
|
|
5455
|
+
}), ws = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Ts = {
|
|
5310
5456
|
key: 0,
|
|
5311
5457
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
5312
|
-
},
|
|
5458
|
+
}, Es = {
|
|
5313
5459
|
key: 0,
|
|
5314
5460
|
class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30 transition-[border-color,box-shadow] duration-150"
|
|
5315
|
-
},
|
|
5461
|
+
}, Ds = {
|
|
5316
5462
|
key: 0,
|
|
5317
5463
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
5318
|
-
},
|
|
5464
|
+
}, Os = { class: "overflow-x-auto" }, ks = { class: "w-full border-collapse" }, As = { class: "bg-surface-container-high" }, js = {
|
|
5319
5465
|
key: 0,
|
|
5320
5466
|
class: "w-12 px-4 py-3"
|
|
5321
|
-
},
|
|
5467
|
+
}, Ms = ["onClick"], Ns = { class: "inline-flex items-center gap-1" }, Ps = {
|
|
5322
5468
|
key: 0,
|
|
5323
5469
|
class: "inline-flex"
|
|
5324
|
-
},
|
|
5470
|
+
}, Fs = {
|
|
5325
5471
|
key: 1,
|
|
5326
5472
|
class: "w-1 px-4 py-3"
|
|
5327
|
-
},
|
|
5473
|
+
}, Is = {
|
|
5328
5474
|
key: 0,
|
|
5329
5475
|
class: "px-4 py-3.5"
|
|
5330
|
-
},
|
|
5476
|
+
}, Ls = {
|
|
5331
5477
|
key: 1,
|
|
5332
5478
|
class: "px-4 py-3.5"
|
|
5333
|
-
},
|
|
5479
|
+
}, Rs = { key: 1 }, zs = ["colspan"], Bs = { class: "text-body-medium text-on-surface-variant" }, Vs = ["onClick"], Hs = ["onClick"], Us = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Ws = /* @__PURE__ */ m({
|
|
5334
5480
|
__name: "MTable",
|
|
5335
5481
|
props: {
|
|
5336
5482
|
columns: {},
|
|
@@ -5468,9 +5614,9 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5468
5614
|
return `${a[(e * 3 + t) % a.length]}%`;
|
|
5469
5615
|
}
|
|
5470
5616
|
let ee = N(), X = o(() => !!ee["row-actions"]);
|
|
5471
|
-
return (r, a) => (C(), l("div",
|
|
5472
|
-
t.searchable || r.$slots.toolbar ? (C(), l("div",
|
|
5473
|
-
t.searchable ? (C(), l("div",
|
|
5617
|
+
return (r, a) => (C(), l("div", ws, [
|
|
5618
|
+
t.searchable || r.$slots.toolbar ? (C(), l("div", Ts, [
|
|
5619
|
+
t.searchable ? (C(), l("div", Es, [
|
|
5474
5620
|
p(e, {
|
|
5475
5621
|
name: "search",
|
|
5476
5622
|
size: 16,
|
|
@@ -5498,12 +5644,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5498
5644
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
5499
5645
|
"leave-to-class": "opacity-0 scale-90"
|
|
5500
5646
|
}, {
|
|
5501
|
-
default: L(() => [t.selectable && z.value.length > 0 ? (C(), l("span",
|
|
5647
|
+
default: L(() => [t.selectable && z.value.length > 0 ? (C(), l("span", Ds, A(z.value.length) + " seleccionado" + A(z.value.length === 1 ? "" : "s"), 1)) : c("", !0)]),
|
|
5502
5648
|
_: 1
|
|
5503
5649
|
})
|
|
5504
5650
|
])) : c("", !0),
|
|
5505
|
-
u("div",
|
|
5506
|
-
t.selectable ? (C(), l("th",
|
|
5651
|
+
u("div", Os, [u("table", ks, [u("thead", null, [u("tr", As, [
|
|
5652
|
+
t.selectable ? (C(), l("th", js, [p(Q, {
|
|
5507
5653
|
"model-value": W.value,
|
|
5508
5654
|
indeterminate: G.value,
|
|
5509
5655
|
"onUpdate:modelValue": K
|
|
@@ -5517,7 +5663,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5517
5663
|
t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
5518
5664
|
]),
|
|
5519
5665
|
onClick: (e) => t.sortable ? b(t.key) : void 0
|
|
5520
|
-
}, [u("span",
|
|
5666
|
+
}, [u("span", Ns, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", Ps, [g.value === t.key && _.value === "asc" ? (C(), s(e, {
|
|
5521
5667
|
key: 0,
|
|
5522
5668
|
name: "arrow_upward",
|
|
5523
5669
|
size: 14,
|
|
@@ -5532,13 +5678,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5532
5678
|
name: "unfold_more",
|
|
5533
5679
|
size: 14,
|
|
5534
5680
|
class: "opacity-30"
|
|
5535
|
-
}))])) : c("", !0)])], 14,
|
|
5536
|
-
X.value ? (C(), l("th",
|
|
5681
|
+
}))])) : c("", !0)])], 14, Ms))), 128)),
|
|
5682
|
+
X.value ? (C(), l("th", Fs)) : c("", !0)
|
|
5537
5683
|
])]), u("tbody", null, [t.loading ? (C(!0), l(n, { key: 0 }, E(t.perPage, (e) => (C(), l("tr", {
|
|
5538
5684
|
key: `sk-${e}`,
|
|
5539
5685
|
class: "border-t border-outline-variant"
|
|
5540
5686
|
}, [
|
|
5541
|
-
t.selectable ? (C(), l("td",
|
|
5687
|
+
t.selectable ? (C(), l("td", Is, [...a[4] ||= [u("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : c("", !0),
|
|
5542
5688
|
(C(!0), l(n, null, E(t.columns, (t, n) => (C(), l("td", {
|
|
5543
5689
|
key: t.key,
|
|
5544
5690
|
class: "px-4 py-3.5"
|
|
@@ -5546,15 +5692,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5546
5692
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
5547
5693
|
style: y({ width: Y(e, n) })
|
|
5548
5694
|
}, null, 4)]))), 128)),
|
|
5549
|
-
X.value ? (C(), l("td",
|
|
5550
|
-
]))), 128)) : j.value.length === 0 ? (C(), l("tr",
|
|
5695
|
+
X.value ? (C(), l("td", Ls, [...a[5] ||= [u("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : c("", !0)
|
|
5696
|
+
]))), 128)) : j.value.length === 0 ? (C(), l("tr", Rs, [u("td", {
|
|
5551
5697
|
colspan: t.columns.length + q.value,
|
|
5552
5698
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
5553
5699
|
}, [D(r.$slots, "empty", {}, () => [p(e, {
|
|
5554
5700
|
name: "search_off",
|
|
5555
5701
|
size: 36,
|
|
5556
5702
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
5557
|
-
}), u("p",
|
|
5703
|
+
}), u("p", Bs, A(t.emptyText), 1)])], 8, zs)])) : (C(!0), l(n, { key: 2 }, E(j.value, (e) => (C(), l("tr", {
|
|
5558
5704
|
key: V(e),
|
|
5559
5705
|
class: v([
|
|
5560
5706
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -5571,7 +5717,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5571
5717
|
}, [p(Q, {
|
|
5572
5718
|
"model-value": H(e),
|
|
5573
5719
|
"onUpdate:modelValue": (t) => U(e)
|
|
5574
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
5720
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Hs)) : c("", !0),
|
|
5575
5721
|
(C(!0), l(n, null, E(t.columns, (t) => (C(), l("td", {
|
|
5576
5722
|
key: t.key,
|
|
5577
5723
|
class: v(["px-4 py-3 text-body-medium text-on-surface", J(t.align)])
|
|
@@ -5585,8 +5731,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5585
5731
|
class: "px-4 py-3 text-right",
|
|
5586
5732
|
onClick: a[2] ||= B(() => {}, ["stop"])
|
|
5587
5733
|
}, [D(r.$slots, "row-actions", { row: e })])) : c("", !0)
|
|
5588
|
-
], 10,
|
|
5589
|
-
u("div",
|
|
5734
|
+
], 10, Vs))), 128))])])]),
|
|
5735
|
+
u("div", Us, [p(Kt, {
|
|
5590
5736
|
page: w.value,
|
|
5591
5737
|
"per-page": t.perPage,
|
|
5592
5738
|
total: k.value,
|
|
@@ -5598,16 +5744,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5598
5744
|
])])
|
|
5599
5745
|
]));
|
|
5600
5746
|
}
|
|
5601
|
-
}),
|
|
5747
|
+
}), Gs = {
|
|
5602
5748
|
key: 0,
|
|
5603
5749
|
class: "relative border-b border-outline-variant"
|
|
5604
|
-
},
|
|
5750
|
+
}, Ks = {
|
|
5605
5751
|
class: "flex overflow-x-auto",
|
|
5606
5752
|
style: { "scrollbar-width": "none" }
|
|
5607
|
-
},
|
|
5753
|
+
}, qs = ["disabled", "onClick"], Js = {
|
|
5608
5754
|
key: 1,
|
|
5609
5755
|
class: "flex flex-wrap gap-1 rounded-full bg-surface-container p-1"
|
|
5610
|
-
},
|
|
5756
|
+
}, Ys = ["disabled", "onClick"], Xs = /* @__PURE__ */ m({
|
|
5611
5757
|
__name: "MTabs",
|
|
5612
5758
|
props: {
|
|
5613
5759
|
modelValue: {},
|
|
@@ -5627,7 +5773,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5627
5773
|
function h(e) {
|
|
5628
5774
|
e.disabled || a("update:modelValue", e.value);
|
|
5629
5775
|
}
|
|
5630
|
-
return (r, i) => t.variant === "primary" ? (C(), l("div",
|
|
5776
|
+
return (r, i) => t.variant === "primary" ? (C(), l("div", Gs, [u("div", Ks, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
|
|
5631
5777
|
key: n.value,
|
|
5632
5778
|
ref_for: !0,
|
|
5633
5779
|
ref: (e) => {
|
|
@@ -5641,13 +5787,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5641
5787
|
key: 0,
|
|
5642
5788
|
name: n.icon,
|
|
5643
5789
|
size: 20
|
|
5644
|
-
}, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10,
|
|
5790
|
+
}, null, 8, ["name"])) : c("", !0), u("span", null, A(n.label), 1)], 10, qs))), 128))]), u("div", {
|
|
5645
5791
|
class: "absolute bottom-0 h-[3px] rounded-t-sm bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
|
|
5646
5792
|
style: y({
|
|
5647
5793
|
left: `${d.value}px`,
|
|
5648
5794
|
width: `${p.value}px`
|
|
5649
5795
|
})
|
|
5650
|
-
}, null, 4)])) : (C(), l("div",
|
|
5796
|
+
}, null, 4)])) : (C(), l("div", Js, [(C(!0), l(n, null, E(t.tabs, (n) => (C(), l("button", {
|
|
5651
5797
|
key: n.value,
|
|
5652
5798
|
type: "button",
|
|
5653
5799
|
class: v(["flex h-8 items-center gap-2 rounded-full px-4 text-label-large transition-all duration-150 focus-visible:outline-none", n.value === t.modelValue ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : n.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8 hover:text-on-surface"]),
|
|
@@ -5657,37 +5803,37 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5657
5803
|
key: 0,
|
|
5658
5804
|
name: n.icon,
|
|
5659
5805
|
size: 16
|
|
5660
|
-
}, null, 8, ["name"])) : c("", !0), f(" " + A(n.label), 1)], 10,
|
|
5806
|
+
}, null, 8, ["name"])) : c("", !0), f(" " + A(n.label), 1)], 10, Ys))), 128))]));
|
|
5661
5807
|
}
|
|
5662
|
-
}),
|
|
5808
|
+
}), Zs = { class: "flex flex-col gap-1" }, Qs = {
|
|
5663
5809
|
key: 0,
|
|
5664
5810
|
class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
|
|
5665
|
-
},
|
|
5811
|
+
}, $s = [
|
|
5666
5812
|
"id",
|
|
5667
5813
|
"value",
|
|
5668
5814
|
"rows",
|
|
5669
5815
|
"disabled",
|
|
5670
5816
|
"required"
|
|
5671
|
-
],
|
|
5817
|
+
], ec = [
|
|
5672
5818
|
"id",
|
|
5673
5819
|
"type",
|
|
5674
5820
|
"value",
|
|
5675
5821
|
"disabled",
|
|
5676
5822
|
"required",
|
|
5677
5823
|
"autocomplete"
|
|
5678
|
-
],
|
|
5824
|
+
], tc = ["for"], nc = {
|
|
5679
5825
|
key: 0,
|
|
5680
5826
|
class: "text-error"
|
|
5681
|
-
},
|
|
5827
|
+
}, rc = {
|
|
5682
5828
|
key: 3,
|
|
5683
5829
|
class: "absolute top-1/2 right-2 -translate-y-1/2"
|
|
5684
|
-
},
|
|
5830
|
+
}, ic = {
|
|
5685
5831
|
key: 0,
|
|
5686
5832
|
class: "px-4 text-body-small text-error"
|
|
5687
|
-
},
|
|
5833
|
+
}, ac = {
|
|
5688
5834
|
key: 1,
|
|
5689
5835
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5690
|
-
},
|
|
5836
|
+
}, oc = /* @__PURE__ */ m({
|
|
5691
5837
|
__name: "MTextField",
|
|
5692
5838
|
props: {
|
|
5693
5839
|
modelValue: {},
|
|
@@ -5748,13 +5894,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5748
5894
|
let t = e.target;
|
|
5749
5895
|
i("update:modelValue", t.value);
|
|
5750
5896
|
}
|
|
5751
|
-
return (n, r) => (C(), l("div",
|
|
5897
|
+
return (n, r) => (C(), l("div", Zs, [u("div", {
|
|
5752
5898
|
ref_key: "fieldBgEl",
|
|
5753
5899
|
ref: d,
|
|
5754
5900
|
class: v(["relative", t.variant === "outlined" ? "mt-2" : ""]),
|
|
5755
5901
|
style: y(t.variant === "outlined" ? { "--field-bg": j(m) } : void 0)
|
|
5756
5902
|
}, [
|
|
5757
|
-
t.leadingIcon ? (C(), l("div",
|
|
5903
|
+
t.leadingIcon ? (C(), l("div", Qs, [p(e, {
|
|
5758
5904
|
name: t.leadingIcon,
|
|
5759
5905
|
size: 20
|
|
5760
5906
|
}, null, 8, ["name"])])) : c("", !0),
|
|
@@ -5768,7 +5914,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5768
5914
|
placeholder: " ",
|
|
5769
5915
|
class: v(h.value),
|
|
5770
5916
|
onInput: _
|
|
5771
|
-
}, null, 42,
|
|
5917
|
+
}, null, 42, $s)) : (C(), l("input", {
|
|
5772
5918
|
key: 2,
|
|
5773
5919
|
id: j(a),
|
|
5774
5920
|
type: t.type,
|
|
@@ -5779,33 +5925,33 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5779
5925
|
placeholder: " ",
|
|
5780
5926
|
class: v(h.value),
|
|
5781
5927
|
onInput: _
|
|
5782
|
-
}, null, 42,
|
|
5928
|
+
}, null, 42, ec)),
|
|
5783
5929
|
u("label", {
|
|
5784
5930
|
for: j(a),
|
|
5785
5931
|
class: v(g.value)
|
|
5786
|
-
}, [f(A(t.label), 1), t.required ? (C(), l("span",
|
|
5787
|
-
n.$slots.trailing ? (C(), l("div",
|
|
5788
|
-
], 6), t.error ? (C(), l("p",
|
|
5932
|
+
}, [f(A(t.label), 1), t.required ? (C(), l("span", nc, "\xA0*")) : c("", !0)], 10, tc),
|
|
5933
|
+
n.$slots.trailing ? (C(), l("div", rc, [D(n.$slots, "trailing")])) : c("", !0)
|
|
5934
|
+
], 6), t.error ? (C(), l("p", ic, A(t.error), 1)) : t.hint ? (C(), l("p", ac, A(t.hint), 1)) : c("", !0)]));
|
|
5789
5935
|
}
|
|
5790
|
-
}),
|
|
5936
|
+
}), sc = { class: "flex flex-col items-center" }, cc = { class: "flex items-baseline justify-between gap-2" }, lc = { class: "text-body-large font-medium text-on-surface" }, uc = {
|
|
5791
5937
|
key: 0,
|
|
5792
5938
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
5793
|
-
},
|
|
5939
|
+
}, dc = {
|
|
5794
5940
|
key: 0,
|
|
5795
5941
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
5796
|
-
},
|
|
5942
|
+
}, fc = {
|
|
5797
5943
|
key: 1,
|
|
5798
5944
|
class: "mt-2"
|
|
5799
|
-
},
|
|
5945
|
+
}, pc = { class: "text-body-large font-medium text-on-surface" }, mc = {
|
|
5800
5946
|
key: 0,
|
|
5801
5947
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
5802
|
-
},
|
|
5948
|
+
}, hc = {
|
|
5803
5949
|
key: 1,
|
|
5804
5950
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
5805
|
-
},
|
|
5951
|
+
}, gc = { class: "flex w-14 shrink-0 flex-col items-center" }, _c = {
|
|
5806
5952
|
key: 0,
|
|
5807
5953
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
5808
|
-
},
|
|
5954
|
+
}, vc = /* @__PURE__ */ m({
|
|
5809
5955
|
__name: "MTimeline",
|
|
5810
5956
|
props: {
|
|
5811
5957
|
items: {},
|
|
@@ -5831,23 +5977,23 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5831
5977
|
class: v(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
5832
5978
|
}, [
|
|
5833
5979
|
u("div", { class: v(["flex-1", [i % 2 == 0 ? "text-right" : "text-left", t.dense ? "pb-4" : "pb-8"]]) }, [
|
|
5834
|
-
u("p",
|
|
5835
|
-
n.description ? (C(), l("p",
|
|
5836
|
-
n.date ? (C(), l("span",
|
|
5980
|
+
u("p", pc, A(n.title), 1),
|
|
5981
|
+
n.description ? (C(), l("p", mc, A(n.description), 1)) : c("", !0),
|
|
5982
|
+
n.date ? (C(), l("span", hc, A(n.date), 1)) : c("", !0)
|
|
5837
5983
|
], 2),
|
|
5838
|
-
u("div",
|
|
5984
|
+
u("div", gc, [u("div", {
|
|
5839
5985
|
class: v(["z-[1] flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3.5 w-3.5", r[n.color ?? "primary"]]]),
|
|
5840
5986
|
style: y(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
5841
5987
|
}, [n.icon ? (C(), s(e, {
|
|
5842
5988
|
key: 0,
|
|
5843
5989
|
name: n.icon,
|
|
5844
5990
|
size: 18
|
|
5845
|
-
}, null, 8, ["name"])) : c("", !0)], 6), i < t.items.length - 1 ? (C(), l("div",
|
|
5991
|
+
}, null, 8, ["name"])) : c("", !0)], 6), i < t.items.length - 1 ? (C(), l("div", _c)) : c("", !0)]),
|
|
5846
5992
|
a[0] ||= u("div", { class: "flex-1" }, null, -1)
|
|
5847
5993
|
], 2))), 128)) : (C(!0), l(n, { key: 0 }, E(t.items, (n, a) => (C(), l("div", {
|
|
5848
5994
|
key: a,
|
|
5849
5995
|
class: v(["relative flex gap-4", t.dense ? "pb-4" : "pb-8"])
|
|
5850
|
-
}, [u("div",
|
|
5996
|
+
}, [u("div", sc, [u("div", {
|
|
5851
5997
|
class: v(["z-[1] flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3 w-3", r[n.color ?? "primary"]]]),
|
|
5852
5998
|
style: y(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
5853
5999
|
}, [n.icon ? (C(), s(e, {
|
|
@@ -5859,30 +6005,30 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5859
6005
|
class: v(["w-[2px] flex-1", r[n.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
5860
6006
|
style: { "min-height": "16px" }
|
|
5861
6007
|
}, null, 2)) : c("", !0)]), u("div", { class: v([n.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
5862
|
-
u("div",
|
|
5863
|
-
n.description ? (C(), l("p",
|
|
5864
|
-
i.$slots[`item-${a}`] ? (C(), l("div",
|
|
6008
|
+
u("div", cc, [u("p", lc, A(n.title), 1), n.date ? (C(), l("span", uc, A(n.date), 1)) : c("", !0)]),
|
|
6009
|
+
n.description ? (C(), l("p", dc, A(n.description), 1)) : c("", !0),
|
|
6010
|
+
i.$slots[`item-${a}`] ? (C(), l("div", fc, [D(i.$slots, `item-${a}`, { item: n })])) : c("", !0)
|
|
5865
6011
|
], 2)], 2))), 128))], 2));
|
|
5866
6012
|
}
|
|
5867
|
-
}),
|
|
6013
|
+
}), yc = { class: "flex flex-col gap-1" }, bc = {
|
|
5868
6014
|
key: 0,
|
|
5869
6015
|
class: "flex-1 font-mono text-on-surface"
|
|
5870
|
-
},
|
|
6016
|
+
}, xc = {
|
|
5871
6017
|
key: 1,
|
|
5872
6018
|
class: "flex-1 text-on-surface-variant"
|
|
5873
|
-
},
|
|
6019
|
+
}, Sc = {
|
|
5874
6020
|
key: 0,
|
|
5875
6021
|
class: "px-4 text-body-small text-error"
|
|
5876
|
-
},
|
|
6022
|
+
}, Cc = {
|
|
5877
6023
|
key: 1,
|
|
5878
6024
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5879
|
-
},
|
|
6025
|
+
}, wc = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Tc = { class: "p-3" }, Ec = {
|
|
5880
6026
|
key: 0,
|
|
5881
6027
|
class: "grid grid-cols-6 gap-1"
|
|
5882
|
-
},
|
|
6028
|
+
}, Dc = ["onClick"], Oc = {
|
|
5883
6029
|
key: 1,
|
|
5884
6030
|
class: "grid grid-cols-6 gap-1"
|
|
5885
|
-
},
|
|
6031
|
+
}, kc = ["onClick"], Ac = /* @__PURE__ */ m({
|
|
5886
6032
|
__name: "MTimePicker",
|
|
5887
6033
|
props: {
|
|
5888
6034
|
modelValue: {},
|
|
@@ -5959,7 +6105,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5959
6105
|
e ? (_.value = "hour", O.value = D.value.h, k.value = D.value.m, H(), setTimeout(() => document.addEventListener("mousedown", U), 0)) : document.removeEventListener("mousedown", U);
|
|
5960
6106
|
}), x(() => window.addEventListener("scroll", W, !0)), S(() => {
|
|
5961
6107
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", U);
|
|
5962
|
-
}), (a, o) => (C(), l("div",
|
|
6108
|
+
}), (a, o) => (C(), l("div", yc, [
|
|
5963
6109
|
u("div", {
|
|
5964
6110
|
ref_key: "triggerEl",
|
|
5965
6111
|
ref: h,
|
|
@@ -5975,7 +6121,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5975
6121
|
size: 20,
|
|
5976
6122
|
class: "shrink-0 text-on-surface-variant"
|
|
5977
6123
|
}),
|
|
5978
|
-
V.value ? (C(), l("span",
|
|
6124
|
+
V.value ? (C(), l("span", bc, A(V.value), 1)) : (C(), l("span", xc, A(t.label || "Seleccionar hora"), 1)),
|
|
5979
6125
|
t.modelValue ? (C(), s(e, {
|
|
5980
6126
|
key: 2,
|
|
5981
6127
|
name: "close",
|
|
@@ -5987,7 +6133,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
5987
6133
|
key: 0,
|
|
5988
6134
|
class: v(["pointer-events-none absolute -top-2.5 left-3 bg-[var(--field-bg)] px-1 text-label-small transition-colors", m.value ? t.error ? "text-error" : "text-primary" : t.error ? "text-error" : "text-on-surface-variant"])
|
|
5989
6135
|
}, A(t.label), 3)) : c("", !0)], 4),
|
|
5990
|
-
t.error ? (C(), l("p",
|
|
6136
|
+
t.error ? (C(), l("p", Sc, A(t.error), 1)) : t.hint ? (C(), l("p", Cc, A(t.hint), 1)) : c("", !0),
|
|
5991
6137
|
(C(), s(r, { to: "body" }, [p(i, {
|
|
5992
6138
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
5993
6139
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -6000,7 +6146,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6000
6146
|
ref: g,
|
|
6001
6147
|
class: "fixed z-[500] w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
6002
6148
|
style: y(b.value)
|
|
6003
|
-
}, [u("div",
|
|
6149
|
+
}, [u("div", wc, [
|
|
6004
6150
|
u("button", {
|
|
6005
6151
|
type: "button",
|
|
6006
6152
|
class: v(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", _.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -6012,22 +6158,22 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6012
6158
|
class: v(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", _.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
6013
6159
|
onClick: o[2] ||= (e) => _.value = "minute"
|
|
6014
6160
|
}, A(P(k.value)), 3)
|
|
6015
|
-
]), u("div",
|
|
6161
|
+
]), u("div", Tc, [_.value === "hour" ? (C(), l("div", Ec, [(C(!0), l(n, null, E(j(M), (e) => (C(), l("button", {
|
|
6016
6162
|
key: e,
|
|
6017
6163
|
type: "button",
|
|
6018
6164
|
class: v(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === O.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
6019
6165
|
onClick: (t) => I(e)
|
|
6020
|
-
}, A(P(e)), 11,
|
|
6166
|
+
}, A(P(e)), 11, Dc))), 128))])) : (C(), l("div", Oc, [(C(!0), l(n, null, E(N.value, (e) => (C(), l("button", {
|
|
6021
6167
|
key: e,
|
|
6022
6168
|
type: "button",
|
|
6023
6169
|
class: v(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === k.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
6024
6170
|
onClick: (t) => R(e)
|
|
6025
|
-
}, A(P(e)), 11,
|
|
6171
|
+
}, A(P(e)), 11, kc))), 128))]))])], 4)) : c("", !0)]),
|
|
6026
6172
|
_: 1
|
|
6027
6173
|
})]))
|
|
6028
6174
|
]));
|
|
6029
6175
|
}
|
|
6030
|
-
}),
|
|
6176
|
+
}), jc = /* @__PURE__ */ m({
|
|
6031
6177
|
__name: "MTooltip",
|
|
6032
6178
|
props: {
|
|
6033
6179
|
text: {},
|
|
@@ -6096,13 +6242,13 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6096
6242
|
_: 1
|
|
6097
6243
|
})]))], 64));
|
|
6098
6244
|
}
|
|
6099
|
-
}),
|
|
6245
|
+
}), Mc = { class: "flex h-16 items-center gap-1 px-2" }, Nc = {
|
|
6100
6246
|
key: 2,
|
|
6101
6247
|
class: "flex-1"
|
|
6102
|
-
},
|
|
6248
|
+
}, Pc = {
|
|
6103
6249
|
key: 3,
|
|
6104
6250
|
class: "flex items-center gap-1"
|
|
6105
|
-
},
|
|
6251
|
+
}, Fc = /* @__PURE__ */ m({
|
|
6106
6252
|
__name: "MTopAppBar",
|
|
6107
6253
|
props: {
|
|
6108
6254
|
title: {},
|
|
@@ -6112,7 +6258,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6112
6258
|
},
|
|
6113
6259
|
emits: ["navigation"],
|
|
6114
6260
|
setup(e) {
|
|
6115
|
-
return (t, n) => (C(), l("header", { class: v(["flex w-full flex-col bg-surface transition-shadow", e.elevated ? "shadow-elevation-2" : ""]) }, [u("div",
|
|
6261
|
+
return (t, n) => (C(), l("header", { class: v(["flex w-full flex-col bg-surface transition-shadow", e.elevated ? "shadow-elevation-2" : ""]) }, [u("div", Mc, [
|
|
6116
6262
|
e.navigationIcon ? (C(), s(Z, {
|
|
6117
6263
|
key: 0,
|
|
6118
6264
|
icon: e.navigationIcon,
|
|
@@ -6122,17 +6268,14 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6122
6268
|
e.variant === "center" || e.variant === "small" ? (C(), l("h1", {
|
|
6123
6269
|
key: 1,
|
|
6124
6270
|
class: v(["flex-1 truncate px-2 text-title-large text-on-surface", e.variant === "center" ? "text-center" : ""])
|
|
6125
|
-
}, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)) : (C(), l("div",
|
|
6126
|
-
t.$slots.actions ? (C(), l("div",
|
|
6271
|
+
}, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)) : (C(), l("div", Nc)),
|
|
6272
|
+
t.$slots.actions ? (C(), l("div", Pc, [D(t.$slots, "actions")])) : c("", !0)
|
|
6127
6273
|
]), e.variant === "medium" || e.variant === "large" ? (C(), l("div", {
|
|
6128
6274
|
key: 0,
|
|
6129
6275
|
class: v(["px-4 pb-6", e.variant === "large" ? "pt-4" : "pt-1"])
|
|
6130
6276
|
}, [u("h1", { class: v(["text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [D(t.$slots, "title", {}, () => [f(A(e.title), 1)])], 2)], 2)) : c("", !0)], 2));
|
|
6131
6277
|
}
|
|
6132
|
-
}),
|
|
6133
|
-
key: 0,
|
|
6134
|
-
class: "fixed inset-0 z-[100]"
|
|
6135
|
-
}, Fc = { class: "mb-2 flex items-center justify-between" }, Ic = { class: "text-label-small text-on-surface-variant" }, Lc = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Rc = { class: "mb-4 text-body-medium text-on-surface-variant" }, zc = { class: "mb-4 flex justify-center gap-1.5" }, Bc = { class: "flex justify-between" }, Vc = { key: 1 }, Hc = /* @__PURE__ */ m({
|
|
6278
|
+
}), Ic = { class: "mb-2 flex items-center justify-between" }, Lc = { class: "text-label-small text-on-surface-variant" }, Rc = { class: "mb-1 text-title-medium font-medium text-on-surface" }, zc = { class: "mb-4 text-body-medium text-on-surface-variant" }, Bc = { class: "mb-4 flex justify-center gap-1.5" }, Vc = { class: "flex justify-between" }, Hc = { key: 1 }, Uc = /* @__PURE__ */ m({
|
|
6136
6279
|
__name: "MTour",
|
|
6137
6280
|
props: {
|
|
6138
6281
|
modelValue: { type: Boolean },
|
|
@@ -6150,7 +6293,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6150
6293
|
behavior: "smooth",
|
|
6151
6294
|
block: "center"
|
|
6152
6295
|
});
|
|
6153
|
-
let r = {
|
|
6296
|
+
let r = {}, i = { position: "absolute" };
|
|
6154
6297
|
switch (n) {
|
|
6155
6298
|
case "bottom":
|
|
6156
6299
|
r.top = `${t.bottom + 12}px`, r.left = `${t.left + t.width / 2}px`, r.transform = "translateX(-50%)", i.top = "-8px", i.left = "50%", i.transform = "translateX(-50%)", i.borderBottom = "8px solid var(--color-surface-container-high)", i.borderLeft = "8px solid transparent", i.borderRight = "8px solid transparent";
|
|
@@ -6189,18 +6332,23 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6189
6332
|
}), F(() => d.modelValue, (e) => {
|
|
6190
6333
|
e || M();
|
|
6191
6334
|
}), b(M), (a, o) => (C(), s(r, { to: "body" }, [p(i, { name: "m3-tour" }, {
|
|
6192
|
-
default: L(() => [t.modelValue && w.value ? (C(), l("div",
|
|
6193
|
-
|
|
6335
|
+
default: L(() => [t.modelValue && w.value ? (C(), l("div", {
|
|
6336
|
+
key: 0,
|
|
6337
|
+
class: "fixed inset-0 z-[200] bg-black/40",
|
|
6194
6338
|
onClick: I
|
|
6195
|
-
})
|
|
6196
|
-
|
|
6339
|
+
})) : c("", !0)]),
|
|
6340
|
+
_: 1
|
|
6341
|
+
}), p(i, { name: "m3-tour" }, {
|
|
6342
|
+
default: L(() => [t.modelValue && w.value ? (C(), l("div", {
|
|
6343
|
+
key: 0,
|
|
6344
|
+
class: "fixed z-[202] w-80 rounded-xl bg-surface-container-high p-5 shadow-elevation-3",
|
|
6197
6345
|
style: y(g.value)
|
|
6198
6346
|
}, [
|
|
6199
6347
|
u("div", {
|
|
6200
6348
|
class: "h-0 w-0",
|
|
6201
6349
|
style: y(x.value)
|
|
6202
6350
|
}, null, 4),
|
|
6203
|
-
u("div",
|
|
6351
|
+
u("div", Ic, [u("span", Lc, A(h.value + 1) + " / " + A(t.steps.length), 1), u("button", {
|
|
6204
6352
|
type: "button",
|
|
6205
6353
|
class: "flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
|
|
6206
6354
|
onClick: I
|
|
@@ -6208,46 +6356,46 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6208
6356
|
name: "close",
|
|
6209
6357
|
size: 16
|
|
6210
6358
|
})])]),
|
|
6211
|
-
u("h3",
|
|
6212
|
-
u("p",
|
|
6213
|
-
u("div",
|
|
6359
|
+
u("h3", Rc, A(w.value.title), 1),
|
|
6360
|
+
u("p", zc, A(w.value.content), 1),
|
|
6361
|
+
u("div", Bc, [(C(!0), l(n, null, E(t.steps, (e, t) => (C(), l("div", {
|
|
6214
6362
|
key: t,
|
|
6215
6363
|
class: v(["h-1.5 rounded-full transition-all duration-200", t === h.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
6216
6364
|
}, null, 2))), 128))]),
|
|
6217
|
-
u("div",
|
|
6365
|
+
u("div", Vc, [D.value ? (C(), l("span", Hc)) : (C(), s(He, {
|
|
6218
6366
|
key: 0,
|
|
6219
6367
|
variant: "text",
|
|
6220
6368
|
onClick: P
|
|
6221
6369
|
}, {
|
|
6222
6370
|
default: L(() => [...o[0] ||= [f(" Anterior ", -1)]]),
|
|
6223
6371
|
_: 1
|
|
6224
|
-
})), p(
|
|
6372
|
+
})), p(He, { onClick: N }, {
|
|
6225
6373
|
default: L(() => [f(A(O.value ? "Finalizar" : "Siguiente"), 1)]),
|
|
6226
6374
|
_: 1
|
|
6227
6375
|
})])
|
|
6228
|
-
], 4)
|
|
6376
|
+
], 4)) : c("", !0)]),
|
|
6229
6377
|
_: 1
|
|
6230
6378
|
})]));
|
|
6231
6379
|
}
|
|
6232
|
-
}),
|
|
6380
|
+
}), Wc = { class: "flex items-stretch gap-2" }, Gc = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Kc = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, qc = { class: "text-label-large font-medium text-on-surface" }, Jc = { class: "text-label-small text-on-surface-variant" }, Yc = {
|
|
6233
6381
|
key: 0,
|
|
6234
6382
|
class: "border-b border-outline-variant px-3 py-2"
|
|
6235
|
-
},
|
|
6383
|
+
}, Xc = {
|
|
6236
6384
|
class: "flex-1 overflow-y-auto",
|
|
6237
6385
|
style: { "max-height": "240px" }
|
|
6238
|
-
},
|
|
6386
|
+
}, Zc = ["onClick"], Qc = { class: "flex-1 truncate text-body-medium text-on-surface" }, $c = {
|
|
6239
6387
|
key: 0,
|
|
6240
6388
|
class: "px-3 py-4 text-center text-body-small text-on-surface-variant"
|
|
6241
|
-
},
|
|
6389
|
+
}, el = { class: "flex flex-col items-center justify-center gap-1" }, tl = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, nl = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, rl = { class: "text-label-large font-medium text-on-surface" }, il = { class: "text-label-small text-on-surface-variant" }, al = {
|
|
6242
6390
|
key: 0,
|
|
6243
6391
|
class: "border-b border-outline-variant px-3 py-2"
|
|
6244
|
-
},
|
|
6392
|
+
}, ol = {
|
|
6245
6393
|
class: "flex-1 overflow-y-auto",
|
|
6246
6394
|
style: { "max-height": "240px" }
|
|
6247
|
-
},
|
|
6395
|
+
}, sl = ["onClick"], cl = { class: "flex-1 truncate text-body-medium text-on-surface" }, ll = {
|
|
6248
6396
|
key: 0,
|
|
6249
6397
|
class: "px-3 py-4 text-center text-body-small text-on-surface-variant"
|
|
6250
|
-
},
|
|
6398
|
+
}, ul = /* @__PURE__ */ m({
|
|
6251
6399
|
__name: "MTransferList",
|
|
6252
6400
|
props: {
|
|
6253
6401
|
modelValue: {},
|
|
@@ -6299,16 +6447,16 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6299
6447
|
let e = _.value.map((e) => e.value);
|
|
6300
6448
|
a("update:modelValue", i.modelValue.filter((t) => !new Set(e).has(t))), f.value = /* @__PURE__ */ new Set();
|
|
6301
6449
|
}
|
|
6302
|
-
return (r, i) => (C(), l("div",
|
|
6303
|
-
u("div",
|
|
6304
|
-
u("div",
|
|
6305
|
-
t.filterable ? (C(), l("div",
|
|
6450
|
+
return (r, i) => (C(), l("div", Wc, [
|
|
6451
|
+
u("div", Gc, [
|
|
6452
|
+
u("div", Kc, [u("span", qc, A(t.sourceTitle), 1), u("span", Jc, A(g.value.length), 1)]),
|
|
6453
|
+
t.filterable ? (C(), l("div", Yc, [R(u("input", {
|
|
6306
6454
|
"onUpdate:modelValue": i[0] ||= (e) => m.value = e,
|
|
6307
6455
|
type: "text",
|
|
6308
6456
|
placeholder: "Buscar...",
|
|
6309
6457
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
6310
6458
|
}, null, 512), [[P, m.value]])])) : c("", !0),
|
|
6311
|
-
u("div",
|
|
6459
|
+
u("div", Xc, [(C(!0), l(n, null, E(g.value, (t) => (C(), l("button", {
|
|
6312
6460
|
key: t.value,
|
|
6313
6461
|
type: "button",
|
|
6314
6462
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -6324,10 +6472,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6324
6472
|
size: 18,
|
|
6325
6473
|
class: "shrink-0 text-on-surface-variant"
|
|
6326
6474
|
}, null, 8, ["name"])) : c("", !0),
|
|
6327
|
-
u("span",
|
|
6328
|
-
], 8,
|
|
6475
|
+
u("span", Qc, A(t.label), 1)
|
|
6476
|
+
], 8, Zc))), 128)), g.value.length ? c("", !0) : (C(), l("p", $c, " Sin elementos "))])
|
|
6329
6477
|
]),
|
|
6330
|
-
u("div",
|
|
6478
|
+
u("div", el, [
|
|
6331
6479
|
p(Z, {
|
|
6332
6480
|
icon: "keyboard_double_arrow_right",
|
|
6333
6481
|
label: "Mover todos a la derecha",
|
|
@@ -6359,15 +6507,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6359
6507
|
onClick: w
|
|
6360
6508
|
}, null, 8, ["disabled"])
|
|
6361
6509
|
]),
|
|
6362
|
-
u("div",
|
|
6363
|
-
u("div",
|
|
6364
|
-
t.filterable ? (C(), l("div",
|
|
6510
|
+
u("div", tl, [
|
|
6511
|
+
u("div", nl, [u("span", rl, A(t.targetTitle), 1), u("span", il, A(_.value.length), 1)]),
|
|
6512
|
+
t.filterable ? (C(), l("div", al, [R(u("input", {
|
|
6365
6513
|
"onUpdate:modelValue": i[1] ||= (e) => h.value = e,
|
|
6366
6514
|
type: "text",
|
|
6367
6515
|
placeholder: "Buscar...",
|
|
6368
6516
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
6369
6517
|
}, null, 512), [[P, h.value]])])) : c("", !0),
|
|
6370
|
-
u("div",
|
|
6518
|
+
u("div", ol, [(C(!0), l(n, null, E(_.value, (t) => (C(), l("button", {
|
|
6371
6519
|
key: t.value,
|
|
6372
6520
|
type: "button",
|
|
6373
6521
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -6383,18 +6531,18 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6383
6531
|
size: 18,
|
|
6384
6532
|
class: "shrink-0 text-on-surface-variant"
|
|
6385
6533
|
}, null, 8, ["name"])) : c("", !0),
|
|
6386
|
-
u("span",
|
|
6387
|
-
], 8,
|
|
6534
|
+
u("span", cl, A(t.label), 1)
|
|
6535
|
+
], 8, sl))), 128)), _.value.length ? c("", !0) : (C(), l("p", ll, " Sin elementos "))])
|
|
6388
6536
|
])
|
|
6389
6537
|
]));
|
|
6390
6538
|
}
|
|
6391
|
-
}),
|
|
6539
|
+
}), dl = ["aria-expanded", "aria-selected"], fl = { class: "flex w-6 shrink-0 items-center justify-center" }, pl = ["disabled"], ml = {
|
|
6392
6540
|
key: 2,
|
|
6393
6541
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
6394
|
-
},
|
|
6542
|
+
}, hl = {
|
|
6395
6543
|
key: 0,
|
|
6396
6544
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
6397
|
-
},
|
|
6545
|
+
}, gl = /* @__PURE__ */ m({
|
|
6398
6546
|
__name: "_MTreeNode",
|
|
6399
6547
|
props: {
|
|
6400
6548
|
node: {},
|
|
@@ -6439,7 +6587,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6439
6587
|
]),
|
|
6440
6588
|
onClick: T
|
|
6441
6589
|
}, [
|
|
6442
|
-
u("div",
|
|
6590
|
+
u("div", fl, [m.value ? (C(), l("button", {
|
|
6443
6591
|
key: 0,
|
|
6444
6592
|
type: "button",
|
|
6445
6593
|
class: v(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", _.value ? "rotate-90" : ""]),
|
|
@@ -6448,7 +6596,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6448
6596
|
}, [p(e, {
|
|
6449
6597
|
name: "chevron_right",
|
|
6450
6598
|
size: 16
|
|
6451
|
-
})], 10,
|
|
6599
|
+
})], 10, pl)) : c("", !0)]),
|
|
6452
6600
|
j(a).checkable.value ? (C(), l("div", {
|
|
6453
6601
|
key: 0,
|
|
6454
6602
|
class: "shrink-0",
|
|
@@ -6470,7 +6618,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6470
6618
|
class: v(["shrink-0 transition-colors", y.value ? "text-primary" : "text-on-surface-variant"])
|
|
6471
6619
|
}, null, 8, ["name", "class"])) : c("", !0),
|
|
6472
6620
|
u("span", { class: v(["min-w-0 flex-1 truncate text-body-medium transition-colors", y.value ? "font-medium text-primary" : "text-on-surface"]) }, [D(r.$slots, "label", { node: t.node }, () => [f(A(t.node.label), 1)])], 2),
|
|
6473
|
-
m.value && j(a).checkable.value ? (C(), l("span",
|
|
6621
|
+
m.value && j(a).checkable.value ? (C(), l("span", ml, A(x.value) + "/" + A(b.value.length), 1)) : c("", !0),
|
|
6474
6622
|
D(r.$slots, "trailing", { node: t.node })
|
|
6475
6623
|
], 2), p(i, {
|
|
6476
6624
|
onEnter: M,
|
|
@@ -6478,7 +6626,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6478
6626
|
onLeave: P,
|
|
6479
6627
|
onAfterLeave: F
|
|
6480
6628
|
}, {
|
|
6481
|
-
default: L(() => [_.value && m.value ? (C(), l("div",
|
|
6629
|
+
default: L(() => [_.value && m.value ? (C(), l("div", hl, [(C(!0), l(n, null, E(t.node.children, (e) => (C(), s(gl, {
|
|
6482
6630
|
key: e.id,
|
|
6483
6631
|
node: e,
|
|
6484
6632
|
depth: t.depth + 1
|
|
@@ -6487,15 +6635,15 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6487
6635
|
fn: L((e) => [D(r.$slots, t, g({ ref_for: !0 }, e ?? {}))])
|
|
6488
6636
|
}))]), 1032, ["node", "depth"]))), 128))])) : c("", !0)]),
|
|
6489
6637
|
_: 3
|
|
6490
|
-
})], 8,
|
|
6638
|
+
})], 8, dl));
|
|
6491
6639
|
}
|
|
6492
|
-
}),
|
|
6640
|
+
}), _l = {
|
|
6493
6641
|
role: "tree",
|
|
6494
6642
|
class: "flex flex-col"
|
|
6495
|
-
},
|
|
6643
|
+
}, vl = {
|
|
6496
6644
|
key: 1,
|
|
6497
6645
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
6498
|
-
},
|
|
6646
|
+
}, yl = { class: "text-body-medium" }, bl = /* @__PURE__ */ m({
|
|
6499
6647
|
__name: "MTree",
|
|
6500
6648
|
props: {
|
|
6501
6649
|
nodes: {},
|
|
@@ -6561,26 +6709,26 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6561
6709
|
return r({
|
|
6562
6710
|
expandAll: k,
|
|
6563
6711
|
collapseAll: j
|
|
6564
|
-
}), (r, i) => (C(), l("div",
|
|
6712
|
+
}), (r, i) => (C(), l("div", _l, [t.nodes.length ? (C(!0), l(n, { key: 0 }, E(t.nodes, (e) => (C(), s(gl, {
|
|
6565
6713
|
key: e.id,
|
|
6566
6714
|
node: e,
|
|
6567
6715
|
depth: 0
|
|
6568
6716
|
}, d({ _: 2 }, [E(r.$slots, (e, t) => ({
|
|
6569
6717
|
name: t,
|
|
6570
6718
|
fn: L((e) => [D(r.$slots, t, g({ ref_for: !0 }, e ?? {}))])
|
|
6571
|
-
}))]), 1032, ["node"]))), 128)) : (C(), l("div",
|
|
6719
|
+
}))]), 1032, ["node"]))), 128)) : (C(), l("div", vl, [p(e, {
|
|
6572
6720
|
name: "account_tree",
|
|
6573
6721
|
size: 32,
|
|
6574
6722
|
class: "opacity-30"
|
|
6575
|
-
}), u("p",
|
|
6723
|
+
}), u("p", yl, A(t.emptyText), 1)]))]));
|
|
6576
6724
|
}
|
|
6577
|
-
}),
|
|
6725
|
+
}), xl = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Sl = {
|
|
6578
6726
|
key: 0,
|
|
6579
6727
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
6580
|
-
},
|
|
6728
|
+
}, Cl = { class: "overflow-x-auto" }, wl = { class: "w-full border-collapse" }, Tl = { class: "bg-surface-container-high" }, El = ["onClick"], Dl = ["onClick"], Ol = {
|
|
6581
6729
|
key: 1,
|
|
6582
6730
|
class: "w-6 shrink-0"
|
|
6583
|
-
},
|
|
6731
|
+
}, kl = { key: 0 }, Al = ["colspan"], jl = /* @__PURE__ */ m({
|
|
6584
6732
|
__name: "MTreeTable",
|
|
6585
6733
|
props: {
|
|
6586
6734
|
columns: {},
|
|
@@ -6635,10 +6783,10 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6635
6783
|
function x(e) {
|
|
6636
6784
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
6637
6785
|
}
|
|
6638
|
-
return (r, i) => (C(), l("div",
|
|
6786
|
+
return (r, i) => (C(), l("div", xl, [r.$slots.toolbar ? (C(), l("div", Sl, [D(r.$slots, "toolbar", {
|
|
6639
6787
|
expandAll: _,
|
|
6640
6788
|
collapseAll: b
|
|
6641
|
-
})])) : c("", !0), u("div",
|
|
6789
|
+
})])) : c("", !0), u("div", Cl, [u("table", wl, [u("thead", null, [u("tr", Tl, [(C(!0), l(n, null, E(t.columns, (e, n) => (C(), l("th", {
|
|
6642
6790
|
key: e.key,
|
|
6643
6791
|
style: y(e.width ? { width: e.width } : void 0),
|
|
6644
6792
|
class: v([
|
|
@@ -6669,7 +6817,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6669
6817
|
}, [p(e, {
|
|
6670
6818
|
name: "chevron_right",
|
|
6671
6819
|
size: 18
|
|
6672
|
-
})], 10,
|
|
6820
|
+
})], 10, Dl)) : (C(), l("span", Ol)), D(r.$slots, `cell-${n.key}`, {
|
|
6673
6821
|
row: i.row,
|
|
6674
6822
|
value: i.row[n.key],
|
|
6675
6823
|
depth: i.depth
|
|
@@ -6678,19 +6826,19 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6678
6826
|
row: i.row,
|
|
6679
6827
|
value: i.row[n.key],
|
|
6680
6828
|
depth: i.depth
|
|
6681
|
-
}, () => [f(A(i.row[n.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
6829
|
+
}, () => [f(A(i.row[n.key] ?? "—"), 1)])], 2))), 128))], 10, El))), 128)), g.value.length ? c("", !0) : (C(), l("tr", kl, [u("td", {
|
|
6682
6830
|
colspan: t.columns.length,
|
|
6683
6831
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
6684
6832
|
}, [p(e, {
|
|
6685
6833
|
name: "account_tree",
|
|
6686
6834
|
size: 36,
|
|
6687
6835
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
6688
|
-
}), i[0] ||= u("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
6836
|
+
}), i[0] ||= u("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, Al)]))])])])]));
|
|
6689
6837
|
}
|
|
6690
|
-
}),
|
|
6838
|
+
}), Ml = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Nl = { class: "flex bg-surface-container-high" }, Pl = ["onClick"], Fl = { class: "inline-flex items-center gap-1" }, Il = {
|
|
6691
6839
|
key: 0,
|
|
6692
6840
|
class: "inline-flex"
|
|
6693
|
-
},
|
|
6841
|
+
}, Ll = ["onClick"], Rl = { class: "truncate" }, zl = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Bl = { class: "text-label-small text-on-surface-variant" }, Vl = /* @__PURE__ */ m({
|
|
6694
6842
|
__name: "MVirtualTable",
|
|
6695
6843
|
props: {
|
|
6696
6844
|
columns: {},
|
|
@@ -6736,8 +6884,8 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6736
6884
|
function N(e) {
|
|
6737
6885
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
6738
6886
|
}
|
|
6739
|
-
return (r, i) => (C(), l("div",
|
|
6740
|
-
u("div",
|
|
6887
|
+
return (r, i) => (C(), l("div", Ml, [
|
|
6888
|
+
u("div", Nl, [(C(!0), l(n, null, E(t.columns, (t) => (C(), l("div", {
|
|
6741
6889
|
key: t.key,
|
|
6742
6890
|
style: y({
|
|
6743
6891
|
width: t.width || "auto",
|
|
@@ -6749,7 +6897,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6749
6897
|
t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
6750
6898
|
]),
|
|
6751
6899
|
onClick: (e) => t.sortable ? _(t.key) : void 0
|
|
6752
|
-
}, [u("span",
|
|
6900
|
+
}, [u("span", Fl, [f(A(t.label) + " ", 1), t.sortable ? (C(), l("span", Il, [h.value === t.key && g.value === "asc" ? (C(), s(e, {
|
|
6753
6901
|
key: 0,
|
|
6754
6902
|
name: "arrow_upward",
|
|
6755
6903
|
size: 14,
|
|
@@ -6764,7 +6912,7 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6764
6912
|
name: "unfold_more",
|
|
6765
6913
|
size: 14,
|
|
6766
6914
|
class: "opacity-30"
|
|
6767
|
-
}))])) : c("", !0)])], 14,
|
|
6915
|
+
}))])) : c("", !0)])], 14, Pl))), 128))]),
|
|
6768
6916
|
u("div", {
|
|
6769
6917
|
ref_key: "scrollEl",
|
|
6770
6918
|
ref: d,
|
|
@@ -6792,12 +6940,12 @@ var pe = { class: "min-w-0 flex-1" }, me = {
|
|
|
6792
6940
|
}, [D(r.$slots, `cell-${t.key}`, {
|
|
6793
6941
|
row: e,
|
|
6794
6942
|
value: e[t.key]
|
|
6795
|
-
}, () => [u("span",
|
|
6796
|
-
u("div",
|
|
6943
|
+
}, () => [u("span", Rl, A(e[t.key] ?? "—"), 1)])], 6))), 128))], 14, Ll))), 128))], 4)], 36),
|
|
6944
|
+
u("div", zl, [u("span", Bl, [f(A(S.value.length.toLocaleString()) + " filas ", 1), O.value.end - O.value.start < S.value.length ? (C(), l(n, { key: 0 }, [f(" · mostrando " + A(O.value.start + 1) + "–" + A(O.value.end), 1)], 64)) : c("", !0)])])
|
|
6797
6945
|
]));
|
|
6798
6946
|
}
|
|
6799
6947
|
});
|
|
6800
6948
|
//#endregion
|
|
6801
|
-
export { _e as MAlert, xe as MAppBar, Se as MAvatar, Te as MBadge, je as MBottomSheet, Pe as MBreadcrumbs,
|
|
6949
|
+
export { _e as MAlert, xe as MAppBar, Se as MAvatar, Te as MBadge, je as MBottomSheet, Pe as MBreadcrumbs, He as MButton, tt as MCalendar, rt as MCard, Q as MCheckbox, st as MChip, vt as MColorPicker, Ot as MCommandPalette, Ft as MConfirmDialog, It as MContainer, Ut as MContextMenu, _n as MDataTable, On as MDatePicker, Bn as MDateRangePicker, Nt as MDialog, Wn as MDivider, Xn as MDragDropList, Zn as MEmptyState, ir as MExpansionPanel, lr as MFab, Cr as MFileUpload, wr as MGrid, Ar as MHotkeys, e as MIcon, Z as MIconButton, Pr as MInfiniteScroll, Ur as MJsonViewer, $r as MKanban, ri as MLoadingOverlay, ii as MMasonry, ai as MMenu, oi as MMenuItem, Si as MMultiSelect, Ti as MNavigationBar, $i as MNavigationDrawer, ra as MNavigationRail, Kt as MPagination, ya as MProgressBar, wa as MRadio, Da as MRadioGroup, ka as MRating, Ia as MResult, Qa as MScheduler, to as MSegmentedButton, ho as MSelect, xo as MSideSheet, Co as MSkeleton, ko as MSlider, Po as MSnackbar, Be as MSpinner, Fo as MSplitter, Jo as MSpotlightSearch, Yo as MStack, is as MStatCard, bs as MStepper, Cs as MSwitch, Ws as MTable, Xs as MTabs, oc as MTextField, Ac as MTimePicker, vc as MTimeline, jc as MTooltip, Fc as MTopAppBar, Uc as MTour, ul as MTransferList, bl as MTree, jl as MTreeTable, Vl as MVirtualTable, V as createM3UI, K as palettes, J as useColorPalette, fe as useFieldBg, G as useTheme, ce as useToast };
|
|
6802
6950
|
|
|
6803
6951
|
//# sourceMappingURL=m3ui.js.map
|