@m3ui-vue/m3ui-vue 0.9.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +24 -29
  2. package/dist/API.md +179 -19
  3. package/dist/{MTextField-DKtgPymd.js → MTextField-BPbFeI9M.js} +305 -177
  4. package/dist/MTextField-BPbFeI9M.js.map +1 -0
  5. package/dist/api.json +1 -1
  6. package/dist/code-editor.js +1 -1
  7. package/dist/components/MAppBarWithSearch.vue.d.ts +70 -0
  8. package/dist/components/MBottomAppBar.vue.d.ts +37 -0
  9. package/dist/components/MBottomSheetScaffold.vue.d.ts +40 -0
  10. package/dist/components/MChatBubble.vue.d.ts +1 -1
  11. package/dist/components/MChip.vue.d.ts +19 -2
  12. package/dist/components/MContainer.vue.d.ts +1 -1
  13. package/dist/components/MDataTable.vue.d.ts +1 -1
  14. package/dist/components/MDialog.vue.d.ts +1 -1
  15. package/dist/components/MFab.vue.d.ts +13 -4
  16. package/dist/components/MListItem.vue.d.ts +2 -2
  17. package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
  18. package/dist/components/MNavigationDrawer.vue.d.ts +9 -6
  19. package/dist/components/MNavigationRail.vue.d.ts +6 -0
  20. package/dist/components/MSearchBar.vue.d.ts +5 -3
  21. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  22. package/dist/components/MTable.vue.d.ts +1 -1
  23. package/dist/components/MTopAppBar.vue.d.ts +33 -2
  24. package/dist/components/MTransition.vue.d.ts +0 -9
  25. package/dist/composables/_searchAppBar.d.ts +6 -0
  26. package/dist/composables/_springAnimation.d.ts +17 -0
  27. package/dist/composables/_themeTransition.d.ts +2 -0
  28. package/dist/composables/_useSpring.d.ts +3 -5
  29. package/dist/composables/motion.d.ts +101 -0
  30. package/dist/composables/useColorPalette.d.ts +10 -0
  31. package/dist/composables/useLocale.d.ts +3 -0
  32. package/dist/index.d.ts +8 -1
  33. package/dist/locales/index.js +21 -0
  34. package/dist/locales/index.js.map +1 -1
  35. package/dist/m3ui-vue.css +1 -1
  36. package/dist/m3ui.js +7345 -6317
  37. package/dist/m3ui.js.map +1 -1
  38. package/dist/plugin.d.ts +7 -0
  39. package/dist/rich-text-editor.js +2 -2
  40. package/dist/styles/palettes-contrast.css +7764 -0
  41. package/dist/styles/theme.css +46 -2
  42. package/dist/styles.css +1 -1
  43. package/dist/{useLocale-Cn9MVIdw.js → useLocale-CuvWRZ1h.js} +4 -1
  44. package/dist/useLocale-CuvWRZ1h.js.map +1 -0
  45. package/package.json +3 -1
  46. package/src/__tests__/MAppBarWithSearch.test.ts +108 -0
  47. package/src/__tests__/MBottomAppBar.test.ts +71 -0
  48. package/src/__tests__/MBottomSheetScaffold.test.ts +122 -0
  49. package/src/__tests__/MChip.test.ts +63 -0
  50. package/src/__tests__/MFab.test.ts +36 -0
  51. package/src/__tests__/MNavigationDrawer.test.ts +185 -0
  52. package/src/__tests__/MNavigationRail.test.ts +93 -0
  53. package/src/__tests__/MPullToRefresh.test.ts +18 -1
  54. package/src/__tests__/MTopAppBar.test.ts +99 -0
  55. package/src/__tests__/MTransition.test.ts +12 -0
  56. package/src/__tests__/contrast.test.ts +64 -0
  57. package/src/__tests__/dynamicColor.test.ts +17 -0
  58. package/src/__tests__/motion.test.ts +37 -0
  59. package/src/__tests__/sheets.test.ts +19 -15
  60. package/src/__tests__/themeTransition.test.ts +119 -0
  61. package/src/components/MAppBarWithSearch.vue +236 -0
  62. package/src/components/MBottomAppBar.vue +181 -0
  63. package/src/components/MBottomSheetScaffold.vue +317 -0
  64. package/src/components/MBreadcrumbs.vue +1 -1
  65. package/src/components/MChip.vue +137 -5
  66. package/src/components/MContextMenu.vue +34 -33
  67. package/src/components/MFab.vue +73 -12
  68. package/src/components/MMenu.vue +34 -33
  69. package/src/components/MNavigationDrawer.vue +298 -38
  70. package/src/components/MNavigationRail.vue +189 -8
  71. package/src/components/MPullToRefresh.vue +18 -0
  72. package/src/components/MSearchBar.vue +29 -12
  73. package/src/components/MTopAppBar.vue +252 -28
  74. package/src/components/MTransition.vue +36 -41
  75. package/src/composables/_searchAppBar.ts +9 -0
  76. package/src/composables/_springAnimation.ts +74 -0
  77. package/src/composables/_themeColor.ts +11 -4
  78. package/src/composables/_themeTransition.ts +71 -0
  79. package/src/composables/_useSheetMotion.ts +101 -88
  80. package/src/composables/_useSpring.ts +11 -21
  81. package/src/composables/motion.ts +73 -0
  82. package/src/composables/useColorPalette.ts +103 -20
  83. package/src/composables/useLocale.ts +6 -0
  84. package/src/composables/useTheme.ts +4 -12
  85. package/src/index.ts +8 -1
  86. package/src/locales/de.ts +3 -0
  87. package/src/locales/es.ts +3 -0
  88. package/src/locales/fr.ts +3 -0
  89. package/src/locales/ja.ts +3 -0
  90. package/src/locales/ko.ts +3 -0
  91. package/src/locales/pt.ts +3 -0
  92. package/src/locales/zh.ts +3 -0
  93. package/src/plugin.ts +9 -1
  94. package/src/styles/palettes-contrast.css +7764 -0
  95. package/src/styles/theme.css +46 -2
  96. package/dist/MTextField-DKtgPymd.js.map +0 -1
  97. package/dist/useLocale-Cn9MVIdw.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { i as e } from "./useLocale-Cn9MVIdw.js";
1
+ import { i as e } from "./useLocale-CuvWRZ1h.js";
2
2
  import { t } from "./MIcon-DLOkQduI.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { Fragment as r, Teleport as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useId as A, useSlots as j, watch as ee, withCtx as M, withDirectives as N, withModifiers as P } from "vue";
