lkt-menu 2.0.4 → 2.0.6

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/README.md CHANGED
@@ -1,250 +0,0 @@
1
- # LKT Button
2
- A simple button component for Vue.js 3.0.
3
-
4
- ## Installation
5
-
6
- ### With npm
7
-
8
- ```bash
9
- npm i -S lkt-button
10
- ```
11
-
12
- ## Typical use:
13
- In your main.js
14
- ```js
15
- import LktButton from 'lkt-button';
16
-
17
- app.use(LktButton);
18
- ```
19
-
20
- App use options:
21
-
22
- * `defaultState` string (default: undefined) => Set a default state for all buttons
23
-
24
- In your component:
25
-
26
- ```html
27
- <lkt-button v-on:click="doSomething" v-bind:disabled="disabledChecker"></lkt-button>
28
- ```
29
- ```js
30
- export default {
31
- methods: {
32
- doSomething() {
33
- console.log('May the force be with you');
34
- },
35
- disabledChecker() {
36
- return false;
37
- },
38
-
39
- }
40
- }
41
- ```
42
-
43
- ## Props
44
-
45
- ### type
46
- Type: `String`<br>
47
- Required: `false`<br>
48
- Default: `button` <br>
49
- Options: `button`, `submit`, `reset`
50
-
51
- Determines which kind of button will be.
52
- ```html
53
- <lkt-button type="submit"></lkt-button>
54
- ```
55
-
56
- ### name
57
- Type: `String`<br>
58
- Required: `false`<br>
59
- Default: `a random string is generated` <br>
60
-
61
- An identifier emitted on click.
62
- ```html
63
- <lkt-button name="sendMessage"></lkt-button>
64
- ```
65
-
66
- ### value
67
- Type: `String`<br>
68
- Required: `false`<br>
69
- Default: `'`
70
-
71
- Set a value for form buttons. Emitted on click.
72
- ```html
73
- <lkt-button v-bind:value="myButton"></lkt-button>
74
- ```
75
-
76
- ### palette
77
- Type: `String`<br>
78
- Required: `false`<br>
79
- Default: `''`
80
-
81
- Appends a palette classname. It's useful for palette control and styling.
82
- ```html
83
- <lkt-button palette="calculating"></lkt-button>
84
- ```
85
-
86
- ### disabled
87
- Type: `Boolean`<br>
88
- Required: `false`<br>
89
- Default: `false`
90
-
91
- Determines if button is disabled or not.
92
- ```html
93
- <lkt-button disabled></lkt-button>
94
- <lkt-button v-bind:disabled="disabledChecker"></lkt-button>
95
- ```
96
-
97
-
98
- ### Events
99
-
100
- * LktButton emits these events:
101
-
102
- - `click`
103
-
104
- HTML:
105
- ```HTML
106
- <lkt-button v-on:click="doSomething"></lkt-button>
107
- ```
108
-
109
- ### Slots
110
-
111
- #### default slot
112
- This slot allows you to fill the button with whatever you want.
113
-
114
- ```html
115
- <lkt-button name="testButton" v-on:click="doSomething">
116
- Click, me!
117
- </lkt-button>
118
- ```
119
-
120
- #### prev/next slot
121
- These slots are designed to add something before/after the text, like an icon.
122
-
123
- ```html
124
- <lkt-button name="testButton" v-on:click="doSomething">
125
- Click, me!
126
- <template v-slot:prev>
127
- <i class="font-icon"></i>
128
- </template>
129
- <template v-slot:next>
130
- <i class="font-icon2"></i>
131
- </template>
132
- </lkt-button>
133
- ```
134
-
135
- #### prev-loading/next-loading slot
136
- Same as prev/next but only appears if button is loading
137
-
138
- ```html
139
- <lkt-button name="testButton" v-on:click="doSomething">
140
- Click, me!
141
- <template v-slot:prev-loading>
142
- <i class="font-icon"></i>
143
- </template>
144
- <template v-slot:next-loading>
145
- <i class="font-icon2"></i>
146
- </template>
147
- </lkt-button>
148
- ```
149
-
150
- ## Styling
151
-
152
- ### Style configuration
153
-
154
- If you want to modify the default style without having to override styles in CSS, you can use the configurator like this:
155
-
156
- ```scss
157
- @use "node_modules/lkt-button/lkt-button";
158
-
159
- @include lkt-button.configure((border-width: 2px)); //opts list
160
- ```
161
-
162
- #### Available style options
163
- | Option | Default value |
164
- |---------------|---------------------------------------|
165
- | border-width | 1px |
166
- | border-style | solid |
167
- | border-color | #ddd |
168
- | color | #333 |
169
- | background | transparent |
170
- | height | 35px |
171
- | min-width | 150px |
172
- | padding | 7px |
173
- | slot-gap | 5px |
174
- | font-weight | 300 |
175
- | line-height | 1 |
176
- | text-align | center |
177
- | cursor | default |
178
- | box-shadow | none |
179
- | border-radius | lkt-theme.$primary-border-radius |
180
- | transition | lkt-theme.$primary-transition |
181
- | font-size | lkt-theme.$primary-button-font-size |
182
- | font-family | lkt-theme.$primary-button-font-family |
183
-
184
- ### Style generation
185
-
186
- The following example will show you how to generate styles.
187
-
188
- ```scss
189
- @use "node_modules/lkt-button/lkt-button";
190
-
191
- @include lkt-button.generate();
192
- ```
193
-
194
- #### Theme modifiers
195
-
196
- If ```lkt-theme``` is configured, the ```generate``` mixin also will generate some colored styles if colors were configured in ```lkt-theme```.
197
-
198
- These modifiers will be the way:
199
-
200
- lkt-button--<color>
201
- lkt-button--<color>-dark
202
- lkt-button--<color>-darker
203
- lkt-button--<color>-light
204
- lkt-button--<color>-lighter
205
-
206
- For example, if you already set up info color and info color dark, it will generate the following modifiers:
207
-
208
- lkt-button--info
209
- lkt-button--info-dark
210
-
211
- All ```lkt-theme``` colors can generate a modifier but disabled (which generates styles if button is disabled) and focus (which is not intended for this component).
212
-
213
- Some example could be:
214
-
215
- lkt-button--info
216
- lkt-button--info-dark
217
- lkt-button--info-darker
218
- lkt-button--info-light
219
- lkt-button--info-lighter
220
-
221
- lkt-button--success
222
- lkt-button--success-dark
223
- lkt-button--success-darker
224
- lkt-button--success-light
225
- lkt-button--success-lighter
226
-
227
- lkt-button--warning
228
- lkt-button--warning-dark
229
- lkt-button--warning-darker
230
- lkt-button--warning-light
231
- lkt-button--warning-lighter
232
-
233
- #### Using CSS Selectors in HTML
234
- ```html
235
- <lkt-button class="lkt-button--info">More info</lkt-button>
236
-
237
- <lkt-button class="lkt-button--success-light">Confirm action</lkt-button>
238
- ```
239
-
240
- #### The ```palette``` prop
241
- You can apply ```lkt-theme``` modifiers with the palette prop this way:
242
-
243
-
244
- ```html
245
- <lkt-button palette="info">More info</lkt-button>
246
-
247
- <!-- Is the same as: -->
248
-
249
- <lkt-button class="lkt-button--info">More info</lkt-button>
250
- ```
package/dist/build.css CHANGED
@@ -1 +1 @@
1
- .lkt-menu{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:fixed;top:64px;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-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)}
package/dist/build.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare namespace ge {
1
+ declare namespace _e {
2
2
  function install(r: any): void;
3
3
  }
4
- declare function _e(r: any): boolean;
5
- export { ge as default, _e as setMenuToggleSlot };
4
+ declare function Ve(r: any): boolean;
5
+ export { _e as default, Ve as setMenuToggleSlot };
package/dist/build.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as G, ref as F, useSlots as H, computed as p, watch as R, onMounted as X, resolveComponent as K, createElementBlock as d, openBlock as a, normalizeClass as $, createElementVNode as b, createCommentVNode as S, createBlock as g, unref as k, normalizeProps as q, mergeProps as L, createSlots as P, withCtx as f, renderSlot as h, toDisplayString as Y, resolveDynamicComponent as Z, Fragment as Q, renderList as j, mergeDefaults as x } from "vue";
1
+ import { defineComponent as G, ref as F, useSlots as H, computed as p, watch as R, onMounted as X, resolveComponent as K, createElementBlock as d, openBlock as s, normalizeClass as b, createElementVNode as V, createCommentVNode as g, createBlock as _, unref as m, normalizeProps as q, mergeProps as L, createSlots as P, withCtx as h, renderSlot as f, toDisplayString as Y, resolveDynamicComponent as Z, Fragment as Q, renderList as j, mergeDefaults as x } from "vue";
2
2
  import { MenuEntryType as z, getDefaultValues as ee, Menu as te } from "lkt-vue-kernel";
