vlite3 0.8.2 → 0.8.4

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 (69) hide show
  1. package/components/BackButton.vue.js +10 -11
  2. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  3. package/components/Chip/Chip.vue.d.ts +2 -2
  4. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  5. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  6. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  7. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  8. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  9. package/components/DataTable/DataTable.vue.d.ts +2 -2
  10. package/components/Empty/Empty.vue.d.ts +2 -0
  11. package/components/Empty/Empty.vue.js +50 -33
  12. package/components/Empty/index.d.ts +1 -0
  13. package/components/Empty/variants/Variant1.vue.d.ts +22 -0
  14. package/components/Empty/variants/Variant1.vue.js +4 -0
  15. package/components/Empty/variants/Variant1.vue2.js +33 -0
  16. package/components/Empty/variants/Variant10.vue.d.ts +22 -0
  17. package/components/Empty/variants/Variant10.vue.js +4 -0
  18. package/components/Empty/variants/Variant10.vue2.js +37 -0
  19. package/components/Empty/variants/Variant11.vue.d.ts +22 -0
  20. package/components/Empty/variants/Variant11.vue.js +4 -0
  21. package/components/Empty/variants/Variant11.vue2.js +29 -0
  22. package/components/Empty/variants/Variant2.vue.d.ts +22 -0
  23. package/components/Empty/variants/Variant2.vue.js +4 -0
  24. package/components/Empty/variants/Variant2.vue2.js +33 -0
  25. package/components/Empty/variants/Variant3.vue.d.ts +22 -0
  26. package/components/Empty/variants/Variant3.vue.js +4 -0
  27. package/components/Empty/variants/Variant3.vue2.js +22 -0
  28. package/components/Empty/variants/Variant4.vue.d.ts +22 -0
  29. package/components/Empty/variants/Variant4.vue.js +4 -0
  30. package/components/Empty/variants/Variant4.vue2.js +33 -0
  31. package/components/Empty/variants/Variant5.vue.d.ts +22 -0
  32. package/components/Empty/variants/Variant5.vue.js +4 -0
  33. package/components/Empty/variants/Variant5.vue2.js +30 -0
  34. package/components/Empty/variants/Variant6.vue.d.ts +22 -0
  35. package/components/Empty/variants/Variant6.vue.js +4 -0
  36. package/components/Empty/variants/Variant6.vue2.js +33 -0
  37. package/components/Empty/variants/Variant7.vue.d.ts +22 -0
  38. package/components/Empty/variants/Variant7.vue.js +4 -0
  39. package/components/Empty/variants/Variant7.vue2.js +35 -0
  40. package/components/Empty/variants/Variant8.vue.d.ts +22 -0
  41. package/components/Empty/variants/Variant8.vue.js +4 -0
  42. package/components/Empty/variants/Variant8.vue2.js +33 -0
  43. package/components/Empty/variants/Variant9.vue.d.ts +22 -0
  44. package/components/Empty/variants/Variant9.vue.js +4 -0
  45. package/components/Empty/variants/Variant9.vue2.js +33 -0
  46. package/components/Form/Form.vue.d.ts +18 -0
  47. package/components/Form/Form.vue.js +1 -1
  48. package/components/Form/Form.vue2.js +219 -170
  49. package/components/Form/types.d.ts +13 -1
  50. package/components/Form/utils/form.utils.d.ts +11 -0
  51. package/components/Form/utils/form.utils.js +115 -104
  52. package/components/Modal.vue.js +2 -2
  53. package/components/Modal.vue2.js +45 -43
  54. package/components/Navbar/Navbar.vue.d.ts +2 -2
  55. package/components/NavbarCommandPalette.vue.js +1 -1
  56. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  57. package/components/Screen/Screen.vue.js +249 -241
  58. package/components/Screen/ScreenFilter.vue.js +1 -1
  59. package/components/SidebarMenu/SidebarMenuItem.vue.js +5 -7
  60. package/components/Workbook/Workbook.vue.d.ts +2 -2
  61. package/core/config.d.ts +6 -0
  62. package/core/config.js +14 -8
  63. package/core/index.js +12 -7
  64. package/index.d.ts +1 -0
  65. package/index.js +120 -117
  66. package/package.json +1 -1
  67. package/style.css +1 -1
  68. package/types/config.type.d.ts +9 -0
  69. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -1,92 +1,92 @@