@@ -32,14 +32,14 @@ var I = /* @__PURE__ */ new WeakMap(), L = {
32
32
  let t = I.get(e);
33
33
  t && e.removeEventListener("pointerdown", t.onPointerDown), I.delete(e);
34
34
  }
35
- }, R = ["aria-label"], z = {
35
+ }, R = ["aria-label"], ne = {
36
36
  key: 0,
37
37
  class: "block h-full w-full animate-spin rounded-full border-2 border-current border-t-transparent"
38
- }, B = [
38
+ }, z = [
39
39
  "width",
40
40
  "height",
41
41
  "viewBox"
42
- ], V = ["d", "stroke-dasharray"], H = 3, U = 9, W = /* @__PURE__ */ p({
42
+ ], B = ["d", "stroke-dasharray"], V = 3, H = 9, U = /* @__PURE__ */ p({
43
43
  __name: "MSpinner",
44
44
  props: {
45
45
  size: { default: 20 },
@@ -50,10 +50,10 @@ var I = /* @__PURE__ */ new WeakMap(), L = {
50
50
  label: {}
51
51
  },
52
52
  setup(t) {
53
- let n = t, r = e(), i = o(() => (n.size / 2 - 1 - H / 2) / 1.25), a = o(() => n.size / 2), s = o(() => {
53
+ let n = t, r = e(), i = o(() => (n.size / 2 - 1 - V / 2) / 1.25), a = o(() => n.size / 2), s = o(() => {
54
54
  let e = a.value, t = i.value, n = t * .08, r = [], o = 0, s = 0, c = 0;
55
55
  for (let i = 0; i <= 216; i++) {
56
- let a = 2 * Math.PI * i / 216 - Math.PI / 2, l = t + n * Math.sin(U * a), u = e + l * Math.cos(a), d = e + l * Math.sin(a);
56
+ let a = 2 * Math.PI * i / 216 - Math.PI / 2, l = t + n * Math.sin(H * a), u = e + l * Math.cos(a), d = e + l * Math.sin(a);
57
57
  i > 0 && (o += Math.sqrt((u - s) ** 2 + (d - c) ** 2)), r.push(`${i === 0 ? "M" : "L"}${u.toFixed(2)},${d.toFixed(2)}`), s = u, c = d;
58
58
  }
59
59
  let l = o * .58, u = o - l, d = `${l.toFixed(1)} ${u.toFixed(1)}`;
@@ -82,14 +82,14 @@ var I = /* @__PURE__ */ new WeakMap(), L = {
82
82
  }, [u("path", {
83
83
  d: s.value.path,
84
84
  stroke: "currentColor",
85
- "stroke-width": H,
85
+ "stroke-width": V,
86
86
  "stroke-linecap": "round",
87
87
  "stroke-dasharray": s.value.dash,
88
88
  class: "animate-[m3-wavy-travel_2s_linear_infinite]",
89
89
  style: v({ "--m3-wave-len": s.value.len })
90
- }, null, 12, V)], 12, B)) : (S(), l("span", z))], 12, R));
90
+ }, null, 12, B)], 12, z)) : (S(), l("span", ne))], 12, R));
91
91
  }
