lkt-menu 2.0.7 → 2.0.9

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}.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}
package/dist/build.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare namespace Ve {
2
- function install(r: any): void;
1
+ declare namespace Ce {
2
+ function install(a: any): void;
3
3
  }
4
- declare function $e(r: any): boolean;
5
- export { Ve as default, $e as setMenuToggleSlot };
4
+ declare function Oe(a: any): boolean;
5
+ export { Ce 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 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";
3
+ import { useRouter as ue } from "vue-router";
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 {
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
+ U.toggleSlot = "", U.debugEnabled = !1;
11
+ let M = U;
12
+ const ie = { class: "lkt-menu-entry-main" }, re = { class: "lkt-entry-content" }, ce = {
13
13
  key: 0,
14
14
  class: "lkt-menu-entry-icon"
15
- }, ie = {
15
+ }, de = {
16
16
  key: 1,
17
17
  class: "lkt-menu-entry-text"
18
- }, ce = {
18
+ }, pe = {
19
19
  key: 0,
20
20
  class: "lkt-menu-entry-children"
21
- }, de = /* @__PURE__ */ G({
21
+ }, ve = /* @__PURE__ */ Q({
22
22
  __name: "MenuItem",
23
23
  props: {
24
24
  modelValue: { default: () => ({}) }
@@ -26,128 +26,132 @@ 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(a, { emit: V }) {
30
+ const o = V, v = a, e = T(v.modelValue), r = X(), i = 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
+ }, 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({
35
35
  entry: e.value
36
36
  }), 1;
37
- }, M = m(() => i["icon-" + e.value.key] || e.value.icon !== ""), L = m(() => {
37
+ }, D = d(() => r["icon-" + e.value.key] || e.value.icon !== ""), w = d(() => {
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
+ }), F = d(() => {
41
+ var n;
42
+ return G([], ((n = e.value) == null ? void 0 : n.children) ?? []);
43
+ }), J = d(() => {
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 n in r)
46
+ n.startsWith("icon-") && F.value.includes(n.substring(5)) && t.push(n);
47
47
  return t;
48
- }), n = m(() => e.value.isActive ? !0 : typeof e.value.isActiveChecker == "function" ? !!e.value.isActiveChecker({
48
+ }), N = d(() => 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), l = d(() => !!M.toggleSlot), u = d(() => M.toggleSlot);
51
+ return S(() => v.modelValue, (t) => {
52
52
  e.value = t;
53
- }, { deep: !0 }), U(e, (t) => {
54
- a("update:modelValue", t);
53
+ }, { deep: !0 }), S(e, (t) => {
54
+ o("update:modelValue", t);
55
55
  }, { deep: !0 }), Y(() => {
56
- var o, I, B;
57
- let t = $ == null ? void 0 : $.currentRoute;
56
+ var n, m, B;
57
+ let t = i == null ? void 0 : i.currentRoute;
58
58
  if (t) {
59
- if (t.value.path === ((o = e.value.anchor) == null ? void 0 : o.to))
59
+ if (t.value.path === ((n = e.value.anchor) == null ? void 0 : n.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) {
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);
66
- }), C && (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);
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);
72
- return u(), d("div", {
73
- class: O(["lkt-menu-entry", L.value])
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])
74
74
  }, [
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 ? {
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 ? {
78
78
  name: "tooltip",
79
- fn: f(() => [
79
+ fn: h(() => [
80
80
  k(t.$slots, "tooltip")
81
81
  ]),
82
82
  key: "0"
83
83
  } : void 0,
84
- v(i).split ? {
84
+ p(r).split ? {
85
85
  name: "split",
86
- fn: f(() => [
86
+ fn: h(() => [
87
87
  k(t.$slots, "split")
88
88
  ]),
89
89
  key: "1"
90
90
  } : 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)
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 = $)
95
95
  }), {
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, {
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, {
100
100
  key: e.value.key,
101
101
  entry: e.value
102
- }) : e.value.icon !== "" ? (u(), d("i", {
102
+ }) : e.value.icon !== "" ? (s(), c("i", {
103
103
  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)
104
+ class: g(e.value.icon)
105
+ }, null, 2)) : f("", !0)
106
+ ])) : f("", !0),
107
+ $ !== "" ? (s(), c("div", de, x($), 1)) : f("", !0)
108
108
  ])
109
109
  ]),
110
110
  _: 3
111
111
  }, 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", {
112
+ e.value.type !== p(R).Button && e.value.children && ((b = e.value.children) == null ? void 0 : b.length) > 0 ? (s(), c("div", {
113
113
  key: 4,
114
114
  class: "lkt-menu-entry-toggle",
115
- onClick: D
115
+ onClick: K
116
116
  }, [
117
- s.value ? (u(), h(x(c.value), {
117
+ l.value ? (s(), y(ee(u.value), {
118
118
  key: 0,
119
- class: O(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
- }, null, 8, ["class"])) : (u(), d("div", {
119
+ class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
+ }, null, 8, ["class"])) : (s(), c("div", {
121
121
  key: 1,
122
- class: O(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
123
- }, o[1] || (o[1] = [
122
+ class: g(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
123
+ }, n[1] || (n[1] = [
124
124
  _("i", { class: "lkt-icn-angle-bottom" }, null, -1)
125
125
  ]), 2))
126
- ])) : g("", !0)
126
+ ])) : f("", !0)
127
127
  ]),
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)
128
+ e.value.isOpened ? (s(), c("div", pe, [
129
+ (s(!0), c(Z, null, P(e.value.children, ($, z) => (s(), y(L, {
130
+ modelValue: e.value.children[z],
131
+ "onUpdate:modelValue": (E) => e.value.children[z] = E,
132
+ key: e.value.children[z].key
133
+ }, q({ _: 2 }, [
134
+ P(J.value, (E) => ({
135
+ name: E,
136
+ fn: h(() => [
137
+ k(t.$slots, E)
138
138
  ])
139
139
  }))
140
140
  ]), 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
141
- ])) : g("", !0)
141
+ ])) : f("", !0)
142
142
  ], 2);
143
143
  };
144
144
  }
145
- }), ve = { class: "lkt-menu" }, pe = { class: "lkt-menu-main" }, me = { class: "lkt-menu-entries" }, ke = /* @__PURE__ */ G({
145
+ }), me = { class: "lkt-menu-main" }, ke = { class: "lkt-menu-entries" }, ye = /* @__PURE__ */ Q({
146
146
  __name: "LktMenu",
147
- props: /* @__PURE__ */ ee({
147
+ props: /* @__PURE__ */ te({
148
148
  modelValue: {},
149
+ type: {},
150
+ menuKey: { type: [String, Number, Function] },
151
+ hiddenPosition: {},
152
+ closeOnClickOutside: { type: Boolean },
149
153
  http: {}
150
- }, te(le)),
154
+ }, ne(oe)),
151
155
  emits: [
152
156
  "update:modelValue",
153
157
  "click-outside",
@@ -156,83 +160,94 @@ const se = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
156
160
  "response",
157
161
  "error"
158
162
  ],
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;
163
+ setup(a, { emit: V }) {
164
+ 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;
167
171
  };
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(() => {
172
+ S(() => W.config.value, (l) => {
173
+ }, { deep: !0 });
174
+ const K = d(() => {
175
+ let l = [
176
+ `type-${o.type}`
177
+ ];
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
+ });
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(() => {
171
183
  let l = [];
172
- for (let n in e)
173
- n.startsWith("icon-") && D.value.includes(n.substring(5)) && l.push(n);
184
+ for (let u in r)
185
+ u.startsWith("icon-") && D.value.includes(u.substring(5)) && l.push(u);
174
186
  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);
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);
183
195
  });
184
- }, L = () => {
185
- p("click-outside");
196
+ }, J = () => {
197
+ o.closeOnClickOutside && W.closeMenu(o.menuKey), v("click-outside");
186
198
  };
187
- return U(() => a.modelValue, (l) => {
199
+ return S(() => o.modelValue, (l) => {
188
200
  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)
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])
207
+ }, [
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)
215
+ }, q({ _: 2 }, [
216
+ P(w.value, (m) => ({
217
+ name: m,
218
+ fn: h(() => [
219
+ k(l.$slots, m)
205
220
  ])
206
221
  })),
207
- v(e)[`tooltip-${s.key}`] ? {
222
+ p(r)[`tooltip-${t.key}`] ? {
208
223
  name: "tooltip",
209
- fn: f(() => [
210
- k(l.$slots, `tooltip-${s.key}`)
224
+ fn: h(() => [
225
+ k(l.$slots, `tooltip-${t.key}`)
211
226
  ]),
212
227
  key: "0"
213
228
  } : void 0,
214
- v(e)[`split-${s.key}`] ? {
229
+ p(r)[`split-${t.key}`] ? {
215
230
  name: "split",
216
- fn: f(() => [
217
- k(l.$slots, `split-${s.key}`)
231
+ fn: h(() => [
232
+ k(l.$slots, `split-${t.key}`)
218
233
  ]),
219
234
  key: "1"
220
235
  } : void 0
221
- ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 128))
236
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 256))
222
237
  ])
223
238
  ]),
224
239
  _("div", {
225
240
  class: "lkt-menu-outside",
226
- onClick: L
241
+ onClick: J
227
242
  })
228
- ]));
243
+ ], 2));
229
244
  }
230
- }), Ve = {
231
- install: (r) => {
232
- r.component("lkt-menu") === void 0 && r.component("lkt-menu", ke);
245
+ }), Ce = {
246
+ install: (a) => {
247
+ a.component("lkt-menu") === void 0 && a.component("lkt-menu", ye);
233
248
  }
234
- }, $e = (r) => (A.toggleSlot = r, !0);
249
+ }, Oe = (a) => (M.toggleSlot = a, !0);
235
250
  export {
236
- Ve as default,
237
- $e as setMenuToggleSlot
251
+ Ce as default,
252
+ Oe as setMenuToggleSlot
238
253
  };