vlite3 0.5.6 → 0.5.8

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.
Files changed (33) hide show
  1. package/components/Badge.vue.d.ts +3 -3
  2. package/components/Badge.vue.js +27 -16
  3. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  4. package/components/Button.vue.js +1 -1
  5. package/components/Chip/Chip.vue.d.ts +6 -3
  6. package/components/Chip/Chip.vue.js +48 -40
  7. package/components/CommandPaletteContent.vue.d.ts +1 -0
  8. package/components/CommandPaletteContent.vue.js +1 -1
  9. package/components/CommandPaletteContent.vue2.js +129 -105
  10. package/components/Dropdown/Dropdown.vue.d.ts +16 -12
  11. package/components/Dropdown/Dropdown.vue.js +127 -114
  12. package/components/Dropdown/DropdownItem.vue.js +2 -1
  13. package/components/Dropdown/DropdownMenu.vue.d.ts +3 -3
  14. package/components/Dropdown/DropdownMenu.vue.js +107 -99
  15. package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -1
  16. package/components/Dropdown/composables/useDropdownSelection.js +28 -28
  17. package/components/NavbarCommandPalette.vue.d.ts +8 -2
  18. package/components/NavbarCommandPalette.vue.js +55 -45
  19. package/components/PermissionMatrix/PermissionMatrix.vue.js +2 -2
  20. package/components/Screen/Screen.vue.js +35 -34
  21. package/components/StatusChip/StatusChip.vue.d.ts +21 -0
  22. package/components/StatusChip/StatusChip.vue.js +28 -0
  23. package/components/StatusChip/StatusChip.vue2.js +4 -0
  24. package/components/StatusChip/index.d.ts +3 -0
  25. package/components/StatusChip/status-map.d.ts +23 -0
  26. package/components/StatusChip/status-map.js +112 -0
  27. package/composables/useTheme.d.ts +1 -0
  28. package/composables/useTheme.js +20 -12
  29. package/index.d.ts +1 -0
  30. package/index.js +148 -141
  31. package/package.json +1 -1
  32. package/style.css +184 -4
  33. package/types/styles.d.ts +11 -0
@@ -1,25 +1,25 @@
1
- import { defineComponent as X, computed as c, ref as _, watch as Y, onMounted as Z, nextTick as T, openBlock as i, createElementBlock as f, createElementVNode as l, createVNode as w, withDirectives as ee, vModelText as te, createTextVNode as I, toDisplayString as u, createCommentVNode as b, Fragment as M, renderList as j, normalizeClass as z, createBlock as oe } from "vue";
2
- import { useRouter as ne } from "vue-router";
1
+ import { defineComponent as Z, computed as c, ref as _, watch as ee, onMounted as te, nextTick as G, openBlock as u, createElementBlock as f, createElementVNode as s, createVNode as w, withDirectives as oe, vModelText as ne, createTextVNode as I, toDisplayString as i, createCommentVNode as b, Fragment as P, renderList as O, normalizeClass as T, createBlock as re } from "vue";
2
+ import { useRouter as le } from "vue-router";
3
3
  import h from "./Icon.vue.js";
4
4
  import { $t as C } from "../utils/i18n.js";
