morya-ui 0.2.3 → 0.2.4

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 (180) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/FlyoutSubmenu-BC_cl17_.js +49 -0
  3. package/dist/ScrollBody-CXFNhBvq.js +68 -0
  4. package/dist/accordion/style.css +625 -583
  5. package/dist/auto-complete/style.css +625 -583
  6. package/dist/avatar/style.css +625 -583
  7. package/dist/badge/style.css +625 -583
  8. package/dist/block-ui/style.css +625 -583
  9. package/dist/breadcrumb/style.css +625 -583
  10. package/dist/button/style.css +625 -583
  11. package/dist/card/style.css +625 -583
  12. package/dist/carousel/style.css +625 -583
  13. package/dist/cascade-select/style.css +625 -583
  14. package/dist/checkbox/style.css +625 -583
  15. package/dist/chip/style.css +625 -583
  16. package/dist/command-menu/style.css +625 -583
  17. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  18. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  19. package/dist/components/ContextMenu/styles.css +33 -4
  20. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
  21. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  22. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  23. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  24. package/dist/components/Dropdown/styles.css +11 -0
  25. package/dist/components/Gallery/Gallery.vue.d.ts +2 -2
  26. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  27. package/dist/components/Gallery/styles.css +5 -1
  28. package/dist/components/Layout/Layout.vue.d.ts +3 -3
  29. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  30. package/dist/components/Layout/LayoutContent.vue.d.ts +2 -2
  31. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  32. package/dist/components/Layout/LayoutScrollContext.vue.d.ts +20 -0
  33. package/dist/components/Layout/LayoutScrollContext.vue.d.ts.map +1 -0
  34. package/dist/components/Layout/LayoutScrollRegion.vue.d.ts +34 -0
  35. package/dist/components/Layout/LayoutScrollRegion.vue.d.ts.map +1 -0
  36. package/dist/components/Layout/LayoutSider.vue.d.ts +2 -2
  37. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  38. package/dist/components/Layout/composables/useLayoutScroll.d.ts +4 -1
  39. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -1
  40. package/dist/components/Layout/styles.css +31 -13
  41. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  42. package/dist/components/Menu/styles.css +10 -0
  43. package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
  44. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  45. package/dist/components/Menubar/styles.css +14 -0
  46. package/dist/components/OrderList/OrderList.vue.d.ts +4 -4
  47. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  48. package/dist/components/PickList/PickList.vue.d.ts +7 -7
  49. package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
  50. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  51. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  52. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  53. package/dist/components/Tabs/styles.css +72 -77
  54. package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
  55. package/dist/components/Terminal/styles.css +6 -2
  56. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  57. package/dist/components/TieredMenu/styles.css +33 -4
  58. package/dist/components/Timeline/Timeline.vue.d.ts +35 -10
  59. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  60. package/dist/components/Timeline/styles.css +159 -156
  61. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  62. package/dist/components/TreeSelect/styles.css +15 -0
  63. package/dist/components/TreeTable/TreeTable.vue.d.ts +2 -2
  64. package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
  65. package/dist/components/TreeTable/styles.css +64 -61
  66. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +2 -2
  67. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  68. package/dist/components/VirtualScroller/styles.css +20 -17
  69. package/dist/config-provider/style.css +625 -583
  70. package/dist/confirm-dialog/style.css +625 -583
  71. package/dist/confirm-popup/style.css +625 -583
  72. package/dist/context-menu/index.js +131 -89
  73. package/dist/context-menu/style.css +781 -587
  74. package/dist/context-menu/style.js +1 -0
  75. package/dist/data-view/style.css +625 -583
  76. package/dist/date-picker/style.css +625 -583
  77. package/dist/dialog/style.css +625 -583
  78. package/dist/divider/style.css +625 -583
  79. package/dist/dock/style.css +625 -583
  80. package/dist/drawer/style.css +625 -583
  81. package/dist/dropdown/index.js +162 -122
  82. package/dist/dropdown/style.css +759 -583
  83. package/dist/dropdown/style.js +1 -0
  84. package/dist/fieldset/style.css +625 -583
  85. package/dist/file-upload/style.css +625 -583
  86. package/dist/flex/style.css +625 -583
  87. package/dist/float-label/style.css +625 -583
  88. package/dist/fluid/style.css +625 -583
  89. package/dist/form/style.css +625 -583
  90. package/dist/gallery/index.js +76 -67
  91. package/dist/gallery/style.css +753 -584
  92. package/dist/gallery/style.js +1 -0
  93. package/dist/grid/style.css +625 -583
  94. package/dist/icon/style.css +625 -583
  95. package/dist/icon-field/style.css +625 -583
  96. package/dist/index.js +1925 -1474
  97. package/dist/inplace/style.css +625 -583
  98. package/dist/input/style.css +625 -583
  99. package/dist/input-color/style.css +625 -583
  100. package/dist/input-group/style.css +625 -583
  101. package/dist/input-number/style.css +625 -583
  102. package/dist/input-otp/style.css +625 -583
  103. package/dist/input-password/style.css +625 -583
  104. package/dist/input-tags/style.css +625 -583
  105. package/dist/knob/style.css +625 -583
  106. package/dist/label/style.css +625 -583
  107. package/dist/layout/index.js +230 -136
  108. package/dist/layout/style.css +779 -596
  109. package/dist/layout/style.js +1 -0
  110. package/dist/listbox/style.css +625 -583
  111. package/dist/mega-menu/style.css +625 -583
  112. package/dist/menu/index.js +233 -216
  113. package/dist/menu/style.css +758 -583
  114. package/dist/menu/style.js +1 -0
  115. package/dist/menubar/index.js +77 -68
  116. package/dist/menubar/style.css +762 -583
  117. package/dist/menubar/style.js +1 -0
  118. package/dist/message/style.css +625 -583
  119. package/dist/meter-group/style.css +625 -583
  120. package/dist/order-list/index.js +66 -58
  121. package/dist/order-list/style.css +625 -583
  122. package/dist/page/style.css +625 -583
  123. package/dist/pagination/style.css +625 -583
  124. package/dist/panel/style.css +625 -583
  125. package/dist/pick-list/index.js +97 -84
  126. package/dist/pick-list/style.css +625 -583
  127. package/dist/popover/style.css +625 -583
  128. package/dist/progress-bar/style.css +625 -583
  129. package/dist/progress-spinner/style.css +625 -583
  130. package/dist/radio/style.css +625 -583
  131. package/dist/rating/style.css +625 -583
  132. package/dist/scroll-top/index.js +23 -13
  133. package/dist/scroll-top/style.css +748 -583
  134. package/dist/scroll-top/style.js +1 -0
  135. package/dist/scrollbar/style.css +625 -583
  136. package/dist/select/style.css +625 -583
  137. package/dist/select-button/style.css +625 -583
  138. package/dist/shared/FlyoutSubmenu.vue.d.ts +32 -0
  139. package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -0
  140. package/dist/shared/ScrollBody.vue.d.ts +39 -0
  141. package/dist/shared/ScrollBody.vue.d.ts.map +1 -0
  142. package/dist/sidebar/style.css +625 -583
  143. package/dist/skeleton/style.css +625 -583
  144. package/dist/slider/style.css +625 -583
  145. package/dist/space/style.css +625 -583
  146. package/dist/speed-dial/style.css +625 -583
  147. package/dist/split-button/style.css +625 -583
  148. package/dist/splitter/style.css +625 -583
  149. package/dist/stepper/style.css +625 -583
  150. package/dist/styles/base.css +625 -583
  151. package/dist/styles.css +1 -1
  152. package/dist/switch/style.css +625 -583
  153. package/dist/table/style.css +625 -583
  154. package/dist/tabs/index.js +92 -81
  155. package/dist/tabs/style.css +818 -658
  156. package/dist/tabs/style.js +1 -0
  157. package/dist/tag/style.css +625 -583
  158. package/dist/terminal/index.js +47 -40
  159. package/dist/terminal/style.css +631 -585
  160. package/dist/textarea/style.css +625 -583
  161. package/dist/tiered-menu/index.js +130 -84
  162. package/dist/tiered-menu/style.css +781 -587
  163. package/dist/tiered-menu/style.js +1 -0
  164. package/dist/timeline/index.js +82 -37
  165. package/dist/timeline/style.css +907 -739
  166. package/dist/timeline/style.js +1 -0
  167. package/dist/toast/style.css +625 -583
  168. package/dist/toggle-button/style.css +625 -583
  169. package/dist/toolbar/style.css +625 -583
  170. package/dist/tooltip/style.css +625 -583
  171. package/dist/tree/style.css +625 -583
  172. package/dist/tree-select/index.js +202 -193
  173. package/dist/tree-select/style.css +763 -583
  174. package/dist/tree-select/style.js +1 -0
  175. package/dist/tree-table/index.js +57 -50
  176. package/dist/tree-table/style.css +689 -644
  177. package/dist/virtual-scroller/index.js +38 -34
  178. package/dist/virtual-scroller/style.css +775 -607
  179. package/dist/virtual-scroller/style.js +1 -0
  180. package/package.json +1 -1
