lkt-menu 2.0.8 → 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-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)}.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)}
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 Ve {
2
- function install(r: any): void;
1
+ declare namespace $e {
2
+ function install(s: any): void;
3
3
  }
4
- declare function $e(r: any): boolean;
5
- export { Ve as default, $e 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 G, ref as W, useSlots as Q, computed as m, watch as U, onMounted as Y, resolveComponent as R, createElementBlock as d, openBlock as u, normalizeClass as O, createElementVNode as _, createCommentVNode as g, createBlock as h, unref as v, normalizeProps as P, mergeProps as j, createSlots as H, withCtx as f, renderSlot as k, toDisplayString as Z, resolveDynamicComponent as x, Fragment as X, renderList as w, mergeDefaults as ee } from "vue";
2
- import { MenuEntryType as T, getDefaultValues as te, Menu as le } from "lkt-vue-kernel";
3
- import { useRouter as ne } from "vue-router";
4
- import { DataState as oe } from "lkt-data-state";
5
- import { httpCall as ue } from "lkt-http-client";
6
- const q = (r, V) => (V.forEach((a) => {
7
- a.key && !r.includes(a.key) && r.push(a.key), a.children && a.children.length > 0 && q(r, a.children);
8
- }), r), J = class J {
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
+ import { useRouter as ue } from "vue-router";
4
+ import { DataState as se } from "lkt-data-state";
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
- J.toggleSlot = "", J.debugEnabled = !1;
11
- let A = J;
12
- const se = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }, re = {
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
- }, ie = {
15
+ }, pe = {
16
16
  key: 1,
17
17
  class: "lkt-menu-entry-text"
18
- }, ce = {
18
+ }, ve = {
19
19
  key: 0,
20
20
  class: "lkt-menu-entry-children"
21
- }, de = /* @__PURE__ */ G({
21
+ }, me = /* @__PURE__ */ X({
22
22
  __name: "MenuItem",
23
23
  props: {
24
24
  modelValue: { default: () => ({}) }
@@ -26,128 +26,133 @@ const se = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
26
26
  emits: [
27
27
  "update:modelValue"
28
28
  ],
29
- setup(r, { emit: V }) {
30
- const a = V, p = r, e = W(p.modelValue), i = Q(), $ = ne(), y = W(!1), D = () => {
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
- }, K = () => {
33
- var t, o;
34
- return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && D(), typeof ((o = e.value.events) == null ? void 0 : o.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
- }, M = m(() => i["icon-" + e.value.key] || e.value.icon !== ""), L = m(() => {
37
+ }, D = r(() => c["icon-" + e.value.key] || e.value.icon !== ""), P = r(() => {
38
38
  let t = [];
39
- return M.value && t.push("has-icon"), y.value && t.push("is-active"), e.value.type && t.push(`is-${e.value.type}`), t.join(" ");
40
- }), E = m(() => {
41
- var o;
42
- return q([], ((o = e.value) == null ? void 0 : o.children) ?? []);
43
- }), l = m(() => {
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
+ }), 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 o in i)
46
- o.startsWith("icon-") && E.value.includes(o.substring(5)) && t.push(o);
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 = m(() => 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), s = m(() => !!A.toggleSlot), c = m(() => A.toggleSlot);
51
- return U(() => p.modelValue, (t) => {
50
+ }) : !1), N = r(() => !!M.toggleSlot), n = r(() => M.toggleSlot);
51
+ return S(() => v.modelValue, (t) => {
52
52
  e.value = t;
53
- }, { deep: !0 }), U(e, (t) => {
54
- a("update:modelValue", t);
55
- }, { deep: !0 }), Y(() => {
56
- var o, I, B;
57
- let t = $ == null ? void 0 : $.currentRoute;
53
+ }, { deep: !0 }), S(e, (t) => {
54
+ o("update:modelValue", t);
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 === ((o = e.value.anchor) == null ? void 0 : o.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" && ((I = e.value.children) == null ? void 0 : I.length) > 0) {
61
+ else if (typeof e.value.children < "u" && ((i = e.value.children) == null ? void 0 : i.length) > 0) {
62
62
  let C = !1;
63
- (B = e.value.children) == null || B.forEach((z) => {
64
- var S;
65
- t.value.path === ((S = z.anchor) == null ? void 0 : S.to) && (C = !0);
63
+ (m = e.value.children) == null || m.forEach((J) => {
64
+ var $;
65
+ t.value.path === (($ = J.anchor) == null ? void 0 : $.to) && (C = !0);
66
66
  }), C && (e.value.isOpened = !0);
67
67
  }
68
68
  }
69
- }), (t, o) => {
70
- var S;
71
- const I = R("lkt-button"), B = R("lkt-header"), C = R("lkt-anchor"), z = R("menu-item", !0);
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
72
  return u(), d("div", {
73
- class: O(["lkt-menu-entry", L.value])
73
+ class: g(["lkt-menu-entry", P.value]),
74
+ id: `entry-${e.value.key}`
74
75
  }, [
75
- _("div", se, [
76
- e.value.type === v(T).Button ? (u(), h(I, P(j({ key: 0 }, e.value.button)), H({ _: 2 }, [
77
- v(i).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
- fn: f(() => [
80
+ fn: h(() => [
80
81
  k(t.$slots, "tooltip")
81
82
  ]),
82
83
  key: "0"
83
84
  } : void 0,
84
- v(i).split ? {
85
+ p(c).split ? {
85
86
  name: "split",
86
- fn: f(() => [
87
+ fn: h(() => [
87
88
  k(t.$slots, "split")
88
89
  ]),
89
90
  key: "1"
90
91
  } : void 0
91
- ]), 1040)) : e.value.type === v(T).Header ? (u(), h(B, P(j({ key: 1 }, e.value.header)), null, 16)) : e.value.type === v(T).Anchor ? (u(), h(C, P(j({ key: 2 }, e.value.anchor)), null, 16)) : (u(), h(C, j({ key: 3 }, e.value.anchor, {
92
- "on-click": K,
93
- "is-active": n.value,
94
- onActive: o[0] || (o[0] = (b) => y.value = b)
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: f(({ text: b }) => [
97
- _("div", ae, [
98
- M.value ? (u(), d("div", re, [
99
- v(i)["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
103
  }) : e.value.icon !== "" ? (u(), d("i", {
103
104
  key: 1,
104
- class: O(e.value.icon)
105
- }, null, 2)) : g("", !0)
106
- ])) : g("", !0),
107
- b !== "" ? (u(), d("div", ie, Z(b), 1)) : g("", !0)
105
+ class: g(e.value.icon)
106
+ }, null, 2)) : f("", !0)
107
+ ])) : 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 !== v(T).Button && e.value.children && ((S = e.value.children) == null ? void 0 : S.length) > 0 ? (u(), d("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
- onClick: D
116
+ onClick: K
116
117
  }, [
117
- s.value ? (u(), h(x(c.value), {
118
+ N.value ? (u(), y(te(n.value), {
118
119
  key: 0,
119
- class: O(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
+ class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
121
  }, null, 8, ["class"])) : (u(), d("div", {
121
122
  key: 1,
122
- class: O(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
123
- }, o[1] || (o[1] = [
123
+ class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
124
+ }, l[1] || (l[1] = [
124
125
  _("i", { class: "lkt-icn-angle-bottom" }, null, -1)
125
126
  ]), 2))
126
- ])) : g("", !0)
127
+ ])) : f("", !0)
127
128
  ]),
128
- e.value.isOpened ? (u(), d("div", ce, [
129
- (u(!0), d(X, null, w(e.value.children, (b, F) => (u(), h(z, {
130
- modelValue: e.value.children[F],
131
- "onUpdate:modelValue": (N) => e.value.children[F] = N,
132
- key: e.value.children[F].key
133
- }, H({ _: 2 }, [
134
- w(l.value, (N) => ({
135
- name: N,
136
- fn: f(() => [
137
- k(t.$slots, N)
129
+ e.value.isOpened ? (u(), d("div", ve, [
130
+ (u(!0), d(x, null, j(e.value.children, (O, z) => (u(), y(J, {
131
+ modelValue: e.value.children[z],
132
+ "onUpdate:modelValue": (B) => e.value.children[z] = B,
133
+ key: e.value.children[z].key
134
+ }, q({ _: 2 }, [
135
+ j(w.value, (B) => ({
136
+ name: B,
137
+ fn: h(() => [
138
+ k(t.$slots, B)
138
139
  ])
139
140
  }))
140
141
  ]), 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
141
- ])) : g("", !0)
142
- ], 2);
142
+ ])) : f("", !0)
143
+ ], 10, ae);
143
144
  };
144
145
  }
145
- }), ve = { class: "lkt-menu" }, pe = { class: "lkt-menu-main" }, me = { class: "lkt-menu-entries" }, ke = /* @__PURE__ */ G({
146
+ }), ke = ["role"], ye = { class: "lkt-menu-main" }, he = { class: "lkt-menu-entries" }, fe = /* @__PURE__ */ X({
146
147
  __name: "LktMenu",
147
- props: /* @__PURE__ */ ee({
148
+ props: /* @__PURE__ */ le({
148
149
  modelValue: {},
150
+ type: {},
151
+ menuKey: { type: [String, Number, Function] },
152
+ hiddenPosition: {},
153
+ closeOnClickOutside: { type: Boolean },
149
154
  http: {}
150
- }, te(le)),
155
+ }, ne(oe)),
151
156
  emits: [
152
157
  "update:modelValue",
153
158
  "click-outside",
@@ -156,83 +161,99 @@ const se = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
156
161
  "response",
157
162
  "error"
158
163
  ],
159
- setup(r, { emit: V }) {
160
- var E;
161
- const a = r, p = V, e = Q(), i = W(a.modelValue), $ = (l) => {
162
- let n = {};
163
- typeof l == "object" && Object.keys(l).length > 0 && (n = JSON.parse(JSON.stringify(l)));
164
- for (let s in n)
165
- (Array.isArray(n[s]) || typeof n[s] == "object") && (n[s] = JSON.stringify(n[s]));
166
- return n;
164
+ setup(s, { emit: V }) {
165
+ var N;
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;
167
172
  };
168
- let y = new oe({});
169
- y.increment($(((E = a.http) == null ? void 0 : E.data) ?? {}));
170
- const D = m(() => q([], i.value)), K = m(() => {
171
- let l = [];
172
- for (let n in e)
173
- n.startsWith("icon-") && D.value.includes(n.substring(5)) && l.push(n);
174
- return l;
175
- }), M = () => {
176
- var n, s;
177
- if (!((n = a.http) != null && n.resource)) return;
178
- let l = y.getData();
179
- p("loading"), ue((s = a.http) == null ? void 0 : s.resource, l).then((c) => {
180
- y.turnStoredIntoOriginal(), i.value = c.data, p("results", c.data), p("response", c);
181
- }).catch((c) => {
182
- p("error", c);
173
+ S(() => W.config.value, (n) => {
174
+ }, { deep: !0 });
175
+ const K = r(() => {
176
+ let n = [
177
+ `type-${o.type}`
178
+ ];
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(" ");
180
+ });
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);
183
196
  });
184
- }, L = () => {
185
- p("click-outside");
197
+ }, w = () => {
198
+ o.closeOnClickOutside && W.closeMenu(o.menuKey), v("click-outside");
186
199
  };
187
- return U(() => a.modelValue, (l) => {
188
- i.value = l;
189
- }, { deep: !0 }), U(i, (l) => {
190
- p("update:modelValue", l);
191
- }, { deep: !0 }), M(), (l, n) => (u(), d("div", ve, [
192
- _("div", pe, [
193
- v(e).before ? k(l.$slots, "before", { key: 0 }) : g("", !0),
194
- _("div", me, [
195
- (u(!0), d(X, null, w(i.value, (s, c) => (u(), h(de, {
196
- modelValue: i.value[c],
197
- "onUpdate:modelValue": (t) => i.value[c] = t,
198
- key: s.key,
199
- class: O(s.class)
200
- }, H({ _: 2 }, [
201
- w(K.value, (t) => ({
202
- name: t,
203
- fn: f(() => [
204
- k(l.$slots, t)
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
213
+ }, [
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)
221
+ }, q({ _: 2 }, [
222
+ j(P.value, (m) => ({
223
+ name: m,
224
+ fn: h(() => [
225
+ k(n.$slots, m)
205
226
  ])
206
227
  })),
207
- v(e)[`tooltip-${s.key}`] ? {
228
+ p(c)[`tooltip-${l.key}`] ? {
208
229
  name: "tooltip",
209
- fn: f(() => [
210
- k(l.$slots, `tooltip-${s.key}`)
230
+ fn: h(() => [
231
+ k(n.$slots, `tooltip-${l.key}`)
211
232
  ]),
212
233
  key: "0"
213
234
  } : void 0,
214
- v(e)[`split-${s.key}`] ? {
235
+ p(c)[`split-${l.key}`] ? {
215
236
  name: "split",
216
- fn: f(() => [
217
- k(l.$slots, `split-${s.key}`)
237
+ fn: h(() => [
238
+ k(n.$slots, `split-${l.key}`)
218
239
  ]),
219
240
  key: "1"
220
241
  } : void 0
221
- ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 128))
242
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 256))
222
243
  ])
223
244
  ]),
224
245
  _("div", {
225
246
  class: "lkt-menu-outside",
226
- onClick: L
247
+ onClick: w
227
248
  })
228
- ]));
249
+ ], 10, ke));
229
250
  }
230
- }), Ve = {
231
- install: (r) => {
232
- r.component("lkt-menu") === void 0 && r.component("lkt-menu", ke);
251
+ }), $e = {
252
+ install: (s) => {
253
+ s.component("lkt-menu") === void 0 && s.component("lkt-menu", fe);
233
254
  }
234
- }, $e = (r) => (A.toggleSlot = r, !0);
255
+ }, Oe = (s) => (M.toggleSlot = s, !0);
235
256
  export {
236
- Ve as default,
237
- $e as setMenuToggleSlot
257
+ $e as default,
258
+ Oe as setMenuToggleSlot
238
259
  };