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