lkt-menu 2.0.8 → 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 +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +157 -142
- package/dist/components/MenuItem.vue.d.ts +25034 -3470
- package/dist/index.d.ts +1 -0
- package/dist/lib-components/LktMenu.vue.d.ts +16132 -1746
- package/package.json +1 -1
- package/theme/default.css +8 -0
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
|
|
2
|
-
function install(
|
|
1
|
+
declare namespace Ce {
|
|
2
|
+
function install(a: any): void;
|
|
3
3
|
}
|
|
4
|
-
declare function
|
|
5
|
-
export {
|
|
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
|
|
2
|
-
import { MenuEntryType as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { DataState as
|
|
5
|
-
import { httpCall as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
}),
|
|
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
|
-
|
|
11
|
-
let
|
|
12
|
-
const
|
|
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
|
-
},
|
|
15
|
+
}, de = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "lkt-menu-entry-text"
|
|
18
|
-
},
|
|
18
|
+
}, pe = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "lkt-menu-entry-children"
|
|
21
|
-
},
|
|
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(
|
|
30
|
-
const
|
|
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
|
-
},
|
|
33
|
-
var t,
|
|
34
|
-
return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick &&
|
|
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
|
-
},
|
|
37
|
+
}, D = d(() => r["icon-" + e.value.key] || e.value.icon !== ""), w = d(() => {
|
|
38
38
|
let t = [];
|
|
39
|
-
return
|
|
40
|
-
}),
|
|
41
|
-
var
|
|
42
|
-
return
|
|
43
|
-
}),
|
|
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
|
|
46
|
-
|
|
45
|
+
for (let n in r)
|
|
46
|
+
n.startsWith("icon-") && F.value.includes(n.substring(5)) && t.push(n);
|
|
47
47
|
return t;
|
|
48
|
-
}),
|
|
48
|
+
}), N = d(() => e.value.isActive ? !0 : typeof e.value.isActiveChecker == "function" ? !!e.value.isActiveChecker({
|
|
49
49
|
entry: e.value
|
|
50
|
-
}) : !1),
|
|
51
|
-
return
|
|
50
|
+
}) : !1), l = d(() => !!M.toggleSlot), u = d(() => M.toggleSlot);
|
|
51
|
+
return S(() => v.modelValue, (t) => {
|
|
52
52
|
e.value = t;
|
|
53
|
-
}, { deep: !0 }),
|
|
54
|
-
|
|
53
|
+
}, { deep: !0 }), S(e, (t) => {
|
|
54
|
+
o("update:modelValue", t);
|
|
55
55
|
}, { deep: !0 }), Y(() => {
|
|
56
|
-
var
|
|
57
|
-
let t =
|
|
56
|
+
var n, m, B;
|
|
57
|
+
let t = i == null ? void 0 : i.currentRoute;
|
|
58
58
|
if (t) {
|
|
59
|
-
if (t.value.path === ((
|
|
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" && ((
|
|
62
|
-
let
|
|
63
|
-
(B = e.value.children) == null || B.forEach((
|
|
64
|
-
var
|
|
65
|
-
t.value.path === ((
|
|
66
|
-
}),
|
|
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,
|
|
70
|
-
var
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
class:
|
|
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",
|
|
76
|
-
e.value.type ===
|
|
77
|
-
|
|
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:
|
|
79
|
+
fn: h(() => [
|
|
80
80
|
k(t.$slots, "tooltip")
|
|
81
81
|
]),
|
|
82
82
|
key: "0"
|
|
83
83
|
} : void 0,
|
|
84
|
-
|
|
84
|
+
p(r).split ? {
|
|
85
85
|
name: "split",
|
|
86
|
-
fn:
|
|
86
|
+
fn: h(() => [
|
|
87
87
|
k(t.$slots, "split")
|
|
88
88
|
]),
|
|
89
89
|
key: "1"
|
|
90
90
|
} : void 0
|
|
91
|
-
]), 1040)) : e.value.type ===
|
|
92
|
-
"on-click":
|
|
93
|
-
"is-active":
|
|
94
|
-
onActive:
|
|
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:
|
|
97
|
-
_("div",
|
|
98
|
-
|
|
99
|
-
|
|
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 !== "" ? (
|
|
102
|
+
}) : e.value.icon !== "" ? (s(), c("i", {
|
|
103
103
|
key: 1,
|
|
104
|
-
class:
|
|
105
|
-
}, null, 2)) :
|
|
106
|
-
])) :
|
|
107
|
-
|
|
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 !==
|
|
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:
|
|
115
|
+
onClick: K
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
l.value ? (s(), y(ee(u.value), {
|
|
118
118
|
key: 0,
|
|
119
|
-
class:
|
|
120
|
-
}, null, 8, ["class"])) : (
|
|
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:
|
|
123
|
-
},
|
|
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
|
-
])) :
|
|
126
|
+
])) : f("", !0)
|
|
127
127
|
]),
|
|
128
|
-
e.value.isOpened ? (
|
|
129
|
-
(
|
|
130
|
-
modelValue: e.value.children[
|
|
131
|
-
"onUpdate:modelValue": (
|
|
132
|
-
key: e.value.children[
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
name:
|
|
136
|
-
fn:
|
|
137
|
-
k(t.$slots,
|
|
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
|
-
])) :
|
|
141
|
+
])) : f("", !0)
|
|
142
142
|
], 2);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), me = { class: "lkt-menu-main" }, ke = { class: "lkt-menu-entries" }, ye = /* @__PURE__ */ Q({
|
|
146
146
|
__name: "LktMenu",
|
|
147
|
-
props: /* @__PURE__ */
|
|
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
|
-
},
|
|
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(
|
|
160
|
-
var
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
typeof l == "object" && Object.keys(l).length > 0 && (
|
|
164
|
-
for (let
|
|
165
|
-
(Array.isArray(
|
|
166
|
-
return
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
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
|
|
173
|
-
|
|
184
|
+
for (let u in r)
|
|
185
|
+
u.startsWith("icon-") && D.value.includes(u.substring(5)) && l.push(u);
|
|
174
186
|
return l;
|
|
175
|
-
}),
|
|
176
|
-
var
|
|
177
|
-
if (!((
|
|
178
|
-
let l =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}).catch((
|
|
182
|
-
|
|
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
|
-
},
|
|
185
|
-
|
|
196
|
+
}, J = () => {
|
|
197
|
+
o.closeOnClickOutside && W.closeMenu(o.menuKey), v("click-outside");
|
|
186
198
|
};
|
|
187
|
-
return
|
|
199
|
+
return S(() => o.modelValue, (l) => {
|
|
188
200
|
i.value = l;
|
|
189
|
-
}, { deep: !0 }),
|
|
190
|
-
|
|
191
|
-
}, { deep: !0 }),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
|
|
222
|
+
p(r)[`tooltip-${t.key}`] ? {
|
|
208
223
|
name: "tooltip",
|
|
209
|
-
fn:
|
|
210
|
-
k(l.$slots, `tooltip-${
|
|
224
|
+
fn: h(() => [
|
|
225
|
+
k(l.$slots, `tooltip-${t.key}`)
|
|
211
226
|
]),
|
|
212
227
|
key: "0"
|
|
213
228
|
} : void 0,
|
|
214
|
-
|
|
229
|
+
p(r)[`split-${t.key}`] ? {
|
|
215
230
|
name: "split",
|
|
216
|
-
fn:
|
|
217
|
-
k(l.$slots, `split-${
|
|
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"]))),
|
|
236
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 256))
|
|
222
237
|
])
|
|
223
238
|
]),
|
|
224
239
|
_("div", {
|
|
225
240
|
class: "lkt-menu-outside",
|
|
226
|
-
onClick:
|
|
241
|
+
onClick: J
|
|
227
242
|
})
|
|
228
|
-
]));
|
|
243
|
+
], 2));
|
|
229
244
|
}
|
|
230
|
-
}),
|
|
231
|
-
install: (
|
|
232
|
-
|
|
245
|
+
}), Ce = {
|
|
246
|
+
install: (a) => {
|
|
247
|
+
a.component("lkt-menu") === void 0 && a.component("lkt-menu", ye);
|
|
233
248
|
}
|
|
234
|
-
},
|
|
249
|
+
}, Oe = (a) => (M.toggleSlot = a, !0);
|
|
235
250
|
export {
|
|
236
|
-
|
|
237
|
-
|
|
251
|
+
Ce as default,
|
|
252
|
+
Oe as setMenuToggleSlot
|
|
238
253
|
};
|