92
- }), ne = [
92
+ }), re = [
93
93
  "bg-surface-container-highest",
94
94
  "bg-surface-container-high",
95
95
  "bg-surface-container-low",
@@ -116,8 +116,8 @@ var I = /* @__PURE__ */ new WeakMap(), L = {
116
116
  "bg-tertiary",
117
117
  "bg-error"
118
118
  ];
119
- function re(e) {
120
- for (let t of ne) if (e.classList.contains(t)) return `var(--color-${t.slice(3)})`;
119
+ function W(e) {
120
+ for (let t of re) if (e.classList.contains(t)) return `var(--color-${t.slice(3)})`;
121
121
  return null;
122
122
  }
123
123
  function G(e) {
@@ -137,7 +137,7 @@ function K(e, t) {
137
137
  function i() {
138
138
  let t = e.value?.parentElement ?? null;
139
139
  for (; t;) {
140
- let e = re(t);
140
+ let e = W(t);
141
141
  if (e) {
142
142
  r(e);
143
143
  return;
@@ -185,18 +185,156 @@ function q(e, t) {
185
185
  };
186
186
  }
187
187
  //#endregion
188
- //#region src/composables/_useSpring.ts
188
+ //#region src/composables/motion.ts
189
189
  var J = {
190
- dampingRatio: .9,
191
- stiffness: 1400
190
+ standard: {
191
+ fastSpatial: {
192
+ dampingRatio: .9,
193
+ stiffness: 1400
194
+ },
195
+ defaultSpatial: {
196
+ dampingRatio: .9,
197
+ stiffness: 700
198
+ },
199
+ slowSpatial: {
200
+ dampingRatio: .9,
201
+ stiffness: 300
202
+ },
203
+ fastEffects: {
204
+ dampingRatio: 1,
205
+ stiffness: 3800
206
+ },
207
+ defaultEffects: {
208
+ dampingRatio: 1,
209
+ stiffness: 1600
210
+ },
211
+ slowEffects: {
212
+ dampingRatio: 1,
213
+ stiffness: 800
214
+ }
215
+ },
216
+ expressive: {
217
+ fastSpatial: {
218
+ dampingRatio: .6,
219
+ stiffness: 800
220
+ },
221
+ defaultSpatial: {
222
+ dampingRatio: .8,
223
+ stiffness: 380
224
+ },
225
+ slowSpatial: {
226
+ dampingRatio: .8,
227
+ stiffness: 200
228
+ },
229
+ fastEffects: {
230
+ dampingRatio: 1,
231
+ stiffness: 3800
232
+ },
233
+ defaultEffects: {
234
+ dampingRatio: 1,
235
+ stiffness: 1600
236
+ },
237
+ slowEffects: {
238
+ dampingRatio: 1,
239
+ stiffness: 800
240
+ }
241
+ }
192
242
  }, Y = {
193
- dampingRatio: 1,
194
- stiffness: 3800
243
+ emphasized: [
244
+ .2,
245
+ 0,
246
+ 0,
247
+ 1
248
+ ],
249
+ emphasizedDecelerate: [
250
+ .05,
251
+ .7,
252
+ .1,
253
+ 1
254
+ ],
255
+ emphasizedAccelerate: [
256
+ .3,
257
+ 0,
258
+ .8,
259
+ .15
260
+ ],
261
+ standard: [
262
+ .2,
263
+ 0,
264
+ 0,
265
+ 1
266
+ ],
267
+ standardDecelerate: [
268
+ 0,
269
+ 0,
270
+ 0,
271
+ 1
272
+ ],
273
+ standardAccelerate: [
274
+ .3,
275
+ 0,
276
+ 1,
277
+ 1
278
+ ],
279
+ legacy: [
280
+ .4,
281
+ 0,
282
+ .2,
283
+ 1
284
+ ],
285
+ legacyDecelerate: [
286
+ 0,
287
+ 0,
288
+ .2,
289
+ 1
290
+ ],
291
+ legacyAccelerate: [
292
+ .4,
293
+ 0,
294
+ 1,
295
+ 1
296
+ ],
297
+ linear: [
298
+ 0,
299
+ 0,
300
+ 1,
301
+ 1
302
+ ]
195
303
  }, X = {
196
- dampingRatio: 1,
197
- stiffness: 1600
198
- }, ie = .004;
199
- function Z(e, t, n = J) {
304
+ short1: 50,
305
+ short2: 100,
306
+ short3: 150,
307
+ short4: 200,
308
+ medium1: 250,
309
+ medium2: 300,
310
+ medium3: 350,
311
+ medium4: 400,
312
+ long1: 450,
313
+ long2: 500,
314
+ long3: 550,
315
+ long4: 600,
316
+ extraLong1: 700,
317
+ extraLong2: 800,
318
+ extraLong3: 900,
319
+ extraLong4: 1e3
320
+ };
321
+ function ie(e, t, n, r) {
322
+ return (i) => {
323
+ if (i <= 0) return 0;
324
+ if (i >= 1) return 1;
325
+ let a = i;
326
+ for (let t = 0; t < 8; t++) {
327
+ let t = 3 * a * (1 - a) ** 2 * e + 3 * a ** 2 * (1 - a) * n + a ** 3 - i, r = 3 * (1 - a) ** 2 * e + 6 * a * (1 - a) * (n - e) + 3 * a ** 2 * (1 - n);
328
+ if (Math.abs(r) < 1e-6) break;
329
+ a -= t / r;
330
+ }
331
+ return 3 * a * (1 - a) ** 2 * t + 3 * a ** 2 * (1 - a) * r + a ** 3;
332
+ };
333
+ }
334
+ //#endregion
335
+ //#region src/composables/_useSpring.ts
336
+ var ae = J.standard.fastSpatial, oe = J.standard.fastEffects, se = J.standard.defaultEffects, ce = J.standard.defaultSpatial, Z = .004;
337
+ function Q(e, t, n = ae) {
200
338
  let r = [...e()], i = r.map(() => 0), a = 0, o = 0;
201
339
  function s(c) {
202
340
  let l = Math.min((c - o) / 1e3, 1 / 30);
@@ -205,7 +343,7 @@ function Z(e, t, n = J) {
205
343
  u.length !== r.length && (r = [...u], i = u.map(() => 0));
206
344
  let d = n.stiffness, f = 2 * n.dampingRatio * Math.sqrt(d);
207
345
  for (; l > 0;) {
208
- let e = Math.min(l, ie);
346
+ let e = Math.min(l, Z);
209
347
  l -= e;
210
348
  for (let t = 0; t < u.length; t++) i[t] += (-d * (r[t] - u[t]) - f * i[t]) * e, r[t] += i[t] * e;
211
349
  }
@@ -220,20 +358,7 @@ function Z(e, t, n = J) {
220
358
  }
221
359
  return ee(() => e().join(","), c), b(() => t(r)), x(() => cancelAnimationFrame(a)), { snap: l };
222
360
  }
223
- function ae(e) {
224
- if (e <= 0) return 0;
225
- if (e >= 1) return 1;
226
- let t = e;
227
- for (let n = 0; n < 8; n++) {
228
- let n = 3 * t * (1 - t) ** 2 * .4 + 3 * t ** 2 * (1 - t) * .2 + t ** 3 - e, r = 3 * (1 - t) ** 2 * .4 + 6 * t * (1 - t) * -.2 + 3 * t ** 2 * .8;
229
- if (Math.abs(r) < 1e-6) break;
230
- t -= n / r;
231
- }
232
- return 3 * t ** 2 * (1 - t) + t ** 3;
233
- }
234
- //#endregion
235
- //#region src/components/MIconButton.vue?vue&type=script&setup=true&lang.ts
236
- var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hidden transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:text-on-surface/38 before:content-[''] 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]", se = /* @__PURE__ */ p({
361
+ var le = ie(.4, 0, .2, 1), ue = "relative inline-flex shrink-0 items-center justify-center overflow-hidden transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:text-on-surface/38 before:content-[''] 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]", de = /* @__PURE__ */ p({
237
362
  __name: "MIconButton",
238
363
  props: {
239
364
  icon: {},
@@ -308,9 +433,9 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
308
433
  let e = u.value, t = e.px / 2;
309
434
  return p.value ? e.pressed : r.checked ? r.shape === "squared" ? t : e.checkedRound : r.shape === "squared" ? e.square : t;
310
435
  }
311
- Z(() => a.value ? [m()] : [], (e) => {
436
+ Q(() => a.value ? [m()] : [], (e) => {
312
437
  d.value instanceof HTMLElement && (d.value.style.borderRadius = e.length ? `${e[0]}px` : "");
313
- }, X);
438
+ }, se);
314
439
  function h() {
315
440
  a.value && !r.disabled && (p.value = !0);
316
441
  }
@@ -353,7 +478,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
353
478
  "aria-pressed": a.value ? e.checked : void 0,
354
479
  disabled: e.disabled,
355
480
  class: _([
356
- oe,
481
+ ue,
357
482
  x.value,
358
483
  T.value,
359
484
  b.value
@@ -391,7 +516,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
391
516
  color: e.rippleColor
392
517
  }]]);
393
518
  }
394
- }), Q = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] 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]", ce = /* @__PURE__ */ p({
519
+ }), fe = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] 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]", pe = /* @__PURE__ */ p({
395
520
  __name: "MButton",