@@ -2,5 +2,6 @@ import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
3
  import '../components/Icon/styles.css'
4
4
  import '../components/Popover/styles.css'
5
+ import '../components/Scrollbar/styles.css'
5
6
  import '../components/Tooltip/styles.css'
6
7
  import '../components/Menu/styles.css'
@@ -1,44 +1,45 @@
1
1
  import { r as e } from "../useComponentAttrs-BTYEe61P.js";
2
2
  import { t } from "../Icon-DfpIfo2L.js";
3
- import { n, t as ee } from "../overlay-oR-5MDuE.js";
4
- import { t as te } from "../overlayPlacement-Cd20JTD_.js";
5
- import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
6
- import { t as i } from "../icon-xUOyawgJ.js";
7
- import { c as a } from "../config-CI8_WBbE.js";
8
- import { n as ne } from "../locale-DYGhxekd.js";
3
+ import { n, t as r } from "../overlay-oR-5MDuE.js";
4
+ import { t as ee } from "../overlayPlacement-Cd20JTD_.js";
5
+ import { t as i } from "../useMenuKeyboard-BedmYE4W.js";
6
+ import { t as te } from "../Scrollbar-DoNZvgX2.js";
7
+ import { t as ne } from "../icon-xUOyawgJ.js";
8
+ import { c as re } from "../config-CI8_WBbE.js";
9
+ import { n as ie } from "../locale-DYGhxekd.js";
9
10
  import "./style.js";
