@m3ui-vue/m3ui-vue 0.2.4 → 0.2.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/MAbsolute.vue.d.ts +2 -0
- package/dist/components/MAppLayout.vue.d.ts +1 -0
- package/dist/components/MFixed.vue.d.ts +2 -0
- package/dist/components/MFooter.vue.d.ts +25 -0
- package/dist/components/MNavigationDrawer.vue.d.ts +2 -0
- package/dist/components/MTopAppBar.vue.d.ts +6 -4
- package/dist/index.d.ts +1 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +727 -677
- package/dist/m3ui.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MAbsolute.vue +8 -5
- package/src/components/MAppLayout.vue +3 -2
- package/src/components/MFixed.vue +8 -5
- package/src/components/MFooter.vue +49 -0
- package/src/components/MNavigationDrawer.vue +38 -9
- package/src/components/MTopAppBar.vue +12 -10
- package/src/index.ts +1 -0
package/dist/m3ui.js
CHANGED
|
@@ -245,6 +245,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
245
245
|
props: {
|
|
246
246
|
placement: {},
|
|
247
247
|
offset: { default: 0 },
|
|
248
|
+
offsetX: {},
|
|
249
|
+
offsetY: {},
|
|
248
250
|
top: {},
|
|
249
251
|
right: {},
|
|
250
252
|
bottom: {},
|
|
@@ -267,11 +269,11 @@ var Se = /* @__PURE__ */ T({
|
|
|
267
269
|
zIndex: t.zIndex
|
|
268
270
|
};
|
|
269
271
|
if (t.placement) {
|
|
270
|
-
let e = n(t.offset),
|
|
272
|
+
let e = n(t.offsetY ?? t.offset), r = n(t.offsetX ?? t.offset), [i, a] = t.placement.split("-"), o = {
|
|
271
273
|
position: "absolute",
|
|
272
274
|
zIndex: t.zIndex == null ? void 0 : String(t.zIndex)
|
|
273
275
|
};
|
|
274
|
-
return
|
|
276
|
+
return i === "top" ? o.top = e : i === "bottom" ? o.bottom = e : (o.top = "50%", o.transform = "translateY(-50%)"), a === "left" ? o.left = r : a === "right" ? o.right = r : (o.left = "50%", o.transform = o.transform ? "translate(-50%, -50%)" : "translateX(-50%)"), o;
|
|
275
277
|
}
|
|
276
278
|
return {
|
|
277
279
|
position: "absolute",
|
|
@@ -383,28 +385,31 @@ var Se = /* @__PURE__ */ T({
|
|
|
383
385
|
}), Ne = {
|
|
384
386
|
key: 0,
|
|
385
387
|
class: "shrink-0"
|
|
386
|
-
}, Pe = { class: "
|
|
387
|
-
key: 0,
|
|
388
|
-
class: "shrink-0"
|
|
389
|
-
}, Ie = { class: "min-h-0 flex-1 overflow-y-auto" }, Le = {
|
|
388
|
+
}, Pe = { class: "min-h-0 flex-1 overflow-y-auto" }, Fe = {
|
|
390
389
|
key: 1,
|
|
391
390
|
class: "shrink-0"
|
|
392
|
-
},
|
|
391
|
+
}, Ie = /* @__PURE__ */ T({
|
|
393
392
|
__name: "MAppLayout",
|
|
394
|
-
props: {
|
|
393
|
+
props: {
|
|
394
|
+
height: {},
|
|
395
|
+
drawerRight: { type: Boolean }
|
|
396
|
+
},
|
|
395
397
|
setup(e) {
|
|
396
398
|
let t = e, n = _(() => ({ height: t.height || "100dvh" }));
|
|
397
|
-
return (
|
|
399
|
+
return (t, r) => (P(), b("div", {
|
|
398
400
|
class: "flex w-full overflow-hidden bg-surface text-on-surface",
|
|
399
401
|
style: A(n.value)
|
|
400
|
-
}, [
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
z(
|
|
405
|
-
|
|
402
|
+
}, [t.$slots.drawer ? (P(), b("aside", {
|
|
403
|
+
key: 0,
|
|
404
|
+
class: k(["shrink-0", e.drawerRight ? "order-2" : ""])
|
|
405
|
+
}, [z(t.$slots, "drawer")], 2)) : y("", !0), x("div", { class: k(["relative flex min-w-0 flex-1 flex-col", e.drawerRight ? "order-1" : ""]) }, [
|
|
406
|
+
t.$slots.header ? (P(), b("header", Ne, [z(t.$slots, "header")])) : y("", !0),
|
|
407
|
+
x("main", Pe, [z(t.$slots, "default")]),
|
|
408
|
+
t.$slots.footer ? (P(), b("footer", Fe, [z(t.$slots, "footer")])) : y("", !0),
|
|
409
|
+
z(t.$slots, "fab")
|
|
410
|
+
], 2)], 4));
|
|
406
411
|
}
|
|
407
|
-
}),
|
|
412
|
+
}), Le = /* @__PURE__ */ T({
|
|
408
413
|
__name: "MAspectRatio",
|
|
409
414
|
props: { ratio: { default: "16/9" } },
|
|
410
415
|
setup(e) {
|
|
@@ -414,7 +419,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
414
419
|
style: A(n.value)
|
|
415
420
|
}, [z(e.$slots, "default")], 4));
|
|
416
421
|
}
|
|
417
|
-
}),
|
|
422
|
+
}), Re = /* @__PURE__ */ T({
|
|
418
423
|
__name: "MAvatar",
|
|
419
424
|
props: {
|
|
420
425
|
name: {},
|
|
@@ -438,7 +443,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
438
443
|
})
|
|
439
444
|
}, H(n.value), 5));
|
|
440
445
|
}
|
|
441
|
-
}),
|
|
446
|
+
}), ze = { class: "relative inline-flex" }, Be = { key: 0 }, Ve = /* @__PURE__ */ T({
|
|
442
447
|
__name: "MBadge",
|
|
443
448
|
props: {
|
|
444
449
|
count: {},
|
|
@@ -483,22 +488,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
483
488
|
}
|
|
484
489
|
}[t.position];
|
|
485
490
|
});
|
|
486
|
-
return (t, o) => (P(), b("span",
|
|
491
|
+
return (t, o) => (P(), b("span", ze, [z(t.$slots, "default"), n.value ? (P(), b("span", {
|
|
487
492
|
key: 0,
|
|
488
493
|
class: k(["absolute flex items-center justify-center rounded-full font-medium leading-none", [i[e.color], !r.value || e.dot ? "h-2.5 w-2.5" : r.value.length > 2 ? "h-5 min-w-[1.25rem] px-1 text-[10px]" : "h-5 w-5 text-[10px]"]]),
|
|
489
494
|
style: A(a.value)
|
|
490
|
-
}, [e.dot ? y("", !0) : (P(), b("span",
|
|
495
|
+
}, [e.dot ? y("", !0) : (P(), b("span", Be, H(r.value), 1))], 6)) : y("", !0)]));
|
|
491
496
|
}
|
|
492
|
-
}),
|
|
497
|
+
}), He = {
|
|
493
498
|
key: 0,
|
|
494
499
|
class: "fixed inset-0 z-200 flex flex-col justify-end"
|
|
495
|
-
},
|
|
500
|
+
}, Ue = {
|
|
496
501
|
key: 0,
|
|
497
502
|
class: "flex shrink-0 items-center justify-between px-6 pb-4"
|
|
498
|
-
},
|
|
503
|
+
}, We = { class: "text-title-large text-on-surface" }, Ge = { class: "flex-1 overflow-y-auto px-6 pb-6" }, Ke = {
|
|
499
504
|
key: 1,
|
|
500
505
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
501
|
-
},
|
|
506
|
+
}, qe = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
502
507
|
__name: "MBottomSheet",
|
|
503
508
|
props: {
|
|
504
509
|
modelValue: { type: Boolean },
|
|
@@ -531,7 +536,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
531
536
|
leave: 280
|
|
532
537
|
}
|
|
533
538
|
}, {
|
|
534
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
539
|
+
default: Y(() => [e.modelValue ? (P(), b("div", He, [x("div", {
|
|
535
540
|
class: "bs-scrim absolute inset-0 bg-black/40",
|
|
536
541
|
onClick: r
|
|
537
542
|
}), x("div", {
|
|
@@ -544,7 +549,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
544
549
|
onPointermove: c,
|
|
545
550
|
onPointerup: l
|
|
546
551
|
}, [...n[0] ||= [x("div", { class: "h-1 w-8 rounded-full bg-on-surface-variant/40" }, null, -1)]], 32),
|
|
547
|
-
e.title ? (P(), b("div",
|
|
552
|
+
e.title ? (P(), b("div", Ue, [x("h2", We, H(e.title), 1), x("button", {
|
|
548
553
|
type: "button",
|
|
549
554
|
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",
|
|
550
555
|
onClick: r
|
|
@@ -552,13 +557,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
552
557
|
name: "close",
|
|
553
558
|
size: 20
|
|
554
559
|
})])])) : y("", !0),
|
|
555
|
-
x("div",
|
|
556
|
-
t.$slots.actions ? (P(), b("div",
|
|
560
|
+
x("div", Ge, [z(t.$slots, "default", {}, void 0, !0)]),
|
|
561
|
+
t.$slots.actions ? (P(), b("div", Ke, [z(t.$slots, "actions", {}, void 0, !0)])) : y("", !0)
|
|
557
562
|
], 6)])) : y("", !0)]),
|
|
558
563
|
_: 3
|
|
559
564
|
})]));
|
|
560
565
|
}
|
|
561
|
-
}), [["__scopeId", "data-v-5b1fb748"]]),
|
|
566
|
+
}), [["__scopeId", "data-v-5b1fb748"]]), Je = /* @__PURE__ */ T({
|
|
562
567
|
__name: "MBox",
|
|
563
568
|
props: {
|
|
564
569
|
surface: {},
|
|
@@ -613,10 +618,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
613
618
|
_: 3
|
|
614
619
|
}, 8, ["class"]));
|
|
615
620
|
}
|
|
616
|
-
}),
|
|
621
|
+
}), Ye = {
|
|
617
622
|
"aria-label": "Breadcrumb",
|
|
618
623
|
class: "flex items-center gap-1 overflow-x-auto text-label-large"
|
|
619
|
-
},
|
|
624
|
+
}, Xe = ["onClick"], Ze = /* @__PURE__ */ T({
|
|
620
625
|
__name: "MBreadcrumbs",
|
|
621
626
|
props: {
|
|
622
627
|
items: {},
|
|
@@ -624,7 +629,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
624
629
|
},
|
|
625
630
|
emits: ["select"],
|
|
626
631
|
setup(e) {
|
|
627
|
-
return (t, n) => (P(), b("nav",
|
|
632
|
+
return (t, n) => (P(), b("nav", Ye, [(P(!0), b(p, null, R(e.items, (n, r) => (P(), b(p, { key: r }, [r > 0 ? (P(), v(d, {
|
|
628
633
|
key: 0,
|
|
629
634
|
name: e.separator,
|
|
630
635
|
size: 18,
|
|
@@ -638,7 +643,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
638
643
|
key: 0,
|
|
639
644
|
name: n.icon,
|
|
640
645
|
size: 18
|
|
641
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 8,
|
|
646
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 8, Xe)) : (P(), b("span", {
|
|
642
647
|
key: 2,
|
|
643
648
|
class: k(["flex shrink-0 items-center gap-1.5 px-1.5 py-1", n.disabled ? "text-on-surface/38" : "font-medium text-on-surface"])
|
|
644
649
|
}, [n.icon ? (P(), v(d, {
|
|
@@ -647,13 +652,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
647
652
|
size: 18
|
|
648
653
|
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 2))], 64))), 128))]));
|
|
649
654
|
}
|
|
650
|
-
}),
|
|
655
|
+
}), Qe = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, $e = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, et = { class: "flex items-center gap-1" }, tt = { class: "text-title-medium font-medium capitalize text-on-surface" }, nt = { class: "grid grid-cols-7 border-b border-outline-variant bg-surface-container-high" }, rt = { class: "grid grid-cols-7" }, it = ["onClick"], at = {
|
|
651
656
|
key: 0,
|
|
652
657
|
class: "flex flex-col gap-0.5"
|
|
653
|
-
},
|
|
658
|
+
}, ot = ["onClick"], st = { class: "truncate" }, ct = {
|
|
654
659
|
key: 0,
|
|
655
660
|
class: "px-1 text-label-small text-on-surface-variant"
|
|
656
|
-
},
|
|
661
|
+
}, lt = /* @__PURE__ */ T({
|
|
657
662
|
__name: "MCalendar",
|
|
658
663
|
props: {
|
|
659
664
|
events: { default: () => [] },
|
|
@@ -727,9 +732,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
727
732
|
error: "bg-error text-on-error",
|
|
728
733
|
success: "bg-success text-on-success"
|
|
729
734
|
};
|
|
730
|
-
return (n, r) => (P(), b("div",
|
|
731
|
-
x("div",
|
|
732
|
-
x("div",
|
|
735
|
+
return (n, r) => (P(), b("div", Qe, [
|
|
736
|
+
x("div", $e, [
|
|
737
|
+
x("div", et, [w(e, {
|
|
733
738
|
icon: "chevron_left",
|
|
734
739
|
label: t.prevMonthLabel ?? U(a).previousMonth,
|
|
735
740
|
size: 36,
|
|
@@ -740,18 +745,18 @@ var Se = /* @__PURE__ */ T({
|
|
|
740
745
|
size: 36,
|
|
741
746
|
onClick: g
|
|
742
747
|
}, null, 8, ["label"])]),
|
|
743
|
-
x("h3",
|
|
748
|
+
x("h3", tt, H(l.value), 1),
|
|
744
749
|
x("button", {
|
|
745
750
|
type: "button",
|
|
746
751
|
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",
|
|
747
752
|
onClick: S
|
|
748
753
|
}, H(t.todayLabel ?? U(a).today), 1)
|
|
749
754
|
]),
|
|
750
|
-
x("div",
|
|
755
|
+
x("div", nt, [(P(!0), b(p, null, R(U(c), (e) => (P(), b("div", {
|
|
751
756
|
key: e,
|
|
752
757
|
class: "py-2 text-center text-label-small font-medium uppercase text-on-surface-variant"
|
|
753
758
|
}, H(e), 1))), 128))]),
|
|
754
|
-
x("div",
|
|
759
|
+
x("div", rt, [(P(!0), b(p, null, R(m.value, (e, t) => (P(), b("div", {
|
|
755
760
|
key: t,
|
|
756
761
|
class: k(["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/3", [
|
|
757
762
|
e.current ? "bg-surface" : "bg-surface-container-lowest/50",
|
|
@@ -759,7 +764,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
759
764
|
t >= 35 ? "border-b-0" : ""
|
|
760
765
|
]]),
|
|
761
766
|
onClick: (t) => o("dateClick", e.iso)
|
|
762
|
-
}, [x("span", { class: k(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", e.iso === U(f) ? "bg-primary text-on-primary font-medium" : e.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, H(e.date), 3), e.events.length ? (P(), b("div",
|
|
767
|
+
}, [x("span", { class: k(["mb-0.5 flex h-6 w-6 items-center justify-center self-end rounded-full text-label-medium", e.iso === U(f) ? "bg-primary text-on-primary font-medium" : e.current ? "text-on-surface" : "text-on-surface-variant/40"]) }, H(e.date), 3), e.events.length ? (P(), b("div", at, [(P(!0), b(p, null, R(e.events.slice(0, 2), (e) => (P(), b("button", {
|
|
763
768
|
key: e.id,
|
|
764
769
|
type: "button",
|
|
765
770
|
class: k(["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", C[e.color ?? "primary"]]),
|
|
@@ -768,22 +773,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
768
773
|
key: 0,
|
|
769
774
|
name: e.icon,
|
|
770
775
|
size: 12
|
|
771
|
-
}, null, 8, ["name"])) : y("", !0), x("span",
|
|
776
|
+
}, null, 8, ["name"])) : y("", !0), x("span", st, H(e.title), 1)], 10, ot))), 128)), e.events.length > 2 ? (P(), b("span", ct, " +" + H(e.events.length - 2) + " " + H(U(a).more), 1)) : y("", !0)])) : y("", !0)], 10, it))), 128))])
|
|
772
777
|
]));
|
|
773
778
|
}
|
|
774
|
-
}),
|
|
779
|
+
}), ut = ["src", "alt"], dt = {
|
|
775
780
|
key: 1,
|
|
776
781
|
class: "px-4 pt-4 pb-2"
|
|
777
|
-
},
|
|
782
|
+
}, ft = {
|
|
778
783
|
key: 2,
|
|
779
784
|
class: "px-4 pt-4 pb-2"
|
|
780
|
-
},
|
|
785
|
+
}, pt = { class: "text-title-large font-medium text-on-surface" }, mt = {
|
|
781
786
|
key: 0,
|
|
782
787
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
783
|
-
},
|
|
788
|
+
}, ht = {
|
|
784
789
|
key: 3,
|
|
785
790
|
class: "flex justify-end gap-2 px-4 pt-2 pb-4"
|
|
786
|
-
},
|
|
791
|
+
}, gt = /* @__PURE__ */ T({
|
|
787
792
|
__name: "MCard",
|
|
788
793
|
props: {
|
|
789
794
|
variant: { default: "elevated" },
|
|
@@ -823,22 +828,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
823
828
|
src: e.image,
|
|
824
829
|
alt: e.imageAlt ?? "",
|
|
825
830
|
class: "h-full w-full object-cover"
|
|
826
|
-
}, null, 8,
|
|
827
|
-
t.$slots.header ? (P(), b("div",
|
|
831
|
+
}, null, 8, ut)) : z(t.$slots, "media", { key: 1 })], 2)) : y("", !0),
|
|
832
|
+
t.$slots.header ? (P(), b("div", dt, [z(t.$slots, "header")])) : e.title ? (P(), b("div", ft, [x("h3", pt, H(e.title), 1), e.subtitle ? (P(), b("p", mt, H(e.subtitle), 1)) : y("", !0)])) : y("", !0),
|
|
828
833
|
z(t.$slots, "default"),
|
|
829
|
-
t.$slots.actions ? (P(), b("div",
|
|
834
|
+
t.$slots.actions ? (P(), b("div", ht, [z(t.$slots, "actions")])) : y("", !0)
|
|
830
835
|
], 6));
|
|
831
836
|
}
|
|
832
|
-
}),
|
|
837
|
+
}), _t = ["src", "alt"], vt = {
|
|
833
838
|
key: 0,
|
|
834
839
|
class: "absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent px-6 pb-6 pt-16"
|
|
835
|
-
},
|
|
840
|
+
}, yt = {
|
|
836
841
|
key: 0,
|
|
837
842
|
class: "text-title-large font-medium text-white"
|
|
838
|
-
},
|
|
843
|
+
}, bt = {
|
|
839
844
|
key: 1,
|
|
840
845
|
class: "mt-1 text-body-medium text-white/80"
|
|
841
|
-
},
|
|
846
|
+
}, xt = ["onClick"], St = /* @__PURE__ */ T({
|
|
842
847
|
__name: "MCarousel",
|
|
843
848
|
props: {
|
|
844
849
|
items: {},
|
|
@@ -920,7 +925,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
920
925
|
src: e.src,
|
|
921
926
|
alt: e.alt ?? e.title ?? "",
|
|
922
927
|
class: "h-full w-full object-cover"
|
|
923
|
-
}, null, 8,
|
|
928
|
+
}, null, 8, _t), e.title || e.subtitle ? (P(), b("div", vt, [e.title ? (P(), b("h3", yt, H(e.title), 1)) : y("", !0), e.subtitle ? (P(), b("p", bt, H(e.subtitle), 1)) : y("", !0)])) : y("", !0)])), [[K, t === a.value]])), 128))]),
|
|
924
929
|
_: 1
|
|
925
930
|
}, 8, ["name"]),
|
|
926
931
|
e.showArrows && u.value > 1 ? (P(), b(p, { key: 0 }, [x("button", {
|
|
@@ -946,10 +951,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
946
951
|
type: "button",
|
|
947
952
|
class: k(["h-2 cursor-pointer rounded-full transition-all duration-300", t === a.value ? "w-6 bg-white" : "w-2 bg-white/50 hover:bg-white/70"]),
|
|
948
953
|
onClick: (e) => m(t)
|
|
949
|
-
}, null, 10,
|
|
954
|
+
}, null, 10, xt))), 128))], 2)) : y("", !0)
|
|
950
955
|
], 38));
|
|
951
956
|
}
|
|
952
|
-
}),
|
|
957
|
+
}), Ct = /* @__PURE__ */ T({
|
|
953
958
|
__name: "MCenter",
|
|
954
959
|
props: { inline: {
|
|
955
960
|
type: Boolean,
|
|
@@ -959,7 +964,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
959
964
|
let t = e, n = _(() => [t.inline ? "inline-flex" : "flex", "items-center justify-center"]);
|
|
960
965
|
return (e, t) => (P(), b("div", { class: k(n.value) }, [z(e.$slots, "default")], 2));
|
|
961
966
|
}
|
|
962
|
-
}),
|
|
967
|
+
}), wt = ["checked", "disabled"], Tt = {
|
|
963
968
|
key: 0,
|
|
964
969
|
class: "text-body-large text-on-surface"
|
|
965
970
|
}, Q = /* @__PURE__ */ T({
|
|
@@ -985,13 +990,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
985
990
|
checked: e.modelValue,
|
|
986
991
|
disabled: e.disabled,
|
|
987
992
|
onChange: r[0] ||= (t) => n("update:modelValue", !e.modelValue)
|
|
988
|
-
}, null, 40,
|
|
993
|
+
}, null, 40, wt), w(d, {
|
|
989
994
|
name: e.indeterminate ? "remove" : "check",
|
|
990
995
|
size: 14,
|
|
991
996
|
class: k(["transition-[opacity,transform] duration-150", e.modelValue || e.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
|
|
992
|
-
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span",
|
|
997
|
+
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span", Tt, [z(t.$slots, "default", {}, () => [C(H(e.label), 1)])])) : y("", !0)], 2));
|
|
993
998
|
}
|
|
994
|
-
}),
|
|
999
|
+
}), Et = ["disabled"], Dt = /* @__PURE__ */ T({
|
|
995
1000
|
__name: "MChip",
|
|
996
1001
|
props: {
|
|
997
1002
|
tone: { default: "neutral" },
|
|
@@ -1068,7 +1073,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1068
1073
|
}, [w(d, {
|
|
1069
1074
|
name: "close",
|
|
1070
1075
|
size: 16
|
|
1071
|
-
})], 8,
|
|
1076
|
+
})], 8, Et)) : y("", !0)
|
|
1072
1077
|
]),
|
|
1073
1078
|
_: 3
|
|
1074
1079
|
}, 8, [
|
|
@@ -1078,13 +1083,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
1078
1083
|
"style"
|
|
1079
1084
|
]));
|
|
1080
1085
|
}
|
|
1081
|
-
}),
|
|
1086
|
+
}), Ot = { class: "flex flex-col gap-1" }, kt = { class: "flex-1 font-mono text-on-surface" }, At = {
|
|
1082
1087
|
key: 0,
|
|
1083
1088
|
class: "px-4 text-body-small text-error"
|
|
1084
|
-
},
|
|
1089
|
+
}, jt = {
|
|
1085
1090
|
key: 1,
|
|
1086
1091
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
1087
|
-
},
|
|
1092
|
+
}, Mt = { class: "mb-3" }, Nt = ["value"], Pt = { class: "mb-3 flex items-center gap-3" }, Ft = ["value"], It = { class: "flex flex-wrap gap-1.5" }, Lt = ["onClick"], Rt = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1088
1093
|
__name: "MColorPicker",
|
|
1089
1094
|
props: {
|
|
1090
1095
|
modelValue: {},
|
|
@@ -1197,7 +1202,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1197
1202
|
e ? (te(), setTimeout(() => document.addEventListener("mousedown", K), 0)) : document.removeEventListener("mousedown", K);
|
|
1198
1203
|
}), M(() => window.addEventListener("scroll", J, !0)), N(() => {
|
|
1199
1204
|
window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", K);
|
|
1200
|
-
}), (t, n) => (P(), b("div",
|
|
1205
|
+
}), (t, n) => (P(), b("div", Ot, [
|
|
1201
1206
|
x("div", {
|
|
1202
1207
|
ref_key: "triggerEl",
|
|
1203
1208
|
ref: o,
|
|
@@ -1212,7 +1217,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1212
1217
|
class: "h-6 w-6 shrink-0 rounded-full border border-outline-variant",
|
|
1213
1218
|
style: A({ backgroundColor: e.modelValue })
|
|
1214
1219
|
}, null, 4),
|
|
1215
|
-
x("span",
|
|
1220
|
+
x("span", kt, H(e.modelValue), 1),
|
|
1216
1221
|
w(d, {
|
|
1217
1222
|
name: "palette",
|
|
1218
1223
|
size: 20,
|
|
@@ -1222,7 +1227,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1222
1227
|
key: 0,
|
|
1223
1228
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", a.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
1224
1229
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
1225
|
-
e.error ? (P(), b("p",
|
|
1230
|
+
e.error ? (P(), b("p", At, H(e.error), 1)) : e.hint ? (P(), b("p", jt, H(e.hint), 1)) : y("", !0),
|
|
1226
1231
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
1227
1232
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
1228
1233
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -1252,15 +1257,15 @@ var Se = /* @__PURE__ */ T({
|
|
|
1252
1257
|
backgroundColor: j.value
|
|
1253
1258
|
})
|
|
1254
1259
|
}, null, 4)], 36),
|
|
1255
|
-
x("div",
|
|
1260
|
+
x("div", Mt, [x("input", {
|
|
1256
1261
|
type: "range",
|
|
1257
1262
|
min: "0",
|
|
1258
1263
|
max: "360",
|
|
1259
1264
|
value: g.value,
|
|
1260
1265
|
class: "hue-slider h-3 w-full cursor-pointer appearance-none rounded-full outline-none",
|
|
1261
1266
|
onInput: W
|
|
1262
|
-
}, null, 40,
|
|
1263
|
-
x("div",
|
|
1267
|
+
}, null, 40, Nt)]),
|
|
1268
|
+
x("div", Pt, [x("span", {
|
|
1264
1269
|
class: "h-9 w-9 shrink-0 rounded-full border border-outline-variant",
|
|
1265
1270
|
style: A({ backgroundColor: j.value })
|
|
1266
1271
|
}, null, 4), x("input", {
|
|
@@ -1269,8 +1274,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
1269
1274
|
maxlength: "7",
|
|
1270
1275
|
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",
|
|
1271
1276
|
onInput: ee
|
|
1272
|
-
}, null, 40,
|
|
1273
|
-
x("div",
|
|
1277
|
+
}, null, 40, Ft)]),
|
|
1278
|
+
x("div", It, [(P(!0), b(p, null, R(e.presets, (t) => (P(), b("button", {
|
|
1274
1279
|
key: t,
|
|
1275
1280
|
type: "button",
|
|
1276
1281
|
class: k(["flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border transition-transform duration-100 hover:scale-110", t === e.modelValue ? "border-on-surface" : "border-transparent"]),
|
|
@@ -1281,26 +1286,26 @@ var Se = /* @__PURE__ */ T({
|
|
|
1281
1286
|
name: "check",
|
|
1282
1287
|
size: 14,
|
|
1283
1288
|
class: "text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)]"
|
|
1284
|
-
})) : y("", !0)], 14,
|
|
1289
|
+
})) : y("", !0)], 14, Lt))), 128))])
|
|
1285
1290
|
], 4)) : y("", !0)]),
|
|
1286
1291
|
_: 1
|
|
1287
1292
|
})]))
|
|
1288
1293
|
]));
|
|
1289
1294
|
}
|
|
1290
|
-
}), [["__scopeId", "data-v-872ab758"]]),
|
|
1295
|
+
}), [["__scopeId", "data-v-872ab758"]]), zt = { 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" }, Vt = ["placeholder"], Ht = { class: "max-h-80 overflow-y-auto py-2" }, Ut = {
|
|
1291
1296
|
key: 0,
|
|
1292
1297
|
class: "px-4 pt-3 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
1293
|
-
},
|
|
1298
|
+
}, Wt = [
|
|
1294
1299
|
"data-cmd-active",
|
|
1295
1300
|
"onClick",
|
|
1296
1301
|
"onPointerenter"
|
|
1297
|
-
],
|
|
1302
|
+
], Gt = { class: "flex-1 truncate text-body-medium" }, Kt = {
|
|
1298
1303
|
key: 1,
|
|
1299
1304
|
class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant"
|
|
1300
|
-
},
|
|
1305
|
+
}, qt = {
|
|
1301
1306
|
key: 1,
|
|
1302
1307
|
class: "px-4 py-6 text-center text-body-medium text-on-surface-variant"
|
|
1303
|
-
},
|
|
1308
|
+
}, Jt = { class: "flex items-center gap-4 border-t border-outline-variant px-4 py-2" }, Yt = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Xt = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Zt = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Qt = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1304
1309
|
__name: "MCommandPalette",
|
|
1305
1310
|
props: {
|
|
1306
1311
|
modelValue: { type: Boolean },
|
|
@@ -1355,8 +1360,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
1355
1360
|
key: 0,
|
|
1356
1361
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[15vh]",
|
|
1357
1362
|
onClick: Z(g, ["self"])
|
|
1358
|
-
}, [x("div",
|
|
1359
|
-
x("div",
|
|
1363
|
+
}, [x("div", zt, [
|
|
1364
|
+
x("div", Bt, [
|
|
1360
1365
|
w(d, {
|
|
1361
1366
|
name: "search",
|
|
1362
1367
|
size: 20,
|
|
@@ -1370,10 +1375,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
1370
1375
|
placeholder: e.placeholder ?? U(r).searchCommand,
|
|
1371
1376
|
class: "h-12 flex-1 bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
1372
1377
|
onKeydown: T
|
|
1373
|
-
}, null, 40,
|
|
1378
|
+
}, null, 40, Vt), [[te, o.value]]),
|
|
1374
1379
|
n[1] ||= x("kbd", { class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant" }, " ESC ", -1)
|
|
1375
1380
|
]),
|
|
1376
|
-
x("div",
|
|
1381
|
+
x("div", Ht, [l.value.length ? (P(!0), b(p, { key: 0 }, R(u.value, ([e, t]) => (P(), b(p, { key: e }, [e ? (P(), b("p", Ut, H(e), 1)) : y("", !0), (P(!0), b(p, null, R(t, (e, t) => (P(), b("button", {
|
|
1377
1382
|
key: e.id,
|
|
1378
1383
|
type: "button",
|
|
1379
1384
|
"data-cmd-active": l.value.indexOf(e) === s.value || void 0,
|
|
@@ -1387,19 +1392,19 @@ var Se = /* @__PURE__ */ T({
|
|
|
1387
1392
|
size: 20,
|
|
1388
1393
|
class: "shrink-0 opacity-70"
|
|
1389
1394
|
}, null, 8, ["name"])) : y("", !0),
|
|
1390
|
-
x("span",
|
|
1391
|
-
e.shortcut ? (P(), b("kbd",
|
|
1392
|
-
], 42,
|
|
1393
|
-
x("div",
|
|
1394
|
-
x("span",
|
|
1395
|
-
x("span",
|
|
1396
|
-
x("span",
|
|
1395
|
+
x("span", Gt, H(e.label), 1),
|
|
1396
|
+
e.shortcut ? (P(), b("kbd", Kt, H(e.shortcut), 1)) : y("", !0)
|
|
1397
|
+
], 42, Wt))), 128))], 64))), 128)) : (P(), b("p", qt, H(e.noResultsText ?? U(r).noResults), 1))]),
|
|
1398
|
+
x("div", Jt, [
|
|
1399
|
+
x("span", Yt, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
1400
|
+
x("span", Xt, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.selectHint ?? U(r).selectHint), 1)]),
|
|
1401
|
+
x("span", Zt, [n[4] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), C(" " + H(e.closeHint ?? U(r).closeHint), 1)])
|
|
1397
1402
|
])
|
|
1398
1403
|
])])) : y("", !0)]),
|
|
1399
1404
|
_: 1
|
|
1400
1405
|
})]));
|
|
1401
1406
|
}
|
|
1402
|
-
}), [["__scopeId", "data-v-4d6cca63"]]),
|
|
1407
|
+
}), [["__scopeId", "data-v-4d6cca63"]]), $t = { class: "text-body-medium text-on-surface-variant" }, en = /* @__PURE__ */ T({
|
|
1403
1408
|
__name: "MConfirmDialog",
|
|
1404
1409
|
props: {
|
|
1405
1410
|
modelValue: { type: Boolean },
|
|
@@ -1440,11 +1445,11 @@ var Se = /* @__PURE__ */ T({
|
|
|
1440
1445
|
default: Y(() => [C(H(e.confirmLabel ?? U(i).confirm), 1)]),
|
|
1441
1446
|
_: 1
|
|
1442
1447
|
}, 8, ["color", "loading"])]),
|
|
1443
|
-
default: Y(() => [x("p",
|
|
1448
|
+
default: Y(() => [x("p", $t, H(e.message), 1)]),
|
|
1444
1449
|
_: 1
|
|
1445
1450
|
}, 8, ["model-value", "title"]));
|
|
1446
1451
|
}
|
|
1447
|
-
}),
|
|
1452
|
+
}), tn = /* @__PURE__ */ T({
|
|
1448
1453
|
__name: "MContainer",
|
|
1449
1454
|
props: {
|
|
1450
1455
|
maxWidth: { default: "lg" },
|
|
@@ -1478,16 +1483,16 @@ var Se = /* @__PURE__ */ T({
|
|
|
1478
1483
|
]);
|
|
1479
1484
|
return (e, t) => (P(), b("div", { class: k(r.value) }, [z(e.$slots, "default")], 2));
|
|
1480
1485
|
}
|
|
1481
|
-
}),
|
|
1486
|
+
}), nn = { class: "overflow-hidden rounded-sm py-1" }, rn = {
|
|
1482
1487
|
key: 0,
|
|
1483
1488
|
class: "my-1 border-outline-variant"
|
|
1484
|
-
},
|
|
1489
|
+
}, an = {
|
|
1485
1490
|
key: 1,
|
|
1486
1491
|
class: "w-[18px] shrink-0"
|
|
1487
|
-
},
|
|
1492
|
+
}, on = { class: "flex-1" }, sn = {
|
|
1488
1493
|
key: 2,
|
|
1489
1494
|
class: "text-label-small text-on-surface-variant"
|
|
1490
|
-
},
|
|
1495
|
+
}, cn = /* @__PURE__ */ T({
|
|
1491
1496
|
__name: "_MContextMenuPanel",
|
|
1492
1497
|
props: {
|
|
1493
1498
|
items: {},
|
|
@@ -1536,7 +1541,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1536
1541
|
top: `${o.value}px`
|
|
1537
1542
|
}),
|
|
1538
1543
|
onMouseleave: f
|
|
1539
|
-
}, [x("div",
|
|
1544
|
+
}, [x("div", nn, [(P(!0), b(p, null, R(e.items, (e, t) => (P(), b(p, { key: t }, [e.divider ? (P(), b("hr", rn)) : (P(), v(V(e.to && !e.disabled ? "RouterLink" : "div"), {
|
|
1540
1545
|
key: 1,
|
|
1541
1546
|
to: e.to && !e.disabled ? e.to : void 0,
|
|
1542
1547
|
class: k(["relative flex cursor-default select-none items-center gap-3 px-4 py-2.5 text-body-large", [e.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : e.danger ? "cursor-pointer text-error hover:bg-error/8" : "cursor-pointer text-on-surface hover:bg-on-surface/8", s.value === t && !e.disabled ? e.danger ? "bg-error/8" : "bg-on-surface/8" : ""]]),
|
|
@@ -1549,9 +1554,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
1549
1554
|
name: e.icon,
|
|
1550
1555
|
size: 18,
|
|
1551
1556
|
class: k(["shrink-0", e.danger ? "text-error" : "text-on-surface-variant"])
|
|
1552
|
-
}, null, 8, ["name", "class"])) : (P(), b("span",
|
|
1553
|
-
x("span",
|
|
1554
|
-
e.shortcut ? (P(), b("span",
|
|
1557
|
+
}, null, 8, ["name", "class"])) : (P(), b("span", an)),
|
|
1558
|
+
x("span", on, H(e.label), 1),
|
|
1559
|
+
e.shortcut ? (P(), b("span", sn, H(e.shortcut), 1)) : y("", !0),
|
|
1555
1560
|
e.children?.length ? (P(), v(d, {
|
|
1556
1561
|
key: 3,
|
|
1557
1562
|
name: "chevron_right",
|
|
@@ -1565,7 +1570,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1565
1570
|
"class",
|
|
1566
1571
|
"onMouseenter",
|
|
1567
1572
|
"onClick"
|
|
1568
|
-
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(
|
|
1573
|
+
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(cn, {
|
|
1569
1574
|
key: s.value,
|
|
1570
1575
|
items: e.items[s.value].children,
|
|
1571
1576
|
x: c.value.x,
|
|
@@ -1577,7 +1582,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1577
1582
|
"y"
|
|
1578
1583
|
])) : y("", !0)], 64));
|
|
1579
1584
|
}
|
|
1580
|
-
}),
|
|
1585
|
+
}), ln = /* @__PURE__ */ T({
|
|
1581
1586
|
__name: "MContextMenu",
|
|
1582
1587
|
props: { items: {} },
|
|
1583
1588
|
setup(e, { expose: t }) {
|
|
@@ -1614,7 +1619,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1614
1619
|
class: "fixed inset-0 z-200",
|
|
1615
1620
|
onMousedown: Z(o, ["self"]),
|
|
1616
1621
|
onContextmenu: a[0] ||= Z(() => {}, ["prevent"])
|
|
1617
|
-
}, [w(
|
|
1622
|
+
}, [w(cn, {
|
|
1618
1623
|
items: e.items,
|
|
1619
1624
|
x: r.value.x,
|
|
1620
1625
|
y: r.value.y,
|
|
@@ -1627,7 +1632,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1627
1632
|
_: 1
|
|
1628
1633
|
})]))], 64));
|
|
1629
1634
|
}
|
|
1630
|
-
}),
|
|
1635
|
+
}), un = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, dn = { class: "flex items-center gap-2" }, fn = /* @__PURE__ */ T({
|
|
1631
1636
|
__name: "MPagination",
|
|
1632
1637
|
props: {
|
|
1633
1638
|
page: {},
|
|
@@ -1637,7 +1642,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1637
1642
|
emits: ["update:page"],
|
|
1638
1643
|
setup(t, { emit: n }) {
|
|
1639
1644
|
let r = t, i = n, a = _(() => Math.max(1, Math.ceil(r.total / r.perPage))), o = _(() => r.total === 0 ? "0 resultados" : `${(r.page - 1) * r.perPage + 1}-${Math.min(r.page * r.perPage, r.total)} de ${r.total}`);
|
|
1640
|
-
return (n, r) => (P(), b("div",
|
|
1645
|
+
return (n, r) => (P(), b("div", un, [x("span", null, H(o.value), 1), x("div", dn, [
|
|
1641
1646
|
x("span", null, "Página " + H(t.page) + " de " + H(a.value), 1),
|
|
1642
1647
|
w(e, {
|
|
1643
1648
|
icon: "chevron_left",
|
|
@@ -1653,25 +1658,25 @@ var Se = /* @__PURE__ */ T({
|
|
|
1653
1658
|
}, null, 8, ["disabled"])
|
|
1654
1659
|
])]));
|
|
1655
1660
|
}
|
|
1656
|
-
}),
|
|
1661
|
+
}), pn = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, mn = {
|
|
1657
1662
|
key: 0,
|
|
1658
1663
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
1659
|
-
},
|
|
1664
|
+
}, hn = {
|
|
1660
1665
|
key: 0,
|
|
1661
1666
|
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"
|
|
1662
|
-
},
|
|
1667
|
+
}, gn = ["placeholder"], _n = {
|
|
1663
1668
|
key: 0,
|
|
1664
1669
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
1665
|
-
},
|
|
1670
|
+
}, vn = {
|
|
1666
1671
|
key: 1,
|
|
1667
1672
|
class: "relative"
|
|
1668
|
-
},
|
|
1673
|
+
}, yn = {
|
|
1669
1674
|
key: 0,
|
|
1670
1675
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
1671
|
-
},
|
|
1676
|
+
}, bn = { class: "text-body-small text-on-surface" }, xn = { class: "overflow-x-auto" }, Sn = { class: "w-full border-collapse" }, Cn = { class: "bg-surface-container-high" }, wn = ["onClick"], Tn = { class: "inline-flex items-center gap-1" }, En = {
|
|
1672
1677
|
key: 0,
|
|
1673
1678
|
class: "inline-flex"
|
|
1674
|
-
},
|
|
1679
|
+
}, Dn = ["onPointerdown"], On = { key: 1 }, kn = ["colspan"], An = { class: "text-body-medium text-on-surface-variant" }, jn = ["onClick"], Mn = ["onClick"], Nn = { key: 0 }, Pn = ["colspan"], Fn = { class: "dt-expand-body" }, In = { class: "px-6 py-4" }, Ln = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Rn = { class: "text-label-small text-on-surface-variant" }, zn = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1675
1680
|
__name: "MDataTable",
|
|
1676
1681
|
props: {
|
|
1677
1682
|
columns: {},
|
|
@@ -1885,9 +1890,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
1885
1890
|
minWidth: e.minWidth
|
|
1886
1891
|
};
|
|
1887
1892
|
}
|
|
1888
|
-
return (n, r) => (P(), b("div",
|
|
1889
|
-
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div",
|
|
1890
|
-
t.searchable ? (P(), b("div",
|
|
1893
|
+
return (n, r) => (P(), b("div", pn, [
|
|
1894
|
+
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div", mn, [
|
|
1895
|
+
t.searchable ? (P(), b("div", hn, [
|
|
1891
1896
|
w(d, {
|
|
1892
1897
|
name: "search",
|
|
1893
1898
|
size: 16,
|
|
@@ -1898,7 +1903,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1898
1903
|
type: "text",
|
|
1899
1904
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
1900
1905
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
1901
|
-
}, null, 8,
|
|
1906
|
+
}, null, 8, gn), [[te, f.value]]),
|
|
1902
1907
|
f.value ? (P(), b("button", {
|
|
1903
1908
|
key: 0,
|
|
1904
1909
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -1915,21 +1920,21 @@ var Se = /* @__PURE__ */ T({
|
|
|
1915
1920
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
1916
1921
|
"leave-to-class": "opacity-0 scale-90"
|
|
1917
1922
|
}, {
|
|
1918
|
-
default: Y(() => [t.selectable && K.value.length > 0 ? (P(), b("span",
|
|
1923
|
+
default: Y(() => [t.selectable && K.value.length > 0 ? (P(), b("span", _n, H(K.value.length) + " " + H(t.selectedText ?? U(i).selectedCount) + H(K.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
1919
1924
|
_: 1
|
|
1920
1925
|
}),
|
|
1921
|
-
t.columnToggle ? (P(), b("div",
|
|
1926
|
+
t.columnToggle ? (P(), b("div", vn, [w(e, {
|
|
1922
1927
|
icon: "view_column",
|
|
1923
1928
|
label: t.columnsLabel ?? U(i).columns,
|
|
1924
1929
|
size: 36,
|
|
1925
1930
|
onClick: r[2] ||= (e) => O.value = !O.value
|
|
1926
|
-
}, null, 8, ["label"]), O.value ? (P(), b("div",
|
|
1931
|
+
}, null, 8, ["label"]), O.value ? (P(), b("div", yn, [(P(!0), b(p, null, R(t.columns, (e) => (P(), b("label", {
|
|
1927
1932
|
key: e.key,
|
|
1928
1933
|
class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
|
|
1929
1934
|
}, [w(Q, {
|
|
1930
1935
|
"model-value": !E.value.has(e.key),
|
|
1931
1936
|
"onUpdate:modelValue": (t) => E.value.has(e.key) ? E.value.delete(e.key) : E.value.add(e.key)
|
|
1932
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span",
|
|
1937
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span", bn, H(e.label), 1)]))), 128))])) : y("", !0)])) : y("", !0),
|
|
1933
1938
|
t.exportable ? (P(), v(e, {
|
|
1934
1939
|
key: 2,
|
|
1935
1940
|
icon: "download",
|
|
@@ -1938,7 +1943,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1938
1943
|
onClick: ve
|
|
1939
1944
|
}, null, 8, ["label"])) : y("", !0)
|
|
1940
1945
|
])) : y("", !0),
|
|
1941
|
-
x("div",
|
|
1946
|
+
x("div", xn, [x("table", Sn, [x("thead", { class: k(t.stickyHeader ? "sticky top-0 z-1" : "") }, [x("tr", Cn, [
|
|
1942
1947
|
u.value ? (P(), b("th", {
|
|
1943
1948
|
key: 0,
|
|
1944
1949
|
class: k(["w-10 px-2", t.dense ? "py-2" : "py-3"])
|
|
@@ -1961,7 +1966,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1961
1966
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
1962
1967
|
]),
|
|
1963
1968
|
onClick: (t) => e.sortable ? N(e.key) : void 0
|
|
1964
|
-
}, [x("span",
|
|
1969
|
+
}, [x("span", Tn, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", En, [m.value === e.key && g.value === "asc" ? (P(), v(d, {
|
|
1965
1970
|
key: 0,
|
|
1966
1971
|
name: "arrow_upward",
|
|
1967
1972
|
size: 14,
|
|
@@ -1980,7 +1985,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1980
1985
|
key: 0,
|
|
1981
1986
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
1982
1987
|
onPointerdown: (t) => he(t, e)
|
|
1983
|
-
}, null, 40,
|
|
1988
|
+
}, null, 40, Dn)) : y("", !0)], 14, wn))), 128)),
|
|
1984
1989
|
l.value ? (P(), b("th", {
|
|
1985
1990
|
key: 2,
|
|
1986
1991
|
class: k(["w-1 px-4", t.dense ? "py-2" : "py-3"])
|
|
@@ -2008,14 +2013,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2008
2013
|
key: 2,
|
|
2009
2014
|
class: k(t.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
2010
2015
|
}, [...r[7] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : y("", !0)
|
|
2011
|
-
]))), 128)) : V.value.length === 0 ? (P(), b("tr",
|
|
2016
|
+
]))), 128)) : V.value.length === 0 ? (P(), b("tr", On, [x("td", {
|
|
2012
2017
|
colspan: j.value.length + le.value,
|
|
2013
2018
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
2014
2019
|
}, [z(n.$slots, "empty", {}, () => [w(d, {
|
|
2015
2020
|
name: "search_off",
|
|
2016
2021
|
size: 36,
|
|
2017
2022
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
2018
|
-
}), x("p",
|
|
2023
|
+
}), x("p", An, H(t.emptyText ?? U(i).noResults), 1)], !0)], 8, kn)])) : (P(!0), b(p, { key: 2 }, R(V.value, (a) => (P(), b(p, { key: J(a) }, [x("tr", {
|
|
2019
2024
|
class: k([
|
|
2020
2025
|
"border-t border-outline-variant transition-colors duration-100",
|
|
2021
2026
|
"hover:bg-on-surface/4",
|
|
@@ -2047,7 +2052,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2047
2052
|
}, [w(Q, {
|
|
2048
2053
|
"model-value": X(a),
|
|
2049
2054
|
"onUpdate:modelValue": (e) => re(a)
|
|
2050
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
2055
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, Mn)) : y("", !0),
|
|
2051
2056
|
(P(!0), b(p, null, R(j.value, (e) => (P(), b("td", {
|
|
2052
2057
|
key: e.key,
|
|
2053
2058
|
class: k([
|
|
@@ -2065,11 +2070,11 @@ var Se = /* @__PURE__ */ T({
|
|
|
2065
2070
|
class: k(["text-right", t.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
2066
2071
|
onClick: r[4] ||= Z(() => {}, ["stop"])
|
|
2067
2072
|
}, [z(n.$slots, "row-actions", { row: a }, void 0, !0)], 2)) : y("", !0)
|
|
2068
|
-
], 10,
|
|
2073
|
+
], 10, jn), u.value ? (P(), b("tr", Nn, [x("td", {
|
|
2069
2074
|
colspan: j.value.length + le.value,
|
|
2070
2075
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest p-0"
|
|
2071
|
-
}, [x("div", { class: k(["dt-expand-grid", ce(a) ? "dt-expand-open" : ""]) }, [x("div",
|
|
2072
|
-
x("div",
|
|
2076
|
+
}, [x("div", { class: k(["dt-expand-grid", ce(a) ? "dt-expand-open" : ""]) }, [x("div", Fn, [x("div", In, [z(n.$slots, "row-expand", { row: a }, void 0, !0)])])], 2)], 8, Pn)])) : y("", !0)], 64))), 128))])])]),
|
|
2077
|
+
x("div", Ln, [x("span", Rn, H(B.value) + " " + H(t.recordsText ?? U(i).recordCount) + H(B.value === 1 ? "" : "s"), 1), w(fn, {
|
|
2073
2078
|
page: F.value,
|
|
2074
2079
|
"per-page": t.perPage,
|
|
2075
2080
|
total: B.value,
|
|
@@ -2081,19 +2086,19 @@ var Se = /* @__PURE__ */ T({
|
|
|
2081
2086
|
])])
|
|
2082
2087
|
]));
|
|
2083
2088
|
}
|
|
2084
|
-
}), [["__scopeId", "data-v-857139c7"]]),
|
|
2089
|
+
}), [["__scopeId", "data-v-857139c7"]]), Bn = { class: "flex flex-col gap-1" }, Vn = {
|
|
2085
2090
|
key: 0,
|
|
2086
2091
|
class: "flex-1 text-on-surface"
|
|
2087
|
-
},
|
|
2092
|
+
}, Hn = {
|
|
2088
2093
|
key: 1,
|
|
2089
2094
|
class: "flex-1 text-on-surface-variant"
|
|
2090
|
-
},
|
|
2095
|
+
}, Un = {
|
|
2091
2096
|
key: 0,
|
|
2092
2097
|
class: "px-4 text-body-small text-error"
|
|
2093
|
-
},
|
|
2098
|
+
}, Wn = {
|
|
2094
2099
|
key: 1,
|
|
2095
2100
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2096
|
-
},
|
|
2101
|
+
}, Gn = { class: "mb-3 flex items-center justify-between" }, Kn = { class: "text-title-small font-medium capitalize text-on-surface" }, qn = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Jn = { class: "grid grid-cols-7 gap-0.5" }, Yn = ["disabled", "onClick"], Xn = /* @__PURE__ */ T({
|
|
2097
2102
|
__name: "MDatePicker",
|
|
2098
2103
|
props: {
|
|
2099
2104
|
modelValue: {},
|
|
@@ -2215,7 +2220,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2215
2220
|
e ? (W(), setTimeout(() => document.addEventListener("mousedown", G), 0)) : document.removeEventListener("mousedown", G);
|
|
2216
2221
|
}), M(() => window.addEventListener("scroll", ee, !0)), N(() => {
|
|
2217
2222
|
window.removeEventListener("scroll", ee, !0), document.removeEventListener("mousedown", G);
|
|
2218
|
-
}), (t, n) => (P(), b("div",
|
|
2223
|
+
}), (t, n) => (P(), b("div", Bn, [
|
|
2219
2224
|
x("div", {
|
|
2220
2225
|
ref_key: "triggerEl",
|
|
2221
2226
|
ref: l,
|
|
@@ -2231,7 +2236,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2231
2236
|
size: 20,
|
|
2232
2237
|
class: "shrink-0 text-on-surface-variant"
|
|
2233
2238
|
}),
|
|
2234
|
-
V.value ? (P(), b("span",
|
|
2239
|
+
V.value ? (P(), b("span", Vn, H(V.value), 1)) : (P(), b("span", Hn, H(r.placeholder || r.label || U(o).selectDate), 1)),
|
|
2235
2240
|
r.modelValue ? (P(), v(d, {
|
|
2236
2241
|
key: 2,
|
|
2237
2242
|
name: "close",
|
|
@@ -2243,7 +2248,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2243
2248
|
key: 0,
|
|
2244
2249
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"])
|
|
2245
2250
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2246
|
-
r.error ? (P(), b("p",
|
|
2251
|
+
r.error ? (P(), b("p", Un, H(r.error), 1)) : r.hint ? (P(), b("p", Wn, H(r.hint), 1)) : y("", !0),
|
|
2247
2252
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2248
2253
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2249
2254
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2257,14 +2262,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2257
2262
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2258
2263
|
style: A(f.value)
|
|
2259
2264
|
}, [
|
|
2260
|
-
x("div",
|
|
2265
|
+
x("div", Gn, [
|
|
2261
2266
|
w(e, {
|
|
2262
2267
|
icon: "chevron_left",
|
|
2263
2268
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2264
2269
|
size: 36,
|
|
2265
2270
|
onClick: F
|
|
2266
2271
|
}, null, 8, ["label"]),
|
|
2267
|
-
x("span",
|
|
2272
|
+
x("span", Kn, H(T.value), 1),
|
|
2268
2273
|
w(e, {
|
|
2269
2274
|
icon: "chevron_right",
|
|
2270
2275
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2272,39 +2277,39 @@ var Se = /* @__PURE__ */ T({
|
|
|
2272
2277
|
onClick: I
|
|
2273
2278
|
}, null, 8, ["label"])
|
|
2274
2279
|
]),
|
|
2275
|
-
x("div",
|
|
2280
|
+
x("div", qn, [(P(!0), b(p, null, R(U(C), (e) => (P(), b("span", {
|
|
2276
2281
|
key: e,
|
|
2277
2282
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2278
2283
|
}, H(e), 1))), 128))]),
|
|
2279
|
-
x("div",
|
|
2284
|
+
x("div", Jn, [(P(!0), b(p, null, R(E.value, (e, t) => (P(), b("button", {
|
|
2280
2285
|
key: t,
|
|
2281
2286
|
type: "button",
|
|
2282
2287
|
class: k(["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 === r.modelValue ? "bg-primary text-on-primary" : j(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"]]),
|
|
2283
2288
|
disabled: e.disabled,
|
|
2284
2289
|
onClick: (t) => z(e)
|
|
2285
|
-
}, H(e.date), 11,
|
|
2290
|
+
}, H(e.date), 11, Yn))), 128))])
|
|
2286
2291
|
], 4)) : y("", !0)]),
|
|
2287
2292
|
_: 1
|
|
2288
2293
|
})]))
|
|
2289
2294
|
]));
|
|
2290
2295
|
}
|
|
2291
|
-
}),
|
|
2296
|
+
}), Zn = { class: "flex flex-col gap-1" }, Qn = {
|
|
2292
2297
|
key: 0,
|
|
2293
2298
|
class: "flex-1 text-on-surface"
|
|
2294
|
-
},
|
|
2299
|
+
}, $n = {
|
|
2295
2300
|
key: 1,
|
|
2296
2301
|
class: "flex-1 text-on-surface-variant"
|
|
2297
|
-
},
|
|
2302
|
+
}, er = {
|
|
2298
2303
|
key: 0,
|
|
2299
2304
|
class: "px-4 text-body-small text-error"
|
|
2300
|
-
},
|
|
2305
|
+
}, tr = {
|
|
2301
2306
|
key: 1,
|
|
2302
2307
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2303
|
-
},
|
|
2308
|
+
}, nr = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, rr = { class: "mb-3 flex items-center justify-between" }, ir = { class: "text-title-small font-medium capitalize text-on-surface" }, ar = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, or = { class: "grid grid-cols-7 gap-0.5" }, sr = [
|
|
2304
2309
|
"disabled",
|
|
2305
2310
|
"onMouseenter",
|
|
2306
2311
|
"onClick"
|
|
2307
|
-
],
|
|
2312
|
+
], cr = /* @__PURE__ */ T({
|
|
2308
2313
|
__name: "MDateRangePicker",
|
|
2309
2314
|
props: {
|
|
2310
2315
|
modelValue: {},
|
|
@@ -2443,7 +2448,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2443
2448
|
e ? (f.value = a.modelValue.start && !a.modelValue.end ? "end" : "start", te(), setTimeout(() => document.addEventListener("mousedown", K), 0)) : document.removeEventListener("mousedown", K);
|
|
2444
2449
|
}), M(() => window.addEventListener("scroll", J, !0)), N(() => {
|
|
2445
2450
|
window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", K);
|
|
2446
|
-
}), (t, n) => (P(), b("div",
|
|
2451
|
+
}), (t, n) => (P(), b("div", Zn, [
|
|
2447
2452
|
x("div", {
|
|
2448
2453
|
ref_key: "triggerEl",
|
|
2449
2454
|
ref: l,
|
|
@@ -2459,7 +2464,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2459
2464
|
size: 20,
|
|
2460
2465
|
class: "shrink-0 text-on-surface-variant"
|
|
2461
2466
|
}),
|
|
2462
|
-
G.value ? (P(), b("span",
|
|
2467
|
+
G.value ? (P(), b("span", Qn, H(G.value), 1)) : (P(), b("span", $n, H(r.label || r.placeholder || U(o).selectRange), 1)),
|
|
2463
2468
|
r.modelValue.start || r.modelValue.end ? (P(), v(d, {
|
|
2464
2469
|
key: 2,
|
|
2465
2470
|
name: "close",
|
|
@@ -2471,7 +2476,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2471
2476
|
key: 0,
|
|
2472
2477
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"])
|
|
2473
2478
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2474
|
-
r.error ? (P(), b("p",
|
|
2479
|
+
r.error ? (P(), b("p", er, H(r.error), 1)) : r.hint ? (P(), b("p", tr, H(r.hint), 1)) : y("", !0),
|
|
2475
2480
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2476
2481
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2477
2482
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2485,15 +2490,15 @@ var Se = /* @__PURE__ */ T({
|
|
|
2485
2490
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2486
2491
|
style: A(S.value)
|
|
2487
2492
|
}, [
|
|
2488
|
-
x("p",
|
|
2489
|
-
x("div",
|
|
2493
|
+
x("p", nr, H(f.value === "start" ? r.pickStartText ?? U(o).pickStart : r.pickEndText ?? U(o).pickEnd), 1),
|
|
2494
|
+
x("div", rr, [
|
|
2490
2495
|
w(e, {
|
|
2491
2496
|
icon: "chevron_left",
|
|
2492
2497
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2493
2498
|
size: 36,
|
|
2494
2499
|
onClick: V
|
|
2495
2500
|
}, null, 8, ["label"]),
|
|
2496
|
-
x("span",
|
|
2501
|
+
x("span", ir, H(D.value), 1),
|
|
2497
2502
|
w(e, {
|
|
2498
2503
|
icon: "chevron_right",
|
|
2499
2504
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2501,34 +2506,34 @@ var Se = /* @__PURE__ */ T({
|
|
|
2501
2506
|
onClick: W
|
|
2502
2507
|
}, null, 8, ["label"])
|
|
2503
2508
|
]),
|
|
2504
|
-
x("div",
|
|
2509
|
+
x("div", ar, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("span", {
|
|
2505
2510
|
key: e,
|
|
2506
2511
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2507
2512
|
}, H(e), 1))), 128))]),
|
|
2508
|
-
x("div",
|
|
2513
|
+
x("div", or, [(P(!0), b(p, null, R(O.value, (e, t) => (P(), b("button", {
|
|
2509
2514
|
key: t,
|
|
2510
2515
|
type: "button",
|
|
2511
2516
|
class: k(["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 === r.modelValue.start || e.iso === r.modelValue.end ? "bg-primary text-on-primary rounded-full" : B(e.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : e.iso === U(I) ? "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"]]),
|
|
2512
2517
|
disabled: e.disabled,
|
|
2513
2518
|
onMouseenter: (t) => f.value === "end" && (g.value = e.iso),
|
|
2514
2519
|
onClick: (t) => z(e)
|
|
2515
|
-
}, H(e.date), 43,
|
|
2520
|
+
}, H(e.date), 43, sr))), 128))])
|
|
2516
2521
|
], 4)) : y("", !0)]),
|
|
2517
2522
|
_: 1
|
|
2518
2523
|
})]))
|
|
2519
2524
|
]));
|
|
2520
2525
|
}
|
|
2521
|
-
}),
|
|
2526
|
+
}), lr = {
|
|
2522
2527
|
key: 0,
|
|
2523
2528
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
2524
|
-
},
|
|
2529
|
+
}, ur = {
|
|
2525
2530
|
key: 1,
|
|
2526
2531
|
class: "h-px flex-1 bg-outline-variant"
|
|
2527
|
-
},
|
|
2532
|
+
}, dr = {
|
|
2528
2533
|
key: 1,
|
|
2529
2534
|
class: "w-px self-stretch bg-outline-variant",
|
|
2530
2535
|
role: "separator"
|
|
2531
|
-
},
|
|
2536
|
+
}, fr = /* @__PURE__ */ T({
|
|
2532
2537
|
__name: "MDivider",
|
|
2533
2538
|
props: {
|
|
2534
2539
|
vertical: {
|
|
@@ -2542,25 +2547,25 @@ var Se = /* @__PURE__ */ T({
|
|
|
2542
2547
|
}
|
|
2543
2548
|
},
|
|
2544
2549
|
setup(e) {
|
|
2545
|
-
return (t, n) => e.vertical ? (P(), b("div",
|
|
2550
|
+
return (t, n) => e.vertical ? (P(), b("div", dr)) : (P(), b("div", {
|
|
2546
2551
|
key: 0,
|
|
2547
2552
|
class: k(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
2548
2553
|
role: "separator"
|
|
2549
2554
|
}, [
|
|
2550
2555
|
n[0] ||= x("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
2551
|
-
e.label ? (P(), b("span",
|
|
2552
|
-
e.label ? (P(), b("div",
|
|
2556
|
+
e.label ? (P(), b("span", lr, H(e.label), 1)) : y("", !0),
|
|
2557
|
+
e.label ? (P(), b("div", ur)) : y("", !0)
|
|
2553
2558
|
], 2));
|
|
2554
2559
|
}
|
|
2555
|
-
}),
|
|
2560
|
+
}), pr = {
|
|
2556
2561
|
class: "flex flex-col",
|
|
2557
2562
|
role: "listbox"
|
|
2558
|
-
},
|
|
2563
|
+
}, mr = [
|
|
2559
2564
|
"draggable",
|
|
2560
2565
|
"onDragstart",
|
|
2561
2566
|
"onDragover",
|
|
2562
2567
|
"onDrop"
|
|
2563
|
-
],
|
|
2568
|
+
], hr = ["onDragstart"], gr = { class: "min-w-0 flex-1" }, _r = { class: "text-body-medium text-on-surface" }, vr = /* @__PURE__ */ T({
|
|
2564
2569
|
__name: "MDragDropList",
|
|
2565
2570
|
props: {
|
|
2566
2571
|
modelValue: {},
|
|
@@ -2604,7 +2609,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2604
2609
|
function m(e) {
|
|
2605
2610
|
return i.value === e ? "opacity-30" : a.value === e && i.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
2606
2611
|
}
|
|
2607
|
-
return (t, n) => (P(), b("div",
|
|
2612
|
+
return (t, n) => (P(), b("div", pr, [(P(!0), b(p, null, R(e.modelValue, (n, r) => (P(), b("div", {
|
|
2608
2613
|
key: n.id,
|
|
2609
2614
|
draggable: !e.handle,
|
|
2610
2615
|
class: k(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [m(r), !e.handle && "cursor-grab active:cursor-grabbing"]]),
|
|
@@ -2622,12 +2627,12 @@ var Se = /* @__PURE__ */ T({
|
|
|
2622
2627
|
}, [w(d, {
|
|
2623
2628
|
name: "drag_indicator",
|
|
2624
2629
|
size: 20
|
|
2625
|
-
})], 40,
|
|
2630
|
+
})], 40, hr)) : y("", !0), x("div", gr, [z(t.$slots, "default", {
|
|
2626
2631
|
item: n,
|
|
2627
2632
|
index: r
|
|
2628
|
-
}, () => [x("span",
|
|
2633
|
+
}, () => [x("span", _r, H(n.id), 1)])])], 42, mr))), 128))]));
|
|
2629
2634
|
}
|
|
2630
|
-
}),
|
|
2635
|
+
}), yr = ["aria-label", "role"], br = /* @__PURE__ */ T({
|
|
2631
2636
|
__name: "MEmoji",
|
|
2632
2637
|
props: {
|
|
2633
2638
|
emoji: {},
|
|
@@ -2644,9 +2649,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
2644
2649
|
}),
|
|
2645
2650
|
"aria-label": e.label,
|
|
2646
2651
|
role: e.label ? "img" : void 0
|
|
2647
|
-
}, H(e.emoji), 13,
|
|
2652
|
+
}, H(e.emoji), 13, yr));
|
|
2648
2653
|
}
|
|
2649
|
-
}),
|
|
2654
|
+
}), xr = [
|
|
2650
2655
|
{
|
|
2651
2656
|
id: "smileys",
|
|
2652
2657
|
label: "Smileys",
|
|
@@ -2713,14 +2718,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2713
2718
|
icon: "flag",
|
|
2714
2719
|
emojis: /* @__PURE__ */ "🏁.🚩.🎌.🏴.🏳️.🏳️🌈.🏳️⚧️.🏴☠️.🇦🇷.🇦🇺.🇧🇷.🇨🇦.🇨🇱.🇨🇳.🇨🇴.🇩🇪.🇪🇸.🇫🇷.🇬🇧.🇮🇹.🇯🇵.🇰🇷.🇲🇽.🇳🇱.🇵🇪.🇵🇹.🇷🇺.🇸🇪.🇺🇸.🇻🇪.🇪🇨.🇧🇴.🇵🇾.🇺🇾.🇨🇷.🇵🇦.🇨🇺.🇩🇴.🇬🇹.🇭🇳.🇳🇮.🇸🇻.🇵🇷.🇮🇳.🇮🇩.🇹🇷.🇵🇭.🇹🇭".split(".")
|
|
2715
2720
|
}
|
|
2716
|
-
],
|
|
2717
|
-
function
|
|
2718
|
-
let t = e ??
|
|
2721
|
+
], Sr = xr.flatMap((e) => e.emojis);
|
|
2722
|
+
function Cr(e) {
|
|
2723
|
+
let t = e ?? Sr;
|
|
2719
2724
|
return t[Math.floor(Math.random() * t.length)];
|
|
2720
2725
|
}
|
|
2721
2726
|
//#endregion
|
|
2722
2727
|
//#region src/components/MEmojiButton.vue?vue&type=script&setup=true&lang.ts
|
|
2723
|
-
var
|
|
2728
|
+
var wr = ["aria-label", "disabled"], Tr = { class: "leading-none" }, Er = /* @__PURE__ */ T({
|
|
2724
2729
|
__name: "MEmojiButton",
|
|
2725
2730
|
props: {
|
|
2726
2731
|
emoji: { default: "😀" },
|
|
@@ -2740,10 +2745,10 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2740
2745
|
setup(e, { emit: t }) {
|
|
2741
2746
|
let n = e, r = t, i = L(n.emoji);
|
|
2742
2747
|
function a() {
|
|
2743
|
-
return n.category ?
|
|
2748
|
+
return n.category ? xr.find((e) => e.id === n.category)?.emojis ?? Sr : Sr;
|
|
2744
2749
|
}
|
|
2745
2750
|
function o() {
|
|
2746
|
-
!n.randomOnHover || n.disabled || (i.value =
|
|
2751
|
+
!n.randomOnHover || n.disabled || (i.value = Cr(a()));
|
|
2747
2752
|
}
|
|
2748
2753
|
function s() {}
|
|
2749
2754
|
function c() {
|
|
@@ -2762,15 +2767,15 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2762
2767
|
onMouseenter: o,
|
|
2763
2768
|
onMouseleave: s,
|
|
2764
2769
|
onClick: c
|
|
2765
|
-
}, [x("span",
|
|
2770
|
+
}, [x("span", Tr, H(i.value), 1)], 46, wr));
|
|
2766
2771
|
}
|
|
2767
|
-
}),
|
|
2772
|
+
}), Dr = { class: "flex w-full flex-col overflow-hidden rounded-xl border border-outline-variant bg-surface-container" }, Or = {
|
|
2768
2773
|
key: 0,
|
|
2769
2774
|
class: "px-3 pt-3"
|
|
2770
|
-
},
|
|
2775
|
+
}, kr = { class: "flex gap-0.5 overflow-x-auto border-b border-outline-variant px-2 py-1.5" }, Ar = ["title", "onClick"], jr = { class: "sticky -top-px z-10 -mx-2 bg-surface-container px-3 py-1.5 text-label-medium text-on-surface-variant" }, Mr = ["onClick"], Nr = {
|
|
2771
2776
|
key: 0,
|
|
2772
2777
|
class: "py-8 text-center text-body-medium text-on-surface-variant"
|
|
2773
|
-
},
|
|
2778
|
+
}, Pr = /* @__PURE__ */ T({
|
|
2774
2779
|
__name: "MEmojiSelector",
|
|
2775
2780
|
props: {
|
|
2776
2781
|
categories: {},
|
|
@@ -2783,7 +2788,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2783
2788
|
},
|
|
2784
2789
|
emits: ["select"],
|
|
2785
2790
|
setup(e, { emit: t }) {
|
|
2786
|
-
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ?
|
|
2791
|
+
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ? xr.filter((e) => n.categories.includes(e.id)) : xr), u = _(() => {
|
|
2787
2792
|
if (!i.value) return l.value;
|
|
2788
2793
|
let e = i.value.toLowerCase();
|
|
2789
2794
|
return l.value.map((t) => ({
|
|
@@ -2805,15 +2810,15 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2805
2810
|
function h(e, t) {
|
|
2806
2811
|
t && (c.value[e] = t);
|
|
2807
2812
|
}
|
|
2808
|
-
return (t, n) => (P(), b("div",
|
|
2809
|
-
e.search ? (P(), b("div",
|
|
2813
|
+
return (t, n) => (P(), b("div", Dr, [
|
|
2814
|
+
e.search ? (P(), b("div", Or, [w(s, {
|
|
2810
2815
|
modelValue: i.value,
|
|
2811
2816
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
2812
2817
|
label: "Search",
|
|
2813
2818
|
"leading-icon": "search",
|
|
2814
2819
|
variant: "outlined"
|
|
2815
2820
|
}, null, 8, ["modelValue"])])) : y("", !0),
|
|
2816
|
-
x("div",
|
|
2821
|
+
x("div", kr, [(P(!0), b(p, null, R(l.value, (e) => (P(), b("button", {
|
|
2817
2822
|
key: e.id,
|
|
2818
2823
|
type: "button",
|
|
2819
2824
|
title: e.label,
|
|
@@ -2822,7 +2827,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2822
2827
|
}, [w(d, {
|
|
2823
2828
|
name: e.icon,
|
|
2824
2829
|
size: 20
|
|
2825
|
-
}, null, 8, ["name"])], 10,
|
|
2830
|
+
}, null, 8, ["name"])], 10, Ar))), 128))]),
|
|
2826
2831
|
x("div", {
|
|
2827
2832
|
ref_key: "scrollContainer",
|
|
2828
2833
|
ref: o,
|
|
@@ -2832,7 +2837,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2832
2837
|
key: t.id,
|
|
2833
2838
|
ref_for: !0,
|
|
2834
2839
|
ref: (e) => h(t.id, e)
|
|
2835
|
-
}, [x("p",
|
|
2840
|
+
}, [x("p", jr, H(t.label), 1), x("div", {
|
|
2836
2841
|
class: "grid gap-0.5",
|
|
2837
2842
|
style: A({ gridTemplateColumns: `repeat(${e.columns}, 1fr)` })
|
|
2838
2843
|
}, [(P(!0), b(p, null, R(t.emojis, (t) => (P(), b("button", {
|
|
@@ -2844,10 +2849,10 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2844
2849
|
height: `${e.emojiSize + 10}px`
|
|
2845
2850
|
}),
|
|
2846
2851
|
onClick: (e) => m(t)
|
|
2847
|
-
}, H(t), 13,
|
|
2852
|
+
}, H(t), 13, Mr))), 128))], 4)], 512))), 128)), i.value && u.value.length === 0 ? (P(), b("p", Nr, " No results ")) : y("", !0)], 512)
|
|
2848
2853
|
]));
|
|
2849
2854
|
}
|
|
2850
|
-
}),
|
|
2855
|
+
}), Fr = /* @__PURE__ */ T({
|
|
2851
2856
|
__name: "MEmptyState",
|
|
2852
2857
|
props: {
|
|
2853
2858
|
icon: { default: "inbox" },
|
|
@@ -2872,13 +2877,13 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2872
2877
|
}, [z(t.$slots, "actions")], 2)) : y("", !0)
|
|
2873
2878
|
], 2));
|
|
2874
2879
|
}
|
|
2875
|
-
}),
|
|
2880
|
+
}), Ir = ["aria-expanded", "disabled"], Lr = { class: "flex-1 min-w-0" }, Rr = { class: "text-body-large font-medium text-on-surface" }, zr = {
|
|
2876
2881
|
key: 0,
|
|
2877
2882
|
class: "text-body-small text-on-surface-variant"
|
|
2878
|
-
},
|
|
2883
|
+
}, Br = {
|
|
2879
2884
|
key: 0,
|
|
2880
2885
|
class: "expand-grid"
|
|
2881
|
-
},
|
|
2886
|
+
}, Vr = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, Hr = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
2882
2887
|
__name: "MExpansionPanel",
|
|
2883
2888
|
props: {
|
|
2884
2889
|
title: {},
|
|
@@ -2913,24 +2918,24 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
2913
2918
|
size: 22,
|
|
2914
2919
|
class: "shrink-0 text-on-surface-variant"
|
|
2915
2920
|
}, null, 8, ["name"])) : y("", !0),
|
|
2916
|
-
x("div",
|
|
2921
|
+
x("div", Lr, [x("p", Rr, H(e.title), 1), e.subtitle ? (P(), b("p", zr, H(e.subtitle), 1)) : y("", !0)]),
|
|
2917
2922
|
w(d, {
|
|
2918
2923
|
name: "expand_more",
|
|
2919
2924
|
size: 22,
|
|
2920
2925
|
class: k(["shrink-0 text-on-surface-variant transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
2921
2926
|
}, null, 8, ["class"])
|
|
2922
|
-
], 10,
|
|
2923
|
-
default: Y(() => [a.value ? (P(), b("div",
|
|
2927
|
+
], 10, Ir), w(h, { name: "expand" }, {
|
|
2928
|
+
default: Y(() => [a.value ? (P(), b("div", Br, [x("div", Vr, [z(t.$slots, "default", {}, void 0, !0)])])) : y("", !0)]),
|
|
2924
2929
|
_: 3
|
|
2925
2930
|
})], 2));
|
|
2926
2931
|
}
|
|
2927
|
-
}), [["__scopeId", "data-v-89e4475b"]]),
|
|
2932
|
+
}), [["__scopeId", "data-v-89e4475b"]]), Ur = {
|
|
2928
2933
|
key: 0,
|
|
2929
2934
|
class: "text-label-large font-medium"
|
|
2930
|
-
},
|
|
2935
|
+
}, Wr = ["data-tick"], Gr = {
|
|
2931
2936
|
key: 0,
|
|
2932
2937
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
2933
|
-
}, $ = 40,
|
|
2938
|
+
}, $ = 40, Kr = 8, qr = /* @__PURE__ */ T({
|
|
2934
2939
|
__name: "MFab",
|
|
2935
2940
|
props: {
|
|
2936
2941
|
icon: {},
|
|
@@ -3002,7 +3007,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3002
3007
|
zIndex: "1000"
|
|
3003
3008
|
};
|
|
3004
3009
|
}
|
|
3005
|
-
let l = f.value / 2 +
|
|
3010
|
+
let l = f.value / 2 + Kr + $ / 2 + e * 48, u = {
|
|
3006
3011
|
up: {
|
|
3007
3012
|
top: `${i - l - $ / 2}px`,
|
|
3008
3013
|
left: `${r - $ / 2}px`
|
|
@@ -3076,7 +3081,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3076
3081
|
"name",
|
|
3077
3082
|
"size",
|
|
3078
3083
|
"class"
|
|
3079
|
-
]), e.label ? (P(), b("span",
|
|
3084
|
+
]), e.label ? (P(), b("span", Ur, H(e.label), 1)) : y("", !0)]),
|
|
3080
3085
|
_: 1
|
|
3081
3086
|
}, 40, [
|
|
3082
3087
|
"to",
|
|
@@ -3086,11 +3091,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3086
3091
|
]))], 512), (P(), v(m, { to: "body" }, [s.value ? (P(), b(p, { key: 0 }, [x("span", {
|
|
3087
3092
|
"data-tick": C.value,
|
|
3088
3093
|
class: "hidden"
|
|
3089
|
-
}, null, 8,
|
|
3094
|
+
}, null, 8, Wr), (P(!0), b(p, null, R(e.items, (t, n) => (P(), b("div", {
|
|
3090
3095
|
key: n,
|
|
3091
3096
|
style: A(g(n)),
|
|
3092
3097
|
class: k(["flex items-center gap-3", S.value ? "flex-row-reverse" : ""])
|
|
3093
|
-
}, [t.label && S.value ? (P(), b("span",
|
|
3098
|
+
}, [t.label && S.value ? (P(), b("span", Gr, H(t.label), 1)) : y("", !0), (P(), v(V(t.to ? "RouterLink" : "button"), {
|
|
3094
3099
|
to: t.to || void 0,
|
|
3095
3100
|
type: t.to ? void 0 : "button",
|
|
3096
3101
|
class: k(["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]", c[e.color]]),
|
|
@@ -3113,17 +3118,17 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3113
3118
|
"onPointerdown"
|
|
3114
3119
|
]))], 6))), 128))], 64)) : y("", !0)]))], 64));
|
|
3115
3120
|
}
|
|
3116
|
-
}),
|
|
3121
|
+
}), Jr = { class: "flex flex-col gap-3" }, Yr = { class: "text-center" }, Xr = { class: "text-body-large text-on-surface" }, Zr = { class: "font-medium text-primary" }, Qr = {
|
|
3117
3122
|
key: 0,
|
|
3118
3123
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
3119
|
-
},
|
|
3124
|
+
}, $r = { key: 0 }, ei = { key: 1 }, ti = { key: 2 }, ni = [
|
|
3120
3125
|
"accept",
|
|
3121
3126
|
"multiple",
|
|
3122
3127
|
"disabled"
|
|
3123
|
-
],
|
|
3128
|
+
], ri = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, ii = ["src"], ai = { class: "min-w-0 flex-1" }, oi = { class: "truncate text-body-medium text-on-surface" }, si = { class: "text-body-small text-on-surface-variant" }, ci = {
|
|
3124
3129
|
key: 0,
|
|
3125
3130
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
3126
|
-
},
|
|
3131
|
+
}, li = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
3127
3132
|
__name: "MFileUpload",
|
|
3128
3133
|
props: {
|
|
3129
3134
|
accept: {},
|
|
@@ -3175,7 +3180,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3175
3180
|
function O() {
|
|
3176
3181
|
a.disabled || u.value?.click();
|
|
3177
3182
|
}
|
|
3178
|
-
return (n, r) => (P(), b("div",
|
|
3183
|
+
return (n, r) => (P(), b("div", Jr, [
|
|
3179
3184
|
x("div", {
|
|
3180
3185
|
class: k(["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" : l.value ? "border-primary bg-primary-container/20" : "border-outline-variant bg-surface-container-lowest hover:border-primary/60 hover:bg-surface-container"]]),
|
|
3181
3186
|
onClick: O,
|
|
@@ -3187,10 +3192,10 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3187
3192
|
name: l.value ? "downloading" : "cloud_upload",
|
|
3188
3193
|
size: 40,
|
|
3189
3194
|
class: "text-on-surface-variant"
|
|
3190
|
-
}, null, 8, ["name"]), x("div",
|
|
3191
|
-
t.accept ? (P(), b("span",
|
|
3192
|
-
t.accept && t.maxSize ? (P(), b("span",
|
|
3193
|
-
t.maxSize ? (P(), b("span",
|
|
3195
|
+
}, null, 8, ["name"]), x("div", Yr, [z(n.$slots, "dropzone", {}, () => [x("p", Xr, [C(H(t.dropText ?? U(i).dropText) + " ", 1), x("span", Zr, H(t.selectText ?? U(i).selectText), 1)]), t.accept || t.maxSize ? (P(), b("p", Qr, [
|
|
3196
|
+
t.accept ? (P(), b("span", $r, H(t.accept), 1)) : y("", !0),
|
|
3197
|
+
t.accept && t.maxSize ? (P(), b("span", ei, " · ")) : y("", !0),
|
|
3198
|
+
t.maxSize ? (P(), b("span", ti, H(t.maxSizePrefix ?? U(i).maxSizePrefix) + " " + H(h(t.maxSize)), 1)) : y("", !0)
|
|
3194
3199
|
])) : y("", !0)], !0)])], 34),
|
|
3195
3200
|
x("input", {
|
|
3196
3201
|
ref_key: "inputRef",
|
|
@@ -3201,7 +3206,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3201
3206
|
multiple: t.multiple,
|
|
3202
3207
|
disabled: t.disabled,
|
|
3203
3208
|
onChange: E
|
|
3204
|
-
}, null, 40,
|
|
3209
|
+
}, null, 40, ni),
|
|
3205
3210
|
w(g, {
|
|
3206
3211
|
name: "m3-file",
|
|
3207
3212
|
tag: "div",
|
|
@@ -3211,20 +3216,20 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3211
3216
|
key: n.id,
|
|
3212
3217
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
3213
3218
|
}, [
|
|
3214
|
-
x("div",
|
|
3219
|
+
x("div", ri, [n.preview ? (P(), b("img", {
|
|
3215
3220
|
key: 0,
|
|
3216
3221
|
src: n.preview,
|
|
3217
3222
|
class: "h-full w-full object-cover"
|
|
3218
|
-
}, null, 8,
|
|
3223
|
+
}, null, 8, ii)) : (P(), v(d, {
|
|
3219
3224
|
key: 1,
|
|
3220
3225
|
name: "description",
|
|
3221
3226
|
size: 24,
|
|
3222
3227
|
class: "text-on-surface-variant"
|
|
3223
3228
|
}))]),
|
|
3224
|
-
x("div",
|
|
3225
|
-
x("p",
|
|
3226
|
-
x("p",
|
|
3227
|
-
n.status === "uploading" ? (P(), b("div",
|
|
3229
|
+
x("div", ai, [
|
|
3230
|
+
x("p", oi, H(n.file.name), 1),
|
|
3231
|
+
x("p", si, H(h(n.file.size)), 1),
|
|
3232
|
+
n.status === "uploading" ? (P(), b("div", ci, [x("div", {
|
|
3228
3233
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
3229
3234
|
style: A({ width: `${n.progress}%` })
|
|
3230
3235
|
}, null, 4)])) : y("", !0)
|
|
@@ -3254,11 +3259,13 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3254
3259
|
})
|
|
3255
3260
|
]));
|
|
3256
3261
|
}
|
|
3257
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
3262
|
+
}), [["__scopeId", "data-v-6b150427"]]), ui = /* @__PURE__ */ T({
|
|
3258
3263
|
__name: "MFixed",
|
|
3259
3264
|
props: {
|
|
3260
3265
|
placement: {},
|
|
3261
3266
|
offset: { default: 0 },
|
|
3267
|
+
offsetX: {},
|
|
3268
|
+
offsetY: {},
|
|
3262
3269
|
top: {},
|
|
3263
3270
|
right: {},
|
|
3264
3271
|
bottom: {},
|
|
@@ -3281,11 +3288,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3281
3288
|
zIndex: t.zIndex
|
|
3282
3289
|
};
|
|
3283
3290
|
if (t.placement) {
|
|
3284
|
-
let e = n(t.offset),
|
|
3291
|
+
let e = n(t.offsetY ?? t.offset), r = n(t.offsetX ?? t.offset), [i, a] = t.placement.split("-"), o = {
|
|
3285
3292
|
position: "fixed",
|
|
3286
3293
|
zIndex: t.zIndex == null ? void 0 : String(t.zIndex)
|
|
3287
3294
|
};
|
|
3288
|
-
return
|
|
3295
|
+
return i === "top" ? o.top = e : i === "bottom" ? o.bottom = e : (o.top = "50%", o.transform = "translateY(-50%)"), a === "left" ? o.left = r : a === "right" ? o.right = r : (o.left = "50%", o.transform = o.transform ? "translate(-50%, -50%)" : "translateX(-50%)"), o;
|
|
3289
3296
|
}
|
|
3290
3297
|
return {
|
|
3291
3298
|
position: "fixed",
|
|
@@ -3298,7 +3305,40 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3298
3305
|
});
|
|
3299
3306
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
3300
3307
|
}
|
|
3301
|
-
}),
|
|
3308
|
+
}), di = {
|
|
3309
|
+
key: 0,
|
|
3310
|
+
class: "px-6 pt-6 pb-2 sm:px-8 lg:px-12"
|
|
3311
|
+
}, fi = {
|
|
3312
|
+
key: 1,
|
|
3313
|
+
class: "px-6 py-6 sm:px-8 lg:px-12"
|
|
3314
|
+
}, pi = {
|
|
3315
|
+
key: 2,
|
|
3316
|
+
class: "flex flex-wrap items-center gap-1 px-6 pb-4 sm:px-8 lg:px-12"
|
|
3317
|
+
}, mi = {
|
|
3318
|
+
key: 3,
|
|
3319
|
+
class: "border-t border-outline-variant px-6 py-4 sm:px-8 lg:px-12"
|
|
3320
|
+
}, hi = /* @__PURE__ */ T({
|
|
3321
|
+
__name: "MFooter",
|
|
3322
|
+
props: {
|
|
3323
|
+
bordered: { type: Boolean },
|
|
3324
|
+
surface: { default: "default" }
|
|
3325
|
+
},
|
|
3326
|
+
setup(e) {
|
|
3327
|
+
let t = {
|
|
3328
|
+
default: "bg-surface text-on-surface",
|
|
3329
|
+
container: "bg-surface-container text-on-surface",
|
|
3330
|
+
"container-low": "bg-surface-container-low text-on-surface",
|
|
3331
|
+
"container-high": "bg-surface-container-high text-on-surface",
|
|
3332
|
+
inverse: "bg-inverse-surface text-inverse-on-surface"
|
|
3333
|
+
};
|
|
3334
|
+
return (n, r) => (P(), b("footer", { class: k(["w-full", [t[e.surface], e.bordered ? "border-t border-outline-variant" : ""]]) }, [
|
|
3335
|
+
n.$slots.brand ? (P(), b("div", di, [z(n.$slots, "brand")])) : y("", !0),
|
|
3336
|
+
n.$slots.default ? (P(), b("div", fi, [z(n.$slots, "default")])) : y("", !0),
|
|
3337
|
+
n.$slots.social ? (P(), b("div", pi, [z(n.$slots, "social")])) : y("", !0),
|
|
3338
|
+
n.$slots.bottom ? (P(), b("div", mi, [z(n.$slots, "bottom")])) : y("", !0)
|
|
3339
|
+
], 2));
|
|
3340
|
+
}
|
|
3341
|
+
}), gi = /* @__PURE__ */ T({
|
|
3302
3342
|
__name: "MFlex",
|
|
3303
3343
|
props: {
|
|
3304
3344
|
direction: { default: "row" },
|
|
@@ -3350,7 +3390,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3350
3390
|
]);
|
|
3351
3391
|
return (e, t) => (P(), b("div", { class: k(o.value) }, [z(e.$slots, "default")], 2));
|
|
3352
3392
|
}
|
|
3353
|
-
}),
|
|
3393
|
+
}), _i = /* @__PURE__ */ T({
|
|
3354
3394
|
__name: "MFullscreen",
|
|
3355
3395
|
props: {
|
|
3356
3396
|
fixed: {
|
|
@@ -3367,7 +3407,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3367
3407
|
}));
|
|
3368
3408
|
return (e, t) => (P(), b("div", { style: A(n.value) }, [z(e.$slots, "default")], 4));
|
|
3369
3409
|
}
|
|
3370
|
-
}),
|
|
3410
|
+
}), vi = /* @__PURE__ */ T({
|
|
3371
3411
|
__name: "MGrid",
|
|
3372
3412
|
props: {
|
|
3373
3413
|
cols: { default: 1 },
|
|
@@ -3443,13 +3483,13 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3443
3483
|
]);
|
|
3444
3484
|
return (e, t) => (P(), b("div", { class: k(l.value) }, [z(e.$slots, "default")], 2));
|
|
3445
3485
|
}
|
|
3446
|
-
}),
|
|
3486
|
+
}), yi = {
|
|
3447
3487
|
key: 0,
|
|
3448
3488
|
class: "flex flex-col gap-4"
|
|
3449
|
-
},
|
|
3489
|
+
}, bi = {
|
|
3450
3490
|
key: 0,
|
|
3451
3491
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
3452
|
-
},
|
|
3492
|
+
}, xi = { class: "flex flex-col gap-1" }, Si = { class: "text-body-medium text-on-surface" }, Ci = { class: "flex items-center gap-0.5" }, wi = /* @__PURE__ */ T({
|
|
3453
3493
|
__name: "MHotkeys",
|
|
3454
3494
|
props: {
|
|
3455
3495
|
bindings: {},
|
|
@@ -3506,15 +3546,15 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3506
3546
|
}
|
|
3507
3547
|
return e;
|
|
3508
3548
|
};
|
|
3509
|
-
return (t, n) => e.showOverlay ? (P(), b("div",
|
|
3549
|
+
return (t, n) => e.showOverlay ? (P(), b("div", yi, [(P(!0), b(p, null, R(s(), ([e, t]) => (P(), b("div", { key: e }, [e ? (P(), b("p", bi, H(e), 1)) : y("", !0), x("div", xi, [(P(!0), b(p, null, R(t, (e) => (P(), b("div", {
|
|
3510
3550
|
key: e.keys,
|
|
3511
3551
|
class: k(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
3512
|
-
}, [x("span",
|
|
3552
|
+
}, [x("span", Si, H(e.label), 1), x("div", Ci, [(P(!0), b(p, null, R(e.keys.split("+"), (e, t) => (P(), b("kbd", {
|
|
3513
3553
|
key: t,
|
|
3514
3554
|
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"
|
|
3515
3555
|
}, H(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : y("", !0);
|
|
3516
3556
|
}
|
|
3517
|
-
}),
|
|
3557
|
+
}), Ti = { class: "flex items-center gap-3" }, Ei = { class: "text-body-medium text-on-surface-variant" }, Di = { class: "text-body-small text-on-surface-variant" }, Oi = /* @__PURE__ */ T({
|
|
3518
3558
|
__name: "MInfiniteScroll",
|
|
3519
3559
|
props: {
|
|
3520
3560
|
loading: {
|
|
@@ -3545,30 +3585,30 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3545
3585
|
ref_key: "sentinelRef",
|
|
3546
3586
|
ref: o,
|
|
3547
3587
|
class: "flex items-center justify-center py-4"
|
|
3548
|
-
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div",
|
|
3588
|
+
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div", Ti, [w(c, {
|
|
3549
3589
|
size: 20,
|
|
3550
3590
|
class: "text-primary"
|
|
3551
|
-
}), x("span",
|
|
3591
|
+
}), x("span", Ei, H(e.loadingText ?? U(r).loadingMore), 1)])]) : e.ended ? z(t.$slots, "end", { key: 1 }, () => [x("p", Di, H(e.endText ?? U(r).noMoreItems), 1)]) : z(t.$slots, "idle", { key: 2 })], 512)]));
|
|
3552
3592
|
}
|
|
3553
|
-
}),
|
|
3593
|
+
}), ki = {
|
|
3554
3594
|
key: 0,
|
|
3555
3595
|
class: "text-tertiary"
|
|
3556
|
-
},
|
|
3596
|
+
}, Ai = { class: "text-on-surface-variant" }, ji = {
|
|
3557
3597
|
key: 1,
|
|
3558
3598
|
class: "text-on-surface-variant/60"
|
|
3559
|
-
},
|
|
3599
|
+
}, Mi = {
|
|
3560
3600
|
key: 2,
|
|
3561
3601
|
class: "text-on-surface-variant"
|
|
3562
|
-
},
|
|
3602
|
+
}, Ni = {
|
|
3563
3603
|
key: 0,
|
|
3564
3604
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
3565
|
-
},
|
|
3605
|
+
}, Pi = { class: "shrink-0 text-primary" }, Fi = {
|
|
3566
3606
|
key: 0,
|
|
3567
3607
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
3568
|
-
},
|
|
3608
|
+
}, Ii = {
|
|
3569
3609
|
key: 1,
|
|
3570
3610
|
class: "ml-5 text-on-surface-variant"
|
|
3571
|
-
},
|
|
3611
|
+
}, Li = /* @__PURE__ */ T({
|
|
3572
3612
|
__name: "MJsonViewer",
|
|
3573
3613
|
props: {
|
|
3574
3614
|
data: {},
|
|
@@ -3609,17 +3649,17 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3609
3649
|
size: 16,
|
|
3610
3650
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
3611
3651
|
}, null, 8, ["name"]),
|
|
3612
|
-
e._depth === 0 || e.rootName ? (P(), b("span",
|
|
3613
|
-
x("span",
|
|
3614
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3615
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3652
|
+
e._depth === 0 || e.rootName ? (P(), b("span", ki, H(e._depth === 0 ? e.rootName : ""), 1)) : y("", !0),
|
|
3653
|
+
x("span", Ai, H(s.value), 1),
|
|
3654
|
+
n.value ? y("", !0) : (P(), b("span", ji, H(o.value) + " " + H(r.value === "array" ? "elementos" : "campos"), 1)),
|
|
3655
|
+
n.value ? y("", !0) : (P(), b("span", Mi, H(c.value), 1))
|
|
3616
3656
|
]),
|
|
3617
|
-
n.value ? (P(), b("div",
|
|
3657
|
+
n.value ? (P(), b("div", Ni, [(P(!0), b(p, null, R(a.value, (t) => (P(), b("div", {
|
|
3618
3658
|
key: t.key,
|
|
3619
3659
|
class: "flex items-start"
|
|
3620
3660
|
}, [
|
|
3621
|
-
x("span",
|
|
3622
|
-
r.value === "array" ? y("", !0) : (P(), b("span",
|
|
3661
|
+
x("span", Pi, H(r.value === "array" ? "" : `"${t.key}"`), 1),
|
|
3662
|
+
r.value === "array" ? y("", !0) : (P(), b("span", Fi, ":")),
|
|
3623
3663
|
t.value !== null && typeof t.value == "object" ? (P(), v(m, {
|
|
3624
3664
|
key: 1,
|
|
3625
3665
|
data: t.value,
|
|
@@ -3636,21 +3676,21 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3636
3676
|
class: k(l(t.value))
|
|
3637
3677
|
}, H(u(t.value)), 3))
|
|
3638
3678
|
]))), 128))])) : y("", !0),
|
|
3639
|
-
n.value ? (P(), b("span",
|
|
3679
|
+
n.value ? (P(), b("span", Ii, H(c.value), 1)) : y("", !0)
|
|
3640
3680
|
], 64)) : (P(), b("span", {
|
|
3641
3681
|
key: 1,
|
|
3642
3682
|
class: k(l(e.data))
|
|
3643
3683
|
}, H(u(e.data)), 3))], 2);
|
|
3644
3684
|
};
|
|
3645
3685
|
}
|
|
3646
|
-
}),
|
|
3686
|
+
}), Ri = { class: "flex gap-4 overflow-x-auto pb-2" }, zi = ["onDragover", "onDrop"], Bi = { class: "flex items-center gap-2 px-4 py-3" }, Vi = { class: "flex-1 text-title-small font-medium text-on-surface" }, Hi = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, Ui = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, Wi = [
|
|
3647
3687
|
"onDragstart",
|
|
3648
3688
|
"onDragover",
|
|
3649
3689
|
"onClick"
|
|
3650
|
-
],
|
|
3690
|
+
], Gi = { class: "text-body-medium text-on-surface" }, Ki = {
|
|
3651
3691
|
key: 0,
|
|
3652
3692
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
3653
|
-
},
|
|
3693
|
+
}, qi = /* @__PURE__ */ T({
|
|
3654
3694
|
__name: "MKanban",
|
|
3655
3695
|
props: { modelValue: {} },
|
|
3656
3696
|
emits: [
|
|
@@ -3709,20 +3749,20 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3709
3749
|
function f() {
|
|
3710
3750
|
i.value = null, a.value = null, o.value = null;
|
|
3711
3751
|
}
|
|
3712
|
-
return (t, n) => (P(), b("div",
|
|
3752
|
+
return (t, n) => (P(), b("div", Ri, [(P(!0), b(p, null, R(e.modelValue, (e) => (P(), b("div", {
|
|
3713
3753
|
key: e.id,
|
|
3714
3754
|
class: k(["flex w-72 shrink-0 flex-col rounded-xl bg-surface-container-low", a.value === e.id && i.value ? "ring-2 ring-primary ring-inset" : ""]),
|
|
3715
3755
|
onDragover: (t) => l(t, e.id),
|
|
3716
3756
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
3717
3757
|
onDrop: (t) => d(t, e.id)
|
|
3718
|
-
}, [x("div",
|
|
3758
|
+
}, [x("div", Bi, [
|
|
3719
3759
|
e.color ? (P(), b("div", {
|
|
3720
3760
|
key: 0,
|
|
3721
3761
|
class: k(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
3722
3762
|
}, null, 2)) : y("", !0),
|
|
3723
|
-
x("h3",
|
|
3724
|
-
x("span",
|
|
3725
|
-
]), x("div",
|
|
3763
|
+
x("h3", Vi, H(e.title), 1),
|
|
3764
|
+
x("span", Hi, H(e.cards.length), 1)
|
|
3765
|
+
]), x("div", Ui, [(P(!0), b(p, null, R(e.cards, (n, s) => (P(), b("div", {
|
|
3726
3766
|
key: n.id,
|
|
3727
3767
|
draggable: "true",
|
|
3728
3768
|
class: k(["cursor-grab rounded-lg bg-surface p-3 shadow-elevation-1 transition-all duration-150 active:cursor-grabbing", [i.value?.cardId === n.id ? "opacity-30" : "hover:shadow-elevation-2", o.value === s && a.value === e.id && i.value ? "border-t-2 border-primary" : ""]]),
|
|
@@ -3736,9 +3776,9 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3736
3776
|
}, [z(t.$slots, "card", {
|
|
3737
3777
|
card: n,
|
|
3738
3778
|
column: e
|
|
3739
|
-
}, () => [x("p",
|
|
3779
|
+
}, () => [x("p", Gi, H(n.id), 1)])], 42, Wi))), 128)), e.cards.length === 0 ? (P(), b("div", Ki, [...n[1] ||= [x("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : y("", !0)])], 42, zi))), 128))]));
|
|
3740
3780
|
}
|
|
3741
|
-
}),
|
|
3781
|
+
}), Ji = /* @__PURE__ */ T({
|
|
3742
3782
|
__name: "MList",
|
|
3743
3783
|
props: {
|
|
3744
3784
|
dense: {
|
|
@@ -3778,10 +3818,10 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3778
3818
|
class: k(i.value)
|
|
3779
3819
|
}, [z(e.$slots, "default")], 2));
|
|
3780
3820
|
}
|
|
3781
|
-
}),
|
|
3821
|
+
}), Yi = ["checked", "disabled"], Xi = {
|
|
3782
3822
|
key: 0,
|
|
3783
3823
|
class: "text-body-large text-on-surface"
|
|
3784
|
-
},
|
|
3824
|
+
}, Zi = /* @__PURE__ */ T({
|
|
3785
3825
|
__name: "MSwitch",
|
|
3786
3826
|
props: {
|
|
3787
3827
|
modelValue: { type: Boolean },
|
|
@@ -3803,7 +3843,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3803
3843
|
checked: e.modelValue,
|
|
3804
3844
|
disabled: e.disabled,
|
|
3805
3845
|
onChange: n[0] ||= (t) => r("update:modelValue", !e.modelValue)
|
|
3806
|
-
}, null, 40,
|
|
3846
|
+
}, null, 40, Yi), x("span", {
|
|
3807
3847
|
class: k(["absolute left-1 top-1/2 flex h-6 w-6 items-center justify-center rounded-full will-change-transform", e.modelValue ? "bg-on-primary shadow-sm" : "bg-outline"]),
|
|
3808
3848
|
style: A(i.value)
|
|
3809
3849
|
}, [w(h, {
|
|
@@ -3821,21 +3861,21 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3821
3861
|
class: "text-primary"
|
|
3822
3862
|
})) : y("", !0)]),
|
|
3823
3863
|
_: 1
|
|
3824
|
-
})], 6)], 2), e.label ? (P(), b("span",
|
|
3864
|
+
})], 6)], 2), e.label ? (P(), b("span", Xi, H(e.label), 1)) : y("", !0)], 2));
|
|
3825
3865
|
}
|
|
3826
|
-
}),
|
|
3866
|
+
}), Qi = {
|
|
3827
3867
|
key: 0,
|
|
3828
3868
|
role: "listitem"
|
|
3829
|
-
},
|
|
3869
|
+
}, $i = { class: "min-w-0 flex-1" }, ea = { class: "truncate text-body-large text-on-surface" }, ta = {
|
|
3830
3870
|
key: 0,
|
|
3831
3871
|
class: "mli-expand-grid"
|
|
3832
|
-
},
|
|
3872
|
+
}, na = { class: "mli-expand-body" }, ra = ["src"], ia = { class: "min-w-0 flex-1" }, aa = { class: "truncate text-body-large text-on-surface" }, oa = {
|
|
3833
3873
|
key: 1,
|
|
3834
3874
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
3835
|
-
},
|
|
3875
|
+
}, sa = {
|
|
3836
3876
|
key: 1,
|
|
3837
3877
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
3838
|
-
},
|
|
3878
|
+
}, ca = /* @__PURE__ */ T({
|
|
3839
3879
|
__name: "MListItem",
|
|
3840
3880
|
props: {
|
|
3841
3881
|
title: {},
|
|
@@ -3908,7 +3948,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3908
3948
|
function N() {
|
|
3909
3949
|
r("update:trailingValue", !n.trailingValue);
|
|
3910
3950
|
}
|
|
3911
|
-
return (t, n) => e.expandable ? (P(), b("li",
|
|
3951
|
+
return (t, n) => e.expandable ? (P(), b("li", Qi, [x("div", {
|
|
3912
3952
|
class: k(T.value),
|
|
3913
3953
|
onClick: M
|
|
3914
3954
|
}, [
|
|
@@ -3918,7 +3958,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3918
3958
|
size: 24,
|
|
3919
3959
|
class: "shrink-0 text-on-surface-variant"
|
|
3920
3960
|
}, null, 8, ["name"])) : y("", !0)]),
|
|
3921
|
-
x("div",
|
|
3961
|
+
x("div", $i, [z(t.$slots, "default", {}, () => [x("p", ea, H(e.title), 1), e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
3922
3962
|
key: 0,
|
|
3923
3963
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
3924
3964
|
}, H(e.subtitle), 3)) : y("", !0)])]),
|
|
@@ -3928,7 +3968,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3928
3968
|
class: "shrink-0 text-on-surface-variant"
|
|
3929
3969
|
}, null, 8, ["name"])
|
|
3930
3970
|
], 2), w(h, { name: "mli-expand" }, {
|
|
3931
|
-
default: Y(() => [o.value ? (P(), b("div",
|
|
3971
|
+
default: Y(() => [o.value ? (P(), b("div", ta, [x("div", na, [z(t.$slots, "children")])])) : y("", !0)]),
|
|
3932
3972
|
_: 3
|
|
3933
3973
|
})])) : (P(), v(V(O.value), D({
|
|
3934
3974
|
key: 1,
|
|
@@ -3953,7 +3993,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3953
3993
|
}, [w(d, {
|
|
3954
3994
|
name: e.icon,
|
|
3955
3995
|
size: 24
|
|
3956
|
-
}, null, 8, ["name"])], 2)) : f.value === "avatar" ? (P(), v(
|
|
3996
|
+
}, null, 8, ["name"])], 2)) : f.value === "avatar" ? (P(), v(Re, {
|
|
3957
3997
|
key: 2,
|
|
3958
3998
|
name: e.avatarName,
|
|
3959
3999
|
size: 40,
|
|
@@ -3963,25 +4003,25 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3963
4003
|
src: e.image,
|
|
3964
4004
|
alt: "",
|
|
3965
4005
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
3966
|
-
}, null, 8,
|
|
4006
|
+
}, null, 8, ra)) : f.value === "checkbox" ? (P(), v(Q, {
|
|
3967
4007
|
key: 4,
|
|
3968
4008
|
"model-value": u.value,
|
|
3969
4009
|
class: "shrink-0"
|
|
3970
4010
|
}, null, 8, ["model-value"])) : y("", !0)]),
|
|
3971
|
-
x("div",
|
|
3972
|
-
x("p",
|
|
4011
|
+
x("div", ia, [z(t.$slots, "default", {}, () => [
|
|
4012
|
+
x("p", aa, H(e.title), 1),
|
|
3973
4013
|
e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
3974
4014
|
key: 0,
|
|
3975
4015
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
3976
4016
|
}, H(e.subtitle), 3)) : y("", !0),
|
|
3977
|
-
e.description && c.value >= 3 ? (P(), b("p",
|
|
4017
|
+
e.description && c.value >= 3 ? (P(), b("p", oa, H(e.description), 1)) : y("", !0)
|
|
3978
4018
|
])]),
|
|
3979
4019
|
z(t.$slots, "trailing", {}, () => [p.value === "icon" ? (P(), v(d, {
|
|
3980
4020
|
key: 0,
|
|
3981
4021
|
name: e.trailingIcon,
|
|
3982
4022
|
size: 24,
|
|
3983
4023
|
class: "shrink-0 text-on-surface-variant"
|
|
3984
|
-
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span",
|
|
4024
|
+
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span", sa, H(e.trailingText), 1)) : p.value === "switch" ? (P(), v(Zi, {
|
|
3985
4025
|
key: 2,
|
|
3986
4026
|
"model-value": !!e.trailingValue,
|
|
3987
4027
|
"onUpdate:modelValue": N
|
|
@@ -3994,7 +4034,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
3994
4034
|
_: 3
|
|
3995
4035
|
}, 16, ["class"]));
|
|
3996
4036
|
}
|
|
3997
|
-
}),
|
|
4037
|
+
}), la = /* @__PURE__ */ T({
|
|
3998
4038
|
__name: "MListSubheader",
|
|
3999
4039
|
props: { inset: {
|
|
4000
4040
|
type: Boolean,
|
|
@@ -4006,16 +4046,16 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4006
4046
|
role: "presentation"
|
|
4007
4047
|
}, [z(t.$slots, "default")], 2));
|
|
4008
4048
|
}
|
|
4009
|
-
}),
|
|
4049
|
+
}), ua = {
|
|
4010
4050
|
key: 0,
|
|
4011
4051
|
class: "text-body-large text-on-surface-variant"
|
|
4012
|
-
},
|
|
4052
|
+
}, da = {
|
|
4013
4053
|
key: 1,
|
|
4014
4054
|
class: "relative"
|
|
4015
|
-
},
|
|
4055
|
+
}, fa = {
|
|
4016
4056
|
key: 0,
|
|
4017
4057
|
class: "text-body-medium text-on-surface-variant"
|
|
4018
|
-
},
|
|
4058
|
+
}, pa = /* @__PURE__ */ T({
|
|
4019
4059
|
__name: "MLoadingOverlay",
|
|
4020
4060
|
props: {
|
|
4021
4061
|
visible: { type: Boolean },
|
|
@@ -4048,11 +4088,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4048
4088
|
size: e.spinnerSize,
|
|
4049
4089
|
class: "text-primary"
|
|
4050
4090
|
}, null, 8, ["size"]),
|
|
4051
|
-
e.text ? (P(), b("p",
|
|
4091
|
+
e.text ? (P(), b("p", ua, H(e.text), 1)) : y("", !0),
|
|
4052
4092
|
z(t.$slots, "default")
|
|
4053
4093
|
], 2)) : y("", !0)]),
|
|
4054
4094
|
_: 3
|
|
4055
|
-
})])) : (P(), b("div",
|
|
4095
|
+
})])) : (P(), b("div", da, [z(t.$slots, "content"), w(h, {
|
|
4056
4096
|
"enter-active-class": "transition-opacity duration-200",
|
|
4057
4097
|
"enter-from-class": "opacity-0",
|
|
4058
4098
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -4066,13 +4106,13 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4066
4106
|
size: e.spinnerSize,
|
|
4067
4107
|
class: "text-primary"
|
|
4068
4108
|
}, null, 8, ["size"]),
|
|
4069
|
-
e.text ? (P(), b("p",
|
|
4109
|
+
e.text ? (P(), b("p", fa, H(e.text), 1)) : y("", !0),
|
|
4070
4110
|
z(t.$slots, "default")
|
|
4071
4111
|
], 2)) : y("", !0)]),
|
|
4072
4112
|
_: 3
|
|
4073
4113
|
})]));
|
|
4074
4114
|
}
|
|
4075
|
-
}),
|
|
4115
|
+
}), ma = /* @__PURE__ */ T({
|
|
4076
4116
|
__name: "MMasonry",
|
|
4077
4117
|
props: {
|
|
4078
4118
|
cols: { default: 2 },
|
|
@@ -4123,21 +4163,21 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4123
4163
|
class: "relative w-full"
|
|
4124
4164
|
}, [z(e.$slots, "default")], 512));
|
|
4125
4165
|
}
|
|
4126
|
-
}),
|
|
4166
|
+
}), ha = { class: "flex flex-col gap-1" }, ga = [
|
|
4127
4167
|
"id",
|
|
4128
4168
|
"value",
|
|
4129
4169
|
"disabled",
|
|
4130
4170
|
"required"
|
|
4131
|
-
],
|
|
4171
|
+
], _a = ["for"], va = {
|
|
4132
4172
|
key: 0,
|
|
4133
4173
|
class: "text-error"
|
|
4134
|
-
},
|
|
4174
|
+
}, ya = {
|
|
4135
4175
|
key: 0,
|
|
4136
4176
|
class: "px-4 text-body-small text-error"
|
|
4137
|
-
},
|
|
4177
|
+
}, ba = {
|
|
4138
4178
|
key: 1,
|
|
4139
4179
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4140
|
-
},
|
|
4180
|
+
}, xa = /* @__PURE__ */ T({
|
|
4141
4181
|
__name: "MMaskField",
|
|
4142
4182
|
props: {
|
|
4143
4183
|
modelValue: {},
|
|
@@ -4232,7 +4272,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4232
4272
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
4233
4273
|
].join(" ");
|
|
4234
4274
|
});
|
|
4235
|
-
return (t, n) => (P(), b("div",
|
|
4275
|
+
return (t, n) => (P(), b("div", ha, [x("div", {
|
|
4236
4276
|
ref_key: "fieldBgEl",
|
|
4237
4277
|
ref: s,
|
|
4238
4278
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4258,11 +4298,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4258
4298
|
class: k(S.value),
|
|
4259
4299
|
onInput: h,
|
|
4260
4300
|
onKeydown: g
|
|
4261
|
-
}, null, 42,
|
|
4301
|
+
}, null, 42, ga),
|
|
4262
4302
|
x("label", {
|
|
4263
4303
|
for: U(o),
|
|
4264
4304
|
class: k(T.value)
|
|
4265
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4305
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", va, "\xA0*")) : y("", !0)], 10, _a),
|
|
4266
4306
|
f.value ? (P(), b("button", {
|
|
4267
4307
|
key: 1,
|
|
4268
4308
|
type: "button",
|
|
@@ -4272,31 +4312,31 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4272
4312
|
name: "close",
|
|
4273
4313
|
size: 18
|
|
4274
4314
|
})], 2)) : y("", !0)
|
|
4275
|
-
], 6), e.error ? (P(), b("p",
|
|
4315
|
+
], 6), e.error ? (P(), b("p", ya, H(e.error), 1)) : e.hint ? (P(), b("p", ba, H(e.hint), 1)) : y("", !0)]));
|
|
4276
4316
|
}
|
|
4277
|
-
}),
|
|
4317
|
+
}), Sa = { class: "flex flex-col gap-1" }, Ca = [
|
|
4278
4318
|
"id",
|
|
4279
4319
|
"tabindex",
|
|
4280
4320
|
"aria-expanded"
|
|
4281
|
-
],
|
|
4321
|
+
], wa = ["onClick"], Ta = {
|
|
4282
4322
|
key: 0,
|
|
4283
4323
|
class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant"
|
|
4284
|
-
},
|
|
4324
|
+
}, Ea = {
|
|
4285
4325
|
key: 1,
|
|
4286
4326
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
4287
|
-
},
|
|
4327
|
+
}, Da = {
|
|
4288
4328
|
key: 0,
|
|
4289
4329
|
class: "text-error"
|
|
4290
|
-
},
|
|
4330
|
+
}, Oa = {
|
|
4291
4331
|
key: 0,
|
|
4292
4332
|
class: "px-4 text-body-small text-error"
|
|
4293
|
-
},
|
|
4333
|
+
}, ka = {
|
|
4294
4334
|
key: 1,
|
|
4295
4335
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4296
|
-
},
|
|
4336
|
+
}, Aa = {
|
|
4297
4337
|
key: 0,
|
|
4298
4338
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
4299
|
-
},
|
|
4339
|
+
}, ja = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, Ma = ["placeholder"], Na = { class: "flex flex-col py-1" }, Pa = { class: "text-body-large text-on-surface" }, Fa = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, Ia = /* @__PURE__ */ T({
|
|
4300
4340
|
__name: "MMultiSelect",
|
|
4301
4341
|
props: {
|
|
4302
4342
|
modelValue: { default: () => [] },
|
|
@@ -4414,7 +4454,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4414
4454
|
c.value ? a.error ? "text-error" : "text-primary" : a.error ? "text-error" : "text-on-surface-variant"
|
|
4415
4455
|
].join(" ");
|
|
4416
4456
|
});
|
|
4417
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
4457
|
+
return (t, n) => (P(), b(p, null, [x("div", Sa, [x("div", {
|
|
4418
4458
|
ref_key: "fieldEl",
|
|
4419
4459
|
ref: u,
|
|
4420
4460
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4450,8 +4490,8 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4450
4490
|
}, [w(d, {
|
|
4451
4491
|
name: "close",
|
|
4452
4492
|
size: 12
|
|
4453
|
-
})], 8,
|
|
4454
|
-
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4493
|
+
})], 8, wa)]))), 128)), B.value > 0 ? (P(), b("span", Ta, " +" + H(B.value), 1)) : y("", !0)], 64)) : c.value ? y("", !0) : (P(), b("span", Ea, H(e.placeholder), 1))], 42, Ca),
|
|
4494
|
+
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span", Da, "\xA0*")) : y("", !0)], 2),
|
|
4455
4495
|
e.clearable && j.value && !e.disabled ? (P(), b("button", {
|
|
4456
4496
|
key: 1,
|
|
4457
4497
|
type: "button",
|
|
@@ -4468,7 +4508,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4468
4508
|
size: 24,
|
|
4469
4509
|
class: "text-on-surface-variant"
|
|
4470
4510
|
}, null, 8, ["name"])], 2)
|
|
4471
|
-
], 6), e.error ? (P(), b("p",
|
|
4511
|
+
], 6), e.error ? (P(), b("p", Oa, H(e.error), 1)) : e.hint ? (P(), b("p", ka, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
4472
4512
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
4473
4513
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
4474
4514
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -4482,7 +4522,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4482
4522
|
ref: g,
|
|
4483
4523
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
4484
4524
|
style: A(T.value)
|
|
4485
|
-
}, [e.searchable ? (P(), b("div",
|
|
4525
|
+
}, [e.searchable ? (P(), b("div", Aa, [x("div", ja, [w(d, {
|
|
4486
4526
|
name: "search",
|
|
4487
4527
|
size: 16,
|
|
4488
4528
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -4493,7 +4533,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4493
4533
|
type: "text",
|
|
4494
4534
|
placeholder: e.searchPlaceholder ?? U(i).search,
|
|
4495
4535
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
4496
|
-
}, null, 8,
|
|
4536
|
+
}, null, 8, Ma), [[te, l.value]])])])) : y("", !0), x("div", Na, [(P(!0), b(p, null, R(F.value, (t, n) => (P(), b("label", {
|
|
4497
4537
|
key: n,
|
|
4498
4538
|
class: k(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
4499
4539
|
}, [w(Q, {
|
|
@@ -4504,11 +4544,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4504
4544
|
"model-value",
|
|
4505
4545
|
"disabled",
|
|
4506
4546
|
"onUpdate:modelValue"
|
|
4507
|
-
]), x("span",
|
|
4547
|
+
]), x("span", Pa, H(t.label), 1)], 2))), 128)), F.value.length === 0 ? z(t.$slots, "no-results", { key: 0 }, () => [x("p", Fa, H(e.noResultsText ?? U(i).noResults), 1)]) : y("", !0)])], 4)) : y("", !0)]),
|
|
4508
4548
|
_: 3
|
|
4509
4549
|
})]))], 64));
|
|
4510
4550
|
}
|
|
4511
|
-
}),
|
|
4551
|
+
}), La = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, Ra = ["onClick"], za = /* @__PURE__ */ T({
|
|
4512
4552
|
__name: "MNavigationBar",
|
|
4513
4553
|
props: {
|
|
4514
4554
|
modelValue: {},
|
|
@@ -4516,12 +4556,12 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4516
4556
|
},
|
|
4517
4557
|
emits: ["update:modelValue"],
|
|
4518
4558
|
setup(e) {
|
|
4519
|
-
return (t, n) => (P(), b("nav",
|
|
4559
|
+
return (t, n) => (P(), b("nav", La, [(P(!0), b(p, null, R(e.items, (n) => (P(), b("button", {
|
|
4520
4560
|
key: n.value,
|
|
4521
4561
|
type: "button",
|
|
4522
4562
|
class: k(["group flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 self-stretch transition-colors focus-visible:outline-none", n.value === e.modelValue ? "text-on-secondary-container" : "text-on-surface-variant"]),
|
|
4523
4563
|
onClick: (e) => t.$emit("update:modelValue", n.value)
|
|
4524
|
-
}, [x("span", { class: k(["inline-flex h-8 items-center justify-center rounded-2xl transition-all duration-200", n.value === e.modelValue ? "w-16 bg-secondary-container" : "w-0 bg-secondary-container/0 group-hover:w-16 group-hover:bg-on-surface/8"]) }, [n.badge == null ? n.badgeDot ? (P(), v(
|
|
4564
|
+
}, [x("span", { class: k(["inline-flex h-8 items-center justify-center rounded-2xl transition-all duration-200", n.value === e.modelValue ? "w-16 bg-secondary-container" : "w-0 bg-secondary-container/0 group-hover:w-16 group-hover:bg-on-surface/8"]) }, [n.badge == null ? n.badgeDot ? (P(), v(Ve, {
|
|
4525
4565
|
key: 1,
|
|
4526
4566
|
dot: ""
|
|
4527
4567
|
}, {
|
|
@@ -4534,7 +4574,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4534
4574
|
key: 2,
|
|
4535
4575
|
name: n.icon,
|
|
4536
4576
|
size: 24
|
|
4537
|
-
}, null, 8, ["name"])) : (P(), v(
|
|
4577
|
+
}, null, 8, ["name"])) : (P(), v(Ve, {
|
|
4538
4578
|
key: 0,
|
|
4539
4579
|
count: n.badge
|
|
4540
4580
|
}, {
|
|
@@ -4543,9 +4583,9 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4543
4583
|
size: 24
|
|
4544
4584
|
}, null, 8, ["name"])]),
|
|
4545
4585
|
_: 2
|
|
4546
|
-
}, 1032, ["count"]))], 2), x("span", { class: k(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, H(n.label), 3)], 10,
|
|
4586
|
+
}, 1032, ["count"]))], 2), x("span", { class: k(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, H(n.label), 3)], 10, Ra))), 128))]));
|
|
4547
4587
|
}
|
|
4548
|
-
}),
|
|
4588
|
+
}), Ba = { class: "flex flex-col gap-1" }, Va = [
|
|
4549
4589
|
"id",
|
|
4550
4590
|
"value",
|
|
4551
4591
|
"disabled",
|
|
@@ -4553,16 +4593,16 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4553
4593
|
"min",
|
|
4554
4594
|
"max",
|
|
4555
4595
|
"step"
|
|
4556
|
-
],
|
|
4596
|
+
], Ha = ["for"], Ua = {
|
|
4557
4597
|
key: 0,
|
|
4558
4598
|
class: "text-error"
|
|
4559
|
-
},
|
|
4599
|
+
}, Wa = {
|
|
4560
4600
|
key: 0,
|
|
4561
4601
|
class: "px-4 text-body-small text-error"
|
|
4562
|
-
},
|
|
4602
|
+
}, Ga = {
|
|
4563
4603
|
key: 1,
|
|
4564
4604
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4565
|
-
},
|
|
4605
|
+
}, Ka = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
4566
4606
|
__name: "MNumberField",
|
|
4567
4607
|
props: {
|
|
4568
4608
|
modelValue: { default: null },
|
|
@@ -4645,7 +4685,7 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4645
4685
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
4646
4686
|
].join(" ");
|
|
4647
4687
|
});
|
|
4648
|
-
return (t, r) => (P(), b("div",
|
|
4688
|
+
return (t, r) => (P(), b("div", Ba, [x("div", {
|
|
4649
4689
|
ref_key: "fieldBgEl",
|
|
4650
4690
|
ref: s,
|
|
4651
4691
|
class: k(["relative", n.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4671,11 +4711,11 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4671
4711
|
class: k(h.value),
|
|
4672
4712
|
onInput: u,
|
|
4673
4713
|
onKeydown: m
|
|
4674
|
-
}, null, 42,
|
|
4714
|
+
}, null, 42, Va),
|
|
4675
4715
|
x("label", {
|
|
4676
4716
|
for: U(o),
|
|
4677
4717
|
class: k(g.value)
|
|
4678
|
-
}, [C(H(n.label), 1), n.required ? (P(), b("span",
|
|
4718
|
+
}, [C(H(n.label), 1), n.required ? (P(), b("span", Ua, "\xA0*")) : y("", !0)], 10, Ha),
|
|
4679
4719
|
n.stepper ? (P(), b("div", {
|
|
4680
4720
|
key: 1,
|
|
4681
4721
|
class: k(["absolute right-1 flex items-center gap-0.5", n.variant === "filled" ? "top-[57%] -translate-y-1/2" : "top-[55%] -translate-y-1/2"])
|
|
@@ -4692,9 +4732,9 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4692
4732
|
disabled: n.disabled || n.max !== void 0 && (n.modelValue ?? 0) >= n.max,
|
|
4693
4733
|
onClick: f
|
|
4694
4734
|
}, null, 8, ["disabled"])], 2)) : y("", !0)
|
|
4695
|
-
], 6), n.error ? (P(), b("p",
|
|
4735
|
+
], 6), n.error ? (P(), b("p", Wa, H(n.error), 1)) : n.hint ? (P(), b("p", Ga, H(n.hint), 1)) : y("", !0)]));
|
|
4696
4736
|
}
|
|
4697
|
-
}), [["__scopeId", "data-v-9068433a"]]),
|
|
4737
|
+
}), [["__scopeId", "data-v-9068433a"]]), qa = T({
|
|
4698
4738
|
name: "MDrawerItemList",
|
|
4699
4739
|
components: { MIcon: d },
|
|
4700
4740
|
props: {
|
|
@@ -4769,8 +4809,8 @@ var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__
|
|
|
4769
4809
|
}).onfinish = t;
|
|
4770
4810
|
}
|
|
4771
4811
|
}
|
|
4772
|
-
}),
|
|
4773
|
-
function
|
|
4812
|
+
}), Ja = { key: 0 };
|
|
4813
|
+
function Ya(e, t, n, r, i, a) {
|
|
4774
4814
|
let o = B("MIcon"), s = B("MDrawerItemList");
|
|
4775
4815
|
return P(!0), b(p, null, R(e.items, (t) => (P(), b(p, { key: t.value }, [(P(), v(V(e.itemTag(t)), {
|
|
4776
4816
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -4810,7 +4850,7 @@ function Ka(e, t, n, r, i, a) {
|
|
|
4810
4850
|
onEnter: e.onEnter,
|
|
4811
4851
|
onLeave: e.onLeave
|
|
4812
4852
|
}, {
|
|
4813
|
-
default: Y(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div",
|
|
4853
|
+
default: Y(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div", Ja, [w(s, {
|
|
4814
4854
|
items: t.children,
|
|
4815
4855
|
selected: e.selected,
|
|
4816
4856
|
depth: e.depth + 1
|
|
@@ -4822,52 +4862,49 @@ function Ka(e, t, n, r, i, a) {
|
|
|
4822
4862
|
_: 2
|
|
4823
4863
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
4824
4864
|
}
|
|
4825
|
-
var
|
|
4826
|
-
key: 0,
|
|
4827
|
-
class: "fixed inset-0 z-100 flex"
|
|
4828
|
-
}, Ya = {
|
|
4865
|
+
var Xa = /*#__PURE__*/ f(qa, [["render", Ya]]), Za = {
|
|
4829
4866
|
key: 0,
|
|
4830
4867
|
class: "shrink-0"
|
|
4831
|
-
},
|
|
4868
|
+
}, Qa = {
|
|
4832
4869
|
key: 1,
|
|
4833
4870
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
4834
|
-
},
|
|
4871
|
+
}, $a = { class: "text-title-small font-medium text-on-surface-variant" }, eo = { class: "flex-1 overflow-y-auto px-3 py-2" }, to = {
|
|
4835
4872
|
key: 0,
|
|
4836
4873
|
class: "my-1 border-t border-outline-variant"
|
|
4837
|
-
},
|
|
4874
|
+
}, no = ["onClick"], ro = { class: "flex-1 text-left text-title-small font-medium" }, io = {
|
|
4838
4875
|
key: 2,
|
|
4839
4876
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
4840
|
-
},
|
|
4877
|
+
}, ao = {
|
|
4841
4878
|
key: 0,
|
|
4842
4879
|
class: "nd-section-grid"
|
|
4843
|
-
},
|
|
4880
|
+
}, oo = { class: "nd-section-body" }, so = {
|
|
4844
4881
|
key: 2,
|
|
4845
4882
|
class: "text-label-medium text-on-surface-variant"
|
|
4846
|
-
},
|
|
4883
|
+
}, co = { key: 0 }, lo = {
|
|
4847
4884
|
key: 0,
|
|
4848
4885
|
class: "shrink-0"
|
|
4849
|
-
},
|
|
4886
|
+
}, uo = {
|
|
4850
4887
|
key: 1,
|
|
4851
4888
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
4852
|
-
},
|
|
4889
|
+
}, fo = { class: "px-5 pt-6 pb-2" }, po = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, mo = { class: "flex flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, ho = {
|
|
4853
4890
|
key: 0,
|
|
4854
4891
|
class: "my-1 border-t border-outline-variant"
|
|
4855
|
-
},
|
|
4892
|
+
}, go = ["title", "onClick"], _o = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, vo = {
|
|
4856
4893
|
key: 2,
|
|
4857
4894
|
class: "nd-collapse-h overflow-hidden"
|
|
4858
|
-
},
|
|
4895
|
+
}, yo = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, bo = {
|
|
4859
4896
|
key: 0,
|
|
4860
4897
|
class: "nd-section-grid"
|
|
4861
|
-
},
|
|
4898
|
+
}, xo = { class: "nd-section-body" }, So = {
|
|
4862
4899
|
key: 2,
|
|
4863
4900
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
4864
|
-
},
|
|
4901
|
+
}, Co = {
|
|
4865
4902
|
key: 0,
|
|
4866
4903
|
class: "nd-children-divider"
|
|
4867
|
-
},
|
|
4904
|
+
}, wo = { key: 0 }, To = {
|
|
4868
4905
|
key: 1,
|
|
4869
4906
|
class: "nd-children-divider"
|
|
4870
|
-
},
|
|
4907
|
+
}, Eo = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
4871
4908
|
__name: "MNavigationDrawer",
|
|
4872
4909
|
props: {
|
|
4873
4910
|
modelValue: { type: Boolean },
|
|
@@ -4879,7 +4916,8 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4879
4916
|
default: !0
|
|
4880
4917
|
},
|
|
4881
4918
|
collapsed: { type: Boolean },
|
|
4882
|
-
width: {}
|
|
4919
|
+
width: {},
|
|
4920
|
+
side: { default: "left" }
|
|
4883
4921
|
},
|
|
4884
4922
|
emits: ["update:modelValue", "select"],
|
|
4885
4923
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -4930,9 +4968,9 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4930
4968
|
easing: "cubic-bezier(0.4, 0, 1, 1)"
|
|
4931
4969
|
}).onfinish = t;
|
|
4932
4970
|
}
|
|
4933
|
-
let D = _(() => r.collapsed ?? !1);
|
|
4934
|
-
F("nd-open-items", o), F("nd-toggle-item", C), F("nd-select-item", S), F("nd-collapsed",
|
|
4935
|
-
function
|
|
4971
|
+
let D = _(() => r.side === "left" || r.side === "right" ? r.side : "left"), O = _(() => r.collapsed ?? !1);
|
|
4972
|
+
F("nd-open-items", o), F("nd-toggle-item", C), F("nd-select-item", S), F("nd-collapsed", O), t({ openItems: o });
|
|
4973
|
+
function j(e) {
|
|
4936
4974
|
return e.to && !e.disabled ? "RouterLink" : "button";
|
|
4937
4975
|
}
|
|
4938
4976
|
return q(() => r.modelValue, (e) => {
|
|
@@ -4947,14 +4985,26 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4947
4985
|
leave: 280
|
|
4948
4986
|
}
|
|
4949
4987
|
}, {
|
|
4950
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
4988
|
+
default: Y(() => [e.modelValue ? (P(), b("div", {
|
|
4989
|
+
key: 0,
|
|
4990
|
+
class: k(["fixed inset-0 z-100 flex", [
|
|
4991
|
+
e.side === "right" ? "justify-end" : "",
|
|
4992
|
+
e.side === "bottom" ? "flex-col justify-end" : "",
|
|
4993
|
+
e.side === "top" ? "flex-col" : ""
|
|
4994
|
+
]])
|
|
4995
|
+
}, [x("div", {
|
|
4951
4996
|
class: "nd-scrim absolute inset-0 bg-black/40",
|
|
4952
4997
|
onClick: f
|
|
4953
4998
|
}), x("nav", {
|
|
4954
|
-
class: k([
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4999
|
+
class: k([
|
|
5000
|
+
"nd-panel relative flex flex-col bg-surface-container shadow-elevation-3",
|
|
5001
|
+
`nd-panel-${e.side}`,
|
|
5002
|
+
e.side === "top" || e.side === "bottom" ? "w-full max-h-[85vh]" : "h-full max-w-[85vw]",
|
|
5003
|
+
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
5004
|
+
]),
|
|
5005
|
+
style: A(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
5006
|
+
}, [t.$slots.header ? (P(), b("div", Za, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", Qa, [x("h2", $a, H(e.title), 1)])) : y("", !0), x("div", eo, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5007
|
+
n > 0 ? (P(), b("div", to)) : y("", !0),
|
|
4958
5008
|
t.title && t.collapsible ? (P(), b("button", {
|
|
4959
5009
|
key: 1,
|
|
4960
5010
|
type: "button",
|
|
@@ -4967,15 +5017,15 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4967
5017
|
size: 24,
|
|
4968
5018
|
class: "shrink-0"
|
|
4969
5019
|
}, null, 8, ["name"])) : y("", !0),
|
|
4970
|
-
x("span",
|
|
5020
|
+
x("span", ro, H(t.title), 1),
|
|
4971
5021
|
w(d, {
|
|
4972
5022
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
4973
5023
|
size: 18,
|
|
4974
5024
|
class: "shrink-0"
|
|
4975
5025
|
}, null, 8, ["name"])
|
|
4976
|
-
], 8,
|
|
5026
|
+
], 8, no)) : t.title ? (P(), b("p", io, H(t.title), 1)) : y("", !0),
|
|
4977
5027
|
w(h, { name: "nd-section" }, {
|
|
4978
|
-
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div",
|
|
5028
|
+
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div", ao, [x("div", oo, [(P(!0), b(p, null, R(t.items, (n) => (P(), b(p, { key: n.value }, [(P(), v(V(j(n)), {
|
|
4979
5029
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
4980
5030
|
type: n.to ? void 0 : "button",
|
|
4981
5031
|
class: k(["flex w-full items-center gap-3 rounded-full py-2.5 text-left transition-colors focus-visible:outline-none", [t.collapsible ? "pl-8 pr-3" : "px-4", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === e.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
|
|
@@ -4994,7 +5044,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4994
5044
|
name: l(n) ? "expand_less" : "expand_more",
|
|
4995
5045
|
size: 18,
|
|
4996
5046
|
class: "shrink-0 text-on-surface-variant"
|
|
4997
|
-
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span",
|
|
5047
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", so, H(n.badge), 1))
|
|
4998
5048
|
]),
|
|
4999
5049
|
_: 2
|
|
5000
5050
|
}, 1032, [
|
|
@@ -5009,7 +5059,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5009
5059
|
onEnter: T,
|
|
5010
5060
|
onLeave: E
|
|
5011
5061
|
}, {
|
|
5012
|
-
default: Y(() => [n.children?.length && l(n) ? (P(), b("div",
|
|
5062
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", co, [w(Xa, {
|
|
5013
5063
|
items: n.children,
|
|
5014
5064
|
selected: e.selected
|
|
5015
5065
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
@@ -5017,17 +5067,17 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5017
5067
|
}, 1024)], 64))), 128))])])) : y("", !0)]),
|
|
5018
5068
|
_: 2
|
|
5019
5069
|
}, 1024)
|
|
5020
|
-
], 64))), 128))])], 6)])) : y("", !0)]),
|
|
5070
|
+
], 64))), 128))])], 6)], 2)) : y("", !0)]),
|
|
5021
5071
|
_: 3
|
|
5022
5072
|
})])) : (P(), b("nav", {
|
|
5023
5073
|
key: 1,
|
|
5024
|
-
class: k(["nd-inline flex h-full shrink-0 flex-col border-
|
|
5074
|
+
class: k(["nd-inline flex h-full shrink-0 flex-col bg-surface", [D.value === "right" ? "border-l border-outline-variant" : "border-r border-outline-variant", e.modelValue ? e.collapsed ? "nd-collapsed w-[72px]" : e.width ? "" : "w-72" : D.value === "right" ? "nd-hidden w-0 border-l-0" : "nd-hidden w-0 border-r-0"]]),
|
|
5025
5075
|
style: A({
|
|
5026
5076
|
width: e.modelValue && !e.collapsed && e.width ? e.width : void 0,
|
|
5027
5077
|
"--nd-width": e.width ?? "18rem"
|
|
5028
5078
|
})
|
|
5029
|
-
}, [t.$slots.header ? (P(), b("div",
|
|
5030
|
-
n > 0 ? (P(), b("div",
|
|
5079
|
+
}, [t.$slots.header ? (P(), b("div", lo, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", uo, [x("div", fo, [x("h2", po, H(e.title), 1)])])) : y("", !0), x("div", mo, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5080
|
+
n > 0 ? (P(), b("div", ho)) : y("", !0),
|
|
5031
5081
|
t.title && t.collapsible ? (P(), b("button", {
|
|
5032
5082
|
key: 1,
|
|
5033
5083
|
type: "button",
|
|
@@ -5041,16 +5091,16 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5041
5091
|
size: 24,
|
|
5042
5092
|
class: "shrink-0"
|
|
5043
5093
|
}, null, 8, ["name"])) : y("", !0),
|
|
5044
|
-
x("span",
|
|
5094
|
+
x("span", _o, H(t.title), 1),
|
|
5045
5095
|
w(d, {
|
|
5046
5096
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
5047
5097
|
size: 18,
|
|
5048
5098
|
class: "nd-label shrink-0"
|
|
5049
5099
|
}, null, 8, ["name"])
|
|
5050
|
-
], 8,
|
|
5100
|
+
], 8, go)) : t.title ? (P(), b("div", vo, [x("p", yo, H(t.title), 1)])) : y("", !0),
|
|
5051
5101
|
w(h, { name: "nd-section" }, {
|
|
5052
|
-
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div",
|
|
5053
|
-
(P(), v(V(
|
|
5102
|
+
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div", bo, [x("div", xo, [(P(!0), b(p, null, R(t.items, (n) => (P(), b(p, { key: n.value }, [
|
|
5103
|
+
(P(), v(V(j(n)), {
|
|
5054
5104
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
5055
5105
|
type: n.to ? void 0 : "button",
|
|
5056
5106
|
title: e.collapsed ? n.label : void 0,
|
|
@@ -5071,7 +5121,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5071
5121
|
name: l(n) ? "expand_less" : "expand_more",
|
|
5072
5122
|
size: 18,
|
|
5073
5123
|
class: "nd-label shrink-0 text-on-surface-variant"
|
|
5074
|
-
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span",
|
|
5124
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", So, H(n.badge), 1))
|
|
5075
5125
|
]),
|
|
5076
5126
|
_: 2
|
|
5077
5127
|
}, 1032, [
|
|
@@ -5082,28 +5132,28 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5082
5132
|
"disabled",
|
|
5083
5133
|
"onClick"
|
|
5084
5134
|
])),
|
|
5085
|
-
n.children?.length && l(n) ? (P(), b("div",
|
|
5135
|
+
n.children?.length && l(n) ? (P(), b("div", Co)) : y("", !0),
|
|
5086
5136
|
w(h, {
|
|
5087
5137
|
css: !1,
|
|
5088
5138
|
onEnter: T,
|
|
5089
5139
|
onLeave: E
|
|
5090
5140
|
}, {
|
|
5091
|
-
default: Y(() => [n.children?.length && l(n) ? (P(), b("div",
|
|
5141
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", wo, [w(Xa, {
|
|
5092
5142
|
items: n.children,
|
|
5093
5143
|
selected: e.selected
|
|
5094
5144
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
5095
5145
|
_: 2
|
|
5096
5146
|
}, 1024),
|
|
5097
|
-
n.children?.length && l(n) ? (P(), b("div",
|
|
5147
|
+
n.children?.length && l(n) ? (P(), b("div", To)) : y("", !0)
|
|
5098
5148
|
], 64))), 128))])])) : y("", !0)]),
|
|
5099
5149
|
_: 2
|
|
5100
5150
|
}, 1024)
|
|
5101
5151
|
], 64))), 128))])], 6));
|
|
5102
5152
|
}
|
|
5103
|
-
}), [["__scopeId", "data-v-
|
|
5153
|
+
}), [["__scopeId", "data-v-66232808"]]), Do = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, Oo = {
|
|
5104
5154
|
key: 0,
|
|
5105
5155
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
5106
|
-
},
|
|
5156
|
+
}, ko = ["disabled", "onClick"], Ao = /* @__PURE__ */ T({
|
|
5107
5157
|
__name: "MNavigationRail",
|
|
5108
5158
|
props: {
|
|
5109
5159
|
modelValue: {},
|
|
@@ -5112,7 +5162,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5112
5162
|
},
|
|
5113
5163
|
emits: ["update:modelValue"],
|
|
5114
5164
|
setup(e) {
|
|
5115
|
-
return (t, n) => (P(), b("nav",
|
|
5165
|
+
return (t, n) => (P(), b("nav", Do, [t.$slots.fab ? (P(), b("div", Oo, [z(t.$slots, "fab")])) : y("", !0), x("div", { class: k(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
5116
5166
|
"justify-start": e.alignment === "top",
|
|
5117
5167
|
"justify-center": e.alignment === "center",
|
|
5118
5168
|
"justify-end": e.alignment === "bottom"
|
|
@@ -5122,7 +5172,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5122
5172
|
class: k(["group flex w-full cursor-pointer flex-col items-center justify-center gap-1 px-3 py-2 focus-visible:outline-none", n.disabled ? "cursor-not-allowed opacity-[0.38]" : ""]),
|
|
5123
5173
|
disabled: n.disabled,
|
|
5124
5174
|
onClick: (e) => !n.disabled && t.$emit("update:modelValue", n.value)
|
|
5125
|
-
}, [x("span", { class: k(["inline-flex h-8 items-center justify-center rounded-2xl transition-all duration-200", n.value === e.modelValue ? "w-14 bg-secondary-container text-on-secondary-container" : "w-14 bg-transparent text-on-surface-variant group-hover:bg-on-surface/8"]) }, [n.badge == null ? n.badgeDot ? (P(), v(
|
|
5175
|
+
}, [x("span", { class: k(["inline-flex h-8 items-center justify-center rounded-2xl transition-all duration-200", n.value === e.modelValue ? "w-14 bg-secondary-container text-on-secondary-container" : "w-14 bg-transparent text-on-surface-variant group-hover:bg-on-surface/8"]) }, [n.badge == null ? n.badgeDot ? (P(), v(Ve, {
|
|
5126
5176
|
key: 1,
|
|
5127
5177
|
dot: ""
|
|
5128
5178
|
}, {
|
|
@@ -5135,7 +5185,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5135
5185
|
key: 2,
|
|
5136
5186
|
name: n.icon,
|
|
5137
5187
|
size: 24
|
|
5138
|
-
}, null, 8, ["name"])) : (P(), v(
|
|
5188
|
+
}, null, 8, ["name"])) : (P(), v(Ve, {
|
|
5139
5189
|
key: 0,
|
|
5140
5190
|
count: n.badge
|
|
5141
5191
|
}, {
|
|
@@ -5144,9 +5194,9 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5144
5194
|
size: 24
|
|
5145
5195
|
}, null, 8, ["name"])]),
|
|
5146
5196
|
_: 2
|
|
5147
|
-
}, 1032, ["count"]))], 2), x("span", { class: k(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, H(n.label), 3)], 10,
|
|
5197
|
+
}, 1032, ["count"]))], 2), x("span", { class: k(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, H(n.label), 3)], 10, ko))), 128))], 2)]));
|
|
5148
5198
|
}
|
|
5149
|
-
}),
|
|
5199
|
+
}), jo = { class: "relative h-full w-full" }, Mo = /* @__PURE__ */ T({
|
|
5150
5200
|
__name: "MOverlay",
|
|
5151
5201
|
props: {
|
|
5152
5202
|
modelValue: {
|
|
@@ -5179,17 +5229,17 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5179
5229
|
key: 0,
|
|
5180
5230
|
class: "absolute inset-0 bg-black/50",
|
|
5181
5231
|
onClick: a
|
|
5182
|
-
})) : y("", !0), x("div",
|
|
5232
|
+
})) : y("", !0), x("div", jo, [z(t.$slots, "default")])], 4)) : y("", !0)]),
|
|
5183
5233
|
_: 3
|
|
5184
5234
|
})]));
|
|
5185
5235
|
}
|
|
5186
|
-
}),
|
|
5236
|
+
}), No = { class: "flex flex-col gap-1" }, Po = {
|
|
5187
5237
|
key: 0,
|
|
5188
5238
|
class: "text-label-small text-on-surface-variant"
|
|
5189
|
-
},
|
|
5239
|
+
}, Fo = ["aria-valuenow"], Io = ["aria-valuenow"], Lo = ["viewBox"], Ro = ["d"], zo = {
|
|
5190
5240
|
key: 1,
|
|
5191
5241
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
5192
|
-
},
|
|
5242
|
+
}, Bo = ["viewBox"], Vo = ["d"], Ho = 20, Uo = 2.5, Wo = 4, Go = 8, Ko = 80, qo = 1, Jo = /* @__PURE__ */ T({
|
|
5193
5243
|
__name: "MProgressBar",
|
|
5194
5244
|
props: {
|
|
5195
5245
|
value: {},
|
|
@@ -5220,15 +5270,15 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5220
5270
|
track: "bg-error-container",
|
|
5221
5271
|
text: "text-error"
|
|
5222
5272
|
}
|
|
5223
|
-
}, a =
|
|
5273
|
+
}, a = Ho * Ko, o = (() => {
|
|
5224
5274
|
let e = "";
|
|
5225
|
-
for (let t = 0; t <= a; t +=
|
|
5226
|
-
let n =
|
|
5275
|
+
for (let t = 0; t <= a; t += qo) {
|
|
5276
|
+
let n = Wo - Uo * Math.sin(t / Ho * Math.PI * 2);
|
|
5227
5277
|
e += (t === 0 ? "M" : "L") + t + "," + n.toFixed(2) + " ";
|
|
5228
5278
|
}
|
|
5229
5279
|
return e.trim();
|
|
5230
5280
|
})();
|
|
5231
|
-
return (t, s) => (P(), b("div",
|
|
5281
|
+
return (t, s) => (P(), b("div", No, [e.label ? (P(), b("span", Po, H(e.label), 1)) : y("", !0), e.variant === "linear" ? (P(), b("div", {
|
|
5232
5282
|
key: 1,
|
|
5233
5283
|
class: k(["relative h-1 w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
5234
5284
|
role: "progressbar",
|
|
@@ -5242,20 +5292,20 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5242
5292
|
key: 0,
|
|
5243
5293
|
class: k(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
5244
5294
|
style: A({ width: `${r.value}%` })
|
|
5245
|
-
}, null, 6))], 10,
|
|
5295
|
+
}, null, 6))], 10, Fo)) : (P(), b("div", {
|
|
5246
5296
|
key: 2,
|
|
5247
5297
|
class: "relative h-2 w-full overflow-visible",
|
|
5248
5298
|
role: "progressbar",
|
|
5249
5299
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
5250
5300
|
"aria-valuemin": "0",
|
|
5251
5301
|
"aria-valuemax": "100"
|
|
5252
|
-
}, [n.value ? (P(), b("div",
|
|
5302
|
+
}, [n.value ? (P(), b("div", zo, [x("div", {
|
|
5253
5303
|
class: k(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
5254
5304
|
style: A({ width: `${a}px` })
|
|
5255
5305
|
}, [(P(), b("svg", {
|
|
5256
5306
|
width: a,
|
|
5257
|
-
height:
|
|
5258
|
-
viewBox: `0 0 ${a} ${
|
|
5307
|
+
height: Go,
|
|
5308
|
+
viewBox: `0 0 ${a} ${Go}`,
|
|
5259
5309
|
class: "h-full",
|
|
5260
5310
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5261
5311
|
}, [x("path", {
|
|
@@ -5264,7 +5314,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5264
5314
|
stroke: "currentColor",
|
|
5265
5315
|
"stroke-width": "3",
|
|
5266
5316
|
"stroke-linecap": "round"
|
|
5267
|
-
}, null, 8,
|
|
5317
|
+
}, null, 8, Vo)], 8, Bo))], 6)])) : (P(), b(p, { key: 0 }, [
|
|
5268
5318
|
x("div", {
|
|
5269
5319
|
class: "absolute inset-0 overflow-hidden",
|
|
5270
5320
|
style: A({
|
|
@@ -5276,8 +5326,8 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5276
5326
|
style: A({ width: `${a}px` })
|
|
5277
5327
|
}, [(P(), b("svg", {
|
|
5278
5328
|
width: a,
|
|
5279
|
-
height:
|
|
5280
|
-
viewBox: `0 0 ${a} ${
|
|
5329
|
+
height: Go,
|
|
5330
|
+
viewBox: `0 0 ${a} ${Go}`,
|
|
5281
5331
|
class: "h-full",
|
|
5282
5332
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5283
5333
|
}, [x("path", {
|
|
@@ -5286,7 +5336,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5286
5336
|
stroke: "currentColor",
|
|
5287
5337
|
"stroke-width": "3",
|
|
5288
5338
|
"stroke-linecap": "round"
|
|
5289
|
-
}, null, 8,
|
|
5339
|
+
}, null, 8, Ro)], 8, Lo))], 6)], 4),
|
|
5290
5340
|
x("div", {
|
|
5291
5341
|
class: k(["absolute inset-y-0 right-0 flex items-center", i[e.color].track]),
|
|
5292
5342
|
style: A([{
|
|
@@ -5309,16 +5359,16 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5309
5359
|
height: "4px"
|
|
5310
5360
|
}
|
|
5311
5361
|
}, null, 2)
|
|
5312
|
-
], 64))], 8,
|
|
5362
|
+
], 64))], 8, Io))]));
|
|
5313
5363
|
}
|
|
5314
|
-
}),
|
|
5364
|
+
}), Yo = ["for"], Xo = { class: "relative flex h-5 w-5 shrink-0" }, Zo = [
|
|
5315
5365
|
"id",
|
|
5316
5366
|
"checked",
|
|
5317
5367
|
"disabled"
|
|
5318
|
-
],
|
|
5368
|
+
], Qo = {
|
|
5319
5369
|
key: 0,
|
|
5320
5370
|
class: "text-body-large text-on-surface"
|
|
5321
|
-
},
|
|
5371
|
+
}, $o = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
5322
5372
|
__name: "MRadio",
|
|
5323
5373
|
props: {
|
|
5324
5374
|
modelValue: {},
|
|
@@ -5341,14 +5391,14 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5341
5391
|
return (t, n) => (P(), b("label", {
|
|
5342
5392
|
for: U(i),
|
|
5343
5393
|
class: k(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
5344
|
-
}, [x("span",
|
|
5394
|
+
}, [x("span", Xo, [x("input", {
|
|
5345
5395
|
id: U(i),
|
|
5346
5396
|
type: "radio",
|
|
5347
5397
|
class: "sr-only",
|
|
5348
5398
|
checked: a.value,
|
|
5349
5399
|
disabled: e.disabled,
|
|
5350
5400
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
5351
|
-
}, null, 40,
|
|
5401
|
+
}, null, 40, Zo), (P(), b("svg", {
|
|
5352
5402
|
viewBox: "0 0 20 20",
|
|
5353
5403
|
class: k(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
5354
5404
|
"aria-hidden": "true"
|
|
@@ -5365,12 +5415,12 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5365
5415
|
cy: "10",
|
|
5366
5416
|
r: "4.5",
|
|
5367
5417
|
fill: "currentColor"
|
|
5368
|
-
}, null, 2)], 2))]), e.label ? (P(), b("span",
|
|
5418
|
+
}, null, 2)], 2))]), e.label ? (P(), b("span", Qo, H(e.label), 1)) : y("", !0)], 10, Yo));
|
|
5369
5419
|
}
|
|
5370
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
5420
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), es = { class: "flex flex-col gap-2" }, ts = {
|
|
5371
5421
|
key: 0,
|
|
5372
5422
|
class: "text-label-large text-on-surface-variant"
|
|
5373
|
-
},
|
|
5423
|
+
}, ns = /* @__PURE__ */ T({
|
|
5374
5424
|
__name: "MRadioGroup",
|
|
5375
5425
|
props: {
|
|
5376
5426
|
modelValue: {},
|
|
@@ -5386,7 +5436,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5386
5436
|
emits: ["update:modelValue"],
|
|
5387
5437
|
setup(e, { emit: t }) {
|
|
5388
5438
|
let n = t;
|
|
5389
|
-
return (t, r) => (P(), b("div",
|
|
5439
|
+
return (t, r) => (P(), b("div", es, [e.label ? (P(), b("span", ts, H(e.label), 1)) : y("", !0), x("div", { class: k(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(P(!0), b(p, null, R(e.options, (t) => (P(), v($o, {
|
|
5390
5440
|
key: String(t.value),
|
|
5391
5441
|
"model-value": e.modelValue,
|
|
5392
5442
|
value: t.value,
|
|
@@ -5402,11 +5452,11 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5402
5452
|
"disabled"
|
|
5403
5453
|
]))), 128))], 2)]));
|
|
5404
5454
|
}
|
|
5405
|
-
}),
|
|
5455
|
+
}), rs = [
|
|
5406
5456
|
"disabled",
|
|
5407
5457
|
"onClick",
|
|
5408
5458
|
"onMousemove"
|
|
5409
|
-
],
|
|
5459
|
+
], is = /* @__PURE__ */ T({
|
|
5410
5460
|
__name: "MRating",
|
|
5411
5461
|
props: {
|
|
5412
5462
|
modelValue: {},
|
|
@@ -5483,13 +5533,13 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5483
5533
|
name: e.icon,
|
|
5484
5534
|
size: e.size,
|
|
5485
5535
|
class: "text-on-surface-variant/40"
|
|
5486
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
5536
|
+
}, null, 8, ["name", "size"]))], 46, rs))), 128))], 34));
|
|
5487
5537
|
}
|
|
5488
|
-
}),
|
|
5489
|
-
function
|
|
5490
|
-
return P(), b("div",
|
|
5538
|
+
}), as = {}, os = { class: "relative" };
|
|
5539
|
+
function ss(e, t) {
|
|
5540
|
+
return P(), b("div", os, [z(e.$slots, "default")]);
|
|
5491
5541
|
}
|
|
5492
|
-
var
|
|
5542
|
+
var cs = /*#__PURE__*/ f(as, [["render", ss]]), ls = /* @__PURE__ */ T({
|
|
5493
5543
|
__name: "MResponsive",
|
|
5494
5544
|
props: {
|
|
5495
5545
|
show: {},
|
|
@@ -5521,19 +5571,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5521
5571
|
_: 3
|
|
5522
5572
|
}, 8, ["class"]));
|
|
5523
5573
|
}
|
|
5524
|
-
}),
|
|
5574
|
+
}), us = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, ds = {
|
|
5525
5575
|
key: 0,
|
|
5526
5576
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
5527
|
-
},
|
|
5577
|
+
}, fs = { class: "text-headline-small font-medium text-on-surface" }, ps = {
|
|
5528
5578
|
key: 1,
|
|
5529
5579
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
5530
|
-
},
|
|
5580
|
+
}, ms = {
|
|
5531
5581
|
key: 2,
|
|
5532
5582
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
5533
|
-
},
|
|
5583
|
+
}, hs = {
|
|
5534
5584
|
key: 3,
|
|
5535
5585
|
class: "mt-2"
|
|
5536
|
-
},
|
|
5586
|
+
}, gs = /* @__PURE__ */ T({
|
|
5537
5587
|
__name: "MResult",
|
|
5538
5588
|
props: {
|
|
5539
5589
|
status: {},
|
|
@@ -5601,19 +5651,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5601
5651
|
};
|
|
5602
5652
|
}
|
|
5603
5653
|
}), r = _(() => t.status === "404" || t.status === "403" || t.status === "500" ? t.status : null);
|
|
5604
|
-
return (t, i) => (P(), b("div",
|
|
5605
|
-
r.value ? (P(), b("span",
|
|
5654
|
+
return (t, i) => (P(), b("div", us, [
|
|
5655
|
+
r.value ? (P(), b("span", ds, H(r.value), 1)) : y("", !0),
|
|
5606
5656
|
x("div", { class: k(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [w(d, {
|
|
5607
5657
|
name: n.value.icon,
|
|
5608
5658
|
size: 40
|
|
5609
5659
|
}, null, 8, ["name"])], 2),
|
|
5610
|
-
x("h2",
|
|
5611
|
-
e.description ?? n.value.defaultDesc ? (P(), b("p",
|
|
5612
|
-
t.$slots.actions ? (P(), b("div",
|
|
5613
|
-
t.$slots.default ? (P(), b("div",
|
|
5660
|
+
x("h2", fs, H(e.title ?? n.value.defaultTitle), 1),
|
|
5661
|
+
e.description ?? n.value.defaultDesc ? (P(), b("p", ps, H(e.description ?? n.value.defaultDesc), 1)) : y("", !0),
|
|
5662
|
+
t.$slots.actions ? (P(), b("div", ms, [z(t.$slots, "actions")])) : y("", !0),
|
|
5663
|
+
t.$slots.default ? (P(), b("div", hs, [z(t.$slots, "default")])) : y("", !0)
|
|
5614
5664
|
]));
|
|
5615
5665
|
}
|
|
5616
|
-
}),
|
|
5666
|
+
}), _s = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, vs = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, ys = { class: "flex items-center gap-1" }, bs = { class: "text-title-medium font-medium capitalize text-on-surface" }, xs = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Ss = ["onClick"], Cs = { class: "overflow-auto" }, ws = { class: "w-full border-collapse" }, Ts = { class: "text-label-small uppercase text-on-surface-variant" }, Es = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Ds = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, Os = ["onClick"], ks = ["onClick"], As = { class: "truncate text-label-small font-medium" }, js = { class: "truncate text-label-small opacity-70" }, Ms = /* @__PURE__ */ T({
|
|
5617
5667
|
__name: "MScheduler",
|
|
5618
5668
|
props: {
|
|
5619
5669
|
events: { default: () => [] },
|
|
@@ -5694,8 +5744,8 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5694
5744
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
5695
5745
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
5696
5746
|
};
|
|
5697
|
-
return (n, r) => (P(), b("div",
|
|
5698
|
-
x("div",
|
|
5747
|
+
return (n, r) => (P(), b("div", _s, [x("div", vs, [
|
|
5748
|
+
x("div", ys, [
|
|
5699
5749
|
w(e, {
|
|
5700
5750
|
icon: "chevron_left",
|
|
5701
5751
|
label: t.prevLabel ?? U(i).previous,
|
|
@@ -5714,17 +5764,17 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5714
5764
|
onClick: T
|
|
5715
5765
|
}, H(t.todayLabel ?? U(i).today), 1)
|
|
5716
5766
|
]),
|
|
5717
|
-
x("h3",
|
|
5718
|
-
x("div",
|
|
5767
|
+
x("h3", bs, H(S.value), 1),
|
|
5768
|
+
x("div", xs, [(P(), b(p, null, R(["day", "week"], (e) => x("button", {
|
|
5719
5769
|
key: e,
|
|
5720
5770
|
type: "button",
|
|
5721
5771
|
class: k(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", c.value === e ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
5722
5772
|
onClick: (t) => c.value = e
|
|
5723
|
-
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11,
|
|
5724
|
-
]), x("div",
|
|
5773
|
+
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11, Ss)), 64))])
|
|
5774
|
+
]), x("div", Cs, [x("table", ws, [x("thead", null, [x("tr", null, [r[2] ||= x("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (P(!0), b(p, null, R(f.value, (e) => (P(), b("th", {
|
|
5725
5775
|
key: h(e),
|
|
5726
5776
|
class: k(["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", h(e) === U(m) ? "bg-primary-container/30" : ""])
|
|
5727
|
-
}, [x("div",
|
|
5777
|
+
}, [x("div", Ts, H(U(g).format(e)), 1), x("div", { class: k(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", h(e) === U(m) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, H(U(v).format(e)), 3)], 2))), 128))])]), x("tbody", null, [(P(!0), b(p, null, R(l.value, (e) => (P(), b("tr", { key: e }, [x("td", Es, [x("span", Ds, H(String(e).padStart(2, "0")) + ":00 ", 1)]), (P(!0), b(p, null, R(f.value, (t) => (P(), b("td", {
|
|
5728
5778
|
key: h(t),
|
|
5729
5779
|
class: k(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", h(t) === U(m) ? "bg-primary-container/5" : ""]),
|
|
5730
5780
|
onClick: (n) => o("slotClick", {
|
|
@@ -5737,9 +5787,9 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5737
5787
|
class: k(["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", M[t.color ?? "primary"]]),
|
|
5738
5788
|
style: A({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
5739
5789
|
onClick: Z((e) => o("eventClick", t), ["stop"])
|
|
5740
|
-
}, [x("p",
|
|
5790
|
+
}, [x("p", As, H(t.title), 1), x("p", js, H(j(t)), 1)], 14, ks)) : y("", !0)], 64))), 128))], 10, Os))), 128))]))), 128))])])])]));
|
|
5741
5791
|
}
|
|
5742
|
-
}),
|
|
5792
|
+
}), Ns = /* @__PURE__ */ T({
|
|
5743
5793
|
__name: "MScrollable",
|
|
5744
5794
|
props: {
|
|
5745
5795
|
direction: { default: "vertical" },
|
|
@@ -5760,13 +5810,13 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5760
5810
|
style: A(i.value)
|
|
5761
5811
|
}, [z(e.$slots, "default")], 6));
|
|
5762
5812
|
}
|
|
5763
|
-
}),
|
|
5813
|
+
}), Ps = { key: 0 }, Fs = { class: "flex items-start justify-between" }, Is = {
|
|
5764
5814
|
key: 0,
|
|
5765
5815
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
5766
|
-
},
|
|
5816
|
+
}, Ls = {
|
|
5767
5817
|
key: 0,
|
|
5768
5818
|
class: "mt-4 h-px bg-outline-variant"
|
|
5769
|
-
},
|
|
5819
|
+
}, Rs = /* @__PURE__ */ T({
|
|
5770
5820
|
__name: "MSection",
|
|
5771
5821
|
props: {
|
|
5772
5822
|
title: {},
|
|
@@ -5803,19 +5853,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5803
5853
|
"label-medium": "text-label-medium",
|
|
5804
5854
|
"label-small": "text-label-small"
|
|
5805
5855
|
}, i = _(() => n[t.gap]), a = _(() => [r[t.titleVariant], "font-medium"]);
|
|
5806
|
-
return (t, n) => (P(), b("section", { class: k(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (P(), b("div",
|
|
5856
|
+
return (t, n) => (P(), b("section", { class: k(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (P(), b("div", Ps, [x("div", Fs, [x("div", null, [z(t.$slots, "title", {}, () => [e.title ? (P(), b("p", {
|
|
5807
5857
|
key: 0,
|
|
5808
5858
|
class: k(a.value)
|
|
5809
|
-
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p",
|
|
5859
|
+
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p", Is, H(e.subtitle), 1)) : y("", !0)])]), z(t.$slots, "actions")]), e.divider ? (P(), b("div", Ls)) : y("", !0)])) : y("", !0), z(t.$slots, "default")], 2));
|
|
5810
5860
|
}
|
|
5811
|
-
}),
|
|
5861
|
+
}), zs = {
|
|
5812
5862
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
5813
5863
|
role: "group"
|
|
5814
|
-
},
|
|
5864
|
+
}, Bs = [
|
|
5815
5865
|
"disabled",
|
|
5816
5866
|
"aria-pressed",
|
|
5817
5867
|
"onClick"
|
|
5818
|
-
],
|
|
5868
|
+
], Vs = /* @__PURE__ */ T({
|
|
5819
5869
|
__name: "MSegmentedButton",
|
|
5820
5870
|
props: {
|
|
5821
5871
|
modelValue: {},
|
|
@@ -5839,7 +5889,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5839
5889
|
i >= 0 ? r.splice(i, 1) : r.push(e.value), n("update:modelValue", r);
|
|
5840
5890
|
} else n("update:modelValue", e.value);
|
|
5841
5891
|
}
|
|
5842
|
-
return (t, n) => (P(), b("div",
|
|
5892
|
+
return (t, n) => (P(), b("div", zs, [(P(!0), b(p, null, R(e.options, (t, n) => (P(), b("button", {
|
|
5843
5893
|
key: t.value,
|
|
5844
5894
|
type: "button",
|
|
5845
5895
|
class: k(["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]", [
|
|
@@ -5860,35 +5910,35 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5860
5910
|
key: 1,
|
|
5861
5911
|
name: t.icon,
|
|
5862
5912
|
size: 18
|
|
5863
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
5913
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, Bs))), 128))]));
|
|
5864
5914
|
}
|
|
5865
|
-
}),
|
|
5915
|
+
}), Hs = { class: "flex flex-col gap-1" }, Us = {
|
|
5866
5916
|
key: 0,
|
|
5867
5917
|
class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
|
|
5868
|
-
},
|
|
5918
|
+
}, Ws = [
|
|
5869
5919
|
"id",
|
|
5870
5920
|
"tabindex",
|
|
5871
5921
|
"aria-expanded",
|
|
5872
5922
|
"aria-disabled"
|
|
5873
|
-
],
|
|
5923
|
+
], Gs = {
|
|
5874
5924
|
key: 0,
|
|
5875
5925
|
class: "text-on-surface"
|
|
5876
|
-
},
|
|
5926
|
+
}, Ks = ["for"], qs = {
|
|
5877
5927
|
key: 0,
|
|
5878
5928
|
class: "text-error"
|
|
5879
|
-
},
|
|
5929
|
+
}, Js = {
|
|
5880
5930
|
key: 0,
|
|
5881
5931
|
class: "px-4 text-body-small text-error"
|
|
5882
|
-
},
|
|
5932
|
+
}, Ys = {
|
|
5883
5933
|
key: 1,
|
|
5884
5934
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5885
|
-
},
|
|
5935
|
+
}, Xs = ["onClick"], Zs = {
|
|
5886
5936
|
key: 1,
|
|
5887
5937
|
class: "w-[18px] shrink-0"
|
|
5888
|
-
},
|
|
5938
|
+
}, Qs = {
|
|
5889
5939
|
key: 0,
|
|
5890
5940
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
5891
|
-
},
|
|
5941
|
+
}, $s = /* @__PURE__ */ T({
|
|
5892
5942
|
__name: "MSelect",
|
|
5893
5943
|
props: {
|
|
5894
5944
|
modelValue: { default: void 0 },
|
|
@@ -5999,13 +6049,13 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5999
6049
|
o.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"
|
|
6000
6050
|
].join(" ");
|
|
6001
6051
|
});
|
|
6002
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
6052
|
+
return (t, n) => (P(), b(p, null, [x("div", Hs, [x("div", {
|
|
6003
6053
|
ref_key: "fieldEl",
|
|
6004
6054
|
ref: s,
|
|
6005
6055
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
6006
6056
|
style: A(e.variant === "outlined" ? { "--field-bg": U(c) } : void 0)
|
|
6007
6057
|
}, [
|
|
6008
|
-
e.leadingIcon ? (P(), b("div",
|
|
6058
|
+
e.leadingIcon ? (P(), b("div", Us, [w(d, {
|
|
6009
6059
|
name: e.leadingIcon,
|
|
6010
6060
|
size: 20
|
|
6011
6061
|
}, null, 8, ["name"])])) : y("", !0),
|
|
@@ -6018,11 +6068,11 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6018
6068
|
class: k([I.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
6019
6069
|
onClick: E,
|
|
6020
6070
|
onKeydown: F
|
|
6021
|
-
}, [g.value ? (P(), b("span",
|
|
6071
|
+
}, [g.value ? (P(), b("span", Gs, H(S.value), 1)) : y("", !0)], 42, Ws),
|
|
6022
6072
|
x("label", {
|
|
6023
6073
|
for: U(a),
|
|
6024
6074
|
class: k(B.value)
|
|
6025
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
6075
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", qs, "\xA0*")) : y("", !0)], 10, Ks),
|
|
6026
6076
|
e.clearable && g.value && !e.disabled ? (P(), b("button", {
|
|
6027
6077
|
key: 1,
|
|
6028
6078
|
type: "button",
|
|
@@ -6039,7 +6089,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6039
6089
|
size: 24,
|
|
6040
6090
|
class: "text-on-surface-variant transition-transform duration-200"
|
|
6041
6091
|
}, null, 8, ["name"])], 2)
|
|
6042
|
-
], 6), e.error ? (P(), b("p",
|
|
6092
|
+
], 6), e.error ? (P(), b("p", Js, H(e.error), 1)) : e.hint ? (P(), b("p", Ys, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
6043
6093
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6044
6094
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6045
6095
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6062,20 +6112,20 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6062
6112
|
name: "check",
|
|
6063
6113
|
size: 18,
|
|
6064
6114
|
class: "shrink-0 text-primary"
|
|
6065
|
-
})) : (P(), b("span",
|
|
6115
|
+
})) : (P(), b("span", Zs)), C(" " + H(t.label), 1)], 10, Xs))), 128)), e.options.length ? y("", !0) : (P(), b("p", Qs, " Sin opciones "))], 4)) : y("", !0)]),
|
|
6066
6116
|
_: 1
|
|
6067
6117
|
})]))], 64));
|
|
6068
6118
|
}
|
|
6069
|
-
}),
|
|
6119
|
+
}), ec = {
|
|
6070
6120
|
key: 0,
|
|
6071
6121
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
6072
|
-
},
|
|
6122
|
+
}, tc = {
|
|
6073
6123
|
key: 0,
|
|
6074
6124
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
6075
|
-
},
|
|
6125
|
+
}, nc = { class: "text-title-large text-on-surface" }, rc = { class: "flex-1 overflow-y-auto px-6 py-4" }, ic = {
|
|
6076
6126
|
key: 1,
|
|
6077
6127
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
6078
|
-
},
|
|
6128
|
+
}, ac = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6079
6129
|
__name: "MSideSheet",
|
|
6080
6130
|
props: {
|
|
6081
6131
|
modelValue: { type: Boolean },
|
|
@@ -6105,7 +6155,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6105
6155
|
leave: 280
|
|
6106
6156
|
}
|
|
6107
6157
|
}, {
|
|
6108
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
6158
|
+
default: Y(() => [e.modelValue ? (P(), b("div", ec, [x("div", {
|
|
6109
6159
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
6110
6160
|
onClick: r
|
|
6111
6161
|
}), x("aside", {
|
|
@@ -6118,7 +6168,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6118
6168
|
onPointermove: c,
|
|
6119
6169
|
onPointerup: l
|
|
6120
6170
|
}, null, 32),
|
|
6121
|
-
e.title || t.$slots.header ? (P(), b("div",
|
|
6171
|
+
e.title || t.$slots.header ? (P(), b("div", tc, [z(t.$slots, "header", {}, () => [x("h2", nc, H(e.title), 1)], !0), x("button", {
|
|
6122
6172
|
type: "button",
|
|
6123
6173
|
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",
|
|
6124
6174
|
onClick: r
|
|
@@ -6126,16 +6176,16 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6126
6176
|
name: "close",
|
|
6127
6177
|
size: 20
|
|
6128
6178
|
})])])) : y("", !0),
|
|
6129
|
-
x("div",
|
|
6130
|
-
t.$slots.actions ? (P(), b("div",
|
|
6179
|
+
x("div", rc, [z(t.$slots, "default", {}, void 0, !0)]),
|
|
6180
|
+
t.$slots.actions ? (P(), b("div", ic, [z(t.$slots, "actions", {}, void 0, !0)])) : y("", !0)
|
|
6131
6181
|
], 6)])) : y("", !0)]),
|
|
6132
6182
|
_: 3
|
|
6133
6183
|
})]));
|
|
6134
6184
|
}
|
|
6135
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
6185
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), oc = {
|
|
6136
6186
|
key: 0,
|
|
6137
6187
|
class: "flex flex-col gap-2.5"
|
|
6138
|
-
},
|
|
6188
|
+
}, sc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6139
6189
|
__name: "MSkeleton",
|
|
6140
6190
|
props: {
|
|
6141
6191
|
variant: { default: "text" },
|
|
@@ -6145,7 +6195,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6145
6195
|
animation: { default: "pulse" }
|
|
6146
6196
|
},
|
|
6147
6197
|
setup(e) {
|
|
6148
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div",
|
|
6198
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div", oc, [(P(!0), b(p, null, R(e.lines, (t) => (P(), b("div", {
|
|
6149
6199
|
key: t,
|
|
6150
6200
|
class: k(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
6151
6201
|
style: A({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -6158,21 +6208,21 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6158
6208
|
})
|
|
6159
6209
|
}, null, 6));
|
|
6160
6210
|
}
|
|
6161
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
6211
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), cc = { class: "flex flex-col gap-1 select-none" }, lc = {
|
|
6162
6212
|
key: 0,
|
|
6163
6213
|
class: "flex items-center justify-between"
|
|
6164
|
-
},
|
|
6214
|
+
}, uc = {
|
|
6165
6215
|
key: 0,
|
|
6166
6216
|
class: "text-label-large text-on-surface"
|
|
6167
|
-
},
|
|
6217
|
+
}, dc = {
|
|
6168
6218
|
key: 1,
|
|
6169
6219
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
6170
|
-
},
|
|
6220
|
+
}, fc = [
|
|
6171
6221
|
"aria-valuenow",
|
|
6172
6222
|
"aria-valuemin",
|
|
6173
6223
|
"aria-valuemax",
|
|
6174
6224
|
"aria-disabled"
|
|
6175
|
-
],
|
|
6225
|
+
], pc = /* @__PURE__ */ T({
|
|
6176
6226
|
__name: "MSlider",
|
|
6177
6227
|
props: {
|
|
6178
6228
|
modelValue: {},
|
|
@@ -6254,7 +6304,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6254
6304
|
transform: `translateX(-50%) translateY(-50%) scale(${a.value ? 1.15 : 1})`,
|
|
6255
6305
|
transition: a.value ? "transform 80ms ease" : "left 75ms ease, transform 80ms ease"
|
|
6256
6306
|
}));
|
|
6257
|
-
return (t, n) => (P(), b("div",
|
|
6307
|
+
return (t, n) => (P(), b("div", cc, [e.label || e.showValue ? (P(), b("div", lc, [e.label ? (P(), b("span", uc, H(e.label), 1)) : y("", !0), e.showValue ? (P(), b("span", dc, H(e.modelValue), 1)) : y("", !0)])) : y("", !0), x("div", {
|
|
6258
6308
|
ref_key: "trackEl",
|
|
6259
6309
|
ref: i,
|
|
6260
6310
|
role: "slider",
|
|
@@ -6275,9 +6325,9 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6275
6325
|
}, null, 6)], 2), x("div", {
|
|
6276
6326
|
class: k(["pointer-events-none absolute h-5 w-5 rounded-full shadow-elevation-1", s[e.color].thumb]),
|
|
6277
6327
|
style: A(m.value)
|
|
6278
|
-
}, null, 6)], 42,
|
|
6328
|
+
}, null, 6)], 42, fc)]));
|
|
6279
6329
|
}
|
|
6280
|
-
}),
|
|
6330
|
+
}), mc = { class: "flex-1 text-body-medium leading-snug" }, hc = { class: "flex shrink-0 items-center gap-0.5" }, gc = ["onClick"], _c = ["aria-label", "onClick"], vc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6281
6331
|
__name: "MSnackbar",
|
|
6282
6332
|
props: { closeAriaLabel: {} },
|
|
6283
6333
|
setup(e) {
|
|
@@ -6338,15 +6388,15 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6338
6388
|
size: 20,
|
|
6339
6389
|
class: k(["shrink-0", n.color ? "" : l(n.variant).icon])
|
|
6340
6390
|
}, null, 8, ["name", "class"]),
|
|
6341
|
-
x("p",
|
|
6342
|
-
x("div",
|
|
6391
|
+
x("p", mc, H(n.message), 1),
|
|
6392
|
+
x("div", hc, [n.action ? (P(), b("button", {
|
|
6343
6393
|
key: 0,
|
|
6344
6394
|
type: "button",
|
|
6345
6395
|
class: k(["cursor-pointer rounded px-2 py-1 text-label-medium font-semibold transition-colors", n.color ? "text-white/90 hover:bg-white/15" : l(n.variant).action]),
|
|
6346
6396
|
onClick: () => {
|
|
6347
6397
|
n.action.onClick(), U(a)(n.id);
|
|
6348
6398
|
}
|
|
6349
|
-
}, H(n.action.label), 11,
|
|
6399
|
+
}, H(n.action.label), 11, gc)) : y("", !0), x("button", {
|
|
6350
6400
|
type: "button",
|
|
6351
6401
|
class: k(["flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-colors", n.color ? "text-white/60 hover:bg-white/15" : l(n.variant).close]),
|
|
6352
6402
|
"aria-label": e.closeAriaLabel ?? U(t).close,
|
|
@@ -6354,7 +6404,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6354
6404
|
}, [w(d, {
|
|
6355
6405
|
name: "close",
|
|
6356
6406
|
size: 18
|
|
6357
|
-
})], 10,
|
|
6407
|
+
})], 10, _c)]),
|
|
6358
6408
|
n.duration > 0 ? (P(), b("div", {
|
|
6359
6409
|
key: 0,
|
|
6360
6410
|
class: k(["absolute right-0 bottom-0 left-0 h-0.5 origin-left", n.color ? "bg-white/30" : l(n.variant).progress]),
|
|
@@ -6364,11 +6414,11 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6364
6414
|
_: 1
|
|
6365
6415
|
}, 8, ["name"])], 2));
|
|
6366
6416
|
}
|
|
6367
|
-
}), [["__scopeId", "data-v-64ce9e7c"]]),
|
|
6368
|
-
function
|
|
6369
|
-
return P(), b("div",
|
|
6417
|
+
}), [["__scopeId", "data-v-64ce9e7c"]]), yc = {}, bc = { class: "flex-1" };
|
|
6418
|
+
function xc(e, t) {
|
|
6419
|
+
return P(), b("div", bc);
|
|
6370
6420
|
}
|
|
6371
|
-
var
|
|
6421
|
+
var Sc = /*#__PURE__*/ f(yc, [["render", xc]]), Cc = /* @__PURE__ */ T({
|
|
6372
6422
|
__name: "MSplitter",
|
|
6373
6423
|
props: {
|
|
6374
6424
|
direction: { default: "horizontal" },
|
|
@@ -6415,26 +6465,26 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6415
6465
|
}, [z(e.$slots, "second")], 4)
|
|
6416
6466
|
], 2));
|
|
6417
6467
|
}
|
|
6418
|
-
}),
|
|
6468
|
+
}), wc = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Tc = { class: "flex items-center gap-3 px-5 py-1" }, Ec = ["placeholder"], Dc = {
|
|
6419
6469
|
key: 0,
|
|
6420
6470
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
6421
|
-
},
|
|
6471
|
+
}, Oc = {
|
|
6422
6472
|
key: 0,
|
|
6423
6473
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
6424
|
-
},
|
|
6474
|
+
}, kc = [
|
|
6425
6475
|
"data-spot-active",
|
|
6426
6476
|
"onClick",
|
|
6427
6477
|
"onPointerenter"
|
|
6428
|
-
],
|
|
6478
|
+
], Ac = {
|
|
6429
6479
|
key: 0,
|
|
6430
6480
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
6431
|
-
},
|
|
6481
|
+
}, jc = { class: "min-w-0 flex-1" }, Mc = { class: "truncate text-body-medium text-on-surface" }, Nc = {
|
|
6432
6482
|
key: 0,
|
|
6433
6483
|
class: "truncate text-body-small text-on-surface-variant"
|
|
6434
|
-
},
|
|
6484
|
+
}, Pc = {
|
|
6435
6485
|
key: 1,
|
|
6436
6486
|
class: "flex flex-col items-center gap-2 py-10"
|
|
6437
|
-
},
|
|
6487
|
+
}, Fc = { class: "text-body-medium text-on-surface-variant" }, Ic = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, Lc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Rc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, zc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Bc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6438
6488
|
__name: "MSpotlightSearch",
|
|
6439
6489
|
props: {
|
|
6440
6490
|
modelValue: { type: Boolean },
|
|
@@ -6498,8 +6548,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6498
6548
|
key: 0,
|
|
6499
6549
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
6500
6550
|
onClick: Z(S, ["self"])
|
|
6501
|
-
}, [x("div",
|
|
6502
|
-
x("div",
|
|
6551
|
+
}, [x("div", wc, [
|
|
6552
|
+
x("div", Tc, [
|
|
6503
6553
|
w(d, {
|
|
6504
6554
|
name: "search",
|
|
6505
6555
|
size: 24,
|
|
@@ -6513,7 +6563,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6513
6563
|
placeholder: e.placeholder ?? U(r).search,
|
|
6514
6564
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
6515
6565
|
onKeydown: D
|
|
6516
|
-
}, null, 40,
|
|
6566
|
+
}, null, 40, Ec), [[te, o.value]]),
|
|
6517
6567
|
e.loading ? (P(), v(c, {
|
|
6518
6568
|
key: 0,
|
|
6519
6569
|
size: 20,
|
|
@@ -6528,7 +6578,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6528
6578
|
size: 18
|
|
6529
6579
|
})])) : y("", !0)
|
|
6530
6580
|
]),
|
|
6531
|
-
f.value ? (P(), b("div",
|
|
6581
|
+
f.value ? (P(), b("div", Dc, [e.results.length ? (P(!0), b(p, { key: 0 }, R(g.value, ([t, n]) => (P(), b(p, { key: t }, [t ? (P(), b("p", Oc, H(t), 1)) : y("", !0), (P(!0), b(p, null, R(n, (t) => (P(), b("button", {
|
|
6532
6582
|
key: t.id,
|
|
6533
6583
|
type: "button",
|
|
6534
6584
|
"data-spot-active": e.results.indexOf(t) === s.value || void 0,
|
|
@@ -6536,32 +6586,32 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6536
6586
|
onClick: (e) => T(t),
|
|
6537
6587
|
onPointerenter: (n) => s.value = e.results.indexOf(t)
|
|
6538
6588
|
}, [
|
|
6539
|
-
t.icon ? (P(), b("div",
|
|
6589
|
+
t.icon ? (P(), b("div", Ac, [w(d, {
|
|
6540
6590
|
name: t.icon,
|
|
6541
6591
|
size: 20,
|
|
6542
6592
|
class: "text-on-primary-container"
|
|
6543
6593
|
}, null, 8, ["name"])])) : y("", !0),
|
|
6544
|
-
x("div",
|
|
6594
|
+
x("div", jc, [x("p", Mc, H(t.title), 1), t.description ? (P(), b("p", Nc, H(t.description), 1)) : y("", !0)]),
|
|
6545
6595
|
w(d, {
|
|
6546
6596
|
name: "arrow_forward",
|
|
6547
6597
|
size: 16,
|
|
6548
6598
|
class: "shrink-0 text-on-surface-variant/40"
|
|
6549
6599
|
})
|
|
6550
|
-
], 42,
|
|
6600
|
+
], 42, kc))), 128))], 64))), 128)) : e.loading ? y("", !0) : (P(), b("div", Pc, [w(d, {
|
|
6551
6601
|
name: "search_off",
|
|
6552
6602
|
size: 40,
|
|
6553
6603
|
class: "text-on-surface-variant/40"
|
|
6554
|
-
}), x("p",
|
|
6555
|
-
x("div",
|
|
6556
|
-
x("span",
|
|
6557
|
-
x("span",
|
|
6558
|
-
x("span",
|
|
6604
|
+
}), x("p", Fc, H(e.noResultsText ?? U(r).noResults), 1)]))])) : y("", !0),
|
|
6605
|
+
x("div", Ic, [
|
|
6606
|
+
x("span", Lc, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
6607
|
+
x("span", Rc, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.openHint ?? U(r).openHint), 1)]),
|
|
6608
|
+
x("span", zc, [n[4] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), C(" " + H(e.closeHint ?? U(r).closeHint), 1)])
|
|
6559
6609
|
])
|
|
6560
6610
|
])])) : y("", !0)]),
|
|
6561
6611
|
_: 1
|
|
6562
6612
|
})]));
|
|
6563
6613
|
}
|
|
6564
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
6614
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), Vc = /* @__PURE__ */ T({
|
|
6565
6615
|
__name: "MStack",
|
|
6566
6616
|
props: {
|
|
6567
6617
|
direction: { default: "column" },
|
|
@@ -6616,19 +6666,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6616
6666
|
role: "separator"
|
|
6617
6667
|
}, null, 2)) : y("", !0), (P(), v(V(e)))], 64))), 128)) : z(t.$slots, "default", { key: 1 })], 2));
|
|
6618
6668
|
}
|
|
6619
|
-
}),
|
|
6669
|
+
}), Hc = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, Uc = { class: "flex items-start justify-between gap-2" }, Wc = { class: "flex min-w-0 flex-col gap-1" }, Gc = { class: "truncate text-label-large text-on-surface-variant" }, Kc = {
|
|
6620
6670
|
key: 0,
|
|
6621
6671
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
6622
|
-
},
|
|
6672
|
+
}, qc = {
|
|
6623
6673
|
key: 1,
|
|
6624
6674
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
6625
|
-
},
|
|
6675
|
+
}, Jc = {
|
|
6626
6676
|
key: 0,
|
|
6627
6677
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
6628
|
-
},
|
|
6678
|
+
}, Yc = {
|
|
6629
6679
|
key: 1,
|
|
6630
6680
|
class: "text-label-medium text-on-surface-variant"
|
|
6631
|
-
},
|
|
6681
|
+
}, Xc = /* @__PURE__ */ T({
|
|
6632
6682
|
__name: "MStatCard",
|
|
6633
6683
|
props: {
|
|
6634
6684
|
title: {},
|
|
@@ -6647,13 +6697,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6647
6697
|
error: "bg-error-container text-on-error-container",
|
|
6648
6698
|
success: "bg-success-container text-on-success-container"
|
|
6649
6699
|
}, r = _(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), i = _(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
6650
|
-
return (t, a) => (P(), b("div",
|
|
6700
|
+
return (t, a) => (P(), b("div", Hc, [x("div", Uc, [x("div", Wc, [x("span", Gc, H(e.title), 1), e.loading ? (P(), b("div", Kc)) : (P(), b("span", qc, H(e.value), 1))]), e.icon ? (P(), b("div", {
|
|
6651
6701
|
key: 0,
|
|
6652
6702
|
class: k(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
6653
6703
|
}, [w(d, {
|
|
6654
6704
|
name: e.icon,
|
|
6655
6705
|
size: 24
|
|
6656
|
-
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div",
|
|
6706
|
+
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div", Jc, [
|
|
6657
6707
|
e.trend == null ? y("", !0) : (P(), b("span", {
|
|
6658
6708
|
key: 0,
|
|
6659
6709
|
class: k(["inline-flex items-center gap-0.5 text-label-medium font-medium", r.value])
|
|
@@ -6661,35 +6711,35 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6661
6711
|
name: i.value,
|
|
6662
6712
|
size: 16
|
|
6663
6713
|
}, null, 8, ["name"]), C(" " + H(e.trend > 0 ? "+" : "") + H(e.trend) + "% ", 1)], 2)),
|
|
6664
|
-
e.trendLabel ? (P(), b("span",
|
|
6714
|
+
e.trendLabel ? (P(), b("span", Yc, H(e.trendLabel), 1)) : y("", !0),
|
|
6665
6715
|
z(t.$slots, "footer")
|
|
6666
6716
|
])) : y("", !0)]));
|
|
6667
6717
|
}
|
|
6668
|
-
}),
|
|
6718
|
+
}), Zc = {
|
|
6669
6719
|
key: 0,
|
|
6670
6720
|
class: "flex w-full items-start"
|
|
6671
|
-
},
|
|
6721
|
+
}, Qc = ["onClick"], $c = { key: 3 }, el = { class: "flex flex-col items-center text-center" }, tl = {
|
|
6672
6722
|
key: 0,
|
|
6673
6723
|
class: "text-body-small text-on-surface-variant"
|
|
6674
|
-
},
|
|
6724
|
+
}, nl = {
|
|
6675
6725
|
key: 1,
|
|
6676
6726
|
class: "text-body-small text-on-surface-variant"
|
|
6677
|
-
},
|
|
6727
|
+
}, rl = {
|
|
6678
6728
|
key: 0,
|
|
6679
6729
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
6680
|
-
},
|
|
6730
|
+
}, il = {
|
|
6681
6731
|
key: 1,
|
|
6682
6732
|
class: "flex flex-col"
|
|
6683
|
-
},
|
|
6733
|
+
}, al = { class: "flex flex-col items-center" }, ol = ["onClick"], sl = { key: 3 }, cl = ["onClick"], ll = {
|
|
6684
6734
|
key: 0,
|
|
6685
6735
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
6686
|
-
},
|
|
6736
|
+
}, ul = {
|
|
6687
6737
|
key: 1,
|
|
6688
6738
|
class: "text-body-small text-on-surface-variant"
|
|
6689
|
-
},
|
|
6739
|
+
}, dl = {
|
|
6690
6740
|
key: 2,
|
|
6691
6741
|
class: "mt-3"
|
|
6692
|
-
},
|
|
6742
|
+
}, fl = /* @__PURE__ */ T({
|
|
6693
6743
|
__name: "MStepper",
|
|
6694
6744
|
props: {
|
|
6695
6745
|
steps: {},
|
|
@@ -6710,7 +6760,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6710
6760
|
function o(e) {
|
|
6711
6761
|
a.value && r("update:modelValue", e);
|
|
6712
6762
|
}
|
|
6713
|
-
return (t, n) => e.direction === "horizontal" ? (P(), b("div",
|
|
6763
|
+
return (t, n) => e.direction === "horizontal" ? (P(), b("div", Zc, [(P(!0), b(p, null, R(e.steps, (t, n) => (P(), b(p, { key: n }, [x("div", {
|
|
6714
6764
|
class: k(["flex flex-col items-center gap-2", a.value && i(n) !== "active" ? "cursor-pointer" : ""]),
|
|
6715
6765
|
onClick: (e) => o(n)
|
|
6716
6766
|
}, [x("div", { class: k(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -6729,18 +6779,18 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6729
6779
|
key: 2,
|
|
6730
6780
|
name: t.icon,
|
|
6731
6781
|
size: 20
|
|
6732
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
6782
|
+
}, null, 8, ["name"])) : (P(), b("span", $c, H(n + 1), 1))], 2), x("div", el, [
|
|
6733
6783
|
x("span", { class: k(["text-label-large", {
|
|
6734
6784
|
"font-medium text-on-surface": i(n) === "active" || i(n) === "completed",
|
|
6735
6785
|
"text-error": i(n) === "error",
|
|
6736
6786
|
"text-on-surface-variant": i(n) === "inactive"
|
|
6737
6787
|
}]) }, H(t.label), 3),
|
|
6738
|
-
t.description ? (P(), b("span",
|
|
6739
|
-
t.optional ? (P(), b("span",
|
|
6740
|
-
])], 10,
|
|
6788
|
+
t.description ? (P(), b("span", tl, H(t.description), 1)) : y("", !0),
|
|
6789
|
+
t.optional ? (P(), b("span", nl, " Opcional ")) : y("", !0)
|
|
6790
|
+
])], 10, Qc), n < e.steps.length - 1 ? (P(), b("div", rl, [x("div", { class: k(["h-px w-full transition-colors duration-300", n < e.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : y("", !0)], 64))), 128))])) : (P(), b("div", il, [(P(!0), b(p, null, R(e.steps, (n, r) => (P(), b("div", {
|
|
6741
6791
|
key: r,
|
|
6742
6792
|
class: "flex gap-4"
|
|
6743
|
-
}, [x("div",
|
|
6793
|
+
}, [x("div", al, [x("div", {
|
|
6744
6794
|
class: k(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
6745
6795
|
"bg-primary text-on-primary": i(r) === "active" || i(r) === "completed",
|
|
6746
6796
|
"bg-error text-on-error": i(r) === "error",
|
|
@@ -6759,7 +6809,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6759
6809
|
key: 2,
|
|
6760
6810
|
name: n.icon,
|
|
6761
6811
|
size: 20
|
|
6762
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
6812
|
+
}, null, 8, ["name"])) : (P(), b("span", sl, H(r + 1), 1))], 10, ol), r < e.steps.length - 1 ? (P(), b("div", {
|
|
6763
6813
|
key: 0,
|
|
6764
6814
|
class: k(["my-1 w-px flex-1 transition-colors duration-300", r < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
6765
6815
|
style: { "min-height": "24px" }
|
|
@@ -6772,12 +6822,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6772
6822
|
"text-error": i(r) === "error",
|
|
6773
6823
|
"text-on-surface-variant": i(r) === "inactive"
|
|
6774
6824
|
}]) }, H(n.label), 3),
|
|
6775
|
-
n.description ? (P(), b("p",
|
|
6776
|
-
n.optional ? (P(), b("p",
|
|
6777
|
-
i(r) === "active" && t.$slots[`step-${r}`] ? (P(), b("div",
|
|
6778
|
-
], 10,
|
|
6825
|
+
n.description ? (P(), b("p", ll, H(n.description), 1)) : y("", !0),
|
|
6826
|
+
n.optional ? (P(), b("p", ul, " Opcional ")) : y("", !0),
|
|
6827
|
+
i(r) === "active" && t.$slots[`step-${r}`] ? (P(), b("div", dl, [z(t.$slots, `step-${r}`)])) : y("", !0)
|
|
6828
|
+
], 10, cl)]))), 128))]));
|
|
6779
6829
|
}
|
|
6780
|
-
}),
|
|
6830
|
+
}), pl = /* @__PURE__ */ T({
|
|
6781
6831
|
__name: "MSticky",
|
|
6782
6832
|
props: {
|
|
6783
6833
|
top: { default: 0 },
|
|
@@ -6795,7 +6845,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6795
6845
|
}));
|
|
6796
6846
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
6797
6847
|
}
|
|
6798
|
-
}),
|
|
6848
|
+
}), ml = /* @__PURE__ */ T({
|
|
6799
6849
|
__name: "MText",
|
|
6800
6850
|
props: {
|
|
6801
6851
|
variant: { default: "body-medium" },
|
|
@@ -6875,7 +6925,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6875
6925
|
_: 3
|
|
6876
6926
|
}, 8, ["class"]));
|
|
6877
6927
|
}
|
|
6878
|
-
}),
|
|
6928
|
+
}), hl = /* @__PURE__ */ T({
|
|
6879
6929
|
__name: "MSubtitle",
|
|
6880
6930
|
props: {
|
|
6881
6931
|
size: { default: "large" },
|
|
@@ -6889,7 +6939,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6889
6939
|
medium: "body-medium",
|
|
6890
6940
|
small: "body-small"
|
|
6891
6941
|
}, r = _(() => n[t.size]);
|
|
6892
|
-
return (t, n) => (P(), v(
|
|
6942
|
+
return (t, n) => (P(), v(ml, {
|
|
6893
6943
|
variant: r.value,
|
|
6894
6944
|
color: e.color,
|
|
6895
6945
|
align: e.align,
|
|
@@ -6904,31 +6954,31 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6904
6954
|
"truncate"
|
|
6905
6955
|
]));
|
|
6906
6956
|
}
|
|
6907
|
-
}),
|
|
6957
|
+
}), gl = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, _l = {
|
|
6908
6958
|
key: 0,
|
|
6909
6959
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
6910
|
-
},
|
|
6960
|
+
}, vl = {
|
|
6911
6961
|
key: 0,
|
|
6912
6962
|
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"
|
|
6913
|
-
},
|
|
6963
|
+
}, yl = ["placeholder"], bl = {
|
|
6914
6964
|
key: 0,
|
|
6915
6965
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
6916
|
-
},
|
|
6966
|
+
}, xl = { class: "overflow-x-auto" }, Sl = { class: "w-full border-collapse" }, Cl = { class: "bg-surface-container-high" }, wl = {
|
|
6917
6967
|
key: 0,
|
|
6918
6968
|
class: "w-12 px-4 py-3"
|
|
6919
|
-
},
|
|
6969
|
+
}, Tl = ["onClick"], El = { class: "inline-flex items-center gap-1" }, Dl = {
|
|
6920
6970
|
key: 0,
|
|
6921
6971
|
class: "inline-flex"
|
|
6922
|
-
},
|
|
6972
|
+
}, Ol = {
|
|
6923
6973
|
key: 1,
|
|
6924
6974
|
class: "w-1 px-4 py-3"
|
|
6925
|
-
},
|
|
6975
|
+
}, kl = {
|
|
6926
6976
|
key: 0,
|
|
6927
6977
|
class: "px-4 py-3.5"
|
|
6928
|
-
},
|
|
6978
|
+
}, Al = {
|
|
6929
6979
|
key: 1,
|
|
6930
6980
|
class: "px-4 py-3.5"
|
|
6931
|
-
},
|
|
6981
|
+
}, jl = { key: 1 }, Ml = ["colspan"], Nl = { class: "text-body-medium text-on-surface-variant" }, Pl = ["onClick"], Fl = ["onClick"], Il = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Ll = /* @__PURE__ */ T({
|
|
6932
6982
|
__name: "MTable",
|
|
6933
6983
|
props: {
|
|
6934
6984
|
columns: {},
|
|
@@ -7068,9 +7118,9 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7068
7118
|
return `${i[(e * 3 + t) % i.length]}%`;
|
|
7069
7119
|
}
|
|
7070
7120
|
let J = ee(), X = _(() => !!J["row-actions"]);
|
|
7071
|
-
return (t, n) => (P(), b("div",
|
|
7072
|
-
e.searchable || t.$slots.toolbar ? (P(), b("div",
|
|
7073
|
-
e.searchable ? (P(), b("div",
|
|
7121
|
+
return (t, n) => (P(), b("div", gl, [
|
|
7122
|
+
e.searchable || t.$slots.toolbar ? (P(), b("div", _l, [
|
|
7123
|
+
e.searchable ? (P(), b("div", vl, [
|
|
7074
7124
|
w(d, {
|
|
7075
7125
|
name: "search",
|
|
7076
7126
|
size: 16,
|
|
@@ -7081,7 +7131,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7081
7131
|
type: "text",
|
|
7082
7132
|
placeholder: e.searchPlaceholder ?? U(r).search,
|
|
7083
7133
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
7084
|
-
}, null, 8,
|
|
7134
|
+
}, null, 8, yl), [[te, s.value]]),
|
|
7085
7135
|
s.value ? (P(), b("button", {
|
|
7086
7136
|
key: 0,
|
|
7087
7137
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -7098,12 +7148,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7098
7148
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
7099
7149
|
"leave-to-class": "opacity-0 scale-90"
|
|
7100
7150
|
}, {
|
|
7101
|
-
default: Y(() => [e.selectable && O.value.length > 0 ? (P(), b("span",
|
|
7151
|
+
default: Y(() => [e.selectable && O.value.length > 0 ? (P(), b("span", bl, H(O.value.length) + " " + H(e.selectedText ?? U(r).selectedCount) + H(O.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
7102
7152
|
_: 1
|
|
7103
7153
|
})
|
|
7104
7154
|
])) : y("", !0),
|
|
7105
|
-
x("div",
|
|
7106
|
-
e.selectable ? (P(), b("th",
|
|
7155
|
+
x("div", xl, [x("table", Sl, [x("thead", null, [x("tr", Cl, [
|
|
7156
|
+
e.selectable ? (P(), b("th", wl, [w(Q, {
|
|
7107
7157
|
"model-value": I.value,
|
|
7108
7158
|
indeterminate: B.value,
|
|
7109
7159
|
"onUpdate:modelValue": V
|
|
@@ -7117,7 +7167,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7117
7167
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
7118
7168
|
]),
|
|
7119
7169
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
7120
|
-
}, [x("span",
|
|
7170
|
+
}, [x("span", El, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", Dl, [c.value === e.key && l.value === "asc" ? (P(), v(d, {
|
|
7121
7171
|
key: 0,
|
|
7122
7172
|
name: "arrow_upward",
|
|
7123
7173
|
size: 14,
|
|
@@ -7132,13 +7182,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7132
7182
|
name: "unfold_more",
|
|
7133
7183
|
size: 14,
|
|
7134
7184
|
class: "opacity-30"
|
|
7135
|
-
}))])) : y("", !0)])], 14,
|
|
7136
|
-
X.value ? (P(), b("th",
|
|
7185
|
+
}))])) : y("", !0)])], 14, Tl))), 128)),
|
|
7186
|
+
X.value ? (P(), b("th", Ol)) : y("", !0)
|
|
7137
7187
|
])]), x("tbody", null, [e.loading ? (P(!0), b(p, { key: 0 }, R(e.perPage, (t) => (P(), b("tr", {
|
|
7138
7188
|
key: `sk-${t}`,
|
|
7139
7189
|
class: "border-t border-outline-variant"
|
|
7140
7190
|
}, [
|
|
7141
|
-
e.selectable ? (P(), b("td",
|
|
7191
|
+
e.selectable ? (P(), b("td", kl, [...n[4] ||= [x("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : y("", !0),
|
|
7142
7192
|
(P(!0), b(p, null, R(e.columns, (e, n) => (P(), b("td", {
|
|
7143
7193
|
key: e.key,
|
|
7144
7194
|
class: "px-4 py-3.5"
|
|
@@ -7146,15 +7196,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7146
7196
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
7147
7197
|
style: A({ width: K(t, n) })
|
|
7148
7198
|
}, null, 4)]))), 128)),
|
|
7149
|
-
X.value ? (P(), b("td",
|
|
7150
|
-
]))), 128)) : T.value.length === 0 ? (P(), b("tr",
|
|
7199
|
+
X.value ? (P(), b("td", Al, [...n[5] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : y("", !0)
|
|
7200
|
+
]))), 128)) : T.value.length === 0 ? (P(), b("tr", jl, [x("td", {
|
|
7151
7201
|
colspan: e.columns.length + W.value,
|
|
7152
7202
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
7153
7203
|
}, [z(t.$slots, "empty", {}, () => [w(d, {
|
|
7154
7204
|
name: "search_off",
|
|
7155
7205
|
size: 36,
|
|
7156
7206
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
7157
|
-
}), x("p",
|
|
7207
|
+
}), x("p", Nl, H(e.emptyText ?? U(r).noResults), 1)])], 8, Ml)])) : (P(!0), b(p, { key: 2 }, R(T.value, (r) => (P(), b("tr", {
|
|
7158
7208
|
key: j(r),
|
|
7159
7209
|
class: k([
|
|
7160
7210
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -7171,7 +7221,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7171
7221
|
}, [w(Q, {
|
|
7172
7222
|
"model-value": N(r),
|
|
7173
7223
|
"onUpdate:modelValue": (e) => F(r)
|
|
7174
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
7224
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Fl)) : y("", !0),
|
|
7175
7225
|
(P(!0), b(p, null, R(e.columns, (e) => (P(), b("td", {
|
|
7176
7226
|
key: e.key,
|
|
7177
7227
|
class: k(["px-4 py-3 text-body-medium text-on-surface", G(e.align)])
|
|
@@ -7185,8 +7235,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7185
7235
|
class: "px-4 py-3 text-right",
|
|
7186
7236
|
onClick: n[2] ||= Z(() => {}, ["stop"])
|
|
7187
7237
|
}, [z(t.$slots, "row-actions", { row: r })])) : y("", !0)
|
|
7188
|
-
], 10,
|
|
7189
|
-
x("div",
|
|
7238
|
+
], 10, Pl))), 128))])])]),
|
|
7239
|
+
x("div", Il, [w(fn, {
|
|
7190
7240
|
page: m.value,
|
|
7191
7241
|
"per-page": e.perPage,
|
|
7192
7242
|
total: S.value,
|
|
@@ -7198,16 +7248,16 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7198
7248
|
])])
|
|
7199
7249
|
]));
|
|
7200
7250
|
}
|
|
7201
|
-
}),
|
|
7251
|
+
}), Rl = {
|
|
7202
7252
|
key: 0,
|
|
7203
7253
|
class: "relative border-b border-outline-variant"
|
|
7204
|
-
},
|
|
7254
|
+
}, zl = {
|
|
7205
7255
|
class: "flex overflow-x-auto",
|
|
7206
7256
|
style: { "scrollbar-width": "none" }
|
|
7207
|
-
},
|
|
7257
|
+
}, Bl = ["disabled", "onClick"], Vl = {
|
|
7208
7258
|
key: 1,
|
|
7209
7259
|
class: "flex flex-wrap gap-1 rounded-full bg-surface-container p-1"
|
|
7210
|
-
},
|
|
7260
|
+
}, Hl = ["disabled", "onClick"], Ul = /* @__PURE__ */ T({
|
|
7211
7261
|
__name: "MTabs",
|
|
7212
7262
|
props: {
|
|
7213
7263
|
modelValue: {},
|
|
@@ -7227,7 +7277,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7227
7277
|
function c(e) {
|
|
7228
7278
|
e.disabled || r("update:modelValue", e.value);
|
|
7229
7279
|
}
|
|
7230
|
-
return (t, n) => e.variant === "primary" ? (P(), b("div",
|
|
7280
|
+
return (t, n) => e.variant === "primary" ? (P(), b("div", Rl, [x("div", zl, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
7231
7281
|
key: t.value,
|
|
7232
7282
|
ref_for: !0,
|
|
7233
7283
|
ref: (n) => {
|
|
@@ -7241,13 +7291,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7241
7291
|
key: 0,
|
|
7242
7292
|
name: t.icon,
|
|
7243
7293
|
size: 20
|
|
7244
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
7294
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, Bl))), 128))]), x("div", {
|
|
7245
7295
|
class: "absolute bottom-0 h-[3px] rounded-t-sm bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
|
|
7246
7296
|
style: A({
|
|
7247
7297
|
left: `${a.value}px`,
|
|
7248
7298
|
width: `${o.value}px`
|
|
7249
7299
|
})
|
|
7250
|
-
}, null, 4)])) : (P(), b("div",
|
|
7300
|
+
}, null, 4)])) : (P(), b("div", Vl, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
7251
7301
|
key: t.value,
|
|
7252
7302
|
type: "button",
|
|
7253
7303
|
class: k(["flex h-8 items-center gap-2 rounded-full px-4 text-label-large transition-all duration-150 focus-visible:outline-none", t.value === e.modelValue ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : t.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8 hover:text-on-surface"]),
|
|
@@ -7257,27 +7307,27 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7257
7307
|
key: 0,
|
|
7258
7308
|
name: t.icon,
|
|
7259
7309
|
size: 16
|
|
7260
|
-
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10,
|
|
7310
|
+
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10, Hl))), 128))]));
|
|
7261
7311
|
}
|
|
7262
|
-
}),
|
|
7312
|
+
}), Wl = { class: "flex flex-col items-center" }, Gl = { class: "flex items-baseline justify-between gap-2" }, Kl = { class: "text-body-large font-medium text-on-surface" }, ql = {
|
|
7263
7313
|
key: 0,
|
|
7264
7314
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
7265
|
-
},
|
|
7315
|
+
}, Jl = {
|
|
7266
7316
|
key: 0,
|
|
7267
7317
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
7268
|
-
},
|
|
7318
|
+
}, Yl = {
|
|
7269
7319
|
key: 1,
|
|
7270
7320
|
class: "mt-2"
|
|
7271
|
-
},
|
|
7321
|
+
}, Xl = { class: "text-body-large font-medium text-on-surface" }, Zl = {
|
|
7272
7322
|
key: 0,
|
|
7273
7323
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
7274
|
-
},
|
|
7324
|
+
}, Ql = {
|
|
7275
7325
|
key: 1,
|
|
7276
7326
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
7277
|
-
},
|
|
7327
|
+
}, $l = { class: "flex w-14 shrink-0 flex-col items-center" }, eu = {
|
|
7278
7328
|
key: 0,
|
|
7279
7329
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
7280
|
-
},
|
|
7330
|
+
}, tu = /* @__PURE__ */ T({
|
|
7281
7331
|
__name: "MTimeline",
|
|
7282
7332
|
props: {
|
|
7283
7333
|
items: {},
|
|
@@ -7303,23 +7353,23 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7303
7353
|
class: k(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
7304
7354
|
}, [
|
|
7305
7355
|
x("div", { class: k(["flex-1", [i % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
7306
|
-
x("p",
|
|
7307
|
-
n.description ? (P(), b("p",
|
|
7308
|
-
n.date ? (P(), b("span",
|
|
7356
|
+
x("p", Xl, H(n.title), 1),
|
|
7357
|
+
n.description ? (P(), b("p", Zl, H(n.description), 1)) : y("", !0),
|
|
7358
|
+
n.date ? (P(), b("span", Ql, H(n.date), 1)) : y("", !0)
|
|
7309
7359
|
], 2),
|
|
7310
|
-
x("div",
|
|
7360
|
+
x("div", $l, [x("div", {
|
|
7311
7361
|
class: k(["z-1 flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3.5 w-3.5", t[n.color ?? "primary"]]]),
|
|
7312
7362
|
style: A(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
7313
7363
|
}, [n.icon ? (P(), v(d, {
|
|
7314
7364
|
key: 0,
|
|
7315
7365
|
name: n.icon,
|
|
7316
7366
|
size: 18
|
|
7317
|
-
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div",
|
|
7367
|
+
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div", eu)) : y("", !0)]),
|
|
7318
7368
|
r[0] ||= x("div", { class: "flex-1" }, null, -1)
|
|
7319
7369
|
], 2))), 128)) : (P(!0), b(p, { key: 0 }, R(e.items, (r, i) => (P(), b("div", {
|
|
7320
7370
|
key: i,
|
|
7321
7371
|
class: k(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
7322
|
-
}, [x("div",
|
|
7372
|
+
}, [x("div", Wl, [x("div", {
|
|
7323
7373
|
class: k(["z-1 flex shrink-0 items-center justify-center rounded-full", [r.icon ? "h-9 w-9" : "h-3 w-3", t[r.color ?? "primary"]]]),
|
|
7324
7374
|
style: A(r.dotColor ? { backgroundColor: r.dotColor } : void 0)
|
|
7325
7375
|
}, [r.icon ? (P(), v(d, {
|
|
@@ -7331,30 +7381,30 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7331
7381
|
class: k(["w-[2px] flex-1", t[r.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
7332
7382
|
style: { "min-height": "16px" }
|
|
7333
7383
|
}, null, 2)) : y("", !0)]), x("div", { class: k([r.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
7334
|
-
x("div",
|
|
7335
|
-
r.description ? (P(), b("p",
|
|
7336
|
-
n.$slots[`item-${i}`] ? (P(), b("div",
|
|
7384
|
+
x("div", Gl, [x("p", Kl, H(r.title), 1), r.date ? (P(), b("span", ql, H(r.date), 1)) : y("", !0)]),
|
|
7385
|
+
r.description ? (P(), b("p", Jl, H(r.description), 1)) : y("", !0),
|
|
7386
|
+
n.$slots[`item-${i}`] ? (P(), b("div", Yl, [z(n.$slots, `item-${i}`, { item: r })])) : y("", !0)
|
|
7337
7387
|
], 2)], 2))), 128))], 2));
|
|
7338
7388
|
}
|
|
7339
|
-
}),
|
|
7389
|
+
}), nu = { class: "flex flex-col gap-1" }, ru = {
|
|
7340
7390
|
key: 0,
|
|
7341
7391
|
class: "flex-1 font-mono text-on-surface"
|
|
7342
|
-
},
|
|
7392
|
+
}, iu = {
|
|
7343
7393
|
key: 1,
|
|
7344
7394
|
class: "flex-1 text-on-surface-variant"
|
|
7345
|
-
},
|
|
7395
|
+
}, au = {
|
|
7346
7396
|
key: 0,
|
|
7347
7397
|
class: "px-4 text-body-small text-error"
|
|
7348
|
-
},
|
|
7398
|
+
}, ou = {
|
|
7349
7399
|
key: 1,
|
|
7350
7400
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
7351
|
-
},
|
|
7401
|
+
}, su = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, cu = { class: "p-3" }, lu = {
|
|
7352
7402
|
key: 0,
|
|
7353
7403
|
class: "grid grid-cols-6 gap-1"
|
|
7354
|
-
},
|
|
7404
|
+
}, uu = ["onClick"], du = {
|
|
7355
7405
|
key: 1,
|
|
7356
7406
|
class: "grid grid-cols-6 gap-1"
|
|
7357
|
-
},
|
|
7407
|
+
}, fu = ["onClick"], pu = /* @__PURE__ */ T({
|
|
7358
7408
|
__name: "MTimePicker",
|
|
7359
7409
|
props: {
|
|
7360
7410
|
modelValue: {},
|
|
@@ -7432,7 +7482,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7432
7482
|
e ? (u.value = "hour", C.value = S.value.h, T.value = S.value.m, B(), setTimeout(() => document.addEventListener("mousedown", V), 0)) : document.removeEventListener("mousedown", V);
|
|
7433
7483
|
}), M(() => window.addEventListener("scroll", W, !0)), N(() => {
|
|
7434
7484
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", V);
|
|
7435
|
-
}), (t, n) => (P(), b("div",
|
|
7485
|
+
}), (t, n) => (P(), b("div", nu, [
|
|
7436
7486
|
x("div", {
|
|
7437
7487
|
ref_key: "triggerEl",
|
|
7438
7488
|
ref: c,
|
|
@@ -7448,7 +7498,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7448
7498
|
size: 20,
|
|
7449
7499
|
class: "shrink-0 text-on-surface-variant"
|
|
7450
7500
|
}),
|
|
7451
|
-
z.value ? (P(), b("span",
|
|
7501
|
+
z.value ? (P(), b("span", ru, H(z.value), 1)) : (P(), b("span", iu, H(e.label || e.placeholder || U(a).selectTime), 1)),
|
|
7452
7502
|
e.modelValue ? (P(), v(d, {
|
|
7453
7503
|
key: 2,
|
|
7454
7504
|
name: "close",
|
|
@@ -7460,7 +7510,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7460
7510
|
key: 0,
|
|
7461
7511
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", s.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
7462
7512
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
7463
|
-
e.error ? (P(), b("p",
|
|
7513
|
+
e.error ? (P(), b("p", au, H(e.error), 1)) : e.hint ? (P(), b("p", ou, H(e.hint), 1)) : y("", !0),
|
|
7464
7514
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
7465
7515
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
7466
7516
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -7473,7 +7523,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7473
7523
|
ref: l,
|
|
7474
7524
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
7475
7525
|
style: A(f.value)
|
|
7476
|
-
}, [x("div",
|
|
7526
|
+
}, [x("div", su, [
|
|
7477
7527
|
x("button", {
|
|
7478
7528
|
type: "button",
|
|
7479
7529
|
class: k(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", u.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -7485,22 +7535,22 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7485
7535
|
class: k(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", u.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
7486
7536
|
onClick: n[2] ||= (e) => u.value = "minute"
|
|
7487
7537
|
}, H(O(T.value)), 3)
|
|
7488
|
-
]), x("div",
|
|
7538
|
+
]), x("div", cu, [u.value === "hour" ? (P(), b("div", lu, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("button", {
|
|
7489
7539
|
key: e,
|
|
7490
7540
|
type: "button",
|
|
7491
7541
|
class: k(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === C.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
7492
7542
|
onClick: (t) => j(e)
|
|
7493
|
-
}, H(O(e)), 11,
|
|
7543
|
+
}, H(O(e)), 11, uu))), 128))])) : (P(), b("div", du, [(P(!0), b(p, null, R(D.value, (e) => (P(), b("button", {
|
|
7494
7544
|
key: e,
|
|
7495
7545
|
type: "button",
|
|
7496
7546
|
class: k(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === T.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
7497
7547
|
onClick: (t) => F(e)
|
|
7498
|
-
}, H(O(e)), 11,
|
|
7548
|
+
}, H(O(e)), 11, fu))), 128))]))])], 4)) : y("", !0)]),
|
|
7499
7549
|
_: 1
|
|
7500
7550
|
})]))
|
|
7501
7551
|
]));
|
|
7502
7552
|
}
|
|
7503
|
-
}),
|
|
7553
|
+
}), mu = /* @__PURE__ */ T({
|
|
7504
7554
|
__name: "MTitle",
|
|
7505
7555
|
props: {
|
|
7506
7556
|
size: { default: "large" },
|
|
@@ -7514,7 +7564,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7514
7564
|
medium: "headline-medium",
|
|
7515
7565
|
small: "headline-small"
|
|
7516
7566
|
}, r = _(() => n[t.size]);
|
|
7517
|
-
return (t, n) => (P(), v(
|
|
7567
|
+
return (t, n) => (P(), v(ml, {
|
|
7518
7568
|
variant: r.value,
|
|
7519
7569
|
weight: "medium",
|
|
7520
7570
|
color: e.color,
|
|
@@ -7530,7 +7580,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7530
7580
|
"truncate"
|
|
7531
7581
|
]));
|
|
7532
7582
|
}
|
|
7533
|
-
}),
|
|
7583
|
+
}), hu = /* @__PURE__ */ T({
|
|
7534
7584
|
__name: "MTooltip",
|
|
7535
7585
|
props: {
|
|
7536
7586
|
text: {},
|
|
@@ -7599,13 +7649,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7599
7649
|
_: 1
|
|
7600
7650
|
})]))], 64));
|
|
7601
7651
|
}
|
|
7602
|
-
}),
|
|
7603
|
-
key:
|
|
7652
|
+
}), gu = { class: "flex h-16 items-center gap-1 px-4" }, _u = {
|
|
7653
|
+
key: 1,
|
|
7604
7654
|
class: "flex-1"
|
|
7605
|
-
},
|
|
7606
|
-
key:
|
|
7655
|
+
}, vu = {
|
|
7656
|
+
key: 2,
|
|
7607
7657
|
class: "flex items-center gap-1"
|
|
7608
|
-
},
|
|
7658
|
+
}, yu = /* @__PURE__ */ T({
|
|
7609
7659
|
__name: "MTopAppBar",
|
|
7610
7660
|
props: {
|
|
7611
7661
|
title: {},
|
|
@@ -7616,24 +7666,24 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7616
7666
|
},
|
|
7617
7667
|
emits: ["navigation"],
|
|
7618
7668
|
setup(t) {
|
|
7619
|
-
return (n, r) => (P(), b("header", { class: k(["flex w-full flex-col bg-surface transition-shadow", [t.elevated ? "shadow-elevation-2" : "", t.bordered ? "border-b border-outline-variant" : ""]]) }, [x("div",
|
|
7620
|
-
t.navigationIcon ? (P(), v(e, {
|
|
7669
|
+
return (n, r) => (P(), b("header", { class: k(["flex w-full flex-col bg-surface transition-shadow", [t.elevated ? "shadow-elevation-2" : "", t.bordered ? "border-b border-outline-variant" : ""]]) }, [x("div", gu, [
|
|
7670
|
+
z(n.$slots, "navigation", {}, () => [t.navigationIcon ? (P(), v(e, {
|
|
7621
7671
|
key: 0,
|
|
7622
7672
|
icon: t.navigationIcon,
|
|
7623
7673
|
label: "Navegación",
|
|
7624
7674
|
onClick: r[0] ||= (e) => n.$emit("navigation")
|
|
7625
|
-
}, null, 8, ["icon"])) : y("", !0),
|
|
7675
|
+
}, null, 8, ["icon"])) : y("", !0)]),
|
|
7626
7676
|
t.variant === "center" || t.variant === "small" ? (P(), b("h1", {
|
|
7627
|
-
key:
|
|
7628
|
-
class: k(["flex-1 truncate px-
|
|
7629
|
-
}, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)) : (P(), b("div",
|
|
7630
|
-
n.$slots.actions ? (P(), b("div",
|
|
7677
|
+
key: 0,
|
|
7678
|
+
class: k(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", t.variant === "center" ? "justify-center" : ""])
|
|
7679
|
+
}, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)) : (P(), b("div", _u)),
|
|
7680
|
+
n.$slots.actions ? (P(), b("div", vu, [z(n.$slots, "actions")])) : y("", !0)
|
|
7631
7681
|
]), t.variant === "medium" || t.variant === "large" ? (P(), b("div", {
|
|
7632
7682
|
key: 0,
|
|
7633
7683
|
class: k(["px-4 pb-6", t.variant === "large" ? "pt-4" : "pt-1"])
|
|
7634
7684
|
}, [x("h1", { class: k(["text-on-surface", t.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)], 2)) : y("", !0)], 2));
|
|
7635
7685
|
}
|
|
7636
|
-
}),
|
|
7686
|
+
}), bu = { class: "mb-2 flex items-center justify-between" }, xu = { class: "text-label-small text-on-surface-variant" }, Su = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Cu = { class: "mb-4 text-body-medium text-on-surface-variant" }, wu = { class: "mb-4 flex justify-center gap-1.5" }, Tu = { class: "flex justify-between" }, Eu = { key: 1 }, Du = /* @__PURE__ */ T({
|
|
7637
7687
|
__name: "MTour",
|
|
7638
7688
|
props: {
|
|
7639
7689
|
modelValue: { type: Boolean },
|
|
@@ -7716,7 +7766,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7716
7766
|
class: "h-0 w-0",
|
|
7717
7767
|
style: A(l.value)
|
|
7718
7768
|
}, null, 4),
|
|
7719
|
-
x("div",
|
|
7769
|
+
x("div", bu, [x("span", xu, H(s.value + 1) + " / " + H(e.steps.length), 1), x("button", {
|
|
7720
7770
|
type: "button",
|
|
7721
7771
|
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",
|
|
7722
7772
|
onClick: W
|
|
@@ -7724,13 +7774,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7724
7774
|
name: "close",
|
|
7725
7775
|
size: 16
|
|
7726
7776
|
})])]),
|
|
7727
|
-
x("h3",
|
|
7728
|
-
x("p",
|
|
7729
|
-
x("div",
|
|
7777
|
+
x("h3", Su, H(f.value.title), 1),
|
|
7778
|
+
x("p", Cu, H(f.value.content), 1),
|
|
7779
|
+
x("div", wu, [(P(!0), b(p, null, R(e.steps, (e, t) => (P(), b("div", {
|
|
7730
7780
|
key: t,
|
|
7731
7781
|
class: k(["h-1.5 rounded-full transition-all duration-200", t === s.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
7732
7782
|
}, null, 2))), 128))]),
|
|
7733
|
-
x("div",
|
|
7783
|
+
x("div", Tu, [g.value ? (P(), b("span", Eu)) : (P(), v(o, {
|
|
7734
7784
|
key: 0,
|
|
7735
7785
|
variant: "text",
|
|
7736
7786
|
onClick: V
|
|
@@ -7745,19 +7795,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7745
7795
|
_: 1
|
|
7746
7796
|
})]));
|
|
7747
7797
|
}
|
|
7748
|
-
}),
|
|
7798
|
+
}), Ou = { class: "flex items-stretch gap-2" }, ku = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Au = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, ju = { class: "text-label-large font-medium text-on-surface" }, Mu = { class: "text-label-small text-on-surface-variant" }, Nu = {
|
|
7749
7799
|
key: 0,
|
|
7750
7800
|
class: "border-b border-outline-variant px-3 py-2"
|
|
7751
|
-
},
|
|
7801
|
+
}, Pu = ["placeholder"], Fu = {
|
|
7752
7802
|
class: "flex-1 overflow-y-auto",
|
|
7753
7803
|
style: { "max-height": "240px" }
|
|
7754
|
-
},
|
|
7804
|
+
}, Iu = ["onClick"], Lu = { class: "flex-1 truncate text-body-medium text-on-surface" }, Ru = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, zu = { class: "flex flex-col items-center justify-center gap-1" }, Bu = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Vu = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Hu = { class: "text-label-large font-medium text-on-surface" }, Uu = { class: "text-label-small text-on-surface-variant" }, Wu = {
|
|
7755
7805
|
key: 0,
|
|
7756
7806
|
class: "border-b border-outline-variant px-3 py-2"
|
|
7757
|
-
},
|
|
7807
|
+
}, Gu = ["placeholder"], Ku = {
|
|
7758
7808
|
class: "flex-1 overflow-y-auto",
|
|
7759
7809
|
style: { "max-height": "240px" }
|
|
7760
|
-
},
|
|
7810
|
+
}, qu = ["onClick"], Ju = { class: "flex-1 truncate text-body-medium text-on-surface" }, Yu = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Xu = /* @__PURE__ */ T({
|
|
7761
7811
|
__name: "MTransferList",
|
|
7762
7812
|
props: {
|
|
7763
7813
|
modelValue: {},
|
|
@@ -7815,16 +7865,16 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7815
7865
|
let e = m.value.map((e) => e.value);
|
|
7816
7866
|
o("update:modelValue", a.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
7817
7867
|
}
|
|
7818
|
-
return (n, r) => (P(), b("div",
|
|
7819
|
-
x("div",
|
|
7820
|
-
x("div",
|
|
7821
|
-
t.filterable ? (P(), b("div",
|
|
7868
|
+
return (n, r) => (P(), b("div", Ou, [
|
|
7869
|
+
x("div", ku, [
|
|
7870
|
+
x("div", Au, [x("span", ju, H(t.sourceTitle ?? U(i).available), 1), x("span", Mu, H(f.value.length), 1)]),
|
|
7871
|
+
t.filterable ? (P(), b("div", Nu, [ne(x("input", {
|
|
7822
7872
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
7823
7873
|
type: "text",
|
|
7824
7874
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
7825
7875
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
7826
|
-
}, null, 8,
|
|
7827
|
-
x("div",
|
|
7876
|
+
}, null, 8, Pu), [[te, l.value]])])) : y("", !0),
|
|
7877
|
+
x("div", Fu, [(P(!0), b(p, null, R(f.value, (e) => (P(), b("button", {
|
|
7828
7878
|
key: e.value,
|
|
7829
7879
|
type: "button",
|
|
7830
7880
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -7840,10 +7890,10 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7840
7890
|
size: 18,
|
|
7841
7891
|
class: "shrink-0 text-on-surface-variant"
|
|
7842
7892
|
}, null, 8, ["name"])) : y("", !0),
|
|
7843
|
-
x("span",
|
|
7844
|
-
], 8,
|
|
7893
|
+
x("span", Lu, H(e.label), 1)
|
|
7894
|
+
], 8, Iu))), 128)), f.value.length ? y("", !0) : z(n.$slots, "source-empty", { key: 0 }, () => [x("p", Ru, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
7845
7895
|
]),
|
|
7846
|
-
x("div",
|
|
7896
|
+
x("div", zu, [
|
|
7847
7897
|
w(e, {
|
|
7848
7898
|
icon: "keyboard_double_arrow_right",
|
|
7849
7899
|
label: t.moveAllRightLabel ?? U(i).moveAllRight,
|
|
@@ -7875,15 +7925,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7875
7925
|
onClick: E
|
|
7876
7926
|
}, null, 8, ["label", "disabled"])
|
|
7877
7927
|
]),
|
|
7878
|
-
x("div",
|
|
7879
|
-
x("div",
|
|
7880
|
-
t.filterable ? (P(), b("div",
|
|
7928
|
+
x("div", Bu, [
|
|
7929
|
+
x("div", Vu, [x("span", Hu, H(t.targetTitle ?? U(i).selected), 1), x("span", Uu, H(m.value.length), 1)]),
|
|
7930
|
+
t.filterable ? (P(), b("div", Wu, [ne(x("input", {
|
|
7881
7931
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
7882
7932
|
type: "text",
|
|
7883
7933
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
7884
7934
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
7885
|
-
}, null, 8,
|
|
7886
|
-
x("div",
|
|
7935
|
+
}, null, 8, Gu), [[te, u.value]])])) : y("", !0),
|
|
7936
|
+
x("div", Ku, [(P(!0), b(p, null, R(m.value, (e) => (P(), b("button", {
|
|
7887
7937
|
key: e.value,
|
|
7888
7938
|
type: "button",
|
|
7889
7939
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -7899,18 +7949,18 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7899
7949
|
size: 18,
|
|
7900
7950
|
class: "shrink-0 text-on-surface-variant"
|
|
7901
7951
|
}, null, 8, ["name"])) : y("", !0),
|
|
7902
|
-
x("span",
|
|
7903
|
-
], 8,
|
|
7952
|
+
x("span", Ju, H(e.label), 1)
|
|
7953
|
+
], 8, qu))), 128)), m.value.length ? y("", !0) : z(n.$slots, "target-empty", { key: 0 }, () => [x("p", Yu, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
7904
7954
|
])
|
|
7905
7955
|
]));
|
|
7906
7956
|
}
|
|
7907
|
-
}),
|
|
7957
|
+
}), Zu = ["aria-expanded", "aria-selected"], Qu = { class: "flex w-6 shrink-0 items-center justify-center" }, $u = ["disabled"], ed = {
|
|
7908
7958
|
key: 2,
|
|
7909
7959
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
7910
|
-
},
|
|
7960
|
+
}, td = {
|
|
7911
7961
|
key: 0,
|
|
7912
7962
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
7913
|
-
},
|
|
7963
|
+
}, nd = /* @__PURE__ */ T({
|
|
7914
7964
|
__name: "_MTreeNode",
|
|
7915
7965
|
props: {
|
|
7916
7966
|
node: {},
|
|
@@ -7955,7 +8005,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7955
8005
|
]),
|
|
7956
8006
|
onClick: u
|
|
7957
8007
|
}, [
|
|
7958
|
-
x("div",
|
|
8008
|
+
x("div", Qu, [r.value ? (P(), b("button", {
|
|
7959
8009
|
key: 0,
|
|
7960
8010
|
type: "button",
|
|
7961
8011
|
class: k(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", i.value ? "rotate-90" : ""]),
|
|
@@ -7964,7 +8014,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7964
8014
|
}, [w(d, {
|
|
7965
8015
|
name: "chevron_right",
|
|
7966
8016
|
size: 16
|
|
7967
|
-
})], 10,
|
|
8017
|
+
})], 10, $u)) : y("", !0)]),
|
|
7968
8018
|
U(n).checkable.value ? (P(), b("div", {
|
|
7969
8019
|
key: 0,
|
|
7970
8020
|
class: "shrink-0",
|
|
@@ -7986,7 +8036,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7986
8036
|
class: k(["shrink-0 transition-colors", a.value ? "text-primary" : "text-on-surface-variant"])
|
|
7987
8037
|
}, null, 8, ["name", "class"])) : y("", !0),
|
|
7988
8038
|
x("span", { class: k(["min-w-0 flex-1 truncate text-body-medium transition-colors", a.value ? "font-medium text-primary" : "text-on-surface"]) }, [z(t.$slots, "label", { node: e.node }, () => [C(H(e.node.label), 1)])], 2),
|
|
7989
|
-
r.value && U(n).checkable.value ? (P(), b("span",
|
|
8039
|
+
r.value && U(n).checkable.value ? (P(), b("span", ed, H(s.value) + "/" + H(o.value.length), 1)) : y("", !0),
|
|
7990
8040
|
z(t.$slots, "trailing", { node: e.node })
|
|
7991
8041
|
], 2), w(h, {
|
|
7992
8042
|
onEnter: g,
|
|
@@ -7994,7 +8044,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7994
8044
|
onLeave: O,
|
|
7995
8045
|
onAfterLeave: A
|
|
7996
8046
|
}, {
|
|
7997
|
-
default: Y(() => [i.value && r.value ? (P(), b("div",
|
|
8047
|
+
default: Y(() => [i.value && r.value ? (P(), b("div", td, [(P(!0), b(p, null, R(e.node.children, (n) => (P(), v(nd, {
|
|
7998
8048
|
key: n.id,
|
|
7999
8049
|
node: n,
|
|
8000
8050
|
depth: e.depth + 1
|
|
@@ -8003,15 +8053,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8003
8053
|
fn: Y((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8004
8054
|
}))]), 1032, ["node", "depth"]))), 128))])) : y("", !0)]),
|
|
8005
8055
|
_: 3
|
|
8006
|
-
})], 8,
|
|
8056
|
+
})], 8, Zu));
|
|
8007
8057
|
}
|
|
8008
|
-
}),
|
|
8058
|
+
}), rd = {
|
|
8009
8059
|
role: "tree",
|
|
8010
8060
|
class: "flex flex-col"
|
|
8011
|
-
},
|
|
8061
|
+
}, id = {
|
|
8012
8062
|
key: 1,
|
|
8013
8063
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
8014
|
-
},
|
|
8064
|
+
}, ad = { class: "text-body-medium" }, od = /* @__PURE__ */ T({
|
|
8015
8065
|
__name: "MTree",
|
|
8016
8066
|
props: {
|
|
8017
8067
|
nodes: {},
|
|
@@ -8077,26 +8127,26 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8077
8127
|
return t({
|
|
8078
8128
|
expandAll: y,
|
|
8079
8129
|
collapseAll: C
|
|
8080
|
-
}), (t, n) => (P(), b("div",
|
|
8130
|
+
}), (t, n) => (P(), b("div", rd, [e.nodes.length ? (P(!0), b(p, { key: 0 }, R(e.nodes, (e) => (P(), v(nd, {
|
|
8081
8131
|
key: e.id,
|
|
8082
8132
|
node: e,
|
|
8083
8133
|
depth: 0
|
|
8084
8134
|
}, S({ _: 2 }, [R(t.$slots, (e, n) => ({
|
|
8085
8135
|
name: n,
|
|
8086
8136
|
fn: Y((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8087
|
-
}))]), 1032, ["node"]))), 128)) : (P(), b("div",
|
|
8137
|
+
}))]), 1032, ["node"]))), 128)) : (P(), b("div", id, [w(d, {
|
|
8088
8138
|
name: "account_tree",
|
|
8089
8139
|
size: 32,
|
|
8090
8140
|
class: "opacity-30"
|
|
8091
|
-
}), x("p",
|
|
8141
|
+
}), x("p", ad, H(e.emptyText), 1)]))]));
|
|
8092
8142
|
}
|
|
8093
|
-
}),
|
|
8143
|
+
}), sd = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, cd = {
|
|
8094
8144
|
key: 0,
|
|
8095
8145
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
8096
|
-
},
|
|
8146
|
+
}, ld = { class: "overflow-x-auto" }, ud = { class: "w-full border-collapse" }, dd = { class: "bg-surface-container-high" }, fd = ["onClick"], pd = ["onClick"], md = {
|
|
8097
8147
|
key: 1,
|
|
8098
8148
|
class: "w-6 shrink-0"
|
|
8099
|
-
},
|
|
8149
|
+
}, hd = { key: 0 }, gd = ["colspan"], _d = /* @__PURE__ */ T({
|
|
8100
8150
|
__name: "MTreeTable",
|
|
8101
8151
|
props: {
|
|
8102
8152
|
columns: {},
|
|
@@ -8151,10 +8201,10 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8151
8201
|
function f(e) {
|
|
8152
8202
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
8153
8203
|
}
|
|
8154
|
-
return (t, n) => (P(), b("div",
|
|
8204
|
+
return (t, n) => (P(), b("div", sd, [t.$slots.toolbar ? (P(), b("div", cd, [z(t.$slots, "toolbar", {
|
|
8155
8205
|
expandAll: l,
|
|
8156
8206
|
collapseAll: u
|
|
8157
|
-
})])) : y("", !0), x("div",
|
|
8207
|
+
})])) : y("", !0), x("div", ld, [x("table", ud, [x("thead", null, [x("tr", dd, [(P(!0), b(p, null, R(e.columns, (t, n) => (P(), b("th", {
|
|
8158
8208
|
key: t.key,
|
|
8159
8209
|
style: A(t.width ? { width: t.width } : void 0),
|
|
8160
8210
|
class: k([
|
|
@@ -8185,7 +8235,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8185
8235
|
}, [w(d, {
|
|
8186
8236
|
name: "chevron_right",
|
|
8187
8237
|
size: 18
|
|
8188
|
-
})], 10,
|
|
8238
|
+
})], 10, pd)) : (P(), b("span", md)), z(t.$slots, `cell-${r.key}`, {
|
|
8189
8239
|
row: n.row,
|
|
8190
8240
|
value: n.row[r.key],
|
|
8191
8241
|
depth: n.depth
|
|
@@ -8194,19 +8244,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8194
8244
|
row: n.row,
|
|
8195
8245
|
value: n.row[r.key],
|
|
8196
8246
|
depth: n.depth
|
|
8197
|
-
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
8247
|
+
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10, fd))), 128)), c.value.length ? y("", !0) : (P(), b("tr", hd, [x("td", {
|
|
8198
8248
|
colspan: e.columns.length,
|
|
8199
8249
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
8200
8250
|
}, [w(d, {
|
|
8201
8251
|
name: "account_tree",
|
|
8202
8252
|
size: 36,
|
|
8203
8253
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
8204
|
-
}), n[0] ||= x("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
8254
|
+
}), n[0] ||= x("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, gd)]))])])])]));
|
|
8205
8255
|
}
|
|
8206
|
-
}),
|
|
8256
|
+
}), vd = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, yd = { class: "flex bg-surface-container-high" }, bd = ["onClick"], xd = { class: "inline-flex items-center gap-1" }, Sd = {
|
|
8207
8257
|
key: 0,
|
|
8208
8258
|
class: "inline-flex"
|
|
8209
|
-
},
|
|
8259
|
+
}, Cd = ["onClick"], wd = { class: "truncate" }, Td = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Ed = { class: "text-label-small text-on-surface-variant" }, Dd = /* @__PURE__ */ T({
|
|
8210
8260
|
__name: "MVirtualTable",
|
|
8211
8261
|
props: {
|
|
8212
8262
|
columns: {},
|
|
@@ -8252,8 +8302,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8252
8302
|
function w(e) {
|
|
8253
8303
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
8254
8304
|
}
|
|
8255
|
-
return (t, n) => (P(), b("div",
|
|
8256
|
-
x("div",
|
|
8305
|
+
return (t, n) => (P(), b("div", vd, [
|
|
8306
|
+
x("div", yd, [(P(!0), b(p, null, R(e.columns, (e) => (P(), b("div", {
|
|
8257
8307
|
key: e.key,
|
|
8258
8308
|
style: A({
|
|
8259
8309
|
width: e.width || "auto",
|
|
@@ -8265,7 +8315,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8265
8315
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
8266
8316
|
]),
|
|
8267
8317
|
onClick: (t) => e.sortable ? l(e.key) : void 0
|
|
8268
|
-
}, [x("span",
|
|
8318
|
+
}, [x("span", xd, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", Sd, [s.value === e.key && c.value === "asc" ? (P(), v(d, {
|
|
8269
8319
|
key: 0,
|
|
8270
8320
|
name: "arrow_upward",
|
|
8271
8321
|
size: 14,
|
|
@@ -8280,7 +8330,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8280
8330
|
name: "unfold_more",
|
|
8281
8331
|
size: 14,
|
|
8282
8332
|
class: "opacity-30"
|
|
8283
|
-
}))])) : y("", !0)])], 14,
|
|
8333
|
+
}))])) : y("", !0)])], 14, bd))), 128))]),
|
|
8284
8334
|
x("div", {
|
|
8285
8335
|
ref_key: "scrollEl",
|
|
8286
8336
|
ref: i,
|
|
@@ -8308,12 +8358,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8308
8358
|
}, [z(t.$slots, `cell-${e.key}`, {
|
|
8309
8359
|
row: n,
|
|
8310
8360
|
value: n[e.key]
|
|
8311
|
-
}, () => [x("span",
|
|
8312
|
-
x("div",
|
|
8361
|
+
}, () => [x("span", wd, H(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, Cd))), 128))], 4)], 36),
|
|
8362
|
+
x("div", Td, [x("span", Ed, [C(H(u.value.length.toLocaleString()) + " filas ", 1), m.value.end - m.value.start < u.value.length ? (P(), b(p, { key: 0 }, [C(" · mostrando " + H(m.value.start + 1) + "–" + H(m.value.end), 1)], 64)) : y("", !0)])])
|
|
8313
8363
|
]));
|
|
8314
8364
|
}
|
|
8315
8365
|
});
|
|
8316
8366
|
//#endregion
|
|
8317
|
-
export { Se as MAbsolute, Oe as MAlert, Me as MAppBar,
|
|
8367
|
+
export { Se as MAbsolute, Oe as MAlert, Me as MAppBar, Ie as MAppLayout, Le as MAspectRatio, Re as MAvatar, Ve as MBadge, qe as MBottomSheet, Je as MBox, Ze as MBreadcrumbs, o as MButton, lt as MCalendar, gt as MCard, St as MCarousel, Ct as MCenter, Q as MCheckbox, Dt as MChip, Rt as MColorPicker, Qt as MCommandPalette, en as MConfirmDialog, tn as MContainer, ln as MContextMenu, zn as MDataTable, Xn as MDatePicker, cr as MDateRangePicker, r as MDialog, fr as MDivider, vr as MDragDropList, br as MEmoji, Er as MEmojiButton, Pr as MEmojiSelector, Fr as MEmptyState, Hr as MExpansionPanel, qr as MFab, li as MFileUpload, ui as MFixed, gi as MFlex, hi as MFooter, _i as MFullscreen, vi as MGrid, wi as MHotkeys, d as MIcon, e as MIconButton, Oi as MInfiniteScroll, Li as MJsonViewer, qi as MKanban, Ji as MList, ca as MListItem, la as MListSubheader, pa as MLoadingOverlay, xa as MMaskField, ma as MMasonry, a as MMenu, l as MMenuItem, Ia as MMultiSelect, za as MNavigationBar, Eo as MNavigationDrawer, Ao as MNavigationRail, Ka as MNumberField, Mo as MOverlay, fn as MPagination, Jo as MProgressBar, $o as MRadio, ns as MRadioGroup, is as MRating, cs as MRelative, ls as MResponsive, gs as MResult, Ms as MScheduler, Ns as MScrollable, Rs as MSection, Vs as MSegmentedButton, $s as MSelect, ac as MSideSheet, sc as MSkeleton, pc as MSlider, vc as MSnackbar, Sc as MSpacer, c as MSpinner, Cc as MSplitter, Bc as MSpotlightSearch, Vc as MStack, Xc as MStatCard, fl as MStepper, pl as MSticky, hl as MSubtitle, Zi as MSwitch, Ll as MTable, Ul as MTabs, ml as MText, s as MTextField, pu as MTimePicker, tu as MTimeline, mu as MTitle, hu as MTooltip, yu as MTopAppBar, Du as MTour, Xu as MTransferList, od as MTree, _d as MTreeTable, Dd as MVirtualTable, Sr as allEmojis, re as createM3UI, u as defaultLocale, xr as emojiCategories, ce as palettes, Cr as randomEmoji, ue as useColorPalette, t as useFieldBg, n as useLocale, se as useTheme, xe as useToast };
|
|
8318
8368
|
|
|
8319
8369
|
//# sourceMappingURL=m3ui.js.map
|