@m3ui-vue/m3ui-vue 0.4.7 → 0.5.0
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/{MMenuItem-COdgD4m7.js → MMenuItem-Dw2ARZic.js} +30 -24
- package/dist/{MMenuItem-COdgD4m7.js.map → MMenuItem-Dw2ARZic.js.map} +1 -1
- package/dist/components/MAutocomplete.vue.d.ts +2 -1
- package/dist/components/MColorPicker.vue.d.ts +2 -1
- package/dist/components/MContextMenu.vue.d.ts +7 -21
- package/dist/components/MDatePicker.vue.d.ts +2 -1
- package/dist/components/MDateRangePicker.vue.d.ts +2 -1
- package/dist/components/MMaskField.vue.d.ts +2 -1
- package/dist/components/MMenuDivider.vue.d.ts +3 -0
- package/dist/components/MMenuItem.vue.d.ts +1 -0
- package/dist/components/MMultiAutocomplete.vue.d.ts +2 -1
- package/dist/components/MMultiSelect.vue.d.ts +2 -1
- package/dist/components/MNumberField.vue.d.ts +2 -1
- package/dist/components/MSelect.vue.d.ts +2 -1
- package/dist/components/MTagInput.vue.d.ts +2 -1
- package/dist/components/MTextField.vue.d.ts +2 -1
- package/dist/components/MTimePicker.vue.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +809 -877
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MAbsolute.vue +3 -2
- package/src/components/MAutocomplete.vue +3 -2
- package/src/components/MCircleProgressBar.vue +7 -5
- package/src/components/MColorPicker.vue +3 -2
- package/src/components/MContextMenu.vue +51 -38
- package/src/components/MDatePicker.vue +3 -2
- package/src/components/MDateRangePicker.vue +3 -2
- package/src/components/MMaskField.vue +3 -2
- package/src/components/MMenuDivider.vue +3 -0
- package/src/components/MMenuItem.vue +2 -0
- package/src/components/MMultiAutocomplete.vue +3 -2
- package/src/components/MMultiSelect.vue +3 -2
- package/src/components/MNumberField.vue +3 -2
- package/src/components/MSelect.vue +3 -2
- package/src/components/MSlider.vue +20 -16
- package/src/components/MTabs.vue +1 -1
- package/src/components/MTagInput.vue +3 -2
- package/src/components/MTextField.vue +3 -2
- package/src/components/MTimePicker.vue +3 -2
- package/src/components/MWindow.vue +5 -5
- package/src/index.ts +1 -1
- package/dist/components/_MContextMenuPanel.vue.d.ts +0 -13
- package/src/components/_MContextMenuPanel.vue +0 -137
package/dist/m3ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./MMenuItem-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./MMenuItem-Dw2ARZic.js";
|
|
2
2
|
import { t as f } from "./MIcon-CaEooCmZ.js";
|
|
3
3
|
import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { Fragment as m, Teleport as h, Transition as g, TransitionGroup as _, computed as v, createApp as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, defineComponent as D, h as O, inject as k, mergeProps as A, nextTick as j, normalizeClass as M, normalizeStyle as N, onBeforeUnmount as P, onMounted as F, onUnmounted as I, openBlock as L, provide as R, reactive as z, ref as B, renderList as V, renderSlot as H, resolveComponent as U, resolveDynamicComponent as W, toDisplayString as G, unref as K, useAttrs as q, useId as J, useSlots as Y, vModelText as ee, vShow as te, watch as X, watchEffect as ne, withCtx as Z, withDirectives as re, withKeys as ie, withModifiers as Q } from "vue";
|
|
@@ -579,12 +579,13 @@ var ot = /* @__PURE__ */ D({
|
|
|
579
579
|
};
|
|
580
580
|
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;
|
|
581
581
|
}
|
|
582
|
+
let e = t.top !== void 0 || t.right !== void 0 || t.bottom !== void 0 || t.left !== void 0;
|
|
582
583
|
return {
|
|
583
584
|
position: "absolute",
|
|
584
|
-
top: n(t.top),
|
|
585
|
+
top: e ? n(t.top) : "8px",
|
|
585
586
|
right: n(t.right),
|
|
586
587
|
bottom: n(t.bottom),
|
|
587
|
-
left: n(t.left),
|
|
588
|
+
left: e ? n(t.left) : "8px",
|
|
588
589
|
zIndex: t.zIndex
|
|
589
590
|
};
|
|
590
591
|
});
|
|
@@ -692,7 +693,8 @@ var ot = /* @__PURE__ */ D({
|
|
|
692
693
|
type: Boolean,
|
|
693
694
|
default: !1
|
|
694
695
|
},
|
|
695
|
-
error: {},
|
|
696
|
+
error: { type: Boolean },
|
|
697
|
+
errorLabel: {},
|
|
696
698
|
hint: {},
|
|
697
699
|
required: {
|
|
698
700
|
type: Boolean,
|
|
@@ -894,7 +896,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
894
896
|
size: 24,
|
|
895
897
|
class: M(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
896
898
|
}, null, 8, ["class"])])
|
|
897
|
-
], 6), e.error ? (L(), S("p", vt, G(e.
|
|
899
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", vt, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", yt, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
898
900
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
899
901
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
900
902
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -960,7 +962,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
960
962
|
_: 1
|
|
961
963
|
})]))], 64));
|
|
962
964
|
}
|
|
963
|
-
}), [["__scopeId", "data-v-
|
|
965
|
+
}), [["__scopeId", "data-v-aace974a"]]), Nt = {
|
|
964
966
|
key: 0,
|
|
965
967
|
class: "flex shrink-0 items-center"
|
|
966
968
|
}, Pt = { class: "flex flex-1 items-center overflow-hidden" }, Ft = {
|
|
@@ -2014,7 +2016,8 @@ var ot = /* @__PURE__ */ D({
|
|
|
2014
2016
|
"#607d8b"
|
|
2015
2017
|
] },
|
|
2016
2018
|
disabled: { type: Boolean },
|
|
2017
|
-
error: {},
|
|
2019
|
+
error: { type: Boolean },
|
|
2020
|
+
errorLabel: {},
|
|
2018
2021
|
hint: {},
|
|
2019
2022
|
fieldBg: {}
|
|
2020
2023
|
},
|
|
@@ -2120,7 +2123,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2120
2123
|
key: 0,
|
|
2121
2124
|
class: M(["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"])
|
|
2122
2125
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
2123
|
-
e.error ? (L(), S("p", Wn, G(e.
|
|
2126
|
+
e.error && e.errorLabel ? (L(), S("p", Wn, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Gn, G(e.hint), 1)) : x("", !0),
|
|
2124
2127
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
2125
2128
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2126
2129
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2188,7 +2191,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2188
2191
|
})]))
|
|
2189
2192
|
]));
|
|
2190
2193
|
}
|
|
2191
|
-
}), [["__scopeId", "data-v-
|
|
2194
|
+
}), [["__scopeId", "data-v-9cc2db5f"]]), $n = { class: "cp-box w-[328px] rounded-[28px] bg-surface-container-high px-6 pt-6 pb-4 shadow-elevation-3" }, er = { class: "mb-4 flex items-center gap-3" }, tr = { class: "text-label-medium text-on-surface-variant" }, nr = { class: "font-mono text-title-medium text-on-surface" }, rr = { class: "mb-3" }, ir = ["value"], ar = { class: "mb-3" }, or = ["value"], sr = { class: "mb-4 flex flex-wrap gap-1.5" }, cr = ["onClick"], lr = { class: "flex justify-end gap-2" }, ur = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
2192
2195
|
__name: "MColorPickerModal",
|
|
2193
2196
|
props: {
|
|
2194
2197
|
modelValue: {},
|
|
@@ -2549,156 +2552,71 @@ var ot = /* @__PURE__ */ D({
|
|
|
2549
2552
|
]);
|
|
2550
2553
|
return (e, t) => (L(), S("div", { class: M(r.value) }, [H(e.$slots, "default")], 2));
|
|
2551
2554
|
}
|
|
2552
|
-
}), Or =
|
|
2553
|
-
key: 0,
|
|
2554
|
-
class: "my-1 border-outline-variant"
|
|
2555
|
-
}, Ar = {
|
|
2556
|
-
key: 1,
|
|
2557
|
-
class: "w-[18px] shrink-0"
|
|
2558
|
-
}, jr = { class: "flex-1" }, Mr = {
|
|
2559
|
-
key: 2,
|
|
2560
|
-
class: "text-label-small text-on-surface-variant"
|
|
2561
|
-
}, Nr = /* @__PURE__ */ D({
|
|
2562
|
-
__name: "_MContextMenuPanel",
|
|
2563
|
-
props: {
|
|
2564
|
-
items: {},
|
|
2565
|
-
x: {},
|
|
2566
|
-
y: {}
|
|
2567
|
-
},
|
|
2568
|
-
emits: ["close"],
|
|
2569
|
-
setup(e, { emit: t }) {
|
|
2570
|
-
let n = e, r = t, i = B(null), a = B(n.x), o = B(n.y), s = B(null), c = B({
|
|
2571
|
-
x: 0,
|
|
2572
|
-
y: 0
|
|
2573
|
-
});
|
|
2574
|
-
F(async () => {
|
|
2575
|
-
if (await j(), !i.value) return;
|
|
2576
|
-
let e = i.value;
|
|
2577
|
-
a.value = Math.min(n.x, window.innerWidth - e.offsetWidth - 8), o.value = Math.min(n.y, window.innerHeight - e.offsetHeight - 8);
|
|
2578
|
-
});
|
|
2579
|
-
function l(e, t, n) {
|
|
2580
|
-
if (t.divider || t.disabled) {
|
|
2581
|
-
s.value = null;
|
|
2582
|
-
return;
|
|
2583
|
-
}
|
|
2584
|
-
if (!t.children?.length) {
|
|
2585
|
-
s.value = null;
|
|
2586
|
-
return;
|
|
2587
|
-
}
|
|
2588
|
-
s.value = e;
|
|
2589
|
-
let r = n.currentTarget.getBoundingClientRect(), a = i.value.getBoundingClientRect(), o = a.right, l = r.top;
|
|
2590
|
-
o + 220 > window.innerWidth && (o = a.left - 220), l + 300 > window.innerHeight && (l = Math.max(8, window.innerHeight - 300)), c.value = {
|
|
2591
|
-
x: o,
|
|
2592
|
-
y: l
|
|
2593
|
-
};
|
|
2594
|
-
}
|
|
2595
|
-
function u(e) {
|
|
2596
|
-
e.disabled || e.divider || e.children?.length || (e.onClick?.(), r("close"));
|
|
2597
|
-
}
|
|
2598
|
-
function d(e) {
|
|
2599
|
-
e.relatedTarget?.closest(".m3-ctx-panel") || (s.value = null);
|
|
2600
|
-
}
|
|
2601
|
-
return (t, n) => (L(), S(m, null, [C("div", {
|
|
2602
|
-
ref_key: "panel",
|
|
2603
|
-
ref: i,
|
|
2604
|
-
class: "m3-ctx-panel absolute z-201 min-w-[200px] overflow-hidden rounded-lg bg-surface-container shadow-elevation-2",
|
|
2605
|
-
style: N({
|
|
2606
|
-
left: `${a.value}px`,
|
|
2607
|
-
top: `${o.value}px`
|
|
2608
|
-
}),
|
|
2609
|
-
onMouseleave: d
|
|
2610
|
-
}, [C("div", Or, [(L(!0), S(m, null, V(e.items, (e, t) => (L(), S(m, { key: t }, [e.divider ? (L(), S("hr", kr)) : (L(), b(W(e.to && !e.disabled ? "RouterLink" : "div"), {
|
|
2611
|
-
key: 1,
|
|
2612
|
-
to: e.to && !e.disabled ? e.to : void 0,
|
|
2613
|
-
class: M(["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" : ""]]),
|
|
2614
|
-
onMouseenter: (n) => l(t, e, n),
|
|
2615
|
-
onClick: (t) => u(e)
|
|
2616
|
-
}, {
|
|
2617
|
-
default: Z(() => [
|
|
2618
|
-
e.icon ? (L(), b(f, {
|
|
2619
|
-
key: 0,
|
|
2620
|
-
name: e.icon,
|
|
2621
|
-
size: 18,
|
|
2622
|
-
class: M(["shrink-0", e.danger ? "text-error" : "text-on-surface-variant"])
|
|
2623
|
-
}, null, 8, ["name", "class"])) : (L(), S("span", Ar)),
|
|
2624
|
-
C("span", jr, G(e.label), 1),
|
|
2625
|
-
e.shortcut ? (L(), S("span", Mr, G(e.shortcut), 1)) : x("", !0),
|
|
2626
|
-
e.children?.length ? (L(), b(f, {
|
|
2627
|
-
key: 3,
|
|
2628
|
-
name: "chevron_right",
|
|
2629
|
-
size: 18,
|
|
2630
|
-
class: "shrink-0 text-on-surface-variant"
|
|
2631
|
-
})) : x("", !0)
|
|
2632
|
-
]),
|
|
2633
|
-
_: 2
|
|
2634
|
-
}, 1064, [
|
|
2635
|
-
"to",
|
|
2636
|
-
"class",
|
|
2637
|
-
"onMouseenter",
|
|
2638
|
-
"onClick"
|
|
2639
|
-
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (L(), b(Nr, {
|
|
2640
|
-
key: s.value,
|
|
2641
|
-
items: e.items[s.value].children,
|
|
2642
|
-
x: c.value.x,
|
|
2643
|
-
y: c.value.y,
|
|
2644
|
-
onClose: n[0] ||= (e) => r("close")
|
|
2645
|
-
}, null, 8, [
|
|
2646
|
-
"items",
|
|
2647
|
-
"x",
|
|
2648
|
-
"y"
|
|
2649
|
-
])) : x("", !0)], 64));
|
|
2650
|
-
}
|
|
2651
|
-
}), Pr = /* @__PURE__ */ D({
|
|
2555
|
+
}), Or = /* @__PURE__ */ D({
|
|
2652
2556
|
__name: "MContextMenu",
|
|
2653
|
-
props: { items: {} },
|
|
2654
2557
|
setup(e, { expose: t }) {
|
|
2655
2558
|
let n = B(!1), r = B({
|
|
2656
2559
|
x: 0,
|
|
2657
2560
|
y: 0
|
|
2658
|
-
});
|
|
2659
|
-
function
|
|
2660
|
-
|
|
2661
|
-
}
|
|
2662
|
-
function a(e, t) {
|
|
2663
|
-
r.value = {
|
|
2561
|
+
}), i = B(null);
|
|
2562
|
+
async function a(e, t) {
|
|
2563
|
+
if (r.value = {
|
|
2664
2564
|
x: e,
|
|
2665
2565
|
y: t
|
|
2666
|
-
}, n.value = !0;
|
|
2566
|
+
}, n.value = !0, await j(), !i.value) return;
|
|
2567
|
+
let a = i.value;
|
|
2568
|
+
r.value = {
|
|
2569
|
+
x: Math.min(e, window.innerWidth - a.offsetWidth - 8),
|
|
2570
|
+
y: Math.min(t, window.innerHeight - a.offsetHeight - 8)
|
|
2571
|
+
};
|
|
2667
2572
|
}
|
|
2668
|
-
function o() {
|
|
2573
|
+
function o(e) {
|
|
2574
|
+
e.preventDefault(), a(e.clientX, e.clientY);
|
|
2575
|
+
}
|
|
2576
|
+
function s() {
|
|
2669
2577
|
n.value = !1;
|
|
2670
2578
|
}
|
|
2671
|
-
|
|
2672
|
-
show:
|
|
2579
|
+
R("m-menu-close", s), t({
|
|
2580
|
+
show: o,
|
|
2673
2581
|
showAt: a,
|
|
2674
|
-
hide:
|
|
2675
|
-
})
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
"
|
|
2680
|
-
|
|
2681
|
-
|
|
2582
|
+
hide: s
|
|
2583
|
+
});
|
|
2584
|
+
function c(e) {
|
|
2585
|
+
if (!n.value) return;
|
|
2586
|
+
let t = e.target;
|
|
2587
|
+
i.value?.contains(t) || t.closest?.(".m3-submenu") || s();
|
|
2588
|
+
}
|
|
2589
|
+
function l(e) {
|
|
2590
|
+
e.key === "Escape" && s();
|
|
2591
|
+
}
|
|
2592
|
+
return F(() => {
|
|
2593
|
+
document.addEventListener("mousedown", c), document.addEventListener("keydown", l);
|
|
2594
|
+
}), I(() => {
|
|
2595
|
+
document.removeEventListener("mousedown", c), document.removeEventListener("keydown", l);
|
|
2596
|
+
}), (e, t) => (L(), S(m, null, [C("div", { onContextmenu: o }, [H(e.$slots, "trigger")], 32), (L(), b(h, { to: "body" }, [E(g, {
|
|
2597
|
+
"enter-active-class": "transition-[opacity,transform] duration-100 ease-out",
|
|
2598
|
+
"enter-from-class": "opacity-0 scale-95",
|
|
2599
|
+
"enter-to-class": "opacity-100 scale-100",
|
|
2600
|
+
"leave-active-class": "transition-[opacity,transform] duration-75 ease-in",
|
|
2601
|
+
"leave-from-class": "opacity-100 scale-100",
|
|
2602
|
+
"leave-to-class": "opacity-0 scale-95"
|
|
2682
2603
|
}, {
|
|
2683
2604
|
default: Z(() => [n.value ? (L(), S("div", {
|
|
2684
2605
|
key: 0,
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
"y"
|
|
2697
|
-
])], 32)) : x("", !0)]),
|
|
2698
|
-
_: 1
|
|
2606
|
+
ref_key: "panelEl",
|
|
2607
|
+
ref: i,
|
|
2608
|
+
class: "fixed z-[500] min-w-48 overflow-hidden rounded-lg bg-surface-container py-1 shadow-elevation-2",
|
|
2609
|
+
style: N({
|
|
2610
|
+
left: `${r.value.x}px`,
|
|
2611
|
+
top: `${r.value.y}px`,
|
|
2612
|
+
transformOrigin: "top left"
|
|
2613
|
+
}),
|
|
2614
|
+
onContextmenu: t[0] ||= Q(() => {}, ["prevent"])
|
|
2615
|
+
}, [H(e.$slots, "default")], 36)) : x("", !0)]),
|
|
2616
|
+
_: 3
|
|
2699
2617
|
})]))], 64));
|
|
2700
2618
|
}
|
|
2701
|
-
}),
|
|
2619
|
+
}), kr = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, Ar = { class: "flex items-center gap-2" }, jr = /* @__PURE__ */ D({
|
|
2702
2620
|
__name: "MPagination",
|
|
2703
2621
|
props: {
|
|
2704
2622
|
page: {},
|
|
@@ -2708,7 +2626,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2708
2626
|
emits: ["update:page"],
|
|
2709
2627
|
setup(e, { emit: t }) {
|
|
2710
2628
|
let n = e, r = t, i = v(() => Math.max(1, Math.ceil(n.total / n.perPage))), a = v(() => n.total === 0 ? "0 resultados" : `${(n.page - 1) * n.perPage + 1}-${Math.min(n.page * n.perPage, n.total)} de ${n.total}`);
|
|
2711
|
-
return (t, n) => (L(), S("div",
|
|
2629
|
+
return (t, n) => (L(), S("div", kr, [C("span", null, G(a.value), 1), C("div", Ar, [
|
|
2712
2630
|
C("span", null, "Página " + G(e.page) + " de " + G(i.value), 1),
|
|
2713
2631
|
E(s, {
|
|
2714
2632
|
icon: "chevron_left",
|
|
@@ -2724,25 +2642,25 @@ var ot = /* @__PURE__ */ D({
|
|
|
2724
2642
|
}, null, 8, ["disabled"])
|
|
2725
2643
|
])]));
|
|
2726
2644
|
}
|
|
2727
|
-
}),
|
|
2645
|
+
}), Mr = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Nr = {
|
|
2728
2646
|
key: 0,
|
|
2729
2647
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
2730
|
-
},
|
|
2648
|
+
}, Pr = {
|
|
2731
2649
|
key: 0,
|
|
2732
2650
|
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"
|
|
2733
|
-
},
|
|
2651
|
+
}, Fr = ["placeholder"], Ir = {
|
|
2734
2652
|
key: 0,
|
|
2735
2653
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
2736
|
-
},
|
|
2654
|
+
}, Lr = {
|
|
2737
2655
|
key: 1,
|
|
2738
2656
|
class: "relative"
|
|
2739
|
-
},
|
|
2657
|
+
}, Rr = {
|
|
2740
2658
|
key: 0,
|
|
2741
2659
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
2742
|
-
},
|
|
2660
|
+
}, zr = { class: "text-body-small text-on-surface" }, Br = { class: "overflow-x-auto" }, Vr = { class: "w-full border-collapse" }, Hr = { class: "bg-surface-container-high" }, Ur = ["onClick"], Wr = { class: "inline-flex items-center gap-1" }, Gr = {
|
|
2743
2661
|
key: 0,
|
|
2744
2662
|
class: "inline-flex"
|
|
2745
|
-
},
|
|
2663
|
+
}, Kr = ["onPointerdown"], qr = { key: 1 }, Jr = ["colspan"], Yr = { class: "text-body-medium text-on-surface-variant" }, Xr = ["onClick"], Zr = ["onClick"], Qr = { key: 0 }, $r = ["colspan"], ei = { class: "dt-expand-body" }, ti = { class: "px-6 py-4" }, ni = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, ri = { class: "text-label-small text-on-surface-variant" }, ii = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
2746
2664
|
__name: "MDataTable",
|
|
2747
2665
|
props: {
|
|
2748
2666
|
columns: {},
|
|
@@ -2956,9 +2874,9 @@ var ot = /* @__PURE__ */ D({
|
|
|
2956
2874
|
minWidth: e.minWidth
|
|
2957
2875
|
};
|
|
2958
2876
|
}
|
|
2959
|
-
return (t, r) => (L(), S("div",
|
|
2960
|
-
e.searchable || e.columnToggle || e.exportable || t.$slots.toolbar ? (L(), S("div",
|
|
2961
|
-
e.searchable ? (L(), S("div",
|
|
2877
|
+
return (t, r) => (L(), S("div", Mr, [
|
|
2878
|
+
e.searchable || e.columnToggle || e.exportable || t.$slots.toolbar ? (L(), S("div", Nr, [
|
|
2879
|
+
e.searchable ? (L(), S("div", Pr, [
|
|
2962
2880
|
E(f, {
|
|
2963
2881
|
name: "search",
|
|
2964
2882
|
size: 16,
|
|
@@ -2969,7 +2887,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2969
2887
|
type: "text",
|
|
2970
2888
|
placeholder: e.searchPlaceholder ?? K(n).search,
|
|
2971
2889
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
2972
|
-
}, null, 8,
|
|
2890
|
+
}, null, 8, Fr), [[ee, d.value]]),
|
|
2973
2891
|
d.value ? (L(), S("button", {
|
|
2974
2892
|
key: 0,
|
|
2975
2893
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -2986,21 +2904,21 @@ var ot = /* @__PURE__ */ D({
|
|
|
2986
2904
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
2987
2905
|
"leave-to-class": "opacity-0 scale-90"
|
|
2988
2906
|
}, {
|
|
2989
|
-
default: Z(() => [e.selectable && W.value.length > 0 ? (L(), S("span",
|
|
2907
|
+
default: Z(() => [e.selectable && W.value.length > 0 ? (L(), S("span", Ir, G(W.value.length) + " " + G(e.selectedText ?? K(n).selectedCount) + G(W.value.length === 1 ? "" : "s"), 1)) : x("", !0)]),
|
|
2990
2908
|
_: 1
|
|
2991
2909
|
}),
|
|
2992
|
-
e.columnToggle ? (L(), S("div",
|
|
2910
|
+
e.columnToggle ? (L(), S("div", Lr, [E(s, {
|
|
2993
2911
|
icon: "view_column",
|
|
2994
2912
|
label: e.columnsLabel ?? K(n).columns,
|
|
2995
2913
|
size: 36,
|
|
2996
2914
|
onClick: r[2] ||= (e) => O.value = !O.value
|
|
2997
|
-
}, null, 8, ["label"]), O.value ? (L(), S("div",
|
|
2915
|
+
}, null, 8, ["label"]), O.value ? (L(), S("div", Rr, [(L(!0), S(m, null, V(e.columns, (e) => (L(), S("label", {
|
|
2998
2916
|
key: e.key,
|
|
2999
2917
|
class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
|
|
3000
2918
|
}, [E(zn, {
|
|
3001
2919
|
"model-value": !w.value.has(e.key),
|
|
3002
2920
|
"onUpdate:modelValue": (t) => w.value.has(e.key) ? w.value.delete(e.key) : w.value.add(e.key)
|
|
3003
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]), C("span",
|
|
2921
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]), C("span", zr, G(e.label), 1)]))), 128))])) : x("", !0)])) : x("", !0),
|
|
3004
2922
|
e.exportable ? (L(), b(s, {
|
|
3005
2923
|
key: 2,
|
|
3006
2924
|
icon: "download",
|
|
@@ -3009,7 +2927,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3009
2927
|
onClick: ge
|
|
3010
2928
|
}, null, 8, ["label"])) : x("", !0)
|
|
3011
2929
|
])) : x("", !0),
|
|
3012
|
-
C("div",
|
|
2930
|
+
C("div", Br, [C("table", Vr, [C("thead", { class: M(e.stickyHeader ? "sticky top-0 z-1" : "") }, [C("tr", Hr, [
|
|
3013
2931
|
u.value ? (L(), S("th", {
|
|
3014
2932
|
key: 0,
|
|
3015
2933
|
class: M(["w-10 px-2", e.dense ? "py-2" : "py-3"])
|
|
@@ -3032,7 +2950,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3032
2950
|
t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
3033
2951
|
]),
|
|
3034
2952
|
onClick: (e) => t.sortable ? A(t.key) : void 0
|
|
3035
|
-
}, [C("span",
|
|
2953
|
+
}, [C("span", Wr, [T(G(t.label) + " ", 1), t.sortable ? (L(), S("span", Gr, [p.value === t.key && h.value === "asc" ? (L(), b(f, {
|
|
3036
2954
|
key: 0,
|
|
3037
2955
|
name: "arrow_upward",
|
|
3038
2956
|
size: 14,
|
|
@@ -3051,7 +2969,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3051
2969
|
key: 0,
|
|
3052
2970
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
3053
2971
|
onPointerdown: (e) => pe(e, t)
|
|
3054
|
-
}, null, 40,
|
|
2972
|
+
}, null, 40, Kr)) : x("", !0)], 14, Ur))), 128)),
|
|
3055
2973
|
l.value ? (L(), S("th", {
|
|
3056
2974
|
key: 2,
|
|
3057
2975
|
class: M(["w-1 px-4", e.dense ? "py-2" : "py-3"])
|
|
@@ -3079,14 +2997,14 @@ var ot = /* @__PURE__ */ D({
|
|
|
3079
2997
|
key: 2,
|
|
3080
2998
|
class: M(e.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
3081
2999
|
}, [...r[7] ||= [C("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : x("", !0)
|
|
3082
|
-
]))), 128)) : R.value.length === 0 ? (L(), S("tr",
|
|
3000
|
+
]))), 128)) : R.value.length === 0 ? (L(), S("tr", qr, [C("td", {
|
|
3083
3001
|
colspan: k.value.length + se.value,
|
|
3084
3002
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
3085
3003
|
}, [H(t.$slots, "empty", {}, () => [E(f, {
|
|
3086
3004
|
name: "search_off",
|
|
3087
3005
|
size: 36,
|
|
3088
3006
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
3089
|
-
}), C("p",
|
|
3007
|
+
}), C("p", Yr, G(e.emptyText ?? K(n).noResults), 1)], !0)], 8, Jr)])) : (L(!0), S(m, { key: 2 }, V(R.value, (i) => (L(), S(m, { key: q(i) }, [C("tr", {
|
|
3090
3008
|
class: M([
|
|
3091
3009
|
"border-t border-outline-variant transition-colors duration-100",
|
|
3092
3010
|
"hover:bg-on-surface/4",
|
|
@@ -3118,7 +3036,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3118
3036
|
}, [E(zn, {
|
|
3119
3037
|
"model-value": J(i),
|
|
3120
3038
|
"onUpdate:modelValue": (e) => te(i)
|
|
3121
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
3039
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, Zr)) : x("", !0),
|
|
3122
3040
|
(L(!0), S(m, null, V(k.value, (n) => (L(), S("td", {
|
|
3123
3041
|
key: n.key,
|
|
3124
3042
|
class: M([
|
|
@@ -3136,11 +3054,11 @@ var ot = /* @__PURE__ */ D({
|
|
|
3136
3054
|
class: M(["text-right", e.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
3137
3055
|
onClick: r[4] ||= Q(() => {}, ["stop"])
|
|
3138
3056
|
}, [H(t.$slots, "row-actions", { row: i }, void 0, !0)], 2)) : x("", !0)
|
|
3139
|
-
], 10,
|
|
3057
|
+
], 10, Xr), u.value ? (L(), S("tr", Qr, [C("td", {
|
|
3140
3058
|
colspan: k.value.length + se.value,
|
|
3141
3059
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest p-0"
|
|
3142
|
-
}, [C("div", { class: M(["dt-expand-grid", oe(i) ? "dt-expand-open" : ""]) }, [C("div",
|
|
3143
|
-
C("div",
|
|
3060
|
+
}, [C("div", { class: M(["dt-expand-grid", oe(i) ? "dt-expand-open" : ""]) }, [C("div", ei, [C("div", ti, [H(t.$slots, "row-expand", { row: i }, void 0, !0)])])], 2)], 8, $r)])) : x("", !0)], 64))), 128))])])]),
|
|
3061
|
+
C("div", ni, [C("span", ri, G(I.value) + " " + G(e.recordsText ?? K(n).recordCount) + G(I.value === 1 ? "" : "s"), 1), E(jr, {
|
|
3144
3062
|
page: j.value,
|
|
3145
3063
|
"per-page": e.perPage,
|
|
3146
3064
|
total: I.value,
|
|
@@ -3152,19 +3070,19 @@ var ot = /* @__PURE__ */ D({
|
|
|
3152
3070
|
])])
|
|
3153
3071
|
]));
|
|
3154
3072
|
}
|
|
3155
|
-
}), [["__scopeId", "data-v-857139c7"]]),
|
|
3073
|
+
}), [["__scopeId", "data-v-857139c7"]]), ai = { class: "flex flex-col gap-1" }, oi = {
|
|
3156
3074
|
key: 0,
|
|
3157
3075
|
class: "flex-1 text-on-surface"
|
|
3158
|
-
},
|
|
3076
|
+
}, si = {
|
|
3159
3077
|
key: 1,
|
|
3160
3078
|
class: "flex-1 text-on-surface-variant"
|
|
3161
|
-
},
|
|
3079
|
+
}, ci = {
|
|
3162
3080
|
key: 0,
|
|
3163
3081
|
class: "px-4 text-body-small text-error"
|
|
3164
|
-
},
|
|
3082
|
+
}, li = {
|
|
3165
3083
|
key: 1,
|
|
3166
3084
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
3167
|
-
},
|
|
3085
|
+
}, ui = { class: "mb-3 flex items-center justify-between" }, di = { class: "text-title-small font-medium capitalize text-on-surface" }, fi = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, pi = { class: "grid grid-cols-7 gap-0.5" }, mi = ["disabled", "onClick"], hi = /* @__PURE__ */ D({
|
|
3168
3086
|
__name: "MDatePicker",
|
|
3169
3087
|
props: {
|
|
3170
3088
|
modelValue: {},
|
|
@@ -3173,7 +3091,8 @@ var ot = /* @__PURE__ */ D({
|
|
|
3173
3091
|
min: {},
|
|
3174
3092
|
max: {},
|
|
3175
3093
|
disabled: { type: Boolean },
|
|
3176
|
-
error: {},
|
|
3094
|
+
error: { type: Boolean },
|
|
3095
|
+
errorLabel: {},
|
|
3177
3096
|
hint: {},
|
|
3178
3097
|
locale: { default: "es-ES" },
|
|
3179
3098
|
fieldBg: {},
|
|
@@ -3280,7 +3199,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3280
3199
|
e ? (H(), setTimeout(() => document.addEventListener("mousedown", U), 0)) : document.removeEventListener("mousedown", U);
|
|
3281
3200
|
}), F(() => window.addEventListener("scroll", W, !0)), I(() => {
|
|
3282
3201
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", U);
|
|
3283
|
-
}), (t, n) => (L(), S("div",
|
|
3202
|
+
}), (t, n) => (L(), S("div", ai, [
|
|
3284
3203
|
C("div", {
|
|
3285
3204
|
ref_key: "triggerEl",
|
|
3286
3205
|
ref: l,
|
|
@@ -3296,7 +3215,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3296
3215
|
size: 20,
|
|
3297
3216
|
class: "shrink-0 text-on-surface-variant"
|
|
3298
3217
|
}),
|
|
3299
|
-
z.value ? (L(), S("span",
|
|
3218
|
+
z.value ? (L(), S("span", oi, G(z.value), 1)) : (L(), S("span", si, G(e.placeholder || e.label || K(a).selectDate), 1)),
|
|
3300
3219
|
e.modelValue ? (L(), b(f, {
|
|
3301
3220
|
key: 2,
|
|
3302
3221
|
name: "close",
|
|
@@ -3308,7 +3227,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3308
3227
|
key: 0,
|
|
3309
3228
|
class: M(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
3310
3229
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
3311
|
-
e.error ? (L(), S("p",
|
|
3230
|
+
e.error && e.errorLabel ? (L(), S("p", ci, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", li, G(e.hint), 1)) : x("", !0),
|
|
3312
3231
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
3313
3232
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
3314
3233
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -3322,14 +3241,14 @@ var ot = /* @__PURE__ */ D({
|
|
|
3322
3241
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
3323
3242
|
style: N(d.value)
|
|
3324
3243
|
}, [
|
|
3325
|
-
C("div",
|
|
3244
|
+
C("div", ui, [
|
|
3326
3245
|
E(s, {
|
|
3327
3246
|
icon: "chevron_left",
|
|
3328
3247
|
label: e.prevMonthLabel ?? K(a).previousMonth,
|
|
3329
3248
|
size: 36,
|
|
3330
3249
|
onClick: A
|
|
3331
3250
|
}, null, 8, ["label"]),
|
|
3332
|
-
C("span",
|
|
3251
|
+
C("span", di, G(w.value), 1),
|
|
3333
3252
|
E(s, {
|
|
3334
3253
|
icon: "chevron_right",
|
|
3335
3254
|
label: e.nextMonthLabel ?? K(a).nextMonth,
|
|
@@ -3337,29 +3256,29 @@ var ot = /* @__PURE__ */ D({
|
|
|
3337
3256
|
onClick: j
|
|
3338
3257
|
}, null, 8, ["label"])
|
|
3339
3258
|
]),
|
|
3340
|
-
C("div",
|
|
3259
|
+
C("div", fi, [(L(!0), S(m, null, V(K(y), (e) => (L(), S("span", {
|
|
3341
3260
|
key: e,
|
|
3342
3261
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3343
3262
|
}, G(e), 1))), 128))]),
|
|
3344
|
-
C("div",
|
|
3263
|
+
C("div", pi, [(L(!0), S(m, null, V(T.value, (t, n) => (L(), S("button", {
|
|
3345
3264
|
key: n,
|
|
3346
3265
|
type: "button",
|
|
3347
3266
|
class: M(["flex h-9 w-full items-center justify-center rounded-full text-body-medium transition-colors duration-100", [t.disabled ? "cursor-not-allowed text-on-surface/25" : t.iso === e.modelValue ? "bg-primary text-on-primary" : k(t.iso) ? "border border-primary text-primary cursor-pointer hover:bg-primary/8" : t.current ? "cursor-pointer text-on-surface hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 hover:bg-on-surface/4"]]),
|
|
3348
3267
|
disabled: t.disabled,
|
|
3349
3268
|
onClick: (e) => P(t)
|
|
3350
|
-
}, G(t.date), 11,
|
|
3269
|
+
}, G(t.date), 11, mi))), 128))])
|
|
3351
3270
|
], 4)) : x("", !0)]),
|
|
3352
3271
|
_: 1
|
|
3353
3272
|
})]))
|
|
3354
3273
|
]));
|
|
3355
3274
|
}
|
|
3356
|
-
}),
|
|
3275
|
+
}), gi = { class: "dp-box w-[360px] rounded-[28px] bg-surface-container-high shadow-elevation-3" }, _i = { class: "px-6 pt-6 pb-4" }, vi = { class: "mb-3 text-label-medium text-on-surface-variant" }, yi = { class: "flex items-center justify-between" }, bi = { class: "text-headline-medium font-medium capitalize text-on-surface" }, xi = {
|
|
3357
3276
|
key: 0,
|
|
3358
3277
|
class: "px-4 pt-3 pb-2"
|
|
3359
|
-
},
|
|
3278
|
+
}, Si = { class: "mb-2 flex items-center justify-between" }, Ci = { class: "text-title-small font-medium capitalize text-on-surface" }, wi = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Ti = { class: "grid grid-cols-7 gap-0.5" }, Ei = ["disabled", "onClick"], Di = {
|
|
3360
3279
|
key: 1,
|
|
3361
3280
|
class: "px-6 py-6"
|
|
3362
|
-
},
|
|
3281
|
+
}, Oi = { class: "flex justify-end gap-2 px-6 pb-4" }, ki = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
3363
3282
|
__name: "MDatePickerModal",
|
|
3364
3283
|
props: {
|
|
3365
3284
|
modelValue: { default: null },
|
|
@@ -3470,22 +3389,22 @@ var ot = /* @__PURE__ */ D({
|
|
|
3470
3389
|
key: 0,
|
|
3471
3390
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
3472
3391
|
onClick: Q(I, ["self"])
|
|
3473
|
-
}, [C("div",
|
|
3474
|
-
C("div",
|
|
3392
|
+
}, [C("div", gi, [
|
|
3393
|
+
C("div", _i, [C("p", vi, G(t.title || K(a).selectDate), 1), C("div", yi, [C("span", bi, G(j.value), 1), E(s, {
|
|
3475
3394
|
icon: c.value === "calendar" ? "edit" : "calendar_today",
|
|
3476
3395
|
label: c.value === "calendar" ? "Switch to input" : "Switch to calendar",
|
|
3477
3396
|
onClick: r[0] ||= (e) => c.value = c.value === "calendar" ? "input" : "calendar"
|
|
3478
3397
|
}, null, 8, ["icon", "label"])])]),
|
|
3479
3398
|
r[4] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
3480
|
-
c.value === "calendar" ? (L(), S("div",
|
|
3481
|
-
C("div",
|
|
3399
|
+
c.value === "calendar" ? (L(), S("div", xi, [
|
|
3400
|
+
C("div", Si, [
|
|
3482
3401
|
E(s, {
|
|
3483
3402
|
icon: "chevron_left",
|
|
3484
3403
|
label: K(a).previousMonth,
|
|
3485
3404
|
size: 36,
|
|
3486
3405
|
onClick: O
|
|
3487
3406
|
}, null, 8, ["label"]),
|
|
3488
|
-
C("span",
|
|
3407
|
+
C("span", Ci, G(p.value), 1),
|
|
3489
3408
|
E(s, {
|
|
3490
3409
|
icon: "chevron_right",
|
|
3491
3410
|
label: K(a).nextMonth,
|
|
@@ -3493,18 +3412,18 @@ var ot = /* @__PURE__ */ D({
|
|
|
3493
3412
|
onClick: k
|
|
3494
3413
|
}, null, 8, ["label"])
|
|
3495
3414
|
]),
|
|
3496
|
-
C("div",
|
|
3415
|
+
C("div", wi, [(L(!0), S(m, null, V(f.value, (e) => (L(), S("span", {
|
|
3497
3416
|
key: e,
|
|
3498
3417
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3499
3418
|
}, G(e), 1))), 128))]),
|
|
3500
|
-
C("div",
|
|
3419
|
+
C("div", Ti, [(L(!0), S(m, null, V(_.value, (e, t) => (L(), S("button", {
|
|
3501
3420
|
key: t,
|
|
3502
3421
|
type: "button",
|
|
3503
3422
|
class: M(["flex h-10 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 === l.value ? "bg-primary text-on-primary" : e.iso === K(D) ? "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"]]),
|
|
3504
3423
|
disabled: e.disabled,
|
|
3505
3424
|
onClick: (t) => A(e)
|
|
3506
|
-
}, G(e.date), 11,
|
|
3507
|
-
])) : (L(), S("div",
|
|
3425
|
+
}, G(e.date), 11, Ei))), 128))])
|
|
3426
|
+
])) : (L(), S("div", Di, [r[2] ||= C("label", { class: "mb-2 block text-label-medium text-on-surface-variant" }, "Date (DD/MM/YYYY)", -1), re(C("input", {
|
|
3508
3427
|
"onUpdate:modelValue": r[1] ||= (e) => d.value = e,
|
|
3509
3428
|
type: "text",
|
|
3510
3429
|
placeholder: "23/06/2026",
|
|
@@ -3513,7 +3432,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3513
3432
|
onKeydown: ie(F, ["enter"]),
|
|
3514
3433
|
onBlur: F
|
|
3515
3434
|
}, null, 544), [[ee, d.value]])])),
|
|
3516
|
-
C("div",
|
|
3435
|
+
C("div", Oi, [E(e, {
|
|
3517
3436
|
variant: "text",
|
|
3518
3437
|
onClick: I
|
|
3519
3438
|
}, {
|
|
@@ -3531,23 +3450,23 @@ var ot = /* @__PURE__ */ D({
|
|
|
3531
3450
|
_: 1
|
|
3532
3451
|
})]));
|
|
3533
3452
|
}
|
|
3534
|
-
}), [["__scopeId", "data-v-ac5f05d4"]]),
|
|
3453
|
+
}), [["__scopeId", "data-v-ac5f05d4"]]), Ai = { class: "flex flex-col gap-1" }, ji = {
|
|
3535
3454
|
key: 0,
|
|
3536
3455
|
class: "flex-1 text-on-surface"
|
|
3537
|
-
},
|
|
3456
|
+
}, Mi = {
|
|
3538
3457
|
key: 1,
|
|
3539
3458
|
class: "flex-1 text-on-surface-variant"
|
|
3540
|
-
},
|
|
3459
|
+
}, Ni = {
|
|
3541
3460
|
key: 0,
|
|
3542
3461
|
class: "px-4 text-body-small text-error"
|
|
3543
|
-
},
|
|
3462
|
+
}, Pi = {
|
|
3544
3463
|
key: 1,
|
|
3545
3464
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
3546
|
-
},
|
|
3465
|
+
}, Fi = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, Ii = { class: "mb-3 flex items-center justify-between" }, Li = { class: "text-title-small font-medium capitalize text-on-surface" }, Ri = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, zi = { class: "grid grid-cols-7 gap-0.5" }, Bi = [
|
|
3547
3466
|
"disabled",
|
|
3548
3467
|
"onMouseenter",
|
|
3549
3468
|
"onClick"
|
|
3550
|
-
],
|
|
3469
|
+
], Vi = /* @__PURE__ */ D({
|
|
3551
3470
|
__name: "MDateRangePicker",
|
|
3552
3471
|
props: {
|
|
3553
3472
|
modelValue: {},
|
|
@@ -3556,7 +3475,8 @@ var ot = /* @__PURE__ */ D({
|
|
|
3556
3475
|
min: {},
|
|
3557
3476
|
max: {},
|
|
3558
3477
|
disabled: { type: Boolean },
|
|
3559
|
-
error: {},
|
|
3478
|
+
error: { type: Boolean },
|
|
3479
|
+
errorLabel: {},
|
|
3560
3480
|
hint: {},
|
|
3561
3481
|
locale: { default: "es-ES" },
|
|
3562
3482
|
fieldBg: {},
|
|
@@ -3680,7 +3600,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3680
3600
|
e ? (d.value = i.modelValue.start && !i.modelValue.end ? "end" : "start", q(), setTimeout(() => document.addEventListener("mousedown", J), 0)) : document.removeEventListener("mousedown", J);
|
|
3681
3601
|
}), F(() => window.addEventListener("scroll", Y, !0)), I(() => {
|
|
3682
3602
|
window.removeEventListener("scroll", Y, !0), document.removeEventListener("mousedown", J);
|
|
3683
|
-
}), (t, n) => (L(), S("div",
|
|
3603
|
+
}), (t, n) => (L(), S("div", Ai, [
|
|
3684
3604
|
C("div", {
|
|
3685
3605
|
ref_key: "triggerEl",
|
|
3686
3606
|
ref: l,
|
|
@@ -3696,7 +3616,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3696
3616
|
size: 20,
|
|
3697
3617
|
class: "shrink-0 text-on-surface-variant"
|
|
3698
3618
|
}),
|
|
3699
|
-
U.value ? (L(), S("span",
|
|
3619
|
+
U.value ? (L(), S("span", ji, G(U.value), 1)) : (L(), S("span", Mi, G(e.label || e.placeholder || K(a).selectRange), 1)),
|
|
3700
3620
|
e.modelValue.start || e.modelValue.end ? (L(), b(f, {
|
|
3701
3621
|
key: 2,
|
|
3702
3622
|
name: "close",
|
|
@@ -3708,7 +3628,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3708
3628
|
key: 0,
|
|
3709
3629
|
class: M(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
3710
3630
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
3711
|
-
e.error ? (L(), S("p",
|
|
3631
|
+
e.error && e.errorLabel ? (L(), S("p", Ni, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Pi, G(e.hint), 1)) : x("", !0),
|
|
3712
3632
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
3713
3633
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
3714
3634
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -3722,15 +3642,15 @@ var ot = /* @__PURE__ */ D({
|
|
|
3722
3642
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
3723
3643
|
style: N(_.value)
|
|
3724
3644
|
}, [
|
|
3725
|
-
C("p",
|
|
3726
|
-
C("div",
|
|
3645
|
+
C("p", Fi, G(d.value === "start" ? e.pickStartText ?? K(a).pickStart : e.pickEndText ?? K(a).pickEnd), 1),
|
|
3646
|
+
C("div", Ii, [
|
|
3727
3647
|
E(s, {
|
|
3728
3648
|
icon: "chevron_left",
|
|
3729
3649
|
label: e.prevMonthLabel ?? K(a).previousMonth,
|
|
3730
3650
|
size: 36,
|
|
3731
3651
|
onClick: z
|
|
3732
3652
|
}, null, 8, ["label"]),
|
|
3733
|
-
C("span",
|
|
3653
|
+
C("span", Li, G(D.value), 1),
|
|
3734
3654
|
E(s, {
|
|
3735
3655
|
icon: "chevron_right",
|
|
3736
3656
|
label: e.nextMonthLabel ?? K(a).nextMonth,
|
|
@@ -3738,28 +3658,28 @@ var ot = /* @__PURE__ */ D({
|
|
|
3738
3658
|
onClick: H
|
|
3739
3659
|
}, null, 8, ["label"])
|
|
3740
3660
|
]),
|
|
3741
|
-
C("div",
|
|
3661
|
+
C("div", Ri, [(L(!0), S(m, null, V(K(T), (e) => (L(), S("span", {
|
|
3742
3662
|
key: e,
|
|
3743
3663
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3744
3664
|
}, G(e), 1))), 128))]),
|
|
3745
|
-
C("div",
|
|
3665
|
+
C("div", zi, [(L(!0), S(m, null, V(O.value, (t, n) => (L(), S("button", {
|
|
3746
3666
|
key: n,
|
|
3747
3667
|
type: "button",
|
|
3748
3668
|
class: M(["flex h-9 w-full items-center justify-center text-body-medium transition-colors duration-100", [t.disabled ? "cursor-not-allowed text-on-surface/25 rounded-full" : t.iso === e.modelValue.start || t.iso === e.modelValue.end ? "bg-primary text-on-primary rounded-full" : R(t.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : t.iso === K(j) ? "border border-primary text-primary rounded-full cursor-pointer hover:bg-primary/8" : t.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"]]),
|
|
3749
3669
|
disabled: t.disabled,
|
|
3750
3670
|
onMouseenter: (e) => d.value === "end" && (p.value = t.iso),
|
|
3751
3671
|
onClick: (e) => P(t)
|
|
3752
|
-
}, G(t.date), 43,
|
|
3672
|
+
}, G(t.date), 43, Bi))), 128))])
|
|
3753
3673
|
], 4)) : x("", !0)]),
|
|
3754
3674
|
_: 1
|
|
3755
3675
|
})]))
|
|
3756
3676
|
]));
|
|
3757
3677
|
}
|
|
3758
|
-
}),
|
|
3678
|
+
}), Hi = { class: "drp-box w-[360px] rounded-[28px] bg-surface-container-high shadow-elevation-3" }, Ui = { class: "px-6 pt-6 pb-4" }, Wi = { class: "mb-3 text-label-medium text-on-surface-variant" }, Gi = { class: "flex items-center gap-3" }, Ki = { class: "text-label-small text-on-surface-variant" }, qi = { class: "text-title-medium font-medium capitalize" }, Ji = { class: "text-label-small text-on-surface-variant" }, Yi = { class: "text-title-medium font-medium capitalize" }, Xi = { class: "px-4 pt-3 pb-2" }, Zi = { class: "mb-2 flex items-center justify-between" }, Qi = { class: "text-title-small font-medium capitalize text-on-surface" }, $i = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, ea = { class: "grid grid-cols-7 gap-0.5" }, ta = [
|
|
3759
3679
|
"disabled",
|
|
3760
3680
|
"onMouseenter",
|
|
3761
3681
|
"onClick"
|
|
3762
|
-
],
|
|
3682
|
+
], na = { class: "flex justify-end gap-2 px-6 py-4" }, ra = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
3763
3683
|
__name: "MDateRangePickerModal",
|
|
3764
3684
|
props: {
|
|
3765
3685
|
modelValue: {},
|
|
@@ -3866,28 +3786,28 @@ var ot = /* @__PURE__ */ D({
|
|
|
3866
3786
|
key: 0,
|
|
3867
3787
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
3868
3788
|
onClick: Q(F, ["self"])
|
|
3869
|
-
}, [C("div",
|
|
3870
|
-
C("div",
|
|
3789
|
+
}, [C("div", Hi, [
|
|
3790
|
+
C("div", Ui, [C("p", Wi, G(t.title || K(a).selectRange), 1), C("div", Gi, [
|
|
3871
3791
|
C("div", {
|
|
3872
3792
|
class: M(["flex-1 rounded-lg px-3 py-2 text-center transition-colors", c.value === "start" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface"]),
|
|
3873
3793
|
onClick: r[0] ||= (e) => c.value = "start"
|
|
3874
|
-
}, [C("p",
|
|
3794
|
+
}, [C("p", Ki, G(K(a).pickStart), 1), C("p", qi, G(P(l.value)), 1)], 2),
|
|
3875
3795
|
r[2] ||= C("span", { class: "text-on-surface-variant" }, "→", -1),
|
|
3876
3796
|
C("div", {
|
|
3877
3797
|
class: M(["flex-1 rounded-lg px-3 py-2 text-center transition-colors", c.value === "end" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface"]),
|
|
3878
3798
|
onClick: r[1] ||= (e) => l.value && (c.value = "end")
|
|
3879
|
-
}, [C("p",
|
|
3799
|
+
}, [C("p", Ji, G(K(a).pickEnd), 1), C("p", Yi, G(P(u.value)), 1)], 2)
|
|
3880
3800
|
])]),
|
|
3881
3801
|
r[4] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
3882
|
-
C("div",
|
|
3883
|
-
C("div",
|
|
3802
|
+
C("div", Xi, [
|
|
3803
|
+
C("div", Zi, [
|
|
3884
3804
|
E(s, {
|
|
3885
3805
|
icon: "chevron_left",
|
|
3886
3806
|
label: K(a).previousMonth,
|
|
3887
3807
|
size: 36,
|
|
3888
3808
|
onClick: k
|
|
3889
3809
|
}, null, 8, ["label"]),
|
|
3890
|
-
C("span",
|
|
3810
|
+
C("span", Qi, G(_.value), 1),
|
|
3891
3811
|
E(s, {
|
|
3892
3812
|
icon: "chevron_right",
|
|
3893
3813
|
label: K(a).nextMonth,
|
|
@@ -3895,20 +3815,20 @@ var ot = /* @__PURE__ */ D({
|
|
|
3895
3815
|
onClick: A
|
|
3896
3816
|
}, null, 8, ["label"])
|
|
3897
3817
|
]),
|
|
3898
|
-
C("div",
|
|
3818
|
+
C("div", $i, [(L(!0), S(m, null, V(p.value, (e) => (L(), S("span", {
|
|
3899
3819
|
key: e,
|
|
3900
3820
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3901
3821
|
}, G(e), 1))), 128))]),
|
|
3902
|
-
C("div",
|
|
3822
|
+
C("div", ea, [(L(!0), S(m, null, V(y.value, (e, t) => (L(), S("button", {
|
|
3903
3823
|
key: t,
|
|
3904
3824
|
type: "button",
|
|
3905
3825
|
class: M(["flex h-10 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 === l.value || e.iso === u.value ? "bg-primary text-on-primary rounded-full" : N(e.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : e.iso === K(O) ? "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"]]),
|
|
3906
3826
|
disabled: e.disabled,
|
|
3907
3827
|
onMouseenter: (t) => c.value === "end" && (d.value = e.iso),
|
|
3908
3828
|
onClick: (t) => j(e)
|
|
3909
|
-
}, G(e.date), 43,
|
|
3829
|
+
}, G(e.date), 43, ta))), 128))])
|
|
3910
3830
|
]),
|
|
3911
|
-
C("div",
|
|
3831
|
+
C("div", na, [E(e, {
|
|
3912
3832
|
variant: "text",
|
|
3913
3833
|
onClick: F
|
|
3914
3834
|
}, {
|
|
@@ -3926,17 +3846,17 @@ var ot = /* @__PURE__ */ D({
|
|
|
3926
3846
|
_: 1
|
|
3927
3847
|
})]));
|
|
3928
3848
|
}
|
|
3929
|
-
}), [["__scopeId", "data-v-fcb7a791"]]),
|
|
3849
|
+
}), [["__scopeId", "data-v-fcb7a791"]]), ia = {
|
|
3930
3850
|
key: 0,
|
|
3931
3851
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
3932
|
-
},
|
|
3852
|
+
}, aa = {
|
|
3933
3853
|
key: 1,
|
|
3934
3854
|
class: "h-px flex-1 bg-outline-variant"
|
|
3935
|
-
},
|
|
3855
|
+
}, oa = {
|
|
3936
3856
|
key: 1,
|
|
3937
3857
|
class: "w-px self-stretch bg-outline-variant",
|
|
3938
3858
|
role: "separator"
|
|
3939
|
-
},
|
|
3859
|
+
}, sa = /* @__PURE__ */ D({
|
|
3940
3860
|
__name: "MDivider",
|
|
3941
3861
|
props: {
|
|
3942
3862
|
vertical: {
|
|
@@ -3950,25 +3870,25 @@ var ot = /* @__PURE__ */ D({
|
|
|
3950
3870
|
}
|
|
3951
3871
|
},
|
|
3952
3872
|
setup(e) {
|
|
3953
|
-
return (t, n) => e.vertical ? (L(), S("div",
|
|
3873
|
+
return (t, n) => e.vertical ? (L(), S("div", oa)) : (L(), S("div", {
|
|
3954
3874
|
key: 0,
|
|
3955
3875
|
class: M(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
3956
3876
|
role: "separator"
|
|
3957
3877
|
}, [
|
|
3958
3878
|
n[0] ||= C("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
3959
|
-
e.label ? (L(), S("span",
|
|
3960
|
-
e.label ? (L(), S("div",
|
|
3879
|
+
e.label ? (L(), S("span", ia, G(e.label), 1)) : x("", !0),
|
|
3880
|
+
e.label ? (L(), S("div", aa)) : x("", !0)
|
|
3961
3881
|
], 2));
|
|
3962
3882
|
}
|
|
3963
|
-
}),
|
|
3883
|
+
}), ca = {
|
|
3964
3884
|
class: "flex flex-col",
|
|
3965
3885
|
role: "listbox"
|
|
3966
|
-
},
|
|
3886
|
+
}, la = [
|
|
3967
3887
|
"draggable",
|
|
3968
3888
|
"onDragstart",
|
|
3969
3889
|
"onDragover",
|
|
3970
3890
|
"onDrop"
|
|
3971
|
-
],
|
|
3891
|
+
], ua = ["onDragstart"], da = { class: "min-w-0 flex-1" }, fa = { class: "text-body-medium text-on-surface" }, pa = /* @__PURE__ */ D({
|
|
3972
3892
|
__name: "MDragDropList",
|
|
3973
3893
|
props: {
|
|
3974
3894
|
modelValue: {},
|
|
@@ -4012,7 +3932,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
4012
3932
|
function p(e) {
|
|
4013
3933
|
return i.value === e ? "opacity-30" : a.value === e && i.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
4014
3934
|
}
|
|
4015
|
-
return (t, n) => (L(), S("div",
|
|
3935
|
+
return (t, n) => (L(), S("div", ca, [(L(!0), S(m, null, V(e.modelValue, (n, r) => (L(), S("div", {
|
|
4016
3936
|
key: n.id,
|
|
4017
3937
|
draggable: !e.handle,
|
|
4018
3938
|
class: M(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [p(r), !e.handle && "cursor-grab active:cursor-grabbing"]]),
|
|
@@ -4030,12 +3950,12 @@ var ot = /* @__PURE__ */ D({
|
|
|
4030
3950
|
}, [E(f, {
|
|
4031
3951
|
name: "drag_indicator",
|
|
4032
3952
|
size: 20
|
|
4033
|
-
})], 40,
|
|
3953
|
+
})], 40, ua)) : x("", !0), C("div", da, [H(t.$slots, "default", {
|
|
4034
3954
|
item: n,
|
|
4035
3955
|
index: r
|
|
4036
|
-
}, () => [C("span",
|
|
3956
|
+
}, () => [C("span", fa, G(n.id), 1)])])], 42, la))), 128))]));
|
|
4037
3957
|
}
|
|
4038
|
-
}),
|
|
3958
|
+
}), ma = ["aria-label", "role"], ha = /* @__PURE__ */ D({
|
|
4039
3959
|
__name: "MEmoji",
|
|
4040
3960
|
props: {
|
|
4041
3961
|
emoji: {},
|
|
@@ -4052,9 +3972,9 @@ var ot = /* @__PURE__ */ D({
|
|
|
4052
3972
|
}),
|
|
4053
3973
|
"aria-label": e.label,
|
|
4054
3974
|
role: e.label ? "img" : void 0
|
|
4055
|
-
}, G(e.emoji), 13,
|
|
3975
|
+
}, G(e.emoji), 13, ma));
|
|
4056
3976
|
}
|
|
4057
|
-
}),
|
|
3977
|
+
}), ga = [
|
|
4058
3978
|
{
|
|
4059
3979
|
id: "smileys",
|
|
4060
3980
|
label: "Smileys",
|
|
@@ -4121,14 +4041,14 @@ var ot = /* @__PURE__ */ D({
|
|
|
4121
4041
|
icon: "flag",
|
|
4122
4042
|
emojis: /* @__PURE__ */ "🏁.🚩.🎌.🏴.🏳️.🏳️🌈.🏳️⚧️.🏴☠️.🇦🇷.🇦🇺.🇧🇷.🇨🇦.🇨🇱.🇨🇳.🇨🇴.🇩🇪.🇪🇸.🇫🇷.🇬🇧.🇮🇹.🇯🇵.🇰🇷.🇲🇽.🇳🇱.🇵🇪.🇵🇹.🇷🇺.🇸🇪.🇺🇸.🇻🇪.🇪🇨.🇧🇴.🇵🇾.🇺🇾.🇨🇷.🇵🇦.🇨🇺.🇩🇴.🇬🇹.🇭🇳.🇳🇮.🇸🇻.🇵🇷.🇮🇳.🇮🇩.🇹🇷.🇵🇭.🇹🇭".split(".")
|
|
4123
4043
|
}
|
|
4124
|
-
],
|
|
4125
|
-
function
|
|
4126
|
-
let t = e ??
|
|
4044
|
+
], _a = ga.flatMap((e) => e.emojis);
|
|
4045
|
+
function va(e) {
|
|
4046
|
+
let t = e ?? _a;
|
|
4127
4047
|
return t[Math.floor(Math.random() * t.length)];
|
|
4128
4048
|
}
|
|
4129
4049
|
//#endregion
|
|
4130
4050
|
//#region src/components/MEmojiButton.vue?vue&type=script&setup=true&lang.ts
|
|
4131
|
-
var
|
|
4051
|
+
var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__PURE__ */ D({
|
|
4132
4052
|
__name: "MEmojiButton",
|
|
4133
4053
|
props: {
|
|
4134
4054
|
emoji: { default: "😀" },
|
|
@@ -4148,10 +4068,10 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4148
4068
|
setup(e, { emit: t }) {
|
|
4149
4069
|
let n = e, r = t, i = B(n.emoji);
|
|
4150
4070
|
function a() {
|
|
4151
|
-
return n.category ?
|
|
4071
|
+
return n.category ? ga.find((e) => e.id === n.category)?.emojis ?? _a : _a;
|
|
4152
4072
|
}
|
|
4153
4073
|
function o() {
|
|
4154
|
-
!n.randomOnHover || n.disabled || (i.value =
|
|
4074
|
+
!n.randomOnHover || n.disabled || (i.value = va(a()));
|
|
4155
4075
|
}
|
|
4156
4076
|
function s() {}
|
|
4157
4077
|
function c() {
|
|
@@ -4170,15 +4090,15 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4170
4090
|
onMouseenter: o,
|
|
4171
4091
|
onMouseleave: s,
|
|
4172
4092
|
onClick: c
|
|
4173
|
-
}, [C("span",
|
|
4093
|
+
}, [C("span", ba, G(i.value), 1)], 46, ya));
|
|
4174
4094
|
}
|
|
4175
|
-
}),
|
|
4095
|
+
}), Sa = { class: "flex w-full flex-col overflow-hidden rounded-xl border border-outline-variant bg-surface-container" }, Ca = {
|
|
4176
4096
|
key: 0,
|
|
4177
4097
|
class: "px-3 pt-3"
|
|
4178
|
-
},
|
|
4098
|
+
}, wa = { class: "flex gap-0.5 overflow-x-auto border-b border-outline-variant px-2 py-1.5" }, Ta = ["title", "onClick"], Ea = { class: "sticky -top-px z-10 -mx-2 bg-surface-container px-3 py-1.5 text-label-medium text-on-surface-variant" }, Da = ["onClick"], Oa = {
|
|
4179
4099
|
key: 0,
|
|
4180
4100
|
class: "py-8 text-center text-body-medium text-on-surface-variant"
|
|
4181
|
-
},
|
|
4101
|
+
}, ka = /* @__PURE__ */ D({
|
|
4182
4102
|
__name: "MEmojiSelector",
|
|
4183
4103
|
props: {
|
|
4184
4104
|
categories: {},
|
|
@@ -4191,7 +4111,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4191
4111
|
},
|
|
4192
4112
|
emits: ["select"],
|
|
4193
4113
|
setup(e, { emit: t }) {
|
|
4194
|
-
let n = e, r = t, i = B(""), a = B(null), o = B(null), s = B({}), l = v(() => n.categories?.length ?
|
|
4114
|
+
let n = e, r = t, i = B(""), a = B(null), o = B(null), s = B({}), l = v(() => n.categories?.length ? ga.filter((e) => n.categories.includes(e.id)) : ga), u = v(() => {
|
|
4195
4115
|
if (!i.value) return l.value;
|
|
4196
4116
|
let e = i.value.toLowerCase();
|
|
4197
4117
|
return l.value.map((t) => ({
|
|
@@ -4213,15 +4133,15 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4213
4133
|
function h(e, t) {
|
|
4214
4134
|
t && (s.value[e] = t);
|
|
4215
4135
|
}
|
|
4216
|
-
return (t, n) => (L(), S("div",
|
|
4217
|
-
e.search ? (L(), S("div",
|
|
4136
|
+
return (t, n) => (L(), S("div", Sa, [
|
|
4137
|
+
e.search ? (L(), S("div", Ca, [E(c, {
|
|
4218
4138
|
modelValue: i.value,
|
|
4219
4139
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
4220
4140
|
label: "Search",
|
|
4221
4141
|
"leading-icon": "search",
|
|
4222
4142
|
variant: "outlined"
|
|
4223
4143
|
}, null, 8, ["modelValue"])])) : x("", !0),
|
|
4224
|
-
C("div",
|
|
4144
|
+
C("div", wa, [(L(!0), S(m, null, V(l.value, (e) => (L(), S("button", {
|
|
4225
4145
|
key: e.id,
|
|
4226
4146
|
type: "button",
|
|
4227
4147
|
title: e.label,
|
|
@@ -4230,7 +4150,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4230
4150
|
}, [E(f, {
|
|
4231
4151
|
name: e.icon,
|
|
4232
4152
|
size: 20
|
|
4233
|
-
}, null, 8, ["name"])], 10,
|
|
4153
|
+
}, null, 8, ["name"])], 10, Ta))), 128))]),
|
|
4234
4154
|
C("div", {
|
|
4235
4155
|
ref_key: "scrollContainer",
|
|
4236
4156
|
ref: o,
|
|
@@ -4240,7 +4160,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4240
4160
|
key: t.id,
|
|
4241
4161
|
ref_for: !0,
|
|
4242
4162
|
ref: (e) => h(t.id, e)
|
|
4243
|
-
}, [C("p",
|
|
4163
|
+
}, [C("p", Ea, G(t.label), 1), C("div", {
|
|
4244
4164
|
class: "grid gap-0.5",
|
|
4245
4165
|
style: N({ gridTemplateColumns: `repeat(${e.columns}, 1fr)` })
|
|
4246
4166
|
}, [(L(!0), S(m, null, V(t.emojis, (t) => (L(), S("button", {
|
|
@@ -4252,10 +4172,10 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4252
4172
|
height: `${e.emojiSize + 10}px`
|
|
4253
4173
|
}),
|
|
4254
4174
|
onClick: (e) => p(t)
|
|
4255
|
-
}, G(t), 13,
|
|
4175
|
+
}, G(t), 13, Da))), 128))], 4)], 512))), 128)), i.value && u.value.length === 0 ? (L(), S("p", Oa, " No results ")) : x("", !0)], 512)
|
|
4256
4176
|
]));
|
|
4257
4177
|
}
|
|
4258
|
-
}),
|
|
4178
|
+
}), Aa = /* @__PURE__ */ D({
|
|
4259
4179
|
__name: "MEmptyState",
|
|
4260
4180
|
props: {
|
|
4261
4181
|
icon: { default: "inbox" },
|
|
@@ -4280,10 +4200,10 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4280
4200
|
}, [H(t.$slots, "actions")], 2)) : x("", !0)
|
|
4281
4201
|
], 2));
|
|
4282
4202
|
}
|
|
4283
|
-
}),
|
|
4203
|
+
}), ja = ["aria-expanded", "disabled"], Ma = { class: "flex-1 min-w-0" }, Na = { class: "text-body-large font-medium text-on-surface" }, Pa = {
|
|
4284
4204
|
key: 0,
|
|
4285
4205
|
class: "text-body-small text-on-surface-variant"
|
|
4286
|
-
},
|
|
4206
|
+
}, Fa = { class: "expand-body" }, Ia = { class: "border-t border-outline-variant/60 px-5 py-4" }, La = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4287
4207
|
__name: "MExpansionPanel",
|
|
4288
4208
|
props: {
|
|
4289
4209
|
title: {},
|
|
@@ -4321,21 +4241,21 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4321
4241
|
size: 22,
|
|
4322
4242
|
class: "shrink-0 text-on-surface-variant"
|
|
4323
4243
|
}, null, 8, ["name"])) : x("", !0),
|
|
4324
|
-
C("div",
|
|
4244
|
+
C("div", Ma, [C("p", Na, G(e.title), 1), e.subtitle ? (L(), S("p", Pa, G(e.subtitle), 1)) : x("", !0)]),
|
|
4325
4245
|
E(f, {
|
|
4326
4246
|
name: "expand_more",
|
|
4327
4247
|
size: 22,
|
|
4328
4248
|
class: M(["shrink-0 text-on-surface-variant transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
4329
4249
|
}, null, 8, ["class"])
|
|
4330
|
-
], 10,
|
|
4250
|
+
], 10, ja), C("div", { class: M(["expand-grid", a.value ? "expand-open" : ""]) }, [C("div", Fa, [C("div", Ia, [H(t.$slots, "default", {}, void 0, !0)])])], 2)], 2));
|
|
4331
4251
|
}
|
|
4332
|
-
}), [["__scopeId", "data-v-31731809"]]),
|
|
4252
|
+
}), [["__scopeId", "data-v-31731809"]]), Ra = {
|
|
4333
4253
|
key: 0,
|
|
4334
4254
|
class: "text-label-large font-medium"
|
|
4335
|
-
},
|
|
4255
|
+
}, za = {
|
|
4336
4256
|
key: 0,
|
|
4337
4257
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
4338
|
-
},
|
|
4258
|
+
}, Ba = 40, Va = 8, Ha = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4339
4259
|
__name: "MFab",
|
|
4340
4260
|
props: {
|
|
4341
4261
|
icon: {},
|
|
@@ -4398,8 +4318,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4398
4318
|
let t = 2 * Math.PI * e / a - Math.PI / 2, n = (Math.cos(t) * 80).toFixed(1), s = (Math.sin(t) * 80).toFixed(1);
|
|
4399
4319
|
return {
|
|
4400
4320
|
position: "fixed",
|
|
4401
|
-
top: `${i -
|
|
4402
|
-
left: `${r -
|
|
4321
|
+
top: `${i - Ba / 2}px`,
|
|
4322
|
+
left: `${r - Ba / 2}px`,
|
|
4403
4323
|
transform: o.value ? `translate(${n}px, ${s}px) scale(1)` : "translate(0,0) scale(0)",
|
|
4404
4324
|
opacity: o.value ? "1" : "0",
|
|
4405
4325
|
transition: c,
|
|
@@ -4407,22 +4327,22 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4407
4327
|
zIndex: "1000"
|
|
4408
4328
|
};
|
|
4409
4329
|
}
|
|
4410
|
-
let l = w.value / 2 +
|
|
4330
|
+
let l = w.value / 2 + Va + Ba / 2 + e * 48, u = {
|
|
4411
4331
|
up: {
|
|
4412
|
-
top: `${i - l -
|
|
4413
|
-
left: `${r -
|
|
4332
|
+
top: `${i - l - Ba / 2}px`,
|
|
4333
|
+
left: `${r - Ba / 2}px`
|
|
4414
4334
|
},
|
|
4415
4335
|
down: {
|
|
4416
|
-
top: `${i + l -
|
|
4417
|
-
left: `${r -
|
|
4336
|
+
top: `${i + l - Ba / 2}px`,
|
|
4337
|
+
left: `${r - Ba / 2}px`
|
|
4418
4338
|
},
|
|
4419
4339
|
left: {
|
|
4420
|
-
top: `${i -
|
|
4421
|
-
left: `${r - l -
|
|
4340
|
+
top: `${i - Ba / 2}px`,
|
|
4341
|
+
left: `${r - l - Ba / 2}px`
|
|
4422
4342
|
},
|
|
4423
4343
|
right: {
|
|
4424
|
-
top: `${i -
|
|
4425
|
-
left: `${r + l -
|
|
4344
|
+
top: `${i - Ba / 2}px`,
|
|
4345
|
+
left: `${r + l - Ba / 2}px`
|
|
4426
4346
|
}
|
|
4427
4347
|
}, d = {
|
|
4428
4348
|
up: "translateY(12px) scale(0.75)",
|
|
@@ -4519,7 +4439,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4519
4439
|
"name",
|
|
4520
4440
|
"size",
|
|
4521
4441
|
"class"
|
|
4522
|
-
]), e.label ? (L(), S("span",
|
|
4442
|
+
]), e.label ? (L(), S("span", Ra, G(e.label), 1)) : x("", !0)]),
|
|
4523
4443
|
_: 1
|
|
4524
4444
|
}, 40, [
|
|
4525
4445
|
"to",
|
|
@@ -4530,13 +4450,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4530
4450
|
key: n,
|
|
4531
4451
|
style: N(D(n)),
|
|
4532
4452
|
class: M(["flex items-center gap-3", O.value ? "flex-row-reverse" : ""])
|
|
4533
|
-
}, [t.label && O.value ? (L(), S("span",
|
|
4453
|
+
}, [t.label && O.value ? (L(), S("span", za, G(t.label), 1)) : x("", !0), (L(), b(W(t.to ? "RouterLink" : "button"), {
|
|
4534
4454
|
to: t.to || void 0,
|
|
4535
4455
|
type: t.to ? void 0 : "button",
|
|
4536
4456
|
class: M(["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]", p[e.color]]),
|
|
4537
4457
|
style: N({
|
|
4538
|
-
width: `${
|
|
4539
|
-
height: `${
|
|
4458
|
+
width: `${Ba}px`,
|
|
4459
|
+
height: `${Ba}px`
|
|
4540
4460
|
}),
|
|
4541
4461
|
onPointerdown: (e) => U(e, t, e.currentTarget)
|
|
4542
4462
|
}, {
|
|
@@ -4565,17 +4485,17 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4565
4485
|
_: 3
|
|
4566
4486
|
})]))], 64));
|
|
4567
4487
|
}
|
|
4568
|
-
}), [["__scopeId", "data-v-02ba313e"]]),
|
|
4488
|
+
}), [["__scopeId", "data-v-02ba313e"]]), Ua = { class: "flex flex-col gap-3" }, Wa = { class: "text-center" }, Ga = { class: "text-body-large text-on-surface" }, Ka = { class: "font-medium text-primary" }, qa = {
|
|
4569
4489
|
key: 0,
|
|
4570
4490
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
4571
|
-
},
|
|
4491
|
+
}, Ja = { key: 0 }, Ya = { key: 1 }, Xa = { key: 2 }, Za = [
|
|
4572
4492
|
"accept",
|
|
4573
4493
|
"multiple",
|
|
4574
4494
|
"disabled"
|
|
4575
|
-
],
|
|
4495
|
+
], Qa = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, $a = ["src"], eo = { class: "min-w-0 flex-1" }, to = { class: "truncate text-body-medium text-on-surface" }, no = { class: "text-body-small text-on-surface-variant" }, ro = {
|
|
4576
4496
|
key: 0,
|
|
4577
4497
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
4578
|
-
},
|
|
4498
|
+
}, io = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4579
4499
|
__name: "MFileUpload",
|
|
4580
4500
|
props: {
|
|
4581
4501
|
accept: {},
|
|
@@ -4627,7 +4547,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4627
4547
|
function O() {
|
|
4628
4548
|
i.disabled || u.value?.click();
|
|
4629
4549
|
}
|
|
4630
|
-
return (t, r) => (L(), S("div",
|
|
4550
|
+
return (t, r) => (L(), S("div", Ua, [
|
|
4631
4551
|
C("div", {
|
|
4632
4552
|
class: M(["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", [e.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"]]),
|
|
4633
4553
|
onClick: O,
|
|
@@ -4639,10 +4559,10 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4639
4559
|
name: l.value ? "downloading" : "cloud_upload",
|
|
4640
4560
|
size: 40,
|
|
4641
4561
|
class: "text-on-surface-variant"
|
|
4642
|
-
}, null, 8, ["name"]), C("div",
|
|
4643
|
-
e.accept ? (L(), S("span",
|
|
4644
|
-
e.accept && e.maxSize ? (L(), S("span",
|
|
4645
|
-
e.maxSize ? (L(), S("span",
|
|
4562
|
+
}, null, 8, ["name"]), C("div", Wa, [H(t.$slots, "dropzone", {}, () => [C("p", Ga, [T(G(e.dropText ?? K(n).dropText) + " ", 1), C("span", Ka, G(e.selectText ?? K(n).selectText), 1)]), e.accept || e.maxSize ? (L(), S("p", qa, [
|
|
4563
|
+
e.accept ? (L(), S("span", Ja, G(e.accept), 1)) : x("", !0),
|
|
4564
|
+
e.accept && e.maxSize ? (L(), S("span", Ya, " · ")) : x("", !0),
|
|
4565
|
+
e.maxSize ? (L(), S("span", Xa, G(e.maxSizePrefix ?? K(n).maxSizePrefix) + " " + G(h(e.maxSize)), 1)) : x("", !0)
|
|
4646
4566
|
])) : x("", !0)], !0)])], 34),
|
|
4647
4567
|
C("input", {
|
|
4648
4568
|
ref_key: "inputRef",
|
|
@@ -4653,7 +4573,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4653
4573
|
multiple: e.multiple,
|
|
4654
4574
|
disabled: e.disabled,
|
|
4655
4575
|
onChange: w
|
|
4656
|
-
}, null, 40,
|
|
4576
|
+
}, null, 40, Za),
|
|
4657
4577
|
E(_, {
|
|
4658
4578
|
name: "m3-file",
|
|
4659
4579
|
tag: "div",
|
|
@@ -4663,20 +4583,20 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4663
4583
|
key: t.id,
|
|
4664
4584
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
4665
4585
|
}, [
|
|
4666
|
-
C("div",
|
|
4586
|
+
C("div", Qa, [t.preview ? (L(), S("img", {
|
|
4667
4587
|
key: 0,
|
|
4668
4588
|
src: t.preview,
|
|
4669
4589
|
class: "h-full w-full object-cover"
|
|
4670
|
-
}, null, 8,
|
|
4590
|
+
}, null, 8, $a)) : (L(), b(f, {
|
|
4671
4591
|
key: 1,
|
|
4672
4592
|
name: "description",
|
|
4673
4593
|
size: 24,
|
|
4674
4594
|
class: "text-on-surface-variant"
|
|
4675
4595
|
}))]),
|
|
4676
|
-
C("div",
|
|
4677
|
-
C("p",
|
|
4678
|
-
C("p",
|
|
4679
|
-
t.status === "uploading" ? (L(), S("div",
|
|
4596
|
+
C("div", eo, [
|
|
4597
|
+
C("p", to, G(t.file.name), 1),
|
|
4598
|
+
C("p", no, G(h(t.file.size)), 1),
|
|
4599
|
+
t.status === "uploading" ? (L(), S("div", ro, [C("div", {
|
|
4680
4600
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
4681
4601
|
style: N({ width: `${t.progress}%` })
|
|
4682
4602
|
}, null, 4)])) : x("", !0)
|
|
@@ -4706,7 +4626,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4706
4626
|
})
|
|
4707
4627
|
]));
|
|
4708
4628
|
}
|
|
4709
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
4629
|
+
}), [["__scopeId", "data-v-6b150427"]]), ao = /* @__PURE__ */ D({
|
|
4710
4630
|
__name: "MFixed",
|
|
4711
4631
|
props: {
|
|
4712
4632
|
placement: {},
|
|
@@ -4752,19 +4672,19 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4752
4672
|
});
|
|
4753
4673
|
return (e, t) => (L(), S("div", { style: N(r.value) }, [H(e.$slots, "default")], 4));
|
|
4754
4674
|
}
|
|
4755
|
-
}),
|
|
4675
|
+
}), oo = {
|
|
4756
4676
|
key: 0,
|
|
4757
4677
|
class: "px-6 pt-6 pb-2 sm:px-8 lg:px-12"
|
|
4758
|
-
},
|
|
4678
|
+
}, so = {
|
|
4759
4679
|
key: 1,
|
|
4760
4680
|
class: "px-6 py-6 sm:px-8 lg:px-12"
|
|
4761
|
-
},
|
|
4681
|
+
}, co = {
|
|
4762
4682
|
key: 2,
|
|
4763
4683
|
class: "flex flex-wrap items-center gap-1 px-6 pb-4 sm:px-8 lg:px-12"
|
|
4764
|
-
},
|
|
4684
|
+
}, lo = {
|
|
4765
4685
|
key: 3,
|
|
4766
4686
|
class: "border-t border-outline-variant px-6 py-4 sm:px-8 lg:px-12"
|
|
4767
|
-
},
|
|
4687
|
+
}, uo = /* @__PURE__ */ D({
|
|
4768
4688
|
__name: "MFooter",
|
|
4769
4689
|
props: {
|
|
4770
4690
|
bordered: { type: Boolean },
|
|
@@ -4779,13 +4699,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4779
4699
|
inverse: "bg-inverse-surface text-inverse-on-surface"
|
|
4780
4700
|
};
|
|
4781
4701
|
return (n, r) => (L(), S("footer", { class: M(["w-full", [t[e.surface], e.bordered ? "border-t border-outline-variant" : ""]]) }, [
|
|
4782
|
-
n.$slots.brand ? (L(), S("div",
|
|
4783
|
-
n.$slots.default ? (L(), S("div",
|
|
4784
|
-
n.$slots.social ? (L(), S("div",
|
|
4785
|
-
n.$slots.bottom ? (L(), S("div",
|
|
4702
|
+
n.$slots.brand ? (L(), S("div", oo, [H(n.$slots, "brand")])) : x("", !0),
|
|
4703
|
+
n.$slots.default ? (L(), S("div", so, [H(n.$slots, "default")])) : x("", !0),
|
|
4704
|
+
n.$slots.social ? (L(), S("div", co, [H(n.$slots, "social")])) : x("", !0),
|
|
4705
|
+
n.$slots.bottom ? (L(), S("div", lo, [H(n.$slots, "bottom")])) : x("", !0)
|
|
4786
4706
|
], 2));
|
|
4787
4707
|
}
|
|
4788
|
-
}),
|
|
4708
|
+
}), fo = /* @__PURE__ */ D({
|
|
4789
4709
|
__name: "MFlex",
|
|
4790
4710
|
props: {
|
|
4791
4711
|
direction: { default: "row" },
|
|
@@ -4837,7 +4757,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4837
4757
|
]);
|
|
4838
4758
|
return (e, t) => (L(), S("div", { class: M(o.value) }, [H(e.$slots, "default")], 2));
|
|
4839
4759
|
}
|
|
4840
|
-
}),
|
|
4760
|
+
}), po = /* @__PURE__ */ D({
|
|
4841
4761
|
__name: "MFullscreen",
|
|
4842
4762
|
props: {
|
|
4843
4763
|
fixed: {
|
|
@@ -4854,7 +4774,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4854
4774
|
}));
|
|
4855
4775
|
return (e, t) => (L(), S("div", { style: N(n.value) }, [H(e.$slots, "default")], 4));
|
|
4856
4776
|
}
|
|
4857
|
-
}),
|
|
4777
|
+
}), mo = /* @__PURE__ */ D({
|
|
4858
4778
|
__name: "MGrid",
|
|
4859
4779
|
props: {
|
|
4860
4780
|
cols: { default: 1 },
|
|
@@ -4930,13 +4850,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4930
4850
|
]);
|
|
4931
4851
|
return (e, t) => (L(), S("div", { class: M(l.value) }, [H(e.$slots, "default")], 2));
|
|
4932
4852
|
}
|
|
4933
|
-
}),
|
|
4853
|
+
}), ho = {
|
|
4934
4854
|
key: 0,
|
|
4935
4855
|
class: "flex flex-col gap-4"
|
|
4936
|
-
},
|
|
4856
|
+
}, go = {
|
|
4937
4857
|
key: 0,
|
|
4938
4858
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
4939
|
-
},
|
|
4859
|
+
}, _o = { class: "flex flex-col gap-1" }, vo = { class: "text-body-medium text-on-surface" }, yo = { class: "flex items-center gap-0.5" }, bo = /* @__PURE__ */ D({
|
|
4940
4860
|
__name: "MHotkeys",
|
|
4941
4861
|
props: {
|
|
4942
4862
|
bindings: {},
|
|
@@ -4993,15 +4913,15 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
4993
4913
|
}
|
|
4994
4914
|
return e;
|
|
4995
4915
|
};
|
|
4996
|
-
return (t, n) => e.showOverlay ? (L(), S("div",
|
|
4916
|
+
return (t, n) => e.showOverlay ? (L(), S("div", ho, [(L(!0), S(m, null, V(s(), ([e, t]) => (L(), S("div", { key: e }, [e ? (L(), S("p", go, G(e), 1)) : x("", !0), C("div", _o, [(L(!0), S(m, null, V(t, (e) => (L(), S("div", {
|
|
4997
4917
|
key: e.keys,
|
|
4998
4918
|
class: M(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
4999
|
-
}, [C("span",
|
|
4919
|
+
}, [C("span", vo, G(e.label), 1), C("div", yo, [(L(!0), S(m, null, V(e.keys.split("+"), (e, t) => (L(), S("kbd", {
|
|
5000
4920
|
key: t,
|
|
5001
4921
|
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"
|
|
5002
4922
|
}, G(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : x("", !0);
|
|
5003
4923
|
}
|
|
5004
|
-
}),
|
|
4924
|
+
}), xo = { class: "flex items-center gap-3" }, So = { class: "text-body-medium text-on-surface-variant" }, Co = { class: "text-body-small text-on-surface-variant" }, wo = /* @__PURE__ */ D({
|
|
5005
4925
|
__name: "MInfiniteScroll",
|
|
5006
4926
|
props: {
|
|
5007
4927
|
loading: {
|
|
@@ -5032,30 +4952,30 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5032
4952
|
ref_key: "sentinelRef",
|
|
5033
4953
|
ref: s,
|
|
5034
4954
|
class: "flex items-center justify-center py-4"
|
|
5035
|
-
}, [e.loading ? H(t.$slots, "loading", { key: 0 }, () => [C("div",
|
|
4955
|
+
}, [e.loading ? H(t.$slots, "loading", { key: 0 }, () => [C("div", xo, [E(a, {
|
|
5036
4956
|
size: 20,
|
|
5037
4957
|
class: "text-primary"
|
|
5038
|
-
}), C("span",
|
|
4958
|
+
}), C("span", So, G(e.loadingText ?? K(n).loadingMore), 1)])]) : e.ended ? H(t.$slots, "end", { key: 1 }, () => [C("p", Co, G(e.endText ?? K(n).noMoreItems), 1)]) : H(t.$slots, "idle", { key: 2 })], 512)]));
|
|
5039
4959
|
}
|
|
5040
|
-
}),
|
|
4960
|
+
}), To = {
|
|
5041
4961
|
key: 0,
|
|
5042
4962
|
class: "text-tertiary"
|
|
5043
|
-
},
|
|
4963
|
+
}, Eo = { class: "text-on-surface-variant" }, Do = {
|
|
5044
4964
|
key: 1,
|
|
5045
4965
|
class: "text-on-surface-variant/60"
|
|
5046
|
-
},
|
|
4966
|
+
}, Oo = {
|
|
5047
4967
|
key: 2,
|
|
5048
4968
|
class: "text-on-surface-variant"
|
|
5049
|
-
},
|
|
4969
|
+
}, ko = {
|
|
5050
4970
|
key: 0,
|
|
5051
4971
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
5052
|
-
},
|
|
4972
|
+
}, Ao = { class: "shrink-0 text-primary" }, jo = {
|
|
5053
4973
|
key: 0,
|
|
5054
4974
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
5055
|
-
},
|
|
4975
|
+
}, Mo = {
|
|
5056
4976
|
key: 1,
|
|
5057
4977
|
class: "ml-5 text-on-surface-variant"
|
|
5058
|
-
},
|
|
4978
|
+
}, No = /* @__PURE__ */ D({
|
|
5059
4979
|
__name: "MJsonViewer",
|
|
5060
4980
|
props: {
|
|
5061
4981
|
data: {},
|
|
@@ -5096,17 +5016,17 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5096
5016
|
size: 16,
|
|
5097
5017
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
5098
5018
|
}, null, 8, ["name"]),
|
|
5099
|
-
e._depth === 0 || e.rootName ? (L(), S("span",
|
|
5100
|
-
C("span",
|
|
5101
|
-
n.value ? x("", !0) : (L(), S("span",
|
|
5102
|
-
n.value ? x("", !0) : (L(), S("span",
|
|
5019
|
+
e._depth === 0 || e.rootName ? (L(), S("span", To, G(e._depth === 0 ? e.rootName : ""), 1)) : x("", !0),
|
|
5020
|
+
C("span", Eo, G(s.value), 1),
|
|
5021
|
+
n.value ? x("", !0) : (L(), S("span", Do, G(o.value) + " " + G(r.value === "array" ? "elementos" : "campos"), 1)),
|
|
5022
|
+
n.value ? x("", !0) : (L(), S("span", Oo, G(c.value), 1))
|
|
5103
5023
|
]),
|
|
5104
|
-
n.value ? (L(), S("div",
|
|
5024
|
+
n.value ? (L(), S("div", ko, [(L(!0), S(m, null, V(a.value, (t) => (L(), S("div", {
|
|
5105
5025
|
key: t.key,
|
|
5106
5026
|
class: "flex items-start"
|
|
5107
5027
|
}, [
|
|
5108
|
-
C("span",
|
|
5109
|
-
r.value === "array" ? x("", !0) : (L(), S("span",
|
|
5028
|
+
C("span", Ao, G(r.value === "array" ? "" : `"${t.key}"`), 1),
|
|
5029
|
+
r.value === "array" ? x("", !0) : (L(), S("span", jo, ":")),
|
|
5110
5030
|
t.value !== null && typeof t.value == "object" ? (L(), b(p, {
|
|
5111
5031
|
key: 1,
|
|
5112
5032
|
data: t.value,
|
|
@@ -5123,21 +5043,21 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5123
5043
|
class: M(l(t.value))
|
|
5124
5044
|
}, G(u(t.value)), 3))
|
|
5125
5045
|
]))), 128))])) : x("", !0),
|
|
5126
|
-
n.value ? (L(), S("span",
|
|
5046
|
+
n.value ? (L(), S("span", Mo, G(c.value), 1)) : x("", !0)
|
|
5127
5047
|
], 64)) : (L(), S("span", {
|
|
5128
5048
|
key: 1,
|
|
5129
5049
|
class: M(l(e.data))
|
|
5130
5050
|
}, G(u(e.data)), 3))], 2);
|
|
5131
5051
|
};
|
|
5132
5052
|
}
|
|
5133
|
-
}),
|
|
5053
|
+
}), Po = { class: "flex gap-4 overflow-x-auto pb-2" }, Fo = ["onDragover", "onDrop"], Io = { class: "flex items-center gap-2 px-4 py-3" }, Lo = { class: "flex-1 text-title-small font-medium text-on-surface" }, Ro = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, zo = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, Bo = [
|
|
5134
5054
|
"onDragstart",
|
|
5135
5055
|
"onDragover",
|
|
5136
5056
|
"onClick"
|
|
5137
|
-
],
|
|
5057
|
+
], Vo = { class: "text-body-medium text-on-surface" }, Ho = {
|
|
5138
5058
|
key: 0,
|
|
5139
5059
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
5140
|
-
},
|
|
5060
|
+
}, Uo = /* @__PURE__ */ D({
|
|
5141
5061
|
__name: "MKanban",
|
|
5142
5062
|
props: { modelValue: {} },
|
|
5143
5063
|
emits: [
|
|
@@ -5196,20 +5116,20 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5196
5116
|
function f() {
|
|
5197
5117
|
i.value = null, a.value = null, o.value = null;
|
|
5198
5118
|
}
|
|
5199
|
-
return (t, n) => (L(), S("div",
|
|
5119
|
+
return (t, n) => (L(), S("div", Po, [(L(!0), S(m, null, V(e.modelValue, (e) => (L(), S("div", {
|
|
5200
5120
|
key: e.id,
|
|
5201
5121
|
class: M(["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" : ""]),
|
|
5202
5122
|
onDragover: (t) => l(t, e.id),
|
|
5203
5123
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
5204
5124
|
onDrop: (t) => d(t, e.id)
|
|
5205
|
-
}, [C("div",
|
|
5125
|
+
}, [C("div", Io, [
|
|
5206
5126
|
e.color ? (L(), S("div", {
|
|
5207
5127
|
key: 0,
|
|
5208
5128
|
class: M(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
5209
5129
|
}, null, 2)) : x("", !0),
|
|
5210
|
-
C("h3",
|
|
5211
|
-
C("span",
|
|
5212
|
-
]), C("div",
|
|
5130
|
+
C("h3", Lo, G(e.title), 1),
|
|
5131
|
+
C("span", Ro, G(e.cards.length), 1)
|
|
5132
|
+
]), C("div", zo, [(L(!0), S(m, null, V(e.cards, (n, s) => (L(), S("div", {
|
|
5213
5133
|
key: n.id,
|
|
5214
5134
|
draggable: "true",
|
|
5215
5135
|
class: M(["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" : ""]]),
|
|
@@ -5223,9 +5143,9 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5223
5143
|
}, [H(t.$slots, "card", {
|
|
5224
5144
|
card: n,
|
|
5225
5145
|
column: e
|
|
5226
|
-
}, () => [C("p",
|
|
5146
|
+
}, () => [C("p", Vo, G(n.id), 1)])], 42, Bo))), 128)), e.cards.length === 0 ? (L(), S("div", Ho, [...n[1] ||= [C("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : x("", !0)])], 42, Fo))), 128))]));
|
|
5227
5147
|
}
|
|
5228
|
-
}),
|
|
5148
|
+
}), Wo = /* @__PURE__ */ D({
|
|
5229
5149
|
__name: "MList",
|
|
5230
5150
|
props: {
|
|
5231
5151
|
dense: {
|
|
@@ -5274,10 +5194,10 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5274
5194
|
class: M(i.value)
|
|
5275
5195
|
}, [H(e.$slots, "default")], 2));
|
|
5276
5196
|
}
|
|
5277
|
-
}),
|
|
5197
|
+
}), Go = ["checked", "disabled"], Ko = {
|
|
5278
5198
|
key: 0,
|
|
5279
5199
|
class: "text-body-large text-on-surface"
|
|
5280
|
-
},
|
|
5200
|
+
}, qo = /* @__PURE__ */ D({
|
|
5281
5201
|
__name: "MSwitch",
|
|
5282
5202
|
props: {
|
|
5283
5203
|
modelValue: { type: Boolean },
|
|
@@ -5299,7 +5219,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5299
5219
|
checked: e.modelValue,
|
|
5300
5220
|
disabled: e.disabled,
|
|
5301
5221
|
onChange: n[0] ||= (t) => r("update:modelValue", !e.modelValue)
|
|
5302
|
-
}, null, 40,
|
|
5222
|
+
}, null, 40, Go), C("span", {
|
|
5303
5223
|
class: M(["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"]),
|
|
5304
5224
|
style: N(i.value)
|
|
5305
5225
|
}, [E(g, {
|
|
@@ -5317,21 +5237,21 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5317
5237
|
class: "text-primary"
|
|
5318
5238
|
})) : x("", !0)]),
|
|
5319
5239
|
_: 1
|
|
5320
|
-
})], 6)], 2), e.label ? (L(), S("span",
|
|
5240
|
+
})], 6)], 2), e.label ? (L(), S("span", Ko, G(e.label), 1)) : x("", !0)], 2));
|
|
5321
5241
|
}
|
|
5322
|
-
}),
|
|
5242
|
+
}), Jo = {
|
|
5323
5243
|
key: 0,
|
|
5324
5244
|
role: "listitem"
|
|
5325
|
-
},
|
|
5245
|
+
}, Yo = { class: "min-w-0 flex-1" }, Xo = { class: "truncate text-body-large text-on-surface" }, Zo = {
|
|
5326
5246
|
key: 0,
|
|
5327
5247
|
class: "mli-expand-grid"
|
|
5328
|
-
},
|
|
5248
|
+
}, Qo = { class: "mli-expand-body" }, $o = ["src"], es = { class: "min-w-0 flex-1" }, ts = { class: "truncate text-body-large text-on-surface" }, ns = {
|
|
5329
5249
|
key: 1,
|
|
5330
5250
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
5331
|
-
},
|
|
5251
|
+
}, rs = {
|
|
5332
5252
|
key: 1,
|
|
5333
5253
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
5334
|
-
},
|
|
5254
|
+
}, is = /* @__PURE__ */ D({
|
|
5335
5255
|
__name: "MListItem",
|
|
5336
5256
|
props: {
|
|
5337
5257
|
title: {},
|
|
@@ -5404,7 +5324,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5404
5324
|
function P() {
|
|
5405
5325
|
r("update:trailingValue", !n.trailingValue);
|
|
5406
5326
|
}
|
|
5407
|
-
return (t, n) => e.expandable ? (L(), S("li",
|
|
5327
|
+
return (t, n) => e.expandable ? (L(), S("li", Jo, [C("div", {
|
|
5408
5328
|
class: M(T.value),
|
|
5409
5329
|
onClick: N
|
|
5410
5330
|
}, [
|
|
@@ -5414,7 +5334,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5414
5334
|
size: 24,
|
|
5415
5335
|
class: "shrink-0 text-on-surface-variant"
|
|
5416
5336
|
}, null, 8, ["name"])) : x("", !0)]),
|
|
5417
|
-
C("div",
|
|
5337
|
+
C("div", Yo, [H(t.$slots, "default", {}, () => [C("p", Xo, G(e.title), 1), e.subtitle && c.value >= 2 ? (L(), S("p", {
|
|
5418
5338
|
key: 0,
|
|
5419
5339
|
class: M(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
5420
5340
|
}, G(e.subtitle), 3)) : x("", !0)])]),
|
|
@@ -5424,7 +5344,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5424
5344
|
class: "shrink-0 text-on-surface-variant"
|
|
5425
5345
|
}, null, 8, ["name"])
|
|
5426
5346
|
], 2), E(g, { name: "mli-expand" }, {
|
|
5427
|
-
default: Z(() => [o.value ? (L(), S("div",
|
|
5347
|
+
default: Z(() => [o.value ? (L(), S("div", Zo, [C("div", Qo, [H(t.$slots, "children")])])) : x("", !0)]),
|
|
5428
5348
|
_: 3
|
|
5429
5349
|
})])) : (L(), b(W(D.value), A({
|
|
5430
5350
|
key: 1,
|
|
@@ -5459,25 +5379,25 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5459
5379
|
src: e.image,
|
|
5460
5380
|
alt: "",
|
|
5461
5381
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
5462
|
-
}, null, 8,
|
|
5382
|
+
}, null, 8, $o)) : d.value === "checkbox" ? (L(), b(zn, {
|
|
5463
5383
|
key: 4,
|
|
5464
5384
|
"model-value": u.value,
|
|
5465
5385
|
class: "shrink-0"
|
|
5466
5386
|
}, null, 8, ["model-value"])) : x("", !0)]),
|
|
5467
|
-
C("div",
|
|
5468
|
-
C("p",
|
|
5387
|
+
C("div", es, [H(t.$slots, "default", {}, () => [
|
|
5388
|
+
C("p", ts, G(e.title), 1),
|
|
5469
5389
|
e.subtitle && c.value >= 2 ? (L(), S("p", {
|
|
5470
5390
|
key: 0,
|
|
5471
5391
|
class: M(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
5472
5392
|
}, G(e.subtitle), 3)) : x("", !0),
|
|
5473
|
-
e.description && c.value >= 3 ? (L(), S("p",
|
|
5393
|
+
e.description && c.value >= 3 ? (L(), S("p", ns, G(e.description), 1)) : x("", !0)
|
|
5474
5394
|
])]),
|
|
5475
5395
|
H(t.$slots, "trailing", {}, () => [p.value === "icon" ? (L(), b(f, {
|
|
5476
5396
|
key: 0,
|
|
5477
5397
|
name: e.trailingIcon,
|
|
5478
5398
|
size: 24,
|
|
5479
5399
|
class: "shrink-0 text-on-surface-variant"
|
|
5480
|
-
}, null, 8, ["name"])) : p.value === "text" ? (L(), S("span",
|
|
5400
|
+
}, null, 8, ["name"])) : p.value === "text" ? (L(), S("span", rs, G(e.trailingText), 1)) : p.value === "switch" ? (L(), b(qo, {
|
|
5481
5401
|
key: 2,
|
|
5482
5402
|
"model-value": !!e.trailingValue,
|
|
5483
5403
|
"onUpdate:modelValue": P
|
|
@@ -5490,7 +5410,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5490
5410
|
_: 3
|
|
5491
5411
|
}, 16, ["class"]));
|
|
5492
5412
|
}
|
|
5493
|
-
}),
|
|
5413
|
+
}), as = /* @__PURE__ */ D({
|
|
5494
5414
|
__name: "MListSubheader",
|
|
5495
5415
|
props: { inset: {
|
|
5496
5416
|
type: Boolean,
|
|
@@ -5502,16 +5422,16 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5502
5422
|
role: "presentation"
|
|
5503
5423
|
}, [H(t.$slots, "default")], 2));
|
|
5504
5424
|
}
|
|
5505
|
-
}),
|
|
5425
|
+
}), os = {
|
|
5506
5426
|
key: 0,
|
|
5507
5427
|
class: "text-body-large text-on-surface-variant"
|
|
5508
|
-
},
|
|
5428
|
+
}, ss = {
|
|
5509
5429
|
key: 1,
|
|
5510
5430
|
class: "relative"
|
|
5511
|
-
},
|
|
5431
|
+
}, cs = {
|
|
5512
5432
|
key: 0,
|
|
5513
5433
|
class: "text-body-medium text-on-surface-variant"
|
|
5514
|
-
},
|
|
5434
|
+
}, ls = /* @__PURE__ */ D({
|
|
5515
5435
|
__name: "MLoadingOverlay",
|
|
5516
5436
|
props: {
|
|
5517
5437
|
visible: { type: Boolean },
|
|
@@ -5544,11 +5464,11 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5544
5464
|
size: e.spinnerSize,
|
|
5545
5465
|
class: "text-primary"
|
|
5546
5466
|
}, null, 8, ["size"]),
|
|
5547
|
-
e.text ? (L(), S("p",
|
|
5467
|
+
e.text ? (L(), S("p", os, G(e.text), 1)) : x("", !0),
|
|
5548
5468
|
H(t.$slots, "default")
|
|
5549
5469
|
], 2)) : x("", !0)]),
|
|
5550
5470
|
_: 3
|
|
5551
|
-
})])) : (L(), S("div",
|
|
5471
|
+
})])) : (L(), S("div", ss, [H(t.$slots, "content"), E(g, {
|
|
5552
5472
|
"enter-active-class": "transition-opacity duration-200",
|
|
5553
5473
|
"enter-from-class": "opacity-0",
|
|
5554
5474
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -5562,13 +5482,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5562
5482
|
size: e.spinnerSize,
|
|
5563
5483
|
class: "text-primary"
|
|
5564
5484
|
}, null, 8, ["size"]),
|
|
5565
|
-
e.text ? (L(), S("p",
|
|
5485
|
+
e.text ? (L(), S("p", cs, G(e.text), 1)) : x("", !0),
|
|
5566
5486
|
H(t.$slots, "default")
|
|
5567
5487
|
], 2)) : x("", !0)]),
|
|
5568
5488
|
_: 3
|
|
5569
5489
|
})]));
|
|
5570
5490
|
}
|
|
5571
|
-
}),
|
|
5491
|
+
}), us = /* @__PURE__ */ D({
|
|
5572
5492
|
__name: "MMasonry",
|
|
5573
5493
|
props: {
|
|
5574
5494
|
cols: { default: 2 },
|
|
@@ -5619,28 +5539,33 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5619
5539
|
class: "relative w-full"
|
|
5620
5540
|
}, [H(e.$slots, "default")], 512));
|
|
5621
5541
|
}
|
|
5622
|
-
}),
|
|
5542
|
+
}), ds = {}, fs = { class: "my-1 border-outline-variant" };
|
|
5543
|
+
function ps(e, t) {
|
|
5544
|
+
return L(), S("hr", fs);
|
|
5545
|
+
}
|
|
5546
|
+
var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap-1" }, gs = [
|
|
5623
5547
|
"id",
|
|
5624
5548
|
"value",
|
|
5625
5549
|
"disabled",
|
|
5626
5550
|
"required"
|
|
5627
|
-
],
|
|
5551
|
+
], _s = ["for"], vs = {
|
|
5628
5552
|
key: 0,
|
|
5629
5553
|
class: "text-error"
|
|
5630
|
-
},
|
|
5554
|
+
}, ys = {
|
|
5631
5555
|
key: 0,
|
|
5632
5556
|
class: "px-4 text-body-small text-error"
|
|
5633
|
-
},
|
|
5557
|
+
}, bs = {
|
|
5634
5558
|
key: 1,
|
|
5635
5559
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5636
|
-
},
|
|
5560
|
+
}, xs = /* @__PURE__ */ D({
|
|
5637
5561
|
__name: "MMaskField",
|
|
5638
5562
|
props: {
|
|
5639
5563
|
modelValue: {},
|
|
5640
5564
|
label: {},
|
|
5641
5565
|
mask: {},
|
|
5642
5566
|
variant: { default: "filled" },
|
|
5643
|
-
error: {},
|
|
5567
|
+
error: { type: Boolean },
|
|
5568
|
+
errorLabel: {},
|
|
5644
5569
|
hint: {},
|
|
5645
5570
|
disabled: { type: Boolean },
|
|
5646
5571
|
required: { type: Boolean },
|
|
@@ -5729,7 +5654,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5729
5654
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
5730
5655
|
].join(" ");
|
|
5731
5656
|
});
|
|
5732
|
-
return (t, n) => (L(), S("div",
|
|
5657
|
+
return (t, n) => (L(), S("div", hs, [C("div", {
|
|
5733
5658
|
ref_key: "fieldBgEl",
|
|
5734
5659
|
ref: s,
|
|
5735
5660
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -5755,11 +5680,11 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5755
5680
|
class: M(D.value),
|
|
5756
5681
|
onInput: y,
|
|
5757
5682
|
onKeydown: b
|
|
5758
|
-
}, null, 42,
|
|
5683
|
+
}, null, 42, gs),
|
|
5759
5684
|
C("label", {
|
|
5760
5685
|
for: K(o),
|
|
5761
5686
|
class: M(O.value)
|
|
5762
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
5687
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", vs, "\xA0*")) : x("", !0)], 10, _s),
|
|
5763
5688
|
h.value ? (L(), S("button", {
|
|
5764
5689
|
key: 1,
|
|
5765
5690
|
type: "button",
|
|
@@ -5771,31 +5696,31 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5771
5696
|
name: "close",
|
|
5772
5697
|
size: 18
|
|
5773
5698
|
})])) : x("", !0)
|
|
5774
|
-
], 6), e.error ? (L(), S("p",
|
|
5699
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", ys, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", bs, G(e.hint), 1)) : x("", !0)]));
|
|
5775
5700
|
}
|
|
5776
|
-
}),
|
|
5701
|
+
}), Ss = { class: "flex flex-col gap-1" }, Cs = ["onClick"], ws = ["title"], Ts = [
|
|
5777
5702
|
"id",
|
|
5778
5703
|
"value",
|
|
5779
5704
|
"placeholder",
|
|
5780
5705
|
"disabled",
|
|
5781
5706
|
"aria-expanded",
|
|
5782
5707
|
"aria-disabled"
|
|
5783
|
-
],
|
|
5708
|
+
], Es = ["for"], Ds = {
|
|
5784
5709
|
key: 0,
|
|
5785
5710
|
class: "text-error"
|
|
5786
|
-
},
|
|
5711
|
+
}, Os = { class: "pointer-events-none absolute right-2 top-4" }, ks = {
|
|
5787
5712
|
key: 0,
|
|
5788
5713
|
class: "px-4 text-body-small text-error"
|
|
5789
|
-
},
|
|
5714
|
+
}, As = {
|
|
5790
5715
|
key: 1,
|
|
5791
5716
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5792
|
-
},
|
|
5717
|
+
}, js = { class: "flex flex-col py-1" }, Ms = ["onMousedown"], Ns = { class: "text-body-large text-on-surface" }, Ps = {
|
|
5793
5718
|
key: 0,
|
|
5794
5719
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
5795
|
-
},
|
|
5720
|
+
}, Fs = { class: "mac-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, Is = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, Ls = { class: "text-headline-small text-on-surface" }, Rs = { class: "px-6 pb-3" }, zs = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, Bs = ["value", "placeholder"], Vs = { class: "flex-1 overflow-y-auto py-2" }, Hs = { class: "text-body-large text-on-surface" }, Us = {
|
|
5796
5721
|
key: 0,
|
|
5797
5722
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
5798
|
-
},
|
|
5723
|
+
}, Ws = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
5799
5724
|
__name: "MMultiAutocomplete",
|
|
5800
5725
|
props: {
|
|
5801
5726
|
modelValue: { default: () => [] },
|
|
@@ -5808,7 +5733,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5808
5733
|
type: Boolean,
|
|
5809
5734
|
default: !1
|
|
5810
5735
|
},
|
|
5811
|
-
error: {},
|
|
5736
|
+
error: { type: Boolean },
|
|
5737
|
+
errorLabel: {},
|
|
5812
5738
|
hint: {},
|
|
5813
5739
|
required: {
|
|
5814
5740
|
type: Boolean,
|
|
@@ -5990,7 +5916,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
5990
5916
|
u.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
5991
5917
|
].join(" ");
|
|
5992
5918
|
});
|
|
5993
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
5919
|
+
return (t, n) => (L(), S(m, null, [C("div", Ss, [C("div", {
|
|
5994
5920
|
ref_key: "fieldEl",
|
|
5995
5921
|
ref: w,
|
|
5996
5922
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6017,13 +5943,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6017
5943
|
}, [E(f, {
|
|
6018
5944
|
name: "close",
|
|
6019
5945
|
size: 12
|
|
6020
|
-
})], 8,
|
|
5946
|
+
})], 8, Cs)]))), 128)),
|
|
6021
5947
|
re.value > 0 && !ie.value ? (L(), S("span", {
|
|
6022
5948
|
key: 0,
|
|
6023
5949
|
title: $.value,
|
|
6024
5950
|
class: "cursor-pointer rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant transition-colors hover:bg-on-surface/12",
|
|
6025
5951
|
onClick: n[0] ||= Q((e) => ie.value = !0, ["stop"])
|
|
6026
|
-
}, " +" + G(re.value), 9,
|
|
5952
|
+
}, " +" + G(re.value), 9, ws)) : x("", !0),
|
|
6027
5953
|
ie.value && e.modelValue.length > e.maxChips ? (L(), S("span", {
|
|
6028
5954
|
key: 1,
|
|
6029
5955
|
class: "cursor-pointer rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant transition-colors hover:bg-on-surface/12",
|
|
@@ -6049,11 +5975,11 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6049
5975
|
onBlur: pe,
|
|
6050
5976
|
onInput: me,
|
|
6051
5977
|
onKeydown: _e
|
|
6052
|
-
}, null, 40,
|
|
5978
|
+
}, null, 40, Ts)], 2),
|
|
6053
5979
|
C("label", {
|
|
6054
5980
|
for: K(c),
|
|
6055
5981
|
class: M(Se.value)
|
|
6056
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
5982
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", Ds, "\xA0*")) : x("", !0)], 10, Es),
|
|
6057
5983
|
e.clearable && ee.value && !e.disabled ? (L(), S("button", {
|
|
6058
5984
|
key: 1,
|
|
6059
5985
|
type: "button",
|
|
@@ -6065,12 +5991,12 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6065
5991
|
name: "close",
|
|
6066
5992
|
size: 18
|
|
6067
5993
|
})])) : x("", !0),
|
|
6068
|
-
C("div",
|
|
5994
|
+
C("div", Os, [E(f, {
|
|
6069
5995
|
name: "arrow_drop_down",
|
|
6070
5996
|
size: 24,
|
|
6071
5997
|
class: M(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
6072
5998
|
}, null, 8, ["class"])])
|
|
6073
|
-
], 6), e.error ? (L(), S("p",
|
|
5999
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", ks, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", As, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
6074
6000
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6075
6001
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6076
6002
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6084,7 +6010,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6084
6010
|
ref: k,
|
|
6085
6011
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6086
6012
|
style: N(A.value)
|
|
6087
|
-
}, [C("div",
|
|
6013
|
+
}, [C("div", js, [(L(!0), S(m, null, V(te.value, (t, n) => (L(), S("label", {
|
|
6088
6014
|
key: n,
|
|
6089
6015
|
"data-option": "",
|
|
6090
6016
|
class: M(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", [t.disabled ? "cursor-not-allowed opacity-38" : "", ye(t) === y.value && !t.disabled ? "bg-on-surface/12" : ""]]),
|
|
@@ -6092,20 +6018,20 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6092
6018
|
}, [E(zn, {
|
|
6093
6019
|
"model-value": Y(e.modelValue, t.value),
|
|
6094
6020
|
disabled: t.disabled
|
|
6095
|
-
}, null, 8, ["model-value", "disabled"]), C("span",
|
|
6021
|
+
}, null, 8, ["model-value", "disabled"]), C("span", Ns, G(t.label), 1)], 42, Ms))), 128)), te.value.length ? x("", !0) : (L(), S("p", Ps, G(ne.value), 1))])], 4)) : x("", !0)]),
|
|
6096
6022
|
_: 1
|
|
6097
6023
|
}), E(g, { name: "m3-mac-modal" }, {
|
|
6098
6024
|
default: Z(() => [d.value && e.mode === "modal" ? (L(), S("div", {
|
|
6099
6025
|
key: 0,
|
|
6100
6026
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6101
6027
|
onClick: Q(de, ["self"])
|
|
6102
|
-
}, [C("div",
|
|
6103
|
-
C("div",
|
|
6028
|
+
}, [C("div", Fs, [
|
|
6029
|
+
C("div", Is, [C("h2", Ls, G(e.label || e.placeholder), 1), E(s, {
|
|
6104
6030
|
icon: "close",
|
|
6105
6031
|
label: K(o).close,
|
|
6106
6032
|
onClick: de
|
|
6107
6033
|
}, null, 8, ["label"])]),
|
|
6108
|
-
C("div",
|
|
6034
|
+
C("div", Rs, [C("div", zs, [E(f, {
|
|
6109
6035
|
name: "search",
|
|
6110
6036
|
size: 16,
|
|
6111
6037
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6115,9 +6041,9 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6115
6041
|
placeholder: K(o).search,
|
|
6116
6042
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant",
|
|
6117
6043
|
onInput: n[4] ||= (e) => W(e.target.value)
|
|
6118
|
-
}, null, 40,
|
|
6044
|
+
}, null, 40, Bs)])]),
|
|
6119
6045
|
n[5] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6120
|
-
C("div",
|
|
6046
|
+
C("div", Vs, [(L(!0), S(m, null, V(le.value, (t, n) => (L(), S("label", {
|
|
6121
6047
|
key: n,
|
|
6122
6048
|
class: M(["flex cursor-pointer items-center gap-4 px-6 py-3 transition-colors hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6123
6049
|
}, [E(zn, {
|
|
@@ -6128,37 +6054,37 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6128
6054
|
"model-value",
|
|
6129
6055
|
"disabled",
|
|
6130
6056
|
"onUpdate:modelValue"
|
|
6131
|
-
]), C("span",
|
|
6057
|
+
]), C("span", Hs, G(t.label), 1)], 2))), 128)), le.value.length ? x("", !0) : (L(), S("p", Us, G(ne.value), 1))])
|
|
6132
6058
|
])])) : x("", !0)]),
|
|
6133
6059
|
_: 1
|
|
6134
6060
|
})]))], 64));
|
|
6135
6061
|
}
|
|
6136
|
-
}), [["__scopeId", "data-v-
|
|
6062
|
+
}), [["__scopeId", "data-v-3337b2c7"]]), Gs = { class: "flex flex-col gap-1" }, Ks = [
|
|
6137
6063
|
"id",
|
|
6138
6064
|
"tabindex",
|
|
6139
6065
|
"aria-expanded"
|
|
6140
|
-
],
|
|
6066
|
+
], qs = ["onClick"], Js = ["title"], Ys = {
|
|
6141
6067
|
key: 1,
|
|
6142
6068
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
6143
|
-
},
|
|
6069
|
+
}, Xs = {
|
|
6144
6070
|
key: 0,
|
|
6145
6071
|
class: "text-error"
|
|
6146
|
-
},
|
|
6072
|
+
}, Zs = { class: "pointer-events-none absolute right-2 top-4" }, Qs = {
|
|
6147
6073
|
key: 0,
|
|
6148
6074
|
class: "px-4 text-body-small text-error"
|
|
6149
|
-
},
|
|
6075
|
+
}, $s = {
|
|
6150
6076
|
key: 1,
|
|
6151
6077
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6152
|
-
},
|
|
6078
|
+
}, ec = {
|
|
6153
6079
|
key: 0,
|
|
6154
6080
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
6155
|
-
},
|
|
6081
|
+
}, tc = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, nc = ["placeholder"], rc = { class: "flex flex-col py-1" }, ic = { class: "text-body-large text-on-surface" }, ac = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, oc = { class: "ms-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, sc = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, cc = { class: "text-headline-small text-on-surface" }, lc = {
|
|
6156
6082
|
key: 0,
|
|
6157
6083
|
class: "px-6 pb-3"
|
|
6158
|
-
},
|
|
6084
|
+
}, uc = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, dc = ["placeholder"], fc = { class: "flex-1 overflow-y-auto py-2" }, pc = { class: "text-body-large text-on-surface" }, mc = {
|
|
6159
6085
|
key: 0,
|
|
6160
6086
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
6161
|
-
},
|
|
6087
|
+
}, hc = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6162
6088
|
__name: "MMultiSelect",
|
|
6163
6089
|
props: {
|
|
6164
6090
|
modelValue: { default: () => [] },
|
|
@@ -6171,7 +6097,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6171
6097
|
type: Boolean,
|
|
6172
6098
|
default: !1
|
|
6173
6099
|
},
|
|
6174
|
-
error: {},
|
|
6100
|
+
error: { type: Boolean },
|
|
6101
|
+
errorLabel: {},
|
|
6175
6102
|
hint: {},
|
|
6176
6103
|
required: {
|
|
6177
6104
|
type: Boolean,
|
|
@@ -6300,7 +6227,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6300
6227
|
l.value ? a.error ? "text-error" : "text-primary" : a.error ? "text-error" : "text-on-surface-variant"
|
|
6301
6228
|
].join(" ");
|
|
6302
6229
|
});
|
|
6303
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
6230
|
+
return (t, n) => (L(), S(m, null, [C("div", Gs, [C("div", {
|
|
6304
6231
|
ref_key: "fieldEl",
|
|
6305
6232
|
ref: _,
|
|
6306
6233
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6337,13 +6264,13 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6337
6264
|
}, [E(f, {
|
|
6338
6265
|
name: "close",
|
|
6339
6266
|
size: 12
|
|
6340
|
-
})], 8,
|
|
6267
|
+
})], 8, qs)]))), 128)),
|
|
6341
6268
|
z.value > 0 && !U.value ? (L(), S("span", {
|
|
6342
6269
|
key: 0,
|
|
6343
6270
|
title: q.value,
|
|
6344
6271
|
class: "cursor-pointer rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant transition-colors hover:bg-on-surface/12",
|
|
6345
6272
|
onClick: n[0] ||= Q((e) => U.value = !0, ["stop"])
|
|
6346
|
-
}, " +" + G(z.value), 9,
|
|
6273
|
+
}, " +" + G(z.value), 9, Js)) : x("", !0),
|
|
6347
6274
|
U.value && e.modelValue.length > e.maxChips ? (L(), S("span", {
|
|
6348
6275
|
key: 1,
|
|
6349
6276
|
class: "cursor-pointer rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant transition-colors hover:bg-on-surface/12",
|
|
@@ -6352,8 +6279,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6352
6279
|
name: "unfold_less",
|
|
6353
6280
|
size: 14
|
|
6354
6281
|
})])) : x("", !0)
|
|
6355
|
-
], 64)) : l.value ? x("", !0) : (L(), S("span",
|
|
6356
|
-
C("label", { class: M(ue.value) }, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
6282
|
+
], 64)) : l.value ? x("", !0) : (L(), S("span", Ys, G(e.placeholder), 1))], 42, Ks),
|
|
6283
|
+
C("label", { class: M(ue.value) }, [T(G(e.label), 1), e.required ? (L(), S("span", Xs, "\xA0*")) : x("", !0)], 2),
|
|
6357
6284
|
e.clearable && P.value && !e.disabled ? (L(), S("button", {
|
|
6358
6285
|
key: 1,
|
|
6359
6286
|
type: "button",
|
|
@@ -6365,12 +6292,12 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6365
6292
|
name: "close",
|
|
6366
6293
|
size: 18
|
|
6367
6294
|
})])) : x("", !0),
|
|
6368
|
-
C("div",
|
|
6295
|
+
C("div", Zs, [E(f, {
|
|
6369
6296
|
name: "arrow_drop_down",
|
|
6370
6297
|
size: 24,
|
|
6371
6298
|
class: M(["text-on-surface-variant transition-transform duration-200", l.value || u.value ? "rotate-180" : ""])
|
|
6372
6299
|
}, null, 8, ["class"])])
|
|
6373
|
-
], 6), e.error ? (L(), S("p",
|
|
6300
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Qs, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", $s, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
6374
6301
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6375
6302
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6376
6303
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6384,7 +6311,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6384
6311
|
ref: w,
|
|
6385
6312
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6386
6313
|
style: N(O.value)
|
|
6387
|
-
}, [e.searchable ? (L(), S("div",
|
|
6314
|
+
}, [e.searchable ? (L(), S("div", ec, [C("div", tc, [E(f, {
|
|
6388
6315
|
name: "search",
|
|
6389
6316
|
size: 16,
|
|
6390
6317
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6395,7 +6322,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6395
6322
|
type: "text",
|
|
6396
6323
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
6397
6324
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6398
|
-
}, null, 8,
|
|
6325
|
+
}, null, 8, nc), [[ee, p.value]])])])) : x("", !0), C("div", rc, [(L(!0), S(m, null, V(R.value, (t, n) => (L(), S("label", {
|
|
6399
6326
|
key: n,
|
|
6400
6327
|
class: M(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6401
6328
|
}, [E(zn, {
|
|
@@ -6406,20 +6333,20 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6406
6333
|
"model-value",
|
|
6407
6334
|
"disabled",
|
|
6408
6335
|
"onUpdate:modelValue"
|
|
6409
|
-
]), C("span",
|
|
6336
|
+
]), C("span", ic, G(t.label), 1)], 2))), 128)), R.value.length === 0 ? H(t.$slots, "no-results", { key: 0 }, () => [C("p", ac, G(e.noResultsText ?? K(i).noResults), 1)], !0) : x("", !0)])], 4)) : x("", !0)]),
|
|
6410
6337
|
_: 3
|
|
6411
6338
|
}), E(g, { name: "m3-ms-modal" }, {
|
|
6412
6339
|
default: Z(() => [u.value && e.mode === "modal" ? (L(), S("div", {
|
|
6413
6340
|
key: 0,
|
|
6414
6341
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6415
6342
|
onClick: Q($, ["self"])
|
|
6416
|
-
}, [C("div",
|
|
6417
|
-
C("div",
|
|
6343
|
+
}, [C("div", oc, [
|
|
6344
|
+
C("div", sc, [C("h2", cc, G(e.label || e.placeholder), 1), E(s, {
|
|
6418
6345
|
icon: "close",
|
|
6419
6346
|
label: K(i).close,
|
|
6420
6347
|
onClick: $
|
|
6421
6348
|
}, null, 8, ["label"])]),
|
|
6422
|
-
e.searchable ? (L(), S("div",
|
|
6349
|
+
e.searchable ? (L(), S("div", lc, [C("div", uc, [E(f, {
|
|
6423
6350
|
name: "search",
|
|
6424
6351
|
size: 16,
|
|
6425
6352
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6428,9 +6355,9 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6428
6355
|
type: "text",
|
|
6429
6356
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
6430
6357
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6431
|
-
}, null, 8,
|
|
6358
|
+
}, null, 8, dc), [[ee, d.value]])])])) : x("", !0),
|
|
6432
6359
|
n[9] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6433
|
-
C("div",
|
|
6360
|
+
C("div", fc, [(L(!0), S(m, null, V(oe.value, (t, n) => (L(), S("label", {
|
|
6434
6361
|
key: n,
|
|
6435
6362
|
class: M(["flex cursor-pointer items-center gap-4 px-6 py-3 transition-colors hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6436
6363
|
}, [E(zn, {
|
|
@@ -6441,12 +6368,12 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6441
6368
|
"model-value",
|
|
6442
6369
|
"disabled",
|
|
6443
6370
|
"onUpdate:modelValue"
|
|
6444
|
-
]), C("span",
|
|
6371
|
+
]), C("span", pc, G(t.label), 1)], 2))), 128)), oe.value.length ? x("", !0) : (L(), S("p", mc, G(e.noResultsText ?? K(i).noResults), 1))])
|
|
6445
6372
|
])])) : x("", !0)]),
|
|
6446
6373
|
_: 1
|
|
6447
6374
|
})]))], 64));
|
|
6448
6375
|
}
|
|
6449
|
-
}), [["__scopeId", "data-v-
|
|
6376
|
+
}), [["__scopeId", "data-v-67bbd3cf"]]), gc = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, _c = ["onClick"], vc = /* @__PURE__ */ D({
|
|
6450
6377
|
__name: "MNavigationBar",
|
|
6451
6378
|
props: {
|
|
6452
6379
|
modelValue: {},
|
|
@@ -6454,7 +6381,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6454
6381
|
},
|
|
6455
6382
|
emits: ["update:modelValue"],
|
|
6456
6383
|
setup(e) {
|
|
6457
|
-
return (t, n) => (L(), S("nav",
|
|
6384
|
+
return (t, n) => (L(), S("nav", gc, [(L(!0), S(m, null, V(e.items, (n) => (L(), S("button", {
|
|
6458
6385
|
key: n.value,
|
|
6459
6386
|
type: "button",
|
|
6460
6387
|
class: M(["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"]),
|
|
@@ -6481,9 +6408,9 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6481
6408
|
size: 24
|
|
6482
6409
|
}, null, 8, ["name"])]),
|
|
6483
6410
|
_: 2
|
|
6484
|
-
}, 1032, ["count"]))], 2), C("span", { class: M(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, G(n.label), 3)], 10,
|
|
6411
|
+
}, 1032, ["count"]))], 2), C("span", { class: M(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, G(n.label), 3)], 10, _c))), 128))]));
|
|
6485
6412
|
}
|
|
6486
|
-
}),
|
|
6413
|
+
}), yc = { class: "flex flex-col gap-1" }, bc = [
|
|
6487
6414
|
"id",
|
|
6488
6415
|
"value",
|
|
6489
6416
|
"disabled",
|
|
@@ -6491,19 +6418,19 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6491
6418
|
"min",
|
|
6492
6419
|
"max",
|
|
6493
6420
|
"step"
|
|
6494
|
-
],
|
|
6421
|
+
], xc = ["for"], Sc = {
|
|
6495
6422
|
key: 0,
|
|
6496
6423
|
class: "text-error"
|
|
6497
|
-
},
|
|
6424
|
+
}, Cc = {
|
|
6498
6425
|
key: 1,
|
|
6499
6426
|
class: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5"
|
|
6500
|
-
},
|
|
6427
|
+
}, wc = {
|
|
6501
6428
|
key: 0,
|
|
6502
6429
|
class: "px-4 text-body-small text-error"
|
|
6503
|
-
},
|
|
6430
|
+
}, Tc = {
|
|
6504
6431
|
key: 1,
|
|
6505
6432
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6506
|
-
},
|
|
6433
|
+
}, Ec = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6507
6434
|
__name: "MNumberField",
|
|
6508
6435
|
props: {
|
|
6509
6436
|
modelValue: { default: null },
|
|
@@ -6512,7 +6439,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6512
6439
|
min: {},
|
|
6513
6440
|
max: {},
|
|
6514
6441
|
step: { default: 1 },
|
|
6515
|
-
error: {},
|
|
6442
|
+
error: { type: Boolean },
|
|
6443
|
+
errorLabel: {},
|
|
6516
6444
|
hint: {},
|
|
6517
6445
|
disabled: { type: Boolean },
|
|
6518
6446
|
required: { type: Boolean },
|
|
@@ -6594,7 +6522,7 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6594
6522
|
r.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
6595
6523
|
].join(" ");
|
|
6596
6524
|
});
|
|
6597
|
-
return (t, n) => (L(), S("div",
|
|
6525
|
+
return (t, n) => (L(), S("div", yc, [C("div", {
|
|
6598
6526
|
ref_key: "fieldBgEl",
|
|
6599
6527
|
ref: o,
|
|
6600
6528
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6620,12 +6548,12 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6620
6548
|
class: M(_.value),
|
|
6621
6549
|
onInput: p,
|
|
6622
6550
|
onKeydown: g
|
|
6623
|
-
}, null, 42,
|
|
6551
|
+
}, null, 42, bc),
|
|
6624
6552
|
C("label", {
|
|
6625
6553
|
for: K(a),
|
|
6626
6554
|
class: M(y.value)
|
|
6627
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
6628
|
-
e.stepper ? (L(), S("div",
|
|
6555
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", Sc, "\xA0*")) : x("", !0)], 10, xc),
|
|
6556
|
+
e.stepper ? (L(), S("div", Cc, [E(s, {
|
|
6629
6557
|
icon: "remove",
|
|
6630
6558
|
label: "Decrease",
|
|
6631
6559
|
size: 32,
|
|
@@ -6638,9 +6566,9 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6638
6566
|
disabled: e.disabled || e.max !== void 0 && (e.modelValue ?? 0) >= e.max,
|
|
6639
6567
|
onClick: m
|
|
6640
6568
|
}, null, 8, ["disabled"])])) : x("", !0)
|
|
6641
|
-
], 6), e.error ? (L(), S("p",
|
|
6569
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", wc, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Tc, G(e.hint), 1)) : x("", !0)]));
|
|
6642
6570
|
}
|
|
6643
|
-
}), [["__scopeId", "data-v-
|
|
6571
|
+
}), [["__scopeId", "data-v-f6db08d0"]]), Dc = D({
|
|
6644
6572
|
name: "MDrawerItemList",
|
|
6645
6573
|
components: { MIcon: f },
|
|
6646
6574
|
props: {
|
|
@@ -6715,8 +6643,8 @@ var Ta = ["aria-label", "disabled"], Ea = { class: "leading-none" }, Da = /* @__
|
|
|
6715
6643
|
}).onfinish = t;
|
|
6716
6644
|
}
|
|
6717
6645
|
}
|
|
6718
|
-
}),
|
|
6719
|
-
function
|
|
6646
|
+
}), Oc = { key: 0 };
|
|
6647
|
+
function kc(e, t, n, r, i, a) {
|
|
6720
6648
|
let o = U("MIcon"), s = U("MDrawerItemList");
|
|
6721
6649
|
return L(!0), S(m, null, V(e.items, (t) => (L(), S(m, { key: t.value }, [(L(), b(W(e.itemTag(t)), {
|
|
6722
6650
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -6756,7 +6684,7 @@ function jc(e, t, n, r, i, a) {
|
|
|
6756
6684
|
onEnter: e.onEnter,
|
|
6757
6685
|
onLeave: e.onLeave
|
|
6758
6686
|
}, {
|
|
6759
|
-
default: Z(() => [t.children?.length && e.openItems[t.value] ? (L(), S("div",
|
|
6687
|
+
default: Z(() => [t.children?.length && e.openItems[t.value] ? (L(), S("div", Oc, [E(s, {
|
|
6760
6688
|
items: t.children,
|
|
6761
6689
|
selected: e.selected,
|
|
6762
6690
|
depth: e.depth + 1
|
|
@@ -6768,52 +6696,52 @@ function jc(e, t, n, r, i, a) {
|
|
|
6768
6696
|
_: 2
|
|
6769
6697
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
6770
6698
|
}
|
|
6771
|
-
var
|
|
6699
|
+
var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
6772
6700
|
key: 0,
|
|
6773
6701
|
class: "shrink-0"
|
|
6774
|
-
},
|
|
6702
|
+
}, Mc = {
|
|
6775
6703
|
key: 1,
|
|
6776
6704
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
6777
|
-
},
|
|
6705
|
+
}, Nc = { class: "text-title-small font-medium text-on-surface-variant" }, Pc = { class: "flex flex-1 flex-col overflow-y-auto px-3 py-2" }, Fc = {
|
|
6778
6706
|
key: 0,
|
|
6779
6707
|
class: "my-1 border-t border-outline-variant"
|
|
6780
|
-
},
|
|
6708
|
+
}, Ic = ["onClick"], Lc = { class: "flex-1 text-left text-title-small font-medium" }, Rc = {
|
|
6781
6709
|
key: 2,
|
|
6782
6710
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
6783
|
-
},
|
|
6711
|
+
}, zc = {
|
|
6784
6712
|
key: 0,
|
|
6785
6713
|
class: "nd-section-grid"
|
|
6786
|
-
},
|
|
6714
|
+
}, Bc = { class: "nd-section-body" }, Vc = {
|
|
6787
6715
|
key: 2,
|
|
6788
6716
|
class: "text-label-medium text-on-surface-variant"
|
|
6789
|
-
},
|
|
6717
|
+
}, Hc = { key: 0 }, Uc = {
|
|
6790
6718
|
key: 0,
|
|
6791
6719
|
class: "nd-toggle shrink-0 border-b border-outline-variant"
|
|
6792
|
-
},
|
|
6720
|
+
}, Wc = { class: "nd-toggle-inner" }, Gc = {
|
|
6793
6721
|
key: 1,
|
|
6794
6722
|
class: "shrink-0"
|
|
6795
|
-
},
|
|
6723
|
+
}, Kc = {
|
|
6796
6724
|
key: 2,
|
|
6797
6725
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
6798
|
-
},
|
|
6726
|
+
}, qc = { class: "px-5 pt-6 pb-2" }, Jc = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Yc = { class: "flex flex-1 flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, Xc = {
|
|
6799
6727
|
key: 0,
|
|
6800
6728
|
class: "my-1 border-t border-outline-variant"
|
|
6801
|
-
},
|
|
6729
|
+
}, Zc = ["title", "onClick"], Qc = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, $c = {
|
|
6802
6730
|
key: 2,
|
|
6803
6731
|
class: "nd-collapse-h overflow-hidden"
|
|
6804
|
-
},
|
|
6732
|
+
}, el = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, tl = {
|
|
6805
6733
|
key: 0,
|
|
6806
6734
|
class: "nd-section-grid"
|
|
6807
|
-
},
|
|
6735
|
+
}, nl = { class: "nd-section-body" }, rl = {
|
|
6808
6736
|
key: 2,
|
|
6809
6737
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
6810
|
-
},
|
|
6738
|
+
}, il = {
|
|
6811
6739
|
key: 0,
|
|
6812
6740
|
class: "nd-children-divider"
|
|
6813
|
-
},
|
|
6741
|
+
}, al = { key: 0 }, ol = {
|
|
6814
6742
|
key: 1,
|
|
6815
6743
|
class: "nd-children-divider"
|
|
6816
|
-
},
|
|
6744
|
+
}, sl = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6817
6745
|
__name: "MNavigationDrawer",
|
|
6818
6746
|
props: {
|
|
6819
6747
|
modelValue: { type: Boolean },
|
|
@@ -6912,8 +6840,8 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
6912
6840
|
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
6913
6841
|
]),
|
|
6914
6842
|
style: N(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
6915
|
-
}, [t.$slots.header ? (L(), S("div",
|
|
6916
|
-
n > 0 ? (L(), S("div",
|
|
6843
|
+
}, [t.$slots.header ? (L(), S("div", jc, [H(t.$slots, "header", {}, void 0, !0)])) : e.title ? (L(), S("div", Mc, [C("h2", Nc, G(e.title), 1)])) : x("", !0), C("div", Pc, [(L(!0), S(m, null, V(e.sections, (t, n) => (L(), S(m, { key: n }, [
|
|
6844
|
+
n > 0 ? (L(), S("div", Fc)) : x("", !0),
|
|
6917
6845
|
t.title && t.collapsible ? (L(), S("button", {
|
|
6918
6846
|
key: 1,
|
|
6919
6847
|
type: "button",
|
|
@@ -6926,15 +6854,15 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
6926
6854
|
size: 24,
|
|
6927
6855
|
class: "shrink-0"
|
|
6928
6856
|
}, null, 8, ["name"])) : x("", !0),
|
|
6929
|
-
C("span",
|
|
6857
|
+
C("span", Lc, G(t.title), 1),
|
|
6930
6858
|
E(f, {
|
|
6931
6859
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
6932
6860
|
size: 18,
|
|
6933
6861
|
class: "shrink-0"
|
|
6934
6862
|
}, null, 8, ["name"])
|
|
6935
|
-
], 8,
|
|
6863
|
+
], 8, Ic)) : t.title ? (L(), S("p", Rc, G(t.title), 1)) : x("", !0),
|
|
6936
6864
|
E(g, { name: "nd-section" }, {
|
|
6937
|
-
default: Z(() => [!t.collapsible || s(t, n) ? (L(), S("div",
|
|
6865
|
+
default: Z(() => [!t.collapsible || s(t, n) ? (L(), S("div", zc, [C("div", Bc, [(L(!0), S(m, null, V(t.items, (n) => (L(), S(m, { key: n.value }, [(L(), b(W(k(n)), {
|
|
6938
6866
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
6939
6867
|
type: n.to ? void 0 : "button",
|
|
6940
6868
|
class: M(["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"]]),
|
|
@@ -6953,7 +6881,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
6953
6881
|
name: l(n) ? "expand_less" : "expand_more",
|
|
6954
6882
|
size: 18,
|
|
6955
6883
|
class: "shrink-0 text-on-surface-variant"
|
|
6956
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span",
|
|
6884
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span", Vc, G(n.badge), 1))
|
|
6957
6885
|
]),
|
|
6958
6886
|
_: 2
|
|
6959
6887
|
}, 1032, [
|
|
@@ -6968,7 +6896,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
6968
6896
|
onEnter: w,
|
|
6969
6897
|
onLeave: T
|
|
6970
6898
|
}, {
|
|
6971
|
-
default: Z(() => [n.children?.length && l(n) ? (L(), S("div",
|
|
6899
|
+
default: Z(() => [n.children?.length && l(n) ? (L(), S("div", Hc, [E(Ac, {
|
|
6972
6900
|
items: n.children,
|
|
6973
6901
|
selected: e.selected
|
|
6974
6902
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
@@ -6986,10 +6914,10 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
6986
6914
|
"--nd-width": e.width ?? "18rem"
|
|
6987
6915
|
})
|
|
6988
6916
|
}, [
|
|
6989
|
-
t.$slots.toggle ? (L(), S("div",
|
|
6990
|
-
t.$slots.header ? (L(), S("div",
|
|
6991
|
-
C("div",
|
|
6992
|
-
n > 0 ? (L(), S("div",
|
|
6917
|
+
t.$slots.toggle ? (L(), S("div", Uc, [C("div", Wc, [H(t.$slots, "toggle", {}, void 0, !0)])])) : x("", !0),
|
|
6918
|
+
t.$slots.header ? (L(), S("div", Gc, [H(t.$slots, "header", {}, void 0, !0)])) : e.title ? (L(), S("div", Kc, [C("div", qc, [C("h2", Jc, G(e.title), 1)])])) : x("", !0),
|
|
6919
|
+
C("div", Yc, [(L(!0), S(m, null, V(e.sections, (t, n) => (L(), S(m, { key: n }, [
|
|
6920
|
+
n > 0 ? (L(), S("div", Xc)) : x("", !0),
|
|
6993
6921
|
t.title && t.collapsible ? (L(), S("button", {
|
|
6994
6922
|
key: 1,
|
|
6995
6923
|
type: "button",
|
|
@@ -7003,15 +6931,15 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7003
6931
|
size: 24,
|
|
7004
6932
|
class: "shrink-0"
|
|
7005
6933
|
}, null, 8, ["name"])) : x("", !0),
|
|
7006
|
-
C("span",
|
|
6934
|
+
C("span", Qc, G(t.title), 1),
|
|
7007
6935
|
E(f, {
|
|
7008
6936
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
7009
6937
|
size: 18,
|
|
7010
6938
|
class: "nd-label shrink-0"
|
|
7011
6939
|
}, null, 8, ["name"])
|
|
7012
|
-
], 8,
|
|
6940
|
+
], 8, Zc)) : t.title ? (L(), S("div", $c, [C("p", el, G(t.title), 1)])) : x("", !0),
|
|
7013
6941
|
E(g, { name: "nd-section" }, {
|
|
7014
|
-
default: Z(() => [!t.collapsible || s(t, n) ? (L(), S("div",
|
|
6942
|
+
default: Z(() => [!t.collapsible || s(t, n) ? (L(), S("div", tl, [C("div", nl, [(L(!0), S(m, null, V(t.items, (n) => (L(), S(m, { key: n.value }, [
|
|
7015
6943
|
(L(), b(W(k(n)), {
|
|
7016
6944
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
7017
6945
|
type: n.to ? void 0 : "button",
|
|
@@ -7033,7 +6961,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7033
6961
|
name: l(n) ? "expand_less" : "expand_more",
|
|
7034
6962
|
size: 18,
|
|
7035
6963
|
class: "nd-label shrink-0 text-on-surface-variant"
|
|
7036
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span",
|
|
6964
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span", rl, G(n.badge), 1))
|
|
7037
6965
|
]),
|
|
7038
6966
|
_: 2
|
|
7039
6967
|
}, 1032, [
|
|
@@ -7044,29 +6972,29 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7044
6972
|
"disabled",
|
|
7045
6973
|
"onClick"
|
|
7046
6974
|
])),
|
|
7047
|
-
n.children?.length && l(n) ? (L(), S("div",
|
|
6975
|
+
n.children?.length && l(n) ? (L(), S("div", il)) : x("", !0),
|
|
7048
6976
|
E(g, {
|
|
7049
6977
|
css: !1,
|
|
7050
6978
|
onEnter: w,
|
|
7051
6979
|
onLeave: T
|
|
7052
6980
|
}, {
|
|
7053
|
-
default: Z(() => [n.children?.length && l(n) ? (L(), S("div",
|
|
6981
|
+
default: Z(() => [n.children?.length && l(n) ? (L(), S("div", al, [E(Ac, {
|
|
7054
6982
|
items: n.children,
|
|
7055
6983
|
selected: e.selected
|
|
7056
6984
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
7057
6985
|
_: 2
|
|
7058
6986
|
}, 1024),
|
|
7059
|
-
n.children?.length && l(n) ? (L(), S("div",
|
|
6987
|
+
n.children?.length && l(n) ? (L(), S("div", ol)) : x("", !0)
|
|
7060
6988
|
], 64))), 128))])])) : x("", !0)]),
|
|
7061
6989
|
_: 2
|
|
7062
6990
|
}, 1024)
|
|
7063
6991
|
], 64))), 128)), H(t.$slots, "default", {}, void 0, !0)])
|
|
7064
6992
|
], 6));
|
|
7065
6993
|
}
|
|
7066
|
-
}), [["__scopeId", "data-v-2210a491"]]),
|
|
6994
|
+
}), [["__scopeId", "data-v-2210a491"]]), cl = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, ll = {
|
|
7067
6995
|
key: 0,
|
|
7068
6996
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
7069
|
-
},
|
|
6997
|
+
}, ul = ["disabled", "onClick"], dl = /* @__PURE__ */ D({
|
|
7070
6998
|
__name: "MNavigationRail",
|
|
7071
6999
|
props: {
|
|
7072
7000
|
modelValue: {},
|
|
@@ -7075,7 +7003,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7075
7003
|
},
|
|
7076
7004
|
emits: ["update:modelValue"],
|
|
7077
7005
|
setup(e) {
|
|
7078
|
-
return (t, n) => (L(), S("nav",
|
|
7006
|
+
return (t, n) => (L(), S("nav", cl, [t.$slots.fab ? (L(), S("div", ll, [H(t.$slots, "fab")])) : x("", !0), C("div", { class: M(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
7079
7007
|
"justify-start": e.alignment === "top",
|
|
7080
7008
|
"justify-center": e.alignment === "center",
|
|
7081
7009
|
"justify-end": e.alignment === "bottom"
|
|
@@ -7107,9 +7035,9 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7107
7035
|
size: 24
|
|
7108
7036
|
}, null, 8, ["name"])]),
|
|
7109
7037
|
_: 2
|
|
7110
|
-
}, 1032, ["count"]))], 2), C("span", { class: M(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, G(n.label), 3)], 10,
|
|
7038
|
+
}, 1032, ["count"]))], 2), C("span", { class: M(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, G(n.label), 3)], 10, ul))), 128))], 2)]));
|
|
7111
7039
|
}
|
|
7112
|
-
}),
|
|
7040
|
+
}), fl = { class: "relative h-full w-full" }, pl = /* @__PURE__ */ D({
|
|
7113
7041
|
__name: "MOverlay",
|
|
7114
7042
|
props: {
|
|
7115
7043
|
modelValue: {
|
|
@@ -7142,17 +7070,17 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7142
7070
|
key: 0,
|
|
7143
7071
|
class: "absolute inset-0 bg-black/50",
|
|
7144
7072
|
onClick: a
|
|
7145
|
-
})) : x("", !0), C("div",
|
|
7073
|
+
})) : x("", !0), C("div", fl, [H(t.$slots, "default")])], 4)) : x("", !0)]),
|
|
7146
7074
|
_: 3
|
|
7147
7075
|
})]));
|
|
7148
7076
|
}
|
|
7149
|
-
}),
|
|
7077
|
+
}), ml = { class: "flex flex-col gap-1" }, hl = {
|
|
7150
7078
|
key: 0,
|
|
7151
7079
|
class: "text-label-small text-on-surface-variant"
|
|
7152
|
-
},
|
|
7080
|
+
}, gl = ["aria-valuenow"], _l = ["aria-valuenow"], vl = ["height", "viewBox"], yl = ["d", "stroke-width"], bl = {
|
|
7153
7081
|
key: 1,
|
|
7154
7082
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
7155
|
-
},
|
|
7083
|
+
}, xl = ["height", "viewBox"], Sl = ["d", "stroke-width"], Cl = 20, wl = 2.5, Tl = 80, El = 2, Dl = 4, Ol = 10, kl = 130, Al = /* @__PURE__ */ D({
|
|
7156
7084
|
__name: "MProgressBar",
|
|
7157
7085
|
props: {
|
|
7158
7086
|
value: {},
|
|
@@ -7184,10 +7112,10 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7184
7112
|
track: "bg-error-container",
|
|
7185
7113
|
text: "text-error"
|
|
7186
7114
|
}
|
|
7187
|
-
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() =>
|
|
7115
|
+
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() => wl + a.value / 2), s = v(() => 2 * wl + a.value), c = Cl * Tl, l = (() => {
|
|
7188
7116
|
let e = "";
|
|
7189
|
-
for (let t = 0; t <= c; t +=
|
|
7190
|
-
let n = 4 -
|
|
7117
|
+
for (let t = 0; t <= c; t += El) {
|
|
7118
|
+
let n = 4 - wl * Math.sin(t / Cl * Math.PI * 2);
|
|
7191
7119
|
e += `${t === 0 ? "M" : "L"}${t},${n.toFixed(2)} `;
|
|
7192
7120
|
}
|
|
7193
7121
|
return e.trim();
|
|
@@ -7215,8 +7143,8 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7215
7143
|
let y = B(null), b = B(null), w = B(""), T = null, E = 0, D = 2 * Math.PI / 800;
|
|
7216
7144
|
function O(e, t) {
|
|
7217
7145
|
let n = o.value, r = [];
|
|
7218
|
-
for (let i = 0; i <= c; i +=
|
|
7219
|
-
let a = n -
|
|
7146
|
+
for (let i = 0; i <= c; i += El) {
|
|
7147
|
+
let a = n - wl * e * Math.sin(i / Cl * Math.PI * 2 + t);
|
|
7220
7148
|
r.push(`${i === 0 ? "M" : "L"}${i},${a.toFixed(2)}`);
|
|
7221
7149
|
}
|
|
7222
7150
|
return r.join(" ");
|
|
@@ -7224,23 +7152,23 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7224
7152
|
function k(e) {
|
|
7225
7153
|
let t = T === null ? 0 : e - T;
|
|
7226
7154
|
if (T = e, f -= t * D, t > 0) {
|
|
7227
|
-
let e = 1 - Math.exp(-t /
|
|
7155
|
+
let e = 1 - Math.exp(-t / kl);
|
|
7228
7156
|
u += (r.value - u) * e;
|
|
7229
7157
|
}
|
|
7230
7158
|
d = _(p, e);
|
|
7231
|
-
let n =
|
|
7159
|
+
let n = Dl * d, i = u;
|
|
7232
7160
|
y.value && (y.value.style.clipPath = `inset(0 ${(100 - i).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${i.toFixed(3)}% + ${n.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), w.value = O(d, f), E = requestAnimationFrame(k);
|
|
7233
7161
|
}
|
|
7234
7162
|
X(r, (e, r) => {
|
|
7235
7163
|
if (t.variant !== "wavy" || n.value) return;
|
|
7236
7164
|
let i = performance.now();
|
|
7237
|
-
r <=
|
|
7165
|
+
r <= Ol && e > Ol && e < 100 ? g(p, d, 1, i) : r > Ol && e <= Ol || e === 100 ? g(p, d, 0, i) : r === 100 && e > Ol && g(p, d, 1, i);
|
|
7238
7166
|
});
|
|
7239
7167
|
function A() {
|
|
7240
7168
|
u = r.value;
|
|
7241
7169
|
let e = r.value;
|
|
7242
|
-
d = +(e >
|
|
7243
|
-
let t =
|
|
7170
|
+
d = +(e > Ol && e < 100), p.to = d, p.t0 = -1;
|
|
7171
|
+
let t = Dl * d;
|
|
7244
7172
|
y.value && (y.value.style.clipPath = `inset(0 ${(100 - e).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${e.toFixed(3)}% + ${t.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), w.value = O(d, f), E ||= requestAnimationFrame(k);
|
|
7245
7173
|
}
|
|
7246
7174
|
function P() {
|
|
@@ -7252,7 +7180,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7252
7180
|
e === "wavy" && !n.value ? (await j(), A()) : P();
|
|
7253
7181
|
}), X(n, async (e) => {
|
|
7254
7182
|
!e && t.variant === "wavy" ? (await j(), A()) : P();
|
|
7255
|
-
}), (t, o) => (L(), S("div",
|
|
7183
|
+
}), (t, o) => (L(), S("div", ml, [e.label ? (L(), S("span", hl, G(e.label), 1)) : x("", !0), e.variant === "linear" ? (L(), S("div", {
|
|
7256
7184
|
key: 1,
|
|
7257
7185
|
class: M(["relative w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
7258
7186
|
style: N({ height: `${a.value}px` }),
|
|
@@ -7267,7 +7195,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7267
7195
|
key: 0,
|
|
7268
7196
|
class: M(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
7269
7197
|
style: N({ width: `${r.value}%` })
|
|
7270
|
-
}, null, 6))], 14,
|
|
7198
|
+
}, null, 6))], 14, gl)) : (L(), S("div", {
|
|
7271
7199
|
key: 2,
|
|
7272
7200
|
class: "relative w-full overflow-visible",
|
|
7273
7201
|
style: N({ height: `${s.value}px` }),
|
|
@@ -7275,7 +7203,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7275
7203
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
7276
7204
|
"aria-valuemin": "0",
|
|
7277
7205
|
"aria-valuemax": "100"
|
|
7278
|
-
}, [n.value ? (L(), S("div",
|
|
7206
|
+
}, [n.value ? (L(), S("div", bl, [C("div", {
|
|
7279
7207
|
class: M(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
7280
7208
|
style: N({ width: `${c}px` })
|
|
7281
7209
|
}, [(L(), S("svg", {
|
|
@@ -7290,7 +7218,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7290
7218
|
stroke: "currentColor",
|
|
7291
7219
|
"stroke-width": a.value,
|
|
7292
7220
|
"stroke-linecap": "round"
|
|
7293
|
-
}, null, 8,
|
|
7221
|
+
}, null, 8, Sl)], 8, xl))], 6)])) : (L(), S(m, { key: 0 }, [
|
|
7294
7222
|
C("div", {
|
|
7295
7223
|
ref_key: "waveClipEl",
|
|
7296
7224
|
ref: y,
|
|
@@ -7307,7 +7235,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7307
7235
|
stroke: "currentColor",
|
|
7308
7236
|
"stroke-width": a.value,
|
|
7309
7237
|
"stroke-linecap": "round"
|
|
7310
|
-
}, null, 8,
|
|
7238
|
+
}, null, 8, yl)], 10, vl))], 512),
|
|
7311
7239
|
C("div", {
|
|
7312
7240
|
ref_key: "trackEl",
|
|
7313
7241
|
ref: b,
|
|
@@ -7328,23 +7256,23 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7328
7256
|
height: `${a.value}px`
|
|
7329
7257
|
})
|
|
7330
7258
|
}, null, 6)
|
|
7331
|
-
], 64))], 12,
|
|
7259
|
+
], 64))], 12, _l))]));
|
|
7332
7260
|
}
|
|
7333
|
-
}),
|
|
7261
|
+
}), jl = { class: "inline-flex flex-col items-center gap-1" }, Ml = {
|
|
7334
7262
|
key: 0,
|
|
7335
7263
|
class: "text-label-small text-on-surface-variant"
|
|
7336
|
-
},
|
|
7264
|
+
}, Nl = { class: "relative" }, Pl = [
|
|
7337
7265
|
"width",
|
|
7338
7266
|
"height",
|
|
7339
7267
|
"aria-valuenow"
|
|
7340
|
-
],
|
|
7268
|
+
], Fl = ["stroke-width"], Il = ["stroke-width"], Ll = ["id"], Rl = ["stroke-width"], zl = ["stroke-width"], Bl = [
|
|
7341
7269
|
"d",
|
|
7342
7270
|
"stroke-width",
|
|
7343
7271
|
"mask"
|
|
7344
|
-
],
|
|
7272
|
+
], Vl = ["stroke-width"], Hl = ["stroke-width"], Ul = {
|
|
7345
7273
|
key: 0,
|
|
7346
7274
|
class: "absolute inset-0 flex items-center justify-center"
|
|
7347
|
-
},
|
|
7275
|
+
}, Wl = 40, Gl = 12, Kl = .055, ql = 10, Jl = 130, Yl = /* @__PURE__ */ D({
|
|
7348
7276
|
__name: "MCircleProgressBar",
|
|
7349
7277
|
props: {
|
|
7350
7278
|
value: {},
|
|
@@ -7373,7 +7301,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7373
7301
|
fill: "var(--color-error)",
|
|
7374
7302
|
track: "var(--color-error-container)"
|
|
7375
7303
|
}
|
|
7376
|
-
}, i = v(() => r[t.color]), a = 2 * Math.PI *
|
|
7304
|
+
}, i = v(() => r[t.color]), a = 2 * Math.PI * Wl, o = Gl * 20, s = v(() => t.thickness), c = v(() => t.thickness + Math.ceil(2 * Wl * Kl) + 2), l = v(() => .75 + t.thickness * .25), u = v(() => n.value / 100 * a);
|
|
7377
7305
|
function d(e) {
|
|
7378
7306
|
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
7379
7307
|
}
|
|
@@ -7407,13 +7335,13 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7407
7335
|
return n >= 1 && (e.t0 = -1), r;
|
|
7408
7336
|
}
|
|
7409
7337
|
X(n, (e, n) => {
|
|
7410
|
-
t.indeterminate || (n <=
|
|
7338
|
+
t.indeterminate || (n <= ql && e > ql && E(y, p, 1, performance.now()), n > ql && e <= ql && E(y, p, 0, performance.now()), e === 100 ? (p = 1, y.t0 = -1, T.t0 = -1, E(b, h, 0, performance.now()), w.t0 = -1, w.to = 1, g = 1) : n === 100 && (b.t0 = -1, b.to = 1, w.t0 = -1, w.to = 1, T.t0 = -1, E(T, Math.min(h, g), 1, performance.now())));
|
|
7411
7339
|
});
|
|
7412
|
-
let O = B(null), k = B(null), A = B(z(
|
|
7340
|
+
let O = B(null), k = B(null), A = B(z(Wl * Kl, 0)), j = null, M = 0, P = 2 * Math.PI / Gl / 90;
|
|
7413
7341
|
function R(e) {
|
|
7414
7342
|
let t = j === null ? 0 : e - j;
|
|
7415
7343
|
if (j = e, _ -= t * P, t > 0) {
|
|
7416
|
-
let e = 1 - Math.exp(-t /
|
|
7344
|
+
let e = 1 - Math.exp(-t / Jl);
|
|
7417
7345
|
f += (u.value - f) * e;
|
|
7418
7346
|
}
|
|
7419
7347
|
if (p = D(y, e), (b.t0 >= 0 || b.to === 0) && (h = D(b, e), b.t0 < 0 && h <= 0 && w.t0 < 0 && w.to !== 0 && E(w, g, 0, e)), (w.t0 >= 0 || w.to === 0) && (g = D(w, e)), T.t0 >= 0) {
|
|
@@ -7423,12 +7351,12 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7423
7351
|
let n = p * g, r = l.value * n * h, i = f, o = a - i, s = Math.max(0, i - 2 * r), c = -90 + r / a * 360, d = O.value;
|
|
7424
7352
|
d && (d.setAttribute("stroke-dasharray", `${s.toFixed(2)} ${(a - s).toFixed(2)}`), d.setAttribute("transform", `rotate(${c.toFixed(3)}, 50, 50)`));
|
|
7425
7353
|
let m = Math.max(0, o - 2 * r), v = Math.max(0, o - r), x = k.value;
|
|
7426
|
-
x && (x.setAttribute("stroke-dasharray", `${m.toFixed(2)} ${(a - m).toFixed(2)}`), x.setAttribute("stroke-dashoffset", v.toFixed(2))), A.value = z(
|
|
7354
|
+
x && (x.setAttribute("stroke-dasharray", `${m.toFixed(2)} ${(a - m).toFixed(2)}`), x.setAttribute("stroke-dashoffset", v.toFixed(2))), A.value = z(Wl * Kl * n, _), M = requestAnimationFrame(R);
|
|
7427
7355
|
}
|
|
7428
7356
|
function z(e, t) {
|
|
7429
7357
|
let n = [];
|
|
7430
7358
|
for (let r = 0; r <= o; r++) {
|
|
7431
|
-
let i = 2 * Math.PI * r / o - Math.PI / 2, a =
|
|
7359
|
+
let i = 2 * Math.PI * r / o - Math.PI / 2, a = Wl + e * Math.sin(Gl * i + t), s = 50 + a * Math.cos(i), c = 50 + a * Math.sin(i);
|
|
7432
7360
|
n.push(`${r === 0 ? "M" : "L"}${s.toFixed(2)},${c.toFixed(2)}`);
|
|
7433
7361
|
}
|
|
7434
7362
|
return n.join("") + "Z";
|
|
@@ -7441,7 +7369,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7441
7369
|
}
|
|
7442
7370
|
function W() {
|
|
7443
7371
|
let e = n.value;
|
|
7444
|
-
f = u.value, p = 0, h = 1, g = 1, y.t0 = b.t0 = w.t0 = T.t0 = -1, y.to = 0, b.to = 1, w.to = 1, e === 100 ? (p = 1, h = 0, g = 0, b.to = 0, w.to = 0) : e >
|
|
7372
|
+
f = u.value, p = 0, h = 1, g = 1, y.t0 = b.t0 = w.t0 = T.t0 = -1, y.to = 0, b.to = 1, w.to = 1, e === 100 ? (p = 1, h = 0, g = 0, b.to = 0, w.to = 0) : e > ql && (p = 1, y.to = 1);
|
|
7445
7373
|
}
|
|
7446
7374
|
F(() => {
|
|
7447
7375
|
t.variant === "wavy" && !t.indeterminate && (W(), V());
|
|
@@ -7451,7 +7379,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7451
7379
|
e ? U() : t.variant === "wavy" && (W(), V());
|
|
7452
7380
|
});
|
|
7453
7381
|
let q = J();
|
|
7454
|
-
return (t, r) => (L(), S("div",
|
|
7382
|
+
return (t, r) => (L(), S("div", jl, [e.label ? (L(), S("span", Ml, G(e.label), 1)) : x("", !0), C("div", Nl, [(L(), S("svg", {
|
|
7455
7383
|
width: e.size,
|
|
7456
7384
|
height: e.size,
|
|
7457
7385
|
viewBox: "0 0 100 100",
|
|
@@ -7463,14 +7391,14 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7463
7391
|
}, [e.indeterminate ? (L(), S(m, { key: 0 }, [C("circle", {
|
|
7464
7392
|
cx: "50",
|
|
7465
7393
|
cy: "50",
|
|
7466
|
-
r:
|
|
7394
|
+
r: Wl,
|
|
7467
7395
|
fill: "none",
|
|
7468
7396
|
"stroke-width": s.value,
|
|
7469
7397
|
style: N({ stroke: i.value.track })
|
|
7470
|
-
}, null, 12,
|
|
7398
|
+
}, null, 12, Fl), C("circle", {
|
|
7471
7399
|
cx: "50",
|
|
7472
7400
|
cy: "50",
|
|
7473
|
-
r:
|
|
7401
|
+
r: Wl,
|
|
7474
7402
|
fill: "none",
|
|
7475
7403
|
"stroke-width": s.value,
|
|
7476
7404
|
"stroke-linecap": "round",
|
|
@@ -7479,7 +7407,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7479
7407
|
transformOrigin: "50px 50px",
|
|
7480
7408
|
animation: "m3-cpb-spin 1.4s linear infinite, m3-cpb-arc 3s ease-in-out infinite"
|
|
7481
7409
|
})
|
|
7482
|
-
}, null, 12,
|
|
7410
|
+
}, null, 12, Il)], 64)) : e.variant === "wavy" ? (L(), S(m, { key: 1 }, [
|
|
7483
7411
|
C("defs", null, [C("mask", {
|
|
7484
7412
|
id: K(q),
|
|
7485
7413
|
maskUnits: "userSpaceOnUse"
|
|
@@ -7494,25 +7422,25 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7494
7422
|
ref: O,
|
|
7495
7423
|
cx: "50",
|
|
7496
7424
|
cy: "50",
|
|
7497
|
-
r:
|
|
7425
|
+
r: Wl,
|
|
7498
7426
|
fill: "none",
|
|
7499
7427
|
"stroke-width": c.value,
|
|
7500
7428
|
stroke: "white",
|
|
7501
7429
|
"stroke-dasharray": "0 251",
|
|
7502
7430
|
transform: "rotate(-90, 50, 50)"
|
|
7503
|
-
}, null, 8,
|
|
7431
|
+
}, null, 8, Rl)], 8, Ll)]),
|
|
7504
7432
|
C("circle", {
|
|
7505
7433
|
ref_key: "trackCircleEl",
|
|
7506
7434
|
ref: k,
|
|
7507
7435
|
cx: "50",
|
|
7508
7436
|
cy: "50",
|
|
7509
|
-
r:
|
|
7437
|
+
r: Wl,
|
|
7510
7438
|
fill: "none",
|
|
7511
7439
|
"stroke-width": s.value,
|
|
7512
7440
|
style: N({ stroke: i.value.track }),
|
|
7513
7441
|
"stroke-dasharray": "251 0",
|
|
7514
7442
|
transform: "rotate(-90, 50, 50)"
|
|
7515
|
-
}, null, 12,
|
|
7443
|
+
}, null, 12, zl),
|
|
7516
7444
|
C("path", {
|
|
7517
7445
|
d: A.value,
|
|
7518
7446
|
fill: "none",
|
|
@@ -7521,18 +7449,18 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7521
7449
|
"stroke-linejoin": "round",
|
|
7522
7450
|
mask: `url(#${K(q)})`,
|
|
7523
7451
|
style: N({ stroke: i.value.fill })
|
|
7524
|
-
}, null, 12,
|
|
7452
|
+
}, null, 12, Bl)
|
|
7525
7453
|
], 64)) : e.indeterminate ? x("", !0) : (L(), S(m, { key: 2 }, [C("circle", {
|
|
7526
7454
|
cx: "50",
|
|
7527
7455
|
cy: "50",
|
|
7528
|
-
r:
|
|
7456
|
+
r: Wl,
|
|
7529
7457
|
fill: "none",
|
|
7530
7458
|
"stroke-width": s.value,
|
|
7531
7459
|
style: N({ stroke: i.value.track })
|
|
7532
|
-
}, null, 12,
|
|
7460
|
+
}, null, 12, Vl), C("circle", {
|
|
7533
7461
|
cx: "50",
|
|
7534
7462
|
cy: "50",
|
|
7535
|
-
r:
|
|
7463
|
+
r: Wl,
|
|
7536
7464
|
fill: "none",
|
|
7537
7465
|
"stroke-width": s.value,
|
|
7538
7466
|
"stroke-linecap": "round",
|
|
@@ -7543,7 +7471,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7543
7471
|
transformOrigin: "50px 50px",
|
|
7544
7472
|
transition: "stroke-dasharray 300ms ease"
|
|
7545
7473
|
})
|
|
7546
|
-
}, null, 12,
|
|
7474
|
+
}, null, 12, Hl)], 64)), !e.indeterminate && !t.$slots.default ? (L(), S("text", {
|
|
7547
7475
|
key: 3,
|
|
7548
7476
|
x: "50",
|
|
7549
7477
|
y: "50",
|
|
@@ -7555,16 +7483,16 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7555
7483
|
fontWeight: "600",
|
|
7556
7484
|
fontFamily: "Roboto, sans-serif"
|
|
7557
7485
|
})
|
|
7558
|
-
}, G(n.value) + "%", 5)) : x("", !0)], 8,
|
|
7486
|
+
}, G(n.value) + "%", 5)) : x("", !0)], 8, Pl)), t.$slots.default ? (L(), S("div", Ul, [H(t.$slots, "default")])) : x("", !0)])]));
|
|
7559
7487
|
}
|
|
7560
|
-
}),
|
|
7488
|
+
}), Xl = ["for"], Zl = { class: "relative flex h-5 w-5 shrink-0" }, Ql = [
|
|
7561
7489
|
"id",
|
|
7562
7490
|
"checked",
|
|
7563
7491
|
"disabled"
|
|
7564
|
-
],
|
|
7492
|
+
], $l = {
|
|
7565
7493
|
key: 0,
|
|
7566
7494
|
class: "text-body-large text-on-surface"
|
|
7567
|
-
},
|
|
7495
|
+
}, eu = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
7568
7496
|
__name: "MRadio",
|
|
7569
7497
|
props: {
|
|
7570
7498
|
modelValue: {},
|
|
@@ -7587,14 +7515,14 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7587
7515
|
return (t, n) => (L(), S("label", {
|
|
7588
7516
|
for: K(i),
|
|
7589
7517
|
class: M(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
7590
|
-
}, [C("span",
|
|
7518
|
+
}, [C("span", Zl, [C("input", {
|
|
7591
7519
|
id: K(i),
|
|
7592
7520
|
type: "radio",
|
|
7593
7521
|
class: "sr-only",
|
|
7594
7522
|
checked: a.value,
|
|
7595
7523
|
disabled: e.disabled,
|
|
7596
7524
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
7597
|
-
}, null, 40,
|
|
7525
|
+
}, null, 40, Ql), (L(), S("svg", {
|
|
7598
7526
|
viewBox: "0 0 20 20",
|
|
7599
7527
|
class: M(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
7600
7528
|
"aria-hidden": "true"
|
|
@@ -7611,12 +7539,12 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7611
7539
|
cy: "10",
|
|
7612
7540
|
r: "4.5",
|
|
7613
7541
|
fill: "currentColor"
|
|
7614
|
-
}, null, 2)], 2))]), e.label ? (L(), S("span",
|
|
7542
|
+
}, null, 2)], 2))]), e.label ? (L(), S("span", $l, G(e.label), 1)) : x("", !0)], 10, Xl));
|
|
7615
7543
|
}
|
|
7616
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
7544
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), tu = { class: "flex flex-col gap-2" }, nu = {
|
|
7617
7545
|
key: 0,
|
|
7618
7546
|
class: "text-label-large text-on-surface-variant"
|
|
7619
|
-
},
|
|
7547
|
+
}, ru = /* @__PURE__ */ D({
|
|
7620
7548
|
__name: "MRadioGroup",
|
|
7621
7549
|
props: {
|
|
7622
7550
|
modelValue: {},
|
|
@@ -7632,7 +7560,7 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7632
7560
|
emits: ["update:modelValue"],
|
|
7633
7561
|
setup(e, { emit: t }) {
|
|
7634
7562
|
let n = t;
|
|
7635
|
-
return (t, r) => (L(), S("div",
|
|
7563
|
+
return (t, r) => (L(), S("div", tu, [e.label ? (L(), S("span", nu, G(e.label), 1)) : x("", !0), C("div", { class: M(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(L(!0), S(m, null, V(e.options, (t) => (L(), b(eu, {
|
|
7636
7564
|
key: String(t.value),
|
|
7637
7565
|
"model-value": e.modelValue,
|
|
7638
7566
|
value: t.value,
|
|
@@ -7648,11 +7576,11 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7648
7576
|
"disabled"
|
|
7649
7577
|
]))), 128))], 2)]));
|
|
7650
7578
|
}
|
|
7651
|
-
}),
|
|
7579
|
+
}), iu = [
|
|
7652
7580
|
"disabled",
|
|
7653
7581
|
"onClick",
|
|
7654
7582
|
"onMousemove"
|
|
7655
|
-
],
|
|
7583
|
+
], au = /* @__PURE__ */ D({
|
|
7656
7584
|
__name: "MRating",
|
|
7657
7585
|
props: {
|
|
7658
7586
|
modelValue: {},
|
|
@@ -7729,13 +7657,13 @@ var Mc = /*#__PURE__*/ p(kc, [["render", jc]]), Nc = {
|
|
|
7729
7657
|
name: e.icon,
|
|
7730
7658
|
size: e.size,
|
|
7731
7659
|
class: "text-on-surface-variant/40"
|
|
7732
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
7660
|
+
}, null, 8, ["name", "size"]))], 46, iu))), 128))], 34));
|
|
7733
7661
|
}
|
|
7734
|
-
}),
|
|
7735
|
-
function
|
|
7736
|
-
return L(), S("div",
|
|
7662
|
+
}), ou = {}, su = { class: "relative" };
|
|
7663
|
+
function cu(e, t) {
|
|
7664
|
+
return L(), S("div", su, [H(e.$slots, "default")]);
|
|
7737
7665
|
}
|
|
7738
|
-
var
|
|
7666
|
+
var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
7739
7667
|
__name: "MResponsive",
|
|
7740
7668
|
props: {
|
|
7741
7669
|
show: {},
|
|
@@ -7767,19 +7695,19 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
7767
7695
|
_: 3
|
|
7768
7696
|
}, 8, ["class"]));
|
|
7769
7697
|
}
|
|
7770
|
-
}),
|
|
7698
|
+
}), du = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, fu = {
|
|
7771
7699
|
key: 0,
|
|
7772
7700
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
7773
|
-
},
|
|
7701
|
+
}, pu = { class: "text-headline-small font-medium text-on-surface" }, mu = {
|
|
7774
7702
|
key: 1,
|
|
7775
7703
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
7776
|
-
},
|
|
7704
|
+
}, hu = {
|
|
7777
7705
|
key: 2,
|
|
7778
7706
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
7779
|
-
},
|
|
7707
|
+
}, gu = {
|
|
7780
7708
|
key: 3,
|
|
7781
7709
|
class: "mt-2"
|
|
7782
|
-
},
|
|
7710
|
+
}, _u = /* @__PURE__ */ D({
|
|
7783
7711
|
__name: "MResult",
|
|
7784
7712
|
props: {
|
|
7785
7713
|
status: {},
|
|
@@ -7847,19 +7775,19 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
7847
7775
|
};
|
|
7848
7776
|
}
|
|
7849
7777
|
}), r = v(() => t.status === "404" || t.status === "403" || t.status === "500" ? t.status : null);
|
|
7850
|
-
return (t, i) => (L(), S("div",
|
|
7851
|
-
r.value ? (L(), S("span",
|
|
7778
|
+
return (t, i) => (L(), S("div", du, [
|
|
7779
|
+
r.value ? (L(), S("span", fu, G(r.value), 1)) : x("", !0),
|
|
7852
7780
|
C("div", { class: M(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [E(f, {
|
|
7853
7781
|
name: n.value.icon,
|
|
7854
7782
|
size: 40
|
|
7855
7783
|
}, null, 8, ["name"])], 2),
|
|
7856
|
-
C("h2",
|
|
7857
|
-
e.description ?? n.value.defaultDesc ? (L(), S("p",
|
|
7858
|
-
t.$slots.actions ? (L(), S("div",
|
|
7859
|
-
t.$slots.default ? (L(), S("div",
|
|
7784
|
+
C("h2", pu, G(e.title ?? n.value.defaultTitle), 1),
|
|
7785
|
+
e.description ?? n.value.defaultDesc ? (L(), S("p", mu, G(e.description ?? n.value.defaultDesc), 1)) : x("", !0),
|
|
7786
|
+
t.$slots.actions ? (L(), S("div", hu, [H(t.$slots, "actions")])) : x("", !0),
|
|
7787
|
+
t.$slots.default ? (L(), S("div", gu, [H(t.$slots, "default")])) : x("", !0)
|
|
7860
7788
|
]));
|
|
7861
7789
|
}
|
|
7862
|
-
}),
|
|
7790
|
+
}), vu = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, yu = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, bu = { class: "flex items-center gap-1" }, xu = { class: "text-title-medium font-medium capitalize text-on-surface" }, Su = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Cu = ["onClick"], wu = { class: "overflow-auto" }, Tu = { class: "w-full border-collapse" }, Eu = { class: "text-label-small uppercase text-on-surface-variant" }, Du = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Ou = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, ku = ["onClick"], Au = ["onClick"], ju = { class: "truncate text-label-small font-medium" }, Mu = { class: "truncate text-label-small opacity-70" }, Nu = /* @__PURE__ */ D({
|
|
7863
7791
|
__name: "MScheduler",
|
|
7864
7792
|
props: {
|
|
7865
7793
|
events: { default: () => [] },
|
|
@@ -7940,8 +7868,8 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
7940
7868
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
7941
7869
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
7942
7870
|
};
|
|
7943
|
-
return (t, r) => (L(), S("div",
|
|
7944
|
-
C("div",
|
|
7871
|
+
return (t, r) => (L(), S("div", vu, [C("div", yu, [
|
|
7872
|
+
C("div", bu, [
|
|
7945
7873
|
E(s, {
|
|
7946
7874
|
icon: "chevron_left",
|
|
7947
7875
|
label: e.prevLabel ?? K(n).previous,
|
|
@@ -7960,17 +7888,17 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
7960
7888
|
onClick: w
|
|
7961
7889
|
}, G(e.todayLabel ?? K(n).today), 1)
|
|
7962
7890
|
]),
|
|
7963
|
-
C("h3",
|
|
7964
|
-
C("div",
|
|
7891
|
+
C("h3", xu, G(y.value), 1),
|
|
7892
|
+
C("div", Su, [(L(), S(m, null, V(["day", "week"], (t) => C("button", {
|
|
7965
7893
|
key: t,
|
|
7966
7894
|
type: "button",
|
|
7967
7895
|
class: M(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", c.value === t ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
7968
7896
|
onClick: (e) => c.value = t
|
|
7969
|
-
}, G(t === "day" ? e.dayViewLabel ?? K(n).dayView : e.weekViewLabel ?? K(n).weekView), 11,
|
|
7970
|
-
]), C("div",
|
|
7897
|
+
}, G(t === "day" ? e.dayViewLabel ?? K(n).dayView : e.weekViewLabel ?? K(n).weekView), 11, Cu)), 64))])
|
|
7898
|
+
]), C("div", wu, [C("table", Tu, [C("thead", null, [C("tr", null, [r[2] ||= C("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (L(!0), S(m, null, V(f.value, (e) => (L(), S("th", {
|
|
7971
7899
|
key: h(e),
|
|
7972
7900
|
class: M(["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) === K(p) ? "bg-primary-container/30" : ""])
|
|
7973
|
-
}, [C("div",
|
|
7901
|
+
}, [C("div", Eu, G(K(g).format(e)), 1), C("div", { class: M(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", h(e) === K(p) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, G(K(_).format(e)), 3)], 2))), 128))])]), C("tbody", null, [(L(!0), S(m, null, V(l.value, (e) => (L(), S("tr", { key: e }, [C("td", Du, [C("span", Ou, G(String(e).padStart(2, "0")) + ":00 ", 1)]), (L(!0), S(m, null, V(f.value, (t) => (L(), S("td", {
|
|
7974
7902
|
key: h(t),
|
|
7975
7903
|
class: M(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", h(t) === K(p) ? "bg-primary-container/5" : ""]),
|
|
7976
7904
|
onClick: (n) => a("slotClick", {
|
|
@@ -7983,9 +7911,9 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
7983
7911
|
class: M(["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", A[t.color ?? "primary"]]),
|
|
7984
7912
|
style: N({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
7985
7913
|
onClick: Q((e) => a("eventClick", t), ["stop"])
|
|
7986
|
-
}, [C("p",
|
|
7914
|
+
}, [C("p", ju, G(t.title), 1), C("p", Mu, G(k(t)), 1)], 14, Au)) : x("", !0)], 64))), 128))], 10, ku))), 128))]))), 128))])])])]));
|
|
7987
7915
|
}
|
|
7988
|
-
}),
|
|
7916
|
+
}), Pu = /* @__PURE__ */ D({
|
|
7989
7917
|
__name: "MScrollable",
|
|
7990
7918
|
props: {
|
|
7991
7919
|
direction: { default: "vertical" },
|
|
@@ -8006,13 +7934,13 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8006
7934
|
style: N(i.value)
|
|
8007
7935
|
}, [H(e.$slots, "default")], 6));
|
|
8008
7936
|
}
|
|
8009
|
-
}),
|
|
7937
|
+
}), Fu = { key: 0 }, Iu = { class: "flex items-start justify-between" }, Lu = {
|
|
8010
7938
|
key: 0,
|
|
8011
7939
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
8012
|
-
},
|
|
7940
|
+
}, Ru = {
|
|
8013
7941
|
key: 0,
|
|
8014
7942
|
class: "mt-4 h-px bg-outline-variant"
|
|
8015
|
-
},
|
|
7943
|
+
}, zu = /* @__PURE__ */ D({
|
|
8016
7944
|
__name: "MSection",
|
|
8017
7945
|
props: {
|
|
8018
7946
|
title: {},
|
|
@@ -8049,19 +7977,19 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8049
7977
|
"label-medium": "text-label-medium",
|
|
8050
7978
|
"label-small": "text-label-small"
|
|
8051
7979
|
}, i = v(() => n[t.gap]), a = v(() => [r[t.titleVariant], "font-medium"]);
|
|
8052
|
-
return (t, n) => (L(), S("section", { class: M(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (L(), S("div",
|
|
7980
|
+
return (t, n) => (L(), S("section", { class: M(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (L(), S("div", Fu, [C("div", Iu, [C("div", null, [H(t.$slots, "title", {}, () => [e.title ? (L(), S("p", {
|
|
8053
7981
|
key: 0,
|
|
8054
7982
|
class: M(a.value)
|
|
8055
|
-
}, G(e.title), 3)) : x("", !0)]), H(t.$slots, "subtitle", {}, () => [e.subtitle ? (L(), S("p",
|
|
7983
|
+
}, G(e.title), 3)) : x("", !0)]), H(t.$slots, "subtitle", {}, () => [e.subtitle ? (L(), S("p", Lu, G(e.subtitle), 1)) : x("", !0)])]), H(t.$slots, "actions")]), e.divider ? (L(), S("div", Ru)) : x("", !0)])) : x("", !0), H(t.$slots, "default")], 2));
|
|
8056
7984
|
}
|
|
8057
|
-
}),
|
|
7985
|
+
}), Bu = {
|
|
8058
7986
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
8059
7987
|
role: "group"
|
|
8060
|
-
},
|
|
7988
|
+
}, Vu = [
|
|
8061
7989
|
"disabled",
|
|
8062
7990
|
"aria-pressed",
|
|
8063
7991
|
"onClick"
|
|
8064
|
-
],
|
|
7992
|
+
], Hu = /* @__PURE__ */ D({
|
|
8065
7993
|
__name: "MSegmentedButton",
|
|
8066
7994
|
props: {
|
|
8067
7995
|
modelValue: {},
|
|
@@ -8085,7 +8013,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8085
8013
|
i >= 0 ? r.splice(i, 1) : r.push(e.value), n("update:modelValue", r);
|
|
8086
8014
|
} else n("update:modelValue", e.value);
|
|
8087
8015
|
}
|
|
8088
|
-
return (t, n) => (L(), S("div",
|
|
8016
|
+
return (t, n) => (L(), S("div", Bu, [(L(!0), S(m, null, V(e.options, (t, n) => (L(), S("button", {
|
|
8089
8017
|
key: t.value,
|
|
8090
8018
|
type: "button",
|
|
8091
8019
|
class: M(["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]", [
|
|
@@ -8106,35 +8034,35 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8106
8034
|
key: 1,
|
|
8107
8035
|
name: t.icon,
|
|
8108
8036
|
size: 18
|
|
8109
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10,
|
|
8037
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10, Vu))), 128))]));
|
|
8110
8038
|
}
|
|
8111
|
-
}),
|
|
8039
|
+
}), Uu = { class: "flex flex-col gap-1" }, Wu = [
|
|
8112
8040
|
"id",
|
|
8113
8041
|
"tabindex",
|
|
8114
8042
|
"aria-expanded",
|
|
8115
8043
|
"aria-disabled"
|
|
8116
|
-
],
|
|
8044
|
+
], Gu = {
|
|
8117
8045
|
key: 0,
|
|
8118
8046
|
class: "text-on-surface"
|
|
8119
|
-
},
|
|
8047
|
+
}, Ku = ["for"], qu = {
|
|
8120
8048
|
key: 0,
|
|
8121
8049
|
class: "text-error"
|
|
8122
|
-
},
|
|
8050
|
+
}, Ju = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 flex h-6 items-center" }, Yu = {
|
|
8123
8051
|
key: 0,
|
|
8124
8052
|
class: "px-4 text-body-small text-error"
|
|
8125
|
-
},
|
|
8053
|
+
}, Xu = {
|
|
8126
8054
|
key: 1,
|
|
8127
8055
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
8128
|
-
},
|
|
8056
|
+
}, Zu = ["onClick"], Qu = {
|
|
8129
8057
|
key: 1,
|
|
8130
8058
|
class: "w-[18px] shrink-0"
|
|
8131
|
-
},
|
|
8059
|
+
}, $u = {
|
|
8132
8060
|
key: 0,
|
|
8133
8061
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
8134
|
-
},
|
|
8062
|
+
}, ed = { class: "select-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, td = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, nd = { class: "text-headline-small text-on-surface" }, rd = { class: "flex-1 overflow-y-auto py-2" }, id = ["onClick"], ad = {
|
|
8135
8063
|
key: 0,
|
|
8136
8064
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
8137
|
-
},
|
|
8065
|
+
}, od = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8138
8066
|
__name: "MSelect",
|
|
8139
8067
|
props: {
|
|
8140
8068
|
modelValue: { default: void 0 },
|
|
@@ -8147,7 +8075,8 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8147
8075
|
type: Boolean,
|
|
8148
8076
|
default: !1
|
|
8149
8077
|
},
|
|
8150
|
-
error: {},
|
|
8078
|
+
error: { type: Boolean },
|
|
8079
|
+
errorLabel: {},
|
|
8151
8080
|
hint: {},
|
|
8152
8081
|
required: {
|
|
8153
8082
|
type: Boolean,
|
|
@@ -8252,7 +8181,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8252
8181
|
l.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
8253
8182
|
].join(" ");
|
|
8254
8183
|
});
|
|
8255
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
8184
|
+
return (t, n) => (L(), S(m, null, [C("div", Uu, [C("div", {
|
|
8256
8185
|
ref_key: "fieldEl",
|
|
8257
8186
|
ref: d,
|
|
8258
8187
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -8274,11 +8203,11 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8274
8203
|
class: M([U.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
8275
8204
|
onClick: A,
|
|
8276
8205
|
onKeydown: z
|
|
8277
|
-
}, [D.value ? (L(), S("span",
|
|
8206
|
+
}, [D.value ? (L(), S("span", Gu, G(O.value), 1)) : x("", !0)], 42, Wu),
|
|
8278
8207
|
C("label", {
|
|
8279
8208
|
for: K(c),
|
|
8280
8209
|
class: M(q.value)
|
|
8281
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
8210
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", qu, "\xA0*")) : x("", !0)], 10, Ku),
|
|
8282
8211
|
e.clearable && D.value && !e.disabled ? (L(), S("button", {
|
|
8283
8212
|
key: 1,
|
|
8284
8213
|
type: "button",
|
|
@@ -8290,12 +8219,12 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8290
8219
|
name: "close",
|
|
8291
8220
|
size: 18
|
|
8292
8221
|
})])) : x("", !0),
|
|
8293
|
-
C("div",
|
|
8222
|
+
C("div", Ju, [E(f, {
|
|
8294
8223
|
name: "arrow_drop_down",
|
|
8295
8224
|
size: 24,
|
|
8296
8225
|
class: M(["text-on-surface-variant transition-transform duration-200", l.value || u.value ? "rotate-180" : ""])
|
|
8297
8226
|
}, null, 8, ["class"])])
|
|
8298
|
-
], 6), e.error ? (L(), S("p",
|
|
8227
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Yu, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Xu, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
8299
8228
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
8300
8229
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
8301
8230
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -8318,21 +8247,21 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8318
8247
|
name: "check",
|
|
8319
8248
|
size: 18,
|
|
8320
8249
|
class: "shrink-0 text-primary"
|
|
8321
|
-
})) : (L(), S("span",
|
|
8250
|
+
})) : (L(), S("span", Qu)), T(" " + G(t.label), 1)], 10, Zu))), 128)), e.options.length ? x("", !0) : (L(), S("p", $u, " Sin opciones "))], 4)) : x("", !0)]),
|
|
8322
8251
|
_: 1
|
|
8323
8252
|
}), E(g, { name: "m3-select-modal" }, {
|
|
8324
8253
|
default: Z(() => [u.value && e.mode === "modal" ? (L(), S("div", {
|
|
8325
8254
|
key: 0,
|
|
8326
8255
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
8327
8256
|
onClick: Q(H, ["self"])
|
|
8328
|
-
}, [C("div",
|
|
8329
|
-
C("div",
|
|
8257
|
+
}, [C("div", ed, [
|
|
8258
|
+
C("div", td, [C("h2", nd, G(e.label || e.placeholder), 1), E(s, {
|
|
8330
8259
|
icon: "close",
|
|
8331
8260
|
label: K(o).close,
|
|
8332
8261
|
onClick: H
|
|
8333
8262
|
}, null, 8, ["label"])]),
|
|
8334
8263
|
n[1] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
8335
|
-
C("div",
|
|
8264
|
+
C("div", rd, [(L(!0), S(m, null, V(e.options, (t, n) => (L(), S("div", {
|
|
8336
8265
|
key: n,
|
|
8337
8266
|
class: M(["flex cursor-pointer items-center gap-4 px-6 py-3.5 text-body-large transition-colors", [t.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : "text-on-surface hover:bg-on-surface/8", w(t.value, e.modelValue) ? "bg-primary/8" : ""]]),
|
|
8338
8267
|
onClick: (e) => j(t)
|
|
@@ -8340,21 +8269,21 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8340
8269
|
name: w(t.value, e.modelValue) ? "radio_button_checked" : "radio_button_unchecked",
|
|
8341
8270
|
size: 20,
|
|
8342
8271
|
class: M(w(t.value, e.modelValue) ? "text-primary" : "text-on-surface-variant")
|
|
8343
|
-
}, null, 8, ["name", "class"]), C("span", { class: M(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, G(t.label), 3)], 10,
|
|
8272
|
+
}, null, 8, ["name", "class"]), C("span", { class: M(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, G(t.label), 3)], 10, id))), 128)), e.options.length ? x("", !0) : (L(), S("p", ad, " Sin opciones "))])
|
|
8344
8273
|
])])) : x("", !0)]),
|
|
8345
8274
|
_: 1
|
|
8346
8275
|
})]))], 64));
|
|
8347
8276
|
}
|
|
8348
|
-
}), [["__scopeId", "data-v-
|
|
8277
|
+
}), [["__scopeId", "data-v-17adb5b4"]]), sd = {
|
|
8349
8278
|
key: 0,
|
|
8350
8279
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
8351
|
-
},
|
|
8280
|
+
}, cd = {
|
|
8352
8281
|
key: 0,
|
|
8353
8282
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
8354
|
-
},
|
|
8283
|
+
}, ld = { class: "text-title-large text-on-surface" }, ud = { class: "flex-1 overflow-y-auto px-6 py-4" }, dd = {
|
|
8355
8284
|
key: 1,
|
|
8356
8285
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
8357
|
-
},
|
|
8286
|
+
}, fd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8358
8287
|
__name: "MSideSheet",
|
|
8359
8288
|
props: {
|
|
8360
8289
|
modelValue: { type: Boolean },
|
|
@@ -8384,7 +8313,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8384
8313
|
leave: 280
|
|
8385
8314
|
}
|
|
8386
8315
|
}, {
|
|
8387
|
-
default: Z(() => [e.modelValue ? (L(), S("div",
|
|
8316
|
+
default: Z(() => [e.modelValue ? (L(), S("div", sd, [C("div", {
|
|
8388
8317
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
8389
8318
|
onClick: r
|
|
8390
8319
|
}), C("aside", {
|
|
@@ -8397,7 +8326,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8397
8326
|
onPointermove: c,
|
|
8398
8327
|
onPointerup: l
|
|
8399
8328
|
}, null, 32),
|
|
8400
|
-
e.title || t.$slots.header ? (L(), S("div",
|
|
8329
|
+
e.title || t.$slots.header ? (L(), S("div", cd, [H(t.$slots, "header", {}, () => [C("h2", ld, G(e.title), 1)], !0), C("button", {
|
|
8401
8330
|
type: "button",
|
|
8402
8331
|
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",
|
|
8403
8332
|
onClick: r
|
|
@@ -8405,16 +8334,16 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8405
8334
|
name: "close",
|
|
8406
8335
|
size: 20
|
|
8407
8336
|
})])])) : x("", !0),
|
|
8408
|
-
C("div",
|
|
8409
|
-
t.$slots.actions ? (L(), S("div",
|
|
8337
|
+
C("div", ud, [H(t.$slots, "default", {}, void 0, !0)]),
|
|
8338
|
+
t.$slots.actions ? (L(), S("div", dd, [H(t.$slots, "actions", {}, void 0, !0)])) : x("", !0)
|
|
8410
8339
|
], 6)])) : x("", !0)]),
|
|
8411
8340
|
_: 3
|
|
8412
8341
|
})]));
|
|
8413
8342
|
}
|
|
8414
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
8343
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), pd = {
|
|
8415
8344
|
key: 0,
|
|
8416
8345
|
class: "flex flex-col gap-2.5"
|
|
8417
|
-
},
|
|
8346
|
+
}, md = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8418
8347
|
__name: "MSkeleton",
|
|
8419
8348
|
props: {
|
|
8420
8349
|
variant: { default: "text" },
|
|
@@ -8424,7 +8353,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8424
8353
|
animation: { default: "pulse" }
|
|
8425
8354
|
},
|
|
8426
8355
|
setup(e) {
|
|
8427
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (L(), S("div",
|
|
8356
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (L(), S("div", pd, [(L(!0), S(m, null, V(e.lines, (t) => (L(), S("div", {
|
|
8428
8357
|
key: t,
|
|
8429
8358
|
class: M(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
8430
8359
|
style: N({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -8437,22 +8366,22 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8437
8366
|
})
|
|
8438
8367
|
}, null, 6));
|
|
8439
8368
|
}
|
|
8440
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
8369
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), hd = {
|
|
8441
8370
|
key: 0,
|
|
8442
8371
|
class: "flex items-center justify-between"
|
|
8443
|
-
},
|
|
8372
|
+
}, gd = {
|
|
8444
8373
|
key: 0,
|
|
8445
8374
|
class: "text-label-large text-on-surface"
|
|
8446
|
-
},
|
|
8375
|
+
}, _d = {
|
|
8447
8376
|
key: 1,
|
|
8448
8377
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
8449
|
-
},
|
|
8378
|
+
}, vd = [
|
|
8450
8379
|
"aria-valuenow",
|
|
8451
8380
|
"aria-valuemin",
|
|
8452
8381
|
"aria-valuemax",
|
|
8453
8382
|
"aria-disabled",
|
|
8454
8383
|
"aria-orientation"
|
|
8455
|
-
],
|
|
8384
|
+
], yd = /* @__PURE__ */ D({
|
|
8456
8385
|
__name: "MSlider",
|
|
8457
8386
|
props: {
|
|
8458
8387
|
modelValue: {},
|
|
@@ -8592,18 +8521,19 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8592
8521
|
e.preventDefault();
|
|
8593
8522
|
let t = D(e);
|
|
8594
8523
|
if (s.value) {
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8524
|
+
let e = n.modelValue, i = Math.abs(t - e[0]) <= Math.abs(t - e[1]) ? 0 : 1;
|
|
8525
|
+
a.value = i;
|
|
8526
|
+
let o = [e[0], e[1]];
|
|
8527
|
+
o[i] = t, r("update:modelValue", o);
|
|
8598
8528
|
} else a.value = "single", r("update:modelValue", t);
|
|
8599
8529
|
window.addEventListener("pointermove", k), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", A);
|
|
8600
8530
|
}
|
|
8601
8531
|
function k(e) {
|
|
8602
|
-
if (
|
|
8532
|
+
if (a.value === !1) return;
|
|
8603
8533
|
let t = D(e);
|
|
8604
8534
|
if (s.value) {
|
|
8605
|
-
let e = n.modelValue;
|
|
8606
|
-
|
|
8535
|
+
let e = n.modelValue, i = [e[0], e[1]];
|
|
8536
|
+
i[a.value] = t, r("update:modelValue", i);
|
|
8607
8537
|
} else r("update:modelValue", t);
|
|
8608
8538
|
}
|
|
8609
8539
|
function A() {
|
|
@@ -8634,7 +8564,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8634
8564
|
n.icon && a < r || e.push(a);
|
|
8635
8565
|
}
|
|
8636
8566
|
return e.length <= 28 ? e : [];
|
|
8637
|
-
}), I = v(() => _.value.radius), R = v(() =>
|
|
8567
|
+
}), I = v(() => _.value.radius), R = v(() => a.value === !1), z = v(() => R.value ? "75ms ease" : "0s");
|
|
8638
8568
|
function H(e) {
|
|
8639
8569
|
let t = o.value ? _.value.thumbH : _.value.thumbW, n = o.value ? _.value.thumbW : _.value.thumbH, r = Math.min(t, n) / 2, i = {
|
|
8640
8570
|
position: "absolute",
|
|
@@ -8645,7 +8575,7 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8645
8575
|
zIndex: "2",
|
|
8646
8576
|
transition: R.value ? "left 75ms ease, bottom 75ms ease, transform 80ms ease" : "transform 80ms ease"
|
|
8647
8577
|
};
|
|
8648
|
-
return o.value ? (i.left = "50%", i.bottom = `${e}%`, i.transform = `translateX(-50%) translateY(50%) scaleX(${a.value ? 1
|
|
8578
|
+
return o.value ? (i.left = "50%", i.bottom = `${e}%`, i.transform = `translateX(-50%) translateY(50%) scaleX(${a.value === !1 ? 1 : 1.08})`) : (i.left = `${e}%`, i.top = "50%", i.transform = `translateX(-50%) translateY(-50%) scaleY(${a.value === !1 ? 1 : 1.08})`), i;
|
|
8649
8579
|
}
|
|
8650
8580
|
function U(e) {
|
|
8651
8581
|
let t = _.value.track / 2 + 36, n = _.value.track / 2 + 40;
|
|
@@ -8661,8 +8591,8 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8661
8591
|
transition: R.value ? "left " + z.value : "none"
|
|
8662
8592
|
};
|
|
8663
8593
|
}
|
|
8664
|
-
let W = v(() => s.value ? `${c.value.lo} – ${c.value.hi}` : String(n.modelValue)), K = v(() => s.value
|
|
8665
|
-
return (t, n) => (L(), S("div", { class: M(["flex select-none", o.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (L(), S("div",
|
|
8594
|
+
let W = v(() => s.value ? `${c.value.lo} – ${c.value.hi}` : String(n.modelValue)), K = v(() => s.value && typeof a.value == "number" ? n.modelValue[a.value] : n.modelValue), q = v(() => s.value && typeof a.value == "number" ? l(n.modelValue[a.value]) : u.value);
|
|
8595
|
+
return (t, n) => (L(), S("div", { class: M(["flex select-none", o.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (L(), S("div", hd, [e.label ? (L(), S("span", gd, G(e.label), 1)) : x("", !0), e.showValue ? (L(), S("span", _d, G(W.value), 1)) : x("", !0)])) : x("", !0), C("div", { class: M(["flex items-center", o.value ? "flex-1 flex-col" : ""]) }, [C("div", {
|
|
8666
8596
|
ref_key: "trackEl",
|
|
8667
8597
|
ref: i,
|
|
8668
8598
|
role: "slider",
|
|
@@ -8959,20 +8889,20 @@ var du = /*#__PURE__*/ p(cu, [["render", uu]]), fu = /* @__PURE__ */ D({
|
|
|
8959
8889
|
"leave-active-class": "transition-opacity duration-75",
|
|
8960
8890
|
"leave-to-class": "opacity-0"
|
|
8961
8891
|
}, {
|
|
8962
|
-
default: Z(() => [e.showTooltip && a.value ? (L(), S("div", {
|
|
8892
|
+
default: Z(() => [e.showTooltip && a.value !== !1 ? (L(), S("div", {
|
|
8963
8893
|
key: 0,
|
|
8964
8894
|
class: "pointer-events-none absolute z-10 flex h-7 min-w-7 items-center justify-center rounded-full bg-inverse-surface px-2 text-label-small tabular-nums text-inverse-on-surface",
|
|
8965
8895
|
style: N(U(q.value))
|
|
8966
8896
|
}, G(K.value), 5)) : x("", !0)]),
|
|
8967
8897
|
_: 1
|
|
8968
8898
|
})
|
|
8969
|
-
], 46,
|
|
8899
|
+
], 46, vd)], 2)], 2));
|
|
8970
8900
|
}
|
|
8971
|
-
}),
|
|
8972
|
-
function
|
|
8973
|
-
return L(), S("div",
|
|
8901
|
+
}), bd = {}, xd = { class: "flex-1" };
|
|
8902
|
+
function Sd(e, t) {
|
|
8903
|
+
return L(), S("div", xd);
|
|
8974
8904
|
}
|
|
8975
|
-
var
|
|
8905
|
+
var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabled"], Ed = ["disabled", "onClick"], Dd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8976
8906
|
__name: "MSplitButton",
|
|
8977
8907
|
props: {
|
|
8978
8908
|
label: {},
|
|
@@ -9184,7 +9114,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9184
9114
|
key: 0,
|
|
9185
9115
|
name: e.icon,
|
|
9186
9116
|
size: u.value.icon
|
|
9187
|
-
}, null, 8, ["name", "size"])) : x("", !0), T(" " + G(e.label), 1)], 46,
|
|
9117
|
+
}, null, 8, ["name", "size"])) : x("", !0), T(" " + G(e.label), 1)], 46, wd), C("button", {
|
|
9188
9118
|
type: "button",
|
|
9189
9119
|
class: M(["toggle-btn relative flex cursor-pointer items-center justify-center overflow-hidden", [
|
|
9190
9120
|
u.value.h,
|
|
@@ -9204,7 +9134,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9204
9134
|
name: "arrow_drop_down",
|
|
9205
9135
|
size: u.value.arrow,
|
|
9206
9136
|
class: M(["transition-transform duration-200", i.value ? "rotate-180" : ""])
|
|
9207
|
-
}, null, 8, ["size", "class"])], 46,
|
|
9137
|
+
}, null, 8, ["size", "class"])], 46, Td)], 2), (L(), b(h, { to: "body" }, [E(g, {
|
|
9208
9138
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
9209
9139
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
9210
9140
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
@@ -9227,7 +9157,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9227
9157
|
name: e.icon,
|
|
9228
9158
|
size: 18,
|
|
9229
9159
|
class: "shrink-0 text-on-surface-variant"
|
|
9230
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + G(e.label), 1)], 10,
|
|
9160
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + G(e.label), 1)], 10, Ed))), 128))], 4)) : x("", !0)]),
|
|
9231
9161
|
_: 1
|
|
9232
9162
|
}), E(g, {
|
|
9233
9163
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
@@ -9244,7 +9174,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9244
9174
|
_: 3
|
|
9245
9175
|
})]))], 64));
|
|
9246
9176
|
}
|
|
9247
|
-
}), [["__scopeId", "data-v-ec1435bc"]]),
|
|
9177
|
+
}), [["__scopeId", "data-v-ec1435bc"]]), Od = /* @__PURE__ */ D({
|
|
9248
9178
|
__name: "MSplitter",
|
|
9249
9179
|
props: {
|
|
9250
9180
|
direction: { default: "horizontal" },
|
|
@@ -9291,26 +9221,26 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9291
9221
|
}, [H(e.$slots, "second")], 4)
|
|
9292
9222
|
], 2));
|
|
9293
9223
|
}
|
|
9294
|
-
}),
|
|
9224
|
+
}), kd = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, Ad = { class: "flex items-center gap-3 px-5 py-1" }, jd = ["placeholder"], Md = {
|
|
9295
9225
|
key: 0,
|
|
9296
9226
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
9297
|
-
},
|
|
9227
|
+
}, Nd = {
|
|
9298
9228
|
key: 0,
|
|
9299
9229
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
9300
|
-
},
|
|
9230
|
+
}, Pd = [
|
|
9301
9231
|
"data-spot-active",
|
|
9302
9232
|
"onClick",
|
|
9303
9233
|
"onPointerenter"
|
|
9304
|
-
],
|
|
9234
|
+
], Fd = {
|
|
9305
9235
|
key: 0,
|
|
9306
9236
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
9307
|
-
},
|
|
9237
|
+
}, Id = { class: "min-w-0 flex-1" }, Ld = { class: "truncate text-body-medium text-on-surface" }, Rd = {
|
|
9308
9238
|
key: 0,
|
|
9309
9239
|
class: "truncate text-body-small text-on-surface-variant"
|
|
9310
|
-
},
|
|
9240
|
+
}, zd = {
|
|
9311
9241
|
key: 1,
|
|
9312
9242
|
class: "flex flex-col items-center gap-2 py-10"
|
|
9313
|
-
},
|
|
9243
|
+
}, Bd = { class: "text-body-medium text-on-surface-variant" }, Vd = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, Hd = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Ud = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Wd = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Gd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
9314
9244
|
__name: "MSpotlightSearch",
|
|
9315
9245
|
props: {
|
|
9316
9246
|
modelValue: { type: Boolean },
|
|
@@ -9374,8 +9304,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9374
9304
|
key: 0,
|
|
9375
9305
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
9376
9306
|
onClick: Q(_, ["self"])
|
|
9377
|
-
}, [C("div",
|
|
9378
|
-
C("div",
|
|
9307
|
+
}, [C("div", kd, [
|
|
9308
|
+
C("div", Ad, [
|
|
9379
9309
|
E(f, {
|
|
9380
9310
|
name: "search",
|
|
9381
9311
|
size: 24,
|
|
@@ -9389,7 +9319,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9389
9319
|
placeholder: e.placeholder ?? K(n).search,
|
|
9390
9320
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
9391
9321
|
onKeydown: D
|
|
9392
|
-
}, null, 40,
|
|
9322
|
+
}, null, 40, jd), [[ee, s.value]]),
|
|
9393
9323
|
e.loading ? (L(), b(a, {
|
|
9394
9324
|
key: 0,
|
|
9395
9325
|
size: 20,
|
|
@@ -9404,7 +9334,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9404
9334
|
size: 18
|
|
9405
9335
|
})])) : x("", !0)
|
|
9406
9336
|
]),
|
|
9407
|
-
d.value ? (L(), S("div",
|
|
9337
|
+
d.value ? (L(), S("div", Md, [e.results.length ? (L(!0), S(m, { key: 0 }, V(p.value, ([t, n]) => (L(), S(m, { key: t }, [t ? (L(), S("p", Nd, G(t), 1)) : x("", !0), (L(!0), S(m, null, V(n, (t) => (L(), S("button", {
|
|
9408
9338
|
key: t.id,
|
|
9409
9339
|
type: "button",
|
|
9410
9340
|
"data-spot-active": e.results.indexOf(t) === c.value || void 0,
|
|
@@ -9412,32 +9342,32 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9412
9342
|
onClick: (e) => y(t),
|
|
9413
9343
|
onPointerenter: (n) => c.value = e.results.indexOf(t)
|
|
9414
9344
|
}, [
|
|
9415
|
-
t.icon ? (L(), S("div",
|
|
9345
|
+
t.icon ? (L(), S("div", Fd, [E(f, {
|
|
9416
9346
|
name: t.icon,
|
|
9417
9347
|
size: 20,
|
|
9418
9348
|
class: "text-on-primary-container"
|
|
9419
9349
|
}, null, 8, ["name"])])) : x("", !0),
|
|
9420
|
-
C("div",
|
|
9350
|
+
C("div", Id, [C("p", Ld, G(t.title), 1), t.description ? (L(), S("p", Rd, G(t.description), 1)) : x("", !0)]),
|
|
9421
9351
|
E(f, {
|
|
9422
9352
|
name: "arrow_forward",
|
|
9423
9353
|
size: 16,
|
|
9424
9354
|
class: "shrink-0 text-on-surface-variant/40"
|
|
9425
9355
|
})
|
|
9426
|
-
], 42,
|
|
9356
|
+
], 42, Pd))), 128))], 64))), 128)) : e.loading ? x("", !0) : (L(), S("div", zd, [E(f, {
|
|
9427
9357
|
name: "search_off",
|
|
9428
9358
|
size: 40,
|
|
9429
9359
|
class: "text-on-surface-variant/40"
|
|
9430
|
-
}), C("p",
|
|
9431
|
-
C("div",
|
|
9432
|
-
C("span",
|
|
9433
|
-
C("span",
|
|
9434
|
-
C("span",
|
|
9360
|
+
}), C("p", Bd, G(e.noResultsText ?? K(n).noResults), 1)]))])) : x("", !0),
|
|
9361
|
+
C("div", Vd, [
|
|
9362
|
+
C("span", Hd, [r[2] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), T(" " + G(e.navigateHint ?? K(n).navigateHint), 1)]),
|
|
9363
|
+
C("span", Ud, [r[3] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), T(" " + G(e.openHint ?? K(n).openHint), 1)]),
|
|
9364
|
+
C("span", Wd, [r[4] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), T(" " + G(e.closeHint ?? K(n).closeHint), 1)])
|
|
9435
9365
|
])
|
|
9436
9366
|
])])) : x("", !0)]),
|
|
9437
9367
|
_: 1
|
|
9438
9368
|
})]));
|
|
9439
9369
|
}
|
|
9440
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
9370
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), Kd = /* @__PURE__ */ D({
|
|
9441
9371
|
__name: "MStack",
|
|
9442
9372
|
props: {
|
|
9443
9373
|
direction: { default: "column" },
|
|
@@ -9492,19 +9422,19 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9492
9422
|
role: "separator"
|
|
9493
9423
|
}, null, 2)) : x("", !0), (L(), b(W(e)))], 64))), 128)) : H(t.$slots, "default", { key: 1 })], 2));
|
|
9494
9424
|
}
|
|
9495
|
-
}),
|
|
9425
|
+
}), qd = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, Jd = { class: "flex items-start justify-between gap-2" }, Yd = { class: "flex min-w-0 flex-col gap-1" }, Xd = { class: "truncate text-label-large text-on-surface-variant" }, Zd = {
|
|
9496
9426
|
key: 0,
|
|
9497
9427
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
9498
|
-
},
|
|
9428
|
+
}, Qd = {
|
|
9499
9429
|
key: 1,
|
|
9500
9430
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
9501
|
-
},
|
|
9431
|
+
}, $d = {
|
|
9502
9432
|
key: 0,
|
|
9503
9433
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
9504
|
-
},
|
|
9434
|
+
}, ef = {
|
|
9505
9435
|
key: 1,
|
|
9506
9436
|
class: "text-label-medium text-on-surface-variant"
|
|
9507
|
-
},
|
|
9437
|
+
}, tf = /* @__PURE__ */ D({
|
|
9508
9438
|
__name: "MStatCard",
|
|
9509
9439
|
props: {
|
|
9510
9440
|
title: {},
|
|
@@ -9523,13 +9453,13 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9523
9453
|
error: "bg-error-container text-on-error-container",
|
|
9524
9454
|
success: "bg-success-container text-on-success-container"
|
|
9525
9455
|
}, r = v(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), i = v(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
9526
|
-
return (t, a) => (L(), S("div",
|
|
9456
|
+
return (t, a) => (L(), S("div", qd, [C("div", Jd, [C("div", Yd, [C("span", Xd, G(e.title), 1), e.loading ? (L(), S("div", Zd)) : (L(), S("span", Qd, G(e.value), 1))]), e.icon ? (L(), S("div", {
|
|
9527
9457
|
key: 0,
|
|
9528
9458
|
class: M(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
9529
9459
|
}, [E(f, {
|
|
9530
9460
|
name: e.icon,
|
|
9531
9461
|
size: 24
|
|
9532
|
-
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (L(), S("div",
|
|
9462
|
+
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (L(), S("div", $d, [
|
|
9533
9463
|
e.trend == null ? x("", !0) : (L(), S("span", {
|
|
9534
9464
|
key: 0,
|
|
9535
9465
|
class: M(["inline-flex items-center gap-0.5 text-label-medium font-medium", r.value])
|
|
@@ -9537,35 +9467,35 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9537
9467
|
name: i.value,
|
|
9538
9468
|
size: 16
|
|
9539
9469
|
}, null, 8, ["name"]), T(" " + G(e.trend > 0 ? "+" : "") + G(e.trend) + "% ", 1)], 2)),
|
|
9540
|
-
e.trendLabel ? (L(), S("span",
|
|
9470
|
+
e.trendLabel ? (L(), S("span", ef, G(e.trendLabel), 1)) : x("", !0),
|
|
9541
9471
|
H(t.$slots, "footer")
|
|
9542
9472
|
])) : x("", !0)]));
|
|
9543
9473
|
}
|
|
9544
|
-
}),
|
|
9474
|
+
}), nf = {
|
|
9545
9475
|
key: 0,
|
|
9546
9476
|
class: "flex w-full items-start"
|
|
9547
|
-
},
|
|
9477
|
+
}, rf = ["onClick"], af = { key: 3 }, of = { class: "flex flex-col items-center text-center" }, sf = {
|
|
9548
9478
|
key: 0,
|
|
9549
9479
|
class: "text-body-small text-on-surface-variant"
|
|
9550
|
-
},
|
|
9480
|
+
}, cf = {
|
|
9551
9481
|
key: 1,
|
|
9552
9482
|
class: "text-body-small text-on-surface-variant"
|
|
9553
|
-
},
|
|
9483
|
+
}, lf = {
|
|
9554
9484
|
key: 0,
|
|
9555
9485
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
9556
|
-
},
|
|
9486
|
+
}, uf = {
|
|
9557
9487
|
key: 1,
|
|
9558
9488
|
class: "flex flex-col"
|
|
9559
|
-
},
|
|
9489
|
+
}, df = { class: "flex flex-col items-center" }, ff = ["onClick"], pf = { key: 3 }, mf = ["onClick"], hf = {
|
|
9560
9490
|
key: 0,
|
|
9561
9491
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
9562
|
-
},
|
|
9492
|
+
}, gf = {
|
|
9563
9493
|
key: 1,
|
|
9564
9494
|
class: "text-body-small text-on-surface-variant"
|
|
9565
|
-
},
|
|
9495
|
+
}, _f = {
|
|
9566
9496
|
key: 2,
|
|
9567
9497
|
class: "mt-3"
|
|
9568
|
-
},
|
|
9498
|
+
}, vf = /* @__PURE__ */ D({
|
|
9569
9499
|
__name: "MStepper",
|
|
9570
9500
|
props: {
|
|
9571
9501
|
steps: {},
|
|
@@ -9586,7 +9516,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9586
9516
|
function o(e) {
|
|
9587
9517
|
a.value && r("update:modelValue", e);
|
|
9588
9518
|
}
|
|
9589
|
-
return (t, n) => e.direction === "horizontal" ? (L(), S("div",
|
|
9519
|
+
return (t, n) => e.direction === "horizontal" ? (L(), S("div", nf, [(L(!0), S(m, null, V(e.steps, (t, n) => (L(), S(m, { key: n }, [C("div", {
|
|
9590
9520
|
class: M(["flex flex-col items-center gap-2", a.value && i(n) !== "active" ? "cursor-pointer" : ""]),
|
|
9591
9521
|
onClick: (e) => o(n)
|
|
9592
9522
|
}, [C("div", { class: M(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -9605,18 +9535,18 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9605
9535
|
key: 2,
|
|
9606
9536
|
name: t.icon,
|
|
9607
9537
|
size: 20
|
|
9608
|
-
}, null, 8, ["name"])) : (L(), S("span",
|
|
9538
|
+
}, null, 8, ["name"])) : (L(), S("span", af, G(n + 1), 1))], 2), C("div", of, [
|
|
9609
9539
|
C("span", { class: M(["text-label-large", {
|
|
9610
9540
|
"font-medium text-on-surface": i(n) === "active" || i(n) === "completed",
|
|
9611
9541
|
"text-error": i(n) === "error",
|
|
9612
9542
|
"text-on-surface-variant": i(n) === "inactive"
|
|
9613
9543
|
}]) }, G(t.label), 3),
|
|
9614
|
-
t.description ? (L(), S("span",
|
|
9615
|
-
t.optional ? (L(), S("span",
|
|
9616
|
-
])], 10,
|
|
9544
|
+
t.description ? (L(), S("span", sf, G(t.description), 1)) : x("", !0),
|
|
9545
|
+
t.optional ? (L(), S("span", cf, " Opcional ")) : x("", !0)
|
|
9546
|
+
])], 10, rf), n < e.steps.length - 1 ? (L(), S("div", lf, [C("div", { class: M(["h-px w-full transition-colors duration-300", n < e.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : x("", !0)], 64))), 128))])) : (L(), S("div", uf, [(L(!0), S(m, null, V(e.steps, (n, r) => (L(), S("div", {
|
|
9617
9547
|
key: r,
|
|
9618
9548
|
class: "flex gap-4"
|
|
9619
|
-
}, [C("div",
|
|
9549
|
+
}, [C("div", df, [C("div", {
|
|
9620
9550
|
class: M(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
9621
9551
|
"bg-primary text-on-primary": i(r) === "active" || i(r) === "completed",
|
|
9622
9552
|
"bg-error text-on-error": i(r) === "error",
|
|
@@ -9635,7 +9565,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9635
9565
|
key: 2,
|
|
9636
9566
|
name: n.icon,
|
|
9637
9567
|
size: 20
|
|
9638
|
-
}, null, 8, ["name"])) : (L(), S("span",
|
|
9568
|
+
}, null, 8, ["name"])) : (L(), S("span", pf, G(r + 1), 1))], 10, ff), r < e.steps.length - 1 ? (L(), S("div", {
|
|
9639
9569
|
key: 0,
|
|
9640
9570
|
class: M(["my-1 w-px flex-1 transition-colors duration-300", r < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
9641
9571
|
style: { "min-height": "24px" }
|
|
@@ -9648,12 +9578,12 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9648
9578
|
"text-error": i(r) === "error",
|
|
9649
9579
|
"text-on-surface-variant": i(r) === "inactive"
|
|
9650
9580
|
}]) }, G(n.label), 3),
|
|
9651
|
-
n.description ? (L(), S("p",
|
|
9652
|
-
n.optional ? (L(), S("p",
|
|
9653
|
-
i(r) === "active" && t.$slots[`step-${r}`] ? (L(), S("div",
|
|
9654
|
-
], 10,
|
|
9581
|
+
n.description ? (L(), S("p", hf, G(n.description), 1)) : x("", !0),
|
|
9582
|
+
n.optional ? (L(), S("p", gf, " Opcional ")) : x("", !0),
|
|
9583
|
+
i(r) === "active" && t.$slots[`step-${r}`] ? (L(), S("div", _f, [H(t.$slots, `step-${r}`)])) : x("", !0)
|
|
9584
|
+
], 10, mf)]))), 128))]));
|
|
9655
9585
|
}
|
|
9656
|
-
}),
|
|
9586
|
+
}), yf = /* @__PURE__ */ D({
|
|
9657
9587
|
__name: "MSticky",
|
|
9658
9588
|
props: {
|
|
9659
9589
|
top: { default: 0 },
|
|
@@ -9671,7 +9601,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9671
9601
|
}));
|
|
9672
9602
|
return (e, t) => (L(), S("div", { style: N(r.value) }, [H(e.$slots, "default")], 4));
|
|
9673
9603
|
}
|
|
9674
|
-
}),
|
|
9604
|
+
}), bf = /* @__PURE__ */ D({
|
|
9675
9605
|
__name: "MText",
|
|
9676
9606
|
props: {
|
|
9677
9607
|
variant: { default: "body-medium" },
|
|
@@ -9751,7 +9681,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9751
9681
|
_: 3
|
|
9752
9682
|
}, 8, ["class"]));
|
|
9753
9683
|
}
|
|
9754
|
-
}),
|
|
9684
|
+
}), xf = /* @__PURE__ */ D({
|
|
9755
9685
|
__name: "MSubtitle",
|
|
9756
9686
|
props: {
|
|
9757
9687
|
size: { default: "large" },
|
|
@@ -9765,7 +9695,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9765
9695
|
medium: "body-medium",
|
|
9766
9696
|
small: "body-small"
|
|
9767
9697
|
}, r = v(() => n[t.size]);
|
|
9768
|
-
return (t, n) => (L(), b(
|
|
9698
|
+
return (t, n) => (L(), b(bf, {
|
|
9769
9699
|
variant: r.value,
|
|
9770
9700
|
color: e.color,
|
|
9771
9701
|
align: e.align,
|
|
@@ -9780,31 +9710,31 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9780
9710
|
"truncate"
|
|
9781
9711
|
]));
|
|
9782
9712
|
}
|
|
9783
|
-
}),
|
|
9713
|
+
}), Sf = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Cf = {
|
|
9784
9714
|
key: 0,
|
|
9785
9715
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
9786
|
-
},
|
|
9716
|
+
}, wf = {
|
|
9787
9717
|
key: 0,
|
|
9788
9718
|
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"
|
|
9789
|
-
},
|
|
9719
|
+
}, Tf = ["placeholder"], Ef = {
|
|
9790
9720
|
key: 0,
|
|
9791
9721
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
9792
|
-
},
|
|
9722
|
+
}, Df = { class: "overflow-x-auto" }, Of = { class: "w-full border-collapse" }, kf = { class: "bg-surface-container-high" }, Af = {
|
|
9793
9723
|
key: 0,
|
|
9794
9724
|
class: "w-12 px-4 py-3"
|
|
9795
|
-
},
|
|
9725
|
+
}, jf = ["onClick"], Mf = { class: "inline-flex items-center gap-1" }, Nf = {
|
|
9796
9726
|
key: 0,
|
|
9797
9727
|
class: "inline-flex"
|
|
9798
|
-
},
|
|
9728
|
+
}, Pf = {
|
|
9799
9729
|
key: 1,
|
|
9800
9730
|
class: "w-1 px-4 py-3"
|
|
9801
|
-
},
|
|
9731
|
+
}, Ff = {
|
|
9802
9732
|
key: 0,
|
|
9803
9733
|
class: "px-4 py-3.5"
|
|
9804
|
-
},
|
|
9734
|
+
}, If = {
|
|
9805
9735
|
key: 1,
|
|
9806
9736
|
class: "px-4 py-3.5"
|
|
9807
|
-
},
|
|
9737
|
+
}, Lf = { key: 1 }, Rf = ["colspan"], zf = { class: "text-body-medium text-on-surface-variant" }, Bf = ["onClick"], Vf = ["onClick"], Hf = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Uf = /* @__PURE__ */ D({
|
|
9808
9738
|
__name: "MTable",
|
|
9809
9739
|
props: {
|
|
9810
9740
|
columns: {},
|
|
@@ -9944,9 +9874,9 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9944
9874
|
return `${i[(e * 3 + t) % i.length]}%`;
|
|
9945
9875
|
}
|
|
9946
9876
|
let q = Y(), J = v(() => !!q["row-actions"]);
|
|
9947
|
-
return (t, r) => (L(), S("div",
|
|
9948
|
-
e.searchable || t.$slots.toolbar ? (L(), S("div",
|
|
9949
|
-
e.searchable ? (L(), S("div",
|
|
9877
|
+
return (t, r) => (L(), S("div", Sf, [
|
|
9878
|
+
e.searchable || t.$slots.toolbar ? (L(), S("div", Cf, [
|
|
9879
|
+
e.searchable ? (L(), S("div", wf, [
|
|
9950
9880
|
E(f, {
|
|
9951
9881
|
name: "search",
|
|
9952
9882
|
size: 16,
|
|
@@ -9957,7 +9887,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9957
9887
|
type: "text",
|
|
9958
9888
|
placeholder: e.searchPlaceholder ?? K(n).search,
|
|
9959
9889
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
9960
|
-
}, null, 8,
|
|
9890
|
+
}, null, 8, Tf), [[ee, s.value]]),
|
|
9961
9891
|
s.value ? (L(), S("button", {
|
|
9962
9892
|
key: 0,
|
|
9963
9893
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -9974,12 +9904,12 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9974
9904
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
9975
9905
|
"leave-to-class": "opacity-0 scale-90"
|
|
9976
9906
|
}, {
|
|
9977
|
-
default: Z(() => [e.selectable && O.value.length > 0 ? (L(), S("span",
|
|
9907
|
+
default: Z(() => [e.selectable && O.value.length > 0 ? (L(), S("span", Ef, G(O.value.length) + " " + G(e.selectedText ?? K(n).selectedCount) + G(O.value.length === 1 ? "" : "s"), 1)) : x("", !0)]),
|
|
9978
9908
|
_: 1
|
|
9979
9909
|
})
|
|
9980
9910
|
])) : x("", !0),
|
|
9981
|
-
C("div",
|
|
9982
|
-
e.selectable ? (L(), S("th",
|
|
9911
|
+
C("div", Df, [C("table", Of, [C("thead", null, [C("tr", kf, [
|
|
9912
|
+
e.selectable ? (L(), S("th", Af, [E(zn, {
|
|
9983
9913
|
"model-value": P.value,
|
|
9984
9914
|
indeterminate: I.value,
|
|
9985
9915
|
"onUpdate:modelValue": R
|
|
@@ -9993,7 +9923,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
9993
9923
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
9994
9924
|
]),
|
|
9995
9925
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
9996
|
-
}, [C("span",
|
|
9926
|
+
}, [C("span", Mf, [T(G(e.label) + " ", 1), e.sortable ? (L(), S("span", Nf, [c.value === e.key && l.value === "asc" ? (L(), b(f, {
|
|
9997
9927
|
key: 0,
|
|
9998
9928
|
name: "arrow_upward",
|
|
9999
9929
|
size: 14,
|
|
@@ -10008,13 +9938,13 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10008
9938
|
name: "unfold_more",
|
|
10009
9939
|
size: 14,
|
|
10010
9940
|
class: "opacity-30"
|
|
10011
|
-
}))])) : x("", !0)])], 14,
|
|
10012
|
-
J.value ? (L(), S("th",
|
|
9941
|
+
}))])) : x("", !0)])], 14, jf))), 128)),
|
|
9942
|
+
J.value ? (L(), S("th", Pf)) : x("", !0)
|
|
10013
9943
|
])]), C("tbody", null, [e.loading ? (L(!0), S(m, { key: 0 }, V(e.perPage, (t) => (L(), S("tr", {
|
|
10014
9944
|
key: `sk-${t}`,
|
|
10015
9945
|
class: "border-t border-outline-variant"
|
|
10016
9946
|
}, [
|
|
10017
|
-
e.selectable ? (L(), S("td",
|
|
9947
|
+
e.selectable ? (L(), S("td", Ff, [...r[4] ||= [C("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : x("", !0),
|
|
10018
9948
|
(L(!0), S(m, null, V(e.columns, (e, n) => (L(), S("td", {
|
|
10019
9949
|
key: e.key,
|
|
10020
9950
|
class: "px-4 py-3.5"
|
|
@@ -10022,15 +9952,15 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10022
9952
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
10023
9953
|
style: N({ width: W(t, n) })
|
|
10024
9954
|
}, null, 4)]))), 128)),
|
|
10025
|
-
J.value ? (L(), S("td",
|
|
10026
|
-
]))), 128)) : y.value.length === 0 ? (L(), S("tr",
|
|
9955
|
+
J.value ? (L(), S("td", If, [...r[5] ||= [C("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : x("", !0)
|
|
9956
|
+
]))), 128)) : y.value.length === 0 ? (L(), S("tr", Lf, [C("td", {
|
|
10027
9957
|
colspan: e.columns.length + z.value,
|
|
10028
9958
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
10029
9959
|
}, [H(t.$slots, "empty", {}, () => [E(f, {
|
|
10030
9960
|
name: "search_off",
|
|
10031
9961
|
size: 36,
|
|
10032
9962
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
10033
|
-
}), C("p",
|
|
9963
|
+
}), C("p", zf, G(e.emptyText ?? K(n).noResults), 1)])], 8, Rf)])) : (L(!0), S(m, { key: 2 }, V(y.value, (n) => (L(), S("tr", {
|
|
10034
9964
|
key: k(n),
|
|
10035
9965
|
class: M([
|
|
10036
9966
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -10047,7 +9977,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10047
9977
|
}, [E(zn, {
|
|
10048
9978
|
"model-value": A(n),
|
|
10049
9979
|
"onUpdate:modelValue": (e) => j(n)
|
|
10050
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
9980
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Vf)) : x("", !0),
|
|
10051
9981
|
(L(!0), S(m, null, V(e.columns, (e) => (L(), S("td", {
|
|
10052
9982
|
key: e.key,
|
|
10053
9983
|
class: M(["px-4 py-3 text-body-medium text-on-surface", U(e.align)])
|
|
@@ -10061,8 +9991,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10061
9991
|
class: "px-4 py-3 text-right",
|
|
10062
9992
|
onClick: r[2] ||= Q(() => {}, ["stop"])
|
|
10063
9993
|
}, [H(t.$slots, "row-actions", { row: n })])) : x("", !0)
|
|
10064
|
-
], 10,
|
|
10065
|
-
C("div",
|
|
9994
|
+
], 10, Bf))), 128))])])]),
|
|
9995
|
+
C("div", Hf, [E(jr, {
|
|
10066
9996
|
page: p.value,
|
|
10067
9997
|
"per-page": e.perPage,
|
|
10068
9998
|
total: _.value,
|
|
@@ -10074,21 +10004,21 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10074
10004
|
])])
|
|
10075
10005
|
]));
|
|
10076
10006
|
}
|
|
10077
|
-
}),
|
|
10007
|
+
}), Wf = { class: "flex flex-col gap-1" }, Gf = ["id"], Kf = ["onClick"], qf = [
|
|
10078
10008
|
"value",
|
|
10079
10009
|
"placeholder",
|
|
10080
10010
|
"disabled",
|
|
10081
10011
|
"readonly"
|
|
10082
|
-
],
|
|
10012
|
+
], Jf = {
|
|
10083
10013
|
key: 0,
|
|
10084
10014
|
class: "text-error"
|
|
10085
|
-
},
|
|
10015
|
+
}, Yf = {
|
|
10086
10016
|
key: 0,
|
|
10087
10017
|
class: "px-4 text-body-small text-error"
|
|
10088
|
-
},
|
|
10018
|
+
}, Xf = {
|
|
10089
10019
|
key: 1,
|
|
10090
10020
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
10091
|
-
},
|
|
10021
|
+
}, Zf = /* @__PURE__ */ D({
|
|
10092
10022
|
__name: "MTagInput",
|
|
10093
10023
|
props: {
|
|
10094
10024
|
modelValue: { default: () => [] },
|
|
@@ -10099,7 +10029,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10099
10029
|
type: Boolean,
|
|
10100
10030
|
default: !1
|
|
10101
10031
|
},
|
|
10102
|
-
error: {},
|
|
10032
|
+
error: { type: Boolean },
|
|
10033
|
+
errorLabel: {},
|
|
10103
10034
|
hint: {},
|
|
10104
10035
|
required: {
|
|
10105
10036
|
type: Boolean,
|
|
@@ -10182,7 +10113,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10182
10113
|
o.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"
|
|
10183
10114
|
].join(" ");
|
|
10184
10115
|
});
|
|
10185
|
-
return (t, n) => (L(), S("div",
|
|
10116
|
+
return (t, n) => (L(), S("div", Wf, [C("div", {
|
|
10186
10117
|
ref_key: "fieldEl",
|
|
10187
10118
|
ref: c,
|
|
10188
10119
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -10210,7 +10141,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10210
10141
|
}, [E(f, {
|
|
10211
10142
|
name: "close",
|
|
10212
10143
|
size: 12
|
|
10213
|
-
})], 8,
|
|
10144
|
+
})], 8, Kf))]))), 128)), C("input", {
|
|
10214
10145
|
ref_key: "inputEl",
|
|
10215
10146
|
ref: u,
|
|
10216
10147
|
value: s.value,
|
|
@@ -10226,8 +10157,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10226
10157
|
onPaste: O,
|
|
10227
10158
|
onFocus: n[0] ||= (e) => o.value = !0,
|
|
10228
10159
|
onBlur: k
|
|
10229
|
-
}, null, 40,
|
|
10230
|
-
C("label", { class: M(P.value) }, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
10160
|
+
}, null, 40, qf)], 10, Gf),
|
|
10161
|
+
C("label", { class: M(P.value) }, [T(G(e.label), 1), e.required ? (L(), S("span", Jf, "\xA0*")) : x("", !0)], 2),
|
|
10231
10162
|
e.clearable && g.value && !e.disabled ? (L(), S("button", {
|
|
10232
10163
|
key: 1,
|
|
10233
10164
|
type: "button",
|
|
@@ -10239,21 +10170,21 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10239
10170
|
name: "close",
|
|
10240
10171
|
size: 18
|
|
10241
10172
|
})])) : x("", !0)
|
|
10242
|
-
], 6), e.error ? (L(), S("p",
|
|
10173
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Yf, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Xf, G(e.hint), 1)) : x("", !0)]));
|
|
10243
10174
|
}
|
|
10244
|
-
}),
|
|
10175
|
+
}), Qf = {
|
|
10245
10176
|
key: 0,
|
|
10246
10177
|
class: "border-b border-outline-variant"
|
|
10247
|
-
},
|
|
10178
|
+
}, $f = {
|
|
10248
10179
|
class: "relative flex overflow-x-auto",
|
|
10249
10180
|
style: { "scrollbar-width": "none" }
|
|
10250
|
-
},
|
|
10181
|
+
}, ep = ["disabled", "onClick"], tp = {
|
|
10251
10182
|
key: 1,
|
|
10252
10183
|
class: "border-b border-outline-variant"
|
|
10253
|
-
},
|
|
10184
|
+
}, np = {
|
|
10254
10185
|
class: "relative flex overflow-x-auto",
|
|
10255
10186
|
style: { "scrollbar-width": "none" }
|
|
10256
|
-
},
|
|
10187
|
+
}, rp = ["disabled", "onClick"], ip = /* @__PURE__ */ D({
|
|
10257
10188
|
__name: "MTabs",
|
|
10258
10189
|
props: {
|
|
10259
10190
|
modelValue: {},
|
|
@@ -10288,7 +10219,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10288
10219
|
function d(e) {
|
|
10289
10220
|
e.disabled || r("update:modelValue", e.value);
|
|
10290
10221
|
}
|
|
10291
|
-
return (t, n) => e.variant === "primary" ? (L(), S("div",
|
|
10222
|
+
return (t, n) => e.variant === "primary" ? (L(), S("div", Qf, [C("div", $f, [(L(!0), S(m, null, V(e.tabs, (t) => (L(), S("button", {
|
|
10292
10223
|
key: t.value,
|
|
10293
10224
|
ref_for: !0,
|
|
10294
10225
|
ref: (n) => {
|
|
@@ -10302,14 +10233,14 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10302
10233
|
key: 0,
|
|
10303
10234
|
name: t.icon,
|
|
10304
10235
|
size: 20
|
|
10305
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10,
|
|
10236
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10, ep))), 128)), C("div", {
|
|
10306
10237
|
class: "absolute bottom-0 h-[3px] rounded-t-full bg-primary",
|
|
10307
10238
|
style: N({
|
|
10308
10239
|
left: `${a.value}px`,
|
|
10309
10240
|
width: `${o.value}px`,
|
|
10310
|
-
transition: s.value ? "left 150ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0.4, 0, 0.2, 1)" : "left
|
|
10241
|
+
transition: s.value ? "left 150ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0.4, 0, 0.2, 1)" : "left 180ms cubic-bezier(0.34, 1.4, 0.64, 1), width 180ms cubic-bezier(0.34, 1.4, 0.64, 1)"
|
|
10311
10242
|
})
|
|
10312
|
-
}, null, 4)])])) : (L(), S("div",
|
|
10243
|
+
}, null, 4)])])) : (L(), S("div", tp, [C("div", np, [(L(!0), S(m, null, V(e.tabs, (t) => (L(), S("button", {
|
|
10313
10244
|
key: t.value,
|
|
10314
10245
|
ref_for: !0,
|
|
10315
10246
|
ref: (n) => {
|
|
@@ -10323,7 +10254,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10323
10254
|
key: 0,
|
|
10324
10255
|
name: t.icon,
|
|
10325
10256
|
size: 18
|
|
10326
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + G(t.label), 1)], 10,
|
|
10257
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + G(t.label), 1)], 10, rp))), 128)), C("div", {
|
|
10327
10258
|
class: "absolute bottom-0 h-[2px] bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
|
|
10328
10259
|
style: N({
|
|
10329
10260
|
left: `${a.value}px`,
|
|
@@ -10331,25 +10262,25 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10331
10262
|
})
|
|
10332
10263
|
}, null, 4)])]));
|
|
10333
10264
|
}
|
|
10334
|
-
}),
|
|
10265
|
+
}), ap = { class: "flex flex-col items-center" }, op = { class: "flex items-baseline justify-between gap-2" }, sp = { class: "text-body-large font-medium text-on-surface" }, cp = {
|
|
10335
10266
|
key: 0,
|
|
10336
10267
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
10337
|
-
},
|
|
10268
|
+
}, lp = {
|
|
10338
10269
|
key: 0,
|
|
10339
10270
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
10340
|
-
},
|
|
10271
|
+
}, up = {
|
|
10341
10272
|
key: 1,
|
|
10342
10273
|
class: "mt-2"
|
|
10343
|
-
},
|
|
10274
|
+
}, dp = { class: "text-body-large font-medium text-on-surface" }, fp = {
|
|
10344
10275
|
key: 0,
|
|
10345
10276
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
10346
|
-
},
|
|
10277
|
+
}, pp = {
|
|
10347
10278
|
key: 1,
|
|
10348
10279
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
10349
|
-
},
|
|
10280
|
+
}, mp = { class: "flex w-14 shrink-0 flex-col items-center" }, hp = {
|
|
10350
10281
|
key: 0,
|
|
10351
10282
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
10352
|
-
},
|
|
10283
|
+
}, gp = /* @__PURE__ */ D({
|
|
10353
10284
|
__name: "MTimeline",
|
|
10354
10285
|
props: {
|
|
10355
10286
|
items: {},
|
|
@@ -10375,23 +10306,23 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10375
10306
|
class: M(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
10376
10307
|
}, [
|
|
10377
10308
|
C("div", { class: M(["flex-1", [i % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
10378
|
-
C("p",
|
|
10379
|
-
n.description ? (L(), S("p",
|
|
10380
|
-
n.date ? (L(), S("span",
|
|
10309
|
+
C("p", dp, G(n.title), 1),
|
|
10310
|
+
n.description ? (L(), S("p", fp, G(n.description), 1)) : x("", !0),
|
|
10311
|
+
n.date ? (L(), S("span", pp, G(n.date), 1)) : x("", !0)
|
|
10381
10312
|
], 2),
|
|
10382
|
-
C("div",
|
|
10313
|
+
C("div", mp, [C("div", {
|
|
10383
10314
|
class: M(["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"]]]),
|
|
10384
10315
|
style: N(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
10385
10316
|
}, [n.icon ? (L(), b(f, {
|
|
10386
10317
|
key: 0,
|
|
10387
10318
|
name: n.icon,
|
|
10388
10319
|
size: 18
|
|
10389
|
-
}, null, 8, ["name"])) : x("", !0)], 6), i < e.items.length - 1 ? (L(), S("div",
|
|
10320
|
+
}, null, 8, ["name"])) : x("", !0)], 6), i < e.items.length - 1 ? (L(), S("div", hp)) : x("", !0)]),
|
|
10390
10321
|
r[0] ||= C("div", { class: "flex-1" }, null, -1)
|
|
10391
10322
|
], 2))), 128)) : (L(!0), S(m, { key: 0 }, V(e.items, (r, i) => (L(), S("div", {
|
|
10392
10323
|
key: i,
|
|
10393
10324
|
class: M(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
10394
|
-
}, [C("div",
|
|
10325
|
+
}, [C("div", ap, [C("div", {
|
|
10395
10326
|
class: M(["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"]]]),
|
|
10396
10327
|
style: N(r.dotColor ? { backgroundColor: r.dotColor } : void 0)
|
|
10397
10328
|
}, [r.icon ? (L(), b(f, {
|
|
@@ -10403,37 +10334,38 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10403
10334
|
class: M(["w-[2px] flex-1", t[r.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
10404
10335
|
style: { "min-height": "16px" }
|
|
10405
10336
|
}, null, 2)) : x("", !0)]), C("div", { class: M([r.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
10406
|
-
C("div",
|
|
10407
|
-
r.description ? (L(), S("p",
|
|
10408
|
-
n.$slots[`item-${i}`] ? (L(), S("div",
|
|
10337
|
+
C("div", op, [C("p", sp, G(r.title), 1), r.date ? (L(), S("span", cp, G(r.date), 1)) : x("", !0)]),
|
|
10338
|
+
r.description ? (L(), S("p", lp, G(r.description), 1)) : x("", !0),
|
|
10339
|
+
n.$slots[`item-${i}`] ? (L(), S("div", up, [H(n.$slots, `item-${i}`, { item: r })])) : x("", !0)
|
|
10409
10340
|
], 2)], 2))), 128))], 2));
|
|
10410
10341
|
}
|
|
10411
|
-
}),
|
|
10342
|
+
}), _p = { class: "flex flex-col gap-1" }, vp = {
|
|
10412
10343
|
key: 0,
|
|
10413
10344
|
class: "flex-1 font-mono text-on-surface"
|
|
10414
|
-
},
|
|
10345
|
+
}, yp = {
|
|
10415
10346
|
key: 1,
|
|
10416
10347
|
class: "flex-1 text-on-surface-variant"
|
|
10417
|
-
},
|
|
10348
|
+
}, bp = {
|
|
10418
10349
|
key: 0,
|
|
10419
10350
|
class: "px-4 text-body-small text-error"
|
|
10420
|
-
},
|
|
10351
|
+
}, xp = {
|
|
10421
10352
|
key: 1,
|
|
10422
10353
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
10423
|
-
},
|
|
10354
|
+
}, Sp = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Cp = { class: "p-3" }, wp = {
|
|
10424
10355
|
key: 0,
|
|
10425
10356
|
class: "grid grid-cols-6 gap-1"
|
|
10426
|
-
},
|
|
10357
|
+
}, Tp = ["onClick"], Ep = {
|
|
10427
10358
|
key: 1,
|
|
10428
10359
|
class: "grid grid-cols-6 gap-1"
|
|
10429
|
-
},
|
|
10360
|
+
}, Dp = ["onClick"], Op = /* @__PURE__ */ D({
|
|
10430
10361
|
__name: "MTimePicker",
|
|
10431
10362
|
props: {
|
|
10432
10363
|
modelValue: {},
|
|
10433
10364
|
label: {},
|
|
10434
10365
|
placeholder: {},
|
|
10435
10366
|
disabled: { type: Boolean },
|
|
10436
|
-
error: {},
|
|
10367
|
+
error: { type: Boolean },
|
|
10368
|
+
errorLabel: {},
|
|
10437
10369
|
hint: {},
|
|
10438
10370
|
minuteStep: { default: 5 },
|
|
10439
10371
|
use24h: {
|
|
@@ -10498,7 +10430,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10498
10430
|
e ? (u.value = "hour", y.value = _.value.h, w.value = _.value.m, R(), setTimeout(() => document.addEventListener("mousedown", z), 0)) : document.removeEventListener("mousedown", z);
|
|
10499
10431
|
}), F(() => window.addEventListener("scroll", H, !0)), I(() => {
|
|
10500
10432
|
window.removeEventListener("scroll", H, !0), document.removeEventListener("mousedown", z);
|
|
10501
|
-
}), (t, n) => (L(), S("div",
|
|
10433
|
+
}), (t, n) => (L(), S("div", _p, [
|
|
10502
10434
|
C("div", {
|
|
10503
10435
|
ref_key: "triggerEl",
|
|
10504
10436
|
ref: c,
|
|
@@ -10514,7 +10446,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10514
10446
|
size: 20,
|
|
10515
10447
|
class: "shrink-0 text-on-surface-variant"
|
|
10516
10448
|
}),
|
|
10517
|
-
P.value ? (L(), S("span",
|
|
10449
|
+
P.value ? (L(), S("span", vp, G(P.value), 1)) : (L(), S("span", yp, G(e.label || e.placeholder || K(a).selectTime), 1)),
|
|
10518
10450
|
e.modelValue ? (L(), b(f, {
|
|
10519
10451
|
key: 2,
|
|
10520
10452
|
name: "close",
|
|
@@ -10526,7 +10458,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10526
10458
|
key: 0,
|
|
10527
10459
|
class: M(["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"])
|
|
10528
10460
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
10529
|
-
e.error ? (L(), S("p",
|
|
10461
|
+
e.error && e.errorLabel ? (L(), S("p", bp, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", xp, G(e.hint), 1)) : x("", !0),
|
|
10530
10462
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
10531
10463
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
10532
10464
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -10539,7 +10471,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10539
10471
|
ref: l,
|
|
10540
10472
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
10541
10473
|
style: N(d.value)
|
|
10542
|
-
}, [C("div",
|
|
10474
|
+
}, [C("div", Sp, [
|
|
10543
10475
|
C("button", {
|
|
10544
10476
|
type: "button",
|
|
10545
10477
|
class: M(["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"]),
|
|
@@ -10551,34 +10483,34 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10551
10483
|
class: M(["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"]),
|
|
10552
10484
|
onClick: n[2] ||= (e) => u.value = "minute"
|
|
10553
10485
|
}, G(O(w.value)), 3)
|
|
10554
|
-
]), C("div",
|
|
10486
|
+
]), C("div", Cp, [u.value === "hour" ? (L(), S("div", wp, [(L(!0), S(m, null, V(K(T), (e) => (L(), S("button", {
|
|
10555
10487
|
key: e,
|
|
10556
10488
|
type: "button",
|
|
10557
10489
|
class: M(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === y.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
10558
10490
|
onClick: (t) => k(e)
|
|
10559
|
-
}, G(O(e)), 11,
|
|
10491
|
+
}, G(O(e)), 11, Tp))), 128))])) : (L(), S("div", Ep, [(L(!0), S(m, null, V(D.value, (e) => (L(), S("button", {
|
|
10560
10492
|
key: e,
|
|
10561
10493
|
type: "button",
|
|
10562
10494
|
class: M(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === w.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
10563
10495
|
onClick: (t) => A(e)
|
|
10564
|
-
}, G(O(e)), 11,
|
|
10496
|
+
}, G(O(e)), 11, Dp))), 128))]))])], 4)) : x("", !0)]),
|
|
10565
10497
|
_: 1
|
|
10566
10498
|
})]))
|
|
10567
10499
|
]));
|
|
10568
10500
|
}
|
|
10569
|
-
}),
|
|
10501
|
+
}), kp = { class: "tp-box w-[328px] rounded-[28px] bg-surface-container-high px-6 pt-6 pb-4 shadow-elevation-3" }, Ap = { class: "mb-5 text-label-medium text-on-surface-variant" }, jp = { class: "mb-5 flex items-center justify-center gap-2" }, Mp = {
|
|
10570
10502
|
key: 0,
|
|
10571
10503
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
10572
|
-
},
|
|
10504
|
+
}, Np = {
|
|
10573
10505
|
class: "pointer-events-none absolute inset-0",
|
|
10574
10506
|
viewBox: "0 0 256 256"
|
|
10575
|
-
},
|
|
10507
|
+
}, Pp = ["x2", "y2"], Fp = ["cx", "cy"], Ip = ["onClick"], Lp = ["onClick"], Rp = {
|
|
10576
10508
|
key: 1,
|
|
10577
10509
|
class: "mx-auto flex items-center justify-center gap-2 py-8"
|
|
10578
|
-
},
|
|
10510
|
+
}, zp = {
|
|
10579
10511
|
key: 0,
|
|
10580
10512
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
10581
|
-
},
|
|
10513
|
+
}, Bp = { class: "mt-2 flex items-center justify-between" }, Vp = { class: "flex gap-2" }, Hp = 256, Up = 100, Wp = 64, Gp = 20, Kp = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
10582
10514
|
__name: "MTimePickerModal",
|
|
10583
10515
|
props: {
|
|
10584
10516
|
modelValue: { default: null },
|
|
@@ -10616,7 +10548,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10616
10548
|
i.use24h ? d.value = e : (u.value = e >= 12 ? "PM" : "AM", d.value = e % 12 || 12), f.value = t, c.value = "hour", l.value = "dial", document.addEventListener("keydown", te), document.body.style.overflow = "hidden";
|
|
10617
10549
|
} else document.removeEventListener("keydown", te), document.body.style.overflow = "";
|
|
10618
10550
|
});
|
|
10619
|
-
let O =
|
|
10551
|
+
let O = Hp / 2;
|
|
10620
10552
|
function k(e, t, n) {
|
|
10621
10553
|
let r = e / t * Math.PI * 2 - Math.PI / 2;
|
|
10622
10554
|
return {
|
|
@@ -10627,7 +10559,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10627
10559
|
let A = v(() => {
|
|
10628
10560
|
let e = [];
|
|
10629
10561
|
for (let t = 0; t < 12; t++) {
|
|
10630
|
-
let n = t === 0 ? 12 : t, r = k(t, 12,
|
|
10562
|
+
let n = t === 0 ? 12 : t, r = k(t, 12, Up);
|
|
10631
10563
|
e.push({
|
|
10632
10564
|
value: n,
|
|
10633
10565
|
label: String(n),
|
|
@@ -10635,7 +10567,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10635
10567
|
});
|
|
10636
10568
|
}
|
|
10637
10569
|
if (i.use24h) for (let t = 0; t < 12; t++) {
|
|
10638
|
-
let n = t === 0 ? 0 : t + 12, r = k(t, 12,
|
|
10570
|
+
let n = t === 0 ? 0 : t + 12, r = k(t, 12, Wp);
|
|
10639
10571
|
e.push({
|
|
10640
10572
|
value: n,
|
|
10641
10573
|
label: w(n),
|
|
@@ -10644,7 +10576,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10644
10576
|
}
|
|
10645
10577
|
return e;
|
|
10646
10578
|
}), j = v(() => Array.from({ length: 12 }, (e, t) => {
|
|
10647
|
-
let n = t * 5, r = k(t, 12,
|
|
10579
|
+
let n = t * 5, r = k(t, 12, Up);
|
|
10648
10580
|
return {
|
|
10649
10581
|
value: n,
|
|
10650
10582
|
label: w(n),
|
|
@@ -10652,7 +10584,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10652
10584
|
};
|
|
10653
10585
|
})), P = v(() => {
|
|
10654
10586
|
if (c.value === "hour") {
|
|
10655
|
-
let e = d.value, t = i.use24h && (e === 0 || e > 12) ?
|
|
10587
|
+
let e = d.value, t = i.use24h && (e === 0 || e > 12) ? Wp : Up, n = e % 12 / 12 * Math.PI * 2 - Math.PI / 2;
|
|
10656
10588
|
return {
|
|
10657
10589
|
x: O + Math.cos(n) * t,
|
|
10658
10590
|
y: O + Math.sin(n) * t
|
|
@@ -10660,8 +10592,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10660
10592
|
}
|
|
10661
10593
|
let e = f.value / 60 * Math.PI * 2 - Math.PI / 2;
|
|
10662
10594
|
return {
|
|
10663
|
-
x: O + Math.cos(e) *
|
|
10664
|
-
y: O + Math.sin(e) *
|
|
10595
|
+
x: O + Math.cos(e) * Up,
|
|
10596
|
+
y: O + Math.sin(e) * Up
|
|
10665
10597
|
};
|
|
10666
10598
|
});
|
|
10667
10599
|
function F(e) {
|
|
@@ -10739,9 +10671,9 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10739
10671
|
key: 0,
|
|
10740
10672
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
10741
10673
|
onClick: Q(J, ["self"])
|
|
10742
|
-
}, [C("div",
|
|
10743
|
-
C("p",
|
|
10744
|
-
l.value === "dial" ? (L(), S(m, { key: 0 }, [C("div",
|
|
10674
|
+
}, [C("div", kp, [
|
|
10675
|
+
C("p", Ap, G(t.title || K(a).selectTime), 1),
|
|
10676
|
+
l.value === "dial" ? (L(), S(m, { key: 0 }, [C("div", jp, [
|
|
10745
10677
|
C("button", {
|
|
10746
10678
|
type: "button",
|
|
10747
10679
|
class: M(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", c.value === "hour" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
@@ -10753,7 +10685,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10753
10685
|
class: M(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", c.value === "minute" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
10754
10686
|
onClick: r[1] ||= (e) => c.value = "minute"
|
|
10755
10687
|
}, G(w(f.value)), 3),
|
|
10756
|
-
t.use24h ? x("", !0) : (L(), S("div",
|
|
10688
|
+
t.use24h ? x("", !0) : (L(), S("div", Mp, [
|
|
10757
10689
|
C("button", {
|
|
10758
10690
|
type: "button",
|
|
10759
10691
|
class: M(["flex flex-1 items-center justify-center px-3 text-label-large transition-colors", u.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -10774,7 +10706,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10774
10706
|
onTouchstart: Q(z, ["prevent"])
|
|
10775
10707
|
}, [
|
|
10776
10708
|
r[11] ||= C("div", { class: "absolute inset-0 rounded-full bg-surface-container-highest" }, null, -1),
|
|
10777
|
-
(L(), S("svg",
|
|
10709
|
+
(L(), S("svg", Np, [
|
|
10778
10710
|
C("line", {
|
|
10779
10711
|
x1: O,
|
|
10780
10712
|
y1: O,
|
|
@@ -10782,7 +10714,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10782
10714
|
y2: P.value.y,
|
|
10783
10715
|
stroke: "var(--color-primary)",
|
|
10784
10716
|
"stroke-width": "2"
|
|
10785
|
-
}, null, 8,
|
|
10717
|
+
}, null, 8, Pp),
|
|
10786
10718
|
C("circle", {
|
|
10787
10719
|
cx: O,
|
|
10788
10720
|
cy: O,
|
|
@@ -10792,9 +10724,9 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10792
10724
|
C("circle", {
|
|
10793
10725
|
cx: P.value.x,
|
|
10794
10726
|
cy: P.value.y,
|
|
10795
|
-
r:
|
|
10727
|
+
r: Gp,
|
|
10796
10728
|
fill: "var(--color-primary)"
|
|
10797
|
-
}, null, 8,
|
|
10729
|
+
}, null, 8, Fp)
|
|
10798
10730
|
])),
|
|
10799
10731
|
c.value === "hour" ? (L(!0), S(m, { key: 0 }, V(A.value, (e) => (L(), S("button", {
|
|
10800
10732
|
key: "h" + e.value,
|
|
@@ -10806,7 +10738,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10806
10738
|
transform: "translate(-50%, -50%)"
|
|
10807
10739
|
}),
|
|
10808
10740
|
onClick: Q((t) => H(e.value), ["stop"])
|
|
10809
|
-
}, G(e.label), 15,
|
|
10741
|
+
}, G(e.label), 15, Ip))), 128)) : (L(!0), S(m, { key: 1 }, V(j.value, (e) => (L(), S("button", {
|
|
10810
10742
|
key: "m" + e.value,
|
|
10811
10743
|
type: "button",
|
|
10812
10744
|
class: M(["pointer-events-auto absolute flex h-10 w-10 items-center justify-center rounded-full text-body-medium transition-colors", e.value === f.value ? "text-on-primary font-medium" : "text-on-surface cursor-pointer"]),
|
|
@@ -10816,8 +10748,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10816
10748
|
transform: "translate(-50%, -50%)"
|
|
10817
10749
|
}),
|
|
10818
10750
|
onClick: Q((t) => f.value = e.value, ["stop"])
|
|
10819
|
-
}, G(e.label), 15,
|
|
10820
|
-
], 544)], 64)) : (L(), S("div",
|
|
10751
|
+
}, G(e.label), 15, Lp))), 128))
|
|
10752
|
+
], 544)], 64)) : (L(), S("div", Rp, [
|
|
10821
10753
|
re(C("input", {
|
|
10822
10754
|
ref_key: "inputHourEl",
|
|
10823
10755
|
ref: _,
|
|
@@ -10837,7 +10769,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10837
10769
|
class: "h-[72px] w-[96px] rounded-lg border border-outline bg-surface-container-highest text-center text-display-medium text-on-surface outline-none transition-colors focus:border-2 focus:border-primary",
|
|
10838
10770
|
onBlur: q
|
|
10839
10771
|
}, null, 544), [[ee, W.value]]),
|
|
10840
|
-
t.use24h ? x("", !0) : (L(), S("div",
|
|
10772
|
+
t.use24h ? x("", !0) : (L(), S("div", zp, [
|
|
10841
10773
|
C("button", {
|
|
10842
10774
|
type: "button",
|
|
10843
10775
|
class: M(["flex flex-1 items-center justify-center px-3 text-label-large transition-colors", u.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -10851,11 +10783,11 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10851
10783
|
}, "PM", 2)
|
|
10852
10784
|
]))
|
|
10853
10785
|
])),
|
|
10854
|
-
C("div",
|
|
10786
|
+
C("div", Bp, [E(s, {
|
|
10855
10787
|
icon: l.value === "dial" ? "keyboard" : "schedule",
|
|
10856
10788
|
label: l.value === "dial" ? "Switch to keyboard" : "Switch to dial",
|
|
10857
10789
|
onClick: r[8] ||= (e) => l.value = l.value === "dial" ? "input" : "dial"
|
|
10858
|
-
}, null, 8, ["icon", "label"]), C("div",
|
|
10790
|
+
}, null, 8, ["icon", "label"]), C("div", Vp, [E(e, {
|
|
10859
10791
|
variant: "text",
|
|
10860
10792
|
onClick: J
|
|
10861
10793
|
}, {
|
|
@@ -10872,7 +10804,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10872
10804
|
_: 1
|
|
10873
10805
|
})]));
|
|
10874
10806
|
}
|
|
10875
|
-
}), [["__scopeId", "data-v-a2a090e9"]]),
|
|
10807
|
+
}), [["__scopeId", "data-v-a2a090e9"]]), qp = /* @__PURE__ */ D({
|
|
10876
10808
|
__name: "MTitle",
|
|
10877
10809
|
props: {
|
|
10878
10810
|
size: { default: "large" },
|
|
@@ -10886,7 +10818,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10886
10818
|
medium: "headline-medium",
|
|
10887
10819
|
small: "headline-small"
|
|
10888
10820
|
}, r = v(() => n[t.size]);
|
|
10889
|
-
return (t, n) => (L(), b(
|
|
10821
|
+
return (t, n) => (L(), b(bf, {
|
|
10890
10822
|
variant: r.value,
|
|
10891
10823
|
weight: "medium",
|
|
10892
10824
|
color: e.color,
|
|
@@ -10902,13 +10834,13 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
10902
10834
|
"truncate"
|
|
10903
10835
|
]));
|
|
10904
10836
|
}
|
|
10905
|
-
}),
|
|
10837
|
+
}), Jp = {
|
|
10906
10838
|
key: 0,
|
|
10907
10839
|
class: "px-4 pt-3 pb-1 text-title-small font-medium text-on-surface"
|
|
10908
|
-
},
|
|
10840
|
+
}, Yp = { class: "px-4 py-2 text-body-medium text-on-surface-variant" }, Xp = {
|
|
10909
10841
|
key: 1,
|
|
10910
10842
|
class: "flex justify-end gap-2 px-4 pb-3"
|
|
10911
|
-
},
|
|
10843
|
+
}, Zp = /* @__PURE__ */ D({
|
|
10912
10844
|
__name: "MTooltip",
|
|
10913
10845
|
props: {
|
|
10914
10846
|
text: {},
|
|
@@ -11000,20 +10932,20 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11000
10932
|
onMouseenter: d,
|
|
11001
10933
|
onMouseleave: f
|
|
11002
10934
|
}, [
|
|
11003
|
-
e.text ? (L(), S("div",
|
|
11004
|
-
C("div",
|
|
11005
|
-
t.$slots.actions ? (L(), S("div",
|
|
10935
|
+
e.text ? (L(), S("div", Jp, G(e.text), 1)) : x("", !0),
|
|
10936
|
+
C("div", Yp, [H(t.$slots, "content")]),
|
|
10937
|
+
t.$slots.actions ? (L(), S("div", Xp, [H(t.$slots, "actions")])) : x("", !0)
|
|
11006
10938
|
], 36)) : x("", !0)]),
|
|
11007
10939
|
_: 3
|
|
11008
10940
|
})]))], 64));
|
|
11009
10941
|
}
|
|
11010
|
-
}),
|
|
10942
|
+
}), Qp = {
|
|
11011
10943
|
key: 0,
|
|
11012
10944
|
class: "shrink-0"
|
|
11013
|
-
},
|
|
10945
|
+
}, $p = {
|
|
11014
10946
|
key: 1,
|
|
11015
10947
|
class: "shrink-0"
|
|
11016
|
-
},
|
|
10948
|
+
}, em = /* @__PURE__ */ D({
|
|
11017
10949
|
__name: "MToolbar",
|
|
11018
10950
|
props: {
|
|
11019
10951
|
variant: { default: "docked" },
|
|
@@ -11042,7 +10974,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11042
10974
|
e.fabPosition === "start" && !i.value ? "flex-row" : "",
|
|
11043
10975
|
e.fabPosition === "start" && i.value ? "flex-col" : ""
|
|
11044
10976
|
]]) }, [
|
|
11045
|
-
t.$slots.fab && e.fabPosition === "start" ? (L(), S("div",
|
|
10977
|
+
t.$slots.fab && e.fabPosition === "start" ? (L(), S("div", Qp, [H(t.$slots, "fab")])) : x("", !0),
|
|
11046
10978
|
C("div", { class: M(["flex items-center gap-1", [
|
|
11047
10979
|
i.value ? "flex-col py-3 px-2" : "flex-row px-3 py-2",
|
|
11048
10980
|
r.value,
|
|
@@ -11051,16 +10983,16 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11051
10983
|
e.variant === "docked" ? "w-full border-t border-outline-variant" : "",
|
|
11052
10984
|
e.variant === "docked" && i.value ? "h-full w-auto border-t-0 border-r border-outline-variant" : ""
|
|
11053
10985
|
]]) }, [H(t.$slots, "default")], 2),
|
|
11054
|
-
t.$slots.fab && e.fabPosition === "end" ? (L(), S("div",
|
|
10986
|
+
t.$slots.fab && e.fabPosition === "end" ? (L(), S("div", $p, [H(t.$slots, "fab")])) : x("", !0)
|
|
11055
10987
|
], 2));
|
|
11056
10988
|
}
|
|
11057
|
-
}),
|
|
10989
|
+
}), tm = { class: "flex h-16 items-center gap-1 px-4" }, nm = {
|
|
11058
10990
|
key: 1,
|
|
11059
10991
|
class: "flex-1"
|
|
11060
|
-
},
|
|
10992
|
+
}, rm = {
|
|
11061
10993
|
key: 2,
|
|
11062
10994
|
class: "flex items-center gap-1"
|
|
11063
|
-
},
|
|
10995
|
+
}, im = /* @__PURE__ */ D({
|
|
11064
10996
|
__name: "MTopAppBar",
|
|
11065
10997
|
props: {
|
|
11066
10998
|
title: {},
|
|
@@ -11071,7 +11003,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11071
11003
|
},
|
|
11072
11004
|
emits: ["navigation"],
|
|
11073
11005
|
setup(e) {
|
|
11074
|
-
return (t, n) => (L(), S("header", { class: M(["flex w-full flex-col bg-surface transition-shadow", [e.elevated ? "shadow-elevation-2" : "", e.bordered ? "border-b border-outline-variant" : ""]]) }, [C("div",
|
|
11006
|
+
return (t, n) => (L(), S("header", { class: M(["flex w-full flex-col bg-surface transition-shadow", [e.elevated ? "shadow-elevation-2" : "", e.bordered ? "border-b border-outline-variant" : ""]]) }, [C("div", tm, [
|
|
11075
11007
|
H(t.$slots, "navigation", {}, () => [e.navigationIcon ? (L(), b(s, {
|
|
11076
11008
|
key: 0,
|
|
11077
11009
|
icon: e.navigationIcon,
|
|
@@ -11081,14 +11013,14 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11081
11013
|
e.variant === "center" || e.variant === "small" ? (L(), S("h1", {
|
|
11082
11014
|
key: 0,
|
|
11083
11015
|
class: M(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", e.variant === "center" ? "justify-center" : ""])
|
|
11084
|
-
}, [H(t.$slots, "title", {}, () => [T(G(e.title), 1)])], 2)) : (L(), S("div",
|
|
11085
|
-
t.$slots.actions ? (L(), S("div",
|
|
11016
|
+
}, [H(t.$slots, "title", {}, () => [T(G(e.title), 1)])], 2)) : (L(), S("div", nm)),
|
|
11017
|
+
t.$slots.actions ? (L(), S("div", rm, [H(t.$slots, "actions")])) : x("", !0)
|
|
11086
11018
|
]), e.variant === "medium" || e.variant === "large" ? (L(), S("div", {
|
|
11087
11019
|
key: 0,
|
|
11088
11020
|
class: M(["px-4 pb-6", e.variant === "large" ? "pt-4" : "pt-1"])
|
|
11089
11021
|
}, [C("h1", { class: M(["text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [H(t.$slots, "title", {}, () => [T(G(e.title), 1)])], 2)], 2)) : x("", !0)], 2));
|
|
11090
11022
|
}
|
|
11091
|
-
}),
|
|
11023
|
+
}), am = { class: "mb-2 flex items-center justify-between" }, om = { class: "text-label-small text-on-surface-variant" }, sm = { class: "mb-1 text-title-medium font-medium text-on-surface" }, cm = { class: "mb-4 text-body-medium text-on-surface-variant" }, lm = { class: "mb-4 flex justify-center gap-1.5" }, um = { class: "flex justify-between" }, dm = { key: 1 }, fm = /* @__PURE__ */ D({
|
|
11092
11024
|
__name: "MTour",
|
|
11093
11025
|
props: {
|
|
11094
11026
|
modelValue: { type: Boolean },
|
|
@@ -11171,7 +11103,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11171
11103
|
class: "h-0 w-0",
|
|
11172
11104
|
style: N(l.value)
|
|
11173
11105
|
}, null, 4),
|
|
11174
|
-
C("div",
|
|
11106
|
+
C("div", am, [C("span", om, G(s.value + 1) + " / " + G(t.steps.length), 1), C("button", {
|
|
11175
11107
|
type: "button",
|
|
11176
11108
|
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",
|
|
11177
11109
|
onClick: H
|
|
@@ -11179,13 +11111,13 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11179
11111
|
name: "close",
|
|
11180
11112
|
size: 16
|
|
11181
11113
|
})])]),
|
|
11182
|
-
C("h3",
|
|
11183
|
-
C("p",
|
|
11184
|
-
C("div",
|
|
11114
|
+
C("h3", sm, G(d.value.title), 1),
|
|
11115
|
+
C("p", cm, G(d.value.content), 1),
|
|
11116
|
+
C("div", lm, [(L(!0), S(m, null, V(t.steps, (e, t) => (L(), S("div", {
|
|
11185
11117
|
key: t,
|
|
11186
11118
|
class: M(["h-1.5 rounded-full transition-all duration-200", t === s.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
11187
11119
|
}, null, 2))), 128))]),
|
|
11188
|
-
C("div",
|
|
11120
|
+
C("div", um, [p.value ? (L(), S("span", dm)) : (L(), b(e, {
|
|
11189
11121
|
key: 0,
|
|
11190
11122
|
variant: "text",
|
|
11191
11123
|
onClick: z
|
|
@@ -11200,19 +11132,19 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11200
11132
|
_: 1
|
|
11201
11133
|
})]));
|
|
11202
11134
|
}
|
|
11203
|
-
}),
|
|
11135
|
+
}), pm = { class: "flex items-stretch gap-2" }, mm = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, hm = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, gm = { class: "text-label-large font-medium text-on-surface" }, _m = { class: "text-label-small text-on-surface-variant" }, vm = {
|
|
11204
11136
|
key: 0,
|
|
11205
11137
|
class: "border-b border-outline-variant px-3 py-2"
|
|
11206
|
-
},
|
|
11138
|
+
}, ym = ["placeholder"], bm = {
|
|
11207
11139
|
class: "flex-1 overflow-y-auto",
|
|
11208
11140
|
style: { "max-height": "240px" }
|
|
11209
|
-
},
|
|
11141
|
+
}, xm = ["onClick"], Sm = { class: "flex-1 truncate text-body-medium text-on-surface" }, Cm = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, wm = { class: "flex flex-col items-center justify-center gap-1" }, Tm = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Em = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Dm = { class: "text-label-large font-medium text-on-surface" }, Om = { class: "text-label-small text-on-surface-variant" }, km = {
|
|
11210
11142
|
key: 0,
|
|
11211
11143
|
class: "border-b border-outline-variant px-3 py-2"
|
|
11212
|
-
},
|
|
11144
|
+
}, Am = ["placeholder"], jm = {
|
|
11213
11145
|
class: "flex-1 overflow-y-auto",
|
|
11214
11146
|
style: { "max-height": "240px" }
|
|
11215
|
-
},
|
|
11147
|
+
}, Mm = ["onClick"], Nm = { class: "flex-1 truncate text-body-medium text-on-surface" }, Pm = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Fm = /* @__PURE__ */ D({
|
|
11216
11148
|
__name: "MTransferList",
|
|
11217
11149
|
props: {
|
|
11218
11150
|
modelValue: {},
|
|
@@ -11270,16 +11202,16 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11270
11202
|
let e = p.value.map((e) => e.value);
|
|
11271
11203
|
a("update:modelValue", i.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
11272
11204
|
}
|
|
11273
|
-
return (t, r) => (L(), S("div",
|
|
11274
|
-
C("div",
|
|
11275
|
-
C("div",
|
|
11276
|
-
e.filterable ? (L(), S("div",
|
|
11205
|
+
return (t, r) => (L(), S("div", pm, [
|
|
11206
|
+
C("div", mm, [
|
|
11207
|
+
C("div", hm, [C("span", gm, G(e.sourceTitle ?? K(n).available), 1), C("span", _m, G(d.value.length), 1)]),
|
|
11208
|
+
e.filterable ? (L(), S("div", vm, [re(C("input", {
|
|
11277
11209
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
11278
11210
|
type: "text",
|
|
11279
11211
|
placeholder: e.searchPlaceholder ?? K(n).search,
|
|
11280
11212
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
11281
|
-
}, null, 8,
|
|
11282
|
-
C("div",
|
|
11213
|
+
}, null, 8, ym), [[ee, l.value]])])) : x("", !0),
|
|
11214
|
+
C("div", bm, [(L(!0), S(m, null, V(d.value, (e) => (L(), S("button", {
|
|
11283
11215
|
key: e.value,
|
|
11284
11216
|
type: "button",
|
|
11285
11217
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -11295,10 +11227,10 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11295
11227
|
size: 18,
|
|
11296
11228
|
class: "shrink-0 text-on-surface-variant"
|
|
11297
11229
|
}, null, 8, ["name"])) : x("", !0),
|
|
11298
|
-
C("span",
|
|
11299
|
-
], 8,
|
|
11230
|
+
C("span", Sm, G(e.label), 1)
|
|
11231
|
+
], 8, xm))), 128)), d.value.length ? x("", !0) : H(t.$slots, "source-empty", { key: 0 }, () => [C("p", Cm, G(e.emptyText ?? K(n).noItems), 1)])])
|
|
11300
11232
|
]),
|
|
11301
|
-
C("div",
|
|
11233
|
+
C("div", wm, [
|
|
11302
11234
|
E(s, {
|
|
11303
11235
|
icon: "keyboard_double_arrow_right",
|
|
11304
11236
|
label: e.moveAllRightLabel ?? K(n).moveAllRight,
|
|
@@ -11330,15 +11262,15 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11330
11262
|
onClick: T
|
|
11331
11263
|
}, null, 8, ["label", "disabled"])
|
|
11332
11264
|
]),
|
|
11333
|
-
C("div",
|
|
11334
|
-
C("div",
|
|
11335
|
-
e.filterable ? (L(), S("div",
|
|
11265
|
+
C("div", Tm, [
|
|
11266
|
+
C("div", Em, [C("span", Dm, G(e.targetTitle ?? K(n).selected), 1), C("span", Om, G(p.value.length), 1)]),
|
|
11267
|
+
e.filterable ? (L(), S("div", km, [re(C("input", {
|
|
11336
11268
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
11337
11269
|
type: "text",
|
|
11338
11270
|
placeholder: e.searchPlaceholder ?? K(n).search,
|
|
11339
11271
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
11340
|
-
}, null, 8,
|
|
11341
|
-
C("div",
|
|
11272
|
+
}, null, 8, Am), [[ee, u.value]])])) : x("", !0),
|
|
11273
|
+
C("div", jm, [(L(!0), S(m, null, V(p.value, (e) => (L(), S("button", {
|
|
11342
11274
|
key: e.value,
|
|
11343
11275
|
type: "button",
|
|
11344
11276
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -11354,18 +11286,18 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11354
11286
|
size: 18,
|
|
11355
11287
|
class: "shrink-0 text-on-surface-variant"
|
|
11356
11288
|
}, null, 8, ["name"])) : x("", !0),
|
|
11357
|
-
C("span",
|
|
11358
|
-
], 8,
|
|
11289
|
+
C("span", Nm, G(e.label), 1)
|
|
11290
|
+
], 8, Mm))), 128)), p.value.length ? x("", !0) : H(t.$slots, "target-empty", { key: 0 }, () => [C("p", Pm, G(e.emptyText ?? K(n).noItems), 1)])])
|
|
11359
11291
|
])
|
|
11360
11292
|
]));
|
|
11361
11293
|
}
|
|
11362
|
-
}),
|
|
11294
|
+
}), Im = ["aria-expanded", "aria-selected"], Lm = { class: "flex w-6 shrink-0 items-center justify-center" }, Rm = ["disabled"], zm = {
|
|
11363
11295
|
key: 2,
|
|
11364
11296
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
11365
|
-
},
|
|
11297
|
+
}, Bm = {
|
|
11366
11298
|
key: 0,
|
|
11367
11299
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
11368
|
-
},
|
|
11300
|
+
}, Vm = /* @__PURE__ */ D({
|
|
11369
11301
|
__name: "_MTreeNode",
|
|
11370
11302
|
props: {
|
|
11371
11303
|
node: {},
|
|
@@ -11410,7 +11342,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11410
11342
|
]),
|
|
11411
11343
|
onClick: u
|
|
11412
11344
|
}, [
|
|
11413
|
-
C("div",
|
|
11345
|
+
C("div", Lm, [r.value ? (L(), S("button", {
|
|
11414
11346
|
key: 0,
|
|
11415
11347
|
type: "button",
|
|
11416
11348
|
class: M(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", i.value ? "rotate-90" : ""]),
|
|
@@ -11419,7 +11351,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11419
11351
|
}, [E(f, {
|
|
11420
11352
|
name: "chevron_right",
|
|
11421
11353
|
size: 16
|
|
11422
|
-
})], 10,
|
|
11354
|
+
})], 10, Rm)) : x("", !0)]),
|
|
11423
11355
|
K(n).checkable.value ? (L(), S("div", {
|
|
11424
11356
|
key: 0,
|
|
11425
11357
|
class: "shrink-0",
|
|
@@ -11441,7 +11373,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11441
11373
|
class: M(["shrink-0 transition-colors", a.value ? "text-primary" : "text-on-surface-variant"])
|
|
11442
11374
|
}, null, 8, ["name", "class"])) : x("", !0),
|
|
11443
11375
|
C("span", { class: M(["min-w-0 flex-1 truncate text-body-medium transition-colors", a.value ? "font-medium text-primary" : "text-on-surface"]) }, [H(t.$slots, "label", { node: e.node }, () => [T(G(e.node.label), 1)])], 2),
|
|
11444
|
-
r.value && K(n).checkable.value ? (L(), S("span",
|
|
11376
|
+
r.value && K(n).checkable.value ? (L(), S("span", zm, G(s.value) + "/" + G(o.value.length), 1)) : x("", !0),
|
|
11445
11377
|
H(t.$slots, "trailing", { node: e.node })
|
|
11446
11378
|
], 2), E(g, {
|
|
11447
11379
|
onEnter: h,
|
|
@@ -11449,7 +11381,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11449
11381
|
onLeave: y,
|
|
11450
11382
|
onAfterLeave: D
|
|
11451
11383
|
}, {
|
|
11452
|
-
default: Z(() => [i.value && r.value ? (L(), S("div",
|
|
11384
|
+
default: Z(() => [i.value && r.value ? (L(), S("div", Bm, [(L(!0), S(m, null, V(e.node.children, (n) => (L(), b(Vm, {
|
|
11453
11385
|
key: n.id,
|
|
11454
11386
|
node: n,
|
|
11455
11387
|
depth: e.depth + 1
|
|
@@ -11458,15 +11390,15 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11458
11390
|
fn: Z((e) => [H(t.$slots, n, A({ ref_for: !0 }, e ?? {}))])
|
|
11459
11391
|
}))]), 1032, ["node", "depth"]))), 128))])) : x("", !0)]),
|
|
11460
11392
|
_: 3
|
|
11461
|
-
})], 8,
|
|
11393
|
+
})], 8, Im));
|
|
11462
11394
|
}
|
|
11463
|
-
}),
|
|
11395
|
+
}), Hm = {
|
|
11464
11396
|
role: "tree",
|
|
11465
11397
|
class: "flex flex-col"
|
|
11466
|
-
},
|
|
11398
|
+
}, Um = {
|
|
11467
11399
|
key: 1,
|
|
11468
11400
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
11469
|
-
},
|
|
11401
|
+
}, Wm = { class: "text-body-medium" }, Gm = /* @__PURE__ */ D({
|
|
11470
11402
|
__name: "MTree",
|
|
11471
11403
|
props: {
|
|
11472
11404
|
nodes: {},
|
|
@@ -11532,26 +11464,26 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11532
11464
|
return t({
|
|
11533
11465
|
expandAll: _,
|
|
11534
11466
|
collapseAll: y
|
|
11535
|
-
}), (t, n) => (L(), S("div",
|
|
11467
|
+
}), (t, n) => (L(), S("div", Hm, [e.nodes.length ? (L(!0), S(m, { key: 0 }, V(e.nodes, (e) => (L(), b(Vm, {
|
|
11536
11468
|
key: e.id,
|
|
11537
11469
|
node: e,
|
|
11538
11470
|
depth: 0
|
|
11539
11471
|
}, w({ _: 2 }, [V(t.$slots, (e, n) => ({
|
|
11540
11472
|
name: n,
|
|
11541
11473
|
fn: Z((e) => [H(t.$slots, n, A({ ref_for: !0 }, e ?? {}))])
|
|
11542
|
-
}))]), 1032, ["node"]))), 128)) : (L(), S("div",
|
|
11474
|
+
}))]), 1032, ["node"]))), 128)) : (L(), S("div", Um, [E(f, {
|
|
11543
11475
|
name: "account_tree",
|
|
11544
11476
|
size: 32,
|
|
11545
11477
|
class: "opacity-30"
|
|
11546
|
-
}), C("p",
|
|
11478
|
+
}), C("p", Wm, G(e.emptyText), 1)]))]));
|
|
11547
11479
|
}
|
|
11548
|
-
}),
|
|
11480
|
+
}), Km = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, qm = {
|
|
11549
11481
|
key: 0,
|
|
11550
11482
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
11551
|
-
},
|
|
11483
|
+
}, Jm = { class: "overflow-x-auto" }, Ym = { class: "w-full border-collapse" }, Xm = { class: "bg-surface-container-high" }, Zm = ["onClick"], Qm = ["onClick"], $m = {
|
|
11552
11484
|
key: 1,
|
|
11553
11485
|
class: "w-6 shrink-0"
|
|
11554
|
-
},
|
|
11486
|
+
}, eh = { key: 0 }, th = ["colspan"], nh = /* @__PURE__ */ D({
|
|
11555
11487
|
__name: "MTreeTable",
|
|
11556
11488
|
props: {
|
|
11557
11489
|
columns: {},
|
|
@@ -11606,10 +11538,10 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11606
11538
|
function d(e) {
|
|
11607
11539
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
11608
11540
|
}
|
|
11609
|
-
return (t, n) => (L(), S("div",
|
|
11541
|
+
return (t, n) => (L(), S("div", Km, [t.$slots.toolbar ? (L(), S("div", qm, [H(t.$slots, "toolbar", {
|
|
11610
11542
|
expandAll: l,
|
|
11611
11543
|
collapseAll: u
|
|
11612
|
-
})])) : x("", !0), C("div",
|
|
11544
|
+
})])) : x("", !0), C("div", Jm, [C("table", Ym, [C("thead", null, [C("tr", Xm, [(L(!0), S(m, null, V(e.columns, (t, n) => (L(), S("th", {
|
|
11613
11545
|
key: t.key,
|
|
11614
11546
|
style: N(t.width ? { width: t.width } : void 0),
|
|
11615
11547
|
class: M([
|
|
@@ -11640,7 +11572,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11640
11572
|
}, [E(f, {
|
|
11641
11573
|
name: "chevron_right",
|
|
11642
11574
|
size: 18
|
|
11643
|
-
})], 10,
|
|
11575
|
+
})], 10, Qm)) : (L(), S("span", $m)), H(t.$slots, `cell-${r.key}`, {
|
|
11644
11576
|
row: n.row,
|
|
11645
11577
|
value: n.row[r.key],
|
|
11646
11578
|
depth: n.depth
|
|
@@ -11649,19 +11581,19 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11649
11581
|
row: n.row,
|
|
11650
11582
|
value: n.row[r.key],
|
|
11651
11583
|
depth: n.depth
|
|
11652
|
-
}, () => [T(G(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
11584
|
+
}, () => [T(G(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10, Zm))), 128)), c.value.length ? x("", !0) : (L(), S("tr", eh, [C("td", {
|
|
11653
11585
|
colspan: e.columns.length,
|
|
11654
11586
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
11655
11587
|
}, [E(f, {
|
|
11656
11588
|
name: "account_tree",
|
|
11657
11589
|
size: 36,
|
|
11658
11590
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
11659
|
-
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
11591
|
+
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, th)]))])])])]));
|
|
11660
11592
|
}
|
|
11661
|
-
}),
|
|
11593
|
+
}), rh = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, ih = { class: "flex bg-surface-container-high" }, ah = ["onClick"], oh = { class: "inline-flex items-center gap-1" }, sh = {
|
|
11662
11594
|
key: 0,
|
|
11663
11595
|
class: "inline-flex"
|
|
11664
|
-
},
|
|
11596
|
+
}, ch = ["onClick"], lh = { class: "truncate" }, uh = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, dh = { class: "text-label-small text-on-surface-variant" }, fh = /* @__PURE__ */ D({
|
|
11665
11597
|
__name: "MVirtualTable",
|
|
11666
11598
|
props: {
|
|
11667
11599
|
columns: {},
|
|
@@ -11707,8 +11639,8 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11707
11639
|
function y(e) {
|
|
11708
11640
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
11709
11641
|
}
|
|
11710
|
-
return (t, n) => (L(), S("div",
|
|
11711
|
-
C("div",
|
|
11642
|
+
return (t, n) => (L(), S("div", rh, [
|
|
11643
|
+
C("div", ih, [(L(!0), S(m, null, V(e.columns, (e) => (L(), S("div", {
|
|
11712
11644
|
key: e.key,
|
|
11713
11645
|
style: N({
|
|
11714
11646
|
width: e.width || "auto",
|
|
@@ -11720,7 +11652,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11720
11652
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
11721
11653
|
]),
|
|
11722
11654
|
onClick: (t) => e.sortable ? l(e.key) : void 0
|
|
11723
|
-
}, [C("span",
|
|
11655
|
+
}, [C("span", oh, [T(G(e.label) + " ", 1), e.sortable ? (L(), S("span", sh, [s.value === e.key && c.value === "asc" ? (L(), b(f, {
|
|
11724
11656
|
key: 0,
|
|
11725
11657
|
name: "arrow_upward",
|
|
11726
11658
|
size: 14,
|
|
@@ -11735,7 +11667,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11735
11667
|
name: "unfold_more",
|
|
11736
11668
|
size: 14,
|
|
11737
11669
|
class: "opacity-30"
|
|
11738
|
-
}))])) : x("", !0)])], 14,
|
|
11670
|
+
}))])) : x("", !0)])], 14, ah))), 128))]),
|
|
11739
11671
|
C("div", {
|
|
11740
11672
|
ref_key: "scrollEl",
|
|
11741
11673
|
ref: i,
|
|
@@ -11763,11 +11695,11 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11763
11695
|
}, [H(t.$slots, `cell-${e.key}`, {
|
|
11764
11696
|
row: n,
|
|
11765
11697
|
value: n[e.key]
|
|
11766
|
-
}, () => [C("span",
|
|
11767
|
-
C("div",
|
|
11698
|
+
}, () => [C("span", lh, G(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, ch))), 128))], 4)], 36),
|
|
11699
|
+
C("div", uh, [C("span", dh, [T(G(u.value.length.toLocaleString()) + " filas ", 1), p.value.end - p.value.start < u.value.length ? (L(), S(m, { key: 0 }, [T(" · mostrando " + G(p.value.start + 1) + "–" + G(p.value.end), 1)], 64)) : x("", !0)])])
|
|
11768
11700
|
]));
|
|
11769
11701
|
}
|
|
11770
|
-
}),
|
|
11702
|
+
}), ph = { class: "text-title-small font-medium text-on-surface truncate flex-1" }, mh = { class: "flex-1 overflow-auto" }, hh = ["onMousedown", "onTouchstart"], gh = /* @__PURE__ */ D({
|
|
11771
11703
|
__name: "MWindow",
|
|
11772
11704
|
props: {
|
|
11773
11705
|
modelValue: { type: Boolean },
|
|
@@ -11900,27 +11832,27 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11900
11832
|
let oe = [
|
|
11901
11833
|
{
|
|
11902
11834
|
dir: "s",
|
|
11903
|
-
class: "bottom-0 left-[
|
|
11835
|
+
class: "bottom-0 left-[20px] right-[20px] h-[8px]",
|
|
11904
11836
|
cursor: "cursor-ns-resize"
|
|
11905
11837
|
},
|
|
11906
11838
|
{
|
|
11907
11839
|
dir: "e",
|
|
11908
|
-
class: "top-[
|
|
11840
|
+
class: "top-[20px] right-0 bottom-[20px] w-[8px]",
|
|
11909
11841
|
cursor: "cursor-ew-resize"
|
|
11910
11842
|
},
|
|
11911
11843
|
{
|
|
11912
11844
|
dir: "w",
|
|
11913
|
-
class: "top-[
|
|
11845
|
+
class: "top-[20px] left-0 bottom-[20px] w-[8px]",
|
|
11914
11846
|
cursor: "cursor-ew-resize"
|
|
11915
11847
|
},
|
|
11916
11848
|
{
|
|
11917
11849
|
dir: "se",
|
|
11918
|
-
class: "bottom-0 right-0 w-[
|
|
11850
|
+
class: "bottom-0 right-0 w-[20px] h-[20px]",
|
|
11919
11851
|
cursor: "cursor-nwse-resize"
|
|
11920
11852
|
},
|
|
11921
11853
|
{
|
|
11922
11854
|
dir: "sw",
|
|
11923
|
-
class: "bottom-0 left-0 w-[
|
|
11855
|
+
class: "bottom-0 left-0 w-[20px] h-[20px]",
|
|
11924
11856
|
cursor: "cursor-nesw-resize"
|
|
11925
11857
|
}
|
|
11926
11858
|
];
|
|
@@ -11942,7 +11874,7 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11942
11874
|
name: e.icon,
|
|
11943
11875
|
size: 18,
|
|
11944
11876
|
class: "text-on-surface-variant"
|
|
11945
|
-
}, null, 8, ["name"])) : x("", !0), C("span",
|
|
11877
|
+
}, null, 8, ["name"])) : x("", !0), C("span", ph, G(e.title), 1)]),
|
|
11946
11878
|
H(t.$slots, "actions"),
|
|
11947
11879
|
e.minimizable ? (L(), S("button", {
|
|
11948
11880
|
key: 0,
|
|
@@ -11961,17 +11893,17 @@ var Td = /*#__PURE__*/ p(Sd, [["render", wd]]), Ed = ["disabled"], Dd = ["disabl
|
|
|
11961
11893
|
size: 16
|
|
11962
11894
|
})])) : x("", !0)
|
|
11963
11895
|
], 34),
|
|
11964
|
-
re(C("div",
|
|
11896
|
+
re(C("div", mh, [H(t.$slots, "default")], 512), [[te, !c.value]]),
|
|
11965
11897
|
e.resizable && !c.value ? (L(), S(m, { key: 0 }, V(oe, (e) => C("div", {
|
|
11966
11898
|
key: e.dir,
|
|
11967
11899
|
class: M(["absolute", [e.class, e.cursor]]),
|
|
11968
11900
|
onMousedown: (t) => Y(t, e.dir),
|
|
11969
11901
|
onTouchstart: (t) => Y(t, e.dir)
|
|
11970
|
-
}, null, 42,
|
|
11902
|
+
}, null, 42, hh)), 64)) : x("", !0)
|
|
11971
11903
|
], 36)) : x("", !0);
|
|
11972
11904
|
}
|
|
11973
11905
|
});
|
|
11974
11906
|
//#endregion
|
|
11975
|
-
export { ot as MAbsolute, ft as MAlert, It as MAppBar, Bt as MAppLayout, Vt as MAspectRatio, Mt as MAutocomplete, Ht as MAvatar, Gt as MBadge, Zt as MBottomSheet, Qt as MBox, tn as MBreadcrumbs, e as MButton, on as MButtonGroup, vn as MCalendar, Tn as MCard, Mn as MCarousel, Nn as MCenter, In as MChatBubble, zn as MCheckbox, Vn as MChip,
|
|
11907
|
+
export { ot as MAbsolute, ft as MAlert, It as MAppBar, Bt as MAppLayout, Vt as MAspectRatio, Mt as MAutocomplete, Ht as MAvatar, Gt as MBadge, Zt as MBottomSheet, Qt as MBox, tn as MBreadcrumbs, e as MButton, on as MButtonGroup, vn as MCalendar, Tn as MCard, Mn as MCarousel, Nn as MCenter, In as MChatBubble, zn as MCheckbox, Vn as MChip, Yl as MCircleProgressBar, Qn as MColorPicker, ur as MColorPickerModal, wr as MCommandPalette, Er as MConfirmDialog, Dr as MContainer, Or as MContextMenu, ii as MDataTable, hi as MDatePicker, ki as MDatePickerModal, Vi as MDateRangePicker, ra as MDateRangePickerModal, i as MDialog, sa as MDivider, pa as MDragDropList, ha as MEmoji, xa as MEmojiButton, ka as MEmojiSelector, Aa as MEmptyState, La as MExpansionPanel, Ha as MFab, io as MFileUpload, ao as MFixed, fo as MFlex, uo as MFooter, po as MFullscreen, mo as MGrid, bo as MHotkeys, f as MIcon, s as MIconButton, wo as MInfiniteScroll, No as MJsonViewer, Uo as MKanban, Wo as MList, is as MListItem, as as MListSubheader, ls as MLoadingOverlay, xs as MMaskField, us as MMasonry, o as MMenu, ms as MMenuDivider, u as MMenuItem, Ws as MMultiAutocomplete, hc as MMultiSelect, vc as MNavigationBar, sl as MNavigationDrawer, dl as MNavigationRail, Ec as MNumberField, pl as MOverlay, jr as MPagination, Al as MProgressBar, eu as MRadio, ru as MRadioGroup, au as MRating, lu as MRelative, uu as MResponsive, _u as MResult, Nu as MScheduler, Pu as MScrollable, zu as MSection, Hu as MSegmentedButton, od as MSelect, fd as MSideSheet, md as MSkeleton, yd as MSlider, ve as MSnackbar, Cd as MSpacer, a as MSpinner, Dd as MSplitButton, Od as MSplitter, Gd as MSpotlightSearch, Kd as MStack, tf as MStatCard, vf as MStepper, yf as MSticky, xf as MSubtitle, qo as MSwitch, Uf as MTable, ip as MTabs, Zf as MTagInput, bf as MText, c as MTextField, Op as MTimePicker, Kp as MTimePickerModal, gp as MTimeline, qp as MTitle, em as MToolbar, Zp as MTooltip, im as MTopAppBar, fm as MTour, Fm as MTransferList, Gm as MTree, nh as MTreeTable, fh as MVirtualTable, gh as MWindow, _a as allEmojis, ae as createM3UI, n as defaultLocale, ga as emojiCategories, le as palettes, va as randomEmoji, de as useColorPalette, l as useDebounce, Re as useDevice, t as useFieldBg, r as useLocale, at as useNotification, ce as useTheme, Ne as useToast };
|
|
11976
11908
|
|
|
11977
11909
|
//# sourceMappingURL=m3ui.js.map
|