10
- import { Fragment as o, Teleport as re, Transition as ie, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as ae, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as oe, nextTick as m, normalizeClass as h, normalizeStyle as se, onBeforeUnmount as ce, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useAttrs as le, watch as C, withCtx as ue, withModifiers as w } from "vue";
11
+ import { Fragment as a, Teleport as ae, Transition as oe, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as se, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as ce, nextTick as p, normalizeClass as m, normalizeStyle as le, onBeforeUnmount as ue, onMounted as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useAttrs as de, watch as S, withCtx as C, withModifiers as w } from "vue";
11
12
  //#region src/components/Menubar/Menubar.vue?vue&type=script&setup=true&lang.ts
12
- var de = ["aria-label"], fe = {
13
+ var fe = ["aria-label"], pe = {
13
14
  key: 0,
14
15
  class: "m-menubar__start"
15
- }, pe = [
16
+ }, me = [
16
17
  "disabled",
17
18
  "tabindex",
18
19
  "aria-expanded",
19
20
  "aria-haspopup",
20
21
  "onClick",
21
22
  "onFocus"
22
- ], me = {
23
+ ], he = {
23
24
  key: 0,
24
25
  class: "m-menubar__icon",
25
26
  "aria-hidden": "true"
26
- }, T = {
27
+ }, ge = {
27
28
  key: 1,
28
29
  class: "m-menubar__caret",
29
30
  "aria-hidden": "true"
30
- }, he = [
31
+ }, _e = [
31
32
  "disabled",
32
33
  "tabindex",
33
34
  "onClick"
34
- ], ge = {
35
+ ], T = {
35
36
  key: 0,
36
37
  class: "m-menubar__icon",
37
38
  "aria-hidden": "true"
38
- }, _e = {
39
+ }, ve = {
39
40
  key: 1,
40
41
  class: "m-menubar__end"
41
- }, E = /* @__PURE__ */ p({
42
+ }, E = /* @__PURE__ */ f({
42
43
  inheritAttrs: !1,
43
44
  __name: "Menubar",
44
45
  props: {
@@ -52,9 +53,9 @@ var de = ["aria-label"], fe = {
52
53
  appendTo: {}
53
54
  },
54
55
  emits: ["update:selectedKey", "select"],
55
- setup(p, { emit: E }) {
56
- let D = p, ve = le(), { rootAttrs: ye } = e(ve, () => D.pt), O = E, k = a(), A = ne(), j = v(null), M = v(null), N = v([]), P = v({}), F = s(() => n(D, k.value.appendTo)), I = s(() => ee(D, k.value.appendTo));
57
- function be(e, t) {
56
+ setup(f, { emit: E }) {
57
+ let D = f, ye = de(), { rootAttrs: be } = e(ye, () => D.pt), O = E, k = re(), A = ie(), j = _(null), M = _(null), N = _([]), P = _({}), F = o(() => n(D, k.value.appendTo)), I = o(() => r(D, k.value.appendTo));
58
+ function xe(e, t) {
58
59
  N.value[t] = e instanceof HTMLElement ? e : null;
59
60
  }
60
61
  function L() {
@@ -62,7 +63,7 @@ var de = ["aria-label"], fe = {
62
63
  let e = N.value[j.value];
63
64
  if (!e) return;
64
65
  let t = e.getBoundingClientRect();
65
- P.value = te(t, "bottom-start", { gap: 4 });
66
+ P.value = ee(t, "bottom-start", { gap: 4 });
66
67
  }
67
68
  function R(e) {
68
69
  return e.key ?? e.label;
@@ -71,7 +72,7 @@ var de = ["aria-label"], fe = {
71
72
  return !!(D.selectedKey && R(e) === D.selectedKey);
72
73
  }
73
74
  function B(e) {
74
- return i(e.icon);
75
+ return ne(e.icon);
75
76
  }
76
77
  function V(e) {
77
78
  e.disabled || (e.command?.(), O("update:selectedKey", R(e)), O("select", e));
@@ -82,10 +83,10 @@ var de = ["aria-label"], fe = {
82
83
  V(t), j.value = null;
83
84
  return;
84
85
  }
85
- j.value = j.value === e ? null : e, j.value != null && m(() => L());
86
+ j.value = j.value === e ? null : e, j.value != null && p(() => L());
86
87
  }
87
88
  }
88
- let U = s(() => j.value == null ? [] : D.model[j.value]?.items ?? []), W = r({
89
+ let U = o(() => j.value == null ? [] : D.model[j.value]?.items ?? []), W = i({
89
90
  itemCount: () => D.model.length,
90
91
  isItemDisabled: (e) => !!D.model[e]?.disabled,
91
92
  orientation: "horizontal",
@@ -94,7 +95,7 @@ var de = ["aria-label"], fe = {
94
95
  let t = D.model[e];
95
96
  t && H(e, t);
96
97
  }
97
- }), G = r({
98
+ }), G = i({
98
99
  itemCount: () => U.value.length,
99
100
  isItemDisabled: (e) => !!U.value[e]?.disabled,
100
101
  enabled: () => j.value != null,
@@ -106,19 +107,19 @@ var de = ["aria-label"], fe = {
106
107
  function K(e) {
107
108
  N.value[e]?.focus({ preventScroll: !0 });
108
109
  }
109
- function xe() {
110
+ function Se() {
110
111
  return M.value?.querySelector(".m-menubar__submenu") || document.querySelector(".m-menubar__submenu--teleported");
111
112
  }
112
113
  function q() {
113
114
  let e = G.activeIndex.value;
114
- e < 0 || xe()?.querySelectorAll(".m-menubar__subitem")[e]?.focus({ preventScroll: !0 });
115
+ e < 0 || Se()?.querySelectorAll(".m-menubar__subitem")[e]?.focus({ preventScroll: !0 });
115
116
  }
116
117
  function J(e = !1) {
117
118
  let t = j.value;
118
119
  j.value = null, G.reset(), e && t != null && K(t);
119
120
  }
120
121
  function Y(e, t = !1) {
121
- j.value = e, W.setActive(e), m(() => {
122
+ j.value = e, W.setActive(e), p(() => {
122
123
  L(), t && (G.moveFirst(), q());
123
124
  });
124
125
  }
@@ -127,7 +128,7 @@ var de = ["aria-label"], fe = {
127
128
  let t = W.activeIndex.value, n = D.model[t];
128
129
  j.value != null && (n?.items?.length ? Y(t, !0) : J()), K(t);
129
130
  }
130
- function Se(e) {
131
+ function Ce(e) {
131
132
  if (e.key === "Escape") {
132
133
  j.value != null && (e.preventDefault(), J(!0));
133
134
  return;
@@ -144,7 +145,7 @@ var de = ["aria-label"], fe = {
144
145
  }
145
146
  W.onKeydown(e);
146
147
  }
147
- function Ce(e) {
148
+ function we(e) {
148
149
  if (e.stopPropagation(), e.key === "Escape") {
149
150
  e.preventDefault(), J(!0);
150
151
  return;
@@ -158,9 +159,9 @@ var de = ["aria-label"], fe = {
158
159
  function Z(e) {
159
160
  V(e), J(!0);
160
161
  }
161
- C(W.activeIndex, (e) => {
162
+ S(W.activeIndex, (e) => {
162
163
  e >= 0 && j.value == null && K(e);
163
- }), C(G.activeIndex, () => {
164
+ }), S(G.activeIndex, () => {
164
165
  j.value != null && q();
165
166
  });
166
167
  function Q(e) {
@@ -170,71 +171,79 @@ var de = ["aria-label"], fe = {
170
171
  function $() {
171
172
  j.value != null && L();
172
173
  }
173
- return C(j, (e) => {
174
+ return S(j, (e) => {
174
175
  e != null && I.value ? (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)) : (window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
175
- }), g(() => document.addEventListener("click", Q)), ce(() => {
176
+ }), h(() => document.addEventListener("click", Q)), ue(() => {
176
177
  document.removeEventListener("click", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
177
- }), (e, n) => (_(), u("nav", oe(S(ye), {
178
+ }), (e, n) => (g(), l("nav", ce(x(be), {
178
179
  ref_key: "root",
179
180
  ref: M,
180
181
  class: "m-menubar",
181
- "aria-label": S(A).menubar,
182
- onKeydown: Se
182
+ "aria-label": x(A).menubar,
183
+ onKeydown: Ce
183
184
  }), [
184
- e.$slots.start ? (_(), u("div", fe, [b(e.$slots, "start")])) : l("", !0),
185
- (_(!0), u(o, null, y(p.model, (e, n) => (_(), u("div", {
185
+ e.$slots.start ? (g(), l("div", pe, [y(e.$slots, "start")])) : c("", !0),
186
+ (g(!0), l(a, null, v(f.model, (e, n) => (g(), l("div", {
186
187
  key: `${e.label}-${n}`,
187
- class: h(["m-menubar__item", {
188
+ class: m(["m-menubar__item", {
188
189
  "m-menubar__item--open": j.value === n,
189
190
  "m-menubar__item--selected": z(e)
190
191
  }])
191
- }, [ae("button", {
192
+ }, [se("button", {
192
193
  ref_for: !0,
193
- ref: (e) => be(e, n),
194
+ ref: (e) => xe(e, n),
194
195
  type: "button",
195
- class: h(["m-menubar__trigger", { "m-menubar__trigger--selected": z(e) }]),
196
+ class: m(["m-menubar__trigger", { "m-menubar__trigger--selected": z(e) }]),
196
197
  disabled: e.disabled,
197
- tabindex: S(W).tabindexFor(n),
198
+ tabindex: x(W).tabindexFor(n),
198
199
  "aria-expanded": e.items?.length ? j.value === n : void 0,
199
200
  "aria-haspopup": e.items?.length ? "menu" : void 0,
200
201
  onClick: w((t) => H(n, e), ["stop"]),
201
- onFocus: (e) => S(W).setActive(n)
202
+ onFocus: (e) => x(W).setActive(n)
202
203
  }, [
203
- B(e) ? (_(), u("span", me, [f(t, {
204
+ B(e) ? (g(), l("span", he, [d(t, {
204
205
  name: B(e),
205
206
  size: "sm"
206
- }, null, 8, ["name"])])) : l("", !0),
207
- d(" " + x(e.label) + " ", 1),
208
- e.items?.length ? (_(), u("span", T, [f(t, {
207
+ }, null, 8, ["name"])])) : c("", !0),
208
+ u(" " + b(e.label) + " ", 1),
209
+ e.items?.length ? (g(), l("span", ge, [d(t, {
209
210
  name: "chevron-down",
210
211
  size: "sm"
211
- })])) : l("", !0)
212
- ], 42, pe), (_(), c(re, {
212
+ })])) : c("", !0)
213
+ ], 42, me), (g(), s(ae, {
213
214
  to: F.value.to,
214
215
  disabled: F.value.disabled
215
- }, [f(ie, { name: "m-scale-fade" }, {
216
- default: ue(() => [e.items?.length && j.value === n ? (_(), u("div", {
216
+ }, [d(oe, { name: "m-scale-fade" }, {
217
+ default: C(() => [e.items?.length && j.value === n ? (g(), l("div", {
217
218
  key: 0,
218
- class: h(["m-menubar__submenu", { "m-menubar__submenu--teleported": I.value }]),
219
- style: se(I.value ? P.value : void 0),
219
+ class: m(["m-menubar__submenu", { "m-menubar__submenu--teleported": I.value }]),
220
+ style: le(I.value ? P.value : void 0),
220
221
  role: "menu",
221
- onKeydown: Ce
222
- }, [(_(!0), u(o, null, y(e.items, (e, n) => (_(), u("button", {
223
- key: `${e.label}-${n}`,
224
- type: "button",
225
- class: h(["m-menubar__subitem", { "m-menubar__subitem--selected": z(e) }]),
226
- role: "menuitem",
227
- disabled: e.disabled,
228
- tabindex: S(G).tabindexFor(n),
229
- onClick: w((t) => Z(e), ["stop"])
230
- }, [B(e) ? (_(), u("span", ge, [f(t, {
231
- name: B(e),
232
- size: "sm"
233
- }, null, 8, ["name"])])) : l("", !0), d(" " + x(e.label), 1)], 10, he))), 128))], 38)) : l("", !0)]),
222
+ onKeydown: we
223
+ }, [d(te, {
224
+ class: "m-menubar__submenu-scroll",
225
+ "fit-content": "",
226
+ "wrap-class": "m-menubar__submenu-wrap",
227
+ "view-class": "m-menubar__submenu-view"
228
+ }, {
229
+ default: C(() => [(g(!0), l(a, null, v(e.items, (e, n) => (g(), l("button", {
230
+ key: `${e.label}-${n}`,
231
+ type: "button",
232
+ class: m(["m-menubar__subitem", { "m-menubar__subitem--selected": z(e) }]),
233
+ role: "menuitem",
234
+ disabled: e.disabled,
235
+ tabindex: x(G).tabindexFor(n),
236
+ onClick: w((t) => Z(e), ["stop"])
237
+ }, [B(e) ? (g(), l("span", T, [d(t, {
238
+ name: B(e),
239
+ size: "sm"
240
+ }, null, 8, ["name"])])) : c("", !0), u(" " + b(e.label), 1)], 10, _e))), 128))]),
241
+ _: 2
242
+ }, 1024)], 38)) : c("", !0)]),
234
243
  _: 2
235
244
  }, 1024)], 8, ["to", "disabled"]))], 2))), 128)),
236
- e.$slots.end ? (_(), u("div", _e, [b(e.$slots, "end")])) : l("", !0)
237
- ], 16, de));
245
+ e.$slots.end ? (g(), l("div", ve, [y(e.$slots, "end")])) : c("", !0)
246
+ ], 16, fe));
238
247
  }
239
248
  });
240
249
  //#endregion