1
- function k(e) {
1
+ function g(e) {
2
2
  return !!e && typeof e == "object";
3
3
  }
4
- function d(e, r) {
5
- if (!r || !e) return;
6
- const f = r.split(".");
7
- let y = e;
4
+ function A(e, t) {
5
+ if (!t || !e) return;
6
+ const f = t.split(".");
7
+ let u = e;
8
8
  for (const n of f) {
9
- if (y == null) return;
10
- y = y[n];
9
+ if (u == null) return;
10
+ u = u[n];
11
11
  }
12
- return y;
12
+ return u;
13
13
  }
14
- function v(e, r, f) {
15
- if (!r) return e;
16
- const y = r.split("."), n = { ...e };
14
+ function h(e, t, f) {
15
+ if (!t) return e;
16
+ const u = t.split("."), n = { ...e };
17
17
  let o = n;
18
- for (let i = 0; i < y.length - 1; i++) {
19
- const c = y[i];
18
+ for (let s = 0; s < u.length - 1; s++) {
19
+ const c = u[s];
20
20
  Array.isArray(o[c]) ? o[c] = [...o[c]] : o[c] = o[c] ? { ...o[c] } : {}, o = o[c];
21
21
  }
22
- return o[y[y.length - 1]] = f, n;
22
+ return o[u[u.length - 1]] = f, n;
23
23
  }
24
- function h(e, r) {
25
- return !k(r) || !r.name ? e : d(e, r.name) === void 0 && r.value !== void 0 ? v(e, r.name, r.value) : e;
24
+ function v(e, t) {
25
+ return !g(t) || !t.name ? e : A(e, t.name) === void 0 && t.value !== void 0 ? h(e, t.name, t.value) : e;
26
26
  }
27
- function E(e, r) {
28
- let f = r ? m(r) : {};
29
- const y = Array.isArray(e[0]) ? e.flat() : e;
30
- for (const n of y) {
27
+ function x(e, t) {
28
+ let f = t ? d(t) : {};
29
+ const u = Array.isArray(e[0]) ? e.flat() : e;
30
+ for (const n of u) {
31
31
  if (!n.name) continue;
32
32
  const o = n.mapFrom || n.name;
33
- let i = r ? d(r, o) : void 0;
34
- if (i != null) {
33
+ let s = t ? A(t, o) : void 0;
34
+ if (s != null) {
35
35
  const c = n.valueKey || n.key;
36
- c && (Array.isArray(i) ? i = i.map(
37
- (u) => u && typeof u == "object" ? d(u, c) : u
38
- ) : typeof i == "object" && (i = d(i, c))), n.format && (i = n.format(i, r || {}));
36
+ c && (Array.isArray(s) ? s = s.map(
37
+ (p) => p && typeof p == "object" ? A(p, c) : p
38
+ ) : typeof s == "object" && (s = A(s, c))), n.format && (s = n.format(s, t || {}));
39
39
  }
40
- if (i === void 0) {
41
- if (n.mapFrom && r) {
42
- const c = d(r, n.name);
43
- c !== void 0 && (i = c);
40
+ if (s === void 0) {
41
+ if (n.mapFrom && t) {
42
+ const c = A(t, n.name);
43
+ c !== void 0 && (s = c);
44
44
  }
45
- if (i === void 0) {
45
+ if (s === void 0) {
46
46
  const c = typeof n.value == "function" ? n.value() : n.value;
47
- c !== void 0 && Object.assign(f, v(f, n.name, c));
47
+ c !== void 0 && Object.assign(f, h(f, n.name, c));
48
48
  } else
49
- Object.assign(f, v(f, n.name, i));
49
+ Object.assign(f, h(f, n.name, s));
50
50
  } else
51
- Object.assign(f, v(f, n.name, i));
52
- f = h(f, n.addonLeft), f = h(f, n.addonRight);
51
+ Object.assign(f, h(f, n.name, s));
52
+ f = v(f, n.addonLeft), f = v(f, n.addonRight);
53
53
  }
54
54
  return f;
55
55
  }
56
- function O(e, r) {
57
- return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(r) : !1;
56
+ function F(e, t) {
57
+ return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(t) : !1;
58
58
  }
59
- function S(e, r) {
60
- return Array.isArray(e) ? e.filter((f) => f ? !r.every((n) => {
59
+ function b(e, t) {
60
+ return Array.isArray(e) ? e.filter((f) => f ? !t.every((n) => {
61
61
  const o = f[n.name];
62
62
  return o == null || o === "";
63
63
  }) : !1) : [];
64
64
  }
65
- function F(e, r) {
66
- const f = [], y = Array.isArray(e[0]) ? e.flat() : e;
67
- for (const n of y) {
65
+ function N(e, t) {
66
+ const f = [], u = Array.isArray(e[0]) ? e.flat() : e;
67
+ for (const n of u) {
68
68
  if (!n.name) continue;
69
69
  const o = n.type;
70
70
  if (o === "file" || o === "avatarUpload" || o === "fileUploader") {
71
- const i = d(r, n.name);
72
- i && f.push({
71
+ const s = A(t, n.name);
72
+ s && f.push({
73
73
  name: n.name,
74
- value: i,
74
+ value: s,
75
75
  type: o,
76
76
  field: n
77
77
  });
78
78
  }
79
79
  if (o === "customFields" && n.props?.schema) {
80
- const i = d(r, n.name);
81
- if (Array.isArray(i)) {
82
- const u = n.props.schema.filter(
83
- (s) => s.type === "file" || s.type === "avatarUpload" || s.type === "fileUploader"
80
+ const s = A(t, n.name);
81
+ if (Array.isArray(s)) {
82
+ const p = n.props.schema.filter(
83
+ (i) => i.type === "file" || i.type === "avatarUpload" || i.type === "fileUploader"
84
84
  );
85
- u.length > 0 && i.forEach((s, t) => {
86
- u.forEach((a) => {
87
- const l = s?.[a.name];
85
+ p.length > 0 && s.forEach((i, r) => {
86
+ p.forEach((a) => {
87
+ const l = i?.[a.name];
88
88
  l && f.push({
89
- name: `${n.name}.${t}.${a.name}`,
89
+ name: `${n.name}.${r}.${a.name}`,
90
90
  value: l,
91
91
  type: a.type,
92
92
  field: a
@@ -98,83 +98,94 @@ function F(e, r) {
98
98
  }
99
99
  return f;
100
100
  }
101
- function m(e) {
101
+ function d(e) {
102
102
  if (e === null || typeof e != "object") return e;
103
103
  if (e instanceof Date) return new Date(e.getTime());
104
104
  if (e instanceof File) return e;
105
- if (Array.isArray(e)) return e.map((f) => m(f));
106
- const r = {};
105
+ if (Array.isArray(e)) return e.map((f) => d(f));
106
+ const t = {};
107
107
  for (const f in e)
108
- Object.prototype.hasOwnProperty.call(e, f) && (r[f] = m(e[f]));
109
- return r;
108
+ Object.prototype.hasOwnProperty.call(e, f) && (t[f] = d(e[f]));
109
+ return t;
110
110
  }
111
- function x(e) {
111
+ function T(e) {
112
112
  return e ? typeof e == "object" && (typeof e.render == "function" || typeof e.setup == "function" || e.__name !== void 0 || e.name !== void 0) : !1;
113
113
  }
114
- function g(e, r, f, y) {
115
- const n = f === void 0 && y === void 0, o = n ? m(e) : {}, i = Array.isArray(r[0]) ? r.flat() : r, c = f || [], u = y || [];
116
- for (const s of i) {
117
- if (!s.name) continue;
118
- let t = d(e, s.name);
119
- if (t === void 0) continue;
120
- if (t = m(t), s.type === "customFields" && s.props?.schema && Array.isArray(t)) {
121
- const A = s.props.schema;
122
- t = t.map((p) => g(p, A, f, y));
114
+ function O(e) {
115
+ const t = e.type;
116
+ return t === "multiSelect" ? [] : t === "switch" || t === "check" ? !1 : null;
117
+ }
118
+ function S(e) {
119
+ return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
120
+ }
121
+ function V(e, t, f, u) {
122
+ const n = f === void 0 && u === void 0, o = n ? d(e) : {}, s = Array.isArray(t[0]) ? t.flat() : t, c = f || [], p = u || [];
123
+ for (const i of s) {
124
+ if (!i.name) continue;
125
+ let r = A(e, i.name);
126
+ const a = i.name.split(".")[0], l = Object.prototype.hasOwnProperty.call(e, a);
127
+ if (S(r)) {
128
+ if (!l) continue;
129
+ r = O(i);
130
+ }
131
+ if (r = d(r), i.type === "customFields" && i.props?.schema && Array.isArray(r)) {
132
+ const k = i.props.schema;
133
+ r = r.map((E) => V(E, k, f, u));
123
134
  }
124
- let a = !1;
125
- s.transform && (t = s.transform(t, e), a = !0);
126
- const l = s.mapTo || s.name;
127
- l !== s.name && (a = !0, n && !s.name.includes(".") && delete o[s.name]), !n || a ? Object.assign(o, v(o, l, t)) : Object.assign(o, v(o, s.name, t));
135
+ let m = !1;
136
+ i.transform && (r = i.transform(r, e), m = !0);
137
+ const y = i.mapTo || i.name;
138
+ y !== i.name && (m = !0, n && !i.name.includes(".") && delete o[i.name]), !n || m ? Object.assign(o, h(o, y, r)) : Object.assign(o, h(o, i.name, r));
128
139
  }
129
140
  if (c.length > 0) {
130
- const s = (t, a) => {
131
- if (!(!t || typeof t != "object") && !(!a || typeof a != "object"))
132
- if (Array.isArray(t) && Array.isArray(a)) {
141
+ const i = (r, a) => {
142
+ if (!(!r || typeof r != "object") && !(!a || typeof a != "object"))
143
+ if (Array.isArray(r) && Array.isArray(a)) {
133
144
  for (const l of c) {
134
- const A = t.find((p) => p && typeof p == "object" && p[l] !== void 0)?.[l];
135
- A !== void 0 && a.forEach((p) => {
136
- p && typeof p == "object" && p[l] === void 0 && (p[l] = m(A));
145
+ const m = r.find((y) => y && typeof y == "object" && y[l] !== void 0)?.[l];
146
+ m !== void 0 && a.forEach((y) => {
147
+ y && typeof y == "object" && y[l] === void 0 && (y[l] = d(m));
137
148
  });
138
149
  }
139
- t.forEach((l, A) => {
140
- a[A] && s(l, a[A]);
150
+ r.forEach((l, m) => {
151
+ a[m] && i(l, a[m]);
141
152
  });
142
153
  } else {
143
154
  for (const l of c)
144
- t[l] !== void 0 && a[l] === void 0 && (a[l] = m(t[l]));
155
+ r[l] !== void 0 && a[l] === void 0 && (a[l] = d(r[l]));
145
156
  for (const l in a)
146
- typeof a[l] == "object" && typeof t[l] == "object" && s(t[l], a[l]);
157
+ typeof a[l] == "object" && typeof r[l] == "object" && i(r[l], a[l]);
147
158
  }
148
159
  };
149
- for (const t of c)
150
- e[t] !== void 0 && o[t] === void 0 && (o[t] = m(e[t]));
151
- s(e, o);
160
+ for (const r of c)
161
+ e[r] !== void 0 && o[r] === void 0 && (o[r] = d(e[r]));
162
+ i(e, o);
152
163
  }
153
- if (u.length > 0) {
154
- const s = (t) => {
155
- if (!(!t || typeof t != "object"))
156
- if (Array.isArray(t))
157
- t.forEach(s);
164
+ if (p.length > 0) {
165
+ const i = (r) => {
166
+ if (!(!r || typeof r != "object"))
167
+ if (Array.isArray(r))
168
+ r.forEach(i);
158
169
  else {
159
- for (const a of u)
160
- delete t[a];
161
- for (const a in t)
162
- s(t[a]);
170
+ for (const a of p)
171
+ delete r[a];
172
+ for (const a in r)
173
+ i(r[a]);
163
174
  }
164
175
  };
165
- s(o);
176
+ i(o);
166
177
  }
167
178
  return o;
168
179
  }
169
180
  export {
170
- g as cleanSubmitValues,
171
- F as collectFileFields,
172
- m as deepClone,
173
- O as evaluateConditional,
174
- S as filterNullCustomFields,
175
- d as getNestedValue,
176
- E as initializeFormValues,
177
- k as isAddonObject,
178
- x as isComponent,
179
- v as setNestedValue
181
+ V as cleanSubmitValues,
182
+ N as collectFileFields,
183
+ d as deepClone,
184
+ F as evaluateConditional,
185
+ b as filterNullCustomFields,
186
+ A as getNestedValue,
187
+ x as initializeFormValues,
188
+ g as isAddonObject,
189
+ T as isComponent,
190
+ h as setNestedValue
180
191
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-537da95f"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7572bc5b"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as N, ref as f, inject as P, computed as p, markRaw as R, watch as $, provide as V, nextTick as K, onMounted as W, onUnmounted as A, openBlock as s, createElementBlock as a, Fragment as F, mergeProps as T, withModifiers as B, renderSlot as m, createCommentVNode as r, createBlock as I, Teleport as U, normalizeClass as d, createElementVNode as y, toDisplayString as S, createVNode as q, resolveDynamicComponent as G } from "vue";
2
- import H from "./Button.vue.js";
3
- import { useKeyStroke as J } from "../composables/useKeyStroke.js";
1
+ import { defineComponent as P, ref as c, inject as R, computed as h, markRaw as V, watch as T, provide as W, nextTick as K, onMounted as A, onUnmounted as U, openBlock as s, createElementBlock as a, Fragment as q, mergeProps as B, withModifiers as I, renderSlot as m, createCommentVNode as r, createBlock as S, Teleport as G, normalizeClass as d, createElementVNode as v, toDisplayString as F, createVNode as H, resolveDynamicComponent as J } from "vue";
2
+ import L from "./Button.vue.js";
3
+ import { useKeyStroke as Q } from "../composables/useKeyStroke.js";
4
4
  import { $t as O } from "../utils/i18n.js";
5
- const L = {
5
+ const X = {
6
6
  key: 0,
7
7
  class: "flex-none flex flex-col space-y-1.5 pb-0 border-b border-border/90"
8
- }, Q = { class: "text-lg font-semibold leading-none tracking-tight" }, X = {
8
+ }, Y = { class: "text-lg font-semibold leading-none tracking-tight" }, Z = {
9
9
  key: 0,
10
10
  class: "text-sm text-muted-foreground mb-3.5"
11
- }, oe = /* @__PURE__ */ N({
11
+ }, le = /* @__PURE__ */ P({
12
12
  inheritAttrs: !1,
13
13
  __name: "Modal",
14
14
  props: {
@@ -29,10 +29,10 @@ const L = {
29
29
  },
30
30
  emits: ["close", "update:show", "onOpen"],
31
31
  setup(t, { emit: j }) {
32
- const o = t, i = j, l = f(o.show), g = f(!1), b = f(!1), h = f(null);
32
+ const o = t, i = j, l = c(o.show), g = c(!1), y = c(!1), k = c(null);
33
33
  let u = null;
34
- const n = P("dropdown-context", null), k = p(() => o.body ? R(o.body) : void 0);
35
- $(
34
+ const b = c(!1), n = R("dropdown-context", null), C = h(() => o.body ? V(o.body) : void 0);
35
+ T(
36
36
  () => o.show,
37
37
  (e) => {
38
38
  l.value = e, e && (i("onOpen"), n?.close());
@@ -42,84 +42,86 @@ const L = {
42
42
  l.value = !0, n?.close();
43
43
  }, D = (e) => {
44
44
  g.value = e;
45
- }, c = () => {
45
+ }, E = (e) => {
46
+ b.value = e;
47
+ }, f = () => {
46
48
  if (g.value) {
47
- b.value = !0, u && clearTimeout(u), u = setTimeout(() => {
48
- b.value = !1;
49
+ y.value = !0, u && clearTimeout(u), u = setTimeout(() => {
50
+ y.value = !1;
49
51
  }, 1e3);
50
52
  return;
51
53
  }
52
54
  l.value = !1, i("update:show", !1), i("close");
53
- }, v = () => {
55
+ }, p = () => {
54
56
  l.value = !1, i("update:show", !1), i("close");
55
57
  };
56
- V("modal-context", { close: c, setSubmitting: D });
57
- const E = () => {
58
- o.closeOutside && c();
59
- }, { onKeyStroke: M } = J();
60
- M("Escape", c), $(l, async (e) => {
61
- e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(), h.value?.focus()) : (document.body.style.overflow = "", n?.onChildToggle?.(!1));
62
- }), W(() => {
63
- l.value && n?.onChildToggle?.(!0);
58
+ W("modal-context", { close: f, setSubmitting: D, registerFormFooter: E });
59
+ const M = () => {
60
+ o.closeOutside && f();
61
+ }, { onKeyStroke: N } = Q();
62
+ N("Escape", f), T(l, async (e) => {
63
+ e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(), k.value?.focus()) : (document.body.style.overflow = "", n?.onChildToggle?.(!1), b.value = !1);
64
64
  }), A(() => {
65
+ l.value && n?.onChildToggle?.(!0);
66
+ }), U(() => {
65
67
  l.value && n?.onChildToggle?.(!1), document.body.style.overflow = "", u && clearTimeout(u);
66
68
  });
67
- const C = p(() => o.titleI18n ? O(o.titleI18n) : o.title), x = p(
69
+ const x = h(() => o.titleI18n ? O(o.titleI18n) : o.title), w = h(
68
70
  () => o.descriptionI18n ? O(o.descriptionI18n) : o.description
69
71
  );
70
- return (e, w) => (s(), a(F, null, [
71
- e.$slots?.trigger || e.$slots?.default ? (s(), a("span", T({
72
+ return (e, $) => (s(), a(q, null, [
73
+ e.$slots?.trigger || e.$slots?.default ? (s(), a("span", B({
72
74
  key: 0,
73
- onClick: B(z, ["stop"]),
75
+ onClick: I(z, ["stop"]),
74
76
  class: `${t.triggerClass}`
75
77
  }, e.$attrs), [
76
78
  m(e.$slots, "trigger", {}, () => [
77
79
  t.body ? m(e.$slots, "default", { key: 0 }, void 0, !0) : r("", !0)
78
80
  ], !0)
79
81
  ], 16)) : r("", !0),
80
- (s(), I(U, { to: "body" }, [
82
+ (s(), S(G, { to: "body" }, [
81
83
  l.value ? (s(), a("div", {
82
84
  key: 0,
83
85
  class: d(["fixed inset-0 z-50 flex items-center justify-center p-4 v-modal-overlay", t.backdrop ? "v-modal-backdrop" : ""]),
84
- onClick: E
86
+ onClick: M
85
87
  }, [
86
- y("div", {
88
+ v("div", {
87
89
  ref_key: "modalRef",
88
- ref: h,
90
+ ref: k,
89
91
  tabindex: "-1",
90
92
  class: d(["modal-body relative w-full rounded border border-border/60 bg-body shadow-lg text-foreground flex flex-col max-h-[85vh] sm:max-h-[90vh] focus:outline-none", [t.maxWidth]]),
91
- onClick: w[0] || (w[0] = B(() => {
93
+ onClick: $[0] || ($[0] = I(() => {
92
94
  }, ["stop"]))
93
95
  }, [
94
- C.value ? (s(), a("div", L, [
95
- y("div", {
96
+ x.value ? (s(), a("div", X, [
97
+ v("div", {
96
98
  class: d(["flex items-center justify-between py-2 px-4 rounded-t-md", t.headerClass])
97
99
  }, [
98
- y("h3", Q, S(C.value), 1),
99
- q(H, {
100
+ v("h3", Y, F(x.value), 1),
101
+ H(L, {
100
102
  rounded: "full",
101
103
  size: "sm",
102
104
  icon: "lucide:x",
103
105
  variant: "ghost",
104
- class: d(["hover:bg-gray-250/25!", { "blink-bg": b.value }]),
105
- onClick: c
106
+ class: d(["hover:bg-gray-250/25!", { "blink-bg": y.value }]),
107
+ onClick: f
106
108
  }, null, 8, ["class"])
107
109
  ], 2)
108
110
  ])) : r("", !0),
109
- y("div", {
110
- class: d(["flex-1 overflow-y-auto px-4 pt-4 pb-3.5 min-h-0", t.bodyClass])
111
+ v("div", {
112
+ class: d(["flex-1 overflow-y-auto px-4 pt-4 min-h-0", [b.value ? "pb-0" : "pb-3.5", t.bodyClass]])
111
113
  }, [
112
- x.value ? (s(), a("p", X, S(x.value), 1)) : r("", !0),
113
- k.value ? (s(), I(G(k.value), T({ key: 1 }, { ...t.bodyProps, ...e.$attrs }, { close: v }), null, 16)) : m(e.$slots, "default", {
114
+ w.value ? (s(), a("p", Z, F(w.value), 1)) : r("", !0),
115
+ C.value ? (s(), S(J(C.value), B({ key: 1 }, { ...t.bodyProps, ...e.$attrs }, { close: p }), null, 16)) : m(e.$slots, "default", {
114
116
  key: 2,
115
- close: v
117
+ close: p
116
118
  }, void 0, !0)
117
119
  ], 2),
118
120
  e.$slots.footer ? (s(), a("div", {
119
121
  key: 1,
120
122
  class: d([t.footerClass, "flex-none flex items-center px-4 py-3 border-t border-border/75 rounded-b-xl bg-body"])
121
123
  }, [
122
- m(e.$slots, "footer", { close: v }, void 0, !0)
124
+ m(e.$slots, "footer", { close: p }, void 0, !0)
123
125
  ], 2)) : r("", !0)
124
126
  ], 2)
125
127
  ], 2)) : r("", !0)
@@ -128,5 +130,5 @@ const L = {
128
130
  }
129
131
  });
130
132
  export {
131
- oe as default
133
+ le as default
132
134
  };
@@ -82,12 +82,12 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
82
82
  }, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
83
83
  "onToggle-mobile"?: () => any;
84
84
  }>, {
85
- floating: boolean;
86
85
  variant: import('../../types/navbar.type').NavbarVariant;
87
- compact: boolean;
86
+ floating: boolean;
88
87
  class: string;
89
88
  height: string;
90
89
  border: boolean;
90
+ compact: boolean;
91
91
  position: import('../../types/navbar.type').NavbarPosition;
92
92
  contentClass: string;
93
93
  breadcrumb: boolean;
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as R } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, q = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -3,8 +3,8 @@ declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {},
3
3
  variant: ProgressBarVariant;
4
4
  size: ProgressBarSize;
5
5
  rounded: string;
6
- striped: boolean;
7
6
  type: import('../../types/progressbar').ProgressBarType;
7
+ striped: boolean;
8
8
  indeterminate: boolean;
9
9
  showValue: boolean;
10
10
  animated: boolean;