lkt-menu 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.css CHANGED
@@ -1 +1 @@
1
- .lkt-menu{width:var(--lkt-menu--container--width);overflow:auto;max-height:var(--lkt-menu--container--max-height);display:flex}.lkt-menu-main{background:var(--lkt-menu--background);padding:var(--lkt-menu--padding);max-width:var(--lkt-menu--max-width);width:var(--lkt-menu--width);height:100%;display:var(--lkt-menu--display);flex-direction:var(--lkt-menu--flex-direction);align-items:var(--lkt-menu--align-items);gap:var(--lkt-menu--entry--gap);position:relative}.lkt-menu-entry-toggle-inner{transition:all linear .2s}.lkt-menu-entry-toggle-inner.is-opened{transform:rotate(180deg)}.lkt-entry-content{display:inline-flex;flex-direction:row;gap:var(--lkt-menu--gap)}.lkt-menu-entry-toggle{display:inline-flex;flex-direction:row;align-items:center;justify-content:center}.lkt-menu-entry{padding:var(--lkt-menu--entry--padding)}.lkt-menu-entry .lkt-anchor{width:100%}.lkt-menu-entry-main{display:flex;justify-content:space-between;position:relative}.lkt-entry-content{font-size:var(--lkt-menu--font-size);width:100%}.lkt-menu-outside{position:absolute;top:0;right:0;left:0;bottom:0;background:var(--lkt-menu--outside--background);z-index:-1}.lkt-menu-entry-children{padding:var(--lkt-menu--children--padding)}.lkt-menu-entry-text{padding:var(--lkt-menu--text-without-icon--padding)}.lkt-menu.has-icon .lkt-menu-entry-text{padding:var(--lkt-menu--text--padding)}.lkt-menu.has-icon .lkt-menu-entry-icon+.lkt-menu-entry-text{padding:var(--lkt-menu--text-with-icon--padding)}.lkt-menu.type-hidden{position:fixed;top:var(--lkt-menu--container--top);bottom:var(--lkt-menu--container--bottom);width:100%;background:var(--lkt-menu--container--background);transition:var(--lkt-menu--container--transition);z-index:400}.lkt-menu.type-hidden .lkt-menu-main{z-index:402}.lkt-menu.type-hidden .lkt-menu-outside{z-index:401}.lkt-menu.type-hidden .lkt-menu-outside{opacity:0;transition:all linear .4s .1s}.lkt-menu.type-hidden.is-visible .lkt-menu-outside{opacity:1}.lkt-menu.type-hidden.left-hidden{left:-100%}.lkt-menu.type-hidden.left-hidden.is-visible{left:0}.lkt-menu.type-hidden.right-hidden{justify-content:flex-end;right:-100%}.lkt-menu.type-hidden.right-hidden.is-visible{right:0}
1
+ .lkt-menu{width:var(--lkt-menu--container--width);overflow:auto;max-height:var(--lkt-menu--container--max-height);display:flex;flex-direction:var(--lkt-menu--container--flex-direction);align-items:var(--lkt-menu--container--align-items)}.lkt-menu-main{background:var(--lkt-menu--background);padding:var(--lkt-menu--padding);max-width:var(--lkt-menu--max-width);width:var(--lkt-menu--width);height:100%;display:var(--lkt-menu--display);flex-direction:var(--lkt-menu--flex-direction);align-items:var(--lkt-menu--align-items);gap:var(--lkt-menu--entry--gap);position:relative}.lkt-menu-entry-toggle-inner{transition:all linear .2s}.lkt-menu-entry-toggle-inner.is-opened{transform:rotate(180deg)}.lkt-entry-content{display:inline-flex;flex-direction:row;gap:var(--lkt-menu--gap)}.lkt-menu-entry-toggle{display:inline-flex;flex-direction:row;align-items:center;justify-content:center}.lkt-menu-entries{align-items:var(--lkt-menu--entries--align-items);background:var(--lkt-menu--entries--background);display:flex;flex-direction:var(--lkt-menu--entries--flex-direction);width:var(--lkt-menu--entries--width)}.lkt-menu-entry{padding:var(--lkt-menu--entry--padding)}.lkt-menu-entry .lkt-anchor{width:100%}.lkt-menu-entry-main{display:flex;justify-content:space-between;position:relative}.lkt-entry-content{font-size:var(--lkt-menu--font-size);width:100%}.lkt-menu-outside{position:absolute;top:0;right:0;left:0;bottom:0;background:var(--lkt-menu--outside--background);z-index:-1}.lkt-menu-entry-children{padding:var(--lkt-menu--children--padding)}.lkt-menu-entry-text{padding:var(--lkt-menu--text-without-icon--padding)}.lkt-menu.has-icon .lkt-menu-entry-text{padding:var(--lkt-menu--text--padding)}.lkt-menu.has-icon .lkt-menu-entry-icon+.lkt-menu-entry-text{padding:var(--lkt-menu--text-with-icon--padding)}.lkt-menu.type-hidden{position:fixed;top:var(--lkt-menu--container--top);bottom:var(--lkt-menu--container--bottom);width:100%;background:var(--lkt-menu--container--background);transition:var(--lkt-menu--container--transition);z-index:400}.lkt-menu.type-hidden .lkt-menu-main{z-index:402}.lkt-menu.type-hidden .lkt-menu-outside{z-index:401}.lkt-menu.type-hidden .lkt-menu-outside{opacity:0;transition:all linear .4s .1s}.lkt-menu.type-hidden.is-visible .lkt-menu-outside{opacity:1}.lkt-menu.type-hidden.left-hidden{left:-100%}.lkt-menu.type-hidden.left-hidden.is-visible{left:0}.lkt-menu.type-hidden.right-hidden{justify-content:flex-end;right:-100%}.lkt-menu.type-hidden.right-hidden.is-visible{right:0}
package/dist/build.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare namespace Ce {
2
- function install(a: any): void;
1
+ declare namespace $e {
2
+ function install(s: any): void;
3
3
  }
4
- declare function Oe(a: any): boolean;
5
- export { Ce as default, Oe as setMenuToggleSlot };
4
+ declare function Oe(s: any): boolean;
5
+ export { $e as default, Oe as setMenuToggleSlot };
package/dist/build.js CHANGED
@@ -1,24 +1,24 @@
1
- import { defineComponent as Q, ref as T, useSlots as X, computed as d, watch as S, onMounted as Y, resolveComponent as I, createElementBlock as c, openBlock as s, normalizeClass as g, createElementVNode as _, createCommentVNode as f, createBlock as y, unref as p, normalizeProps as H, mergeProps as j, createSlots as q, withCtx as h, renderSlot as k, toDisplayString as x, resolveDynamicComponent as ee, Fragment as Z, renderList as P, mergeDefaults as te } from "vue";
2
- import { MenuEntryType as R, MenuController as W, MenuType as le, getDefaultValues as ne, Menu as oe } from "lkt-vue-kernel";
1
+ import { defineComponent as X, ref as T, useSlots as Y, computed as r, watch as S, onMounted as Z, resolveComponent as E, createElementBlock as d, openBlock as u, normalizeClass as g, createElementVNode as _, createCommentVNode as f, createBlock as y, unref as p, normalizeProps as H, mergeProps as I, createSlots as q, withCtx as h, renderSlot as k, toDisplayString as ee, resolveDynamicComponent as te, Fragment as x, renderList as j, mergeDefaults as le } from "vue";
2
+ import { MenuEntryType as R, MenuController as W, MenuType as Q, getDefaultValues as ne, Menu as oe } from "lkt-vue-kernel";
3
3
  import { useRouter as ue } from "vue-router";
4
4
  import { DataState as se } from "lkt-data-state";
5
- import { httpCall as ae } from "lkt-http-client";
6
- const G = (a, V) => (V.forEach((o) => {
7
- o.key && !a.includes(o.key) && a.push(o.key), o.children && o.children.length > 0 && G(a, o.children);
8
- }), a), U = class U {
5
+ import { httpCall as ie } from "lkt-http-client";
6
+ const G = (s, V) => (V.forEach((o) => {
7
+ o.key && !s.includes(o.key) && s.push(o.key), o.children && o.children.length > 0 && G(s, o.children);
8
+ }), s), L = class L {
9
9
  };
10
- U.toggleSlot = "", U.debugEnabled = !1;
11
- let M = U;
12
- const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }, ce = {
10
+ L.toggleSlot = "", L.debugEnabled = !1;
11
+ let M = L;
12
+ const ae = ["id"], re = { class: "lkt-menu-entry-main" }, ce = { class: "lkt-entry-content" }, de = {
13
13
  key: 0,
14
14
  class: "lkt-menu-entry-icon"
15
- }, de = {
15
+ }, pe = {
16
16
  key: 1,
17
17
  class: "lkt-menu-entry-text"
18
- }, pe = {
18
+ }, ve = {
19
19
  key: 0,
20
20
  class: "lkt-menu-entry-children"
21
- }, ve = /* @__PURE__ */ Q({
21
+ }, me = /* @__PURE__ */ X({
22
22
  __name: "MenuItem",
23
23
  props: {
24
24
  modelValue: { default: () => ({}) }
@@ -26,125 +26,126 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
26
26
  emits: [
27
27
  "update:modelValue"
28
28
  ],
29
- setup(a, { emit: V }) {
30
- const o = V, v = a, e = T(v.modelValue), r = X(), i = ue(), A = T(!1), K = () => {
29
+ setup(s, { emit: V }) {
30
+ const o = V, v = s, e = T(v.modelValue), c = Y(), a = ue(), A = T(!1), K = () => {
31
31
  e.value.isOpened = !e.value.isOpened;
32
- }, C = () => {
33
- var t, n;
34
- return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && K(), typeof ((n = e.value.events) == null ? void 0 : n.click) == "function" && e.value.events.click({
32
+ }, b = () => {
33
+ var t, l;
34
+ return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && K(), typeof ((l = e.value.events) == null ? void 0 : l.click) == "function" && e.value.events.click({
35
35
  entry: e.value
36
36
  }), 1;
37
- }, D = d(() => r["icon-" + e.value.key] || e.value.icon !== ""), w = d(() => {
37
+ }, D = r(() => c["icon-" + e.value.key] || e.value.icon !== ""), P = r(() => {
38
38
  let t = [];
39
39
  return D.value && t.push("has-icon"), A.value && t.push("is-active"), e.value.type && t.push(`is-${e.value.type}`), t.join(" ");
40
- }), F = d(() => {
41
- var n;
42
- return G([], ((n = e.value) == null ? void 0 : n.children) ?? []);
43
- }), J = d(() => {
40
+ }), U = r(() => {
41
+ var l;
42
+ return G([], ((l = e.value) == null ? void 0 : l.children) ?? []);
43
+ }), w = r(() => {
44
44
  let t = [];
45
- for (let n in r)
46
- n.startsWith("icon-") && F.value.includes(n.substring(5)) && t.push(n);
45
+ for (let l in c)
46
+ l.startsWith("icon-") && U.value.includes(l.substring(5)) && t.push(l);
47
47
  return t;
48
- }), N = d(() => e.value.isActive ? !0 : typeof e.value.isActiveChecker == "function" ? !!e.value.isActiveChecker({
48
+ }), F = r(() => e.value.isActive ? !0 : typeof e.value.isActiveChecker == "function" ? !!e.value.isActiveChecker({
49
49
  entry: e.value
50
- }) : !1), l = d(() => !!M.toggleSlot), u = d(() => M.toggleSlot);
50
+ }) : !1), N = r(() => !!M.toggleSlot), n = r(() => M.toggleSlot);
51
51
  return S(() => v.modelValue, (t) => {
52
52
  e.value = t;
53
53
  }, { deep: !0 }), S(e, (t) => {
54
54
  o("update:modelValue", t);
55
- }, { deep: !0 }), Y(() => {
56
- var n, m, B;
57
- let t = i == null ? void 0 : i.currentRoute;
55
+ }, { deep: !0 }), Z(() => {
56
+ var l, i, m;
57
+ let t = a == null ? void 0 : a.currentRoute;
58
58
  if (t) {
59
- if (t.value.path === ((n = e.value.anchor) == null ? void 0 : n.to))
59
+ if (t.value.path === ((l = e.value.anchor) == null ? void 0 : l.to))
60
60
  e.value.isOpened = !0;
61
- else if (typeof e.value.children < "u" && ((m = e.value.children) == null ? void 0 : m.length) > 0) {
62
- let O = !1;
63
- (B = e.value.children) == null || B.forEach((L) => {
64
- var b;
65
- t.value.path === ((b = L.anchor) == null ? void 0 : b.to) && (O = !0);
66
- }), O && (e.value.isOpened = !0);
61
+ else if (typeof e.value.children < "u" && ((i = e.value.children) == null ? void 0 : i.length) > 0) {
62
+ let C = !1;
63
+ (m = e.value.children) == null || m.forEach((J) => {
64
+ var $;
65
+ t.value.path === (($ = J.anchor) == null ? void 0 : $.to) && (C = !0);
66
+ }), C && (e.value.isOpened = !0);
67
67
  }
68
68
  }
69
- }), (t, n) => {
70
- var b;
71
- const m = I("lkt-button"), B = I("lkt-header"), O = I("lkt-anchor"), L = I("menu-item", !0);
72
- return s(), c("div", {
73
- class: g(["lkt-menu-entry", w.value])
69
+ }), (t, l) => {
70
+ var $;
71
+ const i = E("lkt-button"), m = E("lkt-header"), C = E("lkt-anchor"), J = E("menu-item", !0);
72
+ return u(), d("div", {
73
+ class: g(["lkt-menu-entry", P.value]),
74
+ id: `entry-${e.value.key}`
74
75
  }, [
75
- _("div", ie, [
76
- e.value.type === p(R).Button ? (s(), y(m, H(j({ key: 0 }, e.value.button)), q({ _: 2 }, [
77
- p(r).tooltip ? {
76
+ _("div", re, [
77
+ e.value.type === p(R).Button ? (u(), y(i, H(I({ key: 0 }, e.value.button)), q({ _: 2 }, [
78
+ p(c).tooltip ? {
78
79
  name: "tooltip",
79
80
  fn: h(() => [
80
81
  k(t.$slots, "tooltip")
81
82
  ]),
82
83
  key: "0"
83
84
  } : void 0,
84
- p(r).split ? {
85
+ p(c).split ? {
85
86
  name: "split",
86
87
  fn: h(() => [
87
88
  k(t.$slots, "split")
88
89
  ]),
89
90
  key: "1"
90
91
  } : void 0
91
- ]), 1040)) : e.value.type === p(R).Header ? (s(), y(B, H(j({ key: 1 }, e.value.header)), null, 16)) : e.value.type === p(R).Anchor ? (s(), y(O, H(j({ key: 2 }, e.value.anchor)), null, 16)) : (s(), y(O, j({ key: 3 }, e.value.anchor, {
92
- "on-click": C,
93
- "is-active": N.value,
94
- onActive: n[0] || (n[0] = ($) => A.value = $)
92
+ ]), 1040)) : e.value.type === p(R).Header ? (u(), y(m, H(I({ key: 1 }, e.value.header)), null, 16)) : e.value.type === p(R).Anchor ? (u(), y(C, H(I({ key: 2 }, e.value.anchor)), null, 16)) : (u(), y(C, I({ key: 3 }, e.value.anchor, {
93
+ "on-click": b,
94
+ "is-active": F.value,
95
+ onActive: l[0] || (l[0] = (O) => A.value = O)
95
96
  }), {
96
- text: h(({ text: $ }) => [
97
- _("div", re, [
98
- D.value ? (s(), c("div", ce, [
99
- p(r)["icon-" + e.value.key] ? k(t.$slots, "icon-" + e.value.key, {
97
+ text: h(({ text: O }) => [
98
+ _("div", ce, [
99
+ D.value ? (u(), d("div", de, [
100
+ p(c)["icon-" + e.value.key] ? k(t.$slots, "icon-" + e.value.key, {
100
101
  key: e.value.key,
101
102
  entry: e.value
102
- }) : e.value.icon !== "" ? (s(), c("i", {
103
+ }) : e.value.icon !== "" ? (u(), d("i", {
103
104
  key: 1,
104
105
  class: g(e.value.icon)
105
106
  }, null, 2)) : f("", !0)
106
107
  ])) : f("", !0),
107
- $ !== "" ? (s(), c("div", de, x($), 1)) : f("", !0)
108
+ O !== "" ? (u(), d("div", pe, ee(O), 1)) : f("", !0)
108
109
  ])
109
110
  ]),
110
111
  _: 3
111
112
  }, 16, ["is-active"])),
112
- e.value.type !== p(R).Button && e.value.children && ((b = e.value.children) == null ? void 0 : b.length) > 0 ? (s(), c("div", {
113
+ e.value.type !== p(R).Button && e.value.children && (($ = e.value.children) == null ? void 0 : $.length) > 0 ? (u(), d("div", {
113
114
  key: 4,
114
115
  class: "lkt-menu-entry-toggle",
115
116
  onClick: K
116
117
  }, [
117
- l.value ? (s(), y(ee(u.value), {
118
+ N.value ? (u(), y(te(n.value), {
118
119
  key: 0,
119
120
  class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
- }, null, 8, ["class"])) : (s(), c("div", {
121
+ }, null, 8, ["class"])) : (u(), d("div", {
121
122
  key: 1,
122
123
  class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
123
- }, n[1] || (n[1] = [
124
+ }, l[1] || (l[1] = [
124
125
  _("i", { class: "lkt-icn-angle-bottom" }, null, -1)
125
126
  ]), 2))
126
127
  ])) : f("", !0)
127
128
  ]),
128
- e.value.isOpened ? (s(), c("div", pe, [
129
- (s(!0), c(Z, null, P(e.value.children, ($, z) => (s(), y(L, {
129
+ e.value.isOpened ? (u(), d("div", ve, [
130
+ (u(!0), d(x, null, j(e.value.children, (O, z) => (u(), y(J, {
130
131
  modelValue: e.value.children[z],
131
- "onUpdate:modelValue": (E) => e.value.children[z] = E,
132
+ "onUpdate:modelValue": (B) => e.value.children[z] = B,
132
133
  key: e.value.children[z].key
133
134
  }, q({ _: 2 }, [
134
- P(J.value, (E) => ({
135
- name: E,
135
+ j(w.value, (B) => ({
136
+ name: B,
136
137
  fn: h(() => [
137
- k(t.$slots, E)
138
+ k(t.$slots, B)
138
139
  ])
139
140
  }))
140
141
  ]), 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
141
142
  ])) : f("", !0)
142
- ], 2);
143
+ ], 10, ae);
143
144
  };
144
145
  }
145
- }), me = { class: "lkt-menu-main" }, ke = { class: "lkt-menu-entries" }, ye = /* @__PURE__ */ Q({
146
+ }), ke = ["role"], ye = { class: "lkt-menu-main" }, he = { class: "lkt-menu-entries" }, fe = /* @__PURE__ */ X({
146
147
  __name: "LktMenu",
147
- props: /* @__PURE__ */ te({
148
+ props: /* @__PURE__ */ le({
148
149
  modelValue: {},
149
150
  type: {},
150
151
  menuKey: { type: [String, Number, Function] },
@@ -160,76 +161,81 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
160
161
  "response",
161
162
  "error"
162
163
  ],
163
- setup(a, { emit: V }) {
164
+ setup(s, { emit: V }) {
164
165
  var N;
165
- const o = a, v = V, e = T(!1), r = X(), i = T(o.modelValue), A = (l) => {
166
- let u = {};
167
- typeof l == "object" && Object.keys(l).length > 0 && (u = JSON.parse(JSON.stringify(l)));
168
- for (let t in u)
169
- (Array.isArray(u[t]) || typeof u[t] == "object") && (u[t] = JSON.stringify(u[t]));
170
- return u;
166
+ const o = s, v = V, e = T(!1), c = Y(), a = T(o.modelValue), A = (n) => {
167
+ let t = {};
168
+ typeof n == "object" && Object.keys(n).length > 0 && (t = JSON.parse(JSON.stringify(n)));
169
+ for (let l in t)
170
+ (Array.isArray(t[l]) || typeof t[l] == "object") && (t[l] = JSON.stringify(t[l]));
171
+ return t;
171
172
  };
172
- S(() => W.config.value, (l) => {
173
+ S(() => W.config.value, (n) => {
173
174
  }, { deep: !0 });
174
- const K = d(() => {
175
- let l = [
175
+ const K = r(() => {
176
+ let n = [
176
177
  `type-${o.type}`
177
178
  ];
178
- return o.menuKey && l.push(o.menuKey), e.value && l.push("is-visible"), o.type === le.Hidden && l.push(`${o.hiddenPosition}-hidden`), l.join(" ");
179
+ return o.menuKey && n.push(o.menuKey), e.value && n.push("is-visible"), o.type === Q.Hidden && n.push(`${o.hiddenPosition}-hidden`), n.join(" ");
179
180
  });
180
- let C = new se({});
181
- C.increment(A(((N = o.http) == null ? void 0 : N.data) ?? {}));
182
- const D = d(() => G([], i.value)), w = d(() => {
183
- let l = [];
184
- for (let u in r)
185
- u.startsWith("icon-") && D.value.includes(u.substring(5)) && l.push(u);
186
- return l;
187
- }), F = () => {
188
- var u, t;
189
- if (!((u = o.http) != null && u.resource)) return;
190
- let l = C.getData();
191
- v("loading"), ae((t = o.http) == null ? void 0 : t.resource, l).then((n) => {
192
- C.turnStoredIntoOriginal(), i.value = n.data, v("results", n.data), v("response", n);
193
- }).catch((n) => {
194
- v("error", n);
181
+ let b = new se({});
182
+ b.increment(A(((N = o.http) == null ? void 0 : N.data) ?? {}));
183
+ const D = r(() => G([], a.value)), P = r(() => {
184
+ let n = [];
185
+ for (let t in c)
186
+ t.startsWith("icon-") && D.value.includes(t.substring(5)) && n.push(t);
187
+ return n;
188
+ }), U = () => {
189
+ var t, l;
190
+ if (!((t = o.http) != null && t.resource)) return;
191
+ let n = b.getData();
192
+ v("loading"), ie((l = o.http) == null ? void 0 : l.resource, n).then((i) => {
193
+ b.turnStoredIntoOriginal(), a.value = i.data, v("results", i.data), v("response", i);
194
+ }).catch((i) => {
195
+ v("error", i);
195
196
  });
196
- }, J = () => {
197
+ }, w = () => {
197
198
  o.closeOnClickOutside && W.closeMenu(o.menuKey), v("click-outside");
198
199
  };
199
- return S(() => o.modelValue, (l) => {
200
- i.value = l;
201
- }, { deep: !0 }), S(i, (l) => {
202
- v("update:modelValue", l);
203
- }, { deep: !0 }), Y(() => {
204
- W.addMenu(o.menuKey, e), F();
205
- }), (l, u) => (s(), c("div", {
206
- class: g(["lkt-menu", K.value])
200
+ S(() => o.modelValue, (n) => {
201
+ a.value = n;
202
+ }, { deep: !0 }), S(a, (n) => {
203
+ v("update:modelValue", n);
204
+ }, { deep: !0 }), Z(() => {
205
+ W.addMenu(o.menuKey, e), U();
206
+ });
207
+ const F = r(() => {
208
+ if (o.type === Q.TabList) return "tablist";
209
+ });
210
+ return (n, t) => (u(), d("div", {
211
+ class: g(["lkt-menu", K.value]),
212
+ role: F.value
207
213
  }, [
208
- _("div", me, [
209
- p(r).before ? k(l.$slots, "before", { key: 0 }) : f("", !0),
210
- _("div", ke, [
211
- (s(!0), c(Z, null, P(i.value, (t, n) => (s(), y(ve, {
212
- modelValue: i.value[n],
213
- "onUpdate:modelValue": (m) => i.value[n] = m,
214
- class: g(t.class)
214
+ _("div", ye, [
215
+ p(c).before ? k(n.$slots, "before", { key: 0 }) : f("", !0),
216
+ _("div", he, [
217
+ (u(!0), d(x, null, j(a.value, (l, i) => (u(), y(me, {
218
+ modelValue: a.value[i],
219
+ "onUpdate:modelValue": (m) => a.value[i] = m,
220
+ class: g(l.class)
215
221
  }, q({ _: 2 }, [
216
- P(w.value, (m) => ({
222
+ j(P.value, (m) => ({
217
223
  name: m,
218
224
  fn: h(() => [
219
- k(l.$slots, m)
225
+ k(n.$slots, m)
220
226
  ])
221
227
  })),
222
- p(r)[`tooltip-${t.key}`] ? {
228
+ p(c)[`tooltip-${l.key}`] ? {
223
229
  name: "tooltip",
224
230
  fn: h(() => [
225
- k(l.$slots, `tooltip-${t.key}`)
231
+ k(n.$slots, `tooltip-${l.key}`)
226
232
  ]),
227
233
  key: "0"
228
234
  } : void 0,
229
- p(r)[`split-${t.key}`] ? {
235
+ p(c)[`split-${l.key}`] ? {
230
236
  name: "split",
231
237
  fn: h(() => [
232
- k(l.$slots, `split-${t.key}`)
238
+ k(n.$slots, `split-${l.key}`)
233
239
  ]),
234
240
  key: "1"
235
241
  } : void 0
@@ -238,16 +244,16 @@ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }
238
244
  ]),
239
245
  _("div", {
240
246
  class: "lkt-menu-outside",
241
- onClick: J
247
+ onClick: w
242
248
  })
243
- ], 2));
249
+ ], 10, ke));
244
250
  }
245
- }), Ce = {
246
- install: (a) => {
247
- a.component("lkt-menu") === void 0 && a.component("lkt-menu", ye);
251
+ }), $e = {
252
+ install: (s) => {
253
+ s.component("lkt-menu") === void 0 && s.component("lkt-menu", fe);
248
254
  }
249
- }, Oe = (a) => (M.toggleSlot = a, !0);
255
+ }, Oe = (s) => (M.toggleSlot = s, !0);
250
256
  export {
251
- Ce as default,
257
+ $e as default,
252
258
  Oe as setMenuToggleSlot
253
259
  };