396
521
  props: {
397
522
  variant: { default: "filled" },
@@ -495,7 +620,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
495
620
  type: e.to ? void 0 : e.type,
496
621
  disabled: e.disabled || e.loading,
497
622
  class: _([
498
- Q,
623
+ fe,
499
624
  C.value,
500
625
  g.value,
501
626
  x.value,
@@ -505,7 +630,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
505
630
  style: v(d.value)
506
631
  }, {
507
632
  default: M(() => [
508
- e.iconPos === "leading" ? (S(), l(r, { key: 0 }, [e.loading ? (S(), s(W, {
633
+ e.iconPos === "leading" ? (S(), l(r, { key: 0 }, [e.loading ? (S(), s(U, {
509
634
  key: 0,
510
635
  size: b.value
511
636
  }, null, 8, ["size"])) : e.icon ? (S(), s(t, {
@@ -514,7 +639,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
514
639
  size: y.value
515
640
  }, null, 8, ["name", "size"])) : c("", !0)], 64)) : c("", !0),
516
641
  E(n.$slots, "default"),
517
- e.iconPos === "trailing" ? (S(), l(r, { key: 1 }, [e.loading ? (S(), s(W, {
642
+ e.iconPos === "trailing" ? (S(), l(r, { key: 1 }, [e.loading ? (S(), s(U, {
518
643
  key: 0,
519
644
  size: b.value
520
645
  }, null, 8, ["size"])) : e.icon ? (S(), s(t, {
@@ -535,25 +660,25 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
535
660
  color: e.rippleColor
536
661
  }]]);
537
662
  }
538
- }), le = { class: "relative px-6 pt-6 pb-2" }, ue = {
663
+ }), me = { class: "relative px-6 pt-6 pb-2" }, he = {
539
664
  key: 0,
540
665
  class: "absolute right-4 top-4"
541
- }, de = {
666
+ }, ge = {
542
667
  key: 1,
543
668
  class: "mb-4 flex justify-center text-secondary"
544
- }, fe = {
669
+ }, _e = {
545
670
  key: 0,
546
671
  class: "shrink-0 border-t border-outline-variant"
547
- }, pe = {
672
+ }, ve = {
548
673
  key: 1,
549
674
  class: "flex flex-wrap justify-end gap-2 px-6 pt-4 pb-6"
550
- }, me = {
675
+ }, ye = {
551
676
  key: 0,
552
677
  class: "dialog-fs fixed inset-0 z-50 flex flex-col bg-surface"
553
- }, he = { class: "flex h-14 shrink-0 items-center gap-2 px-2" }, ge = { class: "flex-1 text-title-large font-medium text-on-surface" }, _e = {
678
+ }, be = { class: "flex h-14 shrink-0 items-center gap-2 px-2" }, xe = { class: "flex-1 text-title-large font-medium text-on-surface" }, Se = {
554
679
  key: 1,
555
680
  class: "flex items-center gap-2"
556
- }, ve = { class: "flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant" }, ye = /*#__PURE__*/ n(/* @__PURE__ */ p({
681
+ }, Ce = { class: "flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant" }, we = /*#__PURE__*/ n(/* @__PURE__ */ p({
557
682
  __name: "MDialog",
558
683
  props: {
559
684
  modelValue: { type: Boolean },
@@ -604,16 +729,16 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
604
729
  name: "m3-dialog-fs",
605
730
  appear: ""
606
731
  }, {
607
- default: M(() => [t.modelValue ? (S(), l("div", me, [u("div", he, [
608
- t.persistent ? c("", !0) : (S(), s(se, {
732
+ default: M(() => [t.modelValue ? (S(), l("div", ye, [u("div", be, [
733
+ t.persistent ? c("", !0) : (S(), s(de, {
609
734
  key: 0,
610
735
  icon: "close",
611
736
  label: t.closeLabel ?? k(p).close,
612
737
  onClick: C
613
738
  }, null, 8, ["label"])),
614
- u("h2", ge, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)]),
615
- e.$slots.actions ? (S(), l("div", _e, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
616
- ]), u("div", ve, [E(e.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
739
+ u("h2", xe, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)]),
740
+ e.$slots.actions ? (S(), l("div", Se, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
741
+ ]), u("div", Ce, [E(e.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
617
742
  _: 3
618
743
  })) : (S(), s(a, {
619
744
  key: 0,
@@ -628,13 +753,13 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
628
753
  class: _(["dialog-box flex min-w-[280px] w-full flex-col rounded-xl bg-surface-container-high shadow-elevation-3", h.value]),
629
754
  style: v(y.value)
630
755
  }, [
631
- u("div", le, [
632
- t.closable && !t.persistent ? (S(), l("div", ue, [f(se, {
756
+ u("div", me, [
757
+ t.closable && !t.persistent ? (S(), l("div", he, [f(de, {
633
758
  icon: "close",
634
759
  label: t.closeLabel ?? k(p).close,
635
760
  onClick: C
636
761
  }, null, 8, ["label"])])) : c("", !0),
637
- e.$slots.icon ? (S(), l("div", de, [E(e.$slots, "icon", {}, void 0, !0)])) : c("", !0),
762
+ e.$slots.icon ? (S(), l("div", ge, [E(e.$slots, "icon", {}, void 0, !0)])) : c("", !0),
638
763
  u("h2", { class: _(["text-headline-small text-on-surface", [e.$slots.icon ? "text-center" : "text-left", t.closable && !t.persistent ? e.$slots.icon ? "px-10" : "pr-10" : ""]]) }, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)], 2)
639
764
  ]),
640
765
  u("div", {
@@ -646,25 +771,25 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
646
771
  ref_key: "contentInnerEl",
647
772
  ref: A
648
773
  }, [E(e.$slots, "default", {}, void 0, !0)], 512)], 34),
649
- j.value && e.$slots.actions ? (S(), l("div", fe)) : c("", !0),
650
- e.$slots.actions ? (S(), l("div", pe, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
774
+ j.value && e.$slots.actions ? (S(), l("div", _e)) : c("", !0),
775
+ e.$slots.actions ? (S(), l("div", ve, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
651
776
  ], 6)])) : c("", !0)]),
652
777
  _: 3
653
778
  }))]));
654
779
  }
655
- }), [["__scopeId", "data-v-0aac9ebd"]]), be = { class: "my-1 border-outline-variant" }, xe = /* @__PURE__ */ p({
780
+ }), [["__scopeId", "data-v-0aac9ebd"]]), Te = { class: "my-1 border-outline-variant" }, Ee = /* @__PURE__ */ p({
656
781
  __name: "MMenuDivider",
657
782
  props: { gap: {
658
783
  type: Boolean,
659
784
  default: !1
660
785
  } },
661
786
  setup(e) {
662
- return (e, t) => (S(), l("hr", be));
787
+ return (e, t) => (S(), l("hr", Te));
663
788
  }
664
- }), Se = { class: "flex-1 truncate" }, Ce = { key: "root" }, we = {
789
+ }), De = { class: "flex-1 truncate" }, Oe = { key: "root" }, ke = {
665
790
  key: 0,
666
791
  class: "flex flex-col gap-1 px-1.5"
667
- }, Te = { class: "overflow-hidden rounded-lg bg-surface-container" }, Ee = 220, $ = 1 / 240, De = /* @__PURE__ */ p({
792
+ }, Ae = { class: "overflow-hidden rounded-lg bg-surface-container" }, je = 220, $ = 1 / 240, Me = /* @__PURE__ */ p({
668
793
  inheritAttrs: !1,
669
794
  __name: "MMenu",
670
795
  props: {
@@ -680,13 +805,13 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
680
805
  return t;
681
806
  }
682
807
  function O(e) {
683
- if (e.type !== xe) return !1;
808
+ if (e.type !== Ee) return !1;
684
809
  let t = e.props?.gap;
685
810
  return t === "" || t === !0 || t === "true";
686
811
  }
687
812
  let k = o(() => {
688
813
  if (d.variant !== "expressive") return null;
689
- let e = y(p.default?.({ close: Q }) ?? []), t = [[]];
814
+ let e = y(p.default?.({ close: Z }) ?? []), t = [[]];
690
815
  for (let n of e) O(n) ? t.push([]) : t[t.length - 1].push(n);
691
816
  return t.filter((e) => e.length > 0);
692
817
  }), A = o(() => !!k.value && k.value.length > 1), N = w([]), P = o(() => N.value[N.value.length - 1]), F = w("forward");
@@ -698,7 +823,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
698
823
  transform: "translateX(0%)",
699
824
  opacity: 1
700
825
  }], {
701
- duration: Ee,
826
+ duration: je,
702
827
  easing: "cubic-bezier(0.05,0.7,0.1,1)"
703
828
  });
704
829
  r.onfinish = t;
@@ -713,7 +838,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
713
838
  transform: `translateX(${n * 100}%)`,
714
839
  opacity: .4
715
840
  }], {
716
- duration: Ee,
841
+ duration: je,
717
842
  easing: "cubic-bezier(0.3,0,0.8,0.15)"
718
843
  });
719
844
  i.onfinish = t;
@@ -731,40 +856,43 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
731
856
  alpha: 1
732
857
  }), L = e, e;
733
858
  }
734
- let z = 0, B = null, V = null;
735
- function H(e, t, n) {
736
- B?.();
737
- let r = e, i = R(), a = i.length - 1, o = n ? 1 : -1, s = n ? a : 0, c = 0, l = 0, u = !1;
738
- function d(e) {
739
- let t = i[Math.round(Math.max(0, Math.min(a, e)))];
740
- r.style.transform = `scale(${t.scale})`, r.style.opacity = String(Math.min(1, Math.max(0, t.alpha)));
741
- }
742
- function f(e) {
743
- if (u) return;
744
- let r = c ? (e - c) / 1e3 / $ : 1;
745
- if (c = e, z = Math.max(0, Math.min(a, z + o * r)), d(z), n && z >= s || !n && z <= s) {
746
- B = null, V = null, t();
747
- return;
748
- }
749
- l = requestAnimationFrame(f);
859
+ let ne = 0, z = null, B = null;
860
+ function V(e, t, n) {
861
+ z?.();
862
+ let r = e, i = R(), a = i.length - 1, o = Math.round(Math.max(0, Math.min(a, ne))), s = n ? a : 0, c = n ? 1 : -1, l = [];
863
+ for (let e = o; n ? e <= s : e >= s; e += c) l.push(i[e]);
864
+ let u = (e) => ({
865
+ transform: `scale(${e.scale})`,
866
+ opacity: String(Math.min(1, Math.max(0, e.alpha)))
867
+ });
868
+ Object.assign(r.style, u(i[s]));
869
+ let d = !1;
870
+ function f() {
871
+ d || (d = !0, ne = s, z = null, B = null, t());
750
872
  }
751
- B = () => {
752
- u = !0, cancelAnimationFrame(l);
753
- }, V = n ? null : () => {
754
- B?.(), B = null, V = null, t();
755
- }, d(z), l = requestAnimationFrame(f);
873
+ if (l.length < 2 || typeof r.animate != "function") return f();
874
+ let p = r.animate(l.map(u), {
875
+ duration: (l.length - 1) * $ * 1e3,
876
+ easing: "linear"
877
+ });
878
+ p.finished.catch(() => {}), p.onfinish = f, z = () => {
879
+ let e = Number(p.currentTime ?? 0) / ($ * 1e3);
880
+ ne = Math.max(0, Math.min(a, o + c * e)), d = !0, p.cancel();
881
+ }, B = n ? null : () => {
882
+ z?.(), z = null, B = null, t();
883
+ };
756
884
  }
757
- function U(e, t) {
758
- H(e, t, !0);
885
+ function H(e, t) {
886
+ V(e, t, !0);
759
887
  }
760
- function W(e, t) {
761
- H(e, t, !1);
888
+ function U(e, t) {
889
+ V(e, t, !1);
762
890
  }
763
- function ne(e) {
764
- F.value = "forward", N.value.push(e), g(() => ae());
891
+ function re(e) {
892
+ F.value = "forward", N.value.push(e), g(() => oe());
765
893
  }
766
- function re() {
767
- F.value = "backward", N.value.pop(), g(() => ae());
894
+ function W() {
895
+ F.value = "backward", N.value.pop(), g(() => oe());
768
896
  }
769
897
  let G = w(!1), K = w(null), q = w(null), J = w({}), Y = m("m-menu-panel-registry", /* @__PURE__ */ new Set());
770
898
  C("m-menu-panel-registry", Y), ee(q, (e, t) => {
@@ -779,55 +907,55 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
779
907
  let e = K.value.getBoundingClientRect(), t = window.innerHeight - e.bottom - 8, n = t < 200 && e.top > t, r = { maxHeight: `${Math.min(n ? e.top - 12 : t, 400)}px` };
780
908
  n ? r.bottom = `${window.innerHeight - e.top + 4}px` : r.top = `${e.bottom + 4}px`, d.align === "right" ? r.right = `${window.innerWidth - e.right}px` : r.left = `${e.left}px`, J.value = r;
781
909
  }
782
- function Z() {
910
+ function ae() {
783
911
  return q.value ? Array.from(q.value.querySelectorAll("button:not(:disabled), a[href]")) : [];
784
912
  }
785
- function ae() {
786
- g(() => Z()[0]?.focus());
913
+ function oe() {
914
+ g(() => ae()[0]?.focus());
787
915
  }
788
- function oe(e) {
789
- let t = Z();
916
+ function se(e) {
917
+ let t = ae();
790
918
  if (!t.length) return;
791
919
  let n = t.indexOf(document.activeElement);
792
920
  (n === -1 ? e === 1 ? t[0] : t[t.length - 1] : t[(n + e + t.length) % t.length])?.focus();
793
921
  }
794
- function se() {
795
- G.value ? X?.current === Q && (X.current = null) : (X && X.current && X.current !== Q && X.current(), X && (X.current = Q), ie(), N.value = []), G.value = !G.value, G.value && ae();
922
+ function ce() {
923
+ G.value ? X?.current === Z && (X.current = null) : (X && X.current && X.current !== Z && X.current(), X && (X.current = Z), ie(), N.value = []), G.value = !G.value, G.value && oe();
796
924
  }
797
- function Q() {
798
- X?.current === Q && (X.current = null), G.value = !1;
925
+ function Z() {
926
+ X?.current === Z && (X.current = null), G.value = !1;
799
927
  }
800
- C("m-menu-close", Q), C("m-menu-nav", {
928
+ C("m-menu-close", Z), C("m-menu-nav", {
801
929
  mode: d.submenuMode,
802
- push: ne
930
+ push: re
803
931
  }), n({
804
- close: Q,
932
+ close: Z,
805
933
  open: G
806
934
  });
807
- function ce(e) {
935
+ function Q(e) {
808
936
  let t = e.target;
809
937
  if (!K.value?.contains(t)) {
810
938
  for (let e of Y) if (e.contains(t)) return;
811
- t.closest?.(".m3-submenu") || Q();
939
+ t.closest?.(".m3-submenu") || Z();
812
940
  }
813
941
  }
814
942
  function le(e) {
815
943
  if (!G.value) return;
816
944
  let t = e.target;
817
945
  for (let e of Y) if (e.contains(t)) return;
818
- t.closest?.(".m3-submenu") || Q();
946
+ t.closest?.(".m3-submenu") || Z();
819
947
  }
820
948
  function ue(e) {
821
949
  if (e.key === "Escape") {
822
- N.value.length ? re() : Q();
950
+ N.value.length ? W() : Z();
823
951
  return;
824
952
  }
825
- G.value && (e.key === "ArrowDown" ? (e.preventDefault(), oe(1)) : e.key === "ArrowUp" && (e.preventDefault(), oe(-1)));
953
+ G.value && (e.key === "ArrowDown" ? (e.preventDefault(), se(1)) : e.key === "ArrowUp" && (e.preventDefault(), se(-1)));
826
954
  }
827
955
  b(() => {
828
- document.addEventListener("mousedown", ce), document.addEventListener("keydown", ue), window.addEventListener("scroll", le, !0);
956
+ document.addEventListener("mousedown", Q), document.addEventListener("keydown", ue), window.addEventListener("scroll", le, !0);
829
957
  }), x(() => {
830
- document.removeEventListener("mousedown", ce), document.removeEventListener("keydown", ue), window.removeEventListener("scroll", le, !0), V ? V() : B?.();
958
+ document.removeEventListener("mousedown", Q), document.removeEventListener("keydown", ue), window.removeEventListener("scroll", le, !0), B ? B() : z?.();
831
959
  });
832
960
  let de = o(() => d.align === "right" ? "top right" : "top left");
833
961
  return (n, o) => (S(), l(r, null, [u("div", h({
@@ -835,11 +963,11 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
835
963
  ref: K
836
964
  }, n.$attrs, {
837
965
  class: "inline-block",
838
- onClick: se
966
+ onClick: ce
839
967
  }), [E(n.$slots, "trigger", { open: G.value })], 16), (S(), s(i, { to: "body" }, [f(a, {
840
968
  css: !1,
841
- onEnter: U,
842
- onLeave: W
969
+ onEnter: H,
970
+ onLeave: U
843
971
  }, {
844
972
  default: M(() => [G.value ? (S(), l("div", {
845
973
  key: 0,
@@ -861,7 +989,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
861
989
  default: M(() => [P.value ? (S(), l("div", { key: N.value.length }, [u("button", {
862
990
  type: "button",
863
991
  class: "flex w-full items-center gap-3 border-b border-outline-variant px-4 py-2.5 text-left text-body-large text-on-surface outline-none transition-colors hover:bg-on-surface/8 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
864
- onClick: re
992
+ onClick: W
865
993
  }, [
866
994
  f(t, {
867
995
  name: "chevron_left",
@@ -874,20 +1002,20 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
874
1002
  size: 20,
875
1003
  class: "shrink-0 text-on-surface-variant"
876
1004
  }, null, 8, ["name"])) : c("", !0),
877
- u("span", Se, [(S(), s(D(() => P.value?.header?.())))])
878
- ]), (S(), s(D(() => P.value?.content?.())))])) : (S(), l("div", Ce, [A.value ? (S(), l("div", we, [(S(!0), l(r, null, T(k.value, (e, t) => (S(), l("div", {
1005
+ u("span", De, [(S(), s(D(() => P.value?.header?.())))])
1006
+ ]), (S(), s(D(() => P.value?.content?.())))])) : (S(), l("div", Oe, [A.value ? (S(), l("div", ke, [(S(!0), l(r, null, T(k.value, (e, t) => (S(), l("div", {
879
1007
  key: t,
880
1008
  class: "rounded-lg shadow-elevation-2"
881
- }, [u("div", Te, [(S(), s(D(() => e)))])]))), 128))])) : E(n.$slots, "default", { close: Q }, void 0, void 0, 1)]))]),
1009
+ }, [u("div", Ae, [(S(), s(D(() => e)))])]))), 128))])) : E(n.$slots, "default", { close: Z }, void 0, void 0, 1)]))]),
882
1010
  _: 3
883
1011
  })], 4)], 2)], 6)) : c("", !0)]),
884
1012
  _: 3
885
1013
  })]))], 64));
886
1014
  }
887
- }), Oe = ["data-m3-menu-choice"], ke = { class: "flex-1" }, Ae = {
1015
+ }), Ne = ["data-m3-menu-choice"], Pe = { class: "flex-1" }, Fe = {
888
1016
  key: 2,
889
1017
  class: "ml-4 shrink-0 text-label-small text-on-surface-variant opacity-60"
890
- }, je = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, Me = 32, Ne = /* @__PURE__ */ p({
1018
+ }, Ie = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, Le = 32, Re = /* @__PURE__ */ p({
891
1019
  __name: "MMenuItem",
892
1020
  props: {
893
1021
  icon: {},
@@ -919,7 +1047,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
919
1047
  setup(e, { emit: n }) {
920
1048
  let r = e, d = n, p = o(() => r.checked !== void 0), h = o(() => p.value || r.selected !== void 0), y = o(() => !!(r.checked ?? r.selected)), C = o(() => h.value && !r.icon), T = o(() => r.selectedIcon ?? (r.icon ? void 0 : "check")), A = w("single");
921
1049
  function N() {
922
- let e = V.value;
1050
+ let e = B.value;
923
1051
  if (!e || !h.value) return;
924
1052
  let t = (e) => !!e?.hasAttribute("data-m3-menu-choice"), n = t(e.previousElementSibling), r = t(e.nextElementSibling);
925
1053
  A.value = n && r ? "middle" : n ? "last" : r ? "first" : "single";
@@ -939,24 +1067,24 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
939
1067
  t
940
1068
  ];
941
1069
  }
942
- let { snap: F } = Z(() => h.value ? [...P(), C.value && y.value ? Me : 0] : [], ([e, t, n, r, i]) => {
943
- let a = H.value instanceof HTMLElement ? H.value : H.value?.$el;
944
- a && r !== void 0 && (a.style.borderRadius = `${e}px ${t}px ${n}px ${r}px`), U.value && i !== void 0 && (U.value.style.width = `${i}px`);
945
- }, J);
1070
+ let { snap: F } = Q(() => h.value ? [...P(), C.value && y.value ? Le : 0] : [], ([e, t, n, r, i]) => {
1071
+ let a = V.value instanceof HTMLElement ? V.value : V.value?.$el;
1072
+ a && r !== void 0 && (a.style.borderRadius = `${e}px ${t}px ${n}px ${r}px`), H.value && i !== void 0 && (H.value.style.width = `${i}px`);
1073
+ }, ae);
946
1074
  ee(A, () => F());
947
1075
  let te = null;
948
1076
  b(() => {
949
1077
  N();
950
- let e = V.value?.parentElement;
1078
+ let e = B.value?.parentElement;
951
1079
  e && (te = new MutationObserver(N), te.observe(e, { childList: !0 }));
952
- }), x(() => te?.disconnect()), ee(h, () => g(N)), Z(() => C.value ? [+!!y.value] : [], ([e]) => {
953
- U.value && e !== void 0 && (U.value.style.opacity = String(e));
954
- }, Y);
955
- let I = j(), L = o(() => r.to ? "RouterLink" : "button"), R = o(() => !!I.children), z = m("m-menu-close", null), B = m("m-menu-nav", null), V = w(), H = w(), U = w(), W = w(!1), ne = w({});
956
- function re() {
957
- if (!V.value) return;
958
- let e = V.value.getBoundingClientRect(), t = e.right + 200 > window.innerWidth;
959
- ne.value = {
1080
+ }), x(() => te?.disconnect()), ee(h, () => g(N)), Q(() => C.value ? [+!!y.value] : [], ([e]) => {
1081
+ H.value && e !== void 0 && (H.value.style.opacity = String(e));
1082
+ }, oe);
1083
+ let I = j(), L = o(() => r.to ? "RouterLink" : "button"), R = o(() => !!I.children), ne = m("m-menu-close", null), z = m("m-menu-nav", null), B = w(), V = w(), H = w(), U = w(!1), re = w({});
1084
+ function W() {
1085
+ if (!B.value) return;
1086
+ let e = B.value.getBoundingClientRect(), t = e.right + 200 > window.innerWidth;
1087
+ re.value = {
960
1088
  position: "fixed",
961
1089
  top: `${e.top}px`,
962
1090
  ...t ? { right: `${window.innerWidth - e.left}px` } : { left: `${e.right}px` },
@@ -964,45 +1092,45 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
964
1092
  };
965
1093
  }
966
1094
  function G() {
967
- if (W.value) {
968
- W.value = !1;
1095
+ if (U.value) {
1096
+ U.value = !1;
969
1097
  return;
970
1098
  }
971
- re(), W.value = !0;
1099
+ W(), U.value = !0;
972
1100
  }
973
1101
  function K() {
974
1102
  if (!r.disabled) {
975
1103
  if (R.value) {
976
- B?.mode === "push" ? B.push({
1104
+ z?.mode === "push" ? z.push({
977
1105
  icon: r.icon,
978
1106
  header: I.default,
979
1107
  content: I.children
980
1108
  }) : G();
981
1109
  return;
982
1110
  }
983
- p.value && d("update:checked", !r.checked), d("click"), (r.keepOpen ?? p.value) || z?.();
1111
+ p.value && d("update:checked", !r.checked), d("click"), (r.keepOpen ?? p.value) || ne?.();
984
1112
  }
985
1113
  }
986
1114
  function q(e) {
987
- e.pointerType === "mouse" && R.value && !r.disabled && (re(), W.value = !0);
1115
+ e.pointerType === "mouse" && R.value && !r.disabled && (W(), U.value = !0);
988
1116
  }
989
- function X(e) {
990
- e.pointerType === "mouse" && (e.relatedTarget?.closest(".m3-submenu") || (W.value = !1));
1117
+ function J(e) {
1118
+ e.pointerType === "mouse" && (e.relatedTarget?.closest(".m3-submenu") || (U.value = !1));
991
1119
  }
992
- function ie(e) {
1120
+ function Y(e) {
993
1121
  if (e.pointerType !== "mouse") return;
994
1122
  let t = e.relatedTarget;
995
- t?.closest(".m3-submenu") || V.value?.contains(t) || (W.value = !1);
1123
+ t?.closest(".m3-submenu") || B.value?.contains(t) || (U.value = !1);
996
1124
  }
997
1125
  return (n, r) => (S(), l("div", {
998
1126
  ref_key: "itemEl",
999
- ref: V,
1127
+ ref: B,
1000
1128
  "data-m3-menu-choice": h.value || void 0,
1001
1129
  onPointerenter: q,
1002
- onPointerleave: X
1130
+ onPointerleave: J
1003
1131
  }, [(S(), s(D(L.value), {
1004
1132
  ref_key: "controlEl",
1005
- ref: H,
1133
+ ref: V,
1006
1134
  to: e.to || void 0,
1007
1135
  type: e.to ? void 0 : "button",
1008
1136
  role: h.value ? p.value ? "menuitemcheckbox" : "menuitemradio" : void 0,
@@ -1019,14 +1147,14 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1019
1147
  ]]),
1020
1148
  disabled: e.disabled || void 0,
1021
1149
  "aria-haspopup": R.value ? "menu" : void 0,
1022
- "aria-expanded": R.value ? W.value : void 0,
1150
+ "aria-expanded": R.value ? U.value : void 0,
1023
1151
  onClick: K
1024
1152
  }, {
1025
1153
  default: M(() => [
1026
1154
  C.value ? (S(), l("span", {
1027
1155
  key: 0,
1028
1156
  ref_key: "iconSlotEl",
1029
- ref: U,
1157
+ ref: H,
1030
1158
  class: "-mr-3 flex shrink-0 overflow-hidden",
1031
1159
  style: {
1032
1160
  width: "0",
@@ -1047,8 +1175,8 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1047
1175
  "filled",
1048
1176
  "class"
1049
1177
  ])) : c("", !0),
1050
- u("span", ke, [E(n.$slots, "default")]),
1051
- e.shortcut && !R.value ? (S(), l("span", Ae, O(e.shortcut), 1)) : c("", !0),
1178
+ u("span", Pe, [E(n.$slots, "default")]),
1179
+ e.shortcut && !R.value ? (S(), l("span", Fe, O(e.shortcut), 1)) : c("", !0),
1052
1180
  R.value ? (S(), s(t, {
1053
1181
  key: 3,
1054
1182
  name: "chevron_right",
@@ -1066,7 +1194,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1066
1194
  "disabled",
1067
1195
  "aria-haspopup",
1068
1196
  "aria-expanded"
1069
- ])), R.value && k(B)?.mode !== "push" ? (S(), s(i, {
1197
+ ])), R.value && k(z)?.mode !== "push" ? (S(), s(i, {
1070
1198
  key: 0,
1071
1199
  to: "body"
1072
1200
  }, [f(a, {
@@ -1075,41 +1203,41 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1075
1203
  "leave-active-class": "transition-opacity duration-75",
1076
1204
  "leave-to-class": "opacity-0"
1077
1205
  }, {
1078
- default: M(() => [W.value ? (S(), l("div", {
1206
+ default: M(() => [U.value ? (S(), l("div", {
1079
1207
  key: 0,
1080
1208
  class: "m3-submenu min-w-44 rounded-xs shadow-elevation-2",
1081
- style: v(ne.value),
1082
- onPointerleave: ie
1083
- }, [u("div", je, [E(n.$slots, "children")])], 36)) : c("", !0)]),
1209
+ style: v(re.value),
1210
+ onPointerleave: Y
1211
+ }, [u("div", Ie, [E(n.$slots, "children")])], 36)) : c("", !0)]),
1084
1212
  _: 3
1085
- })])) : c("", !0)], 40, Oe));
1213
+ })])) : c("", !0)], 40, Ne));
1086
1214
  }
1087
- }), Pe = { class: "flex flex-col gap-1" }, Fe = [
1215
+ }), ze = { class: "flex flex-col gap-1" }, Be = [
1088
1216
  "id",
1089
1217
  "value",
1090
1218
  "rows",
1091
1219
  "disabled",
1092
1220
  "required"
1093
- ], Ie = [
1221
+ ], Ve = [
1094
1222
  "id",
1095
1223
  "type",
1096
1224
  "value",
1097
1225
  "disabled",
1098
1226
  "required",
1099
1227
  "autocomplete"
1100
- ], Le = ["for"], Re = {
1228
+ ], He = ["for"], Ue = {
1101
1229
  key: 0,
1102
1230
  class: "text-error"
1103
- }, ze = {
1231
+ }, We = {
1104
1232
  key: 3,
1105
1233
  class: "absolute right-2 top-1/2 -translate-y-1/2"
1106
- }, Be = {
1234
+ }, Ge = {
1107
1235
  key: 0,
1108
1236
  class: "px-4 text-body-small text-error"
1109
- }, Ve = {
1237
+ }, Ke = {
1110
1238
  key: 1,
1111
1239
  class: "px-4 text-body-small text-on-surface-variant"
1112
- }, He = /* @__PURE__ */ p({
1240
+ }, qe = /* @__PURE__ */ p({
1113
1241
  __name: "MTextField",
1114
1242
  props: {
1115
1243
  modelValue: {},
@@ -1181,7 +1309,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1181
1309
  let t = e.target;
1182
1310
  i("update:modelValue", t.value), r.debounce > 0 && h(t.value);
1183
1311
  }
1184
- return (n, r) => (S(), l("div", Pe, [u("div", {
1312
+ return (n, r) => (S(), l("div", ze, [u("div", {
1185
1313
  ref_key: "fieldBgEl",
1186
1314
  ref: p,
1187
1315
  class: _(["relative", e.variant === "outlined" ? "mt-2" : ""]),
@@ -1204,7 +1332,7 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1204
1332
  placeholder: " ",
1205
1333
  class: _(b.value),
1206
1334
  onInput: C
1207
- }, null, 42, Fe)) : (S(), l("input", {
1335
+ }, null, 42, Be)) : (S(), l("input", {
1208
1336
  key: 2,
1209
1337
  id: k(a),
1210
1338
  type: e.type,
@@ -1215,12 +1343,12 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1215
1343
  placeholder: " ",
1216
1344
  class: _(b.value),
1217
1345
  onInput: C
1218
- }, null, 42, Ie)),
1346
+ }, null, 42, Ve)),
1219
1347
  u("label", {
1220
1348
  for: k(a),
1221
1349
  class: _(x.value)
1222
- }, [d(O(e.label), 1), e.required ? (S(), l("span", Re, "\xA0*")) : c("", !0)], 10, Le),
1223
- n.$slots.trailing ? (S(), l("div", ze, [E(n.$slots, "trailing")])) : y.value ? (S(), l("button", {
1350
+ }, [d(O(e.label), 1), e.required ? (S(), l("span", Ue, "\xA0*")) : c("", !0)], 10, He),
1351
+ n.$slots.trailing ? (S(), l("div", We, [E(n.$slots, "trailing")])) : y.value ? (S(), l("button", {
1224
1352
  key: 4,
1225
1353
  type: "button",
1226
1354
  class: "absolute right-3 top-1/2 -translate-y-1/2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface",
@@ -1231,10 +1359,10 @@ var oe = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1231
1359
  name: "close",
1232
1360
  size: 18
1233
1361
  })])) : c("", !0)
1234
- ], 6), e.error && e.errorLabel ? (S(), l("p", Be, O(e.errorLabel), 1)) : e.hint ? (S(), l("p", Ve, O(e.hint), 1)) : c("", !0)]));
1362
+ ], 6), e.error && e.errorLabel ? (S(), l("p", Ge, O(e.errorLabel), 1)) : e.hint ? (S(), l("p", Ke, O(e.hint), 1)) : c("", !0)]));
1235
1363
  }
1236
1364
  });
1237
1365
  //#endregion
1238
- export { ye as a, J as c, q as d, K as f, xe as i, ae as l, L as m, Ne as n, ce as o, W as p, De as r, se as s, He as t, Z as u };
1366
+ export { J as _, we as a, U as b, se as c, ae as d, le as f, Y as g, X as h, Ee as i, ce as l, ie as m, Re as n, pe as o, Q as p, Me as r, de as s, qe as t, oe as u, q as v, L as x, K as y };
1239
1367
 
1240
- //# sourceMappingURL=MTextField-DKtgPymd.js.map
1368
+ //# sourceMappingURL=MTextField-BPbFeI9M.js.map