@m3ui-vue/m3ui-vue 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MDataTable.vue.d.ts +6 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +740 -716
- package/dist/m3ui.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MDataTable.vue +78 -7
- package/src/components/MNavigationDrawer.vue +1 -1
package/dist/m3ui.js
CHANGED
|
@@ -2661,10 +2661,10 @@ var ot = /* @__PURE__ */ D({
|
|
|
2661
2661
|
}, Rr = {
|
|
2662
2662
|
key: 0,
|
|
2663
2663
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
2664
|
-
}, zr = { class: "text-body-small text-on-surface" }, Br = { class: "
|
|
2664
|
+
}, zr = { class: "text-body-small text-on-surface" }, Br = { class: "w-full border-collapse" }, Vr = { class: "bg-surface-container-high" }, Hr = ["onClick"], Ur = { class: "inline-flex items-center gap-1" }, Wr = {
|
|
2665
2665
|
key: 0,
|
|
2666
2666
|
class: "inline-flex"
|
|
2667
|
-
},
|
|
2667
|
+
}, Gr = ["onPointerdown"], Kr = { key: 1 }, qr = ["colspan"], Jr = { class: "text-body-medium text-on-surface-variant" }, Yr = ["onClick"], Xr = ["onClick"], Zr = { key: 0 }, Qr = ["colspan"], $r = { class: "dt-expand-body" }, ei = { class: "px-6 py-4" }, ti = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, ni = { class: "text-label-small text-on-surface-variant" }, ri = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
2668
2668
|
__name: "MDataTable",
|
|
2669
2669
|
props: {
|
|
2670
2670
|
columns: {},
|
|
@@ -2722,7 +2722,8 @@ var ot = /* @__PURE__ */ D({
|
|
|
2722
2722
|
expandLabel: {},
|
|
2723
2723
|
columnsLabel: {},
|
|
2724
2724
|
exportLabel: {},
|
|
2725
|
-
noGroupText: {}
|
|
2725
|
+
noGroupText: {},
|
|
2726
|
+
minHeight: { default: "20rem" }
|
|
2726
2727
|
},
|
|
2727
2728
|
emits: [
|
|
2728
2729
|
"update:modelValue",
|
|
@@ -2846,29 +2847,46 @@ var ot = /* @__PURE__ */ D({
|
|
|
2846
2847
|
function le(e, t) {
|
|
2847
2848
|
return `${a[(e * 3 + t) % a.length]}%`;
|
|
2848
2849
|
}
|
|
2849
|
-
let ue =
|
|
2850
|
-
function
|
|
2851
|
-
|
|
2850
|
+
let ue = v(() => o.dense ? 36 : 48), de = v(() => o.dense ? 40 : 48);
|
|
2851
|
+
function fe(e) {
|
|
2852
|
+
let t = e.trim(), n = /^(\d+(?:\.\d+)?)rem$/.exec(t);
|
|
2853
|
+
if (n) return parseFloat(n[1]) * 16;
|
|
2854
|
+
let r = /^(\d+(?:\.\d+)?)px$/.exec(t);
|
|
2855
|
+
return r ? parseFloat(r[1]) : null;
|
|
2856
|
+
}
|
|
2857
|
+
let pe = v(() => {
|
|
2858
|
+
let e = fe(o.minHeight);
|
|
2859
|
+
if (e !== null) {
|
|
2860
|
+
let t = Math.ceil((e - de.value) / ue.value);
|
|
2861
|
+
return Math.min(Math.max(t, 1), o.perPage);
|
|
2862
|
+
}
|
|
2863
|
+
return Math.min(3, o.perPage);
|
|
2864
|
+
}), me = v(() => {
|
|
2865
|
+
let e = fe(o.minHeight);
|
|
2866
|
+
if (e !== null) return `${Math.max(e - de.value, 0)}px`;
|
|
2867
|
+
}), he = null, ge = 0, _e = 0;
|
|
2868
|
+
function ve(e, t) {
|
|
2869
|
+
e.preventDefault(), he = t.key, ge = e.clientX, _e = D.value[t.key] ?? 150, window.addEventListener("pointermove", ye), window.addEventListener("pointerup", be);
|
|
2852
2870
|
}
|
|
2853
|
-
function
|
|
2854
|
-
if (!
|
|
2855
|
-
let t = Math.max(60,
|
|
2871
|
+
function ye(e) {
|
|
2872
|
+
if (!he) return;
|
|
2873
|
+
let t = Math.max(60, _e + e.clientX - ge);
|
|
2856
2874
|
D.value = {
|
|
2857
2875
|
...D.value,
|
|
2858
|
-
[
|
|
2876
|
+
[he]: t
|
|
2859
2877
|
};
|
|
2860
2878
|
}
|
|
2861
|
-
function
|
|
2862
|
-
|
|
2879
|
+
function be() {
|
|
2880
|
+
he = null, window.removeEventListener("pointermove", ye), window.removeEventListener("pointerup", be);
|
|
2863
2881
|
}
|
|
2864
|
-
function
|
|
2882
|
+
function xe() {
|
|
2865
2883
|
let e = k.value, t = e.map((e) => e.label).join(","), n = P.value.map((t) => e.map((e) => {
|
|
2866
2884
|
let n = String(t[e.key] ?? "");
|
|
2867
2885
|
return n.includes(",") || n.includes("\"") ? `"${n.replace(/"/g, "\"\"")}"` : n;
|
|
2868
2886
|
}).join(",")).join("\n"), r = new Blob([`${t}\n${n}`], { type: "text/csv" }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
2869
2887
|
a.href = i, a.download = "data.csv", a.click(), URL.revokeObjectURL(i);
|
|
2870
2888
|
}
|
|
2871
|
-
function
|
|
2889
|
+
function Se(e) {
|
|
2872
2890
|
let t = D.value[e.key];
|
|
2873
2891
|
return t ? {
|
|
2874
2892
|
width: `${t}px`,
|
|
@@ -2928,10 +2946,13 @@ var ot = /* @__PURE__ */ D({
|
|
|
2928
2946
|
icon: "download",
|
|
2929
2947
|
label: e.exportLabel ?? K(i).exportCsv,
|
|
2930
2948
|
size: 36,
|
|
2931
|
-
onClick:
|
|
2949
|
+
onClick: xe
|
|
2932
2950
|
}, null, 8, ["label"])) : x("", !0)
|
|
2933
2951
|
])) : x("", !0),
|
|
2934
|
-
C("div",
|
|
2952
|
+
C("div", {
|
|
2953
|
+
class: "overflow-x-auto",
|
|
2954
|
+
style: N({ minHeight: e.minHeight })
|
|
2955
|
+
}, [C("table", Br, [C("thead", { class: M(e.stickyHeader ? "sticky top-0 z-1" : "") }, [C("tr", Vr, [
|
|
2935
2956
|
d.value ? (L(), S("th", {
|
|
2936
2957
|
key: 0,
|
|
2937
2958
|
class: M(["w-10 px-2", e.dense ? "py-2" : "py-3"])
|
|
@@ -2946,7 +2967,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2946
2967
|
}, null, 8, ["model-value", "indeterminate"])], 2)) : x("", !0),
|
|
2947
2968
|
(L(!0), S(m, null, V(k.value, (t) => (L(), S("th", {
|
|
2948
2969
|
key: t.key,
|
|
2949
|
-
style: N(
|
|
2970
|
+
style: N(Se(t)),
|
|
2950
2971
|
class: M([
|
|
2951
2972
|
"relative whitespace-nowrap text-label-medium font-medium text-on-surface-variant",
|
|
2952
2973
|
e.dense ? "px-3 py-2" : "px-4 py-3",
|
|
@@ -2954,7 +2975,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
2954
2975
|
t.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
2955
2976
|
]),
|
|
2956
2977
|
onClick: (e) => t.sortable ? A(t.key) : void 0
|
|
2957
|
-
}, [C("span",
|
|
2978
|
+
}, [C("span", Ur, [T(G(t.label) + " ", 1), t.sortable ? (L(), S("span", Wr, [p.value === t.key && h.value === "asc" ? (L(), b(r, {
|
|
2958
2979
|
key: 0,
|
|
2959
2980
|
name: "arrow_upward",
|
|
2960
2981
|
size: 14,
|
|
@@ -2972,13 +2993,13 @@ var ot = /* @__PURE__ */ D({
|
|
|
2972
2993
|
}))])) : x("", !0)]), t.resizable ? (L(), S("div", {
|
|
2973
2994
|
key: 0,
|
|
2974
2995
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
2975
|
-
onPointerdown: (e) =>
|
|
2976
|
-
}, null, 40,
|
|
2996
|
+
onPointerdown: (e) => ve(e, t)
|
|
2997
|
+
}, null, 40, Gr)) : x("", !0)], 14, Hr))), 128)),
|
|
2977
2998
|
u.value ? (L(), S("th", {
|
|
2978
2999
|
key: 2,
|
|
2979
3000
|
class: M(["w-1 px-4", e.dense ? "py-2" : "py-3"])
|
|
2980
3001
|
}, null, 2)) : x("", !0)
|
|
2981
|
-
])], 2), C("tbody", null, [e.loading ? (L(!0), S(m, { key: 0 }, V(
|
|
3002
|
+
])], 2), C("tbody", null, [e.loading ? (L(!0), S(m, { key: 0 }, V(pe.value, (t) => (L(), S("tr", {
|
|
2982
3003
|
key: `sk-${t}`,
|
|
2983
3004
|
class: "border-t border-outline-variant"
|
|
2984
3005
|
}, [
|
|
@@ -3001,14 +3022,17 @@ var ot = /* @__PURE__ */ D({
|
|
|
3001
3022
|
key: 2,
|
|
3002
3023
|
class: M(e.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
3003
3024
|
}, [...n[7] ||= [C("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : x("", !0)
|
|
3004
|
-
]))), 128)) : R.value.length === 0 ? (L(), S("tr",
|
|
3025
|
+
]))), 128)) : R.value.length === 0 ? (L(), S("tr", Kr, [C("td", {
|
|
3005
3026
|
colspan: k.value.length + se.value,
|
|
3006
|
-
class: "border-t border-outline-variant px-4
|
|
3027
|
+
class: "border-t border-outline-variant px-4 text-center"
|
|
3028
|
+
}, [C("div", {
|
|
3029
|
+
class: "flex flex-col items-center justify-center py-6",
|
|
3030
|
+
style: N({ minHeight: me.value })
|
|
3007
3031
|
}, [H(t.$slots, "empty", {}, () => [E(r, {
|
|
3008
3032
|
name: "search_off",
|
|
3009
3033
|
size: 36,
|
|
3010
3034
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
3011
|
-
}), C("p",
|
|
3035
|
+
}), C("p", Jr, G(e.emptyText ?? K(i).noResults), 1)], !0)], 4)], 8, qr)])) : (L(!0), S(m, { key: 2 }, V(R.value, (r) => (L(), S(m, { key: q(r) }, [C("tr", {
|
|
3012
3036
|
class: M([
|
|
3013
3037
|
"border-t border-outline-variant transition-colors duration-100",
|
|
3014
3038
|
"hover:bg-on-surface/4",
|
|
@@ -3040,7 +3064,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3040
3064
|
}, [E(zn, {
|
|
3041
3065
|
"model-value": J(r),
|
|
3042
3066
|
"onUpdate:modelValue": (e) => te(r)
|
|
3043
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
3067
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, Xr)) : x("", !0),
|
|
3044
3068
|
(L(!0), S(m, null, V(k.value, (n) => (L(), S("td", {
|
|
3045
3069
|
key: n.key,
|
|
3046
3070
|
class: M([
|
|
@@ -3058,11 +3082,11 @@ var ot = /* @__PURE__ */ D({
|
|
|
3058
3082
|
class: M(["text-right", e.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
3059
3083
|
onClick: n[4] ||= Q(() => {}, ["stop"])
|
|
3060
3084
|
}, [H(t.$slots, "row-actions", { row: r }, void 0, !0)], 2)) : x("", !0)
|
|
3061
|
-
], 10,
|
|
3085
|
+
], 10, Yr), d.value ? (L(), S("tr", Zr, [C("td", {
|
|
3062
3086
|
colspan: k.value.length + se.value,
|
|
3063
3087
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest p-0"
|
|
3064
|
-
}, [C("div", { class: M(["dt-expand-grid", oe(r) ? "dt-expand-open" : ""]) }, [C("div",
|
|
3065
|
-
C("div",
|
|
3088
|
+
}, [C("div", { class: M(["dt-expand-grid", oe(r) ? "dt-expand-open" : ""]) }, [C("div", $r, [C("div", ei, [H(t.$slots, "row-expand", { row: r }, void 0, !0)])])], 2)], 8, Qr)])) : x("", !0)], 64))), 128))])])], 4),
|
|
3089
|
+
C("div", ti, [C("span", ni, G(I.value) + " " + G(e.recordsText ?? K(i).recordCount) + G(I.value === 1 ? "" : "s"), 1), E(jr, {
|
|
3066
3090
|
page: j.value,
|
|
3067
3091
|
"per-page": e.perPage,
|
|
3068
3092
|
total: I.value,
|
|
@@ -3074,19 +3098,19 @@ var ot = /* @__PURE__ */ D({
|
|
|
3074
3098
|
])])
|
|
3075
3099
|
]));
|
|
3076
3100
|
}
|
|
3077
|
-
}), [["__scopeId", "data-v-
|
|
3101
|
+
}), [["__scopeId", "data-v-042ce4d5"]]), ii = { class: "flex flex-col gap-1" }, ai = {
|
|
3078
3102
|
key: 0,
|
|
3079
3103
|
class: "flex-1 text-on-surface"
|
|
3080
|
-
},
|
|
3104
|
+
}, oi = {
|
|
3081
3105
|
key: 1,
|
|
3082
3106
|
class: "flex-1 text-on-surface-variant"
|
|
3083
|
-
},
|
|
3107
|
+
}, si = {
|
|
3084
3108
|
key: 0,
|
|
3085
3109
|
class: "px-4 text-body-small text-error"
|
|
3086
|
-
},
|
|
3110
|
+
}, ci = {
|
|
3087
3111
|
key: 1,
|
|
3088
3112
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
3089
|
-
},
|
|
3113
|
+
}, li = { class: "mb-3 flex items-center justify-between" }, ui = { class: "text-title-small font-medium capitalize text-on-surface" }, di = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, fi = { class: "grid grid-cols-7 gap-0.5" }, pi = ["disabled", "onClick"], mi = /* @__PURE__ */ D({
|
|
3090
3114
|
__name: "MDatePicker",
|
|
3091
3115
|
props: {
|
|
3092
3116
|
modelValue: {},
|
|
@@ -3203,7 +3227,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3203
3227
|
e ? (H(), setTimeout(() => document.addEventListener("mousedown", U), 0)) : document.removeEventListener("mousedown", U);
|
|
3204
3228
|
}), F(() => window.addEventListener("scroll", W, !0)), I(() => {
|
|
3205
3229
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", U);
|
|
3206
|
-
}), (t, n) => (L(), S("div",
|
|
3230
|
+
}), (t, n) => (L(), S("div", ii, [
|
|
3207
3231
|
C("div", {
|
|
3208
3232
|
ref_key: "triggerEl",
|
|
3209
3233
|
ref: u,
|
|
@@ -3219,7 +3243,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3219
3243
|
size: 20,
|
|
3220
3244
|
class: "shrink-0 text-on-surface-variant"
|
|
3221
3245
|
}),
|
|
3222
|
-
z.value ? (L(), S("span",
|
|
3246
|
+
z.value ? (L(), S("span", ai, G(z.value), 1)) : (L(), S("span", oi, G(e.placeholder || e.label || K(o).selectDate), 1)),
|
|
3223
3247
|
e.modelValue ? (L(), b(r, {
|
|
3224
3248
|
key: 2,
|
|
3225
3249
|
name: "close",
|
|
@@ -3231,7 +3255,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3231
3255
|
key: 0,
|
|
3232
3256
|
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"])
|
|
3233
3257
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
3234
|
-
e.error && e.errorLabel ? (L(), S("p",
|
|
3258
|
+
e.error && e.errorLabel ? (L(), S("p", si, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", ci, G(e.hint), 1)) : x("", !0),
|
|
3235
3259
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
3236
3260
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
3237
3261
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -3245,14 +3269,14 @@ var ot = /* @__PURE__ */ D({
|
|
|
3245
3269
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
3246
3270
|
style: N(f.value)
|
|
3247
3271
|
}, [
|
|
3248
|
-
C("div",
|
|
3272
|
+
C("div", li, [
|
|
3249
3273
|
E(l, {
|
|
3250
3274
|
icon: "chevron_left",
|
|
3251
3275
|
label: e.prevMonthLabel ?? K(o).previousMonth,
|
|
3252
3276
|
size: 36,
|
|
3253
3277
|
onClick: A
|
|
3254
3278
|
}, null, 8, ["label"]),
|
|
3255
|
-
C("span",
|
|
3279
|
+
C("span", ui, G(w.value), 1),
|
|
3256
3280
|
E(l, {
|
|
3257
3281
|
icon: "chevron_right",
|
|
3258
3282
|
label: e.nextMonthLabel ?? K(o).nextMonth,
|
|
@@ -3260,29 +3284,29 @@ var ot = /* @__PURE__ */ D({
|
|
|
3260
3284
|
onClick: j
|
|
3261
3285
|
}, null, 8, ["label"])
|
|
3262
3286
|
]),
|
|
3263
|
-
C("div",
|
|
3287
|
+
C("div", di, [(L(!0), S(m, null, V(K(y), (e) => (L(), S("span", {
|
|
3264
3288
|
key: e,
|
|
3265
3289
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3266
3290
|
}, G(e), 1))), 128))]),
|
|
3267
|
-
C("div",
|
|
3291
|
+
C("div", fi, [(L(!0), S(m, null, V(T.value, (t, n) => (L(), S("button", {
|
|
3268
3292
|
key: n,
|
|
3269
3293
|
type: "button",
|
|
3270
3294
|
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"]]),
|
|
3271
3295
|
disabled: t.disabled,
|
|
3272
3296
|
onClick: (e) => P(t)
|
|
3273
|
-
}, G(t.date), 11,
|
|
3297
|
+
}, G(t.date), 11, pi))), 128))])
|
|
3274
3298
|
], 4)) : x("", !0)]),
|
|
3275
3299
|
_: 1
|
|
3276
3300
|
})]))
|
|
3277
3301
|
]));
|
|
3278
3302
|
}
|
|
3279
|
-
}),
|
|
3303
|
+
}), hi = { class: "dp-box w-[360px] rounded-[28px] bg-surface-container-high shadow-elevation-3" }, gi = { class: "px-6 pt-6 pb-4" }, _i = { class: "mb-3 text-label-medium text-on-surface-variant" }, vi = { class: "flex items-center justify-between" }, yi = { class: "text-headline-medium font-medium capitalize text-on-surface" }, bi = {
|
|
3280
3304
|
key: 0,
|
|
3281
3305
|
class: "px-4 pt-3 pb-2"
|
|
3282
|
-
},
|
|
3306
|
+
}, xi = { class: "mb-2 flex items-center justify-between" }, Si = { class: "text-title-small font-medium capitalize text-on-surface" }, Ci = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, wi = { class: "grid grid-cols-7 gap-0.5" }, Ti = ["disabled", "onClick"], Ei = {
|
|
3283
3307
|
key: 1,
|
|
3284
3308
|
class: "px-6 py-6"
|
|
3285
|
-
},
|
|
3309
|
+
}, Di = { class: "flex justify-end gap-2 px-6 pb-4" }, Oi = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
3286
3310
|
__name: "MDatePickerModal",
|
|
3287
3311
|
props: {
|
|
3288
3312
|
modelValue: { default: null },
|
|
@@ -3393,22 +3417,22 @@ var ot = /* @__PURE__ */ D({
|
|
|
3393
3417
|
key: 0,
|
|
3394
3418
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
3395
3419
|
onClick: Q(I, ["self"])
|
|
3396
|
-
}, [C("div",
|
|
3397
|
-
C("div",
|
|
3420
|
+
}, [C("div", hi, [
|
|
3421
|
+
C("div", gi, [C("p", _i, G(e.title || K(a).selectDate), 1), C("div", vi, [C("span", yi, G(j.value), 1), E(l, {
|
|
3398
3422
|
icon: s.value === "calendar" ? "edit" : "calendar_today",
|
|
3399
3423
|
label: s.value === "calendar" ? "Switch to input" : "Switch to calendar",
|
|
3400
3424
|
onClick: n[0] ||= (e) => s.value = s.value === "calendar" ? "input" : "calendar"
|
|
3401
3425
|
}, null, 8, ["icon", "label"])])]),
|
|
3402
3426
|
n[4] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
3403
|
-
s.value === "calendar" ? (L(), S("div",
|
|
3404
|
-
C("div",
|
|
3427
|
+
s.value === "calendar" ? (L(), S("div", bi, [
|
|
3428
|
+
C("div", xi, [
|
|
3405
3429
|
E(l, {
|
|
3406
3430
|
icon: "chevron_left",
|
|
3407
3431
|
label: K(a).previousMonth,
|
|
3408
3432
|
size: 36,
|
|
3409
3433
|
onClick: O
|
|
3410
3434
|
}, null, 8, ["label"]),
|
|
3411
|
-
C("span",
|
|
3435
|
+
C("span", Si, G(p.value), 1),
|
|
3412
3436
|
E(l, {
|
|
3413
3437
|
icon: "chevron_right",
|
|
3414
3438
|
label: K(a).nextMonth,
|
|
@@ -3416,18 +3440,18 @@ var ot = /* @__PURE__ */ D({
|
|
|
3416
3440
|
onClick: k
|
|
3417
3441
|
}, null, 8, ["label"])
|
|
3418
3442
|
]),
|
|
3419
|
-
C("div",
|
|
3443
|
+
C("div", Ci, [(L(!0), S(m, null, V(f.value, (e) => (L(), S("span", {
|
|
3420
3444
|
key: e,
|
|
3421
3445
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3422
3446
|
}, G(e), 1))), 128))]),
|
|
3423
|
-
C("div",
|
|
3447
|
+
C("div", wi, [(L(!0), S(m, null, V(_.value, (e, t) => (L(), S("button", {
|
|
3424
3448
|
key: t,
|
|
3425
3449
|
type: "button",
|
|
3426
3450
|
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 === c.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"]]),
|
|
3427
3451
|
disabled: e.disabled,
|
|
3428
3452
|
onClick: (t) => A(e)
|
|
3429
|
-
}, G(e.date), 11,
|
|
3430
|
-
])) : (L(), S("div",
|
|
3453
|
+
}, G(e.date), 11, Ti))), 128))])
|
|
3454
|
+
])) : (L(), S("div", Ei, [n[2] ||= C("label", { class: "mb-2 block text-label-medium text-on-surface-variant" }, "Date (DD/MM/YYYY)", -1), re(C("input", {
|
|
3431
3455
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
3432
3456
|
type: "text",
|
|
3433
3457
|
placeholder: "23/06/2026",
|
|
@@ -3436,7 +3460,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3436
3460
|
onKeydown: ie(F, ["enter"]),
|
|
3437
3461
|
onBlur: F
|
|
3438
3462
|
}, null, 544), [[ee, d.value]])])),
|
|
3439
|
-
C("div",
|
|
3463
|
+
C("div", Di, [E(i, {
|
|
3440
3464
|
variant: "text",
|
|
3441
3465
|
onClick: I
|
|
3442
3466
|
}, {
|
|
@@ -3454,23 +3478,23 @@ var ot = /* @__PURE__ */ D({
|
|
|
3454
3478
|
_: 1
|
|
3455
3479
|
})]));
|
|
3456
3480
|
}
|
|
3457
|
-
}), [["__scopeId", "data-v-ac5f05d4"]]),
|
|
3481
|
+
}), [["__scopeId", "data-v-ac5f05d4"]]), ki = { class: "flex flex-col gap-1" }, Ai = {
|
|
3458
3482
|
key: 0,
|
|
3459
3483
|
class: "flex-1 text-on-surface"
|
|
3460
|
-
},
|
|
3484
|
+
}, ji = {
|
|
3461
3485
|
key: 1,
|
|
3462
3486
|
class: "flex-1 text-on-surface-variant"
|
|
3463
|
-
},
|
|
3487
|
+
}, Mi = {
|
|
3464
3488
|
key: 0,
|
|
3465
3489
|
class: "px-4 text-body-small text-error"
|
|
3466
|
-
},
|
|
3490
|
+
}, Ni = {
|
|
3467
3491
|
key: 1,
|
|
3468
3492
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
3469
|
-
},
|
|
3493
|
+
}, Pi = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, Fi = { class: "mb-3 flex items-center justify-between" }, Ii = { class: "text-title-small font-medium capitalize text-on-surface" }, Li = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, Ri = { class: "grid grid-cols-7 gap-0.5" }, zi = [
|
|
3470
3494
|
"disabled",
|
|
3471
3495
|
"onMouseenter",
|
|
3472
3496
|
"onClick"
|
|
3473
|
-
],
|
|
3497
|
+
], Bi = /* @__PURE__ */ D({
|
|
3474
3498
|
__name: "MDateRangePicker",
|
|
3475
3499
|
props: {
|
|
3476
3500
|
modelValue: {},
|
|
@@ -3604,7 +3628,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3604
3628
|
e ? (f.value = i.modelValue.start && !i.modelValue.end ? "end" : "start", q(), setTimeout(() => document.addEventListener("mousedown", J), 0)) : document.removeEventListener("mousedown", J);
|
|
3605
3629
|
}), F(() => window.addEventListener("scroll", Y, !0)), I(() => {
|
|
3606
3630
|
window.removeEventListener("scroll", Y, !0), document.removeEventListener("mousedown", J);
|
|
3607
|
-
}), (t, n) => (L(), S("div",
|
|
3631
|
+
}), (t, n) => (L(), S("div", ki, [
|
|
3608
3632
|
C("div", {
|
|
3609
3633
|
ref_key: "triggerEl",
|
|
3610
3634
|
ref: u,
|
|
@@ -3620,7 +3644,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3620
3644
|
size: 20,
|
|
3621
3645
|
class: "shrink-0 text-on-surface-variant"
|
|
3622
3646
|
}),
|
|
3623
|
-
U.value ? (L(), S("span",
|
|
3647
|
+
U.value ? (L(), S("span", Ai, G(U.value), 1)) : (L(), S("span", ji, G(e.label || e.placeholder || K(o).selectRange), 1)),
|
|
3624
3648
|
e.modelValue.start || e.modelValue.end ? (L(), b(r, {
|
|
3625
3649
|
key: 2,
|
|
3626
3650
|
name: "close",
|
|
@@ -3632,7 +3656,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3632
3656
|
key: 0,
|
|
3633
3657
|
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"])
|
|
3634
3658
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
3635
|
-
e.error && e.errorLabel ? (L(), S("p",
|
|
3659
|
+
e.error && e.errorLabel ? (L(), S("p", Mi, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Ni, G(e.hint), 1)) : x("", !0),
|
|
3636
3660
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
3637
3661
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
3638
3662
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -3646,15 +3670,15 @@ var ot = /* @__PURE__ */ D({
|
|
|
3646
3670
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
3647
3671
|
style: N(_.value)
|
|
3648
3672
|
}, [
|
|
3649
|
-
C("p",
|
|
3650
|
-
C("div",
|
|
3673
|
+
C("p", Pi, G(f.value === "start" ? e.pickStartText ?? K(o).pickStart : e.pickEndText ?? K(o).pickEnd), 1),
|
|
3674
|
+
C("div", Fi, [
|
|
3651
3675
|
E(l, {
|
|
3652
3676
|
icon: "chevron_left",
|
|
3653
3677
|
label: e.prevMonthLabel ?? K(o).previousMonth,
|
|
3654
3678
|
size: 36,
|
|
3655
3679
|
onClick: z
|
|
3656
3680
|
}, null, 8, ["label"]),
|
|
3657
|
-
C("span",
|
|
3681
|
+
C("span", Ii, G(D.value), 1),
|
|
3658
3682
|
E(l, {
|
|
3659
3683
|
icon: "chevron_right",
|
|
3660
3684
|
label: e.nextMonthLabel ?? K(o).nextMonth,
|
|
@@ -3662,28 +3686,28 @@ var ot = /* @__PURE__ */ D({
|
|
|
3662
3686
|
onClick: H
|
|
3663
3687
|
}, null, 8, ["label"])
|
|
3664
3688
|
]),
|
|
3665
|
-
C("div",
|
|
3689
|
+
C("div", Li, [(L(!0), S(m, null, V(K(T), (e) => (L(), S("span", {
|
|
3666
3690
|
key: e,
|
|
3667
3691
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3668
3692
|
}, G(e), 1))), 128))]),
|
|
3669
|
-
C("div",
|
|
3693
|
+
C("div", Ri, [(L(!0), S(m, null, V(O.value, (t, n) => (L(), S("button", {
|
|
3670
3694
|
key: n,
|
|
3671
3695
|
type: "button",
|
|
3672
3696
|
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"]]),
|
|
3673
3697
|
disabled: t.disabled,
|
|
3674
3698
|
onMouseenter: (e) => f.value === "end" && (p.value = t.iso),
|
|
3675
3699
|
onClick: (e) => P(t)
|
|
3676
|
-
}, G(t.date), 43,
|
|
3700
|
+
}, G(t.date), 43, zi))), 128))])
|
|
3677
3701
|
], 4)) : x("", !0)]),
|
|
3678
3702
|
_: 1
|
|
3679
3703
|
})]))
|
|
3680
3704
|
]));
|
|
3681
3705
|
}
|
|
3682
|
-
}),
|
|
3706
|
+
}), Vi = { class: "drp-box w-[360px] rounded-[28px] bg-surface-container-high shadow-elevation-3" }, Hi = { class: "px-6 pt-6 pb-4" }, Ui = { class: "mb-3 text-label-medium text-on-surface-variant" }, Wi = { class: "flex items-center gap-3" }, Gi = { class: "text-label-small text-on-surface-variant" }, Ki = { class: "text-title-medium font-medium capitalize" }, qi = { class: "text-label-small text-on-surface-variant" }, Ji = { class: "text-title-medium font-medium capitalize" }, Yi = { class: "px-4 pt-3 pb-2" }, Xi = { class: "mb-2 flex items-center justify-between" }, Zi = { class: "text-title-small font-medium capitalize text-on-surface" }, Qi = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, $i = { class: "grid grid-cols-7 gap-0.5" }, ea = [
|
|
3683
3707
|
"disabled",
|
|
3684
3708
|
"onMouseenter",
|
|
3685
3709
|
"onClick"
|
|
3686
|
-
],
|
|
3710
|
+
], ta = { class: "flex justify-end gap-2 px-6 py-4" }, na = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
3687
3711
|
__name: "MDateRangePickerModal",
|
|
3688
3712
|
props: {
|
|
3689
3713
|
modelValue: {},
|
|
@@ -3790,28 +3814,28 @@ var ot = /* @__PURE__ */ D({
|
|
|
3790
3814
|
key: 0,
|
|
3791
3815
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
3792
3816
|
onClick: Q(F, ["self"])
|
|
3793
|
-
}, [C("div",
|
|
3794
|
-
C("div",
|
|
3817
|
+
}, [C("div", Vi, [
|
|
3818
|
+
C("div", Hi, [C("p", Ui, G(e.title || K(a).selectRange), 1), C("div", Wi, [
|
|
3795
3819
|
C("div", {
|
|
3796
3820
|
class: M(["flex-1 rounded-lg px-3 py-2 text-center transition-colors", s.value === "start" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface"]),
|
|
3797
3821
|
onClick: n[0] ||= (e) => s.value = "start"
|
|
3798
|
-
}, [C("p",
|
|
3822
|
+
}, [C("p", Gi, G(K(a).pickStart), 1), C("p", Ki, G(P(c.value)), 1)], 2),
|
|
3799
3823
|
n[2] ||= C("span", { class: "text-on-surface-variant" }, "→", -1),
|
|
3800
3824
|
C("div", {
|
|
3801
3825
|
class: M(["flex-1 rounded-lg px-3 py-2 text-center transition-colors", s.value === "end" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface"]),
|
|
3802
3826
|
onClick: n[1] ||= (e) => c.value && (s.value = "end")
|
|
3803
|
-
}, [C("p",
|
|
3827
|
+
}, [C("p", qi, G(K(a).pickEnd), 1), C("p", Ji, G(P(u.value)), 1)], 2)
|
|
3804
3828
|
])]),
|
|
3805
3829
|
n[4] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
3806
|
-
C("div",
|
|
3807
|
-
C("div",
|
|
3830
|
+
C("div", Yi, [
|
|
3831
|
+
C("div", Xi, [
|
|
3808
3832
|
E(l, {
|
|
3809
3833
|
icon: "chevron_left",
|
|
3810
3834
|
label: K(a).previousMonth,
|
|
3811
3835
|
size: 36,
|
|
3812
3836
|
onClick: k
|
|
3813
3837
|
}, null, 8, ["label"]),
|
|
3814
|
-
C("span",
|
|
3838
|
+
C("span", Zi, G(_.value), 1),
|
|
3815
3839
|
E(l, {
|
|
3816
3840
|
icon: "chevron_right",
|
|
3817
3841
|
label: K(a).nextMonth,
|
|
@@ -3819,20 +3843,20 @@ var ot = /* @__PURE__ */ D({
|
|
|
3819
3843
|
onClick: A
|
|
3820
3844
|
}, null, 8, ["label"])
|
|
3821
3845
|
]),
|
|
3822
|
-
C("div",
|
|
3846
|
+
C("div", Qi, [(L(!0), S(m, null, V(p.value, (e) => (L(), S("span", {
|
|
3823
3847
|
key: e,
|
|
3824
3848
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
3825
3849
|
}, G(e), 1))), 128))]),
|
|
3826
|
-
C("div",
|
|
3850
|
+
C("div", $i, [(L(!0), S(m, null, V(y.value, (e, t) => (L(), S("button", {
|
|
3827
3851
|
key: t,
|
|
3828
3852
|
type: "button",
|
|
3829
3853
|
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 === c.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"]]),
|
|
3830
3854
|
disabled: e.disabled,
|
|
3831
3855
|
onMouseenter: (t) => s.value === "end" && (d.value = e.iso),
|
|
3832
3856
|
onClick: (t) => j(e)
|
|
3833
|
-
}, G(e.date), 43,
|
|
3857
|
+
}, G(e.date), 43, ea))), 128))])
|
|
3834
3858
|
]),
|
|
3835
|
-
C("div",
|
|
3859
|
+
C("div", ta, [E(i, {
|
|
3836
3860
|
variant: "text",
|
|
3837
3861
|
onClick: F
|
|
3838
3862
|
}, {
|
|
@@ -3850,17 +3874,17 @@ var ot = /* @__PURE__ */ D({
|
|
|
3850
3874
|
_: 1
|
|
3851
3875
|
})]));
|
|
3852
3876
|
}
|
|
3853
|
-
}), [["__scopeId", "data-v-fcb7a791"]]),
|
|
3877
|
+
}), [["__scopeId", "data-v-fcb7a791"]]), ra = {
|
|
3854
3878
|
key: 0,
|
|
3855
3879
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
3856
|
-
},
|
|
3880
|
+
}, ia = {
|
|
3857
3881
|
key: 1,
|
|
3858
3882
|
class: "h-px flex-1 bg-outline-variant"
|
|
3859
|
-
},
|
|
3883
|
+
}, aa = {
|
|
3860
3884
|
key: 1,
|
|
3861
3885
|
class: "w-px self-stretch bg-outline-variant",
|
|
3862
3886
|
role: "separator"
|
|
3863
|
-
},
|
|
3887
|
+
}, oa = /* @__PURE__ */ D({
|
|
3864
3888
|
__name: "MDivider",
|
|
3865
3889
|
props: {
|
|
3866
3890
|
vertical: {
|
|
@@ -3874,25 +3898,25 @@ var ot = /* @__PURE__ */ D({
|
|
|
3874
3898
|
}
|
|
3875
3899
|
},
|
|
3876
3900
|
setup(e) {
|
|
3877
|
-
return (t, n) => e.vertical ? (L(), S("div",
|
|
3901
|
+
return (t, n) => e.vertical ? (L(), S("div", aa)) : (L(), S("div", {
|
|
3878
3902
|
key: 0,
|
|
3879
3903
|
class: M(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
3880
3904
|
role: "separator"
|
|
3881
3905
|
}, [
|
|
3882
3906
|
n[0] ||= C("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
3883
|
-
e.label ? (L(), S("span",
|
|
3884
|
-
e.label ? (L(), S("div",
|
|
3907
|
+
e.label ? (L(), S("span", ra, G(e.label), 1)) : x("", !0),
|
|
3908
|
+
e.label ? (L(), S("div", ia)) : x("", !0)
|
|
3885
3909
|
], 2));
|
|
3886
3910
|
}
|
|
3887
|
-
}),
|
|
3911
|
+
}), sa = {
|
|
3888
3912
|
class: "flex flex-col",
|
|
3889
3913
|
role: "listbox"
|
|
3890
|
-
},
|
|
3914
|
+
}, ca = [
|
|
3891
3915
|
"draggable",
|
|
3892
3916
|
"onDragstart",
|
|
3893
3917
|
"onDragover",
|
|
3894
3918
|
"onDrop"
|
|
3895
|
-
],
|
|
3919
|
+
], la = ["onDragstart"], ua = { class: "min-w-0 flex-1" }, da = { class: "text-body-medium text-on-surface" }, fa = /* @__PURE__ */ D({
|
|
3896
3920
|
__name: "MDragDropList",
|
|
3897
3921
|
props: {
|
|
3898
3922
|
modelValue: {},
|
|
@@ -3936,7 +3960,7 @@ var ot = /* @__PURE__ */ D({
|
|
|
3936
3960
|
function p(e) {
|
|
3937
3961
|
return a.value === e ? "opacity-30" : o.value === e && a.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
3938
3962
|
}
|
|
3939
|
-
return (t, n) => (L(), S("div",
|
|
3963
|
+
return (t, n) => (L(), S("div", sa, [(L(!0), S(m, null, V(e.modelValue, (n, i) => (L(), S("div", {
|
|
3940
3964
|
key: n.id,
|
|
3941
3965
|
draggable: !e.handle,
|
|
3942
3966
|
class: M(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [p(i), !e.handle && "cursor-grab active:cursor-grabbing"]]),
|
|
@@ -3954,12 +3978,12 @@ var ot = /* @__PURE__ */ D({
|
|
|
3954
3978
|
}, [E(r, {
|
|
3955
3979
|
name: "drag_indicator",
|
|
3956
3980
|
size: 20
|
|
3957
|
-
})], 40,
|
|
3981
|
+
})], 40, la)) : x("", !0), C("div", ua, [H(t.$slots, "default", {
|
|
3958
3982
|
item: n,
|
|
3959
3983
|
index: i
|
|
3960
|
-
}, () => [C("span",
|
|
3984
|
+
}, () => [C("span", da, G(n.id), 1)])])], 42, ca))), 128))]));
|
|
3961
3985
|
}
|
|
3962
|
-
}),
|
|
3986
|
+
}), pa = ["aria-label", "role"], ma = /* @__PURE__ */ D({
|
|
3963
3987
|
__name: "MEmoji",
|
|
3964
3988
|
props: {
|
|
3965
3989
|
emoji: {},
|
|
@@ -3976,9 +4000,9 @@ var ot = /* @__PURE__ */ D({
|
|
|
3976
4000
|
}),
|
|
3977
4001
|
"aria-label": e.label,
|
|
3978
4002
|
role: e.label ? "img" : void 0
|
|
3979
|
-
}, G(e.emoji), 13,
|
|
4003
|
+
}, G(e.emoji), 13, pa));
|
|
3980
4004
|
}
|
|
3981
|
-
}),
|
|
4005
|
+
}), ha = [
|
|
3982
4006
|
{
|
|
3983
4007
|
id: "smileys",
|
|
3984
4008
|
label: "Smileys",
|
|
@@ -4045,14 +4069,14 @@ var ot = /* @__PURE__ */ D({
|
|
|
4045
4069
|
icon: "flag",
|
|
4046
4070
|
emojis: /* @__PURE__ */ "🏁.🚩.🎌.🏴.🏳️.🏳️🌈.🏳️⚧️.🏴☠️.🇦🇷.🇦🇺.🇧🇷.🇨🇦.🇨🇱.🇨🇳.🇨🇴.🇩🇪.🇪🇸.🇫🇷.🇬🇧.🇮🇹.🇯🇵.🇰🇷.🇲🇽.🇳🇱.🇵🇪.🇵🇹.🇷🇺.🇸🇪.🇺🇸.🇻🇪.🇪🇨.🇧🇴.🇵🇾.🇺🇾.🇨🇷.🇵🇦.🇨🇺.🇩🇴.🇬🇹.🇭🇳.🇳🇮.🇸🇻.🇵🇷.🇮🇳.🇮🇩.🇹🇷.🇵🇭.🇹🇭".split(".")
|
|
4047
4071
|
}
|
|
4048
|
-
],
|
|
4049
|
-
function
|
|
4050
|
-
let t = e ??
|
|
4072
|
+
], ga = ha.flatMap((e) => e.emojis);
|
|
4073
|
+
function _a(e) {
|
|
4074
|
+
let t = e ?? ga;
|
|
4051
4075
|
return t[Math.floor(Math.random() * t.length)];
|
|
4052
4076
|
}
|
|
4053
4077
|
//#endregion
|
|
4054
4078
|
//#region src/components/MEmojiButton.vue?vue&type=script&setup=true&lang.ts
|
|
4055
|
-
var
|
|
4079
|
+
var va = ["aria-label", "disabled"], ya = { class: "leading-none" }, ba = /* @__PURE__ */ D({
|
|
4056
4080
|
__name: "MEmojiButton",
|
|
4057
4081
|
props: {
|
|
4058
4082
|
emoji: { default: "😀" },
|
|
@@ -4072,10 +4096,10 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4072
4096
|
setup(e, { emit: t }) {
|
|
4073
4097
|
let n = e, r = t, i = B(n.emoji);
|
|
4074
4098
|
function a() {
|
|
4075
|
-
return n.category ?
|
|
4099
|
+
return n.category ? ha.find((e) => e.id === n.category)?.emojis ?? ga : ga;
|
|
4076
4100
|
}
|
|
4077
4101
|
function o() {
|
|
4078
|
-
!n.randomOnHover || n.disabled || (i.value =
|
|
4102
|
+
!n.randomOnHover || n.disabled || (i.value = _a(a()));
|
|
4079
4103
|
}
|
|
4080
4104
|
function s() {}
|
|
4081
4105
|
function c() {
|
|
@@ -4094,15 +4118,15 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4094
4118
|
onMouseenter: o,
|
|
4095
4119
|
onMouseleave: s,
|
|
4096
4120
|
onClick: c
|
|
4097
|
-
}, [C("span",
|
|
4121
|
+
}, [C("span", ya, G(i.value), 1)], 46, va));
|
|
4098
4122
|
}
|
|
4099
|
-
}),
|
|
4123
|
+
}), xa = { class: "flex w-full flex-col overflow-hidden rounded-xl border border-outline-variant bg-surface-container" }, Sa = {
|
|
4100
4124
|
key: 0,
|
|
4101
4125
|
class: "px-3 pt-3"
|
|
4102
|
-
},
|
|
4126
|
+
}, Ca = { class: "flex gap-0.5 overflow-x-auto border-b border-outline-variant px-2 py-1.5" }, wa = ["title", "onClick"], Ta = { class: "sticky -top-px z-10 -mx-2 bg-surface-container px-3 py-1.5 text-label-medium text-on-surface-variant" }, Ea = ["onClick"], Da = {
|
|
4103
4127
|
key: 0,
|
|
4104
4128
|
class: "py-8 text-center text-body-medium text-on-surface-variant"
|
|
4105
|
-
},
|
|
4129
|
+
}, Oa = /* @__PURE__ */ D({
|
|
4106
4130
|
__name: "MEmojiSelector",
|
|
4107
4131
|
props: {
|
|
4108
4132
|
categories: {},
|
|
@@ -4115,7 +4139,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4115
4139
|
},
|
|
4116
4140
|
emits: ["select"],
|
|
4117
4141
|
setup(e, { emit: t }) {
|
|
4118
|
-
let n = e, i = t, a = B(""), o = B(null), s = B(null), c = B({}), l = v(() => n.categories?.length ?
|
|
4142
|
+
let n = e, i = t, a = B(""), o = B(null), s = B(null), c = B({}), l = v(() => n.categories?.length ? ha.filter((e) => n.categories.includes(e.id)) : ha), d = v(() => {
|
|
4119
4143
|
if (!a.value) return l.value;
|
|
4120
4144
|
let e = a.value.toLowerCase();
|
|
4121
4145
|
return l.value.map((t) => ({
|
|
@@ -4137,15 +4161,15 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4137
4161
|
function h(e, t) {
|
|
4138
4162
|
t && (c.value[e] = t);
|
|
4139
4163
|
}
|
|
4140
|
-
return (t, n) => (L(), S("div",
|
|
4141
|
-
e.search ? (L(), S("div",
|
|
4164
|
+
return (t, n) => (L(), S("div", xa, [
|
|
4165
|
+
e.search ? (L(), S("div", Sa, [E(u, {
|
|
4142
4166
|
modelValue: a.value,
|
|
4143
4167
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
4144
4168
|
label: "Search",
|
|
4145
4169
|
"leading-icon": "search",
|
|
4146
4170
|
variant: "outlined"
|
|
4147
4171
|
}, null, 8, ["modelValue"])])) : x("", !0),
|
|
4148
|
-
C("div",
|
|
4172
|
+
C("div", Ca, [(L(!0), S(m, null, V(l.value, (e) => (L(), S("button", {
|
|
4149
4173
|
key: e.id,
|
|
4150
4174
|
type: "button",
|
|
4151
4175
|
title: e.label,
|
|
@@ -4154,7 +4178,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4154
4178
|
}, [E(r, {
|
|
4155
4179
|
name: e.icon,
|
|
4156
4180
|
size: 20
|
|
4157
|
-
}, null, 8, ["name"])], 10,
|
|
4181
|
+
}, null, 8, ["name"])], 10, wa))), 128))]),
|
|
4158
4182
|
C("div", {
|
|
4159
4183
|
ref_key: "scrollContainer",
|
|
4160
4184
|
ref: s,
|
|
@@ -4164,7 +4188,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4164
4188
|
key: t.id,
|
|
4165
4189
|
ref_for: !0,
|
|
4166
4190
|
ref: (e) => h(t.id, e)
|
|
4167
|
-
}, [C("p",
|
|
4191
|
+
}, [C("p", Ta, G(t.label), 1), C("div", {
|
|
4168
4192
|
class: "grid gap-0.5",
|
|
4169
4193
|
style: N({ gridTemplateColumns: `repeat(${e.columns}, 1fr)` })
|
|
4170
4194
|
}, [(L(!0), S(m, null, V(t.emojis, (t) => (L(), S("button", {
|
|
@@ -4176,10 +4200,10 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4176
4200
|
height: `${e.emojiSize + 10}px`
|
|
4177
4201
|
}),
|
|
4178
4202
|
onClick: (e) => p(t)
|
|
4179
|
-
}, G(t), 13,
|
|
4203
|
+
}, G(t), 13, Ea))), 128))], 4)], 512))), 128)), a.value && d.value.length === 0 ? (L(), S("p", Da, " No results ")) : x("", !0)], 512)
|
|
4180
4204
|
]));
|
|
4181
4205
|
}
|
|
4182
|
-
}),
|
|
4206
|
+
}), ka = /* @__PURE__ */ D({
|
|
4183
4207
|
__name: "MEmptyState",
|
|
4184
4208
|
props: {
|
|
4185
4209
|
icon: { default: "inbox" },
|
|
@@ -4204,10 +4228,10 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4204
4228
|
}, [H(t.$slots, "actions")], 2)) : x("", !0)
|
|
4205
4229
|
], 2));
|
|
4206
4230
|
}
|
|
4207
|
-
}),
|
|
4231
|
+
}), Aa = ["aria-expanded", "disabled"], ja = { class: "flex-1 min-w-0" }, Ma = { class: "text-body-large font-medium text-on-surface" }, Na = {
|
|
4208
4232
|
key: 0,
|
|
4209
4233
|
class: "text-body-small text-on-surface-variant"
|
|
4210
|
-
},
|
|
4234
|
+
}, Pa = { class: "expand-body" }, Fa = { class: "border-t border-outline-variant/60 px-5 py-4" }, Ia = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4211
4235
|
__name: "MExpansionPanel",
|
|
4212
4236
|
props: {
|
|
4213
4237
|
title: {},
|
|
@@ -4245,21 +4269,21 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4245
4269
|
size: 22,
|
|
4246
4270
|
class: "shrink-0 text-on-surface-variant"
|
|
4247
4271
|
}, null, 8, ["name"])) : x("", !0),
|
|
4248
|
-
C("div",
|
|
4272
|
+
C("div", ja, [C("p", Ma, G(e.title), 1), e.subtitle ? (L(), S("p", Na, G(e.subtitle), 1)) : x("", !0)]),
|
|
4249
4273
|
E(r, {
|
|
4250
4274
|
name: "expand_more",
|
|
4251
4275
|
size: 22,
|
|
4252
4276
|
class: M(["shrink-0 text-on-surface-variant transition-transform duration-200", o.value ? "rotate-180" : ""])
|
|
4253
4277
|
}, null, 8, ["class"])
|
|
4254
|
-
], 10,
|
|
4278
|
+
], 10, Aa), C("div", { class: M(["expand-grid", o.value ? "expand-open" : ""]) }, [C("div", Pa, [C("div", Fa, [H(t.$slots, "default", {}, void 0, !0)])])], 2)], 2));
|
|
4255
4279
|
}
|
|
4256
|
-
}), [["__scopeId", "data-v-31731809"]]),
|
|
4280
|
+
}), [["__scopeId", "data-v-31731809"]]), La = {
|
|
4257
4281
|
key: 0,
|
|
4258
4282
|
class: "text-label-large font-medium"
|
|
4259
|
-
},
|
|
4283
|
+
}, Ra = {
|
|
4260
4284
|
key: 0,
|
|
4261
4285
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
4262
|
-
},
|
|
4286
|
+
}, za = 40, Ba = 8, Va = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4263
4287
|
__name: "MFab",
|
|
4264
4288
|
props: {
|
|
4265
4289
|
icon: {},
|
|
@@ -4322,8 +4346,8 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4322
4346
|
let t = 2 * Math.PI * e / a - Math.PI / 2, n = (Math.cos(t) * 80).toFixed(1), o = (Math.sin(t) * 80).toFixed(1);
|
|
4323
4347
|
return {
|
|
4324
4348
|
position: "fixed",
|
|
4325
|
-
top: `${i -
|
|
4326
|
-
left: `${r -
|
|
4349
|
+
top: `${i - za / 2}px`,
|
|
4350
|
+
left: `${r - za / 2}px`,
|
|
4327
4351
|
transform: s.value ? `translate(${n}px, ${o}px) scale(1)` : "translate(0,0) scale(0)",
|
|
4328
4352
|
opacity: s.value ? "1" : "0",
|
|
4329
4353
|
transition: c,
|
|
@@ -4331,22 +4355,22 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4331
4355
|
zIndex: "1000"
|
|
4332
4356
|
};
|
|
4333
4357
|
}
|
|
4334
|
-
let l = w.value / 2 +
|
|
4358
|
+
let l = w.value / 2 + Ba + za / 2 + e * 48, u = {
|
|
4335
4359
|
up: {
|
|
4336
|
-
top: `${i - l -
|
|
4337
|
-
left: `${r -
|
|
4360
|
+
top: `${i - l - za / 2}px`,
|
|
4361
|
+
left: `${r - za / 2}px`
|
|
4338
4362
|
},
|
|
4339
4363
|
down: {
|
|
4340
|
-
top: `${i + l -
|
|
4341
|
-
left: `${r -
|
|
4364
|
+
top: `${i + l - za / 2}px`,
|
|
4365
|
+
left: `${r - za / 2}px`
|
|
4342
4366
|
},
|
|
4343
4367
|
left: {
|
|
4344
|
-
top: `${i -
|
|
4345
|
-
left: `${r - l -
|
|
4368
|
+
top: `${i - za / 2}px`,
|
|
4369
|
+
left: `${r - l - za / 2}px`
|
|
4346
4370
|
},
|
|
4347
4371
|
right: {
|
|
4348
|
-
top: `${i -
|
|
4349
|
-
left: `${r + l -
|
|
4372
|
+
top: `${i - za / 2}px`,
|
|
4373
|
+
left: `${r + l - za / 2}px`
|
|
4350
4374
|
}
|
|
4351
4375
|
}, d = {
|
|
4352
4376
|
up: "translateY(12px) scale(0.75)",
|
|
@@ -4443,7 +4467,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4443
4467
|
"name",
|
|
4444
4468
|
"size",
|
|
4445
4469
|
"class"
|
|
4446
|
-
]), e.label ? (L(), S("span",
|
|
4470
|
+
]), e.label ? (L(), S("span", La, G(e.label), 1)) : x("", !0)]),
|
|
4447
4471
|
_: 1
|
|
4448
4472
|
}, 40, [
|
|
4449
4473
|
"to",
|
|
@@ -4454,13 +4478,13 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4454
4478
|
key: n,
|
|
4455
4479
|
style: N(D(n)),
|
|
4456
4480
|
class: M(["flex items-center gap-3", O.value ? "flex-row-reverse" : ""])
|
|
4457
|
-
}, [t.label && O.value ? (L(), S("span",
|
|
4481
|
+
}, [t.label && O.value ? (L(), S("span", Ra, G(t.label), 1)) : x("", !0), (L(), b(W(t.to ? "RouterLink" : "button"), {
|
|
4458
4482
|
to: t.to || void 0,
|
|
4459
4483
|
type: t.to ? void 0 : "button",
|
|
4460
4484
|
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]]),
|
|
4461
4485
|
style: N({
|
|
4462
|
-
width: `${
|
|
4463
|
-
height: `${
|
|
4486
|
+
width: `${za}px`,
|
|
4487
|
+
height: `${za}px`
|
|
4464
4488
|
}),
|
|
4465
4489
|
onPointerdown: (e) => U(e, t, e.currentTarget)
|
|
4466
4490
|
}, {
|
|
@@ -4489,17 +4513,17 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4489
4513
|
_: 3
|
|
4490
4514
|
})]))], 64));
|
|
4491
4515
|
}
|
|
4492
|
-
}), [["__scopeId", "data-v-02ba313e"]]),
|
|
4516
|
+
}), [["__scopeId", "data-v-02ba313e"]]), Ha = { class: "flex flex-col gap-3" }, Ua = { class: "text-center" }, Wa = { class: "text-body-large text-on-surface" }, Ga = { class: "font-medium text-primary" }, Ka = {
|
|
4493
4517
|
key: 0,
|
|
4494
4518
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
4495
|
-
},
|
|
4519
|
+
}, qa = { key: 0 }, Ja = { key: 1 }, Ya = { key: 2 }, Xa = [
|
|
4496
4520
|
"accept",
|
|
4497
4521
|
"multiple",
|
|
4498
4522
|
"disabled"
|
|
4499
|
-
],
|
|
4523
|
+
], Za = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, Qa = ["src"], $a = { class: "min-w-0 flex-1" }, eo = { class: "truncate text-body-medium text-on-surface" }, to = { class: "text-body-small text-on-surface-variant" }, no = {
|
|
4500
4524
|
key: 0,
|
|
4501
4525
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
4502
|
-
},
|
|
4526
|
+
}, ro = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4503
4527
|
__name: "MFileUpload",
|
|
4504
4528
|
props: {
|
|
4505
4529
|
accept: {},
|
|
@@ -4551,7 +4575,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4551
4575
|
function O() {
|
|
4552
4576
|
a.disabled || d.value?.click();
|
|
4553
4577
|
}
|
|
4554
|
-
return (t, n) => (L(), S("div",
|
|
4578
|
+
return (t, n) => (L(), S("div", Ha, [
|
|
4555
4579
|
C("div", {
|
|
4556
4580
|
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" : u.value ? "border-primary bg-primary-container/20" : "border-outline-variant bg-surface-container-lowest hover:border-primary/60 hover:bg-surface-container"]]),
|
|
4557
4581
|
onClick: O,
|
|
@@ -4563,10 +4587,10 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4563
4587
|
name: u.value ? "downloading" : "cloud_upload",
|
|
4564
4588
|
size: 40,
|
|
4565
4589
|
class: "text-on-surface-variant"
|
|
4566
|
-
}, null, 8, ["name"]), C("div",
|
|
4567
|
-
e.accept ? (L(), S("span",
|
|
4568
|
-
e.accept && e.maxSize ? (L(), S("span",
|
|
4569
|
-
e.maxSize ? (L(), S("span",
|
|
4590
|
+
}, null, 8, ["name"]), C("div", Ua, [H(t.$slots, "dropzone", {}, () => [C("p", Wa, [T(G(e.dropText ?? K(i).dropText) + " ", 1), C("span", Ga, G(e.selectText ?? K(i).selectText), 1)]), e.accept || e.maxSize ? (L(), S("p", Ka, [
|
|
4591
|
+
e.accept ? (L(), S("span", qa, G(e.accept), 1)) : x("", !0),
|
|
4592
|
+
e.accept && e.maxSize ? (L(), S("span", Ja, " · ")) : x("", !0),
|
|
4593
|
+
e.maxSize ? (L(), S("span", Ya, G(e.maxSizePrefix ?? K(i).maxSizePrefix) + " " + G(h(e.maxSize)), 1)) : x("", !0)
|
|
4570
4594
|
])) : x("", !0)], !0)])], 34),
|
|
4571
4595
|
C("input", {
|
|
4572
4596
|
ref_key: "inputRef",
|
|
@@ -4577,7 +4601,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4577
4601
|
multiple: e.multiple,
|
|
4578
4602
|
disabled: e.disabled,
|
|
4579
4603
|
onChange: w
|
|
4580
|
-
}, null, 40,
|
|
4604
|
+
}, null, 40, Xa),
|
|
4581
4605
|
E(_, {
|
|
4582
4606
|
name: "m3-file",
|
|
4583
4607
|
tag: "div",
|
|
@@ -4587,20 +4611,20 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4587
4611
|
key: t.id,
|
|
4588
4612
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
4589
4613
|
}, [
|
|
4590
|
-
C("div",
|
|
4614
|
+
C("div", Za, [t.preview ? (L(), S("img", {
|
|
4591
4615
|
key: 0,
|
|
4592
4616
|
src: t.preview,
|
|
4593
4617
|
class: "h-full w-full object-cover"
|
|
4594
|
-
}, null, 8,
|
|
4618
|
+
}, null, 8, Qa)) : (L(), b(r, {
|
|
4595
4619
|
key: 1,
|
|
4596
4620
|
name: "description",
|
|
4597
4621
|
size: 24,
|
|
4598
4622
|
class: "text-on-surface-variant"
|
|
4599
4623
|
}))]),
|
|
4600
|
-
C("div",
|
|
4601
|
-
C("p",
|
|
4602
|
-
C("p",
|
|
4603
|
-
t.status === "uploading" ? (L(), S("div",
|
|
4624
|
+
C("div", $a, [
|
|
4625
|
+
C("p", eo, G(t.file.name), 1),
|
|
4626
|
+
C("p", to, G(h(t.file.size)), 1),
|
|
4627
|
+
t.status === "uploading" ? (L(), S("div", no, [C("div", {
|
|
4604
4628
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
4605
4629
|
style: N({ width: `${t.progress}%` })
|
|
4606
4630
|
}, null, 4)])) : x("", !0)
|
|
@@ -4630,7 +4654,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4630
4654
|
})
|
|
4631
4655
|
]));
|
|
4632
4656
|
}
|
|
4633
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
4657
|
+
}), [["__scopeId", "data-v-6b150427"]]), io = /* @__PURE__ */ D({
|
|
4634
4658
|
__name: "MFixed",
|
|
4635
4659
|
props: {
|
|
4636
4660
|
placement: {},
|
|
@@ -4676,19 +4700,19 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4676
4700
|
});
|
|
4677
4701
|
return (e, t) => (L(), S("div", { style: N(r.value) }, [H(e.$slots, "default")], 4));
|
|
4678
4702
|
}
|
|
4679
|
-
}),
|
|
4703
|
+
}), ao = {
|
|
4680
4704
|
key: 0,
|
|
4681
4705
|
class: "px-6 pt-6 pb-2 sm:px-8 lg:px-12"
|
|
4682
|
-
},
|
|
4706
|
+
}, oo = {
|
|
4683
4707
|
key: 1,
|
|
4684
4708
|
class: "px-6 py-6 sm:px-8 lg:px-12"
|
|
4685
|
-
},
|
|
4709
|
+
}, so = {
|
|
4686
4710
|
key: 2,
|
|
4687
4711
|
class: "flex flex-wrap items-center gap-1 px-6 pb-4 sm:px-8 lg:px-12"
|
|
4688
|
-
},
|
|
4712
|
+
}, co = {
|
|
4689
4713
|
key: 3,
|
|
4690
4714
|
class: "border-t border-outline-variant px-6 py-4 sm:px-8 lg:px-12"
|
|
4691
|
-
},
|
|
4715
|
+
}, lo = /* @__PURE__ */ D({
|
|
4692
4716
|
__name: "MFooter",
|
|
4693
4717
|
props: {
|
|
4694
4718
|
bordered: { type: Boolean },
|
|
@@ -4703,13 +4727,13 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4703
4727
|
inverse: "bg-inverse-surface text-inverse-on-surface"
|
|
4704
4728
|
};
|
|
4705
4729
|
return (n, r) => (L(), S("footer", { class: M(["w-full", [t[e.surface], e.bordered ? "border-t border-outline-variant" : ""]]) }, [
|
|
4706
|
-
n.$slots.brand ? (L(), S("div",
|
|
4707
|
-
n.$slots.default ? (L(), S("div",
|
|
4708
|
-
n.$slots.social ? (L(), S("div",
|
|
4709
|
-
n.$slots.bottom ? (L(), S("div",
|
|
4730
|
+
n.$slots.brand ? (L(), S("div", ao, [H(n.$slots, "brand")])) : x("", !0),
|
|
4731
|
+
n.$slots.default ? (L(), S("div", oo, [H(n.$slots, "default")])) : x("", !0),
|
|
4732
|
+
n.$slots.social ? (L(), S("div", so, [H(n.$slots, "social")])) : x("", !0),
|
|
4733
|
+
n.$slots.bottom ? (L(), S("div", co, [H(n.$slots, "bottom")])) : x("", !0)
|
|
4710
4734
|
], 2));
|
|
4711
4735
|
}
|
|
4712
|
-
}),
|
|
4736
|
+
}), uo = /* @__PURE__ */ D({
|
|
4713
4737
|
__name: "MFlex",
|
|
4714
4738
|
props: {
|
|
4715
4739
|
direction: { default: "row" },
|
|
@@ -4761,7 +4785,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4761
4785
|
]);
|
|
4762
4786
|
return (e, t) => (L(), S("div", { class: M(o.value) }, [H(e.$slots, "default")], 2));
|
|
4763
4787
|
}
|
|
4764
|
-
}),
|
|
4788
|
+
}), fo = /* @__PURE__ */ D({
|
|
4765
4789
|
__name: "MFullscreen",
|
|
4766
4790
|
props: {
|
|
4767
4791
|
fixed: {
|
|
@@ -4778,7 +4802,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4778
4802
|
}));
|
|
4779
4803
|
return (e, t) => (L(), S("div", { style: N(n.value) }, [H(e.$slots, "default")], 4));
|
|
4780
4804
|
}
|
|
4781
|
-
}),
|
|
4805
|
+
}), po = /* @__PURE__ */ D({
|
|
4782
4806
|
__name: "MGrid",
|
|
4783
4807
|
props: {
|
|
4784
4808
|
cols: { default: 1 },
|
|
@@ -4854,13 +4878,13 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4854
4878
|
]);
|
|
4855
4879
|
return (e, t) => (L(), S("div", { class: M(l.value) }, [H(e.$slots, "default")], 2));
|
|
4856
4880
|
}
|
|
4857
|
-
}),
|
|
4881
|
+
}), mo = {
|
|
4858
4882
|
key: 0,
|
|
4859
4883
|
class: "flex flex-col gap-4"
|
|
4860
|
-
},
|
|
4884
|
+
}, ho = {
|
|
4861
4885
|
key: 0,
|
|
4862
4886
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
4863
|
-
},
|
|
4887
|
+
}, go = { class: "flex flex-col gap-1" }, _o = { class: "text-body-medium text-on-surface" }, vo = { class: "flex items-center gap-0.5" }, yo = /* @__PURE__ */ D({
|
|
4864
4888
|
__name: "MHotkeys",
|
|
4865
4889
|
props: {
|
|
4866
4890
|
bindings: {},
|
|
@@ -4917,15 +4941,15 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4917
4941
|
}
|
|
4918
4942
|
return e;
|
|
4919
4943
|
};
|
|
4920
|
-
return (t, n) => e.showOverlay ? (L(), S("div",
|
|
4944
|
+
return (t, n) => e.showOverlay ? (L(), S("div", mo, [(L(!0), S(m, null, V(s(), ([e, t]) => (L(), S("div", { key: e }, [e ? (L(), S("p", ho, G(e), 1)) : x("", !0), C("div", go, [(L(!0), S(m, null, V(t, (e) => (L(), S("div", {
|
|
4921
4945
|
key: e.keys,
|
|
4922
4946
|
class: M(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
4923
|
-
}, [C("span",
|
|
4947
|
+
}, [C("span", _o, G(e.label), 1), C("div", vo, [(L(!0), S(m, null, V(e.keys.split("+"), (e, t) => (L(), S("kbd", {
|
|
4924
4948
|
key: t,
|
|
4925
4949
|
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"
|
|
4926
4950
|
}, G(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : x("", !0);
|
|
4927
4951
|
}
|
|
4928
|
-
}),
|
|
4952
|
+
}), bo = { class: "flex items-center gap-3" }, xo = { class: "text-body-medium text-on-surface-variant" }, So = { class: "text-body-small text-on-surface-variant" }, Co = /* @__PURE__ */ D({
|
|
4929
4953
|
__name: "MInfiniteScroll",
|
|
4930
4954
|
props: {
|
|
4931
4955
|
loading: {
|
|
@@ -4956,30 +4980,30 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
4956
4980
|
ref_key: "sentinelRef",
|
|
4957
4981
|
ref: o,
|
|
4958
4982
|
class: "flex items-center justify-center py-4"
|
|
4959
|
-
}, [e.loading ? H(t.$slots, "loading", { key: 0 }, () => [C("div",
|
|
4983
|
+
}, [e.loading ? H(t.$slots, "loading", { key: 0 }, () => [C("div", bo, [E(s, {
|
|
4960
4984
|
size: 20,
|
|
4961
4985
|
class: "text-primary"
|
|
4962
|
-
}), C("span",
|
|
4986
|
+
}), C("span", xo, G(e.loadingText ?? K(r).loadingMore), 1)])]) : e.ended ? H(t.$slots, "end", { key: 1 }, () => [C("p", So, G(e.endText ?? K(r).noMoreItems), 1)]) : H(t.$slots, "idle", { key: 2 })], 512)]));
|
|
4963
4987
|
}
|
|
4964
|
-
}),
|
|
4988
|
+
}), wo = {
|
|
4965
4989
|
key: 0,
|
|
4966
4990
|
class: "text-tertiary"
|
|
4967
|
-
},
|
|
4991
|
+
}, To = { class: "text-on-surface-variant" }, Eo = {
|
|
4968
4992
|
key: 1,
|
|
4969
4993
|
class: "text-on-surface-variant/60"
|
|
4970
|
-
},
|
|
4994
|
+
}, Do = {
|
|
4971
4995
|
key: 2,
|
|
4972
4996
|
class: "text-on-surface-variant"
|
|
4973
|
-
},
|
|
4997
|
+
}, Oo = {
|
|
4974
4998
|
key: 0,
|
|
4975
4999
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
4976
|
-
},
|
|
5000
|
+
}, ko = { class: "shrink-0 text-primary" }, Ao = {
|
|
4977
5001
|
key: 0,
|
|
4978
5002
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
4979
|
-
},
|
|
5003
|
+
}, jo = {
|
|
4980
5004
|
key: 1,
|
|
4981
5005
|
class: "ml-5 text-on-surface-variant"
|
|
4982
|
-
},
|
|
5006
|
+
}, Mo = /* @__PURE__ */ D({
|
|
4983
5007
|
__name: "MJsonViewer",
|
|
4984
5008
|
props: {
|
|
4985
5009
|
data: {},
|
|
@@ -5025,17 +5049,17 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5025
5049
|
size: 16,
|
|
5026
5050
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
5027
5051
|
}, null, 8, ["name"]),
|
|
5028
|
-
e._depth === 0 || e.rootName ? (L(), S("span",
|
|
5029
|
-
C("span",
|
|
5030
|
-
o.value ? x("", !0) : (L(), S("span",
|
|
5031
|
-
o.value ? x("", !0) : (L(), S("span",
|
|
5052
|
+
e._depth === 0 || e.rootName ? (L(), S("span", wo, G(e._depth === 0 ? e.rootName : ""), 1)) : x("", !0),
|
|
5053
|
+
C("span", To, G(d.value), 1),
|
|
5054
|
+
o.value ? x("", !0) : (L(), S("span", Eo, G(u.value) + " " + G(s.value === "array" ? a.value.elements : a.value.fields), 1)),
|
|
5055
|
+
o.value ? x("", !0) : (L(), S("span", Do, G(f.value), 1))
|
|
5032
5056
|
]),
|
|
5033
|
-
o.value ? (L(), S("div",
|
|
5057
|
+
o.value ? (L(), S("div", Oo, [(L(!0), S(m, null, V(l.value, (t) => (L(), S("div", {
|
|
5034
5058
|
key: t.key,
|
|
5035
5059
|
class: "flex items-start"
|
|
5036
5060
|
}, [
|
|
5037
|
-
C("span",
|
|
5038
|
-
s.value === "array" ? x("", !0) : (L(), S("span",
|
|
5061
|
+
C("span", ko, G(s.value === "array" ? "" : `"${t.key}"`), 1),
|
|
5062
|
+
s.value === "array" ? x("", !0) : (L(), S("span", Ao, ":")),
|
|
5039
5063
|
t.value !== null && typeof t.value == "object" ? (L(), b(i, {
|
|
5040
5064
|
key: 1,
|
|
5041
5065
|
data: t.value,
|
|
@@ -5054,21 +5078,21 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5054
5078
|
class: M(p(t.value))
|
|
5055
5079
|
}, G(h(t.value)), 3))
|
|
5056
5080
|
]))), 128))])) : x("", !0),
|
|
5057
|
-
o.value ? (L(), S("span",
|
|
5081
|
+
o.value ? (L(), S("span", jo, G(f.value), 1)) : x("", !0)
|
|
5058
5082
|
], 64)) : (L(), S("span", {
|
|
5059
5083
|
key: 1,
|
|
5060
5084
|
class: M(p(e.data))
|
|
5061
5085
|
}, G(h(e.data)), 3))], 2);
|
|
5062
5086
|
};
|
|
5063
5087
|
}
|
|
5064
|
-
}),
|
|
5088
|
+
}), No = { class: "flex gap-4 overflow-x-auto pb-2" }, Po = ["onDragover", "onDrop"], Fo = { class: "flex items-center gap-2 px-4 py-3" }, Io = { class: "flex-1 text-title-small font-medium text-on-surface" }, Lo = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, Ro = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, zo = [
|
|
5065
5089
|
"onDragstart",
|
|
5066
5090
|
"onDragover",
|
|
5067
5091
|
"onClick"
|
|
5068
|
-
],
|
|
5092
|
+
], Bo = { class: "text-body-medium text-on-surface" }, Vo = {
|
|
5069
5093
|
key: 0,
|
|
5070
5094
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
5071
|
-
},
|
|
5095
|
+
}, Ho = /* @__PURE__ */ D({
|
|
5072
5096
|
__name: "MKanban",
|
|
5073
5097
|
props: { modelValue: {} },
|
|
5074
5098
|
emits: [
|
|
@@ -5127,20 +5151,20 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5127
5151
|
function f() {
|
|
5128
5152
|
i.value = null, a.value = null, o.value = null;
|
|
5129
5153
|
}
|
|
5130
|
-
return (t, n) => (L(), S("div",
|
|
5154
|
+
return (t, n) => (L(), S("div", No, [(L(!0), S(m, null, V(e.modelValue, (e) => (L(), S("div", {
|
|
5131
5155
|
key: e.id,
|
|
5132
5156
|
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" : ""]),
|
|
5133
5157
|
onDragover: (t) => l(t, e.id),
|
|
5134
5158
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
5135
5159
|
onDrop: (t) => d(t, e.id)
|
|
5136
|
-
}, [C("div",
|
|
5160
|
+
}, [C("div", Fo, [
|
|
5137
5161
|
e.color ? (L(), S("div", {
|
|
5138
5162
|
key: 0,
|
|
5139
5163
|
class: M(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
5140
5164
|
}, null, 2)) : x("", !0),
|
|
5141
|
-
C("h3",
|
|
5142
|
-
C("span",
|
|
5143
|
-
]), C("div",
|
|
5165
|
+
C("h3", Io, G(e.title), 1),
|
|
5166
|
+
C("span", Lo, G(e.cards.length), 1)
|
|
5167
|
+
]), C("div", Ro, [(L(!0), S(m, null, V(e.cards, (n, s) => (L(), S("div", {
|
|
5144
5168
|
key: n.id,
|
|
5145
5169
|
draggable: "true",
|
|
5146
5170
|
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" : ""]]),
|
|
@@ -5154,9 +5178,9 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5154
5178
|
}, [H(t.$slots, "card", {
|
|
5155
5179
|
card: n,
|
|
5156
5180
|
column: e
|
|
5157
|
-
}, () => [C("p",
|
|
5181
|
+
}, () => [C("p", Bo, G(n.id), 1)])], 42, zo))), 128)), e.cards.length === 0 ? (L(), S("div", Vo, [...n[1] ||= [C("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : x("", !0)])], 42, Po))), 128))]));
|
|
5158
5182
|
}
|
|
5159
|
-
}),
|
|
5183
|
+
}), Uo = /* @__PURE__ */ D({
|
|
5160
5184
|
__name: "MList",
|
|
5161
5185
|
props: {
|
|
5162
5186
|
dense: {
|
|
@@ -5205,10 +5229,10 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5205
5229
|
class: M(i.value)
|
|
5206
5230
|
}, [H(e.$slots, "default")], 2));
|
|
5207
5231
|
}
|
|
5208
|
-
}),
|
|
5232
|
+
}), Wo = ["checked", "disabled"], Go = {
|
|
5209
5233
|
key: 0,
|
|
5210
5234
|
class: "text-body-large text-on-surface"
|
|
5211
|
-
},
|
|
5235
|
+
}, Ko = /* @__PURE__ */ D({
|
|
5212
5236
|
__name: "MSwitch",
|
|
5213
5237
|
props: {
|
|
5214
5238
|
modelValue: { type: Boolean },
|
|
@@ -5230,7 +5254,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5230
5254
|
checked: e.modelValue,
|
|
5231
5255
|
disabled: e.disabled,
|
|
5232
5256
|
onChange: n[0] ||= (t) => i("update:modelValue", !e.modelValue)
|
|
5233
|
-
}, null, 40,
|
|
5257
|
+
}, null, 40, Wo), C("span", {
|
|
5234
5258
|
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"]),
|
|
5235
5259
|
style: N(a.value)
|
|
5236
5260
|
}, [E(g, {
|
|
@@ -5248,21 +5272,21 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5248
5272
|
class: "text-primary"
|
|
5249
5273
|
})) : x("", !0)]),
|
|
5250
5274
|
_: 1
|
|
5251
|
-
})], 6)], 2), e.label ? (L(), S("span",
|
|
5275
|
+
})], 6)], 2), e.label ? (L(), S("span", Go, G(e.label), 1)) : x("", !0)], 2));
|
|
5252
5276
|
}
|
|
5253
|
-
}),
|
|
5277
|
+
}), qo = {
|
|
5254
5278
|
key: 0,
|
|
5255
5279
|
role: "listitem"
|
|
5256
|
-
},
|
|
5280
|
+
}, Jo = { class: "min-w-0 flex-1" }, Yo = { class: "truncate text-body-large text-on-surface" }, Xo = {
|
|
5257
5281
|
key: 0,
|
|
5258
5282
|
class: "mli-expand-grid"
|
|
5259
|
-
},
|
|
5283
|
+
}, Zo = { class: "mli-expand-body" }, Qo = ["src"], $o = { class: "min-w-0 flex-1" }, es = { class: "truncate text-body-large text-on-surface" }, ts = {
|
|
5260
5284
|
key: 1,
|
|
5261
5285
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
5262
|
-
},
|
|
5286
|
+
}, ns = {
|
|
5263
5287
|
key: 1,
|
|
5264
5288
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
5265
|
-
},
|
|
5289
|
+
}, rs = /* @__PURE__ */ D({
|
|
5266
5290
|
__name: "MListItem",
|
|
5267
5291
|
props: {
|
|
5268
5292
|
title: {},
|
|
@@ -5335,7 +5359,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5335
5359
|
function P() {
|
|
5336
5360
|
i("update:trailingValue", !n.trailingValue);
|
|
5337
5361
|
}
|
|
5338
|
-
return (t, n) => e.expandable ? (L(), S("li",
|
|
5362
|
+
return (t, n) => e.expandable ? (L(), S("li", qo, [C("div", {
|
|
5339
5363
|
class: M(T.value),
|
|
5340
5364
|
onClick: N
|
|
5341
5365
|
}, [
|
|
@@ -5345,7 +5369,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5345
5369
|
size: 24,
|
|
5346
5370
|
class: "shrink-0 text-on-surface-variant"
|
|
5347
5371
|
}, null, 8, ["name"])) : x("", !0)]),
|
|
5348
|
-
C("div",
|
|
5372
|
+
C("div", Jo, [H(t.$slots, "default", {}, () => [C("p", Yo, G(e.title), 1), e.subtitle && l.value >= 2 ? (L(), S("p", {
|
|
5349
5373
|
key: 0,
|
|
5350
5374
|
class: M(["text-body-medium text-on-surface-variant", l.value === 2 && "truncate"])
|
|
5351
5375
|
}, G(e.subtitle), 3)) : x("", !0)])]),
|
|
@@ -5355,7 +5379,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5355
5379
|
class: "shrink-0 text-on-surface-variant"
|
|
5356
5380
|
}, null, 8, ["name"])
|
|
5357
5381
|
], 2), E(g, { name: "mli-expand" }, {
|
|
5358
|
-
default: Z(() => [s.value ? (L(), S("div",
|
|
5382
|
+
default: Z(() => [s.value ? (L(), S("div", Xo, [C("div", Zo, [H(t.$slots, "children")])])) : x("", !0)]),
|
|
5359
5383
|
_: 3
|
|
5360
5384
|
})])) : (L(), b(W(D.value), A({
|
|
5361
5385
|
key: 1,
|
|
@@ -5390,25 +5414,25 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5390
5414
|
src: e.image,
|
|
5391
5415
|
alt: "",
|
|
5392
5416
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
5393
|
-
}, null, 8,
|
|
5417
|
+
}, null, 8, Qo)) : f.value === "checkbox" ? (L(), b(zn, {
|
|
5394
5418
|
key: 4,
|
|
5395
5419
|
"model-value": d.value,
|
|
5396
5420
|
class: "shrink-0"
|
|
5397
5421
|
}, null, 8, ["model-value"])) : x("", !0)]),
|
|
5398
|
-
C("div",
|
|
5399
|
-
C("p",
|
|
5422
|
+
C("div", $o, [H(t.$slots, "default", {}, () => [
|
|
5423
|
+
C("p", es, G(e.title), 1),
|
|
5400
5424
|
e.subtitle && l.value >= 2 ? (L(), S("p", {
|
|
5401
5425
|
key: 0,
|
|
5402
5426
|
class: M(["text-body-medium text-on-surface-variant", l.value === 2 && "truncate"])
|
|
5403
5427
|
}, G(e.subtitle), 3)) : x("", !0),
|
|
5404
|
-
e.description && l.value >= 3 ? (L(), S("p",
|
|
5428
|
+
e.description && l.value >= 3 ? (L(), S("p", ts, G(e.description), 1)) : x("", !0)
|
|
5405
5429
|
])]),
|
|
5406
5430
|
H(t.$slots, "trailing", {}, () => [p.value === "icon" ? (L(), b(r, {
|
|
5407
5431
|
key: 0,
|
|
5408
5432
|
name: e.trailingIcon,
|
|
5409
5433
|
size: 24,
|
|
5410
5434
|
class: "shrink-0 text-on-surface-variant"
|
|
5411
|
-
}, null, 8, ["name"])) : p.value === "text" ? (L(), S("span",
|
|
5435
|
+
}, null, 8, ["name"])) : p.value === "text" ? (L(), S("span", ns, G(e.trailingText), 1)) : p.value === "switch" ? (L(), b(Ko, {
|
|
5412
5436
|
key: 2,
|
|
5413
5437
|
"model-value": !!e.trailingValue,
|
|
5414
5438
|
"onUpdate:modelValue": P
|
|
@@ -5421,7 +5445,7 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5421
5445
|
_: 3
|
|
5422
5446
|
}, 16, ["class"]));
|
|
5423
5447
|
}
|
|
5424
|
-
}),
|
|
5448
|
+
}), is = /* @__PURE__ */ D({
|
|
5425
5449
|
__name: "MListSubheader",
|
|
5426
5450
|
props: { inset: {
|
|
5427
5451
|
type: Boolean,
|
|
@@ -5433,16 +5457,16 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5433
5457
|
role: "presentation"
|
|
5434
5458
|
}, [H(t.$slots, "default")], 2));
|
|
5435
5459
|
}
|
|
5436
|
-
}),
|
|
5460
|
+
}), as = {
|
|
5437
5461
|
key: 0,
|
|
5438
5462
|
class: "text-body-large text-on-surface-variant"
|
|
5439
|
-
},
|
|
5463
|
+
}, os = {
|
|
5440
5464
|
key: 1,
|
|
5441
5465
|
class: "relative"
|
|
5442
|
-
},
|
|
5466
|
+
}, ss = {
|
|
5443
5467
|
key: 0,
|
|
5444
5468
|
class: "text-body-medium text-on-surface-variant"
|
|
5445
|
-
},
|
|
5469
|
+
}, cs = /* @__PURE__ */ D({
|
|
5446
5470
|
__name: "MLoadingOverlay",
|
|
5447
5471
|
props: {
|
|
5448
5472
|
visible: { type: Boolean },
|
|
@@ -5475,11 +5499,11 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5475
5499
|
size: e.spinnerSize,
|
|
5476
5500
|
class: "text-primary"
|
|
5477
5501
|
}, null, 8, ["size"]),
|
|
5478
|
-
e.text ? (L(), S("p",
|
|
5502
|
+
e.text ? (L(), S("p", as, G(e.text), 1)) : x("", !0),
|
|
5479
5503
|
H(t.$slots, "default")
|
|
5480
5504
|
], 2)) : x("", !0)]),
|
|
5481
5505
|
_: 3
|
|
5482
|
-
})])) : (L(), S("div",
|
|
5506
|
+
})])) : (L(), S("div", os, [H(t.$slots, "content"), E(g, {
|
|
5483
5507
|
"enter-active-class": "transition-opacity duration-200",
|
|
5484
5508
|
"enter-from-class": "opacity-0",
|
|
5485
5509
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -5493,13 +5517,13 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5493
5517
|
size: e.spinnerSize,
|
|
5494
5518
|
class: "text-primary"
|
|
5495
5519
|
}, null, 8, ["size"]),
|
|
5496
|
-
e.text ? (L(), S("p",
|
|
5520
|
+
e.text ? (L(), S("p", ss, G(e.text), 1)) : x("", !0),
|
|
5497
5521
|
H(t.$slots, "default")
|
|
5498
5522
|
], 2)) : x("", !0)]),
|
|
5499
5523
|
_: 3
|
|
5500
5524
|
})]));
|
|
5501
5525
|
}
|
|
5502
|
-
}),
|
|
5526
|
+
}), ls = /* @__PURE__ */ D({
|
|
5503
5527
|
__name: "MMasonry",
|
|
5504
5528
|
props: {
|
|
5505
5529
|
cols: { default: 2 },
|
|
@@ -5550,25 +5574,25 @@ var ya = ["aria-label", "disabled"], ba = { class: "leading-none" }, xa = /* @__
|
|
|
5550
5574
|
class: "relative w-full"
|
|
5551
5575
|
}, [H(e.$slots, "default")], 512));
|
|
5552
5576
|
}
|
|
5553
|
-
}),
|
|
5554
|
-
function
|
|
5555
|
-
return L(), S("hr",
|
|
5577
|
+
}), us = {}, ds = { class: "my-1 border-outline-variant" };
|
|
5578
|
+
function fs(e, t) {
|
|
5579
|
+
return L(), S("hr", ds);
|
|
5556
5580
|
}
|
|
5557
|
-
var
|
|
5581
|
+
var ps = /*#__PURE__*/ p(us, [["render", fs]]), ms = { class: "flex flex-col gap-1" }, hs = [
|
|
5558
5582
|
"id",
|
|
5559
5583
|
"value",
|
|
5560
5584
|
"disabled",
|
|
5561
5585
|
"required"
|
|
5562
|
-
],
|
|
5586
|
+
], gs = ["for"], _s = {
|
|
5563
5587
|
key: 0,
|
|
5564
5588
|
class: "text-error"
|
|
5565
|
-
},
|
|
5589
|
+
}, vs = {
|
|
5566
5590
|
key: 0,
|
|
5567
5591
|
class: "px-4 text-body-small text-error"
|
|
5568
|
-
},
|
|
5592
|
+
}, ys = {
|
|
5569
5593
|
key: 1,
|
|
5570
5594
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5571
|
-
},
|
|
5595
|
+
}, bs = /* @__PURE__ */ D({
|
|
5572
5596
|
__name: "MMaskField",
|
|
5573
5597
|
props: {
|
|
5574
5598
|
modelValue: {},
|
|
@@ -5665,7 +5689,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5665
5689
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
5666
5690
|
].join(" ");
|
|
5667
5691
|
});
|
|
5668
|
-
return (t, n) => (L(), S("div",
|
|
5692
|
+
return (t, n) => (L(), S("div", ms, [C("div", {
|
|
5669
5693
|
ref_key: "fieldBgEl",
|
|
5670
5694
|
ref: c,
|
|
5671
5695
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -5691,11 +5715,11 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5691
5715
|
class: M(D.value),
|
|
5692
5716
|
onInput: y,
|
|
5693
5717
|
onKeydown: b
|
|
5694
|
-
}, null, 42,
|
|
5718
|
+
}, null, 42, hs),
|
|
5695
5719
|
C("label", {
|
|
5696
5720
|
for: K(s),
|
|
5697
5721
|
class: M(O.value)
|
|
5698
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
5722
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", _s, "\xA0*")) : x("", !0)], 10, gs),
|
|
5699
5723
|
h.value ? (L(), S("button", {
|
|
5700
5724
|
key: 1,
|
|
5701
5725
|
type: "button",
|
|
@@ -5707,31 +5731,31 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5707
5731
|
name: "close",
|
|
5708
5732
|
size: 18
|
|
5709
5733
|
})])) : x("", !0)
|
|
5710
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
5734
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", vs, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", ys, G(e.hint), 1)) : x("", !0)]));
|
|
5711
5735
|
}
|
|
5712
|
-
}),
|
|
5736
|
+
}), xs = { class: "flex flex-col gap-1" }, Ss = ["onClick"], Cs = ["title"], ws = [
|
|
5713
5737
|
"id",
|
|
5714
5738
|
"value",
|
|
5715
5739
|
"placeholder",
|
|
5716
5740
|
"disabled",
|
|
5717
5741
|
"aria-expanded",
|
|
5718
5742
|
"aria-disabled"
|
|
5719
|
-
],
|
|
5743
|
+
], Ts = ["for"], Es = {
|
|
5720
5744
|
key: 0,
|
|
5721
5745
|
class: "text-error"
|
|
5722
|
-
},
|
|
5746
|
+
}, Ds = { class: "pointer-events-none absolute right-2 top-4" }, Os = {
|
|
5723
5747
|
key: 0,
|
|
5724
5748
|
class: "px-4 text-body-small text-error"
|
|
5725
|
-
},
|
|
5749
|
+
}, ks = {
|
|
5726
5750
|
key: 1,
|
|
5727
5751
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5728
|
-
},
|
|
5752
|
+
}, As = { class: "flex flex-col py-1" }, js = ["onMousedown"], Ms = { class: "text-body-large text-on-surface" }, Ns = {
|
|
5729
5753
|
key: 0,
|
|
5730
5754
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
5731
|
-
},
|
|
5755
|
+
}, Ps = { 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" }, Fs = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, Is = { class: "text-headline-small text-on-surface" }, Ls = { class: "px-6 pb-3" }, Rs = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, zs = ["value", "placeholder"], Bs = { class: "flex-1 overflow-y-auto py-2" }, Vs = { class: "text-body-large text-on-surface" }, Hs = {
|
|
5732
5756
|
key: 0,
|
|
5733
5757
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
5734
|
-
},
|
|
5758
|
+
}, Us = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
5735
5759
|
__name: "MMultiAutocomplete",
|
|
5736
5760
|
props: {
|
|
5737
5761
|
modelValue: { default: () => [] },
|
|
@@ -5927,7 +5951,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5927
5951
|
u.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
5928
5952
|
].join(" ");
|
|
5929
5953
|
});
|
|
5930
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
5954
|
+
return (t, n) => (L(), S(m, null, [C("div", xs, [C("div", {
|
|
5931
5955
|
ref_key: "fieldEl",
|
|
5932
5956
|
ref: w,
|
|
5933
5957
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -5954,13 +5978,13 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5954
5978
|
}, [E(r, {
|
|
5955
5979
|
name: "close",
|
|
5956
5980
|
size: 12
|
|
5957
|
-
})], 8,
|
|
5981
|
+
})], 8, Ss)]))), 128)),
|
|
5958
5982
|
re.value > 0 && !ie.value ? (L(), S("span", {
|
|
5959
5983
|
key: 0,
|
|
5960
5984
|
title: $.value,
|
|
5961
5985
|
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",
|
|
5962
5986
|
onClick: n[0] ||= Q((e) => ie.value = !0, ["stop"])
|
|
5963
|
-
}, " +" + G(re.value), 9,
|
|
5987
|
+
}, " +" + G(re.value), 9, Cs)) : x("", !0),
|
|
5964
5988
|
ie.value && e.modelValue.length > e.maxChips ? (L(), S("span", {
|
|
5965
5989
|
key: 1,
|
|
5966
5990
|
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",
|
|
@@ -5986,11 +6010,11 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
5986
6010
|
onBlur: pe,
|
|
5987
6011
|
onInput: me,
|
|
5988
6012
|
onKeydown: _e
|
|
5989
|
-
}, null, 40,
|
|
6013
|
+
}, null, 40, ws)], 2),
|
|
5990
6014
|
C("label", {
|
|
5991
6015
|
for: K(c),
|
|
5992
6016
|
class: M(Se.value)
|
|
5993
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
6017
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", Es, "\xA0*")) : x("", !0)], 10, Ts),
|
|
5994
6018
|
e.clearable && ee.value && !e.disabled ? (L(), S("button", {
|
|
5995
6019
|
key: 1,
|
|
5996
6020
|
type: "button",
|
|
@@ -6002,12 +6026,12 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6002
6026
|
name: "close",
|
|
6003
6027
|
size: 18
|
|
6004
6028
|
})])) : x("", !0),
|
|
6005
|
-
C("div",
|
|
6029
|
+
C("div", Ds, [E(r, {
|
|
6006
6030
|
name: "arrow_drop_down",
|
|
6007
6031
|
size: 24,
|
|
6008
6032
|
class: M(["text-on-surface-variant transition-transform duration-200", u.value || f.value ? "rotate-180" : ""])
|
|
6009
6033
|
}, null, 8, ["class"])])
|
|
6010
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
6034
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Os, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", ks, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
6011
6035
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6012
6036
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6013
6037
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6021,7 +6045,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6021
6045
|
ref: k,
|
|
6022
6046
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6023
6047
|
style: N(A.value)
|
|
6024
|
-
}, [C("div",
|
|
6048
|
+
}, [C("div", As, [(L(!0), S(m, null, V(te.value, (t, n) => (L(), S("label", {
|
|
6025
6049
|
key: n,
|
|
6026
6050
|
"data-option": "",
|
|
6027
6051
|
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" : ""]]),
|
|
@@ -6029,20 +6053,20 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6029
6053
|
}, [E(zn, {
|
|
6030
6054
|
"model-value": Y(e.modelValue, t.value),
|
|
6031
6055
|
disabled: t.disabled
|
|
6032
|
-
}, null, 8, ["model-value", "disabled"]), C("span",
|
|
6056
|
+
}, null, 8, ["model-value", "disabled"]), C("span", Ms, G(t.label), 1)], 42, js))), 128)), te.value.length ? x("", !0) : (L(), S("p", Ns, G(ne.value), 1))])], 4)) : x("", !0)]),
|
|
6033
6057
|
_: 1
|
|
6034
6058
|
}), E(g, { name: "m3-mac-modal" }, {
|
|
6035
6059
|
default: Z(() => [f.value && e.mode === "modal" ? (L(), S("div", {
|
|
6036
6060
|
key: 0,
|
|
6037
6061
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6038
6062
|
onClick: Q(de, ["self"])
|
|
6039
|
-
}, [C("div",
|
|
6040
|
-
C("div",
|
|
6063
|
+
}, [C("div", Ps, [
|
|
6064
|
+
C("div", Fs, [C("h2", Is, G(e.label || e.placeholder), 1), E(l, {
|
|
6041
6065
|
icon: "close",
|
|
6042
6066
|
label: K(s).close,
|
|
6043
6067
|
onClick: de
|
|
6044
6068
|
}, null, 8, ["label"])]),
|
|
6045
|
-
C("div",
|
|
6069
|
+
C("div", Ls, [C("div", Rs, [E(r, {
|
|
6046
6070
|
name: "search",
|
|
6047
6071
|
size: 16,
|
|
6048
6072
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6052,9 +6076,9 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6052
6076
|
placeholder: K(s).search,
|
|
6053
6077
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant",
|
|
6054
6078
|
onInput: n[4] ||= (e) => W(e.target.value)
|
|
6055
|
-
}, null, 40,
|
|
6079
|
+
}, null, 40, zs)])]),
|
|
6056
6080
|
n[5] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6057
|
-
C("div",
|
|
6081
|
+
C("div", Bs, [(L(!0), S(m, null, V(le.value, (t, n) => (L(), S("label", {
|
|
6058
6082
|
key: n,
|
|
6059
6083
|
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" : ""])
|
|
6060
6084
|
}, [E(zn, {
|
|
@@ -6065,37 +6089,37 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6065
6089
|
"model-value",
|
|
6066
6090
|
"disabled",
|
|
6067
6091
|
"onUpdate:modelValue"
|
|
6068
|
-
]), C("span",
|
|
6092
|
+
]), C("span", Vs, G(t.label), 1)], 2))), 128)), le.value.length ? x("", !0) : (L(), S("p", Hs, G(ne.value), 1))])
|
|
6069
6093
|
])])) : x("", !0)]),
|
|
6070
6094
|
_: 1
|
|
6071
6095
|
})]))], 64));
|
|
6072
6096
|
}
|
|
6073
|
-
}), [["__scopeId", "data-v-3337b2c7"]]),
|
|
6097
|
+
}), [["__scopeId", "data-v-3337b2c7"]]), Ws = { class: "flex flex-col gap-1" }, Gs = [
|
|
6074
6098
|
"id",
|
|
6075
6099
|
"tabindex",
|
|
6076
6100
|
"aria-expanded"
|
|
6077
|
-
],
|
|
6101
|
+
], Ks = ["onClick"], qs = ["title"], Js = {
|
|
6078
6102
|
key: 1,
|
|
6079
6103
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
6080
|
-
},
|
|
6104
|
+
}, Ys = {
|
|
6081
6105
|
key: 0,
|
|
6082
6106
|
class: "text-error"
|
|
6083
|
-
},
|
|
6107
|
+
}, Xs = { class: "pointer-events-none absolute right-2 top-4" }, Zs = {
|
|
6084
6108
|
key: 0,
|
|
6085
6109
|
class: "px-4 text-body-small text-error"
|
|
6086
|
-
},
|
|
6110
|
+
}, Qs = {
|
|
6087
6111
|
key: 1,
|
|
6088
6112
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6089
|
-
},
|
|
6113
|
+
}, $s = {
|
|
6090
6114
|
key: 0,
|
|
6091
6115
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
6092
|
-
},
|
|
6116
|
+
}, ec = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, tc = ["placeholder"], nc = { class: "flex flex-col py-1" }, rc = { class: "text-body-large text-on-surface" }, ic = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, ac = { 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" }, oc = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, sc = { class: "text-headline-small text-on-surface" }, cc = {
|
|
6093
6117
|
key: 0,
|
|
6094
6118
|
class: "px-6 pb-3"
|
|
6095
|
-
},
|
|
6119
|
+
}, lc = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, uc = ["placeholder"], dc = { class: "flex-1 overflow-y-auto py-2" }, fc = { class: "text-body-large text-on-surface" }, pc = {
|
|
6096
6120
|
key: 0,
|
|
6097
6121
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
6098
|
-
},
|
|
6122
|
+
}, mc = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6099
6123
|
__name: "MMultiSelect",
|
|
6100
6124
|
props: {
|
|
6101
6125
|
modelValue: { default: () => [] },
|
|
@@ -6238,7 +6262,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6238
6262
|
u.value ? o.error ? "text-error" : "text-primary" : o.error ? "text-error" : "text-on-surface-variant"
|
|
6239
6263
|
].join(" ");
|
|
6240
6264
|
});
|
|
6241
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
6265
|
+
return (t, n) => (L(), S(m, null, [C("div", Ws, [C("div", {
|
|
6242
6266
|
ref_key: "fieldEl",
|
|
6243
6267
|
ref: _,
|
|
6244
6268
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6275,13 +6299,13 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6275
6299
|
}, [E(r, {
|
|
6276
6300
|
name: "close",
|
|
6277
6301
|
size: 12
|
|
6278
|
-
})], 8,
|
|
6302
|
+
})], 8, Ks)]))), 128)),
|
|
6279
6303
|
z.value > 0 && !U.value ? (L(), S("span", {
|
|
6280
6304
|
key: 0,
|
|
6281
6305
|
title: q.value,
|
|
6282
6306
|
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",
|
|
6283
6307
|
onClick: n[0] ||= Q((e) => U.value = !0, ["stop"])
|
|
6284
|
-
}, " +" + G(z.value), 9,
|
|
6308
|
+
}, " +" + G(z.value), 9, qs)) : x("", !0),
|
|
6285
6309
|
U.value && e.modelValue.length > e.maxChips ? (L(), S("span", {
|
|
6286
6310
|
key: 1,
|
|
6287
6311
|
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",
|
|
@@ -6290,8 +6314,8 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6290
6314
|
name: "unfold_less",
|
|
6291
6315
|
size: 14
|
|
6292
6316
|
})])) : x("", !0)
|
|
6293
|
-
], 64)) : u.value ? x("", !0) : (L(), S("span",
|
|
6294
|
-
C("label", { class: M(ue.value) }, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
6317
|
+
], 64)) : u.value ? x("", !0) : (L(), S("span", Js, G(e.placeholder), 1))], 42, Gs),
|
|
6318
|
+
C("label", { class: M(ue.value) }, [T(G(e.label), 1), e.required ? (L(), S("span", Ys, "\xA0*")) : x("", !0)], 2),
|
|
6295
6319
|
e.clearable && P.value && !e.disabled ? (L(), S("button", {
|
|
6296
6320
|
key: 1,
|
|
6297
6321
|
type: "button",
|
|
@@ -6303,12 +6327,12 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6303
6327
|
name: "close",
|
|
6304
6328
|
size: 18
|
|
6305
6329
|
})])) : x("", !0),
|
|
6306
|
-
C("div",
|
|
6330
|
+
C("div", Xs, [E(r, {
|
|
6307
6331
|
name: "arrow_drop_down",
|
|
6308
6332
|
size: 24,
|
|
6309
6333
|
class: M(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
6310
6334
|
}, null, 8, ["class"])])
|
|
6311
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
6335
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Zs, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Qs, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
6312
6336
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6313
6337
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6314
6338
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6322,7 +6346,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6322
6346
|
ref: w,
|
|
6323
6347
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6324
6348
|
style: N(O.value)
|
|
6325
|
-
}, [e.searchable ? (L(), S("div",
|
|
6349
|
+
}, [e.searchable ? (L(), S("div", $s, [C("div", ec, [E(r, {
|
|
6326
6350
|
name: "search",
|
|
6327
6351
|
size: 16,
|
|
6328
6352
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6333,7 +6357,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6333
6357
|
type: "text",
|
|
6334
6358
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
6335
6359
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6336
|
-
}, null, 8,
|
|
6360
|
+
}, null, 8, tc), [[ee, p.value]])])])) : x("", !0), C("div", nc, [(L(!0), S(m, null, V(R.value, (t, n) => (L(), S("label", {
|
|
6337
6361
|
key: n,
|
|
6338
6362
|
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" : ""])
|
|
6339
6363
|
}, [E(zn, {
|
|
@@ -6344,20 +6368,20 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6344
6368
|
"model-value",
|
|
6345
6369
|
"disabled",
|
|
6346
6370
|
"onUpdate:modelValue"
|
|
6347
|
-
]), C("span",
|
|
6371
|
+
]), C("span", rc, G(t.label), 1)], 2))), 128)), R.value.length === 0 ? H(t.$slots, "no-results", { key: 0 }, () => [C("p", ic, G(e.noResultsText ?? K(i).noResults), 1)], !0) : x("", !0)])], 4)) : x("", !0)]),
|
|
6348
6372
|
_: 3
|
|
6349
6373
|
}), E(g, { name: "m3-ms-modal" }, {
|
|
6350
6374
|
default: Z(() => [d.value && e.mode === "modal" ? (L(), S("div", {
|
|
6351
6375
|
key: 0,
|
|
6352
6376
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6353
6377
|
onClick: Q($, ["self"])
|
|
6354
|
-
}, [C("div",
|
|
6355
|
-
C("div",
|
|
6378
|
+
}, [C("div", ac, [
|
|
6379
|
+
C("div", oc, [C("h2", sc, G(e.label || e.placeholder), 1), E(l, {
|
|
6356
6380
|
icon: "close",
|
|
6357
6381
|
label: K(i).close,
|
|
6358
6382
|
onClick: $
|
|
6359
6383
|
}, null, 8, ["label"])]),
|
|
6360
|
-
e.searchable ? (L(), S("div",
|
|
6384
|
+
e.searchable ? (L(), S("div", cc, [C("div", lc, [E(r, {
|
|
6361
6385
|
name: "search",
|
|
6362
6386
|
size: 16,
|
|
6363
6387
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6366,9 +6390,9 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6366
6390
|
type: "text",
|
|
6367
6391
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
6368
6392
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6369
|
-
}, null, 8,
|
|
6393
|
+
}, null, 8, uc), [[ee, f.value]])])])) : x("", !0),
|
|
6370
6394
|
n[9] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6371
|
-
C("div",
|
|
6395
|
+
C("div", dc, [(L(!0), S(m, null, V(oe.value, (t, n) => (L(), S("label", {
|
|
6372
6396
|
key: n,
|
|
6373
6397
|
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" : ""])
|
|
6374
6398
|
}, [E(zn, {
|
|
@@ -6379,12 +6403,12 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6379
6403
|
"model-value",
|
|
6380
6404
|
"disabled",
|
|
6381
6405
|
"onUpdate:modelValue"
|
|
6382
|
-
]), C("span",
|
|
6406
|
+
]), C("span", fc, G(t.label), 1)], 2))), 128)), oe.value.length ? x("", !0) : (L(), S("p", pc, G(e.noResultsText ?? K(i).noResults), 1))])
|
|
6383
6407
|
])])) : x("", !0)]),
|
|
6384
6408
|
_: 1
|
|
6385
6409
|
})]))], 64));
|
|
6386
6410
|
}
|
|
6387
|
-
}), [["__scopeId", "data-v-67bbd3cf"]]),
|
|
6411
|
+
}), [["__scopeId", "data-v-67bbd3cf"]]), hc = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, gc = ["onClick"], _c = /* @__PURE__ */ D({
|
|
6388
6412
|
__name: "MNavigationBar",
|
|
6389
6413
|
props: {
|
|
6390
6414
|
modelValue: {},
|
|
@@ -6392,7 +6416,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6392
6416
|
},
|
|
6393
6417
|
emits: ["update:modelValue"],
|
|
6394
6418
|
setup(e) {
|
|
6395
|
-
return (t, n) => (L(), S("nav",
|
|
6419
|
+
return (t, n) => (L(), S("nav", hc, [(L(!0), S(m, null, V(e.items, (n) => (L(), S("button", {
|
|
6396
6420
|
key: n.value,
|
|
6397
6421
|
type: "button",
|
|
6398
6422
|
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"]),
|
|
@@ -6419,9 +6443,9 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6419
6443
|
size: 24
|
|
6420
6444
|
}, null, 8, ["name"])]),
|
|
6421
6445
|
_: 2
|
|
6422
|
-
}, 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,
|
|
6446
|
+
}, 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, gc))), 128))]));
|
|
6423
6447
|
}
|
|
6424
|
-
}),
|
|
6448
|
+
}), vc = { class: "flex flex-col gap-1" }, yc = [
|
|
6425
6449
|
"id",
|
|
6426
6450
|
"value",
|
|
6427
6451
|
"disabled",
|
|
@@ -6429,19 +6453,19 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6429
6453
|
"min",
|
|
6430
6454
|
"max",
|
|
6431
6455
|
"step"
|
|
6432
|
-
],
|
|
6456
|
+
], bc = ["for"], xc = {
|
|
6433
6457
|
key: 0,
|
|
6434
6458
|
class: "text-error"
|
|
6435
|
-
},
|
|
6459
|
+
}, Sc = {
|
|
6436
6460
|
key: 1,
|
|
6437
6461
|
class: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5"
|
|
6438
|
-
},
|
|
6462
|
+
}, Cc = {
|
|
6439
6463
|
key: 0,
|
|
6440
6464
|
class: "px-4 text-body-small text-error"
|
|
6441
|
-
},
|
|
6465
|
+
}, wc = {
|
|
6442
6466
|
key: 1,
|
|
6443
6467
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6444
|
-
},
|
|
6468
|
+
}, Tc = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6445
6469
|
__name: "MNumberField",
|
|
6446
6470
|
props: {
|
|
6447
6471
|
modelValue: { default: null },
|
|
@@ -6533,7 +6557,7 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6533
6557
|
n.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
6534
6558
|
].join(" ");
|
|
6535
6559
|
});
|
|
6536
|
-
return (t, n) => (L(), S("div",
|
|
6560
|
+
return (t, n) => (L(), S("div", vc, [C("div", {
|
|
6537
6561
|
ref_key: "fieldBgEl",
|
|
6538
6562
|
ref: s,
|
|
6539
6563
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6559,12 +6583,12 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6559
6583
|
class: M(_.value),
|
|
6560
6584
|
onInput: p,
|
|
6561
6585
|
onKeydown: g
|
|
6562
|
-
}, null, 42,
|
|
6586
|
+
}, null, 42, yc),
|
|
6563
6587
|
C("label", {
|
|
6564
6588
|
for: K(o),
|
|
6565
6589
|
class: M(y.value)
|
|
6566
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
6567
|
-
e.stepper ? (L(), S("div",
|
|
6590
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", xc, "\xA0*")) : x("", !0)], 10, bc),
|
|
6591
|
+
e.stepper ? (L(), S("div", Sc, [E(l, {
|
|
6568
6592
|
icon: "remove",
|
|
6569
6593
|
label: "Decrease",
|
|
6570
6594
|
size: 32,
|
|
@@ -6577,9 +6601,9 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6577
6601
|
disabled: e.disabled || e.max !== void 0 && (e.modelValue ?? 0) >= e.max,
|
|
6578
6602
|
onClick: m
|
|
6579
6603
|
}, null, 8, ["disabled"])])) : x("", !0)
|
|
6580
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
6604
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Cc, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", wc, G(e.hint), 1)) : x("", !0)]));
|
|
6581
6605
|
}
|
|
6582
|
-
}), [["__scopeId", "data-v-f6db08d0"]]),
|
|
6606
|
+
}), [["__scopeId", "data-v-f6db08d0"]]), Ec = D({
|
|
6583
6607
|
name: "MDrawerItemList",
|
|
6584
6608
|
components: { MIcon: r },
|
|
6585
6609
|
props: {
|
|
@@ -6654,8 +6678,8 @@ var ms = /*#__PURE__*/ p(ds, [["render", ps]]), hs = { class: "flex flex-col gap
|
|
|
6654
6678
|
}).onfinish = t;
|
|
6655
6679
|
}
|
|
6656
6680
|
}
|
|
6657
|
-
}),
|
|
6658
|
-
function
|
|
6681
|
+
}), Dc = { key: 0 };
|
|
6682
|
+
function Oc(e, t, n, r, i, a) {
|
|
6659
6683
|
let o = U("MIcon"), s = U("MDrawerItemList");
|
|
6660
6684
|
return L(!0), S(m, null, V(e.items, (t) => (L(), S(m, { key: t.value }, [(L(), b(W(e.itemTag(t)), {
|
|
6661
6685
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -6695,7 +6719,7 @@ function kc(e, t, n, r, i, a) {
|
|
|
6695
6719
|
onEnter: e.onEnter,
|
|
6696
6720
|
onLeave: e.onLeave
|
|
6697
6721
|
}, {
|
|
6698
|
-
default: Z(() => [t.children?.length && e.openItems[t.value] ? (L(), S("div",
|
|
6722
|
+
default: Z(() => [t.children?.length && e.openItems[t.value] ? (L(), S("div", Dc, [E(s, {
|
|
6699
6723
|
items: t.children,
|
|
6700
6724
|
selected: e.selected,
|
|
6701
6725
|
depth: e.depth + 1
|
|
@@ -6707,52 +6731,52 @@ function kc(e, t, n, r, i, a) {
|
|
|
6707
6731
|
_: 2
|
|
6708
6732
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
6709
6733
|
}
|
|
6710
|
-
var
|
|
6734
|
+
var kc = /*#__PURE__*/ p(Ec, [["render", Oc]]), Ac = {
|
|
6711
6735
|
key: 0,
|
|
6712
6736
|
class: "shrink-0"
|
|
6713
|
-
},
|
|
6737
|
+
}, jc = {
|
|
6714
6738
|
key: 1,
|
|
6715
6739
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
6716
|
-
},
|
|
6740
|
+
}, Mc = { class: "text-title-small font-medium text-on-surface-variant" }, Nc = { class: "flex min-h-0 flex-1 flex-col overflow-y-auto px-3 py-2" }, Pc = {
|
|
6717
6741
|
key: 0,
|
|
6718
6742
|
class: "my-1 border-t border-outline-variant"
|
|
6719
|
-
},
|
|
6743
|
+
}, Fc = ["onClick"], Ic = { class: "flex-1 text-left text-title-small font-medium" }, Lc = {
|
|
6720
6744
|
key: 2,
|
|
6721
6745
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
6722
|
-
},
|
|
6746
|
+
}, Rc = {
|
|
6723
6747
|
key: 0,
|
|
6724
6748
|
class: "nd-section-grid"
|
|
6725
|
-
},
|
|
6749
|
+
}, zc = { class: "nd-section-body" }, Bc = {
|
|
6726
6750
|
key: 2,
|
|
6727
6751
|
class: "text-label-medium text-on-surface-variant"
|
|
6728
|
-
},
|
|
6752
|
+
}, Vc = { key: 0 }, Hc = {
|
|
6729
6753
|
key: 0,
|
|
6730
6754
|
class: "nd-toggle shrink-0 border-b border-outline-variant"
|
|
6731
|
-
},
|
|
6755
|
+
}, Uc = { class: "nd-toggle-inner" }, Wc = {
|
|
6732
6756
|
key: 1,
|
|
6733
6757
|
class: "shrink-0"
|
|
6734
|
-
},
|
|
6758
|
+
}, Gc = {
|
|
6735
6759
|
key: 2,
|
|
6736
6760
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
6737
|
-
},
|
|
6761
|
+
}, Kc = { class: "px-5 pt-6 pb-2" }, qc = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Jc = { class: "flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, Yc = {
|
|
6738
6762
|
key: 0,
|
|
6739
6763
|
class: "my-1 border-t border-outline-variant"
|
|
6740
|
-
},
|
|
6764
|
+
}, Xc = ["title", "onClick"], Zc = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, Qc = {
|
|
6741
6765
|
key: 2,
|
|
6742
|
-
class: "nd-collapse-h overflow-hidden"
|
|
6743
|
-
},
|
|
6766
|
+
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
6767
|
+
}, $c = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, el = {
|
|
6744
6768
|
key: 0,
|
|
6745
6769
|
class: "nd-section-grid"
|
|
6746
|
-
},
|
|
6770
|
+
}, tl = { class: "nd-section-body" }, nl = {
|
|
6747
6771
|
key: 2,
|
|
6748
6772
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
6749
|
-
},
|
|
6773
|
+
}, rl = {
|
|
6750
6774
|
key: 0,
|
|
6751
6775
|
class: "nd-children-divider"
|
|
6752
|
-
},
|
|
6776
|
+
}, il = { key: 0 }, al = {
|
|
6753
6777
|
key: 1,
|
|
6754
6778
|
class: "nd-children-divider"
|
|
6755
|
-
},
|
|
6779
|
+
}, ol = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6756
6780
|
__name: "MNavigationDrawer",
|
|
6757
6781
|
props: {
|
|
6758
6782
|
modelValue: { type: Boolean },
|
|
@@ -6851,8 +6875,8 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6851
6875
|
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
6852
6876
|
]),
|
|
6853
6877
|
style: N(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
6854
|
-
}, [t.$slots.header ? (L(), S("div",
|
|
6855
|
-
n > 0 ? (L(), S("div",
|
|
6878
|
+
}, [t.$slots.header ? (L(), S("div", Ac, [H(t.$slots, "header", {}, void 0, !0)])) : e.title ? (L(), S("div", jc, [C("h2", Mc, G(e.title), 1)])) : x("", !0), C("div", Nc, [(L(!0), S(m, null, V(e.sections, (t, n) => (L(), S(m, { key: n }, [
|
|
6879
|
+
n > 0 ? (L(), S("div", Pc)) : x("", !0),
|
|
6856
6880
|
t.title && t.collapsible ? (L(), S("button", {
|
|
6857
6881
|
key: 1,
|
|
6858
6882
|
type: "button",
|
|
@@ -6865,15 +6889,15 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6865
6889
|
size: 24,
|
|
6866
6890
|
class: "shrink-0"
|
|
6867
6891
|
}, null, 8, ["name"])) : x("", !0),
|
|
6868
|
-
C("span",
|
|
6892
|
+
C("span", Ic, G(t.title), 1),
|
|
6869
6893
|
E(r, {
|
|
6870
6894
|
name: c(t, n) ? "expand_less" : "expand_more",
|
|
6871
6895
|
size: 18,
|
|
6872
6896
|
class: "shrink-0"
|
|
6873
6897
|
}, null, 8, ["name"])
|
|
6874
|
-
], 8,
|
|
6898
|
+
], 8, Fc)) : t.title ? (L(), S("p", Lc, G(t.title), 1)) : x("", !0),
|
|
6875
6899
|
E(g, { name: "nd-section" }, {
|
|
6876
|
-
default: Z(() => [!t.collapsible || c(t, n) ? (L(), S("div",
|
|
6900
|
+
default: Z(() => [!t.collapsible || c(t, n) ? (L(), S("div", Rc, [C("div", zc, [(L(!0), S(m, null, V(t.items, (n) => (L(), S(m, { key: n.value }, [(L(), b(W(k(n)), {
|
|
6877
6901
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
6878
6902
|
type: n.to ? void 0 : "button",
|
|
6879
6903
|
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"]]),
|
|
@@ -6892,7 +6916,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6892
6916
|
name: u(n) ? "expand_less" : "expand_more",
|
|
6893
6917
|
size: 18,
|
|
6894
6918
|
class: "shrink-0 text-on-surface-variant"
|
|
6895
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span",
|
|
6919
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span", Bc, G(n.badge), 1))
|
|
6896
6920
|
]),
|
|
6897
6921
|
_: 2
|
|
6898
6922
|
}, 1032, [
|
|
@@ -6907,7 +6931,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6907
6931
|
onEnter: w,
|
|
6908
6932
|
onLeave: T
|
|
6909
6933
|
}, {
|
|
6910
|
-
default: Z(() => [n.children?.length && u(n) ? (L(), S("div",
|
|
6934
|
+
default: Z(() => [n.children?.length && u(n) ? (L(), S("div", Vc, [E(kc, {
|
|
6911
6935
|
items: n.children,
|
|
6912
6936
|
selected: e.selected
|
|
6913
6937
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
@@ -6925,10 +6949,10 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6925
6949
|
"--nd-width": e.width ?? "18rem"
|
|
6926
6950
|
})
|
|
6927
6951
|
}, [
|
|
6928
|
-
t.$slots.toggle ? (L(), S("div",
|
|
6929
|
-
t.$slots.header ? (L(), S("div",
|
|
6930
|
-
C("div",
|
|
6931
|
-
n > 0 ? (L(), S("div",
|
|
6952
|
+
t.$slots.toggle ? (L(), S("div", Hc, [C("div", Uc, [H(t.$slots, "toggle", {}, void 0, !0)])])) : x("", !0),
|
|
6953
|
+
t.$slots.header ? (L(), S("div", Wc, [H(t.$slots, "header", {}, void 0, !0)])) : e.title ? (L(), S("div", Gc, [C("div", Kc, [C("h2", qc, G(e.title), 1)])])) : x("", !0),
|
|
6954
|
+
C("div", Jc, [(L(!0), S(m, null, V(e.sections, (t, n) => (L(), S(m, { key: n }, [
|
|
6955
|
+
n > 0 ? (L(), S("div", Yc)) : x("", !0),
|
|
6932
6956
|
t.title && t.collapsible ? (L(), S("button", {
|
|
6933
6957
|
key: 1,
|
|
6934
6958
|
type: "button",
|
|
@@ -6942,15 +6966,15 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6942
6966
|
size: 24,
|
|
6943
6967
|
class: "shrink-0"
|
|
6944
6968
|
}, null, 8, ["name"])) : x("", !0),
|
|
6945
|
-
C("span",
|
|
6969
|
+
C("span", Zc, G(t.title), 1),
|
|
6946
6970
|
E(r, {
|
|
6947
6971
|
name: c(t, n) ? "expand_less" : "expand_more",
|
|
6948
6972
|
size: 18,
|
|
6949
6973
|
class: "nd-label shrink-0"
|
|
6950
6974
|
}, null, 8, ["name"])
|
|
6951
|
-
], 8,
|
|
6975
|
+
], 8, Xc)) : t.title ? (L(), S("div", Qc, [C("p", $c, G(t.title), 1)])) : x("", !0),
|
|
6952
6976
|
E(g, { name: "nd-section" }, {
|
|
6953
|
-
default: Z(() => [!t.collapsible || c(t, n) ? (L(), S("div",
|
|
6977
|
+
default: Z(() => [!t.collapsible || c(t, n) ? (L(), S("div", el, [C("div", tl, [(L(!0), S(m, null, V(t.items, (n) => (L(), S(m, { key: n.value }, [
|
|
6954
6978
|
(L(), b(W(k(n)), {
|
|
6955
6979
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
6956
6980
|
type: n.to ? void 0 : "button",
|
|
@@ -6972,7 +6996,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6972
6996
|
name: u(n) ? "expand_less" : "expand_more",
|
|
6973
6997
|
size: 18,
|
|
6974
6998
|
class: "nd-label shrink-0 text-on-surface-variant"
|
|
6975
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span",
|
|
6999
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (L(), S("span", nl, G(n.badge), 1))
|
|
6976
7000
|
]),
|
|
6977
7001
|
_: 2
|
|
6978
7002
|
}, 1032, [
|
|
@@ -6983,29 +7007,29 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
6983
7007
|
"disabled",
|
|
6984
7008
|
"onClick"
|
|
6985
7009
|
])),
|
|
6986
|
-
n.children?.length && u(n) ? (L(), S("div",
|
|
7010
|
+
n.children?.length && u(n) ? (L(), S("div", rl)) : x("", !0),
|
|
6987
7011
|
E(g, {
|
|
6988
7012
|
css: !1,
|
|
6989
7013
|
onEnter: w,
|
|
6990
7014
|
onLeave: T
|
|
6991
7015
|
}, {
|
|
6992
|
-
default: Z(() => [n.children?.length && u(n) ? (L(), S("div",
|
|
7016
|
+
default: Z(() => [n.children?.length && u(n) ? (L(), S("div", il, [E(kc, {
|
|
6993
7017
|
items: n.children,
|
|
6994
7018
|
selected: e.selected
|
|
6995
7019
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
6996
7020
|
_: 2
|
|
6997
7021
|
}, 1024),
|
|
6998
|
-
n.children?.length && u(n) ? (L(), S("div",
|
|
7022
|
+
n.children?.length && u(n) ? (L(), S("div", al)) : x("", !0)
|
|
6999
7023
|
], 64))), 128))])])) : x("", !0)]),
|
|
7000
7024
|
_: 2
|
|
7001
7025
|
}, 1024)
|
|
7002
7026
|
], 64))), 128)), H(t.$slots, "default", {}, void 0, !0)])
|
|
7003
7027
|
], 6));
|
|
7004
7028
|
}
|
|
7005
|
-
}), [["__scopeId", "data-v-
|
|
7029
|
+
}), [["__scopeId", "data-v-1dfa0ccc"]]), sl = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, cl = {
|
|
7006
7030
|
key: 0,
|
|
7007
7031
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
7008
|
-
},
|
|
7032
|
+
}, ll = ["disabled", "onClick"], ul = /* @__PURE__ */ D({
|
|
7009
7033
|
__name: "MNavigationRail",
|
|
7010
7034
|
props: {
|
|
7011
7035
|
modelValue: {},
|
|
@@ -7014,7 +7038,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7014
7038
|
},
|
|
7015
7039
|
emits: ["update:modelValue"],
|
|
7016
7040
|
setup(e) {
|
|
7017
|
-
return (t, n) => (L(), S("nav",
|
|
7041
|
+
return (t, n) => (L(), S("nav", sl, [t.$slots.fab ? (L(), S("div", cl, [H(t.$slots, "fab")])) : x("", !0), C("div", { class: M(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
7018
7042
|
"justify-start": e.alignment === "top",
|
|
7019
7043
|
"justify-center": e.alignment === "center",
|
|
7020
7044
|
"justify-end": e.alignment === "bottom"
|
|
@@ -7046,9 +7070,9 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7046
7070
|
size: 24
|
|
7047
7071
|
}, null, 8, ["name"])]),
|
|
7048
7072
|
_: 2
|
|
7049
|
-
}, 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,
|
|
7073
|
+
}, 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, ll))), 128))], 2)]));
|
|
7050
7074
|
}
|
|
7051
|
-
}),
|
|
7075
|
+
}), dl = { class: "relative h-full w-full" }, fl = /* @__PURE__ */ D({
|
|
7052
7076
|
__name: "MOverlay",
|
|
7053
7077
|
props: {
|
|
7054
7078
|
modelValue: {
|
|
@@ -7081,17 +7105,17 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7081
7105
|
key: 0,
|
|
7082
7106
|
class: "absolute inset-0 bg-black/50",
|
|
7083
7107
|
onClick: a
|
|
7084
|
-
})) : x("", !0), C("div",
|
|
7108
|
+
})) : x("", !0), C("div", dl, [H(t.$slots, "default")])], 4)) : x("", !0)]),
|
|
7085
7109
|
_: 3
|
|
7086
7110
|
})]));
|
|
7087
7111
|
}
|
|
7088
|
-
}),
|
|
7112
|
+
}), pl = { class: "flex flex-col gap-1" }, ml = {
|
|
7089
7113
|
key: 0,
|
|
7090
7114
|
class: "text-label-small text-on-surface-variant"
|
|
7091
|
-
},
|
|
7115
|
+
}, hl = ["aria-valuenow"], gl = ["aria-valuenow"], _l = ["height", "viewBox"], vl = ["d", "stroke-width"], yl = {
|
|
7092
7116
|
key: 1,
|
|
7093
7117
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
7094
|
-
},
|
|
7118
|
+
}, bl = ["height", "viewBox"], xl = ["d", "stroke-width"], Sl = 20, Cl = 2.5, wl = 80, Tl = 2, El = 4, Dl = 10, Ol = 130, kl = /* @__PURE__ */ D({
|
|
7095
7119
|
__name: "MProgressBar",
|
|
7096
7120
|
props: {
|
|
7097
7121
|
value: {},
|
|
@@ -7123,10 +7147,10 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7123
7147
|
track: "bg-error-container",
|
|
7124
7148
|
text: "text-error"
|
|
7125
7149
|
}
|
|
7126
|
-
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() =>
|
|
7150
|
+
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() => Cl + a.value / 2), s = v(() => 2 * Cl + a.value), c = Sl * wl, l = (() => {
|
|
7127
7151
|
let e = "";
|
|
7128
|
-
for (let t = 0; t <= c; t +=
|
|
7129
|
-
let n = 4 -
|
|
7152
|
+
for (let t = 0; t <= c; t += Tl) {
|
|
7153
|
+
let n = 4 - Cl * Math.sin(t / Sl * Math.PI * 2);
|
|
7130
7154
|
e += `${t === 0 ? "M" : "L"}${t},${n.toFixed(2)} `;
|
|
7131
7155
|
}
|
|
7132
7156
|
return e.trim();
|
|
@@ -7154,8 +7178,8 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7154
7178
|
let y = B(null), b = B(null), w = B(""), T = null, E = 0, D = 2 * Math.PI / 800;
|
|
7155
7179
|
function O(e, t) {
|
|
7156
7180
|
let n = o.value, r = [];
|
|
7157
|
-
for (let i = 0; i <= c; i +=
|
|
7158
|
-
let a = n -
|
|
7181
|
+
for (let i = 0; i <= c; i += Tl) {
|
|
7182
|
+
let a = n - Cl * e * Math.sin(i / Sl * Math.PI * 2 + t);
|
|
7159
7183
|
r.push(`${i === 0 ? "M" : "L"}${i},${a.toFixed(2)}`);
|
|
7160
7184
|
}
|
|
7161
7185
|
return r.join(" ");
|
|
@@ -7163,23 +7187,23 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7163
7187
|
function k(e) {
|
|
7164
7188
|
let t = T === null ? 0 : e - T;
|
|
7165
7189
|
if (T = e, f -= t * D, t > 0) {
|
|
7166
|
-
let e = 1 - Math.exp(-t /
|
|
7190
|
+
let e = 1 - Math.exp(-t / Ol);
|
|
7167
7191
|
u += (r.value - u) * e;
|
|
7168
7192
|
}
|
|
7169
7193
|
d = _(p, e);
|
|
7170
|
-
let n =
|
|
7194
|
+
let n = El * d, i = u;
|
|
7171
7195
|
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);
|
|
7172
7196
|
}
|
|
7173
7197
|
X(r, (e, r) => {
|
|
7174
7198
|
if (t.variant !== "wavy" || n.value) return;
|
|
7175
7199
|
let i = performance.now();
|
|
7176
|
-
r <=
|
|
7200
|
+
r <= Dl && e > Dl && e < 100 ? g(p, d, 1, i) : r > Dl && e <= Dl || e === 100 ? g(p, d, 0, i) : r === 100 && e > Dl && g(p, d, 1, i);
|
|
7177
7201
|
});
|
|
7178
7202
|
function A() {
|
|
7179
7203
|
u = r.value;
|
|
7180
7204
|
let e = r.value;
|
|
7181
|
-
d = +(e >
|
|
7182
|
-
let t =
|
|
7205
|
+
d = +(e > Dl && e < 100), p.to = d, p.t0 = -1;
|
|
7206
|
+
let t = El * d;
|
|
7183
7207
|
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);
|
|
7184
7208
|
}
|
|
7185
7209
|
function P() {
|
|
@@ -7191,7 +7215,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7191
7215
|
e === "wavy" && !n.value ? (await j(), A()) : P();
|
|
7192
7216
|
}), X(n, async (e) => {
|
|
7193
7217
|
!e && t.variant === "wavy" ? (await j(), A()) : P();
|
|
7194
|
-
}), (t, o) => (L(), S("div",
|
|
7218
|
+
}), (t, o) => (L(), S("div", pl, [e.label ? (L(), S("span", ml, G(e.label), 1)) : x("", !0), e.variant === "linear" ? (L(), S("div", {
|
|
7195
7219
|
key: 1,
|
|
7196
7220
|
class: M(["relative w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
7197
7221
|
style: N({ height: `${a.value}px` }),
|
|
@@ -7206,7 +7230,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7206
7230
|
key: 0,
|
|
7207
7231
|
class: M(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
7208
7232
|
style: N({ width: `${r.value}%` })
|
|
7209
|
-
}, null, 6))], 14,
|
|
7233
|
+
}, null, 6))], 14, hl)) : (L(), S("div", {
|
|
7210
7234
|
key: 2,
|
|
7211
7235
|
class: "relative w-full overflow-visible",
|
|
7212
7236
|
style: N({ height: `${s.value}px` }),
|
|
@@ -7214,7 +7238,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7214
7238
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
7215
7239
|
"aria-valuemin": "0",
|
|
7216
7240
|
"aria-valuemax": "100"
|
|
7217
|
-
}, [n.value ? (L(), S("div",
|
|
7241
|
+
}, [n.value ? (L(), S("div", yl, [C("div", {
|
|
7218
7242
|
class: M(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
7219
7243
|
style: N({ width: `${c}px` })
|
|
7220
7244
|
}, [(L(), S("svg", {
|
|
@@ -7229,7 +7253,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7229
7253
|
stroke: "currentColor",
|
|
7230
7254
|
"stroke-width": a.value,
|
|
7231
7255
|
"stroke-linecap": "round"
|
|
7232
|
-
}, null, 8,
|
|
7256
|
+
}, null, 8, xl)], 8, bl))], 6)])) : (L(), S(m, { key: 0 }, [
|
|
7233
7257
|
C("div", {
|
|
7234
7258
|
ref_key: "waveClipEl",
|
|
7235
7259
|
ref: y,
|
|
@@ -7246,7 +7270,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7246
7270
|
stroke: "currentColor",
|
|
7247
7271
|
"stroke-width": a.value,
|
|
7248
7272
|
"stroke-linecap": "round"
|
|
7249
|
-
}, null, 8,
|
|
7273
|
+
}, null, 8, vl)], 10, _l))], 512),
|
|
7250
7274
|
C("div", {
|
|
7251
7275
|
ref_key: "trackEl",
|
|
7252
7276
|
ref: b,
|
|
@@ -7267,23 +7291,23 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7267
7291
|
height: `${a.value}px`
|
|
7268
7292
|
})
|
|
7269
7293
|
}, null, 6)
|
|
7270
|
-
], 64))], 12,
|
|
7294
|
+
], 64))], 12, gl))]));
|
|
7271
7295
|
}
|
|
7272
|
-
}),
|
|
7296
|
+
}), Al = { class: "inline-flex flex-col items-center gap-1" }, jl = {
|
|
7273
7297
|
key: 0,
|
|
7274
7298
|
class: "text-label-small text-on-surface-variant"
|
|
7275
|
-
},
|
|
7299
|
+
}, Ml = { class: "relative" }, Nl = [
|
|
7276
7300
|
"width",
|
|
7277
7301
|
"height",
|
|
7278
7302
|
"aria-valuenow"
|
|
7279
|
-
],
|
|
7303
|
+
], Pl = ["stroke-width"], Fl = ["stroke-width"], Il = ["id"], Ll = ["stroke-width"], Rl = ["stroke-width"], zl = [
|
|
7280
7304
|
"d",
|
|
7281
7305
|
"stroke-width",
|
|
7282
7306
|
"mask"
|
|
7283
|
-
],
|
|
7307
|
+
], Bl = ["stroke-width"], Vl = ["stroke-width"], Hl = {
|
|
7284
7308
|
key: 0,
|
|
7285
7309
|
class: "absolute inset-0 flex items-center justify-center"
|
|
7286
|
-
},
|
|
7310
|
+
}, Ul = 40, Wl = 12, Gl = .055, Kl = 10, ql = 130, Jl = /* @__PURE__ */ D({
|
|
7287
7311
|
__name: "MCircleProgressBar",
|
|
7288
7312
|
props: {
|
|
7289
7313
|
value: {},
|
|
@@ -7312,7 +7336,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7312
7336
|
fill: "var(--color-error)",
|
|
7313
7337
|
track: "var(--color-error-container)"
|
|
7314
7338
|
}
|
|
7315
|
-
}, i = v(() => r[t.color]), a = 2 * Math.PI *
|
|
7339
|
+
}, i = v(() => r[t.color]), a = 2 * Math.PI * Ul, o = Wl * 20, s = v(() => t.thickness), c = v(() => t.thickness + Math.ceil(2 * Ul * Gl) + 2), l = v(() => .75 + t.thickness * .25), u = v(() => n.value / 100 * a);
|
|
7316
7340
|
function d(e) {
|
|
7317
7341
|
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
7318
7342
|
}
|
|
@@ -7346,13 +7370,13 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7346
7370
|
return n >= 1 && (e.t0 = -1), r;
|
|
7347
7371
|
}
|
|
7348
7372
|
X(n, (e, n) => {
|
|
7349
|
-
t.indeterminate || (n <=
|
|
7373
|
+
t.indeterminate || (n <= Kl && e > Kl && E(y, p, 1, performance.now()), n > Kl && e <= Kl && 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())));
|
|
7350
7374
|
});
|
|
7351
|
-
let O = B(null), k = B(null), A = B(z(
|
|
7375
|
+
let O = B(null), k = B(null), A = B(z(Ul * Gl, 0)), j = null, M = 0, P = 2 * Math.PI / Wl / 90;
|
|
7352
7376
|
function R(e) {
|
|
7353
7377
|
let t = j === null ? 0 : e - j;
|
|
7354
7378
|
if (j = e, _ += t * P, t > 0) {
|
|
7355
|
-
let e = 1 - Math.exp(-t /
|
|
7379
|
+
let e = 1 - Math.exp(-t / ql);
|
|
7356
7380
|
f += (u.value - f) * e;
|
|
7357
7381
|
}
|
|
7358
7382
|
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) {
|
|
@@ -7362,12 +7386,12 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7362
7386
|
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;
|
|
7363
7387
|
d && (d.setAttribute("stroke-dasharray", `${s.toFixed(2)} ${(a - s).toFixed(2)}`), d.setAttribute("transform", `rotate(${c.toFixed(3)}, 50, 50)`));
|
|
7364
7388
|
let m = Math.max(0, o - 2 * r), v = Math.max(0, o - r), x = k.value;
|
|
7365
|
-
x && (x.setAttribute("stroke-dasharray", `${m.toFixed(2)} ${(a - m).toFixed(2)}`), x.setAttribute("stroke-dashoffset", v.toFixed(2))), A.value = z(
|
|
7389
|
+
x && (x.setAttribute("stroke-dasharray", `${m.toFixed(2)} ${(a - m).toFixed(2)}`), x.setAttribute("stroke-dashoffset", v.toFixed(2))), A.value = z(Ul * Gl * n, _), M = requestAnimationFrame(R);
|
|
7366
7390
|
}
|
|
7367
7391
|
function z(e, t) {
|
|
7368
7392
|
let n = [];
|
|
7369
7393
|
for (let r = 0; r <= o; r++) {
|
|
7370
|
-
let i = 2 * Math.PI * r / o - Math.PI / 2, a =
|
|
7394
|
+
let i = 2 * Math.PI * r / o - Math.PI / 2, a = Ul + e * Math.sin(Wl * i + t), s = 50 + a * Math.cos(i), c = 50 + a * Math.sin(i);
|
|
7371
7395
|
n.push(`${r === 0 ? "M" : "L"}${s.toFixed(2)},${c.toFixed(2)}`);
|
|
7372
7396
|
}
|
|
7373
7397
|
return n.join("") + "Z";
|
|
@@ -7380,7 +7404,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7380
7404
|
}
|
|
7381
7405
|
function W() {
|
|
7382
7406
|
let e = n.value;
|
|
7383
|
-
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 >
|
|
7407
|
+
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 > Kl && (p = 1, y.to = 1);
|
|
7384
7408
|
}
|
|
7385
7409
|
F(() => {
|
|
7386
7410
|
t.variant === "wavy" && !t.indeterminate && (W(), V());
|
|
@@ -7390,7 +7414,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7390
7414
|
e ? U() : t.variant === "wavy" && (W(), V());
|
|
7391
7415
|
});
|
|
7392
7416
|
let q = J();
|
|
7393
|
-
return (t, r) => (L(), S("div",
|
|
7417
|
+
return (t, r) => (L(), S("div", Al, [e.label ? (L(), S("span", jl, G(e.label), 1)) : x("", !0), C("div", Ml, [(L(), S("svg", {
|
|
7394
7418
|
width: e.size,
|
|
7395
7419
|
height: e.size,
|
|
7396
7420
|
viewBox: "0 0 100 100",
|
|
@@ -7402,14 +7426,14 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7402
7426
|
}, [e.indeterminate ? (L(), S(m, { key: 0 }, [C("circle", {
|
|
7403
7427
|
cx: "50",
|
|
7404
7428
|
cy: "50",
|
|
7405
|
-
r:
|
|
7429
|
+
r: Ul,
|
|
7406
7430
|
fill: "none",
|
|
7407
7431
|
"stroke-width": s.value,
|
|
7408
7432
|
style: N({ stroke: i.value.track })
|
|
7409
|
-
}, null, 12,
|
|
7433
|
+
}, null, 12, Pl), C("circle", {
|
|
7410
7434
|
cx: "50",
|
|
7411
7435
|
cy: "50",
|
|
7412
|
-
r:
|
|
7436
|
+
r: Ul,
|
|
7413
7437
|
fill: "none",
|
|
7414
7438
|
"stroke-width": s.value,
|
|
7415
7439
|
"stroke-linecap": "round",
|
|
@@ -7418,7 +7442,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7418
7442
|
transformOrigin: "50px 50px",
|
|
7419
7443
|
animation: "m3-cpb-spin 1.4s linear infinite, m3-cpb-arc 3s ease-in-out infinite"
|
|
7420
7444
|
})
|
|
7421
|
-
}, null, 12,
|
|
7445
|
+
}, null, 12, Fl)], 64)) : e.variant === "wavy" ? (L(), S(m, { key: 1 }, [
|
|
7422
7446
|
C("defs", null, [C("mask", {
|
|
7423
7447
|
id: K(q),
|
|
7424
7448
|
maskUnits: "userSpaceOnUse"
|
|
@@ -7433,25 +7457,25 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7433
7457
|
ref: O,
|
|
7434
7458
|
cx: "50",
|
|
7435
7459
|
cy: "50",
|
|
7436
|
-
r:
|
|
7460
|
+
r: Ul,
|
|
7437
7461
|
fill: "none",
|
|
7438
7462
|
"stroke-width": c.value,
|
|
7439
7463
|
stroke: "white",
|
|
7440
7464
|
"stroke-dasharray": "0 251",
|
|
7441
7465
|
transform: "rotate(-90, 50, 50)"
|
|
7442
|
-
}, null, 8,
|
|
7466
|
+
}, null, 8, Ll)], 8, Il)]),
|
|
7443
7467
|
C("circle", {
|
|
7444
7468
|
ref_key: "trackCircleEl",
|
|
7445
7469
|
ref: k,
|
|
7446
7470
|
cx: "50",
|
|
7447
7471
|
cy: "50",
|
|
7448
|
-
r:
|
|
7472
|
+
r: Ul,
|
|
7449
7473
|
fill: "none",
|
|
7450
7474
|
"stroke-width": s.value,
|
|
7451
7475
|
style: N({ stroke: i.value.track }),
|
|
7452
7476
|
"stroke-dasharray": "251 0",
|
|
7453
7477
|
transform: "rotate(-90, 50, 50)"
|
|
7454
|
-
}, null, 12,
|
|
7478
|
+
}, null, 12, Rl),
|
|
7455
7479
|
C("path", {
|
|
7456
7480
|
d: A.value,
|
|
7457
7481
|
fill: "none",
|
|
@@ -7460,18 +7484,18 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7460
7484
|
"stroke-linejoin": "round",
|
|
7461
7485
|
mask: `url(#${K(q)})`,
|
|
7462
7486
|
style: N({ stroke: i.value.fill })
|
|
7463
|
-
}, null, 12,
|
|
7487
|
+
}, null, 12, zl)
|
|
7464
7488
|
], 64)) : e.indeterminate ? x("", !0) : (L(), S(m, { key: 2 }, [C("circle", {
|
|
7465
7489
|
cx: "50",
|
|
7466
7490
|
cy: "50",
|
|
7467
|
-
r:
|
|
7491
|
+
r: Ul,
|
|
7468
7492
|
fill: "none",
|
|
7469
7493
|
"stroke-width": s.value,
|
|
7470
7494
|
style: N({ stroke: i.value.track })
|
|
7471
|
-
}, null, 12,
|
|
7495
|
+
}, null, 12, Bl), C("circle", {
|
|
7472
7496
|
cx: "50",
|
|
7473
7497
|
cy: "50",
|
|
7474
|
-
r:
|
|
7498
|
+
r: Ul,
|
|
7475
7499
|
fill: "none",
|
|
7476
7500
|
"stroke-width": s.value,
|
|
7477
7501
|
"stroke-linecap": "round",
|
|
@@ -7482,7 +7506,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7482
7506
|
transformOrigin: "50px 50px",
|
|
7483
7507
|
transition: "stroke-dasharray 300ms ease"
|
|
7484
7508
|
})
|
|
7485
|
-
}, null, 12,
|
|
7509
|
+
}, null, 12, Vl)], 64)), !e.indeterminate && !t.$slots.default ? (L(), S("text", {
|
|
7486
7510
|
key: 3,
|
|
7487
7511
|
x: "50",
|
|
7488
7512
|
y: "50",
|
|
@@ -7494,16 +7518,16 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7494
7518
|
fontWeight: "600",
|
|
7495
7519
|
fontFamily: "Roboto, sans-serif"
|
|
7496
7520
|
})
|
|
7497
|
-
}, G(n.value) + "%", 5)) : x("", !0)], 8,
|
|
7521
|
+
}, G(n.value) + "%", 5)) : x("", !0)], 8, Nl)), t.$slots.default ? (L(), S("div", Hl, [H(t.$slots, "default")])) : x("", !0)])]));
|
|
7498
7522
|
}
|
|
7499
|
-
}),
|
|
7523
|
+
}), Yl = ["for"], Xl = { class: "relative flex h-5 w-5 shrink-0" }, Zl = [
|
|
7500
7524
|
"id",
|
|
7501
7525
|
"checked",
|
|
7502
7526
|
"disabled"
|
|
7503
|
-
],
|
|
7527
|
+
], Ql = {
|
|
7504
7528
|
key: 0,
|
|
7505
7529
|
class: "text-body-large text-on-surface"
|
|
7506
|
-
},
|
|
7530
|
+
}, $l = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
7507
7531
|
__name: "MRadio",
|
|
7508
7532
|
props: {
|
|
7509
7533
|
modelValue: {},
|
|
@@ -7526,14 +7550,14 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7526
7550
|
return (t, n) => (L(), S("label", {
|
|
7527
7551
|
for: K(i),
|
|
7528
7552
|
class: M(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
7529
|
-
}, [C("span",
|
|
7553
|
+
}, [C("span", Xl, [C("input", {
|
|
7530
7554
|
id: K(i),
|
|
7531
7555
|
type: "radio",
|
|
7532
7556
|
class: "sr-only",
|
|
7533
7557
|
checked: a.value,
|
|
7534
7558
|
disabled: e.disabled,
|
|
7535
7559
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
7536
|
-
}, null, 40,
|
|
7560
|
+
}, null, 40, Zl), (L(), S("svg", {
|
|
7537
7561
|
viewBox: "0 0 20 20",
|
|
7538
7562
|
class: M(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
7539
7563
|
"aria-hidden": "true"
|
|
@@ -7550,12 +7574,12 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7550
7574
|
cy: "10",
|
|
7551
7575
|
r: "4.5",
|
|
7552
7576
|
fill: "currentColor"
|
|
7553
|
-
}, null, 2)], 2))]), e.label ? (L(), S("span",
|
|
7577
|
+
}, null, 2)], 2))]), e.label ? (L(), S("span", Ql, G(e.label), 1)) : x("", !0)], 10, Yl));
|
|
7554
7578
|
}
|
|
7555
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
7579
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), eu = { class: "flex flex-col gap-2" }, tu = {
|
|
7556
7580
|
key: 0,
|
|
7557
7581
|
class: "text-label-large text-on-surface-variant"
|
|
7558
|
-
},
|
|
7582
|
+
}, nu = /* @__PURE__ */ D({
|
|
7559
7583
|
__name: "MRadioGroup",
|
|
7560
7584
|
props: {
|
|
7561
7585
|
modelValue: {},
|
|
@@ -7571,7 +7595,7 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7571
7595
|
emits: ["update:modelValue"],
|
|
7572
7596
|
setup(e, { emit: t }) {
|
|
7573
7597
|
let n = t;
|
|
7574
|
-
return (t, r) => (L(), S("div",
|
|
7598
|
+
return (t, r) => (L(), S("div", eu, [e.label ? (L(), S("span", tu, 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($l, {
|
|
7575
7599
|
key: String(t.value),
|
|
7576
7600
|
"model-value": e.modelValue,
|
|
7577
7601
|
value: t.value,
|
|
@@ -7587,11 +7611,11 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7587
7611
|
"disabled"
|
|
7588
7612
|
]))), 128))], 2)]));
|
|
7589
7613
|
}
|
|
7590
|
-
}),
|
|
7614
|
+
}), ru = [
|
|
7591
7615
|
"disabled",
|
|
7592
7616
|
"onClick",
|
|
7593
7617
|
"onMousemove"
|
|
7594
|
-
],
|
|
7618
|
+
], iu = /* @__PURE__ */ D({
|
|
7595
7619
|
__name: "MRating",
|
|
7596
7620
|
props: {
|
|
7597
7621
|
modelValue: {},
|
|
@@ -7668,13 +7692,13 @@ var Ac = /*#__PURE__*/ p(Dc, [["render", kc]]), jc = {
|
|
|
7668
7692
|
name: e.icon,
|
|
7669
7693
|
size: e.size,
|
|
7670
7694
|
class: "text-on-surface-variant/40"
|
|
7671
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
7695
|
+
}, null, 8, ["name", "size"]))], 46, ru))), 128))], 34));
|
|
7672
7696
|
}
|
|
7673
|
-
}),
|
|
7674
|
-
function
|
|
7675
|
-
return L(), S("div",
|
|
7697
|
+
}), au = {}, ou = { class: "relative" };
|
|
7698
|
+
function su(e, t) {
|
|
7699
|
+
return L(), S("div", ou, [H(e.$slots, "default")]);
|
|
7676
7700
|
}
|
|
7677
|
-
var
|
|
7701
|
+
var cu = /*#__PURE__*/ p(au, [["render", su]]), lu = /* @__PURE__ */ D({
|
|
7678
7702
|
__name: "MResponsive",
|
|
7679
7703
|
props: {
|
|
7680
7704
|
show: {},
|
|
@@ -7706,19 +7730,19 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7706
7730
|
_: 3
|
|
7707
7731
|
}, 8, ["class"]));
|
|
7708
7732
|
}
|
|
7709
|
-
}),
|
|
7733
|
+
}), uu = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, du = {
|
|
7710
7734
|
key: 0,
|
|
7711
7735
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
7712
|
-
},
|
|
7736
|
+
}, fu = { class: "text-headline-small font-medium text-on-surface" }, pu = {
|
|
7713
7737
|
key: 1,
|
|
7714
7738
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
7715
|
-
},
|
|
7739
|
+
}, mu = {
|
|
7716
7740
|
key: 2,
|
|
7717
7741
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
7718
|
-
},
|
|
7742
|
+
}, hu = {
|
|
7719
7743
|
key: 3,
|
|
7720
7744
|
class: "mt-2"
|
|
7721
|
-
},
|
|
7745
|
+
}, gu = /* @__PURE__ */ D({
|
|
7722
7746
|
__name: "MResult",
|
|
7723
7747
|
props: {
|
|
7724
7748
|
status: {},
|
|
@@ -7786,19 +7810,19 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7786
7810
|
};
|
|
7787
7811
|
}
|
|
7788
7812
|
}), i = v(() => t.status === "404" || t.status === "403" || t.status === "500" ? t.status : null);
|
|
7789
|
-
return (t, a) => (L(), S("div",
|
|
7790
|
-
i.value ? (L(), S("span",
|
|
7813
|
+
return (t, a) => (L(), S("div", uu, [
|
|
7814
|
+
i.value ? (L(), S("span", du, G(i.value), 1)) : x("", !0),
|
|
7791
7815
|
C("div", { class: M(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [E(r, {
|
|
7792
7816
|
name: n.value.icon,
|
|
7793
7817
|
size: 40
|
|
7794
7818
|
}, null, 8, ["name"])], 2),
|
|
7795
|
-
C("h2",
|
|
7796
|
-
e.description ?? n.value.defaultDesc ? (L(), S("p",
|
|
7797
|
-
t.$slots.actions ? (L(), S("div",
|
|
7798
|
-
t.$slots.default ? (L(), S("div",
|
|
7819
|
+
C("h2", fu, G(e.title ?? n.value.defaultTitle), 1),
|
|
7820
|
+
e.description ?? n.value.defaultDesc ? (L(), S("p", pu, G(e.description ?? n.value.defaultDesc), 1)) : x("", !0),
|
|
7821
|
+
t.$slots.actions ? (L(), S("div", mu, [H(t.$slots, "actions")])) : x("", !0),
|
|
7822
|
+
t.$slots.default ? (L(), S("div", hu, [H(t.$slots, "default")])) : x("", !0)
|
|
7799
7823
|
]));
|
|
7800
7824
|
}
|
|
7801
|
-
}),
|
|
7825
|
+
}), _u = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, vu = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, yu = { class: "flex items-center gap-1" }, bu = { class: "text-title-medium font-medium capitalize text-on-surface" }, xu = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Su = ["onClick"], Cu = { class: "overflow-auto" }, wu = { class: "w-full border-collapse" }, Tu = { class: "text-label-small uppercase text-on-surface-variant" }, Eu = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Du = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, Ou = ["onClick"], ku = ["onClick"], Au = { class: "truncate text-label-small font-medium" }, ju = { class: "truncate text-label-small opacity-70" }, Mu = /* @__PURE__ */ D({
|
|
7802
7826
|
__name: "MScheduler",
|
|
7803
7827
|
props: {
|
|
7804
7828
|
events: { default: () => [] },
|
|
@@ -7879,8 +7903,8 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7879
7903
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
7880
7904
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
7881
7905
|
};
|
|
7882
|
-
return (t, n) => (L(), S("div",
|
|
7883
|
-
C("div",
|
|
7906
|
+
return (t, n) => (L(), S("div", _u, [C("div", vu, [
|
|
7907
|
+
C("div", yu, [
|
|
7884
7908
|
E(l, {
|
|
7885
7909
|
icon: "chevron_left",
|
|
7886
7910
|
label: e.prevLabel ?? K(r).previous,
|
|
@@ -7899,17 +7923,17 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7899
7923
|
onClick: w
|
|
7900
7924
|
}, G(e.todayLabel ?? K(r).today), 1)
|
|
7901
7925
|
]),
|
|
7902
|
-
C("h3",
|
|
7903
|
-
C("div",
|
|
7926
|
+
C("h3", bu, G(y.value), 1),
|
|
7927
|
+
C("div", xu, [(L(), S(m, null, V(["day", "week"], (t) => C("button", {
|
|
7904
7928
|
key: t,
|
|
7905
7929
|
type: "button",
|
|
7906
7930
|
class: M(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", s.value === t ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
7907
7931
|
onClick: (e) => s.value = t
|
|
7908
|
-
}, G(t === "day" ? e.dayViewLabel ?? K(r).dayView : e.weekViewLabel ?? K(r).weekView), 11,
|
|
7909
|
-
]), C("div",
|
|
7932
|
+
}, G(t === "day" ? e.dayViewLabel ?? K(r).dayView : e.weekViewLabel ?? K(r).weekView), 11, Su)), 64))])
|
|
7933
|
+
]), C("div", Cu, [C("table", wu, [C("thead", null, [C("tr", null, [n[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", {
|
|
7910
7934
|
key: h(e),
|
|
7911
7935
|
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" : ""])
|
|
7912
|
-
}, [C("div",
|
|
7936
|
+
}, [C("div", Tu, 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(c.value, (e) => (L(), S("tr", { key: e }, [C("td", Eu, [C("span", Du, G(String(e).padStart(2, "0")) + ":00 ", 1)]), (L(!0), S(m, null, V(f.value, (t) => (L(), S("td", {
|
|
7913
7937
|
key: h(t),
|
|
7914
7938
|
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" : ""]),
|
|
7915
7939
|
onClick: (n) => a("slotClick", {
|
|
@@ -7922,9 +7946,9 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7922
7946
|
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"]]),
|
|
7923
7947
|
style: N({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
7924
7948
|
onClick: Q((e) => a("eventClick", t), ["stop"])
|
|
7925
|
-
}, [C("p",
|
|
7949
|
+
}, [C("p", Au, G(t.title), 1), C("p", ju, G(k(t)), 1)], 14, ku)) : x("", !0)], 64))), 128))], 10, Ou))), 128))]))), 128))])])])]));
|
|
7926
7950
|
}
|
|
7927
|
-
}),
|
|
7951
|
+
}), Nu = /* @__PURE__ */ D({
|
|
7928
7952
|
__name: "MScrollable",
|
|
7929
7953
|
props: {
|
|
7930
7954
|
direction: { default: "vertical" },
|
|
@@ -7945,13 +7969,13 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7945
7969
|
style: N(i.value)
|
|
7946
7970
|
}, [H(e.$slots, "default")], 6));
|
|
7947
7971
|
}
|
|
7948
|
-
}),
|
|
7972
|
+
}), Pu = { key: 0 }, Fu = { class: "flex items-start justify-between" }, Iu = {
|
|
7949
7973
|
key: 0,
|
|
7950
7974
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
7951
|
-
},
|
|
7975
|
+
}, Lu = {
|
|
7952
7976
|
key: 0,
|
|
7953
7977
|
class: "mt-4 h-px bg-outline-variant"
|
|
7954
|
-
},
|
|
7978
|
+
}, Ru = /* @__PURE__ */ D({
|
|
7955
7979
|
__name: "MSection",
|
|
7956
7980
|
props: {
|
|
7957
7981
|
title: {},
|
|
@@ -7988,19 +8012,19 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
7988
8012
|
"label-medium": "text-label-medium",
|
|
7989
8013
|
"label-small": "text-label-small"
|
|
7990
8014
|
}, i = v(() => n[t.gap]), a = v(() => [r[t.titleVariant], "font-medium"]);
|
|
7991
|
-
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",
|
|
8015
|
+
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", Pu, [C("div", Fu, [C("div", null, [H(t.$slots, "title", {}, () => [e.title ? (L(), S("p", {
|
|
7992
8016
|
key: 0,
|
|
7993
8017
|
class: M(a.value)
|
|
7994
|
-
}, G(e.title), 3)) : x("", !0)]), H(t.$slots, "subtitle", {}, () => [e.subtitle ? (L(), S("p",
|
|
8018
|
+
}, G(e.title), 3)) : x("", !0)]), H(t.$slots, "subtitle", {}, () => [e.subtitle ? (L(), S("p", Iu, G(e.subtitle), 1)) : x("", !0)])]), H(t.$slots, "actions")]), e.divider ? (L(), S("div", Lu)) : x("", !0)])) : x("", !0), H(t.$slots, "default")], 2));
|
|
7995
8019
|
}
|
|
7996
|
-
}),
|
|
8020
|
+
}), zu = {
|
|
7997
8021
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
7998
8022
|
role: "group"
|
|
7999
|
-
},
|
|
8023
|
+
}, Bu = [
|
|
8000
8024
|
"disabled",
|
|
8001
8025
|
"aria-pressed",
|
|
8002
8026
|
"onClick"
|
|
8003
|
-
],
|
|
8027
|
+
], Vu = /* @__PURE__ */ D({
|
|
8004
8028
|
__name: "MSegmentedButton",
|
|
8005
8029
|
props: {
|
|
8006
8030
|
modelValue: {},
|
|
@@ -8024,7 +8048,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8024
8048
|
i >= 0 ? r.splice(i, 1) : r.push(e.value), n("update:modelValue", r);
|
|
8025
8049
|
} else n("update:modelValue", e.value);
|
|
8026
8050
|
}
|
|
8027
|
-
return (t, n) => (L(), S("div",
|
|
8051
|
+
return (t, n) => (L(), S("div", zu, [(L(!0), S(m, null, V(e.options, (t, n) => (L(), S("button", {
|
|
8028
8052
|
key: t.value,
|
|
8029
8053
|
type: "button",
|
|
8030
8054
|
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]", [
|
|
@@ -8045,35 +8069,35 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8045
8069
|
key: 1,
|
|
8046
8070
|
name: t.icon,
|
|
8047
8071
|
size: 18
|
|
8048
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10,
|
|
8072
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10, Bu))), 128))]));
|
|
8049
8073
|
}
|
|
8050
|
-
}),
|
|
8074
|
+
}), Hu = { class: "flex flex-col gap-1" }, Uu = [
|
|
8051
8075
|
"id",
|
|
8052
8076
|
"tabindex",
|
|
8053
8077
|
"aria-expanded",
|
|
8054
8078
|
"aria-disabled"
|
|
8055
|
-
],
|
|
8079
|
+
], Wu = {
|
|
8056
8080
|
key: 0,
|
|
8057
8081
|
class: "text-on-surface"
|
|
8058
|
-
},
|
|
8082
|
+
}, Gu = ["for"], Ku = {
|
|
8059
8083
|
key: 0,
|
|
8060
8084
|
class: "text-error"
|
|
8061
|
-
},
|
|
8085
|
+
}, qu = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 flex h-6 items-center" }, Ju = {
|
|
8062
8086
|
key: 0,
|
|
8063
8087
|
class: "px-4 text-body-small text-error"
|
|
8064
|
-
},
|
|
8088
|
+
}, Yu = {
|
|
8065
8089
|
key: 1,
|
|
8066
8090
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
8067
|
-
},
|
|
8091
|
+
}, Xu = ["onClick"], Zu = {
|
|
8068
8092
|
key: 1,
|
|
8069
8093
|
class: "w-[18px] shrink-0"
|
|
8070
|
-
},
|
|
8094
|
+
}, Qu = {
|
|
8071
8095
|
key: 0,
|
|
8072
8096
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
8073
|
-
},
|
|
8097
|
+
}, $u = { 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" }, ed = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, td = { class: "text-headline-small text-on-surface" }, nd = { class: "flex-1 overflow-y-auto py-2" }, rd = ["onClick"], id = {
|
|
8074
8098
|
key: 0,
|
|
8075
8099
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
8076
|
-
},
|
|
8100
|
+
}, ad = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8077
8101
|
__name: "MSelect",
|
|
8078
8102
|
props: {
|
|
8079
8103
|
modelValue: { default: void 0 },
|
|
@@ -8192,7 +8216,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8192
8216
|
u.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
8193
8217
|
].join(" ");
|
|
8194
8218
|
});
|
|
8195
|
-
return (t, n) => (L(), S(m, null, [C("div",
|
|
8219
|
+
return (t, n) => (L(), S(m, null, [C("div", Hu, [C("div", {
|
|
8196
8220
|
ref_key: "fieldEl",
|
|
8197
8221
|
ref: f,
|
|
8198
8222
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -8214,11 +8238,11 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8214
8238
|
class: M([U.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
8215
8239
|
onClick: A,
|
|
8216
8240
|
onKeydown: z
|
|
8217
|
-
}, [D.value ? (L(), S("span",
|
|
8241
|
+
}, [D.value ? (L(), S("span", Wu, G(O.value), 1)) : x("", !0)], 42, Uu),
|
|
8218
8242
|
C("label", {
|
|
8219
8243
|
for: K(c),
|
|
8220
8244
|
class: M(q.value)
|
|
8221
|
-
}, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
8245
|
+
}, [T(G(e.label), 1), e.required ? (L(), S("span", Ku, "\xA0*")) : x("", !0)], 10, Gu),
|
|
8222
8246
|
e.clearable && D.value && !e.disabled ? (L(), S("button", {
|
|
8223
8247
|
key: 1,
|
|
8224
8248
|
type: "button",
|
|
@@ -8230,12 +8254,12 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8230
8254
|
name: "close",
|
|
8231
8255
|
size: 18
|
|
8232
8256
|
})])) : x("", !0),
|
|
8233
|
-
C("div",
|
|
8257
|
+
C("div", qu, [E(r, {
|
|
8234
8258
|
name: "arrow_drop_down",
|
|
8235
8259
|
size: 24,
|
|
8236
8260
|
class: M(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
8237
8261
|
}, null, 8, ["class"])])
|
|
8238
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
8262
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Ju, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Yu, G(e.hint), 1)) : x("", !0)]), (L(), b(h, { to: "body" }, [E(g, {
|
|
8239
8263
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
8240
8264
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
8241
8265
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -8258,21 +8282,21 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8258
8282
|
name: "check",
|
|
8259
8283
|
size: 18,
|
|
8260
8284
|
class: "shrink-0 text-primary"
|
|
8261
|
-
})) : (L(), S("span",
|
|
8285
|
+
})) : (L(), S("span", Zu)), T(" " + G(t.label), 1)], 10, Xu))), 128)), e.options.length ? x("", !0) : (L(), S("p", Qu, " Sin opciones "))], 4)) : x("", !0)]),
|
|
8262
8286
|
_: 1
|
|
8263
8287
|
}), E(g, { name: "m3-select-modal" }, {
|
|
8264
8288
|
default: Z(() => [d.value && e.mode === "modal" ? (L(), S("div", {
|
|
8265
8289
|
key: 0,
|
|
8266
8290
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
8267
8291
|
onClick: Q(H, ["self"])
|
|
8268
|
-
}, [C("div",
|
|
8269
|
-
C("div",
|
|
8292
|
+
}, [C("div", $u, [
|
|
8293
|
+
C("div", ed, [C("h2", td, G(e.label || e.placeholder), 1), E(l, {
|
|
8270
8294
|
icon: "close",
|
|
8271
8295
|
label: K(s).close,
|
|
8272
8296
|
onClick: H
|
|
8273
8297
|
}, null, 8, ["label"])]),
|
|
8274
8298
|
n[1] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
8275
|
-
C("div",
|
|
8299
|
+
C("div", nd, [(L(!0), S(m, null, V(e.options, (t, n) => (L(), S("div", {
|
|
8276
8300
|
key: n,
|
|
8277
8301
|
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" : ""]]),
|
|
8278
8302
|
onClick: (e) => j(t)
|
|
@@ -8280,21 +8304,21 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8280
8304
|
name: w(t.value, e.modelValue) ? "radio_button_checked" : "radio_button_unchecked",
|
|
8281
8305
|
size: 20,
|
|
8282
8306
|
class: M(w(t.value, e.modelValue) ? "text-primary" : "text-on-surface-variant")
|
|
8283
|
-
}, null, 8, ["name", "class"]), C("span", { class: M(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, G(t.label), 3)], 10,
|
|
8307
|
+
}, null, 8, ["name", "class"]), C("span", { class: M(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, G(t.label), 3)], 10, rd))), 128)), e.options.length ? x("", !0) : (L(), S("p", id, " Sin opciones "))])
|
|
8284
8308
|
])])) : x("", !0)]),
|
|
8285
8309
|
_: 1
|
|
8286
8310
|
})]))], 64));
|
|
8287
8311
|
}
|
|
8288
|
-
}), [["__scopeId", "data-v-17adb5b4"]]),
|
|
8312
|
+
}), [["__scopeId", "data-v-17adb5b4"]]), od = {
|
|
8289
8313
|
key: 0,
|
|
8290
8314
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
8291
|
-
},
|
|
8315
|
+
}, sd = {
|
|
8292
8316
|
key: 0,
|
|
8293
8317
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
8294
|
-
},
|
|
8318
|
+
}, cd = { class: "text-title-large text-on-surface" }, ld = { class: "flex-1 overflow-y-auto px-6 py-4" }, ud = {
|
|
8295
8319
|
key: 1,
|
|
8296
8320
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
8297
|
-
},
|
|
8321
|
+
}, dd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8298
8322
|
__name: "MSideSheet",
|
|
8299
8323
|
props: {
|
|
8300
8324
|
modelValue: { type: Boolean },
|
|
@@ -8324,7 +8348,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8324
8348
|
leave: 280
|
|
8325
8349
|
}
|
|
8326
8350
|
}, {
|
|
8327
|
-
default: Z(() => [e.modelValue ? (L(), S("div",
|
|
8351
|
+
default: Z(() => [e.modelValue ? (L(), S("div", od, [C("div", {
|
|
8328
8352
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
8329
8353
|
onClick: i
|
|
8330
8354
|
}), C("aside", {
|
|
@@ -8337,7 +8361,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8337
8361
|
onPointermove: l,
|
|
8338
8362
|
onPointerup: u
|
|
8339
8363
|
}, null, 32),
|
|
8340
|
-
e.title || t.$slots.header ? (L(), S("div",
|
|
8364
|
+
e.title || t.$slots.header ? (L(), S("div", sd, [H(t.$slots, "header", {}, () => [C("h2", cd, G(e.title), 1)], !0), C("button", {
|
|
8341
8365
|
type: "button",
|
|
8342
8366
|
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",
|
|
8343
8367
|
onClick: i
|
|
@@ -8345,16 +8369,16 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8345
8369
|
name: "close",
|
|
8346
8370
|
size: 20
|
|
8347
8371
|
})])])) : x("", !0),
|
|
8348
|
-
C("div",
|
|
8349
|
-
t.$slots.actions ? (L(), S("div",
|
|
8372
|
+
C("div", ld, [H(t.$slots, "default", {}, void 0, !0)]),
|
|
8373
|
+
t.$slots.actions ? (L(), S("div", ud, [H(t.$slots, "actions", {}, void 0, !0)])) : x("", !0)
|
|
8350
8374
|
], 6)])) : x("", !0)]),
|
|
8351
8375
|
_: 3
|
|
8352
8376
|
})]));
|
|
8353
8377
|
}
|
|
8354
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
8378
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), fd = {
|
|
8355
8379
|
key: 0,
|
|
8356
8380
|
class: "flex flex-col gap-2.5"
|
|
8357
|
-
},
|
|
8381
|
+
}, pd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8358
8382
|
__name: "MSkeleton",
|
|
8359
8383
|
props: {
|
|
8360
8384
|
variant: { default: "text" },
|
|
@@ -8364,7 +8388,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8364
8388
|
animation: { default: "pulse" }
|
|
8365
8389
|
},
|
|
8366
8390
|
setup(e) {
|
|
8367
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (L(), S("div",
|
|
8391
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (L(), S("div", fd, [(L(!0), S(m, null, V(e.lines, (t) => (L(), S("div", {
|
|
8368
8392
|
key: t,
|
|
8369
8393
|
class: M(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
8370
8394
|
style: N({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -8377,22 +8401,22 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8377
8401
|
})
|
|
8378
8402
|
}, null, 6));
|
|
8379
8403
|
}
|
|
8380
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
8404
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), md = {
|
|
8381
8405
|
key: 0,
|
|
8382
8406
|
class: "flex items-center justify-between"
|
|
8383
|
-
},
|
|
8407
|
+
}, hd = {
|
|
8384
8408
|
key: 0,
|
|
8385
8409
|
class: "text-label-large text-on-surface"
|
|
8386
|
-
},
|
|
8410
|
+
}, gd = {
|
|
8387
8411
|
key: 1,
|
|
8388
8412
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
8389
|
-
},
|
|
8413
|
+
}, _d = [
|
|
8390
8414
|
"aria-valuenow",
|
|
8391
8415
|
"aria-valuemin",
|
|
8392
8416
|
"aria-valuemax",
|
|
8393
8417
|
"aria-disabled",
|
|
8394
8418
|
"aria-orientation"
|
|
8395
|
-
],
|
|
8419
|
+
], vd = /* @__PURE__ */ D({
|
|
8396
8420
|
__name: "MSlider",
|
|
8397
8421
|
props: {
|
|
8398
8422
|
modelValue: {},
|
|
@@ -8603,7 +8627,7 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8603
8627
|
};
|
|
8604
8628
|
}
|
|
8605
8629
|
let W = v(() => c.value ? `${l.value.lo} – ${l.value.hi}` : String(n.modelValue)), K = v(() => c.value && typeof o.value == "number" ? n.modelValue[o.value] : n.modelValue), q = v(() => c.value && typeof o.value == "number" ? u(n.modelValue[o.value]) : d.value);
|
|
8606
|
-
return (t, n) => (L(), S("div", { class: M(["flex select-none", s.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (L(), S("div",
|
|
8630
|
+
return (t, n) => (L(), S("div", { class: M(["flex select-none", s.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (L(), S("div", md, [e.label ? (L(), S("span", hd, G(e.label), 1)) : x("", !0), e.showValue ? (L(), S("span", gd, G(W.value), 1)) : x("", !0)])) : x("", !0), C("div", { class: M(["flex items-center", s.value ? "flex-1 flex-col" : ""]) }, [C("div", {
|
|
8607
8631
|
ref_key: "trackEl",
|
|
8608
8632
|
ref: a,
|
|
8609
8633
|
role: "slider",
|
|
@@ -8907,13 +8931,13 @@ var lu = /*#__PURE__*/ p(ou, [["render", cu]]), uu = /* @__PURE__ */ D({
|
|
|
8907
8931
|
}, G(K.value), 5)) : x("", !0)]),
|
|
8908
8932
|
_: 1
|
|
8909
8933
|
})
|
|
8910
|
-
], 46,
|
|
8934
|
+
], 46, _d)], 2)], 2));
|
|
8911
8935
|
}
|
|
8912
|
-
}),
|
|
8913
|
-
function
|
|
8914
|
-
return L(), S("div",
|
|
8936
|
+
}), yd = {}, bd = { class: "flex-1" };
|
|
8937
|
+
function xd(e, t) {
|
|
8938
|
+
return L(), S("div", bd);
|
|
8915
8939
|
}
|
|
8916
|
-
var
|
|
8940
|
+
var Sd = /*#__PURE__*/ p(yd, [["render", xd]]), Cd = ["disabled"], wd = ["disabled"], Td = ["disabled", "onClick"], Ed = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8917
8941
|
__name: "MSplitButton",
|
|
8918
8942
|
props: {
|
|
8919
8943
|
label: {},
|
|
@@ -9125,7 +9149,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9125
9149
|
key: 0,
|
|
9126
9150
|
name: e.icon,
|
|
9127
9151
|
size: d.value.icon
|
|
9128
|
-
}, null, 8, ["name", "size"])) : x("", !0), T(" " + G(e.label), 1)], 46,
|
|
9152
|
+
}, null, 8, ["name", "size"])) : x("", !0), T(" " + G(e.label), 1)], 46, Cd), C("button", {
|
|
9129
9153
|
type: "button",
|
|
9130
9154
|
class: M(["toggle-btn relative flex cursor-pointer items-center justify-center overflow-hidden", [
|
|
9131
9155
|
d.value.h,
|
|
@@ -9145,7 +9169,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9145
9169
|
name: "arrow_drop_down",
|
|
9146
9170
|
size: d.value.arrow,
|
|
9147
9171
|
class: M(["transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
9148
|
-
}, null, 8, ["size", "class"])], 46,
|
|
9172
|
+
}, null, 8, ["size", "class"])], 46, wd)], 2), (L(), b(h, { to: "body" }, [E(g, {
|
|
9149
9173
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
9150
9174
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
9151
9175
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
@@ -9168,7 +9192,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9168
9192
|
name: e.icon,
|
|
9169
9193
|
size: 18,
|
|
9170
9194
|
class: "shrink-0 text-on-surface-variant"
|
|
9171
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + G(e.label), 1)], 10,
|
|
9195
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + G(e.label), 1)], 10, Td))), 128))], 4)) : x("", !0)]),
|
|
9172
9196
|
_: 1
|
|
9173
9197
|
}), E(g, {
|
|
9174
9198
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
@@ -9185,7 +9209,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9185
9209
|
_: 3
|
|
9186
9210
|
})]))], 64));
|
|
9187
9211
|
}
|
|
9188
|
-
}), [["__scopeId", "data-v-ec1435bc"]]),
|
|
9212
|
+
}), [["__scopeId", "data-v-ec1435bc"]]), Dd = /* @__PURE__ */ D({
|
|
9189
9213
|
__name: "MSplitter",
|
|
9190
9214
|
props: {
|
|
9191
9215
|
direction: { default: "horizontal" },
|
|
@@ -9232,26 +9256,26 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9232
9256
|
}, [H(e.$slots, "second")], 4)
|
|
9233
9257
|
], 2));
|
|
9234
9258
|
}
|
|
9235
|
-
}),
|
|
9259
|
+
}), Od = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, kd = { class: "flex items-center gap-3 px-5 py-1" }, Ad = ["placeholder"], jd = {
|
|
9236
9260
|
key: 0,
|
|
9237
9261
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
9238
|
-
},
|
|
9262
|
+
}, Md = {
|
|
9239
9263
|
key: 0,
|
|
9240
9264
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
9241
|
-
},
|
|
9265
|
+
}, Nd = [
|
|
9242
9266
|
"data-spot-active",
|
|
9243
9267
|
"onClick",
|
|
9244
9268
|
"onPointerenter"
|
|
9245
|
-
],
|
|
9269
|
+
], Pd = {
|
|
9246
9270
|
key: 0,
|
|
9247
9271
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
9248
|
-
},
|
|
9272
|
+
}, Fd = { class: "min-w-0 flex-1" }, Id = { class: "truncate text-body-medium text-on-surface" }, Ld = {
|
|
9249
9273
|
key: 0,
|
|
9250
9274
|
class: "truncate text-body-small text-on-surface-variant"
|
|
9251
|
-
},
|
|
9275
|
+
}, Rd = {
|
|
9252
9276
|
key: 1,
|
|
9253
9277
|
class: "flex flex-col items-center gap-2 py-10"
|
|
9254
|
-
},
|
|
9278
|
+
}, zd = { class: "text-body-medium text-on-surface-variant" }, Bd = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, Vd = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, 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 = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
9255
9279
|
__name: "MSpotlightSearch",
|
|
9256
9280
|
props: {
|
|
9257
9281
|
modelValue: { type: Boolean },
|
|
@@ -9315,8 +9339,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9315
9339
|
key: 0,
|
|
9316
9340
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
9317
9341
|
onClick: Q(_, ["self"])
|
|
9318
|
-
}, [C("div",
|
|
9319
|
-
C("div",
|
|
9342
|
+
}, [C("div", Od, [
|
|
9343
|
+
C("div", kd, [
|
|
9320
9344
|
E(r, {
|
|
9321
9345
|
name: "search",
|
|
9322
9346
|
size: 24,
|
|
@@ -9330,7 +9354,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9330
9354
|
placeholder: e.placeholder ?? K(i).search,
|
|
9331
9355
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
9332
9356
|
onKeydown: D
|
|
9333
|
-
}, null, 40,
|
|
9357
|
+
}, null, 40, Ad), [[ee, c.value]]),
|
|
9334
9358
|
e.loading ? (L(), b(s, {
|
|
9335
9359
|
key: 0,
|
|
9336
9360
|
size: 20,
|
|
@@ -9345,7 +9369,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9345
9369
|
size: 18
|
|
9346
9370
|
})])) : x("", !0)
|
|
9347
9371
|
]),
|
|
9348
|
-
f.value ? (L(), S("div",
|
|
9372
|
+
f.value ? (L(), S("div", jd, [e.results.length ? (L(!0), S(m, { key: 0 }, V(p.value, ([t, n]) => (L(), S(m, { key: t }, [t ? (L(), S("p", Md, G(t), 1)) : x("", !0), (L(!0), S(m, null, V(n, (t) => (L(), S("button", {
|
|
9349
9373
|
key: t.id,
|
|
9350
9374
|
type: "button",
|
|
9351
9375
|
"data-spot-active": e.results.indexOf(t) === l.value || void 0,
|
|
@@ -9353,32 +9377,32 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9353
9377
|
onClick: (e) => y(t),
|
|
9354
9378
|
onPointerenter: (n) => l.value = e.results.indexOf(t)
|
|
9355
9379
|
}, [
|
|
9356
|
-
t.icon ? (L(), S("div",
|
|
9380
|
+
t.icon ? (L(), S("div", Pd, [E(r, {
|
|
9357
9381
|
name: t.icon,
|
|
9358
9382
|
size: 20,
|
|
9359
9383
|
class: "text-on-primary-container"
|
|
9360
9384
|
}, null, 8, ["name"])])) : x("", !0),
|
|
9361
|
-
C("div",
|
|
9385
|
+
C("div", Fd, [C("p", Id, G(t.title), 1), t.description ? (L(), S("p", Ld, G(t.description), 1)) : x("", !0)]),
|
|
9362
9386
|
E(r, {
|
|
9363
9387
|
name: "arrow_forward",
|
|
9364
9388
|
size: 16,
|
|
9365
9389
|
class: "shrink-0 text-on-surface-variant/40"
|
|
9366
9390
|
})
|
|
9367
|
-
], 42,
|
|
9391
|
+
], 42, Nd))), 128))], 64))), 128)) : e.loading ? x("", !0) : (L(), S("div", Rd, [E(r, {
|
|
9368
9392
|
name: "search_off",
|
|
9369
9393
|
size: 40,
|
|
9370
9394
|
class: "text-on-surface-variant/40"
|
|
9371
|
-
}), C("p",
|
|
9372
|
-
C("div",
|
|
9373
|
-
C("span",
|
|
9374
|
-
C("span",
|
|
9375
|
-
C("span",
|
|
9395
|
+
}), C("p", zd, G(e.noResultsText ?? K(i).noResults), 1)]))])) : x("", !0),
|
|
9396
|
+
C("div", Bd, [
|
|
9397
|
+
C("span", Vd, [n[2] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), T(" " + G(e.navigateHint ?? K(i).navigateHint), 1)]),
|
|
9398
|
+
C("span", Hd, [n[3] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), T(" " + G(e.openHint ?? K(i).openHint), 1)]),
|
|
9399
|
+
C("span", Ud, [n[4] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), T(" " + G(e.closeHint ?? K(i).closeHint), 1)])
|
|
9376
9400
|
])
|
|
9377
9401
|
])])) : x("", !0)]),
|
|
9378
9402
|
_: 1
|
|
9379
9403
|
})]));
|
|
9380
9404
|
}
|
|
9381
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
9405
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), Gd = /* @__PURE__ */ D({
|
|
9382
9406
|
__name: "MStack",
|
|
9383
9407
|
props: {
|
|
9384
9408
|
direction: { default: "column" },
|
|
@@ -9433,19 +9457,19 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9433
9457
|
role: "separator"
|
|
9434
9458
|
}, null, 2)) : x("", !0), (L(), b(W(e)))], 64))), 128)) : H(t.$slots, "default", { key: 1 })], 2));
|
|
9435
9459
|
}
|
|
9436
|
-
}),
|
|
9460
|
+
}), Kd = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, qd = { class: "flex items-start justify-between gap-2" }, Jd = { class: "flex min-w-0 flex-col gap-1" }, Yd = { class: "truncate text-label-large text-on-surface-variant" }, Xd = {
|
|
9437
9461
|
key: 0,
|
|
9438
9462
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
9439
|
-
},
|
|
9463
|
+
}, Zd = {
|
|
9440
9464
|
key: 1,
|
|
9441
9465
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
9442
|
-
},
|
|
9466
|
+
}, Qd = {
|
|
9443
9467
|
key: 0,
|
|
9444
9468
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
9445
|
-
},
|
|
9469
|
+
}, $d = {
|
|
9446
9470
|
key: 1,
|
|
9447
9471
|
class: "text-label-medium text-on-surface-variant"
|
|
9448
|
-
},
|
|
9472
|
+
}, ef = /* @__PURE__ */ D({
|
|
9449
9473
|
__name: "MStatCard",
|
|
9450
9474
|
props: {
|
|
9451
9475
|
title: {},
|
|
@@ -9464,13 +9488,13 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9464
9488
|
error: "bg-error-container text-on-error-container",
|
|
9465
9489
|
success: "bg-success-container text-on-success-container"
|
|
9466
9490
|
}, i = v(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), a = v(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
9467
|
-
return (t, o) => (L(), S("div",
|
|
9491
|
+
return (t, o) => (L(), S("div", Kd, [C("div", qd, [C("div", Jd, [C("span", Yd, G(e.title), 1), e.loading ? (L(), S("div", Xd)) : (L(), S("span", Zd, G(e.value), 1))]), e.icon ? (L(), S("div", {
|
|
9468
9492
|
key: 0,
|
|
9469
9493
|
class: M(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
9470
9494
|
}, [E(r, {
|
|
9471
9495
|
name: e.icon,
|
|
9472
9496
|
size: 24
|
|
9473
|
-
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (L(), S("div",
|
|
9497
|
+
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (L(), S("div", Qd, [
|
|
9474
9498
|
e.trend == null ? x("", !0) : (L(), S("span", {
|
|
9475
9499
|
key: 0,
|
|
9476
9500
|
class: M(["inline-flex items-center gap-0.5 text-label-medium font-medium", i.value])
|
|
@@ -9478,35 +9502,35 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9478
9502
|
name: a.value,
|
|
9479
9503
|
size: 16
|
|
9480
9504
|
}, null, 8, ["name"]), T(" " + G(e.trend > 0 ? "+" : "") + G(e.trend) + "% ", 1)], 2)),
|
|
9481
|
-
e.trendLabel ? (L(), S("span",
|
|
9505
|
+
e.trendLabel ? (L(), S("span", $d, G(e.trendLabel), 1)) : x("", !0),
|
|
9482
9506
|
H(t.$slots, "footer")
|
|
9483
9507
|
])) : x("", !0)]));
|
|
9484
9508
|
}
|
|
9485
|
-
}),
|
|
9509
|
+
}), tf = {
|
|
9486
9510
|
key: 0,
|
|
9487
9511
|
class: "flex w-full items-start"
|
|
9488
|
-
},
|
|
9512
|
+
}, nf = ["onClick"], rf = { key: 3 }, af = { class: "flex flex-col items-center text-center" }, of = {
|
|
9489
9513
|
key: 0,
|
|
9490
9514
|
class: "text-body-small text-on-surface-variant"
|
|
9491
|
-
},
|
|
9515
|
+
}, sf = {
|
|
9492
9516
|
key: 1,
|
|
9493
9517
|
class: "text-body-small text-on-surface-variant"
|
|
9494
|
-
},
|
|
9518
|
+
}, cf = {
|
|
9495
9519
|
key: 0,
|
|
9496
9520
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
9497
|
-
},
|
|
9521
|
+
}, lf = {
|
|
9498
9522
|
key: 1,
|
|
9499
9523
|
class: "flex flex-col"
|
|
9500
|
-
},
|
|
9524
|
+
}, uf = { class: "flex flex-col items-center" }, df = ["onClick"], ff = { key: 3 }, pf = ["onClick"], mf = {
|
|
9501
9525
|
key: 0,
|
|
9502
9526
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
9503
|
-
},
|
|
9527
|
+
}, hf = {
|
|
9504
9528
|
key: 1,
|
|
9505
9529
|
class: "text-body-small text-on-surface-variant"
|
|
9506
|
-
},
|
|
9530
|
+
}, gf = {
|
|
9507
9531
|
key: 2,
|
|
9508
9532
|
class: "mt-3"
|
|
9509
|
-
},
|
|
9533
|
+
}, _f = /* @__PURE__ */ D({
|
|
9510
9534
|
__name: "MStepper",
|
|
9511
9535
|
props: {
|
|
9512
9536
|
steps: {},
|
|
@@ -9527,7 +9551,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9527
9551
|
function s(e) {
|
|
9528
9552
|
o.value && i("update:modelValue", e);
|
|
9529
9553
|
}
|
|
9530
|
-
return (t, n) => e.direction === "horizontal" ? (L(), S("div",
|
|
9554
|
+
return (t, n) => e.direction === "horizontal" ? (L(), S("div", tf, [(L(!0), S(m, null, V(e.steps, (t, n) => (L(), S(m, { key: n }, [C("div", {
|
|
9531
9555
|
class: M(["flex flex-col items-center gap-2", o.value && a(n) !== "active" ? "cursor-pointer" : ""]),
|
|
9532
9556
|
onClick: (e) => s(n)
|
|
9533
9557
|
}, [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", {
|
|
@@ -9546,18 +9570,18 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9546
9570
|
key: 2,
|
|
9547
9571
|
name: t.icon,
|
|
9548
9572
|
size: 20
|
|
9549
|
-
}, null, 8, ["name"])) : (L(), S("span",
|
|
9573
|
+
}, null, 8, ["name"])) : (L(), S("span", rf, G(n + 1), 1))], 2), C("div", af, [
|
|
9550
9574
|
C("span", { class: M(["text-label-large", {
|
|
9551
9575
|
"font-medium text-on-surface": a(n) === "active" || a(n) === "completed",
|
|
9552
9576
|
"text-error": a(n) === "error",
|
|
9553
9577
|
"text-on-surface-variant": a(n) === "inactive"
|
|
9554
9578
|
}]) }, G(t.label), 3),
|
|
9555
|
-
t.description ? (L(), S("span",
|
|
9556
|
-
t.optional ? (L(), S("span",
|
|
9557
|
-
])], 10,
|
|
9579
|
+
t.description ? (L(), S("span", of, G(t.description), 1)) : x("", !0),
|
|
9580
|
+
t.optional ? (L(), S("span", sf, " Opcional ")) : x("", !0)
|
|
9581
|
+
])], 10, nf), n < e.steps.length - 1 ? (L(), S("div", cf, [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", lf, [(L(!0), S(m, null, V(e.steps, (n, i) => (L(), S("div", {
|
|
9558
9582
|
key: i,
|
|
9559
9583
|
class: "flex gap-4"
|
|
9560
|
-
}, [C("div",
|
|
9584
|
+
}, [C("div", uf, [C("div", {
|
|
9561
9585
|
class: M(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
9562
9586
|
"bg-primary text-on-primary": a(i) === "active" || a(i) === "completed",
|
|
9563
9587
|
"bg-error text-on-error": a(i) === "error",
|
|
@@ -9576,7 +9600,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9576
9600
|
key: 2,
|
|
9577
9601
|
name: n.icon,
|
|
9578
9602
|
size: 20
|
|
9579
|
-
}, null, 8, ["name"])) : (L(), S("span",
|
|
9603
|
+
}, null, 8, ["name"])) : (L(), S("span", ff, G(i + 1), 1))], 10, df), i < e.steps.length - 1 ? (L(), S("div", {
|
|
9580
9604
|
key: 0,
|
|
9581
9605
|
class: M(["my-1 w-px flex-1 transition-colors duration-300", i < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
9582
9606
|
style: { "min-height": "24px" }
|
|
@@ -9589,12 +9613,12 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9589
9613
|
"text-error": a(i) === "error",
|
|
9590
9614
|
"text-on-surface-variant": a(i) === "inactive"
|
|
9591
9615
|
}]) }, G(n.label), 3),
|
|
9592
|
-
n.description ? (L(), S("p",
|
|
9593
|
-
n.optional ? (L(), S("p",
|
|
9594
|
-
a(i) === "active" && t.$slots[`step-${i}`] ? (L(), S("div",
|
|
9595
|
-
], 10,
|
|
9616
|
+
n.description ? (L(), S("p", mf, G(n.description), 1)) : x("", !0),
|
|
9617
|
+
n.optional ? (L(), S("p", hf, " Opcional ")) : x("", !0),
|
|
9618
|
+
a(i) === "active" && t.$slots[`step-${i}`] ? (L(), S("div", gf, [H(t.$slots, `step-${i}`)])) : x("", !0)
|
|
9619
|
+
], 10, pf)]))), 128))]));
|
|
9596
9620
|
}
|
|
9597
|
-
}),
|
|
9621
|
+
}), vf = /* @__PURE__ */ D({
|
|
9598
9622
|
__name: "MSticky",
|
|
9599
9623
|
props: {
|
|
9600
9624
|
top: { default: 0 },
|
|
@@ -9612,7 +9636,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9612
9636
|
}));
|
|
9613
9637
|
return (e, t) => (L(), S("div", { style: N(r.value) }, [H(e.$slots, "default")], 4));
|
|
9614
9638
|
}
|
|
9615
|
-
}),
|
|
9639
|
+
}), yf = /* @__PURE__ */ D({
|
|
9616
9640
|
__name: "MText",
|
|
9617
9641
|
props: {
|
|
9618
9642
|
variant: { default: "body-medium" },
|
|
@@ -9692,7 +9716,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9692
9716
|
_: 3
|
|
9693
9717
|
}, 8, ["class"]));
|
|
9694
9718
|
}
|
|
9695
|
-
}),
|
|
9719
|
+
}), bf = /* @__PURE__ */ D({
|
|
9696
9720
|
__name: "MSubtitle",
|
|
9697
9721
|
props: {
|
|
9698
9722
|
size: { default: "large" },
|
|
@@ -9706,7 +9730,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9706
9730
|
medium: "body-medium",
|
|
9707
9731
|
small: "body-small"
|
|
9708
9732
|
}, r = v(() => n[t.size]);
|
|
9709
|
-
return (t, n) => (L(), b(
|
|
9733
|
+
return (t, n) => (L(), b(yf, {
|
|
9710
9734
|
variant: r.value,
|
|
9711
9735
|
color: e.color,
|
|
9712
9736
|
align: e.align,
|
|
@@ -9721,31 +9745,31 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9721
9745
|
"truncate"
|
|
9722
9746
|
]));
|
|
9723
9747
|
}
|
|
9724
|
-
}),
|
|
9748
|
+
}), xf = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Sf = {
|
|
9725
9749
|
key: 0,
|
|
9726
9750
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
9727
|
-
},
|
|
9751
|
+
}, Cf = {
|
|
9728
9752
|
key: 0,
|
|
9729
9753
|
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"
|
|
9730
|
-
},
|
|
9754
|
+
}, wf = ["placeholder"], Tf = {
|
|
9731
9755
|
key: 0,
|
|
9732
9756
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
9733
|
-
},
|
|
9757
|
+
}, Ef = { class: "overflow-x-auto" }, Df = { class: "w-full border-collapse" }, Of = { class: "bg-surface-container-high" }, kf = {
|
|
9734
9758
|
key: 0,
|
|
9735
9759
|
class: "w-12 px-4 py-3"
|
|
9736
|
-
},
|
|
9760
|
+
}, Af = ["onClick"], jf = { class: "inline-flex items-center gap-1" }, Mf = {
|
|
9737
9761
|
key: 0,
|
|
9738
9762
|
class: "inline-flex"
|
|
9739
|
-
},
|
|
9763
|
+
}, Nf = {
|
|
9740
9764
|
key: 1,
|
|
9741
9765
|
class: "w-1 px-4 py-3"
|
|
9742
|
-
},
|
|
9766
|
+
}, Pf = {
|
|
9743
9767
|
key: 0,
|
|
9744
9768
|
class: "px-4 py-3.5"
|
|
9745
|
-
},
|
|
9769
|
+
}, Ff = {
|
|
9746
9770
|
key: 1,
|
|
9747
9771
|
class: "px-4 py-3.5"
|
|
9748
|
-
},
|
|
9772
|
+
}, If = { key: 1 }, Lf = ["colspan"], Rf = { class: "text-body-medium text-on-surface-variant" }, zf = ["onClick"], Bf = ["onClick"], Vf = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Hf = /* @__PURE__ */ D({
|
|
9749
9773
|
__name: "MTable",
|
|
9750
9774
|
props: {
|
|
9751
9775
|
columns: {},
|
|
@@ -9885,9 +9909,9 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9885
9909
|
return `${a[(e * 3 + t) % a.length]}%`;
|
|
9886
9910
|
}
|
|
9887
9911
|
let q = Y(), J = v(() => !!q["row-actions"]);
|
|
9888
|
-
return (t, n) => (L(), S("div",
|
|
9889
|
-
e.searchable || t.$slots.toolbar ? (L(), S("div",
|
|
9890
|
-
e.searchable ? (L(), S("div",
|
|
9912
|
+
return (t, n) => (L(), S("div", xf, [
|
|
9913
|
+
e.searchable || t.$slots.toolbar ? (L(), S("div", Sf, [
|
|
9914
|
+
e.searchable ? (L(), S("div", Cf, [
|
|
9891
9915
|
E(r, {
|
|
9892
9916
|
name: "search",
|
|
9893
9917
|
size: 16,
|
|
@@ -9898,7 +9922,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9898
9922
|
type: "text",
|
|
9899
9923
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
9900
9924
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
9901
|
-
}, null, 8,
|
|
9925
|
+
}, null, 8, wf), [[ee, c.value]]),
|
|
9902
9926
|
c.value ? (L(), S("button", {
|
|
9903
9927
|
key: 0,
|
|
9904
9928
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -9915,12 +9939,12 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9915
9939
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
9916
9940
|
"leave-to-class": "opacity-0 scale-90"
|
|
9917
9941
|
}, {
|
|
9918
|
-
default: Z(() => [e.selectable && O.value.length > 0 ? (L(), S("span",
|
|
9942
|
+
default: Z(() => [e.selectable && O.value.length > 0 ? (L(), S("span", Tf, G(O.value.length) + " " + G(e.selectedText ?? K(i).selectedCount) + G(O.value.length === 1 ? "" : "s"), 1)) : x("", !0)]),
|
|
9919
9943
|
_: 1
|
|
9920
9944
|
})
|
|
9921
9945
|
])) : x("", !0),
|
|
9922
|
-
C("div",
|
|
9923
|
-
e.selectable ? (L(), S("th",
|
|
9946
|
+
C("div", Ef, [C("table", Df, [C("thead", null, [C("tr", Of, [
|
|
9947
|
+
e.selectable ? (L(), S("th", kf, [E(zn, {
|
|
9924
9948
|
"model-value": P.value,
|
|
9925
9949
|
indeterminate: I.value,
|
|
9926
9950
|
"onUpdate:modelValue": R
|
|
@@ -9934,7 +9958,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9934
9958
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
9935
9959
|
]),
|
|
9936
9960
|
onClick: (t) => e.sortable ? d(e.key) : void 0
|
|
9937
|
-
}, [C("span",
|
|
9961
|
+
}, [C("span", jf, [T(G(e.label) + " ", 1), e.sortable ? (L(), S("span", Mf, [l.value === e.key && u.value === "asc" ? (L(), b(r, {
|
|
9938
9962
|
key: 0,
|
|
9939
9963
|
name: "arrow_upward",
|
|
9940
9964
|
size: 14,
|
|
@@ -9949,13 +9973,13 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9949
9973
|
name: "unfold_more",
|
|
9950
9974
|
size: 14,
|
|
9951
9975
|
class: "opacity-30"
|
|
9952
|
-
}))])) : x("", !0)])], 14,
|
|
9953
|
-
J.value ? (L(), S("th",
|
|
9976
|
+
}))])) : x("", !0)])], 14, Af))), 128)),
|
|
9977
|
+
J.value ? (L(), S("th", Nf)) : x("", !0)
|
|
9954
9978
|
])]), C("tbody", null, [e.loading ? (L(!0), S(m, { key: 0 }, V(e.perPage, (t) => (L(), S("tr", {
|
|
9955
9979
|
key: `sk-${t}`,
|
|
9956
9980
|
class: "border-t border-outline-variant"
|
|
9957
9981
|
}, [
|
|
9958
|
-
e.selectable ? (L(), S("td",
|
|
9982
|
+
e.selectable ? (L(), S("td", Pf, [...n[4] ||= [C("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : x("", !0),
|
|
9959
9983
|
(L(!0), S(m, null, V(e.columns, (e, n) => (L(), S("td", {
|
|
9960
9984
|
key: e.key,
|
|
9961
9985
|
class: "px-4 py-3.5"
|
|
@@ -9963,15 +9987,15 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9963
9987
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
9964
9988
|
style: N({ width: W(t, n) })
|
|
9965
9989
|
}, null, 4)]))), 128)),
|
|
9966
|
-
J.value ? (L(), S("td",
|
|
9967
|
-
]))), 128)) : y.value.length === 0 ? (L(), S("tr",
|
|
9990
|
+
J.value ? (L(), S("td", Ff, [...n[5] ||= [C("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : x("", !0)
|
|
9991
|
+
]))), 128)) : y.value.length === 0 ? (L(), S("tr", If, [C("td", {
|
|
9968
9992
|
colspan: e.columns.length + z.value,
|
|
9969
9993
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
9970
9994
|
}, [H(t.$slots, "empty", {}, () => [E(r, {
|
|
9971
9995
|
name: "search_off",
|
|
9972
9996
|
size: 36,
|
|
9973
9997
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
9974
|
-
}), C("p",
|
|
9998
|
+
}), C("p", Rf, G(e.emptyText ?? K(i).noResults), 1)])], 8, Lf)])) : (L(!0), S(m, { key: 2 }, V(y.value, (r) => (L(), S("tr", {
|
|
9975
9999
|
key: k(r),
|
|
9976
10000
|
class: M([
|
|
9977
10001
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -9988,7 +10012,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
9988
10012
|
}, [E(zn, {
|
|
9989
10013
|
"model-value": A(r),
|
|
9990
10014
|
"onUpdate:modelValue": (e) => j(r)
|
|
9991
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
10015
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, Bf)) : x("", !0),
|
|
9992
10016
|
(L(!0), S(m, null, V(e.columns, (e) => (L(), S("td", {
|
|
9993
10017
|
key: e.key,
|
|
9994
10018
|
class: M(["px-4 py-3 text-body-medium text-on-surface", U(e.align)])
|
|
@@ -10002,8 +10026,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10002
10026
|
class: "px-4 py-3 text-right",
|
|
10003
10027
|
onClick: n[2] ||= Q(() => {}, ["stop"])
|
|
10004
10028
|
}, [H(t.$slots, "row-actions", { row: r })])) : x("", !0)
|
|
10005
|
-
], 10,
|
|
10006
|
-
C("div",
|
|
10029
|
+
], 10, zf))), 128))])])]),
|
|
10030
|
+
C("div", Vf, [E(jr, {
|
|
10007
10031
|
page: p.value,
|
|
10008
10032
|
"per-page": e.perPage,
|
|
10009
10033
|
total: _.value,
|
|
@@ -10015,21 +10039,21 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10015
10039
|
])])
|
|
10016
10040
|
]));
|
|
10017
10041
|
}
|
|
10018
|
-
}),
|
|
10042
|
+
}), Uf = { class: "flex flex-col gap-1" }, Wf = ["id"], Gf = ["onClick"], Kf = [
|
|
10019
10043
|
"value",
|
|
10020
10044
|
"placeholder",
|
|
10021
10045
|
"disabled",
|
|
10022
10046
|
"readonly"
|
|
10023
|
-
],
|
|
10047
|
+
], qf = {
|
|
10024
10048
|
key: 0,
|
|
10025
10049
|
class: "text-error"
|
|
10026
|
-
},
|
|
10050
|
+
}, Jf = {
|
|
10027
10051
|
key: 0,
|
|
10028
10052
|
class: "px-4 text-body-small text-error"
|
|
10029
|
-
},
|
|
10053
|
+
}, Yf = {
|
|
10030
10054
|
key: 1,
|
|
10031
10055
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
10032
|
-
},
|
|
10056
|
+
}, Xf = /* @__PURE__ */ D({
|
|
10033
10057
|
__name: "MTagInput",
|
|
10034
10058
|
props: {
|
|
10035
10059
|
modelValue: { default: () => [] },
|
|
@@ -10124,7 +10148,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10124
10148
|
s.value ? n.error ? "text-error" : "text-primary" : n.error ? "text-error" : "text-on-surface-variant"
|
|
10125
10149
|
].join(" ");
|
|
10126
10150
|
});
|
|
10127
|
-
return (t, n) => (L(), S("div",
|
|
10151
|
+
return (t, n) => (L(), S("div", Uf, [C("div", {
|
|
10128
10152
|
ref_key: "fieldEl",
|
|
10129
10153
|
ref: l,
|
|
10130
10154
|
class: M(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -10152,7 +10176,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10152
10176
|
}, [E(r, {
|
|
10153
10177
|
name: "close",
|
|
10154
10178
|
size: 12
|
|
10155
|
-
})], 8,
|
|
10179
|
+
})], 8, Gf))]))), 128)), C("input", {
|
|
10156
10180
|
ref_key: "inputEl",
|
|
10157
10181
|
ref: u,
|
|
10158
10182
|
value: c.value,
|
|
@@ -10168,8 +10192,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10168
10192
|
onPaste: O,
|
|
10169
10193
|
onFocus: n[0] ||= (e) => s.value = !0,
|
|
10170
10194
|
onBlur: k
|
|
10171
|
-
}, null, 40,
|
|
10172
|
-
C("label", { class: M(P.value) }, [T(G(e.label), 1), e.required ? (L(), S("span",
|
|
10195
|
+
}, null, 40, Kf)], 10, Wf),
|
|
10196
|
+
C("label", { class: M(P.value) }, [T(G(e.label), 1), e.required ? (L(), S("span", qf, "\xA0*")) : x("", !0)], 2),
|
|
10173
10197
|
e.clearable && g.value && !e.disabled ? (L(), S("button", {
|
|
10174
10198
|
key: 1,
|
|
10175
10199
|
type: "button",
|
|
@@ -10181,21 +10205,21 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10181
10205
|
name: "close",
|
|
10182
10206
|
size: 18
|
|
10183
10207
|
})])) : x("", !0)
|
|
10184
|
-
], 6), e.error && e.errorLabel ? (L(), S("p",
|
|
10208
|
+
], 6), e.error && e.errorLabel ? (L(), S("p", Jf, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", Yf, G(e.hint), 1)) : x("", !0)]));
|
|
10185
10209
|
}
|
|
10186
|
-
}),
|
|
10210
|
+
}), Zf = {
|
|
10187
10211
|
key: 0,
|
|
10188
10212
|
class: "border-b border-outline-variant"
|
|
10189
|
-
},
|
|
10213
|
+
}, Qf = {
|
|
10190
10214
|
class: "relative flex overflow-x-auto",
|
|
10191
10215
|
style: { "scrollbar-width": "none" }
|
|
10192
|
-
},
|
|
10216
|
+
}, $f = ["disabled", "onClick"], ep = {
|
|
10193
10217
|
key: 1,
|
|
10194
10218
|
class: "border-b border-outline-variant"
|
|
10195
|
-
},
|
|
10219
|
+
}, tp = {
|
|
10196
10220
|
class: "relative flex overflow-x-auto",
|
|
10197
10221
|
style: { "scrollbar-width": "none" }
|
|
10198
|
-
},
|
|
10222
|
+
}, np = ["disabled", "onClick"], rp = /* @__PURE__ */ D({
|
|
10199
10223
|
__name: "MTabs",
|
|
10200
10224
|
props: {
|
|
10201
10225
|
modelValue: {},
|
|
@@ -10230,7 +10254,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10230
10254
|
function f(e) {
|
|
10231
10255
|
e.disabled || i("update:modelValue", e.value);
|
|
10232
10256
|
}
|
|
10233
|
-
return (t, n) => e.variant === "primary" ? (L(), S("div",
|
|
10257
|
+
return (t, n) => e.variant === "primary" ? (L(), S("div", Zf, [C("div", Qf, [(L(!0), S(m, null, V(e.tabs, (t) => (L(), S("button", {
|
|
10234
10258
|
key: t.value,
|
|
10235
10259
|
ref_for: !0,
|
|
10236
10260
|
ref: (n) => {
|
|
@@ -10244,14 +10268,14 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10244
10268
|
key: 0,
|
|
10245
10269
|
name: t.icon,
|
|
10246
10270
|
size: 20
|
|
10247
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10,
|
|
10271
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, G(t.label), 1)], 10, $f))), 128)), C("div", {
|
|
10248
10272
|
class: "absolute bottom-0 h-[3px] rounded-t-full bg-primary",
|
|
10249
10273
|
style: N({
|
|
10250
10274
|
left: `${o.value}px`,
|
|
10251
10275
|
width: `${s.value}px`,
|
|
10252
10276
|
transition: c.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)"
|
|
10253
10277
|
})
|
|
10254
|
-
}, null, 4)])])) : (L(), S("div",
|
|
10278
|
+
}, null, 4)])])) : (L(), S("div", ep, [C("div", tp, [(L(!0), S(m, null, V(e.tabs, (t) => (L(), S("button", {
|
|
10255
10279
|
key: t.value,
|
|
10256
10280
|
ref_for: !0,
|
|
10257
10281
|
ref: (n) => {
|
|
@@ -10265,7 +10289,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10265
10289
|
key: 0,
|
|
10266
10290
|
name: t.icon,
|
|
10267
10291
|
size: 18
|
|
10268
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + G(t.label), 1)], 10,
|
|
10292
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + G(t.label), 1)], 10, np))), 128)), C("div", {
|
|
10269
10293
|
class: "absolute bottom-0 h-[2px] bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
|
|
10270
10294
|
style: N({
|
|
10271
10295
|
left: `${o.value}px`,
|
|
@@ -10273,25 +10297,25 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10273
10297
|
})
|
|
10274
10298
|
}, null, 4)])]));
|
|
10275
10299
|
}
|
|
10276
|
-
}),
|
|
10300
|
+
}), ip = { class: "flex flex-col items-center" }, ap = { class: "flex items-baseline justify-between gap-2" }, op = { class: "text-body-large font-medium text-on-surface" }, sp = {
|
|
10277
10301
|
key: 0,
|
|
10278
10302
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
10279
|
-
},
|
|
10303
|
+
}, cp = {
|
|
10280
10304
|
key: 0,
|
|
10281
10305
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
10282
|
-
},
|
|
10306
|
+
}, lp = {
|
|
10283
10307
|
key: 1,
|
|
10284
10308
|
class: "mt-2"
|
|
10285
|
-
},
|
|
10309
|
+
}, up = { class: "text-body-large font-medium text-on-surface" }, dp = {
|
|
10286
10310
|
key: 0,
|
|
10287
10311
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
10288
|
-
},
|
|
10312
|
+
}, fp = {
|
|
10289
10313
|
key: 1,
|
|
10290
10314
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
10291
|
-
},
|
|
10315
|
+
}, pp = { class: "flex w-14 shrink-0 flex-col items-center" }, mp = {
|
|
10292
10316
|
key: 0,
|
|
10293
10317
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
10294
|
-
},
|
|
10318
|
+
}, hp = /* @__PURE__ */ D({
|
|
10295
10319
|
__name: "MTimeline",
|
|
10296
10320
|
props: {
|
|
10297
10321
|
items: {},
|
|
@@ -10317,23 +10341,23 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10317
10341
|
class: M(["flex items-stretch", a % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
10318
10342
|
}, [
|
|
10319
10343
|
C("div", { class: M(["flex-1", [a % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
10320
|
-
C("p",
|
|
10321
|
-
n.description ? (L(), S("p",
|
|
10322
|
-
n.date ? (L(), S("span",
|
|
10344
|
+
C("p", up, G(n.title), 1),
|
|
10345
|
+
n.description ? (L(), S("p", dp, G(n.description), 1)) : x("", !0),
|
|
10346
|
+
n.date ? (L(), S("span", fp, G(n.date), 1)) : x("", !0)
|
|
10323
10347
|
], 2),
|
|
10324
|
-
C("div",
|
|
10348
|
+
C("div", pp, [C("div", {
|
|
10325
10349
|
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"]]]),
|
|
10326
10350
|
style: N(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
10327
10351
|
}, [n.icon ? (L(), b(r, {
|
|
10328
10352
|
key: 0,
|
|
10329
10353
|
name: n.icon,
|
|
10330
10354
|
size: 18
|
|
10331
|
-
}, null, 8, ["name"])) : x("", !0)], 6), a < e.items.length - 1 ? (L(), S("div",
|
|
10355
|
+
}, null, 8, ["name"])) : x("", !0)], 6), a < e.items.length - 1 ? (L(), S("div", mp)) : x("", !0)]),
|
|
10332
10356
|
i[0] ||= C("div", { class: "flex-1" }, null, -1)
|
|
10333
10357
|
], 2))), 128)) : (L(!0), S(m, { key: 0 }, V(e.items, (i, a) => (L(), S("div", {
|
|
10334
10358
|
key: a,
|
|
10335
10359
|
class: M(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
10336
|
-
}, [C("div",
|
|
10360
|
+
}, [C("div", ip, [C("div", {
|
|
10337
10361
|
class: M(["z-1 flex shrink-0 items-center justify-center rounded-full", [i.icon ? "h-9 w-9" : "h-3 w-3", t[i.color ?? "primary"]]]),
|
|
10338
10362
|
style: N(i.dotColor ? { backgroundColor: i.dotColor } : void 0)
|
|
10339
10363
|
}, [i.icon ? (L(), b(r, {
|
|
@@ -10345,30 +10369,30 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10345
10369
|
class: M(["w-[2px] flex-1", t[i.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
10346
10370
|
style: { "min-height": "16px" }
|
|
10347
10371
|
}, null, 2)) : x("", !0)]), C("div", { class: M([i.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
10348
|
-
C("div",
|
|
10349
|
-
i.description ? (L(), S("p",
|
|
10350
|
-
n.$slots[`item-${a}`] ? (L(), S("div",
|
|
10372
|
+
C("div", ap, [C("p", op, G(i.title), 1), i.date ? (L(), S("span", sp, G(i.date), 1)) : x("", !0)]),
|
|
10373
|
+
i.description ? (L(), S("p", cp, G(i.description), 1)) : x("", !0),
|
|
10374
|
+
n.$slots[`item-${a}`] ? (L(), S("div", lp, [H(n.$slots, `item-${a}`, { item: i })])) : x("", !0)
|
|
10351
10375
|
], 2)], 2))), 128))], 2));
|
|
10352
10376
|
}
|
|
10353
|
-
}),
|
|
10377
|
+
}), gp = { class: "flex flex-col gap-1" }, _p = {
|
|
10354
10378
|
key: 0,
|
|
10355
10379
|
class: "flex-1 font-mono text-on-surface"
|
|
10356
|
-
},
|
|
10380
|
+
}, vp = {
|
|
10357
10381
|
key: 1,
|
|
10358
10382
|
class: "flex-1 text-on-surface-variant"
|
|
10359
|
-
},
|
|
10383
|
+
}, yp = {
|
|
10360
10384
|
key: 0,
|
|
10361
10385
|
class: "px-4 text-body-small text-error"
|
|
10362
|
-
},
|
|
10386
|
+
}, bp = {
|
|
10363
10387
|
key: 1,
|
|
10364
10388
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
10365
|
-
},
|
|
10389
|
+
}, xp = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Sp = { class: "p-3" }, Cp = {
|
|
10366
10390
|
key: 0,
|
|
10367
10391
|
class: "grid grid-cols-6 gap-1"
|
|
10368
|
-
},
|
|
10392
|
+
}, wp = ["onClick"], Tp = {
|
|
10369
10393
|
key: 1,
|
|
10370
10394
|
class: "grid grid-cols-6 gap-1"
|
|
10371
|
-
},
|
|
10395
|
+
}, Ep = ["onClick"], Dp = /* @__PURE__ */ D({
|
|
10372
10396
|
__name: "MTimePicker",
|
|
10373
10397
|
props: {
|
|
10374
10398
|
modelValue: {},
|
|
@@ -10441,7 +10465,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10441
10465
|
e ? (d.value = "hour", y.value = _.value.h, w.value = _.value.m, R(), setTimeout(() => document.addEventListener("mousedown", z), 0)) : document.removeEventListener("mousedown", z);
|
|
10442
10466
|
}), F(() => window.addEventListener("scroll", H, !0)), I(() => {
|
|
10443
10467
|
window.removeEventListener("scroll", H, !0), document.removeEventListener("mousedown", z);
|
|
10444
|
-
}), (t, n) => (L(), S("div",
|
|
10468
|
+
}), (t, n) => (L(), S("div", gp, [
|
|
10445
10469
|
C("div", {
|
|
10446
10470
|
ref_key: "triggerEl",
|
|
10447
10471
|
ref: l,
|
|
@@ -10457,7 +10481,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10457
10481
|
size: 20,
|
|
10458
10482
|
class: "shrink-0 text-on-surface-variant"
|
|
10459
10483
|
}),
|
|
10460
|
-
P.value ? (L(), S("span",
|
|
10484
|
+
P.value ? (L(), S("span", _p, G(P.value), 1)) : (L(), S("span", vp, G(e.label || e.placeholder || K(o).selectTime), 1)),
|
|
10461
10485
|
e.modelValue ? (L(), b(r, {
|
|
10462
10486
|
key: 2,
|
|
10463
10487
|
name: "close",
|
|
@@ -10469,7 +10493,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10469
10493
|
key: 0,
|
|
10470
10494
|
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"])
|
|
10471
10495
|
}, G(e.label), 3)) : x("", !0)], 4),
|
|
10472
|
-
e.error && e.errorLabel ? (L(), S("p",
|
|
10496
|
+
e.error && e.errorLabel ? (L(), S("p", yp, G(e.errorLabel), 1)) : e.hint ? (L(), S("p", bp, G(e.hint), 1)) : x("", !0),
|
|
10473
10497
|
(L(), b(h, { to: "body" }, [E(g, {
|
|
10474
10498
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
10475
10499
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -10482,7 +10506,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10482
10506
|
ref: u,
|
|
10483
10507
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
10484
10508
|
style: N(f.value)
|
|
10485
|
-
}, [C("div",
|
|
10509
|
+
}, [C("div", xp, [
|
|
10486
10510
|
C("button", {
|
|
10487
10511
|
type: "button",
|
|
10488
10512
|
class: M(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -10494,34 +10518,34 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10494
10518
|
class: M(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
10495
10519
|
onClick: n[2] ||= (e) => d.value = "minute"
|
|
10496
10520
|
}, G(O(w.value)), 3)
|
|
10497
|
-
]), C("div",
|
|
10521
|
+
]), C("div", Sp, [d.value === "hour" ? (L(), S("div", Cp, [(L(!0), S(m, null, V(K(T), (e) => (L(), S("button", {
|
|
10498
10522
|
key: e,
|
|
10499
10523
|
type: "button",
|
|
10500
10524
|
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"]),
|
|
10501
10525
|
onClick: (t) => k(e)
|
|
10502
|
-
}, G(O(e)), 11,
|
|
10526
|
+
}, G(O(e)), 11, wp))), 128))])) : (L(), S("div", Tp, [(L(!0), S(m, null, V(D.value, (e) => (L(), S("button", {
|
|
10503
10527
|
key: e,
|
|
10504
10528
|
type: "button",
|
|
10505
10529
|
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"]),
|
|
10506
10530
|
onClick: (t) => A(e)
|
|
10507
|
-
}, G(O(e)), 11,
|
|
10531
|
+
}, G(O(e)), 11, Ep))), 128))]))])], 4)) : x("", !0)]),
|
|
10508
10532
|
_: 1
|
|
10509
10533
|
})]))
|
|
10510
10534
|
]));
|
|
10511
10535
|
}
|
|
10512
|
-
}),
|
|
10536
|
+
}), Op = { class: "tp-box w-[328px] rounded-[28px] bg-surface-container-high px-6 pt-6 pb-4 shadow-elevation-3" }, kp = { class: "mb-5 text-label-medium text-on-surface-variant" }, Ap = { class: "mb-5 flex items-center justify-center gap-2" }, jp = {
|
|
10513
10537
|
key: 0,
|
|
10514
10538
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
10515
|
-
},
|
|
10539
|
+
}, Mp = {
|
|
10516
10540
|
class: "pointer-events-none absolute inset-0",
|
|
10517
10541
|
viewBox: "0 0 256 256"
|
|
10518
|
-
},
|
|
10542
|
+
}, Np = ["x2", "y2"], Pp = ["cx", "cy"], Fp = ["onClick"], Ip = ["onClick"], Lp = {
|
|
10519
10543
|
key: 1,
|
|
10520
10544
|
class: "mx-auto flex items-center justify-center gap-2 py-8"
|
|
10521
|
-
},
|
|
10545
|
+
}, Rp = {
|
|
10522
10546
|
key: 0,
|
|
10523
10547
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
10524
|
-
},
|
|
10548
|
+
}, zp = { class: "mt-2 flex items-center justify-between" }, Bp = { class: "flex gap-2" }, Vp = 256, Hp = 100, Up = 64, Wp = 20, Gp = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
10525
10549
|
__name: "MTimePickerModal",
|
|
10526
10550
|
props: {
|
|
10527
10551
|
modelValue: { default: null },
|
|
@@ -10559,7 +10583,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10559
10583
|
r.use24h ? d.value = e : (u.value = e >= 12 ? "PM" : "AM", d.value = e % 12 || 12), f.value = t, s.value = "hour", c.value = "dial", document.addEventListener("keydown", te), document.body.style.overflow = "hidden";
|
|
10560
10584
|
} else document.removeEventListener("keydown", te), document.body.style.overflow = "";
|
|
10561
10585
|
});
|
|
10562
|
-
let O =
|
|
10586
|
+
let O = Vp / 2;
|
|
10563
10587
|
function k(e, t, n) {
|
|
10564
10588
|
let r = e / t * Math.PI * 2 - Math.PI / 2;
|
|
10565
10589
|
return {
|
|
@@ -10570,7 +10594,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10570
10594
|
let A = v(() => {
|
|
10571
10595
|
let e = [];
|
|
10572
10596
|
for (let t = 0; t < 12; t++) {
|
|
10573
|
-
let n = t === 0 ? 12 : t, r = k(t, 12,
|
|
10597
|
+
let n = t === 0 ? 12 : t, r = k(t, 12, Hp);
|
|
10574
10598
|
e.push({
|
|
10575
10599
|
value: n,
|
|
10576
10600
|
label: String(n),
|
|
@@ -10578,7 +10602,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10578
10602
|
});
|
|
10579
10603
|
}
|
|
10580
10604
|
if (r.use24h) for (let t = 0; t < 12; t++) {
|
|
10581
|
-
let n = t === 0 ? 0 : t + 12, r = k(t, 12,
|
|
10605
|
+
let n = t === 0 ? 0 : t + 12, r = k(t, 12, Up);
|
|
10582
10606
|
e.push({
|
|
10583
10607
|
value: n,
|
|
10584
10608
|
label: w(n),
|
|
@@ -10587,7 +10611,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10587
10611
|
}
|
|
10588
10612
|
return e;
|
|
10589
10613
|
}), j = v(() => Array.from({ length: 12 }, (e, t) => {
|
|
10590
|
-
let n = t * 5, r = k(t, 12,
|
|
10614
|
+
let n = t * 5, r = k(t, 12, Hp);
|
|
10591
10615
|
return {
|
|
10592
10616
|
value: n,
|
|
10593
10617
|
label: w(n),
|
|
@@ -10595,7 +10619,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10595
10619
|
};
|
|
10596
10620
|
})), P = v(() => {
|
|
10597
10621
|
if (s.value === "hour") {
|
|
10598
|
-
let e = d.value, t = r.use24h && (e === 0 || e > 12) ?
|
|
10622
|
+
let e = d.value, t = r.use24h && (e === 0 || e > 12) ? Up : Hp, n = e % 12 / 12 * Math.PI * 2 - Math.PI / 2;
|
|
10599
10623
|
return {
|
|
10600
10624
|
x: O + Math.cos(n) * t,
|
|
10601
10625
|
y: O + Math.sin(n) * t
|
|
@@ -10603,8 +10627,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10603
10627
|
}
|
|
10604
10628
|
let e = f.value / 60 * Math.PI * 2 - Math.PI / 2;
|
|
10605
10629
|
return {
|
|
10606
|
-
x: O + Math.cos(e) *
|
|
10607
|
-
y: O + Math.sin(e) *
|
|
10630
|
+
x: O + Math.cos(e) * Hp,
|
|
10631
|
+
y: O + Math.sin(e) * Hp
|
|
10608
10632
|
};
|
|
10609
10633
|
});
|
|
10610
10634
|
function F(e) {
|
|
@@ -10682,9 +10706,9 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10682
10706
|
key: 0,
|
|
10683
10707
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
10684
10708
|
onClick: Q(J, ["self"])
|
|
10685
|
-
}, [C("div",
|
|
10686
|
-
C("p",
|
|
10687
|
-
c.value === "dial" ? (L(), S(m, { key: 0 }, [C("div",
|
|
10709
|
+
}, [C("div", Op, [
|
|
10710
|
+
C("p", kp, G(e.title || K(a).selectTime), 1),
|
|
10711
|
+
c.value === "dial" ? (L(), S(m, { key: 0 }, [C("div", Ap, [
|
|
10688
10712
|
C("button", {
|
|
10689
10713
|
type: "button",
|
|
10690
10714
|
class: M(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", s.value === "hour" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
@@ -10696,7 +10720,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10696
10720
|
class: M(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", s.value === "minute" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
10697
10721
|
onClick: n[1] ||= (e) => s.value = "minute"
|
|
10698
10722
|
}, G(w(f.value)), 3),
|
|
10699
|
-
e.use24h ? x("", !0) : (L(), S("div",
|
|
10723
|
+
e.use24h ? x("", !0) : (L(), S("div", jp, [
|
|
10700
10724
|
C("button", {
|
|
10701
10725
|
type: "button",
|
|
10702
10726
|
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"]),
|
|
@@ -10717,7 +10741,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10717
10741
|
onTouchstart: Q(z, ["prevent"])
|
|
10718
10742
|
}, [
|
|
10719
10743
|
n[11] ||= C("div", { class: "absolute inset-0 rounded-full bg-surface-container-highest" }, null, -1),
|
|
10720
|
-
(L(), S("svg",
|
|
10744
|
+
(L(), S("svg", Mp, [
|
|
10721
10745
|
C("line", {
|
|
10722
10746
|
x1: O,
|
|
10723
10747
|
y1: O,
|
|
@@ -10725,7 +10749,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10725
10749
|
y2: P.value.y,
|
|
10726
10750
|
stroke: "var(--color-primary)",
|
|
10727
10751
|
"stroke-width": "2"
|
|
10728
|
-
}, null, 8,
|
|
10752
|
+
}, null, 8, Np),
|
|
10729
10753
|
C("circle", {
|
|
10730
10754
|
cx: O,
|
|
10731
10755
|
cy: O,
|
|
@@ -10735,9 +10759,9 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10735
10759
|
C("circle", {
|
|
10736
10760
|
cx: P.value.x,
|
|
10737
10761
|
cy: P.value.y,
|
|
10738
|
-
r:
|
|
10762
|
+
r: Wp,
|
|
10739
10763
|
fill: "var(--color-primary)"
|
|
10740
|
-
}, null, 8,
|
|
10764
|
+
}, null, 8, Pp)
|
|
10741
10765
|
])),
|
|
10742
10766
|
s.value === "hour" ? (L(!0), S(m, { key: 0 }, V(A.value, (e) => (L(), S("button", {
|
|
10743
10767
|
key: "h" + e.value,
|
|
@@ -10749,7 +10773,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10749
10773
|
transform: "translate(-50%, -50%)"
|
|
10750
10774
|
}),
|
|
10751
10775
|
onClick: Q((t) => H(e.value), ["stop"])
|
|
10752
|
-
}, G(e.label), 15,
|
|
10776
|
+
}, G(e.label), 15, Fp))), 128)) : (L(!0), S(m, { key: 1 }, V(j.value, (e) => (L(), S("button", {
|
|
10753
10777
|
key: "m" + e.value,
|
|
10754
10778
|
type: "button",
|
|
10755
10779
|
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"]),
|
|
@@ -10759,8 +10783,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10759
10783
|
transform: "translate(-50%, -50%)"
|
|
10760
10784
|
}),
|
|
10761
10785
|
onClick: Q((t) => f.value = e.value, ["stop"])
|
|
10762
|
-
}, G(e.label), 15,
|
|
10763
|
-
], 544)], 64)) : (L(), S("div",
|
|
10786
|
+
}, G(e.label), 15, Ip))), 128))
|
|
10787
|
+
], 544)], 64)) : (L(), S("div", Lp, [
|
|
10764
10788
|
re(C("input", {
|
|
10765
10789
|
ref_key: "inputHourEl",
|
|
10766
10790
|
ref: _,
|
|
@@ -10780,7 +10804,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10780
10804
|
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",
|
|
10781
10805
|
onBlur: q
|
|
10782
10806
|
}, null, 544), [[ee, W.value]]),
|
|
10783
|
-
e.use24h ? x("", !0) : (L(), S("div",
|
|
10807
|
+
e.use24h ? x("", !0) : (L(), S("div", Rp, [
|
|
10784
10808
|
C("button", {
|
|
10785
10809
|
type: "button",
|
|
10786
10810
|
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"]),
|
|
@@ -10794,11 +10818,11 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10794
10818
|
}, "PM", 2)
|
|
10795
10819
|
]))
|
|
10796
10820
|
])),
|
|
10797
|
-
C("div",
|
|
10821
|
+
C("div", zp, [E(l, {
|
|
10798
10822
|
icon: c.value === "dial" ? "keyboard" : "schedule",
|
|
10799
10823
|
label: c.value === "dial" ? "Switch to keyboard" : "Switch to dial",
|
|
10800
10824
|
onClick: n[8] ||= (e) => c.value = c.value === "dial" ? "input" : "dial"
|
|
10801
|
-
}, null, 8, ["icon", "label"]), C("div",
|
|
10825
|
+
}, null, 8, ["icon", "label"]), C("div", Bp, [E(i, {
|
|
10802
10826
|
variant: "text",
|
|
10803
10827
|
onClick: J
|
|
10804
10828
|
}, {
|
|
@@ -10815,7 +10839,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10815
10839
|
_: 1
|
|
10816
10840
|
})]));
|
|
10817
10841
|
}
|
|
10818
|
-
}), [["__scopeId", "data-v-a2a090e9"]]),
|
|
10842
|
+
}), [["__scopeId", "data-v-a2a090e9"]]), Kp = /* @__PURE__ */ D({
|
|
10819
10843
|
__name: "MTitle",
|
|
10820
10844
|
props: {
|
|
10821
10845
|
size: { default: "large" },
|
|
@@ -10829,7 +10853,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10829
10853
|
medium: "headline-medium",
|
|
10830
10854
|
small: "headline-small"
|
|
10831
10855
|
}, r = v(() => n[t.size]);
|
|
10832
|
-
return (t, n) => (L(), b(
|
|
10856
|
+
return (t, n) => (L(), b(yf, {
|
|
10833
10857
|
variant: r.value,
|
|
10834
10858
|
weight: "medium",
|
|
10835
10859
|
color: e.color,
|
|
@@ -10845,13 +10869,13 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10845
10869
|
"truncate"
|
|
10846
10870
|
]));
|
|
10847
10871
|
}
|
|
10848
|
-
}),
|
|
10872
|
+
}), qp = {
|
|
10849
10873
|
key: 0,
|
|
10850
10874
|
class: "px-4 pt-3 pb-1 text-title-small font-medium text-on-surface"
|
|
10851
|
-
},
|
|
10875
|
+
}, Jp = { class: "px-4 py-2 text-body-medium text-on-surface-variant" }, Yp = {
|
|
10852
10876
|
key: 1,
|
|
10853
10877
|
class: "flex justify-end gap-2 px-4 pb-3"
|
|
10854
|
-
},
|
|
10878
|
+
}, Xp = /* @__PURE__ */ D({
|
|
10855
10879
|
__name: "MTooltip",
|
|
10856
10880
|
props: {
|
|
10857
10881
|
text: {},
|
|
@@ -10943,20 +10967,20 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10943
10967
|
onMouseenter: d,
|
|
10944
10968
|
onMouseleave: f
|
|
10945
10969
|
}, [
|
|
10946
|
-
e.text ? (L(), S("div",
|
|
10947
|
-
C("div",
|
|
10948
|
-
t.$slots.actions ? (L(), S("div",
|
|
10970
|
+
e.text ? (L(), S("div", qp, G(e.text), 1)) : x("", !0),
|
|
10971
|
+
C("div", Jp, [H(t.$slots, "content")]),
|
|
10972
|
+
t.$slots.actions ? (L(), S("div", Yp, [H(t.$slots, "actions")])) : x("", !0)
|
|
10949
10973
|
], 36)) : x("", !0)]),
|
|
10950
10974
|
_: 3
|
|
10951
10975
|
})]))], 64));
|
|
10952
10976
|
}
|
|
10953
|
-
}),
|
|
10977
|
+
}), Zp = {
|
|
10954
10978
|
key: 0,
|
|
10955
10979
|
class: "shrink-0"
|
|
10956
|
-
},
|
|
10980
|
+
}, Qp = {
|
|
10957
10981
|
key: 1,
|
|
10958
10982
|
class: "shrink-0"
|
|
10959
|
-
},
|
|
10983
|
+
}, $p = /* @__PURE__ */ D({
|
|
10960
10984
|
__name: "MToolbar",
|
|
10961
10985
|
props: {
|
|
10962
10986
|
variant: { default: "docked" },
|
|
@@ -10985,7 +11009,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10985
11009
|
e.fabPosition === "start" && !i.value ? "flex-row" : "",
|
|
10986
11010
|
e.fabPosition === "start" && i.value ? "flex-col" : ""
|
|
10987
11011
|
]]) }, [
|
|
10988
|
-
t.$slots.fab && e.fabPosition === "start" ? (L(), S("div",
|
|
11012
|
+
t.$slots.fab && e.fabPosition === "start" ? (L(), S("div", Zp, [H(t.$slots, "fab")])) : x("", !0),
|
|
10989
11013
|
C("div", { class: M(["flex items-center gap-1", [
|
|
10990
11014
|
i.value ? "flex-col py-3 px-2" : "flex-row px-3 py-2",
|
|
10991
11015
|
r.value,
|
|
@@ -10994,16 +11018,16 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
10994
11018
|
e.variant === "docked" ? "w-full border-t border-outline-variant" : "",
|
|
10995
11019
|
e.variant === "docked" && i.value ? "h-full w-auto border-t-0 border-r border-outline-variant" : ""
|
|
10996
11020
|
]]) }, [H(t.$slots, "default")], 2),
|
|
10997
|
-
t.$slots.fab && e.fabPosition === "end" ? (L(), S("div",
|
|
11021
|
+
t.$slots.fab && e.fabPosition === "end" ? (L(), S("div", Qp, [H(t.$slots, "fab")])) : x("", !0)
|
|
10998
11022
|
], 2));
|
|
10999
11023
|
}
|
|
11000
|
-
}),
|
|
11024
|
+
}), em = { class: "flex h-16 items-center gap-1 px-4" }, tm = {
|
|
11001
11025
|
key: 1,
|
|
11002
11026
|
class: "flex-1"
|
|
11003
|
-
},
|
|
11027
|
+
}, nm = {
|
|
11004
11028
|
key: 2,
|
|
11005
11029
|
class: "flex items-center gap-1"
|
|
11006
|
-
},
|
|
11030
|
+
}, rm = /* @__PURE__ */ D({
|
|
11007
11031
|
__name: "MTopAppBar",
|
|
11008
11032
|
props: {
|
|
11009
11033
|
title: {},
|
|
@@ -11014,7 +11038,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11014
11038
|
},
|
|
11015
11039
|
emits: ["navigation"],
|
|
11016
11040
|
setup(e) {
|
|
11017
|
-
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",
|
|
11041
|
+
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", em, [
|
|
11018
11042
|
H(t.$slots, "navigation", {}, () => [e.navigationIcon ? (L(), b(l, {
|
|
11019
11043
|
key: 0,
|
|
11020
11044
|
icon: e.navigationIcon,
|
|
@@ -11024,14 +11048,14 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11024
11048
|
e.variant === "center" || e.variant === "small" ? (L(), S("h1", {
|
|
11025
11049
|
key: 0,
|
|
11026
11050
|
class: M(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", e.variant === "center" ? "justify-center" : ""])
|
|
11027
|
-
}, [H(t.$slots, "title", {}, () => [T(G(e.title), 1)])], 2)) : (L(), S("div",
|
|
11028
|
-
t.$slots.actions ? (L(), S("div",
|
|
11051
|
+
}, [H(t.$slots, "title", {}, () => [T(G(e.title), 1)])], 2)) : (L(), S("div", tm)),
|
|
11052
|
+
t.$slots.actions ? (L(), S("div", nm, [H(t.$slots, "actions")])) : x("", !0)
|
|
11029
11053
|
]), e.variant === "medium" || e.variant === "large" ? (L(), S("div", {
|
|
11030
11054
|
key: 0,
|
|
11031
11055
|
class: M(["px-4 pb-6", e.variant === "large" ? "pt-4" : "pt-1"])
|
|
11032
11056
|
}, [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));
|
|
11033
11057
|
}
|
|
11034
|
-
}),
|
|
11058
|
+
}), im = { class: "mb-2 flex items-center justify-between" }, am = { class: "text-label-small text-on-surface-variant" }, om = { class: "mb-1 text-title-medium font-medium text-on-surface" }, sm = { class: "mb-4 text-body-medium text-on-surface-variant" }, cm = { class: "mb-4 flex justify-center gap-1.5" }, lm = { class: "flex justify-between" }, um = { key: 1 }, dm = /* @__PURE__ */ D({
|
|
11035
11059
|
__name: "MTour",
|
|
11036
11060
|
props: {
|
|
11037
11061
|
modelValue: { type: Boolean },
|
|
@@ -11114,7 +11138,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11114
11138
|
class: "h-0 w-0",
|
|
11115
11139
|
style: N(u.value)
|
|
11116
11140
|
}, null, 4),
|
|
11117
|
-
C("div",
|
|
11141
|
+
C("div", im, [C("span", am, G(c.value + 1) + " / " + G(e.steps.length), 1), C("button", {
|
|
11118
11142
|
type: "button",
|
|
11119
11143
|
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",
|
|
11120
11144
|
onClick: H
|
|
@@ -11122,13 +11146,13 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11122
11146
|
name: "close",
|
|
11123
11147
|
size: 16
|
|
11124
11148
|
})])]),
|
|
11125
|
-
C("h3",
|
|
11126
|
-
C("p",
|
|
11127
|
-
C("div",
|
|
11149
|
+
C("h3", om, G(f.value.title), 1),
|
|
11150
|
+
C("p", sm, G(f.value.content), 1),
|
|
11151
|
+
C("div", cm, [(L(!0), S(m, null, V(e.steps, (e, t) => (L(), S("div", {
|
|
11128
11152
|
key: t,
|
|
11129
11153
|
class: M(["h-1.5 rounded-full transition-all duration-200", t === c.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
11130
11154
|
}, null, 2))), 128))]),
|
|
11131
|
-
C("div",
|
|
11155
|
+
C("div", lm, [p.value ? (L(), S("span", um)) : (L(), b(i, {
|
|
11132
11156
|
key: 0,
|
|
11133
11157
|
variant: "text",
|
|
11134
11158
|
onClick: z
|
|
@@ -11143,19 +11167,19 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11143
11167
|
_: 1
|
|
11144
11168
|
})]));
|
|
11145
11169
|
}
|
|
11146
|
-
}),
|
|
11170
|
+
}), fm = { class: "flex items-stretch gap-2" }, pm = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, mm = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, hm = { class: "text-label-large font-medium text-on-surface" }, gm = { class: "text-label-small text-on-surface-variant" }, _m = {
|
|
11147
11171
|
key: 0,
|
|
11148
11172
|
class: "border-b border-outline-variant px-3 py-2"
|
|
11149
|
-
},
|
|
11173
|
+
}, vm = ["placeholder"], ym = {
|
|
11150
11174
|
class: "flex-1 overflow-y-auto",
|
|
11151
11175
|
style: { "max-height": "240px" }
|
|
11152
|
-
},
|
|
11176
|
+
}, bm = ["onClick"], xm = { class: "flex-1 truncate text-body-medium text-on-surface" }, Sm = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Cm = { class: "flex flex-col items-center justify-center gap-1" }, wm = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Tm = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Em = { class: "text-label-large font-medium text-on-surface" }, Dm = { class: "text-label-small text-on-surface-variant" }, Om = {
|
|
11153
11177
|
key: 0,
|
|
11154
11178
|
class: "border-b border-outline-variant px-3 py-2"
|
|
11155
|
-
},
|
|
11179
|
+
}, km = ["placeholder"], Am = {
|
|
11156
11180
|
class: "flex-1 overflow-y-auto",
|
|
11157
11181
|
style: { "max-height": "240px" }
|
|
11158
|
-
},
|
|
11182
|
+
}, jm = ["onClick"], Mm = { class: "flex-1 truncate text-body-medium text-on-surface" }, Nm = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Pm = /* @__PURE__ */ D({
|
|
11159
11183
|
__name: "MTransferList",
|
|
11160
11184
|
props: {
|
|
11161
11185
|
modelValue: {},
|
|
@@ -11213,16 +11237,16 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11213
11237
|
let e = p.value.map((e) => e.value);
|
|
11214
11238
|
o("update:modelValue", a.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
11215
11239
|
}
|
|
11216
|
-
return (t, n) => (L(), S("div",
|
|
11217
|
-
C("div",
|
|
11218
|
-
C("div",
|
|
11219
|
-
e.filterable ? (L(), S("div",
|
|
11240
|
+
return (t, n) => (L(), S("div", fm, [
|
|
11241
|
+
C("div", pm, [
|
|
11242
|
+
C("div", mm, [C("span", hm, G(e.sourceTitle ?? K(i).available), 1), C("span", gm, G(f.value.length), 1)]),
|
|
11243
|
+
e.filterable ? (L(), S("div", _m, [re(C("input", {
|
|
11220
11244
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
11221
11245
|
type: "text",
|
|
11222
11246
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
11223
11247
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
11224
|
-
}, null, 8,
|
|
11225
|
-
C("div",
|
|
11248
|
+
}, null, 8, vm), [[ee, u.value]])])) : x("", !0),
|
|
11249
|
+
C("div", ym, [(L(!0), S(m, null, V(f.value, (e) => (L(), S("button", {
|
|
11226
11250
|
key: e.value,
|
|
11227
11251
|
type: "button",
|
|
11228
11252
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -11238,10 +11262,10 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11238
11262
|
size: 18,
|
|
11239
11263
|
class: "shrink-0 text-on-surface-variant"
|
|
11240
11264
|
}, null, 8, ["name"])) : x("", !0),
|
|
11241
|
-
C("span",
|
|
11242
|
-
], 8,
|
|
11265
|
+
C("span", xm, G(e.label), 1)
|
|
11266
|
+
], 8, bm))), 128)), f.value.length ? x("", !0) : H(t.$slots, "source-empty", { key: 0 }, () => [C("p", Sm, G(e.emptyText ?? K(i).noItems), 1)])])
|
|
11243
11267
|
]),
|
|
11244
|
-
C("div",
|
|
11268
|
+
C("div", Cm, [
|
|
11245
11269
|
E(l, {
|
|
11246
11270
|
icon: "keyboard_double_arrow_right",
|
|
11247
11271
|
label: e.moveAllRightLabel ?? K(i).moveAllRight,
|
|
@@ -11273,15 +11297,15 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11273
11297
|
onClick: T
|
|
11274
11298
|
}, null, 8, ["label", "disabled"])
|
|
11275
11299
|
]),
|
|
11276
|
-
C("div",
|
|
11277
|
-
C("div",
|
|
11278
|
-
e.filterable ? (L(), S("div",
|
|
11300
|
+
C("div", wm, [
|
|
11301
|
+
C("div", Tm, [C("span", Em, G(e.targetTitle ?? K(i).selected), 1), C("span", Dm, G(p.value.length), 1)]),
|
|
11302
|
+
e.filterable ? (L(), S("div", Om, [re(C("input", {
|
|
11279
11303
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
11280
11304
|
type: "text",
|
|
11281
11305
|
placeholder: e.searchPlaceholder ?? K(i).search,
|
|
11282
11306
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
11283
|
-
}, null, 8,
|
|
11284
|
-
C("div",
|
|
11307
|
+
}, null, 8, km), [[ee, d.value]])])) : x("", !0),
|
|
11308
|
+
C("div", Am, [(L(!0), S(m, null, V(p.value, (e) => (L(), S("button", {
|
|
11285
11309
|
key: e.value,
|
|
11286
11310
|
type: "button",
|
|
11287
11311
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -11297,18 +11321,18 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11297
11321
|
size: 18,
|
|
11298
11322
|
class: "shrink-0 text-on-surface-variant"
|
|
11299
11323
|
}, null, 8, ["name"])) : x("", !0),
|
|
11300
|
-
C("span",
|
|
11301
|
-
], 8,
|
|
11324
|
+
C("span", Mm, G(e.label), 1)
|
|
11325
|
+
], 8, jm))), 128)), p.value.length ? x("", !0) : H(t.$slots, "target-empty", { key: 0 }, () => [C("p", Nm, G(e.emptyText ?? K(i).noItems), 1)])])
|
|
11302
11326
|
])
|
|
11303
11327
|
]));
|
|
11304
11328
|
}
|
|
11305
|
-
}),
|
|
11329
|
+
}), Fm = ["aria-expanded", "aria-selected"], Im = { class: "flex w-6 shrink-0 items-center justify-center" }, Lm = ["disabled"], Rm = {
|
|
11306
11330
|
key: 2,
|
|
11307
11331
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
11308
|
-
},
|
|
11332
|
+
}, zm = {
|
|
11309
11333
|
key: 0,
|
|
11310
11334
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
11311
|
-
},
|
|
11335
|
+
}, Bm = /* @__PURE__ */ D({
|
|
11312
11336
|
__name: "_MTreeNode",
|
|
11313
11337
|
props: {
|
|
11314
11338
|
node: {},
|
|
@@ -11353,7 +11377,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11353
11377
|
]),
|
|
11354
11378
|
onClick: d
|
|
11355
11379
|
}, [
|
|
11356
|
-
C("div",
|
|
11380
|
+
C("div", Im, [i.value ? (L(), S("button", {
|
|
11357
11381
|
key: 0,
|
|
11358
11382
|
type: "button",
|
|
11359
11383
|
class: M(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", a.value ? "rotate-90" : ""]),
|
|
@@ -11362,7 +11386,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11362
11386
|
}, [E(r, {
|
|
11363
11387
|
name: "chevron_right",
|
|
11364
11388
|
size: 16
|
|
11365
|
-
})], 10,
|
|
11389
|
+
})], 10, Lm)) : x("", !0)]),
|
|
11366
11390
|
K(n).checkable.value ? (L(), S("div", {
|
|
11367
11391
|
key: 0,
|
|
11368
11392
|
class: "shrink-0",
|
|
@@ -11384,7 +11408,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11384
11408
|
class: M(["shrink-0 transition-colors", o.value ? "text-primary" : "text-on-surface-variant"])
|
|
11385
11409
|
}, null, 8, ["name", "class"])) : x("", !0),
|
|
11386
11410
|
C("span", { class: M(["min-w-0 flex-1 truncate text-body-medium transition-colors", o.value ? "font-medium text-primary" : "text-on-surface"]) }, [H(t.$slots, "label", { node: e.node }, () => [T(G(e.node.label), 1)])], 2),
|
|
11387
|
-
i.value && K(n).checkable.value ? (L(), S("span",
|
|
11411
|
+
i.value && K(n).checkable.value ? (L(), S("span", Rm, G(c.value) + "/" + G(s.value.length), 1)) : x("", !0),
|
|
11388
11412
|
H(t.$slots, "trailing", { node: e.node })
|
|
11389
11413
|
], 2), E(g, {
|
|
11390
11414
|
onEnter: h,
|
|
@@ -11392,7 +11416,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11392
11416
|
onLeave: y,
|
|
11393
11417
|
onAfterLeave: D
|
|
11394
11418
|
}, {
|
|
11395
|
-
default: Z(() => [a.value && i.value ? (L(), S("div",
|
|
11419
|
+
default: Z(() => [a.value && i.value ? (L(), S("div", zm, [(L(!0), S(m, null, V(e.node.children, (n) => (L(), b(Bm, {
|
|
11396
11420
|
key: n.id,
|
|
11397
11421
|
node: n,
|
|
11398
11422
|
depth: e.depth + 1
|
|
@@ -11401,15 +11425,15 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11401
11425
|
fn: Z((e) => [H(t.$slots, n, A({ ref_for: !0 }, e ?? {}))])
|
|
11402
11426
|
}))]), 1032, ["node", "depth"]))), 128))])) : x("", !0)]),
|
|
11403
11427
|
_: 3
|
|
11404
|
-
})], 8,
|
|
11428
|
+
})], 8, Fm));
|
|
11405
11429
|
}
|
|
11406
|
-
}),
|
|
11430
|
+
}), Vm = {
|
|
11407
11431
|
role: "tree",
|
|
11408
11432
|
class: "flex flex-col"
|
|
11409
|
-
},
|
|
11433
|
+
}, Hm = {
|
|
11410
11434
|
key: 1,
|
|
11411
11435
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
11412
|
-
},
|
|
11436
|
+
}, Um = { class: "text-body-medium" }, Wm = /* @__PURE__ */ D({
|
|
11413
11437
|
__name: "MTree",
|
|
11414
11438
|
props: {
|
|
11415
11439
|
nodes: {},
|
|
@@ -11475,26 +11499,26 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11475
11499
|
return t({
|
|
11476
11500
|
expandAll: _,
|
|
11477
11501
|
collapseAll: y
|
|
11478
|
-
}), (t, n) => (L(), S("div",
|
|
11502
|
+
}), (t, n) => (L(), S("div", Vm, [e.nodes.length ? (L(!0), S(m, { key: 0 }, V(e.nodes, (e) => (L(), b(Bm, {
|
|
11479
11503
|
key: e.id,
|
|
11480
11504
|
node: e,
|
|
11481
11505
|
depth: 0
|
|
11482
11506
|
}, w({ _: 2 }, [V(t.$slots, (e, n) => ({
|
|
11483
11507
|
name: n,
|
|
11484
11508
|
fn: Z((e) => [H(t.$slots, n, A({ ref_for: !0 }, e ?? {}))])
|
|
11485
|
-
}))]), 1032, ["node"]))), 128)) : (L(), S("div",
|
|
11509
|
+
}))]), 1032, ["node"]))), 128)) : (L(), S("div", Hm, [E(r, {
|
|
11486
11510
|
name: "account_tree",
|
|
11487
11511
|
size: 32,
|
|
11488
11512
|
class: "opacity-30"
|
|
11489
|
-
}), C("p",
|
|
11513
|
+
}), C("p", Um, G(e.emptyText), 1)]))]));
|
|
11490
11514
|
}
|
|
11491
|
-
}),
|
|
11515
|
+
}), Gm = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Km = {
|
|
11492
11516
|
key: 0,
|
|
11493
11517
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
11494
|
-
},
|
|
11518
|
+
}, qm = { class: "overflow-x-auto" }, Jm = { class: "w-full border-collapse" }, Ym = { class: "bg-surface-container-high" }, Xm = ["onClick"], Zm = ["onClick"], Qm = {
|
|
11495
11519
|
key: 1,
|
|
11496
11520
|
class: "w-6 shrink-0"
|
|
11497
|
-
},
|
|
11521
|
+
}, $m = { key: 0 }, eh = ["colspan"], th = /* @__PURE__ */ D({
|
|
11498
11522
|
__name: "MTreeTable",
|
|
11499
11523
|
props: {
|
|
11500
11524
|
columns: {},
|
|
@@ -11549,10 +11573,10 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11549
11573
|
function f(e) {
|
|
11550
11574
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
11551
11575
|
}
|
|
11552
|
-
return (t, n) => (L(), S("div",
|
|
11576
|
+
return (t, n) => (L(), S("div", Gm, [t.$slots.toolbar ? (L(), S("div", Km, [H(t.$slots, "toolbar", {
|
|
11553
11577
|
expandAll: u,
|
|
11554
11578
|
collapseAll: d
|
|
11555
|
-
})])) : x("", !0), C("div",
|
|
11579
|
+
})])) : x("", !0), C("div", qm, [C("table", Jm, [C("thead", null, [C("tr", Ym, [(L(!0), S(m, null, V(e.columns, (t, n) => (L(), S("th", {
|
|
11556
11580
|
key: t.key,
|
|
11557
11581
|
style: N(t.width ? { width: t.width } : void 0),
|
|
11558
11582
|
class: M([
|
|
@@ -11583,7 +11607,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11583
11607
|
}, [E(r, {
|
|
11584
11608
|
name: "chevron_right",
|
|
11585
11609
|
size: 18
|
|
11586
|
-
})], 10,
|
|
11610
|
+
})], 10, Zm)) : (L(), S("span", Qm)), H(t.$slots, `cell-${i.key}`, {
|
|
11587
11611
|
row: n.row,
|
|
11588
11612
|
value: n.row[i.key],
|
|
11589
11613
|
depth: n.depth
|
|
@@ -11592,19 +11616,19 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11592
11616
|
row: n.row,
|
|
11593
11617
|
value: n.row[i.key],
|
|
11594
11618
|
depth: n.depth
|
|
11595
|
-
}, () => [T(G(n.row[i.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
11619
|
+
}, () => [T(G(n.row[i.key] ?? "—"), 1)])], 2))), 128))], 10, Xm))), 128)), l.value.length ? x("", !0) : (L(), S("tr", $m, [C("td", {
|
|
11596
11620
|
colspan: e.columns.length,
|
|
11597
11621
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
11598
11622
|
}, [E(r, {
|
|
11599
11623
|
name: "account_tree",
|
|
11600
11624
|
size: 36,
|
|
11601
11625
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
11602
|
-
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
11626
|
+
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, eh)]))])])])]));
|
|
11603
11627
|
}
|
|
11604
|
-
}),
|
|
11628
|
+
}), nh = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, rh = { class: "flex bg-surface-container-high" }, ih = ["onClick"], ah = { class: "inline-flex items-center gap-1" }, oh = {
|
|
11605
11629
|
key: 0,
|
|
11606
11630
|
class: "inline-flex"
|
|
11607
|
-
},
|
|
11631
|
+
}, sh = ["onClick"], ch = { class: "truncate" }, lh = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, uh = { class: "text-label-small text-on-surface-variant" }, dh = /* @__PURE__ */ D({
|
|
11608
11632
|
__name: "MVirtualTable",
|
|
11609
11633
|
props: {
|
|
11610
11634
|
columns: {},
|
|
@@ -11650,8 +11674,8 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11650
11674
|
function y(e) {
|
|
11651
11675
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
11652
11676
|
}
|
|
11653
|
-
return (t, n) => (L(), S("div",
|
|
11654
|
-
C("div",
|
|
11677
|
+
return (t, n) => (L(), S("div", nh, [
|
|
11678
|
+
C("div", rh, [(L(!0), S(m, null, V(e.columns, (e) => (L(), S("div", {
|
|
11655
11679
|
key: e.key,
|
|
11656
11680
|
style: N({
|
|
11657
11681
|
width: e.width || "auto",
|
|
@@ -11663,7 +11687,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11663
11687
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
11664
11688
|
]),
|
|
11665
11689
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
11666
|
-
}, [C("span",
|
|
11690
|
+
}, [C("span", ah, [T(G(e.label) + " ", 1), e.sortable ? (L(), S("span", oh, [c.value === e.key && l.value === "asc" ? (L(), b(r, {
|
|
11667
11691
|
key: 0,
|
|
11668
11692
|
name: "arrow_upward",
|
|
11669
11693
|
size: 14,
|
|
@@ -11678,7 +11702,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11678
11702
|
name: "unfold_more",
|
|
11679
11703
|
size: 14,
|
|
11680
11704
|
class: "opacity-30"
|
|
11681
|
-
}))])) : x("", !0)])], 14,
|
|
11705
|
+
}))])) : x("", !0)])], 14, ih))), 128))]),
|
|
11682
11706
|
C("div", {
|
|
11683
11707
|
ref_key: "scrollEl",
|
|
11684
11708
|
ref: a,
|
|
@@ -11706,11 +11730,11 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11706
11730
|
}, [H(t.$slots, `cell-${e.key}`, {
|
|
11707
11731
|
row: n,
|
|
11708
11732
|
value: n[e.key]
|
|
11709
|
-
}, () => [C("span",
|
|
11710
|
-
C("div",
|
|
11733
|
+
}, () => [C("span", ch, G(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, sh))), 128))], 4)], 36),
|
|
11734
|
+
C("div", lh, [C("span", uh, [T(G(d.value.length.toLocaleString()) + " filas ", 1), p.value.end - p.value.start < d.value.length ? (L(), S(m, { key: 0 }, [T(" · mostrando " + G(p.value.start + 1) + "–" + G(p.value.end), 1)], 64)) : x("", !0)])])
|
|
11711
11735
|
]));
|
|
11712
11736
|
}
|
|
11713
|
-
}),
|
|
11737
|
+
}), fh = { class: "text-title-small font-medium text-on-surface truncate flex-1" }, ph = { class: "flex-1 overflow-auto" }, mh = ["onMousedown", "onTouchstart"], hh = /* @__PURE__ */ D({
|
|
11714
11738
|
__name: "MWindow",
|
|
11715
11739
|
props: {
|
|
11716
11740
|
modelValue: { type: Boolean },
|
|
@@ -11885,7 +11909,7 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11885
11909
|
name: e.icon,
|
|
11886
11910
|
size: 18,
|
|
11887
11911
|
class: "text-on-surface-variant"
|
|
11888
|
-
}, null, 8, ["name"])) : x("", !0), C("span",
|
|
11912
|
+
}, null, 8, ["name"])) : x("", !0), C("span", fh, G(e.title), 1)]),
|
|
11889
11913
|
H(t.$slots, "actions"),
|
|
11890
11914
|
e.minimizable ? (L(), S("button", {
|
|
11891
11915
|
key: 0,
|
|
@@ -11904,17 +11928,17 @@ var Cd = /*#__PURE__*/ p(bd, [["render", Sd]]), wd = ["disabled"], Td = ["disabl
|
|
|
11904
11928
|
size: 16
|
|
11905
11929
|
})])) : x("", !0)
|
|
11906
11930
|
], 34),
|
|
11907
|
-
re(C("div",
|
|
11931
|
+
re(C("div", ph, [H(t.$slots, "default")], 512), [[te, !l.value]]),
|
|
11908
11932
|
e.resizable && !l.value ? (L(), S(m, { key: 0 }, V(oe, (e) => C("div", {
|
|
11909
11933
|
key: e.dir,
|
|
11910
11934
|
class: M(["absolute", [e.class, e.cursor]]),
|
|
11911
11935
|
onMousedown: (t) => Y(t, e.dir),
|
|
11912
11936
|
onTouchstart: (t) => Y(t, e.dir)
|
|
11913
|
-
}, null, 42,
|
|
11937
|
+
}, null, 42, mh)), 64)) : x("", !0)
|
|
11914
11938
|
], 36)) : x("", !0);
|
|
11915
11939
|
}
|
|
11916
11940
|
});
|
|
11917
11941
|
//#endregion
|
|
11918
|
-
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, i 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,
|
|
11942
|
+
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, i 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, Jl as MCircleProgressBar, Qn as MColorPicker, ur as MColorPickerModal, wr as MCommandPalette, Er as MConfirmDialog, Dr as MContainer, Or as MContextMenu, ri as MDataTable, mi as MDatePicker, Oi as MDatePickerModal, Bi as MDateRangePicker, na as MDateRangePickerModal, o as MDialog, oa as MDivider, fa as MDragDropList, ma as MEmoji, ba as MEmojiButton, Oa as MEmojiSelector, ka as MEmptyState, Ia as MExpansionPanel, Va as MFab, ro as MFileUpload, io as MFixed, uo as MFlex, lo as MFooter, fo as MFullscreen, po as MGrid, yo as MHotkeys, r as MIcon, l as MIconButton, Co as MInfiniteScroll, Mo as MJsonViewer, Ho as MKanban, Uo as MList, rs as MListItem, is as MListSubheader, cs as MLoadingOverlay, bs as MMaskField, ls as MMasonry, c as MMenu, ps as MMenuDivider, f as MMenuItem, Us as MMultiAutocomplete, mc as MMultiSelect, _c as MNavigationBar, ol as MNavigationDrawer, ul as MNavigationRail, Tc as MNumberField, fl as MOverlay, jr as MPagination, kl as MProgressBar, $l as MRadio, nu as MRadioGroup, iu as MRating, cu as MRelative, lu as MResponsive, gu as MResult, Mu as MScheduler, Nu as MScrollable, Ru as MSection, Vu as MSegmentedButton, ad as MSelect, dd as MSideSheet, pd as MSkeleton, vd as MSlider, ve as MSnackbar, Sd as MSpacer, s as MSpinner, Ed as MSplitButton, Dd as MSplitter, Wd as MSpotlightSearch, Gd as MStack, ef as MStatCard, _f as MStepper, vf as MSticky, bf as MSubtitle, Ko as MSwitch, Hf as MTable, rp as MTabs, Xf as MTagInput, yf as MText, u as MTextField, Dp as MTimePicker, Gp as MTimePickerModal, hp as MTimeline, Kp as MTitle, $p as MToolbar, Xp as MTooltip, rm as MTopAppBar, dm as MTour, Pm as MTransferList, Wm as MTree, th as MTreeTable, dh as MVirtualTable, hh as MWindow, ga as allEmojis, ae as createM3UI, e as defaultLocale, ha as emojiCategories, le as palettes, _a as randomEmoji, de as useColorPalette, d as useDebounce, Re as useDevice, a as useFieldBg, t as useLocale, at as useNotification, ce as useTheme, Ne as useToast };
|
|
11919
11943
|
|
|
11920
11944
|
//# sourceMappingURL=m3ui.js.map
|