5
- const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, se = { class: "flex items-center gap-3 px-4 py-3.5 border-b border-border/60 shrink-0" }, le = ["placeholder", "aria-activedescendant"], ae = ["aria-label"], ce = {
5
+ const se = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, ae = { class: "flex items-center gap-3 px-4 py-3.5 border-b border-border/60 shrink-0" }, ce = ["placeholder", "aria-activedescendant"], ie = ["aria-label"], de = {
6
6
  key: 0,
7
7
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
8
8
  "aria-live": "polite"
9
- }, ue = { class: "text-sm font-medium text-muted-foreground" }, ie = { class: "text-foreground font-semibold" }, de = { class: "text-xs text-muted-foreground/60 mt-1" }, fe = ["aria-label"], pe = ["aria-label"], me = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], xe = { class: "flex-1 min-w-0" }, ve = { class: "block font-medium truncate text-inherit leading-tight" }, be = {
9
+ }, ue = { class: "text-sm font-medium text-muted-foreground" }, fe = { class: "text-foreground font-semibold" }, pe = { class: "text-xs text-muted-foreground/60 mt-1" }, me = ["aria-label"], xe = ["aria-label"], ve = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], be = { class: "flex-1 min-w-0" }, he = { class: "block font-medium truncate text-inherit leading-tight" }, ge = {
10
10
  key: 0,
11
11
  class: "block text-xs text-muted-foreground/70 truncate mt-0.5"
12
- }, he = {
12
+ }, ye = {
13
13
  key: 1,
14
14
  class: "shrink-0 hidden sm:inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-mono border border-border/60 bg-background/80 text-muted-foreground ml-1"
15
- }, ge = {
15
+ }, ke = {
16
16
  key: 0,
17
17
  class: "my-1.5 mx-3 h-px bg-border/40",
18
18
  "aria-hidden": "true"
19
- }, ke = {
19
+ }, _e = {
20
20
  class: "px-4 py-2.5 border-t border-border/40 flex items-center gap-4 shrink-0 bg-muted/30",
21
21
  "aria-hidden": "true"
22
- }, ye = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, _e = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, we = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, Ie = { class: "ml-auto text-[11px] text-muted-foreground/50" }, Pe = /* @__PURE__ */ X({
22
+ }, we = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, Ie = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, Ce = { class: "flex items-center gap-1 text-[11px] text-muted-foreground/60" }, Me = { class: "ml-auto text-[11px] text-muted-foreground/50" }, Be = /* @__PURE__ */ Z({
23
23
  __name: "CommandPaletteContent",
24
24
  props: {
25
25
  close: { type: Function },
@@ -27,85 +27,105 @@ const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[
27
27
  menuItems: {},
28
28
  placeholder: {},
29
29
  placeholderI18n: {},
30
- maxResultsPerGroup: {}
30
+ maxResultsPerGroup: {},
31
+ onOpenDynamicModal: { type: Function }
31
32
  },
32
- setup(R) {
33
- const d = R, p = (t, o) => {
33
+ setup(M) {
34
+ const d = M, p = (t, o) => {
34
35
  const n = C(t);
35
36
  return n !== t ? n : o;
36
- }, B = c(() => {
37
+ }, j = c(() => {
37
38
  if (d.placeholderI18n) {
38
39
  const t = C(d.placeholderI18n);
39
40
  if (t !== d.placeholderI18n) return t;
40
41
  }
41
42
  return d.placeholder;
42
- }), F = c(() => p("vlite.commandPalette.noResults", "No results for")), L = c(
43
+ }), z = c(() => p("vlite.commandPalette.noResults", "No results for")), L = c(
43
44
  () => p("vlite.commandPalette.noResultsDesc", "Try a different term or browse with arrow keys")
44
- ), S = c(() => p("vlite.commandPalette.navigate", "Navigate")), K = c(() => p("vlite.commandPalette.open", "Open")), O = c(() => p("vlite.commandPalette.close", "Close")), N = c(() => p("vlite.commandPalette.result", "result")), P = c(() => p("vlite.commandPalette.results", "results"));
45
- function D(t) {
45
+ ), K = c(() => p("vlite.commandPalette.navigate", "Navigate")), U = c(() => p("vlite.commandPalette.open", "Open")), W = c(() => p("vlite.commandPalette.close", "Close")), R = c(() => p("vlite.commandPalette.result", "result")), D = c(() => p("vlite.commandPalette.results", "results"));
46
+ function N(t) {
46
47
  if (t.labelI18n) {
47
48
  const o = C(t.labelI18n);
48
49
  if (o !== t.labelI18n) return o;
49
50
  }
50
51
  return t.label;
51
52
  }
52
- function $(t) {
53
+ function B(t) {
53
54
  if (t.descriptionI18n) {
54
55
  const o = C(t.descriptionI18n);
55
56
  if (o !== t.descriptionI18n) return o;
56
57
  }
57
58
  return t.description ?? "";
58
59
  }
59
- const v = _(""), a = _(0), E = _(null), V = _(null), U = ne();
60
+ const v = _(""), a = _(0), $ = _(null), S = _(null), H = le();
61
+ function E(t) {
62
+ return typeof t == "function" ? t() : t !== void 0 ? t : !0;
63
+ }
64
+ function V(t, o, n = 0) {
65
+ const r = [];
66
+ for (const e of t) {
67
+ if (!E(e.show)) continue;
68
+ const l = n === 0 ? e.label : o ?? "Navigation";
69
+ (e.to || e.href || e.action || e.modalBody) && r.push({
70
+ ...e,
71
+ id: e.id ?? e.to ?? e.label ?? Math.random().toString(),
72
+ group: e.group ?? l
73
+ }), e.children?.length && r.push(...V(e.children, l, n + 1));
74
+ }
75
+ return r;
76
+ }
60
77
  function q(t, o, n = 0) {
61
78
  const r = [];
62
79
  for (const e of t) {
63
- const s = n === 0 ? e.label : o ?? "Navigation";
64
- (e.to || e.href || e.action) && r.push({
65
- id: e.id ?? (typeof e.to == "string" ? e.to : "") ?? e.label,
80
+ if (!E(e.show)) continue;
81
+ const l = n === 0 ? e.label : o ?? "Navigation";
82
+ (e.to || e.href || e.action || e.modalBody) && r.push({
83
+ id: e.id ?? (typeof e.to == "string" ? e.to : "") ?? e.label ?? Math.random().toString(),
66
84
  label: e.label,
67
85
  labelI18n: e.labelI18n,
68
86
  icon: e.icon,
69
- group: s,
87
+ group: e.group ?? l,
70
88
  to: typeof e.to == "string" ? e.to : e.to?.path,
71
89
  href: e.href,
72
90
  action: e.action ? () => e.action(e) : void 0,
73
- disabled: e.disabled
74
- }), e.children?.length && r.push(...q(e.children, s, n + 1));
91
+ disabled: e.disabled,
92
+ modalBody: e.modalBody,
93
+ modalProps: e.modalProps
94
+ }), e.children?.length && r.push(...q(e.children, l, n + 1));
75
95
  }
76
96
  return r;
77
97
  }
78
- const W = c(() => {
79
- const t = q(d.menuItems), o = /* @__PURE__ */ new Set(), n = [];
80
- for (const r of [...d.items, ...t])
81
- o.has(r.id) || (o.add(r.id), n.push(r));
82
- return n;
98
+ const J = c(() => {
99
+ const t = q(d.menuItems || []), o = V(d.items || []), n = /* @__PURE__ */ new Set(), r = [];
100
+ for (const e of [...o, ...t])
101
+ e.id && !n.has(e.id) && (n.add(e.id), r.push(e));
102
+ return r;
83
103
  });
84
104
  function g(t) {
85
105
  return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
86
106
  }
87
- function H(t, o) {
88
- const n = g(D(t)), r = g($(t)), e = (t.keywords ?? []).map(g).join(" "), s = g(o);
89
- return n === s ? 100 : n.startsWith(s) ? 80 : n.includes(s) ? 60 : r.includes(s) || e.includes(s) ? 40 : 0;
107
+ function Q(t, o) {
108
+ const n = g(N(t)), r = g(B(t)), e = (t.keywords ?? []).map(g).join(" "), l = g(o);
109
+ return n === l ? 100 : n.startsWith(l) ? 80 : n.includes(l) ? 60 : r.includes(l) || e.includes(l) ? 40 : 0;
90
110
  }
91
- const k = c(() => {
111
+ const y = c(() => {
92
112
  const t = v.value.trim();
93
- let o = W.value.filter((e) => !e.disabled);
94
- t && (o = o.map((e) => ({ item: e, s: H(e, t) })).filter(({ s: e }) => e > 0).sort((e, s) => s.s - e.s).map(({ item: e }) => e));
113
+ let o = J.value.filter((e) => !e.disabled);
114
+ t && (o = o.map((e) => ({ item: e, s: Q(e, t) })).filter(({ s: e }) => e > 0).sort((e, l) => l.s - e.s).map(({ item: e }) => e));
95
115
  const n = /* @__PURE__ */ new Map();
96
116
  for (const e of o) {
97
- const s = e.group ?? "Actions";
98
- n.has(s) || n.set(s, []), n.get(s).push(e);
117
+ const l = e.group ?? "Actions";
118
+ n.has(l) || n.set(l, []), n.get(l).push(e);
99
119
  }
100
120
  const r = [];
101
- for (const [e, s] of n)
121
+ for (const [e, l] of n)
102
122
  r.push({
103
123
  key: e,
104
124
  label: e,
105
- items: s.slice(0, d.maxResultsPerGroup)
125
+ items: l.slice(0, d.maxResultsPerGroup)
106
126
  });
107
127
  return r;
108
- }), y = c(() => k.value.flatMap((t) => t.items)), m = c(() => y.value.length), J = (t) => {
128
+ }), k = c(() => y.value.flatMap((t) => t.items)), m = c(() => k.value.length), X = (t) => {
109
129
  if (t.key === "Escape") {
110
130
  d.close();
111
131
  return;
@@ -120,25 +140,29 @@ const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[
120
140
  }
121
141
  if (t.key === "Enter") {
122
142
  t.preventDefault();
123
- const o = y.value[a.value];
124
- o && G(o);
143
+ const o = k.value[a.value];
144
+ o && F(o);
125
145
  }
126
146
  }, A = () => {
127
- T(() => {
128
- V.value?.querySelector('[data-active="true"]')?.scrollIntoView({ block: "nearest" });
147
+ G(() => {
148
+ S.value?.querySelector('[data-active="true"]')?.scrollIntoView({ block: "nearest" });
129
149
  });
130
150
  };
131
- Y(v, () => {
151
+ ee(v, () => {
132
152
  a.value = 0;
133
153
  });
134
- const G = (t) => {
154
+ const F = (t) => {
135
155
  if (!t.disabled) {
136
- if (d.close(), t.action) {
156
+ if (d.close(), t.modalBody) {
157
+ d.onOpenDynamicModal(t.modalBody, t.modalProps);
158
+ return;
159
+ }
160
+ if (t.action) {
137
161
  t.action();
138
162
  return;
139
163
  }
140
164
  if (t.to) {
141
- U.push(t.to).catch(() => {
165
+ H.push(t.to).catch(() => {
142
166
  });
143
167
  return;
144
168
  }
@@ -147,43 +171,43 @@ const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[
147
171
  }, x = (t, o) => {
148
172
  let n = 0;
149
173
  for (let r = 0; r < t; r++)
150
- n += k.value[r].items.length;
174
+ n += y.value[r].items.length;
151
175
  return n + o;
152
176
  };
153
- return Z(() => {
154
- T(() => {
155
- E.value?.focus();
177
+ return te(() => {
178
+ G(() => {
179
+ $.value?.focus();
156
180
  });
157
- }), (t, o) => (i(), f("div", re, [
158
- l("div", se, [
181
+ }), (t, o) => (u(), f("div", se, [
182
+ s("div", ae, [
159
183
  w(h, {
160
184
  icon: "lucide:search",
161
185
  class: "w-4 h-4 text-muted-foreground shrink-0"
162
186
  }),
163
- ee(l("input", {
187
+ oe(s("input", {
164
188
  ref_key: "inputRef",
165
- ref: E,
189
+ ref: $,
166
190
  "onUpdate:modelValue": o[0] || (o[0] = (n) => v.value = n),
167
191
  type: "text",
168
192
  autocomplete: "off",
169
193
  autocorrect: "off",
170
194
  spellcheck: "false",
171
- placeholder: B.value,
195
+ placeholder: j.value,
172
196
  class: "flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/60 outline-none min-w-0",
173
197
  "aria-autocomplete": "list",
174
- "aria-activedescendant": y.value[a.value] ? `cp-item-${y.value[a.value].id}` : void 0,
198
+ "aria-activedescendant": k.value[a.value] ? `cp-item-${k.value[a.value].id}` : void 0,
175
199
  "aria-controls": "cp-listbox",
176
- onKeydown: J
177
- }, null, 40, le), [
178
- [te, v.value]
200
+ onKeydown: X
201
+ }, null, 40, ce), [
202
+ [ne, v.value]
179
203
  ]),
180
- l("button", {
204
+ s("button", {
181
205
  type: "button",
182
206
  class: "shrink-0 p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",
183
207
  "aria-label": "Close",
184
208
  tabindex: "-1",
185
209
  onClick: o[1] || (o[1] = //@ts-ignore
186
- (...n) => R.close && R.close(...n))
210
+ (...n) => M.close && M.close(...n))
187
211
  }, [
188
212
  w(h, {
189
213
  icon: "lucide:x",
@@ -191,57 +215,57 @@ const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[
191
215
  })
192
216
  ])
193
217
  ]),
194
- l("div", {
218
+ s("div", {
195
219
  id: "cp-listbox",
196
220
  ref_key: "listRef",
197
- ref: V,
221
+ ref: S,
198
222
  role: "listbox",
199
223
  class: "flex-1 overflow-y-auto py-2 scrollbar-thin",
200
- "aria-label": `${m.value} ${m.value === 1 ? N.value : P.value}`
224
+ "aria-label": `${m.value} ${m.value === 1 ? R.value : D.value}`
201
225
  }, [
202
- m.value === 0 ? (i(), f("div", ce, [
226
+ m.value === 0 ? (u(), f("div", de, [
203
227
  w(h, {
204
228
  icon: "lucide:search-x",
205
229
  class: "w-9 h-9 text-muted-foreground/40 mb-3"
206
230
  }),
207
- l("p", ue, [
208
- I(u(F.value) + " ", 1),
209
- l("span", ie, '"' + u(v.value) + '"', 1)
231
+ s("p", ue, [
232
+ I(i(z.value) + " ", 1),
233
+ s("span", fe, '"' + i(v.value) + '"', 1)
210
234
  ]),
211
- l("p", de, u(L.value), 1)
235
+ s("p", pe, i(L.value), 1)
212
236
  ])) : b("", !0),
213
- (i(!0), f(M, null, j(k.value, (n, r) => (i(), f(M, {
237
+ (u(!0), f(P, null, O(y.value, (n, r) => (u(), f(P, {
214
238
  key: n.key
215
239
  }, [
216
- l("div", {
240
+ s("div", {
217
241
  class: "px-4 py-1.5 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/60 select-none",
218
242
  "aria-label": `Group: ${n.label}`
219
- }, u(n.label), 9, fe),
220
- l("div", {
243
+ }, i(n.label), 9, me),
244
+ s("div", {
221
245
  role: "group",
222
246
  "aria-label": n.label,
223
247
  class: "px-2"
224
248
  }, [
225
- (i(!0), f(M, null, j(n.items, (e, s) => (i(), f("button", {
249
+ (u(!0), f(P, null, O(n.items, (e, l) => (u(), f("button", {
226
250
  key: e.id,
227
251
  id: `cp-item-${e.id}`,
228
252
  type: "button",
229
253
  role: "option",
230
- "aria-selected": x(r, s) === a.value,
254
+ "aria-selected": x(r, l) === a.value,
231
255
  "aria-disabled": e.disabled || void 0,
232
- "data-active": x(r, s) === a.value,
233
- class: z(["command-palette-item w-full flex items-center gap-3 px-3! py-2.5 mx-1 rounded-lg text-sm transition-colors duration-100 text-left cursor-pointer select-none focus-visible:outline-none", [
234
- x(r, s) === a.value ? "bg-primary/10 text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
256
+ "data-active": x(r, l) === a.value,
257
+ class: T(["command-palette-item w-full flex items-center gap-3 px-3! py-2.5 mx-1 rounded-lg text-sm transition-colors duration-100 text-left cursor-pointer select-none focus-visible:outline-none", [
258
+ x(r, l) === a.value ? "bg-gray-200 text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
235
259
  e.disabled ? "opacity-40 cursor-not-allowed" : ""
236
260
  ]]),
237
261
  style: { width: "calc(100% - 8px)" },
238
- onClick: (Q) => G(e),
239
- onMouseenter: (Q) => a.value = x(r, s)
262
+ onClick: (Y) => F(e),
263
+ onMouseenter: (Y) => a.value = x(r, l)
240
264
  }, [
241
- l("span", {
242
- class: z([
265
+ s("span", {
266
+ class: T([
243
267
  "shrink-0 flex items-center justify-center w-7 h-7 rounded-md",
244
- x(r, s) === a.value ? "bg-primary/20 text-primary" : "bg-muted/80 text-muted-foreground"
268
+ x(r, l) === a.value ? "bg-gray-300 text-primary" : "bg-muted/80 text-muted-foreground"
245
269
  ])
246
270
  }, [
247
271
  w(h, {
@@ -249,39 +273,39 @@ const re = { class: "command-palette-content flex flex-col w-full h-full max-h-[
249
273
  class: "w-3.5 h-3.5"
250
274
  }, null, 8, ["icon"])
251
275
  ], 2),
252
- l("span", xe, [
253
- l("span", ve, u(D(e)), 1),
254
- e.description || e.descriptionI18n ? (i(), f("span", be, u($(e)), 1)) : b("", !0)
276
+ s("span", be, [
277
+ s("span", he, i(N(e)), 1),
278
+ e.description || e.descriptionI18n ? (u(), f("span", ge, i(B(e)), 1)) : b("", !0)
255
279
  ]),
256
- e.href ? (i(), oe(h, {
280
+ e.href ? (u(), re(h, {
257
281
  key: 0,
258
282
  icon: "lucide:external-link",
259
283
  class: "shrink-0 w-3 h-3 text-muted-foreground/50"
260
284
  })) : b("", !0),
261
- x(r, s) === a.value ? (i(), f("kbd", he, " ↵ ")) : b("", !0)
262
- ], 42, me))), 128))
263
- ], 8, pe),
264
- r < k.value.length - 1 ? (i(), f("div", ge)) : b("", !0)
285
+ x(r, l) === a.value ? (u(), f("kbd", ye, " ↵ ")) : b("", !0)
286
+ ], 42, ve))), 128))
287
+ ], 8, xe),
288
+ r < y.value.length - 1 ? (u(), f("div", ke)) : b("", !0)
265
289
  ], 64))), 128))
266
- ], 8, ae),
267
- l("div", ke, [
268
- l("span", ye, [
269
- o[2] || (o[2] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↑↓", -1)),
270
- I(" " + u(S.value), 1)
290
+ ], 8, ie),
291
+ s("div", _e, [
292
+ s("span", we, [
293
+ o[2] || (o[2] = s("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↑↓", -1)),
294
+ I(" " + i(K.value), 1)
271
295
  ]),
272
- l("span", _e, [
273
- o[3] || (o[3] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↵", -1)),
274
- I(" " + u(K.value), 1)
296
+ s("span", Ie, [
297
+ o[3] || (o[3] = s("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "↵", -1)),
298
+ I(" " + i(U.value), 1)
275
299
  ]),
276
- l("span", we, [
277
- o[4] || (o[4] = l("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "Esc", -1)),
278
- I(" " + u(O.value), 1)
300
+ s("span", Ce, [
301
+ o[4] || (o[4] = s("kbd", { class: "px-1 rounded border border-border/60 bg-background text-[10px]" }, "Esc", -1)),
302
+ I(" " + i(W.value), 1)
279
303
  ]),
280
- l("span", Ie, u(m.value) + " " + u(m.value === 1 ? N.value : P.value), 1)
304
+ s("span", Me, i(m.value) + " " + i(m.value === 1 ? R.value : D.value), 1)
281
305
  ])
282
306
  ]));
283
307
  }
284
308
  });
285
309
  export {
286
- Pe as default
310
+ Be as default
287
311
  };
@@ -34,6 +34,7 @@ type __VLS_Props = {
34
34
  fetchSelected?: (ids: any[]) => Promise<IDropdownOption[]>;
35
35
  triggerProps?: ButtonProps;
36
36
  direction?: 'ltr' | 'rtl';
37
+ isNested?: boolean;
37
38
  };
38
39
  declare function __VLS_template(): {
39
40
  attrs: Partial<{}>;
@@ -61,28 +62,38 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
61
62
  onSelect: (payload: {
62
63
  value: any;
63
64
  data?: any;
65
+ option?: IDropdownOption;
64
66
  }) => any;
65
67
  "update:modelValue": (value: any) => any;
66
- onOpen: () => any;
68
+ "load-more": () => any;
67
69
  onClose: () => any;
70
+ onOpen: () => any;
68
71
  "update:isOpen": (value: boolean) => any;
69
- "load-more": () => any;
70
72
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
71
73
  onSearch?: (query: string) => any;
72
74
  onOnSelect?: (payload: {
73
75
  value: any;
74
76
  data?: any;
77
+ option?: IDropdownOption;
75
78
  }) => any;
76
79
  "onUpdate:modelValue"?: (value: any) => any;
77
- onOnOpen?: () => any;
80
+ "onLoad-more"?: () => any;
78
81
  onOnClose?: () => any;
82
+ onOnOpen?: () => any;
79
83
  "onUpdate:isOpen"?: (value: boolean) => any;
80
- "onLoad-more"?: () => any;
81
84
  }>, {
82
85
  loading: boolean;
83
86
  selectable: boolean;
84
87
  options: (IDropdownOption | string | number)[];
85
88
  columns: number | string;
89
+ selectedIndex: number | null;
90
+ maxHeight: string;
91
+ layout: "default" | "grouped";
92
+ hasMore: boolean;
93
+ searchable: boolean;
94
+ remote: boolean;
95
+ debounceTime: number;
96
+ direction: "ltr" | "rtl";
86
97
  canCloseOutside: boolean;
87
98
  closeOnSelect: boolean;
88
99
  toggleSelection: boolean;
@@ -90,16 +101,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
90
101
  offset: [number, number];
91
102
  isOpen: boolean;
92
103
  teleport: boolean;
93
- selectedIndex: number | null;
94
- maxHeight: string;
95
104
  showSelectedLabel: boolean;
96
105
  doubleConfirmation: boolean;
97
- layout: "default" | "grouped";
98
- hasMore: boolean;
99
- searchable: boolean;
100
- remote: boolean;
101
- debounceTime: number;
102
- direction: "ltr" | "rtl";
106
+ isNested: boolean;
103
107
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
104
108
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
105
109
  export default _default;