@m3ui-vue/m3ui-vue 0.2.4 → 0.2.6
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 +6 -2
- 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 +798 -741
- 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 +57 -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,52 @@ 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
|
-
class: "shrink-0"
|
|
4849
|
-
},
|
|
4885
|
+
class: "nd-toggle shrink-0 border-b border-outline-variant"
|
|
4886
|
+
}, uo = { class: "nd-toggle-inner" }, fo = {
|
|
4850
4887
|
key: 1,
|
|
4888
|
+
class: "shrink-0"
|
|
4889
|
+
}, po = {
|
|
4890
|
+
key: 2,
|
|
4851
4891
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
4852
|
-
},
|
|
4892
|
+
}, mo = { class: "px-5 pt-6 pb-2" }, ho = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, go = { class: "flex flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, _o = {
|
|
4853
4893
|
key: 0,
|
|
4854
4894
|
class: "my-1 border-t border-outline-variant"
|
|
4855
|
-
},
|
|
4895
|
+
}, vo = ["title", "onClick"], yo = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, bo = {
|
|
4856
4896
|
key: 2,
|
|
4857
4897
|
class: "nd-collapse-h overflow-hidden"
|
|
4858
|
-
},
|
|
4898
|
+
}, xo = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, So = {
|
|
4859
4899
|
key: 0,
|
|
4860
4900
|
class: "nd-section-grid"
|
|
4861
|
-
},
|
|
4901
|
+
}, Co = { class: "nd-section-body" }, wo = {
|
|
4862
4902
|
key: 2,
|
|
4863
4903
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
4864
|
-
},
|
|
4904
|
+
}, To = {
|
|
4865
4905
|
key: 0,
|
|
4866
4906
|
class: "nd-children-divider"
|
|
4867
|
-
},
|
|
4907
|
+
}, Eo = { key: 0 }, Do = {
|
|
4868
4908
|
key: 1,
|
|
4869
4909
|
class: "nd-children-divider"
|
|
4870
|
-
},
|
|
4910
|
+
}, Oo = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
4871
4911
|
__name: "MNavigationDrawer",
|
|
4872
4912
|
props: {
|
|
4873
4913
|
modelValue: { type: Boolean },
|
|
@@ -4879,7 +4919,8 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4879
4919
|
default: !0
|
|
4880
4920
|
},
|
|
4881
4921
|
collapsed: { type: Boolean },
|
|
4882
|
-
width: {}
|
|
4922
|
+
width: {},
|
|
4923
|
+
side: { default: "left" }
|
|
4883
4924
|
},
|
|
4884
4925
|
emits: ["update:modelValue", "select"],
|
|
4885
4926
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -4930,9 +4971,9 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4930
4971
|
easing: "cubic-bezier(0.4, 0, 1, 1)"
|
|
4931
4972
|
}).onfinish = t;
|
|
4932
4973
|
}
|
|
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
|
|
4974
|
+
let D = _(() => r.side === "left" || r.side === "right" ? r.side : "left"), O = _(() => r.collapsed ?? !1);
|
|
4975
|
+
F("nd-open-items", o), F("nd-toggle-item", C), F("nd-select-item", S), F("nd-collapsed", O), t({ openItems: o });
|
|
4976
|
+
function j(e) {
|
|
4936
4977
|
return e.to && !e.disabled ? "RouterLink" : "button";
|
|
4937
4978
|
}
|
|
4938
4979
|
return q(() => r.modelValue, (e) => {
|
|
@@ -4947,14 +4988,26 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4947
4988
|
leave: 280
|
|
4948
4989
|
}
|
|
4949
4990
|
}, {
|
|
4950
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
4991
|
+
default: Y(() => [e.modelValue ? (P(), b("div", {
|
|
4992
|
+
key: 0,
|
|
4993
|
+
class: k(["fixed inset-0 z-100 flex", [
|
|
4994
|
+
e.side === "right" ? "justify-end" : "",
|
|
4995
|
+
e.side === "bottom" ? "flex-col justify-end" : "",
|
|
4996
|
+
e.side === "top" ? "flex-col" : ""
|
|
4997
|
+
]])
|
|
4998
|
+
}, [x("div", {
|
|
4951
4999
|
class: "nd-scrim absolute inset-0 bg-black/40",
|
|
4952
5000
|
onClick: f
|
|
4953
5001
|
}), x("nav", {
|
|
4954
|
-
class: k([
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
5002
|
+
class: k([
|
|
5003
|
+
"nd-panel relative flex flex-col bg-surface-container shadow-elevation-3",
|
|
5004
|
+
`nd-panel-${e.side}`,
|
|
5005
|
+
e.side === "top" || e.side === "bottom" ? "w-full max-h-[85vh]" : "h-full max-w-[85vw]",
|
|
5006
|
+
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
5007
|
+
]),
|
|
5008
|
+
style: A(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
5009
|
+
}, [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 }, [
|
|
5010
|
+
n > 0 ? (P(), b("div", to)) : y("", !0),
|
|
4958
5011
|
t.title && t.collapsible ? (P(), b("button", {
|
|
4959
5012
|
key: 1,
|
|
4960
5013
|
type: "button",
|
|
@@ -4967,15 +5020,15 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4967
5020
|
size: 24,
|
|
4968
5021
|
class: "shrink-0"
|
|
4969
5022
|
}, null, 8, ["name"])) : y("", !0),
|
|
4970
|
-
x("span",
|
|
5023
|
+
x("span", ro, H(t.title), 1),
|
|
4971
5024
|
w(d, {
|
|
4972
5025
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
4973
5026
|
size: 18,
|
|
4974
5027
|
class: "shrink-0"
|
|
4975
5028
|
}, null, 8, ["name"])
|
|
4976
|
-
], 8,
|
|
5029
|
+
], 8, no)) : t.title ? (P(), b("p", io, H(t.title), 1)) : y("", !0),
|
|
4977
5030
|
w(h, { name: "nd-section" }, {
|
|
4978
|
-
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div",
|
|
5031
|
+
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
5032
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
4980
5033
|
type: n.to ? void 0 : "button",
|
|
4981
5034
|
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 +5047,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
4994
5047
|
name: l(n) ? "expand_less" : "expand_more",
|
|
4995
5048
|
size: 18,
|
|
4996
5049
|
class: "shrink-0 text-on-surface-variant"
|
|
4997
|
-
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span",
|
|
5050
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", so, H(n.badge), 1))
|
|
4998
5051
|
]),
|
|
4999
5052
|
_: 2
|
|
5000
5053
|
}, 1032, [
|
|
@@ -5009,7 +5062,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5009
5062
|
onEnter: T,
|
|
5010
5063
|
onLeave: E
|
|
5011
5064
|
}, {
|
|
5012
|
-
default: Y(() => [n.children?.length && l(n) ? (P(), b("div",
|
|
5065
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", co, [w(Xa, {
|
|
5013
5066
|
items: n.children,
|
|
5014
5067
|
selected: e.selected
|
|
5015
5068
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
@@ -5017,93 +5070,97 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5017
5070
|
}, 1024)], 64))), 128))])])) : y("", !0)]),
|
|
5018
5071
|
_: 2
|
|
5019
5072
|
}, 1024)
|
|
5020
|
-
], 64))), 128))])], 6)])) : y("", !0)]),
|
|
5073
|
+
], 64))), 128))])], 6)], 2)) : y("", !0)]),
|
|
5021
5074
|
_: 3
|
|
5022
5075
|
})])) : (P(), b("nav", {
|
|
5023
5076
|
key: 1,
|
|
5024
|
-
class: k(["nd-inline flex h-full shrink-0 flex-col border-
|
|
5077
|
+
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
5078
|
style: A({
|
|
5026
5079
|
width: e.modelValue && !e.collapsed && e.width ? e.width : void 0,
|
|
5027
5080
|
"--nd-width": e.width ?? "18rem"
|
|
5028
5081
|
})
|
|
5029
|
-
}, [
|
|
5030
|
-
|
|
5031
|
-
t.
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5082
|
+
}, [
|
|
5083
|
+
t.$slots.toggle ? (P(), b("div", lo, [x("div", uo, [z(t.$slots, "toggle", {}, void 0, !0)])])) : y("", !0),
|
|
5084
|
+
t.$slots.header ? (P(), b("div", fo, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", po, [x("div", mo, [x("h2", ho, H(e.title), 1)])])) : y("", !0),
|
|
5085
|
+
x("div", go, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5086
|
+
n > 0 ? (P(), b("div", _o)) : y("", !0),
|
|
5087
|
+
t.title && t.collapsible ? (P(), b("button", {
|
|
5088
|
+
key: 1,
|
|
5089
|
+
type: "button",
|
|
5090
|
+
class: "mt-1 flex w-full shrink-0 cursor-pointer items-center gap-3 overflow-hidden whitespace-nowrap rounded-xl px-3 py-2.5 text-on-surface-variant hover:bg-on-surface/8",
|
|
5091
|
+
title: e.collapsed ? t.title : void 0,
|
|
5092
|
+
onClick: (e) => c(t, n)
|
|
5093
|
+
}, [
|
|
5094
|
+
t.icon ? (P(), v(d, {
|
|
5095
|
+
key: 0,
|
|
5096
|
+
name: t.icon,
|
|
5097
|
+
size: 24,
|
|
5098
|
+
class: "shrink-0"
|
|
5099
|
+
}, null, 8, ["name"])) : y("", !0),
|
|
5100
|
+
x("span", yo, H(t.title), 1),
|
|
5101
|
+
w(d, {
|
|
5102
|
+
name: s(t, n) ? "expand_less" : "expand_more",
|
|
5103
|
+
size: 18,
|
|
5104
|
+
class: "nd-label shrink-0"
|
|
5105
|
+
}, null, 8, ["name"])
|
|
5106
|
+
], 8, vo)) : t.title ? (P(), b("div", bo, [x("p", xo, H(t.title), 1)])) : y("", !0),
|
|
5107
|
+
w(h, { name: "nd-section" }, {
|
|
5108
|
+
default: Y(() => [!t.collapsible || s(t, n) ? (P(), b("div", So, [x("div", Co, [(P(!0), b(p, null, R(t.items, (n) => (P(), b(p, { key: n.value }, [
|
|
5109
|
+
(P(), v(V(j(n)), {
|
|
5110
|
+
to: n.to && !n.disabled ? n.to : void 0,
|
|
5111
|
+
type: n.to ? void 0 : "button",
|
|
5112
|
+
title: e.collapsed ? n.label : void 0,
|
|
5113
|
+
class: k(["flex w-full shrink-0 items-center gap-3 overflow-hidden whitespace-nowrap rounded-full py-2.5 text-left focus-visible:outline-none", [t.collapsible && !e.collapsed ? "pl-8 pr-3" : "px-3", 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"]]),
|
|
5114
|
+
disabled: n.disabled && !n.to,
|
|
5115
|
+
onClick: (e) => g(n)
|
|
5116
|
+
}, {
|
|
5117
|
+
default: Y(() => [
|
|
5118
|
+
n.icon ? (P(), v(d, {
|
|
5119
|
+
key: 0,
|
|
5120
|
+
name: n.icon,
|
|
5121
|
+
size: n.iconSize ?? 24,
|
|
5122
|
+
class: "shrink-0"
|
|
5123
|
+
}, null, 8, ["name", "size"])) : y("", !0),
|
|
5124
|
+
x("span", { class: k(["nd-label min-w-0 flex-1 font-medium", n.labelClass ?? "text-label-large"]) }, H(n.label), 3),
|
|
5125
|
+
n.children?.length ? (P(), v(d, {
|
|
5126
|
+
key: 1,
|
|
5127
|
+
name: l(n) ? "expand_less" : "expand_more",
|
|
5128
|
+
size: 18,
|
|
5129
|
+
class: "nd-label shrink-0 text-on-surface-variant"
|
|
5130
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", wo, H(n.badge), 1))
|
|
5131
|
+
]),
|
|
5132
|
+
_: 2
|
|
5133
|
+
}, 1032, [
|
|
5134
|
+
"to",
|
|
5135
|
+
"type",
|
|
5136
|
+
"title",
|
|
5137
|
+
"class",
|
|
5138
|
+
"disabled",
|
|
5139
|
+
"onClick"
|
|
5140
|
+
])),
|
|
5141
|
+
n.children?.length && l(n) ? (P(), b("div", To)) : y("", !0),
|
|
5142
|
+
w(h, {
|
|
5143
|
+
css: !1,
|
|
5144
|
+
onEnter: T,
|
|
5145
|
+
onLeave: E
|
|
5146
|
+
}, {
|
|
5147
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", Eo, [w(Xa, {
|
|
5148
|
+
items: n.children,
|
|
5149
|
+
selected: e.selected
|
|
5150
|
+
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
5151
|
+
_: 2
|
|
5152
|
+
}, 1024),
|
|
5153
|
+
n.children?.length && l(n) ? (P(), b("div", Do)) : y("", !0)
|
|
5154
|
+
], 64))), 128))])])) : y("", !0)]),
|
|
5155
|
+
_: 2
|
|
5156
|
+
}, 1024)
|
|
5157
|
+
], 64))), 128))])
|
|
5158
|
+
], 6));
|
|
5102
5159
|
}
|
|
5103
|
-
}), [["__scopeId", "data-v-
|
|
5160
|
+
}), [["__scopeId", "data-v-36a02981"]]), ko = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, Ao = {
|
|
5104
5161
|
key: 0,
|
|
5105
5162
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
5106
|
-
},
|
|
5163
|
+
}, jo = ["disabled", "onClick"], Mo = /* @__PURE__ */ T({
|
|
5107
5164
|
__name: "MNavigationRail",
|
|
5108
5165
|
props: {
|
|
5109
5166
|
modelValue: {},
|
|
@@ -5112,7 +5169,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5112
5169
|
},
|
|
5113
5170
|
emits: ["update:modelValue"],
|
|
5114
5171
|
setup(e) {
|
|
5115
|
-
return (t, n) => (P(), b("nav",
|
|
5172
|
+
return (t, n) => (P(), b("nav", ko, [t.$slots.fab ? (P(), b("div", Ao, [z(t.$slots, "fab")])) : y("", !0), x("div", { class: k(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
5116
5173
|
"justify-start": e.alignment === "top",
|
|
5117
5174
|
"justify-center": e.alignment === "center",
|
|
5118
5175
|
"justify-end": e.alignment === "bottom"
|
|
@@ -5122,7 +5179,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5122
5179
|
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
5180
|
disabled: n.disabled,
|
|
5124
5181
|
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(
|
|
5182
|
+
}, [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
5183
|
key: 1,
|
|
5127
5184
|
dot: ""
|
|
5128
5185
|
}, {
|
|
@@ -5135,7 +5192,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5135
5192
|
key: 2,
|
|
5136
5193
|
name: n.icon,
|
|
5137
5194
|
size: 24
|
|
5138
|
-
}, null, 8, ["name"])) : (P(), v(
|
|
5195
|
+
}, null, 8, ["name"])) : (P(), v(Ve, {
|
|
5139
5196
|
key: 0,
|
|
5140
5197
|
count: n.badge
|
|
5141
5198
|
}, {
|
|
@@ -5144,9 +5201,9 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5144
5201
|
size: 24
|
|
5145
5202
|
}, null, 8, ["name"])]),
|
|
5146
5203
|
_: 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,
|
|
5204
|
+
}, 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, jo))), 128))], 2)]));
|
|
5148
5205
|
}
|
|
5149
|
-
}),
|
|
5206
|
+
}), No = { class: "relative h-full w-full" }, Po = /* @__PURE__ */ T({
|
|
5150
5207
|
__name: "MOverlay",
|
|
5151
5208
|
props: {
|
|
5152
5209
|
modelValue: {
|
|
@@ -5179,17 +5236,17 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5179
5236
|
key: 0,
|
|
5180
5237
|
class: "absolute inset-0 bg-black/50",
|
|
5181
5238
|
onClick: a
|
|
5182
|
-
})) : y("", !0), x("div",
|
|
5239
|
+
})) : y("", !0), x("div", No, [z(t.$slots, "default")])], 4)) : y("", !0)]),
|
|
5183
5240
|
_: 3
|
|
5184
5241
|
})]));
|
|
5185
5242
|
}
|
|
5186
|
-
}),
|
|
5243
|
+
}), Fo = { class: "flex flex-col gap-1" }, Io = {
|
|
5187
5244
|
key: 0,
|
|
5188
5245
|
class: "text-label-small text-on-surface-variant"
|
|
5189
|
-
},
|
|
5246
|
+
}, Lo = ["aria-valuenow"], Ro = ["aria-valuenow"], zo = ["viewBox"], Bo = ["d"], Vo = {
|
|
5190
5247
|
key: 1,
|
|
5191
5248
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
5192
|
-
},
|
|
5249
|
+
}, Ho = ["viewBox"], Uo = ["d"], Wo = 20, Go = 2.5, Ko = 4, qo = 8, Jo = 80, Yo = 1, Xo = /* @__PURE__ */ T({
|
|
5193
5250
|
__name: "MProgressBar",
|
|
5194
5251
|
props: {
|
|
5195
5252
|
value: {},
|
|
@@ -5220,15 +5277,15 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5220
5277
|
track: "bg-error-container",
|
|
5221
5278
|
text: "text-error"
|
|
5222
5279
|
}
|
|
5223
|
-
}, a =
|
|
5280
|
+
}, a = Wo * Jo, o = (() => {
|
|
5224
5281
|
let e = "";
|
|
5225
|
-
for (let t = 0; t <= a; t +=
|
|
5226
|
-
let n =
|
|
5282
|
+
for (let t = 0; t <= a; t += Yo) {
|
|
5283
|
+
let n = Ko - Go * Math.sin(t / Wo * Math.PI * 2);
|
|
5227
5284
|
e += (t === 0 ? "M" : "L") + t + "," + n.toFixed(2) + " ";
|
|
5228
5285
|
}
|
|
5229
5286
|
return e.trim();
|
|
5230
5287
|
})();
|
|
5231
|
-
return (t, s) => (P(), b("div",
|
|
5288
|
+
return (t, s) => (P(), b("div", Fo, [e.label ? (P(), b("span", Io, H(e.label), 1)) : y("", !0), e.variant === "linear" ? (P(), b("div", {
|
|
5232
5289
|
key: 1,
|
|
5233
5290
|
class: k(["relative h-1 w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
5234
5291
|
role: "progressbar",
|
|
@@ -5242,20 +5299,20 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5242
5299
|
key: 0,
|
|
5243
5300
|
class: k(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
5244
5301
|
style: A({ width: `${r.value}%` })
|
|
5245
|
-
}, null, 6))], 10,
|
|
5302
|
+
}, null, 6))], 10, Lo)) : (P(), b("div", {
|
|
5246
5303
|
key: 2,
|
|
5247
5304
|
class: "relative h-2 w-full overflow-visible",
|
|
5248
5305
|
role: "progressbar",
|
|
5249
5306
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
5250
5307
|
"aria-valuemin": "0",
|
|
5251
5308
|
"aria-valuemax": "100"
|
|
5252
|
-
}, [n.value ? (P(), b("div",
|
|
5309
|
+
}, [n.value ? (P(), b("div", Vo, [x("div", {
|
|
5253
5310
|
class: k(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
5254
5311
|
style: A({ width: `${a}px` })
|
|
5255
5312
|
}, [(P(), b("svg", {
|
|
5256
5313
|
width: a,
|
|
5257
|
-
height:
|
|
5258
|
-
viewBox: `0 0 ${a} ${
|
|
5314
|
+
height: qo,
|
|
5315
|
+
viewBox: `0 0 ${a} ${qo}`,
|
|
5259
5316
|
class: "h-full",
|
|
5260
5317
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5261
5318
|
}, [x("path", {
|
|
@@ -5264,7 +5321,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5264
5321
|
stroke: "currentColor",
|
|
5265
5322
|
"stroke-width": "3",
|
|
5266
5323
|
"stroke-linecap": "round"
|
|
5267
|
-
}, null, 8,
|
|
5324
|
+
}, null, 8, Uo)], 8, Ho))], 6)])) : (P(), b(p, { key: 0 }, [
|
|
5268
5325
|
x("div", {
|
|
5269
5326
|
class: "absolute inset-0 overflow-hidden",
|
|
5270
5327
|
style: A({
|
|
@@ -5276,8 +5333,8 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5276
5333
|
style: A({ width: `${a}px` })
|
|
5277
5334
|
}, [(P(), b("svg", {
|
|
5278
5335
|
width: a,
|
|
5279
|
-
height:
|
|
5280
|
-
viewBox: `0 0 ${a} ${
|
|
5336
|
+
height: qo,
|
|
5337
|
+
viewBox: `0 0 ${a} ${qo}`,
|
|
5281
5338
|
class: "h-full",
|
|
5282
5339
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5283
5340
|
}, [x("path", {
|
|
@@ -5286,7 +5343,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5286
5343
|
stroke: "currentColor",
|
|
5287
5344
|
"stroke-width": "3",
|
|
5288
5345
|
"stroke-linecap": "round"
|
|
5289
|
-
}, null, 8,
|
|
5346
|
+
}, null, 8, Bo)], 8, zo))], 6)], 4),
|
|
5290
5347
|
x("div", {
|
|
5291
5348
|
class: k(["absolute inset-y-0 right-0 flex items-center", i[e.color].track]),
|
|
5292
5349
|
style: A([{
|
|
@@ -5309,16 +5366,16 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5309
5366
|
height: "4px"
|
|
5310
5367
|
}
|
|
5311
5368
|
}, null, 2)
|
|
5312
|
-
], 64))], 8,
|
|
5369
|
+
], 64))], 8, Ro))]));
|
|
5313
5370
|
}
|
|
5314
|
-
}),
|
|
5371
|
+
}), Zo = ["for"], Qo = { class: "relative flex h-5 w-5 shrink-0" }, $o = [
|
|
5315
5372
|
"id",
|
|
5316
5373
|
"checked",
|
|
5317
5374
|
"disabled"
|
|
5318
|
-
],
|
|
5375
|
+
], es = {
|
|
5319
5376
|
key: 0,
|
|
5320
5377
|
class: "text-body-large text-on-surface"
|
|
5321
|
-
},
|
|
5378
|
+
}, ts = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
5322
5379
|
__name: "MRadio",
|
|
5323
5380
|
props: {
|
|
5324
5381
|
modelValue: {},
|
|
@@ -5341,14 +5398,14 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5341
5398
|
return (t, n) => (P(), b("label", {
|
|
5342
5399
|
for: U(i),
|
|
5343
5400
|
class: k(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
5344
|
-
}, [x("span",
|
|
5401
|
+
}, [x("span", Qo, [x("input", {
|
|
5345
5402
|
id: U(i),
|
|
5346
5403
|
type: "radio",
|
|
5347
5404
|
class: "sr-only",
|
|
5348
5405
|
checked: a.value,
|
|
5349
5406
|
disabled: e.disabled,
|
|
5350
5407
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
5351
|
-
}, null, 40,
|
|
5408
|
+
}, null, 40, $o), (P(), b("svg", {
|
|
5352
5409
|
viewBox: "0 0 20 20",
|
|
5353
5410
|
class: k(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
5354
5411
|
"aria-hidden": "true"
|
|
@@ -5365,12 +5422,12 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5365
5422
|
cy: "10",
|
|
5366
5423
|
r: "4.5",
|
|
5367
5424
|
fill: "currentColor"
|
|
5368
|
-
}, null, 2)], 2))]), e.label ? (P(), b("span",
|
|
5425
|
+
}, null, 2)], 2))]), e.label ? (P(), b("span", es, H(e.label), 1)) : y("", !0)], 10, Zo));
|
|
5369
5426
|
}
|
|
5370
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
5427
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), ns = { class: "flex flex-col gap-2" }, rs = {
|
|
5371
5428
|
key: 0,
|
|
5372
5429
|
class: "text-label-large text-on-surface-variant"
|
|
5373
|
-
},
|
|
5430
|
+
}, is = /* @__PURE__ */ T({
|
|
5374
5431
|
__name: "MRadioGroup",
|
|
5375
5432
|
props: {
|
|
5376
5433
|
modelValue: {},
|
|
@@ -5386,7 +5443,7 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5386
5443
|
emits: ["update:modelValue"],
|
|
5387
5444
|
setup(e, { emit: t }) {
|
|
5388
5445
|
let n = t;
|
|
5389
|
-
return (t, r) => (P(), b("div",
|
|
5446
|
+
return (t, r) => (P(), b("div", ns, [e.label ? (P(), b("span", rs, 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(ts, {
|
|
5390
5447
|
key: String(t.value),
|
|
5391
5448
|
"model-value": e.modelValue,
|
|
5392
5449
|
value: t.value,
|
|
@@ -5402,11 +5459,11 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5402
5459
|
"disabled"
|
|
5403
5460
|
]))), 128))], 2)]));
|
|
5404
5461
|
}
|
|
5405
|
-
}),
|
|
5462
|
+
}), as = [
|
|
5406
5463
|
"disabled",
|
|
5407
5464
|
"onClick",
|
|
5408
5465
|
"onMousemove"
|
|
5409
|
-
],
|
|
5466
|
+
], os = /* @__PURE__ */ T({
|
|
5410
5467
|
__name: "MRating",
|
|
5411
5468
|
props: {
|
|
5412
5469
|
modelValue: {},
|
|
@@ -5483,13 +5540,13 @@ var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
|
5483
5540
|
name: e.icon,
|
|
5484
5541
|
size: e.size,
|
|
5485
5542
|
class: "text-on-surface-variant/40"
|
|
5486
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
5543
|
+
}, null, 8, ["name", "size"]))], 46, as))), 128))], 34));
|
|
5487
5544
|
}
|
|
5488
|
-
}),
|
|
5489
|
-
function
|
|
5490
|
-
return P(), b("div",
|
|
5545
|
+
}), ss = {}, cs = { class: "relative" };
|
|
5546
|
+
function ls(e, t) {
|
|
5547
|
+
return P(), b("div", cs, [z(e.$slots, "default")]);
|
|
5491
5548
|
}
|
|
5492
|
-
var
|
|
5549
|
+
var us = /*#__PURE__*/ f(ss, [["render", ls]]), ds = /* @__PURE__ */ T({
|
|
5493
5550
|
__name: "MResponsive",
|
|
5494
5551
|
props: {
|
|
5495
5552
|
show: {},
|
|
@@ -5521,19 +5578,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5521
5578
|
_: 3
|
|
5522
5579
|
}, 8, ["class"]));
|
|
5523
5580
|
}
|
|
5524
|
-
}),
|
|
5581
|
+
}), fs = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, ps = {
|
|
5525
5582
|
key: 0,
|
|
5526
5583
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
5527
|
-
},
|
|
5584
|
+
}, ms = { class: "text-headline-small font-medium text-on-surface" }, hs = {
|
|
5528
5585
|
key: 1,
|
|
5529
5586
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
5530
|
-
},
|
|
5587
|
+
}, gs = {
|
|
5531
5588
|
key: 2,
|
|
5532
5589
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
5533
|
-
},
|
|
5590
|
+
}, _s = {
|
|
5534
5591
|
key: 3,
|
|
5535
5592
|
class: "mt-2"
|
|
5536
|
-
},
|
|
5593
|
+
}, vs = /* @__PURE__ */ T({
|
|
5537
5594
|
__name: "MResult",
|
|
5538
5595
|
props: {
|
|
5539
5596
|
status: {},
|
|
@@ -5601,19 +5658,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5601
5658
|
};
|
|
5602
5659
|
}
|
|
5603
5660
|
}), 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",
|
|
5661
|
+
return (t, i) => (P(), b("div", fs, [
|
|
5662
|
+
r.value ? (P(), b("span", ps, H(r.value), 1)) : y("", !0),
|
|
5606
5663
|
x("div", { class: k(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [w(d, {
|
|
5607
5664
|
name: n.value.icon,
|
|
5608
5665
|
size: 40
|
|
5609
5666
|
}, 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",
|
|
5667
|
+
x("h2", ms, H(e.title ?? n.value.defaultTitle), 1),
|
|
5668
|
+
e.description ?? n.value.defaultDesc ? (P(), b("p", hs, H(e.description ?? n.value.defaultDesc), 1)) : y("", !0),
|
|
5669
|
+
t.$slots.actions ? (P(), b("div", gs, [z(t.$slots, "actions")])) : y("", !0),
|
|
5670
|
+
t.$slots.default ? (P(), b("div", _s, [z(t.$slots, "default")])) : y("", !0)
|
|
5614
5671
|
]));
|
|
5615
5672
|
}
|
|
5616
|
-
}),
|
|
5673
|
+
}), ys = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, bs = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, xs = { class: "flex items-center gap-1" }, Ss = { class: "text-title-medium font-medium capitalize text-on-surface" }, Cs = { class: "flex rounded-full bg-surface-container-high p-0.5" }, ws = ["onClick"], Ts = { class: "overflow-auto" }, Es = { class: "w-full border-collapse" }, Ds = { class: "text-label-small uppercase text-on-surface-variant" }, Os = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, ks = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, As = ["onClick"], js = ["onClick"], Ms = { class: "truncate text-label-small font-medium" }, Ns = { class: "truncate text-label-small opacity-70" }, Ps = /* @__PURE__ */ T({
|
|
5617
5674
|
__name: "MScheduler",
|
|
5618
5675
|
props: {
|
|
5619
5676
|
events: { default: () => [] },
|
|
@@ -5694,8 +5751,8 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5694
5751
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
5695
5752
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
5696
5753
|
};
|
|
5697
|
-
return (n, r) => (P(), b("div",
|
|
5698
|
-
x("div",
|
|
5754
|
+
return (n, r) => (P(), b("div", ys, [x("div", bs, [
|
|
5755
|
+
x("div", xs, [
|
|
5699
5756
|
w(e, {
|
|
5700
5757
|
icon: "chevron_left",
|
|
5701
5758
|
label: t.prevLabel ?? U(i).previous,
|
|
@@ -5714,17 +5771,17 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5714
5771
|
onClick: T
|
|
5715
5772
|
}, H(t.todayLabel ?? U(i).today), 1)
|
|
5716
5773
|
]),
|
|
5717
|
-
x("h3",
|
|
5718
|
-
x("div",
|
|
5774
|
+
x("h3", Ss, H(S.value), 1),
|
|
5775
|
+
x("div", Cs, [(P(), b(p, null, R(["day", "week"], (e) => x("button", {
|
|
5719
5776
|
key: e,
|
|
5720
5777
|
type: "button",
|
|
5721
5778
|
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
5779
|
onClick: (t) => c.value = e
|
|
5723
|
-
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11,
|
|
5724
|
-
]), x("div",
|
|
5780
|
+
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11, ws)), 64))])
|
|
5781
|
+
]), x("div", Ts, [x("table", Es, [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
5782
|
key: h(e),
|
|
5726
5783
|
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",
|
|
5784
|
+
}, [x("div", Ds, 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", Os, [x("span", ks, H(String(e).padStart(2, "0")) + ":00 ", 1)]), (P(!0), b(p, null, R(f.value, (t) => (P(), b("td", {
|
|
5728
5785
|
key: h(t),
|
|
5729
5786
|
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
5787
|
onClick: (n) => o("slotClick", {
|
|
@@ -5737,9 +5794,9 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5737
5794
|
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
5795
|
style: A({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
5739
5796
|
onClick: Z((e) => o("eventClick", t), ["stop"])
|
|
5740
|
-
}, [x("p",
|
|
5797
|
+
}, [x("p", Ms, H(t.title), 1), x("p", Ns, H(j(t)), 1)], 14, js)) : y("", !0)], 64))), 128))], 10, As))), 128))]))), 128))])])])]));
|
|
5741
5798
|
}
|
|
5742
|
-
}),
|
|
5799
|
+
}), Fs = /* @__PURE__ */ T({
|
|
5743
5800
|
__name: "MScrollable",
|
|
5744
5801
|
props: {
|
|
5745
5802
|
direction: { default: "vertical" },
|
|
@@ -5760,13 +5817,13 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5760
5817
|
style: A(i.value)
|
|
5761
5818
|
}, [z(e.$slots, "default")], 6));
|
|
5762
5819
|
}
|
|
5763
|
-
}),
|
|
5820
|
+
}), Is = { key: 0 }, Ls = { class: "flex items-start justify-between" }, Rs = {
|
|
5764
5821
|
key: 0,
|
|
5765
5822
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
5766
|
-
},
|
|
5823
|
+
}, zs = {
|
|
5767
5824
|
key: 0,
|
|
5768
5825
|
class: "mt-4 h-px bg-outline-variant"
|
|
5769
|
-
},
|
|
5826
|
+
}, Bs = /* @__PURE__ */ T({
|
|
5770
5827
|
__name: "MSection",
|
|
5771
5828
|
props: {
|
|
5772
5829
|
title: {},
|
|
@@ -5803,19 +5860,19 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5803
5860
|
"label-medium": "text-label-medium",
|
|
5804
5861
|
"label-small": "text-label-small"
|
|
5805
5862
|
}, 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",
|
|
5863
|
+
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", Is, [x("div", Ls, [x("div", null, [z(t.$slots, "title", {}, () => [e.title ? (P(), b("p", {
|
|
5807
5864
|
key: 0,
|
|
5808
5865
|
class: k(a.value)
|
|
5809
|
-
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p",
|
|
5866
|
+
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p", Rs, H(e.subtitle), 1)) : y("", !0)])]), z(t.$slots, "actions")]), e.divider ? (P(), b("div", zs)) : y("", !0)])) : y("", !0), z(t.$slots, "default")], 2));
|
|
5810
5867
|
}
|
|
5811
|
-
}),
|
|
5868
|
+
}), Vs = {
|
|
5812
5869
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
5813
5870
|
role: "group"
|
|
5814
|
-
},
|
|
5871
|
+
}, Hs = [
|
|
5815
5872
|
"disabled",
|
|
5816
5873
|
"aria-pressed",
|
|
5817
5874
|
"onClick"
|
|
5818
|
-
],
|
|
5875
|
+
], Us = /* @__PURE__ */ T({
|
|
5819
5876
|
__name: "MSegmentedButton",
|
|
5820
5877
|
props: {
|
|
5821
5878
|
modelValue: {},
|
|
@@ -5839,7 +5896,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5839
5896
|
i >= 0 ? r.splice(i, 1) : r.push(e.value), n("update:modelValue", r);
|
|
5840
5897
|
} else n("update:modelValue", e.value);
|
|
5841
5898
|
}
|
|
5842
|
-
return (t, n) => (P(), b("div",
|
|
5899
|
+
return (t, n) => (P(), b("div", Vs, [(P(!0), b(p, null, R(e.options, (t, n) => (P(), b("button", {
|
|
5843
5900
|
key: t.value,
|
|
5844
5901
|
type: "button",
|
|
5845
5902
|
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 +5917,35 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5860
5917
|
key: 1,
|
|
5861
5918
|
name: t.icon,
|
|
5862
5919
|
size: 18
|
|
5863
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
5920
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, Hs))), 128))]));
|
|
5864
5921
|
}
|
|
5865
|
-
}),
|
|
5922
|
+
}), Ws = { class: "flex flex-col gap-1" }, Gs = {
|
|
5866
5923
|
key: 0,
|
|
5867
5924
|
class: "pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-on-surface-variant"
|
|
5868
|
-
},
|
|
5925
|
+
}, Ks = [
|
|
5869
5926
|
"id",
|
|
5870
5927
|
"tabindex",
|
|
5871
5928
|
"aria-expanded",
|
|
5872
5929
|
"aria-disabled"
|
|
5873
|
-
],
|
|
5930
|
+
], qs = {
|
|
5874
5931
|
key: 0,
|
|
5875
5932
|
class: "text-on-surface"
|
|
5876
|
-
},
|
|
5933
|
+
}, Js = ["for"], Ys = {
|
|
5877
5934
|
key: 0,
|
|
5878
5935
|
class: "text-error"
|
|
5879
|
-
},
|
|
5936
|
+
}, Xs = {
|
|
5880
5937
|
key: 0,
|
|
5881
5938
|
class: "px-4 text-body-small text-error"
|
|
5882
|
-
},
|
|
5939
|
+
}, Zs = {
|
|
5883
5940
|
key: 1,
|
|
5884
5941
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5885
|
-
},
|
|
5942
|
+
}, Qs = ["onClick"], $s = {
|
|
5886
5943
|
key: 1,
|
|
5887
5944
|
class: "w-[18px] shrink-0"
|
|
5888
|
-
},
|
|
5945
|
+
}, ec = {
|
|
5889
5946
|
key: 0,
|
|
5890
5947
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
5891
|
-
},
|
|
5948
|
+
}, tc = /* @__PURE__ */ T({
|
|
5892
5949
|
__name: "MSelect",
|
|
5893
5950
|
props: {
|
|
5894
5951
|
modelValue: { default: void 0 },
|
|
@@ -5999,13 +6056,13 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
5999
6056
|
o.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"
|
|
6000
6057
|
].join(" ");
|
|
6001
6058
|
});
|
|
6002
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
6059
|
+
return (t, n) => (P(), b(p, null, [x("div", Ws, [x("div", {
|
|
6003
6060
|
ref_key: "fieldEl",
|
|
6004
6061
|
ref: s,
|
|
6005
6062
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
6006
6063
|
style: A(e.variant === "outlined" ? { "--field-bg": U(c) } : void 0)
|
|
6007
6064
|
}, [
|
|
6008
|
-
e.leadingIcon ? (P(), b("div",
|
|
6065
|
+
e.leadingIcon ? (P(), b("div", Gs, [w(d, {
|
|
6009
6066
|
name: e.leadingIcon,
|
|
6010
6067
|
size: 20
|
|
6011
6068
|
}, null, 8, ["name"])])) : y("", !0),
|
|
@@ -6018,11 +6075,11 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6018
6075
|
class: k([I.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
6019
6076
|
onClick: E,
|
|
6020
6077
|
onKeydown: F
|
|
6021
|
-
}, [g.value ? (P(), b("span",
|
|
6078
|
+
}, [g.value ? (P(), b("span", qs, H(S.value), 1)) : y("", !0)], 42, Ks),
|
|
6022
6079
|
x("label", {
|
|
6023
6080
|
for: U(a),
|
|
6024
6081
|
class: k(B.value)
|
|
6025
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
6082
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", Ys, "\xA0*")) : y("", !0)], 10, Js),
|
|
6026
6083
|
e.clearable && g.value && !e.disabled ? (P(), b("button", {
|
|
6027
6084
|
key: 1,
|
|
6028
6085
|
type: "button",
|
|
@@ -6039,7 +6096,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6039
6096
|
size: 24,
|
|
6040
6097
|
class: "text-on-surface-variant transition-transform duration-200"
|
|
6041
6098
|
}, null, 8, ["name"])], 2)
|
|
6042
|
-
], 6), e.error ? (P(), b("p",
|
|
6099
|
+
], 6), e.error ? (P(), b("p", Xs, H(e.error), 1)) : e.hint ? (P(), b("p", Zs, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
6043
6100
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6044
6101
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6045
6102
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6062,20 +6119,20 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6062
6119
|
name: "check",
|
|
6063
6120
|
size: 18,
|
|
6064
6121
|
class: "shrink-0 text-primary"
|
|
6065
|
-
})) : (P(), b("span",
|
|
6122
|
+
})) : (P(), b("span", $s)), C(" " + H(t.label), 1)], 10, Qs))), 128)), e.options.length ? y("", !0) : (P(), b("p", ec, " Sin opciones "))], 4)) : y("", !0)]),
|
|
6066
6123
|
_: 1
|
|
6067
6124
|
})]))], 64));
|
|
6068
6125
|
}
|
|
6069
|
-
}),
|
|
6126
|
+
}), nc = {
|
|
6070
6127
|
key: 0,
|
|
6071
6128
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
6072
|
-
},
|
|
6129
|
+
}, rc = {
|
|
6073
6130
|
key: 0,
|
|
6074
6131
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
6075
|
-
},
|
|
6132
|
+
}, ic = { class: "text-title-large text-on-surface" }, ac = { class: "flex-1 overflow-y-auto px-6 py-4" }, oc = {
|
|
6076
6133
|
key: 1,
|
|
6077
6134
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
6078
|
-
},
|
|
6135
|
+
}, sc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6079
6136
|
__name: "MSideSheet",
|
|
6080
6137
|
props: {
|
|
6081
6138
|
modelValue: { type: Boolean },
|
|
@@ -6105,7 +6162,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6105
6162
|
leave: 280
|
|
6106
6163
|
}
|
|
6107
6164
|
}, {
|
|
6108
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
6165
|
+
default: Y(() => [e.modelValue ? (P(), b("div", nc, [x("div", {
|
|
6109
6166
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
6110
6167
|
onClick: r
|
|
6111
6168
|
}), x("aside", {
|
|
@@ -6118,7 +6175,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6118
6175
|
onPointermove: c,
|
|
6119
6176
|
onPointerup: l
|
|
6120
6177
|
}, null, 32),
|
|
6121
|
-
e.title || t.$slots.header ? (P(), b("div",
|
|
6178
|
+
e.title || t.$slots.header ? (P(), b("div", rc, [z(t.$slots, "header", {}, () => [x("h2", ic, H(e.title), 1)], !0), x("button", {
|
|
6122
6179
|
type: "button",
|
|
6123
6180
|
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
6181
|
onClick: r
|
|
@@ -6126,16 +6183,16 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6126
6183
|
name: "close",
|
|
6127
6184
|
size: 20
|
|
6128
6185
|
})])])) : y("", !0),
|
|
6129
|
-
x("div",
|
|
6130
|
-
t.$slots.actions ? (P(), b("div",
|
|
6186
|
+
x("div", ac, [z(t.$slots, "default", {}, void 0, !0)]),
|
|
6187
|
+
t.$slots.actions ? (P(), b("div", oc, [z(t.$slots, "actions", {}, void 0, !0)])) : y("", !0)
|
|
6131
6188
|
], 6)])) : y("", !0)]),
|
|
6132
6189
|
_: 3
|
|
6133
6190
|
})]));
|
|
6134
6191
|
}
|
|
6135
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
6192
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), cc = {
|
|
6136
6193
|
key: 0,
|
|
6137
6194
|
class: "flex flex-col gap-2.5"
|
|
6138
|
-
},
|
|
6195
|
+
}, lc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6139
6196
|
__name: "MSkeleton",
|
|
6140
6197
|
props: {
|
|
6141
6198
|
variant: { default: "text" },
|
|
@@ -6145,7 +6202,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6145
6202
|
animation: { default: "pulse" }
|
|
6146
6203
|
},
|
|
6147
6204
|
setup(e) {
|
|
6148
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div",
|
|
6205
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div", cc, [(P(!0), b(p, null, R(e.lines, (t) => (P(), b("div", {
|
|
6149
6206
|
key: t,
|
|
6150
6207
|
class: k(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
6151
6208
|
style: A({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -6158,21 +6215,21 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6158
6215
|
})
|
|
6159
6216
|
}, null, 6));
|
|
6160
6217
|
}
|
|
6161
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
6218
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), uc = { class: "flex flex-col gap-1 select-none" }, dc = {
|
|
6162
6219
|
key: 0,
|
|
6163
6220
|
class: "flex items-center justify-between"
|
|
6164
|
-
},
|
|
6221
|
+
}, fc = {
|
|
6165
6222
|
key: 0,
|
|
6166
6223
|
class: "text-label-large text-on-surface"
|
|
6167
|
-
},
|
|
6224
|
+
}, pc = {
|
|
6168
6225
|
key: 1,
|
|
6169
6226
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
6170
|
-
},
|
|
6227
|
+
}, mc = [
|
|
6171
6228
|
"aria-valuenow",
|
|
6172
6229
|
"aria-valuemin",
|
|
6173
6230
|
"aria-valuemax",
|
|
6174
6231
|
"aria-disabled"
|
|
6175
|
-
],
|
|
6232
|
+
], hc = /* @__PURE__ */ T({
|
|
6176
6233
|
__name: "MSlider",
|
|
6177
6234
|
props: {
|
|
6178
6235
|
modelValue: {},
|
|
@@ -6254,7 +6311,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6254
6311
|
transform: `translateX(-50%) translateY(-50%) scale(${a.value ? 1.15 : 1})`,
|
|
6255
6312
|
transition: a.value ? "transform 80ms ease" : "left 75ms ease, transform 80ms ease"
|
|
6256
6313
|
}));
|
|
6257
|
-
return (t, n) => (P(), b("div",
|
|
6314
|
+
return (t, n) => (P(), b("div", uc, [e.label || e.showValue ? (P(), b("div", dc, [e.label ? (P(), b("span", fc, H(e.label), 1)) : y("", !0), e.showValue ? (P(), b("span", pc, H(e.modelValue), 1)) : y("", !0)])) : y("", !0), x("div", {
|
|
6258
6315
|
ref_key: "trackEl",
|
|
6259
6316
|
ref: i,
|
|
6260
6317
|
role: "slider",
|
|
@@ -6275,9 +6332,9 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6275
6332
|
}, null, 6)], 2), x("div", {
|
|
6276
6333
|
class: k(["pointer-events-none absolute h-5 w-5 rounded-full shadow-elevation-1", s[e.color].thumb]),
|
|
6277
6334
|
style: A(m.value)
|
|
6278
|
-
}, null, 6)], 42,
|
|
6335
|
+
}, null, 6)], 42, mc)]));
|
|
6279
6336
|
}
|
|
6280
|
-
}),
|
|
6337
|
+
}), gc = { class: "flex-1 text-body-medium leading-snug" }, _c = { class: "flex shrink-0 items-center gap-0.5" }, vc = ["onClick"], yc = ["aria-label", "onClick"], bc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6281
6338
|
__name: "MSnackbar",
|
|
6282
6339
|
props: { closeAriaLabel: {} },
|
|
6283
6340
|
setup(e) {
|
|
@@ -6338,15 +6395,15 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6338
6395
|
size: 20,
|
|
6339
6396
|
class: k(["shrink-0", n.color ? "" : l(n.variant).icon])
|
|
6340
6397
|
}, null, 8, ["name", "class"]),
|
|
6341
|
-
x("p",
|
|
6342
|
-
x("div",
|
|
6398
|
+
x("p", gc, H(n.message), 1),
|
|
6399
|
+
x("div", _c, [n.action ? (P(), b("button", {
|
|
6343
6400
|
key: 0,
|
|
6344
6401
|
type: "button",
|
|
6345
6402
|
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
6403
|
onClick: () => {
|
|
6347
6404
|
n.action.onClick(), U(a)(n.id);
|
|
6348
6405
|
}
|
|
6349
|
-
}, H(n.action.label), 11,
|
|
6406
|
+
}, H(n.action.label), 11, vc)) : y("", !0), x("button", {
|
|
6350
6407
|
type: "button",
|
|
6351
6408
|
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
6409
|
"aria-label": e.closeAriaLabel ?? U(t).close,
|
|
@@ -6354,7 +6411,7 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6354
6411
|
}, [w(d, {
|
|
6355
6412
|
name: "close",
|
|
6356
6413
|
size: 18
|
|
6357
|
-
})], 10,
|
|
6414
|
+
})], 10, yc)]),
|
|
6358
6415
|
n.duration > 0 ? (P(), b("div", {
|
|
6359
6416
|
key: 0,
|
|
6360
6417
|
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 +6421,11 @@ var os = /*#__PURE__*/ f(rs, [["render", as]]), ss = /* @__PURE__ */ T({
|
|
|
6364
6421
|
_: 1
|
|
6365
6422
|
}, 8, ["name"])], 2));
|
|
6366
6423
|
}
|
|
6367
|
-
}), [["__scopeId", "data-v-64ce9e7c"]]),
|
|
6368
|
-
function
|
|
6369
|
-
return P(), b("div",
|
|
6424
|
+
}), [["__scopeId", "data-v-64ce9e7c"]]), xc = {}, Sc = { class: "flex-1" };
|
|
6425
|
+
function Cc(e, t) {
|
|
6426
|
+
return P(), b("div", Sc);
|
|
6370
6427
|
}
|
|
6371
|
-
var
|
|
6428
|
+
var wc = /*#__PURE__*/ f(xc, [["render", Cc]]), Tc = /* @__PURE__ */ T({
|
|
6372
6429
|
__name: "MSplitter",
|
|
6373
6430
|
props: {
|
|
6374
6431
|
direction: { default: "horizontal" },
|
|
@@ -6415,26 +6472,26 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6415
6472
|
}, [z(e.$slots, "second")], 4)
|
|
6416
6473
|
], 2));
|
|
6417
6474
|
}
|
|
6418
|
-
}),
|
|
6475
|
+
}), Ec = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Dc = { class: "flex items-center gap-3 px-5 py-1" }, Oc = ["placeholder"], kc = {
|
|
6419
6476
|
key: 0,
|
|
6420
6477
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
6421
|
-
},
|
|
6478
|
+
}, Ac = {
|
|
6422
6479
|
key: 0,
|
|
6423
6480
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
6424
|
-
},
|
|
6481
|
+
}, jc = [
|
|
6425
6482
|
"data-spot-active",
|
|
6426
6483
|
"onClick",
|
|
6427
6484
|
"onPointerenter"
|
|
6428
|
-
],
|
|
6485
|
+
], Mc = {
|
|
6429
6486
|
key: 0,
|
|
6430
6487
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
6431
|
-
},
|
|
6488
|
+
}, Nc = { class: "min-w-0 flex-1" }, Pc = { class: "truncate text-body-medium text-on-surface" }, Fc = {
|
|
6432
6489
|
key: 0,
|
|
6433
6490
|
class: "truncate text-body-small text-on-surface-variant"
|
|
6434
|
-
},
|
|
6491
|
+
}, Ic = {
|
|
6435
6492
|
key: 1,
|
|
6436
6493
|
class: "flex flex-col items-center gap-2 py-10"
|
|
6437
|
-
},
|
|
6494
|
+
}, Lc = { class: "text-body-medium text-on-surface-variant" }, Rc = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, zc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Bc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Vc = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Hc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6438
6495
|
__name: "MSpotlightSearch",
|
|
6439
6496
|
props: {
|
|
6440
6497
|
modelValue: { type: Boolean },
|
|
@@ -6498,8 +6555,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6498
6555
|
key: 0,
|
|
6499
6556
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
6500
6557
|
onClick: Z(S, ["self"])
|
|
6501
|
-
}, [x("div",
|
|
6502
|
-
x("div",
|
|
6558
|
+
}, [x("div", Ec, [
|
|
6559
|
+
x("div", Dc, [
|
|
6503
6560
|
w(d, {
|
|
6504
6561
|
name: "search",
|
|
6505
6562
|
size: 24,
|
|
@@ -6513,7 +6570,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6513
6570
|
placeholder: e.placeholder ?? U(r).search,
|
|
6514
6571
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
6515
6572
|
onKeydown: D
|
|
6516
|
-
}, null, 40,
|
|
6573
|
+
}, null, 40, Oc), [[te, o.value]]),
|
|
6517
6574
|
e.loading ? (P(), v(c, {
|
|
6518
6575
|
key: 0,
|
|
6519
6576
|
size: 20,
|
|
@@ -6528,7 +6585,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6528
6585
|
size: 18
|
|
6529
6586
|
})])) : y("", !0)
|
|
6530
6587
|
]),
|
|
6531
|
-
f.value ? (P(), b("div",
|
|
6588
|
+
f.value ? (P(), b("div", kc, [e.results.length ? (P(!0), b(p, { key: 0 }, R(g.value, ([t, n]) => (P(), b(p, { key: t }, [t ? (P(), b("p", Ac, H(t), 1)) : y("", !0), (P(!0), b(p, null, R(n, (t) => (P(), b("button", {
|
|
6532
6589
|
key: t.id,
|
|
6533
6590
|
type: "button",
|
|
6534
6591
|
"data-spot-active": e.results.indexOf(t) === s.value || void 0,
|
|
@@ -6536,32 +6593,32 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6536
6593
|
onClick: (e) => T(t),
|
|
6537
6594
|
onPointerenter: (n) => s.value = e.results.indexOf(t)
|
|
6538
6595
|
}, [
|
|
6539
|
-
t.icon ? (P(), b("div",
|
|
6596
|
+
t.icon ? (P(), b("div", Mc, [w(d, {
|
|
6540
6597
|
name: t.icon,
|
|
6541
6598
|
size: 20,
|
|
6542
6599
|
class: "text-on-primary-container"
|
|
6543
6600
|
}, null, 8, ["name"])])) : y("", !0),
|
|
6544
|
-
x("div",
|
|
6601
|
+
x("div", Nc, [x("p", Pc, H(t.title), 1), t.description ? (P(), b("p", Fc, H(t.description), 1)) : y("", !0)]),
|
|
6545
6602
|
w(d, {
|
|
6546
6603
|
name: "arrow_forward",
|
|
6547
6604
|
size: 16,
|
|
6548
6605
|
class: "shrink-0 text-on-surface-variant/40"
|
|
6549
6606
|
})
|
|
6550
|
-
], 42,
|
|
6607
|
+
], 42, jc))), 128))], 64))), 128)) : e.loading ? y("", !0) : (P(), b("div", Ic, [w(d, {
|
|
6551
6608
|
name: "search_off",
|
|
6552
6609
|
size: 40,
|
|
6553
6610
|
class: "text-on-surface-variant/40"
|
|
6554
|
-
}), x("p",
|
|
6555
|
-
x("div",
|
|
6556
|
-
x("span",
|
|
6557
|
-
x("span",
|
|
6558
|
-
x("span",
|
|
6611
|
+
}), x("p", Lc, H(e.noResultsText ?? U(r).noResults), 1)]))])) : y("", !0),
|
|
6612
|
+
x("div", Rc, [
|
|
6613
|
+
x("span", zc, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
6614
|
+
x("span", Bc, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.openHint ?? U(r).openHint), 1)]),
|
|
6615
|
+
x("span", Vc, [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
6616
|
])
|
|
6560
6617
|
])])) : y("", !0)]),
|
|
6561
6618
|
_: 1
|
|
6562
6619
|
})]));
|
|
6563
6620
|
}
|
|
6564
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
6621
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), Uc = /* @__PURE__ */ T({
|
|
6565
6622
|
__name: "MStack",
|
|
6566
6623
|
props: {
|
|
6567
6624
|
direction: { default: "column" },
|
|
@@ -6616,19 +6673,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6616
6673
|
role: "separator"
|
|
6617
6674
|
}, null, 2)) : y("", !0), (P(), v(V(e)))], 64))), 128)) : z(t.$slots, "default", { key: 1 })], 2));
|
|
6618
6675
|
}
|
|
6619
|
-
}),
|
|
6676
|
+
}), Wc = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, Gc = { class: "flex items-start justify-between gap-2" }, Kc = { class: "flex min-w-0 flex-col gap-1" }, qc = { class: "truncate text-label-large text-on-surface-variant" }, Jc = {
|
|
6620
6677
|
key: 0,
|
|
6621
6678
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
6622
|
-
},
|
|
6679
|
+
}, Yc = {
|
|
6623
6680
|
key: 1,
|
|
6624
6681
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
6625
|
-
},
|
|
6682
|
+
}, Xc = {
|
|
6626
6683
|
key: 0,
|
|
6627
6684
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
6628
|
-
},
|
|
6685
|
+
}, Zc = {
|
|
6629
6686
|
key: 1,
|
|
6630
6687
|
class: "text-label-medium text-on-surface-variant"
|
|
6631
|
-
},
|
|
6688
|
+
}, Qc = /* @__PURE__ */ T({
|
|
6632
6689
|
__name: "MStatCard",
|
|
6633
6690
|
props: {
|
|
6634
6691
|
title: {},
|
|
@@ -6647,13 +6704,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6647
6704
|
error: "bg-error-container text-on-error-container",
|
|
6648
6705
|
success: "bg-success-container text-on-success-container"
|
|
6649
6706
|
}, 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",
|
|
6707
|
+
return (t, a) => (P(), b("div", Wc, [x("div", Gc, [x("div", Kc, [x("span", qc, H(e.title), 1), e.loading ? (P(), b("div", Jc)) : (P(), b("span", Yc, H(e.value), 1))]), e.icon ? (P(), b("div", {
|
|
6651
6708
|
key: 0,
|
|
6652
6709
|
class: k(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
6653
6710
|
}, [w(d, {
|
|
6654
6711
|
name: e.icon,
|
|
6655
6712
|
size: 24
|
|
6656
|
-
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div",
|
|
6713
|
+
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div", Xc, [
|
|
6657
6714
|
e.trend == null ? y("", !0) : (P(), b("span", {
|
|
6658
6715
|
key: 0,
|
|
6659
6716
|
class: k(["inline-flex items-center gap-0.5 text-label-medium font-medium", r.value])
|
|
@@ -6661,35 +6718,35 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6661
6718
|
name: i.value,
|
|
6662
6719
|
size: 16
|
|
6663
6720
|
}, null, 8, ["name"]), C(" " + H(e.trend > 0 ? "+" : "") + H(e.trend) + "% ", 1)], 2)),
|
|
6664
|
-
e.trendLabel ? (P(), b("span",
|
|
6721
|
+
e.trendLabel ? (P(), b("span", Zc, H(e.trendLabel), 1)) : y("", !0),
|
|
6665
6722
|
z(t.$slots, "footer")
|
|
6666
6723
|
])) : y("", !0)]));
|
|
6667
6724
|
}
|
|
6668
|
-
}),
|
|
6725
|
+
}), $c = {
|
|
6669
6726
|
key: 0,
|
|
6670
6727
|
class: "flex w-full items-start"
|
|
6671
|
-
},
|
|
6728
|
+
}, el = ["onClick"], tl = { key: 3 }, nl = { class: "flex flex-col items-center text-center" }, rl = {
|
|
6672
6729
|
key: 0,
|
|
6673
6730
|
class: "text-body-small text-on-surface-variant"
|
|
6674
|
-
},
|
|
6731
|
+
}, il = {
|
|
6675
6732
|
key: 1,
|
|
6676
6733
|
class: "text-body-small text-on-surface-variant"
|
|
6677
|
-
},
|
|
6734
|
+
}, al = {
|
|
6678
6735
|
key: 0,
|
|
6679
6736
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
6680
|
-
},
|
|
6737
|
+
}, ol = {
|
|
6681
6738
|
key: 1,
|
|
6682
6739
|
class: "flex flex-col"
|
|
6683
|
-
},
|
|
6740
|
+
}, sl = { class: "flex flex-col items-center" }, cl = ["onClick"], ll = { key: 3 }, ul = ["onClick"], dl = {
|
|
6684
6741
|
key: 0,
|
|
6685
6742
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
6686
|
-
},
|
|
6743
|
+
}, fl = {
|
|
6687
6744
|
key: 1,
|
|
6688
6745
|
class: "text-body-small text-on-surface-variant"
|
|
6689
|
-
},
|
|
6746
|
+
}, pl = {
|
|
6690
6747
|
key: 2,
|
|
6691
6748
|
class: "mt-3"
|
|
6692
|
-
},
|
|
6749
|
+
}, ml = /* @__PURE__ */ T({
|
|
6693
6750
|
__name: "MStepper",
|
|
6694
6751
|
props: {
|
|
6695
6752
|
steps: {},
|
|
@@ -6710,7 +6767,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6710
6767
|
function o(e) {
|
|
6711
6768
|
a.value && r("update:modelValue", e);
|
|
6712
6769
|
}
|
|
6713
|
-
return (t, n) => e.direction === "horizontal" ? (P(), b("div",
|
|
6770
|
+
return (t, n) => e.direction === "horizontal" ? (P(), b("div", $c, [(P(!0), b(p, null, R(e.steps, (t, n) => (P(), b(p, { key: n }, [x("div", {
|
|
6714
6771
|
class: k(["flex flex-col items-center gap-2", a.value && i(n) !== "active" ? "cursor-pointer" : ""]),
|
|
6715
6772
|
onClick: (e) => o(n)
|
|
6716
6773
|
}, [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 +6786,18 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6729
6786
|
key: 2,
|
|
6730
6787
|
name: t.icon,
|
|
6731
6788
|
size: 20
|
|
6732
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
6789
|
+
}, null, 8, ["name"])) : (P(), b("span", tl, H(n + 1), 1))], 2), x("div", nl, [
|
|
6733
6790
|
x("span", { class: k(["text-label-large", {
|
|
6734
6791
|
"font-medium text-on-surface": i(n) === "active" || i(n) === "completed",
|
|
6735
6792
|
"text-error": i(n) === "error",
|
|
6736
6793
|
"text-on-surface-variant": i(n) === "inactive"
|
|
6737
6794
|
}]) }, H(t.label), 3),
|
|
6738
|
-
t.description ? (P(), b("span",
|
|
6739
|
-
t.optional ? (P(), b("span",
|
|
6740
|
-
])], 10,
|
|
6795
|
+
t.description ? (P(), b("span", rl, H(t.description), 1)) : y("", !0),
|
|
6796
|
+
t.optional ? (P(), b("span", il, " Opcional ")) : y("", !0)
|
|
6797
|
+
])], 10, el), n < e.steps.length - 1 ? (P(), b("div", al, [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", ol, [(P(!0), b(p, null, R(e.steps, (n, r) => (P(), b("div", {
|
|
6741
6798
|
key: r,
|
|
6742
6799
|
class: "flex gap-4"
|
|
6743
|
-
}, [x("div",
|
|
6800
|
+
}, [x("div", sl, [x("div", {
|
|
6744
6801
|
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
6802
|
"bg-primary text-on-primary": i(r) === "active" || i(r) === "completed",
|
|
6746
6803
|
"bg-error text-on-error": i(r) === "error",
|
|
@@ -6759,7 +6816,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6759
6816
|
key: 2,
|
|
6760
6817
|
name: n.icon,
|
|
6761
6818
|
size: 20
|
|
6762
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
6819
|
+
}, null, 8, ["name"])) : (P(), b("span", ll, H(r + 1), 1))], 10, cl), r < e.steps.length - 1 ? (P(), b("div", {
|
|
6763
6820
|
key: 0,
|
|
6764
6821
|
class: k(["my-1 w-px flex-1 transition-colors duration-300", r < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
6765
6822
|
style: { "min-height": "24px" }
|
|
@@ -6772,12 +6829,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6772
6829
|
"text-error": i(r) === "error",
|
|
6773
6830
|
"text-on-surface-variant": i(r) === "inactive"
|
|
6774
6831
|
}]) }, 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,
|
|
6832
|
+
n.description ? (P(), b("p", dl, H(n.description), 1)) : y("", !0),
|
|
6833
|
+
n.optional ? (P(), b("p", fl, " Opcional ")) : y("", !0),
|
|
6834
|
+
i(r) === "active" && t.$slots[`step-${r}`] ? (P(), b("div", pl, [z(t.$slots, `step-${r}`)])) : y("", !0)
|
|
6835
|
+
], 10, ul)]))), 128))]));
|
|
6779
6836
|
}
|
|
6780
|
-
}),
|
|
6837
|
+
}), hl = /* @__PURE__ */ T({
|
|
6781
6838
|
__name: "MSticky",
|
|
6782
6839
|
props: {
|
|
6783
6840
|
top: { default: 0 },
|
|
@@ -6795,7 +6852,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6795
6852
|
}));
|
|
6796
6853
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
6797
6854
|
}
|
|
6798
|
-
}),
|
|
6855
|
+
}), gl = /* @__PURE__ */ T({
|
|
6799
6856
|
__name: "MText",
|
|
6800
6857
|
props: {
|
|
6801
6858
|
variant: { default: "body-medium" },
|
|
@@ -6875,7 +6932,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6875
6932
|
_: 3
|
|
6876
6933
|
}, 8, ["class"]));
|
|
6877
6934
|
}
|
|
6878
|
-
}),
|
|
6935
|
+
}), _l = /* @__PURE__ */ T({
|
|
6879
6936
|
__name: "MSubtitle",
|
|
6880
6937
|
props: {
|
|
6881
6938
|
size: { default: "large" },
|
|
@@ -6889,7 +6946,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6889
6946
|
medium: "body-medium",
|
|
6890
6947
|
small: "body-small"
|
|
6891
6948
|
}, r = _(() => n[t.size]);
|
|
6892
|
-
return (t, n) => (P(), v(
|
|
6949
|
+
return (t, n) => (P(), v(gl, {
|
|
6893
6950
|
variant: r.value,
|
|
6894
6951
|
color: e.color,
|
|
6895
6952
|
align: e.align,
|
|
@@ -6904,31 +6961,31 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
6904
6961
|
"truncate"
|
|
6905
6962
|
]));
|
|
6906
6963
|
}
|
|
6907
|
-
}),
|
|
6964
|
+
}), vl = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, yl = {
|
|
6908
6965
|
key: 0,
|
|
6909
6966
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
6910
|
-
},
|
|
6967
|
+
}, bl = {
|
|
6911
6968
|
key: 0,
|
|
6912
6969
|
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
|
-
},
|
|
6970
|
+
}, xl = ["placeholder"], Sl = {
|
|
6914
6971
|
key: 0,
|
|
6915
6972
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
6916
|
-
},
|
|
6973
|
+
}, Cl = { class: "overflow-x-auto" }, wl = { class: "w-full border-collapse" }, Tl = { class: "bg-surface-container-high" }, El = {
|
|
6917
6974
|
key: 0,
|
|
6918
6975
|
class: "w-12 px-4 py-3"
|
|
6919
|
-
},
|
|
6976
|
+
}, Dl = ["onClick"], Ol = { class: "inline-flex items-center gap-1" }, kl = {
|
|
6920
6977
|
key: 0,
|
|
6921
6978
|
class: "inline-flex"
|
|
6922
|
-
},
|
|
6979
|
+
}, Al = {
|
|
6923
6980
|
key: 1,
|
|
6924
6981
|
class: "w-1 px-4 py-3"
|
|
6925
|
-
},
|
|
6982
|
+
}, jl = {
|
|
6926
6983
|
key: 0,
|
|
6927
6984
|
class: "px-4 py-3.5"
|
|
6928
|
-
},
|
|
6985
|
+
}, Ml = {
|
|
6929
6986
|
key: 1,
|
|
6930
6987
|
class: "px-4 py-3.5"
|
|
6931
|
-
},
|
|
6988
|
+
}, Nl = { key: 1 }, Pl = ["colspan"], Fl = { class: "text-body-medium text-on-surface-variant" }, Il = ["onClick"], Ll = ["onClick"], Rl = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, zl = /* @__PURE__ */ T({
|
|
6932
6989
|
__name: "MTable",
|
|
6933
6990
|
props: {
|
|
6934
6991
|
columns: {},
|
|
@@ -7068,9 +7125,9 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7068
7125
|
return `${i[(e * 3 + t) % i.length]}%`;
|
|
7069
7126
|
}
|
|
7070
7127
|
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",
|
|
7128
|
+
return (t, n) => (P(), b("div", vl, [
|
|
7129
|
+
e.searchable || t.$slots.toolbar ? (P(), b("div", yl, [
|
|
7130
|
+
e.searchable ? (P(), b("div", bl, [
|
|
7074
7131
|
w(d, {
|
|
7075
7132
|
name: "search",
|
|
7076
7133
|
size: 16,
|
|
@@ -7081,7 +7138,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7081
7138
|
type: "text",
|
|
7082
7139
|
placeholder: e.searchPlaceholder ?? U(r).search,
|
|
7083
7140
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
7084
|
-
}, null, 8,
|
|
7141
|
+
}, null, 8, xl), [[te, s.value]]),
|
|
7085
7142
|
s.value ? (P(), b("button", {
|
|
7086
7143
|
key: 0,
|
|
7087
7144
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -7098,12 +7155,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7098
7155
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
7099
7156
|
"leave-to-class": "opacity-0 scale-90"
|
|
7100
7157
|
}, {
|
|
7101
|
-
default: Y(() => [e.selectable && O.value.length > 0 ? (P(), b("span",
|
|
7158
|
+
default: Y(() => [e.selectable && O.value.length > 0 ? (P(), b("span", Sl, H(O.value.length) + " " + H(e.selectedText ?? U(r).selectedCount) + H(O.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
7102
7159
|
_: 1
|
|
7103
7160
|
})
|
|
7104
7161
|
])) : y("", !0),
|
|
7105
|
-
x("div",
|
|
7106
|
-
e.selectable ? (P(), b("th",
|
|
7162
|
+
x("div", Cl, [x("table", wl, [x("thead", null, [x("tr", Tl, [
|
|
7163
|
+
e.selectable ? (P(), b("th", El, [w(Q, {
|
|
7107
7164
|
"model-value": I.value,
|
|
7108
7165
|
indeterminate: B.value,
|
|
7109
7166
|
"onUpdate:modelValue": V
|
|
@@ -7117,7 +7174,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7117
7174
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
7118
7175
|
]),
|
|
7119
7176
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
7120
|
-
}, [x("span",
|
|
7177
|
+
}, [x("span", Ol, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", kl, [c.value === e.key && l.value === "asc" ? (P(), v(d, {
|
|
7121
7178
|
key: 0,
|
|
7122
7179
|
name: "arrow_upward",
|
|
7123
7180
|
size: 14,
|
|
@@ -7132,13 +7189,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7132
7189
|
name: "unfold_more",
|
|
7133
7190
|
size: 14,
|
|
7134
7191
|
class: "opacity-30"
|
|
7135
|
-
}))])) : y("", !0)])], 14,
|
|
7136
|
-
X.value ? (P(), b("th",
|
|
7192
|
+
}))])) : y("", !0)])], 14, Dl))), 128)),
|
|
7193
|
+
X.value ? (P(), b("th", Al)) : y("", !0)
|
|
7137
7194
|
])]), x("tbody", null, [e.loading ? (P(!0), b(p, { key: 0 }, R(e.perPage, (t) => (P(), b("tr", {
|
|
7138
7195
|
key: `sk-${t}`,
|
|
7139
7196
|
class: "border-t border-outline-variant"
|
|
7140
7197
|
}, [
|
|
7141
|
-
e.selectable ? (P(), b("td",
|
|
7198
|
+
e.selectable ? (P(), b("td", jl, [...n[4] ||= [x("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : y("", !0),
|
|
7142
7199
|
(P(!0), b(p, null, R(e.columns, (e, n) => (P(), b("td", {
|
|
7143
7200
|
key: e.key,
|
|
7144
7201
|
class: "px-4 py-3.5"
|
|
@@ -7146,15 +7203,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7146
7203
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
7147
7204
|
style: A({ width: K(t, n) })
|
|
7148
7205
|
}, null, 4)]))), 128)),
|
|
7149
|
-
X.value ? (P(), b("td",
|
|
7150
|
-
]))), 128)) : T.value.length === 0 ? (P(), b("tr",
|
|
7206
|
+
X.value ? (P(), b("td", Ml, [...n[5] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : y("", !0)
|
|
7207
|
+
]))), 128)) : T.value.length === 0 ? (P(), b("tr", Nl, [x("td", {
|
|
7151
7208
|
colspan: e.columns.length + W.value,
|
|
7152
7209
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
7153
7210
|
}, [z(t.$slots, "empty", {}, () => [w(d, {
|
|
7154
7211
|
name: "search_off",
|
|
7155
7212
|
size: 36,
|
|
7156
7213
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
7157
|
-
}), x("p",
|
|
7214
|
+
}), x("p", Fl, H(e.emptyText ?? U(r).noResults), 1)])], 8, Pl)])) : (P(!0), b(p, { key: 2 }, R(T.value, (r) => (P(), b("tr", {
|
|
7158
7215
|
key: j(r),
|
|
7159
7216
|
class: k([
|
|
7160
7217
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -7171,7 +7228,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7171
7228
|
}, [w(Q, {
|
|
7172
7229
|
"model-value": N(r),
|
|
7173
7230
|
"onUpdate:modelValue": (e) => F(r)
|
|
7174
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
7231
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Ll)) : y("", !0),
|
|
7175
7232
|
(P(!0), b(p, null, R(e.columns, (e) => (P(), b("td", {
|
|
7176
7233
|
key: e.key,
|
|
7177
7234
|
class: k(["px-4 py-3 text-body-medium text-on-surface", G(e.align)])
|
|
@@ -7185,8 +7242,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7185
7242
|
class: "px-4 py-3 text-right",
|
|
7186
7243
|
onClick: n[2] ||= Z(() => {}, ["stop"])
|
|
7187
7244
|
}, [z(t.$slots, "row-actions", { row: r })])) : y("", !0)
|
|
7188
|
-
], 10,
|
|
7189
|
-
x("div",
|
|
7245
|
+
], 10, Il))), 128))])])]),
|
|
7246
|
+
x("div", Rl, [w(fn, {
|
|
7190
7247
|
page: m.value,
|
|
7191
7248
|
"per-page": e.perPage,
|
|
7192
7249
|
total: S.value,
|
|
@@ -7198,16 +7255,16 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7198
7255
|
])])
|
|
7199
7256
|
]));
|
|
7200
7257
|
}
|
|
7201
|
-
}),
|
|
7258
|
+
}), Bl = {
|
|
7202
7259
|
key: 0,
|
|
7203
7260
|
class: "relative border-b border-outline-variant"
|
|
7204
|
-
},
|
|
7261
|
+
}, Vl = {
|
|
7205
7262
|
class: "flex overflow-x-auto",
|
|
7206
7263
|
style: { "scrollbar-width": "none" }
|
|
7207
|
-
},
|
|
7264
|
+
}, Hl = ["disabled", "onClick"], Ul = {
|
|
7208
7265
|
key: 1,
|
|
7209
7266
|
class: "flex flex-wrap gap-1 rounded-full bg-surface-container p-1"
|
|
7210
|
-
},
|
|
7267
|
+
}, Wl = ["disabled", "onClick"], Gl = /* @__PURE__ */ T({
|
|
7211
7268
|
__name: "MTabs",
|
|
7212
7269
|
props: {
|
|
7213
7270
|
modelValue: {},
|
|
@@ -7227,7 +7284,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7227
7284
|
function c(e) {
|
|
7228
7285
|
e.disabled || r("update:modelValue", e.value);
|
|
7229
7286
|
}
|
|
7230
|
-
return (t, n) => e.variant === "primary" ? (P(), b("div",
|
|
7287
|
+
return (t, n) => e.variant === "primary" ? (P(), b("div", Bl, [x("div", Vl, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
7231
7288
|
key: t.value,
|
|
7232
7289
|
ref_for: !0,
|
|
7233
7290
|
ref: (n) => {
|
|
@@ -7241,13 +7298,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7241
7298
|
key: 0,
|
|
7242
7299
|
name: t.icon,
|
|
7243
7300
|
size: 20
|
|
7244
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
7301
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, Hl))), 128))]), x("div", {
|
|
7245
7302
|
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
7303
|
style: A({
|
|
7247
7304
|
left: `${a.value}px`,
|
|
7248
7305
|
width: `${o.value}px`
|
|
7249
7306
|
})
|
|
7250
|
-
}, null, 4)])) : (P(), b("div",
|
|
7307
|
+
}, null, 4)])) : (P(), b("div", Ul, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
7251
7308
|
key: t.value,
|
|
7252
7309
|
type: "button",
|
|
7253
7310
|
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 +7314,27 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7257
7314
|
key: 0,
|
|
7258
7315
|
name: t.icon,
|
|
7259
7316
|
size: 16
|
|
7260
|
-
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10,
|
|
7317
|
+
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10, Wl))), 128))]));
|
|
7261
7318
|
}
|
|
7262
|
-
}),
|
|
7319
|
+
}), Kl = { class: "flex flex-col items-center" }, ql = { class: "flex items-baseline justify-between gap-2" }, Jl = { class: "text-body-large font-medium text-on-surface" }, Yl = {
|
|
7263
7320
|
key: 0,
|
|
7264
7321
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
7265
|
-
},
|
|
7322
|
+
}, Xl = {
|
|
7266
7323
|
key: 0,
|
|
7267
7324
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
7268
|
-
},
|
|
7325
|
+
}, Zl = {
|
|
7269
7326
|
key: 1,
|
|
7270
7327
|
class: "mt-2"
|
|
7271
|
-
},
|
|
7328
|
+
}, Ql = { class: "text-body-large font-medium text-on-surface" }, $l = {
|
|
7272
7329
|
key: 0,
|
|
7273
7330
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
7274
|
-
},
|
|
7331
|
+
}, eu = {
|
|
7275
7332
|
key: 1,
|
|
7276
7333
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
7277
|
-
},
|
|
7334
|
+
}, tu = { class: "flex w-14 shrink-0 flex-col items-center" }, nu = {
|
|
7278
7335
|
key: 0,
|
|
7279
7336
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
7280
|
-
},
|
|
7337
|
+
}, ru = /* @__PURE__ */ T({
|
|
7281
7338
|
__name: "MTimeline",
|
|
7282
7339
|
props: {
|
|
7283
7340
|
items: {},
|
|
@@ -7303,23 +7360,23 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7303
7360
|
class: k(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
7304
7361
|
}, [
|
|
7305
7362
|
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",
|
|
7363
|
+
x("p", Ql, H(n.title), 1),
|
|
7364
|
+
n.description ? (P(), b("p", $l, H(n.description), 1)) : y("", !0),
|
|
7365
|
+
n.date ? (P(), b("span", eu, H(n.date), 1)) : y("", !0)
|
|
7309
7366
|
], 2),
|
|
7310
|
-
x("div",
|
|
7367
|
+
x("div", tu, [x("div", {
|
|
7311
7368
|
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
7369
|
style: A(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
7313
7370
|
}, [n.icon ? (P(), v(d, {
|
|
7314
7371
|
key: 0,
|
|
7315
7372
|
name: n.icon,
|
|
7316
7373
|
size: 18
|
|
7317
|
-
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div",
|
|
7374
|
+
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div", nu)) : y("", !0)]),
|
|
7318
7375
|
r[0] ||= x("div", { class: "flex-1" }, null, -1)
|
|
7319
7376
|
], 2))), 128)) : (P(!0), b(p, { key: 0 }, R(e.items, (r, i) => (P(), b("div", {
|
|
7320
7377
|
key: i,
|
|
7321
7378
|
class: k(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
7322
|
-
}, [x("div",
|
|
7379
|
+
}, [x("div", Kl, [x("div", {
|
|
7323
7380
|
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
7381
|
style: A(r.dotColor ? { backgroundColor: r.dotColor } : void 0)
|
|
7325
7382
|
}, [r.icon ? (P(), v(d, {
|
|
@@ -7331,30 +7388,30 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7331
7388
|
class: k(["w-[2px] flex-1", t[r.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
7332
7389
|
style: { "min-height": "16px" }
|
|
7333
7390
|
}, 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",
|
|
7391
|
+
x("div", ql, [x("p", Jl, H(r.title), 1), r.date ? (P(), b("span", Yl, H(r.date), 1)) : y("", !0)]),
|
|
7392
|
+
r.description ? (P(), b("p", Xl, H(r.description), 1)) : y("", !0),
|
|
7393
|
+
n.$slots[`item-${i}`] ? (P(), b("div", Zl, [z(n.$slots, `item-${i}`, { item: r })])) : y("", !0)
|
|
7337
7394
|
], 2)], 2))), 128))], 2));
|
|
7338
7395
|
}
|
|
7339
|
-
}),
|
|
7396
|
+
}), iu = { class: "flex flex-col gap-1" }, au = {
|
|
7340
7397
|
key: 0,
|
|
7341
7398
|
class: "flex-1 font-mono text-on-surface"
|
|
7342
|
-
},
|
|
7399
|
+
}, ou = {
|
|
7343
7400
|
key: 1,
|
|
7344
7401
|
class: "flex-1 text-on-surface-variant"
|
|
7345
|
-
},
|
|
7402
|
+
}, su = {
|
|
7346
7403
|
key: 0,
|
|
7347
7404
|
class: "px-4 text-body-small text-error"
|
|
7348
|
-
},
|
|
7405
|
+
}, cu = {
|
|
7349
7406
|
key: 1,
|
|
7350
7407
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
7351
|
-
},
|
|
7408
|
+
}, lu = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, uu = { class: "p-3" }, du = {
|
|
7352
7409
|
key: 0,
|
|
7353
7410
|
class: "grid grid-cols-6 gap-1"
|
|
7354
|
-
},
|
|
7411
|
+
}, fu = ["onClick"], pu = {
|
|
7355
7412
|
key: 1,
|
|
7356
7413
|
class: "grid grid-cols-6 gap-1"
|
|
7357
|
-
},
|
|
7414
|
+
}, mu = ["onClick"], hu = /* @__PURE__ */ T({
|
|
7358
7415
|
__name: "MTimePicker",
|
|
7359
7416
|
props: {
|
|
7360
7417
|
modelValue: {},
|
|
@@ -7432,7 +7489,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7432
7489
|
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
7490
|
}), M(() => window.addEventListener("scroll", W, !0)), N(() => {
|
|
7434
7491
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", V);
|
|
7435
|
-
}), (t, n) => (P(), b("div",
|
|
7492
|
+
}), (t, n) => (P(), b("div", iu, [
|
|
7436
7493
|
x("div", {
|
|
7437
7494
|
ref_key: "triggerEl",
|
|
7438
7495
|
ref: c,
|
|
@@ -7448,7 +7505,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7448
7505
|
size: 20,
|
|
7449
7506
|
class: "shrink-0 text-on-surface-variant"
|
|
7450
7507
|
}),
|
|
7451
|
-
z.value ? (P(), b("span",
|
|
7508
|
+
z.value ? (P(), b("span", au, H(z.value), 1)) : (P(), b("span", ou, H(e.label || e.placeholder || U(a).selectTime), 1)),
|
|
7452
7509
|
e.modelValue ? (P(), v(d, {
|
|
7453
7510
|
key: 2,
|
|
7454
7511
|
name: "close",
|
|
@@ -7460,7 +7517,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7460
7517
|
key: 0,
|
|
7461
7518
|
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
7519
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
7463
|
-
e.error ? (P(), b("p",
|
|
7520
|
+
e.error ? (P(), b("p", su, H(e.error), 1)) : e.hint ? (P(), b("p", cu, H(e.hint), 1)) : y("", !0),
|
|
7464
7521
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
7465
7522
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
7466
7523
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -7473,7 +7530,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7473
7530
|
ref: l,
|
|
7474
7531
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
7475
7532
|
style: A(f.value)
|
|
7476
|
-
}, [x("div",
|
|
7533
|
+
}, [x("div", lu, [
|
|
7477
7534
|
x("button", {
|
|
7478
7535
|
type: "button",
|
|
7479
7536
|
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 +7542,22 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7485
7542
|
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
7543
|
onClick: n[2] ||= (e) => u.value = "minute"
|
|
7487
7544
|
}, H(O(T.value)), 3)
|
|
7488
|
-
]), x("div",
|
|
7545
|
+
]), x("div", uu, [u.value === "hour" ? (P(), b("div", du, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("button", {
|
|
7489
7546
|
key: e,
|
|
7490
7547
|
type: "button",
|
|
7491
7548
|
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
7549
|
onClick: (t) => j(e)
|
|
7493
|
-
}, H(O(e)), 11,
|
|
7550
|
+
}, H(O(e)), 11, fu))), 128))])) : (P(), b("div", pu, [(P(!0), b(p, null, R(D.value, (e) => (P(), b("button", {
|
|
7494
7551
|
key: e,
|
|
7495
7552
|
type: "button",
|
|
7496
7553
|
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
7554
|
onClick: (t) => F(e)
|
|
7498
|
-
}, H(O(e)), 11,
|
|
7555
|
+
}, H(O(e)), 11, mu))), 128))]))])], 4)) : y("", !0)]),
|
|
7499
7556
|
_: 1
|
|
7500
7557
|
})]))
|
|
7501
7558
|
]));
|
|
7502
7559
|
}
|
|
7503
|
-
}),
|
|
7560
|
+
}), gu = /* @__PURE__ */ T({
|
|
7504
7561
|
__name: "MTitle",
|
|
7505
7562
|
props: {
|
|
7506
7563
|
size: { default: "large" },
|
|
@@ -7514,7 +7571,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7514
7571
|
medium: "headline-medium",
|
|
7515
7572
|
small: "headline-small"
|
|
7516
7573
|
}, r = _(() => n[t.size]);
|
|
7517
|
-
return (t, n) => (P(), v(
|
|
7574
|
+
return (t, n) => (P(), v(gl, {
|
|
7518
7575
|
variant: r.value,
|
|
7519
7576
|
weight: "medium",
|
|
7520
7577
|
color: e.color,
|
|
@@ -7530,7 +7587,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7530
7587
|
"truncate"
|
|
7531
7588
|
]));
|
|
7532
7589
|
}
|
|
7533
|
-
}),
|
|
7590
|
+
}), _u = /* @__PURE__ */ T({
|
|
7534
7591
|
__name: "MTooltip",
|
|
7535
7592
|
props: {
|
|
7536
7593
|
text: {},
|
|
@@ -7599,13 +7656,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7599
7656
|
_: 1
|
|
7600
7657
|
})]))], 64));
|
|
7601
7658
|
}
|
|
7602
|
-
}),
|
|
7603
|
-
key:
|
|
7659
|
+
}), vu = { class: "flex h-16 items-center gap-1 px-4" }, yu = {
|
|
7660
|
+
key: 1,
|
|
7604
7661
|
class: "flex-1"
|
|
7605
|
-
},
|
|
7606
|
-
key:
|
|
7662
|
+
}, bu = {
|
|
7663
|
+
key: 2,
|
|
7607
7664
|
class: "flex items-center gap-1"
|
|
7608
|
-
},
|
|
7665
|
+
}, xu = /* @__PURE__ */ T({
|
|
7609
7666
|
__name: "MTopAppBar",
|
|
7610
7667
|
props: {
|
|
7611
7668
|
title: {},
|
|
@@ -7616,24 +7673,24 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7616
7673
|
},
|
|
7617
7674
|
emits: ["navigation"],
|
|
7618
7675
|
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, {
|
|
7676
|
+
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", vu, [
|
|
7677
|
+
z(n.$slots, "navigation", {}, () => [t.navigationIcon ? (P(), v(e, {
|
|
7621
7678
|
key: 0,
|
|
7622
7679
|
icon: t.navigationIcon,
|
|
7623
7680
|
label: "Navegación",
|
|
7624
7681
|
onClick: r[0] ||= (e) => n.$emit("navigation")
|
|
7625
|
-
}, null, 8, ["icon"])) : y("", !0),
|
|
7682
|
+
}, null, 8, ["icon"])) : y("", !0)]),
|
|
7626
7683
|
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",
|
|
7684
|
+
key: 0,
|
|
7685
|
+
class: k(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", t.variant === "center" ? "justify-center" : ""])
|
|
7686
|
+
}, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)) : (P(), b("div", yu)),
|
|
7687
|
+
n.$slots.actions ? (P(), b("div", bu, [z(n.$slots, "actions")])) : y("", !0)
|
|
7631
7688
|
]), t.variant === "medium" || t.variant === "large" ? (P(), b("div", {
|
|
7632
7689
|
key: 0,
|
|
7633
7690
|
class: k(["px-4 pb-6", t.variant === "large" ? "pt-4" : "pt-1"])
|
|
7634
7691
|
}, [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
7692
|
}
|
|
7636
|
-
}),
|
|
7693
|
+
}), Su = { class: "mb-2 flex items-center justify-between" }, Cu = { class: "text-label-small text-on-surface-variant" }, wu = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Tu = { class: "mb-4 text-body-medium text-on-surface-variant" }, Eu = { class: "mb-4 flex justify-center gap-1.5" }, Du = { class: "flex justify-between" }, Ou = { key: 1 }, ku = /* @__PURE__ */ T({
|
|
7637
7694
|
__name: "MTour",
|
|
7638
7695
|
props: {
|
|
7639
7696
|
modelValue: { type: Boolean },
|
|
@@ -7716,7 +7773,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7716
7773
|
class: "h-0 w-0",
|
|
7717
7774
|
style: A(l.value)
|
|
7718
7775
|
}, null, 4),
|
|
7719
|
-
x("div",
|
|
7776
|
+
x("div", Su, [x("span", Cu, H(s.value + 1) + " / " + H(e.steps.length), 1), x("button", {
|
|
7720
7777
|
type: "button",
|
|
7721
7778
|
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
7779
|
onClick: W
|
|
@@ -7724,13 +7781,13 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7724
7781
|
name: "close",
|
|
7725
7782
|
size: 16
|
|
7726
7783
|
})])]),
|
|
7727
|
-
x("h3",
|
|
7728
|
-
x("p",
|
|
7729
|
-
x("div",
|
|
7784
|
+
x("h3", wu, H(f.value.title), 1),
|
|
7785
|
+
x("p", Tu, H(f.value.content), 1),
|
|
7786
|
+
x("div", Eu, [(P(!0), b(p, null, R(e.steps, (e, t) => (P(), b("div", {
|
|
7730
7787
|
key: t,
|
|
7731
7788
|
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
7789
|
}, null, 2))), 128))]),
|
|
7733
|
-
x("div",
|
|
7790
|
+
x("div", Du, [g.value ? (P(), b("span", Ou)) : (P(), v(o, {
|
|
7734
7791
|
key: 0,
|
|
7735
7792
|
variant: "text",
|
|
7736
7793
|
onClick: V
|
|
@@ -7745,19 +7802,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7745
7802
|
_: 1
|
|
7746
7803
|
})]));
|
|
7747
7804
|
}
|
|
7748
|
-
}),
|
|
7805
|
+
}), Au = { class: "flex items-stretch gap-2" }, ju = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Mu = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Nu = { class: "text-label-large font-medium text-on-surface" }, Pu = { class: "text-label-small text-on-surface-variant" }, Fu = {
|
|
7749
7806
|
key: 0,
|
|
7750
7807
|
class: "border-b border-outline-variant px-3 py-2"
|
|
7751
|
-
},
|
|
7808
|
+
}, Iu = ["placeholder"], Lu = {
|
|
7752
7809
|
class: "flex-1 overflow-y-auto",
|
|
7753
7810
|
style: { "max-height": "240px" }
|
|
7754
|
-
},
|
|
7811
|
+
}, Ru = ["onClick"], zu = { class: "flex-1 truncate text-body-medium text-on-surface" }, Bu = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Vu = { class: "flex flex-col items-center justify-center gap-1" }, Hu = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Uu = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Wu = { class: "text-label-large font-medium text-on-surface" }, Gu = { class: "text-label-small text-on-surface-variant" }, Ku = {
|
|
7755
7812
|
key: 0,
|
|
7756
7813
|
class: "border-b border-outline-variant px-3 py-2"
|
|
7757
|
-
},
|
|
7814
|
+
}, qu = ["placeholder"], Ju = {
|
|
7758
7815
|
class: "flex-1 overflow-y-auto",
|
|
7759
7816
|
style: { "max-height": "240px" }
|
|
7760
|
-
},
|
|
7817
|
+
}, Yu = ["onClick"], Xu = { class: "flex-1 truncate text-body-medium text-on-surface" }, Zu = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Qu = /* @__PURE__ */ T({
|
|
7761
7818
|
__name: "MTransferList",
|
|
7762
7819
|
props: {
|
|
7763
7820
|
modelValue: {},
|
|
@@ -7815,16 +7872,16 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7815
7872
|
let e = m.value.map((e) => e.value);
|
|
7816
7873
|
o("update:modelValue", a.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
7817
7874
|
}
|
|
7818
|
-
return (n, r) => (P(), b("div",
|
|
7819
|
-
x("div",
|
|
7820
|
-
x("div",
|
|
7821
|
-
t.filterable ? (P(), b("div",
|
|
7875
|
+
return (n, r) => (P(), b("div", Au, [
|
|
7876
|
+
x("div", ju, [
|
|
7877
|
+
x("div", Mu, [x("span", Nu, H(t.sourceTitle ?? U(i).available), 1), x("span", Pu, H(f.value.length), 1)]),
|
|
7878
|
+
t.filterable ? (P(), b("div", Fu, [ne(x("input", {
|
|
7822
7879
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
7823
7880
|
type: "text",
|
|
7824
7881
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
7825
7882
|
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",
|
|
7883
|
+
}, null, 8, Iu), [[te, l.value]])])) : y("", !0),
|
|
7884
|
+
x("div", Lu, [(P(!0), b(p, null, R(f.value, (e) => (P(), b("button", {
|
|
7828
7885
|
key: e.value,
|
|
7829
7886
|
type: "button",
|
|
7830
7887
|
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 +7897,10 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7840
7897
|
size: 18,
|
|
7841
7898
|
class: "shrink-0 text-on-surface-variant"
|
|
7842
7899
|
}, null, 8, ["name"])) : y("", !0),
|
|
7843
|
-
x("span",
|
|
7844
|
-
], 8,
|
|
7900
|
+
x("span", zu, H(e.label), 1)
|
|
7901
|
+
], 8, Ru))), 128)), f.value.length ? y("", !0) : z(n.$slots, "source-empty", { key: 0 }, () => [x("p", Bu, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
7845
7902
|
]),
|
|
7846
|
-
x("div",
|
|
7903
|
+
x("div", Vu, [
|
|
7847
7904
|
w(e, {
|
|
7848
7905
|
icon: "keyboard_double_arrow_right",
|
|
7849
7906
|
label: t.moveAllRightLabel ?? U(i).moveAllRight,
|
|
@@ -7875,15 +7932,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7875
7932
|
onClick: E
|
|
7876
7933
|
}, null, 8, ["label", "disabled"])
|
|
7877
7934
|
]),
|
|
7878
|
-
x("div",
|
|
7879
|
-
x("div",
|
|
7880
|
-
t.filterable ? (P(), b("div",
|
|
7935
|
+
x("div", Hu, [
|
|
7936
|
+
x("div", Uu, [x("span", Wu, H(t.targetTitle ?? U(i).selected), 1), x("span", Gu, H(m.value.length), 1)]),
|
|
7937
|
+
t.filterable ? (P(), b("div", Ku, [ne(x("input", {
|
|
7881
7938
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
7882
7939
|
type: "text",
|
|
7883
7940
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
7884
7941
|
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",
|
|
7942
|
+
}, null, 8, qu), [[te, u.value]])])) : y("", !0),
|
|
7943
|
+
x("div", Ju, [(P(!0), b(p, null, R(m.value, (e) => (P(), b("button", {
|
|
7887
7944
|
key: e.value,
|
|
7888
7945
|
type: "button",
|
|
7889
7946
|
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 +7956,18 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7899
7956
|
size: 18,
|
|
7900
7957
|
class: "shrink-0 text-on-surface-variant"
|
|
7901
7958
|
}, null, 8, ["name"])) : y("", !0),
|
|
7902
|
-
x("span",
|
|
7903
|
-
], 8,
|
|
7959
|
+
x("span", Xu, H(e.label), 1)
|
|
7960
|
+
], 8, Yu))), 128)), m.value.length ? y("", !0) : z(n.$slots, "target-empty", { key: 0 }, () => [x("p", Zu, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
7904
7961
|
])
|
|
7905
7962
|
]));
|
|
7906
7963
|
}
|
|
7907
|
-
}),
|
|
7964
|
+
}), $u = ["aria-expanded", "aria-selected"], ed = { class: "flex w-6 shrink-0 items-center justify-center" }, td = ["disabled"], nd = {
|
|
7908
7965
|
key: 2,
|
|
7909
7966
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
7910
|
-
},
|
|
7967
|
+
}, rd = {
|
|
7911
7968
|
key: 0,
|
|
7912
7969
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
7913
|
-
},
|
|
7970
|
+
}, id = /* @__PURE__ */ T({
|
|
7914
7971
|
__name: "_MTreeNode",
|
|
7915
7972
|
props: {
|
|
7916
7973
|
node: {},
|
|
@@ -7955,7 +8012,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7955
8012
|
]),
|
|
7956
8013
|
onClick: u
|
|
7957
8014
|
}, [
|
|
7958
|
-
x("div",
|
|
8015
|
+
x("div", ed, [r.value ? (P(), b("button", {
|
|
7959
8016
|
key: 0,
|
|
7960
8017
|
type: "button",
|
|
7961
8018
|
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 +8021,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7964
8021
|
}, [w(d, {
|
|
7965
8022
|
name: "chevron_right",
|
|
7966
8023
|
size: 16
|
|
7967
|
-
})], 10,
|
|
8024
|
+
})], 10, td)) : y("", !0)]),
|
|
7968
8025
|
U(n).checkable.value ? (P(), b("div", {
|
|
7969
8026
|
key: 0,
|
|
7970
8027
|
class: "shrink-0",
|
|
@@ -7986,7 +8043,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7986
8043
|
class: k(["shrink-0 transition-colors", a.value ? "text-primary" : "text-on-surface-variant"])
|
|
7987
8044
|
}, null, 8, ["name", "class"])) : y("", !0),
|
|
7988
8045
|
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",
|
|
8046
|
+
r.value && U(n).checkable.value ? (P(), b("span", nd, H(s.value) + "/" + H(o.value.length), 1)) : y("", !0),
|
|
7990
8047
|
z(t.$slots, "trailing", { node: e.node })
|
|
7991
8048
|
], 2), w(h, {
|
|
7992
8049
|
onEnter: g,
|
|
@@ -7994,7 +8051,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7994
8051
|
onLeave: O,
|
|
7995
8052
|
onAfterLeave: A
|
|
7996
8053
|
}, {
|
|
7997
|
-
default: Y(() => [i.value && r.value ? (P(), b("div",
|
|
8054
|
+
default: Y(() => [i.value && r.value ? (P(), b("div", rd, [(P(!0), b(p, null, R(e.node.children, (n) => (P(), v(id, {
|
|
7998
8055
|
key: n.id,
|
|
7999
8056
|
node: n,
|
|
8000
8057
|
depth: e.depth + 1
|
|
@@ -8003,15 +8060,15 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8003
8060
|
fn: Y((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8004
8061
|
}))]), 1032, ["node", "depth"]))), 128))])) : y("", !0)]),
|
|
8005
8062
|
_: 3
|
|
8006
|
-
})], 8,
|
|
8063
|
+
})], 8, $u));
|
|
8007
8064
|
}
|
|
8008
|
-
}),
|
|
8065
|
+
}), ad = {
|
|
8009
8066
|
role: "tree",
|
|
8010
8067
|
class: "flex flex-col"
|
|
8011
|
-
},
|
|
8068
|
+
}, od = {
|
|
8012
8069
|
key: 1,
|
|
8013
8070
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
8014
|
-
},
|
|
8071
|
+
}, sd = { class: "text-body-medium" }, cd = /* @__PURE__ */ T({
|
|
8015
8072
|
__name: "MTree",
|
|
8016
8073
|
props: {
|
|
8017
8074
|
nodes: {},
|
|
@@ -8077,26 +8134,26 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8077
8134
|
return t({
|
|
8078
8135
|
expandAll: y,
|
|
8079
8136
|
collapseAll: C
|
|
8080
|
-
}), (t, n) => (P(), b("div",
|
|
8137
|
+
}), (t, n) => (P(), b("div", ad, [e.nodes.length ? (P(!0), b(p, { key: 0 }, R(e.nodes, (e) => (P(), v(id, {
|
|
8081
8138
|
key: e.id,
|
|
8082
8139
|
node: e,
|
|
8083
8140
|
depth: 0
|
|
8084
8141
|
}, S({ _: 2 }, [R(t.$slots, (e, n) => ({
|
|
8085
8142
|
name: n,
|
|
8086
8143
|
fn: Y((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8087
|
-
}))]), 1032, ["node"]))), 128)) : (P(), b("div",
|
|
8144
|
+
}))]), 1032, ["node"]))), 128)) : (P(), b("div", od, [w(d, {
|
|
8088
8145
|
name: "account_tree",
|
|
8089
8146
|
size: 32,
|
|
8090
8147
|
class: "opacity-30"
|
|
8091
|
-
}), x("p",
|
|
8148
|
+
}), x("p", sd, H(e.emptyText), 1)]))]));
|
|
8092
8149
|
}
|
|
8093
|
-
}),
|
|
8150
|
+
}), ld = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, ud = {
|
|
8094
8151
|
key: 0,
|
|
8095
8152
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
8096
|
-
},
|
|
8153
|
+
}, dd = { class: "overflow-x-auto" }, fd = { class: "w-full border-collapse" }, pd = { class: "bg-surface-container-high" }, md = ["onClick"], hd = ["onClick"], gd = {
|
|
8097
8154
|
key: 1,
|
|
8098
8155
|
class: "w-6 shrink-0"
|
|
8099
|
-
},
|
|
8156
|
+
}, _d = { key: 0 }, vd = ["colspan"], yd = /* @__PURE__ */ T({
|
|
8100
8157
|
__name: "MTreeTable",
|
|
8101
8158
|
props: {
|
|
8102
8159
|
columns: {},
|
|
@@ -8151,10 +8208,10 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8151
8208
|
function f(e) {
|
|
8152
8209
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
8153
8210
|
}
|
|
8154
|
-
return (t, n) => (P(), b("div",
|
|
8211
|
+
return (t, n) => (P(), b("div", ld, [t.$slots.toolbar ? (P(), b("div", ud, [z(t.$slots, "toolbar", {
|
|
8155
8212
|
expandAll: l,
|
|
8156
8213
|
collapseAll: u
|
|
8157
|
-
})])) : y("", !0), x("div",
|
|
8214
|
+
})])) : y("", !0), x("div", dd, [x("table", fd, [x("thead", null, [x("tr", pd, [(P(!0), b(p, null, R(e.columns, (t, n) => (P(), b("th", {
|
|
8158
8215
|
key: t.key,
|
|
8159
8216
|
style: A(t.width ? { width: t.width } : void 0),
|
|
8160
8217
|
class: k([
|
|
@@ -8185,7 +8242,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8185
8242
|
}, [w(d, {
|
|
8186
8243
|
name: "chevron_right",
|
|
8187
8244
|
size: 18
|
|
8188
|
-
})], 10,
|
|
8245
|
+
})], 10, hd)) : (P(), b("span", gd)), z(t.$slots, `cell-${r.key}`, {
|
|
8189
8246
|
row: n.row,
|
|
8190
8247
|
value: n.row[r.key],
|
|
8191
8248
|
depth: n.depth
|
|
@@ -8194,19 +8251,19 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8194
8251
|
row: n.row,
|
|
8195
8252
|
value: n.row[r.key],
|
|
8196
8253
|
depth: n.depth
|
|
8197
|
-
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
8254
|
+
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10, md))), 128)), c.value.length ? y("", !0) : (P(), b("tr", _d, [x("td", {
|
|
8198
8255
|
colspan: e.columns.length,
|
|
8199
8256
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
8200
8257
|
}, [w(d, {
|
|
8201
8258
|
name: "account_tree",
|
|
8202
8259
|
size: 36,
|
|
8203
8260
|
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,
|
|
8261
|
+
}), n[0] ||= x("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, vd)]))])])])]));
|
|
8205
8262
|
}
|
|
8206
|
-
}),
|
|
8263
|
+
}), bd = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, xd = { class: "flex bg-surface-container-high" }, Sd = ["onClick"], Cd = { class: "inline-flex items-center gap-1" }, wd = {
|
|
8207
8264
|
key: 0,
|
|
8208
8265
|
class: "inline-flex"
|
|
8209
|
-
},
|
|
8266
|
+
}, Td = ["onClick"], Ed = { class: "truncate" }, Dd = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Od = { class: "text-label-small text-on-surface-variant" }, kd = /* @__PURE__ */ T({
|
|
8210
8267
|
__name: "MVirtualTable",
|
|
8211
8268
|
props: {
|
|
8212
8269
|
columns: {},
|
|
@@ -8252,8 +8309,8 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8252
8309
|
function w(e) {
|
|
8253
8310
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
8254
8311
|
}
|
|
8255
|
-
return (t, n) => (P(), b("div",
|
|
8256
|
-
x("div",
|
|
8312
|
+
return (t, n) => (P(), b("div", bd, [
|
|
8313
|
+
x("div", xd, [(P(!0), b(p, null, R(e.columns, (e) => (P(), b("div", {
|
|
8257
8314
|
key: e.key,
|
|
8258
8315
|
style: A({
|
|
8259
8316
|
width: e.width || "auto",
|
|
@@ -8265,7 +8322,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8265
8322
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
8266
8323
|
]),
|
|
8267
8324
|
onClick: (t) => e.sortable ? l(e.key) : void 0
|
|
8268
|
-
}, [x("span",
|
|
8325
|
+
}, [x("span", Cd, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", wd, [s.value === e.key && c.value === "asc" ? (P(), v(d, {
|
|
8269
8326
|
key: 0,
|
|
8270
8327
|
name: "arrow_upward",
|
|
8271
8328
|
size: 14,
|
|
@@ -8280,7 +8337,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8280
8337
|
name: "unfold_more",
|
|
8281
8338
|
size: 14,
|
|
8282
8339
|
class: "opacity-30"
|
|
8283
|
-
}))])) : y("", !0)])], 14,
|
|
8340
|
+
}))])) : y("", !0)])], 14, Sd))), 128))]),
|
|
8284
8341
|
x("div", {
|
|
8285
8342
|
ref_key: "scrollEl",
|
|
8286
8343
|
ref: i,
|
|
@@ -8308,12 +8365,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8308
8365
|
}, [z(t.$slots, `cell-${e.key}`, {
|
|
8309
8366
|
row: n,
|
|
8310
8367
|
value: n[e.key]
|
|
8311
|
-
}, () => [x("span",
|
|
8312
|
-
x("div",
|
|
8368
|
+
}, () => [x("span", Ed, H(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, Td))), 128))], 4)], 36),
|
|
8369
|
+
x("div", Dd, [x("span", Od, [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
8370
|
]));
|
|
8314
8371
|
}
|
|
8315
8372
|
});
|
|
8316
8373
|
//#endregion
|
|
8317
|
-
export { Se as MAbsolute, Oe as MAlert, Me as MAppBar,
|
|
8374
|
+
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, Oo as MNavigationDrawer, Mo as MNavigationRail, Ka as MNumberField, Po as MOverlay, fn as MPagination, Xo as MProgressBar, ts as MRadio, is as MRadioGroup, os as MRating, us as MRelative, ds as MResponsive, vs as MResult, Ps as MScheduler, Fs as MScrollable, Bs as MSection, Us as MSegmentedButton, tc as MSelect, sc as MSideSheet, lc as MSkeleton, hc as MSlider, bc as MSnackbar, wc as MSpacer, c as MSpinner, Tc as MSplitter, Hc as MSpotlightSearch, Uc as MStack, Qc as MStatCard, ml as MStepper, hl as MSticky, _l as MSubtitle, Zi as MSwitch, zl as MTable, Gl as MTabs, gl as MText, s as MTextField, hu as MTimePicker, ru as MTimeline, gu as MTitle, _u as MTooltip, xu as MTopAppBar, ku as MTour, Qu as MTransferList, cd as MTree, yd as MTreeTable, kd 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
8375
|
|
|
8319
8376
|
//# sourceMappingURL=m3ui.js.map
|