@m3ui-vue/m3ui-vue 1.3.7 → 1.3.8
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/API.md +40 -9
- package/dist/api.json +1 -1
- package/dist/components/MBadge.vue.d.ts +1 -1
- package/dist/components/MFlow.vue.d.ts +13 -0
- package/dist/components/MSlider.vue.d.ts +2 -2
- package/dist/components/MSplitter.vue.d.ts +1 -1
- package/dist/components/MTour.vue.d.ts +52 -2
- package/dist/composables/flowPaths.d.ts +11 -3
- package/dist/composables/useFlow.d.ts +4 -0
- package/dist/flow.d.ts +1 -1
- package/dist/flow.js +525 -433
- package/dist/flow.js.map +1 -1
- package/dist/{flowPaths-DzW-aiET.js → flowPaths-CcWOKY4Z.js} +5 -5
- package/dist/flowPaths-CcWOKY4Z.js.map +1 -0
- package/dist/gantt.js +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +232 -163
- package/dist/m3ui.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/__tests__/MFlow.test.ts +69 -0
- package/src/__tests__/MTour.test.ts +102 -0
- package/src/components/MFlow.vue +117 -17
- package/src/components/MTour.vue +145 -27
- package/src/composables/flowPaths.ts +16 -7
- package/src/composables/useFlow.ts +4 -0
- package/src/flow.ts +1 -1
- package/dist/flowPaths-DzW-aiET.js.map +0 -1
package/dist/m3ui.js
CHANGED
|
@@ -23279,129 +23279,198 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23279
23279
|
class: W(["truncate text-on-surface-variant", l.value])
|
|
23280
23280
|
}, [Y(t.$slots, "subtitle", {}, () => [Ie(X(e.subtitle), 1)])], 2)) : z("", !0)], 8, PE)], 2)) : z("", !0)], 2));
|
|
23281
23281
|
}
|
|
23282
|
-
}), LE = { class: "mb-2 flex items-center justify-between" },
|
|
23282
|
+
}), LE = ["role", "aria-label"], RE = { class: "mb-2 flex items-center justify-between" }, zE = { class: "text-label-small text-on-surface-variant" }, BE = ["aria-label"], VE = { class: "mb-1 text-title-medium font-medium text-on-surface" }, HE = { class: "mb-4 text-body-medium text-on-surface-variant" }, UE = { class: "mb-4 flex justify-center gap-1.5" }, WE = { class: "flex justify-between" }, GE = { key: 1 }, KE = /* @__PURE__ */ U({
|
|
23283
23283
|
__name: "MTour",
|
|
23284
23284
|
props: {
|
|
23285
23285
|
modelValue: { type: Boolean },
|
|
23286
23286
|
steps: {},
|
|
23287
23287
|
prevLabel: {},
|
|
23288
23288
|
nextLabel: {},
|
|
23289
|
-
finishLabel: {}
|
|
23289
|
+
finishLabel: {},
|
|
23290
|
+
step: {},
|
|
23291
|
+
interactive: { type: Boolean }
|
|
23290
23292
|
},
|
|
23291
|
-
emits: [
|
|
23293
|
+
emits: [
|
|
23294
|
+
"update:modelValue",
|
|
23295
|
+
"update:step",
|
|
23296
|
+
"finish"
|
|
23297
|
+
],
|
|
23292
23298
|
setup(e, { emit: t }) {
|
|
23293
|
-
let n = e, r = c(), i = t, a = q(0), o =
|
|
23294
|
-
|
|
23295
|
-
|
|
23299
|
+
let n = e, r = c(), i = t, a = q(0), o = L({
|
|
23300
|
+
get: () => n.step ?? a.value,
|
|
23301
|
+
set: (e) => {
|
|
23302
|
+
a.value = e, i("update:step", e);
|
|
23303
|
+
}
|
|
23304
|
+
}), s = q(null), l = q(null), u = q({}), d = q({}), f = q("bottom"), p = L(() => n.steps[o.value]), m = L(() => o.value === 0), h = L(() => o.value === n.steps.length - 1), g = 0, _ = 0;
|
|
23305
|
+
function v(e) {
|
|
23306
|
+
let t = e?.target;
|
|
23307
|
+
if (!t) return null;
|
|
23308
|
+
let n = typeof t == "string" ? document.querySelector(t) : t();
|
|
23309
|
+
return n && n.getClientRects().length ? n : null;
|
|
23296
23310
|
}
|
|
23297
|
-
|
|
23298
|
-
|
|
23311
|
+
let y = (e, t) => JSON.stringify(e) === JSON.stringify(t);
|
|
23312
|
+
function b() {
|
|
23313
|
+
w(), _ = requestAnimationFrame(b);
|
|
23299
23314
|
}
|
|
23300
|
-
function
|
|
23301
|
-
|
|
23315
|
+
function x() {
|
|
23316
|
+
cancelAnimationFrame(g), g = requestAnimationFrame(w);
|
|
23302
23317
|
}
|
|
23303
|
-
function
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
23307
|
-
|
|
23308
|
-
|
|
23309
|
-
|
|
23310
|
-
if (
|
|
23311
|
-
|
|
23312
|
-
|
|
23318
|
+
function S() {
|
|
23319
|
+
window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), n.interactive && (cancelAnimationFrame(_), _ = requestAnimationFrame(b));
|
|
23320
|
+
}
|
|
23321
|
+
function C() {
|
|
23322
|
+
window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x), cancelAnimationFrame(g), cancelAnimationFrame(_), l.value = null;
|
|
23323
|
+
}
|
|
23324
|
+
function w() {
|
|
23325
|
+
if (!p.value) return;
|
|
23326
|
+
let e = v(p.value), t = window.innerWidth, r = window.innerHeight, i = Math.min(320, t - 16), a = s.value?.offsetHeight || 220;
|
|
23327
|
+
if (!e) {
|
|
23328
|
+
let e = p.value.placement, n = { width: `${i}px` };
|
|
23329
|
+
e === "left" || e === "right" ? (n[e] = "16px", n.top = "50%", n.transform = "translateY(-50%)") : (n.left = `${(t - i) / 2}px`, e === "top" ? n.top = "16px" : e === "bottom" ? n.bottom = "16px" : (n.top = "50%", n.transform = "translateY(-50%)")), y(u.value, n) || (u.value = n), y(d.value, { display: "none" }) || (d.value = { display: "none" }), l.value &&= null;
|
|
23330
|
+
return;
|
|
23331
|
+
}
|
|
23332
|
+
let o = e.getBoundingClientRect();
|
|
23333
|
+
if (n.interactive) {
|
|
23334
|
+
let e = {
|
|
23335
|
+
left: `${o.left - 4}px`,
|
|
23336
|
+
top: `${o.top - 4}px`,
|
|
23337
|
+
width: `${o.width + 8}px`,
|
|
23338
|
+
height: `${o.height + 8}px`
|
|
23339
|
+
};
|
|
23340
|
+
y(l.value, e) || (l.value = e);
|
|
23341
|
+
}
|
|
23342
|
+
let c = p.value.placement ?? "bottom";
|
|
23343
|
+
c === "bottom" && r - o.bottom < a + 12 && o.top > r - o.bottom ? c = "top" : c === "top" && o.top < a + 12 && r - o.bottom > o.top ? c = "bottom" : c === "right" && t - o.right < i + 12 && o.left > t - o.right ? c = "left" : c === "left" && o.left < i + 12 && t - o.right > o.left && (c = "right"), (c === "left" || c === "right") && t < i + o.width + 24 + 16 && (c = r - o.bottom >= o.top ? "bottom" : "top"), f.value = c;
|
|
23344
|
+
let m = {}, h = { position: "absolute" }, g = o.left + o.width / 2, _ = o.top + o.height / 2;
|
|
23345
|
+
if (c === "bottom" || c === "top") {
|
|
23346
|
+
let e = g - i / 2;
|
|
23347
|
+
e = Math.max(8, Math.min(e, t - i - 8)), m.left = `${e}px`, m.width = `${i}px`, h.left = `${Math.max(12, Math.min(g - e, i - 8 - 4))}px`, h.transform = "translateX(-50%)", h.borderLeft = "8px solid transparent", h.borderRight = "8px solid transparent", c === "bottom" ? (m.top = `${o.bottom + 12}px`, h.top = "-8px", h.borderBottom = "8px solid var(--color-surface-container-high)") : (m.bottom = `${r - o.top + 12}px`, h.bottom = "-8px", h.borderTop = "8px solid var(--color-surface-container-high)");
|
|
23313
23348
|
} else {
|
|
23314
|
-
let e =
|
|
23315
|
-
e = Math.max(
|
|
23349
|
+
let e = _;
|
|
23350
|
+
e = Math.max(8 + a / 2, Math.min(e, r - 8 - a / 2)), m.top = `${e}px`, m.transform = "translateY(-50%)", h.top = `${Math.max(12, Math.min(_ - e + a / 2, a - 8 - 4))}px`, h.transform = "translateY(-50%)", h.borderTop = "8px solid transparent", h.borderBottom = "8px solid transparent", c === "right" ? (m.left = `${o.right + 12}px`, h.left = "-8px", h.borderRight = "8px solid var(--color-surface-container-high)") : (m.right = `${t - o.left + 12}px`, h.right = "-8px", h.borderLeft = "8px solid var(--color-surface-container-high)");
|
|
23316
23351
|
}
|
|
23317
|
-
|
|
23352
|
+
y(u.value, m) || (u.value = m), y(d.value, h) || (d.value = h);
|
|
23318
23353
|
}
|
|
23319
|
-
function
|
|
23320
|
-
|
|
23354
|
+
function T() {
|
|
23355
|
+
p.value && !n.interactive && v(p.value)?.scrollIntoView({
|
|
23321
23356
|
behavior: "smooth",
|
|
23322
23357
|
block: "center"
|
|
23323
23358
|
});
|
|
23324
23359
|
}
|
|
23325
|
-
function
|
|
23326
|
-
|
|
23360
|
+
function E() {
|
|
23361
|
+
p.value && (document.querySelectorAll(".m3-tour-highlight").forEach((e) => e.classList.remove("m3-tour-highlight")), !n.interactive && v(p.value)?.classList.add("m3-tour-highlight"));
|
|
23327
23362
|
}
|
|
23328
|
-
function
|
|
23363
|
+
function D() {
|
|
23329
23364
|
document.querySelectorAll(".m3-tour-highlight").forEach((e) => e.classList.remove("m3-tour-highlight"));
|
|
23330
23365
|
}
|
|
23331
|
-
function
|
|
23332
|
-
|
|
23366
|
+
function O() {
|
|
23367
|
+
h.value ? (A(), i("finish")) : o.value++;
|
|
23333
23368
|
}
|
|
23334
|
-
function
|
|
23335
|
-
|
|
23369
|
+
function k() {
|
|
23370
|
+
m.value || o.value--;
|
|
23336
23371
|
}
|
|
23337
|
-
function
|
|
23338
|
-
|
|
23372
|
+
function A() {
|
|
23373
|
+
C(), D(), n.step === void 0 && (a.value = 0), i("update:modelValue", !1);
|
|
23339
23374
|
}
|
|
23340
|
-
|
|
23375
|
+
function j() {
|
|
23341
23376
|
n.modelValue && Ue(() => {
|
|
23342
|
-
|
|
23377
|
+
E(), T(), w();
|
|
23343
23378
|
});
|
|
23344
|
-
}
|
|
23345
|
-
|
|
23379
|
+
}
|
|
23380
|
+
return Q([() => n.modelValue, o], j), Q(() => n.modelValue, (e) => {
|
|
23381
|
+
e ? S() : (C(), D());
|
|
23382
|
+
}), qe(() => {
|
|
23383
|
+
n.modelValue && (S(), j());
|
|
23384
|
+
}), Q(() => n.interactive, () => {
|
|
23385
|
+
n.modelValue && (C(), S(), E());
|
|
23346
23386
|
}), Ge(() => {
|
|
23347
|
-
|
|
23348
|
-
}), (t, n) => (K(), R(je, { to: "body" }, [
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23356
|
-
|
|
23357
|
-
|
|
23358
|
-
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
}, {
|
|
23362
|
-
default: $(() => [e.modelValue && u.value ? (K(), B("div", {
|
|
23387
|
+
C(), D();
|
|
23388
|
+
}), (t, n) => (K(), R(je, { to: "body" }, [
|
|
23389
|
+
H(Me, {
|
|
23390
|
+
name: "m3-tour",
|
|
23391
|
+
appear: ""
|
|
23392
|
+
}, {
|
|
23393
|
+
default: $(() => [e.modelValue && p.value && !e.interactive ? (K(), B("div", {
|
|
23394
|
+
key: 0,
|
|
23395
|
+
class: "fixed inset-0 z-200 bg-scrim/32",
|
|
23396
|
+
onClick: A
|
|
23397
|
+
})) : z("", !0)]),
|
|
23398
|
+
_: 1
|
|
23399
|
+
}),
|
|
23400
|
+
e.modelValue && p.value && e.interactive && l.value ? (K(), B("div", {
|
|
23363
23401
|
key: 0,
|
|
23364
|
-
class: "
|
|
23365
|
-
style: G(
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
type: "button",
|
|
23374
|
-
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",
|
|
23375
|
-
onClick: C
|
|
23376
|
-
}, [H(F, {
|
|
23377
|
-
name: "close",
|
|
23378
|
-
size: 16
|
|
23379
|
-
})], 8, zE)]),
|
|
23380
|
-
V("h3", BE, X(u.value.title), 1),
|
|
23381
|
-
V("p", VE, X(u.value.content), 1),
|
|
23382
|
-
V("div", HE, [(K(!0), B(I, null, J(e.steps, (e, t) => (K(), B("div", {
|
|
23383
|
-
key: t,
|
|
23384
|
-
class: W(["h-1.5 rounded-full transition-all duration-200", t === a.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
23385
|
-
}, null, 2))), 128))]),
|
|
23386
|
-
V("div", UE, [d.value ? (K(), B("span", WE)) : (K(), R(ye, {
|
|
23402
|
+
class: "m3-tour-ring pointer-events-none fixed z-201 rounded-xl",
|
|
23403
|
+
style: G(l.value),
|
|
23404
|
+
"aria-hidden": "true"
|
|
23405
|
+
}, null, 4)) : z("", !0),
|
|
23406
|
+
H(Me, {
|
|
23407
|
+
name: "m3-tour",
|
|
23408
|
+
appear: ""
|
|
23409
|
+
}, {
|
|
23410
|
+
default: $(() => [e.modelValue && p.value ? (K(), B("div", {
|
|
23387
23411
|
key: 0,
|
|
23388
|
-
|
|
23389
|
-
|
|
23390
|
-
|
|
23391
|
-
|
|
23392
|
-
|
|
23393
|
-
|
|
23394
|
-
|
|
23395
|
-
|
|
23396
|
-
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
|
|
23412
|
+
ref_key: "tooltipEl",
|
|
23413
|
+
ref: s,
|
|
23414
|
+
role: e.interactive ? "region" : "dialog",
|
|
23415
|
+
"aria-label": p.value.title,
|
|
23416
|
+
class: "fixed z-202 w-80 max-w-[calc(100vw-1rem)] rounded-xl bg-surface-container-high p-5 shadow-elevation-3",
|
|
23417
|
+
style: G(u.value)
|
|
23418
|
+
}, [
|
|
23419
|
+
V("div", {
|
|
23420
|
+
class: "h-0 w-0",
|
|
23421
|
+
style: G(d.value)
|
|
23422
|
+
}, null, 4),
|
|
23423
|
+
V("div", RE, [Y(t.$slots, "indicator", {
|
|
23424
|
+
index: o.value,
|
|
23425
|
+
count: e.steps.length
|
|
23426
|
+
}, () => [V("span", zE, X(o.value + 1) + " / " + X(e.steps.length), 1)]), V("button", {
|
|
23427
|
+
"aria-label": Z(r).close,
|
|
23428
|
+
type: "button",
|
|
23429
|
+
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",
|
|
23430
|
+
onClick: A
|
|
23431
|
+
}, [H(F, {
|
|
23432
|
+
name: "close",
|
|
23433
|
+
size: 16
|
|
23434
|
+
})], 8, BE)]),
|
|
23435
|
+
Y(t.$slots, "content", {
|
|
23436
|
+
step: p.value,
|
|
23437
|
+
index: o.value
|
|
23438
|
+
}, () => [V("h3", VE, X(p.value.title), 1), V("p", HE, X(p.value.content), 1)]),
|
|
23439
|
+
Y(t.$slots, "progress", {
|
|
23440
|
+
index: o.value,
|
|
23441
|
+
count: e.steps.length
|
|
23442
|
+
}, () => [V("div", UE, [(K(!0), B(I, null, J(e.steps, (e, t) => (K(), B("div", {
|
|
23443
|
+
key: t,
|
|
23444
|
+
class: W(["h-1.5 rounded-full transition-all duration-200", t === o.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
23445
|
+
}, null, 2))), 128))])]),
|
|
23446
|
+
Y(t.$slots, "actions", {
|
|
23447
|
+
step: p.value,
|
|
23448
|
+
index: o.value,
|
|
23449
|
+
isFirst: m.value,
|
|
23450
|
+
isLast: h.value,
|
|
23451
|
+
next: O,
|
|
23452
|
+
prev: k,
|
|
23453
|
+
close: A
|
|
23454
|
+
}, () => [V("div", WE, [m.value ? (K(), B("span", GE)) : (K(), R(ye, {
|
|
23455
|
+
key: 0,
|
|
23456
|
+
variant: "text",
|
|
23457
|
+
onClick: k
|
|
23458
|
+
}, {
|
|
23459
|
+
default: $(() => [Ie(X(e.prevLabel ?? Z(r).previous), 1)]),
|
|
23460
|
+
_: 1
|
|
23461
|
+
})), H(ye, { onClick: O }, {
|
|
23462
|
+
default: $(() => [Ie(X(h.value ? e.finishLabel ?? Z(r).finish : e.nextLabel ?? Z(r).next), 1)]),
|
|
23463
|
+
_: 1
|
|
23464
|
+
})])])
|
|
23465
|
+
], 12, LE)) : z("", !0)]),
|
|
23466
|
+
_: 3
|
|
23467
|
+
})
|
|
23468
|
+
]));
|
|
23400
23469
|
}
|
|
23401
|
-
}),
|
|
23470
|
+
}), qE = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-surface-container-low" }, JE = { class: "flex items-center gap-4 px-4 pt-3 pb-2" }, YE = { class: "min-w-0 flex-1 truncate text-title-medium text-on-surface" }, XE = { class: "shrink-0 text-label-medium tabular-nums text-on-surface-variant" }, ZE = {
|
|
23402
23471
|
key: 0,
|
|
23403
23472
|
class: "px-3 pb-2"
|
|
23404
|
-
},
|
|
23473
|
+
}, QE = { class: "flex h-10 items-center gap-2 rounded-full bg-surface-container-high pr-1 pl-3 focus-within:ring-2 focus-within:ring-secondary" }, $E = ["value", "placeholder"], eD = ["aria-label"], tD = [
|
|
23405
23474
|
"tabindex",
|
|
23406
23475
|
"role",
|
|
23407
23476
|
"aria-checked",
|
|
@@ -23409,13 +23478,13 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23409
23478
|
"onClick",
|
|
23410
23479
|
"onDblclick",
|
|
23411
23480
|
"onKeydown"
|
|
23412
|
-
],
|
|
23481
|
+
], nD = {
|
|
23413
23482
|
key: 0,
|
|
23414
23483
|
class: "relative min-w-0 flex-1"
|
|
23415
|
-
},
|
|
23484
|
+
}, rD = { class: "relative min-w-0 flex-1" }, iD = {
|
|
23416
23485
|
key: 0,
|
|
23417
23486
|
class: "absolute inset-0 flex flex-col items-center justify-center gap-2 p-6 text-center"
|
|
23418
|
-
},
|
|
23487
|
+
}, aD = { class: "text-body-medium text-on-surface-variant" }, oD = "button, a, select, textarea, [contenteditable], [data-transfer-action], input:not([type=\"checkbox\"])", sD = /*#__PURE__*/ re(/* @__PURE__ */ U({
|
|
23419
23488
|
__name: "_MTransferPane",
|
|
23420
23489
|
props: {
|
|
23421
23490
|
title: {},
|
|
@@ -23455,7 +23524,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23455
23524
|
right: "auto"
|
|
23456
23525
|
});
|
|
23457
23526
|
}
|
|
23458
|
-
let u = (e) => !!e.target.closest(
|
|
23527
|
+
let u = (e) => !!e.target.closest(oD);
|
|
23459
23528
|
function d(e, t) {
|
|
23460
23529
|
e.target.closest("label") || u(e) || r("toggle", t);
|
|
23461
23530
|
}
|
|
@@ -23465,8 +23534,8 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23465
23534
|
function p(e, t) {
|
|
23466
23535
|
n.bare && e.target === e.currentTarget && (e.preventDefault(), r("toggle", t));
|
|
23467
23536
|
}
|
|
23468
|
-
return (t, n) => (K(), B("section",
|
|
23469
|
-
V("header",
|
|
23537
|
+
return (t, n) => (K(), B("section", qE, [
|
|
23538
|
+
V("header", JE, [
|
|
23470
23539
|
H(he, {
|
|
23471
23540
|
"model-value": a.value,
|
|
23472
23541
|
indeterminate: o.value,
|
|
@@ -23479,10 +23548,10 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23479
23548
|
"disabled",
|
|
23480
23549
|
"aria-label"
|
|
23481
23550
|
]),
|
|
23482
|
-
V("h3",
|
|
23483
|
-
V("span",
|
|
23551
|
+
V("h3", YE, X(e.title), 1),
|
|
23552
|
+
V("span", XE, X(i.value) + "/" + X(e.items.length), 1)
|
|
23484
23553
|
]),
|
|
23485
|
-
e.filterable ? (K(), B("div",
|
|
23554
|
+
e.filterable ? (K(), B("div", ZE, [V("div", QE, [
|
|
23486
23555
|
H(F, {
|
|
23487
23556
|
name: "search",
|
|
23488
23557
|
size: 20,
|
|
@@ -23494,7 +23563,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23494
23563
|
placeholder: e.searchPlaceholder,
|
|
23495
23564
|
class: "min-w-0 flex-1 bg-transparent text-body-medium text-on-surface caret-primary outline-none placeholder:text-on-surface-variant",
|
|
23496
23565
|
onInput: n[1] ||= (e) => r("update:search", e.target.value)
|
|
23497
|
-
}, null, 40,
|
|
23566
|
+
}, null, 40, $E),
|
|
23498
23567
|
e.search ? (K(), B("button", {
|
|
23499
23568
|
key: 0,
|
|
23500
23569
|
type: "button",
|
|
@@ -23504,7 +23573,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23504
23573
|
}, [H(F, {
|
|
23505
23574
|
name: "close",
|
|
23506
23575
|
size: 18
|
|
23507
|
-
})], 8,
|
|
23576
|
+
})], 8, eD)) : z("", !0)
|
|
23508
23577
|
])])) : z("", !0),
|
|
23509
23578
|
V("div", {
|
|
23510
23579
|
ref_key: "listEl",
|
|
@@ -23547,7 +23616,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23547
23616
|
"aria-label",
|
|
23548
23617
|
"onUpdate:modelValue"
|
|
23549
23618
|
]),
|
|
23550
|
-
t.$slots.item ? (K(), B("div",
|
|
23619
|
+
t.$slots.item ? (K(), B("div", nD, [Y(t.$slots, "item", {
|
|
23551
23620
|
item: n,
|
|
23552
23621
|
checked: e.checked.has(n.value),
|
|
23553
23622
|
toggle: () => r("toggle", n.value),
|
|
@@ -23558,20 +23627,20 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23558
23627
|
}, [H(F, {
|
|
23559
23628
|
name: n.icon,
|
|
23560
23629
|
size: 20
|
|
23561
|
-
}, null, 8, ["name"])], 2)) : z("", !0), V("span",
|
|
23630
|
+
}, null, 8, ["name"])], 2)) : z("", !0), V("span", rD, [V("span", { class: W(["block truncate text-body-large", e.checked.has(n.value) ? "text-on-secondary-container" : "text-on-surface"]) }, X(n.label), 3), n.description ? (K(), B("span", {
|
|
23562
23631
|
key: 0,
|
|
23563
23632
|
class: W(["block truncate text-body-medium", e.checked.has(n.value) ? "text-on-secondary-container/80" : "text-on-surface-variant"])
|
|
23564
23633
|
}, X(n.description), 3)) : z("", !0)])], 64))
|
|
23565
|
-
], 64))], 42,
|
|
23634
|
+
], 64))], 42, tD))), 128))]),
|
|
23566
23635
|
_: 3
|
|
23567
|
-
}, 8, ["name", "class"]), e.items.length ? z("", !0) : (K(), B("div",
|
|
23636
|
+
}, 8, ["name", "class"]), e.items.length ? z("", !0) : (K(), B("div", iD, [Y(t.$slots, "empty", {}, () => [H(F, {
|
|
23568
23637
|
name: e.search ? "search_off" : "inbox",
|
|
23569
23638
|
size: 32,
|
|
23570
23639
|
class: "text-on-surface-variant/60"
|
|
23571
|
-
}, null, 8, ["name"]), V("p",
|
|
23640
|
+
}, null, 8, ["name"]), V("p", aD, X(e.emptyText), 1)], !0)]))], 4)
|
|
23572
23641
|
]));
|
|
23573
23642
|
}
|
|
23574
|
-
}), [["__scopeId", "data-v-50eeaba2"]]),
|
|
23643
|
+
}), [["__scopeId", "data-v-50eeaba2"]]), cD = { class: "@container" }, lD = { class: "flex flex-col items-stretch gap-3 @xl:flex-row" }, uD = { class: "flex items-center justify-center gap-2 @xl:flex-col" }, dD = /* @__PURE__ */ U({
|
|
23575
23644
|
__name: "MTransferList",
|
|
23576
23645
|
props: {
|
|
23577
23646
|
modelValue: {},
|
|
@@ -23643,8 +23712,8 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23643
23712
|
let t = new Set(o.value);
|
|
23644
23713
|
t.delete(e), o.value = t;
|
|
23645
23714
|
}
|
|
23646
|
-
return (t, r) => (K(), B("div",
|
|
23647
|
-
H(
|
|
23715
|
+
return (t, r) => (K(), B("div", cD, [V("div", lD, [
|
|
23716
|
+
H(sD, {
|
|
23648
23717
|
title: e.sourceTitle ?? Z(n).available,
|
|
23649
23718
|
items: d.value,
|
|
23650
23719
|
checked: a.value,
|
|
@@ -23685,7 +23754,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23685
23754
|
"clear-search-label",
|
|
23686
23755
|
"bare"
|
|
23687
23756
|
]),
|
|
23688
|
-
V("div",
|
|
23757
|
+
V("div", uD, [
|
|
23689
23758
|
H(C, {
|
|
23690
23759
|
icon: "keyboard_double_arrow_right",
|
|
23691
23760
|
variant: "outlined",
|
|
@@ -23719,7 +23788,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23719
23788
|
onClick: S
|
|
23720
23789
|
}, null, 8, ["label", "disabled"])
|
|
23721
23790
|
]),
|
|
23722
|
-
H(
|
|
23791
|
+
H(sD, {
|
|
23723
23792
|
title: e.targetTitle ?? Z(n).selected,
|
|
23724
23793
|
items: f.value,
|
|
23725
23794
|
checked: o.value,
|
|
@@ -23762,13 +23831,13 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23762
23831
|
])
|
|
23763
23832
|
])]));
|
|
23764
23833
|
}
|
|
23765
|
-
}),
|
|
23834
|
+
}), fD = ["aria-expanded", "aria-selected"], pD = { class: "flex w-6 shrink-0 items-center justify-center" }, mD = ["aria-label", "disabled"], hD = {
|
|
23766
23835
|
key: 2,
|
|
23767
23836
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
23768
|
-
},
|
|
23837
|
+
}, gD = {
|
|
23769
23838
|
key: 0,
|
|
23770
23839
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
23771
|
-
},
|
|
23840
|
+
}, _D = /* @__PURE__ */ U({
|
|
23772
23841
|
__name: "_MTreeNode",
|
|
23773
23842
|
props: {
|
|
23774
23843
|
node: {},
|
|
@@ -23813,7 +23882,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23813
23882
|
]),
|
|
23814
23883
|
onClick: f
|
|
23815
23884
|
}, [
|
|
23816
|
-
V("div",
|
|
23885
|
+
V("div", pD, [i.value ? (K(), B("button", {
|
|
23817
23886
|
key: 0,
|
|
23818
23887
|
"aria-label": a.value ? Z(t).collapse : Z(t).expand,
|
|
23819
23888
|
type: "button",
|
|
@@ -23823,7 +23892,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23823
23892
|
}, [H(F, {
|
|
23824
23893
|
name: "chevron_right",
|
|
23825
23894
|
size: 16
|
|
23826
|
-
})], 10,
|
|
23895
|
+
})], 10, mD)) : z("", !0)]),
|
|
23827
23896
|
Z(r).checkable.value ? (K(), B("div", {
|
|
23828
23897
|
key: 0,
|
|
23829
23898
|
class: "shrink-0",
|
|
@@ -23845,7 +23914,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23845
23914
|
class: W(["shrink-0 transition-colors", o.value ? "text-primary" : "text-on-surface-variant"])
|
|
23846
23915
|
}, null, 8, ["name", "class"])) : z("", !0),
|
|
23847
23916
|
V("span", { class: W(["min-w-0 flex-1 truncate text-body-medium transition-colors", o.value ? "font-medium text-primary" : "text-on-surface"]) }, [Y(n.$slots, "label", { node: e.node }, () => [Ie(X(e.node.label), 1)])], 2),
|
|
23848
|
-
i.value && Z(r).checkable.value ? (K(), B("span",
|
|
23917
|
+
i.value && Z(r).checkable.value ? (K(), B("span", hD, X(l.value) + "/" + X(s.value.length), 1)) : z("", !0),
|
|
23849
23918
|
Y(n.$slots, "trailing", { node: e.node })
|
|
23850
23919
|
], 2), H(Me, {
|
|
23851
23920
|
onEnter: h,
|
|
@@ -23853,7 +23922,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23853
23922
|
onLeave: _,
|
|
23854
23923
|
onAfterLeave: v
|
|
23855
23924
|
}, {
|
|
23856
|
-
default: $(() => [a.value && i.value ? (K(), B("div",
|
|
23925
|
+
default: $(() => [a.value && i.value ? (K(), B("div", gD, [(K(!0), B(I, null, J(e.node.children, (t) => (K(), R(_D, {
|
|
23857
23926
|
key: t.id,
|
|
23858
23927
|
node: t,
|
|
23859
23928
|
depth: e.depth + 1
|
|
@@ -23862,15 +23931,15 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23862
23931
|
fn: $((e) => [Y(n.$slots, t, He({ ref_for: !0 }, e ?? {}))])
|
|
23863
23932
|
}))]), 1032, ["node", "depth"]))), 128))])) : z("", !0)]),
|
|
23864
23933
|
_: 3
|
|
23865
|
-
})], 8,
|
|
23934
|
+
})], 8, fD));
|
|
23866
23935
|
}
|
|
23867
|
-
}),
|
|
23936
|
+
}), vD = {
|
|
23868
23937
|
role: "tree",
|
|
23869
23938
|
class: "flex flex-col"
|
|
23870
|
-
},
|
|
23939
|
+
}, yD = {
|
|
23871
23940
|
key: 1,
|
|
23872
23941
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
23873
|
-
},
|
|
23942
|
+
}, bD = { class: "text-body-medium" }, xD = /* @__PURE__ */ U({
|
|
23874
23943
|
__name: "MTree",
|
|
23875
23944
|
props: {
|
|
23876
23945
|
nodes: {},
|
|
@@ -23936,20 +24005,20 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23936
24005
|
return t({
|
|
23937
24006
|
expandAll: _,
|
|
23938
24007
|
collapseAll: v
|
|
23939
|
-
}), (t, n) => (K(), B("div",
|
|
24008
|
+
}), (t, n) => (K(), B("div", vD, [e.nodes.length ? (K(!0), B(I, { key: 0 }, J(e.nodes, (e) => (K(), R(_D, {
|
|
23940
24009
|
key: e.id,
|
|
23941
24010
|
node: e,
|
|
23942
24011
|
depth: 0
|
|
23943
24012
|
}, Fe({ _: 2 }, [J(t.$slots, (e, n) => ({
|
|
23944
24013
|
name: n,
|
|
23945
24014
|
fn: $((e) => [Y(t.$slots, n, He({ ref_for: !0 }, e ?? {}))])
|
|
23946
|
-
}))]), 1032, ["node"]))), 128)) : (K(), B("div",
|
|
24015
|
+
}))]), 1032, ["node"]))), 128)) : (K(), B("div", yD, [H(F, {
|
|
23947
24016
|
name: "account_tree",
|
|
23948
24017
|
size: 32,
|
|
23949
24018
|
class: "opacity-30"
|
|
23950
|
-
}), V("p",
|
|
24019
|
+
}), V("p", bD, X(e.emptyText ?? Z(i).noItems), 1)]))]));
|
|
23951
24020
|
}
|
|
23952
|
-
}),
|
|
24021
|
+
}), SD = { class: "m3-transition isolate grid overflow-hidden" }, CD = .2, wD = 90, TD = 210, ED = .8, DD = 1.05, OD = /* @__PURE__ */ U({
|
|
23953
24022
|
__name: "MTransition",
|
|
23954
24023
|
props: {
|
|
23955
24024
|
type: { default: "shared-axis" },
|
|
@@ -23994,20 +24063,20 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
23994
24063
|
};
|
|
23995
24064
|
if (t.type === "fade-through") {
|
|
23996
24065
|
a(i, {
|
|
23997
|
-
from:
|
|
24066
|
+
from: ED,
|
|
23998
24067
|
to: 1,
|
|
23999
24068
|
transform: s,
|
|
24000
24069
|
fade: {
|
|
24001
24070
|
from: 0,
|
|
24002
24071
|
to: 1,
|
|
24003
|
-
duration:
|
|
24004
|
-
delay:
|
|
24072
|
+
duration: TD,
|
|
24073
|
+
delay: wD
|
|
24005
24074
|
}
|
|
24006
24075
|
}, l);
|
|
24007
24076
|
return;
|
|
24008
24077
|
}
|
|
24009
24078
|
t.reverse && (i.style.zIndex = "-1"), a(i, {
|
|
24010
|
-
from: (t.reverse ? -1 : 1) *
|
|
24079
|
+
from: (t.reverse ? -1 : 1) * CD,
|
|
24011
24080
|
to: 0,
|
|
24012
24081
|
transform: o,
|
|
24013
24082
|
fade: {
|
|
@@ -24024,12 +24093,12 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24024
24093
|
if (t.type === "fade-through") {
|
|
24025
24094
|
a(i, {
|
|
24026
24095
|
from: 1,
|
|
24027
|
-
to:
|
|
24096
|
+
to: DD,
|
|
24028
24097
|
transform: s,
|
|
24029
24098
|
fade: {
|
|
24030
24099
|
from: 1,
|
|
24031
24100
|
to: 0,
|
|
24032
|
-
duration:
|
|
24101
|
+
duration: wD,
|
|
24033
24102
|
delay: 0
|
|
24034
24103
|
}
|
|
24035
24104
|
}, l);
|
|
@@ -24037,7 +24106,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24037
24106
|
}
|
|
24038
24107
|
a(i, {
|
|
24039
24108
|
from: 0,
|
|
24040
|
-
to: (t.reverse ? 1 : -1) *
|
|
24109
|
+
to: (t.reverse ? 1 : -1) * CD,
|
|
24041
24110
|
transform: o,
|
|
24042
24111
|
fade: {
|
|
24043
24112
|
from: 1,
|
|
@@ -24049,7 +24118,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24049
24118
|
function d(e) {
|
|
24050
24119
|
i.get(e)?.();
|
|
24051
24120
|
}
|
|
24052
|
-
return (t, n) => (K(), B("div",
|
|
24121
|
+
return (t, n) => (K(), B("div", SD, [H(Me, {
|
|
24053
24122
|
css: !1,
|
|
24054
24123
|
appear: e.appear,
|
|
24055
24124
|
onEnter: l,
|
|
@@ -24061,17 +24130,17 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24061
24130
|
_: 3
|
|
24062
24131
|
}, 8, ["appear"])]));
|
|
24063
24132
|
}
|
|
24064
|
-
}),
|
|
24133
|
+
}), kD = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, AD = {
|
|
24065
24134
|
key: 0,
|
|
24066
24135
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
24067
|
-
},
|
|
24136
|
+
}, jD = { class: "overflow-x-auto" }, MD = { class: "w-full border-collapse" }, ND = { class: "bg-surface-container-high" }, PD = ["onClick"], FD = [
|
|
24068
24137
|
"aria-label",
|
|
24069
24138
|
"aria-expanded",
|
|
24070
24139
|
"onClick"
|
|
24071
|
-
],
|
|
24140
|
+
], ID = {
|
|
24072
24141
|
key: 1,
|
|
24073
24142
|
class: "w-6 shrink-0"
|
|
24074
|
-
},
|
|
24143
|
+
}, LD = { key: 0 }, RD = ["colspan"], zD = { class: "text-body-medium text-on-surface-variant" }, BD = /* @__PURE__ */ U({
|
|
24075
24144
|
__name: "MTreeTable",
|
|
24076
24145
|
props: {
|
|
24077
24146
|
columns: {},
|
|
@@ -24127,10 +24196,10 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24127
24196
|
function p(e) {
|
|
24128
24197
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
24129
24198
|
}
|
|
24130
|
-
return (t, n) => (K(), B("div",
|
|
24199
|
+
return (t, n) => (K(), B("div", kD, [t.$slots.toolbar ? (K(), B("div", AD, [Y(t.$slots, "toolbar", {
|
|
24131
24200
|
expandAll: d,
|
|
24132
24201
|
collapseAll: f
|
|
24133
|
-
})])) : z("", !0), V("div",
|
|
24202
|
+
})])) : z("", !0), V("div", jD, [V("table", MD, [V("thead", null, [V("tr", ND, [(K(!0), B(I, null, J(e.columns, (t, n) => (K(), B("th", {
|
|
24134
24203
|
key: t.key,
|
|
24135
24204
|
style: G(t.width ? { width: t.width } : void 0),
|
|
24136
24205
|
class: W([
|
|
@@ -24163,7 +24232,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24163
24232
|
}, [H(F, {
|
|
24164
24233
|
name: "chevron_right",
|
|
24165
24234
|
size: 18
|
|
24166
|
-
})], 10,
|
|
24235
|
+
})], 10, FD)) : (K(), B("span", ID)), Y(t.$slots, `cell-${i.key}`, {
|
|
24167
24236
|
row: n.row,
|
|
24168
24237
|
value: n.row[i.key],
|
|
24169
24238
|
depth: n.depth
|
|
@@ -24171,19 +24240,19 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24171
24240
|
row: n.row,
|
|
24172
24241
|
value: n.row[i.key],
|
|
24173
24242
|
depth: n.depth
|
|
24174
|
-
}, () => [Ie(X(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10,
|
|
24243
|
+
}, () => [Ie(X(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10, PD))), 128)), u.value.length ? z("", !0) : (K(), B("tr", LD, [V("td", {
|
|
24175
24244
|
colspan: e.columns.length,
|
|
24176
24245
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
24177
24246
|
}, [H(F, {
|
|
24178
24247
|
name: "account_tree",
|
|
24179
24248
|
size: 36,
|
|
24180
24249
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
24181
|
-
}), V("p",
|
|
24250
|
+
}), V("p", zD, X(e.emptyText ?? Z(r).noResults), 1)], 8, RD)]))])])])]));
|
|
24182
24251
|
}
|
|
24183
|
-
}),
|
|
24252
|
+
}), VD = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, HD = { class: "flex bg-surface-container-high" }, UD = ["onClick"], WD = { class: "inline-flex items-center gap-1" }, GD = {
|
|
24184
24253
|
key: 0,
|
|
24185
24254
|
class: "inline-flex"
|
|
24186
|
-
},
|
|
24255
|
+
}, KD = ["onClick"], qD = { class: "truncate" }, JD = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, YD = { class: "text-label-small text-on-surface-variant" }, XD = /* @__PURE__ */ U({
|
|
24187
24256
|
__name: "MVirtualTable",
|
|
24188
24257
|
props: {
|
|
24189
24258
|
columns: {},
|
|
@@ -24229,8 +24298,8 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24229
24298
|
function g(e) {
|
|
24230
24299
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
24231
24300
|
}
|
|
24232
|
-
return (t, n) => (K(), B("div",
|
|
24233
|
-
V("div",
|
|
24301
|
+
return (t, n) => (K(), B("div", VD, [
|
|
24302
|
+
V("div", HD, [(K(!0), B(I, null, J(e.columns, (e) => (K(), B("div", {
|
|
24234
24303
|
key: e.key,
|
|
24235
24304
|
style: G({
|
|
24236
24305
|
width: e.width || "auto",
|
|
@@ -24242,7 +24311,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24242
24311
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
24243
24312
|
]),
|
|
24244
24313
|
onClick: (t) => e.sortable ? l(e.key) : void 0
|
|
24245
|
-
}, [V("span",
|
|
24314
|
+
}, [V("span", WD, [Ie(X(e.label) + " ", 1), e.sortable ? (K(), B("span", GD, [s.value === e.key && c.value === "asc" ? (K(), R(F, {
|
|
24246
24315
|
key: 0,
|
|
24247
24316
|
name: "arrow_upward",
|
|
24248
24317
|
size: 14,
|
|
@@ -24257,7 +24326,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24257
24326
|
name: "unfold_more",
|
|
24258
24327
|
size: 14,
|
|
24259
24328
|
class: "opacity-30"
|
|
24260
|
-
}))])) : z("", !0)])], 14,
|
|
24329
|
+
}))])) : z("", !0)])], 14, UD))), 128))]),
|
|
24261
24330
|
V("div", {
|
|
24262
24331
|
ref_key: "scrollEl",
|
|
24263
24332
|
ref: i,
|
|
@@ -24285,11 +24354,11 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24285
24354
|
}, [Y(t.$slots, `cell-${e.key}`, {
|
|
24286
24355
|
row: n,
|
|
24287
24356
|
value: n[e.key]
|
|
24288
|
-
}, () => [V("span",
|
|
24289
|
-
V("div",
|
|
24357
|
+
}, () => [V("span", qD, X(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, KD))), 128))], 4)], 36),
|
|
24358
|
+
V("div", JD, [V("span", YD, [Ie(X(u.value.length.toLocaleString()) + " filas ", 1), f.value.end - f.value.start < u.value.length ? (K(), B(I, { key: 0 }, [Ie(" · mostrando " + X(f.value.start + 1) + "–" + X(f.value.end), 1)], 64)) : z("", !0)])])
|
|
24290
24359
|
]));
|
|
24291
24360
|
}
|
|
24292
|
-
}),
|
|
24361
|
+
}), ZD = ["aria-label"], QD = ["aria-label", "title"], $D = ["aria-label", "title"], eO = ["aria-label", "title"], tO = { class: "min-h-0 flex-1 overflow-auto" }, nO = ["onPointerdown"], rO = 10, iO = 0, aO = q(null), oO = /*#__PURE__*/ re(/* @__PURE__ */ U({
|
|
24293
24362
|
__name: "MWindow",
|
|
24294
24363
|
props: {
|
|
24295
24364
|
modelValue: { type: Boolean },
|
|
@@ -24344,7 +24413,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24344
24413
|
"focus"
|
|
24345
24414
|
],
|
|
24346
24415
|
setup(e, { expose: t, emit: n }) {
|
|
24347
|
-
let r = c(), i = ++
|
|
24416
|
+
let r = c(), i = ++iO, a = e, o = n, s = q(a.x), l = q(a.y), u = q(parseInt(a.width) || 400), d = q(parseInt(a.height) || 300), f = q(!1), p = q(!1), m = q(rO), h = L(() => aO.value === i), g = q(!1), _ = q(!1), v, y = {
|
|
24348
24417
|
x: 0,
|
|
24349
24418
|
y: 0,
|
|
24350
24419
|
w: 0,
|
|
@@ -24368,7 +24437,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24368
24437
|
zIndex: m.value
|
|
24369
24438
|
}));
|
|
24370
24439
|
function oe() {
|
|
24371
|
-
|
|
24440
|
+
aO.value !== i && o("focus"), aO.value = i, rO++, m.value = rO;
|
|
24372
24441
|
}
|
|
24373
24442
|
function se() {
|
|
24374
24443
|
window.addEventListener("pointermove", Ce), window.addEventListener("pointerup", we), window.addEventListener("pointercancel", we);
|
|
@@ -24530,7 +24599,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24530
24599
|
Re(), U();
|
|
24531
24600
|
}));
|
|
24532
24601
|
}), Je(() => {
|
|
24533
|
-
ce(), clearTimeout(v), cancelAnimationFrame(pe),
|
|
24602
|
+
ce(), clearTimeout(v), cancelAnimationFrame(pe), aO.value === i && (aO.value = null), Le?.disconnect();
|
|
24534
24603
|
}), t({
|
|
24535
24604
|
focus: oe,
|
|
24536
24605
|
toggleMaximize: Ne,
|
|
@@ -24615,7 +24684,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24615
24684
|
}, [H(F, {
|
|
24616
24685
|
name: f.value ? "expand_content" : "minimize",
|
|
24617
24686
|
size: 18
|
|
24618
|
-
}, null, 8, ["name"])], 8,
|
|
24687
|
+
}, null, 8, ["name"])], 8, QD)) : z("", !0),
|
|
24619
24688
|
e.maximizable ? (K(), B("button", {
|
|
24620
24689
|
key: 1,
|
|
24621
24690
|
type: "button",
|
|
@@ -24626,7 +24695,7 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24626
24695
|
}, [H(F, {
|
|
24627
24696
|
name: p.value ? "close_fullscreen" : "open_in_full",
|
|
24628
24697
|
size: 16
|
|
24629
|
-
}, null, 8, ["name"])], 8,
|
|
24698
|
+
}, null, 8, ["name"])], 8, $D)) : z("", !0),
|
|
24630
24699
|
e.closable ? (K(), B("button", {
|
|
24631
24700
|
key: 2,
|
|
24632
24701
|
type: "button",
|
|
@@ -24637,9 +24706,9 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24637
24706
|
}, [H(F, {
|
|
24638
24707
|
name: "close",
|
|
24639
24708
|
size: 18
|
|
24640
|
-
})], 8,
|
|
24709
|
+
})], 8, eO)) : z("", !0)
|
|
24641
24710
|
], 34),
|
|
24642
|
-
ut(V("div",
|
|
24711
|
+
ut(V("div", tO, [Y(t.$slots, "default", {}, void 0, !0)], 512), [[ct, !f.value || _.value]]),
|
|
24643
24712
|
e.snap && C.value ? (K(), R(je, {
|
|
24644
24713
|
key: 0,
|
|
24645
24714
|
to: C.value
|
|
@@ -24656,13 +24725,13 @@ var bC = /*#__PURE__*/ re(_C, [["render", yC]]), xC = ["disabled"], SC = [
|
|
|
24656
24725
|
key: e.dir,
|
|
24657
24726
|
class: W(["absolute touch-none", [e.class, e.cursor]]),
|
|
24658
24727
|
onPointerdown: (t) => Se(t, e.dir)
|
|
24659
|
-
}, null, 42,
|
|
24660
|
-
], 46,
|
|
24728
|
+
}, null, 42, nO)), 64)) : z("", !0)
|
|
24729
|
+
], 46, ZD)) : z("", !0)]),
|
|
24661
24730
|
_: 3
|
|
24662
24731
|
}));
|
|
24663
24732
|
}
|
|
24664
24733
|
}), [["__scopeId", "data-v-86c88a3c"]]);
|
|
24665
24734
|
//#endregion
|
|
24666
|
-
export { bc as MAbsolute, Ec as MAlert, kc as MAnimatedNumber, el as MAppBar, fl as MAppBarWithSearch, vl as MAppLayout, yl as MAspectRatio, Xc as MAutocomplete, fe as MAvatar, Sl as MBadge, Nl as MBar, ml as MBottomAppBar, ql as MBottomSheet, $l as MBottomSheetScaffold, eu as MBox, ru as MBreadcrumbs, ye as MButton, ou as MButtonGroup, vu as MCalendar, _e as MCard, ld as MCarousel, ud as MCenter, hd as MChatBubble, he as MCheckbox, de as MChip, Bb as MCircleProgressBar, Cd as MColorPicker, M as MColorPickerModal, Ld as MCommandPalette, zd as MConfirmDialog, tf as MContainer, ef as MContainerTransform, lf as MContextMenu, uf as MCopyButton, Bf as MDataTable, Zf as MDatePicker, fp as MDatePickerModal, Sp as MDateRangePicker, Lp as MDateRangePickerModal, le as MDialog, Vp as MDivider, Yp as MDragDropList, Hp as MDragHandle, Zp as MEmoji, om as MEmojiButton, Em as MEmojiSelector, Dm as MEmptyState, Pm as MExpansionPanel, Fm as MExportButton, Bm as MFab, Vm as MFabMenu, ih as MFileUpload, Og as MFixed, Pg as MFlex, Uh as MFloorPlan, bg as MFloorPlanInspector, Gh as MFloorPlanToolbar, Ng as MFooter, Fg as MFullscreen, Ig as MGrid, Hg as MHotkeys, F as MIcon, C as MIconButton, Dg as MImageCropper, Kg as MInfiniteScroll, t_ as MJsonViewer, v_ as MKanban, x_ as MKbd, I_ as MLightbox, ge as MList, eb as MListDetail, z_ as MListGroup, ve as MListItem, L_ as MListSubheader, Oe as MLoadingIndicator, H_ as MLoadingOverlay, Z_ as MMaskField, U_ as MMasonry, Se as MMenu, Ce as MMenuDivider, Te as MMenuItem, bv as MMultiAutocomplete, Kv as MMultiSelect, Yv as MNavigationBar, ky as MNavigationDrawer, Wy as MNavigationRail, Zy as MNavigationSuite, $h as MNumberField, nb as MOverlay, ib as MPageProgress, pf as MPagination, sb as MPasswordMeter, hb as MPinInput, ke as MProgressBar, xb as MPullToRefresh, Kb as MRadio, Yb as MRadioGroup, Qb as MRating, nx as MRelative, ix as MRelativeTime, ax as MResponsive, fx as MResult, Px as MScheduler, Hx as MScheme, uS as MScrollField, Yx as MScrollable, cl as MSearchBar, $x as MSearchField, iS as MSection, Ae as MSeekBar, Ee as MSegmentedButton, OS as MSelect, NS as MShader, zS as MShape, qy as MShortNavigationBar, KS as MSideSheet, JS as MSignaturePad, rC as MSimpleCarousel, aC as MSkeleton, De as MSlider, gs as MSnackbar, bC as MSpacer, gC as MSparkline, ne as MSpinner, wC as MSplitButton, EC as MSplitter, WC as MSpotlightSearch, GC as MStack, ew as MStatCard, gw as MStepper, _w as MSticky, yw as MSubtitle, tb as MSupportingPane, Cw as MSwipeToDismiss, me as MSwitch, Gw as MTable, sT as MTabs, eT as MTagInput, vw as MText, se as MTextField, HT as MTimePicker, fE as MTimePickerModal, qT as MTimeScroll, MT as MTimeline, pE as MTitle, _E as MToggleButton, DE as MToolbar, P as MTooltip, IE as MTopAppBar,
|
|
24735
|
+
export { bc as MAbsolute, Ec as MAlert, kc as MAnimatedNumber, el as MAppBar, fl as MAppBarWithSearch, vl as MAppLayout, yl as MAspectRatio, Xc as MAutocomplete, fe as MAvatar, Sl as MBadge, Nl as MBar, ml as MBottomAppBar, ql as MBottomSheet, $l as MBottomSheetScaffold, eu as MBox, ru as MBreadcrumbs, ye as MButton, ou as MButtonGroup, vu as MCalendar, _e as MCard, ld as MCarousel, ud as MCenter, hd as MChatBubble, he as MCheckbox, de as MChip, Bb as MCircleProgressBar, Cd as MColorPicker, M as MColorPickerModal, Ld as MCommandPalette, zd as MConfirmDialog, tf as MContainer, ef as MContainerTransform, lf as MContextMenu, uf as MCopyButton, Bf as MDataTable, Zf as MDatePicker, fp as MDatePickerModal, Sp as MDateRangePicker, Lp as MDateRangePickerModal, le as MDialog, Vp as MDivider, Yp as MDragDropList, Hp as MDragHandle, Zp as MEmoji, om as MEmojiButton, Em as MEmojiSelector, Dm as MEmptyState, Pm as MExpansionPanel, Fm as MExportButton, Bm as MFab, Vm as MFabMenu, ih as MFileUpload, Og as MFixed, Pg as MFlex, Uh as MFloorPlan, bg as MFloorPlanInspector, Gh as MFloorPlanToolbar, Ng as MFooter, Fg as MFullscreen, Ig as MGrid, Hg as MHotkeys, F as MIcon, C as MIconButton, Dg as MImageCropper, Kg as MInfiniteScroll, t_ as MJsonViewer, v_ as MKanban, x_ as MKbd, I_ as MLightbox, ge as MList, eb as MListDetail, z_ as MListGroup, ve as MListItem, L_ as MListSubheader, Oe as MLoadingIndicator, H_ as MLoadingOverlay, Z_ as MMaskField, U_ as MMasonry, Se as MMenu, Ce as MMenuDivider, Te as MMenuItem, bv as MMultiAutocomplete, Kv as MMultiSelect, Yv as MNavigationBar, ky as MNavigationDrawer, Wy as MNavigationRail, Zy as MNavigationSuite, $h as MNumberField, nb as MOverlay, ib as MPageProgress, pf as MPagination, sb as MPasswordMeter, hb as MPinInput, ke as MProgressBar, xb as MPullToRefresh, Kb as MRadio, Yb as MRadioGroup, Qb as MRating, nx as MRelative, ix as MRelativeTime, ax as MResponsive, fx as MResult, Px as MScheduler, Hx as MScheme, uS as MScrollField, Yx as MScrollable, cl as MSearchBar, $x as MSearchField, iS as MSection, Ae as MSeekBar, Ee as MSegmentedButton, OS as MSelect, NS as MShader, zS as MShape, qy as MShortNavigationBar, KS as MSideSheet, JS as MSignaturePad, rC as MSimpleCarousel, aC as MSkeleton, De as MSlider, gs as MSnackbar, bC as MSpacer, gC as MSparkline, ne as MSpinner, wC as MSplitButton, EC as MSplitter, WC as MSpotlightSearch, GC as MStack, ew as MStatCard, gw as MStepper, _w as MSticky, yw as MSubtitle, tb as MSupportingPane, Cw as MSwipeToDismiss, me as MSwitch, Gw as MTable, sT as MTabs, eT as MTagInput, vw as MText, se as MTextField, HT as MTimePicker, fE as MTimePickerModal, qT as MTimeScroll, MT as MTimeline, pE as MTitle, _E as MToggleButton, DE as MToolbar, P as MTooltip, IE as MTopAppBar, KE as MTour, dD as MTransferList, OD as MTransition, xD as MTree, BD as MTreeTable, XD as MVirtualTable, oO as MWindow, Nt as SEED_PALETTE, is as VIEWPORT_HINTS, nm as allEmojis, Ka as createM3UI, O as cubicBezier, u as defaultLocale, Qp as emojiCategories, Co as fireConfetti, $o as fireReaction, lh as floorDecorName, ht as generateScheme, Rs as heightSizeClass, Go as launchFireworks, E as motionDurations, D as motionEasings, T as motionSprings, jt as palettes, rm as randomEmoji, pt as schemeRoles, gt as schemeToCss, yt as seedFromImage, _t as seedFromPixels, oa as shapeNames, em as skinTones, rs as themeInitScript, $p as toneableEmojis, oe as useAutoGrow, ln as useColorPalette, wo as useConfetti, ns as useContainerTransform, ae as useDebounce, Is as useDevice, ie as useFieldBg, Ko as useFireworks, oh as useFloorPlan, c as useLocale, uc as useNotification, yc as usePageProgress, es as useReactions, Cn as useScrollReveal, S as useSpring, Qa as useTheme, t as useThemeTokens, js as useToast, Us as useWindowSizeClass, _r as vClickOutside, Kn as vFocusRing, ir as vLongPress, An as vReveal, b as vRipple, er as vScrollElevation, Sr as vSkeleton, Va as vSparkle, Pn as vStateLayer, fr as vSwipe, Un as vTooltip, us as viewportFromHeaders, Ls as widthSizeClass, tm as withSkinTone };
|
|
24667
24736
|
|
|
24668
24737
|
//# sourceMappingURL=m3ui.js.map
|