@m3ui-vue/m3ui-vue 0.3.0 → 0.3.1
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/MChatBubble.vue.d.ts +32 -0
- package/dist/components/MNavigationDrawer.vue.d.ts +1 -1
- package/dist/components/MWindow.vue.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +837 -748
- package/dist/m3ui.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/MChatBubble.vue +98 -0
- package/src/components/MWindow.vue +83 -48
- package/src/index.ts +1 -0
package/dist/m3ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./MMenuItem-C6RwHl-l.js";
|
|
2
2
|
import { t as d } from "./MIcon-CaEooCmZ.js";
|
|
3
3
|
import { t as f } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
|
-
import { Fragment as p, Teleport as m, Transition as h, TransitionGroup as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, inject as E, mergeProps as D, nextTick as O, normalizeClass as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, onUnmounted as N, openBlock as P, provide as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDynamicComponent as V, toDisplayString as H, unref as U, useAttrs as W, useId as G, useSlots as
|
|
4
|
+
import { Fragment as p, Teleport as m, Transition as h, TransitionGroup as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, inject as E, mergeProps as D, nextTick as O, normalizeClass as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, onUnmounted as N, openBlock as P, provide as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDynamicComponent as V, toDisplayString as H, unref as U, useAttrs as W, useId as G, useSlots as ee, vModelText as K, vShow as q, watch as J, watchEffect as Y, withCtx as X, withDirectives as te, withKeys as Z, withModifiers as Q } from "vue";
|
|
5
5
|
//#region src/plugin.ts
|
|
6
6
|
function ne(e = {}) {
|
|
7
7
|
return { install(t) {
|
|
@@ -428,10 +428,10 @@ var be = /* @__PURE__ */ T({
|
|
|
428
428
|
function W() {
|
|
429
429
|
c.value = !1, l.value = "", u.value = -1;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function ee(e) {
|
|
432
432
|
e.disabled || (a("update:modelValue", e.value), W(), O(() => g.value?.blur()));
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function K() {
|
|
435
435
|
l.value = "", V();
|
|
436
436
|
}
|
|
437
437
|
function q(e) {
|
|
@@ -472,7 +472,7 @@ var be = /* @__PURE__ */ T({
|
|
|
472
472
|
else if (e.key === "Enter") {
|
|
473
473
|
e.preventDefault();
|
|
474
474
|
let n = t[u.value >= 0 ? u.value : 0];
|
|
475
|
-
n &&
|
|
475
|
+
n && ee(n);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
function $() {
|
|
@@ -540,7 +540,7 @@ var be = /* @__PURE__ */ T({
|
|
|
540
540
|
"outline-none text-on-surface",
|
|
541
541
|
e.disabled ? "pointer-events-none opacity-[0.38]" : "cursor-text"
|
|
542
542
|
]),
|
|
543
|
-
onFocus:
|
|
543
|
+
onFocus: K,
|
|
544
544
|
onBlur: q,
|
|
545
545
|
onInput: Y,
|
|
546
546
|
onKeydown: ne
|
|
@@ -587,7 +587,7 @@ var be = /* @__PURE__ */ T({
|
|
|
587
587
|
D(t.value, e.modelValue) ? "bg-primary/8 text-primary font-medium" : "",
|
|
588
588
|
re(t) === u.value && !t.disabled ? "bg-on-surface/12" : ""
|
|
589
589
|
]]),
|
|
590
|
-
onMousedown: Q((e) =>
|
|
590
|
+
onMousedown: Q((e) => ee(t), ["prevent"])
|
|
591
591
|
}, [D(t.value, e.modelValue) ? (P(), v(d, {
|
|
592
592
|
key: 0,
|
|
593
593
|
name: "check",
|
|
@@ -1210,10 +1210,81 @@ var be = /* @__PURE__ */ T({
|
|
|
1210
1210
|
let t = e, n = _(() => [t.inline ? "inline-flex" : "flex", "items-center justify-center"]);
|
|
1211
1211
|
return (e, t) => (P(), b("div", { class: k(n.value) }, [z(e.$slots, "default")], 2));
|
|
1212
1212
|
}
|
|
1213
|
-
}), Nt =
|
|
1213
|
+
}), Nt = {
|
|
1214
1214
|
key: 0,
|
|
1215
|
-
class: "text-
|
|
1215
|
+
class: "text-label-small font-medium text-on-surface-variant mb-0.5 ml-1"
|
|
1216
|
+
}, Pt = {
|
|
1217
|
+
key: 0,
|
|
1218
|
+
class: "flex items-center justify-end gap-1 mt-0.5"
|
|
1216
1219
|
}, Ft = /* @__PURE__ */ T({
|
|
1220
|
+
__name: "MChatBubble",
|
|
1221
|
+
props: {
|
|
1222
|
+
text: {},
|
|
1223
|
+
sender: {},
|
|
1224
|
+
time: {},
|
|
1225
|
+
side: { default: "left" },
|
|
1226
|
+
avatar: {},
|
|
1227
|
+
avatarSrc: {},
|
|
1228
|
+
status: {},
|
|
1229
|
+
color: { default: "primary" },
|
|
1230
|
+
tail: {
|
|
1231
|
+
type: Boolean,
|
|
1232
|
+
default: !0
|
|
1233
|
+
},
|
|
1234
|
+
size: { default: "medium" },
|
|
1235
|
+
maxWidth: { default: "320px" }
|
|
1236
|
+
},
|
|
1237
|
+
setup(e) {
|
|
1238
|
+
let t = e, n = _(() => t.side === "right"), r = _(() => t.size === "small" ? "text-body-small" : t.size === "large" ? "text-body-large" : "text-body-medium"), i = {
|
|
1239
|
+
primary: {
|
|
1240
|
+
bg: "bg-primary",
|
|
1241
|
+
text: "text-on-primary",
|
|
1242
|
+
timeCls: "text-on-primary/60"
|
|
1243
|
+
},
|
|
1244
|
+
secondary: {
|
|
1245
|
+
bg: "bg-secondary",
|
|
1246
|
+
text: "text-on-secondary",
|
|
1247
|
+
timeCls: "text-on-secondary/60"
|
|
1248
|
+
},
|
|
1249
|
+
tertiary: {
|
|
1250
|
+
bg: "bg-tertiary",
|
|
1251
|
+
text: "text-on-tertiary",
|
|
1252
|
+
timeCls: "text-on-tertiary/60"
|
|
1253
|
+
}
|
|
1254
|
+
}, a = _(() => {
|
|
1255
|
+
let e = [
|
|
1256
|
+
"rounded-2xl",
|
|
1257
|
+
"px-3",
|
|
1258
|
+
"py-2"
|
|
1259
|
+
];
|
|
1260
|
+
if (n.value) {
|
|
1261
|
+
let n = i[t.color];
|
|
1262
|
+
e.push(n.bg, n.text), t.tail && e.push("rounded-br-sm");
|
|
1263
|
+
} else e.push("bg-surface-container-high", "text-on-surface"), t.tail && e.push("rounded-bl-sm");
|
|
1264
|
+
return e;
|
|
1265
|
+
}), o = _(() => n.value ? i[t.color].timeCls : "text-on-surface-variant"), s = _(() => t.status ? t.status === "sent" ? "check" : "done_all" : null), c = _(() => t.status === "sent" ? "text-on-primary/40" : t.status === "delivered" ? "text-on-primary/60" : t.status === "read" ? "text-on-primary" : "");
|
|
1266
|
+
return (t, i) => (P(), b("div", { class: k(["flex gap-2", n.value ? "justify-end" : "justify-start"]) }, [e.avatar && !n.value ? (P(), v(qe, {
|
|
1267
|
+
key: 0,
|
|
1268
|
+
name: e.avatar,
|
|
1269
|
+
size: 32,
|
|
1270
|
+
class: "shrink-0 mt-auto"
|
|
1271
|
+
}, null, 8, ["name"])) : y("", !0), x("div", {
|
|
1272
|
+
class: "w-fit",
|
|
1273
|
+
style: A({ maxWidth: e.maxWidth })
|
|
1274
|
+
}, [e.sender && !n.value ? (P(), b("p", Nt, H(e.sender), 1)) : y("", !0), x("div", { class: k(a.value) }, [x("p", { class: k(r.value) }, [z(t.$slots, "default", {}, () => [C(H(e.text), 1)])], 2), e.time || e.status && n.value ? (P(), b("div", Pt, [e.time ? (P(), b("span", {
|
|
1275
|
+
key: 0,
|
|
1276
|
+
class: k(["text-label-small", o.value])
|
|
1277
|
+
}, H(e.time), 3)) : y("", !0), e.status && n.value ? (P(), v(d, {
|
|
1278
|
+
key: 1,
|
|
1279
|
+
name: s.value,
|
|
1280
|
+
size: 14,
|
|
1281
|
+
class: k(c.value)
|
|
1282
|
+
}, null, 8, ["name", "class"])) : y("", !0)])) : y("", !0)], 2)], 4)], 2));
|
|
1283
|
+
}
|
|
1284
|
+
}), It = ["checked", "disabled"], Lt = {
|
|
1285
|
+
key: 0,
|
|
1286
|
+
class: "text-body-large text-on-surface"
|
|
1287
|
+
}, Rt = /* @__PURE__ */ T({
|
|
1217
1288
|
__name: "MCheckbox",
|
|
1218
1289
|
props: {
|
|
1219
1290
|
modelValue: { type: Boolean },
|
|
@@ -1236,13 +1307,13 @@ var be = /* @__PURE__ */ T({
|
|
|
1236
1307
|
checked: e.modelValue,
|
|
1237
1308
|
disabled: e.disabled,
|
|
1238
1309
|
onChange: r[0] ||= (t) => n("update:modelValue", !e.modelValue)
|
|
1239
|
-
}, null, 40,
|
|
1310
|
+
}, null, 40, It), w(d, {
|
|
1240
1311
|
name: e.indeterminate ? "remove" : "check",
|
|
1241
1312
|
size: 14,
|
|
1242
1313
|
class: k(["transition-[opacity,transform] duration-150", e.modelValue || e.indeterminate ? "scale-100 opacity-100" : "scale-0 opacity-0"])
|
|
1243
|
-
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span",
|
|
1314
|
+
}, null, 8, ["name", "class"])], 2), e.label || t.$slots.default ? (P(), b("span", Lt, [z(t.$slots, "default", {}, () => [C(H(e.label), 1)])])) : y("", !0)], 2));
|
|
1244
1315
|
}
|
|
1245
|
-
}),
|
|
1316
|
+
}), zt = ["disabled"], Bt = /* @__PURE__ */ T({
|
|
1246
1317
|
__name: "MChip",
|
|
1247
1318
|
props: {
|
|
1248
1319
|
tone: { default: "neutral" },
|
|
@@ -1319,7 +1390,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1319
1390
|
}, [w(d, {
|
|
1320
1391
|
name: "close",
|
|
1321
1392
|
size: 16
|
|
1322
|
-
})], 8,
|
|
1393
|
+
})], 8, zt)) : y("", !0)
|
|
1323
1394
|
]),
|
|
1324
1395
|
_: 3
|
|
1325
1396
|
}, 8, [
|
|
@@ -1329,13 +1400,13 @@ var be = /* @__PURE__ */ T({
|
|
|
1329
1400
|
"style"
|
|
1330
1401
|
]));
|
|
1331
1402
|
}
|
|
1332
|
-
}),
|
|
1403
|
+
}), Vt = { class: "flex flex-col gap-1" }, Ht = { class: "flex-1 font-mono text-on-surface" }, Ut = {
|
|
1333
1404
|
key: 0,
|
|
1334
1405
|
class: "px-4 text-body-small text-error"
|
|
1335
|
-
},
|
|
1406
|
+
}, Wt = {
|
|
1336
1407
|
key: 1,
|
|
1337
1408
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
1338
|
-
},
|
|
1409
|
+
}, Gt = { class: "mb-3" }, Kt = ["value"], qt = { class: "mb-3 flex items-center gap-3" }, Jt = ["value"], Yt = { class: "flex flex-wrap gap-1.5" }, Xt = ["onClick"], Zt = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1339
1410
|
__name: "MColorPicker",
|
|
1340
1411
|
props: {
|
|
1341
1412
|
modelValue: {},
|
|
@@ -1419,11 +1490,11 @@ var be = /* @__PURE__ */ T({
|
|
|
1419
1490
|
function G(e) {
|
|
1420
1491
|
i("update:modelValue", e);
|
|
1421
1492
|
}
|
|
1422
|
-
function
|
|
1493
|
+
function ee(e) {
|
|
1423
1494
|
let t = e.target.value;
|
|
1424
1495
|
/^#[0-9a-fA-F]{6}$/.test(t) && i("update:modelValue", t);
|
|
1425
1496
|
}
|
|
1426
|
-
function
|
|
1497
|
+
function K() {
|
|
1427
1498
|
if (!o.value) return;
|
|
1428
1499
|
let e = o.value.getBoundingClientRect();
|
|
1429
1500
|
c.value = {
|
|
@@ -1442,13 +1513,13 @@ var be = /* @__PURE__ */ T({
|
|
|
1442
1513
|
a.value = !1;
|
|
1443
1514
|
return;
|
|
1444
1515
|
}
|
|
1445
|
-
|
|
1516
|
+
K();
|
|
1446
1517
|
}
|
|
1447
1518
|
return J(a, (e) => {
|
|
1448
|
-
e ? (
|
|
1519
|
+
e ? (K(), setTimeout(() => document.addEventListener("mousedown", q), 0)) : document.removeEventListener("mousedown", q);
|
|
1449
1520
|
}), M(() => window.addEventListener("scroll", Y, !0)), N(() => {
|
|
1450
1521
|
window.removeEventListener("scroll", Y, !0), document.removeEventListener("mousedown", q);
|
|
1451
|
-
}), (t, n) => (P(), b("div",
|
|
1522
|
+
}), (t, n) => (P(), b("div", Vt, [
|
|
1452
1523
|
x("div", {
|
|
1453
1524
|
ref_key: "triggerEl",
|
|
1454
1525
|
ref: o,
|
|
@@ -1463,7 +1534,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1463
1534
|
class: "h-6 w-6 shrink-0 rounded-full border border-outline-variant",
|
|
1464
1535
|
style: A({ backgroundColor: e.modelValue })
|
|
1465
1536
|
}, null, 4),
|
|
1466
|
-
x("span",
|
|
1537
|
+
x("span", Ht, H(e.modelValue), 1),
|
|
1467
1538
|
w(d, {
|
|
1468
1539
|
name: "palette",
|
|
1469
1540
|
size: 20,
|
|
@@ -1473,7 +1544,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1473
1544
|
key: 0,
|
|
1474
1545
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", a.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
1475
1546
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
1476
|
-
e.error ? (P(), b("p",
|
|
1547
|
+
e.error ? (P(), b("p", Ut, H(e.error), 1)) : e.hint ? (P(), b("p", Wt, H(e.hint), 1)) : y("", !0),
|
|
1477
1548
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
1478
1549
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
1479
1550
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -1503,15 +1574,15 @@ var be = /* @__PURE__ */ T({
|
|
|
1503
1574
|
backgroundColor: j.value
|
|
1504
1575
|
})
|
|
1505
1576
|
}, null, 4)], 36),
|
|
1506
|
-
x("div",
|
|
1577
|
+
x("div", Gt, [x("input", {
|
|
1507
1578
|
type: "range",
|
|
1508
1579
|
min: "0",
|
|
1509
1580
|
max: "360",
|
|
1510
1581
|
value: g.value,
|
|
1511
1582
|
class: "hue-slider h-3 w-full cursor-pointer appearance-none rounded-full outline-none",
|
|
1512
1583
|
onInput: W
|
|
1513
|
-
}, null, 40,
|
|
1514
|
-
x("div",
|
|
1584
|
+
}, null, 40, Kt)]),
|
|
1585
|
+
x("div", qt, [x("span", {
|
|
1515
1586
|
class: "h-9 w-9 shrink-0 rounded-full border border-outline-variant",
|
|
1516
1587
|
style: A({ backgroundColor: j.value })
|
|
1517
1588
|
}, null, 4), x("input", {
|
|
@@ -1519,9 +1590,9 @@ var be = /* @__PURE__ */ T({
|
|
|
1519
1590
|
value: e.modelValue,
|
|
1520
1591
|
maxlength: "7",
|
|
1521
1592
|
class: "flex-1 rounded-sm border border-outline bg-transparent px-3 py-2 font-mono text-body-medium text-on-surface outline-none transition-colors focus:border-primary",
|
|
1522
|
-
onInput:
|
|
1523
|
-
}, null, 40,
|
|
1524
|
-
x("div",
|
|
1593
|
+
onInput: ee
|
|
1594
|
+
}, null, 40, Jt)]),
|
|
1595
|
+
x("div", Yt, [(P(!0), b(p, null, R(e.presets, (t) => (P(), b("button", {
|
|
1525
1596
|
key: t,
|
|
1526
1597
|
type: "button",
|
|
1527
1598
|
class: k(["flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border transition-transform duration-100 hover:scale-110", t === e.modelValue ? "border-on-surface" : "border-transparent"]),
|
|
@@ -1532,26 +1603,26 @@ var be = /* @__PURE__ */ T({
|
|
|
1532
1603
|
name: "check",
|
|
1533
1604
|
size: 14,
|
|
1534
1605
|
class: "text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)]"
|
|
1535
|
-
})) : y("", !0)], 14,
|
|
1606
|
+
})) : y("", !0)], 14, Xt))), 128))])
|
|
1536
1607
|
], 4)) : y("", !0)]),
|
|
1537
1608
|
_: 1
|
|
1538
1609
|
})]))
|
|
1539
1610
|
]));
|
|
1540
1611
|
}
|
|
1541
|
-
}), [["__scopeId", "data-v-872ab758"]]),
|
|
1612
|
+
}), [["__scopeId", "data-v-872ab758"]]), Qt = { class: "cmd-box flex w-full max-w-lg flex-col overflow-hidden rounded-xl bg-surface-container-high shadow-elevation-3" }, $t = { class: "flex items-center gap-3 border-b border-outline-variant px-4" }, en = ["placeholder"], tn = { class: "max-h-80 overflow-y-auto py-2" }, nn = {
|
|
1542
1613
|
key: 0,
|
|
1543
1614
|
class: "px-4 pt-3 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
1544
|
-
},
|
|
1615
|
+
}, rn = [
|
|
1545
1616
|
"data-cmd-active",
|
|
1546
1617
|
"onClick",
|
|
1547
1618
|
"onPointerenter"
|
|
1548
|
-
],
|
|
1619
|
+
], an = { class: "flex-1 truncate text-body-medium" }, on = {
|
|
1549
1620
|
key: 1,
|
|
1550
1621
|
class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant"
|
|
1551
|
-
},
|
|
1622
|
+
}, sn = {
|
|
1552
1623
|
key: 1,
|
|
1553
1624
|
class: "px-4 py-6 text-center text-body-medium text-on-surface-variant"
|
|
1554
|
-
},
|
|
1625
|
+
}, cn = { class: "flex items-center gap-4 border-t border-outline-variant px-4 py-2" }, ln = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, un = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, dn = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, fn = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1555
1626
|
__name: "MCommandPalette",
|
|
1556
1627
|
props: {
|
|
1557
1628
|
modelValue: { type: Boolean },
|
|
@@ -1606,8 +1677,8 @@ var be = /* @__PURE__ */ T({
|
|
|
1606
1677
|
key: 0,
|
|
1607
1678
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/40 pt-[15vh]",
|
|
1608
1679
|
onClick: Q(g, ["self"])
|
|
1609
|
-
}, [x("div",
|
|
1610
|
-
x("div",
|
|
1680
|
+
}, [x("div", Qt, [
|
|
1681
|
+
x("div", $t, [
|
|
1611
1682
|
w(d, {
|
|
1612
1683
|
name: "search",
|
|
1613
1684
|
size: 20,
|
|
@@ -1621,10 +1692,10 @@ var be = /* @__PURE__ */ T({
|
|
|
1621
1692
|
placeholder: e.placeholder ?? U(r).searchCommand,
|
|
1622
1693
|
class: "h-12 flex-1 bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
1623
1694
|
onKeydown: T
|
|
1624
|
-
}, null, 40,
|
|
1695
|
+
}, null, 40, en), [[K, o.value]]),
|
|
1625
1696
|
n[1] ||= x("kbd", { class: "rounded bg-surface-container px-1.5 py-0.5 text-label-small text-on-surface-variant" }, " ESC ", -1)
|
|
1626
1697
|
]),
|
|
1627
|
-
x("div",
|
|
1698
|
+
x("div", tn, [l.value.length ? (P(!0), b(p, { key: 0 }, R(u.value, ([e, t]) => (P(), b(p, { key: e }, [e ? (P(), b("p", nn, H(e), 1)) : y("", !0), (P(!0), b(p, null, R(t, (e, t) => (P(), b("button", {
|
|
1628
1699
|
key: e.id,
|
|
1629
1700
|
type: "button",
|
|
1630
1701
|
"data-cmd-active": l.value.indexOf(e) === s.value || void 0,
|
|
@@ -1638,19 +1709,19 @@ var be = /* @__PURE__ */ T({
|
|
|
1638
1709
|
size: 20,
|
|
1639
1710
|
class: "shrink-0 opacity-70"
|
|
1640
1711
|
}, null, 8, ["name"])) : y("", !0),
|
|
1641
|
-
x("span",
|
|
1642
|
-
e.shortcut ? (P(), b("kbd",
|
|
1643
|
-
], 42,
|
|
1644
|
-
x("div",
|
|
1645
|
-
x("span",
|
|
1646
|
-
x("span",
|
|
1647
|
-
x("span",
|
|
1712
|
+
x("span", an, H(e.label), 1),
|
|
1713
|
+
e.shortcut ? (P(), b("kbd", on, H(e.shortcut), 1)) : y("", !0)
|
|
1714
|
+
], 42, rn))), 128))], 64))), 128)) : (P(), b("p", sn, H(e.noResultsText ?? U(r).noResults), 1))]),
|
|
1715
|
+
x("div", cn, [
|
|
1716
|
+
x("span", ln, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
1717
|
+
x("span", un, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.selectHint ?? U(r).selectHint), 1)]),
|
|
1718
|
+
x("span", dn, [n[4] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), C(" " + H(e.closeHint ?? U(r).closeHint), 1)])
|
|
1648
1719
|
])
|
|
1649
1720
|
])])) : y("", !0)]),
|
|
1650
1721
|
_: 1
|
|
1651
1722
|
})]));
|
|
1652
1723
|
}
|
|
1653
|
-
}), [["__scopeId", "data-v-4d6cca63"]]),
|
|
1724
|
+
}), [["__scopeId", "data-v-4d6cca63"]]), pn = { class: "text-body-medium text-on-surface-variant" }, mn = /* @__PURE__ */ T({
|
|
1654
1725
|
__name: "MConfirmDialog",
|
|
1655
1726
|
props: {
|
|
1656
1727
|
modelValue: { type: Boolean },
|
|
@@ -1691,11 +1762,11 @@ var be = /* @__PURE__ */ T({
|
|
|
1691
1762
|
default: X(() => [C(H(e.confirmLabel ?? U(i).confirm), 1)]),
|
|
1692
1763
|
_: 1
|
|
1693
1764
|
}, 8, ["color", "loading"])]),
|
|
1694
|
-
default: X(() => [x("p",
|
|
1765
|
+
default: X(() => [x("p", pn, H(e.message), 1)]),
|
|
1695
1766
|
_: 1
|
|
1696
1767
|
}, 8, ["model-value", "title"]));
|
|
1697
1768
|
}
|
|
1698
|
-
}),
|
|
1769
|
+
}), hn = /* @__PURE__ */ T({
|
|
1699
1770
|
__name: "MContainer",
|
|
1700
1771
|
props: {
|
|
1701
1772
|
maxWidth: { default: "lg" },
|
|
@@ -1729,16 +1800,16 @@ var be = /* @__PURE__ */ T({
|
|
|
1729
1800
|
]);
|
|
1730
1801
|
return (e, t) => (P(), b("div", { class: k(r.value) }, [z(e.$slots, "default")], 2));
|
|
1731
1802
|
}
|
|
1732
|
-
}),
|
|
1803
|
+
}), gn = { class: "overflow-hidden rounded-sm py-1" }, _n = {
|
|
1733
1804
|
key: 0,
|
|
1734
1805
|
class: "my-1 border-outline-variant"
|
|
1735
|
-
},
|
|
1806
|
+
}, vn = {
|
|
1736
1807
|
key: 1,
|
|
1737
1808
|
class: "w-[18px] shrink-0"
|
|
1738
|
-
},
|
|
1809
|
+
}, yn = { class: "flex-1" }, bn = {
|
|
1739
1810
|
key: 2,
|
|
1740
1811
|
class: "text-label-small text-on-surface-variant"
|
|
1741
|
-
},
|
|
1812
|
+
}, xn = /* @__PURE__ */ T({
|
|
1742
1813
|
__name: "_MContextMenuPanel",
|
|
1743
1814
|
props: {
|
|
1744
1815
|
items: {},
|
|
@@ -1787,7 +1858,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1787
1858
|
top: `${o.value}px`
|
|
1788
1859
|
}),
|
|
1789
1860
|
onMouseleave: f
|
|
1790
|
-
}, [x("div",
|
|
1861
|
+
}, [x("div", gn, [(P(!0), b(p, null, R(e.items, (e, t) => (P(), b(p, { key: t }, [e.divider ? (P(), b("hr", _n)) : (P(), v(V(e.to && !e.disabled ? "RouterLink" : "div"), {
|
|
1791
1862
|
key: 1,
|
|
1792
1863
|
to: e.to && !e.disabled ? e.to : void 0,
|
|
1793
1864
|
class: k(["relative flex cursor-default select-none items-center gap-3 px-4 py-2.5 text-body-large", [e.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : e.danger ? "cursor-pointer text-error hover:bg-error/8" : "cursor-pointer text-on-surface hover:bg-on-surface/8", s.value === t && !e.disabled ? e.danger ? "bg-error/8" : "bg-on-surface/8" : ""]]),
|
|
@@ -1800,9 +1871,9 @@ var be = /* @__PURE__ */ T({
|
|
|
1800
1871
|
name: e.icon,
|
|
1801
1872
|
size: 18,
|
|
1802
1873
|
class: k(["shrink-0", e.danger ? "text-error" : "text-on-surface-variant"])
|
|
1803
|
-
}, null, 8, ["name", "class"])) : (P(), b("span",
|
|
1804
|
-
x("span",
|
|
1805
|
-
e.shortcut ? (P(), b("span",
|
|
1874
|
+
}, null, 8, ["name", "class"])) : (P(), b("span", vn)),
|
|
1875
|
+
x("span", yn, H(e.label), 1),
|
|
1876
|
+
e.shortcut ? (P(), b("span", bn, H(e.shortcut), 1)) : y("", !0),
|
|
1806
1877
|
e.children?.length ? (P(), v(d, {
|
|
1807
1878
|
key: 3,
|
|
1808
1879
|
name: "chevron_right",
|
|
@@ -1816,7 +1887,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1816
1887
|
"class",
|
|
1817
1888
|
"onMouseenter",
|
|
1818
1889
|
"onClick"
|
|
1819
|
-
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(
|
|
1890
|
+
]))], 64))), 128))])], 36), s.value !== null && e.items[s.value]?.children?.length ? (P(), v(xn, {
|
|
1820
1891
|
key: s.value,
|
|
1821
1892
|
items: e.items[s.value].children,
|
|
1822
1893
|
x: c.value.x,
|
|
@@ -1828,7 +1899,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1828
1899
|
"y"
|
|
1829
1900
|
])) : y("", !0)], 64));
|
|
1830
1901
|
}
|
|
1831
|
-
}),
|
|
1902
|
+
}), Sn = /* @__PURE__ */ T({
|
|
1832
1903
|
__name: "MContextMenu",
|
|
1833
1904
|
props: { items: {} },
|
|
1834
1905
|
setup(e, { expose: t }) {
|
|
@@ -1865,7 +1936,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1865
1936
|
class: "fixed inset-0 z-200",
|
|
1866
1937
|
onMousedown: Q(o, ["self"]),
|
|
1867
1938
|
onContextmenu: a[0] ||= Q(() => {}, ["prevent"])
|
|
1868
|
-
}, [w(
|
|
1939
|
+
}, [w(xn, {
|
|
1869
1940
|
items: e.items,
|
|
1870
1941
|
x: r.value.x,
|
|
1871
1942
|
y: r.value.y,
|
|
@@ -1878,7 +1949,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1878
1949
|
_: 1
|
|
1879
1950
|
})]))], 64));
|
|
1880
1951
|
}
|
|
1881
|
-
}),
|
|
1952
|
+
}), Cn = { class: "flex flex-wrap items-center justify-between gap-4 text-body-medium text-on-surface-variant" }, wn = { class: "flex items-center gap-2" }, Tn = /* @__PURE__ */ T({
|
|
1882
1953
|
__name: "MPagination",
|
|
1883
1954
|
props: {
|
|
1884
1955
|
page: {},
|
|
@@ -1888,7 +1959,7 @@ var be = /* @__PURE__ */ T({
|
|
|
1888
1959
|
emits: ["update:page"],
|
|
1889
1960
|
setup(t, { emit: n }) {
|
|
1890
1961
|
let r = t, i = n, a = _(() => Math.max(1, Math.ceil(r.total / r.perPage))), o = _(() => r.total === 0 ? "0 resultados" : `${(r.page - 1) * r.perPage + 1}-${Math.min(r.page * r.perPage, r.total)} de ${r.total}`);
|
|
1891
|
-
return (n, r) => (P(), b("div",
|
|
1962
|
+
return (n, r) => (P(), b("div", Cn, [x("span", null, H(o.value), 1), x("div", wn, [
|
|
1892
1963
|
x("span", null, "Página " + H(t.page) + " de " + H(a.value), 1),
|
|
1893
1964
|
w(e, {
|
|
1894
1965
|
icon: "chevron_left",
|
|
@@ -1904,25 +1975,25 @@ var be = /* @__PURE__ */ T({
|
|
|
1904
1975
|
}, null, 8, ["disabled"])
|
|
1905
1976
|
])]));
|
|
1906
1977
|
}
|
|
1907
|
-
}),
|
|
1978
|
+
}), En = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Dn = {
|
|
1908
1979
|
key: 0,
|
|
1909
1980
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
1910
|
-
},
|
|
1981
|
+
}, On = {
|
|
1911
1982
|
key: 0,
|
|
1912
1983
|
class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 transition-[border-color,box-shadow] duration-150 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30"
|
|
1913
|
-
},
|
|
1984
|
+
}, kn = ["placeholder"], An = {
|
|
1914
1985
|
key: 0,
|
|
1915
1986
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
1916
|
-
},
|
|
1987
|
+
}, jn = {
|
|
1917
1988
|
key: 1,
|
|
1918
1989
|
class: "relative"
|
|
1919
|
-
},
|
|
1990
|
+
}, Mn = {
|
|
1920
1991
|
key: 0,
|
|
1921
1992
|
class: "absolute right-0 top-full z-10 mt-1 min-w-40 rounded-lg bg-surface-container py-2 shadow-elevation-3"
|
|
1922
|
-
},
|
|
1993
|
+
}, Nn = { class: "text-body-small text-on-surface" }, Pn = { class: "overflow-x-auto" }, Fn = { class: "w-full border-collapse" }, In = { class: "bg-surface-container-high" }, Ln = ["onClick"], Rn = { class: "inline-flex items-center gap-1" }, zn = {
|
|
1923
1994
|
key: 0,
|
|
1924
1995
|
class: "inline-flex"
|
|
1925
|
-
},
|
|
1996
|
+
}, Bn = ["onPointerdown"], Vn = { key: 1 }, Hn = ["colspan"], Un = { class: "text-body-medium text-on-surface-variant" }, Wn = ["onClick"], Gn = ["onClick"], Kn = { key: 0 }, qn = ["colspan"], Jn = { class: "dt-expand-body" }, Yn = { class: "px-6 py-4" }, Xn = { class: "flex items-center justify-between gap-4 border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Zn = { class: "text-label-small text-on-surface-variant" }, Qn = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
1926
1997
|
__name: "MDataTable",
|
|
1927
1998
|
props: {
|
|
1928
1999
|
columns: {},
|
|
@@ -2000,7 +2071,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2000
2071
|
85,
|
|
2001
2072
|
60,
|
|
2002
2073
|
78
|
|
2003
|
-
], o = t, s = r, c =
|
|
2074
|
+
], o = t, s = r, c = ee(), l = _(() => !!c["row-actions"]), u = _(() => o.expandable && !!c["row-expand"]), f = L(""), m = L(""), g = L(""), S = L(1), T = L(/* @__PURE__ */ new Set()), E = L(/* @__PURE__ */ new Set()), D = L({}), O = L(!1), j = _(() => o.columns.filter((e) => !e.hidden && !E.value.has(e.key)));
|
|
2004
2075
|
function N(e) {
|
|
2005
2076
|
m.value === e ? g.value === "asc" ? g.value = "desc" : (m.value = "", g.value = "") : (m.value = e, g.value = "asc");
|
|
2006
2077
|
}
|
|
@@ -2136,9 +2207,9 @@ var be = /* @__PURE__ */ T({
|
|
|
2136
2207
|
minWidth: e.minWidth
|
|
2137
2208
|
};
|
|
2138
2209
|
}
|
|
2139
|
-
return (n, r) => (P(), b("div",
|
|
2140
|
-
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div",
|
|
2141
|
-
t.searchable ? (P(), b("div",
|
|
2210
|
+
return (n, r) => (P(), b("div", En, [
|
|
2211
|
+
t.searchable || t.columnToggle || t.exportable || n.$slots.toolbar ? (P(), b("div", Dn, [
|
|
2212
|
+
t.searchable ? (P(), b("div", On, [
|
|
2142
2213
|
w(d, {
|
|
2143
2214
|
name: "search",
|
|
2144
2215
|
size: 16,
|
|
@@ -2149,7 +2220,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2149
2220
|
type: "text",
|
|
2150
2221
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
2151
2222
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
2152
|
-
}, null, 8,
|
|
2223
|
+
}, null, 8, kn), [[K, f.value]]),
|
|
2153
2224
|
f.value ? (P(), b("button", {
|
|
2154
2225
|
key: 0,
|
|
2155
2226
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -2166,21 +2237,21 @@ var be = /* @__PURE__ */ T({
|
|
|
2166
2237
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
2167
2238
|
"leave-to-class": "opacity-0 scale-90"
|
|
2168
2239
|
}, {
|
|
2169
|
-
default: X(() => [t.selectable && q.value.length > 0 ? (P(), b("span",
|
|
2240
|
+
default: X(() => [t.selectable && q.value.length > 0 ? (P(), b("span", An, H(q.value.length) + " " + H(t.selectedText ?? U(i).selectedCount) + H(q.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
2170
2241
|
_: 1
|
|
2171
2242
|
}),
|
|
2172
|
-
t.columnToggle ? (P(), b("div",
|
|
2243
|
+
t.columnToggle ? (P(), b("div", jn, [w(e, {
|
|
2173
2244
|
icon: "view_column",
|
|
2174
2245
|
label: t.columnsLabel ?? U(i).columns,
|
|
2175
2246
|
size: 36,
|
|
2176
2247
|
onClick: r[2] ||= (e) => O.value = !O.value
|
|
2177
|
-
}, null, 8, ["label"]), O.value ? (P(), b("div",
|
|
2248
|
+
}, null, 8, ["label"]), O.value ? (P(), b("div", Mn, [(P(!0), b(p, null, R(t.columns, (e) => (P(), b("label", {
|
|
2178
2249
|
key: e.key,
|
|
2179
2250
|
class: "flex cursor-pointer items-center gap-2 px-3 py-1.5 hover:bg-on-surface/4"
|
|
2180
|
-
}, [w(
|
|
2251
|
+
}, [w(Rt, {
|
|
2181
2252
|
"model-value": !E.value.has(e.key),
|
|
2182
2253
|
"onUpdate:modelValue": (t) => E.value.has(e.key) ? E.value.delete(e.key) : E.value.add(e.key)
|
|
2183
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span",
|
|
2254
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]), x("span", Nn, H(e.label), 1)]))), 128))])) : y("", !0)])) : y("", !0),
|
|
2184
2255
|
t.exportable ? (P(), v(e, {
|
|
2185
2256
|
key: 2,
|
|
2186
2257
|
icon: "download",
|
|
@@ -2189,7 +2260,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2189
2260
|
onClick: ge
|
|
2190
2261
|
}, null, 8, ["label"])) : y("", !0)
|
|
2191
2262
|
])) : y("", !0),
|
|
2192
|
-
x("div",
|
|
2263
|
+
x("div", Pn, [x("table", Fn, [x("thead", { class: k(t.stickyHeader ? "sticky top-0 z-1" : "") }, [x("tr", In, [
|
|
2193
2264
|
u.value ? (P(), b("th", {
|
|
2194
2265
|
key: 0,
|
|
2195
2266
|
class: k(["w-10 px-2", t.dense ? "py-2" : "py-3"])
|
|
@@ -2197,7 +2268,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2197
2268
|
t.selectable ? (P(), b("th", {
|
|
2198
2269
|
key: 1,
|
|
2199
2270
|
class: k(["w-12 px-4", t.dense ? "py-2" : "py-3"])
|
|
2200
|
-
}, [w(
|
|
2271
|
+
}, [w(Rt, {
|
|
2201
2272
|
"model-value": $.value,
|
|
2202
2273
|
indeterminate: re.value,
|
|
2203
2274
|
"onUpdate:modelValue": ie
|
|
@@ -2212,7 +2283,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2212
2283
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
2213
2284
|
]),
|
|
2214
2285
|
onClick: (t) => e.sortable ? N(e.key) : void 0
|
|
2215
|
-
}, [x("span",
|
|
2286
|
+
}, [x("span", Rn, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", zn, [m.value === e.key && g.value === "asc" ? (P(), v(d, {
|
|
2216
2287
|
key: 0,
|
|
2217
2288
|
name: "arrow_upward",
|
|
2218
2289
|
size: 14,
|
|
@@ -2231,7 +2302,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2231
2302
|
key: 0,
|
|
2232
2303
|
class: "absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary/30",
|
|
2233
2304
|
onPointerdown: (t) => pe(t, e)
|
|
2234
|
-
}, null, 40,
|
|
2305
|
+
}, null, 40, Bn)) : y("", !0)], 14, Ln))), 128)),
|
|
2235
2306
|
l.value ? (P(), b("th", {
|
|
2236
2307
|
key: 2,
|
|
2237
2308
|
class: k(["w-1 px-4", t.dense ? "py-2" : "py-3"])
|
|
@@ -2259,14 +2330,14 @@ var be = /* @__PURE__ */ T({
|
|
|
2259
2330
|
key: 2,
|
|
2260
2331
|
class: k(t.dense ? "px-4 py-2" : "px-4 py-3.5")
|
|
2261
2332
|
}, [...r[7] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]], 2)) : y("", !0)
|
|
2262
|
-
]))), 128)) : V.value.length === 0 ? (P(), b("tr",
|
|
2333
|
+
]))), 128)) : V.value.length === 0 ? (P(), b("tr", Vn, [x("td", {
|
|
2263
2334
|
colspan: j.value.length + se.value,
|
|
2264
2335
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
2265
2336
|
}, [z(n.$slots, "empty", {}, () => [w(d, {
|
|
2266
2337
|
name: "search_off",
|
|
2267
2338
|
size: 36,
|
|
2268
2339
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
2269
|
-
}), x("p",
|
|
2340
|
+
}), x("p", Un, H(t.emptyText ?? U(i).noResults), 1)], !0)], 8, Hn)])) : (P(!0), b(p, { key: 2 }, R(V.value, (a) => (P(), b(p, { key: Y(a) }, [x("tr", {
|
|
2270
2341
|
class: k([
|
|
2271
2342
|
"border-t border-outline-variant transition-colors duration-100",
|
|
2272
2343
|
"hover:bg-on-surface/4",
|
|
@@ -2295,10 +2366,10 @@ var be = /* @__PURE__ */ T({
|
|
|
2295
2366
|
key: 1,
|
|
2296
2367
|
class: k(t.dense ? "px-4 py-1" : "px-4 py-3"),
|
|
2297
2368
|
onClick: Q((e) => ne(a), ["stop"])
|
|
2298
|
-
}, [w(
|
|
2369
|
+
}, [w(Rt, {
|
|
2299
2370
|
"model-value": Z(a),
|
|
2300
2371
|
"onUpdate:modelValue": (e) => ne(a)
|
|
2301
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10,
|
|
2372
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 10, Gn)) : y("", !0),
|
|
2302
2373
|
(P(!0), b(p, null, R(j.value, (e) => (P(), b("td", {
|
|
2303
2374
|
key: e.key,
|
|
2304
2375
|
class: k([
|
|
@@ -2316,11 +2387,11 @@ var be = /* @__PURE__ */ T({
|
|
|
2316
2387
|
class: k(["text-right", t.dense ? "px-4 py-1" : "px-4 py-3"]),
|
|
2317
2388
|
onClick: r[4] ||= Q(() => {}, ["stop"])
|
|
2318
2389
|
}, [z(n.$slots, "row-actions", { row: a }, void 0, !0)], 2)) : y("", !0)
|
|
2319
|
-
], 10,
|
|
2390
|
+
], 10, Wn), u.value ? (P(), b("tr", Kn, [x("td", {
|
|
2320
2391
|
colspan: j.value.length + se.value,
|
|
2321
2392
|
class: "border-t border-outline-variant/50 bg-surface-container-lowest p-0"
|
|
2322
|
-
}, [x("div", { class: k(["dt-expand-grid", oe(a) ? "dt-expand-open" : ""]) }, [x("div",
|
|
2323
|
-
x("div",
|
|
2393
|
+
}, [x("div", { class: k(["dt-expand-grid", oe(a) ? "dt-expand-open" : ""]) }, [x("div", Jn, [x("div", Yn, [z(n.$slots, "row-expand", { row: a }, void 0, !0)])])], 2)], 8, qn)])) : y("", !0)], 64))), 128))])])]),
|
|
2394
|
+
x("div", Xn, [x("span", Zn, H(B.value) + " " + H(t.recordsText ?? U(i).recordCount) + H(B.value === 1 ? "" : "s"), 1), w(Tn, {
|
|
2324
2395
|
page: F.value,
|
|
2325
2396
|
"per-page": t.perPage,
|
|
2326
2397
|
total: B.value,
|
|
@@ -2332,19 +2403,19 @@ var be = /* @__PURE__ */ T({
|
|
|
2332
2403
|
])])
|
|
2333
2404
|
]));
|
|
2334
2405
|
}
|
|
2335
|
-
}), [["__scopeId", "data-v-857139c7"]]),
|
|
2406
|
+
}), [["__scopeId", "data-v-857139c7"]]), $n = { class: "flex flex-col gap-1" }, er = {
|
|
2336
2407
|
key: 0,
|
|
2337
2408
|
class: "flex-1 text-on-surface"
|
|
2338
|
-
},
|
|
2409
|
+
}, tr = {
|
|
2339
2410
|
key: 1,
|
|
2340
2411
|
class: "flex-1 text-on-surface-variant"
|
|
2341
|
-
},
|
|
2412
|
+
}, nr = {
|
|
2342
2413
|
key: 0,
|
|
2343
2414
|
class: "px-4 text-body-small text-error"
|
|
2344
|
-
},
|
|
2415
|
+
}, rr = {
|
|
2345
2416
|
key: 1,
|
|
2346
2417
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2347
|
-
},
|
|
2418
|
+
}, ir = { class: "mb-3 flex items-center justify-between" }, ar = { class: "text-title-small font-medium capitalize text-on-surface" }, or = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, sr = { class: "grid grid-cols-7 gap-0.5" }, cr = ["disabled", "onClick"], lr = /* @__PURE__ */ T({
|
|
2348
2419
|
__name: "MDatePicker",
|
|
2349
2420
|
props: {
|
|
2350
2421
|
modelValue: {},
|
|
@@ -2453,7 +2524,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2453
2524
|
let t = e.target;
|
|
2454
2525
|
l.value?.contains(t) || u.value?.contains(t) || (c.value = !1);
|
|
2455
2526
|
}
|
|
2456
|
-
function
|
|
2527
|
+
function ee(e) {
|
|
2457
2528
|
if (!c.value || u.value?.contains(e.target) || !l.value) return;
|
|
2458
2529
|
let t = l.value.getBoundingClientRect();
|
|
2459
2530
|
if (t.bottom < 0 || t.top > window.innerHeight) {
|
|
@@ -2464,9 +2535,9 @@ var be = /* @__PURE__ */ T({
|
|
|
2464
2535
|
}
|
|
2465
2536
|
return J(c, (e) => {
|
|
2466
2537
|
e ? (W(), setTimeout(() => document.addEventListener("mousedown", G), 0)) : document.removeEventListener("mousedown", G);
|
|
2467
|
-
}), M(() => window.addEventListener("scroll",
|
|
2468
|
-
window.removeEventListener("scroll",
|
|
2469
|
-
}), (t, n) => (P(), b("div",
|
|
2538
|
+
}), M(() => window.addEventListener("scroll", ee, !0)), N(() => {
|
|
2539
|
+
window.removeEventListener("scroll", ee, !0), document.removeEventListener("mousedown", G);
|
|
2540
|
+
}), (t, n) => (P(), b("div", $n, [
|
|
2470
2541
|
x("div", {
|
|
2471
2542
|
ref_key: "triggerEl",
|
|
2472
2543
|
ref: l,
|
|
@@ -2482,7 +2553,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2482
2553
|
size: 20,
|
|
2483
2554
|
class: "shrink-0 text-on-surface-variant"
|
|
2484
2555
|
}),
|
|
2485
|
-
V.value ? (P(), b("span",
|
|
2556
|
+
V.value ? (P(), b("span", er, H(V.value), 1)) : (P(), b("span", tr, H(r.placeholder || r.label || U(o).selectDate), 1)),
|
|
2486
2557
|
r.modelValue ? (P(), v(d, {
|
|
2487
2558
|
key: 2,
|
|
2488
2559
|
name: "close",
|
|
@@ -2494,7 +2565,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2494
2565
|
key: 0,
|
|
2495
2566
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"])
|
|
2496
2567
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2497
|
-
r.error ? (P(), b("p",
|
|
2568
|
+
r.error ? (P(), b("p", nr, H(r.error), 1)) : r.hint ? (P(), b("p", rr, H(r.hint), 1)) : y("", !0),
|
|
2498
2569
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2499
2570
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2500
2571
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2508,14 +2579,14 @@ var be = /* @__PURE__ */ T({
|
|
|
2508
2579
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2509
2580
|
style: A(f.value)
|
|
2510
2581
|
}, [
|
|
2511
|
-
x("div",
|
|
2582
|
+
x("div", ir, [
|
|
2512
2583
|
w(e, {
|
|
2513
2584
|
icon: "chevron_left",
|
|
2514
2585
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2515
2586
|
size: 36,
|
|
2516
2587
|
onClick: F
|
|
2517
2588
|
}, null, 8, ["label"]),
|
|
2518
|
-
x("span",
|
|
2589
|
+
x("span", ar, H(T.value), 1),
|
|
2519
2590
|
w(e, {
|
|
2520
2591
|
icon: "chevron_right",
|
|
2521
2592
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2523,39 +2594,39 @@ var be = /* @__PURE__ */ T({
|
|
|
2523
2594
|
onClick: I
|
|
2524
2595
|
}, null, 8, ["label"])
|
|
2525
2596
|
]),
|
|
2526
|
-
x("div",
|
|
2597
|
+
x("div", or, [(P(!0), b(p, null, R(U(C), (e) => (P(), b("span", {
|
|
2527
2598
|
key: e,
|
|
2528
2599
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2529
2600
|
}, H(e), 1))), 128))]),
|
|
2530
|
-
x("div",
|
|
2601
|
+
x("div", sr, [(P(!0), b(p, null, R(E.value, (e, t) => (P(), b("button", {
|
|
2531
2602
|
key: t,
|
|
2532
2603
|
type: "button",
|
|
2533
2604
|
class: k(["flex h-9 w-full items-center justify-center rounded-full text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25" : e.iso === r.modelValue ? "bg-primary text-on-primary" : j(e.iso) ? "border border-primary text-primary cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 hover:bg-on-surface/4"]]),
|
|
2534
2605
|
disabled: e.disabled,
|
|
2535
2606
|
onClick: (t) => z(e)
|
|
2536
|
-
}, H(e.date), 11,
|
|
2607
|
+
}, H(e.date), 11, cr))), 128))])
|
|
2537
2608
|
], 4)) : y("", !0)]),
|
|
2538
2609
|
_: 1
|
|
2539
2610
|
})]))
|
|
2540
2611
|
]));
|
|
2541
2612
|
}
|
|
2542
|
-
}),
|
|
2613
|
+
}), ur = { class: "flex flex-col gap-1" }, dr = {
|
|
2543
2614
|
key: 0,
|
|
2544
2615
|
class: "flex-1 text-on-surface"
|
|
2545
|
-
},
|
|
2616
|
+
}, fr = {
|
|
2546
2617
|
key: 1,
|
|
2547
2618
|
class: "flex-1 text-on-surface-variant"
|
|
2548
|
-
},
|
|
2619
|
+
}, pr = {
|
|
2549
2620
|
key: 0,
|
|
2550
2621
|
class: "px-4 text-body-small text-error"
|
|
2551
|
-
},
|
|
2622
|
+
}, mr = {
|
|
2552
2623
|
key: 1,
|
|
2553
2624
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
2554
|
-
},
|
|
2625
|
+
}, hr = { class: "mb-2 text-center text-label-medium text-on-surface-variant" }, gr = { class: "mb-3 flex items-center justify-between" }, _r = { class: "text-title-small font-medium capitalize text-on-surface" }, vr = { class: "mb-1 grid grid-cols-7 gap-0.5 text-center" }, yr = { class: "grid grid-cols-7 gap-0.5" }, br = [
|
|
2555
2626
|
"disabled",
|
|
2556
2627
|
"onMouseenter",
|
|
2557
2628
|
"onClick"
|
|
2558
|
-
],
|
|
2629
|
+
], xr = /* @__PURE__ */ T({
|
|
2559
2630
|
__name: "MDateRangePicker",
|
|
2560
2631
|
props: {
|
|
2561
2632
|
modelValue: {},
|
|
@@ -2663,13 +2734,13 @@ var be = /* @__PURE__ */ T({
|
|
|
2663
2734
|
}), t = a.modelValue.start ? e.format(/* @__PURE__ */ new Date(a.modelValue.start + "T00:00:00")) : "—", n = a.modelValue.end ? e.format(/* @__PURE__ */ new Date(a.modelValue.end + "T00:00:00")) : "—";
|
|
2664
2735
|
return !a.modelValue.start && !a.modelValue.end ? "" : `${t} → ${n}`;
|
|
2665
2736
|
});
|
|
2666
|
-
function
|
|
2737
|
+
function ee() {
|
|
2667
2738
|
s("update:modelValue", {
|
|
2668
2739
|
start: null,
|
|
2669
2740
|
end: null
|
|
2670
2741
|
}), f.value = "start";
|
|
2671
2742
|
}
|
|
2672
|
-
function
|
|
2743
|
+
function K() {
|
|
2673
2744
|
if (!l.value) return;
|
|
2674
2745
|
let e = l.value.getBoundingClientRect();
|
|
2675
2746
|
S.value = {
|
|
@@ -2688,13 +2759,13 @@ var be = /* @__PURE__ */ T({
|
|
|
2688
2759
|
c.value = !1;
|
|
2689
2760
|
return;
|
|
2690
2761
|
}
|
|
2691
|
-
|
|
2762
|
+
K();
|
|
2692
2763
|
}
|
|
2693
2764
|
return J(c, (e) => {
|
|
2694
|
-
e ? (f.value = a.modelValue.start && !a.modelValue.end ? "end" : "start",
|
|
2765
|
+
e ? (f.value = a.modelValue.start && !a.modelValue.end ? "end" : "start", K(), setTimeout(() => document.addEventListener("mousedown", q), 0)) : document.removeEventListener("mousedown", q);
|
|
2695
2766
|
}), M(() => window.addEventListener("scroll", Y, !0)), N(() => {
|
|
2696
2767
|
window.removeEventListener("scroll", Y, !0), document.removeEventListener("mousedown", q);
|
|
2697
|
-
}), (t, n) => (P(), b("div",
|
|
2768
|
+
}), (t, n) => (P(), b("div", ur, [
|
|
2698
2769
|
x("div", {
|
|
2699
2770
|
ref_key: "triggerEl",
|
|
2700
2771
|
ref: l,
|
|
@@ -2710,19 +2781,19 @@ var be = /* @__PURE__ */ T({
|
|
|
2710
2781
|
size: 20,
|
|
2711
2782
|
class: "shrink-0 text-on-surface-variant"
|
|
2712
2783
|
}),
|
|
2713
|
-
G.value ? (P(), b("span",
|
|
2784
|
+
G.value ? (P(), b("span", dr, H(G.value), 1)) : (P(), b("span", fr, H(r.label || r.placeholder || U(o).selectRange), 1)),
|
|
2714
2785
|
r.modelValue.start || r.modelValue.end ? (P(), v(d, {
|
|
2715
2786
|
key: 2,
|
|
2716
2787
|
name: "close",
|
|
2717
2788
|
size: 18,
|
|
2718
2789
|
class: "shrink-0 cursor-pointer text-on-surface-variant hover:text-on-surface",
|
|
2719
|
-
onClick: Q(
|
|
2790
|
+
onClick: Q(ee, ["stop"])
|
|
2720
2791
|
})) : y("", !0)
|
|
2721
2792
|
], 2), r.label ? (P(), b("label", {
|
|
2722
2793
|
key: 0,
|
|
2723
2794
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"])
|
|
2724
2795
|
}, H(r.label), 3)) : y("", !0)], 4),
|
|
2725
|
-
r.error ? (P(), b("p",
|
|
2796
|
+
r.error ? (P(), b("p", pr, H(r.error), 1)) : r.hint ? (P(), b("p", mr, H(r.hint), 1)) : y("", !0),
|
|
2726
2797
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
2727
2798
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
2728
2799
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -2736,15 +2807,15 @@ var be = /* @__PURE__ */ T({
|
|
|
2736
2807
|
class: "fixed z-500 w-[320px] rounded-lg bg-surface-container p-4 shadow-elevation-3",
|
|
2737
2808
|
style: A(S.value)
|
|
2738
2809
|
}, [
|
|
2739
|
-
x("p",
|
|
2740
|
-
x("div",
|
|
2810
|
+
x("p", hr, H(f.value === "start" ? r.pickStartText ?? U(o).pickStart : r.pickEndText ?? U(o).pickEnd), 1),
|
|
2811
|
+
x("div", gr, [
|
|
2741
2812
|
w(e, {
|
|
2742
2813
|
icon: "chevron_left",
|
|
2743
2814
|
label: r.prevMonthLabel ?? U(o).previousMonth,
|
|
2744
2815
|
size: 36,
|
|
2745
2816
|
onClick: V
|
|
2746
2817
|
}, null, 8, ["label"]),
|
|
2747
|
-
x("span",
|
|
2818
|
+
x("span", _r, H(D.value), 1),
|
|
2748
2819
|
w(e, {
|
|
2749
2820
|
icon: "chevron_right",
|
|
2750
2821
|
label: r.nextMonthLabel ?? U(o).nextMonth,
|
|
@@ -2752,34 +2823,34 @@ var be = /* @__PURE__ */ T({
|
|
|
2752
2823
|
onClick: W
|
|
2753
2824
|
}, null, 8, ["label"])
|
|
2754
2825
|
]),
|
|
2755
|
-
x("div",
|
|
2826
|
+
x("div", vr, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("span", {
|
|
2756
2827
|
key: e,
|
|
2757
2828
|
class: "py-1 text-label-small font-medium text-on-surface-variant"
|
|
2758
2829
|
}, H(e), 1))), 128))]),
|
|
2759
|
-
x("div",
|
|
2830
|
+
x("div", yr, [(P(!0), b(p, null, R(O.value, (e, t) => (P(), b("button", {
|
|
2760
2831
|
key: t,
|
|
2761
2832
|
type: "button",
|
|
2762
2833
|
class: k(["flex h-9 w-full items-center justify-center text-body-medium transition-colors duration-100", [e.disabled ? "cursor-not-allowed text-on-surface/25 rounded-full" : e.iso === r.modelValue.start || e.iso === r.modelValue.end ? "bg-primary text-on-primary rounded-full" : B(e.iso) ? "bg-primary/12 text-on-surface cursor-pointer" : e.iso === U(I) ? "border border-primary text-primary rounded-full cursor-pointer hover:bg-primary/8" : e.current ? "cursor-pointer text-on-surface rounded-full hover:bg-on-surface/8" : "cursor-pointer text-on-surface-variant/50 rounded-full hover:bg-on-surface/4"]]),
|
|
2763
2834
|
disabled: e.disabled,
|
|
2764
2835
|
onMouseenter: (t) => f.value === "end" && (g.value = e.iso),
|
|
2765
2836
|
onClick: (t) => z(e)
|
|
2766
|
-
}, H(e.date), 43,
|
|
2837
|
+
}, H(e.date), 43, br))), 128))])
|
|
2767
2838
|
], 4)) : y("", !0)]),
|
|
2768
2839
|
_: 1
|
|
2769
2840
|
})]))
|
|
2770
2841
|
]));
|
|
2771
2842
|
}
|
|
2772
|
-
}),
|
|
2843
|
+
}), Sr = {
|
|
2773
2844
|
key: 0,
|
|
2774
2845
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
2775
|
-
},
|
|
2846
|
+
}, Cr = {
|
|
2776
2847
|
key: 1,
|
|
2777
2848
|
class: "h-px flex-1 bg-outline-variant"
|
|
2778
|
-
},
|
|
2849
|
+
}, wr = {
|
|
2779
2850
|
key: 1,
|
|
2780
2851
|
class: "w-px self-stretch bg-outline-variant",
|
|
2781
2852
|
role: "separator"
|
|
2782
|
-
},
|
|
2853
|
+
}, Tr = /* @__PURE__ */ T({
|
|
2783
2854
|
__name: "MDivider",
|
|
2784
2855
|
props: {
|
|
2785
2856
|
vertical: {
|
|
@@ -2793,25 +2864,25 @@ var be = /* @__PURE__ */ T({
|
|
|
2793
2864
|
}
|
|
2794
2865
|
},
|
|
2795
2866
|
setup(e) {
|
|
2796
|
-
return (t, n) => e.vertical ? (P(), b("div",
|
|
2867
|
+
return (t, n) => e.vertical ? (P(), b("div", wr)) : (P(), b("div", {
|
|
2797
2868
|
key: 0,
|
|
2798
2869
|
class: k(["flex items-center gap-3", e.inset && "ml-16"]),
|
|
2799
2870
|
role: "separator"
|
|
2800
2871
|
}, [
|
|
2801
2872
|
n[0] ||= x("div", { class: "h-px flex-1 bg-outline-variant" }, null, -1),
|
|
2802
|
-
e.label ? (P(), b("span",
|
|
2803
|
-
e.label ? (P(), b("div",
|
|
2873
|
+
e.label ? (P(), b("span", Sr, H(e.label), 1)) : y("", !0),
|
|
2874
|
+
e.label ? (P(), b("div", Cr)) : y("", !0)
|
|
2804
2875
|
], 2));
|
|
2805
2876
|
}
|
|
2806
|
-
}),
|
|
2877
|
+
}), Er = {
|
|
2807
2878
|
class: "flex flex-col",
|
|
2808
2879
|
role: "listbox"
|
|
2809
|
-
},
|
|
2880
|
+
}, Dr = [
|
|
2810
2881
|
"draggable",
|
|
2811
2882
|
"onDragstart",
|
|
2812
2883
|
"onDragover",
|
|
2813
2884
|
"onDrop"
|
|
2814
|
-
],
|
|
2885
|
+
], Or = ["onDragstart"], kr = { class: "min-w-0 flex-1" }, Ar = { class: "text-body-medium text-on-surface" }, jr = /* @__PURE__ */ T({
|
|
2815
2886
|
__name: "MDragDropList",
|
|
2816
2887
|
props: {
|
|
2817
2888
|
modelValue: {},
|
|
@@ -2855,7 +2926,7 @@ var be = /* @__PURE__ */ T({
|
|
|
2855
2926
|
function m(e) {
|
|
2856
2927
|
return i.value === e ? "opacity-30" : a.value === e && i.value !== null ? "ring-2 ring-primary ring-inset" : "";
|
|
2857
2928
|
}
|
|
2858
|
-
return (t, n) => (P(), b("div",
|
|
2929
|
+
return (t, n) => (P(), b("div", Er, [(P(!0), b(p, null, R(e.modelValue, (n, r) => (P(), b("div", {
|
|
2859
2930
|
key: n.id,
|
|
2860
2931
|
draggable: !e.handle,
|
|
2861
2932
|
class: k(["group flex items-center gap-2 rounded-lg px-3 py-2 transition-all", [m(r), !e.handle && "cursor-grab active:cursor-grabbing"]]),
|
|
@@ -2873,12 +2944,12 @@ var be = /* @__PURE__ */ T({
|
|
|
2873
2944
|
}, [w(d, {
|
|
2874
2945
|
name: "drag_indicator",
|
|
2875
2946
|
size: 20
|
|
2876
|
-
})], 40,
|
|
2947
|
+
})], 40, Or)) : y("", !0), x("div", kr, [z(t.$slots, "default", {
|
|
2877
2948
|
item: n,
|
|
2878
2949
|
index: r
|
|
2879
|
-
}, () => [x("span",
|
|
2950
|
+
}, () => [x("span", Ar, H(n.id), 1)])])], 42, Dr))), 128))]));
|
|
2880
2951
|
}
|
|
2881
|
-
}),
|
|
2952
|
+
}), Mr = ["aria-label", "role"], Nr = /* @__PURE__ */ T({
|
|
2882
2953
|
__name: "MEmoji",
|
|
2883
2954
|
props: {
|
|
2884
2955
|
emoji: {},
|
|
@@ -2895,9 +2966,9 @@ var be = /* @__PURE__ */ T({
|
|
|
2895
2966
|
}),
|
|
2896
2967
|
"aria-label": e.label,
|
|
2897
2968
|
role: e.label ? "img" : void 0
|
|
2898
|
-
}, H(e.emoji), 13,
|
|
2969
|
+
}, H(e.emoji), 13, Mr));
|
|
2899
2970
|
}
|
|
2900
|
-
}),
|
|
2971
|
+
}), Pr = [
|
|
2901
2972
|
{
|
|
2902
2973
|
id: "smileys",
|
|
2903
2974
|
label: "Smileys",
|
|
@@ -2964,14 +3035,14 @@ var be = /* @__PURE__ */ T({
|
|
|
2964
3035
|
icon: "flag",
|
|
2965
3036
|
emojis: /* @__PURE__ */ "🏁.🚩.🎌.🏴.🏳️.🏳️🌈.🏳️⚧️.🏴☠️.🇦🇷.🇦🇺.🇧🇷.🇨🇦.🇨🇱.🇨🇳.🇨🇴.🇩🇪.🇪🇸.🇫🇷.🇬🇧.🇮🇹.🇯🇵.🇰🇷.🇲🇽.🇳🇱.🇵🇪.🇵🇹.🇷🇺.🇸🇪.🇺🇸.🇻🇪.🇪🇨.🇧🇴.🇵🇾.🇺🇾.🇨🇷.🇵🇦.🇨🇺.🇩🇴.🇬🇹.🇭🇳.🇳🇮.🇸🇻.🇵🇷.🇮🇳.🇮🇩.🇹🇷.🇵🇭.🇹🇭".split(".")
|
|
2966
3037
|
}
|
|
2967
|
-
],
|
|
2968
|
-
function
|
|
2969
|
-
let t = e ??
|
|
3038
|
+
], Fr = Pr.flatMap((e) => e.emojis);
|
|
3039
|
+
function Ir(e) {
|
|
3040
|
+
let t = e ?? Fr;
|
|
2970
3041
|
return t[Math.floor(Math.random() * t.length)];
|
|
2971
3042
|
}
|
|
2972
3043
|
//#endregion
|
|
2973
3044
|
//#region src/components/MEmojiButton.vue?vue&type=script&setup=true&lang.ts
|
|
2974
|
-
var
|
|
3045
|
+
var Lr = ["aria-label", "disabled"], Rr = { class: "leading-none" }, zr = /* @__PURE__ */ T({
|
|
2975
3046
|
__name: "MEmojiButton",
|
|
2976
3047
|
props: {
|
|
2977
3048
|
emoji: { default: "😀" },
|
|
@@ -2991,10 +3062,10 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
2991
3062
|
setup(e, { emit: t }) {
|
|
2992
3063
|
let n = e, r = t, i = L(n.emoji);
|
|
2993
3064
|
function a() {
|
|
2994
|
-
return n.category ?
|
|
3065
|
+
return n.category ? Pr.find((e) => e.id === n.category)?.emojis ?? Fr : Fr;
|
|
2995
3066
|
}
|
|
2996
3067
|
function o() {
|
|
2997
|
-
!n.randomOnHover || n.disabled || (i.value =
|
|
3068
|
+
!n.randomOnHover || n.disabled || (i.value = Ir(a()));
|
|
2998
3069
|
}
|
|
2999
3070
|
function s() {}
|
|
3000
3071
|
function c() {
|
|
@@ -3013,15 +3084,15 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3013
3084
|
onMouseenter: o,
|
|
3014
3085
|
onMouseleave: s,
|
|
3015
3086
|
onClick: c
|
|
3016
|
-
}, [x("span",
|
|
3087
|
+
}, [x("span", Rr, H(i.value), 1)], 46, Lr));
|
|
3017
3088
|
}
|
|
3018
|
-
}),
|
|
3089
|
+
}), Br = { class: "flex w-full flex-col overflow-hidden rounded-xl border border-outline-variant bg-surface-container" }, Vr = {
|
|
3019
3090
|
key: 0,
|
|
3020
3091
|
class: "px-3 pt-3"
|
|
3021
|
-
},
|
|
3092
|
+
}, Hr = { class: "flex gap-0.5 overflow-x-auto border-b border-outline-variant px-2 py-1.5" }, Ur = ["title", "onClick"], Wr = { class: "sticky -top-px z-10 -mx-2 bg-surface-container px-3 py-1.5 text-label-medium text-on-surface-variant" }, Gr = ["onClick"], Kr = {
|
|
3022
3093
|
key: 0,
|
|
3023
3094
|
class: "py-8 text-center text-body-medium text-on-surface-variant"
|
|
3024
|
-
},
|
|
3095
|
+
}, qr = /* @__PURE__ */ T({
|
|
3025
3096
|
__name: "MEmojiSelector",
|
|
3026
3097
|
props: {
|
|
3027
3098
|
categories: {},
|
|
@@ -3034,7 +3105,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3034
3105
|
},
|
|
3035
3106
|
emits: ["select"],
|
|
3036
3107
|
setup(e, { emit: t }) {
|
|
3037
|
-
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ?
|
|
3108
|
+
let n = e, r = t, i = L(""), a = L(null), o = L(null), c = L({}), l = _(() => n.categories?.length ? Pr.filter((e) => n.categories.includes(e.id)) : Pr), u = _(() => {
|
|
3038
3109
|
if (!i.value) return l.value;
|
|
3039
3110
|
let e = i.value.toLowerCase();
|
|
3040
3111
|
return l.value.map((t) => ({
|
|
@@ -3056,15 +3127,15 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3056
3127
|
function h(e, t) {
|
|
3057
3128
|
t && (c.value[e] = t);
|
|
3058
3129
|
}
|
|
3059
|
-
return (t, n) => (P(), b("div",
|
|
3060
|
-
e.search ? (P(), b("div",
|
|
3130
|
+
return (t, n) => (P(), b("div", Br, [
|
|
3131
|
+
e.search ? (P(), b("div", Vr, [w(s, {
|
|
3061
3132
|
modelValue: i.value,
|
|
3062
3133
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
3063
3134
|
label: "Search",
|
|
3064
3135
|
"leading-icon": "search",
|
|
3065
3136
|
variant: "outlined"
|
|
3066
3137
|
}, null, 8, ["modelValue"])])) : y("", !0),
|
|
3067
|
-
x("div",
|
|
3138
|
+
x("div", Hr, [(P(!0), b(p, null, R(l.value, (e) => (P(), b("button", {
|
|
3068
3139
|
key: e.id,
|
|
3069
3140
|
type: "button",
|
|
3070
3141
|
title: e.label,
|
|
@@ -3073,7 +3144,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3073
3144
|
}, [w(d, {
|
|
3074
3145
|
name: e.icon,
|
|
3075
3146
|
size: 20
|
|
3076
|
-
}, null, 8, ["name"])], 10,
|
|
3147
|
+
}, null, 8, ["name"])], 10, Ur))), 128))]),
|
|
3077
3148
|
x("div", {
|
|
3078
3149
|
ref_key: "scrollContainer",
|
|
3079
3150
|
ref: o,
|
|
@@ -3083,7 +3154,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3083
3154
|
key: t.id,
|
|
3084
3155
|
ref_for: !0,
|
|
3085
3156
|
ref: (e) => h(t.id, e)
|
|
3086
|
-
}, [x("p",
|
|
3157
|
+
}, [x("p", Wr, H(t.label), 1), x("div", {
|
|
3087
3158
|
class: "grid gap-0.5",
|
|
3088
3159
|
style: A({ gridTemplateColumns: `repeat(${e.columns}, 1fr)` })
|
|
3089
3160
|
}, [(P(!0), b(p, null, R(t.emojis, (t) => (P(), b("button", {
|
|
@@ -3095,10 +3166,10 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3095
3166
|
height: `${e.emojiSize + 10}px`
|
|
3096
3167
|
}),
|
|
3097
3168
|
onClick: (e) => m(t)
|
|
3098
|
-
}, H(t), 13,
|
|
3169
|
+
}, H(t), 13, Gr))), 128))], 4)], 512))), 128)), i.value && u.value.length === 0 ? (P(), b("p", Kr, " No results ")) : y("", !0)], 512)
|
|
3099
3170
|
]));
|
|
3100
3171
|
}
|
|
3101
|
-
}),
|
|
3172
|
+
}), Jr = /* @__PURE__ */ T({
|
|
3102
3173
|
__name: "MEmptyState",
|
|
3103
3174
|
props: {
|
|
3104
3175
|
icon: { default: "inbox" },
|
|
@@ -3123,13 +3194,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3123
3194
|
}, [z(t.$slots, "actions")], 2)) : y("", !0)
|
|
3124
3195
|
], 2));
|
|
3125
3196
|
}
|
|
3126
|
-
}),
|
|
3197
|
+
}), Yr = ["aria-expanded", "disabled"], Xr = { class: "flex-1 min-w-0" }, Zr = { class: "text-body-large font-medium text-on-surface" }, Qr = {
|
|
3127
3198
|
key: 0,
|
|
3128
3199
|
class: "text-body-small text-on-surface-variant"
|
|
3129
|
-
},
|
|
3200
|
+
}, $r = {
|
|
3130
3201
|
key: 0,
|
|
3131
3202
|
class: "expand-grid"
|
|
3132
|
-
},
|
|
3203
|
+
}, ei = { class: "expand-body border-t border-outline-variant/60 px-5 py-4" }, ti = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
3133
3204
|
__name: "MExpansionPanel",
|
|
3134
3205
|
props: {
|
|
3135
3206
|
title: {},
|
|
@@ -3164,24 +3235,24 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3164
3235
|
size: 22,
|
|
3165
3236
|
class: "shrink-0 text-on-surface-variant"
|
|
3166
3237
|
}, null, 8, ["name"])) : y("", !0),
|
|
3167
|
-
x("div",
|
|
3238
|
+
x("div", Xr, [x("p", Zr, H(e.title), 1), e.subtitle ? (P(), b("p", Qr, H(e.subtitle), 1)) : y("", !0)]),
|
|
3168
3239
|
w(d, {
|
|
3169
3240
|
name: "expand_more",
|
|
3170
3241
|
size: 22,
|
|
3171
3242
|
class: k(["shrink-0 text-on-surface-variant transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
3172
3243
|
}, null, 8, ["class"])
|
|
3173
|
-
], 10,
|
|
3174
|
-
default: X(() => [a.value ? (P(), b("div",
|
|
3244
|
+
], 10, Yr), w(h, { name: "expand" }, {
|
|
3245
|
+
default: X(() => [a.value ? (P(), b("div", $r, [x("div", ei, [z(t.$slots, "default", {}, void 0, !0)])])) : y("", !0)]),
|
|
3175
3246
|
_: 3
|
|
3176
3247
|
})], 2));
|
|
3177
3248
|
}
|
|
3178
|
-
}), [["__scopeId", "data-v-89e4475b"]]),
|
|
3249
|
+
}), [["__scopeId", "data-v-89e4475b"]]), ni = {
|
|
3179
3250
|
key: 0,
|
|
3180
3251
|
class: "text-label-large font-medium"
|
|
3181
|
-
},
|
|
3252
|
+
}, ri = ["data-tick"], ii = {
|
|
3182
3253
|
key: 0,
|
|
3183
3254
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
3184
|
-
},
|
|
3255
|
+
}, ai = 40, oi = 8, si = /* @__PURE__ */ T({
|
|
3185
3256
|
__name: "MFab",
|
|
3186
3257
|
props: {
|
|
3187
3258
|
icon: {},
|
|
@@ -3244,8 +3315,8 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3244
3315
|
let t = 2 * Math.PI * e / o - Math.PI / 2, n = (Math.cos(t) * 80).toFixed(1), s = (Math.sin(t) * 80).toFixed(1);
|
|
3245
3316
|
return {
|
|
3246
3317
|
position: "fixed",
|
|
3247
|
-
top: `${i -
|
|
3248
|
-
left: `${r -
|
|
3318
|
+
top: `${i - ai / 2}px`,
|
|
3319
|
+
left: `${r - ai / 2}px`,
|
|
3249
3320
|
transform: a.value ? `translate(${n}px, ${s}px) scale(1)` : "translate(0,0) scale(0)",
|
|
3250
3321
|
opacity: a.value ? "1" : "0",
|
|
3251
3322
|
transition: c,
|
|
@@ -3253,22 +3324,22 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3253
3324
|
zIndex: "1000"
|
|
3254
3325
|
};
|
|
3255
3326
|
}
|
|
3256
|
-
let l = f.value / 2 +
|
|
3327
|
+
let l = f.value / 2 + oi + ai / 2 + e * 48, u = {
|
|
3257
3328
|
up: {
|
|
3258
|
-
top: `${i - l -
|
|
3259
|
-
left: `${r -
|
|
3329
|
+
top: `${i - l - ai / 2}px`,
|
|
3330
|
+
left: `${r - ai / 2}px`
|
|
3260
3331
|
},
|
|
3261
3332
|
down: {
|
|
3262
|
-
top: `${i + l -
|
|
3263
|
-
left: `${r -
|
|
3333
|
+
top: `${i + l - ai / 2}px`,
|
|
3334
|
+
left: `${r - ai / 2}px`
|
|
3264
3335
|
},
|
|
3265
3336
|
left: {
|
|
3266
|
-
top: `${i -
|
|
3267
|
-
left: `${r - l -
|
|
3337
|
+
top: `${i - ai / 2}px`,
|
|
3338
|
+
left: `${r - l - ai / 2}px`
|
|
3268
3339
|
},
|
|
3269
3340
|
right: {
|
|
3270
|
-
top: `${i -
|
|
3271
|
-
left: `${r + l -
|
|
3341
|
+
top: `${i - ai / 2}px`,
|
|
3342
|
+
left: `${r + l - ai / 2}px`
|
|
3272
3343
|
}
|
|
3273
3344
|
}, d = {
|
|
3274
3345
|
up: "translateY(12px) scale(0.75)",
|
|
@@ -3327,7 +3398,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3327
3398
|
"name",
|
|
3328
3399
|
"size",
|
|
3329
3400
|
"class"
|
|
3330
|
-
]), e.label ? (P(), b("span",
|
|
3401
|
+
]), e.label ? (P(), b("span", ni, H(e.label), 1)) : y("", !0)]),
|
|
3331
3402
|
_: 1
|
|
3332
3403
|
}, 40, [
|
|
3333
3404
|
"to",
|
|
@@ -3337,17 +3408,17 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3337
3408
|
]))], 512), (P(), v(m, { to: "body" }, [s.value ? (P(), b(p, { key: 0 }, [x("span", {
|
|
3338
3409
|
"data-tick": C.value,
|
|
3339
3410
|
class: "hidden"
|
|
3340
|
-
}, null, 8,
|
|
3411
|
+
}, null, 8, ri), (P(!0), b(p, null, R(e.items, (t, n) => (P(), b("div", {
|
|
3341
3412
|
key: n,
|
|
3342
3413
|
style: A(g(n)),
|
|
3343
3414
|
class: k(["flex items-center gap-3", S.value ? "flex-row-reverse" : ""])
|
|
3344
|
-
}, [t.label && S.value ? (P(), b("span",
|
|
3415
|
+
}, [t.label && S.value ? (P(), b("span", ii, H(t.label), 1)) : y("", !0), (P(), v(V(t.to ? "RouterLink" : "button"), {
|
|
3345
3416
|
to: t.to || void 0,
|
|
3346
3417
|
type: t.to ? void 0 : "button",
|
|
3347
3418
|
class: k(["relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", c[e.color]]),
|
|
3348
3419
|
style: A({
|
|
3349
|
-
width: `${
|
|
3350
|
-
height: `${
|
|
3420
|
+
width: `${ai}px`,
|
|
3421
|
+
height: `${ai}px`
|
|
3351
3422
|
}),
|
|
3352
3423
|
onPointerdown: (e) => O(e, t, e.currentTarget)
|
|
3353
3424
|
}, {
|
|
@@ -3364,17 +3435,17 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3364
3435
|
"onPointerdown"
|
|
3365
3436
|
]))], 6))), 128))], 64)) : y("", !0)]))], 64));
|
|
3366
3437
|
}
|
|
3367
|
-
}),
|
|
3438
|
+
}), ci = { class: "flex flex-col gap-3" }, li = { class: "text-center" }, ui = { class: "text-body-large text-on-surface" }, di = { class: "font-medium text-primary" }, fi = {
|
|
3368
3439
|
key: 0,
|
|
3369
3440
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
3370
|
-
},
|
|
3441
|
+
}, pi = { key: 0 }, mi = { key: 1 }, hi = { key: 2 }, gi = [
|
|
3371
3442
|
"accept",
|
|
3372
3443
|
"multiple",
|
|
3373
3444
|
"disabled"
|
|
3374
|
-
],
|
|
3445
|
+
], _i = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, vi = ["src"], yi = { class: "min-w-0 flex-1" }, bi = { class: "truncate text-body-medium text-on-surface" }, xi = { class: "text-body-small text-on-surface-variant" }, Si = {
|
|
3375
3446
|
key: 0,
|
|
3376
3447
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
3377
|
-
},
|
|
3448
|
+
}, Ci = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
3378
3449
|
__name: "MFileUpload",
|
|
3379
3450
|
props: {
|
|
3380
3451
|
accept: {},
|
|
@@ -3426,7 +3497,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3426
3497
|
function O() {
|
|
3427
3498
|
a.disabled || u.value?.click();
|
|
3428
3499
|
}
|
|
3429
|
-
return (n, r) => (P(), b("div",
|
|
3500
|
+
return (n, r) => (P(), b("div", ci, [
|
|
3430
3501
|
x("div", {
|
|
3431
3502
|
class: k(["relative flex min-h-[160px] cursor-pointer flex-col items-center justify-center gap-3 rounded-lg border-2 border-dashed p-6 transition-colors duration-150", [t.disabled ? "cursor-not-allowed border-outline-variant/50 bg-surface-container/30 opacity-60" : l.value ? "border-primary bg-primary-container/20" : "border-outline-variant bg-surface-container-lowest hover:border-primary/60 hover:bg-surface-container"]]),
|
|
3432
3503
|
onClick: O,
|
|
@@ -3438,10 +3509,10 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3438
3509
|
name: l.value ? "downloading" : "cloud_upload",
|
|
3439
3510
|
size: 40,
|
|
3440
3511
|
class: "text-on-surface-variant"
|
|
3441
|
-
}, null, 8, ["name"]), x("div",
|
|
3442
|
-
t.accept ? (P(), b("span",
|
|
3443
|
-
t.accept && t.maxSize ? (P(), b("span",
|
|
3444
|
-
t.maxSize ? (P(), b("span",
|
|
3512
|
+
}, null, 8, ["name"]), x("div", li, [z(n.$slots, "dropzone", {}, () => [x("p", ui, [C(H(t.dropText ?? U(i).dropText) + " ", 1), x("span", di, H(t.selectText ?? U(i).selectText), 1)]), t.accept || t.maxSize ? (P(), b("p", fi, [
|
|
3513
|
+
t.accept ? (P(), b("span", pi, H(t.accept), 1)) : y("", !0),
|
|
3514
|
+
t.accept && t.maxSize ? (P(), b("span", mi, " · ")) : y("", !0),
|
|
3515
|
+
t.maxSize ? (P(), b("span", hi, H(t.maxSizePrefix ?? U(i).maxSizePrefix) + " " + H(h(t.maxSize)), 1)) : y("", !0)
|
|
3445
3516
|
])) : y("", !0)], !0)])], 34),
|
|
3446
3517
|
x("input", {
|
|
3447
3518
|
ref_key: "inputRef",
|
|
@@ -3452,7 +3523,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3452
3523
|
multiple: t.multiple,
|
|
3453
3524
|
disabled: t.disabled,
|
|
3454
3525
|
onChange: E
|
|
3455
|
-
}, null, 40,
|
|
3526
|
+
}, null, 40, gi),
|
|
3456
3527
|
w(g, {
|
|
3457
3528
|
name: "m3-file",
|
|
3458
3529
|
tag: "div",
|
|
@@ -3462,20 +3533,20 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3462
3533
|
key: n.id,
|
|
3463
3534
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
3464
3535
|
}, [
|
|
3465
|
-
x("div",
|
|
3536
|
+
x("div", _i, [n.preview ? (P(), b("img", {
|
|
3466
3537
|
key: 0,
|
|
3467
3538
|
src: n.preview,
|
|
3468
3539
|
class: "h-full w-full object-cover"
|
|
3469
|
-
}, null, 8,
|
|
3540
|
+
}, null, 8, vi)) : (P(), v(d, {
|
|
3470
3541
|
key: 1,
|
|
3471
3542
|
name: "description",
|
|
3472
3543
|
size: 24,
|
|
3473
3544
|
class: "text-on-surface-variant"
|
|
3474
3545
|
}))]),
|
|
3475
|
-
x("div",
|
|
3476
|
-
x("p",
|
|
3477
|
-
x("p",
|
|
3478
|
-
n.status === "uploading" ? (P(), b("div",
|
|
3546
|
+
x("div", yi, [
|
|
3547
|
+
x("p", bi, H(n.file.name), 1),
|
|
3548
|
+
x("p", xi, H(h(n.file.size)), 1),
|
|
3549
|
+
n.status === "uploading" ? (P(), b("div", Si, [x("div", {
|
|
3479
3550
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
3480
3551
|
style: A({ width: `${n.progress}%` })
|
|
3481
3552
|
}, null, 4)])) : y("", !0)
|
|
@@ -3505,7 +3576,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3505
3576
|
})
|
|
3506
3577
|
]));
|
|
3507
3578
|
}
|
|
3508
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
3579
|
+
}), [["__scopeId", "data-v-6b150427"]]), wi = /* @__PURE__ */ T({
|
|
3509
3580
|
__name: "MFixed",
|
|
3510
3581
|
props: {
|
|
3511
3582
|
placement: {},
|
|
@@ -3551,19 +3622,19 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3551
3622
|
});
|
|
3552
3623
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
3553
3624
|
}
|
|
3554
|
-
}),
|
|
3625
|
+
}), Ti = {
|
|
3555
3626
|
key: 0,
|
|
3556
3627
|
class: "px-6 pt-6 pb-2 sm:px-8 lg:px-12"
|
|
3557
|
-
},
|
|
3628
|
+
}, Ei = {
|
|
3558
3629
|
key: 1,
|
|
3559
3630
|
class: "px-6 py-6 sm:px-8 lg:px-12"
|
|
3560
|
-
},
|
|
3631
|
+
}, Di = {
|
|
3561
3632
|
key: 2,
|
|
3562
3633
|
class: "flex flex-wrap items-center gap-1 px-6 pb-4 sm:px-8 lg:px-12"
|
|
3563
|
-
},
|
|
3634
|
+
}, Oi = {
|
|
3564
3635
|
key: 3,
|
|
3565
3636
|
class: "border-t border-outline-variant px-6 py-4 sm:px-8 lg:px-12"
|
|
3566
|
-
},
|
|
3637
|
+
}, ki = /* @__PURE__ */ T({
|
|
3567
3638
|
__name: "MFooter",
|
|
3568
3639
|
props: {
|
|
3569
3640
|
bordered: { type: Boolean },
|
|
@@ -3578,13 +3649,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3578
3649
|
inverse: "bg-inverse-surface text-inverse-on-surface"
|
|
3579
3650
|
};
|
|
3580
3651
|
return (n, r) => (P(), b("footer", { class: k(["w-full", [t[e.surface], e.bordered ? "border-t border-outline-variant" : ""]]) }, [
|
|
3581
|
-
n.$slots.brand ? (P(), b("div",
|
|
3582
|
-
n.$slots.default ? (P(), b("div",
|
|
3583
|
-
n.$slots.social ? (P(), b("div",
|
|
3584
|
-
n.$slots.bottom ? (P(), b("div",
|
|
3652
|
+
n.$slots.brand ? (P(), b("div", Ti, [z(n.$slots, "brand")])) : y("", !0),
|
|
3653
|
+
n.$slots.default ? (P(), b("div", Ei, [z(n.$slots, "default")])) : y("", !0),
|
|
3654
|
+
n.$slots.social ? (P(), b("div", Di, [z(n.$slots, "social")])) : y("", !0),
|
|
3655
|
+
n.$slots.bottom ? (P(), b("div", Oi, [z(n.$slots, "bottom")])) : y("", !0)
|
|
3585
3656
|
], 2));
|
|
3586
3657
|
}
|
|
3587
|
-
}),
|
|
3658
|
+
}), Ai = /* @__PURE__ */ T({
|
|
3588
3659
|
__name: "MFlex",
|
|
3589
3660
|
props: {
|
|
3590
3661
|
direction: { default: "row" },
|
|
@@ -3636,7 +3707,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3636
3707
|
]);
|
|
3637
3708
|
return (e, t) => (P(), b("div", { class: k(o.value) }, [z(e.$slots, "default")], 2));
|
|
3638
3709
|
}
|
|
3639
|
-
}),
|
|
3710
|
+
}), ji = /* @__PURE__ */ T({
|
|
3640
3711
|
__name: "MFullscreen",
|
|
3641
3712
|
props: {
|
|
3642
3713
|
fixed: {
|
|
@@ -3653,7 +3724,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3653
3724
|
}));
|
|
3654
3725
|
return (e, t) => (P(), b("div", { style: A(n.value) }, [z(e.$slots, "default")], 4));
|
|
3655
3726
|
}
|
|
3656
|
-
}),
|
|
3727
|
+
}), Mi = /* @__PURE__ */ T({
|
|
3657
3728
|
__name: "MGrid",
|
|
3658
3729
|
props: {
|
|
3659
3730
|
cols: { default: 1 },
|
|
@@ -3729,13 +3800,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3729
3800
|
]);
|
|
3730
3801
|
return (e, t) => (P(), b("div", { class: k(l.value) }, [z(e.$slots, "default")], 2));
|
|
3731
3802
|
}
|
|
3732
|
-
}),
|
|
3803
|
+
}), Ni = {
|
|
3733
3804
|
key: 0,
|
|
3734
3805
|
class: "flex flex-col gap-4"
|
|
3735
|
-
},
|
|
3806
|
+
}, Pi = {
|
|
3736
3807
|
key: 0,
|
|
3737
3808
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
3738
|
-
},
|
|
3809
|
+
}, Fi = { class: "flex flex-col gap-1" }, Ii = { class: "text-body-medium text-on-surface" }, Li = { class: "flex items-center gap-0.5" }, Ri = /* @__PURE__ */ T({
|
|
3739
3810
|
__name: "MHotkeys",
|
|
3740
3811
|
props: {
|
|
3741
3812
|
bindings: {},
|
|
@@ -3792,15 +3863,15 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3792
3863
|
}
|
|
3793
3864
|
return e;
|
|
3794
3865
|
};
|
|
3795
|
-
return (t, n) => e.showOverlay ? (P(), b("div",
|
|
3866
|
+
return (t, n) => e.showOverlay ? (P(), b("div", Ni, [(P(!0), b(p, null, R(s(), ([e, t]) => (P(), b("div", { key: e }, [e ? (P(), b("p", Pi, H(e), 1)) : y("", !0), x("div", Fi, [(P(!0), b(p, null, R(t, (e) => (P(), b("div", {
|
|
3796
3867
|
key: e.keys,
|
|
3797
3868
|
class: k(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
3798
|
-
}, [x("span",
|
|
3869
|
+
}, [x("span", Ii, H(e.label), 1), x("div", Li, [(P(!0), b(p, null, R(e.keys.split("+"), (e, t) => (P(), b("kbd", {
|
|
3799
3870
|
key: t,
|
|
3800
3871
|
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"
|
|
3801
3872
|
}, H(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : y("", !0);
|
|
3802
3873
|
}
|
|
3803
|
-
}),
|
|
3874
|
+
}), zi = { class: "flex items-center gap-3" }, Bi = { class: "text-body-medium text-on-surface-variant" }, Vi = { class: "text-body-small text-on-surface-variant" }, Hi = /* @__PURE__ */ T({
|
|
3804
3875
|
__name: "MInfiniteScroll",
|
|
3805
3876
|
props: {
|
|
3806
3877
|
loading: {
|
|
@@ -3831,30 +3902,30 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3831
3902
|
ref_key: "sentinelRef",
|
|
3832
3903
|
ref: o,
|
|
3833
3904
|
class: "flex items-center justify-center py-4"
|
|
3834
|
-
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div",
|
|
3905
|
+
}, [e.loading ? z(t.$slots, "loading", { key: 0 }, () => [x("div", zi, [w(c, {
|
|
3835
3906
|
size: 20,
|
|
3836
3907
|
class: "text-primary"
|
|
3837
|
-
}), x("span",
|
|
3908
|
+
}), x("span", Bi, H(e.loadingText ?? U(r).loadingMore), 1)])]) : e.ended ? z(t.$slots, "end", { key: 1 }, () => [x("p", Vi, H(e.endText ?? U(r).noMoreItems), 1)]) : z(t.$slots, "idle", { key: 2 })], 512)]));
|
|
3838
3909
|
}
|
|
3839
|
-
}),
|
|
3910
|
+
}), Ui = {
|
|
3840
3911
|
key: 0,
|
|
3841
3912
|
class: "text-tertiary"
|
|
3842
|
-
},
|
|
3913
|
+
}, Wi = { class: "text-on-surface-variant" }, Gi = {
|
|
3843
3914
|
key: 1,
|
|
3844
3915
|
class: "text-on-surface-variant/60"
|
|
3845
|
-
},
|
|
3916
|
+
}, Ki = {
|
|
3846
3917
|
key: 2,
|
|
3847
3918
|
class: "text-on-surface-variant"
|
|
3848
|
-
},
|
|
3919
|
+
}, qi = {
|
|
3849
3920
|
key: 0,
|
|
3850
3921
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
3851
|
-
},
|
|
3922
|
+
}, Ji = { class: "shrink-0 text-primary" }, Yi = {
|
|
3852
3923
|
key: 0,
|
|
3853
3924
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
3854
|
-
},
|
|
3925
|
+
}, Xi = {
|
|
3855
3926
|
key: 1,
|
|
3856
3927
|
class: "ml-5 text-on-surface-variant"
|
|
3857
|
-
},
|
|
3928
|
+
}, Zi = /* @__PURE__ */ T({
|
|
3858
3929
|
__name: "MJsonViewer",
|
|
3859
3930
|
props: {
|
|
3860
3931
|
data: {},
|
|
@@ -3895,17 +3966,17 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3895
3966
|
size: 16,
|
|
3896
3967
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
3897
3968
|
}, null, 8, ["name"]),
|
|
3898
|
-
e._depth === 0 || e.rootName ? (P(), b("span",
|
|
3899
|
-
x("span",
|
|
3900
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3901
|
-
n.value ? y("", !0) : (P(), b("span",
|
|
3969
|
+
e._depth === 0 || e.rootName ? (P(), b("span", Ui, H(e._depth === 0 ? e.rootName : ""), 1)) : y("", !0),
|
|
3970
|
+
x("span", Wi, H(s.value), 1),
|
|
3971
|
+
n.value ? y("", !0) : (P(), b("span", Gi, H(o.value) + " " + H(r.value === "array" ? "elementos" : "campos"), 1)),
|
|
3972
|
+
n.value ? y("", !0) : (P(), b("span", Ki, H(c.value), 1))
|
|
3902
3973
|
]),
|
|
3903
|
-
n.value ? (P(), b("div",
|
|
3974
|
+
n.value ? (P(), b("div", qi, [(P(!0), b(p, null, R(a.value, (t) => (P(), b("div", {
|
|
3904
3975
|
key: t.key,
|
|
3905
3976
|
class: "flex items-start"
|
|
3906
3977
|
}, [
|
|
3907
|
-
x("span",
|
|
3908
|
-
r.value === "array" ? y("", !0) : (P(), b("span",
|
|
3978
|
+
x("span", Ji, H(r.value === "array" ? "" : `"${t.key}"`), 1),
|
|
3979
|
+
r.value === "array" ? y("", !0) : (P(), b("span", Yi, ":")),
|
|
3909
3980
|
t.value !== null && typeof t.value == "object" ? (P(), v(m, {
|
|
3910
3981
|
key: 1,
|
|
3911
3982
|
data: t.value,
|
|
@@ -3922,21 +3993,21 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3922
3993
|
class: k(l(t.value))
|
|
3923
3994
|
}, H(u(t.value)), 3))
|
|
3924
3995
|
]))), 128))])) : y("", !0),
|
|
3925
|
-
n.value ? (P(), b("span",
|
|
3996
|
+
n.value ? (P(), b("span", Xi, H(c.value), 1)) : y("", !0)
|
|
3926
3997
|
], 64)) : (P(), b("span", {
|
|
3927
3998
|
key: 1,
|
|
3928
3999
|
class: k(l(e.data))
|
|
3929
4000
|
}, H(u(e.data)), 3))], 2);
|
|
3930
4001
|
};
|
|
3931
4002
|
}
|
|
3932
|
-
}),
|
|
4003
|
+
}), Qi = { class: "flex gap-4 overflow-x-auto pb-2" }, $i = ["onDragover", "onDrop"], ea = { class: "flex items-center gap-2 px-4 py-3" }, ta = { class: "flex-1 text-title-small font-medium text-on-surface" }, na = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, ra = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, ia = [
|
|
3933
4004
|
"onDragstart",
|
|
3934
4005
|
"onDragover",
|
|
3935
4006
|
"onClick"
|
|
3936
|
-
],
|
|
4007
|
+
], aa = { class: "text-body-medium text-on-surface" }, oa = {
|
|
3937
4008
|
key: 0,
|
|
3938
4009
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
3939
|
-
},
|
|
4010
|
+
}, sa = /* @__PURE__ */ T({
|
|
3940
4011
|
__name: "MKanban",
|
|
3941
4012
|
props: { modelValue: {} },
|
|
3942
4013
|
emits: [
|
|
@@ -3995,20 +4066,20 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
3995
4066
|
function f() {
|
|
3996
4067
|
i.value = null, a.value = null, o.value = null;
|
|
3997
4068
|
}
|
|
3998
|
-
return (t, n) => (P(), b("div",
|
|
4069
|
+
return (t, n) => (P(), b("div", Qi, [(P(!0), b(p, null, R(e.modelValue, (e) => (P(), b("div", {
|
|
3999
4070
|
key: e.id,
|
|
4000
4071
|
class: k(["flex w-72 shrink-0 flex-col rounded-xl bg-surface-container-low", a.value === e.id && i.value ? "ring-2 ring-primary ring-inset" : ""]),
|
|
4001
4072
|
onDragover: (t) => l(t, e.id),
|
|
4002
4073
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
4003
4074
|
onDrop: (t) => d(t, e.id)
|
|
4004
|
-
}, [x("div",
|
|
4075
|
+
}, [x("div", ea, [
|
|
4005
4076
|
e.color ? (P(), b("div", {
|
|
4006
4077
|
key: 0,
|
|
4007
4078
|
class: k(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
4008
4079
|
}, null, 2)) : y("", !0),
|
|
4009
|
-
x("h3",
|
|
4010
|
-
x("span",
|
|
4011
|
-
]), x("div",
|
|
4080
|
+
x("h3", ta, H(e.title), 1),
|
|
4081
|
+
x("span", na, H(e.cards.length), 1)
|
|
4082
|
+
]), x("div", ra, [(P(!0), b(p, null, R(e.cards, (n, s) => (P(), b("div", {
|
|
4012
4083
|
key: n.id,
|
|
4013
4084
|
draggable: "true",
|
|
4014
4085
|
class: k(["cursor-grab rounded-lg bg-surface p-3 shadow-elevation-1 transition-all duration-150 active:cursor-grabbing", [i.value?.cardId === n.id ? "opacity-30" : "hover:shadow-elevation-2", o.value === s && a.value === e.id && i.value ? "border-t-2 border-primary" : ""]]),
|
|
@@ -4022,9 +4093,9 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4022
4093
|
}, [z(t.$slots, "card", {
|
|
4023
4094
|
card: n,
|
|
4024
4095
|
column: e
|
|
4025
|
-
}, () => [x("p",
|
|
4096
|
+
}, () => [x("p", aa, H(n.id), 1)])], 42, ia))), 128)), e.cards.length === 0 ? (P(), b("div", oa, [...n[1] ||= [x("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : y("", !0)])], 42, $i))), 128))]));
|
|
4026
4097
|
}
|
|
4027
|
-
}),
|
|
4098
|
+
}), ca = /* @__PURE__ */ T({
|
|
4028
4099
|
__name: "MList",
|
|
4029
4100
|
props: {
|
|
4030
4101
|
dense: {
|
|
@@ -4064,10 +4135,10 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4064
4135
|
class: k(i.value)
|
|
4065
4136
|
}, [z(e.$slots, "default")], 2));
|
|
4066
4137
|
}
|
|
4067
|
-
}),
|
|
4138
|
+
}), la = ["checked", "disabled"], ua = {
|
|
4068
4139
|
key: 0,
|
|
4069
4140
|
class: "text-body-large text-on-surface"
|
|
4070
|
-
},
|
|
4141
|
+
}, da = /* @__PURE__ */ T({
|
|
4071
4142
|
__name: "MSwitch",
|
|
4072
4143
|
props: {
|
|
4073
4144
|
modelValue: { type: Boolean },
|
|
@@ -4089,7 +4160,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4089
4160
|
checked: e.modelValue,
|
|
4090
4161
|
disabled: e.disabled,
|
|
4091
4162
|
onChange: n[0] ||= (t) => r("update:modelValue", !e.modelValue)
|
|
4092
|
-
}, null, 40,
|
|
4163
|
+
}, null, 40, la), x("span", {
|
|
4093
4164
|
class: k(["absolute left-1 top-1/2 flex h-6 w-6 items-center justify-center rounded-full will-change-transform", e.modelValue ? "bg-on-primary shadow-sm" : "bg-outline"]),
|
|
4094
4165
|
style: A(i.value)
|
|
4095
4166
|
}, [w(h, {
|
|
@@ -4107,21 +4178,21 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4107
4178
|
class: "text-primary"
|
|
4108
4179
|
})) : y("", !0)]),
|
|
4109
4180
|
_: 1
|
|
4110
|
-
})], 6)], 2), e.label ? (P(), b("span",
|
|
4181
|
+
})], 6)], 2), e.label ? (P(), b("span", ua, H(e.label), 1)) : y("", !0)], 2));
|
|
4111
4182
|
}
|
|
4112
|
-
}),
|
|
4183
|
+
}), fa = {
|
|
4113
4184
|
key: 0,
|
|
4114
4185
|
role: "listitem"
|
|
4115
|
-
},
|
|
4186
|
+
}, pa = { class: "min-w-0 flex-1" }, ma = { class: "truncate text-body-large text-on-surface" }, ha = {
|
|
4116
4187
|
key: 0,
|
|
4117
4188
|
class: "mli-expand-grid"
|
|
4118
|
-
},
|
|
4189
|
+
}, ga = { class: "mli-expand-body" }, _a = ["src"], va = { class: "min-w-0 flex-1" }, ya = { class: "truncate text-body-large text-on-surface" }, ba = {
|
|
4119
4190
|
key: 1,
|
|
4120
4191
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
4121
|
-
},
|
|
4192
|
+
}, xa = {
|
|
4122
4193
|
key: 1,
|
|
4123
4194
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
4124
|
-
},
|
|
4195
|
+
}, Sa = /* @__PURE__ */ T({
|
|
4125
4196
|
__name: "MListItem",
|
|
4126
4197
|
props: {
|
|
4127
4198
|
title: {},
|
|
@@ -4194,7 +4265,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4194
4265
|
function N() {
|
|
4195
4266
|
r("update:trailingValue", !n.trailingValue);
|
|
4196
4267
|
}
|
|
4197
|
-
return (t, n) => e.expandable ? (P(), b("li",
|
|
4268
|
+
return (t, n) => e.expandable ? (P(), b("li", fa, [x("div", {
|
|
4198
4269
|
class: k(T.value),
|
|
4199
4270
|
onClick: M
|
|
4200
4271
|
}, [
|
|
@@ -4204,7 +4275,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4204
4275
|
size: 24,
|
|
4205
4276
|
class: "shrink-0 text-on-surface-variant"
|
|
4206
4277
|
}, null, 8, ["name"])) : y("", !0)]),
|
|
4207
|
-
x("div",
|
|
4278
|
+
x("div", pa, [z(t.$slots, "default", {}, () => [x("p", ma, H(e.title), 1), e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
4208
4279
|
key: 0,
|
|
4209
4280
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
4210
4281
|
}, H(e.subtitle), 3)) : y("", !0)])]),
|
|
@@ -4214,7 +4285,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4214
4285
|
class: "shrink-0 text-on-surface-variant"
|
|
4215
4286
|
}, null, 8, ["name"])
|
|
4216
4287
|
], 2), w(h, { name: "mli-expand" }, {
|
|
4217
|
-
default: X(() => [o.value ? (P(), b("div",
|
|
4288
|
+
default: X(() => [o.value ? (P(), b("div", ha, [x("div", ga, [z(t.$slots, "children")])])) : y("", !0)]),
|
|
4218
4289
|
_: 3
|
|
4219
4290
|
})])) : (P(), v(V(O.value), D({
|
|
4220
4291
|
key: 1,
|
|
@@ -4249,29 +4320,29 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4249
4320
|
src: e.image,
|
|
4250
4321
|
alt: "",
|
|
4251
4322
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
4252
|
-
}, null, 8,
|
|
4323
|
+
}, null, 8, _a)) : f.value === "checkbox" ? (P(), v(Rt, {
|
|
4253
4324
|
key: 4,
|
|
4254
4325
|
"model-value": u.value,
|
|
4255
4326
|
class: "shrink-0"
|
|
4256
4327
|
}, null, 8, ["model-value"])) : y("", !0)]),
|
|
4257
|
-
x("div",
|
|
4258
|
-
x("p",
|
|
4328
|
+
x("div", va, [z(t.$slots, "default", {}, () => [
|
|
4329
|
+
x("p", ya, H(e.title), 1),
|
|
4259
4330
|
e.subtitle && c.value >= 2 ? (P(), b("p", {
|
|
4260
4331
|
key: 0,
|
|
4261
4332
|
class: k(["text-body-medium text-on-surface-variant", c.value === 2 && "truncate"])
|
|
4262
4333
|
}, H(e.subtitle), 3)) : y("", !0),
|
|
4263
|
-
e.description && c.value >= 3 ? (P(), b("p",
|
|
4334
|
+
e.description && c.value >= 3 ? (P(), b("p", ba, H(e.description), 1)) : y("", !0)
|
|
4264
4335
|
])]),
|
|
4265
4336
|
z(t.$slots, "trailing", {}, () => [p.value === "icon" ? (P(), v(d, {
|
|
4266
4337
|
key: 0,
|
|
4267
4338
|
name: e.trailingIcon,
|
|
4268
4339
|
size: 24,
|
|
4269
4340
|
class: "shrink-0 text-on-surface-variant"
|
|
4270
|
-
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span",
|
|
4341
|
+
}, null, 8, ["name"])) : p.value === "text" ? (P(), b("span", xa, H(e.trailingText), 1)) : p.value === "switch" ? (P(), v(da, {
|
|
4271
4342
|
key: 2,
|
|
4272
4343
|
"model-value": !!e.trailingValue,
|
|
4273
4344
|
"onUpdate:modelValue": N
|
|
4274
|
-
}, null, 8, ["model-value"])) : p.value === "checkbox" ? (P(), v(
|
|
4345
|
+
}, null, 8, ["model-value"])) : p.value === "checkbox" ? (P(), v(Rt, {
|
|
4275
4346
|
key: 3,
|
|
4276
4347
|
"model-value": !!e.trailingValue,
|
|
4277
4348
|
"onUpdate:modelValue": N
|
|
@@ -4280,7 +4351,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4280
4351
|
_: 3
|
|
4281
4352
|
}, 16, ["class"]));
|
|
4282
4353
|
}
|
|
4283
|
-
}),
|
|
4354
|
+
}), Ca = /* @__PURE__ */ T({
|
|
4284
4355
|
__name: "MListSubheader",
|
|
4285
4356
|
props: { inset: {
|
|
4286
4357
|
type: Boolean,
|
|
@@ -4292,16 +4363,16 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4292
4363
|
role: "presentation"
|
|
4293
4364
|
}, [z(t.$slots, "default")], 2));
|
|
4294
4365
|
}
|
|
4295
|
-
}),
|
|
4366
|
+
}), wa = {
|
|
4296
4367
|
key: 0,
|
|
4297
4368
|
class: "text-body-large text-on-surface-variant"
|
|
4298
|
-
},
|
|
4369
|
+
}, Ta = {
|
|
4299
4370
|
key: 1,
|
|
4300
4371
|
class: "relative"
|
|
4301
|
-
},
|
|
4372
|
+
}, Ea = {
|
|
4302
4373
|
key: 0,
|
|
4303
4374
|
class: "text-body-medium text-on-surface-variant"
|
|
4304
|
-
},
|
|
4375
|
+
}, Da = /* @__PURE__ */ T({
|
|
4305
4376
|
__name: "MLoadingOverlay",
|
|
4306
4377
|
props: {
|
|
4307
4378
|
visible: { type: Boolean },
|
|
@@ -4334,11 +4405,11 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4334
4405
|
size: e.spinnerSize,
|
|
4335
4406
|
class: "text-primary"
|
|
4336
4407
|
}, null, 8, ["size"]),
|
|
4337
|
-
e.text ? (P(), b("p",
|
|
4408
|
+
e.text ? (P(), b("p", wa, H(e.text), 1)) : y("", !0),
|
|
4338
4409
|
z(t.$slots, "default")
|
|
4339
4410
|
], 2)) : y("", !0)]),
|
|
4340
4411
|
_: 3
|
|
4341
|
-
})])) : (P(), b("div",
|
|
4412
|
+
})])) : (P(), b("div", Ta, [z(t.$slots, "content"), w(h, {
|
|
4342
4413
|
"enter-active-class": "transition-opacity duration-200",
|
|
4343
4414
|
"enter-from-class": "opacity-0",
|
|
4344
4415
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -4352,13 +4423,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4352
4423
|
size: e.spinnerSize,
|
|
4353
4424
|
class: "text-primary"
|
|
4354
4425
|
}, null, 8, ["size"]),
|
|
4355
|
-
e.text ? (P(), b("p",
|
|
4426
|
+
e.text ? (P(), b("p", Ea, H(e.text), 1)) : y("", !0),
|
|
4356
4427
|
z(t.$slots, "default")
|
|
4357
4428
|
], 2)) : y("", !0)]),
|
|
4358
4429
|
_: 3
|
|
4359
4430
|
})]));
|
|
4360
4431
|
}
|
|
4361
|
-
}),
|
|
4432
|
+
}), Oa = /* @__PURE__ */ T({
|
|
4362
4433
|
__name: "MMasonry",
|
|
4363
4434
|
props: {
|
|
4364
4435
|
cols: { default: 2 },
|
|
@@ -4380,7 +4451,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4380
4451
|
let e = window.innerWidth;
|
|
4381
4452
|
return t.lgCols && e >= 1024 ? t.lgCols : t.mdCols && e >= 768 ? t.mdCols : t.smCols && e >= 640 ? t.smCols : t.cols;
|
|
4382
4453
|
}
|
|
4383
|
-
let o =
|
|
4454
|
+
let o = ee();
|
|
4384
4455
|
function s() {
|
|
4385
4456
|
i.value = a();
|
|
4386
4457
|
let e = r.value;
|
|
@@ -4409,21 +4480,21 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4409
4480
|
class: "relative w-full"
|
|
4410
4481
|
}, [z(e.$slots, "default")], 512));
|
|
4411
4482
|
}
|
|
4412
|
-
}),
|
|
4483
|
+
}), ka = { class: "flex flex-col gap-1" }, Aa = [
|
|
4413
4484
|
"id",
|
|
4414
4485
|
"value",
|
|
4415
4486
|
"disabled",
|
|
4416
4487
|
"required"
|
|
4417
|
-
],
|
|
4488
|
+
], ja = ["for"], Ma = {
|
|
4418
4489
|
key: 0,
|
|
4419
4490
|
class: "text-error"
|
|
4420
|
-
},
|
|
4491
|
+
}, Na = {
|
|
4421
4492
|
key: 0,
|
|
4422
4493
|
class: "px-4 text-body-small text-error"
|
|
4423
|
-
},
|
|
4494
|
+
}, Pa = {
|
|
4424
4495
|
key: 1,
|
|
4425
4496
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4426
|
-
},
|
|
4497
|
+
}, Fa = /* @__PURE__ */ T({
|
|
4427
4498
|
__name: "MMaskField",
|
|
4428
4499
|
props: {
|
|
4429
4500
|
modelValue: {},
|
|
@@ -4518,7 +4589,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4518
4589
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
4519
4590
|
].join(" ");
|
|
4520
4591
|
});
|
|
4521
|
-
return (t, n) => (P(), b("div",
|
|
4592
|
+
return (t, n) => (P(), b("div", ka, [x("div", {
|
|
4522
4593
|
ref_key: "fieldBgEl",
|
|
4523
4594
|
ref: s,
|
|
4524
4595
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4544,11 +4615,11 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4544
4615
|
class: k(S.value),
|
|
4545
4616
|
onInput: h,
|
|
4546
4617
|
onKeydown: g
|
|
4547
|
-
}, null, 42,
|
|
4618
|
+
}, null, 42, Aa),
|
|
4548
4619
|
x("label", {
|
|
4549
4620
|
for: U(o),
|
|
4550
4621
|
class: k(T.value)
|
|
4551
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4622
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", Ma, "\xA0*")) : y("", !0)], 10, ja),
|
|
4552
4623
|
f.value ? (P(), b("button", {
|
|
4553
4624
|
key: 1,
|
|
4554
4625
|
type: "button",
|
|
@@ -4558,28 +4629,28 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4558
4629
|
name: "close",
|
|
4559
4630
|
size: 18
|
|
4560
4631
|
})])) : y("", !0)
|
|
4561
|
-
], 6), e.error ? (P(), b("p",
|
|
4632
|
+
], 6), e.error ? (P(), b("p", Na, H(e.error), 1)) : e.hint ? (P(), b("p", Pa, H(e.hint), 1)) : y("", !0)]));
|
|
4562
4633
|
}
|
|
4563
|
-
}),
|
|
4634
|
+
}), Ia = { class: "flex flex-col gap-1" }, La = ["onClick"], Ra = ["title"], za = [
|
|
4564
4635
|
"id",
|
|
4565
4636
|
"value",
|
|
4566
4637
|
"placeholder",
|
|
4567
4638
|
"disabled",
|
|
4568
4639
|
"aria-expanded",
|
|
4569
4640
|
"aria-disabled"
|
|
4570
|
-
],
|
|
4641
|
+
], Ba = ["for"], Va = {
|
|
4571
4642
|
key: 0,
|
|
4572
4643
|
class: "text-error"
|
|
4573
|
-
},
|
|
4644
|
+
}, Ha = { class: "pointer-events-none absolute right-2 top-4" }, Ua = {
|
|
4574
4645
|
key: 0,
|
|
4575
4646
|
class: "px-4 text-body-small text-error"
|
|
4576
|
-
},
|
|
4647
|
+
}, Wa = {
|
|
4577
4648
|
key: 1,
|
|
4578
4649
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4579
|
-
},
|
|
4650
|
+
}, Ga = { class: "flex flex-col py-1" }, Ka = ["onMousedown"], qa = { class: "text-body-large text-on-surface" }, Ja = {
|
|
4580
4651
|
key: 0,
|
|
4581
4652
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
4582
|
-
},
|
|
4653
|
+
}, Ya = /* @__PURE__ */ T({
|
|
4583
4654
|
__name: "MMultiAutocomplete",
|
|
4584
4655
|
props: {
|
|
4585
4656
|
modelValue: { default: () => [] },
|
|
@@ -4639,8 +4710,8 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4639
4710
|
label: i.options.find((t) => D(t.value, e))?.label ?? String(e)
|
|
4640
4711
|
}));
|
|
4641
4712
|
return V.value ? e : e.slice(0, i.maxChips);
|
|
4642
|
-
}),
|
|
4643
|
-
function
|
|
4713
|
+
}), ee = _(() => i.modelValue.slice(i.maxChips).map((e) => i.options.find((t) => D(t.value, e))?.label ?? String(e)).join(", "));
|
|
4714
|
+
function K(e) {
|
|
4644
4715
|
let t = i.modelValue;
|
|
4645
4716
|
j(t, e) ? a("update:modelValue", t.filter((t) => !D(t, e))) : a("update:modelValue", [...t, e]), l.value = "", O(() => g.value?.focus());
|
|
4646
4717
|
}
|
|
@@ -4708,7 +4779,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4708
4779
|
else if (e.key === "Enter") {
|
|
4709
4780
|
e.preventDefault();
|
|
4710
4781
|
let n = t[u.value >= 0 ? u.value : 0];
|
|
4711
|
-
n && (
|
|
4782
|
+
n && (K(n.value), u.value = -1);
|
|
4712
4783
|
}
|
|
4713
4784
|
}
|
|
4714
4785
|
function se() {
|
|
@@ -4751,7 +4822,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4751
4822
|
c.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
4752
4823
|
].join(" ");
|
|
4753
4824
|
});
|
|
4754
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
4825
|
+
return (t, n) => (P(), b(p, null, [x("div", Ia, [x("div", {
|
|
4755
4826
|
ref_key: "fieldEl",
|
|
4756
4827
|
ref: f,
|
|
4757
4828
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -4778,13 +4849,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4778
4849
|
}, [w(d, {
|
|
4779
4850
|
name: "close",
|
|
4780
4851
|
size: 12
|
|
4781
|
-
})], 8,
|
|
4852
|
+
})], 8, La)]))), 128)),
|
|
4782
4853
|
B.value > 0 && !V.value ? (P(), b("span", {
|
|
4783
4854
|
key: 0,
|
|
4784
|
-
title:
|
|
4855
|
+
title: ee.value,
|
|
4785
4856
|
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",
|
|
4786
4857
|
onClick: n[0] ||= Q((e) => V.value = !0, ["stop"])
|
|
4787
|
-
}, " +" + H(B.value), 9,
|
|
4858
|
+
}, " +" + H(B.value), 9, Ra)) : y("", !0),
|
|
4788
4859
|
V.value && e.modelValue.length > e.maxChips ? (P(), b("span", {
|
|
4789
4860
|
key: 1,
|
|
4790
4861
|
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",
|
|
@@ -4810,11 +4881,11 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4810
4881
|
onBlur: $,
|
|
4811
4882
|
onInput: re,
|
|
4812
4883
|
onKeydown: oe
|
|
4813
|
-
}, null, 40,
|
|
4884
|
+
}, null, 40, za)], 2),
|
|
4814
4885
|
x("label", {
|
|
4815
4886
|
for: U(s),
|
|
4816
4887
|
class: k(de.value)
|
|
4817
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
4888
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", Va, "\xA0*")) : y("", !0)], 10, Ba),
|
|
4818
4889
|
e.clearable && F.value && !e.disabled ? (P(), b("button", {
|
|
4819
4890
|
key: 1,
|
|
4820
4891
|
type: "button",
|
|
@@ -4826,12 +4897,12 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4826
4897
|
name: "close",
|
|
4827
4898
|
size: 18
|
|
4828
4899
|
})])) : y("", !0),
|
|
4829
|
-
x("div",
|
|
4900
|
+
x("div", Ha, [w(d, {
|
|
4830
4901
|
name: c.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
4831
4902
|
size: 24,
|
|
4832
4903
|
class: "text-on-surface-variant transition-transform duration-200"
|
|
4833
4904
|
}, null, 8, ["name"])])
|
|
4834
|
-
], 6), e.error ? (P(), b("p",
|
|
4905
|
+
], 6), e.error ? (P(), b("p", Ua, H(e.error), 1)) : e.hint ? (P(), b("p", Wa, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
4835
4906
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
4836
4907
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
4837
4908
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -4845,38 +4916,38 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4845
4916
|
ref: T,
|
|
4846
4917
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
4847
4918
|
style: A(E.value)
|
|
4848
|
-
}, [x("div",
|
|
4919
|
+
}, [x("div", Ga, [(P(!0), b(p, null, R(I.value, (t, n) => (P(), b("label", {
|
|
4849
4920
|
key: n,
|
|
4850
4921
|
"data-option": "",
|
|
4851
4922
|
class: k(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", [t.disabled ? "cursor-not-allowed opacity-38" : "", ce(t) === u.value && !t.disabled ? "bg-on-surface/12" : ""]]),
|
|
4852
|
-
onMousedown: Q((e) => !t.disabled &&
|
|
4853
|
-
}, [w(
|
|
4923
|
+
onMousedown: Q((e) => !t.disabled && K(t.value), ["prevent"])
|
|
4924
|
+
}, [w(Rt, {
|
|
4854
4925
|
"model-value": j(e.modelValue, t.value),
|
|
4855
4926
|
disabled: t.disabled
|
|
4856
|
-
}, null, 8, ["model-value", "disabled"]), x("span",
|
|
4927
|
+
}, null, 8, ["model-value", "disabled"]), x("span", qa, H(t.label), 1)], 42, Ka))), 128)), I.value.length ? y("", !0) : (P(), b("p", Ja, H(z.value), 1))])], 4)) : y("", !0)]),
|
|
4857
4928
|
_: 1
|
|
4858
4929
|
})]))], 64));
|
|
4859
4930
|
}
|
|
4860
|
-
}),
|
|
4931
|
+
}), Xa = { class: "flex flex-col gap-1" }, Za = [
|
|
4861
4932
|
"id",
|
|
4862
4933
|
"tabindex",
|
|
4863
4934
|
"aria-expanded"
|
|
4864
|
-
],
|
|
4935
|
+
], Qa = ["onClick"], $a = ["title"], eo = {
|
|
4865
4936
|
key: 1,
|
|
4866
4937
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
4867
|
-
},
|
|
4938
|
+
}, to = {
|
|
4868
4939
|
key: 0,
|
|
4869
4940
|
class: "text-error"
|
|
4870
|
-
},
|
|
4941
|
+
}, no = { class: "pointer-events-none absolute right-2 top-4" }, ro = {
|
|
4871
4942
|
key: 0,
|
|
4872
4943
|
class: "px-4 text-body-small text-error"
|
|
4873
|
-
},
|
|
4944
|
+
}, io = {
|
|
4874
4945
|
key: 1,
|
|
4875
4946
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
4876
|
-
},
|
|
4947
|
+
}, ao = {
|
|
4877
4948
|
key: 0,
|
|
4878
4949
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
4879
|
-
},
|
|
4950
|
+
}, oo = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, so = ["placeholder"], co = { class: "flex flex-col py-1" }, lo = { class: "text-body-large text-on-surface" }, uo = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, fo = /* @__PURE__ */ T({
|
|
4880
4951
|
__name: "MMultiSelect",
|
|
4881
4952
|
props: {
|
|
4882
4953
|
modelValue: { default: () => [] },
|
|
@@ -4942,7 +5013,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
4942
5013
|
}));
|
|
4943
5014
|
return B.value ? e : e.slice(0, a.maxChips);
|
|
4944
5015
|
}), W = _(() => a.modelValue.slice(a.maxChips).map((e) => a.options.find((t) => E(t.value, e))?.label ?? String(e)).join(", "));
|
|
4945
|
-
function
|
|
5016
|
+
function ee(e) {
|
|
4946
5017
|
let t = a.modelValue;
|
|
4947
5018
|
D(t, e) ? o("update:modelValue", t.filter((t) => !E(t, e))) : o("update:modelValue", [...t, e]);
|
|
4948
5019
|
}
|
|
@@ -5007,7 +5078,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5007
5078
|
c.value ? a.error ? "text-error" : "text-primary" : a.error ? "text-error" : "text-on-surface-variant"
|
|
5008
5079
|
].join(" ");
|
|
5009
5080
|
});
|
|
5010
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
5081
|
+
return (t, n) => (P(), b(p, null, [x("div", Xa, [x("div", {
|
|
5011
5082
|
ref_key: "fieldEl",
|
|
5012
5083
|
ref: u,
|
|
5013
5084
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -5044,13 +5115,13 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5044
5115
|
}, [w(d, {
|
|
5045
5116
|
name: "close",
|
|
5046
5117
|
size: 12
|
|
5047
|
-
})], 8,
|
|
5118
|
+
})], 8, Qa)]))), 128)),
|
|
5048
5119
|
I.value > 0 && !B.value ? (P(), b("span", {
|
|
5049
5120
|
key: 0,
|
|
5050
5121
|
title: W.value,
|
|
5051
5122
|
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",
|
|
5052
5123
|
onClick: n[0] ||= Q((e) => B.value = !0, ["stop"])
|
|
5053
|
-
}, " +" + H(I.value), 9,
|
|
5124
|
+
}, " +" + H(I.value), 9, $a)) : y("", !0),
|
|
5054
5125
|
B.value && e.modelValue.length > e.maxChips ? (P(), b("span", {
|
|
5055
5126
|
key: 1,
|
|
5056
5127
|
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",
|
|
@@ -5059,8 +5130,8 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5059
5130
|
name: "unfold_less",
|
|
5060
5131
|
size: 14
|
|
5061
5132
|
})])) : y("", !0)
|
|
5062
|
-
], 64)) : c.value ? y("", !0) : (P(), b("span",
|
|
5063
|
-
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
5133
|
+
], 64)) : c.value ? y("", !0) : (P(), b("span", eo, H(e.placeholder), 1))], 42, Za),
|
|
5134
|
+
x("label", { class: k(ae.value) }, [C(H(e.label), 1), e.required ? (P(), b("span", to, "\xA0*")) : y("", !0)], 2),
|
|
5064
5135
|
e.clearable && j.value && !e.disabled ? (P(), b("button", {
|
|
5065
5136
|
key: 1,
|
|
5066
5137
|
type: "button",
|
|
@@ -5072,12 +5143,12 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5072
5143
|
name: "close",
|
|
5073
5144
|
size: 18
|
|
5074
5145
|
})])) : y("", !0),
|
|
5075
|
-
x("div",
|
|
5146
|
+
x("div", no, [w(d, {
|
|
5076
5147
|
name: c.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
5077
5148
|
size: 24,
|
|
5078
5149
|
class: "text-on-surface-variant"
|
|
5079
5150
|
}, null, 8, ["name"])])
|
|
5080
|
-
], 6), e.error ? (P(), b("p",
|
|
5151
|
+
], 6), e.error ? (P(), b("p", ro, H(e.error), 1)) : e.hint ? (P(), b("p", io, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
5081
5152
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
5082
5153
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
5083
5154
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -5091,7 +5162,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5091
5162
|
ref: g,
|
|
5092
5163
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
5093
5164
|
style: A(T.value)
|
|
5094
|
-
}, [e.searchable ? (P(), b("div",
|
|
5165
|
+
}, [e.searchable ? (P(), b("div", ao, [x("div", oo, [w(d, {
|
|
5095
5166
|
name: "search",
|
|
5096
5167
|
size: 16,
|
|
5097
5168
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -5102,22 +5173,22 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5102
5173
|
type: "text",
|
|
5103
5174
|
placeholder: e.searchPlaceholder ?? U(i).search,
|
|
5104
5175
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
5105
|
-
}, null, 8,
|
|
5176
|
+
}, null, 8, so), [[K, l.value]])])])) : y("", !0), x("div", co, [(P(!0), b(p, null, R(F.value, (t, n) => (P(), b("label", {
|
|
5106
5177
|
key: n,
|
|
5107
5178
|
class: k(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
5108
|
-
}, [w(
|
|
5179
|
+
}, [w(Rt, {
|
|
5109
5180
|
"model-value": D(e.modelValue, t.value),
|
|
5110
5181
|
disabled: t.disabled,
|
|
5111
|
-
"onUpdate:modelValue": (e) => !t.disabled &&
|
|
5182
|
+
"onUpdate:modelValue": (e) => !t.disabled && ee(t.value)
|
|
5112
5183
|
}, null, 8, [
|
|
5113
5184
|
"model-value",
|
|
5114
5185
|
"disabled",
|
|
5115
5186
|
"onUpdate:modelValue"
|
|
5116
|
-
]), x("span",
|
|
5187
|
+
]), x("span", lo, H(t.label), 1)], 2))), 128)), F.value.length === 0 ? z(t.$slots, "no-results", { key: 0 }, () => [x("p", uo, H(e.noResultsText ?? U(i).noResults), 1)]) : y("", !0)])], 4)) : y("", !0)]),
|
|
5117
5188
|
_: 3
|
|
5118
5189
|
})]))], 64));
|
|
5119
5190
|
}
|
|
5120
|
-
}),
|
|
5191
|
+
}), po = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, mo = ["onClick"], ho = /* @__PURE__ */ T({
|
|
5121
5192
|
__name: "MNavigationBar",
|
|
5122
5193
|
props: {
|
|
5123
5194
|
modelValue: {},
|
|
@@ -5125,7 +5196,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5125
5196
|
},
|
|
5126
5197
|
emits: ["update:modelValue"],
|
|
5127
5198
|
setup(e) {
|
|
5128
|
-
return (t, n) => (P(), b("nav",
|
|
5199
|
+
return (t, n) => (P(), b("nav", po, [(P(!0), b(p, null, R(e.items, (n) => (P(), b("button", {
|
|
5129
5200
|
key: n.value,
|
|
5130
5201
|
type: "button",
|
|
5131
5202
|
class: k(["group flex flex-1 cursor-pointer flex-col items-center justify-center gap-1 self-stretch transition-colors focus-visible:outline-none", n.value === e.modelValue ? "text-on-secondary-container" : "text-on-surface-variant"]),
|
|
@@ -5152,9 +5223,9 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5152
5223
|
size: 24
|
|
5153
5224
|
}, null, 8, ["name"])]),
|
|
5154
5225
|
_: 2
|
|
5155
|
-
}, 1032, ["count"]))], 2), x("span", { class: k(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, H(n.label), 3)], 10,
|
|
5226
|
+
}, 1032, ["count"]))], 2), x("span", { class: k(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, H(n.label), 3)], 10, mo))), 128))]));
|
|
5156
5227
|
}
|
|
5157
|
-
}),
|
|
5228
|
+
}), go = { class: "flex flex-col gap-1" }, _o = [
|
|
5158
5229
|
"id",
|
|
5159
5230
|
"value",
|
|
5160
5231
|
"disabled",
|
|
@@ -5162,19 +5233,19 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5162
5233
|
"min",
|
|
5163
5234
|
"max",
|
|
5164
5235
|
"step"
|
|
5165
|
-
],
|
|
5236
|
+
], vo = ["for"], yo = {
|
|
5166
5237
|
key: 0,
|
|
5167
5238
|
class: "text-error"
|
|
5168
|
-
},
|
|
5239
|
+
}, bo = {
|
|
5169
5240
|
key: 1,
|
|
5170
5241
|
class: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5"
|
|
5171
|
-
},
|
|
5242
|
+
}, xo = {
|
|
5172
5243
|
key: 0,
|
|
5173
5244
|
class: "px-4 text-body-small text-error"
|
|
5174
|
-
},
|
|
5245
|
+
}, So = {
|
|
5175
5246
|
key: 1,
|
|
5176
5247
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
5177
|
-
},
|
|
5248
|
+
}, Co = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
5178
5249
|
__name: "MNumberField",
|
|
5179
5250
|
props: {
|
|
5180
5251
|
modelValue: { default: null },
|
|
@@ -5257,7 +5328,7 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5257
5328
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
5258
5329
|
].join(" ");
|
|
5259
5330
|
});
|
|
5260
|
-
return (t, r) => (P(), b("div",
|
|
5331
|
+
return (t, r) => (P(), b("div", go, [x("div", {
|
|
5261
5332
|
ref_key: "fieldBgEl",
|
|
5262
5333
|
ref: s,
|
|
5263
5334
|
class: k(["relative", n.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -5283,12 +5354,12 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5283
5354
|
class: k(h.value),
|
|
5284
5355
|
onInput: u,
|
|
5285
5356
|
onKeydown: m
|
|
5286
|
-
}, null, 42,
|
|
5357
|
+
}, null, 42, _o),
|
|
5287
5358
|
x("label", {
|
|
5288
5359
|
for: U(o),
|
|
5289
5360
|
class: k(g.value)
|
|
5290
|
-
}, [C(H(n.label), 1), n.required ? (P(), b("span",
|
|
5291
|
-
n.stepper ? (P(), b("div",
|
|
5361
|
+
}, [C(H(n.label), 1), n.required ? (P(), b("span", yo, "\xA0*")) : y("", !0)], 10, vo),
|
|
5362
|
+
n.stepper ? (P(), b("div", bo, [w(e, {
|
|
5292
5363
|
icon: "remove",
|
|
5293
5364
|
label: "Decrease",
|
|
5294
5365
|
size: 32,
|
|
@@ -5301,9 +5372,9 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5301
5372
|
disabled: n.disabled || n.max !== void 0 && (n.modelValue ?? 0) >= n.max,
|
|
5302
5373
|
onClick: f
|
|
5303
5374
|
}, null, 8, ["disabled"])])) : y("", !0)
|
|
5304
|
-
], 6), n.error ? (P(), b("p",
|
|
5375
|
+
], 6), n.error ? (P(), b("p", xo, H(n.error), 1)) : n.hint ? (P(), b("p", So, H(n.hint), 1)) : y("", !0)]));
|
|
5305
5376
|
}
|
|
5306
|
-
}), [["__scopeId", "data-v-8b2327d2"]]),
|
|
5377
|
+
}), [["__scopeId", "data-v-8b2327d2"]]), wo = T({
|
|
5307
5378
|
name: "MDrawerItemList",
|
|
5308
5379
|
components: { MIcon: d },
|
|
5309
5380
|
props: {
|
|
@@ -5378,8 +5449,8 @@ var Pr = ["aria-label", "disabled"], Fr = { class: "leading-none" }, Ir = /* @__
|
|
|
5378
5449
|
}).onfinish = t;
|
|
5379
5450
|
}
|
|
5380
5451
|
}
|
|
5381
|
-
}),
|
|
5382
|
-
function
|
|
5452
|
+
}), To = { key: 0 };
|
|
5453
|
+
function Eo(e, t, n, r, i, a) {
|
|
5383
5454
|
let o = B("MIcon"), s = B("MDrawerItemList");
|
|
5384
5455
|
return P(!0), b(p, null, R(e.items, (t) => (P(), b(p, { key: t.value }, [(P(), v(V(e.itemTag(t)), {
|
|
5385
5456
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -5419,7 +5490,7 @@ function Co(e, t, n, r, i, a) {
|
|
|
5419
5490
|
onEnter: e.onEnter,
|
|
5420
5491
|
onLeave: e.onLeave
|
|
5421
5492
|
}, {
|
|
5422
|
-
default: X(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div",
|
|
5493
|
+
default: X(() => [t.children?.length && e.openItems[t.value] ? (P(), b("div", To, [w(s, {
|
|
5423
5494
|
items: t.children,
|
|
5424
5495
|
selected: e.selected,
|
|
5425
5496
|
depth: e.depth + 1
|
|
@@ -5431,52 +5502,52 @@ function Co(e, t, n, r, i, a) {
|
|
|
5431
5502
|
_: 2
|
|
5432
5503
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
5433
5504
|
}
|
|
5434
|
-
var
|
|
5505
|
+
var Do = /*#__PURE__*/ f(wo, [["render", Eo]]), Oo = {
|
|
5435
5506
|
key: 0,
|
|
5436
5507
|
class: "shrink-0"
|
|
5437
|
-
},
|
|
5508
|
+
}, ko = {
|
|
5438
5509
|
key: 1,
|
|
5439
5510
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
5440
|
-
},
|
|
5511
|
+
}, Ao = { class: "text-title-small font-medium text-on-surface-variant" }, jo = { class: "flex-1 overflow-y-auto px-3 py-2" }, Mo = {
|
|
5441
5512
|
key: 0,
|
|
5442
5513
|
class: "my-1 border-t border-outline-variant"
|
|
5443
|
-
},
|
|
5514
|
+
}, No = ["onClick"], Po = { class: "flex-1 text-left text-title-small font-medium" }, Fo = {
|
|
5444
5515
|
key: 2,
|
|
5445
5516
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
5446
|
-
},
|
|
5517
|
+
}, Io = {
|
|
5447
5518
|
key: 0,
|
|
5448
5519
|
class: "nd-section-grid"
|
|
5449
|
-
},
|
|
5520
|
+
}, Lo = { class: "nd-section-body" }, Ro = {
|
|
5450
5521
|
key: 2,
|
|
5451
5522
|
class: "text-label-medium text-on-surface-variant"
|
|
5452
|
-
},
|
|
5523
|
+
}, zo = { key: 0 }, Bo = {
|
|
5453
5524
|
key: 0,
|
|
5454
5525
|
class: "nd-toggle shrink-0 border-b border-outline-variant"
|
|
5455
|
-
},
|
|
5526
|
+
}, Vo = { class: "nd-toggle-inner" }, Ho = {
|
|
5456
5527
|
key: 1,
|
|
5457
5528
|
class: "shrink-0"
|
|
5458
|
-
},
|
|
5529
|
+
}, Uo = {
|
|
5459
5530
|
key: 2,
|
|
5460
5531
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
5461
|
-
},
|
|
5532
|
+
}, Wo = { class: "px-5 pt-6 pb-2" }, Go = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Ko = { class: "flex flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, qo = {
|
|
5462
5533
|
key: 0,
|
|
5463
5534
|
class: "my-1 border-t border-outline-variant"
|
|
5464
|
-
},
|
|
5535
|
+
}, Jo = ["title", "onClick"], Yo = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, Xo = {
|
|
5465
5536
|
key: 2,
|
|
5466
5537
|
class: "nd-collapse-h overflow-hidden"
|
|
5467
|
-
},
|
|
5538
|
+
}, Zo = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, Qo = {
|
|
5468
5539
|
key: 0,
|
|
5469
5540
|
class: "nd-section-grid"
|
|
5470
|
-
},
|
|
5541
|
+
}, $o = { class: "nd-section-body" }, es = {
|
|
5471
5542
|
key: 2,
|
|
5472
5543
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
5473
|
-
},
|
|
5544
|
+
}, ts = {
|
|
5474
5545
|
key: 0,
|
|
5475
5546
|
class: "nd-children-divider"
|
|
5476
|
-
},
|
|
5547
|
+
}, ns = { key: 0 }, rs = {
|
|
5477
5548
|
key: 1,
|
|
5478
5549
|
class: "nd-children-divider"
|
|
5479
|
-
},
|
|
5550
|
+
}, is = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
5480
5551
|
__name: "MNavigationDrawer",
|
|
5481
5552
|
props: {
|
|
5482
5553
|
modelValue: { type: Boolean },
|
|
@@ -5575,8 +5646,8 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5575
5646
|
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
5576
5647
|
]),
|
|
5577
5648
|
style: A(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
5578
|
-
}, [t.$slots.header ? (P(), b("div",
|
|
5579
|
-
n > 0 ? (P(), b("div",
|
|
5649
|
+
}, [t.$slots.header ? (P(), b("div", Oo, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", ko, [x("h2", Ao, H(e.title), 1)])) : y("", !0), x("div", jo, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5650
|
+
n > 0 ? (P(), b("div", Mo)) : y("", !0),
|
|
5580
5651
|
t.title && t.collapsible ? (P(), b("button", {
|
|
5581
5652
|
key: 1,
|
|
5582
5653
|
type: "button",
|
|
@@ -5589,15 +5660,15 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5589
5660
|
size: 24,
|
|
5590
5661
|
class: "shrink-0"
|
|
5591
5662
|
}, null, 8, ["name"])) : y("", !0),
|
|
5592
|
-
x("span",
|
|
5663
|
+
x("span", Po, H(t.title), 1),
|
|
5593
5664
|
w(d, {
|
|
5594
5665
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
5595
5666
|
size: 18,
|
|
5596
5667
|
class: "shrink-0"
|
|
5597
5668
|
}, null, 8, ["name"])
|
|
5598
|
-
], 8,
|
|
5669
|
+
], 8, No)) : t.title ? (P(), b("p", Fo, H(t.title), 1)) : y("", !0),
|
|
5599
5670
|
w(h, { name: "nd-section" }, {
|
|
5600
|
-
default: X(() => [!t.collapsible || s(t, n) ? (P(), b("div",
|
|
5671
|
+
default: X(() => [!t.collapsible || s(t, n) ? (P(), b("div", Io, [x("div", Lo, [(P(!0), b(p, null, R(t.items, (n) => (P(), b(p, { key: n.value }, [(P(), v(V(j(n)), {
|
|
5601
5672
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
5602
5673
|
type: n.to ? void 0 : "button",
|
|
5603
5674
|
class: k(["flex w-full items-center gap-3 rounded-full py-2.5 text-left transition-colors focus-visible:outline-none", [t.collapsible ? "pl-8 pr-3" : "px-4", n.disabled ? "cursor-not-allowed opacity-[0.38]" : n.value === e.selected ? "bg-secondary-container text-on-secondary-container" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]]),
|
|
@@ -5616,7 +5687,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5616
5687
|
name: l(n) ? "expand_less" : "expand_more",
|
|
5617
5688
|
size: 18,
|
|
5618
5689
|
class: "shrink-0 text-on-surface-variant"
|
|
5619
|
-
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span",
|
|
5690
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", Ro, H(n.badge), 1))
|
|
5620
5691
|
]),
|
|
5621
5692
|
_: 2
|
|
5622
5693
|
}, 1032, [
|
|
@@ -5631,7 +5702,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5631
5702
|
onEnter: T,
|
|
5632
5703
|
onLeave: E
|
|
5633
5704
|
}, {
|
|
5634
|
-
default: X(() => [n.children?.length && l(n) ? (P(), b("div",
|
|
5705
|
+
default: X(() => [n.children?.length && l(n) ? (P(), b("div", zo, [w(Do, {
|
|
5635
5706
|
items: n.children,
|
|
5636
5707
|
selected: e.selected
|
|
5637
5708
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
@@ -5649,10 +5720,10 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5649
5720
|
"--nd-width": e.width ?? "18rem"
|
|
5650
5721
|
})
|
|
5651
5722
|
}, [
|
|
5652
|
-
t.$slots.toggle ? (P(), b("div",
|
|
5653
|
-
t.$slots.header ? (P(), b("div",
|
|
5654
|
-
x("div",
|
|
5655
|
-
n > 0 ? (P(), b("div",
|
|
5723
|
+
t.$slots.toggle ? (P(), b("div", Bo, [x("div", Vo, [z(t.$slots, "toggle", {}, void 0, !0)])])) : y("", !0),
|
|
5724
|
+
t.$slots.header ? (P(), b("div", Ho, [z(t.$slots, "header", {}, void 0, !0)])) : e.title ? (P(), b("div", Uo, [x("div", Wo, [x("h2", Go, H(e.title), 1)])])) : y("", !0),
|
|
5725
|
+
x("div", Ko, [(P(!0), b(p, null, R(e.sections, (t, n) => (P(), b(p, { key: n }, [
|
|
5726
|
+
n > 0 ? (P(), b("div", qo)) : y("", !0),
|
|
5656
5727
|
t.title && t.collapsible ? (P(), b("button", {
|
|
5657
5728
|
key: 1,
|
|
5658
5729
|
type: "button",
|
|
@@ -5666,15 +5737,15 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5666
5737
|
size: 24,
|
|
5667
5738
|
class: "shrink-0"
|
|
5668
5739
|
}, null, 8, ["name"])) : y("", !0),
|
|
5669
|
-
x("span",
|
|
5740
|
+
x("span", Yo, H(t.title), 1),
|
|
5670
5741
|
w(d, {
|
|
5671
5742
|
name: s(t, n) ? "expand_less" : "expand_more",
|
|
5672
5743
|
size: 18,
|
|
5673
5744
|
class: "nd-label shrink-0"
|
|
5674
5745
|
}, null, 8, ["name"])
|
|
5675
|
-
], 8,
|
|
5746
|
+
], 8, Jo)) : t.title ? (P(), b("div", Xo, [x("p", Zo, H(t.title), 1)])) : y("", !0),
|
|
5676
5747
|
w(h, { name: "nd-section" }, {
|
|
5677
|
-
default: X(() => [!t.collapsible || s(t, n) ? (P(), b("div",
|
|
5748
|
+
default: X(() => [!t.collapsible || s(t, n) ? (P(), b("div", Qo, [x("div", $o, [(P(!0), b(p, null, R(t.items, (n) => (P(), b(p, { key: n.value }, [
|
|
5678
5749
|
(P(), v(V(j(n)), {
|
|
5679
5750
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
5680
5751
|
type: n.to ? void 0 : "button",
|
|
@@ -5696,7 +5767,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5696
5767
|
name: l(n) ? "expand_less" : "expand_more",
|
|
5697
5768
|
size: 18,
|
|
5698
5769
|
class: "nd-label shrink-0 text-on-surface-variant"
|
|
5699
|
-
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span",
|
|
5770
|
+
}, null, 8, ["name"])) : n.badge == null ? y("", !0) : (P(), b("span", es, H(n.badge), 1))
|
|
5700
5771
|
]),
|
|
5701
5772
|
_: 2
|
|
5702
5773
|
}, 1032, [
|
|
@@ -5707,29 +5778,29 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5707
5778
|
"disabled",
|
|
5708
5779
|
"onClick"
|
|
5709
5780
|
])),
|
|
5710
|
-
n.children?.length && l(n) ? (P(), b("div",
|
|
5781
|
+
n.children?.length && l(n) ? (P(), b("div", ts)) : y("", !0),
|
|
5711
5782
|
w(h, {
|
|
5712
5783
|
css: !1,
|
|
5713
5784
|
onEnter: T,
|
|
5714
5785
|
onLeave: E
|
|
5715
5786
|
}, {
|
|
5716
|
-
default: X(() => [n.children?.length && l(n) ? (P(), b("div",
|
|
5787
|
+
default: X(() => [n.children?.length && l(n) ? (P(), b("div", ns, [w(Do, {
|
|
5717
5788
|
items: n.children,
|
|
5718
5789
|
selected: e.selected
|
|
5719
5790
|
}, null, 8, ["items", "selected"])])) : y("", !0)]),
|
|
5720
5791
|
_: 2
|
|
5721
5792
|
}, 1024),
|
|
5722
|
-
n.children?.length && l(n) ? (P(), b("div",
|
|
5793
|
+
n.children?.length && l(n) ? (P(), b("div", rs)) : y("", !0)
|
|
5723
5794
|
], 64))), 128))])])) : y("", !0)]),
|
|
5724
5795
|
_: 2
|
|
5725
5796
|
}, 1024)
|
|
5726
5797
|
], 64))), 128)), z(t.$slots, "default", {}, void 0, !0)])
|
|
5727
5798
|
], 6));
|
|
5728
5799
|
}
|
|
5729
|
-
}), [["__scopeId", "data-v-ec337590"]]),
|
|
5800
|
+
}), [["__scopeId", "data-v-ec337590"]]), as = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, os = {
|
|
5730
5801
|
key: 0,
|
|
5731
5802
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
5732
|
-
},
|
|
5803
|
+
}, ss = ["disabled", "onClick"], cs = /* @__PURE__ */ T({
|
|
5733
5804
|
__name: "MNavigationRail",
|
|
5734
5805
|
props: {
|
|
5735
5806
|
modelValue: {},
|
|
@@ -5738,7 +5809,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5738
5809
|
},
|
|
5739
5810
|
emits: ["update:modelValue"],
|
|
5740
5811
|
setup(e) {
|
|
5741
|
-
return (t, n) => (P(), b("nav",
|
|
5812
|
+
return (t, n) => (P(), b("nav", as, [t.$slots.fab ? (P(), b("div", os, [z(t.$slots, "fab")])) : y("", !0), x("div", { class: k(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
5742
5813
|
"justify-start": e.alignment === "top",
|
|
5743
5814
|
"justify-center": e.alignment === "center",
|
|
5744
5815
|
"justify-end": e.alignment === "bottom"
|
|
@@ -5770,9 +5841,9 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5770
5841
|
size: 24
|
|
5771
5842
|
}, null, 8, ["name"])]),
|
|
5772
5843
|
_: 2
|
|
5773
|
-
}, 1032, ["count"]))], 2), x("span", { class: k(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, H(n.label), 3)], 10,
|
|
5844
|
+
}, 1032, ["count"]))], 2), x("span", { class: k(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, H(n.label), 3)], 10, ss))), 128))], 2)]));
|
|
5774
5845
|
}
|
|
5775
|
-
}),
|
|
5846
|
+
}), ls = { class: "relative h-full w-full" }, us = /* @__PURE__ */ T({
|
|
5776
5847
|
__name: "MOverlay",
|
|
5777
5848
|
props: {
|
|
5778
5849
|
modelValue: {
|
|
@@ -5805,17 +5876,17 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5805
5876
|
key: 0,
|
|
5806
5877
|
class: "absolute inset-0 bg-black/50",
|
|
5807
5878
|
onClick: a
|
|
5808
|
-
})) : y("", !0), x("div",
|
|
5879
|
+
})) : y("", !0), x("div", ls, [z(t.$slots, "default")])], 4)) : y("", !0)]),
|
|
5809
5880
|
_: 3
|
|
5810
5881
|
})]));
|
|
5811
5882
|
}
|
|
5812
|
-
}),
|
|
5883
|
+
}), ds = { class: "flex flex-col gap-1" }, fs = {
|
|
5813
5884
|
key: 0,
|
|
5814
5885
|
class: "text-label-small text-on-surface-variant"
|
|
5815
|
-
},
|
|
5886
|
+
}, ps = ["aria-valuenow"], ms = ["aria-valuenow"], hs = ["viewBox"], gs = ["d"], _s = {
|
|
5816
5887
|
key: 1,
|
|
5817
5888
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
5818
|
-
},
|
|
5889
|
+
}, vs = ["viewBox"], ys = ["d"], bs = 20, xs = 2.5, Ss = 4, Cs = 8, ws = 80, Ts = 1, Es = /* @__PURE__ */ T({
|
|
5819
5890
|
__name: "MProgressBar",
|
|
5820
5891
|
props: {
|
|
5821
5892
|
value: {},
|
|
@@ -5846,15 +5917,15 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5846
5917
|
track: "bg-error-container",
|
|
5847
5918
|
text: "text-error"
|
|
5848
5919
|
}
|
|
5849
|
-
}, a =
|
|
5920
|
+
}, a = bs * ws, o = (() => {
|
|
5850
5921
|
let e = "";
|
|
5851
|
-
for (let t = 0; t <= a; t +=
|
|
5852
|
-
let n =
|
|
5922
|
+
for (let t = 0; t <= a; t += Ts) {
|
|
5923
|
+
let n = Ss - xs * Math.sin(t / bs * Math.PI * 2);
|
|
5853
5924
|
e += (t === 0 ? "M" : "L") + t + "," + n.toFixed(2) + " ";
|
|
5854
5925
|
}
|
|
5855
5926
|
return e.trim();
|
|
5856
5927
|
})();
|
|
5857
|
-
return (t, s) => (P(), b("div",
|
|
5928
|
+
return (t, s) => (P(), b("div", ds, [e.label ? (P(), b("span", fs, H(e.label), 1)) : y("", !0), e.variant === "linear" ? (P(), b("div", {
|
|
5858
5929
|
key: 1,
|
|
5859
5930
|
class: k(["relative h-1 w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
5860
5931
|
role: "progressbar",
|
|
@@ -5868,20 +5939,20 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5868
5939
|
key: 0,
|
|
5869
5940
|
class: k(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
5870
5941
|
style: A({ width: `${r.value}%` })
|
|
5871
|
-
}, null, 6))], 10,
|
|
5942
|
+
}, null, 6))], 10, ps)) : (P(), b("div", {
|
|
5872
5943
|
key: 2,
|
|
5873
5944
|
class: "relative h-2 w-full overflow-visible",
|
|
5874
5945
|
role: "progressbar",
|
|
5875
5946
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
5876
5947
|
"aria-valuemin": "0",
|
|
5877
5948
|
"aria-valuemax": "100"
|
|
5878
|
-
}, [n.value ? (P(), b("div",
|
|
5949
|
+
}, [n.value ? (P(), b("div", _s, [x("div", {
|
|
5879
5950
|
class: k(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
5880
5951
|
style: A({ width: `${a}px` })
|
|
5881
5952
|
}, [(P(), b("svg", {
|
|
5882
5953
|
width: a,
|
|
5883
|
-
height:
|
|
5884
|
-
viewBox: `0 0 ${a} ${
|
|
5954
|
+
height: Cs,
|
|
5955
|
+
viewBox: `0 0 ${a} ${Cs}`,
|
|
5885
5956
|
class: "h-full",
|
|
5886
5957
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5887
5958
|
}, [x("path", {
|
|
@@ -5890,7 +5961,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5890
5961
|
stroke: "currentColor",
|
|
5891
5962
|
"stroke-width": "3",
|
|
5892
5963
|
"stroke-linecap": "round"
|
|
5893
|
-
}, null, 8,
|
|
5964
|
+
}, null, 8, ys)], 8, vs))], 6)])) : (P(), b(p, { key: 0 }, [
|
|
5894
5965
|
x("div", {
|
|
5895
5966
|
class: "absolute inset-0 overflow-hidden",
|
|
5896
5967
|
style: A({
|
|
@@ -5902,8 +5973,8 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5902
5973
|
style: A({ width: `${a}px` })
|
|
5903
5974
|
}, [(P(), b("svg", {
|
|
5904
5975
|
width: a,
|
|
5905
|
-
height:
|
|
5906
|
-
viewBox: `0 0 ${a} ${
|
|
5976
|
+
height: Cs,
|
|
5977
|
+
viewBox: `0 0 ${a} ${Cs}`,
|
|
5907
5978
|
class: "h-full",
|
|
5908
5979
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5909
5980
|
}, [x("path", {
|
|
@@ -5912,7 +5983,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5912
5983
|
stroke: "currentColor",
|
|
5913
5984
|
"stroke-width": "3",
|
|
5914
5985
|
"stroke-linecap": "round"
|
|
5915
|
-
}, null, 8,
|
|
5986
|
+
}, null, 8, gs)], 8, hs))], 6)], 4),
|
|
5916
5987
|
x("div", {
|
|
5917
5988
|
class: k(["absolute inset-y-0 right-0 flex items-center", i[e.color].track]),
|
|
5918
5989
|
style: A([{
|
|
@@ -5935,16 +6006,16 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5935
6006
|
height: "4px"
|
|
5936
6007
|
}
|
|
5937
6008
|
}, null, 2)
|
|
5938
|
-
], 64))], 8,
|
|
6009
|
+
], 64))], 8, ms))]));
|
|
5939
6010
|
}
|
|
5940
|
-
}),
|
|
6011
|
+
}), Ds = ["for"], Os = { class: "relative flex h-5 w-5 shrink-0" }, ks = [
|
|
5941
6012
|
"id",
|
|
5942
6013
|
"checked",
|
|
5943
6014
|
"disabled"
|
|
5944
|
-
],
|
|
6015
|
+
], As = {
|
|
5945
6016
|
key: 0,
|
|
5946
6017
|
class: "text-body-large text-on-surface"
|
|
5947
|
-
},
|
|
6018
|
+
}, js = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
5948
6019
|
__name: "MRadio",
|
|
5949
6020
|
props: {
|
|
5950
6021
|
modelValue: {},
|
|
@@ -5967,14 +6038,14 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5967
6038
|
return (t, n) => (P(), b("label", {
|
|
5968
6039
|
for: U(i),
|
|
5969
6040
|
class: k(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
5970
|
-
}, [x("span",
|
|
6041
|
+
}, [x("span", Os, [x("input", {
|
|
5971
6042
|
id: U(i),
|
|
5972
6043
|
type: "radio",
|
|
5973
6044
|
class: "sr-only",
|
|
5974
6045
|
checked: a.value,
|
|
5975
6046
|
disabled: e.disabled,
|
|
5976
6047
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
5977
|
-
}, null, 40,
|
|
6048
|
+
}, null, 40, ks), (P(), b("svg", {
|
|
5978
6049
|
viewBox: "0 0 20 20",
|
|
5979
6050
|
class: k(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
5980
6051
|
"aria-hidden": "true"
|
|
@@ -5991,12 +6062,12 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
5991
6062
|
cy: "10",
|
|
5992
6063
|
r: "4.5",
|
|
5993
6064
|
fill: "currentColor"
|
|
5994
|
-
}, null, 2)], 2))]), e.label ? (P(), b("span",
|
|
6065
|
+
}, null, 2)], 2))]), e.label ? (P(), b("span", As, H(e.label), 1)) : y("", !0)], 10, Ds));
|
|
5995
6066
|
}
|
|
5996
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
6067
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), Ms = { class: "flex flex-col gap-2" }, Ns = {
|
|
5997
6068
|
key: 0,
|
|
5998
6069
|
class: "text-label-large text-on-surface-variant"
|
|
5999
|
-
},
|
|
6070
|
+
}, Ps = /* @__PURE__ */ T({
|
|
6000
6071
|
__name: "MRadioGroup",
|
|
6001
6072
|
props: {
|
|
6002
6073
|
modelValue: {},
|
|
@@ -6012,7 +6083,7 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
6012
6083
|
emits: ["update:modelValue"],
|
|
6013
6084
|
setup(e, { emit: t }) {
|
|
6014
6085
|
let n = t;
|
|
6015
|
-
return (t, r) => (P(), b("div",
|
|
6086
|
+
return (t, r) => (P(), b("div", Ms, [e.label ? (P(), b("span", Ns, H(e.label), 1)) : y("", !0), x("div", { class: k(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(P(!0), b(p, null, R(e.options, (t) => (P(), v(js, {
|
|
6016
6087
|
key: String(t.value),
|
|
6017
6088
|
"model-value": e.modelValue,
|
|
6018
6089
|
value: t.value,
|
|
@@ -6028,11 +6099,11 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
6028
6099
|
"disabled"
|
|
6029
6100
|
]))), 128))], 2)]));
|
|
6030
6101
|
}
|
|
6031
|
-
}),
|
|
6102
|
+
}), Fs = [
|
|
6032
6103
|
"disabled",
|
|
6033
6104
|
"onClick",
|
|
6034
6105
|
"onMousemove"
|
|
6035
|
-
],
|
|
6106
|
+
], Is = /* @__PURE__ */ T({
|
|
6036
6107
|
__name: "MRating",
|
|
6037
6108
|
props: {
|
|
6038
6109
|
modelValue: {},
|
|
@@ -6109,13 +6180,13 @@ var wo = /*#__PURE__*/ f(xo, [["render", Co]]), To = {
|
|
|
6109
6180
|
name: e.icon,
|
|
6110
6181
|
size: e.size,
|
|
6111
6182
|
class: "text-on-surface-variant/40"
|
|
6112
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
6183
|
+
}, null, 8, ["name", "size"]))], 46, Fs))), 128))], 34));
|
|
6113
6184
|
}
|
|
6114
|
-
}),
|
|
6115
|
-
function
|
|
6116
|
-
return P(), b("div",
|
|
6185
|
+
}), Ls = {}, Rs = { class: "relative" };
|
|
6186
|
+
function zs(e, t) {
|
|
6187
|
+
return P(), b("div", Rs, [z(e.$slots, "default")]);
|
|
6117
6188
|
}
|
|
6118
|
-
var
|
|
6189
|
+
var Bs = /*#__PURE__*/ f(Ls, [["render", zs]]), Vs = /* @__PURE__ */ T({
|
|
6119
6190
|
__name: "MResponsive",
|
|
6120
6191
|
props: {
|
|
6121
6192
|
show: {},
|
|
@@ -6147,19 +6218,19 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6147
6218
|
_: 3
|
|
6148
6219
|
}, 8, ["class"]));
|
|
6149
6220
|
}
|
|
6150
|
-
}),
|
|
6221
|
+
}), Hs = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, Us = {
|
|
6151
6222
|
key: 0,
|
|
6152
6223
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
6153
|
-
},
|
|
6224
|
+
}, Ws = { class: "text-headline-small font-medium text-on-surface" }, Gs = {
|
|
6154
6225
|
key: 1,
|
|
6155
6226
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
6156
|
-
},
|
|
6227
|
+
}, Ks = {
|
|
6157
6228
|
key: 2,
|
|
6158
6229
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
6159
|
-
},
|
|
6230
|
+
}, qs = {
|
|
6160
6231
|
key: 3,
|
|
6161
6232
|
class: "mt-2"
|
|
6162
|
-
},
|
|
6233
|
+
}, Js = /* @__PURE__ */ T({
|
|
6163
6234
|
__name: "MResult",
|
|
6164
6235
|
props: {
|
|
6165
6236
|
status: {},
|
|
@@ -6227,19 +6298,19 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6227
6298
|
};
|
|
6228
6299
|
}
|
|
6229
6300
|
}), r = _(() => t.status === "404" || t.status === "403" || t.status === "500" ? t.status : null);
|
|
6230
|
-
return (t, i) => (P(), b("div",
|
|
6231
|
-
r.value ? (P(), b("span",
|
|
6301
|
+
return (t, i) => (P(), b("div", Hs, [
|
|
6302
|
+
r.value ? (P(), b("span", Us, H(r.value), 1)) : y("", !0),
|
|
6232
6303
|
x("div", { class: k(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [w(d, {
|
|
6233
6304
|
name: n.value.icon,
|
|
6234
6305
|
size: 40
|
|
6235
6306
|
}, null, 8, ["name"])], 2),
|
|
6236
|
-
x("h2",
|
|
6237
|
-
e.description ?? n.value.defaultDesc ? (P(), b("p",
|
|
6238
|
-
t.$slots.actions ? (P(), b("div",
|
|
6239
|
-
t.$slots.default ? (P(), b("div",
|
|
6307
|
+
x("h2", Ws, H(e.title ?? n.value.defaultTitle), 1),
|
|
6308
|
+
e.description ?? n.value.defaultDesc ? (P(), b("p", Gs, H(e.description ?? n.value.defaultDesc), 1)) : y("", !0),
|
|
6309
|
+
t.$slots.actions ? (P(), b("div", Ks, [z(t.$slots, "actions")])) : y("", !0),
|
|
6310
|
+
t.$slots.default ? (P(), b("div", qs, [z(t.$slots, "default")])) : y("", !0)
|
|
6240
6311
|
]));
|
|
6241
6312
|
}
|
|
6242
|
-
}),
|
|
6313
|
+
}), Ys = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Xs = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Zs = { class: "flex items-center gap-1" }, Qs = { class: "text-title-medium font-medium capitalize text-on-surface" }, $s = { class: "flex rounded-full bg-surface-container-high p-0.5" }, ec = ["onClick"], tc = { class: "overflow-auto" }, nc = { class: "w-full border-collapse" }, rc = { class: "text-label-small uppercase text-on-surface-variant" }, ic = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, ac = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, oc = ["onClick"], sc = ["onClick"], cc = { class: "truncate text-label-small font-medium" }, lc = { class: "truncate text-label-small opacity-70" }, uc = /* @__PURE__ */ T({
|
|
6243
6314
|
__name: "MScheduler",
|
|
6244
6315
|
props: {
|
|
6245
6316
|
events: { default: () => [] },
|
|
@@ -6320,8 +6391,8 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6320
6391
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
6321
6392
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
6322
6393
|
};
|
|
6323
|
-
return (n, r) => (P(), b("div",
|
|
6324
|
-
x("div",
|
|
6394
|
+
return (n, r) => (P(), b("div", Ys, [x("div", Xs, [
|
|
6395
|
+
x("div", Zs, [
|
|
6325
6396
|
w(e, {
|
|
6326
6397
|
icon: "chevron_left",
|
|
6327
6398
|
label: t.prevLabel ?? U(i).previous,
|
|
@@ -6340,17 +6411,17 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6340
6411
|
onClick: T
|
|
6341
6412
|
}, H(t.todayLabel ?? U(i).today), 1)
|
|
6342
6413
|
]),
|
|
6343
|
-
x("h3",
|
|
6344
|
-
x("div",
|
|
6414
|
+
x("h3", Qs, H(S.value), 1),
|
|
6415
|
+
x("div", $s, [(P(), b(p, null, R(["day", "week"], (e) => x("button", {
|
|
6345
6416
|
key: e,
|
|
6346
6417
|
type: "button",
|
|
6347
6418
|
class: k(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", c.value === e ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
6348
6419
|
onClick: (t) => c.value = e
|
|
6349
|
-
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11,
|
|
6350
|
-
]), x("div",
|
|
6420
|
+
}, H(e === "day" ? t.dayViewLabel ?? U(i).dayView : t.weekViewLabel ?? U(i).weekView), 11, ec)), 64))])
|
|
6421
|
+
]), x("div", tc, [x("table", nc, [x("thead", null, [x("tr", null, [r[2] ||= x("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (P(!0), b(p, null, R(f.value, (e) => (P(), b("th", {
|
|
6351
6422
|
key: h(e),
|
|
6352
6423
|
class: k(["sticky top-0 z-10 border-b border-r border-outline-variant bg-surface-container px-2 py-2 text-center last:border-r-0", h(e) === U(m) ? "bg-primary-container/30" : ""])
|
|
6353
|
-
}, [x("div",
|
|
6424
|
+
}, [x("div", rc, H(U(g).format(e)), 1), x("div", { class: k(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", h(e) === U(m) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, H(U(v).format(e)), 3)], 2))), 128))])]), x("tbody", null, [(P(!0), b(p, null, R(l.value, (e) => (P(), b("tr", { key: e }, [x("td", ic, [x("span", ac, H(String(e).padStart(2, "0")) + ":00 ", 1)]), (P(!0), b(p, null, R(f.value, (t) => (P(), b("td", {
|
|
6354
6425
|
key: h(t),
|
|
6355
6426
|
class: k(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", h(t) === U(m) ? "bg-primary-container/5" : ""]),
|
|
6356
6427
|
onClick: (n) => o("slotClick", {
|
|
@@ -6363,9 +6434,9 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6363
6434
|
class: k(["absolute inset-x-0.5 top-0.5 z-5 cursor-pointer overflow-hidden rounded border-l-[3px] px-2 py-1 text-left transition-opacity hover:opacity-90", M[t.color ?? "primary"]]),
|
|
6364
6435
|
style: A({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
6365
6436
|
onClick: Q((e) => o("eventClick", t), ["stop"])
|
|
6366
|
-
}, [x("p",
|
|
6437
|
+
}, [x("p", cc, H(t.title), 1), x("p", lc, H(j(t)), 1)], 14, sc)) : y("", !0)], 64))), 128))], 10, oc))), 128))]))), 128))])])])]));
|
|
6367
6438
|
}
|
|
6368
|
-
}),
|
|
6439
|
+
}), dc = /* @__PURE__ */ T({
|
|
6369
6440
|
__name: "MScrollable",
|
|
6370
6441
|
props: {
|
|
6371
6442
|
direction: { default: "vertical" },
|
|
@@ -6386,13 +6457,13 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6386
6457
|
style: A(i.value)
|
|
6387
6458
|
}, [z(e.$slots, "default")], 6));
|
|
6388
6459
|
}
|
|
6389
|
-
}),
|
|
6460
|
+
}), fc = { key: 0 }, pc = { class: "flex items-start justify-between" }, mc = {
|
|
6390
6461
|
key: 0,
|
|
6391
6462
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
6392
|
-
},
|
|
6463
|
+
}, hc = {
|
|
6393
6464
|
key: 0,
|
|
6394
6465
|
class: "mt-4 h-px bg-outline-variant"
|
|
6395
|
-
},
|
|
6466
|
+
}, gc = /* @__PURE__ */ T({
|
|
6396
6467
|
__name: "MSection",
|
|
6397
6468
|
props: {
|
|
6398
6469
|
title: {},
|
|
@@ -6429,19 +6500,19 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6429
6500
|
"label-medium": "text-label-medium",
|
|
6430
6501
|
"label-small": "text-label-small"
|
|
6431
6502
|
}, i = _(() => n[t.gap]), a = _(() => [r[t.titleVariant], "font-medium"]);
|
|
6432
|
-
return (t, n) => (P(), b("section", { class: k(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (P(), b("div",
|
|
6503
|
+
return (t, n) => (P(), b("section", { class: k(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (P(), b("div", fc, [x("div", pc, [x("div", null, [z(t.$slots, "title", {}, () => [e.title ? (P(), b("p", {
|
|
6433
6504
|
key: 0,
|
|
6434
6505
|
class: k(a.value)
|
|
6435
|
-
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p",
|
|
6506
|
+
}, H(e.title), 3)) : y("", !0)]), z(t.$slots, "subtitle", {}, () => [e.subtitle ? (P(), b("p", mc, H(e.subtitle), 1)) : y("", !0)])]), z(t.$slots, "actions")]), e.divider ? (P(), b("div", hc)) : y("", !0)])) : y("", !0), z(t.$slots, "default")], 2));
|
|
6436
6507
|
}
|
|
6437
|
-
}),
|
|
6508
|
+
}), _c = {
|
|
6438
6509
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
6439
6510
|
role: "group"
|
|
6440
|
-
},
|
|
6511
|
+
}, vc = [
|
|
6441
6512
|
"disabled",
|
|
6442
6513
|
"aria-pressed",
|
|
6443
6514
|
"onClick"
|
|
6444
|
-
],
|
|
6515
|
+
], yc = /* @__PURE__ */ T({
|
|
6445
6516
|
__name: "MSegmentedButton",
|
|
6446
6517
|
props: {
|
|
6447
6518
|
modelValue: {},
|
|
@@ -6465,7 +6536,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6465
6536
|
i >= 0 ? r.splice(i, 1) : r.push(e.value), n("update:modelValue", r);
|
|
6466
6537
|
} else n("update:modelValue", e.value);
|
|
6467
6538
|
}
|
|
6468
|
-
return (t, n) => (P(), b("div",
|
|
6539
|
+
return (t, n) => (P(), b("div", _c, [(P(!0), b(p, null, R(e.options, (t, n) => (P(), b("button", {
|
|
6469
6540
|
key: t.value,
|
|
6470
6541
|
type: "button",
|
|
6471
6542
|
class: k(["relative inline-flex items-center justify-center gap-2 text-label-large font-medium transition-[background-color,color] duration-150 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", [
|
|
@@ -6486,32 +6557,32 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6486
6557
|
key: 1,
|
|
6487
6558
|
name: t.icon,
|
|
6488
6559
|
size: 18
|
|
6489
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
6560
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, vc))), 128))]));
|
|
6490
6561
|
}
|
|
6491
|
-
}),
|
|
6562
|
+
}), bc = { class: "flex flex-col gap-1" }, xc = [
|
|
6492
6563
|
"id",
|
|
6493
6564
|
"tabindex",
|
|
6494
6565
|
"aria-expanded",
|
|
6495
6566
|
"aria-disabled"
|
|
6496
|
-
],
|
|
6567
|
+
], Sc = {
|
|
6497
6568
|
key: 0,
|
|
6498
6569
|
class: "text-on-surface"
|
|
6499
|
-
},
|
|
6570
|
+
}, Cc = ["for"], wc = {
|
|
6500
6571
|
key: 0,
|
|
6501
6572
|
class: "text-error"
|
|
6502
|
-
},
|
|
6573
|
+
}, Tc = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 flex h-6 items-center" }, Ec = {
|
|
6503
6574
|
key: 0,
|
|
6504
6575
|
class: "px-4 text-body-small text-error"
|
|
6505
|
-
},
|
|
6576
|
+
}, Dc = {
|
|
6506
6577
|
key: 1,
|
|
6507
6578
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6508
|
-
},
|
|
6579
|
+
}, Oc = ["onClick"], kc = {
|
|
6509
6580
|
key: 1,
|
|
6510
6581
|
class: "w-[18px] shrink-0"
|
|
6511
|
-
},
|
|
6582
|
+
}, Ac = {
|
|
6512
6583
|
key: 0,
|
|
6513
6584
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
6514
|
-
},
|
|
6585
|
+
}, jc = /* @__PURE__ */ T({
|
|
6515
6586
|
__name: "MSelect",
|
|
6516
6587
|
props: {
|
|
6517
6588
|
modelValue: { default: void 0 },
|
|
@@ -6622,7 +6693,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6622
6693
|
o.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"
|
|
6623
6694
|
].join(" ");
|
|
6624
6695
|
});
|
|
6625
|
-
return (t, n) => (P(), b(p, null, [x("div",
|
|
6696
|
+
return (t, n) => (P(), b(p, null, [x("div", bc, [x("div", {
|
|
6626
6697
|
ref_key: "fieldEl",
|
|
6627
6698
|
ref: s,
|
|
6628
6699
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6644,11 +6715,11 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6644
6715
|
class: k([I.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
6645
6716
|
onClick: E,
|
|
6646
6717
|
onKeydown: F
|
|
6647
|
-
}, [g.value ? (P(), b("span",
|
|
6718
|
+
}, [g.value ? (P(), b("span", Sc, H(S.value), 1)) : y("", !0)], 42, xc),
|
|
6648
6719
|
x("label", {
|
|
6649
6720
|
for: U(a),
|
|
6650
6721
|
class: k(B.value)
|
|
6651
|
-
}, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
6722
|
+
}, [C(H(e.label), 1), e.required ? (P(), b("span", wc, "\xA0*")) : y("", !0)], 10, Cc),
|
|
6652
6723
|
e.clearable && g.value && !e.disabled ? (P(), b("button", {
|
|
6653
6724
|
key: 1,
|
|
6654
6725
|
type: "button",
|
|
@@ -6660,12 +6731,12 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6660
6731
|
name: "close",
|
|
6661
6732
|
size: 18
|
|
6662
6733
|
})])) : y("", !0),
|
|
6663
|
-
x("div",
|
|
6734
|
+
x("div", Tc, [w(d, {
|
|
6664
6735
|
name: o.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
6665
6736
|
size: 24,
|
|
6666
6737
|
class: "text-on-surface-variant transition-transform duration-200"
|
|
6667
6738
|
}, null, 8, ["name"])])
|
|
6668
|
-
], 6), e.error ? (P(), b("p",
|
|
6739
|
+
], 6), e.error ? (P(), b("p", Ec, H(e.error), 1)) : e.hint ? (P(), b("p", Dc, H(e.hint), 1)) : y("", !0)]), (P(), v(m, { to: "body" }, [w(h, {
|
|
6669
6740
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6670
6741
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6671
6742
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6688,20 +6759,20 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6688
6759
|
name: "check",
|
|
6689
6760
|
size: 18,
|
|
6690
6761
|
class: "shrink-0 text-primary"
|
|
6691
|
-
})) : (P(), b("span",
|
|
6762
|
+
})) : (P(), b("span", kc)), C(" " + H(t.label), 1)], 10, Oc))), 128)), e.options.length ? y("", !0) : (P(), b("p", Ac, " Sin opciones "))], 4)) : y("", !0)]),
|
|
6692
6763
|
_: 1
|
|
6693
6764
|
})]))], 64));
|
|
6694
6765
|
}
|
|
6695
|
-
}),
|
|
6766
|
+
}), Mc = {
|
|
6696
6767
|
key: 0,
|
|
6697
6768
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
6698
|
-
},
|
|
6769
|
+
}, Nc = {
|
|
6699
6770
|
key: 0,
|
|
6700
6771
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
6701
|
-
},
|
|
6772
|
+
}, Pc = { class: "text-title-large text-on-surface" }, Fc = { class: "flex-1 overflow-y-auto px-6 py-4" }, Ic = {
|
|
6702
6773
|
key: 1,
|
|
6703
6774
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
6704
|
-
},
|
|
6775
|
+
}, Lc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6705
6776
|
__name: "MSideSheet",
|
|
6706
6777
|
props: {
|
|
6707
6778
|
modelValue: { type: Boolean },
|
|
@@ -6731,7 +6802,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6731
6802
|
leave: 280
|
|
6732
6803
|
}
|
|
6733
6804
|
}, {
|
|
6734
|
-
default: X(() => [e.modelValue ? (P(), b("div",
|
|
6805
|
+
default: X(() => [e.modelValue ? (P(), b("div", Mc, [x("div", {
|
|
6735
6806
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
6736
6807
|
onClick: r
|
|
6737
6808
|
}), x("aside", {
|
|
@@ -6744,7 +6815,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6744
6815
|
onPointermove: c,
|
|
6745
6816
|
onPointerup: l
|
|
6746
6817
|
}, null, 32),
|
|
6747
|
-
e.title || t.$slots.header ? (P(), b("div",
|
|
6818
|
+
e.title || t.$slots.header ? (P(), b("div", Nc, [z(t.$slots, "header", {}, () => [x("h2", Pc, H(e.title), 1)], !0), x("button", {
|
|
6748
6819
|
type: "button",
|
|
6749
6820
|
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",
|
|
6750
6821
|
onClick: r
|
|
@@ -6752,16 +6823,16 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6752
6823
|
name: "close",
|
|
6753
6824
|
size: 20
|
|
6754
6825
|
})])])) : y("", !0),
|
|
6755
|
-
x("div",
|
|
6756
|
-
t.$slots.actions ? (P(), b("div",
|
|
6826
|
+
x("div", Fc, [z(t.$slots, "default", {}, void 0, !0)]),
|
|
6827
|
+
t.$slots.actions ? (P(), b("div", Ic, [z(t.$slots, "actions", {}, void 0, !0)])) : y("", !0)
|
|
6757
6828
|
], 6)])) : y("", !0)]),
|
|
6758
6829
|
_: 3
|
|
6759
6830
|
})]));
|
|
6760
6831
|
}
|
|
6761
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
6832
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), Rc = {
|
|
6762
6833
|
key: 0,
|
|
6763
6834
|
class: "flex flex-col gap-2.5"
|
|
6764
|
-
},
|
|
6835
|
+
}, zc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6765
6836
|
__name: "MSkeleton",
|
|
6766
6837
|
props: {
|
|
6767
6838
|
variant: { default: "text" },
|
|
@@ -6771,7 +6842,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6771
6842
|
animation: { default: "pulse" }
|
|
6772
6843
|
},
|
|
6773
6844
|
setup(e) {
|
|
6774
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div",
|
|
6845
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (P(), b("div", Rc, [(P(!0), b(p, null, R(e.lines, (t) => (P(), b("div", {
|
|
6775
6846
|
key: t,
|
|
6776
6847
|
class: k(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
6777
6848
|
style: A({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -6784,21 +6855,21 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6784
6855
|
})
|
|
6785
6856
|
}, null, 6));
|
|
6786
6857
|
}
|
|
6787
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
6858
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), Bc = { class: "flex flex-col gap-1 select-none" }, Vc = {
|
|
6788
6859
|
key: 0,
|
|
6789
6860
|
class: "flex items-center justify-between"
|
|
6790
|
-
},
|
|
6861
|
+
}, Hc = {
|
|
6791
6862
|
key: 0,
|
|
6792
6863
|
class: "text-label-large text-on-surface"
|
|
6793
|
-
},
|
|
6864
|
+
}, Uc = {
|
|
6794
6865
|
key: 1,
|
|
6795
6866
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
6796
|
-
},
|
|
6867
|
+
}, Wc = [
|
|
6797
6868
|
"aria-valuenow",
|
|
6798
6869
|
"aria-valuemin",
|
|
6799
6870
|
"aria-valuemax",
|
|
6800
6871
|
"aria-disabled"
|
|
6801
|
-
],
|
|
6872
|
+
], Gc = /* @__PURE__ */ T({
|
|
6802
6873
|
__name: "MSlider",
|
|
6803
6874
|
props: {
|
|
6804
6875
|
modelValue: {},
|
|
@@ -6880,7 +6951,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6880
6951
|
transform: `translateX(-50%) translateY(-50%) scale(${a.value ? 1.15 : 1})`,
|
|
6881
6952
|
transition: a.value ? "transform 80ms ease" : "left 75ms ease, transform 80ms ease"
|
|
6882
6953
|
}));
|
|
6883
|
-
return (t, n) => (P(), b("div",
|
|
6954
|
+
return (t, n) => (P(), b("div", Bc, [e.label || e.showValue ? (P(), b("div", Vc, [e.label ? (P(), b("span", Hc, H(e.label), 1)) : y("", !0), e.showValue ? (P(), b("span", Uc, H(e.modelValue), 1)) : y("", !0)])) : y("", !0), x("div", {
|
|
6884
6955
|
ref_key: "trackEl",
|
|
6885
6956
|
ref: i,
|
|
6886
6957
|
role: "slider",
|
|
@@ -6901,9 +6972,9 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6901
6972
|
}, null, 6)], 2), x("div", {
|
|
6902
6973
|
class: k(["pointer-events-none absolute h-5 w-5 rounded-full shadow-elevation-1", s[e.color].thumb]),
|
|
6903
6974
|
style: A(m.value)
|
|
6904
|
-
}, null, 6)], 42,
|
|
6975
|
+
}, null, 6)], 42, Wc)]));
|
|
6905
6976
|
}
|
|
6906
|
-
}),
|
|
6977
|
+
}), Kc = { class: "flex-1 text-body-medium leading-snug" }, qc = { class: "flex shrink-0 items-center gap-0.5" }, Jc = ["onClick"], Yc = ["aria-label", "onClick"], Xc = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
6907
6978
|
__name: "MSnackbar",
|
|
6908
6979
|
props: { closeAriaLabel: {} },
|
|
6909
6980
|
setup(e) {
|
|
@@ -6964,15 +7035,15 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6964
7035
|
size: 20,
|
|
6965
7036
|
class: k(["shrink-0", n.color ? "" : l(n.variant).icon])
|
|
6966
7037
|
}, null, 8, ["name", "class"]),
|
|
6967
|
-
x("p",
|
|
6968
|
-
x("div",
|
|
7038
|
+
x("p", Kc, H(n.message), 1),
|
|
7039
|
+
x("div", qc, [n.action ? (P(), b("button", {
|
|
6969
7040
|
key: 0,
|
|
6970
7041
|
type: "button",
|
|
6971
7042
|
class: k(["cursor-pointer rounded px-2 py-1 text-label-medium font-semibold transition-colors", n.color ? "text-white/90 hover:bg-white/15" : l(n.variant).action]),
|
|
6972
7043
|
onClick: () => {
|
|
6973
7044
|
n.action.onClick(), U(a)(n.id);
|
|
6974
7045
|
}
|
|
6975
|
-
}, H(n.action.label), 11,
|
|
7046
|
+
}, H(n.action.label), 11, Jc)) : y("", !0), x("button", {
|
|
6976
7047
|
type: "button",
|
|
6977
7048
|
class: k(["flex h-8 w-8 cursor-pointer items-center justify-center rounded-full transition-colors", n.color ? "text-white/60 hover:bg-white/15" : l(n.variant).close]),
|
|
6978
7049
|
"aria-label": e.closeAriaLabel ?? U(t).close,
|
|
@@ -6980,7 +7051,7 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6980
7051
|
}, [w(d, {
|
|
6981
7052
|
name: "close",
|
|
6982
7053
|
size: 18
|
|
6983
|
-
})], 10,
|
|
7054
|
+
})], 10, Yc)]),
|
|
6984
7055
|
n.duration > 0 ? (P(), b("div", {
|
|
6985
7056
|
key: 0,
|
|
6986
7057
|
class: k(["absolute right-0 bottom-0 left-0 h-0.5 origin-left", n.color ? "bg-white/30" : l(n.variant).progress]),
|
|
@@ -6990,11 +7061,11 @@ var Ls = /*#__PURE__*/ f(Ps, [["render", Is]]), Rs = /* @__PURE__ */ T({
|
|
|
6990
7061
|
_: 1
|
|
6991
7062
|
}, 8, ["name"])], 2));
|
|
6992
7063
|
}
|
|
6993
|
-
}), [["__scopeId", "data-v-64ce9e7c"]]),
|
|
6994
|
-
function
|
|
6995
|
-
return P(), b("div",
|
|
7064
|
+
}), [["__scopeId", "data-v-64ce9e7c"]]), Zc = {}, Qc = { class: "flex-1" };
|
|
7065
|
+
function $c(e, t) {
|
|
7066
|
+
return P(), b("div", Qc);
|
|
6996
7067
|
}
|
|
6997
|
-
var
|
|
7068
|
+
var el = /*#__PURE__*/ f(Zc, [["render", $c]]), tl = /* @__PURE__ */ T({
|
|
6998
7069
|
__name: "MSplitter",
|
|
6999
7070
|
props: {
|
|
7000
7071
|
direction: { default: "horizontal" },
|
|
@@ -7041,26 +7112,26 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7041
7112
|
}, [z(e.$slots, "second")], 4)
|
|
7042
7113
|
], 2));
|
|
7043
7114
|
}
|
|
7044
|
-
}),
|
|
7115
|
+
}), nl = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, rl = { class: "flex items-center gap-3 px-5 py-1" }, il = ["placeholder"], al = {
|
|
7045
7116
|
key: 0,
|
|
7046
7117
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
7047
|
-
},
|
|
7118
|
+
}, ol = {
|
|
7048
7119
|
key: 0,
|
|
7049
7120
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
7050
|
-
},
|
|
7121
|
+
}, sl = [
|
|
7051
7122
|
"data-spot-active",
|
|
7052
7123
|
"onClick",
|
|
7053
7124
|
"onPointerenter"
|
|
7054
|
-
],
|
|
7125
|
+
], cl = {
|
|
7055
7126
|
key: 0,
|
|
7056
7127
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
7057
|
-
},
|
|
7128
|
+
}, ll = { class: "min-w-0 flex-1" }, ul = { class: "truncate text-body-medium text-on-surface" }, dl = {
|
|
7058
7129
|
key: 0,
|
|
7059
7130
|
class: "truncate text-body-small text-on-surface-variant"
|
|
7060
|
-
},
|
|
7131
|
+
}, fl = {
|
|
7061
7132
|
key: 1,
|
|
7062
7133
|
class: "flex flex-col items-center gap-2 py-10"
|
|
7063
|
-
},
|
|
7134
|
+
}, pl = { class: "text-body-medium text-on-surface-variant" }, ml = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, hl = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, gl = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, _l = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, vl = /*#__PURE__*/ f(/* @__PURE__ */ T({
|
|
7064
7135
|
__name: "MSpotlightSearch",
|
|
7065
7136
|
props: {
|
|
7066
7137
|
modelValue: { type: Boolean },
|
|
@@ -7124,8 +7195,8 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7124
7195
|
key: 0,
|
|
7125
7196
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
7126
7197
|
onClick: Q(S, ["self"])
|
|
7127
|
-
}, [x("div",
|
|
7128
|
-
x("div",
|
|
7198
|
+
}, [x("div", nl, [
|
|
7199
|
+
x("div", rl, [
|
|
7129
7200
|
w(d, {
|
|
7130
7201
|
name: "search",
|
|
7131
7202
|
size: 24,
|
|
@@ -7139,7 +7210,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7139
7210
|
placeholder: e.placeholder ?? U(r).search,
|
|
7140
7211
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
7141
7212
|
onKeydown: D
|
|
7142
|
-
}, null, 40,
|
|
7213
|
+
}, null, 40, il), [[K, o.value]]),
|
|
7143
7214
|
e.loading ? (P(), v(c, {
|
|
7144
7215
|
key: 0,
|
|
7145
7216
|
size: 20,
|
|
@@ -7154,7 +7225,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7154
7225
|
size: 18
|
|
7155
7226
|
})])) : y("", !0)
|
|
7156
7227
|
]),
|
|
7157
|
-
f.value ? (P(), b("div",
|
|
7228
|
+
f.value ? (P(), b("div", al, [e.results.length ? (P(!0), b(p, { key: 0 }, R(g.value, ([t, n]) => (P(), b(p, { key: t }, [t ? (P(), b("p", ol, H(t), 1)) : y("", !0), (P(!0), b(p, null, R(n, (t) => (P(), b("button", {
|
|
7158
7229
|
key: t.id,
|
|
7159
7230
|
type: "button",
|
|
7160
7231
|
"data-spot-active": e.results.indexOf(t) === s.value || void 0,
|
|
@@ -7162,32 +7233,32 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7162
7233
|
onClick: (e) => T(t),
|
|
7163
7234
|
onPointerenter: (n) => s.value = e.results.indexOf(t)
|
|
7164
7235
|
}, [
|
|
7165
|
-
t.icon ? (P(), b("div",
|
|
7236
|
+
t.icon ? (P(), b("div", cl, [w(d, {
|
|
7166
7237
|
name: t.icon,
|
|
7167
7238
|
size: 20,
|
|
7168
7239
|
class: "text-on-primary-container"
|
|
7169
7240
|
}, null, 8, ["name"])])) : y("", !0),
|
|
7170
|
-
x("div",
|
|
7241
|
+
x("div", ll, [x("p", ul, H(t.title), 1), t.description ? (P(), b("p", dl, H(t.description), 1)) : y("", !0)]),
|
|
7171
7242
|
w(d, {
|
|
7172
7243
|
name: "arrow_forward",
|
|
7173
7244
|
size: 16,
|
|
7174
7245
|
class: "shrink-0 text-on-surface-variant/40"
|
|
7175
7246
|
})
|
|
7176
|
-
], 42,
|
|
7247
|
+
], 42, sl))), 128))], 64))), 128)) : e.loading ? y("", !0) : (P(), b("div", fl, [w(d, {
|
|
7177
7248
|
name: "search_off",
|
|
7178
7249
|
size: 40,
|
|
7179
7250
|
class: "text-on-surface-variant/40"
|
|
7180
|
-
}), x("p",
|
|
7181
|
-
x("div",
|
|
7182
|
-
x("span",
|
|
7183
|
-
x("span",
|
|
7184
|
-
x("span",
|
|
7251
|
+
}), x("p", pl, H(e.noResultsText ?? U(r).noResults), 1)]))])) : y("", !0),
|
|
7252
|
+
x("div", ml, [
|
|
7253
|
+
x("span", hl, [n[2] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), C(" " + H(e.navigateHint ?? U(r).navigateHint), 1)]),
|
|
7254
|
+
x("span", gl, [n[3] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), C(" " + H(e.openHint ?? U(r).openHint), 1)]),
|
|
7255
|
+
x("span", _l, [n[4] ||= x("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), C(" " + H(e.closeHint ?? U(r).closeHint), 1)])
|
|
7185
7256
|
])
|
|
7186
7257
|
])])) : y("", !0)]),
|
|
7187
7258
|
_: 1
|
|
7188
7259
|
})]));
|
|
7189
7260
|
}
|
|
7190
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
7261
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), yl = /* @__PURE__ */ T({
|
|
7191
7262
|
__name: "MStack",
|
|
7192
7263
|
props: {
|
|
7193
7264
|
direction: { default: "column" },
|
|
@@ -7242,19 +7313,19 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7242
7313
|
role: "separator"
|
|
7243
7314
|
}, null, 2)) : y("", !0), (P(), v(V(e)))], 64))), 128)) : z(t.$slots, "default", { key: 1 })], 2));
|
|
7244
7315
|
}
|
|
7245
|
-
}),
|
|
7316
|
+
}), bl = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, xl = { class: "flex items-start justify-between gap-2" }, Sl = { class: "flex min-w-0 flex-col gap-1" }, Cl = { class: "truncate text-label-large text-on-surface-variant" }, wl = {
|
|
7246
7317
|
key: 0,
|
|
7247
7318
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
7248
|
-
},
|
|
7319
|
+
}, Tl = {
|
|
7249
7320
|
key: 1,
|
|
7250
7321
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
7251
|
-
},
|
|
7322
|
+
}, El = {
|
|
7252
7323
|
key: 0,
|
|
7253
7324
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
7254
|
-
},
|
|
7325
|
+
}, Dl = {
|
|
7255
7326
|
key: 1,
|
|
7256
7327
|
class: "text-label-medium text-on-surface-variant"
|
|
7257
|
-
},
|
|
7328
|
+
}, Ol = /* @__PURE__ */ T({
|
|
7258
7329
|
__name: "MStatCard",
|
|
7259
7330
|
props: {
|
|
7260
7331
|
title: {},
|
|
@@ -7273,13 +7344,13 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7273
7344
|
error: "bg-error-container text-on-error-container",
|
|
7274
7345
|
success: "bg-success-container text-on-success-container"
|
|
7275
7346
|
}, r = _(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), i = _(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
7276
|
-
return (t, a) => (P(), b("div",
|
|
7347
|
+
return (t, a) => (P(), b("div", bl, [x("div", xl, [x("div", Sl, [x("span", Cl, H(e.title), 1), e.loading ? (P(), b("div", wl)) : (P(), b("span", Tl, H(e.value), 1))]), e.icon ? (P(), b("div", {
|
|
7277
7348
|
key: 0,
|
|
7278
7349
|
class: k(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
7279
7350
|
}, [w(d, {
|
|
7280
7351
|
name: e.icon,
|
|
7281
7352
|
size: 24
|
|
7282
|
-
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div",
|
|
7353
|
+
}, null, 8, ["name"])], 2)) : y("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (P(), b("div", El, [
|
|
7283
7354
|
e.trend == null ? y("", !0) : (P(), b("span", {
|
|
7284
7355
|
key: 0,
|
|
7285
7356
|
class: k(["inline-flex items-center gap-0.5 text-label-medium font-medium", r.value])
|
|
@@ -7287,35 +7358,35 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7287
7358
|
name: i.value,
|
|
7288
7359
|
size: 16
|
|
7289
7360
|
}, null, 8, ["name"]), C(" " + H(e.trend > 0 ? "+" : "") + H(e.trend) + "% ", 1)], 2)),
|
|
7290
|
-
e.trendLabel ? (P(), b("span",
|
|
7361
|
+
e.trendLabel ? (P(), b("span", Dl, H(e.trendLabel), 1)) : y("", !0),
|
|
7291
7362
|
z(t.$slots, "footer")
|
|
7292
7363
|
])) : y("", !0)]));
|
|
7293
7364
|
}
|
|
7294
|
-
}),
|
|
7365
|
+
}), kl = {
|
|
7295
7366
|
key: 0,
|
|
7296
7367
|
class: "flex w-full items-start"
|
|
7297
|
-
},
|
|
7368
|
+
}, Al = ["onClick"], jl = { key: 3 }, Ml = { class: "flex flex-col items-center text-center" }, Nl = {
|
|
7298
7369
|
key: 0,
|
|
7299
7370
|
class: "text-body-small text-on-surface-variant"
|
|
7300
|
-
},
|
|
7371
|
+
}, Pl = {
|
|
7301
7372
|
key: 1,
|
|
7302
7373
|
class: "text-body-small text-on-surface-variant"
|
|
7303
|
-
},
|
|
7374
|
+
}, Fl = {
|
|
7304
7375
|
key: 0,
|
|
7305
7376
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
7306
|
-
},
|
|
7377
|
+
}, Il = {
|
|
7307
7378
|
key: 1,
|
|
7308
7379
|
class: "flex flex-col"
|
|
7309
|
-
},
|
|
7380
|
+
}, Ll = { class: "flex flex-col items-center" }, Rl = ["onClick"], zl = { key: 3 }, Bl = ["onClick"], Vl = {
|
|
7310
7381
|
key: 0,
|
|
7311
7382
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
7312
|
-
},
|
|
7383
|
+
}, Hl = {
|
|
7313
7384
|
key: 1,
|
|
7314
7385
|
class: "text-body-small text-on-surface-variant"
|
|
7315
|
-
},
|
|
7386
|
+
}, Ul = {
|
|
7316
7387
|
key: 2,
|
|
7317
7388
|
class: "mt-3"
|
|
7318
|
-
},
|
|
7389
|
+
}, Wl = /* @__PURE__ */ T({
|
|
7319
7390
|
__name: "MStepper",
|
|
7320
7391
|
props: {
|
|
7321
7392
|
steps: {},
|
|
@@ -7336,7 +7407,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7336
7407
|
function o(e) {
|
|
7337
7408
|
a.value && r("update:modelValue", e);
|
|
7338
7409
|
}
|
|
7339
|
-
return (t, n) => e.direction === "horizontal" ? (P(), b("div",
|
|
7410
|
+
return (t, n) => e.direction === "horizontal" ? (P(), b("div", kl, [(P(!0), b(p, null, R(e.steps, (t, n) => (P(), b(p, { key: n }, [x("div", {
|
|
7340
7411
|
class: k(["flex flex-col items-center gap-2", a.value && i(n) !== "active" ? "cursor-pointer" : ""]),
|
|
7341
7412
|
onClick: (e) => o(n)
|
|
7342
7413
|
}, [x("div", { class: k(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -7355,18 +7426,18 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7355
7426
|
key: 2,
|
|
7356
7427
|
name: t.icon,
|
|
7357
7428
|
size: 20
|
|
7358
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
7429
|
+
}, null, 8, ["name"])) : (P(), b("span", jl, H(n + 1), 1))], 2), x("div", Ml, [
|
|
7359
7430
|
x("span", { class: k(["text-label-large", {
|
|
7360
7431
|
"font-medium text-on-surface": i(n) === "active" || i(n) === "completed",
|
|
7361
7432
|
"text-error": i(n) === "error",
|
|
7362
7433
|
"text-on-surface-variant": i(n) === "inactive"
|
|
7363
7434
|
}]) }, H(t.label), 3),
|
|
7364
|
-
t.description ? (P(), b("span",
|
|
7365
|
-
t.optional ? (P(), b("span",
|
|
7366
|
-
])], 10,
|
|
7435
|
+
t.description ? (P(), b("span", Nl, H(t.description), 1)) : y("", !0),
|
|
7436
|
+
t.optional ? (P(), b("span", Pl, " Opcional ")) : y("", !0)
|
|
7437
|
+
])], 10, Al), n < e.steps.length - 1 ? (P(), b("div", Fl, [x("div", { class: k(["h-px w-full transition-colors duration-300", n < e.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : y("", !0)], 64))), 128))])) : (P(), b("div", Il, [(P(!0), b(p, null, R(e.steps, (n, r) => (P(), b("div", {
|
|
7367
7438
|
key: r,
|
|
7368
7439
|
class: "flex gap-4"
|
|
7369
|
-
}, [x("div",
|
|
7440
|
+
}, [x("div", Ll, [x("div", {
|
|
7370
7441
|
class: k(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
7371
7442
|
"bg-primary text-on-primary": i(r) === "active" || i(r) === "completed",
|
|
7372
7443
|
"bg-error text-on-error": i(r) === "error",
|
|
@@ -7385,7 +7456,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7385
7456
|
key: 2,
|
|
7386
7457
|
name: n.icon,
|
|
7387
7458
|
size: 20
|
|
7388
|
-
}, null, 8, ["name"])) : (P(), b("span",
|
|
7459
|
+
}, null, 8, ["name"])) : (P(), b("span", zl, H(r + 1), 1))], 10, Rl), r < e.steps.length - 1 ? (P(), b("div", {
|
|
7389
7460
|
key: 0,
|
|
7390
7461
|
class: k(["my-1 w-px flex-1 transition-colors duration-300", r < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
7391
7462
|
style: { "min-height": "24px" }
|
|
@@ -7398,12 +7469,12 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7398
7469
|
"text-error": i(r) === "error",
|
|
7399
7470
|
"text-on-surface-variant": i(r) === "inactive"
|
|
7400
7471
|
}]) }, H(n.label), 3),
|
|
7401
|
-
n.description ? (P(), b("p",
|
|
7402
|
-
n.optional ? (P(), b("p",
|
|
7403
|
-
i(r) === "active" && t.$slots[`step-${r}`] ? (P(), b("div",
|
|
7404
|
-
], 10,
|
|
7472
|
+
n.description ? (P(), b("p", Vl, H(n.description), 1)) : y("", !0),
|
|
7473
|
+
n.optional ? (P(), b("p", Hl, " Opcional ")) : y("", !0),
|
|
7474
|
+
i(r) === "active" && t.$slots[`step-${r}`] ? (P(), b("div", Ul, [z(t.$slots, `step-${r}`)])) : y("", !0)
|
|
7475
|
+
], 10, Bl)]))), 128))]));
|
|
7405
7476
|
}
|
|
7406
|
-
}),
|
|
7477
|
+
}), Gl = /* @__PURE__ */ T({
|
|
7407
7478
|
__name: "MSticky",
|
|
7408
7479
|
props: {
|
|
7409
7480
|
top: { default: 0 },
|
|
@@ -7421,7 +7492,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7421
7492
|
}));
|
|
7422
7493
|
return (e, t) => (P(), b("div", { style: A(r.value) }, [z(e.$slots, "default")], 4));
|
|
7423
7494
|
}
|
|
7424
|
-
}),
|
|
7495
|
+
}), Kl = /* @__PURE__ */ T({
|
|
7425
7496
|
__name: "MText",
|
|
7426
7497
|
props: {
|
|
7427
7498
|
variant: { default: "body-medium" },
|
|
@@ -7501,7 +7572,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7501
7572
|
_: 3
|
|
7502
7573
|
}, 8, ["class"]));
|
|
7503
7574
|
}
|
|
7504
|
-
}),
|
|
7575
|
+
}), ql = /* @__PURE__ */ T({
|
|
7505
7576
|
__name: "MSubtitle",
|
|
7506
7577
|
props: {
|
|
7507
7578
|
size: { default: "large" },
|
|
@@ -7515,7 +7586,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7515
7586
|
medium: "body-medium",
|
|
7516
7587
|
small: "body-small"
|
|
7517
7588
|
}, r = _(() => n[t.size]);
|
|
7518
|
-
return (t, n) => (P(), v(
|
|
7589
|
+
return (t, n) => (P(), v(Kl, {
|
|
7519
7590
|
variant: r.value,
|
|
7520
7591
|
color: e.color,
|
|
7521
7592
|
align: e.align,
|
|
@@ -7530,31 +7601,31 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7530
7601
|
"truncate"
|
|
7531
7602
|
]));
|
|
7532
7603
|
}
|
|
7533
|
-
}),
|
|
7604
|
+
}), Jl = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Yl = {
|
|
7534
7605
|
key: 0,
|
|
7535
7606
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
7536
|
-
},
|
|
7607
|
+
}, Xl = {
|
|
7537
7608
|
key: 0,
|
|
7538
7609
|
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"
|
|
7539
|
-
},
|
|
7610
|
+
}, Zl = ["placeholder"], Ql = {
|
|
7540
7611
|
key: 0,
|
|
7541
7612
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
7542
|
-
},
|
|
7613
|
+
}, $l = { class: "overflow-x-auto" }, eu = { class: "w-full border-collapse" }, tu = { class: "bg-surface-container-high" }, nu = {
|
|
7543
7614
|
key: 0,
|
|
7544
7615
|
class: "w-12 px-4 py-3"
|
|
7545
|
-
},
|
|
7616
|
+
}, ru = ["onClick"], iu = { class: "inline-flex items-center gap-1" }, au = {
|
|
7546
7617
|
key: 0,
|
|
7547
7618
|
class: "inline-flex"
|
|
7548
|
-
},
|
|
7619
|
+
}, ou = {
|
|
7549
7620
|
key: 1,
|
|
7550
7621
|
class: "w-1 px-4 py-3"
|
|
7551
|
-
},
|
|
7622
|
+
}, su = {
|
|
7552
7623
|
key: 0,
|
|
7553
7624
|
class: "px-4 py-3.5"
|
|
7554
|
-
},
|
|
7625
|
+
}, cu = {
|
|
7555
7626
|
key: 1,
|
|
7556
7627
|
class: "px-4 py-3.5"
|
|
7557
|
-
},
|
|
7628
|
+
}, lu = { key: 1 }, uu = ["colspan"], du = { class: "text-body-medium text-on-surface-variant" }, fu = ["onClick"], pu = ["onClick"], mu = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, hu = /* @__PURE__ */ T({
|
|
7558
7629
|
__name: "MTable",
|
|
7559
7630
|
props: {
|
|
7560
7631
|
columns: {},
|
|
@@ -7686,17 +7757,17 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7686
7757
|
function V() {
|
|
7687
7758
|
I.value ? O.value = O.value.filter((e) => !T.value.some((t) => j(t) === j(e))) : O.value = [...O.value, ...T.value.filter((e) => !N(e))];
|
|
7688
7759
|
}
|
|
7689
|
-
let W = _(() => +!!a.selectable + +!!
|
|
7760
|
+
let W = _(() => +!!a.selectable + +!!ee()["row-actions"]);
|
|
7690
7761
|
function G(e) {
|
|
7691
7762
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
7692
7763
|
}
|
|
7693
7764
|
function q(e, t) {
|
|
7694
7765
|
return `${i[(e * 3 + t) % i.length]}%`;
|
|
7695
7766
|
}
|
|
7696
|
-
let Y =
|
|
7697
|
-
return (t, n) => (P(), b("div",
|
|
7698
|
-
e.searchable || t.$slots.toolbar ? (P(), b("div",
|
|
7699
|
-
e.searchable ? (P(), b("div",
|
|
7767
|
+
let Y = ee(), Z = _(() => !!Y["row-actions"]);
|
|
7768
|
+
return (t, n) => (P(), b("div", Jl, [
|
|
7769
|
+
e.searchable || t.$slots.toolbar ? (P(), b("div", Yl, [
|
|
7770
|
+
e.searchable ? (P(), b("div", Xl, [
|
|
7700
7771
|
w(d, {
|
|
7701
7772
|
name: "search",
|
|
7702
7773
|
size: 16,
|
|
@@ -7707,7 +7778,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7707
7778
|
type: "text",
|
|
7708
7779
|
placeholder: e.searchPlaceholder ?? U(r).search,
|
|
7709
7780
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
7710
|
-
}, null, 8,
|
|
7781
|
+
}, null, 8, Zl), [[K, s.value]]),
|
|
7711
7782
|
s.value ? (P(), b("button", {
|
|
7712
7783
|
key: 0,
|
|
7713
7784
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -7724,12 +7795,12 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7724
7795
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
7725
7796
|
"leave-to-class": "opacity-0 scale-90"
|
|
7726
7797
|
}, {
|
|
7727
|
-
default: X(() => [e.selectable && O.value.length > 0 ? (P(), b("span",
|
|
7798
|
+
default: X(() => [e.selectable && O.value.length > 0 ? (P(), b("span", Ql, H(O.value.length) + " " + H(e.selectedText ?? U(r).selectedCount) + H(O.value.length === 1 ? "" : "s"), 1)) : y("", !0)]),
|
|
7728
7799
|
_: 1
|
|
7729
7800
|
})
|
|
7730
7801
|
])) : y("", !0),
|
|
7731
|
-
x("div",
|
|
7732
|
-
e.selectable ? (P(), b("th",
|
|
7802
|
+
x("div", $l, [x("table", eu, [x("thead", null, [x("tr", tu, [
|
|
7803
|
+
e.selectable ? (P(), b("th", nu, [w(Rt, {
|
|
7733
7804
|
"model-value": I.value,
|
|
7734
7805
|
indeterminate: B.value,
|
|
7735
7806
|
"onUpdate:modelValue": V
|
|
@@ -7743,7 +7814,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7743
7814
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
7744
7815
|
]),
|
|
7745
7816
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
7746
|
-
}, [x("span",
|
|
7817
|
+
}, [x("span", iu, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", au, [c.value === e.key && l.value === "asc" ? (P(), v(d, {
|
|
7747
7818
|
key: 0,
|
|
7748
7819
|
name: "arrow_upward",
|
|
7749
7820
|
size: 14,
|
|
@@ -7758,13 +7829,13 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7758
7829
|
name: "unfold_more",
|
|
7759
7830
|
size: 14,
|
|
7760
7831
|
class: "opacity-30"
|
|
7761
|
-
}))])) : y("", !0)])], 14,
|
|
7762
|
-
Z.value ? (P(), b("th",
|
|
7832
|
+
}))])) : y("", !0)])], 14, ru))), 128)),
|
|
7833
|
+
Z.value ? (P(), b("th", ou)) : y("", !0)
|
|
7763
7834
|
])]), x("tbody", null, [e.loading ? (P(!0), b(p, { key: 0 }, R(e.perPage, (t) => (P(), b("tr", {
|
|
7764
7835
|
key: `sk-${t}`,
|
|
7765
7836
|
class: "border-t border-outline-variant"
|
|
7766
7837
|
}, [
|
|
7767
|
-
e.selectable ? (P(), b("td",
|
|
7838
|
+
e.selectable ? (P(), b("td", su, [...n[4] ||= [x("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : y("", !0),
|
|
7768
7839
|
(P(!0), b(p, null, R(e.columns, (e, n) => (P(), b("td", {
|
|
7769
7840
|
key: e.key,
|
|
7770
7841
|
class: "px-4 py-3.5"
|
|
@@ -7772,15 +7843,15 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7772
7843
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
7773
7844
|
style: A({ width: q(t, n) })
|
|
7774
7845
|
}, null, 4)]))), 128)),
|
|
7775
|
-
Z.value ? (P(), b("td",
|
|
7776
|
-
]))), 128)) : T.value.length === 0 ? (P(), b("tr",
|
|
7846
|
+
Z.value ? (P(), b("td", cu, [...n[5] ||= [x("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : y("", !0)
|
|
7847
|
+
]))), 128)) : T.value.length === 0 ? (P(), b("tr", lu, [x("td", {
|
|
7777
7848
|
colspan: e.columns.length + W.value,
|
|
7778
7849
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
7779
7850
|
}, [z(t.$slots, "empty", {}, () => [w(d, {
|
|
7780
7851
|
name: "search_off",
|
|
7781
7852
|
size: 36,
|
|
7782
7853
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
7783
|
-
}), x("p",
|
|
7854
|
+
}), x("p", du, H(e.emptyText ?? U(r).noResults), 1)])], 8, uu)])) : (P(!0), b(p, { key: 2 }, R(T.value, (r) => (P(), b("tr", {
|
|
7784
7855
|
key: j(r),
|
|
7785
7856
|
class: k([
|
|
7786
7857
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -7794,10 +7865,10 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7794
7865
|
key: 0,
|
|
7795
7866
|
class: "px-4 py-3",
|
|
7796
7867
|
onClick: Q((e) => F(r), ["stop"])
|
|
7797
|
-
}, [w(
|
|
7868
|
+
}, [w(Rt, {
|
|
7798
7869
|
"model-value": N(r),
|
|
7799
7870
|
"onUpdate:modelValue": (e) => F(r)
|
|
7800
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
7871
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, pu)) : y("", !0),
|
|
7801
7872
|
(P(!0), b(p, null, R(e.columns, (e) => (P(), b("td", {
|
|
7802
7873
|
key: e.key,
|
|
7803
7874
|
class: k(["px-4 py-3 text-body-medium text-on-surface", G(e.align)])
|
|
@@ -7811,8 +7882,8 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7811
7882
|
class: "px-4 py-3 text-right",
|
|
7812
7883
|
onClick: n[2] ||= Q(() => {}, ["stop"])
|
|
7813
7884
|
}, [z(t.$slots, "row-actions", { row: r })])) : y("", !0)
|
|
7814
|
-
], 10,
|
|
7815
|
-
x("div",
|
|
7885
|
+
], 10, fu))), 128))])])]),
|
|
7886
|
+
x("div", mu, [w(Tn, {
|
|
7816
7887
|
page: m.value,
|
|
7817
7888
|
"per-page": e.perPage,
|
|
7818
7889
|
total: S.value,
|
|
@@ -7824,21 +7895,21 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7824
7895
|
])])
|
|
7825
7896
|
]));
|
|
7826
7897
|
}
|
|
7827
|
-
}),
|
|
7898
|
+
}), gu = { class: "flex flex-col gap-1" }, _u = ["id"], vu = ["onClick"], yu = [
|
|
7828
7899
|
"value",
|
|
7829
7900
|
"placeholder",
|
|
7830
7901
|
"disabled",
|
|
7831
7902
|
"readonly"
|
|
7832
|
-
],
|
|
7903
|
+
], bu = {
|
|
7833
7904
|
key: 0,
|
|
7834
7905
|
class: "text-error"
|
|
7835
|
-
},
|
|
7906
|
+
}, xu = {
|
|
7836
7907
|
key: 0,
|
|
7837
7908
|
class: "px-4 text-body-small text-error"
|
|
7838
|
-
},
|
|
7909
|
+
}, Su = {
|
|
7839
7910
|
key: 1,
|
|
7840
7911
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
7841
|
-
},
|
|
7912
|
+
}, Cu = /* @__PURE__ */ T({
|
|
7842
7913
|
__name: "MTagInput",
|
|
7843
7914
|
props: {
|
|
7844
7915
|
modelValue: { default: () => [] },
|
|
@@ -7926,7 +7997,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7926
7997
|
o.value ? r.error ? "text-error" : "text-primary" : r.error ? "text-error" : "text-on-surface-variant"
|
|
7927
7998
|
].join(" ");
|
|
7928
7999
|
});
|
|
7929
|
-
return (t, n) => (P(), b("div",
|
|
8000
|
+
return (t, n) => (P(), b("div", gu, [x("div", {
|
|
7930
8001
|
ref_key: "fieldEl",
|
|
7931
8002
|
ref: c,
|
|
7932
8003
|
class: k(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -7954,7 +8025,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7954
8025
|
}, [w(d, {
|
|
7955
8026
|
name: "close",
|
|
7956
8027
|
size: 12
|
|
7957
|
-
})], 8,
|
|
8028
|
+
})], 8, vu))]))), 128)), x("input", {
|
|
7958
8029
|
ref_key: "inputEl",
|
|
7959
8030
|
ref: l,
|
|
7960
8031
|
value: s.value,
|
|
@@ -7968,8 +8039,8 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7968
8039
|
onPaste: T,
|
|
7969
8040
|
onFocus: n[0] ||= (e) => o.value = !0,
|
|
7970
8041
|
onBlur: n[1] ||= (e) => o.value = !1
|
|
7971
|
-
}, null, 40,
|
|
7972
|
-
x("label", { class: k(O.value) }, [C(H(e.label), 1), e.required ? (P(), b("span",
|
|
8042
|
+
}, null, 40, yu)], 10, _u),
|
|
8043
|
+
x("label", { class: k(O.value) }, [C(H(e.label), 1), e.required ? (P(), b("span", bu, "\xA0*")) : y("", !0)], 2),
|
|
7973
8044
|
e.clearable && f.value && !e.disabled ? (P(), b("button", {
|
|
7974
8045
|
key: 1,
|
|
7975
8046
|
type: "button",
|
|
@@ -7981,18 +8052,18 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
7981
8052
|
name: "close",
|
|
7982
8053
|
size: 18
|
|
7983
8054
|
})])) : y("", !0)
|
|
7984
|
-
], 6), e.error ? (P(), b("p",
|
|
8055
|
+
], 6), e.error ? (P(), b("p", xu, H(e.error), 1)) : e.hint ? (P(), b("p", Su, H(e.hint), 1)) : y("", !0)]));
|
|
7985
8056
|
}
|
|
7986
|
-
}),
|
|
8057
|
+
}), wu = {
|
|
7987
8058
|
key: 0,
|
|
7988
8059
|
class: "relative border-b border-outline-variant"
|
|
7989
|
-
},
|
|
8060
|
+
}, Tu = {
|
|
7990
8061
|
class: "flex overflow-x-auto",
|
|
7991
8062
|
style: { "scrollbar-width": "none" }
|
|
7992
|
-
},
|
|
8063
|
+
}, Eu = ["disabled", "onClick"], Du = {
|
|
7993
8064
|
key: 1,
|
|
7994
8065
|
class: "flex flex-wrap gap-1 rounded-full bg-surface-container p-1"
|
|
7995
|
-
},
|
|
8066
|
+
}, Ou = ["disabled", "onClick"], ku = /* @__PURE__ */ T({
|
|
7996
8067
|
__name: "MTabs",
|
|
7997
8068
|
props: {
|
|
7998
8069
|
modelValue: {},
|
|
@@ -8012,7 +8083,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8012
8083
|
function c(e) {
|
|
8013
8084
|
e.disabled || r("update:modelValue", e.value);
|
|
8014
8085
|
}
|
|
8015
|
-
return (t, n) => e.variant === "primary" ? (P(), b("div",
|
|
8086
|
+
return (t, n) => e.variant === "primary" ? (P(), b("div", wu, [x("div", Tu, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
8016
8087
|
key: t.value,
|
|
8017
8088
|
ref_for: !0,
|
|
8018
8089
|
ref: (n) => {
|
|
@@ -8026,13 +8097,13 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8026
8097
|
key: 0,
|
|
8027
8098
|
name: t.icon,
|
|
8028
8099
|
size: 20
|
|
8029
|
-
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10,
|
|
8100
|
+
}, null, 8, ["name"])) : y("", !0), x("span", null, H(t.label), 1)], 10, Eu))), 128))]), x("div", {
|
|
8030
8101
|
class: "absolute bottom-0 h-[3px] rounded-t-sm bg-primary transition-[left,width] duration-200 ease-[cubic-bezier(0.2,0,0,1)]",
|
|
8031
8102
|
style: A({
|
|
8032
8103
|
left: `${a.value}px`,
|
|
8033
8104
|
width: `${o.value}px`
|
|
8034
8105
|
})
|
|
8035
|
-
}, null, 4)])) : (P(), b("div",
|
|
8106
|
+
}, null, 4)])) : (P(), b("div", Du, [(P(!0), b(p, null, R(e.tabs, (t) => (P(), b("button", {
|
|
8036
8107
|
key: t.value,
|
|
8037
8108
|
type: "button",
|
|
8038
8109
|
class: k(["flex h-8 items-center gap-2 rounded-full px-4 text-label-large transition-all duration-150 focus-visible:outline-none", t.value === e.modelValue ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : t.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8 hover:text-on-surface"]),
|
|
@@ -8042,27 +8113,27 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8042
8113
|
key: 0,
|
|
8043
8114
|
name: t.icon,
|
|
8044
8115
|
size: 16
|
|
8045
|
-
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10,
|
|
8116
|
+
}, null, 8, ["name"])) : y("", !0), C(" " + H(t.label), 1)], 10, Ou))), 128))]));
|
|
8046
8117
|
}
|
|
8047
|
-
}),
|
|
8118
|
+
}), Au = { class: "flex flex-col items-center" }, ju = { class: "flex items-baseline justify-between gap-2" }, Mu = { class: "text-body-large font-medium text-on-surface" }, Nu = {
|
|
8048
8119
|
key: 0,
|
|
8049
8120
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
8050
|
-
},
|
|
8121
|
+
}, Pu = {
|
|
8051
8122
|
key: 0,
|
|
8052
8123
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
8053
|
-
},
|
|
8124
|
+
}, Fu = {
|
|
8054
8125
|
key: 1,
|
|
8055
8126
|
class: "mt-2"
|
|
8056
|
-
},
|
|
8127
|
+
}, Iu = { class: "text-body-large font-medium text-on-surface" }, Lu = {
|
|
8057
8128
|
key: 0,
|
|
8058
8129
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
8059
|
-
},
|
|
8130
|
+
}, Ru = {
|
|
8060
8131
|
key: 1,
|
|
8061
8132
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
8062
|
-
},
|
|
8133
|
+
}, zu = { class: "flex w-14 shrink-0 flex-col items-center" }, Bu = {
|
|
8063
8134
|
key: 0,
|
|
8064
8135
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
8065
|
-
},
|
|
8136
|
+
}, Vu = /* @__PURE__ */ T({
|
|
8066
8137
|
__name: "MTimeline",
|
|
8067
8138
|
props: {
|
|
8068
8139
|
items: {},
|
|
@@ -8088,23 +8159,23 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8088
8159
|
class: k(["flex items-stretch", i % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
8089
8160
|
}, [
|
|
8090
8161
|
x("div", { class: k(["flex-1", [i % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
8091
|
-
x("p",
|
|
8092
|
-
n.description ? (P(), b("p",
|
|
8093
|
-
n.date ? (P(), b("span",
|
|
8162
|
+
x("p", Iu, H(n.title), 1),
|
|
8163
|
+
n.description ? (P(), b("p", Lu, H(n.description), 1)) : y("", !0),
|
|
8164
|
+
n.date ? (P(), b("span", Ru, H(n.date), 1)) : y("", !0)
|
|
8094
8165
|
], 2),
|
|
8095
|
-
x("div",
|
|
8166
|
+
x("div", zu, [x("div", {
|
|
8096
8167
|
class: k(["z-1 flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3.5 w-3.5", t[n.color ?? "primary"]]]),
|
|
8097
8168
|
style: A(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
8098
8169
|
}, [n.icon ? (P(), v(d, {
|
|
8099
8170
|
key: 0,
|
|
8100
8171
|
name: n.icon,
|
|
8101
8172
|
size: 18
|
|
8102
|
-
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div",
|
|
8173
|
+
}, null, 8, ["name"])) : y("", !0)], 6), i < e.items.length - 1 ? (P(), b("div", Bu)) : y("", !0)]),
|
|
8103
8174
|
r[0] ||= x("div", { class: "flex-1" }, null, -1)
|
|
8104
8175
|
], 2))), 128)) : (P(!0), b(p, { key: 0 }, R(e.items, (r, i) => (P(), b("div", {
|
|
8105
8176
|
key: i,
|
|
8106
8177
|
class: k(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
8107
|
-
}, [x("div",
|
|
8178
|
+
}, [x("div", Au, [x("div", {
|
|
8108
8179
|
class: k(["z-1 flex shrink-0 items-center justify-center rounded-full", [r.icon ? "h-9 w-9" : "h-3 w-3", t[r.color ?? "primary"]]]),
|
|
8109
8180
|
style: A(r.dotColor ? { backgroundColor: r.dotColor } : void 0)
|
|
8110
8181
|
}, [r.icon ? (P(), v(d, {
|
|
@@ -8116,30 +8187,30 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8116
8187
|
class: k(["w-[2px] flex-1", t[r.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
8117
8188
|
style: { "min-height": "16px" }
|
|
8118
8189
|
}, null, 2)) : y("", !0)]), x("div", { class: k([r.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
8119
|
-
x("div",
|
|
8120
|
-
r.description ? (P(), b("p",
|
|
8121
|
-
n.$slots[`item-${i}`] ? (P(), b("div",
|
|
8190
|
+
x("div", ju, [x("p", Mu, H(r.title), 1), r.date ? (P(), b("span", Nu, H(r.date), 1)) : y("", !0)]),
|
|
8191
|
+
r.description ? (P(), b("p", Pu, H(r.description), 1)) : y("", !0),
|
|
8192
|
+
n.$slots[`item-${i}`] ? (P(), b("div", Fu, [z(n.$slots, `item-${i}`, { item: r })])) : y("", !0)
|
|
8122
8193
|
], 2)], 2))), 128))], 2));
|
|
8123
8194
|
}
|
|
8124
|
-
}),
|
|
8195
|
+
}), Hu = { class: "flex flex-col gap-1" }, Uu = {
|
|
8125
8196
|
key: 0,
|
|
8126
8197
|
class: "flex-1 font-mono text-on-surface"
|
|
8127
|
-
},
|
|
8198
|
+
}, Wu = {
|
|
8128
8199
|
key: 1,
|
|
8129
8200
|
class: "flex-1 text-on-surface-variant"
|
|
8130
|
-
},
|
|
8201
|
+
}, Gu = {
|
|
8131
8202
|
key: 0,
|
|
8132
8203
|
class: "px-4 text-body-small text-error"
|
|
8133
|
-
},
|
|
8204
|
+
}, Ku = {
|
|
8134
8205
|
key: 1,
|
|
8135
8206
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
8136
|
-
},
|
|
8207
|
+
}, qu = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Ju = { class: "p-3" }, Yu = {
|
|
8137
8208
|
key: 0,
|
|
8138
8209
|
class: "grid grid-cols-6 gap-1"
|
|
8139
|
-
},
|
|
8210
|
+
}, Xu = ["onClick"], Zu = {
|
|
8140
8211
|
key: 1,
|
|
8141
8212
|
class: "grid grid-cols-6 gap-1"
|
|
8142
|
-
},
|
|
8213
|
+
}, Qu = ["onClick"], $u = /* @__PURE__ */ T({
|
|
8143
8214
|
__name: "MTimePicker",
|
|
8144
8215
|
props: {
|
|
8145
8216
|
modelValue: {},
|
|
@@ -8217,7 +8288,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8217
8288
|
e ? (u.value = "hour", C.value = S.value.h, T.value = S.value.m, B(), setTimeout(() => document.addEventListener("mousedown", V), 0)) : document.removeEventListener("mousedown", V);
|
|
8218
8289
|
}), M(() => window.addEventListener("scroll", W, !0)), N(() => {
|
|
8219
8290
|
window.removeEventListener("scroll", W, !0), document.removeEventListener("mousedown", V);
|
|
8220
|
-
}), (t, n) => (P(), b("div",
|
|
8291
|
+
}), (t, n) => (P(), b("div", Hu, [
|
|
8221
8292
|
x("div", {
|
|
8222
8293
|
ref_key: "triggerEl",
|
|
8223
8294
|
ref: c,
|
|
@@ -8233,7 +8304,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8233
8304
|
size: 20,
|
|
8234
8305
|
class: "shrink-0 text-on-surface-variant"
|
|
8235
8306
|
}),
|
|
8236
|
-
z.value ? (P(), b("span",
|
|
8307
|
+
z.value ? (P(), b("span", Uu, H(z.value), 1)) : (P(), b("span", Wu, H(e.label || e.placeholder || U(a).selectTime), 1)),
|
|
8237
8308
|
e.modelValue ? (P(), v(d, {
|
|
8238
8309
|
key: 2,
|
|
8239
8310
|
name: "close",
|
|
@@ -8245,7 +8316,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8245
8316
|
key: 0,
|
|
8246
8317
|
class: k(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", s.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
8247
8318
|
}, H(e.label), 3)) : y("", !0)], 4),
|
|
8248
|
-
e.error ? (P(), b("p",
|
|
8319
|
+
e.error ? (P(), b("p", Gu, H(e.error), 1)) : e.hint ? (P(), b("p", Ku, H(e.hint), 1)) : y("", !0),
|
|
8249
8320
|
(P(), v(m, { to: "body" }, [w(h, {
|
|
8250
8321
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
8251
8322
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -8258,7 +8329,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8258
8329
|
ref: l,
|
|
8259
8330
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
8260
8331
|
style: A(f.value)
|
|
8261
|
-
}, [x("div",
|
|
8332
|
+
}, [x("div", qu, [
|
|
8262
8333
|
x("button", {
|
|
8263
8334
|
type: "button",
|
|
8264
8335
|
class: k(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", u.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -8270,22 +8341,22 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8270
8341
|
class: k(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", u.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
8271
8342
|
onClick: n[2] ||= (e) => u.value = "minute"
|
|
8272
8343
|
}, H(O(T.value)), 3)
|
|
8273
|
-
]), x("div",
|
|
8344
|
+
]), x("div", Ju, [u.value === "hour" ? (P(), b("div", Yu, [(P(!0), b(p, null, R(U(E), (e) => (P(), b("button", {
|
|
8274
8345
|
key: e,
|
|
8275
8346
|
type: "button",
|
|
8276
8347
|
class: k(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === C.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
8277
8348
|
onClick: (t) => j(e)
|
|
8278
|
-
}, H(O(e)), 11,
|
|
8349
|
+
}, H(O(e)), 11, Xu))), 128))])) : (P(), b("div", Zu, [(P(!0), b(p, null, R(D.value, (e) => (P(), b("button", {
|
|
8279
8350
|
key: e,
|
|
8280
8351
|
type: "button",
|
|
8281
8352
|
class: k(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === T.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
8282
8353
|
onClick: (t) => F(e)
|
|
8283
|
-
}, H(O(e)), 11,
|
|
8354
|
+
}, H(O(e)), 11, Qu))), 128))]))])], 4)) : y("", !0)]),
|
|
8284
8355
|
_: 1
|
|
8285
8356
|
})]))
|
|
8286
8357
|
]));
|
|
8287
8358
|
}
|
|
8288
|
-
}),
|
|
8359
|
+
}), ed = /* @__PURE__ */ T({
|
|
8289
8360
|
__name: "MTitle",
|
|
8290
8361
|
props: {
|
|
8291
8362
|
size: { default: "large" },
|
|
@@ -8299,7 +8370,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8299
8370
|
medium: "headline-medium",
|
|
8300
8371
|
small: "headline-small"
|
|
8301
8372
|
}, r = _(() => n[t.size]);
|
|
8302
|
-
return (t, n) => (P(), v(
|
|
8373
|
+
return (t, n) => (P(), v(Kl, {
|
|
8303
8374
|
variant: r.value,
|
|
8304
8375
|
weight: "medium",
|
|
8305
8376
|
color: e.color,
|
|
@@ -8315,7 +8386,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8315
8386
|
"truncate"
|
|
8316
8387
|
]));
|
|
8317
8388
|
}
|
|
8318
|
-
}),
|
|
8389
|
+
}), td = /* @__PURE__ */ T({
|
|
8319
8390
|
__name: "MTooltip",
|
|
8320
8391
|
props: {
|
|
8321
8392
|
text: {},
|
|
@@ -8384,13 +8455,13 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8384
8455
|
_: 1
|
|
8385
8456
|
})]))], 64));
|
|
8386
8457
|
}
|
|
8387
|
-
}),
|
|
8458
|
+
}), nd = { class: "flex h-16 items-center gap-1 px-4" }, rd = {
|
|
8388
8459
|
key: 1,
|
|
8389
8460
|
class: "flex-1"
|
|
8390
|
-
},
|
|
8461
|
+
}, id = {
|
|
8391
8462
|
key: 2,
|
|
8392
8463
|
class: "flex items-center gap-1"
|
|
8393
|
-
},
|
|
8464
|
+
}, ad = /* @__PURE__ */ T({
|
|
8394
8465
|
__name: "MTopAppBar",
|
|
8395
8466
|
props: {
|
|
8396
8467
|
title: {},
|
|
@@ -8401,7 +8472,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8401
8472
|
},
|
|
8402
8473
|
emits: ["navigation"],
|
|
8403
8474
|
setup(t) {
|
|
8404
|
-
return (n, r) => (P(), b("header", { class: k(["flex w-full flex-col bg-surface transition-shadow", [t.elevated ? "shadow-elevation-2" : "", t.bordered ? "border-b border-outline-variant" : ""]]) }, [x("div",
|
|
8475
|
+
return (n, r) => (P(), b("header", { class: k(["flex w-full flex-col bg-surface transition-shadow", [t.elevated ? "shadow-elevation-2" : "", t.bordered ? "border-b border-outline-variant" : ""]]) }, [x("div", nd, [
|
|
8405
8476
|
z(n.$slots, "navigation", {}, () => [t.navigationIcon ? (P(), v(e, {
|
|
8406
8477
|
key: 0,
|
|
8407
8478
|
icon: t.navigationIcon,
|
|
@@ -8411,14 +8482,14 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8411
8482
|
t.variant === "center" || t.variant === "small" ? (P(), b("h1", {
|
|
8412
8483
|
key: 0,
|
|
8413
8484
|
class: k(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", t.variant === "center" ? "justify-center" : ""])
|
|
8414
|
-
}, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)) : (P(), b("div",
|
|
8415
|
-
n.$slots.actions ? (P(), b("div",
|
|
8485
|
+
}, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)) : (P(), b("div", rd)),
|
|
8486
|
+
n.$slots.actions ? (P(), b("div", id, [z(n.$slots, "actions")])) : y("", !0)
|
|
8416
8487
|
]), t.variant === "medium" || t.variant === "large" ? (P(), b("div", {
|
|
8417
8488
|
key: 0,
|
|
8418
8489
|
class: k(["px-4 pb-6", t.variant === "large" ? "pt-4" : "pt-1"])
|
|
8419
8490
|
}, [x("h1", { class: k(["text-on-surface", t.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [z(n.$slots, "title", {}, () => [C(H(t.title), 1)])], 2)], 2)) : y("", !0)], 2));
|
|
8420
8491
|
}
|
|
8421
|
-
}),
|
|
8492
|
+
}), od = { class: "mb-2 flex items-center justify-between" }, sd = { class: "text-label-small text-on-surface-variant" }, cd = { class: "mb-1 text-title-medium font-medium text-on-surface" }, ld = { class: "mb-4 text-body-medium text-on-surface-variant" }, ud = { class: "mb-4 flex justify-center gap-1.5" }, dd = { class: "flex justify-between" }, fd = { key: 1 }, pd = /* @__PURE__ */ T({
|
|
8422
8493
|
__name: "MTour",
|
|
8423
8494
|
props: {
|
|
8424
8495
|
modelValue: { type: Boolean },
|
|
@@ -8501,7 +8572,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8501
8572
|
class: "h-0 w-0",
|
|
8502
8573
|
style: A(l.value)
|
|
8503
8574
|
}, null, 4),
|
|
8504
|
-
x("div",
|
|
8575
|
+
x("div", od, [x("span", sd, H(s.value + 1) + " / " + H(e.steps.length), 1), x("button", {
|
|
8505
8576
|
type: "button",
|
|
8506
8577
|
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",
|
|
8507
8578
|
onClick: W
|
|
@@ -8509,13 +8580,13 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8509
8580
|
name: "close",
|
|
8510
8581
|
size: 16
|
|
8511
8582
|
})])]),
|
|
8512
|
-
x("h3",
|
|
8513
|
-
x("p",
|
|
8514
|
-
x("div",
|
|
8583
|
+
x("h3", cd, H(f.value.title), 1),
|
|
8584
|
+
x("p", ld, H(f.value.content), 1),
|
|
8585
|
+
x("div", ud, [(P(!0), b(p, null, R(e.steps, (e, t) => (P(), b("div", {
|
|
8515
8586
|
key: t,
|
|
8516
8587
|
class: k(["h-1.5 rounded-full transition-all duration-200", t === s.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
8517
8588
|
}, null, 2))), 128))]),
|
|
8518
|
-
x("div",
|
|
8589
|
+
x("div", dd, [g.value ? (P(), b("span", fd)) : (P(), v(o, {
|
|
8519
8590
|
key: 0,
|
|
8520
8591
|
variant: "text",
|
|
8521
8592
|
onClick: V
|
|
@@ -8530,19 +8601,19 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8530
8601
|
_: 1
|
|
8531
8602
|
})]));
|
|
8532
8603
|
}
|
|
8533
|
-
}),
|
|
8604
|
+
}), md = { class: "flex items-stretch gap-2" }, hd = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, gd = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, _d = { class: "text-label-large font-medium text-on-surface" }, vd = { class: "text-label-small text-on-surface-variant" }, yd = {
|
|
8534
8605
|
key: 0,
|
|
8535
8606
|
class: "border-b border-outline-variant px-3 py-2"
|
|
8536
|
-
},
|
|
8607
|
+
}, bd = ["placeholder"], xd = {
|
|
8537
8608
|
class: "flex-1 overflow-y-auto",
|
|
8538
8609
|
style: { "max-height": "240px" }
|
|
8539
|
-
},
|
|
8610
|
+
}, Sd = ["onClick"], Cd = { class: "flex-1 truncate text-body-medium text-on-surface" }, wd = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Td = { class: "flex flex-col items-center justify-center gap-1" }, Ed = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Dd = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Od = { class: "text-label-large font-medium text-on-surface" }, kd = { class: "text-label-small text-on-surface-variant" }, Ad = {
|
|
8540
8611
|
key: 0,
|
|
8541
8612
|
class: "border-b border-outline-variant px-3 py-2"
|
|
8542
|
-
},
|
|
8613
|
+
}, jd = ["placeholder"], Md = {
|
|
8543
8614
|
class: "flex-1 overflow-y-auto",
|
|
8544
8615
|
style: { "max-height": "240px" }
|
|
8545
|
-
},
|
|
8616
|
+
}, Nd = ["onClick"], Pd = { class: "flex-1 truncate text-body-medium text-on-surface" }, Fd = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Id = /* @__PURE__ */ T({
|
|
8546
8617
|
__name: "MTransferList",
|
|
8547
8618
|
props: {
|
|
8548
8619
|
modelValue: {},
|
|
@@ -8600,22 +8671,22 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8600
8671
|
let e = m.value.map((e) => e.value);
|
|
8601
8672
|
o("update:modelValue", a.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
8602
8673
|
}
|
|
8603
|
-
return (n, r) => (P(), b("div",
|
|
8604
|
-
x("div",
|
|
8605
|
-
x("div",
|
|
8606
|
-
t.filterable ? (P(), b("div",
|
|
8674
|
+
return (n, r) => (P(), b("div", md, [
|
|
8675
|
+
x("div", hd, [
|
|
8676
|
+
x("div", gd, [x("span", _d, H(t.sourceTitle ?? U(i).available), 1), x("span", vd, H(f.value.length), 1)]),
|
|
8677
|
+
t.filterable ? (P(), b("div", yd, [te(x("input", {
|
|
8607
8678
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
8608
8679
|
type: "text",
|
|
8609
8680
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
8610
8681
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
8611
|
-
}, null, 8,
|
|
8612
|
-
x("div",
|
|
8682
|
+
}, null, 8, bd), [[K, l.value]])])) : y("", !0),
|
|
8683
|
+
x("div", xd, [(P(!0), b(p, null, R(f.value, (e) => (P(), b("button", {
|
|
8613
8684
|
key: e.value,
|
|
8614
8685
|
type: "button",
|
|
8615
8686
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
8616
8687
|
onClick: (t) => h(e.value)
|
|
8617
8688
|
}, [
|
|
8618
|
-
w(
|
|
8689
|
+
w(Rt, {
|
|
8619
8690
|
"model-value": s.value.has(e.value),
|
|
8620
8691
|
"onUpdate:modelValue": (t) => h(e.value)
|
|
8621
8692
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
@@ -8625,10 +8696,10 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8625
8696
|
size: 18,
|
|
8626
8697
|
class: "shrink-0 text-on-surface-variant"
|
|
8627
8698
|
}, null, 8, ["name"])) : y("", !0),
|
|
8628
|
-
x("span",
|
|
8629
|
-
], 8,
|
|
8699
|
+
x("span", Cd, H(e.label), 1)
|
|
8700
|
+
], 8, Sd))), 128)), f.value.length ? y("", !0) : z(n.$slots, "source-empty", { key: 0 }, () => [x("p", wd, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
8630
8701
|
]),
|
|
8631
|
-
x("div",
|
|
8702
|
+
x("div", Td, [
|
|
8632
8703
|
w(e, {
|
|
8633
8704
|
icon: "keyboard_double_arrow_right",
|
|
8634
8705
|
label: t.moveAllRightLabel ?? U(i).moveAllRight,
|
|
@@ -8660,21 +8731,21 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8660
8731
|
onClick: E
|
|
8661
8732
|
}, null, 8, ["label", "disabled"])
|
|
8662
8733
|
]),
|
|
8663
|
-
x("div",
|
|
8664
|
-
x("div",
|
|
8665
|
-
t.filterable ? (P(), b("div",
|
|
8734
|
+
x("div", Ed, [
|
|
8735
|
+
x("div", Dd, [x("span", Od, H(t.targetTitle ?? U(i).selected), 1), x("span", kd, H(m.value.length), 1)]),
|
|
8736
|
+
t.filterable ? (P(), b("div", Ad, [te(x("input", {
|
|
8666
8737
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
8667
8738
|
type: "text",
|
|
8668
8739
|
placeholder: t.searchPlaceholder ?? U(i).search,
|
|
8669
8740
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
8670
|
-
}, null, 8,
|
|
8671
|
-
x("div",
|
|
8741
|
+
}, null, 8, jd), [[K, u.value]])])) : y("", !0),
|
|
8742
|
+
x("div", Md, [(P(!0), b(p, null, R(m.value, (e) => (P(), b("button", {
|
|
8672
8743
|
key: e.value,
|
|
8673
8744
|
type: "button",
|
|
8674
8745
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
8675
8746
|
onClick: (t) => g(e.value)
|
|
8676
8747
|
}, [
|
|
8677
|
-
w(
|
|
8748
|
+
w(Rt, {
|
|
8678
8749
|
"model-value": c.value.has(e.value),
|
|
8679
8750
|
"onUpdate:modelValue": (t) => g(e.value)
|
|
8680
8751
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
@@ -8684,18 +8755,18 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8684
8755
|
size: 18,
|
|
8685
8756
|
class: "shrink-0 text-on-surface-variant"
|
|
8686
8757
|
}, null, 8, ["name"])) : y("", !0),
|
|
8687
|
-
x("span",
|
|
8688
|
-
], 8,
|
|
8758
|
+
x("span", Pd, H(e.label), 1)
|
|
8759
|
+
], 8, Nd))), 128)), m.value.length ? y("", !0) : z(n.$slots, "target-empty", { key: 0 }, () => [x("p", Fd, H(t.emptyText ?? U(i).noItems), 1)])])
|
|
8689
8760
|
])
|
|
8690
8761
|
]));
|
|
8691
8762
|
}
|
|
8692
|
-
}),
|
|
8763
|
+
}), Ld = ["aria-expanded", "aria-selected"], Rd = { class: "flex w-6 shrink-0 items-center justify-center" }, zd = ["disabled"], Bd = {
|
|
8693
8764
|
key: 2,
|
|
8694
8765
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
8695
|
-
},
|
|
8766
|
+
}, Vd = {
|
|
8696
8767
|
key: 0,
|
|
8697
8768
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
8698
|
-
},
|
|
8769
|
+
}, Hd = /* @__PURE__ */ T({
|
|
8699
8770
|
__name: "_MTreeNode",
|
|
8700
8771
|
props: {
|
|
8701
8772
|
node: {},
|
|
@@ -8740,7 +8811,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8740
8811
|
]),
|
|
8741
8812
|
onClick: u
|
|
8742
8813
|
}, [
|
|
8743
|
-
x("div",
|
|
8814
|
+
x("div", Rd, [r.value ? (P(), b("button", {
|
|
8744
8815
|
key: 0,
|
|
8745
8816
|
type: "button",
|
|
8746
8817
|
class: k(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", i.value ? "rotate-90" : ""]),
|
|
@@ -8749,12 +8820,12 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8749
8820
|
}, [w(d, {
|
|
8750
8821
|
name: "chevron_right",
|
|
8751
8822
|
size: 16
|
|
8752
|
-
})], 10,
|
|
8823
|
+
})], 10, zd)) : y("", !0)]),
|
|
8753
8824
|
U(n).checkable.value ? (P(), b("div", {
|
|
8754
8825
|
key: 0,
|
|
8755
8826
|
class: "shrink-0",
|
|
8756
8827
|
onClick: Q(m, ["stop"])
|
|
8757
|
-
}, [w(
|
|
8828
|
+
}, [w(Rt, {
|
|
8758
8829
|
"model-value": c.value,
|
|
8759
8830
|
indeterminate: l.value,
|
|
8760
8831
|
disabled: e.node.disabled,
|
|
@@ -8771,7 +8842,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8771
8842
|
class: k(["shrink-0 transition-colors", a.value ? "text-primary" : "text-on-surface-variant"])
|
|
8772
8843
|
}, null, 8, ["name", "class"])) : y("", !0),
|
|
8773
8844
|
x("span", { class: k(["min-w-0 flex-1 truncate text-body-medium transition-colors", a.value ? "font-medium text-primary" : "text-on-surface"]) }, [z(t.$slots, "label", { node: e.node }, () => [C(H(e.node.label), 1)])], 2),
|
|
8774
|
-
r.value && U(n).checkable.value ? (P(), b("span",
|
|
8845
|
+
r.value && U(n).checkable.value ? (P(), b("span", Bd, H(s.value) + "/" + H(o.value.length), 1)) : y("", !0),
|
|
8775
8846
|
z(t.$slots, "trailing", { node: e.node })
|
|
8776
8847
|
], 2), w(h, {
|
|
8777
8848
|
onEnter: g,
|
|
@@ -8779,7 +8850,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8779
8850
|
onLeave: O,
|
|
8780
8851
|
onAfterLeave: A
|
|
8781
8852
|
}, {
|
|
8782
|
-
default: X(() => [i.value && r.value ? (P(), b("div",
|
|
8853
|
+
default: X(() => [i.value && r.value ? (P(), b("div", Vd, [(P(!0), b(p, null, R(e.node.children, (n) => (P(), v(Hd, {
|
|
8783
8854
|
key: n.id,
|
|
8784
8855
|
node: n,
|
|
8785
8856
|
depth: e.depth + 1
|
|
@@ -8788,15 +8859,15 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8788
8859
|
fn: X((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8789
8860
|
}))]), 1032, ["node", "depth"]))), 128))])) : y("", !0)]),
|
|
8790
8861
|
_: 3
|
|
8791
|
-
})], 8,
|
|
8862
|
+
})], 8, Ld));
|
|
8792
8863
|
}
|
|
8793
|
-
}),
|
|
8864
|
+
}), Ud = {
|
|
8794
8865
|
role: "tree",
|
|
8795
8866
|
class: "flex flex-col"
|
|
8796
|
-
},
|
|
8867
|
+
}, Wd = {
|
|
8797
8868
|
key: 1,
|
|
8798
8869
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
8799
|
-
},
|
|
8870
|
+
}, Gd = { class: "text-body-medium" }, Kd = /* @__PURE__ */ T({
|
|
8800
8871
|
__name: "MTree",
|
|
8801
8872
|
props: {
|
|
8802
8873
|
nodes: {},
|
|
@@ -8862,26 +8933,26 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8862
8933
|
return t({
|
|
8863
8934
|
expandAll: y,
|
|
8864
8935
|
collapseAll: C
|
|
8865
|
-
}), (t, n) => (P(), b("div",
|
|
8936
|
+
}), (t, n) => (P(), b("div", Ud, [e.nodes.length ? (P(!0), b(p, { key: 0 }, R(e.nodes, (e) => (P(), v(Hd, {
|
|
8866
8937
|
key: e.id,
|
|
8867
8938
|
node: e,
|
|
8868
8939
|
depth: 0
|
|
8869
8940
|
}, S({ _: 2 }, [R(t.$slots, (e, n) => ({
|
|
8870
8941
|
name: n,
|
|
8871
8942
|
fn: X((e) => [z(t.$slots, n, D({ ref_for: !0 }, e ?? {}))])
|
|
8872
|
-
}))]), 1032, ["node"]))), 128)) : (P(), b("div",
|
|
8943
|
+
}))]), 1032, ["node"]))), 128)) : (P(), b("div", Wd, [w(d, {
|
|
8873
8944
|
name: "account_tree",
|
|
8874
8945
|
size: 32,
|
|
8875
8946
|
class: "opacity-30"
|
|
8876
|
-
}), x("p",
|
|
8947
|
+
}), x("p", Gd, H(e.emptyText), 1)]))]));
|
|
8877
8948
|
}
|
|
8878
|
-
}),
|
|
8949
|
+
}), qd = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Jd = {
|
|
8879
8950
|
key: 0,
|
|
8880
8951
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
8881
|
-
},
|
|
8952
|
+
}, Yd = { class: "overflow-x-auto" }, Xd = { class: "w-full border-collapse" }, Zd = { class: "bg-surface-container-high" }, Qd = ["onClick"], $d = ["onClick"], ef = {
|
|
8882
8953
|
key: 1,
|
|
8883
8954
|
class: "w-6 shrink-0"
|
|
8884
|
-
},
|
|
8955
|
+
}, tf = { key: 0 }, nf = ["colspan"], rf = /* @__PURE__ */ T({
|
|
8885
8956
|
__name: "MTreeTable",
|
|
8886
8957
|
props: {
|
|
8887
8958
|
columns: {},
|
|
@@ -8936,10 +9007,10 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8936
9007
|
function f(e) {
|
|
8937
9008
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
8938
9009
|
}
|
|
8939
|
-
return (t, n) => (P(), b("div",
|
|
9010
|
+
return (t, n) => (P(), b("div", qd, [t.$slots.toolbar ? (P(), b("div", Jd, [z(t.$slots, "toolbar", {
|
|
8940
9011
|
expandAll: l,
|
|
8941
9012
|
collapseAll: u
|
|
8942
|
-
})])) : y("", !0), x("div",
|
|
9013
|
+
})])) : y("", !0), x("div", Yd, [x("table", Xd, [x("thead", null, [x("tr", Zd, [(P(!0), b(p, null, R(e.columns, (t, n) => (P(), b("th", {
|
|
8943
9014
|
key: t.key,
|
|
8944
9015
|
style: A(t.width ? { width: t.width } : void 0),
|
|
8945
9016
|
class: k([
|
|
@@ -8970,7 +9041,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8970
9041
|
}, [w(d, {
|
|
8971
9042
|
name: "chevron_right",
|
|
8972
9043
|
size: 18
|
|
8973
|
-
})], 10,
|
|
9044
|
+
})], 10, $d)) : (P(), b("span", ef)), z(t.$slots, `cell-${r.key}`, {
|
|
8974
9045
|
row: n.row,
|
|
8975
9046
|
value: n.row[r.key],
|
|
8976
9047
|
depth: n.depth
|
|
@@ -8979,19 +9050,19 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
8979
9050
|
row: n.row,
|
|
8980
9051
|
value: n.row[r.key],
|
|
8981
9052
|
depth: n.depth
|
|
8982
|
-
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10,
|
|
9053
|
+
}, () => [C(H(n.row[r.key] ?? "—"), 1)])], 2))), 128))], 10, Qd))), 128)), c.value.length ? y("", !0) : (P(), b("tr", tf, [x("td", {
|
|
8983
9054
|
colspan: e.columns.length,
|
|
8984
9055
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
8985
9056
|
}, [w(d, {
|
|
8986
9057
|
name: "account_tree",
|
|
8987
9058
|
size: 36,
|
|
8988
9059
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
8989
|
-
}), n[0] ||= x("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
9060
|
+
}), n[0] ||= x("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, nf)]))])])])]));
|
|
8990
9061
|
}
|
|
8991
|
-
}),
|
|
9062
|
+
}), af = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, of = { class: "flex bg-surface-container-high" }, sf = ["onClick"], cf = { class: "inline-flex items-center gap-1" }, lf = {
|
|
8992
9063
|
key: 0,
|
|
8993
9064
|
class: "inline-flex"
|
|
8994
|
-
},
|
|
9065
|
+
}, uf = ["onClick"], df = { class: "truncate" }, ff = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, pf = { class: "text-label-small text-on-surface-variant" }, mf = /* @__PURE__ */ T({
|
|
8995
9066
|
__name: "MVirtualTable",
|
|
8996
9067
|
props: {
|
|
8997
9068
|
columns: {},
|
|
@@ -9037,8 +9108,8 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9037
9108
|
function w(e) {
|
|
9038
9109
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
9039
9110
|
}
|
|
9040
|
-
return (t, n) => (P(), b("div",
|
|
9041
|
-
x("div",
|
|
9111
|
+
return (t, n) => (P(), b("div", af, [
|
|
9112
|
+
x("div", of, [(P(!0), b(p, null, R(e.columns, (e) => (P(), b("div", {
|
|
9042
9113
|
key: e.key,
|
|
9043
9114
|
style: A({
|
|
9044
9115
|
width: e.width || "auto",
|
|
@@ -9050,7 +9121,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9050
9121
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
9051
9122
|
]),
|
|
9052
9123
|
onClick: (t) => e.sortable ? l(e.key) : void 0
|
|
9053
|
-
}, [x("span",
|
|
9124
|
+
}, [x("span", cf, [C(H(e.label) + " ", 1), e.sortable ? (P(), b("span", lf, [s.value === e.key && c.value === "asc" ? (P(), v(d, {
|
|
9054
9125
|
key: 0,
|
|
9055
9126
|
name: "arrow_upward",
|
|
9056
9127
|
size: 14,
|
|
@@ -9065,7 +9136,7 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9065
9136
|
name: "unfold_more",
|
|
9066
9137
|
size: 14,
|
|
9067
9138
|
class: "opacity-30"
|
|
9068
|
-
}))])) : y("", !0)])], 14,
|
|
9139
|
+
}))])) : y("", !0)])], 14, sf))), 128))]),
|
|
9069
9140
|
x("div", {
|
|
9070
9141
|
ref_key: "scrollEl",
|
|
9071
9142
|
ref: i,
|
|
@@ -9093,11 +9164,11 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9093
9164
|
}, [z(t.$slots, `cell-${e.key}`, {
|
|
9094
9165
|
row: n,
|
|
9095
9166
|
value: n[e.key]
|
|
9096
|
-
}, () => [x("span",
|
|
9097
|
-
x("div",
|
|
9167
|
+
}, () => [x("span", df, H(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, uf))), 128))], 4)], 36),
|
|
9168
|
+
x("div", ff, [x("span", pf, [C(H(u.value.length.toLocaleString()) + " filas ", 1), m.value.end - m.value.start < u.value.length ? (P(), b(p, { key: 0 }, [C(" · mostrando " + H(m.value.start + 1) + "–" + H(m.value.end), 1)], 64)) : y("", !0)])])
|
|
9098
9169
|
]));
|
|
9099
9170
|
}
|
|
9100
|
-
}),
|
|
9171
|
+
}), hf = { class: "text-title-small font-medium text-on-surface truncate flex-1" }, gf = { class: "flex-1 overflow-auto" }, _f = ["onMousedown", "onTouchstart"], vf = /* @__PURE__ */ T({
|
|
9101
9172
|
__name: "MWindow",
|
|
9102
9173
|
props: {
|
|
9103
9174
|
modelValue: { type: Boolean },
|
|
@@ -9107,6 +9178,8 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9107
9178
|
height: { default: "300px" },
|
|
9108
9179
|
minWidth: { default: 200 },
|
|
9109
9180
|
minHeight: { default: 150 },
|
|
9181
|
+
maxWidth: {},
|
|
9182
|
+
maxHeight: {},
|
|
9110
9183
|
resizable: {
|
|
9111
9184
|
type: Boolean,
|
|
9112
9185
|
default: !0
|
|
@@ -9136,72 +9209,96 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9136
9209
|
"minimize"
|
|
9137
9210
|
],
|
|
9138
9211
|
setup(e, { emit: t }) {
|
|
9139
|
-
let n = e, r = t, i = L(n.x), a = L(n.y), o = L(parseInt(n.width) || 400), s = L(parseInt(n.height) || 300), c = L(!1), l = L(100), u = 100, f = L(null), m = !1, h = 0, g = 0, S = 0, C = 0, T = !1, E = "se", D = 0,
|
|
9212
|
+
let n = e, r = t, i = L(n.x), a = L(n.y), o = L(parseInt(n.width) || 400), s = L(parseInt(n.height) || 300), c = L(!1), l = L(100), u = 100, f = L(null), m = !1, h = 0, g = 0, S = 0, C = 0, T = !1, E = "se", D = 0, j = 0, F = 0, I = 0, B = 0, V = 0, U = _(() => ({
|
|
9140
9213
|
left: `${i.value}px`,
|
|
9141
9214
|
top: `${a.value}px`,
|
|
9142
9215
|
width: `${o.value}px`,
|
|
9143
9216
|
height: c.value ? "auto" : `${s.value}px`,
|
|
9144
9217
|
zIndex: l.value
|
|
9145
9218
|
}));
|
|
9146
|
-
function
|
|
9219
|
+
function W() {
|
|
9147
9220
|
u++, l.value = u;
|
|
9148
9221
|
}
|
|
9149
|
-
function
|
|
9150
|
-
|
|
9222
|
+
function G(e) {
|
|
9223
|
+
if ("touches" in e) {
|
|
9224
|
+
let t = e.touches[0] ?? e.changedTouches[0];
|
|
9225
|
+
return {
|
|
9226
|
+
x: t.clientX,
|
|
9227
|
+
y: t.clientY
|
|
9228
|
+
};
|
|
9229
|
+
}
|
|
9230
|
+
return {
|
|
9231
|
+
x: e.clientX,
|
|
9232
|
+
y: e.clientY
|
|
9233
|
+
};
|
|
9151
9234
|
}
|
|
9152
|
-
function
|
|
9153
|
-
|
|
9235
|
+
function ee() {
|
|
9236
|
+
document.addEventListener("mousemove", Z), document.addEventListener("mouseup", Q), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("touchend", Q);
|
|
9154
9237
|
}
|
|
9155
|
-
function
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9238
|
+
function K() {
|
|
9239
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", Q), document.removeEventListener("touchmove", Z), document.removeEventListener("touchend", Q);
|
|
9240
|
+
}
|
|
9241
|
+
function Y(e) {
|
|
9242
|
+
if (!n.draggable || e.target.closest("button")) return;
|
|
9243
|
+
e.preventDefault();
|
|
9244
|
+
let { x: t, y: r } = G(e);
|
|
9245
|
+
m = !0, h = t, g = r, S = i.value, C = a.value, W(), ee();
|
|
9246
|
+
}
|
|
9247
|
+
function X(e, t) {
|
|
9248
|
+
if (!n.resizable) return;
|
|
9249
|
+
e.preventDefault(), e.stopPropagation();
|
|
9250
|
+
let { x: r, y: c } = G(e);
|
|
9251
|
+
T = !0, E = t, D = r, j = c, F = o.value, I = s.value, B = i.value, V = a.value, W(), ee();
|
|
9252
|
+
}
|
|
9253
|
+
function Z(e) {
|
|
9254
|
+
e.preventDefault();
|
|
9255
|
+
let { x: t, y: r } = G(e);
|
|
9256
|
+
if (m) {
|
|
9257
|
+
let e = t - h, n = r - g, l = f.value?.parentElement, u = l ? l.clientWidth - o.value : Infinity, d = l ? l.clientHeight - (c.value ? 40 : s.value) : Infinity;
|
|
9258
|
+
i.value = Math.max(0, Math.min(u, S + e)), a.value = Math.max(0, Math.min(d, C + n));
|
|
9159
9259
|
}
|
|
9160
9260
|
if (T) {
|
|
9161
|
-
let
|
|
9162
|
-
if (c.includes("e")) {
|
|
9163
|
-
let
|
|
9164
|
-
|
|
9165
|
-
}
|
|
9166
|
-
if (c.includes("w")) {
|
|
9167
|
-
let e = F + j, r = Math.min(e, Math.max(n.minWidth, j - t));
|
|
9168
|
-
i.value = Math.max(0, F + (j - r)), o.value = r;
|
|
9169
|
-
}
|
|
9170
|
-
if (c.includes("s")) {
|
|
9171
|
-
let e = d - I;
|
|
9172
|
-
s.value = Math.min(e, Math.max(n.minHeight, M + r));
|
|
9173
|
-
}
|
|
9174
|
-
if (c === "n" || c === "ne" || c === "nw") {
|
|
9175
|
-
let e = I + M, t = Math.min(e, Math.max(n.minHeight, M - r));
|
|
9176
|
-
a.value = Math.max(0, I + (M - t)), s.value = t;
|
|
9261
|
+
let e = t - D, a = r - j, c = E, l = f.value?.parentElement, u = l ? l.clientWidth : Infinity, d = l ? l.clientHeight : Infinity, p = (e) => Math.min(n.maxWidth ?? Infinity, Math.max(n.minWidth, e)), m = (e) => Math.min(n.maxHeight ?? Infinity, Math.max(n.minHeight, e));
|
|
9262
|
+
if (c.includes("e") && (o.value = Math.min(u - B, p(F + e))), c.includes("w")) {
|
|
9263
|
+
let t = Math.min(B + F, p(F - e));
|
|
9264
|
+
i.value = Math.max(0, B + (F - t)), o.value = t;
|
|
9177
9265
|
}
|
|
9266
|
+
c.includes("s") && (s.value = Math.min(d - V, m(I + a)));
|
|
9178
9267
|
}
|
|
9179
9268
|
}
|
|
9180
|
-
function
|
|
9181
|
-
m = !1, T = !1,
|
|
9269
|
+
function Q() {
|
|
9270
|
+
m = !1, T = !1, K();
|
|
9182
9271
|
}
|
|
9183
|
-
function
|
|
9272
|
+
function ne() {
|
|
9184
9273
|
r("update:modelValue", !1), r("close"), n.resetPosition && (i.value = n.x, a.value = n.y, o.value = parseInt(n.width) || 400, s.value = parseInt(n.height) || 300, c.value = !1);
|
|
9185
9274
|
}
|
|
9186
|
-
function
|
|
9275
|
+
function $() {
|
|
9187
9276
|
c.value = !c.value, r("minimize");
|
|
9188
9277
|
}
|
|
9189
|
-
function
|
|
9190
|
-
|
|
9278
|
+
function re() {
|
|
9279
|
+
W();
|
|
9191
9280
|
}
|
|
9192
|
-
|
|
9281
|
+
function ie() {
|
|
9282
|
+
let e = f.value?.parentElement;
|
|
9283
|
+
if (!e) return;
|
|
9284
|
+
let t = e.clientWidth, r = e.clientHeight;
|
|
9285
|
+
o.value > t && (o.value = Math.max(n.minWidth, t)), s.value > r && (s.value = Math.max(n.minHeight, r)), i.value + o.value > t && (i.value = Math.max(0, t - o.value)), a.value + s.value > r && (a.value = Math.max(0, r - s.value));
|
|
9286
|
+
}
|
|
9287
|
+
let ae = null;
|
|
9288
|
+
M(() => {
|
|
9289
|
+
ie();
|
|
9290
|
+
let e = f.value?.parentElement;
|
|
9291
|
+
e && (ae = new ResizeObserver(ie), ae.observe(e));
|
|
9292
|
+
}), J(() => n.x, (e) => {
|
|
9193
9293
|
i.value = e;
|
|
9194
9294
|
}), J(() => n.y, (e) => {
|
|
9195
9295
|
a.value = e;
|
|
9296
|
+
}), J(() => n.modelValue, (e) => {
|
|
9297
|
+
e && O(ie);
|
|
9196
9298
|
}), N(() => {
|
|
9197
|
-
|
|
9299
|
+
K(), ae?.disconnect();
|
|
9198
9300
|
});
|
|
9199
|
-
let
|
|
9200
|
-
{
|
|
9201
|
-
dir: "n",
|
|
9202
|
-
class: "top-0 left-[10px] right-[10px] h-[5px]",
|
|
9203
|
-
cursor: "cursor-ns-resize"
|
|
9204
|
-
},
|
|
9301
|
+
let oe = [
|
|
9205
9302
|
{
|
|
9206
9303
|
dir: "s",
|
|
9207
9304
|
class: "bottom-0 left-[10px] right-[10px] h-[5px]",
|
|
@@ -9217,16 +9314,6 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9217
9314
|
class: "top-[10px] left-0 bottom-[10px] w-[5px]",
|
|
9218
9315
|
cursor: "cursor-ew-resize"
|
|
9219
9316
|
},
|
|
9220
|
-
{
|
|
9221
|
-
dir: "ne",
|
|
9222
|
-
class: "top-0 right-0 w-[12px] h-[12px]",
|
|
9223
|
-
cursor: "cursor-nesw-resize"
|
|
9224
|
-
},
|
|
9225
|
-
{
|
|
9226
|
-
dir: "nw",
|
|
9227
|
-
class: "top-0 left-0 w-[12px] h-[12px]",
|
|
9228
|
-
cursor: "cursor-nwse-resize"
|
|
9229
|
-
},
|
|
9230
9317
|
{
|
|
9231
9318
|
dir: "se",
|
|
9232
9319
|
class: "bottom-0 right-0 w-[12px] h-[12px]",
|
|
@@ -9243,24 +9330,25 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9243
9330
|
ref_key: "windowRef",
|
|
9244
9331
|
ref: f,
|
|
9245
9332
|
class: "absolute flex flex-col rounded-xl bg-surface shadow-elevation-3 overflow-hidden",
|
|
9246
|
-
style: A(
|
|
9247
|
-
onMousedown:
|
|
9333
|
+
style: A(U.value),
|
|
9334
|
+
onMousedown: re
|
|
9248
9335
|
}, [
|
|
9249
9336
|
x("div", {
|
|
9250
9337
|
class: k(["flex items-center gap-2 px-4 h-10 bg-surface-container select-none shrink-0", { "cursor-move": e.draggable }]),
|
|
9251
|
-
onMousedown:
|
|
9338
|
+
onMousedown: Y,
|
|
9339
|
+
onTouchstart: Y
|
|
9252
9340
|
}, [
|
|
9253
9341
|
z(t.$slots, "header", {}, () => [e.icon ? (P(), v(d, {
|
|
9254
9342
|
key: 0,
|
|
9255
9343
|
name: e.icon,
|
|
9256
9344
|
size: 18,
|
|
9257
9345
|
class: "text-on-surface-variant"
|
|
9258
|
-
}, null, 8, ["name"])) : y("", !0), x("span",
|
|
9259
|
-
z(t.$slots, "actions"
|
|
9346
|
+
}, null, 8, ["name"])) : y("", !0), x("span", hf, H(e.title), 1)]),
|
|
9347
|
+
z(t.$slots, "actions"),
|
|
9260
9348
|
e.minimizable ? (P(), b("button", {
|
|
9261
9349
|
key: 0,
|
|
9262
9350
|
class: "text-on-surface-variant hover:bg-on-surface/8 rounded-full w-7 h-7 flex items-center justify-center transition-colors",
|
|
9263
|
-
onClick:
|
|
9351
|
+
onClick: $
|
|
9264
9352
|
}, [w(d, {
|
|
9265
9353
|
name: c.value ? "open_in_full" : "minimize",
|
|
9266
9354
|
size: 16
|
|
@@ -9268,22 +9356,23 @@ var Zc = /*#__PURE__*/ f(Jc, [["render", Xc]]), Qc = /* @__PURE__ */ T({
|
|
|
9268
9356
|
e.closable ? (P(), b("button", {
|
|
9269
9357
|
key: 1,
|
|
9270
9358
|
class: "text-on-surface-variant hover:bg-error/12 hover:text-error rounded-full w-7 h-7 flex items-center justify-center transition-colors",
|
|
9271
|
-
onClick:
|
|
9359
|
+
onClick: ne
|
|
9272
9360
|
}, [w(d, {
|
|
9273
9361
|
name: "close",
|
|
9274
9362
|
size: 16
|
|
9275
9363
|
})])) : y("", !0)
|
|
9276
9364
|
], 34),
|
|
9277
|
-
te(x("div",
|
|
9278
|
-
e.resizable && !c.value ? (P(), b(p, { key: 0 }, R(
|
|
9365
|
+
te(x("div", gf, [z(t.$slots, "default")], 512), [[q, !c.value]]),
|
|
9366
|
+
e.resizable && !c.value ? (P(), b(p, { key: 0 }, R(oe, (e) => x("div", {
|
|
9279
9367
|
key: e.dir,
|
|
9280
9368
|
class: k(["absolute", [e.class, e.cursor]]),
|
|
9281
|
-
onMousedown: (t) =>
|
|
9282
|
-
|
|
9369
|
+
onMousedown: (t) => X(t, e.dir),
|
|
9370
|
+
onTouchstart: (t) => X(t, e.dir)
|
|
9371
|
+
}, null, 42, _f)), 64)) : y("", !0)
|
|
9283
9372
|
], 36)) : y("", !0);
|
|
9284
9373
|
}
|
|
9285
|
-
})
|
|
9374
|
+
});
|
|
9286
9375
|
//#endregion
|
|
9287
|
-
export { be as MAbsolute, Ee as MAlert, Ve as MAppBar, Ge as MAppLayout, Ke as MAspectRatio, Le as MAutocomplete, qe as MAvatar, Xe as MBadge, nt as MBottomSheet, rt as MBox, ot as MBreadcrumbs, o as MButton, vt as MCalendar, Tt as MCard, jt as MCarousel, Mt as MCenter, Ft as MCheckbox,
|
|
9376
|
+
export { be as MAbsolute, Ee as MAlert, Ve as MAppBar, Ge as MAppLayout, Ke as MAspectRatio, Le as MAutocomplete, qe as MAvatar, Xe as MBadge, nt as MBottomSheet, rt as MBox, ot as MBreadcrumbs, o as MButton, vt as MCalendar, Tt as MCard, jt as MCarousel, Mt as MCenter, Ft as MChatBubble, Rt as MCheckbox, Bt as MChip, Zt as MColorPicker, fn as MCommandPalette, mn as MConfirmDialog, hn as MContainer, Sn as MContextMenu, Qn as MDataTable, lr as MDatePicker, xr as MDateRangePicker, r as MDialog, Tr as MDivider, jr as MDragDropList, Nr as MEmoji, zr as MEmojiButton, qr as MEmojiSelector, Jr as MEmptyState, ti as MExpansionPanel, si as MFab, Ci as MFileUpload, wi as MFixed, Ai as MFlex, ki as MFooter, ji as MFullscreen, Mi as MGrid, Ri as MHotkeys, d as MIcon, e as MIconButton, Hi as MInfiniteScroll, Zi as MJsonViewer, sa as MKanban, ca as MList, Sa as MListItem, Ca as MListSubheader, Da as MLoadingOverlay, Fa as MMaskField, Oa as MMasonry, a as MMenu, l as MMenuItem, Ya as MMultiAutocomplete, fo as MMultiSelect, ho as MNavigationBar, is as MNavigationDrawer, cs as MNavigationRail, Co as MNumberField, us as MOverlay, Tn as MPagination, Es as MProgressBar, js as MRadio, Ps as MRadioGroup, Is as MRating, Bs as MRelative, Vs as MResponsive, Js as MResult, uc as MScheduler, dc as MScrollable, gc as MSection, yc as MSegmentedButton, jc as MSelect, Lc as MSideSheet, zc as MSkeleton, Gc as MSlider, Xc as MSnackbar, el as MSpacer, c as MSpinner, tl as MSplitter, vl as MSpotlightSearch, yl as MStack, Ol as MStatCard, Wl as MStepper, Gl as MSticky, ql as MSubtitle, da as MSwitch, hu as MTable, ku as MTabs, Cu as MTagInput, Kl as MText, s as MTextField, $u as MTimePicker, Vu as MTimeline, ed as MTitle, td as MTooltip, ad as MTopAppBar, pd as MTour, Id as MTransferList, Kd as MTree, rf as MTreeTable, mf as MVirtualTable, vf as MWindow, Fr as allEmojis, ne as createM3UI, u as defaultLocale, Pr as emojiCategories, oe as palettes, Ir as randomEmoji, ce as useColorPalette, t as useFieldBg, n as useLocale, ae as useTheme, ye as useToast };
|
|
9288
9377
|
|
|
9289
9378
|
//# sourceMappingURL=m3ui.js.map
|