@m3ui-vue/m3ui-vue 0.2.2 → 0.2.4
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/MAppBar.vue.d.ts +1 -0
- package/dist/components/MAppLayout.vue.d.ts +1 -4
- package/dist/components/MAvatar.vue.d.ts +2 -1
- package/dist/components/MNavigationDrawer.vue.d.ts +1 -0
- package/dist/components/MTopAppBar.vue.d.ts +1 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +362 -351
- package/dist/m3ui.js.map +1 -1
- package/dist/styles/theme.css +4 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MAppBar.vue +2 -0
- package/src/components/MAppLayout.vue +4 -8
- package/src/components/MAvatar.vue +8 -5
- package/src/components/MNavigationDrawer.vue +7 -3
- package/src/components/MTopAppBar.vue +2 -1
- package/src/styles/theme.css +4 -3
package/dist/m3ui.js
CHANGED
|
@@ -359,7 +359,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
359
359
|
props: {
|
|
360
360
|
color: { default: "surface" },
|
|
361
361
|
elevated: { type: Boolean },
|
|
362
|
-
dense: { type: Boolean }
|
|
362
|
+
dense: { type: Boolean },
|
|
363
|
+
bordered: { type: Boolean }
|
|
363
364
|
},
|
|
364
365
|
setup(e) {
|
|
365
366
|
let t = {
|
|
@@ -371,6 +372,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
371
372
|
return (n, r) => (P(), b("div", { class: k(["flex w-full items-center gap-2 px-4 transition-shadow", [
|
|
372
373
|
t[e.color],
|
|
373
374
|
e.elevated ? "shadow-elevation-2" : "",
|
|
375
|
+
e.bordered ? "border-b border-outline-variant" : "",
|
|
374
376
|
e.dense ? "h-12" : "h-16"
|
|
375
377
|
]]) }, [
|
|
376
378
|
n.$slots.leading ? (P(), b("div", ke, [z(n.$slots, "leading")])) : y("", !0),
|
|
@@ -378,35 +380,31 @@ var Se = /* @__PURE__ */ T({
|
|
|
378
380
|
n.$slots.trailing ? (P(), b("div", je, [z(n.$slots, "trailing")])) : y("", !0)
|
|
379
381
|
], 2));
|
|
380
382
|
}
|
|
381
|
-
}), Ne = {
|
|
383
|
+
}), Ne = {
|
|
382
384
|
key: 0,
|
|
383
385
|
class: "shrink-0"
|
|
384
|
-
},
|
|
386
|
+
}, Pe = { class: "relative flex min-w-0 flex-1 flex-col" }, Fe = {
|
|
387
|
+
key: 0,
|
|
388
|
+
class: "shrink-0"
|
|
389
|
+
}, Ie = { class: "min-h-0 flex-1 overflow-y-auto" }, Le = {
|
|
385
390
|
key: 1,
|
|
386
391
|
class: "shrink-0"
|
|
387
|
-
},
|
|
392
|
+
}, Re = /* @__PURE__ */ T({
|
|
388
393
|
__name: "MAppLayout",
|
|
389
|
-
props: {
|
|
390
|
-
drawerWidth: { default: "auto" },
|
|
391
|
-
height: {}
|
|
392
|
-
},
|
|
394
|
+
props: { height: {} },
|
|
393
395
|
setup(e) {
|
|
394
396
|
let t = e, n = _(() => ({ height: t.height || "100dvh" }));
|
|
395
|
-
return (
|
|
397
|
+
return (e, t) => (P(), b("div", {
|
|
396
398
|
class: "flex w-full overflow-hidden bg-surface text-on-surface",
|
|
397
399
|
style: A(n.value)
|
|
398
|
-
}, [
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
t.$slots.header ? (P(), b("header", Pe, [z(t.$slots, "header")])) : y("", !0),
|
|
404
|
-
x("main", Fe, [z(t.$slots, "default")]),
|
|
405
|
-
t.$slots.footer ? (P(), b("footer", Ie, [z(t.$slots, "footer")])) : y("", !0),
|
|
406
|
-
z(t.$slots, "fab")
|
|
400
|
+
}, [e.$slots.drawer ? (P(), b("aside", Ne, [z(e.$slots, "drawer")])) : y("", !0), x("div", Pe, [
|
|
401
|
+
e.$slots.header ? (P(), b("header", Fe, [z(e.$slots, "header")])) : y("", !0),
|
|
402
|
+
x("main", Ie, [z(e.$slots, "default")]),
|
|
403
|
+
e.$slots.footer ? (P(), b("footer", Le, [z(e.$slots, "footer")])) : y("", !0),
|
|
404
|
+
z(e.$slots, "fab")
|
|
407
405
|
])], 4));
|
|
408
406
|
}
|
|
409
|
-
}),
|
|
407
|
+
}), ze = /* @__PURE__ */ T({
|
|
410
408
|
__name: "MAspectRatio",
|
|
411
409
|
props: { ratio: { default: "16/9" } },
|
|
412
410
|
setup(e) {
|
|
@@ -416,16 +414,20 @@ var Se = /* @__PURE__ */ T({
|
|
|
416
414
|
style: A(n.value)
|
|
417
415
|
}, [z(e.$slots, "default")], 4));
|
|
418
416
|
}
|
|
419
|
-
}),
|
|
417
|
+
}), Be = /* @__PURE__ */ T({
|
|
420
418
|
__name: "MAvatar",
|
|
421
419
|
props: {
|
|
422
420
|
name: {},
|
|
421
|
+
fallback: {},
|
|
423
422
|
size: { default: 40 }
|
|
424
423
|
},
|
|
425
424
|
setup(e) {
|
|
426
425
|
let t = e, n = _(() => {
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
if (t.name) {
|
|
427
|
+
let e = t.name.trim().split(/\s+/).filter(Boolean);
|
|
428
|
+
return ((e[0]?.[0] ?? "") + (e.length > 1 ? e[e.length - 1]?.[0] ?? "" : "")).toUpperCase() || t.fallback || "?";
|
|
429
|
+
}
|
|
430
|
+
return t.fallback || "?";
|
|
429
431
|
});
|
|
430
432
|
return (t, r) => (P(), b("div", {
|
|
431
433
|
class: "inline-flex shrink-0 items-center justify-center rounded-full bg-primary-container font-medium text-on-primary-container",
|
|
@@ -436,7 +438,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
436
438
|
})
|
|
437
439
|
}, H(n.value), 5));
|
|
438
440
|
}
|
|
439
|
-
}),
|
|
441
|
+
}), Ve = { class: "relative inline-flex" }, He = { key: 0 }, Ue = /* @__PURE__ */ T({
|
|
440
442
|
__name: "MBadge",
|
|
441
443
|
props: {
|
|
442
444
|
count: {},
|
|
@@ -481,22 +483,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
481
483
|
}
|
|
482
484
|
}[t.position];
|
|
483
485
|
});
|
|
484
|
-
return (t, o) => (P(), b("span",
|
|
486
|
+
return (t, o) => (P(), b("span", Ve, [z(t.$slots, "default"), n.value ? (P(), b("span", {
|
|
485
487
|
key: 0,
|
|
486
488
|
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]"]]),
|
|
487
489
|
style: A(a.value)
|
|
488
|
-
}, [e.dot ? y("", !0) : (P(), b("span",
|
|
490
|
+
}, [e.dot ? y("", !0) : (P(), b("span", He, H(r.value), 1))], 6)) : y("", !0)]));
|
|
489
491
|
}
|
|
490
|
-
}),
|
|
492
|
+
}), We = {
|
|
491
493
|
key: 0,
|
|
492
494
|
class: "fixed inset-0 z-200 flex flex-col justify-end"
|
|
493
|
-
},
|
|
495
|
+
}, Ge = {
|
|
494
496
|
key: 0,
|
|
495
497
|
class: "flex shrink-0 items-center justify-between px-6 pb-4"
|
|
496
|
-
},
|
|
498
|
+
}, Ke = { class: "text-title-large text-on-surface" }, qe = { class: "flex-1 overflow-y-auto px-6 pb-6" }, Je = {
|
|
497
499
|
key: 1,
|
|
498
500
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
499
|
-
},
|
|
501
|
+
}, Ye = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
500
502
|
__name: "MBottomSheet",
|
|
501
503
|
props: {
|
|
502
504
|
modelValue: { type: Boolean },
|
|
@@ -529,7 +531,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
529
531
|
leave: 280
|
|
530
532
|
}
|
|
531
533
|
}, {
|
|
532
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
534
|
+
default: Y(() => [e.modelValue ? (P(), b("div", We, [x("div", {
|
|
533
535
|
class: "bs-scrim absolute inset-0 bg-black/40",
|
|
534
536
|
onClick: r
|
|
535
537
|
}), x("div", {
|
|
@@ -542,7 +544,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
542
544
|
onPointermove: c,
|
|
543
545
|
onPointerup: l
|
|
544
546
|
}, [...n[0] ||= [x("div", { class: "h-1 w-8 rounded-full bg-on-surface-variant/40" }, null, -1)]], 32),
|
|
545
|
-
e.title ? (P(), b("div",
|
|
547
|
+
e.title ? (P(), b("div", Ge, [x("h2", Ke, H(e.title), 1), x("button", {
|
|
546
548
|
type: "button",
|
|
547
549
|
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",
|
|
548
550
|
onClick: r
|
|
@@ -550,13 +552,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
550
552
|
name: "close",
|
|
551
553
|
size: 20
|
|
552
554
|
})])])) : y("", !0),
|
|
553
|
-
x("div",
|
|
554
|
-
t.$slots.actions ? (P(), b("div",
|
|
555
|
+
x("div", qe, [z(t.$slots, "default", {}, void 0, !0)]),
|
|
556
|
+
t.$slots.actions ? (P(), b("div", Je, [z(t.$slots, "actions", {}, void 0, !0)])) : y("", !0)
|
|
555
557
|
], 6)])) : y("", !0)]),
|
|
556
558
|
_: 3
|
|
557
559
|
})]));
|
|
558
560
|
}
|
|
559
|
-
}), [["__scopeId", "data-v-5b1fb748"]]),
|
|
561
|
+
}), [["__scopeId", "data-v-5b1fb748"]]), Xe = /* @__PURE__ */ T({
|
|
560
562
|
__name: "MBox",
|
|
561
563
|
props: {
|
|
562
564
|
surface: {},
|
|
@@ -611,10 +613,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
611
613
|
_: 3
|
|
612
614
|
}, 8, ["class"]));
|
|
613
615
|
}
|
|
614
|
-
}),
|
|
616
|
+
}), Ze = {
|
|
615
617
|
"aria-label": "Breadcrumb",
|
|
616
618
|
class: "flex items-center gap-1 overflow-x-auto text-label-large"
|
|
617
|
-
},
|
|
619
|
+
}, Qe = ["onClick"], $e = /* @__PURE__ */ T({
|
|
618
620
|
__name: "MBreadcrumbs",
|
|
619
621
|
props: {
|
|
620
622
|
items: {},
|
|
@@ -622,7 +624,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
622
624
|
},
|
|
623
625
|
emits: ["select"],
|
|
624
626
|
setup(e) {
|
|
625
|
-
return (t, n) => (P(), b("nav",
|
|
627
|
+
return (t, n) => (P(), b("nav", Ze, [(P(!0), b(p, null, R(e.items, (n, r) => (P(), b(p, { key: r }, [r > 0 ? (P(), v(d, {
|
|
626
628
|
key: 0,
|
|
627
629
|
name: e.separator,
|
|
628
630
|
size: 18,
|
|
@@ -636,7 +638,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
636
638
|
key: 0,
|
|
637
639
|
name: n.icon,
|
|
638
640
|
size: 18
|
|
639
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 8,
|
|
641
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 8, Qe)) : (P(), b("span", {
|
|
640
642
|
key: 2,
|
|
641
643
|
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"])
|
|
642
644
|
}, [n.icon ? (P(), v(d, {
|
|
@@ -645,13 +647,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
645
647
|
size: 18
|
|
646
648
|
}, null, 8, ["name"])) : y("", !0), x("span", null, H(n.label), 1)], 2))], 64))), 128))]));
|
|
647
649
|
}
|
|
648
|
-
}),
|
|
650
|
+
}), et = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, tt = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, nt = { class: "flex items-center gap-1" }, rt = { class: "text-title-medium font-medium capitalize text-on-surface" }, it = { class: "grid grid-cols-7 border-b border-outline-variant bg-surface-container-high" }, at = { class: "grid grid-cols-7" }, ot = ["onClick"], st = {
|
|
649
651
|
key: 0,
|
|
650
652
|
class: "flex flex-col gap-0.5"
|
|
651
|
-
},
|
|
653
|
+
}, ct = ["onClick"], lt = { class: "truncate" }, ut = {
|
|
652
654
|
key: 0,
|
|
653
655
|
class: "px-1 text-label-small text-on-surface-variant"
|
|
654
|
-
},
|
|
656
|
+
}, dt = /* @__PURE__ */ T({
|
|
655
657
|
__name: "MCalendar",
|
|
656
658
|
props: {
|
|
657
659
|
events: { default: () => [] },
|
|
@@ -725,9 +727,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
725
727
|
error: "bg-error text-on-error",
|
|
726
728
|
success: "bg-success text-on-success"
|
|
727
729
|
};
|
|
728
|
-
return (n, r) => (P(), b("div",
|
|
729
|
-
x("div",
|
|
730
|
-
x("div",
|
|
730
|
+
return (n, r) => (P(), b("div", et, [
|
|
731
|
+
x("div", tt, [
|
|
732
|
+
x("div", nt, [w(e, {
|
|
731
733
|
icon: "chevron_left",
|
|
732
734
|
label: t.prevMonthLabel ?? U(a).previousMonth,
|
|
733
735
|
size: 36,
|
|
@@ -738,18 +740,18 @@ var Se = /* @__PURE__ */ T({
|
|
|
738
740
|
size: 36,
|
|
739
741
|
onClick: g
|
|
740
742
|
}, null, 8, ["label"])]),
|
|
741
|
-
x("h3",
|
|
743
|
+
x("h3", rt, H(l.value), 1),
|
|
742
744
|
x("button", {
|
|
743
745
|
type: "button",
|
|
744
746
|
class: "cursor-pointer rounded-full border border-outline px-3 py-1 text-label-medium text-on-surface transition-colors hover:bg-on-surface/8",
|
|
745
747
|
onClick: S
|
|
746
748
|
}, H(t.todayLabel ?? U(a).today), 1)
|
|
747
749
|
]),
|
|
748
|
-
x("div",
|
|
750
|
+
x("div", it, [(P(!0), b(p, null, R(U(c), (e) => (P(), b("div", {
|
|
749
751
|
key: e,
|
|
750
752
|
class: "py-2 text-center text-label-small font-medium uppercase text-on-surface-variant"
|
|
751
753
|
}, H(e), 1))), 128))]),
|
|
752
|
-
x("div",
|
|
754
|
+
x("div", at, [(P(!0), b(p, null, R(m.value, (e, t) => (P(), b("div", {
|
|
753
755
|
key: t,
|
|
754
756
|
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", [
|
|
755
757
|
e.current ? "bg-surface" : "bg-surface-container-lowest/50",
|
|
@@ -757,7 +759,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
757
759
|
t >= 35 ? "border-b-0" : ""
|
|
758
760
|
]]),
|
|
759
761
|
onClick: (t) => o("dateClick", e.iso)
|
|
760
|
-
}, [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",
|
|
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", st, [(P(!0), b(p, null, R(e.events.slice(0, 2), (e) => (P(), b("button", {
|
|
761
763
|
key: e.id,
|
|
762
764
|
type: "button",
|
|
763
765
|
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"]]),
|
|
@@ -766,22 +768,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
766
768
|
key: 0,
|
|
767
769
|
name: e.icon,
|
|
768
770
|
size: 12
|
|
769
|
-
}, null, 8, ["name"])) : y("", !0), x("span",
|
|
771
|
+
}, null, 8, ["name"])) : y("", !0), x("span", lt, H(e.title), 1)], 10, ct))), 128)), e.events.length > 2 ? (P(), b("span", ut, " +" + H(e.events.length - 2) + " " + H(U(a).more), 1)) : y("", !0)])) : y("", !0)], 10, ot))), 128))])
|
|
770
772
|
]));
|
|
771
773
|
}
|
|
772
|
-
}),
|
|
774
|
+
}), ft = ["src", "alt"], pt = {
|
|
773
775
|
key: 1,
|
|
774
776
|
class: "px-4 pt-4 pb-2"
|
|
775
|
-
},
|
|
777
|
+
}, mt = {
|
|
776
778
|
key: 2,
|
|
777
779
|
class: "px-4 pt-4 pb-2"
|
|
778
|
-
},
|
|
780
|
+
}, ht = { class: "text-title-large font-medium text-on-surface" }, gt = {
|
|
779
781
|
key: 0,
|
|
780
782
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
781
|
-
},
|
|
783
|
+
}, _t = {
|
|
782
784
|
key: 3,
|
|
783
785
|
class: "flex justify-end gap-2 px-4 pt-2 pb-4"
|
|
784
|
-
},
|
|
786
|
+
}, vt = /* @__PURE__ */ T({
|
|
785
787
|
__name: "MCard",
|
|
786
788
|
props: {
|
|
787
789
|
variant: { default: "elevated" },
|
|
@@ -821,22 +823,22 @@ var Se = /* @__PURE__ */ T({
|
|
|
821
823
|
src: e.image,
|
|
822
824
|
alt: e.imageAlt ?? "",
|
|
823
825
|
class: "h-full w-full object-cover"
|
|
824
|
-
}, null, 8,
|
|
825
|
-
t.$slots.header ? (P(), b("div",
|
|
826
|
+
}, null, 8, ft)) : z(t.$slots, "media", { key: 1 })], 2)) : y("", !0),
|
|
827
|
+
t.$slots.header ? (P(), b("div", pt, [z(t.$slots, "header")])) : e.title ? (P(), b("div", mt, [x("h3", ht, H(e.title), 1), e.subtitle ? (P(), b("p", gt, H(e.subtitle), 1)) : y("", !0)])) : y("", !0),
|
|
826
828
|
z(t.$slots, "default"),
|
|
827
|
-
t.$slots.actions ? (P(), b("div",
|
|
829
|
+
t.$slots.actions ? (P(), b("div", _t, [z(t.$slots, "actions")])) : y("", !0)
|
|
828
830
|
], 6));
|
|
829
831
|
}
|
|
830
|
-
}),
|
|
832
|
+
}), yt = ["src", "alt"], bt = {
|
|
831
833
|
key: 0,
|
|
832
834
|
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"
|
|
833
|
-
},
|
|
835
|
+
}, xt = {
|
|
834
836
|
key: 0,
|
|
835
837
|
class: "text-title-large font-medium text-white"
|
|
836
|
-
},
|
|
838
|
+
}, St = {
|
|
837
839
|
key: 1,
|
|
838
840
|
class: "mt-1 text-body-medium text-white/80"
|
|
839
|
-
},
|
|
841
|
+
}, Ct = ["onClick"], wt = /* @__PURE__ */ T({
|
|
840
842
|
__name: "MCarousel",
|
|
841
843
|
props: {
|
|
842
844
|
items: {},
|
|
@@ -918,7 +920,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
918
920
|
src: e.src,
|
|
919
921
|
alt: e.alt ?? e.title ?? "",
|
|
920
922
|
class: "h-full w-full object-cover"
|
|
921
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, yt), e.title || e.subtitle ? (P(), b("div", bt, [e.title ? (P(), b("h3", xt, H(e.title), 1)) : y("", !0), e.subtitle ? (P(), b("p", St, H(e.subtitle), 1)) : y("", !0)])) : y("", !0)])), [[K, t === a.value]])), 128))]),
|
|
922
924
|
_: 1
|
|
923
925
|
}, 8, ["name"]),
|
|
924
926
|
e.showArrows && u.value > 1 ? (P(), b(p, { key: 0 }, [x("button", {
|
|
@@ -944,10 +946,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
944
946
|
type: "button",
|
|
945
947
|
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"]),
|
|
946
948
|
onClick: (e) => m(t)
|
|
947
|
-
}, null, 10,
|
|
949
|
+
}, null, 10, Ct))), 128))], 2)) : y("", !0)
|
|
948
950
|
], 38));
|
|
949
951
|
}
|
|
950
|
-
}),
|
|
952
|
+
}), Tt = /* @__PURE__ */ T({
|
|
951
953
|
__name: "MCenter",
|
|
952
954
|
props: { inline: {
|
|
953
955
|
type: Boolean,
|
|
@@ -957,7 +959,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
957
959
|
let t = e, n = _(() => [t.inline ? "inline-flex" : "flex", "items-center justify-center"]);
|
|
958
960
|
return (e, t) => (P(), b("div", { class: k(n.value) }, [z(e.$slots, "default")], 2));
|
|
959
961
|
}
|
|
960
|
-
}),
|
|
962
|
+
}), Et = ["checked", "disabled"], Dt = {
|
|
961
963
|
key: 0,
|
|
962
964
|
class: "text-body-large text-on-surface"
|
|
963
965
|
}, Q = /* @__PURE__ */ T({
|
|
@@ -983,13 +985,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
983
985
|
checked: e.modelValue,
|
|
984
986
|
disabled: e.disabled,
|
|
985
987
|
onChange: r[0] ||= (t) => n("update:modelValue", !e.modelValue)
|
|
986
|
-
}, null, 40,
|
|
988
|
+
}, null, 40, Et), w(d, {
|
|
987
989
|
name: e.indeterminate ? "remove" : "check",
|
|
988
990
|
size: 14,
|
|
989
991
|
class: k(["transition-[opacity,transform] duration-150", e.modelValue || e.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
|
|
990
|
-
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span",
|
|
992
|
+
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span", Dt, [z(t.$slots, "default", {}, () => [C(H(e.label), 1)])])) : y("", !0)], 2));
|
|
991
993
|
}
|
|
992
|
-
}),
|
|
994
|
+
}), Ot = ["disabled"], kt = /* @__PURE__ */ T({
|
|
993
995
|
__name: "MChip",
|
|
994
996
|
props: {
|
|
995
997
|
tone: { default: "neutral" },
|
|
@@ -1066,7 +1068,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1066
1068
|
}, [w(d, {
|
|
1067
1069
|
name: "close",
|
|
1068
1070
|
size: 16
|
|
1069
|
-
})], 8,
|
|
1071
|
+
})], 8, Ot)) : y("", !0)
|
|
1070
1072
|
]),
|
|
1071
1073
|
_: 3
|
|
1072
1074
|
}, 8, [
|
|
@@ -1076,13 +1078,13 @@ var Se = /* @__PURE__ */ T({
|
|
|
1076
1078
|
"style"
|
|
1077
1079
|
]));
|
|
1078
1080
|
}
|
|
1079
|
-
}),
|
|
1081
|
+
}), At = { class: "flex flex-col gap-1" }, jt = { class: "flex-1 font-mono text-on-surface" }, Mt = {
|
|
1080
1082
|
key: 0,
|
|
1081
1083
|
class: "px-4 text-body-small text-error"
|
|
1082
|
-
},
|
|
1084
|
+
}, Nt = {
|
|
1083
1085
|
key: 1,
|
|
1084
1086
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
1085
|
-
},
|
|
1087
|
+
}, Pt = { class: "mb-3" }, Ft = ["value"], It = { class: "mb-3 flex items-center gap-3" }, Lt = ["value"], Rt = { class: "flex flex-wrap gap-1.5" }, zt = ["onClick"], Bt = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1086
1088
|
__name: "MColorPicker",
|
|
1087
1089
|
props: {
|
|
1088
1090
|
modelValue: {},
|
|
@@ -1195,7 +1197,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1195
1197
|
e ? (te(), setTimeout(() => document.addEventListener("mousedown", K), 0)) : document.removeEventListener("mousedown", K);
|
|
1196
1198
|
}), M(() => window.addEventListener("scroll", J, !0)), N(() => {
|
|
1197
1199
|
window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", K);
|
|
1198
|
-
}), (t, n) => (P(), b("div",
|
|
1200
|
+
}), (t, n) => (P(), b("div", At, [
|
|
1199
1201
|
x("div", {
|
|
1200
1202
|
ref_key: "triggerEl",
|
|
1201
1203
|
ref: o,
|
|
@@ -1210,7 +1212,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1210
1212
|
class: "h-6 w-6 shrink-0 rounded-full border border-outline-variant",
|
|
1211
1213
|
style: A({ backgroundColor: e.modelValue })
|
|
1212
1214
|
}, null, 4),
|
|
1213
|
-
x("span",
|
|
1215
|
+
x("span", jt, H(e.modelValue), 1),
|
|
1214
1216
|
w(d, {
|
|
1215
1217
|
name: "palette",
|
|
1216
1218
|
size: 20,
|
|
@@ -1220,7 +1222,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1220
1222
|
key: 0,
|
|
1221
1223
|
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"])
|
|
1222
1224
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
1223
|
-
e.error ? (P(), b("p",
|
|
1225
|
+
e.error ? (P(), b("p", Mt, H(e.error), 1)) : e.hint ? (P(), b("p", Nt, H(e.hint), 1)) : y("", !0),
|
|
1224
1226
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
1225
1227
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
1226
1228
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -1250,15 +1252,15 @@ var Se = /* @__PURE__ */ T({
|
|
|
1250
1252
|
backgroundColor: j.value
|
|
1251
1253
|
})
|
|
1252
1254
|
}, null, 4)], 36),
|
|
1253
|
-
x("div",
|
|
1255
|
+
x("div", Pt, [x("input", {
|
|
1254
1256
|
type: "range",
|
|
1255
1257
|
min: "0",
|
|
1256
1258
|
max: "360",
|
|
1257
1259
|
value: g.value,
|
|
1258
1260
|
class: "hue-slider h-3 w-full cursor-pointer appearance-none rounded-full outline-none",
|
|
1259
1261
|
onInput: W
|
|
1260
|
-
}, null, 40,
|
|
1261
|
-
x("div",
|
|
1262
|
+
}, null, 40, Ft)]),
|
|
1263
|
+
x("div", It, [x("span", {
|
|
1262
1264
|
class: "h-9 w-9 shrink-0 rounded-full border border-outline-variant",
|
|
1263
1265
|
style: A({ backgroundColor: j.value })
|
|
1264
1266
|
}, null, 4), x("input", {
|
|
@@ -1267,8 +1269,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
1267
1269
|
maxlength: "7",
|
|
1268
1270
|
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",
|
|
1269
1271
|
onInput: ee
|
|
1270
|
-
}, null, 40,
|
|
1271
|
-
x("div",
|
|
1272
|
+
}, null, 40, Lt)]),
|
|
1273
|
+
x("div", Rt, [(P(!0), b(p, null, R(e.presets, (t) => (P(), b("button", {
|
|
1272
1274
|
key: t,
|
|
1273
1275
|
type: "button",
|
|
1274
1276
|
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"]),
|
|
@@ -1279,26 +1281,26 @@ var Se = /* @__PURE__ */ T({
|
|
|
1279
1281
|
name: "check",
|
|
1280
1282
|
size: 14,
|
|
1281
1283
|
class: "text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)]"
|
|
1282
|
-
})) : y("", !0)], 14,
|
|
1284
|
+
})) : y("", !0)], 14, zt))), 128))])
|
|
1283
1285
|
], 4)) : y("", !0)]),
|
|
1284
1286
|
_: 1
|
|
1285
1287
|
})]))
|
|
1286
1288
|
]));
|
|
1287
1289
|
}
|
|
1288
|
-
}), [["__scopeId", "data-v-872ab758"]]),
|
|
1290
|
+
}), [["__scopeId", "data-v-872ab758"]]), Vt = { class: "cmd-box flex w-full max-w-lg flex-col overflow-hidden rounded-xl bg-surface-container-high shadow-elevation-3" }, Ht = { class: "flex items-center gap-3 border-b border-outline-variant px-4" }, Ut = ["placeholder"], Wt = { class: "max-h-80 overflow-y-auto py-2" }, Gt = {
|
|
1289
1291
|
key: 0,
|
|
1290
1292
|
class: "px-4 pt-3 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
1291
|
-
},
|
|
1293
|
+
}, Kt = [
|
|
1292
1294
|
"data-cmd-active",
|
|
1293
1295
|
"onClick",
|
|
1294
1296
|
"onPointerenter"
|
|
1295
|
-
],
|
|
1297
|
+
], qt = { class: "flex-1 truncate text-body-medium" }, Jt = {
|
|
1296
1298
|
key: 1,
|
|
1297
1299
|
class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant"
|
|
1298
|
-
},
|
|
1300
|
+
}, Yt = {
|
|
1299
1301
|
key: 1,
|
|
1300
1302
|
class: "px-4 py-6 text-center text-body-medium text-on-surface-variant"
|
|
1301
|
-
},
|
|
1303
|
+
}, Xt = { class: "flex items-center gap-4 border-t border-outline-variant px-4 py-2" }, Zt = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Qt = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, $t = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, en = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1302
1304
|
__name: "MCommandPalette",
|
|
1303
1305
|
props: {
|
|
1304
1306
|
modelValue: { type: Boolean },
|
|
@@ -1353,8 +1355,8 @@ var Se = /* @__PURE__ */ T({
|
|
|
1353
1355
|
key: 0,
|
|
1354
1356
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[15vh]",
|
|
1355
1357
|
onClick: Z(g, ["self"])
|
|
1356
|
-
}, [x("div",
|
|
1357
|
-
x("div",
|
|
1358
|
+
}, [x("div", Vt, [
|
|
1359
|
+
x("div", Ht, [
|
|
1358
1360
|
w(d, {
|
|
1359
1361
|
name: "search",
|
|
1360
1362
|
size: 20,
|
|
@@ -1368,10 +1370,10 @@ var Se = /* @__PURE__ */ T({
|
|
|
1368
1370
|
placeholder: e.placeholder ?? U(r).searchCommand,
|
|
1369
1371
|
class: "h-12 flex-1 bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
1370
1372
|
onKeydown: T
|
|
1371
|
-
}, null, 40,
|
|
1373
|
+
}, null, 40, Ut), [[te, o.value]]),
|
|
1372
1374
|
n[1] ||= x("kbd", { class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant" }, " ESC ", -1)
|
|
1373
1375
|
]),
|
|
1374
|
-
x("div",
|
|
1376
|
+
x("div", Wt, [l.value.length ? (P(!0), b(p, { key: 0 }, R(u.value, ([e, t]) => (P(), b(p, { key: e }, [e ? (P(), b("p", Gt, H(e), 1)) : y("", !0), (P(!0), b(p, null, R(t, (e, t) => (P(), b("button", {
|
|
1375
1377
|
key: e.id,
|
|
1376
1378
|
type: "button",
|
|
1377
1379
|
"data-cmd-active": l.value.indexOf(e) === s.value || void 0,
|
|
@@ -1385,19 +1387,19 @@ var Se = /* @__PURE__ */ T({
|
|
|
1385
1387
|
size: 20,
|
|
1386
1388
|
class: "shrink-0 opacity-70"
|
|
1387
1389
|
}, null, 8, ["name"])) : y("", !0),
|
|
1388
|
-
x("span",
|
|
1389
|
-
e.shortcut ? (P(), b("kbd",
|
|
1390
|
-
], 42,
|
|
1391
|
-
x("div",
|
|
1392
|
-
x("span",
|
|
1393
|
-
x("span",
|
|
1394
|
-
x("span",
|
|
1390
|
+
x("span", qt, H(e.label), 1),
|
|
1391
|
+
e.shortcut ? (P(), b("kbd", Jt, H(e.shortcut), 1)) : y("", !0)
|
|
1392
|
+
], 42, Kt))), 128))], 64))), 128)) : (P(), b("p", Yt, H(e.noResultsText ?? U(r).noResults), 1))]),
|
|
1393
|
+
x("div", Xt, [
|
|
1394
|
+
x("span", Zt, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
1395
|
+
x("span", Qt, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.selectHint ?? U(r).selectHint), 1)]),
|
|
1396
|
+
x("span", $t, [n[4] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), C(" " + H(e.closeHint ?? U(r).closeHint), 1)])
|
|
1395
1397
|
])
|
|
1396
1398
|
])])) : y("", !0)]),
|
|
1397
1399
|
_: 1
|
|
1398
1400
|
})]));
|
|
1399
1401
|
}
|
|
1400
|
-
}), [["__scopeId", "data-v-4d6cca63"]]),
|
|
1402
|
+
}), [["__scopeId", "data-v-4d6cca63"]]), tn = { class: "text-body-medium text-on-surface-variant" }, nn = /* @__PURE__ */ T({
|
|
1401
1403
|
__name: "MConfirmDialog",
|
|
1402
1404
|
props: {
|
|
1403
1405
|
modelValue: { type: Boolean },
|
|
@@ -1438,11 +1440,11 @@ var Se = /* @__PURE__ */ T({
|
|
|
1438
1440
|
default: Y(() => [C(H(e.confirmLabel ?? U(i).confirm), 1)]),
|
|
1439
1441
|
_: 1
|
|
1440
1442
|
}, 8, ["color", "loading"])]),
|
|
1441
|
-
default: Y(() => [x("p",
|
|
1443
|
+
default: Y(() => [x("p", tn, H(e.message), 1)]),
|
|
1442
1444
|
_: 1
|
|
1443
1445
|
}, 8, ["model-value", "title"]));
|
|
1444
1446
|
}
|
|
1445
|
-
}),
|
|
1447
|
+
}), rn = /* @__PURE__ */ T({
|
|
1446
1448
|
__name: "MContainer",
|
|
1447
1449
|
props: {
|
|
1448
1450
|
maxWidth: { default: "lg" },
|
|
@@ -1476,16 +1478,16 @@ var Se = /* @__PURE__ */ T({
|
|
|
1476
1478
|
]);
|
|
1477
1479
|
return (e, t) => (P(), b("div", { class: k(r.value) }, [z(e.$slots, "default")], 2));
|
|
1478
1480
|
}
|
|
1479
|
-
}),
|
|
1481
|
+
}), an = { class: "overflow-hidden rounded-sm py-1" }, on = {
|
|
1480
1482
|
key: 0,
|
|
1481
1483
|
class: "my-1 border-outline-variant"
|
|
1482
|
-
},
|
|
1484
|
+
}, sn = {
|
|
1483
1485
|
key: 1,
|
|
1484
1486
|
class: "w-[18px] shrink-0"
|
|
1485
|
-
},
|
|
1487
|
+
}, cn = { class: "flex-1" }, ln = {
|
|
1486
1488
|
key: 2,
|
|
1487
1489
|
class: "text-label-small text-on-surface-variant"
|
|
1488
|
-
},
|
|
1490
|
+
}, un = /* @__PURE__ */ T({
|
|
1489
1491
|
__name: "_MContextMenuPanel",
|
|
1490
1492
|
props: {
|
|
1491
1493
|
items: {},
|
|
@@ -1534,7 +1536,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1534
1536
|
top: `${o.value}px`
|
|
1535
1537
|
}),
|
|
1536
1538
|
onMouseleave: f
|
|
1537
|
-
}, [x("div",
|
|
1539
|
+
}, [x("div", an, [(P(!0), b(p, null, R(e.items, (e, t) => (P(), b(p, { key: t }, [e.divider ? (P(), b("hr", on)) : (P(), v(V(e.to && !e.disabled ? "RouterLink" : "div"), {
|
|
1538
1540
|
key: 1,
|
|
1539
1541
|
to: e.to && !e.disabled ? e.to : void 0,
|
|
1540
1542
|
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" : ""]]),
|
|
@@ -1547,9 +1549,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
1547
1549
|
name: e.icon,
|
|
1548
1550
|
size: 18,
|
|
1549
1551
|
class: k(["shrink-0", e.danger ? "text-error" : "text-on-surface-variant"])
|
|
1550
|
-
}, null, 8, ["name", "class"])) : (P(), b("span",
|
|
1551
|
-
x("span",
|
|
1552
|
-
e.shortcut ? (P(), b("span",
|
|
1552
|
+
}, null, 8, ["name", "class"])) : (P(), b("span", sn)),
|
|
1553
|
+
x("span", cn, H(e.label), 1),
|
|
1554
|
+
e.shortcut ? (P(), b("span", ln, H(e.shortcut), 1)) : y("", !0),
|
|
1553
1555
|
e.children?.length ? (P(), v(d, {
|
|
1554
1556
|
key: 3,
|
|
1555
1557
|
name: "chevron_right",
|
|
@@ -1563,7 +1565,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1563
1565
|
"class",
|
|
1564
1566
|
"onMouseenter",
|
|
1565
1567
|
"onClick"
|
|
1566
|
-
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(
|
|
1568
|
+
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(un, {
|
|
1567
1569
|
key: s.value,
|
|
1568
1570
|
items: e.items[s.value].children,
|
|
1569
1571
|
x: c.value.x,
|
|
@@ -1575,7 +1577,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1575
1577
|
"y"
|
|
1576
1578
|
])) : y("", !0)], 64));
|
|
1577
1579
|
}
|
|
1578
|
-
}),
|
|
1580
|
+
}), dn = /* @__PURE__ */ T({
|
|
1579
1581
|
__name: "MContextMenu",
|
|
1580
1582
|
props: { items: {} },
|
|
1581
1583
|
setup(e, { expose: t }) {
|
|
@@ -1612,7 +1614,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1612
1614
|
class: "fixed inset-0 z-200",
|
|
1613
1615
|
onMousedown: Z(o, ["self"]),
|
|
1614
1616
|
onContextmenu: a[0] ||= Z(() => {}, ["prevent"])
|
|
1615
|
-
}, [w(
|
|
1617
|
+
}, [w(un, {
|
|
1616
1618
|
items: e.items,
|
|
1617
1619
|
x: r.value.x,
|
|
1618
1620
|
y: r.value.y,
|
|
@@ -1625,7 +1627,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1625
1627
|
_: 1
|
|
1626
1628
|
})]))], 64));
|
|
1627
1629
|
}
|
|
1628
|
-
}),
|
|
1630
|
+
}), fn = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, pn = { class: "flex items-center gap-2" }, mn = /* @__PURE__ */ T({
|
|
1629
1631
|
__name: "MPagination",
|
|
1630
1632
|
props: {
|
|
1631
1633
|
page: {},
|
|
@@ -1635,7 +1637,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1635
1637
|
emits: ["update:page"],
|
|
1636
1638
|
setup(t, { emit: n }) {
|
|
1637
1639
|
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}`);
|
|
1638
|
-
return (n, r) => (P(), b("div",
|
|
1640
|
+
return (n, r) => (P(), b("div", fn, [x("span", null, H(o.value), 1), x("div", pn, [
|
|
1639
1641
|
x("span", null, "Página " + H(t.page) + " de " + H(a.value), 1),
|
|
1640
1642
|
w(e, {
|
|
1641
1643
|
icon: "chevron_left",
|
|
@@ -1651,25 +1653,25 @@ var Se = /* @__PURE__ */ T({
|
|
|
1651
1653
|
}, null, 8, ["disabled"])
|
|
1652
1654
|
])]));
|
|
1653
1655
|
}
|
|
1654
|
-
}),
|
|
1656
|
+
}), hn = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, gn = {
|
|
1655
1657
|
key: 0,
|
|
1656
1658
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
1657
|
-
},
|
|
1659
|
+
}, _n = {
|
|
1658
1660
|
key: 0,
|
|
1659
1661
|
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"
|
|
1660
|
-
},
|
|
1662
|
+
}, vn = ["placeholder"], yn = {
|
|
1661
1663
|
key: 0,
|
|
1662
1664
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
1663
|
-
},
|
|
1665
|
+
}, bn = {
|
|
1664
1666
|
key: 1,
|
|
1665
1667
|
class: "relative"
|
|
1666
|
-
},
|
|
1668
|
+
}, xn = {
|
|
1667
1669
|
key: 0,
|
|
1668
1670
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
1669
|
-
},
|
|
1671
|
+
}, Sn = { class: "text-body-small text-on-surface" }, Cn = { class: "overflow-x-auto" }, wn = { class: "w-full border-collapse" }, Tn = { class: "bg-surface-container-high" }, En = ["onClick"], Dn = { class: "inline-flex items-center gap-1" }, On = {
|
|
1670
1672
|
key: 0,
|
|
1671
1673
|
class: "inline-flex"
|
|
1672
|
-
},
|
|
1674
|
+
}, kn = ["onPointerdown"], An = { key: 1 }, jn = ["colspan"], Mn = { class: "text-body-medium text-on-surface-variant" }, Nn = ["onClick"], Pn = ["onClick"], Fn = { key: 0 }, In = ["colspan"], Ln = { class: "dt-expand-body" }, Rn = { class: "px-6 py-4" }, zn = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Bn = { class: "text-label-small text-on-surface-variant" }, Vn = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1673
1675
|
__name: "MDataTable",
|
|
1674
1676
|
props: {
|
|
1675
1677
|
columns: {},
|
|
@@ -1883,9 +1885,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
1883
1885
|
minWidth: e.minWidth
|
|
1884
1886
|
};
|
|
1885
1887
|
}
|
|
1886
|
-
return (n, r) => (P(), b("div",
|
|
1887
|
-
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div",
|
|
1888
|
-
t.searchable ? (P(), b("div",
|
|
1888
|
+
return (n, r) => (P(), b("div", hn, [
|
|
1889
|
+
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div", gn, [
|
|
1890
|
+
t.searchable ? (P(), b("div", _n, [
|
|
1889
1891
|
w(d, {
|
|
1890
1892
|
name: "search",
|
|
1891
1893
|
size: 16,
|
|
@@ -1896,7 +1898,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1896
1898
|
type: "text",
|
|
1897
1899
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
1898
1900
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
1899
|
-
}, null, 8,
|
|
1901
|
+
}, null, 8, vn), [[te, f.value]]),
|
|
1900
1902
|
f.value ? (P(), b("button", {
|
|
1901
1903
|
key: 0,
|
|
1902
1904
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -1913,21 +1915,21 @@ var Se = /* @__PURE__ */ T({
|
|
|
1913
1915
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
1914
1916
|
"leave-to-class": "opacity-0 scale-90"
|
|
1915
1917
|
}, {
|
|
1916
|
-
default: Y(() => [t.selectable && K.value.length > 0 ? (P(), b("span",
|
|
1918
|
+
default: Y(() => [t.selectable && K.value.length > 0 ? (P(), b("span", yn, H(K.value.length) + " " + H(t.selectedText ?? U(i).selectedCount) + H(K.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
1917
1919
|
_: 1
|
|
1918
1920
|
}),
|
|
1919
|
-
t.columnToggle ? (P(), b("div",
|
|
1921
|
+
t.columnToggle ? (P(), b("div", bn, [w(e, {
|
|
1920
1922
|
icon: "view_column",
|
|
1921
1923
|
label: t.columnsLabel ?? U(i).columns,
|
|
1922
1924
|
size: 36,
|
|
1923
1925
|
onClick: r[2] ||= (e) => O.value = !O.value
|
|
1924
|
-
}, null, 8, ["label"]), O.value ? (P(), b("div",
|
|
1926
|
+
}, null, 8, ["label"]), O.value ? (P(), b("div", xn, [(P(!0), b(p, null, R(t.columns, (e) => (P(), b("label", {
|
|
1925
1927
|
key: e.key,
|
|
1926
1928
|
class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
|
|
1927
1929
|
}, [w(Q, {
|
|
1928
1930
|
"model-value": !E.value.has(e.key),
|
|
1929
1931
|
"onUpdate:modelValue": (t) => E.value.has(e.key) ? E.value.delete(e.key) : E.value.add(e.key)
|
|
1930
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span",
|
|
1932
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span", Sn, H(e.label), 1)]))), 128))])) : y("", !0)])) : y("", !0),
|
|
1931
1933
|
t.exportable ? (P(), v(e, {
|
|
1932
1934
|
key: 2,
|
|
1933
1935
|
icon: "download",
|
|
@@ -1936,7 +1938,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1936
1938
|
onClick: ve
|
|
1937
1939
|
}, null, 8, ["label"])) : y("", !0)
|
|
1938
1940
|
])) : y("", !0),
|
|
1939
|
-
x("div",
|
|
1941
|
+
x("div", Cn, [x("table", wn, [x("thead", { class: k(t.stickyHeader ? "sticky top-0 z-1" : "") }, [x("tr", Tn, [
|
|
1940
1942
|
u.value ? (P(), b("th", {
|
|
1941
1943
|
key: 0,
|
|
1942
1944
|
class: k(["w-10 px-2", t.dense ? "py-2" : "py-3"])
|
|
@@ -1959,7 +1961,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1959
1961
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
1960
1962
|
]),
|
|
1961
1963
|
onClick: (t) => e.sortable ? N(e.key) : void 0
|
|
1962
|
-
}, [x("span",
|
|
1964
|
+
}, [x("span", Dn, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", On, [m.value === e.key && g.value === "asc" ? (P(), v(d, {
|
|
1963
1965
|
key: 0,
|
|
1964
1966
|
name: "arrow_upward",
|
|
1965
1967
|
size: 14,
|
|
@@ -1978,7 +1980,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
1978
1980
|
key: 0,
|
|
1979
1981
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
1980
1982
|
onPointerdown: (t) => he(t, e)
|
|
1981
|
-
}, null, 40,
|
|
1983
|
+
}, null, 40, kn)) : y("", !0)], 14, En))), 128)),
|
|
1982
1984
|
l.value ? (P(), b("th", {
|
|
1983
1985
|
key: 2,
|
|
1984
1986
|
class: k(["w-1 px-4", t.dense ? "py-2" : "py-3"])
|
|
@@ -2006,14 +2008,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2006
2008
|
key: 2,
|
|
2007
2009
|
class: k(t.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
2008
2010
|
}, [...r[7] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : y("", !0)
|
|
2009
|
-
]))), 128)) : V.value.length === 0 ? (P(), b("tr",
|
|
2011
|
+
]))), 128)) : V.value.length === 0 ? (P(), b("tr", An, [x("td", {
|
|
2010
2012
|
colspan: j.value.length + le.value,
|
|
2011
2013
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
2012
2014
|
}, [z(n.$slots, "empty", {}, () => [w(d, {
|
|
2013
2015
|
name: "search_off",
|
|
2014
2016
|
size: 36,
|
|
2015
2017
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
2016
|
-
}), x("p",
|
|
2018
|
+
}), x("p", Mn, H(t.emptyText ?? U(i).noResults), 1)], !0)], 8, jn)])) : (P(!0), b(p, { key: 2 }, R(V.value, (a) => (P(), b(p, { key: J(a) }, [x("tr", {
|
|
2017
2019
|
class: k([
|
|
2018
2020
|
"border-t border-outline-variant transition-colors duration-100",
|
|
2019
2021
|
"hover:bg-on-surface/4",
|
|
@@ -2045,7 +2047,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2045
2047
|
}, [w(Q, {
|
|
2046
2048
|
"model-value": X(a),
|
|
2047
2049
|
"onUpdate:modelValue": (e) => re(a)
|
|
2048
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
2050
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, Pn)) : y("", !0),
|
|
2049
2051
|
(P(!0), b(p, null, R(j.value, (e) => (P(), b("td", {
|
|
2050
2052
|
key: e.key,
|
|
2051
2053
|
class: k([
|
|
@@ -2063,11 +2065,11 @@ var Se = /* @__PURE__ */ T({
|
|
|
2063
2065
|
class: k(["text-right", t.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
2064
2066
|
onClick: r[4] ||= Z(() => {}, ["stop"])
|
|
2065
2067
|
}, [z(n.$slots, "row-actions", { row: a }, void 0, !0)], 2)) : y("", !0)
|
|
2066
|
-
], 10,
|
|
2068
|
+
], 10, Nn), u.value ? (P(), b("tr", Fn, [x("td", {
|
|
2067
2069
|
colspan: j.value.length + le.value,
|
|
2068
2070
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest p-0"
|
|
2069
|
-
}, [x("div", { class: k(["dt-expand-grid", ce(a) ? "dt-expand-open" : ""]) }, [x("div",
|
|
2070
|
-
x("div",
|
|
2071
|
+
}, [x("div", { class: k(["dt-expand-grid", ce(a) ? "dt-expand-open" : ""]) }, [x("div", Ln, [x("div", Rn, [z(n.$slots, "row-expand", { row: a }, void 0, !0)])])], 2)], 8, In)])) : y("", !0)], 64))), 128))])])]),
|
|
2072
|
+
x("div", zn, [x("span", Bn, H(B.value) + " " + H(t.recordsText ?? U(i).recordCount) + H(B.value === 1 ? "" : "s"), 1), w(mn, {
|
|
2071
2073
|
page: F.value,
|
|
2072
2074
|
"per-page": t.perPage,
|
|
2073
2075
|
total: B.value,
|
|
@@ -2079,19 +2081,19 @@ var Se = /* @__PURE__ */ T({
|
|
|
2079
2081
|
])])
|
|
2080
2082
|
]));
|
|
2081
2083
|
}
|
|
2082
|
-
}), [["__scopeId", "data-v-857139c7"]]),
|
|
2084
|
+
}), [["__scopeId", "data-v-857139c7"]]), Hn = { class: "flex flex-col gap-1" }, Un = {
|
|
2083
2085
|
key: 0,
|
|
2084
2086
|
class: "flex-1 text-on-surface"
|
|
2085
|
-
},
|
|
2087
|
+
}, Wn = {
|
|
2086
2088
|
key: 1,
|
|
2087
2089
|
class: "flex-1 text-on-surface-variant"
|
|
2088
|
-
},
|
|
2090
|
+
}, Gn = {
|
|
2089
2091
|
key: 0,
|
|
2090
2092
|
class: "px-4 text-body-small text-error"
|
|
2091
|
-
},
|
|
2093
|
+
}, Kn = {
|
|
2092
2094
|
key: 1,
|
|
2093
2095
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2094
|
-
},
|
|
2096
|
+
}, qn = { class: "mb-3 flex items-center justify-between" }, Jn = { class: "text-title-small font-medium capitalize text-on-surface" }, Yn = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Xn = { class: "grid grid-cols-7 gap-0.5" }, Zn = ["disabled", "onClick"], Qn = /* @__PURE__ */ T({
|
|
2095
2097
|
__name: "MDatePicker",
|
|
2096
2098
|
props: {
|
|
2097
2099
|
modelValue: {},
|
|
@@ -2213,7 +2215,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2213
2215
|
e ? (W(), setTimeout(() => document.addEventListener("mousedown", G), 0)) : document.removeEventListener("mousedown", G);
|
|
2214
2216
|
}), M(() => window.addEventListener("scroll", ee, !0)), N(() => {
|
|
2215
2217
|
window.removeEventListener("scroll", ee, !0), document.removeEventListener("mousedown", G);
|
|
2216
|
-
}), (t, n) => (P(), b("div",
|
|
2218
|
+
}), (t, n) => (P(), b("div", Hn, [
|
|
2217
2219
|
x("div", {
|
|
2218
2220
|
ref_key: "triggerEl",
|
|
2219
2221
|
ref: l,
|
|
@@ -2229,7 +2231,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2229
2231
|
size: 20,
|
|
2230
2232
|
class: "shrink-0 text-on-surface-variant"
|
|
2231
2233
|
}),
|
|
2232
|
-
V.value ? (P(), b("span",
|
|
2234
|
+
V.value ? (P(), b("span", Un, H(V.value), 1)) : (P(), b("span", Wn, H(r.placeholder || r.label || U(o).selectDate), 1)),
|
|
2233
2235
|
r.modelValue ? (P(), v(d, {
|
|
2234
2236
|
key: 2,
|
|
2235
2237
|
name: "close",
|
|
@@ -2241,7 +2243,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2241
2243
|
key: 0,
|
|
2242
2244
|
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"])
|
|
2243
2245
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2244
|
-
r.error ? (P(), b("p",
|
|
2246
|
+
r.error ? (P(), b("p", Gn, H(r.error), 1)) : r.hint ? (P(), b("p", Kn, H(r.hint), 1)) : y("", !0),
|
|
2245
2247
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2246
2248
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2247
2249
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2255,14 +2257,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2255
2257
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2256
2258
|
style: A(f.value)
|
|
2257
2259
|
}, [
|
|
2258
|
-
x("div",
|
|
2260
|
+
x("div", qn, [
|
|
2259
2261
|
w(e, {
|
|
2260
2262
|
icon: "chevron_left",
|
|
2261
2263
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2262
2264
|
size: 36,
|
|
2263
2265
|
onClick: F
|
|
2264
2266
|
}, null, 8, ["label"]),
|
|
2265
|
-
x("span",
|
|
2267
|
+
x("span", Jn, H(T.value), 1),
|
|
2266
2268
|
w(e, {
|
|
2267
2269
|
icon: "chevron_right",
|
|
2268
2270
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2270,39 +2272,39 @@ var Se = /* @__PURE__ */ T({
|
|
|
2270
2272
|
onClick: I
|
|
2271
2273
|
}, null, 8, ["label"])
|
|
2272
2274
|
]),
|
|
2273
|
-
x("div",
|
|
2275
|
+
x("div", Yn, [(P(!0), b(p, null, R(U(C), (e) => (P(), b("span", {
|
|
2274
2276
|
key: e,
|
|
2275
2277
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2276
2278
|
}, H(e), 1))), 128))]),
|
|
2277
|
-
x("div",
|
|
2279
|
+
x("div", Xn, [(P(!0), b(p, null, R(E.value, (e, t) => (P(), b("button", {
|
|
2278
2280
|
key: t,
|
|
2279
2281
|
type: "button",
|
|
2280
2282
|
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"]]),
|
|
2281
2283
|
disabled: e.disabled,
|
|
2282
2284
|
onClick: (t) => z(e)
|
|
2283
|
-
}, H(e.date), 11,
|
|
2285
|
+
}, H(e.date), 11, Zn))), 128))])
|
|
2284
2286
|
], 4)) : y("", !0)]),
|
|
2285
2287
|
_: 1
|
|
2286
2288
|
})]))
|
|
2287
2289
|
]));
|
|
2288
2290
|
}
|
|
2289
|
-
}),
|
|
2291
|
+
}), $n = { class: "flex flex-col gap-1" }, er = {
|
|
2290
2292
|
key: 0,
|
|
2291
2293
|
class: "flex-1 text-on-surface"
|
|
2292
|
-
},
|
|
2294
|
+
}, tr = {
|
|
2293
2295
|
key: 1,
|
|
2294
2296
|
class: "flex-1 text-on-surface-variant"
|
|
2295
|
-
},
|
|
2297
|
+
}, nr = {
|
|
2296
2298
|
key: 0,
|
|
2297
2299
|
class: "px-4 text-body-small text-error"
|
|
2298
|
-
},
|
|
2300
|
+
}, rr = {
|
|
2299
2301
|
key: 1,
|
|
2300
2302
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2301
|
-
},
|
|
2303
|
+
}, ir = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, ar = { class: "mb-3 flex items-center justify-between" }, or = { class: "text-title-small font-medium capitalize text-on-surface" }, sr = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, cr = { class: "grid grid-cols-7 gap-0.5" }, lr = [
|
|
2302
2304
|
"disabled",
|
|
2303
2305
|
"onMouseenter",
|
|
2304
2306
|
"onClick"
|
|
2305
|
-
],
|
|
2307
|
+
], ur = /* @__PURE__ */ T({
|
|
2306
2308
|
__name: "MDateRangePicker",
|
|
2307
2309
|
props: {
|
|
2308
2310
|
modelValue: {},
|
|
@@ -2441,7 +2443,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2441
2443
|
e ? (f.value = a.modelValue.start && !a.modelValue.end ? "end" : "start", te(), setTimeout(() => document.addEventListener("mousedown", K), 0)) : document.removeEventListener("mousedown", K);
|
|
2442
2444
|
}), M(() => window.addEventListener("scroll", J, !0)), N(() => {
|
|
2443
2445
|
window.removeEventListener("scroll", J, !0), document.removeEventListener("mousedown", K);
|
|
2444
|
-
}), (t, n) => (P(), b("div",
|
|
2446
|
+
}), (t, n) => (P(), b("div", $n, [
|
|
2445
2447
|
x("div", {
|
|
2446
2448
|
ref_key: "triggerEl",
|
|
2447
2449
|
ref: l,
|
|
@@ -2457,7 +2459,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2457
2459
|
size: 20,
|
|
2458
2460
|
class: "shrink-0 text-on-surface-variant"
|
|
2459
2461
|
}),
|
|
2460
|
-
G.value ? (P(), b("span",
|
|
2462
|
+
G.value ? (P(), b("span", er, H(G.value), 1)) : (P(), b("span", tr, H(r.label || r.placeholder || U(o).selectRange), 1)),
|
|
2461
2463
|
r.modelValue.start || r.modelValue.end ? (P(), v(d, {
|
|
2462
2464
|
key: 2,
|
|
2463
2465
|
name: "close",
|
|
@@ -2469,7 +2471,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2469
2471
|
key: 0,
|
|
2470
2472
|
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"])
|
|
2471
2473
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2472
|
-
r.error ? (P(), b("p",
|
|
2474
|
+
r.error ? (P(), b("p", nr, H(r.error), 1)) : r.hint ? (P(), b("p", rr, H(r.hint), 1)) : y("", !0),
|
|
2473
2475
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2474
2476
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2475
2477
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2483,15 +2485,15 @@ var Se = /* @__PURE__ */ T({
|
|
|
2483
2485
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2484
2486
|
style: A(S.value)
|
|
2485
2487
|
}, [
|
|
2486
|
-
x("p",
|
|
2487
|
-
x("div",
|
|
2488
|
+
x("p", ir, H(f.value === "start" ? r.pickStartText ?? U(o).pickStart : r.pickEndText ?? U(o).pickEnd), 1),
|
|
2489
|
+
x("div", ar, [
|
|
2488
2490
|
w(e, {
|
|
2489
2491
|
icon: "chevron_left",
|
|
2490
2492
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2491
2493
|
size: 36,
|
|
2492
2494
|
onClick: V
|
|
2493
2495
|
}, null, 8, ["label"]),
|
|
2494
|
-
x("span",
|
|
2496
|
+
x("span", or, H(D.value), 1),
|
|
2495
2497
|
w(e, {
|
|
2496
2498
|
icon: "chevron_right",
|
|
2497
2499
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2499,34 +2501,34 @@ var Se = /* @__PURE__ */ T({
|
|
|
2499
2501
|
onClick: W
|
|
2500
2502
|
}, null, 8, ["label"])
|
|
2501
2503
|
]),
|
|
2502
|
-
x("div",
|
|
2504
|
+
x("div", sr, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("span", {
|
|
2503
2505
|
key: e,
|
|
2504
2506
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2505
2507
|
}, H(e), 1))), 128))]),
|
|
2506
|
-
x("div",
|
|
2508
|
+
x("div", cr, [(P(!0), b(p, null, R(O.value, (e, t) => (P(), b("button", {
|
|
2507
2509
|
key: t,
|
|
2508
2510
|
type: "button",
|
|
2509
2511
|
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"]]),
|
|
2510
2512
|
disabled: e.disabled,
|
|
2511
2513
|
onMouseenter: (t) => f.value === "end" && (g.value = e.iso),
|
|
2512
2514
|
onClick: (t) => z(e)
|
|
2513
|
-
}, H(e.date), 43,
|
|
2515
|
+
}, H(e.date), 43, lr))), 128))])
|
|
2514
2516
|
], 4)) : y("", !0)]),
|
|
2515
2517
|
_: 1
|
|
2516
2518
|
})]))
|
|
2517
2519
|
]));
|
|
2518
2520
|
}
|
|
2519
|
-
}),
|
|
2521
|
+
}), dr = {
|
|
2520
2522
|
key: 0,
|
|
2521
2523
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
2522
|
-
},
|
|
2524
|
+
}, fr = {
|
|
2523
2525
|
key: 1,
|
|
2524
2526
|
class: "h-px flex-1 bg-outline-variant"
|
|
2525
|
-
},
|
|
2527
|
+
}, pr = {
|
|
2526
2528
|
key: 1,
|
|
2527
2529
|
class: "w-px self-stretch bg-outline-variant",
|
|
2528
2530
|
role: "separator"
|
|
2529
|
-
},
|
|
2531
|
+
}, mr = /* @__PURE__ */ T({
|
|
2530
2532
|
__name: "MDivider",
|
|
2531
2533
|
props: {
|
|
2532
2534
|
vertical: {
|
|
@@ -2540,25 +2542,25 @@ var Se = /* @__PURE__ */ T({
|
|
|
2540
2542
|
}
|
|
2541
2543
|
},
|
|
2542
2544
|
setup(e) {
|
|
2543
|
-
return (t, n) => e.vertical ? (P(), b("div",
|
|
2545
|
+
return (t, n) => e.vertical ? (P(), b("div", pr)) : (P(), b("div", {
|
|
2544
2546
|
key: 0,
|
|
2545
2547
|
class: k(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
2546
2548
|
role: "separator"
|
|
2547
2549
|
}, [
|
|
2548
2550
|
n[0] ||= x("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
2549
|
-
e.label ? (P(), b("span",
|
|
2550
|
-
e.label ? (P(), b("div",
|
|
2551
|
+
e.label ? (P(), b("span", dr, H(e.label), 1)) : y("", !0),
|
|
2552
|
+
e.label ? (P(), b("div", fr)) : y("", !0)
|
|
2551
2553
|
], 2));
|
|
2552
2554
|
}
|
|
2553
|
-
}),
|
|
2555
|
+
}), hr = {
|
|
2554
2556
|
class: "flex flex-col",
|
|
2555
2557
|
role: "listbox"
|
|
2556
|
-
},
|
|
2558
|
+
}, gr = [
|
|
2557
2559
|
"draggable",
|
|
2558
2560
|
"onDragstart",
|
|
2559
2561
|
"onDragover",
|
|
2560
2562
|
"onDrop"
|
|
2561
|
-
],
|
|
2563
|
+
], _r = ["onDragstart"], vr = { class: "min-w-0 flex-1" }, yr = { class: "text-body-medium text-on-surface" }, br = /* @__PURE__ */ T({
|
|
2562
2564
|
__name: "MDragDropList",
|
|
2563
2565
|
props: {
|
|
2564
2566
|
modelValue: {},
|
|
@@ -2602,7 +2604,7 @@ var Se = /* @__PURE__ */ T({
|
|
|
2602
2604
|
function m(e) {
|
|
2603
2605
|
return i.value === e ? "opacity-30" : a.value === e && i.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
2604
2606
|
}
|
|
2605
|
-
return (t, n) => (P(), b("div",
|
|
2607
|
+
return (t, n) => (P(), b("div", hr, [(P(!0), b(p, null, R(e.modelValue, (n, r) => (P(), b("div", {
|
|
2606
2608
|
key: n.id,
|
|
2607
2609
|
draggable: !e.handle,
|
|
2608
2610
|
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"]]),
|
|
@@ -2620,12 +2622,12 @@ var Se = /* @__PURE__ */ T({
|
|
|
2620
2622
|
}, [w(d, {
|
|
2621
2623
|
name: "drag_indicator",
|
|
2622
2624
|
size: 20
|
|
2623
|
-
})], 40,
|
|
2625
|
+
})], 40, _r)) : y("", !0), x("div", vr, [z(t.$slots, "default", {
|
|
2624
2626
|
item: n,
|
|
2625
2627
|
index: r
|
|
2626
|
-
}, () => [x("span",
|
|
2628
|
+
}, () => [x("span", yr, H(n.id), 1)])])], 42, gr))), 128))]));
|
|
2627
2629
|
}
|
|
2628
|
-
}),
|
|
2630
|
+
}), xr = ["aria-label", "role"], Sr = /* @__PURE__ */ T({
|
|
2629
2631
|
__name: "MEmoji",
|
|
2630
2632
|
props: {
|
|
2631
2633
|
emoji: {},
|
|
@@ -2642,9 +2644,9 @@ var Se = /* @__PURE__ */ T({
|
|
|
2642
2644
|
}),
|
|
2643
2645
|
"aria-label": e.label,
|
|
2644
2646
|
role: e.label ? "img" : void 0
|
|
2645
|
-
}, H(e.emoji), 13,
|
|
2647
|
+
}, H(e.emoji), 13, xr));
|
|
2646
2648
|
}
|
|
2647
|
-
}),
|
|
2649
|
+
}), Cr = [
|
|
2648
2650
|
{
|
|
2649
2651
|
id: "smileys",
|
|
2650
2652
|
label: "Smileys",
|
|
@@ -2711,14 +2713,14 @@ var Se = /* @__PURE__ */ T({
|
|
|
2711
2713
|
icon: "flag",
|
|
2712
2714
|
emojis: /* @__PURE__ */ "🏁.🚩.🎌.🏴.🏳️.🏳️🌈.🏳️⚧️.🏴☠️.🇦🇷.🇦🇺.🇧🇷.🇨🇦.🇨🇱.🇨🇳.🇨🇴.🇩🇪.🇪🇸.🇫🇷.🇬🇧.🇮🇹.🇯🇵.🇰🇷.🇲🇽.🇳🇱.🇵🇪.🇵🇹.🇷🇺.🇸🇪.🇺🇸.🇻🇪.🇪🇨.🇧🇴.🇵🇾.🇺🇾.🇨🇷.🇵🇦.🇨🇺.🇩🇴.🇬🇹.🇭🇳.🇳🇮.🇸🇻.🇵🇷.🇮🇳.🇮🇩.🇹🇷.🇵🇭.🇹🇭".split(".")
|
|
2713
2715
|
}
|
|
2714
|
-
],
|
|
2715
|
-
function
|
|
2716
|
-
let t = e ??
|
|
2716
|
+
], wr = Cr.flatMap((e) => e.emojis);
|
|
2717
|
+
function Tr(e) {
|
|
2718
|
+
let t = e ?? wr;
|
|
2717
2719
|
return t[Math.floor(Math.random() * t.length)];
|
|
2718
2720
|
}
|
|
2719
2721
|
//#endregion
|
|
2720
2722
|
//#region src/components/MEmojiButton.vue?vue&type=script&setup=true&lang.ts
|
|
2721
|
-
var
|
|
2723
|
+
var Er = ["aria-label", "disabled"], Dr = { class: "leading-none" }, Or = /* @__PURE__ */ T({
|
|
2722
2724
|
__name: "MEmojiButton",
|
|
2723
2725
|
props: {
|
|
2724
2726
|
emoji: { default: "😀" },
|
|
@@ -2738,10 +2740,10 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2738
2740
|
setup(e, { emit: t }) {
|
|
2739
2741
|
let n = e, r = t, i = L(n.emoji);
|
|
2740
2742
|
function a() {
|
|
2741
|
-
return n.category ?
|
|
2743
|
+
return n.category ? Cr.find((e) => e.id === n.category)?.emojis ?? wr : wr;
|
|
2742
2744
|
}
|
|
2743
2745
|
function o() {
|
|
2744
|
-
!n.randomOnHover || n.disabled || (i.value =
|
|
2746
|
+
!n.randomOnHover || n.disabled || (i.value = Tr(a()));
|
|
2745
2747
|
}
|
|
2746
2748
|
function s() {}
|
|
2747
2749
|
function c() {
|
|
@@ -2760,15 +2762,15 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2760
2762
|
onMouseenter: o,
|
|
2761
2763
|
onMouseleave: s,
|
|
2762
2764
|
onClick: c
|
|
2763
|
-
}, [x("span",
|
|
2765
|
+
}, [x("span", Dr, H(i.value), 1)], 46, Er));
|
|
2764
2766
|
}
|
|
2765
|
-
}),
|
|
2767
|
+
}), kr = { class: "flex w-full flex-col overflow-hidden rounded-xl border border-outline-variant bg-surface-container" }, Ar = {
|
|
2766
2768
|
key: 0,
|
|
2767
2769
|
class: "px-3 pt-3"
|
|
2768
|
-
},
|
|
2770
|
+
}, jr = { class: "flex gap-0.5 overflow-x-auto border-b border-outline-variant px-2 py-1.5" }, Mr = ["title", "onClick"], Nr = { class: "sticky -top-px z-10 -mx-2 bg-surface-container px-3 py-1.5 text-label-medium text-on-surface-variant" }, Pr = ["onClick"], Fr = {
|
|
2769
2771
|
key: 0,
|
|
2770
2772
|
class: "py-8 text-center text-body-medium text-on-surface-variant"
|
|
2771
|
-
},
|
|
2773
|
+
}, Ir = /* @__PURE__ */ T({
|
|
2772
2774
|
__name: "MEmojiSelector",
|
|
2773
2775
|
props: {
|
|
2774
2776
|
categories: {},
|
|
@@ -2781,7 +2783,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2781
2783
|
},
|
|
2782
2784
|
emits: ["select"],
|
|
2783
2785
|
setup(e, { emit: t }) {
|
|
2784
|
-
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ?
|
|
2786
|
+
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ? Cr.filter((e) => n.categories.includes(e.id)) : Cr), u = _(() => {
|
|
2785
2787
|
if (!i.value) return l.value;
|
|
2786
2788
|
let e = i.value.toLowerCase();
|
|
2787
2789
|
return l.value.map((t) => ({
|
|
@@ -2803,15 +2805,15 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2803
2805
|
function h(e, t) {
|
|
2804
2806
|
t && (c.value[e] = t);
|
|
2805
2807
|
}
|
|
2806
|
-
return (t, n) => (P(), b("div",
|
|
2807
|
-
e.search ? (P(), b("div",
|
|
2808
|
+
return (t, n) => (P(), b("div", kr, [
|
|
2809
|
+
e.search ? (P(), b("div", Ar, [w(s, {
|
|
2808
2810
|
modelValue: i.value,
|
|
2809
2811
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
2810
2812
|
label: "Search",
|
|
2811
2813
|
"leading-icon": "search",
|
|
2812
2814
|
variant: "outlined"
|
|
2813
2815
|
}, null, 8, ["modelValue"])])) : y("", !0),
|
|
2814
|
-
x("div",
|
|
2816
|
+
x("div", jr, [(P(!0), b(p, null, R(l.value, (e) => (P(), b("button", {
|
|
2815
2817
|
key: e.id,
|
|
2816
2818
|
type: "button",
|
|
2817
2819
|
title: e.label,
|
|
@@ -2820,7 +2822,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2820
2822
|
}, [w(d, {
|
|
2821
2823
|
name: e.icon,
|
|
2822
2824
|
size: 20
|
|
2823
|
-
}, null, 8, ["name"])], 10,
|
|
2825
|
+
}, null, 8, ["name"])], 10, Mr))), 128))]),
|
|
2824
2826
|
x("div", {
|
|
2825
2827
|
ref_key: "scrollContainer",
|
|
2826
2828
|
ref: o,
|
|
@@ -2830,7 +2832,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2830
2832
|
key: t.id,
|
|
2831
2833
|
ref_for: !0,
|
|
2832
2834
|
ref: (e) => h(t.id, e)
|
|
2833
|
-
}, [x("p",
|
|
2835
|
+
}, [x("p", Nr, H(t.label), 1), x("div", {
|
|
2834
2836
|
class: "grid gap-0.5",
|
|
2835
2837
|
style: A({ gridTemplateColumns: `repeat(${e.columns}, 1fr)` })
|
|
2836
2838
|
}, [(P(!0), b(p, null, R(t.emojis, (t) => (P(), b("button", {
|
|
@@ -2842,10 +2844,10 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2842
2844
|
height: `${e.emojiSize + 10}px`
|
|
2843
2845
|
}),
|
|
2844
2846
|
onClick: (e) => m(t)
|
|
2845
|
-
}, H(t), 13,
|
|
2847
|
+
}, H(t), 13, Pr))), 128))], 4)], 512))), 128)), i.value && u.value.length === 0 ? (P(), b("p", Fr, " No results ")) : y("", !0)], 512)
|
|
2846
2848
|
]));
|
|
2847
2849
|
}
|
|
2848
|
-
}),
|
|
2850
|
+
}), Lr = /* @__PURE__ */ T({
|
|
2849
2851
|
__name: "MEmptyState",
|
|
2850
2852
|
props: {
|
|
2851
2853
|
icon: { default: "inbox" },
|
|
@@ -2870,13 +2872,13 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2870
2872
|
}, [z(t.$slots, "actions")], 2)) : y("", !0)
|
|
2871
2873
|
], 2));
|
|
2872
2874
|
}
|
|
2873
|
-
}),
|
|
2875
|
+
}), Rr = ["aria-expanded", "disabled"], zr = { class: "flex-1 min-w-0" }, Br = { class: "text-body-large font-medium text-on-surface" }, Vr = {
|
|
2874
2876
|
key: 0,
|
|
2875
2877
|
class: "text-body-small text-on-surface-variant"
|
|
2876
|
-
},
|
|
2878
|
+
}, Hr = {
|
|
2877
2879
|
key: 0,
|
|
2878
2880
|
class: "expand-grid"
|
|
2879
|
-
},
|
|
2881
|
+
}, Ur = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, Wr = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
2880
2882
|
__name: "MExpansionPanel",
|
|
2881
2883
|
props: {
|
|
2882
2884
|
title: {},
|
|
@@ -2911,24 +2913,24 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
2911
2913
|
size: 22,
|
|
2912
2914
|
class: "shrink-0 text-on-surface-variant"
|
|
2913
2915
|
}, null, 8, ["name"])) : y("", !0),
|
|
2914
|
-
x("div",
|
|
2916
|
+
x("div", zr, [x("p", Br, H(e.title), 1), e.subtitle ? (P(), b("p", Vr, H(e.subtitle), 1)) : y("", !0)]),
|
|
2915
2917
|
w(d, {
|
|
2916
2918
|
name: "expand_more",
|
|
2917
2919
|
size: 22,
|
|
2918
2920
|
class: k(["shrink-0 text-on-surface-variant transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
2919
2921
|
}, null, 8, ["class"])
|
|
2920
|
-
], 10,
|
|
2921
|
-
default: Y(() => [a.value ? (P(), b("div",
|
|
2922
|
+
], 10, Rr), w(h, { name: "expand" }, {
|
|
2923
|
+
default: Y(() => [a.value ? (P(), b("div", Hr, [x("div", Ur, [z(t.$slots, "default", {}, void 0, !0)])])) : y("", !0)]),
|
|
2922
2924
|
_: 3
|
|
2923
2925
|
})], 2));
|
|
2924
2926
|
}
|
|
2925
|
-
}), [["__scopeId", "data-v-89e4475b"]]),
|
|
2927
|
+
}), [["__scopeId", "data-v-89e4475b"]]), Gr = {
|
|
2926
2928
|
key: 0,
|
|
2927
2929
|
class: "text-label-large font-medium"
|
|
2928
|
-
},
|
|
2930
|
+
}, Kr = ["data-tick"], qr = {
|
|
2929
2931
|
key: 0,
|
|
2930
2932
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
2931
|
-
}, $ = 40,
|
|
2933
|
+
}, $ = 40, Jr = 8, Yr = /* @__PURE__ */ T({
|
|
2932
2934
|
__name: "MFab",
|
|
2933
2935
|
props: {
|
|
2934
2936
|
icon: {},
|
|
@@ -3000,7 +3002,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3000
3002
|
zIndex: "1000"
|
|
3001
3003
|
};
|
|
3002
3004
|
}
|
|
3003
|
-
let l = f.value / 2 +
|
|
3005
|
+
let l = f.value / 2 + Jr + $ / 2 + e * 48, u = {
|
|
3004
3006
|
up: {
|
|
3005
3007
|
top: `${i - l - $ / 2}px`,
|
|
3006
3008
|
left: `${r - $ / 2}px`
|
|
@@ -3074,7 +3076,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3074
3076
|
"name",
|
|
3075
3077
|
"size",
|
|
3076
3078
|
"class"
|
|
3077
|
-
]), e.label ? (P(), b("span",
|
|
3079
|
+
]), e.label ? (P(), b("span", Gr, H(e.label), 1)) : y("", !0)]),
|
|
3078
3080
|
_: 1
|
|
3079
3081
|
}, 40, [
|
|
3080
3082
|
"to",
|
|
@@ -3084,11 +3086,11 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3084
3086
|
]))], 512), (P(), v(m, { to: "body" }, [s.value ? (P(), b(p, { key: 0 }, [x("span", {
|
|
3085
3087
|
"data-tick": C.value,
|
|
3086
3088
|
class: "hidden"
|
|
3087
|
-
}, null, 8,
|
|
3089
|
+
}, null, 8, Kr), (P(!0), b(p, null, R(e.items, (t, n) => (P(), b("div", {
|
|
3088
3090
|
key: n,
|
|
3089
3091
|
style: A(g(n)),
|
|
3090
3092
|
class: k(["flex items-center gap-3", S.value ? "flex-row-reverse" : ""])
|
|
3091
|
-
}, [t.label && S.value ? (P(), b("span",
|
|
3093
|
+
}, [t.label && S.value ? (P(), b("span", qr, H(t.label), 1)) : y("", !0), (P(), v(V(t.to ? "RouterLink" : "button"), {
|
|
3092
3094
|
to: t.to || void 0,
|
|
3093
3095
|
type: t.to ? void 0 : "button",
|
|
3094
3096
|
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]]),
|
|
@@ -3111,17 +3113,17 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3111
3113
|
"onPointerdown"
|
|
3112
3114
|
]))], 6))), 128))], 64)) : y("", !0)]))], 64));
|
|
3113
3115
|
}
|
|
3114
|
-
}),
|
|
3116
|
+
}), Xr = { class: "flex flex-col gap-3" }, Zr = { class: "text-center" }, Qr = { class: "text-body-large text-on-surface" }, $r = { class: "font-medium text-primary" }, ei = {
|
|
3115
3117
|
key: 0,
|
|
3116
3118
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
3117
|
-
},
|
|
3119
|
+
}, ti = { key: 0 }, ni = { key: 1 }, ri = { key: 2 }, ii = [
|
|
3118
3120
|
"accept",
|
|
3119
3121
|
"multiple",
|
|
3120
3122
|
"disabled"
|
|
3121
|
-
],
|
|
3123
|
+
], ai = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, oi = ["src"], si = { class: "min-w-0 flex-1" }, ci = { class: "truncate text-body-medium text-on-surface" }, li = { class: "text-body-small text-on-surface-variant" }, ui = {
|
|
3122
3124
|
key: 0,
|
|
3123
3125
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
3124
|
-
},
|
|
3126
|
+
}, di = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
3125
3127
|
__name: "MFileUpload",
|
|
3126
3128
|
props: {
|
|
3127
3129
|
accept: {},
|
|
@@ -3173,7 +3175,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3173
3175
|
function O() {
|
|
3174
3176
|
a.disabled || u.value?.click();
|
|
3175
3177
|
}
|
|
3176
|
-
return (n, r) => (P(), b("div",
|
|
3178
|
+
return (n, r) => (P(), b("div", Xr, [
|
|
3177
3179
|
x("div", {
|
|
3178
3180
|
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"]]),
|
|
3179
3181
|
onClick: O,
|
|
@@ -3185,10 +3187,10 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3185
3187
|
name: l.value ? "downloading" : "cloud_upload",
|
|
3186
3188
|
size: 40,
|
|
3187
3189
|
class: "text-on-surface-variant"
|
|
3188
|
-
}, null, 8, ["name"]), x("div",
|
|
3189
|
-
t.accept ? (P(), b("span",
|
|
3190
|
-
t.accept && t.maxSize ? (P(), b("span",
|
|
3191
|
-
t.maxSize ? (P(), b("span",
|
|
3190
|
+
}, null, 8, ["name"]), x("div", Zr, [z(n.$slots, "dropzone", {}, () => [x("p", Qr, [C(H(t.dropText ?? U(i).dropText) + " ", 1), x("span", $r, H(t.selectText ?? U(i).selectText), 1)]), t.accept || t.maxSize ? (P(), b("p", ei, [
|
|
3191
|
+
t.accept ? (P(), b("span", ti, H(t.accept), 1)) : y("", !0),
|
|
3192
|
+
t.accept && t.maxSize ? (P(), b("span", ni, " · ")) : y("", !0),
|
|
3193
|
+
t.maxSize ? (P(), b("span", ri, H(t.maxSizePrefix ?? U(i).maxSizePrefix) + " " + H(h(t.maxSize)), 1)) : y("", !0)
|
|
3192
3194
|
])) : y("", !0)], !0)])], 34),
|
|
3193
3195
|
x("input", {
|
|
3194
3196
|
ref_key: "inputRef",
|
|
@@ -3199,7 +3201,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3199
3201
|
multiple: t.multiple,
|
|
3200
3202
|
disabled: t.disabled,
|
|
3201
3203
|
onChange: E
|
|
3202
|
-
}, null, 40,
|
|
3204
|
+
}, null, 40, ii),
|
|
3203
3205
|
w(g, {
|
|
3204
3206
|
name: "m3-file",
|
|
3205
3207
|
tag: "div",
|
|
@@ -3209,20 +3211,20 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3209
3211
|
key: n.id,
|
|
3210
3212
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
3211
3213
|
}, [
|
|
3212
|
-
x("div",
|
|
3214
|
+
x("div", ai, [n.preview ? (P(), b("img", {
|
|
3213
3215
|
key: 0,
|
|
3214
3216
|
src: n.preview,
|
|
3215
3217
|
class: "h-full w-full object-cover"
|
|
3216
|
-
}, null, 8,
|
|
3218
|
+
}, null, 8, oi)) : (P(), v(d, {
|
|
3217
3219
|
key: 1,
|
|
3218
3220
|
name: "description",
|
|
3219
3221
|
size: 24,
|
|
3220
3222
|
class: "text-on-surface-variant"
|
|
3221
3223
|
}))]),
|
|
3222
|
-
x("div",
|
|
3223
|
-
x("p",
|
|
3224
|
-
x("p",
|
|
3225
|
-
n.status === "uploading" ? (P(), b("div",
|
|
3224
|
+
x("div", si, [
|
|
3225
|
+
x("p", ci, H(n.file.name), 1),
|
|
3226
|
+
x("p", li, H(h(n.file.size)), 1),
|
|
3227
|
+
n.status === "uploading" ? (P(), b("div", ui, [x("div", {
|
|
3226
3228
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
3227
3229
|
style: A({ width: `${n.progress}%` })
|
|
3228
3230
|
}, null, 4)])) : y("", !0)
|
|
@@ -3252,7 +3254,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3252
3254
|
})
|
|
3253
3255
|
]));
|
|
3254
3256
|
}
|
|
3255
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
3257
|
+
}), [["__scopeId", "data-v-6b150427"]]), fi = /* @__PURE__ */ T({
|
|
3256
3258
|
__name: "MFixed",
|
|
3257
3259
|
props: {
|
|
3258
3260
|
placement: {},
|
|
@@ -3296,7 +3298,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3296
3298
|
});
|
|
3297
3299
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
3298
3300
|
}
|
|
3299
|
-
}),
|
|
3301
|
+
}), pi = /* @__PURE__ */ T({
|
|
3300
3302
|
__name: "MFlex",
|
|
3301
3303
|
props: {
|
|
3302
3304
|
direction: { default: "row" },
|
|
@@ -3348,7 +3350,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3348
3350
|
]);
|
|
3349
3351
|
return (e, t) => (P(), b("div", { class: k(o.value) }, [z(e.$slots, "default")], 2));
|
|
3350
3352
|
}
|
|
3351
|
-
}),
|
|
3353
|
+
}), mi = /* @__PURE__ */ T({
|
|
3352
3354
|
__name: "MFullscreen",
|
|
3353
3355
|
props: {
|
|
3354
3356
|
fixed: {
|
|
@@ -3365,7 +3367,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3365
3367
|
}));
|
|
3366
3368
|
return (e, t) => (P(), b("div", { style: A(n.value) }, [z(e.$slots, "default")], 4));
|
|
3367
3369
|
}
|
|
3368
|
-
}),
|
|
3370
|
+
}), hi = /* @__PURE__ */ T({
|
|
3369
3371
|
__name: "MGrid",
|
|
3370
3372
|
props: {
|
|
3371
3373
|
cols: { default: 1 },
|
|
@@ -3441,13 +3443,13 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3441
3443
|
]);
|
|
3442
3444
|
return (e, t) => (P(), b("div", { class: k(l.value) }, [z(e.$slots, "default")], 2));
|
|
3443
3445
|
}
|
|
3444
|
-
}),
|
|
3446
|
+
}), gi = {
|
|
3445
3447
|
key: 0,
|
|
3446
3448
|
class: "flex flex-col gap-4"
|
|
3447
|
-
},
|
|
3449
|
+
}, _i = {
|
|
3448
3450
|
key: 0,
|
|
3449
3451
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
3450
|
-
},
|
|
3452
|
+
}, vi = { class: "flex flex-col gap-1" }, yi = { class: "text-body-medium text-on-surface" }, bi = { class: "flex items-center gap-0.5" }, xi = /* @__PURE__ */ T({
|
|
3451
3453
|
__name: "MHotkeys",
|
|
3452
3454
|
props: {
|
|
3453
3455
|
bindings: {},
|
|
@@ -3504,15 +3506,15 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3504
3506
|
}
|
|
3505
3507
|
return e;
|
|
3506
3508
|
};
|
|
3507
|
-
return (t, n) => e.showOverlay ? (P(), b("div",
|
|
3509
|
+
return (t, n) => e.showOverlay ? (P(), b("div", gi, [(P(!0), b(p, null, R(s(), ([e, t]) => (P(), b("div", { key: e }, [e ? (P(), b("p", _i, H(e), 1)) : y("", !0), x("div", vi, [(P(!0), b(p, null, R(t, (e) => (P(), b("div", {
|
|
3508
3510
|
key: e.keys,
|
|
3509
3511
|
class: k(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
3510
|
-
}, [x("span",
|
|
3512
|
+
}, [x("span", yi, H(e.label), 1), x("div", bi, [(P(!0), b(p, null, R(e.keys.split("+"), (e, t) => (P(), b("kbd", {
|
|
3511
3513
|
key: t,
|
|
3512
3514
|
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"
|
|
3513
3515
|
}, H(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : y("", !0);
|
|
3514
3516
|
}
|
|
3515
|
-
}),
|
|
3517
|
+
}), Si = { class: "flex items-center gap-3" }, Ci = { class: "text-body-medium text-on-surface-variant" }, wi = { class: "text-body-small text-on-surface-variant" }, Ti = /* @__PURE__ */ T({
|
|
3516
3518
|
__name: "MInfiniteScroll",
|
|
3517
3519
|
props: {
|
|
3518
3520
|
loading: {
|
|
@@ -3543,30 +3545,30 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3543
3545
|
ref_key: "sentinelRef",
|
|
3544
3546
|
ref: o,
|
|
3545
3547
|
class: "flex items-center justify-center py-4"
|
|
3546
|
-
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div",
|
|
3548
|
+
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div", Si, [w(c, {
|
|
3547
3549
|
size: 20,
|
|
3548
3550
|
class: "text-primary"
|
|
3549
|
-
}), x("span",
|
|
3551
|
+
}), x("span", Ci, H(e.loadingText ?? U(r).loadingMore), 1)])]) : e.ended ? z(t.$slots, "end", { key: 1 }, () => [x("p", wi, H(e.endText ?? U(r).noMoreItems), 1)]) : z(t.$slots, "idle", { key: 2 })], 512)]));
|
|
3550
3552
|
}
|
|
3551
|
-
}),
|
|
3553
|
+
}), Ei = {
|
|
3552
3554
|
key: 0,
|
|
3553
3555
|
class: "text-tertiary"
|
|
3554
|
-
},
|
|
3556
|
+
}, Di = { class: "text-on-surface-variant" }, Oi = {
|
|
3555
3557
|
key: 1,
|
|
3556
3558
|
class: "text-on-surface-variant/60"
|
|
3557
|
-
},
|
|
3559
|
+
}, ki = {
|
|
3558
3560
|
key: 2,
|
|
3559
3561
|
class: "text-on-surface-variant"
|
|
3560
|
-
},
|
|
3562
|
+
}, Ai = {
|
|
3561
3563
|
key: 0,
|
|
3562
3564
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
3563
|
-
},
|
|
3565
|
+
}, ji = { class: "shrink-0 text-primary" }, Mi = {
|
|
3564
3566
|
key: 0,
|
|
3565
3567
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
3566
|
-
},
|
|
3568
|
+
}, Ni = {
|
|
3567
3569
|
key: 1,
|
|
3568
3570
|
class: "ml-5 text-on-surface-variant"
|
|
3569
|
-
},
|
|
3571
|
+
}, Pi = /* @__PURE__ */ T({
|
|
3570
3572
|
__name: "MJsonViewer",
|
|
3571
3573
|
props: {
|
|
3572
3574
|
data: {},
|
|
@@ -3607,17 +3609,17 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3607
3609
|
size: 16,
|
|
3608
3610
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
3609
3611
|
}, null, 8, ["name"]),
|
|
3610
|
-
e._depth === 0 || e.rootName ? (P(), b("span",
|
|
3611
|
-
x("span",
|
|
3612
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3613
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3612
|
+
e._depth === 0 || e.rootName ? (P(), b("span", Ei, H(e._depth === 0 ? e.rootName : ""), 1)) : y("", !0),
|
|
3613
|
+
x("span", Di, H(s.value), 1),
|
|
3614
|
+
n.value ? y("", !0) : (P(), b("span", Oi, H(o.value) + " " + H(r.value === "array" ? "elementos" : "campos"), 1)),
|
|
3615
|
+
n.value ? y("", !0) : (P(), b("span", ki, H(c.value), 1))
|
|
3614
3616
|
]),
|
|
3615
|
-
n.value ? (P(), b("div",
|
|
3617
|
+
n.value ? (P(), b("div", Ai, [(P(!0), b(p, null, R(a.value, (t) => (P(), b("div", {
|
|
3616
3618
|
key: t.key,
|
|
3617
3619
|
class: "flex items-start"
|
|
3618
3620
|
}, [
|
|
3619
|
-
x("span",
|
|
3620
|
-
r.value === "array" ? y("", !0) : (P(), b("span",
|
|
3621
|
+
x("span", ji, H(r.value === "array" ? "" : `"${t.key}"`), 1),
|
|
3622
|
+
r.value === "array" ? y("", !0) : (P(), b("span", Mi, ":")),
|
|
3621
3623
|
t.value !== null && typeof t.value == "object" ? (P(), v(m, {
|
|
3622
3624
|
key: 1,
|
|
3623
3625
|
data: t.value,
|
|
@@ -3634,21 +3636,21 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3634
3636
|
class: k(l(t.value))
|
|
3635
3637
|
}, H(u(t.value)), 3))
|
|
3636
3638
|
]))), 128))])) : y("", !0),
|
|
3637
|
-
n.value ? (P(), b("span",
|
|
3639
|
+
n.value ? (P(), b("span", Ni, H(c.value), 1)) : y("", !0)
|
|
3638
3640
|
], 64)) : (P(), b("span", {
|
|
3639
3641
|
key: 1,
|
|
3640
3642
|
class: k(l(e.data))
|
|
3641
3643
|
}, H(u(e.data)), 3))], 2);
|
|
3642
3644
|
};
|
|
3643
3645
|
}
|
|
3644
|
-
}),
|
|
3646
|
+
}), Fi = { class: "flex gap-4 overflow-x-auto pb-2" }, Ii = ["onDragover", "onDrop"], Li = { class: "flex items-center gap-2 px-4 py-3" }, Ri = { class: "flex-1 text-title-small font-medium text-on-surface" }, zi = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, Bi = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, Vi = [
|
|
3645
3647
|
"onDragstart",
|
|
3646
3648
|
"onDragover",
|
|
3647
3649
|
"onClick"
|
|
3648
|
-
],
|
|
3650
|
+
], Hi = { class: "text-body-medium text-on-surface" }, Ui = {
|
|
3649
3651
|
key: 0,
|
|
3650
3652
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
3651
|
-
},
|
|
3653
|
+
}, Wi = /* @__PURE__ */ T({
|
|
3652
3654
|
__name: "MKanban",
|
|
3653
3655
|
props: { modelValue: {} },
|
|
3654
3656
|
emits: [
|
|
@@ -3707,20 +3709,20 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3707
3709
|
function f() {
|
|
3708
3710
|
i.value = null, a.value = null, o.value = null;
|
|
3709
3711
|
}
|
|
3710
|
-
return (t, n) => (P(), b("div",
|
|
3712
|
+
return (t, n) => (P(), b("div", Fi, [(P(!0), b(p, null, R(e.modelValue, (e) => (P(), b("div", {
|
|
3711
3713
|
key: e.id,
|
|
3712
3714
|
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" : ""]),
|
|
3713
3715
|
onDragover: (t) => l(t, e.id),
|
|
3714
3716
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
3715
3717
|
onDrop: (t) => d(t, e.id)
|
|
3716
|
-
}, [x("div",
|
|
3718
|
+
}, [x("div", Li, [
|
|
3717
3719
|
e.color ? (P(), b("div", {
|
|
3718
3720
|
key: 0,
|
|
3719
3721
|
class: k(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
3720
3722
|
}, null, 2)) : y("", !0),
|
|
3721
|
-
x("h3",
|
|
3722
|
-
x("span",
|
|
3723
|
-
]), x("div",
|
|
3723
|
+
x("h3", Ri, H(e.title), 1),
|
|
3724
|
+
x("span", zi, H(e.cards.length), 1)
|
|
3725
|
+
]), x("div", Bi, [(P(!0), b(p, null, R(e.cards, (n, s) => (P(), b("div", {
|
|
3724
3726
|
key: n.id,
|
|
3725
3727
|
draggable: "true",
|
|
3726
3728
|
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" : ""]]),
|
|
@@ -3734,9 +3736,9 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3734
3736
|
}, [z(t.$slots, "card", {
|
|
3735
3737
|
card: n,
|
|
3736
3738
|
column: e
|
|
3737
|
-
}, () => [x("p",
|
|
3739
|
+
}, () => [x("p", Hi, H(n.id), 1)])], 42, Vi))), 128)), e.cards.length === 0 ? (P(), b("div", Ui, [...n[1] ||= [x("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : y("", !0)])], 42, Ii))), 128))]));
|
|
3738
3740
|
}
|
|
3739
|
-
}),
|
|
3741
|
+
}), Gi = /* @__PURE__ */ T({
|
|
3740
3742
|
__name: "MList",
|
|
3741
3743
|
props: {
|
|
3742
3744
|
dense: {
|
|
@@ -3776,10 +3778,10 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3776
3778
|
class: k(i.value)
|
|
3777
3779
|
}, [z(e.$slots, "default")], 2));
|
|
3778
3780
|
}
|
|
3779
|
-
}),
|
|
3781
|
+
}), Ki = ["checked", "disabled"], qi = {
|
|
3780
3782
|
key: 0,
|
|
3781
3783
|
class: "text-body-large text-on-surface"
|
|
3782
|
-
},
|
|
3784
|
+
}, Ji = /* @__PURE__ */ T({
|
|
3783
3785
|
__name: "MSwitch",
|
|
3784
3786
|
props: {
|
|
3785
3787
|
modelValue: { type: Boolean },
|
|
@@ -3801,7 +3803,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3801
3803
|
checked: e.modelValue,
|
|
3802
3804
|
disabled: e.disabled,
|
|
3803
3805
|
onChange: n[0] ||= (t) => r("update:modelValue", !e.modelValue)
|
|
3804
|
-
}, null, 40,
|
|
3806
|
+
}, null, 40, Ki), x("span", {
|
|
3805
3807
|
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"]),
|
|
3806
3808
|
style: A(i.value)
|
|
3807
3809
|
}, [w(h, {
|
|
@@ -3819,21 +3821,21 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3819
3821
|
class: "text-primary"
|
|
3820
3822
|
})) : y("", !0)]),
|
|
3821
3823
|
_: 1
|
|
3822
|
-
})], 6)], 2), e.label ? (P(), b("span",
|
|
3824
|
+
})], 6)], 2), e.label ? (P(), b("span", qi, H(e.label), 1)) : y("", !0)], 2));
|
|
3823
3825
|
}
|
|
3824
|
-
}),
|
|
3826
|
+
}), Yi = {
|
|
3825
3827
|
key: 0,
|
|
3826
3828
|
role: "listitem"
|
|
3827
|
-
},
|
|
3829
|
+
}, Xi = { class: "min-w-0 flex-1" }, Zi = { class: "truncate text-body-large text-on-surface" }, Qi = {
|
|
3828
3830
|
key: 0,
|
|
3829
3831
|
class: "mli-expand-grid"
|
|
3830
|
-
},
|
|
3832
|
+
}, $i = { class: "mli-expand-body" }, ea = ["src"], ta = { class: "min-w-0 flex-1" }, na = { class: "truncate text-body-large text-on-surface" }, ra = {
|
|
3831
3833
|
key: 1,
|
|
3832
3834
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
3833
|
-
},
|
|
3835
|
+
}, ia = {
|
|
3834
3836
|
key: 1,
|
|
3835
3837
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
3836
|
-
},
|
|
3838
|
+
}, aa = /* @__PURE__ */ T({
|
|
3837
3839
|
__name: "MListItem",
|
|
3838
3840
|
props: {
|
|
3839
3841
|
title: {},
|
|
@@ -3906,7 +3908,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3906
3908
|
function N() {
|
|
3907
3909
|
r("update:trailingValue", !n.trailingValue);
|
|
3908
3910
|
}
|
|
3909
|
-
return (t, n) => e.expandable ? (P(), b("li",
|
|
3911
|
+
return (t, n) => e.expandable ? (P(), b("li", Yi, [x("div", {
|
|
3910
3912
|
class: k(T.value),
|
|
3911
3913
|
onClick: M
|
|
3912
3914
|
}, [
|
|
@@ -3916,7 +3918,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3916
3918
|
size: 24,
|
|
3917
3919
|
class: "shrink-0 text-on-surface-variant"
|
|
3918
3920
|
}, null, 8, ["name"])) : y("", !0)]),
|
|
3919
|
-
x("div",
|
|
3921
|
+
x("div", Xi, [z(t.$slots, "default", {}, () => [x("p", Zi, H(e.title), 1), e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
3920
3922
|
key: 0,
|
|
3921
3923
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
3922
3924
|
}, H(e.subtitle), 3)) : y("", !0)])]),
|
|
@@ -3926,7 +3928,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3926
3928
|
class: "shrink-0 text-on-surface-variant"
|
|
3927
3929
|
}, null, 8, ["name"])
|
|
3928
3930
|
], 2), w(h, { name: "mli-expand" }, {
|
|
3929
|
-
default: Y(() => [o.value ? (P(), b("div",
|
|
3931
|
+
default: Y(() => [o.value ? (P(), b("div", Qi, [x("div", $i, [z(t.$slots, "children")])])) : y("", !0)]),
|
|
3930
3932
|
_: 3
|
|
3931
3933
|
})])) : (P(), v(V(O.value), D({
|
|
3932
3934
|
key: 1,
|
|
@@ -3951,7 +3953,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3951
3953
|
}, [w(d, {
|
|
3952
3954
|
name: e.icon,
|
|
3953
3955
|
size: 24
|
|
3954
|
-
}, null, 8, ["name"])], 2)) : f.value === "avatar" ? (P(), v(
|
|
3956
|
+
}, null, 8, ["name"])], 2)) : f.value === "avatar" ? (P(), v(Be, {
|
|
3955
3957
|
key: 2,
|
|
3956
3958
|
name: e.avatarName,
|
|
3957
3959
|
size: 40,
|
|
@@ -3961,25 +3963,25 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3961
3963
|
src: e.image,
|
|
3962
3964
|
alt: "",
|
|
3963
3965
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
3964
|
-
}, null, 8,
|
|
3966
|
+
}, null, 8, ea)) : f.value === "checkbox" ? (P(), v(Q, {
|
|
3965
3967
|
key: 4,
|
|
3966
3968
|
"model-value": u.value,
|
|
3967
3969
|
class: "shrink-0"
|
|
3968
3970
|
}, null, 8, ["model-value"])) : y("", !0)]),
|
|
3969
|
-
x("div",
|
|
3970
|
-
x("p",
|
|
3971
|
+
x("div", ta, [z(t.$slots, "default", {}, () => [
|
|
3972
|
+
x("p", na, H(e.title), 1),
|
|
3971
3973
|
e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
3972
3974
|
key: 0,
|
|
3973
3975
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
3974
3976
|
}, H(e.subtitle), 3)) : y("", !0),
|
|
3975
|
-
e.description && c.value >= 3 ? (P(), b("p",
|
|
3977
|
+
e.description && c.value >= 3 ? (P(), b("p", ra, H(e.description), 1)) : y("", !0)
|
|
3976
3978
|
])]),
|
|
3977
3979
|
z(t.$slots, "trailing", {}, () => [p.value === "icon" ? (P(), v(d, {
|
|
3978
3980
|
key: 0,
|
|
3979
3981
|
name: e.trailingIcon,
|
|
3980
3982
|
size: 24,
|
|
3981
3983
|
class: "shrink-0 text-on-surface-variant"
|
|
3982
|
-
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span",
|
|
3984
|
+
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span", ia, H(e.trailingText), 1)) : p.value === "switch" ? (P(), v(Ji, {
|
|
3983
3985
|
key: 2,
|
|
3984
3986
|
"model-value": !!e.trailingValue,
|
|
3985
3987
|
"onUpdate:modelValue": N
|
|
@@ -3992,7 +3994,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
3992
3994
|
_: 3
|
|
3993
3995
|
}, 16, ["class"]));
|
|
3994
3996
|
}
|
|
3995
|
-
}),
|
|
3997
|
+
}), oa = /* @__PURE__ */ T({
|
|
3996
3998
|
__name: "MListSubheader",
|
|
3997
3999
|
props: { inset: {
|
|
3998
4000
|
type: Boolean,
|
|
@@ -4004,16 +4006,16 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4004
4006
|
role: "presentation"
|
|
4005
4007
|
}, [z(t.$slots, "default")], 2));
|
|
4006
4008
|
}
|
|
4007
|
-
}),
|
|
4009
|
+
}), sa = {
|
|
4008
4010
|
key: 0,
|
|
4009
4011
|
class: "text-body-large text-on-surface-variant"
|
|
4010
|
-
},
|
|
4012
|
+
}, ca = {
|
|
4011
4013
|
key: 1,
|
|
4012
4014
|
class: "relative"
|
|
4013
|
-
},
|
|
4015
|
+
}, la = {
|
|
4014
4016
|
key: 0,
|
|
4015
4017
|
class: "text-body-medium text-on-surface-variant"
|
|
4016
|
-
},
|
|
4018
|
+
}, ua = /* @__PURE__ */ T({
|
|
4017
4019
|
__name: "MLoadingOverlay",
|
|
4018
4020
|
props: {
|
|
4019
4021
|
visible: { type: Boolean },
|
|
@@ -4046,11 +4048,11 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4046
4048
|
size: e.spinnerSize,
|
|
4047
4049
|
class: "text-primary"
|
|
4048
4050
|
}, null, 8, ["size"]),
|
|
4049
|
-
e.text ? (P(), b("p",
|
|
4051
|
+
e.text ? (P(), b("p", sa, H(e.text), 1)) : y("", !0),
|
|
4050
4052
|
z(t.$slots, "default")
|
|
4051
4053
|
], 2)) : y("", !0)]),
|
|
4052
4054
|
_: 3
|
|
4053
|
-
})])) : (P(), b("div",
|
|
4055
|
+
})])) : (P(), b("div", ca, [z(t.$slots, "content"), w(h, {
|
|
4054
4056
|
"enter-active-class": "transition-opacity duration-200",
|
|
4055
4057
|
"enter-from-class": "opacity-0",
|
|
4056
4058
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -4064,13 +4066,13 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4064
4066
|
size: e.spinnerSize,
|
|
4065
4067
|
class: "text-primary"
|
|
4066
4068
|
}, null, 8, ["size"]),
|
|
4067
|
-
e.text ? (P(), b("p",
|
|
4069
|
+
e.text ? (P(), b("p", la, H(e.text), 1)) : y("", !0),
|
|
4068
4070
|
z(t.$slots, "default")
|
|
4069
4071
|
], 2)) : y("", !0)]),
|
|
4070
4072
|
_: 3
|
|
4071
4073
|
})]));
|
|
4072
4074
|
}
|
|
4073
|
-
}),
|
|
4075
|
+
}), da = /* @__PURE__ */ T({
|
|
4074
4076
|
__name: "MMasonry",
|
|
4075
4077
|
props: {
|
|
4076
4078
|
cols: { default: 2 },
|
|
@@ -4121,21 +4123,21 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4121
4123
|
class: "relative w-full"
|
|
4122
4124
|
}, [z(e.$slots, "default")], 512));
|
|
4123
4125
|
}
|
|
4124
|
-
}),
|
|
4126
|
+
}), fa = { class: "flex flex-col gap-1" }, pa = [
|
|
4125
4127
|
"id",
|
|
4126
4128
|
"value",
|
|
4127
4129
|
"disabled",
|
|
4128
4130
|
"required"
|
|
4129
|
-
],
|
|
4131
|
+
], ma = ["for"], ha = {
|
|
4130
4132
|
key: 0,
|
|
4131
4133
|
class: "text-error"
|
|
4132
|
-
},
|
|
4134
|
+
}, ga = {
|
|
4133
4135
|
key: 0,
|
|
4134
4136
|
class: "px-4 text-body-small text-error"
|
|
4135
|
-
},
|
|
4137
|
+
}, _a = {
|
|
4136
4138
|
key: 1,
|
|
4137
4139
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4138
|
-
},
|
|
4140
|
+
}, va = /* @__PURE__ */ T({
|
|
4139
4141
|
__name: "MMaskField",
|
|
4140
4142
|
props: {
|
|
4141
4143
|
modelValue: {},
|
|
@@ -4230,7 +4232,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4230
4232
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
4231
4233
|
].join(" ");
|
|
4232
4234
|
});
|
|
4233
|
-
return (t, n) => (P(), b("div",
|
|
4235
|
+
return (t, n) => (P(), b("div", fa, [x("div", {
|
|
4234
4236
|
ref_key: "fieldBgEl",
|
|
4235
4237
|
ref: s,
|
|
4236
4238
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4256,11 +4258,11 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4256
4258
|
class: k(S.value),
|
|
4257
4259
|
onInput: h,
|
|
4258
4260
|
onKeydown: g
|
|
4259
|
-
}, null, 42,
|
|
4261
|
+
}, null, 42, pa),
|
|
4260
4262
|
x("label", {
|
|
4261
4263
|
for: U(o),
|
|
4262
4264
|
class: k(T.value)
|
|
4263
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4265
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", ha, "\xA0*")) : y("", !0)], 10, ma),
|
|
4264
4266
|
f.value ? (P(), b("button", {
|
|
4265
4267
|
key: 1,
|
|
4266
4268
|
type: "button",
|
|
@@ -4270,31 +4272,31 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4270
4272
|
name: "close",
|
|
4271
4273
|
size: 18
|
|
4272
4274
|
})], 2)) : y("", !0)
|
|
4273
|
-
], 6), e.error ? (P(), b("p",
|
|
4275
|
+
], 6), e.error ? (P(), b("p", ga, H(e.error), 1)) : e.hint ? (P(), b("p", _a, H(e.hint), 1)) : y("", !0)]));
|
|
4274
4276
|
}
|
|
4275
|
-
}),
|
|
4277
|
+
}), ya = { class: "flex flex-col gap-1" }, ba = [
|
|
4276
4278
|
"id",
|
|
4277
4279
|
"tabindex",
|
|
4278
4280
|
"aria-expanded"
|
|
4279
|
-
],
|
|
4281
|
+
], xa = ["onClick"], Sa = {
|
|
4280
4282
|
key: 0,
|
|
4281
4283
|
class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant"
|
|
4282
|
-
},
|
|
4284
|
+
}, Ca = {
|
|
4283
4285
|
key: 1,
|
|
4284
4286
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
4285
|
-
},
|
|
4287
|
+
}, wa = {
|
|
4286
4288
|
key: 0,
|
|
4287
4289
|
class: "text-error"
|
|
4288
|
-
},
|
|
4290
|
+
}, Ta = {
|
|
4289
4291
|
key: 0,
|
|
4290
4292
|
class: "px-4 text-body-small text-error"
|
|
4291
|
-
},
|
|
4293
|
+
}, Ea = {
|
|
4292
4294
|
key: 1,
|
|
4293
4295
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4294
|
-
},
|
|
4296
|
+
}, Da = {
|
|
4295
4297
|
key: 0,
|
|
4296
4298
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
4297
|
-
},
|
|
4299
|
+
}, Oa = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, ka = ["placeholder"], Aa = { class: "flex flex-col py-1" }, ja = { class: "text-body-large text-on-surface" }, Ma = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, Na = /* @__PURE__ */ T({
|
|
4298
4300
|
__name: "MMultiSelect",
|
|
4299
4301
|
props: {
|
|
4300
4302
|
modelValue: { default: () => [] },
|
|
@@ -4412,7 +4414,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4412
4414
|
c.value ? a.error ? "text-error" : "text-primary" : a.error ? "text-error" : "text-on-surface-variant"
|
|
4413
4415
|
].join(" ");
|
|
4414
4416
|
});
|
|
4415
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
4417
|
+
return (t, n) => (P(), b(p, null, [x("div", ya, [x("div", {
|
|
4416
4418
|
ref_key: "fieldEl",
|
|
4417
4419
|
ref: u,
|
|
4418
4420
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4448,8 +4450,8 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4448
4450
|
}, [w(d, {
|
|
4449
4451
|
name: "close",
|
|
4450
4452
|
size: 12
|
|
4451
|
-
})], 8,
|
|
4452
|
-
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4453
|
+
})], 8, xa)]))), 128)), B.value > 0 ? (P(), b("span", Sa, " +" + H(B.value), 1)) : y("", !0)], 64)) : c.value ? y("", !0) : (P(), b("span", Ca, H(e.placeholder), 1))], 42, ba),
|
|
4454
|
+
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span", wa, "\xA0*")) : y("", !0)], 2),
|
|
4453
4455
|
e.clearable && j.value && !e.disabled ? (P(), b("button", {
|
|
4454
4456
|
key: 1,
|
|
4455
4457
|
type: "button",
|
|
@@ -4466,7 +4468,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4466
4468
|
size: 24,
|
|
4467
4469
|
class: "text-on-surface-variant"
|
|
4468
4470
|
}, null, 8, ["name"])], 2)
|
|
4469
|
-
], 6), e.error ? (P(), b("p",
|
|
4471
|
+
], 6), e.error ? (P(), b("p", Ta, H(e.error), 1)) : e.hint ? (P(), b("p", Ea, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
4470
4472
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
4471
4473
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
4472
4474
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -4480,7 +4482,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4480
4482
|
ref: g,
|
|
4481
4483
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
4482
4484
|
style: A(T.value)
|
|
4483
|
-
}, [e.searchable ? (P(), b("div",
|
|
4485
|
+
}, [e.searchable ? (P(), b("div", Da, [x("div", Oa, [w(d, {
|
|
4484
4486
|
name: "search",
|
|
4485
4487
|
size: 16,
|
|
4486
4488
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -4491,7 +4493,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4491
4493
|
type: "text",
|
|
4492
4494
|
placeholder: e.searchPlaceholder ?? U(i).search,
|
|
4493
4495
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
4494
|
-
}, null, 8,
|
|
4496
|
+
}, null, 8, ka), [[te, l.value]])])])) : y("", !0), x("div", Aa, [(P(!0), b(p, null, R(F.value, (t, n) => (P(), b("label", {
|
|
4495
4497
|
key: n,
|
|
4496
4498
|
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" : ""])
|
|
4497
4499
|
}, [w(Q, {
|
|
@@ -4502,11 +4504,11 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4502
4504
|
"model-value",
|
|
4503
4505
|
"disabled",
|
|
4504
4506
|
"onUpdate:modelValue"
|
|
4505
|
-
]), x("span",
|
|
4507
|
+
]), x("span", ja, H(t.label), 1)], 2))), 128)), F.value.length === 0 ? z(t.$slots, "no-results", { key: 0 }, () => [x("p", Ma, H(e.noResultsText ?? U(i).noResults), 1)]) : y("", !0)])], 4)) : y("", !0)]),
|
|
4506
4508
|
_: 3
|
|
4507
4509
|
})]))], 64));
|
|
4508
4510
|
}
|
|
4509
|
-
}),
|
|
4511
|
+
}), Pa = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, Fa = ["onClick"], Ia = /* @__PURE__ */ T({
|
|
4510
4512
|
__name: "MNavigationBar",
|
|
4511
4513
|
props: {
|
|
4512
4514
|
modelValue: {},
|
|
@@ -4514,12 +4516,12 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4514
4516
|
},
|
|
4515
4517
|
emits: ["update:modelValue"],
|
|
4516
4518
|
setup(e) {
|
|
4517
|
-
return (t, n) => (P(), b("nav",
|
|
4519
|
+
return (t, n) => (P(), b("nav", Pa, [(P(!0), b(p, null, R(e.items, (n) => (P(), b("button", {
|
|
4518
4520
|
key: n.value,
|
|
4519
4521
|
type: "button",
|
|
4520
4522
|
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"]),
|
|
4521
4523
|
onClick: (e) => t.$emit("update:modelValue", n.value)
|
|
4522
|
-
}, [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(
|
|
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(Ue, {
|
|
4523
4525
|
key: 1,
|
|
4524
4526
|
dot: ""
|
|
4525
4527
|
}, {
|
|
@@ -4532,7 +4534,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4532
4534
|
key: 2,
|
|
4533
4535
|
name: n.icon,
|
|
4534
4536
|
size: 24
|
|
4535
|
-
}, null, 8, ["name"])) : (P(), v(
|
|
4537
|
+
}, null, 8, ["name"])) : (P(), v(Ue, {
|
|
4536
4538
|
key: 0,
|
|
4537
4539
|
count: n.badge
|
|
4538
4540
|
}, {
|
|
@@ -4541,9 +4543,9 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4541
4543
|
size: 24
|
|
4542
4544
|
}, null, 8, ["name"])]),
|
|
4543
4545
|
_: 2
|
|
4544
|
-
}, 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,
|
|
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, Fa))), 128))]));
|
|
4545
4547
|
}
|
|
4546
|
-
}),
|
|
4548
|
+
}), La = { class: "flex flex-col gap-1" }, Ra = [
|
|
4547
4549
|
"id",
|
|
4548
4550
|
"value",
|
|
4549
4551
|
"disabled",
|
|
@@ -4551,16 +4553,16 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4551
4553
|
"min",
|
|
4552
4554
|
"max",
|
|
4553
4555
|
"step"
|
|
4554
|
-
],
|
|
4556
|
+
], za = ["for"], Ba = {
|
|
4555
4557
|
key: 0,
|
|
4556
4558
|
class: "text-error"
|
|
4557
|
-
},
|
|
4559
|
+
}, Va = {
|
|
4558
4560
|
key: 0,
|
|
4559
4561
|
class: "px-4 text-body-small text-error"
|
|
4560
|
-
},
|
|
4562
|
+
}, Ha = {
|
|
4561
4563
|
key: 1,
|
|
4562
4564
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4563
|
-
},
|
|
4565
|
+
}, Ua = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
4564
4566
|
__name: "MNumberField",
|
|
4565
4567
|
props: {
|
|
4566
4568
|
modelValue: { default: null },
|
|
@@ -4643,7 +4645,7 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4643
4645
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
4644
4646
|
].join(" ");
|
|
4645
4647
|
});
|
|
4646
|
-
return (t, r) => (P(), b("div",
|
|
4648
|
+
return (t, r) => (P(), b("div", La, [x("div", {
|
|
4647
4649
|
ref_key: "fieldBgEl",
|
|
4648
4650
|
ref: s,
|
|
4649
4651
|
class: k(["relative", n.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4669,11 +4671,11 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4669
4671
|
class: k(h.value),
|
|
4670
4672
|
onInput: u,
|
|
4671
4673
|
onKeydown: m
|
|
4672
|
-
}, null, 42,
|
|
4674
|
+
}, null, 42, Ra),
|
|
4673
4675
|
x("label", {
|
|
4674
4676
|
for: U(o),
|
|
4675
4677
|
class: k(g.value)
|
|
4676
|
-
}, [C(H(n.label), 1), n.required ? (P(), b("span",
|
|
4678
|
+
}, [C(H(n.label), 1), n.required ? (P(), b("span", Ba, "\xA0*")) : y("", !0)], 10, za),
|
|
4677
4679
|
n.stepper ? (P(), b("div", {
|
|
4678
4680
|
key: 1,
|
|
4679
4681
|
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"])
|
|
@@ -4690,9 +4692,9 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4690
4692
|
disabled: n.disabled || n.max !== void 0 && (n.modelValue ?? 0) >= n.max,
|
|
4691
4693
|
onClick: f
|
|
4692
4694
|
}, null, 8, ["disabled"])], 2)) : y("", !0)
|
|
4693
|
-
], 6), n.error ? (P(), b("p",
|
|
4695
|
+
], 6), n.error ? (P(), b("p", Va, H(n.error), 1)) : n.hint ? (P(), b("p", Ha, H(n.hint), 1)) : y("", !0)]));
|
|
4694
4696
|
}
|
|
4695
|
-
}), [["__scopeId", "data-v-9068433a"]]),
|
|
4697
|
+
}), [["__scopeId", "data-v-9068433a"]]), Wa = T({
|
|
4696
4698
|
name: "MDrawerItemList",
|
|
4697
4699
|
components: { MIcon: d },
|
|
4698
4700
|
props: {
|
|
@@ -4767,8 +4769,8 @@ var Tr = ["aria-label", "disabled"], Er = { class: "leading-none" }, Dr = /* @__
|
|
|
4767
4769
|
}).onfinish = t;
|
|
4768
4770
|
}
|
|
4769
4771
|
}
|
|
4770
|
-
}),
|
|
4771
|
-
function
|
|
4772
|
+
}), Ga = { key: 0 };
|
|
4773
|
+
function Ka(e, t, n, r, i, a) {
|
|
4772
4774
|
let o = B("MIcon"), s = B("MDrawerItemList");
|
|
4773
4775
|
return P(!0), b(p, null, R(e.items, (t) => (P(), b(p, { key: t.value }, [(P(), v(V(e.itemTag(t)), {
|
|
4774
4776
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -4808,7 +4810,7 @@ function Ga(e, t, n, r, i, a) {
|
|
|
4808
4810
|
onEnter: e.onEnter,
|
|
4809
4811
|
onLeave: e.onLeave
|
|
4810
4812
|
}, {
|
|
4811
|
-
default: Y(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div",
|
|
4813
|
+
default: Y(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div", Ga, [w(s, {
|
|
4812
4814
|
items: t.children,
|
|
4813
4815
|
selected: e.selected,
|
|
4814
4816
|
depth: e.depth + 1
|
|
@@ -4820,10 +4822,10 @@ function Ga(e, t, n, r, i, a) {
|
|
|
4820
4822
|
_: 2
|
|
4821
4823
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
4822
4824
|
}
|
|
4823
|
-
var
|
|
4825
|
+
var qa = /*#__PURE__*/ f(Wa, [["render", Ka]]), Ja = {
|
|
4824
4826
|
key: 0,
|
|
4825
4827
|
class: "fixed inset-0 z-100 flex"
|
|
4826
|
-
},
|
|
4828
|
+
}, Ya = {
|
|
4827
4829
|
key: 0,
|
|
4828
4830
|
class: "shrink-0"
|
|
4829
4831
|
}, Xa = {
|
|
@@ -4876,7 +4878,8 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
4876
4878
|
type: Boolean,
|
|
4877
4879
|
default: !0
|
|
4878
4880
|
},
|
|
4879
|
-
collapsed: { type: Boolean }
|
|
4881
|
+
collapsed: { type: Boolean },
|
|
4882
|
+
width: {}
|
|
4880
4883
|
},
|
|
4881
4884
|
emits: ["update:modelValue", "select"],
|
|
4882
4885
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -4944,10 +4947,13 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
4944
4947
|
leave: 280
|
|
4945
4948
|
}
|
|
4946
4949
|
}, {
|
|
4947
|
-
default: Y(() => [e.modelValue ? (P(), b("div",
|
|
4950
|
+
default: Y(() => [e.modelValue ? (P(), b("div", Ja, [x("div", {
|
|
4948
4951
|
class: "nd-scrim absolute inset-0 bg-black/40",
|
|
4949
4952
|
onClick: f
|
|
4950
|
-
}), x("nav",
|
|
4953
|
+
}), x("nav", {
|
|
4954
|
+
class: k(["nd-panel relative flex h-full max-w-[85vw] flex-col bg-surface-container shadow-elevation-3", e.width ? "" : "w-72"]),
|
|
4955
|
+
style: A(e.width ? { width: e.width } : void 0)
|
|
4956
|
+
}, [t.$slots.header ? (P(), b("div", Ya, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", Xa, [x("h2", Za, H(e.title), 1)])) : y("", !0), x("div", Qa, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
4951
4957
|
n > 0 ? (P(), b("div", $a)) : y("", !0),
|
|
4952
4958
|
t.title && t.collapsible ? (P(), b("button", {
|
|
4953
4959
|
key: 1,
|
|
@@ -5003,7 +5009,7 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5003
5009
|
onEnter: T,
|
|
5004
5010
|
onLeave: E
|
|
5005
5011
|
}, {
|
|
5006
|
-
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", oo, [w(
|
|
5012
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", oo, [w(qa, {
|
|
5007
5013
|
items: n.children,
|
|
5008
5014
|
selected: e.selected
|
|
5009
5015
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
@@ -5011,11 +5017,15 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5011
5017
|
}, 1024)], 64))), 128))])])) : y("", !0)]),
|
|
5012
5018
|
_: 2
|
|
5013
5019
|
}, 1024)
|
|
5014
|
-
], 64))), 128))])])])) : y("", !0)]),
|
|
5020
|
+
], 64))), 128))])], 6)])) : y("", !0)]),
|
|
5015
5021
|
_: 3
|
|
5016
5022
|
})])) : (P(), b("nav", {
|
|
5017
5023
|
key: 1,
|
|
5018
|
-
class: k(["nd-inline flex h-full shrink-0 flex-col border-r border-outline-variant bg-surface", [e.modelValue ? e.collapsed ? "nd-collapsed w-[72px]" : "w-72" : "nd-hidden w-0 border-r-0"]])
|
|
5024
|
+
class: k(["nd-inline flex h-full shrink-0 flex-col border-r border-outline-variant bg-surface", [e.modelValue ? e.collapsed ? "nd-collapsed w-[72px]" : e.width ? "" : "w-72" : "nd-hidden w-0 border-r-0"]]),
|
|
5025
|
+
style: A({
|
|
5026
|
+
width: e.modelValue && !e.collapsed && e.width ? e.width : void 0,
|
|
5027
|
+
"--nd-width": e.width ?? "18rem"
|
|
5028
|
+
})
|
|
5019
5029
|
}, [t.$slots.header ? (P(), b("div", so, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", co, [x("div", lo, [x("h2", uo, H(e.title), 1)])])) : y("", !0), x("div", fo, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5020
5030
|
n > 0 ? (P(), b("div", po)) : y("", !0),
|
|
5021
5031
|
t.title && t.collapsible ? (P(), b("button", {
|
|
@@ -5078,7 +5088,7 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5078
5088
|
onEnter: T,
|
|
5079
5089
|
onLeave: E
|
|
5080
5090
|
}, {
|
|
5081
|
-
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", So, [w(
|
|
5091
|
+
default: Y(() => [n.children?.length && l(n) ? (P(), b("div", So, [w(qa, {
|
|
5082
5092
|
items: n.children,
|
|
5083
5093
|
selected: e.selected
|
|
5084
5094
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
@@ -5088,9 +5098,9 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5088
5098
|
], 64))), 128))])])) : y("", !0)]),
|
|
5089
5099
|
_: 2
|
|
5090
5100
|
}, 1024)
|
|
5091
|
-
], 64))), 128))])],
|
|
5101
|
+
], 64))), 128))])], 6));
|
|
5092
5102
|
}
|
|
5093
|
-
}), [["__scopeId", "data-v-
|
|
5103
|
+
}), [["__scopeId", "data-v-b70b6944"]]), To = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, Eo = {
|
|
5094
5104
|
key: 0,
|
|
5095
5105
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
5096
5106
|
}, Do = ["disabled", "onClick"], Oo = /* @__PURE__ */ T({
|
|
@@ -5112,7 +5122,7 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5112
5122
|
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]" : ""]),
|
|
5113
5123
|
disabled: n.disabled,
|
|
5114
5124
|
onClick: (e) => !n.disabled && t.$emit("update:modelValue", n.value)
|
|
5115
|
-
}, [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(
|
|
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(Ue, {
|
|
5116
5126
|
key: 1,
|
|
5117
5127
|
dot: ""
|
|
5118
5128
|
}, {
|
|
@@ -5125,7 +5135,7 @@ var Ka = /*#__PURE__*/ f(Ua, [["render", Ga]]), qa = {
|
|
|
5125
5135
|
key: 2,
|
|
5126
5136
|
name: n.icon,
|
|
5127
5137
|
size: 24
|
|
5128
|
-
}, null, 8, ["name"])) : (P(), v(
|
|
5138
|
+
}, null, 8, ["name"])) : (P(), v(Ue, {
|
|
5129
5139
|
key: 0,
|
|
5130
5140
|
count: n.badge
|
|
5131
5141
|
}, {
|
|
@@ -7176,7 +7186,7 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7176
7186
|
onClick: n[2] ||= Z(() => {}, ["stop"])
|
|
7177
7187
|
}, [z(t.$slots, "row-actions", { row: r })])) : y("", !0)
|
|
7178
7188
|
], 10, Ml))), 128))])])]),
|
|
7179
|
-
x("div", Pl, [w(
|
|
7189
|
+
x("div", Pl, [w(mn, {
|
|
7180
7190
|
page: m.value,
|
|
7181
7191
|
"per-page": e.perPage,
|
|
7182
7192
|
total: S.value,
|
|
@@ -7601,11 +7611,12 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
7601
7611
|
title: {},
|
|
7602
7612
|
variant: { default: "small" },
|
|
7603
7613
|
navigationIcon: {},
|
|
7604
|
-
elevated: { type: Boolean }
|
|
7614
|
+
elevated: { type: Boolean },
|
|
7615
|
+
bordered: { type: Boolean }
|
|
7605
7616
|
},
|
|
7606
7617
|
emits: ["navigation"],
|
|
7607
7618
|
setup(t) {
|
|
7608
|
-
return (n, r) => (P(), b("header", { class: k(["flex w-full flex-col bg-surface transition-shadow", t.elevated ? "shadow-elevation-2" : ""]) }, [x("div", mu, [
|
|
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", mu, [
|
|
7609
7620
|
t.navigationIcon ? (P(), v(e, {
|
|
7610
7621
|
key: 0,
|
|
7611
7622
|
icon: t.navigationIcon,
|
|
@@ -8303,6 +8314,6 @@ var bc = /*#__PURE__*/ f(_c, [["render", yc]]), xc = /* @__PURE__ */ T({
|
|
|
8303
8314
|
}
|
|
8304
8315
|
});
|
|
8305
8316
|
//#endregion
|
|
8306
|
-
export { Se as MAbsolute, Oe as MAlert, Me as MAppBar,
|
|
8317
|
+
export { Se as MAbsolute, Oe as MAlert, Me as MAppBar, Re as MAppLayout, ze as MAspectRatio, Be as MAvatar, Ue as MBadge, Ye as MBottomSheet, Xe as MBox, $e as MBreadcrumbs, o as MButton, dt as MCalendar, vt as MCard, wt as MCarousel, Tt as MCenter, Q as MCheckbox, kt as MChip, Bt as MColorPicker, en as MCommandPalette, nn as MConfirmDialog, rn as MContainer, dn as MContextMenu, Vn as MDataTable, Qn as MDatePicker, ur as MDateRangePicker, r as MDialog, mr as MDivider, br as MDragDropList, Sr as MEmoji, Or as MEmojiButton, Ir as MEmojiSelector, Lr as MEmptyState, Wr as MExpansionPanel, Yr as MFab, di as MFileUpload, fi as MFixed, pi as MFlex, mi as MFullscreen, hi as MGrid, xi as MHotkeys, d as MIcon, e as MIconButton, Ti as MInfiniteScroll, Pi as MJsonViewer, Wi as MKanban, Gi as MList, aa as MListItem, oa as MListSubheader, ua as MLoadingOverlay, va as MMaskField, da as MMasonry, a as MMenu, l as MMenuItem, Na as MMultiSelect, Ia as MNavigationBar, wo as MNavigationDrawer, Oo as MNavigationRail, Ua as MNumberField, Ao as MOverlay, mn as MPagination, Ko as MProgressBar, Zo as MRadio, es as MRadioGroup, ns as MRating, os as MRelative, ss as MResponsive, ms as MResult, As as MScheduler, js as MScrollable, Is as MSection, zs as MSegmentedButton, Zs as MSelect, rc as MSideSheet, ac as MSkeleton, dc as MSlider, gc as MSnackbar, bc as MSpacer, c as MSpinner, xc as MSplitter, Rc as MSpotlightSearch, zc as MStack, Jc as MStatCard, ul as MStepper, dl as MSticky, pl as MSubtitle, Ji as MSwitch, Fl as MTable, Vl as MTabs, fl as MText, s as MTextField, du as MTimePicker, $l as MTimeline, fu as MTitle, pu as MTooltip, _u as MTopAppBar, Tu as MTour, Ju as MTransferList, id as MTree, hd as MTreeTable, Td as MVirtualTable, wr as allEmojis, re as createM3UI, u as defaultLocale, Cr as emojiCategories, ce as palettes, Tr as randomEmoji, ue as useColorPalette, t as useFieldBg, n as useLocale, se as useTheme, xe as useToast };
|
|
8307
8318
|
|
|
8308
8319
|
//# sourceMappingURL=m3ui.js.map
|