3
3
  import { useRouter as le } from "vue-router";
4
4
  import { DataState as ne } from "lkt-data-state";
5
5
  import { httpCall as oe } from "lkt-http-client";
6
- const W = (r, _) => (_.forEach((s) => {
7
- s.key && !r.includes(s.key) && r.push(s.key), s.children && s.children.length > 0 && W(r, s.children);
6
+ const W = (r, $) => ($.forEach((a) => {
7
+ a.key && !r.includes(a.key) && r.push(a.key), a.children && a.children.length > 0 && W(r, a.children);
8
8
  }), r), T = class T {
9
9
  };
10
10
  T.toggleSlot = "", T.debugEnabled = !1;
11
11
  let O = T;
12
- const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }, se = {
12
+ const ue = { class: "lkt-menu-entry-main" }, se = { class: "lkt-entry-content" }, ae = {
13
13
  key: 0,
14
14
  class: "lkt-menu-entry-icon"
15
15
  }, re = {
@@ -26,16 +26,14 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
26
26
  emits: [
27
27
  "update:modelValue"
28
28
  ],
29
- setup(r, { emit: _ }) {
30
- const s = _, v = r, e = F(v.modelValue), i = H(), V = le(), y = F(!1), A = () => {
29
+ setup(r, { emit: $ }) {
30
+ const a = $, v = r, e = F(v.modelValue), i = H(), C = le(), y = F(!1), A = () => {
31
31
  e.value.isOpened = !e.value.isOpened;
32
32
  }, U = () => {
33
33
  var t, o;
34
- return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && A(), typeof ((o = e.value.events) == null ? void 0 : o.click) == "function" ? (e.value.events.click({
34
+ return typeof e.value.children < "u" && ((t = e.value.children) == null ? void 0 : t.length) > 0 && !e.value.keepOpenOnChildClick && A(), typeof ((o = e.value.events) == null ? void 0 : o.click) == "function" && e.value.events.click({
35
35
  entry: e.value
36
- }), 1) : (typeof e.value.onClick == "function" && e.value.onClick({
37
- entry: e.value
38
- }), 1);
36
+ }), 1;
39
37
  }, D = p(() => i["icon-" + e.value.key] || e.value.icon !== ""), w = p(() => {
40
38
  let t = [];
41
39
  return D.value && t.push("has-icon"), y.value && t.push("is-active"), e.value.type && t.push(`is-${e.value.type}`), t.join(" ");
@@ -53,98 +51,98 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
53
51
  return R(() => v.modelValue, (t) => {
54
52
  e.value = t;
55
53
  }, { deep: !0 }), R(e, (t) => {
56
- s("update:modelValue", t);
54
+ a("update:modelValue", t);
57
55
  }, { deep: !0 }), X(() => {
58
- var o, E, C;
59
- let t = V == null ? void 0 : V.currentRoute;
56
+ var o, E, S;
57
+ let t = C == null ? void 0 : C.currentRoute;
60
58
  if (t) {
61
59
  if (t.value.path === ((o = e.value.anchor) == null ? void 0 : o.to))
62
60
  e.value.isOpened = !0;
63
61
  else if (typeof e.value.children < "u" && ((E = e.value.children) == null ? void 0 : E.length) > 0) {
64
62
  let I = !1;
65
- (C = e.value.children) == null || C.forEach((B) => {
66
- var m;
67
- t.value.path === ((m = B.anchor) == null ? void 0 : m.to) && (I = !0);
63
+ (S = e.value.children) == null || S.forEach((B) => {
64
+ var k;
65
+ t.value.path === ((k = B.anchor) == null ? void 0 : k.to) && (I = !0);
68
66
  }), I && (e.value.isOpened = !0);
69
67
  }
70
68
  }
71
69
  }), (t, o) => {
72
70
  var B;
73
- const E = K("lkt-button"), C = K("lkt-anchor"), I = K("menu-item", !0);
74
- return a(), d("div", {
75
- class: $(["lkt-menu-entry", w.value])
71
+ const E = K("lkt-button"), S = K("lkt-anchor"), I = K("menu-item", !0);
72
+ return s(), d("div", {
73
+ class: b(["lkt-menu-entry", w.value])
76
74
  }, [
77
- b("div", ue, [
78
- e.value.type === k(z).Button ? (a(), g(E, q(L({ key: 0 }, e.value.button)), P({ _: 2 }, [
79
- k(i).tooltip ? {
75
+ V("div", ue, [
76
+ e.value.type === m(z).Button ? (s(), _(E, q(L({ key: 0 }, e.value.button)), P({ _: 2 }, [
77
+ m(i).tooltip ? {
80
78
  name: "tooltip",
81
- fn: f(() => [
82
- h(t.$slots, "tooltip")
79
+ fn: h(() => [
80
+ f(t.$slots, "tooltip")
83
81
  ]),
84
82
  key: "0"
85
83
  } : void 0,
86
- k(i).split ? {
84
+ m(i).split ? {
87
85
  name: "split",
88
- fn: f(() => [
89
- h(t.$slots, "split")
86
+ fn: h(() => [
87
+ f(t.$slots, "split")
90
88
  ]),
91
89
  key: "1"
92
90
  } : void 0
93
- ]), 1040)) : e.value.type === k(z).Anchor ? (a(), g(C, q(L({ key: 1 }, e.value.anchor)), null, 16)) : (a(), g(C, L({ key: 2 }, e.value.anchor, {
91
+ ]), 1040)) : e.value.type === m(z).Anchor ? (s(), _(S, q(L({ key: 1 }, e.value.anchor)), null, 16)) : (s(), _(S, L({ key: 2 }, e.value.anchor, {
94
92
  "on-click": U,
95
93
  "is-active": n.value,
96
- onActive: o[0] || (o[0] = (m) => y.value = m)
94
+ onActive: o[0] || (o[0] = (k) => y.value = k)
97
95
  }), {
98
- text: f(({ text: m }) => [
99
- b("div", ae, [
100
- D.value ? (a(), d("div", se, [
101
- k(i)["icon-" + e.value.key] ? h(t.$slots, "icon-" + e.value.key, {
96
+ text: h(({ text: k }) => [
97
+ V("div", se, [
98
+ D.value ? (s(), d("div", ae, [
99
+ m(i)["icon-" + e.value.key] ? f(t.$slots, "icon-" + e.value.key, {
102
100
  key: e.value.key,
103
101
  entry: e.value
104
- }) : e.value.icon !== "" ? (a(), d("i", {
102
+ }) : e.value.icon !== "" ? (s(), d("i", {
105
103
  key: 1,
106
- class: $(e.value.icon)
107
- }, null, 2)) : S("", !0)
108
- ])) : S("", !0),
109
- m !== "" ? (a(), d("div", re, Y(m), 1)) : S("", !0)
104
+ class: b(e.value.icon)
105
+ }, null, 2)) : g("", !0)
106
+ ])) : g("", !0),
107
+ k !== "" ? (s(), d("div", re, Y(k), 1)) : g("", !0)
110
108
  ])
111
109
  ]),
112
110
  _: 3
113
111
  }, 16, ["is-active"])),
114
- e.value.type !== k(z).Button && e.value.children && ((B = e.value.children) == null ? void 0 : B.length) > 0 ? (a(), d("div", {
112
+ e.value.type !== m(z).Button && e.value.children && ((B = e.value.children) == null ? void 0 : B.length) > 0 ? (s(), d("div", {
115
113
  key: 3,
116
114
  class: "lkt-menu-entry-toggle",
117
115
  onClick: A
118
116
  }, [
119
- u.value ? (a(), g(Z(c.value), {
117
+ u.value ? (s(), _(Z(c.value), {
120
118
  key: 0,
121
- class: $(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
122
- }, null, 8, ["class"])) : (a(), d("div", {
119
+ class: b(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
120
+ }, null, 8, ["class"])) : (s(), d("div", {
123
121
  key: 1,
124
- class: $(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
122
+ class: b(["lkt-menu-entry-toggle-inner", e.value.isOpened ? "is-opened" : ""])
125
123
  }, o[1] || (o[1] = [
126
- b("i", { class: "lkt-icn-angle-bottom" }, null, -1)
124
+ V("i", { class: "lkt-icn-angle-bottom" }, null, -1)
127
125
  ]), 2))
128
- ])) : S("", !0)
126
+ ])) : g("", !0)
129
127
  ]),
130
- e.value.isOpened ? (a(), d("div", ie, [
131
- (a(!0), d(Q, null, j(e.value.children, (m, J) => (a(), g(I, {
128
+ e.value.isOpened ? (s(), d("div", ie, [
129
+ (s(!0), d(Q, null, j(e.value.children, (k, J) => (s(), _(I, {
132
130
  modelValue: e.value.children[J],
133
131
  "onUpdate:modelValue": (N) => e.value.children[J] = N,
134
132
  key: e.value.children[J].key
135
133
  }, P({ _: 2 }, [
136
134
  j(l.value, (N) => ({
137
135
  name: N,
138
- fn: f(() => [
139
- h(t.$slots, N)
136
+ fn: h(() => [
137
+ f(t.$slots, N)
140
138
  ])
141
139
  }))
142
140
  ]), 1032, ["modelValue", "onUpdate:modelValue"]))), 128))
143
- ])) : S("", !0)
141
+ ])) : g("", !0)
144
142
  ], 2);
145
143
  };
146
144
  }
147
- }), de = { class: "lkt-menu-container" }, ve = { class: "lkt-menu" }, pe = /* @__PURE__ */ G({
145
+ }), de = { class: "lkt-menu" }, ve = { class: "lkt-menu-main" }, pe = { class: "lkt-menu-entries" }, me = /* @__PURE__ */ G({
148
146
  __name: "LktMenu",
149
147
  props: /* @__PURE__ */ x({
150
148
  modelValue: {},
@@ -158,9 +156,9 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
158
156
  "response",
159
157
  "error"
160
158
  ],
161
- setup(r, { emit: _ }) {
159
+ setup(r, { emit: $ }) {
162
160
  var M;
163
- const s = r, v = _, e = H(), i = F(s.modelValue), V = (l) => {
161
+ const a = r, v = $, e = H(), i = F(a.modelValue), C = (l) => {
164
162
  let n = {};
165
163
  typeof l == "object" && Object.keys(l).length > 0 && (n = JSON.parse(JSON.stringify(l)));
166
164
  for (let u in n)
@@ -168,7 +166,7 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
168
166
  return n;
169
167
  };
170
168
  let y = new ne({});
171
- y.increment(V(((M = s.http) == null ? void 0 : M.data) ?? {}));
169
+ y.increment(C(((M = a.http) == null ? void 0 : M.data) ?? {}));
172
170
  const A = p(() => W([], i.value)), U = p(() => {
173
171
  let l = [];
174
172
  for (let n in e)
@@ -176,9 +174,9 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
176
174
  return l;
177
175
  }), D = () => {
178
176
  var n, u;
179
- if (!((n = s.http) != null && n.resource)) return;
177
+ if (!((n = a.http) != null && n.resource)) return;
180
178
  let l = y.getData();
181
- v("loading"), oe((u = s.http) == null ? void 0 : u.resource, l).then((c) => {
179
+ v("loading"), oe((u = a.http) == null ? void 0 : u.resource, l).then((c) => {
182
180
  y.turnStoredIntoOriginal(), i.value = c.data, v("results", c.data), v("response", c);
183
181
  }).catch((c) => {
184
182
  v("error", c);
@@ -186,52 +184,55 @@ const ue = { class: "lkt-menu-entry-main" }, ae = { class: "lkt-entry-content" }
186
184
  }, w = () => {
187
185
  v("click-outside");
188
186
  };
189
- return R(() => s.modelValue, (l) => {
187
+ return R(() => a.modelValue, (l) => {
190
188
  i.value = l;
191
189
  }, { deep: !0 }), R(i, (l) => {
192
190
  v("update:modelValue", l);
193
- }, { deep: !0 }), D(), (l, n) => (a(), d("div", de, [
194
- b("div", ve, [
195
- (a(!0), d(Q, null, j(i.value, (u, c) => (a(), g(ce, {
196
- modelValue: i.value[c],
197
- "onUpdate:modelValue": (t) => i.value[c] = t,
198
- key: u.key,
199
- class: $(u.class)
200
- }, P({ _: 2 }, [
201
- j(U.value, (t) => ({
202
- name: t,
203
- fn: f(() => [
204
- h(l.$slots, t)
205
- ])
206
- })),
207
- k(e)[`tooltip-${u.key}`] ? {
208
- name: "tooltip",
209
- fn: f(() => [
210
- h(l.$slots, `tooltip-${u.key}`)
211
- ]),
212
- key: "0"
213
- } : void 0,
214
- k(e)[`split-${u.key}`] ? {
215
- name: "split",
216
- fn: f(() => [
217
- h(l.$slots, `split-${u.key}`)
218
- ]),
219
- key: "1"
220
- } : void 0
221
- ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 128))
191
+ }, { deep: !0 }), D(), (l, n) => (s(), d("div", de, [
192
+ V("div", ve, [
193
+ m(e).before ? f(l.$slots, "before", { key: 0 }) : g("", !0),
194
+ V("div", pe, [
195
+ (s(!0), d(Q, null, j(i.value, (u, c) => (s(), _(ce, {
196
+ modelValue: i.value[c],
197
+ "onUpdate:modelValue": (t) => i.value[c] = t,
198
+ key: u.key,
199
+ class: b(u.class)
200
+ }, P({ _: 2 }, [
201
+ j(U.value, (t) => ({
202
+ name: t,
203
+ fn: h(() => [
204
+ f(l.$slots, t)
205
+ ])
206
+ })),
207
+ m(e)[`tooltip-${u.key}`] ? {
208
+ name: "tooltip",
209
+ fn: h(() => [
210
+ f(l.$slots, `tooltip-${u.key}`)
211
+ ]),
212
+ key: "0"
213
+ } : void 0,
214
+ m(e)[`split-${u.key}`] ? {
215
+ name: "split",
216
+ fn: h(() => [
217
+ f(l.$slots, `split-${u.key}`)
218
+ ]),
219
+ key: "1"
220
+ } : void 0
221
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "class"]))), 128))
222
+ ])
222
223
  ]),
223
- b("div", {
224
+ V("div", {
224
225
  class: "lkt-menu-outside",
225
226
  onClick: w
226
227
  })
227
228
  ]));
228
229
  }
229
- }), ge = {
230
+ }), _e = {
230
231
  install: (r) => {
231
- r.component("lkt-menu") === void 0 && r.component("lkt-menu", pe);
232
+ r.component("lkt-menu") === void 0 && r.component("lkt-menu", me);
232
233
  }
233
- }, _e = (r) => (O.toggleSlot = r, !0);
234
+ }, Ve = (r) => (O.toggleSlot = r, !0);
234
235
  export {
235
- ge as default,
236
- _e as setMenuToggleSlot
236
+ _e as default,
237
+ Ve as setMenuToggleSlot
237
238
  };