@m3ui-vue/m3ui-vue 0.6.4 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/{MMenuItem-C7jKU-Qh.js → MMenuItem-B_5um6tj.js} +2 -2
- package/dist/{MMenuItem-C7jKU-Qh.js.map → MMenuItem-B_5um6tj.js.map} +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MFab.vue.d.ts +24 -2
- package/dist/components/MFabMenu.vue.d.ts +37 -0
- package/dist/components/MLoadingIndicator.vue.d.ts +13 -0
- package/dist/components/MPullToRefresh.vue.d.ts +30 -0
- package/dist/components/MSearchBar.vue.d.ts +57 -0
- package/dist/components/MTopAppBar.vue.d.ts +4 -0
- package/dist/composables/useLocale.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/locales/index.js +7 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +1170 -700
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/{useLocale-BKsIWNix.js → useLocale-DbREg9Zn.js} +2 -1
- package/dist/useLocale-DbREg9Zn.js.map +1 -0
- package/package.json +1 -1
- package/src/components/MFab.vue +63 -10
- package/src/components/MFabMenu.vue +167 -0
- package/src/components/MLoadingIndicator.vue +184 -0
- package/src/components/MPullToRefresh.vue +180 -0
- package/src/components/MSearchBar.vue +237 -0
- package/src/components/MTabs.vue +72 -33
- package/src/components/MTopAppBar.vue +16 -8
- package/src/composables/useLocale.ts +2 -0
- package/src/index.ts +5 -0
- package/src/locales/de.ts +1 -0
- package/src/locales/es.ts +1 -0
- package/src/locales/fr.ts +1 -0
- package/src/locales/ja.ts +1 -0
- package/src/locales/ko.ts +1 -0
- package/src/locales/pt.ts +1 -0
- package/src/locales/zh.ts +1 -0
- package/dist/useLocale-BKsIWNix.js.map +0 -1
package/dist/m3ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./useLocale-
|
|
1
|
+
import { n as e, r as t, t as n } from "./useLocale-DbREg9Zn.js";
|
|
2
2
|
import { t as r } from "./MIcon-CaEooCmZ.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./MMenuItem-
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./MMenuItem-B_5um6tj.js";
|
|
4
4
|
import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { Fragment as m, Teleport as h, Transition as g, TransitionGroup as _, computed as v, createApp as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, defineComponent as D, getCurrentInstance as O, h as k, inject as A, mergeProps as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, onUnmounted as L, openBlock as R, provide as z, reactive as B, ref as V, renderList as H, renderSlot as U, resolveComponent as W, resolveDynamicComponent as G, shallowRef as K, toDisplayString as q, unref as J, useAttrs as Y, useId as X, useSlots as ee, vModelText as te, vShow as ne, watch as Z, watchEffect as re, withCtx as Q, withDirectives as ie, withKeys as ae, withModifiers as $ } from "vue";
|
|
6
6
|
//#region src/composables/useColorPalette.ts
|
|
@@ -4562,7 +4562,11 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4562
4562
|
}, fo = {
|
|
4563
4563
|
key: 0,
|
|
4564
4564
|
class: "whitespace-nowrap rounded-md bg-surface-container-high px-3 py-1.5 text-label-medium text-on-surface shadow-elevation-1"
|
|
4565
|
-
}, po =
|
|
4565
|
+
}, po = {
|
|
4566
|
+
key: 0,
|
|
4567
|
+
class: "fixed inset-0 bg-black/40",
|
|
4568
|
+
style: { "z-index": "999" }
|
|
4569
|
+
}, mo = 40, ho = 8, go = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4566
4570
|
__name: "MFab",
|
|
4567
4571
|
props: {
|
|
4568
4572
|
icon: {},
|
|
@@ -4579,7 +4583,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4579
4583
|
persistent: {
|
|
4580
4584
|
type: Boolean,
|
|
4581
4585
|
default: !1
|
|
4582
|
-
}
|
|
4586
|
+
},
|
|
4587
|
+
align: { default: "start" },
|
|
4588
|
+
scrim: {
|
|
4589
|
+
type: Boolean,
|
|
4590
|
+
default: !1
|
|
4591
|
+
},
|
|
4592
|
+
contentTransition: { default: "scale" }
|
|
4583
4593
|
},
|
|
4584
4594
|
emits: ["click"],
|
|
4585
4595
|
setup(e, { emit: t }) {
|
|
@@ -4625,8 +4635,8 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4625
4635
|
let t = 2 * Math.PI * e / a - Math.PI / 2, n = (Math.cos(t) * 80).toFixed(1), o = (Math.sin(t) * 80).toFixed(1);
|
|
4626
4636
|
return {
|
|
4627
4637
|
position: "fixed",
|
|
4628
|
-
top: `${i -
|
|
4629
|
-
left: `${r -
|
|
4638
|
+
top: `${i - mo / 2}px`,
|
|
4639
|
+
left: `${r - mo / 2}px`,
|
|
4630
4640
|
transform: s.value ? `translate(${n}px, ${o}px) scale(1)` : "translate(0,0) scale(0)",
|
|
4631
4641
|
opacity: s.value ? "1" : "0",
|
|
4632
4642
|
transition: c,
|
|
@@ -4634,22 +4644,22 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4634
4644
|
zIndex: "1000"
|
|
4635
4645
|
};
|
|
4636
4646
|
}
|
|
4637
|
-
let l = w.value / 2 +
|
|
4647
|
+
let l = w.value / 2 + ho + mo / 2 + e * 48, u = {
|
|
4638
4648
|
up: {
|
|
4639
|
-
top: `${i - l -
|
|
4640
|
-
left: `${r -
|
|
4649
|
+
top: `${i - l - mo / 2}px`,
|
|
4650
|
+
left: `${r - mo / 2}px`
|
|
4641
4651
|
},
|
|
4642
4652
|
down: {
|
|
4643
|
-
top: `${i + l -
|
|
4644
|
-
left: `${r -
|
|
4653
|
+
top: `${i + l - mo / 2}px`,
|
|
4654
|
+
left: `${r - mo / 2}px`
|
|
4645
4655
|
},
|
|
4646
4656
|
left: {
|
|
4647
|
-
top: `${i -
|
|
4648
|
-
left: `${r - l -
|
|
4657
|
+
top: `${i - mo / 2}px`,
|
|
4658
|
+
left: `${r - l - mo / 2}px`
|
|
4649
4659
|
},
|
|
4650
4660
|
right: {
|
|
4651
|
-
top: `${i -
|
|
4652
|
-
left: `${r + l -
|
|
4661
|
+
top: `${i - mo / 2}px`,
|
|
4662
|
+
left: `${r + l - mo / 2}px`
|
|
4653
4663
|
}
|
|
4654
4664
|
}, d = {
|
|
4655
4665
|
up: "translateY(12px) scale(0.75)",
|
|
@@ -4685,10 +4695,10 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4685
4695
|
};
|
|
4686
4696
|
switch (n.direction) {
|
|
4687
4697
|
case "up":
|
|
4688
|
-
t.bottom = `${window.innerHeight - e.top + 8}px`, t.left = `${e.left}px`, t.minWidth = `${e.width}px`;
|
|
4698
|
+
t.bottom = `${window.innerHeight - e.top + 8}px`, n.align === "end" ? t.right = `${window.innerWidth - e.right}px` : t.left = `${e.left}px`, t.minWidth = `${e.width}px`;
|
|
4689
4699
|
break;
|
|
4690
4700
|
case "down":
|
|
4691
|
-
t.top = `${e.bottom + 8}px`, t.left = `${e.left}px`, t.minWidth = `${e.width}px`;
|
|
4701
|
+
t.top = `${e.bottom + 8}px`, n.align === "end" ? t.right = `${window.innerWidth - e.right}px` : t.left = `${e.left}px`, t.minWidth = `${e.width}px`;
|
|
4692
4702
|
break;
|
|
4693
4703
|
case "left":
|
|
4694
4704
|
t.top = `${e.top}px`, t.right = `${window.innerWidth - e.left + 8}px`;
|
|
@@ -4698,12 +4708,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4698
4708
|
j.value = t;
|
|
4699
4709
|
}
|
|
4700
4710
|
let F = v(() => {
|
|
4711
|
+
let e = n.align === "end" ? "right" : "center";
|
|
4701
4712
|
switch (n.direction) {
|
|
4702
|
-
case "up": return
|
|
4703
|
-
case "down": return
|
|
4713
|
+
case "up": return `bottom ${e}`;
|
|
4714
|
+
case "down": return `top ${e}`;
|
|
4704
4715
|
case "left": return "center right";
|
|
4705
4716
|
case "right": return "center left";
|
|
4706
|
-
default: return
|
|
4717
|
+
default: return `bottom ${e}`;
|
|
4707
4718
|
}
|
|
4708
4719
|
});
|
|
4709
4720
|
function z(e) {
|
|
@@ -4751,56 +4762,161 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4751
4762
|
"type",
|
|
4752
4763
|
"class",
|
|
4753
4764
|
"disabled"
|
|
4754
|
-
]))], 512), (R(), b(h, { to: "body" }, [
|
|
4755
|
-
key: n,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
+
]))], 512), (R(), b(h, { to: "body" }, [
|
|
4766
|
+
u.value ? (R(!0), S(m, { key: 0 }, H(e.items, (t, n) => (R(), S("div", {
|
|
4767
|
+
key: n,
|
|
4768
|
+
style: P(D(n)),
|
|
4769
|
+
class: N(["flex items-center gap-3", O.value ? "flex-row-reverse" : ""])
|
|
4770
|
+
}, [t.label && O.value ? (R(), S("span", fo, q(t.label), 1)) : x("", !0), (R(), b(G(t.to ? "RouterLink" : "button"), {
|
|
4771
|
+
to: t.to || void 0,
|
|
4772
|
+
type: t.to ? void 0 : "button",
|
|
4773
|
+
class: N(["relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 active:shadow-elevation-1 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 hover:before:opacity-[0.08] active:before:opacity-[0.12]", p[e.color]]),
|
|
4774
|
+
style: P({
|
|
4775
|
+
width: `${mo}px`,
|
|
4776
|
+
height: `${mo}px`
|
|
4777
|
+
}),
|
|
4778
|
+
onPointerdown: (e) => B(e, t, e.currentTarget)
|
|
4779
|
+
}, {
|
|
4780
|
+
default: Q(() => [E(r, {
|
|
4781
|
+
name: t.icon,
|
|
4782
|
+
size: 20
|
|
4783
|
+
}, null, 8, ["name"])]),
|
|
4784
|
+
_: 2
|
|
4785
|
+
}, 1064, [
|
|
4786
|
+
"to",
|
|
4787
|
+
"type",
|
|
4788
|
+
"class",
|
|
4789
|
+
"style",
|
|
4790
|
+
"onPointerdown"
|
|
4791
|
+
]))], 6))), 128)) : x("", !0),
|
|
4792
|
+
E(g, { name: "m3-fab-scrim" }, {
|
|
4793
|
+
default: Q(() => [e.scrim && d.value && s.value ? (R(), S("div", po)) : x("", !0)]),
|
|
4794
|
+
_: 1
|
|
4765
4795
|
}),
|
|
4766
|
-
|
|
4796
|
+
E(g, { name: e.contentTransition === "none" ? void 0 : `m3-fab-content-${e.contentTransition}` }, {
|
|
4797
|
+
default: Q(() => [d.value && s.value ? (R(), S("div", {
|
|
4798
|
+
key: 0,
|
|
4799
|
+
ref_key: "contentEl",
|
|
4800
|
+
ref: l,
|
|
4801
|
+
class: "",
|
|
4802
|
+
style: P({
|
|
4803
|
+
...j.value,
|
|
4804
|
+
transformOrigin: F.value
|
|
4805
|
+
})
|
|
4806
|
+
}, [U(t.$slots, "content", { close: () => s.value = !1 }, void 0, !0)], 4)) : x("", !0)]),
|
|
4807
|
+
_: 3
|
|
4808
|
+
}, 8, ["name"])
|
|
4809
|
+
]))], 64));
|
|
4810
|
+
}
|
|
4811
|
+
}), [["__scopeId", "data-v-d4096a20"]]), _o = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4812
|
+
__name: "MFabMenu",
|
|
4813
|
+
props: {
|
|
4814
|
+
icon: {},
|
|
4815
|
+
label: {},
|
|
4816
|
+
items: {},
|
|
4817
|
+
color: { default: "primary" },
|
|
4818
|
+
size: { default: "regular" },
|
|
4819
|
+
itemSize: { default: "large" },
|
|
4820
|
+
direction: { default: "up" },
|
|
4821
|
+
align: { default: "end" },
|
|
4822
|
+
scrim: {
|
|
4823
|
+
type: Boolean,
|
|
4824
|
+
default: !0
|
|
4825
|
+
},
|
|
4826
|
+
persistent: {
|
|
4827
|
+
type: Boolean,
|
|
4828
|
+
default: !1
|
|
4829
|
+
},
|
|
4830
|
+
disabled: {
|
|
4831
|
+
type: Boolean,
|
|
4832
|
+
default: !1
|
|
4833
|
+
}
|
|
4834
|
+
},
|
|
4835
|
+
setup(e) {
|
|
4836
|
+
let t = e, n = {
|
|
4837
|
+
primary: "bg-primary-container text-on-primary-container",
|
|
4838
|
+
secondary: "bg-secondary-container text-on-secondary-container",
|
|
4839
|
+
tertiary: "bg-tertiary-container text-on-tertiary-container",
|
|
4840
|
+
surface: "bg-surface-container-high text-primary"
|
|
4841
|
+
}, i = {
|
|
4842
|
+
small: "gap-2 px-3 py-2 text-label-medium",
|
|
4843
|
+
regular: "gap-3 px-4 py-2.5 text-label-large",
|
|
4844
|
+
large: "gap-2 px-6 py-4 text-title-medium"
|
|
4845
|
+
}, a = {
|
|
4846
|
+
small: 18,
|
|
4847
|
+
regular: 20,
|
|
4848
|
+
large: 24
|
|
4849
|
+
}, o = v(() => t.align === "start" ? "m3-fabmenu-item--from-start" : "m3-fabmenu-item--from-end");
|
|
4850
|
+
function s(e, n) {
|
|
4851
|
+
e.disabled || (t.persistent || n(), e.onClick?.());
|
|
4852
|
+
}
|
|
4853
|
+
return (t, c) => (R(), b(go, {
|
|
4854
|
+
icon: e.icon,
|
|
4855
|
+
label: e.label,
|
|
4856
|
+
color: e.color,
|
|
4857
|
+
size: e.size,
|
|
4858
|
+
direction: e.direction,
|
|
4859
|
+
align: e.align,
|
|
4860
|
+
scrim: e.scrim,
|
|
4861
|
+
persistent: e.persistent,
|
|
4862
|
+
disabled: e.disabled,
|
|
4863
|
+
"content-transition": "fade"
|
|
4767
4864
|
}, {
|
|
4768
|
-
|
|
4769
|
-
name:
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4865
|
+
content: Q(({ close: t }) => [E(_, {
|
|
4866
|
+
name: "m3-fabmenu-item",
|
|
4867
|
+
tag: "div",
|
|
4868
|
+
appear: "",
|
|
4869
|
+
class: N(["relative", e.direction === "up" ? "flex flex-col-reverse gap-2" : "flex flex-col gap-2"])
|
|
4870
|
+
}, {
|
|
4871
|
+
default: Q(() => [(R(!0), S(m, null, H(e.items, (c, l) => (R(), b(G(c.to ? "RouterLink" : "button"), {
|
|
4872
|
+
key: l,
|
|
4873
|
+
to: c.to || void 0,
|
|
4874
|
+
type: c.to ? void 0 : "button",
|
|
4875
|
+
class: N(["m3-fabmenu-item shrink-0 cursor-pointer rounded-full font-medium shadow-elevation-1 transition-shadow duration-150 hover:shadow-elevation-2 disabled:cursor-not-allowed disabled:opacity-[0.38]", [n[c.color ?? e.color], o.value]]),
|
|
4876
|
+
style: P({ "--m3-fabmenu-delay": `${l * 35}ms` }),
|
|
4877
|
+
disabled: c.disabled,
|
|
4878
|
+
onClick: (e) => s(c, t)
|
|
4879
|
+
}, {
|
|
4880
|
+
default: Q(() => [C("span", { class: N(["m3-fabmenu-item-inner flex items-center whitespace-nowrap", i[e.itemSize]]) }, [E(r, {
|
|
4881
|
+
name: c.icon,
|
|
4882
|
+
size: a[e.itemSize],
|
|
4883
|
+
class: "shrink-0"
|
|
4884
|
+
}, null, 8, ["name", "size"]), T(" " + q(c.label), 1)], 2)]),
|
|
4885
|
+
_: 2
|
|
4886
|
+
}, 1032, [
|
|
4887
|
+
"to",
|
|
4888
|
+
"type",
|
|
4889
|
+
"class",
|
|
4890
|
+
"style",
|
|
4891
|
+
"disabled",
|
|
4892
|
+
"onClick"
|
|
4893
|
+
]))), 128))]),
|
|
4894
|
+
_: 2
|
|
4895
|
+
}, 1032, ["class"])]),
|
|
4896
|
+
_: 1
|
|
4897
|
+
}, 8, [
|
|
4898
|
+
"icon",
|
|
4899
|
+
"label",
|
|
4900
|
+
"color",
|
|
4901
|
+
"size",
|
|
4902
|
+
"direction",
|
|
4903
|
+
"align",
|
|
4904
|
+
"scrim",
|
|
4905
|
+
"persistent",
|
|
4906
|
+
"disabled"
|
|
4907
|
+
]));
|
|
4792
4908
|
}
|
|
4793
|
-
}), [["__scopeId", "data-v-
|
|
4909
|
+
}), [["__scopeId", "data-v-83dfb288"]]), vo = { class: "flex flex-col gap-3" }, yo = { class: "text-center" }, bo = { class: "text-body-large text-on-surface" }, xo = { class: "font-medium text-primary" }, So = {
|
|
4794
4910
|
key: 0,
|
|
4795
4911
|
class: "mt-1 text-body-small text-on-surface-variant"
|
|
4796
|
-
},
|
|
4912
|
+
}, Co = { key: 0 }, wo = { key: 1 }, To = { key: 2 }, Eo = [
|
|
4797
4913
|
"accept",
|
|
4798
4914
|
"multiple",
|
|
4799
4915
|
"disabled"
|
|
4800
|
-
],
|
|
4916
|
+
], Do = { class: "flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-surface-container-high" }, Oo = ["src"], ko = { class: "min-w-0 flex-1" }, Ao = { class: "truncate text-body-medium text-on-surface" }, jo = { class: "text-body-small text-on-surface-variant" }, Mo = {
|
|
4801
4917
|
key: 0,
|
|
4802
4918
|
class: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-surface-container-highest"
|
|
4803
|
-
},
|
|
4919
|
+
}, No = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
4804
4920
|
__name: "MFileUpload",
|
|
4805
4921
|
props: {
|
|
4806
4922
|
accept: {},
|
|
@@ -4852,7 +4968,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4852
4968
|
function O() {
|
|
4853
4969
|
a.disabled || d.value?.click();
|
|
4854
4970
|
}
|
|
4855
|
-
return (t, n) => (R(), S("div",
|
|
4971
|
+
return (t, n) => (R(), S("div", vo, [
|
|
4856
4972
|
C("div", {
|
|
4857
4973
|
class: N(["relative flex min-h-[160px] cursor-pointer flex-col items-center justify-center gap-3 rounded-lg border-2 border-dashed p-6 transition-colors duration-150", [e.disabled ? "cursor-not-allowed border-outline-variant/50 bg-surface-container/30 opacity-60" : u.value ? "border-primary bg-primary-container/20" : "border-outline-variant bg-surface-container-lowest hover:border-primary/60 hover:bg-surface-container"]]),
|
|
4858
4974
|
onClick: O,
|
|
@@ -4864,10 +4980,10 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4864
4980
|
name: u.value ? "downloading" : "cloud_upload",
|
|
4865
4981
|
size: 40,
|
|
4866
4982
|
class: "text-on-surface-variant"
|
|
4867
|
-
}, null, 8, ["name"]), C("div",
|
|
4868
|
-
e.accept ? (R(), S("span",
|
|
4869
|
-
e.accept && e.maxSize ? (R(), S("span",
|
|
4870
|
-
e.maxSize ? (R(), S("span",
|
|
4983
|
+
}, null, 8, ["name"]), C("div", yo, [U(t.$slots, "dropzone", {}, () => [C("p", bo, [T(q(e.dropText ?? J(i).dropText) + " ", 1), C("span", xo, q(e.selectText ?? J(i).selectText), 1)]), e.accept || e.maxSize ? (R(), S("p", So, [
|
|
4984
|
+
e.accept ? (R(), S("span", Co, q(e.accept), 1)) : x("", !0),
|
|
4985
|
+
e.accept && e.maxSize ? (R(), S("span", wo, " · ")) : x("", !0),
|
|
4986
|
+
e.maxSize ? (R(), S("span", To, q(e.maxSizePrefix ?? J(i).maxSizePrefix) + " " + q(h(e.maxSize)), 1)) : x("", !0)
|
|
4871
4987
|
])) : x("", !0)], !0)])], 34),
|
|
4872
4988
|
C("input", {
|
|
4873
4989
|
ref_key: "inputRef",
|
|
@@ -4878,7 +4994,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4878
4994
|
multiple: e.multiple,
|
|
4879
4995
|
disabled: e.disabled,
|
|
4880
4996
|
onChange: w
|
|
4881
|
-
}, null, 40,
|
|
4997
|
+
}, null, 40, Eo),
|
|
4882
4998
|
E(_, {
|
|
4883
4999
|
name: "m3-file",
|
|
4884
5000
|
tag: "div",
|
|
@@ -4888,20 +5004,20 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4888
5004
|
key: t.id,
|
|
4889
5005
|
class: "flex items-center gap-3 rounded-lg bg-surface-container p-3"
|
|
4890
5006
|
}, [
|
|
4891
|
-
C("div",
|
|
5007
|
+
C("div", Do, [t.preview ? (R(), S("img", {
|
|
4892
5008
|
key: 0,
|
|
4893
5009
|
src: t.preview,
|
|
4894
5010
|
class: "h-full w-full object-cover"
|
|
4895
|
-
}, null, 8,
|
|
5011
|
+
}, null, 8, Oo)) : (R(), b(r, {
|
|
4896
5012
|
key: 1,
|
|
4897
5013
|
name: "description",
|
|
4898
5014
|
size: 24,
|
|
4899
5015
|
class: "text-on-surface-variant"
|
|
4900
5016
|
}))]),
|
|
4901
|
-
C("div",
|
|
4902
|
-
C("p",
|
|
4903
|
-
C("p",
|
|
4904
|
-
t.status === "uploading" ? (R(), S("div",
|
|
5017
|
+
C("div", ko, [
|
|
5018
|
+
C("p", Ao, q(t.file.name), 1),
|
|
5019
|
+
C("p", jo, q(h(t.file.size)), 1),
|
|
5020
|
+
t.status === "uploading" ? (R(), S("div", Mo, [C("div", {
|
|
4905
5021
|
class: "h-full rounded-full bg-primary transition-[width] duration-300",
|
|
4906
5022
|
style: P({ width: `${t.progress}%` })
|
|
4907
5023
|
}, null, 4)])) : x("", !0)
|
|
@@ -4931,7 +5047,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4931
5047
|
})
|
|
4932
5048
|
]));
|
|
4933
5049
|
}
|
|
4934
|
-
}), [["__scopeId", "data-v-6b150427"]]),
|
|
5050
|
+
}), [["__scopeId", "data-v-6b150427"]]), Po = /* @__PURE__ */ D({
|
|
4935
5051
|
__name: "MFixed",
|
|
4936
5052
|
props: {
|
|
4937
5053
|
placement: {},
|
|
@@ -4977,19 +5093,19 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
4977
5093
|
});
|
|
4978
5094
|
return (e, t) => (R(), S("div", { style: P(r.value) }, [U(e.$slots, "default")], 4));
|
|
4979
5095
|
}
|
|
4980
|
-
}),
|
|
5096
|
+
}), Fo = {
|
|
4981
5097
|
key: 0,
|
|
4982
5098
|
class: "px-6 pt-6 pb-2 sm:px-8 lg:px-12"
|
|
4983
|
-
},
|
|
5099
|
+
}, Io = {
|
|
4984
5100
|
key: 1,
|
|
4985
5101
|
class: "px-6 py-6 sm:px-8 lg:px-12"
|
|
4986
|
-
},
|
|
5102
|
+
}, Lo = {
|
|
4987
5103
|
key: 2,
|
|
4988
5104
|
class: "flex flex-wrap items-center gap-1 px-6 pb-4 sm:px-8 lg:px-12"
|
|
4989
|
-
},
|
|
5105
|
+
}, Ro = {
|
|
4990
5106
|
key: 3,
|
|
4991
5107
|
class: "border-t border-outline-variant px-6 py-4 sm:px-8 lg:px-12"
|
|
4992
|
-
},
|
|
5108
|
+
}, zo = /* @__PURE__ */ D({
|
|
4993
5109
|
__name: "MFooter",
|
|
4994
5110
|
props: {
|
|
4995
5111
|
bordered: { type: Boolean },
|
|
@@ -5004,13 +5120,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5004
5120
|
inverse: "bg-inverse-surface text-inverse-on-surface"
|
|
5005
5121
|
};
|
|
5006
5122
|
return (n, r) => (R(), S("footer", { class: N(["w-full", [t[e.surface], e.bordered ? "border-t border-outline-variant" : ""]]) }, [
|
|
5007
|
-
n.$slots.brand ? (R(), S("div",
|
|
5008
|
-
n.$slots.default ? (R(), S("div",
|
|
5009
|
-
n.$slots.social ? (R(), S("div",
|
|
5010
|
-
n.$slots.bottom ? (R(), S("div",
|
|
5123
|
+
n.$slots.brand ? (R(), S("div", Fo, [U(n.$slots, "brand")])) : x("", !0),
|
|
5124
|
+
n.$slots.default ? (R(), S("div", Io, [U(n.$slots, "default")])) : x("", !0),
|
|
5125
|
+
n.$slots.social ? (R(), S("div", Lo, [U(n.$slots, "social")])) : x("", !0),
|
|
5126
|
+
n.$slots.bottom ? (R(), S("div", Ro, [U(n.$slots, "bottom")])) : x("", !0)
|
|
5011
5127
|
], 2));
|
|
5012
5128
|
}
|
|
5013
|
-
}),
|
|
5129
|
+
}), Bo = /* @__PURE__ */ D({
|
|
5014
5130
|
__name: "MFlex",
|
|
5015
5131
|
props: {
|
|
5016
5132
|
direction: { default: "row" },
|
|
@@ -5062,7 +5178,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5062
5178
|
]);
|
|
5063
5179
|
return (e, t) => (R(), S("div", { class: N(o.value) }, [U(e.$slots, "default")], 2));
|
|
5064
5180
|
}
|
|
5065
|
-
}),
|
|
5181
|
+
}), Vo = /* @__PURE__ */ D({
|
|
5066
5182
|
__name: "MFullscreen",
|
|
5067
5183
|
props: {
|
|
5068
5184
|
fixed: {
|
|
@@ -5079,7 +5195,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5079
5195
|
}));
|
|
5080
5196
|
return (e, t) => (R(), S("div", { style: P(n.value) }, [U(e.$slots, "default")], 4));
|
|
5081
5197
|
}
|
|
5082
|
-
}),
|
|
5198
|
+
}), Ho = /* @__PURE__ */ D({
|
|
5083
5199
|
__name: "MGrid",
|
|
5084
5200
|
props: {
|
|
5085
5201
|
cols: { default: 1 },
|
|
@@ -5155,13 +5271,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5155
5271
|
]);
|
|
5156
5272
|
return (e, t) => (R(), S("div", { class: N(l.value) }, [U(e.$slots, "default")], 2));
|
|
5157
5273
|
}
|
|
5158
|
-
}),
|
|
5274
|
+
}), Uo = {
|
|
5159
5275
|
key: 0,
|
|
5160
5276
|
class: "flex flex-col gap-4"
|
|
5161
|
-
},
|
|
5277
|
+
}, Wo = {
|
|
5162
5278
|
key: 0,
|
|
5163
5279
|
class: "mb-2 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
5164
|
-
},
|
|
5280
|
+
}, Go = { class: "flex flex-col gap-1" }, Ko = { class: "text-body-medium text-on-surface" }, qo = { class: "flex items-center gap-0.5" }, Jo = /* @__PURE__ */ D({
|
|
5165
5281
|
__name: "MHotkeys",
|
|
5166
5282
|
props: {
|
|
5167
5283
|
bindings: {},
|
|
@@ -5218,15 +5334,15 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5218
5334
|
}
|
|
5219
5335
|
return e;
|
|
5220
5336
|
};
|
|
5221
|
-
return (t, n) => e.showOverlay ? (R(), S("div",
|
|
5337
|
+
return (t, n) => e.showOverlay ? (R(), S("div", Uo, [(R(!0), S(m, null, H(s(), ([e, t]) => (R(), S("div", { key: e }, [e ? (R(), S("p", Wo, q(e), 1)) : x("", !0), C("div", Go, [(R(!0), S(m, null, H(t, (e) => (R(), S("div", {
|
|
5222
5338
|
key: e.keys,
|
|
5223
5339
|
class: N(["flex items-center justify-between rounded-lg px-3 py-2 transition-colors hover:bg-on-surface/4", e.disabled && "opacity-38"])
|
|
5224
|
-
}, [C("span",
|
|
5340
|
+
}, [C("span", Ko, q(e.label), 1), C("div", qo, [(R(!0), S(m, null, H(e.keys.split("+"), (e, t) => (R(), S("kbd", {
|
|
5225
5341
|
key: t,
|
|
5226
5342
|
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"
|
|
5227
5343
|
}, q(r(e.trim())), 1))), 128))])], 2))), 128))])]))), 128))])) : x("", !0);
|
|
5228
5344
|
}
|
|
5229
|
-
}),
|
|
5345
|
+
}), Yo = { class: "flex items-center gap-3" }, Xo = { class: "text-body-medium text-on-surface-variant" }, Zo = { class: "text-body-small text-on-surface-variant" }, Qo = /* @__PURE__ */ D({
|
|
5230
5346
|
__name: "MInfiniteScroll",
|
|
5231
5347
|
props: {
|
|
5232
5348
|
loading: {
|
|
@@ -5257,30 +5373,30 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5257
5373
|
ref_key: "sentinelRef",
|
|
5258
5374
|
ref: o,
|
|
5259
5375
|
class: "flex items-center justify-center py-4"
|
|
5260
|
-
}, [e.loading ? U(t.$slots, "loading", {}, () => [C("div",
|
|
5376
|
+
}, [e.loading ? U(t.$slots, "loading", {}, () => [C("div", Yo, [E(s, {
|
|
5261
5377
|
size: 20,
|
|
5262
5378
|
class: "text-primary"
|
|
5263
|
-
}), C("span",
|
|
5379
|
+
}), C("span", Xo, q(e.loadingText ?? J(r).loadingMore), 1)])], void 0, 0) : e.ended ? U(t.$slots, "end", {}, () => [C("p", Zo, q(e.endText ?? J(r).noMoreItems), 1)], void 0, 1) : U(t.$slots, "idle", {}, void 0, void 0, 2)], 512)]));
|
|
5264
5380
|
}
|
|
5265
|
-
}),
|
|
5381
|
+
}), $o = {
|
|
5266
5382
|
key: 0,
|
|
5267
5383
|
class: "text-tertiary"
|
|
5268
|
-
},
|
|
5384
|
+
}, es = { class: "text-on-surface-variant" }, ts = {
|
|
5269
5385
|
key: 1,
|
|
5270
5386
|
class: "text-on-surface-variant/60"
|
|
5271
|
-
},
|
|
5387
|
+
}, ns = {
|
|
5272
5388
|
key: 2,
|
|
5273
5389
|
class: "text-on-surface-variant"
|
|
5274
|
-
},
|
|
5390
|
+
}, rs = {
|
|
5275
5391
|
key: 0,
|
|
5276
5392
|
class: "ml-5 border-l border-outline-variant/40 pl-2"
|
|
5277
|
-
},
|
|
5393
|
+
}, is = { class: "shrink-0 text-primary" }, as = {
|
|
5278
5394
|
key: 0,
|
|
5279
5395
|
class: "shrink-0 text-on-surface-variant mr-1"
|
|
5280
|
-
},
|
|
5396
|
+
}, os = {
|
|
5281
5397
|
key: 1,
|
|
5282
5398
|
class: "ml-5 text-on-surface-variant"
|
|
5283
|
-
},
|
|
5399
|
+
}, ss = /* @__PURE__ */ D({
|
|
5284
5400
|
__name: "MJsonViewer",
|
|
5285
5401
|
props: {
|
|
5286
5402
|
data: {},
|
|
@@ -5326,17 +5442,17 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5326
5442
|
size: 16,
|
|
5327
5443
|
class: "text-on-surface-variant transition-transform duration-100"
|
|
5328
5444
|
}, null, 8, ["name"]),
|
|
5329
|
-
e._depth === 0 || e.rootName ? (R(), S("span",
|
|
5330
|
-
C("span",
|
|
5331
|
-
o.value ? x("", !0) : (R(), S("span",
|
|
5332
|
-
o.value ? x("", !0) : (R(), S("span",
|
|
5445
|
+
e._depth === 0 || e.rootName ? (R(), S("span", $o, q(e._depth === 0 ? e.rootName : ""), 1)) : x("", !0),
|
|
5446
|
+
C("span", es, q(d.value), 1),
|
|
5447
|
+
o.value ? x("", !0) : (R(), S("span", ts, q(u.value) + " " + q(s.value === "array" ? a.value.elements : a.value.fields), 1)),
|
|
5448
|
+
o.value ? x("", !0) : (R(), S("span", ns, q(f.value), 1))
|
|
5333
5449
|
]),
|
|
5334
|
-
o.value ? (R(), S("div",
|
|
5450
|
+
o.value ? (R(), S("div", rs, [(R(!0), S(m, null, H(l.value, (t) => (R(), S("div", {
|
|
5335
5451
|
key: t.key,
|
|
5336
5452
|
class: "flex items-start"
|
|
5337
5453
|
}, [
|
|
5338
|
-
C("span",
|
|
5339
|
-
s.value === "array" ? x("", !0) : (R(), S("span",
|
|
5454
|
+
C("span", is, q(s.value === "array" ? "" : `"${t.key}"`), 1),
|
|
5455
|
+
s.value === "array" ? x("", !0) : (R(), S("span", as, ":")),
|
|
5340
5456
|
t.value !== null && typeof t.value == "object" ? (R(), b(i, {
|
|
5341
5457
|
key: 1,
|
|
5342
5458
|
data: t.value,
|
|
@@ -5355,21 +5471,21 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5355
5471
|
class: N(p(t.value))
|
|
5356
5472
|
}, q(h(t.value)), 3))
|
|
5357
5473
|
]))), 128))])) : x("", !0),
|
|
5358
|
-
o.value ? (R(), S("span",
|
|
5474
|
+
o.value ? (R(), S("span", os, q(f.value), 1)) : x("", !0)
|
|
5359
5475
|
], 64)) : (R(), S("span", {
|
|
5360
5476
|
key: 1,
|
|
5361
5477
|
class: N(p(e.data))
|
|
5362
5478
|
}, q(h(e.data)), 3))], 2);
|
|
5363
5479
|
};
|
|
5364
5480
|
}
|
|
5365
|
-
}),
|
|
5481
|
+
}), cs = { class: "flex gap-4 overflow-x-auto pb-2" }, ls = ["onDragover", "onDrop"], us = { class: "flex items-center gap-2 px-4 py-3" }, ds = { class: "flex-1 text-title-small font-medium text-on-surface" }, fs = { class: "rounded-full bg-surface-container-high px-2 py-0.5 text-label-small text-on-surface-variant" }, ps = { class: "flex min-h-[60px] flex-1 flex-col gap-2 px-3 pb-3" }, ms = [
|
|
5366
5482
|
"onDragstart",
|
|
5367
5483
|
"onDragover",
|
|
5368
5484
|
"onClick"
|
|
5369
|
-
],
|
|
5485
|
+
], hs = { class: "text-body-medium text-on-surface" }, gs = {
|
|
5370
5486
|
key: 0,
|
|
5371
5487
|
class: "flex flex-1 items-center justify-center rounded-lg border border-dashed border-outline-variant/50 p-4"
|
|
5372
|
-
},
|
|
5488
|
+
}, _s = /* @__PURE__ */ D({
|
|
5373
5489
|
__name: "MKanban",
|
|
5374
5490
|
props: { modelValue: {} },
|
|
5375
5491
|
emits: [
|
|
@@ -5428,20 +5544,20 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5428
5544
|
function f() {
|
|
5429
5545
|
i.value = null, a.value = null, o.value = null;
|
|
5430
5546
|
}
|
|
5431
|
-
return (t, n) => (R(), S("div",
|
|
5547
|
+
return (t, n) => (R(), S("div", cs, [(R(!0), S(m, null, H(e.modelValue, (e) => (R(), S("div", {
|
|
5432
5548
|
key: e.id,
|
|
5433
5549
|
class: N(["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" : ""]),
|
|
5434
5550
|
onDragover: (t) => l(t, e.id),
|
|
5435
5551
|
onDragleave: n[0] ||= (e) => a.value = null,
|
|
5436
5552
|
onDrop: (t) => d(t, e.id)
|
|
5437
|
-
}, [C("div",
|
|
5553
|
+
}, [C("div", us, [
|
|
5438
5554
|
e.color ? (R(), S("div", {
|
|
5439
5555
|
key: 0,
|
|
5440
5556
|
class: N(["h-2.5 w-2.5 rounded-full", s[e.color] ?? "bg-primary"])
|
|
5441
5557
|
}, null, 2)) : x("", !0),
|
|
5442
|
-
C("h3",
|
|
5443
|
-
C("span",
|
|
5444
|
-
]), C("div",
|
|
5558
|
+
C("h3", ds, q(e.title), 1),
|
|
5559
|
+
C("span", fs, q(e.cards.length), 1)
|
|
5560
|
+
]), C("div", ps, [(R(!0), S(m, null, H(e.cards, (n, s) => (R(), S("div", {
|
|
5445
5561
|
key: n.id,
|
|
5446
5562
|
draggable: "true",
|
|
5447
5563
|
class: N(["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" : ""]]),
|
|
@@ -5455,13 +5571,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5455
5571
|
}, [U(t.$slots, "card", {
|
|
5456
5572
|
card: n,
|
|
5457
5573
|
column: e
|
|
5458
|
-
}, () => [C("p",
|
|
5574
|
+
}, () => [C("p", hs, q(n.id), 1)])], 42, ms))), 128)), e.cards.length === 0 ? (R(), S("div", gs, [...n[1] ||= [C("p", { class: "text-body-small text-on-surface-variant/60" }, "Sin tarjetas", -1)]])) : x("", !0)])], 42, ls))), 128))]));
|
|
5459
5575
|
}
|
|
5460
|
-
}),
|
|
5576
|
+
}), vs = { class: "inline-flex items-center gap-1" }, ys = {
|
|
5461
5577
|
key: 0,
|
|
5462
5578
|
class: "text-on-surface-variant",
|
|
5463
5579
|
"aria-hidden": "true"
|
|
5464
|
-
},
|
|
5580
|
+
}, bs = /* @__PURE__ */ D({
|
|
5465
5581
|
__name: "MKbd",
|
|
5466
5582
|
props: {
|
|
5467
5583
|
keys: {},
|
|
@@ -5474,18 +5590,18 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5474
5590
|
md: "h-6 min-w-6 px-1.5 text-label-small",
|
|
5475
5591
|
lg: "h-7 min-w-7 px-2 text-label-medium"
|
|
5476
5592
|
};
|
|
5477
|
-
return (t, i) => (R(), S("span",
|
|
5593
|
+
return (t, i) => (R(), S("span", vs, [(R(!0), S(m, null, H(n.value, (t, i) => (R(), S(m, { key: i }, [C("kbd", { class: N(["inline-flex items-center justify-center rounded-sm border border-b-2 border-outline-variant bg-surface-container-high font-sans font-medium text-on-surface-variant", r[e.size]]) }, q(t), 3), i < n.value.length - 1 ? (R(), S("span", ys, q(e.separator), 1)) : x("", !0)], 64))), 128))]));
|
|
5478
5594
|
}
|
|
5479
|
-
}),
|
|
5595
|
+
}), xs = {
|
|
5480
5596
|
key: 0,
|
|
5481
5597
|
class: "absolute left-2 top-2 z-10 rounded-full bg-black/30 px-3 py-1 text-label-large text-white sm:left-4 sm:top-4"
|
|
5482
|
-
},
|
|
5598
|
+
}, Ss = ["aria-label"], Cs = ["aria-label"], ws = ["src", "alt"], Ts = ["aria-label"], Es = {
|
|
5483
5599
|
key: 1,
|
|
5484
5600
|
class: "z-10 px-4 text-center text-body-medium text-white/90"
|
|
5485
|
-
},
|
|
5601
|
+
}, Ds = {
|
|
5486
5602
|
key: 2,
|
|
5487
5603
|
class: "z-10 flex justify-center gap-2 overflow-x-auto p-4"
|
|
5488
|
-
},
|
|
5604
|
+
}, Os = ["onClick"], ks = ["src", "alt"], As = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
5489
5605
|
__name: "MLightbox",
|
|
5490
5606
|
props: {
|
|
5491
5607
|
modelValue: {
|
|
@@ -5636,7 +5752,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5636
5752
|
class: "fixed inset-0 z-[100] flex flex-col bg-black/90",
|
|
5637
5753
|
onClick: $(A, ["self"])
|
|
5638
5754
|
}, [
|
|
5639
|
-
D.value ? (R(), S("span",
|
|
5755
|
+
D.value ? (R(), S("span", xs, q(f.value + 1) + " / " + q(w.value.length), 1)) : x("", !0),
|
|
5640
5756
|
C("button", {
|
|
5641
5757
|
type: "button",
|
|
5642
5758
|
class: "absolute right-2 top-2 z-10 flex h-11 w-11 items-center justify-center rounded-full bg-black/30 text-white transition-colors hover:bg-black/50 sm:right-4 sm:top-4",
|
|
@@ -5645,7 +5761,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5645
5761
|
}, [E(r, {
|
|
5646
5762
|
name: "close",
|
|
5647
5763
|
size: 24
|
|
5648
|
-
})], 8,
|
|
5764
|
+
})], 8, Ss),
|
|
5649
5765
|
C("div", {
|
|
5650
5766
|
class: "relative flex flex-1 items-center justify-center overflow-hidden",
|
|
5651
5767
|
onClick: $(A, ["self"])
|
|
@@ -5659,7 +5775,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5659
5775
|
}, [E(r, {
|
|
5660
5776
|
name: "chevron_left",
|
|
5661
5777
|
size: 28
|
|
5662
|
-
})], 8,
|
|
5778
|
+
})], 8, Cs)) : x("", !0),
|
|
5663
5779
|
C("div", {
|
|
5664
5780
|
class: "relative h-full w-full touch-pan-y overflow-hidden",
|
|
5665
5781
|
onPointerdown: ne,
|
|
@@ -5684,7 +5800,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5684
5800
|
class: N(["max-h-full max-w-full select-none object-contain", e.rounded ? "rounded-2xl" : ""]),
|
|
5685
5801
|
draggable: "false",
|
|
5686
5802
|
onClick: n[0] ||= $(() => {}, ["stop"])
|
|
5687
|
-
}, null, 10,
|
|
5803
|
+
}, null, 10, ws)])) : x("", !0)]),
|
|
5688
5804
|
_: 1
|
|
5689
5805
|
})], 32),
|
|
5690
5806
|
D.value ? (R(), S("button", {
|
|
@@ -5696,10 +5812,10 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5696
5812
|
}, [E(r, {
|
|
5697
5813
|
name: "chevron_right",
|
|
5698
5814
|
size: 28
|
|
5699
|
-
})], 8,
|
|
5815
|
+
})], 8, Ts)) : x("", !0)
|
|
5700
5816
|
]),
|
|
5701
|
-
T.value?.caption ? (R(), S("p",
|
|
5702
|
-
e.showThumbnails && D.value ? (R(), S("div",
|
|
5817
|
+
T.value?.caption ? (R(), S("p", Es, q(T.value.caption), 1)) : x("", !0),
|
|
5818
|
+
e.showThumbnails && D.value ? (R(), S("div", Ds, [(R(!0), S(m, null, H(w.value, (e, t) => (R(), S("button", {
|
|
5703
5819
|
key: t,
|
|
5704
5820
|
type: "button",
|
|
5705
5821
|
class: N(["h-14 w-14 shrink-0 overflow-hidden rounded-md ring-2 transition-opacity", t === f.value ? "opacity-100 ring-white" : "opacity-50 ring-transparent hover:opacity-80"]),
|
|
@@ -5709,12 +5825,12 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5709
5825
|
alt: e.alt ?? "",
|
|
5710
5826
|
class: "h-full w-full object-cover",
|
|
5711
5827
|
draggable: "false"
|
|
5712
|
-
}, null, 8,
|
|
5828
|
+
}, null, 8, ks)], 10, Os))), 128))])) : x("", !0)
|
|
5713
5829
|
])) : x("", !0)]),
|
|
5714
5830
|
_: 1
|
|
5715
5831
|
})]))], 64));
|
|
5716
5832
|
}
|
|
5717
|
-
}), [["__scopeId", "data-v-5bc54765"]]),
|
|
5833
|
+
}), [["__scopeId", "data-v-5bc54765"]]), js = /* @__PURE__ */ D({
|
|
5718
5834
|
__name: "MList",
|
|
5719
5835
|
props: {
|
|
5720
5836
|
dense: {
|
|
@@ -5763,10 +5879,10 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5763
5879
|
class: N(i.value)
|
|
5764
5880
|
}, [U(e.$slots, "default")], 2));
|
|
5765
5881
|
}
|
|
5766
|
-
}),
|
|
5882
|
+
}), Ms = ["checked", "disabled"], Ns = {
|
|
5767
5883
|
key: 0,
|
|
5768
5884
|
class: "text-body-large text-on-surface"
|
|
5769
|
-
},
|
|
5885
|
+
}, Ps = /* @__PURE__ */ D({
|
|
5770
5886
|
__name: "MSwitch",
|
|
5771
5887
|
props: {
|
|
5772
5888
|
modelValue: { type: Boolean },
|
|
@@ -5788,7 +5904,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5788
5904
|
checked: e.modelValue,
|
|
5789
5905
|
disabled: e.disabled,
|
|
5790
5906
|
onChange: n[0] ||= (t) => i("update:modelValue", !e.modelValue)
|
|
5791
|
-
}, null, 40,
|
|
5907
|
+
}, null, 40, Ms), C("span", {
|
|
5792
5908
|
class: N(["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"]),
|
|
5793
5909
|
style: P(a.value)
|
|
5794
5910
|
}, [E(g, {
|
|
@@ -5806,21 +5922,21 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5806
5922
|
class: "text-primary"
|
|
5807
5923
|
})) : x("", !0)]),
|
|
5808
5924
|
_: 1
|
|
5809
|
-
})], 6)], 2), e.label ? (R(), S("span",
|
|
5925
|
+
})], 6)], 2), e.label ? (R(), S("span", Ns, q(e.label), 1)) : x("", !0)], 2));
|
|
5810
5926
|
}
|
|
5811
|
-
}),
|
|
5927
|
+
}), Fs = {
|
|
5812
5928
|
key: 0,
|
|
5813
5929
|
role: "listitem"
|
|
5814
|
-
},
|
|
5930
|
+
}, Is = { class: "min-w-0 flex-1" }, Ls = { class: "truncate text-body-large text-on-surface" }, Rs = {
|
|
5815
5931
|
key: 0,
|
|
5816
5932
|
class: "mli-expand-grid"
|
|
5817
|
-
},
|
|
5933
|
+
}, zs = { class: "mli-expand-body" }, Bs = ["src"], Vs = { class: "min-w-0 flex-1" }, Hs = { class: "truncate text-body-large text-on-surface" }, Us = {
|
|
5818
5934
|
key: 1,
|
|
5819
5935
|
class: "line-clamp-2 text-body-small text-on-surface-variant"
|
|
5820
|
-
},
|
|
5936
|
+
}, Ws = {
|
|
5821
5937
|
key: 1,
|
|
5822
5938
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
5823
|
-
},
|
|
5939
|
+
}, Gs = /* @__PURE__ */ D({
|
|
5824
5940
|
__name: "MListItem",
|
|
5825
5941
|
props: {
|
|
5826
5942
|
title: {},
|
|
@@ -5893,7 +6009,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5893
6009
|
function P() {
|
|
5894
6010
|
i("update:trailingValue", !n.trailingValue);
|
|
5895
6011
|
}
|
|
5896
|
-
return (t, n) => e.expandable ? (R(), S("li",
|
|
6012
|
+
return (t, n) => e.expandable ? (R(), S("li", Fs, [C("div", {
|
|
5897
6013
|
class: N(T.value),
|
|
5898
6014
|
onClick: M
|
|
5899
6015
|
}, [
|
|
@@ -5903,7 +6019,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5903
6019
|
size: 24,
|
|
5904
6020
|
class: "shrink-0 text-on-surface-variant"
|
|
5905
6021
|
}, null, 8, ["name"])) : x("", !0)]),
|
|
5906
|
-
C("div",
|
|
6022
|
+
C("div", Is, [U(t.$slots, "default", {}, () => [C("p", Ls, q(e.title), 1), e.subtitle && l.value >= 2 ? (R(), S("p", {
|
|
5907
6023
|
key: 0,
|
|
5908
6024
|
class: N(["text-body-medium text-on-surface-variant", l.value === 2 && "truncate"])
|
|
5909
6025
|
}, q(e.subtitle), 3)) : x("", !0)])]),
|
|
@@ -5913,7 +6029,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5913
6029
|
class: "shrink-0 text-on-surface-variant"
|
|
5914
6030
|
}, null, 8, ["name"])
|
|
5915
6031
|
], 2), E(g, { name: "mli-expand" }, {
|
|
5916
|
-
default: Q(() => [s.value ? (R(), S("div",
|
|
6032
|
+
default: Q(() => [s.value ? (R(), S("div", Rs, [C("div", zs, [U(t.$slots, "children")])])) : x("", !0)]),
|
|
5917
6033
|
_: 3
|
|
5918
6034
|
})])) : (R(), b(G(D.value), j({
|
|
5919
6035
|
key: 1,
|
|
@@ -5948,25 +6064,25 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5948
6064
|
src: e.image,
|
|
5949
6065
|
alt: "",
|
|
5950
6066
|
class: "h-14 w-14 shrink-0 rounded-md object-cover"
|
|
5951
|
-
}, null, 8,
|
|
6067
|
+
}, null, 8, Bs)) : f.value === "checkbox" ? (R(), b(lr, {
|
|
5952
6068
|
key: 4,
|
|
5953
6069
|
"model-value": d.value,
|
|
5954
6070
|
class: "shrink-0"
|
|
5955
6071
|
}, null, 8, ["model-value"])) : x("", !0)]),
|
|
5956
|
-
C("div",
|
|
5957
|
-
C("p",
|
|
6072
|
+
C("div", Vs, [U(t.$slots, "default", {}, () => [
|
|
6073
|
+
C("p", Hs, q(e.title), 1),
|
|
5958
6074
|
e.subtitle && l.value >= 2 ? (R(), S("p", {
|
|
5959
6075
|
key: 0,
|
|
5960
6076
|
class: N(["text-body-medium text-on-surface-variant", l.value === 2 && "truncate"])
|
|
5961
6077
|
}, q(e.subtitle), 3)) : x("", !0),
|
|
5962
|
-
e.description && l.value >= 3 ? (R(), S("p",
|
|
6078
|
+
e.description && l.value >= 3 ? (R(), S("p", Us, q(e.description), 1)) : x("", !0)
|
|
5963
6079
|
])]),
|
|
5964
6080
|
U(t.$slots, "trailing", {}, () => [p.value === "icon" ? (R(), b(r, {
|
|
5965
6081
|
key: 0,
|
|
5966
6082
|
name: e.trailingIcon,
|
|
5967
6083
|
size: 24,
|
|
5968
6084
|
class: "shrink-0 text-on-surface-variant"
|
|
5969
|
-
}, null, 8, ["name"])) : p.value === "text" ? (R(), S("span",
|
|
6085
|
+
}, null, 8, ["name"])) : p.value === "text" ? (R(), S("span", Ws, q(e.trailingText), 1)) : p.value === "switch" ? (R(), b(Ps, {
|
|
5970
6086
|
key: 2,
|
|
5971
6087
|
"model-value": !!e.trailingValue,
|
|
5972
6088
|
"onUpdate:modelValue": P
|
|
@@ -5979,7 +6095,7 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5979
6095
|
_: 3
|
|
5980
6096
|
}, 16, ["class"]));
|
|
5981
6097
|
}
|
|
5982
|
-
}),
|
|
6098
|
+
}), Ks = /* @__PURE__ */ D({
|
|
5983
6099
|
__name: "MListSubheader",
|
|
5984
6100
|
props: { inset: {
|
|
5985
6101
|
type: Boolean,
|
|
@@ -5991,16 +6107,119 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
5991
6107
|
role: "presentation"
|
|
5992
6108
|
}, [U(t.$slots, "default")], 2));
|
|
5993
6109
|
}
|
|
5994
|
-
}),
|
|
6110
|
+
}), qs = ["aria-label"], Js = ["width", "height"], Ys = 120, Xs = 36, Zs = 47, Qs = 650, $s = 4666, ec = .6, tc = /* @__PURE__ */ D({
|
|
6111
|
+
__name: "MLoadingIndicator",
|
|
6112
|
+
props: {
|
|
6113
|
+
size: { default: 48 },
|
|
6114
|
+
contained: {
|
|
6115
|
+
type: Boolean,
|
|
6116
|
+
default: !1
|
|
6117
|
+
},
|
|
6118
|
+
color: { default: "primary" },
|
|
6119
|
+
label: {}
|
|
6120
|
+
},
|
|
6121
|
+
setup(e) {
|
|
6122
|
+
let n = e, r = t(), i = {
|
|
6123
|
+
primary: {
|
|
6124
|
+
active: "var(--color-primary)",
|
|
6125
|
+
container: "var(--color-primary-container)"
|
|
6126
|
+
},
|
|
6127
|
+
secondary: {
|
|
6128
|
+
active: "var(--color-secondary)",
|
|
6129
|
+
container: "var(--color-secondary-container)"
|
|
6130
|
+
},
|
|
6131
|
+
tertiary: {
|
|
6132
|
+
active: "var(--color-tertiary)",
|
|
6133
|
+
container: "var(--color-tertiary-container)"
|
|
6134
|
+
},
|
|
6135
|
+
error: {
|
|
6136
|
+
active: "var(--color-error)",
|
|
6137
|
+
container: "var(--color-error-container)"
|
|
6138
|
+
}
|
|
6139
|
+
}, a = v(() => i[n.color]), o = v(() => n.contained ? Math.round(n.size * .55) : n.size), s = [], c = [], l = [];
|
|
6140
|
+
for (let e = 0; e < Ys; e++) {
|
|
6141
|
+
let t = 2 * Math.PI * e / Ys - Math.PI / 2;
|
|
6142
|
+
s.push(t), c.push(Math.cos(t)), l.push(Math.sin(t));
|
|
6143
|
+
}
|
|
6144
|
+
function u(e, t) {
|
|
6145
|
+
return (n) => e * t / Math.sqrt((t * Math.cos(n)) ** 2 + (e * Math.sin(n)) ** 2);
|
|
6146
|
+
}
|
|
6147
|
+
let d = [
|
|
6148
|
+
(e) => 1 + .07 * Math.cos(10 * e),
|
|
6149
|
+
(e) => 1 + .15 * Math.cos(9 * e),
|
|
6150
|
+
(e) => 1 + .1 * Math.cos(5 * e) + .02 * Math.cos(10 * e),
|
|
6151
|
+
u(1.3, .7),
|
|
6152
|
+
(e) => 1 + .22 * Math.cos(8 * e),
|
|
6153
|
+
(e) => 1 + .16 * Math.cos(4 * e),
|
|
6154
|
+
u(1.2, .8)
|
|
6155
|
+
].map((e) => s.map(e)), f = d.length, p = Math.sqrt(200), m = p * Math.sqrt(1 - ec * ec);
|
|
6156
|
+
function h(e) {
|
|
6157
|
+
return e <= 0 ? 0 : 1 - Math.exp(-.6 * p * e) * (Math.cos(m * e) + ec * p / m * Math.sin(m * e));
|
|
6158
|
+
}
|
|
6159
|
+
function g(e) {
|
|
6160
|
+
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
6161
|
+
}
|
|
6162
|
+
let _ = new Float64Array(Ys), y = new Float64Array(Ys);
|
|
6163
|
+
function b(e, t, n) {
|
|
6164
|
+
for (let r = 0; r < Ys; r++) {
|
|
6165
|
+
let i = Math.min(Xs * (e[r] + (t[r] - e[r]) * n), Zs);
|
|
6166
|
+
_[r] = 50 + i * c[r], y[r] = 50 + i * l[r];
|
|
6167
|
+
}
|
|
6168
|
+
let r = `M${_[0].toFixed(2)},${y[0].toFixed(2)}`;
|
|
6169
|
+
for (let e = 0; e < Ys; e++) {
|
|
6170
|
+
let t = (e - 1 + Ys) % Ys, n = e, i = (e + 1) % Ys, a = (e + 2) % Ys, o = _[n] + (_[i] - _[t]) / 6, s = y[n] + (y[i] - y[t]) / 6, c = _[i] - (_[a] - _[n]) / 6, l = y[i] - (y[a] - y[n]) / 6;
|
|
6171
|
+
r += `C${o.toFixed(2)},${s.toFixed(2)},${c.toFixed(2)},${l.toFixed(2)},${_[i].toFixed(2)},${y[i].toFixed(2)}`;
|
|
6172
|
+
}
|
|
6173
|
+
return r + "Z";
|
|
6174
|
+
}
|
|
6175
|
+
let x = V(null), w = V(null), T = V(!1), E = 0, D = -1, O = 0, k = -1, A = 90;
|
|
6176
|
+
function j(e) {
|
|
6177
|
+
D < 0 && (D = e), k < 0 && (k = e);
|
|
6178
|
+
let t = T.value, n = t ? Qs * 1.8 : Qs, r = e - k;
|
|
6179
|
+
r >= n && (O = (O + 1) % f, A = (A + 90) % 360, k = e, r = 0);
|
|
6180
|
+
let i = t ? g(r / n) : h(r / 1e3), a = d[O], o = d[(O + 1) % f];
|
|
6181
|
+
if (x.value?.setAttribute("d", b(a, o, i)), !t && w.value) {
|
|
6182
|
+
let t = (e - D) / $s * 360 % 360;
|
|
6183
|
+
w.value.style.transform = `rotate(${(i * 90 + A + t).toFixed(2)}deg)`;
|
|
6184
|
+
}
|
|
6185
|
+
E = requestAnimationFrame(j);
|
|
6186
|
+
}
|
|
6187
|
+
return I(() => {
|
|
6188
|
+
T.value = window.matchMedia("(prefers-reduced-motion: reduce)").matches, x.value?.setAttribute("d", b(d[0], d[0], 0)), E = requestAnimationFrame(j);
|
|
6189
|
+
}), L(() => cancelAnimationFrame(E)), (t, n) => (R(), S("span", {
|
|
6190
|
+
class: N(["inline-flex shrink-0 items-center justify-center", e.contained ? "rounded-full" : void 0]),
|
|
6191
|
+
style: P({
|
|
6192
|
+
width: `${e.size}px`,
|
|
6193
|
+
height: `${e.size}px`,
|
|
6194
|
+
backgroundColor: e.contained ? a.value.container : void 0
|
|
6195
|
+
}),
|
|
6196
|
+
role: "status",
|
|
6197
|
+
"aria-label": e.label ?? J(r).loading
|
|
6198
|
+
}, [(R(), S("svg", {
|
|
6199
|
+
ref_key: "svgEl",
|
|
6200
|
+
ref: w,
|
|
6201
|
+
width: o.value,
|
|
6202
|
+
height: o.value,
|
|
6203
|
+
viewBox: "0 0 100 100",
|
|
6204
|
+
"shape-rendering": "geometricPrecision",
|
|
6205
|
+
style: { "transform-origin": "50% 50%" }
|
|
6206
|
+
}, [C("path", {
|
|
6207
|
+
ref_key: "pathEl",
|
|
6208
|
+
ref: x,
|
|
6209
|
+
"shape-rendering": "geometricPrecision",
|
|
6210
|
+
style: P({ fill: a.value.active })
|
|
6211
|
+
}, null, 4)], 8, Js))], 14, qs));
|
|
6212
|
+
}
|
|
6213
|
+
}), nc = {
|
|
5995
6214
|
key: 0,
|
|
5996
6215
|
class: "text-body-large text-on-surface-variant"
|
|
5997
|
-
},
|
|
6216
|
+
}, rc = {
|
|
5998
6217
|
key: 1,
|
|
5999
6218
|
class: "relative"
|
|
6000
|
-
},
|
|
6219
|
+
}, ic = {
|
|
6001
6220
|
key: 0,
|
|
6002
6221
|
class: "text-body-medium text-on-surface-variant"
|
|
6003
|
-
},
|
|
6222
|
+
}, ac = /* @__PURE__ */ D({
|
|
6004
6223
|
__name: "MLoadingOverlay",
|
|
6005
6224
|
props: {
|
|
6006
6225
|
visible: { type: Boolean },
|
|
@@ -6033,11 +6252,11 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
6033
6252
|
size: e.spinnerSize,
|
|
6034
6253
|
class: "text-primary"
|
|
6035
6254
|
}, null, 8, ["size"]),
|
|
6036
|
-
e.text ? (R(), S("p",
|
|
6255
|
+
e.text ? (R(), S("p", nc, q(e.text), 1)) : x("", !0),
|
|
6037
6256
|
U(t.$slots, "default")
|
|
6038
6257
|
], 2)) : x("", !0)]),
|
|
6039
6258
|
_: 3
|
|
6040
|
-
})])) : (R(), S("div",
|
|
6259
|
+
})])) : (R(), S("div", rc, [U(t.$slots, "content"), E(g, {
|
|
6041
6260
|
"enter-active-class": "transition-opacity duration-200",
|
|
6042
6261
|
"enter-from-class": "opacity-0",
|
|
6043
6262
|
"leave-active-class": "transition-opacity duration-150",
|
|
@@ -6051,13 +6270,13 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
6051
6270
|
size: e.spinnerSize,
|
|
6052
6271
|
class: "text-primary"
|
|
6053
6272
|
}, null, 8, ["size"]),
|
|
6054
|
-
e.text ? (R(), S("p",
|
|
6273
|
+
e.text ? (R(), S("p", ic, q(e.text), 1)) : x("", !0),
|
|
6055
6274
|
U(t.$slots, "default")
|
|
6056
6275
|
], 2)) : x("", !0)]),
|
|
6057
6276
|
_: 3
|
|
6058
6277
|
})]));
|
|
6059
6278
|
}
|
|
6060
|
-
}),
|
|
6279
|
+
}), oc = /* @__PURE__ */ D({
|
|
6061
6280
|
__name: "MMasonry",
|
|
6062
6281
|
props: {
|
|
6063
6282
|
cols: { default: 2 },
|
|
@@ -6108,25 +6327,25 @@ var Wa = ["aria-label", "disabled"], Ga = { class: "leading-none" }, Ka = /* @__
|
|
|
6108
6327
|
class: "relative w-full"
|
|
6109
6328
|
}, [U(e.$slots, "default")], 512));
|
|
6110
6329
|
}
|
|
6111
|
-
}),
|
|
6112
|
-
function
|
|
6113
|
-
return R(), S("hr",
|
|
6330
|
+
}), sc = {}, cc = { class: "my-1 border-outline-variant" };
|
|
6331
|
+
function lc(e, t) {
|
|
6332
|
+
return R(), S("hr", cc);
|
|
6114
6333
|
}
|
|
6115
|
-
var
|
|
6334
|
+
var uc = /*#__PURE__*/ p(sc, [["render", lc]]), dc = { class: "flex flex-col gap-1" }, fc = [
|
|
6116
6335
|
"id",
|
|
6117
6336
|
"value",
|
|
6118
6337
|
"disabled",
|
|
6119
6338
|
"required"
|
|
6120
|
-
],
|
|
6339
|
+
], pc = ["for"], mc = {
|
|
6121
6340
|
key: 0,
|
|
6122
6341
|
class: "text-error"
|
|
6123
|
-
},
|
|
6342
|
+
}, hc = {
|
|
6124
6343
|
key: 0,
|
|
6125
6344
|
class: "px-4 text-body-small text-error"
|
|
6126
|
-
},
|
|
6345
|
+
}, gc = {
|
|
6127
6346
|
key: 1,
|
|
6128
6347
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6129
|
-
},
|
|
6348
|
+
}, _c = /* @__PURE__ */ D({
|
|
6130
6349
|
__name: "MMaskField",
|
|
6131
6350
|
props: {
|
|
6132
6351
|
modelValue: {},
|
|
@@ -6223,7 +6442,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6223
6442
|
i.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
6224
6443
|
].join(" ");
|
|
6225
6444
|
});
|
|
6226
|
-
return (t, n) => (R(), S("div",
|
|
6445
|
+
return (t, n) => (R(), S("div", dc, [C("div", {
|
|
6227
6446
|
ref_key: "fieldBgEl",
|
|
6228
6447
|
ref: c,
|
|
6229
6448
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6249,11 +6468,11 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6249
6468
|
class: N(D.value),
|
|
6250
6469
|
onInput: y,
|
|
6251
6470
|
onKeydown: b
|
|
6252
|
-
}, null, 42,
|
|
6471
|
+
}, null, 42, fc),
|
|
6253
6472
|
C("label", {
|
|
6254
6473
|
for: J(s),
|
|
6255
6474
|
class: N(O.value)
|
|
6256
|
-
}, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
6475
|
+
}, [T(q(e.label), 1), e.required ? (R(), S("span", mc, "\xA0*")) : x("", !0)], 10, pc),
|
|
6257
6476
|
h.value ? (R(), S("button", {
|
|
6258
6477
|
key: 1,
|
|
6259
6478
|
type: "button",
|
|
@@ -6265,31 +6484,31 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6265
6484
|
name: "close",
|
|
6266
6485
|
size: 18
|
|
6267
6486
|
})])) : x("", !0)
|
|
6268
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
6487
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", hc, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", gc, q(e.hint), 1)) : x("", !0)]));
|
|
6269
6488
|
}
|
|
6270
|
-
}),
|
|
6489
|
+
}), vc = { class: "flex flex-col gap-1" }, yc = ["onClick"], bc = ["title"], xc = [
|
|
6271
6490
|
"id",
|
|
6272
6491
|
"value",
|
|
6273
6492
|
"placeholder",
|
|
6274
6493
|
"disabled",
|
|
6275
6494
|
"aria-expanded",
|
|
6276
6495
|
"aria-disabled"
|
|
6277
|
-
],
|
|
6496
|
+
], Sc = ["for"], Cc = {
|
|
6278
6497
|
key: 0,
|
|
6279
6498
|
class: "text-error"
|
|
6280
|
-
},
|
|
6499
|
+
}, wc = { class: "pointer-events-none absolute right-2 top-4" }, Tc = {
|
|
6281
6500
|
key: 0,
|
|
6282
6501
|
class: "px-4 text-body-small text-error"
|
|
6283
|
-
},
|
|
6502
|
+
}, Ec = {
|
|
6284
6503
|
key: 1,
|
|
6285
6504
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6286
|
-
},
|
|
6505
|
+
}, Dc = { class: "flex flex-col py-1" }, Oc = ["onMousedown"], kc = { class: "text-body-large text-on-surface" }, Ac = {
|
|
6287
6506
|
key: 0,
|
|
6288
6507
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
6289
|
-
},
|
|
6508
|
+
}, jc = { class: "mac-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, Mc = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, Nc = { class: "text-headline-small text-on-surface" }, Pc = { class: "px-6 pb-3" }, Fc = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, Ic = ["value", "placeholder"], Lc = { class: "flex-1 overflow-y-auto py-2" }, Rc = { class: "text-body-large text-on-surface" }, zc = {
|
|
6290
6509
|
key: 0,
|
|
6291
6510
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
6292
|
-
},
|
|
6511
|
+
}, Bc = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6293
6512
|
__name: "MMultiAutocomplete",
|
|
6294
6513
|
props: {
|
|
6295
6514
|
modelValue: { default: () => [] },
|
|
@@ -6485,7 +6704,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6485
6704
|
u.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
6486
6705
|
].join(" ");
|
|
6487
6706
|
});
|
|
6488
|
-
return (t, n) => (R(), S(m, null, [C("div",
|
|
6707
|
+
return (t, n) => (R(), S(m, null, [C("div", vc, [C("div", {
|
|
6489
6708
|
ref_key: "fieldEl",
|
|
6490
6709
|
ref: w,
|
|
6491
6710
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6512,13 +6731,13 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6512
6731
|
}, [E(r, {
|
|
6513
6732
|
name: "close",
|
|
6514
6733
|
size: 12
|
|
6515
|
-
})], 8,
|
|
6734
|
+
})], 8, yc)]))), 128)),
|
|
6516
6735
|
ne.value > 0 && !re.value ? (R(), S("span", {
|
|
6517
6736
|
key: 0,
|
|
6518
6737
|
title: ae.value,
|
|
6519
6738
|
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",
|
|
6520
6739
|
onClick: n[0] ||= $((e) => re.value = !0, ["stop"])
|
|
6521
|
-
}, " +" + q(ne.value), 9,
|
|
6740
|
+
}, " +" + q(ne.value), 9, bc)) : x("", !0),
|
|
6522
6741
|
re.value && e.modelValue.length > e.maxChips ? (R(), S("span", {
|
|
6523
6742
|
key: 1,
|
|
6524
6743
|
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",
|
|
@@ -6544,11 +6763,11 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6544
6763
|
onBlur: pe,
|
|
6545
6764
|
onInput: me,
|
|
6546
6765
|
onKeydown: _e
|
|
6547
|
-
}, null, 40,
|
|
6766
|
+
}, null, 40, xc)], 2),
|
|
6548
6767
|
C("label", {
|
|
6549
6768
|
for: J(c),
|
|
6550
6769
|
class: N(Se.value)
|
|
6551
|
-
}, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
6770
|
+
}, [T(q(e.label), 1), e.required ? (R(), S("span", Cc, "\xA0*")) : x("", !0)], 10, Sc),
|
|
6552
6771
|
e.clearable && Y.value && !e.disabled ? (R(), S("button", {
|
|
6553
6772
|
key: 1,
|
|
6554
6773
|
type: "button",
|
|
@@ -6560,12 +6779,12 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6560
6779
|
name: "close",
|
|
6561
6780
|
size: 18
|
|
6562
6781
|
})])) : x("", !0),
|
|
6563
|
-
C("div",
|
|
6782
|
+
C("div", wc, [E(r, {
|
|
6564
6783
|
name: "arrow_drop_down",
|
|
6565
6784
|
size: 24,
|
|
6566
6785
|
class: N(["text-on-surface-variant transition-transform duration-200", u.value || f.value ? "rotate-180" : ""])
|
|
6567
6786
|
}, null, 8, ["class"])])
|
|
6568
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
6787
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", Tc, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", Ec, q(e.hint), 1)) : x("", !0)]), (R(), b(h, { to: "body" }, [E(g, {
|
|
6569
6788
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6570
6789
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6571
6790
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6579,7 +6798,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6579
6798
|
ref: k,
|
|
6580
6799
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6581
6800
|
style: P(A.value)
|
|
6582
|
-
}, [C("div",
|
|
6801
|
+
}, [C("div", Dc, [(R(!0), S(m, null, H(ee.value, (t, n) => (R(), S("label", {
|
|
6583
6802
|
key: n,
|
|
6584
6803
|
"data-option": "",
|
|
6585
6804
|
class: N(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", [t.disabled ? "cursor-not-allowed opacity-38" : "", ye(t) === y.value && !t.disabled ? "bg-on-surface/12" : ""]]),
|
|
@@ -6587,20 +6806,20 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6587
6806
|
}, [E(lr, {
|
|
6588
6807
|
"model-value": K(e.modelValue, t.value),
|
|
6589
6808
|
disabled: t.disabled
|
|
6590
|
-
}, null, 8, ["model-value", "disabled"]), C("span",
|
|
6809
|
+
}, null, 8, ["model-value", "disabled"]), C("span", kc, q(t.label), 1)], 42, Oc))), 128)), ee.value.length ? x("", !0) : (R(), S("p", Ac, q(te.value), 1))])], 4)) : x("", !0)]),
|
|
6591
6810
|
_: 1
|
|
6592
6811
|
}), E(g, { name: "m3-mac-modal" }, {
|
|
6593
6812
|
default: Q(() => [f.value && e.mode === "modal" ? (R(), S("div", {
|
|
6594
6813
|
key: 0,
|
|
6595
6814
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6596
6815
|
onClick: $(de, ["self"])
|
|
6597
|
-
}, [C("div",
|
|
6598
|
-
C("div",
|
|
6816
|
+
}, [C("div", jc, [
|
|
6817
|
+
C("div", Mc, [C("h2", Nc, q(e.label || e.placeholder), 1), E(l, {
|
|
6599
6818
|
icon: "close",
|
|
6600
6819
|
label: J(s).close,
|
|
6601
6820
|
onClick: de
|
|
6602
6821
|
}, null, 8, ["label"])]),
|
|
6603
|
-
C("div",
|
|
6822
|
+
C("div", Pc, [C("div", Fc, [E(r, {
|
|
6604
6823
|
name: "search",
|
|
6605
6824
|
size: 16,
|
|
6606
6825
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6610,9 +6829,9 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6610
6829
|
placeholder: J(s).search,
|
|
6611
6830
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant",
|
|
6612
6831
|
onInput: n[4] ||= (e) => W(e.target.value)
|
|
6613
|
-
}, null, 40,
|
|
6832
|
+
}, null, 40, Ic)])]),
|
|
6614
6833
|
n[5] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6615
|
-
C("div",
|
|
6834
|
+
C("div", Lc, [(R(!0), S(m, null, H(le.value, (t, n) => (R(), S("label", {
|
|
6616
6835
|
key: n,
|
|
6617
6836
|
class: N(["flex cursor-pointer items-center gap-4 px-6 py-3 transition-colors hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6618
6837
|
}, [E(lr, {
|
|
@@ -6623,37 +6842,37 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6623
6842
|
"model-value",
|
|
6624
6843
|
"disabled",
|
|
6625
6844
|
"onUpdate:modelValue"
|
|
6626
|
-
]), C("span",
|
|
6845
|
+
]), C("span", Rc, q(t.label), 1)], 2))), 128)), le.value.length ? x("", !0) : (R(), S("p", zc, q(te.value), 1))])
|
|
6627
6846
|
])])) : x("", !0)]),
|
|
6628
6847
|
_: 1
|
|
6629
6848
|
})]))], 64));
|
|
6630
6849
|
}
|
|
6631
|
-
}), [["__scopeId", "data-v-3337b2c7"]]),
|
|
6850
|
+
}), [["__scopeId", "data-v-3337b2c7"]]), Vc = { class: "flex flex-col gap-1" }, Hc = [
|
|
6632
6851
|
"id",
|
|
6633
6852
|
"tabindex",
|
|
6634
6853
|
"aria-expanded"
|
|
6635
|
-
],
|
|
6854
|
+
], Uc = ["onClick"], Wc = ["title"], Gc = {
|
|
6636
6855
|
key: 1,
|
|
6637
6856
|
class: "text-body-large text-on-surface-variant opacity-0"
|
|
6638
|
-
},
|
|
6857
|
+
}, Kc = {
|
|
6639
6858
|
key: 0,
|
|
6640
6859
|
class: "text-error"
|
|
6641
|
-
},
|
|
6860
|
+
}, qc = { class: "pointer-events-none absolute right-2 top-4" }, Jc = {
|
|
6642
6861
|
key: 0,
|
|
6643
6862
|
class: "px-4 text-body-small text-error"
|
|
6644
|
-
},
|
|
6863
|
+
}, Yc = {
|
|
6645
6864
|
key: 1,
|
|
6646
6865
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
6647
|
-
},
|
|
6866
|
+
}, Xc = {
|
|
6648
6867
|
key: 0,
|
|
6649
6868
|
class: "sticky top-0 bg-surface-container px-3 py-2"
|
|
6650
|
-
},
|
|
6869
|
+
}, Zc = { class: "flex items-center gap-2 rounded-full bg-surface-container-high px-3 py-1.5" }, Qc = ["placeholder"], $c = { class: "flex flex-col py-1" }, el = { class: "text-body-large text-on-surface" }, tl = { class: "px-4 py-3 text-center text-body-small text-on-surface-variant" }, nl = { class: "ms-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, rl = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, il = { class: "text-headline-small text-on-surface" }, al = {
|
|
6651
6870
|
key: 0,
|
|
6652
6871
|
class: "px-6 pb-3"
|
|
6653
|
-
},
|
|
6872
|
+
}, ol = { class: "flex items-center gap-2 rounded-full bg-surface-container-highest px-3 py-2" }, sl = ["placeholder"], cl = { class: "flex-1 overflow-y-auto py-2" }, ll = { class: "text-body-large text-on-surface" }, ul = {
|
|
6654
6873
|
key: 0,
|
|
6655
6874
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
6656
|
-
},
|
|
6875
|
+
}, dl = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
6657
6876
|
__name: "MMultiSelect",
|
|
6658
6877
|
props: {
|
|
6659
6878
|
modelValue: { default: () => [] },
|
|
@@ -6796,7 +7015,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6796
7015
|
u.value ? o.error ? "text-error" : "text-primary" : o.error ? "text-error" : "text-on-surface-variant"
|
|
6797
7016
|
].join(" ");
|
|
6798
7017
|
});
|
|
6799
|
-
return (t, n) => (R(), S(m, null, [C("div",
|
|
7018
|
+
return (t, n) => (R(), S(m, null, [C("div", Vc, [C("div", {
|
|
6800
7019
|
ref_key: "fieldEl",
|
|
6801
7020
|
ref: _,
|
|
6802
7021
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -6833,13 +7052,13 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6833
7052
|
}, [E(r, {
|
|
6834
7053
|
name: "close",
|
|
6835
7054
|
size: 12
|
|
6836
|
-
})], 8,
|
|
7055
|
+
})], 8, Uc)]))), 128)),
|
|
6837
7056
|
z.value > 0 && !B.value ? (R(), S("span", {
|
|
6838
7057
|
key: 0,
|
|
6839
7058
|
title: G.value,
|
|
6840
7059
|
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",
|
|
6841
7060
|
onClick: n[0] ||= $((e) => B.value = !0, ["stop"])
|
|
6842
|
-
}, " +" + q(z.value), 9,
|
|
7061
|
+
}, " +" + q(z.value), 9, Wc)) : x("", !0),
|
|
6843
7062
|
B.value && e.modelValue.length > e.maxChips ? (R(), S("span", {
|
|
6844
7063
|
key: 1,
|
|
6845
7064
|
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",
|
|
@@ -6848,8 +7067,8 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6848
7067
|
name: "unfold_less",
|
|
6849
7068
|
size: 14
|
|
6850
7069
|
})])) : x("", !0)
|
|
6851
|
-
], 64)) : u.value ? x("", !0) : (R(), S("span",
|
|
6852
|
-
C("label", { class: N(ue.value) }, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
7070
|
+
], 64)) : u.value ? x("", !0) : (R(), S("span", Gc, q(e.placeholder), 1))], 42, Hc),
|
|
7071
|
+
C("label", { class: N(ue.value) }, [T(q(e.label), 1), e.required ? (R(), S("span", Kc, "\xA0*")) : x("", !0)], 2),
|
|
6853
7072
|
e.clearable && j.value && !e.disabled ? (R(), S("button", {
|
|
6854
7073
|
key: 1,
|
|
6855
7074
|
type: "button",
|
|
@@ -6861,12 +7080,12 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6861
7080
|
name: "close",
|
|
6862
7081
|
size: 18
|
|
6863
7082
|
})])) : x("", !0),
|
|
6864
|
-
C("div",
|
|
7083
|
+
C("div", qc, [E(r, {
|
|
6865
7084
|
name: "arrow_drop_down",
|
|
6866
7085
|
size: 24,
|
|
6867
7086
|
class: N(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
6868
7087
|
}, null, 8, ["class"])])
|
|
6869
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
7088
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", Jc, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", Yc, q(e.hint), 1)) : x("", !0)]), (R(), b(h, { to: "body" }, [E(g, {
|
|
6870
7089
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
6871
7090
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
6872
7091
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -6880,7 +7099,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6880
7099
|
ref: w,
|
|
6881
7100
|
class: "fixed z-500 max-h-60 overflow-auto rounded-sm bg-surface-container shadow-elevation-2",
|
|
6882
7101
|
style: P(O.value)
|
|
6883
|
-
}, [e.searchable ? (R(), S("div",
|
|
7102
|
+
}, [e.searchable ? (R(), S("div", Xc, [C("div", Zc, [E(r, {
|
|
6884
7103
|
name: "search",
|
|
6885
7104
|
size: 16,
|
|
6886
7105
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6891,7 +7110,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6891
7110
|
type: "text",
|
|
6892
7111
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
6893
7112
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6894
|
-
}, null, 8,
|
|
7113
|
+
}, null, 8, Qc), [[te, p.value]])])])) : x("", !0), C("div", $c, [(R(!0), S(m, null, H(F.value, (t, n) => (R(), S("label", {
|
|
6895
7114
|
key: n,
|
|
6896
7115
|
class: N(["flex cursor-pointer items-center gap-3 px-4 py-2 hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6897
7116
|
}, [E(lr, {
|
|
@@ -6902,20 +7121,20 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6902
7121
|
"model-value",
|
|
6903
7122
|
"disabled",
|
|
6904
7123
|
"onUpdate:modelValue"
|
|
6905
|
-
]), C("span",
|
|
7124
|
+
]), C("span", el, q(t.label), 1)], 2))), 128)), F.value.length === 0 ? U(t.$slots, "no-results", {}, () => [C("p", tl, q(e.noResultsText ?? J(i).noResults), 1)], !0, 0) : x("", !0)])], 4)) : x("", !0)]),
|
|
6906
7125
|
_: 3
|
|
6907
7126
|
}), E(g, { name: "m3-ms-modal" }, {
|
|
6908
7127
|
default: Q(() => [d.value && e.mode === "modal" ? (R(), S("div", {
|
|
6909
7128
|
key: 0,
|
|
6910
7129
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
6911
7130
|
onClick: $(re, ["self"])
|
|
6912
|
-
}, [C("div",
|
|
6913
|
-
C("div",
|
|
7131
|
+
}, [C("div", nl, [
|
|
7132
|
+
C("div", rl, [C("h2", il, q(e.label || e.placeholder), 1), E(l, {
|
|
6914
7133
|
icon: "close",
|
|
6915
7134
|
label: J(i).close,
|
|
6916
7135
|
onClick: re
|
|
6917
7136
|
}, null, 8, ["label"])]),
|
|
6918
|
-
e.searchable ? (R(), S("div",
|
|
7137
|
+
e.searchable ? (R(), S("div", al, [C("div", ol, [E(r, {
|
|
6919
7138
|
name: "search",
|
|
6920
7139
|
size: 16,
|
|
6921
7140
|
class: "shrink-0 text-on-surface-variant"
|
|
@@ -6924,9 +7143,9 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6924
7143
|
type: "text",
|
|
6925
7144
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
6926
7145
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
6927
|
-
}, null, 8,
|
|
7146
|
+
}, null, 8, sl), [[te, f.value]])])])) : x("", !0),
|
|
6928
7147
|
n[9] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
6929
|
-
C("div",
|
|
7148
|
+
C("div", cl, [(R(!0), S(m, null, H(oe.value, (t, n) => (R(), S("label", {
|
|
6930
7149
|
key: n,
|
|
6931
7150
|
class: N(["flex cursor-pointer items-center gap-4 px-6 py-3 transition-colors hover:bg-on-surface/8", t.disabled ? "cursor-not-allowed opacity-38" : ""])
|
|
6932
7151
|
}, [E(lr, {
|
|
@@ -6937,12 +7156,12 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6937
7156
|
"model-value",
|
|
6938
7157
|
"disabled",
|
|
6939
7158
|
"onUpdate:modelValue"
|
|
6940
|
-
]), C("span",
|
|
7159
|
+
]), C("span", ll, q(t.label), 1)], 2))), 128)), oe.value.length ? x("", !0) : (R(), S("p", ul, q(e.noResultsText ?? J(i).noResults), 1))])
|
|
6941
7160
|
])])) : x("", !0)]),
|
|
6942
7161
|
_: 1
|
|
6943
7162
|
})]))], 64));
|
|
6944
7163
|
}
|
|
6945
|
-
}), [["__scopeId", "data-v-67bbd3cf"]]),
|
|
7164
|
+
}), [["__scopeId", "data-v-67bbd3cf"]]), fl = { class: "flex h-20 w-full items-center justify-around border-t border-outline-variant bg-surface-container" }, pl = ["onClick"], ml = /* @__PURE__ */ D({
|
|
6946
7165
|
__name: "MNavigationBar",
|
|
6947
7166
|
props: {
|
|
6948
7167
|
modelValue: {},
|
|
@@ -6950,7 +7169,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6950
7169
|
},
|
|
6951
7170
|
emits: ["update:modelValue"],
|
|
6952
7171
|
setup(e) {
|
|
6953
|
-
return (t, n) => (R(), S("nav",
|
|
7172
|
+
return (t, n) => (R(), S("nav", fl, [(R(!0), S(m, null, H(e.items, (n) => (R(), S("button", {
|
|
6954
7173
|
key: n.value,
|
|
6955
7174
|
type: "button",
|
|
6956
7175
|
class: N(["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"]),
|
|
@@ -6977,9 +7196,9 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6977
7196
|
size: 24
|
|
6978
7197
|
}, null, 8, ["name"])]),
|
|
6979
7198
|
_: 2
|
|
6980
|
-
}, 1032, ["count"]))], 2), C("span", { class: N(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, q(n.label), 3)], 10,
|
|
7199
|
+
}, 1032, ["count"]))], 2), C("span", { class: N(["text-label-medium transition-[font-weight] duration-150", n.value === e.modelValue ? "font-bold" : "font-medium"]) }, q(n.label), 3)], 10, pl))), 128))]));
|
|
6981
7200
|
}
|
|
6982
|
-
}),
|
|
7201
|
+
}), hl = { class: "flex flex-col gap-1" }, gl = [
|
|
6983
7202
|
"id",
|
|
6984
7203
|
"value",
|
|
6985
7204
|
"disabled",
|
|
@@ -6987,19 +7206,19 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
6987
7206
|
"min",
|
|
6988
7207
|
"max",
|
|
6989
7208
|
"step"
|
|
6990
|
-
],
|
|
7209
|
+
], _l = ["for"], vl = {
|
|
6991
7210
|
key: 0,
|
|
6992
7211
|
class: "text-error"
|
|
6993
|
-
},
|
|
7212
|
+
}, yl = {
|
|
6994
7213
|
key: 1,
|
|
6995
7214
|
class: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5"
|
|
6996
|
-
},
|
|
7215
|
+
}, bl = {
|
|
6997
7216
|
key: 0,
|
|
6998
7217
|
class: "px-4 text-body-small text-error"
|
|
6999
|
-
},
|
|
7218
|
+
}, xl = {
|
|
7000
7219
|
key: 1,
|
|
7001
7220
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
7002
|
-
},
|
|
7221
|
+
}, Sl = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
7003
7222
|
__name: "MNumberField",
|
|
7004
7223
|
props: {
|
|
7005
7224
|
modelValue: { default: null },
|
|
@@ -7091,7 +7310,7 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
7091
7310
|
n.error ? "text-error peer-focus:text-error" : "text-on-surface-variant peer-focus:text-primary"
|
|
7092
7311
|
].join(" ");
|
|
7093
7312
|
});
|
|
7094
|
-
return (t, n) => (R(), S("div",
|
|
7313
|
+
return (t, n) => (R(), S("div", hl, [C("div", {
|
|
7095
7314
|
ref_key: "fieldBgEl",
|
|
7096
7315
|
ref: s,
|
|
7097
7316
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -7117,12 +7336,12 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
7117
7336
|
class: N(_.value),
|
|
7118
7337
|
onInput: p,
|
|
7119
7338
|
onKeydown: g
|
|
7120
|
-
}, null, 42,
|
|
7339
|
+
}, null, 42, gl),
|
|
7121
7340
|
C("label", {
|
|
7122
7341
|
for: J(o),
|
|
7123
7342
|
class: N(y.value)
|
|
7124
|
-
}, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
7125
|
-
e.stepper ? (R(), S("div",
|
|
7343
|
+
}, [T(q(e.label), 1), e.required ? (R(), S("span", vl, "\xA0*")) : x("", !0)], 10, _l),
|
|
7344
|
+
e.stepper ? (R(), S("div", yl, [E(l, {
|
|
7126
7345
|
icon: "remove",
|
|
7127
7346
|
label: "Decrease",
|
|
7128
7347
|
size: 32,
|
|
@@ -7135,9 +7354,9 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
7135
7354
|
disabled: e.disabled || e.max !== void 0 && (e.modelValue ?? 0) >= e.max,
|
|
7136
7355
|
onClick: m
|
|
7137
7356
|
}, null, 8, ["disabled"])])) : x("", !0)
|
|
7138
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
7357
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", bl, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", xl, q(e.hint), 1)) : x("", !0)]));
|
|
7139
7358
|
}
|
|
7140
|
-
}), [["__scopeId", "data-v-f6db08d0"]]),
|
|
7359
|
+
}), [["__scopeId", "data-v-f6db08d0"]]), Cl = D({
|
|
7141
7360
|
name: "MDrawerItemList",
|
|
7142
7361
|
components: { MIcon: r },
|
|
7143
7362
|
props: {
|
|
@@ -7212,8 +7431,8 @@ var $s = /*#__PURE__*/ p(Xs, [["render", Qs]]), ec = { class: "flex flex-col gap
|
|
|
7212
7431
|
}).onfinish = t;
|
|
7213
7432
|
}
|
|
7214
7433
|
}
|
|
7215
|
-
}),
|
|
7216
|
-
function
|
|
7434
|
+
}), wl = { key: 0 };
|
|
7435
|
+
function Tl(e, t, n, r, i, a) {
|
|
7217
7436
|
let o = W("MIcon"), s = W("MDrawerItemList");
|
|
7218
7437
|
return R(!0), S(m, null, H(e.items, (t) => (R(), S(m, { key: t.value }, [(R(), b(G(e.itemTag(t)), {
|
|
7219
7438
|
to: t.to && !t.disabled ? t.to : void 0,
|
|
@@ -7253,7 +7472,7 @@ function ml(e, t, n, r, i, a) {
|
|
|
7253
7472
|
onEnter: e.onEnter,
|
|
7254
7473
|
onLeave: e.onLeave
|
|
7255
7474
|
}, {
|
|
7256
|
-
default: Q(() => [t.children?.length && e.openItems[t.value] ? (R(), S("div",
|
|
7475
|
+
default: Q(() => [t.children?.length && e.openItems[t.value] ? (R(), S("div", wl, [E(s, {
|
|
7257
7476
|
items: t.children,
|
|
7258
7477
|
selected: e.selected,
|
|
7259
7478
|
depth: e.depth + 1
|
|
@@ -7265,52 +7484,52 @@ function ml(e, t, n, r, i, a) {
|
|
|
7265
7484
|
_: 2
|
|
7266
7485
|
}, 1032, ["onEnter", "onLeave"])], 64))), 128);
|
|
7267
7486
|
}
|
|
7268
|
-
var
|
|
7487
|
+
var El = /*#__PURE__*/ p(Cl, [["render", Tl]]), Dl = {
|
|
7269
7488
|
key: 0,
|
|
7270
7489
|
class: "shrink-0"
|
|
7271
|
-
},
|
|
7490
|
+
}, Ol = {
|
|
7272
7491
|
key: 1,
|
|
7273
7492
|
class: "shrink-0 px-5 pt-6 pb-2"
|
|
7274
|
-
},
|
|
7493
|
+
}, kl = { class: "text-title-small font-medium text-on-surface-variant" }, Al = { class: "flex min-h-0 flex-1 flex-col overflow-y-auto px-3 py-2" }, jl = {
|
|
7275
7494
|
key: 0,
|
|
7276
7495
|
class: "my-1 border-t border-outline-variant"
|
|
7277
|
-
},
|
|
7496
|
+
}, Ml = ["onClick"], Nl = { class: "flex-1 text-left text-title-small font-medium" }, Pl = {
|
|
7278
7497
|
key: 2,
|
|
7279
7498
|
class: "px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant"
|
|
7280
|
-
},
|
|
7499
|
+
}, Fl = {
|
|
7281
7500
|
key: 0,
|
|
7282
7501
|
class: "nd-section-grid"
|
|
7283
|
-
},
|
|
7502
|
+
}, Il = { class: "nd-section-body" }, Ll = {
|
|
7284
7503
|
key: 2,
|
|
7285
7504
|
class: "text-label-medium text-on-surface-variant"
|
|
7286
|
-
},
|
|
7505
|
+
}, Rl = { key: 0 }, zl = {
|
|
7287
7506
|
key: 0,
|
|
7288
7507
|
class: "nd-toggle shrink-0 border-b border-outline-variant"
|
|
7289
|
-
},
|
|
7508
|
+
}, Bl = { class: "nd-toggle-inner" }, Vl = {
|
|
7290
7509
|
key: 1,
|
|
7291
7510
|
class: "shrink-0"
|
|
7292
|
-
},
|
|
7511
|
+
}, Hl = {
|
|
7293
7512
|
key: 2,
|
|
7294
7513
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
7295
|
-
},
|
|
7514
|
+
}, Ul = { class: "px-5 pt-6 pb-2" }, Wl = { class: "whitespace-nowrap text-title-small font-medium text-on-surface-variant" }, Gl = { class: "flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto overflow-x-hidden px-3 py-2" }, Kl = {
|
|
7296
7515
|
key: 0,
|
|
7297
7516
|
class: "my-1 border-t border-outline-variant"
|
|
7298
|
-
},
|
|
7517
|
+
}, ql = ["title", "onClick"], Jl = { class: "nd-label min-w-0 flex-1 text-left text-title-small font-medium" }, Yl = {
|
|
7299
7518
|
key: 2,
|
|
7300
7519
|
class: "nd-collapse-h shrink-0 overflow-hidden"
|
|
7301
|
-
},
|
|
7520
|
+
}, Xl = { class: "whitespace-nowrap px-4 pt-4 pb-2 text-title-small font-medium text-on-surface-variant" }, Zl = {
|
|
7302
7521
|
key: 0,
|
|
7303
7522
|
class: "nd-section-grid"
|
|
7304
|
-
},
|
|
7523
|
+
}, Ql = { class: "nd-section-body" }, $l = {
|
|
7305
7524
|
key: 2,
|
|
7306
7525
|
class: "nd-label text-label-medium text-on-surface-variant"
|
|
7307
|
-
},
|
|
7526
|
+
}, eu = {
|
|
7308
7527
|
key: 0,
|
|
7309
7528
|
class: "nd-children-divider"
|
|
7310
|
-
},
|
|
7529
|
+
}, tu = { key: 0 }, nu = {
|
|
7311
7530
|
key: 1,
|
|
7312
7531
|
class: "nd-children-divider"
|
|
7313
|
-
},
|
|
7532
|
+
}, ru = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
7314
7533
|
__name: "MNavigationDrawer",
|
|
7315
7534
|
props: {
|
|
7316
7535
|
modelValue: { type: Boolean },
|
|
@@ -7409,8 +7628,8 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7409
7628
|
e.side === "top" || e.side === "bottom" || e.width ? "" : "w-72"
|
|
7410
7629
|
]),
|
|
7411
7630
|
style: P(e.side !== "top" && e.side !== "bottom" && e.width ? { width: e.width } : void 0)
|
|
7412
|
-
}, [t.$slots.header ? (R(), S("div",
|
|
7413
|
-
n > 0 ? (R(), S("div",
|
|
7631
|
+
}, [t.$slots.header ? (R(), S("div", Dl, [U(t.$slots, "header", {}, void 0, !0)])) : e.title ? (R(), S("div", Ol, [C("h2", kl, q(e.title), 1)])) : x("", !0), C("div", Al, [(R(!0), S(m, null, H(e.sections, (t, n) => (R(), S(m, { key: n }, [
|
|
7632
|
+
n > 0 ? (R(), S("div", jl)) : x("", !0),
|
|
7414
7633
|
t.title && t.collapsible ? (R(), S("button", {
|
|
7415
7634
|
key: 1,
|
|
7416
7635
|
type: "button",
|
|
@@ -7423,15 +7642,15 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7423
7642
|
size: 24,
|
|
7424
7643
|
class: "shrink-0"
|
|
7425
7644
|
}, null, 8, ["name"])) : x("", !0),
|
|
7426
|
-
C("span",
|
|
7645
|
+
C("span", Nl, q(t.title), 1),
|
|
7427
7646
|
E(r, {
|
|
7428
7647
|
name: c(t, n) ? "expand_less" : "expand_more",
|
|
7429
7648
|
size: 18,
|
|
7430
7649
|
class: "shrink-0"
|
|
7431
7650
|
}, null, 8, ["name"])
|
|
7432
|
-
], 8,
|
|
7651
|
+
], 8, Ml)) : t.title ? (R(), S("p", Pl, q(t.title), 1)) : x("", !0),
|
|
7433
7652
|
E(g, { name: "nd-section" }, {
|
|
7434
|
-
default: Q(() => [!t.collapsible || c(t, n) ? (R(), S("div",
|
|
7653
|
+
default: Q(() => [!t.collapsible || c(t, n) ? (R(), S("div", Fl, [C("div", Il, [(R(!0), S(m, null, H(t.items, (n) => (R(), S(m, { key: n.value }, [(R(), b(G(k(n)), {
|
|
7435
7654
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
7436
7655
|
type: n.to ? void 0 : "button",
|
|
7437
7656
|
class: N(["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"]]),
|
|
@@ -7450,7 +7669,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7450
7669
|
name: u(n) ? "expand_less" : "expand_more",
|
|
7451
7670
|
size: 18,
|
|
7452
7671
|
class: "shrink-0 text-on-surface-variant"
|
|
7453
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (R(), S("span",
|
|
7672
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (R(), S("span", Ll, q(n.badge), 1))
|
|
7454
7673
|
]),
|
|
7455
7674
|
_: 2
|
|
7456
7675
|
}, 1032, [
|
|
@@ -7465,7 +7684,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7465
7684
|
onEnter: w,
|
|
7466
7685
|
onLeave: T
|
|
7467
7686
|
}, {
|
|
7468
|
-
default: Q(() => [n.children?.length && u(n) ? (R(), S("div",
|
|
7687
|
+
default: Q(() => [n.children?.length && u(n) ? (R(), S("div", Rl, [E(El, {
|
|
7469
7688
|
items: n.children,
|
|
7470
7689
|
selected: e.selected
|
|
7471
7690
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
@@ -7483,10 +7702,10 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7483
7702
|
"--nd-width": e.width ?? "18rem"
|
|
7484
7703
|
})
|
|
7485
7704
|
}, [
|
|
7486
|
-
t.$slots.toggle ? (R(), S("div",
|
|
7487
|
-
t.$slots.header ? (R(), S("div",
|
|
7488
|
-
C("div",
|
|
7489
|
-
n > 0 ? (R(), S("div",
|
|
7705
|
+
t.$slots.toggle ? (R(), S("div", zl, [C("div", Bl, [U(t.$slots, "toggle", {}, void 0, !0)])])) : x("", !0),
|
|
7706
|
+
t.$slots.header ? (R(), S("div", Vl, [U(t.$slots, "header", {}, void 0, !0)])) : e.title ? (R(), S("div", Hl, [C("div", Ul, [C("h2", Wl, q(e.title), 1)])])) : x("", !0),
|
|
7707
|
+
C("div", Gl, [(R(!0), S(m, null, H(e.sections, (t, n) => (R(), S(m, { key: n }, [
|
|
7708
|
+
n > 0 ? (R(), S("div", Kl)) : x("", !0),
|
|
7490
7709
|
t.title && t.collapsible ? (R(), S("button", {
|
|
7491
7710
|
key: 1,
|
|
7492
7711
|
type: "button",
|
|
@@ -7500,15 +7719,15 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7500
7719
|
size: 24,
|
|
7501
7720
|
class: "shrink-0"
|
|
7502
7721
|
}, null, 8, ["name"])) : x("", !0),
|
|
7503
|
-
C("span",
|
|
7722
|
+
C("span", Jl, q(t.title), 1),
|
|
7504
7723
|
E(r, {
|
|
7505
7724
|
name: c(t, n) ? "expand_less" : "expand_more",
|
|
7506
7725
|
size: 18,
|
|
7507
7726
|
class: "nd-label shrink-0"
|
|
7508
7727
|
}, null, 8, ["name"])
|
|
7509
|
-
], 8,
|
|
7728
|
+
], 8, ql)) : t.title ? (R(), S("div", Yl, [C("p", Xl, q(t.title), 1)])) : x("", !0),
|
|
7510
7729
|
E(g, { name: "nd-section" }, {
|
|
7511
|
-
default: Q(() => [!t.collapsible || c(t, n) ? (R(), S("div",
|
|
7730
|
+
default: Q(() => [!t.collapsible || c(t, n) ? (R(), S("div", Zl, [C("div", Ql, [(R(!0), S(m, null, H(t.items, (n) => (R(), S(m, { key: n.value }, [
|
|
7512
7731
|
(R(), b(G(k(n)), {
|
|
7513
7732
|
to: n.to && !n.disabled ? n.to : void 0,
|
|
7514
7733
|
type: n.to ? void 0 : "button",
|
|
@@ -7530,7 +7749,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7530
7749
|
name: u(n) ? "expand_less" : "expand_more",
|
|
7531
7750
|
size: 18,
|
|
7532
7751
|
class: "nd-label shrink-0 text-on-surface-variant"
|
|
7533
|
-
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (R(), S("span",
|
|
7752
|
+
}, null, 8, ["name"])) : n.badge == null ? x("", !0) : (R(), S("span", $l, q(n.badge), 1))
|
|
7534
7753
|
]),
|
|
7535
7754
|
_: 2
|
|
7536
7755
|
}, 1032, [
|
|
@@ -7541,29 +7760,29 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7541
7760
|
"disabled",
|
|
7542
7761
|
"onClick"
|
|
7543
7762
|
])),
|
|
7544
|
-
n.children?.length && u(n) ? (R(), S("div",
|
|
7763
|
+
n.children?.length && u(n) ? (R(), S("div", eu)) : x("", !0),
|
|
7545
7764
|
E(g, {
|
|
7546
7765
|
css: !1,
|
|
7547
7766
|
onEnter: w,
|
|
7548
7767
|
onLeave: T
|
|
7549
7768
|
}, {
|
|
7550
|
-
default: Q(() => [n.children?.length && u(n) ? (R(), S("div",
|
|
7769
|
+
default: Q(() => [n.children?.length && u(n) ? (R(), S("div", tu, [E(El, {
|
|
7551
7770
|
items: n.children,
|
|
7552
7771
|
selected: e.selected
|
|
7553
7772
|
}, null, 8, ["items", "selected"])])) : x("", !0)]),
|
|
7554
7773
|
_: 2
|
|
7555
7774
|
}, 1024),
|
|
7556
|
-
n.children?.length && u(n) ? (R(), S("div",
|
|
7775
|
+
n.children?.length && u(n) ? (R(), S("div", nu)) : x("", !0)
|
|
7557
7776
|
], 64))), 128))])])) : x("", !0)]),
|
|
7558
7777
|
_: 2
|
|
7559
7778
|
}, 1024)
|
|
7560
7779
|
], 64))), 128)), U(t.$slots, "default", {}, void 0, !0)])
|
|
7561
7780
|
], 6));
|
|
7562
7781
|
}
|
|
7563
|
-
}), [["__scopeId", "data-v-1dfa0ccc"]]),
|
|
7782
|
+
}), [["__scopeId", "data-v-1dfa0ccc"]]), iu = { class: "flex h-full w-20 flex-col items-center border-r border-outline-variant bg-surface" }, au = {
|
|
7564
7783
|
key: 0,
|
|
7565
7784
|
class: "flex shrink-0 items-center justify-center pt-3 pb-2"
|
|
7566
|
-
},
|
|
7785
|
+
}, ou = ["disabled", "onClick"], su = /* @__PURE__ */ D({
|
|
7567
7786
|
__name: "MNavigationRail",
|
|
7568
7787
|
props: {
|
|
7569
7788
|
modelValue: {},
|
|
@@ -7572,7 +7791,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7572
7791
|
},
|
|
7573
7792
|
emits: ["update:modelValue"],
|
|
7574
7793
|
setup(e) {
|
|
7575
|
-
return (t, n) => (R(), S("nav",
|
|
7794
|
+
return (t, n) => (R(), S("nav", iu, [t.$slots.fab ? (R(), S("div", au, [U(t.$slots, "fab")])) : x("", !0), C("div", { class: N(["flex flex-1 flex-col items-center gap-1 py-3", {
|
|
7576
7795
|
"justify-start": e.alignment === "top",
|
|
7577
7796
|
"justify-center": e.alignment === "center",
|
|
7578
7797
|
"justify-end": e.alignment === "bottom"
|
|
@@ -7604,9 +7823,9 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7604
7823
|
size: 24
|
|
7605
7824
|
}, null, 8, ["name"])]),
|
|
7606
7825
|
_: 2
|
|
7607
|
-
}, 1032, ["count"]))], 2), C("span", { class: N(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, q(n.label), 3)], 10,
|
|
7826
|
+
}, 1032, ["count"]))], 2), C("span", { class: N(["max-w-[56px] truncate text-center text-label-medium", n.value === e.modelValue ? "font-bold text-on-surface" : "font-medium text-on-surface-variant"]) }, q(n.label), 3)], 10, ou))), 128))], 2)]));
|
|
7608
7827
|
}
|
|
7609
|
-
}),
|
|
7828
|
+
}), cu = { class: "relative h-full w-full" }, lu = /* @__PURE__ */ D({
|
|
7610
7829
|
__name: "MOverlay",
|
|
7611
7830
|
props: {
|
|
7612
7831
|
modelValue: {
|
|
@@ -7639,11 +7858,11 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7639
7858
|
key: 0,
|
|
7640
7859
|
class: "absolute inset-0 bg-black/50",
|
|
7641
7860
|
onClick: a
|
|
7642
|
-
})) : x("", !0), C("div",
|
|
7861
|
+
})) : x("", !0), C("div", cu, [U(t.$slots, "default")])], 4)) : x("", !0)]),
|
|
7643
7862
|
_: 3
|
|
7644
7863
|
})]));
|
|
7645
7864
|
}
|
|
7646
|
-
}),
|
|
7865
|
+
}), uu = ["aria-valuenow"], du = /* @__PURE__ */ D({
|
|
7647
7866
|
__name: "MPageProgress",
|
|
7648
7867
|
props: {
|
|
7649
7868
|
color: { default: "primary" },
|
|
@@ -7684,9 +7903,9 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7684
7903
|
}, [C("div", {
|
|
7685
7904
|
class: N(["h-full rounded-r-full transition-[width] duration-200 ease-out", o[e.color]]),
|
|
7686
7905
|
style: P({ width: `${J(n)}%` })
|
|
7687
|
-
}, null, 6)], 14,
|
|
7906
|
+
}, null, 6)], 14, uu));
|
|
7688
7907
|
}
|
|
7689
|
-
}),
|
|
7908
|
+
}), fu = { class: "flex flex-col gap-1" }, pu = { class: "flex gap-1" }, mu = /* @__PURE__ */ D({
|
|
7690
7909
|
__name: "MPasswordMeter",
|
|
7691
7910
|
props: {
|
|
7692
7911
|
value: {},
|
|
@@ -7719,7 +7938,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7719
7938
|
"text-primary",
|
|
7720
7939
|
"text-success"
|
|
7721
7940
|
], u = v(() => c[o.value]), d = v(() => l[o.value]), f = v(() => n.labels[o.value] ?? "");
|
|
7722
|
-
return Z([() => n.value, o], () => r("score", a.value ? o.value : -1), { immediate: !0 }), (e, t) => (R(), S("div",
|
|
7941
|
+
return Z([() => n.value, o], () => r("score", a.value ? o.value : -1), { immediate: !0 }), (e, t) => (R(), S("div", fu, [C("div", pu, [(R(), S(m, null, H(5, (e) => C("div", {
|
|
7723
7942
|
key: e,
|
|
7724
7943
|
class: N(["h-1 flex-1 rounded-full transition-colors duration-200", e <= s.value ? u.value : "bg-surface-container-highest"])
|
|
7725
7944
|
}, null, 2)), 64))]), a.value ? (R(), S("p", {
|
|
@@ -7727,7 +7946,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7727
7946
|
class: N(["text-body-small", d.value])
|
|
7728
7947
|
}, q(f.value), 3)) : x("", !0)]));
|
|
7729
7948
|
}
|
|
7730
|
-
}),
|
|
7949
|
+
}), hu = { class: "flex flex-col gap-1" }, gu = ["aria-label"], _u = [
|
|
7731
7950
|
"value",
|
|
7732
7951
|
"type",
|
|
7733
7952
|
"inputmode",
|
|
@@ -7737,17 +7956,17 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7737
7956
|
"onKeydown",
|
|
7738
7957
|
"onPaste",
|
|
7739
7958
|
"onFocus"
|
|
7740
|
-
],
|
|
7959
|
+
], vu = {
|
|
7741
7960
|
key: 0,
|
|
7742
7961
|
"aria-hidden": "true",
|
|
7743
7962
|
class: "select-none text-title-large text-on-surface-variant"
|
|
7744
|
-
},
|
|
7963
|
+
}, yu = {
|
|
7745
7964
|
key: 0,
|
|
7746
7965
|
class: "px-1 text-body-small text-error"
|
|
7747
|
-
},
|
|
7966
|
+
}, bu = {
|
|
7748
7967
|
key: 1,
|
|
7749
7968
|
class: "px-1 text-body-small text-on-surface-variant"
|
|
7750
|
-
},
|
|
7969
|
+
}, xu = "\0", Su = /* @__PURE__ */ D({
|
|
7751
7970
|
__name: "MPinInput",
|
|
7752
7971
|
props: {
|
|
7753
7972
|
modelValue: { default: "" },
|
|
@@ -7787,16 +8006,16 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7787
8006
|
}
|
|
7788
8007
|
let c = v(() => n.type === "numeric" ? /[0-9]/ : /[a-zA-Z0-9]/), l = v(() => Array.from({ length: r.value }, (e, t) => {
|
|
7789
8008
|
let r = n.modelValue[t];
|
|
7790
|
-
return r === void 0 || r ===
|
|
8009
|
+
return r === void 0 || r === xu ? "" : r;
|
|
7791
8010
|
}));
|
|
7792
8011
|
function u(e) {
|
|
7793
8012
|
let t = e.length;
|
|
7794
8013
|
for (; t > 0 && !e[t - 1];) t--;
|
|
7795
|
-
return e.slice(0, t).map((e) => e ||
|
|
8014
|
+
return e.slice(0, t).map((e) => e || xu).join("");
|
|
7796
8015
|
}
|
|
7797
8016
|
function d(e) {
|
|
7798
8017
|
let t = u(e);
|
|
7799
|
-
a("update:modelValue", t), t.length === r.value && !t.includes(
|
|
8018
|
+
a("update:modelValue", t), t.length === r.value && !t.includes(xu) && a("complete", t);
|
|
7800
8019
|
}
|
|
7801
8020
|
function f(e) {
|
|
7802
8021
|
M(() => o.value[e]?.focus());
|
|
@@ -7850,7 +8069,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7850
8069
|
n.error ? "border-error focus:border-b-2 focus:border-error" : "border-on-surface-variant hover:border-on-surface focus:border-b-2 focus:border-primary"
|
|
7851
8070
|
].join(" ");
|
|
7852
8071
|
});
|
|
7853
|
-
return (t, n) => (R(), S("div",
|
|
8072
|
+
return (t, n) => (R(), S("div", hu, [C("div", {
|
|
7854
8073
|
role: "group",
|
|
7855
8074
|
"aria-label": e.label,
|
|
7856
8075
|
class: "flex items-center gap-2"
|
|
@@ -7869,15 +8088,90 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7869
8088
|
onKeydown: (e) => g(n, e),
|
|
7870
8089
|
onPaste: (e) => _(n, e),
|
|
7871
8090
|
onFocus: (e) => p(n)
|
|
7872
|
-
}, null, 42,
|
|
8091
|
+
}, null, 42, _u), i.value.has(n) ? (R(), S("span", vu, q(e.separator), 1)) : x("", !0)], 64))), 128))], 8, gu), e.error && e.errorLabel ? (R(), S("p", yu, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", bu, q(e.hint), 1)) : x("", !0)]));
|
|
7873
8092
|
}
|
|
7874
|
-
}),
|
|
8093
|
+
}), Cu = { class: "relative overflow-hidden" }, wu = 1.8, Tu = .45, Eu = 12, Du = /* @__PURE__ */ D({
|
|
8094
|
+
__name: "MPullToRefresh",
|
|
8095
|
+
props: {
|
|
8096
|
+
refreshing: {
|
|
8097
|
+
type: Boolean,
|
|
8098
|
+
default: !1
|
|
8099
|
+
},
|
|
8100
|
+
disabled: {
|
|
8101
|
+
type: Boolean,
|
|
8102
|
+
default: !1
|
|
8103
|
+
},
|
|
8104
|
+
threshold: { default: 64 },
|
|
8105
|
+
size: { default: 36 },
|
|
8106
|
+
color: { default: "primary" }
|
|
8107
|
+
},
|
|
8108
|
+
emits: ["refresh"],
|
|
8109
|
+
setup(e, { emit: t }) {
|
|
8110
|
+
let n = e, r = t, i = V(null), a = V(null), o = V(!1), s = null, c = 0, l = !1, u = 0, d = !1;
|
|
8111
|
+
function f(e, t) {
|
|
8112
|
+
e.style.transition = t ? "transform 0.25s cubic-bezier(0.2, 0, 0, 1), opacity 0.25s ease" : "none";
|
|
8113
|
+
}
|
|
8114
|
+
function p(e) {
|
|
8115
|
+
let t = a.value;
|
|
8116
|
+
if (!t) return;
|
|
8117
|
+
f(t, !1);
|
|
8118
|
+
let r = Math.min(1, e / n.threshold);
|
|
8119
|
+
t.style.transform = `translateY(${e - n.size}px) scale(${.5 + r * .5})`, t.style.opacity = `${r}`;
|
|
8120
|
+
}
|
|
8121
|
+
function m(e) {
|
|
8122
|
+
let t = a.value;
|
|
8123
|
+
t && (f(t, e), t.style.transform = `translateY(${Eu}px) scale(1)`, t.style.opacity = "1");
|
|
8124
|
+
}
|
|
8125
|
+
function h(e) {
|
|
8126
|
+
let t = a.value;
|
|
8127
|
+
t && (f(t, e), t.style.transform = `translateY(-${n.size}px) scale(0.5)`, t.style.opacity = "0");
|
|
8128
|
+
}
|
|
8129
|
+
function g(e) {
|
|
8130
|
+
n.disabled || n.refreshing || d || e.button !== 0 || !i.value || i.value.scrollTop > 0 || (s = e.pointerId, c = e.clientY, l = !0, o.value = !0, i.value.style.touchAction = "none", i.value.setPointerCapture(e.pointerId));
|
|
8131
|
+
}
|
|
8132
|
+
function _(e) {
|
|
8133
|
+
if (!l || e.pointerId !== s) return;
|
|
8134
|
+
let t = e.clientY - c;
|
|
8135
|
+
if (t <= 0) {
|
|
8136
|
+
u = 0, h(!1), i.value && (i.value.style.touchAction = "");
|
|
8137
|
+
return;
|
|
8138
|
+
}
|
|
8139
|
+
e.preventDefault();
|
|
8140
|
+
let r = n.threshold * wu;
|
|
8141
|
+
u = Math.min(t <= n.threshold ? t : n.threshold + (t - n.threshold) * Tu, r), p(u);
|
|
8142
|
+
}
|
|
8143
|
+
function v(e) {
|
|
8144
|
+
l && e.pointerId === s && (l = !1, o.value = !1, i.value && (i.value.style.touchAction = "", i.value.hasPointerCapture(e.pointerId) && i.value.releasePointerCapture(e.pointerId)), u >= n.threshold ? (d = !0, m(!0), r("refresh")) : h(!0), u = 0);
|
|
8145
|
+
}
|
|
8146
|
+
return Z(() => n.refreshing, (e) => {
|
|
8147
|
+
e ? d || (d = !0, m(!0)) : d && (d = !1, h(!0));
|
|
8148
|
+
}), I(() => h(!1)), F(() => {
|
|
8149
|
+
l = !1;
|
|
8150
|
+
}), (t, n) => (R(), S("div", Cu, [C("div", {
|
|
8151
|
+
ref_key: "indicatorEl",
|
|
8152
|
+
ref: a,
|
|
8153
|
+
class: "pointer-events-none absolute inset-x-0 top-0 z-10 flex justify-center opacity-0"
|
|
8154
|
+
}, [E(tc, {
|
|
8155
|
+
size: e.size,
|
|
8156
|
+
color: e.color,
|
|
8157
|
+
contained: ""
|
|
8158
|
+
}, null, 8, ["size", "color"])], 512), C("div", {
|
|
8159
|
+
ref_key: "scrollEl",
|
|
8160
|
+
ref: i,
|
|
8161
|
+
class: N(["h-full overflow-y-auto overscroll-y-contain", { "select-none": o.value }]),
|
|
8162
|
+
onPointerdown: g,
|
|
8163
|
+
onPointermove: _,
|
|
8164
|
+
onPointerup: v,
|
|
8165
|
+
onPointercancel: v
|
|
8166
|
+
}, [U(t.$slots, "default")], 34)]));
|
|
8167
|
+
}
|
|
8168
|
+
}), Ou = { class: "flex flex-col gap-1" }, ku = {
|
|
7875
8169
|
key: 0,
|
|
7876
8170
|
class: "text-label-small text-on-surface-variant"
|
|
7877
|
-
},
|
|
8171
|
+
}, Au = ["aria-valuenow"], ju = ["aria-valuenow"], Mu = ["height", "viewBox"], Nu = ["d", "stroke-width"], Pu = {
|
|
7878
8172
|
key: 1,
|
|
7879
8173
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
7880
|
-
},
|
|
8174
|
+
}, Fu = ["height", "viewBox"], Iu = ["d", "stroke-width"], Lu = 20, Ru = 2.5, zu = 2, Bu = 4, Vu = 10, Hu = 130, Uu = /* @__PURE__ */ D({
|
|
7881
8175
|
__name: "MProgressBar",
|
|
7882
8176
|
props: {
|
|
7883
8177
|
value: {},
|
|
@@ -7909,10 +8203,10 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7909
8203
|
track: "bg-error-container",
|
|
7910
8204
|
text: "text-error"
|
|
7911
8205
|
}
|
|
7912
|
-
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() =>
|
|
8206
|
+
}, a = v(() => t.thickness ?? (t.variant === "wavy" ? 3 : 4)), o = v(() => Ru + a.value / 2), s = v(() => 2 * Ru + a.value), c = 1600, l = (() => {
|
|
7913
8207
|
let e = "";
|
|
7914
|
-
for (let t = 0; t <= c; t +=
|
|
7915
|
-
let n = 4 -
|
|
8208
|
+
for (let t = 0; t <= c; t += zu) {
|
|
8209
|
+
let n = 4 - Ru * Math.sin(t / Lu * Math.PI * 2);
|
|
7916
8210
|
e += `${t === 0 ? "M" : "L"}${t},${n.toFixed(2)} `;
|
|
7917
8211
|
}
|
|
7918
8212
|
return e.trim();
|
|
@@ -7940,8 +8234,8 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7940
8234
|
let y = V(null), b = V(null), w = V(""), T = null, E = 0, D = 2 * Math.PI / 800;
|
|
7941
8235
|
function O(e, t) {
|
|
7942
8236
|
let n = o.value, r = [];
|
|
7943
|
-
for (let i = 0; i <= c; i +=
|
|
7944
|
-
let a = n -
|
|
8237
|
+
for (let i = 0; i <= c; i += zu) {
|
|
8238
|
+
let a = n - Ru * e * Math.sin(i / Lu * Math.PI * 2 + t);
|
|
7945
8239
|
r.push(`${i === 0 ? "M" : "L"}${i},${a.toFixed(2)}`);
|
|
7946
8240
|
}
|
|
7947
8241
|
return r.join(" ");
|
|
@@ -7949,23 +8243,23 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7949
8243
|
function k(e) {
|
|
7950
8244
|
let t = T === null ? 0 : e - T;
|
|
7951
8245
|
if (T = e, f -= t * D, t > 0) {
|
|
7952
|
-
let e = 1 - Math.exp(-t /
|
|
8246
|
+
let e = 1 - Math.exp(-t / Hu);
|
|
7953
8247
|
u += (r.value - u) * e;
|
|
7954
8248
|
}
|
|
7955
8249
|
d = _(p, e);
|
|
7956
|
-
let n =
|
|
8250
|
+
let n = Bu * d, i = u;
|
|
7957
8251
|
y.value && (y.value.style.clipPath = `inset(0 ${(100 - i).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${i.toFixed(3)}% + ${n.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), w.value = O(d, f), E = requestAnimationFrame(k);
|
|
7958
8252
|
}
|
|
7959
8253
|
Z(r, (e, r) => {
|
|
7960
8254
|
if (t.variant !== "wavy" || n.value) return;
|
|
7961
8255
|
let i = performance.now();
|
|
7962
|
-
r <=
|
|
8256
|
+
r <= Vu && e > Vu && e < 100 ? g(p, d, 1, i) : r > Vu && e <= Vu || e === 100 ? g(p, d, 0, i) : r === 100 && e > Vu && g(p, d, 1, i);
|
|
7963
8257
|
});
|
|
7964
8258
|
function A() {
|
|
7965
8259
|
u = r.value;
|
|
7966
8260
|
let e = r.value;
|
|
7967
|
-
d = +(e >
|
|
7968
|
-
let t =
|
|
8261
|
+
d = +(e > Vu && e < 100), p.to = d, p.t0 = -1;
|
|
8262
|
+
let t = Bu * d;
|
|
7969
8263
|
y.value && (y.value.style.clipPath = `inset(0 ${(100 - e).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${e.toFixed(3)}% + ${t.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), w.value = O(d, f), E ||= requestAnimationFrame(k);
|
|
7970
8264
|
}
|
|
7971
8265
|
function j() {
|
|
@@ -7977,7 +8271,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7977
8271
|
e === "wavy" && !n.value ? (await M(), A()) : j();
|
|
7978
8272
|
}), Z(n, async (e) => {
|
|
7979
8273
|
!e && t.variant === "wavy" ? (await M(), A()) : j();
|
|
7980
|
-
}), (t, o) => (R(), S("div",
|
|
8274
|
+
}), (t, o) => (R(), S("div", Ou, [e.label ? (R(), S("span", ku, q(e.label), 1)) : x("", !0), e.variant === "linear" ? (R(), S("div", {
|
|
7981
8275
|
key: 1,
|
|
7982
8276
|
class: N(["relative w-full overflow-hidden rounded-full", i[e.color].track]),
|
|
7983
8277
|
style: P({ height: `${a.value}px` }),
|
|
@@ -7992,7 +8286,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
7992
8286
|
key: 0,
|
|
7993
8287
|
class: N(["h-full rounded-full transition-[width] duration-300 ease-in-out", i[e.color].bar]),
|
|
7994
8288
|
style: P({ width: `${r.value}%` })
|
|
7995
|
-
}, null, 6))], 14,
|
|
8289
|
+
}, null, 6))], 14, Au)) : (R(), S("div", {
|
|
7996
8290
|
key: 2,
|
|
7997
8291
|
class: "relative w-full overflow-visible",
|
|
7998
8292
|
style: P({ height: `${s.value}px` }),
|
|
@@ -8000,7 +8294,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8000
8294
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
8001
8295
|
"aria-valuemin": "0",
|
|
8002
8296
|
"aria-valuemax": "100"
|
|
8003
|
-
}, [n.value ? (R(), S("div",
|
|
8297
|
+
}, [n.value ? (R(), S("div", Pu, [C("div", {
|
|
8004
8298
|
class: N(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
8005
8299
|
style: P({ width: `${c}px` })
|
|
8006
8300
|
}, [(R(), S("svg", {
|
|
@@ -8015,7 +8309,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8015
8309
|
stroke: "currentColor",
|
|
8016
8310
|
"stroke-width": a.value,
|
|
8017
8311
|
"stroke-linecap": "round"
|
|
8018
|
-
}, null, 8,
|
|
8312
|
+
}, null, 8, Iu)], 8, Fu))], 6)])) : (R(), S(m, { key: 0 }, [
|
|
8019
8313
|
C("div", {
|
|
8020
8314
|
ref_key: "waveClipEl",
|
|
8021
8315
|
ref: y,
|
|
@@ -8032,7 +8326,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8032
8326
|
stroke: "currentColor",
|
|
8033
8327
|
"stroke-width": a.value,
|
|
8034
8328
|
"stroke-linecap": "round"
|
|
8035
|
-
}, null, 8,
|
|
8329
|
+
}, null, 8, Nu)], 10, Mu))], 512),
|
|
8036
8330
|
C("div", {
|
|
8037
8331
|
ref_key: "trackEl",
|
|
8038
8332
|
ref: b,
|
|
@@ -8053,23 +8347,23 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8053
8347
|
height: `${a.value}px`
|
|
8054
8348
|
})
|
|
8055
8349
|
}, null, 6)
|
|
8056
|
-
], 64))], 12,
|
|
8350
|
+
], 64))], 12, ju))]));
|
|
8057
8351
|
}
|
|
8058
|
-
}),
|
|
8352
|
+
}), Wu = { class: "inline-flex flex-col items-center gap-1" }, Gu = {
|
|
8059
8353
|
key: 0,
|
|
8060
8354
|
class: "text-label-small text-on-surface-variant"
|
|
8061
|
-
},
|
|
8355
|
+
}, Ku = { class: "relative" }, qu = [
|
|
8062
8356
|
"width",
|
|
8063
8357
|
"height",
|
|
8064
8358
|
"aria-valuenow"
|
|
8065
|
-
],
|
|
8359
|
+
], Ju = ["stroke-width"], Yu = ["stroke-width"], Xu = ["id"], Zu = ["stroke-width"], Qu = ["stroke-width"], $u = [
|
|
8066
8360
|
"d",
|
|
8067
8361
|
"stroke-width",
|
|
8068
8362
|
"mask"
|
|
8069
|
-
],
|
|
8363
|
+
], ed = ["stroke-width"], td = ["stroke-width"], nd = {
|
|
8070
8364
|
key: 0,
|
|
8071
8365
|
class: "absolute inset-0 flex items-center justify-center"
|
|
8072
|
-
},
|
|
8366
|
+
}, rd = 40, id = 12, ad = .055, od = 10, sd = 130, cd = /* @__PURE__ */ D({
|
|
8073
8367
|
__name: "MCircleProgressBar",
|
|
8074
8368
|
props: {
|
|
8075
8369
|
value: {},
|
|
@@ -8098,7 +8392,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8098
8392
|
fill: "var(--color-error)",
|
|
8099
8393
|
track: "var(--color-error-container)"
|
|
8100
8394
|
}
|
|
8101
|
-
}, i = v(() => r[t.color]), a = 2 * Math.PI *
|
|
8395
|
+
}, i = v(() => r[t.color]), a = 2 * Math.PI * rd, o = v(() => t.thickness), s = v(() => t.thickness + Math.ceil(80 * ad) + 2), c = v(() => .75 + t.thickness * .25), l = v(() => n.value / 100 * a);
|
|
8102
8396
|
function u(e) {
|
|
8103
8397
|
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
8104
8398
|
}
|
|
@@ -8132,13 +8426,13 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8132
8426
|
return n >= 1 && (e.t0 = -1), r;
|
|
8133
8427
|
}
|
|
8134
8428
|
Z(n, (e, n) => {
|
|
8135
|
-
t.indeterminate || (n <=
|
|
8429
|
+
t.indeterminate || (n <= od && e > od && T(_, f, 1, performance.now()), n > od && e <= od && T(_, f, 0, performance.now()), e === 100 ? (f = 1, _.t0 = -1, w.t0 = -1, T(y, p, 0, performance.now()), b.t0 = -1, b.to = 1, h = 1) : n === 100 && (y.t0 = -1, y.to = 1, b.t0 = -1, b.to = 1, w.t0 = -1, T(w, Math.min(p, h), 1, performance.now())));
|
|
8136
8430
|
});
|
|
8137
|
-
let D = V(null), O = V(null), k = V(F(
|
|
8431
|
+
let D = V(null), O = V(null), k = V(F(rd * ad, 0)), A = null, j = 0, M = 2 * Math.PI / id / 90;
|
|
8138
8432
|
function N(e) {
|
|
8139
8433
|
let t = A === null ? 0 : e - A;
|
|
8140
8434
|
if (A = e, g += t * M, t > 0) {
|
|
8141
|
-
let e = 1 - Math.exp(-t /
|
|
8435
|
+
let e = 1 - Math.exp(-t / sd);
|
|
8142
8436
|
d += (l.value - d) * e;
|
|
8143
8437
|
}
|
|
8144
8438
|
if (f = E(_, e), (y.t0 >= 0 || y.to === 0) && (p = E(y, e), y.t0 < 0 && p <= 0 && b.t0 < 0 && b.to !== 0 && T(b, h, 0, e)), (b.t0 >= 0 || b.to === 0) && (h = E(b, e)), w.t0 >= 0) {
|
|
@@ -8148,12 +8442,12 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8148
8442
|
let n = f * h, r = c.value * n * p, i = d, o = a - i, s = Math.max(0, i - 2 * r), u = -90 + r / a * 360, m = D.value;
|
|
8149
8443
|
m && (m.setAttribute("stroke-dasharray", `${s.toFixed(2)} ${(a - s).toFixed(2)}`), m.setAttribute("transform", `rotate(${u.toFixed(3)}, 50, 50)`));
|
|
8150
8444
|
let v = Math.max(0, o - 2 * r), x = Math.max(0, o - r), S = O.value;
|
|
8151
|
-
S && (S.setAttribute("stroke-dasharray", `${v.toFixed(2)} ${(a - v).toFixed(2)}`), S.setAttribute("stroke-dashoffset", x.toFixed(2))), k.value = F(
|
|
8445
|
+
S && (S.setAttribute("stroke-dasharray", `${v.toFixed(2)} ${(a - v).toFixed(2)}`), S.setAttribute("stroke-dashoffset", x.toFixed(2))), k.value = F(rd * ad * n, g), j = requestAnimationFrame(N);
|
|
8152
8446
|
}
|
|
8153
8447
|
function F(e, t) {
|
|
8154
8448
|
let n = [];
|
|
8155
8449
|
for (let r = 0; r <= 240; r++) {
|
|
8156
|
-
let i = 2 * Math.PI * r / 240 - Math.PI / 2, a =
|
|
8450
|
+
let i = 2 * Math.PI * r / 240 - Math.PI / 2, a = rd + e * Math.sin(id * i + t), o = 50 + a * Math.cos(i), s = 50 + a * Math.sin(i);
|
|
8157
8451
|
n.push(`${r === 0 ? "M" : "L"}${o.toFixed(2)},${s.toFixed(2)}`);
|
|
8158
8452
|
}
|
|
8159
8453
|
return n.join("") + "Z";
|
|
@@ -8166,7 +8460,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8166
8460
|
}
|
|
8167
8461
|
function H() {
|
|
8168
8462
|
let e = n.value;
|
|
8169
|
-
d = l.value, f = 0, p = 1, h = 1, _.t0 = y.t0 = b.t0 = w.t0 = -1, _.to = 0, y.to = 1, b.to = 1, e === 100 ? (f = 1, p = 0, h = 0, y.to = 0, b.to = 0) : e >
|
|
8463
|
+
d = l.value, f = 0, p = 1, h = 1, _.t0 = y.t0 = b.t0 = w.t0 = -1, _.to = 0, y.to = 1, b.to = 1, e === 100 ? (f = 1, p = 0, h = 0, y.to = 0, b.to = 0) : e > od && (f = 1, _.to = 1);
|
|
8170
8464
|
}
|
|
8171
8465
|
I(() => {
|
|
8172
8466
|
t.variant === "wavy" && !t.indeterminate && (H(), z());
|
|
@@ -8176,7 +8470,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8176
8470
|
e ? B() : t.variant === "wavy" && (H(), z());
|
|
8177
8471
|
});
|
|
8178
8472
|
let W = X();
|
|
8179
|
-
return (t, r) => (R(), S("div",
|
|
8473
|
+
return (t, r) => (R(), S("div", Wu, [e.label ? (R(), S("span", Gu, q(e.label), 1)) : x("", !0), C("div", Ku, [(R(), S("svg", {
|
|
8180
8474
|
width: e.size,
|
|
8181
8475
|
height: e.size,
|
|
8182
8476
|
viewBox: "0 0 100 100",
|
|
@@ -8188,14 +8482,14 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8188
8482
|
}, [e.indeterminate ? (R(), S(m, { key: 0 }, [C("circle", {
|
|
8189
8483
|
cx: "50",
|
|
8190
8484
|
cy: "50",
|
|
8191
|
-
r:
|
|
8485
|
+
r: rd,
|
|
8192
8486
|
fill: "none",
|
|
8193
8487
|
"stroke-width": o.value,
|
|
8194
8488
|
style: P({ stroke: i.value.track })
|
|
8195
|
-
}, null, 12,
|
|
8489
|
+
}, null, 12, Ju), C("circle", {
|
|
8196
8490
|
cx: "50",
|
|
8197
8491
|
cy: "50",
|
|
8198
|
-
r:
|
|
8492
|
+
r: rd,
|
|
8199
8493
|
fill: "none",
|
|
8200
8494
|
"stroke-width": o.value,
|
|
8201
8495
|
"stroke-linecap": "round",
|
|
@@ -8204,7 +8498,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8204
8498
|
transformOrigin: "50px 50px",
|
|
8205
8499
|
animation: "m3-cpb-spin 1.4s linear infinite, m3-cpb-arc 3s ease-in-out infinite"
|
|
8206
8500
|
})
|
|
8207
|
-
}, null, 12,
|
|
8501
|
+
}, null, 12, Yu)], 64)) : e.variant === "wavy" ? (R(), S(m, { key: 1 }, [
|
|
8208
8502
|
C("defs", null, [C("mask", {
|
|
8209
8503
|
id: J(W),
|
|
8210
8504
|
maskUnits: "userSpaceOnUse"
|
|
@@ -8219,25 +8513,25 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8219
8513
|
ref: D,
|
|
8220
8514
|
cx: "50",
|
|
8221
8515
|
cy: "50",
|
|
8222
|
-
r:
|
|
8516
|
+
r: rd,
|
|
8223
8517
|
fill: "none",
|
|
8224
8518
|
"stroke-width": s.value,
|
|
8225
8519
|
stroke: "white",
|
|
8226
8520
|
"stroke-dasharray": "0 251",
|
|
8227
8521
|
transform: "rotate(-90, 50, 50)"
|
|
8228
|
-
}, null, 8,
|
|
8522
|
+
}, null, 8, Zu)], 8, Xu)]),
|
|
8229
8523
|
C("circle", {
|
|
8230
8524
|
ref_key: "trackCircleEl",
|
|
8231
8525
|
ref: O,
|
|
8232
8526
|
cx: "50",
|
|
8233
8527
|
cy: "50",
|
|
8234
|
-
r:
|
|
8528
|
+
r: rd,
|
|
8235
8529
|
fill: "none",
|
|
8236
8530
|
"stroke-width": o.value,
|
|
8237
8531
|
style: P({ stroke: i.value.track }),
|
|
8238
8532
|
"stroke-dasharray": "251 0",
|
|
8239
8533
|
transform: "rotate(-90, 50, 50)"
|
|
8240
|
-
}, null, 12,
|
|
8534
|
+
}, null, 12, Qu),
|
|
8241
8535
|
C("path", {
|
|
8242
8536
|
d: k.value,
|
|
8243
8537
|
fill: "none",
|
|
@@ -8246,18 +8540,18 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8246
8540
|
"stroke-linejoin": "round",
|
|
8247
8541
|
mask: `url(#${J(W)})`,
|
|
8248
8542
|
style: P({ stroke: i.value.fill })
|
|
8249
|
-
}, null, 12,
|
|
8543
|
+
}, null, 12, $u)
|
|
8250
8544
|
], 64)) : e.indeterminate ? x("", !0) : (R(), S(m, { key: 2 }, [C("circle", {
|
|
8251
8545
|
cx: "50",
|
|
8252
8546
|
cy: "50",
|
|
8253
|
-
r:
|
|
8547
|
+
r: rd,
|
|
8254
8548
|
fill: "none",
|
|
8255
8549
|
"stroke-width": o.value,
|
|
8256
8550
|
style: P({ stroke: i.value.track })
|
|
8257
|
-
}, null, 12,
|
|
8551
|
+
}, null, 12, ed), C("circle", {
|
|
8258
8552
|
cx: "50",
|
|
8259
8553
|
cy: "50",
|
|
8260
|
-
r:
|
|
8554
|
+
r: rd,
|
|
8261
8555
|
fill: "none",
|
|
8262
8556
|
"stroke-width": o.value,
|
|
8263
8557
|
"stroke-linecap": "round",
|
|
@@ -8268,7 +8562,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8268
8562
|
transformOrigin: "50px 50px",
|
|
8269
8563
|
transition: "stroke-dasharray 300ms ease"
|
|
8270
8564
|
})
|
|
8271
|
-
}, null, 12,
|
|
8565
|
+
}, null, 12, td)], 64)), !e.indeterminate && !t.$slots.default ? (R(), S("text", {
|
|
8272
8566
|
key: 3,
|
|
8273
8567
|
x: "50",
|
|
8274
8568
|
y: "50",
|
|
@@ -8280,16 +8574,16 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8280
8574
|
fontWeight: "600",
|
|
8281
8575
|
fontFamily: "Roboto, sans-serif"
|
|
8282
8576
|
})
|
|
8283
|
-
}, q(n.value) + "%", 5)) : x("", !0)], 8,
|
|
8577
|
+
}, q(n.value) + "%", 5)) : x("", !0)], 8, qu)), t.$slots.default ? (R(), S("div", nd, [U(t.$slots, "default")])) : x("", !0)])]));
|
|
8284
8578
|
}
|
|
8285
|
-
}),
|
|
8579
|
+
}), ld = ["for"], ud = { class: "relative flex h-5 w-5 shrink-0" }, dd = [
|
|
8286
8580
|
"id",
|
|
8287
8581
|
"checked",
|
|
8288
8582
|
"disabled"
|
|
8289
|
-
],
|
|
8583
|
+
], fd = {
|
|
8290
8584
|
key: 0,
|
|
8291
8585
|
class: "text-body-large text-on-surface"
|
|
8292
|
-
},
|
|
8586
|
+
}, pd = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8293
8587
|
__name: "MRadio",
|
|
8294
8588
|
props: {
|
|
8295
8589
|
modelValue: {},
|
|
@@ -8312,14 +8606,14 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8312
8606
|
return (t, n) => (R(), S("label", {
|
|
8313
8607
|
for: J(i),
|
|
8314
8608
|
class: N(["inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
8315
|
-
}, [C("span",
|
|
8609
|
+
}, [C("span", ud, [C("input", {
|
|
8316
8610
|
id: J(i),
|
|
8317
8611
|
type: "radio",
|
|
8318
8612
|
class: "sr-only",
|
|
8319
8613
|
checked: a.value,
|
|
8320
8614
|
disabled: e.disabled,
|
|
8321
8615
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
8322
|
-
}, null, 40,
|
|
8616
|
+
}, null, 40, dd), (R(), S("svg", {
|
|
8323
8617
|
viewBox: "0 0 20 20",
|
|
8324
8618
|
class: N(["h-full w-full transition-colors duration-150", a.value ? o[e.color] : "text-on-surface-variant"]),
|
|
8325
8619
|
"aria-hidden": "true"
|
|
@@ -8336,12 +8630,12 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8336
8630
|
cy: "10",
|
|
8337
8631
|
r: "4.5",
|
|
8338
8632
|
fill: "currentColor"
|
|
8339
|
-
}, null, 2)], 2))]), e.label ? (R(), S("span",
|
|
8633
|
+
}, null, 2)], 2))]), e.label ? (R(), S("span", fd, q(e.label), 1)) : x("", !0)], 10, ld));
|
|
8340
8634
|
}
|
|
8341
|
-
}), [["__scopeId", "data-v-cdb650b5"]]),
|
|
8635
|
+
}), [["__scopeId", "data-v-cdb650b5"]]), md = { class: "flex flex-col gap-2" }, hd = {
|
|
8342
8636
|
key: 0,
|
|
8343
8637
|
class: "text-label-large text-on-surface-variant"
|
|
8344
|
-
},
|
|
8638
|
+
}, gd = /* @__PURE__ */ D({
|
|
8345
8639
|
__name: "MRadioGroup",
|
|
8346
8640
|
props: {
|
|
8347
8641
|
modelValue: {},
|
|
@@ -8357,7 +8651,7 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8357
8651
|
emits: ["update:modelValue"],
|
|
8358
8652
|
setup(e, { emit: t }) {
|
|
8359
8653
|
let n = t;
|
|
8360
|
-
return (t, r) => (R(), S("div",
|
|
8654
|
+
return (t, r) => (R(), S("div", md, [e.label ? (R(), S("span", hd, q(e.label), 1)) : x("", !0), C("div", { class: N(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(R(!0), S(m, null, H(e.options, (t) => (R(), b(pd, {
|
|
8361
8655
|
key: String(t.value),
|
|
8362
8656
|
"model-value": e.modelValue,
|
|
8363
8657
|
value: t.value,
|
|
@@ -8373,11 +8667,11 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8373
8667
|
"disabled"
|
|
8374
8668
|
]))), 128))], 2)]));
|
|
8375
8669
|
}
|
|
8376
|
-
}),
|
|
8670
|
+
}), _d = [
|
|
8377
8671
|
"disabled",
|
|
8378
8672
|
"onClick",
|
|
8379
8673
|
"onMousemove"
|
|
8380
|
-
],
|
|
8674
|
+
], vd = /* @__PURE__ */ D({
|
|
8381
8675
|
__name: "MRating",
|
|
8382
8676
|
props: {
|
|
8383
8677
|
modelValue: {},
|
|
@@ -8454,13 +8748,13 @@ var hl = /*#__PURE__*/ p(fl, [["render", ml]]), gl = {
|
|
|
8454
8748
|
name: e.icon,
|
|
8455
8749
|
size: e.size,
|
|
8456
8750
|
class: "text-on-surface-variant/40"
|
|
8457
|
-
}, null, 8, ["name", "size"]))], 46,
|
|
8751
|
+
}, null, 8, ["name", "size"]))], 46, _d))), 128))], 34));
|
|
8458
8752
|
}
|
|
8459
|
-
}),
|
|
8460
|
-
function
|
|
8461
|
-
return R(), S("div",
|
|
8753
|
+
}), yd = {}, bd = { class: "relative" };
|
|
8754
|
+
function xd(e, t) {
|
|
8755
|
+
return R(), S("div", bd, [U(e.$slots, "default")]);
|
|
8462
8756
|
}
|
|
8463
|
-
var
|
|
8757
|
+
var Sd = /*#__PURE__*/ p(yd, [["render", xd]]), Cd = ["datetime", "title"], wd = /* @__PURE__ */ D({
|
|
8464
8758
|
__name: "MRelativeTime",
|
|
8465
8759
|
props: {
|
|
8466
8760
|
value: {},
|
|
@@ -8531,9 +8825,9 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8531
8825
|
return (e, t) => (R(), S("time", {
|
|
8532
8826
|
datetime: a.value.toISOString(),
|
|
8533
8827
|
title: d.value
|
|
8534
|
-
}, q(u.value), 9,
|
|
8828
|
+
}, q(u.value), 9, Cd));
|
|
8535
8829
|
}
|
|
8536
|
-
}),
|
|
8830
|
+
}), Td = /* @__PURE__ */ D({
|
|
8537
8831
|
__name: "MResponsive",
|
|
8538
8832
|
props: {
|
|
8539
8833
|
show: {},
|
|
@@ -8565,19 +8859,19 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8565
8859
|
_: 3
|
|
8566
8860
|
}, 8, ["class"]));
|
|
8567
8861
|
}
|
|
8568
|
-
}),
|
|
8862
|
+
}), Ed = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, Dd = {
|
|
8569
8863
|
key: 0,
|
|
8570
8864
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
8571
|
-
},
|
|
8865
|
+
}, Od = { class: "text-headline-small font-medium text-on-surface" }, kd = {
|
|
8572
8866
|
key: 1,
|
|
8573
8867
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
8574
|
-
},
|
|
8868
|
+
}, Ad = {
|
|
8575
8869
|
key: 2,
|
|
8576
8870
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
8577
|
-
},
|
|
8871
|
+
}, jd = {
|
|
8578
8872
|
key: 3,
|
|
8579
8873
|
class: "mt-2"
|
|
8580
|
-
},
|
|
8874
|
+
}, Md = /* @__PURE__ */ D({
|
|
8581
8875
|
__name: "MResult",
|
|
8582
8876
|
props: {
|
|
8583
8877
|
status: {},
|
|
@@ -8645,19 +8939,19 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8645
8939
|
};
|
|
8646
8940
|
}
|
|
8647
8941
|
}), i = v(() => t.status === "404" || t.status === "403" || t.status === "500" ? t.status : null);
|
|
8648
|
-
return (t, a) => (R(), S("div",
|
|
8649
|
-
i.value ? (R(), S("span",
|
|
8942
|
+
return (t, a) => (R(), S("div", Ed, [
|
|
8943
|
+
i.value ? (R(), S("span", Dd, q(i.value), 1)) : x("", !0),
|
|
8650
8944
|
C("div", { class: N(["flex h-20 w-20 items-center justify-center rounded-full", [n.value.bg, n.value.text]]) }, [E(r, {
|
|
8651
8945
|
name: n.value.icon,
|
|
8652
8946
|
size: 40
|
|
8653
8947
|
}, null, 8, ["name"])], 2),
|
|
8654
|
-
C("h2",
|
|
8655
|
-
e.description ?? n.value.defaultDesc ? (R(), S("p",
|
|
8656
|
-
t.$slots.actions ? (R(), S("div",
|
|
8657
|
-
t.$slots.default ? (R(), S("div",
|
|
8948
|
+
C("h2", Od, q(e.title ?? n.value.defaultTitle), 1),
|
|
8949
|
+
e.description ?? n.value.defaultDesc ? (R(), S("p", kd, q(e.description ?? n.value.defaultDesc), 1)) : x("", !0),
|
|
8950
|
+
t.$slots.actions ? (R(), S("div", Ad, [U(t.$slots, "actions")])) : x("", !0),
|
|
8951
|
+
t.$slots.default ? (R(), S("div", jd, [U(t.$slots, "default")])) : x("", !0)
|
|
8658
8952
|
]));
|
|
8659
8953
|
}
|
|
8660
|
-
}),
|
|
8954
|
+
}), Nd = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Pd = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Fd = { class: "flex items-center gap-1" }, Id = { class: "text-title-medium font-medium capitalize text-on-surface" }, Ld = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Rd = ["onClick"], zd = { class: "overflow-auto" }, Bd = { class: "w-full border-collapse" }, Vd = { class: "text-label-small uppercase text-on-surface-variant" }, Hd = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Ud = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, Wd = ["onClick"], Gd = ["onClick"], Kd = { class: "truncate text-label-small font-medium" }, qd = { class: "truncate text-label-small opacity-70" }, Jd = /* @__PURE__ */ D({
|
|
8661
8955
|
__name: "MScheduler",
|
|
8662
8956
|
props: {
|
|
8663
8957
|
events: { default: () => [] },
|
|
@@ -8738,8 +9032,8 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8738
9032
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
8739
9033
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
8740
9034
|
};
|
|
8741
|
-
return (t, n) => (R(), S("div",
|
|
8742
|
-
C("div",
|
|
9035
|
+
return (t, n) => (R(), S("div", Nd, [C("div", Pd, [
|
|
9036
|
+
C("div", Fd, [
|
|
8743
9037
|
E(l, {
|
|
8744
9038
|
icon: "chevron_left",
|
|
8745
9039
|
label: e.prevLabel ?? J(r).previous,
|
|
@@ -8758,17 +9052,17 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8758
9052
|
onClick: w
|
|
8759
9053
|
}, q(e.todayLabel ?? J(r).today), 1)
|
|
8760
9054
|
]),
|
|
8761
|
-
C("h3",
|
|
8762
|
-
C("div",
|
|
9055
|
+
C("h3", Id, q(y.value), 1),
|
|
9056
|
+
C("div", Ld, [(R(), S(m, null, H(["day", "week"], (t) => C("button", {
|
|
8763
9057
|
key: t,
|
|
8764
9058
|
type: "button",
|
|
8765
9059
|
class: N(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", s.value === t ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
8766
9060
|
onClick: (e) => s.value = t
|
|
8767
|
-
}, q(t === "day" ? e.dayViewLabel ?? J(r).dayView : e.weekViewLabel ?? J(r).weekView), 11,
|
|
8768
|
-
]), C("div",
|
|
9061
|
+
}, q(t === "day" ? e.dayViewLabel ?? J(r).dayView : e.weekViewLabel ?? J(r).weekView), 11, Rd)), 64))])
|
|
9062
|
+
]), C("div", zd, [C("table", Bd, [C("thead", null, [C("tr", null, [n[2] ||= C("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (R(!0), S(m, null, H(f.value, (e) => (R(), S("th", {
|
|
8769
9063
|
key: h(e),
|
|
8770
9064
|
class: N(["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) === J(p) ? "bg-primary-container/30" : ""])
|
|
8771
|
-
}, [C("div",
|
|
9065
|
+
}, [C("div", Vd, q(J(g).format(e)), 1), C("div", { class: N(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", h(e) === J(p) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, q(J(_).format(e)), 3)], 2))), 128))])]), C("tbody", null, [(R(!0), S(m, null, H(c.value, (e) => (R(), S("tr", { key: e }, [C("td", Hd, [C("span", Ud, q(String(e).padStart(2, "0")) + ":00 ", 1)]), (R(!0), S(m, null, H(f.value, (t) => (R(), S("td", {
|
|
8772
9066
|
key: h(t),
|
|
8773
9067
|
class: N(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", h(t) === J(p) ? "bg-primary-container/5" : ""]),
|
|
8774
9068
|
onClick: (n) => a("slotClick", {
|
|
@@ -8781,9 +9075,9 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8781
9075
|
class: N(["absolute inset-x-0.5 top-0.5 z-5 cursor-pointer overflow-hidden rounded border-l-[3px] px-2 py-1 text-left transition-opacity hover:opacity-90", A[t.color ?? "primary"]]),
|
|
8782
9076
|
style: P({ height: `calc(${O(t) * 100}% - 4px)` }),
|
|
8783
9077
|
onClick: $((e) => a("eventClick", t), ["stop"])
|
|
8784
|
-
}, [C("p",
|
|
9078
|
+
}, [C("p", Kd, q(t.title), 1), C("p", qd, q(k(t)), 1)], 14, Gd)) : x("", !0)], 64))), 128))], 10, Wd))), 128))]))), 128))])])])]));
|
|
8785
9079
|
}
|
|
8786
|
-
}),
|
|
9080
|
+
}), Yd = /* @__PURE__ */ D({
|
|
8787
9081
|
__name: "MScrollable",
|
|
8788
9082
|
props: {
|
|
8789
9083
|
direction: { default: "vertical" },
|
|
@@ -8804,13 +9098,177 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8804
9098
|
style: P(i.value)
|
|
8805
9099
|
}, [U(e.$slots, "default")], 6));
|
|
8806
9100
|
}
|
|
8807
|
-
}),
|
|
9101
|
+
}), Xd = [
|
|
9102
|
+
"id",
|
|
9103
|
+
"value",
|
|
9104
|
+
"placeholder",
|
|
9105
|
+
"disabled",
|
|
9106
|
+
"aria-expanded"
|
|
9107
|
+
], Zd = ["value", "placeholder"], Qd = { class: "flex-1 overflow-y-auto" }, $d = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
9108
|
+
__name: "MSearchBar",
|
|
9109
|
+
props: {
|
|
9110
|
+
modelValue: { default: "" },
|
|
9111
|
+
expanded: { type: Boolean },
|
|
9112
|
+
placeholder: {},
|
|
9113
|
+
variant: { default: "docked" },
|
|
9114
|
+
leadingIcon: { default: "search" },
|
|
9115
|
+
iconPosition: { default: "start" },
|
|
9116
|
+
textAlign: { default: "start" },
|
|
9117
|
+
loading: {
|
|
9118
|
+
type: Boolean,
|
|
9119
|
+
default: !1
|
|
9120
|
+
},
|
|
9121
|
+
clearable: {
|
|
9122
|
+
type: Boolean,
|
|
9123
|
+
default: !0
|
|
9124
|
+
},
|
|
9125
|
+
disabled: {
|
|
9126
|
+
type: Boolean,
|
|
9127
|
+
default: !1
|
|
9128
|
+
}
|
|
9129
|
+
},
|
|
9130
|
+
emits: [
|
|
9131
|
+
"update:modelValue",
|
|
9132
|
+
"update:expanded",
|
|
9133
|
+
"search"
|
|
9134
|
+
],
|
|
9135
|
+
setup(e, { emit: n }) {
|
|
9136
|
+
let i = e, a = n, o = t(), c = X(), u = V(i.expanded ?? !1);
|
|
9137
|
+
Z(() => i.expanded, (e) => {
|
|
9138
|
+
e !== void 0 && e !== u.value && (u.value = e);
|
|
9139
|
+
}), Z(u, (e) => a("update:expanded", e));
|
|
9140
|
+
let d = V(null), f = V(null), p = V(null), _ = V({
|
|
9141
|
+
top: "0px",
|
|
9142
|
+
left: "0px",
|
|
9143
|
+
width: "0px"
|
|
9144
|
+
});
|
|
9145
|
+
function v() {
|
|
9146
|
+
if (!d.value) return;
|
|
9147
|
+
let e = d.value.getBoundingClientRect();
|
|
9148
|
+
_.value = {
|
|
9149
|
+
top: `${e.top}px`,
|
|
9150
|
+
left: `${e.left}px`,
|
|
9151
|
+
width: `${e.width}px`
|
|
9152
|
+
};
|
|
9153
|
+
}
|
|
9154
|
+
function y() {
|
|
9155
|
+
i.disabled || u.value || (i.variant === "docked" && v(), u.value = !0, M(() => p.value?.focus()));
|
|
9156
|
+
}
|
|
9157
|
+
function w() {
|
|
9158
|
+
u.value &&= !1;
|
|
9159
|
+
}
|
|
9160
|
+
function T(e) {
|
|
9161
|
+
a("update:modelValue", e.target.value);
|
|
9162
|
+
}
|
|
9163
|
+
function D() {
|
|
9164
|
+
a("update:modelValue", ""), M(() => p.value?.focus());
|
|
9165
|
+
}
|
|
9166
|
+
function O(e) {
|
|
9167
|
+
e.key === "Escape" ? (w(), p.value?.blur()) : e.key === "Enter" && a("search", i.modelValue);
|
|
9168
|
+
}
|
|
9169
|
+
function k(e) {
|
|
9170
|
+
if (i.variant !== "docked" || !u.value) return;
|
|
9171
|
+
let t = e.target;
|
|
9172
|
+
d.value?.contains(t) || f.value?.contains(t) || w();
|
|
9173
|
+
}
|
|
9174
|
+
function A(e) {
|
|
9175
|
+
i.variant === "docked" && u.value && (f.value?.contains(e.target) || w());
|
|
9176
|
+
}
|
|
9177
|
+
return I(() => {
|
|
9178
|
+
document.addEventListener("mousedown", k), window.addEventListener("scroll", A, !0);
|
|
9179
|
+
}), L(() => {
|
|
9180
|
+
document.removeEventListener("mousedown", k), window.removeEventListener("scroll", A, !0);
|
|
9181
|
+
}), Z(u, (e) => {
|
|
9182
|
+
e && i.variant === "fullscreen" ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
9183
|
+
}), L(() => {
|
|
9184
|
+
document.body.style.overflow = "";
|
|
9185
|
+
}), (t, n) => (R(), S(m, null, [C("div", {
|
|
9186
|
+
ref_key: "barEl",
|
|
9187
|
+
ref: d,
|
|
9188
|
+
class: "relative w-full"
|
|
9189
|
+
}, [ie(C("div", { class: N(["flex h-14 items-center gap-3 rounded-full bg-surface-container-high px-4 shadow-elevation-1 transition-shadow duration-150", e.disabled ? "pointer-events-none opacity-[0.38]" : ""]) }, [
|
|
9190
|
+
C("span", { class: N(["inline-flex shrink-0 items-center", e.iconPosition === "end" ? "order-last" : ""]) }, [U(t.$slots, "leading", {}, () => [E(r, {
|
|
9191
|
+
name: e.leadingIcon,
|
|
9192
|
+
size: 20,
|
|
9193
|
+
class: "text-on-surface"
|
|
9194
|
+
}, null, 8, ["name"])], !0)], 2),
|
|
9195
|
+
C("input", {
|
|
9196
|
+
id: J(c),
|
|
9197
|
+
type: "text",
|
|
9198
|
+
role: "searchbox",
|
|
9199
|
+
value: e.modelValue,
|
|
9200
|
+
placeholder: e.placeholder ?? J(o).search,
|
|
9201
|
+
disabled: e.disabled,
|
|
9202
|
+
"aria-expanded": u.value,
|
|
9203
|
+
class: N(["w-full bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant", e.textAlign === "center" ? "text-center" : ""]),
|
|
9204
|
+
onFocus: y,
|
|
9205
|
+
onInput: T,
|
|
9206
|
+
onKeydown: O
|
|
9207
|
+
}, null, 42, Xd),
|
|
9208
|
+
e.clearable && e.modelValue && !e.disabled ? (R(), S("button", {
|
|
9209
|
+
key: 0,
|
|
9210
|
+
type: "button",
|
|
9211
|
+
class: "flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface",
|
|
9212
|
+
onMousedown: $(D, ["prevent"])
|
|
9213
|
+
}, [E(r, {
|
|
9214
|
+
name: "close",
|
|
9215
|
+
size: 18
|
|
9216
|
+
})], 32)) : x("", !0),
|
|
9217
|
+
U(t.$slots, "trailing", {}, void 0, !0)
|
|
9218
|
+
], 2), [[ne, !u.value]])], 512), (R(), b(h, { to: "body" }, [E(g, { name: e.variant === "fullscreen" ? "m3-searchbar-full" : "m3-searchbar-docked" }, {
|
|
9219
|
+
default: Q(() => [u.value ? (R(), S("div", {
|
|
9220
|
+
key: 0,
|
|
9221
|
+
ref_key: "panelEl",
|
|
9222
|
+
ref: f,
|
|
9223
|
+
class: N(["fixed z-500 flex flex-col overflow-hidden bg-surface-container-high", e.variant === "fullscreen" ? "inset-0" : "max-h-[70vh] rounded-[28px] shadow-elevation-3"]),
|
|
9224
|
+
style: P(e.variant === "docked" ? _.value : void 0)
|
|
9225
|
+
}, [
|
|
9226
|
+
C("div", { class: N(["flex shrink-0 items-center gap-3 px-4", e.variant === "fullscreen" ? "h-[72px]" : "h-14"]) }, [
|
|
9227
|
+
E(l, {
|
|
9228
|
+
icon: "arrow_back",
|
|
9229
|
+
label: J(o).close,
|
|
9230
|
+
variant: "standard",
|
|
9231
|
+
onClick: w
|
|
9232
|
+
}, null, 8, ["label"]),
|
|
9233
|
+
C("input", {
|
|
9234
|
+
ref_key: "inputEl",
|
|
9235
|
+
ref: p,
|
|
9236
|
+
type: "text",
|
|
9237
|
+
role: "searchbox",
|
|
9238
|
+
value: e.modelValue,
|
|
9239
|
+
placeholder: e.placeholder ?? J(o).search,
|
|
9240
|
+
class: N(["w-full bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant", e.textAlign === "center" ? "text-center" : ""]),
|
|
9241
|
+
onInput: T,
|
|
9242
|
+
onKeydown: O
|
|
9243
|
+
}, null, 42, Zd),
|
|
9244
|
+
e.loading ? (R(), b(s, {
|
|
9245
|
+
key: 0,
|
|
9246
|
+
size: 20,
|
|
9247
|
+
class: "shrink-0 text-on-surface-variant"
|
|
9248
|
+
})) : e.clearable && e.modelValue ? (R(), S("button", {
|
|
9249
|
+
key: 1,
|
|
9250
|
+
type: "button",
|
|
9251
|
+
class: "flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface",
|
|
9252
|
+
onMousedown: $(D, ["prevent"])
|
|
9253
|
+
}, [E(r, {
|
|
9254
|
+
name: "close",
|
|
9255
|
+
size: 18
|
|
9256
|
+
})], 32)) : x("", !0),
|
|
9257
|
+
U(t.$slots, "trailing", {}, void 0, !0)
|
|
9258
|
+
], 2),
|
|
9259
|
+
n[0] ||= C("div", { class: "h-px shrink-0 bg-outline-variant" }, null, -1),
|
|
9260
|
+
C("div", Qd, [U(t.$slots, "default", {}, void 0, !0)])
|
|
9261
|
+
], 6)) : x("", !0)]),
|
|
9262
|
+
_: 3
|
|
9263
|
+
}, 8, ["name"])]))], 64));
|
|
9264
|
+
}
|
|
9265
|
+
}), [["__scopeId", "data-v-5d1b5d5f"]]), ef = { key: 0 }, tf = { class: "flex items-start justify-between" }, nf = {
|
|
8808
9266
|
key: 0,
|
|
8809
9267
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
8810
|
-
},
|
|
9268
|
+
}, rf = {
|
|
8811
9269
|
key: 0,
|
|
8812
9270
|
class: "mt-4 h-px bg-outline-variant"
|
|
8813
|
-
},
|
|
9271
|
+
}, af = /* @__PURE__ */ D({
|
|
8814
9272
|
__name: "MSection",
|
|
8815
9273
|
props: {
|
|
8816
9274
|
title: {},
|
|
@@ -8847,19 +9305,19 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8847
9305
|
"label-medium": "text-label-medium",
|
|
8848
9306
|
"label-small": "text-label-small"
|
|
8849
9307
|
}, i = v(() => n[t.gap]), a = v(() => [r[t.titleVariant], "font-medium"]);
|
|
8850
|
-
return (t, n) => (R(), S("section", { class: N(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (R(), S("div",
|
|
9308
|
+
return (t, n) => (R(), S("section", { class: N(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (R(), S("div", ef, [C("div", tf, [C("div", null, [U(t.$slots, "title", {}, () => [e.title ? (R(), S("p", {
|
|
8851
9309
|
key: 0,
|
|
8852
9310
|
class: N(a.value)
|
|
8853
|
-
}, q(e.title), 3)) : x("", !0)]), U(t.$slots, "subtitle", {}, () => [e.subtitle ? (R(), S("p",
|
|
9311
|
+
}, q(e.title), 3)) : x("", !0)]), U(t.$slots, "subtitle", {}, () => [e.subtitle ? (R(), S("p", nf, q(e.subtitle), 1)) : x("", !0)])]), U(t.$slots, "actions")]), e.divider ? (R(), S("div", rf)) : x("", !0)])) : x("", !0), U(t.$slots, "default")], 2));
|
|
8854
9312
|
}
|
|
8855
|
-
}),
|
|
9313
|
+
}), of = {
|
|
8856
9314
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
8857
9315
|
role: "group"
|
|
8858
|
-
},
|
|
9316
|
+
}, sf = [
|
|
8859
9317
|
"disabled",
|
|
8860
9318
|
"aria-pressed",
|
|
8861
9319
|
"onClick"
|
|
8862
|
-
],
|
|
9320
|
+
], cf = /* @__PURE__ */ D({
|
|
8863
9321
|
__name: "MSegmentedButton",
|
|
8864
9322
|
props: {
|
|
8865
9323
|
modelValue: {},
|
|
@@ -8885,7 +9343,7 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8885
9343
|
} else n("update:modelValue", e.value);
|
|
8886
9344
|
}
|
|
8887
9345
|
}
|
|
8888
|
-
return (t, n) => (R(), S("div",
|
|
9346
|
+
return (t, n) => (R(), S("div", of, [(R(!0), S(m, null, H(e.options, (t, n) => (R(), S("button", {
|
|
8889
9347
|
key: t.value,
|
|
8890
9348
|
type: "button",
|
|
8891
9349
|
class: N(["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]", [
|
|
@@ -8906,35 +9364,35 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
8906
9364
|
key: 1,
|
|
8907
9365
|
name: t.icon,
|
|
8908
9366
|
size: 18
|
|
8909
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, q(t.label), 1)], 10,
|
|
9367
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, q(t.label), 1)], 10, sf))), 128))]));
|
|
8910
9368
|
}
|
|
8911
|
-
}),
|
|
9369
|
+
}), lf = { class: "flex flex-col gap-1" }, uf = [
|
|
8912
9370
|
"id",
|
|
8913
9371
|
"tabindex",
|
|
8914
9372
|
"aria-expanded",
|
|
8915
9373
|
"aria-disabled"
|
|
8916
|
-
],
|
|
9374
|
+
], df = {
|
|
8917
9375
|
key: 0,
|
|
8918
9376
|
class: "text-on-surface"
|
|
8919
|
-
},
|
|
9377
|
+
}, ff = ["for"], pf = {
|
|
8920
9378
|
key: 0,
|
|
8921
9379
|
class: "text-error"
|
|
8922
|
-
},
|
|
9380
|
+
}, mf = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 flex h-6 items-center" }, hf = {
|
|
8923
9381
|
key: 0,
|
|
8924
9382
|
class: "px-4 text-body-small text-error"
|
|
8925
|
-
},
|
|
9383
|
+
}, gf = {
|
|
8926
9384
|
key: 1,
|
|
8927
9385
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
8928
|
-
},
|
|
9386
|
+
}, _f = ["onClick"], vf = {
|
|
8929
9387
|
key: 1,
|
|
8930
9388
|
class: "w-[18px] shrink-0"
|
|
8931
|
-
},
|
|
9389
|
+
}, yf = {
|
|
8932
9390
|
key: 0,
|
|
8933
9391
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
8934
|
-
},
|
|
9392
|
+
}, bf = { class: "select-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, xf = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, Sf = { class: "text-headline-small text-on-surface" }, Cf = { class: "flex-1 overflow-y-auto py-2" }, wf = ["onClick"], Tf = {
|
|
8935
9393
|
key: 0,
|
|
8936
9394
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
8937
|
-
},
|
|
9395
|
+
}, Ef = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
8938
9396
|
__name: "MSelect",
|
|
8939
9397
|
props: {
|
|
8940
9398
|
modelValue: { default: void 0 },
|
|
@@ -9053,7 +9511,7 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
9053
9511
|
u.value ? i.error ? "text-error" : "text-primary" : i.error ? "text-error" : "text-on-surface-variant"
|
|
9054
9512
|
].join(" ");
|
|
9055
9513
|
});
|
|
9056
|
-
return (t, n) => (R(), S(m, null, [C("div",
|
|
9514
|
+
return (t, n) => (R(), S(m, null, [C("div", lf, [C("div", {
|
|
9057
9515
|
ref_key: "fieldEl",
|
|
9058
9516
|
ref: f,
|
|
9059
9517
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -9075,11 +9533,11 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
9075
9533
|
class: N([U.value, e.disabled ? "pointer-events-none opacity-[0.38]" : ""]),
|
|
9076
9534
|
onClick: A,
|
|
9077
9535
|
onKeydown: z
|
|
9078
|
-
}, [D.value ? (R(), S("span",
|
|
9536
|
+
}, [D.value ? (R(), S("span", df, q(O.value), 1)) : x("", !0)], 42, uf),
|
|
9079
9537
|
C("label", {
|
|
9080
9538
|
for: J(c),
|
|
9081
9539
|
class: N(G.value)
|
|
9082
|
-
}, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
9540
|
+
}, [T(q(e.label), 1), e.required ? (R(), S("span", pf, "\xA0*")) : x("", !0)], 10, ff),
|
|
9083
9541
|
e.clearable && D.value && !e.disabled ? (R(), S("button", {
|
|
9084
9542
|
key: 1,
|
|
9085
9543
|
type: "button",
|
|
@@ -9091,12 +9549,12 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
9091
9549
|
name: "close",
|
|
9092
9550
|
size: 18
|
|
9093
9551
|
})])) : x("", !0),
|
|
9094
|
-
C("div",
|
|
9552
|
+
C("div", mf, [E(r, {
|
|
9095
9553
|
name: "arrow_drop_down",
|
|
9096
9554
|
size: 24,
|
|
9097
9555
|
class: N(["text-on-surface-variant transition-transform duration-200", u.value || d.value ? "rotate-180" : ""])
|
|
9098
9556
|
}, null, 8, ["class"])])
|
|
9099
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
9557
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", hf, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", gf, q(e.hint), 1)) : x("", !0)]), (R(), b(h, { to: "body" }, [E(g, {
|
|
9100
9558
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
9101
9559
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
9102
9560
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -9119,21 +9577,21 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
9119
9577
|
name: "check",
|
|
9120
9578
|
size: 18,
|
|
9121
9579
|
class: "shrink-0 text-primary"
|
|
9122
|
-
})) : (R(), S("span",
|
|
9580
|
+
})) : (R(), S("span", vf)), T(" " + q(t.label), 1)], 10, _f))), 128)), e.options.length ? x("", !0) : (R(), S("p", yf, " Sin opciones "))], 4)) : x("", !0)]),
|
|
9123
9581
|
_: 1
|
|
9124
9582
|
}), E(g, { name: "m3-select-modal" }, {
|
|
9125
9583
|
default: Q(() => [d.value && e.mode === "modal" ? (R(), S("div", {
|
|
9126
9584
|
key: 0,
|
|
9127
9585
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
9128
9586
|
onClick: $(B, ["self"])
|
|
9129
|
-
}, [C("div",
|
|
9130
|
-
C("div",
|
|
9587
|
+
}, [C("div", bf, [
|
|
9588
|
+
C("div", xf, [C("h2", Sf, q(e.label || e.placeholder), 1), E(l, {
|
|
9131
9589
|
icon: "close",
|
|
9132
9590
|
label: J(s).close,
|
|
9133
9591
|
onClick: B
|
|
9134
9592
|
}, null, 8, ["label"])]),
|
|
9135
9593
|
n[1] ||= C("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
9136
|
-
C("div",
|
|
9594
|
+
C("div", Cf, [(R(!0), S(m, null, H(e.options, (t, n) => (R(), S("div", {
|
|
9137
9595
|
key: n,
|
|
9138
9596
|
class: N(["flex cursor-pointer items-center gap-4 px-6 py-3.5 text-body-large transition-colors", [t.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : "text-on-surface hover:bg-on-surface/8", w(t.value, e.modelValue) ? "bg-primary/8" : ""]]),
|
|
9139
9597
|
onClick: (e) => j(t)
|
|
@@ -9141,21 +9599,21 @@ var od = /*#__PURE__*/ p(rd, [["render", ad]]), sd = ["datetime", "title"], cd =
|
|
|
9141
9599
|
name: w(t.value, e.modelValue) ? "radio_button_checked" : "radio_button_unchecked",
|
|
9142
9600
|
size: 20,
|
|
9143
9601
|
class: N(w(t.value, e.modelValue) ? "text-primary" : "text-on-surface-variant")
|
|
9144
|
-
}, null, 8, ["name", "class"]), C("span", { class: N(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, q(t.label), 3)], 10,
|
|
9602
|
+
}, null, 8, ["name", "class"]), C("span", { class: N(w(t.value, e.modelValue) ? "text-primary font-medium" : "") }, q(t.label), 3)], 10, wf))), 128)), e.options.length ? x("", !0) : (R(), S("p", Tf, " Sin opciones "))])
|
|
9145
9603
|
])])) : x("", !0)]),
|
|
9146
9604
|
_: 1
|
|
9147
9605
|
})]))], 64));
|
|
9148
9606
|
}
|
|
9149
|
-
}), [["__scopeId", "data-v-17adb5b4"]]),
|
|
9607
|
+
}), [["__scopeId", "data-v-17adb5b4"]]), Df = {
|
|
9150
9608
|
key: 0,
|
|
9151
9609
|
class: "absolute inset-0 flex items-center justify-center"
|
|
9152
|
-
},
|
|
9610
|
+
}, Of = {
|
|
9153
9611
|
key: 1,
|
|
9154
9612
|
class: "absolute inset-0 flex items-center justify-center p-4"
|
|
9155
|
-
},
|
|
9613
|
+
}, kf = {
|
|
9156
9614
|
key: 2,
|
|
9157
9615
|
class: "absolute inset-0 flex items-center justify-center overflow-auto p-4"
|
|
9158
|
-
},
|
|
9616
|
+
}, Af = { class: "max-h-full w-full overflow-auto whitespace-pre-wrap text-body-small text-error" }, jf = /* @__PURE__ */ D({
|
|
9159
9617
|
__name: "MShader",
|
|
9160
9618
|
props: {
|
|
9161
9619
|
code: {},
|
|
@@ -9450,18 +9908,18 @@ void main() {
|
|
|
9450
9908
|
ref_key: "canvasRef",
|
|
9451
9909
|
ref: c,
|
|
9452
9910
|
class: "block h-full w-full touch-none"
|
|
9453
|
-
}, null, 512), l.value === "loading" ? (R(), S("div",
|
|
9911
|
+
}, null, 512), l.value === "loading" ? (R(), S("div", Df, [U(e.$slots, "loading", {}, () => [E(s)])])) : l.value === "fallback" ? (R(), S("div", Of, [U(e.$slots, "fallback", {}, () => [t[0] ||= C("p", { class: "text-center text-body-medium text-on-surface-variant" }, " Shaders are not supported in this browser. ", -1)])])) : l.value === "error" ? (R(), S("div", kf, [U(e.$slots, "error", { message: u.value }, () => [C("pre", Af, q(u.value), 1)])])) : x("", !0)], 512));
|
|
9454
9912
|
}
|
|
9455
|
-
}),
|
|
9913
|
+
}), Mf = {
|
|
9456
9914
|
key: 0,
|
|
9457
9915
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
9458
|
-
},
|
|
9916
|
+
}, Nf = {
|
|
9459
9917
|
key: 0,
|
|
9460
9918
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
9461
|
-
},
|
|
9919
|
+
}, Pf = { class: "text-title-large text-on-surface" }, Ff = { class: "flex-1 overflow-y-auto px-6 py-4" }, If = {
|
|
9462
9920
|
key: 1,
|
|
9463
9921
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
9464
|
-
},
|
|
9922
|
+
}, Lf = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
9465
9923
|
__name: "MSideSheet",
|
|
9466
9924
|
props: {
|
|
9467
9925
|
modelValue: { type: Boolean },
|
|
@@ -9491,7 +9949,7 @@ void main() {
|
|
|
9491
9949
|
leave: 280
|
|
9492
9950
|
}
|
|
9493
9951
|
}, {
|
|
9494
|
-
default: Q(() => [e.modelValue ? (R(), S("div",
|
|
9952
|
+
default: Q(() => [e.modelValue ? (R(), S("div", Mf, [C("div", {
|
|
9495
9953
|
class: "ss-scrim absolute inset-0 bg-black/40",
|
|
9496
9954
|
onClick: i
|
|
9497
9955
|
}), C("aside", {
|
|
@@ -9504,7 +9962,7 @@ void main() {
|
|
|
9504
9962
|
onPointermove: l,
|
|
9505
9963
|
onPointerup: u
|
|
9506
9964
|
}, null, 32),
|
|
9507
|
-
e.title || t.$slots.header ? (R(), S("div",
|
|
9965
|
+
e.title || t.$slots.header ? (R(), S("div", Nf, [U(t.$slots, "header", {}, () => [C("h2", Pf, q(e.title), 1)], !0), C("button", {
|
|
9508
9966
|
type: "button",
|
|
9509
9967
|
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",
|
|
9510
9968
|
onClick: i
|
|
@@ -9512,13 +9970,13 @@ void main() {
|
|
|
9512
9970
|
name: "close",
|
|
9513
9971
|
size: 20
|
|
9514
9972
|
})])])) : x("", !0),
|
|
9515
|
-
C("div",
|
|
9516
|
-
t.$slots.actions ? (R(), S("div",
|
|
9973
|
+
C("div", Ff, [U(t.$slots, "default", {}, void 0, !0)]),
|
|
9974
|
+
t.$slots.actions ? (R(), S("div", If, [U(t.$slots, "actions", {}, void 0, !0)])) : x("", !0)
|
|
9517
9975
|
], 6)])) : x("", !0)]),
|
|
9518
9976
|
_: 3
|
|
9519
9977
|
})]));
|
|
9520
9978
|
}
|
|
9521
|
-
}), [["__scopeId", "data-v-ba5b6f4b"]]),
|
|
9979
|
+
}), [["__scopeId", "data-v-ba5b6f4b"]]), Rf = ["width", "height"], zf = /* @__PURE__ */ D({
|
|
9522
9980
|
__name: "MSignaturePad",
|
|
9523
9981
|
props: {
|
|
9524
9982
|
width: { default: 400 },
|
|
@@ -9606,12 +10064,12 @@ void main() {
|
|
|
9606
10064
|
onPointermove: p,
|
|
9607
10065
|
onPointerup: m,
|
|
9608
10066
|
onPointerleave: m
|
|
9609
|
-
}, null, 40,
|
|
10067
|
+
}, null, 40, Rf)], 2));
|
|
9610
10068
|
}
|
|
9611
|
-
}),
|
|
10069
|
+
}), Bf = {
|
|
9612
10070
|
key: 0,
|
|
9613
10071
|
class: "flex flex-col gap-2.5"
|
|
9614
|
-
},
|
|
10072
|
+
}, Vf = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
9615
10073
|
__name: "MSkeleton",
|
|
9616
10074
|
props: {
|
|
9617
10075
|
variant: { default: "text" },
|
|
@@ -9621,7 +10079,7 @@ void main() {
|
|
|
9621
10079
|
animation: { default: "pulse" }
|
|
9622
10080
|
},
|
|
9623
10081
|
setup(e) {
|
|
9624
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (R(), S("div",
|
|
10082
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (R(), S("div", Bf, [(R(!0), S(m, null, H(e.lines, (t) => (R(), S("div", {
|
|
9625
10083
|
key: t,
|
|
9626
10084
|
class: N(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
9627
10085
|
style: P({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -9634,22 +10092,22 @@ void main() {
|
|
|
9634
10092
|
})
|
|
9635
10093
|
}, null, 6));
|
|
9636
10094
|
}
|
|
9637
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
10095
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), Hf = {
|
|
9638
10096
|
key: 0,
|
|
9639
10097
|
class: "flex items-center justify-between"
|
|
9640
|
-
},
|
|
10098
|
+
}, Uf = {
|
|
9641
10099
|
key: 0,
|
|
9642
10100
|
class: "text-label-large text-on-surface"
|
|
9643
|
-
},
|
|
10101
|
+
}, Wf = {
|
|
9644
10102
|
key: 1,
|
|
9645
10103
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
9646
|
-
},
|
|
10104
|
+
}, Gf = [
|
|
9647
10105
|
"aria-valuenow",
|
|
9648
10106
|
"aria-valuemin",
|
|
9649
10107
|
"aria-valuemax",
|
|
9650
10108
|
"aria-disabled",
|
|
9651
10109
|
"aria-orientation"
|
|
9652
|
-
],
|
|
10110
|
+
], Kf = /* @__PURE__ */ D({
|
|
9653
10111
|
__name: "MSlider",
|
|
9654
10112
|
props: {
|
|
9655
10113
|
modelValue: {},
|
|
@@ -9939,7 +10397,7 @@ void main() {
|
|
|
9939
10397
|
};
|
|
9940
10398
|
}
|
|
9941
10399
|
let ge = v(() => c.value ? `${l.value.lo} – ${l.value.hi}` : String(n.modelValue)), _e = v(() => c.value && typeof o.value == "number" ? n.modelValue[o.value] : n.modelValue), ve = v(() => c.value && typeof o.value == "number" ? u(n.modelValue[o.value]) : d.value);
|
|
9942
|
-
return (t, n) => (R(), S("div", { class: N(["flex select-none", s.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (R(), S("div",
|
|
10400
|
+
return (t, n) => (R(), S("div", { class: N(["flex select-none", s.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (R(), S("div", Hf, [e.label ? (R(), S("span", Uf, q(e.label), 1)) : x("", !0), e.showValue ? (R(), S("span", Wf, q(ge.value), 1)) : x("", !0)])) : x("", !0), C("div", { class: N(["flex items-center", s.value ? "flex-1 flex-col" : ""]) }, [C("div", {
|
|
9943
10401
|
ref_key: "trackEl",
|
|
9944
10402
|
ref: a,
|
|
9945
10403
|
role: "slider",
|
|
@@ -10254,13 +10712,13 @@ void main() {
|
|
|
10254
10712
|
}, q(_e.value), 5)) : x("", !0)]),
|
|
10255
10713
|
_: 1
|
|
10256
10714
|
})
|
|
10257
|
-
], 46,
|
|
10715
|
+
], 46, Gf)], 2)], 2));
|
|
10258
10716
|
}
|
|
10259
|
-
}),
|
|
10260
|
-
function
|
|
10261
|
-
return R(), S("div",
|
|
10717
|
+
}), qf = {}, Jf = { class: "flex-1" };
|
|
10718
|
+
function Yf(e, t) {
|
|
10719
|
+
return R(), S("div", Jf);
|
|
10262
10720
|
}
|
|
10263
|
-
var
|
|
10721
|
+
var Xf = /*#__PURE__*/ p(qf, [["render", Yf]]), Zf = ["disabled"], Qf = ["disabled"], $f = ["disabled", "onClick"], ep = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
10264
10722
|
__name: "MSplitButton",
|
|
10265
10723
|
props: {
|
|
10266
10724
|
label: {},
|
|
@@ -10472,7 +10930,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10472
10930
|
key: 0,
|
|
10473
10931
|
name: e.icon,
|
|
10474
10932
|
size: d.value.icon
|
|
10475
|
-
}, null, 8, ["name", "size"])) : x("", !0), T(" " + q(e.label), 1)], 46,
|
|
10933
|
+
}, null, 8, ["name", "size"])) : x("", !0), T(" " + q(e.label), 1)], 46, Zf), C("button", {
|
|
10476
10934
|
type: "button",
|
|
10477
10935
|
class: N(["toggle-btn relative flex cursor-pointer items-center justify-center overflow-hidden", [
|
|
10478
10936
|
d.value.h,
|
|
@@ -10492,7 +10950,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10492
10950
|
name: "arrow_drop_down",
|
|
10493
10951
|
size: d.value.arrow,
|
|
10494
10952
|
class: N(["transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
10495
|
-
}, null, 8, ["size", "class"])], 46,
|
|
10953
|
+
}, null, 8, ["size", "class"])], 46, Qf)], 2), (R(), b(h, { to: "body" }, [E(g, {
|
|
10496
10954
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
10497
10955
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
10498
10956
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
@@ -10515,7 +10973,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10515
10973
|
name: e.icon,
|
|
10516
10974
|
size: 18,
|
|
10517
10975
|
class: "shrink-0 text-on-surface-variant"
|
|
10518
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + q(e.label), 1)], 10,
|
|
10976
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + q(e.label), 1)], 10, $f))), 128))], 4)) : x("", !0)]),
|
|
10519
10977
|
_: 1
|
|
10520
10978
|
}), E(g, {
|
|
10521
10979
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
@@ -10532,7 +10990,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10532
10990
|
_: 3
|
|
10533
10991
|
})]))], 64));
|
|
10534
10992
|
}
|
|
10535
|
-
}), [["__scopeId", "data-v-ec1435bc"]]),
|
|
10993
|
+
}), [["__scopeId", "data-v-ec1435bc"]]), tp = /* @__PURE__ */ D({
|
|
10536
10994
|
__name: "MSplitter",
|
|
10537
10995
|
props: {
|
|
10538
10996
|
direction: { default: "horizontal" },
|
|
@@ -10579,26 +11037,26 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10579
11037
|
}, [U(e.$slots, "second")], 4)
|
|
10580
11038
|
], 2));
|
|
10581
11039
|
}
|
|
10582
|
-
}),
|
|
11040
|
+
}), np = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, rp = { class: "flex items-center gap-3 px-5 py-1" }, ip = ["placeholder"], ap = {
|
|
10583
11041
|
key: 0,
|
|
10584
11042
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
10585
|
-
},
|
|
11043
|
+
}, op = {
|
|
10586
11044
|
key: 0,
|
|
10587
11045
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
10588
|
-
},
|
|
11046
|
+
}, sp = [
|
|
10589
11047
|
"data-spot-active",
|
|
10590
11048
|
"onClick",
|
|
10591
11049
|
"onPointerenter"
|
|
10592
|
-
],
|
|
11050
|
+
], cp = {
|
|
10593
11051
|
key: 0,
|
|
10594
11052
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
10595
|
-
},
|
|
11053
|
+
}, lp = { class: "min-w-0 flex-1" }, up = { class: "truncate text-body-medium text-on-surface" }, dp = {
|
|
10596
11054
|
key: 0,
|
|
10597
11055
|
class: "truncate text-body-small text-on-surface-variant"
|
|
10598
|
-
},
|
|
11056
|
+
}, fp = {
|
|
10599
11057
|
key: 1,
|
|
10600
11058
|
class: "flex flex-col items-center gap-2 py-10"
|
|
10601
|
-
},
|
|
11059
|
+
}, pp = { class: "text-body-medium text-on-surface-variant" }, mp = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, hp = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, gp = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, _p = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, vp = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
10602
11060
|
__name: "MSpotlightSearch",
|
|
10603
11061
|
props: {
|
|
10604
11062
|
modelValue: { type: Boolean },
|
|
@@ -10662,8 +11120,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10662
11120
|
key: 0,
|
|
10663
11121
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[12vh]",
|
|
10664
11122
|
onClick: $(_, ["self"])
|
|
10665
|
-
}, [C("div",
|
|
10666
|
-
C("div",
|
|
11123
|
+
}, [C("div", np, [
|
|
11124
|
+
C("div", rp, [
|
|
10667
11125
|
E(r, {
|
|
10668
11126
|
name: "search",
|
|
10669
11127
|
size: 24,
|
|
@@ -10677,7 +11135,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10677
11135
|
placeholder: e.placeholder ?? J(i).search,
|
|
10678
11136
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
10679
11137
|
onKeydown: D
|
|
10680
|
-
}, null, 40,
|
|
11138
|
+
}, null, 40, ip), [[te, c.value]]),
|
|
10681
11139
|
e.loading ? (R(), b(s, {
|
|
10682
11140
|
key: 0,
|
|
10683
11141
|
size: 20,
|
|
@@ -10692,7 +11150,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10692
11150
|
size: 18
|
|
10693
11151
|
})])) : x("", !0)
|
|
10694
11152
|
]),
|
|
10695
|
-
f.value ? (R(), S("div",
|
|
11153
|
+
f.value ? (R(), S("div", ap, [e.results.length ? (R(!0), S(m, { key: 0 }, H(p.value, ([t, n]) => (R(), S(m, { key: t }, [t ? (R(), S("p", op, q(t), 1)) : x("", !0), (R(!0), S(m, null, H(n, (t) => (R(), S("button", {
|
|
10696
11154
|
key: t.id,
|
|
10697
11155
|
type: "button",
|
|
10698
11156
|
"data-spot-active": e.results.indexOf(t) === l.value || void 0,
|
|
@@ -10700,32 +11158,32 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10700
11158
|
onClick: (e) => y(t),
|
|
10701
11159
|
onPointerenter: (n) => l.value = e.results.indexOf(t)
|
|
10702
11160
|
}, [
|
|
10703
|
-
t.icon ? (R(), S("div",
|
|
11161
|
+
t.icon ? (R(), S("div", cp, [E(r, {
|
|
10704
11162
|
name: t.icon,
|
|
10705
11163
|
size: 20,
|
|
10706
11164
|
class: "text-on-primary-container"
|
|
10707
11165
|
}, null, 8, ["name"])])) : x("", !0),
|
|
10708
|
-
C("div",
|
|
11166
|
+
C("div", lp, [C("p", up, q(t.title), 1), t.description ? (R(), S("p", dp, q(t.description), 1)) : x("", !0)]),
|
|
10709
11167
|
E(r, {
|
|
10710
11168
|
name: "arrow_forward",
|
|
10711
11169
|
size: 16,
|
|
10712
11170
|
class: "shrink-0 text-on-surface-variant/40"
|
|
10713
11171
|
})
|
|
10714
|
-
], 42,
|
|
11172
|
+
], 42, sp))), 128))], 64))), 128)) : e.loading ? x("", !0) : (R(), S("div", fp, [E(r, {
|
|
10715
11173
|
name: "search_off",
|
|
10716
11174
|
size: 40,
|
|
10717
11175
|
class: "text-on-surface-variant/40"
|
|
10718
|
-
}), C("p",
|
|
10719
|
-
C("div",
|
|
10720
|
-
C("span",
|
|
10721
|
-
C("span",
|
|
10722
|
-
C("span",
|
|
11176
|
+
}), C("p", pp, q(e.noResultsText ?? J(i).noResults), 1)]))])) : x("", !0),
|
|
11177
|
+
C("div", mp, [
|
|
11178
|
+
C("span", hp, [n[2] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), T(" " + q(e.navigateHint ?? J(i).navigateHint), 1)]),
|
|
11179
|
+
C("span", gp, [n[3] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), T(" " + q(e.openHint ?? J(i).openHint), 1)]),
|
|
11180
|
+
C("span", _p, [n[4] ||= C("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), T(" " + q(e.closeHint ?? J(i).closeHint), 1)])
|
|
10723
11181
|
])
|
|
10724
11182
|
])])) : x("", !0)]),
|
|
10725
11183
|
_: 1
|
|
10726
11184
|
})]));
|
|
10727
11185
|
}
|
|
10728
|
-
}), [["__scopeId", "data-v-1fa0da82"]]),
|
|
11186
|
+
}), [["__scopeId", "data-v-1fa0da82"]]), yp = /* @__PURE__ */ D({
|
|
10729
11187
|
__name: "MStack",
|
|
10730
11188
|
props: {
|
|
10731
11189
|
direction: { default: "column" },
|
|
@@ -10780,19 +11238,19 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10780
11238
|
role: "separator"
|
|
10781
11239
|
}, null, 2)) : x("", !0), (R(), b(G(e)))], 64))), 128)) : U(t.$slots, "default", {}, void 0, void 0, 1)], 2));
|
|
10782
11240
|
}
|
|
10783
|
-
}),
|
|
11241
|
+
}), bp = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, xp = { class: "flex items-start justify-between gap-2" }, Sp = { class: "flex min-w-0 flex-col gap-1" }, Cp = { class: "truncate text-label-large text-on-surface-variant" }, wp = {
|
|
10784
11242
|
key: 0,
|
|
10785
11243
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
10786
|
-
},
|
|
11244
|
+
}, Tp = {
|
|
10787
11245
|
key: 1,
|
|
10788
11246
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
10789
|
-
},
|
|
11247
|
+
}, Ep = {
|
|
10790
11248
|
key: 0,
|
|
10791
11249
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
10792
|
-
},
|
|
11250
|
+
}, Dp = {
|
|
10793
11251
|
key: 1,
|
|
10794
11252
|
class: "text-label-medium text-on-surface-variant"
|
|
10795
|
-
},
|
|
11253
|
+
}, Op = /* @__PURE__ */ D({
|
|
10796
11254
|
__name: "MStatCard",
|
|
10797
11255
|
props: {
|
|
10798
11256
|
title: {},
|
|
@@ -10811,13 +11269,13 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10811
11269
|
error: "bg-error-container text-on-error-container",
|
|
10812
11270
|
success: "bg-success-container text-on-success-container"
|
|
10813
11271
|
}, i = v(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), a = v(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
10814
|
-
return (t, o) => (R(), S("div",
|
|
11272
|
+
return (t, o) => (R(), S("div", bp, [C("div", xp, [C("div", Sp, [C("span", Cp, q(e.title), 1), e.loading ? (R(), S("div", wp)) : (R(), S("span", Tp, q(e.value), 1))]), e.icon ? (R(), S("div", {
|
|
10815
11273
|
key: 0,
|
|
10816
11274
|
class: N(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
10817
11275
|
}, [E(r, {
|
|
10818
11276
|
name: e.icon,
|
|
10819
11277
|
size: 24
|
|
10820
|
-
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (R(), S("div",
|
|
11278
|
+
}, null, 8, ["name"])], 2)) : x("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (R(), S("div", Ep, [
|
|
10821
11279
|
e.trend == null ? x("", !0) : (R(), S("span", {
|
|
10822
11280
|
key: 0,
|
|
10823
11281
|
class: N(["inline-flex items-center gap-0.5 text-label-medium font-medium", i.value])
|
|
@@ -10825,35 +11283,35 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10825
11283
|
name: a.value,
|
|
10826
11284
|
size: 16
|
|
10827
11285
|
}, null, 8, ["name"]), T(" " + q(e.trend > 0 ? "+" : "") + q(e.trend) + "% ", 1)], 2)),
|
|
10828
|
-
e.trendLabel ? (R(), S("span",
|
|
11286
|
+
e.trendLabel ? (R(), S("span", Dp, q(e.trendLabel), 1)) : x("", !0),
|
|
10829
11287
|
U(t.$slots, "footer")
|
|
10830
11288
|
])) : x("", !0)]));
|
|
10831
11289
|
}
|
|
10832
|
-
}),
|
|
11290
|
+
}), kp = {
|
|
10833
11291
|
key: 0,
|
|
10834
11292
|
class: "flex w-full items-start"
|
|
10835
|
-
},
|
|
11293
|
+
}, Ap = ["onClick"], jp = { key: 3 }, Mp = { class: "flex flex-col items-center text-center" }, Np = {
|
|
10836
11294
|
key: 0,
|
|
10837
11295
|
class: "text-body-small text-on-surface-variant"
|
|
10838
|
-
},
|
|
11296
|
+
}, Pp = {
|
|
10839
11297
|
key: 1,
|
|
10840
11298
|
class: "text-body-small text-on-surface-variant"
|
|
10841
|
-
},
|
|
11299
|
+
}, Fp = {
|
|
10842
11300
|
key: 0,
|
|
10843
11301
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
10844
|
-
},
|
|
11302
|
+
}, Ip = {
|
|
10845
11303
|
key: 1,
|
|
10846
11304
|
class: "flex flex-col"
|
|
10847
|
-
},
|
|
11305
|
+
}, Lp = { class: "flex flex-col items-center" }, Rp = ["onClick"], zp = { key: 3 }, Bp = ["onClick"], Vp = {
|
|
10848
11306
|
key: 0,
|
|
10849
11307
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
10850
|
-
},
|
|
11308
|
+
}, Hp = {
|
|
10851
11309
|
key: 1,
|
|
10852
11310
|
class: "text-body-small text-on-surface-variant"
|
|
10853
|
-
},
|
|
11311
|
+
}, Up = {
|
|
10854
11312
|
key: 2,
|
|
10855
11313
|
class: "mt-3"
|
|
10856
|
-
},
|
|
11314
|
+
}, Wp = /* @__PURE__ */ D({
|
|
10857
11315
|
__name: "MStepper",
|
|
10858
11316
|
props: {
|
|
10859
11317
|
steps: {},
|
|
@@ -10874,7 +11332,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10874
11332
|
function s(e) {
|
|
10875
11333
|
o.value && i("update:modelValue", e);
|
|
10876
11334
|
}
|
|
10877
|
-
return (t, n) => e.direction === "horizontal" ? (R(), S("div",
|
|
11335
|
+
return (t, n) => e.direction === "horizontal" ? (R(), S("div", kp, [(R(!0), S(m, null, H(e.steps, (t, n) => (R(), S(m, { key: n }, [C("div", {
|
|
10878
11336
|
class: N(["flex flex-col items-center gap-2", o.value && a(n) !== "active" ? "cursor-pointer" : ""]),
|
|
10879
11337
|
onClick: (e) => s(n)
|
|
10880
11338
|
}, [C("div", { class: N(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -10893,18 +11351,18 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10893
11351
|
key: 2,
|
|
10894
11352
|
name: t.icon,
|
|
10895
11353
|
size: 20
|
|
10896
|
-
}, null, 8, ["name"])) : (R(), S("span",
|
|
11354
|
+
}, null, 8, ["name"])) : (R(), S("span", jp, q(n + 1), 1))], 2), C("div", Mp, [
|
|
10897
11355
|
C("span", { class: N(["text-label-large", {
|
|
10898
11356
|
"font-medium text-on-surface": a(n) === "active" || a(n) === "completed",
|
|
10899
11357
|
"text-error": a(n) === "error",
|
|
10900
11358
|
"text-on-surface-variant": a(n) === "inactive"
|
|
10901
11359
|
}]) }, q(t.label), 3),
|
|
10902
|
-
t.description ? (R(), S("span",
|
|
10903
|
-
t.optional ? (R(), S("span",
|
|
10904
|
-
])], 10,
|
|
11360
|
+
t.description ? (R(), S("span", Np, q(t.description), 1)) : x("", !0),
|
|
11361
|
+
t.optional ? (R(), S("span", Pp, " Opcional ")) : x("", !0)
|
|
11362
|
+
])], 10, Ap), n < e.steps.length - 1 ? (R(), S("div", Fp, [C("div", { class: N(["h-px w-full transition-colors duration-300", n < e.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : x("", !0)], 64))), 128))])) : (R(), S("div", Ip, [(R(!0), S(m, null, H(e.steps, (n, i) => (R(), S("div", {
|
|
10905
11363
|
key: i,
|
|
10906
11364
|
class: "flex gap-4"
|
|
10907
|
-
}, [C("div",
|
|
11365
|
+
}, [C("div", Lp, [C("div", {
|
|
10908
11366
|
class: N(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
10909
11367
|
"bg-primary text-on-primary": a(i) === "active" || a(i) === "completed",
|
|
10910
11368
|
"bg-error text-on-error": a(i) === "error",
|
|
@@ -10923,7 +11381,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10923
11381
|
key: 2,
|
|
10924
11382
|
name: n.icon,
|
|
10925
11383
|
size: 20
|
|
10926
|
-
}, null, 8, ["name"])) : (R(), S("span",
|
|
11384
|
+
}, null, 8, ["name"])) : (R(), S("span", zp, q(i + 1), 1))], 10, Rp), i < e.steps.length - 1 ? (R(), S("div", {
|
|
10927
11385
|
key: 0,
|
|
10928
11386
|
class: N(["my-1 w-px flex-1 transition-colors duration-300", i < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
10929
11387
|
style: { "min-height": "24px" }
|
|
@@ -10936,12 +11394,12 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10936
11394
|
"text-error": a(i) === "error",
|
|
10937
11395
|
"text-on-surface-variant": a(i) === "inactive"
|
|
10938
11396
|
}]) }, q(n.label), 3),
|
|
10939
|
-
n.description ? (R(), S("p",
|
|
10940
|
-
n.optional ? (R(), S("p",
|
|
10941
|
-
a(i) === "active" && t.$slots[`step-${i}`] ? (R(), S("div",
|
|
10942
|
-
], 10,
|
|
11397
|
+
n.description ? (R(), S("p", Vp, q(n.description), 1)) : x("", !0),
|
|
11398
|
+
n.optional ? (R(), S("p", Hp, " Opcional ")) : x("", !0),
|
|
11399
|
+
a(i) === "active" && t.$slots[`step-${i}`] ? (R(), S("div", Up, [U(t.$slots, `step-${i}`)])) : x("", !0)
|
|
11400
|
+
], 10, Bp)]))), 128))]));
|
|
10943
11401
|
}
|
|
10944
|
-
}),
|
|
11402
|
+
}), Gp = /* @__PURE__ */ D({
|
|
10945
11403
|
__name: "MSticky",
|
|
10946
11404
|
props: {
|
|
10947
11405
|
top: { default: 0 },
|
|
@@ -10959,7 +11417,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
10959
11417
|
}));
|
|
10960
11418
|
return (e, t) => (R(), S("div", { style: P(r.value) }, [U(e.$slots, "default")], 4));
|
|
10961
11419
|
}
|
|
10962
|
-
}),
|
|
11420
|
+
}), Kp = /* @__PURE__ */ D({
|
|
10963
11421
|
__name: "MText",
|
|
10964
11422
|
props: {
|
|
10965
11423
|
variant: { default: "body-medium" },
|
|
@@ -11039,7 +11497,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11039
11497
|
_: 3
|
|
11040
11498
|
}, 8, ["class"]));
|
|
11041
11499
|
}
|
|
11042
|
-
}),
|
|
11500
|
+
}), qp = /* @__PURE__ */ D({
|
|
11043
11501
|
__name: "MSubtitle",
|
|
11044
11502
|
props: {
|
|
11045
11503
|
size: { default: "large" },
|
|
@@ -11053,7 +11511,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11053
11511
|
medium: "body-medium",
|
|
11054
11512
|
small: "body-small"
|
|
11055
11513
|
}, r = v(() => n[t.size]);
|
|
11056
|
-
return (t, n) => (R(), b(
|
|
11514
|
+
return (t, n) => (R(), b(Kp, {
|
|
11057
11515
|
variant: r.value,
|
|
11058
11516
|
color: e.color,
|
|
11059
11517
|
align: e.align,
|
|
@@ -11068,31 +11526,31 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11068
11526
|
"truncate"
|
|
11069
11527
|
]));
|
|
11070
11528
|
}
|
|
11071
|
-
}),
|
|
11529
|
+
}), Jp = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Yp = {
|
|
11072
11530
|
key: 0,
|
|
11073
11531
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
11074
|
-
},
|
|
11532
|
+
}, Xp = {
|
|
11075
11533
|
key: 0,
|
|
11076
11534
|
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"
|
|
11077
|
-
},
|
|
11535
|
+
}, Zp = ["placeholder"], Qp = {
|
|
11078
11536
|
key: 0,
|
|
11079
11537
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
11080
|
-
},
|
|
11538
|
+
}, $p = { class: "overflow-x-auto" }, em = { class: "w-full border-collapse" }, tm = { class: "bg-surface-container-high" }, nm = {
|
|
11081
11539
|
key: 0,
|
|
11082
11540
|
class: "w-12 px-4 py-3"
|
|
11083
|
-
},
|
|
11541
|
+
}, rm = ["onClick"], im = { class: "inline-flex items-center gap-1" }, am = {
|
|
11084
11542
|
key: 0,
|
|
11085
11543
|
class: "inline-flex"
|
|
11086
|
-
},
|
|
11544
|
+
}, om = {
|
|
11087
11545
|
key: 1,
|
|
11088
11546
|
class: "w-1 px-4 py-3"
|
|
11089
|
-
},
|
|
11547
|
+
}, sm = {
|
|
11090
11548
|
key: 0,
|
|
11091
11549
|
class: "px-4 py-3.5"
|
|
11092
|
-
},
|
|
11550
|
+
}, cm = {
|
|
11093
11551
|
key: 1,
|
|
11094
11552
|
class: "px-4 py-3.5"
|
|
11095
|
-
},
|
|
11553
|
+
}, lm = { key: 1 }, um = ["colspan"], dm = { class: "text-body-medium text-on-surface-variant" }, fm = ["onClick"], pm = ["onClick"], mm = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, hm = /* @__PURE__ */ D({
|
|
11096
11554
|
__name: "MTable",
|
|
11097
11555
|
props: {
|
|
11098
11556
|
columns: {},
|
|
@@ -11232,9 +11690,9 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11232
11690
|
return `${a[(e * 3 + t) % a.length]}%`;
|
|
11233
11691
|
}
|
|
11234
11692
|
let G = ee(), K = v(() => !!G["row-actions"]);
|
|
11235
|
-
return (t, n) => (R(), S("div",
|
|
11236
|
-
e.searchable || t.$slots.toolbar ? (R(), S("div",
|
|
11237
|
-
e.searchable ? (R(), S("div",
|
|
11693
|
+
return (t, n) => (R(), S("div", Jp, [
|
|
11694
|
+
e.searchable || t.$slots.toolbar ? (R(), S("div", Yp, [
|
|
11695
|
+
e.searchable ? (R(), S("div", Xp, [
|
|
11238
11696
|
E(r, {
|
|
11239
11697
|
name: "search",
|
|
11240
11698
|
size: 16,
|
|
@@ -11245,7 +11703,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11245
11703
|
type: "text",
|
|
11246
11704
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
11247
11705
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
11248
|
-
}, null, 8,
|
|
11706
|
+
}, null, 8, Zp), [[te, c.value]]),
|
|
11249
11707
|
c.value ? (R(), S("button", {
|
|
11250
11708
|
key: 0,
|
|
11251
11709
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -11262,12 +11720,12 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11262
11720
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
11263
11721
|
"leave-to-class": "opacity-0 scale-90"
|
|
11264
11722
|
}, {
|
|
11265
|
-
default: Q(() => [e.selectable && O.value.length > 0 ? (R(), S("span",
|
|
11723
|
+
default: Q(() => [e.selectable && O.value.length > 0 ? (R(), S("span", Qp, q(O.value.length) + " " + q(e.selectedText ?? J(i).selectedCount) + q(O.value.length === 1 ? "" : "s"), 1)) : x("", !0)]),
|
|
11266
11724
|
_: 1
|
|
11267
11725
|
})
|
|
11268
11726
|
])) : x("", !0),
|
|
11269
|
-
C("div",
|
|
11270
|
-
e.selectable ? (R(), S("th",
|
|
11727
|
+
C("div", $p, [C("table", em, [C("thead", null, [C("tr", tm, [
|
|
11728
|
+
e.selectable ? (R(), S("th", nm, [E(lr, {
|
|
11271
11729
|
"model-value": M.value,
|
|
11272
11730
|
indeterminate: F.value,
|
|
11273
11731
|
"onUpdate:modelValue": L
|
|
@@ -11281,7 +11739,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11281
11739
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
11282
11740
|
]),
|
|
11283
11741
|
onClick: (t) => e.sortable ? d(e.key) : void 0
|
|
11284
|
-
}, [C("span",
|
|
11742
|
+
}, [C("span", im, [T(q(e.label) + " ", 1), e.sortable ? (R(), S("span", am, [l.value === e.key && u.value === "asc" ? (R(), b(r, {
|
|
11285
11743
|
key: 0,
|
|
11286
11744
|
name: "arrow_upward",
|
|
11287
11745
|
size: 14,
|
|
@@ -11296,13 +11754,13 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11296
11754
|
name: "unfold_more",
|
|
11297
11755
|
size: 14,
|
|
11298
11756
|
class: "opacity-30"
|
|
11299
|
-
}))])) : x("", !0)])], 14,
|
|
11300
|
-
K.value ? (R(), S("th",
|
|
11757
|
+
}))])) : x("", !0)])], 14, rm))), 128)),
|
|
11758
|
+
K.value ? (R(), S("th", om)) : x("", !0)
|
|
11301
11759
|
])]), C("tbody", null, [e.loading ? (R(!0), S(m, { key: 0 }, H(e.perPage, (t) => (R(), S("tr", {
|
|
11302
11760
|
key: `sk-${t}`,
|
|
11303
11761
|
class: "border-t border-outline-variant"
|
|
11304
11762
|
}, [
|
|
11305
|
-
e.selectable ? (R(), S("td",
|
|
11763
|
+
e.selectable ? (R(), S("td", sm, [...n[4] ||= [C("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : x("", !0),
|
|
11306
11764
|
(R(!0), S(m, null, H(e.columns, (e, n) => (R(), S("td", {
|
|
11307
11765
|
key: e.key,
|
|
11308
11766
|
class: "px-4 py-3.5"
|
|
@@ -11310,15 +11768,15 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11310
11768
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
11311
11769
|
style: P({ width: W(t, n) })
|
|
11312
11770
|
}, null, 4)]))), 128)),
|
|
11313
|
-
K.value ? (R(), S("td",
|
|
11314
|
-
]))), 128)) : y.value.length === 0 ? (R(), S("tr",
|
|
11771
|
+
K.value ? (R(), S("td", cm, [...n[5] ||= [C("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : x("", !0)
|
|
11772
|
+
]))), 128)) : y.value.length === 0 ? (R(), S("tr", lm, [C("td", {
|
|
11315
11773
|
colspan: e.columns.length + z.value,
|
|
11316
11774
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
11317
11775
|
}, [U(t.$slots, "empty", {}, () => [E(r, {
|
|
11318
11776
|
name: "search_off",
|
|
11319
11777
|
size: 36,
|
|
11320
11778
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
11321
|
-
}), C("p",
|
|
11779
|
+
}), C("p", dm, q(e.emptyText ?? J(i).noResults), 1)])], 8, um)])) : (R(!0), S(m, { key: 2 }, H(y.value, (r) => (R(), S("tr", {
|
|
11322
11780
|
key: k(r),
|
|
11323
11781
|
class: N([
|
|
11324
11782
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -11335,7 +11793,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11335
11793
|
}, [E(lr, {
|
|
11336
11794
|
"model-value": A(r),
|
|
11337
11795
|
"onUpdate:modelValue": (e) => j(r)
|
|
11338
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8,
|
|
11796
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])], 8, pm)) : x("", !0),
|
|
11339
11797
|
(R(!0), S(m, null, H(e.columns, (e) => (R(), S("td", {
|
|
11340
11798
|
key: e.key,
|
|
11341
11799
|
class: N(["px-4 py-3 text-body-medium text-on-surface", B(e.align)])
|
|
@@ -11349,8 +11807,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11349
11807
|
class: "px-4 py-3 text-right",
|
|
11350
11808
|
onClick: n[2] ||= $(() => {}, ["stop"])
|
|
11351
11809
|
}, [U(t.$slots, "row-actions", { row: r })])) : x("", !0)
|
|
11352
|
-
], 10,
|
|
11353
|
-
C("div",
|
|
11810
|
+
], 10, fm))), 128))])])]),
|
|
11811
|
+
C("div", mm, [E(ni, {
|
|
11354
11812
|
page: p.value,
|
|
11355
11813
|
"per-page": e.perPage,
|
|
11356
11814
|
total: _.value,
|
|
@@ -11362,21 +11820,21 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11362
11820
|
])])
|
|
11363
11821
|
]));
|
|
11364
11822
|
}
|
|
11365
|
-
}),
|
|
11823
|
+
}), gm = { class: "flex flex-col gap-1" }, _m = ["id"], vm = ["onClick"], ym = [
|
|
11366
11824
|
"value",
|
|
11367
11825
|
"placeholder",
|
|
11368
11826
|
"disabled",
|
|
11369
11827
|
"readonly"
|
|
11370
|
-
],
|
|
11828
|
+
], bm = {
|
|
11371
11829
|
key: 0,
|
|
11372
11830
|
class: "text-error"
|
|
11373
|
-
},
|
|
11831
|
+
}, xm = {
|
|
11374
11832
|
key: 0,
|
|
11375
11833
|
class: "px-4 text-body-small text-error"
|
|
11376
|
-
},
|
|
11834
|
+
}, Sm = {
|
|
11377
11835
|
key: 1,
|
|
11378
11836
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
11379
|
-
},
|
|
11837
|
+
}, Cm = /* @__PURE__ */ D({
|
|
11380
11838
|
__name: "MTagInput",
|
|
11381
11839
|
props: {
|
|
11382
11840
|
modelValue: { default: () => [] },
|
|
@@ -11471,7 +11929,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11471
11929
|
s.value ? n.error ? "text-error" : "text-primary" : n.error ? "text-error" : "text-on-surface-variant"
|
|
11472
11930
|
].join(" ");
|
|
11473
11931
|
});
|
|
11474
|
-
return (t, n) => (R(), S("div",
|
|
11932
|
+
return (t, n) => (R(), S("div", gm, [C("div", {
|
|
11475
11933
|
ref_key: "fieldEl",
|
|
11476
11934
|
ref: l,
|
|
11477
11935
|
class: N(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -11499,7 +11957,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11499
11957
|
}, [E(r, {
|
|
11500
11958
|
name: "close",
|
|
11501
11959
|
size: 12
|
|
11502
|
-
})], 8,
|
|
11960
|
+
})], 8, vm))]))), 128)), C("input", {
|
|
11503
11961
|
ref_key: "inputEl",
|
|
11504
11962
|
ref: u,
|
|
11505
11963
|
value: c.value,
|
|
@@ -11515,8 +11973,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11515
11973
|
onPaste: O,
|
|
11516
11974
|
onFocus: n[0] ||= (e) => s.value = !0,
|
|
11517
11975
|
onBlur: k
|
|
11518
|
-
}, null, 40,
|
|
11519
|
-
C("label", { class: N(M.value) }, [T(q(e.label), 1), e.required ? (R(), S("span",
|
|
11976
|
+
}, null, 40, ym)], 10, _m),
|
|
11977
|
+
C("label", { class: N(M.value) }, [T(q(e.label), 1), e.required ? (R(), S("span", bm, "\xA0*")) : x("", !0)], 2),
|
|
11520
11978
|
e.clearable && g.value && !e.disabled ? (R(), S("button", {
|
|
11521
11979
|
key: 1,
|
|
11522
11980
|
type: "button",
|
|
@@ -11528,21 +11986,21 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11528
11986
|
name: "close",
|
|
11529
11987
|
size: 18
|
|
11530
11988
|
})])) : x("", !0)
|
|
11531
|
-
], 6), e.error && e.errorLabel ? (R(), S("p",
|
|
11989
|
+
], 6), e.error && e.errorLabel ? (R(), S("p", xm, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", Sm, q(e.hint), 1)) : x("", !0)]));
|
|
11532
11990
|
}
|
|
11533
|
-
}),
|
|
11991
|
+
}), wm = {
|
|
11534
11992
|
key: 0,
|
|
11535
11993
|
class: "border-b border-outline-variant"
|
|
11536
|
-
},
|
|
11994
|
+
}, Tm = {
|
|
11537
11995
|
class: "relative flex overflow-x-auto",
|
|
11538
11996
|
style: { "scrollbar-width": "none" }
|
|
11539
|
-
},
|
|
11997
|
+
}, Em = ["disabled", "onClick"], Dm = {
|
|
11540
11998
|
key: 1,
|
|
11541
11999
|
class: "border-b border-outline-variant"
|
|
11542
|
-
},
|
|
12000
|
+
}, Om = {
|
|
11543
12001
|
class: "relative flex overflow-x-auto",
|
|
11544
12002
|
style: { "scrollbar-width": "none" }
|
|
11545
|
-
},
|
|
12003
|
+
}, km = ["disabled", "onClick"], Am = .9, jm = 700, Mm = /* @__PURE__ */ D({
|
|
11546
12004
|
__name: "MTabs",
|
|
11547
12005
|
props: {
|
|
11548
12006
|
modelValue: {},
|
|
@@ -11551,38 +12009,49 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11551
12009
|
},
|
|
11552
12010
|
emits: ["update:modelValue"],
|
|
11553
12011
|
setup(e, { emit: t }) {
|
|
11554
|
-
let n = e, i = t, a = V([]), o = V(0), s = V(0)
|
|
11555
|
-
function
|
|
12012
|
+
let n = e, i = t, a = V([]), o = V(0), s = V(0);
|
|
12013
|
+
function c(e) {
|
|
11556
12014
|
let t = a.value[e];
|
|
11557
12015
|
return t ? {
|
|
11558
12016
|
left: t.offsetLeft,
|
|
11559
12017
|
width: t.offsetWidth
|
|
11560
12018
|
} : null;
|
|
11561
12019
|
}
|
|
11562
|
-
|
|
12020
|
+
let l = 2 * Am * Math.sqrt(jm), u = 0, d = 0, f = 0, p = 0, h = 0, g = 0, _ = 0, v = 0;
|
|
12021
|
+
function y(e, t, n, r) {
|
|
12022
|
+
let i = t + (-700 * (e - n) - l * t) * r;
|
|
12023
|
+
return [e + i * r, i];
|
|
12024
|
+
}
|
|
12025
|
+
function w(e) {
|
|
12026
|
+
let t = Math.min((e - v) / 1e3, 1 / 30);
|
|
12027
|
+
if (v = e, [u, d] = y(u, d, f, t), [p, h] = y(p, h, g, t), o.value = u, s.value = p, Math.abs(u - f) < .5 && Math.abs(d) < .5 && Math.abs(p - g) < .5 && Math.abs(h) < .5) {
|
|
12028
|
+
u = f, p = g, o.value = u, s.value = p, _ = 0;
|
|
12029
|
+
return;
|
|
12030
|
+
}
|
|
12031
|
+
_ = requestAnimationFrame(w);
|
|
12032
|
+
}
|
|
12033
|
+
function E() {
|
|
12034
|
+
_ ||= (v = performance.now(), requestAnimationFrame(w));
|
|
12035
|
+
}
|
|
12036
|
+
function D(e = !0) {
|
|
11563
12037
|
M(() => {
|
|
11564
|
-
let t =
|
|
12038
|
+
let t = c(n.tabs.findIndex((e) => e.value === n.modelValue));
|
|
11565
12039
|
if (t) {
|
|
11566
12040
|
if (n.variant === "primary") {
|
|
11567
|
-
let
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
c.value = !1, o.value = i, s.value = a - i;
|
|
11572
|
-
}, 150);
|
|
11573
|
-
} else {
|
|
11574
|
-
let e = t.left + n;
|
|
11575
|
-
o.value = e, s.value = t.width - n * 2;
|
|
11576
|
-
}
|
|
11577
|
-
} else o.value = t.left, s.value = t.width;
|
|
12041
|
+
let e = Math.min(t.width * .2, 16);
|
|
12042
|
+
f = t.left + e, g = t.width - e * 2;
|
|
12043
|
+
} else f = t.left, g = t.width;
|
|
12044
|
+
e ? E() : (u = f, d = 0, p = g, h = 0, o.value = u, s.value = p);
|
|
11578
12045
|
}
|
|
11579
12046
|
});
|
|
11580
12047
|
}
|
|
11581
|
-
I(() =>
|
|
11582
|
-
|
|
12048
|
+
I(() => D(!1)), L(() => {
|
|
12049
|
+
_ && cancelAnimationFrame(_);
|
|
12050
|
+
}), Z(() => n.modelValue, () => D(!0)), Z(() => n.tabs, () => D(!0), { deep: !0 });
|
|
12051
|
+
function O(e) {
|
|
11583
12052
|
e.disabled || i("update:modelValue", e.value);
|
|
11584
12053
|
}
|
|
11585
|
-
return (t, n) => e.variant === "primary" ? (R(), S("div",
|
|
12054
|
+
return (t, n) => e.variant === "primary" ? (R(), S("div", wm, [C("div", Tm, [(R(!0), S(m, null, H(e.tabs, (t) => (R(), S("button", {
|
|
11586
12055
|
key: t.value,
|
|
11587
12056
|
ref_for: !0,
|
|
11588
12057
|
ref: (n) => {
|
|
@@ -11591,19 +12060,18 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11591
12060
|
type: "button",
|
|
11592
12061
|
class: N(["relative flex shrink-0 flex-col items-center justify-center gap-1 px-6 text-label-large transition-colors duration-150 focus-visible:outline-none", [t.icon ? "h-14 pb-1.5" : "h-12 pb-1.5", t.value === e.modelValue ? "text-primary" : t.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:text-on-surface"]]),
|
|
11593
12062
|
disabled: t.disabled,
|
|
11594
|
-
onClick: (e) =>
|
|
12063
|
+
onClick: (e) => O(t)
|
|
11595
12064
|
}, [t.icon ? (R(), b(r, {
|
|
11596
12065
|
key: 0,
|
|
11597
12066
|
name: t.icon,
|
|
11598
12067
|
size: 20
|
|
11599
|
-
}, null, 8, ["name"])) : x("", !0), C("span", null, q(t.label), 1)], 10,
|
|
12068
|
+
}, null, 8, ["name"])) : x("", !0), C("span", null, q(t.label), 1)], 10, Em))), 128)), C("div", {
|
|
11600
12069
|
class: "absolute bottom-0 h-[3px] rounded-t-full bg-primary",
|
|
11601
12070
|
style: P({
|
|
11602
12071
|
left: `${o.value}px`,
|
|
11603
|
-
width: `${s.value}px
|
|
11604
|
-
transition: c.value ? "left 150ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0.4, 0, 0.2, 1)" : "left 180ms cubic-bezier(0.34, 1.4, 0.64, 1), width 180ms cubic-bezier(0.34, 1.4, 0.64, 1)"
|
|
12072
|
+
width: `${s.value}px`
|
|
11605
12073
|
})
|
|
11606
|
-
}, null, 4)])])) : (R(), S("div",
|
|
12074
|
+
}, null, 4)])])) : (R(), S("div", Dm, [C("div", Om, [(R(!0), S(m, null, H(e.tabs, (t) => (R(), S("button", {
|
|
11607
12075
|
key: t.value,
|
|
11608
12076
|
ref_for: !0,
|
|
11609
12077
|
ref: (n) => {
|
|
@@ -11612,38 +12080,38 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11612
12080
|
type: "button",
|
|
11613
12081
|
class: N(["relative flex h-12 shrink-0 items-center justify-center gap-2 px-6 text-label-large transition-colors duration-150 focus-visible:outline-none", t.value === e.modelValue ? "text-on-surface" : t.disabled ? "cursor-not-allowed text-on-surface/38" : "cursor-pointer text-on-surface-variant hover:text-on-surface"]),
|
|
11614
12082
|
disabled: t.disabled,
|
|
11615
|
-
onClick: (e) =>
|
|
12083
|
+
onClick: (e) => O(t)
|
|
11616
12084
|
}, [t.icon ? (R(), b(r, {
|
|
11617
12085
|
key: 0,
|
|
11618
12086
|
name: t.icon,
|
|
11619
12087
|
size: 18
|
|
11620
|
-
}, null, 8, ["name"])) : x("", !0), T(" " + q(t.label), 1)], 10,
|
|
11621
|
-
class: "absolute bottom-0 h-[2px] bg-primary
|
|
12088
|
+
}, null, 8, ["name"])) : x("", !0), T(" " + q(t.label), 1)], 10, km))), 128)), C("div", {
|
|
12089
|
+
class: "absolute bottom-0 h-[2px] bg-primary",
|
|
11622
12090
|
style: P({
|
|
11623
12091
|
left: `${o.value}px`,
|
|
11624
12092
|
width: `${s.value}px`
|
|
11625
12093
|
})
|
|
11626
12094
|
}, null, 4)])]));
|
|
11627
12095
|
}
|
|
11628
|
-
}),
|
|
12096
|
+
}), Nm = { class: "flex flex-col items-center" }, Pm = { class: "flex items-baseline justify-between gap-2" }, Fm = { class: "text-body-large font-medium text-on-surface" }, Im = {
|
|
11629
12097
|
key: 0,
|
|
11630
12098
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
11631
|
-
},
|
|
12099
|
+
}, Lm = {
|
|
11632
12100
|
key: 0,
|
|
11633
12101
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
11634
|
-
},
|
|
12102
|
+
}, Rm = {
|
|
11635
12103
|
key: 1,
|
|
11636
12104
|
class: "mt-2"
|
|
11637
|
-
},
|
|
12105
|
+
}, zm = { class: "text-body-large font-medium text-on-surface" }, Bm = {
|
|
11638
12106
|
key: 0,
|
|
11639
12107
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
11640
|
-
},
|
|
12108
|
+
}, Vm = {
|
|
11641
12109
|
key: 1,
|
|
11642
12110
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
11643
|
-
},
|
|
12111
|
+
}, Hm = { class: "flex w-14 shrink-0 flex-col items-center" }, Um = {
|
|
11644
12112
|
key: 0,
|
|
11645
12113
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
11646
|
-
},
|
|
12114
|
+
}, Wm = /* @__PURE__ */ D({
|
|
11647
12115
|
__name: "MTimeline",
|
|
11648
12116
|
props: {
|
|
11649
12117
|
items: {},
|
|
@@ -11669,23 +12137,23 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11669
12137
|
class: N(["flex items-stretch", a % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
11670
12138
|
}, [
|
|
11671
12139
|
C("div", { class: N(["flex-1", [a % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
11672
|
-
C("p",
|
|
11673
|
-
n.description ? (R(), S("p",
|
|
11674
|
-
n.date ? (R(), S("span",
|
|
12140
|
+
C("p", zm, q(n.title), 1),
|
|
12141
|
+
n.description ? (R(), S("p", Bm, q(n.description), 1)) : x("", !0),
|
|
12142
|
+
n.date ? (R(), S("span", Vm, q(n.date), 1)) : x("", !0)
|
|
11675
12143
|
], 2),
|
|
11676
|
-
C("div",
|
|
12144
|
+
C("div", Hm, [C("div", {
|
|
11677
12145
|
class: N(["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"]]]),
|
|
11678
12146
|
style: P(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
11679
12147
|
}, [n.icon ? (R(), b(r, {
|
|
11680
12148
|
key: 0,
|
|
11681
12149
|
name: n.icon,
|
|
11682
12150
|
size: 18
|
|
11683
|
-
}, null, 8, ["name"])) : x("", !0)], 6), a < e.items.length - 1 ? (R(), S("div",
|
|
12151
|
+
}, null, 8, ["name"])) : x("", !0)], 6), a < e.items.length - 1 ? (R(), S("div", Um)) : x("", !0)]),
|
|
11684
12152
|
i[0] ||= C("div", { class: "flex-1" }, null, -1)
|
|
11685
12153
|
], 2))), 128)) : (R(!0), S(m, { key: 0 }, H(e.items, (i, a) => (R(), S("div", {
|
|
11686
12154
|
key: a,
|
|
11687
12155
|
class: N(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
11688
|
-
}, [C("div",
|
|
12156
|
+
}, [C("div", Nm, [C("div", {
|
|
11689
12157
|
class: N(["z-1 flex shrink-0 items-center justify-center rounded-full", [i.icon ? "h-9 w-9" : "h-3 w-3", t[i.color ?? "primary"]]]),
|
|
11690
12158
|
style: P(i.dotColor ? { backgroundColor: i.dotColor } : void 0)
|
|
11691
12159
|
}, [i.icon ? (R(), b(r, {
|
|
@@ -11697,30 +12165,30 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11697
12165
|
class: N(["w-[2px] flex-1", t[i.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
11698
12166
|
style: { "min-height": "16px" }
|
|
11699
12167
|
}, null, 2)) : x("", !0)]), C("div", { class: N([i.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
11700
|
-
C("div",
|
|
11701
|
-
i.description ? (R(), S("p",
|
|
11702
|
-
n.$slots[`item-${a}`] ? (R(), S("div",
|
|
12168
|
+
C("div", Pm, [C("p", Fm, q(i.title), 1), i.date ? (R(), S("span", Im, q(i.date), 1)) : x("", !0)]),
|
|
12169
|
+
i.description ? (R(), S("p", Lm, q(i.description), 1)) : x("", !0),
|
|
12170
|
+
n.$slots[`item-${a}`] ? (R(), S("div", Rm, [U(n.$slots, `item-${a}`, { item: i })])) : x("", !0)
|
|
11703
12171
|
], 2)], 2))), 128))], 2));
|
|
11704
12172
|
}
|
|
11705
|
-
}),
|
|
12173
|
+
}), Gm = { class: "flex flex-col gap-1" }, Km = {
|
|
11706
12174
|
key: 0,
|
|
11707
12175
|
class: "flex-1 font-mono text-on-surface"
|
|
11708
|
-
},
|
|
12176
|
+
}, qm = {
|
|
11709
12177
|
key: 1,
|
|
11710
12178
|
class: "flex-1 text-on-surface-variant"
|
|
11711
|
-
},
|
|
12179
|
+
}, Jm = {
|
|
11712
12180
|
key: 0,
|
|
11713
12181
|
class: "px-4 text-body-small text-error"
|
|
11714
|
-
},
|
|
12182
|
+
}, Ym = {
|
|
11715
12183
|
key: 1,
|
|
11716
12184
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
11717
|
-
},
|
|
12185
|
+
}, Xm = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, Zm = { class: "p-3" }, Qm = {
|
|
11718
12186
|
key: 0,
|
|
11719
12187
|
class: "grid grid-cols-6 gap-1"
|
|
11720
|
-
},
|
|
12188
|
+
}, $m = ["onClick"], eh = {
|
|
11721
12189
|
key: 1,
|
|
11722
12190
|
class: "grid grid-cols-6 gap-1"
|
|
11723
|
-
},
|
|
12191
|
+
}, th = ["onClick"], nh = /* @__PURE__ */ D({
|
|
11724
12192
|
__name: "MTimePicker",
|
|
11725
12193
|
props: {
|
|
11726
12194
|
modelValue: {},
|
|
@@ -11793,7 +12261,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11793
12261
|
e ? (d.value = "hour", y.value = _.value.h, w.value = _.value.m, F(), setTimeout(() => document.addEventListener("mousedown", z), 0)) : document.removeEventListener("mousedown", z);
|
|
11794
12262
|
}), I(() => window.addEventListener("scroll", B, !0)), L(() => {
|
|
11795
12263
|
window.removeEventListener("scroll", B, !0), document.removeEventListener("mousedown", z);
|
|
11796
|
-
}), (t, n) => (R(), S("div",
|
|
12264
|
+
}), (t, n) => (R(), S("div", Gm, [
|
|
11797
12265
|
C("div", {
|
|
11798
12266
|
ref_key: "triggerEl",
|
|
11799
12267
|
ref: l,
|
|
@@ -11809,7 +12277,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11809
12277
|
size: 20,
|
|
11810
12278
|
class: "shrink-0 text-on-surface-variant"
|
|
11811
12279
|
}),
|
|
11812
|
-
M.value ? (R(), S("span",
|
|
12280
|
+
M.value ? (R(), S("span", Km, q(M.value), 1)) : (R(), S("span", qm, q(e.label || e.placeholder || J(o).selectTime), 1)),
|
|
11813
12281
|
e.modelValue ? (R(), b(r, {
|
|
11814
12282
|
key: 2,
|
|
11815
12283
|
name: "close",
|
|
@@ -11821,7 +12289,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11821
12289
|
key: 0,
|
|
11822
12290
|
class: N(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", c.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
11823
12291
|
}, q(e.label), 3)) : x("", !0)], 4),
|
|
11824
|
-
e.error && e.errorLabel ? (R(), S("p",
|
|
12292
|
+
e.error && e.errorLabel ? (R(), S("p", Jm, q(e.errorLabel), 1)) : e.hint ? (R(), S("p", Ym, q(e.hint), 1)) : x("", !0),
|
|
11825
12293
|
(R(), b(h, { to: "body" }, [E(g, {
|
|
11826
12294
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
11827
12295
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -11834,7 +12302,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11834
12302
|
ref: u,
|
|
11835
12303
|
class: "fixed z-500 w-[280px] rounded-lg bg-surface-container shadow-elevation-3",
|
|
11836
12304
|
style: P(f.value)
|
|
11837
|
-
}, [C("div",
|
|
12305
|
+
}, [C("div", Xm, [
|
|
11838
12306
|
C("button", {
|
|
11839
12307
|
type: "button",
|
|
11840
12308
|
class: N(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -11846,34 +12314,34 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11846
12314
|
class: N(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
11847
12315
|
onClick: n[2] ||= (e) => d.value = "minute"
|
|
11848
12316
|
}, q(O(w.value)), 3)
|
|
11849
|
-
]), C("div",
|
|
12317
|
+
]), C("div", Zm, [d.value === "hour" ? (R(), S("div", Qm, [(R(!0), S(m, null, H(J(T), (e) => (R(), S("button", {
|
|
11850
12318
|
key: e,
|
|
11851
12319
|
type: "button",
|
|
11852
12320
|
class: N(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === y.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
11853
12321
|
onClick: (t) => k(e)
|
|
11854
|
-
}, q(O(e)), 11,
|
|
12322
|
+
}, q(O(e)), 11, $m))), 128))])) : (R(), S("div", eh, [(R(!0), S(m, null, H(D.value, (e) => (R(), S("button", {
|
|
11855
12323
|
key: e,
|
|
11856
12324
|
type: "button",
|
|
11857
12325
|
class: N(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === w.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
11858
12326
|
onClick: (t) => A(e)
|
|
11859
|
-
}, q(O(e)), 11,
|
|
12327
|
+
}, q(O(e)), 11, th))), 128))]))])], 4)) : x("", !0)]),
|
|
11860
12328
|
_: 1
|
|
11861
12329
|
})]))
|
|
11862
12330
|
]));
|
|
11863
12331
|
}
|
|
11864
|
-
}),
|
|
12332
|
+
}), rh = { class: "tp-box w-[328px] rounded-[28px] bg-surface-container-high px-6 pt-6 pb-4 shadow-elevation-3" }, ih = { class: "mb-5 text-label-medium text-on-surface-variant" }, ah = { class: "mb-5 flex items-center justify-center gap-2" }, oh = {
|
|
11865
12333
|
key: 0,
|
|
11866
12334
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
11867
|
-
},
|
|
12335
|
+
}, sh = {
|
|
11868
12336
|
class: "pointer-events-none absolute inset-0",
|
|
11869
12337
|
viewBox: "0 0 256 256"
|
|
11870
|
-
},
|
|
12338
|
+
}, ch = ["x2", "y2"], lh = ["cx", "cy"], uh = ["onClick"], dh = ["onClick"], fh = {
|
|
11871
12339
|
key: 1,
|
|
11872
12340
|
class: "mx-auto flex items-center justify-center gap-2 py-8"
|
|
11873
|
-
},
|
|
12341
|
+
}, ph = {
|
|
11874
12342
|
key: 0,
|
|
11875
12343
|
class: "ml-2 flex h-[72px] flex-col overflow-hidden rounded-lg border border-outline"
|
|
11876
|
-
},
|
|
12344
|
+
}, mh = { class: "mt-2 flex items-center justify-between" }, hh = { class: "flex gap-2" }, gh = 256, _h = 100, vh = 64, yh = 20, bh = /*#__PURE__*/ p(/* @__PURE__ */ D({
|
|
11877
12345
|
__name: "MTimePickerModal",
|
|
11878
12346
|
props: {
|
|
11879
12347
|
modelValue: { default: null },
|
|
@@ -11911,7 +12379,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11911
12379
|
r.use24h ? d.value = e : (u.value = e >= 12 ? "PM" : "AM", d.value = e % 12 || 12), f.value = t, s.value = "hour", c.value = "dial", document.addEventListener("keydown", X), document.body.style.overflow = "hidden";
|
|
11912
12380
|
} else document.removeEventListener("keydown", X), document.body.style.overflow = "";
|
|
11913
12381
|
});
|
|
11914
|
-
let O =
|
|
12382
|
+
let O = gh / 2;
|
|
11915
12383
|
function k(e, t, n) {
|
|
11916
12384
|
let r = e / t * Math.PI * 2 - Math.PI / 2;
|
|
11917
12385
|
return {
|
|
@@ -11922,7 +12390,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11922
12390
|
let A = v(() => {
|
|
11923
12391
|
let e = [];
|
|
11924
12392
|
for (let t = 0; t < 12; t++) {
|
|
11925
|
-
let n = t === 0 ? 12 : t, r = k(t, 12,
|
|
12393
|
+
let n = t === 0 ? 12 : t, r = k(t, 12, _h);
|
|
11926
12394
|
e.push({
|
|
11927
12395
|
value: n,
|
|
11928
12396
|
label: String(n),
|
|
@@ -11930,7 +12398,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11930
12398
|
});
|
|
11931
12399
|
}
|
|
11932
12400
|
if (r.use24h) for (let t = 0; t < 12; t++) {
|
|
11933
|
-
let n = t === 0 ? 0 : t + 12, r = k(t, 12,
|
|
12401
|
+
let n = t === 0 ? 0 : t + 12, r = k(t, 12, vh);
|
|
11934
12402
|
e.push({
|
|
11935
12403
|
value: n,
|
|
11936
12404
|
label: w(n),
|
|
@@ -11939,7 +12407,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11939
12407
|
}
|
|
11940
12408
|
return e;
|
|
11941
12409
|
}), j = v(() => Array.from({ length: 12 }, (e, t) => {
|
|
11942
|
-
let n = t * 5, r = k(t, 12,
|
|
12410
|
+
let n = t * 5, r = k(t, 12, _h);
|
|
11943
12411
|
return {
|
|
11944
12412
|
value: n,
|
|
11945
12413
|
label: w(n),
|
|
@@ -11947,7 +12415,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11947
12415
|
};
|
|
11948
12416
|
})), M = v(() => {
|
|
11949
12417
|
if (s.value === "hour") {
|
|
11950
|
-
let e = d.value, t = r.use24h && (e === 0 || e > 12) ?
|
|
12418
|
+
let e = d.value, t = r.use24h && (e === 0 || e > 12) ? vh : _h, n = e % 12 / 12 * Math.PI * 2 - Math.PI / 2;
|
|
11951
12419
|
return {
|
|
11952
12420
|
x: O + Math.cos(n) * t,
|
|
11953
12421
|
y: O + Math.sin(n) * t
|
|
@@ -11955,8 +12423,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
11955
12423
|
}
|
|
11956
12424
|
let e = f.value / 60 * Math.PI * 2 - Math.PI / 2;
|
|
11957
12425
|
return {
|
|
11958
|
-
x: O + Math.cos(e) *
|
|
11959
|
-
y: O + Math.sin(e) *
|
|
12426
|
+
x: O + Math.cos(e) * _h,
|
|
12427
|
+
y: O + Math.sin(e) * _h
|
|
11960
12428
|
};
|
|
11961
12429
|
});
|
|
11962
12430
|
function F(e) {
|
|
@@ -12034,9 +12502,9 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12034
12502
|
key: 0,
|
|
12035
12503
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",
|
|
12036
12504
|
onClick: $(K, ["self"])
|
|
12037
|
-
}, [C("div",
|
|
12038
|
-
C("p",
|
|
12039
|
-
c.value === "dial" ? (R(), S(m, { key: 0 }, [C("div",
|
|
12505
|
+
}, [C("div", rh, [
|
|
12506
|
+
C("p", ih, q(e.title || J(a).selectTime), 1),
|
|
12507
|
+
c.value === "dial" ? (R(), S(m, { key: 0 }, [C("div", ah, [
|
|
12040
12508
|
C("button", {
|
|
12041
12509
|
type: "button",
|
|
12042
12510
|
class: N(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", s.value === "hour" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
@@ -12048,7 +12516,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12048
12516
|
class: N(["flex h-[72px] min-w-[96px] items-center justify-center rounded-lg text-display-medium transition-colors", s.value === "minute" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
12049
12517
|
onClick: n[1] ||= (e) => s.value = "minute"
|
|
12050
12518
|
}, q(w(f.value)), 3),
|
|
12051
|
-
e.use24h ? x("", !0) : (R(), S("div",
|
|
12519
|
+
e.use24h ? x("", !0) : (R(), S("div", oh, [
|
|
12052
12520
|
C("button", {
|
|
12053
12521
|
type: "button",
|
|
12054
12522
|
class: N(["flex flex-1 items-center justify-center px-3 text-label-large transition-colors", u.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -12069,7 +12537,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12069
12537
|
onTouchstart: $(z, ["prevent"])
|
|
12070
12538
|
}, [
|
|
12071
12539
|
n[11] ||= C("div", { class: "absolute inset-0 rounded-full bg-surface-container-highest" }, null, -1),
|
|
12072
|
-
(R(), S("svg",
|
|
12540
|
+
(R(), S("svg", sh, [
|
|
12073
12541
|
C("line", {
|
|
12074
12542
|
x1: O,
|
|
12075
12543
|
y1: O,
|
|
@@ -12077,7 +12545,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12077
12545
|
y2: M.value.y,
|
|
12078
12546
|
stroke: "var(--color-primary)",
|
|
12079
12547
|
"stroke-width": "2"
|
|
12080
|
-
}, null, 8,
|
|
12548
|
+
}, null, 8, ch),
|
|
12081
12549
|
C("circle", {
|
|
12082
12550
|
cx: O,
|
|
12083
12551
|
cy: O,
|
|
@@ -12087,9 +12555,9 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12087
12555
|
C("circle", {
|
|
12088
12556
|
cx: M.value.x,
|
|
12089
12557
|
cy: M.value.y,
|
|
12090
|
-
r:
|
|
12558
|
+
r: yh,
|
|
12091
12559
|
fill: "var(--color-primary)"
|
|
12092
|
-
}, null, 8,
|
|
12560
|
+
}, null, 8, lh)
|
|
12093
12561
|
])),
|
|
12094
12562
|
s.value === "hour" ? (R(!0), S(m, { key: 0 }, H(A.value, (e) => (R(), S("button", {
|
|
12095
12563
|
key: "h" + e.value,
|
|
@@ -12101,7 +12569,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12101
12569
|
transform: "translate(-50%, -50%)"
|
|
12102
12570
|
}),
|
|
12103
12571
|
onClick: $((t) => B(e.value), ["stop"])
|
|
12104
|
-
}, q(e.label), 15,
|
|
12572
|
+
}, q(e.label), 15, uh))), 128)) : (R(!0), S(m, { key: 1 }, H(j.value, (e) => (R(), S("button", {
|
|
12105
12573
|
key: "m" + e.value,
|
|
12106
12574
|
type: "button",
|
|
12107
12575
|
class: N(["pointer-events-auto absolute flex h-10 w-10 items-center justify-center rounded-full text-body-medium transition-colors", e.value === f.value ? "text-on-primary font-medium" : "text-on-surface cursor-pointer"]),
|
|
@@ -12111,8 +12579,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12111
12579
|
transform: "translate(-50%, -50%)"
|
|
12112
12580
|
}),
|
|
12113
12581
|
onClick: $((t) => f.value = e.value, ["stop"])
|
|
12114
|
-
}, q(e.label), 15,
|
|
12115
|
-
], 544)], 64)) : (R(), S("div",
|
|
12582
|
+
}, q(e.label), 15, dh))), 128))
|
|
12583
|
+
], 544)], 64)) : (R(), S("div", fh, [
|
|
12116
12584
|
ie(C("input", {
|
|
12117
12585
|
ref_key: "inputHourEl",
|
|
12118
12586
|
ref: _,
|
|
@@ -12132,7 +12600,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12132
12600
|
class: "h-[72px] w-[96px] rounded-lg border border-outline bg-surface-container-highest text-center text-display-medium text-on-surface outline-none transition-colors focus:border-2 focus:border-primary",
|
|
12133
12601
|
onBlur: G
|
|
12134
12602
|
}, null, 544), [[te, W.value]]),
|
|
12135
|
-
e.use24h ? x("", !0) : (R(), S("div",
|
|
12603
|
+
e.use24h ? x("", !0) : (R(), S("div", ph, [
|
|
12136
12604
|
C("button", {
|
|
12137
12605
|
type: "button",
|
|
12138
12606
|
class: N(["flex flex-1 items-center justify-center px-3 text-label-large transition-colors", u.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -12146,11 +12614,11 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12146
12614
|
}, "PM", 2)
|
|
12147
12615
|
]))
|
|
12148
12616
|
])),
|
|
12149
|
-
C("div",
|
|
12617
|
+
C("div", mh, [E(l, {
|
|
12150
12618
|
icon: c.value === "dial" ? "keyboard" : "schedule",
|
|
12151
12619
|
label: c.value === "dial" ? "Switch to keyboard" : "Switch to dial",
|
|
12152
12620
|
onClick: n[8] ||= (e) => c.value = c.value === "dial" ? "input" : "dial"
|
|
12153
|
-
}, null, 8, ["icon", "label"]), C("div",
|
|
12621
|
+
}, null, 8, ["icon", "label"]), C("div", hh, [E(i, {
|
|
12154
12622
|
variant: "text",
|
|
12155
12623
|
onClick: K
|
|
12156
12624
|
}, {
|
|
@@ -12167,7 +12635,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12167
12635
|
_: 1
|
|
12168
12636
|
})]));
|
|
12169
12637
|
}
|
|
12170
|
-
}), [["__scopeId", "data-v-a2a090e9"]]),
|
|
12638
|
+
}), [["__scopeId", "data-v-a2a090e9"]]), xh = /* @__PURE__ */ D({
|
|
12171
12639
|
__name: "MTitle",
|
|
12172
12640
|
props: {
|
|
12173
12641
|
size: { default: "large" },
|
|
@@ -12181,7 +12649,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12181
12649
|
medium: "headline-medium",
|
|
12182
12650
|
small: "headline-small"
|
|
12183
12651
|
}, r = v(() => n[t.size]);
|
|
12184
|
-
return (t, n) => (R(), b(
|
|
12652
|
+
return (t, n) => (R(), b(Kp, {
|
|
12185
12653
|
variant: r.value,
|
|
12186
12654
|
weight: "medium",
|
|
12187
12655
|
color: e.color,
|
|
@@ -12197,13 +12665,13 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12197
12665
|
"truncate"
|
|
12198
12666
|
]));
|
|
12199
12667
|
}
|
|
12200
|
-
}),
|
|
12668
|
+
}), Sh = {
|
|
12201
12669
|
key: 0,
|
|
12202
12670
|
class: "px-4 pt-3 pb-1 text-title-small font-medium text-on-surface"
|
|
12203
|
-
},
|
|
12671
|
+
}, Ch = { class: "px-4 py-2 text-body-medium text-on-surface-variant" }, wh = {
|
|
12204
12672
|
key: 1,
|
|
12205
12673
|
class: "flex justify-end gap-2 px-4 pb-3"
|
|
12206
|
-
},
|
|
12674
|
+
}, Th = /* @__PURE__ */ D({
|
|
12207
12675
|
__name: "MTooltip",
|
|
12208
12676
|
props: {
|
|
12209
12677
|
text: {},
|
|
@@ -12293,20 +12761,20 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12293
12761
|
onMouseenter: d,
|
|
12294
12762
|
onMouseleave: f
|
|
12295
12763
|
}, [
|
|
12296
|
-
e.text ? (R(), S("div",
|
|
12297
|
-
C("div",
|
|
12298
|
-
t.$slots.actions ? (R(), S("div",
|
|
12764
|
+
e.text ? (R(), S("div", Sh, q(e.text), 1)) : x("", !0),
|
|
12765
|
+
C("div", Ch, [U(t.$slots, "content")]),
|
|
12766
|
+
t.$slots.actions ? (R(), S("div", wh, [U(t.$slots, "actions")])) : x("", !0)
|
|
12299
12767
|
], 36)) : x("", !0)]),
|
|
12300
12768
|
_: 3
|
|
12301
12769
|
})]))], 64));
|
|
12302
12770
|
}
|
|
12303
|
-
}),
|
|
12771
|
+
}), Eh = {
|
|
12304
12772
|
key: 0,
|
|
12305
12773
|
class: "shrink-0"
|
|
12306
|
-
},
|
|
12774
|
+
}, Dh = {
|
|
12307
12775
|
key: 1,
|
|
12308
12776
|
class: "shrink-0"
|
|
12309
|
-
},
|
|
12777
|
+
}, Oh = /* @__PURE__ */ D({
|
|
12310
12778
|
__name: "MToolbar",
|
|
12311
12779
|
props: {
|
|
12312
12780
|
variant: { default: "docked" },
|
|
@@ -12335,7 +12803,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12335
12803
|
e.fabPosition === "start" && !i.value ? "flex-row" : "",
|
|
12336
12804
|
e.fabPosition === "start" && i.value ? "flex-col" : ""
|
|
12337
12805
|
]]) }, [
|
|
12338
|
-
t.$slots.fab && e.fabPosition === "start" ? (R(), S("div",
|
|
12806
|
+
t.$slots.fab && e.fabPosition === "start" ? (R(), S("div", Eh, [U(t.$slots, "fab")])) : x("", !0),
|
|
12339
12807
|
C("div", { class: N(["flex items-center gap-1", [
|
|
12340
12808
|
i.value ? "flex-col py-3 px-2" : "flex-row px-3 py-2",
|
|
12341
12809
|
r.value,
|
|
@@ -12344,44 +12812,46 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12344
12812
|
e.variant === "docked" ? "w-full border-t border-outline-variant" : "",
|
|
12345
12813
|
e.variant === "docked" && i.value ? "h-full w-auto border-t-0 border-r border-outline-variant" : ""
|
|
12346
12814
|
]]) }, [U(t.$slots, "default")], 2),
|
|
12347
|
-
t.$slots.fab && e.fabPosition === "end" ? (R(), S("div",
|
|
12815
|
+
t.$slots.fab && e.fabPosition === "end" ? (R(), S("div", Dh, [U(t.$slots, "fab")])) : x("", !0)
|
|
12348
12816
|
], 2));
|
|
12349
12817
|
}
|
|
12350
|
-
}),
|
|
12818
|
+
}), kh = { class: "flex h-16 shrink-0 items-center gap-1 px-4" }, Ah = {
|
|
12351
12819
|
key: 1,
|
|
12352
12820
|
class: "flex-1"
|
|
12353
|
-
},
|
|
12821
|
+
}, jh = {
|
|
12354
12822
|
key: 2,
|
|
12355
12823
|
class: "flex items-center gap-1"
|
|
12356
|
-
},
|
|
12824
|
+
}, Mh = /* @__PURE__ */ D({
|
|
12357
12825
|
__name: "MTopAppBar",
|
|
12358
12826
|
props: {
|
|
12359
12827
|
title: {},
|
|
12360
12828
|
variant: { default: "small" },
|
|
12361
12829
|
navigationIcon: {},
|
|
12830
|
+
navigationLabel: {},
|
|
12362
12831
|
elevated: { type: Boolean },
|
|
12363
12832
|
bordered: { type: Boolean }
|
|
12364
12833
|
},
|
|
12365
12834
|
emits: ["navigation"],
|
|
12366
12835
|
setup(e) {
|
|
12367
|
-
|
|
12836
|
+
let n = t();
|
|
12837
|
+
return (t, r) => (R(), S("header", { class: N(["flex w-full flex-col bg-surface transition-shadow", [e.elevated ? "shadow-elevation-2" : "", e.bordered ? "border-b border-outline-variant" : ""]]) }, [C("div", kh, [
|
|
12368
12838
|
U(t.$slots, "navigation", {}, () => [e.navigationIcon ? (R(), b(l, {
|
|
12369
12839
|
key: 0,
|
|
12370
12840
|
icon: e.navigationIcon,
|
|
12371
|
-
label:
|
|
12372
|
-
onClick:
|
|
12373
|
-
}, null, 8, ["icon"])) : x("", !0)]),
|
|
12841
|
+
label: e.navigationLabel ?? J(n).menu,
|
|
12842
|
+
onClick: r[0] ||= (e) => t.$emit("navigation")
|
|
12843
|
+
}, null, 8, ["icon", "label"])) : x("", !0)]),
|
|
12374
12844
|
e.variant === "center" || e.variant === "small" ? (R(), S("h1", {
|
|
12375
12845
|
key: 0,
|
|
12376
12846
|
class: N(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", e.variant === "center" ? "justify-center" : ""])
|
|
12377
|
-
}, [U(t.$slots, "title", {}, () => [T(q(e.title), 1)])], 2)) : (R(), S("div",
|
|
12378
|
-
t.$slots.actions ? (R(), S("div",
|
|
12847
|
+
}, [U(t.$slots, "title", {}, () => [T(q(e.title), 1)])], 2)) : (R(), S("div", Ah)),
|
|
12848
|
+
t.$slots.actions ? (R(), S("div", jh, [U(t.$slots, "actions")])) : x("", !0)
|
|
12379
12849
|
]), e.variant === "medium" || e.variant === "large" ? (R(), S("div", {
|
|
12380
12850
|
key: 0,
|
|
12381
|
-
class: N(["px-4 pb-
|
|
12382
|
-
}, [C("h1", { class: N(["text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [U(t.$slots, "title", {}, () => [T(q(e.title), 1)])], 2)], 2)) : x("", !0)], 2));
|
|
12851
|
+
class: N(["flex items-end px-4 pb-3", e.variant === "large" ? "h-[88px]" : "h-12"])
|
|
12852
|
+
}, [C("h1", { class: N(["truncate text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [U(t.$slots, "title", {}, () => [T(q(e.title), 1)])], 2)], 2)) : x("", !0)], 2));
|
|
12383
12853
|
}
|
|
12384
|
-
}),
|
|
12854
|
+
}), Nh = { class: "mb-2 flex items-center justify-between" }, Ph = { class: "text-label-small text-on-surface-variant" }, Fh = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Ih = { class: "mb-4 text-body-medium text-on-surface-variant" }, Lh = { class: "mb-4 flex justify-center gap-1.5" }, Rh = { class: "flex justify-between" }, zh = { key: 1 }, Bh = /* @__PURE__ */ D({
|
|
12385
12855
|
__name: "MTour",
|
|
12386
12856
|
props: {
|
|
12387
12857
|
modelValue: { type: Boolean },
|
|
@@ -12464,7 +12934,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12464
12934
|
class: "h-0 w-0",
|
|
12465
12935
|
style: P(u.value)
|
|
12466
12936
|
}, null, 4),
|
|
12467
|
-
C("div",
|
|
12937
|
+
C("div", Nh, [C("span", Ph, q(c.value + 1) + " / " + q(e.steps.length), 1), C("button", {
|
|
12468
12938
|
type: "button",
|
|
12469
12939
|
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",
|
|
12470
12940
|
onClick: B
|
|
@@ -12472,13 +12942,13 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12472
12942
|
name: "close",
|
|
12473
12943
|
size: 16
|
|
12474
12944
|
})])]),
|
|
12475
|
-
C("h3",
|
|
12476
|
-
C("p",
|
|
12477
|
-
C("div",
|
|
12945
|
+
C("h3", Fh, q(f.value.title), 1),
|
|
12946
|
+
C("p", Ih, q(f.value.content), 1),
|
|
12947
|
+
C("div", Lh, [(R(!0), S(m, null, H(e.steps, (e, t) => (R(), S("div", {
|
|
12478
12948
|
key: t,
|
|
12479
12949
|
class: N(["h-1.5 rounded-full transition-all duration-200", t === c.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
12480
12950
|
}, null, 2))), 128))]),
|
|
12481
|
-
C("div",
|
|
12951
|
+
C("div", Rh, [p.value ? (R(), S("span", zh)) : (R(), b(i, {
|
|
12482
12952
|
key: 0,
|
|
12483
12953
|
variant: "text",
|
|
12484
12954
|
onClick: z
|
|
@@ -12493,19 +12963,19 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12493
12963
|
_: 1
|
|
12494
12964
|
})]));
|
|
12495
12965
|
}
|
|
12496
|
-
}),
|
|
12966
|
+
}), Vh = { class: "flex items-stretch gap-2" }, Hh = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, Uh = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, Wh = { class: "text-label-large font-medium text-on-surface" }, Gh = { class: "text-label-small text-on-surface-variant" }, Kh = {
|
|
12497
12967
|
key: 0,
|
|
12498
12968
|
class: "border-b border-outline-variant px-3 py-2"
|
|
12499
|
-
},
|
|
12969
|
+
}, qh = ["placeholder"], Jh = {
|
|
12500
12970
|
class: "flex-1 overflow-y-auto",
|
|
12501
12971
|
style: { "max-height": "240px" }
|
|
12502
|
-
},
|
|
12972
|
+
}, Yh = ["onClick"], Xh = { class: "flex-1 truncate text-body-medium text-on-surface" }, Zh = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, Qh = { class: "flex flex-col items-center justify-center gap-1" }, $h = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-outline-variant" }, eg = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-3 py-2" }, tg = { class: "text-label-large font-medium text-on-surface" }, ng = { class: "text-label-small text-on-surface-variant" }, rg = {
|
|
12503
12973
|
key: 0,
|
|
12504
12974
|
class: "border-b border-outline-variant px-3 py-2"
|
|
12505
|
-
},
|
|
12975
|
+
}, ig = ["placeholder"], ag = {
|
|
12506
12976
|
class: "flex-1 overflow-y-auto",
|
|
12507
12977
|
style: { "max-height": "240px" }
|
|
12508
|
-
},
|
|
12978
|
+
}, og = ["onClick"], sg = { class: "flex-1 truncate text-body-medium text-on-surface" }, cg = { class: "px-3 py-4 text-center text-body-small text-on-surface-variant" }, lg = /* @__PURE__ */ D({
|
|
12509
12979
|
__name: "MTransferList",
|
|
12510
12980
|
props: {
|
|
12511
12981
|
modelValue: {},
|
|
@@ -12564,16 +13034,16 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12564
13034
|
let e = p.value.map((e) => e.value);
|
|
12565
13035
|
o("update:modelValue", a.modelValue.filter((t) => !new Set(e).has(t))), c.value = /* @__PURE__ */ new Set();
|
|
12566
13036
|
}
|
|
12567
|
-
return (t, n) => (R(), S("div",
|
|
12568
|
-
C("div",
|
|
12569
|
-
C("div",
|
|
12570
|
-
e.filterable ? (R(), S("div",
|
|
13037
|
+
return (t, n) => (R(), S("div", Vh, [
|
|
13038
|
+
C("div", Hh, [
|
|
13039
|
+
C("div", Uh, [C("span", Wh, q(e.sourceTitle ?? J(i).available), 1), C("span", Gh, q(f.value.length), 1)]),
|
|
13040
|
+
e.filterable ? (R(), S("div", Kh, [ie(C("input", {
|
|
12571
13041
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
12572
13042
|
type: "text",
|
|
12573
13043
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
12574
13044
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
12575
|
-
}, null, 8,
|
|
12576
|
-
C("div",
|
|
13045
|
+
}, null, 8, qh), [[te, u.value]])])) : x("", !0),
|
|
13046
|
+
C("div", Jh, [(R(!0), S(m, null, H(f.value, (e) => (R(), S("button", {
|
|
12577
13047
|
key: e.value,
|
|
12578
13048
|
type: "button",
|
|
12579
13049
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -12589,10 +13059,10 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12589
13059
|
size: 18,
|
|
12590
13060
|
class: "shrink-0 text-on-surface-variant"
|
|
12591
13061
|
}, null, 8, ["name"])) : x("", !0),
|
|
12592
|
-
C("span",
|
|
12593
|
-
], 8,
|
|
13062
|
+
C("span", Xh, q(e.label), 1)
|
|
13063
|
+
], 8, Yh))), 128)), f.value.length ? x("", !0) : U(t.$slots, "source-empty", {}, () => [C("p", Zh, q(e.emptyText ?? J(i).noItems), 1)], void 0, 0)])
|
|
12594
13064
|
]),
|
|
12595
|
-
C("div",
|
|
13065
|
+
C("div", Qh, [
|
|
12596
13066
|
E(l, {
|
|
12597
13067
|
icon: "keyboard_double_arrow_right",
|
|
12598
13068
|
label: e.moveAllRightLabel ?? J(i).moveAllRight,
|
|
@@ -12624,15 +13094,15 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12624
13094
|
onClick: T
|
|
12625
13095
|
}, null, 8, ["label", "disabled"])
|
|
12626
13096
|
]),
|
|
12627
|
-
C("div",
|
|
12628
|
-
C("div",
|
|
12629
|
-
e.filterable ? (R(), S("div",
|
|
13097
|
+
C("div", $h, [
|
|
13098
|
+
C("div", eg, [C("span", tg, q(e.targetTitle ?? J(i).selected), 1), C("span", ng, q(p.value.length), 1)]),
|
|
13099
|
+
e.filterable ? (R(), S("div", rg, [ie(C("input", {
|
|
12630
13100
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
12631
13101
|
type: "text",
|
|
12632
13102
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
12633
13103
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant/50"
|
|
12634
|
-
}, null, 8,
|
|
12635
|
-
C("div",
|
|
13104
|
+
}, null, 8, ig), [[te, d.value]])])) : x("", !0),
|
|
13105
|
+
C("div", ag, [(R(!0), S(m, null, H(p.value, (e) => (R(), S("button", {
|
|
12636
13106
|
key: e.value,
|
|
12637
13107
|
type: "button",
|
|
12638
13108
|
class: "flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-on-surface/4",
|
|
@@ -12648,18 +13118,18 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12648
13118
|
size: 18,
|
|
12649
13119
|
class: "shrink-0 text-on-surface-variant"
|
|
12650
13120
|
}, null, 8, ["name"])) : x("", !0),
|
|
12651
|
-
C("span",
|
|
12652
|
-
], 8,
|
|
13121
|
+
C("span", sg, q(e.label), 1)
|
|
13122
|
+
], 8, og))), 128)), p.value.length ? x("", !0) : U(t.$slots, "target-empty", {}, () => [C("p", cg, q(e.emptyText ?? J(i).noItems), 1)], void 0, 0)])
|
|
12653
13123
|
])
|
|
12654
13124
|
]));
|
|
12655
13125
|
}
|
|
12656
|
-
}),
|
|
13126
|
+
}), ug = ["aria-expanded", "aria-selected"], dg = { class: "flex w-6 shrink-0 items-center justify-center" }, fg = ["disabled"], pg = {
|
|
12657
13127
|
key: 2,
|
|
12658
13128
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
12659
|
-
},
|
|
13129
|
+
}, mg = {
|
|
12660
13130
|
key: 0,
|
|
12661
13131
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
12662
|
-
},
|
|
13132
|
+
}, hg = /* @__PURE__ */ D({
|
|
12663
13133
|
__name: "_MTreeNode",
|
|
12664
13134
|
props: {
|
|
12665
13135
|
node: {},
|
|
@@ -12704,7 +13174,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12704
13174
|
]),
|
|
12705
13175
|
onClick: d
|
|
12706
13176
|
}, [
|
|
12707
|
-
C("div",
|
|
13177
|
+
C("div", dg, [i.value ? (R(), S("button", {
|
|
12708
13178
|
key: 0,
|
|
12709
13179
|
type: "button",
|
|
12710
13180
|
class: N(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", a.value ? "rotate-90" : ""]),
|
|
@@ -12713,7 +13183,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12713
13183
|
}, [E(r, {
|
|
12714
13184
|
name: "chevron_right",
|
|
12715
13185
|
size: 16
|
|
12716
|
-
})], 10,
|
|
13186
|
+
})], 10, fg)) : x("", !0)]),
|
|
12717
13187
|
J(n).checkable.value ? (R(), S("div", {
|
|
12718
13188
|
key: 0,
|
|
12719
13189
|
class: "shrink-0",
|
|
@@ -12735,7 +13205,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12735
13205
|
class: N(["shrink-0 transition-colors", o.value ? "text-primary" : "text-on-surface-variant"])
|
|
12736
13206
|
}, null, 8, ["name", "class"])) : x("", !0),
|
|
12737
13207
|
C("span", { class: N(["min-w-0 flex-1 truncate text-body-medium transition-colors", o.value ? "font-medium text-primary" : "text-on-surface"]) }, [U(t.$slots, "label", { node: e.node }, () => [T(q(e.node.label), 1)])], 2),
|
|
12738
|
-
i.value && J(n).checkable.value ? (R(), S("span",
|
|
13208
|
+
i.value && J(n).checkable.value ? (R(), S("span", pg, q(c.value) + "/" + q(s.value.length), 1)) : x("", !0),
|
|
12739
13209
|
U(t.$slots, "trailing", { node: e.node })
|
|
12740
13210
|
], 2), E(g, {
|
|
12741
13211
|
onEnter: h,
|
|
@@ -12743,7 +13213,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12743
13213
|
onLeave: y,
|
|
12744
13214
|
onAfterLeave: D
|
|
12745
13215
|
}, {
|
|
12746
|
-
default: Q(() => [a.value && i.value ? (R(), S("div",
|
|
13216
|
+
default: Q(() => [a.value && i.value ? (R(), S("div", mg, [(R(!0), S(m, null, H(e.node.children, (n) => (R(), b(hg, {
|
|
12747
13217
|
key: n.id,
|
|
12748
13218
|
node: n,
|
|
12749
13219
|
depth: e.depth + 1
|
|
@@ -12752,15 +13222,15 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12752
13222
|
fn: Q((e) => [U(t.$slots, n, j({ ref_for: !0 }, e ?? {}))])
|
|
12753
13223
|
}))]), 1032, ["node", "depth"]))), 128))])) : x("", !0)]),
|
|
12754
13224
|
_: 3
|
|
12755
|
-
})], 8,
|
|
13225
|
+
})], 8, ug));
|
|
12756
13226
|
}
|
|
12757
|
-
}),
|
|
13227
|
+
}), gg = {
|
|
12758
13228
|
role: "tree",
|
|
12759
13229
|
class: "flex flex-col"
|
|
12760
|
-
},
|
|
13230
|
+
}, _g = {
|
|
12761
13231
|
key: 1,
|
|
12762
13232
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
12763
|
-
},
|
|
13233
|
+
}, vg = { class: "text-body-medium" }, yg = /* @__PURE__ */ D({
|
|
12764
13234
|
__name: "MTree",
|
|
12765
13235
|
props: {
|
|
12766
13236
|
nodes: {},
|
|
@@ -12826,26 +13296,26 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12826
13296
|
return t({
|
|
12827
13297
|
expandAll: _,
|
|
12828
13298
|
collapseAll: y
|
|
12829
|
-
}), (t, n) => (R(), S("div",
|
|
13299
|
+
}), (t, n) => (R(), S("div", gg, [e.nodes.length ? (R(!0), S(m, { key: 0 }, H(e.nodes, (e) => (R(), b(hg, {
|
|
12830
13300
|
key: e.id,
|
|
12831
13301
|
node: e,
|
|
12832
13302
|
depth: 0
|
|
12833
13303
|
}, w({ _: 2 }, [H(t.$slots, (e, n) => ({
|
|
12834
13304
|
name: n,
|
|
12835
13305
|
fn: Q((e) => [U(t.$slots, n, j({ ref_for: !0 }, e ?? {}))])
|
|
12836
|
-
}))]), 1032, ["node"]))), 128)) : (R(), S("div",
|
|
13306
|
+
}))]), 1032, ["node"]))), 128)) : (R(), S("div", _g, [E(r, {
|
|
12837
13307
|
name: "account_tree",
|
|
12838
13308
|
size: 32,
|
|
12839
13309
|
class: "opacity-30"
|
|
12840
|
-
}), C("p",
|
|
13310
|
+
}), C("p", vg, q(e.emptyText), 1)]))]));
|
|
12841
13311
|
}
|
|
12842
|
-
}),
|
|
13312
|
+
}), bg = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, xg = {
|
|
12843
13313
|
key: 0,
|
|
12844
13314
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
12845
|
-
},
|
|
13315
|
+
}, Sg = { class: "overflow-x-auto" }, Cg = { class: "w-full border-collapse" }, wg = { class: "bg-surface-container-high" }, Tg = ["onClick"], Eg = ["onClick"], Dg = {
|
|
12846
13316
|
key: 1,
|
|
12847
13317
|
class: "w-6 shrink-0"
|
|
12848
|
-
},
|
|
13318
|
+
}, Og = { key: 0 }, kg = ["colspan"], Ag = /* @__PURE__ */ D({
|
|
12849
13319
|
__name: "MTreeTable",
|
|
12850
13320
|
props: {
|
|
12851
13321
|
columns: {},
|
|
@@ -12900,10 +13370,10 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12900
13370
|
function f(e) {
|
|
12901
13371
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
12902
13372
|
}
|
|
12903
|
-
return (t, n) => (R(), S("div",
|
|
13373
|
+
return (t, n) => (R(), S("div", bg, [t.$slots.toolbar ? (R(), S("div", xg, [U(t.$slots, "toolbar", {
|
|
12904
13374
|
expandAll: u,
|
|
12905
13375
|
collapseAll: d
|
|
12906
|
-
})])) : x("", !0), C("div",
|
|
13376
|
+
})])) : x("", !0), C("div", Sg, [C("table", Cg, [C("thead", null, [C("tr", wg, [(R(!0), S(m, null, H(e.columns, (t, n) => (R(), S("th", {
|
|
12907
13377
|
key: t.key,
|
|
12908
13378
|
style: P(t.width ? { width: t.width } : void 0),
|
|
12909
13379
|
class: N([
|
|
@@ -12934,7 +13404,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12934
13404
|
}, [E(r, {
|
|
12935
13405
|
name: "chevron_right",
|
|
12936
13406
|
size: 18
|
|
12937
|
-
})], 10,
|
|
13407
|
+
})], 10, Eg)) : (R(), S("span", Dg)), U(t.$slots, `cell-${i.key}`, {
|
|
12938
13408
|
row: n.row,
|
|
12939
13409
|
value: n.row[i.key],
|
|
12940
13410
|
depth: n.depth
|
|
@@ -12942,19 +13412,19 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
12942
13412
|
row: n.row,
|
|
12943
13413
|
value: n.row[i.key],
|
|
12944
13414
|
depth: n.depth
|
|
12945
|
-
}, () => [T(q(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10,
|
|
13415
|
+
}, () => [T(q(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10, Tg))), 128)), l.value.length ? x("", !0) : (R(), S("tr", Og, [C("td", {
|
|
12946
13416
|
colspan: e.columns.length,
|
|
12947
13417
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
12948
13418
|
}, [E(r, {
|
|
12949
13419
|
name: "account_tree",
|
|
12950
13420
|
size: 36,
|
|
12951
13421
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
12952
|
-
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8,
|
|
13422
|
+
}), n[0] ||= C("p", { class: "text-body-medium text-on-surface-variant" }, "Sin datos", -1)], 8, kg)]))])])])]));
|
|
12953
13423
|
}
|
|
12954
|
-
}),
|
|
13424
|
+
}), jg = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Mg = { class: "flex bg-surface-container-high" }, Ng = ["onClick"], Pg = { class: "inline-flex items-center gap-1" }, Fg = {
|
|
12955
13425
|
key: 0,
|
|
12956
13426
|
class: "inline-flex"
|
|
12957
|
-
},
|
|
13427
|
+
}, Ig = ["onClick"], Lg = { class: "truncate" }, Rg = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, zg = { class: "text-label-small text-on-surface-variant" }, Bg = /* @__PURE__ */ D({
|
|
12958
13428
|
__name: "MVirtualTable",
|
|
12959
13429
|
props: {
|
|
12960
13430
|
columns: {},
|
|
@@ -13000,8 +13470,8 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13000
13470
|
function y(e) {
|
|
13001
13471
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
13002
13472
|
}
|
|
13003
|
-
return (t, n) => (R(), S("div",
|
|
13004
|
-
C("div",
|
|
13473
|
+
return (t, n) => (R(), S("div", jg, [
|
|
13474
|
+
C("div", Mg, [(R(!0), S(m, null, H(e.columns, (e) => (R(), S("div", {
|
|
13005
13475
|
key: e.key,
|
|
13006
13476
|
style: P({
|
|
13007
13477
|
width: e.width || "auto",
|
|
@@ -13013,7 +13483,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13013
13483
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
13014
13484
|
]),
|
|
13015
13485
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
13016
|
-
}, [C("span",
|
|
13486
|
+
}, [C("span", Pg, [T(q(e.label) + " ", 1), e.sortable ? (R(), S("span", Fg, [c.value === e.key && l.value === "asc" ? (R(), b(r, {
|
|
13017
13487
|
key: 0,
|
|
13018
13488
|
name: "arrow_upward",
|
|
13019
13489
|
size: 14,
|
|
@@ -13028,7 +13498,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13028
13498
|
name: "unfold_more",
|
|
13029
13499
|
size: 14,
|
|
13030
13500
|
class: "opacity-30"
|
|
13031
|
-
}))])) : x("", !0)])], 14,
|
|
13501
|
+
}))])) : x("", !0)])], 14, Ng))), 128))]),
|
|
13032
13502
|
C("div", {
|
|
13033
13503
|
ref_key: "scrollEl",
|
|
13034
13504
|
ref: a,
|
|
@@ -13056,11 +13526,11 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13056
13526
|
}, [U(t.$slots, `cell-${e.key}`, {
|
|
13057
13527
|
row: n,
|
|
13058
13528
|
value: n[e.key]
|
|
13059
|
-
}, () => [C("span",
|
|
13060
|
-
C("div",
|
|
13529
|
+
}, () => [C("span", Lg, q(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, Ig))), 128))], 4)], 36),
|
|
13530
|
+
C("div", Rg, [C("span", zg, [T(q(d.value.length.toLocaleString()) + " filas ", 1), p.value.end - p.value.start < d.value.length ? (R(), S(m, { key: 0 }, [T(" · mostrando " + q(p.value.start + 1) + "–" + q(p.value.end), 1)], 64)) : x("", !0)])])
|
|
13061
13531
|
]));
|
|
13062
13532
|
}
|
|
13063
|
-
}),
|
|
13533
|
+
}), Vg = { class: "text-title-small font-medium text-on-surface truncate flex-1" }, Hg = { class: "flex-1 overflow-auto" }, Ug = ["onMousedown", "onTouchstart"], Wg = 10, Gg = /* @__PURE__ */ D({
|
|
13064
13534
|
__name: "MWindow",
|
|
13065
13535
|
props: {
|
|
13066
13536
|
modelValue: { type: Boolean },
|
|
@@ -13101,7 +13571,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13101
13571
|
"minimize"
|
|
13102
13572
|
],
|
|
13103
13573
|
setup(e, { emit: t }) {
|
|
13104
|
-
let n = e, i = t, a = V(n.x), o = V(n.y), s = V(parseInt(n.width) || 400), c = V(parseInt(n.height) || 300), l = V(!1), u = V(
|
|
13574
|
+
let n = e, i = t, a = V(n.x), o = V(n.y), s = V(parseInt(n.width) || 400), c = V(parseInt(n.height) || 300), l = V(!1), u = V(Wg), d = V(null), f = !1, p = 0, h = 0, g = 0, _ = 0, y = !1, w = "se", T = 0, D = 0, O = 0, k = 0, A = 0, j = 0, F = v(() => ({
|
|
13105
13575
|
left: `${a.value}px`,
|
|
13106
13576
|
top: `${o.value}px`,
|
|
13107
13577
|
width: `${s.value}px`,
|
|
@@ -13109,7 +13579,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13109
13579
|
zIndex: u.value
|
|
13110
13580
|
}));
|
|
13111
13581
|
function z() {
|
|
13112
|
-
|
|
13582
|
+
Wg++, u.value = Wg;
|
|
13113
13583
|
}
|
|
13114
13584
|
function B(e) {
|
|
13115
13585
|
if ("touches" in e) {
|
|
@@ -13235,7 +13705,7 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13235
13705
|
name: e.icon,
|
|
13236
13706
|
size: 18,
|
|
13237
13707
|
class: "text-on-surface-variant"
|
|
13238
|
-
}, null, 8, ["name"])) : x("", !0), C("span",
|
|
13708
|
+
}, null, 8, ["name"])) : x("", !0), C("span", Vg, q(e.title), 1)]),
|
|
13239
13709
|
U(t.$slots, "actions"),
|
|
13240
13710
|
e.minimizable ? (R(), S("button", {
|
|
13241
13711
|
key: 0,
|
|
@@ -13254,17 +13724,17 @@ var Af = /*#__PURE__*/ p(Df, [["render", kf]]), jf = ["disabled"], Mf = ["disabl
|
|
|
13254
13724
|
size: 16
|
|
13255
13725
|
})])) : x("", !0)
|
|
13256
13726
|
], 34),
|
|
13257
|
-
ie(C("div",
|
|
13727
|
+
ie(C("div", Hg, [U(t.$slots, "default")], 512), [[ne, !l.value]]),
|
|
13258
13728
|
e.resizable && !l.value ? (R(), S(m, { key: 0 }, H($, (e) => C("div", {
|
|
13259
13729
|
key: e.dir,
|
|
13260
13730
|
class: N(["absolute", [e.class, e.cursor]]),
|
|
13261
13731
|
onMousedown: (t) => J(t, e.dir),
|
|
13262
13732
|
onTouchstart: (t) => J(t, e.dir)
|
|
13263
|
-
}, null, 42,
|
|
13733
|
+
}, null, 42, Ug)), 64)) : x("", !0)
|
|
13264
13734
|
], 36)) : x("", !0);
|
|
13265
13735
|
}
|
|
13266
13736
|
});
|
|
13267
13737
|
//#endregion
|
|
13268
|
-
export { yt as MAbsolute, Tt as MAlert, Yt as MAppBar, $t as MAppLayout, en as MAspectRatio, Gt as MAutocomplete, tn as MAvatar, an as MBadge, gn as MBar, Sn as MBottomSheet, Cn as MBox, En as MBreadcrumbs, i as MButton, An as MButtonGroup, Hn as MCalendar, Yn as MCard, nr as MCarousel, rr as MCenter, or as MChatBubble, lr as MCheckbox, dr as MChip,
|
|
13738
|
+
export { yt as MAbsolute, Tt as MAlert, Yt as MAppBar, $t as MAppLayout, en as MAspectRatio, Gt as MAutocomplete, tn as MAvatar, an as MBadge, gn as MBar, Sn as MBottomSheet, Cn as MBox, En as MBreadcrumbs, i as MButton, An as MButtonGroup, Hn as MCalendar, Yn as MCard, nr as MCarousel, rr as MCenter, or as MChatBubble, lr as MCheckbox, dr as MChip, cd as MCircleProgressBar, Sr as MColorPicker, Pr as MColorPickerModal, Jr as MCommandPalette, Xr as MConfirmDialog, Zr as MContainer, Qr as MContextMenu, $r as MCopyButton, ki as MDataTable, Bi as MDatePicker, ea as MDatePickerModal, fa as MDateRangePicker, Oa as MDateRangePickerModal, o as MDialog, Ma as MDivider, Ra as MDragDropList, Ba as MEmoji, Ka as MEmojiButton, eo as MEmojiSelector, to as MEmptyState, co as MExpansionPanel, lo as MExportButton, go as MFab, _o as MFabMenu, No as MFileUpload, Po as MFixed, Bo as MFlex, zo as MFooter, Vo as MFullscreen, Ho as MGrid, Jo as MHotkeys, r as MIcon, l as MIconButton, Qo as MInfiniteScroll, ss as MJsonViewer, _s as MKanban, bs as MKbd, As as MLightbox, js as MList, Gs as MListItem, Ks as MListSubheader, tc as MLoadingIndicator, ac as MLoadingOverlay, _c as MMaskField, oc as MMasonry, c as MMenu, uc as MMenuDivider, f as MMenuItem, Bc as MMultiAutocomplete, dl as MMultiSelect, ml as MNavigationBar, ru as MNavigationDrawer, su as MNavigationRail, Sl as MNumberField, lu as MOverlay, du as MPageProgress, ni as MPagination, mu as MPasswordMeter, Su as MPinInput, Uu as MProgressBar, Du as MPullToRefresh, pd as MRadio, gd as MRadioGroup, vd as MRating, Sd as MRelative, wd as MRelativeTime, Td as MResponsive, Md as MResult, Jd as MScheduler, Yd as MScrollable, $d as MSearchBar, af as MSection, cf as MSegmentedButton, Ef as MSelect, jf as MShader, Lf as MSideSheet, zf as MSignaturePad, Vf as MSkeleton, Kf as MSlider, Se as MSnackbar, Xf as MSpacer, s as MSpinner, ep as MSplitButton, tp as MSplitter, vp as MSpotlightSearch, yp as MStack, Op as MStatCard, Wp as MStepper, Gp as MSticky, qp as MSubtitle, Ps as MSwitch, hm as MTable, Mm as MTabs, Cm as MTagInput, Kp as MText, u as MTextField, nh as MTimePicker, bh as MTimePickerModal, Wm as MTimeline, xh as MTitle, Oh as MToolbar, Th as MTooltip, Mh as MTopAppBar, Bh as MTour, lg as MTransferList, yg as MTree, Ag as MTreeTable, Bg as MVirtualTable, Gg as MWindow, Ha as allEmojis, fe as createM3UI, e as defaultLocale, Va as emojiCategories, oe as palettes, Ua as randomEmoji, le as useColorPalette, d as useDebounce, He as useDevice, a as useFieldBg, t as useLocale, lt as useNotification, vt as usePageProgress, ge as useTheme, Le as useToast };
|
|
13269
13739
|
|
|
13270
13740
|
//# sourceMappingURL=m3ui.js.map
|